@purpurds/drawer 8.3.1 → 8.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/drawer.es.js CHANGED
@@ -1,74 +1,74 @@
1
- import { jsx as f, jsxs as D, Fragment as te } from "react/jsx-runtime";
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 At, createContext as Dt, forwardRef as B, useRef as Tt, useContext as Ot, useEffect as Lt } from "react";
4
- import * as $t from "react-dom";
5
- import Mt from "react-dom";
6
- function A(e, r, { checkForDefaultPrevented: t = !0 } = {}) {
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
+ function A(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
7
7
  return function(a) {
8
- if (e == null || e(a), t === !1 || !a.defaultPrevented)
9
- return r == null ? void 0 : r(a);
8
+ if (e == null || e(a), r === !1 || !a.defaultPrevented)
9
+ return t == null ? void 0 : t(a);
10
10
  };
11
11
  }
12
- function er(e, r) {
12
+ function tt(e, t) {
13
13
  if (typeof e == "function")
14
- return e(r);
15
- e != null && (e.current = r);
14
+ return e(t);
15
+ e != null && (e.current = t);
16
16
  }
17
- function Nr(...e) {
18
- return (r) => {
19
- let t = !1;
17
+ function Dt(...e) {
18
+ return (t) => {
19
+ let r = !1;
20
20
  const o = e.map((a) => {
21
- const n = er(a, r);
22
- return !t && typeof n == "function" && (t = !0), n;
21
+ const n = tt(a, t);
22
+ return !r && typeof n == "function" && (r = !0), n;
23
23
  });
24
- if (t)
24
+ if (r)
25
25
  return () => {
26
26
  for (let a = 0; a < o.length; a++) {
27
27
  const n = o[a];
28
- typeof n == "function" ? n() : er(e[a], null);
28
+ typeof n == "function" ? n() : tt(e[a], null);
29
29
  }
30
30
  };
31
31
  };
32
32
  }
33
- function O(...e) {
34
- return c.useCallback(Nr(...e), e);
33
+ function L(...e) {
34
+ return c.useCallback(Dt(...e), e);
35
35
  }
36
- function It(e, r) {
37
- const t = c.createContext(r), o = (n) => {
36
+ function Fr(e, t) {
37
+ const r = c.createContext(t), o = (n) => {
38
38
  const { children: s, ...i } = n, u = c.useMemo(() => i, Object.values(i));
39
- return /* @__PURE__ */ f(t.Provider, { value: u, children: s });
39
+ return /* @__PURE__ */ f(r.Provider, { value: u, children: s });
40
40
  };
41
41
  o.displayName = e + "Provider";
42
42
  function a(n) {
43
- const s = c.useContext(t);
43
+ const s = c.useContext(r);
44
44
  if (s) return s;
45
- if (r !== void 0) return r;
45
+ if (t !== void 0) return t;
46
46
  throw new Error(`\`${n}\` must be used within \`${e}\``);
47
47
  }
48
48
  return [o, a];
49
49
  }
50
- function Ar(e, r = []) {
51
- let t = [];
50
+ function Tt(e, t = []) {
51
+ let r = [];
52
52
  function o(n, s) {
53
- const i = c.createContext(s), u = t.length;
54
- t = [...t, s];
53
+ const i = c.createContext(s), u = r.length;
54
+ r = [...r, s];
55
55
  const l = (p) => {
56
- var _;
57
- const { scope: h, children: m, ...w } = p, v = ((_ = h == null ? void 0 : h[e]) == null ? void 0 : _[u]) || i, g = c.useMemo(() => w, Object.values(w));
56
+ var b;
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
58
  return /* @__PURE__ */ f(v.Provider, { value: g, children: m });
59
59
  };
60
60
  l.displayName = n + "Provider";
61
61
  function d(p, h) {
62
62
  var v;
63
- const m = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[u]) || i, w = c.useContext(m);
64
- if (w) return w;
63
+ const m = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[u]) || i, _ = c.useContext(m);
64
+ if (_) return _;
65
65
  if (s !== void 0) return s;
66
66
  throw new Error(`\`${p}\` must be used within \`${n}\``);
67
67
  }
68
68
  return [l, d];
69
69
  }
70
70
  const a = () => {
71
- const n = t.map((s) => c.createContext(s));
71
+ const n = r.map((s) => c.createContext(s));
72
72
  return function(i) {
73
73
  const u = (i == null ? void 0 : i[e]) || n;
74
74
  return c.useMemo(
@@ -77,12 +77,12 @@ function Ar(e, r = []) {
77
77
  );
78
78
  };
79
79
  };
80
- return a.scopeName = e, [o, kt(a, ...r)];
80
+ return a.scopeName = e, [o, jr(a, ...t)];
81
81
  }
82
- function kt(...e) {
83
- const r = e[0];
84
- if (e.length === 1) return r;
85
- const t = () => {
82
+ function jr(...e) {
83
+ const t = e[0];
84
+ if (e.length === 1) return t;
85
+ const r = () => {
86
86
  const o = e.map((a) => ({
87
87
  useScope: a(),
88
88
  scopeName: a.scopeName
@@ -92,31 +92,31 @@ function kt(...e) {
92
92
  const p = u(n)[`__scope${l}`];
93
93
  return { ...i, ...p };
94
94
  }, {});
95
- return c.useMemo(() => ({ [`__scope${r.scopeName}`]: s }), [s]);
95
+ return c.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
96
96
  };
97
97
  };
98
- return t.scopeName = r.scopeName, t;
98
+ return r.scopeName = t.scopeName, r;
99
99
  }
100
100
  var ne = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
101
- }, Wt = c[" useId ".trim().toString()] || (() => {
102
- }), Ft = 0;
103
- function xe(e) {
104
- const [r, t] = c.useState(Wt());
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
- t((o) => o ?? String(Ft++));
107
- }, [e]), e || (r ? `radix-${r}` : "");
106
+ r((o) => o ?? String(Br++));
107
+ }, [e]), e || (t ? `radix-${t}` : "");
108
108
  }
109
- var Ut = c[" useInsertionEffect ".trim().toString()] || ne;
110
- function Ht({
109
+ var Hr = c[" useInsertionEffect ".trim().toString()] || ne;
110
+ function Vr({
111
111
  prop: e,
112
- defaultProp: r,
113
- onChange: t = () => {
112
+ defaultProp: t,
113
+ onChange: r = () => {
114
114
  },
115
115
  caller: o
116
116
  }) {
117
- const [a, n, s] = Bt({
118
- defaultProp: r,
119
- onChange: t
117
+ const [a, n, s] = zr({
118
+ defaultProp: t,
119
+ onChange: r
120
120
  }), i = e !== void 0, u = i ? e : a;
121
121
  {
122
122
  const d = c.useRef(e !== void 0);
@@ -131,7 +131,7 @@ function Ht({
131
131
  (d) => {
132
132
  var p;
133
133
  if (i) {
134
- const h = jt(d) ? d(e) : d;
134
+ const h = Yr(d) ? d(e) : d;
135
135
  h !== e && ((p = s.current) == null || p.call(s, h));
136
136
  } else
137
137
  n(d);
@@ -140,66 +140,66 @@ function Ht({
140
140
  );
141
141
  return [u, l];
142
142
  }
143
- function Bt({
143
+ function zr({
144
144
  defaultProp: e,
145
- onChange: r
145
+ onChange: t
146
146
  }) {
147
- const [t, o] = c.useState(e), a = c.useRef(t), n = c.useRef(r);
148
- return Ut(() => {
149
- n.current = r;
150
- }, [r]), c.useEffect(() => {
147
+ const [r, o] = c.useState(e), a = c.useRef(r), n = c.useRef(t);
148
+ return Hr(() => {
149
+ n.current = t;
150
+ }, [t]), c.useEffect(() => {
151
151
  var s;
152
- a.current !== t && ((s = n.current) == null || s.call(n, t), a.current = t);
153
- }, [t, a]), [t, o, n];
152
+ a.current !== r && ((s = n.current) == null || s.call(n, r), a.current = r);
153
+ }, [r, a]), [r, o, n];
154
154
  }
155
- function jt(e) {
155
+ function Yr(e) {
156
156
  return typeof e == "function";
157
157
  }
158
158
  // @__NO_SIDE_EFFECTS__
159
- function Dr(e) {
160
- const r = /* @__PURE__ */ Vt(e), t = c.forwardRef((o, a) => {
161
- const { children: n, ...s } = o, i = c.Children.toArray(n), u = i.find(Yt);
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
- return /* @__PURE__ */ f(r, { ...s, ref: a, children: c.isValidElement(l) ? c.cloneElement(l, void 0, d) : null });
164
+ return /* @__PURE__ */ f(t, { ...s, ref: a, children: c.isValidElement(l) ? c.cloneElement(l, void 0, d) : null });
165
165
  }
166
- return /* @__PURE__ */ f(r, { ...s, ref: a, children: n });
166
+ return /* @__PURE__ */ f(t, { ...s, ref: a, children: n });
167
167
  });
168
- return t.displayName = `${e}.Slot`, t;
168
+ return r.displayName = `${e}.Slot`, r;
169
169
  }
170
170
  // @__NO_SIDE_EFFECTS__
171
- function Vt(e) {
172
- const r = c.forwardRef((t, o) => {
173
- const { children: a, ...n } = t;
171
+ function Xr(e) {
172
+ const t = c.forwardRef((r, o) => {
173
+ const { children: a, ...n } = r;
174
174
  if (c.isValidElement(a)) {
175
- const s = qt(a), i = Xt(n, a.props);
176
- return a.type !== c.Fragment && (i.ref = o ? Nr(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
- return r.displayName = `${e}.SlotClone`, r;
180
+ return t.displayName = `${e}.SlotClone`, t;
181
181
  }
182
- var zt = Symbol("radix.slottable");
183
- function Yt(e) {
184
- return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === zt;
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 Xt(e, r) {
187
- const t = { ...r };
188
- for (const o in r) {
189
- const a = e[o], n = r[o];
190
- /^on[A-Z]/.test(o) ? a && n ? t[o] = (...i) => {
186
+ function Kr(e, t) {
187
+ const r = { ...t };
188
+ for (const o in t) {
189
+ const a = e[o], n = t[o];
190
+ /^on[A-Z]/.test(o) ? a && n ? r[o] = (...i) => {
191
191
  const u = n(...i);
192
192
  return a(...i), u;
193
- } : a && (t[o] = a) : o === "style" ? t[o] = { ...a, ...n } : o === "className" && (t[o] = [a, n].filter(Boolean).join(" "));
193
+ } : a && (r[o] = a) : o === "style" ? r[o] = { ...a, ...n } : o === "className" && (r[o] = [a, n].filter(Boolean).join(" "));
194
194
  }
195
- return { ...e, ...t };
195
+ return { ...e, ...r };
196
196
  }
197
- function qt(e) {
197
+ function Zr(e) {
198
198
  var o, a;
199
- let r = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning;
200
- return t ? e.ref : (r = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
199
+ let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning;
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 Gt = [
202
+ var Qr = [
203
203
  "a",
204
204
  "button",
205
205
  "div",
@@ -217,64 +217,64 @@ var Gt = [
217
217
  "span",
218
218
  "svg",
219
219
  "ul"
220
- ], T = Gt.reduce((e, r) => {
221
- const t = /* @__PURE__ */ Dr(`Primitive.${r}`), o = c.forwardRef((a, n) => {
222
- const { asChild: s, ...i } = a, u = s ? t : r;
220
+ ], T = Qr.reduce((e, t) => {
221
+ const r = /* @__PURE__ */ Ot(`Primitive.${t}`), o = c.forwardRef((a, n) => {
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
- return o.displayName = `Primitive.${r}`, { ...e, [r]: o };
225
+ return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
226
226
  }, {});
227
- function Kt(e, r) {
228
- e && $t.flushSync(() => e.dispatchEvent(r));
227
+ function Jr(e, t) {
228
+ e && kr.flushSync(() => e.dispatchEvent(t));
229
229
  }
230
- function L(e) {
231
- const r = c.useRef(e);
230
+ function $(e) {
231
+ const t = c.useRef(e);
232
232
  return c.useEffect(() => {
233
- r.current = e;
234
- }), c.useMemo(() => (...t) => {
233
+ t.current = e;
234
+ }), c.useMemo(() => (...r) => {
235
235
  var o;
236
- return (o = r.current) == null ? void 0 : o.call(r, ...t);
236
+ return (o = t.current) == null ? void 0 : o.call(t, ...r);
237
237
  }, []);
238
238
  }
239
- function Zt(e, r = globalThis == null ? void 0 : globalThis.document) {
240
- const t = L(e);
239
+ function en(e, t = globalThis == null ? void 0 : globalThis.document) {
240
+ const r = $(e);
241
241
  c.useEffect(() => {
242
242
  const o = (a) => {
243
- a.key === "Escape" && t(a);
243
+ a.key === "Escape" && r(a);
244
244
  };
245
- return r.addEventListener("keydown", o, { capture: !0 }), () => r.removeEventListener("keydown", o, { capture: !0 });
246
- }, [t, r]);
245
+ return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
246
+ }, [r, t]);
247
247
  }
248
- var Qt = "DismissableLayer", We = "dismissableLayer.update", Jt = "dismissableLayer.pointerDownOutside", en = "dismissableLayer.focusOutside", rr, Tr = 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
- }), Or = c.forwardRef(
253
- (e, r) => {
252
+ }), $t = c.forwardRef(
253
+ (e, t) => {
254
254
  const {
255
- disableOutsidePointerEvents: t = !1,
255
+ disableOutsidePointerEvents: r = !1,
256
256
  onEscapeKeyDown: o,
257
257
  onPointerDownOutside: a,
258
258
  onFocusOutside: n,
259
259
  onInteractOutside: s,
260
260
  onDismiss: i,
261
261
  ...u
262
- } = e, l = c.useContext(Tr), [d, p] = c.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = c.useState({}), w = O(r, (S) => p(S)), v = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), _ = v.indexOf(g), b = d ? v.indexOf(d) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, y = b >= _, C = nn((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
- }, h), x = on((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());
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
268
  }, h);
269
- return Zt((S) => {
270
- b === l.layers.size - 1 && (o == null || o(S), !S.defaultPrevented && i && (S.preventDefault(), i()));
269
+ return en((S) => {
270
+ y === l.layers.size - 1 && (o == null || o(S), !S.defaultPrevented && i && (S.preventDefault(), i()));
271
271
  }, h), c.useEffect(() => {
272
272
  if (d)
273
- return t && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (rr = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), tr(), () => {
274
- t && l.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = rr);
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, h, t, l]), c.useEffect(() => () => {
277
- d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), tr());
276
+ }, [d, h, r, l]), c.useEffect(() => () => {
277
+ d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), nt());
278
278
  }, [d, l]), c.useEffect(() => {
279
279
  const S = () => m({});
280
280
  return document.addEventListener(We, S), () => document.removeEventListener(We, S);
@@ -282,13 +282,13 @@ var Qt = "DismissableLayer", We = "dismissableLayer.update", Jt = "dismissableLa
282
282
  T.div,
283
283
  {
284
284
  ...u,
285
- ref: w,
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,78 +297,78 @@ var Qt = "DismissableLayer", We = "dismissableLayer.update", Jt = "dismissableLa
297
297
  );
298
298
  }
299
299
  );
300
- Or.displayName = Qt;
301
- var rn = "DismissableLayerBranch", tn = c.forwardRef((e, r) => {
302
- const t = c.useContext(Tr), o = c.useRef(null), a = O(r, 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)
306
- return t.branches.add(n), () => {
307
- t.branches.delete(n);
306
+ return r.branches.add(n), () => {
307
+ r.branches.delete(n);
308
308
  };
309
- }, [t.branches]), /* @__PURE__ */ f(T.div, { ...e, ref: a });
309
+ }, [r.branches]), /* @__PURE__ */ f(T.div, { ...e, ref: a });
310
310
  });
311
- tn.displayName = rn;
312
- function nn(e, r = globalThis == null ? void 0 : globalThis.document) {
313
- const t = L(e), o = c.useRef(!1), a = c.useRef(() => {
311
+ an.displayName = on;
312
+ function sn(e, t = globalThis == null ? void 0 : globalThis.document) {
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
- Lr(
320
- Jt,
321
- t,
319
+ Mt(
320
+ rn,
321
+ r,
322
322
  l,
323
323
  { discrete: !0 }
324
324
  );
325
325
  };
326
326
  const l = { originalEvent: i };
327
- i.pointerType === "touch" ? (r.removeEventListener("click", a.current), a.current = u, r.addEventListener("click", a.current, { once: !0 })) : u();
327
+ i.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = u, t.addEventListener("click", a.current, { once: !0 })) : u();
328
328
  } else
329
- r.removeEventListener("click", a.current);
329
+ t.removeEventListener("click", a.current);
330
330
  o.current = !1;
331
331
  }, s = window.setTimeout(() => {
332
- r.addEventListener("pointerdown", n);
332
+ t.addEventListener("pointerdown", n);
333
333
  }, 0);
334
334
  return () => {
335
- window.clearTimeout(s), r.removeEventListener("pointerdown", n), r.removeEventListener("click", a.current);
335
+ window.clearTimeout(s), t.removeEventListener("pointerdown", n), t.removeEventListener("click", a.current);
336
336
  };
337
- }, [r, t]), {
337
+ }, [t, r]), {
338
338
  // ensures we check React component tree (not just DOM tree)
339
339
  onPointerDownCapture: () => o.current = !0
340
340
  };
341
341
  }
342
- function on(e, r = globalThis == null ? void 0 : globalThis.document) {
343
- const t = L(e), o = c.useRef(!1);
342
+ function cn(e, t = globalThis == null ? void 0 : globalThis.document) {
343
+ const r = $(e), o = c.useRef(!1);
344
344
  return c.useEffect(() => {
345
345
  const a = (n) => {
346
- n.target && !o.current && Lr(en, t, { originalEvent: n }, {
346
+ n.target && !o.current && Mt(nn, r, { originalEvent: n }, {
347
347
  discrete: !1
348
348
  });
349
349
  };
350
- return r.addEventListener("focusin", a), () => r.removeEventListener("focusin", a);
351
- }, [r, t]), {
350
+ return t.addEventListener("focusin", a), () => t.removeEventListener("focusin", a);
351
+ }, [t, r]), {
352
352
  onFocusCapture: () => o.current = !0,
353
353
  onBlurCapture: () => o.current = !1
354
354
  };
355
355
  }
356
- function tr() {
356
+ function nt() {
357
357
  const e = new CustomEvent(We);
358
358
  document.dispatchEvent(e);
359
359
  }
360
- function Lr(e, r, t, { discrete: o }) {
361
- const a = t.originalEvent.target, n = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: t });
362
- r && a.addEventListener(e, r, { once: !0 }), o ? Kt(a, n) : a.dispatchEvent(n);
360
+ function Mt(e, t, r, { discrete: o }) {
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 ? Jr(a, n) : a.dispatchEvent(n);
363
363
  }
364
- var Re = "focusScope.autoFocusOnMount", Ne = "focusScope.autoFocusOnUnmount", nr = { bubbles: !1, cancelable: !0 }, an = "FocusScope", $r = c.forwardRef((e, r) => {
364
+ var Ne = "focusScope.autoFocusOnMount", xe = "focusScope.autoFocusOnUnmount", ot = { bubbles: !1, cancelable: !0 }, ln = "FocusScope", It = c.forwardRef((e, t) => {
365
365
  const {
366
- loop: t = !1,
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 = L(a), d = L(n), p = c.useRef(null), h = O(r, (v) => u(v)), 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;
@@ -381,133 +381,133 @@ var Re = "focusScope.autoFocusOnMount", Ne = "focusScope.autoFocusOnUnmount", nr
381
381
  if (o) {
382
382
  let v = function(E) {
383
383
  if (m.paused || !i) return;
384
- const y = E.target;
385
- i.contains(y) ? p.current = y : H(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) || H(p.current, { select: !0 }));
390
- }, _ = function(E) {
388
+ const w = E.relatedTarget;
389
+ w !== null && (i.contains(w) || H(p.current, { select: !0 }));
390
+ }, b = function(E) {
391
391
  if (document.activeElement === document.body)
392
392
  for (const C of E)
393
393
  C.removedNodes.length > 0 && H(i);
394
394
  };
395
395
  document.addEventListener("focusin", v), document.addEventListener("focusout", g);
396
- const b = new MutationObserver(_);
397
- return i && b.observe(i, { childList: !0, subtree: !0 }), () => {
398
- document.removeEventListener("focusin", v), document.removeEventListener("focusout", g), b.disconnect();
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
- ar.add(m);
403
+ it.add(m);
404
404
  const v = document.activeElement;
405
405
  if (!i.contains(v)) {
406
- const _ = new CustomEvent(Re, nr);
407
- i.addEventListener(Re, l), i.dispatchEvent(_), _.defaultPrevented || (sn(fn(Mr(i)), { select: !0 }), document.activeElement === v && H(i));
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 _ = new CustomEvent(Ne, nr);
412
- i.addEventListener(Ne, d), i.dispatchEvent(_), _.defaultPrevented || H(v ?? document.body, { select: !0 }), i.removeEventListener(Ne, d), ar.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
- const w = c.useCallback(
417
+ const _ = c.useCallback(
418
418
  (v) => {
419
- if (!t && !o || m.paused) return;
420
- const g = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, _ = document.activeElement;
421
- if (g && _) {
422
- const b = v.currentTarget, [E, y] = cn(b);
423
- E && y ? !v.shiftKey && _ === y ? (v.preventDefault(), t && H(E, { select: !0 })) : v.shiftKey && _ === E && (v.preventDefault(), t && H(y, { select: !0 })) : _ === b && v.preventDefault();
419
+ if (!r && !o || m.paused) return;
420
+ const g = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, b = document.activeElement;
421
+ if (g && b) {
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
- [t, o, m.paused]
426
+ [r, o, m.paused]
427
427
  );
428
- return /* @__PURE__ */ f(T.div, { tabIndex: -1, ...s, ref: h, onKeyDown: w });
428
+ return /* @__PURE__ */ f(T.div, { tabIndex: -1, ...s, ref: h, onKeyDown: _ });
429
429
  });
430
- $r.displayName = an;
431
- function sn(e, { select: r = !1 } = {}) {
432
- const t = document.activeElement;
430
+ It.displayName = ln;
431
+ function un(e, { select: t = !1 } = {}) {
432
+ const r = document.activeElement;
433
433
  for (const o of e)
434
- if (H(o, { select: r }), document.activeElement !== t) return;
434
+ if (H(o, { select: t }), document.activeElement !== r) return;
435
435
  }
436
- function cn(e) {
437
- const r = Mr(e), t = or(r, e), o = or(r.reverse(), e);
438
- return [t, o];
436
+ function dn(e) {
437
+ const t = kt(e), r = at(t, e), o = at(t.reverse(), e);
438
+ return [r, o];
439
439
  }
440
- function Mr(e) {
441
- const r = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
440
+ function kt(e) {
441
+ const t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
442
442
  acceptNode: (o) => {
443
443
  const a = o.tagName === "INPUT" && o.type === "hidden";
444
444
  return o.disabled || o.hidden || a ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
445
445
  }
446
446
  });
447
- for (; t.nextNode(); ) r.push(t.currentNode);
448
- return r;
447
+ for (; r.nextNode(); ) t.push(r.currentNode);
448
+ return t;
449
449
  }
450
- function or(e, r) {
451
- for (const t of e)
452
- if (!ln(t, { upTo: r })) return t;
450
+ function at(e, t) {
451
+ for (const r of e)
452
+ if (!fn(r, { upTo: t })) return r;
453
453
  }
454
- function ln(e, { upTo: r }) {
454
+ function fn(e, { upTo: t }) {
455
455
  if (getComputedStyle(e).visibility === "hidden") return !0;
456
456
  for (; e; ) {
457
- if (r !== void 0 && e === r) return !1;
457
+ if (t !== void 0 && e === t) return !1;
458
458
  if (getComputedStyle(e).display === "none") return !0;
459
459
  e = e.parentElement;
460
460
  }
461
461
  return !1;
462
462
  }
463
- function un(e) {
463
+ function pn(e) {
464
464
  return e instanceof HTMLInputElement && "select" in e;
465
465
  }
466
- function H(e, { select: r = !1 } = {}) {
466
+ function H(e, { select: t = !1 } = {}) {
467
467
  if (e && e.focus) {
468
- const t = document.activeElement;
469
- e.focus({ preventScroll: !0 }), e !== t && un(e) && r && e.select();
468
+ const r = document.activeElement;
469
+ e.focus({ preventScroll: !0 }), e !== r && pn(e) && t && e.select();
470
470
  }
471
471
  }
472
- var ar = dn();
473
- function dn() {
472
+ var it = hn();
473
+ function hn() {
474
474
  let e = [];
475
475
  return {
476
- add(r) {
477
- const t = e[0];
478
- r !== t && (t == null || t.pause()), e = ir(e, r), e.unshift(r);
476
+ add(t) {
477
+ const r = e[0];
478
+ t !== r && (r == null || r.pause()), e = st(e, t), e.unshift(t);
479
479
  },
480
- remove(r) {
481
- var t;
482
- e = ir(e, r), (t = e[0]) == null || t.resume();
480
+ remove(t) {
481
+ var r;
482
+ e = st(e, t), (r = e[0]) == null || r.resume();
483
483
  }
484
484
  };
485
485
  }
486
- function ir(e, r) {
487
- const t = [...e], o = t.indexOf(r);
488
- return o !== -1 && t.splice(o, 1), t;
486
+ function st(e, t) {
487
+ const r = [...e], o = r.indexOf(t);
488
+ return o !== -1 && r.splice(o, 1), r;
489
489
  }
490
- function fn(e) {
491
- return e.filter((r) => r.tagName !== "A");
490
+ function vn(e) {
491
+ return e.filter((t) => t.tagName !== "A");
492
492
  }
493
- var pn = "Portal", Ir = c.forwardRef((e, r) => {
493
+ var mn = "Portal", Wt = c.forwardRef((e, t) => {
494
494
  var i;
495
- const { container: t, ...o } = e, [a, n] = c.useState(!1);
495
+ const { container: r, ...o } = e, [a, n] = c.useState(!1);
496
496
  ne(() => n(!0), []);
497
- const s = t || a && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
498
- return s ? Mt.createPortal(/* @__PURE__ */ f(T.div, { ...o, ref: r }), s) : null;
497
+ const s = r || a && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
498
+ return s ? Wr.createPortal(/* @__PURE__ */ f(T.div, { ...o, ref: t }), s) : null;
499
499
  });
500
- Ir.displayName = pn;
501
- function hn(e, r) {
502
- return c.useReducer((t, o) => r[t][o] ?? t, e);
500
+ Wt.displayName = mn;
501
+ function gn(e, t) {
502
+ return c.useReducer((r, o) => t[r][o] ?? r, e);
503
503
  }
504
- var j = (e) => {
505
- const { present: r, children: t } = e, o = vn(r), a = typeof t == "function" ? t({ present: o.isPresent }) : c.Children.only(t), n = O(o.ref, mn(a));
506
- return typeof t == "function" || o.isPresent ? c.cloneElement(a, { ref: n }) : null;
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
+ return typeof r == "function" || o.isPresent ? c.cloneElement(a, { ref: n }) : null;
507
507
  };
508
- j.displayName = "Presence";
509
- function vn(e) {
510
- const [r, t] = 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"
@@ -530,158 +530,158 @@ function vn(e) {
530
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
- if (r) {
533
+ if (t) {
534
534
  let l;
535
- const d = r.ownerDocument.defaultView ?? window, p = (m) => {
535
+ const d = t.ownerDocument.defaultView ?? window, p = (m) => {
536
536
  const v = le(o.current).includes(CSS.escape(m.animationName));
537
- if (m.target === r && v && (u("ANIMATION_END"), !a.current)) {
538
- const g = r.style.animationFillMode;
539
- r.style.animationFillMode = "forwards", l = d.setTimeout(() => {
540
- r.style.animationFillMode === "forwards" && (r.style.animationFillMode = g);
537
+ if (m.target === t && v && (u("ANIMATION_END"), !a.current)) {
538
+ const g = t.style.animationFillMode;
539
+ t.style.animationFillMode = "forwards", l = d.setTimeout(() => {
540
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
541
541
  });
542
542
  }
543
543
  }, h = (m) => {
544
- m.target === r && (n.current = le(o.current));
544
+ m.target === t && (n.current = le(o.current));
545
545
  };
546
- return r.addEventListener("animationstart", h), r.addEventListener("animationcancel", p), r.addEventListener("animationend", p), () => {
547
- d.clearTimeout(l), r.removeEventListener("animationstart", h), r.removeEventListener("animationcancel", p), r.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");
551
- }, [r, u]), {
551
+ }, [t, u]), {
552
552
  isPresent: ["mounted", "unmountSuspended"].includes(i),
553
553
  ref: c.useCallback((l) => {
554
- o.current = l ? getComputedStyle(l) : null, t(l);
554
+ o.current = l ? getComputedStyle(l) : null, r(l);
555
555
  }, [])
556
556
  };
557
557
  }
558
558
  function le(e) {
559
559
  return (e == null ? void 0 : e.animationName) || "none";
560
560
  }
561
- function mn(e) {
561
+ function bn(e) {
562
562
  var o, a;
563
- let r = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, t = r && "isReactWarning" in r && r.isReactWarning;
564
- return t ? e.ref : (r = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
563
+ let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning;
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 gn() {
567
+ function yn() {
568
568
  c.useEffect(() => {
569
569
  const e = document.querySelectorAll("[data-radix-focus-guard]");
570
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? sr()), document.body.insertAdjacentElement("beforeend", e[1] ?? sr()), Ae++, () => {
571
- Ae === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((r) => r.remove()), Ae--;
570
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? ct()), document.body.insertAdjacentElement("beforeend", e[1] ?? ct()), Ae++, () => {
571
+ Ae === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ae--;
572
572
  };
573
573
  }, []);
574
574
  }
575
- function sr() {
575
+ function ct() {
576
576
  const e = document.createElement("span");
577
577
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
578
578
  }
579
579
  var k = function() {
580
- return k = Object.assign || function(r) {
581
- for (var t, o = 1, a = arguments.length; o < a; o++) {
582
- t = arguments[o];
583
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]);
580
+ return k = Object.assign || function(t) {
581
+ for (var r, o = 1, a = arguments.length; o < a; o++) {
582
+ r = arguments[o];
583
+ for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]);
584
584
  }
585
- return r;
585
+ return t;
586
586
  }, k.apply(this, arguments);
587
587
  };
588
- function kr(e, r) {
589
- var t = {};
590
- for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && r.indexOf(o) < 0 && (t[o] = e[o]);
588
+ function Ft(e, t) {
589
+ var r = {};
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")
592
592
  for (var a = 0, o = Object.getOwnPropertySymbols(e); a < o.length; a++)
593
- r.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (t[o[a]] = e[o[a]]);
594
- return t;
593
+ t.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (r[o[a]] = e[o[a]]);
594
+ return r;
595
595
  }
596
- function _n(e, r, t) {
597
- if (t || arguments.length === 2) for (var o = 0, a = r.length, n; o < a; o++)
598
- (n || !(o in r)) && (n || (n = Array.prototype.slice.call(r, 0, o)), n[o] = r[o]);
599
- return e.concat(n || Array.prototype.slice.call(r));
596
+ function wn(e, t, r) {
597
+ if (r || arguments.length === 2) for (var o = 0, a = t.length, n; o < a; o++)
598
+ (n || !(o in t)) && (n || (n = Array.prototype.slice.call(t, 0, o)), n[o] = t[o]);
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", bn = "--removed-body-scroll-bar-size";
602
- function De(e, r) {
603
- return typeof e == "function" ? e(r) : e && (e.current = r), e;
601
+ var ge = "right-scroll-bar-position", _e = "width-before-scroll-bar", Sn = "with-scroll-bars-hidden", En = "--removed-body-scroll-bar-size";
602
+ function De(e, t) {
603
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
604
604
  }
605
- function yn(e, r) {
606
- var t = At(function() {
605
+ function Cn(e, t) {
606
+ var r = Lr(function() {
607
607
  return {
608
608
  // value
609
609
  value: e,
610
610
  // last callback
611
- callback: r,
611
+ callback: t,
612
612
  // "memoized" public interface
613
613
  facade: {
614
614
  get current() {
615
- return t.value;
615
+ return r.value;
616
616
  },
617
617
  set current(o) {
618
- var a = t.value;
619
- a !== o && (t.value = o, t.callback(o, a));
618
+ var a = r.value;
619
+ a !== o && (r.value = o, r.callback(o, a));
620
620
  }
621
621
  }
622
622
  };
623
623
  })[0];
624
- return t.callback = r, t.facade;
624
+ return r.callback = t, r.facade;
625
625
  }
626
- var Sn = typeof window < "u" ? c.useLayoutEffect : c.useEffect, cr = /* @__PURE__ */ new WeakMap();
627
- function En(e, r) {
628
- var t = yn(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 Sn(function() {
634
- var o = cr.get(t);
633
+ return Pn(function() {
634
+ var o = lt.get(r);
635
635
  if (o) {
636
- var a = new Set(o), n = new Set(e), s = t.current;
636
+ var a = new Set(o), n = new Set(e), s = r.current;
637
637
  a.forEach(function(i) {
638
638
  n.has(i) || De(i, null);
639
639
  }), n.forEach(function(i) {
640
640
  a.has(i) || De(i, s);
641
641
  });
642
642
  }
643
- cr.set(t, e);
644
- }, [e]), t;
643
+ lt.set(r, e);
644
+ }, [e]), r;
645
645
  }
646
- function Cn(e) {
646
+ function Nn(e) {
647
647
  return e;
648
648
  }
649
- function Pn(e, r) {
650
- r === void 0 && (r = Cn);
651
- var t = [], o = !1, a = {
649
+ function xn(e, t) {
650
+ t === void 0 && (t = Nn);
651
+ var r = [], o = !1, a = {
652
652
  read: function() {
653
653
  if (o)
654
654
  throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
655
- return t.length ? t[t.length - 1] : e;
655
+ return r.length ? r[r.length - 1] : e;
656
656
  },
657
657
  useMedium: function(n) {
658
- var s = r(n, o);
659
- return t.push(s), function() {
660
- t = t.filter(function(i) {
658
+ var s = t(n, o);
659
+ return r.push(s), function() {
660
+ r = r.filter(function(i) {
661
661
  return i !== s;
662
662
  });
663
663
  };
664
664
  },
665
665
  assignSyncMedium: function(n) {
666
- for (o = !0; t.length; ) {
667
- var s = t;
668
- t = [], s.forEach(n);
666
+ for (o = !0; r.length; ) {
667
+ var s = r;
668
+ r = [], s.forEach(n);
669
669
  }
670
- t = {
670
+ r = {
671
671
  push: function(i) {
672
672
  return n(i);
673
673
  },
674
674
  filter: function() {
675
- return t;
675
+ return r;
676
676
  }
677
677
  };
678
678
  },
679
679
  assignMedium: function(n) {
680
680
  o = !0;
681
681
  var s = [];
682
- if (t.length) {
683
- var i = t;
684
- t = [], i.forEach(n), s = t;
682
+ if (r.length) {
683
+ var i = r;
684
+ r = [], i.forEach(n), s = r;
685
685
  }
686
686
  var u = function() {
687
687
  var d = s;
@@ -689,48 +689,48 @@ function Pn(e, r) {
689
689
  }, l = function() {
690
690
  return Promise.resolve().then(u);
691
691
  };
692
- l(), t = {
692
+ l(), r = {
693
693
  push: function(d) {
694
694
  s.push(d), l();
695
695
  },
696
696
  filter: function(d) {
697
- return s = s.filter(d), t;
697
+ return s = s.filter(d), r;
698
698
  }
699
699
  };
700
700
  }
701
701
  };
702
702
  return a;
703
703
  }
704
- function xn(e) {
704
+ function An(e) {
705
705
  e === void 0 && (e = {});
706
- var r = Pn(null);
707
- return r.options = k({ async: !0, ssr: !1 }, e), r;
706
+ var t = xn(null);
707
+ return t.options = k({ async: !0, ssr: !1 }, e), t;
708
708
  }
709
- var Wr = function(e) {
710
- var r = e.sideCar, t = kr(e, ["sideCar"]);
711
- if (!r)
709
+ var jt = function(e) {
710
+ var t = e.sideCar, r = Ft(e, ["sideCar"]);
711
+ if (!t)
712
712
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
713
- var o = r.read();
713
+ var o = t.read();
714
714
  if (!o)
715
715
  throw new Error("Sidecar medium not found");
716
- return c.createElement(o, k({}, t));
716
+ return c.createElement(o, k({}, r));
717
717
  };
718
- Wr.isSideCarExport = !0;
719
- function Rn(e, r) {
720
- return e.useMedium(r), Wr;
718
+ jt.isSideCarExport = !0;
719
+ function Dn(e, t) {
720
+ return e.useMedium(t), jt;
721
721
  }
722
- var Fr = xn(), Te = function() {
723
- }, Se = c.forwardRef(function(e, r) {
724
- var t = c.useRef(null), o = c.useState({
722
+ var Ut = An(), Te = function() {
723
+ }, Se = c.forwardRef(function(e, t) {
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, h = e.sideCar, m = e.noRelative, w = e.noIsolation, v = e.inert, g = e.allowPinchZoom, _ = e.as, b = _ === void 0 ? "div" : _, E = e.gapMode, y = kr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = h, x = En([t, r]), 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: Fr, removeScrollBar: l, shards: p, noRelative: m, noIsolation: w, inert: v, setCallbacks: n, allowPinchZoom: !!g, lockRef: t, gapMode: E }),
733
- s ? c.cloneElement(c.Children.only(i), k(k({}, S), { ref: x })) : c.createElement(b, 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,83 +742,83 @@ Se.classNames = {
742
742
  fullWidth: _e,
743
743
  zeroRight: ge
744
744
  };
745
- var Nn = function() {
745
+ var Tn = function() {
746
746
  if (typeof __webpack_nonce__ < "u")
747
747
  return __webpack_nonce__;
748
748
  };
749
- function An() {
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 r = Nn();
755
- return r && e.setAttribute("nonce", r), e;
754
+ var t = Tn();
755
+ return t && e.setAttribute("nonce", t), e;
756
756
  }
757
- function Dn(e, r) {
758
- e.styleSheet ? e.styleSheet.cssText = r : e.appendChild(document.createTextNode(r));
757
+ function Ln(e, t) {
758
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
759
759
  }
760
- function Tn(e) {
761
- var r = document.head || document.getElementsByTagName("head")[0];
762
- r.appendChild(e);
760
+ function $n(e) {
761
+ var t = document.head || document.getElementsByTagName("head")[0];
762
+ t.appendChild(e);
763
763
  }
764
- var On = function() {
765
- var e = 0, r = null;
764
+ var Mn = function() {
765
+ var e = 0, t = null;
766
766
  return {
767
- add: function(t) {
768
- e == 0 && (r = An()) && (Dn(r, t), Tn(r)), e++;
767
+ add: function(r) {
768
+ e == 0 && (t = On()) && (Ln(t, r), $n(t)), e++;
769
769
  },
770
770
  remove: function() {
771
- e--, !e && r && (r.parentNode && r.parentNode.removeChild(r), r = null);
771
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
772
772
  }
773
773
  };
774
- }, Ln = function() {
775
- var e = On();
776
- return function(r, t) {
774
+ }, In = function() {
775
+ var e = Mn();
776
+ return function(t, r) {
777
777
  c.useEffect(function() {
778
- return e.add(r), function() {
778
+ return e.add(t), function() {
779
779
  e.remove();
780
780
  };
781
- }, [r && t]);
781
+ }, [t && r]);
782
782
  };
783
- }, Ur = function() {
784
- var e = Ln(), r = function(t) {
785
- var o = t.styles, a = t.dynamic;
783
+ }, Bt = function() {
784
+ var e = In(), t = function(r) {
785
+ var o = r.styles, a = r.dynamic;
786
786
  return e(o, a), null;
787
787
  };
788
- return r;
789
- }, $n = {
788
+ return t;
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
- }, Mn = function(e) {
797
- var r = window.getComputedStyle(document.body), t = r[e === "padding" ? "paddingLeft" : "marginLeft"], o = r[e === "padding" ? "paddingTop" : "marginTop"], a = r[e === "padding" ? "paddingRight" : "marginRight"];
798
- return [Oe(t), Oe(o), Oe(a)];
799
- }, In = function(e) {
796
+ }, Wn = function(e) {
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
+ return [Oe(r), Oe(o), Oe(a)];
799
+ }, Fn = function(e) {
800
800
  if (e === void 0 && (e = "margin"), typeof window > "u")
801
- return $n;
802
- var r = Mn(e), t = 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
- left: r[0],
805
- top: r[1],
806
- right: r[2],
807
- gap: Math.max(0, o - t + r[2] - r[0])
804
+ left: t[0],
805
+ top: t[1],
806
+ right: t[2],
807
+ gap: Math.max(0, o - r + t[2] - t[0])
808
808
  };
809
- }, kn = Ur(), re = "data-scroll-locked", Wn = function(e, r, t, 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
- return t === void 0 && (t = "margin"), `
812
- .`.concat(wn, ` {
811
+ return r === void 0 && (r = "margin"), `
812
+ .`.concat(Sn, ` {
813
813
  overflow: hidden `).concat(o, `;
814
814
  padding-right: `).concat(i, "px ").concat(o, `;
815
815
  }
816
- body[`).concat(re, `] {
816
+ body[`).concat(te, `] {
817
817
  overflow: hidden `).concat(o, `;
818
818
  overscroll-behavior: contain;
819
819
  `).concat([
820
- r && "position: relative ".concat(o, ";"),
821
- t === "margin" && `
820
+ t && "position: relative ".concat(o, ";"),
821
+ r === "margin" && `
822
822
  padding-left: `.concat(a, `px;
823
823
  padding-top: `).concat(n, `px;
824
824
  padding-right: `).concat(s, `px;
@@ -826,7 +826,7 @@ var On = function() {
826
826
  margin-top:0;
827
827
  margin-right: `).concat(i, "px ").concat(o, `;
828
828
  `),
829
- t === "padding" && "padding-right: ".concat(i, "px ").concat(o, ";")
829
+ r === "padding" && "padding-right: ".concat(i, "px ").concat(o, ";")
830
830
  ].filter(Boolean).join(""), `
831
831
  }
832
832
 
@@ -846,27 +846,27 @@ var On = function() {
846
846
  margin-right: 0 `).concat(o, `;
847
847
  }
848
848
 
849
- body[`).concat(re, `] {
850
- `).concat(bn, ": ").concat(i, `px;
849
+ body[`).concat(te, `] {
850
+ `).concat(En, ": ").concat(i, `px;
851
851
  }
852
852
  `);
853
- }, lr = function() {
854
- var e = parseInt(document.body.getAttribute(re) || "0", 10);
853
+ }, ut = function() {
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
- return document.body.setAttribute(re, (lr() + 1).toString()), function() {
859
- var e = lr() - 1;
860
- e <= 0 ? document.body.removeAttribute(re) : document.body.setAttribute(re, e.toString());
858
+ return document.body.setAttribute(te, (ut() + 1).toString()), function() {
859
+ var e = ut() - 1;
860
+ e <= 0 ? document.body.removeAttribute(te) : document.body.setAttribute(te, e.toString());
861
861
  };
862
862
  }, []);
863
- }, Un = function(e) {
864
- var r = e.noRelative, t = e.noImportant, o = e.gapMode, a = o === void 0 ? "margin" : o;
865
- Fn();
863
+ }, Hn = function(e) {
864
+ var t = e.noRelative, r = e.noImportant, o = e.gapMode, a = o === void 0 ? "margin" : o;
865
+ Bn();
866
866
  var n = c.useMemo(function() {
867
- return In(a);
867
+ return Fn(a);
868
868
  }, [a]);
869
- return c.createElement(kn, { styles: Wn(n, !r, a, t ? "" : "!important") });
869
+ return c.createElement(jn, { styles: Un(n, !t, a, r ? "" : "!important") });
870
870
  }, Fe = !1;
871
871
  if (typeof window < "u")
872
872
  try {
@@ -879,91 +879,91 @@ if (typeof window < "u")
879
879
  } catch {
880
880
  Fe = !1;
881
881
  }
882
- var q = Fe ? { passive: !1 } : !1, Hn = function(e) {
882
+ var q = Fe ? { passive: !1 } : !1, Vn = function(e) {
883
883
  return e.tagName === "TEXTAREA";
884
- }, Hr = function(e, r) {
884
+ }, Ht = function(e, t) {
885
885
  if (!(e instanceof Element))
886
886
  return !1;
887
- var t = window.getComputedStyle(e);
887
+ var r = window.getComputedStyle(e);
888
888
  return (
889
889
  // not-not-scrollable
890
- t[r] !== "hidden" && // contains scroll inside self
891
- !(t.overflowY === t.overflowX && !Hn(e) && t[r] === "visible")
890
+ r[t] !== "hidden" && // contains scroll inside self
891
+ !(r.overflowY === r.overflowX && !Vn(e) && r[t] === "visible")
892
892
  );
893
- }, Bn = function(e) {
894
- return Hr(e, "overflowY");
895
- }, jn = function(e) {
896
- return Hr(e, "overflowX");
897
- }, ur = function(e, r) {
898
- var t = r.ownerDocument, o = r;
893
+ }, zn = function(e) {
894
+ return Ht(e, "overflowY");
895
+ }, Yn = function(e) {
896
+ return Ht(e, "overflowX");
897
+ }, dt = function(e, t) {
898
+ var r = t.ownerDocument, o = t;
899
899
  do {
900
900
  typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
901
- var a = Br(e, o);
901
+ var a = Vt(e, o);
902
902
  if (a) {
903
- var n = jr(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
- } while (o && o !== t.body);
908
+ } while (o && o !== r.body);
909
909
  return !1;
910
- }, Vn = function(e) {
911
- var r = e.scrollTop, t = e.scrollHeight, o = e.clientHeight;
910
+ }, Xn = function(e) {
911
+ var t = e.scrollTop, r = e.scrollHeight, o = e.clientHeight;
912
912
  return [
913
- r,
914
913
  t,
914
+ r,
915
915
  o
916
916
  ];
917
- }, zn = function(e) {
918
- var r = e.scrollLeft, t = e.scrollWidth, o = e.clientWidth;
917
+ }, qn = function(e) {
918
+ var t = e.scrollLeft, r = e.scrollWidth, o = e.clientWidth;
919
919
  return [
920
- r,
921
920
  t,
921
+ r,
922
922
  o
923
923
  ];
924
- }, Br = function(e, r) {
925
- return e === "v" ? Bn(r) : jn(r);
926
- }, jr = function(e, r) {
927
- return e === "v" ? Vn(r) : zn(r);
928
- }, Yn = function(e, r) {
929
- return e === "h" && r === "rtl" ? -1 : 1;
930
- }, Xn = function(e, r, t, o, a) {
931
- var n = Yn(e, window.getComputedStyle(r).direction), s = n * o, i = t.target, u = r.contains(i), l = !1, d = s > 0, p = 0, h = 0;
924
+ }, Vt = function(e, t) {
925
+ return e === "v" ? zn(t) : Yn(t);
926
+ }, zt = function(e, t) {
927
+ return e === "v" ? Xn(t) : qn(t);
928
+ }, Gn = function(e, t) {
929
+ return e === "h" && t === "rtl" ? -1 : 1;
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 = jr(e, i), w = m[0], v = m[1], g = m[2], _ = v - g - n * w;
936
- (w || _) && Br(e, i) && (p += _, h += w);
937
- var b = i.parentNode;
938
- i = b && b.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? b.host : b;
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
- u && (r.contains(i) || r === i)
942
+ u && (t.contains(i) || t === i)
943
943
  );
944
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
- }, dr = function(e) {
947
+ }, ft = function(e) {
948
948
  return [e.deltaX, e.deltaY];
949
- }, fr = function(e) {
949
+ }, pt = function(e) {
950
950
  return e && "current" in e ? e.current : e;
951
- }, qn = function(e, r) {
952
- return e[0] === r[0] && e[1] === r[1];
953
- }, Gn = function(e) {
951
+ }, Zn = function(e, t) {
952
+ return e[0] === t[0] && e[1] === t[1];
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
- }, Kn = 0, G = [];
959
- function Zn(e) {
960
- var r = c.useRef([]), t = c.useRef([0, 0]), o = c.useRef(), a = c.useState(Kn++)[0], n = c.useState(Ur)[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 v = _n([e.lockRef.current], (e.shards || []).map(fr), !0).filter(Boolean);
966
+ var v = wn([e.lockRef.current], (e.shards || []).map(pt), !0).filter(Boolean);
967
967
  return v.forEach(function(g) {
968
968
  return g.classList.add("allow-interactivity-".concat(a));
969
969
  }), function() {
@@ -976,46 +976,46 @@ function Zn(e) {
976
976
  var i = c.useCallback(function(v, g) {
977
977
  if ("touches" in v && v.touches.length === 2 || v.type === "wheel" && v.ctrlKey)
978
978
  return !s.current.allowPinchZoom;
979
- var _ = de(v), b = t.current, E = "deltaX" in v ? v.deltaX : b[0] - _[0], y = "deltaY" in v ? v.deltaY : b[1] - _[1], C, x = v.target, S = Math.abs(E) > Math.abs(y) ? "h" : "v";
980
- if ("touches" in v && 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 = ur(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 = ur(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 v && (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 Xn(P, g, v, P === "h" ? E : y);
990
+ return Kn(P, g, v, P === "h" ? E : w);
991
991
  }, []), u = c.useCallback(function(v) {
992
992
  var g = v;
993
993
  if (!(!G.length || G[G.length - 1] !== n)) {
994
- var _ = "deltaY" in g ? dr(g) : de(g), b = r.current.filter(function(C) {
995
- return C.name === g.type && (C.target === g.target || g.target === C.shadowParent) && qn(C.delta, _);
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 (b && b.should) {
997
+ if (y && y.should) {
998
998
  g.cancelable && g.preventDefault();
999
999
  return;
1000
1000
  }
1001
- if (!b) {
1002
- var E = (s.current.shards || []).map(fr).filter(Boolean).filter(function(C) {
1001
+ if (!y) {
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(v, g, _, b) {
1009
- var E = { name: v, delta: g, target: _, should: b, shadowParent: Qn(_) };
1010
- r.current.push(E), setTimeout(function() {
1011
- r.current = r.current.filter(function(y) {
1012
- return y !== E;
1008
+ }, []), l = c.useCallback(function(v, g, b, y) {
1009
+ var E = { name: v, delta: g, target: b, should: y, shadowParent: to(b) };
1010
+ t.current.push(E), setTimeout(function() {
1011
+ t.current = t.current.filter(function(w) {
1012
+ return w !== E;
1013
1013
  });
1014
1014
  }, 1);
1015
1015
  }, []), d = c.useCallback(function(v) {
1016
- t.current = de(v), o.current = void 0;
1016
+ r.current = de(v), o.current = void 0;
1017
1017
  }, []), p = c.useCallback(function(v) {
1018
- l(v.type, dr(v), v.target, i(v, e.lockRef.current));
1018
+ l(v.type, ft(v), v.target, i(v, e.lockRef.current));
1019
1019
  }, []), h = c.useCallback(function(v) {
1020
1020
  l(v.type, de(v), v.target, i(v, e.lockRef.current));
1021
1021
  }, []);
@@ -1030,44 +1030,44 @@ function Zn(e) {
1030
1030
  }), document.removeEventListener("wheel", u, q), document.removeEventListener("touchmove", u, q), document.removeEventListener("touchstart", d, q);
1031
1031
  };
1032
1032
  }, []);
1033
- var m = e.removeScrollBar, w = e.inert;
1033
+ var m = e.removeScrollBar, _ = e.inert;
1034
1034
  return c.createElement(
1035
1035
  c.Fragment,
1036
1036
  null,
1037
- w ? c.createElement(n, { styles: Gn(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 Qn(e) {
1042
- for (var r = null; e !== null; )
1043
- e instanceof ShadowRoot && (r = e.host, e = e.host), e = e.parentNode;
1044
- return r;
1041
+ function to(e) {
1042
+ for (var t = null; e !== null; )
1043
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1044
+ return t;
1045
1045
  }
1046
- const Jn = Rn(Fr, Zn);
1047
- var Vr = c.forwardRef(function(e, r) {
1048
- return c.createElement(Se, k({}, e, { ref: r, sideCar: Jn }));
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
- Vr.classNames = Se.classNames;
1051
- var eo = function(e) {
1050
+ Yt.classNames = Se.classNames;
1051
+ var no = function(e) {
1052
1052
  if (typeof document > "u")
1053
1053
  return null;
1054
- var r = Array.isArray(e) ? e[0] : e;
1055
- return r.ownerDocument.body;
1056
- }, K = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), pe = {}, Le = 0, zr = function(e) {
1057
- return e && (e.host || zr(e.parentNode));
1058
- }, ro = function(e, r) {
1059
- return r.map(function(t) {
1060
- if (e.contains(t))
1061
- return t;
1062
- var o = zr(t);
1063
- return o && e.contains(o) ? o : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
1064
- }).filter(function(t) {
1065
- return !!t;
1054
+ var t = Array.isArray(e) ? e[0] : e;
1055
+ return t.ownerDocument.body;
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
+ return t.map(function(r) {
1060
+ if (e.contains(r))
1061
+ return r;
1062
+ var o = Xt(r);
1063
+ return o && e.contains(o) ? o : (console.error("aria-hidden", r, "in not contained inside", e, ". Doing nothing"), null);
1064
+ }).filter(function(r) {
1065
+ return !!r;
1066
1066
  });
1067
- }, to = function(e, r, t, o) {
1068
- var a = ro(r, Array.isArray(e) ? e : [e]);
1069
- pe[t] || (pe[t] = /* @__PURE__ */ new WeakMap());
1070
- var n = pe[t], s = [], i = /* @__PURE__ */ new Set(), u = new Set(a), l = function(p) {
1067
+ }, ao = function(e, t, r, o) {
1068
+ var a = oo(t, Array.isArray(e) ? e : [e]);
1069
+ pe[r] || (pe[r] = /* @__PURE__ */ new WeakMap());
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);
@@ -1077,60 +1077,60 @@ var eo = function(e) {
1077
1077
  d(h);
1078
1078
  else
1079
1079
  try {
1080
- var m = h.getAttribute(o), w = 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 && w && fe.set(h, !0), g === 1 && h.setAttribute(t, "true"), w || h.setAttribute(o, "true");
1082
- } catch (_) {
1083
- console.error("aria-hidden: cannot operate on ", h, _);
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
+ } catch (b) {
1083
+ console.error("aria-hidden: cannot operate on ", h, b);
1084
1084
  }
1085
1085
  });
1086
1086
  };
1087
- return d(r), i.clear(), Le++, function() {
1087
+ return d(t), i.clear(), Le++, function() {
1088
1088
  s.forEach(function(p) {
1089
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(t);
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
- }, no = function(e, r, t) {
1094
- t === void 0 && (t = "data-aria-hidden");
1095
- var o = Array.from(Array.isArray(e) ? e : [e]), a = eo(e);
1096
- return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live], script"))), to(o, a, t, "aria-hidden")) : function() {
1093
+ }, io = function(e, t, r) {
1094
+ r === void 0 && (r = "data-aria-hidden");
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", [Yr] = Ar(Ee), [oo, I] = Yr(Ee), Xr = (e) => {
1099
+ }, Ee = "Dialog", [qt] = Tt(Ee), [so, I] = qt(Ee), Gt = (e) => {
1100
1100
  const {
1101
- __scopeDialog: r,
1102
- children: t,
1101
+ __scopeDialog: t,
1102
+ children: r,
1103
1103
  open: o,
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] = Ht({
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
- oo,
1114
+ so,
1115
1115
  {
1116
- scope: r,
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]),
1125
1125
  modal: s,
1126
- children: t
1126
+ children: r
1127
1127
  }
1128
1128
  );
1129
1129
  };
1130
- Xr.displayName = Ee;
1131
- var qr = "DialogTrigger", Gr = c.forwardRef(
1132
- (e, r) => {
1133
- const { __scopeDialog: t, ...o } = e, a = I(qr, t), n = O(r, a.triggerRef);
1130
+ Gt.displayName = Ee;
1131
+ var Kt = "DialogTrigger", Zt = c.forwardRef(
1132
+ (e, t) => {
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,61 +1146,61 @@ var qr = "DialogTrigger", Gr = c.forwardRef(
1146
1146
  );
1147
1147
  }
1148
1148
  );
1149
- Gr.displayName = qr;
1150
- var Ve = "DialogPortal", [ao, Kr] = Yr(Ve, {
1149
+ Zt.displayName = Kt;
1150
+ var Ve = "DialogPortal", [co, Qt] = qt(Ve, {
1151
1151
  forceMount: void 0
1152
- }), Zr = (e) => {
1153
- const { __scopeDialog: r, forceMount: t, children: o, container: a } = e, n = I(Ve, r);
1154
- return /* @__PURE__ */ f(ao, { scope: r, forceMount: t, children: c.Children.map(o, (s) => /* @__PURE__ */ f(j, { present: t || n.open, children: /* @__PURE__ */ f(Ir, { asChild: !0, container: a, children: s }) })) });
1152
+ }), Jt = (e) => {
1153
+ const { __scopeDialog: t, forceMount: r, children: o, container: a } = e, n = I(Ve, t);
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
- Zr.displayName = Ve;
1157
- var we = "DialogOverlay", Qr = c.forwardRef(
1158
- (e, r) => {
1159
- const t = Kr(we, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, n = I(we, e.__scopeDialog);
1160
- return n.modal ? /* @__PURE__ */ f(j, { present: o || n.open, children: /* @__PURE__ */ f(so, { ...a, ref: r }) }) : null;
1156
+ Jt.displayName = Ve;
1157
+ var be = "DialogOverlay", er = c.forwardRef(
1158
+ (e, t) => {
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
- Qr.displayName = we;
1164
- var io = /* @__PURE__ */ Dr("DialogOverlay.RemoveScroll"), so = c.forwardRef(
1165
- (e, r) => {
1166
- const { __scopeDialog: t, ...o } = e, a = I(we, t);
1163
+ er.displayName = be;
1164
+ var lo = /* @__PURE__ */ Ot("DialogOverlay.RemoveScroll"), uo = c.forwardRef(
1165
+ (e, t) => {
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(Vr, { as: io, 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),
1174
1174
  ...o,
1175
- ref: r,
1175
+ ref: t,
1176
1176
  style: { pointerEvents: "auto", ...o.style }
1177
1177
  }
1178
1178
  ) })
1179
1179
  );
1180
1180
  }
1181
- ), Y = "DialogContent", Jr = c.forwardRef(
1182
- (e, r) => {
1183
- const t = Kr(Y, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, n = I(Y, e.__scopeDialog);
1184
- return /* @__PURE__ */ f(j, { present: o || n.open, children: n.modal ? /* @__PURE__ */ f(co, { ...a, ref: r }) : /* @__PURE__ */ f(lo, { ...a, ref: r }) });
1181
+ ), X = "DialogContent", tr = c.forwardRef(
1182
+ (e, 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
- Jr.displayName = Y;
1188
- var co = c.forwardRef(
1189
- (e, r) => {
1190
- const t = I(Y, e.__scopeDialog), o = c.useRef(null), a = O(r, t.contentRef, o);
1187
+ tr.displayName = X;
1188
+ var fo = c.forwardRef(
1189
+ (e, t) => {
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 no(n);
1193
+ if (n) return io(n);
1194
1194
  }, []), /* @__PURE__ */ f(
1195
- et,
1195
+ rr,
1196
1196
  {
1197
1197
  ...e,
1198
1198
  ref: a,
1199
- trapFocus: t.open,
1199
+ trapFocus: r.open,
1200
1200
  disableOutsidePointerEvents: !0,
1201
1201
  onCloseAutoFocus: A(e.onCloseAutoFocus, (n) => {
1202
1202
  var s;
1203
- n.preventDefault(), (s = t.triggerRef.current) == null || s.focus();
1203
+ n.preventDefault(), (s = r.triggerRef.current) == null || s.focus();
1204
1204
  }),
1205
1205
  onPointerDownOutside: A(e.onPointerDownOutside, (n) => {
1206
1206
  const s = n.detail.originalEvent, i = s.button === 0 && s.ctrlKey === !0;
@@ -1213,35 +1213,35 @@ var co = c.forwardRef(
1213
1213
  }
1214
1214
  );
1215
1215
  }
1216
- ), lo = c.forwardRef(
1217
- (e, r) => {
1218
- const t = I(Y, e.__scopeDialog), o = c.useRef(!1), a = c.useRef(!1);
1216
+ ), po = c.forwardRef(
1217
+ (e, t) => {
1218
+ const r = I(X, e.__scopeDialog), o = c.useRef(!1), a = c.useRef(!1);
1219
1219
  return /* @__PURE__ */ f(
1220
- et,
1220
+ rr,
1221
1221
  {
1222
1222
  ...e,
1223
- ref: r,
1223
+ ref: t,
1224
1224
  trapFocus: !1,
1225
1225
  disableOutsidePointerEvents: !1,
1226
1226
  onCloseAutoFocus: (n) => {
1227
1227
  var s, i;
1228
- (s = e.onCloseAutoFocus) == null || s.call(e, n), n.defaultPrevented || (o.current || (i = t.triggerRef.current) == null || i.focus(), n.preventDefault()), o.current = !1, a.current = !1;
1228
+ (s = e.onCloseAutoFocus) == null || s.call(e, n), n.defaultPrevented || (o.current || (i = r.triggerRef.current) == null || i.focus(), n.preventDefault()), o.current = !1, a.current = !1;
1229
1229
  },
1230
1230
  onInteractOutside: (n) => {
1231
1231
  var u, l;
1232
1232
  (u = e.onInteractOutside) == null || u.call(e, n), n.defaultPrevented || (o.current = !0, n.detail.originalEvent.type === "pointerdown" && (a.current = !0));
1233
1233
  const s = n.target;
1234
- ((l = t.triggerRef.current) == null ? void 0 : l.contains(s)) && n.preventDefault(), n.detail.originalEvent.type === "focusin" && a.current && n.preventDefault();
1234
+ ((l = r.triggerRef.current) == null ? void 0 : l.contains(s)) && n.preventDefault(), n.detail.originalEvent.type === "focusin" && a.current && n.preventDefault();
1235
1235
  }
1236
1236
  }
1237
1237
  );
1238
1238
  }
1239
- ), et = c.forwardRef(
1240
- (e, r) => {
1241
- const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: n, ...s } = e, i = I(Y, t), u = c.useRef(null), l = O(r, u);
1242
- return gn(), /* @__PURE__ */ D(te, { children: [
1239
+ ), rr = c.forwardRef(
1240
+ (e, t) => {
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 yn(), /* @__PURE__ */ D(re, { children: [
1243
1243
  /* @__PURE__ */ f(
1244
- $r,
1244
+ It,
1245
1245
  {
1246
1246
  asChild: !0,
1247
1247
  loop: !0,
@@ -1249,7 +1249,7 @@ var co = c.forwardRef(
1249
1249
  onMountAutoFocus: a,
1250
1250
  onUnmountAutoFocus: n,
1251
1251
  children: /* @__PURE__ */ f(
1252
- Or,
1252
+ $t,
1253
1253
  {
1254
1254
  role: "dialog",
1255
1255
  id: i.contentId,
@@ -1263,66 +1263,67 @@ var co = c.forwardRef(
1263
1263
  )
1264
1264
  }
1265
1265
  ),
1266
- /* @__PURE__ */ D(te, { children: [
1267
- /* @__PURE__ */ f(uo, { titleId: i.titleId }),
1268
- /* @__PURE__ */ f(po, { contentRef: u, descriptionId: i.descriptionId })
1266
+ /* @__PURE__ */ D(re, { children: [
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", rt = c.forwardRef(
1273
- (e, r) => {
1274
- const { __scopeDialog: t, ...o } = e, a = I(ze, t);
1275
- return /* @__PURE__ */ f(T.h2, { id: a.titleId, ...o, ref: r });
1272
+ ), ze = "DialogTitle", nr = c.forwardRef(
1273
+ (e, t) => {
1274
+ const { __scopeDialog: r, ...o } = e, a = I(ze, r);
1275
+ return /* @__PURE__ */ f(T.h2, { id: a.titleId, ...o, ref: t });
1276
1276
  }
1277
1277
  );
1278
- rt.displayName = ze;
1279
- var tt = "DialogDescription", nt = c.forwardRef(
1280
- (e, r) => {
1281
- const { __scopeDialog: t, ...o } = e, a = I(tt, t);
1282
- return /* @__PURE__ */ f(T.p, { id: a.descriptionId, ...o, ref: r });
1278
+ nr.displayName = ze;
1279
+ var or = "DialogDescription", ar = c.forwardRef(
1280
+ (e, t) => {
1281
+ const { __scopeDialog: r, ...o } = e, a = I(or, r);
1282
+ return /* @__PURE__ */ f(T.p, { id: a.descriptionId, ...o, ref: t });
1283
1283
  }
1284
1284
  );
1285
- nt.displayName = tt;
1286
- var ot = "DialogClose", at = c.forwardRef(
1287
- (e, r) => {
1288
- const { __scopeDialog: t, ...o } = e, a = I(ot, t);
1285
+ ar.displayName = or;
1286
+ var ir = "DialogClose", sr = c.forwardRef(
1287
+ (e, t) => {
1288
+ const { __scopeDialog: r, ...o } = e, a = I(ir, r);
1289
1289
  return /* @__PURE__ */ f(
1290
1290
  T.button,
1291
1291
  {
1292
1292
  type: "button",
1293
1293
  ...o,
1294
- ref: r,
1294
+ ref: t,
1295
1295
  onClick: A(e.onClick, () => a.onOpenChange(!1))
1296
1296
  }
1297
1297
  );
1298
1298
  }
1299
1299
  );
1300
- at.displayName = ot;
1300
+ sr.displayName = ir;
1301
1301
  function Ye(e) {
1302
1302
  return e ? "open" : "closed";
1303
1303
  }
1304
- var it = "DialogTitleWarning", [ei, st] = It(it, {
1305
- contentName: Y,
1304
+ var cr = "DialogTitleWarning", [ti, lr] = Fr(cr, {
1305
+ contentName: X,
1306
1306
  titleName: ze,
1307
1307
  docsSlug: "dialog"
1308
- }), uo = ({ titleId: e }) => {
1309
- const r = st(it), t = `\`${r.contentName}\` requires a \`${r.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
- If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
1311
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
1312
1312
 
1313
- For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;
1313
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
1314
1314
  return c.useEffect(() => {
1315
- e && (document.getElementById(e) || console.error(t));
1316
- }, [t, e]), null;
1317
- }, fo = "DialogDescriptionWarning", po = ({ contentRef: e, descriptionId: r }) => {
1318
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${st(fo).contentName}}.`;
1315
+ e && (document.getElementById(e) || console.error(r));
1316
+ }, [r, e]), null;
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
- r && a && (document.getElementById(r) || console.warn(o));
1323
- }, [o, e, r]), null;
1324
- }, ho = Xr, vo = Gr, mo = Zr, go = Qr, _o = Jr, he = rt, wo = nt, bo = at;
1325
- function yo(e) {
1322
+ t && a && (document.getElementById(t) || console.warn(o));
1323
+ }, [o, e, t]), null;
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) {
1326
1327
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1327
1328
  }
1328
1329
  var $e = { exports: {} };
@@ -1331,12 +1332,12 @@ var $e = { exports: {} };
1331
1332
  Licensed under the MIT License (MIT), see
1332
1333
  http://jedwatson.github.io/classnames
1333
1334
  */
1334
- var pr;
1335
- function So() {
1336
- return pr || (pr = 1, (function(e) {
1335
+ var ht;
1336
+ function Po() {
1337
+ return ht || (ht = 1, (function(e) {
1337
1338
  (function() {
1338
- var r = {}.hasOwnProperty;
1339
- function t() {
1339
+ var t = {}.hasOwnProperty;
1340
+ function r() {
1340
1341
  for (var n = "", s = 0; s < arguments.length; s++) {
1341
1342
  var i = arguments[s];
1342
1343
  i && (n = a(n, o.call(this, i)));
@@ -1349,52 +1350,54 @@ function So() {
1349
1350
  if (typeof n != "object")
1350
1351
  return "";
1351
1352
  if (Array.isArray(n))
1352
- return t.apply(this, n);
1353
+ return r.apply(this, n);
1353
1354
  if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
1354
1355
  return n.toString();
1355
1356
  var s = "";
1356
1357
  for (var i in n)
1357
- r.call(n, i) && n[i] && (s = a(s, this && this[i] || i));
1358
+ t.call(n, i) && n[i] && (s = a(s, this && this[i] || i));
1358
1359
  return s;
1359
1360
  }
1360
1361
  function a(n, s) {
1361
1362
  return s ? n ? n + " " + s : n + s : n;
1362
1363
  }
1363
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1364
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1364
1365
  })();
1365
1366
  })($e)), $e.exports;
1366
1367
  }
1367
- var Eo = So();
1368
- const X = /* @__PURE__ */ yo(Eo), ct = Dt(null), Co = {}, Po = "_drawerSmallScreenAnimation_khfax_1", xo = "_drawerLargeScreenAnimationRight_khfax_1", Ro = "_drawerLargeScreenAnimationLeft_khfax_1", No = "_slideDown_khfax_1", Ao = "_overlayAnimation_khfax_1", Do = {
1369
- "purpur-drawer-content": "_purpur-drawer-content_khfax_1",
1370
- drawerSmallScreenAnimation: Po,
1371
- "purpur-drawer-content--left": "_purpur-drawer-content--left_khfax_15",
1372
- "purpur-drawer-content--right": "_purpur-drawer-content--right_khfax_18",
1373
- "purpur-drawer-content--fit-to-content": "_purpur-drawer-content--fit-to-content_khfax_21",
1374
- drawerLargeScreenAnimationRight: xo,
1375
- drawerLargeScreenAnimationLeft: Ro,
1376
- "purpur-drawer-content__content-container": "_purpur-drawer-content__content-container_khfax_51",
1377
- "purpur-drawer-content__drawer-frame": "_purpur-drawer-content__drawer-frame_khfax_56",
1378
- slideDown: No,
1379
- "purpur-drawer-content__description": "_purpur-drawer-content__description_khfax_66",
1380
- "purpur-drawer-overlay": "_purpur-drawer-overlay_khfax_77",
1381
- overlayAnimation: Ao
1382
- }, To = {
1383
- "purpur-drawer-container--header": "_purpur-drawer-container--header_1u45h_1",
1384
- "purpur-drawer-container--body": "_purpur-drawer-container--body_1u45h_10",
1385
- "purpur-drawer-container--sticky": "_purpur-drawer-container--sticky_1u45h_18",
1386
- "purpur-drawer-container--footer": "_purpur-drawer-container--footer_1u45h_26"
1387
- }, Oo = X.bind(To), Me = "purpur-drawer-container", ee = B(
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
+ "purpur-drawer-content": "_purpur-drawer-content_71yig_1",
1371
+ slideUp: No,
1372
+ slideDown: xo,
1373
+ "purpur-drawer-content--left": "_purpur-drawer-content--left_71yig_21",
1374
+ "purpur-drawer-content--right": "_purpur-drawer-content--right_71yig_24",
1375
+ "purpur-drawer-content--fit-to-content": "_purpur-drawer-content--fit-to-content_71yig_27",
1376
+ slideInRight: Ao,
1377
+ slideInLeft: Do,
1378
+ slideOutRight: To,
1379
+ slideOutLeft: Oo,
1380
+ "purpur-drawer-content__content-container": "_purpur-drawer-content__content-container_71yig_63",
1381
+ "purpur-drawer-content__description": "_purpur-drawer-content__description_71yig_68",
1382
+ "purpur-drawer-overlay": "_purpur-drawer-overlay_71yig_79",
1383
+ fadeIn: Lo,
1384
+ fadeOut: $o
1385
+ }, Io = {
1386
+ "purpur-drawer-container--header": "_purpur-drawer-container--header_1bcla_1",
1387
+ "purpur-drawer-container--body": "_purpur-drawer-container--body_1bcla_4",
1388
+ "purpur-drawer-container--sticky": "_purpur-drawer-container--sticky_1bcla_12",
1389
+ "purpur-drawer-container--footer": "_purpur-drawer-container--footer_1bcla_20"
1390
+ }, ko = ae.bind(Io), Me = "purpur-drawer-container", ee = V(
1388
1391
  ({
1389
1392
  ["data-testid"]: e = "purpur-drawer-container",
1390
- children: r,
1391
- className: t,
1393
+ children: t,
1394
+ className: r,
1392
1395
  variant: o = "body",
1393
1396
  stickyFooter: a,
1394
1397
  ...n
1395
1398
  }, s) => {
1396
- const i = Oo([
1397
- t,
1399
+ const i = ko([
1400
+ r,
1398
1401
  Me,
1399
1402
  {
1400
1403
  [`${Me}--${o}`]: o
@@ -1403,56 +1406,58 @@ const X = /* @__PURE__ */ yo(Eo), ct = Dt(null), Co = {}, Po = "_drawerSmallScre
1403
1406
  [`${Me}--sticky`]: a
1404
1407
  }
1405
1408
  ]);
1406
- return /* @__PURE__ */ f("div", { className: i, "data-testid": e, ref: s, ...n, children: r });
1409
+ return /* @__PURE__ */ f("div", { className: i, "data-testid": e, ref: s, ...n, children: t });
1407
1410
  }
1408
1411
  );
1409
1412
  ee.displayName = "DrawerContainer";
1410
- const Lo = {
1411
- "purpur-drawer-frame": "_purpur-drawer-frame_1s8hq_1",
1412
- "purpur-drawer-frame--left": "_purpur-drawer-frame--left_1s8hq_12",
1413
- "purpur-drawer-frame--right": "_purpur-drawer-frame--right_1s8hq_16",
1414
- "purpur-drawer-frame--sticky-footer": "_purpur-drawer-frame--sticky-footer_1s8hq_21",
1415
- "purpur-drawer-frame__header": "_purpur-drawer-frame__header_1s8hq_24",
1416
- "purpur-drawer-frame__body": "_purpur-drawer-frame__body_1s8hq_27",
1417
- "purpur-drawer-frame--fit-to-content": "_purpur-drawer-frame--fit-to-content_1s8hq_31",
1418
- "purpur-drawer-frame__footer": "_purpur-drawer-frame__footer_1s8hq_40",
1419
- "purpur-drawer-frame__content-container": "_purpur-drawer-frame__content-container_1s8hq_43",
1420
- "purpur-drawer-frame__content-container--no-footer": "_purpur-drawer-frame__content-container--no-footer_1s8hq_48"
1421
- }, $o = {
1413
+ const Wo = {
1414
+ "purpur-drawer-frame": "_purpur-drawer-frame_1didd_1",
1415
+ "purpur-drawer-frame--without-back-button": "_purpur-drawer-frame--without-back-button_1didd_11",
1416
+ "purpur-drawer-frame__header": "_purpur-drawer-frame__header_1didd_11",
1417
+ "purpur-drawer-frame--with-back-button": "_purpur-drawer-frame--with-back-button_1didd_14",
1418
+ "purpur-drawer-frame--left": "_purpur-drawer-frame--left_1didd_18",
1419
+ "purpur-drawer-frame--right": "_purpur-drawer-frame--right_1didd_22",
1420
+ "purpur-drawer-frame--sticky-footer": "_purpur-drawer-frame--sticky-footer_1didd_33",
1421
+ "purpur-drawer-frame__body": "_purpur-drawer-frame__body_1didd_39",
1422
+ "purpur-drawer-frame--fit-to-content": "_purpur-drawer-frame--fit-to-content_1didd_43",
1423
+ "purpur-drawer-frame__footer": "_purpur-drawer-frame__footer_1didd_52",
1424
+ "purpur-drawer-frame__content-container": "_purpur-drawer-frame__content-container_1didd_55",
1425
+ "purpur-drawer-frame__content-container--no-footer": "_purpur-drawer-frame__content-container--no-footer_1didd_60"
1426
+ }, Fo = {
1422
1427
  "purpur-drawer-handle": "_purpur-drawer-handle_3n0ew_1"
1423
- }, Mo = (e, r, t, o, a, n) => ({
1428
+ }, jo = (e, t, r, o, a, n) => ({
1424
1429
  onPointerDown: (l) => {
1425
1430
  e.current = { y: l.clientY };
1426
1431
  },
1427
1432
  onPointerMove: (l) => {
1428
1433
  if (!e.current)
1429
1434
  return;
1430
- const d = l.clientY - e.current.y, p = !!r.current, h = Math.max(0, d), m = l.pointerType === "touch" ? 10 : 2, w = { y: h }, v = { originalEvent: l, delta: w };
1431
- p ? (r.current = w, o(v)) : hr(w, 0) ? (r.current = w, t(), 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);
1432
1437
  },
1433
1438
  onPointerUp: (l) => {
1434
- const d = r.current, p = l.target;
1435
- if (p.hasPointerCapture(l.pointerId) && p.releasePointerCapture(l.pointerId), r.current = null, e.current = null, d) {
1439
+ const d = t.current, p = l.target;
1440
+ if (p.hasPointerCapture(l.pointerId) && p.releasePointerCapture(l.pointerId), t.current = null, e.current = null, d) {
1436
1441
  const h = l.currentTarget, m = { originalEvent: l, delta: d };
1437
- hr(d, 0) && d.y > 200 ? n(m) : a(), h.addEventListener("click", (w) => w.preventDefault(), {
1442
+ vt(d, 0) && d.y > 200 ? n(m) : a(), h.addEventListener("click", (_) => _.preventDefault(), {
1438
1443
  once: !0
1439
1444
  });
1440
1445
  }
1441
1446
  }
1442
- }), hr = (e, r = 0) => Math.abs(e.y) > r, Io = X.bind($o), ko = "purpur-drawer-handle", lt = B(
1447
+ }), vt = (e, t = 0) => Math.abs(e.y) > t, Uo = ae.bind(Fo), Bo = "purpur-drawer-handle", dr = V(
1443
1448
  ({
1444
1449
  ["data-testid"]: e = "purpur-drawer-handle",
1445
- className: r,
1446
- onSwipeStart: t,
1450
+ className: t,
1451
+ onSwipeStart: r,
1447
1452
  onSwipeMove: o,
1448
1453
  onSwipeCancel: a,
1449
1454
  onSwipeEnd: n,
1450
1455
  ...s
1451
1456
  }, i) => {
1452
- const u = Io([r, ko]), l = ke.useRef(null), d = ke.useRef(null), { onPointerDown: p, onPointerMove: h, onPointerUp: m } = Mo(
1457
+ const u = Uo([t, Bo]), l = ke.useRef(null), d = ke.useRef(null), { onPointerDown: p, onPointerMove: h, onPointerUp: m } = jo(
1453
1458
  d,
1454
1459
  l,
1455
- t,
1460
+ r,
1456
1461
  o,
1457
1462
  a,
1458
1463
  n
@@ -1471,25 +1476,25 @@ const Lo = {
1471
1476
  );
1472
1477
  }
1473
1478
  );
1474
- lt.displayName = "DrawerHandle";
1475
- const Wo = {
1479
+ dr.displayName = "DrawerHandle";
1480
+ const Ho = {
1476
1481
  LG: "lg"
1477
1482
  };
1478
- function Fo(e) {
1483
+ function Vo(e) {
1479
1484
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1480
1485
  }
1481
- var vr = { exports: {} };
1486
+ var mt = { exports: {} };
1482
1487
  /*!
1483
1488
  Copyright (c) 2018 Jed Watson.
1484
1489
  Licensed under the MIT License (MIT), see
1485
1490
  http://jedwatson.github.io/classnames
1486
1491
  */
1487
- var mr;
1488
- function Uo() {
1489
- return mr || (mr = 1, (function(e) {
1492
+ var gt;
1493
+ function zo() {
1494
+ return gt || (gt = 1, (function(e) {
1490
1495
  (function() {
1491
- var r = {}.hasOwnProperty;
1492
- function t() {
1496
+ var t = {}.hasOwnProperty;
1497
+ function r() {
1493
1498
  for (var n = "", s = 0; s < arguments.length; s++) {
1494
1499
  var i = arguments[s];
1495
1500
  i && (n = a(n, o.call(this, i)));
@@ -1502,68 +1507,70 @@ function Uo() {
1502
1507
  if (typeof n != "object")
1503
1508
  return "";
1504
1509
  if (Array.isArray(n))
1505
- return t.apply(this, n);
1510
+ return r.apply(this, n);
1506
1511
  if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
1507
1512
  return n.toString();
1508
1513
  var s = "";
1509
1514
  for (var i in n)
1510
- r.call(n, i) && n[i] && (s = a(s, this && this[i] || i));
1515
+ t.call(n, i) && n[i] && (s = a(s, this && this[i] || i));
1511
1516
  return s;
1512
1517
  }
1513
1518
  function a(n, s) {
1514
1519
  return s ? n ? n + " " + s : n + s : n;
1515
1520
  }
1516
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1521
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1517
1522
  })();
1518
- })(vr)), vr.exports;
1523
+ })(mt)), mt.exports;
1519
1524
  }
1520
- var Ho = Uo();
1521
- const Bo = /* @__PURE__ */ Fo(Ho), jo = "_rotate_12t9p_1", Vo = "_dash_12t9p_1", zo = {
1525
+ var Yo = zo();
1526
+ const Xo = /* @__PURE__ */ Vo(Yo), qo = "_rotate_12t9p_1", Go = "_dash_12t9p_1", Ko = {
1522
1527
  "purpur-spinner": "_purpur-spinner_12t9p_2",
1523
- rotate: jo,
1528
+ rotate: qo,
1524
1529
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
1525
1530
  "purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
1526
1531
  "purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
1527
1532
  "purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
1528
1533
  "purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
1529
1534
  "purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
1530
- dash: Vo,
1535
+ dash: Go,
1531
1536
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
1532
1537
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
1533
- }, gr = Bo.bind(zo), ae = "purpur-spinner", Yo = {
1538
+ }, _t = Xo.bind(Ko), ie = "purpur-spinner", Zo = {
1534
1539
  SM: "sm"
1535
- }, Xo = ({
1540
+ }, fr = ({
1536
1541
  disabled: e = !1,
1537
- negative: r = !1,
1538
- size: t = Yo.SM,
1539
- ...o
1540
- }) => /* @__PURE__ */ f("div", { className: gr(ae, `${ae}--${t}`), ...o, children: /* @__PURE__ */ f("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ f(
1542
+ negative: t = !1,
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(
1541
1547
  "circle",
1542
1548
  {
1543
- className: gr(`${ae}__circle`, {
1544
- [`${ae}__circle--disabled`]: e,
1545
- [`${ae}__circle--negative`]: r
1549
+ className: _t(`${ie}__circle`, {
1550
+ [`${ie}__circle--disabled`]: e,
1551
+ [`${ie}__circle--negative`]: t
1546
1552
  }),
1547
1553
  cx: "25",
1548
1554
  cy: "25",
1549
1555
  r: "20"
1550
1556
  }
1551
1557
  ) }) });
1552
- function qo(e) {
1558
+ fr.displayName = "Spinner";
1559
+ function Qo(e) {
1553
1560
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1554
1561
  }
1555
- var _r = { exports: {} };
1562
+ var bt = { exports: {} };
1556
1563
  /*!
1557
1564
  Copyright (c) 2018 Jed Watson.
1558
1565
  Licensed under the MIT License (MIT), see
1559
1566
  http://jedwatson.github.io/classnames
1560
1567
  */
1561
- var wr;
1562
- function Go() {
1563
- return wr || (wr = 1, (function(e) {
1568
+ var yt;
1569
+ function Jo() {
1570
+ return yt || (yt = 1, (function(e) {
1564
1571
  (function() {
1565
- var r = {}.hasOwnProperty;
1566
- function t() {
1572
+ var t = {}.hasOwnProperty;
1573
+ function r() {
1567
1574
  for (var n = "", s = 0; s < arguments.length; s++) {
1568
1575
  var i = arguments[s];
1569
1576
  i && (n = a(n, o.call(this, i)));
@@ -1576,52 +1583,53 @@ function Go() {
1576
1583
  if (typeof n != "object")
1577
1584
  return "";
1578
1585
  if (Array.isArray(n))
1579
- return t.apply(this, n);
1586
+ return r.apply(this, n);
1580
1587
  if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
1581
1588
  return n.toString();
1582
1589
  var s = "";
1583
1590
  for (var i in n)
1584
- r.call(n, i) && n[i] && (s = a(s, this && this[i] || i));
1591
+ t.call(n, i) && n[i] && (s = a(s, this && this[i] || i));
1585
1592
  return s;
1586
1593
  }
1587
1594
  function a(n, s) {
1588
1595
  return s ? n ? n + " " + s : n + s : n;
1589
1596
  }
1590
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1597
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1591
1598
  })();
1592
- })(_r)), _r.exports;
1593
- }
1594
- var Ko = Go();
1595
- const Zo = /* @__PURE__ */ qo(Ko), Qo = {
1596
- "purpur-button": "_purpur-button_1goi7_1",
1597
- "purpur-button--xs": "_purpur-button--xs_1goi7_33",
1598
- "purpur-button--icon-only": "_purpur-button--icon-only_1goi7_36",
1599
- "purpur-button--sm": "_purpur-button--sm_1goi7_39",
1600
- "purpur-button--md": "_purpur-button--md_1goi7_45",
1601
- "purpur-button--lg": "_purpur-button--lg_1goi7_51",
1602
- "purpur-button--full-width": "_purpur-button--full-width_1goi7_57",
1603
- "purpur-button--primary": "_purpur-button--primary_1goi7_60",
1604
- "purpur-button--disabled": "_purpur-button--disabled_1goi7_64",
1605
- "purpur-button--primary-negative": "_purpur-button--primary-negative_1goi7_70",
1606
- "purpur-button--secondary": "_purpur-button--secondary_1goi7_82",
1607
- "purpur-button--secondary-negative": "_purpur-button--secondary-negative_1goi7_93",
1608
- "purpur-button--expressive": "_purpur-button--expressive_1goi7_104",
1609
- "purpur-button--expressive-negative": "_purpur-button--expressive-negative_1goi7_114",
1610
- "purpur-button--negative": "_purpur-button--negative_1goi7_126",
1611
- "purpur-button--destructive": "_purpur-button--destructive_1goi7_133",
1612
- "purpur-button--destructive-negative": "_purpur-button--destructive-negative_1goi7_143",
1613
- "purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_1goi7_153",
1614
- "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1goi7_166",
1615
- "purpur-button--text-negative": "_purpur-button--text-negative_1goi7_181",
1616
- "purpur-button--text": "_purpur-button--text_1goi7_181"
1599
+ })(bt)), bt.exports;
1600
+ }
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"
1617
1625
  }, Ie = {
1618
1626
  TERTIARY_PURPLE: "tertiary-purple",
1619
1627
  TEXT: "text"
1620
- }, Jo = Zo.bind(Qo), V = "purpur-button", Ue = B(
1628
+ }, wt = ta.bind(ra), U = "purpur-button", je = V(
1621
1629
  ({
1622
1630
  children: e,
1623
- className: r,
1624
- disabled: t = !1,
1631
+ className: t,
1632
+ disabled: r = !1,
1625
1633
  fullWidth: o = !1,
1626
1634
  iconOnly: a,
1627
1635
  loading: n = !1,
@@ -1634,22 +1642,22 @@ const Zo = /* @__PURE__ */ qo(Ko), Qo = {
1634
1642
  }, h) => {
1635
1643
  if (a && l === "destructive")
1636
1644
  return null;
1637
- const m = Jo(
1645
+ const m = wt(
1638
1646
  [
1639
- V,
1640
- `${V}--${s ? `${l}-negative` : l}`,
1641
- `${V}--${u}`
1647
+ U,
1648
+ `${U}--${s ? `${l}-negative` : l}`,
1649
+ `${U}--${u}`
1642
1650
  ],
1643
1651
  {
1644
- [`${V}--icon-only`]: a,
1645
- [`${V}--negative`]: s,
1646
- [`${V}--full-width`]: o,
1647
- [`${V}--disabled`]: t || n
1652
+ [`${U}--icon-only`]: a,
1653
+ [`${U}--negative`]: s,
1654
+ [`${U}--full-width`]: o,
1655
+ [`${U}--disabled`]: r || n
1648
1656
  },
1649
- r
1650
- ), w = (g) => {
1651
- t || n ? g.preventDefault() : i && i(g);
1652
- }, v = !!p["aria-disabled"] || t || n;
1657
+ t
1658
+ ), _ = (g) => {
1659
+ r || n ? g.preventDefault() : i && i(g);
1660
+ }, v = !!p["aria-disabled"] || r || n;
1653
1661
  return /* @__PURE__ */ D(
1654
1662
  "button",
1655
1663
  {
@@ -1657,15 +1665,16 @@ const Zo = /* @__PURE__ */ qo(Ko), Qo = {
1657
1665
  type: d,
1658
1666
  ref: h,
1659
1667
  "aria-disabled": v,
1660
- onClick: w,
1668
+ onClick: _,
1661
1669
  ...p,
1662
1670
  children: [
1663
1671
  n && /* @__PURE__ */ f(
1664
- Xo,
1672
+ fr,
1665
1673
  {
1666
- size: u === Wo.LG ? "xs" : "xxs",
1674
+ size: u === Ho.LG ? "xs" : "xxs",
1667
1675
  negative: s,
1668
- disabled: v
1676
+ disabled: v,
1677
+ className: wt(`${U}__spinner`)
1669
1678
  }
1670
1679
  ),
1671
1680
  " ",
@@ -1675,22 +1684,22 @@ const Zo = /* @__PURE__ */ qo(Ko), Qo = {
1675
1684
  );
1676
1685
  }
1677
1686
  );
1678
- Ue.displayName = "Button";
1679
- function ea(e) {
1687
+ je.displayName = "Button";
1688
+ function na(e) {
1680
1689
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1681
1690
  }
1682
- var br = { exports: {} };
1691
+ var St = { exports: {} };
1683
1692
  /*!
1684
1693
  Copyright (c) 2018 Jed Watson.
1685
1694
  Licensed under the MIT License (MIT), see
1686
1695
  http://jedwatson.github.io/classnames
1687
1696
  */
1688
- var yr;
1689
- function ra() {
1690
- return yr || (yr = 1, (function(e) {
1697
+ var Et;
1698
+ function oa() {
1699
+ return Et || (Et = 1, (function(e) {
1691
1700
  (function() {
1692
- var r = {}.hasOwnProperty;
1693
- function t() {
1701
+ var t = {}.hasOwnProperty;
1702
+ function r() {
1694
1703
  for (var n = "", s = 0; s < arguments.length; s++) {
1695
1704
  var i = arguments[s];
1696
1705
  i && (n = a(n, o(i)));
@@ -1703,23 +1712,23 @@ function ra() {
1703
1712
  if (typeof n != "object")
1704
1713
  return "";
1705
1714
  if (Array.isArray(n))
1706
- return t.apply(null, n);
1715
+ return r.apply(null, n);
1707
1716
  if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
1708
1717
  return n.toString();
1709
1718
  var s = "";
1710
1719
  for (var i in n)
1711
- r.call(n, i) && n[i] && (s = a(s, i));
1720
+ t.call(n, i) && n[i] && (s = a(s, i));
1712
1721
  return s;
1713
1722
  }
1714
1723
  function a(n, s) {
1715
1724
  return s ? n ? n + " " + s : n + s : n;
1716
1725
  }
1717
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1726
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1718
1727
  })();
1719
- })(br)), br.exports;
1728
+ })(St)), St.exports;
1720
1729
  }
1721
- var ta = ra();
1722
- const na = /* @__PURE__ */ ea(ta), ve = {
1730
+ var aa = oa();
1731
+ const ia = /* @__PURE__ */ na(aa), ve = {
1723
1732
  "purpur-heading": "_purpur-heading_vo751_1",
1724
1733
  "purpur-heading--hyphens": "_purpur-heading--hyphens_vo751_8",
1725
1734
  "purpur-heading--negative": "_purpur-heading--negative_vo751_11",
@@ -1739,45 +1748,45 @@ const na = /* @__PURE__ */ ea(ta), ve = {
1739
1748
  "purpur-heading--display-50": "_purpur-heading--display-50_vo751_92",
1740
1749
  "purpur-heading--display-100": "_purpur-heading--display-100_vo751_98",
1741
1750
  "purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
1742
- }, He = {
1751
+ }, Ue = {
1743
1752
  TITLE100: "title-100",
1744
1753
  TITLE200: "title-200"
1745
1754
  }, me = "purpur-heading", Be = ({
1746
1755
  children: e,
1747
- className: r = "",
1748
- enableHyphenation: t = !1,
1756
+ className: t = "",
1757
+ enableHyphenation: r = !1,
1749
1758
  negative: o = !1,
1750
1759
  tag: a,
1751
- variant: n = He.TITLE100,
1760
+ variant: n = Ue.TITLE100,
1752
1761
  ...s
1753
1762
  }) => {
1754
- const i = a, u = na([
1755
- r,
1763
+ const i = a, u = ia([
1764
+ t,
1756
1765
  ve[me],
1757
1766
  ve[`${me}--${n}`],
1758
1767
  {
1759
- [ve[`${me}--hyphens`]]: t,
1768
+ [ve[`${me}--hyphens`]]: r,
1760
1769
  [ve[`${me}--negative`]]: o
1761
1770
  }
1762
1771
  ]);
1763
1772
  return /* @__PURE__ */ f(i, { className: u, ...s, children: e });
1764
1773
  };
1765
1774
  Be.displayName = "Heading";
1766
- function oa(e) {
1775
+ function sa(e) {
1767
1776
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1768
1777
  }
1769
- var Sr = { exports: {} };
1778
+ var Ct = { exports: {} };
1770
1779
  /*!
1771
1780
  Copyright (c) 2018 Jed Watson.
1772
1781
  Licensed under the MIT License (MIT), see
1773
1782
  http://jedwatson.github.io/classnames
1774
1783
  */
1775
- var Er;
1776
- function aa() {
1777
- return Er || (Er = 1, (function(e) {
1784
+ var Pt;
1785
+ function ca() {
1786
+ return Pt || (Pt = 1, (function(e) {
1778
1787
  (function() {
1779
- var r = {}.hasOwnProperty;
1780
- function t() {
1788
+ var t = {}.hasOwnProperty;
1789
+ function r() {
1781
1790
  for (var n = "", s = 0; s < arguments.length; s++) {
1782
1791
  var i = arguments[s];
1783
1792
  i && (n = a(n, o.call(this, i)));
@@ -1790,23 +1799,23 @@ function aa() {
1790
1799
  if (typeof n != "object")
1791
1800
  return "";
1792
1801
  if (Array.isArray(n))
1793
- return t.apply(this, n);
1802
+ return r.apply(this, n);
1794
1803
  if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
1795
1804
  return n.toString();
1796
1805
  var s = "";
1797
1806
  for (var i in n)
1798
- r.call(n, i) && n[i] && (s = a(s, this && this[i] || i));
1807
+ t.call(n, i) && n[i] && (s = a(s, this && this[i] || i));
1799
1808
  return s;
1800
1809
  }
1801
1810
  function a(n, s) {
1802
1811
  return s ? n ? n + " " + s : n + s : n;
1803
1812
  }
1804
- e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1813
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1805
1814
  })();
1806
- })(Sr)), Sr.exports;
1815
+ })(Ct)), Ct.exports;
1807
1816
  }
1808
- var ia = aa();
1809
- const sa = /* @__PURE__ */ oa(ia), ca = {
1817
+ var la = ca();
1818
+ const ua = /* @__PURE__ */ sa(la), da = {
1810
1819
  "purpur-icon": "_purpur-icon_8u1lq_1",
1811
1820
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
1812
1821
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -1814,101 +1823,101 @@ const sa = /* @__PURE__ */ oa(ia), ca = {
1814
1823
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
1815
1824
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
1816
1825
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
1817
- }, la = sa.bind(ca), Cr = "purpur-icon", ua = "md", da = (e) => e.filter((r) => Object.keys(r).length >= 1).map((r) => `${r.name}="${r.value}"`).join(" "), fa = ({ content: e = "", title: r } = {}) => {
1818
- const 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 } = {}) => {
1827
+ const r = [
1819
1828
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
1820
1829
  { name: "fill", value: "currentColor" },
1821
1830
  { name: "viewBox", value: "0 0 24 24" },
1822
- r ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
1823
- ], o = r ? `<title>${r}</title>` : "";
1824
- return `<svg ${da(t)}>${o}${e}</svg>`;
1825
- }, pa = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Xe = ({ svg: e, allyTitle: r, className: t, size: o = ua, ...a }) => {
1826
- const n = fa({
1827
- content: pa(e.svg),
1828
- title: r
1829
- }), s = la(t, Cr, `${Cr}--${o}`);
1831
+ t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
1832
+ ], o = t ? `<title>${t}</title>` : "";
1833
+ return `<svg ${ha(r)}>${o}${e}</svg>`;
1834
+ }, ma = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Xe = ({ svg: e, allyTitle: t, className: r, size: o = pa, ...a }) => {
1835
+ const n = va({
1836
+ content: ma(e.svg),
1837
+ title: t
1838
+ }), s = fa(r, Rt, `${Rt}--${o}`);
1830
1839
  return /* @__PURE__ */ f("span", { className: s, dangerouslySetInnerHTML: { __html: n }, ...a });
1831
1840
  };
1832
1841
  Xe.displayName = "Icon";
1833
- const ha = {
1842
+ const ga = {
1834
1843
  name: "arrow-left",
1835
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>',
1836
1845
  keywords: ["arrow-left"],
1837
1846
  category: "utility"
1838
- }, ut = (e) => /* @__PURE__ */ f(Xe, { ...e, svg: ha });
1839
- ut.displayName = "IconArrowLeft";
1840
- const va = {
1847
+ }, pr = (e) => /* @__PURE__ */ f(Xe, { ...e, svg: ga });
1848
+ pr.displayName = "IconArrowLeft";
1849
+ const _a = {
1841
1850
  name: "close",
1842
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>',
1843
1852
  keywords: ["close"],
1844
1853
  category: "utility"
1845
- }, dt = (e) => /* @__PURE__ */ f(Xe, { ...e, svg: va });
1846
- dt.displayName = "IconClose";
1847
- function Pr(e, r) {
1854
+ }, hr = (e) => /* @__PURE__ */ f(Xe, { ...e, svg: _a });
1855
+ hr.displayName = "IconClose";
1856
+ function Nt(e, t) {
1848
1857
  if (typeof e == "function")
1849
- return e(r);
1850
- e != null && (e.current = r);
1858
+ return e(t);
1859
+ e != null && (e.current = t);
1851
1860
  }
1852
- function ma(...e) {
1853
- return (r) => {
1854
- let t = !1;
1861
+ function ba(...e) {
1862
+ return (t) => {
1863
+ let r = !1;
1855
1864
  const o = e.map((a) => {
1856
- const n = Pr(a, r);
1857
- return !t && typeof n == "function" && (t = !0), n;
1865
+ const n = Nt(a, t);
1866
+ return !r && typeof n == "function" && (r = !0), n;
1858
1867
  });
1859
- if (t)
1868
+ if (r)
1860
1869
  return () => {
1861
1870
  for (let a = 0; a < o.length; a++) {
1862
1871
  const n = o[a];
1863
- typeof n == "function" ? n() : Pr(e[a], null);
1872
+ typeof n == "function" ? n() : Nt(e[a], null);
1864
1873
  }
1865
1874
  };
1866
1875
  };
1867
1876
  }
1868
1877
  // @__NO_SIDE_EFFECTS__
1869
- function ga(e) {
1870
- const r = /* @__PURE__ */ _a(e), t = c.forwardRef((o, a) => {
1871
- const { children: n, ...s } = o, i = c.Children.toArray(n), u = i.find(ba);
1878
+ function ya(e) {
1879
+ const t = /* @__PURE__ */ wa(e), r = c.forwardRef((o, a) => {
1880
+ const { children: n, ...s } = o, i = c.Children.toArray(n), u = i.find(Ea);
1872
1881
  if (u) {
1873
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);
1874
- return /* @__PURE__ */ f(r, { ...s, ref: a, children: c.isValidElement(l) ? c.cloneElement(l, void 0, d) : null });
1883
+ return /* @__PURE__ */ f(t, { ...s, ref: a, children: c.isValidElement(l) ? c.cloneElement(l, void 0, d) : null });
1875
1884
  }
1876
- return /* @__PURE__ */ f(r, { ...s, ref: a, children: n });
1885
+ return /* @__PURE__ */ f(t, { ...s, ref: a, children: n });
1877
1886
  });
1878
- return t.displayName = `${e}.Slot`, t;
1887
+ return r.displayName = `${e}.Slot`, r;
1879
1888
  }
1880
1889
  // @__NO_SIDE_EFFECTS__
1881
- function _a(e) {
1882
- const r = c.forwardRef((t, o) => {
1883
- const { children: a, ...n } = t;
1890
+ function wa(e) {
1891
+ const t = c.forwardRef((r, o) => {
1892
+ const { children: a, ...n } = r;
1884
1893
  if (c.isValidElement(a)) {
1885
- const s = Sa(a), i = ya(n, a.props);
1886
- return a.type !== c.Fragment && (i.ref = o ? ma(o, s) : s), c.cloneElement(a, i);
1894
+ const s = Pa(a), i = Ca(n, a.props);
1895
+ return a.type !== c.Fragment && (i.ref = o ? ba(o, s) : s), c.cloneElement(a, i);
1887
1896
  }
1888
1897
  return c.Children.count(a) > 1 ? c.Children.only(null) : null;
1889
1898
  });
1890
- return r.displayName = `${e}.SlotClone`, r;
1899
+ return t.displayName = `${e}.SlotClone`, t;
1891
1900
  }
1892
- var wa = Symbol("radix.slottable");
1893
- function ba(e) {
1894
- return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === wa;
1901
+ var Sa = Symbol("radix.slottable");
1902
+ function Ea(e) {
1903
+ return c.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Sa;
1895
1904
  }
1896
- function ya(e, r) {
1897
- const t = { ...r };
1898
- for (const o in r) {
1899
- const a = e[o], n = r[o];
1900
- /^on[A-Z]/.test(o) ? a && n ? t[o] = (...s) => {
1905
+ function Ca(e, t) {
1906
+ const r = { ...t };
1907
+ for (const o in t) {
1908
+ const a = e[o], n = t[o];
1909
+ /^on[A-Z]/.test(o) ? a && n ? r[o] = (...s) => {
1901
1910
  n(...s), a(...s);
1902
- } : a && (t[o] = a) : o === "style" ? t[o] = { ...a, ...n } : o === "className" && (t[o] = [a, n].filter(Boolean).join(" "));
1911
+ } : a && (r[o] = a) : o === "style" ? r[o] = { ...a, ...n } : o === "className" && (r[o] = [a, n].filter(Boolean).join(" "));
1903
1912
  }
1904
- return { ...e, ...t };
1913
+ return { ...e, ...r };
1905
1914
  }
1906
- function Sa(e) {
1907
- var r, t;
1908
- let o = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, a = o && "isReactWarning" in o && o.isReactWarning;
1909
- return a ? e.ref : (o = (t = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : t.get, a = o && "isReactWarning" in o && o.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
1915
+ function Pa(e) {
1916
+ var t, r;
1917
+ let o = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, a = o && "isReactWarning" in o && o.isReactWarning;
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);
1910
1919
  }
1911
- var Ea = [
1920
+ var Ra = [
1912
1921
  "a",
1913
1922
  "button",
1914
1923
  "div",
@@ -1925,18 +1934,18 @@ var Ea = [
1925
1934
  "span",
1926
1935
  "svg",
1927
1936
  "ul"
1928
- ], Ca = Ea.reduce((e, r) => {
1929
- const t = /* @__PURE__ */ ga(`Primitive.${r}`), o = c.forwardRef((a, n) => {
1930
- const { asChild: s, ...i } = a, u = s ? t : r;
1937
+ ], Na = Ra.reduce((e, t) => {
1938
+ const r = /* @__PURE__ */ ya(`Primitive.${t}`), o = c.forwardRef((a, n) => {
1939
+ const { asChild: s, ...i } = a, u = s ? r : t;
1931
1940
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(u, { ...i, ref: n });
1932
1941
  });
1933
- return o.displayName = `Primitive.${r}`, { ...e, [r]: o };
1934
- }, {}), Pa = "VisuallyHidden", ft = c.forwardRef(
1935
- (e, r) => /* @__PURE__ */ f(
1936
- Ca.span,
1942
+ return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
1943
+ }, {}), xa = "VisuallyHidden", vr = c.forwardRef(
1944
+ (e, t) => /* @__PURE__ */ f(
1945
+ Na.span,
1937
1946
  {
1938
1947
  ...e,
1939
- ref: r,
1948
+ ref: t,
1940
1949
  style: {
1941
1950
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
1942
1951
  position: "absolute",
@@ -1954,20 +1963,21 @@ var Ea = [
1954
1963
  }
1955
1964
  )
1956
1965
  );
1957
- ft.displayName = Pa;
1958
- var xa = ft;
1959
- const xr = ({ asChild: e, children: r, ...t }) => /* @__PURE__ */ f(xa, { asChild: e, ...t, children: r }), Ra = {
1960
- "purpur-drawer-header__row": "_purpur-drawer-header__row_1yg5w_1",
1961
- "purpur-drawer-header__row--with-back-button": "_purpur-drawer-header__row--with-back-button_1yg5w_6",
1962
- "purpur-drawer-header__left": "_purpur-drawer-header__left_1yg5w_9",
1963
- "purpur-drawer-header__right": "_purpur-drawer-header__right_1yg5w_12",
1964
- "purpur-drawer-header__close-button": "_purpur-drawer-header__close-button_1yg5w_15",
1965
- "purpur-drawer-header__back-button--only-icon": "_purpur-drawer-header__back-button--only-icon_1yg5w_18"
1966
- }, Z = X.bind(Ra), U = "purpur-drawer-header", pt = B(
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(
1967
1977
  ({
1968
1978
  ["data-testid"]: e = "purpur-drawer-header",
1969
- backButton: r,
1970
- backButtonText: t,
1979
+ backButton: t,
1980
+ backButtonText: r,
1971
1981
  backButtonOnlyIcon: o,
1972
1982
  className: a,
1973
1983
  closeButtonAriaLabel: n,
@@ -1976,27 +1986,27 @@ const xr = ({ asChild: e, children: r, ...t }) => /* @__PURE__ */ f(xa, { asChil
1976
1986
  title: u,
1977
1987
  ...l
1978
1988
  }, d) => {
1979
- const p = Z([a, U]);
1989
+ const p = Z([a, B]), h = !!(t && r && i);
1980
1990
  return /* @__PURE__ */ D("div", { className: p, "data-testid": e, ref: d, ...l, children: [
1981
1991
  /* @__PURE__ */ D(
1982
1992
  "div",
1983
1993
  {
1984
1994
  className: Z([
1985
- `${U}__row`,
1995
+ `${B}__row`,
1986
1996
  {
1987
- [`${U}__row--with-back-button`]: r && t && i
1997
+ [`${B}__row--with-back-button`]: h
1988
1998
  }
1989
1999
  ]),
1990
2000
  "data-testid": `${e}-row`,
1991
2001
  children: [
1992
- /* @__PURE__ */ f("div", { className: Z(`${U}__left`), children: r && t && i ? /* @__PURE__ */ D(
1993
- Ue,
2002
+ /* @__PURE__ */ f("div", { className: Z(`${B}__left`), children: h ? /* @__PURE__ */ D(
2003
+ je,
1994
2004
  {
1995
- "aria-label": o ? t : "",
2005
+ "aria-label": o ? r : "",
1996
2006
  className: Z([
1997
- `${U}__back-button`,
2007
+ `${B}__back-button`,
1998
2008
  {
1999
- [`${U}__back-button--only-icon`]: o
2009
+ [`${B}__back-button--only-icon`]: o
2000
2010
  }
2001
2011
  ]),
2002
2012
  "data-testid": `${e}-back-button`,
@@ -2005,80 +2015,80 @@ const xr = ({ asChild: e, children: r, ...t }) => /* @__PURE__ */ f(xa, { asChil
2005
2015
  size: "sm",
2006
2016
  variant: o ? Ie.TERTIARY_PURPLE : Ie.TEXT,
2007
2017
  children: [
2008
- /* @__PURE__ */ f(ut, { size: "sm" }),
2009
- !o && t
2018
+ /* @__PURE__ */ f(pr, { size: "sm" }),
2019
+ !o && r
2010
2020
  ]
2011
2021
  }
2012
- ) : s ? /* @__PURE__ */ D(te, { children: [
2022
+ ) : s ? /* @__PURE__ */ D(re, { children: [
2013
2023
  s,
2014
- /* @__PURE__ */ f(xr, { asChild: !0, children: /* @__PURE__ */ f(he, { children: u }) })
2024
+ /* @__PURE__ */ f(xt, { asChild: !0, children: /* @__PURE__ */ f(he, { children: u }) })
2015
2025
  ] }) : /* @__PURE__ */ f(he, { asChild: !0, children: /* @__PURE__ */ f(
2016
2026
  Be,
2017
2027
  {
2018
2028
  "data-testid": `${e}-title`,
2019
2029
  tag: "h2",
2020
- variant: He.TITLE200,
2030
+ variant: Ue.TITLE200,
2021
2031
  tabIndex: -1,
2022
2032
  children: u
2023
2033
  }
2024
2034
  ) }) }),
2025
- /* @__PURE__ */ f("div", { className: Z(`${U}__right`), children: /* @__PURE__ */ f(bo, { asChild: !0, children: /* @__PURE__ */ f(
2026
- Ue,
2035
+ /* @__PURE__ */ f("div", { className: Z(`${B}__right`), children: /* @__PURE__ */ f(Eo, { asChild: !0, children: /* @__PURE__ */ f(
2036
+ je,
2027
2037
  {
2028
2038
  "aria-label": n,
2029
- className: Z(`${U}__close-button`),
2039
+ className: Z(`${B}__close-button`),
2030
2040
  iconOnly: !0,
2031
2041
  size: "sm",
2032
2042
  variant: Ie.TERTIARY_PURPLE,
2033
- children: /* @__PURE__ */ f(dt, { size: "sm" })
2043
+ children: /* @__PURE__ */ f(hr, { size: "sm" })
2034
2044
  }
2035
2045
  ) }) })
2036
2046
  ]
2037
2047
  }
2038
2048
  ),
2039
- r && t && i && (s ? /* @__PURE__ */ D(te, { children: [
2049
+ h && (s ? /* @__PURE__ */ D(re, { children: [
2040
2050
  s,
2041
- /* @__PURE__ */ f(xr, { asChild: !0, children: /* @__PURE__ */ f(he, { children: u }) })
2051
+ /* @__PURE__ */ f(xt, { asChild: !0, children: /* @__PURE__ */ f(he, { children: u }) })
2042
2052
  ] }) : /* @__PURE__ */ f(he, { asChild: !0, children: /* @__PURE__ */ f(
2043
2053
  Be,
2044
2054
  {
2045
2055
  "data-testid": `${e}-title-with-back-button`,
2046
2056
  tag: "h2",
2047
2057
  tabIndex: -1,
2048
- variant: He.TITLE200,
2058
+ variant: Ue.TITLE200,
2049
2059
  children: u
2050
2060
  }
2051
2061
  ) }))
2052
2062
  ] });
2053
2063
  }
2054
2064
  );
2055
- pt.displayName = "DrawerHeader";
2056
- var Na = c.createContext(void 0);
2057
- function Aa(e) {
2058
- const r = c.useContext(Na);
2059
- return e || r || "ltr";
2065
+ mr.displayName = "DrawerHeader";
2066
+ var Ta = c.createContext(void 0);
2067
+ function Oa(e) {
2068
+ const t = c.useContext(Ta);
2069
+ return e || t || "ltr";
2060
2070
  }
2061
- function Da(e, [r, t]) {
2062
- return Math.min(t, Math.max(r, e));
2071
+ function La(e, [t, r]) {
2072
+ return Math.min(r, Math.max(t, e));
2063
2073
  }
2064
- function Ta(e, r) {
2065
- return c.useReducer((t, o) => r[t][o] ?? t, e);
2074
+ function $a(e, t) {
2075
+ return c.useReducer((r, o) => t[r][o] ?? r, e);
2066
2076
  }
2067
- var qe = "ScrollArea", [ht] = Ar(qe), [Oa, $] = ht(qe), vt = c.forwardRef(
2068
- (e, r) => {
2077
+ var qe = "ScrollArea", [gr] = Tt(qe), [Ma, M] = gr(qe), _r = c.forwardRef(
2078
+ (e, t) => {
2069
2079
  const {
2070
- __scopeScrollArea: t,
2080
+ __scopeScrollArea: r,
2071
2081
  type: o = "hover",
2072
2082
  dir: a,
2073
2083
  scrollHideDelay: n = 600,
2074
2084
  ...s
2075
- } = e, [i, u] = c.useState(null), [l, d] = c.useState(null), [p, h] = c.useState(null), [m, w] = c.useState(null), [v, g] = c.useState(null), [_, b] = c.useState(0), [E, y] = c.useState(0), [C, x] = c.useState(!1), [S, N] = c.useState(!1), P = O(r, (F) => u(F)), R = Aa(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);
2076
2086
  return /* @__PURE__ */ f(
2077
- Oa,
2087
+ Ma,
2078
2088
  {
2079
- scope: t,
2089
+ scope: r,
2080
2090
  type: o,
2081
- dir: R,
2091
+ dir: N,
2082
2092
  scrollHideDelay: n,
2083
2093
  scrollArea: i,
2084
2094
  viewport: l,
@@ -2086,25 +2096,25 @@ var qe = "ScrollArea", [ht] = Ar(qe), [Oa, $] = ht(qe), vt = c.forwardRef(
2086
2096
  content: p,
2087
2097
  onContentChange: h,
2088
2098
  scrollbarX: m,
2089
- onScrollbarXChange: w,
2099
+ onScrollbarXChange: _,
2090
2100
  scrollbarXEnabled: C,
2091
- onScrollbarXEnabledChange: x,
2101
+ onScrollbarXEnabledChange: R,
2092
2102
  scrollbarY: v,
2093
2103
  onScrollbarYChange: g,
2094
2104
  scrollbarYEnabled: S,
2095
- onScrollbarYEnabledChange: N,
2096
- onCornerWidthChange: b,
2097
- onCornerHeightChange: y,
2105
+ onScrollbarYEnabledChange: x,
2106
+ onCornerWidthChange: y,
2107
+ onCornerHeightChange: w,
2098
2108
  children: /* @__PURE__ */ f(
2099
2109
  T.div,
2100
2110
  {
2101
- dir: R,
2111
+ dir: N,
2102
2112
  ...s,
2103
2113
  ref: P,
2104
2114
  style: {
2105
2115
  position: "relative",
2106
2116
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
2107
- "--radix-scroll-area-corner-width": _ + "px",
2117
+ "--radix-scroll-area-corner-width": b + "px",
2108
2118
  "--radix-scroll-area-corner-height": E + "px",
2109
2119
  ...e.style
2110
2120
  }
@@ -2114,11 +2124,11 @@ var qe = "ScrollArea", [ht] = Ar(qe), [Oa, $] = ht(qe), vt = c.forwardRef(
2114
2124
  );
2115
2125
  }
2116
2126
  );
2117
- vt.displayName = qe;
2118
- var mt = "ScrollAreaViewport", gt = c.forwardRef(
2119
- (e, r) => {
2120
- const { __scopeScrollArea: t, children: o, nonce: a, ...n } = e, s = $(mt, t), i = c.useRef(null), u = O(r, i, s.onViewportChange);
2121
- return /* @__PURE__ */ D(te, { children: [
2127
+ _r.displayName = qe;
2128
+ var br = "ScrollAreaViewport", yr = c.forwardRef(
2129
+ (e, t) => {
2130
+ const { __scopeScrollArea: r, children: o, nonce: a, ...n } = e, s = M(br, r), i = c.useRef(null), u = L(t, i, s.onViewportChange);
2131
+ return /* @__PURE__ */ D(re, { children: [
2122
2132
  /* @__PURE__ */ f(
2123
2133
  "style",
2124
2134
  {
@@ -2156,18 +2166,18 @@ var mt = "ScrollAreaViewport", gt = c.forwardRef(
2156
2166
  ] });
2157
2167
  }
2158
2168
  );
2159
- gt.displayName = mt;
2160
- var W = "ScrollAreaScrollbar", _t = c.forwardRef(
2161
- (e, r) => {
2162
- const { forceMount: t, ...o } = e, a = $(W, e.__scopeScrollArea), { onScrollbarXEnabledChange: n, onScrollbarYEnabledChange: s } = a, i = e.orientation === "horizontal";
2169
+ yr.displayName = br;
2170
+ var W = "ScrollAreaScrollbar", wr = c.forwardRef(
2171
+ (e, t) => {
2172
+ const { forceMount: r, ...o } = e, a = M(W, e.__scopeScrollArea), { onScrollbarXEnabledChange: n, onScrollbarYEnabledChange: s } = a, i = e.orientation === "horizontal";
2163
2173
  return c.useEffect(() => (i ? n(!0) : s(!0), () => {
2164
2174
  i ? n(!1) : s(!1);
2165
- }), [i, n, s]), a.type === "hover" ? /* @__PURE__ */ f(La, { ...o, ref: r, forceMount: t }) : a.type === "scroll" ? /* @__PURE__ */ f($a, { ...o, ref: r, forceMount: t }) : a.type === "auto" ? /* @__PURE__ */ f(wt, { ...o, ref: r, forceMount: t }) : a.type === "always" ? /* @__PURE__ */ f(Ge, { ...o, ref: r }) : 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;
2166
2176
  }
2167
2177
  );
2168
- _t.displayName = W;
2169
- var La = c.forwardRef((e, r) => {
2170
- const { forceMount: t, ...o } = e, a = $(W, e.__scopeScrollArea), [n, s] = c.useState(!1);
2178
+ wr.displayName = W;
2179
+ var Ia = c.forwardRef((e, t) => {
2180
+ const { forceMount: r, ...o } = e, a = M(W, e.__scopeScrollArea), [n, s] = c.useState(!1);
2171
2181
  return c.useEffect(() => {
2172
2182
  const i = a.scrollArea;
2173
2183
  let u = 0;
@@ -2181,16 +2191,16 @@ var La = c.forwardRef((e, r) => {
2181
2191
  window.clearTimeout(u), i.removeEventListener("pointerenter", l), i.removeEventListener("pointerleave", d);
2182
2192
  };
2183
2193
  }
2184
- }, [a.scrollArea, a.scrollHideDelay]), /* @__PURE__ */ f(j, { present: t || n, children: /* @__PURE__ */ f(
2185
- wt,
2194
+ }, [a.scrollArea, a.scrollHideDelay]), /* @__PURE__ */ f(z, { present: r || n, children: /* @__PURE__ */ f(
2195
+ Sr,
2186
2196
  {
2187
2197
  "data-state": n ? "visible" : "hidden",
2188
2198
  ...o,
2189
- ref: r
2199
+ ref: t
2190
2200
  }
2191
2201
  ) });
2192
- }), $a = c.forwardRef((e, r) => {
2193
- const { forceMount: t, ...o } = e, a = $(W, e.__scopeScrollArea), n = e.orientation === "horizontal", s = Pe(() => u("SCROLL_END"), 100), [i, u] = Ta("hidden", {
2202
+ }), ka = c.forwardRef((e, t) => {
2203
+ const { forceMount: r, ...o } = e, a = M(W, e.__scopeScrollArea), n = e.orientation === "horizontal", s = Pe(() => u("SCROLL_END"), 100), [i, u] = $a("hidden", {
2194
2204
  hidden: {
2195
2205
  SCROLL: "scrolling"
2196
2206
  },
@@ -2223,37 +2233,37 @@ var La = c.forwardRef((e, r) => {
2223
2233
  };
2224
2234
  return l.addEventListener("scroll", h), () => l.removeEventListener("scroll", h);
2225
2235
  }
2226
- }, [a.viewport, n, u, s]), /* @__PURE__ */ f(j, { present: t || i !== "hidden", children: /* @__PURE__ */ f(
2236
+ }, [a.viewport, n, u, s]), /* @__PURE__ */ f(z, { present: r || i !== "hidden", children: /* @__PURE__ */ f(
2227
2237
  Ge,
2228
2238
  {
2229
2239
  "data-state": i === "hidden" ? "hidden" : "visible",
2230
2240
  ...o,
2231
- ref: r,
2241
+ ref: t,
2232
2242
  onPointerEnter: A(e.onPointerEnter, () => u("POINTER_ENTER")),
2233
2243
  onPointerLeave: A(e.onPointerLeave, () => u("POINTER_LEAVE"))
2234
2244
  }
2235
2245
  ) });
2236
- }), wt = c.forwardRef((e, r) => {
2237
- const t = $(W, e.__scopeScrollArea), { forceMount: o, ...a } = e, [n, s] = c.useState(!1), i = e.orientation === "horizontal", u = Pe(() => {
2238
- if (t.viewport) {
2239
- const l = t.viewport.offsetWidth < t.viewport.scrollWidth, d = t.viewport.offsetHeight < t.viewport.scrollHeight;
2246
+ }), Sr = c.forwardRef((e, t) => {
2247
+ const r = M(W, e.__scopeScrollArea), { forceMount: o, ...a } = e, [n, s] = c.useState(!1), i = e.orientation === "horizontal", u = Pe(() => {
2248
+ if (r.viewport) {
2249
+ const l = r.viewport.offsetWidth < r.viewport.scrollWidth, d = r.viewport.offsetHeight < r.viewport.scrollHeight;
2240
2250
  s(i ? l : d);
2241
2251
  }
2242
2252
  }, 10);
2243
- return oe(t.viewport, u), oe(t.content, u), /* @__PURE__ */ f(j, { 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(
2244
2254
  Ge,
2245
2255
  {
2246
2256
  "data-state": n ? "visible" : "hidden",
2247
2257
  ...a,
2248
- ref: r
2258
+ ref: t
2249
2259
  }
2250
2260
  ) });
2251
- }), Ge = c.forwardRef((e, r) => {
2252
- const { orientation: t = "vertical", ...o } = e, a = $(W, e.__scopeScrollArea), n = c.useRef(null), s = c.useRef(0), [i, u] = c.useState({
2261
+ }), Ge = c.forwardRef((e, t) => {
2262
+ const { orientation: r = "vertical", ...o } = e, a = M(W, e.__scopeScrollArea), n = c.useRef(null), s = c.useRef(0), [i, u] = c.useState({
2253
2263
  content: 0,
2254
2264
  viewport: 0,
2255
2265
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
2256
- }), l = Et(i.viewport, i.content), d = {
2266
+ }), l = Rr(i.viewport, i.content), d = {
2257
2267
  ...o,
2258
2268
  sizes: i,
2259
2269
  onSizesChange: u,
@@ -2263,16 +2273,16 @@ var La = c.forwardRef((e, r) => {
2263
2273
  onThumbPointerDown: (h) => s.current = h
2264
2274
  };
2265
2275
  function p(h, m) {
2266
- return Ha(h, s.current, i, m);
2276
+ return Va(h, s.current, i, m);
2267
2277
  }
2268
- return t === "horizontal" ? /* @__PURE__ */ f(
2269
- Ma,
2278
+ return r === "horizontal" ? /* @__PURE__ */ f(
2279
+ Wa,
2270
2280
  {
2271
2281
  ...d,
2272
- ref: r,
2282
+ ref: t,
2273
2283
  onThumbPositionChange: () => {
2274
2284
  if (a.viewport && n.current) {
2275
- const h = a.viewport.scrollLeft, m = Rr(h, i, a.dir);
2285
+ const h = a.viewport.scrollLeft, m = At(h, i, a.dir);
2276
2286
  n.current.style.transform = `translate3d(${m}px, 0, 0)`;
2277
2287
  }
2278
2288
  },
@@ -2283,14 +2293,14 @@ var La = c.forwardRef((e, r) => {
2283
2293
  a.viewport && (a.viewport.scrollLeft = p(h, a.dir));
2284
2294
  }
2285
2295
  }
2286
- ) : t === "vertical" ? /* @__PURE__ */ f(
2287
- Ia,
2296
+ ) : r === "vertical" ? /* @__PURE__ */ f(
2297
+ Fa,
2288
2298
  {
2289
2299
  ...d,
2290
- ref: r,
2300
+ ref: t,
2291
2301
  onThumbPositionChange: () => {
2292
2302
  if (a.viewport && n.current) {
2293
- const h = a.viewport.scrollTop, m = Rr(h, i);
2303
+ const h = a.viewport.scrollTop, m = At(h, i);
2294
2304
  n.current.style.transform = `translate3d(0, ${m}px, 0)`;
2295
2305
  }
2296
2306
  },
@@ -2302,22 +2312,22 @@ var La = c.forwardRef((e, r) => {
2302
2312
  }
2303
2313
  }
2304
2314
  ) : null;
2305
- }), Ma = c.forwardRef((e, r) => {
2306
- const { sizes: t, onSizesChange: o, ...a } = e, n = $(W, e.__scopeScrollArea), [s, i] = c.useState(), u = c.useRef(null), l = O(r, u, n.onScrollbarXChange);
2315
+ }), Wa = c.forwardRef((e, t) => {
2316
+ 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.onScrollbarXChange);
2307
2317
  return c.useEffect(() => {
2308
2318
  u.current && i(getComputedStyle(u.current));
2309
2319
  }, [u]), /* @__PURE__ */ f(
2310
- yt,
2320
+ Cr,
2311
2321
  {
2312
2322
  "data-orientation": "horizontal",
2313
2323
  ...a,
2314
2324
  ref: l,
2315
- sizes: t,
2325
+ sizes: r,
2316
2326
  style: {
2317
2327
  bottom: 0,
2318
2328
  left: n.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
2319
2329
  right: n.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
2320
- "--radix-scroll-area-thumb-width": Ce(t) + "px",
2330
+ "--radix-scroll-area-thumb-width": Ce(r) + "px",
2321
2331
  ...e.style
2322
2332
  },
2323
2333
  onThumbPointerDown: (d) => e.onThumbPointerDown(d.x),
@@ -2325,7 +2335,7 @@ var La = c.forwardRef((e, r) => {
2325
2335
  onWheelScroll: (d, p) => {
2326
2336
  if (n.viewport) {
2327
2337
  const h = n.viewport.scrollLeft + d.deltaX;
2328
- e.onWheelScroll(h), Pt(h, p) && d.preventDefault();
2338
+ e.onWheelScroll(h), xr(h, p) && d.preventDefault();
2329
2339
  }
2330
2340
  },
2331
2341
  onResize: () => {
@@ -2334,30 +2344,30 @@ var La = c.forwardRef((e, r) => {
2334
2344
  viewport: n.viewport.offsetWidth,
2335
2345
  scrollbar: {
2336
2346
  size: u.current.clientWidth,
2337
- paddingStart: ye(s.paddingLeft),
2338
- paddingEnd: ye(s.paddingRight)
2347
+ paddingStart: we(s.paddingLeft),
2348
+ paddingEnd: we(s.paddingRight)
2339
2349
  }
2340
2350
  });
2341
2351
  }
2342
2352
  }
2343
2353
  );
2344
- }), Ia = c.forwardRef((e, r) => {
2345
- const { sizes: t, onSizesChange: o, ...a } = e, n = $(W, e.__scopeScrollArea), [s, i] = c.useState(), u = c.useRef(null), l = O(r, u, n.onScrollbarYChange);
2354
+ }), Fa = c.forwardRef((e, t) => {
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);
2346
2356
  return c.useEffect(() => {
2347
2357
  u.current && i(getComputedStyle(u.current));
2348
2358
  }, [u]), /* @__PURE__ */ f(
2349
- yt,
2359
+ Cr,
2350
2360
  {
2351
2361
  "data-orientation": "vertical",
2352
2362
  ...a,
2353
2363
  ref: l,
2354
- sizes: t,
2364
+ sizes: r,
2355
2365
  style: {
2356
2366
  top: 0,
2357
2367
  right: n.dir === "ltr" ? 0 : void 0,
2358
2368
  left: n.dir === "rtl" ? 0 : void 0,
2359
2369
  bottom: "var(--radix-scroll-area-corner-height)",
2360
- "--radix-scroll-area-thumb-height": Ce(t) + "px",
2370
+ "--radix-scroll-area-thumb-height": Ce(r) + "px",
2361
2371
  ...e.style
2362
2372
  },
2363
2373
  onThumbPointerDown: (d) => e.onThumbPointerDown(d.y),
@@ -2365,7 +2375,7 @@ var La = c.forwardRef((e, r) => {
2365
2375
  onWheelScroll: (d, p) => {
2366
2376
  if (n.viewport) {
2367
2377
  const h = n.viewport.scrollTop + d.deltaY;
2368
- e.onWheelScroll(h), Pt(h, p) && d.preventDefault();
2378
+ e.onWheelScroll(h), xr(h, p) && d.preventDefault();
2369
2379
  }
2370
2380
  },
2371
2381
  onResize: () => {
@@ -2374,16 +2384,16 @@ var La = c.forwardRef((e, r) => {
2374
2384
  viewport: n.viewport.offsetHeight,
2375
2385
  scrollbar: {
2376
2386
  size: u.current.clientHeight,
2377
- paddingStart: ye(s.paddingTop),
2378
- paddingEnd: ye(s.paddingBottom)
2387
+ paddingStart: we(s.paddingTop),
2388
+ paddingEnd: we(s.paddingBottom)
2379
2389
  }
2380
2390
  });
2381
2391
  }
2382
2392
  }
2383
2393
  );
2384
- }), [ka, bt] = ht(W), yt = c.forwardRef((e, r) => {
2394
+ }), [ja, Er] = gr(W), Cr = c.forwardRef((e, t) => {
2385
2395
  const {
2386
- __scopeScrollArea: t,
2396
+ __scopeScrollArea: r,
2387
2397
  sizes: o,
2388
2398
  hasThumb: a,
2389
2399
  onThumbChange: n,
@@ -2394,29 +2404,29 @@ var La = c.forwardRef((e, r) => {
2394
2404
  onWheelScroll: d,
2395
2405
  onResize: p,
2396
2406
  ...h
2397
- } = e, m = $(W, t), [w, v] = c.useState(null), g = O(r, (P) => v(P)), _ = c.useRef(null), b = c.useRef(""), E = m.viewport, y = o.content - o.viewport, C = L(d), x = L(u), S = Pe(p, 10);
2398
- function N(P) {
2399
- if (_.current) {
2400
- const R = P.clientX - _.current.left, F = P.clientY - _.current.top;
2401
- l({ x: R, y: F });
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) {
2409
+ if (b.current) {
2410
+ const N = P.clientX - b.current.left, F = P.clientY - b.current.top;
2411
+ l({ x: N, y: F });
2402
2412
  }
2403
2413
  }
2404
2414
  return c.useEffect(() => {
2405
- const P = (R) => {
2406
- const F = R.target;
2407
- (w == null ? void 0 : w.contains(F)) && C(R, y);
2415
+ const P = (N) => {
2416
+ const F = N.target;
2417
+ (_ == null ? void 0 : _.contains(F)) && C(N, w);
2408
2418
  };
2409
2419
  return document.addEventListener("wheel", P, { passive: !1 }), () => document.removeEventListener("wheel", P, { passive: !1 });
2410
- }, [E, w, y, C]), c.useEffect(x, [o, x]), oe(w, S), oe(m.content, S), /* @__PURE__ */ f(
2411
- ka,
2420
+ }, [E, _, w, C]), c.useEffect(R, [o, R]), oe(_, S), oe(m.content, S), /* @__PURE__ */ f(
2421
+ ja,
2412
2422
  {
2413
- scope: t,
2414
- scrollbar: w,
2423
+ scope: r,
2424
+ scrollbar: _,
2415
2425
  hasThumb: a,
2416
- onThumbChange: L(n),
2417
- onThumbPointerUp: L(s),
2418
- onThumbPositionChange: x,
2419
- onThumbPointerDown: L(i),
2426
+ onThumbChange: $(n),
2427
+ onThumbPointerUp: $(s),
2428
+ onThumbPositionChange: R,
2429
+ onThumbPointerDown: $(i),
2420
2430
  children: /* @__PURE__ */ f(
2421
2431
  T.div,
2422
2432
  {
@@ -2424,26 +2434,26 @@ var La = c.forwardRef((e, r) => {
2424
2434
  ref: g,
2425
2435
  style: { position: "absolute", ...h.style },
2426
2436
  onPointerDown: A(e.onPointerDown, (P) => {
2427
- P.button === 0 && (P.target.setPointerCapture(P.pointerId), _.current = w.getBoundingClientRect(), b.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));
2428
2438
  }),
2429
- onPointerMove: A(e.onPointerMove, N),
2439
+ onPointerMove: A(e.onPointerMove, x),
2430
2440
  onPointerUp: A(e.onPointerUp, (P) => {
2431
- const R = P.target;
2432
- R.hasPointerCapture(P.pointerId) && R.releasePointerCapture(P.pointerId), document.body.style.webkitUserSelect = b.current, m.viewport && (m.viewport.style.scrollBehavior = ""), _.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;
2433
2443
  })
2434
2444
  }
2435
2445
  )
2436
2446
  }
2437
2447
  );
2438
- }), be = "ScrollAreaThumb", St = c.forwardRef(
2439
- (e, r) => {
2440
- const { forceMount: t, ...o } = e, a = bt(be, e.__scopeScrollArea);
2441
- return /* @__PURE__ */ f(j, { present: t || a.hasThumb, children: /* @__PURE__ */ f(Wa, { ref: r, ...o }) });
2448
+ }), ye = "ScrollAreaThumb", Pr = c.forwardRef(
2449
+ (e, t) => {
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 }) });
2442
2452
  }
2443
- ), Wa = c.forwardRef(
2444
- (e, r) => {
2445
- const { __scopeScrollArea: t, style: o, ...a } = e, n = $(be, t), s = bt(be, t), { onThumbPositionChange: i } = s, u = O(
2446
- r,
2453
+ ), Ua = c.forwardRef(
2454
+ (e, t) => {
2455
+ const { __scopeScrollArea: r, style: o, ...a } = e, n = M(ye, r), s = Er(ye, r), { onThumbPositionChange: i } = s, u = L(
2456
+ t,
2447
2457
  (p) => s.onThumbChange(p)
2448
2458
  ), l = c.useRef(void 0), d = Pe(() => {
2449
2459
  l.current && (l.current(), l.current = void 0);
@@ -2453,7 +2463,7 @@ var La = c.forwardRef((e, r) => {
2453
2463
  if (p) {
2454
2464
  const h = () => {
2455
2465
  if (d(), !l.current) {
2456
- const m = Ba(p, i);
2466
+ const m = za(p, i);
2457
2467
  l.current = m, i();
2458
2468
  }
2459
2469
  };
@@ -2471,24 +2481,24 @@ var La = c.forwardRef((e, r) => {
2471
2481
  ...o
2472
2482
  },
2473
2483
  onPointerDownCapture: A(e.onPointerDownCapture, (p) => {
2474
- const m = p.target.getBoundingClientRect(), w = p.clientX - m.left, v = p.clientY - m.top;
2475
- s.onThumbPointerDown({ x: w, y: v });
2484
+ const m = p.target.getBoundingClientRect(), _ = p.clientX - m.left, v = p.clientY - m.top;
2485
+ s.onThumbPointerDown({ x: _, y: v });
2476
2486
  }),
2477
2487
  onPointerUp: A(e.onPointerUp, s.onThumbPointerUp)
2478
2488
  }
2479
2489
  );
2480
2490
  }
2481
2491
  );
2482
- St.displayName = be;
2483
- var Ke = "ScrollAreaCorner", Fa = c.forwardRef(
2484
- (e, r) => {
2485
- const t = $(Ke, e.__scopeScrollArea), o = !!(t.scrollbarX && t.scrollbarY);
2486
- return t.type !== "scroll" && o ? /* @__PURE__ */ f(Ua, { ...e, ref: r }) : null;
2492
+ Pr.displayName = ye;
2493
+ var Ke = "ScrollAreaCorner", Ba = c.forwardRef(
2494
+ (e, t) => {
2495
+ const r = M(Ke, e.__scopeScrollArea), o = !!(r.scrollbarX && r.scrollbarY);
2496
+ return r.type !== "scroll" && o ? /* @__PURE__ */ f(Ha, { ...e, ref: t }) : null;
2487
2497
  }
2488
2498
  );
2489
- Fa.displayName = Ke;
2490
- var Ua = c.forwardRef((e, r) => {
2491
- const { __scopeScrollArea: t, ...o } = e, a = $(Ke, t), [n, s] = c.useState(0), [i, u] = c.useState(0), l = !!(n && i);
2499
+ Ba.displayName = Ke;
2500
+ var Ha = c.forwardRef((e, t) => {
2501
+ const { __scopeScrollArea: r, ...o } = e, a = M(Ke, r), [n, s] = c.useState(0), [i, u] = c.useState(0), l = !!(n && i);
2492
2502
  return oe(a.scrollbarX, () => {
2493
2503
  var p;
2494
2504
  const d = ((p = a.scrollbarX) == null ? void 0 : p.offsetHeight) || 0;
@@ -2501,7 +2511,7 @@ var Ua = c.forwardRef((e, r) => {
2501
2511
  T.div,
2502
2512
  {
2503
2513
  ...o,
2504
- ref: r,
2514
+ ref: t,
2505
2515
  style: {
2506
2516
  width: n,
2507
2517
  height: i,
@@ -2514,93 +2524,93 @@ var Ua = c.forwardRef((e, r) => {
2514
2524
  }
2515
2525
  ) : null;
2516
2526
  });
2517
- function ye(e) {
2527
+ function we(e) {
2518
2528
  return e ? parseInt(e, 10) : 0;
2519
2529
  }
2520
- function Et(e, r) {
2521
- const t = e / r;
2522
- return isNaN(t) ? 0 : t;
2530
+ function Rr(e, t) {
2531
+ const r = e / t;
2532
+ return isNaN(r) ? 0 : r;
2523
2533
  }
2524
2534
  function Ce(e) {
2525
- const r = Et(e.viewport, e.content), t = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = (e.scrollbar.size - t) * r;
2535
+ const t = Rr(e.viewport, e.content), r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = (e.scrollbar.size - r) * t;
2526
2536
  return Math.max(o, 18);
2527
2537
  }
2528
- function Ha(e, r, t, o = "ltr") {
2529
- const a = Ce(t), n = a / 2, s = r || n, i = a - s, u = t.scrollbar.paddingStart + s, l = t.scrollbar.size - t.scrollbar.paddingEnd - i, d = t.content - t.viewport, p = o === "ltr" ? [0, d] : [d * -1, 0];
2530
- return Ct([u, l], p)(e);
2538
+ function Va(e, t, r, o = "ltr") {
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];
2540
+ return Nr([u, l], p)(e);
2531
2541
  }
2532
- function Rr(e, r, t = "ltr") {
2533
- const o = Ce(r), a = r.scrollbar.paddingStart + r.scrollbar.paddingEnd, n = r.scrollbar.size - a, s = r.content - r.viewport, i = n - o, u = t === "ltr" ? [0, s] : [s * -1, 0], l = Da(e, u);
2534
- return Ct([0, s], [0, i])(l);
2542
+ function At(e, t, r = "ltr") {
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);
2544
+ return Nr([0, s], [0, i])(l);
2535
2545
  }
2536
- function Ct(e, r) {
2537
- return (t) => {
2538
- if (e[0] === e[1] || r[0] === r[1]) return r[0];
2539
- const o = (r[1] - r[0]) / (e[1] - e[0]);
2540
- return r[0] + o * (t - e[0]);
2546
+ function Nr(e, t) {
2547
+ return (r) => {
2548
+ if (e[0] === e[1] || t[0] === t[1]) return t[0];
2549
+ const o = (t[1] - t[0]) / (e[1] - e[0]);
2550
+ return t[0] + o * (r - e[0]);
2541
2551
  };
2542
2552
  }
2543
- function Pt(e, r) {
2544
- return e > 0 && e < r;
2553
+ function xr(e, t) {
2554
+ return e > 0 && e < t;
2545
2555
  }
2546
- var Ba = (e, r = () => {
2556
+ var za = (e, t = () => {
2547
2557
  }) => {
2548
- let t = { left: e.scrollLeft, top: e.scrollTop }, o = 0;
2558
+ let r = { left: e.scrollLeft, top: e.scrollTop }, o = 0;
2549
2559
  return (function a() {
2550
- const n = { left: e.scrollLeft, top: e.scrollTop }, s = t.left !== n.left, i = t.top !== n.top;
2551
- (s || i) && r(), t = n, o = window.requestAnimationFrame(a);
2560
+ const n = { left: e.scrollLeft, top: e.scrollTop }, s = r.left !== n.left, i = r.top !== n.top;
2561
+ (s || i) && t(), r = n, o = window.requestAnimationFrame(a);
2552
2562
  })(), () => window.cancelAnimationFrame(o);
2553
2563
  };
2554
- function Pe(e, r) {
2555
- const t = L(e), o = c.useRef(0);
2564
+ function Pe(e, t) {
2565
+ const r = $(e), o = c.useRef(0);
2556
2566
  return c.useEffect(() => () => window.clearTimeout(o.current), []), c.useCallback(() => {
2557
- window.clearTimeout(o.current), o.current = window.setTimeout(t, r);
2558
- }, [t, r]);
2567
+ window.clearTimeout(o.current), o.current = window.setTimeout(r, t);
2568
+ }, [r, t]);
2559
2569
  }
2560
- function oe(e, r) {
2561
- const t = L(r);
2570
+ function oe(e, t) {
2571
+ const r = $(t);
2562
2572
  ne(() => {
2563
2573
  let o = 0;
2564
2574
  if (e) {
2565
2575
  const a = new ResizeObserver(() => {
2566
- cancelAnimationFrame(o), o = window.requestAnimationFrame(t);
2576
+ cancelAnimationFrame(o), o = window.requestAnimationFrame(r);
2567
2577
  });
2568
2578
  return a.observe(e), () => {
2569
2579
  window.cancelAnimationFrame(o), a.unobserve(e);
2570
2580
  };
2571
2581
  }
2572
- }, [e, t]);
2573
- }
2574
- var ja = vt, Va = gt, za = _t, Ya = St;
2575
- const Xa = {
2576
- "purpur-drawer-scroll-area__root": "_purpur-drawer-scroll-area__root_1r0fa_1",
2577
- "purpur-drawer-scroll-area__root--fit-to-content": "_purpur-drawer-scroll-area__root--fit-to-content_1r0fa_4",
2578
- "purpur-drawer-scroll-area__viewport": "_purpur-drawer-scroll-area__viewport_1r0fa_10",
2579
- "purpur-drawer-scroll-area__scrollbar": "_purpur-drawer-scroll-area__scrollbar_1r0fa_13",
2580
- "purpur-drawer-scroll-area__thumb": "_purpur-drawer-scroll-area__thumb_1r0fa_24"
2581
- }, ie = X.bind(Xa), Q = "purpur-drawer-scroll-area", je = B(
2582
+ }, [e, r]);
2583
+ }
2584
+ var Ya = _r, Xa = yr, qa = wr, Ga = Pr;
2585
+ const Ka = {
2586
+ "purpur-drawer-scroll-area__root": "_purpur-drawer-scroll-area__root_1hyos_1",
2587
+ "purpur-drawer-scroll-area__root--fit-to-content": "_purpur-drawer-scroll-area__root--fit-to-content_1hyos_4",
2588
+ "purpur-drawer-scroll-area__viewport": "_purpur-drawer-scroll-area__viewport_1hyos_10",
2589
+ "purpur-drawer-scroll-area__scrollbar": "_purpur-drawer-scroll-area__scrollbar_1hyos_14",
2590
+ "purpur-drawer-scroll-area__thumb": "_purpur-drawer-scroll-area__thumb_1hyos_25"
2591
+ }, se = ae.bind(Ka), Q = "purpur-drawer-scroll-area", He = V(
2582
2592
  ({
2583
2593
  ["data-testid"]: e = "purpur-drawer-scroll-area",
2584
- children: r,
2585
- className: t,
2594
+ children: t,
2595
+ className: r,
2586
2596
  fitToContent: o = !1,
2587
2597
  ...a
2588
2598
  }, n) => {
2589
- const s = ie([t, Q]);
2599
+ const s = se([r, Q]);
2590
2600
  return /* @__PURE__ */ f("div", { className: s, "data-testid": e, ref: n, ...a, children: /* @__PURE__ */ D(
2591
- ja,
2601
+ Ya,
2592
2602
  {
2593
- className: ie(`${Q}__root`, {
2603
+ className: se(`${Q}__root`, {
2594
2604
  [`${Q}__root--fit-to-content`]: o
2595
2605
  }),
2596
2606
  children: [
2597
- /* @__PURE__ */ f(Va, { className: ie(`${Q}__viewport`), children: r }),
2607
+ /* @__PURE__ */ f(Xa, { className: se(`${Q}__viewport`), children: t }),
2598
2608
  /* @__PURE__ */ f(
2599
- za,
2609
+ qa,
2600
2610
  {
2601
- className: ie(`${Q}__scrollbar`),
2611
+ className: se(`${Q}__scrollbar`),
2602
2612
  orientation: "vertical",
2603
- children: /* @__PURE__ */ f(Ya, { className: ie(`${Q}__thumb`) })
2613
+ children: /* @__PURE__ */ f(Ga, { className: se(`${Q}__thumb`) })
2604
2614
  }
2605
2615
  )
2606
2616
  ]
@@ -2608,12 +2618,12 @@ const Xa = {
2608
2618
  ) });
2609
2619
  }
2610
2620
  );
2611
- je.displayName = "DrawerScrollArea";
2612
- const J = X.bind(Lo), M = "purpur-drawer-frame", xt = B(
2621
+ He.displayName = "DrawerScrollArea";
2622
+ const J = ae.bind(Wo), O = "purpur-drawer-frame", Ar = V(
2613
2623
  ({
2614
2624
  ["data-testid"]: e = "purpur-drawer-frame",
2615
- backButton: r,
2616
- backButtonText: t,
2625
+ backButton: t,
2626
+ backButtonText: r,
2617
2627
  backButtonOnlyIcon: o,
2618
2628
  children: a,
2619
2629
  className: n,
@@ -2621,147 +2631,135 @@ const J = X.bind(Lo), M = "purpur-drawer-frame", xt = B(
2621
2631
  fitToContent: i = !1,
2622
2632
  footerContent: u,
2623
2633
  headerContent: l,
2624
- onAnimationEnd: d,
2625
- onBackButtonClick: p,
2626
- onSwipeStart: h,
2627
- onSwipeMove: m,
2628
- onSwipeCancel: w,
2629
- onSwipeEnd: v,
2630
- title: g,
2631
- stickyFooter: _,
2634
+ onBackButtonClick: d,
2635
+ onSwipeStart: p,
2636
+ onSwipeMove: h,
2637
+ onSwipeCancel: m,
2638
+ onSwipeEnd: _,
2639
+ title: v,
2640
+ stickyFooter: g,
2632
2641
  position: b = "right",
2633
- ...E
2634
- }, y) => {
2635
- const C = J([
2642
+ ...y
2643
+ }, E) => {
2644
+ const w = !!(t && r && d), C = J([
2636
2645
  n,
2637
- M,
2646
+ O,
2638
2647
  {
2639
- [`${M}--fit-to-content`]: i,
2640
- [`${M}--sticky-footer`]: _,
2641
- [`${M}--left`]: b === "left",
2642
- [`${M}--right`]: b === "right"
2648
+ [`${O}--fit-to-content`]: i,
2649
+ [`${O}--sticky-footer`]: g,
2650
+ [`${O}--left`]: b === "left",
2651
+ [`${O}--right`]: b === "right",
2652
+ [`${O}--without-back-button`]: !w,
2653
+ [`${O}--with-back-button`]: w
2643
2654
  }
2644
2655
  ]);
2645
- return /* @__PURE__ */ D(
2646
- "div",
2647
- {
2648
- className: C,
2649
- "data-testid": e,
2650
- ref: y,
2651
- onAnimationEnd: d,
2652
- ...E,
2653
- children: [
2654
- /* @__PURE__ */ f(
2655
- lt,
2656
- {
2657
- onSwipeStart: h,
2658
- onSwipeMove: m,
2659
- onSwipeCancel: w,
2660
- onSwipeEnd: v
2661
- }
2662
- ),
2663
- /* @__PURE__ */ f(
2664
- ee,
2656
+ return /* @__PURE__ */ D("div", { className: C, "data-testid": e, ref: E, ...y, children: [
2657
+ /* @__PURE__ */ f(
2658
+ dr,
2659
+ {
2660
+ onSwipeStart: p,
2661
+ onSwipeMove: h,
2662
+ onSwipeCancel: m,
2663
+ onSwipeEnd: _
2664
+ }
2665
+ ),
2666
+ /* @__PURE__ */ f(
2667
+ ee,
2668
+ {
2669
+ className: J(`${O}__header`),
2670
+ variant: "header",
2671
+ stickyFooter: g,
2672
+ children: /* @__PURE__ */ f(
2673
+ mr,
2665
2674
  {
2666
- className: J(`${M}__header`),
2667
- variant: "header",
2668
- stickyFooter: _,
2669
- children: /* @__PURE__ */ f(
2670
- pt,
2671
- {
2672
- title: g,
2673
- headerContent: l,
2674
- backButtonOnlyIcon: o,
2675
- backButton: r,
2676
- backButtonText: t,
2677
- closeButtonAriaLabel: s,
2678
- onBackButtonClick: p
2679
- }
2680
- )
2675
+ title: v,
2676
+ headerContent: l,
2677
+ backButtonOnlyIcon: o,
2678
+ backButton: t,
2679
+ backButtonText: r,
2680
+ closeButtonAriaLabel: s,
2681
+ onBackButtonClick: d
2681
2682
  }
2682
- ),
2683
- _ ? /* @__PURE__ */ D(te, { children: [
2684
- /* @__PURE__ */ f(
2685
- je,
2686
- {
2687
- className: J(`${M}__body`),
2688
- "data-testid": `${e}-sticky-footer-scroll-area`,
2689
- fitToContent: i,
2690
- children: /* @__PURE__ */ f(ee, { stickyFooter: !0, children: a })
2691
- }
2692
- ),
2693
- u && /* @__PURE__ */ f(
2694
- ee,
2695
- {
2696
- className: J(`${M}__footer`),
2697
- "data-testid": `${e}-sticky-footer`,
2698
- variant: "footer",
2699
- stickyFooter: _,
2700
- children: u
2701
- }
2702
- )
2703
- ] }) : /* @__PURE__ */ f(
2704
- je,
2683
+ )
2684
+ }
2685
+ ),
2686
+ g ? /* @__PURE__ */ D(re, { children: [
2687
+ /* @__PURE__ */ f(
2688
+ He,
2689
+ {
2690
+ className: J(`${O}__body`),
2691
+ "data-testid": `${e}-sticky-footer-scroll-area`,
2692
+ fitToContent: i,
2693
+ children: /* @__PURE__ */ f(ee, { stickyFooter: !0, children: a })
2694
+ }
2695
+ ),
2696
+ u && /* @__PURE__ */ f(
2697
+ ee,
2698
+ {
2699
+ className: J(`${O}__footer`),
2700
+ "data-testid": `${e}-sticky-footer`,
2701
+ variant: "footer",
2702
+ stickyFooter: g,
2703
+ children: u
2704
+ }
2705
+ )
2706
+ ] }) : /* @__PURE__ */ f(
2707
+ He,
2708
+ {
2709
+ className: J(`${O}__body`),
2710
+ "data-testid": `${e}-scroll-area`,
2711
+ fitToContent: i,
2712
+ children: /* @__PURE__ */ D(
2713
+ "div",
2705
2714
  {
2706
- className: J(`${M}__body`),
2707
- "data-testid": `${e}-scroll-area`,
2708
- fitToContent: i,
2709
- children: /* @__PURE__ */ D(
2710
- "div",
2711
- {
2712
- className: J([
2713
- `${M}__content-container`,
2714
- { [`${M}__content-container--no-footer`]: !u }
2715
- ]),
2716
- children: [
2717
- /* @__PURE__ */ f(ee, { stickyFooter: _, children: a }),
2718
- u && /* @__PURE__ */ f(
2719
- ee,
2720
- {
2721
- "data-testid": `${e}-footer`,
2722
- stickyFooter: _,
2723
- variant: "footer",
2724
- children: u
2725
- }
2726
- )
2727
- ]
2728
- }
2729
- )
2715
+ className: J([
2716
+ `${O}__content-container`,
2717
+ { [`${O}__content-container--no-footer`]: !u }
2718
+ ]),
2719
+ children: [
2720
+ /* @__PURE__ */ f(ee, { stickyFooter: g, children: a }),
2721
+ u && /* @__PURE__ */ f(
2722
+ ee,
2723
+ {
2724
+ "data-testid": `${e}-footer`,
2725
+ stickyFooter: g,
2726
+ variant: "footer",
2727
+ children: u
2728
+ }
2729
+ )
2730
+ ]
2730
2731
  }
2731
2732
  )
2732
- ]
2733
- }
2734
- );
2733
+ }
2734
+ )
2735
+ ] });
2735
2736
  }
2736
2737
  );
2737
- xt.displayName = "DrawerFrame";
2738
- const qa = (e, r) => ({
2739
- onAnimationEnd: (i) => {
2740
- i.currentTarget.getAttribute("data-swipe") === "end" && r(!1);
2741
- },
2738
+ Ar.displayName = "DrawerFrame";
2739
+ const Za = (e, t) => ({
2742
2740
  onSwipeStart: () => {
2743
2741
  e.current && e.current.setAttribute("data-swipe", "start");
2744
2742
  },
2745
- onSwipeMove: (i) => {
2743
+ onSwipeMove: (s) => {
2746
2744
  if (!e.current)
2747
2745
  return;
2748
- const { y: u } = i.delta;
2749
- e.current.setAttribute("data-swipe", "move"), e.current.style.setProperty("--purpur-drawer-swipe-move-y", `${u}px`);
2746
+ const { y: i } = s.delta;
2747
+ e.current.setAttribute("data-swipe", "move"), e.current.style.setProperty("--purpur-drawer-swipe-move-y", `${i}px`);
2750
2748
  },
2751
2749
  onSwipeCancel: () => {
2752
2750
  e.current && (e.current.setAttribute("data-swipe", "cancel"), e.current.style.removeProperty("--purpur-drawer-swipe-move-y"), e.current.style.removeProperty("--purpur-drawer-swipe-end-y"));
2753
2751
  },
2754
- onSwipeEnd: (i) => {
2752
+ onSwipeEnd: (s) => {
2755
2753
  if (!e.current)
2756
2754
  return;
2757
- const { y: u } = i.delta;
2758
- e.current.setAttribute("data-swipe", "end"), e.current.style.removeProperty("--purpur-drawer-swipe-move-y"), e.current.style.setProperty("--purpur-drawer-swipe-end-y", `${u}px`);
2755
+ const { y: i } = s.delta;
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);
2759
2757
  }
2760
- }), se = X.bind(Do), z = "purpur-drawer-content", Rt = B(
2758
+ }), ce = ae.bind(Mo), Y = "purpur-drawer-content", Dr = V(
2761
2759
  ({
2762
2760
  ["data-testid"]: e = "purpur-drawer-content",
2763
- backButton: r = !1,
2764
- backButtonText: t,
2761
+ backButton: t = !1,
2762
+ backButtonText: r,
2765
2763
  backButtonOnlyIcon: o = !1,
2766
2764
  bodyText: a,
2767
2765
  children: n,
@@ -2773,70 +2771,74 @@ const qa = (e, r) => ({
2773
2771
  headerContent: p,
2774
2772
  onBackButtonClick: h,
2775
2773
  stickyFooter: m = !1,
2776
- title: w,
2774
+ title: _,
2777
2775
  zIndex: v,
2778
2776
  position: g = "right",
2779
- ..._
2780
- }, b) => {
2781
- const E = se([
2777
+ ...b
2778
+ }, y) => {
2779
+ const E = ce([
2782
2780
  s,
2783
- z,
2784
- { [`${z}--fit-to-content`]: l },
2785
- { [`${z}--left`]: g === "left" },
2786
- { [`${z}--right`]: g === "right" }
2787
- ]), y = Tt(null), C = Ot(ct), { onAnimationEnd: x, onSwipeStart: S, onSwipeMove: N, onSwipeCancel: P, onSwipeEnd: R } = qa(y, C), F = (ce) => {
2788
- u && ce.preventDefault();
2789
- }, Qe = () => {
2790
- const ce = y.current;
2791
- if (ce) {
2792
- const Je = ce.querySelector("h2");
2781
+ Y,
2782
+ { [`${Y}--fit-to-content`]: l },
2783
+ { [`${Y}--left`]: g === "left" },
2784
+ { [`${Y}--right`]: g === "right" }
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(
2788
+ C,
2789
+ S
2790
+ ), Qe = (j) => {
2791
+ u && j.preventDefault();
2792
+ }, Or = () => {
2793
+ const j = w.current;
2794
+ if (j) {
2795
+ const Je = j.querySelector("h2");
2793
2796
  Je && setTimeout(() => {
2794
2797
  Je.focus();
2795
2798
  });
2796
2799
  }
2797
2800
  };
2798
- return /* @__PURE__ */ f(mo, { children: /* @__PURE__ */ f(
2799
- go,
2801
+ return /* @__PURE__ */ f(bo, { children: /* @__PURE__ */ f(
2802
+ yo,
2800
2803
  {
2801
- className: se("purpur-drawer-overlay"),
2804
+ className: ce("purpur-drawer-overlay"),
2802
2805
  style: v ? { zIndex: v } : void 0,
2803
2806
  "data-testid": `${e}-overlay`,
2804
2807
  children: /* @__PURE__ */ f(
2805
- _o,
2808
+ wo,
2806
2809
  {
2807
- onPointerDownOutside: F,
2808
- onOpenAutoFocus: Qe,
2810
+ onPointerDownOutside: Qe,
2811
+ onOpenAutoFocus: Or,
2809
2812
  className: E,
2810
2813
  "data-testid": e,
2811
- ref: b,
2814
+ ref: R,
2812
2815
  ...!a && { "aria-describedby": void 0 },
2813
- ..._,
2816
+ ...b,
2814
2817
  children: /* @__PURE__ */ f(
2815
- xt,
2818
+ Ar,
2816
2819
  {
2817
- backButton: r,
2818
- backButtonText: t,
2820
+ backButton: t,
2821
+ backButtonText: r,
2819
2822
  backButtonOnlyIcon: o,
2820
2823
  closeButtonAriaLabel: i,
2821
- className: se(`${z}__drawer-frame`),
2824
+ className: ce(`${Y}__drawer-frame`),
2822
2825
  fitToContent: l,
2823
2826
  footerContent: d,
2824
2827
  headerContent: p,
2825
- ref: y,
2826
- onAnimationEnd: x,
2828
+ ref: w,
2827
2829
  onBackButtonClick: h,
2828
- onSwipeStart: S,
2829
- onSwipeMove: N,
2830
- onSwipeCancel: P,
2831
- onSwipeEnd: R,
2830
+ onSwipeStart: x,
2831
+ onSwipeMove: P,
2832
+ onSwipeCancel: N,
2833
+ onSwipeEnd: F,
2832
2834
  stickyFooter: m,
2833
- title: w,
2835
+ title: _,
2834
2836
  position: g,
2835
- children: a ? /* @__PURE__ */ D("div", { className: se(`${z}__content-container`), children: [
2837
+ children: a ? /* @__PURE__ */ D("div", { className: ce(`${Y}__content-container`), children: [
2836
2838
  /* @__PURE__ */ f(
2837
- wo,
2839
+ So,
2838
2840
  {
2839
- className: se(`${z}__description`),
2841
+ className: ce(`${Y}__description`),
2840
2842
  "data-testid": `${e}-description`,
2841
2843
  children: a
2842
2844
  }
@@ -2851,28 +2853,28 @@ const qa = (e, r) => ({
2851
2853
  ) });
2852
2854
  }
2853
2855
  );
2854
- Rt.displayName = "DrawerContent";
2855
- const Nt = B(
2856
- ({ ["data-testid"]: e = "purpur-drawer-trigger", children: r, ...t }, o) => /* @__PURE__ */ f(vo, { asChild: !0, "data-testid": e, ref: o, ...t, children: r })
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 })
2857
2859
  );
2858
- Nt.displayName = "DrawerTrigger";
2859
- const Ga = X.bind(Co), Ka = "purpur-drawer", Ze = ({
2860
+ Tr.displayName = "DrawerTrigger";
2861
+ const Ze = ({
2860
2862
  ["data-testid"]: e = "purpur-drawer",
2861
- children: r,
2862
- className: t,
2863
+ children: t,
2864
+ className: r,
2863
2865
  onOpenChange: o,
2864
2866
  open: a = !1,
2865
2867
  ...n
2866
2868
  }) => {
2867
- const [s, i] = ke.useState(a), u = Ga([t, Ka]), l = (d) => {
2868
- i(d), o == null || o(d);
2869
+ const [s, i] = ke.useState(a), u = (l) => {
2870
+ i(l), o == null || o(l);
2869
2871
  };
2870
- return Lt(() => {
2872
+ return Ir(() => {
2871
2873
  i(a);
2872
- }, [a]), /* @__PURE__ */ f(ct.Provider, { value: l, children: /* @__PURE__ */ f("div", { className: u, "data-testid": e, ...n, children: /* @__PURE__ */ f(ho, { open: s, onOpenChange: l, children: r }) }) });
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 }) }) });
2873
2875
  };
2874
- Ze.Trigger = Nt;
2875
- Ze.Content = Rt;
2876
+ Ze.Trigger = Tr;
2877
+ Ze.Content = Dr;
2876
2878
  Ze.displayName = "Drawer";
2877
2879
  export {
2878
2880
  Ze as Drawer