@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,25 +1,25 @@
1
1
  import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { t as n } from "./jsx-runtime-CIxvMpEo.js";
3
- import { Gn as r, Jn as i, Lr as a, Mn as o, Nn as s, Qt as c, Rr as l, Sr as u, Vn as d, X as f, Xt as p, Yn as m, Zt as h, _r as g, br as _, c as v, dr as y, en as b, f as x, fr as S, gr as C, hn as w, mn as T, on as E, pn as D, pr as O, s as k, tn as A, vr as j, wr as M } from "./input-BLxOA7V-.js";
4
- import { n as N } from "./label-CBvG613A.js";
5
- import { _ as P, a as F, c as I, d as L, f as R, g as z, h as B, i as V, l as H, n as U, o as W, p as G, r as ee, s as K, t as q, v as J } from "./AnimatePresence-B4HhIdgq.js";
6
- import { t as Y } from "./useCompositeItem-CNJ6MXdi.js";
2
+ import { Gn as n, Jn as r, Lr as i, Mn as a, Nn as o, Qt as s, Rr as c, Sr as l, Vn as u, X as d, Xt as f, Yn as p, Zt as m, _r as h, br as g, c as _, dr as v, en as y, f as b, fr as x, gr as S, hn as C, mn as w, on as T, pn as E, pr as D, s as O, tn as k, vr as A, wr as j } from "./input-C2OBd4PJ.js";
3
+ import { t as M } from "./jsx-runtime-CIxvMpEo.js";
4
+ import { n as N } from "./label-B9Jmm9be.js";
5
+ import { _ as P, a as F, c as I, d as L, f as R, g as z, h as B, i as V, l as H, n as U, o as W, p as G, r as ee, s as K, t as q, v as J } from "./AnimatePresence-Dcw-FOy8.js";
6
+ import { t as Y } from "./useCompositeItem-BRqEzYh-.js";
7
7
  //#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/tabs/root/TabsRootContext.mjs
8
8
  var X = /* @__PURE__ */ e(t(), 1), Z = /*#__PURE__*/ X.createContext(void 0);
9
9
  process.env.NODE_ENV !== "production" && (Z.displayName = "TabsRootContext");
10
10
  function Q() {
11
11
  let e = X.useContext(Z);
12
- if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? _(64) : "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");
12
+ if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? g(64) : "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");
13
13
  return e;
14
14
  }
15
15
  //#endregion
16
16
  //#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/tabs/root/TabsRootDataAttributes.mjs
