@purpurds/drawer 8.4.0 → 8.5.1

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/drawer.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as f, jsxs as D, Fragment as re } from "react/jsx-runtime";
2
2
  import * as c from "react";
3
- import ke, { useState as Tr, createContext as Or, forwardRef as H, useRef as et, useContext as Lr, useEffect as $r } from "react";
4
- import * as Mr from "react-dom";
5
- import Ir from "react-dom";
3
+ import ke, { useState as Lr, createContext as $r, forwardRef as V, useRef as et, useContext as Mr, useEffect as Ir } from "react";
4
+ import * as kr from "react-dom";
5
+ import Wr from "react-dom";
6
6
  function A(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
7
7
  return function(a) {
8
8
  if (e == null || e(a), r === !1 || !a.defaultPrevented)
@@ -14,7 +14,7 @@ function tt(e, t) {
14
14
  return e(t);
15
15
  e != null && (e.current = t);
16
16
  }
17
- function At(...e) {
17
+ function Dt(...e) {
18
18
  return (t) => {
19
19
  let r = !1;
20
20
  const o = e.map((a) => {
@@ -31,9 +31,9 @@ function At(...e) {
31
31
  };
32
32
  }
33
33
  function L(...e) {
34
- return c.useCallback(At(...e), e);
34
+ return c.useCallback(Dt(...e), e);
35
35
  }
36
- function kr(e, t) {
36
+ function Fr(e, t) {
37
37
  const r = c.createContext(t), o = (n) => {
38
38
  const { children: s, ...i } = n, u = c.useMemo(() => i, Object.values(i));
39
39
  return /* @__PURE__ */ f(r.Provider, { value: u, children: s });
@@ -47,20 +47,20 @@ function kr(e, t) {
47
47
  }
48
48
  return [o, a];
49
49
  }
50
- function Dt(e, t = []) {
50
+ function Tt(e, t = []) {
51
51
  let r = [];
52
52
  function o(n, s) {
53
53
  const i = c.createContext(s), u = r.length;
54
54
  r = [...r, s];
55
55
  const l = (p) => {
56
56
  var b;
57
- const { scope: v, children: m, ..._ } = p, h = ((b = v == null ? void 0 : v[e]) == null ? void 0 : b[u]) || i, g = c.useMemo(() => _, Object.values(_));
58
- return /* @__PURE__ */ f(h.Provider, { value: g, children: m });
57
+ const { scope: h, children: m, ..._ } = p, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[u]) || i, g = c.useMemo(() => _, Object.values(_));
58
+ return /* @__PURE__ */ f(v.Provider, { value: g, children: m });
59
59
  };
60
60
  l.displayName = n + "Provider";
61
- function d(p, v) {
62
- var h;
63
- const m = ((h = v == null ? void 0 : v[e]) == null ? void 0 : h[u]) || i, _ = c.useContext(m);
61
+ function d(p, h) {
62
+ var v;
63
+ const m = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[u]) || i, _ = c.useContext(m);
64
64
  if (_) return _;
65
65
  if (s !== void 0) return s;
66
66
  throw new Error(`\`${p}\` must be used within \`${n}\``);
@@ -77,9 +77,9 @@ function Dt(e, t = []) {
77
77
  );
78
78
  };
79
79
  };
80
- return a.scopeName = e, [o, Wr(a, ...t)];
80
+ return a.scopeName = e, [o, jr(a, ...t)];
81
81
  }
82
- function Wr(...e) {
82
+ function jr(...e) {
83
83
  const t = e[0];
84
84
  if (e.length === 1) return t;
85
85
  const r = () => {
@@ -98,23 +98,23 @@ function Wr(...e) {
98
98
  return r.scopeName = t.scopeName, r;
99
99
  }
100
100
  var ne = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
101
- }, jr = c[" useId ".trim().toString()] || (() => {
102
- }), Fr = 0;
103
- function xe(e) {
104
- const [t, r] = c.useState(jr());
101
+ }, Ur = c[" useId ".trim().toString()] || (() => {
102
+ }), Br = 0;
103
+ function Re(e) {
104
+ const [t, r] = c.useState(Ur());
105
105
  return ne(() => {
106
- r((o) => o ?? String(Fr++));
106
+ r((o) => o ?? String(Br++));
107
107
  }, [e]), e || (t ? `radix-${t}` : "");
108
108
  }
109
- var Ur = c[" useInsertionEffect ".trim().toString()] || ne;
110
- function Br({
109
+ var Hr = c[" useInsertionEffect ".trim().toString()] || ne;
110
+ function Vr({
111
111
  prop: e,
112
112
  defaultProp: t,
113
113
  onChange: r = () => {
114
114
  },
115
115
  caller: o
116
116
  }) {
117
- const [a, n, s] = Hr({
117
+ const [a, n, s] = zr({
118
118
  defaultProp: t,
119
119
  onChange: r
120
120
  }), i = e !== void 0, u = i ? e : a;
@@ -131,8 +131,8 @@ function Br({
131
131
  (d) => {
132
132
  var p;
133
133
  if (i) {
134
- const v = Vr(d) ? d(e) : d;
135
- v !== e && ((p = s.current) == null || p.call(s, v));
134
+ const h = Yr(d) ? d(e) : d;
135
+ h !== e && ((p = s.current) == null || p.call(s, h));
136
136
  } else
137
137
  n(d);
138
138
  },
@@ -140,25 +140,25 @@ function Br({
140
140
  );
141
141
  return [u, l];
142
142
  }
143
- function Hr({
143
+ function zr({
144
144
  defaultProp: e,
145
145
  onChange: t
146
146
  }) {
147
147
  const [r, o] = c.useState(e), a = c.useRef(r), n = c.useRef(t);
148
- return Ur(() => {
148
+ return Hr(() => {
149
149
  n.current = t;
150
150
  }, [t]), c.useEffect(() => {
151
151
  var s;
152
152
  a.current !== r && ((s = n.current) == null || s.call(n, r), a.current = r);
153
153
  }, [r, a]), [r, o, n];
154
154
  }
155
- function Vr(e) {
155
+ function Yr(e) {
156
156
  return typeof e == "function";
157
157
  }
158
158
  // @__NO_SIDE_EFFECTS__
159
- function Tt(e) {
160
- const t = /* @__PURE__ */ zr(e), r = c.forwardRef((o, a) => {
161
- const { children: n, ...s } = o, i = c.Children.toArray(n), u = i.find(Xr);
159
+ function Ot(e) {
160
+ const t = /* @__PURE__ */ Xr(e), r = c.forwardRef((o, a) => {
161
+ const { children: n, ...s } = o, i = c.Children.toArray(n), u = i.find(Gr);
162
162
  if (u) {
163
163
  const l = u.props.children, d = i.map((p) => p === u ? c.Children.count(l) > 1 ? c.Children.only(null) : c.isValidElement(l) ? l.props.children : null : p);
164
164
  return /* @__PURE__ */ f(t, { ...s, ref: a, children: c.isValidElement(l) ? c.cloneElement(l, void 0, d) : null });
@@ -168,22 +168,22 @@ function Tt(e) {
168
168
  return r.displayName = `${e}.Slot`, r;
169
169
  }
170
170
  // @__NO_SIDE_EFFECTS__
171
- function zr(e) {
171
+ function Xr(e) {
172
172
  const t = c.forwardRef((r, o) => {
173
173
  const { children: a, ...n } = r;
174
174
  if (c.isValidElement(a)) {
175
- const s = Gr(a), i = qr(n, a.props);
176
- return a.type !== c.Fragment && (i.ref = o ? At(o, s) : s), c.cloneElement(a, i);
175
+ const s = Zr(a), i = Kr(n, a.props);
176
+ return a.type !== c.Fragment && (i.ref = o ? Dt(o, s) : s), c.cloneElement(a, i);
177
177
  }
178
178
  return c.Children.count(a) > 1 ? c.Children.only(null) : null;
179
179
  });
180
180
  return t.displayName = `${e}.SlotClone`, t;
181
181
  }
182
- var Yr = Symbol("radix.slottable");
183
- function Xr(e) {
184
- return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Yr;
182
+ var qr = Symbol("radix.slottable");
183
+ function Gr(e) {
184
+ return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === qr;
185
185
  }
186
- function qr(e, t) {
186
+ function Kr(e, t) {
187
187
  const r = { ...t };
188
188
  for (const o in t) {
189
189
  const a = e[o], n = t[o];
@@ -194,12 +194,12 @@ function qr(e, t) {
194
194
  }
195
195
  return { ...e, ...r };
196
196
  }
197
- function Gr(e) {
197
+ function Zr(e) {
198
198
  var o, a;
199
199
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning;
200
200
  return r ? e.ref : (t = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
201
201
  }
202
- var Kr = [
202
+ var Qr = [
203
203
  "a",
204
204
  "button",
205
205
  "div",
@@ -217,15 +217,15 @@ var Kr = [
217
217
  "span",
218
218
  "svg",
219
219
  "ul"
220
- ], T = Kr.reduce((e, t) => {
221
- const r = /* @__PURE__ */ Tt(`Primitive.${t}`), o = c.forwardRef((a, n) => {
220
+ ], T = Qr.reduce((e, t) => {
221
+ const r = /* @__PURE__ */ Ot(`Primitive.${t}`), o = c.forwardRef((a, n) => {
222
222
  const { asChild: s, ...i } = a, u = s ? r : t;
223
223
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(u, { ...i, ref: n });
224
224
  });
225
225
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
226
226
  }, {});
227
- function Zr(e, t) {
228
- e && Mr.flushSync(() => e.dispatchEvent(t));
227
+ function Jr(e, t) {
228
+ e && kr.flushSync(() => e.dispatchEvent(t));
229
229
  }
230
230
  function $(e) {
231
231
  const t = c.useRef(e);
@@ -236,7 +236,7 @@ function $(e) {
236
236
  return (o = t.current) == null ? void 0 : o.call(t, ...r);
237
237
  }, []);
238
238
  }
239
- function Qr(e, t = globalThis == null ? void 0 : globalThis.document) {
239
+ function en(e, t = globalThis == null ? void 0 : globalThis.document) {
240
240
  const r = $(e);
241
241
  c.useEffect(() => {
242
242
  const o = (a) => {
@@ -245,11 +245,11 @@ function Qr(e, t = globalThis == null ? void 0 : globalThis.document) {
245
245
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
246
246
  }, [r, t]);
247
247
  }
248
- var Jr = "DismissableLayer", We = "dismissableLayer.update", en = "dismissableLayer.pointerDownOutside", tn = "dismissableLayer.focusOutside", rt, Ot = c.createContext({
248
+ var tn = "DismissableLayer", We = "dismissableLayer.update", rn = "dismissableLayer.pointerDownOutside", nn = "dismissableLayer.focusOutside", rt, Lt = c.createContext({
249
249
  layers: /* @__PURE__ */ new Set(),
250
250
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
251
251
  branches: /* @__PURE__ */ new Set()
252
- }), Lt = c.forwardRef(
252
+ }), $t = c.forwardRef(
253
253
  (e, t) => {
254
254
  const {
255
255
  disableOutsidePointerEvents: r = !1,
@@ -259,21 +259,21 @@ var Jr = "DismissableLayer", We = "dismissableLayer.update", en = "dismissableLa
259
259
  onInteractOutside: s,
260
260
  onDismiss: i,
261
261
  ...u
262
- } = e, l = c.useContext(Ot), [d, p] = c.useState(null), v = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = c.useState({}), _ = L(t, (S) => p(S)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = h.indexOf(g), w = d ? h.indexOf(d) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, y = w >= b, C = on((S) => {
263
- const N = S.target, P = [...l.branches].some((R) => R.contains(N));
264
- !y || P || (a == null || a(S), s == null || s(S), S.defaultPrevented || i == null || i());
265
- }, v), x = an((S) => {
266
- const N = S.target;
267
- [...l.branches].some((R) => R.contains(N)) || (n == null || n(S), s == null || s(S), S.defaultPrevented || i == null || i());
268
- }, v);
269
- return Qr((S) => {
270
- w === l.layers.size - 1 && (o == null || o(S), !S.defaultPrevented && i && (S.preventDefault(), i()));
271
- }, v), c.useEffect(() => {
262
+ } = e, l = c.useContext(Lt), [d, p] = c.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = c.useState({}), _ = L(t, (S) => p(S)), v = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = v.indexOf(g), y = d ? v.indexOf(d) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, w = y >= b, C = sn((S) => {
263
+ const x = S.target, P = [...l.branches].some((N) => N.contains(x));
264
+ !w || P || (a == null || a(S), s == null || s(S), S.defaultPrevented || i == null || i());
265
+ }, h), R = cn((S) => {
266
+ const x = S.target;
267
+ [...l.branches].some((N) => N.contains(x)) || (n == null || n(S), s == null || s(S), S.defaultPrevented || i == null || i());
268
+ }, h);
269
+ return en((S) => {
270
+ y === l.layers.size - 1 && (o == null || o(S), !S.defaultPrevented && i && (S.preventDefault(), i()));
271
+ }, h), c.useEffect(() => {
272
272
  if (d)
273
- return r && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (rt = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), nt(), () => {
274
- r && l.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = rt);
273
+ return r && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (rt = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), nt(), () => {
274
+ r && l.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = rt);
275
275
  };
276
- }, [d, v, r, l]), c.useEffect(() => () => {
276
+ }, [d, h, r, l]), c.useEffect(() => () => {
277
277
  d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), nt());
278
278
  }, [d, l]), c.useEffect(() => {
279
279
  const S = () => m({});
@@ -284,11 +284,11 @@ var Jr = "DismissableLayer", We = "dismissableLayer.update", en = "dismissableLa
284
284
  ...u,
285
285
  ref: _,
286
286
  style: {
287
- pointerEvents: E ? y ? "auto" : "none" : void 0,
287
+ pointerEvents: E ? w ? "auto" : "none" : void 0,
288
288
  ...e.style
289
289
  },
290
- onFocusCapture: A(e.onFocusCapture, x.onFocusCapture),
291
- onBlurCapture: A(e.onBlurCapture, x.onBlurCapture),
290
+ onFocusCapture: A(e.onFocusCapture, R.onFocusCapture),
291
+ onBlurCapture: A(e.onBlurCapture, R.onBlurCapture),
292
292
  onPointerDownCapture: A(
293
293
  e.onPointerDownCapture,
294
294
  C.onPointerDownCapture
@@ -297,9 +297,9 @@ var Jr = "DismissableLayer", We = "dismissableLayer.update", en = "dismissableLa
297
297
  );
298
298
  }
299
299
  );
300
- Lt.displayName = Jr;
301
- var rn = "DismissableLayerBranch", nn = c.forwardRef((e, t) => {
302
- const r = c.useContext(Ot), o = c.useRef(null), a = L(t, o);
300
+ $t.displayName = tn;
301
+ var on = "DismissableLayerBranch", an = c.forwardRef((e, t) => {
302
+ const r = c.useContext(Lt), o = c.useRef(null), a = L(t, o);
303
303
  return c.useEffect(() => {
304
304
  const n = o.current;
305
305
  if (n)
@@ -308,16 +308,16 @@ var rn = "DismissableLayerBranch", nn = c.forwardRef((e, t) => {
308
308
  };
309
309
  }, [r.branches]), /* @__PURE__ */ f(T.div, { ...e, ref: a });
310
310
  });
311
- nn.displayName = rn;
312
- function on(e, t = globalThis == null ? void 0 : globalThis.document) {
311
+ an.displayName = on;
312
+ function sn(e, t = globalThis == null ? void 0 : globalThis.document) {
313
313
  const r = $(e), o = c.useRef(!1), a = c.useRef(() => {
314
314
  });
315
315
  return c.useEffect(() => {
316
316
  const n = (i) => {
317
317
  if (i.target && !o.current) {
318
318
  let u = function() {
319
- $t(
320
- en,
319
+ Mt(
320
+ rn,
321
321
  r,
322
322
  l,
323
323
  { discrete: !0 }
@@ -339,11 +339,11 @@ function on(e, t = globalThis == null ? void 0 : globalThis.document) {
339
339
  onPointerDownCapture: () => o.current = !0
340
340
  };
341
341
  }
342
- function an(e, t = globalThis == null ? void 0 : globalThis.document) {
342
+ function cn(e, t = globalThis == null ? void 0 : globalThis.document) {
343
343
  const r = $(e), o = c.useRef(!1);
344
344
  return c.useEffect(() => {
345
345
  const a = (n) => {
346
- n.target && !o.current && $t(tn, r, { originalEvent: n }, {
346
+ n.target && !o.current && Mt(nn, r, { originalEvent: n }, {
347
347
  discrete: !1
348
348
  });
349
349
  };
@@ -357,18 +357,18 @@ function nt() {
357
357
  const e = new CustomEvent(We);
358
358
  document.dispatchEvent(e);
359
359
  }
360
- function $t(e, t, r, { discrete: o }) {
360
+ function Mt(e, t, r, { discrete: o }) {
361
361
  const a = r.originalEvent.target, n = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
362
- t && a.addEventListener(e, t, { once: !0 }), o ? Zr(a, n) : a.dispatchEvent(n);
362
+ t && a.addEventListener(e, t, { once: !0 }), o ? Jr(a, n) : a.dispatchEvent(n);
363
363
  }
364
- var Re = "focusScope.autoFocusOnMount", Ne = "focusScope.autoFocusOnUnmount", ot = { bubbles: !1, cancelable: !0 }, sn = "FocusScope", Mt = c.forwardRef((e, t) => {
364
+ var Ne = "focusScope.autoFocusOnMount", xe = "focusScope.autoFocusOnUnmount", ot = { bubbles: !1, cancelable: !0 }, ln = "FocusScope", It = c.forwardRef((e, t) => {
365
365
  const {
366
366
  loop: r = !1,
367
367
  trapped: o = !1,
368
368
  onMountAutoFocus: a,
369
369
  onUnmountAutoFocus: n,
370
370
  ...s
371
- } = e, [i, u] = c.useState(null), l = $(a), d = $(n), p = c.useRef(null), v = L(t, (h) => u(h)), m = c.useRef({
371
+ } = e, [i, u] = c.useState(null), l = $(a), d = $(n), p = c.useRef(null), h = L(t, (v) => u(v)), m = c.useRef({
372
372
  paused: !1,
373
373
  pause() {
374
374
  this.paused = !0;
@@ -379,65 +379,65 @@ var Re = "focusScope.autoFocusOnMount", Ne = "focusScope.autoFocusOnUnmount", ot
379
379
  }).current;
380
380
  c.useEffect(() => {
381
381
  if (o) {
382
- let h = function(E) {
382
+ let v = function(E) {
383
383
  if (m.paused || !i) return;
384
- const y = E.target;
385
- i.contains(y) ? p.current = y : B(p.current, { select: !0 });
384
+ const w = E.target;
385
+ i.contains(w) ? p.current = w : H(p.current, { select: !0 });
386
386
  }, g = function(E) {
387
387
  if (m.paused || !i) return;
388
- const y = E.relatedTarget;
389
- y !== null && (i.contains(y) || B(p.current, { select: !0 }));
388
+ const w = E.relatedTarget;
389
+ w !== null && (i.contains(w) || H(p.current, { select: !0 }));
390
390
  }, b = function(E) {
391
391
  if (document.activeElement === document.body)
392
392
  for (const C of E)
393
- C.removedNodes.length > 0 && B(i);
393
+ C.removedNodes.length > 0 && H(i);
394
394
  };
395
- document.addEventListener("focusin", h), document.addEventListener("focusout", g);
396
- const w = new MutationObserver(b);
397
- return i && w.observe(i, { childList: !0, subtree: !0 }), () => {
398
- document.removeEventListener("focusin", h), document.removeEventListener("focusout", g), w.disconnect();
395
+ document.addEventListener("focusin", v), document.addEventListener("focusout", g);
396
+ const y = new MutationObserver(b);
397
+ return i && y.observe(i, { childList: !0, subtree: !0 }), () => {
398
+ document.removeEventListener("focusin", v), document.removeEventListener("focusout", g), y.disconnect();
399
399
  };
400
400
  }
401
401
  }, [o, i, m.paused]), c.useEffect(() => {
402
402
  if (i) {
403
403
  it.add(m);
404
- const h = document.activeElement;
405
- if (!i.contains(h)) {
406
- const b = new CustomEvent(Re, ot);
407
- i.addEventListener(Re, l), i.dispatchEvent(b), b.defaultPrevented || (cn(pn(It(i)), { select: !0 }), document.activeElement === h && B(i));
404
+ const v = document.activeElement;
405
+ if (!i.contains(v)) {
406
+ const b = new CustomEvent(Ne, ot);
407
+ i.addEventListener(Ne, l), i.dispatchEvent(b), b.defaultPrevented || (un(vn(kt(i)), { select: !0 }), document.activeElement === v && H(i));
408
408
  }
409
409
  return () => {
410
- i.removeEventListener(Re, l), setTimeout(() => {
411
- const b = new CustomEvent(Ne, ot);
412
- i.addEventListener(Ne, d), i.dispatchEvent(b), b.defaultPrevented || B(h ?? document.body, { select: !0 }), i.removeEventListener(Ne, d), it.remove(m);
410
+ i.removeEventListener(Ne, l), setTimeout(() => {
411
+ const b = new CustomEvent(xe, ot);
412
+ i.addEventListener(xe, d), i.dispatchEvent(b), b.defaultPrevented || H(v ?? document.body, { select: !0 }), i.removeEventListener(xe, d), it.remove(m);
413
413
  }, 0);
414
414
  };
415
415
  }
416
416
  }, [i, l, d, m]);
417
417
  const _ = c.useCallback(
418
- (h) => {
418
+ (v) => {
419
419
  if (!r && !o || m.paused) return;
420
- const g = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, b = document.activeElement;
420
+ const g = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, b = document.activeElement;
421
421
  if (g && b) {
422
- const w = h.currentTarget, [E, y] = ln(w);
423
- E && y ? !h.shiftKey && b === y ? (h.preventDefault(), r && B(E, { select: !0 })) : h.shiftKey && b === E && (h.preventDefault(), r && B(y, { select: !0 })) : b === w && h.preventDefault();
422
+ const y = v.currentTarget, [E, w] = dn(y);
423
+ E && w ? !v.shiftKey && b === w ? (v.preventDefault(), r && H(E, { select: !0 })) : v.shiftKey && b === E && (v.preventDefault(), r && H(w, { select: !0 })) : b === y && v.preventDefault();
424
424
  }
425
425
  },
426
426
  [r, o, m.paused]
427
427
  );
428
- return /* @__PURE__ */ f(T.div, { tabIndex: -1, ...s, ref: v, onKeyDown: _ });
428
+ return /* @__PURE__ */ f(T.div, { tabIndex: -1, ...s, ref: h, onKeyDown: _ });
429
429
  });
430
- Mt.displayName = sn;
431
- function cn(e, { select: t = !1 } = {}) {
430
+ It.displayName = ln;
431
+ function un(e, { select: t = !1 } = {}) {
432
432
  const r = document.activeElement;
433
433
  for (const o of e)
434
- if (B(o, { select: t }), document.activeElement !== r) return;
434
+ if (H(o, { select: t }), document.activeElement !== r) return;
435
435
  }
436
- function ln(e) {
437
- const t = It(e), r = at(t, e), o = at(t.reverse(), e);
436
+ function dn(e) {
437
+ const t = kt(e), r = at(t, e), o = at(t.reverse(), e);
438
438
  return [r, o];
439
439
  }
440
- function It(e) {
440
+ function kt(e) {
441
441
  const t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
442
442
  acceptNode: (o) => {
443
443
  const a = o.tagName === "INPUT" && o.type === "hidden";
@@ -449,9 +449,9 @@ function It(e) {
449
449
  }
450
450
  function at(e, t) {
451
451
  for (const r of e)
452
- if (!un(r, { upTo: t })) return r;
452
+ if (!fn(r, { upTo: t })) return r;
453
453
  }
454
- function un(e, { upTo: t }) {
454
+ function fn(e, { upTo: t }) {
455
455
  if (getComputedStyle(e).visibility === "hidden") return !0;
456
456
  for (; e; ) {
457
457
  if (t !== void 0 && e === t) return !1;
@@ -460,17 +460,17 @@ function un(e, { upTo: t }) {
460
460
  }
461
461
  return !1;
462
462
  }
463
- function dn(e) {
463
+ function pn(e) {
464
464
  return e instanceof HTMLInputElement && "select" in e;
465
465
  }
466
- function B(e, { select: t = !1 } = {}) {
466
+ function H(e, { select: t = !1 } = {}) {
467
467
  if (e && e.focus) {
468
468
  const r = document.activeElement;
469
- e.focus({ preventScroll: !0 }), e !== r && dn(e) && t && e.select();
469
+ e.focus({ preventScroll: !0 }), e !== r && pn(e) && t && e.select();
470
470
  }
471
471
  }
472
- var it = fn();
473
- function fn() {
472
+ var it = hn();
473
+ function hn() {
474
474
  let e = [];
475
475
  return {
476
476
  add(t) {
@@ -487,27 +487,27 @@ function st(e, t) {
487
487
  const r = [...e], o = r.indexOf(t);
488
488
  return o !== -1 && r.splice(o, 1), r;
489
489
  }
490
- function pn(e) {
490
+ function vn(e) {
491
491
  return e.filter((t) => t.tagName !== "A");
492
492
  }
493
- var vn = "Portal", kt = c.forwardRef((e, t) => {
493
+ var mn = "Portal", Wt = c.forwardRef((e, t) => {
494
494
  var i;
495
495
  const { container: r, ...o } = e, [a, n] = c.useState(!1);
496
496
  ne(() => n(!0), []);
497
497
  const s = r || a && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
498
- return s ? Ir.createPortal(/* @__PURE__ */ f(T.div, { ...o, ref: t }), s) : null;
498
+ return s ? Wr.createPortal(/* @__PURE__ */ f(T.div, { ...o, ref: t }), s) : null;
499
499
  });
500
- kt.displayName = vn;
501
- function hn(e, t) {
500
+ Wt.displayName = mn;
501
+ function gn(e, t) {
502
502
  return c.useReducer((r, o) => t[r][o] ?? r, e);
503
503
  }
504
- var V = (e) => {
505
- const { present: t, children: r } = e, o = mn(t), a = typeof r == "function" ? r({ present: o.isPresent }) : c.Children.only(r), n = L(o.ref, gn(a));
504
+ var z = (e) => {
505
+ const { present: t, children: r } = e, o = _n(t), a = typeof r == "function" ? r({ present: o.isPresent }) : c.Children.only(r), n = L(o.ref, bn(a));
506
506
  return typeof r == "function" || o.isPresent ? c.cloneElement(a, { ref: n }) : null;
507
507
  };
508
- V.displayName = "Presence";
509
- function mn(e) {
510
- const [t, r] = c.useState(), o = c.useRef(null), a = c.useRef(e), n = c.useRef("none"), s = e ? "mounted" : "unmounted", [i, u] = hn(s, {
508
+ z.displayName = "Presence";
509
+ function _n(e) {
510
+ const [t, r] = c.useState(), o = c.useRef(null), a = c.useRef(e), n = c.useRef("none"), s = e ? "mounted" : "unmounted", [i, u] = gn(s, {
511
511
  mounted: {
512
512
  UNMOUNT: "unmounted",
513
513
  ANIMATION_OUT: "unmountSuspended"
@@ -526,25 +526,25 @@ function mn(e) {
526
526
  }, [i]), ne(() => {
527
527
  const l = o.current, d = a.current;
528
528
  if (d !== e) {
529
- const v = n.current, m = le(l);
530
- e ? u("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? u("UNMOUNT") : u(d && v !== m ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
529
+ const h = n.current, m = le(l);
530
+ e ? u("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? u("UNMOUNT") : u(d && h !== m ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
531
531
  }
532
532
  }, [e, u]), ne(() => {
533
533
  if (t) {
534
534
  let l;
535
535
  const d = t.ownerDocument.defaultView ?? window, p = (m) => {
536
- const h = le(o.current).includes(CSS.escape(m.animationName));
537
- if (m.target === t && h && (u("ANIMATION_END"), !a.current)) {
536
+ const v = le(o.current).includes(CSS.escape(m.animationName));
537
+ if (m.target === t && v && (u("ANIMATION_END"), !a.current)) {
538
538
  const g = t.style.animationFillMode;
539
539
  t.style.animationFillMode = "forwards", l = d.setTimeout(() => {
540
540
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
541
541
  });
542
542
  }
543
- }, v = (m) => {
543
+ }, h = (m) => {
544
544
  m.target === t && (n.current = le(o.current));
545
545
  };
546
- return t.addEventListener("animationstart", v), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
547
- d.clearTimeout(l), t.removeEventListener("animationstart", v), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
546
+ return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
547
+ d.clearTimeout(l), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
548
548
  };
549
549
  } else
550
550
  u("ANIMATION_END");
@@ -558,13 +558,13 @@ function mn(e) {
558
558
  function le(e) {
559
559
  return (e == null ? void 0 : e.animationName) || "none";
560
560
  }
561
- function gn(e) {
561
+ function bn(e) {
562
562
  var o, a;
563
563
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning;
564
564
  return r ? e.ref : (t = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
565
565
  }
566
566
  var Ae = 0;
567
- function _n() {
567
+ function yn() {
568
568
  c.useEffect(() => {
569
569
  const e = document.querySelectorAll("[data-radix-focus-guard]");
570
570
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? ct()), document.body.insertAdjacentElement("beforeend", e[1] ?? ct()), Ae++, () => {
@@ -585,7 +585,7 @@ var k = function() {
585
585
  return t;
586
586
  }, k.apply(this, arguments);
587
587
  };
588
- function Wt(e, t) {
588
+ function Ft(e, t) {
589
589
  var r = {};
590
590
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
591
591
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -593,17 +593,17 @@ function Wt(e, t) {
593
593
  t.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (r[o[a]] = e[o[a]]);
594
594
  return r;
595
595
  }
596
- function bn(e, t, r) {
596
+ function wn(e, t, r) {
597
597
  if (r || arguments.length === 2) for (var o = 0, a = t.length, n; o < a; o++)
598
598
  (n || !(o in t)) && (n || (n = Array.prototype.slice.call(t, 0, o)), n[o] = t[o]);
599
599
  return e.concat(n || Array.prototype.slice.call(t));
600
600
  }
601
- var ge = "right-scroll-bar-position", _e = "width-before-scroll-bar", wn = "with-scroll-bars-hidden", yn = "--removed-body-scroll-bar-size";
601
+ var ge = "right-scroll-bar-position", _e = "width-before-scroll-bar", Sn = "with-scroll-bars-hidden", En = "--removed-body-scroll-bar-size";
602
602
  function De(e, t) {
603
603
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
604
604
  }
605
- function Sn(e, t) {
606
- var r = Tr(function() {
605
+ function Cn(e, t) {
606
+ var r = Lr(function() {
607
607
  return {
608
608
  // value
609
609
  value: e,
@@ -623,14 +623,14 @@ function Sn(e, t) {
623
623
  })[0];
624
624
  return r.callback = t, r.facade;
625
625
  }
626
- var En = typeof window < "u" ? c.useLayoutEffect : c.useEffect, lt = /* @__PURE__ */ new WeakMap();
627
- function Cn(e, t) {
628
- var r = Sn(null, function(o) {
626
+ var Pn = typeof window < "u" ? c.useLayoutEffect : c.useEffect, lt = /* @__PURE__ */ new WeakMap();
627
+ function Rn(e, t) {
628
+ var r = Cn(null, function(o) {
629
629
  return e.forEach(function(a) {
630
630
  return De(a, o);
631
631
  });
632
632
  });
633
- return En(function() {
633
+ return Pn(function() {
634
634
  var o = lt.get(r);
635
635
  if (o) {
636
636
  var a = new Set(o), n = new Set(e), s = r.current;
@@ -643,11 +643,11 @@ function Cn(e, t) {
643
643
  lt.set(r, e);
644
644
  }, [e]), r;
645
645
  }
646
- function Pn(e) {
646
+ function Nn(e) {
647
647
  return e;
648
648
  }
649
649
  function xn(e, t) {
650
- t === void 0 && (t = Pn);
650
+ t === void 0 && (t = Nn);
651
651
  var r = [], o = !1, a = {
652
652
  read: function() {
653
653
  if (o)
@@ -701,13 +701,13 @@ function xn(e, t) {
701
701
  };
702
702
  return a;
703
703
  }
704
- function Rn(e) {
704
+ function An(e) {
705
705
  e === void 0 && (e = {});
706
706
  var t = xn(null);
707
707
  return t.options = k({ async: !0, ssr: !1 }, e), t;
708
708
  }
709
709
  var jt = function(e) {
710
- var t = e.sideCar, r = Wt(e, ["sideCar"]);
710
+ var t = e.sideCar, r = Ft(e, ["sideCar"]);
711
711
  if (!t)
712
712
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
713
713
  var o = t.read();
@@ -716,21 +716,21 @@ var jt = function(e) {
716
716
  return c.createElement(o, k({}, r));
717
717
  };
718
718
  jt.isSideCarExport = !0;
719
- function Nn(e, t) {
719
+ function Dn(e, t) {
720
720
  return e.useMedium(t), jt;
721
721
  }
722
- var Ft = Rn(), Te = function() {
722
+ var Ut = An(), Te = function() {
723
723
  }, Se = c.forwardRef(function(e, t) {
724
724
  var r = c.useRef(null), o = c.useState({
725
725
  onScrollCapture: Te,
726
726
  onWheelCapture: Te,
727
727
  onTouchMoveCapture: Te
728
- }), a = o[0], n = o[1], s = e.forwardProps, i = e.children, u = e.className, l = e.removeScrollBar, d = e.enabled, p = e.shards, v = e.sideCar, m = e.noRelative, _ = e.noIsolation, h = e.inert, g = e.allowPinchZoom, b = e.as, w = b === void 0 ? "div" : b, E = e.gapMode, y = Wt(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = v, x = Cn([r, t]), S = k(k({}, y), a);
728
+ }), a = o[0], n = o[1], s = e.forwardProps, i = e.children, u = e.className, l = e.removeScrollBar, d = e.enabled, p = e.shards, h = e.sideCar, m = e.noRelative, _ = e.noIsolation, v = e.inert, g = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, E = e.gapMode, w = Ft(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = h, R = Rn([r, t]), S = k(k({}, w), a);
729
729
  return c.createElement(
730
730
  c.Fragment,
731
731
  null,
732
- d && c.createElement(C, { sideCar: Ft, removeScrollBar: l, shards: p, noRelative: m, noIsolation: _, inert: h, setCallbacks: n, allowPinchZoom: !!g, lockRef: r, gapMode: E }),
733
- s ? c.cloneElement(c.Children.only(i), k(k({}, S), { ref: x })) : c.createElement(w, k({}, S, { className: u, ref: x }), i)
732
+ d && c.createElement(C, { sideCar: Ut, removeScrollBar: l, shards: p, noRelative: m, noIsolation: _, inert: v, setCallbacks: n, allowPinchZoom: !!g, lockRef: r, gapMode: E }),
733
+ s ? c.cloneElement(c.Children.only(i), k(k({}, S), { ref: R })) : c.createElement(y, k({}, S, { className: u, ref: R }), i)
734
734
  );
735
735
  });
736
736
  Se.defaultProps = {
@@ -742,37 +742,37 @@ Se.classNames = {
742
742
  fullWidth: _e,
743
743
  zeroRight: ge
744
744
  };
745
- var An = function() {
745
+ var Tn = function() {
746
746
  if (typeof __webpack_nonce__ < "u")
747
747
  return __webpack_nonce__;
748
748
  };
749
- function Dn() {
749
+ function On() {
750
750
  if (!document)
751
751
  return null;
752
752
  var e = document.createElement("style");
753
753
  e.type = "text/css";
754
- var t = An();
754
+ var t = Tn();
755
755
  return t && e.setAttribute("nonce", t), e;
756
756
  }
757
- function Tn(e, t) {
757
+ function Ln(e, t) {
758
758
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
759
759
  }
760
- function On(e) {
760
+ function $n(e) {
761
761
  var t = document.head || document.getElementsByTagName("head")[0];
762
762
  t.appendChild(e);
763
763
  }
764
- var Ln = function() {
764
+ var Mn = function() {
765
765
  var e = 0, t = null;
766
766
  return {
767
767
  add: function(r) {
768
- e == 0 && (t = Dn()) && (Tn(t, r), On(t)), e++;
768
+ e == 0 && (t = On()) && (Ln(t, r), $n(t)), e++;
769
769
  },
770
770
  remove: function() {
771
771
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
772
772
  }
773
773
  };
774
- }, $n = function() {
775
- var e = Ln();
774
+ }, In = function() {
775
+ var e = Mn();
776
776
  return function(t, r) {
777
777
  c.useEffect(function() {
778
778
  return e.add(t), function() {
@@ -780,36 +780,36 @@ var Ln = function() {
780
780
  };
781
781
  }, [t && r]);
782
782
  };
783
- }, Ut = function() {
784
- var e = $n(), t = function(r) {
783
+ }, Bt = function() {
784
+ var e = In(), t = function(r) {
785
785
  var o = r.styles, a = r.dynamic;
786
786
  return e(o, a), null;
787
787
  };
788
788
  return t;
789
- }, Mn = {
789
+ }, kn = {
790
790
  left: 0,
791
791
  top: 0,
792
792
  right: 0,
793
793
  gap: 0
794
794
  }, Oe = function(e) {
795
795
  return parseInt(e || "", 10) || 0;
796
- }, In = function(e) {
796
+ }, Wn = function(e) {
797
797
  var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], a = t[e === "padding" ? "paddingRight" : "marginRight"];
798
798
  return [Oe(r), Oe(o), Oe(a)];
799
- }, kn = function(e) {
799
+ }, Fn = function(e) {
800
800
  if (e === void 0 && (e = "margin"), typeof window > "u")
801
- return Mn;
802
- var t = In(e), r = document.documentElement.clientWidth, o = window.innerWidth;
801
+ return kn;
802
+ var t = Wn(e), r = document.documentElement.clientWidth, o = window.innerWidth;
803
803
  return {
804
804
  left: t[0],
805
805
  top: t[1],
806
806
  right: t[2],
807
807
  gap: Math.max(0, o - r + t[2] - t[0])
808
808
  };
809
- }, Wn = Ut(), te = "data-scroll-locked", jn = function(e, t, r, o) {
809
+ }, jn = Bt(), te = "data-scroll-locked", Un = function(e, t, r, o) {
810
810
  var a = e.left, n = e.top, s = e.right, i = e.gap;
811
811
  return r === void 0 && (r = "margin"), `
812
- .`.concat(wn, ` {
812
+ .`.concat(Sn, ` {
813
813
  overflow: hidden `).concat(o, `;
814
814
  padding-right: `).concat(i, "px ").concat(o, `;
815
815
  }
@@ -847,186 +847,186 @@ var Ln = function() {
847
847
  }
848
848
 
849
849
  body[`).concat(te, `] {
850
- `).concat(yn, ": ").concat(i, `px;
850
+ `).concat(En, ": ").concat(i, `px;
851
851
  }
852
852
  `);
853
853
  }, ut = function() {
854
854
  var e = parseInt(document.body.getAttribute(te) || "0", 10);
855
855
  return isFinite(e) ? e : 0;
856
- }, Fn = function() {
856
+ }, Bn = function() {
857
857
  c.useEffect(function() {
858
858
  return document.body.setAttribute(te, (ut() + 1).toString()), function() {
859
859
  var e = ut() - 1;
860
860
  e <= 0 ? document.body.removeAttribute(te) : document.body.setAttribute(te, e.toString());
861
861
  };
862
862
  }, []);
863
- }, Un = function(e) {
863
+ }, Hn = function(e) {
864
864
  var t = e.noRelative, r = e.noImportant, o = e.gapMode, a = o === void 0 ? "margin" : o;
865
- Fn();
865
+ Bn();
866
866
  var n = c.useMemo(function() {
867
- return kn(a);
867
+ return Fn(a);
868
868
  }, [a]);
869
- return c.createElement(Wn, { styles: jn(n, !t, a, r ? "" : "!important") });
870
- }, je = !1;
869
+ return c.createElement(jn, { styles: Un(n, !t, a, r ? "" : "!important") });
870
+ }, Fe = !1;
871
871
  if (typeof window < "u")
872
872
  try {
873
873
  var ue = Object.defineProperty({}, "passive", {
874
874
  get: function() {
875
- return je = !0, !0;
875
+ return Fe = !0, !0;
876
876
  }
877
877
  });
878
878
  window.addEventListener("test", ue, ue), window.removeEventListener("test", ue, ue);
879
879
  } catch {
880
- je = !1;
880
+ Fe = !1;
881
881
  }
882
- var q = je ? { passive: !1 } : !1, Bn = function(e) {
882
+ var q = Fe ? { passive: !1 } : !1, Vn = function(e) {
883
883
  return e.tagName === "TEXTAREA";
884
- }, Bt = function(e, t) {
884
+ }, Ht = function(e, t) {
885
885
  if (!(e instanceof Element))
886
886
  return !1;
887
887
  var r = window.getComputedStyle(e);
888
888
  return (
889
889
  // not-not-scrollable
890
890
  r[t] !== "hidden" && // contains scroll inside self
891
- !(r.overflowY === r.overflowX && !Bn(e) && r[t] === "visible")
891
+ !(r.overflowY === r.overflowX && !Vn(e) && r[t] === "visible")
892
892
  );
893
- }, Hn = function(e) {
894
- return Bt(e, "overflowY");
895
- }, Vn = function(e) {
896
- return Bt(e, "overflowX");
893
+ }, zn = function(e) {
894
+ return Ht(e, "overflowY");
895
+ }, Yn = function(e) {
896
+ return Ht(e, "overflowX");
897
897
  }, dt = function(e, t) {
898
898
  var r = t.ownerDocument, o = t;
899
899
  do {
900
900
  typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
901
- var a = Ht(e, o);
901
+ var a = Vt(e, o);
902
902
  if (a) {
903
- var n = Vt(e, o), s = n[1], i = n[2];
903
+ var n = zt(e, o), s = n[1], i = n[2];
904
904
  if (s > i)
905
905
  return !0;
906
906
  }
907
907
  o = o.parentNode;
908
908
  } while (o && o !== r.body);
909
909
  return !1;
910
- }, zn = function(e) {
910
+ }, Xn = function(e) {
911
911
  var t = e.scrollTop, r = e.scrollHeight, o = e.clientHeight;
912
912
  return [
913
913
  t,
914
914
  r,
915
915
  o
916
916
  ];
917
- }, Yn = function(e) {
917
+ }, qn = function(e) {
918
918
  var t = e.scrollLeft, r = e.scrollWidth, o = e.clientWidth;
919
919
  return [
920
920
  t,
921
921
  r,
922
922
  o
923
923
  ];
924
- }, Ht = function(e, t) {
925
- return e === "v" ? Hn(t) : Vn(t);
926
924
  }, Vt = function(e, t) {
927
925
  return e === "v" ? zn(t) : Yn(t);
928
- }, Xn = function(e, t) {
926
+ }, zt = function(e, t) {
927
+ return e === "v" ? Xn(t) : qn(t);
928
+ }, Gn = function(e, t) {
929
929
  return e === "h" && t === "rtl" ? -1 : 1;
930
- }, qn = function(e, t, r, o, a) {
931
- var n = Xn(e, window.getComputedStyle(t).direction), s = n * o, i = r.target, u = t.contains(i), l = !1, d = s > 0, p = 0, v = 0;
930
+ }, Kn = function(e, t, r, o, a) {
931
+ var n = Gn(e, window.getComputedStyle(t).direction), s = n * o, i = r.target, u = t.contains(i), l = !1, d = s > 0, p = 0, h = 0;
932
932
  do {
933
933
  if (!i)
934
934
  break;
935
- var m = Vt(e, i), _ = m[0], h = m[1], g = m[2], b = h - g - n * _;
936
- (_ || b) && Ht(e, i) && (p += b, v += _);
937
- var w = i.parentNode;
938
- i = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
935
+ var m = zt(e, i), _ = m[0], v = m[1], g = m[2], b = v - g - n * _;
936
+ (_ || b) && Vt(e, i) && (p += b, h += _);
937
+ var y = i.parentNode;
938
+ i = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
939
939
  } while (
940
940
  // portaled content
941
941
  !u && i !== document.body || // self content
942
942
  u && (t.contains(i) || t === i)
943
943
  );
944
- return (d && Math.abs(p) < 1 || !d && Math.abs(v) < 1) && (l = !0), l;
944
+ return (d && Math.abs(p) < 1 || !d && Math.abs(h) < 1) && (l = !0), l;
945
945
  }, de = function(e) {
946
946
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
947
947
  }, ft = function(e) {
948
948
  return [e.deltaX, e.deltaY];
949
949
  }, pt = function(e) {
950
950
  return e && "current" in e ? e.current : e;
951
- }, Gn = function(e, t) {
951
+ }, Zn = function(e, t) {
952
952
  return e[0] === t[0] && e[1] === t[1];
953
- }, Kn = function(e) {
953
+ }, Qn = function(e) {
954
954
  return `
955
955
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
956
956
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
957
957
  `);
958
- }, Zn = 0, G = [];
959
- function Qn(e) {
960
- var t = c.useRef([]), r = c.useRef([0, 0]), o = c.useRef(), a = c.useState(Zn++)[0], n = c.useState(Ut)[0], s = c.useRef(e);
958
+ }, Jn = 0, G = [];
959
+ function eo(e) {
960
+ var t = c.useRef([]), r = c.useRef([0, 0]), o = c.useRef(), a = c.useState(Jn++)[0], n = c.useState(Bt)[0], s = c.useRef(e);
961
961
  c.useEffect(function() {
962
962
  s.current = e;
963
963
  }, [e]), c.useEffect(function() {
964
964
  if (e.inert) {
965
965
  document.body.classList.add("block-interactivity-".concat(a));
966
- var h = bn([e.lockRef.current], (e.shards || []).map(pt), !0).filter(Boolean);
967
- return h.forEach(function(g) {
966
+ var v = wn([e.lockRef.current], (e.shards || []).map(pt), !0).filter(Boolean);
967
+ return v.forEach(function(g) {
968
968
  return g.classList.add("allow-interactivity-".concat(a));
969
969
  }), function() {
970
- document.body.classList.remove("block-interactivity-".concat(a)), h.forEach(function(g) {
970
+ document.body.classList.remove("block-interactivity-".concat(a)), v.forEach(function(g) {
971
971
  return g.classList.remove("allow-interactivity-".concat(a));
972
972
  });
973
973
  };
974
974
  }
975
975
  }, [e.inert, e.lockRef.current, e.shards]);
976
- var i = c.useCallback(function(h, g) {
977
- if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
976
+ var i = c.useCallback(function(v, g) {
977
+ if ("touches" in v && v.touches.length === 2 || v.type === "wheel" && v.ctrlKey)
978
978
  return !s.current.allowPinchZoom;
979
- var b = de(h), w = r.current, E = "deltaX" in h ? h.deltaX : w[0] - b[0], y = "deltaY" in h ? h.deltaY : w[1] - b[1], C, x = h.target, S = Math.abs(E) > Math.abs(y) ? "h" : "v";
980
- if ("touches" in h && S === "h" && x.type === "range")
979
+ var b = de(v), y = r.current, E = "deltaX" in v ? v.deltaX : y[0] - b[0], w = "deltaY" in v ? v.deltaY : y[1] - b[1], C, R = v.target, S = Math.abs(E) > Math.abs(w) ? "h" : "v";
980
+ if ("touches" in v && S === "h" && R.type === "range")
981
981
  return !1;
982
- var N = dt(S, x);
983
- if (!N)
982
+ var x = dt(S, R);
983
+ if (!x)
984
984
  return !0;
985
- if (N ? C = S : (C = S === "v" ? "h" : "v", N = dt(S, x)), !N)
985
+ if (x ? C = S : (C = S === "v" ? "h" : "v", x = dt(S, R)), !x)
986
986
  return !1;
987
- if (!o.current && "changedTouches" in h && (E || y) && (o.current = C), !C)
987
+ if (!o.current && "changedTouches" in v && (E || w) && (o.current = C), !C)
988
988
  return !0;
989
989
  var P = o.current || C;
990
- return qn(P, g, h, P === "h" ? E : y);
991
- }, []), u = c.useCallback(function(h) {
992
- var g = h;
990
+ return Kn(P, g, v, P === "h" ? E : w);
991
+ }, []), u = c.useCallback(function(v) {
992
+ var g = v;
993
993
  if (!(!G.length || G[G.length - 1] !== n)) {
994
- var b = "deltaY" in g ? ft(g) : de(g), w = t.current.filter(function(C) {
995
- return C.name === g.type && (C.target === g.target || g.target === C.shadowParent) && Gn(C.delta, b);
994
+ var b = "deltaY" in g ? ft(g) : de(g), y = t.current.filter(function(C) {
995
+ return C.name === g.type && (C.target === g.target || g.target === C.shadowParent) && Zn(C.delta, b);
996
996
  })[0];
997
- if (w && w.should) {
997
+ if (y && y.should) {
998
998
  g.cancelable && g.preventDefault();
999
999
  return;
1000
1000
  }
1001
- if (!w) {
1001
+ if (!y) {
1002
1002
  var E = (s.current.shards || []).map(pt).filter(Boolean).filter(function(C) {
1003
1003
  return C.contains(g.target);
1004
- }), y = E.length > 0 ? i(g, E[0]) : !s.current.noIsolation;
1005
- y && g.cancelable && g.preventDefault();
1004
+ }), w = E.length > 0 ? i(g, E[0]) : !s.current.noIsolation;
1005
+ w && g.cancelable && g.preventDefault();
1006
1006
  }
1007
1007
  }
1008
- }, []), l = c.useCallback(function(h, g, b, w) {
1009
- var E = { name: h, delta: g, target: b, should: w, shadowParent: Jn(b) };
1008
+ }, []), l = c.useCallback(function(v, g, b, y) {
1009
+ var E = { name: v, delta: g, target: b, should: y, shadowParent: to(b) };
1010
1010
  t.current.push(E), setTimeout(function() {
1011
- t.current = t.current.filter(function(y) {
1012
- return y !== E;
1011
+ t.current = t.current.filter(function(w) {
1012
+ return w !== E;
1013
1013
  });
1014
1014
  }, 1);
1015
- }, []), d = c.useCallback(function(h) {
1016
- r.current = de(h), o.current = void 0;
1017
- }, []), p = c.useCallback(function(h) {
1018
- l(h.type, ft(h), h.target, i(h, e.lockRef.current));
1019
- }, []), v = c.useCallback(function(h) {
1020
- l(h.type, de(h), h.target, i(h, e.lockRef.current));
1015
+ }, []), d = c.useCallback(function(v) {
1016
+ r.current = de(v), o.current = void 0;
1017
+ }, []), p = c.useCallback(function(v) {
1018
+ l(v.type, ft(v), v.target, i(v, e.lockRef.current));
1019
+ }, []), h = c.useCallback(function(v) {
1020
+ l(v.type, de(v), v.target, i(v, e.lockRef.current));
1021
1021
  }, []);
1022
1022
  c.useEffect(function() {
1023
1023
  return G.push(n), e.setCallbacks({
1024
1024
  onScrollCapture: p,
1025
1025
  onWheelCapture: p,
1026
- onTouchMoveCapture: v
1026
+ onTouchMoveCapture: h
1027
1027
  }), document.addEventListener("wheel", u, q), document.addEventListener("touchmove", u, q), document.addEventListener("touchstart", d, q), function() {
1028
- G = G.filter(function(h) {
1029
- return h !== n;
1028
+ G = G.filter(function(v) {
1029
+ return v !== n;
1030
1030
  }), document.removeEventListener("wheel", u, q), document.removeEventListener("touchmove", u, q), document.removeEventListener("touchstart", d, q);
1031
1031
  };
1032
1032
  }, []);
@@ -1034,69 +1034,69 @@ function Qn(e) {
1034
1034
  return c.createElement(
1035
1035
  c.Fragment,
1036
1036
  null,
1037
- _ ? c.createElement(n, { styles: Kn(a) }) : null,
1038
- m ? c.createElement(Un, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
1037
+ _ ? c.createElement(n, { styles: Qn(a) }) : null,
1038
+ m ? c.createElement(Hn, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
1039
1039
  );
1040
1040
  }
1041
- function Jn(e) {
1041
+ function to(e) {
1042
1042
  for (var t = null; e !== null; )
1043
1043
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1044
1044
  return t;
1045
1045
  }
1046
- const eo = Nn(Ft, Qn);
1047
- var zt = c.forwardRef(function(e, t) {
1048
- return c.createElement(Se, k({}, e, { ref: t, sideCar: eo }));
1046
+ const ro = Dn(Ut, eo);
1047
+ var Yt = c.forwardRef(function(e, t) {
1048
+ return c.createElement(Se, k({}, e, { ref: t, sideCar: ro }));
1049
1049
  });
1050
- zt.classNames = Se.classNames;
1051
- var to = function(e) {
1050
+ Yt.classNames = Se.classNames;
1051
+ var no = function(e) {
1052
1052
  if (typeof document > "u")
1053
1053
  return null;
1054
1054
  var t = Array.isArray(e) ? e[0] : e;
1055
1055
  return t.ownerDocument.body;
1056
- }, K = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), pe = {}, Le = 0, Yt = function(e) {
1057
- return e && (e.host || Yt(e.parentNode));
1058
- }, ro = function(e, t) {
1056
+ }, K = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), pe = {}, Le = 0, Xt = function(e) {
1057
+ return e && (e.host || Xt(e.parentNode));
1058
+ }, oo = function(e, t) {
1059
1059
  return t.map(function(r) {
1060
1060
  if (e.contains(r))
1061
1061
  return r;
1062
- var o = Yt(r);
1062
+ var o = Xt(r);
1063
1063
  return o && e.contains(o) ? o : (console.error("aria-hidden", r, "in not contained inside", e, ". Doing nothing"), null);
1064
1064
  }).filter(function(r) {
1065
1065
  return !!r;
1066
1066
  });
1067
- }, no = function(e, t, r, o) {
1068
- var a = ro(t, Array.isArray(e) ? e : [e]);
1067
+ }, ao = function(e, t, r, o) {
1068
+ var a = oo(t, Array.isArray(e) ? e : [e]);
1069
1069
  pe[r] || (pe[r] = /* @__PURE__ */ new WeakMap());
1070
1070
  var n = pe[r], s = [], i = /* @__PURE__ */ new Set(), u = new Set(a), l = function(p) {
1071
1071
  !p || i.has(p) || (i.add(p), l(p.parentNode));
1072
1072
  };
1073
1073
  a.forEach(l);
1074
1074
  var d = function(p) {
1075
- !p || u.has(p) || Array.prototype.forEach.call(p.children, function(v) {
1076
- if (i.has(v))
1077
- d(v);
1075
+ !p || u.has(p) || Array.prototype.forEach.call(p.children, function(h) {
1076
+ if (i.has(h))
1077
+ d(h);
1078
1078
  else
1079
1079
  try {
1080
- var m = v.getAttribute(o), _ = m !== null && m !== "false", h = (K.get(v) || 0) + 1, g = (n.get(v) || 0) + 1;
1081
- K.set(v, h), n.set(v, g), s.push(v), h === 1 && _ && fe.set(v, !0), g === 1 && v.setAttribute(r, "true"), _ || v.setAttribute(o, "true");
1080
+ var m = h.getAttribute(o), _ = m !== null && m !== "false", v = (K.get(h) || 0) + 1, g = (n.get(h) || 0) + 1;
1081
+ K.set(h, v), n.set(h, g), s.push(h), v === 1 && _ && fe.set(h, !0), g === 1 && h.setAttribute(r, "true"), _ || h.setAttribute(o, "true");
1082
1082
  } catch (b) {
1083
- console.error("aria-hidden: cannot operate on ", v, b);
1083
+ console.error("aria-hidden: cannot operate on ", h, b);
1084
1084
  }
1085
1085
  });
1086
1086
  };
1087
1087
  return d(t), i.clear(), Le++, function() {
1088
1088
  s.forEach(function(p) {
1089
- var v = K.get(p) - 1, m = n.get(p) - 1;
1090
- K.set(p, v), n.set(p, m), v || (fe.has(p) || p.removeAttribute(o), fe.delete(p)), m || p.removeAttribute(r);
1089
+ var h = K.get(p) - 1, m = n.get(p) - 1;
1090
+ K.set(p, h), n.set(p, m), h || (fe.has(p) || p.removeAttribute(o), fe.delete(p)), m || p.removeAttribute(r);
1091
1091
  }), Le--, Le || (K = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), pe = {});
1092
1092
  };
1093
- }, oo = function(e, t, r) {
1093
+ }, io = function(e, t, r) {
1094
1094
  r === void 0 && (r = "data-aria-hidden");
1095
- var o = Array.from(Array.isArray(e) ? e : [e]), a = to(e);
1096
- return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live], script"))), no(o, a, r, "aria-hidden")) : function() {
1095
+ var o = Array.from(Array.isArray(e) ? e : [e]), a = no(e);
1096
+ return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live], script"))), ao(o, a, r, "aria-hidden")) : function() {
1097
1097
  return null;
1098
1098
  };
1099
- }, Ee = "Dialog", [Xt] = Dt(Ee), [ao, I] = Xt(Ee), qt = (e) => {
1099
+ }, Ee = "Dialog", [qt] = Tt(Ee), [so, I] = qt(Ee), Gt = (e) => {
1100
1100
  const {
1101
1101
  __scopeDialog: t,
1102
1102
  children: r,
@@ -1104,21 +1104,21 @@ var to = function(e) {
1104
1104
  defaultOpen: a,
1105
1105
  onOpenChange: n,
1106
1106
  modal: s = !0
1107
- } = e, i = c.useRef(null), u = c.useRef(null), [l, d] = Br({
1107
+ } = e, i = c.useRef(null), u = c.useRef(null), [l, d] = Vr({
1108
1108
  prop: o,
1109
1109
  defaultProp: a ?? !1,
1110
1110
  onChange: n,
1111
1111
  caller: Ee
1112
1112
  });
1113
1113
  return /* @__PURE__ */ f(
1114
- ao,
1114
+ so,
1115
1115
  {
1116
1116
  scope: t,
1117
1117
  triggerRef: i,
1118
1118
  contentRef: u,
1119
- contentId: xe(),
1120
- titleId: xe(),
1121
- descriptionId: xe(),
1119
+ contentId: Re(),
1120
+ titleId: Re(),
1121
+ descriptionId: Re(),
1122
1122
  open: l,
1123
1123
  onOpenChange: d,
1124
1124
  onOpenToggle: c.useCallback(() => d((p) => !p), [d]),
@@ -1127,10 +1127,10 @@ var to = function(e) {
1127
1127
  }
1128
1128
  );
1129
1129
  };
1130
- qt.displayName = Ee;
1131
- var Gt = "DialogTrigger", Kt = c.forwardRef(
1130
+ Gt.displayName = Ee;
1131
+ var Kt = "DialogTrigger", Zt = c.forwardRef(
1132
1132
  (e, t) => {
1133
- const { __scopeDialog: r, ...o } = e, a = I(Gt, r), n = L(t, a.triggerRef);
1133
+ const { __scopeDialog: r, ...o } = e, a = I(Kt, r), n = L(t, a.triggerRef);
1134
1134
  return /* @__PURE__ */ f(
1135
1135
  T.button,
1136
1136
  {
@@ -1146,28 +1146,28 @@ var Gt = "DialogTrigger", Kt = c.forwardRef(
1146
1146
  );
1147
1147
  }
1148
1148
  );
1149
- Kt.displayName = Gt;
1150
- var Ve = "DialogPortal", [io, Zt] = Xt(Ve, {
1149
+ Zt.displayName = Kt;
1150
+ var Ve = "DialogPortal", [co, Qt] = qt(Ve, {
1151
1151
  forceMount: void 0
1152
- }), Qt = (e) => {
1152
+ }), Jt = (e) => {
1153
1153
  const { __scopeDialog: t, forceMount: r, children: o, container: a } = e, n = I(Ve, t);
1154
- return /* @__PURE__ */ f(io, { scope: t, forceMount: r, children: c.Children.map(o, (s) => /* @__PURE__ */ f(V, { present: r || n.open, children: /* @__PURE__ */ f(kt, { asChild: !0, container: a, children: s }) })) });
1154
+ return /* @__PURE__ */ f(co, { scope: t, forceMount: r, children: c.Children.map(o, (s) => /* @__PURE__ */ f(z, { present: r || n.open, children: /* @__PURE__ */ f(Wt, { asChild: !0, container: a, children: s }) })) });
1155
1155
  };
1156
- Qt.displayName = Ve;
1157
- var be = "DialogOverlay", Jt = c.forwardRef(
1156
+ Jt.displayName = Ve;
1157
+ var be = "DialogOverlay", er = c.forwardRef(
1158
1158
  (e, t) => {
1159
- const r = Zt(be, e.__scopeDialog), { forceMount: o = r.forceMount, ...a } = e, n = I(be, e.__scopeDialog);
1160
- return n.modal ? /* @__PURE__ */ f(V, { present: o || n.open, children: /* @__PURE__ */ f(co, { ...a, ref: t }) }) : null;
1159
+ const r = Qt(be, e.__scopeDialog), { forceMount: o = r.forceMount, ...a } = e, n = I(be, e.__scopeDialog);
1160
+ return n.modal ? /* @__PURE__ */ f(z, { present: o || n.open, children: /* @__PURE__ */ f(uo, { ...a, ref: t }) }) : null;
1161
1161
  }
1162
1162
  );
1163
- Jt.displayName = be;
1164
- var so = /* @__PURE__ */ Tt("DialogOverlay.RemoveScroll"), co = c.forwardRef(
1163
+ er.displayName = be;
1164
+ var lo = /* @__PURE__ */ Ot("DialogOverlay.RemoveScroll"), uo = c.forwardRef(
1165
1165
  (e, t) => {
1166
1166
  const { __scopeDialog: r, ...o } = e, a = I(be, r);
1167
1167
  return (
1168
1168
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1169
1169
  // ie. when `Overlay` and `Content` are siblings
1170
- /* @__PURE__ */ f(zt, { as: so, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ f(
1170
+ /* @__PURE__ */ f(Yt, { as: lo, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ f(
1171
1171
  T.div,
1172
1172
  {
1173
1173
  "data-state": Ye(a.open),
@@ -1178,21 +1178,21 @@ var so = /* @__PURE__ */ Tt("DialogOverlay.RemoveScroll"), co = c.forwardRef(
1178
1178
  ) })
1179
1179
  );
1180
1180
  }
1181
- ), X = "DialogContent", er = c.forwardRef(
1181
+ ), X = "DialogContent", tr = c.forwardRef(
1182
1182
  (e, t) => {
1183
- const r = Zt(X, e.__scopeDialog), { forceMount: o = r.forceMount, ...a } = e, n = I(X, e.__scopeDialog);
1184
- return /* @__PURE__ */ f(V, { present: o || n.open, children: n.modal ? /* @__PURE__ */ f(lo, { ...a, ref: t }) : /* @__PURE__ */ f(uo, { ...a, ref: t }) });
1183
+ const r = Qt(X, e.__scopeDialog), { forceMount: o = r.forceMount, ...a } = e, n = I(X, e.__scopeDialog);
1184
+ return /* @__PURE__ */ f(z, { present: o || n.open, children: n.modal ? /* @__PURE__ */ f(fo, { ...a, ref: t }) : /* @__PURE__ */ f(po, { ...a, ref: t }) });
1185
1185
  }
1186
1186
  );
1187
- er.displayName = X;
1188
- var lo = c.forwardRef(
1187
+ tr.displayName = X;
1188
+ var fo = c.forwardRef(
1189
1189
  (e, t) => {
1190
1190
  const r = I(X, e.__scopeDialog), o = c.useRef(null), a = L(t, r.contentRef, o);
1191
1191
  return c.useEffect(() => {
1192
1192
  const n = o.current;
1193
- if (n) return oo(n);
1193
+ if (n) return io(n);
1194
1194
  }, []), /* @__PURE__ */ f(
1195
- tr,
1195
+ rr,
1196
1196
  {
1197
1197
  ...e,
1198
1198
  ref: a,
@@ -1213,11 +1213,11 @@ var lo = c.forwardRef(
1213
1213
  }
1214
1214
  );
1215
1215
  }
1216
- ), uo = c.forwardRef(
1216
+ ), po = c.forwardRef(
1217
1217
  (e, t) => {
1218
1218
  const r = I(X, e.__scopeDialog), o = c.useRef(!1), a = c.useRef(!1);
1219
1219
  return /* @__PURE__ */ f(
1220
- tr,
1220
+ rr,
1221
1221
  {
1222
1222
  ...e,
1223
1223
  ref: t,
@@ -1236,12 +1236,12 @@ var lo = c.forwardRef(
1236
1236
  }
1237
1237
  );
1238
1238
  }
1239
- ), tr = c.forwardRef(
1239
+ ), rr = c.forwardRef(
1240
1240
  (e, t) => {
1241
1241
  const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: n, ...s } = e, i = I(X, r), u = c.useRef(null), l = L(t, u);
1242
- return _n(), /* @__PURE__ */ D(re, { children: [
1242
+ return yn(), /* @__PURE__ */ D(re, { children: [
1243
1243
  /* @__PURE__ */ f(
1244
- Mt,
1244
+ It,
1245
1245
  {
1246
1246
  asChild: !0,
1247
1247
  loop: !0,
@@ -1249,7 +1249,7 @@ var lo = c.forwardRef(
1249
1249
  onMountAutoFocus: a,
1250
1250
  onUnmountAutoFocus: n,
1251
1251
  children: /* @__PURE__ */ f(
1252
- Lt,
1252
+ $t,
1253
1253
  {
1254
1254
  role: "dialog",
1255
1255
  id: i.contentId,
@@ -1264,28 +1264,28 @@ var lo = c.forwardRef(
1264
1264
  }
1265
1265
  ),
1266
1266
  /* @__PURE__ */ D(re, { children: [
1267
- /* @__PURE__ */ f(fo, { titleId: i.titleId }),
1268
- /* @__PURE__ */ f(vo, { contentRef: u, descriptionId: i.descriptionId })
1267
+ /* @__PURE__ */ f(ho, { titleId: i.titleId }),
1268
+ /* @__PURE__ */ f(mo, { contentRef: u, descriptionId: i.descriptionId })
1269
1269
  ] })
1270
1270
  ] });
1271
1271
  }
1272
- ), ze = "DialogTitle", rr = c.forwardRef(
1272
+ ), ze = "DialogTitle", nr = c.forwardRef(
1273
1273
  (e, t) => {
1274
1274
  const { __scopeDialog: r, ...o } = e, a = I(ze, r);
1275
1275
  return /* @__PURE__ */ f(T.h2, { id: a.titleId, ...o, ref: t });
1276
1276
  }
1277
1277
  );
1278
- rr.displayName = ze;
1279
- var nr = "DialogDescription", or = c.forwardRef(
1278
+ nr.displayName = ze;
1279
+ var or = "DialogDescription", ar = c.forwardRef(
1280
1280
  (e, t) => {
1281
- const { __scopeDialog: r, ...o } = e, a = I(nr, r);
1281
+ const { __scopeDialog: r, ...o } = e, a = I(or, r);
1282
1282
  return /* @__PURE__ */ f(T.p, { id: a.descriptionId, ...o, ref: t });
1283
1283
  }
1284
1284
  );
1285
- or.displayName = nr;
1286
- var ar = "DialogClose", ir = c.forwardRef(
1285
+ ar.displayName = or;
1286
+ var ir = "DialogClose", sr = c.forwardRef(
1287
1287
  (e, t) => {
1288
- const { __scopeDialog: r, ...o } = e, a = I(ar, r);
1288
+ const { __scopeDialog: r, ...o } = e, a = I(ir, r);
1289
1289
  return /* @__PURE__ */ f(
1290
1290
  T.button,
1291
1291
  {
@@ -1297,16 +1297,16 @@ var ar = "DialogClose", ir = c.forwardRef(
1297
1297
  );
1298
1298
  }
1299
1299
  );
1300
- ir.displayName = ar;
1300
+ sr.displayName = ir;
1301
1301
  function Ye(e) {
1302
1302
  return e ? "open" : "closed";
1303
1303
  }
1304
- var sr = "DialogTitleWarning", [ti, cr] = kr(sr, {
1304
+ var cr = "DialogTitleWarning", [ti, lr] = Fr(cr, {
1305
1305
  contentName: X,
1306
1306
  titleName: ze,
1307
1307
  docsSlug: "dialog"
1308
- }), fo = ({ titleId: e }) => {
1309
- const t = cr(sr), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1308
+ }), ho = ({ titleId: e }) => {
1309
+ const t = lr(cr), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1310
1310
 
1311
1311
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
1312
1312
 
@@ -1314,16 +1314,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
1314
1314
  return c.useEffect(() => {
1315
1315
  e && (document.getElementById(e) || console.error(r));
1316
1316
  }, [r, e]), null;
1317
- }, po = "DialogDescriptionWarning", vo = ({ contentRef: e, descriptionId: t }) => {
1318
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cr(po).contentName}}.`;
1317
+ }, vo = "DialogDescriptionWarning", mo = ({ contentRef: e, descriptionId: t }) => {
1318
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lr(vo).contentName}}.`;
1319
1319
  return c.useEffect(() => {
1320
1320
  var n;
1321
1321
  const a = (n = e.current) == null ? void 0 : n.getAttribute("aria-describedby");
1322
1322
  t && a && (document.getElementById(t) || console.warn(o));
1323
1323
  }, [o, e, t]), null;
1324
- }, ho = qt, mo = Kt, go = Qt, _o = Jt, bo = er, ve = rr, wo = or, yo = ir;
1325
- const lr = Or(null);
1326
- function So(e) {
1324
+ }, go = Gt, _o = Zt, bo = Jt, yo = er, wo = tr, he = nr, So = ar, Eo = sr;
1325
+ const ur = $r(null);
1326
+ function Co(e) {
1327
1327
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1328
1328
  }
1329
1329
  var $e = { exports: {} };
@@ -1332,9 +1332,9 @@ var $e = { exports: {} };
1332
1332
  Licensed under the MIT License (MIT), see
1333
1333
  http://jedwatson.github.io/classnames
1334
1334
  */
1335
- var vt;
1336
- function Eo() {
1337
- return vt || (vt = 1, (function(e) {
1335
+ var ht;
1336
+ function Po() {
1337
+ return ht || (ht = 1, (function(e) {
1338
1338
  (function() {
1339
1339
  var t = {}.hasOwnProperty;
1340
1340
  function r() {
@@ -1365,29 +1365,29 @@ function Eo() {
1365
1365
  })();
1366
1366
  })($e)), $e.exports;
1367
1367
  }
1368
- var Co = Eo();
1369
- const ae = /* @__PURE__ */ So(Co), Po = "_slideUp_71yig_1", xo = "_slideDown_71yig_1", Ro = "_slideInRight_71yig_1", No = "_slideInLeft_71yig_1", Ao = "_slideOutRight_71yig_1", Do = "_slideOutLeft_71yig_1", To = "_fadeIn_71yig_1", Oo = "_fadeOut_71yig_1", Lo = {
1368
+ var Ro = Po();
1369
+ const ae = /* @__PURE__ */ Co(Ro), No = "_slideUp_71yig_1", xo = "_slideDown_71yig_1", Ao = "_slideInRight_71yig_1", Do = "_slideInLeft_71yig_1", To = "_slideOutRight_71yig_1", Oo = "_slideOutLeft_71yig_1", Lo = "_fadeIn_71yig_1", $o = "_fadeOut_71yig_1", Mo = {
1370
1370
  "purpur-drawer-content": "_purpur-drawer-content_71yig_1",
1371
- slideUp: Po,
1371
+ slideUp: No,
1372
1372
  slideDown: xo,
1373
1373
  "purpur-drawer-content--left": "_purpur-drawer-content--left_71yig_21",
1374
1374
  "purpur-drawer-content--right": "_purpur-drawer-content--right_71yig_24",
1375
1375
  "purpur-drawer-content--fit-to-content": "_purpur-drawer-content--fit-to-content_71yig_27",
1376
- slideInRight: Ro,
1377
- slideInLeft: No,
1378
- slideOutRight: Ao,
1379
- slideOutLeft: Do,
1376
+ slideInRight: Ao,
1377
+ slideInLeft: Do,
1378
+ slideOutRight: To,
1379
+ slideOutLeft: Oo,
1380
1380
  "purpur-drawer-content__content-container": "_purpur-drawer-content__content-container_71yig_63",
1381
1381
  "purpur-drawer-content__description": "_purpur-drawer-content__description_71yig_68",
1382
1382
  "purpur-drawer-overlay": "_purpur-drawer-overlay_71yig_79",
1383
- fadeIn: To,
1384
- fadeOut: Oo
1385
- }, $o = {
1383
+ fadeIn: Lo,
1384
+ fadeOut: $o
1385
+ }, Io = {
1386
1386
  "purpur-drawer-container--header": "_purpur-drawer-container--header_1bcla_1",
1387
1387
  "purpur-drawer-container--body": "_purpur-drawer-container--body_1bcla_4",
1388
1388
  "purpur-drawer-container--sticky": "_purpur-drawer-container--sticky_1bcla_12",
1389
1389
  "purpur-drawer-container--footer": "_purpur-drawer-container--footer_1bcla_20"
1390
- }, Mo = ae.bind($o), Me = "purpur-drawer-container", ee = H(
1390
+ }, ko = ae.bind(Io), Me = "purpur-drawer-container", ee = V(
1391
1391
  ({
1392
1392
  ["data-testid"]: e = "purpur-drawer-container",
1393
1393
  children: t,
@@ -1396,7 +1396,7 @@ const ae = /* @__PURE__ */ So(Co), Po = "_slideUp_71yig_1", xo = "_slideDown_71y
1396
1396
  stickyFooter: a,
1397
1397
  ...n
1398
1398
  }, s) => {
1399
- const i = Mo([
1399
+ const i = ko([
1400
1400
  r,
1401
1401
  Me,
1402
1402
  {
@@ -1410,7 +1410,7 @@ const ae = /* @__PURE__ */ So(Co), Po = "_slideUp_71yig_1", xo = "_slideDown_71y
1410
1410
  }
1411
1411
  );
1412
1412
  ee.displayName = "DrawerContainer";
1413
- const Io = {
1413
+ const Wo = {
1414
1414
  "purpur-drawer-frame": "_purpur-drawer-frame_1didd_1",
1415
1415
  "purpur-drawer-frame--without-back-button": "_purpur-drawer-frame--without-back-button_1didd_11",
1416
1416
  "purpur-drawer-frame__header": "_purpur-drawer-frame__header_1didd_11",
@@ -1423,28 +1423,28 @@ const Io = {
1423
1423
  "purpur-drawer-frame__footer": "_purpur-drawer-frame__footer_1didd_52",
1424
1424
  "purpur-drawer-frame__content-container": "_purpur-drawer-frame__content-container_1didd_55",
1425
1425
  "purpur-drawer-frame__content-container--no-footer": "_purpur-drawer-frame__content-container--no-footer_1didd_60"
1426
- }, ko = {
1426
+ }, Fo = {
1427
1427
  "purpur-drawer-handle": "_purpur-drawer-handle_3n0ew_1"
1428
- }, Wo = (e, t, r, o, a, n) => ({
1428
+ }, jo = (e, t, r, o, a, n) => ({
1429
1429
  onPointerDown: (l) => {
1430
1430
  e.current = { y: l.clientY };
1431
1431
  },
1432
1432
  onPointerMove: (l) => {
1433
1433
  if (!e.current)
1434
1434
  return;
1435
- const d = l.clientY - e.current.y, p = !!t.current, v = Math.max(0, d), m = l.pointerType === "touch" ? 10 : 2, _ = { y: v }, h = { originalEvent: l, delta: _ };
1436
- p ? (t.current = _, o(h)) : ht(_, 0) ? (t.current = _, r(), l.target.setPointerCapture(l.pointerId)) : Math.abs(d) > m && (e.current = null);
1435
+ const d = l.clientY - e.current.y, p = !!t.current, h = Math.max(0, d), m = l.pointerType === "touch" ? 10 : 2, _ = { y: h }, v = { originalEvent: l, delta: _ };
1436
+ p ? (t.current = _, o(v)) : vt(_, 0) ? (t.current = _, r(), l.target.setPointerCapture(l.pointerId)) : Math.abs(d) > m && (e.current = null);
1437
1437
  },
1438
1438
  onPointerUp: (l) => {
1439
1439
  const d = t.current, p = l.target;
1440
1440
  if (p.hasPointerCapture(l.pointerId) && p.releasePointerCapture(l.pointerId), t.current = null, e.current = null, d) {
1441
- const v = l.currentTarget, m = { originalEvent: l, delta: d };
1442
- ht(d, 0) && d.y > 200 ? n(m) : a(), v.addEventListener("click", (_) => _.preventDefault(), {
1441
+ const h = l.currentTarget, m = { originalEvent: l, delta: d };
1442
+ vt(d, 0) && d.y > 200 ? n(m) : a(), h.addEventListener("click", (_) => _.preventDefault(), {
1443
1443
  once: !0
1444
1444
  });
1445
1445
  }
1446
1446
  }
1447
- }), ht = (e, t = 0) => Math.abs(e.y) > t, jo = ae.bind(ko), Fo = "purpur-drawer-handle", ur = H(
1447
+ }), vt = (e, t = 0) => Math.abs(e.y) > t, Uo = ae.bind(Fo), Bo = "purpur-drawer-handle", dr = V(
1448
1448
  ({
1449
1449
  ["data-testid"]: e = "purpur-drawer-handle",
1450
1450
  className: t,
@@ -1454,7 +1454,7 @@ const Io = {
1454
1454
  onSwipeEnd: n,
1455
1455
  ...s
1456
1456
  }, i) => {
1457
- const u = jo([t, Fo]), l = ke.useRef(null), d = ke.useRef(null), { onPointerDown: p, onPointerMove: v, onPointerUp: m } = Wo(
1457
+ const u = Uo([t, Bo]), l = ke.useRef(null), d = ke.useRef(null), { onPointerDown: p, onPointerMove: h, onPointerUp: m } = jo(
1458
1458
  d,
1459
1459
  l,
1460
1460
  r,
@@ -1468,7 +1468,7 @@ const Io = {
1468
1468
  className: u,
1469
1469
  "data-testid": e,
1470
1470
  onPointerDown: p,
1471
- onPointerMove: v,
1471
+ onPointerMove: h,
1472
1472
  onPointerUp: m,
1473
1473
  ref: i,
1474
1474
  ...s
@@ -1476,11 +1476,11 @@ const Io = {
1476
1476
  );
1477
1477
  }
1478
1478
  );
1479
- ur.displayName = "DrawerHandle";
1480
- const Uo = {
1479
+ dr.displayName = "DrawerHandle";
1480
+ const Ho = {
1481
1481
  LG: "lg"
1482
1482
  };
1483
- function Bo(e) {
1483
+ function Vo(e) {
1484
1484
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1485
1485
  }
1486
1486
  var mt = { exports: {} };
@@ -1490,7 +1490,7 @@ var mt = { exports: {} };
1490
1490
  http://jedwatson.github.io/classnames
1491
1491
  */
1492
1492
  var gt;
1493
- function Ho() {
1493
+ function zo() {
1494
1494
  return gt || (gt = 1, (function(e) {
1495
1495
  (function() {
1496
1496
  var t = {}.hasOwnProperty;
@@ -1522,27 +1522,28 @@ function Ho() {
1522
1522
  })();
1523
1523
  })(mt)), mt.exports;
1524
1524
  }
1525
- var Vo = Ho();
1526
- const zo = /* @__PURE__ */ Bo(Vo), Yo = "_rotate_12t9p_1", Xo = "_dash_12t9p_1", qo = {
1525
+ var Yo = zo();
1526
+ const Xo = /* @__PURE__ */ Vo(Yo), qo = "_rotate_12t9p_1", Go = "_dash_12t9p_1", Ko = {
1527
1527
  "purpur-spinner": "_purpur-spinner_12t9p_2",
1528
- rotate: Yo,
1528
+ rotate: qo,
1529
1529
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
1530
1530
  "purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
1531
1531
  "purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
1532
1532
  "purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
1533
1533
  "purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
1534
1534
  "purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
1535
- dash: Xo,
1535
+ dash: Go,
1536
1536
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
1537
1537
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
1538
- }, _t = zo.bind(qo), ie = "purpur-spinner", Go = {
1538
+ }, _t = Xo.bind(Ko), ie = "purpur-spinner", Zo = {
1539
1539
  SM: "sm"
1540
- }, Ko = ({
1540
+ }, fr = ({
1541
1541
  disabled: e = !1,
1542
1542
  negative: t = !1,
1543
- size: r = Go.SM,
1544
- ...o
1545
- }) => /* @__PURE__ */ f("div", { className: _t(ie, `${ie}--${r}`), ...o, children: /* @__PURE__ */ f("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ f(
1543
+ size: r = Zo.SM,
1544
+ className: o,
1545
+ ...a
1546
+ }) => /* @__PURE__ */ f("div", { className: _t(ie, `${ie}--${r}`, o), ...a, children: /* @__PURE__ */ f("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ f(
1546
1547
  "circle",
1547
1548
  {
1548
1549
  className: _t(`${ie}__circle`, {
@@ -1554,7 +1555,8 @@ const zo = /* @__PURE__ */ Bo(Vo), Yo = "_rotate_12t9p_1", Xo = "_dash_12t9p_1",
1554
1555
  r: "20"
1555
1556
  }
1556
1557
  ) }) });
1557
- function Zo(e) {
1558
+ fr.displayName = "Spinner";
1559
+ function Qo(e) {
1558
1560
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1559
1561
  }
1560
1562
  var bt = { exports: {} };
@@ -1563,9 +1565,9 @@ var bt = { exports: {} };
1563
1565
  Licensed under the MIT License (MIT), see
1564
1566
  http://jedwatson.github.io/classnames
1565
1567
  */
1566
- var wt;
1567
- function Qo() {
1568
- return wt || (wt = 1, (function(e) {
1568
+ var yt;
1569
+ function Jo() {
1570
+ return yt || (yt = 1, (function(e) {
1569
1571
  (function() {
1570
1572
  var t = {}.hasOwnProperty;
1571
1573
  function r() {
@@ -1596,33 +1598,34 @@ function Qo() {
1596
1598
  })();
1597
1599
  })(bt)), bt.exports;
1598
1600
  }
1599
- var Jo = Qo();
1600
- const ea = /* @__PURE__ */ Zo(Jo), ta = {
1601
- "purpur-button": "_purpur-button_cjx7j_1",
1602
- "purpur-button--xs": "_purpur-button--xs_cjx7j_22",
1603
- "purpur-button--icon-only": "_purpur-button--icon-only_cjx7j_25",
1604
- "purpur-button--sm": "_purpur-button--sm_cjx7j_28",
1605
- "purpur-button--md": "_purpur-button--md_cjx7j_34",
1606
- "purpur-button--lg": "_purpur-button--lg_cjx7j_40",
1607
- "purpur-button--full-width": "_purpur-button--full-width_cjx7j_46",
1608
- "purpur-button--primary": "_purpur-button--primary_cjx7j_64",
1609
- "purpur-button--disabled": "_purpur-button--disabled_cjx7j_68",
1610
- "purpur-button--primary-negative": "_purpur-button--primary-negative_cjx7j_74",
1611
- "purpur-button--secondary": "_purpur-button--secondary_cjx7j_86",
1612
- "purpur-button--secondary-negative": "_purpur-button--secondary-negative_cjx7j_97",
1613
- "purpur-button--expressive": "_purpur-button--expressive_cjx7j_108",
1614
- "purpur-button--expressive-negative": "_purpur-button--expressive-negative_cjx7j_118",
1615
- "purpur-button--negative": "_purpur-button--negative_cjx7j_130",
1616
- "purpur-button--destructive": "_purpur-button--destructive_cjx7j_137",
1617
- "purpur-button--destructive-negative": "_purpur-button--destructive-negative_cjx7j_147",
1618
- "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_cjx7j_157",
1619
- "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_cjx7j_170",
1620
- "purpur-button--text-negative": "_purpur-button--text-negative_cjx7j_185",
1621
- "purpur-button--text": "_purpur-button--text_cjx7j_185"
1601
+ var ea = Jo();
1602
+ const ta = /* @__PURE__ */ Qo(ea), ra = {
1603
+ "purpur-button": "_purpur-button_10jh0_1",
1604
+ "purpur-button--xs": "_purpur-button--xs_10jh0_22",
1605
+ "purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
1606
+ "purpur-button--sm": "_purpur-button--sm_10jh0_28",
1607
+ "purpur-button--md": "_purpur-button--md_10jh0_34",
1608
+ "purpur-button--lg": "_purpur-button--lg_10jh0_40",
1609
+ "purpur-button--full-width": "_purpur-button--full-width_10jh0_46",
1610
+ "purpur-button--primary": "_purpur-button--primary_10jh0_64",
1611
+ "purpur-button--disabled": "_purpur-button--disabled_10jh0_68",
1612
+ "purpur-button--primary-negative": "_purpur-button--primary-negative_10jh0_74",
1613
+ "purpur-button--secondary": "_purpur-button--secondary_10jh0_86",
1614
+ "purpur-button--secondary-negative": "_purpur-button--secondary-negative_10jh0_97",
1615
+ "purpur-button--expressive": "_purpur-button--expressive_10jh0_108",
1616
+ "purpur-button--expressive-negative": "_purpur-button--expressive-negative_10jh0_118",
1617
+ "purpur-button--negative": "_purpur-button--negative_10jh0_130",
1618
+ "purpur-button--destructive": "_purpur-button--destructive_10jh0_137",
1619
+ "purpur-button--destructive-negative": "_purpur-button--destructive-negative_10jh0_147",
1620
+ "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_10jh0_157",
1621
+ "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_10jh0_170",
1622
+ "purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
1623
+ "purpur-button--text": "_purpur-button--text_10jh0_185",
1624
+ "purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
1622
1625
  }, Ie = {
1623
1626
  TERTIARY_PURPLE: "tertiary-purple",
1624
1627
  TEXT: "text"
1625
- }, ra = ea.bind(ta), z = "purpur-button", Fe = H(
1628
+ }, wt = ta.bind(ra), U = "purpur-button", je = V(
1626
1629
  ({
1627
1630
  children: e,
1628
1631
  className: t,
@@ -1636,41 +1639,42 @@ const ea = /* @__PURE__ */ Zo(Jo), ta = {
1636
1639
  variant: l,
1637
1640
  type: d = "button",
1638
1641
  ...p
1639
- }, v) => {
1642
+ }, h) => {
1640
1643
  if (a && l === "destructive")
1641
1644
  return null;
1642
- const m = ra(
1645
+ const m = wt(
1643
1646
  [
1644
- z,
1645
- `${z}--${s ? `${l}-negative` : l}`,
1646
- `${z}--${u}`
1647
+ U,
1648
+ `${U}--${s ? `${l}-negative` : l}`,
1649
+ `${U}--${u}`
1647
1650
  ],
1648
1651
  {
1649
- [`${z}--icon-only`]: a,
1650
- [`${z}--negative`]: s,
1651
- [`${z}--full-width`]: o,
1652
- [`${z}--disabled`]: r || n
1652
+ [`${U}--icon-only`]: a,
1653
+ [`${U}--negative`]: s,
1654
+ [`${U}--full-width`]: o,
1655
+ [`${U}--disabled`]: r || n
1653
1656
  },
1654
1657
  t
1655
1658
  ), _ = (g) => {
1656
1659
  r || n ? g.preventDefault() : i && i(g);
1657
- }, h = !!p["aria-disabled"] || r || n;
1660
+ }, v = !!p["aria-disabled"] || r || n;
1658
1661
  return /* @__PURE__ */ D(
1659
1662
  "button",
1660
1663
  {
1661
1664
  className: m,
1662
1665
  type: d,
1663
- ref: v,
1664
- "aria-disabled": h,
1666
+ ref: h,
1667
+ "aria-disabled": v,
1665
1668
  onClick: _,
1666
1669
  ...p,
1667
1670
  children: [
1668
1671
  n && /* @__PURE__ */ f(
1669
- Ko,
1672
+ fr,
1670
1673
  {
1671
- size: u === Uo.LG ? "xs" : "xxs",
1674
+ size: u === Ho.LG ? "xs" : "xxs",
1672
1675
  negative: s,
1673
- disabled: h
1676
+ disabled: v,
1677
+ className: wt(`${U}__spinner`)
1674
1678
  }
1675
1679
  ),
1676
1680
  " ",
@@ -1680,19 +1684,19 @@ const ea = /* @__PURE__ */ Zo(Jo), ta = {
1680
1684
  );
1681
1685
  }
1682
1686
  );
1683
- Fe.displayName = "Button";
1687
+ je.displayName = "Button";
1684
1688
  function na(e) {
1685
1689
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1686
1690
  }
1687
- var yt = { exports: {} };
1691
+ var St = { exports: {} };
1688
1692
  /*!
1689
1693
  Copyright (c) 2018 Jed Watson.
1690
1694
  Licensed under the MIT License (MIT), see
1691
1695
  http://jedwatson.github.io/classnames
1692
1696
  */
1693
- var St;
1697
+ var Et;
1694
1698
  function oa() {
1695
- return St || (St = 1, (function(e) {
1699
+ return Et || (Et = 1, (function(e) {
1696
1700
  (function() {
1697
1701
  var t = {}.hasOwnProperty;
1698
1702
  function r() {
@@ -1721,10 +1725,10 @@ function oa() {
1721
1725
  }
1722
1726
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1723
1727
  })();
1724
- })(yt)), yt.exports;
1728
+ })(St)), St.exports;
1725
1729
  }
1726
1730
  var aa = oa();
1727
- const ia = /* @__PURE__ */ na(aa), he = {
1731
+ const ia = /* @__PURE__ */ na(aa), ve = {
1728
1732
  "purpur-heading": "_purpur-heading_vo751_1",
1729
1733
  "purpur-heading--hyphens": "_purpur-heading--hyphens_vo751_8",
1730
1734
  "purpur-heading--negative": "_purpur-heading--negative_vo751_11",
@@ -1758,11 +1762,11 @@ const ia = /* @__PURE__ */ na(aa), he = {
1758
1762
  }) => {
1759
1763
  const i = a, u = ia([
1760
1764
  t,
1761
- he[me],
1762
- he[`${me}--${n}`],
1765
+ ve[me],
1766
+ ve[`${me}--${n}`],
1763
1767
  {
1764
- [he[`${me}--hyphens`]]: r,
1765
- [he[`${me}--negative`]]: o
1768
+ [ve[`${me}--hyphens`]]: r,
1769
+ [ve[`${me}--negative`]]: o
1766
1770
  }
1767
1771
  ]);
1768
1772
  return /* @__PURE__ */ f(i, { className: u, ...s, children: e });
@@ -1771,15 +1775,15 @@ Be.displayName = "Heading";
1771
1775
  function sa(e) {
1772
1776
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1773
1777
  }
1774
- var Et = { exports: {} };
1778
+ var Ct = { exports: {} };
1775
1779
  /*!
1776
1780
  Copyright (c) 2018 Jed Watson.
1777
1781
  Licensed under the MIT License (MIT), see
1778
1782
  http://jedwatson.github.io/classnames
1779
1783
  */
1780
- var Ct;
1784
+ var Pt;
1781
1785
  function ca() {
1782
- return Ct || (Ct = 1, (function(e) {
1786
+ return Pt || (Pt = 1, (function(e) {
1783
1787
  (function() {
1784
1788
  var t = {}.hasOwnProperty;
1785
1789
  function r() {
@@ -1808,7 +1812,7 @@ function ca() {
1808
1812
  }
1809
1813
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1810
1814
  })();
1811
- })(Et)), Et.exports;
1815
+ })(Ct)), Ct.exports;
1812
1816
  }
1813
1817
  var la = ca();
1814
1818
  const ua = /* @__PURE__ */ sa(la), da = {
@@ -1819,19 +1823,19 @@ const ua = /* @__PURE__ */ sa(la), da = {
1819
1823
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
1820
1824
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
1821
1825
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
1822
- }, fa = ua.bind(da), Pt = "purpur-icon", pa = "md", va = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), ha = ({ content: e = "", title: t } = {}) => {
1826
+ }, fa = ua.bind(da), Rt = "purpur-icon", pa = "md", ha = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), va = ({ content: e = "", title: t } = {}) => {
1823
1827
  const r = [
1824
1828
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
1825
1829
  { name: "fill", value: "currentColor" },
1826
1830
  { name: "viewBox", value: "0 0 24 24" },
1827
1831
  t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
1828
1832
  ], o = t ? `<title>${t}</title>` : "";
1829
- return `<svg ${va(r)}>${o}${e}</svg>`;
1833
+ return `<svg ${ha(r)}>${o}${e}</svg>`;
1830
1834
  }, ma = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Xe = ({ svg: e, allyTitle: t, className: r, size: o = pa, ...a }) => {
1831
- const n = ha({
1835
+ const n = va({
1832
1836
  content: ma(e.svg),
1833
1837
  title: t
1834
- }), s = fa(r, Pt, `${Pt}--${o}`);
1838
+ }), s = fa(Rt, `${Rt}--${o}`, r);
1835
1839
  return /* @__PURE__ */ f("span", { className: s, dangerouslySetInnerHTML: { __html: n }, ...a });
1836
1840
  };
1837
1841
  Xe.displayName = "Icon";
@@ -1840,16 +1844,16 @@ const ga = {
1840
1844
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 12a.9.9 0 0 1 .264-.636l5.5-5.5a.9.9 0 0 1 1.272 1.272L6.173 11.1H20a.9.9 0 0 1 0 1.8H6.173l3.963 3.964a.9.9 0 1 1-1.272 1.272l-5.5-5.5A.9.9 0 0 1 3.1 12Z" clip-rule="evenodd"/></svg>',
1841
1845
  keywords: ["arrow-left"],
1842
1846
  category: "utility"
1843
- }, dr = (e) => /* @__PURE__ */ f(Xe, { ...e, svg: ga });
1844
- dr.displayName = "IconArrowLeft";
1847
+ }, pr = (e) => /* @__PURE__ */ f(Xe, { ...e, svg: ga });
1848
+ pr.displayName = "IconArrowLeft";
1845
1849
  const _a = {
1846
1850
  name: "close",
1847
1851
  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>',
1848
1852
  keywords: ["close"],
1849
1853
  category: "utility"
1850
- }, fr = (e) => /* @__PURE__ */ f(Xe, { ...e, svg: _a });
1851
- fr.displayName = "IconClose";
1852
- function xt(e, t) {
1854
+ }, hr = (e) => /* @__PURE__ */ f(Xe, { ...e, svg: _a });
1855
+ hr.displayName = "IconClose";
1856
+ function Nt(e, t) {
1853
1857
  if (typeof e == "function")
1854
1858
  return e(t);
1855
1859
  e != null && (e.current = t);
@@ -1858,21 +1862,21 @@ function ba(...e) {
1858
1862
  return (t) => {
1859
1863
  let r = !1;
1860
1864
  const o = e.map((a) => {
1861
- const n = xt(a, t);
1865
+ const n = Nt(a, t);
1862
1866
  return !r && typeof n == "function" && (r = !0), n;
1863
1867
  });
1864
1868
  if (r)
1865
1869
  return () => {
1866
1870
  for (let a = 0; a < o.length; a++) {
1867
1871
  const n = o[a];
1868
- typeof n == "function" ? n() : xt(e[a], null);
1872
+ typeof n == "function" ? n() : Nt(e[a], null);
1869
1873
  }
1870
1874
  };
1871
1875
  };
1872
1876
  }
1873
1877
  // @__NO_SIDE_EFFECTS__
1874
- function wa(e) {
1875
- const t = /* @__PURE__ */ ya(e), r = c.forwardRef((o, a) => {
1878
+ function ya(e) {
1879
+ const t = /* @__PURE__ */ wa(e), r = c.forwardRef((o, a) => {
1876
1880
  const { children: n, ...s } = o, i = c.Children.toArray(n), u = i.find(Ea);
1877
1881
  if (u) {
1878
1882
  const l = u.props.children, d = i.map((p) => p === u ? c.Children.count(l) > 1 ? c.Children.only(null) : c.isValidElement(l) ? l.props.children : null : p);
@@ -1883,7 +1887,7 @@ function wa(e) {
1883
1887
  return r.displayName = `${e}.Slot`, r;
1884
1888
  }
1885
1889
  // @__NO_SIDE_EFFECTS__
1886
- function ya(e) {
1890
+ function wa(e) {
1887
1891
  const t = c.forwardRef((r, o) => {
1888
1892
  const { children: a, ...n } = r;
1889
1893
  if (c.isValidElement(a)) {
@@ -1913,7 +1917,7 @@ function Pa(e) {
1913
1917
  let o = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, a = o && "isReactWarning" in o && o.isReactWarning;
1914
1918
  return a ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, a = o && "isReactWarning" in o && o.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
1915
1919
  }
1916
- var xa = [
1920
+ var Ra = [
1917
1921
  "a",
1918
1922
  "button",
1919
1923
  "div",
@@ -1930,15 +1934,15 @@ var xa = [
1930
1934
  "span",
1931
1935
  "svg",
1932
1936
  "ul"
1933
- ], Ra = xa.reduce((e, t) => {
1934
- const r = /* @__PURE__ */ wa(`Primitive.${t}`), o = c.forwardRef((a, n) => {
1937
+ ], Na = Ra.reduce((e, t) => {
1938
+ const r = /* @__PURE__ */ ya(`Primitive.${t}`), o = c.forwardRef((a, n) => {
1935
1939
  const { asChild: s, ...i } = a, u = s ? r : t;
1936
1940
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(u, { ...i, ref: n });
1937
1941
  });
1938
1942
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
1939
- }, {}), Na = "VisuallyHidden", pr = c.forwardRef(
1943
+ }, {}), xa = "VisuallyHidden", vr = c.forwardRef(
1940
1944
  (e, t) => /* @__PURE__ */ f(
1941
- Ra.span,
1945
+ Na.span,
1942
1946
  {
1943
1947
  ...e,
1944
1948
  ref: t,
@@ -1959,17 +1963,17 @@ var xa = [
1959
1963
  }
1960
1964
  )
1961
1965
  );
1962
- pr.displayName = Na;
1963
- var Aa = pr;
1964
- const Rt = ({ asChild: e, children: t, ...r }) => /* @__PURE__ */ f(Aa, { asChild: e, ...r, children: t }), Da = {
1965
- "purpur-drawer-header__row": "_purpur-drawer-header__row_12p9v_1",
1966
- "purpur-drawer-header__row--with-back-button": "_purpur-drawer-header__row--with-back-button_12p9v_4",
1967
- "purpur-drawer-header__left": "_purpur-drawer-header__left_12p9v_7",
1968
- "purpur-drawer-header__right": "_purpur-drawer-header__right_12p9v_10",
1969
- "purpur-drawer-header": "_purpur-drawer-header_12p9v_1",
1970
- "purpur-drawer-header__close-button": "_purpur-drawer-header__close-button_12p9v_13",
1971
- "purpur-drawer-header__back-button--only-icon": "_purpur-drawer-header__back-button--only-icon_12p9v_24"
1972
- }, Z = ae.bind(Da), U = "purpur-drawer-header", vr = H(
1966
+ vr.displayName = xa;
1967
+ var Aa = vr;
1968
+ const xt = ({ asChild: e, children: t, ...r }) => /* @__PURE__ */ f(Aa, { asChild: e, ...r, children: t }), Da = {
1969
+ "purpur-drawer-header": "_purpur-drawer-header_1iujy_1",
1970
+ "purpur-drawer-header__row": "_purpur-drawer-header__row_1iujy_4",
1971
+ "purpur-drawer-header__row--with-back-button": "_purpur-drawer-header__row--with-back-button_1iujy_7",
1972
+ "purpur-drawer-header__left": "_purpur-drawer-header__left_1iujy_10",
1973
+ "purpur-drawer-header__right": "_purpur-drawer-header__right_1iujy_13",
1974
+ "purpur-drawer-header__close-button": "_purpur-drawer-header__close-button_1iujy_16",
1975
+ "purpur-drawer-header__back-button--only-icon": "_purpur-drawer-header__back-button--only-icon_1iujy_27"
1976
+ }, Z = ae.bind(Da), B = "purpur-drawer-header", mr = V(
1973
1977
  ({
1974
1978
  ["data-testid"]: e = "purpur-drawer-header",
1975
1979
  backButton: t,
@@ -1982,27 +1986,27 @@ const Rt = ({ asChild: e, children: t, ...r }) => /* @__PURE__ */ f(Aa, { asChil
1982
1986
  title: u,
1983
1987
  ...l
1984
1988
  }, d) => {
1985
- const p = Z([a, U]), v = !!(t && r && i);
1989
+ const p = Z([a, B]), h = !!(t && r && i);
1986
1990
  return /* @__PURE__ */ D("div", { className: p, "data-testid": e, ref: d, ...l, children: [
1987
1991
  /* @__PURE__ */ D(
1988
1992
  "div",
1989
1993
  {
1990
1994
  className: Z([
1991
- `${U}__row`,
1995
+ `${B}__row`,
1992
1996
  {
1993
- [`${U}__row--with-back-button`]: v
1997
+ [`${B}__row--with-back-button`]: h
1994
1998
  }
1995
1999
  ]),
1996
2000
  "data-testid": `${e}-row`,
1997
2001
  children: [
1998
- /* @__PURE__ */ f("div", { className: Z(`${U}__left`), children: v ? /* @__PURE__ */ D(
1999
- Fe,
2002
+ /* @__PURE__ */ f("div", { className: Z(`${B}__left`), children: h ? /* @__PURE__ */ D(
2003
+ je,
2000
2004
  {
2001
2005
  "aria-label": o ? r : "",
2002
2006
  className: Z([
2003
- `${U}__back-button`,
2007
+ `${B}__back-button`,
2004
2008
  {
2005
- [`${U}__back-button--only-icon`]: o
2009
+ [`${B}__back-button--only-icon`]: o
2006
2010
  }
2007
2011
  ]),
2008
2012
  "data-testid": `${e}-back-button`,
@@ -2011,14 +2015,14 @@ const Rt = ({ asChild: e, children: t, ...r }) => /* @__PURE__ */ f(Aa, { asChil
2011
2015
  size: "sm",
2012
2016
  variant: o ? Ie.TERTIARY_PURPLE : Ie.TEXT,
2013
2017
  children: [
2014
- /* @__PURE__ */ f(dr, { size: "sm" }),
2018
+ /* @__PURE__ */ f(pr, { size: "sm" }),
2015
2019
  !o && r
2016
2020
  ]
2017
2021
  }
2018
2022
  ) : s ? /* @__PURE__ */ D(re, { children: [
2019
2023
  s,
2020
- /* @__PURE__ */ f(Rt, { asChild: !0, children: /* @__PURE__ */ f(ve, { children: u }) })
2021
- ] }) : /* @__PURE__ */ f(ve, { asChild: !0, children: /* @__PURE__ */ f(
2024
+ /* @__PURE__ */ f(xt, { asChild: !0, children: /* @__PURE__ */ f(he, { children: u }) })
2025
+ ] }) : /* @__PURE__ */ f(he, { asChild: !0, children: /* @__PURE__ */ f(
2022
2026
  Be,
2023
2027
  {
2024
2028
  "data-testid": `${e}-title`,
@@ -2028,24 +2032,24 @@ const Rt = ({ asChild: e, children: t, ...r }) => /* @__PURE__ */ f(Aa, { asChil
2028
2032
  children: u
2029
2033
  }
2030
2034
  ) }) }),
2031
- /* @__PURE__ */ f("div", { className: Z(`${U}__right`), children: /* @__PURE__ */ f(yo, { asChild: !0, children: /* @__PURE__ */ f(
2032
- Fe,
2035
+ /* @__PURE__ */ f("div", { className: Z(`${B}__right`), children: /* @__PURE__ */ f(Eo, { asChild: !0, children: /* @__PURE__ */ f(
2036
+ je,
2033
2037
  {
2034
2038
  "aria-label": n,
2035
- className: Z(`${U}__close-button`),
2039
+ className: Z(`${B}__close-button`),
2036
2040
  iconOnly: !0,
2037
2041
  size: "sm",
2038
2042
  variant: Ie.TERTIARY_PURPLE,
2039
- children: /* @__PURE__ */ f(fr, { size: "sm" })
2043
+ children: /* @__PURE__ */ f(hr, { size: "sm" })
2040
2044
  }
2041
2045
  ) }) })
2042
2046
  ]
2043
2047
  }
2044
2048
  ),
2045
- v && (s ? /* @__PURE__ */ D(re, { children: [
2049
+ h && (s ? /* @__PURE__ */ D(re, { children: [
2046
2050
  s,
2047
- /* @__PURE__ */ f(Rt, { asChild: !0, children: /* @__PURE__ */ f(ve, { children: u }) })
2048
- ] }) : /* @__PURE__ */ f(ve, { asChild: !0, children: /* @__PURE__ */ f(
2051
+ /* @__PURE__ */ f(xt, { asChild: !0, children: /* @__PURE__ */ f(he, { children: u }) })
2052
+ ] }) : /* @__PURE__ */ f(he, { asChild: !0, children: /* @__PURE__ */ f(
2049
2053
  Be,
2050
2054
  {
2051
2055
  "data-testid": `${e}-title-with-back-button`,
@@ -2058,7 +2062,7 @@ const Rt = ({ asChild: e, children: t, ...r }) => /* @__PURE__ */ f(Aa, { asChil
2058
2062
  ] });
2059
2063
  }
2060
2064
  );
2061
- vr.displayName = "DrawerHeader";
2065
+ mr.displayName = "DrawerHeader";
2062
2066
  var Ta = c.createContext(void 0);
2063
2067
  function Oa(e) {
2064
2068
  const t = c.useContext(Ta);
@@ -2070,7 +2074,7 @@ function La(e, [t, r]) {
2070
2074
  function $a(e, t) {
2071
2075
  return c.useReducer((r, o) => t[r][o] ?? r, e);
2072
2076
  }
2073
- var qe = "ScrollArea", [hr] = Dt(qe), [Ma, M] = hr(qe), mr = c.forwardRef(
2077
+ var qe = "ScrollArea", [gr] = Tt(qe), [Ma, M] = gr(qe), _r = c.forwardRef(
2074
2078
  (e, t) => {
2075
2079
  const {
2076
2080
  __scopeScrollArea: r,
@@ -2078,33 +2082,33 @@ var qe = "ScrollArea", [hr] = Dt(qe), [Ma, M] = hr(qe), mr = c.forwardRef(
2078
2082
  dir: a,
2079
2083
  scrollHideDelay: n = 600,
2080
2084
  ...s
2081
- } = e, [i, u] = c.useState(null), [l, d] = c.useState(null), [p, v] = c.useState(null), [m, _] = c.useState(null), [h, g] = c.useState(null), [b, w] = c.useState(0), [E, y] = c.useState(0), [C, x] = c.useState(!1), [S, N] = c.useState(!1), P = L(t, (j) => u(j)), R = Oa(a);
2085
+ } = e, [i, u] = c.useState(null), [l, d] = c.useState(null), [p, h] = c.useState(null), [m, _] = c.useState(null), [v, g] = c.useState(null), [b, y] = c.useState(0), [E, w] = c.useState(0), [C, R] = c.useState(!1), [S, x] = c.useState(!1), P = L(t, (F) => u(F)), N = Oa(a);
2082
2086
  return /* @__PURE__ */ f(
2083
2087
  Ma,
2084
2088
  {
2085
2089
  scope: r,
2086
2090
  type: o,
2087
- dir: R,
2091
+ dir: N,
2088
2092
  scrollHideDelay: n,
2089
2093
  scrollArea: i,
2090
2094
  viewport: l,
2091
2095
  onViewportChange: d,
2092
2096
  content: p,
2093
- onContentChange: v,
2097
+ onContentChange: h,
2094
2098
  scrollbarX: m,
2095
2099
  onScrollbarXChange: _,
2096
2100
  scrollbarXEnabled: C,
2097
- onScrollbarXEnabledChange: x,
2098
- scrollbarY: h,
2101
+ onScrollbarXEnabledChange: R,
2102
+ scrollbarY: v,
2099
2103
  onScrollbarYChange: g,
2100
2104
  scrollbarYEnabled: S,
2101
- onScrollbarYEnabledChange: N,
2102
- onCornerWidthChange: w,
2103
- onCornerHeightChange: y,
2105
+ onScrollbarYEnabledChange: x,
2106
+ onCornerWidthChange: y,
2107
+ onCornerHeightChange: w,
2104
2108
  children: /* @__PURE__ */ f(
2105
2109
  T.div,
2106
2110
  {
2107
- dir: R,
2111
+ dir: N,
2108
2112
  ...s,
2109
2113
  ref: P,
2110
2114
  style: {
@@ -2120,10 +2124,10 @@ var qe = "ScrollArea", [hr] = Dt(qe), [Ma, M] = hr(qe), mr = c.forwardRef(
2120
2124
  );
2121
2125
  }
2122
2126
  );
2123
- mr.displayName = qe;
2124
- var gr = "ScrollAreaViewport", _r = c.forwardRef(
2127
+ _r.displayName = qe;
2128
+ var br = "ScrollAreaViewport", yr = c.forwardRef(
2125
2129
  (e, t) => {
2126
- const { __scopeScrollArea: r, children: o, nonce: a, ...n } = e, s = M(gr, r), i = c.useRef(null), u = L(t, i, s.onViewportChange);
2130
+ const { __scopeScrollArea: r, children: o, nonce: a, ...n } = e, s = M(br, r), i = c.useRef(null), u = L(t, i, s.onViewportChange);
2127
2131
  return /* @__PURE__ */ D(re, { children: [
2128
2132
  /* @__PURE__ */ f(
2129
2133
  "style",
@@ -2162,16 +2166,16 @@ var gr = "ScrollAreaViewport", _r = c.forwardRef(
2162
2166
  ] });
2163
2167
  }
2164
2168
  );
2165
- _r.displayName = gr;
2166
- var W = "ScrollAreaScrollbar", br = c.forwardRef(
2169
+ yr.displayName = br;
2170
+ var W = "ScrollAreaScrollbar", wr = c.forwardRef(
2167
2171
  (e, t) => {
2168
2172
  const { forceMount: r, ...o } = e, a = M(W, e.__scopeScrollArea), { onScrollbarXEnabledChange: n, onScrollbarYEnabledChange: s } = a, i = e.orientation === "horizontal";
2169
2173
  return c.useEffect(() => (i ? n(!0) : s(!0), () => {
2170
2174
  i ? n(!1) : s(!1);
2171
- }), [i, n, s]), a.type === "hover" ? /* @__PURE__ */ f(Ia, { ...o, ref: t, forceMount: r }) : a.type === "scroll" ? /* @__PURE__ */ f(ka, { ...o, ref: t, forceMount: r }) : a.type === "auto" ? /* @__PURE__ */ f(wr, { ...o, ref: t, forceMount: r }) : a.type === "always" ? /* @__PURE__ */ f(Ge, { ...o, ref: t }) : null;
2175
+ }), [i, n, s]), a.type === "hover" ? /* @__PURE__ */ f(Ia, { ...o, ref: t, forceMount: r }) : a.type === "scroll" ? /* @__PURE__ */ f(ka, { ...o, ref: t, forceMount: r }) : a.type === "auto" ? /* @__PURE__ */ f(Sr, { ...o, ref: t, forceMount: r }) : a.type === "always" ? /* @__PURE__ */ f(Ge, { ...o, ref: t }) : null;
2172
2176
  }
2173
2177
  );
2174
- br.displayName = W;
2178
+ wr.displayName = W;
2175
2179
  var Ia = c.forwardRef((e, t) => {
2176
2180
  const { forceMount: r, ...o } = e, a = M(W, e.__scopeScrollArea), [n, s] = c.useState(!1);
2177
2181
  return c.useEffect(() => {
@@ -2187,8 +2191,8 @@ var Ia = c.forwardRef((e, t) => {
2187
2191
  window.clearTimeout(u), i.removeEventListener("pointerenter", l), i.removeEventListener("pointerleave", d);
2188
2192
  };
2189
2193
  }
2190
- }, [a.scrollArea, a.scrollHideDelay]), /* @__PURE__ */ f(V, { present: r || n, children: /* @__PURE__ */ f(
2191
- wr,
2194
+ }, [a.scrollArea, a.scrollHideDelay]), /* @__PURE__ */ f(z, { present: r || n, children: /* @__PURE__ */ f(
2195
+ Sr,
2192
2196
  {
2193
2197
  "data-state": n ? "visible" : "hidden",
2194
2198
  ...o,
@@ -2223,13 +2227,13 @@ var Ia = c.forwardRef((e, t) => {
2223
2227
  const l = a.viewport, d = n ? "scrollLeft" : "scrollTop";
2224
2228
  if (l) {
2225
2229
  let p = l[d];
2226
- const v = () => {
2230
+ const h = () => {
2227
2231
  const m = l[d];
2228
2232
  p !== m && (u("SCROLL"), s()), p = m;
2229
2233
  };
2230
- return l.addEventListener("scroll", v), () => l.removeEventListener("scroll", v);
2234
+ return l.addEventListener("scroll", h), () => l.removeEventListener("scroll", h);
2231
2235
  }
2232
- }, [a.viewport, n, u, s]), /* @__PURE__ */ f(V, { present: r || i !== "hidden", children: /* @__PURE__ */ f(
2236
+ }, [a.viewport, n, u, s]), /* @__PURE__ */ f(z, { present: r || i !== "hidden", children: /* @__PURE__ */ f(
2233
2237
  Ge,
2234
2238
  {
2235
2239
  "data-state": i === "hidden" ? "hidden" : "visible",
@@ -2239,14 +2243,14 @@ var Ia = c.forwardRef((e, t) => {
2239
2243
  onPointerLeave: A(e.onPointerLeave, () => u("POINTER_LEAVE"))
2240
2244
  }
2241
2245
  ) });
2242
- }), wr = c.forwardRef((e, t) => {
2246
+ }), Sr = c.forwardRef((e, t) => {
2243
2247
  const r = M(W, e.__scopeScrollArea), { forceMount: o, ...a } = e, [n, s] = c.useState(!1), i = e.orientation === "horizontal", u = Pe(() => {
2244
2248
  if (r.viewport) {
2245
2249
  const l = r.viewport.offsetWidth < r.viewport.scrollWidth, d = r.viewport.offsetHeight < r.viewport.scrollHeight;
2246
2250
  s(i ? l : d);
2247
2251
  }
2248
2252
  }, 10);
2249
- return oe(r.viewport, u), oe(r.content, u), /* @__PURE__ */ f(V, { present: o || n, children: /* @__PURE__ */ f(
2253
+ return oe(r.viewport, u), oe(r.content, u), /* @__PURE__ */ f(z, { present: o || n, children: /* @__PURE__ */ f(
2250
2254
  Ge,
2251
2255
  {
2252
2256
  "data-state": n ? "visible" : "hidden",
@@ -2259,17 +2263,17 @@ var Ia = c.forwardRef((e, t) => {
2259
2263
  content: 0,
2260
2264
  viewport: 0,
2261
2265
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
2262
- }), l = Cr(i.viewport, i.content), d = {
2266
+ }), l = Rr(i.viewport, i.content), d = {
2263
2267
  ...o,
2264
2268
  sizes: i,
2265
2269
  onSizesChange: u,
2266
2270
  hasThumb: l > 0 && l < 1,
2267
- onThumbChange: (v) => n.current = v,
2271
+ onThumbChange: (h) => n.current = h,
2268
2272
  onThumbPointerUp: () => s.current = 0,
2269
- onThumbPointerDown: (v) => s.current = v
2273
+ onThumbPointerDown: (h) => s.current = h
2270
2274
  };
2271
- function p(v, m) {
2272
- return Va(v, s.current, i, m);
2275
+ function p(h, m) {
2276
+ return Va(h, s.current, i, m);
2273
2277
  }
2274
2278
  return r === "horizontal" ? /* @__PURE__ */ f(
2275
2279
  Wa,
@@ -2278,33 +2282,33 @@ var Ia = c.forwardRef((e, t) => {
2278
2282
  ref: t,
2279
2283
  onThumbPositionChange: () => {
2280
2284
  if (a.viewport && n.current) {
2281
- const v = a.viewport.scrollLeft, m = Nt(v, i, a.dir);
2285
+ const h = a.viewport.scrollLeft, m = At(h, i, a.dir);
2282
2286
  n.current.style.transform = `translate3d(${m}px, 0, 0)`;
2283
2287
  }
2284
2288
  },
2285
- onWheelScroll: (v) => {
2286
- a.viewport && (a.viewport.scrollLeft = v);
2289
+ onWheelScroll: (h) => {
2290
+ a.viewport && (a.viewport.scrollLeft = h);
2287
2291
  },
2288
- onDragScroll: (v) => {
2289
- a.viewport && (a.viewport.scrollLeft = p(v, a.dir));
2292
+ onDragScroll: (h) => {
2293
+ a.viewport && (a.viewport.scrollLeft = p(h, a.dir));
2290
2294
  }
2291
2295
  }
2292
2296
  ) : r === "vertical" ? /* @__PURE__ */ f(
2293
- ja,
2297
+ Fa,
2294
2298
  {
2295
2299
  ...d,
2296
2300
  ref: t,
2297
2301
  onThumbPositionChange: () => {
2298
2302
  if (a.viewport && n.current) {
2299
- const v = a.viewport.scrollTop, m = Nt(v, i);
2303
+ const h = a.viewport.scrollTop, m = At(h, i);
2300
2304
  n.current.style.transform = `translate3d(0, ${m}px, 0)`;
2301
2305
  }
2302
2306
  },
2303
- onWheelScroll: (v) => {
2304
- a.viewport && (a.viewport.scrollTop = v);
2307
+ onWheelScroll: (h) => {
2308
+ a.viewport && (a.viewport.scrollTop = h);
2305
2309
  },
2306
- onDragScroll: (v) => {
2307
- a.viewport && (a.viewport.scrollTop = p(v));
2310
+ onDragScroll: (h) => {
2311
+ a.viewport && (a.viewport.scrollTop = p(h));
2308
2312
  }
2309
2313
  }
2310
2314
  ) : null;
@@ -2313,7 +2317,7 @@ var Ia = c.forwardRef((e, t) => {
2313
2317
  return c.useEffect(() => {
2314
2318
  u.current && i(getComputedStyle(u.current));
2315
2319
  }, [u]), /* @__PURE__ */ f(
2316
- Sr,
2320
+ Cr,
2317
2321
  {
2318
2322
  "data-orientation": "horizontal",
2319
2323
  ...a,
@@ -2330,8 +2334,8 @@ var Ia = c.forwardRef((e, t) => {
2330
2334
  onDragScroll: (d) => e.onDragScroll(d.x),
2331
2335
  onWheelScroll: (d, p) => {
2332
2336
  if (n.viewport) {
2333
- const v = n.viewport.scrollLeft + d.deltaX;
2334
- e.onWheelScroll(v), xr(v, p) && d.preventDefault();
2337
+ const h = n.viewport.scrollLeft + d.deltaX;
2338
+ e.onWheelScroll(h), xr(h, p) && d.preventDefault();
2335
2339
  }
2336
2340
  },
2337
2341
  onResize: () => {
@@ -2340,19 +2344,19 @@ var Ia = c.forwardRef((e, t) => {
2340
2344
  viewport: n.viewport.offsetWidth,
2341
2345
  scrollbar: {
2342
2346
  size: u.current.clientWidth,
2343
- paddingStart: ye(s.paddingLeft),
2344
- paddingEnd: ye(s.paddingRight)
2347
+ paddingStart: we(s.paddingLeft),
2348
+ paddingEnd: we(s.paddingRight)
2345
2349
  }
2346
2350
  });
2347
2351
  }
2348
2352
  }
2349
2353
  );
2350
- }), ja = c.forwardRef((e, t) => {
2354
+ }), Fa = c.forwardRef((e, t) => {
2351
2355
  const { sizes: r, onSizesChange: o, ...a } = e, n = M(W, e.__scopeScrollArea), [s, i] = c.useState(), u = c.useRef(null), l = L(t, u, n.onScrollbarYChange);
2352
2356
  return c.useEffect(() => {
2353
2357
  u.current && i(getComputedStyle(u.current));
2354
2358
  }, [u]), /* @__PURE__ */ f(
2355
- Sr,
2359
+ Cr,
2356
2360
  {
2357
2361
  "data-orientation": "vertical",
2358
2362
  ...a,
@@ -2370,8 +2374,8 @@ var Ia = c.forwardRef((e, t) => {
2370
2374
  onDragScroll: (d) => e.onDragScroll(d.y),
2371
2375
  onWheelScroll: (d, p) => {
2372
2376
  if (n.viewport) {
2373
- const v = n.viewport.scrollTop + d.deltaY;
2374
- e.onWheelScroll(v), xr(v, p) && d.preventDefault();
2377
+ const h = n.viewport.scrollTop + d.deltaY;
2378
+ e.onWheelScroll(h), xr(h, p) && d.preventDefault();
2375
2379
  }
2376
2380
  },
2377
2381
  onResize: () => {
@@ -2380,14 +2384,14 @@ var Ia = c.forwardRef((e, t) => {
2380
2384
  viewport: n.viewport.offsetHeight,
2381
2385
  scrollbar: {
2382
2386
  size: u.current.clientHeight,
2383
- paddingStart: ye(s.paddingTop),
2384
- paddingEnd: ye(s.paddingBottom)
2387
+ paddingStart: we(s.paddingTop),
2388
+ paddingEnd: we(s.paddingBottom)
2385
2389
  }
2386
2390
  });
2387
2391
  }
2388
2392
  }
2389
2393
  );
2390
- }), [Fa, yr] = hr(W), Sr = c.forwardRef((e, t) => {
2394
+ }), [ja, Er] = gr(W), Cr = c.forwardRef((e, t) => {
2391
2395
  const {
2392
2396
  __scopeScrollArea: r,
2393
2397
  sizes: o,
@@ -2399,56 +2403,56 @@ var Ia = c.forwardRef((e, t) => {
2399
2403
  onDragScroll: l,
2400
2404
  onWheelScroll: d,
2401
2405
  onResize: p,
2402
- ...v
2403
- } = e, m = M(W, r), [_, h] = c.useState(null), g = L(t, (P) => h(P)), b = c.useRef(null), w = c.useRef(""), E = m.viewport, y = o.content - o.viewport, C = $(d), x = $(u), S = Pe(p, 10);
2404
- function N(P) {
2406
+ ...h
2407
+ } = e, m = M(W, r), [_, v] = c.useState(null), g = L(t, (P) => v(P)), b = c.useRef(null), y = c.useRef(""), E = m.viewport, w = o.content - o.viewport, C = $(d), R = $(u), S = Pe(p, 10);
2408
+ function x(P) {
2405
2409
  if (b.current) {
2406
- const R = P.clientX - b.current.left, j = P.clientY - b.current.top;
2407
- l({ x: R, y: j });
2410
+ const N = P.clientX - b.current.left, F = P.clientY - b.current.top;
2411
+ l({ x: N, y: F });
2408
2412
  }
2409
2413
  }
2410
2414
  return c.useEffect(() => {
2411
- const P = (R) => {
2412
- const j = R.target;
2413
- (_ == null ? void 0 : _.contains(j)) && C(R, y);
2415
+ const P = (N) => {
2416
+ const F = N.target;
2417
+ (_ == null ? void 0 : _.contains(F)) && C(N, w);
2414
2418
  };
2415
2419
  return document.addEventListener("wheel", P, { passive: !1 }), () => document.removeEventListener("wheel", P, { passive: !1 });
2416
- }, [E, _, y, C]), c.useEffect(x, [o, x]), oe(_, S), oe(m.content, S), /* @__PURE__ */ f(
2417
- Fa,
2420
+ }, [E, _, w, C]), c.useEffect(R, [o, R]), oe(_, S), oe(m.content, S), /* @__PURE__ */ f(
2421
+ ja,
2418
2422
  {
2419
2423
  scope: r,
2420
2424
  scrollbar: _,
2421
2425
  hasThumb: a,
2422
2426
  onThumbChange: $(n),
2423
2427
  onThumbPointerUp: $(s),
2424
- onThumbPositionChange: x,
2428
+ onThumbPositionChange: R,
2425
2429
  onThumbPointerDown: $(i),
2426
2430
  children: /* @__PURE__ */ f(
2427
2431
  T.div,
2428
2432
  {
2429
- ...v,
2433
+ ...h,
2430
2434
  ref: g,
2431
- style: { position: "absolute", ...v.style },
2435
+ style: { position: "absolute", ...h.style },
2432
2436
  onPointerDown: A(e.onPointerDown, (P) => {
2433
- P.button === 0 && (P.target.setPointerCapture(P.pointerId), b.current = _.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), N(P));
2437
+ P.button === 0 && (P.target.setPointerCapture(P.pointerId), b.current = _.getBoundingClientRect(), y.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), x(P));
2434
2438
  }),
2435
- onPointerMove: A(e.onPointerMove, N),
2439
+ onPointerMove: A(e.onPointerMove, x),
2436
2440
  onPointerUp: A(e.onPointerUp, (P) => {
2437
- const R = P.target;
2438
- R.hasPointerCapture(P.pointerId) && R.releasePointerCapture(P.pointerId), document.body.style.webkitUserSelect = w.current, m.viewport && (m.viewport.style.scrollBehavior = ""), b.current = null;
2441
+ const N = P.target;
2442
+ N.hasPointerCapture(P.pointerId) && N.releasePointerCapture(P.pointerId), document.body.style.webkitUserSelect = y.current, m.viewport && (m.viewport.style.scrollBehavior = ""), b.current = null;
2439
2443
  })
2440
2444
  }
2441
2445
  )
2442
2446
  }
2443
2447
  );
2444
- }), we = "ScrollAreaThumb", Er = c.forwardRef(
2448
+ }), ye = "ScrollAreaThumb", Pr = c.forwardRef(
2445
2449
  (e, t) => {
2446
- const { forceMount: r, ...o } = e, a = yr(we, e.__scopeScrollArea);
2447
- return /* @__PURE__ */ f(V, { present: r || a.hasThumb, children: /* @__PURE__ */ f(Ua, { ref: t, ...o }) });
2450
+ const { forceMount: r, ...o } = e, a = Er(ye, e.__scopeScrollArea);
2451
+ return /* @__PURE__ */ f(z, { present: r || a.hasThumb, children: /* @__PURE__ */ f(Ua, { ref: t, ...o }) });
2448
2452
  }
2449
2453
  ), Ua = c.forwardRef(
2450
2454
  (e, t) => {
2451
- const { __scopeScrollArea: r, style: o, ...a } = e, n = M(we, r), s = yr(we, r), { onThumbPositionChange: i } = s, u = L(
2455
+ const { __scopeScrollArea: r, style: o, ...a } = e, n = M(ye, r), s = Er(ye, r), { onThumbPositionChange: i } = s, u = L(
2452
2456
  t,
2453
2457
  (p) => s.onThumbChange(p)
2454
2458
  ), l = c.useRef(void 0), d = Pe(() => {
@@ -2457,13 +2461,13 @@ var Ia = c.forwardRef((e, t) => {
2457
2461
  return c.useEffect(() => {
2458
2462
  const p = n.viewport;
2459
2463
  if (p) {
2460
- const v = () => {
2464
+ const h = () => {
2461
2465
  if (d(), !l.current) {
2462
2466
  const m = za(p, i);
2463
2467
  l.current = m, i();
2464
2468
  }
2465
2469
  };
2466
- return i(), p.addEventListener("scroll", v), () => p.removeEventListener("scroll", v);
2470
+ return i(), p.addEventListener("scroll", h), () => p.removeEventListener("scroll", h);
2467
2471
  }
2468
2472
  }, [n.viewport, d, i]), /* @__PURE__ */ f(
2469
2473
  T.div,
@@ -2477,15 +2481,15 @@ var Ia = c.forwardRef((e, t) => {
2477
2481
  ...o
2478
2482
  },
2479
2483
  onPointerDownCapture: A(e.onPointerDownCapture, (p) => {
2480
- const m = p.target.getBoundingClientRect(), _ = p.clientX - m.left, h = p.clientY - m.top;
2481
- s.onThumbPointerDown({ x: _, y: h });
2484
+ const m = p.target.getBoundingClientRect(), _ = p.clientX - m.left, v = p.clientY - m.top;
2485
+ s.onThumbPointerDown({ x: _, y: v });
2482
2486
  }),
2483
2487
  onPointerUp: A(e.onPointerUp, s.onThumbPointerUp)
2484
2488
  }
2485
2489
  );
2486
2490
  }
2487
2491
  );
2488
- Er.displayName = we;
2492
+ Pr.displayName = ye;
2489
2493
  var Ke = "ScrollAreaCorner", Ba = c.forwardRef(
2490
2494
  (e, t) => {
2491
2495
  const r = M(Ke, e.__scopeScrollArea), o = !!(r.scrollbarX && r.scrollbarY);
@@ -2520,26 +2524,26 @@ var Ha = c.forwardRef((e, t) => {
2520
2524
  }
2521
2525
  ) : null;
2522
2526
  });
2523
- function ye(e) {
2527
+ function we(e) {
2524
2528
  return e ? parseInt(e, 10) : 0;
2525
2529
  }
2526
- function Cr(e, t) {
2530
+ function Rr(e, t) {
2527
2531
  const r = e / t;
2528
2532
  return isNaN(r) ? 0 : r;
2529
2533
  }
2530
2534
  function Ce(e) {
2531
- const t = Cr(e.viewport, e.content), r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = (e.scrollbar.size - r) * t;
2535
+ const t = Rr(e.viewport, e.content), r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = (e.scrollbar.size - r) * t;
2532
2536
  return Math.max(o, 18);
2533
2537
  }
2534
2538
  function Va(e, t, r, o = "ltr") {
2535
2539
  const a = Ce(r), n = a / 2, s = t || n, i = a - s, u = r.scrollbar.paddingStart + s, l = r.scrollbar.size - r.scrollbar.paddingEnd - i, d = r.content - r.viewport, p = o === "ltr" ? [0, d] : [d * -1, 0];
2536
- return Pr([u, l], p)(e);
2540
+ return Nr([u, l], p)(e);
2537
2541
  }
2538
- function Nt(e, t, r = "ltr") {
2542
+ function At(e, t, r = "ltr") {
2539
2543
  const o = Ce(t), a = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, n = t.scrollbar.size - a, s = t.content - t.viewport, i = n - o, u = r === "ltr" ? [0, s] : [s * -1, 0], l = La(e, u);
2540
- return Pr([0, s], [0, i])(l);
2544
+ return Nr([0, s], [0, i])(l);
2541
2545
  }
2542
- function Pr(e, t) {
2546
+ function Nr(e, t) {
2543
2547
  return (r) => {
2544
2548
  if (e[0] === e[1] || t[0] === t[1]) return t[0];
2545
2549
  const o = (t[1] - t[0]) / (e[1] - e[0]);
@@ -2577,14 +2581,14 @@ function oe(e, t) {
2577
2581
  }
2578
2582
  }, [e, r]);
2579
2583
  }
2580
- var Ya = mr, Xa = _r, qa = br, Ga = Er;
2584
+ var Ya = _r, Xa = yr, qa = wr, Ga = Pr;
2581
2585
  const Ka = {
2582
2586
  "purpur-drawer-scroll-area__root": "_purpur-drawer-scroll-area__root_1hyos_1",
2583
2587
  "purpur-drawer-scroll-area__root--fit-to-content": "_purpur-drawer-scroll-area__root--fit-to-content_1hyos_4",
2584
2588
  "purpur-drawer-scroll-area__viewport": "_purpur-drawer-scroll-area__viewport_1hyos_10",
2585
2589
  "purpur-drawer-scroll-area__scrollbar": "_purpur-drawer-scroll-area__scrollbar_1hyos_14",
2586
2590
  "purpur-drawer-scroll-area__thumb": "_purpur-drawer-scroll-area__thumb_1hyos_25"
2587
- }, se = ae.bind(Ka), Q = "purpur-drawer-scroll-area", He = H(
2591
+ }, se = ae.bind(Ka), Q = "purpur-drawer-scroll-area", He = V(
2588
2592
  ({
2589
2593
  ["data-testid"]: e = "purpur-drawer-scroll-area",
2590
2594
  children: t,
@@ -2615,7 +2619,7 @@ const Ka = {
2615
2619
  }
2616
2620
  );
2617
2621
  He.displayName = "DrawerScrollArea";
2618
- const J = ae.bind(Io), O = "purpur-drawer-frame", Rr = H(
2622
+ const J = ae.bind(Wo), O = "purpur-drawer-frame", Ar = V(
2619
2623
  ({
2620
2624
  ["data-testid"]: e = "purpur-drawer-frame",
2621
2625
  backButton: t,
@@ -2629,15 +2633,15 @@ const J = ae.bind(Io), O = "purpur-drawer-frame", Rr = H(
2629
2633
  headerContent: l,
2630
2634
  onBackButtonClick: d,
2631
2635
  onSwipeStart: p,
2632
- onSwipeMove: v,
2636
+ onSwipeMove: h,
2633
2637
  onSwipeCancel: m,
2634
2638
  onSwipeEnd: _,
2635
- title: h,
2639
+ title: v,
2636
2640
  stickyFooter: g,
2637
2641
  position: b = "right",
2638
- ...w
2642
+ ...y
2639
2643
  }, E) => {
2640
- const y = !!(t && r && d), C = J([
2644
+ const w = !!(t && r && d), C = J([
2641
2645
  n,
2642
2646
  O,
2643
2647
  {
@@ -2645,16 +2649,16 @@ const J = ae.bind(Io), O = "purpur-drawer-frame", Rr = H(
2645
2649
  [`${O}--sticky-footer`]: g,
2646
2650
  [`${O}--left`]: b === "left",
2647
2651
  [`${O}--right`]: b === "right",
2648
- [`${O}--without-back-button`]: !y,
2649
- [`${O}--with-back-button`]: y
2652
+ [`${O}--without-back-button`]: !w,
2653
+ [`${O}--with-back-button`]: w
2650
2654
  }
2651
2655
  ]);
2652
- return /* @__PURE__ */ D("div", { className: C, "data-testid": e, ref: E, ...w, children: [
2656
+ return /* @__PURE__ */ D("div", { className: C, "data-testid": e, ref: E, ...y, children: [
2653
2657
  /* @__PURE__ */ f(
2654
- ur,
2658
+ dr,
2655
2659
  {
2656
2660
  onSwipeStart: p,
2657
- onSwipeMove: v,
2661
+ onSwipeMove: h,
2658
2662
  onSwipeCancel: m,
2659
2663
  onSwipeEnd: _
2660
2664
  }
@@ -2666,9 +2670,9 @@ const J = ae.bind(Io), O = "purpur-drawer-frame", Rr = H(
2666
2670
  variant: "header",
2667
2671
  stickyFooter: g,
2668
2672
  children: /* @__PURE__ */ f(
2669
- vr,
2673
+ mr,
2670
2674
  {
2671
- title: h,
2675
+ title: v,
2672
2676
  headerContent: l,
2673
2677
  backButtonOnlyIcon: o,
2674
2678
  backButton: t,
@@ -2731,7 +2735,7 @@ const J = ae.bind(Io), O = "purpur-drawer-frame", Rr = H(
2731
2735
  ] });
2732
2736
  }
2733
2737
  );
2734
- Rr.displayName = "DrawerFrame";
2738
+ Ar.displayName = "DrawerFrame";
2735
2739
  const Za = (e, t) => ({
2736
2740
  onSwipeStart: () => {
2737
2741
  e.current && e.current.setAttribute("data-swipe", "start");
@@ -2751,7 +2755,7 @@ const Za = (e, t) => ({
2751
2755
  const { y: i } = s.delta;
2752
2756
  e.current.setAttribute("data-swipe", "end"), e.current.style.removeProperty("--purpur-drawer-swipe-move-y"), e.current.style.setProperty("--purpur-drawer-swipe-end-y", `${i}px`), t == null || t(!1);
2753
2757
  }
2754
- }), ce = ae.bind(Lo), Y = "purpur-drawer-content", Nr = H(
2758
+ }), ce = ae.bind(Mo), Y = "purpur-drawer-content", Dr = V(
2755
2759
  ({
2756
2760
  ["data-testid"]: e = "purpur-drawer-content",
2757
2761
  backButton: t = !1,
@@ -2765,53 +2769,53 @@ const Za = (e, t) => ({
2765
2769
  fitToContent: l = !1,
2766
2770
  footerContent: d,
2767
2771
  headerContent: p,
2768
- onBackButtonClick: v,
2772
+ onBackButtonClick: h,
2769
2773
  stickyFooter: m = !1,
2770
2774
  title: _,
2771
- zIndex: h,
2775
+ zIndex: v,
2772
2776
  position: g = "right",
2773
2777
  ...b
2774
- }, w) => {
2778
+ }, y) => {
2775
2779
  const E = ce([
2776
2780
  s,
2777
2781
  Y,
2778
2782
  { [`${Y}--fit-to-content`]: l },
2779
2783
  { [`${Y}--left`]: g === "left" },
2780
2784
  { [`${Y}--right`]: g === "right" }
2781
- ]), y = et(null), C = et(null), x = (F) => {
2782
- C.current = F, typeof w == "function" ? w(F) : w && (w.current = F);
2783
- }, S = Lr(lr), { onSwipeStart: N, onSwipeMove: P, onSwipeCancel: R, onSwipeEnd: j } = Za(
2785
+ ]), w = et(null), C = et(null), R = (j) => {
2786
+ C.current = j, typeof y == "function" ? y(j) : y && (y.current = j);
2787
+ }, S = Mr(ur), { onSwipeStart: x, onSwipeMove: P, onSwipeCancel: N, onSwipeEnd: F } = Za(
2784
2788
  C,
2785
2789
  S
2786
- ), Qe = (F) => {
2787
- u && F.preventDefault();
2788
- }, Dr = () => {
2789
- const F = y.current;
2790
- if (F) {
2791
- const Je = F.querySelector("h2");
2790
+ ), Qe = (j) => {
2791
+ u && j.preventDefault();
2792
+ }, Or = () => {
2793
+ const j = w.current;
2794
+ if (j) {
2795
+ const Je = j.querySelector("h2");
2792
2796
  Je && setTimeout(() => {
2793
2797
  Je.focus();
2794
2798
  });
2795
2799
  }
2796
2800
  };
2797
- return /* @__PURE__ */ f(go, { children: /* @__PURE__ */ f(
2798
- _o,
2801
+ return /* @__PURE__ */ f(bo, { children: /* @__PURE__ */ f(
2802
+ yo,
2799
2803
  {
2800
2804
  className: ce("purpur-drawer-overlay"),
2801
- style: h ? { zIndex: h } : void 0,
2805
+ style: v ? { zIndex: v } : void 0,
2802
2806
  "data-testid": `${e}-overlay`,
2803
2807
  children: /* @__PURE__ */ f(
2804
- bo,
2808
+ wo,
2805
2809
  {
2806
2810
  onPointerDownOutside: Qe,
2807
- onOpenAutoFocus: Dr,
2811
+ onOpenAutoFocus: Or,
2808
2812
  className: E,
2809
2813
  "data-testid": e,
2810
- ref: x,
2814
+ ref: R,
2811
2815
  ...!a && { "aria-describedby": void 0 },
2812
2816
  ...b,
2813
2817
  children: /* @__PURE__ */ f(
2814
- Rr,
2818
+ Ar,
2815
2819
  {
2816
2820
  backButton: t,
2817
2821
  backButtonText: r,
@@ -2821,18 +2825,18 @@ const Za = (e, t) => ({
2821
2825
  fitToContent: l,
2822
2826
  footerContent: d,
2823
2827
  headerContent: p,
2824
- ref: y,
2825
- onBackButtonClick: v,
2826
- onSwipeStart: N,
2828
+ ref: w,
2829
+ onBackButtonClick: h,
2830
+ onSwipeStart: x,
2827
2831
  onSwipeMove: P,
2828
- onSwipeCancel: R,
2829
- onSwipeEnd: j,
2832
+ onSwipeCancel: N,
2833
+ onSwipeEnd: F,
2830
2834
  stickyFooter: m,
2831
2835
  title: _,
2832
2836
  position: g,
2833
2837
  children: a ? /* @__PURE__ */ D("div", { className: ce(`${Y}__content-container`), children: [
2834
2838
  /* @__PURE__ */ f(
2835
- wo,
2839
+ So,
2836
2840
  {
2837
2841
  className: ce(`${Y}__description`),
2838
2842
  "data-testid": `${e}-description`,
@@ -2849,11 +2853,11 @@ const Za = (e, t) => ({
2849
2853
  ) });
2850
2854
  }
2851
2855
  );
2852
- Nr.displayName = "DrawerContent";
2853
- const Ar = H(
2854
- ({ ["data-testid"]: e = "purpur-drawer-trigger", children: t, ...r }, o) => /* @__PURE__ */ f(mo, { asChild: !0, "data-testid": e, ref: o, ...r, children: t })
2856
+ Dr.displayName = "DrawerContent";
2857
+ const Tr = V(
2858
+ ({ ["data-testid"]: e = "purpur-drawer-trigger", children: t, ...r }, o) => /* @__PURE__ */ f(_o, { asChild: !0, "data-testid": e, ref: o, ...r, children: t })
2855
2859
  );
2856
- Ar.displayName = "DrawerTrigger";
2860
+ Tr.displayName = "DrawerTrigger";
2857
2861
  const Ze = ({
2858
2862
  ["data-testid"]: e = "purpur-drawer",
2859
2863
  children: t,
@@ -2865,12 +2869,12 @@ const Ze = ({
2865
2869
  const [s, i] = ke.useState(a), u = (l) => {
2866
2870
  i(l), o == null || o(l);
2867
2871
  };
2868
- return $r(() => {
2872
+ return Ir(() => {
2869
2873
  i(a);
2870
- }, [a]), /* @__PURE__ */ f(lr.Provider, { value: u, children: /* @__PURE__ */ f("div", { className: r, "data-testid": e, ...n, children: /* @__PURE__ */ f(ho, { open: s, onOpenChange: u, children: t }) }) });
2874
+ }, [a]), /* @__PURE__ */ f(ur.Provider, { value: u, children: /* @__PURE__ */ f("div", { className: r, "data-testid": e, ...n, children: /* @__PURE__ */ f(go, { open: s, onOpenChange: u, children: t }) }) });
2871
2875
  };
2872
- Ze.Trigger = Ar;
2873
- Ze.Content = Nr;
2876
+ Ze.Trigger = Tr;
2877
+ Ze.Content = Dr;
2874
2878
  Ze.displayName = "Drawer";
2875
2879
  export {
2876
2880
  Ze as Drawer