@mcp-use/inspector 20.0.0-beta.1 → 20.0.0-beta.3

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 (196) hide show
  1. package/README.md +5 -0
  2. package/dist/cdn/{AnimatePresence-B4HhIdgq.js → AnimatePresence-Dcw-FOy8.js} +50 -50
  3. package/dist/cdn/ChatTab-BS5Tlm2y.js +6744 -0
  4. package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-Bt4IICtv.js} +77 -77
  5. package/dist/cdn/{ConnectionSettingsForm-BNS6bOMD.js → ConnectionSettingsForm-BFsZpwK4.js} +348 -292
  6. package/dist/cdn/ConnectionSettingsTab-DDk06dhT.js +150 -0
  7. package/dist/cdn/{ElicitationTab-upPXq2q7.js → ElicitationTab-CL1KJ0bz.js} +39 -39
  8. package/dist/cdn/{FormContext-Cl51-7O7.js → FormContext-tmgN_Vdr.js} +1 -1
  9. package/dist/cdn/{InspectorContext-DzXtgyTx.js → InspectorContext-UjtEbNod.js} +1 -21
  10. package/dist/cdn/{JSONDisplay-D3RcyO9z.js → JSONDisplay-BFxf5oEu.js} +18 -18
  11. package/dist/cdn/{ListTabHeader-8lULn-90.js → ListTabHeader-Cv-GmtGF.js} +19 -19
  12. package/dist/cdn/{ManufactOAuthCallback-DEM8mhWD.js → ManufactOAuthCallback-B98kSYCj.js} +1 -1
  13. package/dist/cdn/MarkdownRenderer-_aYcof42.js +3610 -0
  14. package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-CeImSrhx.js} +13 -13
  15. package/dist/cdn/{OAuthCallback-k3oeLtIC.js → OAuthCallback-C4n2hqKU.js} +1 -1
  16. package/dist/cdn/PromptsTab-BajHFLa3.js +901 -0
  17. package/dist/cdn/{ResourcesTab-KfamsM6-.js → ResourcesTab-BgeMlTdR.js} +35 -55
  18. package/dist/cdn/{SamplingTab-vcufuK24.js → SamplingTab-CnJB229N.js} +35 -35
  19. package/dist/cdn/{ServerMetadataTab-DS0eiyyD.js → ServerMetadataTab-CvrKX8fz.js} +12 -12
  20. package/dist/cdn/{StatusIcon-BGXOEU2u.js → StatusIcon-D0-ARyOh.js} +6 -6
  21. package/dist/cdn/{ToolsTab-DRjcZnpu.js → ToolsTab-ACLxPxR6.js} +103 -137
  22. package/dist/cdn/{ViewPreview-B_onhcUB.js → ViewPreview-DsPwZAwO.js} +2 -2
  23. package/dist/cdn/{WidgetWrapper-D29YDxIu.js → WidgetWrapper-CwlpDv17.js} +529 -530
  24. package/dist/cdn/card-DgiYnSg-.js +41 -0
  25. package/dist/cdn/{checkbox-B4oUG6Rr.js → checkbox-By0FklhG.js} +6 -6
  26. package/dist/cdn/{dialog-Dnl-pZsY.js → dialog-BsDpuJd3.js} +151 -151
  27. package/dist/cdn/{dist-mRDqCgKU.js → dist-B0eL32Gb.js} +114 -113
  28. package/dist/cdn/{dist-DjXr_YO3.js → dist-DaMB0Su9.js} +1 -1
  29. package/dist/cdn/{index-browser-CVUwR-Bu.js → index-browser-QDjRGsPo.js} +1 -1
  30. package/dist/cdn/{input-BLxOA7V-.js → input-C2OBd4PJ.js} +4787 -2842
  31. package/dist/cdn/inspector.css +1 -1
  32. package/dist/cdn/inspector.js +7419 -7445
  33. package/dist/cdn/{label-CBvG613A.js → label-B9Jmm9be.js} +10 -10
  34. package/dist/cdn/{manufact-auth-0TVxpeTA.js → manufact-auth-BQMHhbLV.js} +142 -106
  35. package/dist/cdn/{not-found-BcNNsTjS.js → not-found-DEtSM_Wd.js} +7 -7
  36. package/dist/cdn/providerMeta-BQIfHuNL.js +379 -0
  37. package/dist/cdn/{react-BxO-uEDZ.js → react-Dn8PWXwP.js} +1 -1
  38. package/dist/cdn/{select-BZ_IoKxg.js → select-DDdiIPR2.js} +726 -726
  39. package/dist/cdn/{shared-uMiV6Fx1.js → shared-DaILIQPP.js} +29 -29
  40. package/dist/cdn/{popover-C_SSrXT0.js → sheet-Br_l2kry.js} +694 -622
  41. package/dist/cdn/{spinner-CWcJhIY_.js → spinner-jQtC7EBj.js} +5 -5
  42. package/dist/cdn/{switch-DtQOLb9R.js → switch-C3IyQuid.js} +104 -104
  43. package/dist/cdn/{tabs-subtle-C5cy35sY.js → tabs-subtle-CkdI6Mac.js} +147 -147
  44. package/dist/cdn/{telemetry-Ct6pVkM1.js → telemetry-gHF-tMli.js} +3 -3
  45. package/dist/cdn/{textarea-Bj-CT7hC.js → textarea-DSbwcFVt.js} +6 -6
  46. package/dist/cdn/{useAriaLabelledBy-Bm9qHGK6.js → useAriaLabelledBy-DqAdnppm.js} +1 -1
  47. package/dist/cdn/{useCompositeItem-CNJ6MXdi.js → useCompositeItem-BRqEzYh-.js} +2 -2
  48. package/dist/cdn/{useConfig-CwxZ6Quj.js → useConfig-BWcNCqwi.js} +73 -46
  49. package/dist/cdn/{useViewHostProps-Dr6W2ooF.js → useViewHostProps-DIIlz3tJ.js} +1 -1
  50. package/dist/cli.js +27 -13
  51. package/dist/client/auth/manufact-auth.d.ts +3 -1
  52. package/dist/client/auth/manufact-auth.d.ts.map +1 -1
  53. package/dist/client/components/ChatTab.d.ts +1 -8
  54. package/dist/client/components/ChatTab.d.ts.map +1 -1
  55. package/dist/client/components/ResourcesTab.d.ts.map +1 -1
  56. package/dist/client/components/chat/ChatHeader.d.ts +7 -2
  57. package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
  58. package/dist/client/components/chat/ChatLandingForm.d.ts +4 -2
  59. package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
  60. package/dist/client/components/chat/ChatManagedNotice.d.ts +10 -0
  61. package/dist/client/components/chat/ChatManagedNotice.d.ts.map +1 -0
  62. package/dist/client/components/chat/ChatScrollTopFade.d.ts +7 -0
  63. package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +1 -0
  64. package/dist/client/components/chat/ConfigurationDialog.d.ts +11 -9
  65. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
  66. package/dist/client/components/chat/ConfigureEmptyState.d.ts +1 -6
  67. package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
  68. package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -1
  69. package/dist/client/components/chat/chatModeStorage.d.ts +11 -0
  70. package/dist/client/components/chat/chatModeStorage.d.ts.map +1 -0
  71. package/dist/client/components/chat/managedChatNotice.d.ts +16 -0
  72. package/dist/client/components/chat/managedChatNotice.d.ts.map +1 -0
  73. package/dist/client/components/chat/providerMeta.d.ts +11 -0
  74. package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
  75. package/dist/client/components/chat/useChatMessages.d.ts +7 -5
  76. package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
  77. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +4 -6
  78. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
  79. package/dist/client/components/chat/useChatScrollToBottom.d.ts +1 -0
  80. package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -1
  81. package/dist/client/components/chat/useConfig.d.ts +1 -1
  82. package/dist/client/components/chat/useConfig.d.ts.map +1 -1
  83. package/dist/client/components/chat/useHostedChatMode.d.ts +1 -1
  84. package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -1
  85. package/dist/client/components/shared/MarkdownRenderer.d.ts +2 -1
  86. package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
  87. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
  88. package/dist/client/components/ui/MeshGradientCanvas.d.ts +13 -0
  89. package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -0
  90. package/dist/client/components/ui/chat-message.d.ts +1 -1
  91. package/dist/client/components/ui/chat-message.d.ts.map +1 -1
  92. package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -1
  93. package/dist/client/components/ui/mesh-tab-background.d.ts +3 -1
  94. package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
  95. package/dist/client/context/InspectorContext.d.ts.map +1 -1
  96. package/dist/client/index.js +2577 -2165
  97. package/dist/client/telemetry/utils.d.ts.map +1 -1
  98. package/dist/server/asset-urls.d.ts +4 -0
  99. package/dist/server/asset-urls.d.ts.map +1 -1
  100. package/dist/server/asset-urls.js +7 -3
  101. package/dist/server/cdn-shell.d.ts.map +1 -1
  102. package/dist/server/cdn-shell.js +3 -3
  103. package/dist/server/{chunk-KBVKS4J5.js → chunk-H6ZCIKBS.js} +10 -0
  104. package/dist/server/{chunk-Y2GBQOQW.js → chunk-H7UBATRR.js} +2 -9
  105. package/dist/server/{chunk-VDUV6LR6.js → chunk-HGPQON3P.js} +15 -4
  106. package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
  107. package/dist/server/{chunk-5B3SXGZP.js → chunk-UJLXHNQP.js} +1 -1
  108. package/dist/server/{chunk-IXYK6ZOY.js → chunk-W3PVQLOP.js} +2 -2
  109. package/dist/server/{chunk-6XWDZEFF.js → chunk-XCNS5CIW.js} +8 -3
  110. package/dist/server/cli.js +5 -5
  111. package/dist/server/create-dev-api-app.js +3 -3
  112. package/dist/server/dev-callback-redirect.d.ts +3 -0
  113. package/dist/server/dev-callback-redirect.d.ts.map +1 -0
  114. package/dist/server/dev-callback-redirect.js +18 -0
  115. package/dist/server/index.js +6 -6
  116. package/dist/server/middleware.js +6 -6
  117. package/dist/server/proxy/index.js +1 -1
  118. package/dist/server/proxy/mcp-proxy.d.ts +2 -0
  119. package/dist/server/proxy/mcp-proxy.d.ts.map +1 -1
  120. package/dist/server/proxy/mcp-proxy.js +3 -1
  121. package/dist/server/proxy-routes.js +2 -2
  122. package/dist/server/server.js +3 -3
  123. package/dist/server/version.js +1 -1
  124. package/dist/server/vite-dev-api-plugin.js +3 -3
  125. package/dist/web/assets/{AnimatePresence-CthXziG2.js → AnimatePresence-C5p0yiY1.js} +2 -2
  126. package/dist/web/assets/ChatTab-C2FtENBM.js +18 -0
  127. package/dist/web/assets/ConnectionSettingsTab-B2sUjytG.js +1 -0
  128. package/dist/web/assets/ElicitationTab-DwH08kDC.js +1 -0
  129. package/dist/web/assets/{FormContext-Cqc_A12u.js → FormContext-DH2caWKO.js} +1 -1
  130. package/dist/web/assets/ListTabHeader-R17w_JsB.js +1 -0
  131. package/dist/web/assets/{ManufactOAuthCallback-DCLbW-mz.js → ManufactOAuthCallback-Btu4B6u6.js} +1 -1
  132. package/dist/web/assets/MarkdownRenderer-DpIEt9wb.js +47 -0
  133. package/dist/web/assets/{NotificationsTab-JevzvJTg.js → NotificationsTab-CHB8mtSz.js} +1 -1
  134. package/dist/web/assets/{OAuthCallback-BjcRxLh5.js → OAuthCallback-DV4MgX4Z.js} +1 -1
  135. package/dist/web/assets/PromptsTab-0GIapoSs.js +15 -0
  136. package/dist/web/assets/ResourcesTab-N9xjsI_b.js +2 -0
  137. package/dist/web/assets/SamplingTab-Dw0vpi4t.js +1 -0
  138. package/dist/web/assets/ServerMetadataTab-D-eQpLBF.js +1 -0
  139. package/dist/web/assets/ToolsTab-BMrMJ5JV.js +8 -0
  140. package/dist/web/assets/ViewPreview-N_cpEO0W.js +1 -0
  141. package/dist/web/assets/WidgetWrapper-pDgNVq9y.js +34 -0
  142. package/dist/web/assets/checkbox-CrnXSMh2.js +1 -0
  143. package/dist/web/assets/dist-CeWSydFI.js +21 -0
  144. package/dist/web/assets/index-Cfuv_gb3.js +475 -0
  145. package/dist/web/assets/index-fBX3akc8.css +1 -0
  146. package/dist/web/assets/input-CLYhA7PK.js +1 -0
  147. package/dist/web/assets/{label-B5Q_Zr8M.js → label-Cdim77Jw.js} +1 -1
  148. package/dist/web/assets/select-CJ57-Bor.js +1 -0
  149. package/dist/web/assets/shared-B1GD9FMm.js +1 -0
  150. package/dist/web/assets/{tabs-subtle-AkJZvdxS.js → tabs-subtle-CG5cjC_N.js} +1 -1
  151. package/dist/web/assets/textarea-DLAmNVf_.js +1 -0
  152. package/dist/web/assets/useConfig-BTp15Lle.js +1 -0
  153. package/dist/web/assets/{useViewHostProps-DXAD1g7g.js → useViewHostProps-BQlaFC2Q.js} +1 -1
  154. package/dist/web/index.html +8 -9
  155. package/package.json +5 -12
  156. package/dist/cdn/ChatTab-D8uwCHAf.js +0 -13218
  157. package/dist/cdn/ConnectionSettingsTab-B97gPPJW.js +0 -145
  158. package/dist/cdn/PromptsTab-Cspfnl6n.js +0 -4400
  159. package/dist/cdn/bundle-mjs-B0nmHDtp.js +0 -1953
  160. package/dist/cdn/card-DqjqAq0o.js +0 -41
  161. package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +0 -17500
  162. package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +0 -36
  163. package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +0 -2
  164. package/dist/cdn/pdf-CxFT9FER.js +0 -16291
  165. package/dist/cdn/sheet-CerCdhxz.js +0 -78
  166. package/dist/cdn/useHostedSession-BA39Aegc.js +0 -153
  167. package/dist/cdn/useMCPPrompts-D3_Hla_z.js +0 -104
  168. package/dist/client/components/chat/streamdown-code-slim.d.ts +0 -4
  169. package/dist/client/components/chat/streamdown-code-slim.d.ts.map +0 -1
  170. package/dist/web/assets/ChatTab-Cy8eyFYI.js +0 -460
  171. package/dist/web/assets/ConnectionSettingsTab-sDZGaUJn.js +0 -1
  172. package/dist/web/assets/ElicitationTab-wDKgU1qL.js +0 -1
  173. package/dist/web/assets/ListTabHeader-G-nQX18m.js +0 -1
  174. package/dist/web/assets/PromptsTab-DsQVOjKH.js +0 -61
  175. package/dist/web/assets/ResourcesTab-Bw8_p6M1.js +0 -2
  176. package/dist/web/assets/SamplingTab-BrcF1zJF.js +0 -1
  177. package/dist/web/assets/ServerMetadataTab-Bydeh1Po.js +0 -1
  178. package/dist/web/assets/ToolsTab-DJWF7Q_x.js +0 -8
  179. package/dist/web/assets/ViewPreview-jgeU7bY9.js +0 -1
  180. package/dist/web/assets/WidgetWrapper-B_vJU9uF.js +0 -34
  181. package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
  182. package/dist/web/assets/checkbox-BA-XURSj.js +0 -1
  183. package/dist/web/assets/chunk-BO2N2NFS-CGbd3eLY.js +0 -131
  184. package/dist/web/assets/dist-BcAQZluc.js +0 -21
  185. package/dist/web/assets/highlighted-body-OFNGDK62-BBJFbIMp.js +0 -1
  186. package/dist/web/assets/index-BjH-Qp85.css +0 -1
  187. package/dist/web/assets/index-D2UxaT9v.js +0 -475
  188. package/dist/web/assets/input-CjmxOFr6.js +0 -1
  189. package/dist/web/assets/mermaid-GHXKKRXX-B4MKVODA.js +0 -1
  190. package/dist/web/assets/pdf-CuwKm9zO.js +0 -54
  191. package/dist/web/assets/select-C0xlfLAa.js +0 -1
  192. package/dist/web/assets/shared-DQE60Op-.js +0 -1
  193. package/dist/web/assets/sheet-7TIkLdpr.js +0 -1
  194. package/dist/web/assets/textarea-Ci09-en6.js +0 -1
  195. package/dist/web/assets/useConfig-Qglo4xs1.js +0 -1
  196. package/dist/web/assets/useMCPPrompts-USLYc1I4.js +0 -1
@@ -1,42 +1,43 @@
1
1
  import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { r as n } from "./bundle-mjs-B0nmHDtp.js";
3
- import { t as r } from "./jsx-runtime-CIxvMpEo.js";
4
- import { $ as i, $n as a, Ar as o, At as s, Ct as c, Dn as l, Dr as u, Dt as d, En as f, Gt as p, Ir as m, It as h, J as g, Kn as _, Kt as v, Lt as y, Mn as b, Mt as x, Nn as S, Nt as C, Ot as w, Pn as T, Pt as E, Q as D, Rn as O, Rr as k, Rt as A, Sr as j, St as M, Tn as ee, Tr as N, Un as P, Ut as F, Wn as I, X as te, Y as ne, Z as L, Zn as R, _r as z, _t as re, ar as B, at as V, br as H, c as ie, ct as ae, dr as U, dt as oe, et as se, f as W, fr as ce, ft as le, gr as ue, gt as de, ht as G, ir as K, it as q, jr as fe, jt as pe, kn as me, kt as he, lt as ge, mn as J, mt as _e, o as ve, on as ye, or as Y, ot as be, pr as xe, pt as Se, q as Ce, qt as we, rn as Te, rr as Ee, rt as De, s as X, st as Oe, tt as ke, ut as Ae, vt as je, wn as Me, wr as Ne, wt as Z, xr as Pe, yr as Fe, yt as Ie, zn as Le } from "./input-BLxOA7V-.js";
5
- import { n as Re } from "./label-CBvG613A.js";
6
- import { b as ze, l as Be, r as Ve, t as He } from "./AnimatePresence-B4HhIdgq.js";
7
- import { C as Ue, S as We, T as Ge, _ as Ke, b as qe, g as Je, h as Ye, l as Xe, m as Ze, p as Qe, w as $e, x as et, y as tt } from "./select-BZ_IoKxg.js";
8
- import { t as nt } from "./useCompositeItem-CNJ6MXdi.js";
9
- import { a as rt } from "./browser-CbQIH4w2.js";
2
+ import { $ as n, $n as r, Ar as i, At as a, Br as o, Ct as s, Dn as c, Dr as l, Dt as u, En as d, Gt as f, Ir as p, It as m, J as h, Kn as g, Kt as _, Lt as v, Mn as y, Mt as b, Nn as x, Nt as S, Ot as C, Pn as w, Pt as T, Q as E, Rn as D, Rr as O, Rt as k, Sr as A, St as j, Tn as M, Tr as N, Un as P, Ut as F, Wn as I, X as L, Y as ee, Z as R, Zn as z, _r as B, _t as te, ar as ne, at as V, br as H, c as U, ct as re, dr as W, dt as ie, et as G, f as K, fr as ae, ft as oe, gr as se, gt as ce, ht as le, ir as q, it as J, jr as Y, jt as ue, kn as de, kt as fe, lt as pe, mn as me, mt as he, o as ge, on as _e, or as ve, ot as ye, pr as be, pt as xe, q as Se, qt as Ce, rn as we, rr as Te, rt as Ee, s as X, sr as De, st as Oe, tt as ke, ut as Ae, vt as je, wn as Me, wr as Ne, wt as Z, xr as Pe, yr as Fe, yt as Ie, zn as Le } from "./input-C2OBd4PJ.js";
3
+ import { t as Re } from "./jsx-runtime-CIxvMpEo.js";
4
+ import { n as ze } from "./label-B9Jmm9be.js";
5
+ import { b as Be, l as Ve, r as He, t as Ue } from "./AnimatePresence-Dcw-FOy8.js";
6
+ import { C as We, S as Ge, T as Ke, _ as qe, b as Je, g as Ye, h as Xe, l as Ze, m as Qe, p as $e, w as et, x as tt, y as nt } from "./select-DDdiIPR2.js";
7
+ import { t as rt } from "./useCompositeItem-BRqEzYh-.js";
8
+ import { _ as it, d as at, f as ot, g as st, h as ct, m as lt, u as ut, v as dt } from "./dialog-BsDpuJd3.js";
9
+ import { a as ft } from "./browser-CbQIH4w2.js";
10
+ import { t as pt } from "./x-C3vRQIYu.js";
10
11
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/positioner/MenuPositionerContext.mjs
11
- var Q = /* @__PURE__ */ e(t(), 1), it = /*#__PURE__*/ Q.createContext(void 0);
12
- process.env.NODE_ENV !== "production" && (it.displayName = "MenuPositionerContext");
13
- function at(e) {
14
- let t = Q.useContext(it);
12
+ var Q = /* @__PURE__ */ e(t(), 1), mt = /*#__PURE__*/ Q.createContext(void 0);
13
+ process.env.NODE_ENV !== "production" && (mt.displayName = "MenuPositionerContext");
14
+ function ht(e) {
15
+ let t = Q.useContext(mt);
15
16
  if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? H(33) : "Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.");
16
17
  return t;
17
18
  }
