@purpurds/modal 5.4.3 → 5.6.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 U, jsx as _ } from "react/jsx-runtime";
2
2
  import * as m from "react";
3
- import { useCallback as J, createContext as Oe, useMemo as ge, createElement as g, useContext as nt, useLayoutEffect as It, useRef as C, useEffect as A, useState as K, forwardRef as S, Children as R, isValidElement as z, cloneElement as ie, Fragment as Re, useReducer as Rt } from "react";
4
- import Mt, { flushSync as rt } from "react-dom";
3
+ import { useCallback as Q, createContext as Ce, useMemo as me, createElement as g, useContext as tt, useLayoutEffect as Dt, useRef as C, useEffect as A, useState as V, forwardRef as S, Children as R, isValidElement as z, cloneElement as ae, Fragment as Ie, useReducer as It } from "react";
4
+ import Rt, { flushSync as nt } from "react-dom";
5
5
  function N() {
6
6
  return N = Object.assign ? Object.assign.bind() : function(e) {
7
7
  for (var n = 1; n < arguments.length; n++) {
@@ -18,27 +18,27 @@ function W(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
18
18
  return n == null ? void 0 : n(a);
19
19
  };
20
20
  }
21
- function Lt(e, n) {
21
+ function Mt(e, n) {
22
22
  typeof e == "function" ? e(n) : e != null && (e.current = n);
23
23
  }
24
- function ot(...e) {
24
+ function rt(...e) {
25
25
  return (n) => e.forEach(
26
- (t) => Lt(t, n)
26
+ (t) => Mt(t, n)
27
27
  );
28
28
  }
29
- function ee(...e) {
30
- return J(ot(...e), e);
29
+ function J(...e) {
30
+ return Q(rt(...e), e);
31
31
  }
32
- function kt(e, n = []) {
32
+ function Lt(e, n = []) {
33
33
  let t = [];
34
34
  function o(r, i) {
35
- const u = /* @__PURE__ */ Oe(i), s = t.length;
35
+ const u = /* @__PURE__ */ Ce(i), s = t.length;
36
36
  t = [
37
37
  ...t,
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
  );
@@ -47,7 +47,7 @@ function kt(e, n = []) {
47
47
  }, f);
48
48
  }
49
49
  function p(l, h) {
50
- const f = (h == null ? void 0 : h[e][s]) || u, E = nt(f);
50
+ const f = (h == null ? void 0 : h[e][s]) || u, E = tt(f);
51
51
  if (E)
52
52
  return E;
53
53
  if (i !== void 0)
@@ -60,10 +60,10 @@ function kt(e, n = []) {
60
60
  ];
61
61
  }
62
62
  const a = () => {
63
- const r = t.map((i) => /* @__PURE__ */ Oe(i));
63
+ const r = t.map((i) => /* @__PURE__ */ Ce(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,
@@ -79,10 +79,10 @@ function kt(e, n = []) {
79
79
  };
80
80
  return a.scopeName = e, [
81
81
  o,
82
- Ft(a, ...n)
82
+ kt(a, ...n)
83
83
  ];
84
84
  }
85
- function Ft(...e) {
85
+ function kt(...e) {
86
86
  const n = e[0];
87
87
  if (e.length === 1)
88
88
  return n;
@@ -101,7 +101,7 @@ function Ft(...e) {
101
101
  ...l
102
102
  };
103
103
  }, {});
104
- return ge(
104
+ return me(
105
105
  () => ({
106
106
  [`__scope${n.scopeName}`]: i
107
107
  }),
@@ -113,15 +113,15 @@ function Ft(...e) {
113
113
  };
114
114
  return t.scopeName = n.scopeName, t;
115
115
  }
116
- const Pe = globalThis != null && globalThis.document ? It : () => {
117
- }, jt = m.useId || (() => {
116
+ const Oe = globalThis != null && globalThis.document ? Dt : () => {
117
+ }, Ft = m.useId || (() => {
118
118
  });
119
- let Bt = 0;
120
- function $e(e) {
121
- const [n, t] = m.useState(jt());
122
- return Pe(() => {
119
+ let jt = 0;
120
+ function be(e) {
121
+ const [n, t] = m.useState(Ft());
122
+ return Oe(() => {
123
123
  e || t(
124
- (o) => o ?? String(Bt++)
124
+ (o) => o ?? String(jt++)
125
125
  );
126
126
  }, [
127
127
  e
@@ -131,7 +131,7 @@ function G(e) {
131
131
  const n = C(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);
@@ -139,12 +139,12 @@ function G(e) {
139
139
  []
140
140
  );
141
141
  }
142
- function Ut({ prop: e, defaultProp: n, onChange: t = () => {
142
+ function Bt({ prop: e, defaultProp: n, onChange: t = () => {
143
143
  } }) {
144
- const [o, a] = Wt({
144
+ const [o, a] = Ut({
145
145
  defaultProp: n,
146
146
  onChange: t
147
- }), r = e !== void 0, i = r ? e : o, u = G(t), s = J((d) => {
147
+ }), r = e !== void 0, i = r ? e : o, u = G(t), s = Q((d) => {
148
148
  if (r) {
149
149
  const l = typeof d == "function" ? d(e) : d;
150
150
  l !== e && u(l);
@@ -161,8 +161,8 @@ function Ut({ prop: e, defaultProp: n, onChange: t = () => {
161
161
  s
162
162
  ];
163
163
  }
164
- function Wt({ defaultProp: e, onChange: n }) {
165
- const t = K(e), [o] = t, a = C(o), r = G(n);
164
+ function Ut({ defaultProp: e, onChange: n }) {
165
+ const t = V(e), [o] = t, a = C(o), r = G(n);
166
166
  return A(() => {
167
167
  a.current !== o && (r(o), a.current = o);
168
168
  }, [
@@ -171,32 +171,32 @@ function Wt({ defaultProp: e, onChange: n }) {
171
171
  r
172
172
  ]), t;
173
173
  }
174
- const Me = /* @__PURE__ */ S((e, n) => {
175
- const { children: t, ...o } = e, a = R.toArray(t), r = a.find(qt);
174
+ const Re = /* @__PURE__ */ S((e, n) => {
175
+ const { children: t, ...o } = e, a = R.toArray(t), r = a.find(zt);
176
176
  if (r) {
177
177
  const i = r.props.children, u = a.map((s) => s === r ? R.count(i) > 1 ? R.only(null) : /* @__PURE__ */ z(i) ? i.props.children : null : s);
178
- return /* @__PURE__ */ g(Ne, N({}, o, {
178
+ return /* @__PURE__ */ g(Pe, N({}, o, {
179
179
  ref: n
180
- }), /* @__PURE__ */ z(i) ? /* @__PURE__ */ ie(i, void 0, u) : null);
180
+ }), /* @__PURE__ */ z(i) ? /* @__PURE__ */ ae(i, void 0, u) : null);
181
181
  }
182
- return /* @__PURE__ */ g(Ne, N({}, o, {
182
+ return /* @__PURE__ */ g(Pe, N({}, o, {
183
183
  ref: n
184
184
  }), t);
185
185
  });
186
- Me.displayName = "Slot";
187
- const Ne = /* @__PURE__ */ S((e, n) => {
186
+ Re.displayName = "Slot";
187
+ const Pe = /* @__PURE__ */ S((e, n) => {
188
188
  const { children: t, ...o } = e;
189
- return /* @__PURE__ */ z(t) ? /* @__PURE__ */ ie(t, {
190
- ...Ht(o, t.props),
191
- ref: n ? ot(n, t.ref) : t.ref
189
+ return /* @__PURE__ */ z(t) ? /* @__PURE__ */ ae(t, {
190
+ ...qt(o, t.props),
191
+ ref: n ? rt(n, t.ref) : t.ref
192
192
  }) : R.count(t) > 1 ? R.only(null) : null;
193
193
  });
194
- Ne.displayName = "SlotClone";
195
- const zt = ({ children: e }) => /* @__PURE__ */ g(Re, null, e);
196
- function qt(e) {
197
- return /* @__PURE__ */ z(e) && e.type === zt;
194
+ Pe.displayName = "SlotClone";
195
+ const Wt = ({ children: e }) => /* @__PURE__ */ g(Ie, null, e);
196
+ function zt(e) {
197
+ return /* @__PURE__ */ z(e) && e.type === Wt;
198
198
  }
199
- function Ht(e, n) {
199
+ function qt(e, n) {
200
200
  const t = {
201
201
  ...n
202
202
  };
@@ -217,7 +217,7 @@ function Ht(e, n) {
217
217
  ...t
218
218
  };
219
219
  }
220
- const Vt = [
220
+ const Ht = [
221
221
  "a",
222
222
  "button",
223
223
  "div",
@@ -234,9 +234,9 @@ const Vt = [
234
234
  "span",
235
235
  "svg",
236
236
  "ul"
237
- ], q = Vt.reduce((e, n) => {
237
+ ], q = Ht.reduce((e, n) => {
238
238
  const t = /* @__PURE__ */ S((o, a) => {
239
- const { asChild: r, ...i } = o, u = r ? Me : n;
239
+ const { asChild: r, ...i } = o, u = r ? Re : n;
240
240
  return A(() => {
241
241
  window[Symbol.for("radix-ui")] = !0;
242
242
  }, []), /* @__PURE__ */ g(u, N({}, i, {
@@ -248,8 +248,8 @@ const Vt = [
248
248
  [n]: t
249
249
  };
250
250
  }, {});
251
- function Kt(e, n) {
252
- e && rt(
251
+ function Vt(e, n) {
252
+ e && nt(
253
253
  () => e.dispatchEvent(n)
254
254
  );
255
255
  }
@@ -265,27 +265,27 @@ function Gt(e, n = globalThis == null ? void 0 : globalThis.document) {
265
265
  n
266
266
  ]);
267
267
  }
268
- const Ae = "dismissableLayer.update", Xt = "dismissableLayer.pointerDownOutside", Yt = "dismissableLayer.focusOutside";
269
- let je;
270
- const Zt = /* @__PURE__ */ Oe({
268
+ const Ne = "dismissableLayer.update", Kt = "dismissableLayer.pointerDownOutside", Xt = "dismissableLayer.focusOutside";
269
+ let Fe;
270
+ const Yt = /* @__PURE__ */ Ce({
271
271
  layers: /* @__PURE__ */ new Set(),
272
272
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
273
273
  branches: /* @__PURE__ */ new Set()
274
- }), Qt = /* @__PURE__ */ S((e, n) => {
274
+ }), Zt = /* @__PURE__ */ S((e, n) => {
275
275
  var t;
276
- const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: a, onPointerDownOutside: r, onFocusOutside: i, onInteractOutside: u, onDismiss: s, ...d } = e, p = nt(Zt), [l, h] = K(null), f = (t = l == null ? void 0 : l.ownerDocument) !== null && t !== void 0 ? t : globalThis == null ? void 0 : globalThis.document, [, E] = K({}), c = ee(
276
+ const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: a, onPointerDownOutside: r, onFocusOutside: i, onInteractOutside: u, onDismiss: s, ...d } = e, p = tt(Yt), [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(
277
277
  n,
278
278
  (w) => h(w)
279
279
  ), v = Array.from(p.layers), [b] = [
280
280
  ...p.layersWithOutsidePointerEventsDisabled
281
- ].slice(-1), O = v.indexOf(b), y = l ? v.indexOf(l) : -1, $ = p.layersWithOutsidePointerEventsDisabled.size > 0, x = y >= O, F = Jt((w) => {
282
- const D = w.target, ue = [
281
+ ].slice(-1), O = v.indexOf(b), y = l ? v.indexOf(l) : -1, $ = p.layersWithOutsidePointerEventsDisabled.size > 0, x = y >= O, F = Qt((w) => {
282
+ const D = w.target, ie = [
283
283
  ...p.branches
284
284
  ].some(
285
285
  (L) => L.contains(D)
286
286
  );
287
- !x || ue || (r == null || r(w), u == null || u(w), w.defaultPrevented || s == null || s());
288
- }, f), I = en((w) => {
287
+ !x || ie || (r == null || r(w), u == null || u(w), w.defaultPrevented || s == null || s());
288
+ }, f), I = Jt((w) => {
289
289
  const D = w.target;
290
290
  [
291
291
  ...p.branches
@@ -297,8 +297,8 @@ const Zt = /* @__PURE__ */ Oe({
297
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 && (je = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), p.layersWithOutsidePointerEventsDisabled.add(l)), p.layers.add(l), Be(), () => {
301
- o && p.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = je);
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,
@@ -306,13 +306,13 @@ const Zt = /* @__PURE__ */ Oe({
306
306
  o,
307
307
  p
308
308
  ]), A(() => () => {
309
- l && (p.layers.delete(l), p.layersWithOutsidePointerEventsDisabled.delete(l), Be());
309
+ l && (p.layers.delete(l), p.layersWithOutsidePointerEventsDisabled.delete(l), je());
310
310
  }, [
311
311
  l,
312
312
  p
313
313
  ]), A(() => {
314
314
  const w = () => E({});
315
- return document.addEventListener(Ae, w), () => document.removeEventListener(Ae, w);
315
+ return document.addEventListener(Ne, w), () => document.removeEventListener(Ne, w);
316
316
  }, []), /* @__PURE__ */ g(q.div, N({}, d, {
317
317
  ref: c,
318
318
  style: {
@@ -324,14 +324,14 @@ const Zt = /* @__PURE__ */ Oe({
324
324
  onPointerDownCapture: W(e.onPointerDownCapture, F.onPointerDownCapture)
325
325
  }));
326
326
  });
327
- function Jt(e, n = globalThis == null ? void 0 : globalThis.document) {
327
+ function Qt(e, n = globalThis == null ? void 0 : globalThis.document) {
328
328
  const t = G(e), o = C(!1), a = C(() => {
329
329
  });
330
330
  return A(() => {
331
331
  const r = (u) => {
332
332
  if (u.target && !o.current) {
333
333
  let d = function() {
334
- at(Xt, t, s, {
334
+ ot(Kt, t, s, {
335
335
  discrete: !0
336
336
  });
337
337
  };
@@ -358,11 +358,11 @@ function Jt(e, n = globalThis == null ? void 0 : globalThis.document) {
358
358
  onPointerDownCapture: () => o.current = !0
359
359
  };
360
360
  }
361
- function en(e, n = globalThis == null ? void 0 : globalThis.document) {
361
+ function Jt(e, n = globalThis == null ? void 0 : globalThis.document) {
362
362
  const t = G(e), o = C(!1);
363
363
  return A(() => {
364
364
  const a = (r) => {
365
- r.target && !o.current && at(Yt, t, {
365
+ r.target && !o.current && ot(Xt, t, {
366
366
  originalEvent: r
367
367
  }, {
368
368
  discrete: !1
@@ -377,11 +377,11 @@ function en(e, n = globalThis == null ? void 0 : globalThis.document) {
377
377
  onBlurCapture: () => o.current = !1
378
378
  };
379
379
  }
380
- function Be() {
381
- const e = new CustomEvent(Ae);
380
+ function je() {
381
+ const e = new CustomEvent(Ne);
382
382
  document.dispatchEvent(e);
383
383
  }
384
- function at(e, n, t, { discrete: o }) {
384
+ function ot(e, n, t, { discrete: o }) {
385
385
  const a = t.originalEvent.target, r = new CustomEvent(e, {
386
386
  bubbles: !1,
387
387
  cancelable: !0,
@@ -389,13 +389,13 @@ function at(e, n, t, { discrete: o }) {
389
389
  });
390
390
  n && a.addEventListener(e, n, {
391
391
  once: !0
392
- }), o ? Kt(a, r) : a.dispatchEvent(r);
392
+ }), o ? Vt(a, r) : a.dispatchEvent(r);
393
393
  }
394
- const ye = "focusScope.autoFocusOnMount", Ee = "focusScope.autoFocusOnUnmount", Ue = {
394
+ const $e = "focusScope.autoFocusOnMount", ye = "focusScope.autoFocusOnUnmount", Be = {
395
395
  bubbles: !1,
396
396
  cancelable: !0
397
- }, tn = /* @__PURE__ */ S((e, n) => {
398
- const { loop: t = !1, trapped: o = !1, onMountAutoFocus: a, onUnmountAutoFocus: r, ...i } = e, [u, s] = K(null), d = G(a), p = G(r), l = C(null), h = ee(
397
+ }, en = /* @__PURE__ */ S((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 = C(null), h = J(
399
399
  n,
400
400
  (c) => s(c)
401
401
  ), f = C({
@@ -443,20 +443,20 @@ const ye = "focusScope.autoFocusOnMount", Ee = "focusScope.autoFocusOnUnmount",
443
443
  f.paused
444
444
  ]), A(() => {
445
445
  if (u) {
446
- ze.add(f);
446
+ We.add(f);
447
447
  const c = document.activeElement;
448
448
  if (!u.contains(c)) {
449
- const b = new CustomEvent(ye, Ue);
450
- u.addEventListener(ye, d), u.dispatchEvent(b), b.defaultPrevented || (nn(cn(it(u)), {
449
+ const b = new CustomEvent($e, Be);
450
+ u.addEventListener($e, d), u.dispatchEvent(b), b.defaultPrevented || (tn(un(at(u)), {
451
451
  select: !0
452
452
  }), document.activeElement === c && B(u));
453
453
  }
454
454
  return () => {
455
- u.removeEventListener(ye, d), setTimeout(() => {
456
- const b = new CustomEvent(Ee, Ue);
457
- u.addEventListener(Ee, p), u.dispatchEvent(b), b.defaultPrevented || B(c ?? document.body, {
455
+ u.removeEventListener($e, d), setTimeout(() => {
456
+ const b = new CustomEvent(ye, Be);
457
+ u.addEventListener(ye, p), u.dispatchEvent(b), b.defaultPrevented || B(c ?? document.body, {
458
458
  select: !0
459
- }), u.removeEventListener(Ee, p), ze.remove(f);
459
+ }), u.removeEventListener(ye, p), We.remove(f);
460
460
  }, 0);
461
461
  };
462
462
  }
@@ -466,12 +466,12 @@ const ye = "focusScope.autoFocusOnMount", Ee = "focusScope.autoFocusOnUnmount",
466
466
  p,
467
467
  f
468
468
  ]);
469
- const E = J((c) => {
469
+ const E = Q((c) => {
470
470
  if (!t && !o || f.paused)
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 O = c.currentTarget, [y, $] = rn(O);
474
+ const O = c.currentTarget, [y, $] = nn(O);
475
475
  y && $ ? !c.shiftKey && b === $ ? (c.preventDefault(), t && B(y, {
476
476
  select: !0
477
477
  })) : c.shiftKey && b === y && (c.preventDefault(), t && B($, {
@@ -490,7 +490,7 @@ const ye = "focusScope.autoFocusOnMount", Ee = "focusScope.autoFocusOnUnmount",
490
490
  onKeyDown: E
491
491
  }));
492
492
  });
493
- function nn(e, { select: n = !1 } = {}) {
493
+ function tn(e, { select: n = !1 } = {}) {
494
494
  const t = document.activeElement;
495
495
  for (const o of e)
496
496
  if (B(o, {
@@ -498,14 +498,14 @@ function nn(e, { select: n = !1 } = {}) {
498
498
  }), document.activeElement !== t)
499
499
  return;
500
500
  }
501
- function rn(e) {
502
- const n = it(e), t = We(n, e), o = We(n.reverse(), e);
501
+ function nn(e) {
502
+ const n = at(e), t = Ue(n, e), o = Ue(n.reverse(), e);
503
503
  return [
504
504
  t,
505
505
  o
506
506
  ];
507
507
  }
508
- function it(e) {
508
+ function at(e) {
509
509
  const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
510
510
  acceptNode: (o) => {
511
511
  const a = o.tagName === "INPUT" && o.type === "hidden";
@@ -516,14 +516,14 @@ function it(e) {
516
516
  n.push(t.currentNode);
517
517
  return n;
518
518
  }
519
- function We(e, n) {
519
+ function Ue(e, n) {
520
520
  for (const t of e)
521
- if (!on(t, {
521
+ if (!rn(t, {
522
522
  upTo: n
523
523
  }))
524
524
  return t;
525
525
  }
526
- function on(e, { upTo: n }) {
526
+ function rn(e, { upTo: n }) {
527
527
  if (getComputedStyle(e).visibility === "hidden")
528
528
  return !0;
529
529
  for (; e; ) {
@@ -535,7 +535,7 @@ function on(e, { upTo: n }) {
535
535
  }
536
536
  return !1;
537
537
  }
538
- function an(e) {
538
+ function on(e) {
539
539
  return e instanceof HTMLInputElement && "select" in e;
540
540
  }
541
541
  function B(e, { select: n = !1 } = {}) {
@@ -543,58 +543,58 @@ function B(e, { select: n = !1 } = {}) {
543
543
  const t = document.activeElement;
544
544
  e.focus({
545
545
  preventScroll: !0
546
- }), e !== t && an(e) && n && e.select();
546
+ }), e !== t && on(e) && n && e.select();
547
547
  }
548
548
  }
549
- const ze = un();
550
- function un() {
549
+ const We = an();
550
+ function an() {
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 = qe(e, n), e.unshift(n);
555
+ n !== t && (t == null || t.pause()), e = ze(e, n), e.unshift(n);
556
556
  },
557
557
  remove(n) {
558
558
  var t;
559
- e = qe(e, n), (t = e[0]) === null || t === void 0 || t.resume();
559
+ e = ze(e, n), (t = e[0]) === null || t === void 0 || t.resume();
560
560
  }
561
561
  };
562
562
  }
563
- function qe(e, n) {
563
+ function ze(e, n) {
564
564
  const t = [
565
565
  ...e
566
566
  ], o = t.indexOf(n);
567
567
  return o !== -1 && t.splice(o, 1), t;
568
568
  }
569
- function cn(e) {
569
+ function un(e) {
570
570
  return e.filter(
571
571
  (n) => n.tagName !== "A"
572
572
  );
573
573
  }
574
- const sn = /* @__PURE__ */ S((e, n) => {
574
+ const cn = /* @__PURE__ */ S((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__ */ Mt.createPortal(/* @__PURE__ */ g(q.div, N({}, a, {
577
+ return o ? /* @__PURE__ */ Rt.createPortal(/* @__PURE__ */ g(q.div, N({}, a, {
578
578
  ref: n
579
579
  })), o) : null;
580
580
  });
581
- function ln(e, n) {
582
- return Rt((t, o) => {
581
+ function sn(e, n) {
582
+ return It((t, o) => {
583
583
  const a = n[t][o];
584
584
  return a ?? t;
585
585
  }, e);
586
586
  }
587
- const _e = (e) => {
588
- const { present: n, children: t } = e, o = dn(n), a = typeof t == "function" ? t({
587
+ const ge = (e) => {
588
+ const { present: n, children: t } = e, o = ln(n), a = typeof t == "function" ? t({
589
589
  present: o.isPresent
590
- }) : R.only(t), r = ee(o.ref, a.ref);
591
- return typeof t == "function" || o.isPresent ? /* @__PURE__ */ ie(a, {
590
+ }) : R.only(t), r = J(o.ref, a.ref);
591
+ return typeof t == "function" || o.isPresent ? /* @__PURE__ */ ae(a, {
592
592
  ref: r
593
593
  }) : null;
594
594
  };
595
- _e.displayName = "Presence";
596
- function dn(e) {
597
- const [n, t] = K(), o = C({}), a = C(e), r = C("none"), i = e ? "mounted" : "unmounted", [u, s] = ln(i, {
595
+ ge.displayName = "Presence";
596
+ function ln(e) {
597
+ const [n, t] = V(), o = C({}), a = C(e), r = C("none"), i = e ? "mounted" : "unmounted", [u, s] = sn(i, {
598
598
  mounted: {
599
599
  UNMOUNT: "unmounted",
600
600
  ANIMATION_OUT: "unmountSuspended"
@@ -608,28 +608,28 @@ function dn(e) {
608
608
  }
609
609
  });
610
610
  return A(() => {
611
- const d = ce(o.current);
611
+ const d = ue(o.current);
612
612
  r.current = u === "mounted" ? d : "none";
613
613
  }, [
614
614
  u
615
- ]), Pe(() => {
615
+ ]), Oe(() => {
616
616
  const d = o.current, p = a.current;
617
617
  if (p !== e) {
618
- const h = r.current, f = ce(d);
618
+ const h = r.current, f = ue(d);
619
619
  e ? s("MOUNT") : f === "none" || (d == null ? void 0 : d.display) === "none" ? s("UNMOUNT") : s(p && h !== f ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
620
620
  }
621
621
  }, [
622
622
  e,
623
623
  s
624
- ]), Pe(() => {
624
+ ]), Oe(() => {
625
625
  if (n) {
626
626
  const d = (l) => {
627
- const f = ce(o.current).includes(l.animationName);
628
- l.target === n && f && rt(
627
+ const f = ue(o.current).includes(l.animationName);
628
+ l.target === n && f && nt(
629
629
  () => s("ANIMATION_END")
630
630
  );
631
631
  }, p = (l) => {
632
- l.target === n && (r.current = ce(o.current));
632
+ l.target === n && (r.current = ue(o.current));
633
633
  };
634
634
  return n.addEventListener("animationstart", p), n.addEventListener("animationcancel", d), n.addEventListener("animationend", d), () => {
635
635
  n.removeEventListener("animationstart", p), n.removeEventListener("animationcancel", d), n.removeEventListener("animationend", d);
@@ -644,27 +644,27 @@ function dn(e) {
644
644
  "mounted",
645
645
  "unmountSuspended"
646
646
  ].includes(u),
647
- ref: J((d) => {
647
+ ref: Q((d) => {
648
648
  d && (o.current = getComputedStyle(d)), t(d);
649
649
  }, [])
650
650
  };
651
651
  }
652
- function ce(e) {
652
+ function ue(e) {
653
653
  return (e == null ? void 0 : e.animationName) || "none";
654
654
  }
655
- let we = 0;
656
- function pn() {
655
+ let Ee = 0;
656
+ function dn() {
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 : He()), document.body.insertAdjacentElement("beforeend", (n = t[1]) !== null && n !== void 0 ? n : He()), we++, () => {
661
- we === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach(
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++, () => {
661
+ Ee === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach(
662
662
  (o) => o.remove()
663
- ), we--;
663
+ ), Ee--;
664
664
  };
665
665
  }, []);
666
666
  }
667
- function He() {
667
+ function qe() {
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
  }
@@ -678,7 +678,7 @@ var k = function() {
678
678
  return n;
679
679
  }, k.apply(this, arguments);
680
680
  };
681
- function ut(e, n) {
681
+ function it(e, n) {
682
682
  var t = {};
683
683
  for (var o in e)
684
684
  Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
@@ -687,18 +687,18 @@ function ut(e, n) {
687
687
  n.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (t[o[a]] = e[o[a]]);
688
688
  return t;
689
689
  }
690
- function fn(e, n, t) {
690
+ function pn(e, n, t) {
691
691
  if (t || arguments.length === 2)
692
692
  for (var o = 0, a = n.length, r; o < a; o++)
693
693
  (r || !(o in n)) && (r || (r = Array.prototype.slice.call(n, 0, o)), r[o] = n[o]);
694
694
  return e.concat(r || Array.prototype.slice.call(n));
695
695
  }
696
- var he = "right-scroll-bar-position", me = "width-before-scroll-bar", vn = "with-scroll-bars-hidden", hn = "--removed-body-scroll-bar-size";
697
- function mn(e, n) {
696
+ var ve = "right-scroll-bar-position", he = "width-before-scroll-bar", fn = "with-scroll-bars-hidden", vn = "--removed-body-scroll-bar-size";
697
+ function hn(e, n) {
698
698
  return typeof e == "function" ? e(n) : e && (e.current = n), e;
699
699
  }
700
- function gn(e, n) {
701
- var t = K(function() {
700
+ function mn(e, n) {
701
+ var t = V(function() {
702
702
  return {
703
703
  // value
704
704
  value: e,
@@ -718,18 +718,18 @@ function gn(e, n) {
718
718
  })[0];
719
719
  return t.callback = n, t.facade;
720
720
  }
721
- function _n(e, n) {
722
- return gn(null, function(t) {
721
+ function gn(e, n) {
722
+ return mn(null, function(t) {
723
723
  return e.forEach(function(o) {
724
- return mn(o, t);
724
+ return hn(o, t);
725
725
  });
726
726
  });
727
727
  }
728
- function bn(e) {
728
+ function _n(e) {
729
729
  return e;
730
730
  }
731
- function $n(e, n) {
732
- n === void 0 && (n = bn);
731
+ function bn(e, n) {
732
+ n === void 0 && (n = _n);
733
733
  var t = [], o = !1, a = {
734
734
  read: function() {
735
735
  if (o)
@@ -783,13 +783,13 @@ function $n(e, n) {
783
783
  };
784
784
  return a;
785
785
  }
786
- function yn(e) {
786
+ function $n(e) {
787
787
  e === void 0 && (e = {});
788
- var n = $n(null);
788
+ var n = bn(null);
789
789
  return n.options = k({ async: !0, ssr: !1 }, e), n;
790
790
  }
791
- var ct = function(e) {
792
- var n = e.sideCar, t = ut(e, ["sideCar"]);
791
+ var ut = function(e) {
792
+ var n = e.sideCar, t = it(e, ["sideCar"]);
793
793
  if (!n)
794
794
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
795
795
  var o = n.read();
@@ -797,64 +797,64 @@ var ct = function(e) {
797
797
  throw new Error("Sidecar medium not found");
798
798
  return m.createElement(o, k({}, t));
799
799
  };
800
- ct.isSideCarExport = !0;
801
- function En(e, n) {
802
- return e.useMedium(n), ct;
800
+ ut.isSideCarExport = !0;
801
+ function yn(e, n) {
802
+ return e.useMedium(n), ut;
803
803
  }
804
- var st = yn(), xe = function() {
805
- }, be = m.forwardRef(function(e, n) {
804
+ var ct = $n(), we = function() {
805
+ }, _e = m.forwardRef(function(e, n) {
806
806
  var t = m.useRef(null), o = m.useState({
807
- onScrollCapture: xe,
808
- onWheelCapture: xe,
809
- onTouchMoveCapture: xe
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, O = ut(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), y = h, $ = _n([t, n]), x = k(k({}, O), a);
807
+ onScrollCapture: we,
808
+ onWheelCapture: we,
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, O = it(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), y = h, $ = gn([t, n]), x = k(k({}, O), a);
811
811
  return m.createElement(
812
812
  m.Fragment,
813
813
  null,
814
- p && m.createElement(y, { sideCar: st, removeScrollBar: d, shards: l, noIsolation: f, inert: E, setCallbacks: r, allowPinchZoom: !!c, lockRef: t }),
814
+ p && m.createElement(y, { sideCar: ct, removeScrollBar: d, shards: l, noIsolation: f, inert: E, setCallbacks: r, allowPinchZoom: !!c, lockRef: t }),
815
815
  i ? m.cloneElement(m.Children.only(u), k(k({}, x), { ref: $ })) : m.createElement(b, k({}, x, { className: s, ref: $ }), u)
816
816
  );
817
817
  });
818
- be.defaultProps = {
818
+ _e.defaultProps = {
819
819
  enabled: !0,
820
820
  removeScrollBar: !0,
821
821
  inert: !1
822
822
  };
823
- be.classNames = {
824
- fullWidth: me,
825
- zeroRight: he
823
+ _e.classNames = {
824
+ fullWidth: he,
825
+ zeroRight: ve
826
826
  };
827
- var wn = function() {
827
+ var En = function() {
828
828
  if (typeof __webpack_nonce__ < "u")
829
829
  return __webpack_nonce__;
830
830
  };
831
- function xn() {
831
+ function wn() {
832
832
  if (!document)
833
833
  return null;
834
834
  var e = document.createElement("style");
835
835
  e.type = "text/css";
836
- var n = wn();
836
+ var n = En();
837
837
  return n && e.setAttribute("nonce", n), e;
838
838
  }
839
- function Sn(e, n) {
839
+ function xn(e, n) {
840
840
  e.styleSheet ? e.styleSheet.cssText = n : e.appendChild(document.createTextNode(n));
841
841
  }
842
- function Cn(e) {
842
+ function Sn(e) {
843
843
  var n = document.head || document.getElementsByTagName("head")[0];
844
844
  n.appendChild(e);
845
845
  }
846
- var On = function() {
846
+ var Cn = function() {
847
847
  var e = 0, n = null;
848
848
  return {
849
849
  add: function(t) {
850
- e == 0 && (n = xn()) && (Sn(n, t), Cn(n)), e++;
850
+ e == 0 && (n = wn()) && (xn(n, t), Sn(n)), e++;
851
851
  },
852
852
  remove: function() {
853
853
  e--, !e && n && (n.parentNode && n.parentNode.removeChild(n), n = null);
854
854
  }
855
855
  };
856
- }, Pn = function() {
857
- var e = On();
856
+ }, On = function() {
857
+ var e = Cn();
858
858
  return function(n, t) {
859
859
  m.useEffect(function() {
860
860
  return e.add(n), function() {
@@ -862,36 +862,36 @@ var On = function() {
862
862
  };
863
863
  }, [n && t]);
864
864
  };
865
- }, lt = function() {
866
- var e = Pn(), n = function(t) {
865
+ }, st = function() {
866
+ var e = On(), n = function(t) {
867
867
  var o = t.styles, a = t.dynamic;
868
868
  return e(o, a), null;
869
869
  };
870
870
  return n;
871
- }, Nn = {
871
+ }, Pn = {
872
872
  left: 0,
873
873
  top: 0,
874
874
  right: 0,
875
875
  gap: 0
876
- }, Se = function(e) {
876
+ }, xe = function(e) {
877
877
  return parseInt(e || "", 10) || 0;
878
- }, An = function(e) {
878
+ }, Nn = function(e) {
879
879
  var n = window.getComputedStyle(document.body), t = n[e === "padding" ? "paddingLeft" : "marginLeft"], o = n[e === "padding" ? "paddingTop" : "marginTop"], a = n[e === "padding" ? "paddingRight" : "marginRight"];
880
- return [Se(t), Se(o), Se(a)];
881
- }, Tn = function(e) {
880
+ return [xe(t), xe(o), xe(a)];
881
+ }, An = function(e) {
882
882
  if (e === void 0 && (e = "margin"), typeof window > "u")
883
- return Nn;
884
- var n = An(e), t = document.documentElement.clientWidth, o = window.innerWidth;
883
+ return Pn;
884
+ var n = Nn(e), t = document.documentElement.clientWidth, o = window.innerWidth;
885
885
  return {
886
886
  left: n[0],
887
887
  top: n[1],
888
888
  right: n[2],
889
889
  gap: Math.max(0, o - t + n[2] - n[0])
890
890
  };
891
- }, Dn = lt(), In = function(e, n, t, o) {
891
+ }, Tn = st(), Dn = function(e, n, t, o) {
892
892
  var a = e.left, r = e.top, i = e.right, u = e.gap;
893
893
  return t === void 0 && (t = "margin"), `
894
- .`.concat(vn, ` {
894
+ .`.concat(fn, ` {
895
895
  overflow: hidden `).concat(o, `;
896
896
  padding-right: `).concat(u, "px ").concat(o, `;
897
897
  }
@@ -912,124 +912,124 @@ var On = function() {
912
912
  ].filter(Boolean).join(""), `
913
913
  }
914
914
 
915
- .`).concat(he, ` {
915
+ .`).concat(ve, ` {
916
916
  right: `).concat(u, "px ").concat(o, `;
917
917
  }
918
918
 
919
- .`).concat(me, ` {
919
+ .`).concat(he, ` {
920
920
  margin-right: `).concat(u, "px ").concat(o, `;
921
921
  }
922
922
 
923
- .`).concat(he, " .").concat(he, ` {
923
+ .`).concat(ve, " .").concat(ve, ` {
924
924
  right: 0 `).concat(o, `;
925
925
  }
926
926
 
927
- .`).concat(me, " .").concat(me, ` {
927
+ .`).concat(he, " .").concat(he, ` {
928
928
  margin-right: 0 `).concat(o, `;
929
929
  }
930
930
 
931
931
  body {
932
- `).concat(hn, ": ").concat(u, `px;
932
+ `).concat(vn, ": ").concat(u, `px;
933
933
  }
934
934
  `);
935
- }, Rn = function(e) {
935
+ }, In = function(e) {
936
936
  var n = e.noRelative, t = e.noImportant, o = e.gapMode, a = o === void 0 ? "margin" : o, r = m.useMemo(function() {
937
- return Tn(a);
937
+ return An(a);
938
938
  }, [a]);
939
- return m.createElement(Dn, { styles: In(r, !n, a, t ? "" : "!important") });
940
- }, Te = !1;
939
+ return m.createElement(Tn, { styles: Dn(r, !n, a, t ? "" : "!important") });
940
+ }, Ae = !1;
941
941
  if (typeof window < "u")
942
942
  try {
943
- var se = Object.defineProperty({}, "passive", {
943
+ var ce = Object.defineProperty({}, "passive", {
944
944
  get: function() {
945
- return Te = !0, !0;
945
+ return Ae = !0, !0;
946
946
  }
947
947
  });
948
- window.addEventListener("test", se, se), window.removeEventListener("test", se, se);
948
+ window.addEventListener("test", ce, ce), window.removeEventListener("test", ce, ce);
949
949
  } catch {
950
- Te = !1;
950
+ Ae = !1;
951
951
  }
952
- var X = Te ? { passive: !1 } : !1, Mn = function(e) {
952
+ var K = Ae ? { passive: !1 } : !1, Rn = function(e) {
953
953
  return e.tagName === "TEXTAREA";
954
- }, dt = function(e, n) {
954
+ }, lt = function(e, n) {
955
955
  var t = window.getComputedStyle(e);
956
956
  return (
957
957
  // not-not-scrollable
958
958
  t[n] !== "hidden" && // contains scroll inside self
959
- !(t.overflowY === t.overflowX && !Mn(e) && t[n] === "visible")
959
+ !(t.overflowY === t.overflowX && !Rn(e) && t[n] === "visible")
960
960
  );
961
+ }, Mn = function(e) {
962
+ return lt(e, "overflowY");
961
963
  }, Ln = function(e) {
962
- return dt(e, "overflowY");
963
- }, kn = function(e) {
964
- return dt(e, "overflowX");
965
- }, Ve = function(e, n) {
964
+ return lt(e, "overflowX");
965
+ }, He = function(e, n) {
966
966
  var t = n;
967
967
  do {
968
968
  typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
969
- var o = pt(e, t);
969
+ var o = dt(e, t);
970
970
  if (o) {
971
- var a = ft(e, t), r = a[1], i = a[2];
971
+ var a = pt(e, t), r = a[1], i = a[2];
972
972
  if (r > i)
973
973
  return !0;
974
974
  }
975
975
  t = t.parentNode;
976
976
  } while (t && t !== document.body);
977
977
  return !1;
978
- }, Fn = function(e) {
978
+ }, kn = function(e) {
979
979
  var n = e.scrollTop, t = e.scrollHeight, o = e.clientHeight;
980
980
  return [
981
981
  n,
982
982
  t,
983
983
  o
984
984
  ];
985
- }, jn = function(e) {
985
+ }, Fn = function(e) {
986
986
  var n = e.scrollLeft, t = e.scrollWidth, o = e.clientWidth;
987
987
  return [
988
988
  n,
989
989
  t,
990
990
  o
991
991
  ];
992
+ }, dt = function(e, n) {
993
+ return e === "v" ? Mn(n) : Ln(n);
992
994
  }, pt = function(e, n) {
993
- return e === "v" ? Ln(n) : kn(n);
994
- }, ft = function(e, n) {
995
- return e === "v" ? Fn(n) : jn(n);
996
- }, Bn = function(e, n) {
995
+ return e === "v" ? kn(n) : Fn(n);
996
+ }, jn = function(e, n) {
997
997
  return e === "h" && n === "rtl" ? -1 : 1;
998
- }, Un = function(e, n, t, o, a) {
999
- var r = Bn(e, window.getComputedStyle(n).direction), i = r * o, u = t.target, s = n.contains(u), d = !1, p = i > 0, l = 0, h = 0;
998
+ }, Bn = function(e, n, t, o, a) {
999
+ var r = jn(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
- var f = ft(e, u), E = f[0], c = f[1], v = f[2], b = c - v - r * E;
1002
- (E || b) && pt(e, u) && (l += b, h += E), u = u.parentNode;
1001
+ var f = pt(e, u), E = f[0], c = f[1], v = f[2], b = c - v - r * E;
1002
+ (E || b) && dt(e, u) && (l += b, h += E), u = u.parentNode;
1003
1003
  } while (
1004
1004
  // portaled content
1005
1005
  !s && u !== document.body || // self content
1006
1006
  s && (n.contains(u) || n === u)
1007
1007
  );
1008
1008
  return (p && (l === 0 || !a) || !p && (h === 0 || !a)) && (d = !0), d;
1009
- }, le = function(e) {
1009
+ }, se = function(e) {
1010
1010
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
1011
- }, Ke = function(e) {
1011
+ }, Ve = function(e) {
1012
1012
  return [e.deltaX, e.deltaY];
1013
1013
  }, Ge = function(e) {
1014
1014
  return e && "current" in e ? e.current : e;
1015
- }, Wn = function(e, n) {
1015
+ }, Un = function(e, n) {
1016
1016
  return e[0] === n[0] && e[1] === n[1];
1017
- }, zn = function(e) {
1017
+ }, Wn = 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
- }, qn = 0, Y = [];
1023
- function Hn(e) {
1024
- var n = m.useRef([]), t = m.useRef([0, 0]), o = m.useRef(), a = m.useState(qn++)[0], r = m.useState(function() {
1025
- return lt();
1022
+ }, zn = 0, X = [];
1023
+ function qn(e) {
1024
+ var n = m.useRef([]), t = m.useRef([0, 0]), o = m.useRef(), a = m.useState(zn++)[0], r = m.useState(function() {
1025
+ return st();
1026
1026
  })[0], i = m.useRef(e);
1027
1027
  m.useEffect(function() {
1028
1028
  i.current = e;
1029
1029
  }, [e]), m.useEffect(function() {
1030
1030
  if (e.inert) {
1031
1031
  document.body.classList.add("block-interactivity-".concat(a));
1032
- var c = fn([e.lockRef.current], (e.shards || []).map(Ge), !0).filter(Boolean);
1032
+ var c = pn([e.lockRef.current], (e.shards || []).map(Ge), !0).filter(Boolean);
1033
1033
  return c.forEach(function(v) {
1034
1034
  return v.classList.add("allow-interactivity-".concat(a));
1035
1035
  }), function() {
@@ -1042,23 +1042,23 @@ function Hn(e) {
1042
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 = le(c), O = t.current, y = "deltaX" in c ? c.deltaX : O[0] - b[0], $ = "deltaY" in c ? c.deltaY : O[1] - b[1], x, F = c.target, I = Math.abs(y) > Math.abs($) ? "h" : "v";
1045
+ var b = se(c), O = t.current, y = "deltaX" in c ? c.deltaX : O[0] - b[0], $ = "deltaY" in c ? c.deltaY : O[1] - b[1], x, F = c.target, I = Math.abs(y) > Math.abs($) ? "h" : "v";
1046
1046
  if ("touches" in c && I === "h" && F.type === "range")
1047
1047
  return !1;
1048
- var w = Ve(I, F);
1048
+ var w = He(I, F);
1049
1049
  if (!w)
1050
1050
  return !0;
1051
- if (w ? x = I : (x = I === "v" ? "h" : "v", w = Ve(I, F)), !w)
1051
+ if (w ? x = I : (x = I === "v" ? "h" : "v", w = He(I, F)), !w)
1052
1052
  return !1;
1053
1053
  if (!o.current && "changedTouches" in c && (y || $) && (o.current = x), !x)
1054
1054
  return !0;
1055
1055
  var D = o.current || x;
1056
- return Un(D, v, c, D === "h" ? y : $, !0);
1056
+ return Bn(D, v, c, D === "h" ? y : $, !0);
1057
1057
  }, []), s = m.useCallback(function(c) {
1058
1058
  var v = c;
1059
- if (!(!Y.length || Y[Y.length - 1] !== r)) {
1060
- var b = "deltaY" in v ? Ke(v) : le(v), O = n.current.filter(function(x) {
1061
- return x.name === v.type && x.target === v.target && Wn(x.delta, b);
1059
+ if (!(!X.length || X[X.length - 1] !== r)) {
1060
+ var b = "deltaY" in v ? Ve(v) : se(v), O = n.current.filter(function(x) {
1061
+ return x.name === v.type && x.target === v.target && Un(x.delta, b);
1062
1062
  })[0];
1063
1063
  if (O && O.should) {
1064
1064
  v.cancelable && v.preventDefault();
@@ -1079,56 +1079,56 @@ function Hn(e) {
1079
1079
  });
1080
1080
  }, 1);
1081
1081
  }, []), p = m.useCallback(function(c) {
1082
- t.current = le(c), o.current = void 0;
1082
+ t.current = se(c), o.current = void 0;
1083
1083
  }, []), l = m.useCallback(function(c) {
1084
- d(c.type, Ke(c), c.target, u(c, e.lockRef.current));
1084
+ d(c.type, Ve(c), c.target, u(c, e.lockRef.current));
1085
1085
  }, []), h = m.useCallback(function(c) {
1086
- d(c.type, le(c), c.target, u(c, e.lockRef.current));
1086
+ d(c.type, se(c), c.target, u(c, e.lockRef.current));
1087
1087
  }, []);
1088
1088
  m.useEffect(function() {
1089
- return Y.push(r), e.setCallbacks({
1089
+ return X.push(r), e.setCallbacks({
1090
1090
  onScrollCapture: l,
1091
1091
  onWheelCapture: l,
1092
1092
  onTouchMoveCapture: h
1093
- }), document.addEventListener("wheel", s, X), document.addEventListener("touchmove", s, X), document.addEventListener("touchstart", p, X), function() {
1094
- Y = Y.filter(function(c) {
1093
+ }), document.addEventListener("wheel", s, K), document.addEventListener("touchmove", s, K), document.addEventListener("touchstart", p, K), function() {
1094
+ X = X.filter(function(c) {
1095
1095
  return c !== r;
1096
- }), document.removeEventListener("wheel", s, X), document.removeEventListener("touchmove", s, X), document.removeEventListener("touchstart", p, X);
1096
+ }), document.removeEventListener("wheel", s, K), document.removeEventListener("touchmove", s, K), document.removeEventListener("touchstart", p, K);
1097
1097
  };
1098
1098
  }, []);
1099
1099
  var f = e.removeScrollBar, E = e.inert;
1100
1100
  return m.createElement(
1101
1101
  m.Fragment,
1102
1102
  null,
1103
- E ? m.createElement(r, { styles: zn(a) }) : null,
1104
- f ? m.createElement(Rn, { gapMode: "margin" }) : null
1103
+ E ? m.createElement(r, { styles: Wn(a) }) : null,
1104
+ f ? m.createElement(In, { gapMode: "margin" }) : null
1105
1105
  );
1106
1106
  }
1107
- const Vn = En(st, Hn);
1108
- var vt = m.forwardRef(function(e, n) {
1109
- return m.createElement(be, k({}, e, { ref: n, sideCar: Vn }));
1107
+ const Hn = yn(ct, qn);
1108
+ var ft = m.forwardRef(function(e, n) {
1109
+ return m.createElement(_e, k({}, e, { ref: n, sideCar: Hn }));
1110
1110
  });
1111
- vt.classNames = be.classNames;
1112
- var Kn = function(e) {
1111
+ ft.classNames = _e.classNames;
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
- }, Z = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), pe = {}, Ce = 0, ht = function(e) {
1118
- return e && (e.host || ht(e.parentNode));
1117
+ }, Y = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), de = {}, Se = 0, vt = function(e) {
1118
+ return e && (e.host || vt(e.parentNode));
1119
1119
  }, Gn = function(e, n) {
1120
1120
  return n.map(function(t) {
1121
1121
  if (e.contains(t))
1122
1122
  return t;
1123
- var o = ht(t);
1123
+ var o = vt(t);
1124
1124
  return o && e.contains(o) ? o : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
1125
1125
  }).filter(function(t) {
1126
1126
  return !!t;
1127
1127
  });
1128
- }, Xn = function(e, n, t, o) {
1128
+ }, Kn = function(e, n, t, o) {
1129
1129
  var a = Gn(n, Array.isArray(e) ? e : [e]);
1130
- pe[t] || (pe[t] = /* @__PURE__ */ new WeakMap());
1131
- var r = pe[t], i = [], u = /* @__PURE__ */ new Set(), s = new Set(a), d = function(l) {
1130
+ de[t] || (de[t] = /* @__PURE__ */ new WeakMap());
1131
+ var r = de[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));
1133
1133
  };
1134
1134
  a.forEach(d);
@@ -1137,40 +1137,40 @@ var Kn = function(e) {
1137
1137
  if (u.has(h))
1138
1138
  p(h);
1139
1139
  else {
1140
- var f = h.getAttribute(o), E = f !== null && f !== "false", c = (Z.get(h) || 0) + 1, v = (r.get(h) || 0) + 1;
1141
- Z.set(h, c), r.set(h, v), i.push(h), c === 1 && E && de.set(h, !0), v === 1 && h.setAttribute(t, "true"), E || h.setAttribute(o, "true");
1140
+ var f = h.getAttribute(o), E = f !== null && f !== "false", c = (Y.get(h) || 0) + 1, v = (r.get(h) || 0) + 1;
1141
+ Y.set(h, c), r.set(h, v), i.push(h), c === 1 && E && le.set(h, !0), v === 1 && h.setAttribute(t, "true"), E || h.setAttribute(o, "true");
1142
1142
  }
1143
1143
  });
1144
1144
  };
1145
- return p(n), u.clear(), Ce++, function() {
1145
+ return p(n), u.clear(), Se++, function() {
1146
1146
  i.forEach(function(l) {
1147
- var h = Z.get(l) - 1, f = r.get(l) - 1;
1148
- Z.set(l, h), r.set(l, f), h || (de.has(l) || l.removeAttribute(o), de.delete(l)), f || l.removeAttribute(t);
1149
- }), Ce--, Ce || (Z = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), pe = {});
1147
+ var h = Y.get(l) - 1, f = r.get(l) - 1;
1148
+ Y.set(l, h), r.set(l, f), h || (le.has(l) || l.removeAttribute(o), le.delete(l)), f || l.removeAttribute(t);
1149
+ }), Se--, Se || (Y = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), de = {});
1150
1150
  };
1151
- }, Yn = function(e, n, t) {
1151
+ }, Xn = function(e, n, t) {
1152
1152
  t === void 0 && (t = "data-aria-hidden");
1153
- var o = Array.from(Array.isArray(e) ? e : [e]), a = Kn(e);
1154
- return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live]"))), Xn(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 mt = "Dialog", [gt, yo] = kt(mt), [Zn, M] = gt(mt), Qn = (e) => {
1159
- const { __scopeDialog: n, children: t, open: o, defaultOpen: a, onOpenChange: r, modal: i = !0 } = e, u = C(null), s = C(null), [d = !1, p] = Ut({
1158
+ const ht = "Dialog", [mt, Eo] = Lt(ht), [Yn, M] = mt(ht), Zn = (e) => {
1159
+ const { __scopeDialog: n, children: t, open: o, defaultOpen: a, onOpenChange: r, modal: i = !0 } = e, u = C(null), s = C(null), [d = !1, p] = Bt({
1160
1160
  prop: o,
1161
1161
  defaultProp: a,
1162
1162
  onChange: r
1163
1163
  });
1164
- return /* @__PURE__ */ g(Zn, {
1164
+ return /* @__PURE__ */ g(Yn, {
1165
1165
  scope: n,
1166
1166
  triggerRef: u,
1167
1167
  contentRef: s,
1168
- contentId: $e(),
1169
- titleId: $e(),
1170
- descriptionId: $e(),
1168
+ contentId: be(),
1169
+ titleId: be(),
1170
+ descriptionId: be(),
1171
1171
  open: d,
1172
1172
  onOpenChange: p,
1173
- onOpenToggle: J(
1173
+ onOpenToggle: Q(
1174
1174
  () => p(
1175
1175
  (l) => !l
1176
1176
  ),
@@ -1180,54 +1180,54 @@ const mt = "Dialog", [gt, yo] = kt(mt), [Zn, M] = gt(mt), Qn = (e) => {
1180
1180
  ),
1181
1181
  modal: i
1182
1182
  }, t);
1183
- }, Jn = "DialogTrigger", er = /* @__PURE__ */ S((e, n) => {
1184
- const { __scopeDialog: t, ...o } = e, a = M(Jn, t), r = ee(n, a.triggerRef);
1183
+ }, Qn = "DialogTrigger", Jn = /* @__PURE__ */ S((e, n) => {
1184
+ const { __scopeDialog: t, ...o } = e, a = M(Qn, t), r = J(n, a.triggerRef);
1185
1185
  return /* @__PURE__ */ g(q.button, N({
1186
1186
  type: "button",
1187
1187
  "aria-haspopup": "dialog",
1188
1188
  "aria-expanded": a.open,
1189
1189
  "aria-controls": a.contentId,
1190
- "data-state": Le(a.open)
1190
+ "data-state": Me(a.open)
1191
1191
  }, o, {
1192
1192
  ref: r,
1193
1193
  onClick: W(e.onClick, a.onOpenToggle)
1194
1194
  }));
1195
- }), _t = "DialogPortal", [tr, bt] = gt(_t, {
1195
+ }), gt = "DialogPortal", [er, _t] = mt(gt, {
1196
1196
  forceMount: void 0
1197
- }), nr = (e) => {
1198
- const { __scopeDialog: n, forceMount: t, children: o, container: a } = e, r = M(_t, n);
1199
- return /* @__PURE__ */ g(tr, {
1197
+ }), tr = (e) => {
1198
+ const { __scopeDialog: n, forceMount: t, children: o, container: a } = e, r = M(gt, n);
1199
+ return /* @__PURE__ */ g(er, {
1200
1200
  scope: n,
1201
1201
  forceMount: t
1202
1202
  }, R.map(
1203
1203
  o,
1204
- (i) => /* @__PURE__ */ g(_e, {
1204
+ (i) => /* @__PURE__ */ g(ge, {
1205
1205
  present: t || r.open
1206
- }, /* @__PURE__ */ g(sn, {
1206
+ }, /* @__PURE__ */ g(cn, {
1207
1207
  asChild: !0,
1208
1208
  container: a
1209
1209
  }, i))
1210
1210
  ));
1211
- }, De = "DialogOverlay", rr = /* @__PURE__ */ S((e, n) => {
1212
- const t = bt(De, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = M(De, e.__scopeDialog);
1213
- return r.modal ? /* @__PURE__ */ g(_e, {
1211
+ }, Te = "DialogOverlay", nr = /* @__PURE__ */ S((e, n) => {
1212
+ const t = _t(Te, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = M(Te, e.__scopeDialog);
1213
+ return r.modal ? /* @__PURE__ */ g(ge, {
1214
1214
  present: o || r.open
1215
- }, /* @__PURE__ */ g(or, N({}, a, {
1215
+ }, /* @__PURE__ */ g(rr, N({}, a, {
1216
1216
  ref: n
1217
1217
  }))) : null;
1218
- }), or = /* @__PURE__ */ S((e, n) => {
1219
- const { __scopeDialog: t, ...o } = e, a = M(De, t);
1218
+ }), rr = /* @__PURE__ */ S((e, n) => {
1219
+ const { __scopeDialog: t, ...o } = e, a = M(Te, t);
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__ */ g(vt, {
1224
- as: Me,
1223
+ /* @__PURE__ */ g(ft, {
1224
+ as: Re,
1225
1225
  allowPinchZoom: !0,
1226
1226
  shards: [
1227
1227
  a.contentRef
1228
1228
  ]
1229
1229
  }, /* @__PURE__ */ g(q.div, N({
1230
- "data-state": Le(a.open)
1230
+ "data-state": Me(a.open)
1231
1231
  }, o, {
1232
1232
  ref: n,
1233
1233
  style: {
@@ -1236,22 +1236,22 @@ const mt = "Dialog", [gt, yo] = kt(mt), [Zn, M] = gt(mt), Qn = (e) => {
1236
1236
  }
1237
1237
  })))
1238
1238
  );
1239
- }), ae = "DialogContent", ar = /* @__PURE__ */ S((e, n) => {
1240
- const t = bt(ae, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = M(ae, e.__scopeDialog);
1241
- return /* @__PURE__ */ g(_e, {
1239
+ }), oe = "DialogContent", or = /* @__PURE__ */ S((e, n) => {
1240
+ const t = _t(oe, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = M(oe, e.__scopeDialog);
1241
+ return /* @__PURE__ */ g(ge, {
1242
1242
  present: o || r.open
1243
- }, r.modal ? /* @__PURE__ */ g(ir, N({}, a, {
1243
+ }, r.modal ? /* @__PURE__ */ g(ar, N({}, a, {
1244
1244
  ref: n
1245
- })) : /* @__PURE__ */ g(ur, N({}, a, {
1245
+ })) : /* @__PURE__ */ g(ir, N({}, a, {
1246
1246
  ref: n
1247
1247
  })));
1248
- }), ir = /* @__PURE__ */ S((e, n) => {
1249
- const t = M(ae, e.__scopeDialog), o = C(null), a = ee(n, t.contentRef, o);
1248
+ }), ar = /* @__PURE__ */ S((e, n) => {
1249
+ const t = M(oe, e.__scopeDialog), o = C(null), a = J(n, t.contentRef, o);
1250
1250
  return A(() => {
1251
1251
  const r = o.current;
1252
1252
  if (r)
1253
- return Yn(r);
1254
- }, []), /* @__PURE__ */ g($t, N({}, e, {
1253
+ return Xn(r);
1254
+ }, []), /* @__PURE__ */ g(bt, N({}, e, {
1255
1255
  ref: a,
1256
1256
  trapFocus: t.open,
1257
1257
  disableOutsidePointerEvents: !0,
@@ -1268,9 +1268,9 @@ const mt = "Dialog", [gt, yo] = kt(mt), [Zn, M] = gt(mt), Qn = (e) => {
1268
1268
  (r) => r.preventDefault()
1269
1269
  )
1270
1270
  }));
1271
- }), ur = /* @__PURE__ */ S((e, n) => {
1272
- const t = M(ae, e.__scopeDialog), o = C(!1), a = C(!1);
1273
- return /* @__PURE__ */ g($t, N({}, e, {
1271
+ }), ir = /* @__PURE__ */ S((e, n) => {
1272
+ const t = M(oe, e.__scopeDialog), o = C(!1), a = C(!1);
1273
+ return /* @__PURE__ */ g(bt, N({}, e, {
1274
1274
  ref: n,
1275
1275
  trapFocus: !1,
1276
1276
  disableOutsidePointerEvents: !1,
@@ -1289,40 +1289,40 @@ const mt = "Dialog", [gt, yo] = kt(mt), [Zn, M] = gt(mt), Qn = (e) => {
1289
1289
  ((u = t.triggerRef.current) === null || u === void 0 ? void 0 : u.contains(s)) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && a.current && r.preventDefault();
1290
1290
  }
1291
1291
  }));
1292
- }), $t = /* @__PURE__ */ S((e, n) => {
1293
- const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...i } = e, u = M(ae, t), s = C(null), d = ee(n, s);
1294
- return pn(), /* @__PURE__ */ g(Re, null, /* @__PURE__ */ g(tn, {
1292
+ }), bt = /* @__PURE__ */ S((e, n) => {
1293
+ const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...i } = e, u = M(oe, t), s = C(null), d = J(n, s);
1294
+ return dn(), /* @__PURE__ */ g(Ie, null, /* @__PURE__ */ g(en, {
1295
1295
  asChild: !0,
1296
1296
  loop: !0,
1297
1297
  trapped: o,
1298
1298
  onMountAutoFocus: a,
1299
1299
  onUnmountAutoFocus: r
1300
- }, /* @__PURE__ */ g(Qt, N({
1300
+ }, /* @__PURE__ */ g(Zt, N({
1301
1301
  role: "dialog",
1302
1302
  id: u.contentId,
1303
1303
  "aria-describedby": u.descriptionId,
1304
1304
  "aria-labelledby": u.titleId,
1305
- "data-state": Le(u.open)
1305
+ "data-state": Me(u.open)
1306
1306
  }, i, {
1307
1307
  ref: d,
1308
1308
  onDismiss: () => u.onOpenChange(!1)
1309
1309
  }))), !1);
1310
- }), cr = "DialogTitle", sr = /* @__PURE__ */ S((e, n) => {
1311
- const { __scopeDialog: t, ...o } = e, a = M(cr, t);
1310
+ }), ur = "DialogTitle", cr = /* @__PURE__ */ S((e, n) => {
1311
+ const { __scopeDialog: t, ...o } = e, a = M(ur, t);
1312
1312
  return /* @__PURE__ */ g(q.h2, N({
1313
1313
  id: a.titleId
1314
1314
  }, o, {
1315
1315
  ref: n
1316
1316
  }));
1317
- }), lr = "DialogDescription", dr = /* @__PURE__ */ S((e, n) => {
1318
- const { __scopeDialog: t, ...o } = e, a = M(lr, t);
1317
+ }), sr = "DialogDescription", lr = /* @__PURE__ */ S((e, n) => {
1318
+ const { __scopeDialog: t, ...o } = e, a = M(sr, t);
1319
1319
  return /* @__PURE__ */ g(q.p, N({
1320
1320
  id: a.descriptionId
1321
1321
  }, o, {
1322
1322
  ref: n
1323
1323
  }));
1324
- }), pr = "DialogClose", fr = /* @__PURE__ */ S((e, n) => {
1325
- const { __scopeDialog: t, ...o } = e, a = M(pr, t);
1324
+ }), dr = "DialogClose", pr = /* @__PURE__ */ S((e, n) => {
1325
+ const { __scopeDialog: t, ...o } = e, a = M(dr, t);
1326
1326
  return /* @__PURE__ */ g(q.button, N({
1327
1327
  type: "button"
1328
1328
  }, o, {
@@ -1333,18 +1333,18 @@ const mt = "Dialog", [gt, yo] = kt(mt), [Zn, M] = gt(mt), Qn = (e) => {
1333
1333
  )
1334
1334
  }));
1335
1335
  });
1336
- function Le(e) {
1336
+ function Me(e) {
1337
1337
  return e ? "open" : "closed";
1338
1338
  }
1339
- const vr = Qn, hr = er, mr = nr, gr = rr, _r = ar, br = sr, Xe = dr, $r = fr, Ye = {
1339
+ const fr = Zn, vr = Jn, hr = tr, mr = nr, gr = or, _r = cr, Ke = lr, br = pr, Xe = {
1340
1340
  SM: "sm",
1341
1341
  MD: "md",
1342
1342
  LG: "lg"
1343
1343
  };
1344
- function yr(e) {
1344
+ function $r(e) {
1345
1345
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1346
1346
  }
1347
- var yt = { exports: {} };
1347
+ var $t = { exports: {} };
1348
1348
  /*!
1349
1349
  Copyright (c) 2018 Jed Watson.
1350
1350
  Licensed under the MIT License (MIT), see
@@ -1379,44 +1379,44 @@ var yt = { exports: {} };
1379
1379
  }
1380
1380
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1381
1381
  })();
1382
- })(yt);
1383
- var Er = yt.exports;
1384
- const Ze = /* @__PURE__ */ yr(Er), wr = "_rotate_1xozj_1", xr = "_dash_1xozj_1", te = {
1382
+ })($t);
1383
+ var yr = $t.exports;
1384
+ const Ye = /* @__PURE__ */ $r(yr), Er = "_rotate_1xozj_1", wr = "_dash_1xozj_1", ee = {
1385
1385
  "purpur-spinner": "_purpur-spinner_1xozj_1",
1386
- rotate: wr,
1386
+ rotate: Er,
1387
1387
  "purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
1388
1388
  "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
1389
1389
  "purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
1390
1390
  "purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
1391
1391
  "purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
1392
1392
  "purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
1393
- dash: xr,
1393
+ dash: wr,
1394
1394
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
1395
1395
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
1396
- }, ne = "purpur-spinner", Sr = {
1396
+ }, te = "purpur-spinner", xr = {
1397
1397
  XXS: "xxs",
1398
1398
  XS: "xs",
1399
1399
  SM: "sm",
1400
1400
  MD: "md",
1401
1401
  LG: "lg"
1402
- }, Cr = ({
1402
+ }, Sr = ({
1403
1403
  ["data-testid"]: e,
1404
1404
  disabled: n = !1,
1405
1405
  negative: t = !1,
1406
- size: o = Sr.SM,
1406
+ size: o = xr.SM,
1407
1407
  ...a
1408
1408
  }) => /* @__PURE__ */ _(
1409
1409
  "div",
1410
1410
  {
1411
- className: Ze([te[ne], te[`${ne}--${o}`]]),
1411
+ className: Ye([ee[te], ee[`${te}--${o}`]]),
1412
1412
  "data-testid": e,
1413
1413
  ...a,
1414
1414
  children: /* @__PURE__ */ _("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ _(
1415
1415
  "circle",
1416
1416
  {
1417
- className: Ze(te[`${ne}__circle`], {
1418
- [te[`${ne}__circle--disabled`]]: n,
1419
- [te[`${ne}__circle--negative`]]: t
1417
+ className: Ye(ee[`${te}__circle`], {
1418
+ [ee[`${te}__circle--disabled`]]: n,
1419
+ [ee[`${te}__circle--negative`]]: t
1420
1420
  }),
1421
1421
  cx: "25",
1422
1422
  cy: "25",
@@ -1425,10 +1425,10 @@ const Ze = /* @__PURE__ */ yr(Er), wr = "_rotate_1xozj_1", xr = "_dash_1xozj_1",
1425
1425
  ) })
1426
1426
  }
1427
1427
  );
1428
- function Or(e) {
1428
+ function Cr(e) {
1429
1429
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1430
1430
  }
1431
- var Et = { exports: {} };
1431
+ var yt = { exports: {} };
1432
1432
  /*!
1433
1433
  Copyright (c) 2018 Jed Watson.
1434
1434
  Licensed under the MIT License (MIT), see
@@ -1440,22 +1440,22 @@ var Et = { exports: {} };
1440
1440
  function t() {
1441
1441
  for (var r = "", i = 0; i < arguments.length; i++) {
1442
1442
  var u = arguments[i];
1443
- u && (r = a(r, o(u)));
1443
+ u && (r = a(r, o.call(this, u)));
1444
1444
  }
1445
1445
  return r;
1446
1446
  }
1447
1447
  function o(r) {
1448
1448
  if (typeof r == "string" || typeof r == "number")
1449
- return r;
1449
+ return this && this[r] || r;
1450
1450
  if (typeof r != "object")
1451
1451
  return "";
1452
1452
  if (Array.isArray(r))
1453
- return t.apply(null, r);
1453
+ return t.apply(this, r);
1454
1454
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
1455
1455
  return r.toString();
1456
1456
  var i = "";
1457
1457
  for (var u in r)
1458
- n.call(r, u) && r[u] && (i = a(i, u));
1458
+ n.call(r, u) && r[u] && (i = a(i, this && this[u] || u));
1459
1459
  return i;
1460
1460
  }
1461
1461
  function a(r, i) {
@@ -1463,9 +1463,9 @@ var Et = { exports: {} };
1463
1463
  }
1464
1464
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1465
1465
  })();
1466
- })(Et);
1467
- var Pr = Et.exports;
1468
- const Nr = /* @__PURE__ */ Or(Pr), H = {
1466
+ })(yt);
1467
+ var Or = yt.exports;
1468
+ const Pr = /* @__PURE__ */ Cr(Or), Nr = {
1469
1469
  "purpur-button": "_purpur-button_u2yv5_1",
1470
1470
  "purpur-button--sm": "_purpur-button--sm_u2yv5_33",
1471
1471
  "purpur-button--icon-only": "_purpur-button--icon-only_u2yv5_36",
@@ -1486,7 +1486,7 @@ const Nr = /* @__PURE__ */ Or(Pr), H = {
1486
1486
  "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_u2yv5_160",
1487
1487
  "purpur-button--text-negative": "_purpur-button--text-negative_u2yv5_175",
1488
1488
  "purpur-button--text": "_purpur-button--text_u2yv5_175"
1489
- }, V = "purpur-button", Ar = ({
1489
+ }, Ar = Pr.bind(Nr), H = "purpur-button", Tr = ({
1490
1490
  children: e,
1491
1491
  className: n,
1492
1492
  ["data-testid"]: t,
@@ -1496,29 +1496,29 @@ const Nr = /* @__PURE__ */ Or(Pr), H = {
1496
1496
  loading: i = !1,
1497
1497
  negative: u = !1,
1498
1498
  onClick: s,
1499
- size: d = Ye.MD,
1499
+ size: d = Xe.MD,
1500
1500
  variant: p,
1501
1501
  type: l = "button",
1502
1502
  ...h
1503
1503
  }, f) => {
1504
1504
  if (r && p === "destructive")
1505
1505
  return null;
1506
- const E = Nr(
1506
+ const E = Ar(
1507
1507
  [
1508
- H[V],
1509
- H[`${V}--${u ? `${p}-negative` : p}`],
1510
- H[`${V}--${d}`]
1508
+ H,
1509
+ `${H}--${u ? `${p}-negative` : p}`,
1510
+ `${H}--${d}`
1511
1511
  ],
1512
1512
  {
1513
- [H[`${V}--icon-only`]]: r,
1514
- [H[`${V}--negative`]]: u,
1515
- [H[`${V}--full-width`]]: a,
1516
- [H[`${V}--disabled`]]: o || i
1513
+ [`${H}--icon-only`]: r,
1514
+ [`${H}--negative`]: u,
1515
+ [`${H}--full-width`]: a,
1516
+ [`${H}--disabled`]: o || i
1517
1517
  },
1518
1518
  n
1519
- ), c = (v) => {
1520
- o || i ? v.preventDefault() : s && s(v);
1521
- };
1519
+ ), c = (b) => {
1520
+ o || i ? b.preventDefault() : s && s(b);
1521
+ }, v = !!h["aria-disabled"] || o || i;
1522
1522
  return /* @__PURE__ */ U(
1523
1523
  "button",
1524
1524
  {
@@ -1526,22 +1526,22 @@ const Nr = /* @__PURE__ */ Or(Pr), H = {
1526
1526
  "data-testid": t,
1527
1527
  type: l,
1528
1528
  ref: f,
1529
- "aria-disabled": h["aria-disabled"] || o || i,
1529
+ "aria-disabled": v,
1530
1530
  onClick: c,
1531
1531
  ...h,
1532
1532
  children: [
1533
- i && /* @__PURE__ */ _(Cr, { size: d === Ye.LG ? "xs" : "xxs", negative: u, disabled: o }),
1533
+ i && /* @__PURE__ */ _(Sr, { size: d === Xe.LG ? "xs" : "xxs", negative: u, disabled: v }),
1534
1534
  " ",
1535
1535
  e
1536
1536
  ]
1537
1537
  }
1538
1538
  );
1539
- }, ke = S(Ar);
1540
- ke.displayName = "Button";
1541
- function Tr(e) {
1539
+ }, Le = S(Tr);
1540
+ Le.displayName = "Button";
1541
+ function Dr(e) {
1542
1542
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1543
1543
  }
1544
- var wt = { exports: {} };
1544
+ var Et = { exports: {} };
1545
1545
  /*!
1546
1546
  Copyright (c) 2018 Jed Watson.
1547
1547
  Licensed under the MIT License (MIT), see
@@ -1576,9 +1576,9 @@ var wt = { exports: {} };
1576
1576
  }
1577
1577
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1578
1578
  })();
1579
- })(wt);
1580
- var Dr = wt.exports;
1581
- const Ir = /* @__PURE__ */ Tr(Dr), fe = {
1579
+ })(Et);
1580
+ var Ir = Et.exports;
1581
+ const Rr = /* @__PURE__ */ Dr(Ir), pe = {
1582
1582
  "purpur-heading": "_purpur-heading_k9fhq_1",
1583
1583
  "purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
1584
1584
  "purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
@@ -1594,7 +1594,7 @@ const Ir = /* @__PURE__ */ Tr(Dr), fe = {
1594
1594
  "purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
1595
1595
  "purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
1596
1596
  "purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
1597
- }, Rr = {
1597
+ }, Mr = {
1598
1598
  TITLE100: "title-100",
1599
1599
  TITLE200: "title-200",
1600
1600
  TITLE300: "title-300",
@@ -1603,31 +1603,31 @@ const Ir = /* @__PURE__ */ Tr(Dr), fe = {
1603
1603
  TITLE600: "title-600",
1604
1604
  TITLE700: "title-700",
1605
1605
  SUBSECTION100: "subsection-100"
1606
- }, ve = "purpur-heading", Mr = ({
1606
+ }, fe = "purpur-heading", Lr = ({
1607
1607
  ["data-testid"]: e,
1608
1608
  children: n,
1609
1609
  className: t = "",
1610
1610
  enableHyphenation: o = !1,
1611
1611
  negative: a = !1,
1612
1612
  tag: r,
1613
- variant: i = Rr.TITLE100,
1613
+ variant: i = Mr.TITLE100,
1614
1614
  ...u
1615
1615
  }) => {
1616
- const s = r, d = Ir([
1616
+ const s = r, d = Rr([
1617
1617
  t,
1618
- fe[ve],
1619
- fe[`${ve}--${i}`],
1618
+ pe[fe],
1619
+ pe[`${fe}--${i}`],
1620
1620
  {
1621
- [fe[`${ve}--hyphens`]]: o,
1622
- [fe[`${ve}--negative`]]: a
1621
+ [pe[`${fe}--hyphens`]]: o,
1622
+ [pe[`${fe}--negative`]]: a
1623
1623
  }
1624
1624
  ]);
1625
1625
  return /* @__PURE__ */ _(s, { ...u, className: d, "data-testid": e, children: n });
1626
1626
  };
1627
- function Lr(e) {
1627
+ function kr(e) {
1628
1628
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1629
1629
  }
1630
- var xt = { exports: {} };
1630
+ var wt = { exports: {} };
1631
1631
  /*!
1632
1632
  Copyright (c) 2018 Jed Watson.
1633
1633
  Licensed under the MIT License (MIT), see
@@ -1662,9 +1662,9 @@ var xt = { exports: {} };
1662
1662
  }
1663
1663
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1664
1664
  })();
1665
- })(xt);
1666
- var kr = xt.exports;
1667
- const Fr = /* @__PURE__ */ Lr(kr), jr = {
1665
+ })(wt);
1666
+ var Fr = wt.exports;
1667
+ const jr = /* @__PURE__ */ kr(Fr), Br = {
1668
1668
  "purpur-icon": "_purpur-icon_8u1lq_1",
1669
1669
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
1670
1670
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -1672,39 +1672,39 @@ const Fr = /* @__PURE__ */ Lr(kr), jr = {
1672
1672
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
1673
1673
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
1674
1674
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
1675
- }, Br = {
1675
+ }, Ur = {
1676
1676
  name: "close",
1677
1677
  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>',
1678
1678
  keywords: ["close"],
1679
1679
  category: "utility"
1680
- }, St = (e) => /* @__PURE__ */ _(
1681
- Vr,
1680
+ }, xt = (e) => /* @__PURE__ */ _(
1681
+ Gr,
1682
1682
  {
1683
1683
  ...e,
1684
- svg: Br
1684
+ svg: Ur
1685
1685
  }
1686
1686
  );
1687
- St.displayName = "IconClose";
1688
- const Ur = Fr.bind(jr), Qe = "purpur-icon", Wr = "md", zr = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), qr = ({ content: e = "", title: n } = {}) => {
1687
+ xt.displayName = "IconClose";
1688
+ const Wr = jr.bind(Br), Ze = "purpur-icon", zr = "md", qr = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Hr = ({ content: e = "", title: n } = {}) => {
1689
1689
  const t = [
1690
1690
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
1691
1691
  { name: "fill", value: "currentColor" },
1692
1692
  { name: "viewBox", value: "0 0 24 24" },
1693
1693
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
1694
1694
  ], o = n ? `<title>${n}</title>` : "";
1695
- return `<svg ${zr(t)}>${o}${e}</svg>`;
1696
- }, Hr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Vr = ({
1695
+ return `<svg ${qr(t)}>${o}${e}</svg>`;
1696
+ }, Vr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Gr = ({
1697
1697
  ["data-testid"]: e,
1698
1698
  svg: n,
1699
1699
  allyTitle: t,
1700
1700
  className: o = "",
1701
- size: a = Wr,
1701
+ size: a = zr,
1702
1702
  ...r
1703
1703
  }) => {
1704
- const i = qr({
1705
- content: Hr(n.svg),
1704
+ const i = Hr({
1705
+ content: Vr(n.svg),
1706
1706
  title: t
1707
- }), u = Ur(o, Qe, `${Qe}--${a}`);
1707
+ }), u = Wr(o, Ze, `${Ze}--${a}`);
1708
1708
  return /* @__PURE__ */ _(
1709
1709
  "span",
1710
1710
  {
@@ -1719,7 +1719,7 @@ const Ur = Fr.bind(jr), Qe = "purpur-icon", Wr = "md", zr = (e) => e.filter((n)
1719
1719
  function Kr(e) {
1720
1720
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1721
1721
  }
1722
- var Ct = { exports: {} };
1722
+ var St = { exports: {} };
1723
1723
  /*!
1724
1724
  Copyright (c) 2018 Jed Watson.
1725
1725
  Licensed under the MIT License (MIT), see
@@ -1754,9 +1754,9 @@ var Ct = { exports: {} };
1754
1754
  }
1755
1755
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1756
1756
  })();
1757
- })(Ct);
1758
- var Gr = Ct.exports;
1759
- const Xr = /* @__PURE__ */ Kr(Gr), re = {
1757
+ })(St);
1758
+ var Xr = St.exports;
1759
+ const Yr = /* @__PURE__ */ Kr(Xr), ne = {
1760
1760
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
1761
1761
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
1762
1762
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -1771,7 +1771,7 @@ const Xr = /* @__PURE__ */ Kr(Gr), re = {
1771
1771
  "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
1772
1772
  "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
1773
1773
  "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
1774
- }, Yr = {
1774
+ }, Zr = {
1775
1775
  PARAGRAPH100: "paragraph-100",
1776
1776
  PARAGRAPH100MEDIUM: "paragraph-100-medium",
1777
1777
  PARAGRAPH100BOLD: "paragraph-100-bold",
@@ -1782,72 +1782,72 @@ const Xr = /* @__PURE__ */ Kr(Gr), re = {
1782
1782
  ADDITIONAL100MEDIUM: "additional-100-medium",
1783
1783
  OVERLINE100: "overline-100",
1784
1784
  OVERLINE200: "overline-200"
1785
- }, oe = "purpur-paragraph", Zr = ({
1785
+ }, re = "purpur-paragraph", Qr = ({
1786
1786
  ["data-testid"]: e,
1787
1787
  children: n,
1788
1788
  className: t = "",
1789
1789
  disabled: o,
1790
1790
  enableHyphenation: a = !1,
1791
1791
  negative: r = !1,
1792
- variant: i = Yr.PARAGRAPH100,
1792
+ variant: i = Zr.PARAGRAPH100,
1793
1793
  ...u
1794
1794
  }) => {
1795
- const s = Xr([
1795
+ const s = Yr([
1796
1796
  t,
1797
- re[oe],
1798
- re[`${oe}--${i}`],
1797
+ ne[re],
1798
+ ne[`${re}--${i}`],
1799
1799
  {
1800
- [re[`${oe}--hyphens`]]: a,
1801
- [re[`${oe}--disabled`]]: o,
1802
- [re[`${oe}--negative`]]: r
1800
+ [ne[`${re}--hyphens`]]: a,
1801
+ [ne[`${re}--disabled`]]: o,
1802
+ [ne[`${re}--negative`]]: r
1803
1803
  }
1804
1804
  ]);
1805
1805
  return /* @__PURE__ */ _("p", { ...u, className: s, "data-testid": e, children: n });
1806
- }, Qr = "600px";
1807
- function Q() {
1808
- return Q = Object.assign ? Object.assign.bind() : function(e) {
1806
+ }, Jr = "600px";
1807
+ function Z() {
1808
+ return Z = Object.assign ? Object.assign.bind() : function(e) {
1809
1809
  for (var n = 1; n < arguments.length; n++) {
1810
1810
  var t = arguments[n];
1811
1811
  for (var o in t)
1812
1812
  Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
1813
1813
  }
1814
1814
  return e;
1815
- }, Q.apply(this, arguments);
1815
+ }, Z.apply(this, arguments);
1816
1816
  }
1817
- function Jr(e, n) {
1817
+ function eo(e, n) {
1818
1818
  typeof e == "function" ? e(n) : e != null && (e.current = n);
1819
1819
  }
1820
- function eo(...e) {
1820
+ function to(...e) {
1821
1821
  return (n) => e.forEach(
1822
- (t) => Jr(t, n)
1822
+ (t) => eo(t, n)
1823
1823
  );
1824
1824
  }
1825
- const Ot = /* @__PURE__ */ S((e, n) => {
1826
- const { children: t, ...o } = e, a = R.toArray(t), r = a.find(no);
1825
+ const Ct = /* @__PURE__ */ S((e, n) => {
1826
+ const { children: t, ...o } = e, a = R.toArray(t), r = a.find(ro);
1827
1827
  if (r) {
1828
1828
  const i = r.props.children, u = a.map((s) => s === r ? R.count(i) > 1 ? R.only(null) : /* @__PURE__ */ z(i) ? i.props.children : null : s);
1829
- return /* @__PURE__ */ g(Ie, Q({}, o, {
1829
+ return /* @__PURE__ */ g(De, Z({}, o, {
1830
1830
  ref: n
1831
- }), /* @__PURE__ */ z(i) ? /* @__PURE__ */ ie(i, void 0, u) : null);
1831
+ }), /* @__PURE__ */ z(i) ? /* @__PURE__ */ ae(i, void 0, u) : null);
1832
1832
  }
1833
- return /* @__PURE__ */ g(Ie, Q({}, o, {
1833
+ return /* @__PURE__ */ g(De, Z({}, o, {
1834
1834
  ref: n
1835
1835
  }), t);
1836
1836
  });
1837
- Ot.displayName = "Slot";
1838
- const Ie = /* @__PURE__ */ S((e, n) => {
1837
+ Ct.displayName = "Slot";
1838
+ const De = /* @__PURE__ */ S((e, n) => {
1839
1839
  const { children: t, ...o } = e;
1840
- return /* @__PURE__ */ z(t) ? /* @__PURE__ */ ie(t, {
1841
- ...ro(o, t.props),
1842
- ref: n ? eo(n, t.ref) : t.ref
1840
+ return /* @__PURE__ */ z(t) ? /* @__PURE__ */ ae(t, {
1841
+ ...oo(o, t.props),
1842
+ ref: n ? to(n, t.ref) : t.ref
1843
1843
  }) : R.count(t) > 1 ? R.only(null) : null;
1844
1844
  });
1845
- Ie.displayName = "SlotClone";
1846
- const to = ({ children: e }) => /* @__PURE__ */ g(Re, null, e);
1847
- function no(e) {
1848
- return /* @__PURE__ */ z(e) && e.type === to;
1845
+ De.displayName = "SlotClone";
1846
+ const no = ({ children: e }) => /* @__PURE__ */ g(Ie, null, e);
1847
+ function ro(e) {
1848
+ return /* @__PURE__ */ z(e) && e.type === no;
1849
1849
  }
1850
- function ro(e, n) {
1850
+ function oo(e, n) {
1851
1851
  const t = {
1852
1852
  ...n
1853
1853
  };
@@ -1868,7 +1868,7 @@ function ro(e, n) {
1868
1868
  ...t
1869
1869
  };
1870
1870
  }
1871
- const oo = [
1871
+ const ao = [
1872
1872
  "a",
1873
1873
  "button",
1874
1874
  "div",
@@ -1885,12 +1885,12 @@ const oo = [
1885
1885
  "span",
1886
1886
  "svg",
1887
1887
  "ul"
1888
- ], ao = oo.reduce((e, n) => {
1888
+ ], io = ao.reduce((e, n) => {
1889
1889
  const t = /* @__PURE__ */ S((o, a) => {
1890
- const { asChild: r, ...i } = o, u = r ? Ot : n;
1890
+ const { asChild: r, ...i } = o, u = r ? Ct : n;
1891
1891
  return A(() => {
1892
1892
  window[Symbol.for("radix-ui")] = !0;
1893
- }, []), /* @__PURE__ */ g(u, Q({}, i, {
1893
+ }, []), /* @__PURE__ */ g(u, Z({}, i, {
1894
1894
  ref: a
1895
1895
  }));
1896
1896
  });
@@ -1898,7 +1898,7 @@ const oo = [
1898
1898
  ...e,
1899
1899
  [n]: t
1900
1900
  };
1901
- }, {}), io = /* @__PURE__ */ S((e, n) => /* @__PURE__ */ g(ao.span, Q({}, e, {
1901
+ }, {}), uo = /* @__PURE__ */ S((e, n) => /* @__PURE__ */ g(io.span, Z({}, e, {
1902
1902
  ref: n,
1903
1903
  style: {
1904
1904
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -1914,16 +1914,16 @@ const oo = [
1914
1914
  wordWrap: "normal",
1915
1915
  ...e.style
1916
1916
  }
1917
- }))), uo = io, co = ({
1917
+ }))), co = uo, so = ({
1918
1918
  asChild: e,
1919
1919
  children: n,
1920
1920
  className: t = "",
1921
1921
  ["data-testid"]: o
1922
- }) => /* @__PURE__ */ _(uo, { asChild: e, "data-testid": o, className: t, children: n });
1923
- function so(e) {
1922
+ }) => /* @__PURE__ */ _(co, { asChild: e, "data-testid": o, className: t, children: n });
1923
+ function lo(e) {
1924
1924
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1925
1925
  }
1926
- var Pt = { exports: {} };
1926
+ var Ot = { exports: {} };
1927
1927
  /*!
1928
1928
  Copyright (c) 2018 Jed Watson.
1929
1929
  Licensed under the MIT License (MIT), see
@@ -1958,11 +1958,11 @@ var Pt = { exports: {} };
1958
1958
  }
1959
1959
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1960
1960
  })();
1961
- })(Pt);
1962
- var lo = Pt.exports;
1963
- const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
1961
+ })(Ot);
1962
+ var po = Ot.exports;
1963
+ const fo = /* @__PURE__ */ lo(po), vo = "_fadeIn_rblrn_1", ho = {
1964
1964
  "purpur-modal-content": "_purpur-modal-content_rblrn_1",
1965
- fadeIn: fo,
1965
+ fadeIn: vo,
1966
1966
  "purpur-modal-content__overlay": "_purpur-modal-content__overlay_rblrn_30",
1967
1967
  "purpur-modal-content__close-button": "_purpur-modal-content__close-button_rblrn_37",
1968
1968
  "purpur-modal-content__wrapper": "_purpur-modal-content__wrapper_rblrn_48",
@@ -1981,7 +1981,7 @@ const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
1981
1981
  "purpur-modal-content__actions": "_purpur-modal-content__actions_rblrn_133",
1982
1982
  "purpur-modal-content__actions-separator": "_purpur-modal-content__actions-separator_rblrn_190",
1983
1983
  "purpur-modal-content--sticky-footer": "_purpur-modal-content--sticky-footer_rblrn_200"
1984
- }, Je = (e) => e.showCloseButton === !0, T = po.bind(vo), P = "purpur-modal-content", ho = S(
1984
+ }, Qe = (e) => e.showCloseButton === !0, T = fo.bind(ho), P = "purpur-modal-content", mo = S(
1985
1985
  ({
1986
1986
  ["data-testid"]: e,
1987
1987
  actions: n,
@@ -1998,47 +1998,47 @@ const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
1998
1998
  zIndex: h,
1999
1999
  ...f
2000
2000
  }, E) => {
2001
- const { closeButtonAllyLabel: c, showCloseButton: v, ...b } = f, [O, y] = K(!1), $ = C(null), x = C(null), F = C(null), I = C(null), w = T([
2001
+ const { closeButtonAllyLabel: c, showCloseButton: v, ...b } = f, [O, y] = V(!1), $ = C(null), x = C(null), F = C(null), I = C(null), w = T([
2002
2002
  P,
2003
2003
  { [`${P}--with-image`]: !!u },
2004
2004
  { [`${P}--overflow`]: O },
2005
2005
  { [`${P}--sticky-footer`]: d },
2006
2006
  o
2007
- ]), D = (j) => e ? `${e} ${j}` : void 0, ue = (j) => {
2007
+ ]), D = (j) => e ? `${e} ${j}` : void 0, ie = (j) => {
2008
2008
  r && j.preventDefault();
2009
- }, L = J(() => {
2009
+ }, L = Q(() => {
2010
2010
  if (!$.current || !x.current || !F.current || !I.current)
2011
2011
  return;
2012
- const j = window.innerWidth < parseInt(Qr), At = window.getComputedStyle(
2012
+ const j = window.innerWidth < parseInt(Jr), Nt = window.getComputedStyle(
2013
2013
  j ? $.current : F.current,
2014
2014
  null
2015
- ), Tt = parseFloat(At.getPropertyValue("height")), Dt = j ? x.current.offsetHeight : I.current.offsetHeight;
2016
- y(Tt < Dt);
2017
- }, []), Nt = (j) => {
2015
+ ), At = parseFloat(Nt.getPropertyValue("height")), Tt = j ? x.current.offsetHeight : I.current.offsetHeight;
2016
+ y(At < Tt);
2017
+ }, []), Pt = (j) => {
2018
2018
  r && !v && j.preventDefault();
2019
2019
  };
2020
2020
  return A(() => (window.addEventListener("resize", L), () => {
2021
2021
  window.removeEventListener("resize", L);
2022
2022
  }), [L]), A(() => {
2023
2023
  L();
2024
- }, [l, L]), /* @__PURE__ */ U(mr, { children: [
2025
- /* @__PURE__ */ _(gr, { className: T(`${P}__overlay`), style: { zIndex: h } }),
2024
+ }, [l, L]), /* @__PURE__ */ U(hr, { children: [
2025
+ /* @__PURE__ */ _(mr, { className: T(`${P}__overlay`), style: { zIndex: h } }),
2026
2026
  /* @__PURE__ */ U(
2027
- _r,
2027
+ gr,
2028
2028
  {
2029
2029
  ...b,
2030
2030
  className: w,
2031
2031
  "data-testid": e,
2032
2032
  ref: E,
2033
2033
  ...!a && { "aria-describedby": void 0 },
2034
- onPointerDownOutside: ue,
2034
+ onPointerDownOutside: ie,
2035
2035
  onOpenAutoFocus: L,
2036
- onEscapeKeyDown: Nt,
2036
+ onEscapeKeyDown: Pt,
2037
2037
  style: { zIndex: `calc(${h} + 1)` },
2038
2038
  children: [
2039
2039
  /* @__PURE__ */ U("div", { ref: $, className: T(`${P}__wrapper`), children: [
2040
- Je(f) && c && u && /* @__PURE__ */ _(
2041
- et,
2040
+ Qe(f) && c && u && /* @__PURE__ */ _(
2041
+ Je,
2042
2042
  {
2043
2043
  allyLabel: c,
2044
2044
  hasImage: !0,
@@ -2047,20 +2047,20 @@ const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
2047
2047
  ),
2048
2048
  /* @__PURE__ */ U("div", { ref: x, className: T(`${P}__wrapper-inner`), children: [
2049
2049
  /* @__PURE__ */ U("div", { className: T(`${P}__header`), children: [
2050
- Je(f) && c && !u && /* @__PURE__ */ _(
2051
- et,
2050
+ Qe(f) && c && !u && /* @__PURE__ */ _(
2051
+ Je,
2052
2052
  {
2053
2053
  allyLabel: c,
2054
2054
  "data-testid": D("close-button")
2055
2055
  }
2056
2056
  ),
2057
2057
  /* @__PURE__ */ _(
2058
- br,
2058
+ _r,
2059
2059
  {
2060
2060
  asChild: !0,
2061
2061
  className: T(`${P}__title`),
2062
2062
  "data-testid": D("title"),
2063
- children: /* @__PURE__ */ _(Mr, { tag: "h2", variant: "title-200", children: p })
2063
+ children: /* @__PURE__ */ _(Lr, { tag: "h2", variant: "title-200", children: p })
2064
2064
  }
2065
2065
  )
2066
2066
  ] }),
@@ -2073,19 +2073,19 @@ const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
2073
2073
  }
2074
2074
  ),
2075
2075
  /* @__PURE__ */ _("div", { ref: F, className: T(`${P}__body`), children: /* @__PURE__ */ U("div", { ref: I, className: T(`${P}__body-inner`), children: [
2076
- a && i && /* @__PURE__ */ _(co, { asChild: !0, children: /* @__PURE__ */ _(Xe, { "data-testid": D("description"), children: a }) }),
2076
+ a && i && /* @__PURE__ */ _(so, { asChild: !0, children: /* @__PURE__ */ _(Ke, { "data-testid": D("description"), children: a }) }),
2077
2077
  a && !i && /* @__PURE__ */ _(
2078
- Xe,
2078
+ Ke,
2079
2079
  {
2080
2080
  asChild: !0,
2081
2081
  className: T(`${P}__description`),
2082
2082
  "data-testid": D("description"),
2083
- children: /* @__PURE__ */ _(Zr, { variant: "paragraph-100", children: a })
2083
+ children: /* @__PURE__ */ _(Qr, { variant: "paragraph-100", children: a })
2084
2084
  }
2085
2085
  ),
2086
2086
  /* @__PURE__ */ _("div", { children: t }),
2087
2087
  !d && /* @__PURE__ */ _(
2088
- tt,
2088
+ et,
2089
2089
  {
2090
2090
  actions: n,
2091
2091
  primaryActionVariant: s,
@@ -2096,7 +2096,7 @@ const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
2096
2096
  ] })
2097
2097
  ] }),
2098
2098
  d && /* @__PURE__ */ _(
2099
- tt,
2099
+ et,
2100
2100
  {
2101
2101
  actions: n,
2102
2102
  primaryActionVariant: s,
@@ -2108,12 +2108,12 @@ const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
2108
2108
  )
2109
2109
  ] });
2110
2110
  }
2111
- ), et = ({
2111
+ ), Je = ({
2112
2112
  allyLabel: e,
2113
2113
  hasImage: n,
2114
2114
  ["data-testid"]: t
2115
- }) => /* @__PURE__ */ _($r, { asChild: !0, children: /* @__PURE__ */ _(
2116
- ke,
2115
+ }) => /* @__PURE__ */ _(br, { asChild: !0, children: /* @__PURE__ */ _(
2116
+ Le,
2117
2117
  {
2118
2118
  variant: n ? "primary" : "tertiary-purple",
2119
2119
  negative: n,
@@ -2122,9 +2122,9 @@ const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
2122
2122
  "aria-label": e,
2123
2123
  className: T(`${P}__close-button`),
2124
2124
  "data-testid": t,
2125
- children: /* @__PURE__ */ _(St, {})
2125
+ children: /* @__PURE__ */ _(xt, {})
2126
2126
  }
2127
- ) }), mo = 3, tt = ({
2127
+ ) }), go = 3, et = ({
2128
2128
  actions: e,
2129
2129
  primaryActionVariant: n,
2130
2130
  notification: t
@@ -2134,8 +2134,8 @@ const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
2134
2134
  var r, i;
2135
2135
  t && ((i = (r = o == null ? void 0 : o.current) == null ? void 0 : r.scrollIntoView) == null || i.call(r, !1));
2136
2136
  }, [t]), e && e.length > 0 ? /* @__PURE__ */ U("div", { className: T(`${P}__actions`), children: [
2137
- /* @__PURE__ */ _("div", { className: T(`${P}__actions-buttons`), "data-testid": "modal actions", children: e.slice(0, mo).map(({ label: r, onClick: i }, u) => /* @__PURE__ */ _(
2138
- ke,
2137
+ /* @__PURE__ */ _("div", { className: T(`${P}__actions-buttons`), "data-testid": "modal actions", children: e.slice(0, go).map(({ label: r, onClick: i }, u) => /* @__PURE__ */ _(
2138
+ Le,
2139
2139
  {
2140
2140
  "data-testid": "modal actions button",
2141
2141
  variant: a[u] || "",
@@ -2148,9 +2148,9 @@ const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
2148
2148
  t && /* @__PURE__ */ _("div", { className: T(`${P}__notification`), ref: o, children: t }),
2149
2149
  /* @__PURE__ */ _("span", { className: T(`${P}__actions-separator`) })
2150
2150
  ] }) : null;
2151
- }, go = S(
2151
+ }, _o = S(
2152
2152
  ({ ["data-testid"]: e, children: n, className: t, ...o }, a) => /* @__PURE__ */ _(
2153
- hr,
2153
+ vr,
2154
2154
  {
2155
2155
  asChild: !0,
2156
2156
  ref: a,
@@ -2160,16 +2160,16 @@ const po = /* @__PURE__ */ so(lo), fo = "_fadeIn_rblrn_1", vo = {
2160
2160
  children: n
2161
2161
  }
2162
2162
  )
2163
- ), Fe = ({
2163
+ ), ke = ({
2164
2164
  ["data-testid"]: e,
2165
2165
  children: n,
2166
2166
  open: t,
2167
2167
  onOpenChange: o
2168
- }) => /* @__PURE__ */ _(vr, { open: t, onOpenChange: o, "data-testid": e, children: n });
2169
- Fe.Trigger = go;
2170
- Fe.Content = ho;
2171
- Fe.displayName = "Modal";
2168
+ }) => /* @__PURE__ */ _(fr, { open: t, onOpenChange: o, "data-testid": e, children: n });
2169
+ ke.Trigger = _o;
2170
+ ke.Content = mo;
2171
+ ke.displayName = "Modal";
2172
2172
  export {
2173
- Fe as Modal
2173
+ ke as Modal
2174
2174
  };
2175
2175
  //# sourceMappingURL=modal.es.js.map