@sps-woodland/modal 8.45.4 → 8.45.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,14 +1,14 @@
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 : () => {
1
+ import { Metadata as tt, cl as Me, combineEventHandlers as We, useChildTestIdAttrBuilder as Ct, selectChildren as Bt, modChildren as Ot, Icon as Rt, contentOf as ge } from "@sps-woodland/core";
2
+ import { Button as ot } from "@sps-woodland/buttons";
3
+ import * as c from "react";
4
+ import M, { useState as re, useRef as y, useCallback as x, useContext as J, useEffect as D, useReducer as Dt, useMemo as Y, createContext as It } from "react";
5
+ import { useWoodlandLanguage as At } from "@spscommerce/i18n";
6
+ import Wt from "react-dom";
7
+ import { code as w } from "@spscommerce/utils";
8
+ const N = typeof document < "u" ? M.useLayoutEffect : () => {
9
9
  };
10
- function It(e) {
11
- let [t, o] = te(e), n = $(t), r = $(null), a = $(() => {
10
+ function Vt(e) {
11
+ let [t, o] = re(e), n = y(t), r = y(null), a = y(() => {
12
12
  if (!r.current) return;
13
13
  let l = r.current.next();
14
14
  if (l.done) {
@@ -17,10 +17,10 @@ function It(e) {
17
17
  }
18
18
  n.current === l.value ? a.current() : o(l.value);
19
19
  });
20
- _(() => {
20
+ N(() => {
21
21
  n.current = t, r.current && a.current();
22
22
  });
23
- let i = k((l) => {
23
+ let i = x((l) => {
24
24
  r.current = l(n.current), a.current();
25
25
  }, [
26
26
  a
@@ -30,87 +30,87 @@ function It(e) {
30
30
  i
31
31
  ];
32
32
  }
33
- const le = {
33
+ const ue = {
34
34
  prefix: String(Math.round(Math.random() * 1e10)),
35
35
  current: 0
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);
36
+ }, nt = /* @__PURE__ */ M.createContext(ue), Ht = /* @__PURE__ */ M.createContext(!1);
37
+ let zt = !!(typeof window < "u" && window.document && window.document.createElement), ve = /* @__PURE__ */ new WeakMap();
38
+ function Kt(e = !1) {
39
+ let t = J(nt), o = y(null);
40
40
  if (o.current === null && !e) {
41
41
  var n, r;
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;
42
+ let a = (r = M.__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
43
  if (a) {
44
- let i = be.get(a);
45
- i == null ? be.set(a, {
44
+ let i = ve.get(a);
45
+ i == null ? ve.set(a, {
46
46
  id: t.current,
47
47
  state: a.memoizedState
48
- }) : a.memoizedState !== i.state && (t.current = i.id, be.delete(a));
48
+ }) : a.memoizedState !== i.state && (t.current = i.id, ve.delete(a));
49
49
  }
50
50
  o.current = ++t.current;
51
51
  }
52
52
  return o.current;
53
53
  }
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}`;
54
+ function qt(e) {
55
+ let t = J(nt);
56
+ t === ue && !zt && 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 = Kt(!!e), n = t === ue && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
58
58
  return e || `${n}-${o}`;
59
59
  }
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}`;
60
+ function jt(e) {
61
+ let t = M.useId(), [o] = re(rt()), n = o || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ue.prefix}`;
62
62
  return e || `${n}-${t}`;
63
63
  }
64
- const Ht = typeof h.useId == "function" ? qt : Kt;
65
- function jt() {
64
+ const Ut = typeof M.useId == "function" ? jt : qt;
65
+ function Gt() {
66
66
  return !1;
67
67
  }
68
- function Ut() {
68
+ function Jt() {
69
69
  return !0;
70
70
  }
71
- function Gt(e) {
71
+ function Xt(e) {
72
72
  return () => {
73
73
  };
74
74
  }
75
- function et() {
76
- return typeof h.useSyncExternalStore == "function" ? h.useSyncExternalStore(Gt, jt, Ut) : q(Wt);
75
+ function rt() {
76
+ return typeof M.useSyncExternalStore == "function" ? M.useSyncExternalStore(Xt, Gt, Jt) : J(Ht);
77
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);
78
+ let Qt = !!(typeof window < "u" && window.document && window.document.createElement), U = /* @__PURE__ */ new Map(), Q;
79
+ typeof FinalizationRegistry < "u" && (Q = new FinalizationRegistry((e) => {
80
+ U.delete(e);
81
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, [
82
+ function at(e) {
83
+ let [t, o] = re(e), n = y(null), r = Ut(t), a = y(null);
84
+ if (Q && Q.register(a, r), Qt) {
85
+ const i = U.get(r);
86
+ i && !i.includes(n) ? i.push(n) : U.set(r, [
87
87
  n
88
88
  ]);
89
89
  }
90
- return _(() => {
90
+ return N(() => {
91
91
  let i = r;
92
92
  return () => {
93
- G && G.unregister(a), K.delete(i);
93
+ Q && Q.unregister(a), U.delete(i);
94
94
  };
95
95
  }, [
96
96
  r
97
- ]), S(() => {
97
+ ]), D(() => {
98
98
  let i = n.current;
99
99
  return i && o(i), () => {
100
100
  i && (n.current = null);
101
101
  };
102
102
  }), r;
103
103
  }
104
- function Xt(e, t) {
104
+ function Zt(e, t) {
105
105
  if (e === t) return e;
106
- let o = K.get(e);
106
+ let o = U.get(e);
107
107
  if (o)
108
108
  return o.forEach((r) => r.current = t), t;
109
- let n = K.get(t);
109
+ let n = U.get(t);
110
110
  return n ? (n.forEach((r) => r.current = e), e) : t;
111
111
  }
112
112
  function Yt(e = []) {
113
- let t = tt(), [o, n] = It(t), r = k(() => {
113
+ let t = at(), [o, n] = Vt(t), r = x(() => {
114
114
  n(function* () {
115
115
  yield t, yield document.getElementById(t) ? t : void 0;
116
116
  });
@@ -118,62 +118,62 @@ function Yt(e = []) {
118
118
  t,
119
119
  n
120
120
  ]);
121
- return _(r, [
121
+ return N(r, [
122
122
  t,
123
123
  r,
124
124
  ...e
125
125
  ]), o;
126
126
  }
127
- function se(...e) {
127
+ function Fe(...e) {
128
128
  return (...t) => {
129
129
  for (let o of e) typeof o == "function" && o(...t);
130
130
  };
131
131
  }
132
- const E = (e) => {
132
+ const P = (e) => {
133
133
  var t;
134
134
  return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
135
- }, Q = (e) => e && "window" in e && e.window === e ? e : E(e).defaultView || window;
136
- function Qt(e) {
135
+ }, G = (e) => e && "window" in e && e.window === e ? e : P(e).defaultView || window;
136
+ function eo(e) {
137
137
  return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
138
138
  }
139
- function Zt(e) {
140
- return Qt(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
139
+ function to(e) {
140
+ return eo(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
141
141
  }
142
- let eo = !1;
143
- function ce() {
144
- return eo;
142
+ let oo = !1;
143
+ function A() {
144
+ return oo;
145
145
  }
146
- function C(e, t) {
147
- if (!ce()) return t && e ? e.contains(t) : !1;
146
+ function B(e, t) {
147
+ if (!A()) return t && e ? e.contains(t) : !1;
148
148
  if (!e || !t) return !1;
149
149
  let o = t;
150
150
  for (; o !== null; ) {
151
151
  if (o === e) return !0;
152
- o.tagName === "SLOT" && o.assignedSlot ? o = o.assignedSlot.parentNode : Zt(o) ? o = o.host : o = o.parentNode;
152
+ o.tagName === "SLOT" && o.assignedSlot ? o = o.assignedSlot.parentNode : to(o) ? o = o.host : o = o.parentNode;
153
153
  }
154
154
  return !1;
155
155
  }
156
- const y = (e = document) => {
156
+ const S = (e = document) => {
157
157
  var t;
158
- if (!ce()) return e.activeElement;
158
+ if (!A()) return e.activeElement;
159
159
  let o = e.activeElement;
160
160
  for (; o && "shadowRoot" in o && (!((t = o.shadowRoot) === null || t === void 0) && t.activeElement); ) o = o.shadowRoot.activeElement;
161
161
  return o;
162
162
  };
163
- function M(e) {
164
- if (ce() && e.target instanceof Element && e.target.shadowRoot) {
163
+ function k(e) {
164
+ if (A() && e.target instanceof Element && e.target.shadowRoot) {
165
165
  var t, o;
166
166
  if ("composedPath" in e) return (t = e.composedPath()[0]) !== null && t !== void 0 ? t : null;
167
167
  if ("composedPath" in e.nativeEvent) return (o = e.nativeEvent.composedPath()[0]) !== null && o !== void 0 ? o : null;
168
168
  }
169
169
  return e.target;
170
170
  }
171
- class to {
171
+ class no {
172
172
  get currentNode() {
173
173
  return this._currentNode;
174
174
  }
175
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.");
176
+ if (!B(this.root, t)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
177
177
  const o = [];
178
178
  let n = t, r = t;
179
179
  for (this._currentNode = t; n && n !== this.root; ) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
@@ -192,7 +192,7 @@ class to {
192
192
  }
193
193
  firstChild() {
194
194
  let t = this.currentNode, o = this.nextNode();
195
- return C(t, o) ? (o && (this.currentNode = o), o) : (this.currentNode = t, null);
195
+ return B(t, o) ? (o && (this.currentNode = o), o) : (this.currentNode = t, null);
196
196
  }
197
197
  lastChild() {
198
198
  let o = this._walkerStack[0].lastChild();
@@ -267,10 +267,10 @@ class to {
267
267
  if (i.nodeType === Node.ELEMENT_NODE) {
268
268
  const s = i.shadowRoot;
269
269
  if (s) {
270
- const d = this._doc.createTreeWalker(s, this.whatToShow, {
270
+ const u = this._doc.createTreeWalker(s, this.whatToShow, {
271
271
  acceptNode: this._acceptNode
272
272
  });
273
- return this._walkerStack.unshift(d), NodeFilter.FILTER_ACCEPT;
273
+ return this._walkerStack.unshift(u), NodeFilter.FILTER_ACCEPT;
274
274
  } else {
275
275
  var l;
276
276
  if (typeof this.filter == "function") return this.filter(i);
@@ -289,41 +289,41 @@ class to {
289
289
  }
290
290
  }
291
291
  }
292
- function oo(e, t, o, n) {
293
- return ce() ? new to(e, t, o, n) : e.createTreeWalker(t, o, n);
292
+ function it(e, t, o, n) {
293
+ return A() ? new no(e, t, o, n) : e.createTreeWalker(t, o, n);
294
294
  }
295
- function no(...e) {
295
+ function ro(...e) {
296
296
  return e.length === 1 && e[0] ? e[0] : (t) => {
297
297
  let o = !1;
298
298
  const n = e.map((r) => {
299
- const a = De(r, t);
299
+ const a = Ve(r, t);
300
300
  return o || (o = typeof a == "function"), a;
301
301
  });
302
302
  if (o) return () => {
303
303
  n.forEach((r, a) => {
304
- typeof r == "function" ? r() : De(e[a], null);
304
+ typeof r == "function" ? r() : Ve(e[a], null);
305
305
  });
306
306
  };
307
307
  };
308
308
  }
309
- function De(e, t) {
309
+ function Ve(e, t) {
310
310
  if (typeof e == "function") return e(t);
311
311
  e != null && (e.current = t);
312
312
  }
313
- function ot(e) {
313
+ function lt(e) {
314
314
  var t, o, n = "";
315
315
  if (typeof e == "string" || typeof e == "number") n += e;
316
316
  else if (typeof e == "object") if (Array.isArray(e)) {
317
317
  var r = e.length;
318
- for (t = 0; t < r; t++) e[t] && (o = ot(e[t])) && (n && (n += " "), n += o);
318
+ for (t = 0; t < r; t++) e[t] && (o = lt(e[t])) && (n && (n += " "), n += o);
319
319
  } else for (o in e) e[o] && (n && (n += " "), n += o);
320
320
  return n;
321
321
  }
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);
322
+ function ao() {
323
+ for (var e, t, o = 0, n = "", r = arguments.length; o < r; o++) (e = arguments[o]) && (t = lt(e)) && (n && (n += " "), n += t);
324
324
  return n;
325
325
  }
326
- function ao(...e) {
326
+ function io(...e) {
327
327
  let t = {
328
328
  ...e[0]
329
329
  };
@@ -334,19 +334,19 @@ function ao(...e) {
334
334
  typeof a == "function" && typeof i == "function" && // This is a lot faster than a regex.
335
335
  r[0] === "o" && r[1] === "n" && r.charCodeAt(2) >= /* 'A' */
336
336
  65 && r.charCodeAt(2) <= /* 'Z' */
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;
337
+ 90 ? t[r] = Fe(a, i) : (r === "className" || r === "UNSAFE_className") && typeof a == "string" && typeof i == "string" ? t[r] = ao(a, i) : r === "id" && a && i ? t.id = Zt(a, i) : r === "ref" && a && i ? t.ref = ro(a, i) : t[r] = i !== void 0 ? i : a;
338
338
  }
339
339
  }
340
340
  return t;
341
341
  }
342
- const io = /* @__PURE__ */ new Set([
342
+ const lo = /* @__PURE__ */ new Set([
343
343
  "id"
344
- ]), lo = /* @__PURE__ */ new Set([
344
+ ]), so = /* @__PURE__ */ new Set([
345
345
  "aria-label",
346
346
  "aria-labelledby",
347
347
  "aria-describedby",
348
348
  "aria-details"
349
- ]), so = /* @__PURE__ */ new Set([
349
+ ]), uo = /* @__PURE__ */ new Set([
350
350
  "href",
351
351
  "hrefLang",
352
352
  "target",
@@ -354,13 +354,13 @@ const io = /* @__PURE__ */ new Set([
354
354
  "download",
355
355
  "ping",
356
356
  "referrerPolicy"
357
- ]), uo = /* @__PURE__ */ new Set([
357
+ ]), co = /* @__PURE__ */ new Set([
358
358
  "dir",
359
359
  "lang",
360
360
  "hidden",
361
361
  "inert",
362
362
  "translate"
363
- ]), Re = /* @__PURE__ */ new Set([
363
+ ]), He = /* @__PURE__ */ new Set([
364
364
  "onClick",
365
365
  "onAuxClick",
366
366
  "onContextMenu",
@@ -395,37 +395,37 @@ const io = /* @__PURE__ */ new Set([
395
395
  "onTransitionEnd",
396
396
  "onTransitionRun",
397
397
  "onTransitionStart"
398
- ]), co = /^(data-.*)$/;
399
- function fo(e, t = {}) {
398
+ ]), fo = /^(data-.*)$/;
399
+ function mo(e, t = {}) {
400
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]);
401
+ for (const s in e) Object.prototype.hasOwnProperty.call(e, s) && (lo.has(s) || o && so.has(s) || n && uo.has(s) || r && co.has(s) || a && (He.has(s) || s.endsWith("Capture") && He.has(s.slice(0, -7))) || i?.has(s) || fo.test(s)) && (l[s] = e[s]);
402
402
  return l;
403
403
  }
404
- function Ee(e) {
405
- if (mo()) e.focus({
404
+ function ye(e) {
405
+ if (po()) e.focus({
406
406
  preventScroll: !0
407
407
  });
408
408
  else {
409
- let t = po(e);
410
- e.focus(), bo(t);
409
+ let t = bo(e);
410
+ e.focus(), go(t);
411
411
  }
412
412
  }
413
- let re = null;
414
- function mo() {
415
- if (re == null) {
416
- re = !1;
413
+ let ie = null;
414
+ function po() {
415
+ if (ie == null) {
416
+ ie = !1;
417
417
  try {
418
418
  document.createElement("div").focus({
419
419
  get preventScroll() {
420
- return re = !0, !0;
420
+ return ie = !0, !0;
421
421
  }
422
422
  });
423
423
  } catch {
424
424
  }
425
425
  }
426
- return re;
426
+ return ie;
427
427
  }
428
- function po(e) {
428
+ function bo(e) {
429
429
  let t = e.parentNode, o = [], n = document.scrollingElement || document.documentElement;
430
430
  for (; t instanceof HTMLElement && t !== n; )
431
431
  (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && o.push({
@@ -439,52 +439,52 @@ function po(e) {
439
439
  scrollLeft: n.scrollLeft
440
440
  }), o;
441
441
  }
442
- function bo(e) {
442
+ function go(e) {
443
443
  for (let { element: t, scrollTop: o, scrollLeft: n } of e)
444
444
  t.scrollTop = o, t.scrollLeft = n;
445
445
  }
446
- function fe(e) {
446
+ function me(e) {
447
447
  var t;
448
448
  if (typeof window > "u" || window.navigator == null) return !1;
449
449
  let o = (t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands;
450
450
  return Array.isArray(o) && o.some((n) => e.test(n.brand)) || e.test(window.navigator.userAgent);
451
451
  }
452
- function Te(e) {
452
+ function Ce(e) {
453
453
  var t;
454
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;
455
455
  }
456
- function O(e) {
456
+ function V(e) {
457
457
  if (process.env.NODE_ENV === "test") return e;
458
458
  let t = null;
459
459
  return () => (t == null && (t = e()), t);
460
460
  }
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();
461
+ const oe = V(function() {
462
+ return Ce(/^Mac/i);
463
+ }), vo = V(function() {
464
+ return Ce(/^iPhone/i);
465
+ }), st = V(function() {
466
+ return Ce(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
467
+ oe() && navigator.maxTouchPoints > 1;
468
+ }), dt = V(function() {
469
+ return vo() || st();
470
470
  });
471
- O(function() {
472
- return Z() || rt();
471
+ V(function() {
472
+ return oe() || dt();
473
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);
474
+ const ho = V(function() {
475
+ return me(/AppleWebKit/i) && !ut();
476
+ }), ut = V(function() {
477
+ return me(/Chrome/i);
478
+ }), ct = V(function() {
479
+ return me(/Android/i);
480
+ }), $o = V(function() {
481
+ return me(/Firefox/i);
482
482
  });
483
- function ee(e, t, o = !0) {
483
+ function ne(e, t, o = !0) {
484
484
  var n, r;
485
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", {
486
+ $o() && (!((r = window.event) === null || r === void 0 || (n = r.type) === null || n === void 0) && n.startsWith("key")) && e.target === "_blank" && (oe() ? a = !0 : i = !0);
487
+ let u = ho() && oe() && !st() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
488
488
  keyIdentifier: "Enter",
489
489
  metaKey: a,
490
490
  ctrlKey: i,
@@ -499,47 +499,47 @@ function ee(e, t, o = !0) {
499
499
  bubbles: !0,
500
500
  cancelable: !0
501
501
  });
502
- ee.isOpening = o, Ee(e), e.dispatchEvent(d), ee.isOpening = !1;
502
+ ne.isOpening = o, ye(e), e.dispatchEvent(u), ne.isOpening = !1;
503
503
  }
504
- ee.isOpening = !1;
505
- let D = /* @__PURE__ */ new Map(), _e = /* @__PURE__ */ new Set();
506
- function Ae() {
504
+ ne.isOpening = !1;
505
+ let H = /* @__PURE__ */ new Map(), ke = /* @__PURE__ */ new Set();
506
+ function ze() {
507
507
  if (typeof window > "u") return;
508
508
  function e(n) {
509
509
  return "propertyName" in n;
510
510
  }
511
511
  let t = (n) => {
512
- let r = M(n);
512
+ let r = k(n);
513
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, {
514
+ let a = H.get(r);
515
+ a || (a = /* @__PURE__ */ new Set(), H.set(r, a), r.addEventListener("transitioncancel", o, {
516
516
  once: !0
517
517
  })), a.add(n.propertyName);
518
518
  }, o = (n) => {
519
- let r = M(n);
519
+ let r = k(n);
520
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();
521
+ let a = H.get(r);
522
+ if (a && (a.delete(n.propertyName), a.size === 0 && (r.removeEventListener("transitioncancel", o), H.delete(r)), H.size === 0)) {
523
+ for (let i of ke) i();
524
+ ke.clear();
525
525
  }
526
526
  };
527
527
  document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", o);
528
528
  }
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);
529
+ typeof document < "u" && (document.readyState !== "loading" ? ze() : document.addEventListener("DOMContentLoaded", ze));
530
+ function wo() {
531
+ for (const [e] of H)
532
+ "isConnected" in e && !e.isConnected && H.delete(e);
533
533
  }
534
- function wo(e) {
534
+ function Eo(e) {
535
535
  requestAnimationFrame(() => {
536
- $o(), D.size === 0 ? e() : _e.add(e);
536
+ wo(), H.size === 0 ? e() : ke.add(e);
537
537
  });
538
538
  }
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);
539
+ function _o() {
540
+ let e = y(/* @__PURE__ */ new Map()), t = x((r, a, i, l) => {
541
+ let s = l?.once ? (...u) => {
542
+ e.current.delete(i), i(...u);
543
543
  } : i;
544
544
  e.current.set(i, {
545
545
  type: a,
@@ -547,18 +547,18 @@ function Eo() {
547
547
  fn: s,
548
548
  options: l
549
549
  }), r.addEventListener(a, s, l);
550
- }, []), o = k((r, a, i, l) => {
550
+ }, []), o = x((r, a, i, l) => {
551
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(() => {
552
+ let u = ((s = e.current.get(i)) === null || s === void 0 ? void 0 : s.fn) || i;
553
+ r.removeEventListener(a, u, l), e.current.delete(i);
554
+ }, []), n = x(() => {
555
555
  e.current.forEach((r, a) => {
556
556
  o(r.eventTarget, r.type, a, r.options);
557
557
  });
558
558
  }, [
559
559
  o
560
560
  ]);
561
- return S(() => n, [
561
+ return D(() => n, [
562
562
  n
563
563
  ]), {
564
564
  addGlobalListener: t,
@@ -566,35 +566,49 @@ function Eo() {
566
566
  removeAllGlobalListeners: n
567
567
  };
568
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(() => {
569
+ var he;
570
+ const Mo = (he = M.useInsertionEffect) !== null && he !== void 0 ? he : N;
571
+ function Ke(e) {
572
+ const t = y(null);
573
+ return Mo(() => {
574
574
  t.current = e;
575
575
  }, [
576
576
  e
577
- ]), k((...o) => {
577
+ ]), x((...o) => {
578
578
  const n = t.current;
579
579
  return n?.(...o);
580
580
  }, []);
581
581
  }
582
- function We(e, t) {
582
+ function Te(e, t) {
583
583
  if (!e) return !1;
584
584
  let o = window.getComputedStyle(e), n = document.scrollingElement || document.documentElement, r = /(auto|scroll)/.test(o.overflow + o.overflowX + o.overflowY);
585
585
  return e === n && o.overflow !== "hidden" && (r = !0), r && t && (r = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), r;
586
586
  }
587
- function lt(e, t) {
587
+ function ft(e, t) {
588
588
  let o = e;
589
- for (We(o, t) && (o = o.parentElement); o && !We(o, t); ) o = o.parentElement;
589
+ for (Te(o, t) && (o = o.parentElement); o && !Te(o, t); ) o = o.parentElement;
590
590
  return o || document.scrollingElement || document.documentElement;
591
591
  }
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;
592
+ const yo = /* @__PURE__ */ new Set([
593
+ "checkbox",
594
+ "radio",
595
+ "range",
596
+ "color",
597
+ "file",
598
+ "image",
599
+ "button",
600
+ "submit",
601
+ "reset"
602
+ ]);
603
+ function $e(e) {
604
+ return e instanceof HTMLInputElement && !yo.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
594
605
  }
595
- const yo = typeof Element < "u" && "checkVisibility" in Element.prototype;
596
606
  function ko(e) {
597
- const t = Q(e);
607
+ return e.pointerType === "" && e.isTrusted ? !0 : ct() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
608
+ }
609
+ const To = typeof Element < "u" && "checkVisibility" in Element.prototype;
610
+ function Po(e) {
611
+ const t = G(e);
598
612
  if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
599
613
  let { display: o, visibility: n } = e.style, r = o !== "none" && n !== "hidden" && n !== "collapse";
600
614
  if (r) {
@@ -604,16 +618,16 @@ function ko(e) {
604
618
  }
605
619
  return r;
606
620
  }
607
- function Po(e, t) {
621
+ function No(e, t) {
608
622
  return !e.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
609
623
  !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
610
624
  }
611
- function xe(e, t) {
612
- return yo ? e.checkVisibility({
625
+ function Be(e, t) {
626
+ return To ? e.checkVisibility({
613
627
  visibilityProperty: !0
614
- }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && ko(e) && Po(e, t) && (!e.parentElement || xe(e.parentElement, e));
628
+ }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Po(e) && No(e, t) && (!e.parentElement || Be(e.parentElement, e));
615
629
  }
616
- const Se = [
630
+ const Oe = [
617
631
  "input:not([disabled]):not([type=hidden])",
618
632
  "select:not([disabled])",
619
633
  "textarea:not([disabled])",
@@ -628,16 +642,16 @@ const Se = [
628
642
  "video[controls]",
629
643
  '[contenteditable]:not([contenteditable^="false"])',
630
644
  "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"]),');
645
+ ], Lo = Oe.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
646
+ Oe.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
647
+ const So = Oe.join(':not([hidden]):not([tabindex="-1"]),');
634
648
  function xo(e) {
635
- return e.matches(No) && xe(e) && !st(e);
649
+ return e.matches(Lo) && Be(e) && !mt(e);
636
650
  }
637
- function So(e) {
638
- return e.matches(To) && xe(e) && !st(e);
651
+ function Fo(e) {
652
+ return e.matches(So) && Be(e) && !mt(e);
639
653
  }
640
- function st(e) {
654
+ function mt(e) {
641
655
  let t = e;
642
656
  for (; t != null; ) {
643
657
  if (t instanceof t.ownerDocument.defaultView.HTMLElement && t.inert) return !0;
@@ -645,61 +659,61 @@ function st(e) {
645
659
  }
646
660
  return !1;
647
661
  }
648
- var ve;
649
- const Lo = typeof document < "u" ? (ve = h.useInsertionEffect) !== null && ve !== void 0 ? ve : h.useLayoutEffect : () => {
662
+ var we;
663
+ const Co = typeof document < "u" ? (we = M.useInsertionEffect) !== null && we !== void 0 ? we : M.useLayoutEffect : () => {
650
664
  };
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;
665
+ function Bo(e, t, o) {
666
+ let [n, r] = re(e || t), a = y(n), i = y(e !== void 0), l = e !== void 0;
667
+ D(() => {
668
+ let d = i.current;
669
+ d !== l && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${d ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}.`), i.current = l;
656
670
  }, [
657
671
  l
658
672
  ]);
659
673
  let s = l ? e : n;
660
- Lo(() => {
674
+ Co(() => {
661
675
  a.current = s;
662
676
  });
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));
677
+ let [, u] = Dt(() => ({}), {}), f = x((d, ...m) => {
678
+ let p = typeof d == "function" ? d(a.current) : d;
679
+ Object.is(a.current, p) || (a.current = p, r(p), u(), o?.(p, ...m));
666
680
  }, [
667
681
  o
668
682
  ]);
669
683
  return [
670
684
  s,
671
- u
685
+ f
672
686
  ];
673
687
  }
674
- function dt(e) {
688
+ function pt(e) {
675
689
  let t = e;
676
690
  return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
677
691
  }, t;
678
692
  }
679
- function Co(e, t) {
693
+ function Oo(e, t) {
680
694
  Object.defineProperty(e, "target", {
681
695
  value: t
682
696
  }), Object.defineProperty(e, "currentTarget", {
683
697
  value: t
684
698
  });
685
699
  }
686
- function Bo(e) {
687
- let t = $({
700
+ function Ro(e) {
701
+ let t = y({
688
702
  isFocused: !1,
689
703
  observer: null
690
704
  });
691
- return _(() => {
705
+ return N(() => {
692
706
  const o = t.current;
693
707
  return () => {
694
708
  o.observer && (o.observer.disconnect(), o.observer = null);
695
709
  };
696
- }, []), k((o) => {
697
- let n = M(o);
710
+ }, []), x((o) => {
711
+ let n = k(o);
698
712
  if (n instanceof HTMLButtonElement || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement || n instanceof HTMLSelectElement) {
699
713
  t.current.isFocused = !0;
700
714
  let r = n, a = (i) => {
701
715
  if (t.current.isFocused = !1, r.disabled) {
702
- let l = dt(i);
716
+ let l = pt(i);
703
717
  e?.(l);
704
718
  }
705
719
  t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
@@ -710,7 +724,7 @@ function Bo(e) {
710
724
  if (t.current.isFocused && r.disabled) {
711
725
  var i;
712
726
  (i = t.current.observer) === null || i === void 0 || i.disconnect();
713
- let l = r === y() ? null : y();
727
+ let l = r === S() ? null : S();
714
728
  r.dispatchEvent(new FocusEvent("blur", {
715
729
  relatedTarget: l
716
730
  })), r.dispatchEvent(new FocusEvent("focusout", {
@@ -729,111 +743,111 @@ function Bo(e) {
729
743
  e
730
744
  ]);
731
745
  }
732
- let Oo = !1;
733
- const ut = h.createContext({
746
+ let Do = !1;
747
+ const bt = M.createContext({
734
748
  register: () => {
735
749
  }
736
750
  });
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);
751
+ bt.displayName = "PressResponderContext";
752
+ let ae = null;
753
+ const Io = /* @__PURE__ */ new Set();
754
+ let ee = /* @__PURE__ */ new Map(), j = !1, Pe = !1;
755
+ function Re(e, t) {
756
+ for (let o of Io) o(e, t);
743
757
  }
744
- function Ro(e) {
745
- return !(e.metaKey || !Z() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
758
+ function Ao(e) {
759
+ return !(e.metaKey || !oe() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
746
760
  }
747
- function de(e) {
748
- W = !0, !ee.isOpening && Ro(e) && (oe = "keyboard", Le("keyboard", e));
761
+ function ce(e) {
762
+ j = !0, !ne.isOpening && Ao(e) && (ae = "keyboard", Re("keyboard", e));
749
763
  }
750
- function T(e) {
751
- oe = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (W = !0, Le("pointer", e));
764
+ function C(e) {
765
+ ae = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (j = !0, Re("pointer", e));
752
766
  }
753
- function ct(e) {
754
- !ee.isOpening && Mo(e) && (W = !0, oe = "virtual");
767
+ function gt(e) {
768
+ !ne.isOpening && ko(e) && (j = !0, ae = "virtual");
755
769
  }
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);
770
+ function vt(e) {
771
+ k(e) === window || k(e) === document || Do || !e.isTrusted || (!j && !Pe && (ae = "virtual", Re("virtual", e)), j = !1, Pe = !1);
758
772
  }
759
- function mt() {
760
- W = !1, Me = !0;
773
+ function ht() {
774
+ j = !1, Pe = !0;
761
775
  }
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);
776
+ function qe(e) {
777
+ if (typeof window > "u" || typeof document > "u" || ee.get(G(e))) return;
778
+ const t = G(e), o = P(e);
765
779
  let n = t.HTMLElement.prototype.focus;
766
780
  t.HTMLElement.prototype.focus = function() {
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);
781
+ j = !0, n.apply(this, arguments);
782
+ }, o.addEventListener("keydown", ce, !0), o.addEventListener("keyup", ce, !0), o.addEventListener("click", gt, !0), t.addEventListener("focus", vt, !0), t.addEventListener("blur", ht, !1), typeof PointerEvent < "u" ? (o.addEventListener("pointerdown", C, !0), o.addEventListener("pointermove", C, !0), o.addEventListener("pointerup", C, !0)) : process.env.NODE_ENV === "test" && (o.addEventListener("mousedown", C, !0), o.addEventListener("mousemove", C, !0), o.addEventListener("mouseup", C, !0)), t.addEventListener("beforeunload", () => {
783
+ $t(e);
770
784
  }, {
771
785
  once: !0
772
- }), Y.set(t, {
786
+ }), ee.set(t, {
773
787
  focus: n
774
788
  });
775
789
  }
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));
790
+ const $t = (e, t) => {
791
+ const o = G(e), n = P(e);
792
+ t && n.removeEventListener("DOMContentLoaded", t), ee.has(o) && (o.HTMLElement.prototype.focus = ee.get(o).focus, n.removeEventListener("keydown", ce, !0), n.removeEventListener("keyup", ce, !0), n.removeEventListener("click", gt, !0), o.removeEventListener("focus", vt, !0), o.removeEventListener("blur", ht, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", C, !0), n.removeEventListener("pointermove", C, !0), n.removeEventListener("pointerup", C, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", C, !0), n.removeEventListener("mousemove", C, !0), n.removeEventListener("mouseup", C, !0)), ee.delete(o));
779
793
  };
780
- function Ao(e) {
781
- const t = E(e);
794
+ function Wo(e) {
795
+ const t = P(e);
782
796
  let o;
783
- return t.readyState !== "loading" ? Ve(e) : (o = () => {
784
- Ve(e);
785
- }, t.addEventListener("DOMContentLoaded", o)), () => pt(e, o);
797
+ return t.readyState !== "loading" ? qe(e) : (o = () => {
798
+ qe(e);
799
+ }, t.addEventListener("DOMContentLoaded", o)), () => $t(e, o);
786
800
  }
787
- typeof document < "u" && Ao();
788
- function bt() {
789
- return oe;
801
+ typeof document < "u" && Wo();
802
+ function wt() {
803
+ return ae;
790
804
  }
791
- function ye(e) {
805
+ function Ne(e) {
792
806
  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);
807
+ const t = P(e);
808
+ if (wt() === "virtual") {
809
+ let o = S(t);
810
+ Eo(() => {
811
+ const n = S(t);
812
+ (n === o || n === t.body) && e.isConnected && ye(e);
799
813
  });
800
- } else Ee(e);
814
+ } else ye(e);
801
815
  }
802
- function Io({ children: e }) {
803
- let t = X(() => ({
816
+ function Vo({ children: e }) {
817
+ let t = Y(() => ({
804
818
  register: () => {
805
819
  }
806
820
  }), []);
807
- return /* @__PURE__ */ h.createElement(ut.Provider, {
821
+ return /* @__PURE__ */ M.createElement(bt.Provider, {
808
822
  value: t
809
823
  }, e);
810
824
  }
811
- function Wo(e) {
812
- let { isDisabled: t, onBlurWithin: o, onFocusWithin: n, onFocusWithinChange: r } = e, a = $({
825
+ function Ho(e) {
826
+ let { isDisabled: t, onBlurWithin: o, onFocusWithin: n, onFocusWithinChange: r } = e, a = y({
813
827
  isFocusWithin: !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));
828
+ }), { addGlobalListener: i, removeAllGlobalListeners: l } = _o(), s = x((d) => {
829
+ B(d.currentTarget, k(d)) && a.current.isFocusWithin && !B(d.currentTarget, d.relatedTarget) && (a.current.isFocusWithin = !1, l(), o && o(d), r && r(!1));
816
830
  }, [
817
831
  o,
818
832
  r,
819
833
  a,
820
834
  l
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
835
+ ]), u = Ro(s), f = x((d) => {
836
+ if (!B(d.currentTarget, k(d))) return;
837
+ let m = k(d);
838
+ const p = P(m), v = S(p);
839
+ if (!a.current.isFocusWithin && v === m) {
840
+ n && n(d), r && r(!0), a.current.isFocusWithin = !0, u(d);
841
+ let g = d.currentTarget;
842
+ i(p, "focus", (L) => {
843
+ let b = k(L);
844
+ if (a.current.isFocusWithin && !B(g, b)) {
845
+ let h = new p.defaultView.FocusEvent("blur", {
846
+ relatedTarget: b
833
847
  });
834
- Co(ne, P);
835
- let H = dt(ne);
836
- s(H);
848
+ Oo(h, g);
849
+ let $ = pt(h);
850
+ s($);
837
851
  }
838
852
  }, {
839
853
  capture: !0
@@ -842,7 +856,7 @@ function Wo(e) {
842
856
  }, [
843
857
  n,
844
858
  r,
845
- d,
859
+ u,
846
860
  i,
847
861
  s
848
862
  ]);
@@ -854,39 +868,39 @@ function Wo(e) {
854
868
  }
855
869
  } : {
856
870
  focusWithinProps: {
857
- onFocus: u,
871
+ onFocus: f,
858
872
  onBlur: s
859
873
  }
860
874
  };
861
875
  }
862
- function Vo(e) {
863
- let { ref: t, onInteractOutside: o, isDisabled: n, onInteractOutsideStart: r } = e, a = $({
876
+ function zo(e) {
877
+ let { ref: t, onInteractOutside: o, isDisabled: n, onInteractOutsideStart: r } = e, a = y({
864
878
  isPointerDown: !1,
865
879
  ignoreEmulatedMouseEvents: !1
866
- }), i = Ie((s) => {
867
- o && ae(s, t) && (r && r(s), a.current.isPointerDown = !0);
868
- }), l = Ie((s) => {
880
+ }), i = Ke((s) => {
881
+ o && le(s, t) && (r && r(s), a.current.isPointerDown = !0);
882
+ }), l = Ke((s) => {
869
883
  o && o(s);
870
884
  });
871
- S(() => {
885
+ D(() => {
872
886
  let s = a.current;
873
887
  if (n) return;
874
- const d = t.current, u = E(d);
888
+ const u = t.current, f = P(u);
875
889
  if (typeof PointerEvent < "u") {
876
- let c = (m) => {
877
- s.isPointerDown && ae(m, t) && l(m), s.isPointerDown = !1;
890
+ let d = (m) => {
891
+ s.isPointerDown && le(m, t) && l(m), s.isPointerDown = !1;
878
892
  };
879
- return u.addEventListener("pointerdown", i, !0), u.addEventListener("click", c, !0), () => {
880
- u.removeEventListener("pointerdown", i, !0), u.removeEventListener("click", c, !0);
893
+ return f.addEventListener("pointerdown", i, !0), f.addEventListener("click", d, !0), () => {
894
+ f.removeEventListener("pointerdown", i, !0), f.removeEventListener("click", d, !0);
881
895
  };
882
896
  } 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;
897
+ let d = (p) => {
898
+ s.ignoreEmulatedMouseEvents ? s.ignoreEmulatedMouseEvents = !1 : s.isPointerDown && le(p, t) && l(p), s.isPointerDown = !1;
899
+ }, m = (p) => {
900
+ s.ignoreEmulatedMouseEvents = !0, s.isPointerDown && le(p, t) && l(p), s.isPointerDown = !1;
887
901
  };
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);
902
+ return f.addEventListener("mousedown", i, !0), f.addEventListener("mouseup", d, !0), f.addEventListener("touchstart", i, !0), f.addEventListener("touchend", m, !0), () => {
903
+ f.removeEventListener("mousedown", i, !0), f.removeEventListener("mouseup", d, !0), f.removeEventListener("touchstart", i, !0), f.removeEventListener("touchend", m, !0);
890
904
  };
891
905
  }
892
906
  }, [
@@ -894,226 +908,226 @@ function Vo(e) {
894
908
  n
895
909
  ]);
896
910
  }
897
- function ae(e, t) {
911
+ function le(e, t) {
898
912
  if (e.button > 0) return !1;
899
- let o = M(e);
913
+ let o = k(e);
900
914
  if (o) {
901
915
  const n = o.ownerDocument;
902
- if (!n || !C(n.documentElement, o) || o.closest("[data-react-aria-top-layer]")) return !1;
916
+ if (!n || !B(n.documentElement, o) || o.closest("[data-react-aria-top-layer]")) return !1;
903
917
  }
904
918
  return t.current ? !e.composedPath().includes(t.current) : !1;
905
919
  }
906
- const ze = /* @__PURE__ */ h.createContext(null), ke = "react-aria-focus-scope-restore";
907
- let v = null;
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({
920
+ const je = /* @__PURE__ */ M.createContext(null), Le = "react-aria-focus-scope-restore";
921
+ let _ = null;
922
+ function Ko(e) {
923
+ let { children: t, contain: o, restoreFocus: n, autoFocus: r } = e, a = y(null), i = y(null), l = y([]), { parentNode: s } = J(je) || {}, u = Y(() => new xe({
910
924
  scopeRef: l
911
925
  }), [
912
926
  l
913
927
  ]);
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);
928
+ N(() => {
929
+ let m = s || T.root;
930
+ if (T.getTreeNode(m.scopeRef) && _ && !fe(_, m.scopeRef)) {
931
+ let p = T.getTreeNode(_);
932
+ p && (m = p);
919
933
  }
920
- m.addChild(d), w.addNode(d);
934
+ m.addChild(u), T.addNode(u);
921
935
  }, [
922
- d,
936
+ u,
923
937
  s
924
- ]), _(() => {
925
- let m = w.getTreeNode(l);
938
+ ]), N(() => {
939
+ let m = T.getTreeNode(l);
926
940
  m && (m.contain = !!o);
927
941
  }, [
928
942
  o
929
- ]), _(() => {
943
+ ]), N(() => {
930
944
  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);
945
+ let p = (m = a.current) === null || m === void 0 ? void 0 : m.nextSibling, v = [], g = (L) => L.stopPropagation();
946
+ for (; p && p !== i.current; )
947
+ v.push(p), p.addEventListener(Le, g), p = p.nextSibling;
948
+ return l.current = v, () => {
949
+ for (let L of v) L.removeEventListener(Le, g);
936
950
  };
937
951
  }, [
938
952
  t
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);
953
+ ]), Qo(l, n, o), Go(l, o), Zo(l, n, o), Xo(l, r), D(() => {
954
+ const m = S(P(l.current ? l.current[0] : void 0));
955
+ let p = null;
956
+ if (O(m, l.current)) {
957
+ for (let v of T.traverse()) v.scopeRef && O(m, v.scopeRef.current) && (p = v);
958
+ p === T.getTreeNode(l) && (_ = p.scopeRef);
945
959
  }
946
960
  }, [
947
961
  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);
962
+ ]), N(() => () => {
963
+ var m, p, v;
964
+ let g = (v = (p = T.getTreeNode(l)) === null || p === void 0 || (m = p.parent) === null || m === void 0 ? void 0 : m.scopeRef) !== null && v !== void 0 ? v : null;
965
+ (l === _ || fe(l, _)) && (!g || T.getTreeNode(g)) && (_ = g), T.removeTreeNode(l);
952
966
  }, [
953
967
  l
954
968
  ]);
955
- let u = X(() => Ko(l), []), c = X(() => ({
956
- focusManager: u,
957
- parentNode: d
969
+ let f = Y(() => qo(l), []), d = Y(() => ({
970
+ focusManager: f,
971
+ parentNode: u
958
972
  }), [
959
- d,
960
- u
973
+ u,
974
+ f
961
975
  ]);
962
- return /* @__PURE__ */ h.createElement(ze.Provider, {
963
- value: c
964
- }, /* @__PURE__ */ h.createElement("span", {
976
+ return /* @__PURE__ */ M.createElement(je.Provider, {
977
+ value: d
978
+ }, /* @__PURE__ */ M.createElement("span", {
965
979
  "data-focus-scope-start": !0,
966
980
  hidden: !0,
967
981
  ref: a
968
- }), t, /* @__PURE__ */ h.createElement("span", {
982
+ }), t, /* @__PURE__ */ M.createElement("span", {
969
983
  "data-focus-scope-end": !0,
970
984
  hidden: !0,
971
985
  ref: i
972
986
  }));
973
987
  }
974
- function Ko(e) {
988
+ function qo(e) {
975
989
  return {
976
990
  focusNext(t = {}) {
977
991
  let o = e.current, { from: n, tabbable: r, wrap: a, accept: i } = t;
978
992
  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, {
993
+ let s = n || S(P((l = o[0]) !== null && l !== void 0 ? l : void 0)), u = o[0].previousElementSibling, f = q(o), d = K(f, {
980
994
  tabbable: r,
981
995
  accept: i
982
996
  }, o);
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;
997
+ d.currentNode = O(s, o) ? s : u;
998
+ let m = d.nextNode();
999
+ return !m && a && (d.currentNode = u, m = d.nextNode()), m && W(m, !0), m;
986
1000
  },
987
1001
  focusPrevious(t = {}) {
988
1002
  let o = e.current, { from: n, tabbable: r, wrap: a, accept: i } = t;
989
1003
  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, {
1004
+ let s = n || S(P((l = o[0]) !== null && l !== void 0 ? l : void 0)), u = o[o.length - 1].nextElementSibling, f = q(o), d = K(f, {
991
1005
  tabbable: r,
992
1006
  accept: i
993
1007
  }, o);
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;
1008
+ d.currentNode = O(s, o) ? s : u;
1009
+ let m = d.previousNode();
1010
+ return !m && a && (d.currentNode = u, m = d.previousNode()), m && W(m, !0), m;
997
1011
  },
998
1012
  focusFirst(t = {}) {
999
- let o = e.current, { tabbable: n, accept: r } = t, a = I(o), i = A(a, {
1013
+ let o = e.current, { tabbable: n, accept: r } = t, a = q(o), i = K(a, {
1000
1014
  tabbable: n,
1001
1015
  accept: r
1002
1016
  }, o);
1003
1017
  i.currentNode = o[0].previousElementSibling;
1004
1018
  let l = i.nextNode();
1005
- return l && B(l, !0), l;
1019
+ return l && W(l, !0), l;
1006
1020
  },
1007
1021
  focusLast(t = {}) {
1008
- let o = e.current, { tabbable: n, accept: r } = t, a = I(o), i = A(a, {
1022
+ let o = e.current, { tabbable: n, accept: r } = t, a = q(o), i = K(a, {
1009
1023
  tabbable: n,
1010
1024
  accept: r
1011
1025
  }, o);
1012
1026
  i.currentNode = o[o.length - 1].nextElementSibling;
1013
1027
  let l = i.previousNode();
1014
- return l && B(l, !0), l;
1028
+ return l && W(l, !0), l;
1015
1029
  }
1016
1030
  };
1017
1031
  }
1018
- function I(e) {
1032
+ function q(e) {
1019
1033
  return e[0].parentElement;
1020
1034
  }
1021
- function J(e) {
1022
- let t = w.getTreeNode(v);
1035
+ function Z(e) {
1036
+ let t = T.getTreeNode(_);
1023
1037
  for (; t && t.scopeRef !== e; ) {
1024
1038
  if (t.contain) return !1;
1025
1039
  t = t.parent;
1026
1040
  }
1027
1041
  return !0;
1028
1042
  }
1029
- function qo(e) {
1043
+ function jo(e) {
1030
1044
  if (!e.form)
1031
- return Array.from(E(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((n) => !n.form);
1045
+ return Array.from(P(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((n) => !n.form);
1032
1046
  const t = e.form.elements.namedItem(e.name);
1033
- let o = Q(e);
1047
+ let o = G(e);
1034
1048
  return t instanceof o.RadioNodeList ? Array.from(t).filter((n) => n instanceof o.HTMLInputElement) : t instanceof o.HTMLInputElement ? [
1035
1049
  t
1036
1050
  ] : [];
1037
1051
  }
1038
- function Ho(e) {
1052
+ function Uo(e) {
1039
1053
  if (e.checked) return !0;
1040
- const t = qo(e);
1054
+ const t = jo(e);
1041
1055
  return t.length > 0 && !t.some((o) => o.checked);
1042
1056
  }
1043
- function jo(e, t) {
1044
- let o = $(void 0), n = $(void 0);
1045
- _(() => {
1057
+ function Go(e, t) {
1058
+ let o = y(void 0), n = y(void 0);
1059
+ N(() => {
1046
1060
  let r = e.current;
1047
1061
  if (!t) {
1048
1062
  n.current && (cancelAnimationFrame(n.current), n.current = void 0);
1049
1063
  return;
1050
1064
  }
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, {
1065
+ const a = P(r ? r[0] : void 0);
1066
+ let i = (u) => {
1067
+ if (u.key !== "Tab" || u.altKey || u.ctrlKey || u.metaKey || !Z(e) || u.isComposing) return;
1068
+ let f = S(a), d = e.current;
1069
+ if (!d || !O(f, d)) return;
1070
+ let m = q(d), p = K(m, {
1057
1071
  tabbable: !0
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) => {
1072
+ }, d);
1073
+ if (!f) return;
1074
+ p.currentNode = f;
1075
+ let v = u.shiftKey ? p.previousNode() : p.nextNode();
1076
+ v || (p.currentNode = u.shiftKey ? d[d.length - 1].nextElementSibling : d[0].previousElementSibling, v = u.shiftKey ? p.previousNode() : p.nextNode()), u.preventDefault(), v && W(v, !0);
1077
+ }, l = (u) => {
1078
+ (!_ || fe(_, e)) && O(k(u), e.current) ? (_ = e, o.current = k(u)) : Z(e) && !z(k(u), e) ? o.current ? o.current.focus() : _ && _.current && Se(_.current) : Z(e) && (o.current = k(u));
1079
+ }, s = (u) => {
1066
1080
  n.current && cancelAnimationFrame(n.current), n.current = requestAnimationFrame(() => {
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);
1081
+ let f = wt(), d = (f === "virtual" || f === null) && ct() && ut(), m = S(a);
1082
+ if (!d && m && Z(e) && !z(m, e)) {
1083
+ _ = e;
1084
+ let v = k(u);
1085
+ if (v && v.isConnected) {
1086
+ var p;
1087
+ o.current = v, (p = o.current) === null || p === void 0 || p.focus();
1088
+ } else _.current && Se(_.current);
1075
1089
  }
1076
1090
  });
1077
1091
  };
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));
1092
+ return a.addEventListener("keydown", i, !1), a.addEventListener("focusin", l, !1), r?.forEach((u) => u.addEventListener("focusin", l, !1)), r?.forEach((u) => u.addEventListener("focusout", s, !1)), () => {
1093
+ a.removeEventListener("keydown", i, !1), a.removeEventListener("focusin", l, !1), r?.forEach((u) => u.removeEventListener("focusin", l, !1)), r?.forEach((u) => u.removeEventListener("focusout", s, !1));
1080
1094
  };
1081
1095
  }, [
1082
1096
  e,
1083
1097
  t
1084
- ]), _(() => () => {
1098
+ ]), N(() => () => {
1085
1099
  n.current && cancelAnimationFrame(n.current);
1086
1100
  }, [
1087
1101
  n
1088
1102
  ]);
1089
1103
  }
1090
- function gt(e) {
1091
- return R(e);
1104
+ function Et(e) {
1105
+ return z(e);
1092
1106
  }
1093
- function x(e, t) {
1094
- return !e || !t ? !1 : t.some((o) => C(o, e));
1107
+ function O(e, t) {
1108
+ return !e || !t ? !1 : t.some((o) => B(o, e));
1095
1109
  }
1096
- function R(e, t = null) {
1110
+ function z(e, t = null) {
1097
1111
  if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
1098
- for (let { scopeRef: o } of w.traverse(w.getTreeNode(t)))
1099
- if (o && x(e, o.current)) return !0;
1112
+ for (let { scopeRef: o } of T.traverse(T.getTreeNode(t)))
1113
+ if (o && O(e, o.current)) return !0;
1100
1114
  return !1;
1101
1115
  }
1102
- function Uo(e) {
1103
- return R(e, v);
1116
+ function Jo(e) {
1117
+ return z(e, _);
1104
1118
  }
1105
- function ue(e, t) {
1119
+ function fe(e, t) {
1106
1120
  var o;
1107
- let n = (o = w.getTreeNode(t)) === null || o === void 0 ? void 0 : o.parent;
1121
+ let n = (o = T.getTreeNode(t)) === null || o === void 0 ? void 0 : o.parent;
1108
1122
  for (; n; ) {
1109
1123
  if (n.scopeRef === e) return !0;
1110
1124
  n = n.parent;
1111
1125
  }
1112
1126
  return !1;
1113
1127
  }
1114
- function B(e, t = !1) {
1128
+ function W(e, t = !1) {
1115
1129
  if (e != null && !t) try {
1116
- ye(e);
1130
+ Ne(e);
1117
1131
  } catch {
1118
1132
  }
1119
1133
  else if (e != null) try {
@@ -1121,40 +1135,40 @@ function B(e, t = !1) {
1121
1135
  } catch {
1122
1136
  }
1123
1137
  }
1124
- function vt(e, t = !0) {
1125
- let o = e[0].previousElementSibling, n = I(e), r = A(n, {
1138
+ function _t(e, t = !0) {
1139
+ let o = e[0].previousElementSibling, n = q(e), r = K(n, {
1126
1140
  tabbable: t
1127
1141
  }, e);
1128
1142
  r.currentNode = o;
1129
1143
  let a = r.nextNode();
1130
- return t && !a && (n = I(e), r = A(n, {
1144
+ return t && !a && (n = q(e), r = K(n, {
1131
1145
  tabbable: !1
1132
1146
  }, e), r.currentNode = o, a = r.nextNode()), a;
1133
1147
  }
1134
- function Pe(e, t = !0) {
1135
- B(vt(e, t));
1148
+ function Se(e, t = !0) {
1149
+ W(_t(e, t));
1136
1150
  }
1137
- function Go(e, t) {
1138
- const o = h.useRef(t);
1139
- S(() => {
1151
+ function Xo(e, t) {
1152
+ const o = M.useRef(t);
1153
+ D(() => {
1140
1154
  if (o.current) {
1141
- v = e;
1142
- const n = E(e.current ? e.current[0] : void 0);
1143
- !x(y(n), v.current) && e.current && Pe(e.current);
1155
+ _ = e;
1156
+ const n = P(e.current ? e.current[0] : void 0);
1157
+ !O(S(n), _.current) && e.current && Se(e.current);
1144
1158
  }
1145
1159
  o.current = !1;
1146
1160
  }, [
1147
1161
  e
1148
1162
  ]);
1149
1163
  }
1150
- function Jo(e, t, o) {
1151
- _(() => {
1164
+ function Qo(e, t, o) {
1165
+ N(() => {
1152
1166
  if (t || o) return;
1153
1167
  let n = e.current;
1154
- const r = E(n ? n[0] : void 0);
1168
+ const r = P(n ? n[0] : void 0);
1155
1169
  let a = (i) => {
1156
- let l = M(i);
1157
- x(l, e.current) ? v = e : gt(l) || (v = null);
1170
+ let l = k(i);
1171
+ O(l, e.current) ? _ = e : Et(l) || (_ = null);
1158
1172
  };
1159
1173
  return r.addEventListener("focusin", a, !1), n?.forEach((i) => i.addEventListener("focusin", a, !1)), () => {
1160
1174
  r.removeEventListener("focusin", a, !1), n?.forEach((i) => i.removeEventListener("focusin", a, !1));
@@ -1165,22 +1179,22 @@ function Jo(e, t, o) {
1165
1179
  o
1166
1180
  ]);
1167
1181
  }
1168
- function Ke(e) {
1169
- let t = w.getTreeNode(v);
1182
+ function Ue(e) {
1183
+ let t = T.getTreeNode(_);
1170
1184
  for (; t && t.scopeRef !== e; ) {
1171
1185
  if (t.nodeToRestore) return !1;
1172
1186
  t = t.parent;
1173
1187
  }
1174
1188
  return t?.scopeRef === e;
1175
1189
  }
1176
- function Xo(e, t, o) {
1177
- const n = $(typeof document < "u" ? y(E(e.current ? e.current[0] : void 0)) : null);
1178
- _(() => {
1190
+ function Zo(e, t, o) {
1191
+ const n = y(typeof document < "u" ? S(P(e.current ? e.current[0] : void 0)) : null);
1192
+ N(() => {
1179
1193
  let r = e.current;
1180
- const a = E(r ? r[0] : void 0);
1194
+ const a = P(r ? r[0] : void 0);
1181
1195
  if (!t || o) return;
1182
1196
  let i = () => {
1183
- (!v || ue(v, e)) && x(y(a), e.current) && (v = e);
1197
+ (!_ || fe(_, e)) && O(S(a), e.current) && (_ = e);
1184
1198
  };
1185
1199
  return a.addEventListener("focusin", i, !1), r?.forEach((l) => l.addEventListener("focusin", i, !1)), () => {
1186
1200
  a.removeEventListener("focusin", i, !1), r?.forEach((l) => l.removeEventListener("focusin", i, !1));
@@ -1188,26 +1202,26 @@ function Xo(e, t, o) {
1188
1202
  }, [
1189
1203
  e,
1190
1204
  o
1191
- ]), _(() => {
1192
- const r = E(e.current ? e.current[0] : void 0);
1205
+ ]), N(() => {
1206
+ const r = P(e.current ? e.current[0] : void 0);
1193
1207
  if (!t) return;
1194
1208
  let a = (i) => {
1195
- if (i.key !== "Tab" || i.altKey || i.ctrlKey || i.metaKey || !J(e) || i.isComposing) return;
1209
+ if (i.key !== "Tab" || i.altKey || i.ctrlKey || i.metaKey || !Z(e) || i.isComposing) return;
1196
1210
  let l = r.activeElement;
1197
- if (!R(l, e) || !Ke(e)) return;
1198
- let s = w.getTreeNode(e);
1211
+ if (!z(l, e) || !Ue(e)) return;
1212
+ let s = T.getTreeNode(e);
1199
1213
  if (!s) return;
1200
- let d = s.nodeToRestore, u = A(r.body, {
1214
+ let u = s.nodeToRestore, f = K(r.body, {
1201
1215
  tabbable: !0
1202
1216
  });
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;
1217
+ f.currentNode = l;
1218
+ let d = i.shiftKey ? f.previousNode() : f.nextNode();
1219
+ if ((!u || !u.isConnected || u === r.body) && (u = void 0, s.nodeToRestore = void 0), (!d || !z(d, e)) && u) {
1220
+ f.currentNode = u;
1207
1221
  do
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();
1222
+ d = i.shiftKey ? f.previousNode() : f.nextNode();
1223
+ while (z(d, e));
1224
+ i.preventDefault(), i.stopPropagation(), d ? W(d, !0) : Et(u) ? W(u, !0) : l.blur();
1211
1225
  }
1212
1226
  };
1213
1227
  return o || r.addEventListener("keydown", a, !0), () => {
@@ -1217,35 +1231,35 @@ function Xo(e, t, o) {
1217
1231
  e,
1218
1232
  t,
1219
1233
  o
1220
- ]), _(() => {
1221
- const r = E(e.current ? e.current[0] : void 0);
1234
+ ]), N(() => {
1235
+ const r = P(e.current ? e.current[0] : void 0);
1222
1236
  if (!t) return;
1223
- let a = w.getTreeNode(e);
1237
+ let a = T.getTreeNode(e);
1224
1238
  if (a) {
1225
1239
  var i;
1226
1240
  return a.nodeToRestore = (i = n.current) !== null && i !== void 0 ? i : void 0, () => {
1227
- let l = w.getTreeNode(e);
1241
+ let l = T.getTreeNode(e);
1228
1242
  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();
1243
+ let s = l.nodeToRestore, u = S(r);
1244
+ if (t && s && (u && z(u, e) || u === r.body && Ue(e))) {
1245
+ let f = T.clone();
1232
1246
  requestAnimationFrame(() => {
1233
1247
  if (r.activeElement === r.body) {
1234
- let c = u.getTreeNode(e);
1235
- for (; c; ) {
1236
- if (c.nodeToRestore && c.nodeToRestore.isConnected) {
1237
- qe(c.nodeToRestore);
1248
+ let d = f.getTreeNode(e);
1249
+ for (; d; ) {
1250
+ if (d.nodeToRestore && d.nodeToRestore.isConnected) {
1251
+ Ge(d.nodeToRestore);
1238
1252
  return;
1239
1253
  }
1240
- c = c.parent;
1254
+ d = d.parent;
1241
1255
  }
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);
1256
+ for (d = f.getTreeNode(e); d; ) {
1257
+ if (d.scopeRef && d.scopeRef.current && T.getTreeNode(d.scopeRef)) {
1258
+ let m = _t(d.scopeRef.current, !0);
1259
+ Ge(m);
1246
1260
  return;
1247
1261
  }
1248
- c = c.parent;
1262
+ d = d.parent;
1249
1263
  }
1250
1264
  }
1251
1265
  });
@@ -1257,21 +1271,21 @@ function Xo(e, t, o) {
1257
1271
  t
1258
1272
  ]);
1259
1273
  }
1260
- function qe(e) {
1261
- e.dispatchEvent(new CustomEvent(ke, {
1274
+ function Ge(e) {
1275
+ e.dispatchEvent(new CustomEvent(Le, {
1262
1276
  bubbles: !0,
1263
1277
  cancelable: !0
1264
- })) && B(e);
1278
+ })) && W(e);
1265
1279
  }
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, {
1280
+ function K(e, t, o) {
1281
+ let n = t?.tabbable ? Fo : xo, r = e?.nodeType === Node.ELEMENT_NODE ? e : null, a = P(r), i = it(a, e || a, NodeFilter.SHOW_ELEMENT, {
1268
1282
  acceptNode(l) {
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;
1283
+ return B(t?.from, l) || t?.tabbable && l.tagName === "INPUT" && l.getAttribute("type") === "radio" && (!Uo(l) || i.currentNode.tagName === "INPUT" && i.currentNode.type === "radio" && i.currentNode.name === l.name) ? NodeFilter.FILTER_REJECT : n(l) && (!o || O(l, o)) && (!t?.accept || t.accept(l)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1270
1284
  }
1271
1285
  });
1272
1286
  return t?.from && (i.currentNode = t.from), i;
1273
1287
  }
1274
- class Fe {
1288
+ class De {
1275
1289
  get size() {
1276
1290
  return this.fastMap.size;
1277
1291
  }
@@ -1281,7 +1295,7 @@ class Fe {
1281
1295
  addTreeNode(t, o, n) {
1282
1296
  let r = this.fastMap.get(o ?? null);
1283
1297
  if (!r) return;
1284
- let a = new Ne({
1298
+ let a = new xe({
1285
1299
  scopeRef: t
1286
1300
  });
1287
1301
  r.addChild(a), a.parent = r, this.fastMap.set(t, a), n && (a.nodeToRestore = n);
@@ -1294,7 +1308,7 @@ class Fe {
1294
1308
  let o = this.fastMap.get(t);
1295
1309
  if (!o) return;
1296
1310
  let n = o.parent;
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);
1311
+ for (let a of this.traverse()) a !== o && o.nodeToRestore && a.nodeToRestore && o.scopeRef && o.scopeRef.current && O(a.nodeToRestore, o.scopeRef.current) && (a.nodeToRestore = o.nodeToRestore);
1298
1312
  let r = o.children;
1299
1313
  n && (n.removeChild(o), r.size > 0 && r.forEach((a) => n && n.addChild(a))), this.fastMap.delete(o.scopeRef);
1300
1314
  }
@@ -1304,18 +1318,18 @@ class Fe {
1304
1318
  }
1305
1319
  clone() {
1306
1320
  var t;
1307
- let o = new Fe();
1321
+ let o = new De();
1308
1322
  var n;
1309
1323
  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);
1310
1324
  return o;
1311
1325
  }
1312
1326
  constructor() {
1313
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ne({
1327
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new xe({
1314
1328
  scopeRef: null
1315
1329
  }), this.fastMap.set(null, this.root);
1316
1330
  }
1317
1331
  }
1318
- class Ne {
1332
+ class xe {
1319
1333
  addChild(t) {
1320
1334
  this.children.add(t), t.parent = this;
1321
1335
  }
@@ -1326,60 +1340,64 @@ class Ne {
1326
1340
  this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = t.scopeRef;
1327
1341
  }
1328
1342
  }
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);
1336
- }), [
1343
+ let T = new De();
1344
+ const Yo = /* @__PURE__ */ new WeakMap(), R = [];
1345
+ function en(e, t) {
1346
+ let { onClose: o, shouldCloseOnBlur: n, isOpen: r, isDismissable: a = !1, isKeyboardDismissDisabled: i = !1, shouldCloseOnInteractOutside: l } = e, s = y(void 0);
1347
+ D(() => {
1348
+ if (r && !R.includes(t))
1349
+ return R.push(t), () => {
1350
+ let g = R.indexOf(t);
1351
+ g >= 0 && R.splice(g, 1);
1352
+ };
1353
+ }, [
1337
1354
  r,
1338
1355
  t
1339
1356
  ]);
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());
1357
+ let u = () => {
1358
+ R[R.length - 1] === t && o && o();
1359
+ }, f = (g) => {
1360
+ const L = R[R.length - 1];
1361
+ s.current = L, (!l || l(k(g))) && L === t && (g.stopPropagation(), g.preventDefault());
1362
+ }, d = (g) => {
1363
+ (!l || l(k(g))) && (R[R.length - 1] === t && (g.stopPropagation(), g.preventDefault()), s.current === t && u()), s.current = void 0;
1364
+ }, m = (g) => {
1365
+ g.key === "Escape" && !i && !g.nativeEvent.isComposing && (g.stopPropagation(), g.preventDefault(), u());
1348
1366
  };
1349
- Vo({
1367
+ zo({
1350
1368
  ref: t,
1351
- onInteractOutside: a && r ? u : null,
1352
- onInteractOutsideStart: d
1369
+ onInteractOutside: a && r ? d : void 0,
1370
+ onInteractOutsideStart: f
1353
1371
  });
1354
- let { focusWithinProps: m } = Wo({
1372
+ let { focusWithinProps: p } = Ho({
1355
1373
  isDisabled: !n,
1356
- onBlurWithin: (p) => {
1357
- !p.relatedTarget || Uo(p.relatedTarget) || (!l || l(p.relatedTarget)) && o();
1374
+ onBlurWithin: (g) => {
1375
+ !g.relatedTarget || Jo(g.relatedTarget) || (!l || l(g.relatedTarget)) && o?.();
1358
1376
  }
1359
- }), b = (p) => {
1360
- p.target === p.currentTarget && p.preventDefault();
1377
+ }), v = (g) => {
1378
+ k(g) === g.currentTarget && g.preventDefault();
1361
1379
  };
1362
1380
  return {
1363
1381
  overlayProps: {
1364
- onKeyDown: c,
1365
- ...m
1382
+ onKeyDown: m,
1383
+ ...p
1366
1384
  },
1367
1385
  underlayProps: {
1368
- onPointerDown: b
1386
+ onPointerDown: v
1369
1387
  }
1370
1388
  };
1371
1389
  }
1372
- function Zo(e, t, o) {
1390
+ function tn(e, t, o) {
1373
1391
  let { isOpen: n } = t;
1374
- S(() => {
1392
+ D(() => {
1375
1393
  o && o.current && Yo.set(o.current, t.close);
1376
1394
  });
1377
- let r, a = tt();
1395
+ let r, a = at();
1378
1396
  return {
1379
1397
  triggerProps: {
1380
1398
  "aria-haspopup": r,
1381
1399
  "aria-expanded": n,
1382
- "aria-controls": n ? a : null,
1400
+ "aria-controls": n ? a : void 0,
1383
1401
  onPress: t.toggle
1384
1402
  },
1385
1403
  overlayProps: {
@@ -1387,168 +1405,225 @@ function Zo(e, t, o) {
1387
1405
  }
1388
1406
  };
1389
1407
  }
1390
- const he = typeof document < "u" && window.visualViewport, en = /* @__PURE__ */ new Set([
1391
- "checkbox",
1392
- "radio",
1393
- "range",
1394
- "color",
1395
- "file",
1396
- "image",
1397
- "button",
1398
- "submit",
1399
- "reset"
1400
- ]);
1401
- let ie = 0, $e;
1402
- function tn(e = {}) {
1408
+ const te = typeof document < "u" && window.visualViewport;
1409
+ let se = 0, Ee;
1410
+ function on(e = {}) {
1403
1411
  let { isDisabled: t } = e;
1404
- _(() => {
1412
+ N(() => {
1405
1413
  if (!t)
1406
- return ie++, ie === 1 && (rt() ? $e = nn() : $e = on()), () => {
1407
- ie--, ie === 0 && $e();
1414
+ return se++, se === 1 && (dt() ? Ee = rn() : Ee = nn()), () => {
1415
+ se--, se === 0 && Ee();
1408
1416
  };
1409
1417
  }, [
1410
1418
  t
1411
1419
  ]);
1412
1420
  }
1413
- function on() {
1414
- return se(z(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), z(document.documentElement, "overflow", "hidden"));
1415
- }
1416
1421
  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) => {
1420
- if (!e || e === document.documentElement || e === document.body) {
1421
- d.preventDefault();
1422
- return;
1422
+ let e = window.innerWidth - document.documentElement.clientWidth;
1423
+ return Fe(e > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
1424
+ ("scrollbarGutter" in document.documentElement.style ? de(document.documentElement, "scrollbarGutter", "stable") : de(document.documentElement, "paddingRight", `${e}px`)), de(document.documentElement, "overflow", "hidden"));
1425
+ }
1426
+ function rn() {
1427
+ let e = de(document.documentElement, "overflow", "hidden"), t, o = !1, n = (u) => {
1428
+ let f = k(u);
1429
+ t = Te(f) ? f : ft(f, !0), o = !1;
1430
+ let d = f.ownerDocument.defaultView.getSelection();
1431
+ d && !d.isCollapsed && d.containsNode(f, !0) && (o = !0), u.composedPath().some((m) => m instanceof HTMLInputElement && m.type === "range") && (o = !0), "selectionStart" in f && "selectionEnd" in f && f.selectionStart < f.selectionEnd && f.ownerDocument.activeElement === f && (o = !0);
1432
+ }, r = document.createElement("style");
1433
+ r.textContent = `
1434
+ @layer {
1435
+ * {
1436
+ overscroll-behavior: contain;
1437
+ }
1438
+ }`.trim(), document.head.prepend(r);
1439
+ let a = (u) => {
1440
+ if (!(u.touches.length === 2 || o)) {
1441
+ if (!t || t === document.documentElement || t === document.body) {
1442
+ u.preventDefault();
1443
+ return;
1444
+ }
1445
+ t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && u.preventDefault();
1423
1446
  }
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 = "";
1429
- })), t && t();
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), {
1436
- once: !0
1437
- }));
1438
- }));
1439
- }, i = null, l = () => {
1440
- if (i) return;
1441
- let d = () => {
1442
- window.scrollTo(0, 0);
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);
1446
- }), window.scrollTo(0, 0);
1447
- }, s = se(j(document, "touchstart", o, {
1448
- passive: !1,
1449
- capture: !0
1450
- }), j(document, "touchmove", n, {
1447
+ }, i = (u) => {
1448
+ let f = k(u), d = u.relatedTarget;
1449
+ if (d && $e(d))
1450
+ d.focus({
1451
+ preventScroll: !0
1452
+ }), Je(d, $e(f));
1453
+ else if (!d) {
1454
+ var m;
1455
+ let p = (m = f.parentElement) === null || m === void 0 ? void 0 : m.closest("[tabindex]");
1456
+ p?.focus({
1457
+ preventScroll: !0
1458
+ });
1459
+ }
1460
+ }, l = HTMLElement.prototype.focus;
1461
+ HTMLElement.prototype.focus = function(u) {
1462
+ let f = S(), d = f != null && $e(f);
1463
+ l.call(this, {
1464
+ ...u,
1465
+ preventScroll: !0
1466
+ }), (!u || !u.preventScroll) && Je(this, d);
1467
+ };
1468
+ let s = Fe(_e(document, "touchstart", n, {
1451
1469
  passive: !1,
1452
1470
  capture: !0
1453
- }), j(document, "touchend", r, {
1471
+ }), _e(document, "touchmove", a, {
1454
1472
  passive: !1,
1455
1473
  capture: !0
1456
- }), j(document, "focus", a, !0));
1474
+ }), _e(document, "blur", i, !0));
1457
1475
  return () => {
1458
- t?.(), i?.(), s();
1476
+ e(), s(), r.remove(), HTMLElement.prototype.focus = l;
1459
1477
  };
1460
1478
  }
1461
- function z(e, t, o) {
1479
+ function de(e, t, o) {
1462
1480
  let n = e.style[t];
1463
1481
  return e.style[t] = o, () => {
1464
1482
  e.style[t] = n;
1465
1483
  };
1466
1484
  }
1467
- function j(e, t, o, n) {
1485
+ function _e(e, t, o, n) {
1468
1486
  return e.addEventListener(t, o, n), () => {
1469
1487
  e.removeEventListener(t, o, n);
1470
1488
  };
1471
1489
  }
1472
- function He(e) {
1473
- let t = document.scrollingElement || document.documentElement;
1474
- for (; e && e !== t; ) {
1475
- let o = lt(e);
1476
- if (o !== document.documentElement && o !== document.body && o !== e) {
1477
- let n = o.getBoundingClientRect().top, r = e.getBoundingClientRect().top;
1478
- r > n + e.clientHeight && (o.scrollTop += r - n);
1490
+ function Je(e, t) {
1491
+ t || !te ? Xe(e) : te.addEventListener("resize", () => Xe(e), {
1492
+ once: !0
1493
+ });
1494
+ }
1495
+ function Xe(e) {
1496
+ let t = document.scrollingElement || document.documentElement, o = e;
1497
+ for (; o && o !== t; ) {
1498
+ let n = ft(o);
1499
+ if (n !== document.documentElement && n !== document.body && n !== o) {
1500
+ let r = n.getBoundingClientRect(), a = o.getBoundingClientRect();
1501
+ if (a.top < r.top || a.bottom > r.top + o.clientHeight) {
1502
+ let i = r.bottom;
1503
+ te && (i = Math.min(i, te.offsetTop + te.height));
1504
+ let l = a.top - r.top - ((i - r.top) / 2 - a.height / 2);
1505
+ n.scrollTo({
1506
+ // Clamp to the valid range to prevent over-scrolling.
1507
+ top: Math.max(0, Math.min(n.scrollHeight - n.clientHeight, n.scrollTop + l)),
1508
+ behavior: "smooth"
1509
+ });
1510
+ }
1479
1511
  }
1480
- e = o.parentElement;
1512
+ o = n.parentElement;
1481
1513
  }
1482
1514
  }
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;
1515
+ const an = /* @__PURE__ */ It({});
1516
+ function ln() {
1517
+ var e;
1518
+ return (e = J(an)) !== null && e !== void 0 ? e : {};
1519
+ }
1520
+ const sn = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
1521
+ let X = /* @__PURE__ */ new WeakMap(), F = [];
1522
+ function dn(e, t) {
1523
+ let o = G(e?.[0]), n = t instanceof o.Element ? {
1524
+ root: t
1525
+ } : t;
1526
+ var r;
1527
+ let a = (r = n?.root) !== null && r !== void 0 ? r : document.body, i = n?.shouldUseInert && sn, l = new Set(e), s = /* @__PURE__ */ new Set(), u = (b) => i && b instanceof o.HTMLElement ? b.inert : b.getAttribute("aria-hidden") === "true", f = (b, h) => {
1528
+ i && b instanceof o.HTMLElement ? b.inert = h : h ? b.setAttribute("aria-hidden", "true") : (b.removeAttribute("aria-hidden"), b instanceof o.HTMLElement && (b.inert = !1));
1529
+ }, d = /* @__PURE__ */ new Set();
1530
+ if (A())
1531
+ for (let b of e) {
1532
+ let h = b;
1533
+ for (; h && h !== a; ) {
1534
+ let $ = h.getRootNode();
1535
+ "shadowRoot" in $ && d.add($.shadowRoot), h = $.parentNode;
1536
+ }
1537
+ }
1538
+ let m = (b) => {
1539
+ for (let E of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) l.add(E);
1540
+ let h = (E) => {
1541
+ if (s.has(E) || l.has(E) || E.parentElement && s.has(E.parentElement) && E.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
1542
+ for (let pe of l)
1543
+ if (B(E, pe)) return NodeFilter.FILTER_SKIP;
1494
1544
  return NodeFilter.FILTER_ACCEPT;
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();
1545
+ }, $ = it(P(b), b, NodeFilter.SHOW_ELEMENT, {
1546
+ acceptNode: h
1547
+ }), I = h(b);
1548
+ if (I === NodeFilter.FILTER_ACCEPT && p(b), I !== NodeFilter.FILTER_REJECT) {
1549
+ let E = $.nextNode();
1550
+ for (; E != null; )
1551
+ p(E), E = $.nextNode();
1502
1552
  }
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));
1553
+ }, p = (b) => {
1554
+ var h;
1555
+ let $ = (h = X.get(b)) !== null && h !== void 0 ? h : 0;
1556
+ u(b) && $ === 0 || ($ === 0 && f(b, !0), s.add(b), X.set(b, $ + 1));
1507
1557
  };
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) && ![
1512
- ...o,
1513
- ...n
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);
1558
+ F.length && F[F.length - 1].disconnect(), m(a);
1559
+ let v = new MutationObserver((b) => {
1560
+ for (let h of b)
1561
+ if (h.type === "childList") {
1562
+ if (h.target.isConnected && ![
1563
+ ...l,
1564
+ ...s
1565
+ ].some(($) => B($, h.target))) for (let $ of h.addedNodes)
1566
+ ($ instanceof HTMLElement || $ instanceof SVGElement) && ($.dataset.liveAnnouncer === "true" || $.dataset.reactAriaTopLayer === "true") ? l.add($) : $ instanceof Element && m($);
1567
+ if (A()) {
1568
+ for (let $ of d) if (!$.isConnected) {
1569
+ v.disconnect();
1570
+ break;
1571
+ }
1572
+ }
1518
1573
  }
1519
1574
  });
1520
- i.observe(t, {
1575
+ v.observe(a, {
1521
1576
  childList: !0,
1522
1577
  subtree: !0
1523
1578
  });
1524
- let l = {
1579
+ let g = /* @__PURE__ */ new Set();
1580
+ if (A()) for (let b of d) {
1581
+ let h = new MutationObserver(($) => {
1582
+ for (let I of $)
1583
+ if (I.type === "childList") {
1584
+ if (I.target.isConnected && ![
1585
+ ...l,
1586
+ ...s
1587
+ ].some((E) => B(E, I.target))) for (let E of I.addedNodes)
1588
+ (E instanceof HTMLElement || E instanceof SVGElement) && (E.dataset.liveAnnouncer === "true" || E.dataset.reactAriaTopLayer === "true") ? l.add(E) : E instanceof Element && m(E);
1589
+ if (A()) {
1590
+ for (let E of d) if (!E.isConnected) {
1591
+ v.disconnect();
1592
+ break;
1593
+ }
1594
+ }
1595
+ }
1596
+ });
1597
+ h.observe(b, {
1598
+ childList: !0,
1599
+ subtree: !0
1600
+ }), g.add(h);
1601
+ }
1602
+ let L = {
1603
+ visibleNodes: l,
1604
+ hiddenNodes: s,
1525
1605
  observe() {
1526
- i.observe(t, {
1606
+ v.observe(a, {
1527
1607
  childList: !0,
1528
1608
  subtree: !0
1529
1609
  });
1530
1610
  },
1531
1611
  disconnect() {
1532
- i.disconnect();
1612
+ v.disconnect();
1533
1613
  }
1534
1614
  };
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);
1615
+ return F.push(L), () => {
1616
+ if (v.disconnect(), A()) for (let b of g) b.disconnect();
1617
+ for (let b of s) {
1618
+ let h = X.get(b);
1619
+ h != null && (h === 1 ? (f(b, !1), X.delete(b)) : X.set(b, h - 1));
1540
1620
  }
1541
- l === N[N.length - 1] ? (N.pop(), N.length && N[N.length - 1].observe()) : N.splice(N.indexOf(l), 1);
1621
+ L === F[F.length - 1] ? (F.pop(), F.length && F[F.length - 1].observe()) : F.splice(F.indexOf(L), 1);
1542
1622
  };
1543
1623
  }
1544
- const an = /* @__PURE__ */ Dt({});
1545
- function ln() {
1546
- var e;
1547
- return (e = q(an)) !== null && e !== void 0 ? e : {};
1548
- }
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(() => ({
1624
+ const Mt = /* @__PURE__ */ M.createContext(null);
1625
+ function un(e) {
1626
+ let t = rt(), { portalContainer: o = t ? null : document.body, isExiting: n } = e, [r, a] = re(!1), i = Y(() => ({
1552
1627
  contain: r,
1553
1628
  setContain: a
1554
1629
  }), [
@@ -1557,50 +1632,52 @@ function sn(e) {
1557
1632
  ]), { getContainer: l } = ln();
1558
1633
  if (!e.portalContainer && l && (o = l()), !o) return null;
1559
1634
  let s = e.children;
1560
- return e.disableFocusManagement || (s = /* @__PURE__ */ h.createElement(zo, {
1635
+ return e.disableFocusManagement || (s = /* @__PURE__ */ M.createElement(Ko, {
1561
1636
  restoreFocus: !0,
1562
- contain: r && !n
1563
- }, s)), s = /* @__PURE__ */ h.createElement(ht.Provider, {
1637
+ contain: (e.shouldContainFocus || r) && !n
1638
+ }, s)), s = /* @__PURE__ */ M.createElement(Mt.Provider, {
1564
1639
  value: i
1565
- }, /* @__PURE__ */ h.createElement(Io, null, s)), /* @__PURE__ */ At.createPortal(s, o);
1640
+ }, /* @__PURE__ */ M.createElement(Vo, null, s)), /* @__PURE__ */ Wt.createPortal(s, o);
1566
1641
  }
1567
- function $t() {
1568
- let e = q(ht), t = e?.setContain;
1569
- _(() => {
1642
+ function yt() {
1643
+ let e = J(Mt), t = e?.setContain;
1644
+ N(() => {
1570
1645
  t?.(!0);
1571
1646
  }, [
1572
1647
  t
1573
1648
  ]);
1574
1649
  }
1575
- function dn(e, t, o) {
1576
- let { overlayProps: n, underlayProps: r } = Qo({
1650
+ function cn(e, t, o) {
1651
+ let { overlayProps: n, underlayProps: r } = en({
1577
1652
  ...e,
1578
1653
  isOpen: t.isOpen,
1579
1654
  onClose: t.close
1580
1655
  }, o);
1581
- return tn({
1656
+ return on({
1582
1657
  isDisabled: !t.isOpen
1583
- }), $t(), S(() => {
1584
- if (t.isOpen) return rn([
1658
+ }), yt(), D(() => {
1659
+ if (t.isOpen && o.current) return dn([
1585
1660
  o.current
1586
- ]);
1661
+ ], {
1662
+ shouldUseInert: !0
1663
+ });
1587
1664
  }, [
1588
1665
  t.isOpen,
1589
1666
  o
1590
1667
  ]), {
1591
- modalProps: ao(n),
1668
+ modalProps: io(n),
1592
1669
  underlayProps: r
1593
1670
  };
1594
1671
  }
1595
- function un(e, t) {
1672
+ function fn(e, t) {
1596
1673
  let { role: o = "dialog" } = e, n = Yt();
1597
1674
  n = e["aria-label"] ? void 0 : n;
1598
- let r = $(!1);
1599
- return S(() => {
1675
+ let r = y(!1);
1676
+ return D(() => {
1600
1677
  if (t.current && !t.current.contains(document.activeElement)) {
1601
- ye(t.current);
1678
+ Ne(t.current);
1602
1679
  let a = setTimeout(() => {
1603
- document.activeElement === t.current && (r.current = !0, t.current && (t.current.blur(), ye(t.current)), r.current = !1);
1680
+ document.activeElement === t.current && (r.current = !0, t.current && (t.current.blur(), Ne(t.current)), r.current = !1);
1604
1681
  }, 500);
1605
1682
  return () => {
1606
1683
  clearTimeout(a);
@@ -1608,9 +1685,9 @@ function un(e, t) {
1608
1685
  }
1609
1686
  }, [
1610
1687
  t
1611
- ]), $t(), {
1688
+ ]), yt(), {
1612
1689
  dialogProps: {
1613
- ...fo(e, {
1690
+ ...mo(e, {
1614
1691
  labelable: !0
1615
1692
  }),
1616
1693
  role: o,
@@ -1628,7 +1705,7 @@ function un(e, t) {
1628
1705
  }
1629
1706
  };
1630
1707
  }
1631
- function cn(e, t, o) {
1708
+ function mn(e, t, o) {
1632
1709
  return t in e ? Object.defineProperty(e, t, {
1633
1710
  value: o,
1634
1711
  enumerable: !0,
@@ -1636,7 +1713,7 @@ function cn(e, t, o) {
1636
1713
  writable: !0
1637
1714
  }) : e[t] = o, e;
1638
1715
  }
1639
- function Ue(e, t) {
1716
+ function Qe(e, t) {
1640
1717
  var o = Object.keys(e);
1641
1718
  if (Object.getOwnPropertySymbols) {
1642
1719
  var n = Object.getOwnPropertySymbols(e);
@@ -1646,26 +1723,26 @@ function Ue(e, t) {
1646
1723
  }
1647
1724
  return o;
1648
1725
  }
1649
- function Ge(e) {
1726
+ function Ze(e) {
1650
1727
  for (var t = 1; t < arguments.length; t++) {
1651
1728
  var o = arguments[t] != null ? arguments[t] : {};
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) {
1729
+ t % 2 ? Qe(Object(o), !0).forEach(function(n) {
1730
+ mn(e, n, o[n]);
1731
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Qe(Object(o)).forEach(function(n) {
1655
1732
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
1656
1733
  });
1657
1734
  }
1658
1735
  return e;
1659
1736
  }
1660
- var fn = (e, t, o) => {
1737
+ var pn = (e, t, o) => {
1661
1738
  for (var n of Object.keys(e)) {
1662
1739
  var r;
1663
1740
  if (e[n] !== ((r = t[n]) !== null && r !== void 0 ? r : o[n]))
1664
1741
  return !1;
1665
1742
  }
1666
1743
  return !0;
1667
- }, wt = (e) => (t) => {
1668
- var o = e.defaultClassName, n = Ge(Ge({}, e.defaultVariants), t);
1744
+ }, kt = (e) => (t) => {
1745
+ var o = e.defaultClassName, n = Ze(Ze({}, e.defaultVariants), t);
1669
1746
  for (var r in n) {
1670
1747
  var a, i = (a = n[r]) !== null && a !== void 0 ? a : e.defaultVariants[r];
1671
1748
  if (i != null) {
@@ -1678,34 +1755,34 @@ var fn = (e, t, o) => {
1678
1755
  s && (o += " " + s);
1679
1756
  }
1680
1757
  }
1681
- for (var [d, u] of e.compoundVariants)
1682
- fn(d, n, e.defaultVariants) && (o += " " + u);
1758
+ for (var [u, f] of e.compoundVariants)
1759
+ pn(u, n, e.defaultVariants) && (o += " " + f);
1683
1760
  return o;
1684
- }, mn = wt({ defaultClassName: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto20", variantClassNames: { kind: { informational: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto21", delete: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto22", failure: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto23", success: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto24", warning: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto25", successWithFailures: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto26", form: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto27" }, size: { sm: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto28", md: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto29", lg: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2a", xl: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2b" }, fullHeight: { true: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2c", false: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2d" } }, defaultVariants: {}, compoundVariants: [] }), pn = wt({ defaultClassName: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2e", variantClassNames: { kind: { form: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2f", delete: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2g", failure: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2h", informational: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2i", success: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2j", warning: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2k", successWithFailures: "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2l" } }, defaultVariants: {}, compoundVariants: [] }), bn = "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2m", gn = "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2n", vn = "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2o", Et = "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2p", hn = "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2q", $n = "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2r", wn = "pkg_sps-woodland_modal__version_8_45_4__hash_3moto2s";
1685
- function _t({
1761
+ }, bn = kt({ defaultClassName: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto20", variantClassNames: { kind: { informational: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto21", delete: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto22", failure: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto23", success: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto24", warning: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto25", successWithFailures: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto26", form: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto27" }, size: { sm: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto28", md: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto29", lg: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2a", xl: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2b" }, fullHeight: { true: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2c", false: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2d" } }, defaultVariants: {}, compoundVariants: [] }), gn = kt({ defaultClassName: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2e", variantClassNames: { kind: { form: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2f", delete: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2g", failure: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2h", informational: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2i", success: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2j", warning: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2k", successWithFailures: "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2l" } }, defaultVariants: {}, compoundVariants: [] }), vn = "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2m", hn = "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2n", $n = "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2o", Tt = "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2p", wn = "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2q", En = "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2r", _n = "pkg_sps-woodland_modal__version_8_45_5__hash_3moto2s";
1762
+ function Pt({
1686
1763
  children: e,
1687
1764
  className: t = "",
1688
1765
  ...o
1689
1766
  }) {
1690
- return /* @__PURE__ */ f.createElement("div", { className: we(Et, t), ...o }, e);
1767
+ return /* @__PURE__ */ c.createElement("div", { className: Me(Tt, t), ...o }, e);
1691
1768
  }
1692
- Ye.set(_t, { name: "ModalFooter" });
1693
- function Je({
1769
+ tt.set(Pt, { name: "ModalFooter" });
1770
+ function Ye({
1694
1771
  dismissableValue: e,
1695
1772
  handleClose: t
1696
1773
  }) {
1697
- return e ? /* @__PURE__ */ f.createElement(
1698
- Qe,
1774
+ return e ? /* @__PURE__ */ c.createElement(
1775
+ ot,
1699
1776
  {
1700
1777
  "aria-label": "Close",
1701
1778
  onClick: t,
1702
1779
  kind: "icon",
1703
1780
  icon: "x",
1704
- className: hn
1781
+ className: wn
1705
1782
  }
1706
1783
  ) : null;
1707
1784
  }
1708
- const Xe = Object.freeze({
1785
+ const et = Object.freeze({
1709
1786
  form: "pencil",
1710
1787
  delete: "trash",
1711
1788
  failure: "status-error",
@@ -1714,7 +1791,7 @@ const Xe = Object.freeze({
1714
1791
  successWithFailures: "status-warning",
1715
1792
  warning: "status-warning"
1716
1793
  });
1717
- function En({
1794
+ function Mn({
1718
1795
  children: e,
1719
1796
  className: t,
1720
1797
  "data-testid": o,
@@ -1724,53 +1801,53 @@ function En({
1724
1801
  overlayProps: i,
1725
1802
  size: l = "sm",
1726
1803
  state: s,
1727
- title: d,
1728
- dismissible: u,
1729
- dismissable: c = !0,
1804
+ title: u,
1805
+ dismissible: f,
1806
+ dismissable: d = !0,
1730
1807
  onClose: m,
1731
- fullHeight: b = !1,
1732
- ...p
1808
+ fullHeight: p = !1,
1809
+ ...v
1733
1810
  }) {
1734
- const P = u ?? c, L = f.useRef(null), { modalProps: V, underlayProps: ne } = dn(
1811
+ const g = f ?? d, L = c.useRef(null), { modalProps: b, underlayProps: h } = cn(
1735
1812
  {
1736
- isKeyboardDismissDisabled: !P,
1737
- ...p
1813
+ isKeyboardDismissDisabled: !g,
1814
+ ...v
1738
1815
  },
1739
1816
  s,
1740
1817
  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(
1818
+ ), { dialogProps: $, titleProps: I } = fn(v, L), E = We(b.onFocus, $.onFocus, a), pe = We(b.onBlur, $.onBlur, r), { t: Lt } = At(), St = Ct({ "data-testid": o }), [be, xt] = Bt(
1742
1819
  e,
1743
- [{ type: _t }]
1744
- ), Ce = f.useCallback(() => {
1820
+ [{ type: Pt }]
1821
+ ), Ie = c.useCallback(() => {
1745
1822
  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(
1823
+ }, [m, s.close]), Ft = Ot(xt, (Ae) => Ae.type === Ye ? [{ className: Me(Ae.props.classname, En) }] : []);
1824
+ return /* @__PURE__ */ c.createElement(un, null, /* @__PURE__ */ c.createElement("div", { className: _n, ...h, ...v }, /* @__PURE__ */ c.createElement(
1748
1825
  "div",
1749
1826
  {
1750
- ...V,
1751
- ...H,
1827
+ ...b,
1828
+ ...$,
1752
1829
  ...i,
1753
- onFocus: kt,
1754
- onBlur: Pt,
1755
- ...Tt("dialog"),
1830
+ onFocus: E,
1831
+ onBlur: pe,
1832
+ ...St("dialog"),
1756
1833
  ref: L,
1757
- className: we(mn({ kind: n, size: l, fullHeight: b }), t)
1834
+ className: Me(bn({ kind: n, size: l, fullHeight: p }), t)
1758
1835
  },
1759
- /* @__PURE__ */ f.createElement("div", { ...yt, className: pn({ kind: n }) }, n && /* @__PURE__ */ f.createElement(
1760
- Bt,
1836
+ /* @__PURE__ */ c.createElement("div", { ...I, className: gn({ kind: n }) }, n && /* @__PURE__ */ c.createElement(
1837
+ Rt,
1761
1838
  {
1762
- icon: Xe[n] || Xe.informational,
1763
- className: gn
1839
+ icon: et[n] || et.informational,
1840
+ className: hn
1764
1841
  }
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" })))
1842
+ ), /* @__PURE__ */ c.createElement("div", { className: vn }, ge(u, s.close)), /* @__PURE__ */ c.createElement(Ye, { dismissableValue: g, handleClose: Ie })),
1843
+ /* @__PURE__ */ c.createElement("div", { className: $n }, ge(Ft, s.close)),
1844
+ be && be.length > 0 ? /* @__PURE__ */ c.createElement(c.Fragment, null, ge(be, s.close)) : /* @__PURE__ */ c.createElement("div", { className: Tt }, /* @__PURE__ */ c.createElement(ot, { kind: "key", onClick: Ie }, Lt("modal.defaultButtonLabel", { defaultValue: "Okay" })))
1768
1845
  )));
1769
1846
  }
1770
- function Mt(e) {
1771
- return e.state.isOpen ? /* @__PURE__ */ f.createElement(En, { ...e }, e.children) : /* @__PURE__ */ f.createElement(f.Fragment, null);
1847
+ function Nt(e) {
1848
+ return e.state.isOpen ? /* @__PURE__ */ c.createElement(Mn, { ...e }, e.children) : /* @__PURE__ */ c.createElement(c.Fragment, null);
1772
1849
  }
1773
- Ye.set(Mt, {
1850
+ tt.set(Nt, {
1774
1851
  name: "Modal",
1775
1852
  props: {
1776
1853
  dismissable: { type: "boolean", default: "true" },
@@ -1783,17 +1860,17 @@ Ye.set(Mt, {
1783
1860
  title: { type: "string" }
1784
1861
  }
1785
1862
  });
1786
- function _n(e) {
1787
- let [t, o] = Fo(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
1788
- const n = k(() => {
1863
+ function yn(e) {
1864
+ let [t, o] = Bo(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
1865
+ const n = x(() => {
1789
1866
  o(!0);
1790
1867
  }, [
1791
1868
  o
1792
- ]), r = k(() => {
1869
+ ]), r = x(() => {
1793
1870
  o(!1);
1794
1871
  }, [
1795
1872
  o
1796
- ]), a = k(() => {
1873
+ ]), a = x(() => {
1797
1874
  o(!t);
1798
1875
  }, [
1799
1876
  o,
@@ -1807,8 +1884,8 @@ function _n(e) {
1807
1884
  toggle: a
1808
1885
  };
1809
1886
  }
1810
- function Sn(e = {}) {
1811
- const t = _n(e), o = $(null), { triggerProps: n, overlayProps: r } = Zo(
1887
+ function Fn(e = {}) {
1888
+ const t = yn(e), o = y(null), { triggerProps: n, overlayProps: r } = tn(
1812
1889
  {},
1813
1890
  t,
1814
1891
  o
@@ -1827,20 +1904,20 @@ function Sn(e = {}) {
1827
1904
  modalProps: { overlayProps: r, state: t }
1828
1905
  };
1829
1906
  }
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],
1907
+ const kn = {
1908
+ description: () => /* @__PURE__ */ c.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."),
1909
+ components: [Nt],
1833
1910
  examples: {
1834
1911
  general: {
1835
1912
  label: "Usage",
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.")))
1913
+ description: ({ NavigateTo: e }) => /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("h5", null, "Use a Modal:"), /* @__PURE__ */ c.createElement("ul", null, /* @__PURE__ */ c.createElement("li", null, "When the user needs to confirm a basic decision, such as deleting a record."), /* @__PURE__ */ c.createElement("li", null, "When important information needs to be displayed to the user before continuing."), /* @__PURE__ */ c.createElement("li", null, "When a simple selection, such as a single form input, is required before proceeding.")), /* @__PURE__ */ c.createElement("h5", null, "Avoid a Modal:"), /* @__PURE__ */ c.createElement("ul", null, /* @__PURE__ */ c.createElement("li", null, "When a complex form is required. Use a ", /* @__PURE__ */ c.createElement(e, { to: "focused-task" }, "Focused Task View"), " instead."), /* @__PURE__ */ c.createElement("li", null, "When sharing non-critical or tertiary information. Use a ", /* @__PURE__ */ c.createElement(e, { to: "growlers" }, "Growler"), " instead.")))
1837
1914
  },
1838
1915
  implementation: {
1839
1916
  label: "Close Button",
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.")),
1917
+ description: () => /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("h5", null, "Close Button and Modal dismissiability"), /* @__PURE__ */ c.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__ */ c.createElement("p", null, "The close button is included by default and omitted when the prop ", /* @__PURE__ */ c.createElement("code", null, "dismissable"), " is set to ", /* @__PURE__ */ c.createElement("strong", null, "false"), "."), /* @__PURE__ */ c.createElement("p", null, "Setting the ", /* @__PURE__ */ c.createElement("code", null, "dismissable"), " prop to false also prevents dismissing the modal by clicking outside of the modal or by using the", " ", /* @__PURE__ */ c.createElement("strong", null, "escape"), " key.")),
1841
1918
  examples: {
1842
1919
  basic: {
1843
- react: g`
1920
+ react: w`
1844
1921
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
1845
1922
  import { sprinkles } from "@sps-woodland/tokens";
1846
1923
  import { Button } from "@sps-woodland/buttons";
@@ -1889,7 +1966,7 @@ const Mn = {
1889
1966
  },
1890
1967
  hooks: {
1891
1968
  label: "Using Hooks",
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"))
1969
+ description: () => /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("h5", null, "Using the hook"), /* @__PURE__ */ c.createElement("p", null, "To use any modals, you must call the ", /* @__PURE__ */ c.createElement("code", null, "useModal"), " hook. Optional arguments for this hook include:"), /* @__PURE__ */ c.createElement("dl", null, /* @__PURE__ */ c.createElement("dt", null, /* @__PURE__ */ c.createElement("code", null, "isOpen"), ": boolean"), /* @__PURE__ */ c.createElement("dd", null, "Whether the overlay is open by default (controlled)"), /* @__PURE__ */ c.createElement("dt", null, /* @__PURE__ */ c.createElement("code", null, "defaultOpen"), ": boolean"), /* @__PURE__ */ c.createElement("dd", null, "Whether the overlay is open by default (uncontrolled)."), /* @__PURE__ */ c.createElement("dt", null, /* @__PURE__ */ c.createElement("code", null, "onOpenChange"), ": function"), /* @__PURE__ */ c.createElement("dd", null, "Handler that is called when the overlay's open state changes.", /* @__PURE__ */ c.createElement("code", null, "(isOpen: boolean) => void"))), /* @__PURE__ */ c.createElement("h5", null, "Modal Props, Modal State, and Trigger Props"), /* @__PURE__ */ c.createElement("p", null, "The ", /* @__PURE__ */ c.createElement("code", null, "useModal"), " returns an object with ", /* @__PURE__ */ c.createElement("code", null, "modalProps"), ", ", /* @__PURE__ */ c.createElement("code", null, "modalState"), " and ", /* @__PURE__ */ c.createElement("code", null, "triggerProps")), /* @__PURE__ */ c.createElement("p", null, "The ", /* @__PURE__ */ c.createElement("code", null, "triggerProps"), " need to be spread on the element that triggers the modal."), /* @__PURE__ */ c.createElement("p", null, "The ", /* @__PURE__ */ c.createElement("code", null, "modalState"), " object (which is also included in ", /* @__PURE__ */ c.createElement("code", null, "modalProps"), ") allows programmatic access to the state of the modal. This includes a read only ", /* @__PURE__ */ c.createElement("code", null, "isOpen"), " property, a ", /* @__PURE__ */ c.createElement("code", null, "setOpen(isOpen: boolean)"), " method which can be use to set whether the overlay is open, an ", /* @__PURE__ */ c.createElement("code", null, "open()"), " method which opens the overlay, a ", /* @__PURE__ */ c.createElement("code", null, "close()"), " method which closes the overlay and a ", /* @__PURE__ */ c.createElement("code", null, "toggle()"), " method that toggles the overlay's visiblity."), /* @__PURE__ */ c.createElement("p", null, "The ", /* @__PURE__ */ c.createElement("code", null, "modalProps"), " should be spread on the actual ", /* @__PURE__ */ c.createElement("code", null, "Modal"), " component."), /* @__PURE__ */ c.createElement("p", null, "Please refer to the examples to see its implementation"))
1893
1970
  },
1894
1971
  informational: {
1895
1972
  label: "Informational",
@@ -1898,7 +1975,7 @@ const Mn = {
1898
1975
  examples: {
1899
1976
  small: {
1900
1977
  description: "Small",
1901
- react: g`
1978
+ react: w`
1902
1979
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
1903
1980
  import { sprinkles } from "@sps-woodland/tokens";
1904
1981
  import { Button } from "@sps-woodland/buttons";
@@ -1927,7 +2004,7 @@ const Mn = {
1927
2004
  },
1928
2005
  medium: {
1929
2006
  description: "Medium",
1930
- react: g`
2007
+ react: w`
1931
2008
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
1932
2009
  import { sprinkles } from "@sps-woodland/tokens";
1933
2010
  import { Button } from "@sps-woodland/buttons";
@@ -1953,7 +2030,7 @@ const Mn = {
1953
2030
  },
1954
2031
  large: {
1955
2032
  description: "Large",
1956
- react: g`
2033
+ react: w`
1957
2034
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
1958
2035
  import { sprinkles } from "@sps-woodland/tokens";
1959
2036
  import { Button } from "@sps-woodland/buttons";
@@ -1979,7 +2056,7 @@ const Mn = {
1979
2056
  },
1980
2057
  xlarge: {
1981
2058
  description: "Extra Large",
1982
- react: g`
2059
+ react: w`
1983
2060
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
1984
2061
  import { sprinkles } from "@sps-woodland/tokens";
1985
2062
  import { Button } from "@sps-woodland/buttons";
@@ -2012,7 +2089,7 @@ const Mn = {
2012
2089
  examples: {
2013
2090
  small: {
2014
2091
  description: "Small",
2015
- react: g`
2092
+ react: w`
2016
2093
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2017
2094
  import { sprinkles } from "@sps-woodland/tokens";
2018
2095
  import { Button } from "@sps-woodland/buttons";
@@ -2034,7 +2111,7 @@ const Mn = {
2034
2111
  },
2035
2112
  medium: {
2036
2113
  description: "Medium",
2037
- react: g`
2114
+ react: w`
2038
2115
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2039
2116
  import { sprinkles } from "@sps-woodland/tokens";
2040
2117
  import { Button } from "@sps-woodland/buttons";
@@ -2055,7 +2132,7 @@ const Mn = {
2055
2132
  },
2056
2133
  large: {
2057
2134
  description: "Large",
2058
- react: g`
2135
+ react: w`
2059
2136
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2060
2137
  import { sprinkles } from "@sps-woodland/tokens";
2061
2138
  import { Button } from "@sps-woodland/buttons";
@@ -2077,7 +2154,7 @@ const Mn = {
2077
2154
  },
2078
2155
  xlarge: {
2079
2156
  description: "Extra Large",
2080
- react: g`
2157
+ react: w`
2081
2158
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2082
2159
  import { sprinkles } from "@sps-woodland/tokens";
2083
2160
  import { Button } from "@sps-woodland/buttons";
@@ -2104,7 +2181,7 @@ const Mn = {
2104
2181
  examples: {
2105
2182
  small: {
2106
2183
  description: "Small",
2107
- react: g`
2184
+ react: w`
2108
2185
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2109
2186
  import { sprinkles } from "@sps-woodland/tokens";
2110
2187
  import { Button } from "@sps-woodland/buttons";
@@ -2126,7 +2203,7 @@ const Mn = {
2126
2203
  },
2127
2204
  medium: {
2128
2205
  description: "Medium",
2129
- react: g`
2206
+ react: w`
2130
2207
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2131
2208
  import { sprinkles } from "@sps-woodland/tokens";
2132
2209
  import { Button } from "@sps-woodland/buttons";
@@ -2147,7 +2224,7 @@ const Mn = {
2147
2224
  },
2148
2225
  large: {
2149
2226
  description: "Large",
2150
- react: g`
2227
+ react: w`
2151
2228
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2152
2229
  import { sprinkles } from "@sps-woodland/tokens";
2153
2230
  import { Button } from "@sps-woodland/buttons";
@@ -2169,7 +2246,7 @@ const Mn = {
2169
2246
  },
2170
2247
  xlarge: {
2171
2248
  description: "Extra Large",
2172
- react: g`
2249
+ react: w`
2173
2250
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2174
2251
  import { sprinkles } from "@sps-woodland/tokens";
2175
2252
  import { Button } from "@sps-woodland/buttons";
@@ -2196,7 +2273,7 @@ const Mn = {
2196
2273
  examples: {
2197
2274
  small: {
2198
2275
  description: "Small",
2199
- react: g`
2276
+ react: w`
2200
2277
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2201
2278
  import { sprinkles } from "@sps-woodland/tokens";
2202
2279
  import { Button } from "@sps-woodland/buttons";
@@ -2218,7 +2295,7 @@ const Mn = {
2218
2295
  },
2219
2296
  medium: {
2220
2297
  description: "Medium",
2221
- react: g`
2298
+ react: w`
2222
2299
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2223
2300
  import { sprinkles } from "@sps-woodland/tokens";
2224
2301
  import { Button } from "@sps-woodland/buttons";
@@ -2239,7 +2316,7 @@ const Mn = {
2239
2316
  },
2240
2317
  large: {
2241
2318
  description: "Large",
2242
- react: g`
2319
+ react: w`
2243
2320
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2244
2321
  import { sprinkles } from "@sps-woodland/tokens";
2245
2322
  import { Button } from "@sps-woodland/buttons";
@@ -2261,7 +2338,7 @@ const Mn = {
2261
2338
  },
2262
2339
  xlarge: {
2263
2340
  description: "Extra Large",
2264
- react: g`
2341
+ react: w`
2265
2342
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2266
2343
  import { sprinkles } from "@sps-woodland/tokens";
2267
2344
  import { Button } from "@sps-woodland/buttons";
@@ -2288,7 +2365,7 @@ const Mn = {
2288
2365
  examples: {
2289
2366
  small: {
2290
2367
  description: "Small",
2291
- react: g`
2368
+ react: w`
2292
2369
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2293
2370
  import { sprinkles } from "@sps-woodland/tokens";
2294
2371
  import { Button } from "@sps-woodland/buttons";
@@ -2310,7 +2387,7 @@ const Mn = {
2310
2387
  },
2311
2388
  medium: {
2312
2389
  description: "Medium",
2313
- react: g`
2390
+ react: w`
2314
2391
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2315
2392
  import { sprinkles } from "@sps-woodland/tokens";
2316
2393
  import { Button } from "@sps-woodland/buttons";
@@ -2331,7 +2408,7 @@ const Mn = {
2331
2408
  },
2332
2409
  large: {
2333
2410
  description: "Large",
2334
- react: g`
2411
+ react: w`
2335
2412
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2336
2413
  import { sprinkles } from "@sps-woodland/tokens";
2337
2414
  import { Button } from "@sps-woodland/buttons";
@@ -2353,7 +2430,7 @@ const Mn = {
2353
2430
  },
2354
2431
  xlarge: {
2355
2432
  description: "Extra Large",
2356
- react: g`
2433
+ react: w`
2357
2434
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2358
2435
  import { sprinkles } from "@sps-woodland/tokens";
2359
2436
  import { Button } from "@sps-woodland/buttons";
@@ -2380,7 +2457,7 @@ const Mn = {
2380
2457
  examples: {
2381
2458
  small: {
2382
2459
  description: "Small",
2383
- react: g`
2460
+ react: w`
2384
2461
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2385
2462
  import { sprinkles } from "@sps-woodland/tokens";
2386
2463
  import { Button } from "@sps-woodland/buttons";
@@ -2407,7 +2484,7 @@ const Mn = {
2407
2484
  },
2408
2485
  medium: {
2409
2486
  description: "Medium",
2410
- react: g`
2487
+ react: w`
2411
2488
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2412
2489
  import { sprinkles } from "@sps-woodland/tokens";
2413
2490
  import { Button } from "@sps-woodland/buttons";
@@ -2432,7 +2509,7 @@ const Mn = {
2432
2509
  },
2433
2510
  large: {
2434
2511
  description: "Large",
2435
- react: g`
2512
+ react: w`
2436
2513
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2437
2514
  import { sprinkles } from "@sps-woodland/tokens";
2438
2515
  import { Button } from "@sps-woodland/buttons";
@@ -2454,7 +2531,7 @@ const Mn = {
2454
2531
  },
2455
2532
  xlarge: {
2456
2533
  description: "Extra Large",
2457
- react: g`
2534
+ react: w`
2458
2535
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2459
2536
  import { sprinkles } from "@sps-woodland/tokens";
2460
2537
  import { Button } from "@sps-woodland/buttons";
@@ -2481,7 +2558,7 @@ const Mn = {
2481
2558
  examples: {
2482
2559
  small: {
2483
2560
  description: "Small",
2484
- react: g`
2561
+ react: w`
2485
2562
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2486
2563
  import { sprinkles } from "@sps-woodland/tokens";
2487
2564
  import { Button } from "@sps-woodland/buttons";
@@ -2503,7 +2580,7 @@ const Mn = {
2503
2580
  },
2504
2581
  medium: {
2505
2582
  description: "Medium",
2506
- react: g`
2583
+ react: w`
2507
2584
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2508
2585
  import { sprinkles } from "@sps-woodland/tokens";
2509
2586
  import { Button } from "@sps-woodland/buttons";
@@ -2524,7 +2601,7 @@ const Mn = {
2524
2601
  },
2525
2602
  large: {
2526
2603
  description: "Large",
2527
- react: g`
2604
+ react: w`
2528
2605
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2529
2606
  import { sprinkles } from "@sps-woodland/tokens";
2530
2607
  import { Button } from "@sps-woodland/buttons";
@@ -2546,7 +2623,7 @@ const Mn = {
2546
2623
  },
2547
2624
  xlarge: {
2548
2625
  description: "Extra Large",
2549
- react: g`
2626
+ react: w`
2550
2627
  import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
2551
2628
  import { sprinkles } from "@sps-woodland/tokens";
2552
2629
  import { Button } from "@sps-woodland/buttons";
@@ -2568,13 +2645,13 @@ const Mn = {
2568
2645
  }
2569
2646
  }
2570
2647
  }
2571
- }, Ln = {
2572
- Modals: Mn
2648
+ }, Cn = {
2649
+ Modals: kn
2573
2650
  };
2574
2651
  export {
2575
- Ln as MANIFEST,
2576
- Mt as Modal,
2577
- _t as ModalFooter,
2578
- Xe as ModalIcons,
2579
- Sn as useModal
2652
+ Cn as MANIFEST,
2653
+ Nt as Modal,
2654
+ Pt as ModalFooter,
2655
+ et as ModalIcons,
2656
+ Fn as useModal
2580
2657
  };