@purpurds/modal 4.4.0 → 4.5.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,6 +1,6 @@
1
1
  import { jsxs as j, jsx as _ } from "react/jsx-runtime";
2
- import * as g from "react";
3
- import { useCallback as Q, createContext as xe, useMemo as ge, createElement as m, useContext as tt, useLayoutEffect as Tt, useRef as O, useEffect as A, useState as V, forwardRef as C, Children as M, isValidElement as W, cloneElement as re, Fragment as Ie, useReducer as Dt } from "react";
2
+ import * as m from "react";
3
+ import { useCallback as Q, createContext as xe, useMemo as me, createElement as g, useContext as tt, useLayoutEffect as Tt, useRef as O, useEffect as A, useState as G, forwardRef as C, Children as M, isValidElement as q, cloneElement as re, Fragment as Ie, useReducer as Dt } from "react";
4
4
  import It, { flushSync as nt } from "react-dom";
5
5
  function P() {
6
6
  return P = Object.assign ? Object.assign.bind() : function(e) {
@@ -38,11 +38,11 @@ function Mt(e, n = []) {
38
38
  i
39
39
  ];
40
40
  function d(l) {
41
- const { scope: h, children: f, ...E } = l, c = (h == null ? void 0 : h[e][s]) || u, v = ge(
41
+ const { scope: h, children: f, ...E } = l, c = (h == null ? void 0 : h[e][s]) || u, v = me(
42
42
  () => E,
43
43
  Object.values(E)
44
44
  );
45
- return /* @__PURE__ */ m(c.Provider, {
45
+ return /* @__PURE__ */ g(c.Provider, {
46
46
  value: v
47
47
  }, f);
48
48
  }
@@ -63,7 +63,7 @@ function Mt(e, n = []) {
63
63
  const r = t.map((i) => /* @__PURE__ */ xe(i));
64
64
  return function(u) {
65
65
  const s = (u == null ? void 0 : u[e]) || r;
66
- return ge(
66
+ return me(
67
67
  () => ({
68
68
  [`__scope${e}`]: {
69
69
  ...u,
@@ -101,7 +101,7 @@ function Lt(...e) {
101
101
  ...l
102
102
  };
103
103
  }, {});
104
- return ge(
104
+ return me(
105
105
  () => ({
106
106
  [`__scope${n.scopeName}`]: i
107
107
  }),
@@ -114,24 +114,24 @@ function Lt(...e) {
114
114
  return t.scopeName = n.scopeName, t;
115
115
  }
116
116
  const Oe = globalThis != null && globalThis.document ? Tt : () => {
117
- }, Ft = g.useId || (() => {
117
+ }, kt = m.useId || (() => {
118
118
  });
119
- let kt = 0;
119
+ let Ft = 0;
120
120
  function be(e) {
121
- const [n, t] = g.useState(Ft());
121
+ const [n, t] = m.useState(kt());
122
122
  return Oe(() => {
123
123
  e || t(
124
- (o) => o ?? String(kt++)
124
+ (o) => o ?? String(Ft++)
125
125
  );
126
126
  }, [
127
127
  e
128
128
  ]), e || (n ? `radix-${n}` : "");
129
129
  }
130
- function G(e) {
130
+ function K(e) {
131
131
  const n = O(e);
132
132
  return A(() => {
133
133
  n.current = e;
134
- }), ge(
134
+ }), me(
135
135
  () => (...t) => {
136
136
  var o;
137
137
  return (o = n.current) === null || o === void 0 ? void 0 : o.call(n, ...t);
@@ -144,7 +144,7 @@ function jt({ prop: e, defaultProp: n, onChange: t = () => {
144
144
  const [o, a] = Bt({
145
145
  defaultProp: n,
146
146
  onChange: t
147
- }), r = e !== void 0, i = r ? e : o, u = G(t), s = Q((d) => {
147
+ }), r = e !== void 0, i = r ? e : o, u = K(t), s = Q((d) => {
148
148
  if (r) {
149
149
  const l = typeof d == "function" ? d(e) : d;
150
150
  l !== e && u(l);
@@ -162,7 +162,7 @@ function jt({ prop: e, defaultProp: n, onChange: t = () => {
162
162
  ];
163
163
  }
164
164
  function Bt({ defaultProp: e, onChange: n }) {
165
- const t = V(e), [o] = t, a = O(o), r = G(n);
165
+ const t = G(e), [o] = t, a = O(o), r = K(n);
166
166
  return A(() => {
167
167
  a.current !== o && (r(o), a.current = o);
168
168
  }, [
@@ -172,31 +172,31 @@ function Bt({ defaultProp: e, onChange: n }) {
172
172
  ]), t;
173
173
  }
174
174
  const Re = /* @__PURE__ */ C((e, n) => {
175
- const { children: t, ...o } = e, a = M.toArray(t), r = a.find(Ut);
175
+ const { children: t, ...o } = e, a = M.toArray(t), r = a.find(Wt);
176
176
  if (r) {
177
- const i = r.props.children, u = a.map((s) => s === r ? M.count(i) > 1 ? M.only(null) : /* @__PURE__ */ W(i) ? i.props.children : null : s);
178
- return /* @__PURE__ */ m(Pe, P({}, o, {
177
+ const i = r.props.children, u = a.map((s) => s === r ? M.count(i) > 1 ? M.only(null) : /* @__PURE__ */ q(i) ? i.props.children : null : s);
178
+ return /* @__PURE__ */ g(Pe, P({}, o, {
179
179
  ref: n
180
- }), /* @__PURE__ */ W(i) ? /* @__PURE__ */ re(i, void 0, u) : null);
180
+ }), /* @__PURE__ */ q(i) ? /* @__PURE__ */ re(i, void 0, u) : null);
181
181
  }
182
- return /* @__PURE__ */ m(Pe, P({}, o, {
182
+ return /* @__PURE__ */ g(Pe, P({}, o, {
183
183
  ref: n
184
184
  }), t);
185
185
  });
186
186
  Re.displayName = "Slot";
187
187
  const Pe = /* @__PURE__ */ C((e, n) => {
188
188
  const { children: t, ...o } = e;
189
- return /* @__PURE__ */ W(t) ? /* @__PURE__ */ re(t, {
190
- ...zt(o, t.props),
189
+ return /* @__PURE__ */ q(t) ? /* @__PURE__ */ re(t, {
190
+ ...Ut(o, t.props),
191
191
  ref: n ? rt(n, t.ref) : t.ref
192
192
  }) : M.count(t) > 1 ? M.only(null) : null;
193
193
  });
194
194
  Pe.displayName = "SlotClone";
195
- const Wt = ({ children: e }) => /* @__PURE__ */ m(Ie, null, e);
196
- function Ut(e) {
197
- return /* @__PURE__ */ W(e) && e.type === Wt;
195
+ const qt = ({ children: e }) => /* @__PURE__ */ g(Ie, null, e);
196
+ function Wt(e) {
197
+ return /* @__PURE__ */ q(e) && e.type === qt;
198
198
  }
199
- function zt(e, n) {
199
+ function Ut(e, n) {
200
200
  const t = {
201
201
  ...n
202
202
  };
@@ -217,7 +217,7 @@ function zt(e, n) {
217
217
  ...t
218
218
  };
219
219
  }
220
- const qt = [
220
+ const Ht = [
221
221
  "a",
222
222
  "button",
223
223
  "div",
@@ -234,12 +234,12 @@ const qt = [
234
234
  "span",
235
235
  "svg",
236
236
  "ul"
237
- ], U = qt.reduce((e, n) => {
237
+ ], W = Ht.reduce((e, n) => {
238
238
  const t = /* @__PURE__ */ C((o, a) => {
239
239
  const { asChild: r, ...i } = o, u = r ? Re : n;
240
240
  return A(() => {
241
241
  window[Symbol.for("radix-ui")] = !0;
242
- }, []), /* @__PURE__ */ m(u, P({}, i, {
242
+ }, []), /* @__PURE__ */ g(u, P({}, i, {
243
243
  ref: a
244
244
  }));
245
245
  });
@@ -248,13 +248,13 @@ const qt = [
248
248
  [n]: t
249
249
  };
250
250
  }, {});
251
- function Ht(e, n) {
251
+ function Vt(e, n) {
252
252
  e && nt(
253
253
  () => e.dispatchEvent(n)
254
254
  );
255
255
  }
256
- function Vt(e, n = globalThis == null ? void 0 : globalThis.document) {
257
- const t = G(e);
256
+ function Gt(e, n = globalThis == null ? void 0 : globalThis.document) {
257
+ const t = K(e);
258
258
  A(() => {
259
259
  const o = (a) => {
260
260
  a.key === "Escape" && t(a);
@@ -265,20 +265,20 @@ function Vt(e, n = globalThis == null ? void 0 : globalThis.document) {
265
265
  n
266
266
  ]);
267
267
  }
268
- const Ne = "dismissableLayer.update", Gt = "dismissableLayer.pointerDownOutside", Kt = "dismissableLayer.focusOutside";
269
- let ke;
268
+ const Ne = "dismissableLayer.update", Kt = "dismissableLayer.pointerDownOutside", zt = "dismissableLayer.focusOutside";
269
+ let Fe;
270
270
  const Xt = /* @__PURE__ */ xe({
271
271
  layers: /* @__PURE__ */ new Set(),
272
272
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
273
273
  branches: /* @__PURE__ */ new Set()
274
274
  }), Yt = /* @__PURE__ */ C((e, n) => {
275
275
  var t;
276
- const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: a, onPointerDownOutside: r, onFocusOutside: i, onInteractOutside: u, onDismiss: s, ...d } = e, p = tt(Xt), [l, h] = V(null), f = (t = l == null ? void 0 : l.ownerDocument) !== null && t !== void 0 ? t : globalThis == null ? void 0 : globalThis.document, [, E] = V({}), c = J(
276
+ const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: a, onPointerDownOutside: r, onFocusOutside: i, onInteractOutside: u, onDismiss: s, ...d } = e, p = tt(Xt), [l, h] = G(null), f = (t = l == null ? void 0 : l.ownerDocument) !== null && t !== void 0 ? t : globalThis == null ? void 0 : globalThis.document, [, E] = G({}), c = J(
277
277
  n,
278
278
  (w) => h(w)
279
279
  ), v = Array.from(p.layers), [b] = [
280
280
  ...p.layersWithOutsidePointerEventsDisabled
281
- ].slice(-1), x = v.indexOf(b), $ = l ? v.indexOf(l) : -1, y = p.layersWithOutsidePointerEventsDisabled.size > 0, S = $ >= x, z = Zt((w) => {
281
+ ].slice(-1), x = v.indexOf(b), y = l ? v.indexOf(l) : -1, $ = p.layersWithOutsidePointerEventsDisabled.size > 0, S = y >= x, U = Zt((w) => {
282
282
  const I = w.target, oe = [
283
283
  ...p.branches
284
284
  ].some(
@@ -293,12 +293,12 @@ const Xt = /* @__PURE__ */ xe({
293
293
  (R) => R.contains(I)
294
294
  ) || (i == null || i(w), u == null || u(w), w.defaultPrevented || s == null || s());
295
295
  }, f);
296
- return Vt((w) => {
297
- $ === p.layers.size - 1 && (a == null || a(w), !w.defaultPrevented && s && (w.preventDefault(), s()));
296
+ return Gt((w) => {
297
+ y === p.layers.size - 1 && (a == null || a(w), !w.defaultPrevented && s && (w.preventDefault(), s()));
298
298
  }, f), A(() => {
299
299
  if (l)
300
- return o && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (ke = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), p.layersWithOutsidePointerEventsDisabled.add(l)), p.layers.add(l), je(), () => {
301
- o && p.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = ke);
300
+ return o && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (Fe = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), p.layersWithOutsidePointerEventsDisabled.add(l)), p.layers.add(l), je(), () => {
301
+ o && p.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = Fe);
302
302
  };
303
303
  }, [
304
304
  l,
@@ -313,25 +313,25 @@ const Xt = /* @__PURE__ */ xe({
313
313
  ]), A(() => {
314
314
  const w = () => E({});
315
315
  return document.addEventListener(Ne, w), () => document.removeEventListener(Ne, w);
316
- }, []), /* @__PURE__ */ m(U.div, P({}, d, {
316
+ }, []), /* @__PURE__ */ g(W.div, P({}, d, {
317
317
  ref: c,
318
318
  style: {
319
- pointerEvents: y ? S ? "auto" : "none" : void 0,
319
+ pointerEvents: $ ? S ? "auto" : "none" : void 0,
320
320
  ...e.style
321
321
  },
322
322
  onFocusCapture: B(e.onFocusCapture, T.onFocusCapture),
323
323
  onBlurCapture: B(e.onBlurCapture, T.onBlurCapture),
324
- onPointerDownCapture: B(e.onPointerDownCapture, z.onPointerDownCapture)
324
+ onPointerDownCapture: B(e.onPointerDownCapture, U.onPointerDownCapture)
325
325
  }));
326
326
  });
327
327
  function Zt(e, n = globalThis == null ? void 0 : globalThis.document) {
328
- const t = G(e), o = O(!1), a = O(() => {
328
+ const t = K(e), o = O(!1), a = O(() => {
329
329
  });
330
330
  return A(() => {
331
331
  const r = (u) => {
332
332
  if (u.target && !o.current) {
333
333
  let d = function() {
334
- ot(Gt, t, s, {
334
+ ot(Kt, t, s, {
335
335
  discrete: !0
336
336
  });
337
337
  };
@@ -359,10 +359,10 @@ function Zt(e, n = globalThis == null ? void 0 : globalThis.document) {
359
359
  };
360
360
  }
361
361
  function Qt(e, n = globalThis == null ? void 0 : globalThis.document) {
362
- const t = G(e), o = O(!1);
362
+ const t = K(e), o = O(!1);
363
363
  return A(() => {
364
364
  const a = (r) => {
365
- r.target && !o.current && ot(Kt, t, {
365
+ r.target && !o.current && ot(zt, t, {
366
366
  originalEvent: r
367
367
  }, {
368
368
  discrete: !1
@@ -389,13 +389,13 @@ function ot(e, n, t, { discrete: o }) {
389
389
  });
390
390
  n && a.addEventListener(e, n, {
391
391
  once: !0
392
- }), o ? Ht(a, r) : a.dispatchEvent(r);
392
+ }), o ? Vt(a, r) : a.dispatchEvent(r);
393
393
  }
394
- const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount", Be = {
394
+ const ye = "focusScope.autoFocusOnMount", $e = "focusScope.autoFocusOnUnmount", Be = {
395
395
  bubbles: !1,
396
396
  cancelable: !0
397
397
  }, Jt = /* @__PURE__ */ C((e, n) => {
398
- const { loop: t = !1, trapped: o = !1, onMountAutoFocus: a, onUnmountAutoFocus: r, ...i } = e, [u, s] = V(null), d = G(a), p = G(r), l = O(null), h = J(
398
+ const { loop: t = !1, trapped: o = !1, onMountAutoFocus: a, onUnmountAutoFocus: r, ...i } = e, [u, s] = G(null), d = K(a), p = K(r), l = O(null), h = J(
399
399
  n,
400
400
  (c) => s(c)
401
401
  ), f = O({
@@ -409,24 +409,24 @@ const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount",
409
409
  }).current;
410
410
  A(() => {
411
411
  if (o) {
412
- let c = function($) {
412
+ let c = function(y) {
413
413
  if (f.paused || !u)
414
414
  return;
415
- const y = $.target;
416
- u.contains(y) ? l.current = y : k(l.current, {
415
+ const $ = y.target;
416
+ u.contains($) ? l.current = $ : F(l.current, {
417
417
  select: !0
418
418
  });
419
- }, v = function($) {
419
+ }, v = function(y) {
420
420
  if (f.paused || !u)
421
421
  return;
422
- const y = $.relatedTarget;
423
- y !== null && (u.contains(y) || k(l.current, {
422
+ const $ = y.relatedTarget;
423
+ $ !== null && (u.contains($) || F(l.current, {
424
424
  select: !0
425
425
  }));
426
- }, b = function($) {
426
+ }, b = function(y) {
427
427
  if (document.activeElement === document.body)
428
- for (const S of $)
429
- S.removedNodes.length > 0 && k(u);
428
+ for (const S of y)
429
+ S.removedNodes.length > 0 && F(u);
430
430
  };
431
431
  document.addEventListener("focusin", c), document.addEventListener("focusout", v);
432
432
  const x = new MutationObserver(b);
@@ -443,20 +443,20 @@ const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount",
443
443
  f.paused
444
444
  ]), A(() => {
445
445
  if (u) {
446
- Ue.add(f);
446
+ We.add(f);
447
447
  const c = document.activeElement;
448
448
  if (!u.contains(c)) {
449
- const b = new CustomEvent($e, Be);
450
- u.addEventListener($e, d), u.dispatchEvent(b), b.defaultPrevented || (en(an(at(u)), {
449
+ const b = new CustomEvent(ye, Be);
450
+ u.addEventListener(ye, d), u.dispatchEvent(b), b.defaultPrevented || (en(an(at(u)), {
451
451
  select: !0
452
- }), document.activeElement === c && k(u));
452
+ }), document.activeElement === c && F(u));
453
453
  }
454
454
  return () => {
455
- u.removeEventListener($e, d), setTimeout(() => {
456
- const b = new CustomEvent(ye, Be);
457
- u.addEventListener(ye, p), u.dispatchEvent(b), b.defaultPrevented || k(c ?? document.body, {
455
+ u.removeEventListener(ye, d), setTimeout(() => {
456
+ const b = new CustomEvent($e, Be);
457
+ u.addEventListener($e, p), u.dispatchEvent(b), b.defaultPrevented || F(c ?? document.body, {
458
458
  select: !0
459
- }), u.removeEventListener(ye, p), Ue.remove(f);
459
+ }), u.removeEventListener($e, p), We.remove(f);
460
460
  }, 0);
461
461
  };
462
462
  }
@@ -471,10 +471,10 @@ const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount",
471
471
  return;
472
472
  const v = c.key === "Tab" && !c.altKey && !c.ctrlKey && !c.metaKey, b = document.activeElement;
473
473
  if (v && b) {
474
- const x = c.currentTarget, [$, y] = tn(x);
475
- $ && y ? !c.shiftKey && b === y ? (c.preventDefault(), t && k($, {
474
+ const x = c.currentTarget, [y, $] = tn(x);
475
+ y && $ ? !c.shiftKey && b === $ ? (c.preventDefault(), t && F(y, {
476
476
  select: !0
477
- })) : c.shiftKey && b === $ && (c.preventDefault(), t && k(y, {
477
+ })) : c.shiftKey && b === y && (c.preventDefault(), t && F($, {
478
478
  select: !0
479
479
  })) : b === x && c.preventDefault();
480
480
  }
@@ -483,7 +483,7 @@ const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount",
483
483
  o,
484
484
  f.paused
485
485
  ]);
486
- return /* @__PURE__ */ m(U.div, P({
486
+ return /* @__PURE__ */ g(W.div, P({
487
487
  tabIndex: -1
488
488
  }, i, {
489
489
  ref: h,
@@ -493,13 +493,13 @@ const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount",
493
493
  function en(e, { select: n = !1 } = {}) {
494
494
  const t = document.activeElement;
495
495
  for (const o of e)
496
- if (k(o, {
496
+ if (F(o, {
497
497
  select: n
498
498
  }), document.activeElement !== t)
499
499
  return;
500
500
  }
501
501
  function tn(e) {
502
- const n = at(e), t = We(n, e), o = We(n.reverse(), e);
502
+ const n = at(e), t = qe(n, e), o = qe(n.reverse(), e);
503
503
  return [
504
504
  t,
505
505
  o
@@ -516,7 +516,7 @@ function at(e) {
516
516
  n.push(t.currentNode);
517
517
  return n;
518
518
  }
519
- function We(e, n) {
519
+ function qe(e, n) {
520
520
  for (const t of e)
521
521
  if (!nn(t, {
522
522
  upTo: n
@@ -538,7 +538,7 @@ function nn(e, { upTo: n }) {
538
538
  function rn(e) {
539
539
  return e instanceof HTMLInputElement && "select" in e;
540
540
  }
541
- function k(e, { select: n = !1 } = {}) {
541
+ function F(e, { select: n = !1 } = {}) {
542
542
  if (e && e.focus) {
543
543
  const t = document.activeElement;
544
544
  e.focus({
@@ -546,21 +546,21 @@ function k(e, { select: n = !1 } = {}) {
546
546
  }), e !== t && rn(e) && n && e.select();
547
547
  }
548
548
  }
549
- const Ue = on();
549
+ const We = on();
550
550
  function on() {
551
551
  let e = [];
552
552
  return {
553
553
  add(n) {
554
554
  const t = e[0];
555
- n !== t && (t == null || t.pause()), e = ze(e, n), e.unshift(n);
555
+ n !== t && (t == null || t.pause()), e = Ue(e, n), e.unshift(n);
556
556
  },
557
557
  remove(n) {
558
558
  var t;
559
- e = ze(e, n), (t = e[0]) === null || t === void 0 || t.resume();
559
+ e = Ue(e, n), (t = e[0]) === null || t === void 0 || t.resume();
560
560
  }
561
561
  };
562
562
  }
563
- function ze(e, n) {
563
+ function Ue(e, n) {
564
564
  const t = [
565
565
  ...e
566
566
  ], o = t.indexOf(n);
@@ -574,7 +574,7 @@ function an(e) {
574
574
  const un = /* @__PURE__ */ C((e, n) => {
575
575
  var t;
576
576
  const { container: o = globalThis == null || (t = globalThis.document) === null || t === void 0 ? void 0 : t.body, ...a } = e;
577
- return o ? /* @__PURE__ */ It.createPortal(/* @__PURE__ */ m(U.div, P({}, a, {
577
+ return o ? /* @__PURE__ */ It.createPortal(/* @__PURE__ */ g(W.div, P({}, a, {
578
578
  ref: n
579
579
  })), o) : null;
580
580
  });
@@ -584,7 +584,7 @@ function cn(e, n) {
584
584
  return a ?? t;
585
585
  }, e);
586
586
  }
587
- const me = (e) => {
587
+ const ge = (e) => {
588
588
  const { present: n, children: t } = e, o = sn(n), a = typeof t == "function" ? t({
589
589
  present: o.isPresent
590
590
  }) : M.only(t), r = J(o.ref, a.ref);
@@ -592,9 +592,9 @@ const me = (e) => {
592
592
  ref: r
593
593
  }) : null;
594
594
  };
595
- me.displayName = "Presence";
595
+ ge.displayName = "Presence";
596
596
  function sn(e) {
597
- const [n, t] = V(), o = O({}), a = O(e), r = O("none"), i = e ? "mounted" : "unmounted", [u, s] = cn(i, {
597
+ const [n, t] = G(), o = O({}), a = O(e), r = O("none"), i = e ? "mounted" : "unmounted", [u, s] = cn(i, {
598
598
  mounted: {
599
599
  UNMOUNT: "unmounted",
600
600
  ANIMATION_OUT: "unmountSuspended"
@@ -657,26 +657,26 @@ function ln() {
657
657
  A(() => {
658
658
  var e, n;
659
659
  const t = document.querySelectorAll("[data-radix-focus-guard]");
660
- return document.body.insertAdjacentElement("afterbegin", (e = t[0]) !== null && e !== void 0 ? e : qe()), document.body.insertAdjacentElement("beforeend", (n = t[1]) !== null && n !== void 0 ? n : qe()), Ee++, () => {
660
+ return document.body.insertAdjacentElement("afterbegin", (e = t[0]) !== null && e !== void 0 ? e : He()), document.body.insertAdjacentElement("beforeend", (n = t[1]) !== null && n !== void 0 ? n : He()), Ee++, () => {
661
661
  Ee === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach(
662
662
  (o) => o.remove()
663
663
  ), Ee--;
664
664
  };
665
665
  }, []);
666
666
  }
667
- function qe() {
667
+ function He() {
668
668
  const e = document.createElement("span");
669
669
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
670
670
  }
671
- var F = function() {
672
- return F = Object.assign || function(n) {
671
+ var k = function() {
672
+ return k = Object.assign || function(n) {
673
673
  for (var t, o = 1, a = arguments.length; o < a; o++) {
674
674
  t = arguments[o];
675
675
  for (var r in t)
676
676
  Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
677
677
  }
678
678
  return n;
679
- }, F.apply(this, arguments);
679
+ }, k.apply(this, arguments);
680
680
  };
681
681
  function it(e, n) {
682
682
  var t = {};
@@ -698,7 +698,7 @@ function vn(e, n) {
698
698
  return typeof e == "function" ? e(n) : e && (e.current = n), e;
699
699
  }
700
700
  function hn(e, n) {
701
- var t = V(function() {
701
+ var t = G(function() {
702
702
  return {
703
703
  // value
704
704
  value: e,
@@ -718,18 +718,18 @@ function hn(e, n) {
718
718
  })[0];
719
719
  return t.callback = n, t.facade;
720
720
  }
721
- function gn(e, n) {
721
+ function mn(e, n) {
722
722
  return hn(null, function(t) {
723
723
  return e.forEach(function(o) {
724
724
  return vn(o, t);
725
725
  });
726
726
  });
727
727
  }
728
- function mn(e) {
728
+ function gn(e) {
729
729
  return e;
730
730
  }
731
731
  function _n(e, n) {
732
- n === void 0 && (n = mn);
732
+ n === void 0 && (n = gn);
733
733
  var t = [], o = !1, a = {
734
734
  read: function() {
735
735
  if (o)
@@ -786,7 +786,7 @@ function _n(e, n) {
786
786
  function bn(e) {
787
787
  e === void 0 && (e = {});
788
788
  var n = _n(null);
789
- return n.options = F({ async: !0, ssr: !1 }, e), n;
789
+ return n.options = k({ async: !0, ssr: !1 }, e), n;
790
790
  }
791
791
  var ut = function(e) {
792
792
  var n = e.sideCar, t = it(e, ["sideCar"]);
@@ -795,24 +795,24 @@ var ut = function(e) {
795
795
  var o = n.read();
796
796
  if (!o)
797
797
  throw new Error("Sidecar medium not found");
798
- return g.createElement(o, F({}, t));
798
+ return m.createElement(o, k({}, t));
799
799
  };
800
800
  ut.isSideCarExport = !0;
801
- function $n(e, n) {
801
+ function yn(e, n) {
802
802
  return e.useMedium(n), ut;
803
803
  }
804
804
  var ct = bn(), we = function() {
805
- }, _e = g.forwardRef(function(e, n) {
806
- var t = g.useRef(null), o = g.useState({
805
+ }, _e = m.forwardRef(function(e, n) {
806
+ var t = m.useRef(null), o = m.useState({
807
807
  onScrollCapture: we,
808
808
  onWheelCapture: we,
809
809
  onTouchMoveCapture: we
810
- }), a = o[0], r = o[1], i = e.forwardProps, u = e.children, s = e.className, d = e.removeScrollBar, p = e.enabled, l = e.shards, h = e.sideCar, f = e.noIsolation, E = e.inert, c = e.allowPinchZoom, v = e.as, b = v === void 0 ? "div" : v, x = it(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), $ = h, y = gn([t, n]), S = F(F({}, x), a);
811
- return g.createElement(
812
- g.Fragment,
810
+ }), a = o[0], r = o[1], i = e.forwardProps, u = e.children, s = e.className, d = e.removeScrollBar, p = e.enabled, l = e.shards, h = e.sideCar, f = e.noIsolation, E = e.inert, c = e.allowPinchZoom, v = e.as, b = v === void 0 ? "div" : v, x = it(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), y = h, $ = mn([t, n]), S = k(k({}, x), a);
811
+ return m.createElement(
812
+ m.Fragment,
813
813
  null,
814
- p && g.createElement($, { sideCar: ct, removeScrollBar: d, shards: l, noIsolation: f, inert: E, setCallbacks: r, allowPinchZoom: !!c, lockRef: t }),
815
- i ? g.cloneElement(g.Children.only(u), F(F({}, S), { ref: y })) : g.createElement(b, F({}, S, { className: s, ref: y }), u)
814
+ p && m.createElement(y, { sideCar: ct, removeScrollBar: d, shards: l, noIsolation: f, inert: E, setCallbacks: r, allowPinchZoom: !!c, lockRef: t }),
815
+ i ? m.cloneElement(m.Children.only(u), k(k({}, S), { ref: $ })) : m.createElement(b, k({}, S, { className: s, ref: $ }), u)
816
816
  );
817
817
  });
818
818
  _e.defaultProps = {
@@ -824,7 +824,7 @@ _e.classNames = {
824
824
  fullWidth: he,
825
825
  zeroRight: ve
826
826
  };
827
- var yn = function() {
827
+ var $n = function() {
828
828
  if (typeof __webpack_nonce__ < "u")
829
829
  return __webpack_nonce__;
830
830
  };
@@ -833,7 +833,7 @@ function En() {
833
833
  return null;
834
834
  var e = document.createElement("style");
835
835
  e.type = "text/css";
836
- var n = yn();
836
+ var n = $n();
837
837
  return n && e.setAttribute("nonce", n), e;
838
838
  }
839
839
  function wn(e, n) {
@@ -856,7 +856,7 @@ var Cn = function() {
856
856
  }, xn = function() {
857
857
  var e = Cn();
858
858
  return function(n, t) {
859
- g.useEffect(function() {
859
+ m.useEffect(function() {
860
860
  return e.add(n), function() {
861
861
  e.remove();
862
862
  };
@@ -933,10 +933,10 @@ var Cn = function() {
933
933
  }
934
934
  `);
935
935
  }, Dn = function(e) {
936
- var n = e.noRelative, t = e.noImportant, o = e.gapMode, a = o === void 0 ? "margin" : o, r = g.useMemo(function() {
936
+ var n = e.noRelative, t = e.noImportant, o = e.gapMode, a = o === void 0 ? "margin" : o, r = m.useMemo(function() {
937
937
  return Nn(a);
938
938
  }, [a]);
939
- return g.createElement(An, { styles: Tn(r, !n, a, t ? "" : "!important") });
939
+ return m.createElement(An, { styles: Tn(r, !n, a, t ? "" : "!important") });
940
940
  }, Ae = !1;
941
941
  if (typeof window < "u")
942
942
  try {
@@ -949,7 +949,7 @@ if (typeof window < "u")
949
949
  } catch {
950
950
  Ae = !1;
951
951
  }
952
- var K = Ae ? { passive: !1 } : !1, In = function(e) {
952
+ var z = Ae ? { passive: !1 } : !1, In = function(e) {
953
953
  return e.tagName === "TEXTAREA";
954
954
  }, lt = function(e, n) {
955
955
  var t = window.getComputedStyle(e);
@@ -962,7 +962,7 @@ var K = Ae ? { passive: !1 } : !1, In = function(e) {
962
962
  return lt(e, "overflowY");
963
963
  }, Mn = function(e) {
964
964
  return lt(e, "overflowX");
965
- }, He = function(e, n) {
965
+ }, Ve = function(e, n) {
966
966
  var t = n;
967
967
  do {
968
968
  typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
@@ -982,7 +982,7 @@ var K = Ae ? { passive: !1 } : !1, In = function(e) {
982
982
  t,
983
983
  o
984
984
  ];
985
- }, Fn = function(e) {
985
+ }, kn = function(e) {
986
986
  var n = e.scrollLeft, t = e.scrollWidth, o = e.clientWidth;
987
987
  return [
988
988
  n,
@@ -992,11 +992,11 @@ var K = Ae ? { passive: !1 } : !1, In = function(e) {
992
992
  }, dt = function(e, n) {
993
993
  return e === "v" ? Rn(n) : Mn(n);
994
994
  }, pt = function(e, n) {
995
- return e === "v" ? Ln(n) : Fn(n);
996
- }, kn = function(e, n) {
995
+ return e === "v" ? Ln(n) : kn(n);
996
+ }, Fn = function(e, n) {
997
997
  return e === "h" && n === "rtl" ? -1 : 1;
998
998
  }, jn = function(e, n, t, o, a) {
999
- var r = kn(e, window.getComputedStyle(n).direction), i = r * o, u = t.target, s = n.contains(u), d = !1, p = i > 0, l = 0, h = 0;
999
+ var r = Fn(e, window.getComputedStyle(n).direction), i = r * o, u = t.target, s = n.contains(u), d = !1, p = i > 0, l = 0, h = 0;
1000
1000
  do {
1001
1001
  var f = pt(e, u), E = f[0], c = f[1], v = f[2], b = c - v - r * E;
1002
1002
  (E || b) && dt(e, u) && (l += b, h += E), u = u.parentNode;
@@ -1008,28 +1008,28 @@ var K = Ae ? { passive: !1 } : !1, In = function(e) {
1008
1008
  return (p && (l === 0 || !a) || !p && (h === 0 || !a)) && (d = !0), d;
1009
1009
  }, ue = function(e) {
1010
1010
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
1011
- }, Ve = function(e) {
1012
- return [e.deltaX, e.deltaY];
1013
1011
  }, Ge = function(e) {
1012
+ return [e.deltaX, e.deltaY];
1013
+ }, Ke = function(e) {
1014
1014
  return e && "current" in e ? e.current : e;
1015
1015
  }, Bn = function(e, n) {
1016
1016
  return e[0] === n[0] && e[1] === n[1];
1017
- }, Wn = function(e) {
1017
+ }, qn = function(e) {
1018
1018
  return `
1019
1019
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
1020
1020
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
1021
1021
  `);
1022
- }, Un = 0, X = [];
1023
- function zn(e) {
1024
- var n = g.useRef([]), t = g.useRef([0, 0]), o = g.useRef(), a = g.useState(Un++)[0], r = g.useState(function() {
1022
+ }, Wn = 0, X = [];
1023
+ function Un(e) {
1024
+ var n = m.useRef([]), t = m.useRef([0, 0]), o = m.useRef(), a = m.useState(Wn++)[0], r = m.useState(function() {
1025
1025
  return st();
1026
- })[0], i = g.useRef(e);
1027
- g.useEffect(function() {
1026
+ })[0], i = m.useRef(e);
1027
+ m.useEffect(function() {
1028
1028
  i.current = e;
1029
- }, [e]), g.useEffect(function() {
1029
+ }, [e]), m.useEffect(function() {
1030
1030
  if (e.inert) {
1031
1031
  document.body.classList.add("block-interactivity-".concat(a));
1032
- var c = dn([e.lockRef.current], (e.shards || []).map(Ge), !0).filter(Boolean);
1032
+ var c = dn([e.lockRef.current], (e.shards || []).map(Ke), !0).filter(Boolean);
1033
1033
  return c.forEach(function(v) {
1034
1034
  return v.classList.add("allow-interactivity-".concat(a));
1035
1035
  }), function() {
@@ -1039,25 +1039,25 @@ function zn(e) {
1039
1039
  };
1040
1040
  }
1041
1041
  }, [e.inert, e.lockRef.current, e.shards]);
1042
- var u = g.useCallback(function(c, v) {
1042
+ var u = m.useCallback(function(c, v) {
1043
1043
  if ("touches" in c && c.touches.length === 2)
1044
1044
  return !i.current.allowPinchZoom;
1045
- var b = ue(c), x = t.current, $ = "deltaX" in c ? c.deltaX : x[0] - b[0], y = "deltaY" in c ? c.deltaY : x[1] - b[1], S, z = c.target, T = Math.abs($) > Math.abs(y) ? "h" : "v";
1046
- if ("touches" in c && T === "h" && z.type === "range")
1045
+ var b = ue(c), x = t.current, y = "deltaX" in c ? c.deltaX : x[0] - b[0], $ = "deltaY" in c ? c.deltaY : x[1] - b[1], S, U = c.target, T = Math.abs(y) > Math.abs($) ? "h" : "v";
1046
+ if ("touches" in c && T === "h" && U.type === "range")
1047
1047
  return !1;
1048
- var w = He(T, z);
1048
+ var w = Ve(T, U);
1049
1049
  if (!w)
1050
1050
  return !0;
1051
- if (w ? S = T : (S = T === "v" ? "h" : "v", w = He(T, z)), !w)
1051
+ if (w ? S = T : (S = T === "v" ? "h" : "v", w = Ve(T, U)), !w)
1052
1052
  return !1;
1053
- if (!o.current && "changedTouches" in c && ($ || y) && (o.current = S), !S)
1053
+ if (!o.current && "changedTouches" in c && (y || $) && (o.current = S), !S)
1054
1054
  return !0;
1055
1055
  var I = o.current || S;
1056
- return jn(I, v, c, I === "h" ? $ : y, !0);
1057
- }, []), s = g.useCallback(function(c) {
1056
+ return jn(I, v, c, I === "h" ? y : $, !0);
1057
+ }, []), s = m.useCallback(function(c) {
1058
1058
  var v = c;
1059
1059
  if (!(!X.length || X[X.length - 1] !== r)) {
1060
- var b = "deltaY" in v ? Ve(v) : ue(v), x = n.current.filter(function(S) {
1060
+ var b = "deltaY" in v ? Ge(v) : ue(v), x = n.current.filter(function(S) {
1061
1061
  return S.name === v.type && S.target === v.target && Bn(S.delta, b);
1062
1062
  })[0];
1063
1063
  if (x && x.should) {
@@ -1065,58 +1065,58 @@ function zn(e) {
1065
1065
  return;
1066
1066
  }
1067
1067
  if (!x) {
1068
- var $ = (i.current.shards || []).map(Ge).filter(Boolean).filter(function(S) {
1068
+ var y = (i.current.shards || []).map(Ke).filter(Boolean).filter(function(S) {
1069
1069
  return S.contains(v.target);
1070
- }), y = $.length > 0 ? u(v, $[0]) : !i.current.noIsolation;
1071
- y && v.cancelable && v.preventDefault();
1070
+ }), $ = y.length > 0 ? u(v, y[0]) : !i.current.noIsolation;
1071
+ $ && v.cancelable && v.preventDefault();
1072
1072
  }
1073
1073
  }
1074
- }, []), d = g.useCallback(function(c, v, b, x) {
1075
- var $ = { name: c, delta: v, target: b, should: x };
1076
- n.current.push($), setTimeout(function() {
1077
- n.current = n.current.filter(function(y) {
1078
- return y !== $;
1074
+ }, []), d = m.useCallback(function(c, v, b, x) {
1075
+ var y = { name: c, delta: v, target: b, should: x };
1076
+ n.current.push(y), setTimeout(function() {
1077
+ n.current = n.current.filter(function($) {
1078
+ return $ !== y;
1079
1079
  });
1080
1080
  }, 1);
1081
- }, []), p = g.useCallback(function(c) {
1081
+ }, []), p = m.useCallback(function(c) {
1082
1082
  t.current = ue(c), o.current = void 0;
1083
- }, []), l = g.useCallback(function(c) {
1084
- d(c.type, Ve(c), c.target, u(c, e.lockRef.current));
1085
- }, []), h = g.useCallback(function(c) {
1083
+ }, []), l = m.useCallback(function(c) {
1084
+ d(c.type, Ge(c), c.target, u(c, e.lockRef.current));
1085
+ }, []), h = m.useCallback(function(c) {
1086
1086
  d(c.type, ue(c), c.target, u(c, e.lockRef.current));
1087
1087
  }, []);
1088
- g.useEffect(function() {
1088
+ m.useEffect(function() {
1089
1089
  return X.push(r), e.setCallbacks({
1090
1090
  onScrollCapture: l,
1091
1091
  onWheelCapture: l,
1092
1092
  onTouchMoveCapture: h
1093
- }), document.addEventListener("wheel", s, K), document.addEventListener("touchmove", s, K), document.addEventListener("touchstart", p, K), function() {
1093
+ }), document.addEventListener("wheel", s, z), document.addEventListener("touchmove", s, z), document.addEventListener("touchstart", p, z), function() {
1094
1094
  X = X.filter(function(c) {
1095
1095
  return c !== r;
1096
- }), document.removeEventListener("wheel", s, K), document.removeEventListener("touchmove", s, K), document.removeEventListener("touchstart", p, K);
1096
+ }), document.removeEventListener("wheel", s, z), document.removeEventListener("touchmove", s, z), document.removeEventListener("touchstart", p, z);
1097
1097
  };
1098
1098
  }, []);
1099
1099
  var f = e.removeScrollBar, E = e.inert;
1100
- return g.createElement(
1101
- g.Fragment,
1100
+ return m.createElement(
1101
+ m.Fragment,
1102
1102
  null,
1103
- E ? g.createElement(r, { styles: Wn(a) }) : null,
1104
- f ? g.createElement(Dn, { gapMode: "margin" }) : null
1103
+ E ? m.createElement(r, { styles: qn(a) }) : null,
1104
+ f ? m.createElement(Dn, { gapMode: "margin" }) : null
1105
1105
  );
1106
1106
  }
1107
- const qn = $n(ct, zn);
1108
- var ft = g.forwardRef(function(e, n) {
1109
- return g.createElement(_e, F({}, e, { ref: n, sideCar: qn }));
1107
+ const Hn = yn(ct, Un);
1108
+ var ft = m.forwardRef(function(e, n) {
1109
+ return m.createElement(_e, k({}, e, { ref: n, sideCar: Hn }));
1110
1110
  });
1111
1111
  ft.classNames = _e.classNames;
1112
- var Hn = function(e) {
1112
+ var Vn = function(e) {
1113
1113
  if (typeof document > "u")
1114
1114
  return null;
1115
1115
  var n = Array.isArray(e) ? e[0] : e;
1116
1116
  return n.ownerDocument.body;
1117
1117
  }, Y = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), se = {}, Ce = 0, vt = function(e) {
1118
1118
  return e && (e.host || vt(e.parentNode));
1119
- }, Vn = function(e, n) {
1119
+ }, Gn = function(e, n) {
1120
1120
  return n.map(function(t) {
1121
1121
  if (e.contains(t))
1122
1122
  return t;
@@ -1125,8 +1125,8 @@ var Hn = function(e) {
1125
1125
  }).filter(function(t) {
1126
1126
  return !!t;
1127
1127
  });
1128
- }, Gn = function(e, n, t, o) {
1129
- var a = Vn(n, Array.isArray(e) ? e : [e]);
1128
+ }, Kn = function(e, n, t, o) {
1129
+ var a = Gn(n, Array.isArray(e) ? e : [e]);
1130
1130
  se[t] || (se[t] = /* @__PURE__ */ new WeakMap());
1131
1131
  var r = se[t], i = [], u = /* @__PURE__ */ new Set(), s = new Set(a), d = function(l) {
1132
1132
  !l || u.has(l) || (u.add(l), d(l.parentNode));
@@ -1148,20 +1148,20 @@ var Hn = function(e) {
1148
1148
  Y.set(l, h), r.set(l, f), h || (ce.has(l) || l.removeAttribute(o), ce.delete(l)), f || l.removeAttribute(t);
1149
1149
  }), Ce--, Ce || (Y = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), se = {});
1150
1150
  };
1151
- }, Kn = function(e, n, t) {
1151
+ }, zn = function(e, n, t) {
1152
1152
  t === void 0 && (t = "data-aria-hidden");
1153
- var o = Array.from(Array.isArray(e) ? e : [e]), a = Hn(e);
1154
- return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live]"))), Gn(o, a, t, "aria-hidden")) : function() {
1153
+ var o = Array.from(Array.isArray(e) ? e : [e]), a = Vn(e);
1154
+ return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live]"))), Kn(o, a, t, "aria-hidden")) : function() {
1155
1155
  return null;
1156
1156
  };
1157
1157
  };
1158
- const ht = "Dialog", [gt, $o] = Mt(ht), [Xn, L] = gt(ht), Yn = (e) => {
1158
+ const ht = "Dialog", [mt, yo] = Mt(ht), [Xn, L] = mt(ht), Yn = (e) => {
1159
1159
  const { __scopeDialog: n, children: t, open: o, defaultOpen: a, onOpenChange: r, modal: i = !0 } = e, u = O(null), s = O(null), [d = !1, p] = jt({
1160
1160
  prop: o,
1161
1161
  defaultProp: a,
1162
1162
  onChange: r
1163
1163
  });
1164
- return /* @__PURE__ */ m(Xn, {
1164
+ return /* @__PURE__ */ g(Xn, {
1165
1165
  scope: n,
1166
1166
  triggerRef: u,
1167
1167
  contentRef: s,
@@ -1182,7 +1182,7 @@ const ht = "Dialog", [gt, $o] = Mt(ht), [Xn, L] = gt(ht), Yn = (e) => {
1182
1182
  }, t);
1183
1183
  }, Zn = "DialogTrigger", Qn = /* @__PURE__ */ C((e, n) => {
1184
1184
  const { __scopeDialog: t, ...o } = e, a = L(Zn, t), r = J(n, a.triggerRef);
1185
- return /* @__PURE__ */ m(U.button, P({
1185
+ return /* @__PURE__ */ g(W.button, P({
1186
1186
  type: "button",
1187
1187
  "aria-haspopup": "dialog",
1188
1188
  "aria-expanded": a.open,
@@ -1192,27 +1192,27 @@ const ht = "Dialog", [gt, $o] = Mt(ht), [Xn, L] = gt(ht), Yn = (e) => {
1192
1192
  ref: r,
1193
1193
  onClick: B(e.onClick, a.onOpenToggle)
1194
1194
  }));
1195
- }), mt = "DialogPortal", [Jn, _t] = gt(mt, {
1195
+ }), gt = "DialogPortal", [Jn, _t] = mt(gt, {
1196
1196
  forceMount: void 0
1197
1197
  }), er = (e) => {
1198
- const { __scopeDialog: n, forceMount: t, children: o, container: a } = e, r = L(mt, n);
1199
- return /* @__PURE__ */ m(Jn, {
1198
+ const { __scopeDialog: n, forceMount: t, children: o, container: a } = e, r = L(gt, n);
1199
+ return /* @__PURE__ */ g(Jn, {
1200
1200
  scope: n,
1201
1201
  forceMount: t
1202
1202
  }, M.map(
1203
1203
  o,
1204
- (i) => /* @__PURE__ */ m(me, {
1204
+ (i) => /* @__PURE__ */ g(ge, {
1205
1205
  present: t || r.open
1206
- }, /* @__PURE__ */ m(un, {
1206
+ }, /* @__PURE__ */ g(un, {
1207
1207
  asChild: !0,
1208
1208
  container: a
1209
1209
  }, i))
1210
1210
  ));
1211
1211
  }, Te = "DialogOverlay", tr = /* @__PURE__ */ C((e, n) => {
1212
1212
  const t = _t(Te, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = L(Te, e.__scopeDialog);
1213
- return r.modal ? /* @__PURE__ */ m(me, {
1213
+ return r.modal ? /* @__PURE__ */ g(ge, {
1214
1214
  present: o || r.open
1215
- }, /* @__PURE__ */ m(nr, P({}, a, {
1215
+ }, /* @__PURE__ */ g(nr, P({}, a, {
1216
1216
  ref: n
1217
1217
  }))) : null;
1218
1218
  }), nr = /* @__PURE__ */ C((e, n) => {
@@ -1220,13 +1220,13 @@ const ht = "Dialog", [gt, $o] = Mt(ht), [Xn, L] = gt(ht), Yn = (e) => {
1220
1220
  return (
1221
1221
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1222
1222
  // ie. when `Overlay` and `Content` are siblings
1223
- /* @__PURE__ */ m(ft, {
1223
+ /* @__PURE__ */ g(ft, {
1224
1224
  as: Re,
1225
1225
  allowPinchZoom: !0,
1226
1226
  shards: [
1227
1227
  a.contentRef
1228
1228
  ]
1229
- }, /* @__PURE__ */ m(U.div, P({
1229
+ }, /* @__PURE__ */ g(W.div, P({
1230
1230
  "data-state": Me(a.open)
1231
1231
  }, o, {
1232
1232
  ref: n,
@@ -1238,11 +1238,11 @@ const ht = "Dialog", [gt, $o] = Mt(ht), [Xn, L] = gt(ht), Yn = (e) => {
1238
1238
  );
1239
1239
  }), ne = "DialogContent", rr = /* @__PURE__ */ C((e, n) => {
1240
1240
  const t = _t(ne, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = L(ne, e.__scopeDialog);
1241
- return /* @__PURE__ */ m(me, {
1241
+ return /* @__PURE__ */ g(ge, {
1242
1242
  present: o || r.open
1243
- }, r.modal ? /* @__PURE__ */ m(or, P({}, a, {
1243
+ }, r.modal ? /* @__PURE__ */ g(or, P({}, a, {
1244
1244
  ref: n
1245
- })) : /* @__PURE__ */ m(ar, P({}, a, {
1245
+ })) : /* @__PURE__ */ g(ar, P({}, a, {
1246
1246
  ref: n
1247
1247
  })));
1248
1248
  }), or = /* @__PURE__ */ C((e, n) => {
@@ -1250,8 +1250,8 @@ const ht = "Dialog", [gt, $o] = Mt(ht), [Xn, L] = gt(ht), Yn = (e) => {
1250
1250
  return A(() => {
1251
1251
  const r = o.current;
1252
1252
  if (r)
1253
- return Kn(r);
1254
- }, []), /* @__PURE__ */ m(bt, P({}, e, {
1253
+ return zn(r);
1254
+ }, []), /* @__PURE__ */ g(bt, P({}, e, {
1255
1255
  ref: a,
1256
1256
  trapFocus: t.open,
1257
1257
  disableOutsidePointerEvents: !0,
@@ -1270,7 +1270,7 @@ const ht = "Dialog", [gt, $o] = Mt(ht), [Xn, L] = gt(ht), Yn = (e) => {
1270
1270
  }));
1271
1271
  }), ar = /* @__PURE__ */ C((e, n) => {
1272
1272
  const t = L(ne, e.__scopeDialog), o = O(!1), a = O(!1);
1273
- return /* @__PURE__ */ m(bt, P({}, e, {
1273
+ return /* @__PURE__ */ g(bt, P({}, e, {
1274
1274
  ref: n,
1275
1275
  trapFocus: !1,
1276
1276
  disableOutsidePointerEvents: !1,
@@ -1291,13 +1291,13 @@ const ht = "Dialog", [gt, $o] = Mt(ht), [Xn, L] = gt(ht), Yn = (e) => {
1291
1291
  }));
1292
1292
  }), bt = /* @__PURE__ */ C((e, n) => {
1293
1293
  const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...i } = e, u = L(ne, t), s = O(null), d = J(n, s);
1294
- return ln(), /* @__PURE__ */ m(Ie, null, /* @__PURE__ */ m(Jt, {
1294
+ return ln(), /* @__PURE__ */ g(Ie, null, /* @__PURE__ */ g(Jt, {
1295
1295
  asChild: !0,
1296
1296
  loop: !0,
1297
1297
  trapped: o,
1298
1298
  onMountAutoFocus: a,
1299
1299
  onUnmountAutoFocus: r
1300
- }, /* @__PURE__ */ m(Yt, P({
1300
+ }, /* @__PURE__ */ g(Yt, P({
1301
1301
  role: "dialog",
1302
1302
  id: u.contentId,
1303
1303
  "aria-describedby": u.descriptionId,
@@ -1309,21 +1309,21 @@ const ht = "Dialog", [gt, $o] = Mt(ht), [Xn, L] = gt(ht), Yn = (e) => {
1309
1309
  }))), !1);
1310
1310
  }), ir = "DialogTitle", ur = /* @__PURE__ */ C((e, n) => {
1311
1311
  const { __scopeDialog: t, ...o } = e, a = L(ir, t);
1312
- return /* @__PURE__ */ m(U.h2, P({
1312
+ return /* @__PURE__ */ g(W.h2, P({
1313
1313
  id: a.titleId
1314
1314
  }, o, {
1315
1315
  ref: n
1316
1316
  }));
1317
1317
  }), cr = "DialogDescription", sr = /* @__PURE__ */ C((e, n) => {
1318
1318
  const { __scopeDialog: t, ...o } = e, a = L(cr, t);
1319
- return /* @__PURE__ */ m(U.p, P({
1319
+ return /* @__PURE__ */ g(W.p, P({
1320
1320
  id: a.descriptionId
1321
1321
  }, o, {
1322
1322
  ref: n
1323
1323
  }));
1324
1324
  }), lr = "DialogClose", dr = /* @__PURE__ */ C((e, n) => {
1325
1325
  const { __scopeDialog: t, ...o } = e, a = L(lr, t);
1326
- return /* @__PURE__ */ m(U.button, P({
1326
+ return /* @__PURE__ */ g(W.button, P({
1327
1327
  type: "button"
1328
1328
  }, o, {
1329
1329
  ref: n,
@@ -1336,7 +1336,7 @@ const ht = "Dialog", [gt, $o] = Mt(ht), [Xn, L] = gt(ht), Yn = (e) => {
1336
1336
  function Me(e) {
1337
1337
  return e ? "open" : "closed";
1338
1338
  }
1339
- const pr = Yn, fr = Qn, vr = er, hr = tr, gr = rr, mr = ur, Ke = sr, _r = dr, Xe = {
1339
+ const pr = Yn, fr = Qn, vr = er, hr = tr, mr = rr, gr = ur, ze = sr, _r = dr, Xe = {
1340
1340
  SM: "sm",
1341
1341
  MD: "md",
1342
1342
  LG: "lg"
@@ -1344,7 +1344,7 @@ const pr = Yn, fr = Qn, vr = er, hr = tr, gr = rr, mr = ur, Ke = sr, _r = dr, Xe
1344
1344
  function br(e) {
1345
1345
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1346
1346
  }
1347
- var $t = { exports: {} };
1347
+ var yt = { exports: {} };
1348
1348
  /*!
1349
1349
  Copyright (c) 2018 Jed Watson.
1350
1350
  Licensed under the MIT License (MIT), see
@@ -1379,11 +1379,11 @@ var $t = { exports: {} };
1379
1379
  }
1380
1380
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1381
1381
  })();
1382
- })($t);
1383
- var $r = $t.exports;
1384
- const Ye = /* @__PURE__ */ br($r), yr = "_rotate_7s2g1_1", Er = "_dash_7s2g1_1", le = {
1382
+ })(yt);
1383
+ var yr = yt.exports;
1384
+ const Ye = /* @__PURE__ */ br(yr), $r = "_rotate_7s2g1_1", Er = "_dash_7s2g1_1", le = {
1385
1385
  "purpur-spinner": "_purpur-spinner_7s2g1_1",
1386
- rotate: yr,
1386
+ rotate: $r,
1387
1387
  "purpur-spinner--xxs": "_purpur-spinner--xxs_7s2g1_4",
1388
1388
  "purpur-spinner--xs": "_purpur-spinner--xs_7s2g1_8",
1389
1389
  "purpur-spinner--sm": "_purpur-spinner--sm_7s2g1_12",
@@ -1433,7 +1433,7 @@ const Ye = /* @__PURE__ */ br($r), yr = "_rotate_7s2g1_1", Er = "_dash_7s2g1_1",
1433
1433
  function xr(e) {
1434
1434
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1435
1435
  }
1436
- var yt = { exports: {} };
1436
+ var $t = { exports: {} };
1437
1437
  /*!
1438
1438
  Copyright (c) 2018 Jed Watson.
1439
1439
  Licensed under the MIT License (MIT), see
@@ -1468,30 +1468,30 @@ var yt = { exports: {} };
1468
1468
  }
1469
1469
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1470
1470
  })();
1471
- })(yt);
1472
- var Or = yt.exports;
1473
- const Pr = /* @__PURE__ */ xr(Or), q = {
1474
- "purpur-button": "_purpur-button_1fna2_1",
1475
- "purpur-button--sm": "_purpur-button--sm_1fna2_33",
1476
- "purpur-button--icon-only": "_purpur-button--icon-only_1fna2_36",
1477
- "purpur-button--md": "_purpur-button--md_1fna2_39",
1478
- "purpur-button--lg": "_purpur-button--lg_1fna2_45",
1479
- "purpur-button--full-width": "_purpur-button--full-width_1fna2_51",
1480
- "purpur-button--primary": "_purpur-button--primary_1fna2_54",
1481
- "purpur-button--disabled": "_purpur-button--disabled_1fna2_58",
1482
- "purpur-button--primary-negative": "_purpur-button--primary-negative_1fna2_64",
1483
- "purpur-button--secondary": "_purpur-button--secondary_1fna2_76",
1484
- "purpur-button--secondary-negative": "_purpur-button--secondary-negative_1fna2_87",
1485
- "purpur-button--expressive": "_purpur-button--expressive_1fna2_98",
1486
- "purpur-button--expressive-negative": "_purpur-button--expressive-negative_1fna2_108",
1487
- "purpur-button--negative": "_purpur-button--negative_1fna2_120",
1488
- "purpur-button--destructive": "_purpur-button--destructive_1fna2_127",
1489
- "purpur-button--destructive-negative": "_purpur-button--destructive-negative_1fna2_137",
1490
- "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_1fna2_147",
1491
- "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1fna2_160",
1492
- "purpur-button--text-negative": "_purpur-button--text-negative_1fna2_175",
1493
- "purpur-button--text": "_purpur-button--text_1fna2_175"
1494
- }, H = "purpur-button", Nr = ({
1471
+ })($t);
1472
+ var Or = $t.exports;
1473
+ const Pr = /* @__PURE__ */ xr(Or), H = {
1474
+ "purpur-button": "_purpur-button_u2yv5_1",
1475
+ "purpur-button--sm": "_purpur-button--sm_u2yv5_33",
1476
+ "purpur-button--icon-only": "_purpur-button--icon-only_u2yv5_36",
1477
+ "purpur-button--md": "_purpur-button--md_u2yv5_39",
1478
+ "purpur-button--lg": "_purpur-button--lg_u2yv5_45",
1479
+ "purpur-button--full-width": "_purpur-button--full-width_u2yv5_51",
1480
+ "purpur-button--primary": "_purpur-button--primary_u2yv5_54",
1481
+ "purpur-button--disabled": "_purpur-button--disabled_u2yv5_58",
1482
+ "purpur-button--primary-negative": "_purpur-button--primary-negative_u2yv5_64",
1483
+ "purpur-button--secondary": "_purpur-button--secondary_u2yv5_76",
1484
+ "purpur-button--secondary-negative": "_purpur-button--secondary-negative_u2yv5_87",
1485
+ "purpur-button--expressive": "_purpur-button--expressive_u2yv5_98",
1486
+ "purpur-button--expressive-negative": "_purpur-button--expressive-negative_u2yv5_108",
1487
+ "purpur-button--negative": "_purpur-button--negative_u2yv5_120",
1488
+ "purpur-button--destructive": "_purpur-button--destructive_u2yv5_127",
1489
+ "purpur-button--destructive-negative": "_purpur-button--destructive-negative_u2yv5_137",
1490
+ "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_u2yv5_147",
1491
+ "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_u2yv5_160",
1492
+ "purpur-button--text-negative": "_purpur-button--text-negative_u2yv5_175",
1493
+ "purpur-button--text": "_purpur-button--text_u2yv5_175"
1494
+ }, V = "purpur-button", Nr = ({
1495
1495
  children: e,
1496
1496
  className: n,
1497
1497
  ["data-testid"]: t,
@@ -1509,15 +1509,15 @@ const Pr = /* @__PURE__ */ xr(Or), q = {
1509
1509
  return null;
1510
1510
  const f = Pr(
1511
1511
  [
1512
- q[H],
1513
- q[`${H}--${d}`],
1514
- q[`${H}--${s}`]
1512
+ H[V],
1513
+ H[`${V}--${d}`],
1514
+ H[`${V}--${s}`]
1515
1515
  ],
1516
1516
  {
1517
- [q[`${H}--icon-only`]]: r,
1518
- [q[`${H}--negative`]]: d.endsWith("negative"),
1519
- [q[`${H}--full-width`]]: a,
1520
- [q[`${H}--disabled`]]: o || i
1517
+ [H[`${V}--icon-only`]]: r,
1518
+ [H[`${V}--negative`]]: d.endsWith("negative"),
1519
+ [H[`${V}--full-width`]]: a,
1520
+ [H[`${V}--disabled`]]: o || i
1521
1521
  },
1522
1522
  n
1523
1523
  ), E = (v) => {
@@ -1583,21 +1583,21 @@ var Et = { exports: {} };
1583
1583
  })(Et);
1584
1584
  var Tr = Et.exports;
1585
1585
  const Dr = /* @__PURE__ */ Ar(Tr), pe = {
1586
- "purpur-heading": "_purpur-heading_1g237_1",
1587
- "purpur-heading--hyphens": "_purpur-heading--hyphens_1g237_8",
1588
- "purpur-heading--negative": "_purpur-heading--negative_1g237_11",
1589
- "purpur-heading--subsection-100": "_purpur-heading--subsection-100_1g237_14",
1590
- "purpur-heading--title-100": "_purpur-heading--title-100_1g237_20",
1591
- "purpur-heading--title-200": "_purpur-heading--title-200_1g237_26",
1592
- "purpur-heading--title-300": "_purpur-heading--title-300_1g237_32",
1593
- "purpur-heading--title-400": "_purpur-heading--title-400_1g237_38",
1594
- "purpur-heading--title-500": "_purpur-heading--title-500_1g237_44",
1595
- "purpur-heading--title-600": "_purpur-heading--title-600_1g237_50",
1596
- "purpur-heading--title-700": "_purpur-heading--title-700_1g237_56",
1597
- "purpur-heading--display-25": "_purpur-heading--display-25_1g237_62",
1598
- "purpur-heading--display-50": "_purpur-heading--display-50_1g237_68",
1599
- "purpur-heading--display-100": "_purpur-heading--display-100_1g237_74",
1600
- "purpur-heading--display-200": "_purpur-heading--display-200_1g237_80"
1586
+ "purpur-heading": "_purpur-heading_k9fhq_1",
1587
+ "purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
1588
+ "purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
1589
+ "purpur-heading--subsection-100": "_purpur-heading--subsection-100_k9fhq_14",
1590
+ "purpur-heading--title-100": "_purpur-heading--title-100_k9fhq_20",
1591
+ "purpur-heading--title-200": "_purpur-heading--title-200_k9fhq_26",
1592
+ "purpur-heading--title-300": "_purpur-heading--title-300_k9fhq_32",
1593
+ "purpur-heading--title-400": "_purpur-heading--title-400_k9fhq_38",
1594
+ "purpur-heading--title-500": "_purpur-heading--title-500_k9fhq_44",
1595
+ "purpur-heading--title-600": "_purpur-heading--title-600_k9fhq_50",
1596
+ "purpur-heading--title-700": "_purpur-heading--title-700_k9fhq_56",
1597
+ "purpur-heading--display-25": "_purpur-heading--display-25_k9fhq_62",
1598
+ "purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
1599
+ "purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
1600
+ "purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
1601
1601
  }, Ir = {
1602
1602
  TITLE100: "title-100",
1603
1603
  TITLE200: "title-200",
@@ -1668,7 +1668,7 @@ var wt = { exports: {} };
1668
1668
  })();
1669
1669
  })(wt);
1670
1670
  var Lr = wt.exports;
1671
- const Fr = /* @__PURE__ */ Mr(Lr), kr = {
1671
+ const kr = /* @__PURE__ */ Mr(Lr), Fr = {
1672
1672
  "purpur-icon": "_purpur-icon_8u1lq_1",
1673
1673
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
1674
1674
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -1682,31 +1682,31 @@ const Fr = /* @__PURE__ */ Mr(Lr), kr = {
1682
1682
  keywords: ["close"],
1683
1683
  category: "utility"
1684
1684
  }, St = (e) => /* @__PURE__ */ _(
1685
- Hr,
1685
+ Vr,
1686
1686
  {
1687
1687
  ...e,
1688
1688
  svg: jr
1689
1689
  }
1690
1690
  );
1691
1691
  St.displayName = "IconClose";
1692
- const Br = Fr.bind(kr), Ze = "purpur-icon", Wr = "md", Ur = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), zr = ({ content: e = "", title: n } = {}) => {
1692
+ const Br = kr.bind(Fr), Ze = "purpur-icon", qr = "md", Wr = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Ur = ({ content: e = "", title: n } = {}) => {
1693
1693
  const t = [
1694
1694
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
1695
1695
  { name: "fill", value: "currentColor" },
1696
1696
  { name: "viewBox", value: "0 0 24 24" },
1697
1697
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
1698
1698
  ], o = n ? `<title>${n}</title>` : "";
1699
- return `<svg ${Ur(t)}>${o}${e}</svg>`;
1700
- }, qr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Hr = ({
1699
+ return `<svg ${Wr(t)}>${o}${e}</svg>`;
1700
+ }, Hr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Vr = ({
1701
1701
  ["data-testid"]: e,
1702
1702
  svg: n,
1703
1703
  allyTitle: t,
1704
1704
  className: o = "",
1705
- size: a = Wr,
1705
+ size: a = qr,
1706
1706
  ...r
1707
1707
  }) => {
1708
- const i = zr({
1709
- content: qr(n.svg),
1708
+ const i = Ur({
1709
+ content: Hr(n.svg),
1710
1710
  title: t
1711
1711
  }), u = Br(o, Ze, `${Ze}--${a}`);
1712
1712
  return /* @__PURE__ */ _(
@@ -1720,7 +1720,7 @@ const Br = Fr.bind(kr), Ze = "purpur-icon", Wr = "md", Ur = (e) => e.filter((n)
1720
1720
  }
1721
1721
  );
1722
1722
  };
1723
- function Vr(e) {
1723
+ function Gr(e) {
1724
1724
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1725
1725
  }
1726
1726
  var Ct = { exports: {} };
@@ -1759,22 +1759,22 @@ var Ct = { exports: {} };
1759
1759
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1760
1760
  })();
1761
1761
  })(Ct);
1762
- var Gr = Ct.exports;
1763
- const Kr = /* @__PURE__ */ Vr(Gr), ee = {
1764
- "purpur-paragraph": "_purpur-paragraph_15yuz_1",
1765
- "purpur-paragraph--disabled": "_purpur-paragraph--disabled_15yuz_7",
1766
- "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_15yuz_10",
1767
- "purpur-paragraph--negative": "_purpur-paragraph--negative_15yuz_13",
1768
- "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_15yuz_16",
1769
- "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_15yuz_22",
1770
- "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_15yuz_29",
1771
- "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_15yuz_36",
1772
- "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_15yuz_42",
1773
- "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_15yuz_48",
1774
- "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_15yuz_54",
1775
- "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_15yuz_60",
1776
- "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_15yuz_67",
1777
- "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_15yuz_75"
1762
+ var Kr = Ct.exports;
1763
+ const zr = /* @__PURE__ */ Gr(Kr), ee = {
1764
+ "purpur-paragraph": "_purpur-paragraph_1rh57_1",
1765
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
1766
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
1767
+ "purpur-paragraph--negative": "_purpur-paragraph--negative_1rh57_13",
1768
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1rh57_16",
1769
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1rh57_22",
1770
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1rh57_29",
1771
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1rh57_36",
1772
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1rh57_42",
1773
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1rh57_48",
1774
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1rh57_54",
1775
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
1776
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
1777
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
1778
1778
  }, Xr = {
1779
1779
  PARAGRAPH100: "paragraph-100",
1780
1780
  PARAGRAPH100MEDIUM: "paragraph-100-medium",
@@ -1796,7 +1796,7 @@ const Kr = /* @__PURE__ */ Vr(Gr), ee = {
1796
1796
  variant: i = Xr.PARAGRAPH100,
1797
1797
  ...u
1798
1798
  }) => {
1799
- const s = Kr([
1799
+ const s = zr([
1800
1800
  t,
1801
1801
  ee[te],
1802
1802
  ee[`${te}--${i}`],
@@ -1829,27 +1829,27 @@ function Jr(...e) {
1829
1829
  const xt = /* @__PURE__ */ C((e, n) => {
1830
1830
  const { children: t, ...o } = e, a = M.toArray(t), r = a.find(to);
1831
1831
  if (r) {
1832
- const i = r.props.children, u = a.map((s) => s === r ? M.count(i) > 1 ? M.only(null) : /* @__PURE__ */ W(i) ? i.props.children : null : s);
1833
- return /* @__PURE__ */ m(De, Z({}, o, {
1832
+ const i = r.props.children, u = a.map((s) => s === r ? M.count(i) > 1 ? M.only(null) : /* @__PURE__ */ q(i) ? i.props.children : null : s);
1833
+ return /* @__PURE__ */ g(De, Z({}, o, {
1834
1834
  ref: n
1835
- }), /* @__PURE__ */ W(i) ? /* @__PURE__ */ re(i, void 0, u) : null);
1835
+ }), /* @__PURE__ */ q(i) ? /* @__PURE__ */ re(i, void 0, u) : null);
1836
1836
  }
1837
- return /* @__PURE__ */ m(De, Z({}, o, {
1837
+ return /* @__PURE__ */ g(De, Z({}, o, {
1838
1838
  ref: n
1839
1839
  }), t);
1840
1840
  });
1841
1841
  xt.displayName = "Slot";
1842
1842
  const De = /* @__PURE__ */ C((e, n) => {
1843
1843
  const { children: t, ...o } = e;
1844
- return /* @__PURE__ */ W(t) ? /* @__PURE__ */ re(t, {
1844
+ return /* @__PURE__ */ q(t) ? /* @__PURE__ */ re(t, {
1845
1845
  ...no(o, t.props),
1846
1846
  ref: n ? Jr(n, t.ref) : t.ref
1847
1847
  }) : M.count(t) > 1 ? M.only(null) : null;
1848
1848
  });
1849
1849
  De.displayName = "SlotClone";
1850
- const eo = ({ children: e }) => /* @__PURE__ */ m(Ie, null, e);
1850
+ const eo = ({ children: e }) => /* @__PURE__ */ g(Ie, null, e);
1851
1851
  function to(e) {
1852
- return /* @__PURE__ */ W(e) && e.type === eo;
1852
+ return /* @__PURE__ */ q(e) && e.type === eo;
1853
1853
  }
1854
1854
  function no(e, n) {
1855
1855
  const t = {
@@ -1894,7 +1894,7 @@ const ro = [
1894
1894
  const { asChild: r, ...i } = o, u = r ? xt : n;
1895
1895
  return A(() => {
1896
1896
  window[Symbol.for("radix-ui")] = !0;
1897
- }, []), /* @__PURE__ */ m(u, Z({}, i, {
1897
+ }, []), /* @__PURE__ */ g(u, Z({}, i, {
1898
1898
  ref: a
1899
1899
  }));
1900
1900
  });
@@ -1902,7 +1902,7 @@ const ro = [
1902
1902
  ...e,
1903
1903
  [n]: t
1904
1904
  };
1905
- }, {}), ao = /* @__PURE__ */ C((e, n) => /* @__PURE__ */ m(oo.span, Z({}, e, {
1905
+ }, {}), ao = /* @__PURE__ */ C((e, n) => /* @__PURE__ */ g(oo.span, Z({}, e, {
1906
1906
  ref: n,
1907
1907
  style: {
1908
1908
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -1999,7 +1999,7 @@ const lo = /* @__PURE__ */ co(so), po = "_fadeIn_1qmv6_1", fo = {
1999
1999
  title: p,
2000
2000
  ...l
2001
2001
  }, h) => {
2002
- const { closeButtonAllyLabel: f, showCloseButton: E, ...c } = l, [v, b] = V(!1), x = O(null), $ = O(null), y = O(null), S = O(null), z = D([
2002
+ const { closeButtonAllyLabel: f, showCloseButton: E, ...c } = l, [v, b] = G(!1), x = O(null), y = O(null), $ = O(null), S = O(null), U = D([
2003
2003
  N,
2004
2004
  { [`${N}--with-image`]: !!u },
2005
2005
  { [`${N}--overflow`]: v },
@@ -2008,12 +2008,12 @@ const lo = /* @__PURE__ */ co(so), po = "_fadeIn_1qmv6_1", fo = {
2008
2008
  ]), T = (R) => e ? `${e} ${R}` : void 0, w = (R) => {
2009
2009
  r && R.preventDefault();
2010
2010
  }, I = Q(() => {
2011
- if (!x.current || !$.current || !y.current || !S.current)
2011
+ if (!x.current || !y.current || !$.current || !S.current)
2012
2012
  return;
2013
2013
  const R = window.innerWidth < parseInt(Zr), Pt = window.getComputedStyle(
2014
- R ? x.current : y.current,
2014
+ R ? x.current : $.current,
2015
2015
  null
2016
- ), Nt = parseFloat(Pt.getPropertyValue("height")), At = R ? $.current.offsetHeight : S.current.offsetHeight;
2016
+ ), Nt = parseFloat(Pt.getPropertyValue("height")), At = R ? y.current.offsetHeight : S.current.offsetHeight;
2017
2017
  b(Nt < At);
2018
2018
  }, []), oe = (R) => {
2019
2019
  r && !E && R.preventDefault();
@@ -2023,10 +2023,10 @@ const lo = /* @__PURE__ */ co(so), po = "_fadeIn_1qmv6_1", fo = {
2023
2023
  }), [I]), /* @__PURE__ */ j(vr, { children: [
2024
2024
  /* @__PURE__ */ _(hr, { className: D(`${N}__overlay`) }),
2025
2025
  /* @__PURE__ */ j(
2026
- gr,
2026
+ mr,
2027
2027
  {
2028
2028
  ...c,
2029
- className: z,
2029
+ className: U,
2030
2030
  "data-testid": e,
2031
2031
  ref: h,
2032
2032
  ...!a && { "aria-describedby": void 0 },
@@ -2043,7 +2043,7 @@ const lo = /* @__PURE__ */ co(so), po = "_fadeIn_1qmv6_1", fo = {
2043
2043
  "data-testid": T("close-button")
2044
2044
  }
2045
2045
  ),
2046
- /* @__PURE__ */ j("div", { ref: $, className: D(`${N}__wrapper-inner`), children: [
2046
+ /* @__PURE__ */ j("div", { ref: y, className: D(`${N}__wrapper-inner`), children: [
2047
2047
  /* @__PURE__ */ j("div", { className: D(`${N}__header`), children: [
2048
2048
  Qe(l) && f && !u && /* @__PURE__ */ _(
2049
2049
  Je,
@@ -2053,7 +2053,7 @@ const lo = /* @__PURE__ */ co(so), po = "_fadeIn_1qmv6_1", fo = {
2053
2053
  }
2054
2054
  ),
2055
2055
  /* @__PURE__ */ _(
2056
- mr,
2056
+ gr,
2057
2057
  {
2058
2058
  asChild: !0,
2059
2059
  className: D(`${N}__title`),
@@ -2070,10 +2070,10 @@ const lo = /* @__PURE__ */ co(so), po = "_fadeIn_1qmv6_1", fo = {
2070
2070
  children: u
2071
2071
  }
2072
2072
  ),
2073
- /* @__PURE__ */ _("div", { ref: y, className: D(`${N}__body`), children: /* @__PURE__ */ j("div", { ref: S, className: D(`${N}__body-inner`), children: [
2074
- a && i && /* @__PURE__ */ _(uo, { asChild: !0, children: /* @__PURE__ */ _(Ke, { "data-testid": T("description"), children: a }) }),
2073
+ /* @__PURE__ */ _("div", { ref: $, className: D(`${N}__body`), children: /* @__PURE__ */ j("div", { ref: S, className: D(`${N}__body-inner`), children: [
2074
+ a && i && /* @__PURE__ */ _(uo, { asChild: !0, children: /* @__PURE__ */ _(ze, { "data-testid": T("description"), children: a }) }),
2075
2075
  a && !i && /* @__PURE__ */ _(
2076
- Ke,
2076
+ ze,
2077
2077
  {
2078
2078
  asChild: !0,
2079
2079
  className: D(`${N}__description`),
@@ -2126,7 +2126,7 @@ const lo = /* @__PURE__ */ co(so), po = "_fadeIn_1qmv6_1", fo = {
2126
2126
  )) }),
2127
2127
  /* @__PURE__ */ _("span", { className: D(`${N}__actions-separator`) })
2128
2128
  ] }) : null;
2129
- }, go = C(
2129
+ }, mo = C(
2130
2130
  ({ ["data-testid"]: e, children: n, className: t, ...o }, a) => /* @__PURE__ */ _(
2131
2131
  fr,
2132
2132
  {
@@ -2138,16 +2138,16 @@ const lo = /* @__PURE__ */ co(so), po = "_fadeIn_1qmv6_1", fo = {
2138
2138
  children: n
2139
2139
  }
2140
2140
  )
2141
- ), Fe = ({
2141
+ ), ke = ({
2142
2142
  ["data-testid"]: e,
2143
2143
  children: n,
2144
2144
  open: t,
2145
2145
  onOpenChange: o
2146
2146
  }) => /* @__PURE__ */ _(pr, { open: t, onOpenChange: o, "data-testid": e, children: n });
2147
- Fe.Trigger = go;
2148
- Fe.Content = vo;
2149
- Fe.displayName = "Modal";
2147
+ ke.Trigger = mo;
2148
+ ke.Content = vo;
2149
+ ke.displayName = "Modal";
2150
2150
  export {
2151
- Fe as Modal
2151
+ ke as Modal
2152
2152
  };
2153
2153
  //# sourceMappingURL=modal.es.js.map