@memobit/libs 1.0.41 → 1.0.43

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,5 +1,5 @@
1
- import u1, { Component as b3, Fragment as M3, createContext as _0, forwardRef as z1, useCallback as Z, useContext as L0, useEffect as O, useId as z0, useImperativeHandle as S2, useLayoutEffect as d2, useMemo as g1, useRef as X, useState as L } from "react";
2
- import { Fragment as s1, jsx as e, jsxs as c } from "react/jsx-runtime";
1
+ import u1, { Component as b3, Fragment as M3, createContext as _0, forwardRef as z1, useCallback as P, useContext as L0, useEffect as O, useId as z0, useImperativeHandle as S2, useLayoutEffect as d2, useMemo as g1, useRef as X, useState as L } from "react";
2
+ import { Fragment as n1, jsx as e, jsxs as c } from "react/jsx-runtime";
3
3
  import { createPortal as K1 } from "react-dom";
4
4
  var x3 = /* @__PURE__ */ c("svg", {
5
5
  xmlns: "http://www.w3.org/2000/svg",
@@ -9981,7 +9981,7 @@ var x3 = /* @__PURE__ */ c("svg", {
9981
9981
  storm: at,
9982
9982
  uranus: Ft,
9983
9983
  venus: Kt
9984
- }, P = ({ className: t = "", fade: r, fadeOnHover: l, name: a, pulse: h, pulseOnHover: d, size: o, spin: m, spinOnHover: n, variant: i }) => /* @__PURE__ */ e("span", {
9984
+ }, G = ({ className: t = "", fade: r, fadeOnHover: l, name: a, pulse: h, pulseOnHover: d, size: o, spin: m, spinOnHover: n, variant: i }) => /* @__PURE__ */ e("span", {
9985
9985
  className: [
9986
9986
  "icon",
9987
9987
  o ? `icon--${o}` : "",
@@ -9995,7 +9995,7 @@ var x3 = /* @__PURE__ */ c("svg", {
9995
9995
  t
9996
9996
  ].filter(Boolean).join(" "),
9997
9997
  children: ur[a]
9998
- }), fa = ({ items: t, allowMultiple: r = !1, defaultExpanded: l = [], onChange: a, className: h = "" }) => {
9998
+ }), Ca = ({ items: t, allowMultiple: r = !1, defaultExpanded: l = [], onChange: a, className: h = "" }) => {
9999
9999
  const [d, o] = L(l), m = (n) => {
10000
10000
  if (t.find((s) => s.id === n)?.disabled) return;
10001
10001
  let i;
@@ -10045,13 +10045,13 @@ var x3 = /* @__PURE__ */ c("svg", {
10045
10045
  disabled: d,
10046
10046
  children: [/* @__PURE__ */ c("span", {
10047
10047
  className: "accordion-item__title",
10048
- children: [l && /* @__PURE__ */ e(P, { name: l }), /* @__PURE__ */ e("span", {
10048
+ children: [l && /* @__PURE__ */ e(G, { name: l }), /* @__PURE__ */ e("span", {
10049
10049
  className: "accordion-item__title-text",
10050
10050
  children: r
10051
10051
  })]
10052
10052
  }), /* @__PURE__ */ e("span", {
10053
10053
  className: "accordion-item__icon",
10054
- children: /* @__PURE__ */ e(P, {
10054
+ children: /* @__PURE__ */ e(G, {
10055
10055
  name: "caret-down",
10056
10056
  size: "md"
10057
10057
  })
@@ -10106,15 +10106,15 @@ var x3 = /* @__PURE__ */ c("svg", {
10106
10106
  style: p,
10107
10107
  title: g,
10108
10108
  type: v,
10109
- children: m ? /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("span", { className: "button__spinner" }), /* @__PURE__ */ e("span", { children: r || "Loading..." })] }) : /* @__PURE__ */ c(s1, { children: [
10110
- d !== void 0 && (typeof d == "string" ? /* @__PURE__ */ e(P, {
10109
+ children: m ? /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("span", { className: "button__spinner" }), /* @__PURE__ */ e("span", { children: r || "Loading..." })] }) : /* @__PURE__ */ c(n1, { children: [
10110
+ d !== void 0 && (typeof d == "string" ? /* @__PURE__ */ e(G, {
10111
10111
  size: "lg",
10112
10112
  name: d,
10113
10113
  variant: o
10114
10114
  }) : d),
10115
10115
  i && /* @__PURE__ */ e("span", { children: i }),
10116
10116
  r && /* @__PURE__ */ e("span", { children: r }),
10117
- u !== void 0 && (typeof u == "string" ? /* @__PURE__ */ e(P, {
10117
+ u !== void 0 && (typeof u == "string" ? /* @__PURE__ */ e(G, {
10118
10118
  size: "lg",
10119
10119
  name: u,
10120
10120
  variant: o
@@ -10146,7 +10146,7 @@ var W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h,
10146
10146
  /* @__PURE__ */ c("div", {
10147
10147
  className: "modal__header",
10148
10148
  children: [/* @__PURE__ */ c("h2", { children: [
10149
- p ? /* @__PURE__ */ e(P, { name: p }) : null,
10149
+ p ? /* @__PURE__ */ e(G, { name: p }) : null,
10150
10150
  " ",
10151
10151
  s
10152
10152
  ] }), /* @__PURE__ */ e(T, {
@@ -10192,7 +10192,7 @@ var W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h,
10192
10192
  })
10193
10193
  });
10194
10194
  return u ? K1(M, document.body) : M;
10195
- }, Ca = ({ isOpen: t = !1, message: r, primary: l, title: a }) => /* @__PURE__ */ e(W1, {
10195
+ }, ya = ({ isOpen: t = !1, message: r, primary: l, title: a }) => /* @__PURE__ */ e(W1, {
10196
10196
  isOpen: t,
10197
10197
  title: a,
10198
10198
  onClose: l?.onClick ? () => l.onClick() : void 0,
@@ -10240,7 +10240,7 @@ var W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h,
10240
10240
  className: m,
10241
10241
  style: n
10242
10242
  });
10243
- }, D2 = ({ emoji: t, icon: r, svg: l, appName: a, heading: h, onClick: d, className: o = "", showSeparator: m = !0 }) => /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ c("div", {
10243
+ }, D2 = ({ emoji: t, icon: r, svg: l, appName: a, heading: h, onClick: d, className: o = "", showSeparator: m = !0 }) => /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ c("div", {
10244
10244
  className: [
10245
10245
  "app-header",
10246
10246
  d ? "app-header--clickable" : "",
@@ -10258,7 +10258,7 @@ var W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h,
10258
10258
  }),
10259
10259
  r && /* @__PURE__ */ e("span", {
10260
10260
  className: "app-header__icon",
10261
- children: /* @__PURE__ */ e(P, { name: r })
10261
+ children: /* @__PURE__ */ e(G, { name: r })
10262
10262
  }),
10263
10263
  /* @__PURE__ */ c("div", {
10264
10264
  className: "app-header__copy",
@@ -10325,7 +10325,7 @@ function fr(t) {
10325
10325
  for (const l of t) r += l.charCodeAt(0);
10326
10326
  return r % T2.length;
10327
10327
  }
10328
- var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = "" }) => {
10328
+ var ba = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = "" }) => {
10329
10329
  const h = wr(t), { background: d, color: o } = T2[fr(h)];
10330
10330
  return /* @__PURE__ */ e("div", {
10331
10331
  className: `avatar-initials avatar-initials--${r} avatar-initials--${l} ${a}`,
@@ -10339,7 +10339,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10339
10339
  children: h
10340
10340
  })
10341
10341
  });
10342
- }, ba = ({ variant: t = "default", children: r, className: l = "", size: a = "medium", customColor: h, isActive: d, onClick: o, onClear: m }) => {
10342
+ }, Ma = ({ variant: t = "default", children: r, className: l = "", size: a = "medium", customColor: h, isActive: d, onClick: o, onClear: m }) => {
10343
10343
  const n = d !== void 0 ? d ? "badge--active" : "badge--inactive" : "", i = o ? "badge--clickable" : "", s = h ? "badge-variant--custom" : `badge-variant--${t}`, p = h ? { "--badge-custom-color": h } : void 0;
10344
10344
  return /* @__PURE__ */ c("span", {
10345
10345
  className: `badge ${s} ${l} badge-size--${a} ${n} ${i}`,
@@ -10413,7 +10413,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10413
10413
  }, b = () => {
10414
10414
  M && (g.current = setTimeout(() => i(!1), y));
10415
10415
  };
10416
- return /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("span", {
10416
+ return /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("span", {
10417
10417
  ref: v,
10418
10418
  className: "tooltip-trigger",
10419
10419
  onMouseEnter: x,
@@ -10435,7 +10435,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10435
10435
  onMouseLeave: b,
10436
10436
  children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${r}` })]
10437
10437
  }), document.body)] });
10438
- }, Ma = ({ action: t, secondaryAction: r, className: l = "", description: a, dismissLabel: h = "Dismiss", onDismiss: d, showDismiss: o = !0, title: m, variant: n = "default" }) => {
10438
+ }, xa = ({ action: t, secondaryAction: r, className: l = "", description: a, dismissLabel: h = "Dismiss", onDismiss: d, showDismiss: o = !0, title: m, variant: n = "default" }) => {
10439
10439
  const [i, s] = L(!1), p = t?.variant || (n === "default" ? "default" : n);
10440
10440
  if (i) return null;
10441
10441
  const u = () => {
@@ -10474,7 +10474,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10474
10474
  className: "banner__dismiss",
10475
10475
  type: "button",
10476
10476
  onClick: u,
10477
- children: /* @__PURE__ */ e(P, {
10477
+ children: /* @__PURE__ */ e(G, {
10478
10478
  name: "clear",
10479
10479
  size: "sm"
10480
10480
  })
@@ -10736,7 +10736,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10736
10736
  }, kr = (t, r) => {
10737
10737
  for (const l of r) if (t <= l.max) return l.color;
10738
10738
  return r[r.length - 1].color;
10739
- }, _r = (t, r, l) => r === 0 ? `<${t.max}` : r === l - 1 ? `>${t.min}` : `${t.min}–${t.max}`, xa = ({ weight: t, height: r, age: l, sex: a, isSimplified: h = !1, showLabels: d = !0, showIndicator: o = !0 }) => {
10739
+ }, _r = (t, r, l) => r === 0 ? `<${t.max}` : r === l - 1 ? `>${t.min}` : `${t.min}–${t.max}`, ka = ({ weight: t, height: r, age: l, sex: a, isSimplified: h = !1, showLabels: d = !0, showIndicator: o = !0 }) => {
10740
10740
  const m = Mr(t, r), n = l !== void 0 && a !== void 0 && l >= 2 && l <= 17 ? br(...Cr[a][l]) : yr, i = xr(m, n), s = kr(m, n);
10741
10741
  return /* @__PURE__ */ c("div", {
10742
10742
  className: `horizontal-bar-container ${h ? "horizontal-bar-container--is-simplified" : ""}`,
@@ -10780,7 +10780,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10780
10780
  })
10781
10781
  ]
10782
10782
  });
10783
- }, ka = ({ items: t, separator: r = "/", className: l = "" }) => {
10783
+ }, _a = ({ items: t, separator: r = "/", className: l = "" }) => {
10784
10784
  const a = (h, d) => {
10785
10785
  h.onClick && (d.preventDefault(), h.onClick());
10786
10786
  };
@@ -10808,7 +10808,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10808
10808
  })
10809
10809
  })
10810
10810
  });
10811
- }, Lr = (t) => t.label ? `${t.label} ${t.done}/${t.total}` : `Running ${t.done}/${t.total}`, _a = ({ selectionCount: t, visible: r, label: l, progress: a, actions: h, onClear: d, clearLabel: o = "Clear", position: m = "bottom", className: n }) => r ?? t > 0 ? /* @__PURE__ */ c("div", {
10811
+ }, Lr = (t) => t.label ? `${t.label} ${t.done}/${t.total}` : `Running ${t.done}/${t.total}`, La = ({ selectionCount: t, visible: r, label: l, progress: a, actions: h, onClear: d, clearLabel: o = "Clear", position: m = "bottom", className: n }) => r ?? t > 0 ? /* @__PURE__ */ c("div", {
10812
10812
  className: [
10813
10813
  "memobit-bulk-action-bar",
10814
10814
  `memobit-bulk-action-bar--${m}`,
@@ -10838,11 +10838,11 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10838
10838
  children: o
10839
10839
  })]
10840
10840
  })]
10841
- }) : null, La = (t) => {
10841
+ }) : null, za = (t) => {
10842
10842
  if (t < 60) return `${t} min`;
10843
10843
  const r = Math.floor(t / 60), l = t % 60;
10844
10844
  return l === 0 ? `${r}h` : `${r}h ${l}min`;
10845
- }, za = (t) => {
10845
+ }, Va = (t) => {
10846
10846
  if (t == null || isNaN(t)) return "0:00";
10847
10847
  const r = Math.floor(t), l = Math.floor(r / 3600), a = Math.floor(r % 3600 / 60), h = r % 60, d = a.toString().padStart(2, "0"), o = h.toString().padStart(2, "0");
10848
10848
  return l === 0 ? `${a}:${o}` : `${l}:${d}:${o}`;
@@ -10862,25 +10862,25 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10862
10862
  ], X1 = (t, r) => {
10863
10863
  const l = t.getFullYear(), a = t.getMonth(), h = String(a + 1).padStart(2, "0"), d = zr[a], o = String(t.getDate()).padStart(2, "0"), m = String(t.getHours()).padStart(2, "0"), n = String(t.getMinutes()).padStart(2, "0"), i = String(t.getSeconds()).padStart(2, "0");
10864
10864
  return r.replace("YYYY", String(l)).replace("MMM", d).replace("MM", h).replace("DD", o).replace("HH", m).replace("mm", n).replace("ss", i);
10865
- }, Va = (t) => {
10865
+ }, Na = (t) => {
10866
10866
  const [r, l, a] = t.split("-").map(Number);
10867
10867
  return new Date(r, l - 1, a).toLocaleDateString("en-US");
10868
- }, Na = () => {
10868
+ }, Ha = () => {
10869
10869
  const t = /* @__PURE__ */ new Date();
10870
10870
  return (/* @__PURE__ */ new Date(t.getTime() - t.getTimezoneOffset() * 6e4)).toISOString().slice(0, 10);
10871
- }, Vr = "DD MMM YYYY", Nr = "DD MMM YYYY HH:mm", Ha = (t) => {
10871
+ }, Vr = "DD MMM YYYY", Nr = "DD MMM YYYY HH:mm", Sa = (t) => {
10872
10872
  const [r, l, a] = t.split("-").map(Number);
10873
10873
  return X1(new Date(r, l - 1, a), Vr);
10874
- }, Sa = (t) => {
10874
+ }, Ra = (t) => {
10875
10875
  const r = new Date(t.replace(" ", "T"));
10876
10876
  return isNaN(r.getTime()) ? t : X1(r, Nr);
10877
- }, Ra = (t) => {
10877
+ }, Ba = (t) => {
10878
10878
  const r = Math.floor(t / 365), l = Math.round((t - r * 365) / 30);
10879
10879
  return r > 0 && l > 0 ? `${r}y ${l}m` : r > 0 ? `${r}y` : `${l}m`;
10880
- }, q1 = (t, r) => t.getFullYear() === r.getFullYear() && t.getMonth() === r.getMonth() && t.getDate() === r.getDate(), Ba = (t, r, l) => {
10880
+ }, q1 = (t, r) => t.getFullYear() === r.getFullYear() && t.getMonth() === r.getMonth() && t.getDate() === r.getDate(), Aa = (t, r, l) => {
10881
10881
  const a = t.getTime();
10882
10882
  return a >= r.getTime() && a <= l.getTime();
10883
- }, Aa = (t, r) => new Date(t, r + 1, 0).getDate(), Hr = (t, r, l = 0) => {
10883
+ }, $a = (t, r) => new Date(t, r + 1, 0).getDate(), Hr = (t, r, l = 0) => {
10884
10884
  const a = new Date(t, r, 1), h = new Date(t, r + 1, 0).getDate();
10885
10885
  let d = a.getDay();
10886
10886
  l === 1 && (d = d === 0 ? 6 : d - 1);
@@ -10899,7 +10899,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10899
10899
  }, Sr = (t) => q1(t, /* @__PURE__ */ new Date()), Rr = (t) => {
10900
10900
  const r = t.getDay();
10901
10901
  return r === 0 || r === 6;
10902
- }, $a = (t, r) => {
10902
+ }, Ea = (t, r) => {
10903
10903
  const l = new Date(t);
10904
10904
  return l.setDate(l.getDate() + r), l;
10905
10905
  }, k0 = (t, r) => {
@@ -10911,7 +10911,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10911
10911
  }, Br = (t, r) => {
10912
10912
  const l = new Date(t.getFullYear(), t.getMonth(), t.getDate()), a = new Date(r.getFullYear(), r.getMonth(), r.getDate());
10913
10913
  return l.getTime() > a.getTime();
10914
- }, Ea = (t) => {
10914
+ }, Da = (t) => {
10915
10915
  if (!t) return null;
10916
10916
  const r = new Date(t);
10917
10917
  if (Number.isNaN(r.getTime())) return null;
@@ -10976,7 +10976,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10976
10976
  return m1 > j.getTime() && m1 < l1.getTime();
10977
10977
  }
10978
10978
  return !1;
10979
- }, E = (A) => l === "range" && b ? A.getTime() > b.getTime() : !1, F = (A) => A.getMonth() === z.getMonth(), n1 = (A) => {
10979
+ }, E = (A) => l === "range" && b ? A.getTime() > b.getTime() : !1, F = (A) => A.getMonth() === z.getMonth(), o1 = (A) => {
10980
10980
  if (!_(A)) {
10981
10981
  if (l === "single") r?.(A);
10982
10982
  else if (l === "range") if (!b) v ? v(A) : (V(A), r?.(void 0));
@@ -11004,7 +11004,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11004
11004
  }, a1 = () => {
11005
11005
  const A = /* @__PURE__ */ new Date(), j = new Date(A.getFullYear(), A.getMonth(), 1);
11006
11006
  p ? p(j) : f(j), y("days"), l === "single" && r?.(A);
11007
- }, G = () => {
11007
+ }, Z = () => {
11008
11008
  u && y("months");
11009
11009
  }, D = () => {
11010
11010
  u && (x(Math.floor(z.getFullYear() / O1) * O1), y("years"));
@@ -11106,10 +11106,10 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11106
11106
  children: n ? /* @__PURE__ */ e("span", {
11107
11107
  className: "calendar__header-label",
11108
11108
  children: W0[z.getMonth()]
11109
- }) : /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("button", {
11109
+ }) : /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("button", {
11110
11110
  type: "button",
11111
11111
  className: "calendar__header-button",
11112
- onClick: G,
11112
+ onClick: Z,
11113
11113
  children: W0[z.getMonth()]
11114
11114
  }), /* @__PURE__ */ e("button", {
11115
11115
  type: "button",
@@ -11139,7 +11139,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11139
11139
  children: m1
11140
11140
  }, m1))
11141
11141
  });
11142
- }, o1 = () => {
11142
+ }, s1 = () => {
11143
11143
  const A = (/* @__PURE__ */ new Date()).getMonth(), j = (/* @__PURE__ */ new Date()).getFullYear(), l1 = z.getMonth(), m1 = z.getFullYear();
11144
11144
  return /* @__PURE__ */ e("div", {
11145
11145
  className: "calendar__months-grid",
@@ -11156,8 +11156,8 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11156
11156
  children: [
11157
11157
  u && I1(),
11158
11158
  M === "years" && t1(),
11159
- M === "months" && o1(),
11160
- M === "days" && /* @__PURE__ */ c(s1, { children: [
11159
+ M === "months" && s1(),
11160
+ M === "days" && /* @__PURE__ */ c(n1, { children: [
11161
11161
  m && !n && /* @__PURE__ */ e("div", {
11162
11162
  className: "calendar__today-section",
11163
11163
  children: /* @__PURE__ */ e("button", {
@@ -11181,7 +11181,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11181
11181
  children: A.map((l1, m1) => /* @__PURE__ */ e("button", {
11182
11182
  type: "button",
11183
11183
  className: C1(l1),
11184
- onClick: () => n1(l1),
11184
+ onClick: () => o1(l1),
11185
11185
  disabled: _(l1),
11186
11186
  title: l1.toDateString(),
11187
11187
  children: l1.getDate()
@@ -11199,7 +11199,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11199
11199
  "Fri",
11200
11200
  "",
11201
11201
  ""
11202
- ], Dr = (t) => t === 0 ? "var(--card-background-accent-color)" : t === 1 ? "rgba(136, 132, 216, 0.35)" : t <= 3 ? "rgba(136, 132, 216, 0.65)" : "#8884d8", Tr = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, Da = ({ data: t, startDate: r, endDate: l, colorFn: a = Dr, countLabel: h = "event" }) => {
11202
+ ], Dr = (t) => t === 0 ? "var(--card-background-accent-color)" : t === 1 ? "rgba(136, 132, 216, 0.35)" : t <= 3 ? "rgba(136, 132, 216, 0.65)" : "#8884d8", Tr = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, Ta = ({ data: t, startDate: r, endDate: l, colorFn: a = Dr, countLabel: h = "event" }) => {
11203
11203
  const d = new Date(l ?? /* @__PURE__ */ new Date());
11204
11204
  d.setHours(0, 0, 0, 0);
11205
11205
  const o = new Date(r);
@@ -11288,13 +11288,13 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11288
11288
  className: `${u ? "card-content-hidden" : ""}`,
11289
11289
  children: [/* @__PURE__ */ c("span", {
11290
11290
  className: "card-title-content",
11291
- children: [a && /* @__PURE__ */ e(P, { name: a }), s]
11291
+ children: [a && /* @__PURE__ */ e(G, { name: a }), s]
11292
11292
  }), d && /* @__PURE__ */ e("span", {
11293
11293
  className: "collapsible-button",
11294
11294
  onClick: () => g(!u),
11295
11295
  children: /* @__PURE__ */ e("span", {
11296
11296
  className: `opener-button ${u ? "opener-button-extended" : ""}`,
11297
- children: /* @__PURE__ */ e(P, {
11297
+ children: /* @__PURE__ */ e(G, {
11298
11298
  name: "caret-up",
11299
11299
  size: "lg"
11300
11300
  })
@@ -11330,7 +11330,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11330
11330
  className: "checkbox-label",
11331
11331
  children: [/* @__PURE__ */ e("span", { className: "checkbox-box" }), (a || l) && /* @__PURE__ */ c("span", {
11332
11332
  className: "checkbox-text",
11333
- children: [a && /* @__PURE__ */ e(P, { name: a }), l && /* @__PURE__ */ e("span", {
11333
+ children: [a && /* @__PURE__ */ e(G, { name: a }), l && /* @__PURE__ */ e("span", {
11334
11334
  className: "checkbox-text-label",
11335
11335
  children: l
11336
11336
  })]
@@ -11349,7 +11349,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11349
11349
  className: "chip__swatch",
11350
11350
  style: { backgroundColor: l }
11351
11351
  }),
11352
- d && /* @__PURE__ */ e(P, { name: d }),
11352
+ d && /* @__PURE__ */ e(G, { name: d }),
11353
11353
  /* @__PURE__ */ e("span", {
11354
11354
  className: "chip__label",
11355
11355
  children: t
@@ -11359,7 +11359,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11359
11359
  children: a
11360
11360
  })
11361
11361
  ]
11362
- }), Ta = ({ children: t, className: r = "", defaultCollapsed: l = !1, icon: a, isCollapsed: h, onToggle: d, rightDetails: o, title: m, toggleAccent: n, toggleHighlight: i, toggleMiddleIcon: s, toggleSize: p, toggleSpaceBetween: u, toggleSwap: g, toggleTint: v = "plain", toggleVariant: w, withCard: f = !1 }) => {
11362
+ }), Ia = ({ children: t, className: r = "", defaultCollapsed: l = !1, icon: a, isCollapsed: h, onToggle: d, rightDetails: o, title: m, toggleAccent: n, toggleHighlight: i, toggleMiddleIcon: s, toggleSize: p, toggleSpaceBetween: u, toggleSwap: g, toggleTint: v = "plain", toggleVariant: w, withCard: f = !1 }) => {
11363
11363
  const [M, y] = L(l), C = h !== void 0, x = C ? h : M, k = () => {
11364
11364
  const z = !x;
11365
11365
  C || y(z), d?.(z);
@@ -11369,11 +11369,11 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11369
11369
  children: [m && /* @__PURE__ */ e("div", {
11370
11370
  className: `collapsible-section__header ${V ? "" : "collapsible-section__header--inline"} ${u ? "collapsible-section__header--space-between" : ""} ${g ? "collapsible-section__header--swap" : ""} ${i ? "collapsible-section__header--highlight" : ""} ${n ? "collapsible-section__header--accent" : ""} ${p ? `collapsible-section__header--size-${p}` : ""} ${w ? `collapsible-section__header--variant-${w}` : ""} ${v !== "plain" ? `collapsible-section__header--tint-${v}` : ""}`,
11371
11371
  onClick: V ? k : void 0,
11372
- children: V ? /* @__PURE__ */ c(s1, { children: [
11372
+ children: V ? /* @__PURE__ */ c(n1, { children: [
11373
11373
  /* @__PURE__ */ c("div", {
11374
11374
  className: "collapsible-section__label",
11375
11375
  children: [
11376
- a && /* @__PURE__ */ e(P, {
11376
+ a && /* @__PURE__ */ e(G, {
11377
11377
  name: a,
11378
11378
  variant: w
11379
11379
  }),
@@ -11381,10 +11381,10 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11381
11381
  m
11382
11382
  ]
11383
11383
  }),
11384
- s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(P, { name: s }) }),
11384
+ s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(G, { name: s }) }),
11385
11385
  /* @__PURE__ */ e("span", {
11386
11386
  className: `collapsible-section__icon ${x ? "collapsible-section__icon--collapsed" : ""}`,
11387
- children: /* @__PURE__ */ e(P, { name: "caret-up" })
11387
+ children: /* @__PURE__ */ e(G, { name: "caret-up" })
11388
11388
  }),
11389
11389
  /* @__PURE__ */ e("span", {
11390
11390
  className: "collapsible-section__right-details",
@@ -11398,7 +11398,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11398
11398
  /* @__PURE__ */ c("span", {
11399
11399
  className: "collapsible-section__label",
11400
11400
  children: [
11401
- a && /* @__PURE__ */ e(P, {
11401
+ a && /* @__PURE__ */ e(G, {
11402
11402
  name: a,
11403
11403
  variant: w
11404
11404
  }),
@@ -11406,10 +11406,10 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11406
11406
  m
11407
11407
  ]
11408
11408
  }),
11409
- s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(P, { name: s }) }),
11409
+ s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(G, { name: s }) }),
11410
11410
  /* @__PURE__ */ e("span", {
11411
11411
  className: `collapsible-section__icon ${x ? "collapsible-section__icon--collapsed" : ""}`,
11412
- children: /* @__PURE__ */ e(P, { name: "caret-up" })
11412
+ children: /* @__PURE__ */ e(G, { name: "caret-up" })
11413
11413
  })
11414
11414
  ]
11415
11415
  })
@@ -11558,7 +11558,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11558
11558
  g: Math.round((i + m) * 255),
11559
11559
  b: Math.round((s + m) * 255)
11560
11560
  };
11561
- }, Ia = ({ value: t = "#4e79a7", onChange: r }) => {
11561
+ }, Ga = ({ value: t = "#4e79a7", onChange: r }) => {
11562
11562
  const [l, a] = L("hex"), [h, d] = L(() => {
11563
11563
  const g = U0(t) || {
11564
11564
  r: 78,
@@ -11750,7 +11750,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11750
11750
  })
11751
11751
  ]
11752
11752
  });
11753
- }, Ga = ({ items: t, isOpen: r, onOpenChange: l, placeholder: a = "Search commands", enableHotkey: h = !0 }) => {
11753
+ }, Za = ({ items: t, isOpen: r, onOpenChange: l, placeholder: a = "Search commands", enableHotkey: h = !0 }) => {
11754
11754
  const [d, o] = L(!1), [m, n] = L(""), i = r ?? d;
11755
11755
  O(() => {
11756
11756
  if (!h) return;
@@ -11938,16 +11938,16 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11938
11938
  break;
11939
11939
  }
11940
11940
  t.restore();
11941
- }, Za = z1(({ colors: t, duration: r = 3e3, scope: l = "fullscreen", variant: a = "confetti", particleCount: h }, d) => {
11941
+ }, Pa = z1(({ colors: t, duration: r = 3e3, scope: l = "fullscreen", variant: a = "confetti", particleCount: h }, d) => {
11942
11942
  const o = X(null), m = X(0), n = X(0), i = X(!1), s = {
11943
11943
  confetti: 150,
11944
11944
  burst: 200,
11945
11945
  fireworks: 8
11946
- }, p = Z(() => {
11946
+ }, p = P(() => {
11947
11947
  i.current = !1, cancelAnimationFrame(m.current);
11948
11948
  const g = o.current;
11949
11949
  g && g.getContext("2d")?.clearRect(0, 0, g.width, g.height);
11950
- }, []), u = Z(() => {
11950
+ }, []), u = P(() => {
11951
11951
  const g = o.current;
11952
11952
  if (!g || i.current) return;
11953
11953
  const v = g.getContext("2d");
@@ -12004,7 +12004,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12004
12004
  ref: o,
12005
12005
  className: `confetti-canvas confetti-canvas--${l}`
12006
12006
  });
12007
- }), Pa = ({ isOpen: t = !1, message: r, title: l, confirm: a, cancel: h, usePortal: d = !1 }) => {
12007
+ }), ja = ({ isOpen: t = !1, message: r, title: l, confirm: a, cancel: h, usePortal: d = !1 }) => {
12008
12008
  const o = {
12009
12009
  variant: h?.variant || "default",
12010
12010
  icon: h?.icon || "clear",
@@ -12032,7 +12032,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12032
12032
  children: /* @__PURE__ */ e("p", { children: r })
12033
12033
  })
12034
12034
  });
12035
- }, ja = () => {
12035
+ }, Wa = () => {
12036
12036
  const [t, r] = L({}), l = (m, n) => {
12037
12037
  const i = n instanceof HTMLElement ? n : n.currentTarget;
12038
12038
  r((s) => ({
@@ -12065,7 +12065,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12065
12065
  top: 0,
12066
12066
  left: 0,
12067
12067
  placement: "bottom"
12068
- }), s = Z(() => {
12068
+ }), s = P(() => {
12069
12069
  if (!a || !o.current || !r) return;
12070
12070
  const p = a.getBoundingClientRect(), u = o.current.getBoundingClientRect(), g = {
12071
12071
  width: window.innerWidth,
@@ -12170,7 +12170,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12170
12170
  children: [
12171
12171
  (a || d) && /* @__PURE__ */ c("div", {
12172
12172
  className: "confirm-popover__header",
12173
- children: [d && /* @__PURE__ */ e(P, { name: d }), a && /* @__PURE__ */ e("span", {
12173
+ children: [d && /* @__PURE__ */ e(G, { name: d }), a && /* @__PURE__ */ e("span", {
12174
12174
  className: "confirm-popover__title",
12175
12175
  children: a
12176
12176
  })]
@@ -12227,7 +12227,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12227
12227
  const i = (s) => {
12228
12228
  a && r?.();
12229
12229
  };
12230
- return t ? K1(/* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("div", {
12230
+ return t ? K1(/* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("div", {
12231
12231
  style: {
12232
12232
  position: "fixed",
12233
12233
  inset: 0,
@@ -12279,7 +12279,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12279
12279
  children: /* @__PURE__ */ e("button", {
12280
12280
  onClick: i,
12281
12281
  className: "toast__close-button",
12282
- children: /* @__PURE__ */ e(P, {
12282
+ children: /* @__PURE__ */ e(G, {
12283
12283
  name: "clear",
12284
12284
  size: "sm"
12285
12285
  })
@@ -12287,7 +12287,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12287
12287
  })
12288
12288
  ]
12289
12289
  });
12290
- }, Wa = ({ position: t = "bottom-right", showDismissButton: r = !0 }) => {
12290
+ }, Ua = ({ position: t = "bottom-right", showDismissButton: r = !0 }) => {
12291
12291
  const { toasts: l, removeToast: a } = Yr();
12292
12292
  return /* @__PURE__ */ e("div", {
12293
12293
  className: `toast-container toast-container--${t}`,
@@ -12301,7 +12301,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12301
12301
  onClose: a
12302
12302
  }, h.id))
12303
12303
  });
12304
- }, Ua = ({ children: t }) => {
12304
+ }, Fa = ({ children: t }) => {
12305
12305
  const [r, l] = L([]), d = {
12306
12306
  toasts: r,
12307
12307
  addToast: (o, m = "info", n = 1500, i) => {
@@ -12354,7 +12354,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12354
12354
  "desktop",
12355
12355
  "largeDesktop"
12356
12356
  ].indexOf(t), g0 = () => {
12357
- const [t, r] = L(Y0), l = Z((o) => Y1(t) > Y1(o), [t]), a = Z((o) => Y1(t) < Y1(o), [t]), h = Z((o) => Y1(t) >= Y1(o), [t]), d = Z((o) => Y1(t) <= Y1(o), [t]);
12357
+ const [t, r] = L(Y0), l = P((o) => Y1(t) > Y1(o), [t]), a = P((o) => Y1(t) < Y1(o), [t]), h = P((o) => Y1(t) >= Y1(o), [t]), d = P((o) => Y1(t) <= Y1(o), [t]);
12358
12358
  return O(() => {
12359
12359
  if (typeof window > "u") return;
12360
12360
  const o = Object.entries(Xr).map(([n, i]) => ({
@@ -12381,12 +12381,12 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12381
12381
  isAtLeast: h,
12382
12382
  isAtMost: d
12383
12383
  };
12384
- }, P2 = _0(null), c2 = () => L0(P2), Fa = () => {
12384
+ }, P2 = _0(null), c2 = () => L0(P2), Oa = () => {
12385
12385
  const t = c2();
12386
12386
  if (!t) throw new Error("useControlPanel must be used within a ControlPanelProvider");
12387
12387
  return t;
12388
- }, Oa = ({ children: t }) => {
12389
- const { isMobile: r } = g0(), [l, a] = L(!1), h = Z(() => a((n) => !n), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = g1(() => ({
12388
+ }, Ya = ({ children: t }) => {
12389
+ const { isMobile: r } = g0(), [l, a] = L(!1), h = P(() => a((n) => !n), []), d = P(() => a(!0), []), o = P(() => a(!1), []), m = g1(() => ({
12390
12390
  isMobile: r,
12391
12391
  isOpen: l,
12392
12392
  toggle: h,
@@ -12418,14 +12418,14 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12418
12418
  const B = p ? !n : g;
12419
12419
  O(() => {
12420
12420
  if (p) return;
12421
- const G = (D) => {
12421
+ const Z = (D) => {
12422
12422
  B && _.current && R.current && !_.current.contains(D.target) && !R.current.contains(D.target) && (b(null), v(!1));
12423
12423
  };
12424
- return document.addEventListener("mousedown", G), () => document.removeEventListener("mousedown", G);
12424
+ return document.addEventListener("mousedown", Z), () => document.removeEventListener("mousedown", Z);
12425
12425
  }, [p, B]);
12426
- const E = Z(() => {
12426
+ const E = P(() => {
12427
12427
  if (p || !B || !_.current || !R.current) return;
12428
- const G = _.current.getBoundingClientRect(), D = R.current.getBoundingClientRect(), Q = 16, h1 = 8, U = window.innerHeight - G.bottom - Q, d1 = G.top - Q, v1 = U < D.height && d1 > D.height ? G.top - D.height - h1 : G.bottom + h1, y1 = Math.max(Q, Math.min(v1, window.innerHeight - D.height - Q)), _1 = Math.max(Q, Math.min(G.left, window.innerWidth - D.width - Q));
12428
+ const Z = _.current.getBoundingClientRect(), D = R.current.getBoundingClientRect(), Q = 16, h1 = 8, U = window.innerHeight - Z.bottom - Q, d1 = Z.top - Q, v1 = U < D.height && d1 > D.height ? Z.top - D.height - h1 : Z.bottom + h1, y1 = Math.max(Q, Math.min(v1, window.innerHeight - D.height - Q)), _1 = Math.max(Q, Math.min(Z.left, window.innerWidth - D.width - Q));
12429
12429
  S({
12430
12430
  position: "fixed",
12431
12431
  top: `${y1}px`,
@@ -12441,9 +12441,9 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12441
12441
  });
12442
12442
  return;
12443
12443
  }
12444
- const G = requestAnimationFrame(() => requestAnimationFrame(E));
12444
+ const Z = requestAnimationFrame(() => requestAnimationFrame(E));
12445
12445
  return window.addEventListener("resize", E), window.addEventListener("scroll", E, !0), () => {
12446
- cancelAnimationFrame(G), window.removeEventListener("resize", E), window.removeEventListener("scroll", E, !0);
12446
+ cancelAnimationFrame(Z), window.removeEventListener("resize", E), window.removeEventListener("scroll", E, !0);
12447
12447
  };
12448
12448
  }, [
12449
12449
  p,
@@ -12453,23 +12453,23 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12453
12453
  const F = () => {
12454
12454
  if (!t) return "";
12455
12455
  if (l === "single" && t instanceof Date) {
12456
- const G = X1(t, o);
12457
- return a ? `${G} ${d ? X1(t, "HH:mm:ss") : X1(t, "HH:mm")}` : G;
12456
+ const Z = X1(t, o);
12457
+ return a ? `${Z} ${d ? X1(t, "HH:mm:ss") : X1(t, "HH:mm")}` : Z;
12458
12458
  }
12459
- return l === "range" && t && "start" in t ? `${X1(t.start, o)} - ${X1(t.end, o)}` : l === "multiple" && Array.isArray(t) ? t.map((G) => X1(G, o)).join(", ") : "";
12460
- }, n1 = (G) => {
12461
- if (!a || !(G instanceof Date)) {
12462
- r?.(G), s && l !== "multiple" && !p && v(!1);
12459
+ return l === "range" && t && "start" in t ? `${X1(t.start, o)} - ${X1(t.end, o)}` : l === "multiple" && Array.isArray(t) ? t.map((Z) => X1(Z, o)).join(", ") : "";
12460
+ }, o1 = (Z) => {
12461
+ if (!a || !(Z instanceof Date)) {
12462
+ r?.(Z), s && l !== "multiple" && !p && v(!1);
12463
12463
  return;
12464
12464
  }
12465
- const D = new Date(G), Q = h === "12h" ? k ? w % 12 + 12 : w % 12 : w;
12465
+ const D = new Date(Z), Q = h === "12h" ? k ? w % 12 + 12 : w % 12 : w;
12466
12466
  D.setHours(Q, M, C), r?.(D), s && !p && v(!1);
12467
12467
  }, N = () => {
12468
12468
  if (!t || !(t instanceof Date)) return;
12469
- const G = new Date(t), D = h === "12h" ? k ? w % 12 + 12 : w % 12 : w;
12470
- G.setHours(D, M, C), r?.(G);
12471
- }, q = (G) => {
12472
- G.stopPropagation(), b(null), r?.(void 0);
12469
+ const Z = new Date(t), D = h === "12h" ? k ? w % 12 + 12 : w % 12 : w;
12470
+ Z.setHours(D, M, C), r?.(Z);
12471
+ }, q = (Z) => {
12472
+ Z.stopPropagation(), b(null), r?.(void 0);
12473
12473
  }, a1 = F();
12474
12474
  return /* @__PURE__ */ c("div", {
12475
12475
  className: "datepicker",
@@ -12494,7 +12494,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12494
12494
  })
12495
12495
  }), /* @__PURE__ */ e("span", {
12496
12496
  className: "datepicker__icon",
12497
- children: /* @__PURE__ */ e(P, { name: "calendar" })
12497
+ children: /* @__PURE__ */ e(G, { name: "calendar" })
12498
12498
  })]
12499
12499
  })]
12500
12500
  }), B && (p ? /* @__PURE__ */ c("div", {
@@ -12504,7 +12504,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12504
12504
  ...u,
12505
12505
  mode: l,
12506
12506
  value: t,
12507
- onChange: n1,
12507
+ onChange: o1,
12508
12508
  rangeStart: l === "range" ? z : u.rangeStart,
12509
12509
  onRangeStartChange: l === "range" ? b : u.onRangeStartChange
12510
12510
  }), a && l === "single" && t instanceof Date && /* @__PURE__ */ c("div", {
@@ -12519,8 +12519,8 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12519
12519
  type: "number",
12520
12520
  className: "datepicker__time-input",
12521
12521
  value: w,
12522
- onChange: (G) => {
12523
- const D = parseInt(G.target.value) || 0;
12522
+ onChange: (Z) => {
12523
+ const D = parseInt(Z.target.value) || 0;
12524
12524
  f(Math.min(Math.max(D, 0), h === "12h" ? 12 : 23));
12525
12525
  },
12526
12526
  onBlur: N,
@@ -12532,20 +12532,20 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12532
12532
  type: "number",
12533
12533
  className: "datepicker__time-input",
12534
12534
  value: M,
12535
- onChange: (G) => {
12536
- const D = parseInt(G.target.value) || 0;
12535
+ onChange: (Z) => {
12536
+ const D = parseInt(Z.target.value) || 0;
12537
12537
  y(Math.min(Math.max(D, 0), 59));
12538
12538
  },
12539
12539
  onBlur: N,
12540
12540
  min: "0",
12541
12541
  max: "59"
12542
12542
  }),
12543
- d && /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("span", { children: ":" }), /* @__PURE__ */ e("input", {
12543
+ d && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("span", { children: ":" }), /* @__PURE__ */ e("input", {
12544
12544
  type: "number",
12545
12545
  className: "datepicker__time-input",
12546
12546
  value: C,
12547
- onChange: (G) => {
12548
- const D = parseInt(G.target.value) || 0;
12547
+ onChange: (Z) => {
12548
+ const D = parseInt(Z.target.value) || 0;
12549
12549
  x(Math.min(Math.max(D, 0), 59));
12550
12550
  },
12551
12551
  onBlur: N,
@@ -12571,7 +12571,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12571
12571
  ...u,
12572
12572
  mode: l,
12573
12573
  value: t,
12574
- onChange: n1,
12574
+ onChange: o1,
12575
12575
  rangeStart: l === "range" ? z : u.rangeStart,
12576
12576
  onRangeStartChange: l === "range" ? b : u.onRangeStartChange
12577
12577
  }), a && l === "single" && t instanceof Date && /* @__PURE__ */ c("div", {
@@ -12586,8 +12586,8 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12586
12586
  type: "number",
12587
12587
  className: "datepicker__time-input",
12588
12588
  value: w,
12589
- onChange: (G) => {
12590
- const D = parseInt(G.target.value) || 0;
12589
+ onChange: (Z) => {
12590
+ const D = parseInt(Z.target.value) || 0;
12591
12591
  f(Math.min(Math.max(D, 0), h === "12h" ? 12 : 23));
12592
12592
  },
12593
12593
  onBlur: N,
@@ -12599,20 +12599,20 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12599
12599
  type: "number",
12600
12600
  className: "datepicker__time-input",
12601
12601
  value: M,
12602
- onChange: (G) => {
12603
- const D = parseInt(G.target.value) || 0;
12602
+ onChange: (Z) => {
12603
+ const D = parseInt(Z.target.value) || 0;
12604
12604
  y(Math.min(Math.max(D, 0), 59));
12605
12605
  },
12606
12606
  onBlur: N,
12607
12607
  min: "0",
12608
12608
  max: "59"
12609
12609
  }),
12610
- d && /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("span", { children: ":" }), /* @__PURE__ */ e("input", {
12610
+ d && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("span", { children: ":" }), /* @__PURE__ */ e("input", {
12611
12611
  type: "number",
12612
12612
  className: "datepicker__time-input",
12613
12613
  value: C,
12614
- onChange: (G) => {
12615
- const D = parseInt(G.target.value) || 0;
12614
+ onChange: (Z) => {
12615
+ const D = parseInt(Z.target.value) || 0;
12616
12616
  x(Math.min(Math.max(D, 0), 59));
12617
12617
  },
12618
12618
  onBlur: N,
@@ -12632,7 +12632,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12632
12632
  })]
12633
12633
  }), document.body))]
12634
12634
  });
12635
- }, Qr = /[̀-ͯ]/g, g2 = (t) => t.normalize("NFD").replace(Qr, "").toLowerCase(), Ya = (t, r) => {
12635
+ }, Qr = /[̀-ͯ]/g, g2 = (t) => t.normalize("NFD").replace(Qr, "").toLowerCase(), qa = (t, r) => {
12636
12636
  const l = t.toLowerCase(), a = r.toLowerCase();
12637
12637
  if (l.includes(a)) return !0;
12638
12638
  const h = 1 - 1 / Math.max(a.length, 4);
@@ -12643,7 +12643,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12643
12643
  }
12644
12644
  return d / a.length >= h;
12645
12645
  }, V0 = ({ allowCustomValue: t = !1, autofocus: r = !1, className: l = "", disabled: a = !1, error: h, highlighted: d = !1, id: o, label: m, maxVisibleSelectedLabels: n = 1, multilineChips: i = !1, multiple: s = !1, name: p, onChange: u, onSearchChange: g, options: v, placeholder: w = "Select an option", searchable: f = !0, searchValue: M, selectedCountDisplay: y = "inline", showChips: C = !1, sortSelectedFirst: x = !1, success: k, usePortal: V = !0, value: z, valueAsChip: b = !0 }) => {
12646
- const [H, S] = L(!1), [_, R] = L(M || ""), [B, E] = L(v), [F, n1] = L(-1), [N, q] = L([]), [a1, G] = L({
12646
+ const [H, S] = L(!1), [_, R] = L(M || ""), [B, E] = L(v), [F, o1] = L(-1), [N, q] = L([]), [a1, Z] = L({
12647
12647
  top: 0,
12648
12648
  bottom: 0,
12649
12649
  left: 0,
@@ -12667,7 +12667,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12667
12667
  const I = g2(_), Y = W.filter((r1) => g2(r1.label).includes(I));
12668
12668
  E(Y);
12669
12669
  }
12670
- n1(-1);
12670
+ o1(-1);
12671
12671
  }, [
12672
12672
  _,
12673
12673
  v,
@@ -12731,7 +12731,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12731
12731
  const Y = h1.current.getBoundingClientRect(), r1 = window.visualViewport, F1 = r1?.offsetTop ?? 0, N0 = F1 + (r1?.height ?? window.innerHeight), P1 = 300, D0 = 8, w0 = N0 - Y.bottom, f0 = Y.top - F1, n0 = w0 < P1 && f0 > w0;
12732
12732
  if (Q(n0), V) {
12733
12733
  const T0 = Math.max(0, (n0 ? f0 : w0) - D0);
12734
- G({
12734
+ Z({
12735
12735
  top: Y.bottom,
12736
12736
  bottom: window.innerHeight - Y.top,
12737
12737
  left: Y.left,
@@ -12787,7 +12787,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12787
12787
  I ? Y = N.filter((r1) => r1.value !== W.value) : Y = [...N, W], q(Y), f && R(""), u && u(Y, p);
12788
12788
  } else
12789
12789
  R(W.label), q([W]), S(!1), u && u(W, p);
12790
- }, o1 = () => {
12790
+ }, s1 = () => {
12791
12791
  if (!t || !_.trim()) return;
12792
12792
  const W = v.find((Y) => Y.label.toLowerCase() === _.toLowerCase() || Y.value.toString() === _);
12793
12793
  if (W) {
@@ -12814,7 +12814,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12814
12814
  }, m1 = () => {
12815
12815
  a || (S(!0), !s && f && N.length > 0 && R(""), (s || f) && d1.current?.focus());
12816
12816
  }, x1 = () => {
12817
- a || (S(!H), H || (n1(-1), !s && f && N.length > 0 && R(""), (s || f) && d1.current?.focus()));
12817
+ a || (S(!H), H || (o1(-1), !s && f && N.length > 0 && R(""), (s || f) && d1.current?.focus()));
12818
12818
  }, M1 = (W) => {
12819
12819
  if (!a) {
12820
12820
  if (!H) {
@@ -12824,20 +12824,20 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12824
12824
  switch (W.key) {
12825
12825
  case "ArrowDown":
12826
12826
  if (W.preventDefault(), t && _ && B.length === 0) return;
12827
- n1((I) => {
12827
+ o1((I) => {
12828
12828
  const Y = I < (t && _ && !B.some((r1) => r1.label.toLowerCase() === _.toLowerCase()) ? B.length : B.length - 1) ? I + 1 : 0;
12829
12829
  return Y < B.length && U.current[Y] && U.current[Y]?.scrollIntoView({ block: "nearest" }), Y;
12830
12830
  });
12831
12831
  break;
12832
12832
  case "ArrowUp":
12833
12833
  if (W.preventDefault(), t && _ && B.length === 0) return;
12834
- n1((I) => {
12834
+ o1((I) => {
12835
12835
  const Y = t && _ && !B.some((F1) => F1.label.toLowerCase() === _.toLowerCase()) ? B.length : B.length - 1, r1 = I > 0 ? I - 1 : Y;
12836
12836
  return r1 < B.length && U.current[r1] && U.current[r1]?.scrollIntoView({ block: "nearest" }), r1;
12837
12837
  });
12838
12838
  break;
12839
12839
  case "Enter":
12840
- W.preventDefault(), F >= 0 && F < B.length ? t1(B[F]) : (t && _ && F === B.length || t && _ && B.length === 0) && o1();
12840
+ W.preventDefault(), F >= 0 && F < B.length ? t1(B[F]) : (t && _ && F === B.length || t && _ && B.length === 0) && s1();
12841
12841
  break;
12842
12842
  case "Escape":
12843
12843
  W.preventDefault(), S(!1), !s && N.length > 0 ? R(N[0].label) : s && f && R("");
@@ -12880,7 +12880,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12880
12880
  },
12881
12881
  className: `dropdown-option ${I.className || ""} ${F === Y ? "focused" : ""} ${E1(I) ? "selected" : ""} ${I.disabled ? "dropdown-option--disabled" : ""}`,
12882
12882
  onClick: () => t1(I),
12883
- onMouseEnter: () => n1(Y),
12883
+ onMouseEnter: () => o1(Y),
12884
12884
  title: I.tooltip,
12885
12885
  children: [s && /* @__PURE__ */ e("div", {
12886
12886
  className: "dropdown-option-checkbox",
@@ -12909,9 +12909,9 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12909
12909
  className: "dropdown-option-prefix",
12910
12910
  children: I.prefix
12911
12911
  }),
12912
- I.icon && /* @__PURE__ */ e(P, { name: I.icon }),
12912
+ I.icon && /* @__PURE__ */ e(G, { name: I.icon }),
12913
12913
  /* @__PURE__ */ e("span", { children: I.label }),
12914
- I.suffixIcon && /* @__PURE__ */ e(P, { name: I.suffixIcon })
12914
+ I.suffixIcon && /* @__PURE__ */ e(G, { name: I.suffixIcon })
12915
12915
  ]
12916
12916
  }), I.details && /* @__PURE__ */ e("span", {
12917
12917
  className: "dropdown-option-details",
@@ -12923,13 +12923,13 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12923
12923
  U.current[B.length] = I;
12924
12924
  },
12925
12925
  className: `dropdown-option dropdown-option--create ${F === B.length ? "focused" : ""}`,
12926
- onClick: o1,
12927
- onMouseEnter: () => n1(B.length),
12926
+ onClick: s1,
12927
+ onMouseEnter: () => o1(B.length),
12928
12928
  children: /* @__PURE__ */ e("div", {
12929
12929
  className: "dropdown-option-content",
12930
12930
  children: /* @__PURE__ */ c("span", {
12931
12931
  className: "dropdown-option-label",
12932
- children: [/* @__PURE__ */ e(P, { name: "plus" }), /* @__PURE__ */ c("span", { children: [
12932
+ children: [/* @__PURE__ */ e(G, { name: "plus" }), /* @__PURE__ */ c("span", { children: [
12933
12933
  "Create “",
12934
12934
  _,
12935
12935
  "”"
@@ -12958,12 +12958,12 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12958
12958
  children: [
12959
12959
  U1 && L1?.icon && /* @__PURE__ */ e("span", {
12960
12960
  className: "dropdown-selected-icon dropdown-selected-icon--prefix",
12961
- children: /* @__PURE__ */ e(P, { name: L1.icon })
12961
+ children: /* @__PURE__ */ e(G, { name: L1.icon })
12962
12962
  }),
12963
12963
  D1 && L1 && /* @__PURE__ */ c("span", {
12964
12964
  className: "dropdown-value-chip",
12965
12965
  onClick: m1,
12966
- children: [L1.icon && /* @__PURE__ */ e(P, { name: L1.icon }), /* @__PURE__ */ e("span", {
12966
+ children: [L1.icon && /* @__PURE__ */ e(G, { name: L1.icon }), /* @__PURE__ */ e("span", {
12967
12967
  className: "dropdown-value-chip__label",
12968
12968
  children: L1.label
12969
12969
  })]
@@ -13002,7 +13002,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13002
13002
  children: [
13003
13003
  J1 && L1?.suffixIcon && /* @__PURE__ */ e("span", {
13004
13004
  className: "dropdown-selected-icon dropdown-selected-icon--suffix",
13005
- children: /* @__PURE__ */ e(P, { name: L1.suffixIcon })
13005
+ children: /* @__PURE__ */ e(G, { name: L1.suffixIcon })
13006
13006
  }),
13007
13007
  (!s && N.length > 0 || s && N.length > 0) && /* @__PURE__ */ e("span", {
13008
13008
  className: "dropdown-action-button dropdown-clear-button",
@@ -13081,7 +13081,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13081
13081
  type: "button",
13082
13082
  className: "input-date-clear",
13083
13083
  onClick: () => p?.(void 0),
13084
- children: /* @__PURE__ */ e(P, {
13084
+ children: /* @__PURE__ */ e(G, {
13085
13085
  name: "clear",
13086
13086
  size: "sm"
13087
13087
  })
@@ -13097,7 +13097,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13097
13097
  },
13098
13098
  disabled: a || w,
13099
13099
  tabIndex: -1,
13100
- children: /* @__PURE__ */ e(P, {
13100
+ children: /* @__PURE__ */ e(G, {
13101
13101
  name: "calendar",
13102
13102
  size: "sm"
13103
13103
  })
@@ -13124,7 +13124,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13124
13124
  children: [
13125
13125
  /* @__PURE__ */ e("div", {
13126
13126
  className: "input-search__icon",
13127
- children: /* @__PURE__ */ e(P, { name: "search" })
13127
+ children: /* @__PURE__ */ e(G, { name: "search" })
13128
13128
  }),
13129
13129
  /* @__PURE__ */ e(V1, {
13130
13130
  autoComplete: t,
@@ -13149,7 +13149,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13149
13149
  type: "button",
13150
13150
  className: "input-search__clear",
13151
13151
  onClick: f,
13152
- children: /* @__PURE__ */ e(P, {
13152
+ children: /* @__PURE__ */ e(G, {
13153
13153
  name: "clear",
13154
13154
  size: "sm"
13155
13155
  })
@@ -13218,7 +13218,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13218
13218
  }
13219
13219
  return null;
13220
13220
  }, tc = ({ align: t = "left", icon: r = "star", maxRate: l = 10, onHover: a, onHoverEnd: h, onSelect: d, rating: o, selectable: m = !1, showValue: n = !0, useHalf: i = !1, variant: s = "warning" }) => {
13221
- const p = Z((u) => {
13221
+ const p = P((u) => {
13222
13222
  m && !i && d?.(u + 1);
13223
13223
  }, [
13224
13224
  m,
@@ -13348,7 +13348,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13348
13348
  className: `control-panel__filter-title${t.isActive ? " control-panel__filter-title--active" : ""}`,
13349
13349
  children: [
13350
13350
  t.isActive && /* @__PURE__ */ e("span", { className: "control-panel__filter-active-dot" }),
13351
- t.icon && /* @__PURE__ */ e(P, { name: t.icon }),
13351
+ t.icon && /* @__PURE__ */ e(G, { name: t.icon }),
13352
13352
  t.label
13353
13353
  ]
13354
13354
  }), /* @__PURE__ */ e(ic, {
@@ -13532,7 +13532,7 @@ var ya = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13532
13532
  className: "control-panel__filter-swatch",
13533
13533
  style: { backgroundColor: o.color }
13534
13534
  }),
13535
- o.icon && /* @__PURE__ */ e(P, { name: o.icon }),
13535
+ o.icon && /* @__PURE__ */ e(G, { name: o.icon }),
13536
13536
  /* @__PURE__ */ e("span", {
13537
13537
  className: "control-panel__filter-label",
13538
13538
  children: o.label
@@ -13678,7 +13678,7 @@ function j2(t, r, l, a = 0) {
13678
13678
  s.stopPropagation(), t.onOpenChange?.(!o, t);
13679
13679
  },
13680
13680
  type: "button",
13681
- children: /* @__PURE__ */ e(P, { name: "caret-right" })
13681
+ children: /* @__PURE__ */ e(G, { name: "caret-right" })
13682
13682
  }) : /* @__PURE__ */ e("span", { className: "control-panel__nav-toggle-placeholder" })), /* @__PURE__ */ c("button", {
13683
13683
  className: m,
13684
13684
  onClick: () => {
@@ -13693,7 +13693,7 @@ function j2(t, r, l, a = 0) {
13693
13693
  t.icon ? /* @__PURE__ */ e("span", {
13694
13694
  className: "control-panel__nav-icon",
13695
13695
  style: t.color ? { color: t.color } : void 0,
13696
- children: /* @__PURE__ */ e(P, { name: t.icon })
13696
+ children: /* @__PURE__ */ e(G, { name: t.icon })
13697
13697
  }) : t.color && /* @__PURE__ */ e("span", {
13698
13698
  className: "control-panel__nav-dot",
13699
13699
  style: { backgroundColor: t.color }
@@ -13721,7 +13721,39 @@ function j2(t, r, l, a = 0) {
13721
13721
  })]
13722
13722
  }, t.id);
13723
13723
  }
13724
- var oc = [{
13724
+ var oc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.length ?? 0, sc = ({ disabled: t = !1, largeValueState: r = "info", min: l = 0, max: a = 100, step: h = 1, value: d, onChange: o, showValues: m = !0, showValueAtTheRight: n = !1, valueSize: i, thin: s = !1, vertical: p = !1 }) => {
13725
+ const u = (f) => {
13726
+ o(parseFloat(f.target.value));
13727
+ }, g = oc(h), v = g > 0 ? d.toFixed(g) : String(d), w = n && !p;
13728
+ return /* @__PURE__ */ c("div", {
13729
+ className: [
13730
+ "slider-component",
13731
+ w ? "slider-component--inline" : "",
13732
+ s ? "slider-component--thin" : "",
13733
+ p ? "slider-component--vertical" : "",
13734
+ i ? `slider-component--value-${i}` : ""
13735
+ ].filter(Boolean).join(" "),
13736
+ children: [/* @__PURE__ */ e("input", {
13737
+ type: "range",
13738
+ min: l,
13739
+ max: a,
13740
+ value: d,
13741
+ step: h,
13742
+ onChange: u,
13743
+ className: "slider-input",
13744
+ disabled: t
13745
+ }), m && (w ? /* @__PURE__ */ e("span", {
13746
+ className: `slider-value-inline slider-state-${r}`,
13747
+ children: v
13748
+ }) : /* @__PURE__ */ e("div", {
13749
+ className: "slider-display",
13750
+ children: /* @__PURE__ */ e("span", {
13751
+ className: `slider-value slider-state-${r}`,
13752
+ children: v
13753
+ })
13754
+ }))]
13755
+ });
13756
+ }, hc = [{
13725
13757
  value: "cards",
13726
13758
  label: "Grid",
13727
13759
  icon: "grid"
@@ -13729,11 +13761,11 @@ var oc = [{
13729
13761
  value: "table",
13730
13762
  label: "Table",
13731
13763
  icon: "table"
13732
- }], sc = {
13764
+ }], dc = {
13733
13765
  value: "gallery",
13734
13766
  label: "Gallery",
13735
13767
  icon: "gallery"
13736
- }, hc = ({ normalizedOptionGroups: t, onOptionChange: r, viewToggle: l, onViewToggleComplete: a, groupBy: h, visibleColumns: d }) => /* @__PURE__ */ c("div", {
13768
+ }, mc = ({ normalizedOptionGroups: t, onOptionChange: r, viewToggle: l, onViewToggleComplete: a, groupBy: h, visibleColumns: d }) => /* @__PURE__ */ c("div", {
13737
13769
  className: "control-panel__options",
13738
13770
  children: [
13739
13771
  /* @__PURE__ */ e("div", {
@@ -13747,7 +13779,7 @@ var oc = [{
13747
13779
  className: "control-panel__option control-panel__option--view-toggle",
13748
13780
  children: /* @__PURE__ */ e("div", {
13749
13781
  className: "control-panel__option-view-toggle",
13750
- children: (l.options ?? [...oc, ...l.showGallery ? [sc] : []]).map((o) => /* @__PURE__ */ e(T, {
13782
+ children: (l.options ?? [...hc, ...l.showGallery ? [dc] : []]).map((o) => /* @__PURE__ */ e(T, {
13751
13783
  icon: o.icon,
13752
13784
  size: "small",
13753
13785
  variant: l.value === o.value ? "info" : "default",
@@ -13758,7 +13790,7 @@ var oc = [{
13758
13790
  }, o.value))
13759
13791
  })
13760
13792
  }),
13761
- h && h.options.length > 0 && /* @__PURE__ */ c(s1, { children: [l && /* @__PURE__ */ e(h0, { spacing: 0 }), /* @__PURE__ */ c("div", {
13793
+ h && h.options.length > 0 && /* @__PURE__ */ c(n1, { children: [l && /* @__PURE__ */ e(h0, { spacing: 0 }), /* @__PURE__ */ c("div", {
13762
13794
  className: "control-panel__option control-panel__option--group-by",
13763
13795
  children: [/* @__PURE__ */ e("span", {
13764
13796
  className: "control-panel__filter-title",
@@ -13775,7 +13807,7 @@ var oc = [{
13775
13807
  })
13776
13808
  })]
13777
13809
  })] }),
13778
- d && /* @__PURE__ */ c(s1, { children: [(l || h && h.options.length > 0) && /* @__PURE__ */ e(h0, { spacing: 0 }), /* @__PURE__ */ c("div", {
13810
+ d && /* @__PURE__ */ c(n1, { children: [(l || h && h.options.length > 0) && /* @__PURE__ */ e(h0, { spacing: 0 }), /* @__PURE__ */ c("div", {
13779
13811
  className: "control-panel__option control-panel__option--chips",
13780
13812
  children: [/* @__PURE__ */ e("span", {
13781
13813
  className: "control-panel__filter-title",
@@ -13815,7 +13847,7 @@ var oc = [{
13815
13847
  }),
13816
13848
  children: n.label
13817
13849
  }),
13818
- n.type === "radio" && /* @__PURE__ */ c(s1, { children: [n.label && /* @__PURE__ */ e("span", {
13850
+ n.type === "radio" && /* @__PURE__ */ c(n1, { children: [n.label && /* @__PURE__ */ e("span", {
13819
13851
  className: "control-panel__filter-title",
13820
13852
  children: n.label
13821
13853
  }), /* @__PURE__ */ e("div", {
@@ -13841,7 +13873,7 @@ var oc = [{
13841
13873
  type: "radio",
13842
13874
  value: u.value
13843
13875
  }),
13844
- u.icon && /* @__PURE__ */ e(P, { name: u.icon }),
13876
+ u.icon && /* @__PURE__ */ e(G, { name: u.icon }),
13845
13877
  /* @__PURE__ */ e("span", {
13846
13878
  className: "control-panel__filter-label",
13847
13879
  children: u.label
@@ -13855,7 +13887,29 @@ var oc = [{
13855
13887
  }, u.value) : /* @__PURE__ */ e(u1.Fragment, { children: w }, u.value);
13856
13888
  })
13857
13889
  })] }),
13858
- n.type === "chips" && /* @__PURE__ */ c(s1, { children: [n.label && /* @__PURE__ */ e("span", {
13890
+ n.type === "slider" && /* @__PURE__ */ c(n1, { children: [n.label && /* @__PURE__ */ c("span", {
13891
+ className: "control-panel__filter-title",
13892
+ children: [
13893
+ n.icon && /* @__PURE__ */ e(G, { name: n.icon }),
13894
+ n.label,
13895
+ n.showValue !== !1 && /* @__PURE__ */ c("span", {
13896
+ className: "control-panel__option-slider-value",
13897
+ children: [n.value, n.unit ?? ""]
13898
+ })
13899
+ ]
13900
+ }), /* @__PURE__ */ e(sc, {
13901
+ min: n.min,
13902
+ max: n.max,
13903
+ step: n.step,
13904
+ value: n.value,
13905
+ onChange: (u) => r?.({
13906
+ optionId: n.id,
13907
+ value: u
13908
+ }),
13909
+ showValues: !1,
13910
+ thin: !0
13911
+ })] }),
13912
+ n.type === "chips" && /* @__PURE__ */ c(n1, { children: [n.label && /* @__PURE__ */ e("span", {
13859
13913
  className: "control-panel__filter-title",
13860
13914
  children: n.label
13861
13915
  }), /* @__PURE__ */ e("div", {
@@ -13884,7 +13938,7 @@ var oc = [{
13884
13938
  })]
13885
13939
  }, o.id ?? o.label ?? m))
13886
13940
  ]
13887
- }), qa = ({ width: t = "280px", className: r = "", isOpen: l, onClose: a, isMobile: h, showOverlay: d = !0, contained: o = !1, flush: m = !1, shadow: n = "none", header: i, navigation: s = [], actions: p = [], filters: u = [], filtersCount: g, onFilterChange: v, onClearFilters: w, options: f = [], onOptionChange: M, viewToggle: y, groupBy: C, visibleColumns: x }) => {
13941
+ }), Xa = ({ width: t = "280px", className: r = "", isOpen: l, onClose: a, isMobile: h, showOverlay: d = !0, contained: o = !1, flush: m = !1, shadow: n = "none", header: i, navigation: s = [], actions: p = [], filters: u = [], filtersCount: g, onFilterChange: v, onClearFilters: w, options: f = [], onOptionChange: M, viewToggle: y, groupBy: C, visibleColumns: x }) => {
13888
13942
  const k = c2(), V = h ?? k?.isMobile ?? !1, z = l ?? (V ? k?.isOpen ?? !1 : !0), b = a ?? k?.close ?? (() => {
13889
13943
  }), H = [
13890
13944
  "control-panel",
@@ -13897,7 +13951,7 @@ var oc = [{
13897
13951
  "--control-panel-width": t,
13898
13952
  "--control-panel-shadow": n
13899
13953
  }, R = f.length === 0 ? [] : "type" in f[0] ? [{ options: f }] : f, B = !!(y || C || x || R.length > 0), E = u.length > 0 || g !== void 0 && g > 0;
13900
- return /* @__PURE__ */ c(s1, { children: [d && V && z && /* @__PURE__ */ e("div", {
13954
+ return /* @__PURE__ */ c(n1, { children: [d && V && z && /* @__PURE__ */ e("div", {
13901
13955
  className: S,
13902
13956
  onClick: b
13903
13957
  }), /* @__PURE__ */ c("aside", {
@@ -13916,7 +13970,7 @@ var oc = [{
13916
13970
  }),
13917
13971
  p.length > 0 && /* @__PURE__ */ e("div", {
13918
13972
  className: "control-panel__actions",
13919
- children: p.map((F) => /* @__PURE__ */ e(dc, {
13973
+ children: p.map((F) => /* @__PURE__ */ e(pc, {
13920
13974
  action: F,
13921
13975
  onActionComplete: V ? b : void 0
13922
13976
  }, F.id))
@@ -13943,11 +13997,11 @@ var oc = [{
13943
13997
  })]
13944
13998
  }), u.map((F) => /* @__PURE__ */ e(ac, {
13945
13999
  filter: F,
13946
- onChange: (n1) => v?.(n1)
14000
+ onChange: (o1) => v?.(o1)
13947
14001
  }, F.id))]
13948
14002
  }),
13949
14003
  E && B && /* @__PURE__ */ e(h0, { spacing: 0 }),
13950
- B && /* @__PURE__ */ e(hc, {
14004
+ B && /* @__PURE__ */ e(mc, {
13951
14005
  normalizedOptionGroups: R,
13952
14006
  onOptionChange: M,
13953
14007
  viewToggle: y,
@@ -13957,7 +14011,7 @@ var oc = [{
13957
14011
  })
13958
14012
  ]
13959
14013
  })] });
13960
- }, dc = ({ action: t, onActionComplete: r }) => {
14014
+ }, pc = ({ action: t, onActionComplete: r }) => {
13961
14015
  const [l, a] = L(null), [h, d] = L(!1), o = (i) => {
13962
14016
  if (t.confirm) {
13963
14017
  a(i.currentTarget), d(!0);
@@ -13977,7 +14031,7 @@ var oc = [{
13977
14031
  variant: t.variant ?? "default",
13978
14032
  children: t.label
13979
14033
  });
13980
- return /* @__PURE__ */ c(s1, { children: [t.tooltip ? /* @__PURE__ */ e(J, {
14034
+ return /* @__PURE__ */ c(n1, { children: [t.tooltip ? /* @__PURE__ */ e(J, {
13981
14035
  title: t.tooltip,
13982
14036
  position: "right",
13983
14037
  children: n
@@ -14001,7 +14055,7 @@ var oc = [{
14001
14055
  variant: t.confirm.cancel?.variant ?? "default"
14002
14056
  }
14003
14057
  })] });
14004
- }, mc = async (t) => {
14058
+ }, vc = async (t) => {
14005
14059
  if (navigator.clipboard?.writeText) try {
14006
14060
  await navigator.clipboard.writeText(t);
14007
14061
  return;
@@ -14014,7 +14068,7 @@ var oc = [{
14014
14068
  } finally {
14015
14069
  document.body.removeChild(r);
14016
14070
  }
14017
- }, Xa = ({ children: t, className: r = "", copiedLabel: l = "Copied", disabled: a = !1, errorLabel: h = "Copy failed", iconOnly: d = !1, label: o = "Copy", onCopy: m, onError: n, resetDelay: i = 1800, size: s = "medium", title: p, value: u, variant: g = "ghost" }) => {
14071
+ }, Ka = ({ children: t, className: r = "", copiedLabel: l = "Copied", disabled: a = !1, errorLabel: h = "Copy failed", iconOnly: d = !1, label: o = "Copy", onCopy: m, onError: n, resetDelay: i = 1800, size: s = "medium", title: p, value: u, variant: g = "ghost" }) => {
14018
14072
  const [v, w] = L("idle"), f = X(null);
14019
14073
  O(() => () => {
14020
14074
  f.current && window.clearTimeout(f.current);
@@ -14023,7 +14077,7 @@ var oc = [{
14023
14077
  f.current && window.clearTimeout(f.current), f.current = window.setTimeout(() => w("idle"), i);
14024
14078
  }, y = async () => {
14025
14079
  try {
14026
- await mc(u), w("copied"), M(), m?.(u);
14080
+ await vc(u), w("copied"), M(), m?.(u);
14027
14081
  } catch (k) {
14028
14082
  w("error"), M(), n?.(k);
14029
14083
  }
@@ -14040,7 +14094,7 @@ var oc = [{
14040
14094
  variant: x,
14041
14095
  children: d ? void 0 : t || C
14042
14096
  });
14043
- }, pc = ({ code: t, size: r = "md", className: l = "" }) => {
14097
+ }, uc = ({ code: t, size: r = "md", className: l = "" }) => {
14044
14098
  if (!t) return /* @__PURE__ */ e(J, {
14045
14099
  title: `Unsupported country code: ${t}`,
14046
14100
  children: /* @__PURE__ */ e("div", {
@@ -14067,11 +14121,11 @@ var oc = [{
14067
14121
  })
14068
14122
  })]
14069
14123
  });
14070
- }, Ka = ({ code: t, label: r, size: l = "md", className: a = "" }) => {
14124
+ }, Qa = ({ code: t, label: r, size: l = "md", className: a = "" }) => {
14071
14125
  const h = r || t?.toUpperCase();
14072
14126
  return /* @__PURE__ */ c("div", {
14073
14127
  className: `country-with-flag country-with-flag--${l} ${a}`,
14074
- children: [/* @__PURE__ */ e(pc, {
14128
+ children: [/* @__PURE__ */ e(uc, {
14075
14129
  code: t,
14076
14130
  size: l
14077
14131
  }), /* @__PURE__ */ e("span", {
@@ -14079,11 +14133,11 @@ var oc = [{
14079
14133
  children: h
14080
14134
  })]
14081
14135
  });
14082
- }, vc = (t, r, l, a, h) => {
14136
+ }, gc = (t, r, l, a, h) => {
14083
14137
  const d = r ? (a - 1) * t + 1 : 0, o = Math.min(a * t, r), m = h ? ` ${h}` : "";
14084
14138
  return r === l ? `Showing ${d}-${o} of ${l}${m}` : `Showing ${d}-${o} of ${r} filtered${m} (${l} total)`;
14085
14139
  }, r0 = ({ icon: t, title: r, description: l, noCard: a, primary: h, secondary: d, children: o }) => {
14086
- const m = h || d, n = typeof t == "string" ? /* @__PURE__ */ e(P, {
14140
+ const m = h || d, n = typeof t == "string" ? /* @__PURE__ */ e(G, {
14087
14141
  name: t,
14088
14142
  size: "xxxl"
14089
14143
  }) : t;
@@ -14119,11 +14173,11 @@ var oc = [{
14119
14173
  })
14120
14174
  ]
14121
14175
  });
14122
- }, uc = 45, gc = 120, wc = 45, fc = 45, Cc = 8, yc = 2, f2 = ({ currentPage: t, totalPages: r, totalItems: l, onPageChange: a, showPagesNumbers: h = !1, pageSizeOptions: d, pageSize: o, onPageSizeChange: m, pageSizeLabel: n = "Rows", horizontalAlign: i = "left" }) => {
14123
- const { isAtLeast: s, isMobile: p } = g0(), u = X(null), [g, v] = L(p ? 0 : 2), w = Z(() => {
14176
+ }, wc = 45, fc = 120, Cc = 45, yc = 45, bc = 8, Mc = 2, f2 = ({ currentPage: t, totalPages: r, totalItems: l, onPageChange: a, showPagesNumbers: h = !1, pageSizeOptions: d, pageSize: o, onPageSizeChange: m, pageSizeLabel: n = "Rows", horizontalAlign: i = "left" }) => {
14177
+ const { isAtLeast: s, isMobile: p } = g0(), u = X(null), [g, v] = L(p ? 0 : 2), w = P(() => {
14124
14178
  const C = u.current;
14125
14179
  if (!C) return;
14126
- const x = C.offsetWidth - ((s("desktop") ? gc : wc) * 2 + uc * 2 + fc * 2 + Cc * 6), k = Math.floor(x / 53), V = Math.min(yc, Math.max(0, Math.floor(k / 2)));
14180
+ const x = C.offsetWidth - ((s("desktop") ? fc : Cc) * 2 + wc * 2 + yc * 2 + bc * 6), k = Math.floor(x / 53), V = Math.min(Mc, Math.max(0, Math.floor(k / 2)));
14127
14181
  v(V);
14128
14182
  }, [s]);
14129
14183
  O(() => {
@@ -14198,25 +14252,25 @@ var oc = [{
14198
14252
  })
14199
14253
  ]
14200
14254
  });
14201
- }, bc = (t) => {
14255
+ }, xc = (t) => {
14202
14256
  const [r, l, a] = t.split("-").map(Number);
14203
14257
  return new Date(r, l - 1, a);
14204
- }, Mc = (t, r) => r === "month" ? t.toLocaleDateString("en-US", { month: "long" }) : t.toLocaleDateString("en-US", {
14258
+ }, kc = (t, r) => r === "month" ? t.toLocaleDateString("en-US", { month: "long" }) : t.toLocaleDateString("en-US", {
14205
14259
  day: "2-digit",
14206
14260
  month: "short"
14207
- }), xc = (t, r) => r === "month" ? `${t.getFullYear()}-${t.getMonth()}` : `${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`, kc = (t) => t.getFullYear().toString(), l2 = (t, r = "day") => {
14261
+ }), _c = (t, r) => r === "month" ? `${t.getFullYear()}-${t.getMonth()}` : `${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`, Lc = (t) => t.getFullYear().toString(), l2 = (t, r = "day") => {
14208
14262
  const l = /* @__PURE__ */ new Map();
14209
14263
  let a = null, h = null;
14210
14264
  return t.forEach((d, o) => {
14211
- const m = bc(d.date), n = kc(m), i = xc(m, r), s = n !== a, p = i !== h;
14265
+ const m = xc(d.date), n = Lc(m), i = _c(m, r), s = n !== a, p = i !== h;
14212
14266
  l.set(o, {
14213
14267
  showYear: s,
14214
14268
  showDate: p,
14215
14269
  yearLabel: s ? m.getFullYear().toString() : "",
14216
- dateLabel: p ? Mc(m, r) : ""
14270
+ dateLabel: p ? kc(m, r) : ""
14217
14271
  }), a = n, h = i;
14218
14272
  }), l;
14219
- }, _c = ({ marker: t, onClick: r }) => {
14273
+ }, zc = ({ marker: t, onClick: r }) => {
14220
14274
  const l = (a) => {
14221
14275
  a.stopPropagation(), r?.(a);
14222
14276
  };
@@ -14245,13 +14299,13 @@ var oc = [{
14245
14299
  onClick: l,
14246
14300
  children: /* @__PURE__ */ e("div", { className: "timeline-markers__dot timeline-markers__dot--small" })
14247
14301
  });
14248
- }, Lc = ({ marker: t }) => !t.showYear && !t.showDate ? null : /* @__PURE__ */ e("div", {
14302
+ }, Vc = ({ marker: t }) => !t.showYear && !t.showDate ? null : /* @__PURE__ */ e("div", {
14249
14303
  className: "timeline-markers__separator",
14250
14304
  children: /* @__PURE__ */ e("span", {
14251
14305
  className: "timeline-markers__separator-label",
14252
14306
  children: t.showYear ? t.yearLabel : t.dateLabel
14253
14307
  })
14254
- }), Qa = ({ items: t, renderItem: r, className: l }) => {
14308
+ }), Ja = ({ items: t, renderItem: r, className: l }) => {
14255
14309
  const a = g1(() => l2(t), [t]);
14256
14310
  return /* @__PURE__ */ c("div", {
14257
14311
  className: `timeline-markers${l ? ` ${l}` : ""}`,
@@ -14267,9 +14321,9 @@ var oc = [{
14267
14321
  100,
14268
14322
  250,
14269
14323
  500
14270
- ], W2 = (t) => typeof t.header == "string" ? t.header : t.key, zc = (t) => typeof t == "number" ? `${t}px` : t, U2 = (t) => /* @__PURE__ */ c("span", {
14324
+ ], W2 = (t) => typeof t.header == "string" ? t.header : t.key, Nc = (t) => typeof t == "number" ? `${t}px` : t, U2 = (t) => /* @__PURE__ */ c("span", {
14271
14325
  className: "data-view__column-label",
14272
- children: [t.icon && /* @__PURE__ */ e(P, {
14326
+ children: [t.icon && /* @__PURE__ */ e(G, {
14273
14327
  className: "data-view__column-icon",
14274
14328
  name: t.icon,
14275
14329
  size: "sm",
@@ -14279,14 +14333,14 @@ var oc = [{
14279
14333
  const l = t.cellIcon?.(r), a = t.accessor ? t.accessor(r) : r[t.key];
14280
14334
  return l ? /* @__PURE__ */ c("span", {
14281
14335
  className: "data-view__cell-with-icon",
14282
- children: [/* @__PURE__ */ e(P, {
14336
+ children: [/* @__PURE__ */ e(G, {
14283
14337
  className: "data-view__cell-icon",
14284
14338
  name: l
14285
14339
  }), /* @__PURE__ */ e("span", { children: a })]
14286
14340
  }) : a;
14287
14341
  };
14288
- function Vc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d, onRowClick: o, rowHref: m, rowClassName: n, empty: i, selectable: s, selectedIds: p = [], pinnedIds: u, onToggleSelect: g, cardMaxWidth: v, isMobile: w = !1, groups: f, showGroupCount: M = !0, collapsible: y = !1, collapsedGroups: C, onToggleGroup: x }) {
14289
- const k = r.filter((_) => !_.hideInCard && !(w && _.hideInMobile)), V = g1(() => new Set(u ?? []), [u]), z = `data-view__cards${v !== void 0 ? " data-view__cards--grid" : ""}`, b = v !== void 0 ? { "--data-view-card-max-width": zc(v) } : void 0, H = g1(() => d ? l2(t.map((_) => ({
14342
+ function Hc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d, onRowClick: o, rowHref: m, rowClassName: n, empty: i, selectable: s, selectedIds: p = [], pinnedIds: u, onToggleSelect: g, cardMaxWidth: v, isMobile: w = !1, groups: f, showGroupCount: M = !0, collapsible: y = !1, collapsedGroups: C, onToggleGroup: x }) {
14343
+ const k = r.filter((_) => !_.hideInCard && !(w && _.hideInMobile)), V = g1(() => new Set(u ?? []), [u]), z = `data-view__cards${v !== void 0 ? " data-view__cards--grid" : ""}`, b = v !== void 0 ? { "--data-view-card-max-width": Nc(v) } : void 0, H = g1(() => d ? l2(t.map((_) => ({
14290
14344
  id: d.idAccessor(_),
14291
14345
  date: d.dateAccessor(_)
14292
14346
  })), d.granularity) : /* @__PURE__ */ new Map(), [t, d]);
@@ -14299,14 +14353,14 @@ function Vc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
14299
14353
  secondary: i.secondary
14300
14354
  }) : /* @__PURE__ */ e(r0, { title: "No data available" });
14301
14355
  const S = (_, R) => {
14302
- const B = H.get(R), E = l(_, R), F = s && p.includes(E), n1 = V.has(E), N = m?.(_), q = `data-view__card ${o || N ? "data-view__card--clickable" : ""} ${F ? "data-view__card--selected" : ""} ${n1 ? "data-view__card--pinned" : ""} ${n?.(_) || ""}`, a1 = (D) => {
14356
+ const B = H.get(R), E = l(_, R), F = s && p.includes(E), o1 = V.has(E), N = m?.(_), q = `data-view__card ${o || N ? "data-view__card--clickable" : ""} ${F ? "data-view__card--selected" : ""} ${o1 ? "data-view__card--pinned" : ""} ${n?.(_) || ""}`, a1 = (D) => {
14303
14357
  D.metaKey || D.ctrlKey || D.shiftKey || D.altKey || D.button !== 0 || o && (D.preventDefault(), o(_, D));
14304
- }, G = /* @__PURE__ */ c(s1, { children: [
14305
- n1 && /* @__PURE__ */ e(J, {
14358
+ }, Z = /* @__PURE__ */ c(n1, { children: [
14359
+ o1 && /* @__PURE__ */ e(J, {
14306
14360
  title: "Pinned",
14307
14361
  children: /* @__PURE__ */ e("span", {
14308
14362
  className: "data-view__card-pin",
14309
- children: /* @__PURE__ */ e(P, {
14363
+ children: /* @__PURE__ */ e(G, {
14310
14364
  name: "pin",
14311
14365
  size: "sm"
14312
14366
  })
@@ -14332,7 +14386,7 @@ function Vc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
14332
14386
  className: "data-view__card-title-row",
14333
14387
  children: [/* @__PURE__ */ c("div", {
14334
14388
  className: "data-view__card-title-line",
14335
- children: [D && /* @__PURE__ */ e(P, {
14389
+ children: [D && /* @__PURE__ */ e(G, {
14336
14390
  className: "data-view__card-icon",
14337
14391
  name: D
14338
14392
  }), /* @__PURE__ */ e("span", {
@@ -14368,15 +14422,15 @@ function Vc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
14368
14422
  children: h(_)
14369
14423
  })
14370
14424
  ] });
14371
- return /* @__PURE__ */ c(u1.Fragment, { children: [B && /* @__PURE__ */ e(Lc, { marker: B }), N ? /* @__PURE__ */ e("a", {
14425
+ return /* @__PURE__ */ c(u1.Fragment, { children: [B && /* @__PURE__ */ e(Vc, { marker: B }), N ? /* @__PURE__ */ e("a", {
14372
14426
  className: q,
14373
14427
  href: N,
14374
14428
  onClick: a1,
14375
- children: G
14429
+ children: Z
14376
14430
  }) : /* @__PURE__ */ e("div", {
14377
14431
  className: q,
14378
14432
  onClick: o ? (D) => o(_, D) : void 0,
14379
- children: G
14433
+ children: Z
14380
14434
  })] }, E);
14381
14435
  };
14382
14436
  if (f) {
@@ -14401,7 +14455,7 @@ function Vc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
14401
14455
  className: "data-view__group-count",
14402
14456
  children: R.items.length === R.totalCount ? R.totalCount : `${R.items.length} of ${R.totalCount}`
14403
14457
  }),
14404
- y && /* @__PURE__ */ e(P, {
14458
+ y && /* @__PURE__ */ e(G, {
14405
14459
  className: "data-view__group-chevron",
14406
14460
  name: E ? "caret-down" : "caret-up",
14407
14461
  size: "sm"
@@ -14410,7 +14464,7 @@ function Vc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
14410
14464
  }), !E && /* @__PURE__ */ e("div", {
14411
14465
  className: z,
14412
14466
  style: b,
14413
- children: R.items.map((F, n1) => S(F, B + n1))
14467
+ children: R.items.map((F, o1) => S(F, B + o1))
14414
14468
  })]
14415
14469
  }, R.key ?? "__null__");
14416
14470
  })
@@ -14422,7 +14476,7 @@ function Vc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
14422
14476
  children: t.map((_, R) => S(_, R))
14423
14477
  });
14424
14478
  }
14425
- function Nc({ config: t }) {
14479
+ function Sc({ config: t }) {
14426
14480
  const { options: r, selectedKeys: l, onChange: a, label: h = "Columns" } = t, d = X(null), [o, m] = L(!1);
14427
14481
  if (r.length === 0) return null;
14428
14482
  const n = (i, s) => {
@@ -14441,7 +14495,7 @@ function Nc({ config: t }) {
14441
14495
  onClick: () => m((i) => !i),
14442
14496
  children: /* @__PURE__ */ c("span", {
14443
14497
  className: "data-view__column-selector-label",
14444
- children: [h, /* @__PURE__ */ e(P, {
14498
+ children: [h, /* @__PURE__ */ e(G, {
14445
14499
  name: "caret-down",
14446
14500
  size: "sm"
14447
14501
  })]
@@ -14464,7 +14518,7 @@ function Nc({ config: t }) {
14464
14518
  })]
14465
14519
  });
14466
14520
  }
14467
- var Hc = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left", showDirectionToggle: d = !1, className: o = "" }) => t.length === 0 ? null : /* @__PURE__ */ c("div", {
14521
+ var Rc = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left", showDirectionToggle: d = !1, className: o = "" }) => t.length === 0 ? null : /* @__PURE__ */ c("div", {
14468
14522
  className: [
14469
14523
  "mini-sort",
14470
14524
  `mini-sort--align-${h}`,
@@ -14477,7 +14531,7 @@ var Hc = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
14477
14531
  children: /* @__PURE__ */ e(T, {
14478
14532
  className: `mini-sort__button${s ? " is-active" : ""}`,
14479
14533
  disabled: m.disabled,
14480
- icon: m.icon ? /* @__PURE__ */ e(P, {
14534
+ icon: m.icon ? /* @__PURE__ */ e(G, {
14481
14535
  className: "mini-sort__icon",
14482
14536
  name: m.icon,
14483
14537
  size: "sm",
@@ -14494,7 +14548,7 @@ var Hc = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
14494
14548
  children: /* @__PURE__ */ e(T, {
14495
14549
  className: "mini-sort__button mini-sort__direction",
14496
14550
  disabled: r === null,
14497
- icon: /* @__PURE__ */ e(P, {
14551
+ icon: /* @__PURE__ */ e(G, {
14498
14552
  className: "mini-sort__icon",
14499
14553
  name: l === "asc" ? "arrow-up" : "arrow-down",
14500
14554
  size: "sm",
@@ -14506,9 +14560,9 @@ var Hc = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
14506
14560
  })
14507
14561
  })]
14508
14562
  });
14509
- function Sc({ columns: t, config: r, sortDirection: l, sortKey: a, onSort: h }) {
14563
+ function Bc({ columns: t, config: r, sortDirection: l, sortKey: a, onSort: h }) {
14510
14564
  const d = r?.columns ?? r?.column ?? [];
14511
- return d.length === 0 ? null : /* @__PURE__ */ e(Hc, {
14565
+ return d.length === 0 ? null : /* @__PURE__ */ e(Rc, {
14512
14566
  items: d.map((o) => {
14513
14567
  const m = t.find((n) => n.key === o.column);
14514
14568
  return {
@@ -14525,14 +14579,14 @@ function Sc({ columns: t, config: r, sortDirection: l, sortKey: a, onSort: h })
14525
14579
  align: r?.align ?? "left"
14526
14580
  });
14527
14581
  }
14528
- function Rc({ state: t }) {
14582
+ function Ac({ state: t }) {
14529
14583
  return /* @__PURE__ */ e("span", {
14530
14584
  className: `data-view__sort-icon data-view__sort-icon--${t}`,
14531
- children: /* @__PURE__ */ e(P, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
14585
+ children: /* @__PURE__ */ e(G, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
14532
14586
  });
14533
14587
  }
14534
- function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1, onSelectionChange: d, selectedIds: o, pageSizeOptions: m = C2, initialPageSize: n = C2[1], showPageSize: i = !0, card: s, actions: p, actionsWidth: u, timeline: g, onRowClick: v, rowHref: w, rowClassName: f, rowDetail: M, empty: y, initialSortKey: C = null, initialSortDirection: x = "asc", sortKey: k, sortDirection: V, onSortChange: z, miniSort: b, showCardSortControls: H = !0, desktopView: S = "table", cardMaxWidth: _, className: R, onPageChange: B, onPageSizeChange: E, currentPage: F, totalItems: n1, group: N, showResultsCount: q = !0, totalCount: a1, itemNoun: G, columnSelector: D }) {
14535
- const { isMobile: Q } = g0(), [h1, U] = L(C), [d1, v1] = L(x), [y1, _1] = L([]), C1 = o ?? y1, [I1, t1] = L(1), o1 = F ?? I1, [A, j] = L(n), [l1, m1] = L(() => t.reduce(($, c1) => (c1.width && ($[c1.key] = c1.width), $), {})), [x1, M1] = L(/* @__PURE__ */ new Set()), E1 = ($) => {
14588
+ function ei({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1, onSelectionChange: d, selectedIds: o, pageSizeOptions: m = C2, initialPageSize: n = C2[1], showPageSize: i = !0, card: s, actions: p, actionsWidth: u, timeline: g, onRowClick: v, rowHref: w, rowClassName: f, rowDetail: M, empty: y, initialSortKey: C = null, initialSortDirection: x = "asc", sortKey: k, sortDirection: V, onSortChange: z, miniSort: b, showCardSortControls: H = !0, desktopView: S = "table", cardMaxWidth: _, className: R, onPageChange: B, onPageSizeChange: E, currentPage: F, totalItems: o1, group: N, showResultsCount: q = !0, totalCount: a1, itemNoun: Z, columnSelector: D }) {
14589
+ const { isMobile: Q } = g0(), [h1, U] = L(C), [d1, v1] = L(x), [y1, _1] = L([]), C1 = o ?? y1, [I1, t1] = L(1), s1 = F ?? I1, [A, j] = L(n), [l1, m1] = L(() => t.reduce(($, c1) => (c1.width && ($[c1.key] = c1.width), $), {})), [x1, M1] = L(/* @__PURE__ */ new Set()), E1 = ($) => {
14536
14590
  M1((c1) => {
14537
14591
  const p1 = new Set(c1);
14538
14592
  return p1.has($) ? p1.delete($) : p1.add($), p1;
@@ -14575,7 +14629,7 @@ function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14575
14629
  N1,
14576
14630
  i0,
14577
14631
  a
14578
- ]), D1 = n1 !== void 0, U1 = g1(() => {
14632
+ ]), D1 = o1 !== void 0, U1 = g1(() => {
14579
14633
  if (!N || D1) return L1;
14580
14634
  const $ = /* @__PURE__ */ new Map(), c1 = [];
14581
14635
  L1.forEach((K) => {
@@ -14596,7 +14650,7 @@ function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14596
14650
  N,
14597
14651
  D1,
14598
14652
  L1
14599
- ]), J1 = D1 ? n1 : U1.length, e0 = Math.max(1, Math.ceil(J1 / A)), W = Math.min(o1, e0), I = D1 ? U1 : U1.slice((W - 1) * A, W * A), Y = q ? vc(A, J1, a1 ?? J1, W, G) : null, r1 = g1(() => {
14653
+ ]), J1 = D1 ? o1 : U1.length, e0 = Math.max(1, Math.ceil(J1 / A)), W = Math.min(s1, e0), I = D1 ? U1 : U1.slice((W - 1) * A, W * A), Y = q ? gc(A, J1, a1 ?? J1, W, Z) : null, r1 = g1(() => {
14600
14654
  if (!N) return null;
14601
14655
  const $ = /* @__PURE__ */ new Map();
14602
14656
  return U1.forEach((c1) => {
@@ -14643,13 +14697,13 @@ function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14643
14697
  }, f0 = t.some(($) => $.filter), n0 = t.filter(($) => $.sortable), T0 = n0.map(($) => ({
14644
14698
  label: W2($),
14645
14699
  value: $.key
14646
- })), u3 = n0.length > 0, I0 = N1 ? n0.find(($) => $.key === N1) : void 0, g3 = b?.align ?? "left", n2 = (b?.columns ?? b?.column ?? []).length > 0 ? /* @__PURE__ */ e(Sc, {
14700
+ })), u3 = n0.length > 0, I0 = N1 ? n0.find(($) => $.key === N1) : void 0, g3 = b?.align ?? "left", n2 = (b?.columns ?? b?.column ?? []).length > 0 ? /* @__PURE__ */ e(Bc, {
14647
14701
  columns: t,
14648
14702
  config: b,
14649
14703
  sortKey: N1,
14650
14704
  sortDirection: H1,
14651
14705
  onSort: Z1
14652
- }) : null, o2 = D && D.options.length > 0 ? /* @__PURE__ */ e(Nc, { config: D }) : null, G0 = Y || n2 || o2 ? /* @__PURE__ */ c("div", {
14706
+ }) : null, o2 = D && D.options.length > 0 ? /* @__PURE__ */ e(Sc, { config: D }) : null, G0 = Y || n2 || o2 ? /* @__PURE__ */ c("div", {
14653
14707
  className: `data-view__top-row data-view__top-row--mini-${g3}`,
14654
14708
  children: [
14655
14709
  Y && /* @__PURE__ */ e("div", {
@@ -14704,7 +14758,7 @@ function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14704
14758
  I0 && Z1(I0.key, H1 === "asc" ? "desc" : "asc");
14705
14759
  },
14706
14760
  variant: "ghost",
14707
- children: /* @__PURE__ */ e(P, { name: H1 === "asc" ? "arrow-up" : "arrow-down" })
14761
+ children: /* @__PURE__ */ e(G, { name: H1 === "asc" ? "arrow-up" : "arrow-down" })
14708
14762
  })
14709
14763
  })]
14710
14764
  }),
@@ -14715,7 +14769,7 @@ function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14715
14769
  children: $.filter
14716
14770
  }, $.key))
14717
14771
  }),
14718
- /* @__PURE__ */ e(Vc, {
14772
+ /* @__PURE__ */ e(Hc, {
14719
14773
  data: I,
14720
14774
  columns: t,
14721
14775
  rowKey: G1,
@@ -14753,7 +14807,7 @@ function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14753
14807
  })
14754
14808
  ]
14755
14809
  });
14756
- const C0 = t.filter(($) => !$.hideInTable), w3 = h && C1.length > 0 && C1.length === r.length, f3 = h && C1.length > 0 && C1.length < r.length, o0 = g && N0.size > 0, s2 = /* @__PURE__ */ c(s1, { children: [
14810
+ const C0 = t.filter(($) => !$.hideInTable), w3 = h && C1.length > 0 && C1.length === r.length, f3 = h && C1.length > 0 && C1.length < r.length, o0 = g && N0.size > 0, s2 = /* @__PURE__ */ c(n1, { children: [
14757
14811
  G0,
14758
14812
  /* @__PURE__ */ e("div", {
14759
14813
  className: "data-view__wrapper",
@@ -14777,7 +14831,7 @@ function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14777
14831
  onClick: () => D0($),
14778
14832
  children: [/* @__PURE__ */ c("span", {
14779
14833
  className: "data-view__th-content",
14780
- children: [U2($), $.sortable && /* @__PURE__ */ e(Rc, { state: N1 === $.key ? H1 : "unsorted" })]
14834
+ children: [U2($), $.sortable && /* @__PURE__ */ e(Ac, { state: N1 === $.key ? H1 : "unsorted" })]
14781
14835
  }), /* @__PURE__ */ e("span", {
14782
14836
  className: "data-view__resizer",
14783
14837
  onMouseDown: (p1) => w0(p1, $.key),
@@ -14835,7 +14889,7 @@ function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14835
14889
  children: [
14836
14890
  o0 && /* @__PURE__ */ e("td", {
14837
14891
  className: "data-view__timeline-cell",
14838
- children: T1 && /* @__PURE__ */ e(_c, { marker: T1 })
14892
+ children: T1 && /* @__PURE__ */ e(zc, { marker: T1 })
14839
14893
  }),
14840
14894
  h && /* @__PURE__ */ e("td", {
14841
14895
  className: "data-view__checkbox",
@@ -14850,7 +14904,7 @@ function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14850
14904
  style: l1[b1.key] ? { width: l1[b1.key] } : void 0,
14851
14905
  children: [P0 === 0 && S1 && /* @__PURE__ */ e(J, {
14852
14906
  title: "Pinned",
14853
- children: /* @__PURE__ */ e(P, {
14907
+ children: /* @__PURE__ */ e(G, {
14854
14908
  className: "data-view__pin-indicator",
14855
14909
  name: "pin",
14856
14910
  size: "sm"
@@ -14897,7 +14951,7 @@ function Ja({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14897
14951
  className: "data-view__group-count",
14898
14952
  children: e1.items.length === e1.totalCount ? e1.totalCount : `${e1.items.length} of ${e1.totalCount}`
14899
14953
  }),
14900
- N?.collapsible && /* @__PURE__ */ e(P, {
14954
+ N?.collapsible && /* @__PURE__ */ e(G, {
14901
14955
  className: "data-view__group-chevron",
14902
14956
  name: B1 ? "caret-down" : "caret-up",
14903
14957
  size: "sm"
@@ -14935,7 +14989,7 @@ var t0 = (t) => {
14935
14989
  const [r, l, a] = t.split("-").map((h) => Number(h));
14936
14990
  if (!(!r || !l || !a))
14937
14991
  return new Date(r, l - 1, a);
14938
- }, H0 = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, ei = ({ label: t, value: r, onChange: l, min: a, max: h, alwaysOpen: d = !1, autoClose: o = !0, presets: m }) => {
14992
+ }, H0 = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, ti = ({ label: t, value: r, onChange: l, min: a, max: h, alwaysOpen: d = !1, autoClose: o = !0, presets: m }) => {
14939
14993
  const [n, i] = L({}), [s, p] = L(() => /* @__PURE__ */ new Date()), [u, g] = L(null), [v, w] = L(d), [f, M] = L({
14940
14994
  position: "fixed",
14941
14995
  visibility: "hidden"
@@ -14951,7 +15005,7 @@ var t0 = (t) => {
14951
15005
  }), g(null), !d && o && w(!1));
14952
15006
  }, E = (U) => {
14953
15007
  g(U);
14954
- }, F = (U) => /^\d{4}-\d{2}-\d{2}$/.test(U) && t0(U) !== void 0, n1 = () => {
15008
+ }, F = (U) => /^\d{4}-\d{2}-\d{2}$/.test(U) && t0(U) !== void 0, o1 = () => {
14955
15009
  F(y) ? R({
14956
15010
  ...b,
14957
15011
  start: y
@@ -14973,9 +15027,9 @@ var t0 = (t) => {
14973
15027
  }, [b.start]), O(() => {
14974
15028
  k(b.end ?? "");
14975
15029
  }, [b.end]);
14976
- const a1 = g1(() => k0(s, 1), [s]), G = d || v, D = !d && v, Q = Z(() => {
15030
+ const a1 = g1(() => k0(s, 1), [s]), Z = d || v, D = !d && v, Q = P(() => {
14977
15031
  if (!D || !V.current || !z.current) return;
14978
- const U = V.current.getBoundingClientRect(), d1 = z.current.getBoundingClientRect(), v1 = 16, y1 = 8, _1 = window.innerHeight - U.bottom - v1, C1 = U.top - v1, I1 = _1 < d1.height && C1 > d1.height ? U.top - d1.height - y1 : U.bottom + y1, t1 = Math.max(v1, Math.min(I1, window.innerHeight - d1.height - v1)), o1 = U.left, A = Math.max(v1, Math.min(o1, window.innerWidth - d1.width - v1));
15032
+ const U = V.current.getBoundingClientRect(), d1 = z.current.getBoundingClientRect(), v1 = 16, y1 = 8, _1 = window.innerHeight - U.bottom - v1, C1 = U.top - v1, I1 = _1 < d1.height && C1 > d1.height ? U.top - d1.height - y1 : U.bottom + y1, t1 = Math.max(v1, Math.min(I1, window.innerHeight - d1.height - v1)), s1 = U.left, A = Math.max(v1, Math.min(s1, window.innerWidth - d1.width - v1));
14979
15033
  M({
14980
15034
  position: "fixed",
14981
15035
  top: `${t1}px`,
@@ -15083,7 +15137,7 @@ var t0 = (t) => {
15083
15137
  children: U.label
15084
15138
  }, U.days))
15085
15139
  })]
15086
- }) : /* @__PURE__ */ c(s1, { children: [t && /* @__PURE__ */ e("label", {
15140
+ }) : /* @__PURE__ */ c(n1, { children: [t && /* @__PURE__ */ e("label", {
15087
15141
  className: "date-range-picker__label",
15088
15142
  children: t
15089
15143
  }), m && m.length > 0 && /* @__PURE__ */ e("div", {
@@ -15103,7 +15157,7 @@ var t0 = (t) => {
15103
15157
  placeholder: "YYYY-MM-DD",
15104
15158
  maxLength: 10,
15105
15159
  onChange: C,
15106
- onBlur: n1
15160
+ onBlur: o1
15107
15161
  }),
15108
15162
  /* @__PURE__ */ e("span", {
15109
15163
  className: "date-range-picker__separator",
@@ -15120,11 +15174,11 @@ var t0 = (t) => {
15120
15174
  className: "date-range-picker__toggle",
15121
15175
  variant: "default",
15122
15176
  onClick: () => w((U) => !U),
15123
- children: G ? "Hide calendar" : "Choose dates"
15177
+ children: Z ? "Hide calendar" : "Choose dates"
15124
15178
  })
15125
15179
  ]
15126
15180
  }),
15127
- d && G && h1,
15181
+ d && Z && h1,
15128
15182
  D && K1(/* @__PURE__ */ e("div", {
15129
15183
  ref: z,
15130
15184
  className: "date-range-picker__overlay",
@@ -15169,7 +15223,7 @@ function O2(t, r) {
15169
15223
  }
15170
15224
  return m;
15171
15225
  }
15172
- function Bc(t, r) {
15226
+ function $c(t, r) {
15173
15227
  const l = O2(t.split(`
15174
15228
  `), r.split(`
15175
15229
  `)), a = [];
@@ -15203,17 +15257,17 @@ function Bc(t, r) {
15203
15257
  }
15204
15258
  return a;
15205
15259
  }
15206
- function Ac(t, r) {
15260
+ function Ec(t, r) {
15207
15261
  const l = (a) => a.match(/\S+|\s+/g) ?? [];
15208
15262
  return O2(l(t), l(r));
15209
15263
  }
15210
- var $c = ({ a: t, b: r, side: l }) => /* @__PURE__ */ e(s1, { children: Ac(t, r).map((a, h) => a.kind === "eq" ? /* @__PURE__ */ e("span", { children: a.val }, h) : a.kind === "del" && l === "old" ? /* @__PURE__ */ e("mark", {
15264
+ var Dc = ({ a: t, b: r, side: l }) => /* @__PURE__ */ e(n1, { children: Ec(t, r).map((a, h) => a.kind === "eq" ? /* @__PURE__ */ e("span", { children: a.val }, h) : a.kind === "del" && l === "old" ? /* @__PURE__ */ e("mark", {
15211
15265
  className: "dv-word dv-word--del",
15212
15266
  children: a.val
15213
15267
  }, h) : a.kind === "ins" && l === "new" ? /* @__PURE__ */ e("mark", {
15214
15268
  className: "dv-word dv-word--ins",
15215
15269
  children: a.val
15216
- }, h) : null) }), Ec = [
15270
+ }, h) : null) }), Tc = [
15217
15271
  {
15218
15272
  name: "comment",
15219
15273
  pattern: /\/\/.*$|\/\*[\s\S]*?\*\/|#.*$/m
@@ -15243,12 +15297,12 @@ var $c = ({ a: t, b: r, side: l }) => /* @__PURE__ */ e(s1, { children: Ac(t, r)
15243
15297
  pattern: /\b[a-zA-Z_$][a-zA-Z0-9_$]*(?=\s*\()/
15244
15298
  }
15245
15299
  ];
15246
- function Dc(t) {
15300
+ function Ic(t) {
15247
15301
  const r = [];
15248
15302
  let l = t;
15249
15303
  for (; l.length > 0; ) {
15250
15304
  let a = !1;
15251
- for (const { name: h, pattern: d } of Ec) {
15305
+ for (const { name: h, pattern: d } of Tc) {
15252
15306
  const o = l.match(new RegExp(`^(?:${d.source})`, d.flags));
15253
15307
  if (o) {
15254
15308
  r.push({
@@ -15265,18 +15319,18 @@ function Dc(t) {
15265
15319
  }
15266
15320
  return r;
15267
15321
  }
15268
- var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t]).map((r, l) => r.name === "plain" ? /* @__PURE__ */ e("span", { children: r.val }, l) : /* @__PURE__ */ e("span", {
15322
+ var Gc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Ic(t), [t]).map((r, l) => r.name === "plain" ? /* @__PURE__ */ e("span", { children: r.val }, l) : /* @__PURE__ */ e("span", {
15269
15323
  className: `dv-token dv-token--${r.name}`,
15270
15324
  children: r.val
15271
15325
  }, l)) }), q0 = ({ line: t, side: r, type: l }) => {
15272
15326
  const a = r === "old" ? t.text ?? t.oldText ?? "" : t.text ?? t.newText ?? "";
15273
- return t.kind !== "equal" && t.oldText !== void 0 && t.newText !== void 0 ? /* @__PURE__ */ e($c, {
15327
+ return t.kind !== "equal" && t.oldText !== void 0 && t.newText !== void 0 ? /* @__PURE__ */ e(Dc, {
15274
15328
  a: t.oldText,
15275
15329
  b: t.newText,
15276
15330
  side: r
15277
- }) : l === "code" ? /* @__PURE__ */ e(Tc, { text: a }) : /* @__PURE__ */ e(s1, { children: a });
15278
- }, ti = ({ oldValue: t, newValue: r, mode: l = "split", type: a = "text", oldTitle: h = "Before", newTitle: d = "After", showLineNumbers: o = !0 }) => {
15279
- const m = g1(() => Bc(t, r), [t, r]), n = g1(() => ({
15331
+ }) : l === "code" ? /* @__PURE__ */ e(Gc, { text: a }) : /* @__PURE__ */ e(n1, { children: a });
15332
+ }, ri = ({ oldValue: t, newValue: r, mode: l = "split", type: a = "text", oldTitle: h = "Before", newTitle: d = "After", showLineNumbers: o = !0 }) => {
15333
+ const m = g1(() => $c(t, r), [t, r]), n = g1(() => ({
15280
15334
  added: m.filter((i) => i.kind === "added").length,
15281
15335
  removed: m.filter((i) => i.kind === "removed").length
15282
15336
  }), [m]);
@@ -15284,7 +15338,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
15284
15338
  className: `dv dv--${l} dv--${a}`,
15285
15339
  children: [/* @__PURE__ */ c("div", {
15286
15340
  className: "dv__header",
15287
- children: [l === "split" ? /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("div", {
15341
+ children: [l === "split" ? /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("div", {
15288
15342
  className: "dv__header-side",
15289
15343
  children: h
15290
15344
  }), /* @__PURE__ */ e("div", {
@@ -15372,7 +15426,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
15372
15426
  children: m.map((i, s) => /* @__PURE__ */ c("div", {
15373
15427
  className: `dv__row dv__row--${i.kind}`,
15374
15428
  children: [
15375
- o && /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("span", {
15429
+ o && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("span", {
15376
15430
  className: "dv__lineno",
15377
15431
  children: i.kind !== "added" ? i.oldLineNo : ""
15378
15432
  }), /* @__PURE__ */ e("span", {
@@ -15396,7 +15450,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
15396
15450
  })
15397
15451
  })]
15398
15452
  });
15399
- }, Ic = 1e3, y2 = 0, Y2 = ({ isOpen: t, onClose: r, position: l = "left", width: a = "320px", maxWidth: h = "none", margin: d = 0, borderRadius: o = 0, shadow: m = "none", children: n, title: i, icon: s, className: p = "", showOverlay: u = !0, lockScroll: g = !0, hideClose: v = !1, actions: w = [], onBack: f, backLabel: M = "Back", primary: y, secondary: C, footer: x }) => {
15453
+ }, Zc = 1e3, y2 = 0, Y2 = ({ isOpen: t, onClose: r, position: l = "left", width: a = "320px", maxWidth: h = "none", margin: d = 0, borderRadius: o = 0, shadow: m = "none", children: n, title: i, icon: s, className: p = "", showOverlay: u = !0, lockScroll: g = !0, hideClose: v = !1, actions: w = [], onBack: f, backLabel: M = "Back", primary: y, secondary: C, footer: x }) => {
15400
15454
  B2(t && g);
15401
15455
  const [k, V] = L(0);
15402
15456
  if (O(() => {
@@ -15407,7 +15461,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
15407
15461
  };
15408
15462
  return document.addEventListener("keydown", _), () => document.removeEventListener("keydown", _);
15409
15463
  }, [t, r]), !t) return null;
15410
- const z = (_) => typeof _ == "number" ? `${_}px` : _, b = Ic + k * 2, H = {
15464
+ const z = (_) => typeof _ == "number" ? `${_}px` : _, b = Zc + k * 2, H = {
15411
15465
  "--drawer-width": a,
15412
15466
  "--drawer-max-width": z(h),
15413
15467
  "--drawer-margin": z(d),
@@ -15415,7 +15469,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
15415
15469
  "--drawer-shadow": m,
15416
15470
  zIndex: b + 1
15417
15471
  }, S = x || y || C;
15418
- return /* @__PURE__ */ c(s1, { children: [u && /* @__PURE__ */ e("div", {
15472
+ return /* @__PURE__ */ c(n1, { children: [u && /* @__PURE__ */ e("div", {
15419
15473
  className: "drawer-overlay",
15420
15474
  onClick: r,
15421
15475
  style: { zIndex: b }
@@ -15439,7 +15493,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
15439
15493
  }),
15440
15494
  (i || s) && /* @__PURE__ */ c("h2", {
15441
15495
  className: "drawer__title",
15442
- children: [s && /* @__PURE__ */ e(P, { name: s }), i && /* @__PURE__ */ e("span", {
15496
+ children: [s && /* @__PURE__ */ e(G, { name: s }), i && /* @__PURE__ */ e("span", {
15443
15497
  className: "drawer__title-text",
15444
15498
  children: i
15445
15499
  })]
@@ -15501,7 +15555,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
15501
15555
  })
15502
15556
  ]
15503
15557
  })] });
15504
- }, Gc = {
15558
+ }, Pc = {
15505
15559
  "⚽": [
15506
15560
  "soccer",
15507
15561
  "football",
@@ -16005,7 +16059,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
16005
16059
  "bike",
16006
16060
  "sport"
16007
16061
  ]
16008
- }, Zc = {
16062
+ }, jc = {
16009
16063
  "🐶": [
16010
16064
  "dog",
16011
16065
  "puppy",
@@ -16502,7 +16556,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
16502
16556
  "animal",
16503
16557
  "wild"
16504
16558
  ]
16505
- }, Pc = {
16559
+ }, Wc = {
16506
16560
  "🍎": [
16507
16561
  "apple",
16508
16562
  "fruit",
@@ -17038,7 +17092,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
17038
17092
  "pop",
17039
17093
  "cork"
17040
17094
  ]
17041
- }, jc = {
17095
+ }, Uc = {
17042
17096
  "⌚": [
17043
17097
  "watch",
17044
17098
  "time",
@@ -17686,7 +17740,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
17686
17740
  "restroom",
17687
17741
  "wc"
17688
17742
  ]
17689
- }, Wc = {
17743
+ }, Fc = {
17690
17744
  "👋": [
17691
17745
  "wave",
17692
17746
  "hello",
@@ -18170,7 +18224,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
18170
18224
  "girl",
18171
18225
  "tiara"
18172
18226
  ]
18173
- }, Uc = {
18227
+ }, Oc = {
18174
18228
  "😀": [
18175
18229
  "grinning",
18176
18230
  "happy",
@@ -18704,7 +18758,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
18704
18758
  "tipsy",
18705
18759
  "confused"
18706
18760
  ]
18707
- }, Fc = {
18761
+ }, Yc = {
18708
18762
  "❤️": [
18709
18763
  "heart",
18710
18764
  "red",
@@ -19297,7 +19351,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
19297
19351
  "forbidden",
19298
19352
  "symbol"
19299
19353
  ]
19300
- }, Oc = {
19354
+ }, qc = {
19301
19355
  "🚗": [
19302
19356
  "car",
19303
19357
  "automobile",
@@ -19800,15 +19854,15 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
19800
19854
  "country",
19801
19855
  "asia"
19802
19856
  ]
19803
- }, Yc = {
19804
- ...Uc,
19805
- ...Wc,
19806
- ...Zc,
19807
- ...Pc,
19857
+ }, Xc = {
19808
19858
  ...Oc,
19809
- ...Gc,
19859
+ ...Fc,
19810
19860
  ...jc,
19811
- ...Fc
19861
+ ...Wc,
19862
+ ...qc,
19863
+ ...Pc,
19864
+ ...Uc,
19865
+ ...Yc
19812
19866
  }, S0 = [
19813
19867
  {
19814
19868
  id: "smileys",
@@ -20548,11 +20602,11 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20548
20602
  "🈲"
20549
20603
  ]
20550
20604
  }
20551
- ], ri = ({ value: t, onChange: r }) => {
20605
+ ], ci = ({ value: t, onChange: r }) => {
20552
20606
  const [l, a] = L(""), [h, d] = L(S0[0].id), o = g1(() => {
20553
20607
  if (!l.trim()) return null;
20554
20608
  const n = l.toLowerCase();
20555
- return S0.flatMap((i) => i.emojis.filter((s) => Yc[s]?.some((p) => p.includes(n)) || i.name.toLowerCase().includes(n)));
20609
+ return S0.flatMap((i) => i.emojis.filter((s) => Xc[s]?.some((p) => p.includes(n)) || i.name.toLowerCase().includes(n)));
20556
20610
  }, [l]), m = o ?? S0.find((n) => n.id === h)?.emojis ?? [];
20557
20611
  return /* @__PURE__ */ c("div", {
20558
20612
  className: "emoji-picker",
@@ -20588,7 +20642,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20588
20642
  })
20589
20643
  ]
20590
20644
  });
20591
- }, ci = class extends b3 {
20645
+ }, li = class extends b3 {
20592
20646
  constructor(...t) {
20593
20647
  super(...t), this.state = { error: null }, this.reset = () => {
20594
20648
  this.setState({ error: null });
@@ -20616,7 +20670,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20616
20670
  })
20617
20671
  }) : r;
20618
20672
  }
20619
- }, li = ({ label: t, accept: r, multiple: l = !1, showPreview: a = !0, onFiles: h }) => {
20673
+ }, ai = ({ label: t, accept: r, multiple: l = !1, showPreview: a = !0, onFiles: h }) => {
20620
20674
  const [d, o] = L(!1), [m, n] = L([]), i = X(null), [s, p] = L([]);
20621
20675
  O(() => {
20622
20676
  if (!a) return;
@@ -20625,7 +20679,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20625
20679
  v.forEach((w) => URL.revokeObjectURL(w));
20626
20680
  };
20627
20681
  }, [m, a]);
20628
- const u = Z((v) => {
20682
+ const u = P((v) => {
20629
20683
  if (!v) return;
20630
20684
  const w = l ? Array.from(v) : [v[0]].filter(Boolean);
20631
20685
  n(w), h?.(w);
@@ -20679,7 +20733,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20679
20733
  })
20680
20734
  ]
20681
20735
  });
20682
- }, ai = ({ actions: t }) => {
20736
+ }, ii = ({ actions: t }) => {
20683
20737
  const [r, l] = L(!1);
20684
20738
  if (t.length === 1) return /* @__PURE__ */ e("div", {
20685
20739
  className: "float-button-container",
@@ -20691,7 +20745,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20691
20745
  onClick: t[0].onClick,
20692
20746
  children: /* @__PURE__ */ e("span", {
20693
20747
  className: "float-button__icon",
20694
- children: /* @__PURE__ */ e(P, {
20748
+ children: /* @__PURE__ */ e(G, {
20695
20749
  name: t[0].icon,
20696
20750
  size: "xxl"
20697
20751
  })
@@ -20706,7 +20760,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20706
20760
  };
20707
20761
  return /* @__PURE__ */ c("div", {
20708
20762
  className: "float-button-container",
20709
- children: [r && /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("div", {
20763
+ children: [r && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("div", {
20710
20764
  className: "float-button-overlay",
20711
20765
  onClick: () => l(!1)
20712
20766
  }), /* @__PURE__ */ e("div", {
@@ -20716,7 +20770,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20716
20770
  onClick: () => h(d),
20717
20771
  children: [/* @__PURE__ */ e("span", {
20718
20772
  className: "float-button-menu__icon",
20719
- children: /* @__PURE__ */ e(P, { name: d.icon })
20773
+ children: /* @__PURE__ */ e(G, { name: d.icon })
20720
20774
  }), /* @__PURE__ */ e("span", {
20721
20775
  className: "float-button-menu__label",
20722
20776
  children: d.label
@@ -20729,7 +20783,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20729
20783
  onClick: a,
20730
20784
  children: /* @__PURE__ */ e("span", {
20731
20785
  className: "float-button__icon",
20732
- children: /* @__PURE__ */ e(P, {
20786
+ children: /* @__PURE__ */ e(G, {
20733
20787
  name: r ? "clear" : "plus",
20734
20788
  size: "xxl"
20735
20789
  })
@@ -20740,8 +20794,8 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20740
20794
  }, q2 = () => /* @__PURE__ */ e("div", {
20741
20795
  className: "loading",
20742
20796
  children: /* @__PURE__ */ e("div", { className: "loading__spinner" })
20743
- }), ii = ({ isOpen: t, title: r = "Select a folder", initialPath: l, loadDirectory: a, onSelect: h, onClose: d, selectLabel: o = "Select this folder" }) => {
20744
- const [m, n] = L(null), [i, s] = L(!1), [p, u] = L(""), g = Z(async (y) => {
20797
+ }), ni = ({ isOpen: t, title: r = "Select a folder", initialPath: l, loadDirectory: a, onSelect: h, onClose: d, selectLabel: o = "Select this folder" }) => {
20798
+ const [m, n] = L(null), [i, s] = L(!1), [p, u] = L(""), g = P(async (y) => {
20745
20799
  s(!0);
20746
20800
  try {
20747
20801
  n(await a(y));
@@ -20851,7 +20905,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20851
20905
  g(y.path);
20852
20906
  },
20853
20907
  children: [
20854
- /* @__PURE__ */ e(P, {
20908
+ /* @__PURE__ */ e(G, {
20855
20909
  name: "folder",
20856
20910
  size: "sm"
20857
20911
  }),
@@ -20859,7 +20913,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20859
20913
  className: "folder-browser__entry-name",
20860
20914
  children: y.name
20861
20915
  }),
20862
- /* @__PURE__ */ e(P, {
20916
+ /* @__PURE__ */ e(G, {
20863
20917
  className: "folder-browser__entry-chevron",
20864
20918
  name: "arrow-right",
20865
20919
  size: "sm"
@@ -20870,8 +20924,8 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20870
20924
  ]
20871
20925
  })
20872
20926
  });
20873
- }, ni = ({ children: t, onLoadMore: r, hasMore: l, isLoading: a = !1, threshold: h = 0, rootMargin: d = "0px", height: o, onScrollChange: m, endMessage: n, className: i }) => {
20874
- const s = X(null), p = X(null), u = X(null), g = Z(() => {
20927
+ }, oi = ({ children: t, onLoadMore: r, hasMore: l, isLoading: a = !1, threshold: h = 0, rootMargin: d = "0px", height: o, onScrollChange: m, endMessage: n, className: i }) => {
20928
+ const s = X(null), p = X(null), u = X(null), g = P(() => {
20875
20929
  const v = s.current;
20876
20930
  if (!v) return;
20877
20931
  const { scrollTop: w, scrollHeight: f, clientHeight: M } = v, y = {
@@ -20927,8 +20981,8 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20927
20981
  })
20928
20982
  ]
20929
20983
  });
20930
- }, qc = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, Xc = (t) => !t || t.trim() === "" ? !0 : qc.test(t.trim()), oi = z1(({ autoComplete: t = "on", autoFocus: r, disabled: l, error: a = "Please enter a valid email address", highlighted: h, id: d, label: o, maxLength: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, onValidate: g, placeholder: v, readOnly: w = !1, required: f = !1, showValidation: M = !1, success: y, validateOn: C = "blur", value: x }, k) => {
20931
- const [V, z] = L(!0), [b, H] = L(!1), S = (E) => f && (!E || E.trim() === "") ? !1 : !E || E.trim() === "" ? !0 : Xc(E);
20984
+ }, Kc = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, Qc = (t) => !t || t.trim() === "" ? !0 : Kc.test(t.trim()), si = z1(({ autoComplete: t = "on", autoFocus: r, disabled: l, error: a = "Please enter a valid email address", highlighted: h, id: d, label: o, maxLength: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, onValidate: g, placeholder: v, readOnly: w = !1, required: f = !1, showValidation: M = !1, success: y, validateOn: C = "blur", value: x }, k) => {
20985
+ const [V, z] = L(!0), [b, H] = L(!1), S = (E) => f && (!E || E.trim() === "") ? !1 : !E || E.trim() === "" ? !0 : Qc(E);
20932
20986
  O(() => {
20933
20987
  if (x !== void 0) {
20934
20988
  const E = S(x);
@@ -20991,7 +21045,7 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
20991
21045
  })
20992
21046
  ]
20993
21047
  });
20994
- }), si = z1(({ accept: t, disabled: r, error: l, highlighted: a, id: h, label: d, onChange: o, onClick: m, onKeyDown: n, placeholder: i, required: s, success: p, value: u }, g) => /* @__PURE__ */ c("div", {
21048
+ }), hi = z1(({ accept: t, disabled: r, error: l, highlighted: a, id: h, label: d, onChange: o, onClick: m, onKeyDown: n, placeholder: i, required: s, success: p, value: u }, g) => /* @__PURE__ */ c("div", {
20995
21049
  className: `input-file-wrapper${a ? " input-file-highlighted" : ""}`,
20996
21050
  children: [
20997
21051
  d && /* @__PURE__ */ c("label", {
@@ -21029,16 +21083,16 @@ var Tc = ({ text: t }) => /* @__PURE__ */ e(s1, { children: g1(() => Dc(t), [t])
21029
21083
  a: /[a-zA-Z]/,
21030
21084
  "*": /[a-zA-Z0-9]/
21031
21085
  };
21032
- function Kc(t) {
21086
+ function Jc(t) {
21033
21087
  return t in X2;
21034
21088
  }
21035
- function Qc(t) {
21089
+ function el(t) {
21036
21090
  const r = [];
21037
21091
  let l = 0;
21038
21092
  for (; l < t.length; ) t[l] === "\\" && l + 1 < t.length ? (r.push({
21039
21093
  type: "literal",
21040
21094
  char: t[l + 1]
21041
- }), l += 2) : Kc(t[l]) ? (r.push({
21095
+ }), l += 2) : Jc(t[l]) ? (r.push({
21042
21096
  type: "token",
21043
21097
  key: t[l]
21044
21098
  }), l++) : (r.push({
@@ -21059,11 +21113,11 @@ function X0(t, r, l) {
21059
21113
  rawAccepted: d
21060
21114
  };
21061
21115
  }
21062
- function Jc(t) {
21116
+ function tl(t) {
21063
21117
  return t.filter((r) => r.type === "token").length;
21064
21118
  }
21065
- var el = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, label: d, hint: o, error: m, highlighted: n, size: i = "md", variant: s = "default", disabled: p = !1, readOnly: u = !1, maskChar: g = "_", mono: v = !0, icon: w, suffix: f, className: M = "", id: y, name: C, autoComplete: x }, k) => {
21066
- const V = u1.useMemo(() => Qc(t), [t]), z = u1.useMemo(() => Jc(V), [V]), b = z0(), H = y ?? b, [S, _] = L(() => r !== void 0 ? r : ""), R = X(null);
21119
+ var rl = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, label: d, hint: o, error: m, highlighted: n, size: i = "md", variant: s = "default", disabled: p = !1, readOnly: u = !1, maskChar: g = "_", mono: v = !0, icon: w, suffix: f, className: M = "", id: y, name: C, autoComplete: x }, k) => {
21120
+ const V = u1.useMemo(() => el(t), [t]), z = u1.useMemo(() => tl(V), [V]), b = z0(), H = y ?? b, [S, _] = L(() => r !== void 0 ? r : ""), R = X(null);
21067
21121
  S2(k, () => ({
21068
21122
  focus: () => R.current?.focus(),
21069
21123
  clear: () => {
@@ -21071,7 +21125,7 @@ var el = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, la
21071
21125
  },
21072
21126
  getRawValue: () => S
21073
21127
  }));
21074
- const { masked: B } = X0(S, V, g), E = B.includes(g) ? B.replace(new RegExp(g.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), g) : B, F = m ? "danger" : s, n1 = [
21128
+ const { masked: B } = X0(S, V, g), E = B.includes(g) ? B.replace(new RegExp(g.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), g) : B, F = m ? "danger" : s, o1 = [
21075
21129
  "input-mask",
21076
21130
  `input-mask--${i}`,
21077
21131
  `input-mask--${F}`,
@@ -21082,16 +21136,16 @@ var el = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, la
21082
21136
  w ? "input-mask--has-icon" : "",
21083
21137
  f ? "input-mask--has-suffix" : "",
21084
21138
  M
21085
- ].filter(Boolean).join(" "), N = Z((G) => {
21139
+ ].filter(Boolean).join(" "), N = P((Z) => {
21086
21140
  if (p || u) return;
21087
- if (G.key === "Backspace") {
21088
- G.preventDefault();
21141
+ if (Z.key === "Backspace") {
21142
+ Z.preventDefault();
21089
21143
  const d1 = S.slice(0, -1), { masked: v1 } = X0(d1, V, g);
21090
21144
  _(d1), l?.(d1, v1);
21091
21145
  return;
21092
21146
  }
21093
- if (G.key.length !== 1 || G.ctrlKey || G.metaKey || (G.preventDefault(), S.length >= z)) return;
21094
- const D = G.key;
21147
+ if (Z.key.length !== 1 || Z.ctrlKey || Z.metaKey || (Z.preventDefault(), S.length >= z)) return;
21148
+ const D = Z.key;
21095
21149
  let Q = 0;
21096
21150
  for (const d1 of V) if (d1.type === "token") {
21097
21151
  if (Q === S.length) {
@@ -21111,9 +21165,9 @@ var el = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, la
21111
21165
  z,
21112
21166
  l,
21113
21167
  a
21114
- ]), q = h ?? V.map((G) => G.type === "literal" ? G.char : g).join(""), a1 = S.length === z;
21168
+ ]), q = h ?? V.map((Z) => Z.type === "literal" ? Z.char : g).join(""), a1 = S.length === z;
21115
21169
  return /* @__PURE__ */ c("div", {
21116
- className: n1,
21170
+ className: o1,
21117
21171
  children: [
21118
21172
  d && /* @__PURE__ */ e("label", {
21119
21173
  className: "input-mask__label",
@@ -21165,8 +21219,8 @@ var el = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, la
21165
21219
  ]
21166
21220
  });
21167
21221
  });
21168
- el.displayName = "InputMask";
21169
- var hi = {
21222
+ rl.displayName = "InputMask";
21223
+ var di = {
21170
21224
  creditCard: "9999 9999 9999 9999",
21171
21225
  iban: "aa99 9999 9999 9999 9999 99",
21172
21226
  cvv: "999",
@@ -21217,7 +21271,7 @@ var hi = {
21217
21271
  children: f
21218
21272
  })
21219
21273
  ]
21220
- })), tl = "+## (###) ###-####";
21274
+ })), cl = "+## (###) ###-####";
21221
21275
  function K0(t, r) {
21222
21276
  let l = 0, a = "";
21223
21277
  for (let h = 0; h < r.length && !(l >= t.length); h++)
@@ -21227,12 +21281,12 @@ function K0(t, r) {
21227
21281
  function Q0(t) {
21228
21282
  return t.replace(/\D/g, "");
21229
21283
  }
21230
- function rl(t) {
21284
+ function ll(t) {
21231
21285
  return t.split("").filter((r) => r === "#").length;
21232
21286
  }
21233
- var cl = z1(({ autoFocus: t, disabled: r, error: l, format: a = tl, highlighted: h, id: d, label: o, onBlur: m, onChange: n, onClick: i, onKeyDown: s, placeholder: p, readOnly: u = !1, required: g = !1, success: v, value: w }, f) => {
21287
+ var al = z1(({ autoFocus: t, disabled: r, error: l, format: a = cl, highlighted: h, id: d, label: o, onBlur: m, onChange: n, onClick: i, onKeyDown: s, placeholder: p, readOnly: u = !1, required: g = !1, success: v, value: w }, f) => {
21234
21288
  const M = w !== void 0, [y, C] = L(() => w ? K0(Q0(w), a) : ""), x = M ? K0(Q0(w ?? ""), a) : y, k = p ?? a.replace(/#/g, "0"), V = a.length, z = (b) => {
21235
- const H = Q0(b), S = rl(a), _ = H.slice(0, S), R = K0(_, a);
21289
+ const H = Q0(b), S = ll(a), _ = H.slice(0, S), R = K0(_, a);
21236
21290
  M || C(R), n?.(R, _);
21237
21291
  };
21238
21292
  return /* @__PURE__ */ c("div", {
@@ -21291,8 +21345,8 @@ var cl = z1(({ autoFocus: t, disabled: r, error: l, format: a = tl, highlighted:
21291
21345
  ]
21292
21346
  });
21293
21347
  });
21294
- cl.displayName = "InputPhone";
21295
- var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error: h, id: d, label: o, maxLength: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, placeholder: g, required: v, rows: w, success: f, value: M }, y) => /* @__PURE__ */ c("div", {
21348
+ al.displayName = "InputPhone";
21349
+ var mi = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error: h, id: d, label: o, maxLength: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, placeholder: g, required: v, rows: w, success: f, value: M }, y) => /* @__PURE__ */ c("div", {
21296
21350
  className: "input-textarea-wrapper",
21297
21351
  children: [
21298
21352
  o && /* @__PURE__ */ c("label", {
@@ -21330,7 +21384,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21330
21384
  children: f
21331
21385
  })
21332
21386
  ]
21333
- })), mi = z1(({ autoFocus: t, disabled: r, error: l, highlighted: a, id: h, label: d, max: o, min: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, readOnly: g = !1, required: v = !1, success: w, value: f }, M) => /* @__PURE__ */ c("div", {
21387
+ })), pi = z1(({ autoFocus: t, disabled: r, error: l, highlighted: a, id: h, label: d, max: o, min: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, readOnly: g = !1, required: v = !1, success: w, value: f }, M) => /* @__PURE__ */ c("div", {
21334
21388
  className: `input-time-wrapper${a ? " input-time-highlighted" : ""}`,
21335
21389
  children: [
21336
21390
  d && /* @__PURE__ */ c("label", {
@@ -21368,19 +21422,19 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21368
21422
  children: w
21369
21423
  })
21370
21424
  ]
21371
- })), ll = "Please enter a valid URL (e.g. https://example.com)", al = (t) => {
21425
+ })), il = "Please enter a valid URL (e.g. https://example.com)", nl = (t) => {
21372
21426
  try {
21373
21427
  const r = new URL(t);
21374
21428
  return r.protocol === "http:" || r.protocol === "https:";
21375
21429
  } catch {
21376
21430
  return !1;
21377
21431
  }
21378
- }, pi = z1(({ autoFocus: t, disabled: r, error: l, highlighted: a, id: h, label: d, maxLength: o, onBlur: m, onChange: n, onClick: i, onKeyDown: s, onKeyUp: p, onValidationChange: u, placeholder: g = "https://...", readOnly: v = !1, required: w = !1, success: f, validationErrorMessage: M, value: y }, C) => {
21432
+ }, vi = z1(({ autoFocus: t, disabled: r, error: l, highlighted: a, id: h, label: d, maxLength: o, onBlur: m, onChange: n, onClick: i, onKeyDown: s, onKeyUp: p, onValidationChange: u, placeholder: g = "https://...", readOnly: v = !1, required: w = !1, success: f, validationErrorMessage: M, value: y }, C) => {
21379
21433
  const [x, k] = L(void 0), V = (S) => {
21380
21434
  if (!S)
21381
21435
  return k(void 0), u?.(!0), !0;
21382
- const _ = al(S);
21383
- return k(_ ? void 0 : M ?? ll), u?.(_), _;
21436
+ const _ = nl(S);
21437
+ return k(_ ? void 0 : M ?? il), u?.(_), _;
21384
21438
  }, z = (S) => {
21385
21439
  n?.(S), x && V(S);
21386
21440
  }, b = (S) => {
@@ -21425,7 +21479,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21425
21479
  })
21426
21480
  ]
21427
21481
  });
21428
- }), vi = ({ isOpen: t, onClose: r, onComplete: l, steps: a, title: h, presentation: d = "drawer", width: o = "480px" }) => {
21482
+ }), ui = ({ isOpen: t, onClose: r, onComplete: l, steps: a, title: h, presentation: d = "drawer", width: o = "480px" }) => {
21429
21483
  const [m, n] = L(0);
21430
21484
  O(() => {
21431
21485
  t && n(0);
@@ -21474,7 +21528,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21474
21528
  variant: "info",
21475
21529
  disabled: !u,
21476
21530
  onClick: v,
21477
- children: ["Next ", /* @__PURE__ */ e(P, {
21531
+ children: ["Next ", /* @__PURE__ */ e(G, {
21478
21532
  name: "next",
21479
21533
  size: "sm"
21480
21534
  })]
@@ -21560,7 +21614,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21560
21614
  })]
21561
21615
  })
21562
21616
  });
21563
- }, ui = ({ items: t, direction: r = "vertical", selectable: l = !1, defaultSelectedId: a, onSelect: h, className: d = "" }) => {
21617
+ }, gi = ({ items: t, direction: r = "vertical", selectable: l = !1, defaultSelectedId: a, onSelect: h, className: d = "" }) => {
21564
21618
  const [o, m] = L(a), n = (i) => {
21565
21619
  !l || i.disabled || (m(i.id), h?.(i));
21566
21620
  };
@@ -21580,7 +21634,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21580
21634
  }, i.id);
21581
21635
  })
21582
21636
  });
21583
- }, il = ({ icon: t = "menu-hamburger", isCompact: r, items: l, label: a, showLabel: h = !0, disableResponsive: d = !1 }) => {
21637
+ }, ol = ({ icon: t = "menu-hamburger", isCompact: r, items: l, label: a, showLabel: h = !0, disableResponsive: d = !1 }) => {
21584
21638
  const { isAtLeast: o } = g0(), [m, n] = L(null), i = (v) => {
21585
21639
  n(v.currentTarget);
21586
21640
  }, s = () => {
@@ -21623,7 +21677,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21623
21677
  onClick: () => u(v),
21624
21678
  children: [/* @__PURE__ */ e("span", {
21625
21679
  className: "MenuHamburger_item__icon",
21626
- children: v.icon ? /* @__PURE__ */ e(P, { name: v.icon }) : null
21680
+ children: v.icon ? /* @__PURE__ */ e(G, { name: v.icon }) : null
21627
21681
  }), /* @__PURE__ */ e("span", {
21628
21682
  className: "MenuHamburger_item__label",
21629
21683
  children: v.label
@@ -21633,17 +21687,17 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21633
21687
  })
21634
21688
  })]
21635
21689
  });
21636
- }, M0 = (t) => Math.max(0, Math.min(1, t)), gi = ({ buckets: t, viewportStart: r, viewportEnd: l, onScrub: a, bands: h, caption: d, className: o = "" }) => {
21637
- const m = X(null), n = X(!1), i = Math.max(0, l - r), s = Math.max(1, ...t), p = Z((w) => {
21690
+ }, M0 = (t) => Math.max(0, Math.min(1, t)), wi = ({ buckets: t, viewportStart: r, viewportEnd: l, onScrub: a, bands: h, caption: d, className: o = "" }) => {
21691
+ const m = X(null), n = X(!1), i = Math.max(0, l - r), s = Math.max(1, ...t), p = P((w) => {
21638
21692
  const f = m.current;
21639
21693
  if (!f) return;
21640
21694
  const M = f.getBoundingClientRect(), y = M0((w - M.left) / M.width);
21641
21695
  a(Math.max(0, Math.min(1 - i, y - i / 2)));
21642
- }, [a, i]), u = Z((w) => {
21696
+ }, [a, i]), u = P((w) => {
21643
21697
  n.current = !0, w.currentTarget.setPointerCapture(w.pointerId), p(w.clientX);
21644
- }, [p]), g = Z((w) => {
21698
+ }, [p]), g = P((w) => {
21645
21699
  n.current && p(w.clientX);
21646
- }, [p]), v = Z((w) => {
21700
+ }, [p]), v = P((w) => {
21647
21701
  n.current = !1, w.currentTarget.hasPointerCapture(w.pointerId) && w.currentTarget.releasePointerCapture(w.pointerId);
21648
21702
  }, []);
21649
21703
  return /* @__PURE__ */ c("div", {
@@ -21687,7 +21741,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21687
21741
  ]
21688
21742
  })]
21689
21743
  });
21690
- }, wi = ({ label: t, value: r, unit: l, variant: a = "default", align: h = "center", labelPosition: d = "bottom", trend: o, trendUnit: m = "%", trendLabel: n, trendVariant: i = "success", footer: s, filled: p = !1, className: u = "" }) => {
21744
+ }, fi = ({ label: t, value: r, unit: l, variant: a = "default", align: h = "center", labelPosition: d = "bottom", trend: o, trendUnit: m = "%", trendLabel: n, trendVariant: i = "success", footer: s, filled: p = !1, className: u = "" }) => {
21691
21745
  const g = () => /* @__PURE__ */ c("div", {
21692
21746
  className: `mini-stats-card__value mini-stats-card__value--${a}`,
21693
21747
  children: [/* @__PURE__ */ e("span", {
@@ -21745,7 +21799,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21745
21799
  children: s
21746
21800
  })]
21747
21801
  });
21748
- }, fi = ({ items: t, logo: r, actions: l, position: a = "static", className: h = "", renderItem: d, collapsible: o = !1, noPadding: m = !1 }) => {
21802
+ }, Ci = ({ items: t, logo: r, actions: l, position: a = "static", className: h = "", renderItem: d, collapsible: o = !1, noPadding: m = !1 }) => {
21749
21803
  const [n, i] = L(!1), s = (v) => {
21750
21804
  v.disabled || (v.onClick && v.onClick(), o && i(!1));
21751
21805
  }, p = (v) => /* @__PURE__ */ c("button", {
@@ -21754,7 +21808,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21754
21808
  disabled: v.disabled,
21755
21809
  children: [v.icon && /* @__PURE__ */ e("span", {
21756
21810
  className: "navbar__item-icon",
21757
- children: v.icon ? /* @__PURE__ */ e(P, { name: v.icon }) : null
21811
+ children: v.icon ? /* @__PURE__ */ e(G, { name: v.icon }) : null
21758
21812
  }), /* @__PURE__ */ e("span", {
21759
21813
  className: "navbar__item-label",
21760
21814
  children: v.label
@@ -21799,7 +21853,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21799
21853
  })
21800
21854
  ]
21801
21855
  });
21802
- }, nl = ({ items: t, buttonLabel: r = "Alerts", panelTitle: l = "Notifications", emptyMessage: a = "No active notifications." }) => {
21856
+ }, sl = ({ items: t, buttonLabel: r = "Alerts", panelTitle: l = "Notifications", emptyMessage: a = "No active notifications." }) => {
21803
21857
  const [h, d] = L(!1), [o, m] = L({ opacity: 0 }), n = X(null), i = X(null), s = t.some((u) => u.severity === "critical");
21804
21858
  return O(() => {
21805
21859
  if (!h || !n.current || !i.current) return;
@@ -21834,7 +21888,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21834
21888
  className: "NotificationPanel__badge",
21835
21889
  children: t.length
21836
21890
  })]
21837
- }), h && K1(/* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("div", {
21891
+ }), h && K1(/* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("div", {
21838
21892
  className: "NotificationPanel__backdrop",
21839
21893
  onClick: () => d(!1)
21840
21894
  }), /* @__PURE__ */ c("div", {
@@ -21856,7 +21910,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21856
21910
  })]
21857
21911
  })] }), document.body)]
21858
21912
  });
21859
- }, ol = {
21913
+ }, hl = {
21860
21914
  small: 120,
21861
21915
  medium: 180,
21862
21916
  large: 240
@@ -21872,7 +21926,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21872
21926
  x: t + l * Math.cos(h),
21873
21927
  y: r + l * Math.sin(h)
21874
21928
  };
21875
- }, sl = (t, r, l, a) => {
21929
+ }, dl = (t, r, l, a) => {
21876
21930
  const h = m0(t, t, r, a), d = m0(t, t, r, l), o = a - l <= 180 ? 0 : 1;
21877
21931
  return [
21878
21932
  "M",
@@ -21891,23 +21945,23 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21891
21945
  d.y,
21892
21946
  "Z"
21893
21947
  ].join(" ");
21894
- }, hl = (t) => `hsl(${Math.round((t * 137.508 + 28) % 360)} 72% 52%)`, dl = (t, r) => {
21948
+ }, ml = (t) => `hsl(${Math.round((t * 137.508 + 28) % 360)} 72% 52%)`, pl = (t, r) => {
21895
21949
  const l = t.variant ?? "default";
21896
- return l === "custom" ? t.customColor || b2.default : l === "random" ? hl(r) : b2[l];
21897
- }, Ci = ({ className: t = "", data: r = [], emptyLabel: l, gap: a = 1, size: h = "medium", valueFormatter: d, valuePosition: o = "inside" }) => {
21898
- const m = ol[h], n = o === "outside" ? Math.round(m * 0.18) : 0, i = m / 2, s = Math.max(i - Math.max(a, 1), 1), p = `${-n} ${-n} ${m + n * 2} ${m + n * 2}`, u = g1(() => {
21950
+ return l === "custom" ? t.customColor || b2.default : l === "random" ? ml(r) : b2[l];
21951
+ }, yi = ({ className: t = "", data: r = [], emptyLabel: l, gap: a = 1, size: h = "medium", valueFormatter: d, valuePosition: o = "inside" }) => {
21952
+ const m = hl[h], n = o === "outside" ? Math.round(m * 0.18) : 0, i = m / 2, s = Math.max(i - Math.max(a, 1), 1), p = `${-n} ${-n} ${m + n * 2} ${m + n * 2}`, u = g1(() => {
21899
21953
  const x = r.filter((z) => Number.isFinite(z.value) && z.value > 0), k = x.reduce((z, b) => z + b.value, 0);
21900
21954
  if (k <= 0) return [];
21901
21955
  let V = 0;
21902
21956
  return x.map((z, b) => {
21903
21957
  const H = z.value / k * 360, S = V, _ = b === x.length - 1 ? 360 : V + H, R = S + (_ - S) / 2;
21904
21958
  return V = _, {
21905
- color: dl(z, b),
21959
+ color: pl(z, b),
21906
21960
  endAngle: _,
21907
21961
  index: b,
21908
21962
  label: d ? d(z.value, z, b) : z.value,
21909
21963
  midAngle: R,
21910
- path: sl(i, s, S, _),
21964
+ path: dl(i, s, S, _),
21911
21965
  startAngle: S,
21912
21966
  value: z.value
21913
21967
  };
@@ -21925,7 +21979,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21925
21979
  height: m,
21926
21980
  viewBox: p,
21927
21981
  children: [
21928
- !g && /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("circle", {
21982
+ !g && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("circle", {
21929
21983
  className: "pie-chart__empty-circle",
21930
21984
  cx: i,
21931
21985
  cy: i,
@@ -21990,7 +22044,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21990
22044
  ]
21991
22045
  })
21992
22046
  });
21993
- }, E0 = (t) => Number((typeof t == "number" ? t : Number(t)).toFixed(2)), yi = (t, r) => (t > r && console.warn(`Could not get percent of value ${t} from a total ${r}. Total must be higher or at least equal to value.`), t === r ? t === 0 ? 0 : 100 : t / (r / 100)), bi = (t, r) => {
22047
+ }, E0 = (t) => Number((typeof t == "number" ? t : Number(t)).toFixed(2)), bi = (t, r) => (t > r && console.warn(`Could not get percent of value ${t} from a total ${r}. Total must be higher or at least equal to value.`), t === r ? t === 0 ? 0 : 100 : t / (r / 100)), Mi = (t, r) => {
21994
22048
  const l = t + r;
21995
22049
  return l === 0 ? {
21996
22050
  a: 0,
@@ -21999,7 +22053,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21999
22053
  a: Math.round(t / l * 100 * 10) / 10,
22000
22054
  b: Math.round(r / l * 100 * 10) / 10
22001
22055
  };
22002
- }, Mi = ({ animated: t = !1, height: r, label: l, labelAfterValue: a = !1, labelAlign: h = "left", labelPosition: d = "inside", orientation: o = "horizontal", showPercentage: m = !0, state: n = "default", striped: i = !1, thin: s = !1, value: p = 0 }) => {
22056
+ }, xi = ({ animated: t = !1, height: r, label: l, labelAfterValue: a = !1, labelAlign: h = "left", labelPosition: d = "inside", orientation: o = "horizontal", showPercentage: m = !0, state: n = "default", striped: i = !1, thin: s = !1, value: p = 0 }) => {
22003
22057
  const u = [
22004
22058
  "progress-fill",
22005
22059
  `progress-bar-${n}`,
@@ -22042,8 +22096,8 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22042
22096
  small: 64,
22043
22097
  medium: 96,
22044
22098
  large: 128
22045
- }, ml = (t) => typeof t == "number" ? t : K2[t], xi = ({ children: t, className: r = "", label: l, labelPosition: a = "below", rounded: h = !0, showPercentage: d = !0, size: o = "medium", state: m = "default", thickness: n, value: i }) => {
22046
- const s = Math.min(Math.max(Number.isFinite(i) ? i : 0, 0), 100), p = ml(o), u = n ?? (p <= K2.small ? 6 : 8), g = Math.max((p - u) / 2, 1), v = 2 * Math.PI * g, w = v - s / 100 * v, f = g1(() => `${E0(s)}%`, [s]), M = t || (d ? f : a === "inside" ? l : null), y = a === "inside" && l && d && !t;
22099
+ }, vl = (t) => typeof t == "number" ? t : K2[t], ki = ({ children: t, className: r = "", label: l, labelPosition: a = "below", rounded: h = !0, showPercentage: d = !0, size: o = "medium", state: m = "default", thickness: n, value: i }) => {
22100
+ const s = Math.min(Math.max(Number.isFinite(i) ? i : 0, 0), 100), p = vl(o), u = n ?? (p <= K2.small ? 6 : 8), g = Math.max((p - u) / 2, 1), v = 2 * Math.PI * g, w = v - s / 100 * v, f = g1(() => `${E0(s)}%`, [s]), M = t || (d ? f : a === "inside" ? l : null), y = a === "inside" && l && d && !t;
22047
22101
  return /* @__PURE__ */ c("div", {
22048
22102
  className: `progress-ring progress-ring--${m} ${r}`,
22049
22103
  style: { "--progress-ring-size": `${p}px` },
@@ -22083,7 +22137,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22083
22137
  children: l
22084
22138
  })]
22085
22139
  });
22086
- }, ki = z1(({ disabled: t = !1, error: r, id: l, inputWidth: a, label: h, max: d, min: o = 0, onChange: m, readOnlyInput: n = !1, required: i = !1, step: s = 1, success: p, value: u }, g) => {
22140
+ }, _i = z1(({ disabled: t = !1, error: r, id: l, inputWidth: a, label: h, max: d, min: o = 0, onChange: m, readOnlyInput: n = !1, required: i = !1, step: s = 1, success: p, value: u }, g) => {
22087
22141
  const w = a || (d !== void 0 ? Math.max(String(d).length, String(o).length, 3) : 3), f = () => {
22088
22142
  if (t) return;
22089
22143
  const C = (u ?? 0) - s;
@@ -22167,7 +22221,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22167
22221
  })
22168
22222
  ]
22169
22223
  });
22170
- }), _i = ({ isOpen: t = !1, onClose: r, placeholder: l, title: a, onSave: h, titleIcon: d, value: o = "", usePortal: m = !1 }) => {
22224
+ }), Li = ({ isOpen: t = !1, onClose: r, placeholder: l, title: a, onSave: h, titleIcon: d, value: o = "", usePortal: m = !1 }) => {
22171
22225
  const [n, i] = L(o), [s, p] = L(!1), u = async () => {
22172
22226
  p(!0), await h(n), p(!1), r();
22173
22227
  };
@@ -22209,7 +22263,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22209
22263
  })
22210
22264
  })
22211
22265
  });
22212
- }, Li = ({ isOpen: t = !1, title: r, onClose: l, onSave: a, icon: h, value: d, min: o, max: m }) => {
22266
+ }, zi = ({ isOpen: t = !1, title: r, onClose: l, onSave: a, icon: h, value: d, min: o, max: m }) => {
22213
22267
  const [n, i] = L(d), [s, p] = L(!1), u = async () => {
22214
22268
  p(!0), await a(n), p(!1), l();
22215
22269
  };
@@ -22251,7 +22305,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22251
22305
  })
22252
22306
  })
22253
22307
  });
22254
- }, pl = ({ checked: t = !1, onChange: r, label: l, disabled: a = !1, name: h, value: d, id: o, className: m = "" }) => {
22308
+ }, ul = ({ checked: t = !1, onChange: r, label: l, disabled: a = !1, name: h, value: d, id: o, className: m = "" }) => {
22255
22309
  const n = z0(), i = o || n, s = (p) => {
22256
22310
  r?.(p.target.checked && d !== void 0 ? d : p.target.checked);
22257
22311
  };
@@ -22279,7 +22333,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22279
22333
  })]
22280
22334
  })]
22281
22335
  });
22282
- }, zi = ({ isOpen: t = !1, list: r, title: l, onClose: a, onSave: h, icon: d, value: o }) => {
22336
+ }, Vi = ({ isOpen: t = !1, list: r, title: l, onClose: a, onSave: h, icon: d, value: o }) => {
22283
22337
  const [m, n] = L(o), [i, s] = L(!1), [p, u] = L("");
22284
22338
  O(() => {
22285
22339
  n(o);
@@ -22323,7 +22377,7 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22323
22377
  },
22324
22378
  children: [/* @__PURE__ */ e("div", {
22325
22379
  className: "quick-set-list",
22326
- children: r && r.map(({ key: w, label: f }) => /* @__PURE__ */ e(pl, {
22380
+ children: r && r.map(({ key: w, label: f }) => /* @__PURE__ */ e(ul, {
22327
22381
  name: "ownership",
22328
22382
  label: f,
22329
22383
  checked: m === w,
@@ -22336,23 +22390,23 @@ var di = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22336
22390
  })]
22337
22391
  })
22338
22392
  });
22339
- }, vl = (t) => t ? /<[a-z][\s\S]*>/i.test(t) ? t : t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").split(/\n{2,}/).map((r) => `<p>${r.replace(/\n/g, "<br>")}</p>`).join("") : "", ul = (t) => {
22393
+ }, gl = (t) => t ? /<[a-z][\s\S]*>/i.test(t) ? t : t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").split(/\n{2,}/).map((r) => `<p>${r.replace(/\n/g, "<br>")}</p>`).join("") : "", wl = (t) => {
22340
22394
  if (!t) return "";
22341
22395
  const r = document.createElement("div");
22342
22396
  return r.innerHTML = t, r.querySelectorAll("br").forEach((l) => l.replaceWith(`
22343
22397
  `)), (r.textContent || "").trim();
22344
- }, Vi = (t) => {
22398
+ }, Ni = (t) => {
22345
22399
  if (!t) return [];
22346
- const r = vl(t), l = document.createElement("div");
22400
+ const r = gl(t), l = document.createElement("div");
22347
22401
  l.innerHTML = r;
22348
22402
  const a = Array.from(l.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6"));
22349
22403
  if (a.length > 0) {
22350
- const d = a.map((o) => o.innerHTML.trim()).filter((o) => o.length > 0 && ul(o).length > 0);
22404
+ const d = a.map((o) => o.innerHTML.trim()).filter((o) => o.length > 0 && wl(o).length > 0);
22351
22405
  if (d.length > 0) return d;
22352
22406
  }
22353
22407
  const h = l.innerHTML.trim();
22354
22408
  return h ? [h] : [];
22355
- }, gl = (t) => {
22409
+ }, fl = (t) => {
22356
22410
  const r = document.createElement("div");
22357
22411
  r.innerHTML = t;
22358
22412
  const l = (a) => {
@@ -22447,7 +22501,7 @@ ${h.textContent ?? ""}
22447
22501
  }
22448
22502
  };
22449
22503
  return Array.from(r.childNodes).map(l).join("").trim();
22450
- }, wl = [
22504
+ }, Cl = [
22451
22505
  {
22452
22506
  command: "bold",
22453
22507
  label: "B",
@@ -22473,7 +22527,7 @@ ${h.textContent ?? ""}
22473
22527
  label: "1. List",
22474
22528
  title: "Ordered List"
22475
22529
  }
22476
- ], fl = [{
22530
+ ], yl = [{
22477
22531
  command: "undo",
22478
22532
  label: "↩ Undo",
22479
22533
  title: "Undo (Ctrl+Z)"
@@ -22481,14 +22535,14 @@ ${h.textContent ?? ""}
22481
22535
  command: "redo",
22482
22536
  label: "↪ Redo",
22483
22537
  title: "Redo (Ctrl+Shift+Z)"
22484
- }], Cl = [
22538
+ }], bl = [
22485
22539
  1,
22486
22540
  2,
22487
22541
  3,
22488
22542
  4,
22489
22543
  5,
22490
22544
  6
22491
- ], yl = [{
22545
+ ], Ml = [{
22492
22546
  command: "formatBlock",
22493
22547
  value: "pre",
22494
22548
  label: "Code Block",
@@ -22501,7 +22555,7 @@ ${h.textContent ?? ""}
22501
22555
  a.setAttribute("contenteditable", "true"), a.textContent = "Cell", r.appendChild(a);
22502
22556
  }
22503
22557
  return r;
22504
- }, bl = `
22558
+ }, xl = `
22505
22559
  <table class="rte-table">
22506
22560
  <thead>
22507
22561
  <tr><th contenteditable="true">Header 1</th><th contenteditable="true">Header 2</th><th contenteditable="true">Header 3</th></tr>
@@ -22511,14 +22565,14 @@ ${h.textContent ?? ""}
22511
22565
  <tr><td contenteditable="true">Cell</td><td contenteditable="true">Cell</td><td contenteditable="true">Cell</td></tr>
22512
22566
  </tbody>
22513
22567
  </table><p><br></p>
22514
- `, Ml = 100, xl = (t, r, l) => {
22568
+ `, kl = 100, _l = (t, r, l) => {
22515
22569
  const a = X([]), h = X([]);
22516
22570
  return {
22517
- snapshotForUndo: Z(() => {
22571
+ snapshotForUndo: P(() => {
22518
22572
  const d = t.current;
22519
- d && (a.current.push(d.innerHTML), a.current.length > Ml && a.current.shift(), h.current = []);
22573
+ d && (a.current.push(d.innerHTML), a.current.length > kl && a.current.shift(), h.current = []);
22520
22574
  }, [t]),
22521
- undo: Z(() => {
22575
+ undo: P(() => {
22522
22576
  const d = t.current;
22523
22577
  if (!d || a.current.length === 0) return;
22524
22578
  h.current.push(d.innerHTML);
@@ -22531,7 +22585,7 @@ ${h.textContent ?? ""}
22531
22585
  r,
22532
22586
  l
22533
22587
  ]),
22534
- redo: Z(() => {
22588
+ redo: P(() => {
22535
22589
  const d = t.current;
22536
22590
  if (!d || h.current.length === 0) return;
22537
22591
  a.current.push(d.innerHTML);
@@ -22545,7 +22599,7 @@ ${h.textContent ?? ""}
22545
22599
  l
22546
22600
  ])
22547
22601
  };
22548
- }, kl = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
22602
+ }, Ll = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
22549
22603
  const [a, h] = L(!1), [d, o] = L(""), [m, n] = L(""), i = X(null), s = X(null);
22550
22604
  return {
22551
22605
  showLinkPrompt: a,
@@ -22554,7 +22608,7 @@ ${h.textContent ?? ""}
22554
22608
  linkText: m,
22555
22609
  setLinkText: n,
22556
22610
  editingAnchorRef: s,
22557
- openLinkPrompt: Z((p) => {
22611
+ openLinkPrompt: P((p) => {
22558
22612
  if (p)
22559
22613
  s.current = p, n(p.textContent ?? ""), o(p.getAttribute("href") ?? "");
22560
22614
  else {
@@ -22564,7 +22618,7 @@ ${h.textContent ?? ""}
22564
22618
  }
22565
22619
  h(!0);
22566
22620
  }, []),
22567
- confirmLink: Z(() => {
22621
+ confirmLink: P(() => {
22568
22622
  const p = t.current;
22569
22623
  if (p) {
22570
22624
  if (p.focus(), s.current) {
@@ -22597,12 +22651,12 @@ ${h.textContent ?? ""}
22597
22651
  r,
22598
22652
  l
22599
22653
  ]),
22600
- cancelLink: Z(() => {
22654
+ cancelLink: P(() => {
22601
22655
  h(!1), o(""), n(""), i.current = null, s.current = null;
22602
22656
  }, [])
22603
22657
  };
22604
- }, _l = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
22605
- const [a, h] = L(null), [d, o] = L(null), m = Z(() => {
22658
+ }, zl = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
22659
+ const [a, h] = L(null), [d, o] = L(null), m = P(() => {
22606
22660
  const v = window.getSelection();
22607
22661
  if (!v || v.rangeCount === 0) return null;
22608
22662
  let w = v.getRangeAt(0).commonAncestorContainer;
@@ -22614,7 +22668,7 @@ ${h.textContent ?? ""}
22614
22668
  w = w.parentNode;
22615
22669
  }
22616
22670
  return null;
22617
- }, [t]), n = Z((v) => {
22671
+ }, [t]), n = P((v) => {
22618
22672
  const w = t.current;
22619
22673
  if (!w) return;
22620
22674
  const f = w.getBoundingClientRect(), M = v.getBoundingClientRect();
@@ -22622,9 +22676,9 @@ ${h.textContent ?? ""}
22622
22676
  top: M.top - f.top - 36,
22623
22677
  left: M.left - f.left
22624
22678
  });
22625
- }, [t]), i = Z(() => {
22679
+ }, [t]), i = P(() => {
22626
22680
  h(null), o(null);
22627
- }, []), s = Z(() => {
22681
+ }, []), s = P(() => {
22628
22682
  if (!a) return;
22629
22683
  r();
22630
22684
  const v = m()?.closest("tr") ?? null, w = a.querySelector("tbody") ?? a, f = v ?? w.querySelector("tr:last-child");
@@ -22637,7 +22691,7 @@ ${h.textContent ?? ""}
22637
22691
  m,
22638
22692
  l,
22639
22693
  n
22640
- ]), p = Z(() => {
22694
+ ]), p = P(() => {
22641
22695
  if (!a) return;
22642
22696
  r();
22643
22697
  const v = m()?.closest("tr") ?? null, w = a.querySelector("tbody") ?? a, f = v ?? w.querySelector("tr:first-child");
@@ -22650,7 +22704,7 @@ ${h.textContent ?? ""}
22650
22704
  m,
22651
22705
  l,
22652
22706
  n
22653
- ]), u = Z(() => {
22707
+ ]), u = P(() => {
22654
22708
  if (!a) return;
22655
22709
  const v = Array.from(a.querySelectorAll("tbody tr"));
22656
22710
  v.length <= 1 || (r(), (m()?.closest("tr") ?? v[v.length - 1]).remove(), l(), n(a));
@@ -22660,7 +22714,7 @@ ${h.textContent ?? ""}
22660
22714
  m,
22661
22715
  l,
22662
22716
  n
22663
- ]), g = Z(() => {
22717
+ ]), g = P(() => {
22664
22718
  if (!a) return;
22665
22719
  r();
22666
22720
  const v = m(), w = v ? Array.from(v.parentElement.querySelectorAll("td,th")).indexOf(v) : -1;
@@ -22685,7 +22739,7 @@ ${h.textContent ?? ""}
22685
22739
  addRowAbove: p,
22686
22740
  addRowBelow: s,
22687
22741
  removeRow: u,
22688
- addColumnLeft: Z(() => {
22742
+ addColumnLeft: P(() => {
22689
22743
  if (!a) return;
22690
22744
  r();
22691
22745
  const v = m(), w = v ? Array.from(v.parentElement.querySelectorAll("td,th")).indexOf(v) : 0;
@@ -22703,7 +22757,7 @@ ${h.textContent ?? ""}
22703
22757
  n
22704
22758
  ]),
22705
22759
  addColumnRight: g,
22706
- removeColumn: Z(() => {
22760
+ removeColumn: P(() => {
22707
22761
  if (!a) return;
22708
22762
  const v = Array.from(a.querySelectorAll("tr"));
22709
22763
  if ((v[0]?.querySelectorAll("td,th").length ?? 0) <= 1) return;
@@ -22720,7 +22774,7 @@ ${h.textContent ?? ""}
22720
22774
  l,
22721
22775
  n
22722
22776
  ]),
22723
- deleteTable: Z(() => {
22777
+ deleteTable: P(() => {
22724
22778
  a && (r(), a.remove(), i(), l());
22725
22779
  }, [
22726
22780
  a,
@@ -22729,7 +22783,7 @@ ${h.textContent ?? ""}
22729
22783
  l
22730
22784
  ])
22731
22785
  };
22732
- }, Ll = ({ isEditing: t, linkText: r, linkUrl: l, setLinkText: a, setLinkUrl: h, confirmLink: d, cancelLink: o }) => /* @__PURE__ */ c("div", {
22786
+ }, Vl = ({ isEditing: t, linkText: r, linkUrl: l, setLinkText: a, setLinkUrl: h, confirmLink: d, cancelLink: o }) => /* @__PURE__ */ c("div", {
22733
22787
  className: "rte-link-prompt",
22734
22788
  children: [
22735
22789
  /* @__PURE__ */ e("input", {
@@ -22765,7 +22819,7 @@ ${h.textContent ?? ""}
22765
22819
  })]
22766
22820
  })
22767
22821
  ]
22768
- }), zl = ({ pos: t, toolbarRef: r, addRowAbove: l, addRowBelow: a, removeRow: h, addColumnLeft: d, addColumnRight: o, removeColumn: m, deleteTable: n }) => /* @__PURE__ */ c("div", {
22822
+ }), Nl = ({ pos: t, toolbarRef: r, addRowAbove: l, addRowBelow: a, removeRow: h, addColumnLeft: d, addColumnRight: o, removeColumn: m, deleteTable: n }) => /* @__PURE__ */ c("div", {
22769
22823
  ref: r,
22770
22824
  className: "rte-table-toolbar",
22771
22825
  style: {
@@ -22853,12 +22907,12 @@ ${h.textContent ?? ""}
22853
22907
  })
22854
22908
  })
22855
22909
  ]
22856
- }), Vl = ({ advanced: t, isActive: r, exec: l, applyHeading: a, insertTaskList: h, openLinkPrompt: d, insertTable: o, undo: m, redo: n }) => /* @__PURE__ */ c("div", {
22910
+ }), Hl = ({ advanced: t, isActive: r, exec: l, applyHeading: a, insertTaskList: h, openLinkPrompt: d, insertTable: o, undo: m, redo: n }) => /* @__PURE__ */ c("div", {
22857
22911
  className: "rte-toolbar",
22858
22912
  children: [
22859
22913
  /* @__PURE__ */ e("div", {
22860
22914
  className: "rte-toolbar-group",
22861
- children: fl.map((i) => /* @__PURE__ */ e(J, {
22915
+ children: yl.map((i) => /* @__PURE__ */ e(J, {
22862
22916
  title: i.title,
22863
22917
  children: /* @__PURE__ */ e("button", {
22864
22918
  type: "button",
@@ -22873,7 +22927,7 @@ ${h.textContent ?? ""}
22873
22927
  /* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
22874
22928
  /* @__PURE__ */ c("div", {
22875
22929
  className: "rte-toolbar-group",
22876
- children: [wl.map((i) => /* @__PURE__ */ e(J, {
22930
+ children: [Cl.map((i) => /* @__PURE__ */ e(J, {
22877
22931
  title: i.title,
22878
22932
  children: /* @__PURE__ */ e("button", {
22879
22933
  type: "button",
@@ -22891,14 +22945,14 @@ ${h.textContent ?? ""}
22891
22945
  onMouseDown: (i) => {
22892
22946
  i.preventDefault(), h();
22893
22947
  },
22894
- children: [/* @__PURE__ */ e(P, { name: "checkmark" }), " List"]
22948
+ children: [/* @__PURE__ */ e(G, { name: "checkmark" }), " List"]
22895
22949
  })
22896
22950
  })]
22897
22951
  }),
22898
22952
  /* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
22899
22953
  /* @__PURE__ */ e("div", {
22900
22954
  className: "rte-toolbar-group",
22901
- children: Cl.map((i) => /* @__PURE__ */ e(J, {
22955
+ children: bl.map((i) => /* @__PURE__ */ e(J, {
22902
22956
  title: `Heading ${i}`,
22903
22957
  children: /* @__PURE__ */ c("button", {
22904
22958
  type: "button",
@@ -22921,13 +22975,13 @@ ${h.textContent ?? ""}
22921
22975
  onMouseDown: (i) => {
22922
22976
  i.preventDefault(), d();
22923
22977
  },
22924
- children: [/* @__PURE__ */ e(P, { name: "link" }), " Link"]
22978
+ children: [/* @__PURE__ */ e(G, { name: "link" }), " Link"]
22925
22979
  })
22926
22980
  })
22927
22981
  }),
22928
- t && /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }), /* @__PURE__ */ c("div", {
22982
+ t && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }), /* @__PURE__ */ c("div", {
22929
22983
  className: "rte-toolbar-group",
22930
- children: [yl.map((i) => /* @__PURE__ */ e(J, {
22984
+ children: [Ml.map((i) => /* @__PURE__ */ e(J, {
22931
22985
  title: i.title,
22932
22986
  children: /* @__PURE__ */ e("button", {
22933
22987
  type: "button",
@@ -22950,41 +23004,41 @@ ${h.textContent ?? ""}
22950
23004
  })]
22951
23005
  })] })
22952
23006
  ]
22953
- }), Ni = ({ advanced: t = !1, error: r, format: l = "html", id: a, label: h, onBlur: d, onChange: o, placeholder: m, required: n = !1, value: i }) => {
23007
+ }), Hi = ({ advanced: t = !1, error: r, format: l = "html", id: a, label: h, onBlur: d, onChange: o, placeholder: m, required: n = !1, value: i }) => {
22954
23008
  const s = X(null), p = X(!1), u = X(null), [g, v] = L(/* @__PURE__ */ new Set());
22955
23009
  O(() => {
22956
23010
  const t1 = s.current;
22957
23011
  if (!t1 || p.current) return;
22958
- const o1 = i ?? "";
22959
- t1.innerHTML !== o1 && (t1.innerHTML = o1);
23012
+ const s1 = i ?? "";
23013
+ t1.innerHTML !== s1 && (t1.innerHTML = s1);
22960
23014
  }, [i]);
22961
- const w = Z(() => {
23015
+ const w = P(() => {
22962
23016
  const t1 = s.current;
22963
23017
  if (!t1 || !o) return;
22964
23018
  p.current = !0;
22965
- const o1 = t1.innerHTML.replace(/&nbsp;/g, " ");
22966
- o(l === "markdown" ? gl(o1) : o1), setTimeout(() => {
23019
+ const s1 = t1.innerHTML.replace(/&nbsp;/g, " ");
23020
+ o(l === "markdown" ? fl(s1) : s1), setTimeout(() => {
22967
23021
  p.current = !1;
22968
23022
  }, 0);
22969
- }, [l, o]), { snapshotForUndo: f, undo: M, redo: y } = xl(s, p, w), { showLinkPrompt: C, linkUrl: x, setLinkUrl: k, linkText: V, setLinkText: z, editingAnchorRef: b, openLinkPrompt: H, confirmLink: S, cancelLink: _ } = kl({
23023
+ }, [l, o]), { snapshotForUndo: f, undo: M, redo: y } = _l(s, p, w), { showLinkPrompt: C, linkUrl: x, setLinkUrl: k, linkText: V, setLinkText: z, editingAnchorRef: b, openLinkPrompt: H, confirmLink: S, cancelLink: _ } = Ll({
22970
23024
  editorRef: s,
22971
23025
  snapshotForUndo: f,
22972
23026
  emitChange: w
22973
- }), { activeTable: R, tableToolbarPos: B, showTableToolbar: E, hideTableToolbar: F, addRowAbove: n1, addRowBelow: N, removeRow: q, addColumnLeft: a1, addColumnRight: G, removeColumn: D, deleteTable: Q } = _l({
23027
+ }), { activeTable: R, tableToolbarPos: B, showTableToolbar: E, hideTableToolbar: F, addRowAbove: o1, addRowBelow: N, removeRow: q, addColumnLeft: a1, addColumnRight: Z, removeColumn: D, deleteTable: Q } = zl({
22974
23028
  editorRef: s,
22975
23029
  snapshotForUndo: f,
22976
23030
  emitChange: w
22977
- }), h1 = Z(() => {
23031
+ }), h1 = P(() => {
22978
23032
  const t1 = [
22979
23033
  "bold",
22980
23034
  "italic",
22981
23035
  "underline",
22982
23036
  "insertUnorderedList",
22983
23037
  "insertOrderedList"
22984
- ], o1 = /* @__PURE__ */ new Set();
23038
+ ], s1 = /* @__PURE__ */ new Set();
22985
23039
  t1.forEach((j) => {
22986
23040
  try {
22987
- document.queryCommandState(j) && o1.add(j);
23041
+ document.queryCommandState(j) && s1.add(j);
22988
23042
  } catch {
22989
23043
  }
22990
23044
  });
@@ -22995,28 +23049,28 @@ ${h.textContent ?? ""}
22995
23049
  if (j.nodeType === Node.ELEMENT_NODE) {
22996
23050
  const l1 = j.tagName.toLowerCase();
22997
23051
  if (/^h[1-6]$/.test(l1)) {
22998
- o1.add(l1);
23052
+ s1.add(l1);
22999
23053
  break;
23000
23054
  }
23001
- l1 === "pre" && o1.add("pre");
23055
+ l1 === "pre" && s1.add("pre");
23002
23056
  }
23003
23057
  j = j.parentNode;
23004
23058
  }
23005
23059
  }
23006
- v(o1);
23007
- }, []), U = Z((t1, o1) => {
23008
- s.current?.focus(), document.execCommand(t1, !1, o1), h1(), w();
23009
- }, [w, h1]), d1 = Z((t1) => {
23010
- const o1 = `h${t1}`, A = g.has(o1);
23011
- U("formatBlock", A ? "p" : o1);
23012
- }, [g, U]), v1 = Z(() => {
23060
+ v(s1);
23061
+ }, []), U = P((t1, s1) => {
23062
+ s.current?.focus(), document.execCommand(t1, !1, s1), h1(), w();
23063
+ }, [w, h1]), d1 = P((t1) => {
23064
+ const s1 = `h${t1}`, A = g.has(s1);
23065
+ U("formatBlock", A ? "p" : s1);
23066
+ }, [g, U]), v1 = P(() => {
23013
23067
  f();
23014
23068
  const t1 = s.current;
23015
23069
  if (!t1) return;
23016
23070
  t1.focus();
23017
- const o1 = window.getSelection();
23018
- if (!o1 || o1.rangeCount === 0) return;
23019
- const A = o1.getRangeAt(0), j = document.createElement("li");
23071
+ const s1 = window.getSelection();
23072
+ if (!s1 || s1.rangeCount === 0) return;
23073
+ const A = s1.getRangeAt(0), j = document.createElement("li");
23020
23074
  j.setAttribute("data-task", "true");
23021
23075
  const l1 = document.createElement("input");
23022
23076
  l1.type = "checkbox", l1.style.marginRight = "6px";
@@ -23025,34 +23079,34 @@ ${h.textContent ?? ""}
23025
23079
  const x1 = document.createElement("ul");
23026
23080
  x1.className = "rte-task-list", x1.appendChild(j), A.deleteContents(), A.insertNode(x1);
23027
23081
  const M1 = document.createRange();
23028
- M1.setStart(m1, 1), M1.collapse(!0), o1.removeAllRanges(), o1.addRange(M1), w();
23029
- }, [f, w]), y1 = Z(() => {
23030
- U("insertHTML", bl);
23031
- }, [U]), _1 = Z((t1) => {
23032
- const o1 = t1.target, A = o1.closest("a");
23082
+ M1.setStart(m1, 1), M1.collapse(!0), s1.removeAllRanges(), s1.addRange(M1), w();
23083
+ }, [f, w]), y1 = P(() => {
23084
+ U("insertHTML", xl);
23085
+ }, [U]), _1 = P((t1) => {
23086
+ const s1 = t1.target, A = s1.closest("a");
23033
23087
  if (A) {
23034
23088
  t1.preventDefault(), H(A), h1();
23035
23089
  return;
23036
23090
  }
23037
- const j = o1.closest("table");
23091
+ const j = s1.closest("table");
23038
23092
  j ? E(j) : F(), h1();
23039
23093
  }, [
23040
23094
  H,
23041
23095
  h1,
23042
23096
  E,
23043
23097
  F
23044
- ]), C1 = Z((t1) => {
23098
+ ]), C1 = P((t1) => {
23045
23099
  if ((t1.ctrlKey || t1.metaKey) && t1.key === "z") {
23046
23100
  t1.preventDefault(), t1.shiftKey ? y() : M();
23047
23101
  return;
23048
23102
  }
23049
- const o1 = t1.key.length === 1 && !t1.ctrlKey && !t1.metaKey, A = [
23103
+ const s1 = t1.key.length === 1 && !t1.ctrlKey && !t1.metaKey, A = [
23050
23104
  "Enter",
23051
23105
  "Backspace",
23052
23106
  "Delete",
23053
23107
  " "
23054
23108
  ].includes(t1.key);
23055
- if ((o1 || A) && f(), t1.key === "Enter" && !t1.shiftKey) {
23109
+ if ((s1 || A) && f(), t1.key === "Enter" && !t1.shiftKey) {
23056
23110
  const j = window.getSelection();
23057
23111
  if (j && j.rangeCount > 0) {
23058
23112
  let l1 = j.getRangeAt(0).commonAncestorContainer;
@@ -23093,7 +23147,7 @@ ${h.textContent ?? ""}
23093
23147
  className: `rte-container ${r ? "rte-container--error" : ""}`,
23094
23148
  style: { position: "relative" },
23095
23149
  children: [
23096
- /* @__PURE__ */ e(Vl, {
23150
+ /* @__PURE__ */ e(Hl, {
23097
23151
  advanced: t,
23098
23152
  isActive: (t1) => g.has(t1),
23099
23153
  exec: U,
@@ -23104,7 +23158,7 @@ ${h.textContent ?? ""}
23104
23158
  undo: M,
23105
23159
  redo: y
23106
23160
  }),
23107
- C && /* @__PURE__ */ e(Ll, {
23161
+ C && /* @__PURE__ */ e(Vl, {
23108
23162
  isEditing: !!b.current,
23109
23163
  linkText: V,
23110
23164
  linkUrl: x,
@@ -23113,14 +23167,14 @@ ${h.textContent ?? ""}
23113
23167
  confirmLink: S,
23114
23168
  cancelLink: _
23115
23169
  }),
23116
- R && B && /* @__PURE__ */ e(zl, {
23170
+ R && B && /* @__PURE__ */ e(Nl, {
23117
23171
  pos: B,
23118
23172
  toolbarRef: u,
23119
- addRowAbove: n1,
23173
+ addRowAbove: o1,
23120
23174
  addRowBelow: N,
23121
23175
  removeRow: q,
23122
23176
  addColumnLeft: a1,
23123
- addColumnRight: G,
23177
+ addColumnRight: Z,
23124
23178
  removeColumn: D,
23125
23179
  deleteTable: Q
23126
23180
  }),
@@ -23146,7 +23200,7 @@ ${h.textContent ?? ""}
23146
23200
  })
23147
23201
  ]
23148
23202
  });
23149
- }, Hi = ({ scrollContainer: t, scrollThreshold: r = 200, className: l }) => {
23203
+ }, Si = ({ scrollContainer: t, scrollThreshold: r = 200, className: l }) => {
23150
23204
  const [a, h] = L(!1);
23151
23205
  O(() => {
23152
23206
  const o = t ?? window, m = () => {
@@ -23157,7 +23211,7 @@ ${h.textContent ?? ""}
23157
23211
  o.removeEventListener("scroll", m);
23158
23212
  };
23159
23213
  }, [t, r]);
23160
- const d = Z(() => {
23214
+ const d = P(() => {
23161
23215
  t ? t.scrollTo({
23162
23216
  top: 0,
23163
23217
  behavior: "smooth"
@@ -23177,12 +23231,12 @@ ${h.textContent ?? ""}
23177
23231
  })
23178
23232
  })
23179
23233
  }) : null;
23180
- }, Q2 = _0(null), J2 = () => L0(Q2), Si = () => {
23234
+ }, Q2 = _0(null), J2 = () => L0(Q2), Ri = () => {
23181
23235
  const t = J2();
23182
23236
  if (!t) throw new Error("useSidebar must be used within a SidebarProvider");
23183
23237
  return t;
23184
- }, Ri = ({ children: t }) => {
23185
- const { isMobile: r } = g0(), [l, a] = L(!1), h = Z(() => a((n) => !n), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = g1(() => ({
23238
+ }, Bi = ({ children: t }) => {
23239
+ const { isMobile: r } = g0(), [l, a] = L(!1), h = P(() => a((n) => !n), []), d = P(() => a(!0), []), o = P(() => a(!1), []), m = g1(() => ({
23186
23240
  isMobile: r,
23187
23241
  isOpen: l,
23188
23242
  toggle: h,
@@ -23199,7 +23253,7 @@ ${h.textContent ?? ""}
23199
23253
  value: m,
23200
23254
  children: t
23201
23255
  });
23202
- }, Bi = ({ sections: t, width: r = "280px", className: l = "", appHeaderProps: a, renderItem: h, isOpen: d, onClose: o, isMobile: m, showOverlay: n = !0, contained: i = !1, shadow: s = "none", searchPlaceholder: p }) => {
23256
+ }, Ai = ({ sections: t, width: r = "280px", className: l = "", appHeaderProps: a, renderItem: h, isOpen: d, onClose: o, isMobile: m, showOverlay: n = !0, contained: i = !1, shadow: s = "none", searchPlaceholder: p }) => {
23203
23257
  const [u, g] = L(""), v = J2(), w = m ?? v?.isMobile ?? !1, f = d ?? (w ? v?.isOpen ?? !1 : !0), M = o ?? v?.close ?? (() => {
23204
23258
  }), y = p && u ? t.map((b) => ({
23205
23259
  ...b,
@@ -23225,7 +23279,7 @@ ${h.textContent ?? ""}
23225
23279
  children: [
23226
23280
  b.icon && /* @__PURE__ */ e("span", {
23227
23281
  className: "sidebar__link-icon",
23228
- children: /* @__PURE__ */ e(P, { name: b.icon })
23282
+ children: /* @__PURE__ */ e(G, { name: b.icon })
23229
23283
  }),
23230
23284
  b.emoji && /* @__PURE__ */ e("span", {
23231
23285
  className: "sidebar__link-emoji",
@@ -23248,7 +23302,7 @@ ${h.textContent ?? ""}
23248
23302
  })
23249
23303
  ]
23250
23304
  }, b.id);
23251
- return /* @__PURE__ */ c(s1, { children: [n && w && f && /* @__PURE__ */ e("div", {
23305
+ return /* @__PURE__ */ c(n1, { children: [n && w && f && /* @__PURE__ */ e("div", {
23252
23306
  className: x,
23253
23307
  onClick: M
23254
23308
  }), /* @__PURE__ */ c("aside", {
@@ -23278,7 +23332,7 @@ ${h.textContent ?? ""}
23278
23332
  className: "sidebar__section-title-row",
23279
23333
  children: [b.icon && /* @__PURE__ */ e("span", {
23280
23334
  className: "sidebar__section-icon",
23281
- children: /* @__PURE__ */ e(P, { name: b.icon })
23335
+ children: /* @__PURE__ */ e(G, { name: b.icon })
23282
23336
  }), /* @__PURE__ */ c("div", {
23283
23337
  className: "sidebar__section-copy",
23284
23338
  children: [b.title && /* @__PURE__ */ e("span", {
@@ -23301,9 +23355,9 @@ ${h.textContent ?? ""}
23301
23355
  })
23302
23356
  ]
23303
23357
  })] });
23304
- }, Nl = (t, r) => t || (r >= 75 ? "excellent" : r >= 50 ? "good" : r >= 25 ? "fair" : r > 0 ? "weak" : "unknown"), Hl = (t) => t >= 75 ? 4 : t >= 50 ? 3 : t >= 25 ? 2 : t > 0 ? 1 : 0;
23305
- function Ai({ value: t, state: r, size: l = 16, className: a = "" }) {
23306
- const h = Nl(r, t), d = Hl(t);
23358
+ }, Sl = (t, r) => t || (r >= 75 ? "excellent" : r >= 50 ? "good" : r >= 25 ? "fair" : r > 0 ? "weak" : "unknown"), Rl = (t) => t >= 75 ? 4 : t >= 50 ? 3 : t >= 25 ? 2 : t > 0 ? 1 : 0;
23359
+ function $i({ value: t, state: r, size: l = 16, className: a = "" }) {
23360
+ const h = Sl(r, t), d = Rl(t);
23307
23361
  return /* @__PURE__ */ c("svg", {
23308
23362
  width: l,
23309
23363
  height: l,
@@ -23351,7 +23405,7 @@ function Ai({ value: t, state: r, size: l = 16, className: a = "" }) {
23351
23405
  ]
23352
23406
  });
23353
23407
  }
23354
- var $i = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, borderRadius: h, count: d = 1, className: o = "" }) => {
23408
+ var Ei = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, borderRadius: h, count: d = 1, className: o = "" }) => {
23355
23409
  const m = () => {
23356
23410
  const p = {};
23357
23411
  if (l !== void 0 ? p.width = typeof l == "number" ? `${l}px` : l : p.width = "100%", a !== void 0) p.height = typeof a == "number" ? `${a}px` : a;
@@ -23392,45 +23446,13 @@ var $i = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
23392
23446
  return d > 1 ? /* @__PURE__ */ e("div", {
23393
23447
  className: "skeleton-group",
23394
23448
  children: s
23395
- }) : /* @__PURE__ */ e(s1, { children: s });
23396
- }, Sl = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.length ?? 0, Ei = ({ disabled: t = !1, largeValueState: r = "info", min: l = 0, max: a = 100, step: h = 1, value: d, onChange: o, showValues: m = !0, showValueAtTheRight: n = !1, valueSize: i, thin: s = !1, vertical: p = !1 }) => {
23397
- const u = (f) => {
23398
- o(parseFloat(f.target.value));
23399
- }, g = Sl(h), v = g > 0 ? d.toFixed(g) : String(d), w = n && !p;
23400
- return /* @__PURE__ */ c("div", {
23401
- className: [
23402
- "slider-component",
23403
- w ? "slider-component--inline" : "",
23404
- s ? "slider-component--thin" : "",
23405
- p ? "slider-component--vertical" : "",
23406
- i ? `slider-component--value-${i}` : ""
23407
- ].filter(Boolean).join(" "),
23408
- children: [/* @__PURE__ */ e("input", {
23409
- type: "range",
23410
- min: l,
23411
- max: a,
23412
- value: d,
23413
- step: h,
23414
- onChange: u,
23415
- className: "slider-input",
23416
- disabled: t
23417
- }), m && (w ? /* @__PURE__ */ e("span", {
23418
- className: `slider-value-inline slider-state-${r}`,
23419
- children: v
23420
- }) : /* @__PURE__ */ e("div", {
23421
- className: "slider-display",
23422
- children: /* @__PURE__ */ e("span", {
23423
- className: `slider-value slider-state-${r}`,
23424
- children: v
23425
- })
23426
- }))]
23427
- });
23449
+ }) : /* @__PURE__ */ e(n1, { children: s });
23428
23450
  }, Di = ({ children: t, panel: r, isPanelOpen: l, onPanelClose: a, panelTitle: h, defaultLeftPercent: d = 55, minLeftPercent: o = 25, minRightPercent: m = 20, className: n = "" }) => {
23429
23451
  const [i, s] = L(d), p = X(null), u = X(!1);
23430
23452
  O(() => (l ? document.body.classList.add("split-panel-active") : document.body.classList.remove("split-panel-active"), () => {
23431
23453
  document.body.classList.remove("split-panel-active");
23432
23454
  }), [l]);
23433
- const g = Z((v) => {
23455
+ const g = P((v) => {
23434
23456
  v.preventDefault(), u.current = !0, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
23435
23457
  const w = (M) => {
23436
23458
  if (!u.current || !p.current) return;
@@ -23485,7 +23507,7 @@ var $i = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
23485
23507
  className: `split-panel ${n}`,
23486
23508
  children: t
23487
23509
  });
23488
- }, Rl = (t, r, l) => {
23510
+ }, Bl = (t, r, l) => {
23489
23511
  const a = `${E0(r)}%`;
23490
23512
  return t.label && l ? `${t.label} - ${a}` : t.label ? t.label : a;
23491
23513
  }, Ti = ({ animated: t = !1, height: r, normalize: l = !0, orientation: a = "horizontal", segments: h, separators: d = !1, showLabels: o = !0, showPercentage: m = !0, thin: n = !1, width: i }) => {
@@ -23506,7 +23528,7 @@ var $i = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
23506
23528
  children: h.map((g, v) => {
23507
23529
  const w = s[v];
23508
23530
  if (w <= 0) return null;
23509
- const f = g.state || "default", M = g.pattern || "solid", y = Rl(g, w, m);
23531
+ const f = g.state || "default", M = g.pattern || "solid", y = Bl(g, w, m);
23510
23532
  return /* @__PURE__ */ e(J, {
23511
23533
  title: y,
23512
23534
  children: /* @__PURE__ */ e("div", {
@@ -23567,7 +23589,7 @@ var $i = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
23567
23589
  function x2({ state: t }) {
23568
23590
  return /* @__PURE__ */ e("span", {
23569
23591
  className: `suggestions-list__sort-icon suggestions-list__sort-icon--${t}`,
23570
- children: /* @__PURE__ */ e(P, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
23592
+ children: /* @__PURE__ */ e(G, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
23571
23593
  });
23572
23594
  }
23573
23595
  var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h = !1, onRowClick: d }) => {
@@ -23584,7 +23606,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
23584
23606
  v
23585
23607
  ]), y = g1(() => n ? [...M] : M.slice(0, k2), [M, n]), C = M.length > k2, x = () => {
23586
23608
  m(!o);
23587
- }, k = Z(() => {
23609
+ }, k = P(() => {
23588
23610
  i(!n);
23589
23611
  }, [n]), V = (b) => {
23590
23612
  u === b ? w((H) => H === "asc" ? "desc" : "asc") : (g(b), w("asc"));
@@ -24187,7 +24209,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24187
24209
  "ocean-depths",
24188
24210
  "sandstone",
24189
24211
  "tailwind-vue-dark"
24190
- ]), Bl = /* @__PURE__ */ new Set([
24212
+ ]), Al = /* @__PURE__ */ new Set([
24191
24213
  "atelier-media",
24192
24214
  "blueprint-clay",
24193
24215
  "blush-market",
@@ -24205,11 +24227,11 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24205
24227
  "sandy-parchment",
24206
24228
  "terracotta-kitchen",
24207
24229
  "vital-aurora"
24208
- ]), Al = (t) => Bl.has(t) ? "light" : "dark", $l = (t) => p0.find((r) => r.value === t), L2 = "theme-font-link", z2 = "theme-font-link-display", V2 = "theme-font-link-mono", Pi = ({ children: t, theme: r, effects: l, onSave: a, allowedThemes: h }) => {
24230
+ ]), $l = (t) => Al.has(t) ? "light" : "dark", El = (t) => p0.find((r) => r.value === t), L2 = "theme-font-link", z2 = "theme-font-link-display", V2 = "theme-font-link-mono", Pi = ({ children: t, theme: r, effects: l, onSave: a, allowedThemes: h }) => {
24209
24231
  const [d, o] = L(null), [m, n] = L(null), [i, s] = L(!1), p = d ?? r, u = m ?? l;
24210
24232
  O(() => {
24211
24233
  document.documentElement.setAttribute("data-theme", p);
24212
- const C = $l(p);
24234
+ const C = El(p);
24213
24235
  if (C) {
24214
24236
  let x = document.getElementById(L2);
24215
24237
  x || (x = document.createElement("link"), x.id = L2, x.rel = "stylesheet", document.head.appendChild(x)), x.href = C.fontUrl;
@@ -24219,11 +24241,11 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24219
24241
  C.fontUrlMono ? (V || (V = document.createElement("link"), V.id = V2, V.rel = "stylesheet", document.head.appendChild(V)), V.href = C.fontUrlMono) : V?.remove();
24220
24242
  }
24221
24243
  }, [p]);
24222
- const g = Z((C) => {
24244
+ const g = P((C) => {
24223
24245
  o(C);
24224
- }, []), v = Z((C) => {
24246
+ }, []), v = P((C) => {
24225
24247
  n(C);
24226
- }, []), w = Z(() => {
24248
+ }, []), w = P(() => {
24227
24249
  o(null), n(null);
24228
24250
  }, []);
24229
24251
  O(() => {
@@ -24247,7 +24269,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24247
24269
  d,
24248
24270
  h
24249
24271
  ]);
24250
- const f = p0.findIndex((C) => C.value === p), M = f >= 0 ? p0[f].label : p, y = Z(() => {
24272
+ const f = p0.findIndex((C) => C.value === p), M = f >= 0 ? p0[f].label : p, y = P(() => {
24251
24273
  a?.({
24252
24274
  theme: p,
24253
24275
  effects: u
@@ -24346,7 +24368,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24346
24368
  }), /* @__PURE__ */ e("div", { className: "toggle-switch__thumb" })]
24347
24369
  })
24348
24370
  });
24349
- }, El = [
24371
+ }, Dl = [
24350
24372
  {
24351
24373
  value: "all",
24352
24374
  label: "All"
@@ -24387,9 +24409,9 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24387
24409
  const q = new Set(l);
24388
24410
  N = N.filter((a1) => q.has(a1.value));
24389
24411
  }
24390
- if (y && (N = N.filter((q) => _2.has(q.value))), x && S && (N = N.filter((q) => (q.recommendedApps ?? []).some((a1) => a1.toLowerCase() === S))), V !== "all" && (N = N.filter((q) => Al(q.value) === V)), f.trim()) {
24412
+ if (y && (N = N.filter((q) => _2.has(q.value))), x && S && (N = N.filter((q) => (q.recommendedApps ?? []).some((a1) => a1.toLowerCase() === S))), V !== "all" && (N = N.filter((q) => $l(q.value) === V)), f.trim()) {
24391
24413
  const q = f.toLowerCase().trim();
24392
- N = N.filter((a1) => a1.label.toLowerCase().includes(q) || (a1.recommendedApps ?? []).some((G) => G.toLowerCase().includes(q)));
24414
+ N = N.filter((a1) => a1.label.toLowerCase().includes(q) || (a1.recommendedApps ?? []).some((Z) => Z.toLowerCase().includes(q)));
24393
24415
  }
24394
24416
  return N;
24395
24417
  }, [
@@ -24428,7 +24450,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24428
24450
  components: i.components
24429
24451
  });
24430
24452
  }, E = (N, q) => {
24431
- const a1 = q ? [...i.components, N] : i.components.filter((G) => G !== N);
24453
+ const a1 = q ? [...i.components, N] : i.components.filter((Z) => Z !== N);
24432
24454
  p({
24433
24455
  effect: i.effect,
24434
24456
  components: a1
@@ -24492,7 +24514,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24492
24514
  }),
24493
24515
  m && /* @__PURE__ */ e("div", {
24494
24516
  className: "theme-settings__appearance",
24495
- children: El.map((N) => /* @__PURE__ */ e("button", {
24517
+ children: Dl.map((N) => /* @__PURE__ */ e("button", {
24496
24518
  type: "button",
24497
24519
  className: `theme-settings__appearance-option ${V === N.value ? "theme-settings__appearance-option--active" : ""}`,
24498
24520
  onClick: () => z(N.value),
@@ -24547,7 +24569,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24547
24569
  }, N.value))
24548
24570
  })
24549
24571
  ]
24550
- }), h && /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ c("div", {
24572
+ }), h && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ c("div", {
24551
24573
  className: "theme-settings__section",
24552
24574
  children: [/* @__PURE__ */ e("label", {
24553
24575
  htmlFor: "effect-selector",
@@ -24575,7 +24597,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24575
24597
  })
24576
24598
  })
24577
24599
  });
24578
- }, Dl = (t = "default") => `timeline__dot timeline__dot--${t}`, Wi = ({ items: t, orientation: r = "vertical", size: l = "md", connected: a = !0, animated: h = !0, className: d = "" }) => /* @__PURE__ */ e("ol", {
24600
+ }, Tl = (t = "default") => `timeline__dot timeline__dot--${t}`, Wi = ({ items: t, orientation: r = "vertical", size: l = "md", connected: a = !0, animated: h = !0, className: d = "" }) => /* @__PURE__ */ e("ol", {
24579
24601
  className: [
24580
24602
  "timeline",
24581
24603
  `timeline--${r}`,
@@ -24594,7 +24616,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24594
24616
  children: [/* @__PURE__ */ c("div", {
24595
24617
  className: "timeline__node",
24596
24618
  children: [/* @__PURE__ */ e("div", {
24597
- className: Dl(o.variant),
24619
+ className: Tl(o.variant),
24598
24620
  children: o.icon ? /* @__PURE__ */ e("span", {
24599
24621
  className: "timeline__dot-icon",
24600
24622
  children: o.icon
@@ -24624,15 +24646,15 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24624
24646
  ]
24625
24647
  })]
24626
24648
  }, o.id))
24627
- }), Tl = (t, r) => Math.floor(Math.random() * (r - t + 1) + t), Ui = ({ list: t }) => {
24628
- const r = Tl(0, t.length - 1);
24649
+ }), Il = (t, r) => Math.floor(Math.random() * (r - t + 1) + t), Ui = ({ list: t }) => {
24650
+ const r = Il(0, t.length - 1);
24629
24651
  return /* @__PURE__ */ c(I2, {
24630
24652
  className: "tips-of-the-day",
24631
24653
  children: [
24632
24654
  /* @__PURE__ */ c("h3", { children: [
24633
- /* @__PURE__ */ e(P, { name: "sparkle" }),
24655
+ /* @__PURE__ */ e(G, { name: "sparkle" }),
24634
24656
  " Tip Of The Day ",
24635
- /* @__PURE__ */ e(P, { name: "sparkle" })
24657
+ /* @__PURE__ */ e(G, { name: "sparkle" })
24636
24658
  ] }),
24637
24659
  " ",
24638
24660
  /* @__PURE__ */ e("h4", { children: t[r] })
@@ -24660,7 +24682,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24660
24682
  children: /* @__PURE__ */ e("button", {
24661
24683
  className: "toast__close",
24662
24684
  onClick: l,
24663
- children: /* @__PURE__ */ e(P, {
24685
+ children: /* @__PURE__ */ e(G, {
24664
24686
  name: "clear",
24665
24687
  size: "sm"
24666
24688
  })
@@ -24678,7 +24700,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24678
24700
  onClick: () => l(m.key),
24679
24701
  children: [m.icon && /* @__PURE__ */ e("span", {
24680
24702
  className: "toggle-buttons__card-icon",
24681
- children: /* @__PURE__ */ e(P, {
24703
+ children: /* @__PURE__ */ e(G, {
24682
24704
  name: m.icon,
24683
24705
  size: "xl"
24684
24706
  })
@@ -24702,7 +24724,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24702
24724
  children: o("tablet") ? m.label : ""
24703
24725
  }, `btn-toggle2-${n}-${m}`))
24704
24726
  });
24705
- }, B0 = "::", Il = (t) => typeof t == "object" ? t.label : void 0, Gl = (t) => "fields" in t ? t.fields.flatMap((r) => [{
24727
+ }, B0 = "::", Gl = (t) => typeof t == "object" ? t.label : void 0, Zl = (t) => "fields" in t ? t.fields.flatMap((r) => [{
24706
24728
  value: `${r.value}${B0}asc`,
24707
24729
  label: r.label,
24708
24730
  suffixIcon: "arrow-up"
@@ -24710,7 +24732,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24710
24732
  value: `${r.value}${B0}desc`,
24711
24733
  label: r.label,
24712
24734
  suffixIcon: "arrow-down"
24713
- }]) : t.options, Zl = (t) => "fields" in t ? t.value ? `${t.value.field}${B0}${t.value.direction}` : null : t.value, Oi = ({ children: t, className: r = "", controlPanelToggle: l, heading: a, noCard: h = !1, menuItems: d, notifications: o, search: m, sort: n }) => {
24735
+ }]) : t.options, Pl = (t) => "fields" in t ? t.value ? `${t.value.field}${B0}${t.value.direction}` : null : t.value, Oi = ({ children: t, className: r = "", controlPanelToggle: l, heading: a, noCard: h = !1, menuItems: d, notifications: o, search: m, sort: n }) => {
24714
24736
  const i = c2(), s = !!(l && i?.isMobile), p = typeof l == "object" ? l.count ?? 0 : 0, u = [
24715
24737
  "memobit-toolbar",
24716
24738
  h ? "memobit-toolbar--no-card" : "",
@@ -24742,7 +24764,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24742
24764
  size: "medium",
24743
24765
  title: "Filters",
24744
24766
  variant: "default",
24745
- children: [l && Il(l), p > 0 && /* @__PURE__ */ e("span", {
24767
+ children: [l && Gl(l), p > 0 && /* @__PURE__ */ e("span", {
24746
24768
  className: "memobit-toolbar__control-panel-toggle-count",
24747
24769
  children: p
24748
24770
  })]
@@ -24754,7 +24776,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24754
24776
  className: "memobit-toolbar__heading-icon",
24755
24777
  children: [
24756
24778
  a.svg,
24757
- a.icon && /* @__PURE__ */ e(P, { name: a.icon }),
24779
+ a.icon && /* @__PURE__ */ e(G, { name: a.icon }),
24758
24780
  a.emoji
24759
24781
  ]
24760
24782
  }), /* @__PURE__ */ c("div", {
@@ -24789,23 +24811,23 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24789
24811
  label: n.label,
24790
24812
  name: n.name ?? "toolbar-sort",
24791
24813
  onChange: v,
24792
- options: Gl(n),
24814
+ options: Zl(n),
24793
24815
  placeholder: n.placeholder,
24794
24816
  searchable: n.searchable ?? !1,
24795
24817
  usePortal: !1,
24796
- value: Zl(n)
24818
+ value: Pl(n)
24797
24819
  })
24798
24820
  })
24799
24821
  ]
24800
24822
  }),
24801
24823
  /* @__PURE__ */ c("div", {
24802
24824
  className: "memobit-toolbar__actions",
24803
- children: [o && /* @__PURE__ */ e(nl, {
24825
+ children: [o && /* @__PURE__ */ e(sl, {
24804
24826
  items: o.items,
24805
24827
  buttonLabel: o.buttonLabel,
24806
24828
  panelTitle: o.panelTitle,
24807
24829
  emptyMessage: o.emptyMessage
24808
- }), /* @__PURE__ */ e(il, {
24830
+ }), /* @__PURE__ */ e(ol, {
24809
24831
  items: d,
24810
24832
  disableResponsive: !0,
24811
24833
  showLabel: !1
@@ -24850,7 +24872,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24850
24872
  className: "tour-hud__btn",
24851
24873
  disabled: l === 0,
24852
24874
  onClick: o,
24853
- children: [/* @__PURE__ */ e(P, {
24875
+ children: [/* @__PURE__ */ e(G, {
24854
24876
  name: "arrow-left",
24855
24877
  size: "sm"
24856
24878
  }), "Prev"]
@@ -24860,7 +24882,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24860
24882
  className: "tour-hud__btn",
24861
24883
  disabled: l >= a - 1,
24862
24884
  onClick: m,
24863
- children: ["Next", /* @__PURE__ */ e(P, {
24885
+ children: ["Next", /* @__PURE__ */ e(G, {
24864
24886
  name: "arrow-right",
24865
24887
  size: "sm"
24866
24888
  })]
@@ -24874,7 +24896,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24874
24896
  ]
24875
24897
  })]
24876
24898
  });
24877
- }, Pl = ({ open: t }) => /* @__PURE__ */ e("svg", {
24899
+ }, jl = ({ open: t }) => /* @__PURE__ */ e("svg", {
24878
24900
  className: `tree__chevron ${t ? "tree__chevron--open" : ""}`,
24879
24901
  viewBox: "0 0 16 16",
24880
24902
  width: "12",
@@ -24888,7 +24910,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24888
24910
  strokeLinejoin: "round"
24889
24911
  })
24890
24912
  }), e3 = ({ node: t, depth: r, selectable: l, showGuides: a, animated: h, selectedId: d, onSelect: o }) => {
24891
- const [m, n] = L(t.defaultExpanded ?? !1), i = Array.isArray(t.children) && t.children.length > 0, s = l && d === t.id, p = Z((u) => {
24913
+ const [m, n] = L(t.defaultExpanded ?? !1), i = Array.isArray(t.children) && t.children.length > 0, s = l && d === t.id, p = P((u) => {
24892
24914
  t.disabled || "key" in u && u.key !== "Enter" && u.key !== " " || (i && n((g) => !g), l && o(t));
24893
24915
  }, [
24894
24916
  i,
@@ -24914,7 +24936,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24914
24936
  }, g)),
24915
24937
  /* @__PURE__ */ e("span", {
24916
24938
  className: "tree__toggle",
24917
- children: i ? /* @__PURE__ */ e(Pl, { open: m }) : /* @__PURE__ */ e("span", { className: "tree__leaf-dot" })
24939
+ children: i ? /* @__PURE__ */ e(jl, { open: m }) : /* @__PURE__ */ e("span", { className: "tree__leaf-dot" })
24918
24940
  }),
24919
24941
  t.icon && /* @__PURE__ */ e("span", {
24920
24942
  className: "tree__icon",
@@ -24946,7 +24968,7 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24946
24968
  }, u.id))
24947
24969
  })] });
24948
24970
  }, qi = ({ nodes: t, selectable: r = !1, onSelect: l, showGuides: a = !0, animated: h = !0, defaultSelectedId: d = null, className: o = "" }) => {
24949
- const [m, n] = L(d), i = Z((s) => {
24971
+ const [m, n] = L(d), i = P((s) => {
24950
24972
  s.disabled || (n(s.id), l?.(s));
24951
24973
  }, [l]);
24952
24974
  return /* @__PURE__ */ e("ul", {
@@ -24961,9 +24983,9 @@ var k2 = 10, Zi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24961
24983
  onSelect: i
24962
24984
  }, s.id))
24963
24985
  });
24964
- }, jl = 96, Wl = 6;
24965
- function Xi({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = Wl, maxHeight: d, empty: o, className: m = "", rowClassName: n = "" }) {
24966
- const i = X(null), [s, p] = L(0), [u, g] = L(0), [v, w] = L(() => window.innerHeight), [f, M] = L(jl), y = a && a > 0 ? a : f, C = Z((_) => {
24986
+ }, Wl = 96, Ul = 6;
24987
+ function Xi({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = Ul, maxHeight: d, empty: o, className: m = "", rowClassName: n = "" }) {
24988
+ const i = X(null), [s, p] = L(0), [u, g] = L(0), [v, w] = L(() => window.innerHeight), [f, M] = L(Wl), y = a && a > 0 ? a : f, C = P((_) => {
24967
24989
  p(_.currentTarget.scrollTop);
24968
24990
  }, []);
24969
24991
  O(() => {
@@ -24993,7 +25015,7 @@ function Xi({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = Wl
24993
25015
  t,
24994
25016
  a,
24995
25017
  u
24996
- ]), x === 0 ? o ? /* @__PURE__ */ e(s1, { children: o }) : null : /* @__PURE__ */ c("div", {
25018
+ ]), x === 0 ? o ? /* @__PURE__ */ e(n1, { children: o }) : null : /* @__PURE__ */ c("div", {
24997
25019
  className: `virtual-list ${m}`.trim(),
24998
25020
  ref: i,
24999
25021
  onScroll: C,
@@ -25051,7 +25073,7 @@ var $1 = [
25051
25073
  color: "#FF4444",
25052
25074
  percentage: 15
25053
25075
  }
25054
- ], Ul = (t) => {
25076
+ ], Fl = (t) => {
25055
25077
  for (const r of $1) if (t <= r.max) return {
25056
25078
  label: r.label,
25057
25079
  color: r.color
@@ -25060,7 +25082,7 @@ var $1 = [
25060
25082
  label: $1[$1.length - 1].label,
25061
25083
  color: $1[$1.length - 1].color
25062
25084
  };
25063
- }, Fl = (t) => {
25085
+ }, Ol = (t) => {
25064
25086
  const r = [
25065
25087
  0,
25066
25088
  0.4,
@@ -25076,7 +25098,7 @@ var $1 = [
25076
25098
  }
25077
25099
  return 100;
25078
25100
  }, Ki = ({ belly: t, height: r, isSimplified: l = !1, showLabels: a = !0, showIndicator: h = !0 }) => {
25079
- const d = Math.round(t / r * 100) / 100, o = Ul(d), m = Fl(d), n = [
25101
+ const d = Math.round(t / r * 100) / 100, o = Fl(d), m = Ol(d), n = [
25080
25102
  "<0.4",
25081
25103
  "0.4-0.5",
25082
25104
  "0.5-0.6",
@@ -25151,13 +25173,13 @@ function Qi({ children: t, config: r }) {
25151
25173
  }
25152
25174
  })();
25153
25175
  }, [r.apiBaseUrl]);
25154
- const o = Z((s) => {
25176
+ const o = P((s) => {
25155
25177
  s.user && a({
25156
25178
  id: s.user.id,
25157
25179
  username: s.user.username,
25158
25180
  createdAt: new Date(s.user.createdAt)
25159
25181
  });
25160
- }, []), m = Z(async (s) => {
25182
+ }, []), m = P(async (s) => {
25161
25183
  d(!0);
25162
25184
  try {
25163
25185
  const p = await fetch(`${r.apiBaseUrl}/auth/login`, {
@@ -25184,7 +25206,7 @@ function Qi({ children: t, config: r }) {
25184
25206
  } finally {
25185
25207
  d(!1);
25186
25208
  }
25187
- }, [r.apiBaseUrl, o]), n = Z(async (s, p) => {
25209
+ }, [r.apiBaseUrl, o]), n = P(async (s, p) => {
25188
25210
  d(!0);
25189
25211
  try {
25190
25212
  const u = await fetch(`${r.apiBaseUrl}/auth/verifyMfa`, {
@@ -25206,7 +25228,7 @@ function Qi({ children: t, config: r }) {
25206
25228
  } finally {
25207
25229
  d(!1);
25208
25230
  }
25209
- }, [r.apiBaseUrl, o]), i = Z(async () => {
25231
+ }, [r.apiBaseUrl, o]), i = P(async () => {
25210
25232
  try {
25211
25233
  await fetch(`${r.apiBaseUrl}/auth/logout`, {
25212
25234
  method: "POST",
@@ -25409,7 +25431,7 @@ function en({ redirectPath: t = "/" }) {
25409
25431
  }, _ = () => {
25410
25432
  o("credentials"), f(""), x("");
25411
25433
  }, R = g === "email" ? "Enter the code we emailed you. You can also use a recovery code." : "Enter the code from your authenticator app. You can also use a recovery code.";
25412
- return /* @__PURE__ */ c(s1, { children: [/* @__PURE__ */ e("div", {
25434
+ return /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("div", {
25413
25435
  className: "LoginPage",
25414
25436
  children: /* @__PURE__ */ c("div", {
25415
25437
  className: "LoginPage__card",
@@ -25506,7 +25528,7 @@ function en({ redirectPath: t = "/" }) {
25506
25528
  onClose: () => b(!1)
25507
25529
  })] });
25508
25530
  }
25509
- var Ol = Object.defineProperty, A0 = Object.getOwnPropertySymbols, r3 = Object.prototype.hasOwnProperty, c3 = Object.prototype.propertyIsEnumerable, H2 = (t, r, l) => r in t ? Ol(t, r, {
25531
+ var Yl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, r3 = Object.prototype.hasOwnProperty, c3 = Object.prototype.propertyIsEnumerable, H2 = (t, r, l) => r in t ? Yl(t, r, {
25510
25532
  enumerable: !0,
25511
25533
  configurable: !0,
25512
25534
  writable: !0,
@@ -26267,12 +26289,12 @@ var Ol = Object.defineProperty, A0 = Object.getOwnPropertySymbols, r3 = Object.p
26267
26289
  ]), r.Mode = l;
26268
26290
  })(t.QrSegment || (t.QrSegment = {}));
26269
26291
  })(a0 || (a0 = {}));
26270
- var v0 = a0, Yl = {
26292
+ var v0 = a0, ql = {
26271
26293
  L: v0.QrCode.Ecc.LOW,
26272
26294
  M: v0.QrCode.Ecc.MEDIUM,
26273
26295
  Q: v0.QrCode.Ecc.QUARTILE,
26274
26296
  H: v0.QrCode.Ecc.HIGH
26275
- }, l3 = 128, a3 = "L", i3 = "#FFFFFF", n3 = "#000000", o3 = !1, s3 = 1, ql = 4, Xl = 0, Kl = 0.1;
26297
+ }, l3 = 128, a3 = "L", i3 = "#FFFFFF", n3 = "#000000", o3 = !1, s3 = 1, Xl = 4, Kl = 0, Ql = 0.1;
26276
26298
  function h3(t, r = 0) {
26277
26299
  const l = [];
26278
26300
  return t.forEach(function(a, h) {
@@ -26294,9 +26316,9 @@ function h3(t, r = 0) {
26294
26316
  function d3(t, r) {
26295
26317
  return t.slice().map((l, a) => a < r.y || a >= r.y + r.h ? l : l.map((h, d) => d < r.x || d >= r.x + r.w ? h : !1));
26296
26318
  }
26297
- function Ql(t, r, l, a) {
26319
+ function Jl(t, r, l, a) {
26298
26320
  if (a == null) return null;
26299
- const h = t.length + l * 2, d = Math.floor(r * Kl), o = h / r, m = (a.width || d) * o, n = (a.height || d) * o, i = a.x == null ? t.length / 2 - m / 2 : a.x * o, s = a.y == null ? t.length / 2 - n / 2 : a.y * o, p = a.opacity == null ? 1 : a.opacity;
26321
+ const h = t.length + l * 2, d = Math.floor(r * Ql), o = h / r, m = (a.width || d) * o, n = (a.height || d) * o, i = a.x == null ? t.length / 2 - m / 2 : a.x * o, s = a.y == null ? t.length / 2 - n / 2 : a.y * o, p = a.opacity == null ? 1 : a.opacity;
26300
26322
  let u = null;
26301
26323
  if (a.excavate) {
26302
26324
  let v = Math.floor(i), w = Math.floor(s);
@@ -26318,13 +26340,13 @@ function Ql(t, r, l, a) {
26318
26340
  crossOrigin: g
26319
26341
  };
26320
26342
  }
26321
- function Jl(t, r) {
26322
- return r != null ? Math.max(Math.floor(r), 0) : t ? ql : Xl;
26343
+ function ea(t, r) {
26344
+ return r != null ? Math.max(Math.floor(r), 0) : t ? Xl : Kl;
26323
26345
  }
26324
26346
  function m3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h, imageSettings: d, size: o, boostLevel: m }) {
26325
26347
  let n = u1.useMemo(() => {
26326
26348
  const g = (Array.isArray(t) ? t : [t]).reduce((v, w) => (v.push(...v0.QrSegment.makeSegments(w)), v), []);
26327
- return v0.QrCode.encodeSegments(g, Yl[r], l, void 0, void 0, m);
26349
+ return v0.QrCode.encodeSegments(g, ql[r], l, void 0, void 0, m);
26328
26350
  }, [
26329
26351
  t,
26330
26352
  r,
@@ -26333,12 +26355,12 @@ function m3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h
26333
26355
  ]);
26334
26356
  const { cells: i, margin: s, numCells: p, calculatedImageSettings: u } = u1.useMemo(() => {
26335
26357
  let g = n.getModules();
26336
- const v = Jl(a, h);
26358
+ const v = ea(a, h);
26337
26359
  return {
26338
26360
  cells: g,
26339
26361
  margin: v,
26340
26362
  numCells: g.length + v * 2,
26341
- calculatedImageSettings: Ql(g, o, v, d)
26363
+ calculatedImageSettings: Jl(g, o, v, d)
26342
26364
  };
26343
26365
  }, [
26344
26366
  n,
@@ -26355,14 +26377,14 @@ function m3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h
26355
26377
  calculatedImageSettings: u
26356
26378
  };
26357
26379
  }
26358
- var ea = (function() {
26380
+ var ta = (function() {
26359
26381
  try {
26360
26382
  new Path2D().addPath(new Path2D());
26361
26383
  } catch {
26362
26384
  return !1;
26363
26385
  }
26364
26386
  return !0;
26365
- })(), ta = u1.forwardRef(function(r, l) {
26387
+ })(), ra = u1.forwardRef(function(r, l) {
26366
26388
  const a = r, { value: h, size: d = l3, level: o = a3, bgColor: m = i3, fgColor: n = n3, includeMargin: i = o3, minVersion: s = s3, boostLevel: p, marginSize: u, imageSettings: g } = a, v = t2(a, [
26367
26389
  "value",
26368
26390
  "size",
@@ -26391,16 +26413,16 @@ var ea = (function() {
26391
26413
  const B = y.current, E = B.getContext("2d");
26392
26414
  if (!E) return;
26393
26415
  let F = b;
26394
- const n1 = C.current, N = S != null && n1 !== null && n1.complete && n1.naturalHeight !== 0 && n1.naturalWidth !== 0;
26416
+ const o1 = C.current, N = S != null && o1 !== null && o1.complete && o1.naturalHeight !== 0 && o1.naturalWidth !== 0;
26395
26417
  N && S.excavation != null && (F = d3(b, S.excavation));
26396
26418
  const q = window.devicePixelRatio || 1;
26397
26419
  B.height = B.width = d * q;
26398
26420
  const a1 = d / H * q;
26399
- E.scale(a1, a1), E.fillStyle = m, E.fillRect(0, 0, H, H), E.fillStyle = n, ea ? E.fill(new Path2D(h3(F, z))) : b.forEach(function(G, D) {
26400
- G.forEach(function(Q, h1) {
26421
+ E.scale(a1, a1), E.fillStyle = m, E.fillRect(0, 0, H, H), E.fillStyle = n, ta ? E.fill(new Path2D(h3(F, z))) : b.forEach(function(Z, D) {
26422
+ Z.forEach(function(Q, h1) {
26401
26423
  Q && E.fillRect(h1 + z, D + z, 1, 1);
26402
26424
  });
26403
- }), S && (E.globalAlpha = S.opacity), N && E.drawImage(n1, S.x + z, S.y + z, S.w, S.h);
26425
+ }), S && (E.globalAlpha = S.opacity), N && E.drawImage(o1, S.x + z, S.y + z, S.w, S.h);
26404
26426
  }
26405
26427
  }), u1.useEffect(() => {
26406
26428
  V(!1);
@@ -26427,7 +26449,7 @@ var ea = (function() {
26427
26449
  role: "img"
26428
26450
  }, f)), R);
26429
26451
  });
26430
- ta.displayName = "QRCodeCanvas";
26452
+ ra.displayName = "QRCodeCanvas";
26431
26453
  var p3 = u1.forwardRef(function(r, l) {
26432
26454
  const a = r, { value: h, size: d = l3, level: o = a3, bgColor: m = i3, fgColor: n = n3, includeMargin: i = o3, minVersion: s = s3, boostLevel: p, title: u, marginSize: g, imageSettings: v } = a, w = t2(a, [
26433
26455
  "value",
@@ -26481,7 +26503,7 @@ var p3 = u1.forwardRef(function(r, l) {
26481
26503
  });
26482
26504
  p3.displayName = "QRCodeSVG";
26483
26505
  function cn({ isOpen: t, onClose: r }) {
26484
- const { config: l } = i2(), [a, h] = L("loading"), [d, o] = L(!1), [m, n] = L(null), [i, s] = L(""), [p, u] = L(""), [g, v] = L(""), [w, f] = L(""), [M, y] = L([]), [C, x] = L(""), [k, V] = L(!1), [z, b] = L(null), H = Z(async (Q, h1) => {
26506
+ const { config: l } = i2(), [a, h] = L("loading"), [d, o] = L(!1), [m, n] = L(null), [i, s] = L(""), [p, u] = L(""), [g, v] = L(""), [w, f] = L(""), [M, y] = L([]), [C, x] = L(""), [k, V] = L(!1), [z, b] = L(null), H = P(async (Q, h1) => {
26485
26507
  const U = document.cookie.match(/(?:^|;\s*)csrf_token=([^;]+)/), d1 = U ? decodeURIComponent(U[1]) : null, v1 = { "Content-Type": "application/json" };
26486
26508
  d1 && (v1["X-CSRF-Token"] = d1);
26487
26509
  const y1 = await fetch(`${l.apiBaseUrl}${Q}`, {
@@ -26492,7 +26514,7 @@ function cn({ isOpen: t, onClose: r }) {
26492
26514
  }), _1 = await y1.json().catch(() => ({}));
26493
26515
  if (!y1.ok) throw new Error(_1.error || "Request failed");
26494
26516
  return _1;
26495
- }, [l.apiBaseUrl]), S = Z(async () => {
26517
+ }, [l.apiBaseUrl]), S = P(async () => {
26496
26518
  h("loading"), x("");
26497
26519
  try {
26498
26520
  const Q = await (await fetch(`${l.apiBaseUrl}/auth/mfaStatus`, { credentials: "include" })).json();
@@ -26524,7 +26546,7 @@ function cn({ isOpen: t, onClose: r }) {
26524
26546
  }), F = () => _(async () => {
26525
26547
  const Q = await H("/auth/mfaConfirmEmail", { code: g.trim() });
26526
26548
  y(Q.recoveryCodes || []), h("recovery");
26527
- }), n1 = () => _(async () => {
26549
+ }), o1 = () => _(async () => {
26528
26550
  await H("/auth/mfaDisable", { password: w }), b({
26529
26551
  message: "Two-factor authentication disabled.",
26530
26552
  type: "success"
@@ -26543,7 +26565,7 @@ function cn({ isOpen: t, onClose: r }) {
26543
26565
  message: "Recovery codes copied.",
26544
26566
  type: "success"
26545
26567
  });
26546
- }, G = i.replace(/(.{4})/g, "$1 ").trim();
26568
+ }, Z = i.replace(/(.{4})/g, "$1 ").trim();
26547
26569
  return /* @__PURE__ */ c(W1, {
26548
26570
  isOpen: t,
26549
26571
  onClose: r,
@@ -26565,7 +26587,7 @@ function cn({ isOpen: t, onClose: r }) {
26565
26587
  children: [/* @__PURE__ */ c("p", {
26566
26588
  className: "MfaSetupModal__status",
26567
26589
  children: ["Status: ", /* @__PURE__ */ e("strong", { children: d ? `Enabled (${m === "email" ? "email codes" : "authenticator app"})` : "Disabled" })]
26568
- }), d ? /* @__PURE__ */ c(s1, { children: [
26590
+ }), d ? /* @__PURE__ */ c(n1, { children: [
26569
26591
  /* @__PURE__ */ e(T, {
26570
26592
  variant: "default",
26571
26593
  fullWidth: !0,
@@ -26588,7 +26610,7 @@ function cn({ isOpen: t, onClose: r }) {
26588
26610
  onClick: () => h("disable"),
26589
26611
  children: "Disable two-factor"
26590
26612
  })
26591
- ] }) : /* @__PURE__ */ c(s1, { children: [
26613
+ ] }) : /* @__PURE__ */ c(n1, { children: [
26592
26614
  /* @__PURE__ */ e("p", {
26593
26615
  className: "MfaSetupModal__hint",
26594
26616
  children: "Add a second step at sign-in. Choose a method:"
@@ -26631,7 +26653,7 @@ function cn({ isOpen: t, onClose: r }) {
26631
26653
  }),
26632
26654
  /* @__PURE__ */ e("div", {
26633
26655
  className: "MfaSetupModal__secret",
26634
- children: G
26656
+ children: Z
26635
26657
  }),
26636
26658
  /* @__PURE__ */ e(V1, {
26637
26659
  placeholder: "6-digit code from the app",
@@ -26735,7 +26757,7 @@ function cn({ isOpen: t, onClose: r }) {
26735
26757
  icon: "lock",
26736
26758
  fullWidth: !0,
26737
26759
  loading: k,
26738
- onClick: n1,
26760
+ onClick: o1,
26739
26761
  children: "Disable two-factor"
26740
26762
  }),
26741
26763
  /* @__PURE__ */ e(T, {
@@ -26844,7 +26866,7 @@ function ln(t, r) {
26844
26866
  const l = {
26845
26867
  pages: r.pages ?? {},
26846
26868
  theme: r.theme
26847
- }, [a, h] = L(() => x0.load(t, l)), d = Z((i, s) => {
26869
+ }, [a, h] = L(() => x0.load(t, l)), d = P((i, s) => {
26848
26870
  h((p) => {
26849
26871
  const u = {
26850
26872
  ...p,
@@ -26855,7 +26877,7 @@ function ln(t, r) {
26855
26877
  };
26856
26878
  return x0.save(t, u), u;
26857
26879
  });
26858
- }, [t]), o = Z((i) => {
26880
+ }, [t]), o = P((i) => {
26859
26881
  h((s) => {
26860
26882
  const p = {
26861
26883
  ...s,
@@ -26863,7 +26885,7 @@ function ln(t, r) {
26863
26885
  };
26864
26886
  return x0.save(t, p), p;
26865
26887
  });
26866
- }, [t]), m = Z((i) => {
26888
+ }, [t]), m = P((i) => {
26867
26889
  h((s) => {
26868
26890
  const p = {
26869
26891
  ...s,
@@ -26874,7 +26896,7 @@ function ln(t, r) {
26874
26896
  };
26875
26897
  return x0.save(t, p), p;
26876
26898
  });
26877
- }, [t]), n = Z(() => {
26899
+ }, [t]), n = P(() => {
26878
26900
  h(l), x0.clearAll(t);
26879
26901
  }, [t]);
26880
26902
  return {
@@ -26901,7 +26923,7 @@ var an = (t) => new Intl.NumberFormat("en-US", {
26901
26923
  "PB"
26902
26924
  ], a = Math.min(Math.floor(Math.log(t) / Math.log(1024)), l.length - 1), h = t / 1024 ** a, d = a === 0 ? 0 : r;
26903
26925
  return `${h.toFixed(d)} ${l[a]}`;
26904
- }, ra = /[̀-ͯ]/g, v3 = (t) => t.normalize("NFD").replace(ra, "").toLowerCase(), ca = (t) => {
26926
+ }, ca = /[̀-ͯ]/g, v3 = (t) => t.normalize("NFD").replace(ca, "").toLowerCase(), la = (t) => {
26905
26927
  let r = "";
26906
26928
  const l = [];
26907
26929
  for (let a = 0; a < t.length; a++) {
@@ -26918,7 +26940,7 @@ function sn(t, r) {
26918
26940
  if (!r || !t) return t;
26919
26941
  const l = v3(r);
26920
26942
  if (!l) return t;
26921
- const { folded: a, mapping: h } = ca(t), d = [];
26943
+ const { folded: a, mapping: h } = la(t), d = [];
26922
26944
  let o = 0;
26923
26945
  for (; o <= a.length - l.length; ) {
26924
26946
  const i = a.indexOf(l, o);
@@ -26955,7 +26977,7 @@ var hn = (t, r, l) => {
26955
26977
  } catch {
26956
26978
  return t.trim();
26957
26979
  }
26958
- }, la = /* @__PURE__ */ new Set([
26980
+ }, aa = /* @__PURE__ */ new Set([
26959
26981
  "gclid",
26960
26982
  "gclsrc",
26961
26983
  "gad_source",
@@ -27005,12 +27027,12 @@ var hn = (t, r, l) => {
27005
27027
  ]), gn = (t) => {
27006
27028
  try {
27007
27029
  const r = new URL(t.trim()), l = new URLSearchParams(r.search);
27008
- for (const a of [...l.keys()]) la.has(a) && l.delete(a);
27030
+ for (const a of [...l.keys()]) aa.has(a) && l.delete(a);
27009
27031
  return r.search = l.toString(), r.hash = "", r.toString().replace(/\/$/, "");
27010
27032
  } catch {
27011
27033
  return t.trim();
27012
27034
  }
27013
- }, aa = "1.0.41", wn = 300, ia = "ec59eec", na = "2026-08-11T17:52:09.065Z", fn = "300", oa = (t) => {
27035
+ }, ia = "1.0.43", wn = 306, na = "e0e93d4", oa = "2026-08-17T12:06:08.050Z", fn = "306", sa = (t) => {
27014
27036
  const r = document.getElementById("mb-version-toast");
27015
27037
  if (r) {
27016
27038
  r.remove();
@@ -27033,15 +27055,15 @@ var hn = (t, r, l) => {
27033
27055
  }, Cn = (t) => {
27034
27056
  const r = {
27035
27057
  ...t,
27036
- lib: aa,
27037
- libBuildNumber: 300,
27038
- libCommit: ia,
27039
- libBuildDate: na
27058
+ lib: ia,
27059
+ libBuildNumber: 306,
27060
+ libCommit: na,
27061
+ libBuildDate: oa
27040
27062
  };
27041
27063
  window.__VERSIONS__ = r, console.info(`%c build %c app ${r.app} (${r.commit}) - lib build ${r.libBuildNumber} - ${r.buildDate} `, "background:#222;color:#0f0;padding:2px 6px;border-radius:3px 0 0 3px;font-weight:bold", "background:#333;color:#eee;padding:2px 6px;border-radius:0 3px 3px 0"), window.addEventListener("keydown", (l) => {
27042
- l.ctrlKey && l.altKey && (l.key === "v" || l.key === "V") && (l.preventDefault(), oa(r));
27064
+ l.ctrlKey && l.altKey && (l.key === "v" || l.key === "V") && (l.preventDefault(), sa(r));
27043
27065
  });
27044
- }, sa = /^[A-HJ-NPR-Z0-9]+$/, ha = {
27066
+ }, ha = /^[A-HJ-NPR-Z0-9]+$/, da = {
27045
27067
  A: 1,
27046
27068
  B: 2,
27047
27069
  C: 3,
@@ -27065,7 +27087,7 @@ var hn = (t, r, l) => {
27065
27087
  X: 7,
27066
27088
  Y: 8,
27067
27089
  Z: 9
27068
- }, da = [
27090
+ }, ma = [
27069
27091
  8,
27070
27092
  7,
27071
27093
  6,
@@ -27083,12 +27105,12 @@ var hn = (t, r, l) => {
27083
27105
  4,
27084
27106
  3,
27085
27107
  2
27086
- ], ma = /* @__PURE__ */ new Set("ABCDEFGHJKLMNPRSTVWXY123456789");
27087
- function pa(t) {
27088
- return /\d/.test(t) ? parseInt(t, 10) : ha[t] ?? 0;
27089
- }
27108
+ ], pa = /* @__PURE__ */ new Set("ABCDEFGHJKLMNPRSTVWXY123456789");
27090
27109
  function va(t) {
27091
- const r = t.split("").reduce((a, h, d) => a + pa(h) * da[d], 0) % 11, l = r === 10 ? "X" : String(r);
27110
+ return /\d/.test(t) ? parseInt(t, 10) : da[t] ?? 0;
27111
+ }
27112
+ function ua(t) {
27113
+ const r = t.split("").reduce((a, h, d) => a + va(h) * ma[d], 0) % 11, l = r === 10 ? "X" : String(r);
27092
27114
  return t[8] === l;
27093
27115
  }
27094
27116
  function yn(t) {
@@ -27096,7 +27118,7 @@ function yn(t) {
27096
27118
  return r.length !== 17 ? {
27097
27119
  valid: !1,
27098
27120
  error: "VIN must be exactly 17 characters"
27099
- } : sa.test(r) ? ma.has(r[9]) ? va(r) ? { valid: !0 } : {
27121
+ } : ha.test(r) ? pa.has(r[9]) ? ua(r) ? { valid: !0 } : {
27100
27122
  valid: !1,
27101
27123
  error: "VIN checksum is invalid"
27102
27124
  } : {
@@ -27111,101 +27133,101 @@ export {
27111
27133
  yr as ADULT_RANGES,
27112
27134
  Vr as APP_DATE_FORMAT,
27113
27135
  Nr as APP_DATE_TIME_FORMAT,
27114
- fa as Accordion,
27115
- Ca as AlertDialog,
27136
+ Ca as Accordion,
27137
+ ya as AlertDialog,
27116
27138
  D2 as AppHeader,
27117
27139
  x0 as AppPersistenceStorage,
27118
27140
  t3 as AuthContext,
27119
27141
  en as AuthLogin,
27120
27142
  Qi as AuthProvider,
27121
- ya as AvatarInitials,
27122
- xa as BMI,
27123
- ba as Badge,
27124
- Ma as Banner,
27125
- ka as Breadcrumb,
27126
- _a as BulkActionBar,
27143
+ ba as AvatarInitials,
27144
+ ka as BMI,
27145
+ Ma as Badge,
27146
+ xa as Banner,
27147
+ _a as Breadcrumb,
27148
+ La as BulkActionBar,
27127
27149
  T as Button,
27128
27150
  R0 as Calendar,
27129
- Da as CalendarHeatmap,
27151
+ Ta as CalendarHeatmap,
27130
27152
  I2 as Card,
27131
27153
  Ji as ChangePasswordModal,
27132
27154
  c0 as Checkbox,
27133
27155
  d0 as Chip,
27134
- Ta as CollapsibleSection,
27135
- Ia as ColorPicker,
27136
- Ga as CommandPalette,
27137
- Za as Confetti,
27138
- Pa as ConfirmDialog,
27156
+ Ia as CollapsibleSection,
27157
+ Ga as ColorPicker,
27158
+ Za as CommandPalette,
27159
+ Pa as Confetti,
27160
+ ja as ConfirmDialog,
27139
27161
  Fr as ConfirmPopover,
27140
27162
  Or as ContextMenu,
27141
- qa as ControlPanel,
27142
- Oa as ControlPanelProvider,
27143
- Xa as CopyButton,
27144
- Ka as CountryWithFlag,
27145
- Ja as DataView,
27163
+ Xa as ControlPanel,
27164
+ Ya as ControlPanelProvider,
27165
+ Ka as CopyButton,
27166
+ Qa as CountryWithFlag,
27167
+ ei as DataView,
27146
27168
  Kr as DatePicker,
27147
- ei as DateRangePicker,
27148
- ti as DiffViewer,
27169
+ ti as DateRangePicker,
27170
+ ri as DiffViewer,
27149
27171
  Y2 as Drawer,
27150
27172
  V0 as Dropdown,
27151
- ri as EmojiPicker,
27173
+ ci as EmojiPicker,
27152
27174
  r0 as EmptyState,
27153
- ci as ErrorBoundary,
27154
- li as FileDropzone,
27155
- pc as Flag,
27156
- ai as FloatButton,
27157
- ii as FolderBrowserModal,
27158
- P as Icon,
27159
- ni as InfiniteScroll,
27175
+ li as ErrorBoundary,
27176
+ ai as FileDropzone,
27177
+ uc as Flag,
27178
+ ii as FloatButton,
27179
+ ni as FolderBrowserModal,
27180
+ G as Icon,
27181
+ oi as InfiniteScroll,
27160
27182
  Jr as InputDate,
27161
- oi as InputEmail,
27162
- si as InputFile,
27163
- el as InputMask,
27164
- hi as InputMaskPresets,
27183
+ si as InputEmail,
27184
+ hi as InputFile,
27185
+ rl as InputMask,
27186
+ di as InputMaskPresets,
27165
27187
  A1 as InputNumber,
27166
27188
  u0 as InputPassword,
27167
- cl as InputPhone,
27189
+ al as InputPhone,
27168
27190
  l0 as InputSearch,
27169
27191
  V1 as InputText,
27170
- di as InputTextarea,
27171
- mi as InputTime,
27172
- pi as InputUrl,
27173
- vi as JourneyWizard,
27174
- na as LIB_BUILD_DATE,
27192
+ mi as InputTextarea,
27193
+ pi as InputTime,
27194
+ vi as InputUrl,
27195
+ ui as JourneyWizard,
27196
+ oa as LIB_BUILD_DATE,
27175
27197
  fn as LIB_BUILD_ID,
27176
27198
  wn as LIB_BUILD_NUMBER,
27177
- ia as LIB_COMMIT,
27178
- aa as LIB_VERSION,
27179
- ui as List,
27199
+ na as LIB_COMMIT,
27200
+ ia as LIB_VERSION,
27201
+ gi as List,
27180
27202
  q2 as Loading,
27181
- il as MenuHamburger,
27203
+ ol as MenuHamburger,
27182
27204
  cn as MfaSetupModal,
27183
- Hc as MiniSort,
27184
- wi as MiniStatsCard,
27185
- gi as Minimap,
27205
+ Rc as MiniSort,
27206
+ fi as MiniStatsCard,
27207
+ wi as Minimap,
27186
27208
  W1 as Modal,
27187
- fi as NavBar,
27188
- nl as NotificationPanel,
27209
+ Ci as NavBar,
27210
+ sl as NotificationPanel,
27189
27211
  Cr as PEDIATRIC_THRESHOLDS,
27190
27212
  f2 as Pagination,
27191
- Ci as PieChart,
27213
+ yi as PieChart,
27192
27214
  G2 as Popover,
27193
- Mi as ProgressBar,
27194
- xi as ProgressRing,
27195
- ki as QuantitySelector,
27196
- _i as QuickAdd,
27197
- Li as QuickNumberUpdate,
27198
- zi as QuickOptionUpdate,
27199
- pl as Radio,
27215
+ xi as ProgressBar,
27216
+ ki as ProgressRing,
27217
+ _i as QuantitySelector,
27218
+ Li as QuickAdd,
27219
+ zi as QuickNumberUpdate,
27220
+ Vi as QuickOptionUpdate,
27221
+ ul as Radio,
27200
27222
  tc as Rating,
27201
- Ni as RichTextEditor,
27202
- Hi as ScrollToTop,
27223
+ Hi as RichTextEditor,
27224
+ Si as ScrollToTop,
27203
27225
  h0 as Separator,
27204
- Bi as Sidebar,
27205
- Ri as SidebarProvider,
27206
- Ai as SignalStrength,
27207
- $i as Skeleton,
27208
- Ei as Slider,
27226
+ Ai as Sidebar,
27227
+ Bi as SidebarProvider,
27228
+ $i as SignalStrength,
27229
+ Ei as Skeleton,
27230
+ sc as Slider,
27209
27231
  Di as SplitPanel,
27210
27232
  Ti as StackedBar,
27211
27233
  Ii as Stats,
@@ -27216,13 +27238,13 @@ export {
27216
27238
  Pi as ThemeProvider,
27217
27239
  ji as ThemeSettings,
27218
27240
  Wi as Timeline,
27219
- _c as TimelineMarkerDot,
27220
- Qa as TimelineMarkers,
27221
- Lc as TimelineMobileSeparator,
27241
+ zc as TimelineMarkerDot,
27242
+ Ja as TimelineMarkers,
27243
+ Vc as TimelineMobileSeparator,
27222
27244
  Ui as TipsOfTheDay,
27223
27245
  a2 as Toast,
27224
- Wa as ToastContainer,
27225
- Ua as ToastProvider,
27246
+ Ua as ToastContainer,
27247
+ Fa as ToastProvider,
27226
27248
  Fi as ToggleButtons,
27227
27249
  N2 as ToggleSwitch,
27228
27250
  Oi as Toolbar,
@@ -27231,52 +27253,52 @@ export {
27231
27253
  qi as Tree,
27232
27254
  Xi as VirtualList,
27233
27255
  Ki as WHtR,
27234
- $a as addDays,
27256
+ Ea as addDays,
27235
27257
  k0 as addMonths,
27236
27258
  y0 as breakpoints,
27237
27259
  Mr as calculateBMI,
27238
27260
  l2 as calculateTimelineMarkers,
27239
- vl as ensureHtml,
27261
+ gl as ensureHtml,
27240
27262
  vn as extractDomainFromUrl,
27241
27263
  g2 as foldDiacritics,
27242
27264
  E0 as format2Digits,
27243
- Ha as formatAppDate,
27244
- Sa as formatAppDateTime,
27265
+ Sa as formatAppDate,
27266
+ Ra as formatAppDateTime,
27245
27267
  nn as formatBigNumber,
27246
27268
  on as formatBytes,
27247
27269
  X1 as formatDate,
27248
- Va as formatDateLocale,
27249
- La as formatDuration,
27270
+ Na as formatDateLocale,
27271
+ za as formatDuration,
27250
27272
  an as formatMoney,
27251
- Ra as formatRelativeDuration,
27252
- Ea as formatRelativeTime,
27253
- za as formatSecondsToMediaTime,
27254
- Ya as fuzzyMatch,
27255
- Aa as getDaysInMonth,
27273
+ Ba as formatRelativeDuration,
27274
+ Da as formatRelativeTime,
27275
+ Va as formatSecondsToMediaTime,
27276
+ qa as fuzzyMatch,
27277
+ $a as getDaysInMonth,
27256
27278
  kr as getIndicatorColor,
27257
27279
  xr as getIndicatorPosition,
27258
27280
  Hr as getMonthMatrix,
27259
27281
  br as getPediatricRanges,
27260
- yi as getPercent,
27261
- bi as getPercentsOf2Numbers,
27282
+ bi as getPercent,
27283
+ Mi as getPercentsOf2Numbers,
27262
27284
  _r as getRangeLabel,
27263
- vc as getResultsCount,
27264
- $l as getThemeConfig,
27265
- Na as getTodayDateString,
27285
+ gc as getResultsCount,
27286
+ El as getThemeConfig,
27287
+ Ha as getTodayDateString,
27266
27288
  sn as highlightText,
27267
- gl as htmlToMarkdown,
27268
- ul as htmlToPlainText,
27289
+ fl as htmlToMarkdown,
27290
+ wl as htmlToPlainText,
27269
27291
  Cn as initVersionInfo,
27270
27292
  Br as isAfter,
27271
27293
  j0 as isBefore,
27272
- Ba as isDateInRange,
27294
+ Aa as isDateInRange,
27273
27295
  q1 as isSameDay,
27274
27296
  Sr as isToday,
27275
27297
  Rr as isWeekend,
27276
27298
  hn as matchStringsByLogicalOperator,
27277
27299
  mn as shortenText,
27278
27300
  dn as slugify,
27279
- Vi as splitHtmlIntoSteps,
27301
+ Ni as splitHtmlIntoSteps,
27280
27302
  un as stripQueryString,
27281
27303
  gn as stripTrackingParams,
27282
27304
  pn as truncateText,
@@ -27285,12 +27307,12 @@ export {
27285
27307
  B2 as useBodyScrollLock,
27286
27308
  g0 as useBreakpoint,
27287
27309
  E2 as useComponentEffect,
27288
- Fa as useControlPanel,
27310
+ Oa as useControlPanel,
27289
27311
  c2 as useControlPanelContext,
27290
- ja as usePopover,
27291
- Si as useSidebar,
27312
+ Wa as usePopover,
27313
+ Ri as useSidebar,
27292
27314
  $2 as useTheme,
27293
27315
  Yr as useToast,
27294
- Xc as validateEmail,
27316
+ Qc as validateEmail,
27295
27317
  yn as validateVin
27296
27318
  };