@arcadeai/design-system 3.45.1 → 3.45.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DialogRoot-7HAboV4G.js → DialogRoot-D-_zaCC2.js} +1 -1
- package/dist/{DialogTrigger-BTPMu18a.js → DialogTrigger-BkQyc4gV.js} +3 -3
- package/dist/{FloatingPortalLite-uSCCGrVj.js → FloatingPortalLite-NI2VH-ZL.js} +1 -1
- package/dist/{ToolbarRootContext-BCFQEGJJ.js → ToolbarRootContext-xiYteIYN.js} +1 -1
- package/dist/{alert-dialog-C_Vt5qVj.js → alert-dialog-1T197KWl.js} +1 -1
- package/dist/{angular-html-CCvzJfQt.js → angular-html-D85fwMJh.js} +2 -2
- package/dist/{angular-html-DKFaBpuE.js → angular-html-D_RiD7M7.js} +2 -2
- package/dist/{angular-ts-DJElN9UQ.js → angular-ts-C3bnauCX.js} +2 -2
- package/dist/{angular-ts-BHLU9KRK.js → angular-ts-CjG-oO10.js} +2 -2
- package/dist/{apl-NjK7jFNJ.js → apl-92oxg4m4.js} +5 -5
- package/dist/{astro-bMBIA5W9.js → astro-BmZ7vV4W.js} +5 -5
- package/dist/{astro-D3wSNNcH.js → astro-Bxx43WjB.js} +4 -4
- package/dist/{blade-BiuHKr_S.js → blade-Ca0hUm9r.js} +6 -6
- package/dist/{blade-DRXVXpDl.js → blade-CsxOO3tZ.js} +7 -7
- package/dist/{c-CENSAUdD.js → c-CoKjrVSd.js} +1 -1
- package/dist/{c-tDGT7jEj.js → c-DF_jgqPC.js} +1 -1
- package/dist/{calendar-D6NEdfPP.js → calendar-BSBAthxy.js} +1 -1
- package/dist/{chunk-CWhphoD1.js → chunk-Dqa2HsxW.js} +2 -5
- package/dist/{cobol-CtDWjgdF.js → cobol-DW9I8MrZ.js} +2 -2
- package/dist/{coffee-C32NBpdX.js → coffee-Cci8qppL.js} +1 -1
- package/dist/{coffee-CEpG5t5A.js → coffee-IcWixSuh.js} +1 -1
- package/dist/components/index.js +10 -10
- package/dist/components/ui/atoms/alert-dialog.js +1 -1
- package/dist/components/ui/atoms/calendar.js +1 -1
- package/dist/components/ui/atoms/code-block.js +1 -1
- package/dist/components/ui/atoms/dialog.js +2 -2
- package/dist/components/ui/atoms/dropdown-menu.js +1 -1
- package/dist/components/ui/atoms/form.d.ts +1 -1
- package/dist/components/ui/atoms/form.d.ts.map +1 -1
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/index.js +9 -9
- package/dist/components/ui/atoms/markdown.js +1 -1
- package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/scroll-button.js +1 -1
- package/dist/components/ui/atoms/select.js +1 -1
- package/dist/components/ui/atoms/sheet.js +2 -2
- package/dist/components/ui/atoms/sidebar.js +1 -1
- package/dist/components/ui/atoms/slider.js +1 -1
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/index.js +10 -10
- package/dist/components/ui/molecules/chat-history-item.js +1 -1
- package/dist/components/ui/molecules/command-bar.js +1 -1
- package/dist/components/ui/molecules/confirm-popover.js +1 -1
- package/dist/components/ui/molecules/date-time-picker.js +2 -2
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/message.js +2 -2
- package/dist/components/ui/molecules/prompt-input.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/steps-progress.d.ts.map +1 -1
- package/dist/components/ui/molecules/steps-progress.js +64 -88
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/user-nav.js +1 -1
- package/dist/{cpp-B0ApZrc9.js → cpp-BLc8IWxi.js} +4 -4
- package/dist/{cpp-Cz7x0sgj.js → cpp-W6KpbKKR.js} +3 -3
- package/dist/{crystal-Dp3_Rm_0.js → crystal-Bpo57dB-.js} +6 -6
- package/dist/{css-C0Wqv74W.js → css-Bg-v_ie3.js} +1 -1
- package/dist/{css-A5dPh-hw.js → css-DSy_xl5Z.js} +1 -1
- package/dist/{dropdown-menu-CwVAL83J.js → dropdown-menu-D982ge7V.js} +9 -9
- package/dist/{edge-DB-nxOg9.js → edge-Crbn4Nhk.js} +3 -3
- package/dist/{elixir-Bh05715y.js → elixir-CIj8u1AY.js} +1 -1
- package/dist/{elm-DhZqiJ0D.js → elm-CfYD1d_e.js} +1 -1
- package/dist/{erb-BAiiKgzO.js → erb-BJQo6_56.js} +2 -2
- package/dist/{getPseudoElementBounds-BIFEJg_E.js → getPseudoElementBounds-Cvds_dA3.js} +4 -4
- package/dist/{git-rebase-B-Y-hwdW.js → git-rebase-DVA6p9-5.js} +1 -1
- package/dist/{glimmer-js-DFMKp7MA.js → glimmer-js-DVJpm-CV.js} +4 -4
- package/dist/{glimmer-ts-BB_orehZ.js → glimmer-ts-kH8c2RJ9.js} +4 -4
- package/dist/{glsl-CdkYDqWc.js → glsl-BNc4P8Sc.js} +2 -2
- package/dist/{glsl-BMUVAYSF.js → glsl-Ckye8FrQ.js} +2 -2
- package/dist/{graphql-DVZ4Am5r.js → graphql-DEzE15R4.js} +5 -5
- package/dist/{graphql-BO7oc1vW.js → graphql-qf7evLPy.js} +4 -4
- package/dist/{hack-CtGoaz4-.js → hack-o7fvIqt8.js} +2 -2
- package/dist/{haml-DZGfKrgp.js → haml-C5GSorf3.js} +3 -3
- package/dist/{haml-DH7v2a1T.js → haml-Du2hspvc.js} +2 -2
- package/dist/{handlebars-C0ZsvHDH.js → handlebars-Bhpj_d0s.js} +4 -4
- package/dist/{handlebars-DULd3ZmC.js → handlebars-CQBI8FtD.js} +3 -3
- package/dist/{highlighted-body-OFNGDK62-BCIc09Ns.js → highlighted-body-OFNGDK62-DAGt7hUz.js} +1 -1
- package/dist/{hover-card-Bavb-slQ.js → hover-card-CO4afheH.js} +6 -6
- package/dist/{html-D4MIdpEU.js → html-D4w9Dm28.js} +3 -3
- package/dist/{html-derivative-Bz-6tuZ9.js → html-derivative-Bj-VxhMx.js} +1 -1
- package/dist/{html-derivative-DtJ1tdb9.js → html-derivative-CnXJYJW5.js} +1 -1
- package/dist/{html-CisyjiEv.js → html-v74m6eMZ.js} +3 -3
- package/dist/{http--CKuHaq6.js → http-Dp7myANe.js} +2 -2
- package/dist/{http-CX-tkfXJ.js → http-d-m0Mc7D.js} +4 -4
- package/dist/{hurl-BKTZkNJM.js → hurl-Bv2eBC_s.js} +2 -2
- package/dist/{hurl-CNgmevsW.js → hurl-DfTnDfTu.js} +2 -2
- package/dist/{java-nyWqLPcA.js → java-BKNJluE5.js} +1 -1
- package/dist/{java-BhtYksJu.js → java-OqMEerJ5.js} +1 -1
- package/dist/{javascript-B7hw7btH.js → javascript-D9OkSFEX.js} +1 -1
- package/dist/{javascript-8AY484FX.js → javascript-Da2xmRTV.js} +1 -1
- package/dist/{jinja-ILVKjN-h.js → jinja-DhkDj1Xi.js} +1 -1
- package/dist/{jinja-Cs8KQ05J.js → jinja-cMw3yszm.js} +1 -1
- package/dist/{jison-DeeC1Fpp.js → jison-CLtgki7v.js} +1 -1
- package/dist/{jison-L3KbL1Tm.js → jison-CShmv6Fb.js} +1 -1
- package/dist/{json-CFrUf_15.js → json-Df3TJ3vS.js} +1 -1
- package/dist/{jsx-C19pZCax.js → jsx-D0xGKDLn.js} +1 -1
- package/dist/{jsx-zfLWOWap.js → jsx-DSWrLxXO.js} +1 -1
- package/dist/{julia-BkeV_GAI.js → julia-BN-I8ZOK.js} +4 -4
- package/dist/{julia-cM9QIxaq.js → julia-BVtC6WAU.js} +3 -3
- package/dist/{just-CmaOAIrC.js → just-YBnaWXEe.js} +5 -5
- package/dist/{latex-CCJD2YW0.js → latex-C_OKc6Tr.js} +1 -1
- package/dist/{lib-B5caseGF.js → lib-pq2S0_yx.js} +3 -3
- package/dist/{liquid-BbxzyJM4.js → liquid-BK9PRBL0.js} +4 -4
- package/dist/{lua-Q8A6kKKb.js → lua-BLio8ECy.js} +2 -2
- package/dist/main.js +10 -10
- package/dist/{markdown-Skk5B2-K.js → markdown-C7WrG0wr.js} +78 -78
- package/dist/{marko-Cyw_40EQ.js → marko-Dwdxo91p.js} +3 -3
- package/dist/{marko-DcT3V8D5.js → marko-Fde_uU3F.js} +3 -3
- package/dist/{mdc-Kc_DncTv.js → mdc-BquaIcR3.js} +1 -1
- package/dist/{mdc-Bjifxtws.js → mdc-wawAspAJ.js} +2 -2
- package/dist/mermaid-GHXKKRXX-CpSctOnJ.js +3 -0
- package/dist/{nginx-2GbmfKNT.js → nginx-WcmIS9lz.js} +1 -1
- package/dist/{nim-Cvtoi7Us.js → nim-C_JBe3PW.js} +6 -6
- package/dist/{perl-CX-MiiDr.js → perl-DxzDgnFP.js} +5 -5
- package/dist/{php-iBJfpCPp.js → php-BeqSo3UK.js} +5 -5
- package/dist/{php-ZG4n9rUZ.js → php-BslXz14x.js} +6 -6
- package/dist/{popover-BnkWhaIi.js → popover-BGixi_lH.js} +7 -7
- package/dist/{popupStateMapping-BpjNa9Vs.js → popupStateMapping-B4Kue1zT.js} +370 -370
- package/dist/{pug-2I-RXpNR.js → pug-gvU6XHJO.js} +3 -3
- package/dist/{pug-Caizs4rF.js → pug-yS-UC2lD.js} +3 -3
- package/dist/{qml-BoCV4IvZ.js → qml-tenACNq4.js} +1 -1
- package/dist/{r-B5x6J8zw.js → r-DdU4yNZO.js} +1 -1
- package/dist/{razor-D3fp603X.js → razor-D5yYWriQ.js} +1 -1
- package/dist/{regexp-CmEgFPF7.js → regexp-BdO-BAkn.js} +1 -1
- package/dist/{regexp-DuxmzSB9.js → regexp-Dnzoo8L8.js} +1 -1
- package/dist/{rst-gpj3N0N_.js → rst-C-dkSMvp.js} +6 -6
- package/dist/{ruby-CmU0Z5fo.js → ruby-7kZgYYwi.js} +12 -12
- package/dist/{safePolygon-DkNjWjVX.js → safePolygon-B_GG47La.js} +2 -2
- package/dist/{sas-CC2Zc1Ed.js → sas-DtHo0e4p.js} +1 -1
- package/dist/{scss-B9O2M_0v.js → scss-86jh_zRg.js} +2 -2
- package/dist/{scss-CVKxdJLF.js → scss-bso_k44A.js} +2 -2
- package/dist/{select-CYFtC5dg.js → select-C-K7y0TX.js} +6 -6
- package/dist/{shellscript-C0LzMqgl.js → shellscript-BWxNrzSf.js} +1 -1
- package/dist/{shellsession-CF6VlYGY.js → shellsession-IETTXW5g.js} +1 -1
- package/dist/shim-D8dJbeBy.js +136 -0
- package/dist/{slider-DbzYORRs.js → slider-DaizWHo6.js} +4 -4
- package/dist/{soy-Bb3A5g7-.js → soy-33Xu8yiH.js} +1 -1
- package/dist/{sql-D5BZidSb.js → sql-B432xaB7.js} +1 -1
- package/dist/{sql-BKgzmiHp.js → sql-CpwNEwBO.js} +1 -1
- package/dist/{stata-B_L0aoJ1.js → stata-B5wF29_Y.js} +1 -1
- package/dist/{store-C2-4zmvj.js → store-B7JRjrkL.js} +1 -1
- package/dist/{surrealql-C0xAC_g5.js → surrealql-DYHeSEsk.js} +1 -1
- package/dist/{svelte-BaimehAA.js → svelte-oVhfAiMg.js} +3 -3
- package/dist/{svelte-FpnNQhYw.js → svelte-wsTs0hbr.js} +3 -3
- package/dist/{templ-Bag4mmVn.js → templ-DEwqY_Qt.js} +2 -2
- package/dist/{tex-DZgMegoC.js → tex-Bi7DoImG.js} +1 -1
- package/dist/{tooltip-BgYvlcwv.js → tooltip-CvZSk0iE.js} +6 -6
- package/dist/{ts-tags-C1lJngtr.js → ts-tags-D1P1fdht.js} +7 -7
- package/dist/{ts-tags-C3uBfS_j.js → ts-tags-DOmIyh9G.js} +7 -7
- package/dist/{tsx-BPoqShTM.js → tsx-B2e39lJI.js} +1 -1
- package/dist/{tsx-C-FNQM0T.js → tsx-oo1y-gXD.js} +1 -1
- package/dist/{twig-Rt8_5-_I.js → twig-DxRYLs_L.js} +5 -5
- package/dist/{typescript-B7wdlXbF.js → typescript-CWrXW5hv.js} +1 -1
- package/dist/{typescript-CroVN6-N.js → typescript-DoUOZlpP.js} +1 -1
- package/dist/{ui-DouvHx5k.js → ui-CPih1UEb.js} +1 -1
- package/dist/{useFocus-DZgGGAxw.js → useFocus-rejqe-zL.js} +5 -5
- package/dist/{useOpenInteractionType-CLGXwYtJ.js → useOpenInteractionType-CHrSydUp.js} +7 -7
- package/dist/{usePositioner-ku7JYvKU.js → usePositioner-s_qc8xb0.js} +1 -1
- package/dist/{useTriggerFocusGuards-DMglXkIl.js → useTriggerFocusGuards-BVVVsJu-.js} +1 -1
- package/dist/{vue-WV6e076M.js → vue-BEPn_TF_.js} +6 -6
- package/dist/{vue-BoIwcTNU.js → vue-NHWyIGu4.js} +5 -5
- package/dist/{vue-html-CF2Ge3FO.js → vue-html-CEiB3REn.js} +1 -1
- package/dist/{vue-html-DVl87uhv.js → vue-html-Cc4hXUE2.js} +1 -1
- package/dist/{vue-vine-o73v-MMj.js → vue-vine-D6cSZo1M.js} +3 -3
- package/dist/{vue-vine-tcPYViWT.js → vue-vine-DHhx8dYx.js} +3 -3
- package/dist/{web-BMVVZSj5.js → web-3DnwVIkW.js} +39 -39
- package/dist/{xml-C19nPMGd.js → xml-DRTU1nx4.js} +2 -2
- package/dist/{xml-Bww5eBn6.js → xml-DmGhA_Po.js} +2 -2
- package/dist/{xsl-CU-qdMyh.js → xsl-3eu75y43.js} +1 -1
- package/dist/{yaml-BQn8oezX.js → yaml-6pzV2NiB.js} +1 -1
- package/package.json +2 -2
- package/dist/mermaid-GHXKKRXX-Byt4Eksi.js +0 -3
- package/dist/shim-CsAgVHE8.js +0 -133
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t
|
|
4
|
-
import { c as
|
|
5
|
-
import { t as
|
|
6
|
-
import { S as
|
|
7
|
-
import { n as
|
|
8
|
-
import { i as
|
|
9
|
-
import { a as
|
|
10
|
-
import { a as
|
|
11
|
-
import { a as
|
|
12
|
-
import { n as
|
|
13
|
-
import {
|
|
14
|
-
import { r as
|
|
15
|
-
import { c as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { n as
|
|
19
|
-
import { t as
|
|
20
|
-
import * as
|
|
21
|
-
import { jsx as
|
|
22
|
-
import * as
|
|
2
|
+
import { t as e } from "./chunk-Dqa2HsxW.js";
|
|
3
|
+
import { t } from "./useIsoLayoutEffect-CKOv1bV_.js";
|
|
4
|
+
import { c as n, f as r, o as i, s as a, t as o, u as s } from "./useRenderElement-Cdy6ZfU9.js";
|
|
5
|
+
import { t as c } from "./useStableCallback-DzEDGauc.js";
|
|
6
|
+
import { S as l, _ as u, s as d, t as f } from "./createBaseUIEventDetails-JTJtk1s7.js";
|
|
7
|
+
import { n as p } from "./useBaseUiId-BFABznPV.js";
|
|
8
|
+
import { i as m, o as h, t as g } from "./useOpenChangeComplete-D1WLBqEV.js";
|
|
9
|
+
import { a as _, c as v, d as y, f as b, g as x, m as S, p as ee, t as te, y as ne } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
10
|
+
import { a as C } from "./detectBrowser-FBYSu3xM.js";
|
|
11
|
+
import { a as re } from "./constants-3RAo_0fn.js";
|
|
12
|
+
import { n as w, r as ie, t as T } from "./shadowDom-CDCExTGf.js";
|
|
13
|
+
import { i as ae, n as oe, o as se, t as E } from "./shim-D8dJbeBy.js";
|
|
14
|
+
import { r as D, t as O } from "./event-DRs_Ywjy.js";
|
|
15
|
+
import { c as ce } from "./composite-CmdWYKT-.js";
|
|
16
|
+
import { t as k } from "./owner-BrzQrszh.js";
|
|
17
|
+
import { t as A } from "./addEventListener-B4Gs94GY.js";
|
|
18
|
+
import { n as le, t as ue } from "./useTimeout-BeaGP7up.js";
|
|
19
|
+
import { t as j } from "./visuallyHidden-CEAV1xeA.js";
|
|
20
|
+
import * as M from "react";
|
|
21
|
+
import { jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
22
|
+
import * as F from "react-dom";
|
|
23
23
|
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes.js
|
|
24
|
-
function
|
|
25
|
-
return e.filter((e) => e.parentId === t).flatMap((t) => [...!n || t.context?.open ? [t] : [], ...
|
|
24
|
+
function de(e, t, n = !0) {
|
|
25
|
+
return e.filter((e) => e.parentId === t).flatMap((t) => [...!n || t.context?.open ? [t] : [], ...de(e, t.id, n)]);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function I(e, t) {
|
|
28
28
|
let n = [], r = e.find((e) => e.id === t)?.parentId;
|
|
29
29
|
for (; r;) {
|
|
30
30
|
let t = e.find((e) => e.id === r);
|
|
@@ -34,141 +34,141 @@ function F(e, t) {
|
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable.js
|
|
37
|
-
var
|
|
38
|
-
function
|
|
37
|
+
var L = "a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]";
|
|
38
|
+
function R(e) {
|
|
39
39
|
let t = e.assignedSlot;
|
|
40
40
|
if (t) return t;
|
|
41
41
|
if (e.parentElement) return e.parentElement;
|
|
42
42
|
let n = e.getRootNode();
|
|
43
|
-
return
|
|
43
|
+
return x(n) ? n.host : null;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
for (let t of Array.from(e.children)) if (
|
|
45
|
+
function z(e) {
|
|
46
|
+
for (let t of Array.from(e.children)) if (_(t) === "summary") return t;
|
|
47
47
|
return null;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let n =
|
|
51
|
-
return !!n && (e === n ||
|
|
52
|
-
}
|
|
53
|
-
function B(e) {
|
|
54
|
-
let t = e ? v(e) : "";
|
|
55
|
-
return e != null && e.matches(I) && (t !== "summary" || e.parentElement != null && v(e.parentElement) === "details" && R(e.parentElement) === e) && (t !== "details" || R(e) == null) && (t !== "input" || e.type !== "hidden");
|
|
49
|
+
function B(e, t) {
|
|
50
|
+
let n = z(t);
|
|
51
|
+
return !!n && (e === n || w(n, e));
|
|
56
52
|
}
|
|
57
53
|
function V(e) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
let t = e ? _(e) : "";
|
|
55
|
+
return e != null && e.matches(L) && (t !== "summary" || e.parentElement != null && _(e.parentElement) === "details" && z(e.parentElement) === e) && (t !== "details" || z(e) == null) && (t !== "input" || e.type !== "hidden");
|
|
56
|
+
}
|
|
57
|
+
function H(e) {
|
|
58
|
+
if (!V(e) || !e.isConnected || e.matches(":disabled")) return !1;
|
|
59
|
+
for (let t = e; t; t = R(t)) {
|
|
60
|
+
let n = t !== e, r = _(t) === "slot";
|
|
61
|
+
if (t.hasAttribute("inert") || n && _(t) === "details" && !t.open && !B(e, t) || t.hasAttribute("hidden") || !r && !U(t, n)) return !1;
|
|
62
62
|
}
|
|
63
63
|
return !0;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
let n =
|
|
67
|
-
return t ? n.display !== "none" :
|
|
65
|
+
function U(e, t) {
|
|
66
|
+
let n = te(e);
|
|
67
|
+
return t ? n.display !== "none" : ce(e, n);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function W(e) {
|
|
70
70
|
let t = e.tabIndex;
|
|
71
71
|
if (t < 0) {
|
|
72
|
-
let t =
|
|
72
|
+
let t = _(e);
|
|
73
73
|
if (t === "details" || t === "audio" || t === "video" || b(e) && e.isContentEditable) return 0;
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
if (
|
|
77
|
+
function G(e) {
|
|
78
|
+
if (_(e) !== "input") return null;
|
|
79
79
|
let t = e;
|
|
80
80
|
return t.type === "radio" && t.name !== "" ? t : null;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
let n =
|
|
82
|
+
function K(e, t) {
|
|
83
|
+
let n = G(e);
|
|
84
84
|
if (!n) return !0;
|
|
85
85
|
let r = t.find((e) => {
|
|
86
|
-
let t =
|
|
86
|
+
let t = G(e);
|
|
87
87
|
return t?.name === n.name && t.form === n.form && t.checked;
|
|
88
88
|
});
|
|
89
89
|
return r ? r === n : t.find((e) => {
|
|
90
|
-
let t =
|
|
90
|
+
let t = G(e);
|
|
91
91
|
return t?.name === n.name && t.form === n.form;
|
|
92
92
|
}) === n;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
if (b(e) &&
|
|
94
|
+
function q(e) {
|
|
95
|
+
if (b(e) && _(e) === "slot") {
|
|
96
96
|
let t = e.assignedElements({ flatten: !0 });
|
|
97
97
|
if (t.length > 0) return t;
|
|
98
98
|
}
|
|
99
99
|
return b(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
function J(e, t) {
|
|
102
|
+
q(e).forEach((e) => {
|
|
103
|
+
V(e) && t.push(e), J(e, t);
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
108
|
-
b(e) && e.matches(t) && n.push(e),
|
|
106
|
+
function Y(e, t, n) {
|
|
107
|
+
q(e).forEach((e) => {
|
|
108
|
+
b(e) && e.matches(t) && n.push(e), Y(e, t, n);
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function fe(e) {
|
|
112
|
+
return H(e) && W(e) >= 0;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function pe(e) {
|
|
115
115
|
let t = [];
|
|
116
|
-
return
|
|
116
|
+
return J(e, t), t.filter(H);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
let t =
|
|
120
|
-
return t.filter((e) =>
|
|
118
|
+
function X(e) {
|
|
119
|
+
let t = pe(e);
|
|
120
|
+
return t.filter((e) => W(e) >= 0 && K(e, t));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
let n =
|
|
122
|
+
function me(e, t) {
|
|
123
|
+
let n = X(e), r = n.length;
|
|
124
124
|
if (r === 0) return;
|
|
125
|
-
let i =
|
|
125
|
+
let i = T(k(e)), a = n.indexOf(i);
|
|
126
126
|
return n[a === -1 ? t === 1 ? 0 : r - 1 : a + t];
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
128
|
+
function he(e) {
|
|
129
|
+
return me(k(e).body, 1) || e;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
131
|
+
function ge(e) {
|
|
132
|
+
return me(k(e).body, -1) || e;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function _e(e, t) {
|
|
135
135
|
if (!e) return null;
|
|
136
|
-
let n =
|
|
136
|
+
let n = X(k(e).body), r = n.length;
|
|
137
137
|
if (r === 0) return null;
|
|
138
138
|
let i = n.indexOf(e);
|
|
139
139
|
return i === -1 ? null : n[(i + t + r) % r];
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
return
|
|
141
|
+
function ve(e) {
|
|
142
|
+
return _e(e, 1);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
144
|
+
function ye(e) {
|
|
145
|
+
return _e(e, -1);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Z(e, t) {
|
|
148
148
|
let n = t || e.currentTarget, r = e.relatedTarget;
|
|
149
|
-
return !r || !
|
|
149
|
+
return !r || !w(n, r);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
151
|
+
function be(e) {
|
|
152
|
+
X(e).forEach((e) => {
|
|
153
153
|
e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function xe(e) {
|
|
157
157
|
let t = [];
|
|
158
|
-
|
|
158
|
+
Y(e, "[data-tabindex]", t), t.forEach((e) => {
|
|
159
159
|
let t = e.dataset.tabindex;
|
|
160
160
|
delete e.dataset.tabindex, t ? e.setAttribute("tabindex", t) : e.removeAttribute("tabindex");
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/useOnFirstRender.js
|
|
165
|
-
function
|
|
166
|
-
let t =
|
|
165
|
+
function Se(e) {
|
|
166
|
+
let t = M.useRef(!0);
|
|
167
167
|
t.current && (t.current = !1, e());
|
|
168
168
|
}
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/mergeCleanups.js
|
|
171
|
-
function
|
|
171
|
+
function Q(...e) {
|
|
172
172
|
return () => {
|
|
173
173
|
for (let t = 0; t < e.length; t += 1) {
|
|
174
174
|
let n = e[t];
|
|
@@ -178,25 +178,25 @@ function Z(...e) {
|
|
|
178
178
|
}
|
|
179
179
|
//#endregion
|
|
180
180
|
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/utils/FocusGuard.js
|
|
181
|
-
var
|
|
182
|
-
let [r, i] =
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
var Ce = /*#__PURE__*/ M.forwardRef(function(e, n) {
|
|
182
|
+
let [r, i] = M.useState();
|
|
183
|
+
t(() => {
|
|
184
|
+
C && i("button");
|
|
185
185
|
}, []);
|
|
186
186
|
let a = {
|
|
187
187
|
tabIndex: 0,
|
|
188
188
|
role: r
|
|
189
189
|
};
|
|
190
|
-
return /*#__PURE__*/
|
|
190
|
+
return /*#__PURE__*/ N("span", {
|
|
191
191
|
...e,
|
|
192
|
-
ref:
|
|
193
|
-
style:
|
|
192
|
+
ref: n,
|
|
193
|
+
style: j,
|
|
194
194
|
"aria-hidden": r ? void 0 : !0,
|
|
195
195
|
...a,
|
|
196
196
|
"data-base-ui-focus-guard": ""
|
|
197
197
|
});
|
|
198
198
|
});
|
|
199
|
-
process.env.NODE_ENV !== "production" && (
|
|
199
|
+
process.env.NODE_ENV !== "production" && (Ce.displayName = "FocusGuard");
|
|
200
200
|
//#endregion
|
|
201
201
|
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.js
|
|
202
202
|
function we(e) {
|
|
@@ -209,20 +209,20 @@ var Te = { style: { transition: "none" } }, Ee = "data-base-ui-click-trigger", D
|
|
|
209
209
|
position: "fixed",
|
|
210
210
|
top: 0,
|
|
211
211
|
left: 0
|
|
212
|
-
}, Ae = /*#__PURE__*/
|
|
212
|
+
}, Ae = /*#__PURE__*/ M.createContext(null);
|
|
213
213
|
process.env.NODE_ENV !== "production" && (Ae.displayName = "PortalContext");
|
|
214
|
-
var je = () =>
|
|
214
|
+
var je = () => M.useContext(Ae), Me = we("portal");
|
|
215
215
|
function Ne(e = {}) {
|
|
216
|
-
let { ref:
|
|
216
|
+
let { ref: n, container: r, componentProps: a = i, elementProps: s } = e, l = p(), u = je()?.portalNode, [d, f] = M.useState(null), [m, h] = M.useState(null), g = c((e) => {
|
|
217
217
|
e !== null && h(e);
|
|
218
|
-
}), _ =
|
|
219
|
-
|
|
218
|
+
}), _ = M.useRef(null);
|
|
219
|
+
t(() => {
|
|
220
220
|
if (r === null) {
|
|
221
221
|
_.current && (_.current = null, h(null), f(null));
|
|
222
222
|
return;
|
|
223
223
|
}
|
|
224
|
-
if (
|
|
225
|
-
let e = (r && (
|
|
224
|
+
if (l == null) return;
|
|
225
|
+
let e = (r && (S(r) ? r : r.current)) ?? u ?? document.body;
|
|
226
226
|
if (e == null) {
|
|
227
227
|
_.current && (_.current = null, h(null), f(null));
|
|
228
228
|
return;
|
|
@@ -231,64 +231,64 @@ function Ne(e = {}) {
|
|
|
231
231
|
}, [
|
|
232
232
|
r,
|
|
233
233
|
u,
|
|
234
|
-
|
|
234
|
+
l
|
|
235
235
|
]);
|
|
236
|
-
let v =
|
|
237
|
-
ref: [
|
|
236
|
+
let v = o("div", a, {
|
|
237
|
+
ref: [n, g],
|
|
238
238
|
props: [{
|
|
239
|
-
id:
|
|
239
|
+
id: l,
|
|
240
240
|
[Me]: ""
|
|
241
|
-
},
|
|
241
|
+
}, s]
|
|
242
242
|
});
|
|
243
243
|
return {
|
|
244
|
-
portalNode:
|
|
245
|
-
portalSubtree: d && v ? /*#__PURE__*/
|
|
244
|
+
portalNode: m,
|
|
245
|
+
portalSubtree: d && v ? /*#__PURE__*/ F.createPortal(v, d) : null
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
|
-
var Pe = /*#__PURE__*/
|
|
248
|
+
var Pe = /*#__PURE__*/ M.forwardRef(function(e, t) {
|
|
249
249
|
let { render: n, className: r, style: i, children: a, container: o, renderGuards: s, ...c } = e, { portalNode: l, portalSubtree: u } = Ne({
|
|
250
250
|
container: o,
|
|
251
251
|
ref: t,
|
|
252
252
|
componentProps: e,
|
|
253
253
|
elementProps: c
|
|
254
|
-
}), d =
|
|
255
|
-
|
|
256
|
-
if (!l ||
|
|
254
|
+
}), d = M.useRef(null), p = M.useRef(null), m = M.useRef(null), h = M.useRef(null), [g, _] = M.useState(null), v = M.useRef(!1), y = g?.modal, b = g?.open, x = typeof s == "boolean" ? s : !!g && !g.modal && g.open && !!l;
|
|
255
|
+
M.useEffect(() => {
|
|
256
|
+
if (!l || y) return;
|
|
257
257
|
function e(e) {
|
|
258
|
-
l && e.relatedTarget &&
|
|
258
|
+
l && e.relatedTarget && Z(e) && (e.type === "focusin" ? v.current &&= (xe(l), !1) : (be(l), v.current = !0));
|
|
259
259
|
}
|
|
260
|
-
return
|
|
261
|
-
}, [l,
|
|
262
|
-
!l ||
|
|
263
|
-
}, [
|
|
264
|
-
let
|
|
260
|
+
return Q(A(l, "focusin", e, !0), A(l, "focusout", e, !0));
|
|
261
|
+
}, [l, y]), M.useEffect(() => {
|
|
262
|
+
!l || b !== !1 || (xe(l), v.current = !1);
|
|
263
|
+
}, [b, l]);
|
|
264
|
+
let S = M.useMemo(() => ({
|
|
265
265
|
beforeOutsideRef: d,
|
|
266
|
-
afterOutsideRef:
|
|
266
|
+
afterOutsideRef: p,
|
|
267
267
|
beforeInsideRef: m,
|
|
268
268
|
afterInsideRef: h,
|
|
269
269
|
portalNode: l,
|
|
270
270
|
setFocusManagerState: _
|
|
271
271
|
}), [l]);
|
|
272
|
-
return /*#__PURE__*/ M
|
|
273
|
-
value:
|
|
272
|
+
return /*#__PURE__*/ P(M.Fragment, { children: [u, /*#__PURE__*/ P(Ae.Provider, {
|
|
273
|
+
value: S,
|
|
274
274
|
children: [
|
|
275
|
-
|
|
275
|
+
x && l && /*#__PURE__*/ N(Ce, {
|
|
276
276
|
"data-type": "outside",
|
|
277
277
|
ref: d,
|
|
278
278
|
onFocus: (e) => {
|
|
279
|
-
|
|
279
|
+
Z(e, l) ? m.current?.focus() : ge(g ? g.domReference : null)?.focus();
|
|
280
280
|
}
|
|
281
281
|
}),
|
|
282
|
-
|
|
282
|
+
x && l && /*#__PURE__*/ N("span", {
|
|
283
283
|
"aria-owns": l.id,
|
|
284
284
|
style: ke
|
|
285
285
|
}),
|
|
286
|
-
l && /*#__PURE__*/
|
|
287
|
-
|
|
286
|
+
l && /*#__PURE__*/ F.createPortal(a, l),
|
|
287
|
+
x && l && /*#__PURE__*/ N(Ce, {
|
|
288
288
|
"data-type": "outside",
|
|
289
|
-
ref:
|
|
289
|
+
ref: p,
|
|
290
290
|
onFocus: (e) => {
|
|
291
|
-
|
|
291
|
+
Z(e, l) ? h.current?.focus() : (he(g ? g.domReference : null)?.focus(), g?.closeOnFocusOut && g?.onOpenChange(!1, f("focus-out", e.nativeEvent)));
|
|
292
292
|
}
|
|
293
293
|
})
|
|
294
294
|
]
|
|
@@ -323,20 +323,20 @@ var Ie = class {
|
|
|
323
323
|
let t = this.nodesRef.current.findIndex((t) => t === e);
|
|
324
324
|
t !== -1 && this.nodesRef.current.splice(t, 1);
|
|
325
325
|
}
|
|
326
|
-
}, Le = /*#__PURE__*/
|
|
326
|
+
}, Le = /*#__PURE__*/ M.createContext(null);
|
|
327
327
|
process.env.NODE_ENV !== "production" && (Le.displayName = "FloatingNodeContext");
|
|
328
|
-
var Re = /*#__PURE__*/
|
|
328
|
+
var Re = /*#__PURE__*/ M.createContext(null);
|
|
329
329
|
process.env.NODE_ENV !== "production" && (Re.displayName = "FloatingTreeContext");
|
|
330
|
-
var ze = () =>
|
|
331
|
-
let t =
|
|
330
|
+
var ze = () => M.useContext(Le)?.id || null, Be = (e) => {
|
|
331
|
+
let t = M.useContext(Re);
|
|
332
332
|
return e ?? t;
|
|
333
333
|
};
|
|
334
334
|
function Ve(e) {
|
|
335
|
-
let
|
|
336
|
-
return
|
|
337
|
-
if (!
|
|
335
|
+
let n = p(), r = Be(e), i = ze();
|
|
336
|
+
return t(() => {
|
|
337
|
+
if (!n) return;
|
|
338
338
|
let e = {
|
|
339
|
-
id:
|
|
339
|
+
id: n,
|
|
340
340
|
parentId: i
|
|
341
341
|
};
|
|
342
342
|
return r?.addNode(e), () => {
|
|
@@ -344,14 +344,14 @@ function Ve(e) {
|
|
|
344
344
|
};
|
|
345
345
|
}, [
|
|
346
346
|
r,
|
|
347
|
-
|
|
347
|
+
n,
|
|
348
348
|
i
|
|
349
|
-
]),
|
|
349
|
+
]), n;
|
|
350
350
|
}
|
|
351
351
|
function He(e) {
|
|
352
352
|
let { children: t, id: n } = e, r = ze();
|
|
353
|
-
return /*#__PURE__*/
|
|
354
|
-
value:
|
|
353
|
+
return /*#__PURE__*/ N(Le.Provider, {
|
|
354
|
+
value: M.useMemo(() => ({
|
|
355
355
|
id: n,
|
|
356
356
|
parentId: r
|
|
357
357
|
}), [n, r]),
|
|
@@ -359,9 +359,9 @@ function He(e) {
|
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
361
|
function Ue(e) {
|
|
362
|
-
let { children: t, externalTree: n } = e,
|
|
363
|
-
return /*#__PURE__*/
|
|
364
|
-
value:
|
|
362
|
+
let { children: t, externalTree: n } = e, i = r(() => n ?? new Ie()).current;
|
|
363
|
+
return /*#__PURE__*/ N(Re.Provider, {
|
|
364
|
+
value: i,
|
|
365
365
|
children: t
|
|
366
366
|
});
|
|
367
367
|
}
|
|
@@ -381,235 +381,235 @@ function Ke(e) {
|
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
383
|
function qe(e, t = {}) {
|
|
384
|
-
let { enabled: n = !0, escapeKey: r = !0, outsidePress: i = !0, outsidePressEvent: a = "sloppy", referencePress: o = Ge, referencePressEvent: s = "sloppy", bubbles:
|
|
385
|
-
|
|
386
|
-
}),
|
|
387
|
-
let t =
|
|
388
|
-
return (
|
|
389
|
-
}),
|
|
390
|
-
o() && h.setOpen(!1,
|
|
391
|
-
}),
|
|
392
|
-
if (!g || !n || !r || e.key !== "Escape" ||
|
|
393
|
-
let t =
|
|
394
|
-
h.setOpen(!1, t), t.isCanceled || e.preventDefault(), !
|
|
395
|
-
}),
|
|
396
|
-
|
|
397
|
-
}),
|
|
384
|
+
let { enabled: n = !0, escapeKey: r = !0, outsidePress: i = !0, outsidePressEvent: a = "sloppy", referencePress: o = Ge, referencePressEvent: s = "sloppy", bubbles: p, externalTree: m } = t, h = "rootStore" in e ? e.rootStore : e, g = h.useState("open"), _ = h.useState("floatingElement"), { dataRef: S } = h.context, C = Be(m), re = c(typeof i == "function" ? i : () => !1), T = typeof i == "function" ? re : i, oe = T !== !1, E = c(() => a), { escapeKey: O, outsidePress: ce } = Ke(p), j = M.useRef(!1), N = M.useRef(!1), P = M.useRef(!1), F = M.useRef(!1), I = M.useRef(""), L = M.useRef(null), R = le(), z = le(), B = c(() => {
|
|
385
|
+
z.clear(), S.current.insideReactTree = !1;
|
|
386
|
+
}), V = c((e) => {
|
|
387
|
+
let t = S.current.floatingContext?.nodeId;
|
|
388
|
+
return (C ? de(C.nodesRef.current, t) : []).some((t) => t.context?.open && !t.context.dataRef.current[e]);
|
|
389
|
+
}), H = c((e) => ae(e, h.select("floatingElement")) || ae(e, h.select("domReferenceElement"))), U = c((e) => {
|
|
390
|
+
o() && h.setOpen(!1, f(l, e.nativeEvent));
|
|
391
|
+
}), W = c((e) => {
|
|
392
|
+
if (!g || !n || !r || e.key !== "Escape" || F.current || !O && V("__escapeKeyBubbles")) return;
|
|
393
|
+
let t = f(d, D(e) ? e.nativeEvent : e);
|
|
394
|
+
h.setOpen(!1, t), t.isCanceled || e.preventDefault(), !O && !t.isPropagationAllowed && e.stopPropagation();
|
|
395
|
+
}), G = c(() => {
|
|
396
|
+
S.current.insideReactTree = !0, z.start(0, B);
|
|
397
|
+
}), K = c((e) => {
|
|
398
398
|
if (!g || !n || e.button !== 0) return;
|
|
399
|
-
let t =
|
|
400
|
-
|
|
401
|
-
}),
|
|
402
|
-
!g || !n || (e.defaultPrevented || e.nativeEvent.defaultPrevented) &&
|
|
399
|
+
let t = ie(e.nativeEvent);
|
|
400
|
+
w(h.select("floatingElement"), t) && (j.current || (j.current = !0, N.current = !1));
|
|
401
|
+
}), q = c((e) => {
|
|
402
|
+
!g || !n || (e.defaultPrevented || e.nativeEvent.defaultPrevented) && j.current && (N.current = !0);
|
|
403
403
|
});
|
|
404
|
-
|
|
404
|
+
M.useEffect(() => {
|
|
405
405
|
if (!g || !n) return;
|
|
406
|
-
|
|
407
|
-
let e = new
|
|
406
|
+
S.current.__escapeKeyBubbles = O, S.current.__outsidePressBubbles = ce;
|
|
407
|
+
let e = new ue(), t = new ue();
|
|
408
408
|
function i() {
|
|
409
|
-
e.clear(),
|
|
409
|
+
e.clear(), F.current = !0;
|
|
410
410
|
}
|
|
411
411
|
function a() {
|
|
412
|
-
e.start(
|
|
413
|
-
|
|
412
|
+
e.start(ne() ? 5 : 0, () => {
|
|
413
|
+
F.current = !1;
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
function o() {
|
|
417
|
-
|
|
418
|
-
|
|
417
|
+
P.current = !0, t.start(0, () => {
|
|
418
|
+
P.current = !1;
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
function s() {
|
|
422
|
-
|
|
422
|
+
j.current = !1, N.current = !1;
|
|
423
423
|
}
|
|
424
424
|
function c() {
|
|
425
|
-
let e =
|
|
425
|
+
let e = I.current, t = e === "pen" || !e ? "mouse" : e, n = E(), r = typeof n == "function" ? n() : n;
|
|
426
426
|
return typeof r == "string" ? r : r[t];
|
|
427
427
|
}
|
|
428
428
|
function l(e) {
|
|
429
429
|
let t = c();
|
|
430
430
|
return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
let t =
|
|
434
|
-
return
|
|
432
|
+
function d(e) {
|
|
433
|
+
let t = S.current.floatingContext?.nodeId, n = C && de(C.nodesRef.current, t).some((t) => ae(e, t.context?.elements.floating));
|
|
434
|
+
return H(e) || n;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function p(e) {
|
|
437
437
|
if (l(e)) {
|
|
438
|
-
e.type !== "click" && !
|
|
438
|
+
e.type !== "click" && !H(e) && (t.clear(), P.current = !1), B();
|
|
439
439
|
return;
|
|
440
440
|
}
|
|
441
|
-
if (
|
|
442
|
-
|
|
441
|
+
if (S.current.insideReactTree) {
|
|
442
|
+
B();
|
|
443
443
|
return;
|
|
444
444
|
}
|
|
445
|
-
let n =
|
|
446
|
-
if (n && (o.hasElement(n) || o.hasMatchingElement((e) =>
|
|
445
|
+
let n = ie(e), r = `[${we("inert")}]`, i = y(n) ? n.getRootNode() : null, a = Array.from((x(i) ? i : k(h.select("floatingElement"))).querySelectorAll(r)), o = h.context.triggerElements;
|
|
446
|
+
if (n && (o.hasElement(n) || o.hasMatchingElement((e) => w(e, n)))) return;
|
|
447
447
|
let s = y(n) ? n : null;
|
|
448
|
-
for (; s && !
|
|
449
|
-
let e =
|
|
450
|
-
if (
|
|
448
|
+
for (; s && !ee(s);) {
|
|
449
|
+
let e = v(s);
|
|
450
|
+
if (ee(e) || !y(e)) break;
|
|
451
451
|
s = e;
|
|
452
452
|
}
|
|
453
|
-
if (!(a.length && y(n) && !
|
|
453
|
+
if (!(a.length && y(n) && !se(n) && !w(n, h.select("floatingElement")) && a.every((e) => !w(s, e)))) {
|
|
454
454
|
if (b(n) && !("touches" in e)) {
|
|
455
|
-
let t =
|
|
455
|
+
let t = ee(n), r = te(n), i = /auto|scroll/, a = t || i.test(r.overflowX), o = t || i.test(r.overflowY), s = a && n.clientWidth > 0 && n.scrollWidth > n.clientWidth, c = o && n.clientHeight > 0 && n.scrollHeight > n.clientHeight, l = r.direction === "rtl", u = c && (l ? e.offsetX <= n.offsetWidth - n.clientWidth : e.offsetX > n.clientWidth), d = s && e.offsetY > n.clientHeight;
|
|
456
456
|
if (u || d) return;
|
|
457
457
|
}
|
|
458
|
-
if (!
|
|
459
|
-
if (c() === "intentional" &&
|
|
460
|
-
t.clear(),
|
|
458
|
+
if (!d(e)) {
|
|
459
|
+
if (c() === "intentional" && P.current) {
|
|
460
|
+
t.clear(), P.current = !1;
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
463
|
-
typeof
|
|
463
|
+
typeof T == "function" && !T(e) || V("__outsidePressBubbles") || (h.setOpen(!1, f(u, e)), B());
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
function m(e) {
|
|
468
|
-
c() !== "sloppy" || e.pointerType === "touch" || !h.select("open") || !n ||
|
|
468
|
+
c() !== "sloppy" || e.pointerType === "touch" || !h.select("open") || !n || H(e) || p(e);
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
if (c() !== "sloppy" || !h.select("open") || !n ||
|
|
470
|
+
function re(e) {
|
|
471
|
+
if (c() !== "sloppy" || !h.select("open") || !n || H(e)) return;
|
|
472
472
|
let t = e.touches[0];
|
|
473
|
-
t && (
|
|
473
|
+
t && (L.current = {
|
|
474
474
|
startTime: Date.now(),
|
|
475
475
|
startX: t.clientX,
|
|
476
476
|
startY: t.clientY,
|
|
477
477
|
dismissOnTouchEnd: !1,
|
|
478
478
|
dismissOnMouseDown: !0
|
|
479
|
-
},
|
|
480
|
-
|
|
479
|
+
}, R.start(1e3, () => {
|
|
480
|
+
L.current && (L.current.dismissOnTouchEnd = !1, L.current.dismissOnMouseDown = !1);
|
|
481
481
|
}));
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
let n =
|
|
483
|
+
function D(e, t) {
|
|
484
|
+
let n = ie(e);
|
|
485
485
|
if (!n) return;
|
|
486
|
-
let r =
|
|
486
|
+
let r = A(n, e.type, () => {
|
|
487
487
|
t(e), r();
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
|
|
490
|
+
function le(e) {
|
|
491
|
+
I.current = "touch", D(e, re);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
|
|
495
|
-
e.type === "pointerdown" ? m(e) :
|
|
493
|
+
function M(e) {
|
|
494
|
+
R.clear(), e.type === "pointerdown" && (I.current = e.pointerType), !(e.type === "mousedown" && L.current && !L.current.dismissOnMouseDown) && D(e, (e) => {
|
|
495
|
+
e.type === "pointerdown" ? m(e) : p(e);
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
|
-
function
|
|
499
|
-
if (!
|
|
500
|
-
let n =
|
|
498
|
+
function z(e) {
|
|
499
|
+
if (!j.current) return;
|
|
500
|
+
let n = N.current;
|
|
501
501
|
if (s(), c() === "intentional") {
|
|
502
502
|
if (e.type === "pointercancel") {
|
|
503
503
|
n && o();
|
|
504
504
|
return;
|
|
505
505
|
}
|
|
506
|
-
if (!
|
|
506
|
+
if (!d(e)) {
|
|
507
507
|
if (n) {
|
|
508
508
|
o();
|
|
509
509
|
return;
|
|
510
510
|
}
|
|
511
|
-
typeof
|
|
511
|
+
typeof T == "function" && !T(e) || (t.clear(), P.current = !0, B());
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
if (c() !== "sloppy" || !
|
|
515
|
+
function U(e) {
|
|
516
|
+
if (c() !== "sloppy" || !L.current || H(e)) return;
|
|
517
517
|
let t = e.touches[0];
|
|
518
518
|
if (!t) return;
|
|
519
|
-
let n = Math.abs(t.clientX -
|
|
520
|
-
i > 5 && (
|
|
521
|
-
}
|
|
522
|
-
function W(e) {
|
|
523
|
-
T(e, H);
|
|
519
|
+
let n = Math.abs(t.clientX - L.current.startX), r = Math.abs(t.clientY - L.current.startY), i = Math.sqrt(n * n + r * r);
|
|
520
|
+
i > 5 && (L.current.dismissOnTouchEnd = !0), i > 10 && (p(e), R.clear(), L.current = null);
|
|
524
521
|
}
|
|
525
522
|
function G(e) {
|
|
526
|
-
|
|
523
|
+
D(e, U);
|
|
527
524
|
}
|
|
528
525
|
function K(e) {
|
|
529
|
-
|
|
526
|
+
c() !== "sloppy" || !L.current || H(e) || (L.current.dismissOnTouchEnd && p(e), R.clear(), L.current = null);
|
|
527
|
+
}
|
|
528
|
+
function q(e) {
|
|
529
|
+
D(e, K);
|
|
530
530
|
}
|
|
531
|
-
let
|
|
531
|
+
let J = k(_), Y = Q(r && Q(A(J, "keydown", W), A(J, "compositionstart", i), A(J, "compositionend", a)), oe && Q(A(J, "click", M, !0), A(J, "pointerdown", M, !0), A(J, "pointerup", z, !0), A(J, "pointercancel", z, !0), A(J, "mousedown", M, !0), A(J, "mouseup", z, !0), A(J, "touchstart", le, !0), A(J, "touchmove", G, !0), A(J, "touchend", q, !0)));
|
|
532
532
|
return () => {
|
|
533
|
-
|
|
533
|
+
Y(), e.clear(), t.clear(), s(), P.current = !1;
|
|
534
534
|
};
|
|
535
535
|
}, [
|
|
536
|
-
|
|
536
|
+
S,
|
|
537
537
|
_,
|
|
538
538
|
r,
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
oe,
|
|
540
|
+
T,
|
|
541
541
|
g,
|
|
542
542
|
n,
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
z,
|
|
547
|
-
w,
|
|
543
|
+
O,
|
|
544
|
+
ce,
|
|
545
|
+
W,
|
|
548
546
|
B,
|
|
547
|
+
E,
|
|
549
548
|
V,
|
|
550
|
-
|
|
549
|
+
H,
|
|
550
|
+
C,
|
|
551
551
|
h,
|
|
552
|
-
|
|
553
|
-
]),
|
|
554
|
-
let
|
|
555
|
-
onKeyDown:
|
|
556
|
-
[We[s]]:
|
|
557
|
-
...s !== "intentional" && { onClick:
|
|
552
|
+
R
|
|
553
|
+
]), M.useEffect(B, [T, B]);
|
|
554
|
+
let J = M.useMemo(() => ({
|
|
555
|
+
onKeyDown: W,
|
|
556
|
+
[We[s]]: U,
|
|
557
|
+
...s !== "intentional" && { onClick: U }
|
|
558
558
|
}), [
|
|
559
|
+
W,
|
|
559
560
|
U,
|
|
560
|
-
H,
|
|
561
561
|
s
|
|
562
|
-
]),
|
|
563
|
-
onKeyDown:
|
|
564
|
-
onPointerDown:
|
|
565
|
-
onMouseDown:
|
|
566
|
-
onClickCapture:
|
|
562
|
+
]), Y = M.useMemo(() => ({
|
|
563
|
+
onKeyDown: W,
|
|
564
|
+
onPointerDown: q,
|
|
565
|
+
onMouseDown: q,
|
|
566
|
+
onClickCapture: G,
|
|
567
567
|
onMouseDownCapture(e) {
|
|
568
|
-
|
|
568
|
+
G(), K(e);
|
|
569
569
|
},
|
|
570
570
|
onPointerDownCapture(e) {
|
|
571
|
-
|
|
571
|
+
G(), K(e);
|
|
572
572
|
},
|
|
573
|
-
onMouseUpCapture:
|
|
574
|
-
onTouchEndCapture:
|
|
575
|
-
onTouchMoveCapture:
|
|
573
|
+
onMouseUpCapture: G,
|
|
574
|
+
onTouchEndCapture: G,
|
|
575
|
+
onTouchMoveCapture: G
|
|
576
576
|
}), [
|
|
577
|
-
U,
|
|
578
577
|
W,
|
|
579
578
|
G,
|
|
580
|
-
K
|
|
579
|
+
K,
|
|
580
|
+
q
|
|
581
581
|
]);
|
|
582
|
-
return
|
|
583
|
-
reference:
|
|
584
|
-
floating:
|
|
585
|
-
trigger:
|
|
582
|
+
return M.useMemo(() => n ? {
|
|
583
|
+
reference: J,
|
|
584
|
+
floating: Y,
|
|
585
|
+
trigger: J
|
|
586
586
|
} : {}, [
|
|
587
587
|
n,
|
|
588
|
-
|
|
589
|
-
|
|
588
|
+
J,
|
|
589
|
+
Y
|
|
590
590
|
]);
|
|
591
591
|
}
|
|
592
592
|
//#endregion
|
|
593
593
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/store/createSelector.js
|
|
594
594
|
var $ = (e, t, n, r, i, a, ...o) => {
|
|
595
|
-
if (o.length > 0) throw Error(process.env.NODE_ENV === "production" ?
|
|
596
|
-
let
|
|
597
|
-
if (e && t && n && r && i && a)
|
|
598
|
-
else if (e && t && n && r && i)
|
|
599
|
-
else if (e && t && n && r)
|
|
600
|
-
else if (e && t && n)
|
|
601
|
-
else if (e && t)
|
|
602
|
-
else if (e)
|
|
595
|
+
if (o.length > 0) throw Error(process.env.NODE_ENV === "production" ? s(1) : "Unsupported number of selectors");
|
|
596
|
+
let c;
|
|
597
|
+
if (e && t && n && r && i && a) c = (o, s, c, l) => a(e(o, s, c, l), t(o, s, c, l), n(o, s, c, l), r(o, s, c, l), i(o, s, c, l), s, c, l);
|
|
598
|
+
else if (e && t && n && r && i) c = (a, o, s, c) => i(e(a, o, s, c), t(a, o, s, c), n(a, o, s, c), r(a, o, s, c), o, s, c);
|
|
599
|
+
else if (e && t && n && r) c = (i, a, o, s) => r(e(i, a, o, s), t(i, a, o, s), n(i, a, o, s), a, o, s);
|
|
600
|
+
else if (e && t && n) c = (r, i, a, o) => n(e(r, i, a, o), t(r, i, a, o), i, a, o);
|
|
601
|
+
else if (e && t) c = (n, r, i, a) => t(e(n, r, i, a), r, i, a);
|
|
602
|
+
else if (e) c = e;
|
|
603
603
|
else throw Error("Missing arguments");
|
|
604
|
-
return
|
|
605
|
-
}, Je = /* @__PURE__ */
|
|
606
|
-
var
|
|
607
|
-
function
|
|
604
|
+
return c;
|
|
605
|
+
}, Je = /* @__PURE__ */ e(((e) => {
|
|
606
|
+
var t = oe(), n = E();
|
|
607
|
+
function r(e, t) {
|
|
608
608
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
609
609
|
}
|
|
610
|
-
var
|
|
611
|
-
|
|
612
|
-
var d =
|
|
610
|
+
var i = typeof Object.is == "function" ? Object.is : r, a = n.useSyncExternalStore, o = t.useRef, s = t.useEffect, c = t.useMemo, l = t.useDebugValue;
|
|
611
|
+
e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
|
|
612
|
+
var d = o(null);
|
|
613
613
|
if (d.current === null) {
|
|
614
614
|
var f = {
|
|
615
615
|
hasValue: !1,
|
|
@@ -617,45 +617,45 @@ var $ = (e, t, n, r, i, a, ...o) => {
|
|
|
617
617
|
};
|
|
618
618
|
d.current = f;
|
|
619
619
|
} else f = d.current;
|
|
620
|
-
d =
|
|
620
|
+
d = c(function() {
|
|
621
621
|
function e(e) {
|
|
622
|
-
if (!
|
|
623
|
-
if (
|
|
622
|
+
if (!a) {
|
|
623
|
+
if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {
|
|
624
624
|
var t = f.value;
|
|
625
|
-
if (
|
|
625
|
+
if (u(t, e)) return s = t;
|
|
626
626
|
}
|
|
627
|
-
return
|
|
627
|
+
return s = e;
|
|
628
628
|
}
|
|
629
|
-
if (t =
|
|
629
|
+
if (t = s, i(o, e)) return t;
|
|
630
630
|
var n = r(e);
|
|
631
|
-
return
|
|
631
|
+
return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);
|
|
632
632
|
}
|
|
633
|
-
var
|
|
633
|
+
var a = !1, o, s, c = n === void 0 ? null : n;
|
|
634
634
|
return [function() {
|
|
635
635
|
return e(t());
|
|
636
|
-
},
|
|
637
|
-
return e(
|
|
636
|
+
}, c === null ? void 0 : function() {
|
|
637
|
+
return e(c());
|
|
638
638
|
}];
|
|
639
639
|
}, [
|
|
640
640
|
t,
|
|
641
641
|
n,
|
|
642
642
|
r,
|
|
643
|
-
|
|
643
|
+
u
|
|
644
644
|
]);
|
|
645
|
-
var p =
|
|
646
|
-
return
|
|
645
|
+
var p = a(e, d[0], d[1]);
|
|
646
|
+
return s(function() {
|
|
647
647
|
f.hasValue = !0, f.value = p;
|
|
648
|
-
}, [p]),
|
|
648
|
+
}, [p]), l(p), p;
|
|
649
649
|
};
|
|
650
|
-
})), Ye = /* @__PURE__ */
|
|
650
|
+
})), Ye = /* @__PURE__ */ e(((e) => {
|
|
651
651
|
process.env.NODE_ENV !== "production" && (function() {
|
|
652
|
-
function
|
|
652
|
+
function t(e, t) {
|
|
653
653
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
654
654
|
}
|
|
655
655
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
656
|
-
var
|
|
657
|
-
|
|
658
|
-
var d =
|
|
656
|
+
var n = oe(), r = E(), i = typeof Object.is == "function" ? Object.is : t, a = r.useSyncExternalStore, o = n.useRef, s = n.useEffect, c = n.useMemo, l = n.useDebugValue;
|
|
657
|
+
e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
|
|
658
|
+
var d = o(null);
|
|
659
659
|
if (d.current === null) {
|
|
660
660
|
var f = {
|
|
661
661
|
hasValue: !1,
|
|
@@ -663,40 +663,40 @@ var $ = (e, t, n, r, i, a, ...o) => {
|
|
|
663
663
|
};
|
|
664
664
|
d.current = f;
|
|
665
665
|
} else f = d.current;
|
|
666
|
-
d =
|
|
666
|
+
d = c(function() {
|
|
667
667
|
function e(e) {
|
|
668
|
-
if (!
|
|
669
|
-
if (
|
|
668
|
+
if (!a) {
|
|
669
|
+
if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {
|
|
670
670
|
var t = f.value;
|
|
671
|
-
if (
|
|
671
|
+
if (u(t, e)) return s = t;
|
|
672
672
|
}
|
|
673
|
-
return
|
|
673
|
+
return s = e;
|
|
674
674
|
}
|
|
675
|
-
if (t =
|
|
675
|
+
if (t = s, i(o, e)) return t;
|
|
676
676
|
var n = r(e);
|
|
677
|
-
return
|
|
677
|
+
return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);
|
|
678
678
|
}
|
|
679
|
-
var
|
|
679
|
+
var a = !1, o, s, c = n === void 0 ? null : n;
|
|
680
680
|
return [function() {
|
|
681
681
|
return e(t());
|
|
682
|
-
},
|
|
683
|
-
return e(
|
|
682
|
+
}, c === null ? void 0 : function() {
|
|
683
|
+
return e(c());
|
|
684
684
|
}];
|
|
685
685
|
}, [
|
|
686
686
|
t,
|
|
687
687
|
n,
|
|
688
688
|
r,
|
|
689
|
-
|
|
689
|
+
u
|
|
690
690
|
]);
|
|
691
|
-
var p =
|
|
692
|
-
return
|
|
691
|
+
var p = a(e, d[0], d[1]);
|
|
692
|
+
return s(function() {
|
|
693
693
|
f.hasValue = !0, f.value = p;
|
|
694
|
-
}, [p]),
|
|
694
|
+
}, [p]), l(p), p;
|
|
695
695
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
696
696
|
})();
|
|
697
|
-
})), Xe = /* @__PURE__ */
|
|
697
|
+
})), Xe = /* @__PURE__ */ e(((e, t) => {
|
|
698
698
|
process.env.NODE_ENV === "production" ? t.exports = Je() : t.exports = Ye();
|
|
699
|
-
})), Ze =
|
|
699
|
+
})), Ze = E(), Qe = Xe(), $e = [], et = void 0;
|
|
700
700
|
function tt() {
|
|
701
701
|
return et;
|
|
702
702
|
}
|
|
@@ -705,13 +705,13 @@ function nt(e) {
|
|
|
705
705
|
}
|
|
706
706
|
function rt(e) {
|
|
707
707
|
let t = (t, n) => {
|
|
708
|
-
let
|
|
708
|
+
let i = r(at).current, a;
|
|
709
709
|
try {
|
|
710
|
-
et =
|
|
711
|
-
for (let e of $e) e.before(
|
|
710
|
+
et = i;
|
|
711
|
+
for (let e of $e) e.before(i);
|
|
712
712
|
a = e(t, n);
|
|
713
|
-
for (let e of $e) e.after(
|
|
714
|
-
|
|
713
|
+
for (let e of $e) e.after(i);
|
|
714
|
+
i.didInitialize = !0;
|
|
715
715
|
} finally {
|
|
716
716
|
et = void 0;
|
|
717
717
|
}
|
|
@@ -720,19 +720,19 @@ function rt(e) {
|
|
|
720
720
|
return t.displayName = e.displayName || e.name, t;
|
|
721
721
|
}
|
|
722
722
|
function it(e) {
|
|
723
|
-
return /*#__PURE__*/
|
|
723
|
+
return /*#__PURE__*/ M.forwardRef(rt(e));
|
|
724
724
|
}
|
|
725
725
|
function at() {
|
|
726
726
|
return { didInitialize: !1 };
|
|
727
727
|
}
|
|
728
728
|
//#endregion
|
|
729
729
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/store/useStore.js
|
|
730
|
-
var ot =
|
|
730
|
+
var ot = n(19) ? lt : ut;
|
|
731
731
|
function st(e, t, n, r, i) {
|
|
732
732
|
return ot(e, t, n, r, i);
|
|
733
733
|
}
|
|
734
734
|
function ct(e, t, n, r, i) {
|
|
735
|
-
let a =
|
|
735
|
+
let a = M.useCallback(() => t(e.getSnapshot(), n, r, i), [
|
|
736
736
|
e,
|
|
737
737
|
t,
|
|
738
738
|
n,
|
|
@@ -828,50 +828,50 @@ var dt = class {
|
|
|
828
828
|
constructor(e, t = {}, n) {
|
|
829
829
|
super(e), this.context = t, this.selectors = n;
|
|
830
830
|
}
|
|
831
|
-
useSyncedValue(e,
|
|
832
|
-
|
|
831
|
+
useSyncedValue(e, n) {
|
|
832
|
+
M.useDebugValue(e);
|
|
833
833
|
let r = this;
|
|
834
|
-
|
|
835
|
-
r.state[e] !==
|
|
834
|
+
t(() => {
|
|
835
|
+
r.state[e] !== n && r.set(e, n);
|
|
836
836
|
}, [
|
|
837
837
|
r,
|
|
838
838
|
e,
|
|
839
|
-
|
|
839
|
+
n
|
|
840
840
|
]);
|
|
841
841
|
}
|
|
842
|
-
useSyncedValueWithCleanup(e,
|
|
842
|
+
useSyncedValueWithCleanup(e, n) {
|
|
843
843
|
let r = this;
|
|
844
|
-
|
|
844
|
+
t(() => (r.state[e] !== n && r.set(e, n), () => {
|
|
845
845
|
r.set(e, void 0);
|
|
846
846
|
}), [
|
|
847
847
|
r,
|
|
848
848
|
e,
|
|
849
|
-
|
|
849
|
+
n
|
|
850
850
|
]);
|
|
851
851
|
}
|
|
852
852
|
useSyncedValues(e) {
|
|
853
|
-
let
|
|
853
|
+
let n = this;
|
|
854
854
|
if (process.env.NODE_ENV !== "production") {
|
|
855
|
-
|
|
856
|
-
let t =
|
|
855
|
+
M.useDebugValue(e, (e) => Object.keys(e));
|
|
856
|
+
let t = M.useRef(Object.keys(e)).current, n = Object.keys(e);
|
|
857
857
|
(t.length !== n.length || t.some((e, t) => e !== n[t])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
|
|
858
858
|
}
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
}, [
|
|
859
|
+
t(() => {
|
|
860
|
+
n.update(e);
|
|
861
|
+
}, [n, ...Object.values(e)]);
|
|
862
862
|
}
|
|
863
|
-
useControlledProp(e,
|
|
864
|
-
|
|
865
|
-
let r = this, i =
|
|
866
|
-
if (
|
|
867
|
-
i && !Object.is(r.state[e],
|
|
863
|
+
useControlledProp(e, n) {
|
|
864
|
+
M.useDebugValue(e);
|
|
865
|
+
let r = this, i = n !== void 0;
|
|
866
|
+
if (t(() => {
|
|
867
|
+
i && !Object.is(r.state[e], n) && r.setState({
|
|
868
868
|
...r.state,
|
|
869
|
-
[e]:
|
|
869
|
+
[e]: n
|
|
870
870
|
});
|
|
871
871
|
}, [
|
|
872
872
|
r,
|
|
873
873
|
e,
|
|
874
|
-
|
|
874
|
+
n,
|
|
875
875
|
i
|
|
876
876
|
]), process.env.NODE_ENV !== "production") {
|
|
877
877
|
let t = this.controlledValues ??= /* @__PURE__ */ new Map();
|
|
@@ -885,15 +885,15 @@ var dt = class {
|
|
|
885
885
|
return i(this.state, t, n, r);
|
|
886
886
|
}
|
|
887
887
|
useState(e, t, n, r) {
|
|
888
|
-
return
|
|
888
|
+
return M.useDebugValue(e), st(this, this.selectors[e], t, n, r);
|
|
889
889
|
}
|
|
890
890
|
useContextCallback(e, t) {
|
|
891
|
-
|
|
892
|
-
let n =
|
|
891
|
+
M.useDebugValue(e);
|
|
892
|
+
let n = c(t ?? a);
|
|
893
893
|
this.context[e] = n;
|
|
894
894
|
}
|
|
895
895
|
useStateSetter(e) {
|
|
896
|
-
let t =
|
|
896
|
+
let t = M.useRef(void 0);
|
|
897
897
|
return t.current === void 0 && (t.current = (t) => {
|
|
898
898
|
this.set(e, t);
|
|
899
899
|
}), t.current;
|
|
@@ -933,7 +933,7 @@ var dt = class {
|
|
|
933
933
|
}, pt), this.syncOnly = t;
|
|
934
934
|
}
|
|
935
935
|
syncOpenEvent = (e, t) => {
|
|
936
|
-
(!e || !this.state.open || t != null &&
|
|
936
|
+
(!e || !this.state.open || t != null && O(t)) && (this.context.dataRef.current.openEvent = e ? t : void 0);
|
|
937
937
|
};
|
|
938
938
|
dispatchOpenChange = (e, t) => {
|
|
939
939
|
this.syncOpenEvent(e, t.event);
|
|
@@ -957,7 +957,7 @@ var dt = class {
|
|
|
957
957
|
//#endregion
|
|
958
958
|
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.js
|
|
959
959
|
function ht(e) {
|
|
960
|
-
let { popupStore:
|
|
960
|
+
let { popupStore: n, treatPopupAsFloatingElement: r = !1, floatingRootContext: i, floatingId: a, nested: o, onOpenChange: s } = e, c = n.useState("open"), l = n.useState("activeTriggerElement"), u = n.useState(r ? "popupElement" : "positionerElement"), d = n.context.triggerElements, f = s, p = M.useRef(null);
|
|
961
961
|
i === void 0 && p.current === null && (p.current = new mt({
|
|
962
962
|
open: c,
|
|
963
963
|
transitionStatus: void 0,
|
|
@@ -970,7 +970,7 @@ function ht(e) {
|
|
|
970
970
|
nested: o
|
|
971
971
|
}));
|
|
972
972
|
let m = i ?? p.current;
|
|
973
|
-
return
|
|
973
|
+
return n.useSyncedValue("floatingId", a), t(() => {
|
|
974
974
|
let e = {
|
|
975
975
|
open: c,
|
|
976
976
|
floatingId: a,
|
|
@@ -990,10 +990,10 @@ function ht(e) {
|
|
|
990
990
|
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+3af425edea7fa8ac/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils.js
|
|
991
991
|
var gt = {
|
|
992
992
|
tabIndex: -1,
|
|
993
|
-
[
|
|
993
|
+
[re]: ""
|
|
994
994
|
};
|
|
995
995
|
function _t(e, t, n = !1) {
|
|
996
|
-
let r =
|
|
996
|
+
let r = p(), i = ze() != null, a = M.useRef(null);
|
|
997
997
|
e === void 0 && a.current === null && (a.current = t(r, i));
|
|
998
998
|
let o = e ?? a.current;
|
|
999
999
|
return ht({
|
|
@@ -1009,8 +1009,8 @@ function _t(e, t, n = !1) {
|
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
1011
|
function vt(e, t) {
|
|
1012
|
-
let n =
|
|
1013
|
-
return
|
|
1012
|
+
let n = M.useRef(null), r = M.useRef(null);
|
|
1013
|
+
return M.useCallback((i) => {
|
|
1014
1014
|
if (e === void 0) return;
|
|
1015
1015
|
let a = !1;
|
|
1016
1016
|
if (n.current !== null) {
|
|
@@ -1027,8 +1027,8 @@ function yt(e, t, n) {
|
|
|
1027
1027
|
let r = n?.id ?? null;
|
|
1028
1028
|
(r || t) && (e.activeTriggerId = r, e.activeTriggerElement = n ?? null);
|
|
1029
1029
|
}
|
|
1030
|
-
function bt(e,
|
|
1031
|
-
let a = r.useState("isMountedByTrigger", e), o = vt(e, r), s =
|
|
1030
|
+
function bt(e, n, r, i) {
|
|
1031
|
+
let a = r.useState("isMountedByTrigger", e), o = vt(e, r), s = c((t) => {
|
|
1032
1032
|
if (o(t), !t) return;
|
|
1033
1033
|
let n = r.select("open"), a = r.select("activeTriggerId");
|
|
1034
1034
|
if (a === e) {
|
|
@@ -1044,15 +1044,15 @@ function bt(e, t, r, i) {
|
|
|
1044
1044
|
...i
|
|
1045
1045
|
});
|
|
1046
1046
|
});
|
|
1047
|
-
return
|
|
1047
|
+
return t(() => {
|
|
1048
1048
|
a && r.update({
|
|
1049
|
-
activeTriggerElement:
|
|
1049
|
+
activeTriggerElement: n.current,
|
|
1050
1050
|
...i
|
|
1051
1051
|
});
|
|
1052
1052
|
}, [
|
|
1053
1053
|
a,
|
|
1054
1054
|
r,
|
|
1055
|
-
|
|
1055
|
+
n,
|
|
1056
1056
|
...Object.values(i)
|
|
1057
1057
|
]), {
|
|
1058
1058
|
registerTrigger: s,
|
|
@@ -1060,14 +1060,14 @@ function bt(e, t, r, i) {
|
|
|
1060
1060
|
};
|
|
1061
1061
|
}
|
|
1062
1062
|
function xt(e) {
|
|
1063
|
-
let
|
|
1064
|
-
|
|
1065
|
-
if (!
|
|
1063
|
+
let n = e.useState("open");
|
|
1064
|
+
t(() => {
|
|
1065
|
+
if (!n) {
|
|
1066
1066
|
e.state.triggerCount !== 0 && e.set("triggerCount", 0);
|
|
1067
1067
|
return;
|
|
1068
1068
|
}
|
|
1069
|
-
let
|
|
1070
|
-
if (e.state.triggerCount !==
|
|
1069
|
+
let t = e.context.triggerElements.size, r = {};
|
|
1070
|
+
if (e.state.triggerCount !== t && (r.triggerCount = t), !e.select("activeTriggerId") && t === 1) {
|
|
1071
1071
|
let t = e.context.triggerElements.entries().next();
|
|
1072
1072
|
if (!t.done) {
|
|
1073
1073
|
let [e, n] = t.value;
|
|
@@ -1076,18 +1076,18 @@ function xt(e) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
(r.triggerCount !== void 0 || r.activeTriggerId !== void 0) && e.update(r);
|
|
1078
1078
|
}, [
|
|
1079
|
-
|
|
1079
|
+
n,
|
|
1080
1080
|
e,
|
|
1081
1081
|
e.useState("triggerCount")
|
|
1082
1082
|
]);
|
|
1083
1083
|
}
|
|
1084
1084
|
function St(e, t, n) {
|
|
1085
|
-
let { mounted: r, setMounted: i, transitionStatus: a } =
|
|
1085
|
+
let { mounted: r, setMounted: i, transitionStatus: a } = h(e);
|
|
1086
1086
|
t.useSyncedValues({
|
|
1087
1087
|
mounted: r,
|
|
1088
1088
|
transitionStatus: a
|
|
1089
1089
|
});
|
|
1090
|
-
let o =
|
|
1090
|
+
let o = c(() => {
|
|
1091
1091
|
i(!1), t.update({
|
|
1092
1092
|
activeTriggerId: null,
|
|
1093
1093
|
activeTriggerElement: null,
|
|
@@ -1095,7 +1095,7 @@ function St(e, t, n) {
|
|
|
1095
1095
|
preventUnmountingOnClose: !1
|
|
1096
1096
|
}), n?.(), t.context.onOpenChangeComplete?.(!1);
|
|
1097
1097
|
}), s = t.useState("preventUnmountingOnClose");
|
|
1098
|
-
return
|
|
1098
|
+
return g({
|
|
1099
1099
|
enabled: r && !e && !s,
|
|
1100
1100
|
open: e,
|
|
1101
1101
|
ref: t.context.popupRef,
|
|
@@ -1107,19 +1107,19 @@ function St(e, t, n) {
|
|
|
1107
1107
|
transitionStatus: a
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
|
-
function Ct(e,
|
|
1111
|
-
e.useSyncedValues(
|
|
1110
|
+
function Ct(e, n) {
|
|
1111
|
+
e.useSyncedValues(n), t(() => () => {
|
|
1112
1112
|
e.update({
|
|
1113
|
-
activeTriggerProps:
|
|
1114
|
-
inactiveTriggerProps:
|
|
1115
|
-
popupProps:
|
|
1113
|
+
activeTriggerProps: i,
|
|
1114
|
+
inactiveTriggerProps: i,
|
|
1115
|
+
popupProps: i
|
|
1116
1116
|
});
|
|
1117
1117
|
}, [e]);
|
|
1118
1118
|
}
|
|
1119
|
-
function wt(e,
|
|
1120
|
-
|
|
1121
|
-
!
|
|
1122
|
-
}, [
|
|
1119
|
+
function wt(e, n) {
|
|
1120
|
+
t(() => {
|
|
1121
|
+
!n && e.state.openMethod !== null && e.set("openMethod", null);
|
|
1122
|
+
}, [n, e]), t(() => () => {
|
|
1123
1123
|
e.state.openMethod !== null && e.set("openMethod", null);
|
|
1124
1124
|
}, [e]);
|
|
1125
1125
|
}
|
|
@@ -1157,7 +1157,7 @@ var Tt = class {
|
|
|
1157
1157
|
return this.idMap.size;
|
|
1158
1158
|
}
|
|
1159
1159
|
}, Et = function(e) {
|
|
1160
|
-
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle =
|
|
1160
|
+
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = m.startingStyle] = "startingStyle", e[e.endingStyle = m.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
|
|
1161
1161
|
}({}), Dt = /*#__PURE__*/ function(e) {
|
|
1162
1162
|
return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
|
|
1163
1163
|
}({}), Ot = { [Dt.popupOpen]: "" }, kt = {
|
|
@@ -1176,4 +1176,4 @@ var Tt = class {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
};
|
|
1178
1178
|
//#endregion
|
|
1179
|
-
export { Ie as A,
|
|
1179
|
+
export { Ie as A, Q as B, $ as C, Ve as D, Ue as E, Te as F, ve as G, pe as H, De as I, fe as J, ye as K, Oe as L, Ne as M, je as N, ze as O, Ee as P, we as R, it as S, He as T, he as U, Se as V, ge as W, I as X, X as Y, de as Z, mt as _, Nt as a, st as b, yt as c, Ct as d, wt as f, ht as g, vt as h, Pt as i, Pe as j, Be as k, xt as l, bt as m, Dt as n, Tt as o, _t as p, Z as q, Ft as r, gt as s, Et as t, St as u, ft as v, qe as w, rt as x, dt as y, Ce as z };
|