welcome-ui 9.0.0-alpha.2 → 9.0.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/README.md +47 -3
- package/dist/2W3RN7C5-bkX-rIa3.js +61 -0
- package/dist/4I4MLMKD-BLxAidnq.js +43 -0
- package/dist/Accordion.js +6 -6
- package/dist/Alert.js +1 -1
- package/dist/AspectRatio.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/{4CMBR7SL-Dhp8uJop.js → B7UTNDHN-BlIblHCu.js} +59 -59
- package/dist/Badge.js +1 -1
- package/dist/Breadcrumb.css +1 -1
- package/dist/Breadcrumb.js +27 -27
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/Checkbox.css +1 -1
- package/dist/Checkbox.js +22 -22
- package/dist/CloseButton.js +3 -3
- package/dist/{SYRFVSLH-CHNUB1rW.js → DSAASPLT-BaaCUKsb.js} +7 -7
- package/dist/DatePicker.js +5 -5
- package/dist/DateTimePicker.js +2 -2
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.js +67 -67
- package/dist/DropdownMenu.js +261 -259
- package/dist/Field.js +1 -1
- package/dist/FieldGroup.js +1 -1
- package/dist/FileDrop.js +194 -221
- package/dist/FileUpload.js +2 -2
- package/dist/GVVKDT6A-bET6V7Py.js +724 -0
- package/dist/Hint.js +1 -1
- package/dist/{Icon-BisRi8B3.js → Icon-EG7O4YwD.js} +1 -1
- package/dist/Icon.js +12 -12
- package/dist/InputText.js +1 -1
- package/dist/{ASMQKSDT-SH1qSiMi.js → KPUWHTQJ-D2TPji47.js} +30 -30
- package/dist/Label.js +3 -3
- package/dist/Link.css +1 -1
- package/dist/Link.js +27 -27
- package/dist/Loader.js +1 -1
- package/dist/Logo.js +1 -1
- package/dist/Modal.js +10 -10
- package/dist/{JC64G2H7-DPy9R0De.js → NI3IVY7K-Ztb3-XAv.js} +571 -571
- package/dist/{P4IRICAX-7kH4HzWI.js → NMGNQVTG-C6TqBngP.js} +5 -5
- package/dist/{LVA2YJMS-NUHCRwFZ.js → OE2EFRVA-C3721cM3.js} +316 -315
- package/dist/{ITI7HKP4-C5xLpoVY.js → OLVWQA7U-DysaSaZj.js} +59 -59
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.js +81 -73
- package/dist/PasswordInput.js +17 -18
- package/dist/Popover.js +14 -14
- package/dist/{YV4JVR4I-CVFstk2K.js → RTNCFSKZ-qpPg689E.js} +75 -73
- package/dist/Radio.css +1 -1
- package/dist/Radio.js +29 -29
- package/dist/RadioGroup.js +21 -21
- package/dist/RadioTab.js +2 -2
- package/dist/{P2CTZE2T-D1TepwxQ.js → SBSPVDDI-DJKkC1eb.js} +43 -43
- package/dist/{NLEBE274-B4zy25kL.js → SQZLCNLX-CHDXnZ16.js} +16 -16
- package/dist/Search.js +2 -2
- package/dist/Select.js +170 -181
- package/dist/Slider.js +1 -1
- package/dist/Swiper.css +1 -1
- package/dist/Swiper.js +151 -151
- package/dist/{VGCJ63VH-CVhs4PYt.js → T22PY7TE-C1N0q8Kn.js} +109 -109
- package/dist/Table.js +1 -1
- package/dist/Tabs.js +303 -308
- package/dist/Tag.js +3 -3
- package/dist/Text.js +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/TimePicker.js +2 -2
- package/dist/Toast.js +1 -1
- package/dist/Toggle.js +2 -2
- package/dist/Tooltip.js +72 -72
- package/dist/VariantIcon.js +3 -3
- package/dist/WelcomeLoader.js +1 -1
- package/dist/XCKGTAUF-DkxWCbaW.js +25 -0
- package/dist/Y67KZUMI-DFEgrUv2.js +15 -0
- package/dist/{AXB53BZF-BHeessqV.js → ZTXFEM5L-CkrIQCN1.js} +7 -7
- package/dist/{field-icon-size-Du58qHNC.js → field-icon-size-Z5NulTSk.js} +216 -224
- package/dist/{index-5rXezknO.js → index-BC2bF45u.js} +1 -1
- package/dist/{index-C8GsqBDe.js → index-BeetbagJ.js} +1 -1
- package/dist/{index-BJLXLdM3.js → index-Bt79XJ8R.js} +1 -1
- package/dist/{index-Dcq5gh3E.js → index-BtwrJ6N4.js} +1 -1
- package/dist/{index-DL4-ut3P.js → index-CCASZBtz.js} +1 -1
- package/dist/{index-lbUBMgHp.js → index-CPqDZeah.js} +2 -2
- package/dist/{index-CTgip19b.js → index-CQEPCbEE.js} +1 -1
- package/dist/{index-CnxSNAPH.js → index-Crpe9CvH.js} +1 -1
- package/dist/{index-CWVOLBDY.js → index-D5a8Oe6k.js} +1 -1
- package/dist/{index-C1jjVTAc.js → index-D8dq-I5s.js} +1 -1
- package/dist/{index-Cvtm6uuS.js → index-DkwTwo3z.js} +1 -1
- package/dist/{index-BG2aV9o8.js → index-DnO8yBVT.js} +1 -1
- package/dist/index.css +0 -0
- package/dist/tslib.es6-DpB4Y59c.js +683 -0
- package/dist/types/components/Pagination/index.d.ts +1 -2
- package/dist/types/components/Pagination/types.d.ts +5 -2
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
- package/dist/types/components/PasswordInput/types.d.ts +1 -1
- package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -1
- package/dist/types/components/Tabs/index.d.ts +1 -1
- package/dist/types/components/Tabs/types.d.ts +1 -2
- package/dist/types/components/Tabs/utils.d.ts +1 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/theme/index.d.ts +0 -0
- package/dist/types/utils/useForkRef.d.ts +7 -1
- package/dist/useForkRef-D807AV7D.js +22 -0
- package/dist/{utils-BNMgUIHQ.js → utils-BpbIqM56.js} +1 -1
- package/dist/utils.js +2 -2
- package/package.json +5 -5
- package/dist/BYC7LY2E-DbSoi9cN.js +0 -673
- package/dist/KUU7WJ55-CsIy9XMu.js +0 -61
- package/dist/MTZPJQMC-D_TnSwZf.js +0 -15
- package/dist/QYJ6MIDR-Dm7lYMh6.js +0 -43
- package/dist/X5NMLKT6-PeY306ft.js +0 -25
- package/dist/index--0U5Rubs.js +0 -644
- /package/dist/{index-PAaZGbyz.js → index-CdiHdiVB.js} +0 -0
|
@@ -1,117 +1,117 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import { isValidElement as
|
|
3
|
+
import { isValidElement as Kt, useMemo as k, useState as I, useLayoutEffect as Bt, useEffect as E, useRef as N, useCallback as yt, useReducer as kt, createContext as $t, useContext as jt } from "react";
|
|
4
4
|
import { jsx as P } from "react/jsx-runtime";
|
|
5
|
-
var
|
|
5
|
+
var Wt = Object.defineProperty, qt = Object.defineProperties, Ut = Object.getOwnPropertyDescriptors, D = Object.getOwnPropertySymbols, Et = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable, ut = (t, e, r) => e in t ? Wt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, l = (t, e) => {
|
|
6
6
|
for (var r in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
Et.call(e, r) && ut(t, r, e[r]);
|
|
8
8
|
if (D)
|
|
9
9
|
for (var r of D(e))
|
|
10
|
-
|
|
10
|
+
wt.call(e, r) && ut(t, r, e[r]);
|
|
11
11
|
return t;
|
|
12
|
-
}, w = (t, e) =>
|
|
12
|
+
}, w = (t, e) => qt(t, Ut(e)), ht = (t, e) => {
|
|
13
13
|
var r = {};
|
|
14
14
|
for (var n in t)
|
|
15
|
-
|
|
15
|
+
Et.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
16
16
|
if (t != null && D)
|
|
17
17
|
for (var n of D(t))
|
|
18
|
-
e.indexOf(n) < 0 &&
|
|
18
|
+
e.indexOf(n) < 0 && wt.call(t, n) && (r[n] = t[n]);
|
|
19
19
|
return r;
|
|
20
|
-
},
|
|
20
|
+
}, Xt = Object.defineProperty, Gt = Object.defineProperties, Ht = Object.getOwnPropertyDescriptors, R = Object.getOwnPropertySymbols, xt = Object.prototype.hasOwnProperty, Pt = Object.prototype.propertyIsEnumerable, st = (t, e, r) => e in t ? Xt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, $ = (t, e) => {
|
|
21
21
|
for (var r in e || (e = {}))
|
|
22
|
-
|
|
22
|
+
xt.call(e, r) && st(t, r, e[r]);
|
|
23
23
|
if (R)
|
|
24
24
|
for (var r of R(e))
|
|
25
|
-
|
|
25
|
+
Pt.call(e, r) && st(t, r, e[r]);
|
|
26
26
|
return t;
|
|
27
|
-
},
|
|
27
|
+
}, Yt = (t, e) => Gt(t, Ht(e)), $e = (t, e) => {
|
|
28
28
|
var r = {};
|
|
29
29
|
for (var n in t)
|
|
30
|
-
|
|
30
|
+
xt.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
31
31
|
if (t != null && R)
|
|
32
32
|
for (var n of R(t))
|
|
33
|
-
e.indexOf(n) < 0 &&
|
|
33
|
+
e.indexOf(n) < 0 && Pt.call(t, n) && (r[n] = t[n]);
|
|
34
34
|
return r;
|
|
35
35
|
};
|
|
36
|
-
function
|
|
36
|
+
function je(...t) {
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
if (
|
|
40
|
-
const r =
|
|
38
|
+
function We(t, e) {
|
|
39
|
+
if (zt(t)) {
|
|
40
|
+
const r = Jt(e) ? e() : e;
|
|
41
41
|
return t(r);
|
|
42
42
|
}
|
|
43
43
|
return t;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function zt(t) {
|
|
46
46
|
return typeof t == "function";
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Jt(t) {
|
|
49
49
|
return typeof t == "function";
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function j(t, e) {
|
|
52
52
|
return typeof Object.hasOwn == "function" ? Object.hasOwn(t, e) : Object.prototype.hasOwnProperty.call(t, e);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function qe(...t) {
|
|
55
55
|
return (...e) => {
|
|
56
56
|
for (const r of t)
|
|
57
57
|
typeof r == "function" && r(...e);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Ue(t) {
|
|
61
61
|
return t.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
const r =
|
|
63
|
+
function Xe(t, e) {
|
|
64
|
+
const r = $({}, t);
|
|
65
65
|
for (const n of e)
|
|
66
|
-
|
|
66
|
+
j(r, n) && delete r[n];
|
|
67
67
|
return r;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Ge(t, e) {
|
|
70
70
|
const r = {};
|
|
71
71
|
for (const n of e)
|
|
72
|
-
|
|
72
|
+
j(t, n) && (r[n] = t[n]);
|
|
73
73
|
return r;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function He(t) {
|
|
76
76
|
return t;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Ye(t, e) {
|
|
79
79
|
if (!t)
|
|
80
80
|
throw typeof e != "string" ? new Error("Invariant failed") : new Error(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ze(t) {
|
|
83
83
|
return Object.keys(t);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Je(t, ...e) {
|
|
86
86
|
const r = typeof t == "function" ? t(...e) : t;
|
|
87
87
|
return r == null ? !1 : !r;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Qt(t) {
|
|
90
90
|
return t.disabled || t["aria-disabled"] === !0 || t["aria-disabled"] === "true";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Zt(t) {
|
|
93
93
|
const e = {};
|
|
94
94
|
for (const r in t)
|
|
95
95
|
t[r] !== void 0 && (e[r] = t[r]);
|
|
96
96
|
return e;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Qe(...t) {
|
|
99
99
|
for (const e of t)
|
|
100
100
|
if (e !== void 0) return e;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function te(t, e) {
|
|
103
103
|
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return !t || !
|
|
105
|
+
function ee(t) {
|
|
106
|
+
return !t || !Kt(t) ? !1 : "ref" in t.props || "ref" in t;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function re(t) {
|
|
109
|
+
return ee(t) ? l({}, t.props).ref || t.ref : null;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ne(t, e) {
|
|
112
112
|
const r = l({}, t);
|
|
113
113
|
for (const n in e) {
|
|
114
|
-
if (
|
|
114
|
+
if (!j(e, n)) continue;
|
|
115
115
|
if (n === "className") {
|
|
116
116
|
const u = "className";
|
|
117
117
|
r[u] = t[u] ? `${t[u]} ${e[u]}` : e[u];
|
|
@@ -136,47 +136,47 @@ function ee(t, e) {
|
|
|
136
136
|
}
|
|
137
137
|
return r;
|
|
138
138
|
}
|
|
139
|
-
var
|
|
140
|
-
function
|
|
139
|
+
var T = oe();
|
|
140
|
+
function oe() {
|
|
141
141
|
var t;
|
|
142
142
|
return typeof window < "u" && !!((t = window.document) != null && t.createElement);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function _(t) {
|
|
145
145
|
return t ? "self" in t ? t.document : t.ownerDocument || document : document;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
return t ? "self" in t ? t.self :
|
|
147
|
+
function Ze(t) {
|
|
148
|
+
return t ? "self" in t ? t.self : _(t).defaultView || window : self;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
const { activeElement: r } =
|
|
150
|
+
function F(t, e = !1) {
|
|
151
|
+
const { activeElement: r } = _(t);
|
|
152
152
|
if (!(r != null && r.nodeName))
|
|
153
153
|
return null;
|
|
154
154
|
if (W(r) && r.contentDocument)
|
|
155
|
-
return
|
|
155
|
+
return F(
|
|
156
156
|
r.contentDocument.body,
|
|
157
157
|
e
|
|
158
158
|
);
|
|
159
159
|
if (e) {
|
|
160
160
|
const n = r.getAttribute("aria-activedescendant");
|
|
161
161
|
if (n) {
|
|
162
|
-
const o =
|
|
162
|
+
const o = _(r).getElementById(n);
|
|
163
163
|
if (o)
|
|
164
164
|
return o;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
return r;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function O(t, e) {
|
|
170
170
|
return t === e || t.contains(e);
|
|
171
171
|
}
|
|
172
172
|
function W(t) {
|
|
173
173
|
return t.tagName === "IFRAME";
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function ue(t) {
|
|
176
176
|
const e = t.tagName.toLowerCase();
|
|
177
|
-
return e === "button" ? !0 : e === "input" && t.type ?
|
|
177
|
+
return e === "button" ? !0 : e === "input" && t.type ? se.indexOf(t.type) !== -1 : !1;
|
|
178
178
|
}
|
|
179
|
-
var
|
|
179
|
+
var se = [
|
|
180
180
|
"button",
|
|
181
181
|
"color",
|
|
182
182
|
"file",
|
|
@@ -184,7 +184,7 @@ var oe = [
|
|
|
184
184
|
"reset",
|
|
185
185
|
"submit"
|
|
186
186
|
];
|
|
187
|
-
function
|
|
187
|
+
function ie(t) {
|
|
188
188
|
if (typeof t.checkVisibility == "function")
|
|
189
189
|
return t.checkVisibility();
|
|
190
190
|
const e = t;
|
|
@@ -198,45 +198,45 @@ function q(t) {
|
|
|
198
198
|
return !1;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function tr(t) {
|
|
202
202
|
return t.isContentEditable || q(t);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function er(t) {
|
|
205
205
|
if (q(t))
|
|
206
206
|
return t.value;
|
|
207
207
|
if (t.isContentEditable) {
|
|
208
|
-
const e =
|
|
208
|
+
const e = _(t).createRange();
|
|
209
209
|
return e.selectNodeContents(t), e.toString();
|
|
210
210
|
}
|
|
211
211
|
return "";
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function rr(t) {
|
|
214
214
|
let e = 0, r = 0;
|
|
215
215
|
if (q(t))
|
|
216
216
|
e = t.selectionStart || 0, r = t.selectionEnd || 0;
|
|
217
217
|
else if (t.isContentEditable) {
|
|
218
|
-
const n =
|
|
219
|
-
if (n != null && n.rangeCount && n.anchorNode &&
|
|
218
|
+
const n = _(t).getSelection();
|
|
219
|
+
if (n != null && n.rangeCount && n.anchorNode && O(t, n.anchorNode) && n.focusNode && O(t, n.focusNode)) {
|
|
220
220
|
const o = n.getRangeAt(0), u = o.cloneRange();
|
|
221
221
|
u.selectNodeContents(t), u.setEnd(o.startContainer, o.startOffset), e = u.toString().length, u.setEnd(o.endContainer, o.endOffset), r = u.toString().length;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
return { start: e, end: r };
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function ae(t, e) {
|
|
227
227
|
const r = ["dialog", "menu", "listbox", "tree", "grid"], n = t == null ? void 0 : t.getAttribute("role");
|
|
228
228
|
return n && r.indexOf(n) !== -1 ? n : e;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function nr(t, e) {
|
|
231
231
|
var r;
|
|
232
232
|
const n = {
|
|
233
233
|
menu: "menuitem",
|
|
234
234
|
listbox: "option",
|
|
235
235
|
tree: "treeitem"
|
|
236
|
-
}, o =
|
|
236
|
+
}, o = ae(t);
|
|
237
237
|
return o && (r = n[o]) != null ? r : e;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function ce(t) {
|
|
240
240
|
if (!t) return null;
|
|
241
241
|
const e = (r) => r === "auto" || r === "scroll";
|
|
242
242
|
if (t.clientHeight && t.scrollHeight > t.clientHeight) {
|
|
@@ -246,78 +246,78 @@ function ie(t) {
|
|
|
246
246
|
const { overflowX: r } = getComputedStyle(t);
|
|
247
247
|
if (e(r)) return t;
|
|
248
248
|
}
|
|
249
|
-
return
|
|
249
|
+
return ce(t.parentElement) || document.scrollingElement || document.body;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function or(t, e) {
|
|
252
252
|
const r = t.map((o, u) => [u, o]);
|
|
253
253
|
let n = !1;
|
|
254
254
|
return r.sort(([o, u], [a, i]) => {
|
|
255
|
-
const
|
|
256
|
-
return
|
|
255
|
+
const b = e(u), c = e(i);
|
|
256
|
+
return b === c || !b || !c ? 0 : fe(b, c) ? (o > a && (n = !0), -1) : (o < a && (n = !0), 1);
|
|
257
257
|
}), n ? r.map(([o, u]) => u) : t;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function fe(t, e) {
|
|
260
260
|
return !!(e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
return
|
|
262
|
+
function le() {
|
|
263
|
+
return T && !!navigator.maxTouchPoints;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
return
|
|
265
|
+
function Ct() {
|
|
266
|
+
return T ? /mac|iphone|ipad|ipod/i.test(navigator.platform) : !1;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
return
|
|
268
|
+
function de() {
|
|
269
|
+
return T && Ct() && /apple/i.test(navigator.vendor);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
return
|
|
271
|
+
function ur() {
|
|
272
|
+
return T && /firefox\//i.test(navigator.userAgent);
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
return
|
|
274
|
+
function sr() {
|
|
275
|
+
return T && navigator.platform.startsWith("Mac") && !le();
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
return !!(t.currentTarget && !
|
|
277
|
+
function be(t) {
|
|
278
|
+
return !!(t.currentTarget && !O(t.currentTarget, t.target));
|
|
279
279
|
}
|
|
280
280
|
function it(t) {
|
|
281
281
|
return t.target === t.currentTarget;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function ir(t) {
|
|
284
284
|
const e = t.currentTarget;
|
|
285
285
|
if (!e) return !1;
|
|
286
|
-
const r =
|
|
286
|
+
const r = Ct();
|
|
287
287
|
if (r && !t.metaKey || !r && !t.ctrlKey) return !1;
|
|
288
288
|
const n = e.tagName.toLowerCase();
|
|
289
289
|
return n === "a" || n === "button" && e.type === "submit" || n === "input" && e.type === "submit";
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function ar(t) {
|
|
292
292
|
const e = t.currentTarget;
|
|
293
293
|
if (!e) return !1;
|
|
294
294
|
const r = e.tagName.toLowerCase();
|
|
295
295
|
return t.altKey ? r === "a" || r === "button" && e.type === "submit" || r === "input" && e.type === "submit" : !1;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function cr(t, e, r) {
|
|
298
298
|
const n = new Event(e, r);
|
|
299
299
|
return t.dispatchEvent(n);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
const r = new FocusEvent("blur", e), n = t.dispatchEvent(r), o =
|
|
301
|
+
function fr(t, e) {
|
|
302
|
+
const r = new FocusEvent("blur", e), n = t.dispatchEvent(r), o = Yt($({}, e), { bubbles: !0 });
|
|
303
303
|
return t.dispatchEvent(new FocusEvent("focusout", o)), n;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function lr(t, e, r) {
|
|
306
306
|
const n = new KeyboardEvent(e, r);
|
|
307
307
|
return t.dispatchEvent(n);
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function dr(t, e) {
|
|
310
310
|
const r = new MouseEvent("click", e);
|
|
311
311
|
return t.dispatchEvent(r);
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function pe(t, e) {
|
|
314
314
|
const r = e || t.currentTarget, n = t.relatedTarget;
|
|
315
|
-
return !n || !
|
|
315
|
+
return !n || !O(r, n);
|
|
316
316
|
}
|
|
317
317
|
function K(t, e, r, n) {
|
|
318
318
|
const u = ((i) => {
|
|
319
|
-
const
|
|
320
|
-
return () => cancelAnimationFrame(
|
|
319
|
+
const b = requestAnimationFrame(i);
|
|
320
|
+
return () => cancelAnimationFrame(b);
|
|
321
321
|
})(() => {
|
|
322
322
|
t.removeEventListener(e, a, !0), r();
|
|
323
323
|
}), a = () => {
|
|
@@ -344,8 +344,8 @@ function g(t, e, r, n = window) {
|
|
|
344
344
|
}
|
|
345
345
|
var U = l({}, m), at = U.useId;
|
|
346
346
|
U.useDeferredValue;
|
|
347
|
-
var ct = U.useInsertionEffect, M =
|
|
348
|
-
function
|
|
347
|
+
var ct = U.useInsertionEffect, M = T ? Bt : E;
|
|
348
|
+
function br(t) {
|
|
349
349
|
const e = N(t);
|
|
350
350
|
return M(() => {
|
|
351
351
|
e.current = t;
|
|
@@ -357,13 +357,13 @@ function y(t) {
|
|
|
357
357
|
});
|
|
358
358
|
return ct ? ct(() => {
|
|
359
359
|
e.current = t;
|
|
360
|
-
}) : e.current = t,
|
|
360
|
+
}) : e.current = t, yt((...r) => {
|
|
361
361
|
var n;
|
|
362
362
|
return (n = e.current) == null ? void 0 : n.call(e, ...r);
|
|
363
363
|
}, []);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
const [e, r] =
|
|
365
|
+
function pr(t) {
|
|
366
|
+
const [e, r] = I(null);
|
|
367
367
|
return M(() => {
|
|
368
368
|
if (e == null || !t) return;
|
|
369
369
|
let n = null;
|
|
@@ -377,33 +377,33 @@ function X(...t) {
|
|
|
377
377
|
if (t.some(Boolean))
|
|
378
378
|
return (e) => {
|
|
379
379
|
for (const r of t)
|
|
380
|
-
|
|
380
|
+
te(r, e);
|
|
381
381
|
};
|
|
382
382
|
}, t);
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function vr(t) {
|
|
385
385
|
if (at) {
|
|
386
386
|
const n = at();
|
|
387
387
|
return t || n;
|
|
388
388
|
}
|
|
389
|
-
const [e, r] =
|
|
389
|
+
const [e, r] = I(t);
|
|
390
390
|
return M(() => {
|
|
391
391
|
if (t || e) return;
|
|
392
392
|
const n = Math.random().toString(36).slice(2, 8);
|
|
393
393
|
r(`id-${n}`);
|
|
394
394
|
}, [t, e]), t || e;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function ve(t, e) {
|
|
397
397
|
const r = (u) => {
|
|
398
398
|
if (typeof u == "string")
|
|
399
399
|
return u;
|
|
400
|
-
}, [n, o] =
|
|
400
|
+
}, [n, o] = I(() => r(e));
|
|
401
401
|
return M(() => {
|
|
402
402
|
const u = t && "current" in t ? t.current : t;
|
|
403
403
|
o((u == null ? void 0 : u.tagName.toLowerCase()) || r(e));
|
|
404
404
|
}, [t, e]), n;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function mr(t, e) {
|
|
407
407
|
const r = N(!1);
|
|
408
408
|
E(() => {
|
|
409
409
|
if (r.current)
|
|
@@ -416,76 +416,77 @@ function br(t, e) {
|
|
|
416
416
|
[]
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
return
|
|
419
|
+
function gr() {
|
|
420
|
+
return kt(() => [], []);
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function yr(t) {
|
|
423
423
|
return y(
|
|
424
424
|
typeof t == "function" ? t : () => t
|
|
425
425
|
);
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
const n =
|
|
427
|
+
function Er(t, e, r = []) {
|
|
428
|
+
const n = yt(
|
|
429
429
|
(o) => (t.wrapElement && (o = t.wrapElement(o)), e(o)),
|
|
430
430
|
[...r, t.wrapElement]
|
|
431
431
|
);
|
|
432
432
|
return w(l({}, t), { wrapElement: n });
|
|
433
433
|
}
|
|
434
|
-
function
|
|
435
|
-
const [r, n] =
|
|
434
|
+
function wr(t = !1, e) {
|
|
435
|
+
const [r, n] = I(null);
|
|
436
436
|
return { portalRef: X(n, e), portalNode: r, domReady: !t || r };
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function hr(t, e, r) {
|
|
439
439
|
const n = t.onLoadedMetadataCapture, o = k(() => Object.assign(() => {
|
|
440
440
|
}, w(l({}, n), { [e]: r })), [n, e, r]);
|
|
441
441
|
return [n == null ? void 0 : n[e], { onLoadedMetadataCapture: o }];
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
var ft = !1;
|
|
444
|
+
function xr() {
|
|
444
445
|
return E(() => {
|
|
445
|
-
g("mousemove",
|
|
446
|
-
}, []), y(() =>
|
|
446
|
+
ft || (g("mousemove", ge, !0), g("mousedown", A, !0), g("mouseup", A, !0), g("keydown", A, !0), g("scroll", A, !0), ft = !0);
|
|
447
|
+
}, []), y(() => G);
|
|
447
448
|
}
|
|
448
|
-
var
|
|
449
|
-
function
|
|
450
|
-
const e = t.movementX || t.screenX -
|
|
451
|
-
return
|
|
449
|
+
var G = !1, lt = 0, dt = 0;
|
|
450
|
+
function me(t) {
|
|
451
|
+
const e = t.movementX || t.screenX - lt, r = t.movementY || t.screenY - dt;
|
|
452
|
+
return lt = t.screenX, dt = t.screenY, e || r || process.env.NODE_ENV === "test";
|
|
452
453
|
}
|
|
453
|
-
function
|
|
454
|
-
|
|
454
|
+
function ge(t) {
|
|
455
|
+
me(t) && (G = !0);
|
|
455
456
|
}
|
|
456
|
-
function
|
|
457
|
-
|
|
457
|
+
function A() {
|
|
458
|
+
G = !1;
|
|
458
459
|
}
|
|
459
|
-
function
|
|
460
|
+
function ye(t) {
|
|
460
461
|
const e = m.forwardRef((r, n) => t(w(l({}, r), { ref: n })));
|
|
461
462
|
return e.displayName = t.displayName || t.name, e;
|
|
462
463
|
}
|
|
463
|
-
function
|
|
464
|
+
function Pr(t, e) {
|
|
464
465
|
return m.memo(t, e);
|
|
465
466
|
}
|
|
466
|
-
function
|
|
467
|
-
const r = e, { wrapElement: n, render: o } = r, u =
|
|
467
|
+
function Ee(t, e) {
|
|
468
|
+
const r = e, { wrapElement: n, render: o } = r, u = ht(r, ["wrapElement", "render"]), a = X(e.ref, re(o));
|
|
468
469
|
let i;
|
|
469
470
|
if (m.isValidElement(o)) {
|
|
470
|
-
const
|
|
471
|
-
i = m.cloneElement(o,
|
|
471
|
+
const b = w(l({}, o.props), { ref: a });
|
|
472
|
+
i = m.cloneElement(o, ne(u, b));
|
|
472
473
|
} else o ? i = o(u) : i = /* @__PURE__ */ P(t, l({}, u));
|
|
473
474
|
return n ? n(i) : i;
|
|
474
475
|
}
|
|
475
|
-
function
|
|
476
|
+
function we(t) {
|
|
476
477
|
const e = (r = {}) => t(r);
|
|
477
478
|
return e.displayName = t.name, e;
|
|
478
479
|
}
|
|
479
|
-
function
|
|
480
|
+
function Cr(t = [], e = []) {
|
|
480
481
|
const r = m.createContext(void 0), n = m.createContext(void 0), o = () => m.useContext(r), u = (c = !1) => {
|
|
481
|
-
const d = m.useContext(n),
|
|
482
|
-
return c ? d : d ||
|
|
482
|
+
const d = m.useContext(n), p = o();
|
|
483
|
+
return c ? d : d || p;
|
|
483
484
|
}, a = () => {
|
|
484
485
|
const c = m.useContext(n), d = o();
|
|
485
486
|
if (!(c && c === d))
|
|
486
487
|
return d;
|
|
487
488
|
}, i = (c) => t.reduceRight(
|
|
488
|
-
(d,
|
|
489
|
+
(d, p) => /* @__PURE__ */ P(p, w(l({}, c), { children: d })),
|
|
489
490
|
/* @__PURE__ */ P(r.Provider, l({}, c))
|
|
490
491
|
);
|
|
491
492
|
return {
|
|
@@ -496,27 +497,27 @@ function xr(t = [], e = []) {
|
|
|
496
497
|
useProviderContext: a,
|
|
497
498
|
ContextProvider: i,
|
|
498
499
|
ScopedContextProvider: (c) => /* @__PURE__ */ P(i, w(l({}, c), { children: e.reduceRight(
|
|
499
|
-
(d,
|
|
500
|
+
(d, p) => /* @__PURE__ */ P(p, w(l({}, c), { children: d })),
|
|
500
501
|
/* @__PURE__ */ P(n.Provider, l({}, c))
|
|
501
502
|
) }))
|
|
502
503
|
};
|
|
503
504
|
}
|
|
504
|
-
var
|
|
505
|
-
function
|
|
505
|
+
var he = $t(!0), V = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
|
|
506
|
+
function xe(t) {
|
|
506
507
|
return Number.parseInt(t.getAttribute("tabindex") || "0", 10) < 0;
|
|
507
508
|
}
|
|
508
509
|
function C(t) {
|
|
509
|
-
return !(!t.matches(V) || !
|
|
510
|
+
return !(!t.matches(V) || !ie(t) || t.closest("[inert]"));
|
|
510
511
|
}
|
|
511
512
|
function S(t) {
|
|
512
|
-
if (!C(t) ||
|
|
513
|
+
if (!C(t) || xe(t)) return !1;
|
|
513
514
|
if (!("form" in t) || !t.form || t.checked || t.type !== "radio") return !0;
|
|
514
515
|
const e = t.form.elements.namedItem(t.name);
|
|
515
516
|
if (!e || !("length" in e)) return !0;
|
|
516
|
-
const r =
|
|
517
|
+
const r = F(t);
|
|
517
518
|
return !r || r === t || !("form" in r) || r.form !== t.form || r.name !== t.name;
|
|
518
519
|
}
|
|
519
|
-
function
|
|
520
|
+
function H(t, e) {
|
|
520
521
|
const r = Array.from(
|
|
521
522
|
t.querySelectorAll(V)
|
|
522
523
|
);
|
|
@@ -525,88 +526,88 @@ function Y(t, e) {
|
|
|
525
526
|
return n.forEach((o, u) => {
|
|
526
527
|
if (W(o) && o.contentDocument) {
|
|
527
528
|
const a = o.contentDocument.body;
|
|
528
|
-
n.splice(u, 1, ...
|
|
529
|
+
n.splice(u, 1, ...H(a));
|
|
529
530
|
}
|
|
530
531
|
}), n;
|
|
531
532
|
}
|
|
532
|
-
function
|
|
533
|
+
function Y(t, e, r) {
|
|
533
534
|
const n = Array.from(
|
|
534
535
|
t.querySelectorAll(V)
|
|
535
536
|
), o = n.filter(S);
|
|
536
537
|
return e && S(t) && o.unshift(t), o.forEach((u, a) => {
|
|
537
538
|
if (W(u) && u.contentDocument) {
|
|
538
|
-
const i = u.contentDocument.body,
|
|
539
|
+
const i = u.contentDocument.body, b = Y(
|
|
539
540
|
i,
|
|
540
541
|
!1,
|
|
541
542
|
r
|
|
542
543
|
);
|
|
543
|
-
o.splice(a, 1, ...
|
|
544
|
+
o.splice(a, 1, ...b);
|
|
544
545
|
}
|
|
545
546
|
}), !o.length && r ? n : o;
|
|
546
547
|
}
|
|
547
|
-
function
|
|
548
|
-
const [n] =
|
|
548
|
+
function Tr(t, e, r) {
|
|
549
|
+
const [n] = Y(
|
|
549
550
|
t,
|
|
550
551
|
e,
|
|
551
552
|
r
|
|
552
553
|
);
|
|
553
554
|
return n || null;
|
|
554
555
|
}
|
|
555
|
-
function
|
|
556
|
-
const o =
|
|
556
|
+
function Pe(t, e, r, n) {
|
|
557
|
+
const o = F(t), u = H(t, e), a = u.indexOf(o), i = u.slice(a + 1);
|
|
557
558
|
return i.find(S) || (r ? u.find(S) : null) || (n ? i[0] : null) || null;
|
|
558
559
|
}
|
|
559
|
-
function
|
|
560
|
-
return
|
|
560
|
+
function Fr(t, e) {
|
|
561
|
+
return Pe(
|
|
561
562
|
document.body,
|
|
562
563
|
!1,
|
|
563
564
|
t,
|
|
564
565
|
e
|
|
565
566
|
);
|
|
566
567
|
}
|
|
567
|
-
function
|
|
568
|
-
const o =
|
|
568
|
+
function Ce(t, e, r, n) {
|
|
569
|
+
const o = F(t), u = H(t, e).reverse(), a = u.indexOf(o);
|
|
569
570
|
return u.slice(a + 1).find(S) || null || null || null;
|
|
570
571
|
}
|
|
571
|
-
function
|
|
572
|
-
return
|
|
572
|
+
function _r(t, e) {
|
|
573
|
+
return Ce(
|
|
573
574
|
document.body,
|
|
574
575
|
!1
|
|
575
576
|
);
|
|
576
577
|
}
|
|
577
|
-
function
|
|
578
|
+
function Te(t) {
|
|
578
579
|
for (; t && !C(t); )
|
|
579
580
|
t = t.closest(V);
|
|
580
581
|
return t || null;
|
|
581
582
|
}
|
|
582
|
-
function
|
|
583
|
-
const e =
|
|
583
|
+
function bt(t) {
|
|
584
|
+
const e = F(t);
|
|
584
585
|
if (!e) return !1;
|
|
585
586
|
if (e === t) return !0;
|
|
586
587
|
const r = e.getAttribute("aria-activedescendant");
|
|
587
588
|
return r ? r === t.id : !1;
|
|
588
589
|
}
|
|
589
|
-
function
|
|
590
|
-
const e =
|
|
590
|
+
function Fe(t) {
|
|
591
|
+
const e = F(t);
|
|
591
592
|
if (!e) return !1;
|
|
592
|
-
if (
|
|
593
|
+
if (O(t, e)) return !0;
|
|
593
594
|
const r = e.getAttribute("aria-activedescendant");
|
|
594
595
|
return !r || !("id" in t) ? !1 : r === t.id ? !0 : !!t.querySelector(`#${CSS.escape(r)}`);
|
|
595
596
|
}
|
|
596
|
-
function
|
|
597
|
-
!
|
|
597
|
+
function _e(t) {
|
|
598
|
+
!Fe(t) && C(t) && t.focus();
|
|
598
599
|
}
|
|
599
|
-
function
|
|
600
|
+
function Oe(t) {
|
|
600
601
|
var e;
|
|
601
602
|
const r = (e = t.getAttribute("tabindex")) != null ? e : "";
|
|
602
603
|
t.setAttribute("data-tabindex", r), t.setAttribute("tabindex", "-1");
|
|
603
604
|
}
|
|
604
|
-
function
|
|
605
|
-
const r =
|
|
605
|
+
function Or(t, e) {
|
|
606
|
+
const r = Y(t, e);
|
|
606
607
|
for (const n of r)
|
|
607
|
-
|
|
608
|
+
Oe(n);
|
|
608
609
|
}
|
|
609
|
-
function
|
|
610
|
+
function Sr(t) {
|
|
610
611
|
const e = t.querySelectorAll("[data-tabindex]"), r = (n) => {
|
|
611
612
|
const o = n.getAttribute("data-tabindex");
|
|
612
613
|
n.removeAttribute("data-tabindex"), o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
|
|
@@ -615,10 +616,10 @@ function Or(t) {
|
|
|
615
616
|
for (const n of e)
|
|
616
617
|
r(n);
|
|
617
618
|
}
|
|
618
|
-
function
|
|
619
|
-
"scrollIntoView" in t ? (t.focus({ preventScroll: !0 }), t.scrollIntoView(
|
|
619
|
+
function Ir(t, e) {
|
|
620
|
+
"scrollIntoView" in t ? (t.focus({ preventScroll: !0 }), t.scrollIntoView($({ block: "nearest", inline: "nearest" }, e))) : t.focus();
|
|
620
621
|
}
|
|
621
|
-
var
|
|
622
|
+
var Se = "div", pt = de(), Ie = [
|
|
622
623
|
"text",
|
|
623
624
|
"search",
|
|
624
625
|
"url",
|
|
@@ -632,30 +633,30 @@ var Oe = "div", pt = fe(), _e = [
|
|
|
632
633
|
"time",
|
|
633
634
|
"datetime",
|
|
634
635
|
"datetime-local"
|
|
635
|
-
],
|
|
636
|
-
function
|
|
637
|
-
return t ? !!t[
|
|
636
|
+
], Tt = Symbol("safariFocusAncestor");
|
|
637
|
+
function Ar(t) {
|
|
638
|
+
return t ? !!t[Tt] : !1;
|
|
638
639
|
}
|
|
639
|
-
function
|
|
640
|
-
t && (t[
|
|
640
|
+
function vt(t, e) {
|
|
641
|
+
t && (t[Tt] = e);
|
|
641
642
|
}
|
|
642
|
-
function
|
|
643
|
+
function Ae(t) {
|
|
643
644
|
const { tagName: e, readOnly: r, type: n } = t;
|
|
644
|
-
return e === "TEXTAREA" && !r || e === "SELECT" && !r ? !0 : e === "INPUT" && !r ?
|
|
645
|
+
return e === "TEXTAREA" && !r || e === "SELECT" && !r ? !0 : e === "INPUT" && !r ? Ie.includes(n) : !!(t.isContentEditable || t.getAttribute("role") === "combobox" && t.dataset.name);
|
|
645
646
|
}
|
|
646
|
-
function
|
|
647
|
+
function De(t) {
|
|
647
648
|
return "labels" in t ? t.labels : null;
|
|
648
649
|
}
|
|
649
|
-
function
|
|
650
|
+
function mt(t) {
|
|
650
651
|
return t.tagName.toLowerCase() === "input" && t.type ? t.type === "radio" || t.type === "checkbox" : !1;
|
|
651
652
|
}
|
|
652
|
-
function
|
|
653
|
+
function Re(t) {
|
|
653
654
|
return t ? t === "button" || t === "summary" || t === "input" || t === "select" || t === "textarea" || t === "a" : !0;
|
|
654
655
|
}
|
|
655
|
-
function
|
|
656
|
+
function Ne(t) {
|
|
656
657
|
return t ? t === "button" || t === "input" || t === "select" || t === "textarea" : !0;
|
|
657
658
|
}
|
|
658
|
-
function
|
|
659
|
+
function Me(t, e, r, n, o) {
|
|
659
660
|
return t ? e ? r && !n ? -1 : void 0 : r ? o : o || 0 : o;
|
|
660
661
|
}
|
|
661
662
|
function B(t, e) {
|
|
@@ -663,35 +664,35 @@ function B(t, e) {
|
|
|
663
664
|
t == null || t(r), !r.defaultPrevented && e && (r.stopPropagation(), r.preventDefault());
|
|
664
665
|
});
|
|
665
666
|
}
|
|
666
|
-
var z = !0;
|
|
667
|
-
function
|
|
667
|
+
var gt = !1, z = !0;
|
|
668
|
+
function Ve(t) {
|
|
668
669
|
const e = t.target;
|
|
669
670
|
e && "hasAttribute" in e && (e.hasAttribute("data-focus-visible") || (z = !1));
|
|
670
671
|
}
|
|
671
|
-
function
|
|
672
|
+
function Le(t) {
|
|
672
673
|
t.metaKey || t.ctrlKey || t.altKey || (z = !0);
|
|
673
674
|
}
|
|
674
|
-
var
|
|
675
|
+
var Ke = we(
|
|
675
676
|
function(e) {
|
|
676
677
|
var r = e, {
|
|
677
678
|
focusable: n = !0,
|
|
678
679
|
accessibleWhenDisabled: o,
|
|
679
680
|
autoFocus: u,
|
|
680
681
|
onFocusVisible: a
|
|
681
|
-
} = r, i =
|
|
682
|
+
} = r, i = ht(r, [
|
|
682
683
|
"focusable",
|
|
683
684
|
"accessibleWhenDisabled",
|
|
684
685
|
"autoFocus",
|
|
685
686
|
"onFocusVisible"
|
|
686
687
|
]);
|
|
687
|
-
const
|
|
688
|
+
const b = N(null);
|
|
688
689
|
E(() => {
|
|
689
|
-
n && (g("mousedown",
|
|
690
|
+
n && (gt || (g("mousedown", Ve, !0), g("keydown", Le, !0), gt = !0));
|
|
690
691
|
}, [n]), pt && E(() => {
|
|
691
692
|
if (!n) return;
|
|
692
|
-
const s =
|
|
693
|
-
if (!s || !
|
|
694
|
-
const f =
|
|
693
|
+
const s = b.current;
|
|
694
|
+
if (!s || !mt(s)) return;
|
|
695
|
+
const f = De(s);
|
|
695
696
|
if (!f) return;
|
|
696
697
|
const v = () => queueMicrotask(() => s.focus());
|
|
697
698
|
for (const x of f)
|
|
@@ -701,173 +702,173 @@ var Ve = ye(
|
|
|
701
702
|
x.removeEventListener("mouseup", v);
|
|
702
703
|
};
|
|
703
704
|
}, [n]);
|
|
704
|
-
const c = n &&
|
|
705
|
+
const c = n && Qt(i), d = !!c && !o, [p, h] = I(!1);
|
|
705
706
|
E(() => {
|
|
706
|
-
n && d &&
|
|
707
|
-
}, [n, d,
|
|
708
|
-
if (!n || !
|
|
709
|
-
const s =
|
|
707
|
+
n && d && p && h(!1);
|
|
708
|
+
}, [n, d, p]), E(() => {
|
|
709
|
+
if (!n || !p) return;
|
|
710
|
+
const s = b.current;
|
|
710
711
|
if (!s || typeof IntersectionObserver > "u") return;
|
|
711
712
|
const f = new IntersectionObserver(() => {
|
|
712
713
|
C(s) || h(!1);
|
|
713
714
|
});
|
|
714
715
|
return f.observe(s), () => f.disconnect();
|
|
715
|
-
}, [n,
|
|
716
|
-
const
|
|
716
|
+
}, [n, p]);
|
|
717
|
+
const Ft = B(
|
|
717
718
|
i.onKeyPressCapture,
|
|
718
719
|
c
|
|
719
|
-
),
|
|
720
|
+
), _t = B(
|
|
720
721
|
i.onMouseDownCapture,
|
|
721
722
|
c
|
|
722
|
-
),
|
|
723
|
+
), Ot = B(i.onClickCapture, c), J = i.onMouseDown, St = y((s) => {
|
|
723
724
|
if (J == null || J(s), s.defaultPrevented || !n) return;
|
|
724
725
|
const f = s.currentTarget;
|
|
725
|
-
if (!pt ||
|
|
726
|
+
if (!pt || be(s) || !ue(f) && !mt(f)) return;
|
|
726
727
|
let v = !1;
|
|
727
728
|
const x = () => {
|
|
728
729
|
v = !0;
|
|
729
|
-
},
|
|
730
|
-
f.addEventListener("focusin", x,
|
|
731
|
-
const ot =
|
|
732
|
-
|
|
733
|
-
f.removeEventListener("focusin", x, !0),
|
|
730
|
+
}, Lt = { capture: !0, once: !0 };
|
|
731
|
+
f.addEventListener("focusin", x, Lt);
|
|
732
|
+
const ot = Te(f.parentElement);
|
|
733
|
+
vt(ot, !0), K(f, "mouseup", () => {
|
|
734
|
+
f.removeEventListener("focusin", x, !0), vt(ot, !1), !v && _e(f);
|
|
734
735
|
});
|
|
735
736
|
}), Q = (s, f) => {
|
|
736
737
|
if (f && (s.currentTarget = f), !n) return;
|
|
737
738
|
const v = s.currentTarget;
|
|
738
|
-
v &&
|
|
739
|
-
}, Z = i.onKeyDownCapture,
|
|
740
|
-
if (Z == null || Z(s), s.defaultPrevented || !n ||
|
|
739
|
+
v && bt(v) && (a == null || a(s), !s.defaultPrevented && (v.dataset.focusVisible = "true", h(!0)));
|
|
740
|
+
}, Z = i.onKeyDownCapture, It = y((s) => {
|
|
741
|
+
if (Z == null || Z(s), s.defaultPrevented || !n || p || s.metaKey || s.altKey || s.ctrlKey || !it(s)) return;
|
|
741
742
|
const f = s.currentTarget;
|
|
742
743
|
K(f, "focusout", () => Q(s, f));
|
|
743
|
-
}), tt = i.onFocusCapture,
|
|
744
|
+
}), tt = i.onFocusCapture, At = y((s) => {
|
|
744
745
|
if (tt == null || tt(s), s.defaultPrevented || !n) return;
|
|
745
746
|
if (!it(s)) {
|
|
746
747
|
h(!1);
|
|
747
748
|
return;
|
|
748
749
|
}
|
|
749
750
|
const f = s.currentTarget, v = () => Q(s, f);
|
|
750
|
-
z ||
|
|
751
|
-
}), et = i.onBlur,
|
|
752
|
-
et == null || et(s), n &&
|
|
753
|
-
}),
|
|
754
|
-
n && u && s &&
|
|
755
|
-
|
|
751
|
+
z || Ae(s.target) ? K(s.target, "focusout", v) : h(!1);
|
|
752
|
+
}), et = i.onBlur, Dt = y((s) => {
|
|
753
|
+
et == null || et(s), n && pe(s) && (s.currentTarget.removeAttribute("data-focus-visible"), h(!1));
|
|
754
|
+
}), Rt = jt(he), Nt = y((s) => {
|
|
755
|
+
n && u && s && Rt && queueMicrotask(() => {
|
|
756
|
+
bt(s) || C(s) && s.focus();
|
|
756
757
|
});
|
|
757
|
-
}), rt =
|
|
758
|
+
}), rt = ve(b), Mt = n && Re(rt), nt = n && Ne(rt), L = i.style, Vt = k(() => d ? l({ pointerEvents: "none" }, L) : L, [d, L]);
|
|
758
759
|
return i = w(l({
|
|
759
|
-
"data-focus-visible": n &&
|
|
760
|
+
"data-focus-visible": n && p || void 0,
|
|
760
761
|
"data-autofocus": u || void 0,
|
|
761
762
|
"aria-disabled": c || void 0
|
|
762
763
|
}, i), {
|
|
763
|
-
ref: X(
|
|
764
|
-
style:
|
|
765
|
-
tabIndex:
|
|
764
|
+
ref: X(b, Nt, i.ref),
|
|
765
|
+
style: Vt,
|
|
766
|
+
tabIndex: Me(
|
|
766
767
|
n,
|
|
767
768
|
d,
|
|
768
|
-
|
|
769
|
+
Mt,
|
|
769
770
|
nt,
|
|
770
771
|
i.tabIndex
|
|
771
772
|
),
|
|
772
773
|
disabled: nt && d ? !0 : void 0,
|
|
773
774
|
// TODO: Test Focusable contentEditable.
|
|
774
775
|
contentEditable: c ? void 0 : i.contentEditable,
|
|
775
|
-
onKeyPressCapture:
|
|
776
|
-
onClickCapture:
|
|
777
|
-
onMouseDownCapture:
|
|
778
|
-
onMouseDown:
|
|
779
|
-
onKeyDownCapture:
|
|
780
|
-
onFocusCapture:
|
|
781
|
-
onBlur:
|
|
782
|
-
}),
|
|
776
|
+
onKeyPressCapture: Ft,
|
|
777
|
+
onClickCapture: Ot,
|
|
778
|
+
onMouseDownCapture: _t,
|
|
779
|
+
onMouseDown: St,
|
|
780
|
+
onKeyDownCapture: It,
|
|
781
|
+
onFocusCapture: At,
|
|
782
|
+
onBlur: Dt
|
|
783
|
+
}), Zt(i);
|
|
783
784
|
}
|
|
784
785
|
);
|
|
785
|
-
|
|
786
|
-
const r =
|
|
787
|
-
return
|
|
786
|
+
ye(function(e) {
|
|
787
|
+
const r = Ke(e);
|
|
788
|
+
return Ee(Se, r);
|
|
788
789
|
});
|
|
789
790
|
export {
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
791
|
+
gr as $,
|
|
792
|
+
Qt as A,
|
|
793
|
+
nr as B,
|
|
794
|
+
ae as C,
|
|
795
|
+
ar as D,
|
|
795
796
|
ir as E,
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
797
|
+
$e as F,
|
|
798
|
+
Yt as G,
|
|
799
|
+
Qe as H,
|
|
800
|
+
$ as I,
|
|
801
|
+
We as J,
|
|
802
|
+
mr as K,
|
|
803
|
+
hr as L,
|
|
803
804
|
M,
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
805
|
+
ve as N,
|
|
806
|
+
ue as O,
|
|
807
|
+
Xe as P,
|
|
808
|
+
Ge as Q,
|
|
809
|
+
ze as R,
|
|
810
|
+
qe as S,
|
|
811
|
+
je as T,
|
|
812
|
+
He as U,
|
|
813
|
+
br as V,
|
|
814
|
+
Ke as W,
|
|
815
|
+
dr as X,
|
|
816
|
+
ur as Y,
|
|
816
817
|
K as Z,
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
818
|
+
ht as _,
|
|
819
|
+
l as a,
|
|
820
|
+
te as a0,
|
|
821
|
+
pe as a1,
|
|
822
|
+
Fr as a2,
|
|
823
|
+
_r as a3,
|
|
824
|
+
Sr as a4,
|
|
825
|
+
Or as a5,
|
|
826
|
+
he as a6,
|
|
827
|
+
g as a7,
|
|
828
|
+
ie as a8,
|
|
829
|
+
Ar as a9,
|
|
830
|
+
Ze as aa,
|
|
831
|
+
Ct as ab,
|
|
832
|
+
sr as ac,
|
|
833
|
+
Y as ad,
|
|
834
|
+
wr as ae,
|
|
835
|
+
F as af,
|
|
836
|
+
Tr as ag,
|
|
836
837
|
C as ah,
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
838
|
+
_e as ai,
|
|
839
|
+
de as aj,
|
|
840
|
+
pr as ak,
|
|
841
|
+
Ir as al,
|
|
842
|
+
fr as am,
|
|
843
|
+
lr as an,
|
|
844
|
+
be as ao,
|
|
845
|
+
tr as ap,
|
|
846
|
+
rr as aq,
|
|
847
|
+
er as ar,
|
|
848
|
+
ce as as,
|
|
849
|
+
Ee as b,
|
|
850
|
+
we as c,
|
|
851
|
+
w as d,
|
|
852
|
+
Cr as e,
|
|
853
|
+
ye as f,
|
|
854
|
+
_ as g,
|
|
855
|
+
q as h,
|
|
856
|
+
Ye as i,
|
|
857
|
+
it as j,
|
|
858
|
+
xr as k,
|
|
859
|
+
yr as l,
|
|
860
|
+
Fe as m,
|
|
861
|
+
Ue as n,
|
|
862
|
+
bt as o,
|
|
863
|
+
X as p,
|
|
864
|
+
O as q,
|
|
865
|
+
Zt as r,
|
|
866
|
+
or as s,
|
|
867
|
+
j as t,
|
|
868
|
+
y as u,
|
|
869
|
+
Pr as v,
|
|
870
|
+
vr as w,
|
|
871
|
+
Er as x,
|
|
872
|
+
cr as y,
|
|
873
|
+
Je as z
|
|
873
874
|
};
|