@factorialco/f0-react 16.39.0 → 16.40.0
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/{ArchiveThumbnail-BuomQ0jm.js → ArchiveThumbnail-fx1k9zF5.js} +1 -1
- package/dist/{ArchiveViewer-Cb1a_yK5.js → ArchiveViewer-4mkxdXyf.js} +2 -2
- package/dist/{ChatPostComposerDialog-BgqLmmZS.js → ChatPostComposerDialog-ZGoAsax9.js} +2 -2
- package/dist/{CoachmarkProvider-DXJ3wMBS.js → CoachmarkProvider-BwLQ3v9f.js} +14173 -14157
- package/dist/{CodeThumbnail-bnwIB0Q2.js → CodeThumbnail-DIRVdTYf.js} +1 -1
- package/dist/{CodeViewer-DVL3P-jF.js → CodeViewer-BHA1Osng.js} +4 -4
- package/dist/{DocumentToolbar-7s9QNMWY.js → DocumentToolbar-C8_A4Bhd.js} +5 -5
- package/dist/{DocxViewer-Bn22Gst6.js → DocxViewer-C-UaGNXG.js} +1 -1
- package/dist/{F0AiProcessingOverlay-B6DLMrO7.js → F0AiProcessingOverlay-BQGg-wTQ.js} +502 -504
- package/dist/{F0Alert-m54uY33f.js → F0Alert-Cj4ufDl7.js} +3 -3
- package/dist/F0AudioPlayer-C5CokjE_.js +2 -0
- package/dist/{F0CanvasPanel-CfPdTW_o.js → F0CanvasPanel-D4PhLARb.js} +8987 -9185
- package/dist/{F0DocumentViewer-FuhnkhM-.js → F0DocumentViewer-382b-101.js} +1 -1
- package/dist/{F0DocumentViewer-C_E6pFUZ.js → F0DocumentViewer-De5STCB5.js} +2 -2
- package/dist/{F0Map-ByX3wxFv.js → F0Map-Dz_-4gAZ.js} +764 -697
- package/dist/{F0Select-BCUynP2p.js → F0Select-BQMaDPcg.js} +8266 -8522
- package/dist/{Ellipsis-Bxq1iUUk.js → F0Text-DmUg-CLb.js} +22 -14
- package/dist/F0VideoPlayer-AXw_DAL_.js +1 -0
- package/dist/{F0VideoPlayer-DGHxduSr.js → F0VideoPlayer-Dsna4Es9.js} +306 -307
- package/dist/{HtmlViewer-Q3xUMpkP.js → HtmlViewer-CIAxNnvP.js} +4 -4
- package/dist/{Map-FBPV6r6b.js → Map-DGd3Cl-3.js} +13 -13
- package/dist/{PdfThumbnail-QkmwtnOA.js → PdfThumbnail-BtzXcGHN.js} +1 -1
- package/dist/{PdfViewer-D4NjCixG.js → PdfViewer-BZVnaYKF.js} +6 -6
- package/dist/{SheetViewer-RsRTbw7A.js → SheetViewer-Bn3N9G4D.js} +3 -3
- package/dist/{TextViewer-BvwaMVDG.js → TextViewer-C9NBnJvl.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/{dist-CngBJJ6S.js → dist-CWrWx4g2.js} +4 -4
- package/dist/{dist-CUKjZKvr.js → dist-CZnQ15Wl.js} +1 -1
- package/dist/{dist-CGYo25BY.js → dist-DCb1475M.js} +151 -142
- package/dist/{dist-D83RDDAb.js → dist-DNltp03U.js} +6 -15
- package/dist/{dist-DDAe_kuu.js → dist-DxwodHyk.js} +1 -1
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +819 -821
- package/dist/{exports-DYl7Pf17.d.ts → exports-CbmGLzn6.d.ts} +1 -1
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +1556 -1513
- package/dist/{highlight-CJDVXMe_.js → highlight-u9A6kwy7.js} +1 -1
- package/dist/{index-C7sLtTlR.d.ts → index-CcbdFJRr.d.ts} +3 -2
- package/dist/{index-DOU2q_xI.d.ts → index-D0QIgPoz.d.ts} +7 -0
- package/dist/internal-CGrF2KLC.js +261 -0
- package/dist/{maplibre-Dgbj9gtn.js → maplibre-Dqb2AOHT.js} +12 -13
- package/dist/{pdfWorker-BlDYyNbC.js → pdfWorker-C_2eH-2_.js} +1 -1
- package/dist/{popover-BGv1b-fc.js → popover-Y2y9anVX.js} +1282 -1247
- package/dist/styles.css +1 -1
- package/dist/{useData-CmFkOA0P.js → useData-OLWBwcfd.js} +5129 -4873
- package/package.json +1 -1
- package/tailwind.config.ts +4 -0
- package/dist/Check-Cg2vvL5g.js +0 -39
- package/dist/F0AudioPlayer-Ck9Vyjrb.js +0 -2
- package/dist/F0Text-CnmiWNAg.js +0 -14
- package/dist/F0VideoPlayer-BshnHziC.js +0 -1
- package/dist/LayoutGroup-OcrcUDNP.js +0 -57
|
@@ -1,90 +1,125 @@
|
|
|
1
1
|
import { L as e, s as t } from "./tooltip-NXXT56H4.js";
|
|
2
|
-
import { o as n } from "./createIcon-iM5M-dE_.js";
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { jsx as
|
|
6
|
-
import
|
|
2
|
+
import { o as n, t as r } from "./createIcon-iM5M-dE_.js";
|
|
3
|
+
import * as i from "react";
|
|
4
|
+
import a, { createElement as o, forwardRef as s, useEffect as c, useLayoutEffect as l, useState as u } from "react";
|
|
5
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
|
+
import p, * as m from "react-dom";
|
|
7
|
+
var h = s((e, t) => d("svg", {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
fill: "none",
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
strokeWidth: "2",
|
|
12
|
+
ref: t,
|
|
13
|
+
...e,
|
|
14
|
+
children: d("path", {
|
|
15
|
+
stroke: "currentColor",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round",
|
|
18
|
+
d: "M10.59 17.34L18.47 6.66 M5.53 11.72L10.59 17.34"
|
|
19
|
+
})
|
|
20
|
+
})), g = s((e, t) => /* @__PURE__ */ f("svg", {
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
fill: "none",
|
|
23
|
+
viewBox: "0 0 24 24",
|
|
24
|
+
ref: t,
|
|
25
|
+
...e,
|
|
26
|
+
children: [/* @__PURE__ */ d("path", {
|
|
27
|
+
stroke: "currentColor",
|
|
28
|
+
strokeLinecap: "round",
|
|
29
|
+
strokeLinejoin: "round",
|
|
30
|
+
d: "M10.75 16.75L17.75 7.25004"
|
|
31
|
+
}), /* @__PURE__ */ d("path", {
|
|
32
|
+
stroke: "currentColor",
|
|
33
|
+
strokeLinecap: "round",
|
|
34
|
+
strokeLinejoin: "round",
|
|
35
|
+
d: "M6.25 11.75L10.75 16.75"
|
|
36
|
+
})]
|
|
37
|
+
})), _ = r({
|
|
38
|
+
v1: g,
|
|
39
|
+
v2: h
|
|
40
|
+
}, "Check");
|
|
41
|
+
//#endregion
|
|
7
42
|
//#region ../../node_modules/.bun/@radix-ui+react-compose-refs@1.1.2+ec078f7ced36dfee/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
8
|
-
function
|
|
43
|
+
function v(e, t) {
|
|
9
44
|
if (typeof e == "function") return e(t);
|
|
10
45
|
e != null && (e.current = t);
|
|
11
46
|
}
|
|
12
|
-
function
|
|
47
|
+
function y(...e) {
|
|
13
48
|
return (t) => {
|
|
14
49
|
let n = !1, r = e.map((e) => {
|
|
15
|
-
let r =
|
|
50
|
+
let r = v(e, t);
|
|
16
51
|
return !n && typeof r == "function" && (n = !0), r;
|
|
17
52
|
});
|
|
18
53
|
if (n) return () => {
|
|
19
54
|
for (let t = 0; t < r.length; t++) {
|
|
20
55
|
let n = r[t];
|
|
21
|
-
typeof n == "function" ? n() :
|
|
56
|
+
typeof n == "function" ? n() : v(e[t], null);
|
|
22
57
|
}
|
|
23
58
|
};
|
|
24
59
|
};
|
|
25
60
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
61
|
+
function b(...e) {
|
|
62
|
+
return i.useCallback(y(...e), e);
|
|
28
63
|
}
|
|
29
64
|
typeof window < "u" && window.document && window.document.createElement;
|
|
30
|
-
function
|
|
65
|
+
function x(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
31
66
|
return function(r) {
|
|
32
67
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
33
68
|
};
|
|
34
69
|
}
|
|
35
70
|
//#endregion
|
|
36
71
|
//#region ../../node_modules/.bun/@radix-ui+react-context@1.1.2+ec078f7ced36dfee/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
37
|
-
function
|
|
38
|
-
let n =
|
|
39
|
-
let { children: t, ...
|
|
40
|
-
return /* @__PURE__ */
|
|
72
|
+
function S(e, t) {
|
|
73
|
+
let n = i.createContext(t), r = (e) => {
|
|
74
|
+
let { children: t, ...r } = e, a = i.useMemo(() => r, Object.values(r));
|
|
75
|
+
return /* @__PURE__ */ d(n.Provider, {
|
|
41
76
|
value: a,
|
|
42
77
|
children: t
|
|
43
78
|
});
|
|
44
79
|
};
|
|
45
|
-
|
|
46
|
-
function a(
|
|
47
|
-
let a =
|
|
80
|
+
r.displayName = e + "Provider";
|
|
81
|
+
function a(r) {
|
|
82
|
+
let a = i.useContext(n);
|
|
48
83
|
if (a) return a;
|
|
49
84
|
if (t !== void 0) return t;
|
|
50
|
-
throw Error(`\`${
|
|
85
|
+
throw Error(`\`${r}\` must be used within \`${e}\``);
|
|
51
86
|
}
|
|
52
|
-
return [
|
|
87
|
+
return [r, a];
|
|
53
88
|
}
|
|
54
|
-
function
|
|
89
|
+
function C(e, t = []) {
|
|
55
90
|
let n = [];
|
|
56
|
-
function
|
|
57
|
-
let a =
|
|
58
|
-
n = [...n,
|
|
91
|
+
function r(t, r) {
|
|
92
|
+
let a = i.createContext(r), o = n.length;
|
|
93
|
+
n = [...n, r];
|
|
59
94
|
let s = (t) => {
|
|
60
|
-
let { scope: n, children:
|
|
61
|
-
return /* @__PURE__ */
|
|
95
|
+
let { scope: n, children: r, ...s } = t, c = n?.[e]?.[o] || a, l = i.useMemo(() => s, Object.values(s));
|
|
96
|
+
return /* @__PURE__ */ d(c.Provider, {
|
|
62
97
|
value: l,
|
|
63
|
-
children:
|
|
98
|
+
children: r
|
|
64
99
|
});
|
|
65
100
|
};
|
|
66
101
|
s.displayName = t + "Provider";
|
|
67
102
|
function c(n, s) {
|
|
68
|
-
let c = s?.[e]?.[o] || a, l =
|
|
103
|
+
let c = s?.[e]?.[o] || a, l = i.useContext(c);
|
|
69
104
|
if (l) return l;
|
|
70
|
-
if (
|
|
105
|
+
if (r !== void 0) return r;
|
|
71
106
|
throw Error(`\`${n}\` must be used within \`${t}\``);
|
|
72
107
|
}
|
|
73
108
|
return [s, c];
|
|
74
109
|
}
|
|
75
110
|
let a = () => {
|
|
76
|
-
let t = n.map((e) =>
|
|
111
|
+
let t = n.map((e) => i.createContext(e));
|
|
77
112
|
return function(n) {
|
|
78
|
-
let
|
|
79
|
-
return
|
|
113
|
+
let r = n?.[e] || t;
|
|
114
|
+
return i.useMemo(() => ({ [`__scope${e}`]: {
|
|
80
115
|
...n,
|
|
81
|
-
[e]:
|
|
82
|
-
} }), [n,
|
|
116
|
+
[e]: r
|
|
117
|
+
} }), [n, r]);
|
|
83
118
|
};
|
|
84
119
|
};
|
|
85
|
-
return a.scopeName = e, [
|
|
120
|
+
return a.scopeName = e, [r, w(a, ...t)];
|
|
86
121
|
}
|
|
87
|
-
function
|
|
122
|
+
function w(...e) {
|
|
88
123
|
let t = e[0];
|
|
89
124
|
if (e.length === 1) return t;
|
|
90
125
|
let n = () => {
|
|
@@ -93,36 +128,36 @@ function b(...e) {
|
|
|
93
128
|
scopeName: e.scopeName
|
|
94
129
|
}));
|
|
95
130
|
return function(e) {
|
|
96
|
-
let
|
|
131
|
+
let r = n.reduce((t, { useScope: n, scopeName: r }) => {
|
|
97
132
|
let i = n(e)[`__scope${r}`];
|
|
98
133
|
return {
|
|
99
134
|
...t,
|
|
100
135
|
...i
|
|
101
136
|
};
|
|
102
137
|
}, {});
|
|
103
|
-
return
|
|
138
|
+
return i.useMemo(() => ({ [`__scope${t.scopeName}`]: r }), [r]);
|
|
104
139
|
};
|
|
105
140
|
};
|
|
106
141
|
return n.scopeName = t.scopeName, n;
|
|
107
142
|
}
|
|
108
143
|
//#endregion
|
|
109
144
|
//#region ../../node_modules/.bun/@radix-ui+react-use-layout-effect@1.1.1+ec078f7ced36dfee/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
110
|
-
var
|
|
111
|
-
function
|
|
112
|
-
let [a, o, s] =
|
|
145
|
+
var T = globalThis?.document ? i.useLayoutEffect : () => {}, E = i.useInsertionEffect || T;
|
|
146
|
+
function D({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
147
|
+
let [a, o, s] = O({
|
|
113
148
|
defaultProp: t,
|
|
114
149
|
onChange: n
|
|
115
150
|
}), c = e !== void 0, l = c ? e : a;
|
|
116
151
|
{
|
|
117
|
-
let t =
|
|
118
|
-
|
|
152
|
+
let t = i.useRef(e !== void 0);
|
|
153
|
+
i.useEffect(() => {
|
|
119
154
|
let e = t.current;
|
|
120
|
-
e !== c && console.warn(`${
|
|
121
|
-
}, [c,
|
|
155
|
+
e !== c && console.warn(`${r} is changing from ${e ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`), t.current = c;
|
|
156
|
+
}, [c, r]);
|
|
122
157
|
}
|
|
123
|
-
return [l,
|
|
158
|
+
return [l, i.useCallback((t) => {
|
|
124
159
|
if (c) {
|
|
125
|
-
let n =
|
|
160
|
+
let n = k(t) ? t(e) : t;
|
|
126
161
|
n !== e && s.current?.(n);
|
|
127
162
|
} else o(t);
|
|
128
163
|
}, [
|
|
@@ -132,61 +167,61 @@ function C({ prop: e, defaultProp: t, onChange: n = () => {}, caller: i }) {
|
|
|
132
167
|
s
|
|
133
168
|
])];
|
|
134
169
|
}
|
|
135
|
-
function
|
|
136
|
-
let [n,
|
|
137
|
-
return
|
|
170
|
+
function O({ defaultProp: e, onChange: t }) {
|
|
171
|
+
let [n, r] = i.useState(e), a = i.useRef(n), o = i.useRef(t);
|
|
172
|
+
return E(() => {
|
|
138
173
|
o.current = t;
|
|
139
|
-
}, [t]),
|
|
174
|
+
}, [t]), i.useEffect(() => {
|
|
140
175
|
a.current !== n && (o.current?.(n), a.current = n);
|
|
141
176
|
}, [n, a]), [
|
|
142
177
|
n,
|
|
143
|
-
|
|
178
|
+
r,
|
|
144
179
|
o
|
|
145
180
|
];
|
|
146
181
|
}
|
|
147
|
-
function
|
|
182
|
+
function k(e) {
|
|
148
183
|
return typeof e == "function";
|
|
149
184
|
}
|
|
150
185
|
//#endregion
|
|
151
186
|
//#region ../../node_modules/.bun/@radix-ui+react-slot@1.2.3+ec078f7ced36dfee/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
152
187
|
// @__NO_SIDE_EFFECTS__
|
|
153
|
-
function
|
|
154
|
-
let t = /* @__PURE__ */
|
|
155
|
-
let { children:
|
|
188
|
+
function A(e) {
|
|
189
|
+
let t = /* @__PURE__ */ M(e), n = i.forwardRef((e, n) => {
|
|
190
|
+
let { children: r, ...a } = e, o = i.Children.toArray(r), s = o.find(P);
|
|
156
191
|
if (s) {
|
|
157
|
-
let e = s.props.children,
|
|
158
|
-
return /* @__PURE__ */
|
|
192
|
+
let e = s.props.children, r = o.map((t) => t === s ? i.Children.count(e) > 1 ? i.Children.only(null) : i.isValidElement(e) ? e.props.children : null : t);
|
|
193
|
+
return /* @__PURE__ */ d(t, {
|
|
159
194
|
...a,
|
|
160
195
|
ref: n,
|
|
161
|
-
children:
|
|
196
|
+
children: i.isValidElement(e) ? i.cloneElement(e, void 0, r) : null
|
|
162
197
|
});
|
|
163
198
|
}
|
|
164
|
-
return /* @__PURE__ */
|
|
199
|
+
return /* @__PURE__ */ d(t, {
|
|
165
200
|
...a,
|
|
166
201
|
ref: n,
|
|
167
|
-
children:
|
|
202
|
+
children: r
|
|
168
203
|
});
|
|
169
204
|
});
|
|
170
205
|
return n.displayName = `${e}.Slot`, n;
|
|
171
206
|
}
|
|
172
|
-
var
|
|
207
|
+
var j = /* @__PURE__ */ A("Slot");
|
|
173
208
|
// @__NO_SIDE_EFFECTS__
|
|
174
|
-
function
|
|
175
|
-
let t =
|
|
176
|
-
let { children: n, ...
|
|
177
|
-
if (
|
|
178
|
-
let e =
|
|
179
|
-
return n.type !==
|
|
209
|
+
function M(e) {
|
|
210
|
+
let t = i.forwardRef((e, t) => {
|
|
211
|
+
let { children: n, ...r } = e;
|
|
212
|
+
if (i.isValidElement(n)) {
|
|
213
|
+
let e = te(n), a = ee(r, n.props);
|
|
214
|
+
return n.type !== i.Fragment && (a.ref = t ? y(t, e) : e), i.cloneElement(n, a);
|
|
180
215
|
}
|
|
181
|
-
return
|
|
216
|
+
return i.Children.count(n) > 1 ? i.Children.only(null) : null;
|
|
182
217
|
});
|
|
183
218
|
return t.displayName = `${e}.SlotClone`, t;
|
|
184
219
|
}
|
|
185
|
-
var
|
|
186
|
-
function
|
|
187
|
-
return
|
|
220
|
+
var N = Symbol("radix.slottable");
|
|
221
|
+
function P(e) {
|
|
222
|
+
return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === N;
|
|
188
223
|
}
|
|
189
|
-
function
|
|
224
|
+
function ee(e, t) {
|
|
190
225
|
let n = { ...t };
|
|
191
226
|
for (let r in t) {
|
|
192
227
|
let i = e[r], a = t[r];
|
|
@@ -203,13 +238,13 @@ function j(e, t) {
|
|
|
203
238
|
...n
|
|
204
239
|
};
|
|
205
240
|
}
|
|
206
|
-
function
|
|
241
|
+
function te(e) {
|
|
207
242
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
208
243
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
209
244
|
}
|
|
210
245
|
//#endregion
|
|
211
246
|
//#region ../../node_modules/.bun/@radix-ui+react-primitive@2.1.3+02ec1e885677ecfa/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
212
|
-
var
|
|
247
|
+
var F = [
|
|
213
248
|
"a",
|
|
214
249
|
"button",
|
|
215
250
|
"div",
|
|
@@ -228,30 +263,30 @@ var N = [
|
|
|
228
263
|
"svg",
|
|
229
264
|
"ul"
|
|
230
265
|
].reduce((e, t) => {
|
|
231
|
-
let n = /* @__PURE__ */
|
|
266
|
+
let n = /* @__PURE__ */ A(`Primitive.${t}`), r = i.forwardRef((e, r) => {
|
|
232
267
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
233
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
268
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(o, {
|
|
234
269
|
...a,
|
|
235
270
|
ref: r
|
|
236
271
|
});
|
|
237
272
|
});
|
|
238
|
-
return
|
|
273
|
+
return r.displayName = `Primitive.${t}`, {
|
|
239
274
|
...e,
|
|
240
|
-
[t]:
|
|
275
|
+
[t]: r
|
|
241
276
|
};
|
|
242
277
|
}, {});
|
|
243
|
-
function
|
|
244
|
-
e &&
|
|
278
|
+
function I(e, t) {
|
|
279
|
+
e && m.flushSync(() => e.dispatchEvent(t));
|
|
245
280
|
}
|
|
246
281
|
//#endregion
|
|
247
282
|
//#region ../../node_modules/.bun/@radix-ui+react-collection@1.1.7+02ec1e885677ecfa/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
248
|
-
function
|
|
249
|
-
let t = e + "CollectionProvider", [n, r] =
|
|
283
|
+
function L(e) {
|
|
284
|
+
let t = e + "CollectionProvider", [n, r] = C(t), [i, o] = n(t, {
|
|
250
285
|
collectionRef: { current: null },
|
|
251
286
|
itemMap: /* @__PURE__ */ new Map()
|
|
252
287
|
}), s = (e) => {
|
|
253
|
-
let { scope: t, children: n } = e, r =
|
|
254
|
-
return /* @__PURE__ */
|
|
288
|
+
let { scope: t, children: n } = e, r = a.useRef(null), o = a.useRef(/* @__PURE__ */ new Map()).current;
|
|
289
|
+
return /* @__PURE__ */ d(i, {
|
|
255
290
|
scope: t,
|
|
256
291
|
itemMap: o,
|
|
257
292
|
collectionRef: r,
|
|
@@ -259,29 +294,29 @@ function ee(e) {
|
|
|
259
294
|
});
|
|
260
295
|
};
|
|
261
296
|
s.displayName = t;
|
|
262
|
-
let c = e + "CollectionSlot", l = /* @__PURE__ */
|
|
263
|
-
let { scope: n, children: r } = e, i =
|
|
264
|
-
return /* @__PURE__ */
|
|
297
|
+
let c = e + "CollectionSlot", l = /* @__PURE__ */ A(c), u = a.forwardRef((e, t) => {
|
|
298
|
+
let { scope: n, children: r } = e, i = b(t, o(c, n).collectionRef);
|
|
299
|
+
return /* @__PURE__ */ d(l, {
|
|
265
300
|
ref: i,
|
|
266
301
|
children: r
|
|
267
302
|
});
|
|
268
303
|
});
|
|
269
|
-
|
|
270
|
-
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */
|
|
271
|
-
let { scope: n, children: r, ...
|
|
272
|
-
return
|
|
304
|
+
u.displayName = c;
|
|
305
|
+
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */ A(f), h = a.forwardRef((e, t) => {
|
|
306
|
+
let { scope: n, children: r, ...i } = e, s = a.useRef(null), c = b(t, s), l = o(f, n);
|
|
307
|
+
return a.useEffect(() => (l.itemMap.set(s, {
|
|
273
308
|
ref: s,
|
|
274
|
-
...
|
|
275
|
-
}), () => void l.itemMap.delete(s))), /* @__PURE__ */
|
|
309
|
+
...i
|
|
310
|
+
}), () => void l.itemMap.delete(s))), /* @__PURE__ */ d(m, {
|
|
276
311
|
[p]: "",
|
|
277
312
|
ref: c,
|
|
278
313
|
children: r
|
|
279
314
|
});
|
|
280
315
|
});
|
|
281
316
|
h.displayName = f;
|
|
282
|
-
function
|
|
317
|
+
function g(t) {
|
|
283
318
|
let n = o(e + "CollectionConsumer", t);
|
|
284
|
-
return
|
|
319
|
+
return a.useCallback(() => {
|
|
285
320
|
let e = n.collectionRef.current;
|
|
286
321
|
if (!e) return [];
|
|
287
322
|
let t = Array.from(e.querySelectorAll(`[${p}]`));
|
|
@@ -291,33 +326,33 @@ function ee(e) {
|
|
|
291
326
|
return [
|
|
292
327
|
{
|
|
293
328
|
Provider: s,
|
|
294
|
-
Slot:
|
|
329
|
+
Slot: u,
|
|
295
330
|
ItemSlot: h
|
|
296
331
|
},
|
|
297
|
-
|
|
332
|
+
g,
|
|
298
333
|
r
|
|
299
334
|
];
|
|
300
335
|
}
|
|
301
336
|
//#endregion
|
|
302
337
|
//#region ../../node_modules/.bun/@radix-ui+react-direction@1.1.1+ec078f7ced36dfee/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
303
|
-
var
|
|
304
|
-
function
|
|
305
|
-
let t =
|
|
338
|
+
var ne = i.createContext(void 0);
|
|
339
|
+
function re(e) {
|
|
340
|
+
let t = i.useContext(ne);
|
|
306
341
|
return e || t || "ltr";
|
|
307
342
|
}
|
|
308
343
|
//#endregion
|
|
309
344
|
//#region ../../node_modules/.bun/@radix-ui+react-use-callback-ref@1.1.1+ec078f7ced36dfee/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
310
|
-
function
|
|
311
|
-
let t =
|
|
312
|
-
return
|
|
345
|
+
function R(e) {
|
|
346
|
+
let t = i.useRef(e);
|
|
347
|
+
return i.useEffect(() => {
|
|
313
348
|
t.current = e;
|
|
314
|
-
}),
|
|
349
|
+
}), i.useMemo(() => (...e) => t.current?.(...e), []);
|
|
315
350
|
}
|
|
316
351
|
//#endregion
|
|
317
352
|
//#region ../../node_modules/.bun/@radix-ui+react-use-escape-keydown@1.1.1+ec078f7ced36dfee/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
318
|
-
function
|
|
319
|
-
let n =
|
|
320
|
-
|
|
353
|
+
function ie(e, t = globalThis?.document) {
|
|
354
|
+
let n = R(e);
|
|
355
|
+
i.useEffect(() => {
|
|
321
356
|
let e = (e) => {
|
|
322
357
|
e.key === "Escape" && n(e);
|
|
323
358
|
};
|
|
@@ -326,125 +361,125 @@ function re(e, t = globalThis?.document) {
|
|
|
326
361
|
}
|
|
327
362
|
//#endregion
|
|
328
363
|
//#region ../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.11+02ec1e885677ecfa/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
329
|
-
var
|
|
364
|
+
var ae = "DismissableLayer", oe = "dismissableLayer.update", se = "dismissableLayer.pointerDownOutside", ce = "dismissableLayer.focusOutside", le, ue = i.createContext({
|
|
330
365
|
layers: /* @__PURE__ */ new Set(),
|
|
331
366
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
332
367
|
branches: /* @__PURE__ */ new Set()
|
|
333
|
-
}),
|
|
334
|
-
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown:
|
|
335
|
-
let t = e.target, n = [...
|
|
368
|
+
}), de = i.forwardRef((e, t) => {
|
|
369
|
+
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = e, u = i.useContext(ue), [f, p] = i.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = i.useState({}), g = b(t, (e) => p(e)), _ = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = _.indexOf(v), S = f ? _.indexOf(f) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= y, T = me((e) => {
|
|
370
|
+
let t = e.target, n = [...u.branches].some((e) => e.contains(t));
|
|
336
371
|
w && !n && (a?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
337
|
-
}, m), E =
|
|
372
|
+
}, m), E = he((e) => {
|
|
338
373
|
let t = e.target;
|
|
339
|
-
[...
|
|
374
|
+
[...u.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
340
375
|
}, m);
|
|
341
|
-
return
|
|
342
|
-
S ===
|
|
343
|
-
}, m),
|
|
344
|
-
if (f) return n && (
|
|
345
|
-
n &&
|
|
376
|
+
return ie((e) => {
|
|
377
|
+
S === u.layers.size - 1 && (r?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
378
|
+
}, m), i.useEffect(() => {
|
|
379
|
+
if (f) return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (le = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), ge(), () => {
|
|
380
|
+
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = le);
|
|
346
381
|
};
|
|
347
382
|
}, [
|
|
348
383
|
f,
|
|
349
384
|
m,
|
|
350
385
|
n,
|
|
351
|
-
|
|
352
|
-
]),
|
|
353
|
-
f && (
|
|
354
|
-
}, [f,
|
|
386
|
+
u
|
|
387
|
+
]), i.useEffect(() => () => {
|
|
388
|
+
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), ge());
|
|
389
|
+
}, [f, u]), i.useEffect(() => {
|
|
355
390
|
let e = () => h({});
|
|
356
|
-
return document.addEventListener(
|
|
357
|
-
}, []), /* @__PURE__ */
|
|
391
|
+
return document.addEventListener(oe, e), () => document.removeEventListener(oe, e);
|
|
392
|
+
}, []), /* @__PURE__ */ d(F.div, {
|
|
358
393
|
...l,
|
|
359
|
-
ref:
|
|
394
|
+
ref: g,
|
|
360
395
|
style: {
|
|
361
396
|
pointerEvents: C ? w ? "auto" : "none" : void 0,
|
|
362
397
|
...e.style
|
|
363
398
|
},
|
|
364
|
-
onFocusCapture:
|
|
365
|
-
onBlurCapture:
|
|
366
|
-
onPointerDownCapture:
|
|
399
|
+
onFocusCapture: x(e.onFocusCapture, E.onFocusCapture),
|
|
400
|
+
onBlurCapture: x(e.onBlurCapture, E.onBlurCapture),
|
|
401
|
+
onPointerDownCapture: x(e.onPointerDownCapture, T.onPointerDownCapture)
|
|
367
402
|
});
|
|
368
403
|
});
|
|
369
|
-
|
|
370
|
-
var
|
|
371
|
-
let n =
|
|
372
|
-
return
|
|
373
|
-
let e =
|
|
404
|
+
de.displayName = ae;
|
|
405
|
+
var fe = "DismissableLayerBranch", pe = i.forwardRef((e, t) => {
|
|
406
|
+
let n = i.useContext(ue), r = i.useRef(null), a = b(t, r);
|
|
407
|
+
return i.useEffect(() => {
|
|
408
|
+
let e = r.current;
|
|
374
409
|
if (e) return n.branches.add(e), () => {
|
|
375
410
|
n.branches.delete(e);
|
|
376
411
|
};
|
|
377
|
-
}, [n.branches]), /* @__PURE__ */
|
|
412
|
+
}, [n.branches]), /* @__PURE__ */ d(F.div, {
|
|
378
413
|
...e,
|
|
379
414
|
ref: a
|
|
380
415
|
});
|
|
381
416
|
});
|
|
382
|
-
|
|
383
|
-
function
|
|
384
|
-
let n =
|
|
385
|
-
return
|
|
417
|
+
pe.displayName = fe;
|
|
418
|
+
function me(e, t = globalThis?.document) {
|
|
419
|
+
let n = R(e), r = i.useRef(!1), a = i.useRef(() => {});
|
|
420
|
+
return i.useEffect(() => {
|
|
386
421
|
let e = (e) => {
|
|
387
|
-
if (e.target && !
|
|
422
|
+
if (e.target && !r.current) {
|
|
388
423
|
let r = function() {
|
|
389
|
-
|
|
424
|
+
_e(se, n, i, { discrete: !0 });
|
|
390
425
|
}, i = { originalEvent: e };
|
|
391
426
|
e.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = r, t.addEventListener("click", a.current, { once: !0 })) : r();
|
|
392
427
|
} else t.removeEventListener("click", a.current);
|
|
393
|
-
|
|
394
|
-
},
|
|
428
|
+
r.current = !1;
|
|
429
|
+
}, i = window.setTimeout(() => {
|
|
395
430
|
t.addEventListener("pointerdown", e);
|
|
396
431
|
}, 0);
|
|
397
432
|
return () => {
|
|
398
|
-
window.clearTimeout(
|
|
433
|
+
window.clearTimeout(i), t.removeEventListener("pointerdown", e), t.removeEventListener("click", a.current);
|
|
399
434
|
};
|
|
400
|
-
}, [t, n]), { onPointerDownCapture: () =>
|
|
435
|
+
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
401
436
|
}
|
|
402
|
-
function
|
|
403
|
-
let n =
|
|
404
|
-
return
|
|
437
|
+
function he(e, t = globalThis?.document) {
|
|
438
|
+
let n = R(e), r = i.useRef(!1);
|
|
439
|
+
return i.useEffect(() => {
|
|
405
440
|
let e = (e) => {
|
|
406
|
-
e.target && !
|
|
441
|
+
e.target && !r.current && _e(ce, n, { originalEvent: e }, { discrete: !1 });
|
|
407
442
|
};
|
|
408
443
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
409
444
|
}, [t, n]), {
|
|
410
|
-
onFocusCapture: () =>
|
|
411
|
-
onBlurCapture: () =>
|
|
445
|
+
onFocusCapture: () => r.current = !0,
|
|
446
|
+
onBlurCapture: () => r.current = !1
|
|
412
447
|
};
|
|
413
448
|
}
|
|
414
|
-
function
|
|
415
|
-
let e = new CustomEvent(
|
|
449
|
+
function ge() {
|
|
450
|
+
let e = new CustomEvent(oe);
|
|
416
451
|
document.dispatchEvent(e);
|
|
417
452
|
}
|
|
418
|
-
function
|
|
453
|
+
function _e(e, t, n, { discrete: r }) {
|
|
419
454
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
420
455
|
bubbles: !1,
|
|
421
456
|
cancelable: !0,
|
|
422
457
|
detail: n
|
|
423
458
|
});
|
|
424
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
459
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? I(i, a) : i.dispatchEvent(a);
|
|
425
460
|
}
|
|
426
461
|
//#endregion
|
|
427
462
|
//#region ../../node_modules/.bun/@radix-ui+react-focus-guards@1.1.3+ec078f7ced36dfee/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
428
|
-
var
|
|
429
|
-
function
|
|
430
|
-
|
|
463
|
+
var ve = 0;
|
|
464
|
+
function ye() {
|
|
465
|
+
i.useEffect(() => {
|
|
431
466
|
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
432
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
433
|
-
|
|
467
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? be()), document.body.insertAdjacentElement("beforeend", e[1] ?? be()), ve++, () => {
|
|
468
|
+
ve === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), ve--;
|
|
434
469
|
};
|
|
435
470
|
}, []);
|
|
436
471
|
}
|
|
437
|
-
function
|
|
472
|
+
function be() {
|
|
438
473
|
let e = document.createElement("span");
|
|
439
474
|
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;
|
|
440
475
|
}
|
|
441
476
|
//#endregion
|
|
442
477
|
//#region ../../node_modules/.bun/@radix-ui+react-focus-scope@1.1.7+02ec1e885677ecfa/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
443
|
-
var
|
|
478
|
+
var xe = "focusScope.autoFocusOnMount", Se = "focusScope.autoFocusOnUnmount", Ce = {
|
|
444
479
|
bubbles: !1,
|
|
445
480
|
cancelable: !0
|
|
446
|
-
},
|
|
447
|
-
let { loop: n = !1, trapped:
|
|
481
|
+
}, we = "FocusScope", Te = i.forwardRef((e, t) => {
|
|
482
|
+
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = e, [c, l] = i.useState(null), u = R(a), f = R(o), p = i.useRef(null), m = b(t, (e) => l(e)), h = i.useRef({
|
|
448
483
|
paused: !1,
|
|
449
484
|
pause() {
|
|
450
485
|
this.paused = !0;
|
|
@@ -453,18 +488,18 @@ var be = "focusScope.autoFocusOnMount", xe = "focusScope.autoFocusOnUnmount", Se
|
|
|
453
488
|
this.paused = !1;
|
|
454
489
|
}
|
|
455
490
|
}).current;
|
|
456
|
-
|
|
457
|
-
if (
|
|
491
|
+
i.useEffect(() => {
|
|
492
|
+
if (r) {
|
|
458
493
|
let e = function(e) {
|
|
459
494
|
if (h.paused || !c) return;
|
|
460
495
|
let t = e.target;
|
|
461
|
-
c.contains(t) ? p.current = t :
|
|
496
|
+
c.contains(t) ? p.current = t : z(p.current, { select: !0 });
|
|
462
497
|
}, t = function(e) {
|
|
463
498
|
if (h.paused || !c) return;
|
|
464
499
|
let t = e.relatedTarget;
|
|
465
|
-
t !== null && (c.contains(t) ||
|
|
500
|
+
t !== null && (c.contains(t) || z(p.current, { select: !0 }));
|
|
466
501
|
}, n = function(e) {
|
|
467
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
502
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && z(c);
|
|
468
503
|
};
|
|
469
504
|
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
470
505
|
let r = new MutationObserver(n);
|
|
@@ -476,59 +511,59 @@ var be = "focusScope.autoFocusOnMount", xe = "focusScope.autoFocusOnUnmount", Se
|
|
|
476
511
|
};
|
|
477
512
|
}
|
|
478
513
|
}, [
|
|
479
|
-
|
|
514
|
+
r,
|
|
480
515
|
c,
|
|
481
516
|
h.paused
|
|
482
|
-
]),
|
|
517
|
+
]), i.useEffect(() => {
|
|
483
518
|
if (c) {
|
|
484
|
-
|
|
519
|
+
Me.add(h);
|
|
485
520
|
let e = document.activeElement;
|
|
486
521
|
if (!c.contains(e)) {
|
|
487
|
-
let t = new CustomEvent(
|
|
488
|
-
c.addEventListener(
|
|
522
|
+
let t = new CustomEvent(xe, Ce);
|
|
523
|
+
c.addEventListener(xe, u), c.dispatchEvent(t), t.defaultPrevented || (Ee(Fe(Oe(c)), { select: !0 }), document.activeElement === e && z(c));
|
|
489
524
|
}
|
|
490
525
|
return () => {
|
|
491
|
-
c.removeEventListener(
|
|
492
|
-
let t = new CustomEvent(
|
|
493
|
-
c.addEventListener(
|
|
526
|
+
c.removeEventListener(xe, u), setTimeout(() => {
|
|
527
|
+
let t = new CustomEvent(Se, Ce);
|
|
528
|
+
c.addEventListener(Se, f), c.dispatchEvent(t), t.defaultPrevented || z(e ?? document.body, { select: !0 }), c.removeEventListener(Se, f), Me.remove(h);
|
|
494
529
|
}, 0);
|
|
495
530
|
};
|
|
496
531
|
}
|
|
497
532
|
}, [
|
|
498
533
|
c,
|
|
499
|
-
|
|
534
|
+
u,
|
|
500
535
|
f,
|
|
501
536
|
h
|
|
502
537
|
]);
|
|
503
|
-
let
|
|
504
|
-
if (!n && !
|
|
505
|
-
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey,
|
|
506
|
-
if (t &&
|
|
507
|
-
let t = e.currentTarget, [
|
|
508
|
-
|
|
538
|
+
let g = i.useCallback((e) => {
|
|
539
|
+
if (!n && !r || h.paused) return;
|
|
540
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, i = document.activeElement;
|
|
541
|
+
if (t && i) {
|
|
542
|
+
let t = e.currentTarget, [r, a] = De(t);
|
|
543
|
+
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n && z(r, { select: !0 })) : e.shiftKey && i === r && (e.preventDefault(), n && z(a, { select: !0 })) : i === t && e.preventDefault();
|
|
509
544
|
}
|
|
510
545
|
}, [
|
|
511
546
|
n,
|
|
512
|
-
|
|
547
|
+
r,
|
|
513
548
|
h.paused
|
|
514
549
|
]);
|
|
515
|
-
return /* @__PURE__ */
|
|
550
|
+
return /* @__PURE__ */ d(F.div, {
|
|
516
551
|
tabIndex: -1,
|
|
517
552
|
...s,
|
|
518
553
|
ref: m,
|
|
519
|
-
onKeyDown:
|
|
554
|
+
onKeyDown: g
|
|
520
555
|
});
|
|
521
556
|
});
|
|
522
|
-
|
|
523
|
-
function
|
|
557
|
+
Te.displayName = we;
|
|
558
|
+
function Ee(e, { select: t = !1 } = {}) {
|
|
524
559
|
let n = document.activeElement;
|
|
525
|
-
for (let r of e) if (
|
|
526
|
-
}
|
|
527
|
-
function Ee(e) {
|
|
528
|
-
let t = De(e);
|
|
529
|
-
return [Oe(t, e), Oe(t.reverse(), e)];
|
|
560
|
+
for (let r of e) if (z(r, { select: t }), document.activeElement !== n) return;
|
|
530
561
|
}
|
|
531
562
|
function De(e) {
|
|
563
|
+
let t = Oe(e);
|
|
564
|
+
return [ke(t, e), ke(t.reverse(), e)];
|
|
565
|
+
}
|
|
566
|
+
function Oe(e) {
|
|
532
567
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
533
568
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
534
569
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -536,10 +571,10 @@ function De(e) {
|
|
|
536
571
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
537
572
|
return t;
|
|
538
573
|
}
|
|
539
|
-
function
|
|
540
|
-
for (let n of e) if (!
|
|
574
|
+
function ke(e, t) {
|
|
575
|
+
for (let n of e) if (!Ae(n, { upTo: t })) return n;
|
|
541
576
|
}
|
|
542
|
-
function
|
|
577
|
+
function Ae(e, { upTo: t }) {
|
|
543
578
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
544
579
|
for (; e;) {
|
|
545
580
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -548,122 +583,122 @@ function ke(e, { upTo: t }) {
|
|
|
548
583
|
}
|
|
549
584
|
return !1;
|
|
550
585
|
}
|
|
551
|
-
function
|
|
586
|
+
function je(e) {
|
|
552
587
|
return e instanceof HTMLInputElement && "select" in e;
|
|
553
588
|
}
|
|
554
|
-
function
|
|
589
|
+
function z(e, { select: t = !1 } = {}) {
|
|
555
590
|
if (e && e.focus) {
|
|
556
591
|
let n = document.activeElement;
|
|
557
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
592
|
+
e.focus({ preventScroll: !0 }), e !== n && je(e) && t && e.select();
|
|
558
593
|
}
|
|
559
594
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
595
|
+
var Me = Ne();
|
|
596
|
+
function Ne() {
|
|
562
597
|
let e = [];
|
|
563
598
|
return {
|
|
564
599
|
add(t) {
|
|
565
600
|
let n = e[0];
|
|
566
|
-
t !== n && n?.pause(), e =
|
|
601
|
+
t !== n && n?.pause(), e = Pe(e, t), e.unshift(t);
|
|
567
602
|
},
|
|
568
603
|
remove(t) {
|
|
569
|
-
e =
|
|
604
|
+
e = Pe(e, t), e[0]?.resume();
|
|
570
605
|
}
|
|
571
606
|
};
|
|
572
607
|
}
|
|
573
|
-
function
|
|
608
|
+
function Pe(e, t) {
|
|
574
609
|
let n = [...e], r = n.indexOf(t);
|
|
575
610
|
return r !== -1 && n.splice(r, 1), n;
|
|
576
611
|
}
|
|
577
|
-
function
|
|
612
|
+
function Fe(e) {
|
|
578
613
|
return e.filter((e) => e.tagName !== "A");
|
|
579
614
|
}
|
|
580
615
|
//#endregion
|
|
581
616
|
//#region ../../node_modules/.bun/@radix-ui+react-id@1.1.1+ec078f7ced36dfee/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
582
|
-
var
|
|
583
|
-
function
|
|
584
|
-
let [t, n] =
|
|
585
|
-
return
|
|
586
|
-
e || n((e) => e ?? String(
|
|
617
|
+
var Ie = i.useId || (() => void 0), Le = 0;
|
|
618
|
+
function Re(e) {
|
|
619
|
+
let [t, n] = i.useState(Ie());
|
|
620
|
+
return T(() => {
|
|
621
|
+
e || n((e) => e ?? String(Le++));
|
|
587
622
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
588
623
|
}
|
|
589
624
|
//#endregion
|
|
590
625
|
//#region ../../node_modules/.bun/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
591
|
-
var
|
|
626
|
+
var ze = [
|
|
592
627
|
"top",
|
|
593
628
|
"right",
|
|
594
629
|
"bottom",
|
|
595
630
|
"left"
|
|
596
|
-
],
|
|
631
|
+
], Be = Math.min, B = Math.max, Ve = Math.round, He = Math.floor, V = (e) => ({
|
|
597
632
|
x: e,
|
|
598
633
|
y: e
|
|
599
|
-
}),
|
|
634
|
+
}), Ue = {
|
|
600
635
|
left: "right",
|
|
601
636
|
right: "left",
|
|
602
637
|
bottom: "top",
|
|
603
638
|
top: "bottom"
|
|
604
|
-
},
|
|
639
|
+
}, We = {
|
|
605
640
|
start: "end",
|
|
606
641
|
end: "start"
|
|
607
642
|
};
|
|
608
|
-
function
|
|
609
|
-
return
|
|
643
|
+
function Ge(e, t, n) {
|
|
644
|
+
return B(e, Be(t, n));
|
|
610
645
|
}
|
|
611
|
-
function
|
|
646
|
+
function H(e, t) {
|
|
612
647
|
return typeof e == "function" ? e(t) : e;
|
|
613
648
|
}
|
|
614
|
-
function
|
|
649
|
+
function U(e) {
|
|
615
650
|
return e.split("-")[0];
|
|
616
651
|
}
|
|
617
|
-
function
|
|
652
|
+
function Ke(e) {
|
|
618
653
|
return e.split("-")[1];
|
|
619
654
|
}
|
|
620
|
-
function
|
|
655
|
+
function qe(e) {
|
|
621
656
|
return e === "x" ? "y" : "x";
|
|
622
657
|
}
|
|
623
|
-
function
|
|
658
|
+
function Je(e) {
|
|
624
659
|
return e === "y" ? "height" : "width";
|
|
625
660
|
}
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
return
|
|
661
|
+
var Ye = /*#__PURE__*/ new Set(["top", "bottom"]);
|
|
662
|
+
function W(e) {
|
|
663
|
+
return Ye.has(U(e)) ? "y" : "x";
|
|
629
664
|
}
|
|
630
|
-
function
|
|
631
|
-
return
|
|
665
|
+
function Xe(e) {
|
|
666
|
+
return qe(W(e));
|
|
632
667
|
}
|
|
633
|
-
function
|
|
668
|
+
function Ze(e, t, n) {
|
|
634
669
|
n === void 0 && (n = !1);
|
|
635
|
-
let r =
|
|
636
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
670
|
+
let r = Ke(e), i = Xe(e), a = Je(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
671
|
+
return t.reference[a] > t.floating[a] && (o = ot(o)), [o, ot(o)];
|
|
637
672
|
}
|
|
638
|
-
function
|
|
639
|
-
let t =
|
|
673
|
+
function Qe(e) {
|
|
674
|
+
let t = ot(e);
|
|
640
675
|
return [
|
|
641
|
-
|
|
676
|
+
$e(e),
|
|
642
677
|
t,
|
|
643
|
-
|
|
678
|
+
$e(t)
|
|
644
679
|
];
|
|
645
680
|
}
|
|
646
|
-
function
|
|
647
|
-
return e.replace(/start|end/g, (e) =>
|
|
681
|
+
function $e(e) {
|
|
682
|
+
return e.replace(/start|end/g, (e) => We[e]);
|
|
648
683
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
684
|
+
var et = ["left", "right"], tt = ["right", "left"], nt = ["top", "bottom"], rt = ["bottom", "top"];
|
|
685
|
+
function it(e, t, n) {
|
|
651
686
|
switch (e) {
|
|
652
687
|
case "top":
|
|
653
|
-
case "bottom": return n ? t ?
|
|
688
|
+
case "bottom": return n ? t ? tt : et : t ? et : tt;
|
|
654
689
|
case "left":
|
|
655
|
-
case "right": return t ?
|
|
690
|
+
case "right": return t ? nt : rt;
|
|
656
691
|
default: return [];
|
|
657
692
|
}
|
|
658
693
|
}
|
|
659
|
-
function
|
|
660
|
-
let i =
|
|
661
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
694
|
+
function at(e, t, n, r) {
|
|
695
|
+
let i = Ke(e), a = it(U(e), n === "start", r);
|
|
696
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map($e)))), a;
|
|
662
697
|
}
|
|
663
|
-
function
|
|
664
|
-
return e.replace(/left|right|bottom|top/g, (e) =>
|
|
698
|
+
function ot(e) {
|
|
699
|
+
return e.replace(/left|right|bottom|top/g, (e) => Ue[e]);
|
|
665
700
|
}
|
|
666
|
-
function
|
|
701
|
+
function st(e) {
|
|
667
702
|
return {
|
|
668
703
|
top: 0,
|
|
669
704
|
right: 0,
|
|
@@ -672,15 +707,15 @@ function at(e) {
|
|
|
672
707
|
...e
|
|
673
708
|
};
|
|
674
709
|
}
|
|
675
|
-
function
|
|
710
|
+
function ct(e) {
|
|
676
711
|
return typeof e == "number" ? {
|
|
677
712
|
top: e,
|
|
678
713
|
right: e,
|
|
679
714
|
bottom: e,
|
|
680
715
|
left: e
|
|
681
|
-
} :
|
|
716
|
+
} : st(e);
|
|
682
717
|
}
|
|
683
|
-
function
|
|
718
|
+
function lt(e) {
|
|
684
719
|
let { x: t, y: n, width: r, height: i } = e;
|
|
685
720
|
return {
|
|
686
721
|
width: r,
|
|
@@ -695,8 +730,8 @@ function st(e) {
|
|
|
695
730
|
}
|
|
696
731
|
//#endregion
|
|
697
732
|
//#region ../../node_modules/.bun/@floating-ui+core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
698
|
-
function
|
|
699
|
-
let { reference: r, floating: i } = e, a =
|
|
733
|
+
function ut(e, t, n) {
|
|
734
|
+
let { reference: r, floating: i } = e, a = W(t), o = Xe(t), s = Je(o), c = U(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
700
735
|
switch (c) {
|
|
701
736
|
case "top":
|
|
702
737
|
p = {
|
|
@@ -727,7 +762,7 @@ function ct(e, t, n) {
|
|
|
727
762
|
y: r.y
|
|
728
763
|
};
|
|
729
764
|
}
|
|
730
|
-
switch (
|
|
765
|
+
switch (Ke(t)) {
|
|
731
766
|
case "start":
|
|
732
767
|
p[o] -= f * (n && l ? -1 : 1);
|
|
733
768
|
break;
|
|
@@ -735,9 +770,9 @@ function ct(e, t, n) {
|
|
|
735
770
|
}
|
|
736
771
|
return p;
|
|
737
772
|
}
|
|
738
|
-
async function
|
|
773
|
+
async function dt(e, t) {
|
|
739
774
|
t === void 0 && (t = {});
|
|
740
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
775
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = H(t, e), p = ct(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = lt(await i.getClippingRect({
|
|
741
776
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
742
777
|
boundary: c,
|
|
743
778
|
rootBoundary: l,
|
|
@@ -750,7 +785,7 @@ async function lt(e, t) {
|
|
|
750
785
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
751
786
|
x: 1,
|
|
752
787
|
y: 1
|
|
753
|
-
}, y =
|
|
788
|
+
}, y = lt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
754
789
|
elements: o,
|
|
755
790
|
rect: g,
|
|
756
791
|
offsetParent: _,
|
|
@@ -763,12 +798,12 @@ async function lt(e, t) {
|
|
|
763
798
|
right: (y.right - h.right + p.right) / v.x
|
|
764
799
|
};
|
|
765
800
|
}
|
|
766
|
-
var
|
|
801
|
+
var ft = async (e, t, n) => {
|
|
767
802
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = a.filter(Boolean), c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
768
803
|
reference: e,
|
|
769
804
|
floating: t,
|
|
770
805
|
strategy: i
|
|
771
|
-
}), { x: u, y: d } =
|
|
806
|
+
}), { x: u, y: d } = ut(l, r, c), f = r, p = {}, m = 0;
|
|
772
807
|
for (let n = 0; n < s.length; n++) {
|
|
773
808
|
let { name: a, fn: h } = s[n], { x: g, y: _, data: v, reset: y } = await h({
|
|
774
809
|
x: u,
|
|
@@ -780,7 +815,7 @@ var ut = async (e, t, n) => {
|
|
|
780
815
|
rects: l,
|
|
781
816
|
platform: {
|
|
782
817
|
...o,
|
|
783
|
-
detectOverflow: o.detectOverflow ??
|
|
818
|
+
detectOverflow: o.detectOverflow ?? dt
|
|
784
819
|
},
|
|
785
820
|
elements: {
|
|
786
821
|
reference: e,
|
|
@@ -797,7 +832,7 @@ var ut = async (e, t, n) => {
|
|
|
797
832
|
reference: e,
|
|
798
833
|
floating: t,
|
|
799
834
|
strategy: i
|
|
800
|
-
}) : y.rects), {x: u, y: d} =
|
|
835
|
+
}) : y.rects), {x: u, y: d} = ut(l, f, c)), n = -1);
|
|
801
836
|
}
|
|
802
837
|
return {
|
|
803
838
|
x: u,
|
|
@@ -806,18 +841,18 @@ var ut = async (e, t, n) => {
|
|
|
806
841
|
strategy: i,
|
|
807
842
|
middlewareData: p
|
|
808
843
|
};
|
|
809
|
-
},
|
|
844
|
+
}, pt = (e) => ({
|
|
810
845
|
name: "arrow",
|
|
811
846
|
options: e,
|
|
812
847
|
async fn(t) {
|
|
813
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
848
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = H(e, t) || {};
|
|
814
849
|
if (l == null) return {};
|
|
815
|
-
let d =
|
|
850
|
+
let d = ct(u), f = {
|
|
816
851
|
x: n,
|
|
817
852
|
y: r
|
|
818
|
-
}, p =
|
|
853
|
+
}, p = Xe(i), m = Je(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
819
854
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
820
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E =
|
|
855
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Be(d[_], T), D = Be(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = Ge(O, A, k), M = !c.arrow && Ke(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
|
|
821
856
|
return {
|
|
822
857
|
[p]: f[p] + N,
|
|
823
858
|
data: {
|
|
@@ -828,19 +863,19 @@ var ut = async (e, t, n) => {
|
|
|
828
863
|
reset: M
|
|
829
864
|
};
|
|
830
865
|
}
|
|
831
|
-
}),
|
|
866
|
+
}), mt = function(e) {
|
|
832
867
|
return e === void 0 && (e = {}), {
|
|
833
868
|
name: "flip",
|
|
834
869
|
options: e,
|
|
835
870
|
async fn(t) {
|
|
836
871
|
var n;
|
|
837
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
872
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = H(e, t);
|
|
838
873
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
839
|
-
let g =
|
|
840
|
-
!d && x && b.push(...
|
|
874
|
+
let g = U(r), _ = W(o), v = U(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ot(o)] : Qe(o)), x = p !== "none";
|
|
875
|
+
!d && x && b.push(...at(o, m, p, y));
|
|
841
876
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
842
877
|
if (l && w.push(C[g]), u) {
|
|
843
|
-
let e =
|
|
878
|
+
let e = Ze(r, a, y);
|
|
844
879
|
w.push(C[e[0]], C[e[1]]);
|
|
845
880
|
}
|
|
846
881
|
if (T = [...T, {
|
|
@@ -848,7 +883,7 @@ var ut = async (e, t, n) => {
|
|
|
848
883
|
overflows: w
|
|
849
884
|
}], !w.every((e) => e <= 0)) {
|
|
850
885
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
851
|
-
if (t && (u !== "alignment" || _ ===
|
|
886
|
+
if (t && (u !== "alignment" || _ === W(t) || T.every((e) => W(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
852
887
|
data: {
|
|
853
888
|
index: e,
|
|
854
889
|
overflows: T
|
|
@@ -860,7 +895,7 @@ var ut = async (e, t, n) => {
|
|
|
860
895
|
case "bestFit": {
|
|
861
896
|
let e = T.filter((e) => {
|
|
862
897
|
if (x) {
|
|
863
|
-
let t =
|
|
898
|
+
let t = W(e.placement);
|
|
864
899
|
return t === _ || t === "y";
|
|
865
900
|
}
|
|
866
901
|
return !0;
|
|
@@ -876,7 +911,7 @@ var ut = async (e, t, n) => {
|
|
|
876
911
|
}
|
|
877
912
|
};
|
|
878
913
|
};
|
|
879
|
-
function
|
|
914
|
+
function ht(e, t) {
|
|
880
915
|
return {
|
|
881
916
|
top: e.top - t.height,
|
|
882
917
|
right: e.right - t.width,
|
|
@@ -884,43 +919,43 @@ function pt(e, t) {
|
|
|
884
919
|
left: e.left - t.width
|
|
885
920
|
};
|
|
886
921
|
}
|
|
887
|
-
function
|
|
888
|
-
return
|
|
922
|
+
function gt(e) {
|
|
923
|
+
return ze.some((t) => e[t] >= 0);
|
|
889
924
|
}
|
|
890
|
-
var
|
|
925
|
+
var _t = function(e) {
|
|
891
926
|
return e === void 0 && (e = {}), {
|
|
892
927
|
name: "hide",
|
|
893
928
|
options: e,
|
|
894
929
|
async fn(t) {
|
|
895
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
930
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = H(e, t);
|
|
896
931
|
switch (i) {
|
|
897
932
|
case "referenceHidden": {
|
|
898
|
-
let e =
|
|
933
|
+
let e = ht(await r.detectOverflow(t, {
|
|
899
934
|
...a,
|
|
900
935
|
elementContext: "reference"
|
|
901
936
|
}), n.reference);
|
|
902
937
|
return { data: {
|
|
903
938
|
referenceHiddenOffsets: e,
|
|
904
|
-
referenceHidden:
|
|
939
|
+
referenceHidden: gt(e)
|
|
905
940
|
} };
|
|
906
941
|
}
|
|
907
942
|
case "escaped": {
|
|
908
|
-
let e =
|
|
943
|
+
let e = ht(await r.detectOverflow(t, {
|
|
909
944
|
...a,
|
|
910
945
|
altBoundary: !0
|
|
911
946
|
}), n.floating);
|
|
912
947
|
return { data: {
|
|
913
948
|
escapedOffsets: e,
|
|
914
|
-
escaped:
|
|
949
|
+
escaped: gt(e)
|
|
915
950
|
} };
|
|
916
951
|
}
|
|
917
952
|
default: return {};
|
|
918
953
|
}
|
|
919
954
|
}
|
|
920
955
|
};
|
|
921
|
-
},
|
|
922
|
-
async function
|
|
923
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
956
|
+
}, vt = /*#__PURE__*/ new Set(["left", "top"]);
|
|
957
|
+
async function yt(e, t) {
|
|
958
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = U(n), s = Ke(n), c = W(n) === "y", l = vt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = H(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
924
959
|
mainAxis: d,
|
|
925
960
|
crossAxis: 0,
|
|
926
961
|
alignmentAxis: null
|
|
@@ -937,13 +972,13 @@ async function _t(e, t) {
|
|
|
937
972
|
y: p * u
|
|
938
973
|
};
|
|
939
974
|
}
|
|
940
|
-
var
|
|
975
|
+
var bt = function(e) {
|
|
941
976
|
return e === void 0 && (e = 0), {
|
|
942
977
|
name: "offset",
|
|
943
978
|
options: e,
|
|
944
979
|
async fn(t) {
|
|
945
980
|
var n;
|
|
946
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
981
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await yt(t, e);
|
|
947
982
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
948
983
|
x: r + s.x,
|
|
949
984
|
y: i + s.y,
|
|
@@ -954,7 +989,7 @@ var vt = function(e) {
|
|
|
954
989
|
};
|
|
955
990
|
}
|
|
956
991
|
};
|
|
957
|
-
},
|
|
992
|
+
}, xt = function(e) {
|
|
958
993
|
return e === void 0 && (e = {}), {
|
|
959
994
|
name: "shift",
|
|
960
995
|
options: e,
|
|
@@ -965,17 +1000,17 @@ var vt = function(e) {
|
|
|
965
1000
|
x: t,
|
|
966
1001
|
y: n
|
|
967
1002
|
};
|
|
968
|
-
} }, ...l } =
|
|
1003
|
+
} }, ...l } = H(e, t), u = {
|
|
969
1004
|
x: n,
|
|
970
1005
|
y: r
|
|
971
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
1006
|
+
}, d = await a.detectOverflow(t, l), f = W(U(i)), p = qe(f), m = u[p], h = u[f];
|
|
972
1007
|
if (o) {
|
|
973
1008
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
974
|
-
m =
|
|
1009
|
+
m = Ge(n, m, r);
|
|
975
1010
|
}
|
|
976
1011
|
if (s) {
|
|
977
1012
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
978
|
-
h =
|
|
1013
|
+
h = Ge(n, h, r);
|
|
979
1014
|
}
|
|
980
1015
|
let g = c.fn({
|
|
981
1016
|
...t,
|
|
@@ -995,14 +1030,14 @@ var vt = function(e) {
|
|
|
995
1030
|
};
|
|
996
1031
|
}
|
|
997
1032
|
};
|
|
998
|
-
},
|
|
1033
|
+
}, St = function(e) {
|
|
999
1034
|
return e === void 0 && (e = {}), {
|
|
1000
1035
|
options: e,
|
|
1001
1036
|
fn(t) {
|
|
1002
|
-
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } =
|
|
1037
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = H(e, t), u = {
|
|
1003
1038
|
x: n,
|
|
1004
1039
|
y: r
|
|
1005
|
-
}, d =
|
|
1040
|
+
}, d = W(i), f = qe(d), p = u[f], m = u[d], h = H(s, t), g = typeof h == "number" ? {
|
|
1006
1041
|
mainAxis: h,
|
|
1007
1042
|
crossAxis: 0
|
|
1008
1043
|
} : {
|
|
@@ -1015,7 +1050,7 @@ var vt = function(e) {
|
|
|
1015
1050
|
p < t ? p = t : p > n && (p = n);
|
|
1016
1051
|
}
|
|
1017
1052
|
if (l) {
|
|
1018
|
-
let e = f === "y" ? "width" : "height", t =
|
|
1053
|
+
let e = f === "y" ? "width" : "height", t = vt.has(U(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
1019
1054
|
m < n ? m = n : m > r && (m = r);
|
|
1020
1055
|
}
|
|
1021
1056
|
return {
|
|
@@ -1024,18 +1059,18 @@ var vt = function(e) {
|
|
|
1024
1059
|
};
|
|
1025
1060
|
}
|
|
1026
1061
|
};
|
|
1027
|
-
},
|
|
1062
|
+
}, Ct = function(e) {
|
|
1028
1063
|
return e === void 0 && (e = {}), {
|
|
1029
1064
|
name: "size",
|
|
1030
1065
|
options: e,
|
|
1031
1066
|
async fn(t) {
|
|
1032
1067
|
var n, r;
|
|
1033
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
1068
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = H(e, t), u = await o.detectOverflow(t, l), d = U(i), f = Ke(i), p = W(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
1034
1069
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
1035
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
1070
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = Be(h - u[g], v), x = Be(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
1036
1071
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
1037
|
-
let e =
|
|
1038
|
-
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t :
|
|
1072
|
+
let e = B(u.left, 0), t = B(u.right, 0), n = B(u.top, 0), r = B(u.bottom, 0);
|
|
1073
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : B(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : B(u.top, u.bottom));
|
|
1039
1074
|
}
|
|
1040
1075
|
await c({
|
|
1041
1076
|
...t,
|
|
@@ -1049,47 +1084,47 @@ var vt = function(e) {
|
|
|
1049
1084
|
};
|
|
1050
1085
|
//#endregion
|
|
1051
1086
|
//#region ../../node_modules/.bun/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
1052
|
-
function
|
|
1087
|
+
function wt() {
|
|
1053
1088
|
return typeof window < "u";
|
|
1054
1089
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return
|
|
1090
|
+
function Tt(e) {
|
|
1091
|
+
return Et(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1057
1092
|
}
|
|
1058
|
-
function
|
|
1093
|
+
function G(e) {
|
|
1059
1094
|
var t;
|
|
1060
1095
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1061
1096
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return ((
|
|
1064
|
-
}
|
|
1065
|
-
function wt(e) {
|
|
1066
|
-
return St() ? e instanceof Node || e instanceof U(e).Node : !1;
|
|
1097
|
+
function K(e) {
|
|
1098
|
+
return ((Et(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
1067
1099
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return
|
|
1100
|
+
function Et(e) {
|
|
1101
|
+
return wt() ? e instanceof Node || e instanceof G(e).Node : !1;
|
|
1070
1102
|
}
|
|
1071
|
-
function
|
|
1072
|
-
return
|
|
1103
|
+
function q(e) {
|
|
1104
|
+
return wt() ? e instanceof Element || e instanceof G(e).Element : !1;
|
|
1073
1105
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return
|
|
1106
|
+
function J(e) {
|
|
1107
|
+
return wt() ? e instanceof HTMLElement || e instanceof G(e).HTMLElement : !1;
|
|
1076
1108
|
}
|
|
1077
|
-
var Et = /*#__PURE__*/ new Set(["inline", "contents"]);
|
|
1078
1109
|
function Dt(e) {
|
|
1079
|
-
|
|
1080
|
-
|
|
1110
|
+
return !wt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
1111
|
+
}
|
|
1112
|
+
var Ot = /*#__PURE__*/ new Set(["inline", "contents"]);
|
|
1113
|
+
function kt(e) {
|
|
1114
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = Y(e);
|
|
1115
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Ot.has(i);
|
|
1081
1116
|
}
|
|
1082
|
-
var
|
|
1117
|
+
var At = /*#__PURE__*/ new Set([
|
|
1083
1118
|
"table",
|
|
1084
1119
|
"td",
|
|
1085
1120
|
"th"
|
|
1086
1121
|
]);
|
|
1087
|
-
function kt(e) {
|
|
1088
|
-
return Ot.has(Ct(e));
|
|
1089
|
-
}
|
|
1090
|
-
var At = [":popover-open", ":modal"];
|
|
1091
1122
|
function jt(e) {
|
|
1092
|
-
return At.
|
|
1123
|
+
return At.has(Tt(e));
|
|
1124
|
+
}
|
|
1125
|
+
var Mt = [":popover-open", ":modal"];
|
|
1126
|
+
function Nt(e) {
|
|
1127
|
+
return Mt.some((t) => {
|
|
1093
1128
|
try {
|
|
1094
1129
|
return e.matches(t);
|
|
1095
1130
|
} catch {
|
|
@@ -1097,54 +1132,54 @@ function jt(e) {
|
|
|
1097
1132
|
}
|
|
1098
1133
|
});
|
|
1099
1134
|
}
|
|
1100
|
-
var
|
|
1135
|
+
var Pt = [
|
|
1101
1136
|
"transform",
|
|
1102
1137
|
"translate",
|
|
1103
1138
|
"scale",
|
|
1104
1139
|
"rotate",
|
|
1105
1140
|
"perspective"
|
|
1106
|
-
],
|
|
1141
|
+
], Ft = [
|
|
1107
1142
|
"transform",
|
|
1108
1143
|
"translate",
|
|
1109
1144
|
"scale",
|
|
1110
1145
|
"rotate",
|
|
1111
1146
|
"perspective",
|
|
1112
1147
|
"filter"
|
|
1113
|
-
],
|
|
1148
|
+
], It = [
|
|
1114
1149
|
"paint",
|
|
1115
1150
|
"layout",
|
|
1116
1151
|
"strict",
|
|
1117
1152
|
"content"
|
|
1118
1153
|
];
|
|
1119
|
-
function
|
|
1120
|
-
let t =
|
|
1121
|
-
return
|
|
1122
|
-
}
|
|
1123
|
-
function
|
|
1124
|
-
let t =
|
|
1125
|
-
for (;
|
|
1126
|
-
if (
|
|
1127
|
-
if (
|
|
1128
|
-
t =
|
|
1154
|
+
function Lt(e) {
|
|
1155
|
+
let t = zt(), n = q(e) ? Y(e) : e;
|
|
1156
|
+
return Pt.some((e) => n[e] ? n[e] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Ft.some((e) => (n.willChange || "").includes(e)) || It.some((e) => (n.contain || "").includes(e));
|
|
1157
|
+
}
|
|
1158
|
+
function Rt(e) {
|
|
1159
|
+
let t = X(e);
|
|
1160
|
+
for (; J(t) && !Vt(t);) {
|
|
1161
|
+
if (Lt(t)) return t;
|
|
1162
|
+
if (Nt(t)) return null;
|
|
1163
|
+
t = X(t);
|
|
1129
1164
|
}
|
|
1130
1165
|
return null;
|
|
1131
1166
|
}
|
|
1132
|
-
function
|
|
1167
|
+
function zt() {
|
|
1133
1168
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1134
1169
|
}
|
|
1135
|
-
var
|
|
1170
|
+
var Bt = /*#__PURE__*/ new Set([
|
|
1136
1171
|
"html",
|
|
1137
1172
|
"body",
|
|
1138
1173
|
"#document"
|
|
1139
1174
|
]);
|
|
1140
|
-
function
|
|
1141
|
-
return
|
|
1175
|
+
function Vt(e) {
|
|
1176
|
+
return Bt.has(Tt(e));
|
|
1142
1177
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1178
|
+
function Y(e) {
|
|
1179
|
+
return G(e).getComputedStyle(e);
|
|
1145
1180
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return
|
|
1181
|
+
function Ht(e) {
|
|
1182
|
+
return q(e) ? {
|
|
1148
1183
|
scrollLeft: e.scrollLeft,
|
|
1149
1184
|
scrollTop: e.scrollTop
|
|
1150
1185
|
} : {
|
|
@@ -1152,102 +1187,102 @@ function Bt(e) {
|
|
|
1152
1187
|
scrollTop: e.scrollY
|
|
1153
1188
|
};
|
|
1154
1189
|
}
|
|
1155
|
-
function
|
|
1156
|
-
if (
|
|
1157
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
1158
|
-
return
|
|
1190
|
+
function X(e) {
|
|
1191
|
+
if (Tt(e) === "html") return e;
|
|
1192
|
+
let t = e.assignedSlot || e.parentNode || Dt(e) && e.host || K(e);
|
|
1193
|
+
return Dt(t) ? t.host : t;
|
|
1159
1194
|
}
|
|
1160
|
-
function
|
|
1161
|
-
let t =
|
|
1162
|
-
return
|
|
1195
|
+
function Ut(e) {
|
|
1196
|
+
let t = X(e);
|
|
1197
|
+
return Vt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && kt(t) ? t : Ut(t);
|
|
1163
1198
|
}
|
|
1164
|
-
function
|
|
1199
|
+
function Wt(e, t, n) {
|
|
1165
1200
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1166
|
-
let r =
|
|
1201
|
+
let r = Ut(e), i = r === e.ownerDocument?.body, a = G(r);
|
|
1167
1202
|
if (i) {
|
|
1168
|
-
let e =
|
|
1169
|
-
return t.concat(a, a.visualViewport || [],
|
|
1203
|
+
let e = Gt(a);
|
|
1204
|
+
return t.concat(a, a.visualViewport || [], kt(r) ? r : [], e && n ? Wt(e) : []);
|
|
1170
1205
|
}
|
|
1171
|
-
return t.concat(r,
|
|
1206
|
+
return t.concat(r, Wt(r, [], n));
|
|
1172
1207
|
}
|
|
1173
|
-
function
|
|
1208
|
+
function Gt(e) {
|
|
1174
1209
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1175
1210
|
}
|
|
1176
1211
|
//#endregion
|
|
1177
1212
|
//#region ../../node_modules/.bun/@floating-ui+dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1178
|
-
function
|
|
1179
|
-
let t =
|
|
1213
|
+
function Kt(e) {
|
|
1214
|
+
let t = Y(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = J(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Ve(n) !== a || Ve(r) !== o;
|
|
1180
1215
|
return s && (n = a, r = o), {
|
|
1181
1216
|
width: n,
|
|
1182
1217
|
height: r,
|
|
1183
1218
|
$: s
|
|
1184
1219
|
};
|
|
1185
1220
|
}
|
|
1186
|
-
function
|
|
1187
|
-
return
|
|
1221
|
+
function qt(e) {
|
|
1222
|
+
return q(e) ? e : e.contextElement;
|
|
1188
1223
|
}
|
|
1189
|
-
function
|
|
1190
|
-
let t =
|
|
1191
|
-
if (!
|
|
1192
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
1224
|
+
function Jt(e) {
|
|
1225
|
+
let t = qt(e);
|
|
1226
|
+
if (!J(t)) return V(1);
|
|
1227
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Kt(t), o = (a ? Ve(n.width) : n.width) / r, s = (a ? Ve(n.height) : n.height) / i;
|
|
1193
1228
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
1194
1229
|
x: o,
|
|
1195
1230
|
y: s
|
|
1196
1231
|
};
|
|
1197
1232
|
}
|
|
1198
|
-
var
|
|
1199
|
-
function
|
|
1200
|
-
let t =
|
|
1201
|
-
return !
|
|
1233
|
+
var Yt = /*#__PURE__*/ V(0);
|
|
1234
|
+
function Xt(e) {
|
|
1235
|
+
let t = G(e);
|
|
1236
|
+
return !zt() || !t.visualViewport ? Yt : {
|
|
1202
1237
|
x: t.visualViewport.offsetLeft,
|
|
1203
1238
|
y: t.visualViewport.offsetTop
|
|
1204
1239
|
};
|
|
1205
1240
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1241
|
+
function Zt(e, t, n) {
|
|
1242
|
+
return t === void 0 && (t = !1), !n || t && n !== G(e) ? !1 : t;
|
|
1208
1243
|
}
|
|
1209
|
-
function
|
|
1244
|
+
function Qt(e, t, n, r) {
|
|
1210
1245
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1211
|
-
let i = e.getBoundingClientRect(), a =
|
|
1212
|
-
t && (r ?
|
|
1213
|
-
let s =
|
|
1246
|
+
let i = e.getBoundingClientRect(), a = qt(e), o = V(1);
|
|
1247
|
+
t && (r ? q(r) && (o = Jt(r)) : o = Jt(e));
|
|
1248
|
+
let s = Zt(a, n, r) ? Xt(a) : V(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
1214
1249
|
if (a) {
|
|
1215
|
-
let e =
|
|
1250
|
+
let e = G(a), t = r && q(r) ? G(r) : r, n = e, i = Gt(n);
|
|
1216
1251
|
for (; i && r && t !== n;) {
|
|
1217
|
-
let e =
|
|
1218
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
1252
|
+
let e = Jt(i), t = i.getBoundingClientRect(), r = Y(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
1253
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = G(i), i = Gt(n);
|
|
1219
1254
|
}
|
|
1220
1255
|
}
|
|
1221
|
-
return
|
|
1256
|
+
return lt({
|
|
1222
1257
|
width: u,
|
|
1223
1258
|
height: d,
|
|
1224
1259
|
x: c,
|
|
1225
1260
|
y: l
|
|
1226
1261
|
});
|
|
1227
1262
|
}
|
|
1228
|
-
function
|
|
1229
|
-
let n =
|
|
1230
|
-
return t ? t.left + n :
|
|
1263
|
+
function $t(e, t) {
|
|
1264
|
+
let n = Ht(e).scrollLeft;
|
|
1265
|
+
return t ? t.left + n : Qt(K(e)).left + n;
|
|
1231
1266
|
}
|
|
1232
|
-
function
|
|
1267
|
+
function en(e, t) {
|
|
1233
1268
|
let n = e.getBoundingClientRect();
|
|
1234
1269
|
return {
|
|
1235
|
-
x: n.left + t.scrollLeft -
|
|
1270
|
+
x: n.left + t.scrollLeft - $t(e, n),
|
|
1236
1271
|
y: n.top + t.scrollTop
|
|
1237
1272
|
};
|
|
1238
1273
|
}
|
|
1239
|
-
function
|
|
1240
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
1274
|
+
function tn(e) {
|
|
1275
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = K(r), s = t ? Nt(t.floating) : !1;
|
|
1241
1276
|
if (r === o || s && a) return n;
|
|
1242
1277
|
let c = {
|
|
1243
1278
|
scrollLeft: 0,
|
|
1244
1279
|
scrollTop: 0
|
|
1245
|
-
}, l =
|
|
1246
|
-
if ((d || !d && !a) && ((
|
|
1247
|
-
let e =
|
|
1248
|
-
l =
|
|
1280
|
+
}, l = V(1), u = V(0), d = J(r);
|
|
1281
|
+
if ((d || !d && !a) && ((Tt(r) !== "body" || kt(o)) && (c = Ht(r)), J(r))) {
|
|
1282
|
+
let e = Qt(r);
|
|
1283
|
+
l = Jt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
1249
1284
|
}
|
|
1250
|
-
let f = o && !d && !a ?
|
|
1285
|
+
let f = o && !d && !a ? en(o, c) : V(0);
|
|
1251
1286
|
return {
|
|
1252
1287
|
width: n.width * l.x,
|
|
1253
1288
|
height: n.height * l.y,
|
|
@@ -1255,31 +1290,31 @@ function $t(e) {
|
|
|
1255
1290
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
1256
1291
|
};
|
|
1257
1292
|
}
|
|
1258
|
-
function
|
|
1293
|
+
function nn(e) {
|
|
1259
1294
|
return Array.from(e.getClientRects());
|
|
1260
1295
|
}
|
|
1261
|
-
function
|
|
1262
|
-
let t =
|
|
1263
|
-
return
|
|
1296
|
+
function rn(e) {
|
|
1297
|
+
let t = K(e), n = Ht(e), r = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = B(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + $t(e), s = -n.scrollTop;
|
|
1298
|
+
return Y(r).direction === "rtl" && (o += B(t.clientWidth, r.clientWidth) - i), {
|
|
1264
1299
|
width: i,
|
|
1265
1300
|
height: a,
|
|
1266
1301
|
x: o,
|
|
1267
1302
|
y: s
|
|
1268
1303
|
};
|
|
1269
1304
|
}
|
|
1270
|
-
var
|
|
1271
|
-
function
|
|
1272
|
-
let n =
|
|
1305
|
+
var an = 25;
|
|
1306
|
+
function on(e, t) {
|
|
1307
|
+
let n = G(e), r = K(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
1273
1308
|
if (i) {
|
|
1274
1309
|
a = i.width, o = i.height;
|
|
1275
|
-
let e =
|
|
1310
|
+
let e = zt();
|
|
1276
1311
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
1277
1312
|
}
|
|
1278
|
-
let l =
|
|
1313
|
+
let l = $t(r);
|
|
1279
1314
|
if (l <= 0) {
|
|
1280
1315
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
1281
|
-
o <=
|
|
1282
|
-
} else l <=
|
|
1316
|
+
o <= an && (a -= o);
|
|
1317
|
+
} else l <= an && (a += l);
|
|
1283
1318
|
return {
|
|
1284
1319
|
width: a,
|
|
1285
1320
|
height: o,
|
|
@@ -1287,9 +1322,9 @@ function rn(e, t) {
|
|
|
1287
1322
|
y: c
|
|
1288
1323
|
};
|
|
1289
1324
|
}
|
|
1290
|
-
var
|
|
1291
|
-
function
|
|
1292
|
-
let n =
|
|
1325
|
+
var sn = /*#__PURE__*/ new Set(["absolute", "fixed"]);
|
|
1326
|
+
function cn(e, t) {
|
|
1327
|
+
let n = Qt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = J(e) ? Jt(e) : V(1);
|
|
1293
1328
|
return {
|
|
1294
1329
|
width: e.clientWidth * a.x,
|
|
1295
1330
|
height: e.clientHeight * a.y,
|
|
@@ -1297,13 +1332,13 @@ function on(e, t) {
|
|
|
1297
1332
|
y: r * a.y
|
|
1298
1333
|
};
|
|
1299
1334
|
}
|
|
1300
|
-
function
|
|
1335
|
+
function ln(e, t, n) {
|
|
1301
1336
|
let r;
|
|
1302
|
-
if (t === "viewport") r =
|
|
1303
|
-
else if (t === "document") r =
|
|
1304
|
-
else if (
|
|
1337
|
+
if (t === "viewport") r = on(e, n);
|
|
1338
|
+
else if (t === "document") r = rn(K(e));
|
|
1339
|
+
else if (q(t)) r = cn(t, n);
|
|
1305
1340
|
else {
|
|
1306
|
-
let n =
|
|
1341
|
+
let n = Xt(e);
|
|
1307
1342
|
r = {
|
|
1308
1343
|
x: t.x - n.x,
|
|
1309
1344
|
y: t.y - n.y,
|
|
@@ -1311,27 +1346,27 @@ function sn(e, t, n) {
|
|
|
1311
1346
|
height: t.height
|
|
1312
1347
|
};
|
|
1313
1348
|
}
|
|
1314
|
-
return
|
|
1349
|
+
return lt(r);
|
|
1315
1350
|
}
|
|
1316
|
-
function
|
|
1317
|
-
let n =
|
|
1318
|
-
return n === t || !
|
|
1351
|
+
function un(e, t) {
|
|
1352
|
+
let n = X(e);
|
|
1353
|
+
return n === t || !q(n) || Vt(n) ? !1 : Y(n).position === "fixed" || un(n, t);
|
|
1319
1354
|
}
|
|
1320
|
-
function
|
|
1355
|
+
function dn(e, t) {
|
|
1321
1356
|
let n = t.get(e);
|
|
1322
1357
|
if (n) return n;
|
|
1323
|
-
let r =
|
|
1324
|
-
for (;
|
|
1325
|
-
let t =
|
|
1326
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i &&
|
|
1358
|
+
let r = Wt(e, [], !1).filter((e) => q(e) && Tt(e) !== "body"), i = null, a = Y(e).position === "fixed", o = a ? X(e) : e;
|
|
1359
|
+
for (; q(o) && !Vt(o);) {
|
|
1360
|
+
let t = Y(o), n = Lt(o);
|
|
1361
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && sn.has(i.position) || kt(o) && !n && un(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = X(o);
|
|
1327
1362
|
}
|
|
1328
1363
|
return t.set(e, r), r;
|
|
1329
1364
|
}
|
|
1330
|
-
function
|
|
1331
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
1332
|
-
let r =
|
|
1333
|
-
return e.top =
|
|
1334
|
-
},
|
|
1365
|
+
function fn(e) {
|
|
1366
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Nt(t) ? [] : dn(t, this._c) : [].concat(n), r], o = a[0], s = a.reduce((e, n) => {
|
|
1367
|
+
let r = ln(t, n, i);
|
|
1368
|
+
return e.top = B(r.top, e.top), e.right = Be(r.right, e.right), e.bottom = Be(r.bottom, e.bottom), e.left = B(r.left, e.left), e;
|
|
1369
|
+
}, ln(t, o, i));
|
|
1335
1370
|
return {
|
|
1336
1371
|
width: s.right - s.left,
|
|
1337
1372
|
height: s.bottom - s.top,
|
|
@@ -1339,29 +1374,29 @@ function un(e) {
|
|
|
1339
1374
|
y: s.top
|
|
1340
1375
|
};
|
|
1341
1376
|
}
|
|
1342
|
-
function
|
|
1343
|
-
let { width: t, height: n } =
|
|
1377
|
+
function pn(e) {
|
|
1378
|
+
let { width: t, height: n } = Kt(e);
|
|
1344
1379
|
return {
|
|
1345
1380
|
width: t,
|
|
1346
1381
|
height: n
|
|
1347
1382
|
};
|
|
1348
1383
|
}
|
|
1349
|
-
function
|
|
1350
|
-
let r =
|
|
1384
|
+
function mn(e, t, n) {
|
|
1385
|
+
let r = J(t), i = K(t), a = n === "fixed", o = Qt(e, !0, a, t), s = {
|
|
1351
1386
|
scrollLeft: 0,
|
|
1352
1387
|
scrollTop: 0
|
|
1353
|
-
}, c =
|
|
1388
|
+
}, c = V(0);
|
|
1354
1389
|
function l() {
|
|
1355
|
-
c.x =
|
|
1390
|
+
c.x = $t(i);
|
|
1356
1391
|
}
|
|
1357
1392
|
if (r || !r && !a) {
|
|
1358
|
-
if ((
|
|
1359
|
-
let e =
|
|
1393
|
+
if ((Tt(t) !== "body" || kt(i)) && (s = Ht(t)), r) {
|
|
1394
|
+
let e = Qt(t, !0, a, t);
|
|
1360
1395
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1361
1396
|
} else i && l();
|
|
1362
1397
|
}
|
|
1363
1398
|
a && !r && i && l();
|
|
1364
|
-
let u = i && !r && !a ?
|
|
1399
|
+
let u = i && !r && !a ? en(i, s) : V(0);
|
|
1365
1400
|
return {
|
|
1366
1401
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1367
1402
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -1369,34 +1404,34 @@ function fn(e, t, n) {
|
|
|
1369
1404
|
height: o.height
|
|
1370
1405
|
};
|
|
1371
1406
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return
|
|
1407
|
+
function hn(e) {
|
|
1408
|
+
return Y(e).position === "static";
|
|
1374
1409
|
}
|
|
1375
|
-
function
|
|
1376
|
-
if (!
|
|
1410
|
+
function gn(e, t) {
|
|
1411
|
+
if (!J(e) || Y(e).position === "fixed") return null;
|
|
1377
1412
|
if (t) return t(e);
|
|
1378
1413
|
let n = e.offsetParent;
|
|
1379
|
-
return
|
|
1380
|
-
}
|
|
1381
|
-
function
|
|
1382
|
-
let n =
|
|
1383
|
-
if (
|
|
1384
|
-
if (!
|
|
1385
|
-
let t =
|
|
1386
|
-
for (; t && !
|
|
1387
|
-
if (
|
|
1388
|
-
t =
|
|
1414
|
+
return K(e) === n && (n = n.ownerDocument.body), n;
|
|
1415
|
+
}
|
|
1416
|
+
function _n(e, t) {
|
|
1417
|
+
let n = G(e);
|
|
1418
|
+
if (Nt(e)) return n;
|
|
1419
|
+
if (!J(e)) {
|
|
1420
|
+
let t = X(e);
|
|
1421
|
+
for (; t && !Vt(t);) {
|
|
1422
|
+
if (q(t) && !hn(t)) return t;
|
|
1423
|
+
t = X(t);
|
|
1389
1424
|
}
|
|
1390
1425
|
return n;
|
|
1391
1426
|
}
|
|
1392
|
-
let r =
|
|
1393
|
-
for (; r &&
|
|
1394
|
-
return r &&
|
|
1427
|
+
let r = gn(e, t);
|
|
1428
|
+
for (; r && jt(r) && hn(r);) r = gn(r, t);
|
|
1429
|
+
return r && Vt(r) && hn(r) && !Lt(r) ? n : r || Rt(e) || n;
|
|
1395
1430
|
}
|
|
1396
|
-
var
|
|
1397
|
-
let t = this.getOffsetParent ||
|
|
1431
|
+
var vn = async function(e) {
|
|
1432
|
+
let t = this.getOffsetParent || _n, n = this.getDimensions, r = await n(e.floating);
|
|
1398
1433
|
return {
|
|
1399
|
-
reference:
|
|
1434
|
+
reference: mn(e.reference, await t(e.floating), e.strategy),
|
|
1400
1435
|
floating: {
|
|
1401
1436
|
x: 0,
|
|
1402
1437
|
y: 0,
|
|
@@ -1405,26 +1440,26 @@ var gn = async function(e) {
|
|
|
1405
1440
|
}
|
|
1406
1441
|
};
|
|
1407
1442
|
};
|
|
1408
|
-
function
|
|
1409
|
-
return
|
|
1410
|
-
}
|
|
1411
|
-
var
|
|
1412
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1413
|
-
getDocumentElement:
|
|
1414
|
-
getClippingRect:
|
|
1415
|
-
getOffsetParent:
|
|
1416
|
-
getElementRects:
|
|
1417
|
-
getClientRects:
|
|
1418
|
-
getDimensions:
|
|
1419
|
-
getScale:
|
|
1420
|
-
isElement:
|
|
1421
|
-
isRTL:
|
|
1443
|
+
function yn(e) {
|
|
1444
|
+
return Y(e).direction === "rtl";
|
|
1445
|
+
}
|
|
1446
|
+
var bn = {
|
|
1447
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: tn,
|
|
1448
|
+
getDocumentElement: K,
|
|
1449
|
+
getClippingRect: fn,
|
|
1450
|
+
getOffsetParent: _n,
|
|
1451
|
+
getElementRects: vn,
|
|
1452
|
+
getClientRects: nn,
|
|
1453
|
+
getDimensions: pn,
|
|
1454
|
+
getScale: Jt,
|
|
1455
|
+
isElement: q,
|
|
1456
|
+
isRTL: yn
|
|
1422
1457
|
};
|
|
1423
|
-
function
|
|
1458
|
+
function xn(e, t) {
|
|
1424
1459
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1425
1460
|
}
|
|
1426
|
-
function
|
|
1427
|
-
let n = null, r, i =
|
|
1461
|
+
function Sn(e, t) {
|
|
1462
|
+
let n = null, r, i = K(e);
|
|
1428
1463
|
function a() {
|
|
1429
1464
|
var e;
|
|
1430
1465
|
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
@@ -1433,9 +1468,9 @@ function bn(e, t) {
|
|
|
1433
1468
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
1434
1469
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
1435
1470
|
if (s || t(), !f || !p) return;
|
|
1436
|
-
let m =
|
|
1471
|
+
let m = He(d), h = He(i.clientWidth - (u + f)), g = He(i.clientHeight - (d + p)), _ = He(u), v = {
|
|
1437
1472
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
1438
|
-
threshold:
|
|
1473
|
+
threshold: B(0, Be(1, c)) || 1
|
|
1439
1474
|
}, y = !0;
|
|
1440
1475
|
function b(t) {
|
|
1441
1476
|
let n = t[0].intersectionRatio;
|
|
@@ -1445,7 +1480,7 @@ function bn(e, t) {
|
|
|
1445
1480
|
o(!1, 1e-7);
|
|
1446
1481
|
}, 1e3);
|
|
1447
1482
|
}
|
|
1448
|
-
n === 1 && !
|
|
1483
|
+
n === 1 && !xn(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
1449
1484
|
}
|
|
1450
1485
|
try {
|
|
1451
1486
|
n = new IntersectionObserver(b, {
|
|
@@ -1459,13 +1494,13 @@ function bn(e, t) {
|
|
|
1459
1494
|
}
|
|
1460
1495
|
return o(!0), a;
|
|
1461
1496
|
}
|
|
1462
|
-
function
|
|
1497
|
+
function Cn(e, t, n, r) {
|
|
1463
1498
|
r === void 0 && (r = {});
|
|
1464
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
1499
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = qt(e), u = i || a ? [...l ? Wt(l) : [], ...Wt(t)] : [];
|
|
1465
1500
|
u.forEach((e) => {
|
|
1466
1501
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
1467
1502
|
});
|
|
1468
|
-
let d = l && s ?
|
|
1503
|
+
let d = l && s ? Sn(l, n) : null, f = -1, p = null;
|
|
1469
1504
|
o && (p = new ResizeObserver((e) => {
|
|
1470
1505
|
let [r] = e;
|
|
1471
1506
|
r && r.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -1473,11 +1508,11 @@ function xn(e, t, n, r) {
|
|
|
1473
1508
|
(e = p) == null || e.observe(t);
|
|
1474
1509
|
})), n();
|
|
1475
1510
|
}), l && !c && p.observe(l), p.observe(t));
|
|
1476
|
-
let m, h = c ?
|
|
1511
|
+
let m, h = c ? Qt(e) : null;
|
|
1477
1512
|
c && g();
|
|
1478
1513
|
function g() {
|
|
1479
|
-
let t =
|
|
1480
|
-
h && !
|
|
1514
|
+
let t = Qt(e);
|
|
1515
|
+
h && !xn(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
1481
1516
|
}
|
|
1482
1517
|
return n(), () => {
|
|
1483
1518
|
var e;
|
|
@@ -1486,20 +1521,20 @@ function xn(e, t, n, r) {
|
|
|
1486
1521
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
1487
1522
|
};
|
|
1488
1523
|
}
|
|
1489
|
-
var
|
|
1524
|
+
var wn = bt, Tn = xt, En = mt, Dn = Ct, On = _t, kn = pt, An = St, jn = (e, t, n) => {
|
|
1490
1525
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
1491
|
-
platform:
|
|
1526
|
+
platform: bn,
|
|
1492
1527
|
...n
|
|
1493
1528
|
}, a = {
|
|
1494
1529
|
...i.platform,
|
|
1495
1530
|
_c: r
|
|
1496
1531
|
};
|
|
1497
|
-
return
|
|
1532
|
+
return ft(e, t, {
|
|
1498
1533
|
...i,
|
|
1499
1534
|
platform: a
|
|
1500
1535
|
});
|
|
1501
|
-
},
|
|
1502
|
-
function
|
|
1536
|
+
}, Mn = typeof document < "u" ? l : c;
|
|
1537
|
+
function Nn(e, t) {
|
|
1503
1538
|
if (e === t) return !0;
|
|
1504
1539
|
if (typeof e != typeof t) return !1;
|
|
1505
1540
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -1507,80 +1542,80 @@ function jn(e, t) {
|
|
|
1507
1542
|
if (e && t && typeof e == "object") {
|
|
1508
1543
|
if (Array.isArray(e)) {
|
|
1509
1544
|
if (n = e.length, n !== t.length) return !1;
|
|
1510
|
-
for (r = n; r-- !== 0;) if (!
|
|
1545
|
+
for (r = n; r-- !== 0;) if (!Nn(e[r], t[r])) return !1;
|
|
1511
1546
|
return !0;
|
|
1512
1547
|
}
|
|
1513
1548
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
1514
1549
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
1515
1550
|
for (r = n; r-- !== 0;) {
|
|
1516
1551
|
let n = i[r];
|
|
1517
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
1552
|
+
if (!(n === "_owner" && e.$$typeof) && !Nn(e[n], t[n])) return !1;
|
|
1518
1553
|
}
|
|
1519
1554
|
return !0;
|
|
1520
1555
|
}
|
|
1521
1556
|
return e !== e && t !== t;
|
|
1522
1557
|
}
|
|
1523
|
-
function
|
|
1558
|
+
function Pn(e) {
|
|
1524
1559
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1525
1560
|
}
|
|
1526
|
-
function
|
|
1527
|
-
let n =
|
|
1561
|
+
function Fn(e, t) {
|
|
1562
|
+
let n = Pn(e);
|
|
1528
1563
|
return Math.round(t * n) / n;
|
|
1529
1564
|
}
|
|
1530
|
-
function
|
|
1531
|
-
let t =
|
|
1532
|
-
return
|
|
1565
|
+
function In(e) {
|
|
1566
|
+
let t = i.useRef(e);
|
|
1567
|
+
return Mn(() => {
|
|
1533
1568
|
t.current = e;
|
|
1534
1569
|
}), t;
|
|
1535
1570
|
}
|
|
1536
|
-
function
|
|
1571
|
+
function Ln(e) {
|
|
1537
1572
|
e === void 0 && (e = {});
|
|
1538
|
-
let { placement: t = "bottom", strategy: n = "absolute", middleware:
|
|
1573
|
+
let { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = e, [d, f] = i.useState({
|
|
1539
1574
|
x: 0,
|
|
1540
1575
|
y: 0,
|
|
1541
1576
|
strategy: n,
|
|
1542
1577
|
placement: t,
|
|
1543
1578
|
middlewareData: {},
|
|
1544
1579
|
isPositioned: !1
|
|
1545
|
-
}), [
|
|
1546
|
-
|
|
1547
|
-
let [g, _] =
|
|
1580
|
+
}), [p, h] = i.useState(r);
|
|
1581
|
+
Nn(p, r) || h(r);
|
|
1582
|
+
let [g, _] = i.useState(null), [v, y] = i.useState(null), b = i.useCallback((e) => {
|
|
1548
1583
|
e !== w.current && (w.current = e, _(e));
|
|
1549
|
-
}, []), x =
|
|
1584
|
+
}, []), x = i.useCallback((e) => {
|
|
1550
1585
|
e !== T.current && (T.current = e, y(e));
|
|
1551
|
-
}, []), S = o || g, C = s || v, w =
|
|
1586
|
+
}, []), S = o || g, C = s || v, w = i.useRef(null), T = i.useRef(null), E = i.useRef(d), D = l != null, O = In(l), k = In(a), A = In(u), j = i.useCallback(() => {
|
|
1552
1587
|
if (!w.current || !T.current) return;
|
|
1553
1588
|
let e = {
|
|
1554
1589
|
placement: t,
|
|
1555
1590
|
strategy: n,
|
|
1556
|
-
middleware:
|
|
1591
|
+
middleware: p
|
|
1557
1592
|
};
|
|
1558
|
-
k.current && (e.platform = k.current),
|
|
1593
|
+
k.current && (e.platform = k.current), jn(w.current, T.current, e).then((e) => {
|
|
1559
1594
|
let t = {
|
|
1560
1595
|
...e,
|
|
1561
1596
|
isPositioned: A.current !== !1
|
|
1562
1597
|
};
|
|
1563
|
-
M.current && !
|
|
1598
|
+
M.current && !Nn(E.current, t) && (E.current = t, m.flushSync(() => {
|
|
1564
1599
|
f(t);
|
|
1565
1600
|
}));
|
|
1566
1601
|
});
|
|
1567
1602
|
}, [
|
|
1568
|
-
|
|
1603
|
+
p,
|
|
1569
1604
|
t,
|
|
1570
1605
|
n,
|
|
1571
1606
|
k,
|
|
1572
1607
|
A
|
|
1573
1608
|
]);
|
|
1574
|
-
|
|
1609
|
+
Mn(() => {
|
|
1575
1610
|
u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((e) => ({
|
|
1576
1611
|
...e,
|
|
1577
1612
|
isPositioned: !1
|
|
1578
1613
|
})));
|
|
1579
1614
|
}, [u]);
|
|
1580
|
-
let M =
|
|
1581
|
-
|
|
1615
|
+
let M = i.useRef(!1);
|
|
1616
|
+
Mn(() => (M.current = !0, () => {
|
|
1582
1617
|
M.current = !1;
|
|
1583
|
-
}), []),
|
|
1618
|
+
}), []), Mn(() => {
|
|
1584
1619
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
1585
1620
|
if (O.current) return O.current(S, C, j);
|
|
1586
1621
|
j();
|
|
@@ -1592,26 +1627,26 @@ function Fn(e) {
|
|
|
1592
1627
|
O,
|
|
1593
1628
|
D
|
|
1594
1629
|
]);
|
|
1595
|
-
let N =
|
|
1630
|
+
let N = i.useMemo(() => ({
|
|
1596
1631
|
reference: w,
|
|
1597
1632
|
floating: T,
|
|
1598
1633
|
setReference: b,
|
|
1599
1634
|
setFloating: x
|
|
1600
|
-
}), [b, x]), P =
|
|
1635
|
+
}), [b, x]), P = i.useMemo(() => ({
|
|
1601
1636
|
reference: S,
|
|
1602
1637
|
floating: C
|
|
1603
|
-
}), [S, C]), ee =
|
|
1638
|
+
}), [S, C]), ee = i.useMemo(() => {
|
|
1604
1639
|
let e = {
|
|
1605
1640
|
position: n,
|
|
1606
1641
|
left: 0,
|
|
1607
1642
|
top: 0
|
|
1608
1643
|
};
|
|
1609
1644
|
if (!P.floating) return e;
|
|
1610
|
-
let t =
|
|
1645
|
+
let t = Fn(P.floating, d.x), r = Fn(P.floating, d.y);
|
|
1611
1646
|
return c ? {
|
|
1612
1647
|
...e,
|
|
1613
1648
|
transform: "translate(" + t + "px, " + r + "px)",
|
|
1614
|
-
...
|
|
1649
|
+
...Pn(P.floating) >= 1.5 && { willChange: "transform" }
|
|
1615
1650
|
} : {
|
|
1616
1651
|
position: n,
|
|
1617
1652
|
left: t,
|
|
@@ -1624,7 +1659,7 @@ function Fn(e) {
|
|
|
1624
1659
|
d.x,
|
|
1625
1660
|
d.y
|
|
1626
1661
|
]);
|
|
1627
|
-
return
|
|
1662
|
+
return i.useMemo(() => ({
|
|
1628
1663
|
...d,
|
|
1629
1664
|
update: j,
|
|
1630
1665
|
refs: N,
|
|
@@ -1638,7 +1673,7 @@ function Fn(e) {
|
|
|
1638
1673
|
ee
|
|
1639
1674
|
]);
|
|
1640
1675
|
}
|
|
1641
|
-
var
|
|
1676
|
+
var Rn = (e) => {
|
|
1642
1677
|
function t(e) {
|
|
1643
1678
|
return {}.hasOwnProperty.call(e, "current");
|
|
1644
1679
|
}
|
|
@@ -1647,55 +1682,55 @@ var In = (e) => {
|
|
|
1647
1682
|
options: e,
|
|
1648
1683
|
fn(n) {
|
|
1649
1684
|
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
1650
|
-
return r && t(r) ? r.current == null ? {} :
|
|
1685
|
+
return r && t(r) ? r.current == null ? {} : kn({
|
|
1651
1686
|
element: r.current,
|
|
1652
1687
|
padding: i
|
|
1653
|
-
}).fn(n) : r ?
|
|
1688
|
+
}).fn(n) : r ? kn({
|
|
1654
1689
|
element: r,
|
|
1655
1690
|
padding: i
|
|
1656
1691
|
}).fn(n) : {};
|
|
1657
1692
|
}
|
|
1658
1693
|
};
|
|
1659
|
-
},
|
|
1660
|
-
...
|
|
1661
|
-
options: [e, t]
|
|
1662
|
-
}), Rn = (e, t) => ({
|
|
1663
|
-
...Cn(e),
|
|
1664
|
-
options: [e, t]
|
|
1665
|
-
}), zn = (e, t) => ({
|
|
1666
|
-
...On(e),
|
|
1694
|
+
}, zn = (e, t) => ({
|
|
1695
|
+
...wn(e),
|
|
1667
1696
|
options: [e, t]
|
|
1668
1697
|
}), Bn = (e, t) => ({
|
|
1669
|
-
...
|
|
1698
|
+
...Tn(e),
|
|
1670
1699
|
options: [e, t]
|
|
1671
1700
|
}), Vn = (e, t) => ({
|
|
1672
|
-
...
|
|
1701
|
+
...An(e),
|
|
1673
1702
|
options: [e, t]
|
|
1674
1703
|
}), Hn = (e, t) => ({
|
|
1675
1704
|
...En(e),
|
|
1676
1705
|
options: [e, t]
|
|
1677
1706
|
}), Un = (e, t) => ({
|
|
1678
|
-
...
|
|
1707
|
+
...Dn(e),
|
|
1708
|
+
options: [e, t]
|
|
1709
|
+
}), Wn = (e, t) => ({
|
|
1710
|
+
...On(e),
|
|
1711
|
+
options: [e, t]
|
|
1712
|
+
}), Gn = (e, t) => ({
|
|
1713
|
+
...Rn(e),
|
|
1679
1714
|
options: [e, t]
|
|
1680
|
-
}),
|
|
1715
|
+
}), Kn = "Arrow", qn = i.forwardRef((e, t) => {
|
|
1681
1716
|
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
1682
|
-
return /* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ d(F.svg, {
|
|
1683
1718
|
...a,
|
|
1684
1719
|
ref: t,
|
|
1685
1720
|
width: r,
|
|
1686
1721
|
height: i,
|
|
1687
1722
|
viewBox: "0 0 30 10",
|
|
1688
1723
|
preserveAspectRatio: "none",
|
|
1689
|
-
children: e.asChild ? n : /* @__PURE__ */
|
|
1724
|
+
children: e.asChild ? n : /* @__PURE__ */ d("polygon", { points: "0,0 30,0 15,10" })
|
|
1690
1725
|
});
|
|
1691
1726
|
});
|
|
1692
|
-
|
|
1693
|
-
var
|
|
1727
|
+
qn.displayName = Kn;
|
|
1728
|
+
var Jn = qn;
|
|
1694
1729
|
//#endregion
|
|
1695
1730
|
//#region ../../node_modules/.bun/@radix-ui+react-use-size@1.1.1+ec078f7ced36dfee/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
1696
|
-
function
|
|
1697
|
-
let [t, n] =
|
|
1698
|
-
return
|
|
1731
|
+
function Yn(e) {
|
|
1732
|
+
let [t, n] = i.useState(void 0);
|
|
1733
|
+
return T(() => {
|
|
1699
1734
|
if (e) {
|
|
1700
1735
|
n({
|
|
1701
1736
|
width: e.offsetWidth,
|
|
@@ -1720,126 +1755,126 @@ function qn(e) {
|
|
|
1720
1755
|
}
|
|
1721
1756
|
//#endregion
|
|
1722
1757
|
//#region ../../node_modules/.bun/@radix-ui+react-popper@1.2.8+02ec1e885677ecfa/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
1723
|
-
var
|
|
1724
|
-
let { __scopePopper: t, children: n } = e, [
|
|
1725
|
-
return /* @__PURE__ */
|
|
1758
|
+
var Xn = "Popper", [Zn, Qn] = C(Xn), [$n, er] = Zn(Xn), tr = (e) => {
|
|
1759
|
+
let { __scopePopper: t, children: n } = e, [r, a] = i.useState(null);
|
|
1760
|
+
return /* @__PURE__ */ d($n, {
|
|
1726
1761
|
scope: t,
|
|
1727
|
-
anchor:
|
|
1762
|
+
anchor: r,
|
|
1728
1763
|
onAnchorChange: a,
|
|
1729
1764
|
children: n
|
|
1730
1765
|
});
|
|
1731
1766
|
};
|
|
1732
|
-
|
|
1733
|
-
var
|
|
1734
|
-
let { __scopePopper: n, virtualRef:
|
|
1735
|
-
return
|
|
1767
|
+
tr.displayName = Xn;
|
|
1768
|
+
var nr = "PopperAnchor", rr = i.forwardRef((e, t) => {
|
|
1769
|
+
let { __scopePopper: n, virtualRef: r, ...a } = e, o = er(nr, n), s = i.useRef(null), c = b(t, s), l = i.useRef(null);
|
|
1770
|
+
return i.useEffect(() => {
|
|
1736
1771
|
let e = l.current;
|
|
1737
|
-
l.current =
|
|
1738
|
-
}),
|
|
1772
|
+
l.current = r?.current || s.current, e !== l.current && o.onAnchorChange(l.current);
|
|
1773
|
+
}), r ? null : /* @__PURE__ */ d(F.div, {
|
|
1739
1774
|
...a,
|
|
1740
1775
|
ref: c
|
|
1741
1776
|
});
|
|
1742
1777
|
});
|
|
1743
|
-
|
|
1744
|
-
var
|
|
1745
|
-
let { __scopePopper: n, side:
|
|
1778
|
+
rr.displayName = nr;
|
|
1779
|
+
var ir = "PopperContent", [ar, or] = Zn(ir), sr = i.forwardRef((e, t) => {
|
|
1780
|
+
let { __scopePopper: n, side: r = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: f = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ..._ } = e, v = er(ir, n), [y, x] = i.useState(null), S = b(t, (e) => x(e)), [C, w] = i.useState(null), E = Yn(C), D = E?.width ?? 0, O = E?.height ?? 0, k = r + (o === "center" ? "" : "-" + o), A = typeof f == "number" ? f : {
|
|
1746
1781
|
top: 0,
|
|
1747
1782
|
right: 0,
|
|
1748
1783
|
bottom: 0,
|
|
1749
1784
|
left: 0,
|
|
1750
1785
|
...f
|
|
1751
|
-
}, j = Array.isArray(
|
|
1786
|
+
}, j = Array.isArray(u) ? u : [u], M = j.length > 0, N = {
|
|
1752
1787
|
padding: A,
|
|
1753
|
-
boundary: j.filter(
|
|
1788
|
+
boundary: j.filter(dr),
|
|
1754
1789
|
altBoundary: M
|
|
1755
|
-
}, { refs:
|
|
1790
|
+
}, { refs: P, floatingStyles: ee, placement: te, isPositioned: I, middlewareData: L } = Ln({
|
|
1756
1791
|
strategy: "fixed",
|
|
1757
1792
|
placement: k,
|
|
1758
|
-
whileElementsMounted: (...e) =>
|
|
1759
|
-
elements: { reference:
|
|
1793
|
+
whileElementsMounted: (...e) => Cn(...e, { animationFrame: h === "always" }),
|
|
1794
|
+
elements: { reference: v.anchor },
|
|
1760
1795
|
middleware: [
|
|
1761
|
-
|
|
1796
|
+
zn({
|
|
1762
1797
|
mainAxis: a + O,
|
|
1763
1798
|
alignmentAxis: s
|
|
1764
1799
|
}),
|
|
1765
|
-
l &&
|
|
1800
|
+
l && Bn({
|
|
1766
1801
|
mainAxis: !0,
|
|
1767
1802
|
crossAxis: !1,
|
|
1768
|
-
limiter: p === "partial" ?
|
|
1769
|
-
...
|
|
1803
|
+
limiter: p === "partial" ? Vn() : void 0,
|
|
1804
|
+
...N
|
|
1770
1805
|
}),
|
|
1771
|
-
l &&
|
|
1772
|
-
|
|
1773
|
-
...
|
|
1806
|
+
l && Hn({ ...N }),
|
|
1807
|
+
Un({
|
|
1808
|
+
...N,
|
|
1774
1809
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
1775
1810
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
1776
1811
|
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
1777
1812
|
}
|
|
1778
1813
|
}),
|
|
1779
|
-
|
|
1780
|
-
element:
|
|
1814
|
+
C && Gn({
|
|
1815
|
+
element: C,
|
|
1781
1816
|
padding: c
|
|
1782
1817
|
}),
|
|
1783
|
-
|
|
1818
|
+
fr({
|
|
1784
1819
|
arrowWidth: D,
|
|
1785
1820
|
arrowHeight: O
|
|
1786
1821
|
}),
|
|
1787
|
-
m &&
|
|
1822
|
+
m && Wn({
|
|
1788
1823
|
strategy: "referenceHidden",
|
|
1789
|
-
...
|
|
1824
|
+
...N
|
|
1790
1825
|
})
|
|
1791
1826
|
]
|
|
1792
|
-
}), [
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
}, [
|
|
1796
|
-
let
|
|
1797
|
-
return
|
|
1798
|
-
|
|
1799
|
-
}, [
|
|
1800
|
-
ref:
|
|
1827
|
+
}), [ne, re] = pr(te), ie = R(g);
|
|
1828
|
+
T(() => {
|
|
1829
|
+
I && ie?.();
|
|
1830
|
+
}, [I, ie]);
|
|
1831
|
+
let ae = L.arrow?.x, oe = L.arrow?.y, se = L.arrow?.centerOffset !== 0, [ce, le] = i.useState();
|
|
1832
|
+
return T(() => {
|
|
1833
|
+
y && le(window.getComputedStyle(y).zIndex);
|
|
1834
|
+
}, [y]), /* @__PURE__ */ d("div", {
|
|
1835
|
+
ref: P.setFloating,
|
|
1801
1836
|
"data-radix-popper-content-wrapper": "",
|
|
1802
1837
|
style: {
|
|
1803
|
-
...
|
|
1804
|
-
transform:
|
|
1838
|
+
...ee,
|
|
1839
|
+
transform: I ? ee.transform : "translate(0, -200%)",
|
|
1805
1840
|
minWidth: "max-content",
|
|
1806
|
-
zIndex:
|
|
1807
|
-
"--radix-popper-transform-origin": [
|
|
1808
|
-
...
|
|
1841
|
+
zIndex: ce,
|
|
1842
|
+
"--radix-popper-transform-origin": [L.transformOrigin?.x, L.transformOrigin?.y].join(" "),
|
|
1843
|
+
...L.hide?.referenceHidden && {
|
|
1809
1844
|
visibility: "hidden",
|
|
1810
1845
|
pointerEvents: "none"
|
|
1811
1846
|
}
|
|
1812
1847
|
},
|
|
1813
1848
|
dir: e.dir,
|
|
1814
|
-
children: /* @__PURE__ */
|
|
1849
|
+
children: /* @__PURE__ */ d(ar, {
|
|
1815
1850
|
scope: n,
|
|
1816
|
-
placedSide:
|
|
1817
|
-
onArrowChange:
|
|
1818
|
-
arrowX:
|
|
1819
|
-
arrowY:
|
|
1820
|
-
shouldHideArrow:
|
|
1821
|
-
children: /* @__PURE__ */
|
|
1822
|
-
"data-side":
|
|
1823
|
-
"data-align":
|
|
1824
|
-
...
|
|
1825
|
-
ref:
|
|
1851
|
+
placedSide: ne,
|
|
1852
|
+
onArrowChange: w,
|
|
1853
|
+
arrowX: ae,
|
|
1854
|
+
arrowY: oe,
|
|
1855
|
+
shouldHideArrow: se,
|
|
1856
|
+
children: /* @__PURE__ */ d(F.div, {
|
|
1857
|
+
"data-side": ne,
|
|
1858
|
+
"data-align": re,
|
|
1859
|
+
..._,
|
|
1860
|
+
ref: S,
|
|
1826
1861
|
style: {
|
|
1827
|
-
...
|
|
1828
|
-
animation:
|
|
1862
|
+
..._.style,
|
|
1863
|
+
animation: I ? void 0 : "none"
|
|
1829
1864
|
}
|
|
1830
1865
|
})
|
|
1831
1866
|
})
|
|
1832
1867
|
});
|
|
1833
1868
|
});
|
|
1834
|
-
|
|
1835
|
-
var
|
|
1869
|
+
sr.displayName = ir;
|
|
1870
|
+
var cr = "PopperArrow", lr = {
|
|
1836
1871
|
top: "bottom",
|
|
1837
1872
|
right: "left",
|
|
1838
1873
|
bottom: "top",
|
|
1839
1874
|
left: "right"
|
|
1840
|
-
},
|
|
1841
|
-
let { __scopePopper: n, ...r } = e, i =
|
|
1842
|
-
return /* @__PURE__ */
|
|
1875
|
+
}, ur = i.forwardRef(function(e, t) {
|
|
1876
|
+
let { __scopePopper: n, ...r } = e, i = or(cr, n), a = lr[i.placedSide];
|
|
1877
|
+
return /* @__PURE__ */ d("span", {
|
|
1843
1878
|
ref: i.onArrowChange,
|
|
1844
1879
|
style: {
|
|
1845
1880
|
position: "absolute",
|
|
@@ -1860,7 +1895,7 @@ var or = "PopperArrow", sr = {
|
|
|
1860
1895
|
}[i.placedSide],
|
|
1861
1896
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
1862
1897
|
},
|
|
1863
|
-
children: /* @__PURE__ */
|
|
1898
|
+
children: /* @__PURE__ */ d(Jn, {
|
|
1864
1899
|
...r,
|
|
1865
1900
|
ref: t,
|
|
1866
1901
|
style: {
|
|
@@ -1870,15 +1905,15 @@ var or = "PopperArrow", sr = {
|
|
|
1870
1905
|
})
|
|
1871
1906
|
});
|
|
1872
1907
|
});
|
|
1873
|
-
|
|
1874
|
-
function
|
|
1908
|
+
ur.displayName = cr;
|
|
1909
|
+
function dr(e) {
|
|
1875
1910
|
return e !== null;
|
|
1876
1911
|
}
|
|
1877
|
-
var
|
|
1912
|
+
var fr = (e) => ({
|
|
1878
1913
|
name: "transformOrigin",
|
|
1879
1914
|
options: e,
|
|
1880
1915
|
fn(t) {
|
|
1881
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
1916
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = pr(n), u = {
|
|
1882
1917
|
start: "0%",
|
|
1883
1918
|
center: "50%",
|
|
1884
1919
|
end: "100%"
|
|
@@ -1889,32 +1924,32 @@ var ur = (e) => ({
|
|
|
1889
1924
|
} };
|
|
1890
1925
|
}
|
|
1891
1926
|
});
|
|
1892
|
-
function
|
|
1927
|
+
function pr(e) {
|
|
1893
1928
|
let [t, n = "center"] = e.split("-");
|
|
1894
1929
|
return [t, n];
|
|
1895
1930
|
}
|
|
1896
|
-
var
|
|
1897
|
-
let { container: n, ...
|
|
1898
|
-
|
|
1931
|
+
var mr = tr, hr = rr, gr = sr, _r = ur, vr = "Portal", yr = i.forwardRef((e, t) => {
|
|
1932
|
+
let { container: n, ...r } = e, [a, o] = i.useState(!1);
|
|
1933
|
+
T(() => o(!0), []);
|
|
1899
1934
|
let s = n || a && globalThis?.document?.body;
|
|
1900
|
-
return s ?
|
|
1901
|
-
...
|
|
1935
|
+
return s ? p.createPortal(/* @__PURE__ */ d(F.div, {
|
|
1936
|
+
...r,
|
|
1902
1937
|
ref: t
|
|
1903
1938
|
}), s) : null;
|
|
1904
1939
|
});
|
|
1905
|
-
|
|
1940
|
+
yr.displayName = vr;
|
|
1906
1941
|
//#endregion
|
|
1907
1942
|
//#region ../../node_modules/.bun/@radix-ui+react-presence@1.1.5+02ec1e885677ecfa/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
1908
|
-
function
|
|
1909
|
-
return
|
|
1943
|
+
function br(e, t) {
|
|
1944
|
+
return i.useReducer((e, n) => t[e][n] ?? e, e);
|
|
1910
1945
|
}
|
|
1911
|
-
var
|
|
1912
|
-
let { present: t, children: n } = e,
|
|
1913
|
-
return typeof n == "function" ||
|
|
1946
|
+
var xr = (e) => {
|
|
1947
|
+
let { present: t, children: n } = e, r = Sr(t), a = typeof n == "function" ? n({ present: r.isPresent }) : i.Children.only(n), o = b(r.ref, wr(a));
|
|
1948
|
+
return typeof n == "function" || r.isPresent ? i.cloneElement(a, { ref: o }) : null;
|
|
1914
1949
|
};
|
|
1915
|
-
|
|
1916
|
-
function
|
|
1917
|
-
let [t, n] =
|
|
1950
|
+
xr.displayName = "Presence";
|
|
1951
|
+
function Sr(e) {
|
|
1952
|
+
let [t, n] = i.useState(), r = i.useRef(null), a = i.useRef(e), o = i.useRef("none"), [s, c] = br(e ? "mounted" : "unmounted", {
|
|
1918
1953
|
mounted: {
|
|
1919
1954
|
UNMOUNT: "unmounted",
|
|
1920
1955
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -1925,142 +1960,142 @@ function yr(e) {
|
|
|
1925
1960
|
},
|
|
1926
1961
|
unmounted: { MOUNT: "mounted" }
|
|
1927
1962
|
});
|
|
1928
|
-
return
|
|
1929
|
-
let e =
|
|
1963
|
+
return i.useEffect(() => {
|
|
1964
|
+
let e = Cr(r.current);
|
|
1930
1965
|
o.current = s === "mounted" ? e : "none";
|
|
1931
|
-
}, [s]),
|
|
1932
|
-
let t =
|
|
1966
|
+
}, [s]), T(() => {
|
|
1967
|
+
let t = r.current, n = a.current;
|
|
1933
1968
|
if (n !== e) {
|
|
1934
|
-
let r = o.current, i =
|
|
1969
|
+
let r = o.current, i = Cr(t);
|
|
1935
1970
|
e ? c("MOUNT") : i === "none" || t?.display === "none" ? c("UNMOUNT") : c(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
|
|
1936
1971
|
}
|
|
1937
|
-
}, [e, c]),
|
|
1972
|
+
}, [e, c]), T(() => {
|
|
1938
1973
|
if (t) {
|
|
1939
|
-
let e, n = t.ownerDocument.defaultView ?? window,
|
|
1940
|
-
let o =
|
|
1941
|
-
if (
|
|
1974
|
+
let e, n = t.ownerDocument.defaultView ?? window, i = (i) => {
|
|
1975
|
+
let o = Cr(r.current).includes(CSS.escape(i.animationName));
|
|
1976
|
+
if (i.target === t && o && (c("ANIMATION_END"), !a.current)) {
|
|
1942
1977
|
let r = t.style.animationFillMode;
|
|
1943
1978
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
1944
1979
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = r);
|
|
1945
1980
|
});
|
|
1946
1981
|
}
|
|
1947
1982
|
}, s = (e) => {
|
|
1948
|
-
e.target === t && (o.current =
|
|
1983
|
+
e.target === t && (o.current = Cr(r.current));
|
|
1949
1984
|
};
|
|
1950
|
-
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel",
|
|
1951
|
-
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel",
|
|
1985
|
+
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel", i), t.addEventListener("animationend", i), () => {
|
|
1986
|
+
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel", i), t.removeEventListener("animationend", i);
|
|
1952
1987
|
};
|
|
1953
1988
|
}
|
|
1954
1989
|
c("ANIMATION_END");
|
|
1955
1990
|
}, [t, c]), {
|
|
1956
1991
|
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
1957
|
-
ref:
|
|
1958
|
-
|
|
1992
|
+
ref: i.useCallback((e) => {
|
|
1993
|
+
r.current = e ? getComputedStyle(e) : null, n(e);
|
|
1959
1994
|
}, [])
|
|
1960
1995
|
};
|
|
1961
1996
|
}
|
|
1962
|
-
function
|
|
1997
|
+
function Cr(e) {
|
|
1963
1998
|
return e?.animationName || "none";
|
|
1964
1999
|
}
|
|
1965
|
-
function
|
|
2000
|
+
function wr(e) {
|
|
1966
2001
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1967
2002
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1968
2003
|
}
|
|
1969
2004
|
//#endregion
|
|
1970
2005
|
//#region ../../node_modules/.bun/@radix-ui+react-roving-focus@1.1.11+02ec1e885677ecfa/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
1971
|
-
var
|
|
2006
|
+
var Tr = "rovingFocusGroup.onEntryFocus", Er = {
|
|
1972
2007
|
bubbles: !1,
|
|
1973
2008
|
cancelable: !0
|
|
1974
|
-
},
|
|
2009
|
+
}, Dr = "RovingFocusGroup", [Or, kr, Ar] = L(Dr), [jr, Mr] = C(Dr, [Ar]), [Nr, Pr] = jr(Dr), Fr = i.forwardRef((e, t) => /* @__PURE__ */ d(Or.Provider, {
|
|
1975
2010
|
scope: e.__scopeRovingFocusGroup,
|
|
1976
|
-
children: /* @__PURE__ */
|
|
2011
|
+
children: /* @__PURE__ */ d(Or.Slot, {
|
|
1977
2012
|
scope: e.__scopeRovingFocusGroup,
|
|
1978
|
-
children: /* @__PURE__ */
|
|
2013
|
+
children: /* @__PURE__ */ d(Ir, {
|
|
1979
2014
|
...e,
|
|
1980
2015
|
ref: t
|
|
1981
2016
|
})
|
|
1982
2017
|
})
|
|
1983
2018
|
}));
|
|
1984
|
-
|
|
1985
|
-
var
|
|
1986
|
-
let { __scopeRovingFocusGroup: n, orientation:
|
|
2019
|
+
Fr.displayName = Dr;
|
|
2020
|
+
var Ir = i.forwardRef((e, t) => {
|
|
2021
|
+
let { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: f = !1, ...p } = e, m = i.useRef(null), h = b(t, m), g = re(o), [_, v] = D({
|
|
1987
2022
|
prop: s,
|
|
1988
2023
|
defaultProp: c ?? null,
|
|
1989
2024
|
onChange: l,
|
|
1990
|
-
caller:
|
|
1991
|
-
}), [
|
|
1992
|
-
return
|
|
2025
|
+
caller: Dr
|
|
2026
|
+
}), [y, S] = i.useState(!1), C = R(u), w = kr(n), T = i.useRef(!1), [E, O] = i.useState(0);
|
|
2027
|
+
return i.useEffect(() => {
|
|
1993
2028
|
let e = m.current;
|
|
1994
|
-
if (e) return e.addEventListener(
|
|
1995
|
-
}, [
|
|
2029
|
+
if (e) return e.addEventListener(Tr, C), () => e.removeEventListener(Tr, C);
|
|
2030
|
+
}, [C]), /* @__PURE__ */ d(Nr, {
|
|
1996
2031
|
scope: n,
|
|
1997
|
-
orientation:
|
|
1998
|
-
dir:
|
|
2032
|
+
orientation: r,
|
|
2033
|
+
dir: g,
|
|
1999
2034
|
loop: a,
|
|
2000
|
-
currentTabStopId:
|
|
2001
|
-
onItemFocus:
|
|
2002
|
-
onItemShiftTab:
|
|
2003
|
-
onFocusableItemAdd:
|
|
2004
|
-
onFocusableItemRemove:
|
|
2005
|
-
children: /* @__PURE__ */
|
|
2006
|
-
tabIndex:
|
|
2007
|
-
"data-orientation":
|
|
2035
|
+
currentTabStopId: _,
|
|
2036
|
+
onItemFocus: i.useCallback((e) => v(e), [v]),
|
|
2037
|
+
onItemShiftTab: i.useCallback(() => S(!0), []),
|
|
2038
|
+
onFocusableItemAdd: i.useCallback(() => O((e) => e + 1), []),
|
|
2039
|
+
onFocusableItemRemove: i.useCallback(() => O((e) => e - 1), []),
|
|
2040
|
+
children: /* @__PURE__ */ d(F.div, {
|
|
2041
|
+
tabIndex: y || E === 0 ? -1 : 0,
|
|
2042
|
+
"data-orientation": r,
|
|
2008
2043
|
...p,
|
|
2009
2044
|
ref: h,
|
|
2010
2045
|
style: {
|
|
2011
2046
|
outline: "none",
|
|
2012
2047
|
...e.style
|
|
2013
2048
|
},
|
|
2014
|
-
onMouseDown:
|
|
2015
|
-
|
|
2049
|
+
onMouseDown: x(e.onMouseDown, () => {
|
|
2050
|
+
T.current = !0;
|
|
2016
2051
|
}),
|
|
2017
|
-
onFocus:
|
|
2018
|
-
let t = !
|
|
2019
|
-
if (e.target === e.currentTarget && t && !
|
|
2020
|
-
let t = new CustomEvent(
|
|
2052
|
+
onFocus: x(e.onFocus, (e) => {
|
|
2053
|
+
let t = !T.current;
|
|
2054
|
+
if (e.target === e.currentTarget && t && !y) {
|
|
2055
|
+
let t = new CustomEvent(Tr, Er);
|
|
2021
2056
|
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
2022
|
-
let e =
|
|
2023
|
-
|
|
2057
|
+
let e = w().filter((e) => e.focusable);
|
|
2058
|
+
Hr([
|
|
2024
2059
|
e.find((e) => e.active),
|
|
2025
|
-
e.find((e) => e.id ===
|
|
2060
|
+
e.find((e) => e.id === _),
|
|
2026
2061
|
...e
|
|
2027
2062
|
].filter(Boolean).map((e) => e.ref.current), f);
|
|
2028
2063
|
}
|
|
2029
2064
|
}
|
|
2030
|
-
|
|
2065
|
+
T.current = !1;
|
|
2031
2066
|
}),
|
|
2032
|
-
onBlur:
|
|
2067
|
+
onBlur: x(e.onBlur, () => S(!1))
|
|
2033
2068
|
})
|
|
2034
2069
|
});
|
|
2035
|
-
}),
|
|
2036
|
-
let { __scopeRovingFocusGroup: n, focusable:
|
|
2037
|
-
return
|
|
2038
|
-
if (
|
|
2070
|
+
}), Lr = "RovingFocusGroupItem", Rr = i.forwardRef((e, t) => {
|
|
2071
|
+
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: a = !1, tabStopId: o, children: s, ...c } = e, l = Re(), u = o || l, f = Pr(Lr, n), p = f.currentTabStopId === u, m = kr(n), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: _ } = f;
|
|
2072
|
+
return i.useEffect(() => {
|
|
2073
|
+
if (r) return h(), () => g();
|
|
2039
2074
|
}, [
|
|
2040
|
-
|
|
2075
|
+
r,
|
|
2041
2076
|
h,
|
|
2042
2077
|
g
|
|
2043
|
-
]), /* @__PURE__ */
|
|
2078
|
+
]), /* @__PURE__ */ d(Or.ItemSlot, {
|
|
2044
2079
|
scope: n,
|
|
2045
|
-
id:
|
|
2046
|
-
focusable:
|
|
2080
|
+
id: u,
|
|
2081
|
+
focusable: r,
|
|
2047
2082
|
active: a,
|
|
2048
|
-
children: /* @__PURE__ */
|
|
2083
|
+
children: /* @__PURE__ */ d(F.span, {
|
|
2049
2084
|
tabIndex: p ? 0 : -1,
|
|
2050
2085
|
"data-orientation": f.orientation,
|
|
2051
2086
|
...c,
|
|
2052
2087
|
ref: t,
|
|
2053
|
-
onMouseDown:
|
|
2054
|
-
|
|
2088
|
+
onMouseDown: x(e.onMouseDown, (e) => {
|
|
2089
|
+
r ? f.onItemFocus(u) : e.preventDefault();
|
|
2055
2090
|
}),
|
|
2056
|
-
onFocus:
|
|
2057
|
-
onKeyDown:
|
|
2091
|
+
onFocus: x(e.onFocus, () => f.onItemFocus(u)),
|
|
2092
|
+
onKeyDown: x(e.onKeyDown, (e) => {
|
|
2058
2093
|
if (e.key === "Tab" && e.shiftKey) {
|
|
2059
2094
|
f.onItemShiftTab();
|
|
2060
2095
|
return;
|
|
2061
2096
|
}
|
|
2062
2097
|
if (e.target !== e.currentTarget) return;
|
|
2063
|
-
let t =
|
|
2098
|
+
let t = Vr(e, f.orientation, f.dir);
|
|
2064
2099
|
if (t !== void 0) {
|
|
2065
2100
|
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
2066
2101
|
e.preventDefault();
|
|
@@ -2069,20 +2104,20 @@ var Nr = r.forwardRef((e, t) => {
|
|
|
2069
2104
|
else if (t === "prev" || t === "next") {
|
|
2070
2105
|
t === "prev" && n.reverse();
|
|
2071
2106
|
let r = n.indexOf(e.currentTarget);
|
|
2072
|
-
n = f.loop ?
|
|
2107
|
+
n = f.loop ? Ur(n, r + 1) : n.slice(r + 1);
|
|
2073
2108
|
}
|
|
2074
|
-
setTimeout(() =>
|
|
2109
|
+
setTimeout(() => Hr(n));
|
|
2075
2110
|
}
|
|
2076
2111
|
}),
|
|
2077
2112
|
children: typeof s == "function" ? s({
|
|
2078
2113
|
isCurrentTabStop: p,
|
|
2079
|
-
hasTabStop:
|
|
2114
|
+
hasTabStop: _ != null
|
|
2080
2115
|
}) : s
|
|
2081
2116
|
})
|
|
2082
2117
|
});
|
|
2083
2118
|
});
|
|
2084
|
-
|
|
2085
|
-
var
|
|
2119
|
+
Rr.displayName = Lr;
|
|
2120
|
+
var zr = {
|
|
2086
2121
|
ArrowLeft: "prev",
|
|
2087
2122
|
ArrowUp: "prev",
|
|
2088
2123
|
ArrowRight: "next",
|
|
@@ -2092,36 +2127,36 @@ var Ir = {
|
|
|
2092
2127
|
PageDown: "last",
|
|
2093
2128
|
End: "last"
|
|
2094
2129
|
};
|
|
2095
|
-
function
|
|
2130
|
+
function Br(e, t) {
|
|
2096
2131
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
2097
2132
|
}
|
|
2098
|
-
function
|
|
2099
|
-
let r =
|
|
2100
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
2133
|
+
function Vr(e, t, n) {
|
|
2134
|
+
let r = Br(e.key, n);
|
|
2135
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return zr[r];
|
|
2101
2136
|
}
|
|
2102
|
-
function
|
|
2137
|
+
function Hr(e, t = !1) {
|
|
2103
2138
|
let n = document.activeElement;
|
|
2104
2139
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
2105
2140
|
}
|
|
2106
|
-
function
|
|
2141
|
+
function Ur(e, t) {
|
|
2107
2142
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
2108
2143
|
}
|
|
2109
|
-
var
|
|
2144
|
+
var Wr = Fr, Gr = Rr, Kr = function(e) {
|
|
2110
2145
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
2111
|
-
},
|
|
2112
|
-
return e && (e.host ||
|
|
2113
|
-
},
|
|
2146
|
+
}, qr = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), Yr = {}, Xr = 0, Zr = function(e) {
|
|
2147
|
+
return e && (e.host || Zr(e.parentNode));
|
|
2148
|
+
}, Qr = function(e, t) {
|
|
2114
2149
|
return t.map(function(t) {
|
|
2115
2150
|
if (e.contains(t)) return t;
|
|
2116
|
-
var n =
|
|
2151
|
+
var n = Zr(t);
|
|
2117
2152
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
2118
2153
|
}).filter(function(e) {
|
|
2119
2154
|
return !!e;
|
|
2120
2155
|
});
|
|
2121
|
-
},
|
|
2122
|
-
var i =
|
|
2123
|
-
|
|
2124
|
-
var a =
|
|
2156
|
+
}, $r = function(e, t, n, r) {
|
|
2157
|
+
var i = Qr(t, Array.isArray(e) ? e : [e]);
|
|
2158
|
+
Yr[n] || (Yr[n] = /* @__PURE__ */ new WeakMap());
|
|
2159
|
+
var a = Yr[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
2125
2160
|
e && !s.has(e) && (s.add(e), l(e.parentNode));
|
|
2126
2161
|
};
|
|
2127
2162
|
i.forEach(l);
|
|
@@ -2129,53 +2164,53 @@ var Vr = Mr, Hr = Fr, Ur = function(e) {
|
|
|
2129
2164
|
e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
|
|
2130
2165
|
if (s.has(e)) u(e);
|
|
2131
2166
|
else try {
|
|
2132
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
2133
|
-
|
|
2167
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (qr.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
2168
|
+
qr.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Jr.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
2134
2169
|
} catch (t) {
|
|
2135
2170
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
2136
2171
|
}
|
|
2137
2172
|
});
|
|
2138
2173
|
};
|
|
2139
|
-
return u(t), s.clear(),
|
|
2174
|
+
return u(t), s.clear(), Xr++, function() {
|
|
2140
2175
|
o.forEach(function(e) {
|
|
2141
|
-
var t =
|
|
2142
|
-
|
|
2143
|
-
}),
|
|
2176
|
+
var t = qr.get(e) - 1, i = a.get(e) - 1;
|
|
2177
|
+
qr.set(e, t), a.set(e, i), t || (Jr.has(e) || e.removeAttribute(r), Jr.delete(e)), i || e.removeAttribute(n);
|
|
2178
|
+
}), Xr--, Xr || (qr = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), Yr = {});
|
|
2144
2179
|
};
|
|
2145
|
-
},
|
|
2180
|
+
}, ei = function(e, t, n) {
|
|
2146
2181
|
n === void 0 && (n = "data-aria-hidden");
|
|
2147
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
2148
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
2182
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Kr(e);
|
|
2183
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), $r(r, i, n, "aria-hidden")) : function() {
|
|
2149
2184
|
return null;
|
|
2150
2185
|
};
|
|
2151
|
-
},
|
|
2152
|
-
return
|
|
2186
|
+
}, Z = function() {
|
|
2187
|
+
return Z = Object.assign || function(e) {
|
|
2153
2188
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2154
2189
|
return e;
|
|
2155
|
-
},
|
|
2190
|
+
}, Z.apply(this, arguments);
|
|
2156
2191
|
};
|
|
2157
|
-
function
|
|
2192
|
+
function ti(e, t) {
|
|
2158
2193
|
var n = {};
|
|
2159
2194
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2160
2195
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
2161
2196
|
return n;
|
|
2162
2197
|
}
|
|
2163
|
-
function
|
|
2198
|
+
function ni(e, t, n) {
|
|
2164
2199
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
2165
2200
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2166
2201
|
}
|
|
2167
2202
|
//#endregion
|
|
2168
2203
|
//#region ../../node_modules/.bun/react-remove-scroll-bar@2.3.8+ec078f7ced36dfee/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
2169
|
-
var
|
|
2204
|
+
var ri = "right-scroll-bar-position", ii = "width-before-scroll-bar", ai = "with-scroll-bars-hidden", oi = "--removed-body-scroll-bar-size";
|
|
2170
2205
|
//#endregion
|
|
2171
2206
|
//#region ../../node_modules/.bun/use-callback-ref@1.3.3+ec078f7ced36dfee/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
2172
|
-
function
|
|
2207
|
+
function si(e, t) {
|
|
2173
2208
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2174
2209
|
}
|
|
2175
2210
|
//#endregion
|
|
2176
2211
|
//#region ../../node_modules/.bun/use-callback-ref@1.3.3+ec078f7ced36dfee/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
2177
|
-
function
|
|
2178
|
-
var n =
|
|
2212
|
+
function ci(e, t) {
|
|
2213
|
+
var n = u(function() {
|
|
2179
2214
|
return {
|
|
2180
2215
|
value: e,
|
|
2181
2216
|
callback: t,
|
|
@@ -2194,33 +2229,33 @@ function ai(e, t) {
|
|
|
2194
2229
|
}
|
|
2195
2230
|
//#endregion
|
|
2196
2231
|
//#region ../../node_modules/.bun/use-callback-ref@1.3.3+ec078f7ced36dfee/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
2197
|
-
var
|
|
2198
|
-
function
|
|
2199
|
-
var n =
|
|
2232
|
+
var li = typeof window < "u" ? i.useLayoutEffect : i.useEffect, ui = /* @__PURE__ */ new WeakMap();
|
|
2233
|
+
function di(e, t) {
|
|
2234
|
+
var n = ci(t || null, function(t) {
|
|
2200
2235
|
return e.forEach(function(e) {
|
|
2201
|
-
return
|
|
2236
|
+
return si(e, t);
|
|
2202
2237
|
});
|
|
2203
2238
|
});
|
|
2204
|
-
return
|
|
2205
|
-
var t =
|
|
2239
|
+
return li(function() {
|
|
2240
|
+
var t = ui.get(n);
|
|
2206
2241
|
if (t) {
|
|
2207
2242
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
2208
2243
|
r.forEach(function(e) {
|
|
2209
|
-
i.has(e) ||
|
|
2244
|
+
i.has(e) || si(e, null);
|
|
2210
2245
|
}), i.forEach(function(e) {
|
|
2211
|
-
r.has(e) ||
|
|
2246
|
+
r.has(e) || si(e, a);
|
|
2212
2247
|
});
|
|
2213
2248
|
}
|
|
2214
|
-
|
|
2249
|
+
ui.set(n, e);
|
|
2215
2250
|
}, [e]), n;
|
|
2216
2251
|
}
|
|
2217
2252
|
//#endregion
|
|
2218
2253
|
//#region ../../node_modules/.bun/use-sidecar@1.1.3+ec078f7ced36dfee/node_modules/use-sidecar/dist/es2015/medium.js
|
|
2219
|
-
function
|
|
2254
|
+
function fi(e) {
|
|
2220
2255
|
return e;
|
|
2221
2256
|
}
|
|
2222
|
-
function
|
|
2223
|
-
t === void 0 && (t =
|
|
2257
|
+
function pi(e, t) {
|
|
2258
|
+
t === void 0 && (t = fi);
|
|
2224
2259
|
var n = [], r = !1;
|
|
2225
2260
|
return {
|
|
2226
2261
|
read: function() {
|
|
@@ -2273,35 +2308,35 @@ function ui(e, t) {
|
|
|
2273
2308
|
}
|
|
2274
2309
|
};
|
|
2275
2310
|
}
|
|
2276
|
-
function
|
|
2311
|
+
function mi(e) {
|
|
2277
2312
|
e === void 0 && (e = {});
|
|
2278
|
-
var t =
|
|
2279
|
-
return t.options =
|
|
2313
|
+
var t = pi(null);
|
|
2314
|
+
return t.options = Z({
|
|
2280
2315
|
async: !0,
|
|
2281
2316
|
ssr: !1
|
|
2282
2317
|
}, e), t;
|
|
2283
2318
|
}
|
|
2284
2319
|
//#endregion
|
|
2285
2320
|
//#region ../../node_modules/.bun/use-sidecar@1.1.3+ec078f7ced36dfee/node_modules/use-sidecar/dist/es2015/exports.js
|
|
2286
|
-
var
|
|
2287
|
-
var t = e.sideCar, n =
|
|
2321
|
+
var hi = function(e) {
|
|
2322
|
+
var t = e.sideCar, n = ti(e, ["sideCar"]);
|
|
2288
2323
|
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2289
|
-
var
|
|
2290
|
-
if (!
|
|
2291
|
-
return
|
|
2324
|
+
var r = t.read();
|
|
2325
|
+
if (!r) throw Error("Sidecar medium not found");
|
|
2326
|
+
return i.createElement(r, Z({}, n));
|
|
2292
2327
|
};
|
|
2293
|
-
|
|
2294
|
-
function
|
|
2295
|
-
return e.useMedium(t),
|
|
2328
|
+
hi.isSideCarExport = !0;
|
|
2329
|
+
function gi(e, t) {
|
|
2330
|
+
return e.useMedium(t), hi;
|
|
2296
2331
|
}
|
|
2297
2332
|
//#endregion
|
|
2298
2333
|
//#region ../../node_modules/.bun/react-remove-scroll@2.7.1+ec078f7ced36dfee/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
2299
|
-
var
|
|
2300
|
-
var n =
|
|
2301
|
-
onScrollCapture:
|
|
2302
|
-
onWheelCapture:
|
|
2303
|
-
onTouchMoveCapture:
|
|
2304
|
-
}), a =
|
|
2334
|
+
var _i = mi(), vi = function() {}, yi = i.forwardRef(function(e, t) {
|
|
2335
|
+
var n = i.useRef(null), r = i.useState({
|
|
2336
|
+
onScrollCapture: vi,
|
|
2337
|
+
onWheelCapture: vi,
|
|
2338
|
+
onTouchMoveCapture: vi
|
|
2339
|
+
}), a = r[0], o = r[1], s = e.forwardProps, c = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, m = e.noRelative, h = e.noIsolation, g = e.inert, _ = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, b = e.gapMode, x = ti(e, [
|
|
2305
2340
|
"forwardProps",
|
|
2306
2341
|
"children",
|
|
2307
2342
|
"className",
|
|
@@ -2315,9 +2350,9 @@ var mi = di(), hi = function() {}, gi = r.forwardRef(function(e, t) {
|
|
|
2315
2350
|
"allowPinchZoom",
|
|
2316
2351
|
"as",
|
|
2317
2352
|
"gapMode"
|
|
2318
|
-
]), S = p, C =
|
|
2319
|
-
return
|
|
2320
|
-
sideCar:
|
|
2353
|
+
]), S = p, C = di([n, t]), w = Z(Z({}, x), a);
|
|
2354
|
+
return i.createElement(i.Fragment, null, d && i.createElement(S, {
|
|
2355
|
+
sideCar: _i,
|
|
2321
2356
|
removeScrollBar: u,
|
|
2322
2357
|
shards: f,
|
|
2323
2358
|
noRelative: m,
|
|
@@ -2327,95 +2362,95 @@ var mi = di(), hi = function() {}, gi = r.forwardRef(function(e, t) {
|
|
|
2327
2362
|
allowPinchZoom: !!_,
|
|
2328
2363
|
lockRef: n,
|
|
2329
2364
|
gapMode: b
|
|
2330
|
-
}), s ?
|
|
2365
|
+
}), s ? i.cloneElement(i.Children.only(c), Z(Z({}, w), { ref: C })) : i.createElement(y, Z({}, w, {
|
|
2331
2366
|
className: l,
|
|
2332
2367
|
ref: C
|
|
2333
2368
|
}), c));
|
|
2334
2369
|
});
|
|
2335
|
-
|
|
2370
|
+
yi.defaultProps = {
|
|
2336
2371
|
enabled: !0,
|
|
2337
2372
|
removeScrollBar: !0,
|
|
2338
2373
|
inert: !1
|
|
2339
|
-
},
|
|
2340
|
-
fullWidth:
|
|
2341
|
-
zeroRight:
|
|
2374
|
+
}, yi.classNames = {
|
|
2375
|
+
fullWidth: ii,
|
|
2376
|
+
zeroRight: ri
|
|
2342
2377
|
};
|
|
2343
2378
|
//#endregion
|
|
2344
2379
|
//#region ../../node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
2345
|
-
var
|
|
2380
|
+
var bi = function() {
|
|
2346
2381
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
2347
2382
|
};
|
|
2348
2383
|
//#endregion
|
|
2349
2384
|
//#region ../../node_modules/.bun/react-style-singleton@2.2.3+ec078f7ced36dfee/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
2350
|
-
function
|
|
2385
|
+
function xi() {
|
|
2351
2386
|
if (!document) return null;
|
|
2352
2387
|
var e = document.createElement("style");
|
|
2353
2388
|
e.type = "text/css";
|
|
2354
|
-
var t =
|
|
2389
|
+
var t = bi();
|
|
2355
2390
|
return t && e.setAttribute("nonce", t), e;
|
|
2356
2391
|
}
|
|
2357
|
-
function
|
|
2392
|
+
function Si(e, t) {
|
|
2358
2393
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2359
2394
|
}
|
|
2360
|
-
function
|
|
2395
|
+
function Ci(e) {
|
|
2361
2396
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
2362
2397
|
}
|
|
2363
|
-
var
|
|
2398
|
+
var wi = function() {
|
|
2364
2399
|
var e = 0, t = null;
|
|
2365
2400
|
return {
|
|
2366
2401
|
add: function(n) {
|
|
2367
|
-
e == 0 && (t =
|
|
2402
|
+
e == 0 && (t = xi()) && (Si(t, n), Ci(t)), e++;
|
|
2368
2403
|
},
|
|
2369
2404
|
remove: function() {
|
|
2370
2405
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2371
2406
|
}
|
|
2372
2407
|
};
|
|
2373
|
-
},
|
|
2374
|
-
var e =
|
|
2408
|
+
}, Ti = function() {
|
|
2409
|
+
var e = wi();
|
|
2375
2410
|
return function(t, n) {
|
|
2376
|
-
|
|
2411
|
+
i.useEffect(function() {
|
|
2377
2412
|
return e.add(t), function() {
|
|
2378
2413
|
e.remove();
|
|
2379
2414
|
};
|
|
2380
2415
|
}, [t && n]);
|
|
2381
2416
|
};
|
|
2382
|
-
},
|
|
2383
|
-
var e =
|
|
2417
|
+
}, Ei = function() {
|
|
2418
|
+
var e = Ti();
|
|
2384
2419
|
return function(t) {
|
|
2385
2420
|
var n = t.styles, r = t.dynamic;
|
|
2386
2421
|
return e(n, r), null;
|
|
2387
2422
|
};
|
|
2388
|
-
},
|
|
2423
|
+
}, Di = {
|
|
2389
2424
|
left: 0,
|
|
2390
2425
|
top: 0,
|
|
2391
2426
|
right: 0,
|
|
2392
2427
|
gap: 0
|
|
2393
|
-
},
|
|
2428
|
+
}, Oi = function(e) {
|
|
2394
2429
|
return parseInt(e || "", 10) || 0;
|
|
2395
|
-
},
|
|
2430
|
+
}, ki = function(e) {
|
|
2396
2431
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2397
2432
|
return [
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2433
|
+
Oi(n),
|
|
2434
|
+
Oi(r),
|
|
2435
|
+
Oi(i)
|
|
2401
2436
|
];
|
|
2402
|
-
},
|
|
2403
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
2404
|
-
var t =
|
|
2437
|
+
}, Ai = function(e) {
|
|
2438
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return Di;
|
|
2439
|
+
var t = ki(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2405
2440
|
return {
|
|
2406
2441
|
left: t[0],
|
|
2407
2442
|
top: t[1],
|
|
2408
2443
|
right: t[2],
|
|
2409
2444
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2410
2445
|
};
|
|
2411
|
-
},
|
|
2446
|
+
}, ji = Ei(), Mi = "data-scroll-locked", Ni = function(e, t, n, r) {
|
|
2412
2447
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
2413
2448
|
return n === void 0 && (n = "margin"), `
|
|
2414
|
-
.${
|
|
2449
|
+
.${ai} {
|
|
2415
2450
|
overflow: hidden ${r};
|
|
2416
2451
|
padding-right: ${s}px ${r};
|
|
2417
2452
|
}
|
|
2418
|
-
body[${
|
|
2453
|
+
body[${Mi}] {
|
|
2419
2454
|
overflow: hidden ${r};
|
|
2420
2455
|
overscroll-behavior: contain;
|
|
2421
2456
|
${[
|
|
@@ -2432,122 +2467,122 @@ var xi = function() {
|
|
|
2432
2467
|
].filter(Boolean).join("")}
|
|
2433
2468
|
}
|
|
2434
2469
|
|
|
2435
|
-
.${
|
|
2470
|
+
.${ri} {
|
|
2436
2471
|
right: ${s}px ${r};
|
|
2437
2472
|
}
|
|
2438
2473
|
|
|
2439
|
-
.${
|
|
2474
|
+
.${ii} {
|
|
2440
2475
|
margin-right: ${s}px ${r};
|
|
2441
2476
|
}
|
|
2442
2477
|
|
|
2443
|
-
.${
|
|
2478
|
+
.${ri} .${ri} {
|
|
2444
2479
|
right: 0 ${r};
|
|
2445
2480
|
}
|
|
2446
2481
|
|
|
2447
|
-
.${
|
|
2482
|
+
.${ii} .${ii} {
|
|
2448
2483
|
margin-right: 0 ${r};
|
|
2449
2484
|
}
|
|
2450
2485
|
|
|
2451
|
-
body[${
|
|
2452
|
-
${
|
|
2486
|
+
body[${Mi}] {
|
|
2487
|
+
${oi}: ${s}px;
|
|
2453
2488
|
}
|
|
2454
2489
|
`;
|
|
2455
|
-
},
|
|
2490
|
+
}, Pi = function() {
|
|
2456
2491
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
2457
2492
|
return isFinite(e) ? e : 0;
|
|
2458
|
-
},
|
|
2459
|
-
|
|
2460
|
-
return document.body.setAttribute(
|
|
2461
|
-
var e =
|
|
2462
|
-
e <= 0 ? document.body.removeAttribute(
|
|
2493
|
+
}, Fi = function() {
|
|
2494
|
+
i.useEffect(function() {
|
|
2495
|
+
return document.body.setAttribute(Mi, (Pi() + 1).toString()), function() {
|
|
2496
|
+
var e = Pi() - 1;
|
|
2497
|
+
e <= 0 ? document.body.removeAttribute(Mi) : document.body.setAttribute(Mi, e.toString());
|
|
2463
2498
|
};
|
|
2464
2499
|
}, []);
|
|
2465
|
-
},
|
|
2466
|
-
var t = e.noRelative, n = e.noImportant,
|
|
2467
|
-
|
|
2468
|
-
var o =
|
|
2469
|
-
return
|
|
2500
|
+
}, Ii = function(e) {
|
|
2501
|
+
var t = e.noRelative, n = e.noImportant, r = e.gapMode, a = r === void 0 ? "margin" : r;
|
|
2502
|
+
Fi();
|
|
2503
|
+
var o = i.useMemo(function() {
|
|
2504
|
+
return Ai(a);
|
|
2470
2505
|
}, [a]);
|
|
2471
|
-
return
|
|
2472
|
-
},
|
|
2506
|
+
return i.createElement(ji, { styles: Ni(o, !t, a, n ? "" : "!important") });
|
|
2507
|
+
}, Li = !1;
|
|
2473
2508
|
if (typeof window < "u") try {
|
|
2474
|
-
var
|
|
2475
|
-
return
|
|
2509
|
+
var Ri = Object.defineProperty({}, "passive", { get: function() {
|
|
2510
|
+
return Li = !0, !0;
|
|
2476
2511
|
} });
|
|
2477
|
-
window.addEventListener("test",
|
|
2512
|
+
window.addEventListener("test", Ri, Ri), window.removeEventListener("test", Ri, Ri);
|
|
2478
2513
|
} catch {
|
|
2479
|
-
|
|
2514
|
+
Li = !1;
|
|
2480
2515
|
}
|
|
2481
|
-
var
|
|
2516
|
+
var zi = Li ? { passive: !1 } : !1, Bi = function(e) {
|
|
2482
2517
|
return e.tagName === "TEXTAREA";
|
|
2483
|
-
},
|
|
2518
|
+
}, Vi = function(e, t) {
|
|
2484
2519
|
if (!(e instanceof Element)) return !1;
|
|
2485
2520
|
var n = window.getComputedStyle(e);
|
|
2486
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
2487
|
-
},
|
|
2488
|
-
return
|
|
2489
|
-
},
|
|
2490
|
-
return
|
|
2491
|
-
},
|
|
2521
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !Bi(e) && n[t] === "visible");
|
|
2522
|
+
}, Hi = function(e) {
|
|
2523
|
+
return Vi(e, "overflowY");
|
|
2524
|
+
}, Ui = function(e) {
|
|
2525
|
+
return Vi(e, "overflowX");
|
|
2526
|
+
}, Wi = function(e, t) {
|
|
2492
2527
|
var n = t.ownerDocument, r = t;
|
|
2493
2528
|
do {
|
|
2494
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
2495
|
-
var i =
|
|
2529
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), qi(e, r)) {
|
|
2530
|
+
var i = Ji(e, r);
|
|
2496
2531
|
if (i[1] > i[2]) return !0;
|
|
2497
2532
|
}
|
|
2498
2533
|
r = r.parentNode;
|
|
2499
2534
|
} while (r && r !== n.body);
|
|
2500
2535
|
return !1;
|
|
2501
|
-
},
|
|
2536
|
+
}, Gi = function(e) {
|
|
2502
2537
|
return [
|
|
2503
2538
|
e.scrollTop,
|
|
2504
2539
|
e.scrollHeight,
|
|
2505
2540
|
e.clientHeight
|
|
2506
2541
|
];
|
|
2507
|
-
},
|
|
2542
|
+
}, Ki = function(e) {
|
|
2508
2543
|
return [
|
|
2509
2544
|
e.scrollLeft,
|
|
2510
2545
|
e.scrollWidth,
|
|
2511
2546
|
e.clientWidth
|
|
2512
2547
|
];
|
|
2513
|
-
},
|
|
2514
|
-
return e === "v" ? zi(t) : Bi(t);
|
|
2515
|
-
}, Gi = function(e, t) {
|
|
2548
|
+
}, qi = function(e, t) {
|
|
2516
2549
|
return e === "v" ? Hi(t) : Ui(t);
|
|
2517
|
-
},
|
|
2550
|
+
}, Ji = function(e, t) {
|
|
2551
|
+
return e === "v" ? Gi(t) : Ki(t);
|
|
2552
|
+
}, Yi = function(e, t) {
|
|
2518
2553
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2519
|
-
},
|
|
2520
|
-
var a =
|
|
2554
|
+
}, Xi = function(e, t, n, r, i) {
|
|
2555
|
+
var a = Yi(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
2521
2556
|
do {
|
|
2522
2557
|
if (!s) break;
|
|
2523
|
-
var p =
|
|
2524
|
-
(m || h) &&
|
|
2558
|
+
var p = Ji(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
2559
|
+
(m || h) && qi(e, s) && (d += h, f += m);
|
|
2525
2560
|
var g = s.parentNode;
|
|
2526
2561
|
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
2527
2562
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
2528
2563
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
2529
|
-
},
|
|
2564
|
+
}, Zi = function(e) {
|
|
2530
2565
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2531
|
-
},
|
|
2566
|
+
}, Qi = function(e) {
|
|
2532
2567
|
return [e.deltaX, e.deltaY];
|
|
2533
|
-
},
|
|
2568
|
+
}, $i = function(e) {
|
|
2534
2569
|
return e && "current" in e ? e.current : e;
|
|
2535
|
-
},
|
|
2570
|
+
}, ea = function(e, t) {
|
|
2536
2571
|
return e[0] === t[0] && e[1] === t[1];
|
|
2537
|
-
},
|
|
2572
|
+
}, ta = function(e) {
|
|
2538
2573
|
return `
|
|
2539
2574
|
.block-interactivity-${e} {pointer-events: none;}
|
|
2540
2575
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
2541
2576
|
`;
|
|
2542
|
-
},
|
|
2543
|
-
function
|
|
2544
|
-
var t =
|
|
2545
|
-
|
|
2577
|
+
}, na = 0, ra = [];
|
|
2578
|
+
function ia(e) {
|
|
2579
|
+
var t = i.useRef([]), n = i.useRef([0, 0]), r = i.useRef(), a = i.useState(na++)[0], o = i.useState(Ei)[0], s = i.useRef(e);
|
|
2580
|
+
i.useEffect(function() {
|
|
2546
2581
|
s.current = e;
|
|
2547
|
-
}, [e]),
|
|
2582
|
+
}, [e]), i.useEffect(function() {
|
|
2548
2583
|
if (e.inert) {
|
|
2549
2584
|
document.body.classList.add(`block-interactivity-${a}`);
|
|
2550
|
-
var t =
|
|
2585
|
+
var t = ni([e.lockRef.current], (e.shards || []).map($i), !0).filter(Boolean);
|
|
2551
2586
|
return t.forEach(function(e) {
|
|
2552
2587
|
return e.classList.add(`allow-interactivity-${a}`);
|
|
2553
2588
|
}), function() {
|
|
@@ -2561,103 +2596,103 @@ function ta(e) {
|
|
|
2561
2596
|
e.lockRef.current,
|
|
2562
2597
|
e.shards
|
|
2563
2598
|
]);
|
|
2564
|
-
var c =
|
|
2599
|
+
var c = i.useCallback(function(e, t) {
|
|
2565
2600
|
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !s.current.allowPinchZoom;
|
|
2566
|
-
var
|
|
2601
|
+
var i = Zi(e), a = n.current, o = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
2567
2602
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
2568
|
-
var f =
|
|
2603
|
+
var f = Wi(d, u);
|
|
2569
2604
|
if (!f) return !0;
|
|
2570
|
-
if (f ? l = d : (l = d === "v" ? "h" : "v", f =
|
|
2571
|
-
if (!
|
|
2572
|
-
var p =
|
|
2573
|
-
return
|
|
2574
|
-
}, []), l =
|
|
2605
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = Wi(d, u)), !f) return !1;
|
|
2606
|
+
if (!r.current && "changedTouches" in e && (o || c) && (r.current = l), !l) return !0;
|
|
2607
|
+
var p = r.current || l;
|
|
2608
|
+
return Xi(p, t, e, p === "h" ? o : c, !0);
|
|
2609
|
+
}, []), l = i.useCallback(function(e) {
|
|
2575
2610
|
var n = e;
|
|
2576
|
-
if (
|
|
2577
|
-
var r = "deltaY" in n ?
|
|
2578
|
-
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) &&
|
|
2611
|
+
if (ra.length && ra[ra.length - 1] === o) {
|
|
2612
|
+
var r = "deltaY" in n ? Qi(n) : Zi(n), i = t.current.filter(function(e) {
|
|
2613
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && ea(e.delta, r);
|
|
2579
2614
|
})[0];
|
|
2580
2615
|
if (i && i.should) n.cancelable && n.preventDefault();
|
|
2581
2616
|
else if (!i) {
|
|
2582
|
-
var a = (s.current.shards || []).map(
|
|
2617
|
+
var a = (s.current.shards || []).map($i).filter(Boolean).filter(function(e) {
|
|
2583
2618
|
return e.contains(n.target);
|
|
2584
2619
|
});
|
|
2585
2620
|
(a.length > 0 ? c(n, a[0]) : !s.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
2586
2621
|
}
|
|
2587
2622
|
}
|
|
2588
|
-
}, []), u =
|
|
2623
|
+
}, []), u = i.useCallback(function(e, n, r, i) {
|
|
2589
2624
|
var a = {
|
|
2590
2625
|
name: e,
|
|
2591
2626
|
delta: n,
|
|
2592
2627
|
target: r,
|
|
2593
2628
|
should: i,
|
|
2594
|
-
shadowParent:
|
|
2629
|
+
shadowParent: aa(r)
|
|
2595
2630
|
};
|
|
2596
2631
|
t.current.push(a), setTimeout(function() {
|
|
2597
2632
|
t.current = t.current.filter(function(e) {
|
|
2598
2633
|
return e !== a;
|
|
2599
2634
|
});
|
|
2600
2635
|
}, 1);
|
|
2601
|
-
}, []), d =
|
|
2602
|
-
n.current =
|
|
2603
|
-
}, []), f =
|
|
2604
|
-
u(t.type,
|
|
2605
|
-
}, []), p =
|
|
2606
|
-
u(t.type,
|
|
2636
|
+
}, []), d = i.useCallback(function(e) {
|
|
2637
|
+
n.current = Zi(e), r.current = void 0;
|
|
2638
|
+
}, []), f = i.useCallback(function(t) {
|
|
2639
|
+
u(t.type, Qi(t), t.target, c(t, e.lockRef.current));
|
|
2640
|
+
}, []), p = i.useCallback(function(t) {
|
|
2641
|
+
u(t.type, Zi(t), t.target, c(t, e.lockRef.current));
|
|
2607
2642
|
}, []);
|
|
2608
|
-
|
|
2609
|
-
return
|
|
2643
|
+
i.useEffect(function() {
|
|
2644
|
+
return ra.push(o), e.setCallbacks({
|
|
2610
2645
|
onScrollCapture: f,
|
|
2611
2646
|
onWheelCapture: f,
|
|
2612
2647
|
onTouchMoveCapture: p
|
|
2613
|
-
}), document.addEventListener("wheel", l,
|
|
2614
|
-
|
|
2648
|
+
}), document.addEventListener("wheel", l, zi), document.addEventListener("touchmove", l, zi), document.addEventListener("touchstart", d, zi), function() {
|
|
2649
|
+
ra = ra.filter(function(e) {
|
|
2615
2650
|
return e !== o;
|
|
2616
|
-
}), document.removeEventListener("wheel", l,
|
|
2651
|
+
}), document.removeEventListener("wheel", l, zi), document.removeEventListener("touchmove", l, zi), document.removeEventListener("touchstart", d, zi);
|
|
2617
2652
|
};
|
|
2618
2653
|
}, []);
|
|
2619
2654
|
var m = e.removeScrollBar, h = e.inert;
|
|
2620
|
-
return
|
|
2655
|
+
return i.createElement(i.Fragment, null, h ? i.createElement(o, { styles: ta(a) }) : null, m ? i.createElement(Ii, {
|
|
2621
2656
|
noRelative: e.noRelative,
|
|
2622
2657
|
gapMode: e.gapMode
|
|
2623
2658
|
}) : null);
|
|
2624
2659
|
}
|
|
2625
|
-
function
|
|
2660
|
+
function aa(e) {
|
|
2626
2661
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
2627
2662
|
return t;
|
|
2628
2663
|
}
|
|
2629
2664
|
//#endregion
|
|
2630
2665
|
//#region ../../node_modules/.bun/react-remove-scroll@2.7.1+ec078f7ced36dfee/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
2631
|
-
var
|
|
2632
|
-
return
|
|
2666
|
+
var oa = gi(_i, ia), sa = i.forwardRef(function(e, t) {
|
|
2667
|
+
return i.createElement(yi, Z({}, e, {
|
|
2633
2668
|
ref: t,
|
|
2634
|
-
sideCar:
|
|
2669
|
+
sideCar: oa
|
|
2635
2670
|
}));
|
|
2636
2671
|
});
|
|
2637
|
-
|
|
2672
|
+
sa.classNames = yi.classNames;
|
|
2638
2673
|
//#endregion
|
|
2639
2674
|
//#region ../../node_modules/.bun/@radix-ui+react-menu@2.1.16+02ec1e885677ecfa/node_modules/@radix-ui/react-menu/dist/index.mjs
|
|
2640
|
-
var
|
|
2675
|
+
var ca = ["Enter", " "], la = [
|
|
2641
2676
|
"ArrowDown",
|
|
2642
2677
|
"PageUp",
|
|
2643
2678
|
"Home"
|
|
2644
|
-
],
|
|
2679
|
+
], ua = [
|
|
2645
2680
|
"ArrowUp",
|
|
2646
2681
|
"PageDown",
|
|
2647
2682
|
"End"
|
|
2648
|
-
],
|
|
2649
|
-
ltr: [...
|
|
2650
|
-
rtl: [...
|
|
2651
|
-
},
|
|
2683
|
+
], da = [...la, ...ua], fa = {
|
|
2684
|
+
ltr: [...ca, "ArrowRight"],
|
|
2685
|
+
rtl: [...ca, "ArrowLeft"]
|
|
2686
|
+
}, pa = {
|
|
2652
2687
|
ltr: ["ArrowLeft"],
|
|
2653
2688
|
rtl: ["ArrowRight"]
|
|
2654
|
-
},
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
]),
|
|
2659
|
-
let { __scopeMenu: t, open: n = !1, children:
|
|
2660
|
-
return
|
|
2689
|
+
}, ma = "Menu", [ha, ga, _a] = L(ma), [va, ya] = C(ma, [
|
|
2690
|
+
_a,
|
|
2691
|
+
Qn,
|
|
2692
|
+
Mr
|
|
2693
|
+
]), ba = Qn(), xa = Mr(), [Sa, Ca] = va(ma), [wa, Ta] = va(ma), Ea = (e) => {
|
|
2694
|
+
let { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: o, modal: s = !0 } = e, c = ba(t), [l, u] = i.useState(null), f = i.useRef(!1), p = R(o), m = re(a);
|
|
2695
|
+
return i.useEffect(() => {
|
|
2661
2696
|
let e = () => {
|
|
2662
2697
|
f.current = !0, document.addEventListener("pointerdown", t, {
|
|
2663
2698
|
capture: !0,
|
|
@@ -2670,43 +2705,43 @@ var aa = ["Enter", " "], oa = [
|
|
|
2670
2705
|
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
2671
2706
|
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
2672
2707
|
};
|
|
2673
|
-
}, []), /* @__PURE__ */
|
|
2708
|
+
}, []), /* @__PURE__ */ d(mr, {
|
|
2674
2709
|
...c,
|
|
2675
|
-
children: /* @__PURE__ */
|
|
2710
|
+
children: /* @__PURE__ */ d(Sa, {
|
|
2676
2711
|
scope: t,
|
|
2677
2712
|
open: n,
|
|
2678
2713
|
onOpenChange: p,
|
|
2679
2714
|
content: l,
|
|
2680
|
-
onContentChange:
|
|
2681
|
-
children: /* @__PURE__ */
|
|
2715
|
+
onContentChange: u,
|
|
2716
|
+
children: /* @__PURE__ */ d(wa, {
|
|
2682
2717
|
scope: t,
|
|
2683
|
-
onClose:
|
|
2718
|
+
onClose: i.useCallback(() => p(!1), [p]),
|
|
2684
2719
|
isUsingKeyboardRef: f,
|
|
2685
2720
|
dir: m,
|
|
2686
2721
|
modal: s,
|
|
2687
|
-
children:
|
|
2722
|
+
children: r
|
|
2688
2723
|
})
|
|
2689
2724
|
})
|
|
2690
2725
|
});
|
|
2691
2726
|
};
|
|
2692
|
-
|
|
2693
|
-
var
|
|
2694
|
-
let { __scopeMenu: n, ...r } = e, i =
|
|
2695
|
-
return /* @__PURE__ */
|
|
2727
|
+
Ea.displayName = ma;
|
|
2728
|
+
var Da = "MenuAnchor", Oa = i.forwardRef((e, t) => {
|
|
2729
|
+
let { __scopeMenu: n, ...r } = e, i = ba(n);
|
|
2730
|
+
return /* @__PURE__ */ d(hr, {
|
|
2696
2731
|
...i,
|
|
2697
2732
|
...r,
|
|
2698
2733
|
ref: t
|
|
2699
2734
|
});
|
|
2700
2735
|
});
|
|
2701
|
-
|
|
2702
|
-
var
|
|
2703
|
-
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a =
|
|
2704
|
-
return /* @__PURE__ */
|
|
2736
|
+
Oa.displayName = Da;
|
|
2737
|
+
var ka = "MenuPortal", [Aa, ja] = va(ka, { forceMount: void 0 }), Ma = (e) => {
|
|
2738
|
+
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = Ca(ka, t);
|
|
2739
|
+
return /* @__PURE__ */ d(Aa, {
|
|
2705
2740
|
scope: t,
|
|
2706
2741
|
forceMount: n,
|
|
2707
|
-
children: /* @__PURE__ */
|
|
2742
|
+
children: /* @__PURE__ */ d(xr, {
|
|
2708
2743
|
present: n || a.open,
|
|
2709
|
-
children: /* @__PURE__ */
|
|
2744
|
+
children: /* @__PURE__ */ d(yr, {
|
|
2710
2745
|
asChild: !0,
|
|
2711
2746
|
container: i,
|
|
2712
2747
|
children: r
|
|
@@ -2714,42 +2749,42 @@ var Ta = "MenuPortal", [Ea, Da] = ha(Ta, { forceMount: void 0 }), Oa = (e) => {
|
|
|
2714
2749
|
})
|
|
2715
2750
|
});
|
|
2716
2751
|
};
|
|
2717
|
-
|
|
2718
|
-
var Q = "MenuContent", [
|
|
2719
|
-
let n =
|
|
2720
|
-
return /* @__PURE__ */
|
|
2752
|
+
Ma.displayName = ka;
|
|
2753
|
+
var Q = "MenuContent", [Na, Pa] = va(Q), Fa = i.forwardRef((e, t) => {
|
|
2754
|
+
let n = ja(Q, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = Ca(Q, e.__scopeMenu), o = Ta(Q, e.__scopeMenu);
|
|
2755
|
+
return /* @__PURE__ */ d(ha.Provider, {
|
|
2721
2756
|
scope: e.__scopeMenu,
|
|
2722
|
-
children: /* @__PURE__ */
|
|
2757
|
+
children: /* @__PURE__ */ d(xr, {
|
|
2723
2758
|
present: r || a.open,
|
|
2724
|
-
children: /* @__PURE__ */
|
|
2759
|
+
children: /* @__PURE__ */ d(ha.Slot, {
|
|
2725
2760
|
scope: e.__scopeMenu,
|
|
2726
|
-
children: o.modal ? /* @__PURE__ */
|
|
2761
|
+
children: o.modal ? /* @__PURE__ */ d(Ia, {
|
|
2727
2762
|
...i,
|
|
2728
2763
|
ref: t
|
|
2729
|
-
}) : /* @__PURE__ */
|
|
2764
|
+
}) : /* @__PURE__ */ d(La, {
|
|
2730
2765
|
...i,
|
|
2731
2766
|
ref: t
|
|
2732
2767
|
})
|
|
2733
2768
|
})
|
|
2734
2769
|
})
|
|
2735
2770
|
});
|
|
2736
|
-
}),
|
|
2737
|
-
let n =
|
|
2738
|
-
return
|
|
2739
|
-
let e =
|
|
2740
|
-
if (e) return
|
|
2741
|
-
}, []), /* @__PURE__ */
|
|
2771
|
+
}), Ia = i.forwardRef((e, t) => {
|
|
2772
|
+
let n = Ca(Q, e.__scopeMenu), r = i.useRef(null), a = b(t, r);
|
|
2773
|
+
return i.useEffect(() => {
|
|
2774
|
+
let e = r.current;
|
|
2775
|
+
if (e) return ei(e);
|
|
2776
|
+
}, []), /* @__PURE__ */ d(za, {
|
|
2742
2777
|
...e,
|
|
2743
2778
|
ref: a,
|
|
2744
2779
|
trapFocus: n.open,
|
|
2745
2780
|
disableOutsidePointerEvents: n.open,
|
|
2746
2781
|
disableOutsideScroll: !0,
|
|
2747
|
-
onFocusOutside:
|
|
2782
|
+
onFocusOutside: x(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
2748
2783
|
onDismiss: () => n.onOpenChange(!1)
|
|
2749
2784
|
});
|
|
2750
|
-
}),
|
|
2751
|
-
let n =
|
|
2752
|
-
return /* @__PURE__ */
|
|
2785
|
+
}), La = i.forwardRef((e, t) => {
|
|
2786
|
+
let n = Ca(Q, e.__scopeMenu);
|
|
2787
|
+
return /* @__PURE__ */ d(za, {
|
|
2753
2788
|
...e,
|
|
2754
2789
|
ref: t,
|
|
2755
2790
|
trapFocus: !1,
|
|
@@ -2757,89 +2792,89 @@ var Q = "MenuContent", [ka, Aa] = ha(Q), ja = r.forwardRef((e, t) => {
|
|
|
2757
2792
|
disableOutsideScroll: !1,
|
|
2758
2793
|
onDismiss: () => n.onOpenChange(!1)
|
|
2759
2794
|
});
|
|
2760
|
-
}),
|
|
2761
|
-
let { __scopeMenu: n, loop:
|
|
2762
|
-
as:
|
|
2795
|
+
}), Ra = /* @__PURE__ */ A("MenuContent.ScrollLock"), za = i.forwardRef((e, t) => {
|
|
2796
|
+
let { __scopeMenu: n, loop: r = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: f, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = e, v = Ca(Q, n), y = Ta(Q, n), S = ba(n), C = xa(n), w = ga(n), [T, E] = i.useState(null), D = i.useRef(null), O = b(t, D, v.onContentChange), k = i.useRef(0), A = i.useRef(""), j = i.useRef(0), M = i.useRef(null), N = i.useRef("right"), P = i.useRef(0), ee = g ? sa : i.Fragment, te = g ? {
|
|
2797
|
+
as: Ra,
|
|
2763
2798
|
allowPinchZoom: !0
|
|
2764
|
-
} : void 0,
|
|
2765
|
-
let t = A.current + e, n = w().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a =
|
|
2799
|
+
} : void 0, F = (e) => {
|
|
2800
|
+
let t = A.current + e, n = w().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = wo(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
2766
2801
|
(function e(t) {
|
|
2767
2802
|
A.current = t, window.clearTimeout(k.current), t !== "" && (k.current = window.setTimeout(() => e(""), 1e3));
|
|
2768
2803
|
})(t), o && setTimeout(() => o.focus());
|
|
2769
2804
|
};
|
|
2770
|
-
|
|
2771
|
-
let
|
|
2772
|
-
return /* @__PURE__ */
|
|
2805
|
+
i.useEffect(() => () => window.clearTimeout(k.current), []), ye();
|
|
2806
|
+
let I = i.useCallback((e) => N.current === M.current?.side && Eo(e, M.current?.area), []);
|
|
2807
|
+
return /* @__PURE__ */ d(Na, {
|
|
2773
2808
|
scope: n,
|
|
2774
2809
|
searchRef: A,
|
|
2775
|
-
onItemEnter:
|
|
2776
|
-
|
|
2777
|
-
}, [
|
|
2778
|
-
onItemLeave:
|
|
2779
|
-
|
|
2780
|
-
}, [
|
|
2781
|
-
onTriggerLeave:
|
|
2782
|
-
|
|
2783
|
-
}, [
|
|
2810
|
+
onItemEnter: i.useCallback((e) => {
|
|
2811
|
+
I(e) && e.preventDefault();
|
|
2812
|
+
}, [I]),
|
|
2813
|
+
onItemLeave: i.useCallback((e) => {
|
|
2814
|
+
I(e) || (D.current?.focus(), E(null));
|
|
2815
|
+
}, [I]),
|
|
2816
|
+
onTriggerLeave: i.useCallback((e) => {
|
|
2817
|
+
I(e) && e.preventDefault();
|
|
2818
|
+
}, [I]),
|
|
2784
2819
|
pointerGraceTimerRef: j,
|
|
2785
|
-
onPointerGraceIntentChange:
|
|
2820
|
+
onPointerGraceIntentChange: i.useCallback((e) => {
|
|
2786
2821
|
M.current = e;
|
|
2787
2822
|
}, []),
|
|
2788
|
-
children: /* @__PURE__ */
|
|
2823
|
+
children: /* @__PURE__ */ d(ee, {
|
|
2789
2824
|
...te,
|
|
2790
|
-
children: /* @__PURE__ */
|
|
2825
|
+
children: /* @__PURE__ */ d(Te, {
|
|
2791
2826
|
asChild: !0,
|
|
2792
2827
|
trapped: a,
|
|
2793
|
-
onMountAutoFocus:
|
|
2828
|
+
onMountAutoFocus: x(o, (e) => {
|
|
2794
2829
|
e.preventDefault(), D.current?.focus({ preventScroll: !0 });
|
|
2795
2830
|
}),
|
|
2796
2831
|
onUnmountAutoFocus: s,
|
|
2797
|
-
children: /* @__PURE__ */
|
|
2832
|
+
children: /* @__PURE__ */ d(de, {
|
|
2798
2833
|
asChild: !0,
|
|
2799
2834
|
disableOutsidePointerEvents: c,
|
|
2800
|
-
onEscapeKeyDown:
|
|
2835
|
+
onEscapeKeyDown: u,
|
|
2801
2836
|
onPointerDownOutside: f,
|
|
2802
2837
|
onFocusOutside: p,
|
|
2803
2838
|
onInteractOutside: m,
|
|
2804
2839
|
onDismiss: h,
|
|
2805
|
-
children: /* @__PURE__ */
|
|
2840
|
+
children: /* @__PURE__ */ d(Wr, {
|
|
2806
2841
|
asChild: !0,
|
|
2807
2842
|
...C,
|
|
2808
|
-
dir:
|
|
2843
|
+
dir: y.dir,
|
|
2809
2844
|
orientation: "vertical",
|
|
2810
|
-
loop:
|
|
2845
|
+
loop: r,
|
|
2811
2846
|
currentTabStopId: T,
|
|
2812
2847
|
onCurrentTabStopIdChange: E,
|
|
2813
|
-
onEntryFocus:
|
|
2814
|
-
|
|
2848
|
+
onEntryFocus: x(l, (e) => {
|
|
2849
|
+
y.isUsingKeyboardRef.current || e.preventDefault();
|
|
2815
2850
|
}),
|
|
2816
2851
|
preventScrollOnEntryFocus: !0,
|
|
2817
|
-
children: /* @__PURE__ */
|
|
2852
|
+
children: /* @__PURE__ */ d(gr, {
|
|
2818
2853
|
role: "menu",
|
|
2819
2854
|
"aria-orientation": "vertical",
|
|
2820
|
-
"data-state":
|
|
2855
|
+
"data-state": yo(v.open),
|
|
2821
2856
|
"data-radix-menu-content": "",
|
|
2822
|
-
dir:
|
|
2857
|
+
dir: y.dir,
|
|
2823
2858
|
...S,
|
|
2824
|
-
...
|
|
2859
|
+
..._,
|
|
2825
2860
|
ref: O,
|
|
2826
2861
|
style: {
|
|
2827
2862
|
outline: "none",
|
|
2828
|
-
...
|
|
2863
|
+
..._.style
|
|
2829
2864
|
},
|
|
2830
|
-
onKeyDown: _
|
|
2865
|
+
onKeyDown: x(_.onKeyDown, (e) => {
|
|
2831
2866
|
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
2832
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r &&
|
|
2867
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && F(e.key));
|
|
2833
2868
|
let i = D.current;
|
|
2834
|
-
if (e.target !== i || !
|
|
2869
|
+
if (e.target !== i || !da.includes(e.key)) return;
|
|
2835
2870
|
e.preventDefault();
|
|
2836
2871
|
let a = w().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
2837
|
-
|
|
2872
|
+
ua.includes(e.key) && a.reverse(), So(a);
|
|
2838
2873
|
}),
|
|
2839
|
-
onBlur:
|
|
2874
|
+
onBlur: x(e.onBlur, (e) => {
|
|
2840
2875
|
e.currentTarget.contains(e.target) || (window.clearTimeout(k.current), A.current = "");
|
|
2841
2876
|
}),
|
|
2842
|
-
onPointerMove:
|
|
2877
|
+
onPointerMove: x(e.onPointerMove, Do((e) => {
|
|
2843
2878
|
let t = e.target, n = P.current !== e.clientX;
|
|
2844
2879
|
if (e.currentTarget.contains(t) && n) {
|
|
2845
2880
|
let t = e.clientX > P.current ? "right" : "left";
|
|
@@ -2853,175 +2888,175 @@ var Q = "MenuContent", [ka, Aa] = ha(Q), ja = r.forwardRef((e, t) => {
|
|
|
2853
2888
|
})
|
|
2854
2889
|
});
|
|
2855
2890
|
});
|
|
2856
|
-
|
|
2857
|
-
var
|
|
2891
|
+
Fa.displayName = Q;
|
|
2892
|
+
var Ba = "MenuGroup", Va = i.forwardRef((e, t) => {
|
|
2858
2893
|
let { __scopeMenu: n, ...r } = e;
|
|
2859
|
-
return /* @__PURE__ */
|
|
2894
|
+
return /* @__PURE__ */ d(F.div, {
|
|
2860
2895
|
role: "group",
|
|
2861
2896
|
...r,
|
|
2862
2897
|
ref: t
|
|
2863
2898
|
});
|
|
2864
2899
|
});
|
|
2865
|
-
|
|
2866
|
-
var
|
|
2900
|
+
Va.displayName = Ba;
|
|
2901
|
+
var Ha = "MenuLabel", Ua = i.forwardRef((e, t) => {
|
|
2867
2902
|
let { __scopeMenu: n, ...r } = e;
|
|
2868
|
-
return /* @__PURE__ */
|
|
2903
|
+
return /* @__PURE__ */ d(F.div, {
|
|
2869
2904
|
...r,
|
|
2870
2905
|
ref: t
|
|
2871
2906
|
});
|
|
2872
2907
|
});
|
|
2873
|
-
|
|
2874
|
-
var
|
|
2875
|
-
let { disabled: n = !1, onSelect:
|
|
2908
|
+
Ua.displayName = Ha;
|
|
2909
|
+
var Wa = "MenuItem", Ga = "menu.itemSelect", Ka = i.forwardRef((e, t) => {
|
|
2910
|
+
let { disabled: n = !1, onSelect: r, ...a } = e, o = i.useRef(null), s = Ta(Wa, e.__scopeMenu), c = Pa(Wa, e.__scopeMenu), l = b(t, o), u = i.useRef(!1), f = () => {
|
|
2876
2911
|
let e = o.current;
|
|
2877
2912
|
if (!n && e) {
|
|
2878
|
-
let t = new CustomEvent(
|
|
2913
|
+
let t = new CustomEvent(Ga, {
|
|
2879
2914
|
bubbles: !0,
|
|
2880
2915
|
cancelable: !0
|
|
2881
2916
|
});
|
|
2882
|
-
e.addEventListener(
|
|
2917
|
+
e.addEventListener(Ga, (e) => r?.(e), { once: !0 }), I(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
|
|
2883
2918
|
}
|
|
2884
2919
|
};
|
|
2885
|
-
return /* @__PURE__ */
|
|
2920
|
+
return /* @__PURE__ */ d(qa, {
|
|
2886
2921
|
...a,
|
|
2887
2922
|
ref: l,
|
|
2888
2923
|
disabled: n,
|
|
2889
|
-
onClick:
|
|
2924
|
+
onClick: x(e.onClick, f),
|
|
2890
2925
|
onPointerDown: (t) => {
|
|
2891
|
-
e.onPointerDown?.(t),
|
|
2926
|
+
e.onPointerDown?.(t), u.current = !0;
|
|
2892
2927
|
},
|
|
2893
|
-
onPointerUp:
|
|
2894
|
-
|
|
2928
|
+
onPointerUp: x(e.onPointerUp, (e) => {
|
|
2929
|
+
u.current || e.currentTarget?.click();
|
|
2895
2930
|
}),
|
|
2896
|
-
onKeyDown:
|
|
2931
|
+
onKeyDown: x(e.onKeyDown, (e) => {
|
|
2897
2932
|
let t = c.searchRef.current !== "";
|
|
2898
|
-
n || t && e.key === " " ||
|
|
2933
|
+
n || t && e.key === " " || ca.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
2899
2934
|
})
|
|
2900
2935
|
});
|
|
2901
2936
|
});
|
|
2902
|
-
|
|
2903
|
-
var
|
|
2904
|
-
let { __scopeMenu: n, disabled:
|
|
2905
|
-
return
|
|
2937
|
+
Ka.displayName = Wa;
|
|
2938
|
+
var qa = i.forwardRef((e, t) => {
|
|
2939
|
+
let { __scopeMenu: n, disabled: r = !1, textValue: a, ...o } = e, s = Pa(Wa, n), c = xa(n), l = i.useRef(null), u = b(t, l), [f, p] = i.useState(!1), [m, h] = i.useState("");
|
|
2940
|
+
return i.useEffect(() => {
|
|
2906
2941
|
let e = l.current;
|
|
2907
2942
|
e && h((e.textContent ?? "").trim());
|
|
2908
|
-
}, [o.children]), /* @__PURE__ */
|
|
2943
|
+
}, [o.children]), /* @__PURE__ */ d(ha.ItemSlot, {
|
|
2909
2944
|
scope: n,
|
|
2910
|
-
disabled:
|
|
2945
|
+
disabled: r,
|
|
2911
2946
|
textValue: a ?? m,
|
|
2912
|
-
children: /* @__PURE__ */
|
|
2947
|
+
children: /* @__PURE__ */ d(Gr, {
|
|
2913
2948
|
asChild: !0,
|
|
2914
2949
|
...c,
|
|
2915
|
-
focusable: !
|
|
2916
|
-
children: /* @__PURE__ */
|
|
2950
|
+
focusable: !r,
|
|
2951
|
+
children: /* @__PURE__ */ d(F.div, {
|
|
2917
2952
|
role: "menuitem",
|
|
2918
2953
|
"data-highlighted": f ? "" : void 0,
|
|
2919
|
-
"aria-disabled":
|
|
2920
|
-
"data-disabled":
|
|
2954
|
+
"aria-disabled": r || void 0,
|
|
2955
|
+
"data-disabled": r ? "" : void 0,
|
|
2921
2956
|
...o,
|
|
2922
|
-
ref:
|
|
2923
|
-
onPointerMove:
|
|
2924
|
-
|
|
2957
|
+
ref: u,
|
|
2958
|
+
onPointerMove: x(e.onPointerMove, Do((e) => {
|
|
2959
|
+
r ? s.onItemLeave(e) : (s.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
2925
2960
|
})),
|
|
2926
|
-
onPointerLeave:
|
|
2927
|
-
onFocus:
|
|
2928
|
-
onBlur:
|
|
2961
|
+
onPointerLeave: x(e.onPointerLeave, Do((e) => s.onItemLeave(e))),
|
|
2962
|
+
onFocus: x(e.onFocus, () => p(!0)),
|
|
2963
|
+
onBlur: x(e.onBlur, () => p(!1))
|
|
2929
2964
|
})
|
|
2930
2965
|
})
|
|
2931
2966
|
});
|
|
2932
|
-
}),
|
|
2967
|
+
}), Ja = "MenuCheckboxItem", Ya = i.forwardRef((e, t) => {
|
|
2933
2968
|
let { checked: n = !1, onCheckedChange: r, ...i } = e;
|
|
2934
|
-
return /* @__PURE__ */
|
|
2969
|
+
return /* @__PURE__ */ d(ro, {
|
|
2935
2970
|
scope: e.__scopeMenu,
|
|
2936
2971
|
checked: n,
|
|
2937
|
-
children: /* @__PURE__ */
|
|
2972
|
+
children: /* @__PURE__ */ d(Ka, {
|
|
2938
2973
|
role: "menuitemcheckbox",
|
|
2939
|
-
"aria-checked":
|
|
2974
|
+
"aria-checked": bo(n) ? "mixed" : n,
|
|
2940
2975
|
...i,
|
|
2941
2976
|
ref: t,
|
|
2942
|
-
"data-state":
|
|
2943
|
-
onSelect:
|
|
2977
|
+
"data-state": xo(n),
|
|
2978
|
+
onSelect: x(i.onSelect, () => r?.(bo(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
2944
2979
|
})
|
|
2945
2980
|
});
|
|
2946
2981
|
});
|
|
2947
|
-
|
|
2948
|
-
var
|
|
2982
|
+
Ya.displayName = Ja;
|
|
2983
|
+
var Xa = "MenuRadioGroup", [Za, Qa] = va(Xa, {
|
|
2949
2984
|
value: void 0,
|
|
2950
2985
|
onValueChange: () => {}
|
|
2951
|
-
}),
|
|
2952
|
-
let { value: n, onValueChange: r, ...i } = e, a =
|
|
2953
|
-
return /* @__PURE__ */
|
|
2986
|
+
}), $a = i.forwardRef((e, t) => {
|
|
2987
|
+
let { value: n, onValueChange: r, ...i } = e, a = R(r);
|
|
2988
|
+
return /* @__PURE__ */ d(Za, {
|
|
2954
2989
|
scope: e.__scopeMenu,
|
|
2955
2990
|
value: n,
|
|
2956
2991
|
onValueChange: a,
|
|
2957
|
-
children: /* @__PURE__ */
|
|
2992
|
+
children: /* @__PURE__ */ d(Va, {
|
|
2958
2993
|
...i,
|
|
2959
2994
|
ref: t
|
|
2960
2995
|
})
|
|
2961
2996
|
});
|
|
2962
2997
|
});
|
|
2963
|
-
|
|
2964
|
-
var
|
|
2965
|
-
let { value: n, ...r } = e, i =
|
|
2966
|
-
return /* @__PURE__ */
|
|
2998
|
+
$a.displayName = Xa;
|
|
2999
|
+
var eo = "MenuRadioItem", to = i.forwardRef((e, t) => {
|
|
3000
|
+
let { value: n, ...r } = e, i = Qa(eo, e.__scopeMenu), a = n === i.value;
|
|
3001
|
+
return /* @__PURE__ */ d(ro, {
|
|
2967
3002
|
scope: e.__scopeMenu,
|
|
2968
3003
|
checked: a,
|
|
2969
|
-
children: /* @__PURE__ */
|
|
3004
|
+
children: /* @__PURE__ */ d(Ka, {
|
|
2970
3005
|
role: "menuitemradio",
|
|
2971
3006
|
"aria-checked": a,
|
|
2972
3007
|
...r,
|
|
2973
3008
|
ref: t,
|
|
2974
|
-
"data-state":
|
|
2975
|
-
onSelect:
|
|
3009
|
+
"data-state": xo(a),
|
|
3010
|
+
onSelect: x(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
2976
3011
|
})
|
|
2977
3012
|
});
|
|
2978
3013
|
});
|
|
2979
|
-
|
|
2980
|
-
var
|
|
2981
|
-
let { __scopeMenu: n, forceMount: r, ...i } = e, a =
|
|
2982
|
-
return /* @__PURE__ */
|
|
2983
|
-
present: r ||
|
|
2984
|
-
children: /* @__PURE__ */
|
|
3014
|
+
to.displayName = eo;
|
|
3015
|
+
var no = "MenuItemIndicator", [ro, io] = va(no, { checked: !1 }), ao = i.forwardRef((e, t) => {
|
|
3016
|
+
let { __scopeMenu: n, forceMount: r, ...i } = e, a = io(no, n);
|
|
3017
|
+
return /* @__PURE__ */ d(xr, {
|
|
3018
|
+
present: r || bo(a.checked) || a.checked === !0,
|
|
3019
|
+
children: /* @__PURE__ */ d(F.span, {
|
|
2985
3020
|
...i,
|
|
2986
3021
|
ref: t,
|
|
2987
|
-
"data-state":
|
|
3022
|
+
"data-state": xo(a.checked)
|
|
2988
3023
|
})
|
|
2989
3024
|
});
|
|
2990
3025
|
});
|
|
2991
|
-
|
|
2992
|
-
var
|
|
3026
|
+
ao.displayName = no;
|
|
3027
|
+
var oo = "MenuSeparator", so = i.forwardRef((e, t) => {
|
|
2993
3028
|
let { __scopeMenu: n, ...r } = e;
|
|
2994
|
-
return /* @__PURE__ */
|
|
3029
|
+
return /* @__PURE__ */ d(F.div, {
|
|
2995
3030
|
role: "separator",
|
|
2996
3031
|
"aria-orientation": "horizontal",
|
|
2997
3032
|
...r,
|
|
2998
3033
|
ref: t
|
|
2999
3034
|
});
|
|
3000
3035
|
});
|
|
3001
|
-
|
|
3002
|
-
var
|
|
3003
|
-
let { __scopeMenu: n, ...r } = e, i =
|
|
3004
|
-
return /* @__PURE__ */
|
|
3036
|
+
so.displayName = oo;
|
|
3037
|
+
var co = "MenuArrow", lo = i.forwardRef((e, t) => {
|
|
3038
|
+
let { __scopeMenu: n, ...r } = e, i = ba(n);
|
|
3039
|
+
return /* @__PURE__ */ d(_r, {
|
|
3005
3040
|
...i,
|
|
3006
3041
|
...r,
|
|
3007
3042
|
ref: t
|
|
3008
3043
|
});
|
|
3009
3044
|
});
|
|
3010
|
-
|
|
3011
|
-
var
|
|
3012
|
-
let { __scopeMenu: t, children: n, open:
|
|
3013
|
-
return
|
|
3045
|
+
lo.displayName = co;
|
|
3046
|
+
var uo = "MenuSub", [fo, po] = va(uo), mo = (e) => {
|
|
3047
|
+
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, o = Ca(uo, t), s = ba(t), [c, l] = i.useState(null), [u, f] = i.useState(null), p = R(a);
|
|
3048
|
+
return i.useEffect(() => (o.open === !1 && p(!1), () => p(!1)), [o.open, p]), /* @__PURE__ */ d(mr, {
|
|
3014
3049
|
...s,
|
|
3015
|
-
children: /* @__PURE__ */
|
|
3050
|
+
children: /* @__PURE__ */ d(Sa, {
|
|
3016
3051
|
scope: t,
|
|
3017
|
-
open:
|
|
3052
|
+
open: r,
|
|
3018
3053
|
onOpenChange: p,
|
|
3019
|
-
content:
|
|
3054
|
+
content: u,
|
|
3020
3055
|
onContentChange: f,
|
|
3021
|
-
children: /* @__PURE__ */
|
|
3056
|
+
children: /* @__PURE__ */ d(fo, {
|
|
3022
3057
|
scope: t,
|
|
3023
|
-
contentId:
|
|
3024
|
-
triggerId:
|
|
3058
|
+
contentId: Re(),
|
|
3059
|
+
triggerId: Re(),
|
|
3025
3060
|
trigger: c,
|
|
3026
3061
|
onTriggerChange: l,
|
|
3027
3062
|
children: n
|
|
@@ -3029,36 +3064,36 @@ var oo = "MenuSub", [so, co] = ha(oo), lo = (e) => {
|
|
|
3029
3064
|
})
|
|
3030
3065
|
});
|
|
3031
3066
|
};
|
|
3032
|
-
|
|
3033
|
-
var
|
|
3034
|
-
let n =
|
|
3067
|
+
mo.displayName = uo;
|
|
3068
|
+
var ho = "MenuSubTrigger", go = i.forwardRef((e, t) => {
|
|
3069
|
+
let n = Ca(ho, e.__scopeMenu), r = Ta(ho, e.__scopeMenu), a = po(ho, e.__scopeMenu), o = Pa(ho, e.__scopeMenu), s = i.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = o, u = { __scopeMenu: e.__scopeMenu }, f = i.useCallback(() => {
|
|
3035
3070
|
s.current && window.clearTimeout(s.current), s.current = null;
|
|
3036
3071
|
}, []);
|
|
3037
|
-
return
|
|
3072
|
+
return i.useEffect(() => f, [f]), i.useEffect(() => {
|
|
3038
3073
|
let e = c.current;
|
|
3039
3074
|
return () => {
|
|
3040
3075
|
window.clearTimeout(e), l(null);
|
|
3041
3076
|
};
|
|
3042
|
-
}, [c, l]), /* @__PURE__ */
|
|
3077
|
+
}, [c, l]), /* @__PURE__ */ d(Oa, {
|
|
3043
3078
|
asChild: !0,
|
|
3044
|
-
...
|
|
3045
|
-
children: /* @__PURE__ */
|
|
3079
|
+
...u,
|
|
3080
|
+
children: /* @__PURE__ */ d(qa, {
|
|
3046
3081
|
id: a.triggerId,
|
|
3047
3082
|
"aria-haspopup": "menu",
|
|
3048
3083
|
"aria-expanded": n.open,
|
|
3049
3084
|
"aria-controls": a.contentId,
|
|
3050
|
-
"data-state":
|
|
3085
|
+
"data-state": yo(n.open),
|
|
3051
3086
|
...e,
|
|
3052
|
-
ref:
|
|
3087
|
+
ref: y(t, a.onTriggerChange),
|
|
3053
3088
|
onClick: (t) => {
|
|
3054
3089
|
e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
3055
3090
|
},
|
|
3056
|
-
onPointerMove:
|
|
3091
|
+
onPointerMove: x(e.onPointerMove, Do((t) => {
|
|
3057
3092
|
o.onItemEnter(t), !t.defaultPrevented && !e.disabled && !n.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
3058
3093
|
n.onOpenChange(!0), f();
|
|
3059
3094
|
}, 100));
|
|
3060
3095
|
})),
|
|
3061
|
-
onPointerLeave:
|
|
3096
|
+
onPointerLeave: x(e.onPointerLeave, Do((e) => {
|
|
3062
3097
|
f();
|
|
3063
3098
|
let t = n.content?.getBoundingClientRect();
|
|
3064
3099
|
if (t) {
|
|
@@ -3093,27 +3128,27 @@ var uo = "MenuSubTrigger", fo = r.forwardRef((e, t) => {
|
|
|
3093
3128
|
o.onPointerGraceIntentChange(null);
|
|
3094
3129
|
}
|
|
3095
3130
|
})),
|
|
3096
|
-
onKeyDown:
|
|
3097
|
-
let
|
|
3098
|
-
e.disabled ||
|
|
3131
|
+
onKeyDown: x(e.onKeyDown, (t) => {
|
|
3132
|
+
let i = o.searchRef.current !== "";
|
|
3133
|
+
e.disabled || i && t.key === " " || fa[r.dir].includes(t.key) && (n.onOpenChange(!0), n.content?.focus(), t.preventDefault());
|
|
3099
3134
|
})
|
|
3100
3135
|
})
|
|
3101
3136
|
});
|
|
3102
3137
|
});
|
|
3103
|
-
|
|
3104
|
-
var
|
|
3105
|
-
let n =
|
|
3106
|
-
return /* @__PURE__ */
|
|
3138
|
+
go.displayName = ho;
|
|
3139
|
+
var _o = "MenuSubContent", vo = i.forwardRef((e, t) => {
|
|
3140
|
+
let n = ja(Q, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, o = Ca(Q, e.__scopeMenu), s = Ta(Q, e.__scopeMenu), c = po(_o, e.__scopeMenu), l = i.useRef(null), u = b(t, l);
|
|
3141
|
+
return /* @__PURE__ */ d(ha.Provider, {
|
|
3107
3142
|
scope: e.__scopeMenu,
|
|
3108
|
-
children: /* @__PURE__ */
|
|
3109
|
-
present:
|
|
3110
|
-
children: /* @__PURE__ */
|
|
3143
|
+
children: /* @__PURE__ */ d(xr, {
|
|
3144
|
+
present: r || o.open,
|
|
3145
|
+
children: /* @__PURE__ */ d(ha.Slot, {
|
|
3111
3146
|
scope: e.__scopeMenu,
|
|
3112
|
-
children: /* @__PURE__ */
|
|
3147
|
+
children: /* @__PURE__ */ d(za, {
|
|
3113
3148
|
id: c.contentId,
|
|
3114
3149
|
"aria-labelledby": c.triggerId,
|
|
3115
3150
|
...a,
|
|
3116
|
-
ref:
|
|
3151
|
+
ref: u,
|
|
3117
3152
|
align: "start",
|
|
3118
3153
|
side: s.dir === "rtl" ? "left" : "right",
|
|
3119
3154
|
disableOutsidePointerEvents: !1,
|
|
@@ -3123,14 +3158,14 @@ var po = "MenuSubContent", mo = r.forwardRef((e, t) => {
|
|
|
3123
3158
|
s.isUsingKeyboardRef.current && l.current?.focus(), e.preventDefault();
|
|
3124
3159
|
},
|
|
3125
3160
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3126
|
-
onFocusOutside:
|
|
3161
|
+
onFocusOutside: x(e.onFocusOutside, (e) => {
|
|
3127
3162
|
e.target !== c.trigger && o.onOpenChange(!1);
|
|
3128
3163
|
}),
|
|
3129
|
-
onEscapeKeyDown:
|
|
3164
|
+
onEscapeKeyDown: x(e.onEscapeKeyDown, (e) => {
|
|
3130
3165
|
s.onClose(), e.preventDefault();
|
|
3131
3166
|
}),
|
|
3132
|
-
onKeyDown:
|
|
3133
|
-
let t = e.currentTarget.contains(e.target), n =
|
|
3167
|
+
onKeyDown: x(e.onKeyDown, (e) => {
|
|
3168
|
+
let t = e.currentTarget.contains(e.target), n = pa[s.dir].includes(e.key);
|
|
3134
3169
|
t && n && (o.onOpenChange(!1), c.trigger?.focus(), e.preventDefault());
|
|
3135
3170
|
})
|
|
3136
3171
|
})
|
|
@@ -3138,30 +3173,30 @@ var po = "MenuSubContent", mo = r.forwardRef((e, t) => {
|
|
|
3138
3173
|
})
|
|
3139
3174
|
});
|
|
3140
3175
|
});
|
|
3141
|
-
|
|
3142
|
-
function
|
|
3176
|
+
vo.displayName = _o;
|
|
3177
|
+
function yo(e) {
|
|
3143
3178
|
return e ? "open" : "closed";
|
|
3144
3179
|
}
|
|
3145
|
-
function
|
|
3180
|
+
function bo(e) {
|
|
3146
3181
|
return e === "indeterminate";
|
|
3147
3182
|
}
|
|
3148
|
-
function
|
|
3149
|
-
return
|
|
3183
|
+
function xo(e) {
|
|
3184
|
+
return bo(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
3150
3185
|
}
|
|
3151
|
-
function
|
|
3186
|
+
function So(e) {
|
|
3152
3187
|
let t = document.activeElement;
|
|
3153
3188
|
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
3154
3189
|
}
|
|
3155
|
-
function
|
|
3190
|
+
function Co(e, t) {
|
|
3156
3191
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
3157
3192
|
}
|
|
3158
|
-
function
|
|
3159
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a =
|
|
3193
|
+
function wo(e, t, n) {
|
|
3194
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Co(e, Math.max(i, 0));
|
|
3160
3195
|
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
3161
3196
|
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
3162
3197
|
return o === n ? void 0 : o;
|
|
3163
3198
|
}
|
|
3164
|
-
function
|
|
3199
|
+
function To(e, t) {
|
|
3165
3200
|
let { x: n, y: r } = e, i = !1;
|
|
3166
3201
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
3167
3202
|
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
@@ -3169,48 +3204,48 @@ function xo(e, t) {
|
|
|
3169
3204
|
}
|
|
3170
3205
|
return i;
|
|
3171
3206
|
}
|
|
3172
|
-
function
|
|
3173
|
-
return t ?
|
|
3207
|
+
function Eo(e, t) {
|
|
3208
|
+
return t ? To({
|
|
3174
3209
|
x: e.clientX,
|
|
3175
3210
|
y: e.clientY
|
|
3176
3211
|
}, t) : !1;
|
|
3177
3212
|
}
|
|
3178
|
-
function
|
|
3213
|
+
function Do(e) {
|
|
3179
3214
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
3180
3215
|
}
|
|
3181
|
-
var
|
|
3182
|
-
let { __scopeDropdownMenu: t, children: n, dir:
|
|
3216
|
+
var Oo = Ea, ko = Oa, Ao = Ma, jo = Fa, Mo = Va, No = Ua, Po = Ka, Fo = Ya, Io = $a, Lo = to, Ro = ao, zo = so, Bo = lo, Vo = mo, Ho = go, Uo = vo, Wo = "DropdownMenu", [Go, Ko] = C(Wo, [ya]), $ = ya(), [qo, Jo] = Go(Wo), Yo = (e) => {
|
|
3217
|
+
let { __scopeDropdownMenu: t, children: n, dir: r, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, l = $(t), u = i.useRef(null), [f, p] = D({
|
|
3183
3218
|
prop: a,
|
|
3184
3219
|
defaultProp: o ?? !1,
|
|
3185
3220
|
onChange: s,
|
|
3186
|
-
caller:
|
|
3221
|
+
caller: Wo
|
|
3187
3222
|
});
|
|
3188
|
-
return /* @__PURE__ */
|
|
3223
|
+
return /* @__PURE__ */ d(qo, {
|
|
3189
3224
|
scope: t,
|
|
3190
|
-
triggerId:
|
|
3191
|
-
triggerRef:
|
|
3192
|
-
contentId:
|
|
3225
|
+
triggerId: Re(),
|
|
3226
|
+
triggerRef: u,
|
|
3227
|
+
contentId: Re(),
|
|
3193
3228
|
open: f,
|
|
3194
3229
|
onOpenChange: p,
|
|
3195
|
-
onOpenToggle:
|
|
3230
|
+
onOpenToggle: i.useCallback(() => p((e) => !e), [p]),
|
|
3196
3231
|
modal: c,
|
|
3197
|
-
children: /* @__PURE__ */
|
|
3232
|
+
children: /* @__PURE__ */ d(Oo, {
|
|
3198
3233
|
...l,
|
|
3199
3234
|
open: f,
|
|
3200
3235
|
onOpenChange: p,
|
|
3201
|
-
dir:
|
|
3236
|
+
dir: r,
|
|
3202
3237
|
modal: c,
|
|
3203
3238
|
children: n
|
|
3204
3239
|
})
|
|
3205
3240
|
});
|
|
3206
3241
|
};
|
|
3207
|
-
|
|
3208
|
-
var
|
|
3209
|
-
let { __scopeDropdownMenu: n, disabled: r = !1, ...i } = e, a =
|
|
3210
|
-
return /* @__PURE__ */
|
|
3242
|
+
Yo.displayName = Wo;
|
|
3243
|
+
var Xo = "DropdownMenuTrigger", Zo = i.forwardRef((e, t) => {
|
|
3244
|
+
let { __scopeDropdownMenu: n, disabled: r = !1, ...i } = e, a = Jo(Xo, n), o = $(n);
|
|
3245
|
+
return /* @__PURE__ */ d(ko, {
|
|
3211
3246
|
asChild: !0,
|
|
3212
3247
|
...o,
|
|
3213
|
-
children: /* @__PURE__ */
|
|
3248
|
+
children: /* @__PURE__ */ d(F.button, {
|
|
3214
3249
|
type: "button",
|
|
3215
3250
|
id: a.triggerId,
|
|
3216
3251
|
"aria-haspopup": "menu",
|
|
@@ -3220,11 +3255,11 @@ var Ko = "DropdownMenuTrigger", qo = r.forwardRef((e, t) => {
|
|
|
3220
3255
|
"data-disabled": r ? "" : void 0,
|
|
3221
3256
|
disabled: r,
|
|
3222
3257
|
...i,
|
|
3223
|
-
ref:
|
|
3224
|
-
onPointerDown:
|
|
3258
|
+
ref: y(t, a.triggerRef),
|
|
3259
|
+
onPointerDown: x(e.onPointerDown, (e) => {
|
|
3225
3260
|
!r && e.button === 0 && e.ctrlKey === !1 && (a.onOpenToggle(), a.open || e.preventDefault());
|
|
3226
3261
|
}),
|
|
3227
|
-
onKeyDown:
|
|
3262
|
+
onKeyDown: x(e.onKeyDown, (e) => {
|
|
3228
3263
|
r || (["Enter", " "].includes(e.key) && a.onOpenToggle(), e.key === "ArrowDown" && a.onOpenChange(!0), [
|
|
3229
3264
|
"Enter",
|
|
3230
3265
|
" ",
|
|
@@ -3234,27 +3269,27 @@ var Ko = "DropdownMenuTrigger", qo = r.forwardRef((e, t) => {
|
|
|
3234
3269
|
})
|
|
3235
3270
|
});
|
|
3236
3271
|
});
|
|
3237
|
-
|
|
3238
|
-
var
|
|
3272
|
+
Zo.displayName = Xo;
|
|
3273
|
+
var Qo = "DropdownMenuPortal", $o = (e) => {
|
|
3239
3274
|
let { __scopeDropdownMenu: t, ...n } = e, r = $(t);
|
|
3240
|
-
return /* @__PURE__ */
|
|
3275
|
+
return /* @__PURE__ */ d(Ao, {
|
|
3241
3276
|
...r,
|
|
3242
3277
|
...n
|
|
3243
3278
|
});
|
|
3244
3279
|
};
|
|
3245
|
-
|
|
3246
|
-
var
|
|
3247
|
-
let { __scopeDropdownMenu: n, ...
|
|
3248
|
-
return /* @__PURE__ */
|
|
3280
|
+
$o.displayName = Qo;
|
|
3281
|
+
var es = "DropdownMenuContent", ts = i.forwardRef((e, t) => {
|
|
3282
|
+
let { __scopeDropdownMenu: n, ...r } = e, a = Jo(es, n), o = $(n), s = i.useRef(!1);
|
|
3283
|
+
return /* @__PURE__ */ d(jo, {
|
|
3249
3284
|
id: a.contentId,
|
|
3250
3285
|
"aria-labelledby": a.triggerId,
|
|
3251
3286
|
...o,
|
|
3252
|
-
...
|
|
3287
|
+
...r,
|
|
3253
3288
|
ref: t,
|
|
3254
|
-
onCloseAutoFocus:
|
|
3289
|
+
onCloseAutoFocus: x(e.onCloseAutoFocus, (e) => {
|
|
3255
3290
|
s.current || a.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
|
|
3256
3291
|
}),
|
|
3257
|
-
onInteractOutside:
|
|
3292
|
+
onInteractOutside: x(e.onInteractOutside, (e) => {
|
|
3258
3293
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
3259
3294
|
(!a.modal || r) && (s.current = !0);
|
|
3260
3295
|
}),
|
|
@@ -3268,113 +3303,113 @@ var Xo = "DropdownMenuContent", Zo = r.forwardRef((e, t) => {
|
|
|
3268
3303
|
}
|
|
3269
3304
|
});
|
|
3270
3305
|
});
|
|
3271
|
-
|
|
3272
|
-
var
|
|
3306
|
+
ts.displayName = es;
|
|
3307
|
+
var ns = "DropdownMenuGroup", rs = i.forwardRef((e, t) => {
|
|
3273
3308
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3274
|
-
return /* @__PURE__ */
|
|
3309
|
+
return /* @__PURE__ */ d(Mo, {
|
|
3275
3310
|
...i,
|
|
3276
3311
|
...r,
|
|
3277
3312
|
ref: t
|
|
3278
3313
|
});
|
|
3279
3314
|
});
|
|
3280
|
-
|
|
3281
|
-
var
|
|
3315
|
+
rs.displayName = ns;
|
|
3316
|
+
var is = "DropdownMenuLabel", as = i.forwardRef((e, t) => {
|
|
3282
3317
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3283
|
-
return /* @__PURE__ */
|
|
3318
|
+
return /* @__PURE__ */ d(No, {
|
|
3284
3319
|
...i,
|
|
3285
3320
|
...r,
|
|
3286
3321
|
ref: t
|
|
3287
3322
|
});
|
|
3288
3323
|
});
|
|
3289
|
-
|
|
3290
|
-
var
|
|
3324
|
+
as.displayName = is;
|
|
3325
|
+
var os = "DropdownMenuItem", ss = i.forwardRef((e, t) => {
|
|
3291
3326
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3292
|
-
return /* @__PURE__ */
|
|
3327
|
+
return /* @__PURE__ */ d(Po, {
|
|
3293
3328
|
...i,
|
|
3294
3329
|
...r,
|
|
3295
3330
|
ref: t
|
|
3296
3331
|
});
|
|
3297
3332
|
});
|
|
3298
|
-
|
|
3299
|
-
var
|
|
3333
|
+
ss.displayName = os;
|
|
3334
|
+
var cs = "DropdownMenuCheckboxItem", ls = i.forwardRef((e, t) => {
|
|
3300
3335
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3301
|
-
return /* @__PURE__ */
|
|
3336
|
+
return /* @__PURE__ */ d(Fo, {
|
|
3302
3337
|
...i,
|
|
3303
3338
|
...r,
|
|
3304
3339
|
ref: t
|
|
3305
3340
|
});
|
|
3306
3341
|
});
|
|
3307
|
-
|
|
3308
|
-
var
|
|
3342
|
+
ls.displayName = cs;
|
|
3343
|
+
var us = "DropdownMenuRadioGroup", ds = i.forwardRef((e, t) => {
|
|
3309
3344
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3310
|
-
return /* @__PURE__ */
|
|
3345
|
+
return /* @__PURE__ */ d(Io, {
|
|
3311
3346
|
...i,
|
|
3312
3347
|
...r,
|
|
3313
3348
|
ref: t
|
|
3314
3349
|
});
|
|
3315
3350
|
});
|
|
3316
|
-
|
|
3317
|
-
var
|
|
3351
|
+
ds.displayName = us;
|
|
3352
|
+
var fs = "DropdownMenuRadioItem", ps = i.forwardRef((e, t) => {
|
|
3318
3353
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3319
|
-
return /* @__PURE__ */
|
|
3354
|
+
return /* @__PURE__ */ d(Lo, {
|
|
3320
3355
|
...i,
|
|
3321
3356
|
...r,
|
|
3322
3357
|
ref: t
|
|
3323
3358
|
});
|
|
3324
3359
|
});
|
|
3325
|
-
|
|
3326
|
-
var
|
|
3360
|
+
ps.displayName = fs;
|
|
3361
|
+
var ms = "DropdownMenuItemIndicator", hs = i.forwardRef((e, t) => {
|
|
3327
3362
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3328
|
-
return /* @__PURE__ */
|
|
3363
|
+
return /* @__PURE__ */ d(Ro, {
|
|
3329
3364
|
...i,
|
|
3330
3365
|
...r,
|
|
3331
3366
|
ref: t
|
|
3332
3367
|
});
|
|
3333
3368
|
});
|
|
3334
|
-
|
|
3335
|
-
var
|
|
3369
|
+
hs.displayName = ms;
|
|
3370
|
+
var gs = "DropdownMenuSeparator", _s = i.forwardRef((e, t) => {
|
|
3336
3371
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3337
|
-
return /* @__PURE__ */
|
|
3372
|
+
return /* @__PURE__ */ d(zo, {
|
|
3338
3373
|
...i,
|
|
3339
3374
|
...r,
|
|
3340
3375
|
ref: t
|
|
3341
3376
|
});
|
|
3342
3377
|
});
|
|
3343
|
-
|
|
3344
|
-
var
|
|
3378
|
+
_s.displayName = gs;
|
|
3379
|
+
var vs = "DropdownMenuArrow", ys = i.forwardRef((e, t) => {
|
|
3345
3380
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3346
|
-
return /* @__PURE__ */
|
|
3381
|
+
return /* @__PURE__ */ d(Bo, {
|
|
3347
3382
|
...i,
|
|
3348
3383
|
...r,
|
|
3349
3384
|
ref: t
|
|
3350
3385
|
});
|
|
3351
3386
|
});
|
|
3352
|
-
|
|
3353
|
-
var
|
|
3354
|
-
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = $(t), [s, c] =
|
|
3387
|
+
ys.displayName = vs;
|
|
3388
|
+
var bs = (e) => {
|
|
3389
|
+
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = $(t), [s, c] = D({
|
|
3355
3390
|
prop: r,
|
|
3356
3391
|
defaultProp: a ?? !1,
|
|
3357
3392
|
onChange: i,
|
|
3358
3393
|
caller: "DropdownMenuSub"
|
|
3359
3394
|
});
|
|
3360
|
-
return /* @__PURE__ */
|
|
3395
|
+
return /* @__PURE__ */ d(Vo, {
|
|
3361
3396
|
...o,
|
|
3362
3397
|
open: s,
|
|
3363
3398
|
onOpenChange: c,
|
|
3364
3399
|
children: n
|
|
3365
3400
|
});
|
|
3366
|
-
},
|
|
3401
|
+
}, xs = "DropdownMenuSubTrigger", Ss = i.forwardRef((e, t) => {
|
|
3367
3402
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3368
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ d(Ho, {
|
|
3369
3404
|
...i,
|
|
3370
3405
|
...r,
|
|
3371
3406
|
ref: t
|
|
3372
3407
|
});
|
|
3373
3408
|
});
|
|
3374
|
-
|
|
3375
|
-
var
|
|
3409
|
+
Ss.displayName = xs;
|
|
3410
|
+
var Cs = "DropdownMenuSubContent", ws = i.forwardRef((e, t) => {
|
|
3376
3411
|
let { __scopeDropdownMenu: n, ...r } = e, i = $(n);
|
|
3377
|
-
return /* @__PURE__ */
|
|
3412
|
+
return /* @__PURE__ */ d(Uo, {
|
|
3378
3413
|
...i,
|
|
3379
3414
|
...r,
|
|
3380
3415
|
ref: t,
|
|
@@ -3388,8 +3423,8 @@ var ys = "DropdownMenuSubContent", bs = r.forwardRef((e, t) => {
|
|
|
3388
3423
|
}
|
|
3389
3424
|
});
|
|
3390
3425
|
});
|
|
3391
|
-
|
|
3392
|
-
var
|
|
3426
|
+
ws.displayName = Cs;
|
|
3427
|
+
var Ts = Yo, Es = Zo, Ds = $o, Os = ts, ks = rs, As = as, js = ss, Ms = ls, Ns = ds, Ps = ps, Fs = hs, Is = _s, Ls = bs, Rs = Ss, zs = ws, Bs = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Vs = (...e) => e.filter((e, t, n) => !!e && n.indexOf(e) === t).join(" "), Hs = {
|
|
3393
3428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3394
3429
|
width: 24,
|
|
3395
3430
|
height: 24,
|
|
@@ -3399,56 +3434,56 @@ var xs = Go, Ss = qo, Cs = Yo, ws = Zo, Ts = $o, Es = ts, Ds = rs, Os = as, ks =
|
|
|
3399
3434
|
strokeWidth: 2,
|
|
3400
3435
|
strokeLinecap: "round",
|
|
3401
3436
|
strokeLinejoin: "round"
|
|
3402
|
-
},
|
|
3437
|
+
}, Us = s(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: s, ...c }, l) => o("svg", {
|
|
3403
3438
|
ref: l,
|
|
3404
|
-
...
|
|
3439
|
+
...Hs,
|
|
3405
3440
|
width: t,
|
|
3406
3441
|
height: t,
|
|
3407
3442
|
stroke: e,
|
|
3408
3443
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3409
|
-
className:
|
|
3444
|
+
className: Vs("lucide", i),
|
|
3410
3445
|
...c
|
|
3411
|
-
}, [...s.map(([e, t]) =>
|
|
3412
|
-
let n =
|
|
3446
|
+
}, [...s.map(([e, t]) => o(e, t)), ...Array.isArray(a) ? a : [a]])), Ws = (e, t) => {
|
|
3447
|
+
let n = s(({ className: n, ...r }, i) => o(Us, {
|
|
3413
3448
|
ref: i,
|
|
3414
3449
|
iconNode: t,
|
|
3415
|
-
className:
|
|
3450
|
+
className: Vs(`lucide-${Bs(e)}`, n),
|
|
3416
3451
|
...r
|
|
3417
3452
|
}));
|
|
3418
3453
|
return n.displayName = `${e}`, n;
|
|
3419
|
-
},
|
|
3454
|
+
}, Gs = Ws("Check", [["path", {
|
|
3420
3455
|
d: "M20 6 9 17l-5-5",
|
|
3421
3456
|
key: "1gmf2c"
|
|
3422
|
-
}]]),
|
|
3457
|
+
}]]), Ks = Ws("ChevronRight", [["path", {
|
|
3423
3458
|
d: "m9 18 6-6-6-6",
|
|
3424
3459
|
key: "mthhwq"
|
|
3425
|
-
}]]),
|
|
3460
|
+
}]]), qs = Ws("Circle", [["circle", {
|
|
3426
3461
|
cx: "12",
|
|
3427
3462
|
cy: "12",
|
|
3428
3463
|
r: "10",
|
|
3429
3464
|
key: "1mglay"
|
|
3430
|
-
}]]),
|
|
3465
|
+
}]]), Js = Ts, Ys = Es, Xs = ks, Zs = Ds, Qs = Ls, $s = Ns, ec = i.forwardRef(({ className: t, inset: r, children: i, ...a }, o) => /* @__PURE__ */ f(Rs, {
|
|
3431
3466
|
ref: o,
|
|
3432
3467
|
className: e("flex cursor-default select-none items-center rounded-2xs px-2 py-1.5 text-sm outline-none focus:bg-f1-background-secondary data-[state=open]:bg-f1-background-secondary", r && "pl-8", t),
|
|
3433
3468
|
...a,
|
|
3434
|
-
children: [i, /* @__PURE__ */
|
|
3435
|
-
icon:
|
|
3469
|
+
children: [i, /* @__PURE__ */ d(n, {
|
|
3470
|
+
icon: Ks,
|
|
3436
3471
|
size: "md",
|
|
3437
3472
|
className: "ml-auto"
|
|
3438
3473
|
})]
|
|
3439
3474
|
}));
|
|
3440
|
-
|
|
3441
|
-
var
|
|
3475
|
+
ec.displayName = Rs.displayName;
|
|
3476
|
+
var tc = i.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ d(zs, {
|
|
3442
3477
|
ref: r,
|
|
3443
3478
|
className: e("z-50 min-w-[--radix-popper-anchor-width] overflow-hidden rounded-md border bg-f1-background text-f1-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", t),
|
|
3444
3479
|
...n
|
|
3445
3480
|
}));
|
|
3446
|
-
|
|
3447
|
-
var
|
|
3481
|
+
tc.displayName = zs.displayName;
|
|
3482
|
+
var nc = i.forwardRef(({ className: n, sideOffset: r = 4, container: i, ...a }, o) => {
|
|
3448
3483
|
let s = t();
|
|
3449
|
-
return /* @__PURE__ */
|
|
3484
|
+
return /* @__PURE__ */ d(Ds, {
|
|
3450
3485
|
container: i ?? s ?? void 0,
|
|
3451
|
-
children: /* @__PURE__ */
|
|
3486
|
+
children: /* @__PURE__ */ d(Os, {
|
|
3452
3487
|
ref: o,
|
|
3453
3488
|
sideOffset: r,
|
|
3454
3489
|
className: e("z-50 min-w-[--radix-popper-anchor-width] overflow-hidden rounded-md border border-solid border-f1-border-secondary bg-f1-background text-f1-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", "origin-[var(--radix-dropdown-menu-content-transform-origin)]", n),
|
|
@@ -3456,30 +3491,30 @@ var Qs = r.forwardRef(({ className: n, sideOffset: r = 4, container: i, ...a },
|
|
|
3456
3491
|
})
|
|
3457
3492
|
});
|
|
3458
3493
|
});
|
|
3459
|
-
|
|
3460
|
-
var
|
|
3494
|
+
nc.displayName = Os.displayName;
|
|
3495
|
+
var rc = e("relative flex cursor-default select-none items-center rounded py-2 pl-3 pr-5 text-base font-medium outline-none transition-colors after:absolute after:inset-x-1 after:inset-y-0 after:h-full after:rounded after:bg-f1-background-hover after:opacity-0 after:transition-opacity after:duration-75 after:content-[''] first:pt-3 first:after:top-1 first:after:h-[calc(100%-0.25rem)] last:pb-3 last:after:bottom-1 last:after:h-[calc(100%-0.25rem)] hover:after:opacity-100 focus:after:opacity-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50", "only:after:inset-y-1 only:after:h-auto", "focus:outline-none focus:ring-0 focus:ring-transparent"), ic = i.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ d(js, {
|
|
3461
3496
|
onClick: (e) => {
|
|
3462
3497
|
e.stopPropagation();
|
|
3463
3498
|
},
|
|
3464
3499
|
ref: i,
|
|
3465
|
-
className: e(
|
|
3500
|
+
className: e(rc, n && "pl-8", t),
|
|
3466
3501
|
...r
|
|
3467
3502
|
}));
|
|
3468
|
-
|
|
3469
|
-
var
|
|
3503
|
+
ic.displayName = js.displayName;
|
|
3504
|
+
var ac = i.forwardRef(({ className: t, children: n, checked: r, ...i }, a) => /* @__PURE__ */ f(Ms, {
|
|
3470
3505
|
ref: a,
|
|
3471
3506
|
className: e("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-f1-background-secondary focus:text-f1-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
|
|
3472
3507
|
checked: r,
|
|
3473
3508
|
...i,
|
|
3474
|
-
children: [/* @__PURE__ */
|
|
3509
|
+
children: [/* @__PURE__ */ d("span", {
|
|
3475
3510
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
3476
|
-
children: /* @__PURE__ */
|
|
3511
|
+
children: /* @__PURE__ */ d(Fs, { children: /* @__PURE__ */ d(Gs, { className: "h-4 w-4" }) })
|
|
3477
3512
|
}), n]
|
|
3478
3513
|
}));
|
|
3479
|
-
|
|
3480
|
-
var
|
|
3514
|
+
ac.displayName = Ms.displayName;
|
|
3515
|
+
var oc = i.forwardRef(({ className: t, children: n, checked: r, onSelect: i, ...a }, o) => /* @__PURE__ */ d(Ms, {
|
|
3481
3516
|
ref: o,
|
|
3482
|
-
className: e(
|
|
3517
|
+
className: e(rc, t),
|
|
3483
3518
|
checked: r,
|
|
3484
3519
|
onSelect: (e) => {
|
|
3485
3520
|
e.preventDefault(), i?.(e);
|
|
@@ -3487,89 +3522,89 @@ var nc = r.forwardRef(({ className: t, children: n, checked: r, onSelect: i, ...
|
|
|
3487
3522
|
...a,
|
|
3488
3523
|
children: n
|
|
3489
3524
|
}));
|
|
3490
|
-
|
|
3491
|
-
var
|
|
3525
|
+
oc.displayName = "DropdownMenuToggleItem";
|
|
3526
|
+
var sc = i.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ f(Ps, {
|
|
3492
3527
|
ref: i,
|
|
3493
3528
|
className: e("relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-f1-background-secondary focus:text-f1-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
|
|
3494
3529
|
...r,
|
|
3495
|
-
children: [/* @__PURE__ */
|
|
3530
|
+
children: [/* @__PURE__ */ d("span", {
|
|
3496
3531
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
3497
|
-
children: /* @__PURE__ */
|
|
3532
|
+
children: /* @__PURE__ */ d(Fs, { children: /* @__PURE__ */ d(qs, { className: "h-2 w-2 fill-current" }) })
|
|
3498
3533
|
}), n]
|
|
3499
3534
|
}));
|
|
3500
|
-
|
|
3501
|
-
var
|
|
3535
|
+
sc.displayName = Ps.displayName;
|
|
3536
|
+
var cc = i.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ d(As, {
|
|
3502
3537
|
ref: i,
|
|
3503
3538
|
className: e("px-2 py-1.5 text-sm font-semibold", n && "pl-8", t),
|
|
3504
3539
|
...r
|
|
3505
3540
|
}));
|
|
3506
|
-
|
|
3507
|
-
var
|
|
3541
|
+
cc.displayName = As.displayName;
|
|
3542
|
+
var lc = i.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ d(Is, {
|
|
3508
3543
|
ref: r,
|
|
3509
3544
|
className: e("-mx-1 my-1 h-px bg-f1-border-secondary", t),
|
|
3510
3545
|
...n
|
|
3511
3546
|
}));
|
|
3512
|
-
|
|
3513
|
-
var
|
|
3514
|
-
let { __scopePopover: t, children: n, open:
|
|
3515
|
-
prop:
|
|
3547
|
+
lc.displayName = Is.displayName;
|
|
3548
|
+
var uc = "Popover", [dc, fc] = C(uc, [Qn]), pc = Qn(), [mc, hc] = dc(uc), gc = (e) => {
|
|
3549
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: s = !1 } = e, c = pc(t), l = i.useRef(null), [u, f] = i.useState(!1), [p, m] = D({
|
|
3550
|
+
prop: r,
|
|
3516
3551
|
defaultProp: a ?? !1,
|
|
3517
3552
|
onChange: o,
|
|
3518
|
-
caller:
|
|
3553
|
+
caller: uc
|
|
3519
3554
|
});
|
|
3520
|
-
return /* @__PURE__ */
|
|
3555
|
+
return /* @__PURE__ */ d(mr, {
|
|
3521
3556
|
...c,
|
|
3522
|
-
children: /* @__PURE__ */
|
|
3557
|
+
children: /* @__PURE__ */ d(mc, {
|
|
3523
3558
|
scope: t,
|
|
3524
|
-
contentId:
|
|
3559
|
+
contentId: Re(),
|
|
3525
3560
|
triggerRef: l,
|
|
3526
3561
|
open: p,
|
|
3527
3562
|
onOpenChange: m,
|
|
3528
|
-
onOpenToggle:
|
|
3529
|
-
hasCustomAnchor:
|
|
3530
|
-
onCustomAnchorAdd:
|
|
3531
|
-
onCustomAnchorRemove:
|
|
3563
|
+
onOpenToggle: i.useCallback(() => m((e) => !e), [m]),
|
|
3564
|
+
hasCustomAnchor: u,
|
|
3565
|
+
onCustomAnchorAdd: i.useCallback(() => f(!0), []),
|
|
3566
|
+
onCustomAnchorRemove: i.useCallback(() => f(!1), []),
|
|
3532
3567
|
modal: s,
|
|
3533
3568
|
children: n
|
|
3534
3569
|
})
|
|
3535
3570
|
});
|
|
3536
3571
|
};
|
|
3537
|
-
|
|
3538
|
-
var
|
|
3539
|
-
let { __scopePopover: n, ...
|
|
3540
|
-
return
|
|
3572
|
+
gc.displayName = uc;
|
|
3573
|
+
var _c = "PopoverAnchor", vc = i.forwardRef((e, t) => {
|
|
3574
|
+
let { __scopePopover: n, ...r } = e, a = hc(_c, n), o = pc(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = a;
|
|
3575
|
+
return i.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ d(hr, {
|
|
3541
3576
|
...o,
|
|
3542
|
-
...
|
|
3577
|
+
...r,
|
|
3543
3578
|
ref: t
|
|
3544
3579
|
});
|
|
3545
3580
|
});
|
|
3546
|
-
|
|
3547
|
-
var
|
|
3548
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
3581
|
+
vc.displayName = _c;
|
|
3582
|
+
var yc = "PopoverTrigger", bc = i.forwardRef((e, t) => {
|
|
3583
|
+
let { __scopePopover: n, ...r } = e, i = hc(yc, n), a = pc(n), o = b(t, i.triggerRef), s = /* @__PURE__ */ d(F.button, {
|
|
3549
3584
|
type: "button",
|
|
3550
3585
|
"aria-haspopup": "dialog",
|
|
3551
3586
|
"aria-expanded": i.open,
|
|
3552
3587
|
"aria-controls": i.contentId,
|
|
3553
|
-
"data-state":
|
|
3588
|
+
"data-state": Fc(i.open),
|
|
3554
3589
|
...r,
|
|
3555
3590
|
ref: o,
|
|
3556
|
-
onClick:
|
|
3591
|
+
onClick: x(e.onClick, i.onOpenToggle)
|
|
3557
3592
|
});
|
|
3558
|
-
return i.hasCustomAnchor ? s : /* @__PURE__ */
|
|
3593
|
+
return i.hasCustomAnchor ? s : /* @__PURE__ */ d(hr, {
|
|
3559
3594
|
asChild: !0,
|
|
3560
3595
|
...a,
|
|
3561
3596
|
children: s
|
|
3562
3597
|
});
|
|
3563
3598
|
});
|
|
3564
|
-
|
|
3565
|
-
var
|
|
3566
|
-
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a =
|
|
3567
|
-
return /* @__PURE__ */
|
|
3599
|
+
bc.displayName = yc;
|
|
3600
|
+
var xc = "PopoverPortal", [Sc, Cc] = dc(xc, { forceMount: void 0 }), wc = (e) => {
|
|
3601
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = hc(xc, t);
|
|
3602
|
+
return /* @__PURE__ */ d(Sc, {
|
|
3568
3603
|
scope: t,
|
|
3569
3604
|
forceMount: n,
|
|
3570
|
-
children: /* @__PURE__ */
|
|
3605
|
+
children: /* @__PURE__ */ d(xr, {
|
|
3571
3606
|
present: n || a.open,
|
|
3572
|
-
children: /* @__PURE__ */
|
|
3607
|
+
children: /* @__PURE__ */ d(yr, {
|
|
3573
3608
|
asChild: !0,
|
|
3574
3609
|
container: i,
|
|
3575
3610
|
children: r
|
|
@@ -3577,78 +3612,78 @@ var _c = "PopoverPortal", [vc, yc] = sc(_c, { forceMount: void 0 }), bc = (e) =>
|
|
|
3577
3612
|
})
|
|
3578
3613
|
});
|
|
3579
3614
|
};
|
|
3580
|
-
|
|
3581
|
-
var
|
|
3582
|
-
let n =
|
|
3583
|
-
return /* @__PURE__ */
|
|
3615
|
+
wc.displayName = xc;
|
|
3616
|
+
var Tc = "PopoverContent", Ec = i.forwardRef((e, t) => {
|
|
3617
|
+
let n = Cc(Tc, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = hc(Tc, e.__scopePopover);
|
|
3618
|
+
return /* @__PURE__ */ d(xr, {
|
|
3584
3619
|
present: r || a.open,
|
|
3585
|
-
children: a.modal ? /* @__PURE__ */
|
|
3620
|
+
children: a.modal ? /* @__PURE__ */ d(Oc, {
|
|
3586
3621
|
...i,
|
|
3587
3622
|
ref: t
|
|
3588
|
-
}) : /* @__PURE__ */
|
|
3623
|
+
}) : /* @__PURE__ */ d(kc, {
|
|
3589
3624
|
...i,
|
|
3590
3625
|
ref: t
|
|
3591
3626
|
})
|
|
3592
3627
|
});
|
|
3593
3628
|
});
|
|
3594
|
-
|
|
3595
|
-
var
|
|
3596
|
-
let n =
|
|
3597
|
-
return
|
|
3598
|
-
let e =
|
|
3599
|
-
if (e) return
|
|
3600
|
-
}, []), /* @__PURE__ */
|
|
3601
|
-
as:
|
|
3629
|
+
Ec.displayName = Tc;
|
|
3630
|
+
var Dc = /* @__PURE__ */ A("PopoverContent.RemoveScroll"), Oc = i.forwardRef((e, t) => {
|
|
3631
|
+
let n = hc(Tc, e.__scopePopover), r = i.useRef(null), a = b(t, r), o = i.useRef(!1);
|
|
3632
|
+
return i.useEffect(() => {
|
|
3633
|
+
let e = r.current;
|
|
3634
|
+
if (e) return ei(e);
|
|
3635
|
+
}, []), /* @__PURE__ */ d(sa, {
|
|
3636
|
+
as: Dc,
|
|
3602
3637
|
allowPinchZoom: !0,
|
|
3603
|
-
children: /* @__PURE__ */
|
|
3638
|
+
children: /* @__PURE__ */ d(Ac, {
|
|
3604
3639
|
...e,
|
|
3605
3640
|
ref: a,
|
|
3606
3641
|
trapFocus: n.open,
|
|
3607
3642
|
disableOutsidePointerEvents: !0,
|
|
3608
|
-
onCloseAutoFocus:
|
|
3643
|
+
onCloseAutoFocus: x(e.onCloseAutoFocus, (e) => {
|
|
3609
3644
|
e.preventDefault(), o.current || n.triggerRef.current?.focus();
|
|
3610
3645
|
}),
|
|
3611
|
-
onPointerDownOutside:
|
|
3646
|
+
onPointerDownOutside: x(e.onPointerDownOutside, (e) => {
|
|
3612
3647
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
3613
3648
|
o.current = r;
|
|
3614
3649
|
}, { checkForDefaultPrevented: !1 }),
|
|
3615
|
-
onFocusOutside:
|
|
3650
|
+
onFocusOutside: x(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
3616
3651
|
})
|
|
3617
3652
|
});
|
|
3618
|
-
}),
|
|
3619
|
-
let n =
|
|
3620
|
-
return /* @__PURE__ */
|
|
3653
|
+
}), kc = i.forwardRef((e, t) => {
|
|
3654
|
+
let n = hc(Tc, e.__scopePopover), r = i.useRef(!1), a = i.useRef(!1);
|
|
3655
|
+
return /* @__PURE__ */ d(Ac, {
|
|
3621
3656
|
...e,
|
|
3622
3657
|
ref: t,
|
|
3623
3658
|
trapFocus: !1,
|
|
3624
3659
|
disableOutsidePointerEvents: !1,
|
|
3625
3660
|
onCloseAutoFocus: (t) => {
|
|
3626
|
-
e.onCloseAutoFocus?.(t), t.defaultPrevented || (
|
|
3661
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, a.current = !1;
|
|
3627
3662
|
},
|
|
3628
3663
|
onInteractOutside: (t) => {
|
|
3629
|
-
e.onInteractOutside?.(t), t.defaultPrevented || (
|
|
3630
|
-
let
|
|
3631
|
-
n.triggerRef.current?.contains(
|
|
3664
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (a.current = !0));
|
|
3665
|
+
let i = t.target;
|
|
3666
|
+
n.triggerRef.current?.contains(i) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
3632
3667
|
}
|
|
3633
3668
|
});
|
|
3634
|
-
}),
|
|
3635
|
-
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside:
|
|
3636
|
-
return
|
|
3669
|
+
}), Ac = i.forwardRef((e, t) => {
|
|
3670
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: c, onFocusOutside: l, onInteractOutside: u, ...f } = e, p = hc(Tc, n), m = pc(n);
|
|
3671
|
+
return ye(), /* @__PURE__ */ d(Te, {
|
|
3637
3672
|
asChild: !0,
|
|
3638
3673
|
loop: !0,
|
|
3639
3674
|
trapped: r,
|
|
3640
3675
|
onMountAutoFocus: i,
|
|
3641
3676
|
onUnmountAutoFocus: a,
|
|
3642
|
-
children: /* @__PURE__ */
|
|
3677
|
+
children: /* @__PURE__ */ d(de, {
|
|
3643
3678
|
asChild: !0,
|
|
3644
3679
|
disableOutsidePointerEvents: o,
|
|
3645
|
-
onInteractOutside:
|
|
3680
|
+
onInteractOutside: u,
|
|
3646
3681
|
onEscapeKeyDown: s,
|
|
3647
3682
|
onPointerDownOutside: c,
|
|
3648
3683
|
onFocusOutside: l,
|
|
3649
3684
|
onDismiss: () => p.onOpenChange(!1),
|
|
3650
|
-
children: /* @__PURE__ */
|
|
3651
|
-
"data-state":
|
|
3685
|
+
children: /* @__PURE__ */ d(gr, {
|
|
3686
|
+
"data-state": Fc(p.open),
|
|
3652
3687
|
role: "dialog",
|
|
3653
3688
|
id: p.contentId,
|
|
3654
3689
|
...m,
|
|
@@ -3665,33 +3700,33 @@ var Cc = /* @__PURE__ */ E("PopoverContent.RemoveScroll"), wc = r.forwardRef((e,
|
|
|
3665
3700
|
})
|
|
3666
3701
|
})
|
|
3667
3702
|
});
|
|
3668
|
-
}),
|
|
3669
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
3670
|
-
return /* @__PURE__ */
|
|
3703
|
+
}), jc = "PopoverClose", Mc = i.forwardRef((e, t) => {
|
|
3704
|
+
let { __scopePopover: n, ...r } = e, i = hc(jc, n);
|
|
3705
|
+
return /* @__PURE__ */ d(F.button, {
|
|
3671
3706
|
type: "button",
|
|
3672
3707
|
...r,
|
|
3673
3708
|
ref: t,
|
|
3674
|
-
onClick:
|
|
3709
|
+
onClick: x(e.onClick, () => i.onOpenChange(!1))
|
|
3675
3710
|
});
|
|
3676
3711
|
});
|
|
3677
|
-
|
|
3678
|
-
var
|
|
3679
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
3680
|
-
return /* @__PURE__ */
|
|
3712
|
+
Mc.displayName = jc;
|
|
3713
|
+
var Nc = "PopoverArrow", Pc = i.forwardRef((e, t) => {
|
|
3714
|
+
let { __scopePopover: n, ...r } = e, i = pc(n);
|
|
3715
|
+
return /* @__PURE__ */ d(_r, {
|
|
3681
3716
|
...i,
|
|
3682
3717
|
...r,
|
|
3683
3718
|
ref: t
|
|
3684
3719
|
});
|
|
3685
3720
|
});
|
|
3686
|
-
|
|
3687
|
-
function
|
|
3721
|
+
Pc.displayName = Nc;
|
|
3722
|
+
function Fc(e) {
|
|
3688
3723
|
return e ? "open" : "closed";
|
|
3689
3724
|
}
|
|
3690
|
-
var
|
|
3725
|
+
var Ic = gc, Lc = vc, Rc = bc, zc = wc, Bc = Ec, Vc = Pc, Hc = Ic, Uc = Rc, Wc = Lc, Gc = Vc, Kc = i.forwardRef(({ className: n, align: r = "center", sideOffset: i = 4, container: a, ...o }, s) => {
|
|
3691
3726
|
let c = t();
|
|
3692
|
-
return /* @__PURE__ */
|
|
3727
|
+
return /* @__PURE__ */ d(zc, {
|
|
3693
3728
|
container: a ?? c,
|
|
3694
|
-
children: /* @__PURE__ */
|
|
3729
|
+
children: /* @__PURE__ */ d(Bc, {
|
|
3695
3730
|
asChild: o.asChild,
|
|
3696
3731
|
ref: s,
|
|
3697
3732
|
align: r,
|
|
@@ -3701,6 +3736,6 @@ var Mc = fc, Nc = mc, Pc = gc, Fc = bc, Ic = Sc, Lc = Ac, Rc = Mc, zc = Pc, Bc =
|
|
|
3701
3736
|
})
|
|
3702
3737
|
});
|
|
3703
3738
|
});
|
|
3704
|
-
|
|
3739
|
+
Kc.displayName = Bc.displayName;
|
|
3705
3740
|
//#endregion
|
|
3706
|
-
export {
|
|
3741
|
+
export { b as $, xr as A, ye as B, oc as C, Ws as D, Ks as E, mr as F, F as G, R as H, Qn as I, D as J, j as K, Yn as L, hr as M, _r as N, sa as O, gr as P, x as Q, Re as R, ec as S, rc as T, re as U, de as V, L as W, S as X, T as Y, C as Z, $s as _, Uc as a, Qs as b, zc as c, Js as d, _ as et, nc as f, Zs as g, cc as h, Kc as i, yr as j, ei as k, Ic as l, ic as m, Wc as n, Lc as o, Xs as p, A as q, Gc as r, Bc as s, Hc as t, Rc as u, sc as v, Ys as w, tc as x, lc as y, Te as z };
|