17
17
  var te = /*#__PURE__*/ function(e) {
18
18
  return e.activationDirection = "data-activation-direction", e.orientation = "data-orientation", e;
19
- }({}), ne = { tabActivationDirection: (e) => ({ [te.activationDirection]: e }) }, $ = n(), re = /*#__PURE__*/ X.forwardRef(function(e, t) {
20
- let { className: n, defaultValue: a = 0, onValueChange: s, orientation: c = "horizontal", render: l, value: f, style: p, ...m } = e, h = e.defaultValue !== void 0, g = X.useRef([]), [_, v] = X.useState(() => /* @__PURE__ */ new Map()), [b, x] = N({
19
+ }({}), ne = { tabActivationDirection: (e) => ({ [te.activationDirection]: e }) }, $ = M(), re = /*#__PURE__*/ X.forwardRef(function(e, t) {
20
+ let { className: i, defaultValue: o = 0, onValueChange: s, orientation: c = "horizontal", render: d, value: f, style: p, ...m } = e, h = e.defaultValue !== void 0, g = X.useRef([]), [_, y] = X.useState(() => /* @__PURE__ */ new Map()), [b, x] = N({
21
21
  controlled: f,
22
- default: a,
22
+ default: o,
23
23
  name: "Tabs",
24
24
  state: "value"
25
25
  }), S = f !== void 0, [C, w] = X.useState(() => /* @__PURE__ */ new Map()), T = X.useRef(void 0), E = X.useCallback((e) => {
@@ -29,31 +29,31 @@ var te = /*#__PURE__*/ function(e) {
29
29
  }, [C]), [D, O] = X.useState(() => ({
30
30
  previousValue: b,
31
31
  tabActivationDirection: "none"
32
- })), { previousValue: k, tabActivationDirection: A } = D, j = A, P = !1;
33
- k !== b && (j = ie(k, b, c, C), P = k != null && b != null && E(b) == null);
34
- let F = P ? k : b, I = k !== F || A !== j;
35
- u(() => {
32
+ })), { previousValue: k, tabActivationDirection: A } = D, M = A, P = !1;
33
+ k !== b && (M = ie(k, b, c, C), P = k != null && b != null && E(b) == null);
34
+ let F = P ? k : b, I = k !== F || A !== M;
35
+ l(() => {
36
36
  I && O({
37
37
  previousValue: F,
38
- tabActivationDirection: j
38
+ tabActivationDirection: M
39
39
  });
40
40
  }, [
41
41
  F,
42
42
  I,
43
- j
43
+ M
44
44
  ]);
45
- let L = M((e, t) => {
45
+ let L = j((e, t) => {
46
46
  t.activationDirection = ie(b, e, c, C), s?.(e, t), !t.isCanceled && x(e);
47
- }), R = M((e, t) => {
48
- s?.(e, o(t, void 0, void 0, { activationDirection: "none" }));
49
- }), z = M((e, t) => {
50
- v((n) => {
47
+ }), R = j((e, t) => {
48
+ s?.(e, a(t, void 0, void 0, { activationDirection: "none" }));
49
+ }), z = j((e, t) => {
50
+ y((n) => {
51
51
  if (n.get(e) === t) return n;
52
52
  let r = new Map(n);
53
53
  return r.set(e, t), r;
54
54
  });
55
- }), B = M((e, t) => {
56
- v((n) => {
55
+ }), B = j((e, t) => {
56
+ y((n) => {
57
57
  if (!n.has(e) || n.get(e) !== t) return n;
58
58
  let r = new Map(n);
59
59
  return r.delete(e), r;
@@ -69,7 +69,7 @@ var te = /*#__PURE__*/ function(e) {
69
69
  registerMountedTabPanel: z,
70
70
  setTabMap: w,
71
71
  unregisterMountedTabPanel: B,
72
- tabActivationDirection: j,
72
+ tabActivationDirection: M,
73
73
  value: b
74
74
  }), [
75
75
  E,
@@ -80,14 +80,14 @@ var te = /*#__PURE__*/ function(e) {
80
80
  z,
81
81
  w,
82
82
  B,
83
- j,
83
+ M,
84
84
  b
85
85
  ]), W = X.useMemo(() => {
86
86
  for (let e of C.values()) if (e != null && e.value === b) return e;
87
87
  }, [C, b]), G = X.useMemo(() => {
88
88
  for (let e of C.values()) if (e != null && !e.disabled) return e.value;
89
- }, [C]), K = X.useRef(!h), q = X.useRef(a), J = X.useRef(h), Y = X.useRef(!1);
90
- u(() => {
89
+ }, [C]), K = X.useRef(!h), q = X.useRef(o), J = X.useRef(h), Y = X.useRef(!1);
90
+ l(() => {
91
91
  if (S) return;
92
92
  function e(e, t) {
93
93
  x(e), O((t) => t.previousValue === e && t.tabActivationDirection === "none" ? t : {
@@ -96,24 +96,24 @@ var te = /*#__PURE__*/ function(e) {
96
96
  }), R(e, t), K.current = !1;
97
97
  }
98
98
  if (C.size === 0) {
99
- Y.current && b !== null && !T.current?.isConnected && e(null, i);
99
+ Y.current && b !== null && !T.current?.isConnected && e(null, r);
100
100
  return;
101
101
  }
102
102
  Y.current = !0, T.current = C.keys().next().value;
103
- let t = W?.disabled, n = W == null && b !== null;
103
+ let t = W?.disabled, i = W == null && b !== null;
104
104
  if (!t && b === q.current && (J.current = !1), J.current && t && b === q.current) return;
105
105
  let a = K.current;
106
- if (t || n) {
107
- let n = G ?? null;
108
- if (b === n) {
106
+ if (t || i) {
107
+ let i = G ?? null;
108
+ if (b === i) {
109
109
  K.current = !1;
110
110
  return;
111
111
  }
112
- let o = i;
113
- a ? o = r : t && (o = d), e(n, o);
112
+ let o = r;
113
+ a ? o = n : t && (o = u), e(i, o);
114
114
  return;
115
115
  }
116
- a && W != null && (R(b, r), K.current = !1);
116
+ a && W != null && (R(b, n), K.current = !1);
117
117
  }, [
118
118
  G,
119
119
  S,
@@ -123,10 +123,10 @@ var te = /*#__PURE__*/ function(e) {
123
123
  C,
124
124
  b
125
125
  ]);
126
- let Q = y("div", e, {
126
+ let Q = v("div", e, {
127
127
  state: {
128
128
  orientation: c,
129
- tabActivationDirection: j
129
+ tabActivationDirection: M
130
130
  },
131
131
  ref: t,
132
132
  props: m,
@@ -166,25 +166,25 @@ var ae = "data-composite-item-active", oe = /*#__PURE__*/ X.createContext(void 0
166
166
  process.env.NODE_ENV !== "production" && (oe.displayName = "TabsListContext");
167
167
  function se() {
168
168
  let e = X.useContext(oe);
169
- if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? _(65) : "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");
169
+ if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? g(65) : "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");
170
170
  return e;
171
171
  }
172
172
  //#endregion
173
173
  //#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/tabs/tab/TabsTab.mjs
174
174
  var ce = /*#__PURE__*/ X.forwardRef(function(e, t) {
175
- let { className: n, disabled: r = !1, render: i, value: a, id: c, nativeButton: l = !0, style: d, ...f } = e, { value: p, getTabPanelIdByValue: h, orientation: _, tabActivationDirection: v } = Q(), { activateOnFocus: b, highlightedTabIndex: x, onTabActivation: S, registerTabResizeObserverElement: C, setHighlightedTabIndex: w, tabsListElement: O } = se(), k = s(c), { compositeProps: A, compositeRef: j, index: M } = Y({ metadata: X.useMemo(() => ({
175
+ let { className: n, disabled: r = !1, render: i, value: s, id: c, nativeButton: u = !0, style: d, ...f } = e, { value: m, getTabPanelIdByValue: g, orientation: _, tabActivationDirection: y } = Q(), { activateOnFocus: b, highlightedTabIndex: x, onTabActivation: S, registerTabResizeObserverElement: C, setHighlightedTabIndex: D, tabsListElement: O } = se(), k = o(c), { compositeProps: A, compositeRef: j, index: M } = Y({ metadata: X.useMemo(() => ({
176
176
  disabled: r,
177
177
  id: k,
178
- value: a
178
+ value: s
179
179
  }), [
180
180
  r,
181
181
  k,
182
- a
183
- ]) }), N = a === p, P = X.useRef(!1), F = X.useRef(null);
184
- u(() => {
182
+ s
183
+ ]) }), N = s === m, P = X.useRef(!1), F = X.useRef(null);
184
+ l(() => {
185
185
  let e = F.current;
186
186
  if (e) return C(e);
187
- }, [C]), u(() => {
187
+ }, [C]), l(() => {
188
188
  if (P.current) {
189
189
  P.current = !1;
190
190
  return;
@@ -192,28 +192,28 @@ var ce = /*#__PURE__*/ X.forwardRef(function(e, t) {
192
192
  if (!(N && M > -1 && x !== M)) return;
193
193
  let e = O;
194
194
  if (e != null) {
195
- let t = D(E(e));
196
- if (t && T(e, t)) return;
195
+ let t = E(T(e));
196
+ if (t && w(e, t)) return;
197
197
  }
198
- r || w(M);
198
+ r || D(M);
199
199
  }, [
200
200
  N,
201
201
  M,
202
202
  x,
203
- w,
203
+ D,
204
204
  r,
205
205
  O
206
206
  ]);
207
- let { getButtonProps: I, buttonRef: L } = g({
207
+ let { getButtonProps: I, buttonRef: L } = h({
208
208
  disabled: r,
209
- native: l,
209
+ native: u,
210
210
  focusableWhenDisabled: !0
211
- }), R = h(a), z = X.useRef(!1), B = X.useRef(!1);
211
+ }), R = g(s), z = X.useRef(!1), B = X.useRef(!1);
212
212
  function V(e) {
213
- N || r || S(a, o(m, e.nativeEvent, void 0, { activationDirection: "none" }));
213
+ N || r || S(s, a(p, e.nativeEvent, void 0, { activationDirection: "none" }));
214
214
  }
215
215
  function H(e) {
216
- N || (M > -1 && !r && w(M), !r && b && (!z.current || z.current && B.current) && S(a, o(m, e.nativeEvent, void 0, { activationDirection: "none" })));
216
+ N || (M > -1 && !r && D(M), !r && b && (!z.current || z.current && B.current) && S(s, a(p, e.nativeEvent, void 0, { activationDirection: "none" })));
217
217
  }
218
218
  function U(e) {
219
219
  if (N || r) return;
@@ -221,14 +221,14 @@ var ce = /*#__PURE__*/ X.forwardRef(function(e, t) {
221
221
  function t() {
222
222
  z.current = !1, B.current = !1;
223
223
  }
224
- (!e.button || e.button === 0) && (B.current = !0, E(e.currentTarget).addEventListener("pointerup", t, { once: !0 }));
224
+ (!e.button || e.button === 0) && (B.current = !0, T(e.currentTarget).addEventListener("pointerup", t, { once: !0 }));
225
225
  }
226
- return y("button", e, {
226
+ return v("button", e, {
227
227
  state: {
228
228
  disabled: r,
229
229
  active: N,
230
230
  orientation: _,
231
- tabActivationDirection: v
231
+ tabActivationDirection: y
232
232
  },
233
233
  ref: [
234
234
  t,
@@ -262,91 +262,91 @@ process.env.NODE_ENV !== "production" && (ce.displayName = "TabsTab");
262
262
  //#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/root/useCompositeRoot.mjs
263
263
  var le = [];
264
264
  function ue(e) {
265
- let { loopFocus: t = !0, orientation: n = "both", grid: r, onLoop: i, direction: a, highlightedIndex: o, onHighlightedIndexChange: s, rootRef: l, enableHomeAndEndKeys: d = !1, stopEventPropagation: f = !1, disabledIndices: m, modifierKeys: g = le } = e, [_, v] = X.useState(0), y = r != null, x = X.useRef(null), S = C(x, l), T = X.useRef([]), E = X.useRef(!1), D = o ?? _, O = M((e, t = !1) => {
266
- if ((s ?? v)(e), t) {
265
+ let { loopFocus: t = !0, orientation: n = "both", grid: r, onLoop: i, direction: a, highlightedIndex: o, onHighlightedIndexChange: c, rootRef: u, enableHomeAndEndKeys: d = !1, stopEventPropagation: p = !1, disabledIndices: h, modifierKeys: g = le } = e, [_, v] = X.useState(0), b = r != null, x = X.useRef(null), w = S(x, u), T = X.useRef([]), E = X.useRef(!1), D = o ?? _, O = j((e, t = !1) => {
266
+ if ((c ?? v)(e), t) {
267
267
  let t = T.current[e];
268
268
  J(x.current, t, a, n);
269
269
  }
270
- }), k = M((e) => {
270
+ }), A = j((e) => {
271
271
  if (e.size === 0 || E.current) return;
272
272
  E.current = !0;
273
273
  let t = Array.from(e.keys()), r = t.find((e) => e?.hasAttribute("data-composite-item-active")) ?? null, i = r ? t.indexOf(r) : -1;
274
274
  if (i !== -1) O(i);
275
- else if (A(t, D, m)) {
276
- let e = p(t, { disabledIndices: m });
277
- b(t, e) || O(e);
275
+ else if (k(t, D, h)) {
276
+ let e = f(t, { disabledIndices: h });
277
+ y(t, e) || O(e);
278
278
  }
279
279
  J(x.current, r, a, n);
280
280
  });
281
- u(() => {
282
- if (m == null || o != null || !E.current) return;
281
+ l(() => {
282
+ if (h == null || o != null || !E.current) return;
283
283
  let e = T.current;
284
- if (A(e, D, m)) {
285
- let t = p(e, { disabledIndices: m });
286
- b(e, t) || O(t);
284
+ if (k(e, D, h)) {
285
+ let t = f(e, { disabledIndices: h });
286
+ y(e, t) || O(t);
287
287
  }
288
288
  }, [
289
- m,
289
+ h,
290
290
  o,
291
291
  D,
292
292
  T,
293
293
  O
294
294
  ]);
295
- let j = M((e, t, n) => i ? i(e, t, n, T) : n), N = M((e) => {
295
+ let M = j((e, t, n) => i ? i(e, t, n, T) : n), N = j((e) => {
296
296
  let o = d ? H : F;
297
297
  if (!o.has(e.key) || de(e, g) || !x.current) return;
298
- let s = a === "rtl", l = s ? W : K, u = {
298
+ let c = a === "rtl", l = c ? W : K, u = {
299
299
  horizontal: l,
300
300
  vertical: V,
301
301
  both: l
302
- }[n], _ = s ? K : W, v = {
302
+ }[n], _ = c ? K : W, v = {
303
303
  horizontal: _,
304
304
  vertical: I,
305
305
  both: _
306
- }[n], S = w(e.nativeEvent);
306
+ }[n], S = C(e.nativeEvent);
307
307
  if (S != null && P(S) && !U(S)) {
308
308
  let t = S.selectionStart, n = S.selectionEnd, r = S.value ?? "";
309
309
  if (t == null || e.shiftKey || t !== n || e.key !== v && t < r.length || e.key !== u && t > 0) return;
310
310
  }
311
- let C = D, E = c(T, m), k = h(T, m);
312
- r != null && (C = r({
313
- disabledIndices: m,
311
+ let w = D, E = s(T, h), k = m(T, h);
312
+ r != null && (w = r({
313
+ disabledIndices: h,
314
314
  elementsRef: T,
315
315
  event: e,
316
316
  highlightedIndex: D,
317
317
  loopFocus: t,
318
318
  maxIndex: k,
319
319
  minIndex: E,
320
- onLoop: j,
320
+ onLoop: M,
321
321
  orientation: n,
322
- rtl: s
322
+ rtl: c
323
323
  }));
324
324
  let A = {
325
325
  horizontal: [l],
326
326
  vertical: [V],
327
327
  both: [l, V]
328
- }[n], M = {
328
+ }[n], j = {
329
329
  horizontal: [_],
330
330
  vertical: [I],
331
331
  both: [_, I]
332
- }[n], N = y ? o : {
332
+ }[n], N = b ? o : {
333
333
  horizontal: d ? R : L,
334
334
  vertical: d ? z : B,
335
335
  both: o
336
336
  }[n];
337
- d && (e.key === "Home" ? C = E : e.key === "End" && (C = k)), C === D && (A.includes(e.key) || M.includes(e.key)) && (t && C === k && A.includes(e.key) ? (C = E, i && (C = i(e, D, C, T))) : t && C === E && M.includes(e.key) ? (C = k, i && (C = i(e, D, C, T))) : C = p(T.current, {
338
- startingIndex: C,
339
- decrement: M.includes(e.key),
340
- disabledIndices: m
341
- })), C !== D && !b(T.current, C) && (f && e.stopPropagation(), N.has(e.key) && e.preventDefault(), O(C, !0), queueMicrotask(() => {
342
- T.current[C]?.focus();
337
+ d && (e.key === "Home" ? w = E : e.key === "End" && (w = k)), w === D && (A.includes(e.key) || j.includes(e.key)) && (t && w === k && A.includes(e.key) ? (w = E, i && (w = i(e, D, w, T))) : t && w === E && j.includes(e.key) ? (w = k, i && (w = i(e, D, w, T))) : w = f(T.current, {
338
+ startingIndex: w,
339
+ decrement: j.includes(e.key),
340
+ disabledIndices: h
341
+ })), w !== D && !y(T.current, w) && (p && e.stopPropagation(), N.has(e.key) && e.preventDefault(), O(w, !0), queueMicrotask(() => {
342
+ T.current[w]?.focus();
343
343
  }));
344
344
  });
345
345
  return {
346
346
  props: {
347
- ref: S,
347
+ ref: w,
348
348
  onFocus(e) {
349
- let t = x.current, n = w(e.nativeEvent);
349
+ let t = x.current, n = C(e.nativeEvent);
350
350
  !t || n == null || !P(n) || n.setSelectionRange(0, n.value.length ?? 0);
351
351
  },
352
352
  onKeyDown: N
@@ -354,8 +354,8 @@ function ue(e) {
354
354
  highlightedIndex: D,
355
355
  onHighlightedIndexChange: O,
356
356
  elementsRef: T,
357
- disabledIndices: m,
358
- onMapChange: k,
357
+ disabledIndices: h,
358
+ onMapChange: A,
359
359
  relayKeyboardEvent: N
360
360
  };
361
361
  }
@@ -366,20 +366,20 @@ function de(e, t) {
366
366
  //#endregion
367
367
  //#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/root/CompositeRoot.mjs
368
368
  function fe(e) {
369
- let { render: t, className: n, style: r, refs: i = S, props: a = S, state: o = O, stateAttributesMapping: s, highlightedIndex: c, onHighlightedIndexChange: l, orientation: u, grid: d, loopFocus: p, onLoop: m, enableHomeAndEndKeys: h, onMapChange: g, stopEventPropagation: _ = !0, rootRef: v, disabledIndices: b, modifierKeys: x, highlightItemOnHover: C = !1, tag: w = "div", ...T } = e, { props: E, highlightedIndex: D, onHighlightedIndexChange: k, elementsRef: A, onMapChange: M, relayKeyboardEvent: N } = ue({
370
- grid: d,
369
+ let { render: t, className: n, style: r, refs: i = x, props: a = x, state: o = D, stateAttributesMapping: s, highlightedIndex: c, onHighlightedIndexChange: l, orientation: u, grid: f, loopFocus: p, onLoop: m, enableHomeAndEndKeys: h, onMapChange: g, stopEventPropagation: _ = !0, rootRef: y, disabledIndices: b, modifierKeys: S, highlightItemOnHover: C = !1, tag: w = "div", ...T } = e, { props: E, highlightedIndex: O, onHighlightedIndexChange: k, elementsRef: j, onMapChange: M, relayKeyboardEvent: N } = ue({
370
+ grid: f,
371
371
  loopFocus: p,
372
372
  onLoop: m,
373
373
  orientation: u,
374
374
  highlightedIndex: c,
375
375
  onHighlightedIndexChange: l,
376
- rootRef: v,
376
+ rootRef: y,
377
377
  stopEventPropagation: _,
378
378
  enableHomeAndEndKeys: h,
379
- direction: f(),
379
+ direction: d(),
380
380
  disabledIndices: b,
381
- modifierKeys: x
382
- }), P = y(w, e, {
381
+ modifierKeys: S
382
+ }), P = v(w, e, {
383
383
  state: o,
384
384
  ref: i,
385
385
  props: [
@@ -389,20 +389,20 @@ function fe(e) {
389
389
  ],
390
390
  stateAttributesMapping: s
391
391
  }), F = X.useMemo(() => ({
392
- highlightedIndex: D,
392
+ highlightedIndex: O,
393
393
  onHighlightedIndexChange: k,
394
394
  highlightItemOnHover: C,
395
395
  relayKeyboardEvent: N
396
396
  }), [
397
- D,
397
+ O,
398
398
  k,
399
399
  C,
400
400
  N
401
401
  ]);
402
- return /*#__PURE__*/ (0, $.jsx)(j.Provider, {
402
+ return /*#__PURE__*/ (0, $.jsx)(A.Provider, {
403
403
  value: F,
404
404
  children: /*#__PURE__*/ (0, $.jsx)(ee, {
405
- elementsRef: A,
405
+ elementsRef: j,
406
406
  onMapChange: (e) => {
407
407
  g?.(e), M(e);
408
408
  },
@@ -413,8 +413,8 @@ function fe(e) {
413
413
  //#endregion
414
414
  //#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/tabs/list/TabsList.mjs
415
415
  var pe = /*#__PURE__*/ X.forwardRef(function(e, t) {
416
- let { activateOnFocus: n = !1, className: r, loopFocus: i = !0, render: a, style: o, ...s } = e, { onValueChange: c, orientation: l, value: d, setTabMap: f, tabActivationDirection: p } = Q(), [m, h] = X.useState(0), [g, _] = X.useState(null), v = X.useRef(/* @__PURE__ */ new Set()), y = X.useRef(/* @__PURE__ */ new Set()), b = X.useRef(null);
417
- u(() => {
416
+ let { activateOnFocus: n = !1, className: r, loopFocus: i = !0, render: a, style: o, ...s } = e, { onValueChange: c, orientation: u, value: d, setTabMap: f, tabActivationDirection: p } = Q(), [m, h] = X.useState(0), [g, _] = X.useState(null), v = X.useRef(/* @__PURE__ */ new Set()), y = X.useRef(/* @__PURE__ */ new Set()), b = X.useRef(null);
417
+ l(() => {
418
418
  if (typeof ResizeObserver > "u") return;
419
419
  let e = new ResizeObserver(() => {
420
420
  v.current.forEach((e) => {
@@ -427,22 +427,22 @@ var pe = /*#__PURE__*/ X.forwardRef(function(e, t) {
427
427
  e.disconnect(), b.current = null;
428
428
  };
429
429
  }, [g]);
430
- let x = M((e) => (v.current.add(e), () => {
430
+ let S = j((e) => (v.current.add(e), () => {
431
431
  v.current.delete(e);
432
- })), C = M((e) => (y.current.add(e), b.current?.observe(e), () => {
432
+ })), C = j((e) => (y.current.add(e), b.current?.observe(e), () => {
433
433
  y.current.delete(e), b.current?.unobserve(e);
434
- })), w = M((e, t) => {
434
+ })), w = j((e, t) => {
435
435
  e !== d && c(e, t);
436
436
  }), T = {
437
- orientation: l,
437
+ orientation: u,
438
438
  tabActivationDirection: p
439
439
  }, E = {
440
- "aria-orientation": l === "vertical" ? "vertical" : void 0,
440
+ "aria-orientation": u === "vertical" ? "vertical" : void 0,
441
441
  role: "tablist"
442
442
  }, D = X.useMemo(() => ({
443
443
  activateOnFocus: n,
444
444
  highlightedTabIndex: m,
445
- registerIndicatorUpdateListener: x,
445
+ registerIndicatorUpdateListener: S,
446
446
  registerTabResizeObserverElement: C,
447
447
  onTabActivation: w,
448
448
  setHighlightedTabIndex: h,
@@ -450,7 +450,7 @@ var pe = /*#__PURE__*/ X.forwardRef(function(e, t) {
450
450
  }), [
451
451
  n,
452
452
  m,
453
- x,
453
+ S,
454
454
  C,
455
455
  w,
456
456
  h,
@@ -469,10 +469,10 @@ var pe = /*#__PURE__*/ X.forwardRef(function(e, t) {
469
469
  highlightedIndex: m,
470
470
  enableHomeAndEndKeys: !0,
471
471
  loopFocus: i,
472
- orientation: l,
472
+ orientation: u,
473
473
  onHighlightedIndexChange: h,
474
474
  onMapChange: f,
475
- disabledIndices: S
475
+ disabledIndices: x
476
476
  })
477
477
  });
478
478
  });
@@ -585,8 +585,8 @@ function be() {
585
585
  if (!e) throw Error("useTabsSubtle must be used within a TabsSubtle");
586
586
  return e;
587
587
  }
588
- var xe = (0, X.forwardRef)(({ children: e, selectedIndex: t, onSelect: n, idPrefix: r, activeLabel: i = !1, className: o, ...s }, c) => {
589
- let u = (0, X.useRef)(null), d = (0, X.useRef)(!1), f = a(), { activeIndex: p, setActiveIndex: m, itemRects: h, handlers: g, registerItem: _, measureItems: v } = ve(u, { axis: "x" }), y = (0, X.useRef)(/* @__PURE__ */ new Map()), b = (0, X.useCallback)((e, t) => {
588
+ var xe = (0, X.forwardRef)(({ children: e, selectedIndex: t, onSelect: n, idPrefix: r, activeLabel: a = !1, className: o, ...s }, l) => {
589
+ let u = (0, X.useRef)(null), d = (0, X.useRef)(!1), f = i(), { activeIndex: p, setActiveIndex: m, itemRects: h, handlers: g, registerItem: _, measureItems: v } = ve(u, { axis: "x" }), y = (0, X.useRef)(/* @__PURE__ */ new Map()), x = (0, X.useCallback)((e, t) => {
590
590
  _(e, t), t ? y.current.set(e, t) : y.current.delete(e);
591
591
  }, [_]);
592
592
  (0, X.useEffect)(() => {
@@ -601,14 +601,14 @@ var xe = (0, X.forwardRef)(({ children: e, selectedIndex: t, onSelect: n, idPref
601
601
  d.current = !0, g.onMouseMove(e);
602
602
  }, [g]), C = (0, X.useCallback)(() => {
603
603
  d.current = !1, g.onMouseLeave();
604
- }, [g]), [w, T] = (0, X.useState)(null), E = h[t], D = p === null ? null : h[p], O = w === null ? null : h[w], A = p === t, j = p !== null && !A;
604
+ }, [g]), [w, T] = (0, X.useState)(null), E = h[t], D = p === null ? null : h[p], k = w === null ? null : h[w], A = p === t, j = p !== null && !A;
605
605
  return /* @__PURE__ */ (0, $.jsx)(ye.Provider, {
606
606
  value: {
607
- registerTab: b,
607
+ registerTab: x,
608
608
  hoveredIndex: p,
609
609
  selectedIndex: t,
610
610
  idPrefix: r,
611
- activeLabel: i
611
+ activeLabel: a
612
612
  },
613
613
  children: /* @__PURE__ */ (0, $.jsx)(re, {
614
614
  value: t,
@@ -618,7 +618,7 @@ var xe = (0, X.forwardRef)(({ children: e, selectedIndex: t, onSelect: n, idPref
618
618
  render: /* @__PURE__ */ (0, $.jsxs)(pe, {
619
619
  activateOnFocus: !1,
620
620
  ref: (e) => {
621
- u.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
621
+ u.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
622
622
  },
623
623
  onMouseMove: S,
624
624
  onMouseLeave: C,
@@ -632,11 +632,11 @@ var xe = (0, X.forwardRef)(({ children: e, selectedIndex: t, onSelect: n, idPref
632
632
  onBlur: (e) => {
633
633
  u.current?.contains(e.relatedTarget) || (T(null), !d.current && m(null));
634
634
  },
635
- className: l("relative flex items-center gap-0.5 select-none overflow-x-auto max-w-full -mx-1 px-1 -my-1 py-1", o),
635
+ className: c("relative flex items-center gap-0.5 select-none overflow-x-auto max-w-full -mx-1 px-1 -my-1 py-1", o),
636
636
  ...s,
637
637
  children: [
638
- E && /* @__PURE__ */ (0, $.jsx)(x.div, {
639
- className: l("absolute bg-accent pointer-events-none", f.bg),
638
+ E && /* @__PURE__ */ (0, $.jsx)(b.div, {
639
+ className: c("absolute bg-accent pointer-events-none", f.bg),
640
640
  initial: !1,
641
641
  animate: {
642
642
  left: E.left,
@@ -646,12 +646,12 @@ var xe = (0, X.forwardRef)(({ children: e, selectedIndex: t, onSelect: n, idPref
646
646
  opacity: j ? .8 : 1
647
647
  },
648
648
  transition: {
649
- ...k.moderate,
649
+ ...O.moderate,
650
650
  opacity: { duration: .08 }
651
651
  }
652
652
  }),
653
- /* @__PURE__ */ (0, $.jsx)(q, { children: D && !A && E && /* @__PURE__ */ (0, $.jsx)(x.div, {
654
- className: l("absolute bg-accent pointer-events-none", f.bg),
653
+ /* @__PURE__ */ (0, $.jsx)(q, { children: D && !A && E && /* @__PURE__ */ (0, $.jsx)(b.div, {
654
+ className: c("absolute bg-accent pointer-events-none", f.bg),
655
655
  initial: {
656
656
  left: E.left,
657
657
  width: E.width,
@@ -673,33 +673,33 @@ var xe = (0, X.forwardRef)(({ children: e, selectedIndex: t, onSelect: n, idPref
673
673
  height: E.height,
674
674
  opacity: 0,
675
675
  transition: {
676
- ...k.moderate,
676
+ ...O.moderate,
677
677
  opacity: { duration: .06 }
678
678
  }
679
679
  } : {
680
680
  opacity: 0,
681
- transition: k.fast.exit
681
+ transition: O.fast.exit
682
682
  },
683
683
  transition: {
684
- ...k.fast,
684
+ ...O.fast,
685
685
  opacity: { duration: .08 }
686
686
  }
687
687
  }) }),
688
- /* @__PURE__ */ (0, $.jsx)(q, { children: O && /* @__PURE__ */ (0, $.jsx)(x.div, {
689
- className: l("absolute pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]", f.focusRing),
688
+ /* @__PURE__ */ (0, $.jsx)(q, { children: k && /* @__PURE__ */ (0, $.jsx)(b.div, {
689
+ className: c("absolute pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]", f.focusRing),
690
690
  initial: !1,
691
691
  animate: {
692
- left: O.left - 2,
693
- top: O.top - 2,
694
- width: O.width + 4,
695
- height: O.height + 4
692
+ left: k.left - 2,
693
+ top: k.top - 2,
694
+ width: k.width + 4,
695
+ height: k.height + 4
696
696
  },
697
697
  exit: {
698
698
  opacity: 0,
699
- transition: k.fast.exit
699
+ transition: O.fast.exit
700
700
  },
701
701
  transition: {
702
- ...k.fast,
702
+ ...O.fast,
703
703
  opacity: { duration: .08 }
704
704
  }
705
705
  }) }),
@@ -710,19 +710,19 @@ var xe = (0, X.forwardRef)(({ children: e, selectedIndex: t, onSelect: n, idPref
710
710
  });
711
711
  });
712
712
  xe.displayName = "TabsSubtle";
713
- var Se = (0, X.forwardRef)(({ icon: e, label: t, index: n, className: r, ...i }, o) => {
714
- let s = (0, X.useRef)(null), c = a(), { registerTab: u, hoveredIndex: d, selectedIndex: f, idPrefix: p, activeLabel: m } = be();
713
+ var Se = (0, X.forwardRef)(({ icon: e, label: t, index: n, className: r, ...a }, o) => {
714
+ let s = (0, X.useRef)(null), l = i(), { registerTab: u, hoveredIndex: d, selectedIndex: f, idPrefix: p, activeLabel: m } = be();
715
715
  (0, X.useEffect)(() => (u(n, s.current), () => u(n, null)), [n, u]);
716
- let h = f === n, g = d === n || h, _ = m && !!e, y = !_ || h, b = /* @__PURE__ */ (0, $.jsxs)("span", {
716
+ let h = f === n, g = d === n || h, v = m && !!e, y = !v || h, x = /* @__PURE__ */ (0, $.jsxs)("span", {
717
717
  className: "inline-grid",
718
718
  children: [/* @__PURE__ */ (0, $.jsx)("span", {
719
719
  className: "col-start-1 row-start-1 invisible [text-box:trim-both_cap_alphabetic]",
720
- style: { fontVariationSettings: v.semibold },
720
+ style: { fontVariationSettings: _.semibold },
721
721
  "aria-hidden": "true",
722
722
  children: t
723
723
  }), /* @__PURE__ */ (0, $.jsx)("span", {
724
- className: l("col-start-1 row-start-1 transition-[color,font-variation-settings] duration-80 [text-box:trim-both_cap_alphabetic]", g ? "text-foreground" : "text-muted-foreground"),
725
- style: { fontVariationSettings: h ? v.semibold : v.normal },
724
+ className: c("col-start-1 row-start-1 transition-[color,font-variation-settings] duration-80 [text-box:trim-both_cap_alphabetic]", g ? "text-foreground" : "text-muted-foreground"),
725
+ style: { fontVariationSettings: h ? _.semibold : _.normal },
726
726
  children: t
727
727
  })]
728
728
  });
@@ -735,14 +735,14 @@ var Se = (0, X.forwardRef)(({ icon: e, label: t, index: n, className: r, ...i },
735
735
  "data-proximity-index": n,
736
736
  id: p ? `${p}-tab-${n}` : void 0,
737
737
  "aria-controls": p ? `${p}-panel-${n}` : void 0,
738
- "aria-label": _ && !y ? t : void 0,
739
- className: l("relative z-10 flex items-center px-2 cursor-pointer bg-transparent border-none outline-none text-xs", _ ? "h-7" : "h-7 gap-1.5", c.bg, r),
740
- ...i,
738
+ "aria-label": v && !y ? t : void 0,
739
+ className: c("relative z-10 flex items-center px-2 cursor-pointer bg-transparent border-none outline-none text-xs", v ? "h-7" : "h-7 gap-1.5", l.bg, r),
740
+ ...a,
741
741
  children: [e && /* @__PURE__ */ (0, $.jsx)(e, {
742
742
  size: 14,
743
743
  strokeWidth: g ? 2 : 1.5,
744
- className: l("shrink-0 transition-[color,stroke-width] duration-80", g ? "text-foreground" : "text-muted-foreground")
745
- }), _ ? /* @__PURE__ */ (0, $.jsx)(q, { children: y && /* @__PURE__ */ (0, $.jsx)(x.span, {
744
+ className: c("shrink-0 transition-[color,stroke-width] duration-80", g ? "text-foreground" : "text-muted-foreground")
745
+ }), v ? /* @__PURE__ */ (0, $.jsx)(q, { children: y && /* @__PURE__ */ (0, $.jsx)(b.span, {
746
746
  className: "overflow-hidden",
747
747
  initial: {
748
748
  width: 0,
@@ -760,11 +760,11 @@ var Se = (0, X.forwardRef)(({ icon: e, label: t, index: n, className: r, ...i },
760
760
  marginLeft: 0
761
761
  },
762
762
  transition: {
763
- ...k.fast,
763
+ ...O.fast,
764
764
  opacity: { duration: .06 }
765
765
  },
766
- children: b
767
- }, "label") }) : b]
766
+ children: x
767
+ }, "label") }) : x]
768
768
  });
769
769
  });
770
770
  Se.displayName = "TabsSubtleItem";
@@ -777,7 +777,7 @@ var Ce = (0, X.forwardRef)(({ index: e, selectedIndex: t, idPrefix: n, children:
777
777
  "aria-labelledby": `${n}-tab-${e}`,
778
778
  hidden: !s,
779
779
  tabIndex: -1,
780
- className: l("outline-none", i),
780
+ className: c("outline-none", i),
781
781
  ...a,
782
782
  children: s && r
783
783
  });