@purpurds/modal 5.20.0 → 5.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/modal.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as j, jsx as b } from "react/jsx-runtime";
2
2
  import * as m from "react";
3
- import { useCallback as Q, createContext as Oe, useMemo as me, createElement as _, useContext as rt, useLayoutEffect as It, useRef as N, useEffect as A, useState as H, forwardRef as S, Children as I, isValidElement as U, cloneElement as ae, Fragment as Ie, useReducer as Rt } from "react";
4
- import Mt, { flushSync as ot } from "react-dom";
3
+ import { useCallback as Q, createContext as Oe, useMemo as me, createElement as _, useContext as rt, useLayoutEffect as Rt, useRef as N, useEffect as A, useState as H, forwardRef as S, Children as L, isValidElement as U, cloneElement as ae, Fragment as Le, useReducer as Mt } from "react";
4
+ import kt, { flushSync as ot } from "react-dom";
5
5
  function P() {
6
6
  return P = Object.assign ? Object.assign.bind() : function(e) {
7
7
  for (var n = 1; n < arguments.length; n++) {
@@ -16,18 +16,18 @@ function B(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
16
16
  if (e == null || e(a), t === !1 || !a.defaultPrevented) return n == null ? void 0 : n(a);
17
17
  };
18
18
  }
19
- function kt(e, n) {
19
+ function Ft(e, n) {
20
20
  typeof e == "function" ? e(n) : e != null && (e.current = n);
21
21
  }
22
22
  function at(...e) {
23
23
  return (n) => e.forEach(
24
- (t) => kt(t, n)
24
+ (t) => Ft(t, n)
25
25
  );
26
26
  }
27
27
  function J(...e) {
28
28
  return Q(at(...e), e);
29
29
  }
30
- function Ft(e, n = []) {
30
+ function jt(e, n = []) {
31
31
  let t = [];
32
32
  function o(r, i) {
33
33
  const c = /* @__PURE__ */ Oe(i), s = t.length;
@@ -75,10 +75,10 @@ function Ft(e, n = []) {
75
75
  };
76
76
  return a.scopeName = e, [
77
77
  o,
78
- jt(a, ...n)
78
+ Bt(a, ...n)
79
79
  ];
80
80
  }
81
- function jt(...e) {
81
+ function Bt(...e) {
82
82
  const n = e[0];
83
83
  if (e.length === 1) return n;
84
84
  const t = () => {
@@ -108,15 +108,15 @@ function jt(...e) {
108
108
  };
109
109
  return t.scopeName = n.scopeName, t;
110
110
  }
111
- const Ne = globalThis != null && globalThis.document ? It : () => {
112
- }, Bt = m.useId || (() => {
111
+ const Ne = globalThis != null && globalThis.document ? Rt : () => {
112
+ }, Ut = m.useId || (() => {
113
113
  });
114
- let Ut = 0;
114
+ let Wt = 0;
115
115
  function be(e) {
116
- const [n, t] = m.useState(Bt());
116
+ const [n, t] = m.useState(Ut());
117
117
  return Ne(() => {
118
118
  e || t(
119
- (o) => o ?? String(Ut++)
119
+ (o) => o ?? String(Wt++)
120
120
  );
121
121
  }, [
122
122
  e
@@ -134,9 +134,9 @@ function V(e) {
134
134
  []
135
135
  );
136
136
  }
137
- function Wt({ prop: e, defaultProp: n, onChange: t = () => {
137
+ function zt({ prop: e, defaultProp: n, onChange: t = () => {
138
138
  } }) {
139
- const [o, a] = zt({
139
+ const [o, a] = qt({
140
140
  defaultProp: n,
141
141
  onChange: t
142
142
  }), r = e !== void 0, i = r ? e : o, c = V(t), s = Q((d) => {
@@ -155,7 +155,7 @@ function Wt({ prop: e, defaultProp: n, onChange: t = () => {
155
155
  s
156
156
  ];
157
157
  }
158
- function zt({ defaultProp: e, onChange: n }) {
158
+ function qt({ defaultProp: e, onChange: n }) {
159
159
  const t = H(e), [o] = t, a = N(o), r = V(n);
160
160
  return A(() => {
161
161
  a.current !== o && (r(o), a.current = o);
@@ -166,9 +166,9 @@ function zt({ defaultProp: e, onChange: n }) {
166
166
  ]), t;
167
167
  }
168
168
  const Re = /* @__PURE__ */ S((e, n) => {
169
- const { children: t, ...o } = e, a = I.toArray(t), r = a.find(Ht);
169
+ const { children: t, ...o } = e, a = L.toArray(t), r = a.find(Vt);
170
170
  if (r) {
171
- const i = r.props.children, c = a.map((s) => s === r ? I.count(i) > 1 ? I.only(null) : /* @__PURE__ */ U(i) ? i.props.children : null : s);
171
+ const i = r.props.children, c = a.map((s) => s === r ? L.count(i) > 1 ? L.only(null) : /* @__PURE__ */ U(i) ? i.props.children : null : s);
172
172
  return /* @__PURE__ */ _(Pe, P({}, o, {
173
173
  ref: n
174
174
  }), /* @__PURE__ */ U(i) ? /* @__PURE__ */ ae(i, void 0, c) : null);
@@ -181,16 +181,16 @@ Re.displayName = "Slot";
181
181
  const Pe = /* @__PURE__ */ S((e, n) => {
182
182
  const { children: t, ...o } = e;
183
183
  return /* @__PURE__ */ U(t) ? /* @__PURE__ */ ae(t, {
184
- ...Vt(o, t.props),
184
+ ...Kt(o, t.props),
185
185
  ref: n ? at(n, t.ref) : t.ref
186
- }) : I.count(t) > 1 ? I.only(null) : null;
186
+ }) : L.count(t) > 1 ? L.only(null) : null;
187
187
  });
188
188
  Pe.displayName = "SlotClone";
189
- const qt = ({ children: e }) => /* @__PURE__ */ _(Ie, null, e);
190
- function Ht(e) {
191
- return /* @__PURE__ */ U(e) && e.type === qt;
189
+ const Ht = ({ children: e }) => /* @__PURE__ */ _(Le, null, e);
190
+ function Vt(e) {
191
+ return /* @__PURE__ */ U(e) && e.type === Ht;
192
192
  }
193
- function Vt(e, n) {
193
+ function Kt(e, n) {
194
194
  const t = {
195
195
  ...n
196
196
  };
@@ -211,7 +211,7 @@ function Vt(e, n) {
211
211
  ...t
212
212
  };
213
213
  }
214
- const Kt = [
214
+ const Xt = [
215
215
  "a",
216
216
  "button",
217
217
  "div",
@@ -228,7 +228,7 @@ const Kt = [
228
228
  "span",
229
229
  "svg",
230
230
  "ul"
231
- ], W = Kt.reduce((e, n) => {
231
+ ], W = Xt.reduce((e, n) => {
232
232
  const t = /* @__PURE__ */ S((o, a) => {
233
233
  const { asChild: r, ...i } = o, c = r ? Re : n;
234
234
  return A(() => {
@@ -242,12 +242,12 @@ const Kt = [
242
242
  [n]: t
243
243
  };
244
244
  }, {});
245
- function Xt(e, n) {
245
+ function Gt(e, n) {
246
246
  e && ot(
247
247
  () => e.dispatchEvent(n)
248
248
  );
249
249
  }
250
- function Gt(e, n = globalThis == null ? void 0 : globalThis.document) {
250
+ function Yt(e, n = globalThis == null ? void 0 : globalThis.document) {
251
251
  const t = V(e);
252
252
  A(() => {
253
253
  const o = (a) => {
@@ -259,35 +259,35 @@ function Gt(e, n = globalThis == null ? void 0 : globalThis.document) {
259
259
  n
260
260
  ]);
261
261
  }
262
- const Ae = "dismissableLayer.update", Yt = "dismissableLayer.pointerDownOutside", Zt = "dismissableLayer.focusOutside";
262
+ const Ae = "dismissableLayer.update", Zt = "dismissableLayer.pointerDownOutside", Qt = "dismissableLayer.focusOutside";
263
263
  let je;
264
- const Qt = /* @__PURE__ */ Oe({
264
+ const Jt = /* @__PURE__ */ Oe({
265
265
  layers: /* @__PURE__ */ new Set(),
266
266
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
267
267
  branches: /* @__PURE__ */ new Set()
268
- }), Jt = /* @__PURE__ */ S((e, n) => {
268
+ }), en = /* @__PURE__ */ S((e, n) => {
269
269
  var t;
270
- const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: a, onPointerDownOutside: r, onFocusOutside: i, onInteractOutside: c, onDismiss: s, ...d } = e, p = rt(Qt), [l, v] = H(null), f = (t = l == null ? void 0 : l.ownerDocument) !== null && t !== void 0 ? t : globalThis == null ? void 0 : globalThis.document, [, E] = H({}), u = J(
270
+ const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: a, onPointerDownOutside: r, onFocusOutside: i, onInteractOutside: c, onDismiss: s, ...d } = e, p = rt(Jt), [l, v] = H(null), f = (t = l == null ? void 0 : l.ownerDocument) !== null && t !== void 0 ? t : globalThis == null ? void 0 : globalThis.document, [, E] = H({}), u = J(
271
271
  n,
272
272
  (w) => v(w)
273
273
  ), h = Array.from(p.layers), [g] = [
274
274
  ...p.layersWithOutsidePointerEventsDisabled
275
- ].slice(-1), C = h.indexOf(g), y = l ? h.indexOf(l) : -1, $ = p.layersWithOutsidePointerEventsDisabled.size > 0, x = y >= C, z = en((w) => {
276
- const L = w.target, ie = [
275
+ ].slice(-1), C = h.indexOf(g), y = l ? h.indexOf(l) : -1, $ = p.layersWithOutsidePointerEventsDisabled.size > 0, x = y >= C, z = tn((w) => {
276
+ const I = w.target, ie = [
277
277
  ...p.branches
278
278
  ].some(
279
- (R) => R.contains(L)
279
+ (R) => R.contains(I)
280
280
  );
281
281
  !x || ie || (r == null || r(w), c == null || c(w), w.defaultPrevented || s == null || s());
282
- }, f), D = tn((w) => {
283
- const L = w.target;
282
+ }, f), D = nn((w) => {
283
+ const I = w.target;
284
284
  [
285
285
  ...p.branches
286
286
  ].some(
287
- (R) => R.contains(L)
287
+ (R) => R.contains(I)
288
288
  ) || (i == null || i(w), c == null || c(w), w.defaultPrevented || s == null || s());
289
289
  }, f);
290
- return Gt((w) => {
290
+ return Yt((w) => {
291
291
  y === p.layers.size - 1 && (a == null || a(w), !w.defaultPrevented && s && (w.preventDefault(), s()));
292
292
  }, f), A(() => {
293
293
  if (l)
@@ -318,14 +318,14 @@ const Qt = /* @__PURE__ */ Oe({
318
318
  onPointerDownCapture: B(e.onPointerDownCapture, z.onPointerDownCapture)
319
319
  }));
320
320
  });
321
- function en(e, n = globalThis == null ? void 0 : globalThis.document) {
321
+ function tn(e, n = globalThis == null ? void 0 : globalThis.document) {
322
322
  const t = V(e), o = N(!1), a = N(() => {
323
323
  });
324
324
  return A(() => {
325
325
  const r = (c) => {
326
326
  if (c.target && !o.current) {
327
327
  let d = function() {
328
- it(Yt, t, s, {
328
+ it(Zt, t, s, {
329
329
  discrete: !0
330
330
  });
331
331
  };
@@ -352,11 +352,11 @@ function en(e, n = globalThis == null ? void 0 : globalThis.document) {
352
352
  onPointerDownCapture: () => o.current = !0
353
353
  };
354
354
  }
355
- function tn(e, n = globalThis == null ? void 0 : globalThis.document) {
355
+ function nn(e, n = globalThis == null ? void 0 : globalThis.document) {
356
356
  const t = V(e), o = N(!1);
357
357
  return A(() => {
358
358
  const a = (r) => {
359
- r.target && !o.current && it(Zt, t, {
359
+ r.target && !o.current && it(Qt, t, {
360
360
  originalEvent: r
361
361
  }, {
362
362
  discrete: !1
@@ -383,12 +383,12 @@ function it(e, n, t, { discrete: o }) {
383
383
  });
384
384
  n && a.addEventListener(e, n, {
385
385
  once: !0
386
- }), o ? Xt(a, r) : a.dispatchEvent(r);
386
+ }), o ? Gt(a, r) : a.dispatchEvent(r);
387
387
  }
388
388
  const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount", Ue = {
389
389
  bubbles: !1,
390
390
  cancelable: !0
391
- }, nn = /* @__PURE__ */ S((e, n) => {
391
+ }, rn = /* @__PURE__ */ S((e, n) => {
392
392
  const { loop: t = !1, trapped: o = !1, onMountAutoFocus: a, onUnmountAutoFocus: r, ...i } = e, [c, s] = H(null), d = V(a), p = V(r), l = N(null), v = J(
393
393
  n,
394
394
  (u) => s(u)
@@ -438,7 +438,7 @@ const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount",
438
438
  const u = document.activeElement;
439
439
  if (!c.contains(u)) {
440
440
  const g = new CustomEvent($e, Ue);
441
- c.addEventListener($e, d), c.dispatchEvent(g), g.defaultPrevented || (rn(sn(ct(c)), {
441
+ c.addEventListener($e, d), c.dispatchEvent(g), g.defaultPrevented || (on(ln(ct(c)), {
442
442
  select: !0
443
443
  }), document.activeElement === u && F(c));
444
444
  }
@@ -461,7 +461,7 @@ const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount",
461
461
  if (!t && !o || f.paused) return;
462
462
  const h = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, g = document.activeElement;
463
463
  if (h && g) {
464
- const C = u.currentTarget, [y, $] = on(C);
464
+ const C = u.currentTarget, [y, $] = an(C);
465
465
  y && $ ? !u.shiftKey && g === $ ? (u.preventDefault(), t && F(y, {
466
466
  select: !0
467
467
  })) : u.shiftKey && g === y && (u.preventDefault(), t && F($, {
@@ -480,14 +480,14 @@ const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount",
480
480
  onKeyDown: E
481
481
  }));
482
482
  });
483
- function rn(e, { select: n = !1 } = {}) {
483
+ function on(e, { select: n = !1 } = {}) {
484
484
  const t = document.activeElement;
485
485
  for (const o of e)
486
486
  if (F(o, {
487
487
  select: n
488
488
  }), document.activeElement !== t) return;
489
489
  }
490
- function on(e) {
490
+ function an(e) {
491
491
  const n = ct(e), t = We(n, e), o = We(n.reverse(), e);
492
492
  return [
493
493
  t,
@@ -506,11 +506,11 @@ function ct(e) {
506
506
  }
507
507
  function We(e, n) {
508
508
  for (const t of e)
509
- if (!an(t, {
509
+ if (!cn(t, {
510
510
  upTo: n
511
511
  })) return t;
512
512
  }
513
- function an(e, { upTo: n }) {
513
+ function cn(e, { upTo: n }) {
514
514
  if (getComputedStyle(e).visibility === "hidden") return !0;
515
515
  for (; e; ) {
516
516
  if (n !== void 0 && e === n) return !1;
@@ -519,7 +519,7 @@ function an(e, { upTo: n }) {
519
519
  }
520
520
  return !1;
521
521
  }
522
- function cn(e) {
522
+ function un(e) {
523
523
  return e instanceof HTMLInputElement && "select" in e;
524
524
  }
525
525
  function F(e, { select: n = !1 } = {}) {
@@ -527,11 +527,11 @@ function F(e, { select: n = !1 } = {}) {
527
527
  const t = document.activeElement;
528
528
  e.focus({
529
529
  preventScroll: !0
530
- }), e !== t && cn(e) && n && e.select();
530
+ }), e !== t && un(e) && n && e.select();
531
531
  }
532
532
  }
533
- const ze = un();
534
- function un() {
533
+ const ze = sn();
534
+ function sn() {
535
535
  let e = [];
536
536
  return {
537
537
  add(n) {
@@ -550,35 +550,35 @@ function qe(e, n) {
550
550
  ], o = t.indexOf(n);
551
551
  return o !== -1 && t.splice(o, 1), t;
552
552
  }
553
- function sn(e) {
553
+ function ln(e) {
554
554
  return e.filter(
555
555
  (n) => n.tagName !== "A"
556
556
  );
557
557
  }
558
- const ln = /* @__PURE__ */ S((e, n) => {
558
+ const dn = /* @__PURE__ */ S((e, n) => {
559
559
  var t;
560
560
  const { container: o = globalThis == null || (t = globalThis.document) === null || t === void 0 ? void 0 : t.body, ...a } = e;
561
- return o ? /* @__PURE__ */ Mt.createPortal(/* @__PURE__ */ _(W.div, P({}, a, {
561
+ return o ? /* @__PURE__ */ kt.createPortal(/* @__PURE__ */ _(W.div, P({}, a, {
562
562
  ref: n
563
563
  })), o) : null;
564
564
  });
565
- function dn(e, n) {
566
- return Rt((t, o) => {
565
+ function pn(e, n) {
566
+ return Mt((t, o) => {
567
567
  const a = n[t][o];
568
568
  return a ?? t;
569
569
  }, e);
570
570
  }
571
571
  const ge = (e) => {
572
- const { present: n, children: t } = e, o = pn(n), a = typeof t == "function" ? t({
572
+ const { present: n, children: t } = e, o = fn(n), a = typeof t == "function" ? t({
573
573
  present: o.isPresent
574
- }) : I.only(t), r = J(o.ref, a.ref);
574
+ }) : L.only(t), r = J(o.ref, a.ref);
575
575
  return typeof t == "function" || o.isPresent ? /* @__PURE__ */ ae(a, {
576
576
  ref: r
577
577
  }) : null;
578
578
  };
579
579
  ge.displayName = "Presence";
580
- function pn(e) {
581
- const [n, t] = H(), o = N({}), a = N(e), r = N("none"), i = e ? "mounted" : "unmounted", [c, s] = dn(i, {
580
+ function fn(e) {
581
+ const [n, t] = H(), o = N({}), a = N(e), r = N("none"), i = e ? "mounted" : "unmounted", [c, s] = pn(i, {
582
582
  mounted: {
583
583
  UNMOUNT: "unmounted",
584
584
  ANIMATION_OUT: "unmountSuspended"
@@ -637,7 +637,7 @@ function ce(e) {
637
637
  return (e == null ? void 0 : e.animationName) || "none";
638
638
  }
639
639
  let Ee = 0;
640
- function fn() {
640
+ function vn() {
641
641
  A(() => {
642
642
  var e, n;
643
643
  const t = document.querySelectorAll("[data-radix-focus-guard]");
@@ -669,16 +669,16 @@ function ut(e, n) {
669
669
  n.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (t[o[a]] = e[o[a]]);
670
670
  return t;
671
671
  }
672
- function vn(e, n, t) {
672
+ function hn(e, n, t) {
673
673
  if (t || arguments.length === 2) for (var o = 0, a = n.length, r; o < a; o++)
674
674
  (r || !(o in n)) && (r || (r = Array.prototype.slice.call(n, 0, o)), r[o] = n[o]);
675
675
  return e.concat(r || Array.prototype.slice.call(n));
676
676
  }
677
- var ve = "right-scroll-bar-position", he = "width-before-scroll-bar", hn = "with-scroll-bars-hidden", mn = "--removed-body-scroll-bar-size";
677
+ var ve = "right-scroll-bar-position", he = "width-before-scroll-bar", mn = "with-scroll-bars-hidden", gn = "--removed-body-scroll-bar-size";
678
678
  function we(e, n) {
679
679
  return typeof e == "function" ? e(n) : e && (e.current = n), e;
680
680
  }
681
- function gn(e, n) {
681
+ function _n(e, n) {
682
682
  var t = H(function() {
683
683
  return {
684
684
  // value
@@ -699,14 +699,14 @@ function gn(e, n) {
699
699
  })[0];
700
700
  return t.callback = n, t.facade;
701
701
  }
702
- var _n = typeof window < "u" ? m.useLayoutEffect : m.useEffect, Ve = /* @__PURE__ */ new WeakMap();
703
- function bn(e, n) {
704
- var t = gn(null, function(o) {
702
+ var bn = typeof window < "u" ? m.useLayoutEffect : m.useEffect, Ve = /* @__PURE__ */ new WeakMap();
703
+ function $n(e, n) {
704
+ var t = _n(null, function(o) {
705
705
  return e.forEach(function(a) {
706
706
  return we(a, o);
707
707
  });
708
708
  });
709
- return _n(function() {
709
+ return bn(function() {
710
710
  var o = Ve.get(t);
711
711
  if (o) {
712
712
  var a = new Set(o), r = new Set(e), i = t.current;
@@ -719,11 +719,11 @@ function bn(e, n) {
719
719
  Ve.set(t, e);
720
720
  }, [e]), t;
721
721
  }
722
- function $n(e) {
722
+ function yn(e) {
723
723
  return e;
724
724
  }
725
- function yn(e, n) {
726
- n === void 0 && (n = $n);
725
+ function En(e, n) {
726
+ n === void 0 && (n = yn);
727
727
  var t = [], o = !1, a = {
728
728
  read: function() {
729
729
  if (o)
@@ -777,9 +777,9 @@ function yn(e, n) {
777
777
  };
778
778
  return a;
779
779
  }
780
- function En(e) {
780
+ function wn(e) {
781
781
  e === void 0 && (e = {});
782
- var n = yn(null);
782
+ var n = En(null);
783
783
  return n.options = k({ async: !0, ssr: !1 }, e), n;
784
784
  }
785
785
  var st = function(e) {
@@ -792,16 +792,16 @@ var st = function(e) {
792
792
  return m.createElement(o, k({}, t));
793
793
  };
794
794
  st.isSideCarExport = !0;
795
- function wn(e, n) {
795
+ function xn(e, n) {
796
796
  return e.useMedium(n), st;
797
797
  }
798
- var lt = En(), xe = function() {
798
+ var lt = wn(), xe = function() {
799
799
  }, _e = m.forwardRef(function(e, n) {
800
800
  var t = m.useRef(null), o = m.useState({
801
801
  onScrollCapture: xe,
802
802
  onWheelCapture: xe,
803
803
  onTouchMoveCapture: xe
804
- }), a = o[0], r = o[1], i = e.forwardProps, c = e.children, s = e.className, d = e.removeScrollBar, p = e.enabled, l = e.shards, v = e.sideCar, f = e.noIsolation, E = e.inert, u = e.allowPinchZoom, h = e.as, g = h === void 0 ? "div" : h, C = ut(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), y = v, $ = bn([t, n]), x = k(k({}, C), a);
804
+ }), a = o[0], r = o[1], i = e.forwardProps, c = e.children, s = e.className, d = e.removeScrollBar, p = e.enabled, l = e.shards, v = e.sideCar, f = e.noIsolation, E = e.inert, u = e.allowPinchZoom, h = e.as, g = h === void 0 ? "div" : h, C = ut(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), y = v, $ = $n([t, n]), x = k(k({}, C), a);
805
805
  return m.createElement(
806
806
  m.Fragment,
807
807
  null,
@@ -818,37 +818,37 @@ _e.classNames = {
818
818
  fullWidth: he,
819
819
  zeroRight: ve
820
820
  };
821
- var xn = function() {
821
+ var Sn = function() {
822
822
  if (typeof __webpack_nonce__ < "u")
823
823
  return __webpack_nonce__;
824
824
  };
825
- function Sn() {
825
+ function Cn() {
826
826
  if (!document)
827
827
  return null;
828
828
  var e = document.createElement("style");
829
829
  e.type = "text/css";
830
- var n = xn();
830
+ var n = Sn();
831
831
  return n && e.setAttribute("nonce", n), e;
832
832
  }
833
- function Cn(e, n) {
833
+ function On(e, n) {
834
834
  e.styleSheet ? e.styleSheet.cssText = n : e.appendChild(document.createTextNode(n));
835
835
  }
836
- function On(e) {
836
+ function Nn(e) {
837
837
  var n = document.head || document.getElementsByTagName("head")[0];
838
838
  n.appendChild(e);
839
839
  }
840
- var Nn = function() {
840
+ var Pn = function() {
841
841
  var e = 0, n = null;
842
842
  return {
843
843
  add: function(t) {
844
- e == 0 && (n = Sn()) && (Cn(n, t), On(n)), e++;
844
+ e == 0 && (n = Cn()) && (On(n, t), Nn(n)), e++;
845
845
  },
846
846
  remove: function() {
847
847
  e--, !e && n && (n.parentNode && n.parentNode.removeChild(n), n = null);
848
848
  }
849
849
  };
850
- }, Pn = function() {
851
- var e = Nn();
850
+ }, An = function() {
851
+ var e = Pn();
852
852
  return function(n, t) {
853
853
  m.useEffect(function() {
854
854
  return e.add(n), function() {
@@ -857,35 +857,35 @@ var Nn = function() {
857
857
  }, [n && t]);
858
858
  };
859
859
  }, dt = function() {
860
- var e = Pn(), n = function(t) {
860
+ var e = An(), n = function(t) {
861
861
  var o = t.styles, a = t.dynamic;
862
862
  return e(o, a), null;
863
863
  };
864
864
  return n;
865
- }, An = {
865
+ }, Tn = {
866
866
  left: 0,
867
867
  top: 0,
868
868
  right: 0,
869
869
  gap: 0
870
870
  }, Se = function(e) {
871
871
  return parseInt(e || "", 10) || 0;
872
- }, Tn = function(e) {
872
+ }, Dn = function(e) {
873
873
  var n = window.getComputedStyle(document.body), t = n[e === "padding" ? "paddingLeft" : "marginLeft"], o = n[e === "padding" ? "paddingTop" : "marginTop"], a = n[e === "padding" ? "paddingRight" : "marginRight"];
874
874
  return [Se(t), Se(o), Se(a)];
875
- }, Dn = function(e) {
875
+ }, In = function(e) {
876
876
  if (e === void 0 && (e = "margin"), typeof window > "u")
877
- return An;
878
- var n = Tn(e), t = document.documentElement.clientWidth, o = window.innerWidth;
877
+ return Tn;
878
+ var n = Dn(e), t = document.documentElement.clientWidth, o = window.innerWidth;
879
879
  return {
880
880
  left: n[0],
881
881
  top: n[1],
882
882
  right: n[2],
883
883
  gap: Math.max(0, o - t + n[2] - n[0])
884
884
  };
885
- }, Ln = dt(), Y = "data-scroll-locked", In = function(e, n, t, o) {
885
+ }, Ln = dt(), Y = "data-scroll-locked", Rn = function(e, n, t, o) {
886
886
  var a = e.left, r = e.top, i = e.right, c = e.gap;
887
887
  return t === void 0 && (t = "margin"), `
888
- .`.concat(hn, ` {
888
+ .`.concat(mn, ` {
889
889
  overflow: hidden `).concat(o, `;
890
890
  padding-right: `).concat(c, "px ").concat(o, `;
891
891
  }
@@ -923,26 +923,26 @@ var Nn = function() {
923
923
  }
924
924
 
925
925
  body[`).concat(Y, `] {
926
- `).concat(mn, ": ").concat(c, `px;
926
+ `).concat(gn, ": ").concat(c, `px;
927
927
  }
928
928
  `);
929
929
  }, Ke = function() {
930
930
  var e = parseInt(document.body.getAttribute(Y) || "0", 10);
931
931
  return isFinite(e) ? e : 0;
932
- }, Rn = function() {
932
+ }, Mn = function() {
933
933
  m.useEffect(function() {
934
934
  return document.body.setAttribute(Y, (Ke() + 1).toString()), function() {
935
935
  var e = Ke() - 1;
936
936
  e <= 0 ? document.body.removeAttribute(Y) : document.body.setAttribute(Y, e.toString());
937
937
  };
938
938
  }, []);
939
- }, Mn = function(e) {
939
+ }, kn = function(e) {
940
940
  var n = e.noRelative, t = e.noImportant, o = e.gapMode, a = o === void 0 ? "margin" : o;
941
- Rn();
941
+ Mn();
942
942
  var r = m.useMemo(function() {
943
- return Dn(a);
943
+ return In(a);
944
944
  }, [a]);
945
- return m.createElement(Ln, { styles: In(r, !n, a, t ? "" : "!important") });
945
+ return m.createElement(Ln, { styles: Rn(r, !n, a, t ? "" : "!important") });
946
946
  }, Te = !1;
947
947
  if (typeof window < "u")
948
948
  try {
@@ -955,18 +955,18 @@ if (typeof window < "u")
955
955
  } catch {
956
956
  Te = !1;
957
957
  }
958
- var K = Te ? { passive: !1 } : !1, kn = function(e) {
958
+ var K = Te ? { passive: !1 } : !1, Fn = function(e) {
959
959
  return e.tagName === "TEXTAREA";
960
960
  }, pt = function(e, n) {
961
961
  var t = window.getComputedStyle(e);
962
962
  return (
963
963
  // not-not-scrollable
964
964
  t[n] !== "hidden" && // contains scroll inside self
965
- !(t.overflowY === t.overflowX && !kn(e) && t[n] === "visible")
965
+ !(t.overflowY === t.overflowX && !Fn(e) && t[n] === "visible")
966
966
  );
967
- }, Fn = function(e) {
968
- return pt(e, "overflowY");
969
967
  }, jn = function(e) {
968
+ return pt(e, "overflowY");
969
+ }, Bn = function(e) {
970
970
  return pt(e, "overflowX");
971
971
  }, Xe = function(e, n) {
972
972
  var t = n;
@@ -981,14 +981,14 @@ var K = Te ? { passive: !1 } : !1, kn = function(e) {
981
981
  t = t.parentNode;
982
982
  } while (t && t !== document.body);
983
983
  return !1;
984
- }, Bn = function(e) {
984
+ }, Un = function(e) {
985
985
  var n = e.scrollTop, t = e.scrollHeight, o = e.clientHeight;
986
986
  return [
987
987
  n,
988
988
  t,
989
989
  o
990
990
  ];
991
- }, Un = function(e) {
991
+ }, Wn = function(e) {
992
992
  var n = e.scrollLeft, t = e.scrollWidth, o = e.clientWidth;
993
993
  return [
994
994
  n,
@@ -996,13 +996,13 @@ var K = Te ? { passive: !1 } : !1, kn = function(e) {
996
996
  o
997
997
  ];
998
998
  }, ft = function(e, n) {
999
- return e === "v" ? Fn(n) : jn(n);
999
+ return e === "v" ? jn(n) : Bn(n);
1000
1000
  }, vt = function(e, n) {
1001
- return e === "v" ? Bn(n) : Un(n);
1002
- }, Wn = function(e, n) {
1001
+ return e === "v" ? Un(n) : Wn(n);
1002
+ }, zn = function(e, n) {
1003
1003
  return e === "h" && n === "rtl" ? -1 : 1;
1004
- }, zn = function(e, n, t, o, a) {
1005
- var r = Wn(e, window.getComputedStyle(n).direction), i = r * o, c = t.target, s = n.contains(c), d = !1, p = i > 0, l = 0, v = 0;
1004
+ }, qn = function(e, n, t, o, a) {
1005
+ var r = zn(e, window.getComputedStyle(n).direction), i = r * o, c = t.target, s = n.contains(c), d = !1, p = i > 0, l = 0, v = 0;
1006
1006
  do {
1007
1007
  var f = vt(e, c), E = f[0], u = f[1], h = f[2], g = u - h - r * E;
1008
1008
  (E || g) && ft(e, c) && (l += g, v += E), c = c.parentNode;
@@ -1018,16 +1018,16 @@ var K = Te ? { passive: !1 } : !1, kn = function(e) {
1018
1018
  return [e.deltaX, e.deltaY];
1019
1019
  }, Ye = function(e) {
1020
1020
  return e && "current" in e ? e.current : e;
1021
- }, qn = function(e, n) {
1021
+ }, Hn = function(e, n) {
1022
1022
  return e[0] === n[0] && e[1] === n[1];
1023
- }, Hn = function(e) {
1023
+ }, Vn = function(e) {
1024
1024
  return `
1025
1025
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
1026
1026
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
1027
1027
  `);
1028
- }, Vn = 0, X = [];
1029
- function Kn(e) {
1030
- var n = m.useRef([]), t = m.useRef([0, 0]), o = m.useRef(), a = m.useState(Vn++)[0], r = m.useState(function() {
1028
+ }, Kn = 0, X = [];
1029
+ function Xn(e) {
1030
+ var n = m.useRef([]), t = m.useRef([0, 0]), o = m.useRef(), a = m.useState(Kn++)[0], r = m.useState(function() {
1031
1031
  return dt();
1032
1032
  })[0], i = m.useRef(e);
1033
1033
  m.useEffect(function() {
@@ -1035,7 +1035,7 @@ function Kn(e) {
1035
1035
  }, [e]), m.useEffect(function() {
1036
1036
  if (e.inert) {
1037
1037
  document.body.classList.add("block-interactivity-".concat(a));
1038
- var u = vn([e.lockRef.current], (e.shards || []).map(Ye), !0).filter(Boolean);
1038
+ var u = hn([e.lockRef.current], (e.shards || []).map(Ye), !0).filter(Boolean);
1039
1039
  return u.forEach(function(h) {
1040
1040
  return h.classList.add("allow-interactivity-".concat(a));
1041
1041
  }), function() {
@@ -1058,13 +1058,13 @@ function Kn(e) {
1058
1058
  return !1;
1059
1059
  if (!o.current && "changedTouches" in u && (y || $) && (o.current = x), !x)
1060
1060
  return !0;
1061
- var L = o.current || x;
1062
- return zn(L, h, u, L === "h" ? y : $, !0);
1061
+ var I = o.current || x;
1062
+ return qn(I, h, u, I === "h" ? y : $, !0);
1063
1063
  }, []), s = m.useCallback(function(u) {
1064
1064
  var h = u;
1065
1065
  if (!(!X.length || X[X.length - 1] !== r)) {
1066
1066
  var g = "deltaY" in h ? Ge(h) : se(h), C = n.current.filter(function(x) {
1067
- return x.name === h.type && x.target === h.target && qn(x.delta, g);
1067
+ return x.name === h.type && x.target === h.target && Hn(x.delta, g);
1068
1068
  })[0];
1069
1069
  if (C && C.should) {
1070
1070
  h.cancelable && h.preventDefault();
@@ -1106,23 +1106,23 @@ function Kn(e) {
1106
1106
  return m.createElement(
1107
1107
  m.Fragment,
1108
1108
  null,
1109
- E ? m.createElement(r, { styles: Hn(a) }) : null,
1110
- f ? m.createElement(Mn, { gapMode: "margin" }) : null
1109
+ E ? m.createElement(r, { styles: Vn(a) }) : null,
1110
+ f ? m.createElement(kn, { gapMode: "margin" }) : null
1111
1111
  );
1112
1112
  }
1113
- const Xn = wn(lt, Kn);
1113
+ const Gn = xn(lt, Xn);
1114
1114
  var ht = m.forwardRef(function(e, n) {
1115
- return m.createElement(_e, k({}, e, { ref: n, sideCar: Xn }));
1115
+ return m.createElement(_e, k({}, e, { ref: n, sideCar: Gn }));
1116
1116
  });
1117
1117
  ht.classNames = _e.classNames;
1118
- var Gn = function(e) {
1118
+ var Yn = function(e) {
1119
1119
  if (typeof document > "u")
1120
1120
  return null;
1121
1121
  var n = Array.isArray(e) ? e[0] : e;
1122
1122
  return n.ownerDocument.body;
1123
1123
  }, G = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), de = {}, Ce = 0, mt = function(e) {
1124
1124
  return e && (e.host || mt(e.parentNode));
1125
- }, Yn = function(e, n) {
1125
+ }, Zn = function(e, n) {
1126
1126
  return n.map(function(t) {
1127
1127
  if (e.contains(t))
1128
1128
  return t;
@@ -1131,8 +1131,8 @@ var Gn = function(e) {
1131
1131
  }).filter(function(t) {
1132
1132
  return !!t;
1133
1133
  });
1134
- }, Zn = function(e, n, t, o) {
1135
- var a = Yn(n, Array.isArray(e) ? e : [e]);
1134
+ }, Qn = function(e, n, t, o) {
1135
+ var a = Zn(n, Array.isArray(e) ? e : [e]);
1136
1136
  de[t] || (de[t] = /* @__PURE__ */ new WeakMap());
1137
1137
  var r = de[t], i = [], c = /* @__PURE__ */ new Set(), s = new Set(a), d = function(l) {
1138
1138
  !l || c.has(l) || (c.add(l), d(l.parentNode));
@@ -1157,20 +1157,20 @@ var Gn = function(e) {
1157
1157
  G.set(l, v), r.set(l, f), v || (le.has(l) || l.removeAttribute(o), le.delete(l)), f || l.removeAttribute(t);
1158
1158
  }), Ce--, Ce || (G = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), de = {});
1159
1159
  };
1160
- }, Qn = function(e, n, t) {
1160
+ }, Jn = function(e, n, t) {
1161
1161
  t === void 0 && (t = "data-aria-hidden");
1162
- var o = Array.from(Array.isArray(e) ? e : [e]), a = Gn(e);
1163
- return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live]"))), Zn(o, a, t, "aria-hidden")) : function() {
1162
+ var o = Array.from(Array.isArray(e) ? e : [e]), a = Yn(e);
1163
+ return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live]"))), Qn(o, a, t, "aria-hidden")) : function() {
1164
1164
  return null;
1165
1165
  };
1166
1166
  };
1167
- const gt = "Dialog", [_t, wo] = Ft(gt), [Jn, M] = _t(gt), er = (e) => {
1168
- const { __scopeDialog: n, children: t, open: o, defaultOpen: a, onOpenChange: r, modal: i = !0 } = e, c = N(null), s = N(null), [d = !1, p] = Wt({
1167
+ const gt = "Dialog", [_t, wo] = jt(gt), [er, M] = _t(gt), tr = (e) => {
1168
+ const { __scopeDialog: n, children: t, open: o, defaultOpen: a, onOpenChange: r, modal: i = !0 } = e, c = N(null), s = N(null), [d = !1, p] = zt({
1169
1169
  prop: o,
1170
1170
  defaultProp: a,
1171
1171
  onChange: r
1172
1172
  });
1173
- return /* @__PURE__ */ _(Jn, {
1173
+ return /* @__PURE__ */ _(er, {
1174
1174
  scope: n,
1175
1175
  triggerRef: c,
1176
1176
  contentRef: s,
@@ -1189,8 +1189,8 @@ const gt = "Dialog", [_t, wo] = Ft(gt), [Jn, M] = _t(gt), er = (e) => {
1189
1189
  ),
1190
1190
  modal: i
1191
1191
  }, t);
1192
- }, tr = "DialogTrigger", nr = /* @__PURE__ */ S((e, n) => {
1193
- const { __scopeDialog: t, ...o } = e, a = M(tr, t), r = J(n, a.triggerRef);
1192
+ }, nr = "DialogTrigger", rr = /* @__PURE__ */ S((e, n) => {
1193
+ const { __scopeDialog: t, ...o } = e, a = M(nr, t), r = J(n, a.triggerRef);
1194
1194
  return /* @__PURE__ */ _(W.button, P({
1195
1195
  type: "button",
1196
1196
  "aria-haspopup": "dialog",
@@ -1201,30 +1201,30 @@ const gt = "Dialog", [_t, wo] = Ft(gt), [Jn, M] = _t(gt), er = (e) => {
1201
1201
  ref: r,
1202
1202
  onClick: B(e.onClick, a.onOpenToggle)
1203
1203
  }));
1204
- }), bt = "DialogPortal", [rr, $t] = _t(bt, {
1204
+ }), bt = "DialogPortal", [or, $t] = _t(bt, {
1205
1205
  forceMount: void 0
1206
- }), or = (e) => {
1206
+ }), ar = (e) => {
1207
1207
  const { __scopeDialog: n, forceMount: t, children: o, container: a } = e, r = M(bt, n);
1208
- return /* @__PURE__ */ _(rr, {
1208
+ return /* @__PURE__ */ _(or, {
1209
1209
  scope: n,
1210
1210
  forceMount: t
1211
- }, I.map(
1211
+ }, L.map(
1212
1212
  o,
1213
1213
  (i) => /* @__PURE__ */ _(ge, {
1214
1214
  present: t || r.open
1215
- }, /* @__PURE__ */ _(ln, {
1215
+ }, /* @__PURE__ */ _(dn, {
1216
1216
  asChild: !0,
1217
1217
  container: a
1218
1218
  }, i))
1219
1219
  ));
1220
- }, De = "DialogOverlay", ar = /* @__PURE__ */ S((e, n) => {
1220
+ }, De = "DialogOverlay", ir = /* @__PURE__ */ S((e, n) => {
1221
1221
  const t = $t(De, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = M(De, e.__scopeDialog);
1222
1222
  return r.modal ? /* @__PURE__ */ _(ge, {
1223
1223
  present: o || r.open
1224
- }, /* @__PURE__ */ _(ir, P({}, a, {
1224
+ }, /* @__PURE__ */ _(cr, P({}, a, {
1225
1225
  ref: n
1226
1226
  }))) : null;
1227
- }), ir = /* @__PURE__ */ S((e, n) => {
1227
+ }), cr = /* @__PURE__ */ S((e, n) => {
1228
1228
  const { __scopeDialog: t, ...o } = e, a = M(De, t);
1229
1229
  return (
1230
1230
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
@@ -1245,20 +1245,20 @@ const gt = "Dialog", [_t, wo] = Ft(gt), [Jn, M] = _t(gt), er = (e) => {
1245
1245
  }
1246
1246
  })))
1247
1247
  );
1248
- }), oe = "DialogContent", cr = /* @__PURE__ */ S((e, n) => {
1248
+ }), oe = "DialogContent", ur = /* @__PURE__ */ S((e, n) => {
1249
1249
  const t = $t(oe, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = M(oe, e.__scopeDialog);
1250
1250
  return /* @__PURE__ */ _(ge, {
1251
1251
  present: o || r.open
1252
- }, r.modal ? /* @__PURE__ */ _(ur, P({}, a, {
1252
+ }, r.modal ? /* @__PURE__ */ _(sr, P({}, a, {
1253
1253
  ref: n
1254
- })) : /* @__PURE__ */ _(sr, P({}, a, {
1254
+ })) : /* @__PURE__ */ _(lr, P({}, a, {
1255
1255
  ref: n
1256
1256
  })));
1257
- }), ur = /* @__PURE__ */ S((e, n) => {
1257
+ }), sr = /* @__PURE__ */ S((e, n) => {
1258
1258
  const t = M(oe, e.__scopeDialog), o = N(null), a = J(n, t.contentRef, o);
1259
1259
  return A(() => {
1260
1260
  const r = o.current;
1261
- if (r) return Qn(r);
1261
+ if (r) return Jn(r);
1262
1262
  }, []), /* @__PURE__ */ _(yt, P({}, e, {
1263
1263
  ref: a,
1264
1264
  trapFocus: t.open,
@@ -1276,7 +1276,7 @@ const gt = "Dialog", [_t, wo] = Ft(gt), [Jn, M] = _t(gt), er = (e) => {
1276
1276
  (r) => r.preventDefault()
1277
1277
  )
1278
1278
  }));
1279
- }), sr = /* @__PURE__ */ S((e, n) => {
1279
+ }), lr = /* @__PURE__ */ S((e, n) => {
1280
1280
  const t = M(oe, e.__scopeDialog), o = N(!1), a = N(!1);
1281
1281
  return /* @__PURE__ */ _(yt, P({}, e, {
1282
1282
  ref: n,
@@ -1299,13 +1299,13 @@ const gt = "Dialog", [_t, wo] = Ft(gt), [Jn, M] = _t(gt), er = (e) => {
1299
1299
  }));
1300
1300
  }), yt = /* @__PURE__ */ S((e, n) => {
1301
1301
  const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...i } = e, c = M(oe, t), s = N(null), d = J(n, s);
1302
- return fn(), /* @__PURE__ */ _(Ie, null, /* @__PURE__ */ _(nn, {
1302
+ return vn(), /* @__PURE__ */ _(Le, null, /* @__PURE__ */ _(rn, {
1303
1303
  asChild: !0,
1304
1304
  loop: !0,
1305
1305
  trapped: o,
1306
1306
  onMountAutoFocus: a,
1307
1307
  onUnmountAutoFocus: r
1308
- }, /* @__PURE__ */ _(Jt, P({
1308
+ }, /* @__PURE__ */ _(en, P({
1309
1309
  role: "dialog",
1310
1310
  id: c.contentId,
1311
1311
  "aria-describedby": c.descriptionId,
@@ -1315,22 +1315,22 @@ const gt = "Dialog", [_t, wo] = Ft(gt), [Jn, M] = _t(gt), er = (e) => {
1315
1315
  ref: d,
1316
1316
  onDismiss: () => c.onOpenChange(!1)
1317
1317
  }))), !1);
1318
- }), lr = "DialogTitle", dr = /* @__PURE__ */ S((e, n) => {
1319
- const { __scopeDialog: t, ...o } = e, a = M(lr, t);
1318
+ }), dr = "DialogTitle", pr = /* @__PURE__ */ S((e, n) => {
1319
+ const { __scopeDialog: t, ...o } = e, a = M(dr, t);
1320
1320
  return /* @__PURE__ */ _(W.h2, P({
1321
1321
  id: a.titleId
1322
1322
  }, o, {
1323
1323
  ref: n
1324
1324
  }));
1325
- }), pr = "DialogDescription", fr = /* @__PURE__ */ S((e, n) => {
1326
- const { __scopeDialog: t, ...o } = e, a = M(pr, t);
1325
+ }), fr = "DialogDescription", vr = /* @__PURE__ */ S((e, n) => {
1326
+ const { __scopeDialog: t, ...o } = e, a = M(fr, t);
1327
1327
  return /* @__PURE__ */ _(W.p, P({
1328
1328
  id: a.descriptionId
1329
1329
  }, o, {
1330
1330
  ref: n
1331
1331
  }));
1332
- }), vr = "DialogClose", hr = /* @__PURE__ */ S((e, n) => {
1333
- const { __scopeDialog: t, ...o } = e, a = M(vr, t);
1332
+ }), hr = "DialogClose", mr = /* @__PURE__ */ S((e, n) => {
1333
+ const { __scopeDialog: t, ...o } = e, a = M(hr, t);
1334
1334
  return /* @__PURE__ */ _(W.button, P({
1335
1335
  type: "button"
1336
1336
  }, o, {
@@ -1344,12 +1344,12 @@ const gt = "Dialog", [_t, wo] = Ft(gt), [Jn, M] = _t(gt), er = (e) => {
1344
1344
  function Me(e) {
1345
1345
  return e ? "open" : "closed";
1346
1346
  }
1347
- const mr = er, gr = nr, _r = or, br = ar, $r = cr, yr = dr, Ze = fr, Er = hr, wr = {
1347
+ const gr = tr, _r = rr, br = ar, $r = ir, yr = ur, Er = pr, Ze = vr, wr = mr, xr = {
1348
1348
  SM: "sm",
1349
1349
  MD: "md",
1350
1350
  LG: "lg"
1351
1351
  };
1352
- function xr(e) {
1352
+ function Sr(e) {
1353
1353
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1354
1354
  }
1355
1355
  var Et = { exports: {} };
@@ -1388,30 +1388,30 @@ var Et = { exports: {} };
1388
1388
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1389
1389
  })();
1390
1390
  })(Et);
1391
- var Sr = Et.exports;
1392
- const Qe = /* @__PURE__ */ xr(Sr), Cr = "_rotate_1xozj_1", Or = "_dash_1xozj_1", ee = {
1391
+ var Cr = Et.exports;
1392
+ const Qe = /* @__PURE__ */ Sr(Cr), Or = "_rotate_1xozj_1", Nr = "_dash_1xozj_1", ee = {
1393
1393
  "purpur-spinner": "_purpur-spinner_1xozj_1",
1394
- rotate: Cr,
1394
+ rotate: Or,
1395
1395
  "purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
1396
1396
  "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
1397
1397
  "purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
1398
1398
  "purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
1399
1399
  "purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
1400
1400
  "purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
1401
- dash: Or,
1401
+ dash: Nr,
1402
1402
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
1403
1403
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
1404
- }, te = "purpur-spinner", Nr = {
1404
+ }, te = "purpur-spinner", Pr = {
1405
1405
  XXS: "xxs",
1406
1406
  XS: "xs",
1407
1407
  SM: "sm",
1408
1408
  MD: "md",
1409
1409
  LG: "lg"
1410
- }, Pr = ({
1410
+ }, Ar = ({
1411
1411
  ["data-testid"]: e,
1412
1412
  disabled: n = !1,
1413
1413
  negative: t = !1,
1414
- size: o = Nr.SM,
1414
+ size: o = Pr.SM,
1415
1415
  ...a
1416
1416
  }) => /* @__PURE__ */ b(
1417
1417
  "div",
@@ -1433,7 +1433,7 @@ const Qe = /* @__PURE__ */ xr(Sr), Cr = "_rotate_1xozj_1", Or = "_dash_1xozj_1",
1433
1433
  ) })
1434
1434
  }
1435
1435
  );
1436
- function Ar(e) {
1436
+ function Tr(e) {
1437
1437
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1438
1438
  }
1439
1439
  var wt = { exports: {} };
@@ -1472,8 +1472,8 @@ var wt = { exports: {} };
1472
1472
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1473
1473
  })();
1474
1474
  })(wt);
1475
- var Tr = wt.exports;
1476
- const Dr = /* @__PURE__ */ Ar(Tr), Lr = {
1475
+ var Dr = wt.exports;
1476
+ const Ir = /* @__PURE__ */ Tr(Dr), Lr = {
1477
1477
  "purpur-button": "_purpur-button_1acxn_1",
1478
1478
  "purpur-button--sm": "_purpur-button--sm_1acxn_33",
1479
1479
  "purpur-button--icon-only": "_purpur-button--icon-only_1acxn_36",
@@ -1494,7 +1494,7 @@ const Dr = /* @__PURE__ */ Ar(Tr), Lr = {
1494
1494
  "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1acxn_160",
1495
1495
  "purpur-button--text-negative": "_purpur-button--text-negative_1acxn_175",
1496
1496
  "purpur-button--text": "_purpur-button--text_1acxn_175"
1497
- }, Ir = Dr.bind(Lr), q = "purpur-button", Rr = ({
1497
+ }, Rr = Ir.bind(Lr), q = "purpur-button", Mr = ({
1498
1498
  children: e,
1499
1499
  className: n,
1500
1500
  ["data-testid"]: t,
@@ -1511,7 +1511,7 @@ const Dr = /* @__PURE__ */ Ar(Tr), Lr = {
1511
1511
  }, f) => {
1512
1512
  if (r && p === "destructive")
1513
1513
  return null;
1514
- const E = Ir(
1514
+ const E = Rr(
1515
1515
  [
1516
1516
  q,
1517
1517
  `${q}--${c ? `${p}-negative` : p}`,
@@ -1538,15 +1538,15 @@ const Dr = /* @__PURE__ */ Ar(Tr), Lr = {
1538
1538
  onClick: u,
1539
1539
  ...v,
1540
1540
  children: [
1541
- i && /* @__PURE__ */ b(Pr, { size: d === wr.LG ? "xs" : "xxs", negative: c, disabled: h }),
1541
+ i && /* @__PURE__ */ b(Ar, { size: d === xr.LG ? "xs" : "xxs", negative: c, disabled: h }),
1542
1542
  " ",
1543
1543
  e
1544
1544
  ]
1545
1545
  }
1546
1546
  );
1547
- }, ke = S(Rr);
1547
+ }, ke = S(Mr);
1548
1548
  ke.displayName = "Button";
1549
- function Mr(e) {
1549
+ function kr(e) {
1550
1550
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1551
1551
  }
1552
1552
  var xt = { exports: {} };
@@ -1585,8 +1585,8 @@ var xt = { exports: {} };
1585
1585
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1586
1586
  })();
1587
1587
  })(xt);
1588
- var kr = xt.exports;
1589
- const Fr = /* @__PURE__ */ Mr(kr), pe = {
1588
+ var Fr = xt.exports;
1589
+ const jr = /* @__PURE__ */ kr(Fr), pe = {
1590
1590
  "purpur-heading": "_purpur-heading_k9fhq_1",
1591
1591
  "purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
1592
1592
  "purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
@@ -1602,7 +1602,7 @@ const Fr = /* @__PURE__ */ Mr(kr), pe = {
1602
1602
  "purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
1603
1603
  "purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
1604
1604
  "purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
1605
- }, jr = {
1605
+ }, Br = {
1606
1606
  TITLE100: "title-100",
1607
1607
  TITLE200: "title-200",
1608
1608
  TITLE300: "title-300",
@@ -1618,10 +1618,10 @@ const Fr = /* @__PURE__ */ Mr(kr), pe = {
1618
1618
  enableHyphenation: o = !1,
1619
1619
  negative: a = !1,
1620
1620
  tag: r,
1621
- variant: i = jr.TITLE100,
1621
+ variant: i = Br.TITLE100,
1622
1622
  ...c
1623
1623
  }) => {
1624
- const s = r, d = Fr([
1624
+ const s = r, d = jr([
1625
1625
  t,
1626
1626
  pe[fe],
1627
1627
  pe[`${fe}--${i}`],
@@ -1633,7 +1633,7 @@ const Fr = /* @__PURE__ */ Mr(kr), pe = {
1633
1633
  return /* @__PURE__ */ b(s, { ...c, className: d, "data-testid": e, children: n });
1634
1634
  };
1635
1635
  St.displayName = "Heading";
1636
- function Br(e) {
1636
+ function Ur(e) {
1637
1637
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1638
1638
  }
1639
1639
  var Ct = { exports: {} };
@@ -1672,8 +1672,8 @@ var Ct = { exports: {} };
1672
1672
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1673
1673
  })();
1674
1674
  })(Ct);
1675
- var Ur = Ct.exports;
1676
- const Wr = /* @__PURE__ */ Br(Ur), zr = {
1675
+ var Wr = Ct.exports;
1676
+ const zr = /* @__PURE__ */ Ur(Wr), qr = {
1677
1677
  "purpur-icon": "_purpur-icon_8u1lq_1",
1678
1678
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
1679
1679
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -1681,39 +1681,39 @@ const Wr = /* @__PURE__ */ Br(Ur), zr = {
1681
1681
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
1682
1682
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
1683
1683
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
1684
- }, qr = {
1684
+ }, Hr = {
1685
1685
  name: "close",
1686
1686
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
1687
1687
  keywords: ["close"],
1688
1688
  category: "utility"
1689
1689
  }, Ot = (e) => /* @__PURE__ */ b(
1690
- Yr,
1690
+ Nt,
1691
1691
  {
1692
1692
  ...e,
1693
- svg: qr
1693
+ svg: Hr
1694
1694
  }
1695
1695
  );
1696
1696
  Ot.displayName = "IconClose";
1697
- const Hr = Wr.bind(zr), Je = "purpur-icon", Vr = "md", Kr = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Xr = ({ content: e = "", title: n } = {}) => {
1697
+ const Vr = zr.bind(qr), Je = "purpur-icon", Kr = "md", Xr = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Gr = ({ content: e = "", title: n } = {}) => {
1698
1698
  const t = [
1699
1699
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
1700
1700
  { name: "fill", value: "currentColor" },
1701
1701
  { name: "viewBox", value: "0 0 24 24" },
1702
1702
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
1703
1703
  ], o = n ? `<title>${n}</title>` : "";
1704
- return `<svg ${Kr(t)}>${o}${e}</svg>`;
1705
- }, Gr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yr = ({
1704
+ return `<svg ${Xr(t)}>${o}${e}</svg>`;
1705
+ }, Yr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Nt = ({
1706
1706
  ["data-testid"]: e,
1707
1707
  svg: n,
1708
1708
  allyTitle: t,
1709
1709
  className: o,
1710
- size: a = Vr,
1710
+ size: a = Kr,
1711
1711
  ...r
1712
1712
  }) => {
1713
- const i = Xr({
1714
- content: Gr(n.svg),
1713
+ const i = Gr({
1714
+ content: Yr(n.svg),
1715
1715
  title: t
1716
- }), c = Hr(o, Je, `${Je}--${a}`);
1716
+ }), c = Vr(o, Je, `${Je}--${a}`);
1717
1717
  return /* @__PURE__ */ b(
1718
1718
  "span",
1719
1719
  {
@@ -1725,10 +1725,11 @@ const Hr = Wr.bind(zr), Je = "purpur-icon", Vr = "md", Kr = (e) => e.filter((n)
1725
1725
  }
1726
1726
  );
1727
1727
  };
1728
+ Nt.displayName = "Icon";
1728
1729
  function Zr(e) {
1729
1730
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1730
1731
  }
1731
- var Nt = { exports: {} };
1732
+ var Pt = { exports: {} };
1732
1733
  /*!
1733
1734
  Copyright (c) 2018 Jed Watson.
1734
1735
  Licensed under the MIT License (MIT), see
@@ -1763,8 +1764,8 @@ var Nt = { exports: {} };
1763
1764
  }
1764
1765
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1765
1766
  })();
1766
- })(Nt);
1767
- var Qr = Nt.exports;
1767
+ })(Pt);
1768
+ var Qr = Pt.exports;
1768
1769
  const Jr = /* @__PURE__ */ Zr(Qr), ne = {
1769
1770
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
1770
1771
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
@@ -1791,7 +1792,7 @@ const Jr = /* @__PURE__ */ Zr(Qr), ne = {
1791
1792
  ADDITIONAL100MEDIUM: "additional-100-medium",
1792
1793
  OVERLINE100: "overline-100",
1793
1794
  OVERLINE200: "overline-200"
1794
- }, re = "purpur-paragraph", Pt = ({
1795
+ }, re = "purpur-paragraph", At = ({
1795
1796
  ["data-testid"]: e,
1796
1797
  children: n,
1797
1798
  className: t,
@@ -1813,7 +1814,7 @@ const Jr = /* @__PURE__ */ Zr(Qr), ne = {
1813
1814
  ]);
1814
1815
  return /* @__PURE__ */ b("p", { ...c, className: s, "data-testid": e, children: n });
1815
1816
  };
1816
- Pt.displayName = "Paragraph";
1817
+ At.displayName = "Paragraph";
1817
1818
  function Z() {
1818
1819
  return Z = Object.assign ? Object.assign.bind() : function(e) {
1819
1820
  for (var n = 1; n < arguments.length; n++) {
@@ -1831,28 +1832,28 @@ function no(...e) {
1831
1832
  (t) => to(t, n)
1832
1833
  );
1833
1834
  }
1834
- const At = /* @__PURE__ */ S((e, n) => {
1835
- const { children: t, ...o } = e, a = I.toArray(t), r = a.find(oo);
1835
+ const Tt = /* @__PURE__ */ S((e, n) => {
1836
+ const { children: t, ...o } = e, a = L.toArray(t), r = a.find(oo);
1836
1837
  if (r) {
1837
- const i = r.props.children, c = a.map((s) => s === r ? I.count(i) > 1 ? I.only(null) : /* @__PURE__ */ U(i) ? i.props.children : null : s);
1838
- return /* @__PURE__ */ _(Le, Z({}, o, {
1838
+ const i = r.props.children, c = a.map((s) => s === r ? L.count(i) > 1 ? L.only(null) : /* @__PURE__ */ U(i) ? i.props.children : null : s);
1839
+ return /* @__PURE__ */ _(Ie, Z({}, o, {
1839
1840
  ref: n
1840
1841
  }), /* @__PURE__ */ U(i) ? /* @__PURE__ */ ae(i, void 0, c) : null);
1841
1842
  }
1842
- return /* @__PURE__ */ _(Le, Z({}, o, {
1843
+ return /* @__PURE__ */ _(Ie, Z({}, o, {
1843
1844
  ref: n
1844
1845
  }), t);
1845
1846
  });
1846
- At.displayName = "Slot";
1847
- const Le = /* @__PURE__ */ S((e, n) => {
1847
+ Tt.displayName = "Slot";
1848
+ const Ie = /* @__PURE__ */ S((e, n) => {
1848
1849
  const { children: t, ...o } = e;
1849
1850
  return /* @__PURE__ */ U(t) ? /* @__PURE__ */ ae(t, {
1850
1851
  ...ao(o, t.props),
1851
1852
  ref: n ? no(n, t.ref) : t.ref
1852
- }) : I.count(t) > 1 ? I.only(null) : null;
1853
+ }) : L.count(t) > 1 ? L.only(null) : null;
1853
1854
  });
1854
- Le.displayName = "SlotClone";
1855
- const ro = ({ children: e }) => /* @__PURE__ */ _(Ie, null, e);
1855
+ Ie.displayName = "SlotClone";
1856
+ const ro = ({ children: e }) => /* @__PURE__ */ _(Le, null, e);
1856
1857
  function oo(e) {
1857
1858
  return /* @__PURE__ */ U(e) && e.type === ro;
1858
1859
  }
@@ -1896,7 +1897,7 @@ const io = [
1896
1897
  "ul"
1897
1898
  ], co = io.reduce((e, n) => {
1898
1899
  const t = /* @__PURE__ */ S((o, a) => {
1899
- const { asChild: r, ...i } = o, c = r ? At : n;
1900
+ const { asChild: r, ...i } = o, c = r ? Tt : n;
1900
1901
  return A(() => {
1901
1902
  window[Symbol.for("radix-ui")] = !0;
1902
1903
  }, []), /* @__PURE__ */ _(c, Z({}, i, {
@@ -1932,7 +1933,7 @@ const io = [
1932
1933
  function po(e) {
1933
1934
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1934
1935
  }
1935
- var Tt = { exports: {} };
1936
+ var Dt = { exports: {} };
1936
1937
  /*!
1937
1938
  Copyright (c) 2018 Jed Watson.
1938
1939
  Licensed under the MIT License (MIT), see
@@ -1967,8 +1968,8 @@ var Tt = { exports: {} };
1967
1968
  }
1968
1969
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1969
1970
  })();
1970
- })(Tt);
1971
- var fo = Tt.exports;
1971
+ })(Dt);
1972
+ var fo = Dt.exports;
1972
1973
  const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1ifm3_1", mo = {
1973
1974
  "purpur-modal-content": "_purpur-modal-content_1ifm3_1",
1974
1975
  fadeIn: ho,
@@ -2015,22 +2016,22 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1ifm3_1", mo = {
2015
2016
  o
2016
2017
  ]), D = (R) => e ? `${e} ${R}` : void 0, w = (R) => {
2017
2018
  r && R.preventDefault();
2018
- }, L = Q(() => {
2019
+ }, I = Q(() => {
2019
2020
  if (!$.current || !x.current)
2020
2021
  return;
2021
- const R = window.getComputedStyle($.current, null), Dt = parseFloat(R.getPropertyValue("height")), Lt = x.current.offsetHeight;
2022
- y(Dt < Lt);
2022
+ const R = window.getComputedStyle($.current, null), It = parseFloat(R.getPropertyValue("height")), Lt = x.current.offsetHeight;
2023
+ y(It < Lt);
2023
2024
  }, []), ie = (R) => {
2024
2025
  r && !h && R.preventDefault();
2025
2026
  };
2026
- return A(() => (window.addEventListener("resize", L), () => {
2027
- window.removeEventListener("resize", L);
2028
- }), [L]), A(() => {
2029
- L();
2030
- }, [l, t, L]), /* @__PURE__ */ j(_r, { children: [
2031
- /* @__PURE__ */ b(br, { className: T(`${O}__overlay`), style: { zIndex: v } }),
2027
+ return A(() => (window.addEventListener("resize", I), () => {
2028
+ window.removeEventListener("resize", I);
2029
+ }), [I]), A(() => {
2030
+ I();
2031
+ }, [l, t, I]), /* @__PURE__ */ j(br, { children: [
2032
+ /* @__PURE__ */ b($r, { className: T(`${O}__overlay`), style: { zIndex: v } }),
2032
2033
  /* @__PURE__ */ j(
2033
- $r,
2034
+ yr,
2034
2035
  {
2035
2036
  ...g,
2036
2037
  className: z,
@@ -2038,7 +2039,7 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1ifm3_1", mo = {
2038
2039
  ref: E,
2039
2040
  ...!a && { "aria-describedby": void 0 },
2040
2041
  onPointerDownOutside: w,
2041
- onOpenAutoFocus: L,
2042
+ onOpenAutoFocus: I,
2042
2043
  onEscapeKeyDown: ie,
2043
2044
  style: { zIndex: `calc(${v} + 1)` },
2044
2045
  children: [
@@ -2061,7 +2062,7 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1ifm3_1", mo = {
2061
2062
  }
2062
2063
  ),
2063
2064
  /* @__PURE__ */ b(
2064
- yr,
2065
+ Er,
2065
2066
  {
2066
2067
  asChild: !0,
2067
2068
  className: T(`${O}__title`),
@@ -2086,7 +2087,7 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1ifm3_1", mo = {
2086
2087
  asChild: !0,
2087
2088
  className: T(`${O}__description`),
2088
2089
  "data-testid": D("description"),
2089
- children: /* @__PURE__ */ b(Pt, { variant: "paragraph-100", children: a })
2090
+ children: /* @__PURE__ */ b(At, { variant: "paragraph-100", children: a })
2090
2091
  }
2091
2092
  ),
2092
2093
  /* @__PURE__ */ b("div", { children: t }),
@@ -2118,7 +2119,7 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1ifm3_1", mo = {
2118
2119
  allyLabel: e,
2119
2120
  hasImage: n,
2120
2121
  ["data-testid"]: t
2121
- }) => /* @__PURE__ */ b(Er, { asChild: !0, children: /* @__PURE__ */ b(
2122
+ }) => /* @__PURE__ */ b(wr, { asChild: !0, children: /* @__PURE__ */ b(
2122
2123
  ke,
2123
2124
  {
2124
2125
  variant: n ? "primary" : "tertiary-purple",
@@ -2158,7 +2159,7 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1ifm3_1", mo = {
2158
2159
  ] }) : null;
2159
2160
  }, bo = S(
2160
2161
  ({ ["data-testid"]: e, children: n, className: t, ...o }, a) => /* @__PURE__ */ b(
2161
- gr,
2162
+ _r,
2162
2163
  {
2163
2164
  asChild: !0,
2164
2165
  ref: a,
@@ -2173,7 +2174,7 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1ifm3_1", mo = {
2173
2174
  children: n,
2174
2175
  open: t,
2175
2176
  onOpenChange: o
2176
- }) => /* @__PURE__ */ b(mr, { open: t, onOpenChange: o, "data-testid": e, children: n });
2177
+ }) => /* @__PURE__ */ b(gr, { open: t, onOpenChange: o, "data-testid": e, children: n });
2177
2178
  Fe.Trigger = bo;
2178
2179
  Fe.Content = go;
2179
2180
  Fe.displayName = "Modal";