18
19
  //#endregion
19
20
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/root/MenuRootContext.mjs
20
- var ot = /*#__PURE__*/ Q.createContext(void 0);
21
- process.env.NODE_ENV !== "production" && (ot.displayName = "MenuRootContext");
22
- function st(e) {
23
- let t = Q.useContext(ot);
21
+ var gt = /*#__PURE__*/ Q.createContext(void 0);
22
+ process.env.NODE_ENV !== "production" && (gt.displayName = "MenuRootContext");
23
+ function _t(e) {
24
+ let t = Q.useContext(gt);
24
25
  if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? H(36) : "Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>.");
25
26
  return t;
26
27
  }
27
28
  //#endregion
28
29
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/context-menu/root/ContextMenuRootContext.mjs
29
- var ct = /*#__PURE__*/ Q.createContext(void 0);
30
- process.env.NODE_ENV !== "production" && (ct.displayName = "ContextMenuRootContext");
31
- function lt(e = !0) {
32
- let t = Q.useContext(ct);
30
+ var vt = /*#__PURE__*/ Q.createContext(void 0);
31
+ process.env.NODE_ENV !== "production" && (vt.displayName = "ContextMenuRootContext");
32
+ function yt(e = !0) {
33
+ let t = Q.useContext(vt);
33
34
  if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? H(25) : "Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>.");
34
35
  return t;
35
36
  }
36
37
  //#endregion
