@mcp-use/inspector 20.0.0-beta.6 → 20.0.0-beta.8
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.
- package/dist/cdn/{AnimatePresence-Dcw-FOy8.js → AnimatePresence-D1bZ5_-l.js} +79 -78
- package/dist/cdn/{ChatTab-D6J3Gyp7.js → ChatTab-C-Ysv6Zf.js} +1951 -1932
- package/dist/cdn/CheckboxIndicator-BjF73mGX.js +252 -0
- package/dist/cdn/{ConnectionSettingsForm-CWQueI8J.js → ConnectionSettingsForm-CNuMa6jp.js} +202 -202
- package/dist/cdn/{ConnectionSettingsTab-FGyt3QaI.js → ConnectionSettingsTab-qSVQ1aIF.js} +36 -35
- package/dist/cdn/{ElicitationTab-CL1KJ0bz.js → ElicitationTab-PEmEDvC5.js} +47 -46
- package/dist/cdn/{FormContext-tmgN_Vdr.js → FormContext-NtUiZclE.js} +26 -26
- package/dist/cdn/{InspectorContext-UjtEbNod.js → InspectorContext-BBKCdfmK.js} +1 -1
- package/dist/cdn/{JSONDisplay-BFxf5oEu.js → JSONDisplay-BJqMz7Ny.js} +22 -22
- package/dist/cdn/{ListTabHeader-Cv-GmtGF.js → ListTabHeader-DzmTtN1e.js} +20 -19
- package/dist/cdn/{WidgetWrapper-CruwjBOd.js → MCPAppsDebugControls-BpP-Ifap.js} +514 -550
- package/dist/cdn/{ManufactOAuthCallback-B98kSYCj.js → ManufactOAuthCallback-ChbbjFIT.js} +2 -2
- package/dist/cdn/{MarkdownRenderer-gLqUICEd.js → MarkdownRenderer-CK_6n3T9.js} +23 -23
- package/dist/cdn/McpAppsViewPanel-jlsYQ7uS.js +56 -0
- package/dist/cdn/{NotificationsTab-CeImSrhx.js → NotificationsTab-B7uebqMV.js} +21 -21
- package/dist/cdn/{OAuthCallback-Bg2bP-o9.js → OAuthCallback--NZdLoWx.js} +3 -3
- package/dist/cdn/PromptsTab-DSGYL32k.js +902 -0
- package/dist/cdn/{ResourcesTab-CQkKni-P.js → ResourcesTab-d3wxN7xC.js} +116 -114
- package/dist/cdn/{SamplingTab-D8q-iCMc.js → SamplingTab-DETdWNJk.js} +34 -33
- package/dist/cdn/{ServerMetadataTab-CvrKX8fz.js → ServerMetadataTab-BM3VhSLf.js} +9 -9
- package/dist/cdn/{StatusIcon-D0-ARyOh.js → StatusIcon-Q3n3YRtE.js} +10 -11
- package/dist/cdn/{ToolsTab-6xaVH43x.js → ToolsTab-BMcnfEWg.js} +665 -653
- package/dist/cdn/{ViewPreview-Ohh6JwOn.js → ViewPreview-CBhrVdwx.js} +3 -3
- package/dist/cdn/{WidgetDebugContext-D4usL_MA.js → WidgetDebugContext-B6yoOVVV.js} +1 -11
- package/dist/cdn/WidgetWrapper-BlbQAh_X.js +12 -0
- package/dist/cdn/{bell-CGjAO_0s.js → bell-GrTZcnD2.js} +1 -1
- package/dist/cdn/{browser-CbQIH4w2.js → browser-DG2Z8392.js} +1 -1
- package/dist/cdn/{brush-B_mKhyxG.js → brush-CelVvMGp.js} +1 -1
- package/dist/cdn/button-CB4uOoUV.js +2509 -0
- package/dist/cdn/card-BA-DQk-G.js +41 -0
- package/dist/cdn/{checkbox-By0FklhG.js → checkbox-kwVa4gRX.js} +7 -7
- package/dist/cdn/{clock-CmUbSx_B.js → clock-YMF8Gtw5.js} +1 -1
- package/dist/cdn/{code-V_0nf5rg.js → code-C8sN2OGR.js} +1 -1
- package/dist/cdn/{jsx-runtime-CIxvMpEo.js → createLucideIcon-BONxC1L5.js} +57 -24
- package/dist/cdn/{dialog-BsDpuJd3.js → dialog-CJGnC5Ag.js} +171 -171
- package/dist/cdn/{dist-DaMB0Su9.js → dist-CTJnCYmk.js} +1 -1
- package/dist/cdn/{dist-CXHFvGre.js → dist-SxRsB1iS.js} +3 -3
- package/dist/cdn/{external-link-CjmfT6rW.js → external-link-Bo4lQxr1.js} +1 -1
- package/dist/cdn/{eye-B7H96av8.js → eye-pSGG7nvf.js} +1 -1
- package/dist/cdn/{folder-open-B3lu2rG_.js → folder-open-aM8CPtBO.js} +1 -1
- package/dist/cdn/{hash-BVQnWi7q.js → hash-DDs2vE1k.js} +1 -1
- package/dist/cdn/{history-Csw4rb44.js → history-BfUFpL1d.js} +1 -1
- package/dist/cdn/{index-browser-DkQOzkvX.js → index-browser-Dm3R1Mfe.js} +1 -1
- package/dist/cdn/{info-CNiOwqkf.js → info-BMkB68mB.js} +1 -1
- package/dist/cdn/{input-C2OBd4PJ.js → input-BCpgLXU1.js} +2993 -5499
- package/dist/cdn/inspector.css +1 -1
- package/dist/cdn/inspector.js +7106 -7140
- package/dist/cdn/{label-B9Jmm9be.js → label-A0UGV8FE.js} +9 -9
- package/dist/cdn/{loader-circle-BLy9A_pp.js → loader-circle-BKRHJEB7.js} +1 -1
- package/dist/cdn/{maximize-2-CH5Lq90B.js → maximize-2-DdrB_spi.js} +1 -1
- package/dist/cdn/{maximize-BALCV_ep.js → maximize-hSOCz133.js} +1 -1
- package/dist/cdn/{message-square-BnxdpJxZ.js → message-square-D3tKB3uJ.js} +1 -1
- package/dist/cdn/{not-found-DEtSM_Wd.js → not-found-BajFyZpp.js} +9 -11
- package/dist/cdn/{play-vuZ5PLnI.js → play-B1leulYf.js} +1 -1
- package/dist/cdn/providerMeta-CjGU4rID.js +436 -0
- package/dist/cdn/{react-BLtCruam.js → react-Bl-hSkvn.js} +562 -512
- package/dist/cdn/{refresh-cw-BXY-Pa0U.js → refresh-cw-CyvXrS91.js} +1 -1
- package/dist/cdn/{save-Tgil_AJZ.js → save-CmdEPUAm.js} +1 -1
- package/dist/cdn/{select-DDdiIPR2.js → select-CCFHjOGk.js} +808 -807
- package/dist/cdn/{servers-Dm72iTpY.js → servers-Dd0Vcp81.js} +5 -1
- package/dist/cdn/{shared-DaILIQPP.js → shared-CJVHJhag.js} +36 -36
- package/dist/cdn/{sheet-Br_l2kry.js → sheet-oyq1mIyg.js} +620 -619
- package/dist/cdn/{sparkles-BntO2rDR.js → sparkles-CxeZpVtX.js} +1 -1
- package/dist/cdn/spinner-Be1GlSGX.js +15 -0
- package/dist/cdn/{square-check-big-BvwQ17Bl.js → square-check-big-C_4wbfwF.js} +1 -1
- package/dist/cdn/{switch-C3IyQuid.js → switch-DHXEA_N5.js} +190 -189
- package/dist/cdn/{tabs-subtle-CkdI6Mac.js → tabs-subtle-Dubd6Kj8.js} +269 -268
- package/dist/cdn/{telemetry-C7Ytz2BG.js → telemetry-DjQn_Xm9.js} +2 -2
- package/dist/cdn/{textarea-DSbwcFVt.js → textarea-CwmI8_uI.js} +6 -6
- package/dist/cdn/{trash-2-RwpJY5SL.js → trash-2-BhumJAFE.js} +1 -1
- package/dist/cdn/{useAriaLabelledBy-DqAdnppm.js → useAriaLabelledBy-Cra6w3YY.js} +2 -1
- package/dist/cdn/{useCompositeItem-BRqEzYh-.js → useCompositeItem-Dhnm-7el.js} +3 -3
- package/dist/cdn/{useConfig-BW6uQf2m.js → useConfig-B_adtnP1.js} +2 -2
- package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
- package/dist/cdn/{useViewHostProps-CINeSkth.js → useViewHostProps-CDOm2w6u.js} +124 -109
- package/dist/cdn/{wrench-DzGmCfnb.js → wrench-DvK20LUT.js} +1 -1
- package/dist/cdn/{x-C3vRQIYu.js → x-EilKPiCX.js} +1 -1
- package/dist/cdn/{zap-Mb-pbw2X.js → zap-0Wr9QO7N.js} +1 -1
- package/dist/cli.js +61 -2
- package/dist/client/components/ChatTab.d.ts.map +1 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
- package/dist/client/components/ToolsTab.d.ts.map +1 -1
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
- package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +29 -0
- package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +1 -0
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +2 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
- package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -1
- package/dist/client/components/ui/mesh-animation-pause.d.ts +14 -0
- package/dist/client/components/ui/mesh-animation-pause.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-gradient-colors.d.ts +6 -0
- package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts +1 -1
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
- package/dist/client/components/ui/not-found.d.ts.map +1 -1
- package/dist/client/context/WidgetDebugContext.d.ts +1 -11
- package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
- package/dist/client/hooks/useDeviceViewport.d.ts +1 -5
- package/dist/client/hooks/useDeviceViewport.d.ts.map +1 -1
- package/dist/client/hooks/useViewHostProps.d.ts +1 -1
- package/dist/client/hooks/useViewHostProps.d.ts.map +1 -1
- package/dist/client/index.js +2087 -1861
- package/dist/client/utils/servers.d.ts +5 -0
- package/dist/client/utils/servers.d.ts.map +1 -1
- package/dist/server/cdn-shell.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +2 -2
- package/dist/server/{chunk-GBY4WAVP.js → chunk-BD3ROXCC.js} +1 -1
- package/dist/server/{chunk-NUHI6MJ6.js → chunk-BPXKTFQ5.js} +1 -1
- package/dist/server/{chunk-IFF5T5J4.js → chunk-XTVIGRTB.js} +61 -2
- package/dist/server/cli.js +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/middleware.js +3 -3
- package/dist/server/version.js +1 -1
- package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +9 -0
- package/dist/web/assets/ChatTab-DxD-KLW_.js +18 -0
- package/dist/web/assets/ConnectionSettingsTab-pO6p0U0f.js +1 -0
- package/dist/web/assets/ElicitationTab-o5_z6gqe.js +1 -0
- package/dist/web/assets/FormContext-sV-yByKz.js +1 -0
- package/dist/web/assets/ListTabHeader-CrGae306.js +1 -0
- package/dist/web/assets/MCPAppsDebugControls-CZW1uZdH.js +34 -0
- package/dist/web/assets/{ManufactOAuthCallback-BRO6TPkZ.js → ManufactOAuthCallback-BnWhf5bW.js} +1 -1
- package/dist/web/assets/{MarkdownRenderer-gaJFjbtr.js → MarkdownRenderer-gUUHRIm1.js} +2 -2
- package/dist/web/assets/McpAppsViewPanel-CDJDb4t-.js +1 -0
- package/dist/web/assets/{NotificationsTab-LYcfRjyd.js → NotificationsTab-CkJ5E_sR.js} +1 -1
- package/dist/web/assets/{OAuthCallback-D8UItgTB.js → OAuthCallback-Dv_mFcua.js} +1 -1
- package/dist/web/assets/PromptsTab-CLwWFf6d.js +15 -0
- package/dist/web/assets/ResourcesTab-B8cnuq-m.js +2 -0
- package/dist/web/assets/SamplingTab-BjYHYRHX.js +1 -0
- package/dist/web/assets/ServerMetadataTab-CPlclbb7.js +1 -0
- package/dist/web/assets/ToolsTab-BSSwvp4Q.js +8 -0
- package/dist/web/assets/{ViewPreview--z6jL0Zg.js → ViewPreview-C_LJdgt9.js} +1 -1
- package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +1 -0
- package/dist/web/assets/{brush--0LobUi4.js → brush-DX0UZ_pI.js} +1 -1
- package/dist/web/assets/button-C8Xa2k4x.js +1 -0
- package/dist/web/assets/checkbox-BuuDhnpk.js +1 -0
- package/dist/web/assets/code-B14rVdNt.js +1 -0
- package/dist/web/assets/createLucideIcon-BEHeJH0M.js +1 -0
- package/dist/web/assets/{dist-B8sA8Zml.js → dist-C39gcmyH.js} +4 -4
- package/dist/web/assets/index-CyvvaDNR.js +499 -0
- package/dist/web/assets/index-bCIH1Sdx.css +1 -0
- package/dist/web/assets/input-C0OQCUZy.js +1 -0
- package/dist/web/assets/{label-Cdim77Jw.js → label-CI7JWQOo.js} +1 -1
- package/dist/web/assets/{maximize-2-BTT9QQU9.js → maximize-2-Br1WQzT2.js} +1 -1
- package/dist/web/assets/{maximize-_O55kFcr.js → maximize-CJNgRe6S.js} +1 -1
- package/dist/web/assets/{refresh-cw-C9wQl8_d.js → refresh-cw-B5iaAZKn.js} +1 -1
- package/dist/web/assets/{save-B-MsgxX9.js → save-TM6fvNrt.js} +1 -1
- package/dist/web/assets/select-D6jzbLJn.js +1 -0
- package/dist/web/assets/shared-Chk1rURG.js +1 -0
- package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
- package/dist/web/assets/tabs-subtle-CK4nucyB.js +1 -0
- package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
- package/dist/web/assets/{useConfig-BAsKhUxf.js → useConfig-CgQbKjVT.js} +1 -1
- package/dist/web/assets/useViewHostProps-DFI7Ywo7.js +1 -0
- package/dist/web/assets/{zap-Du2Uc5pa.js → zap-BDWHCVHU.js} +1 -1
- package/dist/web/index.html +10 -10
- package/package.json +2 -2
- package/dist/cdn/CheckboxIndicator-Bt4IICtv.js +0 -251
- package/dist/cdn/PromptsTab-C4LuwyWN.js +0 -901
- package/dist/cdn/card-DgiYnSg-.js +0 -41
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
- package/dist/cdn/providerMeta-BQIfHuNL.js +0 -379
- package/dist/cdn/spinner-jQtC7EBj.js +0 -15
- package/dist/web/assets/AnimatePresence-C5p0yiY1.js +0 -9
- package/dist/web/assets/ChatTab-CsBPVCSc.js +0 -18
- package/dist/web/assets/ConnectionSettingsTab-DQTXfnl1.js +0 -1
- package/dist/web/assets/ElicitationTab-_FKB7nNG.js +0 -1
- package/dist/web/assets/FormContext-DH2caWKO.js +0 -1
- package/dist/web/assets/ListTabHeader-R17w_JsB.js +0 -1
- package/dist/web/assets/PromptsTab-B2uVMRR2.js +0 -15
- package/dist/web/assets/ResourcesTab-DhOZYPjE.js +0 -2
- package/dist/web/assets/SamplingTab-C-oY2hoi.js +0 -1
- package/dist/web/assets/ServerMetadataTab-BkTxO5KS.js +0 -1
- package/dist/web/assets/ToolsTab-DupHgo7A.js +0 -8
- package/dist/web/assets/WidgetWrapper-CZaEVEw4.js +0 -34
- package/dist/web/assets/checkbox-BQ9mI_6k.js +0 -1
- package/dist/web/assets/code-tME-5H6D.js +0 -1
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
- package/dist/web/assets/index-C_fCIJ4C.js +0 -492
- package/dist/web/assets/index-fBX3akc8.css +0 -1
- package/dist/web/assets/input-CLYhA7PK.js +0 -1
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
- package/dist/web/assets/select-CJ57-Bor.js +0 -1
- package/dist/web/assets/shared-CCC9rTz4.js +0 -1
- package/dist/web/assets/tabs-subtle-246ABJqx.js +0 -1
- package/dist/web/assets/textarea-DLAmNVf_.js +0 -1
- package/dist/web/assets/useViewHostProps-CV5zBxUb.js +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { $t as n, An as r,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { $t as n, An as r, Bt as i, Cn as a, Dt as o, En as s, Et as c, Fn as l, Ft as u, Ht as d, In as f, J as p, Jt as m, Kn as h, Ln as g, Lt as _, Mn as v, Mt as y, Nn as b, On as x, Pt as S, Qt as ee, Sn as C, Tn as w, Tt as T, Un as E, Ut as te, Vt as D, Wt as O, X as k, Xt as A, Yn as j, Yt as M, Z as N, Zt as ne, _n as re, an as ie, bn as P, bt as F, cn as I, dn as ae, en as L, er as R, f as z, fn as B, gn as V, hn as oe, in as H, ir as se, jn as ce, jt as le, kn as ue, ln as de, mn as U, nn as fe, nt as pe, o as me, on as W, or as he, pn as ge, q as _e, qn as ve, qt as ye, rn as be, rr as xe, s as Se, sn as Ce, st as we, tn as Te, tr as G, un as Ee, vn as K, wn as De, wt as q, xn as Oe, xt as J, yn as ke, zn as Ae, zt as je } from "./input-BCpgLXU1.js";
|
|
3
|
+
import { n as Me } from "./createLucideIcon-BONxC1L5.js";
|
|
4
|
+
import { F as Ne, H as Pe, I as Fe, M as Ie, T as Le, U as Re, W as ze, a as Be, c as Ve, d as He, g as Y, h as Ue, j as We, k as Ge, l as Ke, m as qe, o as Je, s as Ye, u as Xe, v as X, y as Ze } from "./button-CB4uOoUV.js";
|
|
5
|
+
import { n as Qe } from "./label-A0UGV8FE.js";
|
|
6
|
+
import { b as $e, l as et, n as tt, r as nt, t as rt, y as it } from "./AnimatePresence-D1bZ5_-l.js";
|
|
7
|
+
import { c as at, i as ot, l as st, o as ct, r as lt, t as ut } from "./FormContext-NtUiZclE.js";
|
|
7
8
|
//#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/floating-ui-react/utils/enqueueFocus.mjs
|
|
8
9
|
var Z = /* @__PURE__ */ e(t(), 1), dt = 0;
|
|
9
10
|
function ft(e, t = {}) {
|
|
@@ -12,7 +13,7 @@ function ft(e, t = {}) {
|
|
|
12
13
|
function a() {
|
|
13
14
|
i && !i() || e?.focus({ preventScroll: n });
|
|
14
15
|
}
|
|
15
|
-
if (r) return a(),
|
|
16
|
+
if (r) return a(), Ve;
|
|
16
17
|
let o = requestAnimationFrame(a);
|
|
17
18
|
return dt = o, () => {
|
|
18
19
|
dt === o && (cancelAnimationFrame(o), dt = 0);
|
|
@@ -31,7 +32,7 @@ function vt(e) {
|
|
|
31
32
|
return ht[e];
|
|
32
33
|
}
|
|
33
34
|
function yt(e) {
|
|
34
|
-
return e ?
|
|
35
|
+
return e ? Fe(e) ? e.host : yt(e.parentNode) : null;
|
|
35
36
|
}
|
|
36
37
|
var bt = (e, t) => t.map((t) => {
|
|
37
38
|
if (e.contains(t)) return t;
|
|
@@ -46,7 +47,7 @@ var bt = (e, t) => t.map((t) => {
|
|
|
46
47
|
}, St = (e, t, n) => {
|
|
47
48
|
let r = [], i = (e) => {
|
|
48
49
|
!e || n.has(e) || Array.from(e.children).forEach((e) => {
|
|
49
|
-
|
|
50
|
+
Le(e) !== "script" && (t.has(e) ? i(e) : r.push(e));
|
|
50
51
|
});
|
|
51
52
|
};
|
|
52
53
|
return i(e), r;
|
|
@@ -78,14 +79,14 @@ function Ct(e, t, n, r, { mark: i = !0 }) {
|
|
|
78
79
|
};
|
|
79
80
|
}
|
|
80
81
|
function wt(e, t = {}) {
|
|
81
|
-
let { ariaHidden: n = !1, inert: r = !1, mark: i = !0 } = t, a =
|
|
82
|
+
let { ariaHidden: n = !1, inert: r = !1, mark: i = !0 } = t, a = W(e[0]).body;
|
|
82
83
|
return Ct(e, a, n, r, { mark: i });
|
|
83
84
|
}
|
|
84
85
|
//#endregion
|
|
85
86
|
//#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/floating-ui-react/components/FloatingFocusManager.mjs
|
|
86
|
-
var Q =
|
|
87
|
+
var Q = Me();
|
|
87
88
|
function Tt(e, t) {
|
|
88
|
-
let n =
|
|
89
|
+
let n = Ge(oe(e));
|
|
89
90
|
return e instanceof n.KeyboardEvent ? "keyboard" : e instanceof n.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof n.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
|
|
90
91
|
}
|
|
91
92
|
var Et = 20, Dt = [];
|
|
@@ -93,278 +94,278 @@ function Ot() {
|
|
|
93
94
|
Dt = Dt.filter((e) => e.deref()?.isConnected);
|
|
94
95
|
}
|
|
95
96
|
function kt(e) {
|
|
96
|
-
Ot(), e &&
|
|
97
|
+
Ot(), e && Le(e) !== "body" && (Dt.push(new WeakRef(e)), Dt.length > Et && (Dt = Dt.slice(-20)));
|
|
97
98
|
}
|
|
98
99
|
function At() {
|
|
99
100
|
return Ot(), Dt[Dt.length - 1]?.deref();
|
|
100
101
|
}
|
|
101
102
|
function jt(e) {
|
|
102
|
-
return e ?
|
|
103
|
+
return e ? m(e) ? e : M(e)[0] || e : null;
|
|
103
104
|
}
|
|
104
105
|
function Mt(e) {
|
|
105
106
|
if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !e.getAttribute("role")?.includes("dialog")) return;
|
|
106
|
-
let t =
|
|
107
|
+
let t = d(e).filter((e) => {
|
|
107
108
|
let t = e.getAttribute("data-tabindex") || "";
|
|
108
|
-
return
|
|
109
|
+
return m(e) || e.hasAttribute("data-tabindex") && !t.startsWith("-");
|
|
109
110
|
}), n = e.getAttribute("tabindex");
|
|
110
111
|
t.length === 0 ? n !== "0" && (e.setAttribute("tabindex", "0"), e.setAttribute("data-tabindex", "0")) : (n !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
|
|
111
112
|
}
|
|
112
113
|
function Nt(e) {
|
|
113
|
-
let { context: t, children: r, disabled:
|
|
114
|
+
let { context: t, children: r, disabled: o = !1, initialFocus: s = !0, returnFocus: c = !0, restoreFocus: l = !1, modal: d = !0, closeOnFocusOut: p = !0, openInteractionType: h = "", nextFocusableElement: g, previousFocusableElement: _, beforeContentFocusGuardRef: b, externalTree: S, getInsideElements: ee } = e, T = "rootStore" in t ? t.rootStore : t, k = T.useState("open"), A = T.useState("domReferenceElement"), j = T.useState("floatingElement"), { events: N, dataRef: ne } = T.context, re = X(() => ne.current.floatingContext?.nodeId), ie = s === !1, P = ae(A) && ie, F = Ce(s), L = Ce(c), R = Ce(h), z = Ce(k), V = y(S), H = u(), se = Z.useRef(!1), le = Z.useRef(!1), ue = Z.useRef(!1), fe = Z.useRef(null), pe = Z.useRef(""), me = Z.useRef(""), he = Z.useRef(null), _e = Z.useRef(null), ve = Xe(he, b, H?.beforeInsideRef), xe = Xe(_e, H?.afterInsideRef), Se = w(), we = w(), Te = ce(), G = H != null, K = Ee(j), De = X((e = K) => e ? M(e) : []), q = X(() => ee?.().filter((e) => e != null) ?? []);
|
|
114
115
|
Z.useEffect(() => {
|
|
115
|
-
if (
|
|
116
|
+
if (o || !d) return;
|
|
116
117
|
function e(e) {
|
|
117
|
-
e.key === "Tab" && K
|
|
118
|
+
e.key === "Tab" && U(K, ge(W(K))) && De().length === 0 && !P && a(e);
|
|
118
119
|
}
|
|
119
|
-
return
|
|
120
|
+
return de(W(K), "keydown", e);
|
|
120
121
|
}, [
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
o,
|
|
123
|
+
K,
|
|
124
|
+
d,
|
|
124
125
|
P,
|
|
125
|
-
|
|
126
|
+
De
|
|
126
127
|
]), Z.useEffect(() => {
|
|
127
|
-
if (
|
|
128
|
-
let e =
|
|
128
|
+
if (o || !k) return;
|
|
129
|
+
let e = W(K);
|
|
129
130
|
function t() {
|
|
130
|
-
|
|
131
|
+
ue.current = !1;
|
|
131
132
|
}
|
|
132
133
|
function n(e) {
|
|
133
|
-
let t =
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
let t = oe(e), n = q();
|
|
135
|
+
ue.current = !(U(j, t) || U(A, t) || U(H?.portalNode, t) || n.some((e) => e === t || U(e, t))), me.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (le.current = !0, we.start(0, () => {
|
|
136
|
+
le.current = !1;
|
|
136
137
|
}));
|
|
137
138
|
}
|
|
138
139
|
function r() {
|
|
139
|
-
|
|
140
|
+
me.current = "keyboard";
|
|
140
141
|
}
|
|
141
|
-
return
|
|
142
|
+
return I(de(e, "pointerdown", n, !0), de(e, "pointerup", t, !0), de(e, "pointercancel", t, !0), de(e, "keydown", r, !0), t);
|
|
142
143
|
}, [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
o,
|
|
145
|
+
j,
|
|
146
|
+
A,
|
|
147
|
+
K,
|
|
148
|
+
k,
|
|
149
|
+
H,
|
|
150
|
+
we,
|
|
151
|
+
q
|
|
151
152
|
]), Z.useEffect(() => {
|
|
152
|
-
if (
|
|
153
|
-
let e =
|
|
153
|
+
if (o || !p) return;
|
|
154
|
+
let e = W(K);
|
|
154
155
|
function t() {
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
le.current = !0, we.start(0, () => {
|
|
157
|
+
le.current = !1;
|
|
157
158
|
});
|
|
158
159
|
}
|
|
159
160
|
function r(e) {
|
|
160
|
-
let t =
|
|
161
|
-
|
|
161
|
+
let t = oe(e);
|
|
162
|
+
m(t) && (fe.current = t);
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
-
let r = t.relatedTarget,
|
|
165
|
-
|
|
166
|
-
let
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
].includes(r),
|
|
176
|
-
if (
|
|
177
|
-
if (
|
|
178
|
-
|
|
179
|
-
|
|
164
|
+
function a(t) {
|
|
165
|
+
let r = t.relatedTarget, a = t.currentTarget, o = oe(t);
|
|
166
|
+
d && r == null && o != null && U(j, o) && kt(o), queueMicrotask(() => {
|
|
167
|
+
let s = re(), c = T.context.triggerElements, u = q(), f = r?.hasAttribute(je("focus-guard")) && [
|
|
168
|
+
he.current,
|
|
169
|
+
_e.current,
|
|
170
|
+
H?.beforeInsideRef.current,
|
|
171
|
+
H?.afterInsideRef.current,
|
|
172
|
+
H?.beforeOutsideRef.current,
|
|
173
|
+
H?.afterOutsideRef.current,
|
|
174
|
+
x(_),
|
|
175
|
+
x(g)
|
|
176
|
+
].includes(r), p = !(U(A, r) || U(j, r) || U(r, j) || U(H?.portalNode, r) || u.some((e) => e === r || U(e, r)) || r != null && c.hasElement(r) || c.hasMatchingElement((e) => U(e, r)) || f || V && (D(V.nodesRef.current, s).find((e) => U(e.context?.elements.floating, r) || U(e.context?.elements.domReference, r)) || i(V.nodesRef.current, s).find((e) => [e.context?.elements.floating, Ee(e.context?.elements.floating)].includes(r) || e.context?.elements.domReference === r)));
|
|
177
|
+
if (a === A && K && Mt(K), l && a !== A && !n(o) && ge(e) === e.body) {
|
|
178
|
+
if (Ie(K) && (K.focus(), l === "popup")) {
|
|
179
|
+
Te.request(() => {
|
|
180
|
+
K.focus();
|
|
180
181
|
});
|
|
181
182
|
return;
|
|
182
183
|
}
|
|
183
|
-
let e =
|
|
184
|
-
|
|
184
|
+
let e = De(), t = fe.current, n = (t && e.includes(t) ? t : null) || e[e.length - 1] || K;
|
|
185
|
+
Ie(n) && n.focus();
|
|
185
186
|
}
|
|
186
|
-
if (
|
|
187
|
-
|
|
187
|
+
if (ne.current.insideReactTree) {
|
|
188
|
+
ne.current.insideReactTree = !1;
|
|
188
189
|
return;
|
|
189
190
|
}
|
|
190
|
-
(P || !
|
|
191
|
+
(P || !d) && r && p && !le.current && (P || r !== At()) && (se.current = !0, T.setOpen(!1, v(E, t)));
|
|
191
192
|
});
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
function s() {
|
|
195
|
+
ue.current || (ne.current.insideReactTree = !0, Se.start(0, () => {
|
|
196
|
+
ne.current.insideReactTree = !1;
|
|
196
197
|
}));
|
|
197
198
|
}
|
|
198
|
-
let
|
|
199
|
-
if (!(!
|
|
199
|
+
let c = Ie(A) ? A : null;
|
|
200
|
+
if (!(!j && !c)) return I(c && de(c, "focusout", a), c && de(c, "pointerdown", t), j && de(j, "focusin", r), j && de(j, "focusout", a), j && H && de(j, "focusout", s, !0));
|
|
200
201
|
}, [
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
p,
|
|
206
|
-
B,
|
|
207
|
-
V,
|
|
208
|
-
w,
|
|
209
|
-
h,
|
|
202
|
+
o,
|
|
203
|
+
A,
|
|
204
|
+
j,
|
|
205
|
+
K,
|
|
210
206
|
d,
|
|
211
|
-
|
|
207
|
+
V,
|
|
208
|
+
H,
|
|
209
|
+
T,
|
|
210
|
+
p,
|
|
211
|
+
l,
|
|
212
|
+
De,
|
|
212
213
|
P,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
ye,
|
|
216
|
-
be,
|
|
214
|
+
re,
|
|
215
|
+
ne,
|
|
217
216
|
Se,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
217
|
+
we,
|
|
218
|
+
Te,
|
|
219
|
+
g,
|
|
220
|
+
_,
|
|
221
|
+
q
|
|
221
222
|
]), Z.useEffect(() => {
|
|
222
|
-
if (
|
|
223
|
-
let e = Array.from(
|
|
224
|
-
|
|
223
|
+
if (o || !j || !k) return;
|
|
224
|
+
let e = Array.from(H?.portalNode?.querySelectorAll(`[${je("portal")}]`) || []), t = (V ? i(V.nodesRef.current, re()) : []).find((e) => ae(e.context?.elements.domReference || null))?.context?.elements.domReference, n = wt([
|
|
225
|
+
j,
|
|
225
226
|
...e,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
...
|
|
227
|
+
he.current,
|
|
228
|
+
_e.current,
|
|
229
|
+
H?.beforeOutsideRef.current,
|
|
230
|
+
H?.afterOutsideRef.current,
|
|
231
|
+
...q(),
|
|
231
232
|
t,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
P ?
|
|
233
|
+
x(_),
|
|
234
|
+
x(g),
|
|
235
|
+
P ? A : null
|
|
235
236
|
].filter((e) => e != null), {
|
|
236
|
-
ariaHidden:
|
|
237
|
+
ariaHidden: d || P,
|
|
237
238
|
mark: !1
|
|
238
|
-
}), r = wt([
|
|
239
|
+
}), r = wt([j, ...e].filter((e) => e != null));
|
|
239
240
|
return () => {
|
|
240
241
|
r(), n();
|
|
241
242
|
};
|
|
242
243
|
}, [
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
244
|
+
k,
|
|
245
|
+
o,
|
|
246
|
+
A,
|
|
247
|
+
j,
|
|
248
|
+
d,
|
|
249
|
+
H,
|
|
249
250
|
P,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
]),
|
|
256
|
-
if (!
|
|
257
|
-
let e =
|
|
251
|
+
V,
|
|
252
|
+
re,
|
|
253
|
+
g,
|
|
254
|
+
_,
|
|
255
|
+
q
|
|
256
|
+
]), Y(() => {
|
|
257
|
+
if (!k || o || !Ie(K)) return;
|
|
258
|
+
let e = W(K), t = ge(e);
|
|
258
259
|
queueMicrotask(() => {
|
|
259
260
|
let n = F.current, r = typeof n == "function" ? n(R.current || "") : n;
|
|
260
|
-
if (r === void 0 || r === !1 || K
|
|
261
|
-
let i = null, a = () => (i ??=
|
|
262
|
-
o = r === !0 || r === null ? a() :
|
|
263
|
-
let s = K
|
|
261
|
+
if (r === void 0 || r === !1 || U(K, t)) return;
|
|
262
|
+
let i = null, a = () => (i ??= De(K), i[0] || K), o;
|
|
263
|
+
o = r === !0 || r === null ? a() : x(r), o ||= a();
|
|
264
|
+
let s = U(K, ge(e));
|
|
264
265
|
ft(o, {
|
|
265
|
-
preventScroll: o ===
|
|
266
|
+
preventScroll: o === K,
|
|
266
267
|
shouldFocus() {
|
|
267
268
|
if (!z.current) return !1;
|
|
268
269
|
if (s) return !0;
|
|
269
|
-
let t =
|
|
270
|
-
return !(t !== o && K
|
|
270
|
+
let t = ge(e);
|
|
271
|
+
return !(t !== o && U(K, t));
|
|
271
272
|
}
|
|
272
273
|
});
|
|
273
274
|
});
|
|
274
275
|
}, [
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
o,
|
|
277
|
+
k,
|
|
278
|
+
K,
|
|
279
|
+
De,
|
|
279
280
|
F,
|
|
280
281
|
R,
|
|
281
282
|
z
|
|
282
|
-
]),
|
|
283
|
-
if (
|
|
284
|
-
let e =
|
|
283
|
+
]), Y(() => {
|
|
284
|
+
if (o || !K) return;
|
|
285
|
+
let e = W(K), t = ge(e), n = R.current == null;
|
|
285
286
|
kt(t);
|
|
286
287
|
function r(e) {
|
|
287
|
-
if (e.open || (
|
|
288
|
-
else if (
|
|
288
|
+
if (e.open || (pe.current = Tt(e.nativeEvent, me.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (se.current = !0), e.reason === "outside-press") if (e.nested) se.current = !1;
|
|
289
|
+
else if (Oe(e.nativeEvent) || C(e.nativeEvent)) se.current = !1;
|
|
289
290
|
else {
|
|
290
291
|
let e = !1;
|
|
291
|
-
|
|
292
|
+
W(K).createElement("div").focus({ get preventScroll() {
|
|
292
293
|
return e = !0, !1;
|
|
293
|
-
} }), e ?
|
|
294
|
+
} }), e ? se.current = !1 : se.current = !0;
|
|
294
295
|
}
|
|
295
296
|
}
|
|
296
|
-
|
|
297
|
-
function
|
|
298
|
-
let e = L.current, r = typeof e == "function" ? e(
|
|
297
|
+
N.on("openchange", r);
|
|
298
|
+
function i() {
|
|
299
|
+
let e = L.current, r = typeof e == "function" ? e(pe.current) : e;
|
|
299
300
|
if (r === void 0 || r === !1) return null;
|
|
300
301
|
r === null && (r = !0);
|
|
301
|
-
let i =
|
|
302
|
-
return o ||= At() || null, typeof r == "boolean" ? o :
|
|
302
|
+
let i = A?.isConnected ? A : null, a = t?.isConnected && Le(t) !== "body" ? t : null, o = n ? a || i : i || a;
|
|
303
|
+
return o ||= At() || null, typeof r == "boolean" ? o : x(r) || o || null;
|
|
303
304
|
}
|
|
304
305
|
return () => {
|
|
305
|
-
|
|
306
|
-
let t =
|
|
306
|
+
N.off("openchange", r);
|
|
307
|
+
let t = ge(e), n = q(), a = U(j, t) || n.some((e) => e === t || U(e, t)) || V && D(V.nodesRef.current, re(), !1).some((e) => U(e.context?.elements.floating, t)), o = L.current, s = i();
|
|
307
308
|
queueMicrotask(() => {
|
|
308
|
-
let n = jt(
|
|
309
|
-
|
|
309
|
+
let n = jt(s), r = typeof o != "boolean";
|
|
310
|
+
o && !se.current && Ie(n) && (!(!r && n !== t && t !== e.body) || a) && n.focus({ preventScroll: !0 }), se.current = !1;
|
|
310
311
|
});
|
|
311
312
|
};
|
|
312
313
|
}, [
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
o,
|
|
315
|
+
j,
|
|
316
|
+
K,
|
|
316
317
|
L,
|
|
317
318
|
R,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
]),
|
|
324
|
-
if (!
|
|
325
|
-
let e =
|
|
326
|
-
!
|
|
327
|
-
}, [
|
|
328
|
-
if (!(
|
|
329
|
-
modal:
|
|
330
|
-
closeOnFocusOut:
|
|
331
|
-
open:
|
|
332
|
-
onOpenChange:
|
|
333
|
-
domReference:
|
|
319
|
+
N,
|
|
320
|
+
V,
|
|
321
|
+
A,
|
|
322
|
+
re,
|
|
323
|
+
q
|
|
324
|
+
]), Y(() => {
|
|
325
|
+
if (!f || k || !j) return;
|
|
326
|
+
let e = ge(W(j));
|
|
327
|
+
!Ie(e) || !B(e) || U(j, e) && e.blur();
|
|
328
|
+
}, [k, j]), Y(() => {
|
|
329
|
+
if (!(o || !H)) return H.setFocusManagerState({
|
|
330
|
+
modal: d,
|
|
331
|
+
closeOnFocusOut: p,
|
|
332
|
+
open: k,
|
|
333
|
+
onOpenChange: T.setOpen,
|
|
334
|
+
domReference: A
|
|
334
335
|
}), () => {
|
|
335
|
-
|
|
336
|
+
H.setFocusManagerState(null);
|
|
336
337
|
};
|
|
337
338
|
}, [
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
o,
|
|
340
|
+
H,
|
|
341
|
+
d,
|
|
342
|
+
k,
|
|
341
343
|
T,
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
if (!(s || !G)) return Mt(G), () => {
|
|
344
|
+
p,
|
|
345
|
+
A
|
|
346
|
+
]), Y(() => {
|
|
347
|
+
if (!(o || !K)) return Mt(K), () => {
|
|
347
348
|
queueMicrotask(Ot);
|
|
348
349
|
};
|
|
349
|
-
}, [
|
|
350
|
-
let
|
|
350
|
+
}, [o, K]);
|
|
351
|
+
let J = !o && (d ? !P : !0) && (G || d);
|
|
351
352
|
return /*#__PURE__*/ (0, Q.jsxs)(Z.Fragment, { children: [
|
|
352
|
-
|
|
353
|
+
J && /*#__PURE__*/ (0, Q.jsx)(be, {
|
|
353
354
|
"data-type": "inside",
|
|
354
|
-
ref:
|
|
355
|
+
ref: ve,
|
|
355
356
|
onFocus: (e) => {
|
|
356
|
-
if (
|
|
357
|
-
let e =
|
|
357
|
+
if (d) {
|
|
358
|
+
let e = De();
|
|
358
359
|
ft(e[e.length - 1]);
|
|
359
|
-
} else
|
|
360
|
+
} else H?.portalNode && (se.current = !1, ye(e, H.portalNode) ? te(A)?.focus() : x(_ ?? H.beforeOutsideRef)?.focus());
|
|
360
361
|
}
|
|
361
362
|
}),
|
|
362
363
|
r,
|
|
363
|
-
|
|
364
|
+
J && /*#__PURE__*/ (0, Q.jsx)(be, {
|
|
364
365
|
"data-type": "inside",
|
|
365
|
-
ref:
|
|
366
|
+
ref: xe,
|
|
366
367
|
onFocus: (e) => {
|
|
367
|
-
|
|
368
|
+
d ? ft(De()[0]) : H?.portalNode && (p && (se.current = !0), ye(e, H.portalNode) ? O(A)?.focus() : x(g ?? H.afterOutsideRef)?.focus());
|
|
368
369
|
}
|
|
369
370
|
})
|
|
370
371
|
] });
|
|
@@ -372,9 +373,9 @@ function Nt(e) {
|
|
|
372
373
|
//#endregion
|
|
373
374
|
//#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/floating-ui-react/hooks/useClick.mjs
|
|
374
375
|
function Pt(e, t = {}) {
|
|
375
|
-
let { enabled: n = !0, event: r = "click", toggle: i = !0, ignoreMouse: a = !1, stickIfOpen: o = !0, touchOpenDelay: s = 0, reason: c =
|
|
376
|
+
let { enabled: n = !0, event: r = "click", toggle: i = !0, ignoreMouse: a = !1, stickIfOpen: o = !0, touchOpenDelay: s = 0, reason: c = R } = t, l = "rootStore" in e ? e.rootStore : e, u = l.context.dataRef, d = Z.useRef(void 0), f = ce(), p = w(), m = Z.useMemo(() => {
|
|
376
377
|
function e(e, t, n, r) {
|
|
377
|
-
let i =
|
|
378
|
+
let i = v(c, t, n);
|
|
378
379
|
e && r === "touch" && s > 0 ? p.start(s, () => {
|
|
379
380
|
l.setOpen(!0, i);
|
|
380
381
|
}) : l.setOpen(e, i);
|
|
@@ -389,9 +390,9 @@ function Pt(e, t = {}) {
|
|
|
389
390
|
},
|
|
390
391
|
onMouseDown(n) {
|
|
391
392
|
let i = d.current, o = n.nativeEvent, s = l.select("open");
|
|
392
|
-
if (n.button !== 0 || r === "click" ||
|
|
393
|
-
let c = t(s, n.currentTarget, (e) => e === "click" || e === "mousedown"), u =
|
|
394
|
-
if (
|
|
393
|
+
if (n.button !== 0 || r === "click" || P(i, !0) && a) return;
|
|
394
|
+
let c = t(s, n.currentTarget, (e) => e === "click" || e === "mousedown"), u = oe(o);
|
|
395
|
+
if (B(u)) {
|
|
395
396
|
e(c, o, u, i);
|
|
396
397
|
return;
|
|
397
398
|
}
|
|
@@ -407,7 +408,7 @@ function Pt(e, t = {}) {
|
|
|
407
408
|
d.current = void 0;
|
|
408
409
|
return;
|
|
409
410
|
}
|
|
410
|
-
|
|
411
|
+
P(i, !0) && a || e(t(l.select("open"), n.currentTarget, (e) => e === "click" || e === "mousedown" || e === "keydown" || e === "keyup"), n.nativeEvent, n.currentTarget, i);
|
|
411
412
|
},
|
|
412
413
|
onKeyDown() {
|
|
413
414
|
d.current = void 0;
|
|
@@ -425,7 +426,7 @@ function Pt(e, t = {}) {
|
|
|
425
426
|
p,
|
|
426
427
|
s
|
|
427
428
|
]);
|
|
428
|
-
return Z.useMemo(() => n ? { reference: m } :
|
|
429
|
+
return Z.useMemo(() => n ? { reference: m } : Ye, [n, m]);
|
|
429
430
|
}
|
|
430
431
|
//#endregion
|
|
431
432
|
//#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/floating-ui-react/hooks/useListNavigation.mjs
|
|
@@ -444,210 +445,210 @@ function Rt(e, t, n) {
|
|
|
444
445
|
return It(t, e === "ArrowDown", n ? e === "ArrowLeft" : e === "ArrowRight") || e === "Enter" || e === " " || e === "";
|
|
445
446
|
}
|
|
446
447
|
function zt(e, t, n) {
|
|
447
|
-
return It(t, n ? e ===
|
|
448
|
+
return It(t, n ? e === re : e === K, e === V);
|
|
448
449
|
}
|
|
449
450
|
function Bt(e, t, n, r) {
|
|
450
|
-
return t === "both" || t === "horizontal" && r ? e === Ft : It(t, n ? e ===
|
|
451
|
+
return t === "both" || t === "horizontal" && r ? e === Ft : It(t, n ? e === K : e === re, e === ke);
|
|
451
452
|
}
|
|
452
453
|
function Vt(e, t) {
|
|
453
|
-
let { listRef: n, activeIndex: r, onNavigate:
|
|
454
|
-
process.env.NODE_ENV !== "production" && (
|
|
455
|
-
let
|
|
456
|
-
|
|
457
|
-
}),
|
|
454
|
+
let { listRef: n, activeIndex: r, onNavigate: i = () => {}, enabled: o = !0, selectedIndex: s = null, allowEscape: c = !1, loopFocus: l = !1, nested: u = !1, rtl: d = !1, virtual: f = !1, focusItemOnOpen: p = "auto", focusItemOnHover: m = !0, openOnArrowKeyDown: h = !0, disabledIndices: g = void 0, orientation: _ = "vertical", parentOrientation: b, id: x, resetOnPointerLeave: S = !0, externalTree: w, grid: T } = t, te = T != null;
|
|
455
|
+
process.env.NODE_ENV !== "production" && (c && (l || console.warn("`useListNavigation` looping must be enabled to allow escaping."), f || console.warn("`useListNavigation` must be virtual to allow escaping.")), _ === "vertical" && te && console.warn("In grid list navigation mode, the `orientation` should", "be either \"horizontal\" or \"both\"."));
|
|
456
|
+
let D = "rootStore" in e ? e.rootStore : e, O = D.useState("open"), k = D.useState("floatingElement"), j = D.useState("domReferenceElement"), M = D.context.dataRef, N = Ee(k), re = ae(j), ie = Ce(N), P = le(), F = y(w), I = Z.useRef(p), R = Z.useRef(s ?? -1), z = Z.useRef(null), B = Z.useRef(!0), V = X((e) => {
|
|
457
|
+
i(R.current === -1 ? null : R.current, e);
|
|
458
|
+
}), H = Z.useRef(!!k), se = Z.useRef(O), ue = Z.useRef(!1), de = Z.useRef(!1), fe = Z.useRef(null), pe = Ce(g), me = Ce(O), he = Ce(s), _e = Ce(S), ye = ce(), be = ce(), xe = X(() => {
|
|
458
459
|
function e(e) {
|
|
459
|
-
|
|
460
|
-
sync:
|
|
460
|
+
f ? F?.events.emit("virtualfocus", e) : fe.current = ft(e, {
|
|
461
|
+
sync: ue.current,
|
|
461
462
|
preventScroll: !0
|
|
462
463
|
});
|
|
463
464
|
}
|
|
464
|
-
let t = n.current[
|
|
465
|
-
t && e(t), (
|
|
466
|
-
let i = n.current[
|
|
467
|
-
i && (t || e(i),
|
|
465
|
+
let t = n.current[R.current], r = de.current;
|
|
466
|
+
t && e(t), (ue.current ? (e) => e() : (e) => ye.request(e))(() => {
|
|
467
|
+
let i = n.current[R.current] || t;
|
|
468
|
+
i && (t || e(i), De && (r || !B.current) && i.scrollIntoView?.({
|
|
468
469
|
block: "nearest",
|
|
469
470
|
inline: "nearest"
|
|
470
471
|
}));
|
|
471
472
|
});
|
|
472
473
|
});
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
}, [
|
|
476
|
-
|
|
474
|
+
Y(() => {
|
|
475
|
+
M.current.orientation = _;
|
|
476
|
+
}, [M, _]), Y(() => {
|
|
477
|
+
o && (O && k ? (R.current = s ?? -1, I.current && s != null && (de.current = !0, V())) : H.current && (R.current = -1, V()));
|
|
477
478
|
}, [
|
|
478
|
-
|
|
479
|
-
E,
|
|
479
|
+
o,
|
|
480
480
|
O,
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
481
|
+
k,
|
|
482
|
+
s,
|
|
483
|
+
V
|
|
484
|
+
]), Y(() => {
|
|
485
|
+
if (o) {
|
|
486
|
+
if (!O) {
|
|
487
|
+
ue.current = !1;
|
|
487
488
|
return;
|
|
488
489
|
}
|
|
489
|
-
if (
|
|
490
|
-
if (
|
|
491
|
-
if (
|
|
490
|
+
if (k) if (r == null) {
|
|
491
|
+
if (ue.current = !1, he.current != null) return;
|
|
492
|
+
if (H.current && (R.current = -1, xe()), (!se.current || !H.current) && I.current && (z.current != null || I.current === !0 && z.current == null)) {
|
|
492
493
|
let e = 0, t = () => {
|
|
493
|
-
n.current[0] == null ? (e < 2 && (e ? (e) =>
|
|
494
|
+
n.current[0] == null ? (e < 2 && (e ? (e) => be.request(e) : queueMicrotask)(t), e += 1) : (R.current = z.current == null || Rt(z.current, _, d) || u ? ee(n) : ne(n), z.current = null, V());
|
|
494
495
|
};
|
|
495
496
|
t();
|
|
496
497
|
}
|
|
497
|
-
} else
|
|
498
|
+
} else L(n.current, r) || (R.current = r, xe(), de.current = !1);
|
|
498
499
|
}
|
|
499
500
|
}, [
|
|
500
|
-
|
|
501
|
-
E,
|
|
501
|
+
o,
|
|
502
502
|
O,
|
|
503
|
+
k,
|
|
503
504
|
r,
|
|
504
|
-
|
|
505
|
-
|
|
505
|
+
he,
|
|
506
|
+
u,
|
|
506
507
|
n,
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
]),
|
|
513
|
-
if (!
|
|
514
|
-
let e =
|
|
515
|
-
t && !r &&
|
|
508
|
+
_,
|
|
509
|
+
d,
|
|
510
|
+
V,
|
|
511
|
+
xe,
|
|
512
|
+
be
|
|
513
|
+
]), Y(() => {
|
|
514
|
+
if (!o || k || !F || f || !H.current) return;
|
|
515
|
+
let e = F.nodesRef.current, t = e.find((e) => e.id === P)?.context?.elements.floating, n = ge(W(j ?? t ?? null)), r = e.some((e) => e.context && U(e.context.elements.floating, n));
|
|
516
|
+
t && !r && B.current && t.focus({ preventScroll: !0 });
|
|
516
517
|
}, [
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
]),
|
|
524
|
-
|
|
525
|
-
}),
|
|
526
|
-
|
|
527
|
-
}, [
|
|
528
|
-
let
|
|
529
|
-
if (!
|
|
518
|
+
o,
|
|
519
|
+
k,
|
|
520
|
+
j,
|
|
521
|
+
F,
|
|
522
|
+
P,
|
|
523
|
+
f
|
|
524
|
+
]), Y(() => {
|
|
525
|
+
se.current = O, H.current = !!k;
|
|
526
|
+
}), Y(() => {
|
|
527
|
+
O || (z.current = null, I.current = p);
|
|
528
|
+
}, [O, p]);
|
|
529
|
+
let Se = r != null, we = X((e) => {
|
|
530
|
+
if (!me.current) return;
|
|
530
531
|
let t = n.current.indexOf(e.currentTarget);
|
|
531
|
-
t !== -1 && (
|
|
532
|
-
}),
|
|
533
|
-
if (
|
|
534
|
-
if (
|
|
535
|
-
Lt(e.key,
|
|
532
|
+
t !== -1 && (R.current !== t || r !== t) && (R.current = t, V(e));
|
|
533
|
+
}), Te = X(() => b ?? F?.nodesRef.current.find((e) => e.id === P)?.context?.dataRef?.current.orientation), G = X(() => ee(n, pe.current)), K = X((e) => {
|
|
534
|
+
if (B.current = !1, ue.current = !0, e.which === 229 || !me.current && e.currentTarget === ie.current) return;
|
|
535
|
+
if (u && Bt(e.key, _, d, te)) {
|
|
536
|
+
Lt(e.key, Te()) || a(e), D.setOpen(!1, v(ve, e.nativeEvent)), Ie(j) && (f ? F?.events.emit("virtualfocus", j) : j.focus());
|
|
536
537
|
return;
|
|
537
538
|
}
|
|
538
|
-
let t =
|
|
539
|
-
if (re || (e.key === "Home" && (
|
|
540
|
-
let t =
|
|
541
|
-
if (t != null && (
|
|
539
|
+
let t = R.current, r = ee(n, g), i = ne(n, g);
|
|
540
|
+
if (re || (e.key === "Home" && (a(e), R.current = r, V(e)), e.key === "End" && (a(e), R.current = i, V(e))), T != null) {
|
|
541
|
+
let t = T(e, R.current, n, _, l, d, g, r, i);
|
|
542
|
+
if (t != null && (R.current = t, V(e)), _ === "both") return;
|
|
542
543
|
}
|
|
543
|
-
if (Lt(e.key,
|
|
544
|
-
if (
|
|
545
|
-
|
|
544
|
+
if (Lt(e.key, _)) {
|
|
545
|
+
if (a(e), O && !f && ge(e.currentTarget.ownerDocument) === e.currentTarget) {
|
|
546
|
+
R.current = Rt(e.key, _, d) ? r : i, V(e);
|
|
546
547
|
return;
|
|
547
548
|
}
|
|
548
|
-
Rt(e.key,
|
|
549
|
+
Rt(e.key, _, d) ? l ? t >= i ? c && t !== n.current.length ? R.current = -1 : (ue.current = !1, R.current = r) : R.current = A(n.current, {
|
|
549
550
|
startingIndex: t,
|
|
550
|
-
disabledIndices:
|
|
551
|
-
}) :
|
|
551
|
+
disabledIndices: g
|
|
552
|
+
}) : R.current = Math.min(i, A(n.current, {
|
|
552
553
|
startingIndex: t,
|
|
553
|
-
disabledIndices:
|
|
554
|
-
})) :
|
|
554
|
+
disabledIndices: g
|
|
555
|
+
})) : l ? t <= r ? c && t !== -1 ? R.current = n.current.length : (ue.current = !1, R.current = i) : R.current = A(n.current, {
|
|
555
556
|
startingIndex: t,
|
|
556
557
|
decrement: !0,
|
|
557
|
-
disabledIndices:
|
|
558
|
-
}) :
|
|
558
|
+
disabledIndices: g
|
|
559
|
+
}) : R.current = Math.max(r, A(n.current, {
|
|
559
560
|
startingIndex: t,
|
|
560
561
|
decrement: !0,
|
|
561
|
-
disabledIndices:
|
|
562
|
-
})),
|
|
562
|
+
disabledIndices: g
|
|
563
|
+
})), L(n.current, R.current) && (R.current = -1), V(e);
|
|
563
564
|
}
|
|
564
|
-
}),
|
|
565
|
+
}), De = Z.useMemo(() => ({
|
|
565
566
|
onFocus(e) {
|
|
566
|
-
|
|
567
|
+
ue.current = !0, we(e);
|
|
567
568
|
},
|
|
568
569
|
onClick: ({ currentTarget: e }) => e.focus({ preventScroll: !0 }),
|
|
569
570
|
onMouseMove(e) {
|
|
570
|
-
|
|
571
|
+
ue.current = !0, de.current = !1, m && we(e);
|
|
571
572
|
},
|
|
572
573
|
onPointerLeave(e) {
|
|
573
|
-
if (!
|
|
574
|
-
|
|
574
|
+
if (!me.current || !B.current || e.pointerType === "touch") return;
|
|
575
|
+
ue.current = !0;
|
|
575
576
|
let t = e.relatedTarget;
|
|
576
|
-
if (!(!
|
|
577
|
-
let e = ie.current, t =
|
|
578
|
-
e &&
|
|
577
|
+
if (!(!m || n.current.includes(t)) && _e.current && (fe.current?.(), fe.current = null, R.current = -1, V(e), !f)) {
|
|
578
|
+
let e = ie.current, t = ge(W(e));
|
|
579
|
+
e && U(e, t) && e.focus({ preventScroll: !0 });
|
|
579
580
|
}
|
|
580
581
|
}
|
|
581
582
|
}), [
|
|
582
|
-
|
|
583
|
-
|
|
583
|
+
we,
|
|
584
|
+
me,
|
|
584
585
|
ie,
|
|
585
|
-
|
|
586
|
+
m,
|
|
586
587
|
n,
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
]), q = Z.useMemo(() =>
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
588
|
+
V,
|
|
589
|
+
_e,
|
|
590
|
+
f
|
|
591
|
+
]), q = Z.useMemo(() => f && O && Se && { "aria-activedescendant": `${x}-${r}` }, [
|
|
592
|
+
f,
|
|
593
|
+
O,
|
|
594
|
+
Se,
|
|
595
|
+
x,
|
|
595
596
|
r
|
|
596
|
-
]),
|
|
597
|
-
"aria-orientation":
|
|
597
|
+
]), J = Z.useMemo(() => ({
|
|
598
|
+
"aria-orientation": _ === "both" ? void 0 : _,
|
|
598
599
|
...re ? {} : q,
|
|
599
600
|
onKeyDown(e) {
|
|
600
|
-
if (e.key === "Tab" && e.shiftKey &&
|
|
601
|
-
let t =
|
|
602
|
-
if (t && !
|
|
603
|
-
|
|
601
|
+
if (e.key === "Tab" && e.shiftKey && O && !f) {
|
|
602
|
+
let t = oe(e.nativeEvent);
|
|
603
|
+
if (t && !U(ie.current, t)) return;
|
|
604
|
+
a(e), D.setOpen(!1, v(E, e.nativeEvent)), Ie(j) && j.focus();
|
|
604
605
|
return;
|
|
605
606
|
}
|
|
606
|
-
|
|
607
|
+
K(e);
|
|
607
608
|
},
|
|
608
609
|
onPointerMove() {
|
|
609
|
-
|
|
610
|
+
B.current = !0;
|
|
610
611
|
}
|
|
611
612
|
}), [
|
|
612
613
|
q,
|
|
613
|
-
|
|
614
|
+
K,
|
|
614
615
|
ie,
|
|
615
|
-
|
|
616
|
+
_,
|
|
616
617
|
re,
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
]),
|
|
618
|
+
D,
|
|
619
|
+
O,
|
|
620
|
+
f,
|
|
621
|
+
j
|
|
622
|
+
]), ke = Z.useMemo(() => {
|
|
622
623
|
function e(e) {
|
|
623
|
-
|
|
624
|
+
D.setOpen(!0, v(ve, e.nativeEvent, e.currentTarget));
|
|
624
625
|
}
|
|
625
626
|
function t(e) {
|
|
626
|
-
|
|
627
|
+
p === "auto" && Oe(e.nativeEvent) && (I.current = !f);
|
|
627
628
|
}
|
|
628
629
|
function n(e) {
|
|
629
|
-
|
|
630
|
+
I.current = p, p === "auto" && C(e.nativeEvent) && (I.current = !0);
|
|
630
631
|
}
|
|
631
632
|
return {
|
|
632
633
|
onKeyDown(t) {
|
|
633
|
-
let n =
|
|
634
|
-
|
|
635
|
-
let r = t.key.startsWith("Arrow"), i = zt(t.key,
|
|
636
|
-
if (
|
|
637
|
-
if (!(!n && !
|
|
634
|
+
let n = D.select("open");
|
|
635
|
+
B.current = !1;
|
|
636
|
+
let r = t.key.startsWith("Arrow"), i = zt(t.key, Te(), d), o = Lt(t.key, _), s = (u ? i : o) || t.key === "Enter" || t.key.trim() === "";
|
|
637
|
+
if (f && n) return K(t);
|
|
638
|
+
if (!(!n && !h && r)) {
|
|
638
639
|
if (s) {
|
|
639
|
-
let e = Lt(t.key,
|
|
640
|
-
|
|
640
|
+
let e = Lt(t.key, Te());
|
|
641
|
+
z.current = u && e ? null : t.key;
|
|
641
642
|
}
|
|
642
|
-
if (
|
|
643
|
-
i && (
|
|
643
|
+
if (u) {
|
|
644
|
+
i && (a(t), n ? (R.current = G(), V(t)) : e(t));
|
|
644
645
|
return;
|
|
645
646
|
}
|
|
646
|
-
|
|
647
|
+
o && (he.current != null && (R.current = he.current), a(t), !n && h ? e(t) : K(t), n && V(t));
|
|
647
648
|
}
|
|
648
649
|
},
|
|
649
650
|
onFocus(e) {
|
|
650
|
-
|
|
651
|
+
D.select("open") && !f && (R.current = -1, V(e));
|
|
651
652
|
},
|
|
652
653
|
onPointerDown: n,
|
|
653
654
|
onPointerEnter: n,
|
|
@@ -655,45 +656,45 @@ function Vt(e, t) {
|
|
|
655
656
|
onClick: t
|
|
656
657
|
};
|
|
657
658
|
}, [
|
|
659
|
+
K,
|
|
660
|
+
p,
|
|
658
661
|
G,
|
|
659
|
-
|
|
660
|
-
|
|
662
|
+
u,
|
|
663
|
+
V,
|
|
664
|
+
D,
|
|
665
|
+
h,
|
|
666
|
+
_,
|
|
667
|
+
Te,
|
|
661
668
|
d,
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
v,
|
|
666
|
-
be,
|
|
667
|
-
f,
|
|
668
|
-
W,
|
|
669
|
-
p
|
|
670
|
-
]), De = Z.useMemo(() => ({
|
|
669
|
+
he,
|
|
670
|
+
f
|
|
671
|
+
]), Ae = Z.useMemo(() => ({
|
|
671
672
|
...q,
|
|
672
|
-
...
|
|
673
|
-
}), [q,
|
|
674
|
-
return Z.useMemo(() =>
|
|
675
|
-
reference:
|
|
676
|
-
floating:
|
|
677
|
-
item:
|
|
678
|
-
trigger:
|
|
673
|
+
...ke
|
|
674
|
+
}), [q, ke]);
|
|
675
|
+
return Z.useMemo(() => o ? {
|
|
676
|
+
reference: Ae,
|
|
677
|
+
floating: J,
|
|
678
|
+
item: De,
|
|
679
|
+
trigger: ke
|
|
679
680
|
} : {}, [
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
681
|
+
o,
|
|
682
|
+
Ae,
|
|
683
|
+
J,
|
|
684
|
+
ke,
|
|
685
|
+
De
|
|
685
686
|
]);
|
|
686
687
|
}
|
|
687
688
|
//#endregion
|
|
688
689
|
//#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/floating-ui-react/hooks/useTypeahead.mjs
|
|
689
690
|
function Ht(e, t) {
|
|
690
|
-
let { listRef: r, elementsRef: i, activeIndex:
|
|
691
|
+
let { listRef: r, elementsRef: i, activeIndex: o, onMatch: s, disabledIndices: c, onTyping: l, enabled: u = !0, resetMs: d = 750, selectedIndex: f = null } = t, p = "rootStore" in e ? e.rootStore : e, m = p.useState("open"), h = w(), g = Z.useRef(""), _ = Z.useRef(f ?? o ?? -1), v = Z.useRef(null), y = X((e) => {
|
|
691
692
|
function t(e) {
|
|
692
693
|
let t = i?.current[e];
|
|
693
694
|
return !t || n(t);
|
|
694
695
|
}
|
|
695
696
|
function u(e) {
|
|
696
|
-
return t(e) ? c == null || !
|
|
697
|
+
return t(e) ? c == null || !Te(Je, e, c) : !1;
|
|
697
698
|
}
|
|
698
699
|
function p(e, t, n = 0) {
|
|
699
700
|
if (e.length === 0) return -1;
|
|
@@ -705,30 +706,30 @@ function Ht(e, t) {
|
|
|
705
706
|
return -1;
|
|
706
707
|
}
|
|
707
708
|
let y = r.current;
|
|
708
|
-
if (g.current.length > 0 && e.key === " " && (
|
|
709
|
-
m && e.key !== " " && (
|
|
709
|
+
if (g.current.length > 0 && e.key === " " && (a(e), l?.(!0)), g.current.length > 0 && g.current[0] !== " " && p(y, g.current) === -1 && e.key !== " " && l?.(!1), y == null || e.key.length !== 1 || e.ctrlKey || e.metaKey || e.altKey) return;
|
|
710
|
+
m && e.key !== " " && (a(e), l?.(!0));
|
|
710
711
|
let b = g.current === "";
|
|
711
|
-
b && (_.current = f ??
|
|
712
|
+
b && (_.current = f ?? o ?? -1), y.every((e, t) => e && u(t) ? e[0]?.toLowerCase() !== e[1]?.toLowerCase() : !0) && g.current === e.key && (g.current = "", _.current = v.current), g.current += e.key, h.start(d, () => {
|
|
712
713
|
g.current = "", _.current = v.current, l?.(!1);
|
|
713
714
|
});
|
|
714
|
-
let x = ((b ? f ??
|
|
715
|
+
let x = ((b ? f ?? o ?? -1 : _.current) ?? 0) + 1, S = p(y, g.current, x);
|
|
715
716
|
S === -1 ? e.key !== " " && (g.current = "", l?.(!1)) : (s?.(S), v.current = S);
|
|
716
|
-
}), b =
|
|
717
|
+
}), b = X((e) => {
|
|
717
718
|
let t = e.relatedTarget, n = p.select("domReferenceElement"), r = p.select("floatingElement");
|
|
718
|
-
|
|
719
|
+
U(n, t) || U(r, t) || (h.clear(), g.current = "", _.current = v.current, l?.(!1));
|
|
719
720
|
});
|
|
720
|
-
|
|
721
|
+
Y(() => {
|
|
721
722
|
!m && f !== null || (h.clear(), v.current = null, g.current !== "" && (g.current = ""));
|
|
722
723
|
}, [
|
|
723
724
|
m,
|
|
724
725
|
f,
|
|
725
726
|
h
|
|
726
|
-
]),
|
|
727
|
-
m && g.current === "" && (_.current = f ??
|
|
727
|
+
]), Y(() => {
|
|
728
|
+
m && g.current === "" && (_.current = f ?? o ?? -1);
|
|
728
729
|
}, [
|
|
729
730
|
m,
|
|
730
731
|
f,
|
|
731
|
-
|
|
732
|
+
o
|
|
732
733
|
]);
|
|
733
734
|
let x = Z.useMemo(() => ({
|
|
734
735
|
onKeyDown: y,
|
|
@@ -745,13 +746,13 @@ var Ut = /*#__PURE__*/ Z.createContext(void 0);
|
|
|
745
746
|
process.env.NODE_ENV !== "production" && (Ut.displayName = "ToolbarRootContext");
|
|
746
747
|
function Wt(e) {
|
|
747
748
|
let t = Z.useContext(Ut);
|
|
748
|
-
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ?
|
|
749
|
+
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? qe(69) : "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.");
|
|
749
750
|
return t;
|
|
750
751
|
}
|
|
751
752
|
//#endregion
|
|
752
753
|
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/utils/inertValue.mjs
|
|
753
754
|
function Gt(e) {
|
|
754
|
-
return
|
|
755
|
+
return Ke(19) ? e : e ? "true" : void 0;
|
|
755
756
|
}
|
|
756
757
|
//#endregion
|
|
757
758
|
//#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/InternalBackdrop.mjs
|
|
@@ -781,12 +782,12 @@ process.env.NODE_ENV !== "production" && (Kt.displayName = "InternalBackdrop");
|
|
|
781
782
|
var qt = {}, Jt = {}, Yt = "";
|
|
782
783
|
function Xt(e) {
|
|
783
784
|
if (typeof document > "u") return !1;
|
|
784
|
-
let t =
|
|
785
|
-
return
|
|
785
|
+
let t = W(e);
|
|
786
|
+
return Ge(t).innerWidth - t.documentElement.clientWidth > 0;
|
|
786
787
|
}
|
|
787
788
|
function Zt(e) {
|
|
788
789
|
if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u") return !1;
|
|
789
|
-
let t =
|
|
790
|
+
let t = W(e), n = t.documentElement, r = t.body, i = Ne(n) ? n : r, a = i.style.overflowY, o = n.style.scrollbarGutter;
|
|
790
791
|
n.style.scrollbarGutter = "stable", i.style.overflowY = "scroll";
|
|
791
792
|
let s = i.offsetWidth;
|
|
792
793
|
i.style.overflowY = "hidden";
|
|
@@ -794,7 +795,7 @@ function Zt(e) {
|
|
|
794
795
|
return i.style.overflowY = a, n.style.scrollbarGutter = o, s === c;
|
|
795
796
|
}
|
|
796
797
|
function Qt(e) {
|
|
797
|
-
let t =
|
|
798
|
+
let t = W(e), n = t.documentElement, r = t.body, i = Ne(n) ? n : r, a = {
|
|
798
799
|
overflowY: i.style.overflowY,
|
|
799
800
|
overflowX: i.style.overflowX
|
|
800
801
|
};
|
|
@@ -806,8 +807,8 @@ function Qt(e) {
|
|
|
806
807
|
};
|
|
807
808
|
}
|
|
808
809
|
function $t(e) {
|
|
809
|
-
let t =
|
|
810
|
-
if (
|
|
810
|
+
let t = W(e), n = t.documentElement, i = t.body, a = Ge(n), o = 0, s = 0, c = !1, l = r.create();
|
|
811
|
+
if (f && (a.visualViewport?.scale ?? 1) !== 1) return () => {};
|
|
811
812
|
function u() {
|
|
812
813
|
let t = a.getComputedStyle(n), r = a.getComputedStyle(i), l = (t.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
|
|
813
814
|
o = n.scrollTop, s = n.scrollLeft, qt = {
|
|
@@ -823,7 +824,7 @@ function $t(e) {
|
|
|
823
824
|
overflowX: i.style.overflowX,
|
|
824
825
|
scrollBehavior: i.style.scrollBehavior
|
|
825
826
|
};
|
|
826
|
-
let u = n.scrollHeight > n.clientHeight, d = n.scrollWidth > n.clientWidth, f = t.overflowY === "scroll" || r.overflowY === "scroll", p = t.overflowX === "scroll" || r.overflowX === "scroll", m = Math.max(0, a.innerWidth - i.clientWidth), h = Math.max(0, a.innerHeight - i.clientHeight), g = parseFloat(r.marginTop) + parseFloat(r.marginBottom), _ = parseFloat(r.marginLeft) + parseFloat(r.marginRight), v =
|
|
827
|
+
let u = n.scrollHeight > n.clientHeight, d = n.scrollWidth > n.clientWidth, f = t.overflowY === "scroll" || r.overflowY === "scroll", p = t.overflowX === "scroll" || r.overflowX === "scroll", m = Math.max(0, a.innerWidth - i.clientWidth), h = Math.max(0, a.innerHeight - i.clientHeight), g = parseFloat(r.marginTop) + parseFloat(r.marginBottom), _ = parseFloat(r.marginLeft) + parseFloat(r.marginRight), v = Ne(n) ? n : i;
|
|
827
828
|
if (c = Zt(e), c) {
|
|
828
829
|
n.style.scrollbarGutter = l, v.style.overflowY = "hidden", v.style.overflowX = "hidden";
|
|
829
830
|
return;
|
|
@@ -844,20 +845,20 @@ function $t(e) {
|
|
|
844
845
|
function d() {
|
|
845
846
|
Object.assign(n.style, qt), Object.assign(i.style, Jt), c || (n.scrollTop = o, n.scrollLeft = s, n.removeAttribute("data-base-ui-scroll-locked"), n.style.scrollBehavior = Yt);
|
|
846
847
|
}
|
|
847
|
-
function
|
|
848
|
+
function p() {
|
|
848
849
|
d(), l.request(u);
|
|
849
850
|
}
|
|
850
851
|
u();
|
|
851
|
-
let
|
|
852
|
+
let m = de(a, "resize", p);
|
|
852
853
|
return () => {
|
|
853
|
-
l.cancel(), d(), typeof a.removeEventListener == "function" &&
|
|
854
|
+
l.cancel(), d(), typeof a.removeEventListener == "function" && m();
|
|
854
855
|
};
|
|
855
856
|
}
|
|
856
857
|
var en = new class {
|
|
857
858
|
lockCount = 0;
|
|
858
859
|
restore = null;
|
|
859
|
-
timeoutLock =
|
|
860
|
-
timeoutUnlock =
|
|
860
|
+
timeoutLock = De.create();
|
|
861
|
+
timeoutUnlock = De.create();
|
|
861
862
|
acquire(e) {
|
|
862
863
|
return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
|
|
863
864
|
}
|
|
@@ -869,17 +870,17 @@ var en = new class {
|
|
|
869
870
|
};
|
|
870
871
|
lock(e) {
|
|
871
872
|
if (this.lockCount === 0 || this.restore !== null) return;
|
|
872
|
-
let t =
|
|
873
|
+
let t = W(e).documentElement, n = Ge(t).getComputedStyle(t).overflowY;
|
|
873
874
|
if (n === "hidden" || n === "clip") {
|
|
874
|
-
this.restore =
|
|
875
|
+
this.restore = Ve;
|
|
875
876
|
return;
|
|
876
877
|
}
|
|
877
|
-
let r =
|
|
878
|
+
let r = g || !Xt(e);
|
|
878
879
|
this.restore = r ? Qt(e) : $t(e);
|
|
879
880
|
}
|
|
880
881
|
}();
|
|
881
882
|
function tn(e = !0, t = null) {
|
|
882
|
-
|
|
883
|
+
Y(() => {
|
|
883
884
|
if (e) return en.acquire(t);
|
|
884
885
|
}, [e, t]);
|
|
885
886
|
}
|
|
@@ -888,12 +889,12 @@ function tn(e = !0, t = null) {
|
|
|
888
889
|
var nn = 20;
|
|
889
890
|
function rn(e, t, n, r) {
|
|
890
891
|
let [i, a] = Z.useState(!1);
|
|
891
|
-
|
|
892
|
+
Y(() => {
|
|
892
893
|
if (!e || !t || n == null) {
|
|
893
894
|
a(!1);
|
|
894
895
|
return;
|
|
895
896
|
}
|
|
896
|
-
let r =
|
|
897
|
+
let r = W(n).documentElement.clientWidth, i = n.offsetWidth;
|
|
897
898
|
a(r > 0 && i > 0 && i >= r - nn);
|
|
898
899
|
}, [
|
|
899
900
|
e,
|
|
@@ -921,8 +922,8 @@ function an(e) {
|
|
|
921
922
|
//#endregion
|
|
922
923
|
//#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/useOpenInteractionType.mjs
|
|
923
924
|
function on(e, t) {
|
|
924
|
-
let { onClick: n, onPointerDown: r } = an(
|
|
925
|
-
(typeof e == "function" ? e() : e) || t(r || (
|
|
925
|
+
let { onClick: n, onPointerDown: r } = an(X((n, r) => {
|
|
926
|
+
(typeof e == "function" ? e() : e) || t(r || (g ? "touch" : ""));
|
|
926
927
|
}));
|
|
927
928
|
return Z.useMemo(() => ({
|
|
928
929
|
onClick: n,
|
|
@@ -941,11 +942,11 @@ function sn(e) {
|
|
|
941
942
|
//#endregion
|
|
942
943
|
//#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/getPseudoElementBounds.mjs
|
|
943
944
|
function cn(e) {
|
|
944
|
-
let t = e.getBoundingClientRect(), n =
|
|
945
|
-
if (
|
|
945
|
+
let t = e.getBoundingClientRect(), n = Ge(e);
|
|
946
|
+
if (l) return t;
|
|
946
947
|
let r = n.getComputedStyle(e, "::before"), i = n.getComputedStyle(e, "::after");
|
|
947
948
|
if (!(r.content !== "none" || i.content !== "none")) return t;
|
|
948
|
-
let a = parseFloat(r.width) || 0, o = parseFloat(r.height) || 0, s = parseFloat(i.width) || 0, c = parseFloat(i.height) || 0,
|
|
949
|
+
let a = parseFloat(r.width) || 0, o = parseFloat(r.height) || 0, s = parseFloat(i.width) || 0, c = parseFloat(i.height) || 0, u = Math.max(t.width, a, s), d = Math.max(t.height, o, c), f = u - t.width, p = d - t.height;
|
|
949
950
|
return {
|
|
950
951
|
left: t.left - f / 2,
|
|
951
952
|
right: t.right + f / 2,
|
|
@@ -1110,7 +1111,7 @@ var xn = (0, Z.forwardRef)(({ offset: e, shadowLevel: t, className: n, children:
|
|
|
1110
1111
|
value: s,
|
|
1111
1112
|
children: /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
1112
1113
|
ref: a,
|
|
1113
|
-
className:
|
|
1114
|
+
className: Re(bn(s, t ?? s), n),
|
|
1114
1115
|
...i,
|
|
1115
1116
|
children: r
|
|
1116
1117
|
})
|
|
@@ -1125,26 +1126,26 @@ var Cn = /*#__PURE__*/ Z.createContext(null);
|
|
|
1125
1126
|
process.env.NODE_ENV !== "production" && (Cn.displayName = "SelectFloatingContext");
|
|
1126
1127
|
function wn() {
|
|
1127
1128
|
let e = Z.useContext(Sn);
|
|
1128
|
-
if (e === null) throw Error(process.env.NODE_ENV === "production" ?
|
|
1129
|
+
if (e === null) throw Error(process.env.NODE_ENV === "production" ? qe(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
|
|
1129
1130
|
return e;
|
|
1130
1131
|
}
|
|
1131
1132
|
function Tn() {
|
|
1132
1133
|
let e = Z.useContext(Cn);
|
|
1133
|
-
if (e === null) throw Error(process.env.NODE_ENV === "production" ?
|
|
1134
|
+
if (e === null) throw Error(process.env.NODE_ENV === "production" ? qe(61) : "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");
|
|
1134
1135
|
return e;
|
|
1135
1136
|
}
|
|
1136
1137
|
//#endregion
|
|
1137
1138
|
//#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/labelable-provider/useLabelableId.mjs
|
|
1138
1139
|
function En(e = {}) {
|
|
1139
|
-
let { id: t, implicit: n = !1, controlRef: r } = e, { controlId: i, registerControlId: a } = lt(), o =
|
|
1140
|
-
!l.current || a ===
|
|
1140
|
+
let { id: t, implicit: n = !1, controlRef: r } = e, { controlId: i, registerControlId: a } = lt(), o = b(t), s = n ? i : void 0, c = Ze(() => Symbol("labelable-control")), l = Z.useRef(!1), u = Z.useRef(t != null), d = X(() => {
|
|
1141
|
+
!l.current || a === Ve || (l.current = !1, a(c.current, void 0));
|
|
1141
1142
|
});
|
|
1142
|
-
return
|
|
1143
|
-
if (a ===
|
|
1143
|
+
return Y(() => {
|
|
1144
|
+
if (a === Ve) return;
|
|
1144
1145
|
let e;
|
|
1145
1146
|
if (n) {
|
|
1146
1147
|
let n = r?.current;
|
|
1147
|
-
e =
|
|
1148
|
+
e = We(n) && n.closest("label") != null ? t ?? null : s ?? o;
|
|
1148
1149
|
} else if (t != null) u.current = !0, e = t;
|
|
1149
1150
|
else if (u.current) e = o;
|
|
1150
1151
|
else {
|
|
@@ -1245,42 +1246,42 @@ function Rn(e, t, n) {
|
|
|
1245
1246
|
//#endregion
|
|
1246
1247
|
//#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/select/store.mjs
|
|
1247
1248
|
var $ = {
|
|
1248
|
-
id:
|
|
1249
|
-
labelId:
|
|
1250
|
-
modal:
|
|
1251
|
-
multiple:
|
|
1252
|
-
items:
|
|
1253
|
-
itemToStringLabel:
|
|
1254
|
-
itemToStringValue:
|
|
1255
|
-
isItemEqualToValue:
|
|
1256
|
-
value:
|
|
1257
|
-
hasSelectedValue:
|
|
1249
|
+
id: q((e) => e.id),
|
|
1250
|
+
labelId: q((e) => e.labelId),
|
|
1251
|
+
modal: q((e) => e.modal),
|
|
1252
|
+
multiple: q((e) => e.multiple),
|
|
1253
|
+
items: q((e) => e.items),
|
|
1254
|
+
itemToStringLabel: q((e) => e.itemToStringLabel),
|
|
1255
|
+
itemToStringValue: q((e) => e.itemToStringValue),
|
|
1256
|
+
isItemEqualToValue: q((e) => e.isItemEqualToValue),
|
|
1257
|
+
value: q((e) => e.value),
|
|
1258
|
+
hasSelectedValue: q((e) => {
|
|
1258
1259
|
let { value: t, multiple: n, itemToStringValue: r } = e;
|
|
1259
1260
|
return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : In(t, r) !== "";
|
|
1260
1261
|
}),
|
|
1261
|
-
hasNullItemLabel:
|
|
1262
|
-
open:
|
|
1263
|
-
mounted:
|
|
1264
|
-
forceMount:
|
|
1265
|
-
transitionStatus:
|
|
1266
|
-
openMethod:
|
|
1267
|
-
activeIndex:
|
|
1268
|
-
selectedIndex:
|
|
1269
|
-
isActive:
|
|
1270
|
-
isSelected:
|
|
1262
|
+
hasNullItemLabel: q((e, t) => t ? Pn(e.items) : !1),
|
|
1263
|
+
open: q((e) => e.open),
|
|
1264
|
+
mounted: q((e) => e.mounted),
|
|
1265
|
+
forceMount: q((e) => e.forceMount),
|
|
1266
|
+
transitionStatus: q((e) => e.transitionStatus),
|
|
1267
|
+
openMethod: q((e) => e.openMethod),
|
|
1268
|
+
activeIndex: q((e) => e.activeIndex),
|
|
1269
|
+
selectedIndex: q((e) => e.selectedIndex),
|
|
1270
|
+
isActive: q((e, t) => e.activeIndex === t),
|
|
1271
|
+
isSelected: q((e, t) => {
|
|
1271
1272
|
let n = e.isItemEqualToValue, r = e.value;
|
|
1272
1273
|
return e.multiple ? Array.isArray(r) && r.some((e) => On(t, e, n)) : On(t, r, n);
|
|
1273
1274
|
}),
|
|
1274
|
-
isSelectedByFocus:
|
|
1275
|
-
popupProps:
|
|
1276
|
-
triggerProps:
|
|
1277
|
-
triggerElement:
|
|
1278
|
-
positionerElement:
|
|
1279
|
-
listElement:
|
|
1280
|
-
popupSide:
|
|
1281
|
-
scrollUpArrowVisible:
|
|
1282
|
-
scrollDownArrowVisible:
|
|
1283
|
-
hasScrollArrows:
|
|
1275
|
+
isSelectedByFocus: q((e, t) => e.selectedIndex === t),
|
|
1276
|
+
popupProps: q((e) => e.popupProps),
|
|
1277
|
+
triggerProps: q((e) => e.triggerProps),
|
|
1278
|
+
triggerElement: q((e) => e.triggerElement),
|
|
1279
|
+
positionerElement: q((e) => e.positionerElement),
|
|
1280
|
+
listElement: q((e) => e.listElement),
|
|
1281
|
+
popupSide: q((e) => e.popupSide),
|
|
1282
|
+
scrollUpArrowVisible: q((e) => e.scrollUpArrowVisible),
|
|
1283
|
+
scrollDownArrowVisible: q((e) => e.scrollDownArrowVisible),
|
|
1284
|
+
hasScrollArrows: q((e) => e.hasScrollArrows)
|
|
1284
1285
|
};
|
|
1285
1286
|
//#endregion
|
|
1286
1287
|
//#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/areArraysEqual.mjs
|
|
@@ -1303,33 +1304,33 @@ function Hn(e, t) {
|
|
|
1303
1304
|
//#endregion
|
|
1304
1305
|
//#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/select/root/SelectRoot.mjs
|
|
1305
1306
|
function Un(e) {
|
|
1306
|
-
let { id: t, value: n, defaultValue: r = null, onValueChange: i, open: a, defaultOpen:
|
|
1307
|
+
let { id: t, value: n, defaultValue: r = null, onValueChange: i, open: a, defaultOpen: c = !1, onOpenChange: l, name: u, form: d, autoComplete: f, disabled: p = !1, readOnly: m = !1, required: h = !1, modal: g = !0, actionsRef: _, inputRef: y, onOpenChangeComplete: b, items: x, multiple: S = !1, itemToStringLabel: ee, itemToStringValue: C, isItemEqualToValue: w = Dn, highlightItemOnHover: E = !0, children: te } = e, { clearErrors: D } = ut(), { setDirty: O, setTouched: k, setFocused: A, validityData: M, setFilled: N, name: ne, disabled: re, validation: P, validationMode: I } = ct(), ae = En({ id: t }), L = re || p, R = ne ?? u, [z, B] = Qe({
|
|
1307
1308
|
controlled: n,
|
|
1308
|
-
default: S ? r ??
|
|
1309
|
+
default: S ? r ?? Je : r,
|
|
1309
1310
|
name: "Select",
|
|
1310
1311
|
state: "value"
|
|
1311
|
-
}), [
|
|
1312
|
+
}), [V, oe] = Qe({
|
|
1312
1313
|
controlled: a,
|
|
1313
|
-
default:
|
|
1314
|
+
default: c,
|
|
1314
1315
|
name: "Select",
|
|
1315
1316
|
state: "open"
|
|
1316
|
-
}),
|
|
1317
|
+
}), se = Z.useRef([]), ce = Z.useRef([]), le = Z.useRef(null), de = Z.useRef(null), U = Z.useRef(0), fe = Z.useRef(null), me = Z.useRef([]), W = Z.useRef(!1), he = Z.useRef(null), ge = Z.useRef(null), _e = Z.useRef({
|
|
1317
1318
|
allowSelectedMouseUp: !1,
|
|
1318
1319
|
allowUnselectedMouseUp: !1,
|
|
1319
1320
|
dragY: 0
|
|
1320
|
-
}),
|
|
1321
|
-
id:
|
|
1321
|
+
}), ve = Z.useRef(!1), { mounted: ye, setMounted: be, transitionStatus: xe } = ue(V), { openMethod: Se, triggerProps: Te } = sn(V), G = Ze(() => new F({
|
|
1322
|
+
id: ae,
|
|
1322
1323
|
labelId: void 0,
|
|
1323
1324
|
modal: g,
|
|
1324
1325
|
multiple: S,
|
|
1325
1326
|
itemToStringLabel: ee,
|
|
1326
1327
|
itemToStringValue: C,
|
|
1327
1328
|
isItemEqualToValue: w,
|
|
1328
|
-
value:
|
|
1329
|
-
open:
|
|
1330
|
-
mounted:
|
|
1331
|
-
transitionStatus:
|
|
1332
|
-
items:
|
|
1329
|
+
value: z,
|
|
1330
|
+
open: V,
|
|
1331
|
+
mounted: ye,
|
|
1332
|
+
transitionStatus: xe,
|
|
1333
|
+
items: x,
|
|
1333
1334
|
forceMount: !1,
|
|
1334
1335
|
openMethod: null,
|
|
1335
1336
|
activeIndex: null,
|
|
@@ -1343,256 +1344,256 @@ function Un(e) {
|
|
|
1343
1344
|
scrollUpArrowVisible: !1,
|
|
1344
1345
|
scrollDownArrowVisible: !1,
|
|
1345
1346
|
hasScrollArrows: !1
|
|
1346
|
-
})).current,
|
|
1347
|
+
})).current, Ee = J(G, $.activeIndex), K = J(G, $.selectedIndex), De = J(G, $.triggerElement), q = J(G, $.positionerElement), Oe = ln(Se), ke = Se ?? Oe ?? null, Ae = Z.useMemo(() => S ? "" : In(z, C), [
|
|
1347
1348
|
S,
|
|
1348
|
-
|
|
1349
|
+
z,
|
|
1349
1350
|
C
|
|
1350
|
-
]),
|
|
1351
|
+
]), je = Z.useMemo(() => S && Array.isArray(z) ? z.map((e) => In(e, C)) : In(z, C), [
|
|
1351
1352
|
S,
|
|
1352
|
-
|
|
1353
|
+
z,
|
|
1353
1354
|
C
|
|
1354
1355
|
]);
|
|
1355
|
-
ot(
|
|
1356
|
-
let
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
}, [
|
|
1360
|
-
N(
|
|
1361
|
-
}, [
|
|
1362
|
-
let e =
|
|
1356
|
+
ot(Ce(G.state.triggerElement), ae, z, X(() => je), !L, u);
|
|
1357
|
+
let Me = Z.useRef(z), Ne = S ? Array.isArray(z) && z.length > 0 : z != null && In(z, C) !== "";
|
|
1358
|
+
Y(() => {
|
|
1359
|
+
z !== Me.current && G.set("forceMount", !0);
|
|
1360
|
+
}, [G, z]), Y(() => {
|
|
1361
|
+
N(Ne);
|
|
1362
|
+
}, [Ne, N]), Y(function() {
|
|
1363
|
+
let e = me.current, t;
|
|
1363
1364
|
if (S) {
|
|
1364
|
-
let n = Array.isArray(
|
|
1365
|
+
let n = Array.isArray(z) ? z : [];
|
|
1365
1366
|
if (n.length === 0) t = null;
|
|
1366
1367
|
else {
|
|
1367
1368
|
let r = n[n.length - 1], i = An(e, r, w);
|
|
1368
1369
|
t = i === -1 ? null : i;
|
|
1369
1370
|
}
|
|
1370
1371
|
} else {
|
|
1371
|
-
let n = An(e,
|
|
1372
|
+
let n = An(e, z, w);
|
|
1372
1373
|
t = n === -1 ? null : n;
|
|
1373
1374
|
}
|
|
1374
|
-
t === null && (
|
|
1375
|
+
t === null && (ge.current = null), !V && G.set("selectedIndex", t);
|
|
1375
1376
|
}, [
|
|
1376
|
-
|
|
1377
|
+
Ne,
|
|
1377
1378
|
S,
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1379
|
+
V,
|
|
1380
|
+
z,
|
|
1381
|
+
me,
|
|
1381
1382
|
w,
|
|
1382
|
-
|
|
1383
|
-
|
|
1383
|
+
G,
|
|
1384
|
+
ge
|
|
1384
1385
|
]);
|
|
1385
|
-
function
|
|
1386
|
-
let t =
|
|
1386
|
+
function Pe(e) {
|
|
1387
|
+
let t = M.initialValue;
|
|
1387
1388
|
return Array.isArray(e) && Array.isArray(t) ? !zn(e, t, (e, t) => On(e, t, w)) : e !== t;
|
|
1388
1389
|
}
|
|
1389
|
-
st(
|
|
1390
|
-
|
|
1390
|
+
st(z, () => {
|
|
1391
|
+
D(R), O(Pe(z)), P.change(z);
|
|
1391
1392
|
});
|
|
1392
|
-
let
|
|
1393
|
-
l?.(e, t), !t.isCanceled && (
|
|
1394
|
-
}),
|
|
1395
|
-
|
|
1393
|
+
let Fe = X((e, t) => {
|
|
1394
|
+
l?.(e, t), !t.isCanceled && (oe(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (k(!0), A(!1), I === "onBlur" && P.commit(z)));
|
|
1395
|
+
}), Ie = X(() => {
|
|
1396
|
+
be(!1), G.update({
|
|
1396
1397
|
activeIndex: null,
|
|
1397
1398
|
openMethod: null
|
|
1398
|
-
}),
|
|
1399
|
+
}), b?.(!1);
|
|
1399
1400
|
});
|
|
1400
|
-
|
|
1401
|
+
s({
|
|
1401
1402
|
enabled: !_,
|
|
1402
|
-
open:
|
|
1403
|
+
open: V,
|
|
1403
1404
|
ref: le,
|
|
1404
1405
|
onComplete() {
|
|
1405
|
-
|
|
1406
|
+
V || Ie();
|
|
1406
1407
|
}
|
|
1407
|
-
}), Z.useImperativeHandle(_, () => ({ unmount:
|
|
1408
|
-
let
|
|
1409
|
-
i?.(e, t), !t.isCanceled &&
|
|
1410
|
-
}),
|
|
1411
|
-
let e =
|
|
1408
|
+
}), Z.useImperativeHandle(_, () => ({ unmount: Ie }), [Ie]);
|
|
1409
|
+
let Le = X((e, t) => {
|
|
1410
|
+
i?.(e, t), !t.isCanceled && B(e);
|
|
1411
|
+
}), Re = X(() => {
|
|
1412
|
+
let e = G.state.listElement || le.current;
|
|
1412
1413
|
if (!e) return;
|
|
1413
1414
|
let t = Vn(e.scrollHeight, e.clientHeight), n = Hn(e.scrollTop, t), r = n > 0, i = n < t;
|
|
1414
|
-
|
|
1415
|
-
}),
|
|
1416
|
-
open:
|
|
1417
|
-
onOpenChange:
|
|
1415
|
+
G.state.scrollUpArrowVisible !== r && G.set("scrollUpArrowVisible", r), G.state.scrollDownArrowVisible !== i && G.set("scrollDownArrowVisible", i);
|
|
1416
|
+
}), ze = pe({
|
|
1417
|
+
open: V,
|
|
1418
|
+
onOpenChange: Fe,
|
|
1418
1419
|
elements: {
|
|
1419
|
-
reference:
|
|
1420
|
-
floating:
|
|
1420
|
+
reference: De,
|
|
1421
|
+
floating: q
|
|
1421
1422
|
}
|
|
1422
|
-
}),
|
|
1423
|
-
enabled: !m && !
|
|
1423
|
+
}), Be = Pt(ze, {
|
|
1424
|
+
enabled: !m && !L,
|
|
1424
1425
|
event: "mousedown"
|
|
1425
|
-
}),
|
|
1426
|
-
enabled: !m && !
|
|
1427
|
-
listRef:
|
|
1428
|
-
activeIndex:
|
|
1429
|
-
selectedIndex:
|
|
1430
|
-
disabledIndices:
|
|
1426
|
+
}), Ve = o(ze), He = Vt(ze, {
|
|
1427
|
+
enabled: !m && !L,
|
|
1428
|
+
listRef: se,
|
|
1429
|
+
activeIndex: Ee,
|
|
1430
|
+
selectedIndex: K,
|
|
1431
|
+
disabledIndices: Je,
|
|
1431
1432
|
onNavigate(e) {
|
|
1432
|
-
e === null && !
|
|
1433
|
+
e === null && !V || G.set("activeIndex", e);
|
|
1433
1434
|
},
|
|
1434
|
-
focusItemOnHover:
|
|
1435
|
-
}),
|
|
1436
|
-
enabled: !m && !
|
|
1435
|
+
focusItemOnHover: E
|
|
1436
|
+
}), We = Ht(ze, {
|
|
1437
|
+
enabled: !m && !L && (V || !S),
|
|
1437
1438
|
listRef: ce,
|
|
1438
|
-
activeIndex:
|
|
1439
|
-
selectedIndex:
|
|
1440
|
-
disabledIndices: (e) => tt(
|
|
1439
|
+
activeIndex: Ee,
|
|
1440
|
+
selectedIndex: K,
|
|
1441
|
+
disabledIndices: (e) => tt(se.current[e]),
|
|
1441
1442
|
onMatch(e) {
|
|
1442
|
-
|
|
1443
|
+
V ? G.set("activeIndex", e) : Le(me.current[e], v("none"));
|
|
1443
1444
|
},
|
|
1444
1445
|
onTyping(e) {
|
|
1445
|
-
|
|
1446
|
+
W.current = e;
|
|
1446
1447
|
}
|
|
1447
|
-
}),
|
|
1448
|
-
let e =
|
|
1449
|
-
return
|
|
1448
|
+
}), Ge = Z.useMemo(() => {
|
|
1449
|
+
let e = Ue(We.reference, He.reference, Ve.reference, Be.reference, Te);
|
|
1450
|
+
return ae && (e.id = ae), e;
|
|
1450
1451
|
}, [
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
]),
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
]),
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
popupProps:
|
|
1465
|
-
triggerProps:
|
|
1452
|
+
Be.reference,
|
|
1453
|
+
We.reference,
|
|
1454
|
+
He.reference,
|
|
1455
|
+
Ve.reference,
|
|
1456
|
+
Te,
|
|
1457
|
+
ae
|
|
1458
|
+
]), Ke = Z.useMemo(() => Ue(we, We.floating, He.floating, Ve.floating), [
|
|
1459
|
+
We.floating,
|
|
1460
|
+
He.floating,
|
|
1461
|
+
Ve.floating
|
|
1462
|
+
]), qe = He.item ?? Ye;
|
|
1463
|
+
T(() => {
|
|
1464
|
+
G.update({
|
|
1465
|
+
popupProps: Ke,
|
|
1466
|
+
triggerProps: Ge
|
|
1466
1467
|
});
|
|
1467
|
-
}),
|
|
1468
|
-
|
|
1469
|
-
id:
|
|
1468
|
+
}), Y(() => {
|
|
1469
|
+
G.update({
|
|
1470
|
+
id: ae,
|
|
1470
1471
|
modal: g,
|
|
1471
1472
|
multiple: S,
|
|
1472
|
-
value:
|
|
1473
|
-
open:
|
|
1474
|
-
mounted:
|
|
1475
|
-
transitionStatus:
|
|
1476
|
-
popupProps:
|
|
1477
|
-
triggerProps:
|
|
1478
|
-
items:
|
|
1473
|
+
value: z,
|
|
1474
|
+
open: V,
|
|
1475
|
+
mounted: ye,
|
|
1476
|
+
transitionStatus: xe,
|
|
1477
|
+
popupProps: Ke,
|
|
1478
|
+
triggerProps: Ge,
|
|
1479
|
+
items: x,
|
|
1479
1480
|
itemToStringLabel: ee,
|
|
1480
1481
|
itemToStringValue: C,
|
|
1481
1482
|
isItemEqualToValue: w,
|
|
1482
|
-
openMethod:
|
|
1483
|
+
openMethod: ke
|
|
1483
1484
|
});
|
|
1484
1485
|
}, [
|
|
1485
|
-
|
|
1486
|
-
|
|
1486
|
+
G,
|
|
1487
|
+
ae,
|
|
1487
1488
|
g,
|
|
1488
1489
|
S,
|
|
1489
|
-
|
|
1490
|
-
|
|
1490
|
+
z,
|
|
1491
|
+
V,
|
|
1492
|
+
ye,
|
|
1491
1493
|
xe,
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
b,
|
|
1494
|
+
Ke,
|
|
1495
|
+
Ge,
|
|
1496
|
+
x,
|
|
1496
1497
|
ee,
|
|
1497
1498
|
C,
|
|
1498
1499
|
w,
|
|
1499
|
-
|
|
1500
|
+
ke
|
|
1500
1501
|
]);
|
|
1501
1502
|
let $e = Z.useMemo(() => ({
|
|
1502
|
-
store:
|
|
1503
|
-
name:
|
|
1503
|
+
store: G,
|
|
1504
|
+
name: R,
|
|
1504
1505
|
required: h,
|
|
1505
|
-
disabled:
|
|
1506
|
+
disabled: L,
|
|
1506
1507
|
readOnly: m,
|
|
1507
1508
|
multiple: S,
|
|
1508
|
-
highlightItemOnHover:
|
|
1509
|
-
setValue:
|
|
1510
|
-
setOpen:
|
|
1511
|
-
listRef:
|
|
1509
|
+
highlightItemOnHover: E,
|
|
1510
|
+
setValue: Le,
|
|
1511
|
+
setOpen: Fe,
|
|
1512
|
+
listRef: se,
|
|
1512
1513
|
popupRef: le,
|
|
1513
|
-
scrollHandlerRef:
|
|
1514
|
-
handleScrollArrowVisibility:
|
|
1515
|
-
scrollArrowsMountedCountRef:
|
|
1516
|
-
itemProps:
|
|
1514
|
+
scrollHandlerRef: de,
|
|
1515
|
+
handleScrollArrowVisibility: Re,
|
|
1516
|
+
scrollArrowsMountedCountRef: U,
|
|
1517
|
+
itemProps: qe,
|
|
1517
1518
|
valueRef: fe,
|
|
1518
|
-
valuesRef:
|
|
1519
|
+
valuesRef: me,
|
|
1519
1520
|
labelsRef: ce,
|
|
1520
|
-
typingRef:
|
|
1521
|
-
selectionRef:
|
|
1521
|
+
typingRef: W,
|
|
1522
|
+
selectionRef: _e,
|
|
1522
1523
|
firstItemTextRef: he,
|
|
1523
|
-
selectedItemTextRef:
|
|
1524
|
-
validation:
|
|
1525
|
-
onOpenChangeComplete:
|
|
1526
|
-
alignItemWithTriggerActiveRef:
|
|
1527
|
-
initialValueRef:
|
|
1524
|
+
selectedItemTextRef: ge,
|
|
1525
|
+
validation: P,
|
|
1526
|
+
onOpenChangeComplete: b,
|
|
1527
|
+
alignItemWithTriggerActiveRef: ve,
|
|
1528
|
+
initialValueRef: Me
|
|
1528
1529
|
}), [
|
|
1529
|
-
|
|
1530
|
-
|
|
1530
|
+
G,
|
|
1531
|
+
R,
|
|
1531
1532
|
h,
|
|
1532
|
-
|
|
1533
|
+
L,
|
|
1533
1534
|
m,
|
|
1534
1535
|
S,
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
]), et =
|
|
1536
|
+
E,
|
|
1537
|
+
Le,
|
|
1538
|
+
Fe,
|
|
1539
|
+
qe,
|
|
1540
|
+
P,
|
|
1541
|
+
b,
|
|
1542
|
+
Re
|
|
1543
|
+
]), et = Xe(y, P.inputRef), nt = S && Array.isArray(z) && z.length > 0, rt = S ? void 0 : R, it = Z.useMemo(() => !S || !Array.isArray(z) || !R ? null : z.map((e) => {
|
|
1543
1544
|
let t = In(e, C);
|
|
1544
1545
|
return /*#__PURE__*/ (0, Q.jsx)("input", {
|
|
1545
1546
|
type: "hidden",
|
|
1546
1547
|
form: d,
|
|
1547
|
-
name:
|
|
1548
|
+
name: R,
|
|
1548
1549
|
value: t,
|
|
1549
|
-
disabled:
|
|
1550
|
+
disabled: L
|
|
1550
1551
|
}, t);
|
|
1551
1552
|
}), [
|
|
1552
1553
|
S,
|
|
1553
|
-
|
|
1554
|
+
z,
|
|
1554
1555
|
d,
|
|
1555
|
-
|
|
1556
|
+
R,
|
|
1556
1557
|
C,
|
|
1557
|
-
|
|
1558
|
+
L
|
|
1558
1559
|
]);
|
|
1559
1560
|
return /*#__PURE__*/ (0, Q.jsx)(Sn.Provider, {
|
|
1560
1561
|
value: $e,
|
|
1561
1562
|
children: /*#__PURE__*/ (0, Q.jsxs)(Cn.Provider, {
|
|
1562
|
-
value:
|
|
1563
|
+
value: ze,
|
|
1563
1564
|
children: [
|
|
1564
|
-
|
|
1565
|
+
te,
|
|
1565
1566
|
/*#__PURE__*/ (0, Q.jsx)("input", {
|
|
1566
|
-
...
|
|
1567
|
+
...P.getValidationProps(L, {
|
|
1567
1568
|
onFocus() {
|
|
1568
|
-
|
|
1569
|
+
G.state.triggerElement?.focus({ focusVisible: !0 });
|
|
1569
1570
|
},
|
|
1570
1571
|
onChange(e) {
|
|
1571
|
-
if (e.nativeEvent.defaultPrevented ||
|
|
1572
|
-
let t = e.currentTarget.value, n =
|
|
1572
|
+
if (e.nativeEvent.defaultPrevented || L || m) return;
|
|
1573
|
+
let t = e.currentTarget.value, n = v(j, e.nativeEvent);
|
|
1573
1574
|
function r() {
|
|
1574
1575
|
if (S) return;
|
|
1575
|
-
let e = t.toLowerCase(), r =
|
|
1576
|
-
r === -1 && (r =
|
|
1576
|
+
let e = t.toLowerCase(), r = me.current.findIndex((t) => In(t, C).toLowerCase() === e || Fn(t, ee).toLowerCase() === e);
|
|
1577
|
+
r === -1 && (r = me.current.findIndex((t, n) => {
|
|
1577
1578
|
let r = ce.current[n];
|
|
1578
1579
|
return r != null && r.toLowerCase() === e;
|
|
1579
1580
|
}));
|
|
1580
|
-
let i = r === -1 ? void 0 :
|
|
1581
|
-
i != null &&
|
|
1581
|
+
let i = r === -1 ? void 0 : me.current[r];
|
|
1582
|
+
i != null && Le(i, n);
|
|
1582
1583
|
}
|
|
1583
|
-
|
|
1584
|
+
G.set("forceMount", !0), queueMicrotask(r);
|
|
1584
1585
|
}
|
|
1585
1586
|
}),
|
|
1586
|
-
id:
|
|
1587
|
+
id: ae && rt == null ? `${ae}-hidden-input` : void 0,
|
|
1587
1588
|
form: d,
|
|
1588
1589
|
name: rt,
|
|
1589
1590
|
autoComplete: f,
|
|
1590
|
-
value:
|
|
1591
|
-
disabled:
|
|
1591
|
+
value: Ae,
|
|
1592
|
+
disabled: L,
|
|
1592
1593
|
required: h && !nt,
|
|
1593
1594
|
readOnly: m,
|
|
1594
1595
|
ref: et,
|
|
1595
|
-
style:
|
|
1596
|
+
style: R ? ie : H,
|
|
1596
1597
|
tabIndex: -1,
|
|
1597
1598
|
"aria-hidden": !0,
|
|
1598
1599
|
suppressHydrationWarning: !0
|
|
@@ -1610,21 +1611,21 @@ function Wn(e, t) {
|
|
|
1610
1611
|
//#endregion
|
|
1611
1612
|
//#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/select/trigger/SelectTrigger.mjs
|
|
1612
1613
|
var Gn = 2, Kn = 400, qn = {
|
|
1613
|
-
...
|
|
1614
|
+
...se,
|
|
1614
1615
|
...at,
|
|
1615
1616
|
popupSide: (e) => e ? { "data-popup-side": e } : null,
|
|
1616
1617
|
value: () => null
|
|
1617
1618
|
}, Jn = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
1618
|
-
let { render: n, className: r, id: i, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { setTouched: l, setFocused: u, validationMode: d, state: f, disabled: p } = ct(), { labelId: m } = lt(), { store: h, setOpen: g, selectionRef: _, validation:
|
|
1619
|
-
En({ id:
|
|
1620
|
-
let
|
|
1619
|
+
let { render: n, className: r, id: i, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { setTouched: l, setFocused: u, validationMode: d, state: f, disabled: p } = ct(), { labelId: m } = lt(), { store: h, setOpen: g, selectionRef: _, validation: y, readOnly: b, required: x, alignItemWithTriggerActiveRef: S, disabled: ee } = wn(), C = p || ee || a, T = J(h, $.open), E = J(h, $.mounted), te = J(h, $.value), D = J(h, $.triggerProps), O = J(h, $.positionerElement), k = J(h, $.listElement), A = J(h, $.popupSide), M = J(h, $.id), N = J(h, $.labelId), ne = J(h, $.hasSelectedValue), re = E && O ? A : null, ie = i ?? M, P = Wn(m, N);
|
|
1620
|
+
En({ id: ie });
|
|
1621
|
+
let F = Ce(O), I = Z.useRef(null), { getButtonProps: ae, buttonRef: L } = He({
|
|
1621
1622
|
disabled: C,
|
|
1622
1623
|
native: o
|
|
1623
|
-
}),
|
|
1624
|
+
}), R = X((e) => {
|
|
1624
1625
|
h.set("triggerElement", e);
|
|
1625
|
-
}),
|
|
1626
|
+
}), z = w(), B = w(), V = w();
|
|
1626
1627
|
Z.useEffect(() => {
|
|
1627
|
-
if (
|
|
1628
|
+
if (T) return V.start(Kn, () => {
|
|
1628
1629
|
_.current.allowUnselectedMouseUp = !0, _.current.allowSelectedMouseUp = !0;
|
|
1629
1630
|
}), () => {
|
|
1630
1631
|
V.clear();
|
|
@@ -1633,77 +1634,77 @@ var Gn = 2, Kn = 400, qn = {
|
|
|
1633
1634
|
allowSelectedMouseUp: !1,
|
|
1634
1635
|
allowUnselectedMouseUp: !1,
|
|
1635
1636
|
dragY: 0
|
|
1636
|
-
},
|
|
1637
|
+
}, B.clear();
|
|
1637
1638
|
}, [
|
|
1638
|
-
|
|
1639
|
+
T,
|
|
1639
1640
|
_,
|
|
1640
|
-
|
|
1641
|
+
B,
|
|
1641
1642
|
V
|
|
1642
1643
|
]);
|
|
1643
|
-
let
|
|
1644
|
-
id:
|
|
1644
|
+
let oe = Ue(D, {
|
|
1645
|
+
id: ie,
|
|
1645
1646
|
role: "combobox",
|
|
1646
|
-
"aria-expanded":
|
|
1647
|
+
"aria-expanded": T ? "true" : "false",
|
|
1647
1648
|
"aria-haspopup": "listbox",
|
|
1648
|
-
"aria-controls":
|
|
1649
|
-
"aria-labelledby":
|
|
1650
|
-
"aria-readonly":
|
|
1651
|
-
"aria-required":
|
|
1649
|
+
"aria-controls": T ? k?.id ?? Ee(O)?.id : void 0,
|
|
1650
|
+
"aria-labelledby": P,
|
|
1651
|
+
"aria-readonly": b || void 0,
|
|
1652
|
+
"aria-required": x || void 0,
|
|
1652
1653
|
tabIndex: C ? -1 : 0,
|
|
1653
1654
|
onFocus(e) {
|
|
1654
|
-
u(!0),
|
|
1655
|
+
u(!0), T && S.current && g(!1, v(j, e.nativeEvent)), z.start(0, () => {
|
|
1655
1656
|
h.set("forceMount", !0);
|
|
1656
1657
|
});
|
|
1657
1658
|
},
|
|
1658
1659
|
onBlur(e) {
|
|
1659
|
-
|
|
1660
|
+
U(O, e.relatedTarget) || (l(!0), u(!1), d === "onBlur" && y.commit(te));
|
|
1660
1661
|
},
|
|
1661
1662
|
onMouseDown(e) {
|
|
1662
|
-
if (
|
|
1663
|
-
let t =
|
|
1663
|
+
if (T) return;
|
|
1664
|
+
let t = W(e.currentTarget);
|
|
1664
1665
|
function n(e) {
|
|
1665
|
-
if (!
|
|
1666
|
+
if (!I.current) return;
|
|
1666
1667
|
let t = e.target;
|
|
1667
|
-
if (
|
|
1668
|
-
let n = cn(
|
|
1669
|
-
e.clientX >= n.left - Gn && e.clientX <= n.right + Gn && e.clientY >= n.top - Gn && e.clientY <= n.bottom + Gn || g(!1,
|
|
1668
|
+
if (U(I.current, t) || U(F.current, t)) return;
|
|
1669
|
+
let n = cn(I.current);
|
|
1670
|
+
e.clientX >= n.left - Gn && e.clientX <= n.right + Gn && e.clientY >= n.top - Gn && e.clientY <= n.bottom + Gn || g(!1, v(Ae, e));
|
|
1670
1671
|
}
|
|
1671
|
-
|
|
1672
|
+
B.start(0, () => {
|
|
1672
1673
|
t.addEventListener("mouseup", n, { once: !0 });
|
|
1673
1674
|
});
|
|
1674
1675
|
}
|
|
1675
|
-
}, c,
|
|
1676
|
-
|
|
1676
|
+
}, c, ae), H = y.getValidationProps(C, oe);
|
|
1677
|
+
H.role = "combobox";
|
|
1677
1678
|
let se = {
|
|
1678
1679
|
...f,
|
|
1679
|
-
open:
|
|
1680
|
+
open: T,
|
|
1680
1681
|
disabled: C,
|
|
1681
|
-
value:
|
|
1682
|
-
readOnly:
|
|
1683
|
-
popupSide:
|
|
1684
|
-
placeholder: !
|
|
1682
|
+
value: te,
|
|
1683
|
+
readOnly: b,
|
|
1684
|
+
popupSide: re,
|
|
1685
|
+
placeholder: !ne
|
|
1685
1686
|
};
|
|
1686
|
-
return
|
|
1687
|
+
return Be("button", e, {
|
|
1687
1688
|
ref: [
|
|
1688
1689
|
t,
|
|
1689
|
-
oe,
|
|
1690
1690
|
I,
|
|
1691
|
-
L
|
|
1691
|
+
L,
|
|
1692
|
+
R
|
|
1692
1693
|
],
|
|
1693
1694
|
state: se,
|
|
1694
1695
|
stateAttributesMapping: qn,
|
|
1695
|
-
props:
|
|
1696
|
+
props: H
|
|
1696
1697
|
});
|
|
1697
1698
|
});
|
|
1698
1699
|
process.env.NODE_ENV !== "production" && (Jn.displayName = "SelectTrigger");
|
|
1699
1700
|
//#endregion
|
|
1700
1701
|
//#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/select/value/SelectValue.mjs
|
|
1701
1702
|
var Yn = { value: () => null }, Xn = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
1702
|
-
let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: l } = wn(), u =
|
|
1703
|
+
let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: l } = wn(), u = J(c, $.value), d = J(c, $.items), f = J(c, $.itemToStringLabel), p = J(c, $.hasSelectedValue), m = !p && a != null && i == null, h = J(c, $.hasNullItemLabel, m), g = {
|
|
1703
1704
|
value: u,
|
|
1704
1705
|
placeholder: !p
|
|
1705
1706
|
}, _ = null;
|
|
1706
|
-
return _ = typeof i == "function" ? i(u) : i ?? (!p && a != null && !h ? a : Array.isArray(u) ? Rn(u, d, f) : Ln(u, d, f)),
|
|
1707
|
+
return _ = typeof i == "function" ? i(u) : i ?? (!p && a != null && !h ? a : Array.isArray(u) ? Rn(u, d, f) : Ln(u, d, f)), Be("span", e, {
|
|
1707
1708
|
state: g,
|
|
1708
1709
|
ref: [t, l],
|
|
1709
1710
|
props: [{ children: _ }, s],
|
|
@@ -1718,10 +1719,10 @@ process.env.NODE_ENV !== "production" && (Zn.displayName = "SelectPortalContext"
|
|
|
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/select/portal/SelectPortal.mjs
|
|
1720
1721
|
var Qn = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
1721
|
-
let { store: n } = wn(), r =
|
|
1722
|
+
let { store: n } = wn(), r = J(n, $.mounted), i = J(n, $.forceMount);
|
|
1722
1723
|
return r || i ? /*#__PURE__*/ (0, Q.jsx)(Zn.Provider, {
|
|
1723
1724
|
value: !0,
|
|
1724
|
-
children: /*#__PURE__*/ (0, Q.jsx)(
|
|
1725
|
+
children: /*#__PURE__*/ (0, Q.jsx)(S, {
|
|
1725
1726
|
ref: t,
|
|
1726
1727
|
...e
|
|
1727
1728
|
})
|
|
@@ -1734,7 +1735,7 @@ var $n = /*#__PURE__*/ Z.createContext(void 0);
|
|
|
1734
1735
|
process.env.NODE_ENV !== "production" && ($n.displayName = "SelectPositionerContext");
|
|
1735
1736
|
function er() {
|
|
1736
1737
|
let e = Z.useContext($n);
|
|
1737
|
-
if (!e) throw Error(process.env.NODE_ENV === "production" ?
|
|
1738
|
+
if (!e) throw Error(process.env.NODE_ENV === "production" ? qe(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
|
|
1738
1739
|
return e;
|
|
1739
1740
|
}
|
|
1740
1741
|
//#endregion
|
|
@@ -1748,15 +1749,15 @@ var nr = {
|
|
|
1748
1749
|
overflowX: "hidden",
|
|
1749
1750
|
overflowY: "auto"
|
|
1750
1751
|
}, rr = { position: "fixed" }, ir = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
1751
|
-
let { anchor: n, positionMethod: r = "absolute", className: i, render: a, side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d, arrowPadding: f = 5, sticky:
|
|
1752
|
-
!
|
|
1753
|
-
|
|
1754
|
-
}, [S,
|
|
1755
|
-
let V =
|
|
1752
|
+
let { anchor: n, positionMethod: r = "absolute", className: i, render: a, side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d, arrowPadding: f = 5, sticky: m = !1, disableAnchorTracking: h, alignItemWithTrigger: g = !0, collisionAvoidance: y = _, style: b, ...x } = e, { store: S, listRef: ee, labelsRef: C, alignItemWithTriggerActiveRef: w, selectedItemTextRef: T, valuesRef: E, initialValueRef: te, popupRef: D, setValue: O } = wn(), k = Tn(), A = J(S, $.open), M = J(S, $.mounted), N = J(S, $.modal), ne = J(S, $.value), re = J(S, $.openMethod), ie = J(S, $.positionerElement), P = J(S, $.triggerElement), F = J(S, $.isItemEqualToValue), I = J(S, $.transitionStatus), ae = Z.useRef(null), L = Z.useRef(null), [R, z] = Z.useState(g), B = M && R && re !== "touch";
|
|
1753
|
+
!M && R !== g && z(g), Y(() => {
|
|
1754
|
+
M || ($.scrollUpArrowVisible(S.state) && S.set("scrollUpArrowVisible", !1), $.scrollDownArrowVisible(S.state) && S.set("scrollDownArrowVisible", !1));
|
|
1755
|
+
}, [S, M]), Z.useImperativeHandle(w, () => B), rn((B || N) && A, re === "touch", ie, P);
|
|
1756
|
+
let V = p({
|
|
1756
1757
|
anchor: n,
|
|
1757
|
-
floatingRootContext:
|
|
1758
|
+
floatingRootContext: k,
|
|
1758
1759
|
positionMethod: r,
|
|
1759
|
-
mounted:
|
|
1760
|
+
mounted: M,
|
|
1760
1761
|
side: o,
|
|
1761
1762
|
sideOffset: c,
|
|
1762
1763
|
align: s,
|
|
@@ -1764,40 +1765,40 @@ var nr = {
|
|
|
1764
1765
|
arrowPadding: f,
|
|
1765
1766
|
collisionBoundary: u,
|
|
1766
1767
|
collisionPadding: d,
|
|
1767
|
-
sticky:
|
|
1768
|
-
disableAnchorTracking:
|
|
1769
|
-
collisionAvoidance:
|
|
1768
|
+
sticky: m,
|
|
1769
|
+
disableAnchorTracking: h ?? B,
|
|
1770
|
+
collisionAvoidance: y,
|
|
1770
1771
|
keepMounted: !0
|
|
1771
|
-
}),
|
|
1772
|
+
}), oe = B ? "none" : V.side, H = B ? rr : V.positionerStyles, se = {
|
|
1772
1773
|
open: A,
|
|
1773
|
-
side:
|
|
1774
|
+
side: oe,
|
|
1774
1775
|
align: V.align,
|
|
1775
1776
|
anchorHidden: V.anchorHidden
|
|
1776
1777
|
};
|
|
1777
|
-
|
|
1778
|
+
Y(() => {
|
|
1778
1779
|
S.set("popupSide", V.side);
|
|
1779
1780
|
}, [S, V.side]);
|
|
1780
|
-
let ce =
|
|
1781
|
-
styles:
|
|
1782
|
-
transitionStatus:
|
|
1783
|
-
props:
|
|
1784
|
-
refs: [t,
|
|
1781
|
+
let ce = _e(e, se, {
|
|
1782
|
+
styles: H,
|
|
1783
|
+
transitionStatus: I,
|
|
1784
|
+
props: x,
|
|
1785
|
+
refs: [t, X((e) => {
|
|
1785
1786
|
S.set("positionerElement", e);
|
|
1786
1787
|
})],
|
|
1787
|
-
hidden: !
|
|
1788
|
+
hidden: !M,
|
|
1788
1789
|
inert: !A
|
|
1789
|
-
}), le = Z.useRef(0), ue =
|
|
1790
|
-
if (e.size === 0 && le.current === 0 ||
|
|
1790
|
+
}), le = Z.useRef(0), ue = X((e) => {
|
|
1791
|
+
if (e.size === 0 && le.current === 0 || E.current.length === 0) return;
|
|
1791
1792
|
let t = le.current;
|
|
1792
1793
|
if (le.current = e.size, e.size === t) return;
|
|
1793
|
-
let n =
|
|
1794
|
-
if (t !== 0 && !S.state.multiple &&
|
|
1795
|
-
let e =
|
|
1796
|
-
O(t, n), t === null && (S.set("selectedIndex", null),
|
|
1794
|
+
let n = v(j);
|
|
1795
|
+
if (t !== 0 && !S.state.multiple && ne !== null && An(E.current, ne, F) === -1) {
|
|
1796
|
+
let e = te.current, t = e != null && An(E.current, e, F) !== -1 ? e : null;
|
|
1797
|
+
O(t, n), t === null && (S.set("selectedIndex", null), T.current = null);
|
|
1797
1798
|
}
|
|
1798
|
-
if (t !== 0 && S.state.multiple && Array.isArray(
|
|
1799
|
-
let e = (e) => An(
|
|
1800
|
-
(t.length !==
|
|
1799
|
+
if (t !== 0 && S.state.multiple && Array.isArray(ne)) {
|
|
1800
|
+
let e = (e) => An(E.current, e, F) !== -1, t = ne.filter((t) => e(t));
|
|
1801
|
+
(t.length !== ne.length || t.some((e) => !kn(ne, e, F))) && (O(t, n), t.length === 0 && (S.set("selectedIndex", null), T.current = null));
|
|
1801
1802
|
}
|
|
1802
1803
|
if (A && B) {
|
|
1803
1804
|
S.update({
|
|
@@ -1809,14 +1810,14 @@ var nr = {
|
|
|
1809
1810
|
}
|
|
1810
1811
|
}), de = Z.useMemo(() => ({
|
|
1811
1812
|
...V,
|
|
1812
|
-
side:
|
|
1813
|
+
side: oe,
|
|
1813
1814
|
alignItemWithTriggerActive: B,
|
|
1814
1815
|
setControlledAlignItemWithTrigger: z,
|
|
1815
|
-
scrollUpArrowRef:
|
|
1816
|
+
scrollUpArrowRef: ae,
|
|
1816
1817
|
scrollDownArrowRef: L
|
|
1817
1818
|
}), [
|
|
1818
1819
|
V,
|
|
1819
|
-
|
|
1820
|
+
oe,
|
|
1820
1821
|
B,
|
|
1821
1822
|
z
|
|
1822
1823
|
]);
|
|
@@ -1826,9 +1827,9 @@ var nr = {
|
|
|
1826
1827
|
onMapChange: ue,
|
|
1827
1828
|
children: /*#__PURE__*/ (0, Q.jsxs)($n.Provider, {
|
|
1828
1829
|
value: de,
|
|
1829
|
-
children: [
|
|
1830
|
+
children: [M && N && /*#__PURE__*/ (0, Q.jsx)(Kt, {
|
|
1830
1831
|
inert: Gt(!A),
|
|
1831
|
-
cutout:
|
|
1832
|
+
cutout: P
|
|
1832
1833
|
}), ce]
|
|
1833
1834
|
})
|
|
1834
1835
|
});
|
|
@@ -1859,25 +1860,25 @@ function lr() {
|
|
|
1859
1860
|
//#endregion
|
|
1860
1861
|
//#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/select/popup/SelectPopup.mjs
|
|
1861
1862
|
var ur = {
|
|
1862
|
-
...
|
|
1863
|
-
...
|
|
1863
|
+
...xe,
|
|
1864
|
+
...he
|
|
1864
1865
|
}, dr = /*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
1865
|
-
let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store:
|
|
1866
|
-
if (!
|
|
1867
|
-
if (
|
|
1866
|
+
let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: c, popupRef: l, onOpenChangeComplete: u, setOpen: d, valueRef: p, firstItemTextRef: m, selectedItemTextRef: h, multiple: g, handleScrollArrowVisibility: _, scrollHandlerRef: y, listRef: b, highlightItemOnHover: x } = wn(), { side: S, align: ee, alignItemWithTriggerActive: C, isPositioned: w, setControlledAlignItemWithTrigger: T } = er(), E = Wt(!0) != null, te = Tn(), D = k(), { nonce: O, disableStyleElements: A } = lr(), j = J(c, $.id), M = J(c, $.open), ne = J(c, $.openMethod), re = J(c, $.mounted), ie = J(c, $.popupProps), P = J(c, $.transitionStatus), F = J(c, $.triggerElement), I = J(c, $.positionerElement), ae = J(c, $.listElement), L = Z.useRef(!1), R = Z.useRef(!1), z = Z.useRef({}), B = ce(), V = X((e) => {
|
|
1867
|
+
if (!I || !l.current || !R.current) return;
|
|
1868
|
+
if (L.current || !C) {
|
|
1868
1869
|
_();
|
|
1869
1870
|
return;
|
|
1870
1871
|
}
|
|
1871
|
-
let t =
|
|
1872
|
+
let t = I.style.top === "0px", n = I.style.bottom === "0px";
|
|
1872
1873
|
if (!t && !n) {
|
|
1873
1874
|
_();
|
|
1874
1875
|
return;
|
|
1875
1876
|
}
|
|
1876
|
-
let r = mr(
|
|
1877
|
-
|
|
1877
|
+
let r = mr(I), i = hr(I.getBoundingClientRect().height, "y", r), a = W(I), o = Ge(I), s = o.getComputedStyle(I), c = parseFloat(s.marginTop), u = parseFloat(s.marginBottom), d = fr(o.getComputedStyle(l.current)), f = Math.min(a.documentElement.clientHeight - c - u, d), p = e.scrollTop, m = pr(e), h = 0, g = null, v = !1, y = !1, b = (e) => {
|
|
1878
|
+
I.style.height = `${e}px`;
|
|
1878
1879
|
}, x = (t, n) => {
|
|
1879
1880
|
let r = Bn(t, 0, f - i);
|
|
1880
|
-
r > 0 && b(i + r), e.scrollTop = n, f - (i + r) <= 1 && (
|
|
1881
|
+
r > 0 && b(i + r), e.scrollTop = n, f - (i + r) <= 1 && (L.current = !0), _();
|
|
1881
1882
|
}, S = t ? m - p : p, ee = Math.min(i + S, f);
|
|
1882
1883
|
if (h = ee, S <= 1) {
|
|
1883
1884
|
x(S, t ? m : 0);
|
|
@@ -1887,114 +1888,114 @@ var ur = {
|
|
|
1887
1888
|
let t = pr(e), n = y ? t : Bn(g, 0, t);
|
|
1888
1889
|
Math.abs(e.scrollTop - n) > 1 && (e.scrollTop = n);
|
|
1889
1890
|
}
|
|
1890
|
-
(v || h >= f - 1) && (
|
|
1891
|
+
(v || h >= f - 1) && (L.current = !0), _();
|
|
1891
1892
|
});
|
|
1892
|
-
Z.useImperativeHandle(
|
|
1893
|
+
Z.useImperativeHandle(y, () => V, [V]), s({
|
|
1893
1894
|
open: M,
|
|
1894
1895
|
ref: l,
|
|
1895
1896
|
onComplete() {
|
|
1896
1897
|
M && u?.(!0);
|
|
1897
1898
|
}
|
|
1898
1899
|
});
|
|
1899
|
-
let
|
|
1900
|
+
let oe = {
|
|
1900
1901
|
open: M,
|
|
1901
|
-
transitionStatus:
|
|
1902
|
+
transitionStatus: P,
|
|
1902
1903
|
side: S,
|
|
1903
1904
|
align: ee
|
|
1904
1905
|
};
|
|
1905
|
-
|
|
1906
|
-
!
|
|
1907
|
-
top:
|
|
1908
|
-
left:
|
|
1909
|
-
right:
|
|
1910
|
-
height:
|
|
1911
|
-
bottom:
|
|
1912
|
-
minHeight:
|
|
1913
|
-
maxHeight:
|
|
1914
|
-
marginTop:
|
|
1915
|
-
marginBottom:
|
|
1906
|
+
Y(() => {
|
|
1907
|
+
!I || !l.current || Object.keys(z.current).length || (z.current = {
|
|
1908
|
+
top: I.style.top || "0",
|
|
1909
|
+
left: I.style.left || "0",
|
|
1910
|
+
right: I.style.right,
|
|
1911
|
+
height: I.style.height,
|
|
1912
|
+
bottom: I.style.bottom,
|
|
1913
|
+
minHeight: I.style.minHeight,
|
|
1914
|
+
maxHeight: I.style.maxHeight,
|
|
1915
|
+
marginTop: I.style.marginTop,
|
|
1916
|
+
marginBottom: I.style.marginBottom
|
|
1916
1917
|
});
|
|
1917
|
-
}, [l,
|
|
1918
|
-
M || C || (
|
|
1918
|
+
}, [l, I]), Y(() => {
|
|
1919
|
+
M || C || (R.current = !1, L.current = !1, tr(I, z.current));
|
|
1919
1920
|
}, [
|
|
1920
1921
|
M,
|
|
1921
1922
|
C,
|
|
1922
|
-
|
|
1923
|
+
I,
|
|
1923
1924
|
l
|
|
1924
|
-
]),
|
|
1925
|
+
]), Y(() => {
|
|
1925
1926
|
let e = l.current;
|
|
1926
|
-
if (!M || !
|
|
1927
|
+
if (!M || !F || !I || !e || C && !w || c.state.transitionStatus === "ending") return;
|
|
1927
1928
|
if (!C) {
|
|
1928
|
-
|
|
1929
|
+
R.current = !0, B.request(_), e.style.removeProperty("--transform-origin");
|
|
1929
1930
|
return;
|
|
1930
1931
|
}
|
|
1931
1932
|
let t = vr(e);
|
|
1932
1933
|
e.style.removeProperty("--transform-origin");
|
|
1933
1934
|
try {
|
|
1934
1935
|
let t = h.current;
|
|
1935
|
-
t?.isConnected || (t = !$.hasSelectedValue(
|
|
1936
|
-
let n =
|
|
1936
|
+
t?.isConnected || (t = !$.hasSelectedValue(c.state) && m.current?.isConnected ? m.current : null);
|
|
1937
|
+
let n = p.current, r = Ge(I), i = r.getComputedStyle(I), a = r.getComputedStyle(e), o = W(F), s = mr(F), l = gr(F.getBoundingClientRect(), s), u = gr(I.getBoundingClientRect(), s), d = l.height, g = ae || e, v = g.scrollHeight, y = parseFloat(a.borderBottomWidth), S = parseFloat(i.marginTop) || 10, ee = parseFloat(i.marginBottom) || 10, C = parseFloat(i.minHeight) || 100, w = fr(a), E = o.documentElement.clientHeight - S - ee, te = o.documentElement.clientWidth, O = E - l.bottom + d, k, A = D === "rtl" ? l.right - u.width : l.left, j = 0;
|
|
1937
1938
|
if (t && n) {
|
|
1938
|
-
let e = gr(n.getBoundingClientRect(),
|
|
1939
|
-
k = gr(t.getBoundingClientRect(),
|
|
1939
|
+
let e = gr(n.getBoundingClientRect(), s);
|
|
1940
|
+
k = gr(t.getBoundingClientRect(), s), A = u.left + (D === "rtl" ? e.right - k.right : e.left - k.left);
|
|
1940
1941
|
let r = e.top - l.top + e.height / 2;
|
|
1941
1942
|
j = k.top - u.top + k.height / 2 - r;
|
|
1942
1943
|
}
|
|
1943
|
-
let M =
|
|
1944
|
-
|
|
1945
|
-
let
|
|
1946
|
-
|
|
1947
|
-
let V = l.top < 20 || l.bottom > E - 20 || Math.ceil(N) + 1 < Math.min(v, C),
|
|
1948
|
-
if (V ||
|
|
1949
|
-
|
|
1944
|
+
let M = O + j + ee + y, N = Math.min(E, M), ne = E - S - ee, re = M - N, ie = te - 5;
|
|
1945
|
+
I.style.left = `${Bn(A, 5, ie - u.width)}px`, I.style.height = `${N}px`, I.style.maxHeight = "none", I.style.marginTop = `${S}px`, I.style.marginBottom = `${ee}px`, e.style.height = "100%";
|
|
1946
|
+
let P = pr(g), B = re >= P - 1;
|
|
1947
|
+
B && (N = Math.min(E, u.height) - (re - P));
|
|
1948
|
+
let V = l.top < 20 || l.bottom > E - 20 || Math.ceil(N) + 1 < Math.min(v, C), oe = (r.visualViewport?.scale ?? 1) !== 1 && f;
|
|
1949
|
+
if (V || oe) {
|
|
1950
|
+
R.current = !0, tr(I, z.current), T(!1);
|
|
1950
1951
|
return;
|
|
1951
1952
|
}
|
|
1952
|
-
let
|
|
1953
|
-
if (
|
|
1953
|
+
let H = Math.max(C, N);
|
|
1954
|
+
if (B) {
|
|
1954
1955
|
let e = Math.max(0, E - M);
|
|
1955
|
-
|
|
1956
|
-
} else
|
|
1956
|
+
I.style.top = u.height >= ne ? "0" : `${e}px`, I.style.height = `${N}px`, g.scrollTop = pr(g);
|
|
1957
|
+
} else I.style.bottom = "0", g.scrollTop = re;
|
|
1957
1958
|
if (k) {
|
|
1958
1959
|
let t = u.top, n = u.height, r = k.top + k.height / 2, i = Bn(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
|
|
1959
1960
|
e.style.setProperty("--transform-origin", `50% ${i}%`);
|
|
1960
1961
|
}
|
|
1961
|
-
(
|
|
1962
|
+
(H === E || N >= w) && (L.current = !0), _(), x && c.state.selectedIndex === null && c.state.activeIndex === null && b.current[0] != null && c.set("activeIndex", 0), R.current = !0;
|
|
1962
1963
|
} finally {
|
|
1963
1964
|
t();
|
|
1964
1965
|
}
|
|
1965
1966
|
}, [
|
|
1966
|
-
|
|
1967
|
+
c,
|
|
1967
1968
|
M,
|
|
1969
|
+
I,
|
|
1968
1970
|
F,
|
|
1969
|
-
P,
|
|
1970
|
-
f,
|
|
1971
1971
|
p,
|
|
1972
|
+
m,
|
|
1972
1973
|
h,
|
|
1973
1974
|
l,
|
|
1974
1975
|
_,
|
|
1975
1976
|
C,
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
y,
|
|
1977
|
+
T,
|
|
1978
|
+
B,
|
|
1979
|
+
ae,
|
|
1980
1980
|
b,
|
|
1981
|
-
|
|
1981
|
+
x,
|
|
1982
|
+
D,
|
|
1982
1983
|
w
|
|
1983
1984
|
]), Z.useEffect(() => {
|
|
1984
|
-
if (!C || !
|
|
1985
|
-
let e =
|
|
1985
|
+
if (!C || !I || !M) return;
|
|
1986
|
+
let e = Ge(I);
|
|
1986
1987
|
function t(e) {
|
|
1987
|
-
d(!1,
|
|
1988
|
+
d(!1, v(G, e));
|
|
1988
1989
|
}
|
|
1989
|
-
return
|
|
1990
|
+
return de(e, "resize", t);
|
|
1990
1991
|
}, [
|
|
1991
1992
|
d,
|
|
1992
1993
|
C,
|
|
1993
|
-
|
|
1994
|
+
I,
|
|
1994
1995
|
M
|
|
1995
1996
|
]);
|
|
1996
|
-
let
|
|
1997
|
-
...
|
|
1997
|
+
let H = {
|
|
1998
|
+
...ae ? {
|
|
1998
1999
|
role: "presentation",
|
|
1999
2000
|
"aria-orientation": void 0
|
|
2000
2001
|
} : {
|
|
@@ -2006,29 +2007,29 @@ var ur = {
|
|
|
2006
2007
|
E && et.has(e.key) && e.stopPropagation();
|
|
2007
2008
|
},
|
|
2008
2009
|
onScroll(e) {
|
|
2009
|
-
|
|
2010
|
+
ae || V(e.currentTarget);
|
|
2010
2011
|
},
|
|
2011
|
-
...C && { style:
|
|
2012
|
-
},
|
|
2012
|
+
...C && { style: ae ? { height: "100%" } : nr }
|
|
2013
|
+
}, se = Be("div", e, {
|
|
2013
2014
|
ref: [t, l],
|
|
2014
|
-
state:
|
|
2015
|
+
state: oe,
|
|
2015
2016
|
stateAttributesMapping: ur,
|
|
2016
2017
|
props: [
|
|
2017
2018
|
ie,
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
{ className: !
|
|
2019
|
+
H,
|
|
2020
|
+
N(P),
|
|
2021
|
+
{ className: !ae && C ? or.className : void 0 },
|
|
2021
2022
|
o
|
|
2022
2023
|
]
|
|
2023
2024
|
});
|
|
2024
|
-
return /*#__PURE__*/ (0, Q.jsxs)(Z.Fragment, { children: [!A && or.getElement(
|
|
2025
|
-
context:
|
|
2025
|
+
return /*#__PURE__*/ (0, Q.jsxs)(Z.Fragment, { children: [!A && or.getElement(O), /*#__PURE__*/ (0, Q.jsx)(Nt, {
|
|
2026
|
+
context: te,
|
|
2026
2027
|
modal: !1,
|
|
2027
2028
|
disabled: !re,
|
|
2028
|
-
openInteractionType:
|
|
2029
|
+
openInteractionType: ne,
|
|
2029
2030
|
returnFocus: a,
|
|
2030
2031
|
restoreFocus: !0,
|
|
2031
|
-
children:
|
|
2032
|
+
children: se
|
|
2032
2033
|
})] });
|
|
2033
2034
|
});
|
|
2034
2035
|
process.env.NODE_ENV !== "production" && (dr.displayName = "SelectPopup");
|
|
@@ -2040,13 +2041,13 @@ function pr(e) {
|
|
|
2040
2041
|
return Vn(e.scrollHeight, e.clientHeight);
|
|
2041
2042
|
}
|
|
2042
2043
|
function mr(e) {
|
|
2043
|
-
return
|
|
2044
|
+
return c.getScale(e);
|
|
2044
2045
|
}
|
|
2045
2046
|
function hr(e, t, n) {
|
|
2046
2047
|
return e / n[t];
|
|
2047
2048
|
}
|
|
2048
2049
|
function gr(e, t) {
|
|
2049
|
-
return
|
|
2050
|
+
return fe({
|
|
2050
2051
|
x: hr(e.x, "x", t),
|
|
2051
2052
|
y: hr(e.y, "y", t),
|
|
2052
2053
|
width: hr(e.width, "x", t),
|
|
@@ -2074,7 +2075,7 @@ var yr = /*#__PURE__*/ Z.createContext(void 0);
|
|
|
2074
2075
|
process.env.NODE_ENV !== "production" && (yr.displayName = "SelectItemContext");
|
|
2075
2076
|
function br() {
|
|
2076
2077
|
let e = Z.useContext(yr);
|
|
2077
|
-
if (!e) throw Error(process.env.NODE_ENV === "production" ?
|
|
2078
|
+
if (!e) throw Error(process.env.NODE_ENV === "production" ? qe(57) : "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");
|
|
2078
2079
|
return e;
|
|
2079
2080
|
}
|
|
2080
2081
|
//#endregion
|
|
@@ -2084,110 +2085,110 @@ var xr = /*#__PURE__*/ Z.memo(/*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
|
2084
2085
|
label: o,
|
|
2085
2086
|
textRef: u,
|
|
2086
2087
|
indexGuessBehavior: it.GuessFromOrder
|
|
2087
|
-
}), { store: f, itemProps: p, setOpen: m, setValue:
|
|
2088
|
-
|
|
2089
|
-
if (!
|
|
2090
|
-
let e =
|
|
2088
|
+
}), { store: f, itemProps: p, setOpen: m, setValue: g, selectionRef: _, typingRef: y, valuesRef: b, multiple: x, selectedItemTextRef: S, disabled: ee, readOnly: C } = wn(), w = J(f, $.isActive, d.index), T = J(f, $.open), E = J(f, $.isSelected, a), te = J(f, $.isSelectedByFocus, d.index), D = J(f, $.isItemEqualToValue), O = d.index, k = O !== -1, A = Z.useRef(null);
|
|
2089
|
+
Y(() => {
|
|
2090
|
+
if (!k) return;
|
|
2091
|
+
let e = b.current;
|
|
2091
2092
|
return e[O] = a, () => {
|
|
2092
2093
|
delete e[O];
|
|
2093
2094
|
};
|
|
2094
2095
|
}, [
|
|
2095
|
-
|
|
2096
|
+
k,
|
|
2096
2097
|
O,
|
|
2097
2098
|
a,
|
|
2098
|
-
|
|
2099
|
-
]),
|
|
2100
|
-
if (!
|
|
2099
|
+
b
|
|
2100
|
+
]), Y(() => {
|
|
2101
|
+
if (!k) return;
|
|
2101
2102
|
let e = f.state.value, t = e;
|
|
2102
|
-
|
|
2103
|
+
x && Array.isArray(e) && (t = e.length > 0 ? e[e.length - 1] : void 0), t !== void 0 && On(a, t, D) && (f.set("selectedIndex", O), u.current && (S.current = u.current));
|
|
2103
2104
|
}, [
|
|
2104
|
-
|
|
2105
|
+
k,
|
|
2105
2106
|
O,
|
|
2106
|
-
|
|
2107
|
+
x,
|
|
2107
2108
|
D,
|
|
2108
2109
|
f,
|
|
2109
2110
|
a,
|
|
2110
2111
|
S
|
|
2111
2112
|
]);
|
|
2112
|
-
let j = Z.useRef(null), M = Z.useRef("mouse"), N = Z.useRef(!1), { getButtonProps:
|
|
2113
|
+
let j = Z.useRef(null), M = Z.useRef("mouse"), N = Z.useRef(!1), { getButtonProps: ne, buttonRef: re } = He({
|
|
2113
2114
|
disabled: s,
|
|
2114
2115
|
focusableWhenDisabled: !0,
|
|
2115
2116
|
native: c,
|
|
2116
2117
|
composite: !0
|
|
2117
|
-
}),
|
|
2118
|
+
}), ie = {
|
|
2118
2119
|
disabled: s,
|
|
2119
|
-
selected:
|
|
2120
|
+
selected: E,
|
|
2120
2121
|
highlighted: w
|
|
2121
2122
|
};
|
|
2122
|
-
function
|
|
2123
|
+
function P(e) {
|
|
2123
2124
|
if (ee || C) return;
|
|
2124
2125
|
let t = f.state.value;
|
|
2125
|
-
if (
|
|
2126
|
+
if (x) {
|
|
2126
2127
|
let n = Array.isArray(t) ? t : [];
|
|
2127
|
-
|
|
2128
|
-
} else
|
|
2128
|
+
g(E ? jn(n, a, D) : [...n, a], v(h, e));
|
|
2129
|
+
} else g(a, v(h, e)), m(!1, v(h, e));
|
|
2129
2130
|
}
|
|
2130
|
-
function
|
|
2131
|
-
|
|
2131
|
+
function F() {
|
|
2132
|
+
_.current.dragY = 0;
|
|
2132
2133
|
}
|
|
2133
|
-
let
|
|
2134
|
+
let I = {
|
|
2134
2135
|
role: "option",
|
|
2135
|
-
"aria-selected":
|
|
2136
|
-
tabIndex:
|
|
2136
|
+
"aria-selected": E,
|
|
2137
|
+
tabIndex: T && w ? 0 : -1,
|
|
2137
2138
|
onKeyDown(e) {
|
|
2138
|
-
j.current = e.key, f.set("activeIndex", O), e.key === " " &&
|
|
2139
|
+
j.current = e.key, f.set("activeIndex", O), e.key === " " && y.current && e.preventDefault();
|
|
2139
2140
|
},
|
|
2140
2141
|
onClick(e) {
|
|
2141
|
-
let t = e.type === "click" && M.current !== "touch", n = e.nativeEvent.pointerType, r = t &&
|
|
2142
|
-
N.current = !1, !(e.type === "keydown" && j.current === null) && (s || e.type === "keydown" && j.current === " " &&
|
|
2142
|
+
let t = e.type === "click" && M.current !== "touch", n = e.nativeEvent.pointerType, r = t && Oe(e.nativeEvent) && (n !== void 0 || w), i = t && !r && !N.current;
|
|
2143
|
+
N.current = !1, !(e.type === "keydown" && j.current === null) && (s || e.type === "keydown" && j.current === " " && y.current || i || (j.current = null, P(e.nativeEvent)));
|
|
2143
2144
|
},
|
|
2144
2145
|
onPointerEnter(e) {
|
|
2145
2146
|
M.current = e.pointerType;
|
|
2146
2147
|
},
|
|
2147
2148
|
onPointerMove(e) {
|
|
2148
2149
|
if (e.pointerType === "mouse" && e.buttons === 1) {
|
|
2149
|
-
let t =
|
|
2150
|
+
let t = _.current;
|
|
2150
2151
|
t.dragY += e.movementY, t.dragY ** 2 >= 64 && (t.allowUnselectedMouseUp = !0);
|
|
2151
2152
|
}
|
|
2152
2153
|
},
|
|
2153
2154
|
onPointerDown(e) {
|
|
2154
|
-
M.current = e.pointerType, N.current = !0,
|
|
2155
|
+
M.current = e.pointerType, N.current = !0, F();
|
|
2155
2156
|
},
|
|
2156
2157
|
onMouseUp() {
|
|
2157
|
-
if (
|
|
2158
|
-
let e = !
|
|
2158
|
+
if (F(), s || M.current === "touch" || N.current) return;
|
|
2159
|
+
let e = !_.current.allowSelectedMouseUp && E, t = !_.current.allowUnselectedMouseUp && !E;
|
|
2159
2160
|
e || t || (N.current = !0, A.current?.click(), N.current = !1);
|
|
2160
2161
|
}
|
|
2161
|
-
},
|
|
2162
|
+
}, ae = Be("div", e, {
|
|
2162
2163
|
ref: [
|
|
2163
|
-
|
|
2164
|
+
re,
|
|
2164
2165
|
t,
|
|
2165
2166
|
d.ref,
|
|
2166
2167
|
A
|
|
2167
2168
|
],
|
|
2168
|
-
state:
|
|
2169
|
+
state: ie,
|
|
2169
2170
|
props: [
|
|
2170
2171
|
p,
|
|
2171
|
-
|
|
2172
|
+
I,
|
|
2172
2173
|
l,
|
|
2173
|
-
|
|
2174
|
+
ne
|
|
2174
2175
|
]
|
|
2175
2176
|
}), L = Z.useMemo(() => ({
|
|
2176
|
-
selected:
|
|
2177
|
+
selected: E,
|
|
2177
2178
|
index: O,
|
|
2178
2179
|
textRef: u,
|
|
2179
|
-
selectedByFocus:
|
|
2180
|
-
hasRegistered:
|
|
2180
|
+
selectedByFocus: te,
|
|
2181
|
+
hasRegistered: k
|
|
2181
2182
|
}), [
|
|
2182
|
-
|
|
2183
|
+
E,
|
|
2183
2184
|
O,
|
|
2184
2185
|
u,
|
|
2185
|
-
|
|
2186
|
-
|
|
2186
|
+
te,
|
|
2187
|
+
k
|
|
2187
2188
|
]);
|
|
2188
2189
|
return /*#__PURE__*/ (0, Q.jsx)(yr.Provider, {
|
|
2189
2190
|
value: L,
|
|
2190
|
-
children:
|
|
2191
|
+
children: ae
|
|
2191
2192
|
});
|
|
2192
2193
|
}));
|
|
2193
2194
|
process.env.NODE_ENV !== "production" && (xr.displayName = "SelectItem");
|
|
@@ -2195,7 +2196,7 @@ process.env.NODE_ENV !== "production" && (xr.displayName = "SelectItem");
|
|
|
2195
2196
|
//#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/select/item-text/SelectItemText.mjs
|
|
2196
2197
|
var Sr = /*#__PURE__*/ Z.memo(/*#__PURE__*/ Z.forwardRef(function(e, t) {
|
|
2197
2198
|
let { index: n, textRef: r, selectedByFocus: i, hasRegistered: a } = br(), { firstItemTextRef: o, selectedItemTextRef: s } = wn(), { render: c, className: l, style: u, ...d } = e;
|
|
2198
|
-
return
|
|
2199
|
+
return Be("div", e, {
|
|
2199
2200
|
ref: [
|
|
2200
2201
|
Z.useCallback((e) => {
|
|
2201
2202
|
e && (a && n === 0 && (o.current = e), a && i && (s.current = e));
|
|
@@ -2259,7 +2260,7 @@ function Dr({ children: e, value: t, defaultValue: n, onValueChange: r, disabled
|
|
|
2259
2260
|
});
|
|
2260
2261
|
}
|
|
2261
2262
|
Dr.displayName = "Select";
|
|
2262
|
-
var Or =
|
|
2263
|
+
var Or = ze([
|
|
2263
2264
|
"group inline-flex items-center justify-between gap-2 outline-none cursor-pointer",
|
|
2264
2265
|
"text-[13px] h-9 px-3 min-w-[160px]",
|
|
2265
2266
|
"transition-all duration-80",
|
|
@@ -2272,13 +2273,13 @@ var Or = Ye([
|
|
|
2272
2273
|
} },
|
|
2273
2274
|
defaultVariants: { variant: "bordered" }
|
|
2274
2275
|
}), kr = (0, Z.forwardRef)(({ className: e, variant: t, icon: n, leading: r, placeholder: i = "Select…", error: a, ...o }, s) => {
|
|
2275
|
-
let c =
|
|
2276
|
+
let c = Pe();
|
|
2276
2277
|
return /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
2277
2278
|
className: "flex flex-col gap-1",
|
|
2278
2279
|
children: [/* @__PURE__ */ (0, Q.jsxs)(Jn, {
|
|
2279
2280
|
ref: s,
|
|
2280
2281
|
"aria-invalid": !!a || void 0,
|
|
2281
|
-
className:
|
|
2282
|
+
className: Re(Or({ variant: t }), c.input, a && "border-destructive/50 hover:border-destructive/50", e),
|
|
2282
2283
|
...o,
|
|
2283
2284
|
children: [/* @__PURE__ */ (0, Q.jsxs)("span", {
|
|
2284
2285
|
className: "flex items-center gap-2 min-w-0 flex-1",
|
|
@@ -2314,10 +2315,10 @@ var Or = Ye([
|
|
|
2314
2315
|
});
|
|
2315
2316
|
kr.displayName = "SelectTrigger";
|
|
2316
2317
|
var Ar = (0, Z.forwardRef)(({ className: e, children: t }, n) => {
|
|
2317
|
-
let { open: r, value: i, actionsRef: a } = wr(), o =
|
|
2318
|
+
let { open: r, value: i, actionsRef: a } = wr(), o = Pe(), s = (0, Z.useRef)(null), { activeIndex: c, setActiveIndex: l, itemRects: u, sessionRef: d, handlers: f, registerItem: p, measureItems: m } = mn(s), [h, g] = (0, Z.useState)(null), [_, v] = (0, Z.useState)(void 0);
|
|
2318
2319
|
(0, Z.useEffect)(() => {
|
|
2319
2320
|
if (r) return;
|
|
2320
|
-
let e = setTimeout(() => a.current?.unmount(),
|
|
2321
|
+
let e = setTimeout(() => a.current?.unmount(), me(Se.fast));
|
|
2321
2322
|
return () => clearTimeout(e);
|
|
2322
2323
|
}, [r, a]), (0, Z.useEffect)(() => {
|
|
2323
2324
|
if (!r) return;
|
|
@@ -2339,7 +2340,7 @@ var Ar = (0, Z.forwardRef)(({ className: e, children: t }, n) => {
|
|
|
2339
2340
|
m,
|
|
2340
2341
|
i
|
|
2341
2342
|
]);
|
|
2342
|
-
let
|
|
2343
|
+
let y = c === null ? null : u[c], b = _ == null ? null : u[_], x = h === null ? null : u[h], S = c !== null && c !== _, ee = (0, Z.useMemo)(() => ({
|
|
2343
2344
|
registerItem: p,
|
|
2344
2345
|
activeIndex: c,
|
|
2345
2346
|
checkedIndex: _
|
|
@@ -2354,7 +2355,7 @@ var Ar = (0, Z.forwardRef)(({ className: e, children: t }, n) => {
|
|
|
2354
2355
|
sideOffset: 6,
|
|
2355
2356
|
alignItemWithTrigger: !1,
|
|
2356
2357
|
className: "z-50 outline-none",
|
|
2357
|
-
children: /* @__PURE__ */ (0, Q.jsx)(
|
|
2358
|
+
children: /* @__PURE__ */ (0, Q.jsx)(z.div, {
|
|
2358
2359
|
initial: {
|
|
2359
2360
|
opacity: 0,
|
|
2360
2361
|
y: -4,
|
|
@@ -2369,13 +2370,13 @@ var Ar = (0, Z.forwardRef)(({ className: e, children: t }, n) => {
|
|
|
2369
2370
|
y: -4,
|
|
2370
2371
|
scaleY: .96
|
|
2371
2372
|
},
|
|
2372
|
-
transition: r ?
|
|
2373
|
+
transition: r ? Se.fast : Se.fast.exit,
|
|
2373
2374
|
style: { transformOrigin: "top center" },
|
|
2374
2375
|
onAnimationComplete: () => {
|
|
2375
2376
|
r || a.current?.unmount();
|
|
2376
2377
|
},
|
|
2377
2378
|
children: /* @__PURE__ */ (0, Q.jsx)(Tr.Provider, {
|
|
2378
|
-
value:
|
|
2379
|
+
value: ee,
|
|
2379
2380
|
children: /* @__PURE__ */ (0, Q.jsxs)(dr, {
|
|
2380
2381
|
render: /* @__PURE__ */ (0, Q.jsx)(xn, {
|
|
2381
2382
|
offset: 2,
|
|
@@ -2399,67 +2400,67 @@ var Ar = (0, Z.forwardRef)(({ className: e, children: t }, n) => {
|
|
|
2399
2400
|
onBlur: (e) => {
|
|
2400
2401
|
s.current?.contains(e.relatedTarget) || (g(null), l(null));
|
|
2401
2402
|
},
|
|
2402
|
-
className:
|
|
2403
|
+
className: Re(`relative flex flex-col gap-0.5 min-w-[var(--anchor-width)] max-h-[min(300px,var(--available-height))] overflow-y-auto ${o.container} p-1 select-none outline-none`, e),
|
|
2403
2404
|
children: [
|
|
2404
|
-
/* @__PURE__ */ (0, Q.jsx)(rt, { children:
|
|
2405
|
+
/* @__PURE__ */ (0, Q.jsx)(rt, { children: b && /* @__PURE__ */ (0, Q.jsx)(z.div, {
|
|
2405
2406
|
className: `absolute ${o.bg} bg-active pointer-events-none`,
|
|
2406
2407
|
initial: !1,
|
|
2407
2408
|
animate: {
|
|
2408
|
-
top:
|
|
2409
|
-
left:
|
|
2410
|
-
width:
|
|
2411
|
-
height:
|
|
2412
|
-
opacity:
|
|
2409
|
+
top: b.top,
|
|
2410
|
+
left: b.left,
|
|
2411
|
+
width: b.width,
|
|
2412
|
+
height: b.height,
|
|
2413
|
+
opacity: S ? .8 : 1
|
|
2413
2414
|
},
|
|
2414
2415
|
exit: {
|
|
2415
2416
|
opacity: 0,
|
|
2416
|
-
transition:
|
|
2417
|
+
transition: Se.moderate.exit
|
|
2417
2418
|
},
|
|
2418
2419
|
transition: {
|
|
2419
|
-
...
|
|
2420
|
+
...Se.moderate,
|
|
2420
2421
|
opacity: { duration: .08 }
|
|
2421
2422
|
}
|
|
2422
2423
|
}) }),
|
|
2423
|
-
/* @__PURE__ */ (0, Q.jsx)(rt, { children:
|
|
2424
|
+
/* @__PURE__ */ (0, Q.jsx)(rt, { children: y && /* @__PURE__ */ (0, Q.jsx)(z.div, {
|
|
2424
2425
|
className: `absolute ${o.bg} bg-hover pointer-events-none`,
|
|
2425
2426
|
initial: {
|
|
2426
2427
|
opacity: 0,
|
|
2427
|
-
top:
|
|
2428
|
-
left:
|
|
2429
|
-
width:
|
|
2430
|
-
height:
|
|
2428
|
+
top: b?.top ?? y.top,
|
|
2429
|
+
left: b?.left ?? y.left,
|
|
2430
|
+
width: b?.width ?? y.width,
|
|
2431
|
+
height: b?.height ?? y.height
|
|
2431
2432
|
},
|
|
2432
2433
|
animate: {
|
|
2433
2434
|
opacity: 1,
|
|
2434
|
-
top:
|
|
2435
|
-
left:
|
|
2436
|
-
width:
|
|
2437
|
-
height:
|
|
2435
|
+
top: y.top,
|
|
2436
|
+
left: y.left,
|
|
2437
|
+
width: y.width,
|
|
2438
|
+
height: y.height
|
|
2438
2439
|
},
|
|
2439
2440
|
exit: {
|
|
2440
2441
|
opacity: 0,
|
|
2441
|
-
transition:
|
|
2442
|
+
transition: Se.fast.exit
|
|
2442
2443
|
},
|
|
2443
2444
|
transition: {
|
|
2444
|
-
...
|
|
2445
|
+
...Se.fast,
|
|
2445
2446
|
opacity: { duration: .08 }
|
|
2446
2447
|
}
|
|
2447
2448
|
}, d.current) }),
|
|
2448
|
-
/* @__PURE__ */ (0, Q.jsx)(rt, { children:
|
|
2449
|
+
/* @__PURE__ */ (0, Q.jsx)(rt, { children: x && /* @__PURE__ */ (0, Q.jsx)(z.div, {
|
|
2449
2450
|
className: `absolute ${o.focusRing} pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]`,
|
|
2450
2451
|
initial: !1,
|
|
2451
2452
|
animate: {
|
|
2452
|
-
left:
|
|
2453
|
-
top:
|
|
2454
|
-
width:
|
|
2455
|
-
height:
|
|
2453
|
+
left: x.left - 2,
|
|
2454
|
+
top: x.top - 2,
|
|
2455
|
+
width: x.width + 4,
|
|
2456
|
+
height: x.height + 4
|
|
2456
2457
|
},
|
|
2457
2458
|
exit: {
|
|
2458
2459
|
opacity: 0,
|
|
2459
|
-
transition:
|
|
2460
|
+
transition: Se.fast.exit
|
|
2460
2461
|
},
|
|
2461
2462
|
transition: {
|
|
2462
|
-
...
|
|
2463
|
+
...Se.fast,
|
|
2463
2464
|
opacity: { duration: .08 }
|
|
2464
2465
|
}
|
|
2465
2466
|
}) }),
|
|
@@ -2472,7 +2473,7 @@ var Ar = (0, Z.forwardRef)(({ className: e, children: t }, n) => {
|
|
|
2472
2473
|
});
|
|
2473
2474
|
Ar.displayName = "SelectContent";
|
|
2474
2475
|
var jr = (0, Z.forwardRef)(({ className: e, children: t, icon: n, value: r, index: i, disabled: a = !1, ...o }, s) => {
|
|
2475
|
-
let c = wr(), l = (0, Z.useContext)(Tr), u = (0, Z.useRef)(null), d =
|
|
2476
|
+
let c = wr(), l = (0, Z.useContext)(Tr), u = (0, Z.useRef)(null), d = Pe(), f = (0, Z.useRef)(!1);
|
|
2476
2477
|
(0, Z.useEffect)(() => {
|
|
2477
2478
|
f.current = !0;
|
|
2478
2479
|
}, []), (0, Z.useEffect)(() => (l?.registerItem(i, u.current), () => l?.registerItem(i, null)), [i, l]);
|
|
@@ -2487,7 +2488,7 @@ var jr = (0, Z.forwardRef)(({ className: e, children: t, icon: n, value: r, inde
|
|
|
2487
2488
|
},
|
|
2488
2489
|
"data-proximity-index": i,
|
|
2489
2490
|
"data-value": r,
|
|
2490
|
-
className:
|
|
2491
|
+
className: Re(`relative z-10 flex h-9 items-center gap-2 ${d.item} px-2 text-[13px] cursor-pointer outline-none select-none`, "transition-[color] duration-80", p || m ? "text-foreground" : "text-muted-foreground", a && "opacity-50 pointer-events-none", e),
|
|
2491
2492
|
...o
|
|
2492
2493
|
}),
|
|
2493
2494
|
children: [
|
|
@@ -2500,7 +2501,7 @@ var jr = (0, Z.forwardRef)(({ className: e, children: t, icon: n, value: r, inde
|
|
|
2500
2501
|
render: /* @__PURE__ */ (0, Q.jsx)("span", { className: "flex-1 min-w-0 truncate [text-box:trim-both_cap_alphabetic] py-1 -my-1" }),
|
|
2501
2502
|
children: t
|
|
2502
2503
|
}),
|
|
2503
|
-
/* @__PURE__ */ (0, Q.jsx)(rt, { children: m && /* @__PURE__ */ (0, Q.jsx)(
|
|
2504
|
+
/* @__PURE__ */ (0, Q.jsx)(rt, { children: m && /* @__PURE__ */ (0, Q.jsx)(z.svg, {
|
|
2504
2505
|
width: 16,
|
|
2505
2506
|
height: 16,
|
|
2506
2507
|
viewBox: "0 0 24 24",
|
|
@@ -2513,7 +2514,7 @@ var jr = (0, Z.forwardRef)(({ className: e, children: t, icon: n, value: r, inde
|
|
|
2513
2514
|
initial: { opacity: 1 },
|
|
2514
2515
|
animate: { opacity: 1 },
|
|
2515
2516
|
exit: { opacity: 1 },
|
|
2516
|
-
children: /* @__PURE__ */ (0, Q.jsx)(
|
|
2517
|
+
children: /* @__PURE__ */ (0, Q.jsx)(z.path, {
|
|
2517
2518
|
d: "M4 12L9 17L20 6",
|
|
2518
2519
|
initial: { pathLength: +!!h },
|
|
2519
2520
|
animate: {
|
|
@@ -2547,14 +2548,14 @@ function Mr({ children: e, className: t, ...n }) {
|
|
|
2547
2548
|
Mr.displayName = "SelectGroup";
|
|
2548
2549
|
var Nr = (0, Z.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
2549
2550
|
ref: n,
|
|
2550
|
-
className:
|
|
2551
|
+
className: Re("px-2 py-1.5 text-[11px] text-muted-foreground", e),
|
|
2551
2552
|
...t
|
|
2552
2553
|
}));
|
|
2553
2554
|
Nr.displayName = "SelectLabel";
|
|
2554
2555
|
var Pr = (0, Z.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
2555
2556
|
ref: n,
|
|
2556
2557
|
role: "separator",
|
|
2557
|
-
className:
|
|
2558
|
+
className: Re("my-1 -mx-1 h-px bg-border/60", e),
|
|
2558
2559
|
...t
|
|
2559
2560
|
}));
|
|
2560
2561
|
Pr.displayName = "SelectSeparator";
|