welcome-ui 10.6.5 → 10.6.7
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/Accordion.js +6 -6
- package/dist/Button.js +2 -2
- package/dist/Checkbox.js +1 -1
- package/dist/{CustomPopper-C1wIDHbM.js → CustomPopper-DWdMQOgg.js} +1 -1
- package/dist/D5lwkpmX-BTxFdaqc.js +1061 -0
- package/dist/DatePicker.js +2 -2
- package/dist/DateTimePicker.js +3 -3
- package/dist/DjvJNLSl-CB2sOBlX.js +88 -0
- package/dist/Drawer.js +4 -4
- package/dist/DropdownMenu.js +811 -925
- package/dist/Icon.js +1 -0
- package/dist/Modal.js +14 -14
- package/dist/Popover.js +25 -24
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +41 -46
- package/dist/RadioTab.js +1 -1
- package/dist/Search.css +1 -1
- package/dist/Search.js +105 -106
- package/dist/Select.css +1 -1
- package/dist/Select.js +257 -251
- package/dist/Tabs.js +194 -199
- package/dist/TimePicker.js +4 -4
- package/dist/Toggle.js +1 -1
- package/dist/Tooltip.js +150 -185
- package/dist/WelcomeLoader.js +86 -86
- package/dist/Window.js +5 -5
- package/dist/button-BmXyuOyT.js +24 -0
- package/dist/combobox-context-COdkPD-I.js +14 -0
- package/dist/command-JKE9Az0e.js +78 -0
- package/dist/composite-BOnUaIWf.js +198 -0
- package/dist/composite-item-CzuZunbi.js +763 -0
- package/dist/composite-store-BbsZpdXc.js +21 -0
- package/dist/dialog-RAMLmAdq.js +1222 -0
- package/dist/dialog-disclosure-xHQQLmS6.js +25 -0
- package/dist/dialog-dismiss-DVxKs13g.js +48 -0
- package/dist/disclosure-BQqv9Q8p.js +47 -0
- package/dist/disclosure-store-KfU9xwem.js +168 -0
- package/dist/hovercard-anchor-CgWES4cl.js +19 -0
- package/dist/hovercard-store-DjVhDVte.js +569 -0
- package/dist/index-B0vSTNCB.js +609 -0
- package/dist/popover-context-B2YQ_e3N.js +12 -0
- package/dist/popover-disclosure-a-bqp8Gt.js +183 -0
- package/dist/radio-J8ogFsWS.js +77 -0
- package/dist/tab-panel-DMICXMJc.js +187 -0
- package/dist/types/components/Accordion/index.d.ts +1 -1
- package/dist/types/components/Alert/components/Title.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
- package/dist/types/components/Drawer/AssetDrawer/IconBlock.d.ts +1 -1
- package/dist/types/components/Drawer/components/Close.d.ts +1 -1
- package/dist/types/components/Drawer/index.d.ts +6 -6
- package/dist/types/components/FileDrop/components/FilePreview.d.ts +1 -1
- package/dist/types/components/FileDrop/components/Message.d.ts +1 -1
- package/dist/types/components/Icon/Sprite.d.ts +1 -1
- package/dist/types/components/Icon/icons.d.ts +2 -2
- package/dist/types/components/Loader/index.d.ts +1 -1
- package/dist/types/components/Modal/Assets/AssetContent.d.ts +1 -1
- package/dist/types/components/Modal/Assets/AssetTitle.d.ts +1 -1
- package/dist/types/components/Modal/Assets/CloseButton.d.ts +1 -1
- package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -1
- package/dist/types/components/Modal/Assets/index.d.ts +3 -3
- package/dist/types/components/Modal/components/Footer.d.ts +2 -2
- package/dist/types/components/Modal/index.d.ts +9 -9
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
- package/dist/types/components/Popover/Arrow.d.ts +1 -1
- package/dist/types/components/Popover/ContentWrapper.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -1
- package/dist/types/components/Stepper/index.d.ts +2 -2
- package/dist/types/components/Stepper/utils.d.ts +1 -1
- package/dist/types/components/StickyNote/components/Button.d.ts +1 -1
- package/dist/types/components/StickyNote/components/Title.d.ts +1 -1
- package/dist/types/components/StickyNote/index.d.ts +2 -2
- package/dist/types/components/Swiper/components/SwiperNextButton.d.ts +1 -1
- package/dist/types/components/Swiper/components/SwiperPrevButton.d.ts +1 -1
- package/dist/types/components/Swiper/components/SwiperSlides.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +4 -4
- package/dist/types/components/Table/index.d.ts +5 -5
- package/dist/types/components/Tabs/utils.d.ts +1 -1
- package/dist/types/components/Toast/index.d.ts +2 -2
- package/dist/types/components/Window/components/Header.d.ts +4 -4
- package/dist/types/components/Window/index.d.ts +4 -4
- package/package.json +2 -2
- package/dist/5TKKKQCL-rs260p95.js +0 -80
- package/dist/7PRQYBBV-D9IY4qtU.js +0 -14
- package/dist/APVORPDK-i7Z_eBMP.js +0 -25
- package/dist/CVCFNOHX-Ck0bUDvo.js +0 -20
- package/dist/ECBEZ4YM-o09xUuV6.js +0 -600
- package/dist/HMKTUWOU-NkVXWCyR.js +0 -25
- package/dist/I7KWAPMF-DQWZpGyL.js +0 -86
- package/dist/IQYAUKXT-Cltvp3KN.js +0 -303
- package/dist/JMU4N4M5-DnfyqGdJ.js +0 -15
- package/dist/NDVACHQI-WTOpOfgG.js +0 -37
- package/dist/OCCHVUS4-BJVLPRH8.js +0 -48
- package/dist/PZ3OL7I2-Cfim3UGe.js +0 -61
- package/dist/Q5W46E73-5xQblshY.js +0 -346
- package/dist/RFRKSHIZ-C_FLl4qI.js +0 -147
- package/dist/U6HHPQDW-CzxyP5H7.js +0 -856
- package/dist/WLZ6H5FH-CuTcX7sR.js +0 -183
- package/dist/WZWDIE3S-CGqoM1Fy.js +0 -290
- package/dist/Z32PU2LQ-DMjfxuT9.js +0 -945
- package/dist/ZMWF7ASR-Jc8y_k3t.js +0 -166
- package/dist/tab-panel-Cc3MfOBM.js +0 -212
|
@@ -0,0 +1,1061 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as y from "react";
|
|
3
|
+
import { createContext as Ht, useMemo as X, isValidElement as kt, useLayoutEffect as $t, useEffect as m, useCallback as yt, useState as E, useReducer as zt, useRef as I, useContext as Jt } from "react";
|
|
4
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
5
|
+
const Qt = Ht(!0);
|
|
6
|
+
function Ze(t) {
|
|
7
|
+
const e = [];
|
|
8
|
+
for (const n of t) e.push(...n);
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
function tn(t) {
|
|
12
|
+
return t.slice().reverse();
|
|
13
|
+
}
|
|
14
|
+
function Zt(...t) {
|
|
15
|
+
}
|
|
16
|
+
function en(t, e) {
|
|
17
|
+
if (t === e) return !0;
|
|
18
|
+
if (!t || !e || typeof t != "object" || typeof e != "object") return !1;
|
|
19
|
+
const n = Object.keys(t), r = Object.keys(e), { length: o } = n;
|
|
20
|
+
if (r.length !== o) return !1;
|
|
21
|
+
for (const i of n) if (t[i] !== e[i]) return !1;
|
|
22
|
+
return !0;
|
|
23
|
+
}
|
|
24
|
+
function nn(t, e) {
|
|
25
|
+
return te(t) ? t(ee(e) ? e() : e) : t;
|
|
26
|
+
}
|
|
27
|
+
function te(t) {
|
|
28
|
+
return typeof t == "function";
|
|
29
|
+
}
|
|
30
|
+
function ee(t) {
|
|
31
|
+
return typeof t == "function";
|
|
32
|
+
}
|
|
33
|
+
function S(t, e) {
|
|
34
|
+
return typeof Object.hasOwn == "function" ? Object.hasOwn(t, e) : Object.prototype.hasOwnProperty.call(t, e);
|
|
35
|
+
}
|
|
36
|
+
function rn(...t) {
|
|
37
|
+
return (...e) => {
|
|
38
|
+
for (const n of t) typeof n == "function" && n(...e);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function on(t) {
|
|
42
|
+
return t.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
43
|
+
}
|
|
44
|
+
function un(t, e) {
|
|
45
|
+
const n = { ...t };
|
|
46
|
+
for (const r of e) S(n, r) && delete n[r];
|
|
47
|
+
return n;
|
|
48
|
+
}
|
|
49
|
+
function sn(t, e) {
|
|
50
|
+
const n = {};
|
|
51
|
+
for (const r of e) S(t, r) && (n[r] = t[r]);
|
|
52
|
+
return n;
|
|
53
|
+
}
|
|
54
|
+
function an(t) {
|
|
55
|
+
return t;
|
|
56
|
+
}
|
|
57
|
+
function cn(t = Zt) {
|
|
58
|
+
let e = requestAnimationFrame(() => {
|
|
59
|
+
e = requestAnimationFrame(t);
|
|
60
|
+
});
|
|
61
|
+
return () => cancelAnimationFrame(e);
|
|
62
|
+
}
|
|
63
|
+
const ne = {}, et = /* @__PURE__ */ new WeakMap();
|
|
64
|
+
function fn(t, e) {
|
|
65
|
+
const n = e || ne;
|
|
66
|
+
let r = et.get(n);
|
|
67
|
+
r || (r = /* @__PURE__ */ new Set(), et.set(n, r)), !r.has(t) && (r.add(t), console.warn(t));
|
|
68
|
+
}
|
|
69
|
+
function ln(t, e) {
|
|
70
|
+
if (!t)
|
|
71
|
+
throw typeof e != "string" ? new Error("Invariant failed") : new Error(e);
|
|
72
|
+
}
|
|
73
|
+
function dn(t) {
|
|
74
|
+
return Object.keys(t);
|
|
75
|
+
}
|
|
76
|
+
function bn(t, ...e) {
|
|
77
|
+
const n = typeof t == "function" ? t(...e) : t;
|
|
78
|
+
return n == null ? !1 : !n;
|
|
79
|
+
}
|
|
80
|
+
function re(t) {
|
|
81
|
+
return t.disabled || t["aria-disabled"] === !0 || t["aria-disabled"] === "true";
|
|
82
|
+
}
|
|
83
|
+
function pn(t) {
|
|
84
|
+
return t.getAttribute("aria-disabled") === "true" || "disabled" in t && t.disabled === !0;
|
|
85
|
+
}
|
|
86
|
+
function mt(t) {
|
|
87
|
+
const e = {};
|
|
88
|
+
for (const n in t)
|
|
89
|
+
S(t, n) && n !== "__proto__" && t[n] !== void 0 && (e[n] = t[n]);
|
|
90
|
+
return e;
|
|
91
|
+
}
|
|
92
|
+
function gn(...t) {
|
|
93
|
+
for (const e of t) if (e !== void 0) return e;
|
|
94
|
+
}
|
|
95
|
+
const A = oe();
|
|
96
|
+
function oe() {
|
|
97
|
+
var t;
|
|
98
|
+
return typeof window < "u" && !!((t = window.document) != null && t.createElement);
|
|
99
|
+
}
|
|
100
|
+
function wt(t, e) {
|
|
101
|
+
let n = t;
|
|
102
|
+
for (; n; ) {
|
|
103
|
+
const r = Object.getOwnPropertyDescriptor(n, e);
|
|
104
|
+
if (r != null && r.get) return r.get;
|
|
105
|
+
n = Object.getPrototypeOf(n);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const nt = A ? wt(Object.getPrototypeOf(window.document), "nodeType") : void 0, rt = A ? wt(Object.getPrototypeOf(window.document), "activeElement") : void 0;
|
|
109
|
+
function j(t) {
|
|
110
|
+
return t ? t.window === t : !1;
|
|
111
|
+
}
|
|
112
|
+
function ot(t) {
|
|
113
|
+
if (!t) return !1;
|
|
114
|
+
if (!nt) return t.nodeType === 9;
|
|
115
|
+
try {
|
|
116
|
+
return nt.call(t) === 9;
|
|
117
|
+
} catch {
|
|
118
|
+
return !1;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function ie(t, e) {
|
|
122
|
+
try {
|
|
123
|
+
return t.document === e;
|
|
124
|
+
} catch {
|
|
125
|
+
return !1;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function P(t) {
|
|
129
|
+
if (!t) return document;
|
|
130
|
+
if (ot(t)) return t;
|
|
131
|
+
if (j(t)) return t.document;
|
|
132
|
+
const e = t.ownerDocument;
|
|
133
|
+
return ot(e) ? e : document;
|
|
134
|
+
}
|
|
135
|
+
function B(t) {
|
|
136
|
+
if (!t) return self;
|
|
137
|
+
if (j(t)) return t;
|
|
138
|
+
const e = P(t), { defaultView: n } = e;
|
|
139
|
+
return j(n) && ie(n, e) ? n : window;
|
|
140
|
+
}
|
|
141
|
+
function M(t, { frame: e = !0, activeDescendant: n = !1 } = {}) {
|
|
142
|
+
var i;
|
|
143
|
+
const r = P(t), o = rt ? rt.call(r) : r.activeElement;
|
|
144
|
+
if (!(o != null && o.nodeName)) return null;
|
|
145
|
+
if (e && R(o) && ((i = o.contentDocument) != null && i.body)) return M(o.contentDocument.body, {
|
|
146
|
+
frame: e,
|
|
147
|
+
activeDescendant: n
|
|
148
|
+
});
|
|
149
|
+
if (n) {
|
|
150
|
+
const u = o.getAttribute("aria-activedescendant");
|
|
151
|
+
if (u) {
|
|
152
|
+
const c = P(o).getElementById(u);
|
|
153
|
+
if (c) return c;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return o;
|
|
157
|
+
}
|
|
158
|
+
function F(t, e) {
|
|
159
|
+
return t === e || t.contains(e);
|
|
160
|
+
}
|
|
161
|
+
function ht(t) {
|
|
162
|
+
return (t == null ? void 0 : t.nodeType) === 1;
|
|
163
|
+
}
|
|
164
|
+
function Et(t) {
|
|
165
|
+
return typeof (t == null ? void 0 : t.nodeType) == "number";
|
|
166
|
+
}
|
|
167
|
+
function R(t) {
|
|
168
|
+
return t.tagName === "IFRAME";
|
|
169
|
+
}
|
|
170
|
+
function ue(t) {
|
|
171
|
+
const e = t.tagName.toLowerCase();
|
|
172
|
+
return e === "button" ? !0 : e === "input" && t.type ? se.indexOf(t.type) !== -1 : !1;
|
|
173
|
+
}
|
|
174
|
+
const se = [
|
|
175
|
+
"button",
|
|
176
|
+
"color",
|
|
177
|
+
"file",
|
|
178
|
+
"image",
|
|
179
|
+
"reset",
|
|
180
|
+
"submit"
|
|
181
|
+
];
|
|
182
|
+
function ae(t) {
|
|
183
|
+
if (typeof t.checkVisibility == "function") return t.checkVisibility();
|
|
184
|
+
const e = t;
|
|
185
|
+
return e.offsetWidth > 0 || e.offsetHeight > 0 || t.getClientRects().length > 0;
|
|
186
|
+
}
|
|
187
|
+
function Y(t) {
|
|
188
|
+
try {
|
|
189
|
+
return t.tagName === "TEXTAREA" ? !0 : t.tagName !== "INPUT" ? !1 : t.selectionStart !== null;
|
|
190
|
+
} catch {
|
|
191
|
+
return !1;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
function yn(t) {
|
|
195
|
+
return t.isContentEditable || Y(t);
|
|
196
|
+
}
|
|
197
|
+
function mn(t) {
|
|
198
|
+
if (Y(t)) return t.value;
|
|
199
|
+
if (t.isContentEditable) {
|
|
200
|
+
const e = P(t).createRange();
|
|
201
|
+
return e.selectNodeContents(t), e.toString();
|
|
202
|
+
}
|
|
203
|
+
return "";
|
|
204
|
+
}
|
|
205
|
+
function wn(t) {
|
|
206
|
+
let e = 0, n = 0;
|
|
207
|
+
if (Y(t))
|
|
208
|
+
e = t.selectionStart || 0, n = t.selectionEnd || 0;
|
|
209
|
+
else if (t.isContentEditable) {
|
|
210
|
+
const r = P(t).getSelection();
|
|
211
|
+
if (r != null && r.rangeCount && r.anchorNode && F(t, r.anchorNode) && r.focusNode && F(t, r.focusNode)) {
|
|
212
|
+
const o = r.getRangeAt(0), i = o.cloneRange();
|
|
213
|
+
i.selectNodeContents(t), i.setEnd(o.startContainer, o.startOffset), e = i.toString().length, i.setEnd(o.endContainer, o.endOffset), n = i.toString().length;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return {
|
|
217
|
+
start: e,
|
|
218
|
+
end: n
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
const ce = [
|
|
222
|
+
"dialog",
|
|
223
|
+
"menu",
|
|
224
|
+
"listbox",
|
|
225
|
+
"tree",
|
|
226
|
+
"grid"
|
|
227
|
+
], it = {
|
|
228
|
+
menu: "menuitem",
|
|
229
|
+
listbox: "option",
|
|
230
|
+
tree: "treeitem"
|
|
231
|
+
};
|
|
232
|
+
function fe(t, e) {
|
|
233
|
+
const n = t == null ? void 0 : t.getAttribute("role");
|
|
234
|
+
return n && ce.indexOf(n) !== -1 ? n : e;
|
|
235
|
+
}
|
|
236
|
+
function le(t) {
|
|
237
|
+
if (t != null && S(it, t))
|
|
238
|
+
return it[t];
|
|
239
|
+
}
|
|
240
|
+
function hn(t, e) {
|
|
241
|
+
const n = fe(t);
|
|
242
|
+
return typeof n != "string" ? e : le(n) ?? e;
|
|
243
|
+
}
|
|
244
|
+
function de(t) {
|
|
245
|
+
if (!t) return null;
|
|
246
|
+
const e = (r) => r === "auto" || r === "scroll";
|
|
247
|
+
if (t.clientHeight && t.scrollHeight > t.clientHeight) {
|
|
248
|
+
const { overflowY: r } = getComputedStyle(t);
|
|
249
|
+
if (e(r)) return t;
|
|
250
|
+
} else if (t.clientWidth && t.scrollWidth > t.clientWidth) {
|
|
251
|
+
const { overflowX: r } = getComputedStyle(t);
|
|
252
|
+
if (e(r)) return t;
|
|
253
|
+
}
|
|
254
|
+
const n = P(t);
|
|
255
|
+
return de(t.parentElement) || n.scrollingElement || n.body;
|
|
256
|
+
}
|
|
257
|
+
function En(t, e) {
|
|
258
|
+
const n = t.map((o, i) => [i, o]);
|
|
259
|
+
let r = !1;
|
|
260
|
+
return n.sort(([o, i], [u, c]) => {
|
|
261
|
+
const f = e(i), a = e(c);
|
|
262
|
+
return f === a || !f || !a ? 0 : be(f, a) ? (o > u && (r = !0), -1) : (o < u && (r = !0), 1);
|
|
263
|
+
}), r ? n.map(([o, i]) => i) : t;
|
|
264
|
+
}
|
|
265
|
+
function be(t, e) {
|
|
266
|
+
return !!(e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
267
|
+
}
|
|
268
|
+
function pe() {
|
|
269
|
+
return A && !!navigator.maxTouchPoints;
|
|
270
|
+
}
|
|
271
|
+
function vt() {
|
|
272
|
+
return A ? /mac|iphone|ipad|ipod/i.test(navigator.platform) : !1;
|
|
273
|
+
}
|
|
274
|
+
function ge() {
|
|
275
|
+
return A && vt() && /apple/i.test(navigator.vendor);
|
|
276
|
+
}
|
|
277
|
+
function vn() {
|
|
278
|
+
return A && /firefox\//i.test(navigator.userAgent);
|
|
279
|
+
}
|
|
280
|
+
function xn() {
|
|
281
|
+
return A && navigator.platform.startsWith("Mac") && !pe();
|
|
282
|
+
}
|
|
283
|
+
function Tn(t) {
|
|
284
|
+
const { currentTarget: e, target: n } = t;
|
|
285
|
+
return e ? Et(n) ? !F(e, n) : !0 : !1;
|
|
286
|
+
}
|
|
287
|
+
function ut(t) {
|
|
288
|
+
return t.target === t.currentTarget;
|
|
289
|
+
}
|
|
290
|
+
function xt(t) {
|
|
291
|
+
if (!ht(t)) return !1;
|
|
292
|
+
const e = t, n = e.tagName.toLowerCase();
|
|
293
|
+
return n === "a" || n === "button" && e.type === "submit" || n === "input" && e.type === "submit";
|
|
294
|
+
}
|
|
295
|
+
function An(t) {
|
|
296
|
+
const e = vt();
|
|
297
|
+
return e && !t.metaKey || !e && !t.ctrlKey ? !1 : xt(t.currentTarget);
|
|
298
|
+
}
|
|
299
|
+
function Cn(t) {
|
|
300
|
+
return t.altKey ? xt(t.currentTarget) : !1;
|
|
301
|
+
}
|
|
302
|
+
function In(t, e, n) {
|
|
303
|
+
const { Event: r } = B(t), o = new r(e, n);
|
|
304
|
+
return t.dispatchEvent(o);
|
|
305
|
+
}
|
|
306
|
+
function Pn(t, e) {
|
|
307
|
+
const { FocusEvent: n } = B(t), r = new n("blur", e), o = t.dispatchEvent(r), i = {
|
|
308
|
+
...e,
|
|
309
|
+
bubbles: !0
|
|
310
|
+
};
|
|
311
|
+
return t.dispatchEvent(new n("focusout", i)), o;
|
|
312
|
+
}
|
|
313
|
+
function Dn(t, e, n) {
|
|
314
|
+
const { KeyboardEvent: r } = B(t), o = new r(e, n);
|
|
315
|
+
return t.dispatchEvent(o);
|
|
316
|
+
}
|
|
317
|
+
const ye = {
|
|
318
|
+
width: !0,
|
|
319
|
+
height: !0,
|
|
320
|
+
pressure: !0,
|
|
321
|
+
tangentialPressure: !0,
|
|
322
|
+
tiltX: !0,
|
|
323
|
+
tiltY: !0,
|
|
324
|
+
twist: !0,
|
|
325
|
+
altitudeAngle: !0,
|
|
326
|
+
azimuthAngle: !0,
|
|
327
|
+
isPrimary: !0,
|
|
328
|
+
coalescedEvents: !0,
|
|
329
|
+
predictedEvents: !0,
|
|
330
|
+
persistentDeviceId: !0
|
|
331
|
+
};
|
|
332
|
+
function me(t, e) {
|
|
333
|
+
const n = e ?? {};
|
|
334
|
+
return new Proxy({}, { get(r, o) {
|
|
335
|
+
if (o === "view") return t;
|
|
336
|
+
if (o === "composed") return !0;
|
|
337
|
+
if (o === "pointerId") return n.pointerId ?? -1;
|
|
338
|
+
if (o === "pointerType") return n.pointerType ?? "";
|
|
339
|
+
if (!S(ye, o))
|
|
340
|
+
return Reflect.get(n, o);
|
|
341
|
+
} });
|
|
342
|
+
}
|
|
343
|
+
function Sn(t, e) {
|
|
344
|
+
const n = B(t), r = new (n.PointerEvent ?? n.MouseEvent)("click", me(n, e));
|
|
345
|
+
return t.dispatchEvent(r);
|
|
346
|
+
}
|
|
347
|
+
function we(t, e) {
|
|
348
|
+
const n = e || t.currentTarget, r = t.relatedTarget;
|
|
349
|
+
return !Et(r) || !F(n, r);
|
|
350
|
+
}
|
|
351
|
+
function st(t, e, n, r) {
|
|
352
|
+
const i = ((c) => {
|
|
353
|
+
const f = requestAnimationFrame(c);
|
|
354
|
+
return () => cancelAnimationFrame(f);
|
|
355
|
+
})(() => {
|
|
356
|
+
t.removeEventListener(e, u, !0), n();
|
|
357
|
+
}), u = () => {
|
|
358
|
+
i(), n();
|
|
359
|
+
};
|
|
360
|
+
return t.addEventListener(e, u, {
|
|
361
|
+
once: !0,
|
|
362
|
+
capture: !0
|
|
363
|
+
}), () => {
|
|
364
|
+
i(), t.removeEventListener(e, u, !0);
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
function x(t, e, n, r = window) {
|
|
368
|
+
const o = [];
|
|
369
|
+
try {
|
|
370
|
+
r.document.addEventListener(t, e, n);
|
|
371
|
+
for (const u of Array.from(r.frames)) o.push(x(t, e, n, u));
|
|
372
|
+
} catch {
|
|
373
|
+
}
|
|
374
|
+
return () => {
|
|
375
|
+
try {
|
|
376
|
+
r.document.removeEventListener(t, e, n);
|
|
377
|
+
} catch {
|
|
378
|
+
}
|
|
379
|
+
for (const u of o) u();
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
const U = "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'])";
|
|
383
|
+
function he(t) {
|
|
384
|
+
return Number.parseInt(t.getAttribute("tabindex") || "0", 10) < 0;
|
|
385
|
+
}
|
|
386
|
+
function N(t) {
|
|
387
|
+
return !(!t.matches(U) || !ae(t) || t.closest("[inert]"));
|
|
388
|
+
}
|
|
389
|
+
function D(t) {
|
|
390
|
+
if (!N(t) || he(t)) return !1;
|
|
391
|
+
if (!("form" in t) || !t.form || t.checked || t.type !== "radio") return !0;
|
|
392
|
+
const e = t.form.elements.namedItem(t.name);
|
|
393
|
+
if (!e || !("length" in e)) return !0;
|
|
394
|
+
const n = M(t);
|
|
395
|
+
return !n || n === t || !("form" in n) || n.form !== t.form || !("name" in n) || n.name !== t.name;
|
|
396
|
+
}
|
|
397
|
+
function H(t, e) {
|
|
398
|
+
const n = Array.from(t.querySelectorAll(U));
|
|
399
|
+
e && n.unshift(t);
|
|
400
|
+
const r = n.filter(N);
|
|
401
|
+
return r.forEach((o, i) => {
|
|
402
|
+
var c;
|
|
403
|
+
if (!R(o)) return;
|
|
404
|
+
const u = (c = o.contentDocument) == null ? void 0 : c.body;
|
|
405
|
+
u && r.splice(i, 1, ...H(u));
|
|
406
|
+
}), r;
|
|
407
|
+
}
|
|
408
|
+
function Ee(t, e) {
|
|
409
|
+
const [n] = H(t, e);
|
|
410
|
+
return n || null;
|
|
411
|
+
}
|
|
412
|
+
function Tt(t, e, n) {
|
|
413
|
+
const r = Array.from(t.querySelectorAll(U)).filter(D);
|
|
414
|
+
return e && D(t) && r.unshift(t), r.forEach((o, i) => {
|
|
415
|
+
var f;
|
|
416
|
+
if (!R(o)) return;
|
|
417
|
+
const u = (f = o.contentDocument) == null ? void 0 : f.body;
|
|
418
|
+
if (!u) return;
|
|
419
|
+
const c = Tt(u, !1, n);
|
|
420
|
+
r.splice(i, 1, ...c);
|
|
421
|
+
}), r.length, r;
|
|
422
|
+
}
|
|
423
|
+
function at(t, e, n) {
|
|
424
|
+
var o, i;
|
|
425
|
+
if (e && D(t)) {
|
|
426
|
+
if (!R(t)) return t;
|
|
427
|
+
const u = (o = t.contentDocument) == null ? void 0 : o.body;
|
|
428
|
+
if (!u) return t;
|
|
429
|
+
const c = at(u, !1, n);
|
|
430
|
+
if (c) return c;
|
|
431
|
+
}
|
|
432
|
+
const r = t.querySelectorAll(U);
|
|
433
|
+
for (const u of r)
|
|
434
|
+
if (D(u)) {
|
|
435
|
+
if (R(u)) {
|
|
436
|
+
const c = (i = u.contentDocument) == null ? void 0 : i.body;
|
|
437
|
+
if (!c) return u;
|
|
438
|
+
const f = at(c, !1, n);
|
|
439
|
+
if (f) return f;
|
|
440
|
+
continue;
|
|
441
|
+
}
|
|
442
|
+
return u;
|
|
443
|
+
}
|
|
444
|
+
return n ? Ee(t) : null;
|
|
445
|
+
}
|
|
446
|
+
function At({ container: t, includeContainer: e, reverse: n, fallbackToEdge: r, fallbackToFocusable: o }) {
|
|
447
|
+
const i = M(t), u = H(t, e);
|
|
448
|
+
n && u.reverse();
|
|
449
|
+
const c = u.indexOf(i), f = u.slice(c + 1);
|
|
450
|
+
return f.find(D) || (r ? u.find(D) : null) || (o ? f[0] : null) || null;
|
|
451
|
+
}
|
|
452
|
+
function ve(t, e, n, r) {
|
|
453
|
+
return At({
|
|
454
|
+
container: t,
|
|
455
|
+
includeContainer: e,
|
|
456
|
+
fallbackToEdge: n,
|
|
457
|
+
fallbackToFocusable: r
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
function Nn(t, e) {
|
|
461
|
+
return ve(document.body, !1, t, e);
|
|
462
|
+
}
|
|
463
|
+
function xe(t, e, n, r) {
|
|
464
|
+
return At({
|
|
465
|
+
container: t,
|
|
466
|
+
includeContainer: e,
|
|
467
|
+
reverse: !0,
|
|
468
|
+
fallbackToEdge: n,
|
|
469
|
+
fallbackToFocusable: r
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
function Fn(t, e) {
|
|
473
|
+
return xe(document.body, !1, t, e);
|
|
474
|
+
}
|
|
475
|
+
function ct(t) {
|
|
476
|
+
const e = M(t);
|
|
477
|
+
if (!e) return !1;
|
|
478
|
+
if (e === t) return !0;
|
|
479
|
+
const n = e.getAttribute("aria-activedescendant");
|
|
480
|
+
return n ? n === t.id : !1;
|
|
481
|
+
}
|
|
482
|
+
function Rn(t) {
|
|
483
|
+
const e = M(t);
|
|
484
|
+
if (!e) return !1;
|
|
485
|
+
if (F(t, e)) return !0;
|
|
486
|
+
const n = e.getAttribute("aria-activedescendant");
|
|
487
|
+
return !n || !("id" in t) ? !1 : n === t.id ? !0 : !!t.querySelector(`#${CSS.escape(n)}`);
|
|
488
|
+
}
|
|
489
|
+
function Te(t) {
|
|
490
|
+
const e = t.getAttribute("tabindex") ?? "";
|
|
491
|
+
t.setAttribute("data-tabindex", e), t.setAttribute("tabindex", "-1");
|
|
492
|
+
}
|
|
493
|
+
function Mn(t, e) {
|
|
494
|
+
const n = Tt(t, e);
|
|
495
|
+
for (const r of n) Te(r);
|
|
496
|
+
}
|
|
497
|
+
function On(t) {
|
|
498
|
+
const e = t.querySelectorAll("[data-tabindex]"), n = (r) => {
|
|
499
|
+
const o = r.getAttribute("data-tabindex");
|
|
500
|
+
r.removeAttribute("data-tabindex"), o ? r.setAttribute("tabindex", o) : r.removeAttribute("tabindex");
|
|
501
|
+
};
|
|
502
|
+
t.hasAttribute("data-tabindex") && n(t);
|
|
503
|
+
for (const r of e) n(r);
|
|
504
|
+
}
|
|
505
|
+
function Ct(t) {
|
|
506
|
+
return async () => {
|
|
507
|
+
const e = await (t == null ? void 0 : t());
|
|
508
|
+
return Ct(async () => (await (e == null ? void 0 : e()), t));
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
Ae();
|
|
512
|
+
function Ae({ limit: t = 100 } = {}) {
|
|
513
|
+
const e = [];
|
|
514
|
+
let n = [], r = null;
|
|
515
|
+
const o = () => e.length > 0, i = () => n.length > 0;
|
|
516
|
+
return {
|
|
517
|
+
canUndo: o,
|
|
518
|
+
canRedo: i,
|
|
519
|
+
undo: async () => {
|
|
520
|
+
var a;
|
|
521
|
+
o() && (r = null, n.push(await ((a = e.pop()) == null ? void 0 : a())));
|
|
522
|
+
},
|
|
523
|
+
redo: async () => {
|
|
524
|
+
var a;
|
|
525
|
+
i() && (r = null, e.push(await ((a = n.pop()) == null ? void 0 : a())));
|
|
526
|
+
},
|
|
527
|
+
execute: async (a, l) => {
|
|
528
|
+
if (!a) return;
|
|
529
|
+
const p = l === r;
|
|
530
|
+
r = l ?? null;
|
|
531
|
+
const w = p ? Math.max(0, e.length - 1) : e.length, h = await a();
|
|
532
|
+
if (!h) return;
|
|
533
|
+
n = [];
|
|
534
|
+
const b = e[w];
|
|
535
|
+
for (e[w] = Ct(async () => {
|
|
536
|
+
await (h == null ? void 0 : h());
|
|
537
|
+
const v = await (b == null ? void 0 : b());
|
|
538
|
+
return async () => {
|
|
539
|
+
await (v == null ? void 0 : v()), await (a == null ? void 0 : a());
|
|
540
|
+
};
|
|
541
|
+
}); e.length > t; ) e.shift();
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
function ft(t, e) {
|
|
546
|
+
if (typeof t == "function") {
|
|
547
|
+
const n = t(e);
|
|
548
|
+
if (typeof n == "function") return n;
|
|
549
|
+
} else t && (t.current = e);
|
|
550
|
+
}
|
|
551
|
+
function Ce(t) {
|
|
552
|
+
return !t || !kt(t) ? !1 : "ref" in t.props || "ref" in t;
|
|
553
|
+
}
|
|
554
|
+
function Ie(t) {
|
|
555
|
+
return Ce(t) ? { ...t.props }.ref || t.ref : null;
|
|
556
|
+
}
|
|
557
|
+
function Pe(t, e) {
|
|
558
|
+
const n = { ...t };
|
|
559
|
+
for (const r in e) {
|
|
560
|
+
if (!S(e, r) || r === "__proto__") continue;
|
|
561
|
+
if (r === "className") {
|
|
562
|
+
const i = "className", u = t[i], c = e[i];
|
|
563
|
+
u && c ? n[i] = `${u} ${c}` : n[i] = c || u;
|
|
564
|
+
continue;
|
|
565
|
+
}
|
|
566
|
+
if (r === "style") {
|
|
567
|
+
const i = "style";
|
|
568
|
+
n[i] = t[i] ? {
|
|
569
|
+
...t[i],
|
|
570
|
+
...e[i]
|
|
571
|
+
} : e[i];
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
const o = e[r];
|
|
575
|
+
if (o !== void 0) {
|
|
576
|
+
if (r.startsWith("on")) {
|
|
577
|
+
if (typeof o != "function") continue;
|
|
578
|
+
const i = t[r];
|
|
579
|
+
if (typeof i == "function") {
|
|
580
|
+
n[r] = (...u) => {
|
|
581
|
+
o(...u), i(...u);
|
|
582
|
+
};
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
n[r] = o;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
return n;
|
|
590
|
+
}
|
|
591
|
+
const It = { ...y }, Pt = It.useId, De = It.useInsertionEffect ?? ((t) => t()), O = A ? $t : m;
|
|
592
|
+
function Se(t) {
|
|
593
|
+
const [e] = E(t);
|
|
594
|
+
return e;
|
|
595
|
+
}
|
|
596
|
+
function Kn(t) {
|
|
597
|
+
const e = I(t);
|
|
598
|
+
return O(() => {
|
|
599
|
+
e.current = t;
|
|
600
|
+
}), e;
|
|
601
|
+
}
|
|
602
|
+
function T(t) {
|
|
603
|
+
const e = I(() => {
|
|
604
|
+
throw new Error("Cannot call an event handler while rendering.");
|
|
605
|
+
});
|
|
606
|
+
return De(() => {
|
|
607
|
+
e.current = t;
|
|
608
|
+
}), yt((...n) => {
|
|
609
|
+
var r;
|
|
610
|
+
return (r = e.current) == null ? void 0 : r.call(e, ...n);
|
|
611
|
+
}, []);
|
|
612
|
+
}
|
|
613
|
+
function Ln(t) {
|
|
614
|
+
const [e, n] = E(null);
|
|
615
|
+
return O(() => {
|
|
616
|
+
if (e == null || !t) return;
|
|
617
|
+
let r = null;
|
|
618
|
+
return t((o) => (r = o, e)), () => {
|
|
619
|
+
t(r);
|
|
620
|
+
};
|
|
621
|
+
}, [e, t]), [e, n];
|
|
622
|
+
}
|
|
623
|
+
function k(...t) {
|
|
624
|
+
return X(() => {
|
|
625
|
+
if (t.some(Boolean))
|
|
626
|
+
return (e) => {
|
|
627
|
+
const n = [];
|
|
628
|
+
for (const r of t) {
|
|
629
|
+
if (!r) continue;
|
|
630
|
+
const o = ft(r, e);
|
|
631
|
+
n.push({
|
|
632
|
+
ref: r,
|
|
633
|
+
cleanup: typeof o == "function" ? o : void 0
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
if (n.some((r) => r.cleanup))
|
|
637
|
+
return () => {
|
|
638
|
+
for (const { ref: r, cleanup: o } of n) o ? o() : ft(r, null);
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
}, t);
|
|
642
|
+
}
|
|
643
|
+
function Ne(t) {
|
|
644
|
+
const [e, n] = E(t);
|
|
645
|
+
return O(() => {
|
|
646
|
+
if (t || e) return;
|
|
647
|
+
const r = Math.random().toString(36).slice(2, 8);
|
|
648
|
+
n(`id-${r}`);
|
|
649
|
+
}, [t, e]), t || e;
|
|
650
|
+
}
|
|
651
|
+
function Fe(t) {
|
|
652
|
+
const e = Pt();
|
|
653
|
+
return t || e;
|
|
654
|
+
}
|
|
655
|
+
const Re = Pt ? Fe : Ne;
|
|
656
|
+
function Vn(t) {
|
|
657
|
+
return Re(t);
|
|
658
|
+
}
|
|
659
|
+
function Bn(t, e) {
|
|
660
|
+
const n = (i) => {
|
|
661
|
+
if (typeof i == "string")
|
|
662
|
+
return i;
|
|
663
|
+
}, [r, o] = E(() => n(e));
|
|
664
|
+
return O(() => {
|
|
665
|
+
const i = t && "current" in t ? t.current : t;
|
|
666
|
+
o((i == null ? void 0 : i.tagName.toLowerCase()) || n(e));
|
|
667
|
+
}, [t, e]), r;
|
|
668
|
+
}
|
|
669
|
+
function Un(t, e, n) {
|
|
670
|
+
const r = Se(n), [o, i] = E(r);
|
|
671
|
+
return m(() => {
|
|
672
|
+
const u = t && "current" in t ? t.current : t;
|
|
673
|
+
if (!u) return;
|
|
674
|
+
const c = () => {
|
|
675
|
+
const a = u.getAttribute(e);
|
|
676
|
+
i(a ?? r);
|
|
677
|
+
}, f = new MutationObserver(c);
|
|
678
|
+
return f.observe(u, { attributeFilter: [e] }), c(), () => f.disconnect();
|
|
679
|
+
}, [
|
|
680
|
+
t,
|
|
681
|
+
e,
|
|
682
|
+
r
|
|
683
|
+
]), o;
|
|
684
|
+
}
|
|
685
|
+
function _n(t, e) {
|
|
686
|
+
const n = I(!1);
|
|
687
|
+
m(() => {
|
|
688
|
+
if (n.current) return t();
|
|
689
|
+
n.current = !0;
|
|
690
|
+
}, e), m(() => () => {
|
|
691
|
+
n.current = !1;
|
|
692
|
+
}, []);
|
|
693
|
+
}
|
|
694
|
+
function Wn() {
|
|
695
|
+
return zt(() => [], []);
|
|
696
|
+
}
|
|
697
|
+
function qn(t) {
|
|
698
|
+
return T(typeof t == "function" ? t : () => t);
|
|
699
|
+
}
|
|
700
|
+
function Gn(t, e, n = []) {
|
|
701
|
+
const r = yt((o) => (t.wrapElement && (o = t.wrapElement(o)), e(o)), [...n, t.wrapElement]);
|
|
702
|
+
return {
|
|
703
|
+
...t,
|
|
704
|
+
wrapElement: r
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
function jn(t = !1, e) {
|
|
708
|
+
const [n, r] = E(null);
|
|
709
|
+
return {
|
|
710
|
+
portalRef: k(r, e),
|
|
711
|
+
portalNode: n,
|
|
712
|
+
domReady: !t || n
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
function Me(t, e, n) {
|
|
716
|
+
const r = t.onLoadedMetadataCapture, o = X(() => Object.assign(() => {
|
|
717
|
+
}, r, ...n !== void 0 ? [{ [e]: n }] : []), [
|
|
718
|
+
r,
|
|
719
|
+
e,
|
|
720
|
+
n
|
|
721
|
+
]);
|
|
722
|
+
return [r == null ? void 0 : r[e], { onLoadedMetadataCapture: o }];
|
|
723
|
+
}
|
|
724
|
+
let lt = !1;
|
|
725
|
+
function Xn() {
|
|
726
|
+
return m(() => {
|
|
727
|
+
lt || (x("mousemove", Ke, !0), x("mousedown", K, !0), x("mouseup", K, !0), x("keydown", K, !0), x("scroll", K, !0), lt = !0);
|
|
728
|
+
}, []), T(() => $);
|
|
729
|
+
}
|
|
730
|
+
let $ = !1, dt = 0, bt = 0;
|
|
731
|
+
function Oe(t) {
|
|
732
|
+
const e = t.movementX || t.screenX - dt, n = t.movementY || t.screenY - bt;
|
|
733
|
+
return dt = t.screenX, bt = t.screenY, e || n || process.env.NODE_ENV === "test";
|
|
734
|
+
}
|
|
735
|
+
function Ke(t) {
|
|
736
|
+
Oe(t) && ($ = !0);
|
|
737
|
+
}
|
|
738
|
+
function K() {
|
|
739
|
+
$ = !1;
|
|
740
|
+
}
|
|
741
|
+
function Le(t) {
|
|
742
|
+
const e = y.forwardRef((n, r) => t(mt({
|
|
743
|
+
...n,
|
|
744
|
+
ref: r
|
|
745
|
+
})));
|
|
746
|
+
return e.displayName = t.displayName || t.name, e;
|
|
747
|
+
}
|
|
748
|
+
function Yn(t, e) {
|
|
749
|
+
return y.memo(t, e);
|
|
750
|
+
}
|
|
751
|
+
function Ve(t, e) {
|
|
752
|
+
const { wrapElement: n, render: r, ...o } = e, i = k(e.ref, Ie(r));
|
|
753
|
+
let u;
|
|
754
|
+
if (y.isValidElement(r)) {
|
|
755
|
+
const c = {
|
|
756
|
+
...r.props,
|
|
757
|
+
ref: i
|
|
758
|
+
};
|
|
759
|
+
u = y.cloneElement(r, Pe(o, c));
|
|
760
|
+
} else r ? u = r(o) : u = /* @__PURE__ */ C(t, { ...o });
|
|
761
|
+
return n ? n(u) : u;
|
|
762
|
+
}
|
|
763
|
+
function Be(t) {
|
|
764
|
+
const e = (n = {}) => t(n);
|
|
765
|
+
return e.displayName = t.name, e;
|
|
766
|
+
}
|
|
767
|
+
function Hn(t = [], e = []) {
|
|
768
|
+
const n = y.createContext(void 0), r = y.createContext(void 0), o = () => y.useContext(n), i = (a = !1) => {
|
|
769
|
+
const l = y.useContext(r), p = o();
|
|
770
|
+
return a ? l : l || p;
|
|
771
|
+
}, u = () => {
|
|
772
|
+
const a = y.useContext(r), l = o();
|
|
773
|
+
if (!(a && a === l))
|
|
774
|
+
return l;
|
|
775
|
+
}, c = (a) => t.reduceRight((l, p) => /* @__PURE__ */ C(p, {
|
|
776
|
+
...a,
|
|
777
|
+
children: l
|
|
778
|
+
}), /* @__PURE__ */ C(n.Provider, { ...a }));
|
|
779
|
+
return {
|
|
780
|
+
context: n,
|
|
781
|
+
scopedContext: r,
|
|
782
|
+
useContext: o,
|
|
783
|
+
useScopedContext: i,
|
|
784
|
+
useProviderContext: u,
|
|
785
|
+
ContextProvider: c,
|
|
786
|
+
ScopedContextProvider: (a) => /* @__PURE__ */ C(c, {
|
|
787
|
+
...a,
|
|
788
|
+
children: e.reduceRight((l, p) => /* @__PURE__ */ C(p, {
|
|
789
|
+
...a,
|
|
790
|
+
children: l
|
|
791
|
+
}), /* @__PURE__ */ C(r.Provider, { ...a }))
|
|
792
|
+
})
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
const Dt = "data-truly-disabled";
|
|
796
|
+
function kn(t) {
|
|
797
|
+
return t.getAttribute(Dt) === "true";
|
|
798
|
+
}
|
|
799
|
+
function St(t) {
|
|
800
|
+
return t === "ArrowUp" || t === "ArrowRight" || t === "ArrowDown" || t === "ArrowLeft" || t === "Home" || t === "End" || t === "PageUp" || t === "PageDown";
|
|
801
|
+
}
|
|
802
|
+
const Ue = "div", _e = Symbol("accessibleWhenDisabled"), Nt = ge(), Ft = 1, Rt = 2, pt = 3, We = [
|
|
803
|
+
"text",
|
|
804
|
+
"search",
|
|
805
|
+
"url",
|
|
806
|
+
"tel",
|
|
807
|
+
"email",
|
|
808
|
+
"password",
|
|
809
|
+
"number",
|
|
810
|
+
"date",
|
|
811
|
+
"month",
|
|
812
|
+
"week",
|
|
813
|
+
"time",
|
|
814
|
+
"datetime",
|
|
815
|
+
"datetime-local"
|
|
816
|
+
];
|
|
817
|
+
function qe(t) {
|
|
818
|
+
const { tagName: e, readOnly: n, type: r } = t;
|
|
819
|
+
return e === "TEXTAREA" && !n || e === "SELECT" && !n ? !0 : e === "INPUT" && !n ? We.includes(r) : !!(t.isContentEditable || t.getAttribute("role") === "combobox" && t.dataset.name);
|
|
820
|
+
}
|
|
821
|
+
function Ge(t) {
|
|
822
|
+
return t ? t === "button" || t === "summary" || t === "input" || t === "select" || t === "textarea" || t === "a" : !0;
|
|
823
|
+
}
|
|
824
|
+
function je(t) {
|
|
825
|
+
return t ? t === "button" || t === "input" || t === "select" || t === "textarea" : !0;
|
|
826
|
+
}
|
|
827
|
+
function Xe(t) {
|
|
828
|
+
let e = 0;
|
|
829
|
+
return Ge(t) && (e |= Ft), je(t) && (e |= Rt), e;
|
|
830
|
+
}
|
|
831
|
+
function Ye(t) {
|
|
832
|
+
if (t.tagName === "BUTTON") {
|
|
833
|
+
const { type: e } = t;
|
|
834
|
+
return e === "submit";
|
|
835
|
+
}
|
|
836
|
+
if (t.tagName === "INPUT") {
|
|
837
|
+
const { type: e } = t;
|
|
838
|
+
return e === "submit" || e === "image";
|
|
839
|
+
}
|
|
840
|
+
return !1;
|
|
841
|
+
}
|
|
842
|
+
function He({ focusable: t, trulyDisabled: e, nativeTabbable: n, supportsDisabled: r, safariTabIndex: o, tabIndexProp: i }) {
|
|
843
|
+
return t ? e ? n && !r ? -1 : void 0 : n ? o && i == null ? 0 : i : i ?? 0 : i;
|
|
844
|
+
}
|
|
845
|
+
function L(t, e) {
|
|
846
|
+
return T((n) => {
|
|
847
|
+
t == null || t(n), !n.defaultPrevented && e && (n.stopPropagation(), n.preventDefault());
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
let gt = !1, V = !0;
|
|
851
|
+
function ke(t) {
|
|
852
|
+
const e = t.target;
|
|
853
|
+
ht(e) && !e.hasAttribute("data-focus-visible") && (V = !1);
|
|
854
|
+
}
|
|
855
|
+
function $e(t) {
|
|
856
|
+
if (St(t.key)) {
|
|
857
|
+
V = !0;
|
|
858
|
+
return;
|
|
859
|
+
}
|
|
860
|
+
t.metaKey || t.ctrlKey || t.altKey && (!Nt || t.key !== "Tab") || (V = !0);
|
|
861
|
+
}
|
|
862
|
+
const ze = Be(function({ focusable: e = !0, accessibleWhenDisabled: n, autoFocus: r, onFocusVisible: o, ...i }) {
|
|
863
|
+
const u = I(null), [c, f] = Me(i, _e, n);
|
|
864
|
+
n ?? (n = c), m(() => {
|
|
865
|
+
e && (gt || (x("mousedown", ke, !0), x("keydown", $e, !0), gt = !0));
|
|
866
|
+
}, [e]);
|
|
867
|
+
const a = e && re(i), l = a && !n, [p, w] = E(!1), h = I(!1), b = I(null), v = T((s) => {
|
|
868
|
+
var d;
|
|
869
|
+
(d = b.current) == null || d.call(b), b.current = null, h.current = !1, s == null || s.removeAttribute("data-focus-visible");
|
|
870
|
+
});
|
|
871
|
+
m(() => {
|
|
872
|
+
e && !l || (v(u.current), p && w(!1));
|
|
873
|
+
}, [
|
|
874
|
+
e,
|
|
875
|
+
l,
|
|
876
|
+
p,
|
|
877
|
+
v
|
|
878
|
+
]), m(() => {
|
|
879
|
+
if (!e || !p) return;
|
|
880
|
+
const s = u.current;
|
|
881
|
+
if (!s || typeof IntersectionObserver > "u") return;
|
|
882
|
+
const d = new IntersectionObserver(() => {
|
|
883
|
+
N(s) || (h.current = !1, w(!1));
|
|
884
|
+
});
|
|
885
|
+
return d.observe(s), () => d.disconnect();
|
|
886
|
+
}, [e, p]), m(() => () => {
|
|
887
|
+
var s;
|
|
888
|
+
return (s = b.current) == null ? void 0 : s.call(b);
|
|
889
|
+
}, []);
|
|
890
|
+
const Mt = L(i.onKeyPressCapture, a), Ot = L(i.onMouseDownCapture, a), Kt = L(i.onClickCapture, a), Lt = L(i.onAuxClickCapture, a), z = (s, d) => {
|
|
891
|
+
var Z;
|
|
892
|
+
if (d && (s.currentTarget = d), !e) return;
|
|
893
|
+
const g = s.currentTarget;
|
|
894
|
+
if (g && ct(g) && (o == null || o(s), !s.defaultPrevented)) {
|
|
895
|
+
if (g.dataset.focusVisible = "true", h.current = !0, Ye(g)) {
|
|
896
|
+
if ((Z = b.current) == null || Z.call(b), b.current = null, typeof IntersectionObserver < "u") {
|
|
897
|
+
const tt = new IntersectionObserver(() => {
|
|
898
|
+
N(g) || v(g);
|
|
899
|
+
});
|
|
900
|
+
tt.observe(g), b.current = () => tt.disconnect();
|
|
901
|
+
}
|
|
902
|
+
return;
|
|
903
|
+
}
|
|
904
|
+
w(!0);
|
|
905
|
+
}
|
|
906
|
+
}, _ = i.onKeyDownCapture, Vt = T((s) => {
|
|
907
|
+
if (_ == null || _(s), s.defaultPrevented || !e || p || h.current || (s.metaKey || s.altKey || s.ctrlKey) && !St(s.key) || !ut(s)) return;
|
|
908
|
+
const d = s.currentTarget;
|
|
909
|
+
st(d, "focusout", () => z(s, d));
|
|
910
|
+
}), W = i.onFocusCapture, Bt = T((s) => {
|
|
911
|
+
if (W == null || W(s), s.defaultPrevented || !e) return;
|
|
912
|
+
if (!ut(s)) {
|
|
913
|
+
w(!1);
|
|
914
|
+
return;
|
|
915
|
+
}
|
|
916
|
+
const d = s.currentTarget, g = () => z(s, d);
|
|
917
|
+
V || qe(s.target) ? st(s.target, "focusout", g) : w(!1);
|
|
918
|
+
}), q = i.onBlur, Ut = T((s) => {
|
|
919
|
+
q == null || q(s), e && we(s) && (v(s.currentTarget), w(!1));
|
|
920
|
+
}), _t = Jt(Qt), Wt = T((s) => {
|
|
921
|
+
e && r && s && _t && queueMicrotask(() => {
|
|
922
|
+
ct(s) || N(s) && s.focus();
|
|
923
|
+
});
|
|
924
|
+
}), [J, qt] = E(pt);
|
|
925
|
+
O(() => {
|
|
926
|
+
const s = u.current;
|
|
927
|
+
if (!s) return;
|
|
928
|
+
const d = Xe(s.tagName.toLowerCase());
|
|
929
|
+
d !== pt && qt(d);
|
|
930
|
+
}, []);
|
|
931
|
+
const Gt = e && !!(J & Ft), Q = e && !!(J & Rt), [jt, Xt] = E(!1);
|
|
932
|
+
Nt && m(() => {
|
|
933
|
+
if (!e) return;
|
|
934
|
+
const s = u.current;
|
|
935
|
+
if (!s) return;
|
|
936
|
+
const { type: d } = s, g = s.tagName === "INPUT" && (d === "checkbox" || d === "radio");
|
|
937
|
+
Xt(ue(s) || g);
|
|
938
|
+
}, [e]);
|
|
939
|
+
const G = i.style, Yt = X(() => l ? {
|
|
940
|
+
pointerEvents: "none",
|
|
941
|
+
...G
|
|
942
|
+
} : G, [l, G]);
|
|
943
|
+
return i = {
|
|
944
|
+
"data-focus-visible": e && p || void 0,
|
|
945
|
+
"data-autofocus": r || void 0,
|
|
946
|
+
"aria-disabled": a || void 0,
|
|
947
|
+
...i,
|
|
948
|
+
...f,
|
|
949
|
+
ref: k(u, Wt, i.ref),
|
|
950
|
+
style: Yt,
|
|
951
|
+
tabIndex: He({
|
|
952
|
+
focusable: e,
|
|
953
|
+
trulyDisabled: l,
|
|
954
|
+
nativeTabbable: Gt,
|
|
955
|
+
supportsDisabled: Q,
|
|
956
|
+
safariTabIndex: jt,
|
|
957
|
+
tabIndexProp: i.tabIndex
|
|
958
|
+
}),
|
|
959
|
+
disabled: Q && l ? !0 : void 0,
|
|
960
|
+
[Dt]: l || void 0,
|
|
961
|
+
contentEditable: a ? void 0 : i.contentEditable,
|
|
962
|
+
onKeyPressCapture: Mt,
|
|
963
|
+
onClickCapture: Kt,
|
|
964
|
+
onAuxClickCapture: Lt,
|
|
965
|
+
onMouseDownCapture: Ot,
|
|
966
|
+
onKeyDownCapture: Vt,
|
|
967
|
+
onFocusCapture: Bt,
|
|
968
|
+
onBlur: Ut
|
|
969
|
+
}, mt(i);
|
|
970
|
+
});
|
|
971
|
+
Le(function(e) {
|
|
972
|
+
const n = ze(e);
|
|
973
|
+
return Ve(Ue, n);
|
|
974
|
+
});
|
|
975
|
+
export {
|
|
976
|
+
Qt as $,
|
|
977
|
+
re as A,
|
|
978
|
+
hn as B,
|
|
979
|
+
fe as C,
|
|
980
|
+
pn as D,
|
|
981
|
+
Cn as E,
|
|
982
|
+
An as F,
|
|
983
|
+
P as G,
|
|
984
|
+
Se as H,
|
|
985
|
+
en as I,
|
|
986
|
+
nn as J,
|
|
987
|
+
B as K,
|
|
988
|
+
Me as L,
|
|
989
|
+
cn as M,
|
|
990
|
+
ue as N,
|
|
991
|
+
vn as O,
|
|
992
|
+
st as P,
|
|
993
|
+
Sn as Q,
|
|
994
|
+
ze as R,
|
|
995
|
+
Bn as S,
|
|
996
|
+
un as T,
|
|
997
|
+
sn as U,
|
|
998
|
+
rn as V,
|
|
999
|
+
dn as W,
|
|
1000
|
+
Zt as X,
|
|
1001
|
+
an as Y,
|
|
1002
|
+
Kn as Z,
|
|
1003
|
+
Wn as _,
|
|
1004
|
+
Ve as a,
|
|
1005
|
+
we as a0,
|
|
1006
|
+
Nn as a1,
|
|
1007
|
+
Fn as a2,
|
|
1008
|
+
On as a3,
|
|
1009
|
+
Mn as a4,
|
|
1010
|
+
ft as a5,
|
|
1011
|
+
Tt as a6,
|
|
1012
|
+
x as a7,
|
|
1013
|
+
vt as a8,
|
|
1014
|
+
xn as a9,
|
|
1015
|
+
jn as aa,
|
|
1016
|
+
M as ab,
|
|
1017
|
+
N as ac,
|
|
1018
|
+
at as ad,
|
|
1019
|
+
Et as ae,
|
|
1020
|
+
ge as af,
|
|
1021
|
+
En as ag,
|
|
1022
|
+
Ze as ah,
|
|
1023
|
+
tn as ai,
|
|
1024
|
+
ae as aj,
|
|
1025
|
+
Tn as ak,
|
|
1026
|
+
yn as al,
|
|
1027
|
+
fn as am,
|
|
1028
|
+
wn as an,
|
|
1029
|
+
mn as ao,
|
|
1030
|
+
de as ap,
|
|
1031
|
+
Ln as aq,
|
|
1032
|
+
Pn as ar,
|
|
1033
|
+
Dn as as,
|
|
1034
|
+
kn as at,
|
|
1035
|
+
Un as au,
|
|
1036
|
+
Hn as b,
|
|
1037
|
+
Be as c,
|
|
1038
|
+
Y as d,
|
|
1039
|
+
ut as e,
|
|
1040
|
+
Le as f,
|
|
1041
|
+
Gn as g,
|
|
1042
|
+
Vn as h,
|
|
1043
|
+
ln as i,
|
|
1044
|
+
O as j,
|
|
1045
|
+
Xn as k,
|
|
1046
|
+
qn as l,
|
|
1047
|
+
Rn as m,
|
|
1048
|
+
on as n,
|
|
1049
|
+
ct as o,
|
|
1050
|
+
k as p,
|
|
1051
|
+
ht as q,
|
|
1052
|
+
mt as r,
|
|
1053
|
+
F as s,
|
|
1054
|
+
S as t,
|
|
1055
|
+
T as u,
|
|
1056
|
+
Yn as v,
|
|
1057
|
+
gn as w,
|
|
1058
|
+
_n as x,
|
|
1059
|
+
In as y,
|
|
1060
|
+
bn as z
|
|
1061
|
+
};
|