@sps-woodland/focused-task 8.45.4 → 8.45.5
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/lib/index.js +770 -693
- package/lib/index.umd.cjs +8 -3
- package/lib/style.css +1 -1
- package/package.json +18 -17
package/lib/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Metadata as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { Metadata as Je, cl as se, combineEventHandlers as Me, useChildTestIdAttrBuilder as gt, selectChildren as yt, contentOf as Re } from "@sps-woodland/core";
|
|
2
|
+
import { Button as Tt } from "@sps-woodland/buttons";
|
|
3
3
|
import * as v from "react";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { code as
|
|
7
|
-
const
|
|
4
|
+
import y, { useState as re, useRef as T, useCallback as _, useContext as z, useEffect as D, useReducer as Nt, useMemo as Z, createContext as kt } from "react";
|
|
5
|
+
import St from "react-dom";
|
|
6
|
+
import { code as De } from "@spscommerce/utils";
|
|
7
|
+
const x = typeof document < "u" ? y.useLayoutEffect : () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
10
|
-
let [t, n] =
|
|
9
|
+
function xt(e) {
|
|
10
|
+
let [t, n] = re(e), r = T(t), o = T(null), i = T(() => {
|
|
11
11
|
if (!o.current) return;
|
|
12
12
|
let l = o.current.next();
|
|
13
13
|
if (l.done) {
|
|
@@ -16,10 +16,10 @@ function Nt(e) {
|
|
|
16
16
|
}
|
|
17
17
|
r.current === l.value ? i.current() : n(l.value);
|
|
18
18
|
});
|
|
19
|
-
|
|
19
|
+
x(() => {
|
|
20
20
|
r.current = t, o.current && i.current();
|
|
21
21
|
});
|
|
22
|
-
let a =
|
|
22
|
+
let a = _((l) => {
|
|
23
23
|
o.current = l(r.current), i.current();
|
|
24
24
|
}, [
|
|
25
25
|
i
|
|
@@ -29,87 +29,87 @@ function Nt(e) {
|
|
|
29
29
|
a
|
|
30
30
|
];
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const ue = {
|
|
33
33
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
34
34
|
current: 0
|
|
35
|
-
},
|
|
36
|
-
let
|
|
37
|
-
function
|
|
38
|
-
let t =
|
|
35
|
+
}, Xe = /* @__PURE__ */ y.createContext(ue), Lt = /* @__PURE__ */ y.createContext(!1);
|
|
36
|
+
let Ct = !!(typeof window < "u" && window.document && window.document.createElement), ve = /* @__PURE__ */ new WeakMap();
|
|
37
|
+
function _t(e = !1) {
|
|
38
|
+
let t = z(Xe), n = T(null);
|
|
39
39
|
if (n.current === null && !e) {
|
|
40
40
|
var r, o;
|
|
41
|
-
let i = (o =
|
|
41
|
+
let i = (o = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
42
42
|
if (i) {
|
|
43
|
-
let a =
|
|
44
|
-
a == null ?
|
|
43
|
+
let a = ve.get(i);
|
|
44
|
+
a == null ? ve.set(i, {
|
|
45
45
|
id: t.current,
|
|
46
46
|
state: i.memoizedState
|
|
47
|
-
}) : i.memoizedState !== a.state && (t.current = a.id,
|
|
47
|
+
}) : i.memoizedState !== a.state && (t.current = a.id, ve.delete(i));
|
|
48
48
|
}
|
|
49
49
|
n.current = ++t.current;
|
|
50
50
|
}
|
|
51
51
|
return n.current;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
let t =
|
|
55
|
-
t ===
|
|
56
|
-
let n =
|
|
53
|
+
function Ft(e) {
|
|
54
|
+
let t = z(Xe);
|
|
55
|
+
t === ue && !Ct && process.env.NODE_ENV !== "production" && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
56
|
+
let n = _t(!!e), r = t === ue && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
|
|
57
57
|
return e || `${r}-${n}`;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
let t =
|
|
59
|
+
function Pt(e) {
|
|
60
|
+
let t = y.useId(), [n] = re(Qe()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ue.prefix}`;
|
|
61
61
|
return e || `${r}-${t}`;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
64
|
-
function
|
|
63
|
+
const Ot = typeof y.useId == "function" ? Pt : Ft;
|
|
64
|
+
function Mt() {
|
|
65
65
|
return !1;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Rt() {
|
|
68
68
|
return !0;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Dt(e) {
|
|
71
71
|
return () => {
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return typeof
|
|
74
|
+
function Qe() {
|
|
75
|
+
return typeof y.useSyncExternalStore == "function" ? y.useSyncExternalStore(Dt, Mt, Rt) : z(Lt);
|
|
76
76
|
}
|
|
77
|
-
let
|
|
78
|
-
typeof FinalizationRegistry < "u" && (
|
|
79
|
-
|
|
77
|
+
let At = !!(typeof window < "u" && window.document && window.document.createElement), q = /* @__PURE__ */ new Map(), X;
|
|
78
|
+
typeof FinalizationRegistry < "u" && (X = new FinalizationRegistry((e) => {
|
|
79
|
+
q.delete(e);
|
|
80
80
|
}));
|
|
81
|
-
function
|
|
82
|
-
let [t, n] =
|
|
83
|
-
if (
|
|
84
|
-
const a =
|
|
85
|
-
a && !a.includes(r) ? a.push(r) :
|
|
81
|
+
function Ze(e) {
|
|
82
|
+
let [t, n] = re(e), r = T(null), o = Ot(t), i = T(null);
|
|
83
|
+
if (X && X.register(i, o), At) {
|
|
84
|
+
const a = q.get(o);
|
|
85
|
+
a && !a.includes(r) ? a.push(r) : q.set(o, [
|
|
86
86
|
r
|
|
87
87
|
]);
|
|
88
88
|
}
|
|
89
|
-
return
|
|
89
|
+
return x(() => {
|
|
90
90
|
let a = o;
|
|
91
91
|
return () => {
|
|
92
|
-
|
|
92
|
+
X && X.unregister(i), q.delete(a);
|
|
93
93
|
};
|
|
94
94
|
}, [
|
|
95
95
|
o
|
|
96
|
-
]),
|
|
96
|
+
]), D(() => {
|
|
97
97
|
let a = r.current;
|
|
98
98
|
return a && n(a), () => {
|
|
99
99
|
a && (r.current = null);
|
|
100
100
|
};
|
|
101
101
|
}), o;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function It(e, t) {
|
|
104
104
|
if (e === t) return e;
|
|
105
|
-
let n =
|
|
105
|
+
let n = q.get(e);
|
|
106
106
|
if (n)
|
|
107
107
|
return n.forEach((o) => o.current = t), t;
|
|
108
|
-
let r =
|
|
108
|
+
let r = q.get(t);
|
|
109
109
|
return r ? (r.forEach((o) => o.current = e), e) : t;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
let t =
|
|
111
|
+
function Wt(e = []) {
|
|
112
|
+
let t = Ze(), [n, r] = xt(t), o = _(() => {
|
|
113
113
|
r(function* () {
|
|
114
114
|
yield t, yield document.getElementById(t) ? t : void 0;
|
|
115
115
|
});
|
|
@@ -117,62 +117,62 @@ function Dt(e = []) {
|
|
|
117
117
|
t,
|
|
118
118
|
r
|
|
119
119
|
]);
|
|
120
|
-
return
|
|
120
|
+
return x(o, [
|
|
121
121
|
t,
|
|
122
122
|
o,
|
|
123
123
|
...e
|
|
124
124
|
]), n;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Le(...e) {
|
|
127
127
|
return (...t) => {
|
|
128
128
|
for (let n of e) typeof n == "function" && n(...t);
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const S = (e) => {
|
|
132
132
|
var t;
|
|
133
133
|
return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
134
|
-
},
|
|
135
|
-
function
|
|
134
|
+
}, U = (e) => e && "window" in e && e.window === e ? e : S(e).defaultView || window;
|
|
135
|
+
function Vt(e) {
|
|
136
136
|
return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
return
|
|
138
|
+
function Ht(e) {
|
|
139
|
+
return Vt(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
|
|
140
140
|
}
|
|
141
|
-
let
|
|
142
|
-
function
|
|
143
|
-
return
|
|
141
|
+
let Kt = !1;
|
|
142
|
+
function I() {
|
|
143
|
+
return Kt;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
if (!
|
|
145
|
+
function O(e, t) {
|
|
146
|
+
if (!I()) return t && e ? e.contains(t) : !1;
|
|
147
147
|
if (!e || !t) return !1;
|
|
148
148
|
let n = t;
|
|
149
149
|
for (; n !== null; ) {
|
|
150
150
|
if (n === e) return !0;
|
|
151
|
-
n.tagName === "SLOT" && n.assignedSlot ? n = n.assignedSlot.parentNode :
|
|
151
|
+
n.tagName === "SLOT" && n.assignedSlot ? n = n.assignedSlot.parentNode : Ht(n) ? n = n.host : n = n.parentNode;
|
|
152
152
|
}
|
|
153
153
|
return !1;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const L = (e = document) => {
|
|
156
156
|
var t;
|
|
157
|
-
if (!
|
|
157
|
+
if (!I()) return e.activeElement;
|
|
158
158
|
let n = e.activeElement;
|
|
159
159
|
for (; n && "shadowRoot" in n && (!((t = n.shadowRoot) === null || t === void 0) && t.activeElement); ) n = n.shadowRoot.activeElement;
|
|
160
160
|
return n;
|
|
161
161
|
};
|
|
162
|
-
function
|
|
163
|
-
if (
|
|
162
|
+
function N(e) {
|
|
163
|
+
if (I() && e.target instanceof Element && e.target.shadowRoot) {
|
|
164
164
|
var t, n;
|
|
165
165
|
if ("composedPath" in e) return (t = e.composedPath()[0]) !== null && t !== void 0 ? t : null;
|
|
166
166
|
if ("composedPath" in e.nativeEvent) return (n = e.nativeEvent.composedPath()[0]) !== null && n !== void 0 ? n : null;
|
|
167
167
|
}
|
|
168
168
|
return e.target;
|
|
169
169
|
}
|
|
170
|
-
class
|
|
170
|
+
class Bt {
|
|
171
171
|
get currentNode() {
|
|
172
172
|
return this._currentNode;
|
|
173
173
|
}
|
|
174
174
|
set currentNode(t) {
|
|
175
|
-
if (!
|
|
175
|
+
if (!O(this.root, t)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
|
|
176
176
|
const n = [];
|
|
177
177
|
let r = t, o = t;
|
|
178
178
|
for (this._currentNode = t; r && r !== this.root; ) if (r.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
@@ -191,7 +191,7 @@ class Kt {
|
|
|
191
191
|
}
|
|
192
192
|
firstChild() {
|
|
193
193
|
let t = this.currentNode, n = this.nextNode();
|
|
194
|
-
return
|
|
194
|
+
return O(t, n) ? (n && (this.currentNode = n), n) : (this.currentNode = t, null);
|
|
195
195
|
}
|
|
196
196
|
lastChild() {
|
|
197
197
|
let n = this._walkerStack[0].lastChild();
|
|
@@ -264,12 +264,12 @@ class Kt {
|
|
|
264
264
|
constructor(t, n, r, o) {
|
|
265
265
|
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (a) => {
|
|
266
266
|
if (a.nodeType === Node.ELEMENT_NODE) {
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
269
|
-
const
|
|
267
|
+
const c = a.shadowRoot;
|
|
268
|
+
if (c) {
|
|
269
|
+
const u = this._doc.createTreeWalker(c, this.whatToShow, {
|
|
270
270
|
acceptNode: this._acceptNode
|
|
271
271
|
});
|
|
272
|
-
return this._walkerStack.unshift(
|
|
272
|
+
return this._walkerStack.unshift(u), NodeFilter.FILTER_ACCEPT;
|
|
273
273
|
} else {
|
|
274
274
|
var l;
|
|
275
275
|
if (typeof this.filter == "function") return this.filter(a);
|
|
@@ -288,41 +288,41 @@ class Kt {
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
291
|
+
function Ye(e, t, n, r) {
|
|
292
|
+
return I() ? new Bt(e, t, n, r) : e.createTreeWalker(t, n, r);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function jt(...e) {
|
|
295
295
|
return e.length === 1 && e[0] ? e[0] : (t) => {
|
|
296
296
|
let n = !1;
|
|
297
297
|
const r = e.map((o) => {
|
|
298
|
-
const i =
|
|
298
|
+
const i = Ae(o, t);
|
|
299
299
|
return n || (n = typeof i == "function"), i;
|
|
300
300
|
});
|
|
301
301
|
if (n) return () => {
|
|
302
302
|
r.forEach((o, i) => {
|
|
303
|
-
typeof o == "function" ? o() :
|
|
303
|
+
typeof o == "function" ? o() : Ae(e[i], null);
|
|
304
304
|
});
|
|
305
305
|
};
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function Ae(e, t) {
|
|
309
309
|
if (typeof e == "function") return e(t);
|
|
310
310
|
e != null && (e.current = t);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function et(e) {
|
|
313
313
|
var t, n, r = "";
|
|
314
314
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
315
315
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
316
316
|
var o = e.length;
|
|
317
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
317
|
+
for (t = 0; t < o; t++) e[t] && (n = et(e[t])) && (r && (r += " "), r += n);
|
|
318
318
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
319
319
|
return r;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
321
|
+
function Gt() {
|
|
322
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = et(e)) && (r && (r += " "), r += t);
|
|
323
323
|
return r;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function qt(...e) {
|
|
326
326
|
let t = {
|
|
327
327
|
...e[0]
|
|
328
328
|
};
|
|
@@ -333,19 +333,19 @@ function jt(...e) {
|
|
|
333
333
|
typeof i == "function" && typeof a == "function" && // This is a lot faster than a regex.
|
|
334
334
|
o[0] === "o" && o[1] === "n" && o.charCodeAt(2) >= /* 'A' */
|
|
335
335
|
65 && o.charCodeAt(2) <= /* 'Z' */
|
|
336
|
-
90 ? t[o] =
|
|
336
|
+
90 ? t[o] = Le(i, a) : (o === "className" || o === "UNSAFE_className") && typeof i == "string" && typeof a == "string" ? t[o] = Gt(i, a) : o === "id" && i && a ? t.id = It(i, a) : o === "ref" && i && a ? t.ref = jt(i, a) : t[o] = a !== void 0 ? a : i;
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
return t;
|
|
340
340
|
}
|
|
341
|
-
const
|
|
341
|
+
const Ut = /* @__PURE__ */ new Set([
|
|
342
342
|
"id"
|
|
343
|
-
]),
|
|
343
|
+
]), zt = /* @__PURE__ */ new Set([
|
|
344
344
|
"aria-label",
|
|
345
345
|
"aria-labelledby",
|
|
346
346
|
"aria-describedby",
|
|
347
347
|
"aria-details"
|
|
348
|
-
]),
|
|
348
|
+
]), Jt = /* @__PURE__ */ new Set([
|
|
349
349
|
"href",
|
|
350
350
|
"hrefLang",
|
|
351
351
|
"target",
|
|
@@ -353,13 +353,13 @@ const qt = /* @__PURE__ */ new Set([
|
|
|
353
353
|
"download",
|
|
354
354
|
"ping",
|
|
355
355
|
"referrerPolicy"
|
|
356
|
-
]),
|
|
356
|
+
]), Xt = /* @__PURE__ */ new Set([
|
|
357
357
|
"dir",
|
|
358
358
|
"lang",
|
|
359
359
|
"hidden",
|
|
360
360
|
"inert",
|
|
361
361
|
"translate"
|
|
362
|
-
]),
|
|
362
|
+
]), Ie = /* @__PURE__ */ new Set([
|
|
363
363
|
"onClick",
|
|
364
364
|
"onAuxClick",
|
|
365
365
|
"onContextMenu",
|
|
@@ -394,37 +394,37 @@ const qt = /* @__PURE__ */ new Set([
|
|
|
394
394
|
"onTransitionEnd",
|
|
395
395
|
"onTransitionRun",
|
|
396
396
|
"onTransitionStart"
|
|
397
|
-
]),
|
|
398
|
-
function
|
|
397
|
+
]), Qt = /^(data-.*)$/;
|
|
398
|
+
function Zt(e, t = {}) {
|
|
399
399
|
let { labelable: n, isLink: r, global: o, events: i = o, propNames: a } = t, l = {};
|
|
400
|
-
for (const
|
|
400
|
+
for (const c in e) Object.prototype.hasOwnProperty.call(e, c) && (Ut.has(c) || n && zt.has(c) || r && Jt.has(c) || o && Xt.has(c) || i && (Ie.has(c) || c.endsWith("Capture") && Ie.has(c.slice(0, -7))) || a?.has(c) || Qt.test(c)) && (l[c] = e[c]);
|
|
401
401
|
return l;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function we(e) {
|
|
404
404
|
if (Yt()) e.focus({
|
|
405
405
|
preventScroll: !0
|
|
406
406
|
});
|
|
407
407
|
else {
|
|
408
|
-
let t =
|
|
409
|
-
e.focus(),
|
|
408
|
+
let t = en(e);
|
|
409
|
+
e.focus(), tn(t);
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
let
|
|
412
|
+
let ie = null;
|
|
413
413
|
function Yt() {
|
|
414
|
-
if (
|
|
415
|
-
|
|
414
|
+
if (ie == null) {
|
|
415
|
+
ie = !1;
|
|
416
416
|
try {
|
|
417
417
|
document.createElement("div").focus({
|
|
418
418
|
get preventScroll() {
|
|
419
|
-
return
|
|
419
|
+
return ie = !0, !0;
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
} catch {
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
return
|
|
425
|
+
return ie;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function en(e) {
|
|
428
428
|
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
|
|
429
429
|
for (; t instanceof HTMLElement && t !== r; )
|
|
430
430
|
(t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
|
|
@@ -438,126 +438,126 @@ function Qt(e) {
|
|
|
438
438
|
scrollLeft: r.scrollLeft
|
|
439
439
|
}), n;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function tn(e) {
|
|
442
442
|
for (let { element: t, scrollTop: n, scrollLeft: r } of e)
|
|
443
443
|
t.scrollTop = n, t.scrollLeft = r;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function pe(e) {
|
|
446
446
|
var t;
|
|
447
447
|
if (typeof window > "u" || window.navigator == null) return !1;
|
|
448
448
|
let n = (t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands;
|
|
449
449
|
return Array.isArray(n) && n.some((r) => e.test(r.brand)) || e.test(window.navigator.userAgent);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Ce(e) {
|
|
452
452
|
var t;
|
|
453
453
|
return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function V(e) {
|
|
456
456
|
if (process.env.NODE_ENV === "test") return e;
|
|
457
457
|
let t = null;
|
|
458
458
|
return () => (t == null && (t = e()), t);
|
|
459
459
|
}
|
|
460
|
-
const
|
|
461
|
-
return
|
|
462
|
-
}),
|
|
463
|
-
return
|
|
464
|
-
}),
|
|
465
|
-
return
|
|
466
|
-
|
|
467
|
-
}),
|
|
468
|
-
return
|
|
460
|
+
const te = V(function() {
|
|
461
|
+
return Ce(/^Mac/i);
|
|
462
|
+
}), nn = V(function() {
|
|
463
|
+
return Ce(/^iPhone/i);
|
|
464
|
+
}), tt = V(function() {
|
|
465
|
+
return Ce(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
466
|
+
te() && navigator.maxTouchPoints > 1;
|
|
467
|
+
}), nt = V(function() {
|
|
468
|
+
return nn() || tt();
|
|
469
469
|
});
|
|
470
|
-
|
|
471
|
-
return
|
|
470
|
+
V(function() {
|
|
471
|
+
return te() || nt();
|
|
472
472
|
});
|
|
473
|
-
const
|
|
474
|
-
return
|
|
475
|
-
}),
|
|
476
|
-
return
|
|
477
|
-
}),
|
|
478
|
-
return
|
|
479
|
-
}),
|
|
480
|
-
return
|
|
473
|
+
const rn = V(function() {
|
|
474
|
+
return pe(/AppleWebKit/i) && !rt();
|
|
475
|
+
}), rt = V(function() {
|
|
476
|
+
return pe(/Chrome/i);
|
|
477
|
+
}), ot = V(function() {
|
|
478
|
+
return pe(/Android/i);
|
|
479
|
+
}), on = V(function() {
|
|
480
|
+
return pe(/Firefox/i);
|
|
481
481
|
});
|
|
482
|
-
function
|
|
482
|
+
function ne(e, t, n = !0) {
|
|
483
483
|
var r, o;
|
|
484
|
-
let { metaKey: i, ctrlKey: a, altKey: l, shiftKey:
|
|
485
|
-
|
|
486
|
-
let
|
|
484
|
+
let { metaKey: i, ctrlKey: a, altKey: l, shiftKey: c } = t;
|
|
485
|
+
on() && (!((o = window.event) === null || o === void 0 || (r = o.type) === null || r === void 0) && r.startsWith("key")) && e.target === "_blank" && (te() ? i = !0 : a = !0);
|
|
486
|
+
let u = rn() && te() && !tt() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
487
487
|
keyIdentifier: "Enter",
|
|
488
488
|
metaKey: i,
|
|
489
489
|
ctrlKey: a,
|
|
490
490
|
altKey: l,
|
|
491
|
-
shiftKey:
|
|
491
|
+
shiftKey: c
|
|
492
492
|
}) : new MouseEvent("click", {
|
|
493
493
|
metaKey: i,
|
|
494
494
|
ctrlKey: a,
|
|
495
495
|
altKey: l,
|
|
496
|
-
shiftKey:
|
|
496
|
+
shiftKey: c,
|
|
497
497
|
detail: 1,
|
|
498
498
|
bubbles: !0,
|
|
499
499
|
cancelable: !0
|
|
500
500
|
});
|
|
501
|
-
|
|
501
|
+
ne.isOpening = n, we(e), e.dispatchEvent(u), ne.isOpening = !1;
|
|
502
502
|
}
|
|
503
|
-
|
|
504
|
-
let
|
|
505
|
-
function
|
|
503
|
+
ne.isOpening = !1;
|
|
504
|
+
let H = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Set();
|
|
505
|
+
function We() {
|
|
506
506
|
if (typeof window > "u") return;
|
|
507
507
|
function e(r) {
|
|
508
508
|
return "propertyName" in r;
|
|
509
509
|
}
|
|
510
510
|
let t = (r) => {
|
|
511
|
-
let o =
|
|
511
|
+
let o = N(r);
|
|
512
512
|
if (!e(r) || !o) return;
|
|
513
|
-
let i =
|
|
514
|
-
i || (i = /* @__PURE__ */ new Set(),
|
|
513
|
+
let i = H.get(o);
|
|
514
|
+
i || (i = /* @__PURE__ */ new Set(), H.set(o, i), o.addEventListener("transitioncancel", n, {
|
|
515
515
|
once: !0
|
|
516
516
|
})), i.add(r.propertyName);
|
|
517
517
|
}, n = (r) => {
|
|
518
|
-
let o =
|
|
518
|
+
let o = N(r);
|
|
519
519
|
if (!e(r) || !o) return;
|
|
520
|
-
let i =
|
|
521
|
-
if (i && (i.delete(r.propertyName), i.size === 0 && (o.removeEventListener("transitioncancel", n),
|
|
522
|
-
for (let a of
|
|
523
|
-
|
|
520
|
+
let i = H.get(o);
|
|
521
|
+
if (i && (i.delete(r.propertyName), i.size === 0 && (o.removeEventListener("transitioncancel", n), H.delete(o)), H.size === 0)) {
|
|
522
|
+
for (let a of ge) a();
|
|
523
|
+
ge.clear();
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
526
|
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
|
|
527
527
|
}
|
|
528
|
-
typeof document < "u" && (document.readyState !== "loading" ?
|
|
529
|
-
function
|
|
530
|
-
for (const [e] of
|
|
531
|
-
"isConnected" in e && !e.isConnected &&
|
|
528
|
+
typeof document < "u" && (document.readyState !== "loading" ? We() : document.addEventListener("DOMContentLoaded", We));
|
|
529
|
+
function an() {
|
|
530
|
+
for (const [e] of H)
|
|
531
|
+
"isConnected" in e && !e.isConnected && H.delete(e);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function ln(e) {
|
|
534
534
|
requestAnimationFrame(() => {
|
|
535
|
-
|
|
535
|
+
an(), H.size === 0 ? e() : ge.add(e);
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
let e =
|
|
540
|
-
let
|
|
541
|
-
e.current.delete(a), a(...
|
|
538
|
+
function sn() {
|
|
539
|
+
let e = T(/* @__PURE__ */ new Map()), t = _((o, i, a, l) => {
|
|
540
|
+
let c = l?.once ? (...u) => {
|
|
541
|
+
e.current.delete(a), a(...u);
|
|
542
542
|
} : a;
|
|
543
543
|
e.current.set(a, {
|
|
544
544
|
type: i,
|
|
545
545
|
eventTarget: o,
|
|
546
|
-
fn:
|
|
546
|
+
fn: c,
|
|
547
547
|
options: l
|
|
548
|
-
}), o.addEventListener(i,
|
|
549
|
-
}, []), n =
|
|
550
|
-
var
|
|
551
|
-
let
|
|
552
|
-
o.removeEventListener(i,
|
|
553
|
-
}, []), r =
|
|
548
|
+
}), o.addEventListener(i, c, l);
|
|
549
|
+
}, []), n = _((o, i, a, l) => {
|
|
550
|
+
var c;
|
|
551
|
+
let u = ((c = e.current.get(a)) === null || c === void 0 ? void 0 : c.fn) || a;
|
|
552
|
+
o.removeEventListener(i, u, l), e.current.delete(a);
|
|
553
|
+
}, []), r = _(() => {
|
|
554
554
|
e.current.forEach((o, i) => {
|
|
555
555
|
n(o.eventTarget, o.type, i, o.options);
|
|
556
556
|
});
|
|
557
557
|
}, [
|
|
558
558
|
n
|
|
559
559
|
]);
|
|
560
|
-
return
|
|
560
|
+
return D(() => r, [
|
|
561
561
|
r
|
|
562
562
|
]), {
|
|
563
563
|
addGlobalListener: t,
|
|
@@ -565,35 +565,49 @@ function an() {
|
|
|
565
565
|
removeAllGlobalListeners: r
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
var
|
|
569
|
-
const
|
|
570
|
-
function
|
|
571
|
-
const t =
|
|
572
|
-
return
|
|
568
|
+
var be;
|
|
569
|
+
const cn = (be = y.useInsertionEffect) !== null && be !== void 0 ? be : x;
|
|
570
|
+
function Ve(e) {
|
|
571
|
+
const t = T(null);
|
|
572
|
+
return cn(() => {
|
|
573
573
|
t.current = e;
|
|
574
574
|
}, [
|
|
575
575
|
e
|
|
576
|
-
]),
|
|
576
|
+
]), _((...n) => {
|
|
577
577
|
const r = t.current;
|
|
578
578
|
return r?.(...n);
|
|
579
579
|
}, []);
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function ye(e, t) {
|
|
582
582
|
if (!e) return !1;
|
|
583
583
|
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, o = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
|
|
584
584
|
return e === r && n.overflow !== "hidden" && (o = !0), o && t && (o = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), o;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function it(e, t) {
|
|
587
587
|
let n = e;
|
|
588
|
-
for (
|
|
588
|
+
for (ye(n, t) && (n = n.parentElement); n && !ye(n, t); ) n = n.parentElement;
|
|
589
589
|
return n || document.scrollingElement || document.documentElement;
|
|
590
590
|
}
|
|
591
|
-
|
|
592
|
-
|
|
591
|
+
const un = /* @__PURE__ */ new Set([
|
|
592
|
+
"checkbox",
|
|
593
|
+
"radio",
|
|
594
|
+
"range",
|
|
595
|
+
"color",
|
|
596
|
+
"file",
|
|
597
|
+
"image",
|
|
598
|
+
"button",
|
|
599
|
+
"submit",
|
|
600
|
+
"reset"
|
|
601
|
+
]);
|
|
602
|
+
function $e(e) {
|
|
603
|
+
return e instanceof HTMLInputElement && !un.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
|
|
593
604
|
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
605
|
+
function dn(e) {
|
|
606
|
+
return e.pointerType === "" && e.isTrusted ? !0 : ot() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
607
|
+
}
|
|
608
|
+
const fn = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
609
|
+
function pn(e) {
|
|
610
|
+
const t = U(e);
|
|
597
611
|
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
598
612
|
let { display: n, visibility: r } = e.style, o = n !== "none" && r !== "hidden" && r !== "collapse";
|
|
599
613
|
if (o) {
|
|
@@ -603,16 +617,16 @@ function un(e) {
|
|
|
603
617
|
}
|
|
604
618
|
return o;
|
|
605
619
|
}
|
|
606
|
-
function
|
|
620
|
+
function vn(e, t) {
|
|
607
621
|
return !e.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
|
|
608
622
|
!e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
|
|
609
623
|
}
|
|
610
|
-
function
|
|
611
|
-
return
|
|
624
|
+
function _e(e, t) {
|
|
625
|
+
return fn ? e.checkVisibility({
|
|
612
626
|
visibilityProperty: !0
|
|
613
|
-
}) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" &&
|
|
627
|
+
}) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && pn(e) && vn(e, t) && (!e.parentElement || _e(e.parentElement, e));
|
|
614
628
|
}
|
|
615
|
-
const
|
|
629
|
+
const Fe = [
|
|
616
630
|
"input:not([disabled]):not([type=hidden])",
|
|
617
631
|
"select:not([disabled])",
|
|
618
632
|
"textarea:not([disabled])",
|
|
@@ -627,16 +641,16 @@ const xe = [
|
|
|
627
641
|
"video[controls]",
|
|
628
642
|
'[contenteditable]:not([contenteditable^="false"])',
|
|
629
643
|
"permission"
|
|
630
|
-
],
|
|
631
|
-
|
|
632
|
-
const
|
|
633
|
-
function
|
|
634
|
-
return e.matches(
|
|
644
|
+
], bn = Fe.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
645
|
+
Fe.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
646
|
+
const $n = Fe.join(':not([hidden]):not([tabindex="-1"]),');
|
|
647
|
+
function mn(e) {
|
|
648
|
+
return e.matches(bn) && _e(e) && !at(e);
|
|
635
649
|
}
|
|
636
|
-
function
|
|
637
|
-
return e.matches(
|
|
650
|
+
function hn(e) {
|
|
651
|
+
return e.matches($n) && _e(e) && !at(e);
|
|
638
652
|
}
|
|
639
|
-
function
|
|
653
|
+
function at(e) {
|
|
640
654
|
let t = e;
|
|
641
655
|
for (; t != null; ) {
|
|
642
656
|
if (t instanceof t.ownerDocument.defaultView.HTMLElement && t.inert) return !0;
|
|
@@ -644,61 +658,61 @@ function nt(e) {
|
|
|
644
658
|
}
|
|
645
659
|
return !1;
|
|
646
660
|
}
|
|
647
|
-
var
|
|
648
|
-
const
|
|
661
|
+
var me;
|
|
662
|
+
const En = typeof document < "u" ? (me = y.useInsertionEffect) !== null && me !== void 0 ? me : y.useLayoutEffect : () => {
|
|
649
663
|
};
|
|
650
|
-
function
|
|
651
|
-
let [r, o] =
|
|
652
|
-
|
|
653
|
-
let
|
|
654
|
-
|
|
664
|
+
function wn(e, t, n) {
|
|
665
|
+
let [r, o] = re(e || t), i = T(r), a = T(e !== void 0), l = e !== void 0;
|
|
666
|
+
D(() => {
|
|
667
|
+
let s = a.current;
|
|
668
|
+
s !== l && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${s ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}.`), a.current = l;
|
|
655
669
|
}, [
|
|
656
670
|
l
|
|
657
671
|
]);
|
|
658
|
-
let
|
|
659
|
-
|
|
660
|
-
i.current =
|
|
672
|
+
let c = l ? e : r;
|
|
673
|
+
En(() => {
|
|
674
|
+
i.current = c;
|
|
661
675
|
});
|
|
662
|
-
let [,
|
|
663
|
-
let p = typeof
|
|
664
|
-
Object.is(i.current, p) || (i.current = p, o(p),
|
|
676
|
+
let [, u] = Nt(() => ({}), {}), d = _((s, ...f) => {
|
|
677
|
+
let p = typeof s == "function" ? s(i.current) : s;
|
|
678
|
+
Object.is(i.current, p) || (i.current = p, o(p), u(), n?.(p, ...f));
|
|
665
679
|
}, [
|
|
666
680
|
n
|
|
667
681
|
]);
|
|
668
682
|
return [
|
|
669
|
-
|
|
670
|
-
|
|
683
|
+
c,
|
|
684
|
+
d
|
|
671
685
|
];
|
|
672
686
|
}
|
|
673
|
-
function
|
|
687
|
+
function lt(e) {
|
|
674
688
|
let t = e;
|
|
675
689
|
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
|
|
676
690
|
}, t;
|
|
677
691
|
}
|
|
678
|
-
function
|
|
692
|
+
function gn(e, t) {
|
|
679
693
|
Object.defineProperty(e, "target", {
|
|
680
694
|
value: t
|
|
681
695
|
}), Object.defineProperty(e, "currentTarget", {
|
|
682
696
|
value: t
|
|
683
697
|
});
|
|
684
698
|
}
|
|
685
|
-
function
|
|
686
|
-
let t =
|
|
699
|
+
function yn(e) {
|
|
700
|
+
let t = T({
|
|
687
701
|
isFocused: !1,
|
|
688
702
|
observer: null
|
|
689
703
|
});
|
|
690
|
-
return
|
|
704
|
+
return x(() => {
|
|
691
705
|
const n = t.current;
|
|
692
706
|
return () => {
|
|
693
707
|
n.observer && (n.observer.disconnect(), n.observer = null);
|
|
694
708
|
};
|
|
695
|
-
}, []),
|
|
696
|
-
let r =
|
|
709
|
+
}, []), _((n) => {
|
|
710
|
+
let r = N(n);
|
|
697
711
|
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
|
|
698
712
|
t.current.isFocused = !0;
|
|
699
713
|
let o = r, i = (a) => {
|
|
700
714
|
if (t.current.isFocused = !1, o.disabled) {
|
|
701
|
-
let l =
|
|
715
|
+
let l = lt(a);
|
|
702
716
|
e?.(l);
|
|
703
717
|
}
|
|
704
718
|
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
@@ -709,7 +723,7 @@ function En(e) {
|
|
|
709
723
|
if (t.current.isFocused && o.disabled) {
|
|
710
724
|
var a;
|
|
711
725
|
(a = t.current.observer) === null || a === void 0 || a.disconnect();
|
|
712
|
-
let l = o ===
|
|
726
|
+
let l = o === L() ? null : L();
|
|
713
727
|
o.dispatchEvent(new FocusEvent("blur", {
|
|
714
728
|
relatedTarget: l
|
|
715
729
|
})), o.dispatchEvent(new FocusEvent("focusout", {
|
|
@@ -728,111 +742,111 @@ function En(e) {
|
|
|
728
742
|
e
|
|
729
743
|
]);
|
|
730
744
|
}
|
|
731
|
-
let
|
|
732
|
-
const
|
|
745
|
+
let Tn = !1;
|
|
746
|
+
const st = y.createContext({
|
|
733
747
|
register: () => {
|
|
734
748
|
}
|
|
735
749
|
});
|
|
736
|
-
|
|
737
|
-
let
|
|
738
|
-
const
|
|
739
|
-
let
|
|
740
|
-
function
|
|
741
|
-
for (let n of
|
|
750
|
+
st.displayName = "PressResponderContext";
|
|
751
|
+
let oe = null;
|
|
752
|
+
const Nn = /* @__PURE__ */ new Set();
|
|
753
|
+
let Y = /* @__PURE__ */ new Map(), G = !1, Te = !1;
|
|
754
|
+
function Pe(e, t) {
|
|
755
|
+
for (let n of Nn) n(e, t);
|
|
742
756
|
}
|
|
743
|
-
function
|
|
744
|
-
return !(e.metaKey || !
|
|
757
|
+
function kn(e) {
|
|
758
|
+
return !(e.metaKey || !te() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
745
759
|
}
|
|
746
|
-
function
|
|
747
|
-
|
|
760
|
+
function de(e) {
|
|
761
|
+
G = !0, !ne.isOpening && kn(e) && (oe = "keyboard", Pe("keyboard", e));
|
|
748
762
|
}
|
|
749
|
-
function
|
|
750
|
-
|
|
763
|
+
function P(e) {
|
|
764
|
+
oe = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (G = !0, Pe("pointer", e));
|
|
751
765
|
}
|
|
752
|
-
function
|
|
753
|
-
!
|
|
766
|
+
function ct(e) {
|
|
767
|
+
!ne.isOpening && dn(e) && (G = !0, oe = "virtual");
|
|
754
768
|
}
|
|
755
|
-
function
|
|
756
|
-
|
|
769
|
+
function ut(e) {
|
|
770
|
+
N(e) === window || N(e) === document || Tn || !e.isTrusted || (!G && !Te && (oe = "virtual", Pe("virtual", e)), G = !1, Te = !1);
|
|
757
771
|
}
|
|
758
|
-
function
|
|
759
|
-
|
|
772
|
+
function dt() {
|
|
773
|
+
G = !1, Te = !0;
|
|
760
774
|
}
|
|
761
|
-
function
|
|
762
|
-
if (typeof window > "u" || typeof document > "u" ||
|
|
763
|
-
const t =
|
|
775
|
+
function He(e) {
|
|
776
|
+
if (typeof window > "u" || typeof document > "u" || Y.get(U(e))) return;
|
|
777
|
+
const t = U(e), n = S(e);
|
|
764
778
|
let r = t.HTMLElement.prototype.focus;
|
|
765
779
|
t.HTMLElement.prototype.focus = function() {
|
|
766
|
-
|
|
767
|
-
}, n.addEventListener("keydown",
|
|
768
|
-
|
|
780
|
+
G = !0, r.apply(this, arguments);
|
|
781
|
+
}, n.addEventListener("keydown", de, !0), n.addEventListener("keyup", de, !0), n.addEventListener("click", ct, !0), t.addEventListener("focus", ut, !0), t.addEventListener("blur", dt, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", P, !0), n.addEventListener("pointermove", P, !0), n.addEventListener("pointerup", P, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", P, !0), n.addEventListener("mousemove", P, !0), n.addEventListener("mouseup", P, !0)), t.addEventListener("beforeunload", () => {
|
|
782
|
+
ft(e);
|
|
769
783
|
}, {
|
|
770
784
|
once: !0
|
|
771
|
-
}),
|
|
785
|
+
}), Y.set(t, {
|
|
772
786
|
focus: r
|
|
773
787
|
});
|
|
774
788
|
}
|
|
775
|
-
const
|
|
776
|
-
const n =
|
|
777
|
-
t && r.removeEventListener("DOMContentLoaded", t),
|
|
789
|
+
const ft = (e, t) => {
|
|
790
|
+
const n = U(e), r = S(e);
|
|
791
|
+
t && r.removeEventListener("DOMContentLoaded", t), Y.has(n) && (n.HTMLElement.prototype.focus = Y.get(n).focus, r.removeEventListener("keydown", de, !0), r.removeEventListener("keyup", de, !0), r.removeEventListener("click", ct, !0), n.removeEventListener("focus", ut, !0), n.removeEventListener("blur", dt, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", P, !0), r.removeEventListener("pointermove", P, !0), r.removeEventListener("pointerup", P, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", P, !0), r.removeEventListener("mousemove", P, !0), r.removeEventListener("mouseup", P, !0)), Y.delete(n));
|
|
778
792
|
};
|
|
779
|
-
function
|
|
780
|
-
const t =
|
|
793
|
+
function Sn(e) {
|
|
794
|
+
const t = S(e);
|
|
781
795
|
let n;
|
|
782
|
-
return t.readyState !== "loading" ?
|
|
783
|
-
|
|
784
|
-
}, t.addEventListener("DOMContentLoaded", n)), () =>
|
|
796
|
+
return t.readyState !== "loading" ? He(e) : (n = () => {
|
|
797
|
+
He(e);
|
|
798
|
+
}, t.addEventListener("DOMContentLoaded", n)), () => ft(e, n);
|
|
785
799
|
}
|
|
786
|
-
typeof document < "u" &&
|
|
787
|
-
function
|
|
788
|
-
return
|
|
800
|
+
typeof document < "u" && Sn();
|
|
801
|
+
function pt() {
|
|
802
|
+
return oe;
|
|
789
803
|
}
|
|
790
|
-
function
|
|
804
|
+
function Ne(e) {
|
|
791
805
|
if (!e.isConnected) return;
|
|
792
|
-
const t =
|
|
793
|
-
if (
|
|
794
|
-
let n =
|
|
795
|
-
|
|
796
|
-
const r =
|
|
797
|
-
(r === n || r === t.body) && e.isConnected &&
|
|
806
|
+
const t = S(e);
|
|
807
|
+
if (pt() === "virtual") {
|
|
808
|
+
let n = L(t);
|
|
809
|
+
ln(() => {
|
|
810
|
+
const r = L(t);
|
|
811
|
+
(r === n || r === t.body) && e.isConnected && we(e);
|
|
798
812
|
});
|
|
799
|
-
} else
|
|
813
|
+
} else we(e);
|
|
800
814
|
}
|
|
801
|
-
function
|
|
802
|
-
let t =
|
|
815
|
+
function xn({ children: e }) {
|
|
816
|
+
let t = Z(() => ({
|
|
803
817
|
register: () => {
|
|
804
818
|
}
|
|
805
819
|
}), []);
|
|
806
|
-
return /* @__PURE__ */
|
|
820
|
+
return /* @__PURE__ */ y.createElement(st.Provider, {
|
|
807
821
|
value: t
|
|
808
822
|
}, e);
|
|
809
823
|
}
|
|
810
|
-
function
|
|
811
|
-
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i =
|
|
824
|
+
function Ln(e) {
|
|
825
|
+
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = T({
|
|
812
826
|
isFocusWithin: !1
|
|
813
|
-
}), { addGlobalListener: a, removeAllGlobalListeners: l } =
|
|
814
|
-
|
|
827
|
+
}), { addGlobalListener: a, removeAllGlobalListeners: l } = sn(), c = _((s) => {
|
|
828
|
+
O(s.currentTarget, N(s)) && i.current.isFocusWithin && !O(s.currentTarget, s.relatedTarget) && (i.current.isFocusWithin = !1, l(), n && n(s), o && o(!1));
|
|
815
829
|
}, [
|
|
816
830
|
n,
|
|
817
831
|
o,
|
|
818
832
|
i,
|
|
819
833
|
l
|
|
820
|
-
]),
|
|
821
|
-
if (!
|
|
822
|
-
let f =
|
|
823
|
-
const p =
|
|
824
|
-
if (!i.current.isFocusWithin &&
|
|
825
|
-
r && r(
|
|
826
|
-
let
|
|
827
|
-
a(p, "focus", (
|
|
828
|
-
let
|
|
829
|
-
if (i.current.isFocusWithin && !
|
|
830
|
-
let
|
|
831
|
-
relatedTarget:
|
|
834
|
+
]), u = yn(c), d = _((s) => {
|
|
835
|
+
if (!O(s.currentTarget, N(s))) return;
|
|
836
|
+
let f = N(s);
|
|
837
|
+
const p = S(f), m = L(p);
|
|
838
|
+
if (!i.current.isFocusWithin && m === f) {
|
|
839
|
+
r && r(s), o && o(!0), i.current.isFocusWithin = !0, u(s);
|
|
840
|
+
let $ = s.currentTarget;
|
|
841
|
+
a(p, "focus", (C) => {
|
|
842
|
+
let b = N(C);
|
|
843
|
+
if (i.current.isFocusWithin && !O($, b)) {
|
|
844
|
+
let h = new p.defaultView.FocusEvent("blur", {
|
|
845
|
+
relatedTarget: b
|
|
832
846
|
});
|
|
833
|
-
|
|
834
|
-
let
|
|
835
|
-
|
|
847
|
+
gn(h, $);
|
|
848
|
+
let E = lt(h);
|
|
849
|
+
c(E);
|
|
836
850
|
}
|
|
837
851
|
}, {
|
|
838
852
|
capture: !0
|
|
@@ -841,9 +855,9 @@ function kn(e) {
|
|
|
841
855
|
}, [
|
|
842
856
|
r,
|
|
843
857
|
o,
|
|
844
|
-
|
|
858
|
+
u,
|
|
845
859
|
a,
|
|
846
|
-
|
|
860
|
+
c
|
|
847
861
|
]);
|
|
848
862
|
return t ? {
|
|
849
863
|
focusWithinProps: {
|
|
@@ -853,39 +867,39 @@ function kn(e) {
|
|
|
853
867
|
}
|
|
854
868
|
} : {
|
|
855
869
|
focusWithinProps: {
|
|
856
|
-
onFocus:
|
|
857
|
-
onBlur:
|
|
870
|
+
onFocus: d,
|
|
871
|
+
onBlur: c
|
|
858
872
|
}
|
|
859
873
|
};
|
|
860
874
|
}
|
|
861
|
-
function
|
|
862
|
-
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: o } = e, i =
|
|
875
|
+
function Cn(e) {
|
|
876
|
+
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: o } = e, i = T({
|
|
863
877
|
isPointerDown: !1,
|
|
864
878
|
ignoreEmulatedMouseEvents: !1
|
|
865
|
-
}), a =
|
|
866
|
-
n &&
|
|
867
|
-
}), l =
|
|
868
|
-
n && n(
|
|
879
|
+
}), a = Ve((c) => {
|
|
880
|
+
n && ae(c, t) && (o && o(c), i.current.isPointerDown = !0);
|
|
881
|
+
}), l = Ve((c) => {
|
|
882
|
+
n && n(c);
|
|
869
883
|
});
|
|
870
|
-
|
|
871
|
-
let
|
|
884
|
+
D(() => {
|
|
885
|
+
let c = i.current;
|
|
872
886
|
if (r) return;
|
|
873
|
-
const
|
|
887
|
+
const u = t.current, d = S(u);
|
|
874
888
|
if (typeof PointerEvent < "u") {
|
|
875
|
-
let
|
|
876
|
-
|
|
889
|
+
let s = (f) => {
|
|
890
|
+
c.isPointerDown && ae(f, t) && l(f), c.isPointerDown = !1;
|
|
877
891
|
};
|
|
878
|
-
return
|
|
879
|
-
|
|
892
|
+
return d.addEventListener("pointerdown", a, !0), d.addEventListener("click", s, !0), () => {
|
|
893
|
+
d.removeEventListener("pointerdown", a, !0), d.removeEventListener("click", s, !0);
|
|
880
894
|
};
|
|
881
895
|
} else if (process.env.NODE_ENV === "test") {
|
|
882
|
-
let
|
|
883
|
-
|
|
896
|
+
let s = (p) => {
|
|
897
|
+
c.ignoreEmulatedMouseEvents ? c.ignoreEmulatedMouseEvents = !1 : c.isPointerDown && ae(p, t) && l(p), c.isPointerDown = !1;
|
|
884
898
|
}, f = (p) => {
|
|
885
|
-
|
|
899
|
+
c.ignoreEmulatedMouseEvents = !0, c.isPointerDown && ae(p, t) && l(p), c.isPointerDown = !1;
|
|
886
900
|
};
|
|
887
|
-
return
|
|
888
|
-
|
|
901
|
+
return d.addEventListener("mousedown", a, !0), d.addEventListener("mouseup", s, !0), d.addEventListener("touchstart", a, !0), d.addEventListener("touchend", f, !0), () => {
|
|
902
|
+
d.removeEventListener("mousedown", a, !0), d.removeEventListener("mouseup", s, !0), d.removeEventListener("touchstart", a, !0), d.removeEventListener("touchend", f, !0);
|
|
889
903
|
};
|
|
890
904
|
}
|
|
891
905
|
}, [
|
|
@@ -893,226 +907,226 @@ function Sn(e) {
|
|
|
893
907
|
r
|
|
894
908
|
]);
|
|
895
909
|
}
|
|
896
|
-
function
|
|
910
|
+
function ae(e, t) {
|
|
897
911
|
if (e.button > 0) return !1;
|
|
898
|
-
let n =
|
|
912
|
+
let n = N(e);
|
|
899
913
|
if (n) {
|
|
900
914
|
const r = n.ownerDocument;
|
|
901
|
-
if (!r || !
|
|
915
|
+
if (!r || !O(r.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
|
|
902
916
|
}
|
|
903
917
|
return t.current ? !e.composedPath().includes(t.current) : !1;
|
|
904
918
|
}
|
|
905
|
-
const
|
|
906
|
-
let
|
|
907
|
-
function
|
|
908
|
-
let { children: t, contain: n, restoreFocus: r, autoFocus: o } = e, i =
|
|
919
|
+
const Ke = /* @__PURE__ */ y.createContext(null), ke = "react-aria-focus-scope-restore";
|
|
920
|
+
let g = null;
|
|
921
|
+
function _n(e) {
|
|
922
|
+
let { children: t, contain: n, restoreFocus: r, autoFocus: o } = e, i = T(null), a = T(null), l = T([]), { parentNode: c } = z(Ke) || {}, u = Z(() => new xe({
|
|
909
923
|
scopeRef: l
|
|
910
924
|
}), [
|
|
911
925
|
l
|
|
912
926
|
]);
|
|
913
|
-
|
|
914
|
-
let f =
|
|
915
|
-
if (
|
|
916
|
-
let p =
|
|
927
|
+
x(() => {
|
|
928
|
+
let f = c || k.root;
|
|
929
|
+
if (k.getTreeNode(f.scopeRef) && g && !fe(g, f.scopeRef)) {
|
|
930
|
+
let p = k.getTreeNode(g);
|
|
917
931
|
p && (f = p);
|
|
918
932
|
}
|
|
919
|
-
f.addChild(
|
|
933
|
+
f.addChild(u), k.addNode(u);
|
|
920
934
|
}, [
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
]),
|
|
924
|
-
let f =
|
|
935
|
+
u,
|
|
936
|
+
c
|
|
937
|
+
]), x(() => {
|
|
938
|
+
let f = k.getTreeNode(l);
|
|
925
939
|
f && (f.contain = !!n);
|
|
926
940
|
}, [
|
|
927
941
|
n
|
|
928
|
-
]),
|
|
942
|
+
]), x(() => {
|
|
929
943
|
var f;
|
|
930
|
-
let p = (f = i.current) === null || f === void 0 ? void 0 : f.nextSibling,
|
|
944
|
+
let p = (f = i.current) === null || f === void 0 ? void 0 : f.nextSibling, m = [], $ = (C) => C.stopPropagation();
|
|
931
945
|
for (; p && p !== a.current; )
|
|
932
|
-
|
|
933
|
-
return l.current =
|
|
934
|
-
for (let
|
|
946
|
+
m.push(p), p.addEventListener(ke, $), p = p.nextSibling;
|
|
947
|
+
return l.current = m, () => {
|
|
948
|
+
for (let C of m) C.removeEventListener(ke, $);
|
|
935
949
|
};
|
|
936
950
|
}, [
|
|
937
951
|
t
|
|
938
|
-
]),
|
|
939
|
-
const f =
|
|
952
|
+
]), An(l, r, n), Mn(l, n), In(l, r, n), Dn(l, o), D(() => {
|
|
953
|
+
const f = L(S(l.current ? l.current[0] : void 0));
|
|
940
954
|
let p = null;
|
|
941
|
-
if (
|
|
942
|
-
for (let
|
|
943
|
-
p ===
|
|
955
|
+
if (M(f, l.current)) {
|
|
956
|
+
for (let m of k.traverse()) m.scopeRef && M(f, m.scopeRef.current) && (p = m);
|
|
957
|
+
p === k.getTreeNode(l) && (g = p.scopeRef);
|
|
944
958
|
}
|
|
945
959
|
}, [
|
|
946
960
|
l
|
|
947
|
-
]),
|
|
948
|
-
var f, p,
|
|
949
|
-
let
|
|
950
|
-
(l ===
|
|
961
|
+
]), x(() => () => {
|
|
962
|
+
var f, p, m;
|
|
963
|
+
let $ = (m = (p = k.getTreeNode(l)) === null || p === void 0 || (f = p.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && m !== void 0 ? m : null;
|
|
964
|
+
(l === g || fe(l, g)) && (!$ || k.getTreeNode($)) && (g = $), k.removeTreeNode(l);
|
|
951
965
|
}, [
|
|
952
966
|
l
|
|
953
967
|
]);
|
|
954
|
-
let
|
|
955
|
-
focusManager:
|
|
956
|
-
parentNode:
|
|
968
|
+
let d = Z(() => Fn(l), []), s = Z(() => ({
|
|
969
|
+
focusManager: d,
|
|
970
|
+
parentNode: u
|
|
957
971
|
}), [
|
|
958
|
-
|
|
959
|
-
|
|
972
|
+
u,
|
|
973
|
+
d
|
|
960
974
|
]);
|
|
961
|
-
return /* @__PURE__ */
|
|
962
|
-
value:
|
|
963
|
-
}, /* @__PURE__ */
|
|
975
|
+
return /* @__PURE__ */ y.createElement(Ke.Provider, {
|
|
976
|
+
value: s
|
|
977
|
+
}, /* @__PURE__ */ y.createElement("span", {
|
|
964
978
|
"data-focus-scope-start": !0,
|
|
965
979
|
hidden: !0,
|
|
966
980
|
ref: i
|
|
967
|
-
}), t, /* @__PURE__ */
|
|
981
|
+
}), t, /* @__PURE__ */ y.createElement("span", {
|
|
968
982
|
"data-focus-scope-end": !0,
|
|
969
983
|
hidden: !0,
|
|
970
984
|
ref: a
|
|
971
985
|
}));
|
|
972
986
|
}
|
|
973
|
-
function
|
|
987
|
+
function Fn(e) {
|
|
974
988
|
return {
|
|
975
989
|
focusNext(t = {}) {
|
|
976
990
|
let n = e.current, { from: r, tabbable: o, wrap: i, accept: a } = t;
|
|
977
991
|
var l;
|
|
978
|
-
let
|
|
992
|
+
let c = r || L(S((l = n[0]) !== null && l !== void 0 ? l : void 0)), u = n[0].previousElementSibling, d = j(n), s = B(d, {
|
|
979
993
|
tabbable: o,
|
|
980
994
|
accept: a
|
|
981
995
|
}, n);
|
|
982
|
-
|
|
983
|
-
let f =
|
|
984
|
-
return !f && i && (
|
|
996
|
+
s.currentNode = M(c, n) ? c : u;
|
|
997
|
+
let f = s.nextNode();
|
|
998
|
+
return !f && i && (s.currentNode = u, f = s.nextNode()), f && W(f, !0), f;
|
|
985
999
|
},
|
|
986
1000
|
focusPrevious(t = {}) {
|
|
987
1001
|
let n = e.current, { from: r, tabbable: o, wrap: i, accept: a } = t;
|
|
988
1002
|
var l;
|
|
989
|
-
let
|
|
1003
|
+
let c = r || L(S((l = n[0]) !== null && l !== void 0 ? l : void 0)), u = n[n.length - 1].nextElementSibling, d = j(n), s = B(d, {
|
|
990
1004
|
tabbable: o,
|
|
991
1005
|
accept: a
|
|
992
1006
|
}, n);
|
|
993
|
-
|
|
994
|
-
let f =
|
|
995
|
-
return !f && i && (
|
|
1007
|
+
s.currentNode = M(c, n) ? c : u;
|
|
1008
|
+
let f = s.previousNode();
|
|
1009
|
+
return !f && i && (s.currentNode = u, f = s.previousNode()), f && W(f, !0), f;
|
|
996
1010
|
},
|
|
997
1011
|
focusFirst(t = {}) {
|
|
998
|
-
let n = e.current, { tabbable: r, accept: o } = t, i =
|
|
1012
|
+
let n = e.current, { tabbable: r, accept: o } = t, i = j(n), a = B(i, {
|
|
999
1013
|
tabbable: r,
|
|
1000
1014
|
accept: o
|
|
1001
1015
|
}, n);
|
|
1002
1016
|
a.currentNode = n[0].previousElementSibling;
|
|
1003
1017
|
let l = a.nextNode();
|
|
1004
|
-
return l &&
|
|
1018
|
+
return l && W(l, !0), l;
|
|
1005
1019
|
},
|
|
1006
1020
|
focusLast(t = {}) {
|
|
1007
|
-
let n = e.current, { tabbable: r, accept: o } = t, i =
|
|
1021
|
+
let n = e.current, { tabbable: r, accept: o } = t, i = j(n), a = B(i, {
|
|
1008
1022
|
tabbable: r,
|
|
1009
1023
|
accept: o
|
|
1010
1024
|
}, n);
|
|
1011
1025
|
a.currentNode = n[n.length - 1].nextElementSibling;
|
|
1012
1026
|
let l = a.previousNode();
|
|
1013
|
-
return l &&
|
|
1027
|
+
return l && W(l, !0), l;
|
|
1014
1028
|
}
|
|
1015
1029
|
};
|
|
1016
1030
|
}
|
|
1017
|
-
function
|
|
1031
|
+
function j(e) {
|
|
1018
1032
|
return e[0].parentElement;
|
|
1019
1033
|
}
|
|
1020
|
-
function
|
|
1021
|
-
let t =
|
|
1034
|
+
function Q(e) {
|
|
1035
|
+
let t = k.getTreeNode(g);
|
|
1022
1036
|
for (; t && t.scopeRef !== e; ) {
|
|
1023
1037
|
if (t.contain) return !1;
|
|
1024
1038
|
t = t.parent;
|
|
1025
1039
|
}
|
|
1026
1040
|
return !0;
|
|
1027
1041
|
}
|
|
1028
|
-
function
|
|
1042
|
+
function Pn(e) {
|
|
1029
1043
|
if (!e.form)
|
|
1030
|
-
return Array.from(
|
|
1044
|
+
return Array.from(S(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((r) => !r.form);
|
|
1031
1045
|
const t = e.form.elements.namedItem(e.name);
|
|
1032
|
-
let n =
|
|
1046
|
+
let n = U(e);
|
|
1033
1047
|
return t instanceof n.RadioNodeList ? Array.from(t).filter((r) => r instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [
|
|
1034
1048
|
t
|
|
1035
1049
|
] : [];
|
|
1036
1050
|
}
|
|
1037
|
-
function
|
|
1051
|
+
function On(e) {
|
|
1038
1052
|
if (e.checked) return !0;
|
|
1039
|
-
const t =
|
|
1053
|
+
const t = Pn(e);
|
|
1040
1054
|
return t.length > 0 && !t.some((n) => n.checked);
|
|
1041
1055
|
}
|
|
1042
|
-
function
|
|
1043
|
-
let n =
|
|
1044
|
-
|
|
1056
|
+
function Mn(e, t) {
|
|
1057
|
+
let n = T(void 0), r = T(void 0);
|
|
1058
|
+
x(() => {
|
|
1045
1059
|
let o = e.current;
|
|
1046
1060
|
if (!t) {
|
|
1047
1061
|
r.current && (cancelAnimationFrame(r.current), r.current = void 0);
|
|
1048
1062
|
return;
|
|
1049
1063
|
}
|
|
1050
|
-
const i =
|
|
1051
|
-
let a = (
|
|
1052
|
-
if (
|
|
1053
|
-
let
|
|
1054
|
-
if (!
|
|
1055
|
-
let f =
|
|
1064
|
+
const i = S(o ? o[0] : void 0);
|
|
1065
|
+
let a = (u) => {
|
|
1066
|
+
if (u.key !== "Tab" || u.altKey || u.ctrlKey || u.metaKey || !Q(e) || u.isComposing) return;
|
|
1067
|
+
let d = L(i), s = e.current;
|
|
1068
|
+
if (!s || !M(d, s)) return;
|
|
1069
|
+
let f = j(s), p = B(f, {
|
|
1056
1070
|
tabbable: !0
|
|
1057
|
-
},
|
|
1058
|
-
if (!
|
|
1059
|
-
p.currentNode =
|
|
1060
|
-
let
|
|
1061
|
-
|
|
1062
|
-
}, l = (
|
|
1063
|
-
(
|
|
1064
|
-
},
|
|
1071
|
+
}, s);
|
|
1072
|
+
if (!d) return;
|
|
1073
|
+
p.currentNode = d;
|
|
1074
|
+
let m = u.shiftKey ? p.previousNode() : p.nextNode();
|
|
1075
|
+
m || (p.currentNode = u.shiftKey ? s[s.length - 1].nextElementSibling : s[0].previousElementSibling, m = u.shiftKey ? p.previousNode() : p.nextNode()), u.preventDefault(), m && W(m, !0);
|
|
1076
|
+
}, l = (u) => {
|
|
1077
|
+
(!g || fe(g, e)) && M(N(u), e.current) ? (g = e, n.current = N(u)) : Q(e) && !K(N(u), e) ? n.current ? n.current.focus() : g && g.current && Se(g.current) : Q(e) && (n.current = N(u));
|
|
1078
|
+
}, c = (u) => {
|
|
1065
1079
|
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
1066
|
-
let
|
|
1067
|
-
if (!
|
|
1068
|
-
|
|
1069
|
-
let
|
|
1070
|
-
if (
|
|
1080
|
+
let d = pt(), s = (d === "virtual" || d === null) && ot() && rt(), f = L(i);
|
|
1081
|
+
if (!s && f && Q(e) && !K(f, e)) {
|
|
1082
|
+
g = e;
|
|
1083
|
+
let m = N(u);
|
|
1084
|
+
if (m && m.isConnected) {
|
|
1071
1085
|
var p;
|
|
1072
|
-
n.current =
|
|
1073
|
-
} else
|
|
1086
|
+
n.current = m, (p = n.current) === null || p === void 0 || p.focus();
|
|
1087
|
+
} else g.current && Se(g.current);
|
|
1074
1088
|
}
|
|
1075
1089
|
});
|
|
1076
1090
|
};
|
|
1077
|
-
return i.addEventListener("keydown", a, !1), i.addEventListener("focusin", l, !1), o?.forEach((
|
|
1078
|
-
i.removeEventListener("keydown", a, !1), i.removeEventListener("focusin", l, !1), o?.forEach((
|
|
1091
|
+
return i.addEventListener("keydown", a, !1), i.addEventListener("focusin", l, !1), o?.forEach((u) => u.addEventListener("focusin", l, !1)), o?.forEach((u) => u.addEventListener("focusout", c, !1)), () => {
|
|
1092
|
+
i.removeEventListener("keydown", a, !1), i.removeEventListener("focusin", l, !1), o?.forEach((u) => u.removeEventListener("focusin", l, !1)), o?.forEach((u) => u.removeEventListener("focusout", c, !1));
|
|
1079
1093
|
};
|
|
1080
1094
|
}, [
|
|
1081
1095
|
e,
|
|
1082
1096
|
t
|
|
1083
|
-
]),
|
|
1097
|
+
]), x(() => () => {
|
|
1084
1098
|
r.current && cancelAnimationFrame(r.current);
|
|
1085
1099
|
}, [
|
|
1086
1100
|
r
|
|
1087
1101
|
]);
|
|
1088
1102
|
}
|
|
1089
|
-
function
|
|
1090
|
-
return
|
|
1103
|
+
function vt(e) {
|
|
1104
|
+
return K(e);
|
|
1091
1105
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return !e || !t ? !1 : t.some((n) =>
|
|
1106
|
+
function M(e, t) {
|
|
1107
|
+
return !e || !t ? !1 : t.some((n) => O(n, e));
|
|
1094
1108
|
}
|
|
1095
|
-
function
|
|
1109
|
+
function K(e, t = null) {
|
|
1096
1110
|
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
|
|
1097
|
-
for (let { scopeRef: n } of
|
|
1098
|
-
if (n &&
|
|
1111
|
+
for (let { scopeRef: n } of k.traverse(k.getTreeNode(t)))
|
|
1112
|
+
if (n && M(e, n.current)) return !0;
|
|
1099
1113
|
return !1;
|
|
1100
1114
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return
|
|
1115
|
+
function Rn(e) {
|
|
1116
|
+
return K(e, g);
|
|
1103
1117
|
}
|
|
1104
|
-
function
|
|
1118
|
+
function fe(e, t) {
|
|
1105
1119
|
var n;
|
|
1106
|
-
let r = (n =
|
|
1120
|
+
let r = (n = k.getTreeNode(t)) === null || n === void 0 ? void 0 : n.parent;
|
|
1107
1121
|
for (; r; ) {
|
|
1108
1122
|
if (r.scopeRef === e) return !0;
|
|
1109
1123
|
r = r.parent;
|
|
1110
1124
|
}
|
|
1111
1125
|
return !1;
|
|
1112
1126
|
}
|
|
1113
|
-
function
|
|
1127
|
+
function W(e, t = !1) {
|
|
1114
1128
|
if (e != null && !t) try {
|
|
1115
|
-
|
|
1129
|
+
Ne(e);
|
|
1116
1130
|
} catch {
|
|
1117
1131
|
}
|
|
1118
1132
|
else if (e != null) try {
|
|
@@ -1120,40 +1134,40 @@ function P(e, t = !1) {
|
|
|
1120
1134
|
} catch {
|
|
1121
1135
|
}
|
|
1122
1136
|
}
|
|
1123
|
-
function
|
|
1124
|
-
let n = e[0].previousElementSibling, r =
|
|
1137
|
+
function bt(e, t = !0) {
|
|
1138
|
+
let n = e[0].previousElementSibling, r = j(e), o = B(r, {
|
|
1125
1139
|
tabbable: t
|
|
1126
1140
|
}, e);
|
|
1127
1141
|
o.currentNode = n;
|
|
1128
1142
|
let i = o.nextNode();
|
|
1129
|
-
return t && !i && (r =
|
|
1143
|
+
return t && !i && (r = j(e), o = B(r, {
|
|
1130
1144
|
tabbable: !1
|
|
1131
1145
|
}, e), o.currentNode = n, i = o.nextNode()), i;
|
|
1132
1146
|
}
|
|
1133
|
-
function
|
|
1134
|
-
|
|
1147
|
+
function Se(e, t = !0) {
|
|
1148
|
+
W(bt(e, t));
|
|
1135
1149
|
}
|
|
1136
|
-
function
|
|
1137
|
-
const n =
|
|
1138
|
-
|
|
1150
|
+
function Dn(e, t) {
|
|
1151
|
+
const n = y.useRef(t);
|
|
1152
|
+
D(() => {
|
|
1139
1153
|
if (n.current) {
|
|
1140
|
-
|
|
1141
|
-
const r =
|
|
1142
|
-
!
|
|
1154
|
+
g = e;
|
|
1155
|
+
const r = S(e.current ? e.current[0] : void 0);
|
|
1156
|
+
!M(L(r), g.current) && e.current && Se(e.current);
|
|
1143
1157
|
}
|
|
1144
1158
|
n.current = !1;
|
|
1145
1159
|
}, [
|
|
1146
1160
|
e
|
|
1147
1161
|
]);
|
|
1148
1162
|
}
|
|
1149
|
-
function
|
|
1150
|
-
|
|
1163
|
+
function An(e, t, n) {
|
|
1164
|
+
x(() => {
|
|
1151
1165
|
if (t || n) return;
|
|
1152
1166
|
let r = e.current;
|
|
1153
|
-
const o =
|
|
1167
|
+
const o = S(r ? r[0] : void 0);
|
|
1154
1168
|
let i = (a) => {
|
|
1155
|
-
let l =
|
|
1156
|
-
|
|
1169
|
+
let l = N(a);
|
|
1170
|
+
M(l, e.current) ? g = e : vt(l) || (g = null);
|
|
1157
1171
|
};
|
|
1158
1172
|
return o.addEventListener("focusin", i, !1), r?.forEach((a) => a.addEventListener("focusin", i, !1)), () => {
|
|
1159
1173
|
o.removeEventListener("focusin", i, !1), r?.forEach((a) => a.removeEventListener("focusin", i, !1));
|
|
@@ -1164,22 +1178,22 @@ function Mn(e, t, n) {
|
|
|
1164
1178
|
n
|
|
1165
1179
|
]);
|
|
1166
1180
|
}
|
|
1167
|
-
function
|
|
1168
|
-
let t =
|
|
1181
|
+
function Be(e) {
|
|
1182
|
+
let t = k.getTreeNode(g);
|
|
1169
1183
|
for (; t && t.scopeRef !== e; ) {
|
|
1170
1184
|
if (t.nodeToRestore) return !1;
|
|
1171
1185
|
t = t.parent;
|
|
1172
1186
|
}
|
|
1173
1187
|
return t?.scopeRef === e;
|
|
1174
1188
|
}
|
|
1175
|
-
function
|
|
1176
|
-
const r =
|
|
1177
|
-
|
|
1189
|
+
function In(e, t, n) {
|
|
1190
|
+
const r = T(typeof document < "u" ? L(S(e.current ? e.current[0] : void 0)) : null);
|
|
1191
|
+
x(() => {
|
|
1178
1192
|
let o = e.current;
|
|
1179
|
-
const i =
|
|
1193
|
+
const i = S(o ? o[0] : void 0);
|
|
1180
1194
|
if (!t || n) return;
|
|
1181
1195
|
let a = () => {
|
|
1182
|
-
(
|
|
1196
|
+
(!g || fe(g, e)) && M(L(i), e.current) && (g = e);
|
|
1183
1197
|
};
|
|
1184
1198
|
return i.addEventListener("focusin", a, !1), o?.forEach((l) => l.addEventListener("focusin", a, !1)), () => {
|
|
1185
1199
|
i.removeEventListener("focusin", a, !1), o?.forEach((l) => l.removeEventListener("focusin", a, !1));
|
|
@@ -1187,26 +1201,26 @@ function Rn(e, t, n) {
|
|
|
1187
1201
|
}, [
|
|
1188
1202
|
e,
|
|
1189
1203
|
n
|
|
1190
|
-
]),
|
|
1191
|
-
const o =
|
|
1204
|
+
]), x(() => {
|
|
1205
|
+
const o = S(e.current ? e.current[0] : void 0);
|
|
1192
1206
|
if (!t) return;
|
|
1193
1207
|
let i = (a) => {
|
|
1194
|
-
if (a.key !== "Tab" || a.altKey || a.ctrlKey || a.metaKey || !
|
|
1208
|
+
if (a.key !== "Tab" || a.altKey || a.ctrlKey || a.metaKey || !Q(e) || a.isComposing) return;
|
|
1195
1209
|
let l = o.activeElement;
|
|
1196
|
-
if (!
|
|
1197
|
-
let
|
|
1198
|
-
if (!
|
|
1199
|
-
let
|
|
1210
|
+
if (!K(l, e) || !Be(e)) return;
|
|
1211
|
+
let c = k.getTreeNode(e);
|
|
1212
|
+
if (!c) return;
|
|
1213
|
+
let u = c.nodeToRestore, d = B(o.body, {
|
|
1200
1214
|
tabbable: !0
|
|
1201
1215
|
});
|
|
1202
|
-
|
|
1203
|
-
let
|
|
1204
|
-
if ((!
|
|
1205
|
-
|
|
1216
|
+
d.currentNode = l;
|
|
1217
|
+
let s = a.shiftKey ? d.previousNode() : d.nextNode();
|
|
1218
|
+
if ((!u || !u.isConnected || u === o.body) && (u = void 0, c.nodeToRestore = void 0), (!s || !K(s, e)) && u) {
|
|
1219
|
+
d.currentNode = u;
|
|
1206
1220
|
do
|
|
1207
|
-
|
|
1208
|
-
while (
|
|
1209
|
-
a.preventDefault(), a.stopPropagation(),
|
|
1221
|
+
s = a.shiftKey ? d.previousNode() : d.nextNode();
|
|
1222
|
+
while (K(s, e));
|
|
1223
|
+
a.preventDefault(), a.stopPropagation(), s ? W(s, !0) : vt(u) ? W(u, !0) : l.blur();
|
|
1210
1224
|
}
|
|
1211
1225
|
};
|
|
1212
1226
|
return n || o.addEventListener("keydown", i, !0), () => {
|
|
@@ -1216,35 +1230,35 @@ function Rn(e, t, n) {
|
|
|
1216
1230
|
e,
|
|
1217
1231
|
t,
|
|
1218
1232
|
n
|
|
1219
|
-
]),
|
|
1220
|
-
const o =
|
|
1233
|
+
]), x(() => {
|
|
1234
|
+
const o = S(e.current ? e.current[0] : void 0);
|
|
1221
1235
|
if (!t) return;
|
|
1222
|
-
let i =
|
|
1236
|
+
let i = k.getTreeNode(e);
|
|
1223
1237
|
if (i) {
|
|
1224
1238
|
var a;
|
|
1225
1239
|
return i.nodeToRestore = (a = r.current) !== null && a !== void 0 ? a : void 0, () => {
|
|
1226
|
-
let l =
|
|
1240
|
+
let l = k.getTreeNode(e);
|
|
1227
1241
|
if (!l) return;
|
|
1228
|
-
let
|
|
1229
|
-
if (t &&
|
|
1230
|
-
let
|
|
1242
|
+
let c = l.nodeToRestore, u = L(o);
|
|
1243
|
+
if (t && c && (u && K(u, e) || u === o.body && Be(e))) {
|
|
1244
|
+
let d = k.clone();
|
|
1231
1245
|
requestAnimationFrame(() => {
|
|
1232
1246
|
if (o.activeElement === o.body) {
|
|
1233
|
-
let
|
|
1234
|
-
for (;
|
|
1235
|
-
if (
|
|
1236
|
-
|
|
1247
|
+
let s = d.getTreeNode(e);
|
|
1248
|
+
for (; s; ) {
|
|
1249
|
+
if (s.nodeToRestore && s.nodeToRestore.isConnected) {
|
|
1250
|
+
je(s.nodeToRestore);
|
|
1237
1251
|
return;
|
|
1238
1252
|
}
|
|
1239
|
-
|
|
1253
|
+
s = s.parent;
|
|
1240
1254
|
}
|
|
1241
|
-
for (
|
|
1242
|
-
if (
|
|
1243
|
-
let f =
|
|
1244
|
-
|
|
1255
|
+
for (s = d.getTreeNode(e); s; ) {
|
|
1256
|
+
if (s.scopeRef && s.scopeRef.current && k.getTreeNode(s.scopeRef)) {
|
|
1257
|
+
let f = bt(s.scopeRef.current, !0);
|
|
1258
|
+
je(f);
|
|
1245
1259
|
return;
|
|
1246
1260
|
}
|
|
1247
|
-
|
|
1261
|
+
s = s.parent;
|
|
1248
1262
|
}
|
|
1249
1263
|
}
|
|
1250
1264
|
});
|
|
@@ -1256,21 +1270,21 @@ function Rn(e, t, n) {
|
|
|
1256
1270
|
t
|
|
1257
1271
|
]);
|
|
1258
1272
|
}
|
|
1259
|
-
function
|
|
1260
|
-
e.dispatchEvent(new CustomEvent(
|
|
1273
|
+
function je(e) {
|
|
1274
|
+
e.dispatchEvent(new CustomEvent(ke, {
|
|
1261
1275
|
bubbles: !0,
|
|
1262
1276
|
cancelable: !0
|
|
1263
|
-
})) &&
|
|
1277
|
+
})) && W(e);
|
|
1264
1278
|
}
|
|
1265
|
-
function
|
|
1266
|
-
let r = t?.tabbable ?
|
|
1279
|
+
function B(e, t, n) {
|
|
1280
|
+
let r = t?.tabbable ? hn : mn, o = e?.nodeType === Node.ELEMENT_NODE ? e : null, i = S(o), a = Ye(i, e || i, NodeFilter.SHOW_ELEMENT, {
|
|
1267
1281
|
acceptNode(l) {
|
|
1268
|
-
return
|
|
1282
|
+
return O(t?.from, l) || t?.tabbable && l.tagName === "INPUT" && l.getAttribute("type") === "radio" && (!On(l) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === l.name) ? NodeFilter.FILTER_REJECT : r(l) && (!n || M(l, n)) && (!t?.accept || t.accept(l)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1269
1283
|
}
|
|
1270
1284
|
});
|
|
1271
1285
|
return t?.from && (a.currentNode = t.from), a;
|
|
1272
1286
|
}
|
|
1273
|
-
class
|
|
1287
|
+
class Oe {
|
|
1274
1288
|
get size() {
|
|
1275
1289
|
return this.fastMap.size;
|
|
1276
1290
|
}
|
|
@@ -1280,7 +1294,7 @@ class _e {
|
|
|
1280
1294
|
addTreeNode(t, n, r) {
|
|
1281
1295
|
let o = this.fastMap.get(n ?? null);
|
|
1282
1296
|
if (!o) return;
|
|
1283
|
-
let i = new
|
|
1297
|
+
let i = new xe({
|
|
1284
1298
|
scopeRef: t
|
|
1285
1299
|
});
|
|
1286
1300
|
o.addChild(i), i.parent = o, this.fastMap.set(t, i), r && (i.nodeToRestore = r);
|
|
@@ -1293,7 +1307,7 @@ class _e {
|
|
|
1293
1307
|
let n = this.fastMap.get(t);
|
|
1294
1308
|
if (!n) return;
|
|
1295
1309
|
let r = n.parent;
|
|
1296
|
-
for (let i of this.traverse()) i !== n && n.nodeToRestore && i.nodeToRestore && n.scopeRef && n.scopeRef.current &&
|
|
1310
|
+
for (let i of this.traverse()) i !== n && n.nodeToRestore && i.nodeToRestore && n.scopeRef && n.scopeRef.current && M(i.nodeToRestore, n.scopeRef.current) && (i.nodeToRestore = n.nodeToRestore);
|
|
1297
1311
|
let o = n.children;
|
|
1298
1312
|
r && (r.removeChild(n), o.size > 0 && o.forEach((i) => r && r.addChild(i))), this.fastMap.delete(n.scopeRef);
|
|
1299
1313
|
}
|
|
@@ -1303,18 +1317,18 @@ class _e {
|
|
|
1303
1317
|
}
|
|
1304
1318
|
clone() {
|
|
1305
1319
|
var t;
|
|
1306
|
-
let n = new
|
|
1320
|
+
let n = new Oe();
|
|
1307
1321
|
var r;
|
|
1308
1322
|
for (let o of this.traverse()) n.addTreeNode(o.scopeRef, (r = (t = o.parent) === null || t === void 0 ? void 0 : t.scopeRef) !== null && r !== void 0 ? r : null, o.nodeToRestore);
|
|
1309
1323
|
return n;
|
|
1310
1324
|
}
|
|
1311
1325
|
constructor() {
|
|
1312
|
-
this.fastMap = /* @__PURE__ */ new Map(), this.root = new
|
|
1326
|
+
this.fastMap = /* @__PURE__ */ new Map(), this.root = new xe({
|
|
1313
1327
|
scopeRef: null
|
|
1314
1328
|
}), this.fastMap.set(null, this.root);
|
|
1315
1329
|
}
|
|
1316
1330
|
}
|
|
1317
|
-
class
|
|
1331
|
+
class xe {
|
|
1318
1332
|
addChild(t) {
|
|
1319
1333
|
this.children.add(t), t.parent = this;
|
|
1320
1334
|
}
|
|
@@ -1325,60 +1339,64 @@ class Ne {
|
|
|
1325
1339
|
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = t.scopeRef;
|
|
1326
1340
|
}
|
|
1327
1341
|
}
|
|
1328
|
-
let
|
|
1329
|
-
const
|
|
1330
|
-
function
|
|
1331
|
-
let { onClose: n, shouldCloseOnBlur: r, isOpen: o, isDismissable: i = !1, isKeyboardDismissDisabled: a = !1, shouldCloseOnInteractOutside: l } = e;
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1342
|
+
let k = new Oe();
|
|
1343
|
+
const Wn = /* @__PURE__ */ new WeakMap(), R = [];
|
|
1344
|
+
function Vn(e, t) {
|
|
1345
|
+
let { onClose: n, shouldCloseOnBlur: r, isOpen: o, isDismissable: i = !1, isKeyboardDismissDisabled: a = !1, shouldCloseOnInteractOutside: l } = e, c = T(void 0);
|
|
1346
|
+
D(() => {
|
|
1347
|
+
if (o && !R.includes(t))
|
|
1348
|
+
return R.push(t), () => {
|
|
1349
|
+
let $ = R.indexOf(t);
|
|
1350
|
+
$ >= 0 && R.splice($, 1);
|
|
1351
|
+
};
|
|
1352
|
+
}, [
|
|
1336
1353
|
o,
|
|
1337
1354
|
t
|
|
1338
1355
|
]);
|
|
1339
|
-
let
|
|
1340
|
-
|
|
1341
|
-
},
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1356
|
+
let u = () => {
|
|
1357
|
+
R[R.length - 1] === t && n && n();
|
|
1358
|
+
}, d = ($) => {
|
|
1359
|
+
const C = R[R.length - 1];
|
|
1360
|
+
c.current = C, (!l || l(N($))) && C === t && ($.stopPropagation(), $.preventDefault());
|
|
1361
|
+
}, s = ($) => {
|
|
1362
|
+
(!l || l(N($))) && (R[R.length - 1] === t && ($.stopPropagation(), $.preventDefault()), c.current === t && u()), c.current = void 0;
|
|
1363
|
+
}, f = ($) => {
|
|
1364
|
+
$.key === "Escape" && !a && !$.nativeEvent.isComposing && ($.stopPropagation(), $.preventDefault(), u());
|
|
1347
1365
|
};
|
|
1348
|
-
|
|
1366
|
+
Cn({
|
|
1349
1367
|
ref: t,
|
|
1350
|
-
onInteractOutside: i && o ?
|
|
1351
|
-
onInteractOutsideStart:
|
|
1368
|
+
onInteractOutside: i && o ? s : void 0,
|
|
1369
|
+
onInteractOutsideStart: d
|
|
1352
1370
|
});
|
|
1353
|
-
let { focusWithinProps:
|
|
1371
|
+
let { focusWithinProps: p } = Ln({
|
|
1354
1372
|
isDisabled: !r,
|
|
1355
|
-
onBlurWithin: (
|
|
1356
|
-
|
|
1373
|
+
onBlurWithin: ($) => {
|
|
1374
|
+
!$.relatedTarget || Rn($.relatedTarget) || (!l || l($.relatedTarget)) && n?.();
|
|
1357
1375
|
}
|
|
1358
|
-
}),
|
|
1359
|
-
|
|
1376
|
+
}), m = ($) => {
|
|
1377
|
+
N($) === $.currentTarget && $.preventDefault();
|
|
1360
1378
|
};
|
|
1361
1379
|
return {
|
|
1362
1380
|
overlayProps: {
|
|
1363
|
-
onKeyDown:
|
|
1364
|
-
...
|
|
1381
|
+
onKeyDown: f,
|
|
1382
|
+
...p
|
|
1365
1383
|
},
|
|
1366
1384
|
underlayProps: {
|
|
1367
|
-
onPointerDown:
|
|
1385
|
+
onPointerDown: m
|
|
1368
1386
|
}
|
|
1369
1387
|
};
|
|
1370
1388
|
}
|
|
1371
|
-
function
|
|
1389
|
+
function Hn(e, t, n) {
|
|
1372
1390
|
let { isOpen: r } = t;
|
|
1373
|
-
|
|
1374
|
-
n && n.current &&
|
|
1391
|
+
D(() => {
|
|
1392
|
+
n && n.current && Wn.set(n.current, t.close);
|
|
1375
1393
|
});
|
|
1376
|
-
let o, i =
|
|
1394
|
+
let o, i = Ze();
|
|
1377
1395
|
return {
|
|
1378
1396
|
triggerProps: {
|
|
1379
1397
|
"aria-haspopup": o,
|
|
1380
1398
|
"aria-expanded": r,
|
|
1381
|
-
"aria-controls": r ? i :
|
|
1399
|
+
"aria-controls": r ? i : void 0,
|
|
1382
1400
|
onPress: t.toggle
|
|
1383
1401
|
},
|
|
1384
1402
|
overlayProps: {
|
|
@@ -1386,168 +1404,225 @@ function In(e, t, n) {
|
|
|
1386
1404
|
}
|
|
1387
1405
|
};
|
|
1388
1406
|
}
|
|
1389
|
-
const
|
|
1390
|
-
|
|
1391
|
-
"radio",
|
|
1392
|
-
"range",
|
|
1393
|
-
"color",
|
|
1394
|
-
"file",
|
|
1395
|
-
"image",
|
|
1396
|
-
"button",
|
|
1397
|
-
"submit",
|
|
1398
|
-
"reset"
|
|
1399
|
-
]);
|
|
1400
|
-
let oe = 0, me;
|
|
1407
|
+
const ee = typeof document < "u" && window.visualViewport;
|
|
1408
|
+
let le = 0, he;
|
|
1401
1409
|
function Kn(e = {}) {
|
|
1402
1410
|
let { isDisabled: t } = e;
|
|
1403
|
-
|
|
1411
|
+
x(() => {
|
|
1404
1412
|
if (!t)
|
|
1405
|
-
return
|
|
1406
|
-
|
|
1413
|
+
return le++, le === 1 && (nt() ? he = jn() : he = Bn()), () => {
|
|
1414
|
+
le--, le === 0 && he();
|
|
1407
1415
|
};
|
|
1408
1416
|
}, [
|
|
1409
1417
|
t
|
|
1410
1418
|
]);
|
|
1411
1419
|
}
|
|
1412
|
-
function Vn() {
|
|
1413
|
-
return le(V(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), V(document.documentElement, "overflow", "hidden"));
|
|
1414
|
-
}
|
|
1415
1420
|
function Bn() {
|
|
1416
|
-
let e
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1421
|
+
let e = window.innerWidth - document.documentElement.clientWidth;
|
|
1422
|
+
return Le(e > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
|
|
1423
|
+
("scrollbarGutter" in document.documentElement.style ? ce(document.documentElement, "scrollbarGutter", "stable") : ce(document.documentElement, "paddingRight", `${e}px`)), ce(document.documentElement, "overflow", "hidden"));
|
|
1424
|
+
}
|
|
1425
|
+
function jn() {
|
|
1426
|
+
let e = ce(document.documentElement, "overflow", "hidden"), t, n = !1, r = (u) => {
|
|
1427
|
+
let d = N(u);
|
|
1428
|
+
t = ye(d) ? d : it(d, !0), n = !1;
|
|
1429
|
+
let s = d.ownerDocument.defaultView.getSelection();
|
|
1430
|
+
s && !s.isCollapsed && s.containsNode(d, !0) && (n = !0), u.composedPath().some((f) => f instanceof HTMLInputElement && f.type === "range") && (n = !0), "selectionStart" in d && "selectionEnd" in d && d.selectionStart < d.selectionEnd && d.ownerDocument.activeElement === d && (n = !0);
|
|
1431
|
+
}, o = document.createElement("style");
|
|
1432
|
+
o.textContent = `
|
|
1433
|
+
@layer {
|
|
1434
|
+
* {
|
|
1435
|
+
overscroll-behavior: contain;
|
|
1436
|
+
}
|
|
1437
|
+
}`.trim(), document.head.prepend(o);
|
|
1438
|
+
let i = (u) => {
|
|
1439
|
+
if (!(u.touches.length === 2 || n)) {
|
|
1440
|
+
if (!t || t === document.documentElement || t === document.body) {
|
|
1441
|
+
u.preventDefault();
|
|
1442
|
+
return;
|
|
1443
|
+
}
|
|
1444
|
+
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && u.preventDefault();
|
|
1422
1445
|
}
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
})
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
}, u
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
}), window.scrollTo(0, 0);
|
|
1446
|
-
}, s = le(j(document, "touchstart", n, {
|
|
1447
|
-
passive: !1,
|
|
1448
|
-
capture: !0
|
|
1449
|
-
}), j(document, "touchmove", r, {
|
|
1446
|
+
}, a = (u) => {
|
|
1447
|
+
let d = N(u), s = u.relatedTarget;
|
|
1448
|
+
if (s && $e(s))
|
|
1449
|
+
s.focus({
|
|
1450
|
+
preventScroll: !0
|
|
1451
|
+
}), Ge(s, $e(d));
|
|
1452
|
+
else if (!s) {
|
|
1453
|
+
var f;
|
|
1454
|
+
let p = (f = d.parentElement) === null || f === void 0 ? void 0 : f.closest("[tabindex]");
|
|
1455
|
+
p?.focus({
|
|
1456
|
+
preventScroll: !0
|
|
1457
|
+
});
|
|
1458
|
+
}
|
|
1459
|
+
}, l = HTMLElement.prototype.focus;
|
|
1460
|
+
HTMLElement.prototype.focus = function(u) {
|
|
1461
|
+
let d = L(), s = d != null && $e(d);
|
|
1462
|
+
l.call(this, {
|
|
1463
|
+
...u,
|
|
1464
|
+
preventScroll: !0
|
|
1465
|
+
}), (!u || !u.preventScroll) && Ge(this, s);
|
|
1466
|
+
};
|
|
1467
|
+
let c = Le(Ee(document, "touchstart", r, {
|
|
1450
1468
|
passive: !1,
|
|
1451
1469
|
capture: !0
|
|
1452
|
-
}),
|
|
1470
|
+
}), Ee(document, "touchmove", i, {
|
|
1453
1471
|
passive: !1,
|
|
1454
1472
|
capture: !0
|
|
1455
|
-
}),
|
|
1473
|
+
}), Ee(document, "blur", a, !0));
|
|
1456
1474
|
return () => {
|
|
1457
|
-
|
|
1475
|
+
e(), c(), o.remove(), HTMLElement.prototype.focus = l;
|
|
1458
1476
|
};
|
|
1459
1477
|
}
|
|
1460
|
-
function
|
|
1478
|
+
function ce(e, t, n) {
|
|
1461
1479
|
let r = e.style[t];
|
|
1462
1480
|
return e.style[t] = n, () => {
|
|
1463
1481
|
e.style[t] = r;
|
|
1464
1482
|
};
|
|
1465
1483
|
}
|
|
1466
|
-
function
|
|
1484
|
+
function Ee(e, t, n, r) {
|
|
1467
1485
|
return e.addEventListener(t, n, r), () => {
|
|
1468
1486
|
e.removeEventListener(t, n, r);
|
|
1469
1487
|
};
|
|
1470
1488
|
}
|
|
1471
|
-
function
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1489
|
+
function Ge(e, t) {
|
|
1490
|
+
t || !ee ? qe(e) : ee.addEventListener("resize", () => qe(e), {
|
|
1491
|
+
once: !0
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1494
|
+
function qe(e) {
|
|
1495
|
+
let t = document.scrollingElement || document.documentElement, n = e;
|
|
1496
|
+
for (; n && n !== t; ) {
|
|
1497
|
+
let r = it(n);
|
|
1498
|
+
if (r !== document.documentElement && r !== document.body && r !== n) {
|
|
1499
|
+
let o = r.getBoundingClientRect(), i = n.getBoundingClientRect();
|
|
1500
|
+
if (i.top < o.top || i.bottom > o.top + n.clientHeight) {
|
|
1501
|
+
let a = o.bottom;
|
|
1502
|
+
ee && (a = Math.min(a, ee.offsetTop + ee.height));
|
|
1503
|
+
let l = i.top - o.top - ((a - o.top) / 2 - i.height / 2);
|
|
1504
|
+
r.scrollTo({
|
|
1505
|
+
// Clamp to the valid range to prevent over-scrolling.
|
|
1506
|
+
top: Math.max(0, Math.min(r.scrollHeight - r.clientHeight, r.scrollTop + l)),
|
|
1507
|
+
behavior: "smooth"
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1478
1510
|
}
|
|
1479
|
-
|
|
1511
|
+
n = r.parentElement;
|
|
1480
1512
|
}
|
|
1481
1513
|
}
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1514
|
+
const Gn = /* @__PURE__ */ kt({});
|
|
1515
|
+
function qn() {
|
|
1516
|
+
var e;
|
|
1517
|
+
return (e = z(Gn)) !== null && e !== void 0 ? e : {};
|
|
1518
|
+
}
|
|
1519
|
+
const Un = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
|
|
1520
|
+
let J = /* @__PURE__ */ new WeakMap(), F = [];
|
|
1521
|
+
function zn(e, t) {
|
|
1522
|
+
let n = U(e?.[0]), r = t instanceof n.Element ? {
|
|
1523
|
+
root: t
|
|
1524
|
+
} : t;
|
|
1525
|
+
var o;
|
|
1526
|
+
let i = (o = r?.root) !== null && o !== void 0 ? o : document.body, a = r?.shouldUseInert && Un, l = new Set(e), c = /* @__PURE__ */ new Set(), u = (b) => a && b instanceof n.HTMLElement ? b.inert : b.getAttribute("aria-hidden") === "true", d = (b, h) => {
|
|
1527
|
+
a && b instanceof n.HTMLElement ? b.inert = h : h ? b.setAttribute("aria-hidden", "true") : (b.removeAttribute("aria-hidden"), b instanceof n.HTMLElement && (b.inert = !1));
|
|
1528
|
+
}, s = /* @__PURE__ */ new Set();
|
|
1529
|
+
if (I())
|
|
1530
|
+
for (let b of e) {
|
|
1531
|
+
let h = b;
|
|
1532
|
+
for (; h && h !== i; ) {
|
|
1533
|
+
let E = h.getRootNode();
|
|
1534
|
+
"shadowRoot" in E && s.add(E.shadowRoot), h = E.parentNode;
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
let f = (b) => {
|
|
1538
|
+
for (let w of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) l.add(w);
|
|
1539
|
+
let h = (w) => {
|
|
1540
|
+
if (c.has(w) || l.has(w) || w.parentElement && c.has(w.parentElement) && w.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
|
|
1541
|
+
for (let wt of l)
|
|
1542
|
+
if (O(w, wt)) return NodeFilter.FILTER_SKIP;
|
|
1493
1543
|
return NodeFilter.FILTER_ACCEPT;
|
|
1494
|
-
},
|
|
1495
|
-
acceptNode:
|
|
1496
|
-
}),
|
|
1497
|
-
if (
|
|
1498
|
-
let
|
|
1499
|
-
for (;
|
|
1500
|
-
|
|
1544
|
+
}, E = Ye(S(b), b, NodeFilter.SHOW_ELEMENT, {
|
|
1545
|
+
acceptNode: h
|
|
1546
|
+
}), A = h(b);
|
|
1547
|
+
if (A === NodeFilter.FILTER_ACCEPT && p(b), A !== NodeFilter.FILTER_REJECT) {
|
|
1548
|
+
let w = E.nextNode();
|
|
1549
|
+
for (; w != null; )
|
|
1550
|
+
p(w), w = E.nextNode();
|
|
1501
1551
|
}
|
|
1502
|
-
},
|
|
1503
|
-
var
|
|
1504
|
-
let
|
|
1505
|
-
|
|
1552
|
+
}, p = (b) => {
|
|
1553
|
+
var h;
|
|
1554
|
+
let E = (h = J.get(b)) !== null && h !== void 0 ? h : 0;
|
|
1555
|
+
u(b) && E === 0 || (E === 0 && d(b, !0), c.add(b), J.set(b, E + 1));
|
|
1506
1556
|
};
|
|
1507
|
-
|
|
1508
|
-
let
|
|
1509
|
-
for (let
|
|
1510
|
-
if (
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1557
|
+
F.length && F[F.length - 1].disconnect(), f(i);
|
|
1558
|
+
let m = new MutationObserver((b) => {
|
|
1559
|
+
for (let h of b)
|
|
1560
|
+
if (h.type === "childList") {
|
|
1561
|
+
if (h.target.isConnected && ![
|
|
1562
|
+
...l,
|
|
1563
|
+
...c
|
|
1564
|
+
].some((E) => O(E, h.target))) for (let E of h.addedNodes)
|
|
1565
|
+
(E instanceof HTMLElement || E instanceof SVGElement) && (E.dataset.liveAnnouncer === "true" || E.dataset.reactAriaTopLayer === "true") ? l.add(E) : E instanceof Element && f(E);
|
|
1566
|
+
if (I()) {
|
|
1567
|
+
for (let E of s) if (!E.isConnected) {
|
|
1568
|
+
m.disconnect();
|
|
1569
|
+
break;
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1517
1572
|
}
|
|
1518
1573
|
});
|
|
1519
|
-
|
|
1574
|
+
m.observe(i, {
|
|
1520
1575
|
childList: !0,
|
|
1521
1576
|
subtree: !0
|
|
1522
1577
|
});
|
|
1523
|
-
let
|
|
1578
|
+
let $ = /* @__PURE__ */ new Set();
|
|
1579
|
+
if (I()) for (let b of s) {
|
|
1580
|
+
let h = new MutationObserver((E) => {
|
|
1581
|
+
for (let A of E)
|
|
1582
|
+
if (A.type === "childList") {
|
|
1583
|
+
if (A.target.isConnected && ![
|
|
1584
|
+
...l,
|
|
1585
|
+
...c
|
|
1586
|
+
].some((w) => O(w, A.target))) for (let w of A.addedNodes)
|
|
1587
|
+
(w instanceof HTMLElement || w instanceof SVGElement) && (w.dataset.liveAnnouncer === "true" || w.dataset.reactAriaTopLayer === "true") ? l.add(w) : w instanceof Element && f(w);
|
|
1588
|
+
if (I()) {
|
|
1589
|
+
for (let w of s) if (!w.isConnected) {
|
|
1590
|
+
m.disconnect();
|
|
1591
|
+
break;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
});
|
|
1596
|
+
h.observe(b, {
|
|
1597
|
+
childList: !0,
|
|
1598
|
+
subtree: !0
|
|
1599
|
+
}), $.add(h);
|
|
1600
|
+
}
|
|
1601
|
+
let C = {
|
|
1602
|
+
visibleNodes: l,
|
|
1603
|
+
hiddenNodes: c,
|
|
1524
1604
|
observe() {
|
|
1525
|
-
|
|
1605
|
+
m.observe(i, {
|
|
1526
1606
|
childList: !0,
|
|
1527
1607
|
subtree: !0
|
|
1528
1608
|
});
|
|
1529
1609
|
},
|
|
1530
1610
|
disconnect() {
|
|
1531
|
-
|
|
1611
|
+
m.disconnect();
|
|
1532
1612
|
}
|
|
1533
1613
|
};
|
|
1534
|
-
return
|
|
1535
|
-
|
|
1536
|
-
for (let
|
|
1537
|
-
let
|
|
1538
|
-
|
|
1614
|
+
return F.push(C), () => {
|
|
1615
|
+
if (m.disconnect(), I()) for (let b of $) b.disconnect();
|
|
1616
|
+
for (let b of c) {
|
|
1617
|
+
let h = J.get(b);
|
|
1618
|
+
h != null && (h === 1 ? (d(b, !1), J.delete(b)) : J.set(b, h - 1));
|
|
1539
1619
|
}
|
|
1540
|
-
|
|
1620
|
+
C === F[F.length - 1] ? (F.pop(), F.length && F[F.length - 1].observe()) : F.splice(F.indexOf(C), 1);
|
|
1541
1621
|
};
|
|
1542
1622
|
}
|
|
1543
|
-
const
|
|
1544
|
-
function
|
|
1545
|
-
|
|
1546
|
-
return (e = H(jn)) !== null && e !== void 0 ? e : {};
|
|
1547
|
-
}
|
|
1548
|
-
const ft = /* @__PURE__ */ m.createContext(null);
|
|
1549
|
-
function Gn(e) {
|
|
1550
|
-
let t = Ue(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [o, i] = Z(!1), a = U(() => ({
|
|
1623
|
+
const $t = /* @__PURE__ */ y.createContext(null);
|
|
1624
|
+
function Jn(e) {
|
|
1625
|
+
let t = Qe(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [o, i] = re(!1), a = Z(() => ({
|
|
1551
1626
|
contain: o,
|
|
1552
1627
|
setContain: i
|
|
1553
1628
|
}), [
|
|
@@ -1555,51 +1630,53 @@ function Gn(e) {
|
|
|
1555
1630
|
i
|
|
1556
1631
|
]), { getContainer: l } = qn();
|
|
1557
1632
|
if (!e.portalContainer && l && (n = l()), !n) return null;
|
|
1558
|
-
let
|
|
1559
|
-
return e.disableFocusManagement || (
|
|
1633
|
+
let c = e.children;
|
|
1634
|
+
return e.disableFocusManagement || (c = /* @__PURE__ */ y.createElement(_n, {
|
|
1560
1635
|
restoreFocus: !0,
|
|
1561
|
-
contain: o && !r
|
|
1562
|
-
},
|
|
1636
|
+
contain: (e.shouldContainFocus || o) && !r
|
|
1637
|
+
}, c)), c = /* @__PURE__ */ y.createElement($t.Provider, {
|
|
1563
1638
|
value: a
|
|
1564
|
-
}, /* @__PURE__ */
|
|
1639
|
+
}, /* @__PURE__ */ y.createElement(xn, null, c)), /* @__PURE__ */ St.createPortal(c, n);
|
|
1565
1640
|
}
|
|
1566
|
-
function
|
|
1567
|
-
let e =
|
|
1568
|
-
|
|
1641
|
+
function mt() {
|
|
1642
|
+
let e = z($t), t = e?.setContain;
|
|
1643
|
+
x(() => {
|
|
1569
1644
|
t?.(!0);
|
|
1570
1645
|
}, [
|
|
1571
1646
|
t
|
|
1572
1647
|
]);
|
|
1573
1648
|
}
|
|
1574
|
-
function
|
|
1575
|
-
let { overlayProps: r, underlayProps: o } =
|
|
1649
|
+
function Xn(e, t, n) {
|
|
1650
|
+
let { overlayProps: r, underlayProps: o } = Vn({
|
|
1576
1651
|
...e,
|
|
1577
1652
|
isOpen: t.isOpen,
|
|
1578
1653
|
onClose: t.close
|
|
1579
1654
|
}, n);
|
|
1580
1655
|
return Kn({
|
|
1581
1656
|
isDisabled: !t.isOpen
|
|
1582
|
-
}),
|
|
1583
|
-
if (t.isOpen) return
|
|
1657
|
+
}), mt(), D(() => {
|
|
1658
|
+
if (t.isOpen && n.current) return zn([
|
|
1584
1659
|
n.current
|
|
1585
|
-
]
|
|
1660
|
+
], {
|
|
1661
|
+
shouldUseInert: !0
|
|
1662
|
+
});
|
|
1586
1663
|
}, [
|
|
1587
1664
|
t.isOpen,
|
|
1588
1665
|
n
|
|
1589
1666
|
]), {
|
|
1590
|
-
modalProps:
|
|
1667
|
+
modalProps: qt(r),
|
|
1591
1668
|
underlayProps: o
|
|
1592
1669
|
};
|
|
1593
1670
|
}
|
|
1594
|
-
function
|
|
1595
|
-
let { role: n = "dialog" } = e, r =
|
|
1671
|
+
function Qn(e, t) {
|
|
1672
|
+
let { role: n = "dialog" } = e, r = Wt();
|
|
1596
1673
|
r = e["aria-label"] ? void 0 : r;
|
|
1597
|
-
let o =
|
|
1598
|
-
return
|
|
1674
|
+
let o = T(!1);
|
|
1675
|
+
return D(() => {
|
|
1599
1676
|
if (t.current && !t.current.contains(document.activeElement)) {
|
|
1600
|
-
|
|
1677
|
+
Ne(t.current);
|
|
1601
1678
|
let i = setTimeout(() => {
|
|
1602
|
-
document.activeElement === t.current && (o.current = !0, t.current && (t.current.blur(),
|
|
1679
|
+
document.activeElement === t.current && (o.current = !0, t.current && (t.current.blur(), Ne(t.current)), o.current = !1);
|
|
1603
1680
|
}, 500);
|
|
1604
1681
|
return () => {
|
|
1605
1682
|
clearTimeout(i);
|
|
@@ -1607,9 +1684,9 @@ function Un(e, t) {
|
|
|
1607
1684
|
}
|
|
1608
1685
|
}, [
|
|
1609
1686
|
t
|
|
1610
|
-
]),
|
|
1687
|
+
]), mt(), {
|
|
1611
1688
|
dialogProps: {
|
|
1612
|
-
...
|
|
1689
|
+
...Zt(e, {
|
|
1613
1690
|
labelable: !0
|
|
1614
1691
|
}),
|
|
1615
1692
|
role: n,
|
|
@@ -1627,7 +1704,7 @@ function Un(e, t) {
|
|
|
1627
1704
|
}
|
|
1628
1705
|
};
|
|
1629
1706
|
}
|
|
1630
|
-
function
|
|
1707
|
+
function Zn(e, t, n) {
|
|
1631
1708
|
return t in e ? Object.defineProperty(e, t, {
|
|
1632
1709
|
value: n,
|
|
1633
1710
|
enumerable: !0,
|
|
@@ -1635,7 +1712,7 @@ function Jn(e, t, n) {
|
|
|
1635
1712
|
writable: !0
|
|
1636
1713
|
}) : e[t] = n, e;
|
|
1637
1714
|
}
|
|
1638
|
-
function
|
|
1715
|
+
function Ue(e, t) {
|
|
1639
1716
|
var n = Object.keys(e);
|
|
1640
1717
|
if (Object.getOwnPropertySymbols) {
|
|
1641
1718
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1645,51 +1722,51 @@ function je(e, t) {
|
|
|
1645
1722
|
}
|
|
1646
1723
|
return n;
|
|
1647
1724
|
}
|
|
1648
|
-
function
|
|
1725
|
+
function ze(e) {
|
|
1649
1726
|
for (var t = 1; t < arguments.length; t++) {
|
|
1650
1727
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1651
|
-
t % 2 ?
|
|
1652
|
-
|
|
1653
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1728
|
+
t % 2 ? Ue(Object(n), !0).forEach(function(r) {
|
|
1729
|
+
Zn(e, r, n[r]);
|
|
1730
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ue(Object(n)).forEach(function(r) {
|
|
1654
1731
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
1655
1732
|
});
|
|
1656
1733
|
}
|
|
1657
1734
|
return e;
|
|
1658
1735
|
}
|
|
1659
|
-
var
|
|
1736
|
+
var Yn = (e, t, n) => {
|
|
1660
1737
|
for (var r of Object.keys(e)) {
|
|
1661
1738
|
var o;
|
|
1662
1739
|
if (e[r] !== ((o = t[r]) !== null && o !== void 0 ? o : n[r]))
|
|
1663
1740
|
return !1;
|
|
1664
1741
|
}
|
|
1665
1742
|
return !0;
|
|
1666
|
-
},
|
|
1667
|
-
var n = e.defaultClassName, r =
|
|
1743
|
+
}, er = (e) => (t) => {
|
|
1744
|
+
var n = e.defaultClassName, r = ze(ze({}, e.defaultVariants), t);
|
|
1668
1745
|
for (var o in r) {
|
|
1669
1746
|
var i, a = (i = r[o]) !== null && i !== void 0 ? i : e.defaultVariants[o];
|
|
1670
1747
|
if (a != null) {
|
|
1671
1748
|
var l = a;
|
|
1672
1749
|
typeof l == "boolean" && (l = l === !0 ? "true" : "false");
|
|
1673
|
-
var
|
|
1750
|
+
var c = (
|
|
1674
1751
|
// @ts-expect-error
|
|
1675
1752
|
e.variantClassNames[o][l]
|
|
1676
1753
|
);
|
|
1677
|
-
|
|
1754
|
+
c && (n += " " + c);
|
|
1678
1755
|
}
|
|
1679
1756
|
}
|
|
1680
|
-
for (var [
|
|
1681
|
-
|
|
1757
|
+
for (var [u, d] of e.compoundVariants)
|
|
1758
|
+
Yn(u, r, e.defaultVariants) && (n += " " + d);
|
|
1682
1759
|
return n;
|
|
1683
|
-
},
|
|
1684
|
-
function
|
|
1760
|
+
}, tr = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq0", nr = er({ defaultClassName: "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq1", variantClassNames: { fullWidth: { true: "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq2", false: "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq3" } }, defaultVariants: {}, compoundVariants: [] }), rr = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq4", or = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq5", ir = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq7", ar = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq8", lr = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq9", sr = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psqa";
|
|
1761
|
+
function ht({
|
|
1685
1762
|
children: e,
|
|
1686
1763
|
className: t = "",
|
|
1687
1764
|
...n
|
|
1688
1765
|
}) {
|
|
1689
|
-
return /* @__PURE__ */ v.createElement("div", { className:
|
|
1766
|
+
return /* @__PURE__ */ v.createElement("div", { className: se(ar, t), ...n }, /* @__PURE__ */ v.createElement("div", { className: se(lr) }, /* @__PURE__ */ v.createElement("div", { className: se(sr) }, e)));
|
|
1690
1767
|
}
|
|
1691
|
-
|
|
1692
|
-
function
|
|
1768
|
+
Je.set(ht, { name: "FocusedTaskActions" });
|
|
1769
|
+
function cr({
|
|
1693
1770
|
children: e,
|
|
1694
1771
|
className: t,
|
|
1695
1772
|
"data-testid": n,
|
|
@@ -1698,48 +1775,48 @@ function ar({
|
|
|
1698
1775
|
overlayProps: i,
|
|
1699
1776
|
state: a,
|
|
1700
1777
|
onClose: l,
|
|
1701
|
-
fullWidth:
|
|
1702
|
-
...
|
|
1778
|
+
fullWidth: c = !1,
|
|
1779
|
+
...u
|
|
1703
1780
|
}) {
|
|
1704
|
-
const
|
|
1705
|
-
{ ...
|
|
1781
|
+
const d = v.useRef(null), { modalProps: s, underlayProps: f } = Xn(
|
|
1782
|
+
{ ...u },
|
|
1706
1783
|
a,
|
|
1707
|
-
|
|
1708
|
-
), { dialogProps: p, titleProps:
|
|
1709
|
-
function
|
|
1784
|
+
d
|
|
1785
|
+
), { dialogProps: p, titleProps: m } = Qn(u, d), $ = Me(s.onFocus, p.onFocus, o), C = Me(s.onBlur, p.onBlur, r), b = gt({ "data-testid": n }), [h, E] = yt(e, [{ type: ht }]);
|
|
1786
|
+
function A() {
|
|
1710
1787
|
l && typeof l == "function" && l(), a.close();
|
|
1711
1788
|
}
|
|
1712
|
-
const
|
|
1713
|
-
|
|
1789
|
+
const w = /* @__PURE__ */ v.createElement(
|
|
1790
|
+
Tt,
|
|
1714
1791
|
{
|
|
1715
1792
|
"aria-label": "Close",
|
|
1716
|
-
onClick:
|
|
1793
|
+
onClick: A,
|
|
1717
1794
|
kind: "icon",
|
|
1718
1795
|
icon: "x",
|
|
1719
|
-
className:
|
|
1796
|
+
className: or
|
|
1720
1797
|
}
|
|
1721
1798
|
);
|
|
1722
|
-
return /* @__PURE__ */ v.createElement(
|
|
1799
|
+
return /* @__PURE__ */ v.createElement(Jn, null, /* @__PURE__ */ v.createElement("div", { className: ir, ...f, ...u }, /* @__PURE__ */ v.createElement(
|
|
1723
1800
|
"div",
|
|
1724
1801
|
{
|
|
1725
|
-
...
|
|
1802
|
+
...s,
|
|
1726
1803
|
...p,
|
|
1727
1804
|
...i,
|
|
1728
|
-
onFocus:
|
|
1729
|
-
onBlur:
|
|
1730
|
-
...
|
|
1731
|
-
ref:
|
|
1732
|
-
className:
|
|
1805
|
+
onFocus: $,
|
|
1806
|
+
onBlur: C,
|
|
1807
|
+
...b("dialog"),
|
|
1808
|
+
ref: d,
|
|
1809
|
+
className: se(tr, t)
|
|
1733
1810
|
},
|
|
1734
|
-
/* @__PURE__ */ v.createElement("div", { ...
|
|
1735
|
-
/* @__PURE__ */ v.createElement("div", { className:
|
|
1736
|
-
|
|
1811
|
+
/* @__PURE__ */ v.createElement("div", { ...m, className: rr }, w),
|
|
1812
|
+
/* @__PURE__ */ v.createElement("div", { className: nr({ fullWidth: c }) }, Re(E, a.close)),
|
|
1813
|
+
h && h.length > 0 && /* @__PURE__ */ v.createElement(v.Fragment, null, Re(h, a.close))
|
|
1737
1814
|
)));
|
|
1738
1815
|
}
|
|
1739
|
-
function
|
|
1740
|
-
return e.state.isOpen ? /* @__PURE__ */ v.createElement(
|
|
1816
|
+
function Et(e) {
|
|
1817
|
+
return e.state.isOpen ? /* @__PURE__ */ v.createElement(cr, { ...e }, e.children) : /* @__PURE__ */ v.createElement(v.Fragment, null);
|
|
1741
1818
|
}
|
|
1742
|
-
|
|
1819
|
+
Je.set(Et, {
|
|
1743
1820
|
name: "FocusedTask",
|
|
1744
1821
|
props: {
|
|
1745
1822
|
fullWidth: { type: "boolean", default: "false" },
|
|
@@ -1748,17 +1825,17 @@ Ge.set(bt, {
|
|
|
1748
1825
|
onFocus: { type: "() => void" }
|
|
1749
1826
|
}
|
|
1750
1827
|
});
|
|
1751
|
-
function
|
|
1752
|
-
let [t, n] =
|
|
1753
|
-
const r =
|
|
1828
|
+
function ur(e) {
|
|
1829
|
+
let [t, n] = wn(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
|
|
1830
|
+
const r = _(() => {
|
|
1754
1831
|
n(!0);
|
|
1755
1832
|
}, [
|
|
1756
1833
|
n
|
|
1757
|
-
]), o =
|
|
1834
|
+
]), o = _(() => {
|
|
1758
1835
|
n(!1);
|
|
1759
1836
|
}, [
|
|
1760
1837
|
n
|
|
1761
|
-
]), i =
|
|
1838
|
+
]), i = _(() => {
|
|
1762
1839
|
n(!t);
|
|
1763
1840
|
}, [
|
|
1764
1841
|
n,
|
|
@@ -1772,8 +1849,8 @@ function lr(e) {
|
|
|
1772
1849
|
toggle: i
|
|
1773
1850
|
};
|
|
1774
1851
|
}
|
|
1775
|
-
function
|
|
1776
|
-
const t =
|
|
1852
|
+
function mr(e = {}) {
|
|
1853
|
+
const t = ur(e), n = T(null), { triggerProps: r, overlayProps: o } = Hn({}, t, n), { onPress: i, ...a } = r;
|
|
1777
1854
|
return {
|
|
1778
1855
|
triggerProps: {
|
|
1779
1856
|
...a,
|
|
@@ -1785,8 +1862,8 @@ function vr(e = {}) {
|
|
|
1785
1862
|
focusedTaskProps: { overlayProps: o, state: t }
|
|
1786
1863
|
};
|
|
1787
1864
|
}
|
|
1788
|
-
const
|
|
1789
|
-
components: [
|
|
1865
|
+
const dr = {
|
|
1866
|
+
components: [Et],
|
|
1790
1867
|
examples: {
|
|
1791
1868
|
hooks: {
|
|
1792
1869
|
label: "Using the Hook",
|
|
@@ -1796,7 +1873,7 @@ const sr = {
|
|
|
1796
1873
|
label: "Standard",
|
|
1797
1874
|
examples: {
|
|
1798
1875
|
basic: {
|
|
1799
|
-
react:
|
|
1876
|
+
react: De`
|
|
1800
1877
|
import { FocusedTask, FocusedTaskActions, useFocusedTask } from "@sps-woodland/focused-task";
|
|
1801
1878
|
import { Button } from "@sps-woodland/buttons";
|
|
1802
1879
|
import { Card } from "@sps-woodland/cards";
|
|
@@ -1842,7 +1919,7 @@ const sr = {
|
|
|
1842
1919
|
label: "Fill Width",
|
|
1843
1920
|
examples: {
|
|
1844
1921
|
basic: {
|
|
1845
|
-
react:
|
|
1922
|
+
react: De`
|
|
1846
1923
|
import { FocusedTask, FocusedTaskActions, useFocusedTask } from "@sps-woodland/focused-task";
|
|
1847
1924
|
import { Button } from "@sps-woodland/buttons";
|
|
1848
1925
|
import { Card } from "@sps-woodland/cards";
|
|
@@ -1886,12 +1963,12 @@ const sr = {
|
|
|
1886
1963
|
}
|
|
1887
1964
|
}
|
|
1888
1965
|
}
|
|
1889
|
-
},
|
|
1890
|
-
"Focused Task":
|
|
1966
|
+
}, hr = {
|
|
1967
|
+
"Focused Task": dr
|
|
1891
1968
|
};
|
|
1892
1969
|
export {
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1970
|
+
Et as FocusedTask,
|
|
1971
|
+
ht as FocusedTaskActions,
|
|
1972
|
+
hr as MANIFEST,
|
|
1973
|
+
mr as useFocusedTask
|
|
1897
1974
|
};
|