@memobit/libs 1.0.23 → 1.0.25

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/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import E1, { Component as J2, Fragment as e3, createContext as w0, forwardRef as M1, useCallback as j, useContext as f0, useEffect as U, useId as C0, useImperativeHandle as w2, useMemo as m1, useRef as Y, useState as z } from "react";
1
+ import E1, { Component as J2, Fragment as e3, createContext as C0, forwardRef as M1, useCallback as j, useContext as y0, useEffect as F, useId as b0, useImperativeHandle as y2, useMemo as m1, useRef as Y, useState as z } from "react";
2
2
  import { Fragment as l1, jsx as e, jsxs as r } from "react/jsx-runtime";
3
3
  import { createPortal as q1 } from "react-dom";
4
4
  var t3 = /* @__PURE__ */ r("svg", {
@@ -1445,7 +1445,7 @@ var t3 = /* @__PURE__ */ r("svg", {
1445
1445
  width: "1em",
1446
1446
  height: "1em",
1447
1447
  children: /* @__PURE__ */ e("path", { d: "M20 8c0-2.21-3.58-4-8-4S4 5.79 4 8c0 .93.47 1.77 1.23 2.45C4.47 11.12 4 12 4 13v6a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-6c0-1-.47-1.88-1.23-2.55C19.53 9.77 20 8.93 20 8zm-8-2c3.31 0 6 .9 6 2s-2.69 2-6 2-6-.9-6-2 2.69-2 6-2zm6 11H6v-4h12v4zm0-6H6v-.18C7.33 11.55 9.53 12 12 12s4.67-.45 6-1.18V11z" })
1448
- }), f2 = /* @__PURE__ */ e("svg", {
1448
+ }), b2 = /* @__PURE__ */ e("svg", {
1449
1449
  xmlns: "http://www.w3.org/2000/svg",
1450
1450
  viewBox: "0 0 24 24",
1451
1451
  fill: "currentColor",
@@ -1774,7 +1774,7 @@ var t3 = /* @__PURE__ */ r("svg", {
1774
1774
  ]
1775
1775
  })
1776
1776
  ]
1777
- }), W0 = /* @__PURE__ */ e("svg", {
1777
+ }), O0 = /* @__PURE__ */ e("svg", {
1778
1778
  xmlns: "http://www.w3.org/2000/svg",
1779
1779
  viewBox: "0 0 24 24",
1780
1780
  fill: "currentColor",
@@ -9509,7 +9509,7 @@ var t3 = /* @__PURE__ */ r("svg", {
9509
9509
  "calendar-month": C4,
9510
9510
  "calendar-week": y4,
9511
9511
  "calendar-year": b4,
9512
- "caret-down": f2,
9512
+ "caret-down": b2,
9513
9513
  "caret-left": z4,
9514
9514
  "caret-right": V4,
9515
9515
  "caret-up": N4,
@@ -9651,7 +9651,7 @@ var t3 = /* @__PURE__ */ r("svg", {
9651
9651
  chestnut: r3,
9652
9652
  chicken: E4,
9653
9653
  chocolate: I4,
9654
- clear: W0,
9654
+ clear: O0,
9655
9655
  clipboard: P4,
9656
9656
  cloud: W4,
9657
9657
  coffee: U4,
@@ -9973,7 +9973,7 @@ var t3 = /* @__PURE__ */ r("svg", {
9973
9973
  storm: Pt,
9974
9974
  uranus: Wt,
9975
9975
  venus: Ut
9976
- }, G = ({ className: t = "", fade: c, fadeOnHover: l, name: a, pulse: s, pulseOnHover: o, size: i, spin: n, spinOnHover: d, variant: h }) => /* @__PURE__ */ e("span", {
9976
+ }, E = ({ className: t = "", fade: c, fadeOnHover: l, name: a, pulse: s, pulseOnHover: o, size: i, spin: n, spinOnHover: d, variant: h }) => /* @__PURE__ */ e("span", {
9977
9977
  className: [
9978
9978
  "icon",
9979
9979
  i ? `icon--${i}` : "",
@@ -10019,7 +10019,7 @@ var t3 = /* @__PURE__ */ r("svg", {
10019
10019
  disabled: o,
10020
10020
  children: [/* @__PURE__ */ r("span", {
10021
10021
  className: "accordion-item__title",
10022
- children: [l && /* @__PURE__ */ e(G, { name: l }), /* @__PURE__ */ e("span", {
10022
+ children: [l && /* @__PURE__ */ e(E, { name: l }), /* @__PURE__ */ e("span", {
10023
10023
  className: "accordion-item__title-text",
10024
10024
  children: c
10025
10025
  })]
@@ -10047,9 +10047,9 @@ var t3 = /* @__PURE__ */ r("svg", {
10047
10047
  children: a
10048
10048
  })
10049
10049
  })]
10050
- }), C2 = (t) => {
10050
+ }), x2 = (t) => {
10051
10051
  const c = Y(null);
10052
- U(() => {
10052
+ F(() => {
10053
10053
  const l = () => {
10054
10054
  if (!c.current) return;
10055
10055
  const { overflow: a, position: s, top: o, left: i, right: n, width: d, scrollY: h } = c.current;
@@ -10073,14 +10073,14 @@ var t3 = /* @__PURE__ */ r("svg", {
10073
10073
  l();
10074
10074
  };
10075
10075
  }, [t]);
10076
- }, y2 = w0(void 0), b2 = () => {
10077
- const t = f0(y2);
10076
+ }, M2 = C0(void 0), k2 = () => {
10077
+ const t = y0(M2);
10078
10078
  if (t === void 0) throw new Error("useTheme must be used within a ThemeProvider");
10079
10079
  return t;
10080
- }, x2 = (t) => {
10081
- const { effects: c } = b2();
10080
+ }, _2 = (t) => {
10081
+ const { effects: c } = k2();
10082
10082
  return c.effect && c.components.includes(t) ? c.effect : "";
10083
- }, F = E1.forwardRef(({ borders: t = "rounded", children: c, className: l, disabled: a = !1, fullWidth: s = !1, icon: o, iconVariant: i = "default", loading: n = !1, onClick: d, emojiIcon: h, size: m = "medium", style: p, sufixIcon: g, title: w, type: v = "button", variant: u = "default" }, f) => /* @__PURE__ */ e("button", {
10083
+ }, q = E1.forwardRef(({ borders: t = "rounded", children: c, className: l, disabled: a = !1, fullWidth: s = !1, icon: o, iconVariant: i = "default", loading: n = !1, onClick: d, emojiIcon: h, size: m = "medium", style: p, sufixIcon: g, title: w, type: v = "button", variant: u = "default" }, f) => /* @__PURE__ */ e("button", {
10084
10084
  ref: f,
10085
10085
  className: `button button-${m} button-${u} ${t === "rounded" ? "button-rounded" : ""} ${s ? "is-full-width" : ""} ${l || ""}`,
10086
10086
  disabled: a,
@@ -10089,26 +10089,26 @@ var t3 = /* @__PURE__ */ r("svg", {
10089
10089
  title: w,
10090
10090
  type: v,
10091
10091
  children: n ? /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", { className: "button__spinner" }), /* @__PURE__ */ e("span", { children: c || "Loading..." })] }) : /* @__PURE__ */ r(l1, { children: [
10092
- o !== void 0 && (typeof o == "string" ? /* @__PURE__ */ e(G, {
10092
+ o !== void 0 && (typeof o == "string" ? /* @__PURE__ */ e(E, {
10093
10093
  size: "lg",
10094
10094
  name: o,
10095
10095
  variant: i
10096
10096
  }) : o),
10097
10097
  h && /* @__PURE__ */ e("span", { children: h }),
10098
10098
  c && /* @__PURE__ */ e("span", { children: c }),
10099
- g !== void 0 && (typeof g == "string" ? /* @__PURE__ */ e(G, {
10099
+ g !== void 0 && (typeof g == "string" ? /* @__PURE__ */ e(E, {
10100
10100
  size: "lg",
10101
10101
  name: g,
10102
10102
  variant: i
10103
10103
  }) : g)
10104
10104
  ] })
10105
10105
  }));
10106
- F.displayName = "Button";
10106
+ q.displayName = "Button";
10107
10107
  var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s, onOverlayClick: o, primary: i, secondary: n, size: d = "auto", tertiary: h, title: m, titleIcon: p, usePortal: g = !1 }) => {
10108
- const w = x2("Modal");
10109
- C2(l);
10108
+ const w = _2("Modal");
10109
+ x2(l);
10110
10110
  const v = Y(null), u = Y(null);
10111
- if (U(() => {
10111
+ if (F(() => {
10112
10112
  const x = (b) => {
10113
10113
  b.key === "Escape" && s && s();
10114
10114
  };
@@ -10128,10 +10128,10 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
10128
10128
  /* @__PURE__ */ r("div", {
10129
10129
  className: "modal__header",
10130
10130
  children: [/* @__PURE__ */ r("h2", { children: [
10131
- p ? /* @__PURE__ */ e(G, { name: p }) : null,
10131
+ p ? /* @__PURE__ */ e(E, { name: p }) : null,
10132
10132
  " ",
10133
10133
  m
10134
- ] }), /* @__PURE__ */ e(F, {
10134
+ ] }), /* @__PURE__ */ e(q, {
10135
10135
  className: "modal__close",
10136
10136
  icon: "clear",
10137
10137
  onClick: s,
@@ -10147,21 +10147,21 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
10147
10147
  f && /* @__PURE__ */ r("div", {
10148
10148
  className: "modal__footer",
10149
10149
  children: [
10150
- h && /* @__PURE__ */ e(F, {
10150
+ h && /* @__PURE__ */ e(q, {
10151
10151
  variant: h.variant || "default",
10152
10152
  icon: h.icon,
10153
10153
  onClick: h.onClick,
10154
10154
  disabled: h.disabled,
10155
10155
  children: h.text
10156
10156
  }),
10157
- n && /* @__PURE__ */ e(F, {
10157
+ n && /* @__PURE__ */ e(q, {
10158
10158
  variant: n.variant || "default",
10159
10159
  icon: n.icon || "clear",
10160
10160
  onClick: n.onClick,
10161
10161
  disabled: n.disabled,
10162
10162
  children: n.text
10163
10163
  }),
10164
- i && /* @__PURE__ */ e(F, {
10164
+ i && /* @__PURE__ */ e(q, {
10165
10165
  variant: i.variant || "success",
10166
10166
  icon: i.icon || "checkmark",
10167
10167
  onClick: i.onClick,
@@ -10191,7 +10191,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
10191
10191
  className: "alert-dialog__body",
10192
10192
  children: /* @__PURE__ */ e("p", { children: c })
10193
10193
  })
10194
- }), a0 = ({ orientation: t = "horizontal", style: c = "solid", thickness: l = 1, spacing: a = 16, label: s, labelAlign: o = "center", className: i = "" }) => {
10194
+ }), n0 = ({ orientation: t = "horizontal", style: c = "solid", thickness: l = 1, spacing: a = 16, label: s, labelAlign: o = "center", className: i = "" }) => {
10195
10195
  const n = `separator separator--${t} separator--${c} ${i}`, d = {
10196
10196
  borderWidth: `${l}px`,
10197
10197
  ...t === "horizontal" ? {
@@ -10222,7 +10222,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
10222
10222
  className: n,
10223
10223
  style: d
10224
10224
  });
10225
- }, M2 = ({ emoji: t, icon: c, svg: l, appName: a, heading: s, onClick: o, className: i = "", showSeparator: n = !0 }) => /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ r("div", {
10225
+ }, L2 = ({ emoji: t, icon: c, svg: l, appName: a, heading: s, onClick: o, className: i = "", showSeparator: n = !0 }) => /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ r("div", {
10226
10226
  className: [
10227
10227
  "app-header",
10228
10228
  o ? "app-header--clickable" : "",
@@ -10240,7 +10240,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
10240
10240
  }),
10241
10241
  c && /* @__PURE__ */ e("span", {
10242
10242
  className: "app-header__icon",
10243
- children: /* @__PURE__ */ e(G, { name: c })
10243
+ children: /* @__PURE__ */ e(E, { name: c })
10244
10244
  }),
10245
10245
  /* @__PURE__ */ r("div", {
10246
10246
  className: "app-header__copy",
@@ -10253,10 +10253,10 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
10253
10253
  })]
10254
10254
  })
10255
10255
  ]
10256
- }), n && /* @__PURE__ */ e(a0, {
10256
+ }), n && /* @__PURE__ */ e(n0, {
10257
10257
  className: "app-header__separator",
10258
10258
  spacing: 0
10259
- })] }), k2 = [
10259
+ })] }), z2 = [
10260
10260
  {
10261
10261
  background: "#f6a821",
10262
10262
  color: "#1a1a1a"
@@ -10305,10 +10305,10 @@ function Ot(t) {
10305
10305
  function Yt(t) {
10306
10306
  let c = 0;
10307
10307
  for (const l of t) c += l.charCodeAt(0);
10308
- return c % k2.length;
10308
+ return c % z2.length;
10309
10309
  }
10310
10310
  var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = "" }) => {
10311
- const s = Ot(t), { background: o, color: i } = k2[Yt(s)];
10311
+ const s = Ot(t), { background: o, color: i } = z2[Yt(s)];
10312
10312
  return /* @__PURE__ */ e("div", {
10313
10313
  className: `avatar-initials avatar-initials--${c} avatar-initials--${l} ${a}`,
10314
10314
  style: {
@@ -10377,9 +10377,9 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10377
10377
  }, N = (H) => {
10378
10378
  H.pointerType !== "touch" && H.pointerType !== "pen" || s || (f.current = !0, g.current && (clearTimeout(g.current), g.current = null), H.stopPropagation(), h((S) => !S));
10379
10379
  };
10380
- U(() => (d && (b(), window.addEventListener("scroll", b, !0), window.addEventListener("resize", b)), () => {
10380
+ F(() => (d && (b(), window.addEventListener("scroll", b, !0), window.addEventListener("resize", b)), () => {
10381
10381
  window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
10382
- }), [d]), U(() => {
10382
+ }), [d]), F(() => {
10383
10383
  if (!d) return;
10384
10384
  const H = (S) => {
10385
10385
  v.current?.contains(S.target) || u.current?.contains(S.target) || h(!1);
@@ -10387,7 +10387,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10387
10387
  return document.addEventListener("pointerdown", H), () => {
10388
10388
  document.removeEventListener("pointerdown", H), f.current = !1;
10389
10389
  };
10390
- }, [d]), U(() => () => {
10390
+ }, [d]), F(() => () => {
10391
10391
  g.current && clearTimeout(g.current), w.current && clearTimeout(w.current);
10392
10392
  }, []);
10393
10393
  const L = () => {
@@ -10438,12 +10438,12 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10438
10438
  })]
10439
10439
  }), (t || c) && /* @__PURE__ */ r("div", {
10440
10440
  className: "banner__action",
10441
- children: [t && /* @__PURE__ */ e(F, {
10441
+ children: [t && /* @__PURE__ */ e(q, {
10442
10442
  ...t,
10443
10443
  size: t.size || "small",
10444
10444
  variant: p,
10445
10445
  children: t.text
10446
- }), c && /* @__PURE__ */ e(F, {
10446
+ }), c && /* @__PURE__ */ e(q, {
10447
10447
  ...c,
10448
10448
  size: c.size || "small",
10449
10449
  variant: c.variant || "ghost",
@@ -10456,7 +10456,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10456
10456
  className: "banner__dismiss",
10457
10457
  type: "button",
10458
10458
  onClick: g,
10459
- children: /* @__PURE__ */ e(G, {
10459
+ children: /* @__PURE__ */ e(E, {
10460
10460
  name: "clear",
10461
10461
  size: "sm"
10462
10462
  })
@@ -10801,7 +10801,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10801
10801
  children: a ? cr(a) : l ?? `${t} selected`
10802
10802
  }), /* @__PURE__ */ r("div", {
10803
10803
  className: "memobit-bulk-action-bar__actions",
10804
- children: [s.map((h) => /* @__PURE__ */ e(F, {
10804
+ children: [s.map((h) => /* @__PURE__ */ e(q, {
10805
10805
  disabled: h.disabled,
10806
10806
  icon: h.icon,
10807
10807
  onClick: () => {
@@ -10811,7 +10811,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10811
10811
  title: h.title,
10812
10812
  variant: h.variant ?? "default",
10813
10813
  children: h.label
10814
- }, h.key)), o && /* @__PURE__ */ e(F, {
10814
+ }, h.key)), o && /* @__PURE__ */ e(q, {
10815
10815
  disabled: a !== void 0,
10816
10816
  icon: "clear",
10817
10817
  onClick: o,
@@ -10884,10 +10884,10 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10884
10884
  }, ta = (t, c) => {
10885
10885
  const l = new Date(t);
10886
10886
  return l.setDate(l.getDate() + c), l;
10887
- }, u0 = (t, c) => {
10887
+ }, f0 = (t, c) => {
10888
10888
  const l = new Date(t);
10889
10889
  return l.setMonth(l.getMonth() + c), l;
10890
- }, A0 = (t, c) => {
10890
+ }, Z0 = (t, c) => {
10891
10891
  const l = new Date(t.getFullYear(), t.getMonth(), t.getDate()), a = new Date(c.getFullYear(), c.getMonth(), c.getDate());
10892
10892
  return l.getTime() < a.getTime();
10893
10893
  }, hr = (t, c) => {
@@ -10904,7 +10904,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10904
10904
  if (Math.abs(s) < 24) return `${Math.abs(s)}h ago`;
10905
10905
  const o = Math.round(s / 24);
10906
10906
  return `${Math.abs(o)}d ago`;
10907
- }, P1 = 12, $0 = [
10907
+ }, P1 = 12, G0 = [
10908
10908
  "January",
10909
10909
  "February",
10910
10910
  "March",
@@ -10933,7 +10933,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10933
10933
  "Fri",
10934
10934
  "Sat",
10935
10935
  "Sun"
10936
- ], _0 = ({ value: t, onChange: c, mode: l = "single", minDate: a, maxDate: s, disabledDates: o, firstDayOfWeek: i = 0, showToday: n = !0, yearOnly: d = !1, className: h = "", currentMonth: m, onMonthChange: p, showHeader: g = !0, rangeStart: w, onRangeStartChange: v }) => {
10936
+ ], V0 = ({ value: t, onChange: c, mode: l = "single", minDate: a, maxDate: s, disabledDates: o, firstDayOfWeek: i = 0, showToday: n = !0, yearOnly: d = !1, className: h = "", currentMonth: m, onMonthChange: p, showHeader: g = !0, rangeStart: w, onRangeStartChange: v }) => {
10937
10937
  const [u, f] = z(() => {
10938
10938
  if (t) {
10939
10939
  if (t instanceof Date) return new Date(t.getFullYear(), t.getMonth(), 1);
@@ -10944,7 +10944,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10944
10944
  }), [C, x] = z("days"), [b, M] = z(() => {
10945
10945
  const B = (m ?? u).getFullYear();
10946
10946
  return Math.floor(B / P1) * P1;
10947
- }), [_, N] = z(null), L = m ?? u, y = w ?? _, H = m1(() => nr(L.getFullYear(), L.getMonth(), i), [L, i]), S = i === 1 ? mr : dr, k = (B) => a && A0(B, a) || s && hr(B, s) ? !0 : o ? typeof o == "function" ? o(B) : o.some((Z) => U1(Z, B)) : !1, A = (B) => {
10947
+ }), [_, N] = z(null), L = m ?? u, y = w ?? _, H = m1(() => nr(L.getFullYear(), L.getMonth(), i), [L, i]), S = i === 1 ? mr : dr, k = (B) => a && Z0(B, a) || s && hr(B, s) ? !0 : o ? typeof o == "function" ? o(B) : o.some((Z) => U1(Z, B)) : !1, A = (B) => {
10948
10948
  if (!t) return !1;
10949
10949
  if (l === "single" && t instanceof Date) return U1(B, t);
10950
10950
  if (l === "range") {
@@ -10963,7 +10963,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10963
10963
  if (l === "single") c?.(B);
10964
10964
  else if (l === "range") if (!y) v ? v(B) : (N(B), c?.(void 0));
10965
10965
  else {
10966
- const Z = A0(B, y) ? B : y, J = A0(B, y) ? y : B;
10966
+ const Z = Z0(B, y) ? B : y, J = Z0(B, y) ? y : B;
10967
10967
  c?.({
10968
10968
  start: Z,
10969
10969
  end: J
@@ -10978,12 +10978,12 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10978
10978
  }
10979
10979
  }
10980
10980
  }, V = () => {
10981
- const B = u0(L, -1);
10981
+ const B = f0(L, -1);
10982
10982
  p ? p(B) : f(B);
10983
10983
  }, X = () => {
10984
- const B = u0(L, 1);
10984
+ const B = f0(L, 1);
10985
10985
  p ? p(B) : f(B);
10986
- }, i1 = () => {
10986
+ }, a1 = () => {
10987
10987
  const B = /* @__PURE__ */ new Date(), Z = new Date(B.getFullYear(), B.getMonth(), 1);
10988
10988
  p ? p(Z) : f(Z), x("days"), l === "single" && c?.(B);
10989
10989
  }, I = () => {
@@ -11087,12 +11087,12 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11087
11087
  className: "calendar__month-year",
11088
11088
  children: d ? /* @__PURE__ */ e("span", {
11089
11089
  className: "calendar__header-label",
11090
- children: $0[L.getMonth()]
11090
+ children: G0[L.getMonth()]
11091
11091
  }) : /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("button", {
11092
11092
  type: "button",
11093
11093
  className: "calendar__header-button",
11094
11094
  onClick: I,
11095
- children: $0[L.getMonth()]
11095
+ children: G0[L.getMonth()]
11096
11096
  }), /* @__PURE__ */ e("button", {
11097
11097
  type: "button",
11098
11098
  className: "calendar__header-button",
@@ -11125,7 +11125,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11125
11125
  const B = (/* @__PURE__ */ new Date()).getMonth(), Z = (/* @__PURE__ */ new Date()).getFullYear(), J = L.getMonth(), n1 = L.getFullYear();
11126
11126
  return /* @__PURE__ */ e("div", {
11127
11127
  className: "calendar__months-grid",
11128
- children: $0.map((b1, f1) => /* @__PURE__ */ e("button", {
11128
+ children: G0.map((b1, f1) => /* @__PURE__ */ e("button", {
11129
11129
  type: "button",
11130
11130
  className: `calendar__month-item ${f1 === J && n1 === L.getFullYear() ? "calendar__month-item--selected" : ""} ${f1 === B && Z === L.getFullYear() ? "calendar__month-item--current" : ""}`,
11131
11131
  onClick: () => p1(f1),
@@ -11145,7 +11145,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11145
11145
  children: /* @__PURE__ */ e("button", {
11146
11146
  type: "button",
11147
11147
  className: "calendar__today-button",
11148
- onClick: i1,
11148
+ onClick: a1,
11149
11149
  children: "Today"
11150
11150
  })
11151
11151
  }),
@@ -11256,9 +11256,9 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11256
11256
  })
11257
11257
  ]
11258
11258
  });
11259
- }, _2 = ({ children: t, className: c, footerContent: l, icon: a, isCollapsed: s, isCollapsible: o, isFooterCollapsible: i = !0, isHighlighted: n, noPadding: d, onClick: h, title: m, variant: p = "default" }) => {
11260
- const [g, w] = z(s || !1), v = x2("Card");
11261
- U(() => {
11259
+ }, V2 = ({ children: t, className: c, footerContent: l, icon: a, isCollapsed: s, isCollapsible: o, isFooterCollapsible: i = !0, isHighlighted: n, noPadding: d, onClick: h, title: m, variant: p = "default" }) => {
11260
+ const [g, w] = z(s || !1), v = _2("Card");
11261
+ F(() => {
11262
11262
  typeof s == "boolean" && w(s);
11263
11263
  }, [s]);
11264
11264
  const u = p !== "default" ? `card-variant-${p}` : "";
@@ -11270,13 +11270,13 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11270
11270
  className: `${g ? "card-content-hidden" : ""}`,
11271
11271
  children: [/* @__PURE__ */ r("span", {
11272
11272
  className: "card-title-content",
11273
- children: [a && /* @__PURE__ */ e(G, { name: a }), m]
11273
+ children: [a && /* @__PURE__ */ e(E, { name: a }), m]
11274
11274
  }), o && /* @__PURE__ */ e("span", {
11275
11275
  className: "collapsible-button",
11276
11276
  onClick: () => w(!g),
11277
11277
  children: /* @__PURE__ */ e("span", {
11278
11278
  className: `opener-button ${g ? "opener-button-extended" : ""}`,
11279
- children: /* @__PURE__ */ e(G, {
11279
+ children: /* @__PURE__ */ e(E, {
11280
11280
  name: "caret-up",
11281
11281
  size: "lg"
11282
11282
  })
@@ -11293,9 +11293,9 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11293
11293
  })
11294
11294
  ]
11295
11295
  });
11296
- }, s0 = ({ checked: t = !1, onChange: c, label: l, icon: a, disabled: s = !1, id: o, indeterminate: i = !1 }) => {
11297
- const n = C0(), d = o || n, h = Y(null);
11298
- return U(() => {
11296
+ }, d0 = ({ checked: t = !1, onChange: c, label: l, icon: a, disabled: s = !1, id: o, indeterminate: i = !1 }) => {
11297
+ const n = b0(), d = o || n, h = Y(null);
11298
+ return F(() => {
11299
11299
  h.current && (h.current.indeterminate = i && !t);
11300
11300
  }, [i, t]), /* @__PURE__ */ r("div", {
11301
11301
  className: `checkbox-wrapper ${s ? "checkbox-wrapper--disabled" : ""}`,
@@ -11312,14 +11312,14 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11312
11312
  className: "checkbox-label",
11313
11313
  children: [/* @__PURE__ */ e("span", { className: "checkbox-box" }), (a || l) && /* @__PURE__ */ r("span", {
11314
11314
  className: "checkbox-text",
11315
- children: [a && /* @__PURE__ */ e(G, { name: a }), l && /* @__PURE__ */ e("span", {
11315
+ children: [a && /* @__PURE__ */ e(E, { name: a }), l && /* @__PURE__ */ e("span", {
11316
11316
  className: "checkbox-text-label",
11317
11317
  children: l
11318
11318
  })]
11319
11319
  })]
11320
11320
  })]
11321
11321
  });
11322
- }, i0 = ({ children: t, className: c = "", color: l, count: a, disabled: s = !1, icon: o, onClick: i, selected: n = !1, size: d = "medium", title: h, type: m = "button", variant: p = "default" }) => /* @__PURE__ */ r("button", {
11322
+ }, o0 = ({ children: t, className: c = "", color: l, count: a, disabled: s = !1, icon: o, onClick: i, selected: n = !1, size: d = "medium", title: h, type: m = "button", variant: p = "default" }) => /* @__PURE__ */ r("button", {
11323
11323
  className: `chip chip--${d} ${l ? "chip--custom" : `chip--${p}`} ${n ? "chip--selected" : ""} ${c}`,
11324
11324
  disabled: s,
11325
11325
  onClick: i,
@@ -11331,7 +11331,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11331
11331
  className: "chip__swatch",
11332
11332
  style: { backgroundColor: l }
11333
11333
  }),
11334
- o && /* @__PURE__ */ e(G, { name: o }),
11334
+ o && /* @__PURE__ */ e(E, { name: o }),
11335
11335
  /* @__PURE__ */ e("span", {
11336
11336
  className: "chip__label",
11337
11337
  children: t
@@ -11355,7 +11355,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11355
11355
  /* @__PURE__ */ r("div", {
11356
11356
  className: "collapsible-section__label",
11357
11357
  children: [
11358
- a && /* @__PURE__ */ e(G, {
11358
+ a && /* @__PURE__ */ e(E, {
11359
11359
  name: a,
11360
11360
  variant: u
11361
11361
  }),
@@ -11363,10 +11363,10 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11363
11363
  n
11364
11364
  ]
11365
11365
  }),
11366
- m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(G, { name: m }) }),
11366
+ m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(E, { name: m }) }),
11367
11367
  /* @__PURE__ */ e("span", {
11368
11368
  className: `collapsible-section__icon ${M ? "collapsible-section__icon--collapsed" : ""}`,
11369
- children: /* @__PURE__ */ e(G, { name: "caret-up" })
11369
+ children: /* @__PURE__ */ e(E, { name: "caret-up" })
11370
11370
  }),
11371
11371
  /* @__PURE__ */ e("span", {
11372
11372
  className: "collapsible-section__right-details",
@@ -11380,7 +11380,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11380
11380
  /* @__PURE__ */ r("span", {
11381
11381
  className: "collapsible-section__label",
11382
11382
  children: [
11383
- a && /* @__PURE__ */ e(G, {
11383
+ a && /* @__PURE__ */ e(E, {
11384
11384
  name: a,
11385
11385
  variant: u
11386
11386
  }),
@@ -11388,10 +11388,10 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11388
11388
  n
11389
11389
  ]
11390
11390
  }),
11391
- m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(G, { name: m }) }),
11391
+ m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(E, { name: m }) }),
11392
11392
  /* @__PURE__ */ e("span", {
11393
11393
  className: `collapsible-section__icon ${M ? "collapsible-section__icon--collapsed" : ""}`,
11394
- children: /* @__PURE__ */ e(G, { name: "caret-up" })
11394
+ children: /* @__PURE__ */ e(E, { name: "caret-up" })
11395
11395
  })
11396
11396
  ]
11397
11397
  })
@@ -11491,7 +11491,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11491
11491
  children: f
11492
11492
  })
11493
11493
  ]
11494
- })), l0 = (t, c, l) => Math.min(l, Math.max(c, t)), D0 = (t) => {
11494
+ })), i0 = (t, c, l) => Math.min(l, Math.max(c, t)), E0 = (t) => {
11495
11495
  const c = t.replace("#", "").trim();
11496
11496
  if (![3, 6].includes(c.length)) return null;
11497
11497
  const l = c.length === 3 ? c.split("").map((s) => s + s).join("") : c, a = parseInt(l, 16);
@@ -11500,11 +11500,11 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11500
11500
  g: a >> 8 & 255,
11501
11501
  b: a & 255
11502
11502
  };
11503
- }, J0 = ({ r: t, g: c, b: l }) => `#${[
11503
+ }, r2 = ({ r: t, g: c, b: l }) => `#${[
11504
11504
  t,
11505
11505
  c,
11506
11506
  l
11507
- ].map((a) => l0(Math.round(a), 0, 255).toString(16).padStart(2, "0")).join("")}`, G1 = ({ r: t, g: c, b: l }) => {
11507
+ ].map((a) => i0(Math.round(a), 0, 255).toString(16).padStart(2, "0")).join("")}`, G1 = ({ r: t, g: c, b: l }) => {
11508
11508
  const a = t / 255, s = c / 255, o = l / 255, i = Math.max(a, s, o), n = i - Math.min(a, s, o);
11509
11509
  let d = 0;
11510
11510
  n !== 0 && (i === a ? d = (s - o) / n % 6 : i === s ? d = (o - a) / n + 2 : d = (a - s) / n + 4, d = Math.round(d * 60), d < 0 && (d += 360));
@@ -11514,7 +11514,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11514
11514
  s: Math.round(h * 100),
11515
11515
  v: Math.round(m * 100)
11516
11516
  };
11517
- }, e2 = ({ h: t, s: c, v: l }) => {
11517
+ }, c2 = ({ h: t, s: c, v: l }) => {
11518
11518
  const a = c / 100, s = l / 100, o = s * a, i = o * (1 - Math.abs(t / 60 % 2 - 1)), n = s - o;
11519
11519
  let d = 0, h = 0, m = 0;
11520
11520
  return t < 60 ? (d = o, h = i) : t < 120 ? (d = i, h = o) : t < 180 ? (h = o, m = i) : t < 240 ? (h = i, m = o) : t < 300 ? (d = i, m = o) : (d = o, m = i), {
@@ -11532,7 +11532,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11532
11532
  s: Math.round(p * 100),
11533
11533
  l: Math.round(m * 100)
11534
11534
  };
11535
- }, T0 = ({ h: t, s: c, l }) => {
11535
+ }, I0 = ({ h: t, s: c, l }) => {
11536
11536
  const a = c / 100, s = l / 100, o = (1 - Math.abs(2 * s - 1)) * a, i = o * (1 - Math.abs(t / 60 % 2 - 1)), n = s - o / 2;
11537
11537
  let d = 0, h = 0, m = 0;
11538
11538
  return t < 60 ? (d = o, h = i) : t < 120 ? (d = i, h = o) : t < 180 ? (h = o, m = i) : t < 240 ? (h = i, m = o) : t < 300 ? (d = i, m = o) : (d = o, m = i), {
@@ -11541,28 +11541,28 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11541
11541
  b: Math.round((m + n) * 255)
11542
11542
  };
11543
11543
  }, aa = ({ value: t = "#4e79a7", onChange: c }) => {
11544
- const [l, a] = z("hex"), [s, o] = z(() => G1(D0(t) || {
11544
+ const [l, a] = z("hex"), [s, o] = z(() => G1(E0(t) || {
11545
11545
  r: 78,
11546
11546
  g: 121,
11547
11547
  b: 167
11548
11548
  })), i = Y(null);
11549
- U(() => {
11550
- const w = D0(t);
11549
+ F(() => {
11550
+ const w = E0(t);
11551
11551
  w && o(G1(w));
11552
11552
  }, [t]);
11553
11553
  const n = (w) => {
11554
11554
  const v = {
11555
- h: l0(w.h, 0, 360),
11556
- s: l0(w.s, 0, 100),
11557
- v: l0(w.v, 0, 100)
11555
+ h: i0(w.h, 0, 360),
11556
+ s: i0(w.s, 0, 100),
11557
+ v: i0(w.v, 0, 100)
11558
11558
  };
11559
11559
  o(v);
11560
- const u = J0(e2(v));
11560
+ const u = r2(c2(v));
11561
11561
  c?.(u);
11562
11562
  }, d = (w) => {
11563
11563
  const v = i.current?.getBoundingClientRect();
11564
11564
  if (!v) return;
11565
- const u = l0(w.clientX - v.left, 0, v.width), f = l0(w.clientY - v.top, 0, v.height), C = Math.round(u / v.width * 100), x = Math.round(100 - f / v.height * 100);
11565
+ const u = i0(w.clientX - v.left, 0, v.width), f = i0(w.clientY - v.top, 0, v.height), C = Math.round(u / v.width * 100), x = Math.round(100 - f / v.height * 100);
11566
11566
  n({
11567
11567
  ...s,
11568
11568
  s: C,
@@ -11574,7 +11574,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11574
11574
  window.removeEventListener("mousemove", v), window.removeEventListener("mouseup", u);
11575
11575
  };
11576
11576
  window.addEventListener("mousemove", v), window.addEventListener("mouseup", u);
11577
- }, m = e2(s), p = J0(m), g = ur(m);
11577
+ }, m = c2(s), p = r2(m), g = ur(m);
11578
11578
  return /* @__PURE__ */ r("div", {
11579
11579
  className: "color-picker",
11580
11580
  children: [
@@ -11617,19 +11617,19 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11617
11617
  /* @__PURE__ */ r("div", {
11618
11618
  className: "color-picker__mode-toggle",
11619
11619
  children: [
11620
- /* @__PURE__ */ e(F, {
11620
+ /* @__PURE__ */ e(q, {
11621
11621
  variant: "plain",
11622
11622
  className: l === "hex" ? "is-active" : "",
11623
11623
  onClick: () => a("hex"),
11624
11624
  children: "Hex"
11625
11625
  }),
11626
- /* @__PURE__ */ e(F, {
11626
+ /* @__PURE__ */ e(q, {
11627
11627
  variant: "plain",
11628
11628
  className: l === "rgb" ? "is-active" : "",
11629
11629
  onClick: () => a("rgb"),
11630
11630
  children: "RGB"
11631
11631
  }),
11632
- /* @__PURE__ */ e(F, {
11632
+ /* @__PURE__ */ e(q, {
11633
11633
  variant: "plain",
11634
11634
  className: l === "hsl" ? "is-active" : "",
11635
11635
  onClick: () => a("hsl"),
@@ -11643,7 +11643,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11643
11643
  label: "Hex",
11644
11644
  value: p,
11645
11645
  onChange: (w) => {
11646
- const v = D0(w);
11646
+ const v = E0(w);
11647
11647
  v && n(G1(v));
11648
11648
  }
11649
11649
  })
@@ -11692,7 +11692,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11692
11692
  max: 360,
11693
11693
  value: g.h,
11694
11694
  onChange: (w) => {
11695
- n(G1(T0({
11695
+ n(G1(I0({
11696
11696
  ...g,
11697
11697
  h: w ?? 0
11698
11698
  })));
@@ -11704,7 +11704,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11704
11704
  max: 100,
11705
11705
  value: g.s,
11706
11706
  onChange: (w) => {
11707
- n(G1(T0({
11707
+ n(G1(I0({
11708
11708
  ...g,
11709
11709
  s: w ?? 0
11710
11710
  })));
@@ -11716,7 +11716,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11716
11716
  max: 100,
11717
11717
  value: g.l,
11718
11718
  onChange: (w) => {
11719
- n(G1(T0({
11719
+ n(G1(I0({
11720
11720
  ...g,
11721
11721
  l: w ?? 0
11722
11722
  })));
@@ -11728,7 +11728,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11728
11728
  });
11729
11729
  }, ia = ({ items: t, isOpen: c, onOpenChange: l, placeholder: a = "Search commands", enableHotkey: s = !0 }) => {
11730
11730
  const [o, i] = z(!1), [n, d] = z(""), h = c ?? o;
11731
- U(() => {
11731
+ F(() => {
11732
11732
  if (!s) return;
11733
11733
  const w = (v) => {
11734
11734
  if ((v.ctrlKey || v.metaKey) && v.key.toLowerCase() === "k") {
@@ -11744,7 +11744,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11744
11744
  c,
11745
11745
  l,
11746
11746
  h
11747
- ]), U(() => {
11747
+ ]), F(() => {
11748
11748
  h || d("");
11749
11749
  }, [h]);
11750
11750
  const m = m1(() => {
@@ -11780,7 +11780,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11780
11780
  children: [/* @__PURE__ */ e("div", {
11781
11781
  className: "command-palette__group-title",
11782
11782
  children: w
11783
- }), p[w].map((v) => /* @__PURE__ */ r(F, {
11783
+ }), p[w].map((v) => /* @__PURE__ */ r(q, {
11784
11784
  variant: "plain",
11785
11785
  className: "command-palette__item",
11786
11786
  onClick: () => {
@@ -11837,10 +11837,10 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11837
11837
  "#f97316",
11838
11838
  "#06b6d4"
11839
11839
  ] : wr;
11840
- }, U0 = () => {
11840
+ }, Y0 = () => {
11841
11841
  const t = Math.random();
11842
11842
  return t < 0.5 ? "rect" : t < 0.8 ? "circle" : "star";
11843
- }, z0 = (t) => t[Math.floor(Math.random() * t.length)], t2 = (t, c, l) => ({
11843
+ }, H0 = (t) => t[Math.floor(Math.random() * t.length)], l2 = (t, c, l) => ({
11844
11844
  x: Math.random() * t,
11845
11845
  y: -10 - Math.random() * 40,
11846
11846
  vx: (Math.random() - 0.5) * 2,
@@ -11848,9 +11848,9 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11848
11848
  angle: Math.random() * Math.PI * 2,
11849
11849
  spin: (Math.random() - 0.5) * 0.2,
11850
11850
  size: 5 + Math.random() * 8,
11851
- color: z0(l),
11851
+ color: H0(l),
11852
11852
  opacity: 1,
11853
- shape: U0()
11853
+ shape: Y0()
11854
11854
  }), Cr = (t, c, l) => {
11855
11855
  const a = Math.random() * Math.PI * 2, s = 3 + Math.random() * 10;
11856
11856
  return {
@@ -11861,11 +11861,11 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11861
11861
  angle: Math.random() * Math.PI * 2,
11862
11862
  spin: (Math.random() - 0.5) * 0.3,
11863
11863
  size: 4 + Math.random() * 8,
11864
- color: z0(l),
11864
+ color: H0(l),
11865
11865
  opacity: 1,
11866
- shape: U0()
11866
+ shape: Y0()
11867
11867
  };
11868
- }, r2 = (t, c, l) => ({
11868
+ }, a2 = (t, c, l) => ({
11869
11869
  x: t * 0.2 + Math.random() * t * 0.6,
11870
11870
  y: c + 20,
11871
11871
  vx: (Math.random() - 0.5) * 1.5,
@@ -11873,7 +11873,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11873
11873
  angle: 0,
11874
11874
  spin: 0,
11875
11875
  size: 3,
11876
- color: z0(l),
11876
+ color: H0(l),
11877
11877
  opacity: 1,
11878
11878
  shape: "circle",
11879
11879
  trail: [],
@@ -11889,9 +11889,9 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11889
11889
  angle: Math.random() * Math.PI * 2,
11890
11890
  spin: (Math.random() - 0.5) * 0.15,
11891
11891
  size: 2 + Math.random() * 5,
11892
- color: z0(l),
11892
+ color: H0(l),
11893
11893
  opacity: 1,
11894
- shape: U0()
11894
+ shape: Y0()
11895
11895
  };
11896
11896
  }, br = (t, c, l, a) => {
11897
11897
  const o = a * 0.4;
@@ -11901,7 +11901,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11901
11901
  i === 0 ? t.moveTo(c + n * Math.cos(d), l + n * Math.sin(d)) : t.lineTo(c + n * Math.cos(d), l + n * Math.sin(d));
11902
11902
  }
11903
11903
  t.closePath(), t.fill();
11904
- }, Z0 = (t, c) => {
11904
+ }, j0 = (t, c) => {
11905
11905
  switch (t.save(), t.globalAlpha = Math.max(0, c.opacity), t.fillStyle = c.color, t.translate(c.x, c.y), t.rotate(c.angle), c.shape) {
11906
11906
  case "rect":
11907
11907
  t.fillRect(-c.size / 2, -c.size / 4, c.size, c.size / 2);
@@ -11932,22 +11932,22 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11932
11932
  const u = w.width, f = w.height, C = fr(t), x = s ?? m[a];
11933
11933
  h.current = !0, d.current = performance.now();
11934
11934
  let b = [];
11935
- if (a === "confetti") b = Array.from({ length: x }, () => t2(u, f, C));
11935
+ if (a === "confetti") b = Array.from({ length: x }, () => l2(u, f, C));
11936
11936
  else if (a === "burst") {
11937
11937
  const _ = u / 2, N = f / 2;
11938
11938
  b = Array.from({ length: x }, () => Cr(_, N, C));
11939
- } else a === "fireworks" && (b = Array.from({ length: x }, () => r2(u, f, C)));
11939
+ } else a === "fireworks" && (b = Array.from({ length: x }, () => a2(u, f, C)));
11940
11940
  const M = (_) => {
11941
11941
  if (!h.current) return;
11942
11942
  const N = _ - d.current, L = Math.min(N / c, 1);
11943
- if (v.clearRect(0, 0, u, f), a === "confetti" ? (L < 0.6 && Math.random() < 0.3 && b.push(t2(u, f, C)), b = b.filter((y) => y.opacity > 0 && y.y < f + 20), b.forEach((y) => {
11944
- y.x += y.vx, y.y += y.vy, y.vy += 0.08, y.vx += (Math.random() - 0.5) * 0.1, y.angle += y.spin, L > 0.6 && (y.opacity -= 0.015), Z0(v, y);
11943
+ if (v.clearRect(0, 0, u, f), a === "confetti" ? (L < 0.6 && Math.random() < 0.3 && b.push(l2(u, f, C)), b = b.filter((y) => y.opacity > 0 && y.y < f + 20), b.forEach((y) => {
11944
+ y.x += y.vx, y.y += y.vy, y.vy += 0.08, y.vx += (Math.random() - 0.5) * 0.1, y.angle += y.spin, L > 0.6 && (y.opacity -= 0.015), j0(v, y);
11945
11945
  })) : a === "burst" ? (b = b.filter((y) => y.opacity > 0), b.forEach((y) => {
11946
- y.x += y.vx, y.y += y.vy, y.vy += 0.15, y.vx *= 0.98, y.angle += y.spin, y.opacity -= 0.012, Z0(v, y);
11947
- })) : a === "fireworks" && (L < 0.85 && Math.random() < 0.04 && b.push(r2(u, f, C)), b = b.filter((y) => y.exploded ? y.children?.some((H) => H.opacity > 0) ?? !1 : y.y > -f * 0.1), b.forEach((y) => {
11946
+ y.x += y.vx, y.y += y.vy, y.vy += 0.15, y.vx *= 0.98, y.angle += y.spin, y.opacity -= 0.012, j0(v, y);
11947
+ })) : a === "fireworks" && (L < 0.85 && Math.random() < 0.04 && b.push(a2(u, f, C)), b = b.filter((y) => y.exploded ? y.children?.some((H) => H.opacity > 0) ?? !1 : y.y > -f * 0.1), b.forEach((y) => {
11948
11948
  if (y.exploded)
11949
11949
  y.children?.forEach((H) => {
11950
- H.x += H.vx, H.y += H.vy, H.vy += 0.06, H.vx *= 0.97, H.angle += H.spin, H.opacity -= 0.014, Z0(v, H);
11950
+ H.x += H.vx, H.y += H.vy, H.vy += 0.06, H.vx *= 0.97, H.angle += H.spin, H.opacity -= 0.014, j0(v, H);
11951
11951
  });
11952
11952
  else if (y.trail?.push({
11953
11953
  x: y.x,
@@ -11974,7 +11974,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11974
11974
  s,
11975
11975
  p
11976
11976
  ]);
11977
- return w2(o, () => ({ trigger: g }), [g]), U(() => () => {
11977
+ return y2(o, () => ({ trigger: g }), [g]), F(() => () => {
11978
11978
  cancelAnimationFrame(n.current);
11979
11979
  }, []), /* @__PURE__ */ e("canvas", {
11980
11980
  ref: i,
@@ -12008,7 +12008,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12008
12008
  children: /* @__PURE__ */ e("p", { children: c })
12009
12009
  })
12010
12010
  });
12011
- }, V1 = 20, xr = 8, L2 = ({ children: t, visible: c, onClose: l, anchorEl: a, offset: s = xr, placement: o = "auto" }) => {
12011
+ }, V1 = 20, xr = 8, N2 = ({ children: t, visible: c, onClose: l, anchorEl: a, offset: s = xr, placement: o = "auto" }) => {
12012
12012
  const i = Y(null), n = Y(null), [d, h] = z({
12013
12013
  top: 0,
12014
12014
  left: 0,
@@ -12070,9 +12070,9 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12070
12070
  s,
12071
12071
  o
12072
12072
  ]);
12073
- return U(() => (c && (n.current = requestAnimationFrame(m)), () => {
12073
+ return F(() => (c && (n.current = requestAnimationFrame(m)), () => {
12074
12074
  n.current !== null && cancelAnimationFrame(n.current);
12075
- }), [c, m]), U(() => {
12075
+ }), [c, m]), F(() => {
12076
12076
  if (!c) return;
12077
12077
  const p = (w) => {
12078
12078
  i.current && a && !i.current.contains(w.target) && !a.contains(w.target) && l();
@@ -12135,7 +12135,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12135
12135
  }, p = () => {
12136
12136
  n?.onClick?.(), c();
12137
12137
  };
12138
- return /* @__PURE__ */ e(L2, {
12138
+ return /* @__PURE__ */ e(N2, {
12139
12139
  visible: t,
12140
12140
  onClose: c,
12141
12141
  anchorEl: l,
@@ -12146,7 +12146,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12146
12146
  children: [
12147
12147
  (a || o) && /* @__PURE__ */ r("div", {
12148
12148
  className: "confirm-popover__header",
12149
- children: [o && /* @__PURE__ */ e(G, { name: o }), a && /* @__PURE__ */ e("span", {
12149
+ children: [o && /* @__PURE__ */ e(E, { name: o }), a && /* @__PURE__ */ e("span", {
12150
12150
  className: "confirm-popover__title",
12151
12151
  children: a
12152
12152
  })]
@@ -12157,13 +12157,13 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12157
12157
  }),
12158
12158
  /* @__PURE__ */ r("div", {
12159
12159
  className: "confirm-popover__actions",
12160
- children: [/* @__PURE__ */ e(F, {
12160
+ children: [/* @__PURE__ */ e(q, {
12161
12161
  size: "small",
12162
12162
  variant: n?.variant ?? "default",
12163
12163
  icon: n?.icon,
12164
12164
  onClick: p,
12165
12165
  children: n?.text ?? "Cancel"
12166
- }), /* @__PURE__ */ e(F, {
12166
+ }), /* @__PURE__ */ e(q, {
12167
12167
  size: "small",
12168
12168
  variant: i.variant ?? "info",
12169
12169
  icon: i.icon,
@@ -12184,7 +12184,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12184
12184
  opacity: 0
12185
12185
  };
12186
12186
  });
12187
- U(() => {
12187
+ F(() => {
12188
12188
  if (!t || !s.current) return;
12189
12189
  const m = requestAnimationFrame(() => {
12190
12190
  if (!s.current) return;
@@ -12218,12 +12218,12 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12218
12218
  onClick: h,
12219
12219
  children: l
12220
12220
  })] }), document.body) : null;
12221
- }, z2 = w0(null), _r = () => {
12222
- const t = f0(z2);
12221
+ }, H2 = C0(null), _r = () => {
12222
+ const t = y0(H2);
12223
12223
  if (!t) throw new Error("useToast must be used within a ToastProvider");
12224
12224
  return t;
12225
12225
  }, Lr = ({ id: t, message: c, type: l = "info", action: a, onClose: s, showDismissButton: o = !0, timeout: i = 2e3 }) => {
12226
- U(() => {
12226
+ F(() => {
12227
12227
  const p = setTimeout(() => {
12228
12228
  s(t);
12229
12229
  }, i);
@@ -12255,7 +12255,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12255
12255
  children: /* @__PURE__ */ e("button", {
12256
12256
  onClick: h,
12257
12257
  className: "toast__close-button",
12258
- children: /* @__PURE__ */ e(G, {
12258
+ children: /* @__PURE__ */ e(E, {
12259
12259
  name: "clear",
12260
12260
  size: "sm"
12261
12261
  })
@@ -12294,11 +12294,11 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12294
12294
  l((n) => n.filter((d) => d.id !== i));
12295
12295
  }
12296
12296
  };
12297
- return /* @__PURE__ */ e(z2.Provider, {
12297
+ return /* @__PURE__ */ e(H2.Provider, {
12298
12298
  value: o,
12299
12299
  children: t
12300
12300
  });
12301
- }, m0 = {
12301
+ }, v0 = {
12302
12302
  mobile: {
12303
12303
  min: 0,
12304
12304
  max: 767
@@ -12320,28 +12320,28 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12320
12320
  tablet: "(min-width: 768px) and (max-width: 991px)",
12321
12321
  desktop: "(min-width: 992px) and (max-width: 1199px)",
12322
12322
  largeDesktop: "(min-width: 1200px)"
12323
- }, G0 = () => {
12323
+ }, P0 = () => {
12324
12324
  if (typeof window > "u") return "desktop";
12325
12325
  const t = window.innerWidth;
12326
- return t <= m0.mobile.max ? "mobile" : t >= m0.tablet.min && t <= m0.tablet.max ? "tablet" : t >= m0.desktop.min && t <= m0.desktop.max ? "desktop" : "largeDesktop";
12326
+ return t <= v0.mobile.max ? "mobile" : t >= v0.tablet.min && t <= v0.tablet.max ? "tablet" : t >= v0.desktop.min && t <= v0.desktop.max ? "desktop" : "largeDesktop";
12327
12327
  }, W1 = (t) => [
12328
12328
  "mobile",
12329
12329
  "tablet",
12330
12330
  "desktop",
12331
12331
  "largeDesktop"
12332
- ].indexOf(t), h0 = () => {
12333
- const [t, c] = z(G0), l = j((i) => W1(t) > W1(i), [t]), a = j((i) => W1(t) < W1(i), [t]), s = j((i) => W1(t) >= W1(i), [t]), o = j((i) => W1(t) <= W1(i), [t]);
12334
- return U(() => {
12332
+ ].indexOf(t), m0 = () => {
12333
+ const [t, c] = z(P0), l = j((i) => W1(t) > W1(i), [t]), a = j((i) => W1(t) < W1(i), [t]), s = j((i) => W1(t) >= W1(i), [t]), o = j((i) => W1(t) <= W1(i), [t]);
12334
+ return F(() => {
12335
12335
  if (typeof window > "u") return;
12336
12336
  const i = Object.entries(zr).map(([d, h]) => ({
12337
12337
  breakpoint: d,
12338
12338
  mql: window.matchMedia(h)
12339
12339
  })), n = () => {
12340
- c(G0());
12340
+ c(P0());
12341
12341
  };
12342
12342
  return i.forEach(({ mql: d }) => {
12343
12343
  d.addEventListener ? d.addEventListener("change", n) : d.addListener(n);
12344
- }), c(G0()), () => {
12344
+ }), c(P0()), () => {
12345
12345
  i.forEach(({ mql: d }) => {
12346
12346
  d.removeEventListener ? d.removeEventListener("change", n) : d.removeListener(n);
12347
12347
  });
@@ -12357,12 +12357,12 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12357
12357
  isAtLeast: s,
12358
12358
  isAtMost: o
12359
12359
  };
12360
- }, V2 = w0(null), F0 = () => f0(V2), ma = () => {
12361
- const t = F0();
12360
+ }, S2 = C0(null), X0 = () => y0(S2), ma = () => {
12361
+ const t = X0();
12362
12362
  if (!t) throw new Error("useControlPanel must be used within a ControlPanelProvider");
12363
12363
  return t;
12364
12364
  }, pa = ({ children: t }) => {
12365
- const { isMobile: c } = h0(), [l, a] = z(!1), s = j(() => a((d) => !d), []), o = j(() => a(!0), []), i = j(() => a(!1), []), n = m1(() => ({
12365
+ const { isMobile: c } = m0(), [l, a] = z(!1), s = j(() => a((d) => !d), []), o = j(() => a(!0), []), i = j(() => a(!1), []), n = m1(() => ({
12366
12366
  isMobile: c,
12367
12367
  isOpen: l,
12368
12368
  toggle: s,
@@ -12375,7 +12375,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12375
12375
  o,
12376
12376
  i
12377
12377
  ]);
12378
- return /* @__PURE__ */ e(V2.Provider, {
12378
+ return /* @__PURE__ */ e(S2.Provider, {
12379
12379
  value: n,
12380
12380
  children: t
12381
12381
  });
@@ -12384,7 +12384,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12384
12384
  position: "fixed",
12385
12385
  visibility: "hidden"
12386
12386
  }), k = Y(null), A = Y(null);
12387
- U(() => {
12387
+ F(() => {
12388
12388
  a && t instanceof Date && (f(s === "12h" ? t.getHours() % 12 || 12 : t.getHours()), x(t.getMinutes()), M(t.getSeconds()), N(t.getHours() >= 12));
12389
12389
  }, [
12390
12390
  t,
@@ -12392,7 +12392,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12392
12392
  s
12393
12393
  ]);
12394
12394
  const D = p ? !d : w;
12395
- U(() => {
12395
+ F(() => {
12396
12396
  if (p) return;
12397
12397
  const I = ($) => {
12398
12398
  D && k.current && A.current && !k.current.contains($.target) && !A.current.contains($.target) && (y(null), v(!1));
@@ -12409,7 +12409,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12409
12409
  zIndex: 1100
12410
12410
  });
12411
12411
  }, [p, D]);
12412
- U(() => {
12412
+ F(() => {
12413
12413
  if (p || !D) {
12414
12414
  S({
12415
12415
  position: "fixed",
@@ -12446,7 +12446,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12446
12446
  I.setHours($, C, b), c?.(I);
12447
12447
  }, X = (I) => {
12448
12448
  I.stopPropagation(), y(null), c?.(void 0);
12449
- }, i1 = O();
12449
+ }, a1 = O();
12450
12450
  return /* @__PURE__ */ r("div", {
12451
12451
  className: "datepicker",
12452
12452
  children: [/* @__PURE__ */ r("div", {
@@ -12456,11 +12456,11 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12456
12456
  d || p || (D && y(null), v(!D));
12457
12457
  },
12458
12458
  children: [/* @__PURE__ */ e("span", {
12459
- className: `datepicker__value ${i1 ? "" : "datepicker__value--placeholder"}`,
12460
- children: i1 || n
12459
+ className: `datepicker__value ${a1 ? "" : "datepicker__value--placeholder"}`,
12460
+ children: a1 || n
12461
12461
  }), /* @__PURE__ */ r("div", {
12462
12462
  className: "datepicker__actions",
12463
- children: [h && i1 && /* @__PURE__ */ e(K, {
12463
+ children: [h && a1 && /* @__PURE__ */ e(K, {
12464
12464
  title: "Clear",
12465
12465
  children: /* @__PURE__ */ e("button", {
12466
12466
  type: "button",
@@ -12470,13 +12470,13 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12470
12470
  })
12471
12471
  }), /* @__PURE__ */ e("span", {
12472
12472
  className: "datepicker__icon",
12473
- children: /* @__PURE__ */ e(G, { name: "calendar" })
12473
+ children: /* @__PURE__ */ e(E, { name: "calendar" })
12474
12474
  })]
12475
12475
  })]
12476
12476
  }), D && (p ? /* @__PURE__ */ r("div", {
12477
12477
  ref: A,
12478
12478
  className: "datepicker__dropdown datepicker__dropdown--inline",
12479
- children: [/* @__PURE__ */ e(_0, {
12479
+ children: [/* @__PURE__ */ e(V0, {
12480
12480
  ...g,
12481
12481
  mode: l,
12482
12482
  value: t,
@@ -12543,7 +12543,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12543
12543
  ref: A,
12544
12544
  className: "datepicker__dropdown",
12545
12545
  style: H,
12546
- children: [/* @__PURE__ */ e(_0, {
12546
+ children: [/* @__PURE__ */ e(V0, {
12547
12547
  ...g,
12548
12548
  mode: l,
12549
12549
  value: t,
@@ -12608,7 +12608,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12608
12608
  })]
12609
12609
  }), document.body))]
12610
12610
  });
12611
- }, Nr = /[̀-ͯ]/g, c2 = (t) => t.normalize("NFD").replace(Nr, "").toLowerCase(), va = (t, c) => {
12611
+ }, Nr = /[̀-ͯ]/g, i2 = (t) => t.normalize("NFD").replace(Nr, "").toLowerCase(), va = (t, c) => {
12612
12612
  const l = t.toLowerCase(), a = c.toLowerCase();
12613
12613
  if (l.includes(a)) return !0;
12614
12614
  const s = 1 - 1 / Math.max(a.length, 4);
@@ -12618,28 +12618,30 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12618
12618
  i < l.length && (o++, i++);
12619
12619
  }
12620
12620
  return o / a.length >= s;
12621
- }, y0 = ({ allowCustomValue: t = !1, autofocus: c = !1, className: l = "", disabled: a = !1, error: s, highlighted: o = !1, id: i, label: n, maxVisibleSelectedLabels: d = 1, multilineChips: h = !1, multiple: m = !1, name: p, onChange: g, onSearchChange: w, options: v, placeholder: u = "Select an option", searchable: f = !0, searchValue: C, selectedCountDisplay: x = "inline", showChips: b = !1, sortSelectedFirst: M = !1, success: _, usePortal: N = !0, value: L, valueAsChip: y = !0 }) => {
12622
- const [H, S] = z(!1), [k, A] = z(C || ""), [D, P] = z(v), [O, s1] = z(-1), [V, X] = z([]), [i1, I] = z({
12621
+ }, x0 = ({ allowCustomValue: t = !1, autofocus: c = !1, className: l = "", disabled: a = !1, error: s, highlighted: o = !1, id: i, label: n, maxVisibleSelectedLabels: d = 1, multilineChips: h = !1, multiple: m = !1, name: p, onChange: g, onSearchChange: w, options: v, placeholder: u = "Select an option", searchable: f = !0, searchValue: C, selectedCountDisplay: x = "inline", showChips: b = !1, sortSelectedFirst: M = !1, success: _, usePortal: N = !0, value: L, valueAsChip: y = !0 }) => {
12622
+ const [H, S] = z(!1), [k, A] = z(C || ""), [D, P] = z(v), [O, s1] = z(-1), [V, X] = z([]), [a1, I] = z({
12623
12623
  top: 0,
12624
+ bottom: 0,
12624
12625
  left: 0,
12625
- width: 0
12626
- }), [$, p1] = z(!1), h1 = Y(null), W = Y([]), o1 = Y(null), v1 = Y(null), y1 = C0(), k1 = i ?? `dropdown-${y1}`, g1 = Y(null);
12627
- U(() => {
12626
+ width: 0,
12627
+ maxHeight: 300
12628
+ }), [$, p1] = z(!1), h1 = Y(null), W = Y([]), o1 = Y(null), v1 = Y(null), y1 = b0(), k1 = i ?? `dropdown-${y1}`, g1 = Y(null);
12629
+ F(() => {
12628
12630
  if (H && M && m) {
12629
- const E = new Set(V.map((c1) => c1.value)), T = [], q = [];
12630
- v.forEach((c1) => (E.has(c1.value) ? T : q).push(c1)), g1.current = [...T, ...q];
12631
+ const T = new Set(V.map((c1) => c1.value)), G = [], U = [];
12632
+ v.forEach((c1) => (T.has(c1.value) ? G : U).push(c1)), g1.current = [...G, ...U];
12631
12633
  } else H || (g1.current = null);
12632
12634
  }, [
12633
12635
  H,
12634
12636
  M,
12635
12637
  m,
12636
12638
  v
12637
- ]), U(() => {
12638
- const E = g1.current ?? v;
12639
- if (!f || !k) P(E);
12639
+ ]), F(() => {
12640
+ const T = g1.current ?? v;
12641
+ if (!f || !k) P(T);
12640
12642
  else {
12641
- const T = c2(k);
12642
- P(E.filter((q) => c2(q.label).includes(T)));
12643
+ const G = i2(k);
12644
+ P(T.filter((U) => i2(U.label).includes(G)));
12643
12645
  }
12644
12646
  s1(-1);
12645
12647
  }, [
@@ -12649,81 +12651,88 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12649
12651
  H
12650
12652
  ]);
12651
12653
  const $1 = Y(L);
12652
- U(() => {
12653
- const E = $1.current;
12654
+ F(() => {
12655
+ const T = $1.current;
12654
12656
  $1.current = L;
12655
- const T = !Object.is(E, L);
12657
+ const G = !Object.is(T, L);
12656
12658
  if (L == null) {
12657
- T && (X([]), A(""));
12659
+ G && (X([]), A(""));
12658
12660
  return;
12659
12661
  }
12660
12662
  if (m && Array.isArray(L) && L.length === 0) {
12661
- T && (X([]), A(""));
12663
+ G && (X([]), A(""));
12662
12664
  return;
12663
12665
  }
12664
12666
  if (!m && L === "") {
12665
- T && (X([]), A(""));
12667
+ G && (X([]), A(""));
12666
12668
  return;
12667
12669
  }
12668
12670
  if (v.length > 0) {
12669
12671
  if (m && Array.isArray(L))
12670
- X(v.filter((q) => typeof q.value == "number" ? L.includes(q.value) : L.includes(q.value.toString()))), T && A("");
12672
+ X(v.filter((U) => typeof U.value == "number" ? L.includes(U.value) : L.includes(U.value.toString()))), G && A("");
12671
12673
  else if (!m && (typeof L == "string" || typeof L == "number")) {
12672
- const q = v.find((c1) => typeof c1.value == "number" && typeof L == "number" ? c1.value === L : c1.value.toString() === L.toString());
12673
- q ? (X([q]), T && A(q.label)) : t && typeof L == "string" && L.trim() ? (X([{
12674
+ const U = v.find((c1) => typeof c1.value == "number" && typeof L == "number" ? c1.value === L : c1.value.toString() === L.toString());
12675
+ U ? (X([U]), G && A(U.label)) : t && typeof L == "string" && L.trim() ? (X([{
12674
12676
  label: L.trim(),
12675
12677
  value: L.trim(),
12676
12678
  className: "custom-option"
12677
- }]), T && A(L.trim())) : T && (X([]), A(""));
12679
+ }]), G && A(L.trim())) : G && (X([]), A(""));
12678
12680
  }
12679
12681
  } else t && !m && typeof L == "string" && L.trim() ? (X([{
12680
12682
  label: L.trim(),
12681
12683
  value: L.trim(),
12682
12684
  className: "custom-option"
12683
- }]), T && A(L.trim())) : T && (X([]), A(""));
12685
+ }]), G && A(L.trim())) : G && (X([]), A(""));
12684
12686
  }, [
12685
12687
  L,
12686
12688
  v,
12687
12689
  m,
12688
12690
  f,
12689
12691
  t
12690
- ]), U(() => {
12692
+ ]), F(() => {
12691
12693
  f && C !== void 0 && A(C);
12692
- }, [C, f]), U(() => {
12694
+ }, [C, f]), F(() => {
12693
12695
  if (!H || !h1.current) return;
12694
- const E = () => {
12696
+ const T = () => {
12695
12697
  if (!h1.current) return;
12696
- const T = h1.current.getBoundingClientRect(), q = window.innerHeight, c1 = 300, K1 = q - T.bottom, j1 = T.top, b0 = K1 < c1 && j1 > K1;
12697
- p1(b0), N && I({
12698
- top: b0 ? T.top + window.scrollY : T.bottom + window.scrollY,
12699
- left: T.left + window.scrollX,
12700
- width: T.width
12701
- });
12698
+ const U = h1.current.getBoundingClientRect(), c1 = window.visualViewport, K1 = c1?.offsetTop ?? 0, j1 = K1 + (c1?.height ?? window.innerHeight), M0 = 300, B0 = 8, c0 = j1 - U.bottom, l0 = U.top - K1, k0 = c0 < M0 && l0 > c0;
12699
+ if (p1(k0), N) {
12700
+ const R0 = Math.max(0, (k0 ? l0 : c0) - B0);
12701
+ I({
12702
+ top: U.bottom,
12703
+ bottom: window.innerHeight - U.top,
12704
+ left: U.left,
12705
+ width: U.width,
12706
+ maxHeight: Math.min(M0, R0)
12707
+ });
12708
+ }
12702
12709
  };
12703
- return E(), window.addEventListener("scroll", E, !0), window.addEventListener("resize", E), () => {
12704
- window.removeEventListener("scroll", E, !0), window.removeEventListener("resize", E);
12710
+ T();
12711
+ const G = window.visualViewport;
12712
+ return window.addEventListener("scroll", T, !0), window.addEventListener("resize", T), G?.addEventListener("resize", T), G?.addEventListener("scroll", T), () => {
12713
+ window.removeEventListener("scroll", T, !0), window.removeEventListener("resize", T), G?.removeEventListener("resize", T), G?.removeEventListener("scroll", T);
12705
12714
  };
12706
- }, [H, N]), U(() => {
12707
- const E = (T) => {
12708
- if (h1.current && !h1.current.contains(T.target)) {
12715
+ }, [H, N]), F(() => {
12716
+ const T = (G) => {
12717
+ if (h1.current && !h1.current.contains(G.target)) {
12709
12718
  if (N && H) {
12710
- const q = document.querySelector(".dropdown-menu--portal");
12711
- if (q && q.contains(T.target)) return;
12719
+ const U = document.querySelector(".dropdown-menu--portal");
12720
+ if (U && U.contains(G.target)) return;
12712
12721
  }
12713
12722
  if (t && !m && k.trim() && !(V.length > 0 && V[0].label.toLowerCase() === k.trim().toLowerCase())) {
12714
- const q = v.find((c1) => c1.label.toLowerCase() === k.toLowerCase() || c1.value.toString() === k) || {
12723
+ const U = v.find((c1) => c1.label.toLowerCase() === k.toLowerCase() || c1.value.toString() === k) || {
12715
12724
  label: k.trim(),
12716
12725
  value: k.trim(),
12717
12726
  className: "custom-option"
12718
12727
  };
12719
- X([q]), A(q.label), S(!1), g && g(q, p);
12728
+ X([U]), A(U.label), S(!1), g && g(U, p);
12720
12729
  return;
12721
12730
  }
12722
12731
  S(!1), !m && V.length > 0 ? A(V[0].label) : m && f && A("");
12723
12732
  }
12724
12733
  };
12725
- return document.addEventListener("mousedown", E), () => {
12726
- document.removeEventListener("mousedown", E);
12734
+ return document.addEventListener("mousedown", T), () => {
12735
+ document.removeEventListener("mousedown", T);
12727
12736
  };
12728
12737
  }, [
12729
12738
  t,
@@ -12737,113 +12746,114 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12737
12746
  V,
12738
12747
  N
12739
12748
  ]);
12740
- const Q = (E) => {
12741
- if (!E.disabled)
12749
+ const Q = (T) => {
12750
+ if (!T.disabled)
12742
12751
  if (m) {
12743
- const T = V.some((c1) => c1.value === E.value);
12744
- let q;
12745
- T ? q = V.filter((c1) => c1.value !== E.value) : q = [...V, E], X(q), f && A(""), g && g(q, p);
12752
+ const G = V.some((c1) => c1.value === T.value);
12753
+ let U;
12754
+ G ? U = V.filter((c1) => c1.value !== T.value) : U = [...V, T], X(U), f && A(""), g && g(U, p);
12746
12755
  } else
12747
- A(E.label), X([E]), S(!1), g && g(E, p);
12756
+ A(T.label), X([T]), S(!1), g && g(T, p);
12748
12757
  }, r1 = () => {
12749
12758
  if (!t || !k.trim()) return;
12750
- const E = v.find((q) => q.label.toLowerCase() === k.toLowerCase() || q.value.toString() === k);
12751
- if (E) {
12752
- Q(E);
12759
+ const T = v.find((U) => U.label.toLowerCase() === k.toLowerCase() || U.value.toString() === k);
12760
+ if (T) {
12761
+ Q(T);
12753
12762
  return;
12754
12763
  }
12755
- const T = {
12764
+ const G = {
12756
12765
  label: k.trim(),
12757
12766
  value: k.trim(),
12758
12767
  className: "custom-option"
12759
12768
  };
12760
12769
  if (m) {
12761
- const q = [...V, T];
12762
- X(q), A(""), g && g(q, p);
12770
+ const U = [...V, G];
12771
+ X(U), A(""), g && g(U, p);
12763
12772
  } else
12764
- X([T]), A(T.label), S(!1), g && g(T, p);
12765
- }, B = (E) => {
12766
- const T = V.filter((q) => q.value !== E.value);
12767
- X(T), g && (m ? g(T, p) : (g(null, p), f || A("")));
12773
+ X([G]), A(G.label), S(!1), g && g(G, p);
12774
+ }, B = (T) => {
12775
+ const G = V.filter((U) => U.value !== T.value);
12776
+ X(G), g && (m ? g(G, p) : (g(null, p), f || A("")));
12768
12777
  }, Z = () => {
12769
12778
  X([]), (!f || !m) && A(""), S(!1), g && g(m ? [] : null, p);
12770
- }, J = (E) => {
12771
- A(E), H || S(!0), w?.(E);
12779
+ }, J = (T) => {
12780
+ A(T), H || S(!0), w?.(T);
12772
12781
  }, n1 = () => {
12773
12782
  a || (S(!0), !m && f && V.length > 0 && A(""), (m || f) && o1.current?.focus());
12774
12783
  }, b1 = () => {
12775
12784
  a || (S(!H), H || (s1(-1), !m && f && V.length > 0 && A(""), (m || f) && o1.current?.focus()));
12776
- }, f1 = (E) => {
12785
+ }, f1 = (T) => {
12777
12786
  if (!a) {
12778
12787
  if (!H) {
12779
- (E.key === "ArrowDown" || E.key === "Enter") && (S(!0), E.preventDefault());
12788
+ (T.key === "ArrowDown" || T.key === "Enter") && (S(!0), T.preventDefault());
12780
12789
  return;
12781
12790
  }
12782
- switch (E.key) {
12791
+ switch (T.key) {
12783
12792
  case "ArrowDown":
12784
- if (E.preventDefault(), t && k && D.length === 0) return;
12785
- s1((T) => {
12786
- const q = T < (t && k && !D.some((c1) => c1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1) ? T + 1 : 0;
12787
- return q < D.length && W.current[q] && W.current[q]?.scrollIntoView({ block: "nearest" }), q;
12793
+ if (T.preventDefault(), t && k && D.length === 0) return;
12794
+ s1((G) => {
12795
+ const U = G < (t && k && !D.some((c1) => c1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1) ? G + 1 : 0;
12796
+ return U < D.length && W.current[U] && W.current[U]?.scrollIntoView({ block: "nearest" }), U;
12788
12797
  });
12789
12798
  break;
12790
12799
  case "ArrowUp":
12791
- if (E.preventDefault(), t && k && D.length === 0) return;
12792
- s1((T) => {
12793
- const q = t && k && !D.some((K1) => K1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1, c1 = T > 0 ? T - 1 : q;
12800
+ if (T.preventDefault(), t && k && D.length === 0) return;
12801
+ s1((G) => {
12802
+ const U = t && k && !D.some((K1) => K1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1, c1 = G > 0 ? G - 1 : U;
12794
12803
  return c1 < D.length && W.current[c1] && W.current[c1]?.scrollIntoView({ block: "nearest" }), c1;
12795
12804
  });
12796
12805
  break;
12797
12806
  case "Enter":
12798
- E.preventDefault(), O >= 0 && O < D.length ? Q(D[O]) : (t && k && O === D.length || t && k && D.length === 0) && r1();
12807
+ T.preventDefault(), O >= 0 && O < D.length ? Q(D[O]) : (t && k && O === D.length || t && k && D.length === 0) && r1();
12799
12808
  break;
12800
12809
  case "Escape":
12801
- E.preventDefault(), S(!1), !m && V.length > 0 ? A(V[0].label) : m && f && A("");
12810
+ T.preventDefault(), S(!1), !m && V.length > 0 ? A(V[0].label) : m && f && A("");
12802
12811
  break;
12803
12812
  case "Backspace":
12804
- m && k === "" && V.length > 0 && (E.preventDefault(), B(V[V.length - 1]));
12813
+ m && k === "" && V.length > 0 && (T.preventDefault(), B(V[V.length - 1]));
12805
12814
  break;
12806
12815
  default:
12807
12816
  break;
12808
12817
  }
12809
12818
  }
12810
- }, B1 = (E) => V.some((T) => T.value === E.value), D1 = () => {
12819
+ }, B1 = (T) => V.some((G) => G.value === T.value), D1 = () => {
12811
12820
  if (V.length === 0) return "";
12812
- const E = Math.max(1, d);
12813
- if (V.length <= E) return V.map((c1) => c1.label).join(", ");
12814
- const T = V.slice(0, E).map((c1) => c1.label).join(", "), q = V.length - E;
12815
- return `${T} (+${q} ${q === 1 ? "other" : "others"})`;
12821
+ const T = Math.max(1, d);
12822
+ if (V.length <= T) return V.map((c1) => c1.label).join(", ");
12823
+ const G = V.slice(0, T).map((c1) => c1.label).join(", "), U = V.length - T;
12824
+ return `${G} (+${U} ${U === 1 ? "other" : "others"})`;
12816
12825
  }, Y1 = () => m && b || f && H ? k : V.length > 0 ? m ? D1() : V[0].label : "", _1 = () => m && b ? V.length > 0 ? "" : u : H && f ? u : V.length > 0 ? "" : u, L1 = () => !m || V.length === 0 || x === "none" ? null : x === "floating" ? /* @__PURE__ */ r("div", {
12817
12826
  className: "dropdown-selected-count",
12818
12827
  children: [V.length, " selected"]
12819
- }) : null, T1 = () => !!(t && k && k.trim() && !D.some((E) => E.label.toLowerCase() === k.toLowerCase() || E.value.toString() === k)), t0 = () => {
12828
+ }) : null, T1 = () => !!(t && k && k.trim() && !D.some((T) => T.label.toLowerCase() === k.toLowerCase() || T.value.toString() === k)), t0 = () => {
12820
12829
  if (!H || a) return null;
12821
- const E = /* @__PURE__ */ e("div", {
12830
+ const T = /* @__PURE__ */ e("div", {
12822
12831
  ref: v1,
12823
12832
  className: `dropdown-menu ${N ? "dropdown-menu--portal" : ""} ${$ ? "dropdown-menu--upward" : ""}`,
12824
12833
  style: N ? {
12825
- position: "absolute",
12826
- top: $ ? "auto" : `${i1.top}px`,
12827
- bottom: $ ? `${window.innerHeight - i1.top}px` : "auto",
12828
- left: `${i1.left}px`,
12829
- width: `${i1.width}px`,
12834
+ position: "fixed",
12835
+ top: $ ? "auto" : `${a1.top}px`,
12836
+ bottom: $ ? `${a1.bottom}px` : "auto",
12837
+ left: `${a1.left}px`,
12838
+ width: `${a1.width}px`,
12839
+ maxHeight: `${a1.maxHeight}px`,
12830
12840
  zIndex: 9999
12831
12841
  } : void 0,
12832
12842
  children: D.length > 0 || T1() ? /* @__PURE__ */ r("ul", {
12833
12843
  className: "dropdown-options-list",
12834
- children: [D.map((T, q) => /* @__PURE__ */ r("li", {
12844
+ children: [D.map((G, U) => /* @__PURE__ */ r("li", {
12835
12845
  ref: (c1) => {
12836
- W.current[q] = c1;
12846
+ W.current[U] = c1;
12837
12847
  },
12838
- className: `dropdown-option ${T.className || ""} ${O === q ? "focused" : ""} ${B1(T) ? "selected" : ""} ${T.disabled ? "dropdown-option--disabled" : ""}`,
12839
- onClick: () => Q(T),
12840
- onMouseEnter: () => s1(q),
12841
- title: T.tooltip,
12848
+ className: `dropdown-option ${G.className || ""} ${O === U ? "focused" : ""} ${B1(G) ? "selected" : ""} ${G.disabled ? "dropdown-option--disabled" : ""}`,
12849
+ onClick: () => Q(G),
12850
+ onMouseEnter: () => s1(U),
12851
+ title: G.tooltip,
12842
12852
  children: [m && /* @__PURE__ */ e("div", {
12843
12853
  className: "dropdown-option-checkbox",
12844
12854
  children: /* @__PURE__ */ e("div", {
12845
- className: `checkbox ${B1(T) ? "checked" : ""}`,
12846
- children: B1(T) && /* @__PURE__ */ e("svg", {
12855
+ className: `checkbox ${B1(G) ? "checked" : ""}`,
12856
+ children: B1(G) && /* @__PURE__ */ e("svg", {
12847
12857
  width: "10",
12848
12858
  height: "8",
12849
12859
  viewBox: "0 0 10 8",
@@ -12862,22 +12872,22 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12862
12872
  children: [/* @__PURE__ */ r("span", {
12863
12873
  className: "dropdown-option-label",
12864
12874
  children: [
12865
- T.prefix && /* @__PURE__ */ e("span", {
12875
+ G.prefix && /* @__PURE__ */ e("span", {
12866
12876
  className: "dropdown-option-prefix",
12867
- children: T.prefix
12877
+ children: G.prefix
12868
12878
  }),
12869
- T.icon && /* @__PURE__ */ e(G, { name: T.icon }),
12870
- /* @__PURE__ */ e("span", { children: T.label }),
12871
- T.suffixIcon && /* @__PURE__ */ e(G, { name: T.suffixIcon })
12879
+ G.icon && /* @__PURE__ */ e(E, { name: G.icon }),
12880
+ /* @__PURE__ */ e("span", { children: G.label }),
12881
+ G.suffixIcon && /* @__PURE__ */ e(E, { name: G.suffixIcon })
12872
12882
  ]
12873
- }), T.details && /* @__PURE__ */ e("span", {
12883
+ }), G.details && /* @__PURE__ */ e("span", {
12874
12884
  className: "dropdown-option-details",
12875
- children: T.details
12885
+ children: G.details
12876
12886
  })]
12877
12887
  })]
12878
- }, `dd-option-${y1}-${q}`)), T1() && /* @__PURE__ */ e("li", {
12879
- ref: (T) => {
12880
- W.current[D.length] = T;
12888
+ }, `dd-option-${y1}-${U}`)), T1() && /* @__PURE__ */ e("li", {
12889
+ ref: (G) => {
12890
+ W.current[D.length] = G;
12881
12891
  },
12882
12892
  className: `dropdown-option dropdown-option--create ${O === D.length ? "focused" : ""}`,
12883
12893
  onClick: r1,
@@ -12886,7 +12896,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12886
12896
  className: "dropdown-option-content",
12887
12897
  children: /* @__PURE__ */ r("span", {
12888
12898
  className: "dropdown-option-label",
12889
- children: [/* @__PURE__ */ e(G, { name: "plus" }), /* @__PURE__ */ r("span", { children: [
12899
+ children: [/* @__PURE__ */ e(E, { name: "plus" }), /* @__PURE__ */ r("span", { children: [
12890
12900
  "Create “",
12891
12901
  k,
12892
12902
  "”"
@@ -12899,7 +12909,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12899
12909
  children: "No options found"
12900
12910
  })
12901
12911
  });
12902
- return N ? q1(E, document.body) : E;
12912
+ return N ? q1(T, document.body) : T;
12903
12913
  }, C1 = !m && V.length === 1 ? V[0] : null, I1 = y && !H && !m && V.length > 0, X1 = !!(C1?.icon && !k && !I1), r0 = !!(C1?.suffixIcon && !I1), Z1 = m && b;
12904
12914
  return /* @__PURE__ */ r("div", {
12905
12915
  className: `dropdown-container ${s ? "dropdown-error" : ""} ${_ ? "dropdown-success" : ""} ${o ? "dropdown-highlighted" : ""} ${m ? "multiple" : ""} ${a ? "disabled" : ""} ${m ? `count-display-${x}` : ""} ${l}`,
@@ -12915,32 +12925,32 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12915
12925
  children: [
12916
12926
  X1 && C1?.icon && /* @__PURE__ */ e("span", {
12917
12927
  className: "dropdown-selected-icon dropdown-selected-icon--prefix",
12918
- children: /* @__PURE__ */ e(G, { name: C1.icon })
12928
+ children: /* @__PURE__ */ e(E, { name: C1.icon })
12919
12929
  }),
12920
12930
  I1 && C1 && /* @__PURE__ */ r("span", {
12921
12931
  className: "dropdown-value-chip",
12922
12932
  onClick: n1,
12923
- children: [C1.icon && /* @__PURE__ */ e(G, { name: C1.icon }), /* @__PURE__ */ e("span", {
12933
+ children: [C1.icon && /* @__PURE__ */ e(E, { name: C1.icon }), /* @__PURE__ */ e("span", {
12924
12934
  className: "dropdown-value-chip__label",
12925
12935
  children: C1.label
12926
12936
  })]
12927
12937
  }),
12928
- Z1 && V.map((E) => /* @__PURE__ */ r("span", {
12938
+ Z1 && V.map((T) => /* @__PURE__ */ r("span", {
12929
12939
  className: "dropdown-chip",
12930
12940
  children: [/* @__PURE__ */ e("span", {
12931
12941
  className: "dropdown-chip__label",
12932
- children: E.label
12942
+ children: T.label
12933
12943
  }), /* @__PURE__ */ e("button", {
12934
12944
  type: "button",
12935
12945
  className: "dropdown-chip__remove",
12936
12946
  title: "Remove",
12937
12947
  disabled: a,
12938
- onClick: (T) => {
12939
- T.stopPropagation(), B(E);
12948
+ onClick: (G) => {
12949
+ G.stopPropagation(), B(T);
12940
12950
  },
12941
- children: W0
12951
+ children: O0
12942
12952
  })]
12943
- }, `dd-chip-${E.value}`)),
12953
+ }, `dd-chip-${T.value}`)),
12944
12954
  /* @__PURE__ */ e(A1, {
12945
12955
  ref: o1,
12946
12956
  id: k1,
@@ -12959,24 +12969,24 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12959
12969
  children: [
12960
12970
  r0 && C1?.suffixIcon && /* @__PURE__ */ e("span", {
12961
12971
  className: "dropdown-selected-icon dropdown-selected-icon--suffix",
12962
- children: /* @__PURE__ */ e(G, { name: C1.suffixIcon })
12972
+ children: /* @__PURE__ */ e(E, { name: C1.suffixIcon })
12963
12973
  }),
12964
12974
  (!m && V.length > 0 || m && V.length > 0) && /* @__PURE__ */ e("span", {
12965
12975
  className: "dropdown-action-button dropdown-clear-button",
12966
- children: /* @__PURE__ */ e(F, {
12976
+ children: /* @__PURE__ */ e(q, {
12967
12977
  variant: "plain",
12968
12978
  onClick: Z,
12969
12979
  disabled: a,
12970
- children: W0
12980
+ children: O0
12971
12981
  })
12972
12982
  }),
12973
12983
  /* @__PURE__ */ e("span", {
12974
12984
  className: `dropdown-action-button dropdown-toggle-button ${H ? "open" : ""}`,
12975
- children: /* @__PURE__ */ e(F, {
12985
+ children: /* @__PURE__ */ e(q, {
12976
12986
  variant: "plain",
12977
12987
  onClick: b1,
12978
12988
  disabled: a,
12979
- children: f2
12989
+ children: b2
12980
12990
  })
12981
12991
  })
12982
12992
  ]
@@ -13034,7 +13044,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13034
13044
  type: "button",
13035
13045
  className: "input-date-clear",
13036
13046
  onClick: () => p?.(void 0),
13037
- children: /* @__PURE__ */ e(G, {
13047
+ children: /* @__PURE__ */ e(E, {
13038
13048
  name: "clear",
13039
13049
  size: "sm"
13040
13050
  })
@@ -13056,8 +13066,8 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13056
13066
  info: "var(--rating-color-info)",
13057
13067
  warning: "var(--rating-color-warning)",
13058
13068
  danger: "var(--rating-color-danger)"
13059
- }, p0 = ({ type: t, filled: c, variant: l, size: a = 16 }) => {
13060
- const s = `rating-grad-${C0()}`, o = Sr[l], i = "var(--rating-empty-color)", n = c === "full" ? o : c === "half" ? `url(#${s})` : i, d = () => c === "half" ? /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ r("linearGradient", {
13069
+ }, g0 = ({ type: t, filled: c, variant: l, size: a = 16 }) => {
13070
+ const s = `rating-grad-${b0()}`, o = Sr[l], i = "var(--rating-empty-color)", n = c === "full" ? o : c === "half" ? `url(#${s})` : i, d = () => c === "half" ? /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ r("linearGradient", {
13061
13071
  id: s,
13062
13072
  x1: "0",
13063
13073
  x2: "1",
@@ -13129,7 +13139,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13129
13139
  return /* @__PURE__ */ r("span", {
13130
13140
  className: "rate rate--half-select",
13131
13141
  children: [
13132
- /* @__PURE__ */ e(p0, {
13142
+ /* @__PURE__ */ e(g0, {
13133
13143
  type: c,
13134
13144
  filled: f ? "full" : !f && i >= v ? "half" : "empty",
13135
13145
  variant: m,
@@ -13160,7 +13170,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13160
13170
  children: [
13161
13171
  Array.from({ length: w }, (f, C) => /* @__PURE__ */ e("span", {
13162
13172
  className: "rate",
13163
- children: /* @__PURE__ */ e(p0, {
13173
+ children: /* @__PURE__ */ e(g0, {
13164
13174
  type: c,
13165
13175
  filled: "full",
13166
13176
  variant: m
@@ -13168,7 +13178,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13168
13178
  }, `full-${C}`)),
13169
13179
  v && /* @__PURE__ */ e("span", {
13170
13180
  className: "rate",
13171
- children: /* @__PURE__ */ e(p0, {
13181
+ children: /* @__PURE__ */ e(g0, {
13172
13182
  type: c,
13173
13183
  filled: "half",
13174
13184
  variant: m
@@ -13176,7 +13186,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13176
13186
  }),
13177
13187
  Array.from({ length: u }, (f, C) => /* @__PURE__ */ e("span", {
13178
13188
  className: "rate",
13179
- children: /* @__PURE__ */ e(p0, {
13189
+ children: /* @__PURE__ */ e(g0, {
13180
13190
  type: c,
13181
13191
  filled: "empty",
13182
13192
  variant: m
@@ -13202,7 +13212,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13202
13212
  className: "rate",
13203
13213
  onClick: () => p(w),
13204
13214
  onMouseEnter: () => a?.(w + 1),
13205
- children: /* @__PURE__ */ e(p0, {
13215
+ children: /* @__PURE__ */ e(g0, {
13206
13216
  type: c,
13207
13217
  filled: w < i ? "full" : "empty",
13208
13218
  variant: m
@@ -13228,7 +13238,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13228
13238
  children: [
13229
13239
  /* @__PURE__ */ e("div", {
13230
13240
  className: "input-search__icon",
13231
- children: /* @__PURE__ */ e(G, { name: "search" })
13241
+ children: /* @__PURE__ */ e(E, { name: "search" })
13232
13242
  }),
13233
13243
  /* @__PURE__ */ e(A1, {
13234
13244
  autoComplete: t,
@@ -13253,7 +13263,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13253
13263
  type: "button",
13254
13264
  className: "input-search__clear",
13255
13265
  onClick: f,
13256
- children: /* @__PURE__ */ e(G, {
13266
+ children: /* @__PURE__ */ e(E, {
13257
13267
  name: "clear",
13258
13268
  size: "sm"
13259
13269
  })
@@ -13278,13 +13288,13 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13278
13288
  label: "90d",
13279
13289
  days: 90
13280
13290
  }
13281
- ], Ar = 3, $r = (t) => Array.isArray(t) ? t : t == null || typeof t == "boolean" ? [] : [t], l2 = (t) => t.every((c) => typeof c == "number") ? t : t.map(String), Dr = ({ filter: t, onChange: c }) => /* @__PURE__ */ r("div", {
13291
+ ], Ar = 3, $r = (t) => Array.isArray(t) ? t : t == null || typeof t == "boolean" ? [] : [t], n2 = (t) => t.every((c) => typeof c == "number") ? t : t.map(String), Dr = ({ filter: t, onChange: c }) => /* @__PURE__ */ r("div", {
13282
13292
  className: `control-panel__filter${t.type === "checkbox" ? " control-panel__filter--checkbox" : ""}`,
13283
13293
  children: [t.type !== "checkbox" && /* @__PURE__ */ r("span", {
13284
13294
  className: `control-panel__filter-title${t.isActive ? " control-panel__filter-title--active" : ""}`,
13285
13295
  children: [
13286
13296
  t.isActive && /* @__PURE__ */ e("span", { className: "control-panel__filter-active-dot" }),
13287
- t.icon && /* @__PURE__ */ e(G, { name: t.icon }),
13297
+ t.icon && /* @__PURE__ */ e(E, { name: t.icon }),
13288
13298
  t.label
13289
13299
  ]
13290
13300
  }), /* @__PURE__ */ e(Tr, {
@@ -13293,7 +13303,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13293
13303
  })]
13294
13304
  }), Tr = ({ filter: t, onChange: c }) => {
13295
13305
  const l = $r(t.value), a = t.options ?? [], [s, o] = z("");
13296
- if (t.type === "checkbox") return /* @__PURE__ */ e(i0, {
13306
+ if (t.type === "checkbox") return /* @__PURE__ */ e(o0, {
13297
13307
  count: t.count,
13298
13308
  selected: t.value === !0,
13299
13309
  onClick: () => c({
@@ -13415,7 +13425,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13415
13425
  className: "control-panel__filter-date-range",
13416
13426
  children: [h.length > 0 && /* @__PURE__ */ e("div", {
13417
13427
  className: "control-panel__filter-date-presets",
13418
- children: h.map((v) => /* @__PURE__ */ e(F, {
13428
+ children: h.map((v) => /* @__PURE__ */ e(q, {
13419
13429
  size: "small",
13420
13430
  variant: "default",
13421
13431
  onClick: () => w(v.days),
@@ -13468,7 +13478,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13468
13478
  className: "control-panel__filter-swatch",
13469
13479
  style: { backgroundColor: i.color }
13470
13480
  }),
13471
- i.icon && /* @__PURE__ */ e(G, { name: i.icon }),
13481
+ i.icon && /* @__PURE__ */ e(E, { name: i.icon }),
13472
13482
  /* @__PURE__ */ e("span", {
13473
13483
  className: "control-panel__filter-label",
13474
13484
  children: i.label
@@ -13481,7 +13491,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13481
13491
  })
13482
13492
  }, i.value);
13483
13493
  })
13484
- }) : /* @__PURE__ */ e(y0, {
13494
+ }) : /* @__PURE__ */ e(x0, {
13485
13495
  className: "control-panel__filter-dropdown",
13486
13496
  multiple: t.multiple,
13487
13497
  name: t.id,
@@ -13490,7 +13500,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13490
13500
  c({
13491
13501
  filterId: t.id,
13492
13502
  type: t.type,
13493
- value: Array.isArray(i) ? l2(i.map((d) => d.value)) : i?.value ?? null,
13503
+ value: Array.isArray(i) ? n2(i.map((d) => d.value)) : i?.value ?? null,
13494
13504
  option: Array.isArray(i) ? null : i,
13495
13505
  options: n
13496
13506
  });
@@ -13519,7 +13529,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13519
13529
  } : void 0,
13520
13530
  children: n.map((d) => {
13521
13531
  const h = l.includes(d.value);
13522
- return /* @__PURE__ */ r(i0, {
13532
+ return /* @__PURE__ */ r(o0, {
13523
13533
  color: d.color,
13524
13534
  count: d.count,
13525
13535
  disabled: d.disabled,
@@ -13532,7 +13542,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13532
13542
  c({
13533
13543
  filterId: t.id,
13534
13544
  type: t.type,
13535
- value: l2(m),
13545
+ value: n2(m),
13536
13546
  option: d,
13537
13547
  options: a.filter((p) => m.includes(p.value))
13538
13548
  });
@@ -13593,10 +13603,10 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
13593
13603
  const c = t.some((l) => (l.children?.length ?? 0) > 0);
13594
13604
  return /* @__PURE__ */ e("nav", {
13595
13605
  className: "control-panel__nav",
13596
- children: t.map((l) => N2(l, c))
13606
+ children: t.map((l) => B2(l, c))
13597
13607
  });
13598
13608
  };
13599
- function N2(t, c, l = 0) {
13609
+ function B2(t, c, l = 0) {
13600
13610
  const a = t.children ?? [], s = a.length > 0, o = t.isOpen ?? !1, i = [
13601
13611
  "control-panel__nav-item",
13602
13612
  t.isActive ? "control-panel__nav-item--active" : "",
@@ -13614,7 +13624,7 @@ function N2(t, c, l = 0) {
13614
13624
  h.stopPropagation(), t.onOpenChange?.(!o, t);
13615
13625
  },
13616
13626
  type: "button",
13617
- children: /* @__PURE__ */ e(G, { name: "caret-right" })
13627
+ children: /* @__PURE__ */ e(E, { name: "caret-right" })
13618
13628
  }) : /* @__PURE__ */ e("span", { className: "control-panel__nav-toggle-placeholder" })), /* @__PURE__ */ r("button", {
13619
13629
  className: i,
13620
13630
  onClick: () => {
@@ -13629,7 +13639,7 @@ function N2(t, c, l = 0) {
13629
13639
  t.icon ? /* @__PURE__ */ e("span", {
13630
13640
  className: "control-panel__nav-icon",
13631
13641
  style: t.color ? { color: t.color } : void 0,
13632
- children: /* @__PURE__ */ e(G, { name: t.icon })
13642
+ children: /* @__PURE__ */ e(E, { name: t.icon })
13633
13643
  }) : t.color && /* @__PURE__ */ e("span", {
13634
13644
  className: "control-panel__nav-dot",
13635
13645
  style: { backgroundColor: t.color }
@@ -13653,7 +13663,7 @@ function N2(t, c, l = 0) {
13653
13663
  })]
13654
13664
  }), s && /* @__PURE__ */ e("div", {
13655
13665
  className: `control-panel__nav-children${o ? " control-panel__nav-children--open" : ""}`,
13656
- children: a.map((h) => N2(h, c, l + 1))
13666
+ children: a.map((h) => B2(h, c, l + 1))
13657
13667
  })]
13658
13668
  }, t.id);
13659
13669
  }
@@ -13683,7 +13693,7 @@ var Gr = [{
13683
13693
  className: "control-panel__option control-panel__option--view-toggle",
13684
13694
  children: /* @__PURE__ */ e("div", {
13685
13695
  className: "control-panel__option-view-toggle",
13686
- children: (l.options ?? [...Gr, ...l.showGallery ? [Er] : []]).map((o) => /* @__PURE__ */ e(F, {
13696
+ children: (l.options ?? [...Gr, ...l.showGallery ? [Er] : []]).map((o) => /* @__PURE__ */ e(q, {
13687
13697
  icon: o.icon,
13688
13698
  size: "small",
13689
13699
  variant: l.value === o.value ? "info" : "default",
@@ -13692,7 +13702,7 @@ var Gr = [{
13692
13702
  }, o.value))
13693
13703
  })
13694
13704
  }),
13695
- a && a.options.length > 0 && /* @__PURE__ */ r(l1, { children: [l && /* @__PURE__ */ e(a0, { spacing: 0 }), /* @__PURE__ */ r("div", {
13705
+ a && a.options.length > 0 && /* @__PURE__ */ r(l1, { children: [l && /* @__PURE__ */ e(n0, { spacing: 0 }), /* @__PURE__ */ r("div", {
13696
13706
  className: "control-panel__option control-panel__option--group-by",
13697
13707
  children: [/* @__PURE__ */ e("span", {
13698
13708
  className: "control-panel__filter-title",
@@ -13701,7 +13711,7 @@ var Gr = [{
13701
13711
  className: "control-panel__filter-chips",
13702
13712
  children: a.options.map((o) => {
13703
13713
  const i = a.value === o.value;
13704
- return /* @__PURE__ */ e(i0, {
13714
+ return /* @__PURE__ */ e(o0, {
13705
13715
  selected: i,
13706
13716
  onClick: () => a.onChange(i ? null : o.value),
13707
13717
  children: o.label
@@ -13709,7 +13719,7 @@ var Gr = [{
13709
13719
  })
13710
13720
  })]
13711
13721
  })] }),
13712
- s && /* @__PURE__ */ r(l1, { children: [(l || a && a.options.length > 0) && /* @__PURE__ */ e(a0, { spacing: 0 }), /* @__PURE__ */ r("div", {
13722
+ s && /* @__PURE__ */ r(l1, { children: [(l || a && a.options.length > 0) && /* @__PURE__ */ e(n0, { spacing: 0 }), /* @__PURE__ */ r("div", {
13713
13723
  className: "control-panel__option control-panel__option--chips",
13714
13724
  children: [/* @__PURE__ */ e("span", {
13715
13725
  className: "control-panel__filter-title",
@@ -13718,7 +13728,7 @@ var Gr = [{
13718
13728
  className: "control-panel__filter-chips",
13719
13729
  children: s.options.map((o) => {
13720
13730
  const i = s.value.includes(o.value);
13721
- return /* @__PURE__ */ e(i0, {
13731
+ return /* @__PURE__ */ e(o0, {
13722
13732
  selected: i,
13723
13733
  onClick: () => {
13724
13734
  const n = i ? s.value.filter((d) => d !== o.value) : [...s.value, o.value];
@@ -13729,7 +13739,7 @@ var Gr = [{
13729
13739
  })
13730
13740
  })]
13731
13741
  })] }),
13732
- t.length > 0 && (l || a || s) && /* @__PURE__ */ e(a0, { spacing: 0 }),
13742
+ t.length > 0 && (l || a || s) && /* @__PURE__ */ e(n0, { spacing: 0 }),
13733
13743
  t.map((o, i) => /* @__PURE__ */ r("div", {
13734
13744
  className: "control-panel__option-group",
13735
13745
  children: [o.label && /* @__PURE__ */ e("span", {
@@ -13737,10 +13747,10 @@ var Gr = [{
13737
13747
  children: o.label
13738
13748
  }), o.options.map((n, d) => {
13739
13749
  const h = d > 0 ? o.options[d - 1] : void 0, m = !!h && h.type !== n.type;
13740
- return /* @__PURE__ */ r(E1.Fragment, { children: [m && /* @__PURE__ */ e(a0, { spacing: 0 }), /* @__PURE__ */ r("div", {
13750
+ return /* @__PURE__ */ r(E1.Fragment, { children: [m && /* @__PURE__ */ e(n0, { spacing: 0 }), /* @__PURE__ */ r("div", {
13741
13751
  className: `control-panel__option control-panel__option--${n.type}`,
13742
13752
  children: [
13743
- n.type === "checkbox" && /* @__PURE__ */ e(i0, {
13753
+ n.type === "checkbox" && /* @__PURE__ */ e(o0, {
13744
13754
  icon: n.icon,
13745
13755
  selected: n.value ?? !1,
13746
13756
  onClick: () => c?.({
@@ -13775,7 +13785,7 @@ var Gr = [{
13775
13785
  type: "radio",
13776
13786
  value: p.value
13777
13787
  }),
13778
- p.icon && /* @__PURE__ */ e(G, { name: p.icon }),
13788
+ p.icon && /* @__PURE__ */ e(E, { name: p.icon }),
13779
13789
  /* @__PURE__ */ e("span", {
13780
13790
  className: "control-panel__filter-label",
13781
13791
  children: p.label
@@ -13796,7 +13806,7 @@ var Gr = [{
13796
13806
  className: "control-panel__filter-chips",
13797
13807
  children: n.options.map((p) => {
13798
13808
  const g = n.value.includes(p.value);
13799
- return /* @__PURE__ */ e(i0, {
13809
+ return /* @__PURE__ */ e(o0, {
13800
13810
  disabled: p.disabled,
13801
13811
  icon: p.icon,
13802
13812
  title: p.title,
@@ -13819,7 +13829,7 @@ var Gr = [{
13819
13829
  }, o.id ?? o.label ?? i))
13820
13830
  ]
13821
13831
  }), ga = ({ width: t = "280px", className: c = "", isOpen: l, onClose: a, isMobile: s, showOverlay: o = !0, contained: i = !1, flush: n = !1, shadow: d = "none", header: h, navigation: m = [], actions: p = [], filters: g = [], filtersCount: w, onFilterChange: v, onClearFilters: u, options: f = [], onOptionChange: C, viewToggle: x, groupBy: b, visibleColumns: M }) => {
13822
- const _ = F0(), N = s ?? _?.isMobile ?? !1, L = l ?? (N ? _?.isOpen ?? !1 : !0), y = a ?? _?.close ?? (() => {
13832
+ const _ = X0(), N = s ?? _?.isMobile ?? !1, L = l ?? (N ? _?.isOpen ?? !1 : !0), y = a ?? _?.close ?? (() => {
13823
13833
  }), H = [
13824
13834
  "control-panel",
13825
13835
  L ? "control-panel--open" : "control-panel--closed",
@@ -13838,7 +13848,7 @@ var Gr = [{
13838
13848
  className: H,
13839
13849
  style: k,
13840
13850
  children: [
13841
- h && /* @__PURE__ */ e(M2, {
13851
+ h && /* @__PURE__ */ e(L2, {
13842
13852
  icon: h.icon,
13843
13853
  emoji: h.emoji,
13844
13854
  svg: h.svg,
@@ -13872,7 +13882,7 @@ var Gr = [{
13872
13882
  onChange: (s1) => v?.(s1)
13873
13883
  }, O.id))]
13874
13884
  }),
13875
- P && D && /* @__PURE__ */ e(a0, { spacing: 0 }),
13885
+ P && D && /* @__PURE__ */ e(n0, { spacing: 0 }),
13876
13886
  D && /* @__PURE__ */ e(Ir, {
13877
13887
  normalizedOptionGroups: A,
13878
13888
  onOptionChange: C,
@@ -13891,7 +13901,7 @@ var Gr = [{
13891
13901
  t.onClick?.(d);
13892
13902
  }, i = () => {
13893
13903
  t.onClick?.({});
13894
- }, n = /* @__PURE__ */ e(F, {
13904
+ }, n = /* @__PURE__ */ e(q, {
13895
13905
  className: "control-panel__action",
13896
13906
  disabled: t.disabled,
13897
13907
  fullWidth: t.fullWidth ?? !0,
@@ -13941,7 +13951,7 @@ var Gr = [{
13941
13951
  }
13942
13952
  }, ua = ({ children: t, className: c = "", copiedLabel: l = "Copied", disabled: a = !1, errorLabel: s = "Copy failed", iconOnly: o = !1, label: i = "Copy", onCopy: n, onError: d, resetDelay: h = 1800, size: m = "medium", title: p, value: g, variant: w = "ghost" }) => {
13943
13953
  const [v, u] = z("idle"), f = Y(null);
13944
- U(() => () => {
13954
+ F(() => () => {
13945
13955
  f.current && window.clearTimeout(f.current);
13946
13956
  }, []);
13947
13957
  const C = () => {
@@ -13953,7 +13963,7 @@ var Gr = [{
13953
13963
  u("error"), C(), d?.(_);
13954
13964
  }
13955
13965
  }, b = v === "copied" ? l : v === "error" ? s : i, M = v === "copied" && w === "ghost" ? "success" : v === "error" && w === "ghost" ? "danger" : w;
13956
- return /* @__PURE__ */ e(F, {
13966
+ return /* @__PURE__ */ e(q, {
13957
13967
  className: `copy-button copy-button--${v} ${o ? "copy-button--icon-only" : ""} ${c}`,
13958
13968
  disabled: a,
13959
13969
  icon: v === "copied" ? "checkmark" : "clipboard",
@@ -14008,7 +14018,7 @@ var Gr = [{
14008
14018
  const o = c ? (a - 1) * t + 1 : 0, i = Math.min(a * t, c), n = s ? ` ${s}` : "";
14009
14019
  return c === l ? `Showing ${o}-${i} of ${l}${n}` : `Showing ${o}-${i} of ${c} filtered${n} (${l} total)`;
14010
14020
  }, J1 = ({ icon: t, title: c, description: l, noCard: a, primary: s, secondary: o, children: i }) => {
14011
- const n = s || o, d = typeof t == "string" ? /* @__PURE__ */ e(G, {
14021
+ const n = s || o, d = typeof t == "string" ? /* @__PURE__ */ e(E, {
14012
14022
  name: t,
14013
14023
  size: "xxxl"
14014
14024
  }) : t;
@@ -14030,12 +14040,12 @@ var Gr = [{
14030
14040
  i,
14031
14041
  n && /* @__PURE__ */ r("div", {
14032
14042
  className: "empty-state__actions",
14033
- children: [s && /* @__PURE__ */ e(F, {
14043
+ children: [s && /* @__PURE__ */ e(q, {
14034
14044
  variant: s.variant || "info",
14035
14045
  icon: s.icon,
14036
14046
  onClick: s.onClick,
14037
14047
  children: s.text
14038
- }), o && /* @__PURE__ */ e(F, {
14048
+ }), o && /* @__PURE__ */ e(q, {
14039
14049
  variant: o.variant || "default",
14040
14050
  icon: o.icon,
14041
14051
  onClick: o.onClick,
@@ -14044,14 +14054,14 @@ var Gr = [{
14044
14054
  })
14045
14055
  ]
14046
14056
  });
14047
- }, Fr = 45, qr = 120, Or = 45, Yr = 45, Xr = 8, Kr = 2, a2 = ({ currentPage: t, totalPages: c, totalItems: l, onPageChange: a, showPagesNumbers: s = !1, pageSizeOptions: o, pageSize: i, onPageSizeChange: n, pageSizeLabel: d = "Rows", horizontalAlign: h = "left" }) => {
14048
- const { isAtLeast: m, isMobile: p } = h0(), g = Y(null), [w, v] = z(p ? 0 : 2), u = j(() => {
14057
+ }, Fr = 45, qr = 120, Or = 45, Yr = 45, Xr = 8, Kr = 2, o2 = ({ currentPage: t, totalPages: c, totalItems: l, onPageChange: a, showPagesNumbers: s = !1, pageSizeOptions: o, pageSize: i, onPageSizeChange: n, pageSizeLabel: d = "Rows", horizontalAlign: h = "left" }) => {
14058
+ const { isAtLeast: m, isMobile: p } = m0(), g = Y(null), [w, v] = z(p ? 0 : 2), u = j(() => {
14049
14059
  const b = g.current;
14050
14060
  if (!b) return;
14051
14061
  const M = b.offsetWidth - ((m("desktop") ? qr : Or) * 2 + Fr * 2 + Yr * 2 + Xr * 6), _ = Math.floor(M / 53);
14052
14062
  v(Math.min(Kr, Math.max(0, Math.floor(_ / 2))));
14053
14063
  }, [m]);
14054
- U(() => {
14064
+ F(() => {
14055
14065
  const b = g.current;
14056
14066
  if (!b) return;
14057
14067
  const M = new ResizeObserver(() => {
@@ -14074,7 +14084,7 @@ var Gr = [{
14074
14084
  className: "pagination__pages",
14075
14085
  ref: g,
14076
14086
  children: [
14077
- /* @__PURE__ */ e(F, {
14087
+ /* @__PURE__ */ e(q, {
14078
14088
  variant: "default",
14079
14089
  borders: "sharp",
14080
14090
  disabled: t === 1,
@@ -14082,14 +14092,14 @@ var Gr = [{
14082
14092
  onClick: () => a(t - 1),
14083
14093
  children: m("desktop") ? "Previous" : ""
14084
14094
  }),
14085
- x().map((b, M) => /* @__PURE__ */ e(F, {
14095
+ x().map((b, M) => /* @__PURE__ */ e(q, {
14086
14096
  borders: "sharp",
14087
14097
  variant: b === t ? "warning" : "default",
14088
14098
  disabled: typeof b == "string",
14089
14099
  onClick: () => typeof b == "number" && a(b),
14090
14100
  children: b
14091
14101
  }, M)),
14092
- /* @__PURE__ */ e(F, {
14102
+ /* @__PURE__ */ e(q, {
14093
14103
  variant: "default",
14094
14104
  borders: "sharp",
14095
14105
  disabled: t === c,
@@ -14101,7 +14111,7 @@ var Gr = [{
14101
14111
  }),
14102
14112
  f && C && /* @__PURE__ */ r("div", {
14103
14113
  className: "pagination__page-size",
14104
- children: [/* @__PURE__ */ e("span", { children: d }), /* @__PURE__ */ e(y0, {
14114
+ children: [/* @__PURE__ */ e("span", { children: d }), /* @__PURE__ */ e(x0, {
14105
14115
  name: "pageSize",
14106
14116
  options: C,
14107
14117
  value: i,
@@ -14129,7 +14139,7 @@ var Gr = [{
14129
14139
  }, Jr = (t, c) => c === "month" ? t.toLocaleDateString("en-US", { month: "long" }) : t.toLocaleDateString("en-US", {
14130
14140
  day: "2-digit",
14131
14141
  month: "short"
14132
- }), ec = (t, c) => c === "month" ? `${t.getFullYear()}-${t.getMonth()}` : `${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`, tc = (t) => t.getFullYear().toString(), q0 = (t, c = "day") => {
14142
+ }), ec = (t, c) => c === "month" ? `${t.getFullYear()}-${t.getMonth()}` : `${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`, tc = (t) => t.getFullYear().toString(), K0 = (t, c = "day") => {
14133
14143
  const l = /* @__PURE__ */ new Map();
14134
14144
  let a = null, s = null;
14135
14145
  return t.forEach((o, i) => {
@@ -14177,7 +14187,7 @@ var Gr = [{
14177
14187
  children: t.showYear ? t.yearLabel : t.dateLabel
14178
14188
  })
14179
14189
  }), fa = ({ items: t, renderItem: c, className: l }) => {
14180
- const a = m1(() => q0(t), [t]);
14190
+ const a = m1(() => K0(t), [t]);
14181
14191
  return /* @__PURE__ */ r("div", {
14182
14192
  className: `timeline-markers${l ? ` ${l}` : ""}`,
14183
14193
  children: [/* @__PURE__ */ e("div", { className: "timeline-markers__track" }), t.map((s, o) => {
@@ -14185,33 +14195,33 @@ var Gr = [{
14185
14195
  return i ? c(s, i) : null;
14186
14196
  })]
14187
14197
  });
14188
- }, i2 = [
14198
+ }, s2 = [
14189
14199
  15,
14190
14200
  30,
14191
14201
  50,
14192
14202
  100,
14193
14203
  250,
14194
14204
  500
14195
- ], H2 = (t) => typeof t.header == "string" ? t.header : t.key, lc = (t) => typeof t == "number" ? `${t}px` : t, S2 = (t) => /* @__PURE__ */ r("span", {
14205
+ ], R2 = (t) => typeof t.header == "string" ? t.header : t.key, lc = (t) => typeof t == "number" ? `${t}px` : t, A2 = (t) => /* @__PURE__ */ r("span", {
14196
14206
  className: "data-view__column-label",
14197
- children: [t.icon && /* @__PURE__ */ e(G, {
14207
+ children: [t.icon && /* @__PURE__ */ e(E, {
14198
14208
  className: "data-view__column-icon",
14199
14209
  name: t.icon,
14200
14210
  size: "sm",
14201
14211
  variant: "muted"
14202
14212
  }), /* @__PURE__ */ e("span", { children: t.header })]
14203
- }), B2 = (t, c) => {
14213
+ }), $2 = (t, c) => {
14204
14214
  const l = t.cellIcon?.(c), a = t.accessor ? t.accessor(c) : c[t.key];
14205
14215
  return l ? /* @__PURE__ */ r("span", {
14206
14216
  className: "data-view__cell-with-icon",
14207
- children: [/* @__PURE__ */ e(G, {
14217
+ children: [/* @__PURE__ */ e(E, {
14208
14218
  className: "data-view__cell-icon",
14209
14219
  name: l
14210
14220
  }), /* @__PURE__ */ e("span", { children: a })]
14211
14221
  }) : a;
14212
14222
  };
14213
14223
  function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o, onRowClick: i, rowHref: n, rowClassName: d, empty: h, selectable: m, selectedIds: p = [], pinnedIds: g, onToggleSelect: w, cardMaxWidth: v, isMobile: u = !1, groups: f, showGroupCount: C = !0, collapsible: x = !1, collapsedGroups: b, onToggleGroup: M }) {
14214
- const _ = c.filter((k) => !k.hideInCard && !(u && k.hideInMobile)), N = m1(() => new Set(g ?? []), [g]), L = `data-view__cards${v !== void 0 ? " data-view__cards--grid" : ""}`, y = v !== void 0 ? { "--data-view-card-max-width": lc(v) } : void 0, H = m1(() => o ? q0(t.map((k) => ({
14224
+ const _ = c.filter((k) => !k.hideInCard && !(u && k.hideInMobile)), N = m1(() => new Set(g ?? []), [g]), L = `data-view__cards${v !== void 0 ? " data-view__cards--grid" : ""}`, y = v !== void 0 ? { "--data-view-card-max-width": lc(v) } : void 0, H = m1(() => o ? K0(t.map((k) => ({
14215
14225
  id: o.idAccessor(k),
14216
14226
  date: o.dateAccessor(k)
14217
14227
  })), o.granularity) : /* @__PURE__ */ new Map(), [t, o]);
@@ -14224,14 +14234,14 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14224
14234
  secondary: h.secondary
14225
14235
  }) : /* @__PURE__ */ e(J1, { title: "No data available" });
14226
14236
  const S = (k, A) => {
14227
- const D = H.get(A), P = l(k, A), O = m && p.includes(P), s1 = N.has(P), V = n?.(k), X = `data-view__card ${i || V ? "data-view__card--clickable" : ""} ${O ? "data-view__card--selected" : ""} ${s1 ? "data-view__card--pinned" : ""} ${d?.(k) || ""}`, i1 = ($) => {
14237
+ const D = H.get(A), P = l(k, A), O = m && p.includes(P), s1 = N.has(P), V = n?.(k), X = `data-view__card ${i || V ? "data-view__card--clickable" : ""} ${O ? "data-view__card--selected" : ""} ${s1 ? "data-view__card--pinned" : ""} ${d?.(k) || ""}`, a1 = ($) => {
14228
14238
  $.metaKey || $.ctrlKey || $.shiftKey || $.altKey || $.button !== 0 || i && ($.preventDefault(), i(k, $));
14229
14239
  }, I = /* @__PURE__ */ r(l1, { children: [
14230
14240
  s1 && /* @__PURE__ */ e(K, {
14231
14241
  title: "Pinned",
14232
14242
  children: /* @__PURE__ */ e("span", {
14233
14243
  className: "data-view__card-pin",
14234
- children: /* @__PURE__ */ e(G, {
14244
+ children: /* @__PURE__ */ e(E, {
14235
14245
  name: "pin",
14236
14246
  size: "sm"
14237
14247
  })
@@ -14240,7 +14250,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14240
14250
  m && w && /* @__PURE__ */ e("div", {
14241
14251
  className: "data-view__card-select",
14242
14252
  onClick: ($) => $.stopPropagation(),
14243
- children: /* @__PURE__ */ e(s0, {
14253
+ children: /* @__PURE__ */ e(d0, {
14244
14254
  checked: O || !1,
14245
14255
  onChange: ($) => w(P, $)
14246
14256
  })
@@ -14257,7 +14267,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14257
14267
  className: "data-view__card-title-row",
14258
14268
  children: [/* @__PURE__ */ r("div", {
14259
14269
  className: "data-view__card-title-line",
14260
- children: [$ && /* @__PURE__ */ e(G, {
14270
+ children: [$ && /* @__PURE__ */ e(E, {
14261
14271
  className: "data-view__card-icon",
14262
14272
  name: $
14263
14273
  }), /* @__PURE__ */ e("span", {
@@ -14280,10 +14290,10 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14280
14290
  className: "data-view__card-field",
14281
14291
  children: [/* @__PURE__ */ e("span", {
14282
14292
  className: "data-view__card-label",
14283
- children: S2($)
14293
+ children: A2($)
14284
14294
  }), /* @__PURE__ */ e("span", {
14285
14295
  className: "data-view__card-value",
14286
- children: B2($, k)
14296
+ children: $2($, k)
14287
14297
  })]
14288
14298
  }, $.key))
14289
14299
  }),
@@ -14296,7 +14306,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14296
14306
  return /* @__PURE__ */ r(E1.Fragment, { children: [D && /* @__PURE__ */ e(cc, { marker: D }), V ? /* @__PURE__ */ e("a", {
14297
14307
  className: X,
14298
14308
  href: V,
14299
- onClick: i1,
14309
+ onClick: a1,
14300
14310
  children: I
14301
14311
  }) : /* @__PURE__ */ e("div", {
14302
14312
  className: X,
@@ -14326,7 +14336,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14326
14336
  className: "data-view__group-count",
14327
14337
  children: A.totalCount
14328
14338
  }),
14329
- x && /* @__PURE__ */ e(G, {
14339
+ x && /* @__PURE__ */ e(E, {
14330
14340
  className: "data-view__group-chevron",
14331
14341
  name: P ? "caret-down" : "caret-up",
14332
14342
  size: "sm"
@@ -14358,7 +14368,7 @@ function ic({ config: t }) {
14358
14368
  };
14359
14369
  return /* @__PURE__ */ r("div", {
14360
14370
  className: "data-view__column-selector",
14361
- children: [/* @__PURE__ */ e(F, {
14371
+ children: [/* @__PURE__ */ e(q, {
14362
14372
  ref: o,
14363
14373
  variant: "ghost",
14364
14374
  size: "small",
@@ -14366,12 +14376,12 @@ function ic({ config: t }) {
14366
14376
  onClick: () => n((h) => !h),
14367
14377
  children: /* @__PURE__ */ r("span", {
14368
14378
  className: "data-view__column-selector-label",
14369
- children: [s, /* @__PURE__ */ e(G, {
14379
+ children: [s, /* @__PURE__ */ e(E, {
14370
14380
  name: "caret-down",
14371
14381
  size: "sm"
14372
14382
  })]
14373
14383
  })
14374
- }), /* @__PURE__ */ e(L2, {
14384
+ }), /* @__PURE__ */ e(N2, {
14375
14385
  visible: i,
14376
14386
  onClose: () => n(!1),
14377
14387
  anchorEl: o.current,
@@ -14380,7 +14390,7 @@ function ic({ config: t }) {
14380
14390
  className: "data-view__column-selector-list",
14381
14391
  children: c.map((h) => /* @__PURE__ */ r("label", {
14382
14392
  className: "data-view__column-selector-item",
14383
- children: [/* @__PURE__ */ e(s0, {
14393
+ children: [/* @__PURE__ */ e(d0, {
14384
14394
  checked: l.includes(h.key),
14385
14395
  onChange: (m) => d(h.key, m)
14386
14396
  }), /* @__PURE__ */ e("span", { children: h.label })]
@@ -14399,10 +14409,10 @@ var nc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
14399
14409
  const h = n.direction ?? "asc", m = o ? c === n.value : c === n.value && l === h;
14400
14410
  return /* @__PURE__ */ e(K, {
14401
14411
  title: `Sort by ${typeof n.label == "string" || typeof n.label == "number" ? String(n.label) : n.value}${o ? "" : ` ${h === "asc" ? "ascending" : "descending"}`}`,
14402
- children: /* @__PURE__ */ e(F, {
14412
+ children: /* @__PURE__ */ e(q, {
14403
14413
  className: `mini-sort__button${m ? " is-active" : ""}`,
14404
14414
  disabled: n.disabled,
14405
- icon: n.icon ? /* @__PURE__ */ e(G, {
14415
+ icon: n.icon ? /* @__PURE__ */ e(E, {
14406
14416
  className: "mini-sort__icon",
14407
14417
  name: n.icon,
14408
14418
  size: "sm",
@@ -14416,10 +14426,10 @@ var nc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
14416
14426
  }, `${n.value}-${d}`);
14417
14427
  }), o && /* @__PURE__ */ e(K, {
14418
14428
  title: `Direction: ${l === "asc" ? "ascending" : "descending"}`,
14419
- children: /* @__PURE__ */ e(F, {
14429
+ children: /* @__PURE__ */ e(q, {
14420
14430
  className: "mini-sort__button mini-sort__direction",
14421
14431
  disabled: c === null,
14422
- icon: /* @__PURE__ */ e(G, {
14432
+ icon: /* @__PURE__ */ e(E, {
14423
14433
  className: "mini-sort__icon",
14424
14434
  name: l === "asc" ? "arrow-up" : "arrow-down",
14425
14435
  size: "sm",
@@ -14438,7 +14448,7 @@ function oc({ columns: t, config: c, sortDirection: l, sortKey: a, onSort: s })
14438
14448
  const n = t.find((d) => d.key === i.column);
14439
14449
  return {
14440
14450
  value: i.column,
14441
- label: i.label ?? (n ? H2(n) : i.column),
14451
+ label: i.label ?? (n ? R2(n) : i.column),
14442
14452
  icon: i.icon ?? n?.icon,
14443
14453
  direction: i.direction ?? "asc",
14444
14454
  disabled: !n
@@ -14453,11 +14463,11 @@ function oc({ columns: t, config: c, sortDirection: l, sortKey: a, onSort: s })
14453
14463
  function sc({ state: t }) {
14454
14464
  return /* @__PURE__ */ e("span", {
14455
14465
  className: `data-view__sort-icon data-view__sort-icon--${t}`,
14456
- children: /* @__PURE__ */ e(G, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
14466
+ children: /* @__PURE__ */ e(E, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
14457
14467
  });
14458
14468
  }
14459
- function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = i2, initialPageSize: d = i2[1], showPageSize: h = !0, card: m, actions: p, actionsWidth: g, timeline: w, onRowClick: v, rowHref: u, rowClassName: f, rowDetail: C, empty: x, initialSortKey: b = null, initialSortDirection: M = "asc", sortKey: _, sortDirection: N, onSortChange: L, miniSort: y, showCardSortControls: H = !0, desktopView: S = "table", cardMaxWidth: k, className: A, onPageChange: D, onPageSizeChange: P, currentPage: O, totalItems: s1, group: V, showResultsCount: X = !0, totalCount: i1, itemNoun: I, columnSelector: $ }) {
14460
- const { isMobile: p1 } = h0(), [h1, W] = z(b), [o1, v1] = z(M), [y1, k1] = z([]), g1 = i ?? y1, [$1, Q] = z(1), r1 = O ?? $1, [B, Z] = z(d), [J, n1] = z(() => t.reduce((R, e1) => (e1.width && (R[e1.key] = e1.width), R), {})), [b1, f1] = z(/* @__PURE__ */ new Set()), B1 = (R) => {
14469
+ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = s2, initialPageSize: d = s2[1], showPageSize: h = !0, card: m, actions: p, actionsWidth: g, timeline: w, onRowClick: v, rowHref: u, rowClassName: f, rowDetail: C, empty: x, initialSortKey: b = null, initialSortDirection: M = "asc", sortKey: _, sortDirection: N, onSortChange: L, miniSort: y, showCardSortControls: H = !0, desktopView: S = "table", cardMaxWidth: k, className: A, onPageChange: D, onPageSizeChange: P, currentPage: O, totalItems: s1, group: V, showResultsCount: X = !0, totalCount: a1, itemNoun: I, columnSelector: $ }) {
14470
+ const { isMobile: p1 } = m0(), [h1, W] = z(b), [o1, v1] = z(M), [y1, k1] = z([]), g1 = i ?? y1, [$1, Q] = z(1), r1 = O ?? $1, [B, Z] = z(d), [J, n1] = z(() => t.reduce((R, e1) => (e1.width && (R[e1.key] = e1.width), R), {})), [b1, f1] = z(/* @__PURE__ */ new Set()), B1 = (R) => {
14461
14471
  f1((e1) => {
14462
14472
  const d1 = new Set(e1);
14463
14473
  return d1.has(R) ? d1.delete(R) : d1.add(R), d1;
@@ -14472,13 +14482,13 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14472
14482
  }, t0 = m1(() => new Set(a ?? []), [a]), C1 = m1(() => {
14473
14483
  let R = c;
14474
14484
  if (_1) {
14475
- const t1 = t.find((a1) => a1.key === _1);
14485
+ const t1 = t.find((i1) => i1.key === _1);
14476
14486
  if (t1) {
14477
- const a1 = t1.sortAccessor || t1.accessor || ((N1) => {
14487
+ const i1 = t1.sortAccessor || t1.accessor || ((N1) => {
14478
14488
  const z1 = N1[t1.key];
14479
14489
  return typeof z1 == "string" || typeof z1 == "number" ? z1 : "";
14480
14490
  }), u1 = [...c].sort((N1, z1) => {
14481
- const R1 = a1(N1), x1 = a1(z1);
14491
+ const R1 = i1(N1), x1 = i1(z1);
14482
14492
  return typeof R1 == "number" && typeof x1 == "number" ? R1 - x1 : String(R1).localeCompare(String(x1));
14483
14493
  });
14484
14494
  R = L1 === "asc" ? u1 : u1.reverse();
@@ -14486,11 +14496,11 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14486
14496
  }
14487
14497
  if (t0.size === 0) return R;
14488
14498
  const e1 = [], d1 = [];
14489
- if (R.forEach((t1, a1) => {
14490
- t0.has(D1(t1, a1)) ? e1.push(t1) : d1.push(t1);
14499
+ if (R.forEach((t1, i1) => {
14500
+ t0.has(D1(t1, i1)) ? e1.push(t1) : d1.push(t1);
14491
14501
  }), a && a.length > 1 && e1.length > 1) {
14492
- const t1 = new Map(a.map((a1, u1) => [a1, u1]));
14493
- e1.sort((a1, u1) => (t1.get(D1(a1, 0)) ?? 0) - (t1.get(D1(u1, 0)) ?? 0));
14502
+ const t1 = new Map(a.map((i1, u1) => [i1, u1]));
14503
+ e1.sort((i1, u1) => (t1.get(D1(i1, 0)) ?? 0) - (t1.get(D1(u1, 0)) ?? 0));
14494
14504
  }
14495
14505
  return [...e1, ...d1];
14496
14506
  }, [
@@ -14500,7 +14510,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14500
14510
  _1,
14501
14511
  t0,
14502
14512
  a
14503
- ]), I1 = s1 !== void 0, X1 = I1 ? s1 : C1.length, r0 = Math.max(1, Math.ceil(X1 / B)), Z1 = Math.min(r1, r0), E = I1 ? C1 : C1.slice((Z1 - 1) * B, Z1 * B), T = X ? Ur(B, X1, i1 ?? X1, Z1, I) : null, q = m1(() => {
14513
+ ]), I1 = s1 !== void 0, X1 = I1 ? s1 : C1.length, r0 = Math.max(1, Math.ceil(X1 / B)), Z1 = Math.min(r1, r0), T = I1 ? C1 : C1.slice((Z1 - 1) * B, Z1 * B), G = X ? Ur(B, X1, a1 ?? X1, Z1, I) : null, U = m1(() => {
14504
14514
  if (!V) return null;
14505
14515
  const R = /* @__PURE__ */ new Map();
14506
14516
  return C1.forEach((e1) => {
@@ -14508,65 +14518,65 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14508
14518
  R.set(d1, (R.get(d1) ?? 0) + 1);
14509
14519
  }), R;
14510
14520
  }, [V, C1]), c1 = m1(() => {
14511
- if (!V || !q) return null;
14521
+ if (!V || !U) return null;
14512
14522
  const R = /* @__PURE__ */ new Map(), e1 = [];
14513
- E.forEach((t1) => {
14514
- const a1 = V.groupBy(t1), u1 = R.get(a1);
14515
- u1 ? u1.push(t1) : (R.set(a1, [t1]), e1.push(a1));
14523
+ T.forEach((t1) => {
14524
+ const i1 = V.groupBy(t1), u1 = R.get(i1);
14525
+ u1 ? u1.push(t1) : (R.set(i1, [t1]), e1.push(i1));
14516
14526
  });
14517
14527
  const d1 = e1.map((t1) => ({
14518
14528
  key: t1,
14519
14529
  label: V.groupLabel(t1),
14520
14530
  items: R.get(t1),
14521
- totalCount: q.get(t1) ?? 0
14531
+ totalCount: U.get(t1) ?? 0
14522
14532
  }));
14523
- return V.sortGroups ? d1.sort(V.sortGroups) : d1.sort((t1, a1) => t1.key === null ? 1 : a1.key === null ? -1 : 0), d1;
14533
+ return V.sortGroups ? d1.sort(V.sortGroups) : d1.sort((t1, i1) => t1.key === null ? 1 : i1.key === null ? -1 : 0), d1;
14524
14534
  }, [
14525
14535
  V,
14526
- q,
14527
- E
14528
- ]), K1 = m1(() => w ? q0(E.map((R) => ({
14536
+ U,
14537
+ T
14538
+ ]), K1 = m1(() => w ? K0(T.map((R) => ({
14529
14539
  id: w.idAccessor(R),
14530
14540
  date: w.dateAccessor(R)
14531
- })), w.granularity) : /* @__PURE__ */ new Map(), [E, w]), j1 = (R) => {
14541
+ })), w.granularity) : /* @__PURE__ */ new Map(), [T, w]), j1 = (R) => {
14532
14542
  i === void 0 && k1(R), o?.(c.filter((e1, d1) => R.includes(D1(e1, d1))));
14533
- }, b0 = (R) => {
14543
+ }, M0 = (R) => {
14534
14544
  R.sortable && (_1 === R.key ? T1(R.key, L1 === "asc" ? "desc" : "asc") : T1(R.key, "asc"));
14535
- }, U2 = (R, e1) => {
14545
+ }, B0 = (R, e1) => {
14536
14546
  R.preventDefault();
14537
- const d1 = R.clientX, t1 = J[e1] ?? 150, a1 = (N1) => {
14547
+ const d1 = R.clientX, t1 = J[e1] ?? 150, i1 = (N1) => {
14538
14548
  const z1 = N1.clientX - d1, R1 = t.find((x1) => x1.key === e1)?.minWidth ?? 120;
14539
14549
  n1((x1) => ({
14540
14550
  ...x1,
14541
14551
  [e1]: Math.max(R1, t1 + z1)
14542
14552
  }));
14543
14553
  }, u1 = () => {
14544
- window.removeEventListener("mousemove", a1), window.removeEventListener("mouseup", u1);
14554
+ window.removeEventListener("mousemove", i1), window.removeEventListener("mouseup", u1);
14545
14555
  };
14546
- window.addEventListener("mousemove", a1), window.addEventListener("mouseup", u1);
14547
- }, O0 = t.some((R) => R.filter), N0 = t.filter((R) => R.sortable), F2 = N0.map((R) => ({
14548
- label: H2(R),
14556
+ window.addEventListener("mousemove", i1), window.addEventListener("mouseup", u1);
14557
+ }, c0 = t.some((R) => R.filter), l0 = t.filter((R) => R.sortable), k0 = l0.map((R) => ({
14558
+ label: R2(R),
14549
14559
  value: R.key
14550
- })), q2 = N0.length > 0, H0 = _1 ? N0.find((R) => R.key === _1) : void 0, O2 = y?.align ?? "left", Y0 = (y?.columns ?? y?.column ?? []).length > 0 ? /* @__PURE__ */ e(oc, {
14560
+ })), R0 = l0.length > 0, A0 = _1 ? l0.find((R) => R.key === _1) : void 0, O2 = y?.align ?? "left", Q0 = (y?.columns ?? y?.column ?? []).length > 0 ? /* @__PURE__ */ e(oc, {
14551
14561
  columns: t,
14552
14562
  config: y,
14553
14563
  sortKey: _1,
14554
14564
  sortDirection: L1,
14555
14565
  onSort: T1
14556
- }) : null, X0 = $ && $.options.length > 0 ? /* @__PURE__ */ e(ic, { config: $ }) : null, S0 = T || Y0 || X0 ? /* @__PURE__ */ r("div", {
14566
+ }) : null, J0 = $ && $.options.length > 0 ? /* @__PURE__ */ e(ic, { config: $ }) : null, $0 = G || Q0 || J0 ? /* @__PURE__ */ r("div", {
14557
14567
  className: `data-view__top-row data-view__top-row--mini-${O2}`,
14558
14568
  children: [
14559
- T && /* @__PURE__ */ e("div", {
14569
+ G && /* @__PURE__ */ e("div", {
14560
14570
  className: "data-view__results-count",
14561
- children: T
14571
+ children: G
14562
14572
  }),
14563
- Y0,
14564
- X0
14573
+ Q0,
14574
+ J0
14565
14575
  ]
14566
14576
  }) : null;
14567
14577
  if (S !== "cards" && t.length === 0) return /* @__PURE__ */ r("div", {
14568
14578
  className: `data-view${A ? ` ${A}` : ""}`,
14569
- children: [S0, /* @__PURE__ */ e("div", {
14579
+ children: [$0, /* @__PURE__ */ e("div", {
14570
14580
  className: "data-view__wrapper data-view__wrapper--empty",
14571
14581
  children: /* @__PURE__ */ e(J1, {
14572
14582
  title: "No columns selected",
@@ -14577,15 +14587,15 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14577
14587
  if (S === "cards") return /* @__PURE__ */ r("div", {
14578
14588
  className: `data-view data-view--cards${A ? ` ${A}` : ""}`,
14579
14589
  children: [
14580
- S0,
14581
- H && q2 && /* @__PURE__ */ r("div", {
14590
+ $0,
14591
+ H && R0 && /* @__PURE__ */ r("div", {
14582
14592
  className: "data-view__card-sort-bar",
14583
14593
  children: [/* @__PURE__ */ e("div", {
14584
14594
  className: "data-view__card-sort-field",
14585
- children: /* @__PURE__ */ e(y0, {
14595
+ children: /* @__PURE__ */ e(x0, {
14586
14596
  name: "data-view-card-sort",
14587
14597
  label: "Sort by",
14588
- options: F2,
14598
+ options: k0,
14589
14599
  value: _1,
14590
14600
  placeholder: "Sort by...",
14591
14601
  searchable: !1,
@@ -14601,18 +14611,18 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14601
14611
  })
14602
14612
  }), /* @__PURE__ */ e(K, {
14603
14613
  title: L1 === "asc" ? "Sort descending" : "Sort ascending",
14604
- children: /* @__PURE__ */ e(F, {
14614
+ children: /* @__PURE__ */ e(q, {
14605
14615
  className: "data-view__card-sort-direction",
14606
- disabled: !H0,
14616
+ disabled: !A0,
14607
14617
  onClick: () => {
14608
- H0 && T1(H0.key, L1 === "asc" ? "desc" : "asc");
14618
+ A0 && T1(A0.key, L1 === "asc" ? "desc" : "asc");
14609
14619
  },
14610
14620
  variant: "ghost",
14611
- children: /* @__PURE__ */ e(G, { name: L1 === "asc" ? "arrow-up" : "arrow-down" })
14621
+ children: /* @__PURE__ */ e(E, { name: L1 === "asc" ? "arrow-up" : "arrow-down" })
14612
14622
  })
14613
14623
  })]
14614
14624
  }),
14615
- O0 && /* @__PURE__ */ e("div", {
14625
+ c0 && /* @__PURE__ */ e("div", {
14616
14626
  className: "data-view__filter-bar",
14617
14627
  children: t.filter((R) => R.filter).map((R) => /* @__PURE__ */ e("div", {
14618
14628
  className: "data-view__filter-bar-item",
@@ -14620,7 +14630,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14620
14630
  }, R.key))
14621
14631
  }),
14622
14632
  /* @__PURE__ */ e(ac, {
14623
- data: E,
14633
+ data: T,
14624
14634
  columns: t,
14625
14635
  rowKey: D1,
14626
14636
  card: m,
@@ -14644,7 +14654,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14644
14654
  j1(e1 ? [...g1, R] : g1.filter((d1) => d1 !== R));
14645
14655
  }
14646
14656
  }),
14647
- /* @__PURE__ */ e(a2, {
14657
+ /* @__PURE__ */ e(o2, {
14648
14658
  currentPage: Z1,
14649
14659
  totalPages: r0,
14650
14660
  totalItems: X1,
@@ -14657,15 +14667,15 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14657
14667
  })
14658
14668
  ]
14659
14669
  });
14660
- const d0 = t.filter((R) => !R.hideInTable), Y2 = s && g1.length > 0 && g1.length === c.length, X2 = s && g1.length > 0 && g1.length < c.length, c0 = w && K1.size > 0, K0 = /* @__PURE__ */ r(l1, { children: [
14661
- S0,
14670
+ const p0 = t.filter((R) => !R.hideInTable), Y2 = s && g1.length > 0 && g1.length === c.length, X2 = s && g1.length > 0 && g1.length < c.length, a0 = w && K1.size > 0, e2 = /* @__PURE__ */ r(l1, { children: [
14671
+ $0,
14662
14672
  /* @__PURE__ */ e("div", {
14663
14673
  className: "data-view__wrapper",
14664
14674
  children: /* @__PURE__ */ r("table", { children: [/* @__PURE__ */ r("thead", { children: [/* @__PURE__ */ r("tr", { children: [
14665
- c0 && /* @__PURE__ */ e("th", { className: "data-view__timeline-cell" }),
14675
+ a0 && /* @__PURE__ */ e("th", { className: "data-view__timeline-cell" }),
14666
14676
  s && /* @__PURE__ */ e("th", {
14667
14677
  className: "data-view__checkbox",
14668
- children: /* @__PURE__ */ e(s0, {
14678
+ children: /* @__PURE__ */ e(d0, {
14669
14679
  checked: Y2,
14670
14680
  indeterminate: X2,
14671
14681
  onChange: (R) => {
@@ -14673,18 +14683,18 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14673
14683
  }
14674
14684
  })
14675
14685
  }),
14676
- d0.map((R) => {
14686
+ p0.map((R) => {
14677
14687
  const e1 = {};
14678
14688
  return J[R.key] && (e1.width = J[R.key]), R.minWidth && (e1.minWidth = R.minWidth), /* @__PURE__ */ r("th", {
14679
14689
  style: Object.keys(e1).length > 0 ? e1 : void 0,
14680
14690
  className: R.sortable ? "is-sortable" : "",
14681
- onClick: () => b0(R),
14691
+ onClick: () => M0(R),
14682
14692
  children: [/* @__PURE__ */ r("span", {
14683
14693
  className: "data-view__th-content",
14684
- children: [S2(R), R.sortable && /* @__PURE__ */ e(sc, { state: _1 === R.key ? L1 : "unsorted" })]
14694
+ children: [A2(R), R.sortable && /* @__PURE__ */ e(sc, { state: _1 === R.key ? L1 : "unsorted" })]
14685
14695
  }), /* @__PURE__ */ e("span", {
14686
14696
  className: "data-view__resizer",
14687
- onMouseDown: (d1) => U2(d1, R.key),
14697
+ onMouseDown: (d1) => B0(d1, R.key),
14688
14698
  onClick: (d1) => d1.stopPropagation()
14689
14699
  })]
14690
14700
  }, R.key);
@@ -14694,12 +14704,12 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14694
14704
  style: g ? { width: g } : void 0,
14695
14705
  children: "Actions"
14696
14706
  })
14697
- ] }), O0 && /* @__PURE__ */ r("tr", {
14707
+ ] }), c0 && /* @__PURE__ */ r("tr", {
14698
14708
  className: "data-view__filter-row",
14699
14709
  children: [
14700
- c0 && /* @__PURE__ */ e("td", { className: "data-view__filter-cell data-view__filter-cell--spacer" }),
14710
+ a0 && /* @__PURE__ */ e("td", { className: "data-view__filter-cell data-view__filter-cell--spacer" }),
14701
14711
  s && /* @__PURE__ */ e("td", { className: "data-view__filter-cell data-view__filter-cell--spacer" }),
14702
- d0.map((R) => /* @__PURE__ */ e("td", {
14712
+ p0.map((R) => /* @__PURE__ */ e("td", {
14703
14713
  className: "data-view__filter-cell",
14704
14714
  style: J[R.key] ? { width: J[R.key] } : void 0,
14705
14715
  children: R.filter ?? null
@@ -14707,8 +14717,8 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14707
14717
  p && /* @__PURE__ */ e("td", { className: "data-view__filter-cell data-view__filter-cell--spacer" })
14708
14718
  ]
14709
14719
  })] }), /* @__PURE__ */ e("tbody", { children: (() => {
14710
- if (E.length === 0) return /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", {
14711
- colSpan: d0.length + (c0 ? 1 : 0) + (s ? 1 : 0) + (p ? 1 : 0),
14720
+ if (T.length === 0) return /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", {
14721
+ colSpan: p0.length + (a0 ? 1 : 0) + (s ? 1 : 0) + (p ? 1 : 0),
14712
14722
  className: "data-view__empty",
14713
14723
  children: x ? /* @__PURE__ */ e(J1, {
14714
14724
  title: x.title,
@@ -14718,8 +14728,8 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14718
14728
  secondary: x.secondary
14719
14729
  }) : /* @__PURE__ */ e(J1, { title: "No data available" })
14720
14730
  }) });
14721
- const R = d0.length + (c0 ? 1 : 0) + (s ? 1 : 0) + (p ? 1 : 0), e1 = V?.showCount !== !1, d1 = (t1, a1) => {
14722
- const u1 = D1(t1, a1), N1 = g1.includes(u1), z1 = t0.has(u1), R1 = K1.get(a1), x1 = u?.(t1), Q0 = !!v || !!x1, K2 = (w1) => {
14731
+ const R = p0.length + (a0 ? 1 : 0) + (s ? 1 : 0) + (p ? 1 : 0), e1 = V?.showCount !== !1, d1 = (t1, i1) => {
14732
+ const u1 = D1(t1, i1), N1 = g1.includes(u1), z1 = t0.has(u1), R1 = K1.get(i1), x1 = u?.(t1), t2 = !!v || !!x1, K2 = (w1) => {
14723
14733
  if (x1 && (w1.metaKey || w1.ctrlKey || w1.shiftKey)) {
14724
14734
  window.open(x1, "_blank", "noopener,noreferrer");
14725
14735
  return;
@@ -14727,35 +14737,35 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14727
14737
  v?.(t1, w1);
14728
14738
  }, Q2 = (w1) => {
14729
14739
  w1.button !== 1 || !x1 || (w1.preventDefault(), window.open(x1, "_blank", "noopener,noreferrer"));
14730
- }, B0 = C?.(t1);
14740
+ }, D0 = C?.(t1);
14731
14741
  return /* @__PURE__ */ r(E1.Fragment, { children: [/* @__PURE__ */ r("tr", {
14732
- className: `${N1 ? "is-selected" : ""} ${Q0 ? "data-view__row--clickable" : ""} ${z1 ? "data-view__row--pinned" : ""} ${f?.(t1) || ""}`,
14733
- onClick: Q0 ? K2 : void 0,
14742
+ className: `${N1 ? "is-selected" : ""} ${t2 ? "data-view__row--clickable" : ""} ${z1 ? "data-view__row--pinned" : ""} ${f?.(t1) || ""}`,
14743
+ onClick: t2 ? K2 : void 0,
14734
14744
  onAuxClick: x1 ? Q2 : void 0,
14735
14745
  children: [
14736
- c0 && /* @__PURE__ */ e("td", {
14746
+ a0 && /* @__PURE__ */ e("td", {
14737
14747
  className: "data-view__timeline-cell",
14738
14748
  children: R1 && /* @__PURE__ */ e(rc, { marker: R1 })
14739
14749
  }),
14740
14750
  s && /* @__PURE__ */ e("td", {
14741
14751
  className: "data-view__checkbox",
14742
- children: /* @__PURE__ */ e(s0, {
14752
+ children: /* @__PURE__ */ e(d0, {
14743
14753
  checked: N1,
14744
14754
  onChange: (w1) => {
14745
- j1(w1 ? [...g1, u1] : g1.filter((R0) => R0 !== u1));
14755
+ j1(w1 ? [...g1, u1] : g1.filter((T0) => T0 !== u1));
14746
14756
  }
14747
14757
  })
14748
14758
  }),
14749
- d0.map((w1, R0) => /* @__PURE__ */ r("td", {
14759
+ p0.map((w1, T0) => /* @__PURE__ */ r("td", {
14750
14760
  style: J[w1.key] ? { width: J[w1.key] } : void 0,
14751
- children: [R0 === 0 && z1 && /* @__PURE__ */ e(K, {
14761
+ children: [T0 === 0 && z1 && /* @__PURE__ */ e(K, {
14752
14762
  title: "Pinned",
14753
- children: /* @__PURE__ */ e(G, {
14763
+ children: /* @__PURE__ */ e(E, {
14754
14764
  className: "data-view__pin-indicator",
14755
14765
  name: "pin",
14756
14766
  size: "sm"
14757
14767
  })
14758
- }), B2(w1, t1)]
14768
+ }), $2(w1, t1)]
14759
14769
  }, w1.key)),
14760
14770
  p && /* @__PURE__ */ e("td", {
14761
14771
  className: "data-view__actions-cell",
@@ -14767,50 +14777,50 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14767
14777
  })
14768
14778
  })
14769
14779
  ]
14770
- }), B0 != null && B0 !== !1 && /* @__PURE__ */ e("tr", {
14780
+ }), D0 != null && D0 !== !1 && /* @__PURE__ */ e("tr", {
14771
14781
  className: "data-view__row-detail",
14772
14782
  children: /* @__PURE__ */ e("td", {
14773
14783
  colSpan: R,
14774
14784
  onClick: (w1) => w1.stopPropagation(),
14775
- children: B0
14785
+ children: D0
14776
14786
  })
14777
14787
  })] }, u1);
14778
14788
  };
14779
14789
  if (c1) {
14780
14790
  let t1 = 0;
14781
- return c1.map((a1) => {
14791
+ return c1.map((i1) => {
14782
14792
  const u1 = t1;
14783
- t1 += a1.items.length;
14784
- const N1 = V?.collapsible && b1.has(a1.key);
14793
+ t1 += i1.items.length;
14794
+ const N1 = V?.collapsible && b1.has(i1.key);
14785
14795
  return /* @__PURE__ */ r(E1.Fragment, { children: [/* @__PURE__ */ e("tr", {
14786
14796
  className: `data-view__group-row${V?.collapsible ? " data-view__group-row--collapsible" : ""}`,
14787
- onClick: V?.collapsible ? () => B1(a1.key) : void 0,
14797
+ onClick: V?.collapsible ? () => B1(i1.key) : void 0,
14788
14798
  children: /* @__PURE__ */ r("td", {
14789
14799
  colSpan: R,
14790
14800
  className: "data-view__group-cell",
14791
14801
  children: [
14792
14802
  /* @__PURE__ */ e("span", {
14793
14803
  className: "data-view__group-label",
14794
- children: a1.label
14804
+ children: i1.label
14795
14805
  }),
14796
14806
  e1 && /* @__PURE__ */ e("span", {
14797
14807
  className: "data-view__group-count",
14798
- children: a1.totalCount
14808
+ children: i1.totalCount
14799
14809
  }),
14800
- V?.collapsible && /* @__PURE__ */ e(G, {
14810
+ V?.collapsible && /* @__PURE__ */ e(E, {
14801
14811
  className: "data-view__group-chevron",
14802
14812
  name: N1 ? "caret-down" : "caret-up",
14803
14813
  size: "sm"
14804
14814
  })
14805
14815
  ]
14806
14816
  })
14807
- }), !N1 && a1.items.map((z1, R1) => d1(z1, u1 + R1))] }, a1.key ?? "__null__");
14817
+ }), !N1 && i1.items.map((z1, R1) => d1(z1, u1 + R1))] }, i1.key ?? "__null__");
14808
14818
  });
14809
14819
  }
14810
- return E.map((t1, a1) => d1(t1, a1));
14820
+ return T.map((t1, i1) => d1(t1, i1));
14811
14821
  })() })] })
14812
14822
  }),
14813
- /* @__PURE__ */ e(a2, {
14823
+ /* @__PURE__ */ e(o2, {
14814
14824
  currentPage: Z1,
14815
14825
  totalPages: r0,
14816
14826
  totalItems: C1.length,
@@ -14824,10 +14834,10 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14824
14834
  ] });
14825
14835
  return /* @__PURE__ */ e("div", {
14826
14836
  className: `data-view${A ? ` ${A}` : ""}`,
14827
- children: c0 ? /* @__PURE__ */ r("div", {
14837
+ children: a0 ? /* @__PURE__ */ r("div", {
14828
14838
  className: "timeline-markers",
14829
- children: [/* @__PURE__ */ e("div", { className: "timeline-markers__track" }), K0]
14830
- }) : K0
14839
+ children: [/* @__PURE__ */ e("div", { className: "timeline-markers__track" }), e2]
14840
+ }) : e2
14831
14841
  });
14832
14842
  }
14833
14843
  var Q1 = (t) => {
@@ -14835,7 +14845,7 @@ var Q1 = (t) => {
14835
14845
  const [c, l, a] = t.split("-").map((s) => Number(s));
14836
14846
  if (!(!c || !l || !a))
14837
14847
  return new Date(c, l - 1, a);
14838
- }, x0 = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, ya = ({ label: t, value: c, onChange: l, min: a, max: s, alwaysOpen: o = !1, autoClose: i = !0, presets: n }) => {
14848
+ }, _0 = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, ya = ({ label: t, value: c, onChange: l, min: a, max: s, alwaysOpen: o = !1, autoClose: i = !0, presets: n }) => {
14839
14849
  const [d, h] = z({}), [m, p] = z(() => /* @__PURE__ */ new Date()), [g, w] = z(null), [v, u] = z(o), [f, C] = z({
14840
14850
  position: "fixed",
14841
14851
  visibility: "hidden"
@@ -14846,8 +14856,8 @@ var Q1 = (t) => {
14846
14856
  c || h(W), l?.(W);
14847
14857
  }, D = (W) => {
14848
14858
  W && typeof W == "object" && "start" in W && (A({
14849
- start: x0(W.start),
14850
- end: x0(W.end)
14859
+ start: _0(W.start),
14860
+ end: _0(W.end)
14851
14861
  }), w(null), !o && i && u(!1));
14852
14862
  }, P = (W) => {
14853
14863
  w(W);
@@ -14864,16 +14874,16 @@ var Q1 = (t) => {
14864
14874
  }, X = (W) => {
14865
14875
  const o1 = /* @__PURE__ */ new Date(), v1 = /* @__PURE__ */ new Date();
14866
14876
  v1.setDate(v1.getDate() - W), A({
14867
- start: x0(v1),
14868
- end: x0(o1)
14877
+ start: _0(v1),
14878
+ end: _0(o1)
14869
14879
  });
14870
14880
  };
14871
- U(() => {
14881
+ F(() => {
14872
14882
  b(y.start ?? "");
14873
- }, [y.start]), U(() => {
14883
+ }, [y.start]), F(() => {
14874
14884
  _(y.end ?? "");
14875
14885
  }, [y.end]);
14876
- const i1 = m1(() => u0(m, 1), [m]), I = o || v, $ = !o && v, p1 = j(() => {
14886
+ const a1 = m1(() => f0(m, 1), [m]), I = o || v, $ = !o && v, p1 = j(() => {
14877
14887
  if (!$ || !N.current || !L.current) return;
14878
14888
  const W = N.current.getBoundingClientRect(), o1 = L.current.getBoundingClientRect(), v1 = 16, y1 = 8, k1 = window.innerHeight - W.bottom - v1, g1 = W.top - v1, $1 = k1 < o1.height && g1 > o1.height ? W.top - o1.height - y1 : W.bottom + y1, Q = Math.max(v1, Math.min($1, window.innerHeight - o1.height - v1)), r1 = W.left, B = Math.max(v1, Math.min(r1, window.innerWidth - o1.width - v1));
14879
14889
  C({
@@ -14883,9 +14893,9 @@ var Q1 = (t) => {
14883
14893
  zIndex: 1e3
14884
14894
  });
14885
14895
  }, [$]);
14886
- U(() => {
14896
+ F(() => {
14887
14897
  o && u(!0);
14888
- }, [o]), U(() => {
14898
+ }, [o]), F(() => {
14889
14899
  if (!$) {
14890
14900
  C({
14891
14901
  position: "fixed",
@@ -14897,7 +14907,7 @@ var Q1 = (t) => {
14897
14907
  return window.addEventListener("resize", p1), window.addEventListener("scroll", p1, !0), () => {
14898
14908
  cancelAnimationFrame(W), window.removeEventListener("resize", p1), window.removeEventListener("scroll", p1, !0);
14899
14909
  };
14900
- }, [$, p1]), U(() => {
14910
+ }, [$, p1]), F(() => {
14901
14911
  if (!$) return;
14902
14912
  const W = (v1) => {
14903
14913
  const y1 = v1.target;
@@ -14914,10 +14924,10 @@ var Q1 = (t) => {
14914
14924
  children: [/* @__PURE__ */ r("div", {
14915
14925
  className: "date-range-picker__nav",
14916
14926
  children: [
14917
- /* @__PURE__ */ e(F, {
14927
+ /* @__PURE__ */ e(q, {
14918
14928
  variant: "default",
14919
14929
  icon: "caret-left",
14920
- onClick: () => p(u0(m, -1)),
14930
+ onClick: () => p(f0(m, -1)),
14921
14931
  title: "Previous month"
14922
14932
  }),
14923
14933
  /* @__PURE__ */ r("span", { children: [
@@ -14925,20 +14935,20 @@ var Q1 = (t) => {
14925
14935
  " ",
14926
14936
  m.getFullYear(),
14927
14937
  " -",
14928
- i1.toLocaleString("default", { month: "long" }),
14938
+ a1.toLocaleString("default", { month: "long" }),
14929
14939
  " ",
14930
- i1.getFullYear()
14940
+ a1.getFullYear()
14931
14941
  ] }),
14932
- /* @__PURE__ */ e(F, {
14942
+ /* @__PURE__ */ e(q, {
14933
14943
  variant: "default",
14934
14944
  icon: "caret-right",
14935
- onClick: () => p(u0(m, 1)),
14945
+ onClick: () => p(f0(m, 1)),
14936
14946
  title: "Next month"
14937
14947
  })
14938
14948
  ]
14939
14949
  }), /* @__PURE__ */ r("div", {
14940
14950
  className: "date-range-picker__months",
14941
- children: [/* @__PURE__ */ e(_0, {
14951
+ children: [/* @__PURE__ */ e(V0, {
14942
14952
  mode: "range",
14943
14953
  value: k,
14944
14954
  onChange: D,
@@ -14950,13 +14960,13 @@ var Q1 = (t) => {
14950
14960
  showToday: !1,
14951
14961
  minDate: a ? Q1(a) : void 0,
14952
14962
  maxDate: s ? Q1(s) : void 0
14953
- }), /* @__PURE__ */ e(_0, {
14963
+ }), /* @__PURE__ */ e(V0, {
14954
14964
  mode: "range",
14955
14965
  value: k,
14956
14966
  onChange: D,
14957
14967
  rangeStart: g,
14958
14968
  onRangeStartChange: P,
14959
- currentMonth: i1,
14969
+ currentMonth: a1,
14960
14970
  onMonthChange: p,
14961
14971
  showHeader: !1,
14962
14972
  showToday: !1,
@@ -14976,7 +14986,7 @@ var Q1 = (t) => {
14976
14986
  children: t
14977
14987
  }), /* @__PURE__ */ e("div", {
14978
14988
  className: "date-range-picker__presets",
14979
- children: n.map((W) => /* @__PURE__ */ e(F, {
14989
+ children: n.map((W) => /* @__PURE__ */ e(q, {
14980
14990
  size: "small",
14981
14991
  variant: "default",
14982
14992
  onClick: () => X(W.days),
@@ -14988,7 +14998,7 @@ var Q1 = (t) => {
14988
14998
  children: t
14989
14999
  }), n && n.length > 0 && /* @__PURE__ */ e("div", {
14990
15000
  className: "date-range-picker__presets",
14991
- children: n.map((W) => /* @__PURE__ */ e(F, {
15001
+ children: n.map((W) => /* @__PURE__ */ e(q, {
14992
15002
  size: "small",
14993
15003
  variant: "default",
14994
15004
  onClick: () => X(W.days),
@@ -15016,7 +15026,7 @@ var Q1 = (t) => {
15016
15026
  onChange: _,
15017
15027
  onBlur: V
15018
15028
  }),
15019
- !o && /* @__PURE__ */ e(F, {
15029
+ !o && /* @__PURE__ */ e(q, {
15020
15030
  className: "date-range-picker__toggle",
15021
15031
  variant: "default",
15022
15032
  onClick: () => u((W) => !W),
@@ -15034,7 +15044,7 @@ var Q1 = (t) => {
15034
15044
  ]
15035
15045
  });
15036
15046
  };
15037
- function R2(t, c) {
15047
+ function D2(t, c) {
15038
15048
  const l = t.length, a = c.length, s = l + a, o = new Array(2 * s + 1).fill(0), i = [];
15039
15049
  e: for (let m = 0; m <= s; m++) {
15040
15050
  i.push([...o]);
@@ -15070,7 +15080,7 @@ function R2(t, c) {
15070
15080
  return n;
15071
15081
  }
15072
15082
  function hc(t, c) {
15073
- const l = R2(t.split(`
15083
+ const l = D2(t.split(`
15074
15084
  `), c.split(`
15075
15085
  `)), a = [];
15076
15086
  let s = 1, o = 1, i = 0;
@@ -15105,7 +15115,7 @@ function hc(t, c) {
15105
15115
  }
15106
15116
  function dc(t, c) {
15107
15117
  const l = (a) => a.match(/\S+|\s+/g) ?? [];
15108
- return R2(l(t), l(c));
15118
+ return D2(l(t), l(c));
15109
15119
  }
15110
15120
  var mc = ({ a: t, b: c, side: l }) => /* @__PURE__ */ e(l1, { children: dc(t, c).map((a, s) => a.kind === "eq" ? /* @__PURE__ */ e("span", { children: a.val }, s) : a.kind === "del" && l === "old" ? /* @__PURE__ */ e("mark", {
15111
15121
  className: "dv-word dv-word--del",
@@ -15168,7 +15178,7 @@ function vc(t) {
15168
15178
  var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t]).map((c, l) => c.name === "plain" ? /* @__PURE__ */ e("span", { children: c.val }, l) : /* @__PURE__ */ e("span", {
15169
15179
  className: `dv-token dv-token--${c.name}`,
15170
15180
  children: c.val
15171
- }, l)) }), E0 = ({ line: t, side: c, type: l }) => {
15181
+ }, l)) }), W0 = ({ line: t, side: c, type: l }) => {
15172
15182
  const a = c === "old" ? t.text ?? t.oldText ?? "" : t.text ?? t.newText ?? "";
15173
15183
  return t.kind !== "equal" && t.oldText !== void 0 && t.newText !== void 0 ? /* @__PURE__ */ e(mc, {
15174
15184
  a: t.oldText,
@@ -15231,7 +15241,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
15231
15241
  }),
15232
15242
  /* @__PURE__ */ e("span", {
15233
15243
  className: "dv__code",
15234
- children: !p && /* @__PURE__ */ e(E0, {
15244
+ children: !p && /* @__PURE__ */ e(W0, {
15235
15245
  line: h,
15236
15246
  side: "old",
15237
15247
  type: a
@@ -15257,7 +15267,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
15257
15267
  }),
15258
15268
  /* @__PURE__ */ e("span", {
15259
15269
  className: "dv__code",
15260
- children: !p && /* @__PURE__ */ e(E0, {
15270
+ children: !p && /* @__PURE__ */ e(W0, {
15261
15271
  line: h,
15262
15272
  side: "new",
15263
15273
  type: a
@@ -15285,7 +15295,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
15285
15295
  }),
15286
15296
  /* @__PURE__ */ e("span", {
15287
15297
  className: "dv__code",
15288
- children: /* @__PURE__ */ e(E0, {
15298
+ children: /* @__PURE__ */ e(W0, {
15289
15299
  line: h,
15290
15300
  side: h.kind === "removed" ? "old" : "new",
15291
15301
  type: a
@@ -15296,12 +15306,12 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
15296
15306
  })
15297
15307
  })]
15298
15308
  });
15299
- }, uc = 1e3, n2 = 0, A2 = ({ isOpen: t, onClose: c, position: l = "left", width: a = "320px", maxWidth: s = "none", margin: o = 0, borderRadius: i = 0, shadow: n = "none", children: d, title: h, icon: m, className: p = "", showOverlay: g = !0, lockScroll: w = !0, hideClose: v = !1, actions: u = [], onBack: f, backLabel: C = "Back", primary: x, secondary: b, footer: M }) => {
15300
- C2(t && w);
15309
+ }, uc = 1e3, h2 = 0, T2 = ({ isOpen: t, onClose: c, position: l = "left", width: a = "320px", maxWidth: s = "none", margin: o = 0, borderRadius: i = 0, shadow: n = "none", children: d, title: h, icon: m, className: p = "", showOverlay: g = !0, lockScroll: w = !0, hideClose: v = !1, actions: u = [], onBack: f, backLabel: C = "Back", primary: x, secondary: b, footer: M }) => {
15310
+ x2(t && w);
15301
15311
  const [_, N] = z(0);
15302
- if (U(() => {
15303
- t && (n2 += 1, N(n2));
15304
- }, [t]), U(() => {
15312
+ if (F(() => {
15313
+ t && (h2 += 1, N(h2));
15314
+ }, [t]), F(() => {
15305
15315
  const k = (A) => {
15306
15316
  A.key === "Escape" && t && c();
15307
15317
  };
@@ -15329,7 +15339,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
15329
15339
  f && /* @__PURE__ */ e(K, {
15330
15340
  title: C,
15331
15341
  position: "bottom",
15332
- children: /* @__PURE__ */ e(F, {
15342
+ children: /* @__PURE__ */ e(q, {
15333
15343
  className: "drawer__back",
15334
15344
  onClick: f,
15335
15345
  size: "small",
@@ -15339,7 +15349,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
15339
15349
  }),
15340
15350
  (h || m) && /* @__PURE__ */ r("h2", {
15341
15351
  className: "drawer__title",
15342
- children: [m && /* @__PURE__ */ e(G, { name: m }), h && /* @__PURE__ */ e("span", {
15352
+ children: [m && /* @__PURE__ */ e(E, { name: m }), h && /* @__PURE__ */ e("span", {
15343
15353
  className: "drawer__title-text",
15344
15354
  children: h
15345
15355
  })]
@@ -15347,7 +15357,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
15347
15357
  u.length > 0 && /* @__PURE__ */ e("div", {
15348
15358
  className: "drawer__header-actions",
15349
15359
  children: u.map((k) => {
15350
- const A = /* @__PURE__ */ e(F, {
15360
+ const A = /* @__PURE__ */ e(q, {
15351
15361
  disabled: k.disabled,
15352
15362
  onClick: k.onClick,
15353
15363
  icon: k.icon,
@@ -15363,7 +15373,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
15363
15373
  }, k.id) : /* @__PURE__ */ e(E1.Fragment, { children: A }, k.id);
15364
15374
  })
15365
15375
  }),
15366
- !v && /* @__PURE__ */ e(F, {
15376
+ !v && /* @__PURE__ */ e(q, {
15367
15377
  className: "drawer__close",
15368
15378
  icon: "clear",
15369
15379
  onClick: c,
@@ -15384,13 +15394,13 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
15384
15394
  children: M
15385
15395
  }), (x || b) && /* @__PURE__ */ r("div", {
15386
15396
  className: "drawer__footer-actions",
15387
- children: [b && /* @__PURE__ */ e(F, {
15397
+ children: [b && /* @__PURE__ */ e(q, {
15388
15398
  variant: b.variant || "default",
15389
15399
  icon: b.icon,
15390
15400
  disabled: b.disabled,
15391
15401
  onClick: b.onClick,
15392
15402
  children: b.text
15393
- }), x && /* @__PURE__ */ e(F, {
15403
+ }), x && /* @__PURE__ */ e(q, {
15394
15404
  variant: x.variant || "info",
15395
15405
  icon: x.icon,
15396
15406
  disabled: x.disabled,
@@ -19709,7 +19719,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
19709
19719
  ...wc,
19710
19720
  ...yc,
19711
19721
  ...Mc
19712
- }, M0 = [
19722
+ }, L0 = [
19713
19723
  {
19714
19724
  id: "smileys",
19715
19725
  icon: "😀",
@@ -20449,11 +20459,11 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20449
20459
  ]
20450
20460
  }
20451
20461
  ], xa = ({ value: t, onChange: c }) => {
20452
- const [l, a] = z(""), [s, o] = z(M0[0].id), i = m1(() => {
20462
+ const [l, a] = z(""), [s, o] = z(L0[0].id), i = m1(() => {
20453
20463
  if (!l.trim()) return null;
20454
20464
  const d = l.toLowerCase();
20455
- return M0.flatMap((h) => h.emojis.filter((m) => _c[m]?.some((p) => p.includes(d)) || h.name.toLowerCase().includes(d)));
20456
- }, [l]), n = i ?? M0.find((d) => d.id === s)?.emojis ?? [];
20465
+ return L0.flatMap((h) => h.emojis.filter((m) => _c[m]?.some((p) => p.includes(d)) || h.name.toLowerCase().includes(d)));
20466
+ }, [l]), n = i ?? L0.find((d) => d.id === s)?.emojis ?? [];
20457
20467
  return /* @__PURE__ */ r("div", {
20458
20468
  className: "emoji-picker",
20459
20469
  children: [
@@ -20468,7 +20478,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20468
20478
  }),
20469
20479
  !i && /* @__PURE__ */ e("div", {
20470
20480
  className: "emoji-picker__categories",
20471
- children: M0.map((d) => /* @__PURE__ */ e("button", {
20481
+ children: L0.map((d) => /* @__PURE__ */ e("button", {
20472
20482
  className: `emoji-picker__cat-btn${s === d.id ? " is-active" : ""}`,
20473
20483
  title: d.name,
20474
20484
  onClick: () => o(d.id),
@@ -20518,7 +20528,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20518
20528
  }
20519
20529
  }, ka = ({ label: t, accept: c, multiple: l = !1, showPreview: a = !0, onFiles: s }) => {
20520
20530
  const [o, i] = z(!1), [n, d] = z([]), h = Y(null), [m, p] = z([]);
20521
- U(() => {
20531
+ F(() => {
20522
20532
  if (!a) return;
20523
20533
  const v = n.filter((u) => u.type.startsWith("image/")).map((u) => URL.createObjectURL(u));
20524
20534
  return p(v), () => {
@@ -20591,7 +20601,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20591
20601
  onClick: t[0].onClick,
20592
20602
  children: /* @__PURE__ */ e("span", {
20593
20603
  className: "float-button__icon",
20594
- children: /* @__PURE__ */ e(G, {
20604
+ children: /* @__PURE__ */ e(E, {
20595
20605
  name: t[0].icon,
20596
20606
  size: "xxl"
20597
20607
  })
@@ -20616,7 +20626,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20616
20626
  onClick: () => s(o),
20617
20627
  children: [/* @__PURE__ */ e("span", {
20618
20628
  className: "float-button-menu__icon",
20619
- children: /* @__PURE__ */ e(G, { name: o.icon })
20629
+ children: /* @__PURE__ */ e(E, { name: o.icon })
20620
20630
  }), /* @__PURE__ */ e("span", {
20621
20631
  className: "float-button-menu__label",
20622
20632
  children: o.label
@@ -20629,7 +20639,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20629
20639
  onClick: a,
20630
20640
  children: /* @__PURE__ */ e("span", {
20631
20641
  className: "float-button__icon",
20632
- children: /* @__PURE__ */ e(G, {
20642
+ children: /* @__PURE__ */ e(E, {
20633
20643
  name: c ? "clear" : "plus",
20634
20644
  size: "xxl"
20635
20645
  })
@@ -20637,7 +20647,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20637
20647
  })
20638
20648
  })]
20639
20649
  });
20640
- }, $2 = () => /* @__PURE__ */ e("div", {
20650
+ }, Z2 = () => /* @__PURE__ */ e("div", {
20641
20651
  className: "loading",
20642
20652
  children: /* @__PURE__ */ e("div", { className: "loading__spinner" })
20643
20653
  }), La = ({ isOpen: t, title: c = "Select a folder", initialPath: l, loadDirectory: a, onSelect: s, onClose: o, selectLabel: i = "Select this folder" }) => {
@@ -20657,13 +20667,13 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20657
20667
  m(!1);
20658
20668
  }
20659
20669
  }, [a]);
20660
- U(() => {
20670
+ F(() => {
20661
20671
  t && w(l);
20662
20672
  }, [
20663
20673
  t,
20664
20674
  l,
20665
20675
  w
20666
- ]), U(() => {
20676
+ ]), F(() => {
20667
20677
  g(n?.current ?? "");
20668
20678
  }, [n]);
20669
20679
  const v = () => {
@@ -20700,7 +20710,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20700
20710
  /* @__PURE__ */ r("div", {
20701
20711
  className: "folder-browser__path-row",
20702
20712
  children: [
20703
- /* @__PURE__ */ e(F, {
20713
+ /* @__PURE__ */ e(q, {
20704
20714
  variant: "default",
20705
20715
  size: "small",
20706
20716
  icon: "arrow-up",
@@ -20718,7 +20728,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20718
20728
  onKeyDown: (x) => x.key === "Enter" && u()
20719
20729
  })
20720
20730
  }),
20721
- /* @__PURE__ */ e(F, {
20731
+ /* @__PURE__ */ e(q, {
20722
20732
  variant: "default",
20723
20733
  size: "small",
20724
20734
  icon: "arrow-right",
@@ -20736,7 +20746,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20736
20746
  className: "folder-browser__list",
20737
20747
  children: h ? /* @__PURE__ */ e("div", {
20738
20748
  className: "folder-browser__loading",
20739
- children: /* @__PURE__ */ e($2, {})
20749
+ children: /* @__PURE__ */ e(Z2, {})
20740
20750
  }) : C.length === 0 ? /* @__PURE__ */ e(J1, {
20741
20751
  icon: "folder",
20742
20752
  title: "No subfolders",
@@ -20751,7 +20761,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20751
20761
  w(x.path);
20752
20762
  },
20753
20763
  children: [
20754
- /* @__PURE__ */ e(G, {
20764
+ /* @__PURE__ */ e(E, {
20755
20765
  name: "folder",
20756
20766
  size: "sm"
20757
20767
  }),
@@ -20759,7 +20769,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20759
20769
  className: "folder-browser__entry-name",
20760
20770
  children: x.name
20761
20771
  }),
20762
- /* @__PURE__ */ e(G, {
20772
+ /* @__PURE__ */ e(E, {
20763
20773
  className: "folder-browser__entry-chevron",
20764
20774
  name: "arrow-right",
20765
20775
  size: "sm"
@@ -20784,7 +20794,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20784
20794
  };
20785
20795
  n?.(x);
20786
20796
  }, [n]);
20787
- return U(() => {
20797
+ return F(() => {
20788
20798
  const v = p.current, u = m.current;
20789
20799
  if (!(!v || !u))
20790
20800
  return g.current?.disconnect(), g.current = new IntersectionObserver(([f]) => {
@@ -20800,7 +20810,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20800
20810
  c,
20801
20811
  o,
20802
20812
  s
20803
- ]), U(() => {
20813
+ ]), F(() => {
20804
20814
  const v = m.current;
20805
20815
  if (v)
20806
20816
  return v.addEventListener("scroll", w, { passive: !0 }), w(), () => v.removeEventListener("scroll", w);
@@ -20818,7 +20828,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20818
20828
  className: "infinite-scroll__loader",
20819
20829
  children: [/* @__PURE__ */ e("div", { className: "infinite-scroll__spinner" }), /* @__PURE__ */ e("span", {
20820
20830
  className: "infinite-scroll__loader-text",
20821
- children: /* @__PURE__ */ e($2, {})
20831
+ children: /* @__PURE__ */ e(Z2, {})
20822
20832
  })]
20823
20833
  }),
20824
20834
  !l && !a && d && /* @__PURE__ */ e("div", {
@@ -20829,7 +20839,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20829
20839
  });
20830
20840
  }, Lc = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, zc = (t) => !t || t.trim() === "" ? !0 : Lc.test(t.trim()), Va = M1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a = "Please enter a valid email address", highlighted: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: m, onKeyDown: p, onKeyUp: g, onValidate: w, placeholder: v, readOnly: u = !1, required: f = !1, showValidation: C = !1, success: x, validateOn: b = "blur", value: M }, _) => {
20831
20841
  const [N, L] = z(!0), [y, H] = z(!1), S = (P) => f && (!P || P.trim() === "") ? !1 : !P || P.trim() === "" ? !0 : zc(P);
20832
- U(() => {
20842
+ F(() => {
20833
20843
  if (M !== void 0) {
20834
20844
  const P = S(M);
20835
20845
  L(P), w?.(P);
@@ -20924,13 +20934,13 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
20924
20934
  children: p
20925
20935
  })
20926
20936
  ]
20927
- })), D2 = {
20937
+ })), G2 = {
20928
20938
  9: /\d/,
20929
20939
  a: /[a-zA-Z]/,
20930
20940
  "*": /[a-zA-Z0-9]/
20931
20941
  };
20932
20942
  function Vc(t) {
20933
- return t in D2;
20943
+ return t in G2;
20934
20944
  }
20935
20945
  function Nc(t) {
20936
20946
  const c = [];
@@ -20947,7 +20957,7 @@ function Nc(t) {
20947
20957
  }), l++);
20948
20958
  return c;
20949
20959
  }
20950
- function I0(t, c, l) {
20960
+ function U0(t, c, l) {
20951
20961
  let a = 0, s = "", o = "";
20952
20962
  for (const i of c) if (i.type === "literal") s += i.char;
20953
20963
  else if (a < t.length) {
@@ -20963,15 +20973,15 @@ function Hc(t) {
20963
20973
  return t.filter((c) => c.type === "token").length;
20964
20974
  }
20965
20975
  var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, label: o, hint: i, error: n, highlighted: d, size: h = "md", variant: m = "default", disabled: p = !1, readOnly: g = !1, maskChar: w = "_", mono: v = !0, icon: u, suffix: f, className: C = "", id: x, name: b, autoComplete: M }, _) => {
20966
- const N = E1.useMemo(() => Nc(t), [t]), L = E1.useMemo(() => Hc(N), [N]), y = C0(), H = x ?? y, [S, k] = z(() => c !== void 0 ? c : ""), A = Y(null);
20967
- w2(_, () => ({
20976
+ const N = E1.useMemo(() => Nc(t), [t]), L = E1.useMemo(() => Hc(N), [N]), y = b0(), H = x ?? y, [S, k] = z(() => c !== void 0 ? c : ""), A = Y(null);
20977
+ y2(_, () => ({
20968
20978
  focus: () => A.current?.focus(),
20969
20979
  clear: () => {
20970
20980
  k(""), l?.("", "");
20971
20981
  },
20972
20982
  getRawValue: () => S
20973
20983
  }));
20974
- const { masked: D } = I0(S, N, w), P = D.includes(w) ? D.replace(new RegExp(w.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), w) : D, O = n ? "danger" : m, s1 = [
20984
+ const { masked: D } = U0(S, N, w), P = D.includes(w) ? D.replace(new RegExp(w.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), w) : D, O = n ? "danger" : m, s1 = [
20975
20985
  "input-mask",
20976
20986
  `input-mask--${h}`,
20977
20987
  `input-mask--${O}`,
@@ -20986,7 +20996,7 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
20986
20996
  if (p || g) return;
20987
20997
  if (I.key === "Backspace") {
20988
20998
  I.preventDefault();
20989
- const o1 = S.slice(0, -1), { masked: v1 } = I0(o1, N, w);
20999
+ const o1 = S.slice(0, -1), { masked: v1 } = U0(o1, N, w);
20990
21000
  k(o1), l?.(o1, v1);
20991
21001
  return;
20992
21002
  }
@@ -20995,12 +21005,12 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
20995
21005
  let p1 = 0;
20996
21006
  for (const o1 of N) if (o1.type === "token") {
20997
21007
  if (p1 === S.length) {
20998
- if (!D2[o1.key].test($)) return;
21008
+ if (!G2[o1.key].test($)) return;
20999
21009
  break;
21000
21010
  }
21001
21011
  p1++;
21002
21012
  }
21003
- const { masked: h1, rawAccepted: W } = I0(S + $, N, w);
21013
+ const { masked: h1, rawAccepted: W } = U0(S + $, N, w);
21004
21014
  k(W), l?.(W, h1), W.length === L && a?.(W, h1);
21005
21015
  }, [
21006
21016
  p,
@@ -21011,7 +21021,7 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
21011
21021
  L,
21012
21022
  l,
21013
21023
  a
21014
- ]), X = s ?? N.map((I) => I.type === "literal" ? I.char : w).join(""), i1 = S.length === L;
21024
+ ]), X = s ?? N.map((I) => I.type === "literal" ? I.char : w).join(""), a1 = S.length === L;
21015
21025
  return /* @__PURE__ */ r("div", {
21016
21026
  className: s1,
21017
21027
  children: [
@@ -21034,7 +21044,7 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
21034
21044
  type: "text",
21035
21045
  inputMode: "text",
21036
21046
  autoComplete: M,
21037
- className: ["input-mask__input", i1 ? "input-mask__input--filled" : ""].filter(Boolean).join(" "),
21047
+ className: ["input-mask__input", a1 ? "input-mask__input--filled" : ""].filter(Boolean).join(" "),
21038
21048
  value: P,
21039
21049
  placeholder: X,
21040
21050
  disabled: p,
@@ -21078,7 +21088,7 @@ var Ha = {
21078
21088
  date: "99/99/9999",
21079
21089
  time: "99:99",
21080
21090
  uuid: "********-****-****-****-************"
21081
- }, k0 = M1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a, highlighted: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: m, onKeyDown: p, onKeyUp: g, placeholder: w, readOnly: v = !1, required: u = !1, success: f, value: C }, x) => /* @__PURE__ */ r("div", {
21091
+ }, z0 = M1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a, highlighted: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: m, onKeyDown: p, onKeyUp: g, placeholder: w, readOnly: v = !1, required: u = !1, success: f, value: C }, x) => /* @__PURE__ */ r("div", {
21082
21092
  className: `input-password-wrapper${s ? " input-password-highlighted" : ""}`,
21083
21093
  children: [
21084
21094
  i && /* @__PURE__ */ r("label", {
@@ -21118,21 +21128,21 @@ var Ha = {
21118
21128
  })
21119
21129
  ]
21120
21130
  })), Bc = "+## (###) ###-####";
21121
- function j0(t, c) {
21131
+ function F0(t, c) {
21122
21132
  let l = 0, a = "";
21123
21133
  for (let s = 0; s < c.length && !(l >= t.length); s++)
21124
21134
  c[s] === "#" ? (a += t[l], l++) : l < t.length && (a += c[s]);
21125
21135
  return a;
21126
21136
  }
21127
- function P0(t) {
21137
+ function q0(t) {
21128
21138
  return t.replace(/\D/g, "");
21129
21139
  }
21130
21140
  function Rc(t) {
21131
21141
  return t.split("").filter((c) => c === "#").length;
21132
21142
  }
21133
21143
  var Ac = M1(({ autoFocus: t, disabled: c, error: l, format: a = Bc, highlighted: s, id: o, label: i, onBlur: n, onChange: d, onClick: h, onKeyDown: m, placeholder: p, readOnly: g = !1, required: w = !1, success: v, value: u }, f) => {
21134
- const C = u !== void 0, [x, b] = z(() => u ? j0(P0(u), a) : ""), M = C ? j0(P0(u ?? ""), a) : x, _ = p ?? a.replace(/#/g, "0"), N = a.length, L = (y) => {
21135
- const H = P0(y), S = Rc(a), k = H.slice(0, S), A = j0(k, a);
21144
+ const C = u !== void 0, [x, b] = z(() => u ? F0(q0(u), a) : ""), M = C ? F0(q0(u ?? ""), a) : x, _ = p ?? a.replace(/#/g, "0"), N = a.length, L = (y) => {
21145
+ const H = q0(y), S = Rc(a), k = H.slice(0, S), A = F0(k, a);
21136
21146
  C || b(A), d?.(A, k);
21137
21147
  };
21138
21148
  return /* @__PURE__ */ r("div", {
@@ -21327,7 +21337,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21327
21337
  });
21328
21338
  }), Aa = ({ isOpen: t, onClose: c, onComplete: l, steps: a, title: s, presentation: o = "drawer", width: i = "480px" }) => {
21329
21339
  const [n, d] = z(0);
21330
- U(() => {
21340
+ F(() => {
21331
21341
  t && d(0);
21332
21342
  }, [t]);
21333
21343
  const h = a[n], m = n === a.length - 1, p = n === 0, g = h?.canProceed !== !1, w = h?.canGoBack !== !1, v = () => {
@@ -21346,7 +21356,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21346
21356
  children: [
21347
21357
  /* @__PURE__ */ e("div", {
21348
21358
  className: "journey-wizard__nav-side",
21349
- children: !p && /* @__PURE__ */ e(F, {
21359
+ children: !p && /* @__PURE__ */ e(q, {
21350
21360
  variant: "ghost",
21351
21361
  icon: "previous",
21352
21362
  disabled: !w,
@@ -21364,17 +21374,17 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21364
21374
  }),
21365
21375
  /* @__PURE__ */ e("div", {
21366
21376
  className: "journey-wizard__nav-side journey-wizard__nav-side--right",
21367
- children: m ? /* @__PURE__ */ e(F, {
21377
+ children: m ? /* @__PURE__ */ e(q, {
21368
21378
  variant: "success",
21369
21379
  icon: "save",
21370
21380
  disabled: !g,
21371
21381
  onClick: C,
21372
21382
  children: "Save"
21373
- }) : /* @__PURE__ */ r(F, {
21383
+ }) : /* @__PURE__ */ r(q, {
21374
21384
  variant: "info",
21375
21385
  disabled: !g,
21376
21386
  onClick: v,
21377
- children: ["Next ", /* @__PURE__ */ e(G, {
21387
+ children: ["Next ", /* @__PURE__ */ e(E, {
21378
21388
  name: "next",
21379
21389
  size: "sm"
21380
21390
  })]
@@ -21433,7 +21443,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21433
21443
  b
21434
21444
  ]
21435
21445
  })
21436
- }) : /* @__PURE__ */ e(A2, {
21446
+ }) : /* @__PURE__ */ e(T2, {
21437
21447
  isOpen: t,
21438
21448
  onClose: f,
21439
21449
  title: s,
@@ -21481,7 +21491,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21481
21491
  })
21482
21492
  });
21483
21493
  }, Tc = ({ icon: t = "menu-hamburger", isCompact: c, items: l, label: a, showLabel: s = !0, disableResponsive: o = !1 }) => {
21484
- const { isAtLeast: i } = h0(), [n, d] = z(null), h = (v) => {
21494
+ const { isAtLeast: i } = m0(), [n, d] = z(null), h = (v) => {
21485
21495
  d(v.currentTarget);
21486
21496
  }, m = () => {
21487
21497
  d(null);
@@ -21490,7 +21500,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21490
21500
  const v = l[0], u = p && s;
21491
21501
  return /* @__PURE__ */ e("div", {
21492
21502
  className: "MenuHamburger",
21493
- children: /* @__PURE__ */ e(F, {
21503
+ children: /* @__PURE__ */ e(q, {
21494
21504
  variant: c || !p ? "plain" : "default",
21495
21505
  onClick: v.onClick,
21496
21506
  icon: v.icon,
@@ -21504,7 +21514,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21504
21514
  }, w = p && s && !!a;
21505
21515
  return /* @__PURE__ */ r("div", {
21506
21516
  className: "MenuHamburger",
21507
- children: [/* @__PURE__ */ e(F, {
21517
+ children: [/* @__PURE__ */ e(q, {
21508
21518
  variant: c || !p ? "plain" : "default",
21509
21519
  onClick: h,
21510
21520
  icon: t,
@@ -21517,13 +21527,13 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21517
21527
  className: "MenuHamburger_dropdown",
21518
21528
  children: l.map((v, u) => /* @__PURE__ */ r("div", {
21519
21529
  className: "MenuHamburger_entry",
21520
- children: [v.separator && /* @__PURE__ */ e("div", { className: "MenuHamburger_separator" }), /* @__PURE__ */ r(F, {
21530
+ children: [v.separator && /* @__PURE__ */ e("div", { className: "MenuHamburger_separator" }), /* @__PURE__ */ r(q, {
21521
21531
  variant: "plain",
21522
21532
  className: `MenuHamburger_item ${v.isActive ? "MenuHamburger_item--active" : ""}`,
21523
21533
  onClick: () => g(v),
21524
21534
  children: [/* @__PURE__ */ e("span", {
21525
21535
  className: "MenuHamburger_item__icon",
21526
- children: v.icon ? /* @__PURE__ */ e(G, { name: v.icon }) : null
21536
+ children: v.icon ? /* @__PURE__ */ e(E, { name: v.icon }) : null
21527
21537
  }), /* @__PURE__ */ e("span", {
21528
21538
  className: "MenuHamburger_item__label",
21529
21539
  children: v.label
@@ -21533,11 +21543,11 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21533
21543
  })
21534
21544
  })]
21535
21545
  });
21536
- }, v0 = (t) => Math.max(0, Math.min(1, t)), Da = ({ buckets: t, viewportStart: c, viewportEnd: l, onScrub: a, bands: s, caption: o, className: i = "" }) => {
21546
+ }, u0 = (t) => Math.max(0, Math.min(1, t)), Da = ({ buckets: t, viewportStart: c, viewportEnd: l, onScrub: a, bands: s, caption: o, className: i = "" }) => {
21537
21547
  const n = Y(null), d = Y(!1), h = Math.max(0, l - c), m = Math.max(1, ...t), p = j((u) => {
21538
21548
  const f = n.current;
21539
21549
  if (!f) return;
21540
- const C = f.getBoundingClientRect(), x = v0((u - C.left) / C.width);
21550
+ const C = f.getBoundingClientRect(), x = u0((u - C.left) / C.width);
21541
21551
  a(Math.max(0, Math.min(1 - h, x - h / 2)));
21542
21552
  }, [a, h]), g = j((u) => {
21543
21553
  d.current = !0, u.currentTarget.setPointerCapture(u.pointerId), p(u.clientX);
@@ -21571,8 +21581,8 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21571
21581
  children: s.map((u, f) => /* @__PURE__ */ e("span", {
21572
21582
  className: "minimap__band",
21573
21583
  style: {
21574
- left: `${v0(u.start) * 100}%`,
21575
- width: `${v0(u.end - u.start) * 100}%`,
21584
+ left: `${u0(u.start) * 100}%`,
21585
+ width: `${u0(u.end - u.start) * 100}%`,
21576
21586
  background: u.color
21577
21587
  }
21578
21588
  }, f))
@@ -21580,8 +21590,8 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21580
21590
  /* @__PURE__ */ e("div", {
21581
21591
  className: "minimap__viewport",
21582
21592
  style: {
21583
- left: `${v0(c) * 100}%`,
21584
- width: `${v0(h) * 100}%`
21593
+ left: `${u0(c) * 100}%`,
21594
+ width: `${u0(h) * 100}%`
21585
21595
  }
21586
21596
  })
21587
21597
  ]
@@ -21621,7 +21631,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21621
21631
  ]
21622
21632
  });
21623
21633
  };
21624
- return /* @__PURE__ */ r(_2, {
21634
+ return /* @__PURE__ */ r(V2, {
21625
21635
  className: [
21626
21636
  "mini-stats-card",
21627
21637
  `mini-stats-card--align-${s}`,
@@ -21654,7 +21664,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21654
21664
  disabled: v.disabled,
21655
21665
  children: [v.icon && /* @__PURE__ */ e("span", {
21656
21666
  className: "navbar__item-icon",
21657
- children: v.icon ? /* @__PURE__ */ e(G, { name: v.icon }) : null
21667
+ children: v.icon ? /* @__PURE__ */ e(E, { name: v.icon }) : null
21658
21668
  }), /* @__PURE__ */ e("span", {
21659
21669
  className: "navbar__item-label",
21660
21670
  children: v.label
@@ -21671,7 +21681,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21671
21681
  className: "navbar__items",
21672
21682
  children: [
21673
21683
  g.map((v) => o ? o(v) : p(v)),
21674
- i && !d && w > 0 && /* @__PURE__ */ e(F, {
21684
+ i && !d && w > 0 && /* @__PURE__ */ e(q, {
21675
21685
  className: "navbar__item navbar__item--expand",
21676
21686
  onClick: () => h(!0),
21677
21687
  children: /* @__PURE__ */ r("span", {
@@ -21683,7 +21693,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21683
21693
  ]
21684
21694
  })
21685
21695
  }),
21686
- i && d && /* @__PURE__ */ e(F, {
21696
+ i && d && /* @__PURE__ */ e(q, {
21687
21697
  className: "navbar__item navbar__item--expand",
21688
21698
  onClick: () => h(!1),
21689
21699
  children: /* @__PURE__ */ e("span", {
@@ -21701,7 +21711,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21701
21711
  });
21702
21712
  }, Zc = ({ items: t, buttonLabel: c = "Alerts", panelTitle: l = "Notifications", emptyMessage: a = "No active notifications." }) => {
21703
21713
  const [s, o] = z(!1), [i, n] = z({ opacity: 0 }), d = Y(null), h = Y(null), m = t.some((g) => g.severity === "critical");
21704
- return U(() => {
21714
+ return F(() => {
21705
21715
  if (!s || !d.current || !h.current) return;
21706
21716
  const g = requestAnimationFrame(() => {
21707
21717
  if (!d.current || !h.current) return;
@@ -21715,7 +21725,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21715
21725
  });
21716
21726
  });
21717
21727
  return () => cancelAnimationFrame(g);
21718
- }, [s]), U(() => {
21728
+ }, [s]), F(() => {
21719
21729
  if (!s) return;
21720
21730
  const g = (w) => {
21721
21731
  w.key === "Escape" && o(!1);
@@ -21760,20 +21770,20 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21760
21770
  small: 120,
21761
21771
  medium: 180,
21762
21772
  large: 240
21763
- }, o2 = {
21773
+ }, d2 = {
21764
21774
  default: "var(--progress-default-bar-fill-color)",
21765
21775
  warning: "var(--progress-warning-bar-fill-color)",
21766
21776
  danger: "var(--progress-danger-bar-fill-color)",
21767
21777
  info: "var(--progress-info-bar-fill-color)",
21768
21778
  success: "var(--progress-success-bar-fill-color)"
21769
- }, n0 = (t, c, l, a) => {
21779
+ }, s0 = (t, c, l, a) => {
21770
21780
  const s = (a - 90) * Math.PI / 180;
21771
21781
  return {
21772
21782
  x: t + l * Math.cos(s),
21773
21783
  y: c + l * Math.sin(s)
21774
21784
  };
21775
21785
  }, Ec = (t, c, l, a) => {
21776
- const s = n0(t, t, c, a), o = n0(t, t, c, l), i = a - l <= 180 ? 0 : 1;
21786
+ const s = s0(t, t, c, a), o = s0(t, t, c, l), i = a - l <= 180 ? 0 : 1;
21777
21787
  return [
21778
21788
  "M",
21779
21789
  t,
@@ -21793,7 +21803,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21793
21803
  ].join(" ");
21794
21804
  }, Ic = (t) => `hsl(${Math.round((t * 137.508 + 28) % 360)} 72% 52%)`, jc = (t, c) => {
21795
21805
  const l = t.variant ?? "default";
21796
- return l === "custom" ? t.customColor || o2.default : l === "random" ? Ic(c) : o2[l];
21806
+ return l === "custom" ? t.customColor || d2.default : l === "random" ? Ic(c) : d2[l];
21797
21807
  }, Ga = ({ className: t = "", data: c = [], emptyLabel: l, gap: a = 1, size: s = "medium", valueFormatter: o, valuePosition: i = "inside" }) => {
21798
21808
  const n = Gc[s], d = i === "outside" ? Math.round(n * 0.18) : 0, h = n / 2, m = Math.max(h - Math.max(a, 1), 1), p = `${-d} ${-d} ${n + d * 2} ${n + d * 2}`, g = m1(() => {
21799
21809
  const M = c.filter((L) => Number.isFinite(L.value) && L.value > 0), _ = M.reduce((L, y) => L + y.value, 0);
@@ -21852,7 +21862,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21852
21862
  strokeWidth: x
21853
21863
  }, `${M.index}-${M.value}-${M.startAngle}`))),
21854
21864
  w && b && i === "outside" && g.map((M) => {
21855
- const _ = n0(h, h, f, M.midAngle), N = n0(h, h, C, M.midAngle), L = n0(h, h, u, M.midAngle), y = L.x >= h;
21865
+ const _ = s0(h, h, f, M.midAngle), N = s0(h, h, C, M.midAngle), L = s0(h, h, u, M.midAngle), y = L.x >= h;
21856
21866
  return /* @__PURE__ */ r("g", {
21857
21867
  className: "pie-chart__outside-label-group",
21858
21868
  children: [/* @__PURE__ */ e("line", {
@@ -21877,7 +21887,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21877
21887
  const _ = g.length === 1 ? {
21878
21888
  x: h,
21879
21889
  y: h
21880
- } : n0(h, h, v, M.midAngle);
21890
+ } : s0(h, h, v, M.midAngle);
21881
21891
  return /* @__PURE__ */ e("text", {
21882
21892
  className: "pie-chart__value-label pie-chart__value-label--inside",
21883
21893
  x: _.x,
@@ -21890,7 +21900,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21890
21900
  ]
21891
21901
  })
21892
21902
  });
21893
- }, V0 = (t) => Number((typeof t == "number" ? t : Number(t)).toFixed(2)), Ea = (t, c) => (t > c && console.warn(`Could not get percent of value ${t} from a total ${c}. Total must be higher or at least equal to value.`), t === c ? t === 0 ? 0 : 100 : t / (c / 100)), Ia = (t, c) => {
21903
+ }, S0 = (t) => Number((typeof t == "number" ? t : Number(t)).toFixed(2)), Ea = (t, c) => (t > c && console.warn(`Could not get percent of value ${t} from a total ${c}. Total must be higher or at least equal to value.`), t === c ? t === 0 ? 0 : 100 : t / (c / 100)), Ia = (t, c) => {
21894
21904
  const l = t + c;
21895
21905
  return l === 0 ? {
21896
21906
  a: 0,
@@ -21907,7 +21917,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21907
21917
  t && h && "progress-bar-animated"
21908
21918
  ].filter(Boolean).join(" "), w = `progress-bar__label progress-bar__label--${d} ${s ? `progress-bar__label-${s}` : ""}`, v = p > 100 ? 100 : p < 0 ? 0 : p, u = m1(() => {
21909
21919
  const M = [];
21910
- return n && M.push(`${V0(p)}%`), l && M.push(l), (a ? M : M.reverse()).join(" - ");
21920
+ return n && M.push(`${S0(p)}%`), l && M.push(l), (a ? M : M.reverse()).join(" - ");
21911
21921
  }, [
21912
21922
  n,
21913
21923
  p,
@@ -21938,12 +21948,12 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21938
21948
  })
21939
21949
  ]
21940
21950
  });
21941
- }, T2 = {
21951
+ }, E2 = {
21942
21952
  small: 64,
21943
21953
  medium: 96,
21944
21954
  large: 128
21945
- }, Pc = (t) => typeof t == "number" ? t : T2[t], Pa = ({ children: t, className: c = "", label: l, labelPosition: a = "below", rounded: s = !0, showPercentage: o = !0, size: i = "medium", state: n = "default", thickness: d, value: h }) => {
21946
- const m = Math.min(Math.max(Number.isFinite(h) ? h : 0, 0), 100), p = Pc(i), g = d ?? (p <= T2.small ? 6 : 8), w = Math.max((p - g) / 2, 1), v = 2 * Math.PI * w, u = v - m / 100 * v, f = m1(() => `${V0(m)}%`, [m]), C = t || (o ? f : a === "inside" ? l : null), x = a === "inside" && l && o && !t;
21955
+ }, Pc = (t) => typeof t == "number" ? t : E2[t], Pa = ({ children: t, className: c = "", label: l, labelPosition: a = "below", rounded: s = !0, showPercentage: o = !0, size: i = "medium", state: n = "default", thickness: d, value: h }) => {
21956
+ const m = Math.min(Math.max(Number.isFinite(h) ? h : 0, 0), 100), p = Pc(i), g = d ?? (p <= E2.small ? 6 : 8), w = Math.max((p - g) / 2, 1), v = 2 * Math.PI * w, u = v - m / 100 * v, f = m1(() => `${S0(m)}%`, [m]), C = t || (o ? f : a === "inside" ? l : null), x = a === "inside" && l && o && !t;
21947
21957
  return /* @__PURE__ */ r("div", {
21948
21958
  className: `progress-ring progress-ring--${n} ${c}`,
21949
21959
  style: { "--progress-ring-size": `${p}px` },
@@ -22024,7 +22034,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
22024
22034
  className: `quantity-selector${d ? " quantity-selector-readonly" : ""}${c ? " quantity-selector-error" : ""}${p ? " quantity-selector-success" : ""}`,
22025
22035
  style: { "--digits": u },
22026
22036
  children: [
22027
- /* @__PURE__ */ e(F, {
22037
+ /* @__PURE__ */ e(q, {
22028
22038
  className: "quantity-selector-button quantity-selector-button-decrease",
22029
22039
  disabled: t || i !== void 0 && (g ?? 0) <= i,
22030
22040
  onClick: f,
@@ -22046,7 +22056,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
22046
22056
  value: g
22047
22057
  })
22048
22058
  }),
22049
- /* @__PURE__ */ e(F, {
22059
+ /* @__PURE__ */ e(q, {
22050
22060
  className: "quantity-selector-button quantity-selector-button-increase",
22051
22061
  disabled: t || o !== void 0 && (g ?? 0) >= o,
22052
22062
  onClick: C,
@@ -22152,7 +22162,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
22152
22162
  })
22153
22163
  });
22154
22164
  }, Wc = ({ checked: t = !1, onChange: c, label: l, disabled: a = !1, name: s, value: o, id: i, className: n = "" }) => {
22155
- const d = C0(), h = i || d, m = (p) => {
22165
+ const d = b0(), h = i || d, m = (p) => {
22156
22166
  c?.(p.target.checked && o !== void 0 ? o : p.target.checked);
22157
22167
  };
22158
22168
  return /* @__PURE__ */ r("div", {
@@ -22181,7 +22191,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
22181
22191
  });
22182
22192
  }, qa = ({ isOpen: t = !1, list: c, title: l, onClose: a, onSave: s, icon: o, value: i }) => {
22183
22193
  const [n, d] = z(i), [h, m] = z(!1), [p, g] = z("");
22184
- U(() => {
22194
+ F(() => {
22185
22195
  d(i);
22186
22196
  }, [i]);
22187
22197
  const w = async () => {
@@ -22394,7 +22404,7 @@ ${s.textContent ?? ""}
22394
22404
  label: "Code Block",
22395
22405
  title: "Code Block",
22396
22406
  isAdvanced: !0
22397
- }], s2 = (t) => {
22407
+ }], m2 = (t) => {
22398
22408
  const c = document.createElement("tr");
22399
22409
  for (let l = 0; l < t; l++) {
22400
22410
  const a = document.createElement("td");
@@ -22530,7 +22540,7 @@ ${s.textContent ?? ""}
22530
22540
  const v = n()?.closest("tr") ?? null, u = a.querySelector("tbody") ?? a, f = v ?? u.querySelector("tr:last-child");
22531
22541
  if (!f) return;
22532
22542
  const C = f.querySelectorAll("td,th").length;
22533
- u.insertBefore(s2(C), f.nextSibling), l(), d(a);
22543
+ u.insertBefore(m2(C), f.nextSibling), l(), d(a);
22534
22544
  }, [
22535
22545
  a,
22536
22546
  c,
@@ -22543,7 +22553,7 @@ ${s.textContent ?? ""}
22543
22553
  const v = n()?.closest("tr") ?? null, u = a.querySelector("tbody") ?? a, f = v ?? u.querySelector("tr:first-child");
22544
22554
  if (!f) return;
22545
22555
  const C = f.querySelectorAll("td,th").length;
22546
- u.insertBefore(s2(C), f), l(), d(a);
22556
+ u.insertBefore(m2(C), f), l(), d(a);
22547
22557
  }, [
22548
22558
  a,
22549
22559
  c,
@@ -22791,7 +22801,7 @@ ${s.textContent ?? ""}
22791
22801
  onMouseDown: (h) => {
22792
22802
  h.preventDefault(), s();
22793
22803
  },
22794
- children: [/* @__PURE__ */ e(G, { name: "checkmark" }), " List"]
22804
+ children: [/* @__PURE__ */ e(E, { name: "checkmark" }), " List"]
22795
22805
  })
22796
22806
  })]
22797
22807
  }),
@@ -22821,7 +22831,7 @@ ${s.textContent ?? ""}
22821
22831
  onMouseDown: (h) => {
22822
22832
  h.preventDefault(), o();
22823
22833
  },
22824
- children: [/* @__PURE__ */ e(G, { name: "link" }), " Link"]
22834
+ children: [/* @__PURE__ */ e(E, { name: "link" }), " Link"]
22825
22835
  })
22826
22836
  })
22827
22837
  }),
@@ -22852,7 +22862,7 @@ ${s.textContent ?? ""}
22852
22862
  ]
22853
22863
  }), Ya = ({ advanced: t = !1, error: c, format: l = "html", id: a, label: s, onBlur: o, onChange: i, placeholder: n, required: d = !1, value: h }) => {
22854
22864
  const m = Y(null), p = Y(!1), g = Y(null), [w, v] = z(/* @__PURE__ */ new Set());
22855
- U(() => {
22865
+ F(() => {
22856
22866
  const Q = m.current;
22857
22867
  if (!Q || p.current) return;
22858
22868
  const r1 = h ?? "";
@@ -22870,7 +22880,7 @@ ${s.textContent ?? ""}
22870
22880
  editorRef: m,
22871
22881
  snapshotForUndo: f,
22872
22882
  emitChange: u
22873
- }), { activeTable: A, tableToolbarPos: D, showTableToolbar: P, hideTableToolbar: O, addRowAbove: s1, addRowBelow: V, removeRow: X, addColumnLeft: i1, addColumnRight: I, removeColumn: $, deleteTable: p1 } = rl({
22883
+ }), { activeTable: A, tableToolbarPos: D, showTableToolbar: P, hideTableToolbar: O, addRowAbove: s1, addRowBelow: V, removeRow: X, addColumnLeft: a1, addColumnRight: I, removeColumn: $, deleteTable: p1 } = rl({
22874
22884
  editorRef: m,
22875
22885
  snapshotForUndo: f,
22876
22886
  emitChange: u
@@ -23019,7 +23029,7 @@ ${s.textContent ?? ""}
23019
23029
  addRowAbove: s1,
23020
23030
  addRowBelow: V,
23021
23031
  removeRow: X,
23022
- addColumnLeft: i1,
23032
+ addColumnLeft: a1,
23023
23033
  addColumnRight: I,
23024
23034
  removeColumn: $,
23025
23035
  deleteTable: p1
@@ -23048,7 +23058,7 @@ ${s.textContent ?? ""}
23048
23058
  });
23049
23059
  }, Xa = ({ scrollContainer: t, scrollThreshold: c = 200, className: l }) => {
23050
23060
  const [a, s] = z(!1);
23051
- U(() => {
23061
+ F(() => {
23052
23062
  const i = t ?? window, n = () => {
23053
23063
  s((t ? t.scrollTop : window.scrollY) > c);
23054
23064
  };
@@ -23076,12 +23086,12 @@ ${s.textContent ?? ""}
23076
23086
  })
23077
23087
  })
23078
23088
  }) : null;
23079
- }, Z2 = w0(null), G2 = () => f0(Z2), Ka = () => {
23080
- const t = G2();
23089
+ }, I2 = C0(null), j2 = () => y0(I2), Ka = () => {
23090
+ const t = j2();
23081
23091
  if (!t) throw new Error("useSidebar must be used within a SidebarProvider");
23082
23092
  return t;
23083
23093
  }, Qa = ({ children: t }) => {
23084
- const { isMobile: c } = h0(), [l, a] = z(!1), s = j(() => a((d) => !d), []), o = j(() => a(!0), []), i = j(() => a(!1), []), n = m1(() => ({
23094
+ const { isMobile: c } = m0(), [l, a] = z(!1), s = j(() => a((d) => !d), []), o = j(() => a(!0), []), i = j(() => a(!1), []), n = m1(() => ({
23085
23095
  isMobile: c,
23086
23096
  isOpen: l,
23087
23097
  toggle: s,
@@ -23094,12 +23104,12 @@ ${s.textContent ?? ""}
23094
23104
  o,
23095
23105
  i
23096
23106
  ]);
23097
- return /* @__PURE__ */ e(Z2.Provider, {
23107
+ return /* @__PURE__ */ e(I2.Provider, {
23098
23108
  value: n,
23099
23109
  children: t
23100
23110
  });
23101
23111
  }, Ja = ({ sections: t, width: c = "280px", className: l = "", appHeaderProps: a, renderItem: s, isOpen: o, onClose: i, isMobile: n, showOverlay: d = !0, contained: h = !1, shadow: m = "none", searchPlaceholder: p }) => {
23102
- const [g, w] = z(""), v = G2(), u = n ?? v?.isMobile ?? !1, f = o ?? (u ? v?.isOpen ?? !1 : !0), C = i ?? v?.close ?? (() => {
23112
+ const [g, w] = z(""), v = j2(), u = n ?? v?.isMobile ?? !1, f = o ?? (u ? v?.isOpen ?? !1 : !0), C = i ?? v?.close ?? (() => {
23103
23113
  }), x = p && g ? t.map((y) => ({
23104
23114
  ...y,
23105
23115
  items: y.items.filter((H) => H.label.toLowerCase().includes(g.toLowerCase()))
@@ -23124,7 +23134,7 @@ ${s.textContent ?? ""}
23124
23134
  children: [
23125
23135
  y.icon && /* @__PURE__ */ e("span", {
23126
23136
  className: "sidebar__link-icon",
23127
- children: /* @__PURE__ */ e(G, { name: y.icon })
23137
+ children: /* @__PURE__ */ e(E, { name: y.icon })
23128
23138
  }),
23129
23139
  y.emoji && /* @__PURE__ */ e("span", {
23130
23140
  className: "sidebar__link-emoji",
@@ -23154,7 +23164,7 @@ ${s.textContent ?? ""}
23154
23164
  className: b,
23155
23165
  style: _,
23156
23166
  children: [
23157
- a && /* @__PURE__ */ e(M2, {
23167
+ a && /* @__PURE__ */ e(L2, {
23158
23168
  ...a,
23159
23169
  className: ["sidebar__app-header", a.className].filter(Boolean).join(" ")
23160
23170
  }),
@@ -23177,7 +23187,7 @@ ${s.textContent ?? ""}
23177
23187
  className: "sidebar__section-title-row",
23178
23188
  children: [y.icon && /* @__PURE__ */ e("span", {
23179
23189
  className: "sidebar__section-icon",
23180
- children: /* @__PURE__ */ e(G, { name: y.icon })
23190
+ children: /* @__PURE__ */ e(E, { name: y.icon })
23181
23191
  }), /* @__PURE__ */ r("div", {
23182
23192
  className: "sidebar__section-copy",
23183
23193
  children: [y.title && /* @__PURE__ */ e("span", {
@@ -23326,7 +23336,7 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
23326
23336
  });
23327
23337
  }, ci = ({ children: t, panel: c, isPanelOpen: l, onPanelClose: a, panelTitle: s, defaultLeftPercent: o = 55, minLeftPercent: i = 25, minRightPercent: n = 20, className: d = "" }) => {
23328
23338
  const [h, m] = z(o), p = Y(null), g = Y(!1);
23329
- U(() => (l ? document.body.classList.add("split-panel-active") : document.body.classList.remove("split-panel-active"), () => {
23339
+ F(() => (l ? document.body.classList.add("split-panel-active") : document.body.classList.remove("split-panel-active"), () => {
23330
23340
  document.body.classList.remove("split-panel-active");
23331
23341
  }), [l]);
23332
23342
  const w = j((v) => {
@@ -23340,7 +23350,7 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
23340
23350
  };
23341
23351
  window.addEventListener("mousemove", u), window.addEventListener("mouseup", f);
23342
23352
  }, [i, n]);
23343
- return U(() => {
23353
+ return F(() => {
23344
23354
  const v = (u) => {
23345
23355
  u.key === "Escape" && l && a();
23346
23356
  };
@@ -23385,7 +23395,7 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
23385
23395
  children: t
23386
23396
  });
23387
23397
  }, sl = (t, c, l) => {
23388
- const a = `${V0(c)}%`;
23398
+ const a = `${S0(c)}%`;
23389
23399
  return t.label && l ? `${t.label} - ${a}` : t.label ? t.label : a;
23390
23400
  }, li = ({ animated: t = !1, height: c, normalize: l = !0, orientation: a = "horizontal", segments: s, separators: o = !1, showLabels: i = !0, showPercentage: n = !0, thin: d = !1, width: h }) => {
23391
23401
  const m = m1(() => {
@@ -23453,7 +23463,7 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
23453
23463
  children: [/* @__PURE__ */ e("div", {
23454
23464
  className: "sticky-bar__content",
23455
23465
  children: t
23456
- }), s && /* @__PURE__ */ e(F, {
23466
+ }), s && /* @__PURE__ */ e(q, {
23457
23467
  className: "sticky-bar__close",
23458
23468
  icon: "clear",
23459
23469
  onClick: s,
@@ -23463,13 +23473,13 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
23463
23473
  children: o
23464
23474
  })]
23465
23475
  }) : null;
23466
- function h2({ state: t }) {
23476
+ function p2({ state: t }) {
23467
23477
  return /* @__PURE__ */ e("span", {
23468
23478
  className: `suggestions-list__sort-icon suggestions-list__sort-icon--${t}`,
23469
- children: /* @__PURE__ */ e(G, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
23479
+ children: /* @__PURE__ */ e(E, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
23470
23480
  });
23471
23481
  }
23472
- var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s = !1, onRowClick: o }) => {
23482
+ var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s = !1, onRowClick: o }) => {
23473
23483
  const [i, n] = z(!1), [d, h] = z(!1), [m, p] = z(""), [g, w] = z(null), [v, u] = z("asc"), f = m1(() => m.trim() ? t.filter((y) => y.name.toLowerCase().includes(m.toLowerCase())) : t, [t, m]), C = m1(() => {
23474
23484
  if (!g) return f;
23475
23485
  const y = [...f].sort((H, S) => {
@@ -23481,7 +23491,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
23481
23491
  f,
23482
23492
  g,
23483
23493
  v
23484
- ]), x = m1(() => d ? [...C] : C.slice(0, d2), [C, d]), b = C.length > d2, M = () => {
23494
+ ]), x = m1(() => d ? [...C] : C.slice(0, v2), [C, d]), b = C.length > v2, M = () => {
23485
23495
  n(!i);
23486
23496
  }, _ = j(() => {
23487
23497
  h(!d);
@@ -23511,12 +23521,12 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
23511
23521
  type: "button",
23512
23522
  className: "list-suggestions-list-header-cell list-suggestions-list-header-cell--name",
23513
23523
  onClick: () => N("name"),
23514
- children: ["Name", /* @__PURE__ */ e(h2, { state: g === "name" ? v : "unsorted" })]
23524
+ children: ["Name", /* @__PURE__ */ e(p2, { state: g === "name" ? v : "unsorted" })]
23515
23525
  }), /* @__PURE__ */ r("button", {
23516
23526
  type: "button",
23517
23527
  className: "list-suggestions-list-header-cell list-suggestions-list-header-cell--value",
23518
23528
  onClick: () => N("value"),
23519
- children: ["Value", /* @__PURE__ */ e(h2, { state: g === "value" ? v : "unsorted" })]
23529
+ children: ["Value", /* @__PURE__ */ e(p2, { state: g === "value" ? v : "unsorted" })]
23520
23530
  })]
23521
23531
  }),
23522
23532
  x.map((y, H) => /* @__PURE__ */ r("div", {
@@ -23527,7 +23537,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
23527
23537
  o && (S.key === "Enter" || S.key === " ") && (S.preventDefault(), o(y));
23528
23538
  },
23529
23539
  children: [/* @__PURE__ */ e("div", { children: y.name }), /* @__PURE__ */ r("div", { children: [
23530
- typeof y.value == "number" && V0(y.value),
23540
+ typeof y.value == "number" && S0(y.value),
23531
23541
  typeof y.value == "string" && y.value,
23532
23542
  y.unit
23533
23543
  ] })]
@@ -23560,7 +23570,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
23560
23570
  ]);
23561
23571
  return /* @__PURE__ */ r("div", {
23562
23572
  className: "suggestions-list",
23563
- children: [/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(F, {
23573
+ children: [/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(q, {
23564
23574
  icon: i ? "caret-up" : "caret-down",
23565
23575
  onClick: M,
23566
23576
  children: [
@@ -23571,7 +23581,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
23571
23581
  ]
23572
23582
  }) }), i && L]
23573
23583
  });
23574
- }, m2 = ({ checked: t = !1, className: c, disabled: l = !1, offLabel: a = "Off", onChange: s, onLabel: o = "On", showLabels: i = !0, size: n = "medium", variant: d = "default" }) => {
23584
+ }, g2 = ({ checked: t = !1, className: c, disabled: l = !1, offLabel: a = "Off", onChange: s, onLabel: o = "On", showLabels: i = !0, size: n = "medium", variant: d = "default" }) => {
23575
23585
  const h = () => {
23576
23586
  !l && s && s(!t);
23577
23587
  }, m = (p) => {
@@ -23590,7 +23600,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
23590
23600
  }), /* @__PURE__ */ e("div", { className: "toggle-switch__thumb" })]
23591
23601
  })
23592
23602
  });
23593
- }, o0 = [
23603
+ }, h0 = [
23594
23604
  {
23595
23605
  value: "arctic-blue",
23596
23606
  label: "Arctic Blue",
@@ -24096,7 +24106,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24096
24106
  fontUrl: "https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap",
24097
24107
  fontUrlMono: "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap"
24098
24108
  }
24099
- ], p2 = /* @__PURE__ */ new Set([
24109
+ ], u2 = /* @__PURE__ */ new Set([
24100
24110
  "arctic-blue",
24101
24111
  "crimson-dusk",
24102
24112
  "frost-petal",
@@ -24123,7 +24133,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24123
24133
  "sandy-parchment",
24124
24134
  "terracotta-kitchen",
24125
24135
  "vital-aurora"
24126
- ]), dl = (t) => hl.has(t) ? "light" : "dark", ml = (t) => o0.find((c) => c.value === t), pl = [
24136
+ ]), dl = (t) => hl.has(t) ? "light" : "dark", ml = (t) => h0.find((c) => c.value === t), pl = [
24127
24137
  {
24128
24138
  value: "all",
24129
24139
  label: "All"
@@ -24137,7 +24147,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24137
24147
  label: "Dark"
24138
24148
  }
24139
24149
  ], oi = ({ isOpen: t, onClose: c, allowedThemes: l, currentApp: a, showEffects: s = !0, showSearch: o = !0, showFavorites: i = !0, showAppearanceFilter: n = !0 }) => {
24140
- const { theme: d, effects: h, setPreviewTheme: m, setPreviewEffects: p, commitPreview: g, clearPreview: w } = b2(), v = ["Card", "Modal"], u = [
24150
+ const { theme: d, effects: h, setPreviewTheme: m, setPreviewEffects: p, commitPreview: g, clearPreview: w } = k2(), v = ["Card", "Modal"], u = [
24141
24151
  {
24142
24152
  label: "None",
24143
24153
  value: ""
@@ -24159,14 +24169,14 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24159
24169
  value: "glow-effect"
24160
24170
  }
24161
24171
  ], [f, C] = z(""), [x, b] = z(!1), [M, _] = z(!1), [N, L] = z("all"), y = Y(null), H = Y(!1), S = a?.trim().toLowerCase() ?? "", k = m1(() => {
24162
- let V = o0;
24172
+ let V = h0;
24163
24173
  if (l && l.length > 0) {
24164
24174
  const X = new Set(l);
24165
- V = V.filter((i1) => X.has(i1.value));
24175
+ V = V.filter((a1) => X.has(a1.value));
24166
24176
  }
24167
- if (x && (V = V.filter((X) => p2.has(X.value))), M && S && (V = V.filter((X) => (X.recommendedApps ?? []).some((i1) => i1.toLowerCase() === S))), N !== "all" && (V = V.filter((X) => dl(X.value) === N)), f.trim()) {
24177
+ if (x && (V = V.filter((X) => u2.has(X.value))), M && S && (V = V.filter((X) => (X.recommendedApps ?? []).some((a1) => a1.toLowerCase() === S))), N !== "all" && (V = V.filter((X) => dl(X.value) === N)), f.trim()) {
24168
24178
  const X = f.toLowerCase().trim();
24169
- V = V.filter((i1) => i1.label.toLowerCase().includes(X) || (i1.recommendedApps ?? []).some((I) => I.toLowerCase().includes(X)));
24179
+ V = V.filter((a1) => a1.label.toLowerCase().includes(X) || (a1.recommendedApps ?? []).some((I) => I.toLowerCase().includes(X)));
24170
24180
  }
24171
24181
  return V;
24172
24182
  }, [
@@ -24177,9 +24187,9 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24177
24187
  N,
24178
24188
  l
24179
24189
  ]);
24180
- U(() => {
24190
+ F(() => {
24181
24191
  t ? (C(""), b(!1), _(!1), L("all")) : H.current = !1;
24182
- }, [t]), U(() => {
24192
+ }, [t]), F(() => {
24183
24193
  if (!t || f || x || M || N !== "all" || H.current) return;
24184
24194
  const V = window.requestAnimationFrame(() => {
24185
24195
  y.current?.scrollIntoView({
@@ -24204,15 +24214,15 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24204
24214
  components: h.components
24205
24215
  });
24206
24216
  }, P = (V, X) => {
24207
- const i1 = X ? [...h.components, V] : h.components.filter((I) => I !== V);
24217
+ const a1 = X ? [...h.components, V] : h.components.filter((I) => I !== V);
24208
24218
  p({
24209
24219
  effect: h.effect,
24210
- components: i1
24220
+ components: a1
24211
24221
  });
24212
24222
  }, O = () => {
24213
24223
  w(), c();
24214
24224
  };
24215
- return /* @__PURE__ */ e(A2, {
24225
+ return /* @__PURE__ */ e(T2, {
24216
24226
  isOpen: t,
24217
24227
  onClose: O,
24218
24228
  title: "Theme Settings",
@@ -24250,14 +24260,14 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24250
24260
  value: f,
24251
24261
  onChange: C
24252
24262
  }),
24253
- a && /* @__PURE__ */ e(m2, {
24263
+ a && /* @__PURE__ */ e(g2, {
24254
24264
  checked: M,
24255
24265
  onChange: _,
24256
24266
  onLabel: `For ${a}`,
24257
24267
  offLabel: `For ${a}`,
24258
24268
  size: "small"
24259
24269
  }),
24260
- i && /* @__PURE__ */ e(m2, {
24270
+ i && /* @__PURE__ */ e(g2, {
24261
24271
  checked: x,
24262
24272
  onChange: b,
24263
24273
  onLabel: "Favorites",
@@ -24289,7 +24299,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24289
24299
  className: "theme-settings__preview",
24290
24300
  "data-theme": V.value,
24291
24301
  children: [
24292
- p2.has(V.value) && /* @__PURE__ */ e("span", {
24302
+ u2.has(V.value) && /* @__PURE__ */ e("span", {
24293
24303
  className: "theme-settings__favorite-badge",
24294
24304
  children: "⭐"
24295
24305
  }),
@@ -24328,7 +24338,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24328
24338
  children: [/* @__PURE__ */ e("label", {
24329
24339
  htmlFor: "effect-selector",
24330
24340
  children: "Component Effect"
24331
- }), /* @__PURE__ */ e(y0, {
24341
+ }), /* @__PURE__ */ e(x0, {
24332
24342
  id: "effect-selector",
24333
24343
  name: "effect",
24334
24344
  options: u,
@@ -24340,7 +24350,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24340
24350
  className: "theme-settings__section",
24341
24351
  children: [/* @__PURE__ */ e("label", { children: "Apply Effect To:" }), /* @__PURE__ */ e("div", {
24342
24352
  className: "theme-settings__components",
24343
- children: v.map((V) => /* @__PURE__ */ e(s0, {
24353
+ children: v.map((V) => /* @__PURE__ */ e(d0, {
24344
24354
  label: V,
24345
24355
  checked: h.components.includes(V),
24346
24356
  onChange: (X) => P(V, X),
@@ -24351,18 +24361,18 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24351
24361
  })
24352
24362
  })
24353
24363
  });
24354
- }, v2 = "theme-font-link", g2 = "theme-font-link-display", u2 = "theme-font-link-mono", si = ({ children: t, theme: c, effects: l, onSave: a, allowedThemes: s }) => {
24364
+ }, w2 = "theme-font-link", f2 = "theme-font-link-display", C2 = "theme-font-link-mono", si = ({ children: t, theme: c, effects: l, onSave: a, allowedThemes: s }) => {
24355
24365
  const [o, i] = z(null), [n, d] = z(null), [h, m] = z(!1), p = o ?? c, g = n ?? l;
24356
- U(() => {
24366
+ F(() => {
24357
24367
  document.documentElement.setAttribute("data-theme", p);
24358
24368
  const b = ml(p);
24359
24369
  if (b) {
24360
- let M = document.getElementById(v2);
24361
- M || (M = document.createElement("link"), M.id = v2, M.rel = "stylesheet", document.head.appendChild(M)), M.href = b.fontUrl;
24362
- let _ = document.getElementById(g2);
24363
- b.fontUrlDisplay ? (_ || (_ = document.createElement("link"), _.id = g2, _.rel = "stylesheet", document.head.appendChild(_)), _.href = b.fontUrlDisplay) : _?.remove();
24364
- let N = document.getElementById(u2);
24365
- b.fontUrlMono ? (N || (N = document.createElement("link"), N.id = u2, N.rel = "stylesheet", document.head.appendChild(N)), N.href = b.fontUrlMono) : N?.remove();
24370
+ let M = document.getElementById(w2);
24371
+ M || (M = document.createElement("link"), M.id = w2, M.rel = "stylesheet", document.head.appendChild(M)), M.href = b.fontUrl;
24372
+ let _ = document.getElementById(f2);
24373
+ b.fontUrlDisplay ? (_ || (_ = document.createElement("link"), _.id = f2, _.rel = "stylesheet", document.head.appendChild(_)), _.href = b.fontUrlDisplay) : _?.remove();
24374
+ let N = document.getElementById(C2);
24375
+ b.fontUrlMono ? (N || (N = document.createElement("link"), N.id = C2, N.rel = "stylesheet", document.head.appendChild(N)), N.href = b.fontUrlMono) : N?.remove();
24366
24376
  }
24367
24377
  }, [p]);
24368
24378
  const w = j((b) => {
@@ -24372,7 +24382,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24372
24382
  }, []), u = j(() => {
24373
24383
  i(null), d(null);
24374
24384
  }, []);
24375
- U(() => {
24385
+ F(() => {
24376
24386
  const b = (_) => {
24377
24387
  if (!(_ instanceof HTMLElement)) return !1;
24378
24388
  const N = _.tagName;
@@ -24381,7 +24391,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24381
24391
  if (!(_.ctrlKey || _.metaKey || _.altKey) && !b(_.target))
24382
24392
  if (_.key === "[" || _.key === "]") {
24383
24393
  _.preventDefault();
24384
- const N = o0.map((H) => H.value), L = s && s.length > 0 ? N.filter((H) => s.includes(H)) : N;
24394
+ const N = h0.map((H) => H.value), L = s && s.length > 0 ? N.filter((H) => s.includes(H)) : N;
24385
24395
  if (L.length === 0) return;
24386
24396
  const y = L.indexOf(p);
24387
24397
  i(L[((y === -1 ? 0 : y) + (_.key === "]" ? 1 : -1) + L.length) % L.length]);
@@ -24393,7 +24403,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24393
24403
  o,
24394
24404
  s
24395
24405
  ]);
24396
- const f = o0.findIndex((b) => b.value === p), C = f >= 0 ? o0[f].label : p, x = j(() => {
24406
+ const f = h0.findIndex((b) => b.value === p), C = f >= 0 ? h0[f].label : p, x = j(() => {
24397
24407
  a?.({
24398
24408
  theme: p,
24399
24409
  effects: g
@@ -24403,7 +24413,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24403
24413
  g,
24404
24414
  a
24405
24415
  ]);
24406
- return /* @__PURE__ */ r(y2.Provider, {
24416
+ return /* @__PURE__ */ r(M2.Provider, {
24407
24417
  value: {
24408
24418
  theme: p,
24409
24419
  effects: g,
@@ -24443,7 +24453,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24443
24453
  children: [
24444
24454
  f + 1,
24445
24455
  "/",
24446
- o0.length
24456
+ h0.length
24447
24457
  ]
24448
24458
  }),
24449
24459
  /* @__PURE__ */ e("div", {
@@ -24524,19 +24534,19 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24524
24534
  }, i.id))
24525
24535
  }), gl = (t, c) => Math.floor(Math.random() * (c - t + 1) + t), di = ({ list: t }) => {
24526
24536
  const c = gl(0, t.length - 1);
24527
- return /* @__PURE__ */ r(_2, {
24537
+ return /* @__PURE__ */ r(V2, {
24528
24538
  className: "tips-of-the-day",
24529
24539
  children: [
24530
24540
  /* @__PURE__ */ r("h3", { children: [
24531
- /* @__PURE__ */ e(G, { name: "sparkle" }),
24541
+ /* @__PURE__ */ e(E, { name: "sparkle" }),
24532
24542
  " Tip Of The Day ",
24533
- /* @__PURE__ */ e(G, { name: "sparkle" })
24543
+ /* @__PURE__ */ e(E, { name: "sparkle" })
24534
24544
  ] }),
24535
24545
  " ",
24536
24546
  /* @__PURE__ */ e("h4", { children: t[c] })
24537
24547
  ]
24538
24548
  });
24539
- }, E2 = ({ message: t, type: c = "success", onClose: l, position: a = "top-right", showDismissButton: s = !0, timeout: o = 3e3, action: i }) => (U(() => {
24549
+ }, P2 = ({ message: t, type: c = "success", onClose: l, position: a = "top-right", showDismissButton: s = !0, timeout: o = 3e3, action: i }) => (F(() => {
24540
24550
  const n = setTimeout(() => {
24541
24551
  l();
24542
24552
  }, o);
@@ -24558,7 +24568,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24558
24568
  children: /* @__PURE__ */ e("button", {
24559
24569
  className: "toast__close",
24560
24570
  onClick: l,
24561
- children: /* @__PURE__ */ e(G, {
24571
+ children: /* @__PURE__ */ e(E, {
24562
24572
  name: "clear",
24563
24573
  size: "sm"
24564
24574
  })
@@ -24566,7 +24576,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24566
24576
  })
24567
24577
  ]
24568
24578
  })), mi = ({ activeVariant: t = "warning", state: c, onToggleChange: l, states: a, layout: s = "buttons", size: o = "medium" }) => {
24569
- const { isAtLeast: i } = h0();
24579
+ const { isAtLeast: i } = m0();
24570
24580
  return s === "cards" ? /* @__PURE__ */ e("div", {
24571
24581
  className: "toggle-buttons toggle-buttons--cards",
24572
24582
  children: a.map((n) => {
@@ -24576,7 +24586,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24576
24586
  onClick: () => l(n.key),
24577
24587
  children: [n.icon && /* @__PURE__ */ e("span", {
24578
24588
  className: "toggle-buttons__card-icon",
24579
- children: /* @__PURE__ */ e(G, {
24589
+ children: /* @__PURE__ */ e(E, {
24580
24590
  name: n.icon,
24581
24591
  size: "xl"
24582
24592
  })
@@ -24592,7 +24602,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24592
24602
  })
24593
24603
  }) : /* @__PURE__ */ e("div", {
24594
24604
  className: "toggle-buttons",
24595
- children: a.map((n, d) => /* @__PURE__ */ e(F, {
24605
+ children: a.map((n, d) => /* @__PURE__ */ e(q, {
24596
24606
  size: o,
24597
24607
  variant: c === n.key ? t : "default",
24598
24608
  icon: n.icon,
@@ -24600,16 +24610,16 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24600
24610
  children: i("tablet") ? n.label : ""
24601
24611
  }, `btn-toggle2-${d}-${n}`))
24602
24612
  });
24603
- }, L0 = "::", ul = (t) => typeof t == "object" && t.label ? t.label : "Filters", wl = (t) => "fields" in t ? t.fields.flatMap((c) => [{
24604
- value: `${c.value}${L0}asc`,
24613
+ }, N0 = "::", ul = (t) => typeof t == "object" && t.label ? t.label : "Filters", wl = (t) => "fields" in t ? t.fields.flatMap((c) => [{
24614
+ value: `${c.value}${N0}asc`,
24605
24615
  label: c.label,
24606
24616
  suffixIcon: "arrow-up"
24607
24617
  }, {
24608
- value: `${c.value}${L0}desc`,
24618
+ value: `${c.value}${N0}desc`,
24609
24619
  label: c.label,
24610
24620
  suffixIcon: "arrow-down"
24611
- }]) : t.options, fl = (t) => "fields" in t ? t.value ? `${t.value.field}${L0}${t.value.direction}` : null : t.value, pi = ({ children: t, className: c = "", controlPanelToggle: l, heading: a, noCard: s = !1, menuItems: o, notifications: i, search: n, sort: d }) => {
24612
- const h = F0(), m = !!(l && h?.isMobile), p = [
24621
+ }]) : t.options, fl = (t) => "fields" in t ? t.value ? `${t.value.field}${N0}${t.value.direction}` : null : t.value, pi = ({ children: t, className: c = "", controlPanelToggle: l, heading: a, noCard: s = !1, menuItems: o, notifications: i, search: n, sort: d }) => {
24622
+ const h = X0(), m = !!(l && h?.isMobile), p = [
24613
24623
  "memobit-toolbar",
24614
24624
  s ? "memobit-toolbar--no-card" : "",
24615
24625
  c
@@ -24620,7 +24630,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24620
24630
  return;
24621
24631
  }
24622
24632
  if ("fields" in d) {
24623
- const u = String(v.value), f = u.lastIndexOf(L0), C = u.substring(0, f), x = u.substring(f + 2);
24633
+ const u = String(v.value), f = u.lastIndexOf(N0), C = u.substring(0, f), x = u.substring(f + 2);
24624
24634
  d.onChange({
24625
24635
  field: C,
24626
24636
  direction: x
@@ -24633,7 +24643,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24633
24643
  return /* @__PURE__ */ r("div", {
24634
24644
  className: p,
24635
24645
  children: [
24636
- m && /* @__PURE__ */ e(F, {
24646
+ m && /* @__PURE__ */ e(q, {
24637
24647
  className: "memobit-toolbar__control-panel-toggle",
24638
24648
  icon: "menu-hamburger",
24639
24649
  onClick: h?.toggle,
@@ -24648,7 +24658,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24648
24658
  className: "memobit-toolbar__heading-icon",
24649
24659
  children: [
24650
24660
  a.svg,
24651
- a.icon && /* @__PURE__ */ e(G, { name: a.icon }),
24661
+ a.icon && /* @__PURE__ */ e(E, { name: a.icon }),
24652
24662
  a.emoji
24653
24663
  ]
24654
24664
  }), /* @__PURE__ */ r("div", {
@@ -24678,7 +24688,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24678
24688
  }),
24679
24689
  d && /* @__PURE__ */ e("div", {
24680
24690
  className: ["memobit-toolbar__sort", d.className].filter(Boolean).join(" "),
24681
- children: /* @__PURE__ */ e(y0, {
24691
+ children: /* @__PURE__ */ e(x0, {
24682
24692
  highlighted: d.highlighted,
24683
24693
  label: d.label,
24684
24694
  name: d.name ?? "toolbar-sort",
@@ -24744,7 +24754,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24744
24754
  className: "tour-hud__btn",
24745
24755
  disabled: l === 0,
24746
24756
  onClick: i,
24747
- children: [/* @__PURE__ */ e(G, {
24757
+ children: [/* @__PURE__ */ e(E, {
24748
24758
  name: "arrow-left",
24749
24759
  size: "sm"
24750
24760
  }), "Prev"]
@@ -24754,7 +24764,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24754
24764
  className: "tour-hud__btn",
24755
24765
  disabled: l >= a - 1,
24756
24766
  onClick: n,
24757
- children: ["Next", /* @__PURE__ */ e(G, {
24767
+ children: ["Next", /* @__PURE__ */ e(E, {
24758
24768
  name: "arrow-right",
24759
24769
  size: "sm"
24760
24770
  })]
@@ -24781,7 +24791,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24781
24791
  strokeLinecap: "round",
24782
24792
  strokeLinejoin: "round"
24783
24793
  })
24784
- }), I2 = ({ node: t, depth: c, selectable: l, showGuides: a, animated: s, selectedId: o, onSelect: i }) => {
24794
+ }), W2 = ({ node: t, depth: c, selectable: l, showGuides: a, animated: s, selectedId: o, onSelect: i }) => {
24785
24795
  const [n, d] = z(t.defaultExpanded ?? !1), h = Array.isArray(t.children) && t.children.length > 0, m = l && o === t.id, p = j((g) => {
24786
24796
  t.disabled || "key" in g && g.key !== "Enter" && g.key !== " " || (h && d((w) => !w), l && i(t));
24787
24797
  }, [
@@ -24829,7 +24839,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24829
24839
  n ? "tree__children--open" : "",
24830
24840
  s ? "tree__children--animated" : ""
24831
24841
  ].filter(Boolean).join(" "),
24832
- children: t.children.map((g) => /* @__PURE__ */ e(I2, {
24842
+ children: t.children.map((g) => /* @__PURE__ */ e(W2, {
24833
24843
  node: g,
24834
24844
  depth: c + 1,
24835
24845
  selectable: l,
@@ -24845,7 +24855,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24845
24855
  }, [l]);
24846
24856
  return /* @__PURE__ */ e("ul", {
24847
24857
  className: ["tree", i].filter(Boolean).join(" "),
24848
- children: t.map((m) => /* @__PURE__ */ e(I2, {
24858
+ children: t.map((m) => /* @__PURE__ */ e(W2, {
24849
24859
  node: m,
24850
24860
  depth: 0,
24851
24861
  selectable: c,
@@ -24962,10 +24972,10 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24962
24972
  })
24963
24973
  ]
24964
24974
  });
24965
- }, j2 = w0(void 0);
24975
+ }, U2 = C0(void 0);
24966
24976
  function wi({ children: t, config: c }) {
24967
24977
  const [l, a] = z(null), [s, o] = z(!0);
24968
- U(() => {
24978
+ F(() => {
24969
24979
  (async () => {
24970
24980
  try {
24971
24981
  const h = await fetch(`${c.apiBaseUrl}/auth/verify`, {
@@ -25029,7 +25039,7 @@ function wi({ children: t, config: c }) {
25029
25039
  a(null);
25030
25040
  }
25031
25041
  }, [c.apiBaseUrl]);
25032
- return /* @__PURE__ */ e(j2.Provider, {
25042
+ return /* @__PURE__ */ e(U2.Provider, {
25033
25043
  value: {
25034
25044
  user: l,
25035
25045
  isAuthenticated: !!l,
@@ -25041,14 +25051,14 @@ function wi({ children: t, config: c }) {
25041
25051
  children: t
25042
25052
  });
25043
25053
  }
25044
- var P2 = () => {
25045
- const t = f0(j2);
25054
+ var F2 = () => {
25055
+ const t = y0(U2);
25046
25056
  if (t === void 0) throw new Error("useAuth must be used within an AuthProvider");
25047
25057
  return t;
25048
25058
  };
25049
25059
  function fi({ isOpen: t, onClose: c }) {
25050
- const { config: l } = P2(), [a, s] = z(""), [o, i] = z(""), [n, d] = z(""), [h, m] = z(""), [p, g] = z(!1), [w, v] = z(null);
25051
- U(() => {
25060
+ const { config: l } = F2(), [a, s] = z(""), [o, i] = z(""), [n, d] = z(""), [h, m] = z(""), [p, g] = z(!1), [w, v] = z(null);
25061
+ F(() => {
25052
25062
  t && (s(""), i(""), d(""), m(""));
25053
25063
  }, [t]);
25054
25064
  const u = async () => {
@@ -25123,7 +25133,7 @@ function fi({ isOpen: t, onClose: c }) {
25123
25133
  htmlFor: "current-password",
25124
25134
  className: "ChangePasswordModal__label",
25125
25135
  children: "Current Password"
25126
- }), /* @__PURE__ */ e(k0, {
25136
+ }), /* @__PURE__ */ e(z0, {
25127
25137
  id: "current-password",
25128
25138
  value: a,
25129
25139
  onChange: (C) => s(C),
@@ -25138,7 +25148,7 @@ function fi({ isOpen: t, onClose: c }) {
25138
25148
  htmlFor: "new-password",
25139
25149
  className: "ChangePasswordModal__label",
25140
25150
  children: "New Password"
25141
- }), /* @__PURE__ */ e(k0, {
25151
+ }), /* @__PURE__ */ e(z0, {
25142
25152
  id: "new-password",
25143
25153
  value: o,
25144
25154
  onChange: (C) => i(C),
@@ -25152,7 +25162,7 @@ function fi({ isOpen: t, onClose: c }) {
25152
25162
  htmlFor: "confirm-password",
25153
25163
  className: "ChangePasswordModal__label",
25154
25164
  children: "Confirm New Password"
25155
- }), /* @__PURE__ */ e(k0, {
25165
+ }), /* @__PURE__ */ e(z0, {
25156
25166
  id: "confirm-password",
25157
25167
  value: n,
25158
25168
  onChange: (C) => d(C),
@@ -25165,7 +25175,7 @@ function fi({ isOpen: t, onClose: c }) {
25165
25175
  children: h
25166
25176
  })
25167
25177
  ]
25168
- }), w && /* @__PURE__ */ e(E2, {
25178
+ }), w && /* @__PURE__ */ e(P2, {
25169
25179
  message: w.message,
25170
25180
  type: w.type,
25171
25181
  onClose: f
@@ -25173,10 +25183,10 @@ function fi({ isOpen: t, onClose: c }) {
25173
25183
  });
25174
25184
  }
25175
25185
  function Ci({ redirectPath: t = "/" }) {
25176
- const { login: c, config: l, isAuthenticated: a } = P2(), [s, o] = z(""), [i, n] = z(""), [d, h] = z(!1), [m, p] = z(""), [g, w] = z(!1), [v, u] = z(!1);
25177
- U(() => {
25186
+ const { login: c, config: l, isAuthenticated: a } = F2(), [s, o] = z(""), [i, n] = z(""), [d, h] = z(!1), [m, p] = z(""), [g, w] = z(!1), [v, u] = z(!1);
25187
+ F(() => {
25178
25188
  a && (window.location.href = t);
25179
- }, [a, t]), U(() => {
25189
+ }, [a, t]), F(() => {
25180
25190
  if (new URLSearchParams(window.location.search).get("session_expired") === "true") {
25181
25191
  u(!0);
25182
25192
  const C = window.location.pathname;
@@ -25220,14 +25230,14 @@ function Ci({ redirectPath: t = "/" }) {
25220
25230
  autoFocus: !0,
25221
25231
  disabled: g
25222
25232
  }),
25223
- /* @__PURE__ */ e(k0, {
25233
+ /* @__PURE__ */ e(z0, {
25224
25234
  placeholder: "Password",
25225
25235
  value: i,
25226
25236
  onChange: (C) => n(C),
25227
25237
  required: !0,
25228
25238
  disabled: g
25229
25239
  }),
25230
- /* @__PURE__ */ e(s0, {
25240
+ /* @__PURE__ */ e(d0, {
25231
25241
  checked: d,
25232
25242
  onChange: (C) => h(C),
25233
25243
  label: "Keep me logged in",
@@ -25237,7 +25247,7 @@ function Ci({ redirectPath: t = "/" }) {
25237
25247
  className: "LoginPage__error",
25238
25248
  children: m
25239
25249
  }),
25240
- /* @__PURE__ */ e(F, {
25250
+ /* @__PURE__ */ e(q, {
25241
25251
  type: "submit",
25242
25252
  variant: "info",
25243
25253
  icon: "key",
@@ -25248,13 +25258,13 @@ function Ci({ redirectPath: t = "/" }) {
25248
25258
  ]
25249
25259
  })]
25250
25260
  })
25251
- }), v && /* @__PURE__ */ e(E2, {
25261
+ }), v && /* @__PURE__ */ e(P2, {
25252
25262
  message: "Your session has expired. Please log in again.",
25253
25263
  type: "warning",
25254
25264
  onClose: () => u(!1)
25255
25265
  })] });
25256
25266
  }
25257
- var g0 = class {
25267
+ var w0 = class {
25258
25268
  static getData(t, c) {
25259
25269
  try {
25260
25270
  const l = localStorage.getItem(t);
@@ -25305,7 +25315,7 @@ function yi(t, c) {
25305
25315
  const l = {
25306
25316
  pages: c.pages ?? {},
25307
25317
  theme: c.theme
25308
- }, [a, s] = z(() => g0.load(t, l)), o = j((h, m) => {
25318
+ }, [a, s] = z(() => w0.load(t, l)), o = j((h, m) => {
25309
25319
  s((p) => {
25310
25320
  const g = {
25311
25321
  ...p,
@@ -25314,7 +25324,7 @@ function yi(t, c) {
25314
25324
  [h]: m
25315
25325
  }
25316
25326
  };
25317
- return g0.save(t, g), g;
25327
+ return w0.save(t, g), g;
25318
25328
  });
25319
25329
  }, [t]), i = j((h) => {
25320
25330
  s((m) => {
@@ -25322,7 +25332,7 @@ function yi(t, c) {
25322
25332
  ...m,
25323
25333
  theme: h
25324
25334
  };
25325
- return g0.save(t, p), p;
25335
+ return w0.save(t, p), p;
25326
25336
  });
25327
25337
  }, [t]), n = j((h) => {
25328
25338
  s((m) => {
@@ -25333,10 +25343,10 @@ function yi(t, c) {
25333
25343
  [h]: l.pages[h]
25334
25344
  }
25335
25345
  };
25336
- return g0.save(t, p), p;
25346
+ return w0.save(t, p), p;
25337
25347
  });
25338
25348
  }, [t]), d = j(() => {
25339
- s(l), g0.clearAll(t);
25349
+ s(l), w0.clearAll(t);
25340
25350
  }, [t]);
25341
25351
  return {
25342
25352
  pages: a.pages,
@@ -25362,11 +25372,11 @@ var bi = (t) => new Intl.NumberFormat("en-US", {
25362
25372
  "PB"
25363
25373
  ], a = Math.min(Math.floor(Math.log(t) / Math.log(1024)), l.length - 1), s = t / 1024 ** a, o = a === 0 ? 0 : c;
25364
25374
  return `${s.toFixed(o)} ${l[a]}`;
25365
- }, xl = /[̀-ͯ]/g, W2 = (t) => t.normalize("NFD").replace(xl, "").toLowerCase(), Ml = (t) => {
25375
+ }, xl = /[̀-ͯ]/g, q2 = (t) => t.normalize("NFD").replace(xl, "").toLowerCase(), Ml = (t) => {
25366
25376
  let c = "";
25367
25377
  const l = [];
25368
25378
  for (let a = 0; a < t.length; a++) {
25369
- const s = W2(t[a]);
25379
+ const s = q2(t[a]);
25370
25380
  for (let o = 0; o < s.length; o++) l.push(a);
25371
25381
  c += s;
25372
25382
  }
@@ -25377,7 +25387,7 @@ var bi = (t) => new Intl.NumberFormat("en-US", {
25377
25387
  };
25378
25388
  function ki(t, c) {
25379
25389
  if (!c || !t) return t;
25380
- const l = W2(c);
25390
+ const l = q2(c);
25381
25391
  if (!l) return t;
25382
25392
  const { folded: a, mapping: s } = Ml(t), o = [];
25383
25393
  let i = 0;
@@ -25471,7 +25481,7 @@ var _i = (t, c, l) => {
25471
25481
  } catch {
25472
25482
  return t.trim();
25473
25483
  }
25474
- }, _l = "1.0.23", Bi = 246, Ll = "327955c", zl = "2026-07-15T04:00:13.358Z", Ri = "246", Vl = (t) => {
25484
+ }, _l = "1.0.25", Bi = 251, Ll = "d05fe3f", zl = "2026-07-18T13:19:27.300Z", Ri = "251", Vl = (t) => {
25475
25485
  const c = document.getElementById("mb-version-toast");
25476
25486
  if (c) {
25477
25487
  c.remove();
@@ -25495,7 +25505,7 @@ var _i = (t, c, l) => {
25495
25505
  const c = {
25496
25506
  ...t,
25497
25507
  lib: _l,
25498
- libBuildNumber: 246,
25508
+ libBuildNumber: 251,
25499
25509
  libCommit: Ll,
25500
25510
  libBuildDate: zl
25501
25511
  };
@@ -25574,9 +25584,9 @@ export {
25574
25584
  ir as APP_DATE_TIME_FORMAT,
25575
25585
  Zl as Accordion,
25576
25586
  Gl as AlertDialog,
25577
- M2 as AppHeader,
25578
- g0 as AppPersistenceStorage,
25579
- j2 as AuthContext,
25587
+ L2 as AppHeader,
25588
+ w0 as AppPersistenceStorage,
25589
+ U2 as AuthContext,
25580
25590
  Ci as AuthLogin,
25581
25591
  wi as AuthProvider,
25582
25592
  El as AvatarInitials,
@@ -25585,13 +25595,13 @@ export {
25585
25595
  jl as Banner,
25586
25596
  Wl as Breadcrumb,
25587
25597
  Ul as BulkActionBar,
25588
- F as Button,
25589
- _0 as Calendar,
25598
+ q as Button,
25599
+ V0 as Calendar,
25590
25600
  ca as CalendarHeatmap,
25591
- _2 as Card,
25601
+ V2 as Card,
25592
25602
  fi as ChangePasswordModal,
25593
- s0 as Checkbox,
25594
- i0 as Chip,
25603
+ d0 as Checkbox,
25604
+ o0 as Chip,
25595
25605
  la as CollapsibleSection,
25596
25606
  aa as ColorPicker,
25597
25607
  ia as CommandPalette,
@@ -25607,8 +25617,8 @@ export {
25607
25617
  Vr as DatePicker,
25608
25618
  ya as DateRangePicker,
25609
25619
  ba as DiffViewer,
25610
- A2 as Drawer,
25611
- y0 as Dropdown,
25620
+ T2 as Drawer,
25621
+ x0 as Dropdown,
25612
25622
  xa as EmojiPicker,
25613
25623
  J1 as EmptyState,
25614
25624
  Ma as ErrorBoundary,
@@ -25616,7 +25626,7 @@ export {
25616
25626
  Wr as Flag,
25617
25627
  _a as FloatButton,
25618
25628
  La as FolderBrowserModal,
25619
- G as Icon,
25629
+ E as Icon,
25620
25630
  za as InfiniteScroll,
25621
25631
  Hr as InputDate,
25622
25632
  Va as InputEmail,
@@ -25624,7 +25634,7 @@ export {
25624
25634
  Sc as InputMask,
25625
25635
  Ha as InputMaskPresets,
25626
25636
  H1 as InputNumber,
25627
- k0 as InputPassword,
25637
+ z0 as InputPassword,
25628
25638
  Ac as InputPhone,
25629
25639
  e0 as InputSearch,
25630
25640
  A1 as InputText,
@@ -25638,7 +25648,7 @@ export {
25638
25648
  Ll as LIB_COMMIT,
25639
25649
  _l as LIB_VERSION,
25640
25650
  $a as List,
25641
- $2 as Loading,
25651
+ Z2 as Loading,
25642
25652
  Tc as MenuHamburger,
25643
25653
  nc as MiniSort,
25644
25654
  Ta as MiniStatsCard,
@@ -25647,9 +25657,9 @@ export {
25647
25657
  Za as NavBar,
25648
25658
  Zc as NotificationPanel,
25649
25659
  Xt as PEDIATRIC_THRESHOLDS,
25650
- a2 as Pagination,
25660
+ o2 as Pagination,
25651
25661
  Ga as PieChart,
25652
- L2 as Popover,
25662
+ N2 as Popover,
25653
25663
  ja as ProgressBar,
25654
25664
  Pa as ProgressRing,
25655
25665
  Wa as QuantitySelector,
@@ -25660,7 +25670,7 @@ export {
25660
25670
  Br as Rating,
25661
25671
  Ya as RichTextEditor,
25662
25672
  Xa as ScrollToTop,
25663
- a0 as Separator,
25673
+ n0 as Separator,
25664
25674
  Ja as Sidebar,
25665
25675
  Qa as SidebarProvider,
25666
25676
  ei as SignalStrength,
@@ -25671,8 +25681,8 @@ export {
25671
25681
  ai as Stats,
25672
25682
  ii as StickyBar,
25673
25683
  ni as SuggestionsList,
25674
- o0 as THEME_CONFIGS,
25675
- y2 as ThemeContext,
25684
+ h0 as THEME_CONFIGS,
25685
+ M2 as ThemeContext,
25676
25686
  si as ThemeProvider,
25677
25687
  oi as ThemeSettings,
25678
25688
  hi as Timeline,
@@ -25680,25 +25690,25 @@ export {
25680
25690
  fa as TimelineMarkers,
25681
25691
  cc as TimelineMobileSeparator,
25682
25692
  di as TipsOfTheDay,
25683
- E2 as Toast,
25693
+ P2 as Toast,
25684
25694
  ha as ToastContainer,
25685
25695
  da as ToastProvider,
25686
25696
  mi as ToggleButtons,
25687
- m2 as ToggleSwitch,
25697
+ g2 as ToggleSwitch,
25688
25698
  pi as Toolbar,
25689
25699
  K as Tooltip,
25690
25700
  vi as TourHud,
25691
25701
  gi as Tree,
25692
25702
  ui as WHtR,
25693
25703
  ta as addDays,
25694
- u0 as addMonths,
25695
- m0 as breakpoints,
25704
+ f0 as addMonths,
25705
+ v0 as breakpoints,
25696
25706
  Jt as calculateBMI,
25697
- q0 as calculateTimelineMarkers,
25707
+ K0 as calculateTimelineMarkers,
25698
25708
  Uc as ensureHtml,
25699
25709
  Ni as extractDomainFromUrl,
25700
- c2 as foldDiacritics,
25701
- V0 as format2Digits,
25710
+ i2 as foldDiacritics,
25711
+ S0 as format2Digits,
25702
25712
  Xl as formatAppDate,
25703
25713
  Kl as formatAppDateTime,
25704
25714
  xi as formatBigNumber,
@@ -25727,7 +25737,7 @@ export {
25727
25737
  Fc as htmlToPlainText,
25728
25738
  Ai as initVersionInfo,
25729
25739
  hr as isAfter,
25730
- A0 as isBefore,
25740
+ Z0 as isBefore,
25731
25741
  Jl as isDateInRange,
25732
25742
  U1 as isSameDay,
25733
25743
  or as isToday,
@@ -25740,15 +25750,15 @@ export {
25740
25750
  Si as stripTrackingParams,
25741
25751
  Vi as truncateText,
25742
25752
  yi as useAppPersistence,
25743
- P2 as useAuth,
25744
- C2 as useBodyScrollLock,
25745
- h0 as useBreakpoint,
25746
- x2 as useComponentEffect,
25753
+ F2 as useAuth,
25754
+ x2 as useBodyScrollLock,
25755
+ m0 as useBreakpoint,
25756
+ _2 as useComponentEffect,
25747
25757
  ma as useControlPanel,
25748
- F0 as useControlPanelContext,
25758
+ X0 as useControlPanelContext,
25749
25759
  sa as usePopover,
25750
25760
  Ka as useSidebar,
25751
- b2 as useTheme,
25761
+ k2 as useTheme,
25752
25762
  _r as useToast,
25753
25763
  zc as validateEmail,
25754
25764
  $i as validateVin