boottent-design 0.1.21 → 0.1.23

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.
@@ -1,4 +1,4 @@
1
- import { jsx as s, jsxs as R, Fragment as Le } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as R, Fragment as Oe } from "react/jsx-runtime";
2
2
  import { colors as ir } from "./boottent-design.styles.es.js";
3
3
  import { cn as M, toaster as ji } from "./boottent-design.utils.es.js";
4
4
  import * as l from "react";
@@ -1412,15 +1412,15 @@ function Oa(e, t) {
1412
1412
  }
1413
1413
  return n;
1414
1414
  }
1415
- function Xe() {
1416
- return Xe = Object.assign ? Object.assign.bind() : function(e) {
1415
+ function Ge() {
1416
+ return Ge = Object.assign ? Object.assign.bind() : function(e) {
1417
1417
  for (var t = 1; t < arguments.length; t++) {
1418
1418
  var n = arguments[t];
1419
1419
  for (var r in n)
1420
1420
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1421
1421
  }
1422
1422
  return e;
1423
- }, Xe.apply(this, arguments);
1423
+ }, Ge.apply(this, arguments);
1424
1424
  }
1425
1425
  function In(e, t) {
1426
1426
  var n = Object.keys(e);
@@ -1432,7 +1432,7 @@ function In(e, t) {
1432
1432
  }
1433
1433
  return n;
1434
1434
  }
1435
- function ze(e) {
1435
+ function Xe(e) {
1436
1436
  for (var t = 1; t < arguments.length; t++) {
1437
1437
  var n = arguments[t] != null ? arguments[t] : {};
1438
1438
  t % 2 ? In(Object(n), !0).forEach(function(r) {
@@ -1461,13 +1461,13 @@ function _a(e, t) {
1461
1461
  return (t === "string" ? String : Number)(e);
1462
1462
  }
1463
1463
  function lr(e) {
1464
- return e && e.map((t, n) => /* @__PURE__ */ _.createElement(t.tag, ze({
1464
+ return e && e.map((t, n) => /* @__PURE__ */ _.createElement(t.tag, Xe({
1465
1465
  key: n
1466
1466
  }, t.attr), lr(t.child)));
1467
1467
  }
1468
1468
  function rt(e) {
1469
- return (t) => /* @__PURE__ */ _.createElement(Ia, Xe({
1470
- attr: ze({}, e.attr)
1469
+ return (t) => /* @__PURE__ */ _.createElement(Ia, Ge({
1470
+ attr: Xe({}, e.attr)
1471
1471
  }, t), lr(e.child));
1472
1472
  }
1473
1473
  function Ia(e) {
@@ -1477,13 +1477,13 @@ function Ia(e) {
1477
1477
  size: o,
1478
1478
  title: i
1479
1479
  } = e, a = Ma(e, Sa), c = o || n.size || "1em", d;
1480
- return n.className && (d = n.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ _.createElement("svg", Xe({
1480
+ return n.className && (d = n.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ _.createElement("svg", Ge({
1481
1481
  stroke: "currentColor",
1482
1482
  fill: "currentColor",
1483
1483
  strokeWidth: "0"
1484
1484
  }, n.attr, r, a, {
1485
1485
  className: d,
1486
- style: ze(ze({
1486
+ style: Xe(Xe({
1487
1487
  color: e.color || n.color
1488
1488
  }, n.style), e.style),
1489
1489
  height: c,
@@ -1911,7 +1911,7 @@ var St = l.forwardRef((e, t) => {
1911
1911
  return l.Children.count(n) > 1 ? l.Children.only(null) : null;
1912
1912
  });
1913
1913
  St.displayName = "SlotClone";
1914
- var Ut = ({ children: e }) => /* @__PURE__ */ s(Le, { children: e });
1914
+ var Ut = ({ children: e }) => /* @__PURE__ */ s(Oe, { children: e });
1915
1915
  function es(e) {
1916
1916
  return l.isValidElement(e) && e.type === Ut;
1917
1917
  }
@@ -2064,19 +2064,19 @@ function as(e) {
2064
2064
  }
2065
2065
  });
2066
2066
  return l.useEffect(() => {
2067
- const u = Fe(r.current);
2067
+ const u = Ve(r.current);
2068
2068
  i.current = c === "mounted" ? u : "none";
2069
2069
  }, [c]), ee(() => {
2070
2070
  const u = r.current, f = o.current;
2071
2071
  if (f !== e) {
2072
- const m = i.current, v = Fe(u);
2072
+ const m = i.current, v = Ve(u);
2073
2073
  e ? d("MOUNT") : v === "none" || (u == null ? void 0 : u.display) === "none" ? d("UNMOUNT") : d(f && m !== v ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
2074
2074
  }
2075
2075
  }, [e, d]), ee(() => {
2076
2076
  if (t) {
2077
2077
  let u;
2078
2078
  const f = t.ownerDocument.defaultView ?? window, p = (v) => {
2079
- const h = Fe(r.current).includes(v.animationName);
2079
+ const h = Ve(r.current).includes(v.animationName);
2080
2080
  if (v.target === t && h && (d("ANIMATION_END"), !o.current)) {
2081
2081
  const g = t.style.animationFillMode;
2082
2082
  t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
@@ -2084,7 +2084,7 @@ function as(e) {
2084
2084
  });
2085
2085
  }
2086
2086
  }, m = (v) => {
2087
- v.target === t && (i.current = Fe(r.current));
2087
+ v.target === t && (i.current = Ve(r.current));
2088
2088
  };
2089
2089
  return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
2090
2090
  f.clearTimeout(u), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
@@ -2098,7 +2098,7 @@ function as(e) {
2098
2098
  }, [])
2099
2099
  };
2100
2100
  }
2101
- function Fe(e) {
2101
+ function Ve(e) {
2102
2102
  return (e == null ? void 0 : e.animationName) || "none";
2103
2103
  }
2104
2104
  function ss(e) {
@@ -2343,9 +2343,9 @@ var [wr, xs] = ot(re), [yr, bs] = ot(
2343
2343
  }
2344
2344
  );
2345
2345
  }
2346
- ), qe = "AccordionItem", [Ps, Qt] = ot(qe), br = _.forwardRef(
2346
+ ), ze = "AccordionItem", [Ps, Qt] = ot(ze), br = _.forwardRef(
2347
2347
  (e, t) => {
2348
- const { __scopeAccordion: n, value: r, ...o } = e, i = it(qe, n), a = xs(qe, n), c = qt(n), d = Ce(), u = r && a.value.includes(r) || !1, f = i.disabled || e.disabled;
2348
+ const { __scopeAccordion: n, value: r, ...o } = e, i = it(ze, n), a = xs(ze, n), c = qt(n), d = Ce(), u = r && a.value.includes(r) || !1, f = i.disabled || e.disabled;
2349
2349
  return /* @__PURE__ */ s(
2350
2350
  Ps,
2351
2351
  {
@@ -2372,7 +2372,7 @@ var [wr, xs] = ot(re), [yr, bs] = ot(
2372
2372
  );
2373
2373
  }
2374
2374
  );
2375
- br.displayName = qe;
2375
+ br.displayName = ze;
2376
2376
  var Ar = "AccordionHeader", Er = _.forwardRef(
2377
2377
  (e, t) => {
2378
2378
  const { __scopeAccordion: n, ...r } = e, o = it(re, n), i = Qt(Ar, n);
@@ -2514,7 +2514,7 @@ const kn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Hn =
2514
2514
  ] : u;
2515
2515
  }, []);
2516
2516
  return Hn(e, a, d, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
2517
- }, Ie = Lr(
2517
+ }, _e = Lr(
2518
2518
  "inline-flex items-center justify-center gap-1 whitespace-nowrap text-sm font-normal ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none disabled:bg-muted disabled:text-muted-foreground disabled:border-muted-border",
2519
2519
  {
2520
2520
  variants: {
@@ -2609,7 +2609,7 @@ const kn = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Hn =
2609
2609
  c ? be : "button",
2610
2610
  {
2611
2611
  className: M(
2612
- Ie({ theme: t, size: n, variant: r, shape: o }),
2612
+ _e({ theme: t, size: n, variant: r, shape: o }),
2613
2613
  e
2614
2614
  ),
2615
2615
  ref: u,
@@ -2942,7 +2942,7 @@ function ec(e, t, n) {
2942
2942
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
2943
2943
  return e.concat(i || Array.prototype.slice.call(t));
2944
2944
  }
2945
- var Ke = "right-scroll-bar-position", Ye = "width-before-scroll-bar", tc = "with-scroll-bars-hidden", nc = "--removed-body-scroll-bar-size";
2945
+ var Ue = "right-scroll-bar-position", Ke = "width-before-scroll-bar", tc = "with-scroll-bars-hidden", nc = "--removed-body-scroll-bar-size";
2946
2946
  function bt(e, t) {
2947
2947
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
2948
2948
  }
@@ -3083,8 +3083,8 @@ st.defaultProps = {
3083
3083
  inert: !1
3084
3084
  };
3085
3085
  st.classNames = {
3086
- fullWidth: Ye,
3087
- zeroRight: Ke
3086
+ fullWidth: Ke,
3087
+ zeroRight: Ue
3088
3088
  };
3089
3089
  var uc = function() {
3090
3090
  if (typeof __webpack_nonce__ < "u")
@@ -3174,19 +3174,19 @@ var hc = function() {
3174
3174
  ].filter(Boolean).join(""), `
3175
3175
  }
3176
3176
 
3177
- .`).concat(Ke, ` {
3177
+ .`).concat(Ue, ` {
3178
3178
  right: `).concat(c, "px ").concat(r, `;
3179
3179
  }
3180
3180
 
3181
- .`).concat(Ye, ` {
3181
+ .`).concat(Ke, ` {
3182
3182
  margin-right: `).concat(c, "px ").concat(r, `;
3183
3183
  }
3184
3184
 
3185
- .`).concat(Ke, " .").concat(Ke, ` {
3185
+ .`).concat(Ue, " .").concat(Ue, ` {
3186
3186
  right: 0 `).concat(r, `;
3187
3187
  }
3188
3188
 
3189
- .`).concat(Ye, " .").concat(Ye, ` {
3189
+ .`).concat(Ke, " .").concat(Ke, ` {
3190
3190
  margin-right: 0 `).concat(r, `;
3191
3191
  }
3192
3192
 
@@ -3214,12 +3214,12 @@ var hc = function() {
3214
3214
  }, Lt = !1;
3215
3215
  if (typeof window < "u")
3216
3216
  try {
3217
- var $e = Object.defineProperty({}, "passive", {
3217
+ var Fe = Object.defineProperty({}, "passive", {
3218
3218
  get: function() {
3219
3219
  return Lt = !0, !0;
3220
3220
  }
3221
3221
  });
3222
- window.addEventListener("test", $e, $e), window.removeEventListener("test", $e, $e);
3222
+ window.addEventListener("test", Fe, Fe), window.removeEventListener("test", Fe, Fe);
3223
3223
  } catch {
3224
3224
  Lt = !1;
3225
3225
  }
@@ -3282,7 +3282,7 @@ var me = Lt ? { passive: !1 } : !1, Ac = function(e) {
3282
3282
  d && (t.contains(c) || t === c)
3283
3283
  );
3284
3284
  return (f && (Math.abs(p) < 1 || !o) || !f && (Math.abs(m) < 1 || !o)) && (u = !0), u;
3285
- }, Be = function(e) {
3285
+ }, $e = function(e) {
3286
3286
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3287
3287
  }, Gn = function(e) {
3288
3288
  return [e.deltaX, e.deltaY];
@@ -3316,7 +3316,7 @@ function Dc(e) {
3316
3316
  var c = l.useCallback(function(h, g) {
3317
3317
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
3318
3318
  return !a.current.allowPinchZoom;
3319
- var w = Be(h), y = n.current, x = "deltaX" in h ? h.deltaX : y[0] - w[0], b = "deltaY" in h ? h.deltaY : y[1] - w[1], A, E = h.target, P = Math.abs(x) > Math.abs(b) ? "h" : "v";
3319
+ var w = $e(h), y = n.current, x = "deltaX" in h ? h.deltaX : y[0] - w[0], b = "deltaY" in h ? h.deltaY : y[1] - w[1], A, E = h.target, P = Math.abs(x) > Math.abs(b) ? "h" : "v";
3320
3320
  if ("touches" in h && P === "h" && E.type === "range")
3321
3321
  return !1;
3322
3322
  var S = Yn(P, E);
@@ -3331,7 +3331,7 @@ function Dc(e) {
3331
3331
  }, []), d = l.useCallback(function(h) {
3332
3332
  var g = h;
3333
3333
  if (!(!ve.length || ve[ve.length - 1] !== i)) {
3334
- var w = "deltaY" in g ? Gn(g) : Be(g), y = t.current.filter(function(A) {
3334
+ var w = "deltaY" in g ? Gn(g) : $e(g), y = t.current.filter(function(A) {
3335
3335
  return A.name === g.type && (A.target === g.target || g.target === A.shadowParent) && Mc(A.delta, w);
3336
3336
  })[0];
3337
3337
  if (y && y.should) {
@@ -3353,11 +3353,11 @@ function Dc(e) {
3353
3353
  });
3354
3354
  }, 1);
3355
3355
  }, []), f = l.useCallback(function(h) {
3356
- n.current = Be(h), r.current = void 0;
3356
+ n.current = $e(h), r.current = void 0;
3357
3357
  }, []), p = l.useCallback(function(h) {
3358
3358
  u(h.type, Gn(h), h.target, c(h, e.lockRef.current));
3359
3359
  }, []), m = l.useCallback(function(h) {
3360
- u(h.type, Be(h), h.target, c(h, e.lockRef.current));
3360
+ u(h.type, $e(h), h.target, c(h, e.lockRef.current));
3361
3361
  }, []);
3362
3362
  l.useEffect(function() {
3363
3363
  return ve.push(i), e.setCallbacks({
@@ -3393,7 +3393,7 @@ var kc = function(e) {
3393
3393
  return null;
3394
3394
  var t = Array.isArray(e) ? e[0] : e;
3395
3395
  return t.ownerDocument.body;
3396
- }, ge = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), We = {}, Rt = 0, Kr = function(e) {
3396
+ }, ge = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Ze = {}, Rt = 0, Kr = function(e) {
3397
3397
  return e && (e.host || Kr(e.parentNode));
3398
3398
  }, Hc = function(e, t) {
3399
3399
  return t.map(function(n) {
@@ -3406,8 +3406,8 @@ var kc = function(e) {
3406
3406
  });
3407
3407
  }, Vc = function(e, t, n, r) {
3408
3408
  var o = Hc(t, Array.isArray(e) ? e : [e]);
3409
- We[n] || (We[n] = /* @__PURE__ */ new WeakMap());
3410
- var i = We[n], a = [], c = /* @__PURE__ */ new Set(), d = new Set(o), u = function(p) {
3409
+ Ze[n] || (Ze[n] = /* @__PURE__ */ new WeakMap());
3410
+ var i = Ze[n], a = [], c = /* @__PURE__ */ new Set(), d = new Set(o), u = function(p) {
3411
3411
  !p || c.has(p) || (c.add(p), u(p.parentNode));
3412
3412
  };
3413
3413
  o.forEach(u);
@@ -3418,7 +3418,7 @@ var kc = function(e) {
3418
3418
  else
3419
3419
  try {
3420
3420
  var v = m.getAttribute(r), C = v !== null && v !== "false", h = (ge.get(m) || 0) + 1, g = (i.get(m) || 0) + 1;
3421
- ge.set(m, h), i.set(m, g), a.push(m), h === 1 && C && Ze.set(m, !0), g === 1 && m.setAttribute(n, "true"), C || m.setAttribute(r, "true");
3421
+ ge.set(m, h), i.set(m, g), a.push(m), h === 1 && C && Be.set(m, !0), g === 1 && m.setAttribute(n, "true"), C || m.setAttribute(r, "true");
3422
3422
  } catch (w) {
3423
3423
  console.error("aria-hidden: cannot operate on ", m, w);
3424
3424
  }
@@ -3427,8 +3427,8 @@ var kc = function(e) {
3427
3427
  return f(t), c.clear(), Rt++, function() {
3428
3428
  a.forEach(function(p) {
3429
3429
  var m = ge.get(p) - 1, v = i.get(p) - 1;
3430
- ge.set(p, m), i.set(p, v), m || (Ze.has(p) || p.removeAttribute(r), Ze.delete(p)), v || p.removeAttribute(n);
3431
- }), Rt--, Rt || (ge = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), We = {});
3430
+ ge.set(p, m), i.set(p, v), m || (Be.has(p) || p.removeAttribute(r), Be.delete(p)), v || p.removeAttribute(n);
3431
+ }), Rt--, Rt || (ge = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Ze = {});
3432
3432
  };
3433
3433
  }, Fc = function(e, t, n) {
3434
3434
  n === void 0 && (n = "data-aria-hidden");
@@ -3493,16 +3493,16 @@ var tn = "DialogPortal", [Bc, Qr] = Yr(tn, {
3493
3493
  return /* @__PURE__ */ s(Bc, { scope: t, forceMount: n, children: l.Children.map(r, (a) => /* @__PURE__ */ s(fe, { present: n || i.open, children: /* @__PURE__ */ s(Jt, { asChild: !0, container: o, children: a }) })) });
3494
3494
  };
3495
3495
  Jr.displayName = tn;
3496
- var Qe = "DialogOverlay", eo = l.forwardRef(
3496
+ var qe = "DialogOverlay", eo = l.forwardRef(
3497
3497
  (e, t) => {
3498
- const n = Qr(Qe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = z(Qe, e.__scopeDialog);
3498
+ const n = Qr(qe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = z(qe, e.__scopeDialog);
3499
3499
  return i.modal ? /* @__PURE__ */ s(fe, { present: r || i.open, children: /* @__PURE__ */ s(Zc, { ...o, ref: t }) }) : null;
3500
3500
  }
3501
3501
  );
3502
- eo.displayName = Qe;
3502
+ eo.displayName = qe;
3503
3503
  var Zc = l.forwardRef(
3504
3504
  (e, t) => {
3505
- const { __scopeDialog: n, ...r } = e, o = z(Qe, n);
3505
+ const { __scopeDialog: n, ...r } = e, o = z(qe, n);
3506
3506
  return (
3507
3507
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
3508
3508
  // ie. when `Overlay` and `Content` are siblings
@@ -3578,7 +3578,7 @@ var Wc = l.forwardRef(
3578
3578
  ), no = l.forwardRef(
3579
3579
  (e, t) => {
3580
3580
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, c = z(ue, n), d = l.useRef(null), u = W(t, d);
3581
- return Js(), /* @__PURE__ */ R(Le, { children: [
3581
+ return Js(), /* @__PURE__ */ R(Oe, { children: [
3582
3582
  /* @__PURE__ */ s(
3583
3583
  kr,
3584
3584
  {
@@ -3602,7 +3602,7 @@ var Wc = l.forwardRef(
3602
3602
  )
3603
3603
  }
3604
3604
  ),
3605
- /* @__PURE__ */ R(Le, { children: [
3605
+ /* @__PURE__ */ R(Oe, { children: [
3606
3606
  /* @__PURE__ */ s(Kc, { titleId: c.titleId }),
3607
3607
  /* @__PURE__ */ s(Gc, { contentRef: d, descriptionId: c.descriptionId })
3608
3608
  ] })
@@ -3833,7 +3833,7 @@ const fn = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
3833
3833
  }
3834
3834
  ));
3835
3835
  fn.displayName = So.displayName;
3836
- const Oe = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
3836
+ const Qe = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
3837
3837
  Mo,
3838
3838
  {
3839
3839
  ref: n,
@@ -3844,12 +3844,12 @@ const Oe = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
3844
3844
  ...t
3845
3845
  }
3846
3846
  ));
3847
- Oe.displayName = Mo.displayName;
3847
+ Qe.displayName = Mo.displayName;
3848
3848
  const pn = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
3849
3849
  To,
3850
3850
  {
3851
3851
  ref: n,
3852
- className: M(Ie({ size: "sm" }), e),
3852
+ className: M(_e({ size: "sm" }), e),
3853
3853
  ...t
3854
3854
  }
3855
3855
  ));
@@ -3859,7 +3859,7 @@ const Do = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
3859
3859
  {
3860
3860
  ref: n,
3861
3861
  className: M(
3862
- Ie({ variant: "outline", size: "sm", theme: "secondary" }),
3862
+ _e({ variant: "outline", size: "sm", theme: "secondary" }),
3863
3863
  "mt-2 w-1/2 sm:mt-0",
3864
3864
  e
3865
3865
  ),
@@ -3884,7 +3884,7 @@ const ll = ({
3884
3884
  children: /* @__PURE__ */ R(ln, { size: o, children: [
3885
3885
  /* @__PURE__ */ R(un, { children: [
3886
3886
  /* @__PURE__ */ s(fn, { children: e }),
3887
- /* @__PURE__ */ s(Oe, { children: t })
3887
+ /* @__PURE__ */ s(Qe, { children: t })
3888
3888
  ] }),
3889
3889
  /* @__PURE__ */ s(dn, { children: /* @__PURE__ */ s(
3890
3890
  pn,
@@ -4060,10 +4060,10 @@ const hl = l.forwardRef(
4060
4060
  children: [
4061
4061
  /* @__PURE__ */ R(un, { children: [
4062
4062
  /* @__PURE__ */ s(fn, { children: e }),
4063
- t && /* @__PURE__ */ s(Oe, { className: "text-sm text-grey-800", children: t }),
4064
- n && /* @__PURE__ */ s(Oe, { className: "text-xs text-grey-600", children: n })
4063
+ t && /* @__PURE__ */ s("div", { className: "text-sm text-grey-800 whitespace-pre-wrap", children: t }),
4064
+ n && /* @__PURE__ */ s(Qe, { className: "text-xs text-grey-600", children: n })
4065
4065
  ] }),
4066
- r && /* @__PURE__ */ s(Oe, { className: "text-sm font-normal text-grey-600", children: r }),
4066
+ r && /* @__PURE__ */ s(Qe, { className: "text-sm font-normal text-grey-600", children: r }),
4067
4067
  /* @__PURE__ */ R(dn, { children: [
4068
4068
  /* @__PURE__ */ s(
4069
4069
  Do,
@@ -4351,7 +4351,7 @@ var [Rl, Pl] = $o(dt, {
4351
4351
  i && !h.isClosePausedRef.current && $(A);
4352
4352
  }, [i, A, h.isClosePausedRef, $]), l.useEffect(() => (O(), () => L()), [O, L]);
4353
4353
  const V = l.useMemo(() => g ? Qo(g) : null, [g]);
4354
- return h.viewport ? /* @__PURE__ */ R(Le, { children: [
4354
+ return h.viewport ? /* @__PURE__ */ R(Oe, { children: [
4355
4355
  V && /* @__PURE__ */ s(
4356
4356
  Nl,
4357
4357
  {
@@ -4390,10 +4390,10 @@ var [Rl, Pl] = $o(dt, {
4390
4390
  }),
4391
4391
  onPointerMove: I(e.onPointerMove, (T) => {
4392
4392
  if (!x.current) return;
4393
- const k = T.clientX - x.current.x, D = T.clientY - x.current.y, F = !!b.current, N = ["left", "right"].includes(h.swipeDirection), Z = ["left", "up"].includes(h.swipeDirection) ? Math.min : Math.max, K = N ? Z(0, k) : 0, pe = N ? 0 : Z(0, D), Se = T.pointerType === "touch" ? 10 : 2, he = { x: K, y: pe }, He = { originalEvent: T, delta: he };
4394
- F ? (b.current = he, je(bl, p, He, {
4393
+ const k = T.clientX - x.current.x, D = T.clientY - x.current.y, F = !!b.current, N = ["left", "right"].includes(h.swipeDirection), Z = ["left", "up"].includes(h.swipeDirection) ? Math.min : Math.max, K = N ? Z(0, k) : 0, pe = N ? 0 : Z(0, D), Se = T.pointerType === "touch" ? 10 : 2, he = { x: K, y: pe }, ke = { originalEvent: T, delta: he };
4394
+ F ? (b.current = he, We(bl, p, ke, {
4395
4395
  discrete: !1
4396
- })) : zn(he, h.swipeDirection, Se) ? (b.current = he, je(xl, f, He, {
4396
+ })) : zn(he, h.swipeDirection, Se) ? (b.current = he, We(xl, f, ke, {
4397
4397
  discrete: !1
4398
4398
  }), T.target.setPointerCapture(T.pointerId)) : (Math.abs(k) > Se || Math.abs(D) > Se) && (x.current = null);
4399
4399
  }),
@@ -4401,9 +4401,9 @@ var [Rl, Pl] = $o(dt, {
4401
4401
  const k = b.current, D = T.target;
4402
4402
  if (D.hasPointerCapture(T.pointerId) && D.releasePointerCapture(T.pointerId), b.current = null, x.current = null, k) {
4403
4403
  const F = T.currentTarget, N = { originalEvent: T, delta: k };
4404
- zn(k, h.swipeDirection, h.swipeThreshold) ? je(El, v, N, {
4404
+ zn(k, h.swipeDirection, h.swipeThreshold) ? We(El, v, N, {
4405
4405
  discrete: !0
4406
- }) : je(
4406
+ }) : We(
4407
4407
  Al,
4408
4408
  m,
4409
4409
  N,
@@ -4428,7 +4428,7 @@ var [Rl, Pl] = $o(dt, {
4428
4428
  return Ol(() => a(!0)), l.useEffect(() => {
4429
4429
  const u = window.setTimeout(() => d(!0), 1e3);
4430
4430
  return () => window.clearTimeout(u);
4431
- }, []), c ? null : /* @__PURE__ */ s(Jt, { asChild: !0, children: /* @__PURE__ */ s(lt, { ...r, children: i && /* @__PURE__ */ R(Le, { children: [
4431
+ }, []), c ? null : /* @__PURE__ */ s(Jt, { asChild: !0, children: /* @__PURE__ */ s(lt, { ...r, children: i && /* @__PURE__ */ R(Oe, { children: [
4432
4432
  o.label,
4433
4433
  " ",
4434
4434
  n
@@ -4497,7 +4497,7 @@ function Qo(e) {
4497
4497
  }
4498
4498
  }), t;
4499
4499
  }
4500
- function je(e, t, n, { discrete: r }) {
4500
+ function We(e, t, n, { discrete: r }) {
4501
4501
  const o = n.originalEvent.currentTarget, i = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
4502
4502
  t && o.addEventListener(e, t, { once: !0 }), r ? fr(o, i) : o.dispatchEvent(i);
4503
4503
  }
@@ -4591,7 +4591,7 @@ const si = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s(
4591
4591
  {
4592
4592
  ref: n,
4593
4593
  className: M(
4594
- Ie({ variant: "outline", size: "sm", theme: "secondary" }),
4594
+ _e({ variant: "outline", size: "sm", theme: "secondary" }),
4595
4595
  e
4596
4596
  ),
4597
4597
  ...t
@@ -4658,7 +4658,7 @@ function Eu() {
4658
4658
  i && /* @__PURE__ */ s(li, { children: i }),
4659
4659
  /* @__PURE__ */ s(ui, { children: a })
4660
4660
  ] }),
4661
- c && /* @__PURE__ */ s(si, { altText: o || "toast action", onClick: c, className: M(Ie({ variant: f === "black" ? "solid" : "outline", size: "sm", theme: "secondary" })), children: d }),
4661
+ c && /* @__PURE__ */ s(si, { altText: o || "toast action", onClick: c, className: M(_e({ variant: f === "black" ? "solid" : "outline", size: "sm", theme: "secondary" })), children: d }),
4662
4662
  u && /* @__PURE__ */ s(ci, {})
4663
4663
  ]
4664
4664
  },
@@ -4675,7 +4675,7 @@ const Ru = ({ children: e }) => {
4675
4675
  let r = document.getElementById("portal");
4676
4676
  r || (r = document.createElement("div"), r.id = "portal", document.body.appendChild(r)), n(r);
4677
4677
  }, []), t ? sr.createPortal(e, t) : null;
4678
- }, Vl = ["top", "right", "bottom", "left"], ae = Math.min, j = Math.max, Je = Math.round, Ue = Math.floor, se = (e) => ({
4678
+ }, Vl = ["top", "right", "bottom", "left"], ae = Math.min, j = Math.max, Je = Math.round, je = Math.floor, se = (e) => ({
4679
4679
  x: e,
4680
4680
  y: e
4681
4681
  }), Fl = {
@@ -4889,7 +4889,7 @@ const Kl = async (e, t, n) => {
4889
4889
  middlewareData: v
4890
4890
  };
4891
4891
  };
4892
- async function De(e, t) {
4892
+ async function Le(e, t) {
4893
4893
  var n;
4894
4894
  t === void 0 && (t = {});
4895
4895
  const {
@@ -4997,7 +4997,7 @@ const Yl = (e) => ({
4997
4997
  return {};
4998
4998
  const w = ne(o), y = ce(c), x = ne(c) === c, b = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), A = m || (x || !h ? [et(c)] : Zl(c)), E = C !== "none";
4999
4999
  !m && E && A.push(...jl(c, h, C, b));
5000
- const P = [c, ...A], S = await De(t, g), O = [];
5000
+ const P = [c, ...A], S = await Le(t, g), O = [];
5001
5001
  let L = ((r = i.flip) == null ? void 0 : r.overflows) || [];
5002
5002
  if (f && O.push(S[w]), p) {
5003
5003
  const T = Bl(o, a, b);
@@ -5075,7 +5075,7 @@ const Xl = function(e) {
5075
5075
  } = te(e, t);
5076
5076
  switch (r) {
5077
5077
  case "referenceHidden": {
5078
- const i = await De(t, {
5078
+ const i = await Le(t, {
5079
5079
  ...o,
5080
5080
  elementContext: "reference"
5081
5081
  }), a = Qn(i, n.reference);
@@ -5087,7 +5087,7 @@ const Xl = function(e) {
5087
5087
  };
5088
5088
  }
5089
5089
  case "escaped": {
5090
- const i = await De(t, {
5090
+ const i = await Le(t, {
5091
5091
  ...o,
5092
5092
  altBoundary: !0
5093
5093
  }), a = Qn(i, n.floating);
@@ -5181,7 +5181,7 @@ const ql = function(e) {
5181
5181
  } = te(e, t), u = {
5182
5182
  x: n,
5183
5183
  y: r
5184
- }, f = await De(t, d), p = ce(ne(o)), m = gn(p);
5184
+ }, f = await Le(t, d), p = ce(ne(o)), m = gn(p);
5185
5185
  let v = u[m], C = u[p];
5186
5186
  if (i) {
5187
5187
  const g = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", y = v + f[g], x = v - f[w];
@@ -5266,7 +5266,7 @@ const ql = function(e) {
5266
5266
  apply: d = () => {
5267
5267
  },
5268
5268
  ...u
5269
- } = te(e, t), f = await De(t, u), p = ne(o), m = Te(o), v = ce(o) === "y", {
5269
+ } = te(e, t), f = await Le(t, u), p = ne(o), m = Te(o), v = ce(o) === "y", {
5270
5270
  width: C,
5271
5271
  height: h
5272
5272
  } = i.floating;
@@ -5318,7 +5318,7 @@ function Q(e) {
5318
5318
  function er(e) {
5319
5319
  return !ft() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof U(e).ShadowRoot;
5320
5320
  }
5321
- function ke(e) {
5321
+ function Ie(e) {
5322
5322
  const {
5323
5323
  overflow: t,
5324
5324
  overflowX: n,
@@ -5386,17 +5386,17 @@ function le(e) {
5386
5386
  }
5387
5387
  function pi(e) {
5388
5388
  const t = le(e);
5389
- return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Q(t) && ke(t) ? t : pi(t);
5389
+ return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Q(t) && Ie(t) ? t : pi(t);
5390
5390
  }
5391
- function _e(e, t, n) {
5391
+ function De(e, t, n) {
5392
5392
  var r;
5393
5393
  t === void 0 && (t = []), n === void 0 && (n = !0);
5394
5394
  const o = pi(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = U(o);
5395
5395
  if (i) {
5396
5396
  const c = Vt(a);
5397
- return t.concat(a, a.visualViewport || [], ke(o) ? o : [], c && n ? _e(c) : []);
5397
+ return t.concat(a, a.visualViewport || [], Ie(o) ? o : [], c && n ? De(c) : []);
5398
5398
  }
5399
- return t.concat(o, _e(o, [], n));
5399
+ return t.concat(o, De(o, [], n));
5400
5400
  }
5401
5401
  function Vt(e) {
5402
5402
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -5477,7 +5477,7 @@ function i1(e) {
5477
5477
  scrollTop: 0
5478
5478
  }, u = se(1);
5479
5479
  const f = se(0), p = Q(r);
5480
- if ((p || !p && !i) && ((Ne(r) !== "body" || ke(a)) && (d = ht(r)), Q(r))) {
5480
+ if ((p || !p && !i) && ((Ne(r) !== "body" || Ie(a)) && (d = ht(r)), Q(r))) {
5481
5481
  const m = de(r);
5482
5482
  u = xe(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
5483
5483
  }
@@ -5556,12 +5556,12 @@ function u1(e, t) {
5556
5556
  const n = t.get(e);
5557
5557
  if (n)
5558
5558
  return n;
5559
- let r = _e(e, [], !1).filter((c) => G(c) && Ne(c) !== "body"), o = null;
5559
+ let r = De(e, [], !1).filter((c) => G(c) && Ne(c) !== "body"), o = null;
5560
5560
  const i = X(e).position === "fixed";
5561
5561
  let a = i ? le(e) : e;
5562
5562
  for (; G(a) && !Ae(a); ) {
5563
5563
  const c = X(a), d = yn(a);
5564
- !d && c.position === "fixed" && (o = null), (i ? !d && !o : !d && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ke(a) && !d && vi(e, a)) ? r = r.filter((f) => f !== a) : o = c, a = le(a);
5564
+ !d && c.position === "fixed" && (o = null), (i ? !d && !o : !d && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ie(a) && !d && vi(e, a)) ? r = r.filter((f) => f !== a) : o = c, a = le(a);
5565
5565
  }
5566
5566
  return t.set(e, r), r;
5567
5567
  }
@@ -5601,7 +5601,7 @@ function p1(e, t, n) {
5601
5601
  };
5602
5602
  const d = se(0);
5603
5603
  if (r || !r && !i)
5604
- if ((Ne(t) !== "body" || ke(o)) && (c = ht(t)), r) {
5604
+ if ((Ne(t) !== "body" || Ie(o)) && (c = ht(t)), r) {
5605
5605
  const v = de(t, !0, i, t);
5606
5606
  d.x = v.x + t.clientLeft, d.y = v.y + t.clientTop;
5607
5607
  } else o && (d.x = Ft(o));
@@ -5692,7 +5692,7 @@ function g1(e, t) {
5692
5692
  } = e.getBoundingClientRect();
5693
5693
  if (c || t(), !p || !m)
5694
5694
  return;
5695
- const v = Ue(f), C = Ue(o.clientWidth - (u + p)), h = Ue(o.clientHeight - (f + m)), g = Ue(u), y = {
5695
+ const v = je(f), C = je(o.clientWidth - (u + p)), h = je(o.clientHeight - (f + m)), g = je(u), y = {
5696
5696
  rootMargin: -v + "px " + -C + "px " + -h + "px " + -g + "px",
5697
5697
  threshold: j(0, ae(1, d)) || 1
5698
5698
  };
@@ -5729,7 +5729,7 @@ function C1(e, t, n, r) {
5729
5729
  elementResize: a = typeof ResizeObserver == "function",
5730
5730
  layoutShift: c = typeof IntersectionObserver == "function",
5731
5731
  animationFrame: d = !1
5732
- } = r, u = bn(e), f = o || i ? [...u ? _e(u) : [], ..._e(t)] : [];
5732
+ } = r, u = bn(e), f = o || i ? [...u ? De(u) : [], ...De(t)] : [];
5733
5733
  f.forEach((w) => {
5734
5734
  o && w.addEventListener("scroll", n, {
5735
5735
  passive: !0
@@ -5770,7 +5770,7 @@ const w1 = ql, y1 = Ql, x1 = Gl, b1 = e1, A1 = Xl, rr = Yl, E1 = Jl, R1 = (e, t,
5770
5770
  platform: i
5771
5771
  });
5772
5772
  };
5773
- var Ge = typeof document < "u" ? Ki : ar;
5773
+ var Ye = typeof document < "u" ? Ki : ar;
5774
5774
  function nt(e, t) {
5775
5775
  if (e === t)
5776
5776
  return !0;
@@ -5810,7 +5810,7 @@ function or(e, t) {
5810
5810
  }
5811
5811
  function Nt(e) {
5812
5812
  const t = l.useRef(e);
5813
- return Ge(() => {
5813
+ return Ye(() => {
5814
5814
  t.current = e;
5815
5815
  }), t;
5816
5816
  }
@@ -5863,16 +5863,16 @@ function P1(e) {
5863
5863
  }));
5864
5864
  });
5865
5865
  }, [m, t, n, B, $]);
5866
- Ge(() => {
5866
+ Ye(() => {
5867
5867
  u === !1 && S.current.isPositioned && (S.current.isPositioned = !1, p((N) => ({
5868
5868
  ...N,
5869
5869
  isPositioned: !1
5870
5870
  })));
5871
5871
  }, [u]);
5872
5872
  const T = l.useRef(!1);
5873
- Ge(() => (T.current = !0, () => {
5873
+ Ye(() => (T.current = !0, () => {
5874
5874
  T.current = !1;
5875
- }), []), Ge(() => {
5875
+ }), []), Ye(() => {
5876
5876
  if (b && (E.current = b), A && (P.current = A), b && A) {
5877
5877
  if (L.current)
5878
5878
  return L.current(b, A, V);
@@ -6104,8 +6104,8 @@ var En = "PopperContent", [B1, Z1] = yi(En), Pi = l.forwardRef(
6104
6104
  L1({
6105
6105
  ...V,
6106
6106
  apply: ({ elements: Me, rects: Ln, availableWidth: $i, availableHeight: Bi }) => {
6107
- const { width: Zi, height: Wi } = Ln.reference, Ve = Me.floating.style;
6108
- Ve.setProperty("--radix-popper-available-width", `${$i}px`), Ve.setProperty("--radix-popper-available-height", `${Bi}px`), Ve.setProperty("--radix-popper-anchor-width", `${Zi}px`), Ve.setProperty("--radix-popper-anchor-height", `${Wi}px`);
6107
+ const { width: Zi, height: Wi } = Ln.reference, He = Me.floating.style;
6108
+ He.setProperty("--radix-popper-available-width", `${$i}px`), He.setProperty("--radix-popper-available-height", `${Bi}px`), He.setProperty("--radix-popper-anchor-width", `${Zi}px`), He.setProperty("--radix-popper-anchor-height", `${Wi}px`);
6109
6109
  }
6110
6110
  }),
6111
6111
  b && _1({ element: b, padding: c }),
@@ -6116,7 +6116,7 @@ var En = "PopperContent", [B1, Z1] = yi(En), Pi = l.forwardRef(
6116
6116
  ee(() => {
6117
6117
  F && (pe == null || pe());
6118
6118
  }, [F, pe]);
6119
- const Se = (Pn = N.arrow) == null ? void 0 : Pn.x, he = (Tn = N.arrow) == null ? void 0 : Tn.y, He = ((Nn = N.arrow) == null ? void 0 : Nn.centerOffset) !== 0, [Vi, Fi] = l.useState();
6119
+ const Se = (Pn = N.arrow) == null ? void 0 : Pn.x, he = (Tn = N.arrow) == null ? void 0 : Tn.y, ke = ((Nn = N.arrow) == null ? void 0 : Nn.centerOffset) !== 0, [Vi, Fi] = l.useState();
6120
6120
  return ee(() => {
6121
6121
  w && Fi(window.getComputedStyle(w).zIndex);
6122
6122
  }, [w]), /* @__PURE__ */ s(
@@ -6151,7 +6151,7 @@ var En = "PopperContent", [B1, Z1] = yi(En), Pi = l.forwardRef(
6151
6151
  onArrowChange: A,
6152
6152
  arrowX: Se,
6153
6153
  arrowY: he,
6154
- shouldHideArrow: He,
6154
+ shouldHideArrow: ke,
6155
6155
  children: /* @__PURE__ */ s(
6156
6156
  H.div,
6157
6157
  {
@@ -6594,7 +6594,7 @@ export {
6594
6594
  Ls as a,
6595
6595
  Ms as b,
6596
6596
  Os as c,
6597
- Ie as d,
6597
+ _e as d,
6598
6598
  Is as e,
6599
6599
  ll as f,
6600
6600
  Nu as g,