dawn-ui-react 1.0.0-alpha.2 → 1.0.0-alpha.4
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/{Input-DXDwtOqf.js → Input-OKlHdkuM.js} +4 -4
- package/dist/{clamp-CYKyjuJR.js → clamp-DmGg4LPI.js} +50 -50
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.types.d.ts +1 -0
- package/dist/components/drawer/drawer-close.d.ts +2 -0
- package/dist/components/drawer/drawer-content.d.ts +2 -0
- package/dist/components/drawer/drawer-description.d.ts +2 -0
- package/dist/components/drawer/drawer-header.d.ts +2 -0
- package/dist/components/drawer/drawer-popup.d.ts +2 -0
- package/dist/components/drawer/drawer-provider.d.ts +2 -0
- package/dist/components/drawer/drawer-title.d.ts +2 -0
- package/dist/components/drawer/drawer-trigger.d.ts +2 -0
- package/dist/components/drawer/drawer.d.ts +2 -0
- package/dist/components/drawer/drawer.types.d.ts +10 -0
- package/dist/components/drawer/index.d.ts +10 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input-otp/index.d.ts +2 -1
- package/dist/components/input-otp/input-otp-separator.d.ts +2 -0
- package/dist/components/input-otp/input-otp-slot.d.ts +1 -1
- package/dist/components/input-otp/input-otp.types.d.ts +4 -3
- package/dist/components/layer-tree/index.d.ts +4 -1
- package/dist/components/layer-tree/layer-tree-body.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-footer.d.ts +2 -0
- package/dist/components/layer-tree/layer-tree-node-toggle.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-node.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-row.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-sort.d.ts +4 -0
- package/dist/components/layer-tree/layer-tree-utils.d.ts +83 -0
- package/dist/components/layer-tree/layer-tree.d.ts +9 -4
- package/dist/components/layer-tree/layer-tree.types.d.ts +11 -4
- package/dist/dawn-ui-react.js +12667 -7026
- package/dist/dawn-ui-react.umd.cjs +71 -24
- package/dist/field-errors--n7vO1Q7.js +21 -0
- package/dist/{field-input-Doplzz0V.js → field-input-DTMDvBjs.js} +3 -3
- package/dist/{field-input-group-CzX_hAjq.js → field-input-group-DJu_VEsX.js} +2 -2
- package/dist/{field-input-group-input-micw-J2Y.js → field-input-group-input-ChT-sn5W.js} +2 -2
- package/dist/{field-label-C2atREm0.js → field-label-CwhT-9uR.js} +1 -1
- package/dist/{field-select--mY7GbNz.js → field-select-CgVfjmOj.js} +427 -429
- package/dist/{field-slider-D54-Z8Ds.js → field-slider-DwZvJqd0.js} +303 -303
- package/dist/{form-context-DqrRdk0d.js → form-context-Cl2FGxOa.js} +37 -34
- package/dist/{input-group-DgFUfXr7.js → input-group-BGe0Ag-A.js} +1 -1
- package/dist/{input-group-input-DNZQ6g-3.js → input-group-input-DELPW-48.js} +1 -1
- package/dist/{input.types-D8b-1Bcm.js → input.types-BgnT0r4F.js} +1 -1
- package/dist/{useLabelableId-BaWKrZ8_.js → useLabelableId-BxNdsOlB.js} +51 -51
- package/package.json +23 -21
- package/dist/field-errors-DVQtEKG3.js +0 -19
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { F as t, G as n, H as r, I as i, J as a, K as o, M as s, Q as c, T as l, U as u, V as d, W as f, X as p, Z as m, _ as h, f as g, i as _, k as v, q as y, v as b } from "./form-context-
|
|
3
|
-
import {
|
|
4
|
-
import { $t as
|
|
2
|
+
import { F as t, G as n, H as r, I as i, J as a, K as o, M as s, Q as c, T as l, U as u, V as d, W as f, X as p, Z as m, _ as h, f as g, i as _, k as v, q as y, v as b } from "./form-context-Cl2FGxOa.js";
|
|
3
|
+
import { F as x, G as S, K as C, P as w, W as T, c as E, h as ee, i as D, l as O, n as te, o as k, p as ne, r as A, s as j, t as re, u as M, w as ie } from "./useLabelableId-BxNdsOlB.js";
|
|
4
|
+
import { $t as N, At as P, Bt as ae, Ct as F, D as I, Dt as oe, E as L, Et as R, Ft as z, G as B, H as V, Ht as H, I as se, J as U, Jt as ce, K as le, Lt as W, M as G, Mt as ue, Nt as K, Ot as de, P as fe, Pt as pe, Q as q, Qt as me, Rt as he, S as J, St as ge, T as Y, Tt as _e, U as ve, Ut as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Z as Ee, Zt as De, _ as Oe, _t as ke, a as Ae, an as X, at as je, c as Me, dn as Ne, f as Pe, fn as Fe, g as Ie, h as Le, hn as Re, i as ze, j as Be, jt as Ve, kt as He, l as Ue, ln as We, m as Ge, mn as Ke, n as qe, nn as Je, on as Ye, p as Xe, q as Ze, qt as Qe, r as $e, t as et, un as tt, vt as nt, wt as rt, x as it, yt as at, z as ot, zt as st } from "./clamp-DmGg4LPI.js";
|
|
5
5
|
import { t as ct } from "./cn-CXogf8HW.js";
|
|
6
6
|
import * as Z from "react";
|
|
7
7
|
import { jsx as Q, jsxs as lt } from "react/jsx-runtime";
|
|
8
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
8
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useScrollLock.js
|
|
9
9
|
var ut = {}, dt = {}, ft = "";
|
|
10
10
|
function pt(e) {
|
|
11
11
|
if (typeof document > "u") return !1;
|
|
12
|
-
let t =
|
|
12
|
+
let t = j(e);
|
|
13
13
|
return v(t).innerWidth - t.documentElement.clientWidth > 0;
|
|
14
14
|
}
|
|
15
15
|
function mt(e) {
|
|
16
16
|
if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u") return !1;
|
|
17
|
-
let n =
|
|
17
|
+
let n = j(e), r = n.documentElement, i = n.body, a = t(r) ? r : i, o = a.style.overflowY, s = r.style.scrollbarGutter;
|
|
18
18
|
r.style.scrollbarGutter = "stable", a.style.overflowY = "scroll";
|
|
19
19
|
let c = a.offsetWidth;
|
|
20
20
|
a.style.overflowY = "hidden";
|
|
@@ -22,7 +22,7 @@ function mt(e) {
|
|
|
22
22
|
return a.style.overflowY = o, r.style.scrollbarGutter = s, c === l;
|
|
23
23
|
}
|
|
24
24
|
function ht(e) {
|
|
25
|
-
let n =
|
|
25
|
+
let n = j(e), r = n.documentElement, i = n.body, a = t(r) ? r : i, o = {
|
|
26
26
|
overflowY: a.style.overflowY,
|
|
27
27
|
overflowX: a.style.overflowX
|
|
28
28
|
};
|
|
@@ -34,7 +34,7 @@ function ht(e) {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
function gt(e) {
|
|
37
|
-
let n =
|
|
37
|
+
let n = j(e), r = n.documentElement, i = n.body, a = v(r), o = 0, s = 0, c = !1, l = Ne.create();
|
|
38
38
|
if (X && (a.visualViewport?.scale ?? 1) !== 1) return () => {};
|
|
39
39
|
function u() {
|
|
40
40
|
let n = a.getComputedStyle(r), l = a.getComputedStyle(i), u = (n.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
|
|
@@ -97,7 +97,7 @@ var _t = new class {
|
|
|
97
97
|
};
|
|
98
98
|
lock(e) {
|
|
99
99
|
if (this.lockCount === 0 || this.restore !== null) return;
|
|
100
|
-
let t =
|
|
100
|
+
let t = j(e).documentElement, r = v(t).getComputedStyle(t).overflowY;
|
|
101
101
|
if (r === "hidden" || r === "clip") {
|
|
102
102
|
this.restore = n;
|
|
103
103
|
return;
|
|
@@ -112,7 +112,7 @@ function vt(e = !0, t = null) {
|
|
|
112
112
|
}, [e, t]);
|
|
113
113
|
}
|
|
114
114
|
//#endregion
|
|
115
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
115
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus.js
|
|
116
116
|
var yt = 0;
|
|
117
117
|
function bt(e, t = {}) {
|
|
118
118
|
let { preventScroll: r = !1, cancelPrevious: i = !0, sync: a = !1 } = t;
|
|
@@ -125,7 +125,7 @@ function bt(e, t = {}) {
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
//#endregion
|
|
128
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
128
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers.js
|
|
129
129
|
var xt = {
|
|
130
130
|
inert: /* @__PURE__ */ new WeakMap(),
|
|
131
131
|
"aria-hidden": /* @__PURE__ */ new WeakMap()
|
|
@@ -182,16 +182,16 @@ function jt(e, t, n, r, { mark: i = !0, markerIgnoreElements: a = [] }) {
|
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
184
|
function Mt(e, t = {}) {
|
|
185
|
-
let { ariaHidden: n = !1, inert: r = !1, mark: i = !0, markerIgnoreElements: a = [] } = t, o =
|
|
185
|
+
let { ariaHidden: n = !1, inert: r = !1, mark: i = !0, markerIgnoreElements: a = [] } = t, o = j(e[0]).body;
|
|
186
186
|
return jt(e, o, n, r, {
|
|
187
187
|
mark: i,
|
|
188
188
|
markerIgnoreElements: a
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
192
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js
|
|
193
193
|
function Nt(e, t) {
|
|
194
|
-
let n = v(
|
|
194
|
+
let n = v(M(e));
|
|
195
195
|
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") : "";
|
|
196
196
|
}
|
|
197
197
|
var Pt = 20, Ft = [];
|
|
@@ -205,118 +205,118 @@ function Rt() {
|
|
|
205
205
|
return It(), Ft[Ft.length - 1]?.deref();
|
|
206
206
|
}
|
|
207
207
|
function zt(e) {
|
|
208
|
-
return e ?
|
|
208
|
+
return e ? F(e) ? e : rt(e)[0] || e : null;
|
|
209
209
|
}
|
|
210
210
|
function Bt(e, t) {
|
|
211
211
|
if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !t.current.includes("floating") && !e.getAttribute("role")?.includes("dialog")) return;
|
|
212
212
|
let n = ke(e).filter((e) => {
|
|
213
213
|
let t = e.getAttribute("data-tabindex") || "";
|
|
214
|
-
return
|
|
214
|
+
return F(e) || e.hasAttribute("data-tabindex") && !t.startsWith("-");
|
|
215
215
|
}), r = e.getAttribute("tabindex");
|
|
216
216
|
t.current.includes("floating") || n.length === 0 ? r !== "0" && e.setAttribute("tabindex", "0") : (r !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
|
|
217
217
|
}
|
|
218
218
|
function Vt(e) {
|
|
219
|
-
let { context: t, children: n, disabled: r = !1, initialFocus: i = !0, returnFocus: a = !0, restoreFocus: o = !1, modal: c = !0, closeOnFocusOut: l = !0, openInteractionType: u = "", nextFocusableElement: d, previousFocusableElement: f, beforeContentFocusGuardRef: h, externalTree: g, getInsideElements: _ } = e, v = "rootStore" in t ? t.rootStore : t, b = v.useState("open"),
|
|
219
|
+
let { context: t, children: n, disabled: r = !1, initialFocus: i = !0, returnFocus: a = !0, restoreFocus: o = !1, modal: c = !0, closeOnFocusOut: l = !0, openInteractionType: u = "", nextFocusableElement: d, previousFocusableElement: f, beforeContentFocusGuardRef: h, externalTree: g, getInsideElements: _ } = e, v = "rootStore" in t ? t.rootStore : t, b = v.useState("open"), x = v.useState("domReferenceElement"), S = v.useState("floatingElement"), { events: C, dataRef: w } = v.context, T = m(() => w.current.floatingContext?.nodeId), ee = i === !1, D = Qe(x) && ee, te = Z.useRef(["content"]), k = le(i), A = le(a), re = le(u), N = G(g), P = se(), I = Z.useRef(!1), oe = Z.useRef(!1), L = Z.useRef(!1), R = Z.useRef(null), z = Z.useRef(""), B = Z.useRef(""), U = Z.useRef(null), W = Z.useRef(null), K = y(U, h, P?.beforeInsideRef), de = y(W, P?.afterInsideRef), fe = Te(), pe = Te(), me = Fe(), he = P != null, J = Se(S), Y = m((e = J) => e ? rt(e) : []), _e = m(() => _?.().filter((e) => e != null) ?? []);
|
|
220
220
|
Z.useEffect(() => {
|
|
221
221
|
if (r || !c) return;
|
|
222
222
|
function e(e) {
|
|
223
|
-
e.key === "Tab" &&
|
|
223
|
+
e.key === "Tab" && O(J, E(j(J))) && Y().length === 0 && !D && be(e);
|
|
224
224
|
}
|
|
225
|
-
return q(
|
|
225
|
+
return q(j(J), "keydown", e);
|
|
226
226
|
}, [
|
|
227
227
|
r,
|
|
228
|
-
|
|
228
|
+
x,
|
|
229
229
|
J,
|
|
230
230
|
c,
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
te,
|
|
232
|
+
D,
|
|
233
233
|
Y
|
|
234
234
|
]), Z.useEffect(() => {
|
|
235
235
|
if (r || !b) return;
|
|
236
|
-
let e =
|
|
236
|
+
let e = j(J);
|
|
237
237
|
function t() {
|
|
238
|
-
|
|
238
|
+
L.current = !1;
|
|
239
239
|
}
|
|
240
240
|
function n(e) {
|
|
241
|
-
let t =
|
|
242
|
-
|
|
241
|
+
let t = M(e), n = _e();
|
|
242
|
+
L.current = !(O(S, t) || O(x, t) || O(P?.portalNode, t) || n.some((e) => e === t || O(e, t))), B.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (oe.current = !0);
|
|
243
243
|
}
|
|
244
244
|
function i() {
|
|
245
|
-
|
|
245
|
+
B.current = "keyboard";
|
|
246
246
|
}
|
|
247
247
|
return Ze(q(e, "pointerdown", n, !0), q(e, "pointerup", t, !0), q(e, "pointercancel", t, !0), q(e, "keydown", i, !0));
|
|
248
248
|
}, [
|
|
249
249
|
r,
|
|
250
|
-
C,
|
|
251
250
|
S,
|
|
251
|
+
x,
|
|
252
252
|
J,
|
|
253
253
|
b,
|
|
254
|
-
|
|
254
|
+
P,
|
|
255
255
|
_e
|
|
256
256
|
]), Z.useEffect(() => {
|
|
257
257
|
if (r || !l) return;
|
|
258
|
-
let e =
|
|
258
|
+
let e = j(J);
|
|
259
259
|
function t() {
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
oe.current = !0, pe.start(0, () => {
|
|
261
|
+
oe.current = !1;
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
function n(e) {
|
|
265
|
-
let t =
|
|
266
|
-
|
|
265
|
+
let t = M(e);
|
|
266
|
+
F(t) && (R.current = t);
|
|
267
267
|
}
|
|
268
268
|
function i(t) {
|
|
269
|
-
let n = t.relatedTarget, r = t.currentTarget, i =
|
|
269
|
+
let n = t.relatedTarget, r = t.currentTarget, i = M(t);
|
|
270
270
|
queueMicrotask(() => {
|
|
271
|
-
let a = T(), l = v.context.triggerElements, u = _e(), p = n?.hasAttribute(
|
|
271
|
+
let a = T(), l = v.context.triggerElements, u = _e(), p = n?.hasAttribute(V("focus-guard")) && [
|
|
272
272
|
U.current,
|
|
273
273
|
W.current,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
274
|
+
P?.beforeInsideRef.current,
|
|
275
|
+
P?.afterInsideRef.current,
|
|
276
|
+
P?.beforeOutsideRef.current,
|
|
277
|
+
P?.afterOutsideRef.current,
|
|
278
278
|
tt(f),
|
|
279
279
|
tt(d)
|
|
280
|
-
].includes(n), m = !(
|
|
281
|
-
if (r ===
|
|
280
|
+
].includes(n), m = !(O(x, n) || O(S, n) || O(n, S) || O(P?.portalNode, n) || u.some((e) => e === n || O(e, n)) || n != null && l.hasElement(n) || l.hasMatchingElement((e) => O(e, n)) || p || N && (ye(N.nodesRef.current, a).find((e) => O(e.context?.elements.floating, n) || O(e.context?.elements.domReference, n)) || H(N.nodesRef.current, a).find((e) => [e.context?.elements.floating, Se(e.context?.elements.floating)].includes(n) || e.context?.elements.domReference === n)));
|
|
281
|
+
if (r === x && J && Bt(J, te), o && r !== x && !ue(i) && E(e) === e.body) {
|
|
282
282
|
if (s(J) && (J.focus(), o === "popup")) {
|
|
283
283
|
me.request(() => {
|
|
284
284
|
J.focus();
|
|
285
285
|
});
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
|
-
let e = Y(), t =
|
|
288
|
+
let e = Y(), t = R.current, n = (t && e.includes(t) ? t : null) || e[e.length - 1] || J;
|
|
289
289
|
s(n) && n.focus();
|
|
290
290
|
}
|
|
291
291
|
if (w.current.insideReactTree) {
|
|
292
292
|
w.current.insideReactTree = !1;
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
(
|
|
295
|
+
(D || !c) && n && m && !oe.current && (D || n !== Rt()) && (I.current = !0, v.setOpen(!1, ne(ie, t)));
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
function a() {
|
|
299
|
-
|
|
299
|
+
L.current || (w.current.insideReactTree = !0, fe.start(0, () => {
|
|
300
300
|
w.current.insideReactTree = !1;
|
|
301
301
|
}));
|
|
302
302
|
}
|
|
303
|
-
let u = s(
|
|
304
|
-
if (!(!
|
|
303
|
+
let u = s(x) ? x : null;
|
|
304
|
+
if (!(!S && !u)) return Ze(u && q(u, "focusout", i), u && q(u, "pointerdown", t), S && q(S, "focusin", n), S && q(S, "focusout", i), S && P && q(S, "focusout", a, !0));
|
|
305
305
|
}, [
|
|
306
306
|
r,
|
|
307
|
+
x,
|
|
307
308
|
S,
|
|
308
|
-
C,
|
|
309
309
|
J,
|
|
310
310
|
c,
|
|
311
|
+
N,
|
|
311
312
|
P,
|
|
312
|
-
F,
|
|
313
313
|
v,
|
|
314
314
|
l,
|
|
315
315
|
o,
|
|
316
316
|
Y,
|
|
317
|
-
|
|
317
|
+
D,
|
|
318
318
|
T,
|
|
319
|
-
|
|
319
|
+
te,
|
|
320
320
|
w,
|
|
321
321
|
fe,
|
|
322
322
|
pe,
|
|
@@ -325,48 +325,46 @@ function Vt(e) {
|
|
|
325
325
|
f,
|
|
326
326
|
_e
|
|
327
327
|
]), Z.useEffect(() => {
|
|
328
|
-
if (r || !
|
|
329
|
-
let e = Array.from(
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
..._e()
|
|
338
|
-
],
|
|
328
|
+
if (r || !S || !b) return;
|
|
329
|
+
let e = Array.from(P?.portalNode?.querySelectorAll(`[${V("portal")}]`) || []), t = (N ? H(N.nodesRef.current, T()) : []).find((e) => Qe(e.context?.elements.domReference || null))?.context?.elements.domReference, n = Mt([
|
|
330
|
+
S,
|
|
331
|
+
...e,
|
|
332
|
+
U.current,
|
|
333
|
+
W.current,
|
|
334
|
+
P?.beforeOutsideRef.current,
|
|
335
|
+
P?.afterOutsideRef.current,
|
|
336
|
+
..._e(),
|
|
339
337
|
t,
|
|
340
338
|
tt(f),
|
|
341
339
|
tt(d),
|
|
342
|
-
|
|
340
|
+
D ? x : null
|
|
343
341
|
].filter((e) => e != null), {
|
|
344
|
-
ariaHidden: c ||
|
|
342
|
+
ariaHidden: c || D,
|
|
345
343
|
mark: !1
|
|
346
|
-
}), i = Mt([
|
|
344
|
+
}), i = Mt([S, ...e].filter((e) => e != null));
|
|
347
345
|
return () => {
|
|
348
346
|
i(), n();
|
|
349
347
|
};
|
|
350
348
|
}, [
|
|
351
349
|
b,
|
|
352
350
|
r,
|
|
351
|
+
x,
|
|
353
352
|
S,
|
|
354
|
-
C,
|
|
355
353
|
c,
|
|
356
|
-
|
|
357
|
-
F,
|
|
358
|
-
O,
|
|
354
|
+
te,
|
|
359
355
|
P,
|
|
356
|
+
D,
|
|
357
|
+
N,
|
|
360
358
|
T,
|
|
361
359
|
d,
|
|
362
360
|
f,
|
|
363
361
|
_e
|
|
364
362
|
]), p(() => {
|
|
365
363
|
if (!b || r || !s(J)) return;
|
|
366
|
-
let e = E(
|
|
364
|
+
let e = E(j(J));
|
|
367
365
|
queueMicrotask(() => {
|
|
368
|
-
let t =
|
|
369
|
-
if (n === void 0 || n === !1 ||
|
|
366
|
+
let t = k.current, n = typeof t == "function" ? t(re.current || "") : t;
|
|
367
|
+
if (n === void 0 || n === !1 || O(J, e)) return;
|
|
370
368
|
let r = null, i = () => (r ??= Y(J), r[0] || J), a;
|
|
371
369
|
a = n === !0 || n === null ? i() : tt(n), a ||= i(), bt(a, { preventScroll: a === J });
|
|
372
370
|
});
|
|
@@ -374,86 +372,86 @@ function Vt(e) {
|
|
|
374
372
|
r,
|
|
375
373
|
b,
|
|
376
374
|
J,
|
|
377
|
-
|
|
375
|
+
ee,
|
|
378
376
|
Y,
|
|
379
|
-
|
|
380
|
-
|
|
377
|
+
k,
|
|
378
|
+
re
|
|
381
379
|
]), p(() => {
|
|
382
380
|
if (r || !J) return;
|
|
383
|
-
let e =
|
|
381
|
+
let e = j(J);
|
|
384
382
|
Lt(E(e));
|
|
385
383
|
function t(e) {
|
|
386
|
-
if (e.open || (
|
|
387
|
-
else if (st(e.nativeEvent) ||
|
|
384
|
+
if (e.open || (z.current = Nt(e.nativeEvent, B.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (I.current = !0), e.reason === "outside-press") if (e.nested) I.current = !1;
|
|
385
|
+
else if (st(e.nativeEvent) || ae(e.nativeEvent)) I.current = !1;
|
|
388
386
|
else {
|
|
389
387
|
let e = !1;
|
|
390
|
-
|
|
388
|
+
j(J).createElement("div").focus({ get preventScroll() {
|
|
391
389
|
return e = !0, !1;
|
|
392
|
-
} }), e ?
|
|
390
|
+
} }), e ? I.current = !1 : I.current = !0;
|
|
393
391
|
}
|
|
394
392
|
}
|
|
395
|
-
|
|
393
|
+
C.on("openchange", t);
|
|
396
394
|
function n() {
|
|
397
|
-
let e =
|
|
395
|
+
let e = A.current, t = typeof e == "function" ? e(z.current) : e;
|
|
398
396
|
if (t === void 0 || t === !1) return null;
|
|
399
397
|
if (t === null && (t = !0), typeof t == "boolean") {
|
|
400
|
-
let e =
|
|
398
|
+
let e = x || Rt();
|
|
401
399
|
return e && e.isConnected ? e : null;
|
|
402
400
|
}
|
|
403
|
-
let n =
|
|
401
|
+
let n = x || Rt();
|
|
404
402
|
return tt(t) || n || null;
|
|
405
403
|
}
|
|
406
404
|
return () => {
|
|
407
|
-
|
|
408
|
-
let r = E(e), i = _e(), a =
|
|
405
|
+
C.off("openchange", t);
|
|
406
|
+
let r = E(e), i = _e(), a = O(S, r) || i.some((e) => e === r || O(e, r)) || N && ye(N.nodesRef.current, T(), !1).some((e) => O(e.context?.elements.floating, r)), o = A.current, c = n();
|
|
409
407
|
queueMicrotask(() => {
|
|
410
408
|
let t = zt(c), n = typeof o != "boolean";
|
|
411
|
-
o && !
|
|
409
|
+
o && !I.current && s(t) && (!(!n && t !== r && r !== e.body) || a) && t.focus({ preventScroll: !0 }), I.current = !1;
|
|
412
410
|
});
|
|
413
411
|
};
|
|
414
412
|
}, [
|
|
415
413
|
r,
|
|
416
|
-
|
|
414
|
+
S,
|
|
417
415
|
J,
|
|
418
|
-
|
|
416
|
+
A,
|
|
419
417
|
w,
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
418
|
+
C,
|
|
419
|
+
N,
|
|
420
|
+
x,
|
|
423
421
|
T,
|
|
424
422
|
_e
|
|
425
423
|
]), p(() => {
|
|
426
|
-
if (!X || b || !
|
|
427
|
-
let e = E(
|
|
428
|
-
!s(e) || !ce(e) ||
|
|
429
|
-
}, [b,
|
|
430
|
-
if (!(r || !
|
|
424
|
+
if (!X || b || !S) return;
|
|
425
|
+
let e = E(j(S));
|
|
426
|
+
!s(e) || !ce(e) || O(S, e) && e.blur();
|
|
427
|
+
}, [b, S]), p(() => {
|
|
428
|
+
if (!(r || !P)) return P.setFocusManagerState({
|
|
431
429
|
modal: c,
|
|
432
430
|
closeOnFocusOut: l,
|
|
433
431
|
open: b,
|
|
434
432
|
onOpenChange: v.setOpen,
|
|
435
|
-
domReference:
|
|
433
|
+
domReference: x
|
|
436
434
|
}), () => {
|
|
437
|
-
|
|
435
|
+
P.setFocusManagerState(null);
|
|
438
436
|
};
|
|
439
437
|
}, [
|
|
440
438
|
r,
|
|
441
|
-
|
|
439
|
+
P,
|
|
442
440
|
c,
|
|
443
441
|
b,
|
|
444
442
|
v,
|
|
445
443
|
l,
|
|
446
|
-
|
|
444
|
+
x
|
|
447
445
|
]), p(() => {
|
|
448
|
-
if (!(r || !J)) return Bt(J,
|
|
446
|
+
if (!(r || !J)) return Bt(J, te), () => {
|
|
449
447
|
queueMicrotask(It);
|
|
450
448
|
};
|
|
451
449
|
}, [
|
|
452
450
|
r,
|
|
453
451
|
J,
|
|
454
|
-
|
|
452
|
+
te
|
|
455
453
|
]);
|
|
456
|
-
let xe = !r && (c ? !
|
|
454
|
+
let xe = !r && (c ? !D : !0) && (he || c);
|
|
457
455
|
return /* @__PURE__ */ lt(Z.Fragment, { children: [
|
|
458
456
|
xe && /* @__PURE__ */ Q(ve, {
|
|
459
457
|
"data-type": "inside",
|
|
@@ -462,7 +460,7 @@ function Vt(e) {
|
|
|
462
460
|
if (c) {
|
|
463
461
|
let e = Y();
|
|
464
462
|
bt(e[e.length - 1]);
|
|
465
|
-
} else
|
|
463
|
+
} else P?.portalNode && (I.current = !1, ge(e, P.portalNode) ? nt(x)?.focus() : tt(f ?? P.beforeOutsideRef)?.focus());
|
|
466
464
|
}
|
|
467
465
|
}),
|
|
468
466
|
n,
|
|
@@ -470,24 +468,24 @@ function Vt(e) {
|
|
|
470
468
|
"data-type": "inside",
|
|
471
469
|
ref: de,
|
|
472
470
|
onFocus: (e) => {
|
|
473
|
-
c ? bt(Y()[0]) :
|
|
471
|
+
c ? bt(Y()[0]) : P?.portalNode && (l && (I.current = !0), ge(e, P.portalNode) ? at(x)?.focus() : tt(d ?? P.afterOutsideRef)?.focus());
|
|
474
472
|
}
|
|
475
473
|
})
|
|
476
474
|
] });
|
|
477
475
|
}
|
|
478
476
|
//#endregion
|
|
479
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
477
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClick.js
|
|
480
478
|
function Ht(e, t = {}) {
|
|
481
|
-
let n = "rootStore" in e ? e.rootStore : e, r = n.context.dataRef, { enabled: i = !0, event: a = "click", toggle: o = !0, ignoreMouse: s = !1, stickIfOpen: c = !0, touchOpenDelay: l = 0, reason: u =
|
|
479
|
+
let n = "rootStore" in e ? e.rootStore : e, r = n.context.dataRef, { enabled: i = !0, event: a = "click", toggle: o = !0, ignoreMouse: s = !1, stickIfOpen: c = !0, touchOpenDelay: l = 0, reason: u = T } = t, d = Z.useRef(void 0), p = Fe(), m = Te(), h = Z.useMemo(() => ({
|
|
482
480
|
onPointerDown(e) {
|
|
483
481
|
d.current = e.pointerType;
|
|
484
482
|
},
|
|
485
483
|
onMouseDown(e) {
|
|
486
484
|
let t = d.current, i = e.nativeEvent, f = n.select("open");
|
|
487
485
|
if (e.button !== 0 || a === "click" || he(t, !0) && s) return;
|
|
488
|
-
let h = r.current.openEvent, g = h?.type, _ = n.select("domReferenceElement") !== e.currentTarget, v = f && _ || !(f && o && (!(h && c) || g === "click" || g === "mousedown")), y =
|
|
486
|
+
let h = r.current.openEvent, g = h?.type, _ = n.select("domReferenceElement") !== e.currentTarget, v = f && _ || !(f && o && (!(h && c) || g === "click" || g === "mousedown")), y = M(i);
|
|
489
487
|
if (ce(y)) {
|
|
490
|
-
let e =
|
|
488
|
+
let e = ne(u, i, y);
|
|
491
489
|
v && t === "touch" && l > 0 ? m.start(l, () => {
|
|
492
490
|
n.setOpen(!0, e);
|
|
493
491
|
}) : n.setOpen(v, e);
|
|
@@ -495,7 +493,7 @@ function Ht(e, t = {}) {
|
|
|
495
493
|
}
|
|
496
494
|
let b = e.currentTarget;
|
|
497
495
|
p.request(() => {
|
|
498
|
-
let e =
|
|
496
|
+
let e = ne(u, i, b);
|
|
499
497
|
v && t === "touch" && l > 0 ? m.start(l, () => {
|
|
500
498
|
n.setOpen(!0, e);
|
|
501
499
|
}) : n.setOpen(v, e);
|
|
@@ -509,7 +507,7 @@ function Ht(e, t = {}) {
|
|
|
509
507
|
return;
|
|
510
508
|
}
|
|
511
509
|
if (he(t, !0) && s) return;
|
|
512
|
-
let i = n.select("open"), f = r.current.openEvent, p = n.select("domReferenceElement") !== e.currentTarget, h = i && p || !(i && o && (!(f && c) || W(f))), g =
|
|
510
|
+
let i = n.select("open"), f = r.current.openEvent, p = n.select("domReferenceElement") !== e.currentTarget, h = i && p || !(i && o && (!(f && c) || W(f))), g = ne(u, e.nativeEvent, e.currentTarget);
|
|
513
511
|
h && t === "touch" && l > 0 ? m.start(l, () => {
|
|
514
512
|
n.setOpen(!0, g);
|
|
515
513
|
}) : n.setOpen(h, g);
|
|
@@ -532,7 +530,7 @@ function Ht(e, t = {}) {
|
|
|
532
530
|
return Z.useMemo(() => i ? { reference: h } : f, [i, h]);
|
|
533
531
|
}
|
|
534
532
|
//#endregion
|
|
535
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
533
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.js
|
|
536
534
|
var Ut = "Escape";
|
|
537
535
|
function Wt(e, t, n) {
|
|
538
536
|
switch (e) {
|
|
@@ -551,35 +549,35 @@ function qt(e, t, n) {
|
|
|
551
549
|
return Wt(t, n ? e === De : e === me, e === we);
|
|
552
550
|
}
|
|
553
551
|
function Jt(e, t, n, r) {
|
|
554
|
-
return t === "both" || t === "horizontal" && r && r > 1 ? e === Ut : Wt(t, n ? e === me : e === De, e ===
|
|
552
|
+
return t === "both" || t === "horizontal" && r && r > 1 ? e === Ut : Wt(t, n ? e === me : e === De, e === N);
|
|
555
553
|
}
|
|
556
554
|
function Yt(e, t) {
|
|
557
|
-
let n = "rootStore" in e ? e.rootStore : e, r = n.useState("open"), i = n.useState("floatingElement"), a = n.useState("domReferenceElement"), o = n.context.dataRef, { listRef: c, activeIndex: l, onNavigate: u = () => {}, enabled: d = !0, selectedIndex: f = null, allowEscape: h = !1, loopFocus: g = !1, nested: _ = !1, rtl: v = !1, virtual: y = !1, focusItemOnOpen: b = "auto", focusItemOnHover:
|
|
558
|
-
process.env.NODE_ENV !== "production" && (h && (g || console.warn("`useListNavigation` looping must be enabled to allow escaping."), y || console.warn("`useListNavigation` must be virtual to allow escaping.")), T === "vertical" &&
|
|
559
|
-
let
|
|
555
|
+
let n = "rootStore" in e ? e.rootStore : e, r = n.useState("open"), i = n.useState("floatingElement"), a = n.useState("domReferenceElement"), o = n.context.dataRef, { listRef: c, activeIndex: l, onNavigate: u = () => {}, enabled: d = !0, selectedIndex: f = null, allowEscape: h = !1, loopFocus: g = !1, nested: _ = !1, rtl: v = !1, virtual: y = !1, focusItemOnOpen: b = "auto", focusItemOnHover: x = !0, openOnArrowKeyDown: S = !0, disabledIndices: C = void 0, orientation: T = "vertical", parentOrientation: ee, cols: D = 1, id: te, resetOnPointerLeave: k = !0, externalTree: A } = t;
|
|
556
|
+
process.env.NODE_ENV !== "production" && (h && (g || console.warn("`useListNavigation` looping must be enabled to allow escaping."), y || console.warn("`useListNavigation` must be virtual to allow escaping.")), T === "vertical" && D > 1 && console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should", "be either \"horizontal\" or \"both\"."));
|
|
557
|
+
let re = le(Se(i)), N = Be(), F = G(A);
|
|
560
558
|
p(() => {
|
|
561
559
|
o.current.orientation = T;
|
|
562
560
|
}, [o, T]);
|
|
563
|
-
let
|
|
564
|
-
u(
|
|
565
|
-
}), se = Z.useRef(H), U = Z.useRef(!!i), ce = Z.useRef(r), W = Z.useRef(!1), ue = Z.useRef(!1), fe = Z.useRef(null), q = le(
|
|
561
|
+
let I = Qe(a), L = Z.useRef(b), z = Z.useRef(f ?? -1), B = Z.useRef(null), V = Z.useRef(!0), H = m((e) => {
|
|
562
|
+
u(z.current === -1 ? null : z.current, e);
|
|
563
|
+
}), se = Z.useRef(H), U = Z.useRef(!!i), ce = Z.useRef(r), W = Z.useRef(!1), ue = Z.useRef(!1), fe = Z.useRef(null), q = le(C), me = le(r), he = le(f), J = le(k), ge = m(() => {
|
|
566
564
|
function e(e) {
|
|
567
|
-
y ?
|
|
565
|
+
y ? F?.events.emit("virtualfocus", e) : fe.current = bt(e, {
|
|
568
566
|
sync: W.current,
|
|
569
567
|
preventScroll: !0
|
|
570
568
|
});
|
|
571
569
|
}
|
|
572
|
-
let t = c.current[
|
|
570
|
+
let t = c.current[z.current], n = ue.current;
|
|
573
571
|
t && e(t), (W.current ? (e) => e() : requestAnimationFrame)(() => {
|
|
574
|
-
let r = c.current[
|
|
575
|
-
r && (t || e(r), ye && (n || !
|
|
572
|
+
let r = c.current[z.current] || t;
|
|
573
|
+
r && (t || e(r), ye && (n || !V.current) && r.scrollIntoView?.({
|
|
576
574
|
block: "nearest",
|
|
577
575
|
inline: "nearest"
|
|
578
576
|
}));
|
|
579
577
|
});
|
|
580
578
|
});
|
|
581
579
|
p(() => {
|
|
582
|
-
d && (r && i ? (
|
|
580
|
+
d && (r && i ? (z.current = f ?? -1, L.current && f != null && (ue.current = !0, H())) : U.current && (z.current = -1, se.current()));
|
|
583
581
|
}, [
|
|
584
582
|
d,
|
|
585
583
|
r,
|
|
@@ -594,13 +592,13 @@ function Yt(e, t) {
|
|
|
594
592
|
}
|
|
595
593
|
if (i) if (l == null) {
|
|
596
594
|
if (W.current = !1, he.current != null) return;
|
|
597
|
-
if (U.current && (
|
|
595
|
+
if (U.current && (z.current = -1, ge()), (!ce.current || !U.current) && L.current && (B.current != null || L.current === !0 && B.current == null)) {
|
|
598
596
|
let e = 0, t = () => {
|
|
599
|
-
c.current[0] == null ? (e < 2 && (e ? requestAnimationFrame : queueMicrotask)(t), e += 1) : (
|
|
597
|
+
c.current[0] == null ? (e < 2 && (e ? requestAnimationFrame : queueMicrotask)(t), e += 1) : (z.current = B.current == null || Kt(B.current, T, v) || _ ? Ve(c) : P(c), B.current = null, H());
|
|
600
598
|
};
|
|
601
599
|
t();
|
|
602
600
|
}
|
|
603
|
-
} else K(c.current, l) || (
|
|
601
|
+
} else K(c.current, l) || (z.current = l, ge(), ue.current = !1);
|
|
604
602
|
}
|
|
605
603
|
}, [
|
|
606
604
|
d,
|
|
@@ -616,158 +614,158 @@ function Yt(e, t) {
|
|
|
616
614
|
ge,
|
|
617
615
|
q
|
|
618
616
|
]), p(() => {
|
|
619
|
-
if (!d || i || !
|
|
620
|
-
let e =
|
|
621
|
-
t && !r &&
|
|
617
|
+
if (!d || i || !F || y || !U.current) return;
|
|
618
|
+
let e = F.nodesRef.current, t = e.find((e) => e.id === N)?.context?.elements.floating, n = E(j(i)), r = e.some((e) => e.context && O(e.context.elements.floating, n));
|
|
619
|
+
t && !r && V.current && t.focus({ preventScroll: !0 });
|
|
622
620
|
}, [
|
|
623
621
|
d,
|
|
624
622
|
i,
|
|
625
|
-
|
|
626
|
-
|
|
623
|
+
F,
|
|
624
|
+
N,
|
|
627
625
|
y
|
|
628
626
|
]), p(() => {
|
|
629
627
|
se.current = H, ce.current = r, U.current = !!i;
|
|
630
628
|
}), p(() => {
|
|
631
|
-
r || (
|
|
629
|
+
r || (B.current = null, L.current = b);
|
|
632
630
|
}, [r, b]);
|
|
633
631
|
let Y = l != null, ve = m((e) => {
|
|
634
632
|
if (!me.current) return;
|
|
635
633
|
let t = c.current.indexOf(e.currentTarget);
|
|
636
|
-
t !== -1 && (
|
|
634
|
+
t !== -1 && (z.current !== t || l !== t) && (z.current = t, H(e));
|
|
637
635
|
}), ye = Z.useMemo(() => ({
|
|
638
636
|
onFocus(e) {
|
|
639
637
|
W.current = !0, ve(e);
|
|
640
638
|
},
|
|
641
639
|
onClick: ({ currentTarget: e }) => e.focus({ preventScroll: !0 }),
|
|
642
640
|
onMouseMove(e) {
|
|
643
|
-
W.current = !0, ue.current = !1,
|
|
641
|
+
W.current = !0, ue.current = !1, x && ve(e);
|
|
644
642
|
},
|
|
645
643
|
onPointerLeave(e) {
|
|
646
|
-
if (!me.current || !
|
|
644
|
+
if (!me.current || !V.current || e.pointerType === "touch") return;
|
|
647
645
|
W.current = !0;
|
|
648
646
|
let t = e.relatedTarget;
|
|
649
|
-
if (!(!
|
|
650
|
-
let e =
|
|
651
|
-
e &&
|
|
647
|
+
if (!(!x || c.current.includes(t)) && J.current && (fe.current?.(), fe.current = null, z.current = -1, H(e), !y)) {
|
|
648
|
+
let e = re.current, t = E(j(e));
|
|
649
|
+
e && O(e, t) && e.focus({ preventScroll: !0 });
|
|
652
650
|
}
|
|
653
651
|
}
|
|
654
652
|
}), [
|
|
655
653
|
ve,
|
|
656
654
|
me,
|
|
657
|
-
|
|
658
|
-
|
|
655
|
+
re,
|
|
656
|
+
x,
|
|
659
657
|
c,
|
|
660
658
|
H,
|
|
661
659
|
J,
|
|
662
660
|
y
|
|
663
|
-
]), xe = Z.useCallback(() =>
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
661
|
+
]), xe = Z.useCallback(() => ee ?? F?.nodesRef.current.find((e) => e.id === N)?.context?.dataRef?.current.orientation, [
|
|
662
|
+
N,
|
|
663
|
+
F,
|
|
664
|
+
ee
|
|
667
665
|
]), Ce = m((e) => {
|
|
668
|
-
if (
|
|
669
|
-
if (_ && Jt(e.key, T, v,
|
|
670
|
-
Gt(e.key, xe()) || be(e), n.setOpen(!1,
|
|
666
|
+
if (V.current = !1, W.current = !0, e.which === 229 || !me.current && e.currentTarget === re.current) return;
|
|
667
|
+
if (_ && Jt(e.key, T, v, D)) {
|
|
668
|
+
Gt(e.key, xe()) || be(e), n.setOpen(!1, ne(w, e.nativeEvent)), s(a) && (y ? F?.events.emit("virtualfocus", a) : a.focus());
|
|
671
669
|
return;
|
|
672
670
|
}
|
|
673
|
-
let t =
|
|
674
|
-
if (
|
|
671
|
+
let t = z.current, i = Ve(c, C), o = P(c, C);
|
|
672
|
+
if (I || (e.key === "Home" && (be(e), z.current = i, H(e)), e.key === "End" && (be(e), z.current = o, H(e))), D > 1) {
|
|
675
673
|
let t = Array.from({ length: c.current.length }, () => ({
|
|
676
674
|
width: 1,
|
|
677
675
|
height: 1
|
|
678
|
-
})), n = _e(t,
|
|
676
|
+
})), n = _e(t, D, !1), r = n.findIndex((e) => e != null && !pe(c.current, e, C)), a = n.reduce((e, t, n) => t != null && !pe(c.current, t, C) ? n : e, -1), s = n[He(n.map((e) => e == null ? null : c.current[e]), {
|
|
679
677
|
event: e,
|
|
680
678
|
orientation: T,
|
|
681
679
|
loopFocus: g,
|
|
682
680
|
rtl: v,
|
|
683
|
-
cols:
|
|
684
|
-
disabledIndices: de([...(typeof
|
|
681
|
+
cols: D,
|
|
682
|
+
disabledIndices: de([...(typeof C == "function" ? null : C) || c.current.map((e, t) => pe(c.current, t, C) ? t : void 0), void 0], n),
|
|
685
683
|
minIndex: r,
|
|
686
684
|
maxIndex: a,
|
|
687
|
-
prevIndex:
|
|
685
|
+
prevIndex: oe(z.current > o ? i : z.current, t, n, D, e.key === "ArrowDown" ? "bl" : e.key === (v ? "ArrowLeft" : "ArrowRight") ? "tr" : "tl"),
|
|
688
686
|
stopEvent: !0
|
|
689
687
|
})];
|
|
690
|
-
if (s != null && (
|
|
688
|
+
if (s != null && (z.current = s, H(e)), T === "both") return;
|
|
691
689
|
}
|
|
692
690
|
if (Gt(e.key, T)) {
|
|
693
691
|
if (be(e), r && !y && E(e.currentTarget.ownerDocument) === e.currentTarget) {
|
|
694
|
-
|
|
692
|
+
z.current = Kt(e.key, T, v) ? i : o, H(e);
|
|
695
693
|
return;
|
|
696
694
|
}
|
|
697
|
-
Kt(e.key, T, v) ? g ? t >= o ? h && t !== c.current.length ?
|
|
695
|
+
Kt(e.key, T, v) ? g ? t >= o ? h && t !== c.current.length ? z.current = -1 : (W.current = !1, z.current = i) : z.current = R(c.current, {
|
|
698
696
|
startingIndex: t,
|
|
699
|
-
disabledIndices:
|
|
700
|
-
}) :
|
|
697
|
+
disabledIndices: C
|
|
698
|
+
}) : z.current = Math.min(o, R(c.current, {
|
|
701
699
|
startingIndex: t,
|
|
702
|
-
disabledIndices:
|
|
703
|
-
})) : g ? t <= i ? h && t !== -1 ?
|
|
700
|
+
disabledIndices: C
|
|
701
|
+
})) : g ? t <= i ? h && t !== -1 ? z.current = c.current.length : (W.current = !1, z.current = o) : z.current = R(c.current, {
|
|
704
702
|
startingIndex: t,
|
|
705
703
|
decrement: !0,
|
|
706
|
-
disabledIndices:
|
|
707
|
-
}) :
|
|
704
|
+
disabledIndices: C
|
|
705
|
+
}) : z.current = Math.max(i, R(c.current, {
|
|
708
706
|
startingIndex: t,
|
|
709
707
|
decrement: !0,
|
|
710
|
-
disabledIndices:
|
|
711
|
-
})), K(c.current,
|
|
708
|
+
disabledIndices: C
|
|
709
|
+
})), K(c.current, z.current) && (z.current = -1), H(e);
|
|
712
710
|
}
|
|
713
|
-
}), we = Z.useMemo(() => y && r && Y && { "aria-activedescendant": `${
|
|
711
|
+
}), we = Z.useMemo(() => y && r && Y && { "aria-activedescendant": `${te}-${l}` }, [
|
|
714
712
|
y,
|
|
715
713
|
r,
|
|
716
714
|
Y,
|
|
717
|
-
|
|
715
|
+
te,
|
|
718
716
|
l
|
|
719
717
|
]), Te = Z.useMemo(() => ({
|
|
720
718
|
"aria-orientation": T === "both" ? void 0 : T,
|
|
721
|
-
...
|
|
719
|
+
...I ? {} : we,
|
|
722
720
|
onKeyDown(e) {
|
|
723
721
|
if (e.key === "Tab" && e.shiftKey && r && !y) {
|
|
724
|
-
let t =
|
|
725
|
-
if (t && !
|
|
726
|
-
be(e), n.setOpen(!1,
|
|
722
|
+
let t = M(e.nativeEvent);
|
|
723
|
+
if (t && !O(re.current, t)) return;
|
|
724
|
+
be(e), n.setOpen(!1, ne(ie, e.nativeEvent)), s(a) && a.focus();
|
|
727
725
|
return;
|
|
728
726
|
}
|
|
729
727
|
Ce(e);
|
|
730
728
|
},
|
|
731
729
|
onPointerMove() {
|
|
732
|
-
|
|
730
|
+
V.current = !0;
|
|
733
731
|
}
|
|
734
732
|
}), [
|
|
735
733
|
we,
|
|
736
734
|
Ce,
|
|
737
|
-
|
|
735
|
+
re,
|
|
738
736
|
T,
|
|
739
|
-
|
|
737
|
+
I,
|
|
740
738
|
n,
|
|
741
739
|
r,
|
|
742
740
|
y,
|
|
743
741
|
a
|
|
744
742
|
]), Ee = Z.useMemo(() => {
|
|
745
743
|
function e(e) {
|
|
746
|
-
b === "auto" && st(e.nativeEvent) && (
|
|
744
|
+
b === "auto" && st(e.nativeEvent) && (L.current = !y);
|
|
747
745
|
}
|
|
748
746
|
function t(e) {
|
|
749
|
-
|
|
747
|
+
L.current = b, b === "auto" && ae(e.nativeEvent) && (L.current = !0);
|
|
750
748
|
}
|
|
751
749
|
return {
|
|
752
750
|
onKeyDown(e) {
|
|
753
751
|
let t = n.select("open");
|
|
754
|
-
|
|
752
|
+
V.current = !1;
|
|
755
753
|
let r = e.key.startsWith("Arrow"), i = qt(e.key, xe(), v), a = Gt(e.key, T), o = (_ ? i : a) || e.key === "Enter" || e.key.trim() === "";
|
|
756
754
|
if (y && t) return Ce(e);
|
|
757
|
-
if (!(!t && !
|
|
755
|
+
if (!(!t && !S && r)) {
|
|
758
756
|
if (o) {
|
|
759
757
|
let t = Gt(e.key, xe());
|
|
760
|
-
|
|
758
|
+
B.current = _ && t ? null : e.key;
|
|
761
759
|
}
|
|
762
760
|
if (_) {
|
|
763
|
-
i && (be(e), t ? (
|
|
761
|
+
i && (be(e), t ? (z.current = Ve(c, q.current), H(e)) : n.setOpen(!0, ne(w, e.nativeEvent, e.currentTarget)));
|
|
764
762
|
return;
|
|
765
763
|
}
|
|
766
|
-
a && (he.current != null && (
|
|
764
|
+
a && (he.current != null && (z.current = he.current), be(e), !t && S ? n.setOpen(!0, ne(w, e.nativeEvent, e.currentTarget)) : Ce(e), t && H(e));
|
|
767
765
|
}
|
|
768
766
|
},
|
|
769
767
|
onFocus(e) {
|
|
770
|
-
n.select("open") && !y && (
|
|
768
|
+
n.select("open") && !y && (z.current = -1, H(e));
|
|
771
769
|
},
|
|
772
770
|
onPointerDown: t,
|
|
773
771
|
onPointerEnter: t,
|
|
@@ -782,7 +780,7 @@ function Yt(e, t) {
|
|
|
782
780
|
_,
|
|
783
781
|
H,
|
|
784
782
|
n,
|
|
785
|
-
|
|
783
|
+
S,
|
|
786
784
|
T,
|
|
787
785
|
xe,
|
|
788
786
|
v,
|
|
@@ -806,7 +804,7 @@ function Yt(e, t) {
|
|
|
806
804
|
]);
|
|
807
805
|
}
|
|
808
806
|
//#endregion
|
|
809
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
807
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.js
|
|
810
808
|
function Xt(e, t) {
|
|
811
809
|
let n = "rootStore" in e ? e.rootStore : e, r = n.context.dataRef, i = n.useState("open"), { listRef: a, elementsRef: o, activeIndex: s, onMatch: c, onTypingChange: l, enabled: u = !0, resetMs: d = 750, selectedIndex: f = null } = t, h = Te(), g = Z.useRef(""), _ = Z.useRef(f ?? s ?? -1), v = Z.useRef(null);
|
|
812
810
|
p(() => {
|
|
@@ -848,7 +846,7 @@ function Xt(e, t) {
|
|
|
848
846
|
let u = ((l ? f ?? s ?? -1 : _.current) ?? 0) + 1, p = n(r, g.current, u);
|
|
849
847
|
p === -1 ? e.key !== " " && (g.current = "", y(!1)) : (c?.(p), v.current = p);
|
|
850
848
|
}), x = m((e) => {
|
|
851
|
-
let t = e.relatedTarget, r = n.select("domReferenceElement"), i = n.select("floatingElement"), a =
|
|
849
|
+
let t = e.relatedTarget, r = n.select("domReferenceElement"), i = n.select("floatingElement"), a = O(r, t), o = O(i, t);
|
|
852
850
|
a || o || (h.clear(), g.current = "", _.current = v.current, y(!1));
|
|
853
851
|
}), S = Z.useMemo(() => ({
|
|
854
852
|
onKeyDown: b,
|
|
@@ -867,7 +865,7 @@ function Xt(e, t) {
|
|
|
867
865
|
]);
|
|
868
866
|
}
|
|
869
867
|
//#endregion
|
|
870
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
868
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js
|
|
871
869
|
function Zt(e) {
|
|
872
870
|
let t = Z.useRef(""), n = Z.useCallback((n) => {
|
|
873
871
|
n.defaultPrevented || (t.current = n.pointerType, e(n, n.pointerType));
|
|
@@ -884,7 +882,7 @@ function Zt(e) {
|
|
|
884
882
|
};
|
|
885
883
|
}
|
|
886
884
|
//#endregion
|
|
887
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
885
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js
|
|
888
886
|
function Qt(e) {
|
|
889
887
|
let [t, n] = Z.useState(null), r = m((t, r) => {
|
|
890
888
|
e || n(r || (Je ? "touch" : ""));
|
|
@@ -906,12 +904,12 @@ function Qt(e) {
|
|
|
906
904
|
]);
|
|
907
905
|
}
|
|
908
906
|
//#endregion
|
|
909
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
907
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/inertValue.js
|
|
910
908
|
function $t(e) {
|
|
911
909
|
return o(19) ? e : e ? "true" : void 0;
|
|
912
910
|
}
|
|
913
911
|
//#endregion
|
|
914
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
912
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/InternalBackdrop.js
|
|
915
913
|
var en = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
916
914
|
let { cutout: n, ...r } = e, i;
|
|
917
915
|
if (n) {
|
|
@@ -934,7 +932,7 @@ var en = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
|
934
932
|
});
|
|
935
933
|
process.env.NODE_ENV !== "production" && (en.displayName = "InternalBackdrop");
|
|
936
934
|
//#endregion
|
|
937
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
935
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/itemEquality.js
|
|
938
936
|
var tn = (e, t) => Object.is(e, t);
|
|
939
937
|
function nn(e, t, n) {
|
|
940
938
|
return e == null || t == null ? Object.is(e, t) : n(e, t);
|
|
@@ -949,7 +947,7 @@ function on(e, t, n) {
|
|
|
949
947
|
return e.filter((e) => !nn(t, e, n));
|
|
950
948
|
}
|
|
951
949
|
//#endregion
|
|
952
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
950
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/serializeValue.js
|
|
953
951
|
function sn(e) {
|
|
954
952
|
if (e == null) return "";
|
|
955
953
|
if (typeof e == "string") return e;
|
|
@@ -960,7 +958,7 @@ function sn(e) {
|
|
|
960
958
|
}
|
|
961
959
|
}
|
|
962
960
|
//#endregion
|
|
963
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
961
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/resolveValueLabel.js
|
|
964
962
|
function cn(e) {
|
|
965
963
|
return e != null && e.length > 0 && typeof e[0] == "object" && e[0] != null && "items" in e[0];
|
|
966
964
|
}
|
|
@@ -1009,7 +1007,7 @@ function pn(e, t, n) {
|
|
|
1009
1007
|
return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(/* @__PURE__ */ Q(Z.Fragment, { children: fn(r, t, n) }, i)), e), []);
|
|
1010
1008
|
}
|
|
1011
1009
|
//#endregion
|
|
1012
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1010
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.js
|
|
1013
1011
|
function mn(e) {
|
|
1014
1012
|
let t = e.getBoundingClientRect();
|
|
1015
1013
|
if (process.env.NODE_ENV !== "production") return t;
|
|
@@ -1024,7 +1022,7 @@ function mn(e) {
|
|
|
1024
1022
|
};
|
|
1025
1023
|
}
|
|
1026
1024
|
//#endregion
|
|
1027
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1025
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/useAnchoredPopupScrollLock.js
|
|
1028
1026
|
var hn = 20;
|
|
1029
1027
|
function gn(e, t, n, r) {
|
|
1030
1028
|
let [i, a] = Z.useState(!1);
|
|
@@ -1033,7 +1031,7 @@ function gn(e, t, n, r) {
|
|
|
1033
1031
|
a(!1);
|
|
1034
1032
|
return;
|
|
1035
1033
|
}
|
|
1036
|
-
let r =
|
|
1034
|
+
let r = j(n).documentElement.clientWidth, i = n.offsetWidth;
|
|
1037
1035
|
a(r > 0 && i > 0 && i >= r - hn);
|
|
1038
1036
|
}, [
|
|
1039
1037
|
e,
|
|
@@ -1042,7 +1040,7 @@ function gn(e, t, n, r) {
|
|
|
1042
1040
|
]), vt(e && (!t || i), r);
|
|
1043
1041
|
}
|
|
1044
1042
|
//#endregion
|
|
1045
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1043
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/toolbar/root/ToolbarRootContext.js
|
|
1046
1044
|
var _n = /* @__PURE__ */ Z.createContext(void 0);
|
|
1047
1045
|
process.env.NODE_ENV !== "production" && (_n.displayName = "ToolbarRootContext");
|
|
1048
1046
|
function vn(e) {
|
|
@@ -1051,7 +1049,7 @@ function vn(e) {
|
|
|
1051
1049
|
return t;
|
|
1052
1050
|
}
|
|
1053
1051
|
//#endregion
|
|
1054
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
1052
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/usePreviousValue.js
|
|
1055
1053
|
function yn(e) {
|
|
1056
1054
|
let [t, n] = Z.useState({
|
|
1057
1055
|
current: e,
|
|
@@ -1063,7 +1061,7 @@ function yn(e) {
|
|
|
1063
1061
|
}), t.previous;
|
|
1064
1062
|
}
|
|
1065
1063
|
//#endregion
|
|
1066
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1064
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/styles.js
|
|
1067
1065
|
var bn = "base-ui-disable-scrollbar", xn = {
|
|
1068
1066
|
className: bn,
|
|
1069
1067
|
getElement(e) {
|
|
@@ -1085,7 +1083,7 @@ function Cn(e, t) {
|
|
|
1085
1083
|
return a && o ? r <= i ? 0 : t : a ? 0 : o ? t : n;
|
|
1086
1084
|
}
|
|
1087
1085
|
//#endregion
|
|
1088
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1086
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/root/SelectRootContext.js
|
|
1089
1087
|
var wn = /* @__PURE__ */ Z.createContext(null);
|
|
1090
1088
|
process.env.NODE_ENV !== "production" && (wn.displayName = "SelectRootContext");
|
|
1091
1089
|
var Tn = /* @__PURE__ */ Z.createContext(null);
|
|
@@ -1101,7 +1099,7 @@ function Dn() {
|
|
|
1101
1099
|
return e;
|
|
1102
1100
|
}
|
|
1103
1101
|
//#endregion
|
|
1104
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1102
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/store.js
|
|
1105
1103
|
var $ = {
|
|
1106
1104
|
id: Y((e) => e.id),
|
|
1107
1105
|
labelId: Y((e) => e.labelId),
|
|
@@ -1140,14 +1138,14 @@ var $ = {
|
|
|
1140
1138
|
hasScrollArrows: Y((e) => e.hasScrollArrows)
|
|
1141
1139
|
};
|
|
1142
1140
|
//#endregion
|
|
1143
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1141
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/root/SelectRoot.js
|
|
1144
1142
|
function On(e) {
|
|
1145
|
-
let { id: t, value: n, defaultValue: i = null, onValueChange: a, open: o, defaultOpen: s = !1, onOpenChange: l, name: d, form: h, autoComplete: g, disabled: _ = !1, readOnly: v = !1, required: b = !1, modal:
|
|
1143
|
+
let { id: t, value: n, defaultValue: i = null, onValueChange: a, open: o, defaultOpen: s = !1, onOpenChange: l, name: d, form: h, autoComplete: g, disabled: _ = !1, readOnly: v = !1, required: b = !1, modal: S = !0, actionsRef: w, inputRef: T, onOpenChangeComplete: E, items: ee, multiple: O = !1, itemToStringLabel: te, itemToStringValue: k, isItemEqualToValue: j = tn, highlightItemOnHover: M = !0, children: ie } = e, { clearErrors: N } = Ue(), { setDirty: P, setTouched: ae, setFocused: F, shouldValidateOnChange: oe, validityData: L, setFilled: R, name: z, disabled: V, validation: H, validationMode: se } = D(), U = re({ id: t }), ce = V || _, W = z ?? d, [G, ue] = C({
|
|
1146
1144
|
controlled: n,
|
|
1147
|
-
default:
|
|
1145
|
+
default: O ? i ?? u : i,
|
|
1148
1146
|
name: "Select",
|
|
1149
1147
|
state: "value"
|
|
1150
|
-
}), [K, de] =
|
|
1148
|
+
}), [K, de] = C({
|
|
1151
1149
|
controlled: o,
|
|
1152
1150
|
default: s,
|
|
1153
1151
|
name: "Select",
|
|
@@ -1158,16 +1156,16 @@ function On(e) {
|
|
|
1158
1156
|
}), Se = Z.useRef(!1), { mounted: we, setMounted: Te, transitionStatus: De } = Ye(K), { openMethod: ke, triggerProps: Ae } = Qt(K), X = c(() => new it({
|
|
1159
1157
|
id: U,
|
|
1160
1158
|
labelId: void 0,
|
|
1161
|
-
modal:
|
|
1162
|
-
multiple:
|
|
1163
|
-
itemToStringLabel:
|
|
1164
|
-
itemToStringValue:
|
|
1159
|
+
modal: S,
|
|
1160
|
+
multiple: O,
|
|
1161
|
+
itemToStringLabel: te,
|
|
1162
|
+
itemToStringValue: k,
|
|
1165
1163
|
isItemEqualToValue: j,
|
|
1166
1164
|
value: G,
|
|
1167
1165
|
open: K,
|
|
1168
1166
|
mounted: we,
|
|
1169
1167
|
transitionStatus: De,
|
|
1170
|
-
items:
|
|
1168
|
+
items: ee,
|
|
1171
1169
|
forceMount: !1,
|
|
1172
1170
|
openMethod: null,
|
|
1173
1171
|
activeIndex: null,
|
|
@@ -1180,16 +1178,16 @@ function On(e) {
|
|
|
1180
1178
|
scrollUpArrowVisible: !1,
|
|
1181
1179
|
scrollDownArrowVisible: !1,
|
|
1182
1180
|
hasScrollArrows: !1
|
|
1183
|
-
})).current, je = J(X, $.activeIndex), Me = J(X, $.selectedIndex), Ne = J(X, $.triggerElement), Pe = J(X, $.positionerElement), Fe = yn(ke), Re = ke ?? Fe, ze = Z.useMemo(() =>
|
|
1184
|
-
|
|
1181
|
+
})).current, je = J(X, $.activeIndex), Me = J(X, $.selectedIndex), Ne = J(X, $.triggerElement), Pe = J(X, $.positionerElement), Fe = yn(ke), Re = ke ?? Fe, ze = Z.useMemo(() => O && Array.isArray(G) && G.length === 0 ? "" : dn(G, k), [
|
|
1182
|
+
O,
|
|
1185
1183
|
G,
|
|
1186
|
-
|
|
1187
|
-
]), Be = Z.useMemo(() =>
|
|
1188
|
-
|
|
1184
|
+
k
|
|
1185
|
+
]), Be = Z.useMemo(() => O && Array.isArray(G) ? G.map((e) => dn(e, k)) : dn(G, k), [
|
|
1186
|
+
O,
|
|
1189
1187
|
G,
|
|
1190
|
-
|
|
1188
|
+
k
|
|
1191
1189
|
]);
|
|
1192
|
-
|
|
1190
|
+
A(le(X.state.triggerElement), {
|
|
1193
1191
|
id: U,
|
|
1194
1192
|
value: G,
|
|
1195
1193
|
getValue: m(() => Be)
|
|
@@ -1198,15 +1196,15 @@ function On(e) {
|
|
|
1198
1196
|
p(() => {
|
|
1199
1197
|
G !== Ve.current && X.set("forceMount", !0);
|
|
1200
1198
|
}, [X, G]), p(() => {
|
|
1201
|
-
|
|
1199
|
+
R(O ? Array.isArray(G) && G.length > 0 : G != null);
|
|
1202
1200
|
}, [
|
|
1203
|
-
|
|
1201
|
+
O,
|
|
1204
1202
|
G,
|
|
1205
|
-
|
|
1203
|
+
R
|
|
1206
1204
|
]), p(function() {
|
|
1207
1205
|
if (K) return;
|
|
1208
1206
|
let e = Y.current;
|
|
1209
|
-
if (
|
|
1207
|
+
if (O) {
|
|
1210
1208
|
let t = Array.isArray(G) ? G : [];
|
|
1211
1209
|
if (t.length === 0) {
|
|
1212
1210
|
X.set("selectedIndex", null);
|
|
@@ -1219,17 +1217,17 @@ function On(e) {
|
|
|
1219
1217
|
let t = an(e, G, j);
|
|
1220
1218
|
X.set("selectedIndex", t === -1 ? null : t);
|
|
1221
1219
|
}, [
|
|
1222
|
-
|
|
1220
|
+
O,
|
|
1223
1221
|
K,
|
|
1224
1222
|
G,
|
|
1225
1223
|
Y,
|
|
1226
1224
|
j,
|
|
1227
1225
|
X
|
|
1228
1226
|
]), Le(G, () => {
|
|
1229
|
-
|
|
1227
|
+
N(W), P(G !== L.initialValue), oe() ? H.commit(G) : H.commit(G, !0);
|
|
1230
1228
|
});
|
|
1231
1229
|
let He = m((e, t) => {
|
|
1232
|
-
if (l?.(e, t), !t.isCanceled && (de(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (
|
|
1230
|
+
if (l?.(e, t), !t.isCanceled && (de(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (ae(!0), F(!1), se === "onBlur" && H.commit(G)), !e && X.state.activeIndex !== null)) {
|
|
1233
1231
|
let e = fe.current[X.state.activeIndex];
|
|
1234
1232
|
queueMicrotask(() => {
|
|
1235
1233
|
e?.setAttribute("tabindex", "-1");
|
|
@@ -1239,16 +1237,16 @@ function On(e) {
|
|
|
1239
1237
|
Te(!1), X.update({
|
|
1240
1238
|
activeIndex: null,
|
|
1241
1239
|
openMethod: null
|
|
1242
|
-
}),
|
|
1240
|
+
}), E?.(!1);
|
|
1243
1241
|
});
|
|
1244
1242
|
Ee({
|
|
1245
|
-
enabled: !
|
|
1243
|
+
enabled: !w,
|
|
1246
1244
|
open: K,
|
|
1247
1245
|
ref: q,
|
|
1248
1246
|
onComplete() {
|
|
1249
1247
|
K || We();
|
|
1250
1248
|
}
|
|
1251
|
-
}), Z.useImperativeHandle(
|
|
1249
|
+
}), Z.useImperativeHandle(w, () => ({ unmount: We }), [We]);
|
|
1252
1250
|
let Ge = m((e, t) => {
|
|
1253
1251
|
a?.(e, t), !t.isCanceled && ue(e);
|
|
1254
1252
|
}), Ke = m(() => {
|
|
@@ -1268,7 +1266,7 @@ function On(e) {
|
|
|
1268
1266
|
enabled: !v && !ce,
|
|
1269
1267
|
event: "mousedown"
|
|
1270
1268
|
}),
|
|
1271
|
-
|
|
1269
|
+
I(qe, { bubbles: !1 }),
|
|
1272
1270
|
Yt(qe, {
|
|
1273
1271
|
enabled: !v && !ce,
|
|
1274
1272
|
listRef: fe,
|
|
@@ -1278,15 +1276,15 @@ function On(e) {
|
|
|
1278
1276
|
onNavigate(e) {
|
|
1279
1277
|
e === null && !K || X.set("activeIndex", e);
|
|
1280
1278
|
},
|
|
1281
|
-
focusItemOnHover:
|
|
1279
|
+
focusItemOnHover: M
|
|
1282
1280
|
}),
|
|
1283
1281
|
Xt(qe, {
|
|
1284
|
-
enabled: !v && !ce && (K || !
|
|
1282
|
+
enabled: !v && !ce && (K || !O),
|
|
1285
1283
|
listRef: pe,
|
|
1286
1284
|
activeIndex: je,
|
|
1287
1285
|
selectedIndex: Me,
|
|
1288
1286
|
onMatch(e) {
|
|
1289
|
-
K ? X.set("activeIndex", e) : Ge(Y.current[e],
|
|
1287
|
+
K ? X.set("activeIndex", e) : Ge(Y.current[e], ne("none"));
|
|
1290
1288
|
},
|
|
1291
1289
|
onTypingChange(e) {
|
|
1292
1290
|
_e.current = e;
|
|
@@ -1305,34 +1303,34 @@ function On(e) {
|
|
|
1305
1303
|
}), p(() => {
|
|
1306
1304
|
X.update({
|
|
1307
1305
|
id: U,
|
|
1308
|
-
modal:
|
|
1309
|
-
multiple:
|
|
1306
|
+
modal: S,
|
|
1307
|
+
multiple: O,
|
|
1310
1308
|
value: G,
|
|
1311
1309
|
open: K,
|
|
1312
1310
|
mounted: we,
|
|
1313
1311
|
transitionStatus: De,
|
|
1314
1312
|
popupProps: Xe(),
|
|
1315
1313
|
triggerProps: Qe,
|
|
1316
|
-
items:
|
|
1317
|
-
itemToStringLabel:
|
|
1318
|
-
itemToStringValue:
|
|
1314
|
+
items: ee,
|
|
1315
|
+
itemToStringLabel: te,
|
|
1316
|
+
itemToStringValue: k,
|
|
1319
1317
|
isItemEqualToValue: j,
|
|
1320
1318
|
openMethod: Re
|
|
1321
1319
|
});
|
|
1322
1320
|
}, [
|
|
1323
1321
|
X,
|
|
1324
1322
|
U,
|
|
1325
|
-
|
|
1326
|
-
|
|
1323
|
+
S,
|
|
1324
|
+
O,
|
|
1327
1325
|
G,
|
|
1328
1326
|
K,
|
|
1329
1327
|
we,
|
|
1330
1328
|
De,
|
|
1331
1329
|
Xe,
|
|
1332
1330
|
Qe,
|
|
1333
|
-
|
|
1331
|
+
ee,
|
|
1332
|
+
te,
|
|
1334
1333
|
k,
|
|
1335
|
-
A,
|
|
1336
1334
|
j,
|
|
1337
1335
|
Re
|
|
1338
1336
|
]);
|
|
@@ -1342,8 +1340,8 @@ function On(e) {
|
|
|
1342
1340
|
required: b,
|
|
1343
1341
|
disabled: ce,
|
|
1344
1342
|
readOnly: v,
|
|
1345
|
-
multiple:
|
|
1346
|
-
highlightItemOnHover:
|
|
1343
|
+
multiple: O,
|
|
1344
|
+
highlightItemOnHover: M,
|
|
1347
1345
|
setValue: Ge,
|
|
1348
1346
|
setOpen: He,
|
|
1349
1347
|
listRef: fe,
|
|
@@ -1360,7 +1358,7 @@ function On(e) {
|
|
|
1360
1358
|
selectionRef: be,
|
|
1361
1359
|
selectedItemTextRef: ye,
|
|
1362
1360
|
validation: H,
|
|
1363
|
-
onOpenChangeComplete:
|
|
1361
|
+
onOpenChangeComplete: E,
|
|
1364
1362
|
keyboardActiveRef: ve,
|
|
1365
1363
|
alignItemWithTriggerActiveRef: Se,
|
|
1366
1364
|
initialValueRef: Ve
|
|
@@ -1370,17 +1368,17 @@ function On(e) {
|
|
|
1370
1368
|
b,
|
|
1371
1369
|
ce,
|
|
1372
1370
|
v,
|
|
1373
|
-
|
|
1374
|
-
|
|
1371
|
+
O,
|
|
1372
|
+
M,
|
|
1375
1373
|
Ge,
|
|
1376
1374
|
He,
|
|
1377
1375
|
Ze,
|
|
1378
1376
|
qe.context.events,
|
|
1379
1377
|
H,
|
|
1380
|
-
|
|
1378
|
+
E,
|
|
1381
1379
|
Ke
|
|
1382
|
-
]), et = y(
|
|
1383
|
-
let t = dn(e,
|
|
1380
|
+
]), et = y(T, H.inputRef), tt = O && Array.isArray(G) && G.length > 0, nt = O ? void 0 : W, rt = Z.useMemo(() => !O || !Array.isArray(G) || !W ? null : G.map((e) => {
|
|
1381
|
+
let t = dn(e, k);
|
|
1384
1382
|
return /* @__PURE__ */ Q("input", {
|
|
1385
1383
|
type: "hidden",
|
|
1386
1384
|
form: h,
|
|
@@ -1388,18 +1386,18 @@ function On(e) {
|
|
|
1388
1386
|
value: t
|
|
1389
1387
|
}, t);
|
|
1390
1388
|
}), [
|
|
1391
|
-
|
|
1389
|
+
O,
|
|
1392
1390
|
G,
|
|
1393
1391
|
h,
|
|
1394
1392
|
W,
|
|
1395
|
-
|
|
1393
|
+
k
|
|
1396
1394
|
]);
|
|
1397
1395
|
return /* @__PURE__ */ Q(wn.Provider, {
|
|
1398
1396
|
value: $e,
|
|
1399
1397
|
children: /* @__PURE__ */ lt(Tn.Provider, {
|
|
1400
1398
|
value: qe,
|
|
1401
1399
|
children: [
|
|
1402
|
-
|
|
1400
|
+
ie,
|
|
1403
1401
|
/* @__PURE__ */ Q("input", {
|
|
1404
1402
|
...H.getInputValidationProps({
|
|
1405
1403
|
onFocus() {
|
|
@@ -1407,11 +1405,11 @@ function On(e) {
|
|
|
1407
1405
|
},
|
|
1408
1406
|
onChange(e) {
|
|
1409
1407
|
if (e.nativeEvent.defaultPrevented) return;
|
|
1410
|
-
let t = e.currentTarget.value, n =
|
|
1408
|
+
let t = e.currentTarget.value, n = ne(x, e.nativeEvent);
|
|
1411
1409
|
function r() {
|
|
1412
|
-
if (
|
|
1413
|
-
let e = Y.current.find((e) => dn(e,
|
|
1414
|
-
e != null && (
|
|
1410
|
+
if (O) return;
|
|
1411
|
+
let e = Y.current.find((e) => dn(e, k).toLowerCase() === t.toLowerCase() || un(e, te).toLowerCase() === t.toLowerCase());
|
|
1412
|
+
e != null && (P(e !== L.initialValue), Ge(e, n), oe() && H.commit(e));
|
|
1415
1413
|
}
|
|
1416
1414
|
X.set("forceMount", !0), queueMicrotask(r);
|
|
1417
1415
|
}
|
|
@@ -1425,7 +1423,7 @@ function On(e) {
|
|
|
1425
1423
|
required: b && !tt,
|
|
1426
1424
|
readOnly: v,
|
|
1427
1425
|
ref: et,
|
|
1428
|
-
style: W ?
|
|
1426
|
+
style: W ? B : xe,
|
|
1429
1427
|
tabIndex: -1,
|
|
1430
1428
|
"aria-hidden": !0,
|
|
1431
1429
|
suppressHydrationWarning: !0
|
|
@@ -1436,91 +1434,91 @@ function On(e) {
|
|
|
1436
1434
|
});
|
|
1437
1435
|
}
|
|
1438
1436
|
//#endregion
|
|
1439
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1437
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/trigger/SelectTrigger.js
|
|
1440
1438
|
var kn = 2, An = 400, jn = 200, Mn = {
|
|
1441
1439
|
...Xe,
|
|
1442
|
-
...
|
|
1440
|
+
...k,
|
|
1443
1441
|
value: () => null
|
|
1444
1442
|
}, Nn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
1445
|
-
let { render: n, className: i, id: a, disabled: o = !1, nativeButton: s = !0, style: c, ...l } = e, { setTouched: u, setFocused: f, validationMode: p, state: h, disabled: g } =
|
|
1446
|
-
|
|
1447
|
-
let se = le(
|
|
1448
|
-
disabled:
|
|
1443
|
+
let { render: n, className: i, id: a, disabled: o = !1, nativeButton: s = !0, style: c, ...l } = e, { setTouched: u, setFocused: f, validationMode: p, state: h, disabled: g } = D(), { labelId: _ } = te(), { store: v, setOpen: S, selectionRef: C, validation: w, readOnly: T, required: E, alignItemWithTriggerActiveRef: k, disabled: A, keyboardActiveRef: M } = En(), ie = g || A || o, N = J(v, $.open), P = J(v, $.value), ae = J(v, $.triggerProps), F = J(v, $.positionerElement), I = J(v, $.listElement), oe = J(v, $.id), L = J(v, $.labelId), R = J(v, $.hasSelectedValue), z = !R && N, B = J(v, $.hasNullItemLabel, z), V = a ?? oe, H = Me(_, L);
|
|
1444
|
+
re({ id: V });
|
|
1445
|
+
let se = le(F), U = Z.useRef(null), { getButtonProps: ce, buttonRef: W } = b({
|
|
1446
|
+
disabled: ie,
|
|
1449
1447
|
native: s
|
|
1450
1448
|
}), G = y(t, U, W, m((e) => {
|
|
1451
1449
|
v.set("triggerElement", e);
|
|
1452
1450
|
})), ue = Te(), K = Te(), de = Te(), fe = Te();
|
|
1453
1451
|
Z.useEffect(() => {
|
|
1454
|
-
if (
|
|
1455
|
-
|
|
1456
|
-
|
|
1452
|
+
if (N) return R || B ? fe.start(jn, () => {
|
|
1453
|
+
C.current.allowUnselectedMouseUp = !0, de.start(jn, () => {
|
|
1454
|
+
C.current.allowSelectedMouseUp = !0;
|
|
1457
1455
|
});
|
|
1458
1456
|
}) : de.start(An, () => {
|
|
1459
|
-
|
|
1457
|
+
C.current.allowUnselectedMouseUp = !0, C.current.allowSelectedMouseUp = !0;
|
|
1460
1458
|
}), () => {
|
|
1461
1459
|
de.clear(), fe.clear();
|
|
1462
1460
|
};
|
|
1463
|
-
|
|
1461
|
+
C.current = {
|
|
1464
1462
|
allowSelectedMouseUp: !1,
|
|
1465
1463
|
allowUnselectedMouseUp: !1
|
|
1466
1464
|
}, K.clear();
|
|
1467
1465
|
}, [
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1466
|
+
N,
|
|
1467
|
+
R,
|
|
1468
|
+
B,
|
|
1469
|
+
C,
|
|
1472
1470
|
K,
|
|
1473
1471
|
de,
|
|
1474
1472
|
fe
|
|
1475
1473
|
]);
|
|
1476
|
-
let pe = Z.useMemo(() =>
|
|
1477
|
-
id:
|
|
1474
|
+
let pe = Z.useMemo(() => I?.id ?? Se(F)?.id, [I, F]), q = r(ae, {
|
|
1475
|
+
id: V,
|
|
1478
1476
|
role: "combobox",
|
|
1479
|
-
"aria-expanded":
|
|
1477
|
+
"aria-expanded": N ? "true" : "false",
|
|
1480
1478
|
"aria-haspopup": "listbox",
|
|
1481
|
-
"aria-controls":
|
|
1479
|
+
"aria-controls": N ? pe : void 0,
|
|
1482
1480
|
"aria-labelledby": H,
|
|
1483
|
-
"aria-readonly":
|
|
1484
|
-
"aria-required":
|
|
1485
|
-
tabIndex:
|
|
1481
|
+
"aria-readonly": T || void 0,
|
|
1482
|
+
"aria-required": E || void 0,
|
|
1483
|
+
tabIndex: ie ? -1 : 0,
|
|
1486
1484
|
ref: G,
|
|
1487
1485
|
onFocus(e) {
|
|
1488
|
-
f(!0),
|
|
1486
|
+
f(!0), N && k.current && S(!1, ne(x, e.nativeEvent)), ue.start(0, () => {
|
|
1489
1487
|
v.set("forceMount", !0);
|
|
1490
1488
|
});
|
|
1491
1489
|
},
|
|
1492
1490
|
onBlur(e) {
|
|
1493
|
-
|
|
1491
|
+
O(F, e.relatedTarget) || (u(!0), f(!1), p === "onBlur" && w.commit(P));
|
|
1494
1492
|
},
|
|
1495
1493
|
onPointerMove() {
|
|
1496
|
-
|
|
1494
|
+
M.current = !1;
|
|
1497
1495
|
},
|
|
1498
1496
|
onKeyDown() {
|
|
1499
|
-
|
|
1497
|
+
M.current = !0;
|
|
1500
1498
|
},
|
|
1501
1499
|
onMouseDown(e) {
|
|
1502
|
-
if (
|
|
1503
|
-
let t =
|
|
1500
|
+
if (N) return;
|
|
1501
|
+
let t = j(e.currentTarget);
|
|
1504
1502
|
function n(e) {
|
|
1505
1503
|
if (!U.current) return;
|
|
1506
1504
|
let t = e.target;
|
|
1507
|
-
if (
|
|
1505
|
+
if (O(U.current, t) || O(se.current, t) || t === U.current) return;
|
|
1508
1506
|
let n = mn(U.current);
|
|
1509
|
-
e.clientX >= n.left - kn && e.clientX <= n.right + kn && e.clientY >= n.top - kn && e.clientY <= n.bottom + kn ||
|
|
1507
|
+
e.clientX >= n.left - kn && e.clientX <= n.right + kn && e.clientY >= n.top - kn && e.clientY <= n.bottom + kn || S(!1, ne(ee, e));
|
|
1510
1508
|
}
|
|
1511
1509
|
K.start(0, () => {
|
|
1512
1510
|
t.addEventListener("mouseup", n, { once: !0 });
|
|
1513
1511
|
});
|
|
1514
1512
|
}
|
|
1515
|
-
},
|
|
1513
|
+
}, w.getValidationProps, l, ce);
|
|
1516
1514
|
q.role = "combobox";
|
|
1517
1515
|
let me = {
|
|
1518
1516
|
...h,
|
|
1519
|
-
open:
|
|
1520
|
-
disabled:
|
|
1521
|
-
value:
|
|
1522
|
-
readOnly:
|
|
1523
|
-
placeholder: !
|
|
1517
|
+
open: N,
|
|
1518
|
+
disabled: ie,
|
|
1519
|
+
value: P,
|
|
1520
|
+
readOnly: T,
|
|
1521
|
+
placeholder: !R
|
|
1524
1522
|
};
|
|
1525
1523
|
return d("button", e, {
|
|
1526
1524
|
ref: [t, U],
|
|
@@ -1531,7 +1529,7 @@ var kn = 2, An = 400, jn = 200, Mn = {
|
|
|
1531
1529
|
});
|
|
1532
1530
|
process.env.NODE_ENV !== "production" && (Nn.displayName = "SelectTrigger");
|
|
1533
1531
|
//#endregion
|
|
1534
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1532
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/value/SelectValue.js
|
|
1535
1533
|
var Pn = { value: () => null }, Fn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
1536
1534
|
let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: l } = En(), u = J(c, $.value), f = J(c, $.items), p = J(c, $.itemToStringLabel), m = J(c, $.hasSelectedValue), h = !m && a != null && i == null, g = J(c, $.hasNullItemLabel, h), _ = {
|
|
1537
1535
|
value: u,
|
|
@@ -1546,7 +1544,7 @@ var Pn = { value: () => null }, Fn = /* @__PURE__ */ Z.forwardRef(function(e, t)
|
|
|
1546
1544
|
});
|
|
1547
1545
|
process.env.NODE_ENV !== "production" && (Fn.displayName = "SelectValue");
|
|
1548
1546
|
//#endregion
|
|
1549
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1547
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/icon/SelectIcon.js
|
|
1550
1548
|
var In = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
1551
1549
|
let { className: n, render: r, style: i, ...a } = e, { store: o } = En();
|
|
1552
1550
|
return d("span", e, {
|
|
@@ -1561,11 +1559,11 @@ var In = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
|
1561
1559
|
});
|
|
1562
1560
|
process.env.NODE_ENV !== "production" && (In.displayName = "SelectIcon");
|
|
1563
1561
|
//#endregion
|
|
1564
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1562
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/portal/SelectPortalContext.js
|
|
1565
1563
|
var Ln = /* @__PURE__ */ Z.createContext(void 0);
|
|
1566
1564
|
process.env.NODE_ENV !== "production" && (Ln.displayName = "SelectPortalContext");
|
|
1567
1565
|
//#endregion
|
|
1568
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1566
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/portal/SelectPortal.js
|
|
1569
1567
|
var Rn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
1570
1568
|
let { store: n } = En(), r = J(n, $.mounted), i = J(n, $.forceMount);
|
|
1571
1569
|
return r || i ? /* @__PURE__ */ Q(Ln.Provider, {
|
|
@@ -1578,7 +1576,7 @@ var Rn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
|
1578
1576
|
});
|
|
1579
1577
|
process.env.NODE_ENV !== "production" && (Rn.displayName = "SelectPortal");
|
|
1580
1578
|
//#endregion
|
|
1581
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1579
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/positioner/SelectPositionerContext.js
|
|
1582
1580
|
var zn = /* @__PURE__ */ Z.createContext(void 0);
|
|
1583
1581
|
process.env.NODE_ENV !== "production" && (zn.displayName = "SelectPositionerContext");
|
|
1584
1582
|
function Bn() {
|
|
@@ -1587,7 +1585,7 @@ function Bn() {
|
|
|
1587
1585
|
return e;
|
|
1588
1586
|
}
|
|
1589
1587
|
//#endregion
|
|
1590
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1588
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/popup/utils.js
|
|
1591
1589
|
function Vn(e, t) {
|
|
1592
1590
|
e && Object.assign(e.style, t);
|
|
1593
1591
|
}
|
|
@@ -1597,15 +1595,15 @@ var Hn = {
|
|
|
1597
1595
|
overflowX: "hidden",
|
|
1598
1596
|
overflowY: "auto"
|
|
1599
1597
|
}, Un = { position: "fixed" }, Wn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
1600
|
-
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: h = !1, disableAnchorTracking: g, alignItemWithTrigger: _ = !0, collisionAvoidance: v = ot, style: y, ...b } = e, { store:
|
|
1601
|
-
!
|
|
1602
|
-
|
|
1603
|
-
}, [
|
|
1604
|
-
let
|
|
1598
|
+
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: h = !1, disableAnchorTracking: g, alignItemWithTrigger: _ = !0, collisionAvoidance: v = ot, style: y, ...b } = e, { store: S, listRef: C, labelsRef: w, alignItemWithTriggerActiveRef: T, selectedItemTextRef: E, valuesRef: ee, initialValueRef: D, popupRef: O, setValue: te } = En(), k = Dn(), A = J(S, $.open), j = J(S, $.mounted), re = J(S, $.modal), M = J(S, $.value), ie = J(S, $.openMethod), N = J(S, $.positionerElement), P = J(S, $.triggerElement), ae = J(S, $.isItemEqualToValue), F = J(S, $.transitionStatus), I = Z.useRef(null), oe = Z.useRef(null), [L, R] = Z.useState(_), z = j && L && ie !== "touch";
|
|
1599
|
+
!j && L !== _ && R(_), p(() => {
|
|
1600
|
+
j || ($.scrollUpArrowVisible(S.state) && S.set("scrollUpArrowVisible", !1), $.scrollDownArrowVisible(S.state) && S.set("scrollDownArrowVisible", !1));
|
|
1601
|
+
}, [S, j]), Z.useImperativeHandle(T, () => z), gn((z || re) && A, ie === "touch", N, P);
|
|
1602
|
+
let B = Ae({
|
|
1605
1603
|
anchor: n,
|
|
1606
|
-
floatingRootContext:
|
|
1604
|
+
floatingRootContext: k,
|
|
1607
1605
|
positionMethod: r,
|
|
1608
|
-
mounted:
|
|
1606
|
+
mounted: j,
|
|
1609
1607
|
side: o,
|
|
1610
1608
|
sideOffset: c,
|
|
1611
1609
|
align: s,
|
|
@@ -1614,93 +1612,93 @@ var Hn = {
|
|
|
1614
1612
|
collisionBoundary: u,
|
|
1615
1613
|
collisionPadding: d,
|
|
1616
1614
|
sticky: h,
|
|
1617
|
-
disableAnchorTracking: g ??
|
|
1615
|
+
disableAnchorTracking: g ?? z,
|
|
1618
1616
|
collisionAvoidance: v,
|
|
1619
1617
|
keepMounted: !0
|
|
1620
|
-
}),
|
|
1621
|
-
open:
|
|
1622
|
-
side:
|
|
1623
|
-
align:
|
|
1624
|
-
anchorHidden:
|
|
1618
|
+
}), V = z ? "none" : B.side, H = z ? Un : B.positionerStyles, se = $e(e, {
|
|
1619
|
+
open: A,
|
|
1620
|
+
side: V,
|
|
1621
|
+
align: B.align,
|
|
1622
|
+
anchorHidden: B.anchorHidden
|
|
1625
1623
|
}, {
|
|
1626
1624
|
styles: H,
|
|
1627
|
-
transitionStatus:
|
|
1625
|
+
transitionStatus: F,
|
|
1628
1626
|
props: b,
|
|
1629
1627
|
refs: [t, m((e) => {
|
|
1630
|
-
|
|
1628
|
+
S.set("positionerElement", e);
|
|
1631
1629
|
})],
|
|
1632
|
-
hidden: !
|
|
1633
|
-
inert: !
|
|
1630
|
+
hidden: !j,
|
|
1631
|
+
inert: !A
|
|
1634
1632
|
}), U = Z.useRef(0), ce = m((e) => {
|
|
1635
|
-
if (e.size === 0 && U.current === 0 ||
|
|
1633
|
+
if (e.size === 0 && U.current === 0 || ee.current.length === 0) return;
|
|
1636
1634
|
let t = U.current;
|
|
1637
1635
|
if (U.current = e.size, e.size === t) return;
|
|
1638
|
-
let n =
|
|
1639
|
-
if (t !== 0 && !
|
|
1640
|
-
let e = D.current, t = e != null && an(
|
|
1641
|
-
|
|
1636
|
+
let n = ne(x);
|
|
1637
|
+
if (t !== 0 && !S.state.multiple && M !== null && an(ee.current, M, ae) === -1) {
|
|
1638
|
+
let e = D.current, t = e != null && an(ee.current, e, ae) !== -1 ? e : null;
|
|
1639
|
+
te(t, n), t === null && (S.set("selectedIndex", null), E.current = null);
|
|
1642
1640
|
}
|
|
1643
|
-
if (t !== 0 &&
|
|
1644
|
-
let e = (e) => an(
|
|
1645
|
-
(t.length !==
|
|
1641
|
+
if (t !== 0 && S.state.multiple && Array.isArray(M)) {
|
|
1642
|
+
let e = (e) => an(ee.current, e, ae) !== -1, t = M.filter((t) => e(t));
|
|
1643
|
+
(t.length !== M.length || t.some((e) => !rn(M, e, ae))) && (te(t, n), t.length === 0 && (S.set("selectedIndex", null), E.current = null));
|
|
1646
1644
|
}
|
|
1647
|
-
if (
|
|
1648
|
-
|
|
1645
|
+
if (A && z) {
|
|
1646
|
+
S.update({
|
|
1649
1647
|
scrollUpArrowVisible: !1,
|
|
1650
1648
|
scrollDownArrowVisible: !1
|
|
1651
1649
|
});
|
|
1652
1650
|
let e = { height: "" };
|
|
1653
|
-
Vn(
|
|
1651
|
+
Vn(N, e), Vn(O.current, e);
|
|
1654
1652
|
}
|
|
1655
1653
|
}), le = Z.useMemo(() => ({
|
|
1656
|
-
...
|
|
1657
|
-
side:
|
|
1658
|
-
alignItemWithTriggerActive:
|
|
1659
|
-
setControlledAlignItemWithTrigger:
|
|
1660
|
-
scrollUpArrowRef:
|
|
1661
|
-
scrollDownArrowRef:
|
|
1654
|
+
...B,
|
|
1655
|
+
side: V,
|
|
1656
|
+
alignItemWithTriggerActive: z,
|
|
1657
|
+
setControlledAlignItemWithTrigger: R,
|
|
1658
|
+
scrollUpArrowRef: I,
|
|
1659
|
+
scrollDownArrowRef: oe
|
|
1662
1660
|
}), [
|
|
1663
|
-
V,
|
|
1664
|
-
oe,
|
|
1665
1661
|
B,
|
|
1666
|
-
|
|
1662
|
+
V,
|
|
1663
|
+
z,
|
|
1664
|
+
R
|
|
1667
1665
|
]);
|
|
1668
1666
|
return /* @__PURE__ */ Q(Re, {
|
|
1669
|
-
elementsRef:
|
|
1670
|
-
labelsRef:
|
|
1667
|
+
elementsRef: C,
|
|
1668
|
+
labelsRef: w,
|
|
1671
1669
|
onMapChange: ce,
|
|
1672
1670
|
children: /* @__PURE__ */ lt(zn.Provider, {
|
|
1673
1671
|
value: le,
|
|
1674
|
-
children: [
|
|
1675
|
-
inert: $t(!
|
|
1676
|
-
cutout:
|
|
1672
|
+
children: [j && re && /* @__PURE__ */ Q(en, {
|
|
1673
|
+
inert: $t(!A),
|
|
1674
|
+
cutout: P
|
|
1677
1675
|
}), se]
|
|
1678
1676
|
})
|
|
1679
1677
|
});
|
|
1680
1678
|
});
|
|
1681
1679
|
process.env.NODE_ENV !== "production" && (Wn.displayName = "SelectPositioner");
|
|
1682
1680
|
//#endregion
|
|
1683
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1681
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/popup/SelectPopup.js
|
|
1684
1682
|
var Gn = {
|
|
1685
1683
|
...Pe,
|
|
1686
1684
|
...We
|
|
1687
1685
|
}, Kn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
1688
|
-
let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: s, popupRef: c, onOpenChangeComplete: l, setOpen: u, valueRef: f, selectedItemTextRef: h, keyboardActiveRef: g, multiple: _, handleScrollArrowVisibility: y, scrollHandlerRef: b, listRef: x, highlightItemOnHover:
|
|
1689
|
-
if (!
|
|
1690
|
-
if (
|
|
1686
|
+
let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: s, popupRef: c, onOpenChangeComplete: l, setOpen: u, valueRef: f, selectedItemTextRef: h, keyboardActiveRef: g, multiple: _, handleScrollArrowVisibility: y, scrollHandlerRef: b, listRef: x, highlightItemOnHover: C } = En(), { side: w, align: T, alignItemWithTriggerActive: E, isPositioned: ee, setControlledAlignItemWithTrigger: D, scrollDownArrowRef: O, scrollUpArrowRef: te } = Bn(), k = vn(!0) != null, A = Dn(), re = Ke(), { nonce: M, disableStyleElements: ie } = qe(), N = J(s, $.id), P = J(s, $.open), ae = J(s, $.mounted), F = J(s, $.popupProps), I = J(s, $.transitionStatus), oe = J(s, $.triggerElement), L = J(s, $.positionerElement), R = J(s, $.listElement), z = Z.useRef(!1), B = Z.useRef(!1), V = Z.useRef({}), H = Fe(), se = m((e) => {
|
|
1687
|
+
if (!L || !c.current || !B.current) return;
|
|
1688
|
+
if (z.current || !E) {
|
|
1691
1689
|
y();
|
|
1692
1690
|
return;
|
|
1693
1691
|
}
|
|
1694
|
-
let t =
|
|
1692
|
+
let t = L.style.top === "0px", n = L.style.bottom === "0px";
|
|
1695
1693
|
if (!t && !n) {
|
|
1696
1694
|
y();
|
|
1697
1695
|
return;
|
|
1698
1696
|
}
|
|
1699
|
-
let r = Yn(
|
|
1700
|
-
|
|
1697
|
+
let r = Yn(L), i = Xn(L.getBoundingClientRect().height, "y", r), a = j(L), o = getComputedStyle(L), s = parseFloat(o.marginTop), l = parseFloat(o.marginBottom), u = qn(getComputedStyle(c.current)), d = Math.min(a.documentElement.clientHeight - s - l, u), f = e.scrollTop, p = Jn(e), m = 0, h = null, g = !1, _ = !1, v = (e) => {
|
|
1698
|
+
L.style.height = `${e}px`;
|
|
1701
1699
|
}, b = (t, n) => {
|
|
1702
1700
|
let r = et(t, 0, d - i);
|
|
1703
|
-
r > 0 && v(i + r), e.scrollTop = n, d - (i + r) <= 1 && (
|
|
1701
|
+
r > 0 && v(i + r), e.scrollTop = n, d - (i + r) <= 1 && (z.current = !0), y();
|
|
1704
1702
|
}, x = t ? p - f : f, S = Math.min(i + x, d);
|
|
1705
1703
|
if (m = S, x <= 1) {
|
|
1706
1704
|
b(x, t ? p : 0);
|
|
@@ -1710,146 +1708,146 @@ var Gn = {
|
|
|
1710
1708
|
let t = Jn(e), n = _ ? t : et(h, 0, t);
|
|
1711
1709
|
Math.abs(e.scrollTop - n) > 1 && (e.scrollTop = n);
|
|
1712
1710
|
}
|
|
1713
|
-
(g || m >= d - 1) && (
|
|
1711
|
+
(g || m >= d - 1) && (z.current = !0), y();
|
|
1714
1712
|
});
|
|
1715
1713
|
Z.useImperativeHandle(b, () => se, [se]), Ee({
|
|
1716
|
-
open:
|
|
1714
|
+
open: P,
|
|
1717
1715
|
ref: c,
|
|
1718
1716
|
onComplete() {
|
|
1719
|
-
|
|
1717
|
+
P && l?.(!0);
|
|
1720
1718
|
}
|
|
1721
1719
|
});
|
|
1722
1720
|
let U = {
|
|
1723
|
-
open:
|
|
1724
|
-
transitionStatus:
|
|
1725
|
-
side:
|
|
1726
|
-
align:
|
|
1721
|
+
open: P,
|
|
1722
|
+
transitionStatus: I,
|
|
1723
|
+
side: w,
|
|
1724
|
+
align: T
|
|
1727
1725
|
};
|
|
1728
1726
|
p(() => {
|
|
1729
|
-
!
|
|
1730
|
-
top:
|
|
1731
|
-
left:
|
|
1732
|
-
right:
|
|
1733
|
-
height:
|
|
1734
|
-
bottom:
|
|
1735
|
-
minHeight:
|
|
1736
|
-
maxHeight:
|
|
1737
|
-
marginTop:
|
|
1738
|
-
marginBottom:
|
|
1727
|
+
!L || !c.current || Object.keys(V.current).length || (V.current = {
|
|
1728
|
+
top: L.style.top || "0",
|
|
1729
|
+
left: L.style.left || "0",
|
|
1730
|
+
right: L.style.right,
|
|
1731
|
+
height: L.style.height,
|
|
1732
|
+
bottom: L.style.bottom,
|
|
1733
|
+
minHeight: L.style.minHeight,
|
|
1734
|
+
maxHeight: L.style.maxHeight,
|
|
1735
|
+
marginTop: L.style.marginTop,
|
|
1736
|
+
marginBottom: L.style.marginBottom
|
|
1739
1737
|
});
|
|
1740
|
-
}, [c,
|
|
1741
|
-
|
|
1738
|
+
}, [c, L]), p(() => {
|
|
1739
|
+
P || E || (B.current = !1, z.current = !1, Vn(L, V.current));
|
|
1742
1740
|
}, [
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1741
|
+
P,
|
|
1742
|
+
E,
|
|
1743
|
+
L,
|
|
1746
1744
|
c
|
|
1747
1745
|
]), p(() => {
|
|
1748
1746
|
let e = c.current;
|
|
1749
|
-
if (!
|
|
1750
|
-
if (!
|
|
1751
|
-
|
|
1747
|
+
if (!P || !oe || !L || !e || E && !ee || s.state.transitionStatus === "ending") return;
|
|
1748
|
+
if (!E) {
|
|
1749
|
+
B.current = !0, H.request(y), e.style.removeProperty("--transform-origin");
|
|
1752
1750
|
return;
|
|
1753
1751
|
}
|
|
1754
1752
|
let t = $n(e);
|
|
1755
1753
|
e.style.removeProperty("--transform-origin");
|
|
1756
1754
|
try {
|
|
1757
|
-
let t = h.current, n = f.current, r = getComputedStyle(
|
|
1755
|
+
let t = h.current, n = f.current, r = getComputedStyle(L), i = getComputedStyle(e), a = j(oe), o = v(L), c = Yn(oe), l = Zn(oe.getBoundingClientRect(), c), u = Zn(L.getBoundingClientRect(), c), d = l.height, p = R || e, m = p.scrollHeight, g = parseFloat(i.borderBottomWidth), _ = parseFloat(r.marginTop) || 10, b = parseFloat(r.marginBottom) || 10, S = parseFloat(r.minHeight) || 100, w = qn(i), T = a.documentElement.clientHeight - _ - b, E = a.documentElement.clientWidth, ee = T - l.bottom + d, O, te = re === "rtl" ? l.right - u.width : l.left, k = 0;
|
|
1758
1756
|
if (t && n) {
|
|
1759
1757
|
let e = Zn(n.getBoundingClientRect(), c);
|
|
1760
|
-
O = Zn(t.getBoundingClientRect(), c),
|
|
1758
|
+
O = Zn(t.getBoundingClientRect(), c), te = u.left + (re === "rtl" ? e.right - O.right : e.left - O.left);
|
|
1761
1759
|
let r = e.top - l.top + e.height / 2;
|
|
1762
|
-
|
|
1760
|
+
k = O.top - u.top + O.height / 2 - r;
|
|
1763
1761
|
}
|
|
1764
|
-
let
|
|
1765
|
-
|
|
1766
|
-
let
|
|
1767
|
-
|
|
1768
|
-
let
|
|
1769
|
-
if (
|
|
1770
|
-
|
|
1762
|
+
let ne = ee + k + b + g, A = Math.min(T, ne), M = T - _ - b, ie = ne - A, N = E - 5;
|
|
1763
|
+
L.style.left = `${et(te, 5, N - u.width)}px`, L.style.height = `${A}px`, L.style.maxHeight = "auto", L.style.marginTop = `${_}px`, L.style.marginBottom = `${b}px`, e.style.height = "100%";
|
|
1764
|
+
let P = Jn(p), ae = ie >= P - 1;
|
|
1765
|
+
ae && (A = Math.min(T, u.height) - (ie - P));
|
|
1766
|
+
let F = l.top < 20 || l.bottom > T - 20 || Math.ceil(A) + 1 < Math.min(m, S), I = (o.visualViewport?.scale ?? 1) !== 1 && X;
|
|
1767
|
+
if (F || I) {
|
|
1768
|
+
B.current = !0, Vn(L, V.current), D(!1);
|
|
1771
1769
|
return;
|
|
1772
1770
|
}
|
|
1773
|
-
let H = Math.max(
|
|
1774
|
-
if (
|
|
1775
|
-
let e = Math.max(0,
|
|
1776
|
-
|
|
1777
|
-
} else
|
|
1771
|
+
let H = Math.max(S, A);
|
|
1772
|
+
if (ae) {
|
|
1773
|
+
let e = Math.max(0, T - ne);
|
|
1774
|
+
L.style.top = u.height >= M ? "0" : `${e}px`, L.style.height = `${A}px`, p.scrollTop = Jn(p);
|
|
1775
|
+
} else L.style.bottom = "0", p.scrollTop = ie;
|
|
1778
1776
|
if (O) {
|
|
1779
1777
|
let t = u.top, n = u.height, r = O.top + O.height / 2, i = et(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
|
|
1780
1778
|
e.style.setProperty("--transform-origin", `50% ${i}%`);
|
|
1781
1779
|
}
|
|
1782
|
-
(H ===
|
|
1780
|
+
(H === T || A >= w) && (z.current = !0), y(), C && s.state.selectedIndex === null && s.state.activeIndex === null && x.current[0] != null && s.set("activeIndex", 0), B.current = !0;
|
|
1783
1781
|
} finally {
|
|
1784
1782
|
t();
|
|
1785
1783
|
}
|
|
1786
1784
|
}, [
|
|
1787
1785
|
s,
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1786
|
+
P,
|
|
1787
|
+
L,
|
|
1788
|
+
oe,
|
|
1791
1789
|
f,
|
|
1792
1790
|
h,
|
|
1793
1791
|
c,
|
|
1794
1792
|
y,
|
|
1795
|
-
|
|
1793
|
+
E,
|
|
1796
1794
|
D,
|
|
1797
1795
|
H,
|
|
1798
1796
|
O,
|
|
1799
|
-
k,
|
|
1800
|
-
z,
|
|
1801
|
-
x,
|
|
1802
|
-
S,
|
|
1803
1797
|
te,
|
|
1804
|
-
|
|
1798
|
+
R,
|
|
1799
|
+
x,
|
|
1800
|
+
C,
|
|
1801
|
+
re,
|
|
1802
|
+
ee
|
|
1805
1803
|
]), Z.useEffect(() => {
|
|
1806
|
-
if (!
|
|
1807
|
-
let e = v(
|
|
1804
|
+
if (!E || !L || !P) return;
|
|
1805
|
+
let e = v(L);
|
|
1808
1806
|
function t(e) {
|
|
1809
|
-
u(!1,
|
|
1807
|
+
u(!1, ne(S, e));
|
|
1810
1808
|
}
|
|
1811
1809
|
return q(e, "resize", t);
|
|
1812
1810
|
}, [
|
|
1813
1811
|
u,
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1812
|
+
E,
|
|
1813
|
+
L,
|
|
1814
|
+
P
|
|
1817
1815
|
]);
|
|
1818
1816
|
let ce = {
|
|
1819
|
-
...
|
|
1817
|
+
...R ? {
|
|
1820
1818
|
role: "presentation",
|
|
1821
1819
|
"aria-orientation": void 0
|
|
1822
1820
|
} : {
|
|
1823
1821
|
role: "listbox",
|
|
1824
1822
|
"aria-multiselectable": _ || void 0,
|
|
1825
|
-
id: `${
|
|
1823
|
+
id: `${N}-list`
|
|
1826
1824
|
},
|
|
1827
1825
|
onKeyDown(e) {
|
|
1828
|
-
g.current = !0,
|
|
1826
|
+
g.current = !0, k && je.has(e.key) && e.stopPropagation();
|
|
1829
1827
|
},
|
|
1830
1828
|
onMouseMove() {
|
|
1831
1829
|
g.current = !1;
|
|
1832
1830
|
},
|
|
1833
1831
|
onScroll(e) {
|
|
1834
|
-
|
|
1832
|
+
R || se(e.currentTarget);
|
|
1835
1833
|
},
|
|
1836
|
-
...
|
|
1834
|
+
...E && { style: R ? { height: "100%" } : Hn }
|
|
1837
1835
|
}, le = d("div", e, {
|
|
1838
1836
|
ref: [t, c],
|
|
1839
1837
|
state: U,
|
|
1840
1838
|
stateAttributesMapping: Gn,
|
|
1841
1839
|
props: [
|
|
1842
|
-
|
|
1840
|
+
F,
|
|
1843
1841
|
ce,
|
|
1844
|
-
ze(
|
|
1845
|
-
{ className: !
|
|
1842
|
+
ze(I),
|
|
1843
|
+
{ className: !R && E ? xn.className : void 0 },
|
|
1846
1844
|
o
|
|
1847
1845
|
]
|
|
1848
1846
|
});
|
|
1849
|
-
return /* @__PURE__ */ lt(Z.Fragment, { children: [!
|
|
1850
|
-
context:
|
|
1847
|
+
return /* @__PURE__ */ lt(Z.Fragment, { children: [!ie && xn.getElement(M), /* @__PURE__ */ Q(Vt, {
|
|
1848
|
+
context: A,
|
|
1851
1849
|
modal: !1,
|
|
1852
|
-
disabled: !
|
|
1850
|
+
disabled: !ae,
|
|
1853
1851
|
returnFocus: a,
|
|
1854
1852
|
restoreFocus: !0,
|
|
1855
1853
|
children: le
|
|
@@ -1864,13 +1862,13 @@ function Jn(e) {
|
|
|
1864
1862
|
return Sn(e.scrollHeight, e.clientHeight);
|
|
1865
1863
|
}
|
|
1866
1864
|
function Yn(e) {
|
|
1867
|
-
return
|
|
1865
|
+
return L.getScale(e);
|
|
1868
1866
|
}
|
|
1869
1867
|
function Xn(e, t, n) {
|
|
1870
1868
|
return e / n[t];
|
|
1871
1869
|
}
|
|
1872
1870
|
function Zn(e, t) {
|
|
1873
|
-
return
|
|
1871
|
+
return z({
|
|
1874
1872
|
x: Xn(e.x, "x", t),
|
|
1875
1873
|
y: Xn(e.y, "y", t),
|
|
1876
1874
|
width: Xn(e.width, "x", t),
|
|
@@ -1893,7 +1891,7 @@ function $n(e) {
|
|
|
1893
1891
|
};
|
|
1894
1892
|
}
|
|
1895
1893
|
//#endregion
|
|
1896
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1894
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/list/SelectList.js
|
|
1897
1895
|
var er = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
1898
1896
|
let { className: n, render: r, style: i, ...a } = e, { store: o, scrollHandlerRef: s } = En(), { alignItemWithTriggerActive: c } = Bn(), l = J(o, $.hasScrollArrows), u = J(o, $.openMethod), f = J(o, $.multiple), p = {
|
|
1899
1897
|
id: `${J(o, $.id)}-list`,
|
|
@@ -1914,25 +1912,25 @@ var er = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
|
1914
1912
|
});
|
|
1915
1913
|
process.env.NODE_ENV !== "production" && (er.displayName = "SelectList");
|
|
1916
1914
|
//#endregion
|
|
1917
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1915
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/scroll-arrow/SelectScrollArrow.js
|
|
1918
1916
|
var tr = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
1919
|
-
let { render: n, className: r, style: i, direction: a, keepMounted: o = !1, ...s } = e, c = a === "up", { store: l, popupRef: u, listRef: f, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = En(), { side: g, scrollDownArrowRef: _, scrollUpArrowRef: v } = Bn(), y = J(l, c ? $.scrollUpArrowVisible : $.scrollDownArrowVisible), b = J(l, $.openMethod), x = y && b !== "touch", S = Te(), C = c ? v : _, { transitionStatus:
|
|
1917
|
+
let { render: n, className: r, style: i, direction: a, keepMounted: o = !1, ...s } = e, c = a === "up", { store: l, popupRef: u, listRef: f, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = En(), { side: g, scrollDownArrowRef: _, scrollUpArrowRef: v } = Bn(), y = J(l, c ? $.scrollUpArrowVisible : $.scrollDownArrowVisible), b = J(l, $.openMethod), x = y && b !== "touch", S = Te(), C = c ? v : _, { transitionStatus: w, setMounted: T } = Ye(x);
|
|
1920
1918
|
p(() => (h.current += 1, l.state.hasScrollArrows || l.set("hasScrollArrows", !0), () => {
|
|
1921
1919
|
h.current = Math.max(0, h.current - 1), h.current === 0 && l.state.hasScrollArrows && l.set("hasScrollArrows", !1);
|
|
1922
1920
|
}), [l, h]), Ee({
|
|
1923
1921
|
open: x,
|
|
1924
1922
|
ref: C,
|
|
1925
1923
|
onComplete() {
|
|
1926
|
-
x ||
|
|
1924
|
+
x || T(!1);
|
|
1927
1925
|
}
|
|
1928
1926
|
});
|
|
1929
|
-
let
|
|
1927
|
+
let E = d("div", e, {
|
|
1930
1928
|
ref: [t, C],
|
|
1931
1929
|
state: {
|
|
1932
1930
|
direction: a,
|
|
1933
1931
|
visible: x,
|
|
1934
1932
|
side: g,
|
|
1935
|
-
transitionStatus:
|
|
1933
|
+
transitionStatus: w
|
|
1936
1934
|
},
|
|
1937
1935
|
props: [{
|
|
1938
1936
|
"aria-hidden": !0,
|
|
@@ -1963,7 +1961,7 @@ var tr = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
|
1963
1961
|
}
|
|
1964
1962
|
}, s]
|
|
1965
1963
|
});
|
|
1966
|
-
return x || o ?
|
|
1964
|
+
return x || o ? E : null;
|
|
1967
1965
|
});
|
|
1968
1966
|
process.env.NODE_ENV !== "production" && (tr.displayName = "SelectScrollArrow");
|
|
1969
1967
|
function nr(e, t, n, r, i, a) {
|
|
@@ -1991,7 +1989,7 @@ function nr(e, t, n, r, i, a) {
|
|
|
1991
1989
|
return c > o && l ? Cn(l.offsetTop + l.offsetHeight - r + i, a) : a;
|
|
1992
1990
|
}
|
|
1993
1991
|
//#endregion
|
|
1994
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
1992
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/scroll-down-arrow/SelectScrollDownArrow.js
|
|
1995
1993
|
var rr = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
1996
1994
|
return /* @__PURE__ */ Q(tr, {
|
|
1997
1995
|
...e,
|
|
@@ -2001,7 +1999,7 @@ var rr = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
|
2001
1999
|
});
|
|
2002
2000
|
process.env.NODE_ENV !== "production" && (rr.displayName = "SelectScrollDownArrow");
|
|
2003
2001
|
//#endregion
|
|
2004
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
2002
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/select/scroll-up-arrow/SelectScrollUpArrow.js
|
|
2005
2003
|
var ir = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
2006
2004
|
return /* @__PURE__ */ Q(tr, {
|
|
2007
2005
|
...e,
|
|
@@ -2011,7 +2009,7 @@ var ir = /* @__PURE__ */ Z.forwardRef(function(e, t) {
|
|
|
2011
2009
|
});
|
|
2012
2010
|
process.env.NODE_ENV !== "production" && (ir.displayName = "SelectScrollUpArrow");
|
|
2013
2011
|
//#endregion
|
|
2014
|
-
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.
|
|
2012
|
+
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@phosphor-icons/react/dist/defs/CaretDown.es.js
|
|
2015
2013
|
var ar = /* @__PURE__ */ new Map([
|
|
2016
2014
|
["bold", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" }))],
|
|
2017
2015
|
["duotone", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", {
|
|
@@ -2049,7 +2047,7 @@ var ar = /* @__PURE__ */ new Map([
|
|
|
2049
2047
|
}));
|
|
2050
2048
|
cr.displayName = "CaretDownIcon";
|
|
2051
2049
|
//#endregion
|
|
2052
|
-
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.
|
|
2050
|
+
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@phosphor-icons/react/dist/csr/CaretUp.es.js
|
|
2053
2051
|
var lr = Z.forwardRef((e, t) => /* @__PURE__ */ Z.createElement(g, {
|
|
2054
2052
|
ref: t,
|
|
2055
2053
|
...e,
|
|
@@ -2057,7 +2055,7 @@ var lr = Z.forwardRef((e, t) => /* @__PURE__ */ Z.createElement(g, {
|
|
|
2057
2055
|
}));
|
|
2058
2056
|
lr.displayName = "CaretUpIcon";
|
|
2059
2057
|
//#endregion
|
|
2060
|
-
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.
|
|
2058
|
+
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@phosphor-icons/react/dist/csr/CaretUpDown.es.js
|
|
2061
2059
|
var ur = Z.forwardRef((e, t) => /* @__PURE__ */ Z.createElement(g, {
|
|
2062
2060
|
ref: t,
|
|
2063
2061
|
...e,
|