@krosoft/react 0.0.92 → 0.0.94
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/{AppSubTitle-CvJlatS9.js → AppSubTitle-ClfoCdaL.js} +1 -1
- package/dist/{AppTitle-LIQCjpo5.js → AppTitle-CdIKv3Uc.js} +19 -18
- package/dist/{AppVerticalTabs-BHrad7wu.js → AppVerticalTabs-asJym06s.js} +3 -3
- package/dist/{ConfirmationDialog-BlRXnFH5.js → ConfirmationDialog-CwM8I84X.js} +55 -54
- package/dist/DataTable-BB0h65b3.js +500 -0
- package/dist/{MetricCard-BGT2QRn0.js → MetricCard-DhTm-HB1.js} +7 -6
- package/dist/{SearchInput-DpOuKSIf.js → SearchInput-Jix7xgVv.js} +19 -18
- package/dist/{TableFilter-DFtN_-Bg.js → TableFilter-0SlGbGRV.js} +12 -11
- package/dist/{ThemeSelector-D9KTJAWz.js → ThemeSelector-Bzxc7UEq.js} +1 -1
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/dialogs/index.js +2 -2
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/index.js +63 -64
- package/dist/components/core/inputs/index.js +1 -1
- package/dist/components/core/layouts/index.js +2 -2
- package/dist/components/core/table/DataTable.d.ts +1 -1
- package/dist/components/core/table/DataTable.d.ts.map +1 -1
- package/dist/components/core/table/index.js +8 -9
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +256 -255
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +54 -52
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +4 -2
- package/dist/{select-D6_XPD6x.js → select-zzSnHs9S.js} +481 -456
- package/dist/toaster-DBg6ZSwC.js +134 -0
- package/dist/toggle-group-FWXeh1Cr.js +20235 -0
- package/dist/useDataTable-CQpx3zTg.js +91 -0
- package/package.json +8 -7
- package/dist/TableSettings-m2q3s0wU.js +0 -382
- package/dist/toaster-D6ND7OTk.js +0 -113
- package/dist/toggle-group-VJoGbVQm.js +0 -19987
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as v, jsxs as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as v, jsxs as q, Fragment as Ge } from "react/jsx-runtime";
|
|
2
|
+
import { c as Q } from "./index-gWiv5-6R.js";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
4
|
+
import re, { useState as fn } from "react";
|
|
5
|
+
import * as ut from "react-dom";
|
|
6
6
|
import pn from "react-dom";
|
|
7
|
-
import { f as
|
|
8
|
-
import { c as
|
|
7
|
+
import { f as dt, g as ft, u as B, h as We, P as A, i as G, A as mn, j as M, k as Ye, l as pt, D as vn, m as hn, n as qe, R as gn, V as Sn, o as yn, C as mt } from "./tooltip-CAu4DEhc.js";
|
|
8
|
+
import { c as Xe } from "./index-DSyPHOLE.js";
|
|
9
9
|
// @__NO_SIDE_EFFECTS__
|
|
10
|
-
function
|
|
10
|
+
function Qe(e) {
|
|
11
11
|
const t = /* @__PURE__ */ wn(e), n = a.forwardRef((r, o) => {
|
|
12
|
-
const { children:
|
|
12
|
+
const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(bn);
|
|
13
13
|
if (u) {
|
|
14
14
|
const d = u.props.children, S = c.map((h) => h === u ? a.Children.count(d) > 1 ? a.Children.only(null) : a.isValidElement(d) ? d.props.children : null : h);
|
|
15
15
|
return /* @__PURE__ */ v(t, { ...s, ref: o, children: a.isValidElement(d) ? a.cloneElement(d, void 0, S) : null });
|
|
16
16
|
}
|
|
17
|
-
return /* @__PURE__ */ v(t, { ...s, ref: o, children:
|
|
17
|
+
return /* @__PURE__ */ v(t, { ...s, ref: o, children: i });
|
|
18
18
|
});
|
|
19
19
|
return n.displayName = `${e}.Slot`, n;
|
|
20
20
|
}
|
|
21
21
|
// @__NO_SIDE_EFFECTS__
|
|
22
22
|
function wn(e) {
|
|
23
23
|
const t = a.forwardRef((n, r) => {
|
|
24
|
-
const { children: o, ...
|
|
24
|
+
const { children: o, ...i } = n;
|
|
25
25
|
if (a.isValidElement(o)) {
|
|
26
|
-
const s = xn(o), c = En(
|
|
27
|
-
return o.type !== a.Fragment && (c.ref = r ?
|
|
26
|
+
const s = xn(o), c = En(i, o.props);
|
|
27
|
+
return o.type !== a.Fragment && (c.ref = r ? dt(r, s) : s), a.cloneElement(o, c);
|
|
28
28
|
}
|
|
29
29
|
return a.Children.count(o) > 1 ? a.Children.only(null) : null;
|
|
30
30
|
});
|
|
@@ -37,11 +37,11 @@ function bn(e) {
|
|
|
37
37
|
function En(e, t) {
|
|
38
38
|
const n = { ...t };
|
|
39
39
|
for (const r in t) {
|
|
40
|
-
const o = e[r],
|
|
41
|
-
/^on[A-Z]/.test(r) ? o &&
|
|
42
|
-
const u =
|
|
40
|
+
const o = e[r], i = t[r];
|
|
41
|
+
/^on[A-Z]/.test(r) ? o && i ? n[r] = (...c) => {
|
|
42
|
+
const u = i(...c);
|
|
43
43
|
return o(...c), u;
|
|
44
|
-
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...
|
|
44
|
+
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
|
|
45
45
|
}
|
|
46
46
|
return { ...e, ...n };
|
|
47
47
|
}
|
|
@@ -51,31 +51,31 @@ function xn(e) {
|
|
|
51
51
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
52
52
|
}
|
|
53
53
|
function Rn(e) {
|
|
54
|
-
const t = e + "CollectionProvider", [n, r] =
|
|
54
|
+
const t = e + "CollectionProvider", [n, r] = ft(t), [o, i] = n(
|
|
55
55
|
t,
|
|
56
56
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
57
|
-
), s = (
|
|
58
|
-
const { scope: p, children: g } =
|
|
57
|
+
), s = (l) => {
|
|
58
|
+
const { scope: p, children: g } = l, f = re.useRef(null), m = re.useRef(/* @__PURE__ */ new Map()).current;
|
|
59
59
|
return /* @__PURE__ */ v(o, { scope: p, itemMap: m, collectionRef: f, children: g });
|
|
60
60
|
};
|
|
61
61
|
s.displayName = t;
|
|
62
|
-
const c = e + "CollectionSlot", u = /* @__PURE__ */
|
|
63
|
-
(
|
|
64
|
-
const { scope: g, children: f } =
|
|
62
|
+
const c = e + "CollectionSlot", u = /* @__PURE__ */ Qe(c), d = re.forwardRef(
|
|
63
|
+
(l, p) => {
|
|
64
|
+
const { scope: g, children: f } = l, m = i(c, g), b = B(p, m.collectionRef);
|
|
65
65
|
return /* @__PURE__ */ v(u, { ref: b, children: f });
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
d.displayName = c;
|
|
69
|
-
const S = e + "CollectionItemSlot", h = "data-radix-collection-item", y = /* @__PURE__ */
|
|
70
|
-
(
|
|
71
|
-
const { scope: g, children: f, ...m } =
|
|
72
|
-
return
|
|
69
|
+
const S = e + "CollectionItemSlot", h = "data-radix-collection-item", y = /* @__PURE__ */ Qe(S), w = re.forwardRef(
|
|
70
|
+
(l, p) => {
|
|
71
|
+
const { scope: g, children: f, ...m } = l, b = re.useRef(null), x = B(p, b), _ = i(S, g);
|
|
72
|
+
return re.useEffect(() => (_.itemMap.set(b, { ref: b, ...m }), () => void _.itemMap.delete(b))), /* @__PURE__ */ v(y, { [h]: "", ref: x, children: f });
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
w.displayName = S;
|
|
76
|
-
function E(
|
|
77
|
-
const p =
|
|
78
|
-
return
|
|
76
|
+
function E(l) {
|
|
77
|
+
const p = i(e + "CollectionConsumer", l);
|
|
78
|
+
return re.useCallback(() => {
|
|
79
79
|
const f = p.collectionRef.current;
|
|
80
80
|
if (!f) return [];
|
|
81
81
|
const m = Array.from(f.querySelectorAll(`[${h}]`));
|
|
@@ -90,9 +90,9 @@ function Rn(e) {
|
|
|
90
90
|
r
|
|
91
91
|
];
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
function
|
|
95
|
-
const t = a.useContext(
|
|
93
|
+
var Nn = a.createContext(void 0);
|
|
94
|
+
function Tn(e) {
|
|
95
|
+
const t = a.useContext(Nn);
|
|
96
96
|
return e || t || "ltr";
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
@@ -101,22 +101,32 @@ function In(e) {
|
|
|
101
101
|
* This source code is licensed under the ISC license.
|
|
102
102
|
* See the LICENSE file in the root directory of this source tree.
|
|
103
103
|
*/
|
|
104
|
-
const
|
|
104
|
+
const In = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Pn = Xe("check", In);
|
|
105
105
|
/**
|
|
106
106
|
* @license lucide-react v1.16.0 - ISC
|
|
107
107
|
*
|
|
108
108
|
* This source code is licensed under the ISC license.
|
|
109
109
|
* See the LICENSE file in the root directory of this source tree.
|
|
110
110
|
*/
|
|
111
|
-
const _n = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]],
|
|
112
|
-
|
|
111
|
+
const _n = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Mn = Xe("chevron-up", _n);
|
|
112
|
+
/**
|
|
113
|
+
* @license lucide-react v1.16.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/
|
|
118
|
+
const An = [
|
|
119
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
120
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
121
|
+
], On = Xe("x", An);
|
|
122
|
+
var Oe = "focusScope.autoFocusOnMount", ke = "focusScope.autoFocusOnUnmount", Je = { bubbles: !1, cancelable: !0 }, kn = "FocusScope", vt = a.forwardRef((e, t) => {
|
|
113
123
|
const {
|
|
114
124
|
loop: n = !1,
|
|
115
125
|
trapped: r = !1,
|
|
116
126
|
onMountAutoFocus: o,
|
|
117
|
-
onUnmountAutoFocus:
|
|
127
|
+
onUnmountAutoFocus: i,
|
|
118
128
|
...s
|
|
119
|
-
} = e, [c, u] = a.useState(null), d = We(o), S = We(
|
|
129
|
+
} = e, [c, u] = a.useState(null), d = We(o), S = We(i), h = a.useRef(null), y = B(t, (l) => u(l)), w = a.useRef({
|
|
120
130
|
paused: !1,
|
|
121
131
|
pause() {
|
|
122
132
|
this.paused = !0;
|
|
@@ -127,7 +137,7 @@ var Oe = "focusScope.autoFocusOnMount", ke = "focusScope.autoFocusOnUnmount", Qe
|
|
|
127
137
|
}).current;
|
|
128
138
|
a.useEffect(() => {
|
|
129
139
|
if (r) {
|
|
130
|
-
let
|
|
140
|
+
let l = function(m) {
|
|
131
141
|
if (w.paused || !c) return;
|
|
132
142
|
const b = m.target;
|
|
133
143
|
c.contains(b) ? h.current = b : Z(h.current, { select: !0 });
|
|
@@ -140,49 +150,49 @@ var Oe = "focusScope.autoFocusOnMount", ke = "focusScope.autoFocusOnUnmount", Qe
|
|
|
140
150
|
for (const x of m)
|
|
141
151
|
x.removedNodes.length > 0 && Z(c);
|
|
142
152
|
};
|
|
143
|
-
document.addEventListener("focusin",
|
|
153
|
+
document.addEventListener("focusin", l), document.addEventListener("focusout", p);
|
|
144
154
|
const f = new MutationObserver(g);
|
|
145
155
|
return c && f.observe(c, { childList: !0, subtree: !0 }), () => {
|
|
146
|
-
document.removeEventListener("focusin",
|
|
156
|
+
document.removeEventListener("focusin", l), document.removeEventListener("focusout", p), f.disconnect();
|
|
147
157
|
};
|
|
148
158
|
}
|
|
149
159
|
}, [r, c, w.paused]), a.useEffect(() => {
|
|
150
160
|
if (c) {
|
|
151
|
-
|
|
152
|
-
const
|
|
153
|
-
if (!c.contains(
|
|
154
|
-
const g = new CustomEvent(Oe,
|
|
155
|
-
c.addEventListener(Oe, d), c.dispatchEvent(g), g.defaultPrevented || (
|
|
161
|
+
tt.add(w);
|
|
162
|
+
const l = document.activeElement;
|
|
163
|
+
if (!c.contains(l)) {
|
|
164
|
+
const g = new CustomEvent(Oe, Je);
|
|
165
|
+
c.addEventListener(Oe, d), c.dispatchEvent(g), g.defaultPrevented || (Ln(Wn(ht(c)), { select: !0 }), document.activeElement === l && Z(c));
|
|
156
166
|
}
|
|
157
167
|
return () => {
|
|
158
168
|
c.removeEventListener(Oe, d), setTimeout(() => {
|
|
159
|
-
const g = new CustomEvent(ke,
|
|
160
|
-
c.addEventListener(ke, S), c.dispatchEvent(g), g.defaultPrevented || Z(
|
|
169
|
+
const g = new CustomEvent(ke, Je);
|
|
170
|
+
c.addEventListener(ke, S), c.dispatchEvent(g), g.defaultPrevented || Z(l ?? document.body, { select: !0 }), c.removeEventListener(ke, S), tt.remove(w);
|
|
161
171
|
}, 0);
|
|
162
172
|
};
|
|
163
173
|
}
|
|
164
174
|
}, [c, d, S, w]);
|
|
165
175
|
const E = a.useCallback(
|
|
166
|
-
(
|
|
176
|
+
(l) => {
|
|
167
177
|
if (!n && !r || w.paused) return;
|
|
168
|
-
const p =
|
|
178
|
+
const p = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, g = document.activeElement;
|
|
169
179
|
if (p && g) {
|
|
170
|
-
const f =
|
|
171
|
-
m && b ? !
|
|
180
|
+
const f = l.currentTarget, [m, b] = Dn(f);
|
|
181
|
+
m && b ? !l.shiftKey && g === b ? (l.preventDefault(), n && Z(m, { select: !0 })) : l.shiftKey && g === m && (l.preventDefault(), n && Z(b, { select: !0 })) : g === f && l.preventDefault();
|
|
172
182
|
}
|
|
173
183
|
},
|
|
174
184
|
[n, r, w.paused]
|
|
175
185
|
);
|
|
176
|
-
return /* @__PURE__ */ v(
|
|
186
|
+
return /* @__PURE__ */ v(A.div, { tabIndex: -1, ...s, ref: y, onKeyDown: E });
|
|
177
187
|
});
|
|
178
|
-
vt.displayName =
|
|
179
|
-
function
|
|
188
|
+
vt.displayName = kn;
|
|
189
|
+
function Ln(e, { select: t = !1 } = {}) {
|
|
180
190
|
const n = document.activeElement;
|
|
181
191
|
for (const r of e)
|
|
182
192
|
if (Z(r, { select: t }), document.activeElement !== n) return;
|
|
183
193
|
}
|
|
184
|
-
function
|
|
185
|
-
const t = ht(e), n =
|
|
194
|
+
function Dn(e) {
|
|
195
|
+
const t = ht(e), n = et(t, e), r = et(t.reverse(), e);
|
|
186
196
|
return [n, r];
|
|
187
197
|
}
|
|
188
198
|
function ht(e) {
|
|
@@ -195,11 +205,11 @@ function ht(e) {
|
|
|
195
205
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
196
206
|
return t;
|
|
197
207
|
}
|
|
198
|
-
function
|
|
208
|
+
function et(e, t) {
|
|
199
209
|
for (const n of e)
|
|
200
|
-
if (!
|
|
210
|
+
if (!Bn(n, { upTo: t })) return n;
|
|
201
211
|
}
|
|
202
|
-
function
|
|
212
|
+
function Bn(e, { upTo: t }) {
|
|
203
213
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
204
214
|
for (; e; ) {
|
|
205
215
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -208,54 +218,54 @@ function Ln(e, { upTo: t }) {
|
|
|
208
218
|
}
|
|
209
219
|
return !1;
|
|
210
220
|
}
|
|
211
|
-
function
|
|
221
|
+
function Vn(e) {
|
|
212
222
|
return e instanceof HTMLInputElement && "select" in e;
|
|
213
223
|
}
|
|
214
224
|
function Z(e, { select: t = !1 } = {}) {
|
|
215
225
|
if (e && e.focus) {
|
|
216
226
|
const n = document.activeElement;
|
|
217
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
227
|
+
e.focus({ preventScroll: !0 }), e !== n && Vn(e) && t && e.select();
|
|
218
228
|
}
|
|
219
229
|
}
|
|
220
|
-
var
|
|
221
|
-
function
|
|
230
|
+
var tt = Fn();
|
|
231
|
+
function Fn() {
|
|
222
232
|
let e = [];
|
|
223
233
|
return {
|
|
224
234
|
add(t) {
|
|
225
235
|
const n = e[0];
|
|
226
|
-
t !== n && (n == null || n.pause()), e =
|
|
236
|
+
t !== n && (n == null || n.pause()), e = nt(e, t), e.unshift(t);
|
|
227
237
|
},
|
|
228
238
|
remove(t) {
|
|
229
239
|
var n;
|
|
230
|
-
e =
|
|
240
|
+
e = nt(e, t), (n = e[0]) == null || n.resume();
|
|
231
241
|
}
|
|
232
242
|
};
|
|
233
243
|
}
|
|
234
|
-
function
|
|
244
|
+
function nt(e, t) {
|
|
235
245
|
const n = [...e], r = n.indexOf(t);
|
|
236
246
|
return r !== -1 && n.splice(r, 1), n;
|
|
237
247
|
}
|
|
238
|
-
function
|
|
248
|
+
function Wn(e) {
|
|
239
249
|
return e.filter((t) => t.tagName !== "A");
|
|
240
250
|
}
|
|
241
|
-
var
|
|
251
|
+
var Hn = "Portal", gt = a.forwardRef((e, t) => {
|
|
242
252
|
var c;
|
|
243
|
-
const { container: n, ...r } = e, [o,
|
|
244
|
-
G(() =>
|
|
253
|
+
const { container: n, ...r } = e, [o, i] = a.useState(!1);
|
|
254
|
+
G(() => i(!0), []);
|
|
245
255
|
const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
246
|
-
return s ? pn.createPortal(/* @__PURE__ */ v(
|
|
256
|
+
return s ? pn.createPortal(/* @__PURE__ */ v(A.div, { ...r, ref: t }), s) : null;
|
|
247
257
|
});
|
|
248
|
-
gt.displayName =
|
|
258
|
+
gt.displayName = Hn;
|
|
249
259
|
var Le = 0;
|
|
250
|
-
function
|
|
260
|
+
function Un() {
|
|
251
261
|
a.useEffect(() => {
|
|
252
262
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
253
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
263
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? rt()), document.body.insertAdjacentElement("beforeend", e[1] ?? rt()), Le++, () => {
|
|
254
264
|
Le === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Le--;
|
|
255
265
|
};
|
|
256
266
|
}, []);
|
|
257
267
|
}
|
|
258
|
-
function
|
|
268
|
+
function rt() {
|
|
259
269
|
const e = document.createElement("span");
|
|
260
270
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
261
271
|
}
|
|
@@ -263,7 +273,7 @@ var U = function() {
|
|
|
263
273
|
return U = Object.assign || function(t) {
|
|
264
274
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
265
275
|
n = arguments[r];
|
|
266
|
-
for (var
|
|
276
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
267
277
|
}
|
|
268
278
|
return t;
|
|
269
279
|
}, U.apply(this, arguments);
|
|
@@ -276,16 +286,16 @@ function St(e, t) {
|
|
|
276
286
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
277
287
|
return n;
|
|
278
288
|
}
|
|
279
|
-
function
|
|
280
|
-
if (n || arguments.length === 2) for (var r = 0, o = t.length,
|
|
281
|
-
(
|
|
282
|
-
return e.concat(
|
|
289
|
+
function Kn(e, t, n) {
|
|
290
|
+
if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
|
|
291
|
+
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
292
|
+
return e.concat(i || Array.prototype.slice.call(t));
|
|
283
293
|
}
|
|
284
|
-
var we = "right-scroll-bar-position", Ce = "width-before-scroll-bar",
|
|
294
|
+
var we = "right-scroll-bar-position", Ce = "width-before-scroll-bar", $n = "with-scroll-bars-hidden", jn = "--removed-body-scroll-bar-size";
|
|
285
295
|
function De(e, t) {
|
|
286
296
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
287
297
|
}
|
|
288
|
-
function
|
|
298
|
+
function zn(e, t) {
|
|
289
299
|
var n = fn(function() {
|
|
290
300
|
return {
|
|
291
301
|
// value
|
|
@@ -306,69 +316,69 @@ function jn(e, t) {
|
|
|
306
316
|
})[0];
|
|
307
317
|
return n.callback = t, n.facade;
|
|
308
318
|
}
|
|
309
|
-
var
|
|
310
|
-
function
|
|
311
|
-
var n =
|
|
319
|
+
var Gn = typeof window < "u" ? a.useLayoutEffect : a.useEffect, ot = /* @__PURE__ */ new WeakMap();
|
|
320
|
+
function Yn(e, t) {
|
|
321
|
+
var n = zn(null, function(r) {
|
|
312
322
|
return e.forEach(function(o) {
|
|
313
323
|
return De(o, r);
|
|
314
324
|
});
|
|
315
325
|
});
|
|
316
|
-
return
|
|
317
|
-
var r =
|
|
326
|
+
return Gn(function() {
|
|
327
|
+
var r = ot.get(n);
|
|
318
328
|
if (r) {
|
|
319
|
-
var o = new Set(r),
|
|
329
|
+
var o = new Set(r), i = new Set(e), s = n.current;
|
|
320
330
|
o.forEach(function(c) {
|
|
321
|
-
|
|
322
|
-
}),
|
|
331
|
+
i.has(c) || De(c, null);
|
|
332
|
+
}), i.forEach(function(c) {
|
|
323
333
|
o.has(c) || De(c, s);
|
|
324
334
|
});
|
|
325
335
|
}
|
|
326
|
-
|
|
336
|
+
ot.set(n, e);
|
|
327
337
|
}, [e]), n;
|
|
328
338
|
}
|
|
329
|
-
function
|
|
339
|
+
function Xn(e) {
|
|
330
340
|
return e;
|
|
331
341
|
}
|
|
332
|
-
function
|
|
333
|
-
t === void 0 && (t =
|
|
342
|
+
function Zn(e, t) {
|
|
343
|
+
t === void 0 && (t = Xn);
|
|
334
344
|
var n = [], r = !1, o = {
|
|
335
345
|
read: function() {
|
|
336
346
|
if (r)
|
|
337
347
|
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
338
348
|
return n.length ? n[n.length - 1] : e;
|
|
339
349
|
},
|
|
340
|
-
useMedium: function(
|
|
341
|
-
var s = t(
|
|
350
|
+
useMedium: function(i) {
|
|
351
|
+
var s = t(i, r);
|
|
342
352
|
return n.push(s), function() {
|
|
343
353
|
n = n.filter(function(c) {
|
|
344
354
|
return c !== s;
|
|
345
355
|
});
|
|
346
356
|
};
|
|
347
357
|
},
|
|
348
|
-
assignSyncMedium: function(
|
|
358
|
+
assignSyncMedium: function(i) {
|
|
349
359
|
for (r = !0; n.length; ) {
|
|
350
360
|
var s = n;
|
|
351
|
-
n = [], s.forEach(
|
|
361
|
+
n = [], s.forEach(i);
|
|
352
362
|
}
|
|
353
363
|
n = {
|
|
354
364
|
push: function(c) {
|
|
355
|
-
return
|
|
365
|
+
return i(c);
|
|
356
366
|
},
|
|
357
367
|
filter: function() {
|
|
358
368
|
return n;
|
|
359
369
|
}
|
|
360
370
|
};
|
|
361
371
|
},
|
|
362
|
-
assignMedium: function(
|
|
372
|
+
assignMedium: function(i) {
|
|
363
373
|
r = !0;
|
|
364
374
|
var s = [];
|
|
365
375
|
if (n.length) {
|
|
366
376
|
var c = n;
|
|
367
|
-
n = [], c.forEach(
|
|
377
|
+
n = [], c.forEach(i), s = n;
|
|
368
378
|
}
|
|
369
379
|
var u = function() {
|
|
370
380
|
var S = s;
|
|
371
|
-
s = [], S.forEach(
|
|
381
|
+
s = [], S.forEach(i);
|
|
372
382
|
}, d = function() {
|
|
373
383
|
return Promise.resolve().then(u);
|
|
374
384
|
};
|
|
@@ -384,9 +394,9 @@ function Yn(e, t) {
|
|
|
384
394
|
};
|
|
385
395
|
return o;
|
|
386
396
|
}
|
|
387
|
-
function
|
|
397
|
+
function qn(e) {
|
|
388
398
|
e === void 0 && (e = {});
|
|
389
|
-
var t =
|
|
399
|
+
var t = Zn(null);
|
|
390
400
|
return t.options = U({ async: !0, ssr: !1 }, e), t;
|
|
391
401
|
}
|
|
392
402
|
var yt = function(e) {
|
|
@@ -399,20 +409,20 @@ var yt = function(e) {
|
|
|
399
409
|
return a.createElement(r, U({}, n));
|
|
400
410
|
};
|
|
401
411
|
yt.isSideCarExport = !0;
|
|
402
|
-
function
|
|
412
|
+
function Qn(e, t) {
|
|
403
413
|
return e.useMedium(t), yt;
|
|
404
414
|
}
|
|
405
|
-
var wt =
|
|
415
|
+
var wt = qn(), Be = function() {
|
|
406
416
|
}, Ee = a.forwardRef(function(e, t) {
|
|
407
417
|
var n = a.useRef(null), r = a.useState({
|
|
408
418
|
onScrollCapture: Be,
|
|
409
419
|
onWheelCapture: Be,
|
|
410
420
|
onTouchMoveCapture: Be
|
|
411
|
-
}), o = r[0],
|
|
421
|
+
}), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, d = e.removeScrollBar, S = e.enabled, h = e.shards, y = e.sideCar, w = e.noRelative, E = e.noIsolation, l = e.inert, p = e.allowPinchZoom, g = e.as, f = g === void 0 ? "div" : g, m = e.gapMode, b = St(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = y, _ = Yn([n, t]), R = U(U({}, b), o);
|
|
412
422
|
return a.createElement(
|
|
413
423
|
a.Fragment,
|
|
414
424
|
null,
|
|
415
|
-
S && a.createElement(x, { sideCar: wt, removeScrollBar: d, shards: h, noRelative: w, noIsolation: E, inert:
|
|
425
|
+
S && a.createElement(x, { sideCar: wt, removeScrollBar: d, shards: h, noRelative: w, noIsolation: E, inert: l, setCallbacks: i, allowPinchZoom: !!p, lockRef: n, gapMode: m }),
|
|
416
426
|
s ? a.cloneElement(a.Children.only(c), U(U({}, R), { ref: _ })) : a.createElement(f, U({}, R, { className: u, ref: _ }), c)
|
|
417
427
|
);
|
|
418
428
|
});
|
|
@@ -425,37 +435,37 @@ Ee.classNames = {
|
|
|
425
435
|
fullWidth: Ce,
|
|
426
436
|
zeroRight: we
|
|
427
437
|
};
|
|
428
|
-
var
|
|
438
|
+
var Jn = function() {
|
|
429
439
|
if (typeof __webpack_nonce__ < "u")
|
|
430
440
|
return __webpack_nonce__;
|
|
431
441
|
};
|
|
432
|
-
function
|
|
442
|
+
function er() {
|
|
433
443
|
if (!document)
|
|
434
444
|
return null;
|
|
435
445
|
var e = document.createElement("style");
|
|
436
446
|
e.type = "text/css";
|
|
437
|
-
var t =
|
|
447
|
+
var t = Jn();
|
|
438
448
|
return t && e.setAttribute("nonce", t), e;
|
|
439
449
|
}
|
|
440
|
-
function
|
|
450
|
+
function tr(e, t) {
|
|
441
451
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
442
452
|
}
|
|
443
|
-
function
|
|
453
|
+
function nr(e) {
|
|
444
454
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
445
455
|
t.appendChild(e);
|
|
446
456
|
}
|
|
447
|
-
var
|
|
457
|
+
var rr = function() {
|
|
448
458
|
var e = 0, t = null;
|
|
449
459
|
return {
|
|
450
460
|
add: function(n) {
|
|
451
|
-
e == 0 && (t =
|
|
461
|
+
e == 0 && (t = er()) && (tr(t, n), nr(t)), e++;
|
|
452
462
|
},
|
|
453
463
|
remove: function() {
|
|
454
464
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
455
465
|
}
|
|
456
466
|
};
|
|
457
|
-
},
|
|
458
|
-
var e =
|
|
467
|
+
}, or = function() {
|
|
468
|
+
var e = rr();
|
|
459
469
|
return function(t, n) {
|
|
460
470
|
a.useEffect(function() {
|
|
461
471
|
return e.add(t), function() {
|
|
@@ -464,35 +474,35 @@ var tr = function() {
|
|
|
464
474
|
}, [t && n]);
|
|
465
475
|
};
|
|
466
476
|
}, Ct = function() {
|
|
467
|
-
var e =
|
|
477
|
+
var e = or(), t = function(n) {
|
|
468
478
|
var r = n.styles, o = n.dynamic;
|
|
469
479
|
return e(r, o), null;
|
|
470
480
|
};
|
|
471
481
|
return t;
|
|
472
|
-
},
|
|
482
|
+
}, ar = {
|
|
473
483
|
left: 0,
|
|
474
484
|
top: 0,
|
|
475
485
|
right: 0,
|
|
476
486
|
gap: 0
|
|
477
487
|
}, Ve = function(e) {
|
|
478
488
|
return parseInt(e || "", 10) || 0;
|
|
479
|
-
},
|
|
489
|
+
}, cr = function(e) {
|
|
480
490
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
481
491
|
return [Ve(n), Ve(r), Ve(o)];
|
|
482
|
-
},
|
|
492
|
+
}, ir = function(e) {
|
|
483
493
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
484
|
-
return
|
|
485
|
-
var t =
|
|
494
|
+
return ar;
|
|
495
|
+
var t = cr(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
486
496
|
return {
|
|
487
497
|
left: t[0],
|
|
488
498
|
top: t[1],
|
|
489
499
|
right: t[2],
|
|
490
500
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
491
501
|
};
|
|
492
|
-
},
|
|
493
|
-
var o = e.left,
|
|
502
|
+
}, lr = Ct(), ue = "data-scroll-locked", sr = function(e, t, n, r) {
|
|
503
|
+
var o = e.left, i = e.top, s = e.right, c = e.gap;
|
|
494
504
|
return n === void 0 && (n = "margin"), `
|
|
495
|
-
.`.concat(
|
|
505
|
+
.`.concat($n, ` {
|
|
496
506
|
overflow: hidden `).concat(r, `;
|
|
497
507
|
padding-right: `).concat(c, "px ").concat(r, `;
|
|
498
508
|
}
|
|
@@ -503,7 +513,7 @@ var tr = function() {
|
|
|
503
513
|
t && "position: relative ".concat(r, ";"),
|
|
504
514
|
n === "margin" && `
|
|
505
515
|
padding-left: `.concat(o, `px;
|
|
506
|
-
padding-top: `).concat(
|
|
516
|
+
padding-top: `).concat(i, `px;
|
|
507
517
|
padding-right: `).concat(s, `px;
|
|
508
518
|
margin-left:0;
|
|
509
519
|
margin-top:0;
|
|
@@ -530,26 +540,26 @@ var tr = function() {
|
|
|
530
540
|
}
|
|
531
541
|
|
|
532
542
|
body[`).concat(ue, `] {
|
|
533
|
-
`).concat(
|
|
543
|
+
`).concat(jn, ": ").concat(c, `px;
|
|
534
544
|
}
|
|
535
545
|
`);
|
|
536
|
-
},
|
|
546
|
+
}, at = function() {
|
|
537
547
|
var e = parseInt(document.body.getAttribute(ue) || "0", 10);
|
|
538
548
|
return isFinite(e) ? e : 0;
|
|
539
|
-
},
|
|
549
|
+
}, ur = function() {
|
|
540
550
|
a.useEffect(function() {
|
|
541
|
-
return document.body.setAttribute(ue, (
|
|
542
|
-
var e =
|
|
551
|
+
return document.body.setAttribute(ue, (at() + 1).toString()), function() {
|
|
552
|
+
var e = at() - 1;
|
|
543
553
|
e <= 0 ? document.body.removeAttribute(ue) : document.body.setAttribute(ue, e.toString());
|
|
544
554
|
};
|
|
545
555
|
}, []);
|
|
546
|
-
},
|
|
556
|
+
}, dr = function(e) {
|
|
547
557
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
548
|
-
|
|
549
|
-
var
|
|
550
|
-
return
|
|
558
|
+
ur();
|
|
559
|
+
var i = a.useMemo(function() {
|
|
560
|
+
return ir(o);
|
|
551
561
|
}, [o]);
|
|
552
|
-
return a.createElement(
|
|
562
|
+
return a.createElement(lr, { styles: sr(i, !t, o, n ? "" : "!important") });
|
|
553
563
|
}, He = !1;
|
|
554
564
|
if (typeof window < "u")
|
|
555
565
|
try {
|
|
@@ -562,7 +572,7 @@ if (typeof window < "u")
|
|
|
562
572
|
} catch {
|
|
563
573
|
He = !1;
|
|
564
574
|
}
|
|
565
|
-
var ie = He ? { passive: !1 } : !1,
|
|
575
|
+
var ie = He ? { passive: !1 } : !1, fr = function(e) {
|
|
566
576
|
return e.tagName === "TEXTAREA";
|
|
567
577
|
}, bt = function(e, t) {
|
|
568
578
|
if (!(e instanceof Element))
|
|
@@ -571,33 +581,33 @@ var ie = He ? { passive: !1 } : !1, ur = function(e) {
|
|
|
571
581
|
return (
|
|
572
582
|
// not-not-scrollable
|
|
573
583
|
n[t] !== "hidden" && // contains scroll inside self
|
|
574
|
-
!(n.overflowY === n.overflowX && !
|
|
584
|
+
!(n.overflowY === n.overflowX && !fr(e) && n[t] === "visible")
|
|
575
585
|
);
|
|
576
|
-
},
|
|
586
|
+
}, pr = function(e) {
|
|
577
587
|
return bt(e, "overflowY");
|
|
578
|
-
},
|
|
588
|
+
}, mr = function(e) {
|
|
579
589
|
return bt(e, "overflowX");
|
|
580
|
-
},
|
|
590
|
+
}, ct = function(e, t) {
|
|
581
591
|
var n = t.ownerDocument, r = t;
|
|
582
592
|
do {
|
|
583
593
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
584
594
|
var o = Et(e, r);
|
|
585
595
|
if (o) {
|
|
586
|
-
var
|
|
596
|
+
var i = xt(e, r), s = i[1], c = i[2];
|
|
587
597
|
if (s > c)
|
|
588
598
|
return !0;
|
|
589
599
|
}
|
|
590
600
|
r = r.parentNode;
|
|
591
601
|
} while (r && r !== n.body);
|
|
592
602
|
return !1;
|
|
593
|
-
},
|
|
603
|
+
}, vr = function(e) {
|
|
594
604
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
595
605
|
return [
|
|
596
606
|
t,
|
|
597
607
|
n,
|
|
598
608
|
r
|
|
599
609
|
];
|
|
600
|
-
},
|
|
610
|
+
}, hr = function(e) {
|
|
601
611
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
602
612
|
return [
|
|
603
613
|
t,
|
|
@@ -605,17 +615,17 @@ var ie = He ? { passive: !1 } : !1, ur = function(e) {
|
|
|
605
615
|
r
|
|
606
616
|
];
|
|
607
617
|
}, Et = function(e, t) {
|
|
608
|
-
return e === "v" ? dr(t) : fr(t);
|
|
609
|
-
}, xt = function(e, t) {
|
|
610
618
|
return e === "v" ? pr(t) : mr(t);
|
|
611
|
-
},
|
|
619
|
+
}, xt = function(e, t) {
|
|
620
|
+
return e === "v" ? vr(t) : hr(t);
|
|
621
|
+
}, gr = function(e, t) {
|
|
612
622
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
613
|
-
},
|
|
614
|
-
var
|
|
623
|
+
}, Sr = function(e, t, n, r, o) {
|
|
624
|
+
var i = gr(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, u = t.contains(c), d = !1, S = s > 0, h = 0, y = 0;
|
|
615
625
|
do {
|
|
616
626
|
if (!c)
|
|
617
627
|
break;
|
|
618
|
-
var w = xt(e, c), E = w[0],
|
|
628
|
+
var w = xt(e, c), E = w[0], l = w[1], p = w[2], g = l - p - i * E;
|
|
619
629
|
(E || g) && Et(e, c) && (h += g, y += E);
|
|
620
630
|
var f = c.parentNode;
|
|
621
631
|
c = f && f.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? f.host : f;
|
|
@@ -627,92 +637,92 @@ var ie = He ? { passive: !1 } : !1, ur = function(e) {
|
|
|
627
637
|
return (S && Math.abs(h) < 1 || !S && Math.abs(y) < 1) && (d = !0), d;
|
|
628
638
|
}, ge = function(e) {
|
|
629
639
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
630
|
-
}, ct = function(e) {
|
|
631
|
-
return [e.deltaX, e.deltaY];
|
|
632
640
|
}, it = function(e) {
|
|
641
|
+
return [e.deltaX, e.deltaY];
|
|
642
|
+
}, lt = function(e) {
|
|
633
643
|
return e && "current" in e ? e.current : e;
|
|
634
|
-
},
|
|
644
|
+
}, yr = function(e, t) {
|
|
635
645
|
return e[0] === t[0] && e[1] === t[1];
|
|
636
|
-
},
|
|
646
|
+
}, wr = function(e) {
|
|
637
647
|
return `
|
|
638
648
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
639
649
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
640
650
|
`);
|
|
641
|
-
},
|
|
642
|
-
function
|
|
643
|
-
var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(
|
|
651
|
+
}, Cr = 0, le = [];
|
|
652
|
+
function br(e) {
|
|
653
|
+
var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(Cr++)[0], i = a.useState(Ct)[0], s = a.useRef(e);
|
|
644
654
|
a.useEffect(function() {
|
|
645
655
|
s.current = e;
|
|
646
656
|
}, [e]), a.useEffect(function() {
|
|
647
657
|
if (e.inert) {
|
|
648
658
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
649
|
-
var
|
|
650
|
-
return
|
|
659
|
+
var l = Kn([e.lockRef.current], (e.shards || []).map(lt), !0).filter(Boolean);
|
|
660
|
+
return l.forEach(function(p) {
|
|
651
661
|
return p.classList.add("allow-interactivity-".concat(o));
|
|
652
662
|
}), function() {
|
|
653
|
-
document.body.classList.remove("block-interactivity-".concat(o)),
|
|
663
|
+
document.body.classList.remove("block-interactivity-".concat(o)), l.forEach(function(p) {
|
|
654
664
|
return p.classList.remove("allow-interactivity-".concat(o));
|
|
655
665
|
});
|
|
656
666
|
};
|
|
657
667
|
}
|
|
658
668
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
659
|
-
var c = a.useCallback(function(
|
|
660
|
-
if ("touches" in
|
|
669
|
+
var c = a.useCallback(function(l, p) {
|
|
670
|
+
if ("touches" in l && l.touches.length === 2 || l.type === "wheel" && l.ctrlKey)
|
|
661
671
|
return !s.current.allowPinchZoom;
|
|
662
|
-
var g = ge(
|
|
663
|
-
if ("touches" in
|
|
672
|
+
var g = ge(l), f = n.current, m = "deltaX" in l ? l.deltaX : f[0] - g[0], b = "deltaY" in l ? l.deltaY : f[1] - g[1], x, _ = l.target, R = Math.abs(m) > Math.abs(b) ? "h" : "v";
|
|
673
|
+
if ("touches" in l && R === "h" && _.type === "range")
|
|
664
674
|
return !1;
|
|
665
675
|
var L = window.getSelection(), V = L && L.anchorNode, K = V ? V === _ || V.contains(_) : !1;
|
|
666
676
|
if (K)
|
|
667
677
|
return !1;
|
|
668
|
-
var O =
|
|
678
|
+
var O = ct(R, _);
|
|
669
679
|
if (!O)
|
|
670
680
|
return !0;
|
|
671
|
-
if (O ? x = R : (x = R === "v" ? "h" : "v", O =
|
|
681
|
+
if (O ? x = R : (x = R === "v" ? "h" : "v", O = ct(R, _)), !O)
|
|
672
682
|
return !1;
|
|
673
|
-
if (!r.current && "changedTouches" in
|
|
683
|
+
if (!r.current && "changedTouches" in l && (m || b) && (r.current = x), !x)
|
|
674
684
|
return !0;
|
|
675
685
|
var F = r.current || x;
|
|
676
|
-
return
|
|
677
|
-
}, []), u = a.useCallback(function(
|
|
678
|
-
var p =
|
|
679
|
-
if (!(!le.length || le[le.length - 1] !==
|
|
680
|
-
var g = "deltaY" in p ?
|
|
681
|
-
return x.name === p.type && (x.target === p.target || p.target === x.shadowParent) &&
|
|
686
|
+
return Sr(F, p, l, F === "h" ? m : b);
|
|
687
|
+
}, []), u = a.useCallback(function(l) {
|
|
688
|
+
var p = l;
|
|
689
|
+
if (!(!le.length || le[le.length - 1] !== i)) {
|
|
690
|
+
var g = "deltaY" in p ? it(p) : ge(p), f = t.current.filter(function(x) {
|
|
691
|
+
return x.name === p.type && (x.target === p.target || p.target === x.shadowParent) && yr(x.delta, g);
|
|
682
692
|
})[0];
|
|
683
693
|
if (f && f.should) {
|
|
684
694
|
p.cancelable && p.preventDefault();
|
|
685
695
|
return;
|
|
686
696
|
}
|
|
687
697
|
if (!f) {
|
|
688
|
-
var m = (s.current.shards || []).map(
|
|
698
|
+
var m = (s.current.shards || []).map(lt).filter(Boolean).filter(function(x) {
|
|
689
699
|
return x.contains(p.target);
|
|
690
700
|
}), b = m.length > 0 ? c(p, m[0]) : !s.current.noIsolation;
|
|
691
701
|
b && p.cancelable && p.preventDefault();
|
|
692
702
|
}
|
|
693
703
|
}
|
|
694
|
-
}, []), d = a.useCallback(function(
|
|
695
|
-
var m = { name:
|
|
704
|
+
}, []), d = a.useCallback(function(l, p, g, f) {
|
|
705
|
+
var m = { name: l, delta: p, target: g, should: f, shadowParent: Er(g) };
|
|
696
706
|
t.current.push(m), setTimeout(function() {
|
|
697
707
|
t.current = t.current.filter(function(b) {
|
|
698
708
|
return b !== m;
|
|
699
709
|
});
|
|
700
710
|
}, 1);
|
|
701
|
-
}, []), S = a.useCallback(function(
|
|
702
|
-
n.current = ge(
|
|
703
|
-
}, []), h = a.useCallback(function(
|
|
704
|
-
d(
|
|
705
|
-
}, []), y = a.useCallback(function(
|
|
706
|
-
d(
|
|
711
|
+
}, []), S = a.useCallback(function(l) {
|
|
712
|
+
n.current = ge(l), r.current = void 0;
|
|
713
|
+
}, []), h = a.useCallback(function(l) {
|
|
714
|
+
d(l.type, it(l), l.target, c(l, e.lockRef.current));
|
|
715
|
+
}, []), y = a.useCallback(function(l) {
|
|
716
|
+
d(l.type, ge(l), l.target, c(l, e.lockRef.current));
|
|
707
717
|
}, []);
|
|
708
718
|
a.useEffect(function() {
|
|
709
|
-
return le.push(
|
|
719
|
+
return le.push(i), e.setCallbacks({
|
|
710
720
|
onScrollCapture: h,
|
|
711
721
|
onWheelCapture: h,
|
|
712
722
|
onTouchMoveCapture: y
|
|
713
723
|
}), document.addEventListener("wheel", u, ie), document.addEventListener("touchmove", u, ie), document.addEventListener("touchstart", S, ie), function() {
|
|
714
|
-
le = le.filter(function(
|
|
715
|
-
return
|
|
724
|
+
le = le.filter(function(l) {
|
|
725
|
+
return l !== i;
|
|
716
726
|
}), document.removeEventListener("wheel", u, ie), document.removeEventListener("touchmove", u, ie), document.removeEventListener("touchstart", S, ie);
|
|
717
727
|
};
|
|
718
728
|
}, []);
|
|
@@ -720,40 +730,40 @@ function wr(e) {
|
|
|
720
730
|
return a.createElement(
|
|
721
731
|
a.Fragment,
|
|
722
732
|
null,
|
|
723
|
-
E ? a.createElement(
|
|
724
|
-
w ? a.createElement(
|
|
733
|
+
E ? a.createElement(i, { styles: wr(o) }) : null,
|
|
734
|
+
w ? a.createElement(dr, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
725
735
|
);
|
|
726
736
|
}
|
|
727
|
-
function
|
|
737
|
+
function Er(e) {
|
|
728
738
|
for (var t = null; e !== null; )
|
|
729
739
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
730
740
|
return t;
|
|
731
741
|
}
|
|
732
|
-
const
|
|
742
|
+
const xr = Qn(wt, br);
|
|
733
743
|
var Rt = a.forwardRef(function(e, t) {
|
|
734
|
-
return a.createElement(Ee, U({}, e, { ref: t, sideCar:
|
|
744
|
+
return a.createElement(Ee, U({}, e, { ref: t, sideCar: xr }));
|
|
735
745
|
});
|
|
736
746
|
Rt.classNames = Ee.classNames;
|
|
737
|
-
var
|
|
747
|
+
var Rr = function(e) {
|
|
738
748
|
if (typeof document > "u")
|
|
739
749
|
return null;
|
|
740
750
|
var t = Array.isArray(e) ? e[0] : e;
|
|
741
751
|
return t.ownerDocument.body;
|
|
742
|
-
}, se = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ye = {}, Fe = 0,
|
|
743
|
-
return e && (e.host ||
|
|
744
|
-
},
|
|
752
|
+
}, se = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ye = {}, Fe = 0, Nt = function(e) {
|
|
753
|
+
return e && (e.host || Nt(e.parentNode));
|
|
754
|
+
}, Nr = function(e, t) {
|
|
745
755
|
return t.map(function(n) {
|
|
746
756
|
if (e.contains(n))
|
|
747
757
|
return n;
|
|
748
|
-
var r =
|
|
758
|
+
var r = Nt(n);
|
|
749
759
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
750
760
|
}).filter(function(n) {
|
|
751
761
|
return !!n;
|
|
752
762
|
});
|
|
753
|
-
},
|
|
754
|
-
var o =
|
|
763
|
+
}, Tr = function(e, t, n, r) {
|
|
764
|
+
var o = Nr(t, Array.isArray(e) ? e : [e]);
|
|
755
765
|
ye[n] || (ye[n] = /* @__PURE__ */ new WeakMap());
|
|
756
|
-
var
|
|
766
|
+
var i = ye[n], s = [], c = /* @__PURE__ */ new Set(), u = new Set(o), d = function(h) {
|
|
757
767
|
!h || c.has(h) || (c.add(h), d(h.parentNode));
|
|
758
768
|
};
|
|
759
769
|
o.forEach(d);
|
|
@@ -763,8 +773,8 @@ var Er = function(e) {
|
|
|
763
773
|
S(y);
|
|
764
774
|
else
|
|
765
775
|
try {
|
|
766
|
-
var w = y.getAttribute(r), E = w !== null && w !== "false",
|
|
767
|
-
se.set(y,
|
|
776
|
+
var w = y.getAttribute(r), E = w !== null && w !== "false", l = (se.get(y) || 0) + 1, p = (i.get(y) || 0) + 1;
|
|
777
|
+
se.set(y, l), i.set(y, p), s.push(y), l === 1 && E && Se.set(y, !0), p === 1 && y.setAttribute(n, "true"), E || y.setAttribute(r, "true");
|
|
768
778
|
} catch (g) {
|
|
769
779
|
console.error("aria-hidden: cannot operate on ", y, g);
|
|
770
780
|
}
|
|
@@ -772,78 +782,78 @@ var Er = function(e) {
|
|
|
772
782
|
};
|
|
773
783
|
return S(t), c.clear(), Fe++, function() {
|
|
774
784
|
s.forEach(function(h) {
|
|
775
|
-
var y = se.get(h) - 1, w =
|
|
776
|
-
se.set(h, y),
|
|
785
|
+
var y = se.get(h) - 1, w = i.get(h) - 1;
|
|
786
|
+
se.set(h, y), i.set(h, w), y || (Se.has(h) || h.removeAttribute(r), Se.delete(h)), w || h.removeAttribute(n);
|
|
777
787
|
}), Fe--, Fe || (se = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ye = {});
|
|
778
788
|
};
|
|
779
|
-
},
|
|
789
|
+
}, Ir = function(e, t, n) {
|
|
780
790
|
n === void 0 && (n = "data-aria-hidden");
|
|
781
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
782
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
791
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = Rr(e);
|
|
792
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Tr(r, o, n, "aria-hidden")) : function() {
|
|
783
793
|
return null;
|
|
784
794
|
};
|
|
785
795
|
};
|
|
786
|
-
function
|
|
796
|
+
function Pr(e) {
|
|
787
797
|
const t = a.useRef({ value: e, previous: e });
|
|
788
798
|
return a.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
789
799
|
}
|
|
790
|
-
function
|
|
800
|
+
function st(e, [t, n]) {
|
|
791
801
|
return Math.min(n, Math.max(t, e));
|
|
792
802
|
}
|
|
793
803
|
// @__NO_SIDE_EFFECTS__
|
|
794
|
-
function
|
|
795
|
-
const t = /* @__PURE__ */
|
|
796
|
-
const { children:
|
|
804
|
+
function _r(e) {
|
|
805
|
+
const t = /* @__PURE__ */ Mr(e), n = a.forwardRef((r, o) => {
|
|
806
|
+
const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(Or);
|
|
797
807
|
if (u) {
|
|
798
808
|
const d = u.props.children, S = c.map((h) => h === u ? a.Children.count(d) > 1 ? a.Children.only(null) : a.isValidElement(d) ? d.props.children : null : h);
|
|
799
809
|
return /* @__PURE__ */ v(t, { ...s, ref: o, children: a.isValidElement(d) ? a.cloneElement(d, void 0, S) : null });
|
|
800
810
|
}
|
|
801
|
-
return /* @__PURE__ */ v(t, { ...s, ref: o, children:
|
|
811
|
+
return /* @__PURE__ */ v(t, { ...s, ref: o, children: i });
|
|
802
812
|
});
|
|
803
813
|
return n.displayName = `${e}.Slot`, n;
|
|
804
814
|
}
|
|
805
815
|
// @__NO_SIDE_EFFECTS__
|
|
806
|
-
function
|
|
816
|
+
function Mr(e) {
|
|
807
817
|
const t = a.forwardRef((n, r) => {
|
|
808
|
-
const { children: o, ...
|
|
818
|
+
const { children: o, ...i } = n;
|
|
809
819
|
if (a.isValidElement(o)) {
|
|
810
|
-
const s =
|
|
811
|
-
return o.type !== a.Fragment && (c.ref = r ?
|
|
820
|
+
const s = Lr(o), c = kr(i, o.props);
|
|
821
|
+
return o.type !== a.Fragment && (c.ref = r ? dt(r, s) : s), a.cloneElement(o, c);
|
|
812
822
|
}
|
|
813
823
|
return a.Children.count(o) > 1 ? a.Children.only(null) : null;
|
|
814
824
|
});
|
|
815
825
|
return t.displayName = `${e}.SlotClone`, t;
|
|
816
826
|
}
|
|
817
|
-
var
|
|
818
|
-
function
|
|
819
|
-
return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
827
|
+
var Ar = Symbol("radix.slottable");
|
|
828
|
+
function Or(e) {
|
|
829
|
+
return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ar;
|
|
820
830
|
}
|
|
821
|
-
function
|
|
831
|
+
function kr(e, t) {
|
|
822
832
|
const n = { ...t };
|
|
823
833
|
for (const r in t) {
|
|
824
|
-
const o = e[r],
|
|
825
|
-
/^on[A-Z]/.test(r) ? o &&
|
|
826
|
-
const u =
|
|
834
|
+
const o = e[r], i = t[r];
|
|
835
|
+
/^on[A-Z]/.test(r) ? o && i ? n[r] = (...c) => {
|
|
836
|
+
const u = i(...c);
|
|
827
837
|
return o(...c), u;
|
|
828
|
-
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...
|
|
838
|
+
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
|
|
829
839
|
}
|
|
830
840
|
return { ...e, ...n };
|
|
831
841
|
}
|
|
832
|
-
function
|
|
842
|
+
function Lr(e) {
|
|
833
843
|
var r, o;
|
|
834
844
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
835
845
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
836
846
|
}
|
|
837
|
-
var
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
]),
|
|
847
|
+
var Dr = [" ", "Enter", "ArrowUp", "ArrowDown"], Br = [" ", "Enter"], oe = "Select", [xe, Re, Vr] = Rn(oe), [de] = ft(oe, [
|
|
848
|
+
Vr,
|
|
849
|
+
pt
|
|
850
|
+
]), Ne = pt(), [Fr, J] = de(oe), [Wr, Hr] = de(oe), Tt = (e) => {
|
|
841
851
|
const {
|
|
842
852
|
__scopeSelect: t,
|
|
843
853
|
children: n,
|
|
844
854
|
open: r,
|
|
845
855
|
defaultOpen: o,
|
|
846
|
-
onOpenChange:
|
|
856
|
+
onOpenChange: i,
|
|
847
857
|
value: s,
|
|
848
858
|
defaultValue: c,
|
|
849
859
|
onValueChange: u,
|
|
@@ -853,19 +863,19 @@ var kr = [" ", "Enter", "ArrowUp", "ArrowDown"], Lr = [" ", "Enter"], oe = "Sele
|
|
|
853
863
|
disabled: y,
|
|
854
864
|
required: w,
|
|
855
865
|
form: E
|
|
856
|
-
} = e,
|
|
866
|
+
} = e, l = Ne(t), [p, g] = a.useState(null), [f, m] = a.useState(null), [b, x] = a.useState(!1), _ = Tn(d), [R, L] = qe({
|
|
857
867
|
prop: r,
|
|
858
868
|
defaultProp: o ?? !1,
|
|
859
|
-
onChange:
|
|
869
|
+
onChange: i,
|
|
860
870
|
caller: oe
|
|
861
|
-
}), [V, K] =
|
|
871
|
+
}), [V, K] = qe({
|
|
862
872
|
prop: s,
|
|
863
873
|
defaultProp: c,
|
|
864
874
|
onChange: u,
|
|
865
875
|
caller: oe
|
|
866
|
-
}), O = a.useRef(null), F = p ? E || !!p.closest("form") : !0, [Y,
|
|
867
|
-
return /* @__PURE__ */ v(gn, { ...
|
|
868
|
-
|
|
876
|
+
}), O = a.useRef(null), F = p ? E || !!p.closest("form") : !0, [Y, $] = a.useState(/* @__PURE__ */ new Set()), j = Array.from(Y).map((k) => k.props.value).join(";");
|
|
877
|
+
return /* @__PURE__ */ v(gn, { ...l, children: /* @__PURE__ */ q(
|
|
878
|
+
Fr,
|
|
869
879
|
{
|
|
870
880
|
required: w,
|
|
871
881
|
scope: t,
|
|
@@ -885,14 +895,14 @@ var kr = [" ", "Enter", "ArrowUp", "ArrowDown"], Lr = [" ", "Enter"], oe = "Sele
|
|
|
885
895
|
disabled: y,
|
|
886
896
|
children: [
|
|
887
897
|
/* @__PURE__ */ v(xe.Provider, { scope: t, children: /* @__PURE__ */ v(
|
|
888
|
-
|
|
898
|
+
Wr,
|
|
889
899
|
{
|
|
890
900
|
scope: e.__scopeSelect,
|
|
891
901
|
onNativeOptionAdd: a.useCallback((k) => {
|
|
892
|
-
|
|
902
|
+
$((H) => new Set(H).add(k));
|
|
893
903
|
}, []),
|
|
894
904
|
onNativeOptionRemove: a.useCallback((k) => {
|
|
895
|
-
|
|
905
|
+
$((H) => {
|
|
896
906
|
const z = new Set(H);
|
|
897
907
|
return z.delete(k), z;
|
|
898
908
|
});
|
|
@@ -900,7 +910,7 @@ var kr = [" ", "Enter", "ArrowUp", "ArrowDown"], Lr = [" ", "Enter"], oe = "Sele
|
|
|
900
910
|
children: n
|
|
901
911
|
}
|
|
902
912
|
) }),
|
|
903
|
-
F ? /* @__PURE__ */
|
|
913
|
+
F ? /* @__PURE__ */ q(
|
|
904
914
|
Qt,
|
|
905
915
|
{
|
|
906
916
|
"aria-hidden": !0,
|
|
@@ -917,26 +927,26 @@ var kr = [" ", "Enter", "ArrowUp", "ArrowDown"], Lr = [" ", "Enter"], oe = "Sele
|
|
|
917
927
|
Array.from(Y)
|
|
918
928
|
]
|
|
919
929
|
},
|
|
920
|
-
|
|
930
|
+
j
|
|
921
931
|
) : null
|
|
922
932
|
]
|
|
923
933
|
}
|
|
924
934
|
) });
|
|
925
935
|
};
|
|
926
|
-
|
|
927
|
-
var
|
|
936
|
+
Tt.displayName = oe;
|
|
937
|
+
var It = "SelectTrigger", Pt = a.forwardRef(
|
|
928
938
|
(e, t) => {
|
|
929
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e,
|
|
930
|
-
const p = d().filter((m) => !m.disabled), g = p.find((m) => m.value === s.value), f = tn(p,
|
|
939
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, i = Ne(n), s = J(It, n), c = s.disabled || r, u = B(t, s.onTriggerChange), d = Re(n), S = a.useRef("touch"), [h, y, w] = en((l) => {
|
|
940
|
+
const p = d().filter((m) => !m.disabled), g = p.find((m) => m.value === s.value), f = tn(p, l, g);
|
|
931
941
|
f !== void 0 && s.onValueChange(f.value);
|
|
932
|
-
}), E = (
|
|
933
|
-
c || (s.onOpenChange(!0), w()),
|
|
934
|
-
x: Math.round(
|
|
935
|
-
y: Math.round(
|
|
942
|
+
}), E = (l) => {
|
|
943
|
+
c || (s.onOpenChange(!0), w()), l && (s.triggerPointerDownPosRef.current = {
|
|
944
|
+
x: Math.round(l.pageX),
|
|
945
|
+
y: Math.round(l.pageY)
|
|
936
946
|
});
|
|
937
947
|
};
|
|
938
|
-
return /* @__PURE__ */ v(mn, { asChild: !0, ...
|
|
939
|
-
|
|
948
|
+
return /* @__PURE__ */ v(mn, { asChild: !0, ...i, children: /* @__PURE__ */ v(
|
|
949
|
+
A.button,
|
|
940
950
|
{
|
|
941
951
|
type: "button",
|
|
942
952
|
role: "combobox",
|
|
@@ -951,72 +961,72 @@ var Nt = "SelectTrigger", Pt = a.forwardRef(
|
|
|
951
961
|
"data-placeholder": Jt(s.value) ? "" : void 0,
|
|
952
962
|
...o,
|
|
953
963
|
ref: u,
|
|
954
|
-
onClick:
|
|
955
|
-
|
|
964
|
+
onClick: M(o.onClick, (l) => {
|
|
965
|
+
l.currentTarget.focus(), S.current !== "mouse" && E(l);
|
|
956
966
|
}),
|
|
957
|
-
onPointerDown:
|
|
958
|
-
S.current =
|
|
959
|
-
const p =
|
|
960
|
-
p.hasPointerCapture(
|
|
967
|
+
onPointerDown: M(o.onPointerDown, (l) => {
|
|
968
|
+
S.current = l.pointerType;
|
|
969
|
+
const p = l.target;
|
|
970
|
+
p.hasPointerCapture(l.pointerId) && p.releasePointerCapture(l.pointerId), l.button === 0 && l.ctrlKey === !1 && l.pointerType === "mouse" && (E(l), l.preventDefault());
|
|
961
971
|
}),
|
|
962
|
-
onKeyDown:
|
|
972
|
+
onKeyDown: M(o.onKeyDown, (l) => {
|
|
963
973
|
const p = h.current !== "";
|
|
964
|
-
!(
|
|
974
|
+
!(l.ctrlKey || l.altKey || l.metaKey) && l.key.length === 1 && y(l.key), !(p && l.key === " ") && Dr.includes(l.key) && (E(), l.preventDefault());
|
|
965
975
|
})
|
|
966
976
|
}
|
|
967
977
|
) });
|
|
968
978
|
}
|
|
969
979
|
);
|
|
970
|
-
Pt.displayName =
|
|
971
|
-
var _t = "SelectValue",
|
|
980
|
+
Pt.displayName = It;
|
|
981
|
+
var _t = "SelectValue", Mt = a.forwardRef(
|
|
972
982
|
(e, t) => {
|
|
973
|
-
const { __scopeSelect: n, className: r, style: o, children:
|
|
983
|
+
const { __scopeSelect: n, className: r, style: o, children: i, placeholder: s = "", ...c } = e, u = J(_t, n), { onValueNodeHasChildrenChange: d } = u, S = i !== void 0, h = B(t, u.onValueNodeChange);
|
|
974
984
|
return G(() => {
|
|
975
985
|
d(S);
|
|
976
986
|
}, [d, S]), /* @__PURE__ */ v(
|
|
977
|
-
|
|
987
|
+
A.span,
|
|
978
988
|
{
|
|
979
989
|
...c,
|
|
980
990
|
ref: h,
|
|
981
991
|
style: { pointerEvents: "none" },
|
|
982
|
-
children: Jt(u.value) ? /* @__PURE__ */ v(Ge, { children: s }) :
|
|
992
|
+
children: Jt(u.value) ? /* @__PURE__ */ v(Ge, { children: s }) : i
|
|
983
993
|
}
|
|
984
994
|
);
|
|
985
995
|
}
|
|
986
996
|
);
|
|
987
|
-
|
|
988
|
-
var
|
|
997
|
+
Mt.displayName = _t;
|
|
998
|
+
var Ur = "SelectIcon", At = a.forwardRef(
|
|
989
999
|
(e, t) => {
|
|
990
1000
|
const { __scopeSelect: n, children: r, ...o } = e;
|
|
991
|
-
return /* @__PURE__ */ v(
|
|
1001
|
+
return /* @__PURE__ */ v(A.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
|
|
992
1002
|
}
|
|
993
1003
|
);
|
|
994
|
-
|
|
995
|
-
var
|
|
996
|
-
Ot.displayName =
|
|
1004
|
+
At.displayName = Ur;
|
|
1005
|
+
var Kr = "SelectPortal", Ot = (e) => /* @__PURE__ */ v(gt, { asChild: !0, ...e });
|
|
1006
|
+
Ot.displayName = Kr;
|
|
997
1007
|
var ae = "SelectContent", kt = a.forwardRef(
|
|
998
1008
|
(e, t) => {
|
|
999
|
-
const n =
|
|
1009
|
+
const n = J(ae, e.__scopeSelect), [r, o] = a.useState();
|
|
1000
1010
|
if (G(() => {
|
|
1001
1011
|
o(new DocumentFragment());
|
|
1002
1012
|
}, []), !n.open) {
|
|
1003
|
-
const
|
|
1004
|
-
return
|
|
1013
|
+
const i = r;
|
|
1014
|
+
return i ? ut.createPortal(
|
|
1005
1015
|
/* @__PURE__ */ v(Lt, { scope: e.__scopeSelect, children: /* @__PURE__ */ v(xe.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ v("div", { children: e.children }) }) }),
|
|
1006
|
-
|
|
1016
|
+
i
|
|
1007
1017
|
) : null;
|
|
1008
1018
|
}
|
|
1009
1019
|
return /* @__PURE__ */ v(Dt, { ...e, ref: t });
|
|
1010
1020
|
}
|
|
1011
1021
|
);
|
|
1012
1022
|
kt.displayName = ae;
|
|
1013
|
-
var W = 10, [Lt,
|
|
1023
|
+
var W = 10, [Lt, ee] = de(ae), $r = "SelectContentImpl", jr = /* @__PURE__ */ _r("SelectContent.RemoveScroll"), Dt = a.forwardRef(
|
|
1014
1024
|
(e, t) => {
|
|
1015
1025
|
const {
|
|
1016
1026
|
__scopeSelect: n,
|
|
1017
1027
|
position: r = "item-aligned",
|
|
1018
1028
|
onCloseAutoFocus: o,
|
|
1019
|
-
onEscapeKeyDown:
|
|
1029
|
+
onEscapeKeyDown: i,
|
|
1020
1030
|
onPointerDownOutside: s,
|
|
1021
1031
|
//
|
|
1022
1032
|
// PopperContent props
|
|
@@ -1028,21 +1038,21 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1028
1038
|
collisionBoundary: y,
|
|
1029
1039
|
collisionPadding: w,
|
|
1030
1040
|
sticky: E,
|
|
1031
|
-
hideWhenDetached:
|
|
1041
|
+
hideWhenDetached: l,
|
|
1032
1042
|
avoidCollisions: p,
|
|
1033
1043
|
//
|
|
1034
1044
|
...g
|
|
1035
|
-
} = e, f =
|
|
1045
|
+
} = e, f = J(ae, n), [m, b] = a.useState(null), [x, _] = a.useState(null), R = B(t, (C) => b(C)), [L, V] = a.useState(null), [K, O] = a.useState(
|
|
1036
1046
|
null
|
|
1037
|
-
), F = Re(n), [Y,
|
|
1047
|
+
), F = Re(n), [Y, $] = a.useState(!1), j = a.useRef(!1);
|
|
1038
1048
|
a.useEffect(() => {
|
|
1039
|
-
if (m) return
|
|
1040
|
-
}, [m]),
|
|
1049
|
+
if (m) return Ir(m);
|
|
1050
|
+
}, [m]), Un();
|
|
1041
1051
|
const k = a.useCallback(
|
|
1042
1052
|
(C) => {
|
|
1043
|
-
const [P, ...D] = F().map((
|
|
1044
|
-
for (const
|
|
1045
|
-
if (
|
|
1053
|
+
const [P, ...D] = F().map((T) => T.ref.current), [I] = D.slice(-1), N = document.activeElement;
|
|
1054
|
+
for (const T of C)
|
|
1055
|
+
if (T === N || (T == null || T.scrollIntoView({ block: "nearest" }), T === P && x && (x.scrollTop = 0), T === I && x && (x.scrollTop = x.scrollHeight), T == null || T.focus(), document.activeElement !== N)) return;
|
|
1046
1056
|
},
|
|
1047
1057
|
[F, x]
|
|
1048
1058
|
), H = a.useCallback(
|
|
@@ -1056,14 +1066,14 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1056
1066
|
a.useEffect(() => {
|
|
1057
1067
|
if (m) {
|
|
1058
1068
|
let C = { x: 0, y: 0 };
|
|
1059
|
-
const P = (
|
|
1060
|
-
var
|
|
1069
|
+
const P = (I) => {
|
|
1070
|
+
var N, T;
|
|
1061
1071
|
C = {
|
|
1062
|
-
x: Math.abs(Math.round(
|
|
1063
|
-
y: Math.abs(Math.round(
|
|
1072
|
+
x: Math.abs(Math.round(I.pageX) - (((N = X.current) == null ? void 0 : N.x) ?? 0)),
|
|
1073
|
+
y: Math.abs(Math.round(I.pageY) - (((T = X.current) == null ? void 0 : T.y) ?? 0))
|
|
1064
1074
|
};
|
|
1065
|
-
}, D = (
|
|
1066
|
-
C.x <= 10 && C.y <= 10 ?
|
|
1075
|
+
}, D = (I) => {
|
|
1076
|
+
C.x <= 10 && C.y <= 10 ? I.preventDefault() : m.contains(I.target) || z(!1), document.removeEventListener("pointermove", P), X.current = null;
|
|
1067
1077
|
};
|
|
1068
1078
|
return X.current !== null && (document.addEventListener("pointermove", P), document.addEventListener("pointerup", D, { capture: !0, once: !0 })), () => {
|
|
1069
1079
|
document.removeEventListener("pointermove", P), document.removeEventListener("pointerup", D, { capture: !0 });
|
|
@@ -1075,19 +1085,19 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1075
1085
|
window.removeEventListener("blur", C), window.removeEventListener("resize", C);
|
|
1076
1086
|
};
|
|
1077
1087
|
}, [z]);
|
|
1078
|
-
const [
|
|
1079
|
-
const P = F().filter((
|
|
1080
|
-
|
|
1081
|
-
}),
|
|
1088
|
+
const [Te, me] = en((C) => {
|
|
1089
|
+
const P = F().filter((N) => !N.disabled), D = P.find((N) => N.ref.current === document.activeElement), I = tn(P, C, D);
|
|
1090
|
+
I && setTimeout(() => I.ref.current.focus());
|
|
1091
|
+
}), Ie = a.useCallback(
|
|
1082
1092
|
(C, P, D) => {
|
|
1083
|
-
const
|
|
1084
|
-
(f.value !== void 0 && f.value === P ||
|
|
1093
|
+
const I = !j.current && !D;
|
|
1094
|
+
(f.value !== void 0 && f.value === P || I) && (V(C), I && (j.current = !0));
|
|
1085
1095
|
},
|
|
1086
1096
|
[f.value]
|
|
1087
1097
|
), Pe = a.useCallback(() => m == null ? void 0 : m.focus(), [m]), ce = a.useCallback(
|
|
1088
1098
|
(C, P, D) => {
|
|
1089
|
-
const
|
|
1090
|
-
(f.value !== void 0 && f.value === P ||
|
|
1099
|
+
const I = !j.current && !D;
|
|
1100
|
+
(f.value !== void 0 && f.value === P || I) && O(C);
|
|
1091
1101
|
},
|
|
1092
1102
|
[f.value]
|
|
1093
1103
|
), ve = r === "popper" ? Ue : Bt, fe = ve === Ue ? {
|
|
@@ -1099,7 +1109,7 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1099
1109
|
collisionBoundary: y,
|
|
1100
1110
|
collisionPadding: w,
|
|
1101
1111
|
sticky: E,
|
|
1102
|
-
hideWhenDetached:
|
|
1112
|
+
hideWhenDetached: l,
|
|
1103
1113
|
avoidCollisions: p
|
|
1104
1114
|
} : {};
|
|
1105
1115
|
return /* @__PURE__ */ v(
|
|
@@ -1109,7 +1119,7 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1109
1119
|
content: m,
|
|
1110
1120
|
viewport: x,
|
|
1111
1121
|
onViewportChange: _,
|
|
1112
|
-
itemRefCallback:
|
|
1122
|
+
itemRefCallback: Ie,
|
|
1113
1123
|
selectedItem: L,
|
|
1114
1124
|
onItemLeave: Pe,
|
|
1115
1125
|
itemTextRefCallback: ce,
|
|
@@ -1117,8 +1127,8 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1117
1127
|
selectedItemText: K,
|
|
1118
1128
|
position: r,
|
|
1119
1129
|
isPositioned: Y,
|
|
1120
|
-
searchRef:
|
|
1121
|
-
children: /* @__PURE__ */ v(Rt, { as:
|
|
1130
|
+
searchRef: Te,
|
|
1131
|
+
children: /* @__PURE__ */ v(Rt, { as: jr, allowPinchZoom: !0, children: /* @__PURE__ */ v(
|
|
1122
1132
|
vt,
|
|
1123
1133
|
{
|
|
1124
1134
|
asChild: !0,
|
|
@@ -1126,7 +1136,7 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1126
1136
|
onMountAutoFocus: (C) => {
|
|
1127
1137
|
C.preventDefault();
|
|
1128
1138
|
},
|
|
1129
|
-
onUnmountAutoFocus:
|
|
1139
|
+
onUnmountAutoFocus: M(o, (C) => {
|
|
1130
1140
|
var P;
|
|
1131
1141
|
(P = f.trigger) == null || P.focus({ preventScroll: !0 }), C.preventDefault();
|
|
1132
1142
|
}),
|
|
@@ -1135,7 +1145,7 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1135
1145
|
{
|
|
1136
1146
|
asChild: !0,
|
|
1137
1147
|
disableOutsidePointerEvents: !0,
|
|
1138
|
-
onEscapeKeyDown:
|
|
1148
|
+
onEscapeKeyDown: i,
|
|
1139
1149
|
onPointerDownOutside: s,
|
|
1140
1150
|
onFocusOutside: (C) => C.preventDefault(),
|
|
1141
1151
|
onDismiss: () => f.onOpenChange(!1),
|
|
@@ -1149,7 +1159,7 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1149
1159
|
onContextMenu: (C) => C.preventDefault(),
|
|
1150
1160
|
...g,
|
|
1151
1161
|
...fe,
|
|
1152
|
-
onPlaced: () =>
|
|
1162
|
+
onPlaced: () => $(!0),
|
|
1153
1163
|
ref: R,
|
|
1154
1164
|
style: {
|
|
1155
1165
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -1159,15 +1169,15 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1159
1169
|
outline: "none",
|
|
1160
1170
|
...g.style
|
|
1161
1171
|
},
|
|
1162
|
-
onKeyDown:
|
|
1172
|
+
onKeyDown: M(g.onKeyDown, (C) => {
|
|
1163
1173
|
const P = C.ctrlKey || C.altKey || C.metaKey;
|
|
1164
1174
|
if (C.key === "Tab" && C.preventDefault(), !P && C.key.length === 1 && me(C.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(C.key)) {
|
|
1165
|
-
let
|
|
1166
|
-
if (["ArrowUp", "End"].includes(C.key) && (
|
|
1167
|
-
const
|
|
1168
|
-
|
|
1175
|
+
let I = F().filter((N) => !N.disabled).map((N) => N.ref.current);
|
|
1176
|
+
if (["ArrowUp", "End"].includes(C.key) && (I = I.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(C.key)) {
|
|
1177
|
+
const N = C.target, T = I.indexOf(N);
|
|
1178
|
+
I = I.slice(T + 1);
|
|
1169
1179
|
}
|
|
1170
|
-
setTimeout(() => k(
|
|
1180
|
+
setTimeout(() => k(I)), C.preventDefault();
|
|
1171
1181
|
}
|
|
1172
1182
|
})
|
|
1173
1183
|
}
|
|
@@ -1180,61 +1190,61 @@ var W = 10, [Lt, J] = de(ae), Ur = "SelectContentImpl", Kr = /* @__PURE__ */ Nr(
|
|
|
1180
1190
|
);
|
|
1181
1191
|
}
|
|
1182
1192
|
);
|
|
1183
|
-
Dt.displayName =
|
|
1184
|
-
var
|
|
1185
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e,
|
|
1186
|
-
if (
|
|
1187
|
-
const R =
|
|
1188
|
-
if (
|
|
1189
|
-
const
|
|
1193
|
+
Dt.displayName = $r;
|
|
1194
|
+
var zr = "SelectItemAlignedPosition", Bt = a.forwardRef((e, t) => {
|
|
1195
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, i = J(ae, n), s = ee(ae, n), [c, u] = a.useState(null), [d, S] = a.useState(null), h = B(t, (R) => S(R)), y = Re(n), w = a.useRef(!1), E = a.useRef(!0), { viewport: l, selectedItem: p, selectedItemText: g, focusSelectedItem: f } = s, m = a.useCallback(() => {
|
|
1196
|
+
if (i.trigger && i.valueNode && c && d && l && p && g) {
|
|
1197
|
+
const R = i.trigger.getBoundingClientRect(), L = d.getBoundingClientRect(), V = i.valueNode.getBoundingClientRect(), K = g.getBoundingClientRect();
|
|
1198
|
+
if (i.dir !== "rtl") {
|
|
1199
|
+
const N = K.left - L.left, T = V.left - N, te = R.left - T, ne = R.width + te, _e = Math.max(ne, L.width), Me = window.innerWidth - W, Ae = st(T, [
|
|
1190
1200
|
W,
|
|
1191
1201
|
// Prevents the content from going off the starting edge of the
|
|
1192
1202
|
// viewport. It may still go off the ending edge, but this can be
|
|
1193
1203
|
// controlled by the user since they may want to manage overflow in a
|
|
1194
1204
|
// specific way.
|
|
1195
1205
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
1196
|
-
Math.max(W,
|
|
1206
|
+
Math.max(W, Me - _e)
|
|
1197
1207
|
]);
|
|
1198
|
-
c.style.minWidth =
|
|
1208
|
+
c.style.minWidth = ne + "px", c.style.left = Ae + "px";
|
|
1199
1209
|
} else {
|
|
1200
|
-
const
|
|
1210
|
+
const N = L.right - K.right, T = window.innerWidth - V.right - N, te = window.innerWidth - R.right - T, ne = R.width + te, _e = Math.max(ne, L.width), Me = window.innerWidth - W, Ae = st(T, [
|
|
1201
1211
|
W,
|
|
1202
|
-
Math.max(W,
|
|
1212
|
+
Math.max(W, Me - _e)
|
|
1203
1213
|
]);
|
|
1204
|
-
c.style.minWidth =
|
|
1214
|
+
c.style.minWidth = ne + "px", c.style.right = Ae + "px";
|
|
1205
1215
|
}
|
|
1206
|
-
const O = y(), F = window.innerHeight - W * 2, Y =
|
|
1216
|
+
const O = y(), F = window.innerHeight - W * 2, Y = l.scrollHeight, $ = window.getComputedStyle(d), j = parseInt($.borderTopWidth, 10), k = parseInt($.paddingTop, 10), H = parseInt($.borderBottomWidth, 10), z = parseInt($.paddingBottom, 10), X = j + k + Y + z + H, Te = Math.min(p.offsetHeight * 5, X), me = window.getComputedStyle(l), Ie = parseInt(me.paddingTop, 10), Pe = parseInt(me.paddingBottom, 10), ce = R.top + R.height / 2 - W, ve = F - ce, fe = p.offsetHeight / 2, C = p.offsetTop + fe, P = j + k + C, D = X - P;
|
|
1207
1217
|
if (P <= ce) {
|
|
1208
|
-
const
|
|
1218
|
+
const N = O.length > 0 && p === O[O.length - 1].ref.current;
|
|
1209
1219
|
c.style.bottom = "0px";
|
|
1210
|
-
const
|
|
1220
|
+
const T = d.clientHeight - l.offsetTop - l.offsetHeight, te = Math.max(
|
|
1211
1221
|
ve,
|
|
1212
1222
|
fe + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
1213
|
-
(
|
|
1214
|
-
),
|
|
1215
|
-
c.style.height =
|
|
1223
|
+
(N ? Pe : 0) + T + H
|
|
1224
|
+
), ne = P + te;
|
|
1225
|
+
c.style.height = ne + "px";
|
|
1216
1226
|
} else {
|
|
1217
|
-
const
|
|
1227
|
+
const N = O.length > 0 && p === O[0].ref.current;
|
|
1218
1228
|
c.style.top = "0px";
|
|
1219
|
-
const
|
|
1229
|
+
const te = Math.max(
|
|
1220
1230
|
ce,
|
|
1221
|
-
|
|
1222
|
-
(
|
|
1231
|
+
j + l.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
1232
|
+
(N ? Ie : 0) + fe
|
|
1223
1233
|
) + D;
|
|
1224
|
-
c.style.height =
|
|
1234
|
+
c.style.height = te + "px", l.scrollTop = P - ce + l.offsetTop;
|
|
1225
1235
|
}
|
|
1226
|
-
c.style.margin = `${W}px 0`, c.style.minHeight =
|
|
1236
|
+
c.style.margin = `${W}px 0`, c.style.minHeight = Te + "px", c.style.maxHeight = F + "px", r == null || r(), requestAnimationFrame(() => w.current = !0);
|
|
1227
1237
|
}
|
|
1228
1238
|
}, [
|
|
1229
1239
|
y,
|
|
1230
|
-
|
|
1231
|
-
|
|
1240
|
+
i.trigger,
|
|
1241
|
+
i.valueNode,
|
|
1232
1242
|
c,
|
|
1233
1243
|
d,
|
|
1234
|
-
|
|
1244
|
+
l,
|
|
1235
1245
|
p,
|
|
1236
1246
|
g,
|
|
1237
|
-
|
|
1247
|
+
i.dir,
|
|
1238
1248
|
r
|
|
1239
1249
|
]);
|
|
1240
1250
|
G(() => m(), [m]);
|
|
@@ -1249,7 +1259,7 @@ var jr = "SelectItemAlignedPosition", Bt = a.forwardRef((e, t) => {
|
|
|
1249
1259
|
[m, f]
|
|
1250
1260
|
);
|
|
1251
1261
|
return /* @__PURE__ */ v(
|
|
1252
|
-
|
|
1262
|
+
Yr,
|
|
1253
1263
|
{
|
|
1254
1264
|
scope: n,
|
|
1255
1265
|
contentWrapper: c,
|
|
@@ -1266,7 +1276,7 @@ var jr = "SelectItemAlignedPosition", Bt = a.forwardRef((e, t) => {
|
|
|
1266
1276
|
zIndex: b
|
|
1267
1277
|
},
|
|
1268
1278
|
children: /* @__PURE__ */ v(
|
|
1269
|
-
|
|
1279
|
+
A.div,
|
|
1270
1280
|
{
|
|
1271
1281
|
...o,
|
|
1272
1282
|
ref: h,
|
|
@@ -1285,26 +1295,26 @@ var jr = "SelectItemAlignedPosition", Bt = a.forwardRef((e, t) => {
|
|
|
1285
1295
|
}
|
|
1286
1296
|
);
|
|
1287
1297
|
});
|
|
1288
|
-
Bt.displayName =
|
|
1289
|
-
var
|
|
1298
|
+
Bt.displayName = zr;
|
|
1299
|
+
var Gr = "SelectPopperPosition", Ue = a.forwardRef((e, t) => {
|
|
1290
1300
|
const {
|
|
1291
1301
|
__scopeSelect: n,
|
|
1292
1302
|
align: r = "start",
|
|
1293
1303
|
collisionPadding: o = W,
|
|
1294
|
-
...
|
|
1295
|
-
} = e, s =
|
|
1304
|
+
...i
|
|
1305
|
+
} = e, s = Ne(n);
|
|
1296
1306
|
return /* @__PURE__ */ v(
|
|
1297
1307
|
hn,
|
|
1298
1308
|
{
|
|
1299
1309
|
...s,
|
|
1300
|
-
...
|
|
1310
|
+
...i,
|
|
1301
1311
|
ref: t,
|
|
1302
1312
|
align: r,
|
|
1303
1313
|
collisionPadding: o,
|
|
1304
1314
|
style: {
|
|
1305
1315
|
// Ensure border-box for floating-ui calculations
|
|
1306
1316
|
boxSizing: "border-box",
|
|
1307
|
-
...
|
|
1317
|
+
...i.style,
|
|
1308
1318
|
"--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1309
1319
|
"--radix-select-content-available-width": "var(--radix-popper-available-width)",
|
|
1310
1320
|
"--radix-select-content-available-height": "var(--radix-popper-available-height)",
|
|
@@ -1314,11 +1324,11 @@ var $r = "SelectPopperPosition", Ue = a.forwardRef((e, t) => {
|
|
|
1314
1324
|
}
|
|
1315
1325
|
);
|
|
1316
1326
|
});
|
|
1317
|
-
Ue.displayName =
|
|
1318
|
-
var [
|
|
1327
|
+
Ue.displayName = Gr;
|
|
1328
|
+
var [Yr, Ze] = de(ae, {}), Ke = "SelectViewport", Vt = a.forwardRef(
|
|
1319
1329
|
(e, t) => {
|
|
1320
|
-
const { __scopeSelect: n, nonce: r, ...o } = e,
|
|
1321
|
-
return /* @__PURE__ */
|
|
1330
|
+
const { __scopeSelect: n, nonce: r, ...o } = e, i = ee(Ke, n), s = Ze(Ke, n), c = B(t, i.onViewportChange), u = a.useRef(0);
|
|
1331
|
+
return /* @__PURE__ */ q(Ge, { children: [
|
|
1322
1332
|
/* @__PURE__ */ v(
|
|
1323
1333
|
"style",
|
|
1324
1334
|
{
|
|
@@ -1329,7 +1339,7 @@ var [zr, Xe] = de(ae, {}), Ke = "SelectViewport", Vt = a.forwardRef(
|
|
|
1329
1339
|
}
|
|
1330
1340
|
),
|
|
1331
1341
|
/* @__PURE__ */ v(xe.Slot, { scope: n, children: /* @__PURE__ */ v(
|
|
1332
|
-
|
|
1342
|
+
A.div,
|
|
1333
1343
|
{
|
|
1334
1344
|
"data-radix-select-viewport": "",
|
|
1335
1345
|
role: "presentation",
|
|
@@ -1348,12 +1358,12 @@ var [zr, Xe] = de(ae, {}), Ke = "SelectViewport", Vt = a.forwardRef(
|
|
|
1348
1358
|
overflow: "hidden auto",
|
|
1349
1359
|
...o.style
|
|
1350
1360
|
},
|
|
1351
|
-
onScroll:
|
|
1361
|
+
onScroll: M(o.onScroll, (d) => {
|
|
1352
1362
|
const S = d.currentTarget, { contentWrapper: h, shouldExpandOnScrollRef: y } = s;
|
|
1353
1363
|
if (y != null && y.current && h) {
|
|
1354
1364
|
const w = Math.abs(u.current - S.scrollTop);
|
|
1355
1365
|
if (w > 0) {
|
|
1356
|
-
const E = window.innerHeight - W * 2,
|
|
1366
|
+
const E = window.innerHeight - W * 2, l = parseFloat(h.style.minHeight), p = parseFloat(h.style.height), g = Math.max(l, p);
|
|
1357
1367
|
if (g < E) {
|
|
1358
1368
|
const f = g + w, m = Math.min(E, f), b = f - m;
|
|
1359
1369
|
h.style.height = m + "px", h.style.bottom === "0px" && (S.scrollTop = b > 0 ? b : 0, h.style.justifyContent = "flex-end");
|
|
@@ -1368,35 +1378,35 @@ var [zr, Xe] = de(ae, {}), Ke = "SelectViewport", Vt = a.forwardRef(
|
|
|
1368
1378
|
}
|
|
1369
1379
|
);
|
|
1370
1380
|
Vt.displayName = Ke;
|
|
1371
|
-
var Ft = "SelectGroup", [
|
|
1381
|
+
var Ft = "SelectGroup", [Xr, Zr] = de(Ft), Wt = a.forwardRef(
|
|
1372
1382
|
(e, t) => {
|
|
1373
1383
|
const { __scopeSelect: n, ...r } = e, o = Ye();
|
|
1374
|
-
return /* @__PURE__ */ v(
|
|
1384
|
+
return /* @__PURE__ */ v(Xr, { scope: n, id: o, children: /* @__PURE__ */ v(A.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
|
|
1375
1385
|
}
|
|
1376
1386
|
);
|
|
1377
1387
|
Wt.displayName = Ft;
|
|
1378
1388
|
var Ht = "SelectLabel", Ut = a.forwardRef(
|
|
1379
1389
|
(e, t) => {
|
|
1380
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
1381
|
-
return /* @__PURE__ */ v(
|
|
1390
|
+
const { __scopeSelect: n, ...r } = e, o = Zr(Ht, n);
|
|
1391
|
+
return /* @__PURE__ */ v(A.div, { id: o.id, ...r, ref: t });
|
|
1382
1392
|
}
|
|
1383
1393
|
);
|
|
1384
1394
|
Ut.displayName = Ht;
|
|
1385
|
-
var be = "SelectItem", [
|
|
1395
|
+
var be = "SelectItem", [qr, Kt] = de(be), $t = a.forwardRef(
|
|
1386
1396
|
(e, t) => {
|
|
1387
1397
|
const {
|
|
1388
1398
|
__scopeSelect: n,
|
|
1389
1399
|
value: r,
|
|
1390
1400
|
disabled: o = !1,
|
|
1391
|
-
textValue:
|
|
1401
|
+
textValue: i,
|
|
1392
1402
|
...s
|
|
1393
|
-
} = e, c =
|
|
1403
|
+
} = e, c = J(be, n), u = ee(be, n), d = c.value === r, [S, h] = a.useState(i ?? ""), [y, w] = a.useState(!1), E = B(
|
|
1394
1404
|
t,
|
|
1395
1405
|
(f) => {
|
|
1396
1406
|
var m;
|
|
1397
1407
|
return (m = u.itemRefCallback) == null ? void 0 : m.call(u, f, r, o);
|
|
1398
1408
|
}
|
|
1399
|
-
),
|
|
1409
|
+
), l = Ye(), p = a.useRef("touch"), g = () => {
|
|
1400
1410
|
o || (c.onValueChange(r), c.onOpenChange(!1));
|
|
1401
1411
|
};
|
|
1402
1412
|
if (r === "")
|
|
@@ -1404,12 +1414,12 @@ var be = "SelectItem", [Xr, Kt] = de(be), jt = a.forwardRef(
|
|
|
1404
1414
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
1405
1415
|
);
|
|
1406
1416
|
return /* @__PURE__ */ v(
|
|
1407
|
-
|
|
1417
|
+
qr,
|
|
1408
1418
|
{
|
|
1409
1419
|
scope: n,
|
|
1410
1420
|
value: r,
|
|
1411
1421
|
disabled: o,
|
|
1412
|
-
textId:
|
|
1422
|
+
textId: l,
|
|
1413
1423
|
isSelected: d,
|
|
1414
1424
|
onItemTextChange: a.useCallback((f) => {
|
|
1415
1425
|
h((m) => m || ((f == null ? void 0 : f.textContent) ?? "").trim());
|
|
@@ -1422,10 +1432,10 @@ var be = "SelectItem", [Xr, Kt] = de(be), jt = a.forwardRef(
|
|
|
1422
1432
|
disabled: o,
|
|
1423
1433
|
textValue: S,
|
|
1424
1434
|
children: /* @__PURE__ */ v(
|
|
1425
|
-
|
|
1435
|
+
A.div,
|
|
1426
1436
|
{
|
|
1427
1437
|
role: "option",
|
|
1428
|
-
"aria-labelledby":
|
|
1438
|
+
"aria-labelledby": l,
|
|
1429
1439
|
"data-highlighted": y ? "" : void 0,
|
|
1430
1440
|
"aria-selected": d && y,
|
|
1431
1441
|
"data-state": d ? "checked" : "unchecked",
|
|
@@ -1434,28 +1444,28 @@ var be = "SelectItem", [Xr, Kt] = de(be), jt = a.forwardRef(
|
|
|
1434
1444
|
tabIndex: o ? void 0 : -1,
|
|
1435
1445
|
...s,
|
|
1436
1446
|
ref: E,
|
|
1437
|
-
onFocus:
|
|
1438
|
-
onBlur:
|
|
1439
|
-
onClick:
|
|
1447
|
+
onFocus: M(s.onFocus, () => w(!0)),
|
|
1448
|
+
onBlur: M(s.onBlur, () => w(!1)),
|
|
1449
|
+
onClick: M(s.onClick, () => {
|
|
1440
1450
|
p.current !== "mouse" && g();
|
|
1441
1451
|
}),
|
|
1442
|
-
onPointerUp:
|
|
1452
|
+
onPointerUp: M(s.onPointerUp, () => {
|
|
1443
1453
|
p.current === "mouse" && g();
|
|
1444
1454
|
}),
|
|
1445
|
-
onPointerDown:
|
|
1455
|
+
onPointerDown: M(s.onPointerDown, (f) => {
|
|
1446
1456
|
p.current = f.pointerType;
|
|
1447
1457
|
}),
|
|
1448
|
-
onPointerMove:
|
|
1458
|
+
onPointerMove: M(s.onPointerMove, (f) => {
|
|
1449
1459
|
var m;
|
|
1450
1460
|
p.current = f.pointerType, o ? (m = u.onItemLeave) == null || m.call(u) : p.current === "mouse" && f.currentTarget.focus({ preventScroll: !0 });
|
|
1451
1461
|
}),
|
|
1452
|
-
onPointerLeave:
|
|
1462
|
+
onPointerLeave: M(s.onPointerLeave, (f) => {
|
|
1453
1463
|
var m;
|
|
1454
1464
|
f.currentTarget === document.activeElement && ((m = u.onItemLeave) == null || m.call(u));
|
|
1455
1465
|
}),
|
|
1456
|
-
onKeyDown:
|
|
1466
|
+
onKeyDown: M(s.onKeyDown, (f) => {
|
|
1457
1467
|
var b;
|
|
1458
|
-
((b = u.searchRef) == null ? void 0 : b.current) !== "" && f.key === " " || (
|
|
1468
|
+
((b = u.searchRef) == null ? void 0 : b.current) !== "" && f.key === " " || (Br.includes(f.key) && g(), f.key === " " && f.preventDefault());
|
|
1459
1469
|
})
|
|
1460
1470
|
}
|
|
1461
1471
|
)
|
|
@@ -1465,10 +1475,10 @@ var be = "SelectItem", [Xr, Kt] = de(be), jt = a.forwardRef(
|
|
|
1465
1475
|
);
|
|
1466
1476
|
}
|
|
1467
1477
|
);
|
|
1468
|
-
|
|
1469
|
-
var pe = "SelectItemText",
|
|
1478
|
+
$t.displayName = be;
|
|
1479
|
+
var pe = "SelectItemText", jt = a.forwardRef(
|
|
1470
1480
|
(e, t) => {
|
|
1471
|
-
const { __scopeSelect: n, className: r, style: o, ...
|
|
1481
|
+
const { __scopeSelect: n, className: r, style: o, ...i } = e, s = J(pe, n), c = ee(pe, n), u = Kt(pe, n), d = Hr(pe, n), [S, h] = a.useState(null), y = B(
|
|
1472
1482
|
t,
|
|
1473
1483
|
(g) => h(g),
|
|
1474
1484
|
u.onItemTextChange,
|
|
@@ -1479,28 +1489,28 @@ var pe = "SelectItemText", $t = a.forwardRef(
|
|
|
1479
1489
|
), w = S == null ? void 0 : S.textContent, E = a.useMemo(
|
|
1480
1490
|
() => /* @__PURE__ */ v("option", { value: u.value, disabled: u.disabled, children: w }, u.value),
|
|
1481
1491
|
[u.disabled, u.value, w]
|
|
1482
|
-
), { onNativeOptionAdd:
|
|
1483
|
-
return G(() => (
|
|
1484
|
-
/* @__PURE__ */ v(
|
|
1485
|
-
u.isSelected && s.valueNode && !s.valueNodeHasChildren ?
|
|
1492
|
+
), { onNativeOptionAdd: l, onNativeOptionRemove: p } = d;
|
|
1493
|
+
return G(() => (l(E), () => p(E)), [l, p, E]), /* @__PURE__ */ q(Ge, { children: [
|
|
1494
|
+
/* @__PURE__ */ v(A.span, { id: u.textId, ...i, ref: y }),
|
|
1495
|
+
u.isSelected && s.valueNode && !s.valueNodeHasChildren ? ut.createPortal(i.children, s.valueNode) : null
|
|
1486
1496
|
] });
|
|
1487
1497
|
}
|
|
1488
1498
|
);
|
|
1489
|
-
|
|
1499
|
+
jt.displayName = pe;
|
|
1490
1500
|
var zt = "SelectItemIndicator", Gt = a.forwardRef(
|
|
1491
1501
|
(e, t) => {
|
|
1492
1502
|
const { __scopeSelect: n, ...r } = e;
|
|
1493
|
-
return Kt(zt, n).isSelected ? /* @__PURE__ */ v(
|
|
1503
|
+
return Kt(zt, n).isSelected ? /* @__PURE__ */ v(A.span, { "aria-hidden": !0, ...r, ref: t }) : null;
|
|
1494
1504
|
}
|
|
1495
1505
|
);
|
|
1496
1506
|
Gt.displayName = zt;
|
|
1497
|
-
var
|
|
1498
|
-
const n =
|
|
1507
|
+
var $e = "SelectScrollUpButton", Yt = a.forwardRef((e, t) => {
|
|
1508
|
+
const n = ee($e, e.__scopeSelect), r = Ze($e, e.__scopeSelect), [o, i] = a.useState(!1), s = B(t, r.onScrollButtonChange);
|
|
1499
1509
|
return G(() => {
|
|
1500
1510
|
if (n.viewport && n.isPositioned) {
|
|
1501
1511
|
let c = function() {
|
|
1502
1512
|
const d = u.scrollTop > 0;
|
|
1503
|
-
|
|
1513
|
+
i(d);
|
|
1504
1514
|
};
|
|
1505
1515
|
const u = n.viewport;
|
|
1506
1516
|
return c(), u.addEventListener("scroll", c), () => u.removeEventListener("scroll", c);
|
|
@@ -1517,14 +1527,14 @@ var je = "SelectScrollUpButton", Yt = a.forwardRef((e, t) => {
|
|
|
1517
1527
|
}
|
|
1518
1528
|
) : null;
|
|
1519
1529
|
});
|
|
1520
|
-
Yt.displayName =
|
|
1521
|
-
var
|
|
1522
|
-
const n =
|
|
1530
|
+
Yt.displayName = $e;
|
|
1531
|
+
var je = "SelectScrollDownButton", Xt = a.forwardRef((e, t) => {
|
|
1532
|
+
const n = ee(je, e.__scopeSelect), r = Ze(je, e.__scopeSelect), [o, i] = a.useState(!1), s = B(t, r.onScrollButtonChange);
|
|
1523
1533
|
return G(() => {
|
|
1524
1534
|
if (n.viewport && n.isPositioned) {
|
|
1525
1535
|
let c = function() {
|
|
1526
1536
|
const d = u.scrollHeight - u.clientHeight, S = Math.ceil(u.scrollTop) < d;
|
|
1527
|
-
|
|
1537
|
+
i(S);
|
|
1528
1538
|
};
|
|
1529
1539
|
const u = n.viewport;
|
|
1530
1540
|
return c(), u.addEventListener("scroll", c), () => u.removeEventListener("scroll", c);
|
|
@@ -1541,9 +1551,9 @@ var $e = "SelectScrollDownButton", Xt = a.forwardRef((e, t) => {
|
|
|
1541
1551
|
}
|
|
1542
1552
|
) : null;
|
|
1543
1553
|
});
|
|
1544
|
-
Xt.displayName =
|
|
1554
|
+
Xt.displayName = je;
|
|
1545
1555
|
var Zt = a.forwardRef((e, t) => {
|
|
1546
|
-
const { __scopeSelect: n, onAutoScroll: r, ...o } = e,
|
|
1556
|
+
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, i = ee("SelectScrollButton", n), s = a.useRef(null), c = Re(n), u = a.useCallback(() => {
|
|
1547
1557
|
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
1548
1558
|
}, []);
|
|
1549
1559
|
return a.useEffect(() => () => u(), [u]), G(() => {
|
|
@@ -1551,41 +1561,41 @@ var Zt = a.forwardRef((e, t) => {
|
|
|
1551
1561
|
const d = c().find((h) => h.ref.current === document.activeElement);
|
|
1552
1562
|
(S = d == null ? void 0 : d.ref.current) == null || S.scrollIntoView({ block: "nearest" });
|
|
1553
1563
|
}, [c]), /* @__PURE__ */ v(
|
|
1554
|
-
|
|
1564
|
+
A.div,
|
|
1555
1565
|
{
|
|
1556
1566
|
"aria-hidden": !0,
|
|
1557
1567
|
...o,
|
|
1558
1568
|
ref: t,
|
|
1559
1569
|
style: { flexShrink: 0, ...o.style },
|
|
1560
|
-
onPointerDown:
|
|
1570
|
+
onPointerDown: M(o.onPointerDown, () => {
|
|
1561
1571
|
s.current === null && (s.current = window.setInterval(r, 50));
|
|
1562
1572
|
}),
|
|
1563
|
-
onPointerMove:
|
|
1573
|
+
onPointerMove: M(o.onPointerMove, () => {
|
|
1564
1574
|
var d;
|
|
1565
|
-
(d =
|
|
1575
|
+
(d = i.onItemLeave) == null || d.call(i), s.current === null && (s.current = window.setInterval(r, 50));
|
|
1566
1576
|
}),
|
|
1567
|
-
onPointerLeave:
|
|
1577
|
+
onPointerLeave: M(o.onPointerLeave, () => {
|
|
1568
1578
|
u();
|
|
1569
1579
|
})
|
|
1570
1580
|
}
|
|
1571
1581
|
);
|
|
1572
|
-
}),
|
|
1582
|
+
}), Qr = "SelectSeparator", qt = a.forwardRef(
|
|
1573
1583
|
(e, t) => {
|
|
1574
1584
|
const { __scopeSelect: n, ...r } = e;
|
|
1575
|
-
return /* @__PURE__ */ v(
|
|
1585
|
+
return /* @__PURE__ */ v(A.div, { "aria-hidden": !0, ...r, ref: t });
|
|
1576
1586
|
}
|
|
1577
1587
|
);
|
|
1578
|
-
qt.displayName =
|
|
1579
|
-
var ze = "SelectArrow",
|
|
1588
|
+
qt.displayName = Qr;
|
|
1589
|
+
var ze = "SelectArrow", Jr = a.forwardRef(
|
|
1580
1590
|
(e, t) => {
|
|
1581
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
1582
|
-
return
|
|
1591
|
+
const { __scopeSelect: n, ...r } = e, o = Ne(n), i = J(ze, n), s = ee(ze, n);
|
|
1592
|
+
return i.open && s.position === "popper" ? /* @__PURE__ */ v(yn, { ...o, ...r, ref: t }) : null;
|
|
1583
1593
|
}
|
|
1584
1594
|
);
|
|
1585
|
-
|
|
1586
|
-
var
|
|
1595
|
+
Jr.displayName = ze;
|
|
1596
|
+
var eo = "SelectBubbleInput", Qt = a.forwardRef(
|
|
1587
1597
|
({ __scopeSelect: e, value: t, ...n }, r) => {
|
|
1588
|
-
const o = a.useRef(null),
|
|
1598
|
+
const o = a.useRef(null), i = B(r, o), s = Pr(t);
|
|
1589
1599
|
return a.useEffect(() => {
|
|
1590
1600
|
const c = o.current;
|
|
1591
1601
|
if (!c) return;
|
|
@@ -1598,17 +1608,17 @@ var Qr = "SelectBubbleInput", Qt = a.forwardRef(
|
|
|
1598
1608
|
S.call(c, t), c.dispatchEvent(h);
|
|
1599
1609
|
}
|
|
1600
1610
|
}, [s, t]), /* @__PURE__ */ v(
|
|
1601
|
-
|
|
1611
|
+
A.select,
|
|
1602
1612
|
{
|
|
1603
1613
|
...n,
|
|
1604
1614
|
style: { ...Sn, ...n.style },
|
|
1605
|
-
ref:
|
|
1615
|
+
ref: i,
|
|
1606
1616
|
defaultValue: t
|
|
1607
1617
|
}
|
|
1608
1618
|
);
|
|
1609
1619
|
}
|
|
1610
1620
|
);
|
|
1611
|
-
Qt.displayName =
|
|
1621
|
+
Qt.displayName = eo;
|
|
1612
1622
|
function Jt(e) {
|
|
1613
1623
|
return e === "" || e === void 0;
|
|
1614
1624
|
}
|
|
@@ -1621,52 +1631,66 @@ function en(e) {
|
|
|
1621
1631
|
})(c);
|
|
1622
1632
|
},
|
|
1623
1633
|
[t]
|
|
1624
|
-
),
|
|
1634
|
+
), i = a.useCallback(() => {
|
|
1625
1635
|
n.current = "", window.clearTimeout(r.current);
|
|
1626
1636
|
}, []);
|
|
1627
|
-
return a.useEffect(() => () => window.clearTimeout(r.current), []), [n, o,
|
|
1637
|
+
return a.useEffect(() => () => window.clearTimeout(r.current), []), [n, o, i];
|
|
1628
1638
|
}
|
|
1629
1639
|
function tn(e, t, n) {
|
|
1630
|
-
const o = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t,
|
|
1631
|
-
let s =
|
|
1640
|
+
const o = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
|
|
1641
|
+
let s = to(e, Math.max(i, 0));
|
|
1632
1642
|
o.length === 1 && (s = s.filter((d) => d !== n));
|
|
1633
1643
|
const u = s.find(
|
|
1634
1644
|
(d) => d.textValue.toLowerCase().startsWith(o.toLowerCase())
|
|
1635
1645
|
);
|
|
1636
1646
|
return u !== n ? u : void 0;
|
|
1637
1647
|
}
|
|
1638
|
-
function
|
|
1648
|
+
function to(e, t) {
|
|
1639
1649
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1640
1650
|
}
|
|
1641
|
-
var
|
|
1642
|
-
const
|
|
1643
|
-
({ className: e, children: t,
|
|
1651
|
+
var no = Tt, nn = Pt, ro = Mt, oo = At, ao = Ot, rn = kt, co = Vt, io = Wt, on = Ut, an = $t, lo = jt, so = Gt, cn = Yt, ln = Xt, sn = qt;
|
|
1652
|
+
const bo = no, Eo = io, xo = ro, uo = a.forwardRef(
|
|
1653
|
+
({ className: e, children: t, onClear: n, ...r }, o) => /* @__PURE__ */ q(
|
|
1644
1654
|
nn,
|
|
1645
1655
|
{
|
|
1646
|
-
ref:
|
|
1647
|
-
className:
|
|
1656
|
+
ref: o,
|
|
1657
|
+
className: Q(
|
|
1648
1658
|
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
1649
1659
|
e
|
|
1650
1660
|
),
|
|
1651
|
-
...
|
|
1661
|
+
...r,
|
|
1652
1662
|
children: [
|
|
1653
1663
|
t,
|
|
1654
|
-
/* @__PURE__ */
|
|
1664
|
+
/* @__PURE__ */ q("div", { className: "flex items-center gap-1", children: [
|
|
1665
|
+
n && /* @__PURE__ */ v(
|
|
1666
|
+
"span",
|
|
1667
|
+
{
|
|
1668
|
+
role: "button",
|
|
1669
|
+
tabIndex: -1,
|
|
1670
|
+
onPointerDown: (i) => {
|
|
1671
|
+
i.preventDefault(), i.stopPropagation(), n(i);
|
|
1672
|
+
},
|
|
1673
|
+
className: "text-muted-foreground hover:text-foreground",
|
|
1674
|
+
children: /* @__PURE__ */ v(On, { className: "size-4" })
|
|
1675
|
+
}
|
|
1676
|
+
),
|
|
1677
|
+
/* @__PURE__ */ v(oo, { asChild: !0, children: /* @__PURE__ */ v(mt, { className: "size-4 opacity-50" }) })
|
|
1678
|
+
] })
|
|
1655
1679
|
]
|
|
1656
1680
|
}
|
|
1657
1681
|
)
|
|
1658
1682
|
);
|
|
1659
|
-
|
|
1660
|
-
const un = a.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(cn, { ref: n, className:
|
|
1683
|
+
uo.displayName = nn.displayName;
|
|
1684
|
+
const un = a.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(cn, { ref: n, className: Q("flex cursor-default items-center justify-center py-1", e), ...t, children: /* @__PURE__ */ v(Mn, { className: "size-4" }) }));
|
|
1661
1685
|
un.displayName = cn.displayName;
|
|
1662
|
-
const dn = a.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(ln, { ref: n, className:
|
|
1686
|
+
const dn = a.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(ln, { ref: n, className: Q("flex cursor-default items-center justify-center py-1", e), ...t, children: /* @__PURE__ */ v(mt, { className: "size-4" }) }));
|
|
1663
1687
|
dn.displayName = ln.displayName;
|
|
1664
|
-
const
|
|
1665
|
-
({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ v(
|
|
1688
|
+
const fo = a.forwardRef(
|
|
1689
|
+
({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ v(ao, { children: /* @__PURE__ */ q(
|
|
1666
1690
|
rn,
|
|
1667
1691
|
{
|
|
1668
1692
|
ref: o,
|
|
1669
|
-
className:
|
|
1693
|
+
className: Q(
|
|
1670
1694
|
"relative z-[100] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1671
1695
|
n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
1672
1696
|
e
|
|
@@ -1676,9 +1700,9 @@ const so = a.forwardRef(
|
|
|
1676
1700
|
children: [
|
|
1677
1701
|
/* @__PURE__ */ v(un, {}),
|
|
1678
1702
|
/* @__PURE__ */ v(
|
|
1679
|
-
|
|
1703
|
+
co,
|
|
1680
1704
|
{
|
|
1681
|
-
className:
|
|
1705
|
+
className: Q("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
1682
1706
|
children: t
|
|
1683
1707
|
}
|
|
1684
1708
|
),
|
|
@@ -1687,52 +1711,53 @@ const so = a.forwardRef(
|
|
|
1687
1711
|
}
|
|
1688
1712
|
) })
|
|
1689
1713
|
);
|
|
1690
|
-
|
|
1691
|
-
const
|
|
1692
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ v(on, { ref: n, className:
|
|
1714
|
+
fo.displayName = rn.displayName;
|
|
1715
|
+
const po = a.forwardRef(
|
|
1716
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ v(on, { ref: n, className: Q("py-1.5 pl-8 pr-2 text-sm font-semibold", e), ...t })
|
|
1693
1717
|
);
|
|
1694
|
-
|
|
1695
|
-
const
|
|
1696
|
-
({ className: e, children: t, ...n }, r) => /* @__PURE__ */
|
|
1718
|
+
po.displayName = on.displayName;
|
|
1719
|
+
const mo = a.forwardRef(
|
|
1720
|
+
({ className: e, children: t, ...n }, r) => /* @__PURE__ */ q(
|
|
1697
1721
|
an,
|
|
1698
1722
|
{
|
|
1699
1723
|
ref: r,
|
|
1700
|
-
className:
|
|
1724
|
+
className: Q(
|
|
1701
1725
|
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1702
1726
|
e
|
|
1703
1727
|
),
|
|
1704
1728
|
...n,
|
|
1705
1729
|
children: [
|
|
1706
|
-
/* @__PURE__ */ v("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ v(
|
|
1707
|
-
/* @__PURE__ */ v(
|
|
1730
|
+
/* @__PURE__ */ v("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ v(so, { children: /* @__PURE__ */ v(Pn, { className: "size-4" }) }) }),
|
|
1731
|
+
/* @__PURE__ */ v(lo, { children: t })
|
|
1708
1732
|
]
|
|
1709
1733
|
}
|
|
1710
1734
|
)
|
|
1711
1735
|
);
|
|
1712
|
-
|
|
1713
|
-
const
|
|
1714
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ v(sn, { ref: n, className:
|
|
1736
|
+
mo.displayName = an.displayName;
|
|
1737
|
+
const vo = a.forwardRef(
|
|
1738
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ v(sn, { ref: n, className: Q("-mx-1 my-1 h-px bg-muted", e), ...t })
|
|
1715
1739
|
);
|
|
1716
|
-
|
|
1740
|
+
vo.displayName = sn.displayName;
|
|
1717
1741
|
export {
|
|
1718
1742
|
Pn as C,
|
|
1719
1743
|
vt as F,
|
|
1720
1744
|
gt as P,
|
|
1721
1745
|
Rt as R,
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1746
|
+
bo as S,
|
|
1747
|
+
On as X,
|
|
1748
|
+
fo as a,
|
|
1749
|
+
Eo as b,
|
|
1750
|
+
mo as c,
|
|
1751
|
+
po as d,
|
|
1727
1752
|
dn as e,
|
|
1728
1753
|
un as f,
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1754
|
+
vo as g,
|
|
1755
|
+
uo as h,
|
|
1756
|
+
xo as i,
|
|
1732
1757
|
Rn as j,
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1758
|
+
Ir as k,
|
|
1759
|
+
Un as l,
|
|
1760
|
+
Pr as m,
|
|
1761
|
+
st as n,
|
|
1762
|
+
Tn as u
|
|
1738
1763
|
};
|