@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 CHANGED
@@ -1,121 +1,116 @@
1
- import { Metadata as De, cl as ue, combineEventHandlers as Me, useChildTestIdAttrBuilder as mt, selectChildren as pt, modChildren as ft, Icon as gt, contentOf as le } from "@sps-woodland/core";
2
- import { Button as We } from "@sps-woodland/buttons";
3
- import * as u from "react";
4
- import $, { useRef as M, useCallback as T, useState as K, useContext as A, useEffect as L, useMemo as q, createContext as bt } from "react";
5
- import { useWoodlandLanguage as vt } from "@spscommerce/i18n";
6
- import ht from "react-dom";
7
- import { code as b } from "@spscommerce/utils";
8
- const w = typeof document < "u" ? $.useLayoutEffect : () => {
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 H(e) {
11
- const t = M(null);
12
- return w(() => {
13
- t.current = e;
14
- }, [
15
- e
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
- t === a.value ? r() : o(a.value);
30
- });
31
- w(() => {
32
- n.current && r();
18
+ n.current === l.value ? a.current() : o(l.value);
33
19
  });
34
- let l = H((a) => {
35
- n.current = a(t), r();
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
- l
30
+ i
40
31
  ];
41
32
  }
42
- const Y = {
33
+ const le = {
43
34
  prefix: String(Math.round(Math.random() * 1e10)),
44
35
  current: 0
45
- }, Ae = /* @__PURE__ */ $.createContext(Y), wt = /* @__PURE__ */ $.createContext(!1);
46
- let Et = !!(typeof window < "u" && window.document && window.document.createElement), ie = /* @__PURE__ */ new WeakMap();
47
- function _t(e = !1) {
48
- let t = A(Ae), o = M(null);
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 l = (r = $.__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;
52
- if (l) {
53
- let a = ie.get(l);
54
- a == null ? ie.set(l, {
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: l.memoizedState
57
- }) : l.memoizedState !== a.state && (t.current = a.id, ie.delete(l));
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 Mt(e) {
64
- let t = A(Ae);
65
- t === Y && !Et && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
66
- let o = _t(!!e), n = t === Y && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
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 yt(e) {
70
- let t = $.useId(), [o] = K(Ie()), n = o || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Y.prefix}`;
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 Pt = typeof $.useId == "function" ? yt : Mt;
74
- function kt() {
64
+ const Ht = typeof h.useId == "function" ? qt : Kt;
65
+ function jt() {
75
66
  return !1;
76
67
  }
77
- function Tt() {
68
+ function Ut() {
78
69
  return !0;
79
70
  }
80
- function xt(e) {
71
+ function Gt(e) {
81
72
  return () => {
82
73
  };
83
74
  }
84
- function Ie() {
85
- return typeof $.useSyncExternalStore == "function" ? $.useSyncExternalStore(xt, kt, Tt) : A(wt);
86
- }
87
- let St = !!(typeof window < "u" && window.document && window.document.createElement), F = /* @__PURE__ */ new Map();
88
- function ze(e) {
89
- let [t, o] = K(e), n = M(null), r = Pt(t), l = T((a) => {
90
- n.current = a;
91
- }, []);
92
- return St && (F.has(r) && !F.get(r).includes(l) ? F.set(r, [
93
- ...F.get(r),
94
- l
95
- ]) : F.set(r, [
96
- l
97
- ])), w(() => {
98
- let a = r;
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
- F.delete(a);
93
+ G && G.unregister(a), K.delete(i);
101
94
  };
102
95
  }, [
103
96
  r
104
- ]), L(() => {
105
- let a = n.current;
106
- a && (n.current = null, o(a));
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 Lt(e, t) {
104
+ function Xt(e, t) {
110
105
  if (e === t) return e;
111
- let o = F.get(e);
106
+ let o = K.get(e);
112
107
  if (o)
113
- return o.forEach((r) => r(t)), t;
114
- let n = F.get(t);
115
- return n ? (n.forEach((r) => r(e)), e) : t;
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 Ft(e = []) {
118
- let t = ze(), [o, n] = $t(t), r = 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 w(r, [
121
+ return _(r, [
127
122
  t,
128
123
  r,
129
124
  ...e
130
125
  ]), o;
131
126
  }
132
- function Q(...e) {
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
- }, Z = (e) => e && "window" in e && e.window === e ? e : E(e).defaultView || window;
141
- function Re(e) {
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 = Re(e[t])) && (n && (n += " "), n += 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 Ct() {
151
- for (var e, t, o = 0, n = "", r = arguments.length; o < r; o++) (e = arguments[o]) && (t = Re(e)) && (n && (n += " "), n += 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 Bt(...e) {
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 l = t[r], a = n[r];
162
- typeof l == "function" && typeof a == "function" && // This is a lot faster than a regex.
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] = Q(l, a) : (r === "className" || r === "UNSAFE_className") && typeof l == "string" && typeof a == "string" ? t[r] = Ct(l, a) : r === "id" && l && a ? t.id = Lt(l, a) : t[r] = a !== void 0 ? a : l;
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 Nt = /* @__PURE__ */ new Set([
342
+ const io = /* @__PURE__ */ new Set([
171
343
  "id"
172
- ]), Ot = /* @__PURE__ */ new Set([
344
+ ]), lo = /* @__PURE__ */ new Set([
173
345
  "aria-label",
174
346
  "aria-labelledby",
175
347
  "aria-describedby",
176
348
  "aria-details"
177
- ]), Dt = /* @__PURE__ */ new Set([
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
- ]), Wt = /^(data-.*)$/;
186
- function At(e, t = {}) {
187
- let { labelable: o, isLink: n, propNames: r } = t, l = {};
188
- for (const a in e) Object.prototype.hasOwnProperty.call(e, a) && (Nt.has(a) || o && Ot.has(a) || n && Dt.has(a) || r?.has(a) || Wt.test(a)) && (l[a] = e[a]);
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 ye(e) {
192
- if (It()) e.focus({
404
+ function Ee(e) {
405
+ if (mo()) e.focus({
193
406
  preventScroll: !0
194
407
  });
195
408
  else {
196
- let t = zt(e);
197
- e.focus(), Rt(t);
409
+ let t = po(e);
410
+ e.focus(), bo(t);
198
411
  }
199
412
  }
200
- let G = null;
201
- function It() {
202
- if (G == null) {
203
- G = !1;
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 G = !0, !0;
420
+ return re = !0, !0;
208
421
  }
209
422
  });
210
423
  } catch {
211
424
  }
212
425
  }
213
- return G;
426
+ return re;
214
427
  }
215
- function zt(e) {
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 Rt(e) {
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 qt(e) {
446
+ function fe(e) {
234
447
  var t;
235
- return typeof window > "u" || window.navigator == null ? !1 : ((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands.some((o) => e.test(o.brand))) || e.test(window.navigator.userAgent);
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 ve(e) {
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 j(e) {
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 qe = j(function() {
246
- return ve(/^Mac/i);
247
- }), Vt = j(function() {
248
- return ve(/^iPhone/i);
249
- }), Ht = j(function() {
250
- return ve(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
251
- qe() && navigator.maxTouchPoints > 1;
252
- }), Kt = j(function() {
253
- return Vt() || Ht();
254
- }), jt = j(function() {
255
- return qt(/Android/i);
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
- let D = /* @__PURE__ */ new Map(), ce = /* @__PURE__ */ new Set();
258
- function Pe() {
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
- if (!e(n) || !n.target) return;
265
- let r = D.get(n.target);
266
- r || (r = /* @__PURE__ */ new Set(), D.set(n.target, r), n.target.addEventListener("transitioncancel", o, {
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
- })), r.add(n.propertyName);
517
+ })), a.add(n.propertyName);
269
518
  }, o = (n) => {
270
- if (!e(n) || !n.target) return;
271
- let r = D.get(n.target);
272
- if (r && (r.delete(n.propertyName), r.size === 0 && (n.target.removeEventListener("transitioncancel", o), D.delete(n.target)), D.size === 0)) {
273
- for (let l of ce) l();
274
- ce.clear();
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" ? Pe() : document.addEventListener("DOMContentLoaded", Pe));
280
- function Ut(e) {
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() : ce.add(e);
536
+ $o(), D.size === 0 ? e() : _e.add(e);
283
537
  });
284
538
  }
285
- function ke(e, t) {
286
- let o = window.getComputedStyle(e), n = /(auto|scroll)/.test(o.overflow + o.overflowX + o.overflowY);
287
- return n && t && (n = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), n;
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 Ve(e, t) {
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 (ke(o, t) && (o = o.parentElement); o && !ke(o, t); ) o = o.parentElement;
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 Gt(e) {
295
- return e.mozInputSource === 0 && e.isTrusted ? !0 : jt() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
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
- function Xt(e, t, o) {
298
- let [n, r] = K(e || t), l = M(e !== void 0), a = e !== void 0;
299
- L(() => {
300
- let i = l.current;
301
- i !== a && console.warn(`WARN: A component changed from ${i ? "controlled" : "uncontrolled"} to ${a ? "controlled" : "uncontrolled"}.`), l.current = a;
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
- a
657
+ l
304
658
  ]);
305
- let d = a ? e : n, c = T((i, ...s) => {
306
- let m = (p, ...g) => {
307
- o && (Object.is(d, p) || o(p, ...g)), a || (d = p);
308
- };
309
- typeof i == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), r((g, ...f) => {
310
- let y = i(a ? d : g, ...f);
311
- return m(y, ...s), a ? g : y;
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
- d,
320
- c
670
+ s,
671
+ u
321
672
  ];
322
673
  }
323
- const He = $.createContext({
324
- register: () => {
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
- class Yt {
338
- isDefaultPrevented() {
339
- return this.nativeEvent.defaultPrevented;
340
- }
341
- preventDefault() {
342
- this.defaultPrevented = !0, this.nativeEvent.preventDefault();
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 Qt(e) {
357
- let t = M({
686
+ function Bo(e) {
687
+ let t = $({
358
688
  isFocused: !1,
359
689
  observer: null
360
690
  });
361
- w(() => {
362
- const n = t.current;
691
+ return _(() => {
692
+ const o = t.current;
363
693
  return () => {
364
- n.observer && (n.observer.disconnect(), n.observer = null);
694
+ o.observer && (o.observer.disconnect(), o.observer = null);
365
695
  };
366
- }, []);
367
- let o = H((n) => {
368
- e?.(n);
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.target, l = (a) => {
374
- t.current.isFocused = !1, r.disabled && o(new Yt("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
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", l, {
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 a;
381
- (a = t.current.observer) === null || a === void 0 || a.disconnect();
382
- let d = r === document.activeElement ? null : document.activeElement;
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: d
715
+ relatedTarget: l
385
716
  })), r.dispatchEvent(new FocusEvent("focusout", {
386
717
  bubbles: !0,
387
- relatedTarget: d
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
- o
729
+ e
399
730
  ]);
400
731
  }
401
- let U = null, Zt = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Map(), O = !1, me = !1;
402
- function he(e, t) {
403
- for (let o of Zt) o(e, t);
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 eo(e) {
406
- return !(e.metaKey || !qe() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
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 ee(e) {
409
- O = !0, eo(e) && (U = "keyboard", he("keyboard", e));
747
+ function de(e) {
748
+ W = !0, !ee.isOpening && Ro(e) && (oe = "keyboard", Le("keyboard", e));
410
749
  }
411
- function k(e) {
412
- U = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (O = !0, he("pointer", e));
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 Ke(e) {
415
- Gt(e) && (O = !0, U = "virtual");
753
+ function ct(e) {
754
+ !ee.isOpening && Mo(e) && (W = !0, oe = "virtual");
416
755
  }
417
- function je(e) {
418
- e.target === window || e.target === document || (!O && !me && (U = "virtual", he("virtual", e)), O = !1, me = !1);
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 Ue() {
421
- O = !1, me = !0;
759
+ function mt() {
760
+ W = !1, Me = !0;
422
761
  }
423
- function Te(e) {
424
- if (typeof window > "u" || V.get(Z(e))) return;
425
- const t = Z(e), o = E(e);
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
- O = !0, n.apply(this, arguments);
429
- }, o.addEventListener("keydown", ee, !0), o.addEventListener("keyup", ee, !0), o.addEventListener("click", Ke, !0), t.addEventListener("focus", je, !0), t.addEventListener("blur", Ue, !1), typeof PointerEvent < "u" ? (o.addEventListener("pointerdown", k, !0), o.addEventListener("pointermove", k, !0), o.addEventListener("pointerup", k, !0)) : (o.addEventListener("mousedown", k, !0), o.addEventListener("mousemove", k, !0), o.addEventListener("mouseup", k, !0)), t.addEventListener("beforeunload", () => {
430
- Ge(e);
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
- }), V.set(t, {
772
+ }), Y.set(t, {
434
773
  focus: n
435
774
  });
436
775
  }
437
- const Ge = (e, t) => {
438
- const o = Z(e), n = E(e);
439
- t && n.removeEventListener("DOMContentLoaded", t), V.has(o) && (o.HTMLElement.prototype.focus = V.get(o).focus, n.removeEventListener("keydown", ee, !0), n.removeEventListener("keyup", ee, !0), n.removeEventListener("click", Ke, !0), o.removeEventListener("focus", je, !0), o.removeEventListener("blur", Ue, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", k, !0), n.removeEventListener("pointermove", k, !0), n.removeEventListener("pointerup", k, !0)) : (n.removeEventListener("mousedown", k, !0), n.removeEventListener("mousemove", k, !0), n.removeEventListener("mouseup", k, !0)), V.delete(o));
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 to(e) {
780
+ function Ao(e) {
442
781
  const t = E(e);
443
782
  let o;
444
- return t.readyState !== "loading" ? Te(e) : (o = () => {
445
- Te(e);
446
- }, t.addEventListener("DOMContentLoaded", o)), () => Ge(e, 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" && to();
449
- function oo() {
450
- return U;
787
+ typeof document < "u" && Ao();
788
+ function bt() {
789
+ return oe;
451
790
  }
452
- function no(e) {
453
- let { isDisabled: t, onBlurWithin: o, onFocusWithin: n, onFocusWithinChange: r } = e, l = M({
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
- }), a = T((i) => {
456
- l.current.isFocusWithin && !i.currentTarget.contains(i.relatedTarget) && (l.current.isFocusWithin = !1, o && o(i), r && r(!1));
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 = Qt(a), c = T((i) => {
462
- !l.current.isFocusWithin && document.activeElement === i.target && (n && n(i), r && r(!0), l.current.isFocusWithin = !0, d(i));
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 should not have been null, that would conflict in mergeProps
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: c,
477
- onBlur: a
857
+ onFocus: u,
858
+ onBlur: s
478
859
  }
479
860
  };
480
861
  }
481
- function ro(e) {
482
- let { ref: t, onInteractOutside: o, isDisabled: n, onInteractOutsideStart: r } = e, l = M({
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
- }), a = H((c) => {
486
- o && X(c, t) && (r && r(c), l.current.isPointerDown = !0);
487
- }), d = H((c) => {
488
- o && o(c);
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
- L(() => {
491
- let c = l.current;
871
+ S(() => {
872
+ let s = a.current;
492
873
  if (n) return;
493
- const i = t.current, s = E(i);
874
+ const d = t.current, u = E(d);
494
875
  if (typeof PointerEvent < "u") {
495
- let m = (p) => {
496
- c.isPointerDown && X(p, t) && d(p), c.isPointerDown = !1;
876
+ let c = (m) => {
877
+ s.isPointerDown && ae(m, t) && l(m), s.isPointerDown = !1;
497
878
  };
498
- return s.addEventListener("pointerdown", a, !0), s.addEventListener("pointerup", m, !0), () => {
499
- s.removeEventListener("pointerdown", a, !0), s.removeEventListener("pointerup", m, !0);
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 m = (g) => {
503
- c.ignoreEmulatedMouseEvents ? c.ignoreEmulatedMouseEvents = !1 : c.isPointerDown && X(g, t) && d(g), c.isPointerDown = !1;
504
- }, p = (g) => {
505
- c.ignoreEmulatedMouseEvents = !0, c.isPointerDown && X(g, t) && d(g), c.isPointerDown = !1;
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 s.addEventListener("mousedown", a, !0), s.addEventListener("mouseup", m, !0), s.addEventListener("touchstart", a, !0), s.addEventListener("touchend", p, !0), () => {
508
- s.removeEventListener("mousedown", a, !0), s.removeEventListener("mouseup", m, !0), s.removeEventListener("touchstart", a, !0), s.removeEventListener("touchend", p, !0);
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 X(e, t) {
897
+ function ae(e, t) {
519
898
  if (e.button > 0) return !1;
520
- if (e.target) {
521
- const o = e.target.ownerDocument;
522
- if (!o || !o.documentElement.contains(e.target) || e.target.closest("[data-react-aria-top-layer]")) return !1;
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 r;
904
+ return t.current ? !e.composedPath().includes(t.current) : !1;
545
905
  }
546
- function lo(e, t) {
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 io(e) {
556
- let { children: t, contain: o, restoreFocus: n, autoFocus: r } = e, l = M(null), a = M(null), d = M([]), { parentNode: c } = A(xe) || {}, i = q(() => new be({
557
- scopeRef: d
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
- d
912
+ l
560
913
  ]);
561
- w(() => {
562
- let p = c || h.root;
563
- if (h.getTreeNode(p.scopeRef) && v && !oe(v, p.scopeRef)) {
564
- let g = h.getTreeNode(v);
565
- g && (p = g);
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
- p.addChild(i), h.addNode(i);
920
+ m.addChild(d), w.addNode(d);
568
921
  }, [
569
- i,
570
- c
571
- ]), w(() => {
572
- let p = h.getTreeNode(d);
573
- p && (p.contain = !!o);
922
+ d,
923
+ s
924
+ ]), _(() => {
925
+ let m = w.getTreeNode(l);
926
+ m && (m.contain = !!o);
574
927
  }, [
575
928
  o
576
- ]), w(() => {
577
- var p;
578
- let g = (p = l.current) === null || p === void 0 ? void 0 : p.nextSibling, f = [], y = (B) => B.stopPropagation();
579
- for (; g && g !== a.current; )
580
- f.push(g), g.addEventListener(fe, y), g = g.nextSibling;
581
- return d.current = f, () => {
582
- for (let B of f) B.removeEventListener(fe, y);
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
- ]), go(d, n, o), mo(d, o), vo(d, n, o), fo(d, r), L(() => {
587
- const p = E(d.current ? d.current[0] : void 0).activeElement;
588
- let g = null;
589
- if (_(p, d.current)) {
590
- for (let f of h.traverse()) f.scopeRef && _(p, f.scopeRef.current) && (g = f);
591
- g === h.getTreeNode(d) && (v = g.scopeRef);
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
- d
595
- ]), w(() => () => {
596
- var p, g, f;
597
- let y = (f = (g = h.getTreeNode(d)) === null || g === void 0 || (p = g.parent) === null || p === void 0 ? void 0 : p.scopeRef) !== null && f !== void 0 ? f : null;
598
- (d === v || oe(d, v)) && (!y || h.getTreeNode(y)) && (v = y), h.removeTreeNode(d);
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
- d
953
+ l
601
954
  ]);
602
- let s = q(() => so(d), []), m = q(() => ({
603
- focusManager: s,
604
- parentNode: i
955
+ let u = X(() => Ko(l), []), c = X(() => ({
956
+ focusManager: u,
957
+ parentNode: d
605
958
  }), [
606
- i,
607
- s
959
+ d,
960
+ u
608
961
  ]);
609
- return /* @__PURE__ */ $.createElement(xe.Provider, {
610
- value: m
611
- }, /* @__PURE__ */ $.createElement("span", {
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: l
615
- }), t, /* @__PURE__ */ $.createElement("span", {
967
+ ref: a
968
+ }), t, /* @__PURE__ */ h.createElement("span", {
616
969
  "data-focus-scope-end": !0,
617
970
  hidden: !0,
618
- ref: a
971
+ ref: i
619
972
  }));
620
973
  }
621
- function so(e) {
974
+ function Ko(e) {
622
975
  return {
623
976
  focusNext(t = {}) {
624
- let o = e.current, { from: n, tabbable: r, wrap: l, accept: a } = t, d = n || E(o[0]).activeElement, c = o[0].previousElementSibling, i = N(o), s = C(i, {
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: a
981
+ accept: i
627
982
  }, o);
628
- s.currentNode = _(d, o) ? d : c;
629
- let m = s.nextNode();
630
- return !m && l && (s.currentNode = c, m = s.nextNode()), m && S(m, !0), 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: l, accept: a } = t, d = n || E(o[0]).activeElement, c = o[o.length - 1].nextElementSibling, i = N(o), s = C(i, {
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: a
992
+ accept: i
636
993
  }, o);
637
- s.currentNode = _(d, o) ? d : c;
638
- let m = s.previousNode();
639
- return !m && l && (s.currentNode = c, m = s.previousNode()), m && S(m, !0), 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, l = N(o), a = C(l, {
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
- a.currentNode = o[0].previousElementSibling;
647
- let d = a.nextNode();
648
- return d && S(d, !0), d;
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, l = N(o), a = C(l, {
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
- a.currentNode = o[o.length - 1].nextElementSibling;
656
- let d = a.previousNode();
657
- return d && S(d, !0), d;
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
- const $e = [
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 R(e) {
682
- let t = h.getTreeNode(v);
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 mo(e, t) {
690
- let o = M(void 0), n = M(void 0);
691
- w(() => {
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 l = E(r ? r[0] : void 0);
698
- let a = (i) => {
699
- if (i.key !== "Tab" || i.altKey || i.ctrlKey || i.metaKey || !R(e) || i.isComposing) return;
700
- let s = l.activeElement, m = e.current;
701
- if (!m || !_(s, m)) return;
702
- let p = N(m), g = C(p, {
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
- }, m);
705
- if (!s) return;
706
- g.currentNode = s;
707
- let f = i.shiftKey ? g.previousNode() : g.nextNode();
708
- f || (g.currentNode = i.shiftKey ? m[m.length - 1].nextElementSibling : m[0].previousElementSibling, f = i.shiftKey ? g.previousNode() : g.nextNode()), i.preventDefault(), f && S(f, !0);
709
- }, d = (i) => {
710
- (!v || oe(v, e)) && _(i.target, e.current) ? (v = e, o.current = i.target) : R(e) && !te(i.target, e) ? o.current ? o.current.focus() : v && v.current && ge(v.current) : R(e) && (o.current = i.target);
711
- }, c = (i) => {
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
- if (l.activeElement && R(e) && !te(l.activeElement, e))
714
- if (v = e, l.body.contains(i.target)) {
715
- var s;
716
- o.current = i.target, (s = o.current) === null || s === void 0 || s.focus();
717
- } else v.current && ge(v.current);
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 l.addEventListener("keydown", a, !1), l.addEventListener("focusin", d, !1), r?.forEach((i) => i.addEventListener("focusin", d, !1)), r?.forEach((i) => i.addEventListener("focusout", c, !1)), () => {
721
- l.removeEventListener("keydown", a, !1), l.removeEventListener("focusin", d, !1), r?.forEach((i) => i.removeEventListener("focusin", d, !1)), r?.forEach((i) => i.removeEventListener("focusout", c, !1));
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
- ]), w(() => () => {
1084
+ ]), _(() => () => {
727
1085
  n.current && cancelAnimationFrame(n.current);
728
1086
  }, [
729
1087
  n
730
1088
  ]);
731
1089
  }
732
- function Je(e) {
733
- return te(e);
1090
+ function gt(e) {
1091
+ return R(e);
734
1092
  }
735
- function _(e, t) {
736
- return !e || !t ? !1 : t.some((o) => o.contains(e));
1093
+ function x(e, t) {
1094
+ return !e || !t ? !1 : t.some((o) => C(o, e));
737
1095
  }
738
- function te(e, t = null) {
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 h.traverse(h.getTreeNode(t)))
741
- if (o && _(e, o.current)) return !0;
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 po(e) {
745
- return te(e, v);
1102
+ function Uo(e) {
1103
+ return R(e, v);
746
1104
  }
747
- function oe(e, t) {
1105
+ function ue(e, t) {
748
1106
  var o;
749
- let n = (o = h.getTreeNode(t)) === null || o === void 0 ? void 0 : o.parent;
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 S(e, t = !1) {
1114
+ function B(e, t = !1) {
757
1115
  if (e != null && !t) try {
758
- pe(e);
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 Ye(e, t = !0) {
767
- let o = e[0].previousElementSibling, n = N(e), r = C(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 l = r.nextNode();
772
- return t && !l && (n = N(e), r = C(n, {
1129
+ let a = r.nextNode();
1130
+ return t && !a && (n = I(e), r = A(n, {
773
1131
  tabbable: !1
774
- }, e), r.currentNode = o, l = r.nextNode()), l;
1132
+ }, e), r.currentNode = o, a = r.nextNode()), a;
775
1133
  }
776
- function ge(e, t = !0) {
777
- S(Ye(e, t));
1134
+ function Pe(e, t = !0) {
1135
+ B(vt(e, t));
778
1136
  }
779
- function fo(e, t) {
780
- const o = $.useRef(t);
781
- L(() => {
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
- !_(n.activeElement, v.current) && e.current && ge(e.current);
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 go(e, t, o) {
793
- w(() => {
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 l = (a) => {
798
- let d = a.target;
799
- _(d, e.current) ? v = e : Je(d) || (v = null);
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", l, !1), n?.forEach((a) => a.addEventListener("focusin", l, !1)), () => {
802
- r.removeEventListener("focusin", l, !1), n?.forEach((a) => a.removeEventListener("focusin", l, !1));
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 bo(e) {
811
- let t = h.getTreeNode(v);
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 vo(e, t, o) {
819
- const n = M(typeof document < "u" ? E(e.current ? e.current[0] : void 0).activeElement : null);
820
- w(() => {
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 l = E(r ? r[0] : void 0);
1180
+ const a = E(r ? r[0] : void 0);
823
1181
  if (!t || o) return;
824
- let a = () => {
825
- (!v || oe(v, e)) && _(l.activeElement, e.current) && (v = e);
1182
+ let i = () => {
1183
+ (!v || ue(v, e)) && x(y(a), e.current) && (v = e);
826
1184
  };
827
- return l.addEventListener("focusin", a, !1), r?.forEach((d) => d.addEventListener("focusin", a, !1)), () => {
828
- l.removeEventListener("focusin", a, !1), r?.forEach((d) => d.removeEventListener("focusin", a, !1));
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
- ]), w(() => {
1191
+ ]), _(() => {
834
1192
  const r = E(e.current ? e.current[0] : void 0);
835
1193
  if (!t) return;
836
- let l = (a) => {
837
- if (a.key !== "Tab" || a.altKey || a.ctrlKey || a.metaKey || !R(e) || a.isComposing) return;
838
- let d = r.activeElement;
839
- if (!_(d, e.current)) return;
840
- let c = h.getTreeNode(e);
841
- if (!c) return;
842
- let i = c.nodeToRestore, s = C(r.body, {
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
- s.currentNode = d;
846
- let m = a.shiftKey ? s.previousNode() : s.nextNode();
847
- if ((!i || !r.body.contains(i) || i === r.body) && (i = void 0, c.nodeToRestore = void 0), (!m || !_(m, e.current)) && i) {
848
- s.currentNode = i;
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
- m = a.shiftKey ? s.previousNode() : s.nextNode();
851
- while (_(m, e.current));
852
- a.preventDefault(), a.stopPropagation(), m ? S(m, !0) : Je(i) ? S(i, !0) : d.blur();
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", l, !0), () => {
856
- o || r.removeEventListener("keydown", l, !0);
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
- ]), w(() => {
1220
+ ]), _(() => {
863
1221
  const r = E(e.current ? e.current[0] : void 0);
864
1222
  if (!t) return;
865
- let l = h.getTreeNode(e);
866
- if (l) {
867
- var a;
868
- return l.nodeToRestore = (a = n.current) !== null && a !== void 0 ? a : void 0, () => {
869
- let d = h.getTreeNode(e);
870
- if (!d) return;
871
- let c = d.nodeToRestore;
872
- if (t && c && // eslint-disable-next-line react-hooks/exhaustive-deps
873
- (_(r.activeElement, e.current) || r.activeElement === r.body && bo(e))) {
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 s = i.getTreeNode(e);
878
- for (; s; ) {
879
- if (s.nodeToRestore && s.nodeToRestore.isConnected) {
880
- Se(s.nodeToRestore);
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
- s = s.parent;
1240
+ c = c.parent;
884
1241
  }
885
- for (s = i.getTreeNode(e); s; ) {
886
- if (s.scopeRef && s.scopeRef.current && h.getTreeNode(s.scopeRef)) {
887
- let m = Ye(s.scopeRef.current, !0);
888
- Se(m);
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
- s = s.parent;
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 Se(e) {
904
- e.dispatchEvent(new CustomEvent(fe, {
1260
+ function qe(e) {
1261
+ e.dispatchEvent(new CustomEvent(ke, {
905
1262
  bubbles: !0,
906
1263
  cancelable: !0
907
- })) && S(e);
1264
+ })) && B(e);
908
1265
  }
909
- function C(e, t, o) {
910
- let n = t?.tabbable ? co : uo, r = E(e).createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
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
- var a;
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 && (r.currentNode = t.from), r;
1272
+ return t?.from && (i.currentNode = t.from), i;
917
1273
  }
918
- class we {
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 l = new be({
1284
+ let a = new Ne({
929
1285
  scopeRef: t
930
1286
  });
931
- r.addChild(l), l.parent = r, this.fastMap.set(t, l), n && (l.nodeToRestore = n);
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 l of this.traverse()) l !== o && o.nodeToRestore && l.nodeToRestore && o.scopeRef && o.scopeRef.current && _(l.nodeToRestore, o.scopeRef.current) && (l.nodeToRestore = o.nodeToRestore);
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((l) => n && n.addChild(l))), this.fastMap.delete(o.scopeRef);
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 we();
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 be({
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 be {
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 h = new we();
974
- const ho = /* @__PURE__ */ new WeakMap(), x = [];
975
- function $o(e, t) {
976
- let { onClose: o, shouldCloseOnBlur: n, isOpen: r, isDismissable: l = !1, isKeyboardDismissDisabled: a = !1, shouldCloseOnInteractOutside: d } = e;
977
- L(() => (r && x.push(t), () => {
978
- let f = x.indexOf(t);
979
- f >= 0 && x.splice(f, 1);
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 c = () => {
985
- x[x.length - 1] === t && o && o();
986
- }, i = (f) => {
987
- (!d || d(f.target)) && x[x.length - 1] === t && (f.stopPropagation(), f.preventDefault());
988
- }, s = (f) => {
989
- (!d || d(f.target)) && (x[x.length - 1] === t && (f.stopPropagation(), f.preventDefault()), c());
990
- }, m = (f) => {
991
- f.key === "Escape" && !a && !f.nativeEvent.isComposing && (f.stopPropagation(), f.preventDefault(), c());
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
- ro({
1349
+ Vo({
994
1350
  ref: t,
995
- onInteractOutside: l && r ? s : null,
996
- onInteractOutsideStart: i
1351
+ onInteractOutside: a && r ? u : null,
1352
+ onInteractOutsideStart: d
997
1353
  });
998
- let { focusWithinProps: p } = no({
1354
+ let { focusWithinProps: m } = Wo({
999
1355
  isDisabled: !n,
1000
- onBlurWithin: (f) => {
1001
- !f.relatedTarget || po(f.relatedTarget) || (!d || d(f.relatedTarget)) && o();
1356
+ onBlurWithin: (p) => {
1357
+ !p.relatedTarget || Uo(p.relatedTarget) || (!l || l(p.relatedTarget)) && o();
1002
1358
  }
1003
- }), g = (f) => {
1004
- f.target === f.currentTarget && f.preventDefault();
1359
+ }), b = (p) => {
1360
+ p.target === p.currentTarget && p.preventDefault();
1005
1361
  };
1006
1362
  return {
1007
1363
  overlayProps: {
1008
- onKeyDown: m,
1009
- ...p
1364
+ onKeyDown: c,
1365
+ ...m
1010
1366
  },
1011
1367
  underlayProps: {
1012
- onPointerDown: g
1368
+ onPointerDown: b
1013
1369
  }
1014
1370
  };
1015
1371
  }
1016
- function wo(e, t, o) {
1372
+ function Zo(e, t, o) {
1017
1373
  let { isOpen: n } = t;
1018
- L(() => {
1019
- o && o.current && ho.set(o.current, t.close);
1374
+ S(() => {
1375
+ o && o.current && Yo.set(o.current, t.close);
1020
1376
  });
1021
- let r, l = ze();
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 ? l : null,
1382
+ "aria-controls": n ? a : null,
1027
1383
  onPress: t.toggle
1028
1384
  },
1029
1385
  overlayProps: {
1030
- id: l
1386
+ id: a
1031
1387
  }
1032
1388
  };
1033
1389
  }
1034
- const se = typeof document < "u" && window.visualViewport, Eo = /* @__PURE__ */ new Set([
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 J = 0, de;
1046
- function _o(e = {}) {
1401
+ let ie = 0, $e;
1402
+ function tn(e = {}) {
1047
1403
  let { isDisabled: t } = e;
1048
- w(() => {
1404
+ _(() => {
1049
1405
  if (!t)
1050
- return J++, J === 1 && (Kt() ? de = yo() : de = Mo()), () => {
1051
- J--, J === 0 && de();
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 Mo() {
1058
- return Q(W(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), W(document.documentElement, "overflow", "hidden"));
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 yo() {
1061
- let e, t, o = (i) => {
1062
- e = Ve(i.target, !0), !(e === document.documentElement && e === document.body) && e instanceof HTMLElement && window.getComputedStyle(e).overscrollBehavior === "auto" && (t = W(e, "overscrollBehavior", "contain"));
1063
- }, n = (i) => {
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
- i.preventDefault();
1421
+ d.preventDefault();
1066
1422
  return;
1067
1423
  }
1068
- e.scrollHeight === e.clientHeight && e.scrollWidth === e.clientWidth && i.preventDefault();
1069
- }, r = (i) => {
1070
- let s = i.target;
1071
- Fe(s) && s !== document.activeElement && (i.preventDefault(), d(), s.style.transform = "translateY(-2000px)", s.focus(), requestAnimationFrame(() => {
1072
- s.style.transform = "";
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
- }, l = (i) => {
1075
- let s = i.target;
1076
- Fe(s) && (d(), s.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1077
- s.style.transform = "", se && (se.height < window.innerHeight ? requestAnimationFrame(() => {
1078
- Le(s);
1079
- }) : se.addEventListener("resize", () => Le(s), {
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
- }, a = null, d = () => {
1084
- if (a) return;
1085
- let i = () => {
1439
+ }, i = null, l = () => {
1440
+ if (i) return;
1441
+ let d = () => {
1086
1442
  window.scrollTo(0, 0);
1087
- }, s = window.pageXOffset, m = window.pageYOffset;
1088
- a = Q(I(window, "scroll", i), W(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), W(document.documentElement, "overflow", "hidden"), W(document.body, "marginTop", `-${m}px`), () => {
1089
- window.scrollTo(s, m);
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
- }, c = Q(I(document, "touchstart", o, {
1447
+ }, s = se(j(document, "touchstart", o, {
1092
1448
  passive: !1,
1093
1449
  capture: !0
1094
- }), I(document, "touchmove", n, {
1450
+ }), j(document, "touchmove", n, {
1095
1451
  passive: !1,
1096
1452
  capture: !0
1097
- }), I(document, "touchend", r, {
1453
+ }), j(document, "touchend", r, {
1098
1454
  passive: !1,
1099
1455
  capture: !0
1100
- }), I(document, "focus", l, !0));
1456
+ }), j(document, "focus", a, !0));
1101
1457
  return () => {
1102
- t?.(), a?.(), c();
1458
+ t?.(), i?.(), s();
1103
1459
  };
1104
1460
  }
1105
- function W(e, t, o) {
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 I(e, t, o, n) {
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 Le(e) {
1472
+ function He(e) {
1117
1473
  let t = document.scrollingElement || document.documentElement;
1118
1474
  for (; e && e !== t; ) {
1119
- let o = Ve(e);
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 Fe(e) {
1128
- return e instanceof HTMLInputElement && !Eo.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1129
- }
1130
- let z = /* @__PURE__ */ new WeakMap(), P = [];
1131
- function Po(e, t = document.body) {
1132
- let o = new Set(e), n = /* @__PURE__ */ new Set(), r = (c) => {
1133
- for (let p of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(p);
1134
- let i = (p) => {
1135
- if (o.has(p) || n.has(p.parentElement) && p.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
1136
- for (let g of o)
1137
- if (p.contains(g)) return NodeFilter.FILTER_SKIP;
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
- }, s = document.createTreeWalker(c, NodeFilter.SHOW_ELEMENT, {
1140
- acceptNode: i
1141
- }), m = i(c);
1142
- if (m === NodeFilter.FILTER_ACCEPT && l(c), m !== NodeFilter.FILTER_REJECT) {
1143
- let p = s.nextNode();
1144
- for (; p != null; )
1145
- l(p), p = s.nextNode();
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
- }, l = (c) => {
1148
- var i;
1149
- let s = (i = z.get(c)) !== null && i !== void 0 ? i : 0;
1150
- c.getAttribute("aria-hidden") === "true" && s === 0 || (s === 0 && c.setAttribute("aria-hidden", "true"), n.add(c), z.set(c, s + 1));
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
- P.length && P[P.length - 1].disconnect(), r(t);
1153
- let a = new MutationObserver((c) => {
1154
- for (let i of c)
1155
- if (!(i.type !== "childList" || i.addedNodes.length === 0) && ![
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((s) => s.contains(i.target))) {
1159
- for (let s of i.removedNodes) s instanceof Element && (o.delete(s), n.delete(s));
1160
- for (let s of i.addedNodes)
1161
- (s instanceof HTMLElement || s instanceof SVGElement) && (s.dataset.liveAnnouncer === "true" || s.dataset.reactAriaTopLayer === "true") ? o.add(s) : s instanceof Element && r(s);
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
- a.observe(t, {
1520
+ i.observe(t, {
1165
1521
  childList: !0,
1166
1522
  subtree: !0
1167
1523
  });
1168
- let d = {
1524
+ let l = {
1169
1525
  observe() {
1170
- a.observe(t, {
1526
+ i.observe(t, {
1171
1527
  childList: !0,
1172
1528
  subtree: !0
1173
1529
  });
1174
1530
  },
1175
1531
  disconnect() {
1176
- a.disconnect();
1532
+ i.disconnect();
1177
1533
  }
1178
1534
  };
1179
- return P.push(d), () => {
1180
- a.disconnect();
1181
- for (let c of n) {
1182
- let i = z.get(c);
1183
- i === 1 ? (c.removeAttribute("aria-hidden"), z.delete(c)) : z.set(c, i - 1);
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
- d === P[P.length - 1] ? (P.pop(), P.length && P[P.length - 1].observe()) : P.splice(P.indexOf(d), 1);
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 ko = /* @__PURE__ */ bt({});
1189
- function To() {
1544
+ const an = /* @__PURE__ */ Dt({});
1545
+ function ln() {
1190
1546
  var e;
1191
- return (e = A(ko)) !== null && e !== void 0 ? e : {};
1547
+ return (e = q(an)) !== null && e !== void 0 ? e : {};
1192
1548
  }
1193
- const Qe = /* @__PURE__ */ $.createContext(null);
1194
- function xo(e) {
1195
- let t = Ie(), { portalContainer: o = t ? null : document.body, isExiting: n } = e, [r, l] = K(!1), a = q(() => ({
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: l
1553
+ setContain: a
1198
1554
  }), [
1199
1555
  r,
1200
- l
1201
- ]), { getContainer: d } = To();
1202
- if (!e.portalContainer && d && (o = d()), !o) return null;
1203
- let c = e.children;
1204
- return e.disableFocusManagement || (c = /* @__PURE__ */ $.createElement(io, {
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
- }, c)), c = /* @__PURE__ */ $.createElement(Qe.Provider, {
1208
- value: a
1209
- }, /* @__PURE__ */ $.createElement(Jt, null, c)), /* @__PURE__ */ ht.createPortal(c, o);
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 Ze() {
1212
- let e = A(Qe), t = e?.setContain;
1213
- w(() => {
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 So(e, t, o) {
1220
- let { overlayProps: n, underlayProps: r } = $o({
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 _o({
1581
+ return tn({
1226
1582
  isDisabled: !t.isOpen
1227
- }), Ze(), L(() => {
1228
- if (t.isOpen) return Po([
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: Bt(n),
1591
+ modalProps: ao(n),
1236
1592
  underlayProps: r
1237
1593
  };
1238
1594
  }
1239
- function Lo(e, t) {
1240
- let { role: o = "dialog" } = e, n = Ft();
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 = M(!1);
1243
- return L(() => {
1598
+ let r = $(!1);
1599
+ return S(() => {
1244
1600
  if (t.current && !t.current.contains(document.activeElement)) {
1245
- pe(t.current);
1246
- let l = setTimeout(() => {
1247
- document.activeElement === t.current && (r.current = !0, t.current && (t.current.blur(), pe(t.current)), r.current = !1);
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(l);
1606
+ clearTimeout(a);
1251
1607
  };
1252
1608
  }
1253
1609
  }, [
1254
1610
  t
1255
- ]), Ze(), {
1611
+ ]), $t(), {
1256
1612
  dialogProps: {
1257
- ...At(e, {
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: (l) => {
1267
- r.current && l.stopPropagation();
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 Fo(e, t, o) {
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 Ce(e, t) {
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 Be(e) {
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 ? Ce(Object(o), !0).forEach(function(n) {
1297
- Fo(e, n, o[n]);
1298
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Ce(Object(o)).forEach(function(n) {
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 Co = (e, t, o) => {
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
- }, et = (e) => (t) => {
1312
- var o = e.defaultClassName, n = Be(Be({}, e.defaultVariants), t);
1667
+ }, wt = (e) => (t) => {
1668
+ var o = e.defaultClassName, n = Ge(Ge({}, e.defaultVariants), t);
1313
1669
  for (var r in n) {
1314
- var l, a = (l = n[r]) !== null && l !== void 0 ? l : e.defaultVariants[r];
1315
- if (a != null) {
1316
- var d = a;
1317
- typeof d == "boolean" && (d = d === !0 ? "true" : "false");
1318
- var c = (
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][d]
1676
+ e.variantClassNames[r][l]
1321
1677
  );
1322
- c && (o += " " + c);
1678
+ s && (o += " " + s);
1323
1679
  }
1324
1680
  }
1325
- for (var [i, s] of e.compoundVariants)
1326
- Co(i, n, e.defaultVariants) && (o += " " + s);
1681
+ for (var [d, u] of e.compoundVariants)
1682
+ fn(d, n, e.defaultVariants) && (o += " " + u);
1327
1683
  return o;
1328
- }, Bo = et({ defaultClassName: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto20", variantClassNames: { kind: { informational: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto21", delete: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto22", failure: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto23", success: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto24", warning: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto25", successWithFailures: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto26", form: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto27" }, size: { sm: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto28", md: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto29", lg: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2a", xl: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2b" }, fullHeight: { true: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2c", false: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2d" } }, defaultVariants: {}, compoundVariants: [] }), No = et({ defaultClassName: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2e", variantClassNames: { kind: { form: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2f", delete: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2g", failure: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2h", informational: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2i", success: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2j", warning: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2k", successWithFailures: "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2l" } }, defaultVariants: {}, compoundVariants: [] }), Oo = "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2m", Do = "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2n", Wo = "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2o", tt = "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2p", Ao = "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2q", Io = "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2r", zo = "pkg_sps-woodland_modal__version_8_42_0__hash_3moto2s";
1329
- function ot({
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__ */ u.createElement("div", { className: ue(tt, t), ...o }, e);
1690
+ return /* @__PURE__ */ f.createElement("div", { className: we(Et, t), ...o }, e);
1335
1691
  }
1336
- De.set(ot, { name: "ModalFooter" });
1337
- function Ne({
1692
+ Ye.set(_t, { name: "ModalFooter" });
1693
+ function Je({
1338
1694
  dismissableValue: e,
1339
1695
  handleClose: t
1340
1696
  }) {
1341
- return e ? /* @__PURE__ */ u.createElement(
1342
- We,
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: Ao
1704
+ className: hn
1349
1705
  }
1350
1706
  ) : null;
1351
1707
  }
1352
- const Oe = Object.freeze({
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 Ro({
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: l,
1368
- overlayProps: a,
1369
- size: d = "sm",
1370
- state: c,
1371
- title: i,
1372
- dismissible: s,
1373
- dismissable: m = !0,
1374
- onClose: p,
1375
- fullHeight: g = !1,
1376
- ...f
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 y = s ?? m, B = u.useRef(null), { modalProps: ne, underlayProps: rt } = So(
1734
+ const P = u ?? c, L = f.useRef(null), { modalProps: V, underlayProps: ne } = dn(
1379
1735
  {
1380
- isKeyboardDismissDisabled: !y,
1381
- ...f
1736
+ isKeyboardDismissDisabled: !P,
1737
+ ...p
1382
1738
  },
1383
- c,
1384
- B
1385
- ), { dialogProps: re, titleProps: at } = Lo(f, B), lt = Me(ne.onFocus, re.onFocus, l), it = Me(ne.onBlur, re.onBlur, r), { t: st } = vt(), dt = mt({ "data-testid": o }), [ae, ut] = pt(
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: ot }]
1388
- ), Ee = u.useCallback(() => {
1389
- p && typeof p == "function" && p(), c.close();
1390
- }, [p, c.close]), ct = ft(ut, (_e) => _e.type === Ne ? [{ className: ue(_e.props.classname, Io) }] : []);
1391
- return /* @__PURE__ */ u.createElement(xo, null, /* @__PURE__ */ u.createElement("div", { className: zo, ...rt, ...f }, /* @__PURE__ */ u.createElement(
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
- ...ne,
1395
- ...re,
1396
- ...a,
1397
- onFocus: lt,
1398
- onBlur: it,
1399
- ...dt("dialog"),
1400
- ref: B,
1401
- className: ue(Bo({ kind: n, size: d, fullHeight: g }), t)
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__ */ u.createElement("div", { ...at, className: No({ kind: n }) }, n && /* @__PURE__ */ u.createElement(
1404
- gt,
1759
+ /* @__PURE__ */ f.createElement("div", { ...yt, className: pn({ kind: n }) }, n && /* @__PURE__ */ f.createElement(
1760
+ Bt,
1405
1761
  {
1406
- icon: Oe[n] || Oe.informational,
1407
- className: Do
1762
+ icon: Xe[n] || Xe.informational,
1763
+ className: gn
1408
1764
  }
1409
- ), /* @__PURE__ */ u.createElement("div", { className: Oo }, le(i, c.close)), /* @__PURE__ */ u.createElement(Ne, { dismissableValue: y, handleClose: Ee })),
1410
- /* @__PURE__ */ u.createElement("div", { className: Wo }, le(ct, c.close)),
1411
- ae && ae.length > 0 ? /* @__PURE__ */ u.createElement(u.Fragment, null, le(ae, c.close)) : /* @__PURE__ */ u.createElement("div", { className: tt }, /* @__PURE__ */ u.createElement(We, { kind: "key", onClick: Ee }, st("modal.defaultButtonLabel", { defaultValue: "Okay" })))
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 nt(e) {
1415
- return e.state.isOpen ? /* @__PURE__ */ u.createElement(Ro, { ...e }, e.children) : /* @__PURE__ */ u.createElement(u.Fragment, null);
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
- De.set(nt, {
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 qo(e) {
1431
- let [t, o] = Xt(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
1432
- const n = T(() => {
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 = T(() => {
1792
+ ]), r = k(() => {
1437
1793
  o(!1);
1438
1794
  }, [
1439
1795
  o
1440
- ]), l = T(() => {
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: l
1807
+ toggle: a
1452
1808
  };
1453
1809
  }
1454
- function Jo(e = {}) {
1455
- const t = qo(e), o = M(null), { triggerProps: n, overlayProps: r } = wo(
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: l,
1461
- ...a
1816
+ onPress: a,
1817
+ ...i
1462
1818
  } = n;
1463
1819
  return {
1464
1820
  triggerProps: {
1465
- ...a,
1466
- onClick: l,
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 Vo = {
1474
- description: () => /* @__PURE__ */ u.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."),
1475
- components: [nt],
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__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("h5", null, "Use a Modal:"), /* @__PURE__ */ u.createElement("ul", null, /* @__PURE__ */ u.createElement("li", null, "When the user needs to confirm a basic decision, such as deleting a record."), /* @__PURE__ */ u.createElement("li", null, "When important information needs to be displayed to the user before continuing."), /* @__PURE__ */ u.createElement("li", null, "When a simple selection, such as a single form input, is required before proceeding.")), /* @__PURE__ */ u.createElement("h5", null, "Avoid a Modal:"), /* @__PURE__ */ u.createElement("ul", null, /* @__PURE__ */ u.createElement("li", null, "When a complex form is required. Use a ", /* @__PURE__ */ u.createElement(e, { to: "focused-task" }, "Focused Task View"), " instead."), /* @__PURE__ */ u.createElement("li", null, "When sharing non-critical or tertiary information. Use a ", /* @__PURE__ */ u.createElement(e, { to: "growlers" }, "Growler"), " instead.")))
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__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("h5", null, "Close Button and Modal dismissiability"), /* @__PURE__ */ u.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__ */ u.createElement("p", null, "The close button is included by default and omitted when the prop ", /* @__PURE__ */ u.createElement("code", null, "dismissable"), " is set to ", /* @__PURE__ */ u.createElement("strong", null, "false"), "."), /* @__PURE__ */ u.createElement("p", null, "Setting the ", /* @__PURE__ */ u.createElement("code", null, "dismissable"), " prop to false also prevents dismissing the modal by clicking outside of the modal or by using the", " ", /* @__PURE__ */ u.createElement("strong", null, "escape"), " key.")),
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: b`
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__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("h5", null, "Using the hook"), /* @__PURE__ */ u.createElement("p", null, "To use any modals, you must call the ", /* @__PURE__ */ u.createElement("code", null, "useModal"), " hook. Optional arguments for this hook include:"), /* @__PURE__ */ u.createElement("dl", null, /* @__PURE__ */ u.createElement("dt", null, /* @__PURE__ */ u.createElement("code", null, "isOpen"), ": boolean"), /* @__PURE__ */ u.createElement("dd", null, "Whether the overlay is open by default (controlled)"), /* @__PURE__ */ u.createElement("dt", null, /* @__PURE__ */ u.createElement("code", null, "defaultOpen"), ": boolean"), /* @__PURE__ */ u.createElement("dd", null, "Whether the overlay is open by default (uncontrolled)."), /* @__PURE__ */ u.createElement("dt", null, /* @__PURE__ */ u.createElement("code", null, "onOpenChange"), ": function"), /* @__PURE__ */ u.createElement("dd", null, "Handler that is called when the overlay's open state changes.", /* @__PURE__ */ u.createElement("code", null, "(isOpen: boolean) => void"))), /* @__PURE__ */ u.createElement("h5", null, "Modal Props, Modal State, and Trigger Props"), /* @__PURE__ */ u.createElement("p", null, "The ", /* @__PURE__ */ u.createElement("code", null, "useModal"), " returns an object with ", /* @__PURE__ */ u.createElement("code", null, "modalProps"), ", ", /* @__PURE__ */ u.createElement("code", null, "modalState"), " and ", /* @__PURE__ */ u.createElement("code", null, "triggerProps")), /* @__PURE__ */ u.createElement("p", null, "The ", /* @__PURE__ */ u.createElement("code", null, "triggerProps"), " need to be spread on the element that triggers the modal."), /* @__PURE__ */ u.createElement("p", null, "The ", /* @__PURE__ */ u.createElement("code", null, "modalState"), " object (which is also included in ", /* @__PURE__ */ u.createElement("code", null, "modalProps"), ") allows programmatic access to the state of the modal. This includes a read only ", /* @__PURE__ */ u.createElement("code", null, "isOpen"), " property, a ", /* @__PURE__ */ u.createElement("code", null, "setOpen(isOpen: boolean)"), " method which can be use to set whether the overlay is open, an ", /* @__PURE__ */ u.createElement("code", null, "open()"), " method which opens the overlay, a ", /* @__PURE__ */ u.createElement("code", null, "close()"), " method which closes the overlay and a ", /* @__PURE__ */ u.createElement("code", null, "toggle()"), " method that toggles the overlay's visiblity."), /* @__PURE__ */ u.createElement("p", null, "The ", /* @__PURE__ */ u.createElement("code", null, "modalProps"), " should be spread on the actual ", /* @__PURE__ */ u.createElement("code", null, "Modal"), " component."), /* @__PURE__ */ u.createElement("p", null, "Please refer to the examples to see its implementation"))
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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: b`
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
- }, Yo = {
2215
- Modals: Vo
2571
+ }, Ln = {
2572
+ Modals: Mn
2216
2573
  };
2217
2574
  export {
2218
- Yo as MANIFEST,
2219
- nt as Modal,
2220
- ot as ModalFooter,
2221
- Oe as ModalIcons,
2222
- Jo as useModal
2575
+ Ln as MANIFEST,
2576
+ Mt as Modal,
2577
+ _t as ModalFooter,
2578
+ Xe as ModalIcons,
2579
+ Sn as useModal
2223
2580
  };