@sps-woodland/modal 8.42.0 → 8.42.2
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 +1141 -784
- package/lib/index.umd.cjs +3 -3
- package/lib/modal/useModal.d.ts +1 -1
- package/lib/style.css +1 -1
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -1,121 +1,116 @@
|
|
|
1
|
-
import { Metadata as
|
|
2
|
-
import { Button as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { useWoodlandLanguage as
|
|
6
|
-
import
|
|
7
|
-
import { code as
|
|
8
|
-
const
|
|
1
|
+
import { Metadata as Ye, cl as we, combineEventHandlers as Oe, useChildTestIdAttrBuilder as Lt, selectChildren as Ft, modChildren as Ct, Icon as Bt, contentOf as pe } from "@sps-woodland/core";
|
|
2
|
+
import { Button as Qe } from "@sps-woodland/buttons";
|
|
3
|
+
import * as f from "react";
|
|
4
|
+
import h, { useState as te, useRef as $, useCallback as k, useContext as q, useEffect as S, useReducer as Ot, useMemo as X, createContext as Dt } from "react";
|
|
5
|
+
import { useWoodlandLanguage as Rt } from "@spscommerce/i18n";
|
|
6
|
+
import At from "react-dom";
|
|
7
|
+
import { code as g } from "@spscommerce/utils";
|
|
8
|
+
const _ = typeof document < "u" ? h.useLayoutEffect : () => {
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
]), T((...o) => {
|
|
17
|
-
const n = t.current;
|
|
18
|
-
return n?.(...o);
|
|
19
|
-
}, []);
|
|
20
|
-
}
|
|
21
|
-
function $t(e) {
|
|
22
|
-
let [t, o] = K(e), n = M(null), r = H(() => {
|
|
23
|
-
if (!n.current) return;
|
|
24
|
-
let a = n.current.next();
|
|
25
|
-
if (a.done) {
|
|
26
|
-
n.current = null;
|
|
10
|
+
function It(e) {
|
|
11
|
+
let [t, o] = te(e), n = $(t), r = $(null), a = $(() => {
|
|
12
|
+
if (!r.current) return;
|
|
13
|
+
let l = r.current.next();
|
|
14
|
+
if (l.done) {
|
|
15
|
+
r.current = null;
|
|
27
16
|
return;
|
|
28
17
|
}
|
|
29
|
-
|
|
30
|
-
});
|
|
31
|
-
w(() => {
|
|
32
|
-
n.current && r();
|
|
18
|
+
n.current === l.value ? a.current() : o(l.value);
|
|
33
19
|
});
|
|
34
|
-
|
|
35
|
-
n.current =
|
|
20
|
+
_(() => {
|
|
21
|
+
n.current = t, r.current && a.current();
|
|
36
22
|
});
|
|
23
|
+
let i = k((l) => {
|
|
24
|
+
r.current = l(n.current), a.current();
|
|
25
|
+
}, [
|
|
26
|
+
a
|
|
27
|
+
]);
|
|
37
28
|
return [
|
|
38
29
|
t,
|
|
39
|
-
|
|
30
|
+
i
|
|
40
31
|
];
|
|
41
32
|
}
|
|
42
|
-
const
|
|
33
|
+
const le = {
|
|
43
34
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
44
35
|
current: 0
|
|
45
|
-
},
|
|
46
|
-
let
|
|
47
|
-
function
|
|
48
|
-
let t =
|
|
36
|
+
}, Ze = /* @__PURE__ */ h.createContext(le), Wt = /* @__PURE__ */ h.createContext(!1);
|
|
37
|
+
let Vt = !!(typeof window < "u" && window.document && window.document.createElement), be = /* @__PURE__ */ new WeakMap();
|
|
38
|
+
function zt(e = !1) {
|
|
39
|
+
let t = q(Ze), o = $(null);
|
|
49
40
|
if (o.current === null && !e) {
|
|
50
41
|
var n, r;
|
|
51
|
-
let
|
|
52
|
-
if (
|
|
53
|
-
let
|
|
54
|
-
|
|
42
|
+
let a = (r = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || r === void 0 || (n = r.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
|
|
43
|
+
if (a) {
|
|
44
|
+
let i = be.get(a);
|
|
45
|
+
i == null ? be.set(a, {
|
|
55
46
|
id: t.current,
|
|
56
|
-
state:
|
|
57
|
-
}) :
|
|
47
|
+
state: a.memoizedState
|
|
48
|
+
}) : a.memoizedState !== i.state && (t.current = i.id, be.delete(a));
|
|
58
49
|
}
|
|
59
50
|
o.current = ++t.current;
|
|
60
51
|
}
|
|
61
52
|
return o.current;
|
|
62
53
|
}
|
|
63
|
-
function
|
|
64
|
-
let t =
|
|
65
|
-
t ===
|
|
66
|
-
let o =
|
|
54
|
+
function Kt(e) {
|
|
55
|
+
let t = q(Ze);
|
|
56
|
+
t === le && !Vt && 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.");
|
|
57
|
+
let o = zt(!!e), n = t === le && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
|
|
67
58
|
return e || `${n}-${o}`;
|
|
68
59
|
}
|
|
69
|
-
function
|
|
70
|
-
let t =
|
|
60
|
+
function qt(e) {
|
|
61
|
+
let t = h.useId(), [o] = te(et()), n = o || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${le.prefix}`;
|
|
71
62
|
return e || `${n}-${t}`;
|
|
72
63
|
}
|
|
73
|
-
const
|
|
74
|
-
function
|
|
64
|
+
const Ht = typeof h.useId == "function" ? qt : Kt;
|
|
65
|
+
function jt() {
|
|
75
66
|
return !1;
|
|
76
67
|
}
|
|
77
|
-
function
|
|
68
|
+
function Ut() {
|
|
78
69
|
return !0;
|
|
79
70
|
}
|
|
80
|
-
function
|
|
71
|
+
function Gt(e) {
|
|
81
72
|
return () => {
|
|
82
73
|
};
|
|
83
74
|
}
|
|
84
|
-
function
|
|
85
|
-
return typeof
|
|
86
|
-
}
|
|
87
|
-
let
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
75
|
+
function et() {
|
|
76
|
+
return typeof h.useSyncExternalStore == "function" ? h.useSyncExternalStore(Gt, jt, Ut) : q(Wt);
|
|
77
|
+
}
|
|
78
|
+
let Jt = !!(typeof window < "u" && window.document && window.document.createElement), K = /* @__PURE__ */ new Map(), G;
|
|
79
|
+
typeof FinalizationRegistry < "u" && (G = new FinalizationRegistry((e) => {
|
|
80
|
+
K.delete(e);
|
|
81
|
+
}));
|
|
82
|
+
function tt(e) {
|
|
83
|
+
let [t, o] = te(e), n = $(null), r = Ht(t), a = $(null);
|
|
84
|
+
if (G && G.register(a, r), Jt) {
|
|
85
|
+
const i = K.get(r);
|
|
86
|
+
i && !i.includes(n) ? i.push(n) : K.set(r, [
|
|
87
|
+
n
|
|
88
|
+
]);
|
|
89
|
+
}
|
|
90
|
+
return _(() => {
|
|
91
|
+
let i = r;
|
|
99
92
|
return () => {
|
|
100
|
-
|
|
93
|
+
G && G.unregister(a), K.delete(i);
|
|
101
94
|
};
|
|
102
95
|
}, [
|
|
103
96
|
r
|
|
104
|
-
]),
|
|
105
|
-
let
|
|
106
|
-
|
|
97
|
+
]), S(() => {
|
|
98
|
+
let i = n.current;
|
|
99
|
+
return i && o(i), () => {
|
|
100
|
+
i && (n.current = null);
|
|
101
|
+
};
|
|
107
102
|
}), r;
|
|
108
103
|
}
|
|
109
|
-
function
|
|
104
|
+
function Xt(e, t) {
|
|
110
105
|
if (e === t) return e;
|
|
111
|
-
let o =
|
|
106
|
+
let o = K.get(e);
|
|
112
107
|
if (o)
|
|
113
|
-
return o.forEach((r) => r
|
|
114
|
-
let n =
|
|
115
|
-
return n ? (n.forEach((r) => r
|
|
108
|
+
return o.forEach((r) => r.current = t), t;
|
|
109
|
+
let n = K.get(t);
|
|
110
|
+
return n ? (n.forEach((r) => r.current = e), e) : t;
|
|
116
111
|
}
|
|
117
|
-
function
|
|
118
|
-
let t =
|
|
112
|
+
function Yt(e = []) {
|
|
113
|
+
let t = tt(), [o, n] = It(t), r = k(() => {
|
|
119
114
|
n(function* () {
|
|
120
115
|
yield t, yield document.getElementById(t) ? t : void 0;
|
|
121
116
|
});
|
|
@@ -123,13 +118,13 @@ function Ft(e = []) {
|
|
|
123
118
|
t,
|
|
124
119
|
n
|
|
125
120
|
]);
|
|
126
|
-
return
|
|
121
|
+
return _(r, [
|
|
127
122
|
t,
|
|
128
123
|
r,
|
|
129
124
|
...e
|
|
130
125
|
]), o;
|
|
131
126
|
}
|
|
132
|
-
function
|
|
127
|
+
function se(...e) {
|
|
133
128
|
return (...t) => {
|
|
134
129
|
for (let o of e) typeof o == "function" && o(...t);
|
|
135
130
|
};
|
|
@@ -137,44 +132,221 @@ function Q(...e) {
|
|
|
137
132
|
const E = (e) => {
|
|
138
133
|
var t;
|
|
139
134
|
return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
140
|
-
},
|
|
141
|
-
function
|
|
135
|
+
}, Q = (e) => e && "window" in e && e.window === e ? e : E(e).defaultView || window;
|
|
136
|
+
function Qt(e) {
|
|
137
|
+
return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
|
|
138
|
+
}
|
|
139
|
+
function Zt(e) {
|
|
140
|
+
return Qt(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
|
|
141
|
+
}
|
|
142
|
+
let eo = !1;
|
|
143
|
+
function ce() {
|
|
144
|
+
return eo;
|
|
145
|
+
}
|
|
146
|
+
function C(e, t) {
|
|
147
|
+
if (!ce()) return t && e ? e.contains(t) : !1;
|
|
148
|
+
if (!e || !t) return !1;
|
|
149
|
+
let o = t;
|
|
150
|
+
for (; o !== null; ) {
|
|
151
|
+
if (o === e) return !0;
|
|
152
|
+
o.tagName === "SLOT" && o.assignedSlot ? o = o.assignedSlot.parentNode : Zt(o) ? o = o.host : o = o.parentNode;
|
|
153
|
+
}
|
|
154
|
+
return !1;
|
|
155
|
+
}
|
|
156
|
+
const y = (e = document) => {
|
|
157
|
+
var t;
|
|
158
|
+
if (!ce()) return e.activeElement;
|
|
159
|
+
let o = e.activeElement;
|
|
160
|
+
for (; o && "shadowRoot" in o && (!((t = o.shadowRoot) === null || t === void 0) && t.activeElement); ) o = o.shadowRoot.activeElement;
|
|
161
|
+
return o;
|
|
162
|
+
};
|
|
163
|
+
function M(e) {
|
|
164
|
+
if (ce() && e.target instanceof Element && e.target.shadowRoot) {
|
|
165
|
+
var t, o;
|
|
166
|
+
if ("composedPath" in e) return (t = e.composedPath()[0]) !== null && t !== void 0 ? t : null;
|
|
167
|
+
if ("composedPath" in e.nativeEvent) return (o = e.nativeEvent.composedPath()[0]) !== null && o !== void 0 ? o : null;
|
|
168
|
+
}
|
|
169
|
+
return e.target;
|
|
170
|
+
}
|
|
171
|
+
class to {
|
|
172
|
+
get currentNode() {
|
|
173
|
+
return this._currentNode;
|
|
174
|
+
}
|
|
175
|
+
set currentNode(t) {
|
|
176
|
+
if (!C(this.root, t)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
|
|
177
|
+
const o = [];
|
|
178
|
+
let n = t, r = t;
|
|
179
|
+
for (this._currentNode = t; n && n !== this.root; ) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
180
|
+
const i = n, l = this._doc.createTreeWalker(i, this.whatToShow, {
|
|
181
|
+
acceptNode: this._acceptNode
|
|
182
|
+
});
|
|
183
|
+
o.push(l), l.currentNode = r, this._currentSetFor.add(l), n = r = i.host;
|
|
184
|
+
} else n = n.parentNode;
|
|
185
|
+
const a = this._doc.createTreeWalker(this.root, this.whatToShow, {
|
|
186
|
+
acceptNode: this._acceptNode
|
|
187
|
+
});
|
|
188
|
+
o.push(a), a.currentNode = r, this._currentSetFor.add(a), this._walkerStack = o;
|
|
189
|
+
}
|
|
190
|
+
get doc() {
|
|
191
|
+
return this._doc;
|
|
192
|
+
}
|
|
193
|
+
firstChild() {
|
|
194
|
+
let t = this.currentNode, o = this.nextNode();
|
|
195
|
+
return C(t, o) ? (o && (this.currentNode = o), o) : (this.currentNode = t, null);
|
|
196
|
+
}
|
|
197
|
+
lastChild() {
|
|
198
|
+
let o = this._walkerStack[0].lastChild();
|
|
199
|
+
return o && (this.currentNode = o), o;
|
|
200
|
+
}
|
|
201
|
+
nextNode() {
|
|
202
|
+
const t = this._walkerStack[0].nextNode();
|
|
203
|
+
if (t) {
|
|
204
|
+
if (t.shadowRoot) {
|
|
205
|
+
var o;
|
|
206
|
+
let r;
|
|
207
|
+
if (typeof this.filter == "function" ? r = this.filter(t) : !((o = this.filter) === null || o === void 0) && o.acceptNode && (r = this.filter.acceptNode(t)), r === NodeFilter.FILTER_ACCEPT)
|
|
208
|
+
return this.currentNode = t, t;
|
|
209
|
+
let a = this.nextNode();
|
|
210
|
+
return a && (this.currentNode = a), a;
|
|
211
|
+
}
|
|
212
|
+
return t && (this.currentNode = t), t;
|
|
213
|
+
} else if (this._walkerStack.length > 1) {
|
|
214
|
+
this._walkerStack.shift();
|
|
215
|
+
let n = this.nextNode();
|
|
216
|
+
return n && (this.currentNode = n), n;
|
|
217
|
+
} else return null;
|
|
218
|
+
}
|
|
219
|
+
previousNode() {
|
|
220
|
+
const t = this._walkerStack[0];
|
|
221
|
+
if (t.currentNode === t.root) {
|
|
222
|
+
if (this._currentSetFor.has(t))
|
|
223
|
+
if (this._currentSetFor.delete(t), this._walkerStack.length > 1) {
|
|
224
|
+
this._walkerStack.shift();
|
|
225
|
+
let r = this.previousNode();
|
|
226
|
+
return r && (this.currentNode = r), r;
|
|
227
|
+
} else return null;
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
const o = t.previousNode();
|
|
231
|
+
if (o) {
|
|
232
|
+
if (o.shadowRoot) {
|
|
233
|
+
var n;
|
|
234
|
+
let a;
|
|
235
|
+
if (typeof this.filter == "function" ? a = this.filter(o) : !((n = this.filter) === null || n === void 0) && n.acceptNode && (a = this.filter.acceptNode(o)), a === NodeFilter.FILTER_ACCEPT)
|
|
236
|
+
return o && (this.currentNode = o), o;
|
|
237
|
+
let i = this.lastChild();
|
|
238
|
+
return i && (this.currentNode = i), i;
|
|
239
|
+
}
|
|
240
|
+
return o && (this.currentNode = o), o;
|
|
241
|
+
} else if (this._walkerStack.length > 1) {
|
|
242
|
+
this._walkerStack.shift();
|
|
243
|
+
let r = this.previousNode();
|
|
244
|
+
return r && (this.currentNode = r), r;
|
|
245
|
+
} else return null;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated
|
|
249
|
+
*/
|
|
250
|
+
nextSibling() {
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* @deprecated
|
|
255
|
+
*/
|
|
256
|
+
previousSibling() {
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* @deprecated
|
|
261
|
+
*/
|
|
262
|
+
parentNode() {
|
|
263
|
+
return null;
|
|
264
|
+
}
|
|
265
|
+
constructor(t, o, n, r) {
|
|
266
|
+
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (i) => {
|
|
267
|
+
if (i.nodeType === Node.ELEMENT_NODE) {
|
|
268
|
+
const s = i.shadowRoot;
|
|
269
|
+
if (s) {
|
|
270
|
+
const d = this._doc.createTreeWalker(s, this.whatToShow, {
|
|
271
|
+
acceptNode: this._acceptNode
|
|
272
|
+
});
|
|
273
|
+
return this._walkerStack.unshift(d), NodeFilter.FILTER_ACCEPT;
|
|
274
|
+
} else {
|
|
275
|
+
var l;
|
|
276
|
+
if (typeof this.filter == "function") return this.filter(i);
|
|
277
|
+
if (!((l = this.filter) === null || l === void 0) && l.acceptNode) return this.filter.acceptNode(i);
|
|
278
|
+
if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return NodeFilter.FILTER_SKIP;
|
|
282
|
+
}, this._doc = t, this.root = o, this.filter = r ?? null, this.whatToShow = n ?? NodeFilter.SHOW_ALL, this._currentNode = o, this._walkerStack.unshift(t.createTreeWalker(o, n, this._acceptNode));
|
|
283
|
+
const a = o.shadowRoot;
|
|
284
|
+
if (a) {
|
|
285
|
+
const i = this._doc.createTreeWalker(a, this.whatToShow, {
|
|
286
|
+
acceptNode: this._acceptNode
|
|
287
|
+
});
|
|
288
|
+
this._walkerStack.unshift(i);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
function oo(e, t, o, n) {
|
|
293
|
+
return ce() ? new to(e, t, o, n) : e.createTreeWalker(t, o, n);
|
|
294
|
+
}
|
|
295
|
+
function no(...e) {
|
|
296
|
+
return e.length === 1 && e[0] ? e[0] : (t) => {
|
|
297
|
+
let o = !1;
|
|
298
|
+
const n = e.map((r) => {
|
|
299
|
+
const a = De(r, t);
|
|
300
|
+
return o || (o = typeof a == "function"), a;
|
|
301
|
+
});
|
|
302
|
+
if (o) return () => {
|
|
303
|
+
n.forEach((r, a) => {
|
|
304
|
+
typeof r == "function" ? r() : De(e[a], null);
|
|
305
|
+
});
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
function De(e, t) {
|
|
310
|
+
if (typeof e == "function") return e(t);
|
|
311
|
+
e != null && (e.current = t);
|
|
312
|
+
}
|
|
313
|
+
function ot(e) {
|
|
142
314
|
var t, o, n = "";
|
|
143
315
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
144
316
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
145
317
|
var r = e.length;
|
|
146
|
-
for (t = 0; t < r; t++) e[t] && (o =
|
|
318
|
+
for (t = 0; t < r; t++) e[t] && (o = ot(e[t])) && (n && (n += " "), n += o);
|
|
147
319
|
} else for (o in e) e[o] && (n && (n += " "), n += o);
|
|
148
320
|
return n;
|
|
149
321
|
}
|
|
150
|
-
function
|
|
151
|
-
for (var e, t, o = 0, n = "", r = arguments.length; o < r; o++) (e = arguments[o]) && (t =
|
|
322
|
+
function ro() {
|
|
323
|
+
for (var e, t, o = 0, n = "", r = arguments.length; o < r; o++) (e = arguments[o]) && (t = ot(e)) && (n && (n += " "), n += t);
|
|
152
324
|
return n;
|
|
153
325
|
}
|
|
154
|
-
function
|
|
326
|
+
function ao(...e) {
|
|
155
327
|
let t = {
|
|
156
328
|
...e[0]
|
|
157
329
|
};
|
|
158
330
|
for (let o = 1; o < e.length; o++) {
|
|
159
331
|
let n = e[o];
|
|
160
332
|
for (let r in n) {
|
|
161
|
-
let
|
|
162
|
-
typeof
|
|
333
|
+
let a = t[r], i = n[r];
|
|
334
|
+
typeof a == "function" && typeof i == "function" && // This is a lot faster than a regex.
|
|
163
335
|
r[0] === "o" && r[1] === "n" && r.charCodeAt(2) >= /* 'A' */
|
|
164
336
|
65 && r.charCodeAt(2) <= /* 'Z' */
|
|
165
|
-
90 ? t[r] =
|
|
337
|
+
90 ? t[r] = se(a, i) : (r === "className" || r === "UNSAFE_className") && typeof a == "string" && typeof i == "string" ? t[r] = ro(a, i) : r === "id" && a && i ? t.id = Xt(a, i) : r === "ref" && a && i ? t.ref = no(a, i) : t[r] = i !== void 0 ? i : a;
|
|
166
338
|
}
|
|
167
339
|
}
|
|
168
340
|
return t;
|
|
169
341
|
}
|
|
170
|
-
const
|
|
342
|
+
const io = /* @__PURE__ */ new Set([
|
|
171
343
|
"id"
|
|
172
|
-
]),
|
|
344
|
+
]), lo = /* @__PURE__ */ new Set([
|
|
173
345
|
"aria-label",
|
|
174
346
|
"aria-labelledby",
|
|
175
347
|
"aria-describedby",
|
|
176
348
|
"aria-details"
|
|
177
|
-
]),
|
|
349
|
+
]), so = /* @__PURE__ */ new Set([
|
|
178
350
|
"href",
|
|
179
351
|
"hrefLang",
|
|
180
352
|
"target",
|
|
@@ -182,37 +354,78 @@ const Nt = /* @__PURE__ */ new Set([
|
|
|
182
354
|
"download",
|
|
183
355
|
"ping",
|
|
184
356
|
"referrerPolicy"
|
|
185
|
-
]),
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
357
|
+
]), uo = /* @__PURE__ */ new Set([
|
|
358
|
+
"dir",
|
|
359
|
+
"lang",
|
|
360
|
+
"hidden",
|
|
361
|
+
"inert",
|
|
362
|
+
"translate"
|
|
363
|
+
]), Re = /* @__PURE__ */ new Set([
|
|
364
|
+
"onClick",
|
|
365
|
+
"onAuxClick",
|
|
366
|
+
"onContextMenu",
|
|
367
|
+
"onDoubleClick",
|
|
368
|
+
"onMouseDown",
|
|
369
|
+
"onMouseEnter",
|
|
370
|
+
"onMouseLeave",
|
|
371
|
+
"onMouseMove",
|
|
372
|
+
"onMouseOut",
|
|
373
|
+
"onMouseOver",
|
|
374
|
+
"onMouseUp",
|
|
375
|
+
"onTouchCancel",
|
|
376
|
+
"onTouchEnd",
|
|
377
|
+
"onTouchMove",
|
|
378
|
+
"onTouchStart",
|
|
379
|
+
"onPointerDown",
|
|
380
|
+
"onPointerMove",
|
|
381
|
+
"onPointerUp",
|
|
382
|
+
"onPointerCancel",
|
|
383
|
+
"onPointerEnter",
|
|
384
|
+
"onPointerLeave",
|
|
385
|
+
"onPointerOver",
|
|
386
|
+
"onPointerOut",
|
|
387
|
+
"onGotPointerCapture",
|
|
388
|
+
"onLostPointerCapture",
|
|
389
|
+
"onScroll",
|
|
390
|
+
"onWheel",
|
|
391
|
+
"onAnimationStart",
|
|
392
|
+
"onAnimationEnd",
|
|
393
|
+
"onAnimationIteration",
|
|
394
|
+
"onTransitionCancel",
|
|
395
|
+
"onTransitionEnd",
|
|
396
|
+
"onTransitionRun",
|
|
397
|
+
"onTransitionStart"
|
|
398
|
+
]), co = /^(data-.*)$/;
|
|
399
|
+
function fo(e, t = {}) {
|
|
400
|
+
let { labelable: o, isLink: n, global: r, events: a = r, propNames: i } = t, l = {};
|
|
401
|
+
for (const s in e) Object.prototype.hasOwnProperty.call(e, s) && (io.has(s) || o && lo.has(s) || n && so.has(s) || r && uo.has(s) || a && (Re.has(s) || s.endsWith("Capture") && Re.has(s.slice(0, -7))) || i?.has(s) || co.test(s)) && (l[s] = e[s]);
|
|
189
402
|
return l;
|
|
190
403
|
}
|
|
191
|
-
function
|
|
192
|
-
if (
|
|
404
|
+
function Ee(e) {
|
|
405
|
+
if (mo()) e.focus({
|
|
193
406
|
preventScroll: !0
|
|
194
407
|
});
|
|
195
408
|
else {
|
|
196
|
-
let t =
|
|
197
|
-
e.focus(),
|
|
409
|
+
let t = po(e);
|
|
410
|
+
e.focus(), bo(t);
|
|
198
411
|
}
|
|
199
412
|
}
|
|
200
|
-
let
|
|
201
|
-
function
|
|
202
|
-
if (
|
|
203
|
-
|
|
413
|
+
let re = null;
|
|
414
|
+
function mo() {
|
|
415
|
+
if (re == null) {
|
|
416
|
+
re = !1;
|
|
204
417
|
try {
|
|
205
418
|
document.createElement("div").focus({
|
|
206
419
|
get preventScroll() {
|
|
207
|
-
return
|
|
420
|
+
return re = !0, !0;
|
|
208
421
|
}
|
|
209
422
|
});
|
|
210
423
|
} catch {
|
|
211
424
|
}
|
|
212
425
|
}
|
|
213
|
-
return
|
|
426
|
+
return re;
|
|
214
427
|
}
|
|
215
|
-
function
|
|
428
|
+
function po(e) {
|
|
216
429
|
let t = e.parentNode, o = [], n = document.scrollingElement || document.documentElement;
|
|
217
430
|
for (; t instanceof HTMLElement && t !== n; )
|
|
218
431
|
(t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && o.push({
|
|
@@ -226,165 +439,283 @@ function zt(e) {
|
|
|
226
439
|
scrollLeft: n.scrollLeft
|
|
227
440
|
}), o;
|
|
228
441
|
}
|
|
229
|
-
function
|
|
442
|
+
function bo(e) {
|
|
230
443
|
for (let { element: t, scrollTop: o, scrollLeft: n } of e)
|
|
231
444
|
t.scrollTop = o, t.scrollLeft = n;
|
|
232
445
|
}
|
|
233
|
-
function
|
|
446
|
+
function fe(e) {
|
|
234
447
|
var t;
|
|
235
|
-
|
|
448
|
+
if (typeof window > "u" || window.navigator == null) return !1;
|
|
449
|
+
let o = (t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands;
|
|
450
|
+
return Array.isArray(o) && o.some((n) => e.test(n.brand)) || e.test(window.navigator.userAgent);
|
|
236
451
|
}
|
|
237
|
-
function
|
|
452
|
+
function Te(e) {
|
|
238
453
|
var t;
|
|
239
454
|
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;
|
|
240
455
|
}
|
|
241
|
-
function
|
|
456
|
+
function O(e) {
|
|
457
|
+
if (process.env.NODE_ENV === "test") return e;
|
|
242
458
|
let t = null;
|
|
243
459
|
return () => (t == null && (t = e()), t);
|
|
244
460
|
}
|
|
245
|
-
const
|
|
246
|
-
return
|
|
247
|
-
}),
|
|
248
|
-
return
|
|
249
|
-
}),
|
|
250
|
-
return
|
|
251
|
-
|
|
252
|
-
}),
|
|
253
|
-
return
|
|
254
|
-
})
|
|
255
|
-
|
|
461
|
+
const Z = O(function() {
|
|
462
|
+
return Te(/^Mac/i);
|
|
463
|
+
}), go = O(function() {
|
|
464
|
+
return Te(/^iPhone/i);
|
|
465
|
+
}), nt = O(function() {
|
|
466
|
+
return Te(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
467
|
+
Z() && navigator.maxTouchPoints > 1;
|
|
468
|
+
}), rt = O(function() {
|
|
469
|
+
return go() || nt();
|
|
470
|
+
});
|
|
471
|
+
O(function() {
|
|
472
|
+
return Z() || rt();
|
|
473
|
+
});
|
|
474
|
+
const vo = O(function() {
|
|
475
|
+
return fe(/AppleWebKit/i) && !at();
|
|
476
|
+
}), at = O(function() {
|
|
477
|
+
return fe(/Chrome/i);
|
|
478
|
+
}), it = O(function() {
|
|
479
|
+
return fe(/Android/i);
|
|
480
|
+
}), ho = O(function() {
|
|
481
|
+
return fe(/Firefox/i);
|
|
256
482
|
});
|
|
257
|
-
|
|
258
|
-
|
|
483
|
+
function ee(e, t, o = !0) {
|
|
484
|
+
var n, r;
|
|
485
|
+
let { metaKey: a, ctrlKey: i, altKey: l, shiftKey: s } = t;
|
|
486
|
+
ho() && (!((r = window.event) === null || r === void 0 || (n = r.type) === null || n === void 0) && n.startsWith("key")) && e.target === "_blank" && (Z() ? a = !0 : i = !0);
|
|
487
|
+
let d = vo() && Z() && !nt() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
488
|
+
keyIdentifier: "Enter",
|
|
489
|
+
metaKey: a,
|
|
490
|
+
ctrlKey: i,
|
|
491
|
+
altKey: l,
|
|
492
|
+
shiftKey: s
|
|
493
|
+
}) : new MouseEvent("click", {
|
|
494
|
+
metaKey: a,
|
|
495
|
+
ctrlKey: i,
|
|
496
|
+
altKey: l,
|
|
497
|
+
shiftKey: s,
|
|
498
|
+
detail: 1,
|
|
499
|
+
bubbles: !0,
|
|
500
|
+
cancelable: !0
|
|
501
|
+
});
|
|
502
|
+
ee.isOpening = o, Ee(e), e.dispatchEvent(d), ee.isOpening = !1;
|
|
503
|
+
}
|
|
504
|
+
ee.isOpening = !1;
|
|
505
|
+
let D = /* @__PURE__ */ new Map(), _e = /* @__PURE__ */ new Set();
|
|
506
|
+
function Ae() {
|
|
259
507
|
if (typeof window > "u") return;
|
|
260
508
|
function e(n) {
|
|
261
509
|
return "propertyName" in n;
|
|
262
510
|
}
|
|
263
511
|
let t = (n) => {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
512
|
+
let r = M(n);
|
|
513
|
+
if (!e(n) || !r) return;
|
|
514
|
+
let a = D.get(r);
|
|
515
|
+
a || (a = /* @__PURE__ */ new Set(), D.set(r, a), r.addEventListener("transitioncancel", o, {
|
|
267
516
|
once: !0
|
|
268
|
-
})),
|
|
517
|
+
})), a.add(n.propertyName);
|
|
269
518
|
}, o = (n) => {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
519
|
+
let r = M(n);
|
|
520
|
+
if (!e(n) || !r) return;
|
|
521
|
+
let a = D.get(r);
|
|
522
|
+
if (a && (a.delete(n.propertyName), a.size === 0 && (r.removeEventListener("transitioncancel", o), D.delete(r)), D.size === 0)) {
|
|
523
|
+
for (let i of _e) i();
|
|
524
|
+
_e.clear();
|
|
275
525
|
}
|
|
276
526
|
};
|
|
277
527
|
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", o);
|
|
278
528
|
}
|
|
279
|
-
typeof document < "u" && (document.readyState !== "loading" ?
|
|
280
|
-
function
|
|
529
|
+
typeof document < "u" && (document.readyState !== "loading" ? Ae() : document.addEventListener("DOMContentLoaded", Ae));
|
|
530
|
+
function $o() {
|
|
531
|
+
for (const [e] of D)
|
|
532
|
+
"isConnected" in e && !e.isConnected && D.delete(e);
|
|
533
|
+
}
|
|
534
|
+
function wo(e) {
|
|
281
535
|
requestAnimationFrame(() => {
|
|
282
|
-
D.size === 0 ? e() :
|
|
536
|
+
$o(), D.size === 0 ? e() : _e.add(e);
|
|
283
537
|
});
|
|
284
538
|
}
|
|
285
|
-
function
|
|
286
|
-
let
|
|
287
|
-
|
|
539
|
+
function Eo() {
|
|
540
|
+
let e = $(/* @__PURE__ */ new Map()), t = k((r, a, i, l) => {
|
|
541
|
+
let s = l?.once ? (...d) => {
|
|
542
|
+
e.current.delete(i), i(...d);
|
|
543
|
+
} : i;
|
|
544
|
+
e.current.set(i, {
|
|
545
|
+
type: a,
|
|
546
|
+
eventTarget: r,
|
|
547
|
+
fn: s,
|
|
548
|
+
options: l
|
|
549
|
+
}), r.addEventListener(a, s, l);
|
|
550
|
+
}, []), o = k((r, a, i, l) => {
|
|
551
|
+
var s;
|
|
552
|
+
let d = ((s = e.current.get(i)) === null || s === void 0 ? void 0 : s.fn) || i;
|
|
553
|
+
r.removeEventListener(a, d, l), e.current.delete(i);
|
|
554
|
+
}, []), n = k(() => {
|
|
555
|
+
e.current.forEach((r, a) => {
|
|
556
|
+
o(r.eventTarget, r.type, a, r.options);
|
|
557
|
+
});
|
|
558
|
+
}, [
|
|
559
|
+
o
|
|
560
|
+
]);
|
|
561
|
+
return S(() => n, [
|
|
562
|
+
n
|
|
563
|
+
]), {
|
|
564
|
+
addGlobalListener: t,
|
|
565
|
+
removeGlobalListener: o,
|
|
566
|
+
removeAllGlobalListeners: n
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
var ge;
|
|
570
|
+
const _o = (ge = h.useInsertionEffect) !== null && ge !== void 0 ? ge : _;
|
|
571
|
+
function Ie(e) {
|
|
572
|
+
const t = $(null);
|
|
573
|
+
return _o(() => {
|
|
574
|
+
t.current = e;
|
|
575
|
+
}, [
|
|
576
|
+
e
|
|
577
|
+
]), k((...o) => {
|
|
578
|
+
const n = t.current;
|
|
579
|
+
return n?.(...o);
|
|
580
|
+
}, []);
|
|
288
581
|
}
|
|
289
|
-
function
|
|
582
|
+
function We(e, t) {
|
|
583
|
+
if (!e) return !1;
|
|
584
|
+
let o = window.getComputedStyle(e), n = document.scrollingElement || document.documentElement, r = /(auto|scroll)/.test(o.overflow + o.overflowX + o.overflowY);
|
|
585
|
+
return e === n && o.overflow !== "hidden" && (r = !0), r && t && (r = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), r;
|
|
586
|
+
}
|
|
587
|
+
function lt(e, t) {
|
|
290
588
|
let o = e;
|
|
291
|
-
for (
|
|
589
|
+
for (We(o, t) && (o = o.parentElement); o && !We(o, t); ) o = o.parentElement;
|
|
292
590
|
return o || document.scrollingElement || document.documentElement;
|
|
293
591
|
}
|
|
294
|
-
function
|
|
295
|
-
return e.
|
|
592
|
+
function Mo(e) {
|
|
593
|
+
return e.pointerType === "" && e.isTrusted ? !0 : it() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
296
594
|
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
595
|
+
const yo = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
596
|
+
function ko(e) {
|
|
597
|
+
const t = Q(e);
|
|
598
|
+
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
599
|
+
let { display: o, visibility: n } = e.style, r = o !== "none" && n !== "hidden" && n !== "collapse";
|
|
600
|
+
if (r) {
|
|
601
|
+
const { getComputedStyle: a } = e.ownerDocument.defaultView;
|
|
602
|
+
let { display: i, visibility: l } = a(e);
|
|
603
|
+
r = i !== "none" && l !== "hidden" && l !== "collapse";
|
|
604
|
+
}
|
|
605
|
+
return r;
|
|
606
|
+
}
|
|
607
|
+
function Po(e, t) {
|
|
608
|
+
return !e.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
|
|
609
|
+
!e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
|
|
610
|
+
}
|
|
611
|
+
function xe(e, t) {
|
|
612
|
+
return yo ? e.checkVisibility({
|
|
613
|
+
visibilityProperty: !0
|
|
614
|
+
}) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && ko(e) && Po(e, t) && (!e.parentElement || xe(e.parentElement, e));
|
|
615
|
+
}
|
|
616
|
+
const Se = [
|
|
617
|
+
"input:not([disabled]):not([type=hidden])",
|
|
618
|
+
"select:not([disabled])",
|
|
619
|
+
"textarea:not([disabled])",
|
|
620
|
+
"button:not([disabled])",
|
|
621
|
+
"a[href]",
|
|
622
|
+
"area[href]",
|
|
623
|
+
"summary",
|
|
624
|
+
"iframe",
|
|
625
|
+
"object",
|
|
626
|
+
"embed",
|
|
627
|
+
"audio[controls]",
|
|
628
|
+
"video[controls]",
|
|
629
|
+
'[contenteditable]:not([contenteditable^="false"])',
|
|
630
|
+
"permission"
|
|
631
|
+
], No = Se.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
632
|
+
Se.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
633
|
+
const To = Se.join(':not([hidden]):not([tabindex="-1"]),');
|
|
634
|
+
function xo(e) {
|
|
635
|
+
return e.matches(No) && xe(e) && !st(e);
|
|
636
|
+
}
|
|
637
|
+
function So(e) {
|
|
638
|
+
return e.matches(To) && xe(e) && !st(e);
|
|
639
|
+
}
|
|
640
|
+
function st(e) {
|
|
641
|
+
let t = e;
|
|
642
|
+
for (; t != null; ) {
|
|
643
|
+
if (t instanceof t.ownerDocument.defaultView.HTMLElement && t.inert) return !0;
|
|
644
|
+
t = t.parentElement;
|
|
645
|
+
}
|
|
646
|
+
return !1;
|
|
647
|
+
}
|
|
648
|
+
var ve;
|
|
649
|
+
const Lo = typeof document < "u" ? (ve = h.useInsertionEffect) !== null && ve !== void 0 ? ve : h.useLayoutEffect : () => {
|
|
650
|
+
};
|
|
651
|
+
function Fo(e, t, o) {
|
|
652
|
+
let [n, r] = te(e || t), a = $(n), i = $(e !== void 0), l = e !== void 0;
|
|
653
|
+
S(() => {
|
|
654
|
+
let c = i.current;
|
|
655
|
+
c !== l && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${c ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}.`), i.current = l;
|
|
302
656
|
}, [
|
|
303
|
-
|
|
657
|
+
l
|
|
304
658
|
]);
|
|
305
|
-
let
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
})) : (a || r(i), m(i, ...s));
|
|
659
|
+
let s = l ? e : n;
|
|
660
|
+
Lo(() => {
|
|
661
|
+
a.current = s;
|
|
662
|
+
});
|
|
663
|
+
let [, d] = Ot(() => ({}), {}), u = k((c, ...m) => {
|
|
664
|
+
let b = typeof c == "function" ? c(a.current) : c;
|
|
665
|
+
Object.is(a.current, b) || (a.current = b, r(b), d(), o?.(b, ...m));
|
|
313
666
|
}, [
|
|
314
|
-
a,
|
|
315
|
-
d,
|
|
316
667
|
o
|
|
317
668
|
]);
|
|
318
669
|
return [
|
|
319
|
-
|
|
320
|
-
|
|
670
|
+
s,
|
|
671
|
+
u
|
|
321
672
|
];
|
|
322
673
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
327
|
-
He.displayName = "PressResponderContext";
|
|
328
|
-
function Jt({ children: e }) {
|
|
329
|
-
let t = q(() => ({
|
|
330
|
-
register: () => {
|
|
331
|
-
}
|
|
332
|
-
}), []);
|
|
333
|
-
return /* @__PURE__ */ $.createElement(He.Provider, {
|
|
334
|
-
value: t
|
|
335
|
-
}, e);
|
|
674
|
+
function dt(e) {
|
|
675
|
+
let t = e;
|
|
676
|
+
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
|
|
677
|
+
}, t;
|
|
336
678
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
stopPropagation() {
|
|
345
|
-
this.nativeEvent.stopPropagation(), this.isPropagationStopped = () => !0;
|
|
346
|
-
}
|
|
347
|
-
isPropagationStopped() {
|
|
348
|
-
return !1;
|
|
349
|
-
}
|
|
350
|
-
persist() {
|
|
351
|
-
}
|
|
352
|
-
constructor(t, o) {
|
|
353
|
-
this.nativeEvent = o, this.target = o.target, this.currentTarget = o.currentTarget, this.relatedTarget = o.relatedTarget, this.bubbles = o.bubbles, this.cancelable = o.cancelable, this.defaultPrevented = o.defaultPrevented, this.eventPhase = o.eventPhase, this.isTrusted = o.isTrusted, this.timeStamp = o.timeStamp, this.type = t;
|
|
354
|
-
}
|
|
679
|
+
function Co(e, t) {
|
|
680
|
+
Object.defineProperty(e, "target", {
|
|
681
|
+
value: t
|
|
682
|
+
}), Object.defineProperty(e, "currentTarget", {
|
|
683
|
+
value: t
|
|
684
|
+
});
|
|
355
685
|
}
|
|
356
|
-
function
|
|
357
|
-
let t =
|
|
686
|
+
function Bo(e) {
|
|
687
|
+
let t = $({
|
|
358
688
|
isFocused: !1,
|
|
359
689
|
observer: null
|
|
360
690
|
});
|
|
361
|
-
|
|
362
|
-
const
|
|
691
|
+
return _(() => {
|
|
692
|
+
const o = t.current;
|
|
363
693
|
return () => {
|
|
364
|
-
|
|
694
|
+
o.observer && (o.observer.disconnect(), o.observer = null);
|
|
365
695
|
};
|
|
366
|
-
}, [])
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
});
|
|
370
|
-
return T((n) => {
|
|
371
|
-
if (n.target instanceof HTMLButtonElement || n.target instanceof HTMLInputElement || n.target instanceof HTMLTextAreaElement || n.target instanceof HTMLSelectElement) {
|
|
696
|
+
}, []), k((o) => {
|
|
697
|
+
let n = M(o);
|
|
698
|
+
if (n instanceof HTMLButtonElement || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement || n instanceof HTMLSelectElement) {
|
|
372
699
|
t.current.isFocused = !0;
|
|
373
|
-
let r = n
|
|
374
|
-
t.current.isFocused = !1, r.disabled
|
|
700
|
+
let r = n, a = (i) => {
|
|
701
|
+
if (t.current.isFocused = !1, r.disabled) {
|
|
702
|
+
let l = dt(i);
|
|
703
|
+
e?.(l);
|
|
704
|
+
}
|
|
705
|
+
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
375
706
|
};
|
|
376
|
-
r.addEventListener("focusout",
|
|
707
|
+
r.addEventListener("focusout", a, {
|
|
377
708
|
once: !0
|
|
378
709
|
}), t.current.observer = new MutationObserver(() => {
|
|
379
710
|
if (t.current.isFocused && r.disabled) {
|
|
380
|
-
var
|
|
381
|
-
(
|
|
382
|
-
let
|
|
711
|
+
var i;
|
|
712
|
+
(i = t.current.observer) === null || i === void 0 || i.disconnect();
|
|
713
|
+
let l = r === y() ? null : y();
|
|
383
714
|
r.dispatchEvent(new FocusEvent("blur", {
|
|
384
|
-
relatedTarget:
|
|
715
|
+
relatedTarget: l
|
|
385
716
|
})), r.dispatchEvent(new FocusEvent("focusout", {
|
|
386
717
|
bubbles: !0,
|
|
387
|
-
relatedTarget:
|
|
718
|
+
relatedTarget: l
|
|
388
719
|
}));
|
|
389
720
|
}
|
|
390
721
|
}), t.current.observer.observe(r, {
|
|
@@ -395,367 +726,394 @@ function Qt(e) {
|
|
|
395
726
|
});
|
|
396
727
|
}
|
|
397
728
|
}, [
|
|
398
|
-
|
|
729
|
+
e
|
|
399
730
|
]);
|
|
400
731
|
}
|
|
401
|
-
let
|
|
402
|
-
|
|
403
|
-
|
|
732
|
+
let Oo = !1;
|
|
733
|
+
const ut = h.createContext({
|
|
734
|
+
register: () => {
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
ut.displayName = "PressResponderContext";
|
|
738
|
+
let oe = null;
|
|
739
|
+
const Do = /* @__PURE__ */ new Set();
|
|
740
|
+
let Y = /* @__PURE__ */ new Map(), W = !1, Me = !1;
|
|
741
|
+
function Le(e, t) {
|
|
742
|
+
for (let o of Do) o(e, t);
|
|
404
743
|
}
|
|
405
|
-
function
|
|
406
|
-
return !(e.metaKey || !
|
|
744
|
+
function Ro(e) {
|
|
745
|
+
return !(e.metaKey || !Z() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
407
746
|
}
|
|
408
|
-
function
|
|
409
|
-
|
|
747
|
+
function de(e) {
|
|
748
|
+
W = !0, !ee.isOpening && Ro(e) && (oe = "keyboard", Le("keyboard", e));
|
|
410
749
|
}
|
|
411
|
-
function
|
|
412
|
-
|
|
750
|
+
function T(e) {
|
|
751
|
+
oe = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (W = !0, Le("pointer", e));
|
|
413
752
|
}
|
|
414
|
-
function
|
|
415
|
-
|
|
753
|
+
function ct(e) {
|
|
754
|
+
!ee.isOpening && Mo(e) && (W = !0, oe = "virtual");
|
|
416
755
|
}
|
|
417
|
-
function
|
|
418
|
-
e
|
|
756
|
+
function ft(e) {
|
|
757
|
+
M(e) === window || M(e) === document || Oo || !e.isTrusted || (!W && !Me && (oe = "virtual", Le("virtual", e)), W = !1, Me = !1);
|
|
419
758
|
}
|
|
420
|
-
function
|
|
421
|
-
|
|
759
|
+
function mt() {
|
|
760
|
+
W = !1, Me = !0;
|
|
422
761
|
}
|
|
423
|
-
function
|
|
424
|
-
if (typeof window > "u" ||
|
|
425
|
-
const t =
|
|
762
|
+
function Ve(e) {
|
|
763
|
+
if (typeof window > "u" || typeof document > "u" || Y.get(Q(e))) return;
|
|
764
|
+
const t = Q(e), o = E(e);
|
|
426
765
|
let n = t.HTMLElement.prototype.focus;
|
|
427
766
|
t.HTMLElement.prototype.focus = function() {
|
|
428
|
-
|
|
429
|
-
}, o.addEventListener("keydown",
|
|
430
|
-
|
|
767
|
+
W = !0, n.apply(this, arguments);
|
|
768
|
+
}, o.addEventListener("keydown", de, !0), o.addEventListener("keyup", de, !0), o.addEventListener("click", ct, !0), t.addEventListener("focus", ft, !0), t.addEventListener("blur", mt, !1), typeof PointerEvent < "u" ? (o.addEventListener("pointerdown", T, !0), o.addEventListener("pointermove", T, !0), o.addEventListener("pointerup", T, !0)) : process.env.NODE_ENV === "test" && (o.addEventListener("mousedown", T, !0), o.addEventListener("mousemove", T, !0), o.addEventListener("mouseup", T, !0)), t.addEventListener("beforeunload", () => {
|
|
769
|
+
pt(e);
|
|
431
770
|
}, {
|
|
432
771
|
once: !0
|
|
433
|
-
}),
|
|
772
|
+
}), Y.set(t, {
|
|
434
773
|
focus: n
|
|
435
774
|
});
|
|
436
775
|
}
|
|
437
|
-
const
|
|
438
|
-
const o =
|
|
439
|
-
t && n.removeEventListener("DOMContentLoaded", t),
|
|
776
|
+
const pt = (e, t) => {
|
|
777
|
+
const o = Q(e), n = E(e);
|
|
778
|
+
t && n.removeEventListener("DOMContentLoaded", t), Y.has(o) && (o.HTMLElement.prototype.focus = Y.get(o).focus, n.removeEventListener("keydown", de, !0), n.removeEventListener("keyup", de, !0), n.removeEventListener("click", ct, !0), o.removeEventListener("focus", ft, !0), o.removeEventListener("blur", mt, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", T, !0), n.removeEventListener("pointermove", T, !0), n.removeEventListener("pointerup", T, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", T, !0), n.removeEventListener("mousemove", T, !0), n.removeEventListener("mouseup", T, !0)), Y.delete(o));
|
|
440
779
|
};
|
|
441
|
-
function
|
|
780
|
+
function Ao(e) {
|
|
442
781
|
const t = E(e);
|
|
443
782
|
let o;
|
|
444
|
-
return t.readyState !== "loading" ?
|
|
445
|
-
|
|
446
|
-
}, t.addEventListener("DOMContentLoaded", o)), () =>
|
|
783
|
+
return t.readyState !== "loading" ? Ve(e) : (o = () => {
|
|
784
|
+
Ve(e);
|
|
785
|
+
}, t.addEventListener("DOMContentLoaded", o)), () => pt(e, o);
|
|
447
786
|
}
|
|
448
|
-
typeof document < "u" &&
|
|
449
|
-
function
|
|
450
|
-
return
|
|
787
|
+
typeof document < "u" && Ao();
|
|
788
|
+
function bt() {
|
|
789
|
+
return oe;
|
|
451
790
|
}
|
|
452
|
-
function
|
|
453
|
-
|
|
791
|
+
function ye(e) {
|
|
792
|
+
if (!e.isConnected) return;
|
|
793
|
+
const t = E(e);
|
|
794
|
+
if (bt() === "virtual") {
|
|
795
|
+
let o = y(t);
|
|
796
|
+
wo(() => {
|
|
797
|
+
const n = y(t);
|
|
798
|
+
(n === o || n === t.body) && e.isConnected && Ee(e);
|
|
799
|
+
});
|
|
800
|
+
} else Ee(e);
|
|
801
|
+
}
|
|
802
|
+
function Io({ children: e }) {
|
|
803
|
+
let t = X(() => ({
|
|
804
|
+
register: () => {
|
|
805
|
+
}
|
|
806
|
+
}), []);
|
|
807
|
+
return /* @__PURE__ */ h.createElement(ut.Provider, {
|
|
808
|
+
value: t
|
|
809
|
+
}, e);
|
|
810
|
+
}
|
|
811
|
+
function Wo(e) {
|
|
812
|
+
let { isDisabled: t, onBlurWithin: o, onFocusWithin: n, onFocusWithinChange: r } = e, a = $({
|
|
454
813
|
isFocusWithin: !1
|
|
455
|
-
}),
|
|
456
|
-
|
|
814
|
+
}), { addGlobalListener: i, removeAllGlobalListeners: l } = Eo(), s = k((c) => {
|
|
815
|
+
C(c.currentTarget, M(c)) && a.current.isFocusWithin && !C(c.currentTarget, c.relatedTarget) && (a.current.isFocusWithin = !1, l(), o && o(c), r && r(!1));
|
|
457
816
|
}, [
|
|
458
817
|
o,
|
|
459
818
|
r,
|
|
819
|
+
a,
|
|
460
820
|
l
|
|
461
|
-
]), d =
|
|
462
|
-
|
|
821
|
+
]), d = Bo(s), u = k((c) => {
|
|
822
|
+
if (!C(c.currentTarget, M(c))) return;
|
|
823
|
+
let m = M(c);
|
|
824
|
+
const b = E(m), p = y(b);
|
|
825
|
+
if (!a.current.isFocusWithin && p === m) {
|
|
826
|
+
n && n(c), r && r(!0), a.current.isFocusWithin = !0, d(c);
|
|
827
|
+
let P = c.currentTarget;
|
|
828
|
+
i(b, "focus", (L) => {
|
|
829
|
+
let V = M(L);
|
|
830
|
+
if (a.current.isFocusWithin && !C(P, V)) {
|
|
831
|
+
let ne = new b.defaultView.FocusEvent("blur", {
|
|
832
|
+
relatedTarget: V
|
|
833
|
+
});
|
|
834
|
+
Co(ne, P);
|
|
835
|
+
let H = dt(ne);
|
|
836
|
+
s(H);
|
|
837
|
+
}
|
|
838
|
+
}, {
|
|
839
|
+
capture: !0
|
|
840
|
+
});
|
|
841
|
+
}
|
|
463
842
|
}, [
|
|
464
843
|
n,
|
|
465
844
|
r,
|
|
466
|
-
d
|
|
845
|
+
d,
|
|
846
|
+
i,
|
|
847
|
+
s
|
|
467
848
|
]);
|
|
468
849
|
return t ? {
|
|
469
850
|
focusWithinProps: {
|
|
470
|
-
// These
|
|
851
|
+
// These cannot be null, that would conflict in mergeProps
|
|
471
852
|
onFocus: void 0,
|
|
472
853
|
onBlur: void 0
|
|
473
854
|
}
|
|
474
855
|
} : {
|
|
475
856
|
focusWithinProps: {
|
|
476
|
-
onFocus:
|
|
477
|
-
onBlur:
|
|
857
|
+
onFocus: u,
|
|
858
|
+
onBlur: s
|
|
478
859
|
}
|
|
479
860
|
};
|
|
480
861
|
}
|
|
481
|
-
function
|
|
482
|
-
let { ref: t, onInteractOutside: o, isDisabled: n, onInteractOutsideStart: r } = e,
|
|
862
|
+
function Vo(e) {
|
|
863
|
+
let { ref: t, onInteractOutside: o, isDisabled: n, onInteractOutsideStart: r } = e, a = $({
|
|
483
864
|
isPointerDown: !1,
|
|
484
865
|
ignoreEmulatedMouseEvents: !1
|
|
485
|
-
}),
|
|
486
|
-
o &&
|
|
487
|
-
}),
|
|
488
|
-
o && o(
|
|
866
|
+
}), i = Ie((s) => {
|
|
867
|
+
o && ae(s, t) && (r && r(s), a.current.isPointerDown = !0);
|
|
868
|
+
}), l = Ie((s) => {
|
|
869
|
+
o && o(s);
|
|
489
870
|
});
|
|
490
|
-
|
|
491
|
-
let
|
|
871
|
+
S(() => {
|
|
872
|
+
let s = a.current;
|
|
492
873
|
if (n) return;
|
|
493
|
-
const
|
|
874
|
+
const d = t.current, u = E(d);
|
|
494
875
|
if (typeof PointerEvent < "u") {
|
|
495
|
-
let
|
|
496
|
-
|
|
876
|
+
let c = (m) => {
|
|
877
|
+
s.isPointerDown && ae(m, t) && l(m), s.isPointerDown = !1;
|
|
497
878
|
};
|
|
498
|
-
return
|
|
499
|
-
|
|
879
|
+
return u.addEventListener("pointerdown", i, !0), u.addEventListener("click", c, !0), () => {
|
|
880
|
+
u.removeEventListener("pointerdown", i, !0), u.removeEventListener("click", c, !0);
|
|
500
881
|
};
|
|
501
|
-
} else {
|
|
502
|
-
let
|
|
503
|
-
|
|
504
|
-
},
|
|
505
|
-
|
|
882
|
+
} else if (process.env.NODE_ENV === "test") {
|
|
883
|
+
let c = (b) => {
|
|
884
|
+
s.ignoreEmulatedMouseEvents ? s.ignoreEmulatedMouseEvents = !1 : s.isPointerDown && ae(b, t) && l(b), s.isPointerDown = !1;
|
|
885
|
+
}, m = (b) => {
|
|
886
|
+
s.ignoreEmulatedMouseEvents = !0, s.isPointerDown && ae(b, t) && l(b), s.isPointerDown = !1;
|
|
506
887
|
};
|
|
507
|
-
return
|
|
508
|
-
|
|
888
|
+
return u.addEventListener("mousedown", i, !0), u.addEventListener("mouseup", c, !0), u.addEventListener("touchstart", i, !0), u.addEventListener("touchend", m, !0), () => {
|
|
889
|
+
u.removeEventListener("mousedown", i, !0), u.removeEventListener("mouseup", c, !0), u.removeEventListener("touchstart", i, !0), u.removeEventListener("touchend", m, !0);
|
|
509
890
|
};
|
|
510
891
|
}
|
|
511
892
|
}, [
|
|
512
893
|
t,
|
|
513
|
-
n
|
|
514
|
-
a,
|
|
515
|
-
d
|
|
894
|
+
n
|
|
516
895
|
]);
|
|
517
896
|
}
|
|
518
|
-
function
|
|
897
|
+
function ae(e, t) {
|
|
519
898
|
if (e.button > 0) return !1;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
return t.current && !t.current.contains(e.target);
|
|
525
|
-
}
|
|
526
|
-
function pe(e) {
|
|
527
|
-
const t = E(e);
|
|
528
|
-
if (oo() === "virtual") {
|
|
529
|
-
let o = t.activeElement;
|
|
530
|
-
Ut(() => {
|
|
531
|
-
t.activeElement === o && e.isConnected && ye(e);
|
|
532
|
-
});
|
|
533
|
-
} else ye(e);
|
|
534
|
-
}
|
|
535
|
-
function ao(e) {
|
|
536
|
-
const t = Z(e);
|
|
537
|
-
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
538
|
-
let { display: o, visibility: n } = e.style, r = o !== "none" && n !== "hidden" && n !== "collapse";
|
|
539
|
-
if (r) {
|
|
540
|
-
const { getComputedStyle: l } = e.ownerDocument.defaultView;
|
|
541
|
-
let { display: a, visibility: d } = l(e);
|
|
542
|
-
r = a !== "none" && d !== "hidden" && d !== "collapse";
|
|
899
|
+
let o = M(e);
|
|
900
|
+
if (o) {
|
|
901
|
+
const n = o.ownerDocument;
|
|
902
|
+
if (!n || !C(n.documentElement, o) || o.closest("[data-react-aria-top-layer]")) return !1;
|
|
543
903
|
}
|
|
544
|
-
return
|
|
904
|
+
return t.current ? !e.composedPath().includes(t.current) : !1;
|
|
545
905
|
}
|
|
546
|
-
|
|
547
|
-
return !e.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
|
|
548
|
-
!e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
|
|
549
|
-
}
|
|
550
|
-
function Xe(e, t) {
|
|
551
|
-
return e.nodeName !== "#comment" && ao(e) && lo(e, t) && (!e.parentElement || Xe(e.parentElement, e));
|
|
552
|
-
}
|
|
553
|
-
const xe = /* @__PURE__ */ $.createContext(null), fe = "react-aria-focus-scope-restore";
|
|
906
|
+
const ze = /* @__PURE__ */ h.createContext(null), ke = "react-aria-focus-scope-restore";
|
|
554
907
|
let v = null;
|
|
555
|
-
function
|
|
556
|
-
let { children: t, contain: o, restoreFocus: n, autoFocus: r } = e,
|
|
557
|
-
scopeRef:
|
|
908
|
+
function zo(e) {
|
|
909
|
+
let { children: t, contain: o, restoreFocus: n, autoFocus: r } = e, a = $(null), i = $(null), l = $([]), { parentNode: s } = q(ze) || {}, d = X(() => new Ne({
|
|
910
|
+
scopeRef: l
|
|
558
911
|
}), [
|
|
559
|
-
|
|
912
|
+
l
|
|
560
913
|
]);
|
|
561
|
-
|
|
562
|
-
let
|
|
563
|
-
if (
|
|
564
|
-
let
|
|
565
|
-
|
|
914
|
+
_(() => {
|
|
915
|
+
let m = s || w.root;
|
|
916
|
+
if (w.getTreeNode(m.scopeRef) && v && !ue(v, m.scopeRef)) {
|
|
917
|
+
let b = w.getTreeNode(v);
|
|
918
|
+
b && (m = b);
|
|
566
919
|
}
|
|
567
|
-
|
|
920
|
+
m.addChild(d), w.addNode(d);
|
|
568
921
|
}, [
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
]),
|
|
572
|
-
let
|
|
573
|
-
|
|
922
|
+
d,
|
|
923
|
+
s
|
|
924
|
+
]), _(() => {
|
|
925
|
+
let m = w.getTreeNode(l);
|
|
926
|
+
m && (m.contain = !!o);
|
|
574
927
|
}, [
|
|
575
928
|
o
|
|
576
|
-
]),
|
|
577
|
-
var
|
|
578
|
-
let
|
|
579
|
-
for (;
|
|
580
|
-
|
|
581
|
-
return
|
|
582
|
-
for (let
|
|
929
|
+
]), _(() => {
|
|
930
|
+
var m;
|
|
931
|
+
let b = (m = a.current) === null || m === void 0 ? void 0 : m.nextSibling, p = [], P = (L) => L.stopPropagation();
|
|
932
|
+
for (; b && b !== i.current; )
|
|
933
|
+
p.push(b), b.addEventListener(ke, P), b = b.nextSibling;
|
|
934
|
+
return l.current = p, () => {
|
|
935
|
+
for (let L of p) L.removeEventListener(ke, P);
|
|
583
936
|
};
|
|
584
937
|
}, [
|
|
585
938
|
t
|
|
586
|
-
]),
|
|
587
|
-
const
|
|
588
|
-
let
|
|
589
|
-
if (
|
|
590
|
-
for (let
|
|
591
|
-
|
|
939
|
+
]), Jo(l, n, o), jo(l, o), Xo(l, n, o), Go(l, r), S(() => {
|
|
940
|
+
const m = y(E(l.current ? l.current[0] : void 0));
|
|
941
|
+
let b = null;
|
|
942
|
+
if (x(m, l.current)) {
|
|
943
|
+
for (let p of w.traverse()) p.scopeRef && x(m, p.scopeRef.current) && (b = p);
|
|
944
|
+
b === w.getTreeNode(l) && (v = b.scopeRef);
|
|
592
945
|
}
|
|
593
946
|
}, [
|
|
594
|
-
|
|
595
|
-
]),
|
|
596
|
-
var
|
|
597
|
-
let
|
|
598
|
-
(
|
|
947
|
+
l
|
|
948
|
+
]), _(() => () => {
|
|
949
|
+
var m, b, p;
|
|
950
|
+
let P = (p = (b = w.getTreeNode(l)) === null || b === void 0 || (m = b.parent) === null || m === void 0 ? void 0 : m.scopeRef) !== null && p !== void 0 ? p : null;
|
|
951
|
+
(l === v || ue(l, v)) && (!P || w.getTreeNode(P)) && (v = P), w.removeTreeNode(l);
|
|
599
952
|
}, [
|
|
600
|
-
|
|
953
|
+
l
|
|
601
954
|
]);
|
|
602
|
-
let
|
|
603
|
-
focusManager:
|
|
604
|
-
parentNode:
|
|
955
|
+
let u = X(() => Ko(l), []), c = X(() => ({
|
|
956
|
+
focusManager: u,
|
|
957
|
+
parentNode: d
|
|
605
958
|
}), [
|
|
606
|
-
|
|
607
|
-
|
|
959
|
+
d,
|
|
960
|
+
u
|
|
608
961
|
]);
|
|
609
|
-
return /* @__PURE__ */
|
|
610
|
-
value:
|
|
611
|
-
}, /* @__PURE__ */
|
|
962
|
+
return /* @__PURE__ */ h.createElement(ze.Provider, {
|
|
963
|
+
value: c
|
|
964
|
+
}, /* @__PURE__ */ h.createElement("span", {
|
|
612
965
|
"data-focus-scope-start": !0,
|
|
613
966
|
hidden: !0,
|
|
614
|
-
ref:
|
|
615
|
-
}), t, /* @__PURE__ */
|
|
967
|
+
ref: a
|
|
968
|
+
}), t, /* @__PURE__ */ h.createElement("span", {
|
|
616
969
|
"data-focus-scope-end": !0,
|
|
617
970
|
hidden: !0,
|
|
618
|
-
ref:
|
|
971
|
+
ref: i
|
|
619
972
|
}));
|
|
620
973
|
}
|
|
621
|
-
function
|
|
974
|
+
function Ko(e) {
|
|
622
975
|
return {
|
|
623
976
|
focusNext(t = {}) {
|
|
624
|
-
let o = e.current, { from: n, tabbable: r, wrap:
|
|
977
|
+
let o = e.current, { from: n, tabbable: r, wrap: a, accept: i } = t;
|
|
978
|
+
var l;
|
|
979
|
+
let s = n || y(E((l = o[0]) !== null && l !== void 0 ? l : void 0)), d = o[0].previousElementSibling, u = I(o), c = A(u, {
|
|
625
980
|
tabbable: r,
|
|
626
|
-
accept:
|
|
981
|
+
accept: i
|
|
627
982
|
}, o);
|
|
628
|
-
|
|
629
|
-
let m =
|
|
630
|
-
return !m &&
|
|
983
|
+
c.currentNode = x(s, o) ? s : d;
|
|
984
|
+
let m = c.nextNode();
|
|
985
|
+
return !m && a && (c.currentNode = d, m = c.nextNode()), m && B(m, !0), m;
|
|
631
986
|
},
|
|
632
987
|
focusPrevious(t = {}) {
|
|
633
|
-
let o = e.current, { from: n, tabbable: r, wrap:
|
|
988
|
+
let o = e.current, { from: n, tabbable: r, wrap: a, accept: i } = t;
|
|
989
|
+
var l;
|
|
990
|
+
let s = n || y(E((l = o[0]) !== null && l !== void 0 ? l : void 0)), d = o[o.length - 1].nextElementSibling, u = I(o), c = A(u, {
|
|
634
991
|
tabbable: r,
|
|
635
|
-
accept:
|
|
992
|
+
accept: i
|
|
636
993
|
}, o);
|
|
637
|
-
|
|
638
|
-
let m =
|
|
639
|
-
return !m &&
|
|
994
|
+
c.currentNode = x(s, o) ? s : d;
|
|
995
|
+
let m = c.previousNode();
|
|
996
|
+
return !m && a && (c.currentNode = d, m = c.previousNode()), m && B(m, !0), m;
|
|
640
997
|
},
|
|
641
998
|
focusFirst(t = {}) {
|
|
642
|
-
let o = e.current, { tabbable: n, accept: r } = t,
|
|
999
|
+
let o = e.current, { tabbable: n, accept: r } = t, a = I(o), i = A(a, {
|
|
643
1000
|
tabbable: n,
|
|
644
1001
|
accept: r
|
|
645
1002
|
}, o);
|
|
646
|
-
|
|
647
|
-
let
|
|
648
|
-
return
|
|
1003
|
+
i.currentNode = o[0].previousElementSibling;
|
|
1004
|
+
let l = i.nextNode();
|
|
1005
|
+
return l && B(l, !0), l;
|
|
649
1006
|
},
|
|
650
1007
|
focusLast(t = {}) {
|
|
651
|
-
let o = e.current, { tabbable: n, accept: r } = t,
|
|
1008
|
+
let o = e.current, { tabbable: n, accept: r } = t, a = I(o), i = A(a, {
|
|
652
1009
|
tabbable: n,
|
|
653
1010
|
accept: r
|
|
654
1011
|
}, o);
|
|
655
|
-
|
|
656
|
-
let
|
|
657
|
-
return
|
|
1012
|
+
i.currentNode = o[o.length - 1].nextElementSibling;
|
|
1013
|
+
let l = i.previousNode();
|
|
1014
|
+
return l && B(l, !0), l;
|
|
658
1015
|
}
|
|
659
1016
|
};
|
|
660
1017
|
}
|
|
661
|
-
|
|
662
|
-
"input:not([disabled]):not([type=hidden])",
|
|
663
|
-
"select:not([disabled])",
|
|
664
|
-
"textarea:not([disabled])",
|
|
665
|
-
"button:not([disabled])",
|
|
666
|
-
"a[href]",
|
|
667
|
-
"area[href]",
|
|
668
|
-
"summary",
|
|
669
|
-
"iframe",
|
|
670
|
-
"object",
|
|
671
|
-
"embed",
|
|
672
|
-
"audio[controls]",
|
|
673
|
-
"video[controls]",
|
|
674
|
-
"[contenteditable]"
|
|
675
|
-
], uo = $e.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
676
|
-
$e.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
677
|
-
const co = $e.join(':not([hidden]):not([tabindex="-1"]),');
|
|
678
|
-
function N(e) {
|
|
1018
|
+
function I(e) {
|
|
679
1019
|
return e[0].parentElement;
|
|
680
1020
|
}
|
|
681
|
-
function
|
|
682
|
-
let t =
|
|
1021
|
+
function J(e) {
|
|
1022
|
+
let t = w.getTreeNode(v);
|
|
683
1023
|
for (; t && t.scopeRef !== e; ) {
|
|
684
1024
|
if (t.contain) return !1;
|
|
685
1025
|
t = t.parent;
|
|
686
1026
|
}
|
|
687
1027
|
return !0;
|
|
688
1028
|
}
|
|
689
|
-
function
|
|
690
|
-
|
|
691
|
-
|
|
1029
|
+
function qo(e) {
|
|
1030
|
+
if (!e.form)
|
|
1031
|
+
return Array.from(E(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((n) => !n.form);
|
|
1032
|
+
const t = e.form.elements.namedItem(e.name);
|
|
1033
|
+
let o = Q(e);
|
|
1034
|
+
return t instanceof o.RadioNodeList ? Array.from(t).filter((n) => n instanceof o.HTMLInputElement) : t instanceof o.HTMLInputElement ? [
|
|
1035
|
+
t
|
|
1036
|
+
] : [];
|
|
1037
|
+
}
|
|
1038
|
+
function Ho(e) {
|
|
1039
|
+
if (e.checked) return !0;
|
|
1040
|
+
const t = qo(e);
|
|
1041
|
+
return t.length > 0 && !t.some((o) => o.checked);
|
|
1042
|
+
}
|
|
1043
|
+
function jo(e, t) {
|
|
1044
|
+
let o = $(void 0), n = $(void 0);
|
|
1045
|
+
_(() => {
|
|
692
1046
|
let r = e.current;
|
|
693
1047
|
if (!t) {
|
|
694
1048
|
n.current && (cancelAnimationFrame(n.current), n.current = void 0);
|
|
695
1049
|
return;
|
|
696
1050
|
}
|
|
697
|
-
const
|
|
698
|
-
let
|
|
699
|
-
if (
|
|
700
|
-
let
|
|
701
|
-
if (!
|
|
702
|
-
let
|
|
1051
|
+
const a = E(r ? r[0] : void 0);
|
|
1052
|
+
let i = (d) => {
|
|
1053
|
+
if (d.key !== "Tab" || d.altKey || d.ctrlKey || d.metaKey || !J(e) || d.isComposing) return;
|
|
1054
|
+
let u = y(a), c = e.current;
|
|
1055
|
+
if (!c || !x(u, c)) return;
|
|
1056
|
+
let m = I(c), b = A(m, {
|
|
703
1057
|
tabbable: !0
|
|
704
|
-
},
|
|
705
|
-
if (!
|
|
706
|
-
|
|
707
|
-
let
|
|
708
|
-
|
|
709
|
-
},
|
|
710
|
-
(!v ||
|
|
711
|
-
},
|
|
1058
|
+
}, c);
|
|
1059
|
+
if (!u) return;
|
|
1060
|
+
b.currentNode = u;
|
|
1061
|
+
let p = d.shiftKey ? b.previousNode() : b.nextNode();
|
|
1062
|
+
p || (b.currentNode = d.shiftKey ? c[c.length - 1].nextElementSibling : c[0].previousElementSibling, p = d.shiftKey ? b.previousNode() : b.nextNode()), d.preventDefault(), p && B(p, !0);
|
|
1063
|
+
}, l = (d) => {
|
|
1064
|
+
(!v || ue(v, e)) && x(M(d), e.current) ? (v = e, o.current = M(d)) : J(e) && !R(M(d), e) ? o.current ? o.current.focus() : v && v.current && Pe(v.current) : J(e) && (o.current = M(d));
|
|
1065
|
+
}, s = (d) => {
|
|
712
1066
|
n.current && cancelAnimationFrame(n.current), n.current = requestAnimationFrame(() => {
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
1067
|
+
let u = bt(), c = (u === "virtual" || u === null) && it() && at(), m = y(a);
|
|
1068
|
+
if (!c && m && J(e) && !R(m, e)) {
|
|
1069
|
+
v = e;
|
|
1070
|
+
let p = M(d);
|
|
1071
|
+
if (p && p.isConnected) {
|
|
1072
|
+
var b;
|
|
1073
|
+
o.current = p, (b = o.current) === null || b === void 0 || b.focus();
|
|
1074
|
+
} else v.current && Pe(v.current);
|
|
1075
|
+
}
|
|
718
1076
|
});
|
|
719
1077
|
};
|
|
720
|
-
return
|
|
721
|
-
|
|
1078
|
+
return a.addEventListener("keydown", i, !1), a.addEventListener("focusin", l, !1), r?.forEach((d) => d.addEventListener("focusin", l, !1)), r?.forEach((d) => d.addEventListener("focusout", s, !1)), () => {
|
|
1079
|
+
a.removeEventListener("keydown", i, !1), a.removeEventListener("focusin", l, !1), r?.forEach((d) => d.removeEventListener("focusin", l, !1)), r?.forEach((d) => d.removeEventListener("focusout", s, !1));
|
|
722
1080
|
};
|
|
723
1081
|
}, [
|
|
724
1082
|
e,
|
|
725
1083
|
t
|
|
726
|
-
]),
|
|
1084
|
+
]), _(() => () => {
|
|
727
1085
|
n.current && cancelAnimationFrame(n.current);
|
|
728
1086
|
}, [
|
|
729
1087
|
n
|
|
730
1088
|
]);
|
|
731
1089
|
}
|
|
732
|
-
function
|
|
733
|
-
return
|
|
1090
|
+
function gt(e) {
|
|
1091
|
+
return R(e);
|
|
734
1092
|
}
|
|
735
|
-
function
|
|
736
|
-
return !e || !t ? !1 : t.some((o) => o
|
|
1093
|
+
function x(e, t) {
|
|
1094
|
+
return !e || !t ? !1 : t.some((o) => C(o, e));
|
|
737
1095
|
}
|
|
738
|
-
function
|
|
1096
|
+
function R(e, t = null) {
|
|
739
1097
|
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
|
|
740
|
-
for (let { scopeRef: o } of
|
|
741
|
-
if (o &&
|
|
1098
|
+
for (let { scopeRef: o } of w.traverse(w.getTreeNode(t)))
|
|
1099
|
+
if (o && x(e, o.current)) return !0;
|
|
742
1100
|
return !1;
|
|
743
1101
|
}
|
|
744
|
-
function
|
|
745
|
-
return
|
|
1102
|
+
function Uo(e) {
|
|
1103
|
+
return R(e, v);
|
|
746
1104
|
}
|
|
747
|
-
function
|
|
1105
|
+
function ue(e, t) {
|
|
748
1106
|
var o;
|
|
749
|
-
let n = (o =
|
|
1107
|
+
let n = (o = w.getTreeNode(t)) === null || o === void 0 ? void 0 : o.parent;
|
|
750
1108
|
for (; n; ) {
|
|
751
1109
|
if (n.scopeRef === e) return !0;
|
|
752
1110
|
n = n.parent;
|
|
753
1111
|
}
|
|
754
1112
|
return !1;
|
|
755
1113
|
}
|
|
756
|
-
function
|
|
1114
|
+
function B(e, t = !1) {
|
|
757
1115
|
if (e != null && !t) try {
|
|
758
|
-
|
|
1116
|
+
ye(e);
|
|
759
1117
|
} catch {
|
|
760
1118
|
}
|
|
761
1119
|
else if (e != null) try {
|
|
@@ -763,43 +1121,43 @@ function S(e, t = !1) {
|
|
|
763
1121
|
} catch {
|
|
764
1122
|
}
|
|
765
1123
|
}
|
|
766
|
-
function
|
|
767
|
-
let o = e[0].previousElementSibling, n =
|
|
1124
|
+
function vt(e, t = !0) {
|
|
1125
|
+
let o = e[0].previousElementSibling, n = I(e), r = A(n, {
|
|
768
1126
|
tabbable: t
|
|
769
1127
|
}, e);
|
|
770
1128
|
r.currentNode = o;
|
|
771
|
-
let
|
|
772
|
-
return t && !
|
|
1129
|
+
let a = r.nextNode();
|
|
1130
|
+
return t && !a && (n = I(e), r = A(n, {
|
|
773
1131
|
tabbable: !1
|
|
774
|
-
}, e), r.currentNode = o,
|
|
1132
|
+
}, e), r.currentNode = o, a = r.nextNode()), a;
|
|
775
1133
|
}
|
|
776
|
-
function
|
|
777
|
-
|
|
1134
|
+
function Pe(e, t = !0) {
|
|
1135
|
+
B(vt(e, t));
|
|
778
1136
|
}
|
|
779
|
-
function
|
|
780
|
-
const o =
|
|
781
|
-
|
|
1137
|
+
function Go(e, t) {
|
|
1138
|
+
const o = h.useRef(t);
|
|
1139
|
+
S(() => {
|
|
782
1140
|
if (o.current) {
|
|
783
1141
|
v = e;
|
|
784
1142
|
const n = E(e.current ? e.current[0] : void 0);
|
|
785
|
-
!
|
|
1143
|
+
!x(y(n), v.current) && e.current && Pe(e.current);
|
|
786
1144
|
}
|
|
787
1145
|
o.current = !1;
|
|
788
1146
|
}, [
|
|
789
1147
|
e
|
|
790
1148
|
]);
|
|
791
1149
|
}
|
|
792
|
-
function
|
|
793
|
-
|
|
1150
|
+
function Jo(e, t, o) {
|
|
1151
|
+
_(() => {
|
|
794
1152
|
if (t || o) return;
|
|
795
1153
|
let n = e.current;
|
|
796
1154
|
const r = E(n ? n[0] : void 0);
|
|
797
|
-
let
|
|
798
|
-
let
|
|
799
|
-
|
|
1155
|
+
let a = (i) => {
|
|
1156
|
+
let l = M(i);
|
|
1157
|
+
x(l, e.current) ? v = e : gt(l) || (v = null);
|
|
800
1158
|
};
|
|
801
|
-
return r.addEventListener("focusin",
|
|
802
|
-
r.removeEventListener("focusin",
|
|
1159
|
+
return r.addEventListener("focusin", a, !1), n?.forEach((i) => i.addEventListener("focusin", a, !1)), () => {
|
|
1160
|
+
r.removeEventListener("focusin", a, !1), n?.forEach((i) => i.removeEventListener("focusin", a, !1));
|
|
803
1161
|
};
|
|
804
1162
|
}, [
|
|
805
1163
|
e,
|
|
@@ -807,88 +1165,87 @@ function go(e, t, o) {
|
|
|
807
1165
|
o
|
|
808
1166
|
]);
|
|
809
1167
|
}
|
|
810
|
-
function
|
|
811
|
-
let t =
|
|
1168
|
+
function Ke(e) {
|
|
1169
|
+
let t = w.getTreeNode(v);
|
|
812
1170
|
for (; t && t.scopeRef !== e; ) {
|
|
813
1171
|
if (t.nodeToRestore) return !1;
|
|
814
1172
|
t = t.parent;
|
|
815
1173
|
}
|
|
816
1174
|
return t?.scopeRef === e;
|
|
817
1175
|
}
|
|
818
|
-
function
|
|
819
|
-
const n =
|
|
820
|
-
|
|
1176
|
+
function Xo(e, t, o) {
|
|
1177
|
+
const n = $(typeof document < "u" ? y(E(e.current ? e.current[0] : void 0)) : null);
|
|
1178
|
+
_(() => {
|
|
821
1179
|
let r = e.current;
|
|
822
|
-
const
|
|
1180
|
+
const a = E(r ? r[0] : void 0);
|
|
823
1181
|
if (!t || o) return;
|
|
824
|
-
let
|
|
825
|
-
(!v ||
|
|
1182
|
+
let i = () => {
|
|
1183
|
+
(!v || ue(v, e)) && x(y(a), e.current) && (v = e);
|
|
826
1184
|
};
|
|
827
|
-
return
|
|
828
|
-
|
|
1185
|
+
return a.addEventListener("focusin", i, !1), r?.forEach((l) => l.addEventListener("focusin", i, !1)), () => {
|
|
1186
|
+
a.removeEventListener("focusin", i, !1), r?.forEach((l) => l.removeEventListener("focusin", i, !1));
|
|
829
1187
|
};
|
|
830
1188
|
}, [
|
|
831
1189
|
e,
|
|
832
1190
|
o
|
|
833
|
-
]),
|
|
1191
|
+
]), _(() => {
|
|
834
1192
|
const r = E(e.current ? e.current[0] : void 0);
|
|
835
1193
|
if (!t) return;
|
|
836
|
-
let
|
|
837
|
-
if (
|
|
838
|
-
let
|
|
839
|
-
if (!
|
|
840
|
-
let
|
|
841
|
-
if (!
|
|
842
|
-
let
|
|
1194
|
+
let a = (i) => {
|
|
1195
|
+
if (i.key !== "Tab" || i.altKey || i.ctrlKey || i.metaKey || !J(e) || i.isComposing) return;
|
|
1196
|
+
let l = r.activeElement;
|
|
1197
|
+
if (!R(l, e) || !Ke(e)) return;
|
|
1198
|
+
let s = w.getTreeNode(e);
|
|
1199
|
+
if (!s) return;
|
|
1200
|
+
let d = s.nodeToRestore, u = A(r.body, {
|
|
843
1201
|
tabbable: !0
|
|
844
1202
|
});
|
|
845
|
-
|
|
846
|
-
let
|
|
847
|
-
if ((!
|
|
848
|
-
|
|
1203
|
+
u.currentNode = l;
|
|
1204
|
+
let c = i.shiftKey ? u.previousNode() : u.nextNode();
|
|
1205
|
+
if ((!d || !d.isConnected || d === r.body) && (d = void 0, s.nodeToRestore = void 0), (!c || !R(c, e)) && d) {
|
|
1206
|
+
u.currentNode = d;
|
|
849
1207
|
do
|
|
850
|
-
|
|
851
|
-
while (
|
|
852
|
-
|
|
1208
|
+
c = i.shiftKey ? u.previousNode() : u.nextNode();
|
|
1209
|
+
while (R(c, e));
|
|
1210
|
+
i.preventDefault(), i.stopPropagation(), c ? B(c, !0) : gt(d) ? B(d, !0) : l.blur();
|
|
853
1211
|
}
|
|
854
1212
|
};
|
|
855
|
-
return o || r.addEventListener("keydown",
|
|
856
|
-
o || r.removeEventListener("keydown",
|
|
1213
|
+
return o || r.addEventListener("keydown", a, !0), () => {
|
|
1214
|
+
o || r.removeEventListener("keydown", a, !0);
|
|
857
1215
|
};
|
|
858
1216
|
}, [
|
|
859
1217
|
e,
|
|
860
1218
|
t,
|
|
861
1219
|
o
|
|
862
|
-
]),
|
|
1220
|
+
]), _(() => {
|
|
863
1221
|
const r = E(e.current ? e.current[0] : void 0);
|
|
864
1222
|
if (!t) return;
|
|
865
|
-
let
|
|
866
|
-
if (
|
|
867
|
-
var
|
|
868
|
-
return
|
|
869
|
-
let
|
|
870
|
-
if (!
|
|
871
|
-
let
|
|
872
|
-
if (t &&
|
|
873
|
-
|
|
874
|
-
let i = h.clone();
|
|
1223
|
+
let a = w.getTreeNode(e);
|
|
1224
|
+
if (a) {
|
|
1225
|
+
var i;
|
|
1226
|
+
return a.nodeToRestore = (i = n.current) !== null && i !== void 0 ? i : void 0, () => {
|
|
1227
|
+
let l = w.getTreeNode(e);
|
|
1228
|
+
if (!l) return;
|
|
1229
|
+
let s = l.nodeToRestore, d = y(r);
|
|
1230
|
+
if (t && s && (d && R(d, e) || d === r.body && Ke(e))) {
|
|
1231
|
+
let u = w.clone();
|
|
875
1232
|
requestAnimationFrame(() => {
|
|
876
1233
|
if (r.activeElement === r.body) {
|
|
877
|
-
let
|
|
878
|
-
for (;
|
|
879
|
-
if (
|
|
880
|
-
|
|
1234
|
+
let c = u.getTreeNode(e);
|
|
1235
|
+
for (; c; ) {
|
|
1236
|
+
if (c.nodeToRestore && c.nodeToRestore.isConnected) {
|
|
1237
|
+
qe(c.nodeToRestore);
|
|
881
1238
|
return;
|
|
882
1239
|
}
|
|
883
|
-
|
|
1240
|
+
c = c.parent;
|
|
884
1241
|
}
|
|
885
|
-
for (
|
|
886
|
-
if (
|
|
887
|
-
let m =
|
|
888
|
-
|
|
1242
|
+
for (c = u.getTreeNode(e); c; ) {
|
|
1243
|
+
if (c.scopeRef && c.scopeRef.current && w.getTreeNode(c.scopeRef)) {
|
|
1244
|
+
let m = vt(c.scopeRef.current, !0);
|
|
1245
|
+
qe(m);
|
|
889
1246
|
return;
|
|
890
1247
|
}
|
|
891
|
-
|
|
1248
|
+
c = c.parent;
|
|
892
1249
|
}
|
|
893
1250
|
}
|
|
894
1251
|
});
|
|
@@ -900,22 +1257,21 @@ function vo(e, t, o) {
|
|
|
900
1257
|
t
|
|
901
1258
|
]);
|
|
902
1259
|
}
|
|
903
|
-
function
|
|
904
|
-
e.dispatchEvent(new CustomEvent(
|
|
1260
|
+
function qe(e) {
|
|
1261
|
+
e.dispatchEvent(new CustomEvent(ke, {
|
|
905
1262
|
bubbles: !0,
|
|
906
1263
|
cancelable: !0
|
|
907
|
-
})) &&
|
|
1264
|
+
})) && B(e);
|
|
908
1265
|
}
|
|
909
|
-
function
|
|
910
|
-
let n = t?.tabbable ?
|
|
1266
|
+
function A(e, t, o) {
|
|
1267
|
+
let n = t?.tabbable ? So : xo, r = e?.nodeType === Node.ELEMENT_NODE ? e : null, a = E(r), i = oo(a, e || a, NodeFilter.SHOW_ELEMENT, {
|
|
911
1268
|
acceptNode(l) {
|
|
912
|
-
|
|
913
|
-
return !(t == null || (a = t.from) === null || a === void 0) && a.contains(l) ? NodeFilter.FILTER_REJECT : l.matches(n) && Xe(l) && (!o || _(l, o)) && (!t?.accept || t.accept(l)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1269
|
+
return C(t?.from, l) || t?.tabbable && l.tagName === "INPUT" && l.getAttribute("type") === "radio" && (!Ho(l) || i.currentNode.tagName === "INPUT" && i.currentNode.type === "radio" && i.currentNode.name === l.name) ? NodeFilter.FILTER_REJECT : n(l) && (!o || x(l, o)) && (!t?.accept || t.accept(l)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
914
1270
|
}
|
|
915
1271
|
});
|
|
916
|
-
return t?.from && (
|
|
1272
|
+
return t?.from && (i.currentNode = t.from), i;
|
|
917
1273
|
}
|
|
918
|
-
class
|
|
1274
|
+
class Fe {
|
|
919
1275
|
get size() {
|
|
920
1276
|
return this.fastMap.size;
|
|
921
1277
|
}
|
|
@@ -925,10 +1281,10 @@ class we {
|
|
|
925
1281
|
addTreeNode(t, o, n) {
|
|
926
1282
|
let r = this.fastMap.get(o ?? null);
|
|
927
1283
|
if (!r) return;
|
|
928
|
-
let
|
|
1284
|
+
let a = new Ne({
|
|
929
1285
|
scopeRef: t
|
|
930
1286
|
});
|
|
931
|
-
r.addChild(
|
|
1287
|
+
r.addChild(a), a.parent = r, this.fastMap.set(t, a), n && (a.nodeToRestore = n);
|
|
932
1288
|
}
|
|
933
1289
|
addNode(t) {
|
|
934
1290
|
this.fastMap.set(t.scopeRef, t);
|
|
@@ -938,9 +1294,9 @@ class we {
|
|
|
938
1294
|
let o = this.fastMap.get(t);
|
|
939
1295
|
if (!o) return;
|
|
940
1296
|
let n = o.parent;
|
|
941
|
-
for (let
|
|
1297
|
+
for (let a of this.traverse()) a !== o && o.nodeToRestore && a.nodeToRestore && o.scopeRef && o.scopeRef.current && x(a.nodeToRestore, o.scopeRef.current) && (a.nodeToRestore = o.nodeToRestore);
|
|
942
1298
|
let r = o.children;
|
|
943
|
-
n && (n.removeChild(o), r.size > 0 && r.forEach((
|
|
1299
|
+
n && (n.removeChild(o), r.size > 0 && r.forEach((a) => n && n.addChild(a))), this.fastMap.delete(o.scopeRef);
|
|
944
1300
|
}
|
|
945
1301
|
// Pre Order Depth First
|
|
946
1302
|
*traverse(t = this.root) {
|
|
@@ -948,18 +1304,18 @@ class we {
|
|
|
948
1304
|
}
|
|
949
1305
|
clone() {
|
|
950
1306
|
var t;
|
|
951
|
-
let o = new
|
|
1307
|
+
let o = new Fe();
|
|
952
1308
|
var n;
|
|
953
1309
|
for (let r of this.traverse()) o.addTreeNode(r.scopeRef, (n = (t = r.parent) === null || t === void 0 ? void 0 : t.scopeRef) !== null && n !== void 0 ? n : null, r.nodeToRestore);
|
|
954
1310
|
return o;
|
|
955
1311
|
}
|
|
956
1312
|
constructor() {
|
|
957
|
-
this.fastMap = /* @__PURE__ */ new Map(), this.root = new
|
|
1313
|
+
this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ne({
|
|
958
1314
|
scopeRef: null
|
|
959
1315
|
}), this.fastMap.set(null, this.root);
|
|
960
1316
|
}
|
|
961
1317
|
}
|
|
962
|
-
class
|
|
1318
|
+
class Ne {
|
|
963
1319
|
addChild(t) {
|
|
964
1320
|
this.children.add(t), t.parent = this;
|
|
965
1321
|
}
|
|
@@ -970,68 +1326,68 @@ class be {
|
|
|
970
1326
|
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = t.scopeRef;
|
|
971
1327
|
}
|
|
972
1328
|
}
|
|
973
|
-
let
|
|
974
|
-
const
|
|
975
|
-
function
|
|
976
|
-
let { onClose: o, shouldCloseOnBlur: n, isOpen: r, isDismissable:
|
|
977
|
-
|
|
978
|
-
let
|
|
979
|
-
|
|
1329
|
+
let w = new Fe();
|
|
1330
|
+
const Yo = /* @__PURE__ */ new WeakMap(), F = [];
|
|
1331
|
+
function Qo(e, t) {
|
|
1332
|
+
let { onClose: o, shouldCloseOnBlur: n, isOpen: r, isDismissable: a = !1, isKeyboardDismissDisabled: i = !1, shouldCloseOnInteractOutside: l } = e;
|
|
1333
|
+
S(() => (r && F.push(t), () => {
|
|
1334
|
+
let p = F.indexOf(t);
|
|
1335
|
+
p >= 0 && F.splice(p, 1);
|
|
980
1336
|
}), [
|
|
981
1337
|
r,
|
|
982
1338
|
t
|
|
983
1339
|
]);
|
|
984
|
-
let
|
|
985
|
-
|
|
986
|
-
},
|
|
987
|
-
(!
|
|
988
|
-
},
|
|
989
|
-
(!
|
|
990
|
-
},
|
|
991
|
-
|
|
1340
|
+
let s = () => {
|
|
1341
|
+
F[F.length - 1] === t && o && o();
|
|
1342
|
+
}, d = (p) => {
|
|
1343
|
+
(!l || l(p.target)) && F[F.length - 1] === t && (p.stopPropagation(), p.preventDefault());
|
|
1344
|
+
}, u = (p) => {
|
|
1345
|
+
(!l || l(p.target)) && (F[F.length - 1] === t && (p.stopPropagation(), p.preventDefault()), s());
|
|
1346
|
+
}, c = (p) => {
|
|
1347
|
+
p.key === "Escape" && !i && !p.nativeEvent.isComposing && (p.stopPropagation(), p.preventDefault(), s());
|
|
992
1348
|
};
|
|
993
|
-
|
|
1349
|
+
Vo({
|
|
994
1350
|
ref: t,
|
|
995
|
-
onInteractOutside:
|
|
996
|
-
onInteractOutsideStart:
|
|
1351
|
+
onInteractOutside: a && r ? u : null,
|
|
1352
|
+
onInteractOutsideStart: d
|
|
997
1353
|
});
|
|
998
|
-
let { focusWithinProps:
|
|
1354
|
+
let { focusWithinProps: m } = Wo({
|
|
999
1355
|
isDisabled: !n,
|
|
1000
|
-
onBlurWithin: (
|
|
1001
|
-
!
|
|
1356
|
+
onBlurWithin: (p) => {
|
|
1357
|
+
!p.relatedTarget || Uo(p.relatedTarget) || (!l || l(p.relatedTarget)) && o();
|
|
1002
1358
|
}
|
|
1003
|
-
}),
|
|
1004
|
-
|
|
1359
|
+
}), b = (p) => {
|
|
1360
|
+
p.target === p.currentTarget && p.preventDefault();
|
|
1005
1361
|
};
|
|
1006
1362
|
return {
|
|
1007
1363
|
overlayProps: {
|
|
1008
|
-
onKeyDown:
|
|
1009
|
-
...
|
|
1364
|
+
onKeyDown: c,
|
|
1365
|
+
...m
|
|
1010
1366
|
},
|
|
1011
1367
|
underlayProps: {
|
|
1012
|
-
onPointerDown:
|
|
1368
|
+
onPointerDown: b
|
|
1013
1369
|
}
|
|
1014
1370
|
};
|
|
1015
1371
|
}
|
|
1016
|
-
function
|
|
1372
|
+
function Zo(e, t, o) {
|
|
1017
1373
|
let { isOpen: n } = t;
|
|
1018
|
-
|
|
1019
|
-
o && o.current &&
|
|
1374
|
+
S(() => {
|
|
1375
|
+
o && o.current && Yo.set(o.current, t.close);
|
|
1020
1376
|
});
|
|
1021
|
-
let r,
|
|
1377
|
+
let r, a = tt();
|
|
1022
1378
|
return {
|
|
1023
1379
|
triggerProps: {
|
|
1024
1380
|
"aria-haspopup": r,
|
|
1025
1381
|
"aria-expanded": n,
|
|
1026
|
-
"aria-controls": n ?
|
|
1382
|
+
"aria-controls": n ? a : null,
|
|
1027
1383
|
onPress: t.toggle
|
|
1028
1384
|
},
|
|
1029
1385
|
overlayProps: {
|
|
1030
|
-
id:
|
|
1386
|
+
id: a
|
|
1031
1387
|
}
|
|
1032
1388
|
};
|
|
1033
1389
|
}
|
|
1034
|
-
const
|
|
1390
|
+
const he = typeof document < "u" && window.visualViewport, en = /* @__PURE__ */ new Set([
|
|
1035
1391
|
"checkbox",
|
|
1036
1392
|
"radio",
|
|
1037
1393
|
"range",
|
|
@@ -1042,81 +1398,81 @@ const se = typeof document < "u" && window.visualViewport, Eo = /* @__PURE__ */
|
|
|
1042
1398
|
"submit",
|
|
1043
1399
|
"reset"
|
|
1044
1400
|
]);
|
|
1045
|
-
let
|
|
1046
|
-
function
|
|
1401
|
+
let ie = 0, $e;
|
|
1402
|
+
function tn(e = {}) {
|
|
1047
1403
|
let { isDisabled: t } = e;
|
|
1048
|
-
|
|
1404
|
+
_(() => {
|
|
1049
1405
|
if (!t)
|
|
1050
|
-
return
|
|
1051
|
-
|
|
1406
|
+
return ie++, ie === 1 && (rt() ? $e = nn() : $e = on()), () => {
|
|
1407
|
+
ie--, ie === 0 && $e();
|
|
1052
1408
|
};
|
|
1053
1409
|
}, [
|
|
1054
1410
|
t
|
|
1055
1411
|
]);
|
|
1056
1412
|
}
|
|
1057
|
-
function
|
|
1058
|
-
return
|
|
1413
|
+
function on() {
|
|
1414
|
+
return se(z(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), z(document.documentElement, "overflow", "hidden"));
|
|
1059
1415
|
}
|
|
1060
|
-
function
|
|
1061
|
-
let e, t, o = (
|
|
1062
|
-
e =
|
|
1063
|
-
}, n = (
|
|
1416
|
+
function nn() {
|
|
1417
|
+
let e, t, o = (d) => {
|
|
1418
|
+
e = lt(d.target, !0), !(e === document.documentElement && e === document.body) && e instanceof HTMLElement && window.getComputedStyle(e).overscrollBehavior === "auto" && (t = z(e, "overscrollBehavior", "contain"));
|
|
1419
|
+
}, n = (d) => {
|
|
1064
1420
|
if (!e || e === document.documentElement || e === document.body) {
|
|
1065
|
-
|
|
1421
|
+
d.preventDefault();
|
|
1066
1422
|
return;
|
|
1067
1423
|
}
|
|
1068
|
-
e.scrollHeight === e.clientHeight && e.scrollWidth === e.clientWidth &&
|
|
1069
|
-
}, r = (
|
|
1070
|
-
let
|
|
1071
|
-
|
|
1072
|
-
|
|
1424
|
+
e.scrollHeight === e.clientHeight && e.scrollWidth === e.clientWidth && d.preventDefault();
|
|
1425
|
+
}, r = (d) => {
|
|
1426
|
+
let u = d.target;
|
|
1427
|
+
je(u) && u !== document.activeElement && (d.preventDefault(), l(), u.style.transform = "translateY(-2000px)", u.focus(), requestAnimationFrame(() => {
|
|
1428
|
+
u.style.transform = "";
|
|
1073
1429
|
})), t && t();
|
|
1074
|
-
},
|
|
1075
|
-
let
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}) :
|
|
1430
|
+
}, a = (d) => {
|
|
1431
|
+
let u = d.target;
|
|
1432
|
+
je(u) && (l(), u.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
1433
|
+
u.style.transform = "", he && (he.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
1434
|
+
He(u);
|
|
1435
|
+
}) : he.addEventListener("resize", () => He(u), {
|
|
1080
1436
|
once: !0
|
|
1081
1437
|
}));
|
|
1082
1438
|
}));
|
|
1083
|
-
},
|
|
1084
|
-
if (
|
|
1085
|
-
let
|
|
1439
|
+
}, i = null, l = () => {
|
|
1440
|
+
if (i) return;
|
|
1441
|
+
let d = () => {
|
|
1086
1442
|
window.scrollTo(0, 0);
|
|
1087
|
-
},
|
|
1088
|
-
|
|
1089
|
-
window.scrollTo(
|
|
1443
|
+
}, u = window.pageXOffset, c = window.pageYOffset;
|
|
1444
|
+
i = se(j(window, "scroll", d), z(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), z(document.documentElement, "overflow", "hidden"), z(document.body, "marginTop", `-${c}px`), () => {
|
|
1445
|
+
window.scrollTo(u, c);
|
|
1090
1446
|
}), window.scrollTo(0, 0);
|
|
1091
|
-
},
|
|
1447
|
+
}, s = se(j(document, "touchstart", o, {
|
|
1092
1448
|
passive: !1,
|
|
1093
1449
|
capture: !0
|
|
1094
|
-
}),
|
|
1450
|
+
}), j(document, "touchmove", n, {
|
|
1095
1451
|
passive: !1,
|
|
1096
1452
|
capture: !0
|
|
1097
|
-
}),
|
|
1453
|
+
}), j(document, "touchend", r, {
|
|
1098
1454
|
passive: !1,
|
|
1099
1455
|
capture: !0
|
|
1100
|
-
}),
|
|
1456
|
+
}), j(document, "focus", a, !0));
|
|
1101
1457
|
return () => {
|
|
1102
|
-
t?.(),
|
|
1458
|
+
t?.(), i?.(), s();
|
|
1103
1459
|
};
|
|
1104
1460
|
}
|
|
1105
|
-
function
|
|
1461
|
+
function z(e, t, o) {
|
|
1106
1462
|
let n = e.style[t];
|
|
1107
1463
|
return e.style[t] = o, () => {
|
|
1108
1464
|
e.style[t] = n;
|
|
1109
1465
|
};
|
|
1110
1466
|
}
|
|
1111
|
-
function
|
|
1467
|
+
function j(e, t, o, n) {
|
|
1112
1468
|
return e.addEventListener(t, o, n), () => {
|
|
1113
1469
|
e.removeEventListener(t, o, n);
|
|
1114
1470
|
};
|
|
1115
1471
|
}
|
|
1116
|
-
function
|
|
1472
|
+
function He(e) {
|
|
1117
1473
|
let t = document.scrollingElement || document.documentElement;
|
|
1118
1474
|
for (; e && e !== t; ) {
|
|
1119
|
-
let o =
|
|
1475
|
+
let o = lt(e);
|
|
1120
1476
|
if (o !== document.documentElement && o !== document.body && o !== e) {
|
|
1121
1477
|
let n = o.getBoundingClientRect().top, r = e.getBoundingClientRect().top;
|
|
1122
1478
|
r > n + e.clientHeight && (o.scrollTop += r - n);
|
|
@@ -1124,137 +1480,137 @@ function Le(e) {
|
|
|
1124
1480
|
e = o.parentElement;
|
|
1125
1481
|
}
|
|
1126
1482
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return e instanceof HTMLInputElement && !
|
|
1129
|
-
}
|
|
1130
|
-
let
|
|
1131
|
-
function
|
|
1132
|
-
let o = new Set(e), n = /* @__PURE__ */ new Set(), r = (
|
|
1133
|
-
for (let
|
|
1134
|
-
let
|
|
1135
|
-
if (o.has(
|
|
1136
|
-
for (let
|
|
1137
|
-
if (
|
|
1483
|
+
function je(e) {
|
|
1484
|
+
return e instanceof HTMLInputElement && !en.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
|
|
1485
|
+
}
|
|
1486
|
+
let U = /* @__PURE__ */ new WeakMap(), N = [];
|
|
1487
|
+
function rn(e, t = document.body) {
|
|
1488
|
+
let o = new Set(e), n = /* @__PURE__ */ new Set(), r = (s) => {
|
|
1489
|
+
for (let m of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(m);
|
|
1490
|
+
let d = (m) => {
|
|
1491
|
+
if (o.has(m) || n.has(m.parentElement) && m.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
|
|
1492
|
+
for (let b of o)
|
|
1493
|
+
if (m.contains(b)) return NodeFilter.FILTER_SKIP;
|
|
1138
1494
|
return NodeFilter.FILTER_ACCEPT;
|
|
1139
|
-
},
|
|
1140
|
-
acceptNode:
|
|
1141
|
-
}),
|
|
1142
|
-
if (
|
|
1143
|
-
let
|
|
1144
|
-
for (;
|
|
1145
|
-
|
|
1495
|
+
}, u = document.createTreeWalker(s, NodeFilter.SHOW_ELEMENT, {
|
|
1496
|
+
acceptNode: d
|
|
1497
|
+
}), c = d(s);
|
|
1498
|
+
if (c === NodeFilter.FILTER_ACCEPT && a(s), c !== NodeFilter.FILTER_REJECT) {
|
|
1499
|
+
let m = u.nextNode();
|
|
1500
|
+
for (; m != null; )
|
|
1501
|
+
a(m), m = u.nextNode();
|
|
1146
1502
|
}
|
|
1147
|
-
},
|
|
1148
|
-
var
|
|
1149
|
-
let
|
|
1150
|
-
|
|
1503
|
+
}, a = (s) => {
|
|
1504
|
+
var d;
|
|
1505
|
+
let u = (d = U.get(s)) !== null && d !== void 0 ? d : 0;
|
|
1506
|
+
s.getAttribute("aria-hidden") === "true" && u === 0 || (u === 0 && s.setAttribute("aria-hidden", "true"), n.add(s), U.set(s, u + 1));
|
|
1151
1507
|
};
|
|
1152
|
-
|
|
1153
|
-
let
|
|
1154
|
-
for (let
|
|
1155
|
-
if (!(
|
|
1508
|
+
N.length && N[N.length - 1].disconnect(), r(t);
|
|
1509
|
+
let i = new MutationObserver((s) => {
|
|
1510
|
+
for (let d of s)
|
|
1511
|
+
if (!(d.type !== "childList" || d.addedNodes.length === 0) && ![
|
|
1156
1512
|
...o,
|
|
1157
1513
|
...n
|
|
1158
|
-
].some((
|
|
1159
|
-
for (let
|
|
1160
|
-
for (let
|
|
1161
|
-
(
|
|
1514
|
+
].some((u) => u.contains(d.target))) {
|
|
1515
|
+
for (let u of d.removedNodes) u instanceof Element && (o.delete(u), n.delete(u));
|
|
1516
|
+
for (let u of d.addedNodes)
|
|
1517
|
+
(u instanceof HTMLElement || u instanceof SVGElement) && (u.dataset.liveAnnouncer === "true" || u.dataset.reactAriaTopLayer === "true") ? o.add(u) : u instanceof Element && r(u);
|
|
1162
1518
|
}
|
|
1163
1519
|
});
|
|
1164
|
-
|
|
1520
|
+
i.observe(t, {
|
|
1165
1521
|
childList: !0,
|
|
1166
1522
|
subtree: !0
|
|
1167
1523
|
});
|
|
1168
|
-
let
|
|
1524
|
+
let l = {
|
|
1169
1525
|
observe() {
|
|
1170
|
-
|
|
1526
|
+
i.observe(t, {
|
|
1171
1527
|
childList: !0,
|
|
1172
1528
|
subtree: !0
|
|
1173
1529
|
});
|
|
1174
1530
|
},
|
|
1175
1531
|
disconnect() {
|
|
1176
|
-
|
|
1532
|
+
i.disconnect();
|
|
1177
1533
|
}
|
|
1178
1534
|
};
|
|
1179
|
-
return
|
|
1180
|
-
|
|
1181
|
-
for (let
|
|
1182
|
-
let
|
|
1183
|
-
|
|
1535
|
+
return N.push(l), () => {
|
|
1536
|
+
i.disconnect();
|
|
1537
|
+
for (let s of n) {
|
|
1538
|
+
let d = U.get(s);
|
|
1539
|
+
d === 1 ? (s.removeAttribute("aria-hidden"), U.delete(s)) : U.set(s, d - 1);
|
|
1184
1540
|
}
|
|
1185
|
-
|
|
1541
|
+
l === N[N.length - 1] ? (N.pop(), N.length && N[N.length - 1].observe()) : N.splice(N.indexOf(l), 1);
|
|
1186
1542
|
};
|
|
1187
1543
|
}
|
|
1188
|
-
const
|
|
1189
|
-
function
|
|
1544
|
+
const an = /* @__PURE__ */ Dt({});
|
|
1545
|
+
function ln() {
|
|
1190
1546
|
var e;
|
|
1191
|
-
return (e =
|
|
1547
|
+
return (e = q(an)) !== null && e !== void 0 ? e : {};
|
|
1192
1548
|
}
|
|
1193
|
-
const
|
|
1194
|
-
function
|
|
1195
|
-
let t =
|
|
1549
|
+
const ht = /* @__PURE__ */ h.createContext(null);
|
|
1550
|
+
function sn(e) {
|
|
1551
|
+
let t = et(), { portalContainer: o = t ? null : document.body, isExiting: n } = e, [r, a] = te(!1), i = X(() => ({
|
|
1196
1552
|
contain: r,
|
|
1197
|
-
setContain:
|
|
1553
|
+
setContain: a
|
|
1198
1554
|
}), [
|
|
1199
1555
|
r,
|
|
1200
|
-
|
|
1201
|
-
]), { getContainer:
|
|
1202
|
-
if (!e.portalContainer &&
|
|
1203
|
-
let
|
|
1204
|
-
return e.disableFocusManagement || (
|
|
1556
|
+
a
|
|
1557
|
+
]), { getContainer: l } = ln();
|
|
1558
|
+
if (!e.portalContainer && l && (o = l()), !o) return null;
|
|
1559
|
+
let s = e.children;
|
|
1560
|
+
return e.disableFocusManagement || (s = /* @__PURE__ */ h.createElement(zo, {
|
|
1205
1561
|
restoreFocus: !0,
|
|
1206
1562
|
contain: r && !n
|
|
1207
|
-
},
|
|
1208
|
-
value:
|
|
1209
|
-
}, /* @__PURE__ */
|
|
1563
|
+
}, s)), s = /* @__PURE__ */ h.createElement(ht.Provider, {
|
|
1564
|
+
value: i
|
|
1565
|
+
}, /* @__PURE__ */ h.createElement(Io, null, s)), /* @__PURE__ */ At.createPortal(s, o);
|
|
1210
1566
|
}
|
|
1211
|
-
function
|
|
1212
|
-
let e =
|
|
1213
|
-
|
|
1567
|
+
function $t() {
|
|
1568
|
+
let e = q(ht), t = e?.setContain;
|
|
1569
|
+
_(() => {
|
|
1214
1570
|
t?.(!0);
|
|
1215
1571
|
}, [
|
|
1216
1572
|
t
|
|
1217
1573
|
]);
|
|
1218
1574
|
}
|
|
1219
|
-
function
|
|
1220
|
-
let { overlayProps: n, underlayProps: r } =
|
|
1575
|
+
function dn(e, t, o) {
|
|
1576
|
+
let { overlayProps: n, underlayProps: r } = Qo({
|
|
1221
1577
|
...e,
|
|
1222
1578
|
isOpen: t.isOpen,
|
|
1223
1579
|
onClose: t.close
|
|
1224
1580
|
}, o);
|
|
1225
|
-
return
|
|
1581
|
+
return tn({
|
|
1226
1582
|
isDisabled: !t.isOpen
|
|
1227
|
-
}),
|
|
1228
|
-
if (t.isOpen) return
|
|
1583
|
+
}), $t(), S(() => {
|
|
1584
|
+
if (t.isOpen) return rn([
|
|
1229
1585
|
o.current
|
|
1230
1586
|
]);
|
|
1231
1587
|
}, [
|
|
1232
1588
|
t.isOpen,
|
|
1233
1589
|
o
|
|
1234
1590
|
]), {
|
|
1235
|
-
modalProps:
|
|
1591
|
+
modalProps: ao(n),
|
|
1236
1592
|
underlayProps: r
|
|
1237
1593
|
};
|
|
1238
1594
|
}
|
|
1239
|
-
function
|
|
1240
|
-
let { role: o = "dialog" } = e, n =
|
|
1595
|
+
function un(e, t) {
|
|
1596
|
+
let { role: o = "dialog" } = e, n = Yt();
|
|
1241
1597
|
n = e["aria-label"] ? void 0 : n;
|
|
1242
|
-
let r =
|
|
1243
|
-
return
|
|
1598
|
+
let r = $(!1);
|
|
1599
|
+
return S(() => {
|
|
1244
1600
|
if (t.current && !t.current.contains(document.activeElement)) {
|
|
1245
|
-
|
|
1246
|
-
let
|
|
1247
|
-
document.activeElement === t.current && (r.current = !0, t.current && (t.current.blur(),
|
|
1601
|
+
ye(t.current);
|
|
1602
|
+
let a = setTimeout(() => {
|
|
1603
|
+
document.activeElement === t.current && (r.current = !0, t.current && (t.current.blur(), ye(t.current)), r.current = !1);
|
|
1248
1604
|
}, 500);
|
|
1249
1605
|
return () => {
|
|
1250
|
-
clearTimeout(
|
|
1606
|
+
clearTimeout(a);
|
|
1251
1607
|
};
|
|
1252
1608
|
}
|
|
1253
1609
|
}, [
|
|
1254
1610
|
t
|
|
1255
|
-
]),
|
|
1611
|
+
]), $t(), {
|
|
1256
1612
|
dialogProps: {
|
|
1257
|
-
...
|
|
1613
|
+
...fo(e, {
|
|
1258
1614
|
labelable: !0
|
|
1259
1615
|
}),
|
|
1260
1616
|
role: o,
|
|
@@ -1263,8 +1619,8 @@ function Lo(e, t) {
|
|
|
1263
1619
|
// Prevent blur events from reaching useOverlay, which may cause
|
|
1264
1620
|
// popovers to close. Since focus is contained within the dialog,
|
|
1265
1621
|
// we don't want this to occur due to the above useEffect.
|
|
1266
|
-
onBlur: (
|
|
1267
|
-
r.current &&
|
|
1622
|
+
onBlur: (a) => {
|
|
1623
|
+
r.current && a.stopPropagation();
|
|
1268
1624
|
}
|
|
1269
1625
|
},
|
|
1270
1626
|
titleProps: {
|
|
@@ -1272,7 +1628,7 @@ function Lo(e, t) {
|
|
|
1272
1628
|
}
|
|
1273
1629
|
};
|
|
1274
1630
|
}
|
|
1275
|
-
function
|
|
1631
|
+
function cn(e, t, o) {
|
|
1276
1632
|
return t in e ? Object.defineProperty(e, t, {
|
|
1277
1633
|
value: o,
|
|
1278
1634
|
enumerable: !0,
|
|
@@ -1280,7 +1636,7 @@ function Fo(e, t, o) {
|
|
|
1280
1636
|
writable: !0
|
|
1281
1637
|
}) : e[t] = o, e;
|
|
1282
1638
|
}
|
|
1283
|
-
function
|
|
1639
|
+
function Ue(e, t) {
|
|
1284
1640
|
var o = Object.keys(e);
|
|
1285
1641
|
if (Object.getOwnPropertySymbols) {
|
|
1286
1642
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -1290,66 +1646,66 @@ function Ce(e, t) {
|
|
|
1290
1646
|
}
|
|
1291
1647
|
return o;
|
|
1292
1648
|
}
|
|
1293
|
-
function
|
|
1649
|
+
function Ge(e) {
|
|
1294
1650
|
for (var t = 1; t < arguments.length; t++) {
|
|
1295
1651
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
1296
|
-
t % 2 ?
|
|
1297
|
-
|
|
1298
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) :
|
|
1652
|
+
t % 2 ? Ue(Object(o), !0).forEach(function(n) {
|
|
1653
|
+
cn(e, n, o[n]);
|
|
1654
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Ue(Object(o)).forEach(function(n) {
|
|
1299
1655
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
1300
1656
|
});
|
|
1301
1657
|
}
|
|
1302
1658
|
return e;
|
|
1303
1659
|
}
|
|
1304
|
-
var
|
|
1660
|
+
var fn = (e, t, o) => {
|
|
1305
1661
|
for (var n of Object.keys(e)) {
|
|
1306
1662
|
var r;
|
|
1307
1663
|
if (e[n] !== ((r = t[n]) !== null && r !== void 0 ? r : o[n]))
|
|
1308
1664
|
return !1;
|
|
1309
1665
|
}
|
|
1310
1666
|
return !0;
|
|
1311
|
-
},
|
|
1312
|
-
var o = e.defaultClassName, n =
|
|
1667
|
+
}, wt = (e) => (t) => {
|
|
1668
|
+
var o = e.defaultClassName, n = Ge(Ge({}, e.defaultVariants), t);
|
|
1313
1669
|
for (var r in n) {
|
|
1314
|
-
var
|
|
1315
|
-
if (
|
|
1316
|
-
var
|
|
1317
|
-
typeof
|
|
1318
|
-
var
|
|
1670
|
+
var a, i = (a = n[r]) !== null && a !== void 0 ? a : e.defaultVariants[r];
|
|
1671
|
+
if (i != null) {
|
|
1672
|
+
var l = i;
|
|
1673
|
+
typeof l == "boolean" && (l = l === !0 ? "true" : "false");
|
|
1674
|
+
var s = (
|
|
1319
1675
|
// @ts-expect-error
|
|
1320
|
-
e.variantClassNames[r][
|
|
1676
|
+
e.variantClassNames[r][l]
|
|
1321
1677
|
);
|
|
1322
|
-
|
|
1678
|
+
s && (o += " " + s);
|
|
1323
1679
|
}
|
|
1324
1680
|
}
|
|
1325
|
-
for (var [
|
|
1326
|
-
|
|
1681
|
+
for (var [d, u] of e.compoundVariants)
|
|
1682
|
+
fn(d, n, e.defaultVariants) && (o += " " + u);
|
|
1327
1683
|
return o;
|
|
1328
|
-
},
|
|
1329
|
-
function
|
|
1684
|
+
}, mn = wt({ defaultClassName: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto20", variantClassNames: { kind: { informational: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto21", delete: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto22", failure: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto23", success: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto24", warning: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto25", successWithFailures: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto26", form: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto27" }, size: { sm: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto28", md: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto29", lg: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2a", xl: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2b" }, fullHeight: { true: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2c", false: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2d" } }, defaultVariants: {}, compoundVariants: [] }), pn = wt({ defaultClassName: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2e", variantClassNames: { kind: { form: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2f", delete: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2g", failure: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2h", informational: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2i", success: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2j", warning: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2k", successWithFailures: "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2l" } }, defaultVariants: {}, compoundVariants: [] }), bn = "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2m", gn = "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2n", vn = "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2o", Et = "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2p", hn = "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2q", $n = "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2r", wn = "pkg_sps-woodland_modal__version_8_42_2__hash_3moto2s";
|
|
1685
|
+
function _t({
|
|
1330
1686
|
children: e,
|
|
1331
1687
|
className: t = "",
|
|
1332
1688
|
...o
|
|
1333
1689
|
}) {
|
|
1334
|
-
return /* @__PURE__ */
|
|
1690
|
+
return /* @__PURE__ */ f.createElement("div", { className: we(Et, t), ...o }, e);
|
|
1335
1691
|
}
|
|
1336
|
-
|
|
1337
|
-
function
|
|
1692
|
+
Ye.set(_t, { name: "ModalFooter" });
|
|
1693
|
+
function Je({
|
|
1338
1694
|
dismissableValue: e,
|
|
1339
1695
|
handleClose: t
|
|
1340
1696
|
}) {
|
|
1341
|
-
return e ? /* @__PURE__ */
|
|
1342
|
-
|
|
1697
|
+
return e ? /* @__PURE__ */ f.createElement(
|
|
1698
|
+
Qe,
|
|
1343
1699
|
{
|
|
1344
1700
|
"aria-label": "Close",
|
|
1345
1701
|
onClick: t,
|
|
1346
1702
|
kind: "icon",
|
|
1347
1703
|
icon: "x",
|
|
1348
|
-
className:
|
|
1704
|
+
className: hn
|
|
1349
1705
|
}
|
|
1350
1706
|
) : null;
|
|
1351
1707
|
}
|
|
1352
|
-
const
|
|
1708
|
+
const Xe = Object.freeze({
|
|
1353
1709
|
form: "pencil",
|
|
1354
1710
|
delete: "trash",
|
|
1355
1711
|
failure: "status-error",
|
|
@@ -1358,63 +1714,63 @@ const Oe = Object.freeze({
|
|
|
1358
1714
|
successWithFailures: "status-warning",
|
|
1359
1715
|
warning: "status-warning"
|
|
1360
1716
|
});
|
|
1361
|
-
function
|
|
1717
|
+
function En({
|
|
1362
1718
|
children: e,
|
|
1363
1719
|
className: t,
|
|
1364
1720
|
"data-testid": o,
|
|
1365
1721
|
kind: n = "informational",
|
|
1366
1722
|
onBlur: r,
|
|
1367
|
-
onFocus:
|
|
1368
|
-
overlayProps:
|
|
1369
|
-
size:
|
|
1370
|
-
state:
|
|
1371
|
-
title:
|
|
1372
|
-
dismissible:
|
|
1373
|
-
dismissable:
|
|
1374
|
-
onClose:
|
|
1375
|
-
fullHeight:
|
|
1376
|
-
...
|
|
1723
|
+
onFocus: a,
|
|
1724
|
+
overlayProps: i,
|
|
1725
|
+
size: l = "sm",
|
|
1726
|
+
state: s,
|
|
1727
|
+
title: d,
|
|
1728
|
+
dismissible: u,
|
|
1729
|
+
dismissable: c = !0,
|
|
1730
|
+
onClose: m,
|
|
1731
|
+
fullHeight: b = !1,
|
|
1732
|
+
...p
|
|
1377
1733
|
}) {
|
|
1378
|
-
const
|
|
1734
|
+
const P = u ?? c, L = f.useRef(null), { modalProps: V, underlayProps: ne } = dn(
|
|
1379
1735
|
{
|
|
1380
|
-
isKeyboardDismissDisabled: !
|
|
1381
|
-
...
|
|
1736
|
+
isKeyboardDismissDisabled: !P,
|
|
1737
|
+
...p
|
|
1382
1738
|
},
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
), { dialogProps:
|
|
1739
|
+
s,
|
|
1740
|
+
L
|
|
1741
|
+
), { dialogProps: H, titleProps: yt } = un(p, L), kt = Oe(V.onFocus, H.onFocus, a), Pt = Oe(V.onBlur, H.onBlur, r), { t: Nt } = Rt(), Tt = Lt({ "data-testid": o }), [me, xt] = Ft(
|
|
1386
1742
|
e,
|
|
1387
|
-
[{ type:
|
|
1388
|
-
),
|
|
1389
|
-
|
|
1390
|
-
}, [
|
|
1391
|
-
return /* @__PURE__ */
|
|
1743
|
+
[{ type: _t }]
|
|
1744
|
+
), Ce = f.useCallback(() => {
|
|
1745
|
+
m && typeof m == "function" && m(), s.close();
|
|
1746
|
+
}, [m, s.close]), St = Ct(xt, (Be) => Be.type === Je ? [{ className: we(Be.props.classname, $n) }] : []);
|
|
1747
|
+
return /* @__PURE__ */ f.createElement(sn, null, /* @__PURE__ */ f.createElement("div", { className: wn, ...ne, ...p }, /* @__PURE__ */ f.createElement(
|
|
1392
1748
|
"div",
|
|
1393
1749
|
{
|
|
1394
|
-
...
|
|
1395
|
-
...
|
|
1396
|
-
...
|
|
1397
|
-
onFocus:
|
|
1398
|
-
onBlur:
|
|
1399
|
-
...
|
|
1400
|
-
ref:
|
|
1401
|
-
className:
|
|
1750
|
+
...V,
|
|
1751
|
+
...H,
|
|
1752
|
+
...i,
|
|
1753
|
+
onFocus: kt,
|
|
1754
|
+
onBlur: Pt,
|
|
1755
|
+
...Tt("dialog"),
|
|
1756
|
+
ref: L,
|
|
1757
|
+
className: we(mn({ kind: n, size: l, fullHeight: b }), t)
|
|
1402
1758
|
},
|
|
1403
|
-
/* @__PURE__ */
|
|
1404
|
-
|
|
1759
|
+
/* @__PURE__ */ f.createElement("div", { ...yt, className: pn({ kind: n }) }, n && /* @__PURE__ */ f.createElement(
|
|
1760
|
+
Bt,
|
|
1405
1761
|
{
|
|
1406
|
-
icon:
|
|
1407
|
-
className:
|
|
1762
|
+
icon: Xe[n] || Xe.informational,
|
|
1763
|
+
className: gn
|
|
1408
1764
|
}
|
|
1409
|
-
), /* @__PURE__ */
|
|
1410
|
-
/* @__PURE__ */
|
|
1411
|
-
|
|
1765
|
+
), /* @__PURE__ */ f.createElement("div", { className: bn }, pe(d, s.close)), /* @__PURE__ */ f.createElement(Je, { dismissableValue: P, handleClose: Ce })),
|
|
1766
|
+
/* @__PURE__ */ f.createElement("div", { className: vn }, pe(St, s.close)),
|
|
1767
|
+
me && me.length > 0 ? /* @__PURE__ */ f.createElement(f.Fragment, null, pe(me, s.close)) : /* @__PURE__ */ f.createElement("div", { className: Et }, /* @__PURE__ */ f.createElement(Qe, { kind: "key", onClick: Ce }, Nt("modal.defaultButtonLabel", { defaultValue: "Okay" })))
|
|
1412
1768
|
)));
|
|
1413
1769
|
}
|
|
1414
|
-
function
|
|
1415
|
-
return e.state.isOpen ? /* @__PURE__ */
|
|
1770
|
+
function Mt(e) {
|
|
1771
|
+
return e.state.isOpen ? /* @__PURE__ */ f.createElement(En, { ...e }, e.children) : /* @__PURE__ */ f.createElement(f.Fragment, null);
|
|
1416
1772
|
}
|
|
1417
|
-
|
|
1773
|
+
Ye.set(Mt, {
|
|
1418
1774
|
name: "Modal",
|
|
1419
1775
|
props: {
|
|
1420
1776
|
dismissable: { type: "boolean", default: "true" },
|
|
@@ -1427,17 +1783,17 @@ De.set(nt, {
|
|
|
1427
1783
|
title: { type: "string" }
|
|
1428
1784
|
}
|
|
1429
1785
|
});
|
|
1430
|
-
function
|
|
1431
|
-
let [t, o] =
|
|
1432
|
-
const n =
|
|
1786
|
+
function _n(e) {
|
|
1787
|
+
let [t, o] = Fo(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
|
|
1788
|
+
const n = k(() => {
|
|
1433
1789
|
o(!0);
|
|
1434
1790
|
}, [
|
|
1435
1791
|
o
|
|
1436
|
-
]), r =
|
|
1792
|
+
]), r = k(() => {
|
|
1437
1793
|
o(!1);
|
|
1438
1794
|
}, [
|
|
1439
1795
|
o
|
|
1440
|
-
]),
|
|
1796
|
+
]), a = k(() => {
|
|
1441
1797
|
o(!t);
|
|
1442
1798
|
}, [
|
|
1443
1799
|
o,
|
|
@@ -1448,42 +1804,43 @@ function qo(e) {
|
|
|
1448
1804
|
setOpen: o,
|
|
1449
1805
|
open: n,
|
|
1450
1806
|
close: r,
|
|
1451
|
-
toggle:
|
|
1807
|
+
toggle: a
|
|
1452
1808
|
};
|
|
1453
1809
|
}
|
|
1454
|
-
function
|
|
1455
|
-
const t =
|
|
1810
|
+
function Sn(e = {}) {
|
|
1811
|
+
const t = _n(e), o = $(null), { triggerProps: n, overlayProps: r } = Zo(
|
|
1456
1812
|
{},
|
|
1457
1813
|
t,
|
|
1458
1814
|
o
|
|
1459
1815
|
), {
|
|
1460
|
-
onPress:
|
|
1461
|
-
...
|
|
1816
|
+
onPress: a,
|
|
1817
|
+
...i
|
|
1462
1818
|
} = n;
|
|
1463
1819
|
return {
|
|
1464
1820
|
triggerProps: {
|
|
1465
|
-
...
|
|
1466
|
-
|
|
1821
|
+
...i,
|
|
1822
|
+
// Forward event to onPress (types differ but handler doesn't inspect event)
|
|
1823
|
+
onClick: a ? (l) => a(l) : void 0,
|
|
1467
1824
|
ref: o
|
|
1468
1825
|
},
|
|
1469
1826
|
modalState: t,
|
|
1470
1827
|
modalProps: { overlayProps: r, state: t }
|
|
1471
1828
|
};
|
|
1472
1829
|
}
|
|
1473
|
-
const
|
|
1474
|
-
description: () => /* @__PURE__ */
|
|
1475
|
-
components: [
|
|
1830
|
+
const Mn = {
|
|
1831
|
+
description: () => /* @__PURE__ */ f.createElement("p", null, "Modals are overlays on a page that focus a user’s attention on an important message or a simple action. Examples of a Modal include confirming the deletion of a record, or making a single selection."),
|
|
1832
|
+
components: [Mt],
|
|
1476
1833
|
examples: {
|
|
1477
1834
|
general: {
|
|
1478
1835
|
label: "Usage",
|
|
1479
|
-
description: ({ NavigateTo: e }) => /* @__PURE__ */
|
|
1836
|
+
description: ({ NavigateTo: e }) => /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("h5", null, "Use a Modal:"), /* @__PURE__ */ f.createElement("ul", null, /* @__PURE__ */ f.createElement("li", null, "When the user needs to confirm a basic decision, such as deleting a record."), /* @__PURE__ */ f.createElement("li", null, "When important information needs to be displayed to the user before continuing."), /* @__PURE__ */ f.createElement("li", null, "When a simple selection, such as a single form input, is required before proceeding.")), /* @__PURE__ */ f.createElement("h5", null, "Avoid a Modal:"), /* @__PURE__ */ f.createElement("ul", null, /* @__PURE__ */ f.createElement("li", null, "When a complex form is required. Use a ", /* @__PURE__ */ f.createElement(e, { to: "focused-task" }, "Focused Task View"), " instead."), /* @__PURE__ */ f.createElement("li", null, "When sharing non-critical or tertiary information. Use a ", /* @__PURE__ */ f.createElement(e, { to: "growlers" }, "Growler"), " instead.")))
|
|
1480
1837
|
},
|
|
1481
1838
|
implementation: {
|
|
1482
1839
|
label: "Close Button",
|
|
1483
|
-
description: () => /* @__PURE__ */
|
|
1840
|
+
description: () => /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("h5", null, "Close Button and Modal dismissiability"), /* @__PURE__ */ f.createElement("p", null, "Remove the Close Button in the upper right of the Modal if the user must choose the course of action before proceeding."), /* @__PURE__ */ f.createElement("p", null, "The close button is included by default and omitted when the prop ", /* @__PURE__ */ f.createElement("code", null, "dismissable"), " is set to ", /* @__PURE__ */ f.createElement("strong", null, "false"), "."), /* @__PURE__ */ f.createElement("p", null, "Setting the ", /* @__PURE__ */ f.createElement("code", null, "dismissable"), " prop to false also prevents dismissing the modal by clicking outside of the modal or by using the", " ", /* @__PURE__ */ f.createElement("strong", null, "escape"), " key.")),
|
|
1484
1841
|
examples: {
|
|
1485
1842
|
basic: {
|
|
1486
|
-
react:
|
|
1843
|
+
react: g`
|
|
1487
1844
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1488
1845
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1489
1846
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1532,7 +1889,7 @@ const Vo = {
|
|
|
1532
1889
|
},
|
|
1533
1890
|
hooks: {
|
|
1534
1891
|
label: "Using Hooks",
|
|
1535
|
-
description: () => /* @__PURE__ */
|
|
1892
|
+
description: () => /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("h5", null, "Using the hook"), /* @__PURE__ */ f.createElement("p", null, "To use any modals, you must call the ", /* @__PURE__ */ f.createElement("code", null, "useModal"), " hook. Optional arguments for this hook include:"), /* @__PURE__ */ f.createElement("dl", null, /* @__PURE__ */ f.createElement("dt", null, /* @__PURE__ */ f.createElement("code", null, "isOpen"), ": boolean"), /* @__PURE__ */ f.createElement("dd", null, "Whether the overlay is open by default (controlled)"), /* @__PURE__ */ f.createElement("dt", null, /* @__PURE__ */ f.createElement("code", null, "defaultOpen"), ": boolean"), /* @__PURE__ */ f.createElement("dd", null, "Whether the overlay is open by default (uncontrolled)."), /* @__PURE__ */ f.createElement("dt", null, /* @__PURE__ */ f.createElement("code", null, "onOpenChange"), ": function"), /* @__PURE__ */ f.createElement("dd", null, "Handler that is called when the overlay's open state changes.", /* @__PURE__ */ f.createElement("code", null, "(isOpen: boolean) => void"))), /* @__PURE__ */ f.createElement("h5", null, "Modal Props, Modal State, and Trigger Props"), /* @__PURE__ */ f.createElement("p", null, "The ", /* @__PURE__ */ f.createElement("code", null, "useModal"), " returns an object with ", /* @__PURE__ */ f.createElement("code", null, "modalProps"), ", ", /* @__PURE__ */ f.createElement("code", null, "modalState"), " and ", /* @__PURE__ */ f.createElement("code", null, "triggerProps")), /* @__PURE__ */ f.createElement("p", null, "The ", /* @__PURE__ */ f.createElement("code", null, "triggerProps"), " need to be spread on the element that triggers the modal."), /* @__PURE__ */ f.createElement("p", null, "The ", /* @__PURE__ */ f.createElement("code", null, "modalState"), " object (which is also included in ", /* @__PURE__ */ f.createElement("code", null, "modalProps"), ") allows programmatic access to the state of the modal. This includes a read only ", /* @__PURE__ */ f.createElement("code", null, "isOpen"), " property, a ", /* @__PURE__ */ f.createElement("code", null, "setOpen(isOpen: boolean)"), " method which can be use to set whether the overlay is open, an ", /* @__PURE__ */ f.createElement("code", null, "open()"), " method which opens the overlay, a ", /* @__PURE__ */ f.createElement("code", null, "close()"), " method which closes the overlay and a ", /* @__PURE__ */ f.createElement("code", null, "toggle()"), " method that toggles the overlay's visiblity."), /* @__PURE__ */ f.createElement("p", null, "The ", /* @__PURE__ */ f.createElement("code", null, "modalProps"), " should be spread on the actual ", /* @__PURE__ */ f.createElement("code", null, "Modal"), " component."), /* @__PURE__ */ f.createElement("p", null, "Please refer to the examples to see its implementation"))
|
|
1536
1893
|
},
|
|
1537
1894
|
informational: {
|
|
1538
1895
|
label: "Informational",
|
|
@@ -1541,7 +1898,7 @@ const Vo = {
|
|
|
1541
1898
|
examples: {
|
|
1542
1899
|
small: {
|
|
1543
1900
|
description: "Small",
|
|
1544
|
-
react:
|
|
1901
|
+
react: g`
|
|
1545
1902
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1546
1903
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1547
1904
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1570,7 +1927,7 @@ const Vo = {
|
|
|
1570
1927
|
},
|
|
1571
1928
|
medium: {
|
|
1572
1929
|
description: "Medium",
|
|
1573
|
-
react:
|
|
1930
|
+
react: g`
|
|
1574
1931
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1575
1932
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1576
1933
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1596,7 +1953,7 @@ const Vo = {
|
|
|
1596
1953
|
},
|
|
1597
1954
|
large: {
|
|
1598
1955
|
description: "Large",
|
|
1599
|
-
react:
|
|
1956
|
+
react: g`
|
|
1600
1957
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1601
1958
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1602
1959
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1622,7 +1979,7 @@ const Vo = {
|
|
|
1622
1979
|
},
|
|
1623
1980
|
xlarge: {
|
|
1624
1981
|
description: "Extra Large",
|
|
1625
|
-
react:
|
|
1982
|
+
react: g`
|
|
1626
1983
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1627
1984
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1628
1985
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1655,7 +2012,7 @@ const Vo = {
|
|
|
1655
2012
|
examples: {
|
|
1656
2013
|
small: {
|
|
1657
2014
|
description: "Small",
|
|
1658
|
-
react:
|
|
2015
|
+
react: g`
|
|
1659
2016
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1660
2017
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1661
2018
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1677,7 +2034,7 @@ const Vo = {
|
|
|
1677
2034
|
},
|
|
1678
2035
|
medium: {
|
|
1679
2036
|
description: "Medium",
|
|
1680
|
-
react:
|
|
2037
|
+
react: g`
|
|
1681
2038
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1682
2039
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1683
2040
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1698,7 +2055,7 @@ const Vo = {
|
|
|
1698
2055
|
},
|
|
1699
2056
|
large: {
|
|
1700
2057
|
description: "Large",
|
|
1701
|
-
react:
|
|
2058
|
+
react: g`
|
|
1702
2059
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1703
2060
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1704
2061
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1720,7 +2077,7 @@ const Vo = {
|
|
|
1720
2077
|
},
|
|
1721
2078
|
xlarge: {
|
|
1722
2079
|
description: "Extra Large",
|
|
1723
|
-
react:
|
|
2080
|
+
react: g`
|
|
1724
2081
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1725
2082
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1726
2083
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1747,7 +2104,7 @@ const Vo = {
|
|
|
1747
2104
|
examples: {
|
|
1748
2105
|
small: {
|
|
1749
2106
|
description: "Small",
|
|
1750
|
-
react:
|
|
2107
|
+
react: g`
|
|
1751
2108
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1752
2109
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1753
2110
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1769,7 +2126,7 @@ const Vo = {
|
|
|
1769
2126
|
},
|
|
1770
2127
|
medium: {
|
|
1771
2128
|
description: "Medium",
|
|
1772
|
-
react:
|
|
2129
|
+
react: g`
|
|
1773
2130
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1774
2131
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1775
2132
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1790,7 +2147,7 @@ const Vo = {
|
|
|
1790
2147
|
},
|
|
1791
2148
|
large: {
|
|
1792
2149
|
description: "Large",
|
|
1793
|
-
react:
|
|
2150
|
+
react: g`
|
|
1794
2151
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1795
2152
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1796
2153
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1812,7 +2169,7 @@ const Vo = {
|
|
|
1812
2169
|
},
|
|
1813
2170
|
xlarge: {
|
|
1814
2171
|
description: "Extra Large",
|
|
1815
|
-
react:
|
|
2172
|
+
react: g`
|
|
1816
2173
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1817
2174
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1818
2175
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1839,7 +2196,7 @@ const Vo = {
|
|
|
1839
2196
|
examples: {
|
|
1840
2197
|
small: {
|
|
1841
2198
|
description: "Small",
|
|
1842
|
-
react:
|
|
2199
|
+
react: g`
|
|
1843
2200
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1844
2201
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1845
2202
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1861,7 +2218,7 @@ const Vo = {
|
|
|
1861
2218
|
},
|
|
1862
2219
|
medium: {
|
|
1863
2220
|
description: "Medium",
|
|
1864
|
-
react:
|
|
2221
|
+
react: g`
|
|
1865
2222
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1866
2223
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1867
2224
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1882,7 +2239,7 @@ const Vo = {
|
|
|
1882
2239
|
},
|
|
1883
2240
|
large: {
|
|
1884
2241
|
description: "Large",
|
|
1885
|
-
react:
|
|
2242
|
+
react: g`
|
|
1886
2243
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1887
2244
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1888
2245
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1904,7 +2261,7 @@ const Vo = {
|
|
|
1904
2261
|
},
|
|
1905
2262
|
xlarge: {
|
|
1906
2263
|
description: "Extra Large",
|
|
1907
|
-
react:
|
|
2264
|
+
react: g`
|
|
1908
2265
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1909
2266
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1910
2267
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1931,7 +2288,7 @@ const Vo = {
|
|
|
1931
2288
|
examples: {
|
|
1932
2289
|
small: {
|
|
1933
2290
|
description: "Small",
|
|
1934
|
-
react:
|
|
2291
|
+
react: g`
|
|
1935
2292
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1936
2293
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1937
2294
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1953,7 +2310,7 @@ const Vo = {
|
|
|
1953
2310
|
},
|
|
1954
2311
|
medium: {
|
|
1955
2312
|
description: "Medium",
|
|
1956
|
-
react:
|
|
2313
|
+
react: g`
|
|
1957
2314
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1958
2315
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1959
2316
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1974,7 +2331,7 @@ const Vo = {
|
|
|
1974
2331
|
},
|
|
1975
2332
|
large: {
|
|
1976
2333
|
description: "Large",
|
|
1977
|
-
react:
|
|
2334
|
+
react: g`
|
|
1978
2335
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
1979
2336
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
1980
2337
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -1996,7 +2353,7 @@ const Vo = {
|
|
|
1996
2353
|
},
|
|
1997
2354
|
xlarge: {
|
|
1998
2355
|
description: "Extra Large",
|
|
1999
|
-
react:
|
|
2356
|
+
react: g`
|
|
2000
2357
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
2001
2358
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
2002
2359
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -2023,7 +2380,7 @@ const Vo = {
|
|
|
2023
2380
|
examples: {
|
|
2024
2381
|
small: {
|
|
2025
2382
|
description: "Small",
|
|
2026
|
-
react:
|
|
2383
|
+
react: g`
|
|
2027
2384
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
2028
2385
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
2029
2386
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -2050,7 +2407,7 @@ const Vo = {
|
|
|
2050
2407
|
},
|
|
2051
2408
|
medium: {
|
|
2052
2409
|
description: "Medium",
|
|
2053
|
-
react:
|
|
2410
|
+
react: g`
|
|
2054
2411
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
2055
2412
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
2056
2413
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -2075,7 +2432,7 @@ const Vo = {
|
|
|
2075
2432
|
},
|
|
2076
2433
|
large: {
|
|
2077
2434
|
description: "Large",
|
|
2078
|
-
react:
|
|
2435
|
+
react: g`
|
|
2079
2436
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
2080
2437
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
2081
2438
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -2097,7 +2454,7 @@ const Vo = {
|
|
|
2097
2454
|
},
|
|
2098
2455
|
xlarge: {
|
|
2099
2456
|
description: "Extra Large",
|
|
2100
|
-
react:
|
|
2457
|
+
react: g`
|
|
2101
2458
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
2102
2459
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
2103
2460
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -2124,7 +2481,7 @@ const Vo = {
|
|
|
2124
2481
|
examples: {
|
|
2125
2482
|
small: {
|
|
2126
2483
|
description: "Small",
|
|
2127
|
-
react:
|
|
2484
|
+
react: g`
|
|
2128
2485
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
2129
2486
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
2130
2487
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -2146,7 +2503,7 @@ const Vo = {
|
|
|
2146
2503
|
},
|
|
2147
2504
|
medium: {
|
|
2148
2505
|
description: "Medium",
|
|
2149
|
-
react:
|
|
2506
|
+
react: g`
|
|
2150
2507
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
2151
2508
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
2152
2509
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -2167,7 +2524,7 @@ const Vo = {
|
|
|
2167
2524
|
},
|
|
2168
2525
|
large: {
|
|
2169
2526
|
description: "Large",
|
|
2170
|
-
react:
|
|
2527
|
+
react: g`
|
|
2171
2528
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
2172
2529
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
2173
2530
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -2189,7 +2546,7 @@ const Vo = {
|
|
|
2189
2546
|
},
|
|
2190
2547
|
xlarge: {
|
|
2191
2548
|
description: "Extra Large",
|
|
2192
|
-
react:
|
|
2549
|
+
react: g`
|
|
2193
2550
|
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
|
|
2194
2551
|
import { sprinkles } from "@sps-woodland/tokens";
|
|
2195
2552
|
import { Button } from "@sps-woodland/buttons";
|
|
@@ -2211,13 +2568,13 @@ const Vo = {
|
|
|
2211
2568
|
}
|
|
2212
2569
|
}
|
|
2213
2570
|
}
|
|
2214
|
-
},
|
|
2215
|
-
Modals:
|
|
2571
|
+
}, Ln = {
|
|
2572
|
+
Modals: Mn
|
|
2216
2573
|
};
|
|
2217
2574
|
export {
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2575
|
+
Ln as MANIFEST,
|
|
2576
|
+
Mt as Modal,
|
|
2577
|
+
_t as ModalFooter,
|
|
2578
|
+
Xe as ModalIcons,
|
|
2579
|
+
Sn as useModal
|
|
2223
2580
|
};
|