37
38
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/item/useMenuItemCommonProps.mjs
38
- function ut(e) {
39
- let { closeOnClick: t, highlighted: n, id: r, nodeId: i, store: a, typingRef: o, itemRef: s, itemMetadata: c } = e, { events: l } = a.useState("floatingTreeRoot"), u = a.useState("open"), d = lt(!0), f = d !== void 0;
39
+ function bt(e) {
40
+ let { closeOnClick: t, highlighted: n, id: r, nodeId: i, store: a, typingRef: o, itemRef: s, itemMetadata: c } = e, { events: l } = a.useState("floatingTreeRoot"), u = a.useState("open"), d = yt(!0), f = d !== void 0;
40
41
  return Q.useMemo(() => ({
41
42
  id: r,
42
43
  role: "menuitem",
@@ -53,13 +54,13 @@ function ut(e) {
53
54
  onClick(e) {
54
55
  t && l.emit("close", {
55
56
  domEvent: e,
56
- reason: _
57
+ reason: g
57
58
  });
58
59
  },
59
60
  onMouseUp(e) {
60
61
  if (d) {
61
62
  let t = d.initialCursorPointRef.current;
62
- if (d.initialCursorPointRef.current = null, f && t && Math.abs(e.clientX - t.x) <= 1 && Math.abs(e.clientY - t.y) <= 1 || f && !O && e.button === 2) return;
63
+ if (d.initialCursorPointRef.current = null, f && t && Math.abs(e.clientX - t.x) <= 1 && Math.abs(e.clientY - t.y) <= 1 || f && !D && e.button === 2) return;
63
64
  }
64
65
  s.current && a.context.allowMouseUpTriggerRef.current && (!f || e.button === 2) && (!c || c.type === "regular-item") && s.current.click();
65
66
  }
@@ -80,14 +81,14 @@ function ut(e) {
80
81
  }
81
82
  //#endregion
82
83
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/item/useMenuItem.mjs
83
- var dt = { type: "regular-item" };
84
- function ft(e) {
85
- let { closeOnClick: t, disabled: n = !1, highlighted: r, id: i, store: a, typingRef: o = a.context.typingRef, nativeButton: s, itemMetadata: c, nodeId: l } = e, u = a.useState("disabled"), d = n || u, f = Q.useRef(null), { getButtonProps: p, buttonRef: m } = z({
84
+ var xt = { type: "regular-item" };
85
+ function St(e) {
86
+ let { closeOnClick: t, disabled: n = !1, highlighted: r, id: i, store: a, typingRef: o = a.context.typingRef, nativeButton: s, itemMetadata: c, nodeId: l } = e, u = a.useState("disabled"), d = n || u, f = Q.useRef(null), { getButtonProps: p, buttonRef: m } = B({
86
87
  disabled: d,
87
88
  focusableWhenDisabled: !0,
88
89
  native: s,
89
90
  composite: !0
90
- }), h = ut({
91
+ }), h = bt({
91
92
  closeOnClick: t,
92
93
  highlighted: r,
93
94
  id: i,
@@ -102,7 +103,7 @@ function ft(e) {
102
103
  h,
103
104
  p,
104
105
  c
105
- ]), _ = ue(f, m);
106
+ ]), _ = se(f, m);
106
107
  return Q.useMemo(() => ({
107
108
  getItemProps: g,
108
109
  itemRef: _
@@ -110,19 +111,19 @@ function ft(e) {
110
111
  }
111
112
  //#endregion
112
113
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/checkbox-item/MenuCheckboxItemDataAttributes.mjs
113
- var $ = r(), pt = /*#__PURE__*/ function(e) {
114
+ var $ = Re(), Ct = /*#__PURE__*/ function(e) {
114
115
  return e.checked = "data-checked", e.unchecked = "data-unchecked", e.disabled = "data-disabled", e.highlighted = "data-highlighted", e;
115
- }({}), mt = {
116
+ }({}), wt = {
116
117
  checked(e) {
117
- return e ? { [pt.checked]: "" } : { [pt.unchecked]: "" };
118
+ return e ? { [Ct.checked]: "" } : { [Ct.unchecked]: "" };
118
119
  },
119
- ...Y
120
- }, ht = /*#__PURE__*/ Q.createContext(void 0);
121
- process.env.NODE_ENV !== "production" && (ht.displayName = "MenuGroupContext");
120
+ ...ve
121
+ }, Tt = /*#__PURE__*/ Q.createContext(void 0);
122
+ process.env.NODE_ENV !== "production" && (Tt.displayName = "MenuGroupContext");
122
123
  //#endregion
123
124
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/item/MenuItem.mjs
124
- var gt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
125
- let { render: n, className: r, id: i, label: a, nativeButton: o = !1, disabled: s = !1, closeOnClick: c = !0, style: l, ...u } = e, d = ze({ label: a }), f = at(!0), p = S(i), { store: m } = st(), h = m.useState("isActive", d.index), g = m.useState("itemProps"), { getItemProps: _, itemRef: v } = ft({
125
+ var Et = /*#__PURE__*/ Q.forwardRef(function(e, t) {
126
+ let { render: n, className: r, id: i, label: a, nativeButton: o = !1, disabled: s = !1, closeOnClick: c = !0, style: l, ...u } = e, d = Be({ label: a }), f = ht(!0), p = x(i), { store: m } = _t(), h = m.useState("isActive", d.index), g = m.useState("itemProps"), { getItemProps: _, itemRef: v } = St({
126
127
  closeOnClick: c,
127
128
  disabled: s,
128
129
  highlighted: h,
@@ -130,9 +131,9 @@ var gt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
130
131
  store: m,
131
132
  nativeButton: o,
132
133
  nodeId: f?.context.nodeId,
133
- itemMetadata: dt
134
+ itemMetadata: xt
134
135
  });
135
- return U("div", e, {
136
+ return W("div", e, {
136
137
  state: {
137
138
  disabled: s,
138
139
  highlighted: h
@@ -149,39 +150,39 @@ var gt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
149
150
  ]
150
151
  });
151
152
  });
152
- process.env.NODE_ENV !== "production" && (gt.displayName = "MenuItem");
153
+ process.env.NODE_ENV !== "production" && (Et.displayName = "MenuItem");
153
154
  //#endregion
154
155
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/popup/MenuPopup.mjs
155
- var _t = {
156
- ...Ee,
157
- ...Y
158
- }, vt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
159
- let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: s } = st(), { side: c, align: l } = at(), u = et(!0) != null, d = s.useState("open"), p = s.useState("transitionStatus"), m = s.useState("popupProps"), h = s.useState("mounted"), g = s.useState("instantType"), _ = s.useState("activeTriggerElement"), v = s.useState("parent"), y = s.useState("lastOpenChangeReason"), x = s.useState("rootId"), S = s.useState("floatingRootContext"), C = s.useState("floatingTreeRoot"), w = s.useState("closeDelay"), T = s.useState("activeTriggerElement"), E = s.useState("hoverEnabled"), D = s.useState("disabled"), O = s.useState("openMethod"), k = v.type === "context-menu";
160
- f({
161
- open: d,
156
+ var Dt = {
157
+ ...Te,
158
+ ...ve
159
+ }, Ot = /*#__PURE__*/ Q.forwardRef(function(e, t) {
160
+ let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: s } = _t(), { side: c, align: l } = ht(), u = tt(!0) != null, f = s.useState("open"), p = s.useState("transitionStatus"), m = s.useState("popupProps"), h = s.useState("mounted"), g = s.useState("instantType"), _ = s.useState("activeTriggerElement"), v = s.useState("parent"), b = s.useState("lastOpenChangeReason"), x = s.useState("rootId"), S = s.useState("floatingRootContext"), C = s.useState("floatingTreeRoot"), w = s.useState("closeDelay"), T = s.useState("activeTriggerElement"), E = s.useState("hoverEnabled"), D = s.useState("disabled"), O = s.useState("openMethod"), k = v.type === "context-menu";
161
+ d({
162
+ open: f,
162
163
  ref: s.context.popupRef,
163
164
  onComplete() {
164
- d && s.context.onOpenChangeComplete?.(!0);
165
+ f && s.context.onOpenChangeComplete?.(!0);
165
166
  }
166
167
  }), Q.useEffect(() => {
167
168
  function e(e) {
168
- s.setOpen(!1, b(e.reason, e.domEvent));
169
+ s.setOpen(!1, y(e.reason, e.domEvent));
169
170
  }
170
171
  return C.events.on("close", e), () => {
171
172
  C.events.off("close", e);
172
173
  };
173
- }, [C.events, s]), se(S, {
174
+ }, [C.events, s]), G(S, {
174
175
  enabled: E && !D && !k && v.type !== "menubar",
175
176
  closeDelay: w
176
177
  });
177
178
  let A = Q.useCallback((e) => {
178
179
  s.set("popupElement", e);
179
- }, [s]), j = U("div", e, {
180
+ }, [s]), j = W("div", e, {
180
181
  state: {
181
182
  transitionStatus: p,
182
183
  side: c,
183
184
  align: l,
184
- open: d,
185
+ open: f,
185
186
  nested: v.type === "menu",
186
187
  instant: g
187
188
  },
@@ -190,18 +191,18 @@ var _t = {
190
191
  s.context.popupRef,
191
192
  A
192
193
  ],
193
- stateAttributesMapping: _t,
194
+ stateAttributesMapping: Dt,
194
195
  props: [
195
196
  m,
196
197
  { onKeyDown(e) {
197
- u && Be.has(e.key) && e.stopPropagation();
198
+ u && Ve.has(e.key) && e.stopPropagation();
198
199
  } },
199
- L(p),
200
+ R(p),
200
201
  o,
201
202
  { "data-rootownerid": x }
202
203
  ]
203
204
  }), M = v.type === void 0 || k;
204
- return (_ || v.type === "menubar" && y !== "outside-press") && (M = !0), /*#__PURE__*/ (0, $.jsx)(Ge, {
205
+ return (_ || v.type === "menubar" && b !== "outside-press") && (M = !0), /*#__PURE__*/ (0, $.jsx)(Ke, {
205
206
  context: S,
206
207
  openInteractionType: O,
207
208
  modal: k,
@@ -216,60 +217,60 @@ var _t = {
216
217
  children: j
217
218
  });
218
219
  });
219
- process.env.NODE_ENV !== "production" && (vt.displayName = "MenuPopup");
220
+ process.env.NODE_ENV !== "production" && (Ot.displayName = "MenuPopup");
220
221
  //#endregion
221
222
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/portal/MenuPortalContext.mjs
222
- var yt = /*#__PURE__*/ Q.createContext(void 0);
223
- process.env.NODE_ENV !== "production" && (yt.displayName = "MenuPortalContext");
224
- function bt() {
225
- let e = Q.useContext(yt);
223
+ var kt = /*#__PURE__*/ Q.createContext(void 0);
224
+ process.env.NODE_ENV !== "production" && (kt.displayName = "MenuPortalContext");
225
+ function At() {
226
+ let e = Q.useContext(kt);
226
227
  if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? H(32) : "Base UI: <Menu.Portal> is missing.");
227
228
  return e;
228
229
  }
229
230
  //#endregion
230
231
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/portal/MenuPortal.mjs
231
- var xt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
232
- let { keepMounted: n = !1, ...r } = e, { store: i } = st();
233
- return i.useState("mounted") || n ? /*#__PURE__*/ (0, $.jsx)(yt.Provider, {
232
+ var jt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
233
+ let { keepMounted: n = !1, ...r } = e, { store: i } = _t();
234
+ return i.useState("mounted") || n ? /*#__PURE__*/ (0, $.jsx)(kt.Provider, {
234
235
  value: n,
235
- children: /*#__PURE__*/ (0, $.jsx)(E, {
236
+ children: /*#__PURE__*/ (0, $.jsx)(T, {
236
237
  ref: t,
237
238
  ...r
238
239
  })
239
240
  }) : null;
240
241
  });
241
- process.env.NODE_ENV !== "production" && (xt.displayName = "MenuPortal");
242
+ process.env.NODE_ENV !== "production" && (jt.displayName = "MenuPortal");
242
243
  //#endregion
243
244
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/positioner/MenuPositioner.mjs
244
- var St = /*#__PURE__*/ Q.forwardRef(function(e, t) {
245
- let { anchor: n, positionMethod: r = "absolute", className: i, render: a, side: o, align: s, sideOffset: c = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f = 5, arrowPadding: p = 5, sticky: m = !1, disableAnchorTracking: h = !1, collisionAvoidance: _ = y, style: v, ...x } = e, { store: S } = st(), C = bt(), T = lt(!0), E = S.useState("parent"), D = S.useState("floatingRootContext"), O = S.useState("floatingTreeRoot"), k = S.useState("mounted"), M = S.useState("open"), N = S.useState("modal"), P = S.useState("openMethod"), F = S.useState("activeTriggerElement"), I = S.useState("transitionStatus"), te = S.useState("positionerElement"), L = S.useState("instantType"), z = S.useState("hasViewport"), re = S.useState("lastOpenChangeReason"), B = S.useState("floatingNodeId"), V = S.useState("floatingParentNodeId"), H = D.useState("domReferenceElement"), ie = Q.useRef(null), ae = l(te, !1, !1), U = n, oe = c, se = u, W = s, ce = _;
246
- E.type === "context-menu" && (U = n ?? E.context?.anchor, W ??= "start", !o && W !== "center" && (se = e.alignOffset ?? 2, oe = e.sideOffset ?? -5));
247
- let le = o, ue = W;
248
- E.type === "menu" ? (le ??= "inline-end", ue ??= "start", ce = e.collisionAvoidance ?? A) : E.type === "menubar" && (le ??= E.context.orientation === "vertical" ? "inline-end" : "bottom", ue ??= "start");
249
- let de = E.type === "context-menu", G = g({
250
- anchor: U,
245
+ var Mt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
246
+ let { anchor: n, positionMethod: r = "absolute", className: i, render: a, side: o, align: s, sideOffset: l = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f = 5, arrowPadding: p = 5, sticky: m = !1, disableAnchorTracking: g = !1, collisionAvoidance: _ = v, style: b, ...x } = e, { store: S } = _t(), w = At(), T = yt(!0), E = S.useState("parent"), D = S.useState("floatingRootContext"), O = S.useState("floatingTreeRoot"), j = S.useState("mounted"), N = S.useState("open"), P = S.useState("modal"), F = S.useState("openMethod"), I = S.useState("activeTriggerElement"), L = S.useState("transitionStatus"), R = S.useState("positionerElement"), B = S.useState("instantType"), te = S.useState("hasViewport"), ne = S.useState("lastOpenChangeReason"), V = S.useState("floatingNodeId"), H = S.useState("floatingParentNodeId"), U = D.useState("domReferenceElement"), re = Q.useRef(null), W = c(R, !1, !1), ie = n, G = l, K = u, ae = s, oe = _;
247
+ E.type === "context-menu" && (ie = n ?? E.context?.anchor, ae ??= "start", !o && ae !== "center" && (K = e.alignOffset ?? 2, G = e.sideOffset ?? -5));
248
+ let se = o, ce = ae;
249
+ E.type === "menu" ? (se ??= "inline-end", ce ??= "start", oe = e.collisionAvoidance ?? k) : E.type === "menubar" && (se ??= E.context.orientation === "vertical" ? "inline-end" : "bottom", ce ??= "start");
250
+ let le = E.type === "context-menu", q = h({
251
+ anchor: ie,
251
252
  floatingRootContext: D,
252
253
  positionMethod: T ? "fixed" : r,
253
- mounted: k,
254
- side: le,
255
- sideOffset: oe,
256
- align: ue,
257
- alignOffset: se,
258
- arrowPadding: de ? 0 : p,
254
+ mounted: j,
255
+ side: se,
256
+ sideOffset: G,
257
+ align: ce,
258
+ alignOffset: K,
259
+ arrowPadding: le ? 0 : p,
259
260
  collisionBoundary: d,
260
261
  collisionPadding: f,
261
262
  sticky: m,
262
- nodeId: B,
263
- keepMounted: C,
264
- disableAnchorTracking: h,
265
- collisionAvoidance: ce,
266
- shiftCrossAxis: de && !("side" in ce && ce.side === "flip"),
263
+ nodeId: V,
264
+ keepMounted: w,
265
+ disableAnchorTracking: g,
266
+ collisionAvoidance: oe,
267
+ shiftCrossAxis: le && !("side" in oe && oe.side === "flip"),
267
268
  externalTree: O,
268
- adaptiveOrigin: z ? ne : void 0
269
+ adaptiveOrigin: te ? ee : void 0
269
270
  });
270
271
  Q.useEffect(() => {
271
272
  function e(e) {
272
- e.open && (e.parentNodeId === B && S.set("hoverEnabled", !1), e.nodeId !== B && e.parentNodeId === S.select("floatingParentNodeId") && S.setOpen(!1, b(R)));
273
+ e.open && (e.parentNodeId === V && S.set("hoverEnabled", !1), e.nodeId !== V && e.parentNodeId === S.select("floatingParentNodeId") && S.setOpen(!1, y(z)));
273
274
  }
274
275
  return O.events.on("menuopenchange", e), () => {
275
276
  O.events.off("menuopenchange", e);
@@ -277,122 +278,122 @@ var St = /*#__PURE__*/ Q.forwardRef(function(e, t) {
277
278
  }, [
278
279
  S,
279
280
  O.events,
280
- B
281
+ V
281
282
  ]), Q.useEffect(() => {
282
283
  if (S.select("floatingParentNodeId") == null) return;
283
284
  function e(e) {
284
285
  if (e.open || e.nodeId !== S.select("floatingParentNodeId")) return;
285
286
  let t = e.reason ?? "sibling-open";
286
- S.setOpen(!1, b(t));
287
+ S.setOpen(!1, y(t));
287
288
  }
288
289
  return O.events.on("menuopenchange", e), () => {
289
290
  O.events.off("menuopenchange", e);
290
291
  };
291
292
  }, [O.events, S]);
292
- let K = ee();
293
+ let J = M();
293
294
  Q.useEffect(() => {
294
- M || K.clear();
295
- }, [M, K]), Q.useEffect(() => {
295
+ N || J.clear();
296
+ }, [N, J]), Q.useEffect(() => {
296
297
  function e(e) {
297
- if (!(!M || e.nodeId !== S.select("floatingParentNodeId"))) if (e.target && F && F !== e.target) {
298
+ if (!(!N || e.nodeId !== S.select("floatingParentNodeId"))) if (e.target && I && I !== e.target) {
298
299
  let e = S.select("closeDelay");
299
- e > 0 ? K.isStarted() || K.start(e, () => {
300
- S.setOpen(!1, b(R));
301
- }) : S.setOpen(!1, b(R));
302
- } else K.clear();
300
+ e > 0 ? J.isStarted() || J.start(e, () => {
301
+ S.setOpen(!1, y(z));
302
+ }) : S.setOpen(!1, y(z));
303
+ } else J.clear();
303
304
  }
304
305
  return O.events.on("itemhover", e), () => {
305
306
  O.events.off("itemhover", e);
306
307
  };
307
308
  }, [
308
309
  O.events,
309
- M,
310
- F,
310
+ N,
311
+ I,
311
312
  S,
312
- K
313
+ J
313
314
  ]), Q.useEffect(() => {
314
315
  let e = {
315
- open: M,
316
- nodeId: B,
317
- parentNodeId: V,
316
+ open: N,
317
+ nodeId: V,
318
+ parentNodeId: H,
318
319
  reason: S.select("lastOpenChangeReason")
319
320
  };
320
321
  O.events.emit("menuopenchange", e);
321
322
  }, [
322
323
  O.events,
323
- M,
324
+ N,
324
325
  S,
325
- B,
326
- V
327
- ]), j(() => {
328
- let e = H, t = ie.current;
329
- if (e && (ie.current = e), t && e && e !== t) {
326
+ V,
327
+ H
328
+ ]), A(() => {
329
+ let e = U, t = re.current;
330
+ if (e && (re.current = e), t && e && e !== t) {
330
331
  S.set("instantType", void 0);
331
332
  let e = new AbortController();
332
- return ae(() => {
333
+ return W(() => {
333
334
  S.set("instantType", "trigger-change");
334
335
  }, e.signal), () => {
335
336
  e.abort();
336
337
  };
337
338
  }
338
339
  }, [
339
- H,
340
- ae,
340
+ U,
341
+ W,
341
342
  S
342
343
  ]);
343
- let q = {
344
- open: M,
345
- side: G.side,
346
- align: G.align,
347
- anchorHidden: G.anchorHidden,
344
+ let Y = {
345
+ open: N,
346
+ side: q.side,
347
+ align: q.align,
348
+ anchorHidden: q.anchorHidden,
348
349
  nested: E.type === "menu",
349
- instant: L
350
- }, fe = E.type === "menubar" && E.context.modal;
351
- Ke(M && (fe || N && re !== "trigger-hover"), P === "touch", te, F);
352
- let pe = Ce(e, q, {
353
- styles: G.positionerStyles,
354
- transitionStatus: I,
350
+ instant: B
351
+ }, ue = E.type === "menubar" && E.context.modal;
352
+ qe(N && (ue || P && ne !== "trigger-hover"), F === "touch", R, I);
353
+ let de = Se(e, Y, {
354
+ styles: q.positionerStyles,
355
+ transitionStatus: L,
355
356
  props: x,
356
357
  refs: [t, S.useStateSetter("positionerElement")],
357
- hidden: !k,
358
- inert: !M
359
- }), me = k && E.type !== "menu" && (E.type !== "menubar" && N && re !== "trigger-hover" || E.type === "menubar" && E.context.modal), he = null;
360
- return E.type === "menubar" ? he = E.context.contentElement : E.type === void 0 && (he = F), /*#__PURE__*/ (0, $.jsxs)(it.Provider, {
361
- value: G,
362
- children: [me && /*#__PURE__*/ (0, $.jsx)(tt, {
358
+ hidden: !j,
359
+ inert: !N
360
+ }), fe = j && E.type !== "menu" && (E.type !== "menubar" && P && ne !== "trigger-hover" || E.type === "menubar" && E.context.modal), pe = null;
361
+ return E.type === "menubar" ? pe = E.context.contentElement : E.type === void 0 && (pe = I), /*#__PURE__*/ (0, $.jsxs)(mt.Provider, {
362
+ value: q,
363
+ children: [fe && /*#__PURE__*/ (0, $.jsx)(nt, {
363
364
  ref: E.type === "context-menu" || E.type === "nested-context-menu" ? E.context.internalBackdropRef : null,
364
- inert: qe(!M),
365
- cutout: he
366
- }), /*#__PURE__*/ (0, $.jsx)(w, {
367
- id: B,
368
- children: /*#__PURE__*/ (0, $.jsx)(Ve, {
365
+ inert: Je(!N),
366
+ cutout: pe
367
+ }), /*#__PURE__*/ (0, $.jsx)(C, {
368
+ id: V,
369
+ children: /*#__PURE__*/ (0, $.jsx)(He, {
369
370
  elementsRef: S.context.itemDomElements,
370
371
  labelsRef: S.context.itemLabels,
371
- children: pe
372
+ children: de
372
373
  })
373
374
  })]
374
375
  });
375
376
  });
376
- process.env.NODE_ENV !== "production" && (St.displayName = "MenuPositioner");
377
+ process.env.NODE_ENV !== "production" && (Mt.displayName = "MenuPositioner");
377
378
  //#endregion
378
379
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/radio-group/MenuRadioGroupContext.mjs
379
- var Ct = /*#__PURE__*/ Q.createContext(void 0);
380
- process.env.NODE_ENV !== "production" && (Ct.displayName = "MenuRadioGroupContext");
381
- function wt() {
382
- let e = Q.useContext(Ct);
380
+ var Nt = /*#__PURE__*/ Q.createContext(void 0);
381
+ process.env.NODE_ENV !== "production" && (Nt.displayName = "MenuRadioGroupContext");
382
+ function Pt() {
383
+ let e = Q.useContext(Nt);
383
384
  if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? H(34) : "Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>.");
384
385
  return e;
385
386
  }
386
387
  //#endregion
387
388
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/radio-group/MenuRadioGroup.mjs
388
- var Tt = /*#__PURE__*/ Q.memo(/*#__PURE__*/ Q.forwardRef(function(e, t) {
389
- let { render: n, className: r, value: i, defaultValue: a, onValueChange: o, disabled: s = !1, style: c, "aria-labelledby": l, ...u } = e, [d, f] = Q.useState(void 0), [p, m] = Re({
389
+ var Ft = /*#__PURE__*/ Q.memo(/*#__PURE__*/ Q.forwardRef(function(e, t) {
390
+ let { render: n, className: r, value: i, defaultValue: a, onValueChange: o, disabled: s = !1, style: c, "aria-labelledby": l, ...u } = e, [d, f] = Q.useState(void 0), [p, m] = ze({
390
391
  controlled: i,
391
392
  default: a,
392
393
  name: "MenuRadioGroup"
393
394
  }), h = Ne((e, t) => {
394
395
  o?.(e, t), !t.isCanceled && m(e);
395
- }), g = U("div", e, {
396
+ }), g = W("div", e, {
396
397
  state: { disabled: s },
397
398
  ref: t,
398
399
  props: {
@@ -410,51 +411,51 @@ var Tt = /*#__PURE__*/ Q.memo(/*#__PURE__*/ Q.forwardRef(function(e, t) {
410
411
  h,
411
412
  s
412
413
  ]);
413
- return /*#__PURE__*/ (0, $.jsx)(ht.Provider, {
414
+ return /*#__PURE__*/ (0, $.jsx)(Tt.Provider, {
414
415
  value: f,
415
- children: /*#__PURE__*/ (0, $.jsx)(Ct.Provider, {
416
+ children: /*#__PURE__*/ (0, $.jsx)(Nt.Provider, {
416
417
  value: _,
417
418
  children: g
418
419
  })
419
420
  });
420
421
  }));
421
- process.env.NODE_ENV !== "production" && (Tt.displayName = "MenuRadioGroup");
422
+ process.env.NODE_ENV !== "production" && (Ft.displayName = "MenuRadioGroup");
422
423
  //#endregion
423
424
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/radio-item/MenuRadioItemContext.mjs
424
- var Et = /*#__PURE__*/ Q.createContext(void 0);
425
- process.env.NODE_ENV !== "production" && (Et.displayName = "MenuRadioItemContext");
426
- function Dt() {
427
- let e = Q.useContext(Et);
425
+ var It = /*#__PURE__*/ Q.createContext(void 0);
426
+ process.env.NODE_ENV !== "production" && (It.displayName = "MenuRadioItemContext");
427
+ function Lt() {
428
+ let e = Q.useContext(It);
428
429
  if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? H(35) : "Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>.");
429
430
  return e;
430
431
  }
431
432
  //#endregion
432
433
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/radio-item/MenuRadioItem.mjs
433
- var Ot = /*#__PURE__*/ Q.forwardRef(function(e, t) {
434
- let { render: n, className: r, id: i, label: a, nativeButton: o = !1, disabled: s = !1, closeOnClick: c = !1, value: l, style: u, ...d } = e, f = ze({ label: a }), p = at(!0), m = S(i), { store: h } = st(), g = h.useState("isActive", f.index), v = h.useState("itemProps"), { value: y, setValue: x, disabled: C } = wt(), w = C || s, T = y === l, { getItemProps: E, itemRef: D } = ft({
434
+ var Rt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
435
+ let { render: n, className: r, id: i, label: a, nativeButton: o = !1, disabled: s = !1, closeOnClick: c = !1, value: l, style: u, ...d } = e, f = Be({ label: a }), p = ht(!0), m = x(i), { store: h } = _t(), _ = h.useState("isActive", f.index), v = h.useState("itemProps"), { value: b, setValue: S, disabled: C } = Pt(), w = C || s, T = b === l, { getItemProps: E, itemRef: D } = St({
435
436
  closeOnClick: c,
436
437
  disabled: w,
437
- highlighted: g,
438
+ highlighted: _,
438
439
  id: m,
439
440
  store: h,
440
441
  nativeButton: o,
441
442
  nodeId: p?.context.nodeId,
442
- itemMetadata: dt
443
+ itemMetadata: xt
443
444
  }), O = Q.useMemo(() => ({
444
445
  disabled: w,
445
- highlighted: g,
446
+ highlighted: _,
446
447
  checked: T
447
448
  }), [
448
449
  w,
449
- g,
450
+ _,
450
451
  T
451
452
  ]);
452
453
  function k(e) {
453
- x(l, b(_, e.nativeEvent, void 0, { preventUnmountOnClose() {} }));
454
+ S(l, y(g, e.nativeEvent, void 0, { preventUnmountOnClose() {} }));
454
455
  }
455
- let A = U("div", e, {
456
+ let A = W("div", e, {
456
457
  state: O,
457
- stateAttributesMapping: mt,
458
+ stateAttributesMapping: wt,
458
459
  props: [
459
460
  v,
460
461
  {
@@ -471,30 +472,30 @@ var Ot = /*#__PURE__*/ Q.forwardRef(function(e, t) {
471
472
  f.ref
472
473
  ]
473
474
  });
474
- return /*#__PURE__*/ (0, $.jsx)(Et.Provider, {
475
+ return /*#__PURE__*/ (0, $.jsx)(It.Provider, {
475
476
  value: O,
476
477
  children: A
477
478
  });
478
479
  });
479
- process.env.NODE_ENV !== "production" && (Ot.displayName = "MenuRadioItem");
480
+ process.env.NODE_ENV !== "production" && (Rt.displayName = "MenuRadioItem");
480
481
  //#endregion
481
482
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/radio-item-indicator/MenuRadioItemIndicator.mjs
482
- var kt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
483
- let { render: n, className: r, style: i, keepMounted: a = !1, ...o } = e, s = Dt(), c = Q.useRef(null), { transitionStatus: l, setMounted: u } = me(s.checked);
484
- return f({
483
+ var zt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
484
+ let { render: n, className: r, style: i, keepMounted: a = !1, ...o } = e, s = Lt(), c = Q.useRef(null), { transitionStatus: l, setMounted: u } = de(s.checked);
485
+ return d({
485
486
  open: s.checked,
486
487
  ref: c,
487
488
  onComplete() {
488
489
  s.checked || u(!1);
489
490
  }
490
- }), U("span", e, {
491
+ }), W("span", e, {
491
492
  state: {
492
493
  checked: s.checked,
493
494
  disabled: s.disabled,
494
495
  highlighted: s.highlighted,
495
496
  transitionStatus: l
496
497
  },
497
- stateAttributesMapping: mt,
498
+ stateAttributesMapping: wt,
498
499
  ref: [t, c],
499
500
  props: {
500
501
  "aria-hidden": !0,
@@ -503,19 +504,19 @@ var kt = /*#__PURE__*/ Q.forwardRef(function(e, t) {
503
504
  enabled: a || s.checked
504
505
  });
505
506
  });
506
- process.env.NODE_ENV !== "production" && (kt.displayName = "MenuRadioItemIndicator");
507
+ process.env.NODE_ENV !== "production" && (zt.displayName = "MenuRadioItemIndicator");
507
508
  //#endregion
508
509
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menubar/MenubarContext.mjs
509
- var At = /*#__PURE__*/ Q.createContext(null);
510
- process.env.NODE_ENV !== "production" && (At.displayName = "MenubarContext");
511
- function jt(e) {
512
- let t = Q.useContext(At);
510
+ var Bt = /*#__PURE__*/ Q.createContext(null);
511
+ process.env.NODE_ENV !== "production" && (Bt.displayName = "MenubarContext");
512
+ function Vt(e) {
513
+ let t = Q.useContext(Bt);
513
514
  if (t === null && !e) throw Error(process.env.NODE_ENV === "production" ? H(5) : "Base UI: MenubarContext is missing. Menubar parts must be placed within <Menubar>.");
514
515
  return t;
515
516
  }
516
517
  //#endregion
517
518
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/store/MenuStore.mjs
518
- var Mt = {
519
+ var Ht = {
519
520
  ...V,
520
521
  disabled: Z((e) => e.parent.type === "menubar" && e.parent.context.disabled || e.disabled),
521
522
  modal: Z((e) => (e.parent.type === void 0 || e.parent.type === "context-menu") && (e.modal ?? !0)),
@@ -540,10 +541,10 @@ var Mt = {
540
541
  if (e.keyboardEventRelay) return e.keyboardEventRelay;
541
542
  if (e.parent.type === "menu") return e.parent.store.select("keyboardEventRelay");
542
543
  })
543
- }, Nt = class e extends Ie {
544
+ }, Ut = class e extends Ie {
544
545
  constructor(e) {
545
546
  super({
546
- ...Pt(),
547
+ ...Wt(),
547
548
  ...e
548
549
  }, {
549
550
  positionerRef: /*#__PURE__*/ Q.createRef(),
@@ -555,8 +556,8 @@ var Mt = {
555
556
  triggerFocusTargetRef: /*#__PURE__*/ Q.createRef(),
556
557
  beforeContentFocusGuardRef: /*#__PURE__*/ Q.createRef(),
557
558
  onOpenChangeComplete: void 0,
558
- triggerElements: new be()
559
- }, Mt), this.unsubscribeParentListener = this.observe("parent", (e) => {
559
+ triggerElements: new ye()
560
+ }, Ht), this.unsubscribeParentListener = this.observe("parent", (e) => {
560
561
  if (this.unsubscribeParentListener?.(), e.type === "menu") {
561
562
  let t = e.store.select("rootId"), n = e.store.select("floatingTreeRoot"), r = e.store.select("keyboardEventRelay");
562
563
  this.unsubscribeParentListener = e.store.subscribe(() => {
@@ -580,9 +581,9 @@ var Mt = {
580
581
  }
581
582
  unsubscribeParentListener = null;
582
583
  };
583
- function Pt() {
584
+ function Wt() {
584
585
  return {
585
- ...De(),
586
+ ...Ee(),
586
587
  disabled: !1,
587
588
  modal: !0,
588
589
  openMethod: null,
@@ -595,10 +596,10 @@ function Pt() {
595
596
  hoverEnabled: !0,
596
597
  instantType: void 0,
597
598
  openChangeReason: null,
598
- floatingTreeRoot: new C(),
599
+ floatingTreeRoot: new S(),
599
600
  floatingNodeId: void 0,
600
601
  floatingParentNodeId: null,
601
- itemProps: xe,
602
+ itemProps: be,
602
603
  keyboardEventRelay: void 0,
603
604
  closeDelay: 0,
604
605
  hasViewport: !1
@@ -606,230 +607,230 @@ function Pt() {
606
607
  }
607
608
  //#endregion
608
609
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/submenu-root/MenuSubmenuRootContext.mjs
609
- var Ft = /*#__PURE__*/ Q.createContext(void 0);
610
- process.env.NODE_ENV !== "production" && (Ft.displayName = "MenuSubmenuRootContext");
611
- function It() {
612
- return Q.useContext(Ft);
610
+ var Gt = /*#__PURE__*/ Q.createContext(void 0);
611
+ process.env.NODE_ENV !== "production" && (Gt.displayName = "MenuSubmenuRootContext");
612
+ function Kt() {
613
+ return Q.useContext(Gt);
613
614
  }
614
615
  //#endregion
615
616
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/root/MenuRoot.mjs
616
- var Lt = M(function(e) {
617
- let { children: t, open: n, onOpenChange: r, onOpenChangeComplete: i, defaultOpen: a = !1, disabled: o = !1, modal: c, loopFocus: l = !0, orientation: u = "vertical", actionsRef: f, closeParentOnEsc: p = !1, handle: m, triggerId: h, defaultTriggerId: g = null, highlightItemOnHover: _ = !0 } = e, v = lt(!0), y = st(!0), x = jt(!0), S = It(), C = Q.useMemo(() => S && y ? {
617
+ var qt = j(function(e) {
618
+ let { children: t, open: n, onOpenChange: r, onOpenChangeComplete: i, defaultOpen: o = !1, disabled: s = !1, modal: c, loopFocus: l = !0, orientation: d = "vertical", actionsRef: f, closeParentOnEsc: p = !1, handle: m, triggerId: h, defaultTriggerId: g = null, highlightItemOnHover: _ = !0 } = e, v = yt(!0), b = _t(!0), x = Vt(!0), S = Kt(), C = Q.useMemo(() => S && b ? {
618
619
  type: "menu",
619
- store: y.store
620
+ store: b.store
620
621
  } : x ? {
621
622
  type: "menubar",
622
623
  context: x
623
- } : v && !y ? {
624
+ } : v && !b ? {
624
625
  type: "context-menu",
625
626
  context: v
626
627
  } : { type: void 0 }, [
627
628
  v,
628
- y,
629
+ b,
629
630
  x,
630
631
  S
631
- ]), w = Nt.useStore(m?.store, {
632
- open: a,
632
+ ]), T = Ut.useStore(m?.store, {
633
+ open: o,
633
634
  openProp: n,
634
635
  activeTriggerId: g,
635
636
  triggerIdProp: h,
636
637
  parent: C
637
638
  });
638
- le(w, n, a, g), w.useControlledProp("openProp", n), w.useControlledProp("triggerIdProp", h), w.useContextCallback("onOpenChangeComplete", i);
639
- let E = T(), D = T(), O = w.useState("floatingTreeRoot"), k = s(O), A = pe(), M = w.useState("open"), N = w.useState("activeTriggerElement"), P = w.useState("positionerElement"), F = w.useState("hoverEnabled"), ne = w.useState("disabled"), L = w.useState("lastOpenChangeReason"), R = w.useState("parent"), z = w.useState("activeIndex"), re = w.useState("payload"), B = w.useState("floatingParentNodeId"), V = Q.useRef(null), H = Q.useRef(R.type !== "context-menu"), ie = ee(), U = Q.useRef(!0), se = ee(), W = B != null;
640
- process.env.NODE_ENV !== "production" && R.type !== void 0 && c !== void 0 && console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");
641
- let { openMethod: ue, triggerProps: de } = Ye(M);
642
- w.useSyncedValues({
643
- disabled: o,
639
+ oe(T, n, o, g), T.useControlledProp("openProp", n), T.useControlledProp("triggerIdProp", h), T.useContextCallback("onOpenChangeComplete", i);
640
+ let E = w(), D = w(), O = T.useState("floatingTreeRoot"), k = a(O), j = ue(), N = T.useState("open"), P = T.useState("activeTriggerElement"), F = T.useState("positionerElement"), ee = T.useState("hoverEnabled"), R = T.useState("disabled"), z = T.useState("lastOpenChangeReason"), B = T.useState("parent"), te = T.useState("activeIndex"), ne = T.useState("payload"), V = T.useState("floatingParentNodeId"), H = Q.useRef(null), U = Q.useRef(B.type !== "context-menu"), W = M(), G = Q.useRef(!0), K = M(), se = V != null;
641
+ process.env.NODE_ENV !== "production" && B.type !== void 0 && c !== void 0 && console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");
642
+ let { openMethod: ce, triggerProps: le } = Xe(N);
643
+ T.useSyncedValues({
644
+ disabled: s,
644
645
  highlightItemOnHover: _,
645
- modal: R.type === void 0 ? c : void 0,
646
- openMethod: ue,
646
+ modal: B.type === void 0 ? c : void 0,
647
+ openMethod: ce,
647
648
  rootId: E
648
- }), oe(w);
649
- let { forceUnmount: G } = Se(M, w, () => {
650
- w.update({
649
+ }), ie(T);
650
+ let { forceUnmount: q } = xe(N, T, () => {
651
+ T.update({
651
652
  allowMouseEnter: !1,
652
653
  stickIfOpen: !0
653
654
  });
654
655
  });
655
- j(() => {
656
- v && !y ? w.update({
656
+ A(() => {
657
+ v && !b ? T.update({
657
658
  parent: {
658
659
  type: "context-menu",
659
660
  context: v
660
661
  },
661
662
  floatingNodeId: k,
662
- floatingParentNodeId: A
663
- }) : y && w.update({
663
+ floatingParentNodeId: j
664
+ }) : b && T.update({
664
665
  floatingNodeId: k,
665
- floatingParentNodeId: A
666
+ floatingParentNodeId: j
666
667
  });
667
668
  }, [
668
669
  v,
669
- y,
670
+ b,
670
671
  k,
671
- A,
672
- w
672
+ j,
673
+ T
673
674
  ]), Q.useEffect(() => {
674
- if (M || (V.current = null), R.type === "context-menu") {
675
- if (!M) {
676
- ie.clear(), H.current = !1;
675
+ if (N || (H.current = null), B.type === "context-menu") {
676
+ if (!N) {
677
+ W.clear(), U.current = !1;
677
678
  return;
678
679
  }
679
- ie.start(500, () => {
680
- H.current = !0;
680
+ W.start(500, () => {
681
+ U.current = !0;
681
682
  });
682
683
  }
683
684
  }, [
684
- ie,
685
- M,
686
- R.type
687
- ]), j(() => {
688
- !M && !F && w.set("hoverEnabled", !0);
685
+ W,
686
+ N,
687
+ B.type
688
+ ]), A(() => {
689
+ !N && !ee && T.set("hoverEnabled", !0);
689
690
  }, [
690
- M,
691
- F,
692
- w
691
+ N,
692
+ ee,
693
+ T
693
694
  ]);
694
- let K = Ne((e, t) => {
695
+ let J = Ne((e, t) => {
695
696
  let n = t.reason;
696
- if (M === e && t.trigger === N && L === n) return;
697
- let i = ae(t);
698
- if (!e && t.trigger == null && (t.trigger = N ?? void 0), r?.(e, t), t.isCanceled) return;
699
- w.state.floatingRootContext.dispatchOpenChange(e, t);
697
+ if (N === e && t.trigger === P && z === n) return;
698
+ let i = re(t);
699
+ if (!e && t.trigger == null && (t.trigger = P ?? void 0), r?.(e, t), t.isCanceled) return;
700
+ T.state.floatingRootContext.dispatchOpenChange(e, t);
700
701
  let a = t.event;
701
- if (e === !1 && a?.type === "click" && a.pointerType === "touch" && !U.current) return;
702
- e && n === "trigger-focus" ? (U.current = !1, se.start(300, () => {
703
- U.current = !0;
704
- })) : (U.current = !0, se.clear());
702
+ if (e === !1 && a?.type === "click" && a.pointerType === "touch" && !G.current) return;
703
+ e && n === "trigger-focus" ? (G.current = !1, K.start(300, () => {
704
+ G.current = !0;
705
+ })) : (G.current = !0, K.clear());
705
706
  let o = (n === "trigger-press" || n === "item-press") && a.detail === 0 && a?.isTrusted, s = !e && (n === "escape-key" || n == null), c = {
706
707
  open: e,
707
708
  openChangeReason: n
708
709
  };
709
- V.current = t.event ?? null, Ae(c, e, t.trigger, i()), w.update(c), R.type === "menubar" && (n === "trigger-focus" || n === "focus-out" || n === "trigger-hover" || n === "list-navigation" || n === "sibling-open") ? w.set("instantType", "group") : o || s ? w.set("instantType", o ? "click" : "dismiss") : w.set("instantType", void 0);
710
- }), q = je({
711
- popupStore: w,
710
+ H.current = t.event ?? null, Ae(c, e, t.trigger, i()), T.update(c), B.type === "menubar" && (n === "trigger-focus" || n === "focus-out" || n === "trigger-hover" || n === "list-navigation" || n === "sibling-open") ? T.set("instantType", "group") : o || s ? T.set("instantType", o ? "click" : "dismiss") : T.set("instantType", void 0);
711
+ }), Y = je({
712
+ popupStore: T,
712
713
  floatingId: D,
713
- nested: A != null,
714
- onOpenChange: K
715
- }), fe = q.context.events;
714
+ nested: j != null,
715
+ onOpenChange: J
716
+ }), de = Y.context.events;
716
717
  Q.useEffect(() => {
717
- let e = ({ open: e, eventDetails: t }) => K(e, t);
718
- return fe.on("setOpen", e), () => {
719
- fe?.off("setOpen", e);
718
+ let e = ({ open: e, eventDetails: t }) => J(e, t);
719
+ return de.on("setOpen", e), () => {
720
+ de?.off("setOpen", e);
720
721
  };
721
- }, [fe, K]);
722
- let me = Q.useCallback(() => {
723
- w.setOpen(!1, b(I));
724
- }, [w]);
722
+ }, [de, J]);
723
+ let pe = Q.useCallback(() => {
724
+ T.setOpen(!1, y(I));
725
+ }, [T]);
725
726
  Q.useImperativeHandle(f, () => ({
726
- unmount: G,
727
- close: me
728
- }), [G, me]);
729
- let ge;
730
- R.type === "context-menu" && (ge = R.context), Q.useImperativeHandle(ge?.positionerRef, () => P, [P]), Q.useImperativeHandle(ge?.actionsRef, () => ({ setOpen: K }), [K]);
731
- let J = d(q, {
732
- enabled: !ne,
733
- bubbles: { escapeKey: p && R.type === "menu" },
727
+ unmount: q,
728
+ close: pe
729
+ }), [q, pe]);
730
+ let me;
731
+ B.type === "context-menu" && (me = B.context), Q.useImperativeHandle(me?.positionerRef, () => F, [F]), Q.useImperativeHandle(me?.actionsRef, () => ({ setOpen: J }), [J]);
732
+ let ge = u(Y, {
733
+ enabled: !R,
734
+ bubbles: { escapeKey: p && B.type === "menu" },
734
735
  outsidePress() {
735
- return R.type !== "context-menu" || V.current?.type === "contextmenu" ? !0 : H.current;
736
+ return B.type !== "context-menu" || H.current?.type === "contextmenu" ? !0 : U.current;
736
737
  },
737
- externalTree: W ? O : void 0
738
- }), ve = te(), ye = Q.useCallback((e) => {
739
- w.select("activeIndex") !== e && w.set("activeIndex", e);
740
- }, [w]), Y = Ue(q, {
741
- enabled: !ne,
742
- listRef: w.context.itemDomElements,
743
- activeIndex: z,
744
- nested: R.type !== void 0,
738
+ externalTree: se ? O : void 0
739
+ }), _e = L(), ve = Q.useCallback((e) => {
740
+ T.select("activeIndex") !== e && T.set("activeIndex", e);
741
+ }, [T]), ye = We(Y, {
742
+ enabled: !R,
743
+ listRef: T.context.itemDomElements,
744
+ activeIndex: te,
745
+ nested: B.type !== void 0,
745
746
  loopFocus: l,
746
- orientation: u,
747
- parentOrientation: R.type === "menubar" ? R.context.orientation : void 0,
748
- rtl: ve === "rtl",
749
- disabledIndices: ce,
750
- onNavigate: ye,
751
- openOnArrowKeyDown: R.type !== "context-menu",
752
- externalTree: W ? O : void 0,
747
+ orientation: d,
748
+ parentOrientation: B.type === "menubar" ? B.context.orientation : void 0,
749
+ rtl: _e === "rtl",
750
+ disabledIndices: ae,
751
+ onNavigate: ve,
752
+ openOnArrowKeyDown: B.type !== "context-menu",
753
+ externalTree: se ? O : void 0,
753
754
  focusItemOnHover: _
754
- }), be = Q.useCallback((e) => {
755
- w.context.typingRef.current = e;
756
- }, [w]), Ce = We(q, {
757
- enabled: !ne,
758
- listRef: w.context.itemLabels,
759
- elementsRef: w.context.itemDomElements,
760
- activeIndex: z,
755
+ }), Se = Q.useCallback((e) => {
756
+ T.context.typingRef.current = e;
757
+ }, [T]), Ce = Ge(Y, {
758
+ enabled: !R,
759
+ listRef: T.context.itemLabels,
760
+ elementsRef: T.context.itemDomElements,
761
+ activeIndex: te,
761
762
  resetMs: 500,
762
763
  onMatch: (e) => {
763
- M && e !== z && w.set("activeIndex", e);
764
+ N && e !== te && T.set("activeIndex", e);
764
765
  },
765
- onTyping: be
766
+ onTyping: Se
766
767
  });
767
- _e(w, {
768
- floatingRootContext: q,
768
+ he(T, {
769
+ floatingRootContext: Y,
769
770
  activeTriggerProps: Q.useMemo(() => {
770
- let e = Pe(Ce.reference, Y.reference, J.reference, { onMouseMove() {
771
- w.set("allowMouseEnter", !0);
772
- } }, de);
773
- return e["aria-haspopup"] = "menu", e["aria-expanded"] = M, e;
771
+ let e = Pe(Ce.reference, ye.reference, ge.reference, { onMouseMove() {
772
+ T.set("allowMouseEnter", !0);
773
+ } }, le);
774
+ return e["aria-haspopup"] = "menu", e["aria-expanded"] = N, e;
774
775
  }, [
775
- w,
776
+ T,
776
777
  Ce.reference,
777
- Y.reference,
778
- J.reference,
779
- de,
780
- M
778
+ ye.reference,
779
+ ge.reference,
780
+ le,
781
+ N
781
782
  ]),
782
783
  inactiveTriggerProps: Q.useMemo(() => {
783
- let e = Pe(Y.trigger, J.trigger, de);
784
+ let e = Pe(ye.trigger, ge.trigger, le);
784
785
  return e["aria-haspopup"] = "menu", e["aria-expanded"] = !1, e;
785
786
  }, [
786
- Y.trigger,
787
- J.trigger,
788
- de
787
+ ye.trigger,
788
+ ge.trigger,
789
+ le
789
790
  ]),
790
791
  popupProps: Q.useMemo(() => Pe(Oe, {
791
792
  id: D,
792
793
  role: "menu",
793
- "aria-labelledby": N?.id,
794
+ "aria-labelledby": P?.id,
794
795
  onMouseMove() {
795
- w.set("allowMouseEnter", !0), R.type === "menu" && w.set("hoverEnabled", !1);
796
+ T.set("allowMouseEnter", !0), B.type === "menu" && T.set("hoverEnabled", !1);
796
797
  },
797
798
  onClick() {
798
- w.select("hoverEnabled") && w.set("hoverEnabled", !1);
799
+ T.select("hoverEnabled") && T.set("hoverEnabled", !1);
799
800
  },
800
801
  onKeyDown(e) {
801
- let t = w.select("keyboardEventRelay");
802
+ let t = T.select("keyboardEventRelay");
802
803
  t && !e.isPropagationStopped() && t(e);
803
804
  }
804
- }, Ce.floating, Y.floating, J.floating), [
805
- N,
805
+ }, Ce.floating, ye.floating, ge.floating), [
806
+ P,
806
807
  D,
807
- R.type,
808
- w,
808
+ B.type,
809
+ T,
809
810
  Ce.floating,
810
- Y.floating,
811
- J.floating
811
+ ye.floating,
812
+ ge.floating
812
813
  ]),
813
- itemProps: Y.item ?? xe
814
+ itemProps: ye.item ?? be
814
815
  });
815
816
  let we = Q.useMemo(() => ({
816
- store: w,
817
+ store: T,
817
818
  parent: C
818
- }), [w, C]), Te = /*#__PURE__*/ (0, $.jsx)(ot.Provider, {
819
+ }), [T, C]), Te = /*#__PURE__*/ (0, $.jsx)(gt.Provider, {
819
820
  value: we,
820
- children: typeof t == "function" ? t({ payload: re }) : t
821
+ children: typeof t == "function" ? t({ payload: ne }) : t
821
822
  });
822
- return R.type === void 0 || R.type === "context-menu" ? /*#__PURE__*/ (0, $.jsx)(he, {
823
+ return B.type === void 0 || B.type === "context-menu" ? /*#__PURE__*/ (0, $.jsx)(fe, {
823
824
  externalTree: O,
824
825
  children: Te
825
826
  }) : Te;
826
827
  });
827
- process.env.NODE_ENV !== "production" && (Lt.displayName = "MenuRoot");
828
+ process.env.NODE_ENV !== "production" && (qt.displayName = "MenuRoot");
828
829
  //#endregion
829
830
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/composite/item/CompositeItem.mjs
830
- function Rt(e) {
831
- let { render: t, className: n, style: r, state: i = xe, props: a = ce, refs: o = ce, metadata: s, stateAttributesMapping: c, tag: l = "div", ...u } = e, { compositeProps: d, compositeRef: f } = nt({ metadata: s });
832
- return U(l, e, {
831
+ function Jt(e) {
832
+ let { render: t, className: n, style: r, state: i = be, props: a = ae, refs: o = ae, metadata: s, stateAttributesMapping: c, tag: l = "div", ...u } = e, { compositeProps: d, compositeRef: f } = rt({ metadata: s });
833
+ return W(l, e, {
833
834
  state: i,
834
835
  ref: [...o, f],
835
836
  props: [
@@ -842,29 +843,29 @@ function Rt(e) {
842
843
  }
843
844
  //#endregion
844
845
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/utils/findRootOwnerId.mjs
845
- function zt(e) {
846
- if (o(e) && e.hasAttribute("data-rootownerid")) return e.getAttribute("data-rootownerid") ?? void 0;
847
- if (!fe(e)) return zt(u(e));
846
+ function Yt(e) {
847
+ if (i(e) && e.hasAttribute("data-rootownerid")) return e.getAttribute("data-rootownerid") ?? void 0;
848
+ if (!Y(e)) return Yt(l(e));
848
849
  }
849
850
  //#endregion
850
851
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/utils/popups/useTriggerFocusGuards.mjs
851
- var Bt = /* @__PURE__ */ e(n(), 1);
852
- function Vt(e, t) {
852
+ var Xt = /* @__PURE__ */ e(o(), 1);
853
+ function Zt(e, t) {
853
854
  let n = Q.useRef(null);
854
855
  function r(t) {
855
- Bt.flushSync(() => {
856
- e.setOpen(!1, b(P, t.nativeEvent, t.currentTarget));
857
- }), v(n.current)?.focus();
856
+ Xt.flushSync(() => {
857
+ e.setOpen(!1, y(P, t.nativeEvent, t.currentTarget));
858
+ }), _(n.current)?.focus();
858
859
  }
859
860
  function i(n) {
860
861
  let r = e.select("positionerElement");
861
- if (r && we(n, r)) e.context.beforeContentFocusGuardRef.current?.focus();
862
+ if (r && Ce(n, r)) e.context.beforeContentFocusGuardRef.current?.focus();
862
863
  else {
863
- Bt.flushSync(() => {
864
- e.setOpen(!1, b(P, n.nativeEvent, n.currentTarget));
864
+ Xt.flushSync(() => {
865
+ e.setOpen(!1, y(P, n.nativeEvent, n.currentTarget));
865
866
  });
866
- let i = p(e.context.triggerFocusTargetRef.current || t.current);
867
- for (; i !== null && J(r, i);) {
867
+ let i = f(e.context.triggerFocusTargetRef.current || t.current);
868
+ for (; i !== null && me(r, i);) {
868
869
  let e = i;
869
870
  if (i = F(i), i === e) break;
870
871
  }
@@ -879,18 +880,18 @@ function Vt(e, t) {
879
880
  }
880
881
  //#endregion
881
882
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/utils/useMixedToggleClickHandler.mjs
882
- function Ht(e) {
883
+ function Qt(e) {
883
884
  let { enabled: t = !0, mouseDownAction: n, open: r } = e, i = Q.useRef(!1);
884
885
  return Q.useMemo(() => t ? {
885
886
  onMouseDown: (e) => {
886
- (n === "open" && !r || n === "close" && r) && (i.current = !0, ye(e.currentTarget).addEventListener("click", () => {
887
+ (n === "open" && !r || n === "close" && r) && (i.current = !0, _e(e.currentTarget).addEventListener("click", () => {
887
888
  i.current = !1;
888
889
  }, { once: !0 }));
889
890
  },
890
891
  onClick: (e) => {
891
892
  i.current && (i.current = !1, e.preventBaseUIHandler());
892
893
  }
893
- } : xe, [
894
+ } : be, [
894
895
  t,
895
896
  n,
896
897
  r
@@ -898,19 +899,19 @@ function Ht(e) {
898
899
  }
899
900
  //#endregion
900
901
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/menu/trigger/MenuTrigger.mjs
901
- var Ut = 2, Wt = c(function(e, t) {
902
- let { render: n, className: r, style: a, disabled: o = !1, nativeButton: c = !0, id: l, openOnHover: u, delay: d = 100, closeDelay: f = 0, handle: p, payload: m, ...h } = e, g = st(!0), _ = p?.store ?? g?.store;
902
+ var $t = 2, en = s(function(e, t) {
903
+ let { render: r, className: i, style: o, disabled: s = !1, nativeButton: c = !0, id: l, openOnHover: u, delay: d = 100, closeDelay: f = 0, handle: p, payload: m, ...h } = e, g = _t(!0), _ = p?.store ?? g?.store;
903
904
  if (!_) throw Error(process.env.NODE_ENV === "production" ? H(85) : "Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.");
904
- let v = S(l), y = _.useState("isTriggerActive", v), b = _.useState("floatingRootContext"), w = _.useState("isOpenedByTrigger", v), T = _.useState("triggerPopupId", v), E = Q.useRef(null), O = Kt(), k = Fe(!0), A = x(), j = Q.useMemo(() => A ?? new C(), [A]), { registerTrigger: M, isMountedByThisTrigger: N } = re(v, E, _, {
905
+ let v = x(l), y = _.useState("isTriggerActive", v), C = _.useState("floatingRootContext"), w = _.useState("isOpenedByTrigger", v), T = _.useState("triggerPopupId", v), D = Q.useRef(null), O = nn(), k = Fe(!0), A = b(), j = Q.useMemo(() => A ?? new S(), [A]), { registerTrigger: N, isMountedByThisTrigger: P } = te(v, D, _, {
905
906
  payload: m,
906
907
  closeDelay: f,
907
908
  parent: O,
908
909
  floatingTreeRoot: j,
909
- floatingNodeId: s(j),
910
- floatingParentNodeId: pe(),
910
+ floatingNodeId: a(j),
911
+ floatingParentNodeId: ue(),
911
912
  keyboardEventRelay: k?.relayKeyboardEvent
912
- }), P = O.type === "menubar", F = _.useState("disabled"), I = o || F || P && O.context.disabled, { getButtonProps: te, buttonRef: ne } = z({
913
- disabled: I,
913
+ }), F = O.type === "menubar", I = _.useState("disabled"), L = s || I || F && O.context.disabled, { getButtonProps: ee, buttonRef: R } = B({
914
+ disabled: L,
914
915
  native: c
915
916
  });
916
917
  Q.useEffect(() => {
@@ -920,104 +921,104 @@ var Ut = 2, Wt = c(function(e, t) {
920
921
  w,
921
922
  O.type
922
923
  ]);
923
- let L = Q.useRef(null), R = ee(), B = Ne((e) => {
924
- if (!L.current) return;
925
- R.clear(), _.context.allowMouseUpTriggerRef.current = !1;
924
+ let z = Q.useRef(null), ne = M(), V = Ne((e) => {
925
+ if (!z.current) return;
926
+ ne.clear(), _.context.allowMouseUpTriggerRef.current = !1;
926
927
  let t = e.target;
927
- if (J(L.current, t) || J(_.select("positionerElement"), t) || t === L.current || t != null && zt(t) === _.select("rootId")) return;
928
- let n = Ze(L.current);
929
- e.clientX >= n.left - Ut && e.clientX <= n.right + Ut && e.clientY >= n.top - Ut && e.clientY <= n.bottom + Ut || j.events.emit("close", {
928
+ if (me(z.current, t) || me(_.select("positionerElement"), t) || t === z.current || t != null && Yt(t) === _.select("rootId")) return;
929
+ let n = Qe(z.current);
930
+ e.clientX >= n.left - $t && e.clientX <= n.right + $t && e.clientY >= n.top - $t && e.clientY <= n.bottom + $t || j.events.emit("close", {
930
931
  domEvent: e,
931
932
  reason: Le
932
933
  });
933
934
  });
934
935
  Q.useEffect(() => {
935
- w && _.select("lastOpenChangeReason") === "trigger-hover" && ye(L.current).addEventListener("mouseup", B, { once: !0 });
936
+ w && _.select("lastOpenChangeReason") === "trigger-hover" && _e(z.current).addEventListener("mouseup", V, { once: !0 });
936
937
  }, [
937
938
  w,
938
- B,
939
+ V,
939
940
  _
940
941
  ]);
941
- let V = P && O.context.hasSubmenuOpen, ie = i(b, {
942
- enabled: (u ?? V) && !I && O.type !== "context-menu" && (!P || V && !N),
943
- handleClose: D({ blockPointerEvents: !P }),
942
+ let U = F && O.context.hasSubmenuOpen, re = n(C, {
943
+ enabled: (u ?? U) && !L && O.type !== "context-menu" && (!F || U && !P),
944
+ handleClose: E({ blockPointerEvents: !F }),
944
945
  mouseOnly: !0,
945
946
  move: !1,
946
947
  restMs: O.type === void 0 ? d : void 0,
947
948
  delay: { close: f },
948
- triggerElementRef: E,
949
+ triggerElementRef: D,
949
950
  externalTree: j,
950
951
  isActiveTrigger: y,
951
952
  isClosing: () => _.select("transitionStatus") === "ending"
952
- }), ae = Gt(w, _.select("lastOpenChangeReason")), oe = $e(b, {
953
- enabled: !I && O.type !== "context-menu",
954
- event: w && P ? "click" : "mousedown",
953
+ }), ie = tn(w, _.select("lastOpenChangeReason")), G = et(C, {
954
+ enabled: !L && O.type !== "context-menu",
955
+ event: w && F ? "click" : "mousedown",
955
956
  toggle: !0,
956
957
  ignoreMouse: !1,
957
- stickIfOpen: O.type === void 0 ? ae : !1
958
- }), se = ke(b, { enabled: !I && V }), W = Ht({
958
+ stickIfOpen: O.type === void 0 ? ie : !1
959
+ }), K = ke(C, { enabled: !L && U }), ae = Qt({
959
960
  open: w,
960
- enabled: P,
961
+ enabled: F,
961
962
  mouseDownAction: "open"
962
- }), ce = Q.useMemo(() => Pe(se.reference, oe.reference), [se.reference, oe.reference]), le = _.useState("triggerProps", N), { preFocusGuardRef: ue, handlePreFocusGuardFocus: de, handleFocusTargetFocus: G } = Vt(_, E), q = {
963
- disabled: I,
963
+ }), oe = Q.useMemo(() => Pe(K.reference, G.reference), [K.reference, G.reference]), se = _.useState("triggerProps", P), { preFocusGuardRef: ce, handlePreFocusGuardFocus: le, handleFocusTargetFocus: J } = Zt(_, D), Y = {
964
+ disabled: L,
964
965
  open: w
965
- }, fe = [
966
- L,
966
+ }, de = [
967
+ z,
967
968
  t,
968
- ne,
969
- M,
970
- E
971
- ], me = [
972
- ce,
973
- ie ?? xe,
974
- le,
969
+ R,
970
+ N,
971
+ D
972
+ ], fe = [
973
+ oe,
974
+ re ?? be,
975
+ se,
975
976
  {
976
977
  "aria-haspopup": "menu",
977
978
  "aria-controls": T,
978
979
  id: v,
979
980
  onMouseDown: (e) => {
980
- _.select("open") || (R.start(200, () => {
981
+ _.select("open") || (ne.start(200, () => {
981
982
  _.context.allowMouseUpTriggerRef.current = !0;
982
- }), ye(e.currentTarget).addEventListener("mouseup", B, { once: !0 }));
983
+ }), _e(e.currentTarget).addEventListener("mouseup", V, { once: !0 }));
983
984
  }
984
985
  },
985
- P ? { role: "menuitem" } : {},
986
- W,
986
+ F ? { role: "menuitem" } : {},
987
+ ae,
987
988
  h,
988
- te
989
- ], he = U("button", e, {
990
- enabled: !P,
991
- stateAttributesMapping: K,
992
- state: q,
993
- ref: fe,
994
- props: me
989
+ ee
990
+ ], pe = W("button", e, {
991
+ enabled: !F,
992
+ stateAttributesMapping: q,
993
+ state: Y,
994
+ ref: de,
995
+ props: fe
995
996
  });
996
- return P ? /*#__PURE__*/ (0, $.jsx)(Rt, {
997
+ return F ? /*#__PURE__*/ (0, $.jsx)(Jt, {
997
998
  tag: "button",
998
- render: n,
999
- className: r,
1000
- style: a,
1001
- state: q,
1002
- refs: fe,
1003
- props: me,
1004
- stateAttributesMapping: K
999
+ render: r,
1000
+ className: i,
1001
+ style: o,
1002
+ state: Y,
1003
+ refs: de,
1004
+ props: fe,
1005
+ stateAttributesMapping: q
1005
1006
  }) : w ? /*#__PURE__*/ (0, $.jsxs)(Q.Fragment, { children: [
1006
- /*#__PURE__*/ (0, $.jsx)(Te, {
1007
- ref: ue,
1008
- onFocus: de
1007
+ /*#__PURE__*/ (0, $.jsx)(we, {
1008
+ ref: ce,
1009
+ onFocus: le
1009
1010
  }, `${v}-pre-focus-guard`),
1010
- /*#__PURE__*/ (0, $.jsx)(Q.Fragment, { children: he }, v),
1011
- /*#__PURE__*/ (0, $.jsx)(Te, {
1011
+ /*#__PURE__*/ (0, $.jsx)(Q.Fragment, { children: pe }, v),
1012
+ /*#__PURE__*/ (0, $.jsx)(we, {
1012
1013
  ref: _.context.triggerFocusTargetRef,
1013
- onFocus: G
1014
+ onFocus: J
1014
1015
  }, `${v}-post-focus-guard`)
1015
- ] }) : /*#__PURE__*/ (0, $.jsx)(Q.Fragment, { children: he }, v);
1016
+ ] }) : /*#__PURE__*/ (0, $.jsx)(Q.Fragment, { children: pe }, v);
1016
1017
  });
1017
- process.env.NODE_ENV !== "production" && (Wt.displayName = "MenuTrigger");
1018
- function Gt(e, t) {
1019
- let n = ee(), [r, i] = Q.useState(!1);
1020
- return j(() => {
1018
+ process.env.NODE_ENV !== "production" && (en.displayName = "MenuTrigger");
1019
+ function tn(e, t) {
1020
+ let n = M(), [r, i] = Q.useState(!1);
1021
+ return A(() => {
1021
1022
  e && t === "trigger-hover" ? (i(!0), n.start(500, () => {
1022
1023
  i(!1);
1023
1024
  })) : e || (n.clear(), i(!1));
@@ -1027,8 +1028,8 @@ function Gt(e, t) {
1027
1028
  n
1028
1029
  ]), r;
1029
1030
  }
1030
- function Kt() {
1031
- let e = lt(!0), t = st(!0), n = jt(!0);
1031
+ function nn() {
1032
+ let e = yt(!0), t = _t(!0), n = Vt(!0);
1032
1033
  return Q.useMemo(() => n ? {
1033
1034
  type: "menubar",
1034
1035
  context: n
@@ -1043,14 +1044,14 @@ function Kt() {
1043
1044
  }
1044
1045
  //#endregion
1045
1046
  //#region src/client/components/ui/menu-item.tsx
1046
- var qt = m.rounded, Jt = (0, Q.createContext)(null);
1047
- function Yt() {
1048
- let e = (0, Q.useContext)(Jt);
1047
+ var rn = p.rounded, an = (0, Q.createContext)(null);
1048
+ function on() {
1049
+ let e = (0, Q.useContext)(an);
1049
1050
  if (!e) throw Error("useDropdown must be used within a Dropdown");
1050
1051
  return e;
1051
1052
  }
1052
- var Xt = (0, Q.forwardRef)(({ icon: e, label: t, customContent: n, index: r, checked: i, onSelect: a, disabled: o, closeOnClick: s, className: c, onClick: l, ...u }, d) => {
1053
- let f = (0, Q.useRef)(null), p = (0, Q.useRef)(!1), { registerItem: m, activeIndex: h, checkedIndex: g, renderMenuItem: _ } = Yt();
1053
+ var sn = (0, Q.forwardRef)(({ icon: e, label: t, customContent: n, index: r, checked: i, onSelect: a, disabled: o, closeOnClick: s, className: c, onClick: l, ...u }, d) => {
1054
+ let f = (0, Q.useRef)(null), p = (0, Q.useRef)(!1), { registerItem: m, activeIndex: h, checkedIndex: g, renderMenuItem: _ } = on();
1054
1055
  (0, Q.useEffect)(() => (m(r, f.current), () => m(r, null)), [r, m]), (0, Q.useEffect)(() => {
1055
1056
  p.current = !0;
1056
1057
  }, []);
@@ -1058,7 +1059,7 @@ var Xt = (0, Q.forwardRef)(({ icon: e, label: t, customContent: n, index: r, che
1058
1059
  f.current = e, typeof d == "function" ? d(e) : d && (d.current = e);
1059
1060
  }, x = o ? void 0 : (e) => {
1060
1061
  l?.(e), a?.();
1061
- }, S = k(`relative z-10 flex h-9 items-center gap-2 ${qt.item} px-2 cursor-pointer outline-none`, o && "opacity-50 pointer-events-none", c), C = t ?? (typeof n == "string" ? n : "Menu item"), w = n ?? /* @__PURE__ */ (0, $.jsxs)($.Fragment, { children: [
1062
+ }, S = O(`relative z-10 flex h-9 items-center gap-2 ${rn.item} px-2 cursor-pointer outline-none`, o && "opacity-50 pointer-events-none", c), C = t ?? (typeof n == "string" ? n : "Menu item"), w = n ?? /* @__PURE__ */ (0, $.jsxs)($.Fragment, { children: [
1062
1063
  e && /* @__PURE__ */ (0, $.jsxs)("span", {
1063
1064
  className: "inline-grid",
1064
1065
  children: [/* @__PURE__ */ (0, $.jsx)("span", {
@@ -1070,23 +1071,23 @@ var Xt = (0, Q.forwardRef)(({ icon: e, label: t, customContent: n, index: r, che
1070
1071
  }), /* @__PURE__ */ (0, $.jsx)(e, {
1071
1072
  size: 16,
1072
1073
  strokeWidth: v || i ? 2 : 1.5,
1073
- className: k("col-start-1 row-start-1 transition-[color,stroke-width] duration-80", v || i ? "text-foreground" : "text-muted-foreground")
1074
+ className: O("col-start-1 row-start-1 transition-[color,stroke-width] duration-80", v || i ? "text-foreground" : "text-muted-foreground")
1074
1075
  })]
1075
1076
  }),
1076
1077
  /* @__PURE__ */ (0, $.jsxs)("span", {
1077
1078
  className: "inline-grid flex-1 text-[13px]",
1078
1079
  children: [/* @__PURE__ */ (0, $.jsx)("span", {
1079
1080
  className: "col-start-1 row-start-1 invisible [text-box:trim-both_cap_alphabetic]",
1080
- style: { fontVariationSettings: ie.semibold },
1081
+ style: { fontVariationSettings: U.semibold },
1081
1082
  "aria-hidden": "true",
1082
1083
  children: C
1083
1084
  }), /* @__PURE__ */ (0, $.jsx)("span", {
1084
- className: k("col-start-1 row-start-1 transition-[color,font-variation-settings] duration-80 [text-box:trim-both_cap_alphabetic]", v || i ? "text-foreground" : "text-muted-foreground"),
1085
- style: { fontVariationSettings: i ? ie.semibold : ie.normal },
1085
+ className: O("col-start-1 row-start-1 transition-[color,font-variation-settings] duration-80 [text-box:trim-both_cap_alphabetic]", v || i ? "text-foreground" : "text-muted-foreground"),
1086
+ style: { fontVariationSettings: i ? U.semibold : U.normal },
1086
1087
  children: C
1087
1088
  })]
1088
1089
  }),
1089
- /* @__PURE__ */ (0, $.jsx)(He, { children: i && /* @__PURE__ */ (0, $.jsx)(W.svg, {
1090
+ /* @__PURE__ */ (0, $.jsx)(Ue, { children: i && /* @__PURE__ */ (0, $.jsx)(K.svg, {
1090
1091
  width: 16,
1091
1092
  height: 16,
1092
1093
  viewBox: "0 0 24 24",
@@ -1099,7 +1100,7 @@ var Xt = (0, Q.forwardRef)(({ icon: e, label: t, customContent: n, index: r, che
1099
1100
  initial: { opacity: 1 },
1100
1101
  animate: { opacity: 1 },
1101
1102
  exit: { opacity: 1 },
1102
- children: /* @__PURE__ */ (0, $.jsx)(W.path, {
1103
+ children: /* @__PURE__ */ (0, $.jsx)(K.path, {
1103
1104
  d: "M4 12L9 17L20 6",
1104
1105
  initial: { pathLength: +!!y },
1105
1106
  animate: {
@@ -1151,22 +1152,22 @@ var Xt = (0, Q.forwardRef)(({ icon: e, label: t, customContent: n, index: r, che
1151
1152
  children: w
1152
1153
  });
1153
1154
  });
1154
- Xt.displayName = "MenuItem";
1155
+ sn.displayName = "MenuItem";
1155
1156
  //#endregion
1156
1157
  //#region src/client/components/ui/dropdown.tsx
1157
- var Zt = m.rounded, Qt = (0, Q.forwardRef)(({ children: e, checkedIndex: t, className: n, ...r }, i) => {
1158
- let a = (0, Q.useRef)(null), { activeIndex: o, setActiveIndex: s, itemRects: c, sessionRef: l, handlers: u, registerItem: d, measureItems: f } = Qe(a);
1158
+ var cn = p.rounded, ln = (0, Q.forwardRef)(({ children: e, checkedIndex: t, className: n, ...r }, i) => {
1159
+ let a = (0, Q.useRef)(null), { activeIndex: o, setActiveIndex: s, itemRects: c, sessionRef: l, handlers: u, registerItem: d, measureItems: f } = $e(a);
1159
1160
  (0, Q.useEffect)(() => {
1160
1161
  f();
1161
1162
  }, [f, e]);
1162
1163
  let [p, m] = (0, Q.useState)(null), h = o === null ? null : c[o], g = t == null ? null : c[t], _ = p === null ? null : c[p], v = o !== null && o !== t;
1163
- return /* @__PURE__ */ (0, $.jsx)(Jt.Provider, {
1164
+ return /* @__PURE__ */ (0, $.jsx)(an.Provider, {
1164
1165
  value: {
1165
1166
  registerItem: d,
1166
1167
  activeIndex: o,
1167
1168
  checkedIndex: t
1168
1169
  },
1169
- children: /* @__PURE__ */ (0, $.jsxs)(Xe, {
1170
+ children: /* @__PURE__ */ (0, $.jsxs)(Ze, {
1170
1171
  offset: 2,
1171
1172
  shadowLevel: 3,
1172
1173
  ref: (e) => {
@@ -1195,11 +1196,11 @@ var Zt = m.rounded, Qt = (0, Q.forwardRef)(({ children: e, checkedIndex: t, clas
1195
1196
  ].includes(e.key) ? (e.preventDefault(), t[["ArrowDown", "ArrowRight"].includes(e.key) ? (n + 1) % t.length : (n - 1 + t.length) % t.length].focus()) : e.key === "Home" ? (e.preventDefault(), t[0]?.focus()) : e.key === "End" && (e.preventDefault(), t[t.length - 1]?.focus()));
1196
1197
  },
1197
1198
  role: "group",
1198
- className: k(`relative flex flex-col gap-0.5 w-72 max-w-full ${Zt.container} p-1 select-none`, n),
1199
+ className: O(`relative flex flex-col gap-0.5 w-72 max-w-full ${cn.container} p-1 select-none`, n),
1199
1200
  ...r,
1200
1201
  children: [
1201
- /* @__PURE__ */ (0, $.jsx)(He, { children: g && /* @__PURE__ */ (0, $.jsx)(W.div, {
1202
- className: `absolute ${Zt.bg} bg-active pointer-events-none`,
1202
+ /* @__PURE__ */ (0, $.jsx)(Ue, { children: g && /* @__PURE__ */ (0, $.jsx)(K.div, {
1203
+ className: `absolute ${cn.bg} bg-active pointer-events-none`,
1203
1204
  initial: !1,
1204
1205
  animate: {
1205
1206
  top: g.top,
@@ -1217,8 +1218,8 @@ var Zt = m.rounded, Qt = (0, Q.forwardRef)(({ children: e, checkedIndex: t, clas
1217
1218
  opacity: { duration: .08 }
1218
1219
  }
1219
1220
  }) }),
1220
- /* @__PURE__ */ (0, $.jsx)(He, { children: h && /* @__PURE__ */ (0, $.jsx)(W.div, {
1221
- className: `absolute ${Zt.bg} bg-hover pointer-events-none`,
1221
+ /* @__PURE__ */ (0, $.jsx)(Ue, { children: h && /* @__PURE__ */ (0, $.jsx)(K.div, {
1222
+ className: `absolute ${cn.bg} bg-hover pointer-events-none`,
1222
1223
  initial: {
1223
1224
  opacity: 0,
1224
1225
  top: g?.top ?? h.top,
@@ -1242,8 +1243,8 @@ var Zt = m.rounded, Qt = (0, Q.forwardRef)(({ children: e, checkedIndex: t, clas
1242
1243
  opacity: { duration: .08 }
1243
1244
  }
1244
1245
  }, l.current) }),
1245
- /* @__PURE__ */ (0, $.jsx)(He, { children: _ && /* @__PURE__ */ (0, $.jsx)(W.div, {
1246
- className: `absolute ${Zt.focusRing} pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]`,
1246
+ /* @__PURE__ */ (0, $.jsx)(Ue, { children: _ && /* @__PURE__ */ (0, $.jsx)(K.div, {
1247
+ className: `absolute ${cn.focusRing} pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]`,
1247
1248
  initial: !1,
1248
1249
  animate: {
1249
1250
  left: _.left - 2,
@@ -1265,23 +1266,23 @@ var Zt = m.rounded, Qt = (0, Q.forwardRef)(({ children: e, checkedIndex: t, clas
1265
1266
  })
1266
1267
  });
1267
1268
  });
1268
- Qt.displayName = "Dropdown";
1269
- var $t = (0, Q.createContext)(null);
1270
- function en() {
1271
- let e = (0, Q.useContext)($t);
1269
+ ln.displayName = "Dropdown";
1270
+ var un = (0, Q.createContext)(null);
1271
+ function dn() {
1272
+ let e = (0, Q.useContext)(un);
1272
1273
  if (!e) throw Error("DropdownMenu compound components must be inside <DropdownMenu>");
1273
1274
  return e;
1274
1275
  }
1275
- function tn({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, disabled: i = !1 }) {
1276
+ function fn({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, disabled: i = !1 }) {
1276
1277
  let [a, o] = (0, Q.useState)(n), s = t === void 0 ? a : t, c = (0, Q.useRef)(null), l = (0, Q.useCallback)((e) => {
1277
1278
  t === void 0 && o(e), r?.(e);
1278
1279
  }, [t, r]), u = (0, Q.useMemo)(() => ({
1279
1280
  open: s,
1280
1281
  actionsRef: c
1281
1282
  }), [s]);
1282
- return /* @__PURE__ */ (0, $.jsx)($t.Provider, {
1283
+ return /* @__PURE__ */ (0, $.jsx)(un.Provider, {
1283
1284
  value: u,
1284
- children: /* @__PURE__ */ (0, $.jsx)(Lt, {
1285
+ children: /* @__PURE__ */ (0, $.jsx)(qt, {
1285
1286
  open: s,
1286
1287
  onOpenChange: l,
1287
1288
  actionsRef: c,
@@ -1291,12 +1292,12 @@ function tn({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, disabl
1291
1292
  })
1292
1293
  });
1293
1294
  }
1294
- tn.displayName = "DropdownMenu";
1295
- var nn = Wt, rn = (0, Q.forwardRef)(({ className: e, children: t, checkedIndex: n, side: r = "bottom", align: i = "start", sideOffset: a = 6 }, o) => {
1296
- let { open: s, actionsRef: c } = en(), l = (0, Q.useRef)(null), { activeIndex: u, setActiveIndex: d, itemRects: f, sessionRef: p, handlers: m, registerItem: h, measureItems: g } = Qe(l), [_, v] = (0, Q.useState)(null);
1295
+ fn.displayName = "DropdownMenu";
1296
+ var pn = en, mn = (0, Q.forwardRef)(({ className: e, children: t, checkedIndex: n, side: r = "bottom", align: i = "start", sideOffset: a = 6 }, o) => {
1297
+ let { open: s, actionsRef: c } = dn(), l = (0, Q.useRef)(null), { activeIndex: u, setActiveIndex: d, itemRects: f, sessionRef: p, handlers: m, registerItem: h, measureItems: g } = $e(l), [_, v] = (0, Q.useState)(null);
1297
1298
  (0, Q.useEffect)(() => {
1298
1299
  if (s) return;
1299
- let e = setTimeout(() => c.current?.unmount(), ve(X.fast));
1300
+ let e = setTimeout(() => c.current?.unmount(), ge(X.fast));
1300
1301
  return () => clearTimeout(e);
1301
1302
  }, [s, c]), (0, Q.useEffect)(() => {
1302
1303
  if (!s) return;
@@ -1309,14 +1310,14 @@ var nn = Wt, rn = (0, Q.forwardRef)(({ className: e, children: t, checkedIndex:
1309
1310
  cancelAnimationFrame(t), cancelAnimationFrame(e);
1310
1311
  };
1311
1312
  }, [s, g]);
1312
- let y = u === null ? null : f[u], b = n == null ? null : f[n], x = _ === null ? null : f[_], S = u !== null && u !== n, C = (0, Q.useCallback)(({ radio: e, value: t, disabled: n, label: r, closeOnClick: i, element: a, children: o }) => e ? /* @__PURE__ */ (0, $.jsx)(Ot, {
1313
+ let y = u === null ? null : f[u], b = n == null ? null : f[n], x = _ === null ? null : f[_], S = u !== null && u !== n, C = (0, Q.useCallback)(({ radio: e, value: t, disabled: n, label: r, closeOnClick: i, element: a, children: o }) => e ? /* @__PURE__ */ (0, $.jsx)(Rt, {
1313
1314
  value: t,
1314
1315
  disabled: n,
1315
1316
  label: r,
1316
1317
  closeOnClick: i,
1317
1318
  render: a,
1318
1319
  children: o
1319
- }) : /* @__PURE__ */ (0, $.jsx)(gt, {
1320
+ }) : /* @__PURE__ */ (0, $.jsx)(Et, {
1320
1321
  disabled: n,
1321
1322
  label: r,
1322
1323
  closeOnClick: i,
@@ -1334,12 +1335,12 @@ var nn = Wt, rn = (0, Q.forwardRef)(({ className: e, children: t, checkedIndex:
1334
1335
  n,
1335
1336
  C
1336
1337
  ]);
1337
- return /* @__PURE__ */ (0, $.jsx)(xt, { children: /* @__PURE__ */ (0, $.jsx)(St, {
1338
+ return /* @__PURE__ */ (0, $.jsx)(jt, { children: /* @__PURE__ */ (0, $.jsx)(Mt, {
1338
1339
  side: r,
1339
1340
  align: i,
1340
1341
  sideOffset: a,
1341
1342
  className: "z-50 outline-none",
1342
- children: /* @__PURE__ */ (0, $.jsx)(W.div, {
1343
+ children: /* @__PURE__ */ (0, $.jsx)(K.div, {
1343
1344
  initial: {
1344
1345
  opacity: 0,
1345
1346
  y: -4,
@@ -1359,10 +1360,10 @@ var nn = Wt, rn = (0, Q.forwardRef)(({ className: e, children: t, checkedIndex:
1359
1360
  onAnimationComplete: () => {
1360
1361
  s || c.current?.unmount();
1361
1362
  },
1362
- children: /* @__PURE__ */ (0, $.jsx)(Jt.Provider, {
1363
+ children: /* @__PURE__ */ (0, $.jsx)(an.Provider, {
1363
1364
  value: w,
1364
- children: /* @__PURE__ */ (0, $.jsxs)(vt, {
1365
- render: /* @__PURE__ */ (0, $.jsx)(Xe, {
1365
+ children: /* @__PURE__ */ (0, $.jsxs)(Ot, {
1366
+ render: /* @__PURE__ */ (0, $.jsx)(Ze, {
1366
1367
  offset: 2,
1367
1368
  shadowLevel: 3,
1368
1369
  ref: (e) => {
@@ -1384,10 +1385,10 @@ var nn = Wt, rn = (0, Q.forwardRef)(({ className: e, children: t, checkedIndex:
1384
1385
  onBlur: (e) => {
1385
1386
  l.current?.contains(e.relatedTarget) || (v(null), d(null));
1386
1387
  },
1387
- className: k(`relative flex flex-col gap-0.5 w-72 max-w-full min-w-[var(--anchor-width)] max-h-[min(480px,var(--available-height))] overflow-y-auto ${Zt.container} p-1 select-none outline-none`, e),
1388
+ className: O(`relative flex flex-col gap-0.5 w-72 max-w-full min-w-[var(--anchor-width)] max-h-[min(480px,var(--available-height))] overflow-y-auto ${cn.container} p-1 select-none outline-none`, e),
1388
1389
  children: [
1389
- /* @__PURE__ */ (0, $.jsx)(He, { children: b && /* @__PURE__ */ (0, $.jsx)(W.div, {
1390
- className: `absolute ${Zt.bg} bg-active pointer-events-none`,
1390
+ /* @__PURE__ */ (0, $.jsx)(Ue, { children: b && /* @__PURE__ */ (0, $.jsx)(K.div, {
1391
+ className: `absolute ${cn.bg} bg-active pointer-events-none`,
1391
1392
  initial: !1,
1392
1393
  animate: {
1393
1394
  top: b.top,
@@ -1405,8 +1406,8 @@ var nn = Wt, rn = (0, Q.forwardRef)(({ className: e, children: t, checkedIndex:
1405
1406
  opacity: { duration: .08 }
1406
1407
  }
1407
1408
  }) }),
1408
- /* @__PURE__ */ (0, $.jsx)(He, { children: y && /* @__PURE__ */ (0, $.jsx)(W.div, {
1409
- className: `absolute ${Zt.bg} bg-hover pointer-events-none`,
1409
+ /* @__PURE__ */ (0, $.jsx)(Ue, { children: y && /* @__PURE__ */ (0, $.jsx)(K.div, {
1410
+ className: `absolute ${cn.bg} bg-hover pointer-events-none`,
1410
1411
  initial: {
1411
1412
  opacity: 0,
1412
1413
  top: b?.top ?? y.top,
@@ -1430,8 +1431,8 @@ var nn = Wt, rn = (0, Q.forwardRef)(({ className: e, children: t, checkedIndex:
1430
1431
  opacity: { duration: .08 }
1431
1432
  }
1432
1433
  }, p.current) }),
1433
- /* @__PURE__ */ (0, $.jsx)(He, { children: x && /* @__PURE__ */ (0, $.jsx)(W.div, {
1434
- className: `absolute ${Zt.focusRing} pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]`,
1434
+ /* @__PURE__ */ (0, $.jsx)(Ue, { children: x && /* @__PURE__ */ (0, $.jsx)(K.div, {
1435
+ className: `absolute ${cn.focusRing} pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]`,
1435
1436
  initial: !1,
1436
1437
  animate: {
1437
1438
  left: x.left - 2,
@@ -1448,7 +1449,7 @@ var nn = Wt, rn = (0, Q.forwardRef)(({ className: e, children: t, checkedIndex:
1448
1449
  opacity: { duration: .08 }
1449
1450
  }
1450
1451
  }) }),
1451
- n == null ? t : /* @__PURE__ */ (0, $.jsx)(Tt, {
1452
+ n == null ? t : /* @__PURE__ */ (0, $.jsx)(Ft, {
1452
1453
  value: n,
1453
1454
  className: "contents",
1454
1455
  children: t
@@ -1459,48 +1460,48 @@ var nn = Wt, rn = (0, Q.forwardRef)(({ className: e, children: t, checkedIndex:
1459
1460
  })
1460
1461
  }) });
1461
1462
  });
1462
- rn.displayName = "DropdownContent";
1463
- var an = (0, Q.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0, $.jsx)("div", {
1463
+ mn.displayName = "DropdownContent";
1464
+ var hn = (0, Q.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0, $.jsx)("div", {
1464
1465
  ref: n,
1465
- className: k("px-2 py-1.5 text-[11px] text-muted-foreground", e),
1466
+ className: O("px-2 py-1.5 text-[11px] text-muted-foreground", e),
1466
1467
  ...t
1467
1468
  }));
1468
- an.displayName = "DropdownLabel";
1469
- var on = (0, Q.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0, $.jsx)("div", {
1469
+ hn.displayName = "DropdownLabel";
1470
+ var gn = (0, Q.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0, $.jsx)("div", {
1470
1471
  ref: n,
1471
1472
  role: "separator",
1472
- className: k("my-1 -mx-1 h-px bg-border/60", e),
1473
+ className: O("my-1 -mx-1 h-px bg-border/60", e),
1473
1474
  ...t
1474
1475
  }));
1475
- on.displayName = "DropdownSeparator";
1476
+ gn.displayName = "DropdownSeparator";
1476
1477
  //#endregion
1477
1478
  //#region src/client/components/ui/dropdown-menu.tsx
1478
- var sn = Q.createContext(null);
1479
- function cn() {
1480
- let e = Q.useContext(sn);
1479
+ var _n = Q.createContext(null);
1480
+ function vn() {
1481
+ let e = Q.useContext(_n);
1481
1482
  if (!e) throw Error("Dropdown menu items must be inside DropdownMenuContent");
1482
1483
  return e.next();
1483
1484
  }
1484
- function ln(e) {
1485
- return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(ln).filter(Boolean).join(" ").trim() : Q.isValidElement(e) ? ln(e.props.children) : "Menu item";
1485
+ function yn(e) {
1486
+ return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(yn).filter(Boolean).join(" ").trim() : Q.isValidElement(e) ? yn(e.props.children) : "Menu item";
1486
1487
  }
1487
- function un(e) {
1488
- return /* @__PURE__ */ (0, $.jsx)(tn, {
1488
+ function bn(e) {
1489
+ return /* @__PURE__ */ (0, $.jsx)(fn, {
1489
1490
  "data-slot": "dropdown-menu",
1490
1491
  ...e
1491
1492
  });
1492
1493
  }
1493
- function dn(e) {
1494
- return /* @__PURE__ */ (0, $.jsx)(nn, {
1494
+ function xn(e) {
1495
+ return /* @__PURE__ */ (0, $.jsx)(pn, {
1495
1496
  "data-slot": "dropdown-menu-trigger",
1496
1497
  ...e
1497
1498
  });
1498
1499
  }
1499
- function fn({ className: e, align: t = "start", side: n = "bottom", sideOffset: r = 6, children: i, forceMount: a, ...o }) {
1500
+ function Sn({ className: e, align: t = "start", side: n = "bottom", sideOffset: r = 6, children: i, forceMount: a, ...o }) {
1500
1501
  let s = Q.useRef(0), c = Q.useMemo(() => ({ next: () => s.current++ }), []);
1501
- return s.current = 0, /* @__PURE__ */ (0, $.jsx)(sn.Provider, {
1502
+ return s.current = 0, /* @__PURE__ */ (0, $.jsx)(_n.Provider, {
1502
1503
  value: c,
1503
- children: /* @__PURE__ */ (0, $.jsx)(rn, {
1504
+ children: /* @__PURE__ */ (0, $.jsx)(mn, {
1504
1505
  "data-slot": "dropdown-menu-content",
1505
1506
  className: e,
1506
1507
  align: t,
@@ -1511,26 +1512,26 @@ function fn({ className: e, align: t = "start", side: n = "bottom", sideOffset:
1511
1512
  })
1512
1513
  });
1513
1514
  }
1514
- function pn({ className: e, inset: t, ...n }) {
1515
- return /* @__PURE__ */ (0, $.jsx)(an, {
1515
+ function Cn({ className: e, inset: t, ...n }) {
1516
+ return /* @__PURE__ */ (0, $.jsx)(hn, {
1516
1517
  "data-slot": "dropdown-menu-label",
1517
1518
  "data-inset": t,
1518
- className: k(t && "pl-8", e),
1519
+ className: O(t && "pl-8", e),
1519
1520
  ...n
1520
1521
  });
1521
1522
  }
1522
- function mn({ className: e, inset: t, variant: n = "default", render: r, children: i, onSelect: a, onClick: o, disabled: s, ...c }) {
1523
- let l = cn(), u = ln(r ?? i), d = () => {
1523
+ function wn({ className: e, inset: t, variant: n = "default", render: r, children: i, onSelect: a, onClick: o, disabled: s, ...c }) {
1524
+ let l = vn(), u = yn(r ?? i), d = () => {
1524
1525
  a?.(new Event("select"));
1525
1526
  };
1526
1527
  if (r && Q.isValidElement(r)) {
1527
1528
  let i = r;
1528
- return /* @__PURE__ */ (0, $.jsx)(Xt, {
1529
+ return /* @__PURE__ */ (0, $.jsx)(sn, {
1529
1530
  index: l,
1530
1531
  label: u,
1531
1532
  disabled: s,
1532
1533
  customContent: Q.cloneElement(i, {
1533
- className: k("relative z-10 flex h-9 w-full items-center gap-2 rounded-lg px-2 text-[13px] outline-none", t && "pl-8", n === "destructive" && "text-destructive", i.props.className, e),
1534
+ className: O("relative z-10 flex h-9 w-full items-center gap-2 rounded-lg px-2 text-[13px] outline-none", t && "pl-8", n === "destructive" && "text-destructive", i.props.className, e),
1534
1535
  onClick: (e) => {
1535
1536
  i.props.onClick?.(e), o?.(e), e.defaultPrevented || d();
1536
1537
  }
@@ -1539,11 +1540,11 @@ function mn({ className: e, inset: t, variant: n = "default", render: r, childre
1539
1540
  ...c
1540
1541
  });
1541
1542
  }
1542
- return /* @__PURE__ */ (0, $.jsx)(Xt, {
1543
+ return /* @__PURE__ */ (0, $.jsx)(sn, {
1543
1544
  index: l,
1544
1545
  label: u,
1545
1546
  disabled: s,
1546
- className: k(t && "pl-8", n === "destructive" && "text-destructive", e),
1547
+ className: O(t && "pl-8", n === "destructive" && "text-destructive", e),
1547
1548
  customContent: /* @__PURE__ */ (0, $.jsx)("span", {
1548
1549
  className: "flex w-full min-w-0 items-center gap-2 text-[13px] text-inherit",
1549
1550
  children: i
@@ -1553,26 +1554,26 @@ function mn({ className: e, inset: t, variant: n = "default", render: r, childre
1553
1554
  ...c
1554
1555
  });
1555
1556
  }
1556
- function hn({ ...e }) {
1557
- return /* @__PURE__ */ (0, $.jsx)(Tt, {
1557
+ function Tn({ ...e }) {
1558
+ return /* @__PURE__ */ (0, $.jsx)(Ft, {
1558
1559
  "data-slot": "dropdown-menu-radio-group",
1559
1560
  ...e
1560
1561
  });
1561
1562
  }
1562
- function gn({ className: e, children: t, inset: n, ...r }) {
1563
- return /* @__PURE__ */ (0, $.jsxs)(Ot, {
1563
+ function En({ className: e, children: t, inset: n, ...r }) {
1564
+ return /* @__PURE__ */ (0, $.jsxs)(Rt, {
1564
1565
  "data-slot": "dropdown-menu-radio-item",
1565
1566
  "data-inset": n,
1566
- className: k("relative z-10 flex h-9 cursor-default items-center gap-2 rounded-lg py-0 pr-8 pl-2 text-[13px] outline-none select-none data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
1567
+ className: O("relative z-10 flex h-9 cursor-default items-center gap-2 rounded-lg py-0 pr-8 pl-2 text-[13px] outline-none select-none data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
1567
1568
  ...r,
1568
1569
  children: [/* @__PURE__ */ (0, $.jsx)("span", {
1569
1570
  className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center",
1570
- children: /* @__PURE__ */ (0, $.jsx)(kt, { children: /* @__PURE__ */ (0, $.jsx)(rt, { className: "size-4" }) })
1571
+ children: /* @__PURE__ */ (0, $.jsx)(zt, { children: /* @__PURE__ */ (0, $.jsx)(ft, { className: "size-4" }) })
1571
1572
  }), t]
1572
1573
  });
1573
1574
  }
1574
- function _n({ className: e, ...t }) {
1575
- return /* @__PURE__ */ (0, $.jsx)(on, {
1575
+ function Dn({ className: e, ...t }) {
1576
+ return /* @__PURE__ */ (0, $.jsx)(gn, {
1576
1577
  "data-slot": "dropdown-menu-separator",
1577
1578
  className: e,
1578
1579
  ...t
@@ -1580,18 +1581,18 @@ function _n({ className: e, ...t }) {
1580
1581
  }
1581
1582
  //#endregion
1582
1583
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/popover/root/PopoverRootContext.mjs
1583
- var vn = /*#__PURE__*/ Q.createContext(void 0);
1584
- process.env.NODE_ENV !== "production" && (vn.displayName = "PopoverRootContext");
1585
- function yn(e) {
1586
- let t = Q.useContext(vn);
1584
+ var On = /*#__PURE__*/ Q.createContext(void 0);
1585
+ process.env.NODE_ENV !== "production" && (On.displayName = "PopoverRootContext");
1586
+ function kn(e) {
1587
+ let t = Q.useContext(On);
1587
1588
  if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? H(47) : "Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.");
1588
1589
  return t;
1589
1590
  }
1590
1591
  //#endregion
1591
1592
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/popover/store/PopoverStore.mjs
1592
- function bn() {
1593
+ function An() {
1593
1594
  return {
1594
- ...De(),
1595
+ ...Ee(),
1595
1596
  disabled: !1,
1596
1597
  modal: !1,
1597
1598
  focusManagerModal: !1,
@@ -1607,7 +1608,7 @@ function bn() {
1607
1608
  hasViewport: !1
1608
1609
  };
1609
1610
  }
1610
- var xn = {
1611
+ var jn = {
1611
1612
  ...V,
1612
1613
  disabled: Z((e) => e.disabled),
1613
1614
  instantType: Z((e) => e.instantType),
@@ -1621,13 +1622,13 @@ var xn = {
1621
1622
  openOnHover: Z((e) => e.openOnHover),
1622
1623
  closeDelay: Z((e) => e.closeDelay),
1623
1624
  hasViewport: Z((e) => e.hasViewport)
1624
- }, Sn = class e extends Ie {
1625
+ }, Mn = class e extends Ie {
1625
1626
  constructor(e, t, n = !1) {
1626
1627
  let r = {
1627
- ...bn(),
1628
+ ...An(),
1628
1629
  ...e
1629
- }, i = new be();
1630
- r.open && e?.mounted === void 0 && (r.mounted = !0), r.floatingRootContext = q(i, t, n), super(r, {
1630
+ }, i = new ye();
1631
+ r.open && e?.mounted === void 0 && (r.mounted = !0), r.floatingRootContext = J(i, t, n), super(r, {
1631
1632
  popupRef: /*#__PURE__*/ Q.createRef(),
1632
1633
  backdropRef: /*#__PURE__*/ Q.createRef(),
1633
1634
  internalBackdropRef: /*#__PURE__*/ Q.createRef(),
@@ -1637,10 +1638,10 @@ var xn = {
1637
1638
  beforeContentFocusGuardRef: /*#__PURE__*/ Q.createRef(),
1638
1639
  stickIfOpenTimeout: new Me(),
1639
1640
  triggerElements: i
1640
- }, xn);
1641
+ }, jn);
1641
1642
  }
1642
1643
  setOpen = (e, t) => {
1643
- let n = t.reason === a, r = t.reason === "trigger-press" && t.event.detail === 0, i = !e && (t.reason === "escape-key" || t.reason == null), o = ae(t), s = this.select("activeTriggerId");
1644
+ let n = t.reason === r, i = t.reason === "trigger-press" && t.event.detail === 0, a = !e && (t.reason === "escape-key" || t.reason == null), o = re(t), s = this.select("activeTriggerId");
1644
1645
  if (!e && t.reason === "close-press" && t.trigger == null && s != null && (t.trigger = this.context.triggerElements.getById(s) ?? this.select("activeTriggerElement") ?? void 0), this.context.onOpenChange?.(e, t), t.isCanceled) return;
1645
1646
  this.state.floatingRootContext.dispatchOpenChange(e, t);
1646
1647
  let c = () => {
@@ -1652,28 +1653,28 @@ var xn = {
1652
1653
  };
1653
1654
  n ? (this.set("stickIfOpen", !0), this.context.stickIfOpenTimeout.start(500, () => {
1654
1655
  this.set("stickIfOpen", !1);
1655
- }), Bt.flushSync(c)) : c(), r || i ? this.set("instantType", r ? "click" : "dismiss") : t.reason === "focus-out" ? this.set("instantType", "focus") : this.set("instantType", void 0);
1656
+ }), Xt.flushSync(c)) : c(), i || a ? this.set("instantType", i ? "click" : "dismiss") : t.reason === "focus-out" ? this.set("instantType", "focus") : this.set("instantType", void 0);
1656
1657
  };
1657
1658
  static useStore(t, n) {
1658
- let { store: r, internalStore: i } = de(t, (t, r) => new e(n, t, r));
1659
+ let { store: r, internalStore: i } = ce(t, (t, r) => new e(n, t, r));
1659
1660
  return Q.useEffect(() => i?.disposeEffect(), [i]), r;
1660
1661
  }
1661
1662
  disposeEffect = () => this.context.stickIfOpenTimeout.disposeEffect();
1662
1663
  };
1663
1664
  //#endregion
1664
1665
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/popover/root/PopoverRoot.mjs
1665
- function Cn({ props: e }) {
1666
- let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, modal: o = !1, handle: s, triggerId: c, defaultTriggerId: l = null } = e, u = Sn.useStore(s?.store, {
1666
+ function Nn({ props: e }) {
1667
+ let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, modal: o = !1, handle: s, triggerId: c, defaultTriggerId: l = null } = e, u = Mn.useStore(s?.store, {
1667
1668
  modal: o,
1668
1669
  open: r,
1669
1670
  openProp: n,
1670
1671
  activeTriggerId: l,
1671
1672
  triggerIdProp: c
1672
1673
  });
1673
- le(u, n, r, l), u.useControlledProp("openProp", n), u.useControlledProp("triggerIdProp", c);
1674
- let d = u.useState("open"), f = u.useState("mounted"), p = u.useState("payload"), m = pe() != null;
1675
- u.useContextCallback("onOpenChange", i), u.useContextCallback("onOpenChangeComplete", a), G(u, d), oe(u);
1676
- let { forceUnmount: h } = Se(d, u, () => {
1674
+ oe(u, n, r, l), u.useControlledProp("openProp", n), u.useControlledProp("triggerIdProp", c);
1675
+ let d = u.useState("open"), f = u.useState("mounted"), p = u.useState("payload"), m = ue() != null;
1676
+ u.useContextCallback("onOpenChange", i), u.useContextCallback("onOpenChangeComplete", a), le(u, d), ie(u);
1677
+ let { forceUnmount: h } = xe(d, u, () => {
1677
1678
  u.update({
1678
1679
  stickIfOpen: !0,
1679
1680
  openChangeReason: null
@@ -1686,209 +1687,209 @@ function Cn({ props: e }) {
1686
1687
  d || u.context.stickIfOpenTimeout.clear();
1687
1688
  }, [u, d]);
1688
1689
  let g = Q.useCallback(() => {
1689
- u.setOpen(!1, b(I));
1690
+ u.setOpen(!1, y(I));
1690
1691
  }, [u]);
1691
1692
  Q.useImperativeHandle(e.actionsRef, () => ({
1692
1693
  unmount: h,
1693
1694
  close: g
1694
1695
  }), [h, g]);
1695
1696
  let _ = d || f, v = Q.useMemo(() => ({ store: u }), [u]);
1696
- return /*#__PURE__*/ (0, $.jsxs)(vn.Provider, {
1697
+ return /*#__PURE__*/ (0, $.jsxs)(On.Provider, {
1697
1698
  value: v,
1698
- children: [_ && /*#__PURE__*/ (0, $.jsx)(Tn, {
1699
+ children: [_ && /*#__PURE__*/ (0, $.jsx)(Fn, {
1699
1700
  store: u,
1700
1701
  modal: o
1701
1702
  }), typeof t == "function" ? t({ payload: p }) : t]
1702
1703
  });
1703
1704
  }
1704
- function wn(e) {
1705
- return yn(!0) ? /*#__PURE__*/ (0, $.jsx)(Cn, { props: e }) : /*#__PURE__*/ (0, $.jsx)(he, { children: /*#__PURE__*/ (0, $.jsx)(Cn, { props: e }) });
1705
+ function Pn(e) {
1706
+ return kn(!0) ? /*#__PURE__*/ (0, $.jsx)(Nn, { props: e }) : /*#__PURE__*/ (0, $.jsx)(fe, { children: /*#__PURE__*/ (0, $.jsx)(Nn, { props: e }) });
1706
1707
  }
1707
- function Tn({ store: e, modal: t }) {
1708
- let n = d(e.useState("floatingRootContext"), { outsidePressEvent: {
1708
+ function Fn({ store: e, modal: t }) {
1709
+ let n = u(e.useState("floatingRootContext"), { outsidePressEvent: {
1709
1710
  mouse: t === "trap-focus" ? "sloppy" : "intentional",
1710
1711
  touch: "sloppy"
1711
1712
  } });
1712
- return _e(e, {
1713
- activeTriggerProps: n.reference ?? xe,
1714
- inactiveTriggerProps: n.trigger ?? xe,
1713
+ return he(e, {
1714
+ activeTriggerProps: n.reference ?? be,
1715
+ inactiveTriggerProps: n.trigger ?? be,
1715
1716
  popupProps: Q.useMemo(() => Pe(Oe, n.floating), [n.floating])
1716
1717
  }), null;
1717
1718
  }
1718
1719
  //#endregion
1719
1720
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/popover/trigger/PopoverTrigger.mjs
1720
- var En = /*#__PURE__*/ Q.forwardRef(function(e, t) {
1721
- let { render: n, className: r, style: a, disabled: o = !1, nativeButton: s = !0, handle: c, payload: l, openOnHover: u = !1, delay: d = 300, closeDelay: f = 0, id: p, ...m } = e, g = yn(!0), _ = c?.store ?? g?.store;
1721
+ var In = /*#__PURE__*/ Q.forwardRef(function(e, t) {
1722
+ let { render: r, className: i, style: a, disabled: o = !1, nativeButton: s = !0, handle: c, payload: l, openOnHover: u = !1, delay: d = 300, closeDelay: f = 0, id: p, ...h } = e, g = kn(!0), _ = c?.store ?? g?.store;
1722
1723
  if (!_) throw Error(process.env.NODE_ENV === "production" ? H(74) : "Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle.");
1723
- let v = S(p), y = _.useState("isTriggerActive", v), b = _.useState("floatingRootContext"), x = _.useState("isOpenedByTrigger", v), C = _.useState("triggerPopupId", v), w = Q.useRef(null), { registerTrigger: T, isMountedByThisTrigger: E } = re(v, w, _, {
1724
+ let v = x(p), y = _.useState("isTriggerActive", v), b = _.useState("floatingRootContext"), S = _.useState("isOpenedByTrigger", v), C = _.useState("triggerPopupId", v), w = Q.useRef(null), { registerTrigger: T, isMountedByThisTrigger: D } = te(v, w, _, {
1724
1725
  payload: l,
1725
1726
  disabled: o,
1726
1727
  openOnHover: u,
1727
1728
  closeDelay: f
1728
- }), O = _.useState("openChangeReason"), k = _.useState("stickIfOpen"), A = _.useState("openMethod"), j = _.useState("focusManagerModal"), M = i(b, {
1729
+ }), O = _.useState("openChangeReason"), k = _.useState("stickIfOpen"), A = _.useState("openMethod"), j = _.useState("focusManagerModal"), M = n(b, {
1729
1730
  enabled: !o && b != null && u && (A !== "touch" || O !== "trigger-press"),
1730
1731
  mouseOnly: !0,
1731
1732
  move: !1,
1732
- handleClose: D(),
1733
+ handleClose: E(),
1733
1734
  restMs: d,
1734
1735
  delay: { close: f },
1735
1736
  triggerElementRef: w,
1736
1737
  isActiveTrigger: y,
1737
1738
  isClosing: () => _.select("transitionStatus") === "ending"
1738
- }), ee = $e(b, {
1739
+ }), N = et(b, {
1739
1740
  enabled: b != null,
1740
1741
  stickIfOpen: k
1741
- }), N = Je(() => _.select("open"), (e) => {
1742
+ }), P = Ye(() => _.select("open"), (e) => {
1742
1743
  _.set("openMethod", e);
1743
- }), P = _.useState("triggerProps", E), { getButtonProps: F, buttonRef: I } = z({
1744
+ }), F = _.useState("triggerProps", D), { getButtonProps: I, buttonRef: L } = B({
1744
1745
  disabled: o,
1745
1746
  native: s
1746
- }), te = { open(e) {
1747
- return e && O === "trigger-press" ? K.open(e) : B.open(e);
1748
- } }, { preFocusGuardRef: ne, handlePreFocusGuardFocus: L, handleFocusTargetFocus: R } = Vt(_, w), V = U("button", e, {
1747
+ }), ee = { open(e) {
1748
+ return e && O === "trigger-press" ? q.open(e) : ne.open(e);
1749
+ } }, { preFocusGuardRef: R, handlePreFocusGuardFocus: z, handleFocusTargetFocus: V } = Zt(_, w), U = W("button", e, {
1749
1750
  state: {
1750
1751
  disabled: o,
1751
- open: x
1752
+ open: S
1752
1753
  },
1753
1754
  ref: [
1754
- I,
1755
+ L,
1755
1756
  t,
1756
1757
  T,
1757
1758
  w
1758
1759
  ],
1759
1760
  props: [
1760
- ee.reference,
1761
+ N.reference,
1761
1762
  M,
1763
+ F,
1762
1764
  P,
1763
- N,
1764
1765
  {
1765
- [h]: "",
1766
+ [m]: "",
1766
1767
  id: v,
1767
1768
  "aria-haspopup": "dialog",
1768
- "aria-expanded": x,
1769
+ "aria-expanded": S,
1769
1770
  "aria-controls": C
1770
1771
  },
1771
- m,
1772
- F
1772
+ h,
1773
+ I
1773
1774
  ],
1774
- stateAttributesMapping: te
1775
+ stateAttributesMapping: ee
1775
1776
  });
1776
- return E && !j ? /*#__PURE__*/ (0, $.jsxs)(Q.Fragment, { children: [
1777
- /*#__PURE__*/ (0, $.jsx)(Te, {
1778
- ref: ne,
1779
- onFocus: L
1777
+ return D && !j ? /*#__PURE__*/ (0, $.jsxs)(Q.Fragment, { children: [
1778
+ /*#__PURE__*/ (0, $.jsx)(we, {
1779
+ ref: R,
1780
+ onFocus: z
1780
1781
  }),
1781
- /*#__PURE__*/ (0, $.jsx)(Q.Fragment, { children: V }, v),
1782
- /*#__PURE__*/ (0, $.jsx)(Te, {
1782
+ /*#__PURE__*/ (0, $.jsx)(Q.Fragment, { children: U }, v),
1783
+ /*#__PURE__*/ (0, $.jsx)(we, {
1783
1784
  ref: _.context.triggerFocusTargetRef,
1784
- onFocus: R
1785
+ onFocus: V
1785
1786
  })
1786
- ] }) : /*#__PURE__*/ (0, $.jsx)(Q.Fragment, { children: V }, v);
1787
+ ] }) : /*#__PURE__*/ (0, $.jsx)(Q.Fragment, { children: U }, v);
1787
1788
  });
1788
- process.env.NODE_ENV !== "production" && (En.displayName = "PopoverTrigger");
1789
+ process.env.NODE_ENV !== "production" && (In.displayName = "PopoverTrigger");
1789
1790
  //#endregion
1790
1791
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/popover/portal/PopoverPortalContext.mjs
1791
- var Dn = /*#__PURE__*/ Q.createContext(void 0);
1792
- process.env.NODE_ENV !== "production" && (Dn.displayName = "PopoverPortalContext");
1793
- function On() {
1794
- let e = Q.useContext(Dn);
1792
+ var Ln = /*#__PURE__*/ Q.createContext(void 0);
1793
+ process.env.NODE_ENV !== "production" && (Ln.displayName = "PopoverPortalContext");
1794
+ function Rn() {
1795
+ let e = Q.useContext(Ln);
1795
1796
  if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? H(45) : "Base UI: <Popover.Portal> is missing.");
1796
1797
  return e;
1797
1798
  }
1798
1799
  //#endregion
1799
1800
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/popover/portal/PopoverPortal.mjs
1800
- var kn = /*#__PURE__*/ Q.forwardRef(function(e, t) {
1801
- let { keepMounted: n = !1, ...r } = e, { store: i } = yn();
1802
- return i.useState("mounted") || n ? /*#__PURE__*/ (0, $.jsx)(Dn.Provider, {
1801
+ var zn = /*#__PURE__*/ Q.forwardRef(function(e, t) {
1802
+ let { keepMounted: n = !1, ...r } = e, { store: i } = kn();
1803
+ return i.useState("mounted") || n ? /*#__PURE__*/ (0, $.jsx)(Ln.Provider, {
1803
1804
  value: n,
1804
- children: /*#__PURE__*/ (0, $.jsx)(E, {
1805
+ children: /*#__PURE__*/ (0, $.jsx)(T, {
1805
1806
  ref: t,
1806
1807
  ...r
1807
1808
  })
1808
1809
  }) : null;
1809
1810
  });
1810
- process.env.NODE_ENV !== "production" && (kn.displayName = "PopoverPortal");
1811
+ process.env.NODE_ENV !== "production" && (zn.displayName = "PopoverPortal");
1811
1812
  //#endregion
1812
1813
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/popover/positioner/PopoverPositionerContext.mjs
1813
- var An = /*#__PURE__*/ Q.createContext(void 0);
1814
- process.env.NODE_ENV !== "production" && (An.displayName = "PopoverPositionerContext");
1815
- function jn() {
1816
- let e = Q.useContext(An);
1814
+ var Bn = /*#__PURE__*/ Q.createContext(void 0);
1815
+ process.env.NODE_ENV !== "production" && (Bn.displayName = "PopoverPositionerContext");
1816
+ function Vn() {
1817
+ let e = Q.useContext(Bn);
1817
1818
  if (!e) throw Error(process.env.NODE_ENV === "production" ? H(46) : "Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.");
1818
1819
  return e;
1819
1820
  }
1820
1821
  //#endregion
1821
1822
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/popover/positioner/PopoverPositioner.mjs
1822
- var Mn = /*#__PURE__*/ Q.forwardRef(function(e, t) {
1823
- let { render: n, className: r, style: i, anchor: a, positionMethod: o = "absolute", side: c = "bottom", align: u = "center", sideOffset: d = 0, alignOffset: f = 0, collisionBoundary: p = "clipping-ancestors", collisionPadding: m = 5, arrowPadding: h = 5, sticky: _ = !1, disableAnchorTracking: v = !1, collisionAvoidance: y = A, ...b } = e, { store: x } = yn(), S = On(), C = s(), T = x.useState("floatingRootContext"), E = x.useState("mounted"), D = x.useState("open"), O = x.useState("openChangeReason"), k = x.useState("activeTriggerElement"), M = x.useState("modal"), ee = x.useState("openMethod"), N = x.useState("positionerElement"), P = x.useState("instantType"), F = x.useState("transitionStatus"), I = x.useState("hasViewport"), te = Q.useRef(null), L = l(N, !1, !1), R = g({
1824
- anchor: a,
1823
+ var Hn = /*#__PURE__*/ Q.forwardRef(function(e, t) {
1824
+ let { render: n, className: r, style: i, anchor: o, positionMethod: s = "absolute", side: l = "bottom", align: u = "center", sideOffset: d = 0, alignOffset: f = 0, collisionBoundary: p = "clipping-ancestors", collisionPadding: m = 5, arrowPadding: g = 5, sticky: _ = !1, disableAnchorTracking: v = !1, collisionAvoidance: y = k, ...b } = e, { store: x } = kn(), S = Rn(), w = a(), T = x.useState("floatingRootContext"), E = x.useState("mounted"), D = x.useState("open"), O = x.useState("openChangeReason"), j = x.useState("activeTriggerElement"), M = x.useState("modal"), N = x.useState("openMethod"), P = x.useState("positionerElement"), F = x.useState("instantType"), I = x.useState("transitionStatus"), L = x.useState("hasViewport"), R = Q.useRef(null), z = c(P, !1, !1), B = h({
1825
+ anchor: o,
1825
1826
  floatingRootContext: T,
1826
- positionMethod: o,
1827
+ positionMethod: s,
1827
1828
  mounted: E,
1828
- side: c,
1829
+ side: l,
1829
1830
  sideOffset: d,
1830
1831
  align: u,
1831
1832
  alignOffset: f,
1832
- arrowPadding: h,
1833
+ arrowPadding: g,
1833
1834
  collisionBoundary: p,
1834
1835
  collisionPadding: m,
1835
1836
  sticky: _,
1836
1837
  disableAnchorTracking: v,
1837
1838
  keepMounted: S,
1838
- nodeId: C,
1839
+ nodeId: w,
1839
1840
  collisionAvoidance: y,
1840
- adaptiveOrigin: I ? ne : void 0
1841
- }), z = T.useState("domReferenceElement");
1842
- j(() => {
1843
- let e = z, t = te.current;
1844
- if (e && (te.current = e), t && e && e !== t) {
1841
+ adaptiveOrigin: L ? ee : void 0
1842
+ }), te = T.useState("domReferenceElement");
1843
+ A(() => {
1844
+ let e = te, t = R.current;
1845
+ if (e && (R.current = e), t && e && e !== t) {
1845
1846
  x.set("instantType", void 0);
1846
1847
  let e = new AbortController();
1847
- return L(() => {
1848
+ return z(() => {
1848
1849
  x.set("instantType", "trigger-change");
1849
1850
  }, e.signal), () => {
1850
1851
  e.abort();
1851
1852
  };
1852
1853
  }
1853
1854
  }, [
1855
+ te,
1854
1856
  z,
1855
- L,
1856
1857
  x
1857
- ]), Ke(D && M === !0 && O !== "trigger-hover", ee === "touch", N, k);
1858
- let re = Q.useCallback((e) => {
1858
+ ]), qe(D && M === !0 && O !== "trigger-hover", N === "touch", P, j);
1859
+ let ne = Q.useCallback((e) => {
1859
1860
  x.set("positionerElement", e);
1860
- }, [x]), B = Ce(e, {
1861
+ }, [x]), V = Se(e, {
1861
1862
  open: D,
1862
- side: R.side,
1863
- align: R.align,
1864
- anchorHidden: R.anchorHidden,
1865
- instant: P
1863
+ side: B.side,
1864
+ align: B.align,
1865
+ anchorHidden: B.anchorHidden,
1866
+ instant: F
1866
1867
  }, {
1867
- styles: R.positionerStyles,
1868
- transitionStatus: F,
1868
+ styles: B.positionerStyles,
1869
+ transitionStatus: I,
1869
1870
  props: b,
1870
- refs: [t, re],
1871
+ refs: [t, ne],
1871
1872
  hidden: !E,
1872
1873
  inert: !D
1873
1874
  });
1874
- return /*#__PURE__*/ (0, $.jsxs)(An.Provider, {
1875
- value: R,
1876
- children: [E && M === !0 && O !== "trigger-hover" && /*#__PURE__*/ (0, $.jsx)(tt, {
1875
+ return /*#__PURE__*/ (0, $.jsxs)(Bn.Provider, {
1876
+ value: B,
1877
+ children: [E && M === !0 && O !== "trigger-hover" && /*#__PURE__*/ (0, $.jsx)(nt, {
1877
1878
  ref: x.context.internalBackdropRef,
1878
- inert: qe(!D),
1879
- cutout: k
1880
- }), /*#__PURE__*/ (0, $.jsx)(w, {
1881
- id: C,
1882
- children: B
1879
+ inert: Je(!D),
1880
+ cutout: j
1881
+ }), /*#__PURE__*/ (0, $.jsx)(C, {
1882
+ id: w,
1883
+ children: V
1883
1884
  })]
1884
1885
  });
1885
1886
  });
1886
- process.env.NODE_ENV !== "production" && (Mn.displayName = "PopoverPositioner");
1887
+ process.env.NODE_ENV !== "production" && (Hn.displayName = "PopoverPositioner");
1887
1888
  //#endregion
1888
1889
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/utils/closePart.mjs
1889
- var Nn = /*#__PURE__*/ Q.createContext(void 0);
1890
- process.env.NODE_ENV !== "production" && (Nn.displayName = "ClosePartContext");
1891
- function Pn() {
1890
+ var Un = /*#__PURE__*/ Q.createContext(void 0);
1891
+ process.env.NODE_ENV !== "production" && (Un.displayName = "ClosePartContext");
1892
+ function Wn() {
1892
1893
  let [e, t] = Q.useState(0), n = Ne(() => (t((e) => e + 1), () => {
1893
1894
  t((e) => Math.max(0, e - 1));
1894
1895
  }));
@@ -1897,35 +1898,35 @@ function Pn() {
1897
1898
  hasClosePart: e > 0
1898
1899
  };
1899
1900
  }
1900
- function Fn(e) {
1901
+ function Gn(e) {
1901
1902
  let { value: t, children: n } = e;
1902
- return /*#__PURE__*/ (0, $.jsx)(Nn.Provider, {
1903
+ return /*#__PURE__*/ (0, $.jsx)(Un.Provider, {
1903
1904
  value: t,
1904
1905
  children: n
1905
1906
  });
1906
1907
  }
1907
1908
  //#endregion
1908
1909
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/popover/popup/PopoverPopup.mjs
1909
- var In = {
1910
- ...Ee,
1911
- ...Y
1912
- }, Ln = /*#__PURE__*/ Q.forwardRef(function(e, t) {
1913
- let { render: n, className: r, style: i, initialFocus: a, finalFocus: s, ...c } = e, { store: l } = yn(), u = jn(), d = et(!0) != null, { context: p, hasClosePart: m } = Pn(), h = l.useState("open"), g = l.useState("openMethod"), _ = l.useState("instantType"), v = l.useState("transitionStatus"), y = l.useState("popupProps"), b = l.useState("titleElementId"), x = l.useState("descriptionElementId"), S = l.useState("modal"), C = l.useState("mounted"), w = l.useState("openChangeReason"), T = l.useState("activeTriggerElement"), E = l.useState("floatingRootContext"), D = E.useState("floatingId"), O = l.useState("disabled"), k = l.useState("openOnHover"), A = l.useState("closeDelay"), j = c.id ?? D;
1914
- f({
1910
+ var Kn = {
1911
+ ...Te,
1912
+ ...ve
1913
+ }, qn = /*#__PURE__*/ Q.forwardRef(function(e, t) {
1914
+ let { render: n, className: r, style: a, initialFocus: o, finalFocus: s, ...c } = e, { store: l } = kn(), u = Vn(), f = tt(!0) != null, { context: p, hasClosePart: m } = Wn(), h = l.useState("open"), g = l.useState("openMethod"), _ = l.useState("instantType"), v = l.useState("transitionStatus"), y = l.useState("popupProps"), b = l.useState("titleElementId"), x = l.useState("descriptionElementId"), S = l.useState("modal"), C = l.useState("mounted"), w = l.useState("openChangeReason"), T = l.useState("activeTriggerElement"), E = l.useState("floatingRootContext"), D = E.useState("floatingId"), O = l.useState("disabled"), k = l.useState("openOnHover"), A = l.useState("closeDelay"), j = c.id ?? D;
1915
+ d({
1915
1916
  open: h,
1916
1917
  ref: l.context.popupRef,
1917
1918
  onComplete() {
1918
1919
  h && l.context.onOpenChangeComplete?.(!0);
1919
1920
  }
1920
- }), se(E, {
1921
+ }), G(E, {
1921
1922
  enabled: k && !O,
1922
1923
  closeDelay: A
1923
1924
  });
1924
- let M = a === void 0 ? ge(l.context.popupRef) : a, ee = S !== !1 && m;
1925
- l.useSyncedValue("focusManagerModal", ee);
1926
- let N = Q.useCallback((e) => {
1925
+ let M = o === void 0 ? pe(l.context.popupRef) : o, N = S !== !1 && m;
1926
+ l.useSyncedValue("focusManagerModal", N);
1927
+ let P = Q.useCallback((e) => {
1927
1928
  l.set("popupElement", e);
1928
- }, [l]), P = U("div", e, {
1929
+ }, [l]), F = W("div", e, {
1929
1930
  state: {
1930
1931
  open: h,
1931
1932
  side: u.side,
@@ -1936,7 +1937,7 @@ var In = {
1936
1937
  ref: [
1937
1938
  t,
1938
1939
  l.context.popupRef,
1939
- N
1940
+ P
1940
1941
  ],
1941
1942
  props: [
1942
1943
  y,
@@ -1947,59 +1948,130 @@ var In = {
1947
1948
  "aria-labelledby": b,
1948
1949
  "aria-describedby": x,
1949
1950
  onKeyDown(e) {
1950
- d && Be.has(e.key) && e.stopPropagation();
1951
+ f && Ve.has(e.key) && e.stopPropagation();
1951
1952
  }
1952
1953
  },
1953
- L(v),
1954
+ R(v),
1954
1955
  c
1955
1956
  ],
1956
- stateAttributesMapping: In
1957
+ stateAttributesMapping: Kn
1957
1958
  });
1958
- return /*#__PURE__*/ (0, $.jsx)(Ge, {
1959
+ return /*#__PURE__*/ (0, $.jsx)(Ke, {
1959
1960
  context: E,
1960
1961
  openInteractionType: g,
1961
- modal: ee,
1962
+ modal: N,
1962
1963
  disabled: !C || w === "trigger-hover",
1963
1964
  initialFocus: M,
1964
1965
  returnFocus: s,
1965
1966
  restoreFocus: "popup",
1966
- previousFocusableElement: o(T) ? T : void 0,
1967
+ previousFocusableElement: i(T) ? T : void 0,
1967
1968
  nextFocusableElement: l.context.triggerFocusTargetRef,
1968
1969
  beforeContentFocusGuardRef: l.context.beforeContentFocusGuardRef,
1969
- children: /*#__PURE__*/ (0, $.jsx)(Fn, {
1970
+ children: /*#__PURE__*/ (0, $.jsx)(Gn, {
1970
1971
  value: p,
1971
- children: P
1972
+ children: F
1972
1973
  })
1973
1974
  });
1974
1975
  });
1975
- process.env.NODE_ENV !== "production" && (Ln.displayName = "PopoverPopup");
1976
+ process.env.NODE_ENV !== "production" && (qn.displayName = "PopoverPopup");
1976
1977
  //#endregion
1977
1978
  //#region src/client/components/ui/popover.tsx
1978
- function Rn({ ...e }) {
1979
- return /* @__PURE__ */ (0, $.jsx)(wn, {
1979
+ function Jn({ ...e }) {
1980
+ return /* @__PURE__ */ (0, $.jsx)(Pn, {
1980
1981
  "data-slot": "popover",
1981
1982
  ...e
1982
1983
  });
1983
1984
  }
1984
- function zn(e) {
1985
- return /* @__PURE__ */ (0, $.jsx)(En, {
1985
+ function Yn(e) {
1986
+ return /* @__PURE__ */ (0, $.jsx)(In, {
1986
1987
  "data-slot": "popover-trigger",
1987
1988
  ...e
1988
1989
  });
1989
1990
  }
1990
- function Bn({ className: e, align: t = "center", alignOffset: n = 0, side: r = "bottom", sideOffset: i = 4, ...a }) {
1991
- return /* @__PURE__ */ (0, $.jsx)(kn, { children: /* @__PURE__ */ (0, $.jsx)(Mn, {
1991
+ function Xn({ className: e, align: t = "center", alignOffset: n = 0, side: r = "bottom", sideOffset: i = 4, ...a }) {
1992
+ return /* @__PURE__ */ (0, $.jsx)(zn, { children: /* @__PURE__ */ (0, $.jsx)(Hn, {
1992
1993
  align: t,
1993
1994
  alignOffset: n,
1994
1995
  side: r,
1995
1996
  sideOffset: i,
1996
1997
  className: "isolate z-50",
1997
- children: /* @__PURE__ */ (0, $.jsx)(Ln, {
1998
+ children: /* @__PURE__ */ (0, $.jsx)(qn, {
1998
1999
  "data-slot": "popover-content",
1999
- className: k("z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
2000
+ className: O("z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
2000
2001
  ...a
2001
2002
  })
2002
2003
  }) });
2003
2004
  }
2004
2005
  //#endregion
2005
- export { fn as a, hn as c, dn as d, Xt as f, un as i, gn as l, Bn as n, mn as o, Rt as p, zn as r, pn as s, Rn as t, _n as u };
2006
+ //#region src/client/components/ui/sheet.tsx
2007
+ function Zn({ ...e }) {
2008
+ return /* @__PURE__ */ (0, $.jsx)(ot, {
2009
+ "data-slot": "sheet",
2010
+ ...e
2011
+ });
2012
+ }
2013
+ function Qn(e) {
2014
+ return /* @__PURE__ */ (0, $.jsx)(ut, {
2015
+ "data-slot": "sheet-trigger",
2016
+ ...e
2017
+ });
2018
+ }
2019
+ function $n({ ...e }) {
2020
+ return /* @__PURE__ */ (0, $.jsx)(lt, {
2021
+ "data-slot": "sheet-portal",
2022
+ ...e
2023
+ });
2024
+ }
2025
+ function er({ className: e, container: t, ...n }) {
2026
+ return /* @__PURE__ */ (0, $.jsx)(dt, {
2027
+ "data-slot": "sheet-overlay",
2028
+ className: O("inset-0 z-50 bg-black/50 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0", t ? "absolute" : "fixed", e),
2029
+ ...n
2030
+ });
2031
+ }
2032
+ function tr({ className: e, children: t, side: n = "right", showCloseButton: r = !0, container: i, ...a }) {
2033
+ return /* @__PURE__ */ (0, $.jsxs)($n, {
2034
+ container: i ?? void 0,
2035
+ children: [/* @__PURE__ */ (0, $.jsx)(er, { container: i }), /* @__PURE__ */ (0, $.jsxs)(ct, {
2036
+ "data-slot": "sheet-content",
2037
+ "data-side": n,
2038
+ className: O("z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", i ? "absolute" : "fixed", e),
2039
+ ...a,
2040
+ children: [t, r && /* @__PURE__ */ (0, $.jsxs)(it, {
2041
+ "data-slot": "sheet-close",
2042
+ render: /* @__PURE__ */ (0, $.jsx)(De, {
2043
+ variant: "ghost",
2044
+ className: "absolute top-4 right-4",
2045
+ size: "icon-sm"
2046
+ }),
2047
+ children: [/* @__PURE__ */ (0, $.jsx)(pt, {}), /* @__PURE__ */ (0, $.jsx)("span", {
2048
+ className: "sr-only",
2049
+ children: "Close"
2050
+ })]
2051
+ })]
2052
+ })]
2053
+ });
2054
+ }
2055
+ function nr({ className: e, ...t }) {
2056
+ return /* @__PURE__ */ (0, $.jsx)("div", {
2057
+ "data-slot": "sheet-header",
2058
+ className: O("flex flex-col gap-1.5 p-4", e),
2059
+ ...t
2060
+ });
2061
+ }
2062
+ function rr({ className: e, ...t }) {
2063
+ return /* @__PURE__ */ (0, $.jsx)(at, {
2064
+ "data-slot": "sheet-title",
2065
+ className: O("font-medium text-foreground", e),
2066
+ ...t
2067
+ });
2068
+ }
2069
+ function ir({ className: e, ...t }) {
2070
+ return /* @__PURE__ */ (0, $.jsx)(st, {
2071
+ "data-slot": "sheet-description",
2072
+ className: O("text-sm text-muted-foreground", e),
2073
+ ...t
2074
+ });
2075
+ }
2076
+ //#endregion
2077
+ export { xn as _, rr as a, Xn as c, Sn as d, wn as f, Dn as g, En as h, nr as i, Yn as l, Tn as m, tr as n, Qn as o, Cn as p, ir as r, Jn as s, Zn as t, bn as u, sn as v, Jt as y };