@purpurds/modal 3.7.0 → 4.0.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
- import { jsxs as V, jsx as _, Fragment as Tt } from "react/jsx-runtime";
1
+ import { jsxs as G, jsx as _, Fragment as Tt } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
- import { useCallback as Q, createContext as xe, useMemo as ve, createElement as m, useContext as tt, useLayoutEffect as Dt, useRef as O, useEffect as A, useState as K, forwardRef as C, Children as I, isValidElement as B, cloneElement as te, Fragment as Re, useReducer as Rt } from "react";
4
- import It, { flushSync as nt } from "react-dom";
3
+ import { useCallback as Q, createContext as Ce, useMemo as ve, createElement as m, useContext as tt, useLayoutEffect as Dt, useRef as O, useEffect as A, useState as V, forwardRef as x, Children as R, isValidElement as B, cloneElement as te, Fragment as Ie, useReducer as It } from "react";
4
+ import Rt, { flushSync as nt } from "react-dom";
5
5
  function P() {
6
6
  return P = Object.assign ? Object.assign.bind() : function(e) {
7
7
  for (var n = 1; n < arguments.length; n++) {
@@ -12,7 +12,7 @@ function P() {
12
12
  return e;
13
13
  }, P.apply(this, arguments);
14
14
  }
15
- function k(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
15
+ function j(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
16
16
  return function(a) {
17
17
  if (e == null || e(a), t === !1 || !a.defaultPrevented)
18
18
  return n == null ? void 0 : n(a);
@@ -32,22 +32,22 @@ function J(...e) {
32
32
  function Lt(e, n = []) {
33
33
  let t = [];
34
34
  function o(r, i) {
35
- const c = /* @__PURE__ */ xe(i), l = t.length;
35
+ const u = /* @__PURE__ */ Ce(i), l = t.length;
36
36
  t = [
37
37
  ...t,
38
38
  i
39
39
  ];
40
40
  function d(s) {
41
- const { scope: h, children: f, ...E } = s, u = (h == null ? void 0 : h[e][l]) || c, v = ve(
41
+ const { scope: h, children: f, ...E } = s, c = (h == null ? void 0 : h[e][l]) || u, v = ve(
42
42
  () => E,
43
43
  Object.values(E)
44
44
  );
45
- return /* @__PURE__ */ m(u.Provider, {
45
+ return /* @__PURE__ */ m(c.Provider, {
46
46
  value: v
47
47
  }, f);
48
48
  }
49
49
  function p(s, h) {
50
- const f = (h == null ? void 0 : h[e][l]) || c, E = tt(f);
50
+ const f = (h == null ? void 0 : h[e][l]) || u, E = tt(f);
51
51
  if (E)
52
52
  return E;
53
53
  if (i !== void 0)
@@ -60,18 +60,18 @@ function Lt(e, n = []) {
60
60
  ];
61
61
  }
62
62
  const a = () => {
63
- const r = t.map((i) => /* @__PURE__ */ xe(i));
64
- return function(c) {
65
- const l = (c == null ? void 0 : c[e]) || r;
63
+ const r = t.map((i) => /* @__PURE__ */ Ce(i));
64
+ return function(u) {
65
+ const l = (u == null ? void 0 : u[e]) || r;
66
66
  return ve(
67
67
  () => ({
68
68
  [`__scope${e}`]: {
69
- ...c,
69
+ ...u,
70
70
  [e]: l
71
71
  }
72
72
  }),
73
73
  [
74
- c,
74
+ u,
75
75
  l
76
76
  ]
77
77
  );
@@ -94,10 +94,10 @@ function Ft(...e) {
94
94
  })
95
95
  );
96
96
  return function(r) {
97
- const i = o.reduce((c, { useScope: l, scopeName: d }) => {
97
+ const i = o.reduce((u, { useScope: l, scopeName: d }) => {
98
98
  const s = l(r)[`__scope${d}`];
99
99
  return {
100
- ...c,
100
+ ...u,
101
101
  ...s
102
102
  };
103
103
  }, {});
@@ -114,20 +114,20 @@ function Ft(...e) {
114
114
  return t.scopeName = n.scopeName, t;
115
115
  }
116
116
  const Oe = globalThis != null && globalThis.document ? Dt : () => {
117
- }, jt = g.useId || (() => {
117
+ }, kt = g.useId || (() => {
118
118
  });
119
- let kt = 0;
119
+ let jt = 0;
120
120
  function me(e) {
121
- const [n, t] = g.useState(jt());
121
+ const [n, t] = g.useState(kt());
122
122
  return Oe(() => {
123
123
  e || t(
124
- (o) => o ?? String(kt++)
124
+ (o) => o ?? String(jt++)
125
125
  );
126
126
  }, [
127
127
  e
128
128
  ]), e || (n ? `radix-${n}` : "");
129
129
  }
130
- function z(e) {
130
+ function K(e) {
131
131
  const n = O(e);
132
132
  return A(() => {
133
133
  n.current = e;
@@ -144,17 +144,17 @@ function Bt({ prop: e, defaultProp: n, onChange: t = () => {
144
144
  const [o, a] = Wt({
145
145
  defaultProp: n,
146
146
  onChange: t
147
- }), r = e !== void 0, i = r ? e : o, c = z(t), l = Q((d) => {
147
+ }), r = e !== void 0, i = r ? e : o, u = K(t), l = Q((d) => {
148
148
  if (r) {
149
149
  const s = typeof d == "function" ? d(e) : d;
150
- s !== e && c(s);
150
+ s !== e && u(s);
151
151
  } else
152
152
  a(d);
153
153
  }, [
154
154
  r,
155
155
  e,
156
156
  a,
157
- c
157
+ u
158
158
  ]);
159
159
  return [
160
160
  i,
@@ -162,7 +162,7 @@ function Bt({ prop: e, defaultProp: n, onChange: t = () => {
162
162
  ];
163
163
  }
164
164
  function Wt({ defaultProp: e, onChange: n }) {
165
- const t = K(e), [o] = t, a = O(o), r = z(n);
165
+ const t = V(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
  }, [
@@ -171,39 +171,39 @@ function Wt({ defaultProp: e, onChange: n }) {
171
171
  r
172
172
  ]), t;
173
173
  }
174
- const Ie = /* @__PURE__ */ C((e, n) => {
175
- const { children: t, ...o } = e, a = I.toArray(t), r = a.find(Ht);
174
+ const Re = /* @__PURE__ */ x((e, n) => {
175
+ const { children: t, ...o } = e, a = R.toArray(t), r = a.find(zt);
176
176
  if (r) {
177
- const i = r.props.children, c = a.map((l) => l === r ? I.count(i) > 1 ? I.only(null) : /* @__PURE__ */ B(i) ? i.props.children : null : l);
177
+ const i = r.props.children, u = a.map((l) => l === r ? R.count(i) > 1 ? R.only(null) : /* @__PURE__ */ B(i) ? i.props.children : null : l);
178
178
  return /* @__PURE__ */ m(Pe, P({}, o, {
179
179
  ref: n
180
- }), /* @__PURE__ */ B(i) ? /* @__PURE__ */ te(i, void 0, c) : null);
180
+ }), /* @__PURE__ */ B(i) ? /* @__PURE__ */ te(i, void 0, u) : null);
181
181
  }
182
182
  return /* @__PURE__ */ m(Pe, P({}, o, {
183
183
  ref: n
184
184
  }), t);
185
185
  });
186
- Ie.displayName = "Slot";
187
- const Pe = /* @__PURE__ */ C((e, n) => {
186
+ Re.displayName = "Slot";
187
+ const Pe = /* @__PURE__ */ x((e, n) => {
188
188
  const { children: t, ...o } = e;
189
189
  return /* @__PURE__ */ B(t) ? /* @__PURE__ */ te(t, {
190
- ...Gt(o, t.props),
190
+ ...Ht(o, t.props),
191
191
  ref: n ? rt(n, t.ref) : t.ref
192
- }) : I.count(t) > 1 ? I.only(null) : null;
192
+ }) : R.count(t) > 1 ? R.only(null) : null;
193
193
  });
194
194
  Pe.displayName = "SlotClone";
195
- const Ut = ({ children: e }) => /* @__PURE__ */ m(Re, null, e);
196
- function Ht(e) {
195
+ const Ut = ({ children: e }) => /* @__PURE__ */ m(Ie, null, e);
196
+ function zt(e) {
197
197
  return /* @__PURE__ */ B(e) && e.type === Ut;
198
198
  }
199
- function Gt(e, n) {
199
+ function Ht(e, n) {
200
200
  const t = {
201
201
  ...n
202
202
  };
203
203
  for (const o in n) {
204
204
  const a = e[o], r = n[o];
205
- /^on[A-Z]/.test(o) ? a && r ? t[o] = (...c) => {
206
- r(...c), a(...c);
205
+ /^on[A-Z]/.test(o) ? a && r ? t[o] = (...u) => {
206
+ r(...u), a(...u);
207
207
  } : a && (t[o] = a) : o === "style" ? t[o] = {
208
208
  ...a,
209
209
  ...r
@@ -217,7 +217,7 @@ function Gt(e, n) {
217
217
  ...t
218
218
  };
219
219
  }
220
- const Vt = [
220
+ const Gt = [
221
221
  "a",
222
222
  "button",
223
223
  "div",
@@ -234,12 +234,12 @@ const Vt = [
234
234
  "span",
235
235
  "svg",
236
236
  "ul"
237
- ], W = Vt.reduce((e, n) => {
238
- const t = /* @__PURE__ */ C((o, a) => {
239
- const { asChild: r, ...i } = o, c = r ? Ie : n;
237
+ ], W = Gt.reduce((e, n) => {
238
+ const t = /* @__PURE__ */ x((o, a) => {
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(c, P({}, i, {
242
+ }, []), /* @__PURE__ */ m(u, P({}, i, {
243
243
  ref: a
244
244
  }));
245
245
  });
@@ -248,13 +248,13 @@ const Vt = [
248
248
  [n]: t
249
249
  };
250
250
  }, {});
251
- function Kt(e, n) {
251
+ function Vt(e, n) {
252
252
  e && nt(
253
253
  () => e.dispatchEvent(n)
254
254
  );
255
255
  }
256
- function zt(e, n = globalThis == null ? void 0 : globalThis.document) {
257
- const t = z(e);
256
+ function Kt(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);
@@ -266,39 +266,39 @@ function zt(e, n = globalThis == null ? void 0 : globalThis.document) {
266
266
  ]);
267
267
  }
268
268
  const Ne = "dismissableLayer.update", Xt = "dismissableLayer.pointerDownOutside", Yt = "dismissableLayer.focusOutside";
269
- let je;
270
- const qt = /* @__PURE__ */ xe({
269
+ let ke;
270
+ const qt = /* @__PURE__ */ Ce({
271
271
  layers: /* @__PURE__ */ new Set(),
272
272
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
273
273
  branches: /* @__PURE__ */ new Set()
274
- }), Zt = /* @__PURE__ */ C((e, n) => {
274
+ }), Zt = /* @__PURE__ */ x((e, n) => {
275
275
  var t;
276
- const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: a, onPointerDownOutside: r, onFocusOutside: i, onInteractOutside: c, onDismiss: l, ...d } = e, p = tt(qt), [s, h] = K(null), f = (t = s == null ? void 0 : s.ownerDocument) !== null && t !== void 0 ? t : globalThis == null ? void 0 : globalThis.document, [, E] = K({}), u = J(
276
+ const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: a, onPointerDownOutside: r, onFocusOutside: i, onInteractOutside: u, onDismiss: l, ...d } = e, p = tt(qt), [s, h] = V(null), f = (t = s == null ? void 0 : s.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), x = v.indexOf(b), $ = s ? v.indexOf(s) : -1, y = p.layersWithOutsidePointerEventsDisabled.size > 0, S = $ >= x, U = Qt((w) => {
281
+ ].slice(-1), C = v.indexOf(b), $ = s ? v.indexOf(s) : -1, y = p.layersWithOutsidePointerEventsDisabled.size > 0, S = $ >= C, U = Qt((w) => {
282
282
  const M = w.target, ne = [
283
283
  ...p.branches
284
284
  ].some(
285
- (R) => R.contains(M)
285
+ (I) => I.contains(M)
286
286
  );
287
- !S || ne || (r == null || r(w), c == null || c(w), w.defaultPrevented || l == null || l());
287
+ !S || ne || (r == null || r(w), u == null || u(w), w.defaultPrevented || l == null || l());
288
288
  }, f), T = Jt((w) => {
289
289
  const M = w.target;
290
290
  [
291
291
  ...p.branches
292
292
  ].some(
293
- (R) => R.contains(M)
294
- ) || (i == null || i(w), c == null || c(w), w.defaultPrevented || l == null || l());
293
+ (I) => I.contains(M)
294
+ ) || (i == null || i(w), u == null || u(w), w.defaultPrevented || l == null || l());
295
295
  }, f);
296
- return zt((w) => {
296
+ return Kt((w) => {
297
297
  $ === p.layers.size - 1 && (a == null || a(w), !w.defaultPrevented && l && (w.preventDefault(), l()));
298
298
  }, f), A(() => {
299
299
  if (s)
300
- return o && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (je = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), p.layersWithOutsidePointerEventsDisabled.add(s)), p.layers.add(s), ke(), () => {
301
- o && p.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = je);
300
+ return o && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (ke = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), p.layersWithOutsidePointerEventsDisabled.add(s)), p.layers.add(s), je(), () => {
301
+ o && p.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = ke);
302
302
  };
303
303
  }, [
304
304
  s,
@@ -306,7 +306,7 @@ const qt = /* @__PURE__ */ xe({
306
306
  o,
307
307
  p
308
308
  ]), A(() => () => {
309
- s && (p.layers.delete(s), p.layersWithOutsidePointerEventsDisabled.delete(s), ke());
309
+ s && (p.layers.delete(s), p.layersWithOutsidePointerEventsDisabled.delete(s), je());
310
310
  }, [
311
311
  s,
312
312
  p
@@ -314,31 +314,31 @@ const qt = /* @__PURE__ */ xe({
314
314
  const w = () => E({});
315
315
  return document.addEventListener(Ne, w), () => document.removeEventListener(Ne, w);
316
316
  }, []), /* @__PURE__ */ m(W.div, P({}, d, {
317
- ref: u,
317
+ ref: c,
318
318
  style: {
319
319
  pointerEvents: y ? S ? "auto" : "none" : void 0,
320
320
  ...e.style
321
321
  },
322
- onFocusCapture: k(e.onFocusCapture, T.onFocusCapture),
323
- onBlurCapture: k(e.onBlurCapture, T.onBlurCapture),
324
- onPointerDownCapture: k(e.onPointerDownCapture, U.onPointerDownCapture)
322
+ onFocusCapture: j(e.onFocusCapture, T.onFocusCapture),
323
+ onBlurCapture: j(e.onBlurCapture, T.onBlurCapture),
324
+ onPointerDownCapture: j(e.onPointerDownCapture, U.onPointerDownCapture)
325
325
  }));
326
326
  });
327
327
  function Qt(e, n = globalThis == null ? void 0 : globalThis.document) {
328
- const t = z(e), o = O(!1), a = O(() => {
328
+ const t = K(e), o = O(!1), a = O(() => {
329
329
  });
330
330
  return A(() => {
331
- const r = (c) => {
332
- if (c.target && !o.current) {
331
+ const r = (u) => {
332
+ if (u.target && !o.current) {
333
333
  let d = function() {
334
334
  ot(Xt, t, l, {
335
335
  discrete: !0
336
336
  });
337
337
  };
338
338
  const l = {
339
- originalEvent: c
339
+ originalEvent: u
340
340
  };
341
- c.pointerType === "touch" ? (n.removeEventListener("click", a.current), a.current = d, n.addEventListener("click", a.current, {
341
+ u.pointerType === "touch" ? (n.removeEventListener("click", a.current), a.current = d, n.addEventListener("click", a.current, {
342
342
  once: !0
343
343
  })) : d();
344
344
  } else
@@ -359,7 +359,7 @@ function Qt(e, n = globalThis == null ? void 0 : globalThis.document) {
359
359
  };
360
360
  }
361
361
  function Jt(e, n = globalThis == null ? void 0 : globalThis.document) {
362
- const t = z(e), o = O(!1);
362
+ const t = K(e), o = O(!1);
363
363
  return A(() => {
364
364
  const a = (r) => {
365
365
  r.target && !o.current && ot(Yt, t, {
@@ -377,7 +377,7 @@ function Jt(e, n = globalThis == null ? void 0 : globalThis.document) {
377
377
  onBlurCapture: () => o.current = !1
378
378
  };
379
379
  }
380
- function ke() {
380
+ function je() {
381
381
  const e = new CustomEvent(Ne);
382
382
  document.dispatchEvent(e);
383
383
  }
@@ -389,15 +389,15 @@ function ot(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
394
  const _e = "focusScope.autoFocusOnMount", be = "focusScope.autoFocusOnUnmount", Be = {
395
395
  bubbles: !1,
396
396
  cancelable: !0
397
- }, en = /* @__PURE__ */ C((e, n) => {
398
- const { loop: t = !1, trapped: o = !1, onMountAutoFocus: a, onUnmountAutoFocus: r, ...i } = e, [c, l] = K(null), d = z(a), p = z(r), s = O(null), h = J(
397
+ }, en = /* @__PURE__ */ x((e, n) => {
398
+ const { loop: t = !1, trapped: o = !1, onMountAutoFocus: a, onUnmountAutoFocus: r, ...i } = e, [u, l] = V(null), d = K(a), p = K(r), s = O(null), h = J(
399
399
  n,
400
- (u) => l(u)
400
+ (c) => l(c)
401
401
  ), f = O({
402
402
  paused: !1,
403
403
  pause() {
@@ -409,74 +409,74 @@ const _e = "focusScope.autoFocusOnMount", be = "focusScope.autoFocusOnUnmount",
409
409
  }).current;
410
410
  A(() => {
411
411
  if (o) {
412
- let u = function($) {
413
- if (f.paused || !c)
412
+ let c = function($) {
413
+ if (f.paused || !u)
414
414
  return;
415
415
  const y = $.target;
416
- c.contains(y) ? s.current = y : j(s.current, {
416
+ u.contains(y) ? s.current = y : k(s.current, {
417
417
  select: !0
418
418
  });
419
419
  }, v = function($) {
420
- if (f.paused || !c)
420
+ if (f.paused || !u)
421
421
  return;
422
422
  const y = $.relatedTarget;
423
- y !== null && (c.contains(y) || j(s.current, {
423
+ y !== null && (u.contains(y) || k(s.current, {
424
424
  select: !0
425
425
  }));
426
426
  }, b = function($) {
427
427
  if (document.activeElement === document.body)
428
428
  for (const S of $)
429
- S.removedNodes.length > 0 && j(c);
429
+ S.removedNodes.length > 0 && k(u);
430
430
  };
431
- document.addEventListener("focusin", u), document.addEventListener("focusout", v);
432
- const x = new MutationObserver(b);
433
- return c && x.observe(c, {
431
+ document.addEventListener("focusin", c), document.addEventListener("focusout", v);
432
+ const C = new MutationObserver(b);
433
+ return u && C.observe(u, {
434
434
  childList: !0,
435
435
  subtree: !0
436
436
  }), () => {
437
- document.removeEventListener("focusin", u), document.removeEventListener("focusout", v), x.disconnect();
437
+ document.removeEventListener("focusin", c), document.removeEventListener("focusout", v), C.disconnect();
438
438
  };
439
439
  }
440
440
  }, [
441
441
  o,
442
- c,
442
+ u,
443
443
  f.paused
444
444
  ]), A(() => {
445
- if (c) {
445
+ if (u) {
446
446
  Ue.add(f);
447
- const u = document.activeElement;
448
- if (!c.contains(u)) {
447
+ const c = document.activeElement;
448
+ if (!u.contains(c)) {
449
449
  const b = new CustomEvent(_e, Be);
450
- c.addEventListener(_e, d), c.dispatchEvent(b), b.defaultPrevented || (tn(cn(at(c)), {
450
+ u.addEventListener(_e, d), u.dispatchEvent(b), b.defaultPrevented || (tn(un(at(u)), {
451
451
  select: !0
452
- }), document.activeElement === u && j(c));
452
+ }), document.activeElement === c && k(u));
453
453
  }
454
454
  return () => {
455
- c.removeEventListener(_e, d), setTimeout(() => {
455
+ u.removeEventListener(_e, d), setTimeout(() => {
456
456
  const b = new CustomEvent(be, Be);
457
- c.addEventListener(be, p), c.dispatchEvent(b), b.defaultPrevented || j(u ?? document.body, {
457
+ u.addEventListener(be, p), u.dispatchEvent(b), b.defaultPrevented || k(c ?? document.body, {
458
458
  select: !0
459
- }), c.removeEventListener(be, p), Ue.remove(f);
459
+ }), u.removeEventListener(be, p), Ue.remove(f);
460
460
  }, 0);
461
461
  };
462
462
  }
463
463
  }, [
464
- c,
464
+ u,
465
465
  d,
466
466
  p,
467
467
  f
468
468
  ]);
469
- const E = Q((u) => {
469
+ const E = Q((c) => {
470
470
  if (!t && !o || f.paused)
471
471
  return;
472
- const v = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, b = document.activeElement;
472
+ const v = c.key === "Tab" && !c.altKey && !c.ctrlKey && !c.metaKey, b = document.activeElement;
473
473
  if (v && b) {
474
- const x = u.currentTarget, [$, y] = nn(x);
475
- $ && y ? !u.shiftKey && b === y ? (u.preventDefault(), t && j($, {
474
+ const C = c.currentTarget, [$, y] = nn(C);
475
+ $ && y ? !c.shiftKey && b === y ? (c.preventDefault(), t && k($, {
476
476
  select: !0
477
- })) : u.shiftKey && b === $ && (u.preventDefault(), t && j(y, {
477
+ })) : c.shiftKey && b === $ && (c.preventDefault(), t && k(y, {
478
478
  select: !0
479
- })) : b === x && u.preventDefault();
479
+ })) : b === C && c.preventDefault();
480
480
  }
481
481
  }, [
482
482
  t,
@@ -493,7 +493,7 @@ const _e = "focusScope.autoFocusOnMount", be = "focusScope.autoFocusOnUnmount",
493
493
  function tn(e, { select: n = !1 } = {}) {
494
494
  const t = document.activeElement;
495
495
  for (const o of e)
496
- if (j(o, {
496
+ if (k(o, {
497
497
  select: n
498
498
  }), document.activeElement !== t)
499
499
  return;
@@ -538,7 +538,7 @@ function rn(e, { upTo: n }) {
538
538
  function on(e) {
539
539
  return e instanceof HTMLInputElement && "select" in e;
540
540
  }
541
- function j(e, { select: n = !1 } = {}) {
541
+ function k(e, { select: n = !1 } = {}) {
542
542
  if (e && e.focus) {
543
543
  const t = document.activeElement;
544
544
  e.focus({
@@ -552,34 +552,34 @@ function an() {
552
552
  return {
553
553
  add(n) {
554
554
  const t = e[0];
555
- n !== t && (t == null || t.pause()), e = He(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 = He(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 He(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 un = /* @__PURE__ */ C((e, n) => {
574
+ const cn = /* @__PURE__ */ x((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(W.div, P({}, a, {
577
+ return o ? /* @__PURE__ */ Rt.createPortal(/* @__PURE__ */ m(W.div, P({}, a, {
578
578
  ref: n
579
579
  })), o) : null;
580
580
  });
581
581
  function sn(e, n) {
582
- return Rt((t, o) => {
582
+ return It((t, o) => {
583
583
  const a = n[t][o];
584
584
  return a ?? t;
585
585
  }, e);
@@ -587,14 +587,14 @@ function sn(e, n) {
587
587
  const he = (e) => {
588
588
  const { present: n, children: t } = e, o = ln(n), a = typeof t == "function" ? t({
589
589
  present: o.isPresent
590
- }) : I.only(t), r = J(o.ref, a.ref);
590
+ }) : R.only(t), r = J(o.ref, a.ref);
591
591
  return typeof t == "function" || o.isPresent ? /* @__PURE__ */ te(a, {
592
592
  ref: r
593
593
  }) : null;
594
594
  };
595
595
  he.displayName = "Presence";
596
596
  function ln(e) {
597
- const [n, t] = K(), o = O({}), a = O(e), r = O("none"), i = e ? "mounted" : "unmounted", [c, l] = sn(i, {
597
+ const [n, t] = V(), o = O({}), a = O(e), r = O("none"), i = e ? "mounted" : "unmounted", [u, l] = sn(i, {
598
598
  mounted: {
599
599
  UNMOUNT: "unmounted",
600
600
  ANIMATION_OUT: "unmountSuspended"
@@ -609,9 +609,9 @@ function ln(e) {
609
609
  });
610
610
  return A(() => {
611
611
  const d = re(o.current);
612
- r.current = c === "mounted" ? d : "none";
612
+ r.current = u === "mounted" ? d : "none";
613
613
  }, [
614
- c
614
+ u
615
615
  ]), Oe(() => {
616
616
  const d = o.current, p = a.current;
617
617
  if (p !== e) {
@@ -643,7 +643,7 @@ function ln(e) {
643
643
  isPresent: [
644
644
  "mounted",
645
645
  "unmountSuspended"
646
- ].includes(c),
646
+ ].includes(u),
647
647
  ref: Q((d) => {
648
648
  d && (o.current = getComputedStyle(d)), t(d);
649
649
  }, [])
@@ -657,14 +657,14 @@ 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 : Ge()), document.body.insertAdjacentElement("beforeend", (n = t[1]) !== null && n !== void 0 ? n : Ge()), $e++, () => {
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()), $e++, () => {
661
661
  $e === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach(
662
662
  (o) => o.remove()
663
663
  ), $e--;
664
664
  };
665
665
  }, []);
666
666
  }
667
- function Ge() {
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
  }
@@ -698,7 +698,7 @@ function hn(e, n) {
698
698
  return typeof e == "function" ? e(n) : e && (e.current = n), e;
699
699
  }
700
700
  function gn(e, n) {
701
- var t = K(function() {
701
+ var t = V(function() {
702
702
  return {
703
703
  // value
704
704
  value: e,
@@ -739,8 +739,8 @@ function bn(e, n) {
739
739
  useMedium: function(r) {
740
740
  var i = n(r, o);
741
741
  return t.push(i), function() {
742
- t = t.filter(function(c) {
743
- return c !== i;
742
+ t = t.filter(function(u) {
743
+ return u !== i;
744
744
  });
745
745
  };
746
746
  },
@@ -750,8 +750,8 @@ function bn(e, n) {
750
750
  t = [], i.forEach(r);
751
751
  }
752
752
  t = {
753
- push: function(c) {
754
- return r(c);
753
+ push: function(u) {
754
+ return r(u);
755
755
  },
756
756
  filter: function() {
757
757
  return t;
@@ -762,8 +762,8 @@ function bn(e, n) {
762
762
  o = !0;
763
763
  var i = [];
764
764
  if (t.length) {
765
- var c = t;
766
- t = [], c.forEach(r), i = t;
765
+ var u = t;
766
+ t = [], u.forEach(r), i = t;
767
767
  }
768
768
  var l = function() {
769
769
  var p = i;
@@ -788,7 +788,7 @@ function $n(e) {
788
788
  var n = bn(null);
789
789
  return n.options = F({ async: !0, ssr: !1 }, e), n;
790
790
  }
791
- var ct = function(e) {
791
+ var ut = function(e) {
792
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");
@@ -797,22 +797,22 @@ var ct = function(e) {
797
797
  throw new Error("Sidecar medium not found");
798
798
  return g.createElement(o, F({}, t));
799
799
  };
800
- ct.isSideCarExport = !0;
800
+ ut.isSideCarExport = !0;
801
801
  function yn(e, n) {
802
- return e.useMedium(n), ct;
802
+ return e.useMedium(n), ut;
803
803
  }
804
- var ut = $n(), ye = function() {
804
+ var ct = $n(), ye = function() {
805
805
  }, ge = g.forwardRef(function(e, n) {
806
806
  var t = g.useRef(null), o = g.useState({
807
807
  onScrollCapture: ye,
808
808
  onWheelCapture: ye,
809
809
  onTouchMoveCapture: ye
810
- }), a = o[0], r = o[1], i = e.forwardProps, c = e.children, l = e.className, d = e.removeScrollBar, p = e.enabled, s = e.shards, h = e.sideCar, f = e.noIsolation, E = e.inert, u = 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 = mn([t, n]), S = F(F({}, x), a);
810
+ }), a = o[0], r = o[1], i = e.forwardProps, u = e.children, l = e.className, d = e.removeScrollBar, p = e.enabled, s = e.shards, h = e.sideCar, f = e.noIsolation, E = e.inert, c = e.allowPinchZoom, v = e.as, b = v === void 0 ? "div" : v, C = it(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), $ = h, y = mn([t, n]), S = F(F({}, C), a);
811
811
  return g.createElement(
812
812
  g.Fragment,
813
813
  null,
814
- p && g.createElement($, { sideCar: ut, removeScrollBar: d, shards: s, noIsolation: f, inert: E, setCallbacks: r, allowPinchZoom: !!u, lockRef: t }),
815
- i ? g.cloneElement(g.Children.only(c), F(F({}, S), { ref: y })) : g.createElement(b, F({}, S, { className: l, ref: y }), c)
814
+ p && g.createElement($, { sideCar: ct, removeScrollBar: d, shards: s, 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: l, ref: y }), u)
816
816
  );
817
817
  });
818
818
  ge.defaultProps = {
@@ -839,22 +839,22 @@ function wn() {
839
839
  function Sn(e, n) {
840
840
  e.styleSheet ? e.styleSheet.cssText = n : e.appendChild(document.createTextNode(n));
841
841
  }
842
- function Cn(e) {
842
+ function xn(e) {
843
843
  var n = document.head || document.getElementsByTagName("head")[0];
844
844
  n.appendChild(e);
845
845
  }
846
- var xn = function() {
846
+ var Cn = function() {
847
847
  var e = 0, n = null;
848
848
  return {
849
849
  add: function(t) {
850
- e == 0 && (n = wn()) && (Sn(n, t), Cn(n)), e++;
850
+ e == 0 && (n = wn()) && (Sn(n, t), xn(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
856
  }, On = function() {
857
- var e = xn();
857
+ var e = Cn();
858
858
  return function(n, t) {
859
859
  g.useEffect(function() {
860
860
  return e.add(n), function() {
@@ -889,11 +889,11 @@ var xn = function() {
889
889
  gap: Math.max(0, o - t + n[2] - n[0])
890
890
  };
891
891
  }, Tn = st(), Dn = function(e, n, t, o) {
892
- var a = e.left, r = e.top, i = e.right, c = e.gap;
892
+ var a = e.left, r = e.top, i = e.right, u = e.gap;
893
893
  return t === void 0 && (t = "margin"), `
894
894
  .`.concat(fn, ` {
895
895
  overflow: hidden `).concat(o, `;
896
- padding-right: `).concat(c, "px ").concat(o, `;
896
+ padding-right: `).concat(u, "px ").concat(o, `;
897
897
  }
898
898
  body {
899
899
  overflow: hidden `).concat(o, `;
@@ -906,18 +906,18 @@ var xn = function() {
906
906
  padding-right: `).concat(i, `px;
907
907
  margin-left:0;
908
908
  margin-top:0;
909
- margin-right: `).concat(c, "px ").concat(o, `;
909
+ margin-right: `).concat(u, "px ").concat(o, `;
910
910
  `),
911
- t === "padding" && "padding-right: ".concat(c, "px ").concat(o, ";")
911
+ t === "padding" && "padding-right: ".concat(u, "px ").concat(o, ";")
912
912
  ].filter(Boolean).join(""), `
913
913
  }
914
914
 
915
915
  .`).concat(pe, ` {
916
- right: `).concat(c, "px ").concat(o, `;
916
+ right: `).concat(u, "px ").concat(o, `;
917
917
  }
918
918
 
919
919
  .`).concat(fe, ` {
920
- margin-right: `).concat(c, "px ").concat(o, `;
920
+ margin-right: `).concat(u, "px ").concat(o, `;
921
921
  }
922
922
 
923
923
  .`).concat(pe, " .").concat(pe, ` {
@@ -929,10 +929,10 @@ var xn = function() {
929
929
  }
930
930
 
931
931
  body {
932
- `).concat(vn, ": ").concat(c, `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 = g.useMemo(function() {
937
937
  return An(a);
938
938
  }, [a]);
@@ -949,20 +949,20 @@ if (typeof window < "u")
949
949
  } catch {
950
950
  Ae = !1;
951
951
  }
952
- var X = Ae ? { passive: !1 } : !1, In = function(e) {
952
+ var X = Ae ? { passive: !1 } : !1, Rn = function(e) {
953
953
  return e.tagName === "TEXTAREA";
954
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 && !In(e) && t[n] === "visible")
959
+ !(t.overflowY === t.overflowX && !Rn(e) && t[n] === "visible")
960
960
  );
961
961
  }, Mn = function(e) {
962
962
  return lt(e, "overflowY");
963
963
  }, Ln = function(e) {
964
964
  return lt(e, "overflowX");
965
- }, Ve = function(e, n) {
965
+ }, Ge = 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 X = Ae ? { passive: !1 } : !1, In = function(e) {
982
982
  t,
983
983
  o
984
984
  ];
985
- }, jn = 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,25 +992,25 @@ var X = Ae ? { passive: !1 } : !1, In = function(e) {
992
992
  }, dt = function(e, n) {
993
993
  return e === "v" ? Mn(n) : Ln(n);
994
994
  }, pt = function(e, n) {
995
- return e === "v" ? Fn(n) : jn(n);
996
- }, kn = function(e, n) {
995
+ return e === "v" ? Fn(n) : kn(n);
996
+ }, jn = function(e, n) {
997
997
  return e === "h" && n === "rtl" ? -1 : 1;
998
998
  }, Bn = function(e, n, t, o, a) {
999
- var r = kn(e, window.getComputedStyle(n).direction), i = r * o, c = t.target, l = n.contains(c), d = !1, p = i > 0, s = 0, h = 0;
999
+ var r = jn(e, window.getComputedStyle(n).direction), i = r * o, u = t.target, l = n.contains(u), d = !1, p = i > 0, s = 0, h = 0;
1000
1000
  do {
1001
- var f = pt(e, c), E = f[0], u = f[1], v = f[2], b = u - v - r * E;
1002
- (E || b) && dt(e, c) && (s += b, h += E), c = c.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) && (s += b, h += E), u = u.parentNode;
1003
1003
  } while (
1004
1004
  // portaled content
1005
- !l && c !== document.body || // self content
1006
- l && (n.contains(c) || n === c)
1005
+ !l && u !== document.body || // self content
1006
+ l && (n.contains(u) || n === u)
1007
1007
  );
1008
1008
  return (p && (a && s === 0 || !a && i > s) || !p && (a && h === 0 || !a && -i > h)) && (d = !0), d;
1009
1009
  }, ae = 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
- }, ze = function(e) {
1013
+ }, Ke = function(e) {
1014
1014
  return e && "current" in e ? e.current : e;
1015
1015
  }, Wn = function(e, n) {
1016
1016
  return e[0] === n[0] && e[1] === n[1];
@@ -1019,9 +1019,9 @@ var X = Ae ? { passive: !1 } : !1, In = function(e) {
1019
1019
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
1020
1020
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
1021
1021
  `);
1022
- }, Hn = 0, Y = [];
1023
- function Gn(e) {
1024
- var n = g.useRef([]), t = g.useRef([0, 0]), o = g.useRef(), a = g.useState(Hn++)[0], r = g.useState(function() {
1022
+ }, zn = 0, Y = [];
1023
+ function Hn(e) {
1024
+ var n = g.useRef([]), t = g.useRef([0, 0]), o = g.useRef(), a = g.useState(zn++)[0], r = g.useState(function() {
1025
1025
  return st();
1026
1026
  })[0], i = g.useRef(e);
1027
1027
  g.useEffect(function() {
@@ -1029,61 +1029,61 @@ function Gn(e) {
1029
1029
  }, [e]), g.useEffect(function() {
1030
1030
  if (e.inert) {
1031
1031
  document.body.classList.add("block-interactivity-".concat(a));
1032
- var u = pn([e.lockRef.current], (e.shards || []).map(ze), !0).filter(Boolean);
1033
- return u.forEach(function(v) {
1032
+ var c = pn([e.lockRef.current], (e.shards || []).map(Ke), !0).filter(Boolean);
1033
+ return c.forEach(function(v) {
1034
1034
  return v.classList.add("allow-interactivity-".concat(a));
1035
1035
  }), function() {
1036
- document.body.classList.remove("block-interactivity-".concat(a)), u.forEach(function(v) {
1036
+ document.body.classList.remove("block-interactivity-".concat(a)), c.forEach(function(v) {
1037
1037
  return v.classList.remove("allow-interactivity-".concat(a));
1038
1038
  });
1039
1039
  };
1040
1040
  }
1041
1041
  }, [e.inert, e.lockRef.current, e.shards]);
1042
- var c = g.useCallback(function(u, v) {
1043
- if ("touches" in u && u.touches.length === 2)
1042
+ var u = g.useCallback(function(c, v) {
1043
+ if ("touches" in c && c.touches.length === 2)
1044
1044
  return !i.current.allowPinchZoom;
1045
- var b = ae(u), x = t.current, $ = "deltaX" in u ? u.deltaX : x[0] - b[0], y = "deltaY" in u ? u.deltaY : x[1] - b[1], S, U = u.target, T = Math.abs($) > Math.abs(y) ? "h" : "v";
1046
- if ("touches" in u && T === "h" && U.type === "range")
1045
+ var b = ae(c), C = t.current, $ = "deltaX" in c ? c.deltaX : C[0] - b[0], y = "deltaY" in c ? c.deltaY : C[1] - b[1], S, U = c.target, T = Math.abs($) > Math.abs(y) ? "h" : "v";
1046
+ if ("touches" in c && T === "h" && U.type === "range")
1047
1047
  return !1;
1048
- var w = Ve(T, U);
1048
+ var w = Ge(T, U);
1049
1049
  if (!w)
1050
1050
  return !0;
1051
- if (w ? S = T : (S = T === "v" ? "h" : "v", w = Ve(T, U)), !w)
1051
+ if (w ? S = T : (S = T === "v" ? "h" : "v", w = Ge(T, U)), !w)
1052
1052
  return !1;
1053
- if (!o.current && "changedTouches" in u && ($ || y) && (o.current = S), !S)
1053
+ if (!o.current && "changedTouches" in c && ($ || y) && (o.current = S), !S)
1054
1054
  return !0;
1055
1055
  var M = o.current || S;
1056
- return Bn(M, v, u, M === "h" ? $ : y, !0);
1057
- }, []), l = g.useCallback(function(u) {
1058
- var v = u;
1056
+ return Bn(M, v, c, M === "h" ? $ : y, !0);
1057
+ }, []), l = g.useCallback(function(c) {
1058
+ var v = c;
1059
1059
  if (!(!Y.length || Y[Y.length - 1] !== r)) {
1060
- var b = "deltaY" in v ? Ke(v) : ae(v), x = n.current.filter(function(S) {
1060
+ var b = "deltaY" in v ? Ve(v) : ae(v), C = n.current.filter(function(S) {
1061
1061
  return S.name === v.type && S.target === v.target && Wn(S.delta, b);
1062
1062
  })[0];
1063
- if (x && x.should) {
1063
+ if (C && C.should) {
1064
1064
  v.cancelable && v.preventDefault();
1065
1065
  return;
1066
1066
  }
1067
- if (!x) {
1068
- var $ = (i.current.shards || []).map(ze).filter(Boolean).filter(function(S) {
1067
+ if (!C) {
1068
+ var $ = (i.current.shards || []).map(Ke).filter(Boolean).filter(function(S) {
1069
1069
  return S.contains(v.target);
1070
- }), y = $.length > 0 ? c(v, $[0]) : !i.current.noIsolation;
1070
+ }), y = $.length > 0 ? u(v, $[0]) : !i.current.noIsolation;
1071
1071
  y && v.cancelable && v.preventDefault();
1072
1072
  }
1073
1073
  }
1074
- }, []), d = g.useCallback(function(u, v, b, x) {
1075
- var $ = { name: u, delta: v, target: b, should: x };
1074
+ }, []), d = g.useCallback(function(c, v, b, C) {
1075
+ var $ = { name: c, delta: v, target: b, should: C };
1076
1076
  n.current.push($), setTimeout(function() {
1077
1077
  n.current = n.current.filter(function(y) {
1078
1078
  return y !== $;
1079
1079
  });
1080
1080
  }, 1);
1081
- }, []), p = g.useCallback(function(u) {
1082
- t.current = ae(u), o.current = void 0;
1083
- }, []), s = g.useCallback(function(u) {
1084
- d(u.type, Ke(u), u.target, c(u, e.lockRef.current));
1085
- }, []), h = g.useCallback(function(u) {
1086
- d(u.type, ae(u), u.target, c(u, e.lockRef.current));
1081
+ }, []), p = g.useCallback(function(c) {
1082
+ t.current = ae(c), o.current = void 0;
1083
+ }, []), s = g.useCallback(function(c) {
1084
+ d(c.type, Ve(c), c.target, u(c, e.lockRef.current));
1085
+ }, []), h = g.useCallback(function(c) {
1086
+ d(c.type, ae(c), c.target, u(c, e.lockRef.current));
1087
1087
  }, []);
1088
1088
  g.useEffect(function() {
1089
1089
  return Y.push(r), e.setCallbacks({
@@ -1091,8 +1091,8 @@ function Gn(e) {
1091
1091
  onWheelCapture: s,
1092
1092
  onTouchMoveCapture: h
1093
1093
  }), document.addEventListener("wheel", l, X), document.addEventListener("touchmove", l, X), document.addEventListener("touchstart", p, X), function() {
1094
- Y = Y.filter(function(u) {
1095
- return u !== r;
1094
+ Y = Y.filter(function(c) {
1095
+ return c !== r;
1096
1096
  }), document.removeEventListener("wheel", l, X), document.removeEventListener("touchmove", l, X), document.removeEventListener("touchstart", p, X);
1097
1097
  };
1098
1098
  }, []);
@@ -1101,21 +1101,21 @@ function Gn(e) {
1101
1101
  g.Fragment,
1102
1102
  null,
1103
1103
  E ? g.createElement(r, { styles: Un(a) }) : null,
1104
- f ? g.createElement(Rn, { gapMode: "margin" }) : null
1104
+ f ? g.createElement(In, { gapMode: "margin" }) : null
1105
1105
  );
1106
1106
  }
1107
- const Vn = yn(ut, Gn);
1107
+ const Gn = yn(ct, Hn);
1108
1108
  var ft = g.forwardRef(function(e, n) {
1109
- return g.createElement(ge, F({}, e, { ref: n, sideCar: Vn }));
1109
+ return g.createElement(ge, F({}, e, { ref: n, sideCar: Gn }));
1110
1110
  });
1111
1111
  ft.classNames = ge.classNames;
1112
- const Kn = ft;
1113
- var zn = function(e) {
1112
+ const Vn = ft;
1113
+ var Kn = function(e) {
1114
1114
  if (typeof document > "u")
1115
1115
  return null;
1116
1116
  var n = Array.isArray(e) ? e[0] : e;
1117
1117
  return n.ownerDocument.body;
1118
- }, q = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), ce = {}, we = 0, vt = function(e) {
1118
+ }, q = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), ue = {}, we = 0, vt = function(e) {
1119
1119
  return e && (e.host || vt(e.parentNode));
1120
1120
  }, Xn = function(e, n) {
1121
1121
  return n.map(function(t) {
@@ -1128,43 +1128,43 @@ var zn = function(e) {
1128
1128
  });
1129
1129
  }, Yn = function(e, n, t, o) {
1130
1130
  var a = Xn(n, Array.isArray(e) ? e : [e]);
1131
- ce[t] || (ce[t] = /* @__PURE__ */ new WeakMap());
1132
- var r = ce[t], i = [], c = /* @__PURE__ */ new Set(), l = new Set(a), d = function(s) {
1133
- !s || c.has(s) || (c.add(s), d(s.parentNode));
1131
+ ue[t] || (ue[t] = /* @__PURE__ */ new WeakMap());
1132
+ var r = ue[t], i = [], u = /* @__PURE__ */ new Set(), l = new Set(a), d = function(s) {
1133
+ !s || u.has(s) || (u.add(s), d(s.parentNode));
1134
1134
  };
1135
1135
  a.forEach(d);
1136
1136
  var p = function(s) {
1137
1137
  !s || l.has(s) || Array.prototype.forEach.call(s.children, function(h) {
1138
- if (c.has(h))
1138
+ if (u.has(h))
1139
1139
  p(h);
1140
1140
  else {
1141
- var f = h.getAttribute(o), E = f !== null && f !== "false", u = (q.get(h) || 0) + 1, v = (r.get(h) || 0) + 1;
1142
- q.set(h, u), r.set(h, v), i.push(h), u === 1 && E && ie.set(h, !0), v === 1 && h.setAttribute(t, "true"), E || h.setAttribute(o, "true");
1141
+ var f = h.getAttribute(o), E = f !== null && f !== "false", c = (q.get(h) || 0) + 1, v = (r.get(h) || 0) + 1;
1142
+ q.set(h, c), r.set(h, v), i.push(h), c === 1 && E && ie.set(h, !0), v === 1 && h.setAttribute(t, "true"), E || h.setAttribute(o, "true");
1143
1143
  }
1144
1144
  });
1145
1145
  };
1146
- return p(n), c.clear(), we++, function() {
1146
+ return p(n), u.clear(), we++, function() {
1147
1147
  i.forEach(function(s) {
1148
1148
  var h = q.get(s) - 1, f = r.get(s) - 1;
1149
1149
  q.set(s, h), r.set(s, f), h || (ie.has(s) || s.removeAttribute(o), ie.delete(s)), f || s.removeAttribute(t);
1150
- }), we--, we || (q = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), ce = {});
1150
+ }), we--, we || (q = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), ue = {});
1151
1151
  };
1152
1152
  }, qn = function(e, n, t) {
1153
1153
  t === void 0 && (t = "data-aria-hidden");
1154
- var o = Array.from(Array.isArray(e) ? e : [e]), a = n || zn(e);
1154
+ var o = Array.from(Array.isArray(e) ? e : [e]), a = n || Kn(e);
1155
1155
  return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live]"))), Yn(o, a, t, "aria-hidden")) : function() {
1156
1156
  return null;
1157
1157
  };
1158
1158
  };
1159
1159
  const ht = "Dialog", [gt, Eo] = Lt(ht), [Zn, L] = gt(ht), Qn = (e) => {
1160
- const { __scopeDialog: n, children: t, open: o, defaultOpen: a, onOpenChange: r, modal: i = !0 } = e, c = O(null), l = O(null), [d = !1, p] = Bt({
1160
+ const { __scopeDialog: n, children: t, open: o, defaultOpen: a, onOpenChange: r, modal: i = !0 } = e, u = O(null), l = O(null), [d = !1, p] = Bt({
1161
1161
  prop: o,
1162
1162
  defaultProp: a,
1163
1163
  onChange: r
1164
1164
  });
1165
1165
  return /* @__PURE__ */ m(Zn, {
1166
1166
  scope: n,
1167
- triggerRef: c,
1167
+ triggerRef: u,
1168
1168
  contentRef: l,
1169
1169
  contentId: me(),
1170
1170
  titleId: me(),
@@ -1181,7 +1181,7 @@ const ht = "Dialog", [gt, Eo] = Lt(ht), [Zn, L] = gt(ht), Qn = (e) => {
1181
1181
  ),
1182
1182
  modal: i
1183
1183
  }, t);
1184
- }, Jn = "DialogTrigger", er = /* @__PURE__ */ C((e, n) => {
1184
+ }, Jn = "DialogTrigger", er = /* @__PURE__ */ x((e, n) => {
1185
1185
  const { __scopeDialog: t, ...o } = e, a = L(Jn, t), r = J(n, a.triggerRef);
1186
1186
  return /* @__PURE__ */ m(W.button, P({
1187
1187
  type: "button",
@@ -1191,7 +1191,7 @@ const ht = "Dialog", [gt, Eo] = Lt(ht), [Zn, L] = gt(ht), Qn = (e) => {
1191
1191
  "data-state": Me(a.open)
1192
1192
  }, o, {
1193
1193
  ref: r,
1194
- onClick: k(e.onClick, a.onOpenToggle)
1194
+ onClick: j(e.onClick, a.onOpenToggle)
1195
1195
  }));
1196
1196
  }), mt = "DialogPortal", [tr, _t] = gt(mt, {
1197
1197
  forceMount: void 0
@@ -1200,29 +1200,29 @@ const ht = "Dialog", [gt, Eo] = Lt(ht), [Zn, L] = gt(ht), Qn = (e) => {
1200
1200
  return /* @__PURE__ */ m(tr, {
1201
1201
  scope: n,
1202
1202
  forceMount: t
1203
- }, I.map(
1203
+ }, R.map(
1204
1204
  o,
1205
1205
  (i) => /* @__PURE__ */ m(he, {
1206
1206
  present: t || r.open
1207
- }, /* @__PURE__ */ m(un, {
1207
+ }, /* @__PURE__ */ m(cn, {
1208
1208
  asChild: !0,
1209
1209
  container: a
1210
1210
  }, i))
1211
1211
  ));
1212
- }, Te = "DialogOverlay", rr = /* @__PURE__ */ C((e, n) => {
1212
+ }, Te = "DialogOverlay", rr = /* @__PURE__ */ x((e, n) => {
1213
1213
  const t = _t(Te, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = L(Te, e.__scopeDialog);
1214
1214
  return r.modal ? /* @__PURE__ */ m(he, {
1215
1215
  present: o || r.open
1216
1216
  }, /* @__PURE__ */ m(or, P({}, a, {
1217
1217
  ref: n
1218
1218
  }))) : null;
1219
- }), or = /* @__PURE__ */ C((e, n) => {
1219
+ }), or = /* @__PURE__ */ x((e, n) => {
1220
1220
  const { __scopeDialog: t, ...o } = e, a = L(Te, t);
1221
1221
  return (
1222
1222
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1223
1223
  // ie. when `Overlay` and `Content` are siblings
1224
- /* @__PURE__ */ m(Kn, {
1225
- as: Ie,
1224
+ /* @__PURE__ */ m(Vn, {
1225
+ as: Re,
1226
1226
  allowPinchZoom: !0,
1227
1227
  shards: [
1228
1228
  a.contentRef
@@ -1237,16 +1237,16 @@ const ht = "Dialog", [gt, Eo] = Lt(ht), [Zn, L] = gt(ht), Qn = (e) => {
1237
1237
  }
1238
1238
  })))
1239
1239
  );
1240
- }), ee = "DialogContent", ar = /* @__PURE__ */ C((e, n) => {
1240
+ }), ee = "DialogContent", ar = /* @__PURE__ */ x((e, n) => {
1241
1241
  const t = _t(ee, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = L(ee, e.__scopeDialog);
1242
1242
  return /* @__PURE__ */ m(he, {
1243
1243
  present: o || r.open
1244
1244
  }, r.modal ? /* @__PURE__ */ m(ir, P({}, a, {
1245
1245
  ref: n
1246
- })) : /* @__PURE__ */ m(cr, P({}, a, {
1246
+ })) : /* @__PURE__ */ m(ur, P({}, a, {
1247
1247
  ref: n
1248
1248
  })));
1249
- }), ir = /* @__PURE__ */ C((e, n) => {
1249
+ }), ir = /* @__PURE__ */ x((e, n) => {
1250
1250
  const t = L(ee, e.__scopeDialog), o = O(null), a = J(n, t.contentRef, o);
1251
1251
  return A(() => {
1252
1252
  const r = o.current;
@@ -1256,20 +1256,20 @@ const ht = "Dialog", [gt, Eo] = Lt(ht), [Zn, L] = gt(ht), Qn = (e) => {
1256
1256
  ref: a,
1257
1257
  trapFocus: t.open,
1258
1258
  disableOutsidePointerEvents: !0,
1259
- onCloseAutoFocus: k(e.onCloseAutoFocus, (r) => {
1259
+ onCloseAutoFocus: j(e.onCloseAutoFocus, (r) => {
1260
1260
  var i;
1261
1261
  r.preventDefault(), (i = t.triggerRef.current) === null || i === void 0 || i.focus();
1262
1262
  }),
1263
- onPointerDownOutside: k(e.onPointerDownOutside, (r) => {
1264
- const i = r.detail.originalEvent, c = i.button === 0 && i.ctrlKey === !0;
1265
- (i.button === 2 || c) && r.preventDefault();
1263
+ onPointerDownOutside: j(e.onPointerDownOutside, (r) => {
1264
+ const i = r.detail.originalEvent, u = i.button === 0 && i.ctrlKey === !0;
1265
+ (i.button === 2 || u) && r.preventDefault();
1266
1266
  }),
1267
- onFocusOutside: k(
1267
+ onFocusOutside: j(
1268
1268
  e.onFocusOutside,
1269
1269
  (r) => r.preventDefault()
1270
1270
  )
1271
1271
  }));
1272
- }), cr = /* @__PURE__ */ C((e, n) => {
1272
+ }), ur = /* @__PURE__ */ x((e, n) => {
1273
1273
  const t = L(ee, e.__scopeDialog), o = O(!1), a = O(!1);
1274
1274
  return /* @__PURE__ */ m(bt, P({}, e, {
1275
1275
  ref: n,
@@ -1278,21 +1278,21 @@ const ht = "Dialog", [gt, Eo] = Lt(ht), [Zn, L] = gt(ht), Qn = (e) => {
1278
1278
  onCloseAutoFocus: (r) => {
1279
1279
  var i;
1280
1280
  if ((i = e.onCloseAutoFocus) === null || i === void 0 || i.call(e, r), !r.defaultPrevented) {
1281
- var c;
1282
- o.current || (c = t.triggerRef.current) === null || c === void 0 || c.focus(), r.preventDefault();
1281
+ var u;
1282
+ o.current || (u = t.triggerRef.current) === null || u === void 0 || u.focus(), r.preventDefault();
1283
1283
  }
1284
1284
  o.current = !1, a.current = !1;
1285
1285
  },
1286
1286
  onInteractOutside: (r) => {
1287
- var i, c;
1287
+ var i, u;
1288
1288
  (i = e.onInteractOutside) === null || i === void 0 || i.call(e, r), r.defaultPrevented || (o.current = !0, r.detail.originalEvent.type === "pointerdown" && (a.current = !0));
1289
1289
  const l = r.target;
1290
- ((c = t.triggerRef.current) === null || c === void 0 ? void 0 : c.contains(l)) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && a.current && r.preventDefault();
1290
+ ((u = t.triggerRef.current) === null || u === void 0 ? void 0 : u.contains(l)) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && a.current && r.preventDefault();
1291
1291
  }
1292
1292
  }));
1293
- }), bt = /* @__PURE__ */ C((e, n) => {
1294
- const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...i } = e, c = L(ee, t), l = O(null), d = J(n, l);
1295
- return dn(), /* @__PURE__ */ m(Re, null, /* @__PURE__ */ m(en, {
1293
+ }), bt = /* @__PURE__ */ x((e, n) => {
1294
+ const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...i } = e, u = L(ee, t), l = O(null), d = J(n, l);
1295
+ return dn(), /* @__PURE__ */ m(Ie, null, /* @__PURE__ */ m(en, {
1296
1296
  asChild: !0,
1297
1297
  loop: !0,
1298
1298
  trapped: o,
@@ -1300,35 +1300,35 @@ const ht = "Dialog", [gt, Eo] = Lt(ht), [Zn, L] = gt(ht), Qn = (e) => {
1300
1300
  onUnmountAutoFocus: r
1301
1301
  }, /* @__PURE__ */ m(Zt, P({
1302
1302
  role: "dialog",
1303
- id: c.contentId,
1304
- "aria-describedby": c.descriptionId,
1305
- "aria-labelledby": c.titleId,
1306
- "data-state": Me(c.open)
1303
+ id: u.contentId,
1304
+ "aria-describedby": u.descriptionId,
1305
+ "aria-labelledby": u.titleId,
1306
+ "data-state": Me(u.open)
1307
1307
  }, i, {
1308
1308
  ref: d,
1309
- onDismiss: () => c.onOpenChange(!1)
1309
+ onDismiss: () => u.onOpenChange(!1)
1310
1310
  }))), !1);
1311
- }), ur = "DialogTitle", sr = /* @__PURE__ */ C((e, n) => {
1312
- const { __scopeDialog: t, ...o } = e, a = L(ur, t);
1311
+ }), cr = "DialogTitle", sr = /* @__PURE__ */ x((e, n) => {
1312
+ const { __scopeDialog: t, ...o } = e, a = L(cr, t);
1313
1313
  return /* @__PURE__ */ m(W.h2, P({
1314
1314
  id: a.titleId
1315
1315
  }, o, {
1316
1316
  ref: n
1317
1317
  }));
1318
- }), lr = "DialogDescription", dr = /* @__PURE__ */ C((e, n) => {
1318
+ }), lr = "DialogDescription", dr = /* @__PURE__ */ x((e, n) => {
1319
1319
  const { __scopeDialog: t, ...o } = e, a = L(lr, t);
1320
1320
  return /* @__PURE__ */ m(W.p, P({
1321
1321
  id: a.descriptionId
1322
1322
  }, o, {
1323
1323
  ref: n
1324
1324
  }));
1325
- }), pr = "DialogClose", fr = /* @__PURE__ */ C((e, n) => {
1325
+ }), pr = "DialogClose", fr = /* @__PURE__ */ x((e, n) => {
1326
1326
  const { __scopeDialog: t, ...o } = e, a = L(pr, t);
1327
1327
  return /* @__PURE__ */ m(W.button, P({
1328
1328
  type: "button"
1329
1329
  }, o, {
1330
1330
  ref: n,
1331
- onClick: k(
1331
+ onClick: j(
1332
1332
  e.onClick,
1333
1333
  () => a.onOpenChange(!1)
1334
1334
  )
@@ -1356,8 +1356,8 @@ var $t = { exports: {} };
1356
1356
  var n = {}.hasOwnProperty;
1357
1357
  function t() {
1358
1358
  for (var r = "", i = 0; i < arguments.length; i++) {
1359
- var c = arguments[i];
1360
- c && (r = a(r, o(c)));
1359
+ var u = arguments[i];
1360
+ u && (r = a(r, o(u)));
1361
1361
  }
1362
1362
  return r;
1363
1363
  }
@@ -1371,8 +1371,8 @@ var $t = { exports: {} };
1371
1371
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
1372
1372
  return r.toString();
1373
1373
  var i = "";
1374
- for (var c in r)
1375
- n.call(r, c) && r[c] && (i = a(i, c));
1374
+ for (var u in r)
1375
+ n.call(r, u) && r[u] && (i = a(i, u));
1376
1376
  return i;
1377
1377
  }
1378
1378
  function a(r, i) {
@@ -1382,7 +1382,7 @@ var $t = { exports: {} };
1382
1382
  })();
1383
1383
  })($t);
1384
1384
  var Er = $t.exports;
1385
- const qe = /* @__PURE__ */ yr(Er), wr = "_rotate_7s2g1_1", Sr = "_dash_7s2g1_1", ue = {
1385
+ const qe = /* @__PURE__ */ yr(Er), wr = "_rotate_7s2g1_1", Sr = "_dash_7s2g1_1", ce = {
1386
1386
  "purpur-spinner": "_purpur-spinner_7s2g1_1",
1387
1387
  rotate: wr,
1388
1388
  "purpur-spinner--xxs": "_purpur-spinner--xxs_7s2g1_4",
@@ -1395,12 +1395,12 @@ const qe = /* @__PURE__ */ yr(Er), wr = "_rotate_7s2g1_1", Sr = "_dash_7s2g1_1",
1395
1395
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_7s2g1_33",
1396
1396
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_7s2g1_36",
1397
1397
  "purpur-spinner__circle--negative-disabled": "_purpur-spinner__circle--negative-disabled_7s2g1_39"
1398
- }, se = "purpur-spinner", Cr = {
1398
+ }, se = "purpur-spinner", xr = {
1399
1399
  PRIMARY: "primary",
1400
1400
  DISABLED: "disabled",
1401
1401
  NEGATIVE: "negative",
1402
1402
  NEGATIVE_DISABLED: "negative-disabled"
1403
- }, xr = {
1403
+ }, Cr = {
1404
1404
  XXS: "xxs",
1405
1405
  XS: "xs",
1406
1406
  SM: "sm",
@@ -1408,21 +1408,21 @@ const qe = /* @__PURE__ */ yr(Er), wr = "_rotate_7s2g1_1", Sr = "_dash_7s2g1_1",
1408
1408
  LG: "lg"
1409
1409
  }, Or = ({
1410
1410
  ["data-testid"]: e,
1411
- size: n = xr.SM,
1412
- variant: t = Cr.PRIMARY,
1411
+ size: n = Cr.SM,
1412
+ variant: t = xr.PRIMARY,
1413
1413
  ...o
1414
1414
  }) => /* @__PURE__ */ _(
1415
1415
  "div",
1416
1416
  {
1417
- className: qe([ue[se], ue[`${se}--${n}`]]),
1417
+ className: qe([ce[se], ce[`${se}--${n}`]]),
1418
1418
  "data-testid": e,
1419
1419
  ...o,
1420
1420
  children: /* @__PURE__ */ _("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ _(
1421
1421
  "circle",
1422
1422
  {
1423
1423
  className: qe(
1424
- ue[`${se}__circle`],
1425
- ue[`${se}__circle--${t}`]
1424
+ ce[`${se}__circle`],
1425
+ ce[`${se}__circle--${t}`]
1426
1426
  ),
1427
1427
  cx: "25",
1428
1428
  cy: "25",
@@ -1445,8 +1445,8 @@ var yt = { exports: {} };
1445
1445
  var n = {}.hasOwnProperty;
1446
1446
  function t() {
1447
1447
  for (var r = "", i = 0; i < arguments.length; i++) {
1448
- var c = arguments[i];
1449
- c && (r = a(r, o(c)));
1448
+ var u = arguments[i];
1449
+ u && (r = a(r, o(u)));
1450
1450
  }
1451
1451
  return r;
1452
1452
  }
@@ -1460,8 +1460,8 @@ var yt = { exports: {} };
1460
1460
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
1461
1461
  return r.toString();
1462
1462
  var i = "";
1463
- for (var c in r)
1464
- n.call(r, c) && r[c] && (i = a(i, c));
1463
+ for (var u in r)
1464
+ n.call(r, u) && r[u] && (i = a(i, u));
1465
1465
  return i;
1466
1466
  }
1467
1467
  function a(r, i) {
@@ -1471,7 +1471,7 @@ var yt = { exports: {} };
1471
1471
  })();
1472
1472
  })(yt);
1473
1473
  var Nr = yt.exports;
1474
- const Ar = /* @__PURE__ */ Pr(Nr), H = {
1474
+ const Ar = /* @__PURE__ */ Pr(Nr), z = {
1475
1475
  "purpur-button": "_purpur-button_1fna2_1",
1476
1476
  "purpur-button--sm": "_purpur-button--sm_1fna2_33",
1477
1477
  "purpur-button--icon-only": "_purpur-button--icon-only_1fna2_36",
@@ -1492,7 +1492,7 @@ const Ar = /* @__PURE__ */ Pr(Nr), H = {
1492
1492
  "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1fna2_160",
1493
1493
  "purpur-button--text-negative": "_purpur-button--text-negative_1fna2_175",
1494
1494
  "purpur-button--text": "_purpur-button--text_1fna2_175"
1495
- }, G = "purpur-button", Tr = ({
1495
+ }, H = "purpur-button", Tr = ({
1496
1496
  children: e,
1497
1497
  className: n,
1498
1498
  ["data-testid"]: t,
@@ -1500,7 +1500,7 @@ const Ar = /* @__PURE__ */ Pr(Nr), H = {
1500
1500
  fullWidth: a = !1,
1501
1501
  iconOnly: r,
1502
1502
  loading: i = !1,
1503
- onClick: c,
1503
+ onClick: u,
1504
1504
  size: l = Ye.MD,
1505
1505
  variant: d,
1506
1506
  type: p = "button",
@@ -1510,21 +1510,21 @@ const Ar = /* @__PURE__ */ Pr(Nr), H = {
1510
1510
  return null;
1511
1511
  const f = Ar(
1512
1512
  [
1513
- H[G],
1514
- H[`${G}--${d}`],
1515
- H[`${G}--${l}`]
1513
+ z[H],
1514
+ z[`${H}--${d}`],
1515
+ z[`${H}--${l}`]
1516
1516
  ],
1517
1517
  {
1518
- [H[`${G}--icon-only`]]: r,
1519
- [H[`${G}--negative`]]: d.endsWith("negative"),
1520
- [H[`${G}--full-width`]]: a,
1521
- [H[`${G}--disabled`]]: o || i
1518
+ [z[`${H}--icon-only`]]: r,
1519
+ [z[`${H}--negative`]]: d.endsWith("negative"),
1520
+ [z[`${H}--full-width`]]: a,
1521
+ [z[`${H}--disabled`]]: o || i
1522
1522
  },
1523
1523
  n
1524
1524
  ), E = (v) => {
1525
- o || i ? v.preventDefault() : c && c(v);
1526
- }, u = () => d.endsWith("negative") ? "negative-disabled" : "disabled";
1527
- return /* @__PURE__ */ V(
1525
+ o || i ? v.preventDefault() : u && u(v);
1526
+ }, c = () => d.endsWith("negative") ? "negative-disabled" : "disabled";
1527
+ return /* @__PURE__ */ G(
1528
1528
  "button",
1529
1529
  {
1530
1530
  className: f,
@@ -1535,13 +1535,13 @@ const Ar = /* @__PURE__ */ Pr(Nr), H = {
1535
1535
  onClick: E,
1536
1536
  ...s,
1537
1537
  children: [
1538
- i && /* @__PURE__ */ _(Or, { size: l === Ye.LG ? "xs" : "xxs", variant: u() }),
1538
+ i && /* @__PURE__ */ _(Or, { size: l === Ye.LG ? "xs" : "xxs", variant: c() }),
1539
1539
  " ",
1540
1540
  e
1541
1541
  ]
1542
1542
  }
1543
1543
  );
1544
- }, Le = C(Tr);
1544
+ }, Le = x(Tr);
1545
1545
  Le.displayName = "Button";
1546
1546
  function Dr(e) {
1547
1547
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -1557,8 +1557,8 @@ var Et = { exports: {} };
1557
1557
  var n = {}.hasOwnProperty;
1558
1558
  function t() {
1559
1559
  for (var r = "", i = 0; i < arguments.length; i++) {
1560
- var c = arguments[i];
1561
- c && (r = a(r, o(c)));
1560
+ var u = arguments[i];
1561
+ u && (r = a(r, o(u)));
1562
1562
  }
1563
1563
  return r;
1564
1564
  }
@@ -1572,8 +1572,8 @@ var Et = { exports: {} };
1572
1572
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
1573
1573
  return r.toString();
1574
1574
  var i = "";
1575
- for (var c in r)
1576
- n.call(r, c) && r[c] && (i = a(i, c));
1575
+ for (var u in r)
1576
+ n.call(r, u) && r[u] && (i = a(i, u));
1577
1577
  return i;
1578
1578
  }
1579
1579
  function a(r, i) {
@@ -1582,22 +1582,22 @@ var Et = { exports: {} };
1582
1582
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1583
1583
  })();
1584
1584
  })(Et);
1585
- var Rr = Et.exports;
1586
- const Ir = /* @__PURE__ */ Dr(Rr), Se = {
1587
- "purpur-heading": "_purpur-heading_2c2y0_1",
1588
- "purpur-heading--hyphens": "_purpur-heading--hyphens_2c2y0_8",
1589
- "purpur-heading--subsection-100": "_purpur-heading--subsection-100_2c2y0_11",
1590
- "purpur-heading--title-100": "_purpur-heading--title-100_2c2y0_17",
1591
- "purpur-heading--title-200": "_purpur-heading--title-200_2c2y0_23",
1592
- "purpur-heading--title-300": "_purpur-heading--title-300_2c2y0_29",
1593
- "purpur-heading--title-400": "_purpur-heading--title-400_2c2y0_35",
1594
- "purpur-heading--title-500": "_purpur-heading--title-500_2c2y0_41",
1595
- "purpur-heading--title-600": "_purpur-heading--title-600_2c2y0_47",
1596
- "purpur-heading--title-700": "_purpur-heading--title-700_2c2y0_53",
1597
- "purpur-heading--display-25": "_purpur-heading--display-25_2c2y0_59",
1598
- "purpur-heading--display-50": "_purpur-heading--display-50_2c2y0_65",
1599
- "purpur-heading--display-100": "_purpur-heading--display-100_2c2y0_71",
1600
- "purpur-heading--display-200": "_purpur-heading--display-200_2c2y0_77"
1585
+ var Ir = Et.exports;
1586
+ const Rr = /* @__PURE__ */ Dr(Ir), Se = {
1587
+ "purpur-heading": "_purpur-heading_1abfh_1",
1588
+ "purpur-heading--hyphens": "_purpur-heading--hyphens_1abfh_8",
1589
+ "purpur-heading--subsection-100": "_purpur-heading--subsection-100_1abfh_11",
1590
+ "purpur-heading--title-100": "_purpur-heading--title-100_1abfh_17",
1591
+ "purpur-heading--title-200": "_purpur-heading--title-200_1abfh_23",
1592
+ "purpur-heading--title-300": "_purpur-heading--title-300_1abfh_29",
1593
+ "purpur-heading--title-400": "_purpur-heading--title-400_1abfh_35",
1594
+ "purpur-heading--title-500": "_purpur-heading--title-500_1abfh_41",
1595
+ "purpur-heading--title-600": "_purpur-heading--title-600_1abfh_47",
1596
+ "purpur-heading--title-700": "_purpur-heading--title-700_1abfh_53",
1597
+ "purpur-heading--display-25": "_purpur-heading--display-25_1abfh_59",
1598
+ "purpur-heading--display-50": "_purpur-heading--display-50_1abfh_65",
1599
+ "purpur-heading--display-100": "_purpur-heading--display-100_1abfh_71",
1600
+ "purpur-heading--display-200": "_purpur-heading--display-200_1abfh_77"
1601
1601
  }, Mr = {
1602
1602
  TITLE100: "title-100",
1603
1603
  TITLE200: "title-200",
@@ -1607,7 +1607,7 @@ const Ir = /* @__PURE__ */ Dr(Rr), Se = {
1607
1607
  TITLE600: "title-600",
1608
1608
  TITLE700: "title-700",
1609
1609
  SUBSECTION100: "subsection-100"
1610
- }, Ce = "purpur-heading", Lr = ({
1610
+ }, xe = "purpur-heading", Lr = ({
1611
1611
  ["data-testid"]: e,
1612
1612
  children: n,
1613
1613
  className: t = "",
@@ -1616,15 +1616,15 @@ const Ir = /* @__PURE__ */ Dr(Rr), Se = {
1616
1616
  variant: r = Mr.TITLE100,
1617
1617
  ...i
1618
1618
  }) => {
1619
- const c = a, l = Ir([
1619
+ const u = a, l = Rr([
1620
1620
  t,
1621
- Se[Ce],
1622
- Se[`${Ce}--${r}`],
1621
+ Se[xe],
1622
+ Se[`${xe}--${r}`],
1623
1623
  {
1624
- [Se[`${Ce}--hyphens`]]: o
1624
+ [Se[`${xe}--hyphens`]]: o
1625
1625
  }
1626
1626
  ]);
1627
- return /* @__PURE__ */ _(c, { ...i, className: l, "data-testid": e, children: n });
1627
+ return /* @__PURE__ */ _(u, { ...i, className: l, "data-testid": e, children: n });
1628
1628
  };
1629
1629
  function Fr(e) {
1630
1630
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -1640,8 +1640,8 @@ var wt = { exports: {} };
1640
1640
  var n = {}.hasOwnProperty;
1641
1641
  function t() {
1642
1642
  for (var r = "", i = 0; i < arguments.length; i++) {
1643
- var c = arguments[i];
1644
- c && (r = a(r, o.call(this, c)));
1643
+ var u = arguments[i];
1644
+ u && (r = a(r, o.call(this, u)));
1645
1645
  }
1646
1646
  return r;
1647
1647
  }
@@ -1655,8 +1655,8 @@ var wt = { exports: {} };
1655
1655
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
1656
1656
  return r.toString();
1657
1657
  var i = "";
1658
- for (var c in r)
1659
- n.call(r, c) && r[c] && (i = a(i, this && this[c] || c));
1658
+ for (var u in r)
1659
+ n.call(r, u) && r[u] && (i = a(i, this && this[u] || u));
1660
1660
  return i;
1661
1661
  }
1662
1662
  function a(r, i) {
@@ -1665,8 +1665,8 @@ var wt = { exports: {} };
1665
1665
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1666
1666
  })();
1667
1667
  })(wt);
1668
- var jr = wt.exports;
1669
- const kr = /* @__PURE__ */ Fr(jr), Br = {
1668
+ var kr = wt.exports;
1669
+ const jr = /* @__PURE__ */ Fr(kr), Br = {
1670
1670
  "purpur-icon": "_purpur-icon_8u1lq_1",
1671
1671
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
1672
1672
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -1680,38 +1680,38 @@ const kr = /* @__PURE__ */ Fr(jr), Br = {
1680
1680
  keywords: ["close"],
1681
1681
  category: "utility"
1682
1682
  }, St = (e) => /* @__PURE__ */ _(
1683
- zr,
1683
+ Kr,
1684
1684
  {
1685
1685
  ...e,
1686
1686
  svg: Wr
1687
1687
  }
1688
1688
  );
1689
1689
  St.displayName = "IconClose";
1690
- const Ur = kr.bind(Br), Ze = "purpur-icon", Hr = "md", Gr = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Vr = ({ content: e = "", title: n } = {}) => {
1690
+ const Ur = jr.bind(Br), Ze = "purpur-icon", zr = "md", Hr = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Gr = ({ content: e = "", title: n } = {}) => {
1691
1691
  const t = [
1692
1692
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
1693
1693
  { name: "fill", value: "currentColor" },
1694
1694
  { name: "viewBox", value: "0 0 24 24" },
1695
1695
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
1696
1696
  ], o = n ? `<title>${n}</title>` : "";
1697
- return `<svg ${Gr(t)}>${o}${e}</svg>`;
1698
- }, Kr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), zr = ({
1697
+ return `<svg ${Hr(t)}>${o}${e}</svg>`;
1698
+ }, Vr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Kr = ({
1699
1699
  ["data-testid"]: e,
1700
1700
  svg: n,
1701
1701
  allyTitle: t,
1702
1702
  className: o = "",
1703
- size: a = Hr,
1703
+ size: a = zr,
1704
1704
  ...r
1705
1705
  }) => {
1706
- const i = Vr({
1707
- content: Kr(n.svg),
1706
+ const i = Gr({
1707
+ content: Vr(n.svg),
1708
1708
  title: t
1709
- }), c = Ur(o, Ze, `${Ze}--${a}`);
1709
+ }), u = Ur(o, Ze, `${Ze}--${a}`);
1710
1710
  return /* @__PURE__ */ _(
1711
1711
  "span",
1712
1712
  {
1713
1713
  "aria-label": t,
1714
- className: c,
1714
+ className: u,
1715
1715
  "data-testid": e,
1716
1716
  dangerouslySetInnerHTML: { __html: i },
1717
1717
  ...r
@@ -1721,7 +1721,7 @@ const Ur = kr.bind(Br), Ze = "purpur-icon", Hr = "md", Gr = (e) => e.filter((n)
1721
1721
  function Xr(e) {
1722
1722
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1723
1723
  }
1724
- var Ct = { exports: {} };
1724
+ var xt = { exports: {} };
1725
1725
  /*!
1726
1726
  Copyright (c) 2018 Jed Watson.
1727
1727
  Licensed under the MIT License (MIT), see
@@ -1732,8 +1732,8 @@ var Ct = { exports: {} };
1732
1732
  var n = {}.hasOwnProperty;
1733
1733
  function t() {
1734
1734
  for (var r = "", i = 0; i < arguments.length; i++) {
1735
- var c = arguments[i];
1736
- c && (r = a(r, o(c)));
1735
+ var u = arguments[i];
1736
+ u && (r = a(r, o(u)));
1737
1737
  }
1738
1738
  return r;
1739
1739
  }
@@ -1747,8 +1747,8 @@ var Ct = { exports: {} };
1747
1747
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
1748
1748
  return r.toString();
1749
1749
  var i = "";
1750
- for (var c in r)
1751
- n.call(r, c) && r[c] && (i = a(i, c));
1750
+ for (var u in r)
1751
+ n.call(r, u) && r[u] && (i = a(i, u));
1752
1752
  return i;
1753
1753
  }
1754
1754
  function a(r, i) {
@@ -1756,22 +1756,22 @@ var Ct = { exports: {} };
1756
1756
  }
1757
1757
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1758
1758
  })();
1759
- })(Ct);
1760
- var Yr = Ct.exports;
1759
+ })(xt);
1760
+ var Yr = xt.exports;
1761
1761
  const qr = /* @__PURE__ */ Xr(Yr), le = {
1762
- "purpur-paragraph": "_purpur-paragraph_hwaj6_1",
1763
- "purpur-paragraph--disabled": "_purpur-paragraph--disabled_hwaj6_7",
1764
- "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_hwaj6_10",
1765
- "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_hwaj6_13",
1766
- "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_hwaj6_19",
1767
- "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_hwaj6_26",
1768
- "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_hwaj6_33",
1769
- "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_hwaj6_39",
1770
- "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_hwaj6_45",
1771
- "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_hwaj6_51",
1772
- "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_hwaj6_57",
1773
- "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_hwaj6_64",
1774
- "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_hwaj6_71"
1762
+ "purpur-paragraph": "_purpur-paragraph_1fzxr_1",
1763
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1fzxr_7",
1764
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1fzxr_10",
1765
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1fzxr_13",
1766
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1fzxr_19",
1767
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1fzxr_26",
1768
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1fzxr_33",
1769
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1fzxr_39",
1770
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1fzxr_45",
1771
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1fzxr_51",
1772
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1fzxr_57",
1773
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1fzxr_64",
1774
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1fzxr_71"
1775
1775
  }, Zr = {
1776
1776
  PARAGRAPH100: "paragraph-100",
1777
1777
  PARAGRAPH100MEDIUM: "paragraph-100-medium",
@@ -1792,7 +1792,7 @@ const qr = /* @__PURE__ */ Xr(Yr), le = {
1792
1792
  variant: r = Zr.PARAGRAPH100,
1793
1793
  ...i
1794
1794
  }) => {
1795
- const c = qr([
1795
+ const u = qr([
1796
1796
  t,
1797
1797
  le[de],
1798
1798
  le[`${de}--${r}`],
@@ -1801,7 +1801,7 @@ const qr = /* @__PURE__ */ Xr(Yr), le = {
1801
1801
  [le[`${de}--disabled`]]: o
1802
1802
  }
1803
1803
  ]);
1804
- return /* @__PURE__ */ _("p", { ...i, className: c, "data-testid": e, children: n });
1804
+ return /* @__PURE__ */ _("p", { ...i, className: u, "data-testid": e, children: n });
1805
1805
  };
1806
1806
  function Z() {
1807
1807
  return Z = Object.assign ? Object.assign.bind() : function(e) {
@@ -1821,28 +1821,28 @@ function eo(...e) {
1821
1821
  (t) => Jr(t, n)
1822
1822
  );
1823
1823
  }
1824
- const xt = /* @__PURE__ */ C((e, n) => {
1825
- const { children: t, ...o } = e, a = I.toArray(t), r = a.find(no);
1824
+ const Ct = /* @__PURE__ */ x((e, n) => {
1825
+ const { children: t, ...o } = e, a = R.toArray(t), r = a.find(no);
1826
1826
  if (r) {
1827
- const i = r.props.children, c = a.map((l) => l === r ? I.count(i) > 1 ? I.only(null) : /* @__PURE__ */ B(i) ? i.props.children : null : l);
1827
+ const i = r.props.children, u = a.map((l) => l === r ? R.count(i) > 1 ? R.only(null) : /* @__PURE__ */ B(i) ? i.props.children : null : l);
1828
1828
  return /* @__PURE__ */ m(De, Z({}, o, {
1829
1829
  ref: n
1830
- }), /* @__PURE__ */ B(i) ? /* @__PURE__ */ te(i, void 0, c) : null);
1830
+ }), /* @__PURE__ */ B(i) ? /* @__PURE__ */ te(i, void 0, u) : null);
1831
1831
  }
1832
1832
  return /* @__PURE__ */ m(De, Z({}, o, {
1833
1833
  ref: n
1834
1834
  }), t);
1835
1835
  });
1836
- xt.displayName = "Slot";
1837
- const De = /* @__PURE__ */ C((e, n) => {
1836
+ Ct.displayName = "Slot";
1837
+ const De = /* @__PURE__ */ x((e, n) => {
1838
1838
  const { children: t, ...o } = e;
1839
1839
  return /* @__PURE__ */ B(t) ? /* @__PURE__ */ te(t, {
1840
1840
  ...ro(o, t.props),
1841
1841
  ref: n ? eo(n, t.ref) : t.ref
1842
- }) : I.count(t) > 1 ? I.only(null) : null;
1842
+ }) : R.count(t) > 1 ? R.only(null) : null;
1843
1843
  });
1844
1844
  De.displayName = "SlotClone";
1845
- const to = ({ children: e }) => /* @__PURE__ */ m(Re, null, e);
1845
+ const to = ({ children: e }) => /* @__PURE__ */ m(Ie, null, e);
1846
1846
  function no(e) {
1847
1847
  return /* @__PURE__ */ B(e) && e.type === to;
1848
1848
  }
@@ -1885,11 +1885,11 @@ const oo = [
1885
1885
  "svg",
1886
1886
  "ul"
1887
1887
  ], ao = oo.reduce((e, n) => {
1888
- const t = /* @__PURE__ */ C((o, a) => {
1889
- const { asChild: r, ...i } = o, c = r ? xt : n;
1888
+ const t = /* @__PURE__ */ x((o, a) => {
1889
+ const { asChild: r, ...i } = o, u = r ? Ct : n;
1890
1890
  return A(() => {
1891
1891
  window[Symbol.for("radix-ui")] = !0;
1892
- }, []), /* @__PURE__ */ m(c, Z({}, i, {
1892
+ }, []), /* @__PURE__ */ m(u, Z({}, i, {
1893
1893
  ref: a
1894
1894
  }));
1895
1895
  });
@@ -1897,7 +1897,7 @@ const oo = [
1897
1897
  ...e,
1898
1898
  [n]: t
1899
1899
  };
1900
- }, {}), io = /* @__PURE__ */ C((e, n) => /* @__PURE__ */ m(ao.span, Z({}, e, {
1900
+ }, {}), io = /* @__PURE__ */ x((e, n) => /* @__PURE__ */ m(ao.span, Z({}, e, {
1901
1901
  ref: n,
1902
1902
  style: {
1903
1903
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -1913,12 +1913,12 @@ const oo = [
1913
1913
  wordWrap: "normal",
1914
1914
  ...e.style
1915
1915
  }
1916
- }))), co = io, uo = ({
1916
+ }))), uo = io, co = ({
1917
1917
  asChild: e,
1918
1918
  children: n,
1919
1919
  className: t = "",
1920
1920
  ["data-testid"]: o
1921
- }) => /* @__PURE__ */ _(co, { asChild: e, "data-testid": o, className: t, children: n }), so = "600px";
1921
+ }) => /* @__PURE__ */ _(uo, { asChild: e, "data-testid": o, className: t, children: n }), so = "600px";
1922
1922
  function lo(e) {
1923
1923
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1924
1924
  }
@@ -1933,8 +1933,8 @@ var Ot = { exports: {} };
1933
1933
  var n = {}.hasOwnProperty;
1934
1934
  function t() {
1935
1935
  for (var r = "", i = 0; i < arguments.length; i++) {
1936
- var c = arguments[i];
1937
- c && (r = a(r, o.call(this, c)));
1936
+ var u = arguments[i];
1937
+ u && (r = a(r, o.call(this, u)));
1938
1938
  }
1939
1939
  return r;
1940
1940
  }
@@ -1948,8 +1948,8 @@ var Ot = { exports: {} };
1948
1948
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
1949
1949
  return r.toString();
1950
1950
  var i = "";
1951
- for (var c in r)
1952
- n.call(r, c) && r[c] && (i = a(i, this && this[c] || c));
1951
+ for (var u in r)
1952
+ n.call(r, u) && r[u] && (i = a(i, this && this[u] || u));
1953
1953
  return i;
1954
1954
  }
1955
1955
  function a(r, i) {
@@ -1977,7 +1977,7 @@ const fo = /* @__PURE__ */ lo(po), vo = "_fadeIn_1fnes_1", ho = {
1977
1977
  "purpur-modal-content--with-image": "_purpur-modal-content--with-image_1fnes_156",
1978
1978
  "purpur-modal-content--overflow": "_purpur-modal-content--overflow_1fnes_156",
1979
1979
  "purpur-modal-content--sticky-footer": "_purpur-modal-content--sticky-footer_1fnes_194"
1980
- }, Qe = (e) => e.showCloseButton === !0, D = fo.bind(ho), N = "purpur-modal-content", go = C(
1980
+ }, Qe = (e) => e.showCloseButton === !0, D = fo.bind(ho), N = "purpur-modal-content", go = x(
1981
1981
  ({
1982
1982
  ["data-testid"]: e,
1983
1983
  actions: n,
@@ -1986,39 +1986,39 @@ const fo = /* @__PURE__ */ lo(po), vo = "_fadeIn_1fnes_1", ho = {
1986
1986
  description: a,
1987
1987
  disableCloseOnClickOutside: r,
1988
1988
  hideDescription: i,
1989
- image: c,
1989
+ image: u,
1990
1990
  primaryActionVariant: l = "primary",
1991
1991
  stickyButtons: d = !0,
1992
1992
  title: p,
1993
1993
  ...s
1994
1994
  }, h) => {
1995
- const { closeButtonAllyLabel: f, showCloseButton: E, ...u } = s, [v, b] = K(!1), x = O(null), $ = O(null), y = O(null), S = O(null), U = D([
1995
+ const { closeButtonAllyLabel: f, showCloseButton: E, ...c } = s, [v, b] = V(!1), C = O(null), $ = O(null), y = O(null), S = O(null), U = D([
1996
1996
  N,
1997
- { [`${N}--with-image`]: !!c },
1997
+ { [`${N}--with-image`]: !!u },
1998
1998
  { [`${N}--overflow`]: v },
1999
1999
  { [`${N}--sticky-footer`]: d },
2000
2000
  o
2001
- ]), T = (R) => e ? `${e} ${R}` : void 0, w = (R) => {
2002
- r && R.preventDefault();
2001
+ ]), T = (I) => e ? `${e} ${I}` : void 0, w = (I) => {
2002
+ r && I.preventDefault();
2003
2003
  }, M = Q(() => {
2004
- if (!x.current || !$.current || !y.current || !S.current)
2004
+ if (!C.current || !$.current || !y.current || !S.current)
2005
2005
  return;
2006
- const R = window.innerWidth < parseInt(so), Pt = window.getComputedStyle(
2007
- R ? x.current : y.current,
2006
+ const I = window.innerWidth < parseInt(so), Pt = window.getComputedStyle(
2007
+ I ? C.current : y.current,
2008
2008
  null
2009
- ), Nt = parseFloat(Pt.getPropertyValue("height")), At = R ? $.current.offsetHeight : S.current.offsetHeight;
2009
+ ), Nt = parseFloat(Pt.getPropertyValue("height")), At = I ? $.current.offsetHeight : S.current.offsetHeight;
2010
2010
  b(Nt < At);
2011
- }, []), ne = (R) => {
2012
- r && !E && R.preventDefault();
2011
+ }, []), ne = (I) => {
2012
+ r && !E && I.preventDefault();
2013
2013
  };
2014
2014
  return A(() => (window.addEventListener("resize", M), () => {
2015
2015
  window.removeEventListener("resize", M);
2016
- }), []), /* @__PURE__ */ V(gr, { children: [
2016
+ }), []), /* @__PURE__ */ G(gr, { children: [
2017
2017
  /* @__PURE__ */ _(mr, { className: D(`${N}__overlay`) }),
2018
- /* @__PURE__ */ V(
2018
+ /* @__PURE__ */ G(
2019
2019
  _r,
2020
2020
  {
2021
- ...u,
2021
+ ...c,
2022
2022
  className: U,
2023
2023
  "data-testid": e,
2024
2024
  ref: h,
@@ -2027,8 +2027,8 @@ const fo = /* @__PURE__ */ lo(po), vo = "_fadeIn_1fnes_1", ho = {
2027
2027
  onOpenAutoFocus: M,
2028
2028
  onEscapeKeyDown: ne,
2029
2029
  children: [
2030
- /* @__PURE__ */ V("div", { ref: x, className: D(`${N}__wrapper`), children: [
2031
- Qe(s) && f && c && /* @__PURE__ */ _(
2030
+ /* @__PURE__ */ G("div", { ref: C, className: D(`${N}__wrapper`), children: [
2031
+ Qe(s) && f && u && /* @__PURE__ */ _(
2032
2032
  Je,
2033
2033
  {
2034
2034
  allyLabel: f,
@@ -2036,9 +2036,9 @@ const fo = /* @__PURE__ */ lo(po), vo = "_fadeIn_1fnes_1", ho = {
2036
2036
  "data-testid": T("close-button")
2037
2037
  }
2038
2038
  ),
2039
- /* @__PURE__ */ V("div", { ref: $, className: D(`${N}__wrapper-inner`), children: [
2040
- /* @__PURE__ */ V("div", { className: D(`${N}__header`), children: [
2041
- Qe(s) && f && !c && /* @__PURE__ */ _(
2039
+ /* @__PURE__ */ G("div", { ref: $, className: D(`${N}__wrapper-inner`), children: [
2040
+ /* @__PURE__ */ G("div", { className: D(`${N}__header`), children: [
2041
+ Qe(s) && f && !u && /* @__PURE__ */ _(
2042
2042
  Je,
2043
2043
  {
2044
2044
  allyLabel: f,
@@ -2055,16 +2055,16 @@ const fo = /* @__PURE__ */ lo(po), vo = "_fadeIn_1fnes_1", ho = {
2055
2055
  }
2056
2056
  )
2057
2057
  ] }),
2058
- c && /* @__PURE__ */ _(
2058
+ u && /* @__PURE__ */ _(
2059
2059
  "div",
2060
2060
  {
2061
2061
  className: D(`${N}__image-wrapper`),
2062
2062
  "data-testid": T("image"),
2063
- children: c
2063
+ children: u
2064
2064
  }
2065
2065
  ),
2066
- /* @__PURE__ */ _("div", { ref: y, className: D(`${N}__body`), children: /* @__PURE__ */ V("div", { ref: S, className: D(`${N}__body-inner`), children: [
2067
- a && /* @__PURE__ */ _(Tt, { children: i ? /* @__PURE__ */ _(uo, { asChild: !0, children: /* @__PURE__ */ _(Xe, { "data-testid": T("description"), children: a }) }) : /* @__PURE__ */ _(
2066
+ /* @__PURE__ */ _("div", { ref: y, className: D(`${N}__body`), children: /* @__PURE__ */ G("div", { ref: S, className: D(`${N}__body-inner`), children: [
2067
+ a && /* @__PURE__ */ _(Tt, { children: i ? /* @__PURE__ */ _(co, { asChild: !0, children: /* @__PURE__ */ _(Xe, { "data-testid": T("description"), children: a }) }) : /* @__PURE__ */ _(
2068
2068
  Xe,
2069
2069
  {
2070
2070
  asChild: !0,
@@ -2115,7 +2115,7 @@ const fo = /* @__PURE__ */ lo(po), vo = "_fadeIn_1fnes_1", ho = {
2115
2115
  },
2116
2116
  o
2117
2117
  )) }) : null;
2118
- }, _o = C(
2118
+ }, _o = x(
2119
2119
  ({ ["data-testid"]: e, children: n, className: t, ...o }, a) => /* @__PURE__ */ _(
2120
2120
  hr,
2121
2121
  {