@memobit/libs 1.0.47 → 1.0.48

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
@@ -9981,48 +9981,48 @@ var L3 = /* @__PURE__ */ c("svg", {
9981
9981
  storm: ot,
9982
9982
  uranus: qt,
9983
9983
  venus: er
9984
- }, P = ({ className: t = "", fade: r, fadeOnHover: l, name: a, pulse: h, pulseOnHover: d, size: o, spin: m, spinOnHover: i, variant: n }) => /* @__PURE__ */ e("span", {
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", {
9985
9985
  className: [
9986
9986
  "icon",
9987
9987
  o ? `icon--${o}` : "",
9988
- n && n !== "default" ? `icon--${n}` : "",
9988
+ i && i !== "default" ? `icon--${i}` : "",
9989
9989
  m ? "icon--spin" : "",
9990
9990
  r ? "icon--fade" : "",
9991
9991
  h ? "icon--pulse" : "",
9992
- i ? "icon--spin-hover" : "",
9992
+ n ? "icon--spin-hover" : "",
9993
9993
  l ? "icon--fade-hover" : "",
9994
9994
  d ? "icon--pulse-hover" : "",
9995
9995
  t
9996
9996
  ].filter(Boolean).join(" "),
9997
9997
  children: fr[a]
9998
9998
  }), Ma = ({ items: t, allowMultiple: r = !1, defaultExpanded: l = [], onChange: a, className: h = "" }) => {
9999
- const [d, o] = z(l), m = (i) => {
10000
- if (t.find((s) => s.id === i)?.disabled) return;
10001
- let n;
10002
- r ? n = d.includes(i) ? d.filter((s) => s !== i) : [...d, i] : n = d.includes(i) ? [] : [i], o(n), a?.(n);
9999
+ const [d, o] = z(l), m = (n) => {
10000
+ if (t.find((s) => s.id === n)?.disabled) return;
10001
+ let i;
10002
+ r ? i = d.includes(n) ? d.filter((s) => s !== n) : [...d, n] : i = d.includes(n) ? [] : [n], o(i), a?.(i);
10003
10003
  };
10004
10004
  return /* @__PURE__ */ e("div", {
10005
10005
  className: `accordion ${h}`,
10006
- children: t.map((i) => {
10007
- const n = d.includes(i.id);
10006
+ children: t.map((n) => {
10007
+ const i = d.includes(n.id);
10008
10008
  return /* @__PURE__ */ e(Cr, {
10009
- id: i.id,
10010
- title: i.title,
10011
- icon: i.icon,
10012
- content: i.content,
10013
- isExpanded: n,
10014
- disabled: i.disabled,
10009
+ id: n.id,
10010
+ title: n.title,
10011
+ icon: n.icon,
10012
+ content: n.content,
10013
+ isExpanded: i,
10014
+ disabled: n.disabled,
10015
10015
  onToggle: m
10016
- }, i.id);
10016
+ }, n.id);
10017
10017
  })
10018
10018
  });
10019
10019
  }, Cr = ({ id: t, title: r, icon: l, content: a, isExpanded: h, disabled: d = !1, onToggle: o }) => {
10020
- const m = K(null), i = K(!0);
10020
+ const m = K(null), n = K(!0);
10021
10021
  return F(() => {
10022
10022
  const s = m.current;
10023
10023
  if (s) {
10024
- if (i.current) {
10025
- i.current = !1, s.style.maxHeight = h ? "none" : "0";
10024
+ if (n.current) {
10025
+ n.current = !1, s.style.maxHeight = h ? "none" : "0";
10026
10026
  return;
10027
10027
  }
10028
10028
  if (h) {
@@ -10070,8 +10070,8 @@ var L3 = /* @__PURE__ */ c("svg", {
10070
10070
  F(() => {
10071
10071
  const l = () => {
10072
10072
  if (!r.current) return;
10073
- const { overflow: a, position: h, top: d, left: o, right: m, width: i, scrollY: n } = r.current;
10074
- document.body.style.overflow = a, document.body.style.position = h, document.body.style.top = d, document.body.style.left = o, document.body.style.right = m, document.body.style.width = i, window.scrollTo(0, n), r.current = null;
10073
+ const { overflow: a, position: h, top: d, left: o, right: m, width: n, scrollY: i } = r.current;
10074
+ document.body.style.overflow = a, document.body.style.position = h, document.body.style.top = d, document.body.style.left = o, document.body.style.right = m, document.body.style.width = n, window.scrollTo(0, i), r.current = null;
10075
10075
  };
10076
10076
  if (t) {
10077
10077
  if (!r.current) {
@@ -10098,11 +10098,11 @@ var L3 = /* @__PURE__ */ c("svg", {
10098
10098
  }, T2 = (t) => {
10099
10099
  const { effects: r } = D2();
10100
10100
  return r.effect && r.components.includes(t) ? r.effect : "";
10101
- }, T = g1.forwardRef(({ borders: t = "rounded", children: r, className: l, disabled: a = !1, fullWidth: h = !1, icon: d, iconVariant: o = "default", loading: m = !1, onClick: i, emojiIcon: n, size: s = "medium", style: p, sufixIcon: u, title: g, type: v = "button", variant: w = "default" }, f) => /* @__PURE__ */ e("button", {
10101
+ }, T = g1.forwardRef(({ borders: t = "rounded", children: r, className: l, disabled: a = !1, fullWidth: h = !1, icon: d, iconVariant: o = "default", loading: m = !1, onClick: n, emojiIcon: i, size: s = "medium", style: p, sufixIcon: u, title: g, type: v = "button", variant: w = "default" }, f) => /* @__PURE__ */ e("button", {
10102
10102
  ref: f,
10103
10103
  className: `button button-${s} button-${w} ${t === "rounded" ? "button-rounded" : ""} ${h ? "is-full-width" : ""} ${l || ""}`,
10104
10104
  disabled: a,
10105
- onClick: i,
10105
+ onClick: n,
10106
10106
  style: p,
10107
10107
  title: g,
10108
10108
  type: v,
@@ -10112,7 +10112,7 @@ var L3 = /* @__PURE__ */ c("svg", {
10112
10112
  name: d,
10113
10113
  variant: o
10114
10114
  }) : d),
10115
- n && /* @__PURE__ */ e("span", { children: n }),
10115
+ i && /* @__PURE__ */ e("span", { children: i }),
10116
10116
  r && /* @__PURE__ */ e("span", { children: r }),
10117
10117
  u !== void 0 && (typeof u == "string" ? /* @__PURE__ */ e(P, {
10118
10118
  size: "lg",
@@ -10123,7 +10123,7 @@ var L3 = /* @__PURE__ */ c("svg", {
10123
10123
  }));
10124
10124
  T.displayName = "Button";
10125
10125
  var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled: h = !1, className: d = "", maxWidth: o, maxHeight: m }) => {
10126
- const [i, n] = z(!1), [s, p] = z({
10126
+ const [n, i] = z(!1), [s, p] = z({
10127
10127
  top: 0,
10128
10128
  left: 0
10129
10129
  }), u = K(null), g = K(null), v = K(null), w = K(null), f = K(!1), y = m !== void 0, b = y ? 150 : 0, C = () => {
@@ -10151,30 +10151,30 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
10151
10151
  });
10152
10152
  }, x = () => {
10153
10153
  h || f.current || (g.current && (clearTimeout(g.current), g.current = null), u.current = setTimeout(() => {
10154
- n(!0);
10154
+ i(!0);
10155
10155
  }, l));
10156
10156
  }, k = () => {
10157
- f.current || (u.current && clearTimeout(u.current), b > 0 ? g.current = setTimeout(() => n(!1), b) : n(!1));
10157
+ f.current || (u.current && clearTimeout(u.current), b > 0 ? g.current = setTimeout(() => i(!1), b) : i(!1));
10158
10158
  }, H = (V) => {
10159
- V.pointerType !== "touch" && V.pointerType !== "pen" || h || (f.current = !0, u.current && (clearTimeout(u.current), u.current = null), V.stopPropagation(), n((S) => !S));
10159
+ V.pointerType !== "touch" && V.pointerType !== "pen" || h || (f.current = !0, u.current && (clearTimeout(u.current), u.current = null), V.stopPropagation(), i((S) => !S));
10160
10160
  };
10161
- F(() => (i && (C(), window.addEventListener("scroll", C, !0), window.addEventListener("resize", C)), () => {
10161
+ F(() => (n && (C(), window.addEventListener("scroll", C, !0), window.addEventListener("resize", C)), () => {
10162
10162
  window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C);
10163
- }), [i]), F(() => {
10164
- if (!i) return;
10163
+ }), [n]), F(() => {
10164
+ if (!n) return;
10165
10165
  const V = (S) => {
10166
- v.current?.contains(S.target) || w.current?.contains(S.target) || n(!1);
10166
+ v.current?.contains(S.target) || w.current?.contains(S.target) || i(!1);
10167
10167
  };
10168
10168
  return document.addEventListener("pointerdown", V), () => {
10169
10169
  document.removeEventListener("pointerdown", V), f.current = !1;
10170
10170
  };
10171
- }, [i]), F(() => () => {
10171
+ }, [n]), F(() => () => {
10172
10172
  u.current && clearTimeout(u.current), g.current && clearTimeout(g.current);
10173
10173
  }, []);
10174
10174
  const L = () => {
10175
10175
  y && g.current && (clearTimeout(g.current), g.current = null);
10176
10176
  }, M = () => {
10177
- y && (g.current = setTimeout(() => n(!1), b));
10177
+ y && (g.current = setTimeout(() => i(!1), b));
10178
10178
  };
10179
10179
  return /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("span", {
10180
10180
  ref: v,
@@ -10185,7 +10185,7 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
10185
10185
  onBlur: k,
10186
10186
  onPointerDown: H,
10187
10187
  children: a
10188
- }), i && t && K1(/* @__PURE__ */ c("div", {
10188
+ }), n && t && K1(/* @__PURE__ */ c("div", {
10189
10189
  ref: w,
10190
10190
  className: `tooltip tooltip--${r} ${y ? "tooltip--scrollable" : ""} ${d}`,
10191
10191
  style: {
@@ -10198,7 +10198,7 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
10198
10198
  onMouseLeave: M,
10199
10199
  children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${r}` })]
10200
10200
  }), document.body)] });
10201
- }, W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h, onOverlayClick: d, primary: o, secondary: m, size: i = "auto", tertiary: n, title: s, titleIcon: p, usePortal: u = !1 }) => {
10201
+ }, W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h, onOverlayClick: d, primary: o, secondary: m, size: n = "auto", tertiary: i, title: s, titleIcon: p, usePortal: u = !1 }) => {
10202
10202
  const g = T2("Modal");
10203
10203
  $2(l);
10204
10204
  const v = K(null), w = K(null);
@@ -10211,13 +10211,13 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
10211
10211
  };
10212
10212
  return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
10213
10213
  }, [l, h]), !l) return null;
10214
- const f = o || m || n, y = /* @__PURE__ */ e("div", {
10214
+ const f = o || m || i, y = /* @__PURE__ */ e("div", {
10215
10215
  ref: w,
10216
10216
  className: "modal-overlay",
10217
10217
  onClick: d,
10218
10218
  children: /* @__PURE__ */ c("div", {
10219
10219
  ref: v,
10220
- className: `modal modal--${i} ${r || ""} ${g}`,
10220
+ className: `modal modal--${n} ${r || ""} ${g}`,
10221
10221
  onClick: (b) => b.stopPropagation(),
10222
10222
  children: [
10223
10223
  /* @__PURE__ */ c("div", {
@@ -10244,12 +10244,12 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
10244
10244
  f && /* @__PURE__ */ c("div", {
10245
10245
  className: "modal__footer",
10246
10246
  children: [
10247
- n && /* @__PURE__ */ e(T, {
10248
- variant: n.variant || "default",
10249
- icon: n.icon,
10250
- onClick: n.onClick,
10251
- disabled: n.disabled,
10252
- children: n.text
10247
+ i && /* @__PURE__ */ e(T, {
10248
+ variant: i.variant || "default",
10249
+ icon: i.icon,
10250
+ onClick: i.onClick,
10251
+ disabled: i.disabled,
10252
+ children: i.text
10253
10253
  }),
10254
10254
  m && /* @__PURE__ */ e(T, {
10255
10255
  variant: m.variant || "default",
@@ -10289,7 +10289,7 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
10289
10289
  children: /* @__PURE__ */ e("p", { children: r })
10290
10290
  })
10291
10291
  }), h0 = ({ orientation: t = "horizontal", style: r = "solid", thickness: l = 1, spacing: a = 16, label: h, labelAlign: d = "center", className: o = "" }) => {
10292
- const m = `separator separator--${t} separator--${r} ${o}`, i = {
10292
+ const m = `separator separator--${t} separator--${r} ${o}`, n = {
10293
10293
  borderWidth: `${l}px`,
10294
10294
  ...t === "horizontal" ? {
10295
10295
  marginTop: `${a}px`,
@@ -10304,7 +10304,7 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
10304
10304
  children: [
10305
10305
  /* @__PURE__ */ e("div", {
10306
10306
  className: "separator__line",
10307
- style: i
10307
+ style: n
10308
10308
  }),
10309
10309
  /* @__PURE__ */ e("span", {
10310
10310
  className: "separator__label",
@@ -10312,12 +10312,12 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
10312
10312
  }),
10313
10313
  /* @__PURE__ */ e("div", {
10314
10314
  className: "separator__line",
10315
- style: i
10315
+ style: n
10316
10316
  })
10317
10317
  ]
10318
10318
  }) : /* @__PURE__ */ e("div", {
10319
10319
  className: m,
10320
- style: i
10320
+ style: n
10321
10321
  });
10322
10322
  }, I2 = ({ emoji: t, icon: r, svg: l, appName: a, heading: h, onClick: d, className: o = "", showSeparator: m = !0 }) => /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ c("div", {
10323
10323
  className: [
@@ -10419,9 +10419,9 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10419
10419
  })
10420
10420
  });
10421
10421
  }, _a = ({ variant: t = "default", children: r, className: l = "", size: a = "medium", customColor: h, isActive: d, onClick: o, onClear: m }) => {
10422
- const i = d !== void 0 ? d ? "badge--active" : "badge--inactive" : "", n = o ? "badge--clickable" : "", s = h ? "badge-variant--custom" : `badge-variant--${t}`, p = h ? { "--badge-custom-color": h } : void 0;
10422
+ 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;
10423
10423
  return /* @__PURE__ */ c("span", {
10424
- className: `badge ${s} ${l} badge-size--${a} ${i} ${n}`,
10424
+ className: `badge ${s} ${l} badge-size--${a} ${n} ${i}`,
10425
10425
  style: p,
10426
10426
  onClick: o,
10427
10427
  tabIndex: o ? 0 : void 0,
@@ -10440,14 +10440,14 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10440
10440
  })
10441
10441
  })]
10442
10442
  });
10443
- }, La = ({ action: t, secondaryAction: r, className: l = "", description: a, dismissLabel: h = "Dismiss", onDismiss: d, showDismiss: o = !0, title: m, variant: i = "default" }) => {
10444
- const [n, s] = z(!1), p = t?.variant || (i === "default" ? "default" : i);
10445
- if (n) return null;
10443
+ }, La = ({ action: t, secondaryAction: r, className: l = "", description: a, dismissLabel: h = "Dismiss", onDismiss: d, showDismiss: o = !0, title: m, variant: n = "default" }) => {
10444
+ const [i, s] = z(!1), p = t?.variant || (n === "default" ? "default" : n);
10445
+ if (i) return null;
10446
10446
  const u = () => {
10447
10447
  s(!0), d?.();
10448
10448
  };
10449
10449
  return /* @__PURE__ */ c("section", {
10450
- className: `banner banner--${i} ${l}`,
10450
+ className: `banner banner--${n} ${l}`,
10451
10451
  children: [/* @__PURE__ */ c("div", {
10452
10452
  className: "banner__content",
10453
10453
  children: [/* @__PURE__ */ c("div", {
@@ -10742,7 +10742,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10742
10742
  for (const l of r) if (t <= l.max) return l.color;
10743
10743
  return r[r.length - 1].color;
10744
10744
  }, Vr = (t, r, l) => r === 0 ? `<${t.max}` : r === l - 1 ? `>${t.min}` : `${t.min}–${t.max}`, za = ({ weight: t, height: r, age: l, sex: a, isSimplified: h = !1, showLabels: d = !0, showIndicator: o = !0 }) => {
10745
- const m = _r(t, r), i = l !== void 0 && a !== void 0 && l >= 2 && l <= 17 ? kr(...Mr[a][l]) : xr, n = Lr(m, i), s = zr(m, i);
10745
+ const m = _r(t, r), n = l !== void 0 && a !== void 0 && l >= 2 && l <= 17 ? kr(...Mr[a][l]) : xr, i = Lr(m, n), s = zr(m, n);
10746
10746
  return /* @__PURE__ */ c("div", {
10747
10747
  className: `horizontal-bar-container ${h ? "horizontal-bar-container--is-simplified" : ""}`,
10748
10748
  children: [
@@ -10750,7 +10750,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10750
10750
  className: "indicator-section",
10751
10751
  children: /* @__PURE__ */ c("div", {
10752
10752
  className: "indicator-pointer",
10753
- style: { left: `${n}%` },
10753
+ style: { left: `${i}%` },
10754
10754
  children: [/* @__PURE__ */ e("div", {
10755
10755
  className: "indicator-value",
10756
10756
  style: { color: s },
@@ -10760,7 +10760,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10760
10760
  }),
10761
10761
  /* @__PURE__ */ e("div", {
10762
10762
  className: "horizontal-bar",
10763
- children: i.map((p, u) => /* @__PURE__ */ e("div", {
10763
+ children: n.map((p, u) => /* @__PURE__ */ e("div", {
10764
10764
  className: "bar-segment",
10765
10765
  style: {
10766
10766
  backgroundColor: p.color,
@@ -10768,13 +10768,13 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10768
10768
  },
10769
10769
  children: /* @__PURE__ */ e("div", {
10770
10770
  className: "range-text",
10771
- children: Vr(p, u, i.length)
10771
+ children: Vr(p, u, n.length)
10772
10772
  })
10773
10773
  }, u))
10774
10774
  }),
10775
10775
  d && /* @__PURE__ */ e("div", {
10776
10776
  className: "labels-row",
10777
- children: i.map((p, u) => /* @__PURE__ */ e("div", {
10777
+ children: n.map((p, u) => /* @__PURE__ */ e("div", {
10778
10778
  className: "label-segment",
10779
10779
  style: { width: `${p.percentage}%` },
10780
10780
  children: /* @__PURE__ */ e("div", {
@@ -10813,28 +10813,28 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10813
10813
  })
10814
10814
  })
10815
10815
  });
10816
- }, Nr = (t) => t.label ? `${t.label} ${t.done}/${t.total}` : `Running ${t.done}/${t.total}`, Na = ({ selectionCount: t, visible: r, label: l, progress: a, actions: h, onClear: d, clearLabel: o = "Clear", position: m = "bottom", className: i }) => r ?? t > 0 ? /* @__PURE__ */ c("div", {
10816
+ }, Nr = (t) => t.label ? `${t.label} ${t.done}/${t.total}` : `Running ${t.done}/${t.total}`, Na = ({ 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", {
10817
10817
  className: [
10818
10818
  "memobit-bulk-action-bar",
10819
10819
  `memobit-bulk-action-bar--${m}`,
10820
- i
10820
+ n
10821
10821
  ].filter(Boolean).join(" "),
10822
10822
  children: [/* @__PURE__ */ e("div", {
10823
10823
  className: "memobit-bulk-action-bar__label",
10824
10824
  children: a ? Nr(a) : l ?? `${t} selected`
10825
10825
  }), /* @__PURE__ */ c("div", {
10826
10826
  className: "memobit-bulk-action-bar__actions",
10827
- children: [h.map((n) => /* @__PURE__ */ e(T, {
10828
- disabled: n.disabled,
10829
- icon: n.icon,
10827
+ children: [h.map((i) => /* @__PURE__ */ e(T, {
10828
+ disabled: i.disabled,
10829
+ icon: i.icon,
10830
10830
  onClick: () => {
10831
- n.onClick();
10831
+ i.onClick();
10832
10832
  },
10833
10833
  size: "medium",
10834
- title: n.title,
10835
- variant: n.variant ?? "default",
10836
- children: n.label
10837
- }, n.key)), d && /* @__PURE__ */ e(T, {
10834
+ title: i.title,
10835
+ variant: i.variant ?? "default",
10836
+ children: i.label
10837
+ }, i.key)), d && /* @__PURE__ */ e(T, {
10838
10838
  disabled: a !== void 0,
10839
10839
  icon: "clear",
10840
10840
  onClick: d,
@@ -10865,8 +10865,8 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10865
10865
  "Nov",
10866
10866
  "Dec"
10867
10867
  ], X1 = (t, r) => {
10868
- const l = t.getFullYear(), a = t.getMonth(), h = String(a + 1).padStart(2, "0"), d = Hr[a], o = String(t.getDate()).padStart(2, "0"), m = String(t.getHours()).padStart(2, "0"), i = String(t.getMinutes()).padStart(2, "0"), n = String(t.getSeconds()).padStart(2, "0");
10869
- return r.replace("YYYY", String(l)).replace("MMM", d).replace("MM", h).replace("DD", o).replace("HH", m).replace("mm", i).replace("ss", n);
10868
+ const l = t.getFullYear(), a = t.getMonth(), h = String(a + 1).padStart(2, "0"), d = Hr[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");
10869
+ return r.replace("YYYY", String(l)).replace("MMM", d).replace("MM", h).replace("DD", o).replace("HH", m).replace("mm", n).replace("ss", i);
10870
10870
  }, Ra = (t) => {
10871
10871
  const [r, l, a] = t.split("-").map(Number);
10872
10872
  return new Date(r, l - 1, a).toLocaleDateString("en-US");
@@ -10891,13 +10891,13 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10891
10891
  l === 1 && (d = d === 0 ? 6 : d - 1);
10892
10892
  const o = [];
10893
10893
  let m = [];
10894
- const i = new Date(t, r, 0).getDate();
10895
- for (let n = d - 1; n >= 0; n--) m.push(new Date(t, r - 1, i - n));
10896
- for (let n = 1; n <= h; n++)
10897
- m.push(new Date(t, r, n)), m.length === 7 && (o.push(m), m = []);
10894
+ const n = new Date(t, r, 0).getDate();
10895
+ for (let i = d - 1; i >= 0; i--) m.push(new Date(t, r - 1, n - i));
10896
+ for (let i = 1; i <= h; i++)
10897
+ m.push(new Date(t, r, i)), m.length === 7 && (o.push(m), m = []);
10898
10898
  if (m.length > 0) {
10899
- const n = 7 - m.length;
10900
- for (let s = 1; s <= n; s++) m.push(new Date(t, r + 1, s));
10899
+ const i = 7 - m.length;
10900
+ for (let s = 1; s <= i; s++) m.push(new Date(t, r + 1, s));
10901
10901
  o.push(m);
10902
10902
  }
10903
10903
  return o;
@@ -10956,7 +10956,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
10956
10956
  "Fri",
10957
10957
  "Sat",
10958
10958
  "Sun"
10959
- ], R0 = ({ value: t, onChange: r, mode: l = "single", minDate: a, maxDate: h, disabledDates: d, firstDayOfWeek: o = 0, showToday: m = !0, yearOnly: i = !1, className: n = "", currentMonth: s, onMonthChange: p, showHeader: u = !0, rangeStart: g, onRangeStartChange: v }) => {
10959
+ ], R0 = ({ value: t, onChange: r, mode: l = "single", minDate: a, maxDate: h, disabledDates: d, firstDayOfWeek: o = 0, showToday: m = !0, yearOnly: n = !1, className: i = "", currentMonth: s, onMonthChange: p, showHeader: u = !0, rangeStart: g, onRangeStartChange: v }) => {
10960
10960
  const [w, f] = z(() => {
10961
10961
  if (t) {
10962
10962
  if (t instanceof Date) return new Date(t.getFullYear(), t.getMonth(), 1);
@@ -11108,7 +11108,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11108
11108
  }),
11109
11109
  /* @__PURE__ */ e("div", {
11110
11110
  className: "calendar__month-year",
11111
- children: i ? /* @__PURE__ */ e("span", {
11111
+ children: n ? /* @__PURE__ */ e("span", {
11112
11112
  className: "calendar__header-label",
11113
11113
  children: W0[L.getMonth()]
11114
11114
  }) : /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("button", {
@@ -11157,13 +11157,13 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11157
11157
  });
11158
11158
  };
11159
11159
  return /* @__PURE__ */ c("div", {
11160
- className: `calendar ${n}`,
11160
+ className: `calendar ${i}`,
11161
11161
  children: [
11162
11162
  u && I1(),
11163
11163
  y === "years" && r1(),
11164
11164
  y === "months" && s1(),
11165
11165
  y === "days" && /* @__PURE__ */ c(n1, { children: [
11166
- m && !i && /* @__PURE__ */ e("div", {
11166
+ m && !n && /* @__PURE__ */ e("div", {
11167
11167
  className: "calendar__today-section",
11168
11168
  children: /* @__PURE__ */ e("button", {
11169
11169
  type: "button",
@@ -11211,7 +11211,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11211
11211
  o.setHours(0, 0, 0, 0);
11212
11212
  const m = (o.getDay() + 6) % 7;
11213
11213
  o.setDate(o.getDate() - m);
11214
- const i = new Map(t.map((u) => [u.date, u.count])), n = [], s = new Date(o);
11214
+ const n = new Map(t.map((u) => [u.date, u.count])), i = [], s = new Date(o);
11215
11215
  for (; s <= d; ) {
11216
11216
  const u = [];
11217
11217
  for (let g = 0; g < 7; g++) {
@@ -11224,14 +11224,14 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11224
11224
  month: "short",
11225
11225
  day: "numeric"
11226
11226
  }),
11227
- count: i.get(v) ?? 0
11227
+ count: n.get(v) ?? 0
11228
11228
  });
11229
11229
  }
11230
11230
  s.setDate(s.getDate() + 1);
11231
11231
  }
11232
- n.push(u);
11232
+ i.push(u);
11233
11233
  }
11234
- const p = n.map((u) => {
11234
+ const p = i.map((u) => {
11235
11235
  const g = u.find((w) => w !== null);
11236
11236
  if (!g) return null;
11237
11237
  const v = /* @__PURE__ */ new Date(g.dateStr + "T00:00:00");
@@ -11252,7 +11252,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11252
11252
  children: [/* @__PURE__ */ e("div", {
11253
11253
  className: "calendar-heatmap__day-label",
11254
11254
  children: u
11255
- }), n.map((v, w) => {
11255
+ }), i.map((v, w) => {
11256
11256
  const f = v[g];
11257
11257
  return /* @__PURE__ */ e("div", {
11258
11258
  className: "calendar-heatmap__cell",
@@ -11279,15 +11279,15 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11279
11279
  })
11280
11280
  ]
11281
11281
  });
11282
- }, Z2 = ({ children: t, className: r, footerContent: l, icon: a, isCollapsed: h, isCollapsible: d, isFooterCollapsible: o = !0, isHighlighted: m, noPadding: i, onClick: n, title: s, variant: p = "default" }) => {
11282
+ }, Z2 = ({ children: t, className: r, footerContent: l, icon: a, isCollapsed: h, isCollapsible: d, isFooterCollapsible: o = !0, isHighlighted: m, noPadding: n, onClick: i, title: s, variant: p = "default" }) => {
11283
11283
  const [u, g] = z(h || !1), v = T2("Card");
11284
11284
  F(() => {
11285
11285
  typeof h == "boolean" && g(h);
11286
11286
  }, [h]);
11287
11287
  const w = p !== "default" ? `card-variant-${p}` : "";
11288
11288
  return /* @__PURE__ */ c("div", {
11289
- className: `card ${r || ""} ${i ? "no-padding" : ""} ${m ? "is-highlighted" : ""} ${w} ${n ? "is-clickable" : ""} ${v}`,
11290
- onClick: n,
11289
+ className: `card ${r || ""} ${n ? "no-padding" : ""} ${m ? "is-highlighted" : ""} ${w} ${i ? "is-clickable" : ""} ${v}`,
11290
+ onClick: i,
11291
11291
  children: [
11292
11292
  (s || d) && /* @__PURE__ */ c("h3", {
11293
11293
  className: `${u ? "card-content-hidden" : ""}`,
@@ -11317,21 +11317,21 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11317
11317
  ]
11318
11318
  });
11319
11319
  }, c0 = ({ checked: t = !1, onChange: r, label: l, icon: a, disabled: h = !1, id: d, indeterminate: o = !1 }) => {
11320
- const m = z0(), i = d || m, n = K(null);
11320
+ const m = z0(), n = d || m, i = K(null);
11321
11321
  return F(() => {
11322
- n.current && (n.current.indeterminate = o && !t);
11322
+ i.current && (i.current.indeterminate = o && !t);
11323
11323
  }, [o, t]), /* @__PURE__ */ c("div", {
11324
11324
  className: `checkbox-wrapper ${h ? "checkbox-wrapper--disabled" : ""}`,
11325
11325
  children: [/* @__PURE__ */ e("input", {
11326
11326
  type: "checkbox",
11327
- id: i,
11327
+ id: n,
11328
11328
  className: "checkbox-input",
11329
- ref: n,
11329
+ ref: i,
11330
11330
  checked: t,
11331
11331
  onChange: (s) => r?.(s.target.checked),
11332
11332
  disabled: h
11333
11333
  }), /* @__PURE__ */ c("label", {
11334
- htmlFor: i,
11334
+ htmlFor: n,
11335
11335
  className: "checkbox-label",
11336
11336
  children: [/* @__PURE__ */ e("span", { className: "checkbox-box" }), (a || l) && /* @__PURE__ */ c("span", {
11337
11337
  className: "checkbox-text",
@@ -11342,12 +11342,12 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11342
11342
  })]
11343
11343
  })]
11344
11344
  });
11345
- }, d0 = ({ children: t, className: r = "", color: l, count: a, disabled: h = !1, icon: d, onClick: o, selected: m = !1, size: i = "medium", title: n, type: s = "button", variant: p = "default" }) => /* @__PURE__ */ c("button", {
11346
- className: `chip chip--${i} ${l ? "chip--custom" : `chip--${p}`} ${m ? "chip--selected" : ""} ${r}`,
11345
+ }, d0 = ({ children: t, className: r = "", color: l, count: a, disabled: h = !1, icon: d, onClick: o, selected: m = !1, size: n = "medium", title: i, type: s = "button", variant: p = "default" }) => /* @__PURE__ */ c("button", {
11346
+ className: `chip chip--${n} ${l ? "chip--custom" : `chip--${p}`} ${m ? "chip--selected" : ""} ${r}`,
11347
11347
  disabled: h,
11348
11348
  onClick: o,
11349
11349
  style: l ? { "--chip-color": l } : void 0,
11350
- title: n,
11350
+ title: i,
11351
11351
  type: s,
11352
11352
  children: [
11353
11353
  l && /* @__PURE__ */ e("span", {
@@ -11364,7 +11364,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11364
11364
  children: a
11365
11365
  })
11366
11366
  ]
11367
- }), Pa = ({ children: t, className: r = "", defaultCollapsed: l = !1, icon: a, isCollapsed: h, onToggle: d, rightDetails: o, title: m, toggleAccent: i, toggleHighlight: n, toggleMiddleIcon: s, toggleSize: p, toggleSpaceBetween: u, toggleSwap: g, toggleTint: v = "plain", toggleVariant: w, withCard: f = !1 }) => {
11367
+ }), Pa = ({ 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 }) => {
11368
11368
  const [y, b] = z(l), C = h !== void 0, x = C ? h : y, k = () => {
11369
11369
  const L = !x;
11370
11370
  C || b(L), d?.(L);
@@ -11372,7 +11372,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11372
11372
  return /* @__PURE__ */ c("div", {
11373
11373
  className: `collapsible-section ${f ? "collapsible-section--with-card" : ""} ${r} ${x ? "collapsible-section__collapsed" : ""}`,
11374
11374
  children: [m && /* @__PURE__ */ e("div", {
11375
- className: `collapsible-section__header ${H ? "" : "collapsible-section__header--inline"} ${u ? "collapsible-section__header--space-between" : ""} ${g ? "collapsible-section__header--swap" : ""} ${n ? "collapsible-section__header--highlight" : ""} ${i ? "collapsible-section__header--accent" : ""} ${p ? `collapsible-section__header--size-${p}` : ""} ${w ? `collapsible-section__header--variant-${w}` : ""} ${v !== "plain" ? `collapsible-section__header--tint-${v}` : ""}`,
11375
+ className: `collapsible-section__header ${H ? "" : "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}` : ""}`,
11376
11376
  onClick: H ? k : void 0,
11377
11377
  children: H ? /* @__PURE__ */ c(n1, { children: [
11378
11378
  /* @__PURE__ */ c("div", {
@@ -11423,7 +11423,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11423
11423
  children: t
11424
11424
  })]
11425
11425
  });
11426
- }, A1 = z1(({ autoComplete: t = "on", autoFocus: r, disabled: l, error: a, hideNativeControls: h, highlighted: d, id: o, label: m, onChange: i, onClick: n, onKeyDown: s, required: p, success: u, value: g, min: v, max: w, placeholder: f, step: y }, b) => {
11426
+ }, A1 = z1(({ autoComplete: t = "on", autoFocus: r, disabled: l, error: a, hideNativeControls: h, highlighted: d, id: o, label: m, onChange: n, onClick: i, onKeyDown: s, required: p, success: u, value: g, min: v, max: w, placeholder: f, step: y }, b) => {
11427
11427
  const C = (k) => {
11428
11428
  if (k === void 0) return;
11429
11429
  let H = k;
@@ -11451,11 +11451,11 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11451
11451
  onBlur: () => {
11452
11452
  if (g !== void 0) {
11453
11453
  const k = C(g);
11454
- k !== g && i?.(k);
11454
+ k !== g && n?.(k);
11455
11455
  }
11456
11456
  },
11457
- onChange: (k) => i?.(k.target.value ? Number(k.target.value) : void 0),
11458
- onClick: n,
11457
+ onChange: (k) => n?.(k.target.value ? Number(k.target.value) : void 0),
11458
+ onClick: i,
11459
11459
  onKeyDown: (k) => {
11460
11460
  (k.key === "e" || k.key === "E") && k.preventDefault(), s?.(k);
11461
11461
  },
@@ -11475,7 +11475,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11475
11475
  })
11476
11476
  ]
11477
11477
  });
11478
- }), V1 = z1(({ autoComplete: t = "on", autoFocus: r, disabled: l, error: a, highlighted: h, id: d, label: o, maxLength: m, onBlur: i, onChange: n, onClick: s, onKeyDown: p, onKeyUp: u, placeholder: g, readOnly: v = !1, required: w = !1, success: f, value: y }, b) => /* @__PURE__ */ c("div", {
11478
+ }), V1 = z1(({ autoComplete: t = "on", autoFocus: r, disabled: l, error: a, highlighted: h, id: d, label: o, maxLength: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, placeholder: g, readOnly: v = !1, required: w = !1, success: f, value: y }, b) => /* @__PURE__ */ c("div", {
11479
11479
  className: `input-text-wrapper${h ? " input-text-highlighted" : ""}`,
11480
11480
  children: [
11481
11481
  o && /* @__PURE__ */ c("label", {
@@ -11497,8 +11497,8 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11497
11497
  placeholder: g,
11498
11498
  ref: b,
11499
11499
  value: y,
11500
- onBlur: i,
11501
- onChange: (C) => n?.(C.target.value),
11500
+ onBlur: n,
11501
+ onChange: (C) => i?.(C.target.value),
11502
11502
  onClick: s,
11503
11503
  onKeyDown: p,
11504
11504
  onKeyUp: u,
@@ -11529,38 +11529,38 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11529
11529
  l
11530
11530
  ].map((a) => s0(Math.round(a), 0, 255).toString(16).padStart(2, "0")).join("")}`, j1 = ({ r: t, g: r, b: l }) => {
11531
11531
  const a = t / 255, h = r / 255, d = l / 255, o = Math.max(a, h, d), m = o - Math.min(a, h, d);
11532
- let i = 0;
11533
- m !== 0 && (o === a ? i = (h - d) / m % 6 : o === h ? i = (d - a) / m + 2 : i = (a - h) / m + 4, i = Math.round(i * 60), i < 0 && (i += 360));
11534
- const n = o === 0 ? 0 : m / o, s = o;
11532
+ let n = 0;
11533
+ m !== 0 && (o === a ? n = (h - d) / m % 6 : o === h ? n = (d - a) / m + 2 : n = (a - h) / m + 4, n = Math.round(n * 60), n < 0 && (n += 360));
11534
+ const i = o === 0 ? 0 : m / o, s = o;
11535
11535
  return {
11536
- h: i,
11537
- s: Math.round(n * 100),
11536
+ h: n,
11537
+ s: Math.round(i * 100),
11538
11538
  v: Math.round(s * 100)
11539
11539
  };
11540
11540
  }, v2 = ({ h: t, s: r, v: l }) => {
11541
11541
  const a = r / 100, h = l / 100, d = h * a, o = d * (1 - Math.abs(t / 60 % 2 - 1)), m = h - d;
11542
- let i = 0, n = 0, s = 0;
11543
- return t < 60 ? (i = d, n = o) : t < 120 ? (i = o, n = d) : t < 180 ? (n = d, s = o) : t < 240 ? (n = o, s = d) : t < 300 ? (i = o, s = d) : (i = d, s = o), {
11544
- r: Math.round((i + m) * 255),
11545
- g: Math.round((n + m) * 255),
11542
+ let n = 0, i = 0, s = 0;
11543
+ return t < 60 ? (n = d, i = o) : t < 120 ? (n = o, i = d) : t < 180 ? (i = d, s = o) : t < 240 ? (i = o, s = d) : t < 300 ? (n = o, s = d) : (n = d, s = o), {
11544
+ r: Math.round((n + m) * 255),
11545
+ g: Math.round((i + m) * 255),
11546
11546
  b: Math.round((s + m) * 255)
11547
11547
  };
11548
11548
  }, Pr = ({ r: t, g: r, b: l }) => {
11549
- const a = t / 255, h = r / 255, d = l / 255, o = Math.max(a, h, d), m = Math.min(a, h, d), i = o - m;
11550
- let n = 0;
11551
- i !== 0 && (o === a ? n = (h - d) / i % 6 : o === h ? n = (d - a) / i + 2 : n = (a - h) / i + 4, n = Math.round(n * 60), n < 0 && (n += 360));
11552
- const s = (o + m) / 2, p = i === 0 ? 0 : i / (1 - Math.abs(2 * s - 1));
11549
+ const a = t / 255, h = r / 255, d = l / 255, o = Math.max(a, h, d), m = Math.min(a, h, d), n = o - m;
11550
+ let i = 0;
11551
+ n !== 0 && (o === a ? i = (h - d) / n % 6 : o === h ? i = (d - a) / n + 2 : i = (a - h) / n + 4, i = Math.round(i * 60), i < 0 && (i += 360));
11552
+ const s = (o + m) / 2, p = n === 0 ? 0 : n / (1 - Math.abs(2 * s - 1));
11553
11553
  return {
11554
- h: n,
11554
+ h: i,
11555
11555
  s: Math.round(p * 100),
11556
11556
  l: Math.round(s * 100)
11557
11557
  };
11558
11558
  }, F0 = ({ h: t, s: r, l }) => {
11559
11559
  const a = r / 100, h = l / 100, d = (1 - Math.abs(2 * h - 1)) * a, o = d * (1 - Math.abs(t / 60 % 2 - 1)), m = h - d / 2;
11560
- let i = 0, n = 0, s = 0;
11561
- return t < 60 ? (i = d, n = o) : t < 120 ? (i = o, n = d) : t < 180 ? (n = d, s = o) : t < 240 ? (n = o, s = d) : t < 300 ? (i = o, s = d) : (i = d, s = o), {
11562
- r: Math.round((i + m) * 255),
11563
- g: Math.round((n + m) * 255),
11560
+ let n = 0, i = 0, s = 0;
11561
+ return t < 60 ? (n = d, i = o) : t < 120 ? (n = o, i = d) : t < 180 ? (i = d, s = o) : t < 240 ? (i = o, s = d) : t < 300 ? (n = o, s = d) : (n = d, s = o), {
11562
+ r: Math.round((n + m) * 255),
11563
+ g: Math.round((i + m) * 255),
11564
11564
  b: Math.round((s + m) * 255)
11565
11565
  };
11566
11566
  }, ja = ({ value: t = "#4e79a7", onChange: r }) => {
@@ -11585,7 +11585,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11585
11585
  d(v);
11586
11586
  const w = p2(v2(v));
11587
11587
  r?.(w);
11588
- }, i = (g) => {
11588
+ }, n = (g) => {
11589
11589
  const v = o.current?.getBoundingClientRect();
11590
11590
  if (!v) return;
11591
11591
  const w = s0(g.clientX - v.left, 0, v.width), f = s0(g.clientY - v.top, 0, v.height), y = Math.round(w / v.width * 100), b = Math.round(100 - f / v.height * 100);
@@ -11594,9 +11594,9 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11594
11594
  s: y,
11595
11595
  v: b
11596
11596
  });
11597
- }, n = (g) => {
11598
- i(g);
11599
- const v = (f) => i(f), w = () => {
11597
+ }, i = (g) => {
11598
+ n(g);
11599
+ const v = (f) => n(f), w = () => {
11600
11600
  window.removeEventListener("mousemove", v), window.removeEventListener("mouseup", w);
11601
11601
  };
11602
11602
  window.addEventListener("mousemove", v), window.addEventListener("mouseup", w);
@@ -11614,7 +11614,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11614
11614
  className: "color-picker__sv",
11615
11615
  ref: o,
11616
11616
  style: { backgroundColor: `hsl(${h.h}, 100%, 50%)` },
11617
- onMouseDown: n,
11617
+ onMouseDown: i,
11618
11618
  children: [
11619
11619
  /* @__PURE__ */ e("div", { className: "color-picker__sv-white" }),
11620
11620
  /* @__PURE__ */ e("div", { className: "color-picker__sv-black" }),
@@ -11756,26 +11756,26 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11756
11756
  ]
11757
11757
  });
11758
11758
  }, Wa = ({ items: t, isOpen: r, onOpenChange: l, placeholder: a = "Search commands", enableHotkey: h = !0 }) => {
11759
- const [d, o] = z(!1), [m, i] = z(""), n = r ?? d;
11759
+ const [d, o] = z(!1), [m, n] = z(""), i = r ?? d;
11760
11760
  F(() => {
11761
11761
  if (!h) return;
11762
11762
  const g = (v) => {
11763
11763
  if ((v.ctrlKey || v.metaKey) && v.key.toLowerCase() === "k") {
11764
11764
  v.preventDefault();
11765
- const w = !n;
11765
+ const w = !i;
11766
11766
  r === void 0 && o(w), l?.(w);
11767
11767
  }
11768
- n && v.key === "Escape" && (r === void 0 && o(!1), l?.(!1));
11768
+ i && v.key === "Escape" && (r === void 0 && o(!1), l?.(!1));
11769
11769
  };
11770
11770
  return window.addEventListener("keydown", g), () => window.removeEventListener("keydown", g);
11771
11771
  }, [
11772
11772
  h,
11773
11773
  r,
11774
11774
  l,
11775
- n
11775
+ i
11776
11776
  ]), F(() => {
11777
- n || i("");
11778
- }, [n]);
11777
+ i || n("");
11778
+ }, [i]);
11779
11779
  const s = u1(() => {
11780
11780
  const g = m.trim().toLowerCase();
11781
11781
  return g ? t.filter((v) => [v.label, ...v.keywords ?? []].join(" ").toLowerCase().includes(g)) : t;
@@ -11785,7 +11785,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11785
11785
  }, {}), [s]), u = () => {
11786
11786
  r === void 0 && o(!1), l?.(!1);
11787
11787
  };
11788
- return n ? /* @__PURE__ */ c("div", {
11788
+ return i ? /* @__PURE__ */ c("div", {
11789
11789
  className: "command-palette",
11790
11790
  children: [/* @__PURE__ */ e("div", {
11791
11791
  className: "command-palette__backdrop",
@@ -11799,7 +11799,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11799
11799
  autoFocus: !0,
11800
11800
  placeholder: a,
11801
11801
  value: m,
11802
- onChange: i
11802
+ onChange: n
11803
11803
  })
11804
11804
  }),
11805
11805
  /* @__PURE__ */ c("div", {
@@ -11926,8 +11926,8 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11926
11926
  const d = a * 0.4;
11927
11927
  t.beginPath();
11928
11928
  for (let o = 0; o < 10; o++) {
11929
- const m = o % 2 === 0 ? a : d, i = o * Math.PI / 5 - Math.PI / 2;
11930
- o === 0 ? t.moveTo(r + m * Math.cos(i), l + m * Math.sin(i)) : t.lineTo(r + m * Math.cos(i), l + m * Math.sin(i));
11929
+ const m = o % 2 === 0 ? a : d, n = o * Math.PI / 5 - Math.PI / 2;
11930
+ o === 0 ? t.moveTo(r + m * Math.cos(n), l + m * Math.sin(n)) : t.lineTo(r + m * Math.cos(n), l + m * Math.sin(n));
11931
11931
  }
11932
11932
  t.closePath(), t.fill();
11933
11933
  }, O0 = (t, r) => {
@@ -11944,22 +11944,22 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11944
11944
  }
11945
11945
  t.restore();
11946
11946
  }, Ua = z1(({ colors: t, duration: r = 3e3, scope: l = "fullscreen", variant: a = "confetti", particleCount: h }, d) => {
11947
- const o = K(null), m = K(0), i = K(0), n = K(!1), s = {
11947
+ const o = K(null), m = K(0), n = K(0), i = K(!1), s = {
11948
11948
  confetti: 150,
11949
11949
  burst: 200,
11950
11950
  fireworks: 8
11951
11951
  }, p = Z(() => {
11952
- n.current = !1, cancelAnimationFrame(m.current);
11952
+ i.current = !1, cancelAnimationFrame(m.current);
11953
11953
  const g = o.current;
11954
11954
  g && g.getContext("2d")?.clearRect(0, 0, g.width, g.height);
11955
11955
  }, []), u = Z(() => {
11956
11956
  const g = o.current;
11957
- if (!g || n.current) return;
11957
+ if (!g || i.current) return;
11958
11958
  const v = g.getContext("2d");
11959
11959
  if (!v) return;
11960
11960
  g.width = g.offsetWidth, g.height = g.offsetHeight;
11961
11961
  const w = g.width, f = g.height, y = Wr(t), b = h ?? s[a];
11962
- n.current = !0, i.current = performance.now();
11962
+ i.current = !0, n.current = performance.now();
11963
11963
  let C = [];
11964
11964
  if (a === "confetti") C = Array.from({ length: b }, () => u2(w, f, y));
11965
11965
  else if (a === "burst") {
@@ -11967,8 +11967,8 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
11967
11967
  C = Array.from({ length: b }, () => Ur(k, H, y));
11968
11968
  } else a === "fireworks" && (C = Array.from({ length: b }, () => g2(w, f, y)));
11969
11969
  const x = (k) => {
11970
- if (!n.current) return;
11971
- const H = k - i.current, L = Math.min(H / r, 1);
11970
+ if (!i.current) return;
11971
+ const H = k - n.current, L = Math.min(H / r, 1);
11972
11972
  if (v.clearRect(0, 0, w, f), a === "confetti" ? (L < 0.6 && Math.random() < 0.3 && C.push(u2(w, f, y)), C = C.filter((M) => M.opacity > 0 && M.y < f + 20), C.forEach((M) => {
11973
11973
  M.x += M.vx, M.y += M.vy, M.vy += 0.08, M.vx += (Math.random() - 0.5) * 0.1, M.angle += M.spin, L > 0.6 && (M.opacity -= 0.015), O0(v, M);
11974
11974
  })) : a === "burst" ? (C = C.filter((M) => M.opacity > 0), C.forEach((M) => {
@@ -12038,18 +12038,18 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12038
12038
  })
12039
12039
  });
12040
12040
  }, Oa = () => {
12041
- const [t, r] = z({}), l = (m, i) => {
12042
- const n = i instanceof HTMLElement ? i : i.currentTarget;
12041
+ const [t, r] = z({}), l = (m, n) => {
12042
+ const i = n instanceof HTMLElement ? n : n.currentTarget;
12043
12043
  r((s) => ({
12044
12044
  ...s,
12045
12045
  [m]: {
12046
12046
  visible: !0,
12047
- anchorEl: n
12047
+ anchorEl: i
12048
12048
  }
12049
12049
  }));
12050
12050
  }, a = (m) => {
12051
- r((i) => ({
12052
- ...i,
12051
+ r((n) => ({
12052
+ ...n,
12053
12053
  [m]: {
12054
12054
  visible: !1,
12055
12055
  anchorEl: null
@@ -12059,14 +12059,14 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12059
12059
  return {
12060
12060
  show: l,
12061
12061
  hide: a,
12062
- toggle: (m, i) => {
12063
- t[m]?.visible ? a(m) : l(m, i);
12062
+ toggle: (m, n) => {
12063
+ t[m]?.visible ? a(m) : l(m, n);
12064
12064
  },
12065
12065
  isVisible: (m) => t[m]?.visible || !1,
12066
12066
  getAnchorEl: (m) => t[m]?.anchorEl || null
12067
12067
  };
12068
12068
  }, R1 = 20, Yr = 8, P2 = ({ children: t, visible: r, onClose: l, anchorEl: a, offset: h = Yr, placement: d = "auto" }) => {
12069
- const o = K(null), m = K(null), [i, n] = z({
12069
+ const o = K(null), m = K(null), [n, i] = z({
12070
12070
  top: 0,
12071
12071
  left: 0,
12072
12072
  placement: "bottom"
@@ -12116,7 +12116,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12116
12116
  return v(k.top, k.left);
12117
12117
  }) || d, { top: y, left: b } = w[f]);
12118
12118
  }
12119
- (f === "top" || f === "bottom") && (b < R1 && (b = R1), b + u.width > g.width - R1 && (b = g.width - u.width - R1)), (f === "left" || f === "right") && (y < R1 && (y = R1), y + u.height > g.height - R1 && (y = g.height - u.height - R1)), n({
12119
+ (f === "top" || f === "bottom") && (b < R1 && (b = R1), b + u.width > g.width - R1 && (b = g.width - u.width - R1)), (f === "left" || f === "right") && (y < R1 && (y = R1), y + u.height > g.height - R1 && (y = g.height - u.height - R1)), i({
12120
12120
  top: y,
12121
12121
  left: b,
12122
12122
  placement: f
@@ -12146,11 +12146,11 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12146
12146
  s
12147
12147
  ]), !r || !a ? null : K1(/* @__PURE__ */ c("div", {
12148
12148
  ref: o,
12149
- className: `simple-popover simple-popover--${i.placement}`,
12149
+ className: `simple-popover simple-popover--${n.placement}`,
12150
12150
  style: {
12151
12151
  position: "fixed",
12152
- top: i.top,
12153
- left: i.left,
12152
+ top: n.top,
12153
+ left: n.left,
12154
12154
  zIndex: 9999
12155
12155
  },
12156
12156
  children: [/* @__PURE__ */ e("div", { className: "simple-popover__arrow" }), /* @__PURE__ */ e("div", {
@@ -12158,7 +12158,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12158
12158
  children: t
12159
12159
  })]
12160
12160
  }), document.body);
12161
- }, qr = ({ visible: t, onClose: r, anchorEl: l, title: a, message: h, icon: d, confirm: o, cancel: m, placement: i = "auto", offset: n }) => {
12161
+ }, qr = ({ visible: t, onClose: r, anchorEl: l, title: a, message: h, icon: d, confirm: o, cancel: m, placement: n = "auto", offset: i }) => {
12162
12162
  const s = () => {
12163
12163
  o.onClick(), r();
12164
12164
  }, p = () => {
@@ -12168,8 +12168,8 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12168
12168
  visible: t,
12169
12169
  onClose: r,
12170
12170
  anchorEl: l,
12171
- placement: i,
12172
- ...n !== void 0 ? { offset: n } : {},
12171
+ placement: n,
12172
+ ...i !== void 0 ? { offset: i } : {},
12173
12173
  children: /* @__PURE__ */ c("div", {
12174
12174
  className: "confirm-popover",
12175
12175
  children: [
@@ -12204,7 +12204,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12204
12204
  })
12205
12205
  });
12206
12206
  }, Xr = ({ target: t, onClose: r, children: l, autoClose: a = !1 }) => {
12207
- const h = K(null), [d, o] = z(!1), [m, i] = z(() => {
12207
+ const h = K(null), [d, o] = z(!1), [m, n] = z(() => {
12208
12208
  if (!t) return { opacity: 0 };
12209
12209
  const s = t.getBoundingClientRect();
12210
12210
  return {
@@ -12219,7 +12219,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12219
12219
  if (!h.current) return;
12220
12220
  const p = t.getBoundingClientRect(), u = h.current.getBoundingClientRect(), g = document.documentElement.clientWidth || window.innerWidth, v = document.documentElement.clientHeight || window.innerHeight, w = 8;
12221
12221
  let f = p.bottom, y = p.left;
12222
- y + u.width > g - w && (y = Math.max(w, g - u.width - w)), y < w && (y = w), f + u.height > v - w && (f = Math.max(w, p.top - u.height)), f < w && (f = w), i({
12222
+ y + u.width > g - w && (y = Math.max(w, g - u.width - w)), y < w && (y = w), f + u.height > v - w && (f = Math.max(w, p.top - u.height)), f < w && (f = w), n({
12223
12223
  top: `${f}px`,
12224
12224
  left: `${y}px`,
12225
12225
  opacity: 1
@@ -12229,7 +12229,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12229
12229
  cancelAnimationFrame(s);
12230
12230
  };
12231
12231
  }, [t]);
12232
- const n = (s) => {
12232
+ const i = (s) => {
12233
12233
  a && r?.();
12234
12234
  };
12235
12235
  return t ? K1(/* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("div", {
@@ -12244,7 +12244,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12244
12244
  ref: h,
12245
12245
  className: `memobit-context-menu ${d ? "memobit-context-menu--visible" : ""}`,
12246
12246
  style: m,
12247
- onClick: n,
12247
+ onClick: i,
12248
12248
  children: l
12249
12249
  })] }), document.body) : null;
12250
12250
  }, j2 = _0(null), Kr = () => {
@@ -12262,10 +12262,10 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12262
12262
  h,
12263
12263
  o
12264
12264
  ]);
12265
- const [m, i] = z(!1), n = () => {
12266
- i(!0), setTimeout(() => h(t), 300);
12265
+ const [m, n] = z(!1), i = () => {
12266
+ n(!0), setTimeout(() => h(t), 300);
12267
12267
  }, s = () => {
12268
- a?.onClick(), n();
12268
+ a?.onClick(), i();
12269
12269
  };
12270
12270
  return /* @__PURE__ */ c("div", {
12271
12271
  className: `toast toast--${l} ${m ? "toast--exiting" : ""}`,
@@ -12282,7 +12282,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12282
12282
  d && /* @__PURE__ */ e(X, {
12283
12283
  title: "Close",
12284
12284
  children: /* @__PURE__ */ e("button", {
12285
- onClick: n,
12285
+ onClick: i,
12286
12286
  className: "toast__close-button",
12287
12287
  children: /* @__PURE__ */ e(P, {
12288
12288
  name: "clear",
@@ -12308,15 +12308,15 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12308
12308
  });
12309
12309
  }, qa = ({ children: t }) => {
12310
12310
  const [r, l] = z([]), a = Z((o) => {
12311
- l((m) => m.filter((i) => i.id !== o));
12312
- }, []), h = Z((o, m = "info", i = 1500, n) => {
12311
+ l((m) => m.filter((n) => n.id !== o));
12312
+ }, []), h = Z((o, m = "info", n = 1500, i) => {
12313
12313
  const s = `${Date.now().toString()}-${Math.random().toString(36).slice(2, 8)}`;
12314
12314
  return l((p) => [...p, {
12315
12315
  id: s,
12316
12316
  message: o,
12317
12317
  type: m,
12318
- timeout: i,
12319
- action: n
12318
+ timeout: n,
12319
+ action: i
12320
12320
  }]), s;
12321
12321
  }, []), d = u1(() => ({
12322
12322
  toasts: r,
@@ -12366,17 +12366,17 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12366
12366
  const [t, r] = z(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]);
12367
12367
  return F(() => {
12368
12368
  if (typeof window > "u") return;
12369
- const o = Object.entries(Jr).map(([i, n]) => ({
12370
- breakpoint: i,
12371
- mql: window.matchMedia(n)
12369
+ const o = Object.entries(Jr).map(([n, i]) => ({
12370
+ breakpoint: n,
12371
+ mql: window.matchMedia(i)
12372
12372
  })), m = () => {
12373
12373
  r(Y0());
12374
12374
  };
12375
- return o.forEach(({ mql: i }) => {
12376
- i.addEventListener ? i.addEventListener("change", m) : i.addListener(m);
12375
+ return o.forEach(({ mql: n }) => {
12376
+ n.addEventListener ? n.addEventListener("change", m) : n.addListener(m);
12377
12377
  }), r(Y0()), () => {
12378
- o.forEach(({ mql: i }) => {
12379
- i.removeEventListener ? i.removeEventListener("change", m) : i.removeListener(m);
12378
+ o.forEach(({ mql: n }) => {
12379
+ n.removeEventListener ? n.removeEventListener("change", m) : n.removeListener(m);
12380
12380
  });
12381
12381
  };
12382
12382
  }, []), {
@@ -12395,7 +12395,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12395
12395
  if (!t) throw new Error("useControlPanel must be used within a ControlPanelProvider");
12396
12396
  return t;
12397
12397
  }, Ka = ({ children: t }) => {
12398
- const { isMobile: r } = g0(), [l, a] = z(!1), h = Z(() => a((i) => !i), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = u1(() => ({
12398
+ const { isMobile: r } = g0(), [l, a] = z(!1), h = Z(() => a((n) => !n), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = u1(() => ({
12399
12399
  isMobile: r,
12400
12400
  isOpen: l,
12401
12401
  toggle: h,
@@ -12412,7 +12412,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12412
12412
  value: m,
12413
12413
  children: t
12414
12414
  });
12415
- }, ec = ({ value: t, onChange: r, mode: l = "single", withTime: a = !1, timeFormat: h = "24h", withSeconds: d = !1, dateFormat: o = "YYYY-MM-DD", placeholder: m = "Select date...", disabled: i = !1, clearable: n = !0, autoClose: s = !0, alwaysOpen: p = !1, ...u }) => {
12415
+ }, ec = ({ value: t, onChange: r, mode: l = "single", withTime: a = !1, timeFormat: h = "24h", withSeconds: d = !1, dateFormat: o = "YYYY-MM-DD", placeholder: m = "Select date...", disabled: n = !1, clearable: i = !0, autoClose: s = !0, alwaysOpen: p = !1, ...u }) => {
12416
12416
  const [g, v] = z(!1), [w, f] = z(0), [y, b] = z(0), [C, x] = z(0), [k, H] = z(!1), [L, M] = z(null), [V, S] = z({
12417
12417
  position: "fixed",
12418
12418
  visibility: "hidden"
@@ -12424,7 +12424,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12424
12424
  a,
12425
12425
  h
12426
12426
  ]);
12427
- const B = p ? !i : g;
12427
+ const B = p ? !n : g;
12428
12428
  F(() => {
12429
12429
  if (p) return;
12430
12430
  const I = (D) => {
@@ -12484,16 +12484,16 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12484
12484
  className: "datepicker",
12485
12485
  children: [/* @__PURE__ */ c("div", {
12486
12486
  ref: _,
12487
- className: `datepicker__input ${i ? "datepicker__input--disabled" : ""} ${B ? "datepicker__input--open" : ""}`,
12487
+ className: `datepicker__input ${n ? "datepicker__input--disabled" : ""} ${B ? "datepicker__input--open" : ""}`,
12488
12488
  onClick: () => {
12489
- i || p || (B && M(null), v(!B));
12489
+ n || p || (B && M(null), v(!B));
12490
12490
  },
12491
12491
  children: [/* @__PURE__ */ e("span", {
12492
12492
  className: `datepicker__value ${t1 ? "" : "datepicker__value--placeholder"}`,
12493
12493
  children: t1 || m
12494
12494
  }), /* @__PURE__ */ c("div", {
12495
12495
  className: "datepicker__actions",
12496
- children: [n && t1 && /* @__PURE__ */ e(X, {
12496
+ children: [i && t1 && /* @__PURE__ */ e(X, {
12497
12497
  title: "Clear",
12498
12498
  children: /* @__PURE__ */ e("button", {
12499
12499
  type: "button",
@@ -12651,7 +12651,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12651
12651
  o < l.length && (d++, o++);
12652
12652
  }
12653
12653
  return d / a.length >= h;
12654
- }, V0 = ({ allowCustomValue: t = !1, autofocus: r = !1, className: l = "", disabled: a = !1, error: h, highlighted: d = !1, id: o, label: m, maxVisibleSelectedLabels: i = 1, multilineChips: n = !1, multiple: s = !1, name: p, onChange: u, onSearchChange: g, options: v, placeholder: w = "Select an option", searchable: f = !0, searchValue: y, selectedCountDisplay: b = "inline", showChips: C = !1, sortSelectedFirst: x = !1, success: k, usePortal: H = !0, value: L, valueAsChip: M = !0 }) => {
12654
+ }, 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: y, selectedCountDisplay: b = "inline", showChips: C = !1, sortSelectedFirst: x = !1, success: k, usePortal: H = !0, value: L, valueAsChip: M = !0 }) => {
12655
12655
  const [V, S] = z(!1), [_, R] = z(y || ""), [B, E] = z(v), [O, o1] = z(-1), [N, q] = z([]), [t1, I] = z({
12656
12656
  top: 0,
12657
12657
  bottom: 0,
@@ -12860,7 +12860,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12860
12860
  }
12861
12861
  }, E1 = (W) => N.some((G) => G.value === W.value), G1 = () => {
12862
12862
  if (N.length === 0) return "";
12863
- const W = Math.max(1, i);
12863
+ const W = Math.max(1, n);
12864
12864
  if (N.length <= W) return N.map((c1) => c1.label).join(", ");
12865
12865
  const G = N.slice(0, W).map((c1) => c1.label).join(", "), Y = N.length - W;
12866
12866
  return `${G} (+${Y} ${Y === 1 ? "other" : "others"})`;
@@ -12963,7 +12963,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
12963
12963
  children: m
12964
12964
  }),
12965
12965
  /* @__PURE__ */ c("div", {
12966
- className: `dropdown-input-container ${U1 ? "dropdown-input-container--has-prefix-icon" : ""} ${J1 ? "dropdown-input-container--has-suffix-icon" : ""} ${e0 ? "dropdown-input-container--chips" : ""} ${e0 && n ? "dropdown-input-container--chips-multiline" : ""}`,
12966
+ className: `dropdown-input-container ${U1 ? "dropdown-input-container--has-prefix-icon" : ""} ${J1 ? "dropdown-input-container--has-suffix-icon" : ""} ${e0 ? "dropdown-input-container--chips" : ""} ${e0 && i ? "dropdown-input-container--chips-multiline" : ""}`,
12967
12967
  children: [
12968
12968
  U1 && L1?.icon && /* @__PURE__ */ e("span", {
12969
12969
  className: "dropdown-selected-icon dropdown-selected-icon--prefix",
@@ -13049,7 +13049,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13049
13049
  })
13050
13050
  ]
13051
13051
  });
13052
- }, rc = z1(({ autoComplete: t = "on", autoFocus: r, clearable: l, disabled: a, error: h, highlighted: d, id: o, label: m, max: i, min: n, onBlur: s, onChange: p, onClick: u, onKeyDown: g, onKeyUp: v, readOnly: w = !1, required: f = !1, success: y, type: b = "date", value: C }, x) => {
13052
+ }, rc = z1(({ autoComplete: t = "on", autoFocus: r, clearable: l, disabled: a, error: h, highlighted: d, id: o, label: m, max: n, min: i, onBlur: s, onChange: p, onClick: u, onKeyDown: g, onKeyUp: v, readOnly: w = !1, required: f = !1, success: y, type: b = "date", value: C }, x) => {
13053
13053
  const k = l && C && !a && !w, H = K(null);
13054
13054
  return /* @__PURE__ */ c("div", {
13055
13055
  className: `input-date-wrapper${d ? " input-date-highlighted" : ""}`,
@@ -13071,8 +13071,8 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13071
13071
  type: b === "date" ? "date" : "datetime-local",
13072
13072
  className: `input-date${h ? " input-date-error" : ""}${y ? " input-date-success" : ""}${k ? " input-date--clearable" : ""}`,
13073
13073
  id: o,
13074
- max: i,
13075
- min: n,
13074
+ max: n,
13075
+ min: i,
13076
13076
  ref: (V) => {
13077
13077
  H.current = V, typeof x == "function" ? x(V) : x && (x.current = V);
13078
13078
  },
@@ -13126,7 +13126,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13126
13126
  })
13127
13127
  ]
13128
13128
  });
13129
- }), l0 = z1(({ autoComplete: t = "off", autoFocus: r, disabled: l, id: a, label: h, onBlur: d, onChange: o, onClick: m, onKeyDown: i, onKeyUp: n, placeholder: s = "Search...", readOnly: p = !1, required: u = !1, value: g, className: v = "" }, w) => {
13129
+ }), l0 = z1(({ autoComplete: t = "off", autoFocus: r, disabled: l, id: a, label: h, onBlur: d, onChange: o, onClick: m, onKeyDown: n, onKeyUp: i, placeholder: s = "Search...", readOnly: p = !1, required: u = !1, value: g, className: v = "" }, w) => {
13130
13130
  const f = () => {
13131
13131
  o?.("");
13132
13132
  }, y = g && g.length > 0 && !l && !p;
@@ -13146,8 +13146,8 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13146
13146
  onBlur: d,
13147
13147
  onChange: o,
13148
13148
  onClick: m,
13149
- onKeyDown: i,
13150
- onKeyUp: n,
13149
+ onKeyDown: n,
13150
+ onKeyUp: i,
13151
13151
  placeholder: s,
13152
13152
  readOnly: p,
13153
13153
  required: u,
@@ -13174,7 +13174,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13174
13174
  warning: "var(--rating-color-warning)",
13175
13175
  danger: "var(--rating-color-danger)"
13176
13176
  }, b0 = ({ type: t, filled: r, variant: l, size: a = 16 }) => {
13177
- const h = `rating-grad-${z0()}`, d = cc[l], o = "var(--rating-empty-color)", m = r === "full" ? d : r === "half" ? `url(#${h})` : o, i = () => r === "half" ? /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ c("linearGradient", {
13177
+ const h = `rating-grad-${z0()}`, d = cc[l], o = "var(--rating-empty-color)", m = r === "full" ? d : r === "half" ? `url(#${h})` : o, n = () => r === "half" ? /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ c("linearGradient", {
13178
13178
  id: h,
13179
13179
  x1: "0",
13180
13180
  x2: "1",
@@ -13193,7 +13193,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13193
13193
  height: a,
13194
13194
  viewBox: "0 0 24 24",
13195
13195
  xmlns: "http://www.w3.org/2000/svg",
13196
- children: [/* @__PURE__ */ e(i, {}), /* @__PURE__ */ e("polygon", {
13196
+ children: [/* @__PURE__ */ e(n, {}), /* @__PURE__ */ e("polygon", {
13197
13197
  points: "12,2 15.09,8.26 22,9.27 17,14.14 18.18,21.02 12,17.77 5.82,21.02 7,14.14 2,9.27 8.91,8.26",
13198
13198
  fill: m
13199
13199
  })]
@@ -13203,7 +13203,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13203
13203
  height: a,
13204
13204
  viewBox: "0 0 24 24",
13205
13205
  xmlns: "http://www.w3.org/2000/svg",
13206
- children: [/* @__PURE__ */ e(i, {}), /* @__PURE__ */ e("circle", {
13206
+ children: [/* @__PURE__ */ e(n, {}), /* @__PURE__ */ e("circle", {
13207
13207
  cx: "12",
13208
13208
  cy: "12",
13209
13209
  r: "10",
@@ -13211,16 +13211,16 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13211
13211
  })]
13212
13212
  });
13213
13213
  if (t === "bar") {
13214
- const n = Math.round(a * 1.75), s = Math.round(a * 0.5625), p = s / 2;
13214
+ const i = Math.round(a * 1.75), s = Math.round(a * 0.5625), p = s / 2;
13215
13215
  return /* @__PURE__ */ c("svg", {
13216
- width: n,
13216
+ width: i,
13217
13217
  height: s,
13218
- viewBox: `0 0 ${n} ${s}`,
13218
+ viewBox: `0 0 ${i} ${s}`,
13219
13219
  xmlns: "http://www.w3.org/2000/svg",
13220
- children: [/* @__PURE__ */ e(i, {}), /* @__PURE__ */ e("rect", {
13220
+ children: [/* @__PURE__ */ e(n, {}), /* @__PURE__ */ e("rect", {
13221
13221
  x: "0",
13222
13222
  y: "0",
13223
- width: n,
13223
+ width: i,
13224
13224
  height: s,
13225
13225
  rx: p,
13226
13226
  fill: m
@@ -13228,15 +13228,15 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13228
13228
  });
13229
13229
  }
13230
13230
  return null;
13231
- }, lc = ({ align: t = "left", icon: r = "star", maxRate: l = 10, onHover: a, onHoverEnd: h, onSelect: d, rating: o, selectable: m = !1, showValue: i = !0, useHalf: n = !1, variant: s = "warning" }) => {
13231
+ }, lc = ({ 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" }) => {
13232
13232
  const p = Z((u) => {
13233
- m && !n && d?.(u + 1);
13233
+ m && !i && d?.(u + 1);
13234
13234
  }, [
13235
13235
  m,
13236
- n,
13236
+ i,
13237
13237
  d
13238
13238
  ]);
13239
- if (n && m) return /* @__PURE__ */ e("div", {
13239
+ if (i && m) return /* @__PURE__ */ e("div", {
13240
13240
  className: `rating rating--half rating--half-selectable align-${t} is-selectable`,
13241
13241
  onMouseLeave: h,
13242
13242
  children: /* @__PURE__ */ e("span", {
@@ -13267,7 +13267,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13267
13267
  })
13268
13268
  })
13269
13269
  });
13270
- if (n) {
13270
+ if (i) {
13271
13271
  const u = o / 2, g = Math.floor(u), v = u % 1 >= 0.5, w = 5 - g - (v ? 1 : 0);
13272
13272
  return /* @__PURE__ */ c("div", {
13273
13273
  className: `rating rating--half align-${t}`,
@@ -13300,7 +13300,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13300
13300
  })
13301
13301
  }, `empty-${y}`))
13302
13302
  ]
13303
- }), i && /* @__PURE__ */ c("span", {
13303
+ }), n && /* @__PURE__ */ c("span", {
13304
13304
  className: "rating-values",
13305
13305
  children: [
13306
13306
  "(",
@@ -13325,7 +13325,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13325
13325
  variant: s
13326
13326
  })
13327
13327
  }, g))
13328
- }), i && /* @__PURE__ */ c("span", {
13328
+ }), n && /* @__PURE__ */ c("span", {
13329
13329
  className: "rating-values",
13330
13330
  children: [
13331
13331
  "(",
@@ -13392,7 +13392,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13392
13392
  children: [a ? /* @__PURE__ */ c("button", {
13393
13393
  className: "control-panel__filter-toggle",
13394
13394
  type: "button",
13395
- onClick: () => d((i) => !i),
13395
+ onClick: () => d((n) => !n),
13396
13396
  children: [
13397
13397
  m,
13398
13398
  !h && o && /* @__PURE__ */ e("span", {
@@ -13481,7 +13481,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13481
13481
  })
13482
13482
  });
13483
13483
  if (t.type === "range") {
13484
- const o = Array.isArray(t.value) ? t.value : [], m = o[0], i = o[1], n = m !== void 0 && i !== void 0 && m > i, s = (p, u) => r({
13484
+ const o = Array.isArray(t.value) ? t.value : [], m = o[0], n = o[1], i = m !== void 0 && n !== void 0 && m > n, s = (p, u) => r({
13485
13485
  filterId: t.id,
13486
13486
  type: t.type,
13487
13487
  value: [p, u]
@@ -13495,8 +13495,8 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13495
13495
  step: t.step,
13496
13496
  placeholder: "Min",
13497
13497
  value: m,
13498
- error: n ? "Min exceeds max" : void 0,
13499
- onChange: (p) => s(p, i)
13498
+ error: i ? "Min exceeds max" : void 0,
13499
+ onChange: (p) => s(p, n)
13500
13500
  }),
13501
13501
  /* @__PURE__ */ e("span", {
13502
13502
  className: "control-panel__filter-range-sep",
@@ -13507,15 +13507,15 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13507
13507
  max: t.max,
13508
13508
  step: t.step,
13509
13509
  placeholder: "Max",
13510
- value: i,
13511
- error: n ? "Max is below min" : void 0,
13510
+ value: n,
13511
+ error: i ? "Max is below min" : void 0,
13512
13512
  onChange: (p) => s(m, p)
13513
13513
  })
13514
13514
  ]
13515
13515
  });
13516
13516
  }
13517
13517
  if (t.type === "date-range") {
13518
- const o = Array.isArray(t.value) ? t.value : [], m = o[0] || void 0, i = o[1] || void 0, n = t.presets ?? ac, s = (v) => {
13518
+ const o = Array.isArray(t.value) ? t.value : [], m = o[0] || void 0, n = o[1] || void 0, i = t.presets ?? ac, s = (v) => {
13519
13519
  if (!v) return;
13520
13520
  const [w, f, y] = v.split("-").map(Number);
13521
13521
  return new Date(w, f - 1, y);
@@ -13531,9 +13531,9 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13531
13531
  };
13532
13532
  return /* @__PURE__ */ c("div", {
13533
13533
  className: "control-panel__filter-date-range",
13534
- children: [n.length > 0 && /* @__PURE__ */ e("div", {
13534
+ children: [i.length > 0 && /* @__PURE__ */ e("div", {
13535
13535
  className: "control-panel__filter-date-presets",
13536
- children: n.map((v) => /* @__PURE__ */ e(T, {
13536
+ children: i.map((v) => /* @__PURE__ */ e(T, {
13537
13537
  size: "small",
13538
13538
  variant: "default",
13539
13539
  onClick: () => g(v.days),
@@ -13544,9 +13544,9 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13544
13544
  minDate: s(t.minDate),
13545
13545
  maxDate: s(t.maxDate),
13546
13546
  placeholder: t.placeholder ?? "Select range",
13547
- value: m && i ? {
13547
+ value: m && n ? {
13548
13548
  start: s(m),
13549
- end: s(i)
13549
+ end: s(n)
13550
13550
  } : void 0,
13551
13551
  onChange: (v) => {
13552
13552
  if (v && typeof v == "object" && !Array.isArray(v) && "start" in v) {
@@ -13608,7 +13608,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13608
13608
  r({
13609
13609
  filterId: t.id,
13610
13610
  type: t.type,
13611
- value: Array.isArray(o) ? f2(o.map((i) => i.value)) : o?.value ?? null,
13611
+ value: Array.isArray(o) ? f2(o.map((n) => n.value)) : o?.value ?? null,
13612
13612
  option: Array.isArray(o) ? null : o,
13613
13613
  options: m
13614
13614
  });
@@ -13621,7 +13621,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13621
13621
  value: typeof t.value == "boolean" ? null : t.value
13622
13622
  });
13623
13623
  if (t.type === "chips") {
13624
- const o = h.trim().toLowerCase(), m = t.searchable && o ? a.filter((i) => i.label.toLowerCase().includes(o)) : a;
13624
+ const o = h.trim().toLowerCase(), m = t.searchable && o ? a.filter((n) => n.label.toLowerCase().includes(o)) : a;
13625
13625
  return /* @__PURE__ */ c("div", {
13626
13626
  className: "control-panel__filter-chips-wrap",
13627
13627
  children: [t.searchable && a.length > 0 && /* @__PURE__ */ e(l0, {
@@ -13635,32 +13635,32 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
13635
13635
  maxHeight: typeof t.maxHeight == "number" ? `${t.maxHeight}px` : t.maxHeight,
13636
13636
  overflowY: "auto"
13637
13637
  } : void 0,
13638
- children: m.map((i) => {
13639
- const n = l.includes(i.value);
13638
+ children: m.map((n) => {
13639
+ const i = l.includes(n.value);
13640
13640
  return /* @__PURE__ */ c(d0, {
13641
- color: i.color,
13642
- count: i.count,
13643
- disabled: i.disabled,
13644
- icon: i.icon,
13645
- title: i.tooltip,
13646
- selected: n,
13641
+ color: n.color,
13642
+ count: n.count,
13643
+ disabled: n.disabled,
13644
+ icon: n.icon,
13645
+ title: n.tooltip,
13646
+ selected: i,
13647
13647
  onClick: () => {
13648
- if (i.disabled) return;
13649
- const s = t.multiple === !1, p = s ? n ? [] : [i.value] : n ? l.filter((u) => u !== i.value) : [...l, i.value];
13648
+ if (n.disabled) return;
13649
+ const s = t.multiple === !1, p = s ? i ? [] : [n.value] : i ? l.filter((u) => u !== n.value) : [...l, n.value];
13650
13650
  r({
13651
13651
  filterId: t.id,
13652
13652
  type: t.type,
13653
13653
  value: s ? p[0] ?? null : f2(p),
13654
- option: i,
13654
+ option: n,
13655
13655
  options: a.filter((u) => p.includes(u.value))
13656
13656
  });
13657
13657
  },
13658
- children: [i.imageUrl && /* @__PURE__ */ e("img", {
13658
+ children: [n.imageUrl && /* @__PURE__ */ e("img", {
13659
13659
  className: "control-panel__filter-chip-avatar",
13660
- src: i.imageUrl,
13660
+ src: n.imageUrl,
13661
13661
  alt: ""
13662
- }), i.label]
13663
- }, i.value);
13662
+ }), n.label]
13663
+ }, n.value);
13664
13664
  })
13665
13665
  })]
13666
13666
  });
@@ -13775,17 +13775,17 @@ function F2(t, r, l, a = 0) {
13775
13775
  })]
13776
13776
  }, t.id);
13777
13777
  }
13778
- var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.length ?? 0, pc = ({ disabled: t = !1, largeValueState: r = "info", min: l = 0, max: a = 100, step: h = 1, value: d, onChange: o, showValues: m = !0, showValueAtTheRight: i = !1, valueSize: n, thin: s = !1, vertical: p = !1 }) => {
13778
+ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.length ?? 0, pc = ({ 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 }) => {
13779
13779
  const u = (f) => {
13780
13780
  o(parseFloat(f.target.value));
13781
- }, g = mc(h), v = g > 0 ? d.toFixed(g) : String(d), w = i && !p;
13781
+ }, g = mc(h), v = g > 0 ? d.toFixed(g) : String(d), w = n && !p;
13782
13782
  return /* @__PURE__ */ c("div", {
13783
13783
  className: [
13784
13784
  "slider-component",
13785
13785
  w ? "slider-component--inline" : "",
13786
13786
  s ? "slider-component--thin" : "",
13787
13787
  p ? "slider-component--vertical" : "",
13788
- n ? `slider-component--value-${n}` : ""
13788
+ i ? `slider-component--value-${i}` : ""
13789
13789
  ].filter(Boolean).join(" "),
13790
13790
  children: [/* @__PURE__ */ e("input", {
13791
13791
  type: "range",
@@ -13873,8 +13873,8 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
13873
13873
  return /* @__PURE__ */ e(d0, {
13874
13874
  selected: m,
13875
13875
  onClick: () => {
13876
- const i = m ? d.value.filter((n) => n !== o.value) : [...d.value, o.value];
13877
- d.onChange(i);
13876
+ const n = m ? d.value.filter((i) => i !== o.value) : [...d.value, o.value];
13877
+ d.onChange(n);
13878
13878
  },
13879
13879
  children: o.label
13880
13880
  }, o.value);
@@ -13887,28 +13887,28 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
13887
13887
  children: [o.label && /* @__PURE__ */ e("span", {
13888
13888
  className: "control-panel__option-group-label",
13889
13889
  children: o.label
13890
- }), o.options.map((i, n) => {
13891
- const s = n > 0 ? o.options[n - 1] : void 0, p = !!s && s.type !== i.type;
13890
+ }), o.options.map((n, i) => {
13891
+ const s = i > 0 ? o.options[i - 1] : void 0, p = !!s && s.type !== n.type;
13892
13892
  return /* @__PURE__ */ c(g1.Fragment, { children: [p && /* @__PURE__ */ e(h0, { spacing: 0 }), /* @__PURE__ */ c("div", {
13893
- className: `control-panel__option control-panel__option--${i.type}`,
13893
+ className: `control-panel__option control-panel__option--${n.type}`,
13894
13894
  children: [
13895
- i.type === "checkbox" && /* @__PURE__ */ e(d0, {
13896
- icon: i.icon,
13897
- selected: i.value ?? !1,
13895
+ n.type === "checkbox" && /* @__PURE__ */ e(d0, {
13896
+ icon: n.icon,
13897
+ selected: n.value ?? !1,
13898
13898
  onClick: () => r?.({
13899
- optionId: i.id,
13900
- value: !(i.value ?? !1)
13899
+ optionId: n.id,
13900
+ value: !(n.value ?? !1)
13901
13901
  }),
13902
- children: i.label
13902
+ children: n.label
13903
13903
  }),
13904
- i.type === "radio" && /* @__PURE__ */ c(n1, { children: [i.label && /* @__PURE__ */ e("span", {
13904
+ n.type === "radio" && /* @__PURE__ */ c(n1, { children: [n.label && /* @__PURE__ */ e("span", {
13905
13905
  className: "control-panel__filter-title",
13906
- children: i.label
13906
+ children: n.label
13907
13907
  }), /* @__PURE__ */ e("div", {
13908
- className: `control-panel__filter-list ${i.inline ? "control-panel__filter-list--inline" : ""}`,
13909
- children: i.options.map((u) => {
13910
- const g = i.value === u.value, v = () => r?.({
13911
- optionId: i.id,
13908
+ className: `control-panel__filter-list ${n.inline ? "control-panel__filter-list--inline" : ""}`,
13909
+ children: n.options.map((u) => {
13910
+ const g = n.value === u.value, v = () => r?.({
13911
+ optionId: n.id,
13912
13912
  value: u.value
13913
13913
  }), w = /* @__PURE__ */ e("div", {
13914
13914
  className: `control-panel__filter-radio ${g ? "control-panel__filter-radio--selected" : ""} ${u.disabled ? "control-panel__filter-radio--disabled" : ""}`,
@@ -13919,7 +13919,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
13919
13919
  checked: g,
13920
13920
  className: "control-panel__filter-radio-input",
13921
13921
  disabled: u.disabled,
13922
- name: `control-panel-option-${i.id}`,
13922
+ name: `control-panel-option-${n.id}`,
13923
13923
  onChange: v,
13924
13924
  onClick: () => {
13925
13925
  u.disabled || g && v();
@@ -13941,35 +13941,35 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
13941
13941
  }, u.value) : /* @__PURE__ */ e(g1.Fragment, { children: w }, u.value);
13942
13942
  })
13943
13943
  })] }),
13944
- i.type === "slider" && /* @__PURE__ */ c(n1, { children: [i.label && /* @__PURE__ */ c("span", {
13944
+ n.type === "slider" && /* @__PURE__ */ c(n1, { children: [n.label && /* @__PURE__ */ c("span", {
13945
13945
  className: "control-panel__filter-title",
13946
13946
  children: [
13947
- i.icon && /* @__PURE__ */ e(P, { name: i.icon }),
13948
- i.label,
13949
- i.showValue !== !1 && /* @__PURE__ */ c("span", {
13947
+ n.icon && /* @__PURE__ */ e(P, { name: n.icon }),
13948
+ n.label,
13949
+ n.showValue !== !1 && /* @__PURE__ */ c("span", {
13950
13950
  className: "control-panel__option-slider-value",
13951
- children: [i.value, i.unit ?? ""]
13951
+ children: [n.value, n.unit ?? ""]
13952
13952
  })
13953
13953
  ]
13954
13954
  }), /* @__PURE__ */ e(pc, {
13955
- min: i.min,
13956
- max: i.max,
13957
- step: i.step,
13958
- value: i.value,
13955
+ min: n.min,
13956
+ max: n.max,
13957
+ step: n.step,
13958
+ value: n.value,
13959
13959
  onChange: (u) => r?.({
13960
- optionId: i.id,
13960
+ optionId: n.id,
13961
13961
  value: u
13962
13962
  }),
13963
13963
  showValues: !1,
13964
13964
  thin: !0
13965
13965
  })] }),
13966
- i.type === "chips" && /* @__PURE__ */ c(n1, { children: [i.label && /* @__PURE__ */ e("span", {
13966
+ n.type === "chips" && /* @__PURE__ */ c(n1, { children: [n.label && /* @__PURE__ */ e("span", {
13967
13967
  className: "control-panel__filter-title",
13968
- children: i.label
13968
+ children: n.label
13969
13969
  }), /* @__PURE__ */ e("div", {
13970
13970
  className: "control-panel__filter-chips",
13971
- children: i.options.map((u) => {
13972
- const g = i.value.includes(u.value);
13971
+ children: n.options.map((u) => {
13972
+ const g = n.value.includes(u.value);
13973
13973
  return /* @__PURE__ */ e(d0, {
13974
13974
  disabled: u.disabled,
13975
13975
  icon: u.icon,
@@ -13977,9 +13977,9 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
13977
13977
  selected: g,
13978
13978
  onClick: () => {
13979
13979
  if (u.disabled) return;
13980
- const v = g ? i.value.filter((w) => w !== u.value) : [...i.value, u.value];
13980
+ const v = g ? n.value.filter((w) => w !== u.value) : [...n.value, u.value];
13981
13981
  r?.({
13982
- optionId: i.id,
13982
+ optionId: n.id,
13983
13983
  value: v
13984
13984
  });
13985
13985
  },
@@ -13988,11 +13988,11 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
13988
13988
  })
13989
13989
  })] })
13990
13990
  ]
13991
- })] }, i.id);
13991
+ })] }, n.id);
13992
13992
  })]
13993
13993
  }, o.id ?? o.label ?? m))
13994
13994
  ]
13995
- }), Ja = ({ width: t = "280px", className: r = "", isOpen: l, onClose: a, isMobile: h, showOverlay: d = !0, contained: o = !1, flush: m = !1, shadow: i = "none", header: n, navigation: s = [], actions: p = [], filters: u = [], filtersCount: g, collapsibleFilters: v = !1, onFilterChange: w, onClearFilters: f, options: y = [], onOptionChange: b, viewToggle: C, groupBy: x, visibleColumns: k }) => {
13995
+ }), Ja = ({ 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, collapsibleFilters: v = !1, onFilterChange: w, onClearFilters: f, options: y = [], onOptionChange: b, viewToggle: C, groupBy: x, visibleColumns: k }) => {
13996
13996
  const H = l2(), L = h ?? H?.isMobile ?? !1, M = l ?? (L ? H?.isOpen ?? !1 : !0), V = a ?? H?.close ?? (() => {
13997
13997
  }), S = [
13998
13998
  "control-panel",
@@ -14003,7 +14003,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14003
14003
  r
14004
14004
  ].filter(Boolean).join(" "), _ = ["control-panel__overlay", o ? "control-panel__overlay--contained" : ""].filter(Boolean).join(" "), R = {
14005
14005
  "--control-panel-width": t,
14006
- "--control-panel-shadow": i
14006
+ "--control-panel-shadow": n
14007
14007
  }, B = y.length === 0 ? [] : "type" in y[0] ? [{ options: y }] : y, E = !!(C || x || k || B.length > 0), O = u.length > 0 || g !== void 0 && g > 0, o1 = typeof v == "number" ? v : v ? 1 : 1 / 0, N = u.length >= o1, q = ["control-panel__filters", N ? "control-panel__filters--collapsible" : ""].filter(Boolean).join(" ");
14008
14008
  return /* @__PURE__ */ c(n1, { children: [d && L && M && /* @__PURE__ */ e("div", {
14009
14009
  className: _,
@@ -14012,14 +14012,14 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14012
14012
  className: S,
14013
14013
  style: R,
14014
14014
  children: [
14015
- n && /* @__PURE__ */ e(I2, {
14016
- icon: n.icon,
14017
- emoji: n.emoji,
14018
- svg: n.svg,
14019
- appName: n.appName ?? n.siteName,
14020
- heading: n.heading,
14021
- onClick: n.onClick ? () => {
14022
- n.onClick?.(), L && V();
14015
+ i && /* @__PURE__ */ e(I2, {
14016
+ icon: i.icon,
14017
+ emoji: i.emoji,
14018
+ svg: i.svg,
14019
+ appName: i.appName ?? i.siteName,
14020
+ heading: i.heading,
14021
+ onClick: i.onClick ? () => {
14022
+ i.onClick?.(), L && V();
14023
14023
  } : void 0
14024
14024
  }),
14025
14025
  p.length > 0 && /* @__PURE__ */ e("div", {
@@ -14067,15 +14067,15 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14067
14067
  ]
14068
14068
  })] });
14069
14069
  }, wc = ({ action: t, onActionComplete: r }) => {
14070
- const [l, a] = z(null), [h, d] = z(!1), o = (n) => {
14070
+ const [l, a] = z(null), [h, d] = z(!1), o = (i) => {
14071
14071
  if (t.confirm) {
14072
- a(n.currentTarget), d(!0);
14072
+ a(i.currentTarget), d(!0);
14073
14073
  return;
14074
14074
  }
14075
- t.onClick?.(n), r?.();
14075
+ t.onClick?.(i), r?.();
14076
14076
  }, m = () => {
14077
14077
  t.onClick?.({}), r?.();
14078
- }, i = /* @__PURE__ */ e(T, {
14078
+ }, n = /* @__PURE__ */ e(T, {
14079
14079
  className: "control-panel__action",
14080
14080
  disabled: t.disabled,
14081
14081
  fullWidth: t.fullWidth ?? !0,
@@ -14089,8 +14089,8 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14089
14089
  return /* @__PURE__ */ c(n1, { children: [t.tooltip ? /* @__PURE__ */ e(X, {
14090
14090
  title: t.tooltip,
14091
14091
  position: "right",
14092
- children: i
14093
- }) : i, t.confirm && /* @__PURE__ */ e(qr, {
14092
+ children: n
14093
+ }) : n, t.confirm && /* @__PURE__ */ e(qr, {
14094
14094
  visible: h,
14095
14095
  onClose: () => d(!1),
14096
14096
  anchorEl: l,
@@ -14123,18 +14123,18 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14123
14123
  } finally {
14124
14124
  document.body.removeChild(r);
14125
14125
  }
14126
- }, ei = ({ children: t, className: r = "", copiedLabel: l = "Copied", disabled: a = !1, errorLabel: h = "Copy failed", iconOnly: d = !1, label: o = "Copy", onCopy: m, onError: i, resetDelay: n = 1800, size: s = "medium", title: p, value: u, variant: g = "ghost" }) => {
14126
+ }, ei = ({ 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" }) => {
14127
14127
  const [v, w] = z("idle"), f = K(null);
14128
14128
  F(() => () => {
14129
14129
  f.current && window.clearTimeout(f.current);
14130
14130
  }, []);
14131
14131
  const y = () => {
14132
- f.current && window.clearTimeout(f.current), f.current = window.setTimeout(() => w("idle"), n);
14132
+ f.current && window.clearTimeout(f.current), f.current = window.setTimeout(() => w("idle"), i);
14133
14133
  }, b = async () => {
14134
14134
  try {
14135
14135
  await fc(u), w("copied"), y(), m?.(u);
14136
14136
  } catch (k) {
14137
- w("error"), y(), i?.(k);
14137
+ w("error"), y(), n?.(k);
14138
14138
  }
14139
14139
  }, C = v === "copied" ? l : v === "error" ? h : o, x = v === "copied" && g === "ghost" ? "success" : v === "error" && g === "ghost" ? "danger" : g;
14140
14140
  return /* @__PURE__ */ e(T, {
@@ -14192,16 +14192,16 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14192
14192
  const d = r ? (a - 1) * t + 1 : 0, o = Math.min(a * t, r), m = h ? ` ${h}` : "";
14193
14193
  return r === l ? `Showing ${d}-${o} of ${l}${m}` : `Showing ${d}-${o} of ${r} filtered${m} (${l} total)`;
14194
14194
  }, r0 = ({ icon: t, title: r, description: l, noCard: a, primary: h, secondary: d, children: o }) => {
14195
- const m = h || d, i = typeof t == "string" ? /* @__PURE__ */ e(P, {
14195
+ const m = h || d, n = typeof t == "string" ? /* @__PURE__ */ e(P, {
14196
14196
  name: t,
14197
14197
  size: "xxxl"
14198
14198
  }) : t;
14199
14199
  return /* @__PURE__ */ c("div", {
14200
14200
  className: `empty-state${a ? " empty-state--no-card" : ""}`,
14201
14201
  children: [
14202
- i && /* @__PURE__ */ e("div", {
14202
+ n && /* @__PURE__ */ e("div", {
14203
14203
  className: "empty-state__icon",
14204
- children: i
14204
+ children: n
14205
14205
  }),
14206
14206
  /* @__PURE__ */ e("h3", {
14207
14207
  className: "empty-state__title",
@@ -14228,7 +14228,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14228
14228
  })
14229
14229
  ]
14230
14230
  });
14231
- }, bc = 45, Mc = 120, xc = 45, kc = 45, C2 = 8, _c = 4, y2 = ({ currentPage: t, totalPages: r, totalItems: l, onPageChange: a, showPagesNumbers: h = !1, pageSizeOptions: d, pageSize: o, onPageSizeChange: m, pageSizeLabel: i = "Rows", horizontalAlign: n = "left" }) => {
14231
+ }, bc = 45, Mc = 120, xc = 45, kc = 45, C2 = 8, _c = 4, y2 = ({ currentPage: t, totalPages: r, totalItems: l, onPageChange: a, showPagesNumbers: h = !1, pageSizeOptions: d, pageSize: o, onPageSizeChange: m, pageSizeLabel: n = "Rows", horizontalAlign: i = "left" }) => {
14232
14232
  const { isAtLeast: s, isMobile: p } = g0(), u = K(null), [g, v] = z(p ? 0 : 2), w = Z(() => {
14233
14233
  const C = u.current, x = C?.parentElement;
14234
14234
  if (!C || !x) return;
@@ -14254,7 +14254,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14254
14254
  return t - g > 2 ? x.push(1, "...") : x.push(1), x.push(...C), t + g < r - 1 ? x.push("...", r) : r > 1 && x.push(r), x;
14255
14255
  };
14256
14256
  return l !== void 0 && d?.length && l <= Math.min(...d) || r <= 1 && !f ? null : /* @__PURE__ */ c("div", {
14257
- className: `pagination pagination--${n}`,
14257
+ className: `pagination pagination--${i}`,
14258
14258
  children: [
14259
14259
  r > 1 && /* @__PURE__ */ c("div", {
14260
14260
  className: "pagination__pages",
@@ -14287,7 +14287,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14287
14287
  }),
14288
14288
  f && y && /* @__PURE__ */ c("div", {
14289
14289
  className: "pagination__page-size",
14290
- children: [/* @__PURE__ */ e("span", { children: i }), /* @__PURE__ */ e(V0, {
14290
+ children: [/* @__PURE__ */ e("span", { children: n }), /* @__PURE__ */ e(V0, {
14291
14291
  name: "pageSize",
14292
14292
  options: y,
14293
14293
  value: o,
@@ -14319,13 +14319,13 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14319
14319
  const l = /* @__PURE__ */ new Map();
14320
14320
  let a = null, h = null;
14321
14321
  return t.forEach((d, o) => {
14322
- const m = Lc(d.date), i = Nc(m), n = Vc(m, r), s = i !== a, p = n !== h;
14322
+ const m = Lc(d.date), n = Nc(m), i = Vc(m, r), s = n !== a, p = i !== h;
14323
14323
  l.set(o, {
14324
14324
  showYear: s,
14325
14325
  showDate: p,
14326
14326
  yearLabel: s ? m.getFullYear().toString() : "",
14327
14327
  dateLabel: p ? zc(m, r) : ""
14328
- }), a = i, h = n;
14328
+ }), a = n, h = i;
14329
14329
  }), l;
14330
14330
  }, Hc = ({ marker: t, onClick: r }) => {
14331
14331
  const l = (a) => {
@@ -14396,21 +14396,21 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
14396
14396
  }), /* @__PURE__ */ e("span", { children: a })]
14397
14397
  }) : a;
14398
14398
  };
14399
- function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d, onRowClick: o, rowHref: m, rowClassName: i, empty: n, selectable: s, selectedIds: p = [], pinnedIds: u, onToggleSelect: g, cardMaxWidth: v, isMobile: w = !1, groups: f, showGroupCount: y = !0, collapsible: b = !1, collapsedGroups: C, onToggleGroup: x }) {
14399
+ function Bc({ 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: y = !0, collapsible: b = !1, collapsedGroups: C, onToggleGroup: x }) {
14400
14400
  const k = r.filter((_) => !_.hideInCard && !(w && _.hideInMobile)), H = u1(() => new Set(u ?? []), [u]), L = `data-view__cards${v !== void 0 ? " data-view__cards--grid" : ""}`, M = v !== void 0 ? { "--data-view-card-max-width": Rc(v) } : void 0, V = u1(() => d ? a2(t.map((_) => ({
14401
14401
  id: d.idAccessor(_),
14402
14402
  date: d.dateAccessor(_)
14403
14403
  })), d.granularity) : /* @__PURE__ */ new Map(), [t, d]);
14404
14404
  if (t.length === 0)
14405
- return n ? /* @__PURE__ */ e(r0, {
14406
- title: n.title,
14407
- description: n.description,
14408
- icon: n.icon,
14409
- primary: n.primary,
14410
- secondary: n.secondary
14405
+ return i ? /* @__PURE__ */ e(r0, {
14406
+ title: i.title,
14407
+ description: i.description,
14408
+ icon: i.icon,
14409
+ primary: i.primary,
14410
+ secondary: i.secondary
14411
14411
  }) : /* @__PURE__ */ e(r0, { title: "No data available" });
14412
14412
  const S = (_, R) => {
14413
- const B = V.get(R), E = l(_, R), O = s && p.includes(E), o1 = H.has(E), N = m?.(_), q = `data-view__card ${o || N ? "data-view__card--clickable" : ""} ${O ? "data-view__card--selected" : ""} ${o1 ? "data-view__card--pinned" : ""} ${i?.(_) || ""}`, t1 = (D) => {
14413
+ const B = V.get(R), E = l(_, R), O = s && p.includes(E), o1 = H.has(E), N = m?.(_), q = `data-view__card ${o || N ? "data-view__card--clickable" : ""} ${O ? "data-view__card--selected" : ""} ${o1 ? "data-view__card--pinned" : ""} ${n?.(_) || ""}`, t1 = (D) => {
14414
14414
  D.metaKey || D.ctrlKey || D.shiftKey || D.altKey || D.button !== 0 || o && (D.preventDefault(), o(_, D));
14415
14415
  }, I = /* @__PURE__ */ c(n1, { children: [
14416
14416
  o1 && /* @__PURE__ */ e(X, {
@@ -14536,11 +14536,11 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
14536
14536
  function Ac({ config: t }) {
14537
14537
  const { options: r, selectedKeys: l, onChange: a, label: h = "Columns" } = t, d = K(null), [o, m] = z(!1);
14538
14538
  if (r.length === 0) return null;
14539
- const i = (n, s) => {
14539
+ const n = (i, s) => {
14540
14540
  if (s) {
14541
- if (l.includes(n)) return;
14542
- a([...l, n]);
14543
- } else a(l.filter((p) => p !== n));
14541
+ if (l.includes(i)) return;
14542
+ a([...l, i]);
14543
+ } else a(l.filter((p) => p !== i));
14544
14544
  };
14545
14545
  return /* @__PURE__ */ c("div", {
14546
14546
  className: "data-view__column-selector",
@@ -14549,7 +14549,7 @@ function Ac({ config: t }) {
14549
14549
  variant: "ghost",
14550
14550
  size: "small",
14551
14551
  icon: "table",
14552
- onClick: () => m((n) => !n),
14552
+ onClick: () => m((i) => !i),
14553
14553
  children: /* @__PURE__ */ c("span", {
14554
14554
  className: "data-view__column-selector-label",
14555
14555
  children: [h, /* @__PURE__ */ e(P, {
@@ -14564,13 +14564,13 @@ function Ac({ config: t }) {
14564
14564
  placement: "bottom",
14565
14565
  children: /* @__PURE__ */ e("div", {
14566
14566
  className: "data-view__column-selector-list",
14567
- children: r.map((n) => /* @__PURE__ */ c("label", {
14567
+ children: r.map((i) => /* @__PURE__ */ c("label", {
14568
14568
  className: "data-view__column-selector-item",
14569
14569
  children: [/* @__PURE__ */ e(c0, {
14570
- checked: l.includes(n.key),
14571
- onChange: (s) => i(n.key, s)
14572
- }), /* @__PURE__ */ e("span", { children: n.label })]
14573
- }, n.key))
14570
+ checked: l.includes(i.key),
14571
+ onChange: (s) => n(i.key, s)
14572
+ }), /* @__PURE__ */ e("span", { children: i.label })]
14573
+ }, i.key))
14574
14574
  })
14575
14575
  })]
14576
14576
  });
@@ -14581,10 +14581,10 @@ var $c = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
14581
14581
  `mini-sort--align-${h}`,
14582
14582
  o
14583
14583
  ].filter(Boolean).join(" "),
14584
- children: [t.map((m, i) => {
14585
- const n = m.direction ?? "asc", s = d ? r === m.value : r === m.value && l === n;
14584
+ children: [t.map((m, n) => {
14585
+ const i = m.direction ?? "asc", s = d ? r === m.value : r === m.value && l === i;
14586
14586
  return /* @__PURE__ */ e(X, {
14587
- title: `Sort by ${typeof m.label == "string" || typeof m.label == "number" ? String(m.label) : m.value}${d ? "" : ` ${n === "asc" ? "ascending" : "descending"}`}`,
14587
+ title: `Sort by ${typeof m.label == "string" || typeof m.label == "number" ? String(m.label) : m.value}${d ? "" : ` ${i === "asc" ? "ascending" : "descending"}`}`,
14588
14588
  children: /* @__PURE__ */ e(T, {
14589
14589
  className: `mini-sort__button${s ? " is-active" : ""}`,
14590
14590
  disabled: m.disabled,
@@ -14596,10 +14596,10 @@ var $c = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
14596
14596
  }) : void 0,
14597
14597
  size: "small",
14598
14598
  variant: "ghost",
14599
- onClick: () => a(m.value, d && r === m.value ? l : n),
14599
+ onClick: () => a(m.value, d && r === m.value ? l : i),
14600
14600
  children: m.label ?? m.value
14601
14601
  })
14602
- }, `${m.value}-${i}`);
14602
+ }, `${m.value}-${n}`);
14603
14603
  }), d && /* @__PURE__ */ e(X, {
14604
14604
  title: `Direction: ${l === "asc" ? "ascending" : "descending"}`,
14605
14605
  children: /* @__PURE__ */ e(T, {
@@ -14621,7 +14621,7 @@ function Ec({ columns: t, config: r, sortDirection: l, sortKey: a, onSort: h })
14621
14621
  const d = r?.columns ?? r?.column ?? [];
14622
14622
  return d.length === 0 ? null : /* @__PURE__ */ e($c, {
14623
14623
  items: d.map((o) => {
14624
- const m = t.find((i) => i.key === o.column);
14624
+ const m = t.find((n) => n.key === o.column);
14625
14625
  return {
14626
14626
  value: o.column,
14627
14627
  label: o.label ?? (m ? O2(m) : o.column),
@@ -14642,8 +14642,8 @@ function Dc({ state: t }) {
14642
14642
  children: /* @__PURE__ */ e(P, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
14643
14643
  });
14644
14644
  }
14645
- function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1, onSelectionChange: d, selectedIds: o, pageSizeOptions: m = b2, initialPageSize: i = b2[1], showPageSize: n = !0, card: s, actions: p, actionsWidth: u, timeline: g, onRowClick: v, rowHref: w, rowClassName: f, rowDetail: y, empty: b, initialSortKey: C = null, initialSortDirection: x = "asc", sortKey: k, sortDirection: H, onSortChange: L, miniSort: M, showCardSortControls: V = !0, desktopView: S = "table", cardMaxWidth: _, className: R, onPageChange: B, onPageSizeChange: E, currentPage: O, totalItems: o1, group: N, showResultsCount: q = !0, totalCount: t1, itemNoun: I, columnSelector: D }) {
14646
- const { isMobile: J } = g0(), [h1, U] = z(C), [d1, v1] = z(x), [y1, _1] = z([]), C1 = o ?? y1, [I1, r1] = z(1), s1 = O ?? I1, [A, j] = z(i), [a1, m1] = z(() => t.reduce(($, l1) => (l1.width && ($[l1.key] = l1.width), $), {})), [x1, M1] = z(/* @__PURE__ */ new Set()), E1 = ($) => {
14645
+ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1, onSelectionChange: d, selectedIds: o, pageSizeOptions: m = b2, initialPageSize: n = b2[1], showPageSize: i = !0, card: s, actions: p, actionsWidth: u, timeline: g, onRowClick: v, rowHref: w, rowClassName: f, rowDetail: y, empty: b, initialSortKey: C = null, initialSortDirection: x = "asc", sortKey: k, sortDirection: H, onSortChange: L, miniSort: M, showCardSortControls: V = !0, desktopView: S = "table", cardMaxWidth: _, className: R, onPageChange: B, onPageSizeChange: E, currentPage: O, totalItems: o1, group: N, showResultsCount: q = !0, totalCount: t1, itemNoun: I, columnSelector: D }) {
14646
+ const { isMobile: J } = g0(), [h1, U] = z(C), [d1, v1] = z(x), [y1, _1] = z([]), C1 = o ?? y1, [I1, r1] = z(1), s1 = O ?? I1, [A, j] = z(n), [a1, m1] = z(() => t.reduce(($, l1) => (l1.width && ($[l1.key] = l1.width), $), {})), [x1, M1] = z(/* @__PURE__ */ new Set()), E1 = ($) => {
14647
14647
  M1((l1) => {
14648
14648
  const p1 = new Set(l1);
14649
14649
  return p1.has($) ? p1.delete($) : p1.add($), p1;
@@ -14856,9 +14856,9 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
14856
14856
  totalPages: e0,
14857
14857
  totalItems: J1,
14858
14858
  onPageChange: Q1,
14859
- pageSizeOptions: n ? m : void 0,
14860
- pageSize: n ? A : void 0,
14861
- onPageSizeChange: n ? ($) => {
14859
+ pageSizeOptions: i ? m : void 0,
14860
+ pageSize: i ? A : void 0,
14861
+ onPageSizeChange: i ? ($) => {
14862
14862
  j($), Q1(1), E?.($);
14863
14863
  } : void 0
14864
14864
  })
@@ -15026,9 +15026,9 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
15026
15026
  totalPages: e0,
15027
15027
  totalItems: L1.length,
15028
15028
  onPageChange: Q1,
15029
- pageSizeOptions: n ? m : void 0,
15030
- pageSize: n ? A : void 0,
15031
- onPageSizeChange: n ? ($) => {
15029
+ pageSizeOptions: i ? m : void 0,
15030
+ pageSize: i ? A : void 0,
15031
+ onPageSizeChange: i ? ($) => {
15032
15032
  j($), Q1(1), E?.($);
15033
15033
  } : void 0
15034
15034
  })
@@ -15047,14 +15047,14 @@ var t0 = (t) => {
15047
15047
  if (!(!r || !l || !a))
15048
15048
  return new Date(r, l - 1, a);
15049
15049
  }, H0 = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, li = ({ label: t, value: r, onChange: l, min: a, max: h, alwaysOpen: d = !1, autoClose: o = !0, presets: m }) => {
15050
- const [i, n] = z({}), [s, p] = z(() => /* @__PURE__ */ new Date()), [u, g] = z(null), [v, w] = z(d), [f, y] = z({
15050
+ const [n, i] = z({}), [s, p] = z(() => /* @__PURE__ */ new Date()), [u, g] = z(null), [v, w] = z(d), [f, y] = z({
15051
15051
  position: "fixed",
15052
15052
  visibility: "hidden"
15053
- }), [b, C] = z(r?.start ?? ""), [x, k] = z(r?.end ?? ""), H = K(null), L = K(null), M = r ?? i, V = t0(M.start), S = t0(M.end), _ = V && S ? {
15053
+ }), [b, C] = z(r?.start ?? ""), [x, k] = z(r?.end ?? ""), H = K(null), L = K(null), M = r ?? n, V = t0(M.start), S = t0(M.end), _ = V && S ? {
15054
15054
  start: V,
15055
15055
  end: S
15056
15056
  } : void 0, R = (U) => {
15057
- r || n(U), l?.(U);
15057
+ r || i(U), l?.(U);
15058
15058
  }, B = (U) => {
15059
15059
  U && typeof U == "object" && "start" in U && (R({
15060
15060
  start: H0(U.start),
@@ -15262,24 +15262,24 @@ function X2(t, r) {
15262
15262
  }
15263
15263
  }
15264
15264
  const m = [];
15265
- let i = l, n = a;
15266
- for (let s = o.length - 1; s >= 0 && (i > 0 || n > 0); s--) {
15267
- const p = o[s], u = i - n, g = u + h, v = u === -s || u !== s && p[g - 1] < p[g + 1] ? u + 1 : u - 1, w = p[v + h], f = w - v;
15268
- for (; i > w + 1 && n > f + 1; )
15269
- i--, n--, m.unshift({
15265
+ let n = l, i = a;
15266
+ for (let s = o.length - 1; s >= 0 && (n > 0 || i > 0); s--) {
15267
+ const p = o[s], u = n - i, g = u + h, v = u === -s || u !== s && p[g - 1] < p[g + 1] ? u + 1 : u - 1, w = p[v + h], f = w - v;
15268
+ for (; n > w + 1 && i > f + 1; )
15269
+ n--, i--, m.unshift({
15270
15270
  kind: "eq",
15271
- val: t[i]
15271
+ val: t[n]
15272
15272
  });
15273
- for (s > 0 && (i > w ? (i--, m.unshift({
15273
+ for (s > 0 && (n > w ? (n--, m.unshift({
15274
15274
  kind: "del",
15275
- val: t[i]
15276
- })) : (n--, m.unshift({
15275
+ val: t[n]
15276
+ })) : (i--, m.unshift({
15277
15277
  kind: "ins",
15278
- val: r[n]
15279
- }))); i > w && n > f; )
15280
- i--, n--, m.unshift({
15278
+ val: r[i]
15279
+ }))); n > w && i > f; )
15280
+ n--, i--, m.unshift({
15281
15281
  kind: "eq",
15282
- val: t[i]
15282
+ val: t[n]
15283
15283
  });
15284
15284
  }
15285
15285
  return m;
@@ -15391,9 +15391,9 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
15391
15391
  side: r
15392
15392
  }) : l === "code" ? /* @__PURE__ */ e(jc, { text: a }) : /* @__PURE__ */ e(n1, { children: a });
15393
15393
  }, ai = ({ oldValue: t, newValue: r, mode: l = "split", type: a = "text", oldTitle: h = "Before", newTitle: d = "After", showLineNumbers: o = !0 }) => {
15394
- const m = u1(() => Tc(t, r), [t, r]), i = u1(() => ({
15395
- added: m.filter((n) => n.kind === "added").length,
15396
- removed: m.filter((n) => n.kind === "removed").length
15394
+ const m = u1(() => Tc(t, r), [t, r]), n = u1(() => ({
15395
+ added: m.filter((i) => i.kind === "added").length,
15396
+ removed: m.filter((i) => i.kind === "removed").length
15397
15397
  }), [m]);
15398
15398
  return /* @__PURE__ */ c("div", {
15399
15399
  className: `dv dv--${l} dv--${a}`,
@@ -15417,12 +15417,12 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
15417
15417
  ]
15418
15418
  }), /* @__PURE__ */ c("div", {
15419
15419
  className: "dv__stats",
15420
- children: [i.removed > 0 && /* @__PURE__ */ c("span", {
15420
+ children: [n.removed > 0 && /* @__PURE__ */ c("span", {
15421
15421
  className: "dv__stat dv__stat--removed",
15422
- children: ["−", i.removed]
15423
- }), i.added > 0 && /* @__PURE__ */ c("span", {
15422
+ children: ["−", n.removed]
15423
+ }), n.added > 0 && /* @__PURE__ */ c("span", {
15424
15424
  className: "dv__stat dv__stat--added",
15425
- children: ["+", i.added]
15425
+ children: ["+", n.added]
15426
15426
  })]
15427
15427
  })]
15428
15428
  }), /* @__PURE__ */ e("div", {
@@ -15431,23 +15431,23 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
15431
15431
  className: "dv__split",
15432
15432
  children: [/* @__PURE__ */ e("div", {
15433
15433
  className: "dv__pane dv__pane--old",
15434
- children: m.map((n, s) => {
15435
- const p = n.kind === "added";
15434
+ children: m.map((i, s) => {
15435
+ const p = i.kind === "added";
15436
15436
  return /* @__PURE__ */ c("div", {
15437
- className: `dv__row ${p ? "dv__row--blank" : `dv__row--${n.kind}`}`,
15437
+ className: `dv__row ${p ? "dv__row--blank" : `dv__row--${i.kind}`}`,
15438
15438
  children: [
15439
15439
  o && /* @__PURE__ */ e("span", {
15440
15440
  className: "dv__lineno",
15441
- children: p ? "" : n.oldLineNo
15441
+ children: p ? "" : i.oldLineNo
15442
15442
  }),
15443
15443
  /* @__PURE__ */ e("span", {
15444
15444
  className: "dv__gutter",
15445
- children: p ? "" : n.kind === "removed" ? "−" : " "
15445
+ children: p ? "" : i.kind === "removed" ? "−" : " "
15446
15446
  }),
15447
15447
  /* @__PURE__ */ e("span", {
15448
15448
  className: "dv__code",
15449
15449
  children: !p && /* @__PURE__ */ e(X0, {
15450
- line: n,
15450
+ line: i,
15451
15451
  side: "old",
15452
15452
  type: a
15453
15453
  })
@@ -15457,23 +15457,23 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
15457
15457
  })
15458
15458
  }), /* @__PURE__ */ e("div", {
15459
15459
  className: "dv__pane dv__pane--new",
15460
- children: m.map((n, s) => {
15461
- const p = n.kind === "removed";
15460
+ children: m.map((i, s) => {
15461
+ const p = i.kind === "removed";
15462
15462
  return /* @__PURE__ */ c("div", {
15463
- className: `dv__row ${p ? "dv__row--blank" : `dv__row--${n.kind}`}`,
15463
+ className: `dv__row ${p ? "dv__row--blank" : `dv__row--${i.kind}`}`,
15464
15464
  children: [
15465
15465
  o && /* @__PURE__ */ e("span", {
15466
15466
  className: "dv__lineno",
15467
- children: p ? "" : n.newLineNo
15467
+ children: p ? "" : i.newLineNo
15468
15468
  }),
15469
15469
  /* @__PURE__ */ e("span", {
15470
15470
  className: "dv__gutter",
15471
- children: p ? "" : n.kind === "added" ? "+" : " "
15471
+ children: p ? "" : i.kind === "added" ? "+" : " "
15472
15472
  }),
15473
15473
  /* @__PURE__ */ e("span", {
15474
15474
  className: "dv__code",
15475
15475
  children: !p && /* @__PURE__ */ e(X0, {
15476
- line: n,
15476
+ line: i,
15477
15477
  side: "new",
15478
15478
  type: a
15479
15479
  })
@@ -15484,25 +15484,25 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
15484
15484
  })]
15485
15485
  }) : /* @__PURE__ */ e("div", {
15486
15486
  className: "dv__inline",
15487
- children: m.map((n, s) => /* @__PURE__ */ c("div", {
15488
- className: `dv__row dv__row--${n.kind}`,
15487
+ children: m.map((i, s) => /* @__PURE__ */ c("div", {
15488
+ className: `dv__row dv__row--${i.kind}`,
15489
15489
  children: [
15490
15490
  o && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("span", {
15491
15491
  className: "dv__lineno",
15492
- children: n.kind !== "added" ? n.oldLineNo : ""
15492
+ children: i.kind !== "added" ? i.oldLineNo : ""
15493
15493
  }), /* @__PURE__ */ e("span", {
15494
15494
  className: "dv__lineno",
15495
- children: n.kind !== "removed" ? n.newLineNo : ""
15495
+ children: i.kind !== "removed" ? i.newLineNo : ""
15496
15496
  })] }),
15497
15497
  /* @__PURE__ */ e("span", {
15498
15498
  className: "dv__gutter",
15499
- children: n.kind === "removed" ? "−" : n.kind === "added" ? "+" : " "
15499
+ children: i.kind === "removed" ? "−" : i.kind === "added" ? "+" : " "
15500
15500
  }),
15501
15501
  /* @__PURE__ */ e("span", {
15502
15502
  className: "dv__code",
15503
15503
  children: /* @__PURE__ */ e(X0, {
15504
- line: n,
15505
- side: n.kind === "removed" ? "old" : "new",
15504
+ line: i,
15505
+ side: i.kind === "removed" ? "old" : "new",
15506
15506
  type: a
15507
15507
  })
15508
15508
  })
@@ -15511,7 +15511,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
15511
15511
  })
15512
15512
  })]
15513
15513
  });
15514
- }, Wc = 1e3, M2 = 0, K2 = ({ isOpen: t, onClose: r, position: l = "left", width: a = "320px", maxWidth: h = "none", margin: d = 0, borderRadius: o = 0, shadow: m = "none", children: i, title: n, icon: s, className: p = "", showOverlay: u = !0, lockScroll: g = !0, hideClose: v = !1, actions: w = [], onBack: f, backLabel: y = "Back", primary: b, secondary: C, footer: x }) => {
15514
+ }, Wc = 1e3, M2 = 0, K2 = ({ 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: y = "Back", primary: b, secondary: C, footer: x }) => {
15515
15515
  $2(t && g);
15516
15516
  const [k, H] = z(0);
15517
15517
  if (F(() => {
@@ -15552,11 +15552,11 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
15552
15552
  icon: "arrow-left"
15553
15553
  })
15554
15554
  }),
15555
- (n || s) && /* @__PURE__ */ c("h2", {
15555
+ (i || s) && /* @__PURE__ */ c("h2", {
15556
15556
  className: "drawer__title",
15557
- children: [s && /* @__PURE__ */ e(P, { name: s }), n && /* @__PURE__ */ e("span", {
15557
+ children: [s && /* @__PURE__ */ e(P, { name: s }), i && /* @__PURE__ */ e("span", {
15558
15558
  className: "drawer__title-text",
15559
- children: n
15559
+ children: i
15560
15560
  })]
15561
15561
  }),
15562
15562
  w.length > 0 && /* @__PURE__ */ e("div", {
@@ -15592,7 +15592,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
15592
15592
  }),
15593
15593
  /* @__PURE__ */ e("div", {
15594
15594
  className: "drawer__content",
15595
- children: i
15595
+ children: n
15596
15596
  }),
15597
15597
  S && /* @__PURE__ */ c("div", {
15598
15598
  className: "drawer__footer",
@@ -20668,9 +20668,9 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20668
20668
  ], ii = ({ value: t, onChange: r }) => {
20669
20669
  const [l, a] = z(""), [h, d] = z(S0[0].id), o = u1(() => {
20670
20670
  if (!l.trim()) return null;
20671
- const i = l.toLowerCase();
20672
- return S0.flatMap((n) => n.emojis.filter((s) => Jc[s]?.some((p) => p.includes(i)) || n.name.toLowerCase().includes(i)));
20673
- }, [l]), m = o ?? S0.find((i) => i.id === h)?.emojis ?? [];
20671
+ const n = l.toLowerCase();
20672
+ return S0.flatMap((i) => i.emojis.filter((s) => Jc[s]?.some((p) => p.includes(n)) || i.name.toLowerCase().includes(n)));
20673
+ }, [l]), m = o ?? S0.find((n) => n.id === h)?.emojis ?? [];
20674
20674
  return /* @__PURE__ */ c("div", {
20675
20675
  className: "emoji-picker",
20676
20676
  children: [
@@ -20685,23 +20685,23 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20685
20685
  }),
20686
20686
  !o && /* @__PURE__ */ e("div", {
20687
20687
  className: "emoji-picker__categories",
20688
- children: S0.map((i) => /* @__PURE__ */ e("button", {
20689
- className: `emoji-picker__cat-btn${h === i.id ? " is-active" : ""}`,
20690
- title: i.name,
20691
- onClick: () => d(i.id),
20692
- children: i.icon
20693
- }, i.id))
20688
+ children: S0.map((n) => /* @__PURE__ */ e("button", {
20689
+ className: `emoji-picker__cat-btn${h === n.id ? " is-active" : ""}`,
20690
+ title: n.name,
20691
+ onClick: () => d(n.id),
20692
+ children: n.icon
20693
+ }, n.id))
20694
20694
  }),
20695
20695
  /* @__PURE__ */ e("div", {
20696
20696
  className: "emoji-picker__grid",
20697
20697
  children: m.length === 0 ? /* @__PURE__ */ e("p", {
20698
20698
  className: "emoji-picker__empty",
20699
20699
  children: "No results"
20700
- }) : m.map((i, n) => /* @__PURE__ */ e("button", {
20701
- className: `emoji-picker__emoji${t === i ? " is-selected" : ""}`,
20702
- onClick: () => r?.(i),
20703
- children: i
20704
- }, n))
20700
+ }) : m.map((n, i) => /* @__PURE__ */ e("button", {
20701
+ className: `emoji-picker__emoji${t === n ? " is-selected" : ""}`,
20702
+ onClick: () => r?.(n),
20703
+ children: n
20704
+ }, i))
20705
20705
  })
20706
20706
  ]
20707
20707
  });
@@ -20734,7 +20734,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20734
20734
  }) : r;
20735
20735
  }
20736
20736
  }, oi = ({ label: t, accept: r, multiple: l = !1, showPreview: a = !0, onFiles: h }) => {
20737
- const [d, o] = z(!1), [m, i] = z([]), n = K(null), [s, p] = z([]);
20737
+ const [d, o] = z(!1), [m, n] = z([]), i = K(null), [s, p] = z([]);
20738
20738
  F(() => {
20739
20739
  if (!a) return;
20740
20740
  const v = m.filter((w) => w.type.startsWith("image/")).map((w) => URL.createObjectURL(w));
@@ -20745,7 +20745,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20745
20745
  const u = Z((v) => {
20746
20746
  if (!v) return;
20747
20747
  const w = l ? Array.from(v) : [v[0]].filter(Boolean);
20748
- i(w), h?.(w);
20748
+ n(w), h?.(w);
20749
20749
  }, [l, h]);
20750
20750
  return /* @__PURE__ */ c("div", {
20751
20751
  className: "file-dropzone",
@@ -20766,9 +20766,9 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20766
20766
  onDrop: (v) => {
20767
20767
  v.preventDefault(), o(!1), u(v.dataTransfer.files);
20768
20768
  },
20769
- onClick: () => n.current?.click(),
20769
+ onClick: () => i.current?.click(),
20770
20770
  children: [/* @__PURE__ */ e("input", {
20771
- ref: n,
20771
+ ref: i,
20772
20772
  type: "file",
20773
20773
  accept: r,
20774
20774
  multiple: l,
@@ -20858,12 +20858,12 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20858
20858
  className: "loading",
20859
20859
  children: /* @__PURE__ */ e("div", { className: "loading__spinner" })
20860
20860
  }), hi = ({ isOpen: t, title: r = "Select a folder", initialPath: l, loadDirectory: a, onSelect: h, onClose: d, selectLabel: o = "Select this folder" }) => {
20861
- const [m, i] = z(null), [n, s] = z(!1), [p, u] = z(""), g = Z(async (b) => {
20861
+ const [m, n] = z(null), [i, s] = z(!1), [p, u] = z(""), g = Z(async (b) => {
20862
20862
  s(!0);
20863
20863
  try {
20864
- i(await a(b));
20864
+ n(await a(b));
20865
20865
  } catch {
20866
- i({
20866
+ n({
20867
20867
  current: b ?? null,
20868
20868
  parent: null,
20869
20869
  drives: [],
@@ -20887,7 +20887,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20887
20887
  m && g(m.parent ?? "");
20888
20888
  }, w = () => {
20889
20889
  const b = p.trim();
20890
- n || b === (m?.current ?? "") || g(b === "" ? void 0 : b);
20890
+ i || b === (m?.current ?? "") || g(b === "" ? void 0 : b);
20891
20891
  }, f = m?.current === null, y = f ? m?.drives.map((b) => ({
20892
20892
  name: b,
20893
20893
  path: b
@@ -20921,7 +20921,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20921
20921
  variant: "default",
20922
20922
  size: "small",
20923
20923
  icon: "arrow-up",
20924
- disabled: n || f,
20924
+ disabled: i || f,
20925
20925
  onClick: v,
20926
20926
  children: "Up"
20927
20927
  }),
@@ -20930,7 +20930,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20930
20930
  children: /* @__PURE__ */ e(V1, {
20931
20931
  value: p,
20932
20932
  placeholder: "Paste or type a folder path, then press Enter",
20933
- disabled: n,
20933
+ disabled: i,
20934
20934
  onChange: u,
20935
20935
  onKeyDown: (b) => b.key === "Enter" && w()
20936
20936
  })
@@ -20939,7 +20939,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20939
20939
  variant: "default",
20940
20940
  size: "small",
20941
20941
  icon: "arrow-right",
20942
- disabled: n,
20942
+ disabled: i,
20943
20943
  onClick: w,
20944
20944
  children: "Go"
20945
20945
  })
@@ -20951,7 +20951,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20951
20951
  }),
20952
20952
  /* @__PURE__ */ e("div", {
20953
20953
  className: "folder-browser__list",
20954
- children: n ? /* @__PURE__ */ e("div", {
20954
+ children: i ? /* @__PURE__ */ e("div", {
20955
20955
  className: "folder-browser__loading",
20956
20956
  children: /* @__PURE__ */ e(Q2, {})
20957
20957
  }) : y.length === 0 ? /* @__PURE__ */ e(r0, {
@@ -20987,7 +20987,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
20987
20987
  ]
20988
20988
  })
20989
20989
  });
20990
- }, di = ({ children: t, onLoadMore: r, hasMore: l, isLoading: a = !1, threshold: h = 0, rootMargin: d = "0px", height: o, onScrollChange: m, endMessage: i, className: n }) => {
20990
+ }, di = ({ children: t, onLoadMore: r, hasMore: l, isLoading: a = !1, threshold: h = 0, rootMargin: d = "0px", height: o, onScrollChange: m, endMessage: n, className: i }) => {
20991
20991
  const s = K(null), p = K(null), u = K(null), g = Z(() => {
20992
20992
  const v = s.current;
20993
20993
  if (!v) return;
@@ -21023,7 +21023,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
21023
21023
  return v.addEventListener("scroll", g, { passive: !0 }), g(), () => v.removeEventListener("scroll", g);
21024
21024
  }, [g]), /* @__PURE__ */ c("div", {
21025
21025
  ref: s,
21026
- className: `infinite-scroll${n ? ` ${n}` : ""}`,
21026
+ className: `infinite-scroll${i ? ` ${i}` : ""}`,
21027
21027
  style: o !== void 0 ? { height: o } : void 0,
21028
21028
  children: [
21029
21029
  t,
@@ -21038,13 +21038,13 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
21038
21038
  children: /* @__PURE__ */ e(Q2, {})
21039
21039
  })]
21040
21040
  }),
21041
- !l && !a && i && /* @__PURE__ */ e("div", {
21041
+ !l && !a && n && /* @__PURE__ */ e("div", {
21042
21042
  className: "infinite-scroll__end",
21043
- children: i
21043
+ children: n
21044
21044
  })
21045
21045
  ]
21046
21046
  });
21047
- }, el = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, tl = (t) => !t || t.trim() === "" ? !0 : el.test(t.trim()), mi = 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: i, onChange: n, onClick: s, onKeyDown: p, onKeyUp: u, onValidate: g, placeholder: v, readOnly: w = !1, required: f = !1, showValidation: y = !1, success: b, validateOn: C = "blur", value: x }, k) => {
21047
+ }, el = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, tl = (t) => !t || t.trim() === "" ? !0 : el.test(t.trim()), mi = 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: y = !1, success: b, validateOn: C = "blur", value: x }, k) => {
21048
21048
  const [H, L] = z(!0), [M, V] = z(!1), S = (E) => f && (!E || E.trim() === "") ? !1 : !E || E.trim() === "" ? !0 : tl(E);
21049
21049
  F(() => {
21050
21050
  if (x !== void 0) {
@@ -21057,7 +21057,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
21057
21057
  f
21058
21058
  ]);
21059
21059
  const _ = (E) => {
21060
- if (n?.(E), C === "change" || C === "both") {
21060
+ if (i?.(E), C === "change" || C === "both") {
21061
21061
  const O = S(E);
21062
21062
  L(O), V(!0), g?.(O);
21063
21063
  }
@@ -21066,7 +21066,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
21066
21066
  const O = S(E.target.value);
21067
21067
  L(O), g?.(O);
21068
21068
  }
21069
- i?.(E);
21069
+ n?.(E);
21070
21070
  }, B = y && M && !H;
21071
21071
  return /* @__PURE__ */ c("div", {
21072
21072
  className: `input-email-wrapper${h ? " input-email-highlighted" : ""}`,
@@ -21108,7 +21108,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
21108
21108
  })
21109
21109
  ]
21110
21110
  });
21111
- }), pi = z1(({ accept: t, disabled: r, error: l, highlighted: a, id: h, label: d, onChange: o, onClick: m, onKeyDown: i, placeholder: n, required: s, success: p, value: u }, g) => /* @__PURE__ */ c("div", {
21111
+ }), pi = 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", {
21112
21112
  className: `input-file-wrapper${a ? " input-file-highlighted" : ""}`,
21113
21113
  children: [
21114
21114
  d && /* @__PURE__ */ c("label", {
@@ -21125,12 +21125,12 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
21125
21125
  type: "file",
21126
21126
  className: `input-file${l ? " input-file-error" : ""}${p ? " input-file-success" : ""}`,
21127
21127
  id: h,
21128
- placeholder: n,
21128
+ placeholder: i,
21129
21129
  ref: g,
21130
21130
  value: u,
21131
21131
  onChange: (v) => o?.(v.target.files),
21132
21132
  onClick: m,
21133
- onKeyDown: i
21133
+ onKeyDown: n
21134
21134
  }),
21135
21135
  l && /* @__PURE__ */ e("span", {
21136
21136
  className: "input-file-error-message",
@@ -21179,7 +21179,7 @@ function K0(t, r, l) {
21179
21179
  function ll(t) {
21180
21180
  return t.filter((r) => r.type === "token").length;
21181
21181
  }
21182
- var al = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, label: d, hint: o, error: m, highlighted: i, size: n = "md", variant: s = "default", disabled: p = !1, readOnly: u = !1, maskChar: g = "_", mono: v = !0, icon: w, suffix: f, className: y = "", id: b, name: C, autoComplete: x }, k) => {
21182
+ var al = 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: y = "", id: b, name: C, autoComplete: x }, k) => {
21183
21183
  const H = g1.useMemo(() => cl(t), [t]), L = g1.useMemo(() => ll(H), [H]), M = z0(), V = b ?? M, [S, _] = z(() => r !== void 0 ? r : ""), R = K(null);
21184
21184
  B2(k, () => ({
21185
21185
  focus: () => R.current?.focus(),
@@ -21190,9 +21190,9 @@ var al = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, la
21190
21190
  }));
21191
21191
  const { masked: B } = K0(S, H, g), E = B.includes(g) ? B.replace(new RegExp(g.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), g) : B, O = m ? "danger" : s, o1 = [
21192
21192
  "input-mask",
21193
- `input-mask--${n}`,
21193
+ `input-mask--${i}`,
21194
21194
  `input-mask--${O}`,
21195
- i ? "input-mask--highlighted" : "",
21195
+ n ? "input-mask--highlighted" : "",
21196
21196
  p ? "input-mask--disabled" : "",
21197
21197
  u ? "input-mask--readonly" : "",
21198
21198
  v ? "input-mask--mono" : "",
@@ -21295,7 +21295,7 @@ var vi = {
21295
21295
  date: "99/99/9999",
21296
21296
  time: "99:99",
21297
21297
  uuid: "********-****-****-****-************"
21298
- }, u0 = z1(({ autoComplete: t = "on", autoFocus: r, disabled: l, error: a, highlighted: h, id: d, label: o, maxLength: m, onBlur: i, onChange: n, onClick: s, onKeyDown: p, onKeyUp: u, placeholder: g, readOnly: v = !1, required: w = !1, success: f, value: y }, b) => /* @__PURE__ */ c("div", {
21298
+ }, u0 = z1(({ autoComplete: t = "on", autoFocus: r, disabled: l, error: a, highlighted: h, id: d, label: o, maxLength: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, placeholder: g, readOnly: v = !1, required: w = !1, success: f, value: y }, b) => /* @__PURE__ */ c("div", {
21299
21299
  className: `input-password-wrapper${h ? " input-password-highlighted" : ""}`,
21300
21300
  children: [
21301
21301
  o && /* @__PURE__ */ c("label", {
@@ -21317,8 +21317,8 @@ var vi = {
21317
21317
  placeholder: g,
21318
21318
  ref: b,
21319
21319
  value: y,
21320
- onBlur: i,
21321
- onChange: (C) => n?.(C.target.value),
21320
+ onBlur: n,
21321
+ onChange: (C) => i?.(C.target.value),
21322
21322
  onClick: s,
21323
21323
  onKeyDown: p,
21324
21324
  onKeyUp: u,
@@ -21347,10 +21347,10 @@ function J0(t) {
21347
21347
  function nl(t) {
21348
21348
  return t.split("").filter((r) => r === "#").length;
21349
21349
  }
21350
- var ol = z1(({ autoFocus: t, disabled: r, error: l, format: a = il, highlighted: h, id: d, label: o, onBlur: m, onChange: i, onClick: n, onKeyDown: s, placeholder: p, readOnly: u = !1, required: g = !1, success: v, value: w }, f) => {
21350
+ var ol = z1(({ autoFocus: t, disabled: r, error: l, format: a = il, 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) => {
21351
21351
  const y = w !== void 0, [b, C] = z(() => w ? Q0(J0(w), a) : ""), x = y ? Q0(J0(w ?? ""), a) : b, k = p ?? a.replace(/#/g, "0"), H = a.length, L = (M) => {
21352
21352
  const V = J0(M), S = nl(a), _ = V.slice(0, S), R = Q0(_, a);
21353
- y || C(R), i?.(R, _);
21353
+ y || C(R), n?.(R, _);
21354
21354
  };
21355
21355
  return /* @__PURE__ */ c("div", {
21356
21356
  className: "input-phone-wrapper",
@@ -21393,7 +21393,7 @@ var ol = z1(({ autoFocus: t, disabled: r, error: l, format: a = il, highlighted:
21393
21393
  value: x,
21394
21394
  onBlur: m,
21395
21395
  onChange: (M) => L(M.target.value),
21396
- onClick: n,
21396
+ onClick: i,
21397
21397
  onKeyDown: s
21398
21398
  })]
21399
21399
  }),
@@ -21409,7 +21409,7 @@ var ol = z1(({ autoFocus: t, disabled: r, error: l, format: a = il, highlighted:
21409
21409
  });
21410
21410
  });
21411
21411
  ol.displayName = "InputPhone";
21412
- var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error: h, id: d, label: o, maxLength: m, onBlur: i, onChange: n, onClick: s, onKeyDown: p, onKeyUp: u, placeholder: g, required: v, rows: w, success: f, value: y }, b) => /* @__PURE__ */ c("div", {
21412
+ var ui = 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: y }, b) => /* @__PURE__ */ c("div", {
21413
21413
  className: "input-textarea-wrapper",
21414
21414
  children: [
21415
21415
  o && /* @__PURE__ */ c("label", {
@@ -21428,8 +21428,8 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21428
21428
  disabled: a,
21429
21429
  id: d,
21430
21430
  maxLength: m,
21431
- onBlur: i,
21432
- onChange: (C) => n?.(C.target.value),
21431
+ onBlur: n,
21432
+ onChange: (C) => i?.(C.target.value),
21433
21433
  onClick: s,
21434
21434
  onKeyDown: p,
21435
21435
  onKeyUp: u,
@@ -21447,7 +21447,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21447
21447
  children: f
21448
21448
  })
21449
21449
  ]
21450
- })), gi = z1(({ autoFocus: t, disabled: r, error: l, highlighted: a, id: h, label: d, max: o, min: m, onBlur: i, onChange: n, onClick: s, onKeyDown: p, onKeyUp: u, readOnly: g = !1, required: v = !1, success: w, value: f }, y) => /* @__PURE__ */ c("div", {
21450
+ })), gi = 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 }, y) => /* @__PURE__ */ c("div", {
21451
21451
  className: `input-time-wrapper${a ? " input-time-highlighted" : ""}`,
21452
21452
  children: [
21453
21453
  d && /* @__PURE__ */ c("label", {
@@ -21468,8 +21468,8 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21468
21468
  min: m,
21469
21469
  ref: y,
21470
21470
  value: f ?? "",
21471
- onBlur: i,
21472
- onChange: (b) => n?.(b.target.value || void 0),
21471
+ onBlur: n,
21472
+ onChange: (b) => i?.(b.target.value || void 0),
21473
21473
  onClick: s,
21474
21474
  onKeyDown: p,
21475
21475
  onKeyUp: u,
@@ -21492,14 +21492,14 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21492
21492
  } catch {
21493
21493
  return !1;
21494
21494
  }
21495
- }, wi = z1(({ autoFocus: t, disabled: r, error: l, highlighted: a, id: h, label: d, maxLength: o, onBlur: m, onChange: i, onClick: n, onKeyDown: s, onKeyUp: p, onValidationChange: u, placeholder: g = "https://...", readOnly: v = !1, required: w = !1, success: f, validationErrorMessage: y, value: b }, C) => {
21495
+ }, wi = 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: y, value: b }, C) => {
21496
21496
  const [x, k] = z(void 0), H = (S) => {
21497
21497
  if (!S)
21498
21498
  return k(void 0), u?.(!0), !0;
21499
21499
  const _ = hl(S);
21500
21500
  return k(_ ? void 0 : y ?? sl), u?.(_), _;
21501
21501
  }, L = (S) => {
21502
- i?.(S), x && H(S);
21502
+ n?.(S), x && H(S);
21503
21503
  }, M = (S) => {
21504
21504
  H(S.target.value), m?.(S);
21505
21505
  }, V = l ?? x;
@@ -21526,7 +21526,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21526
21526
  value: b,
21527
21527
  onBlur: M,
21528
21528
  onChange: (S) => L(S.target.value),
21529
- onClick: n,
21529
+ onClick: i,
21530
21530
  onKeyDown: s,
21531
21531
  onKeyUp: p,
21532
21532
  readOnly: v,
@@ -21543,18 +21543,18 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21543
21543
  ]
21544
21544
  });
21545
21545
  }), fi = ({ isOpen: t, onClose: r, onComplete: l, steps: a, title: h, presentation: d = "drawer", width: o = "480px" }) => {
21546
- const [m, i] = z(0);
21546
+ const [m, n] = z(0);
21547
21547
  F(() => {
21548
- t && i(0);
21548
+ t && n(0);
21549
21549
  }, [t]);
21550
- const n = a[m], s = m === a.length - 1, p = m === 0, u = n?.canProceed !== !1, g = n?.canGoBack !== !1, v = () => {
21551
- m < a.length - 1 && i((x) => x + 1);
21550
+ const i = a[m], s = m === a.length - 1, p = m === 0, u = i?.canProceed !== !1, g = i?.canGoBack !== !1, v = () => {
21551
+ m < a.length - 1 && n((x) => x + 1);
21552
21552
  }, w = () => {
21553
- m > 0 && i((x) => x - 1);
21553
+ m > 0 && n((x) => x - 1);
21554
21554
  }, f = () => {
21555
- i(0), r();
21555
+ n(0), r();
21556
21556
  }, y = () => {
21557
- i(0), l();
21557
+ n(0), l();
21558
21558
  }, b = /* @__PURE__ */ e("div", {
21559
21559
  className: "journey-wizard__progress",
21560
21560
  children: a.map((x, k) => /* @__PURE__ */ e("span", { className: `journey-wizard__dot${k === m ? " journey-wizard__dot--active" : k < m ? " journey-wizard__dot--done" : ""}` }, x.id))
@@ -21609,14 +21609,14 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21609
21609
  className: "journey-wizard__step-header",
21610
21610
  children: [/* @__PURE__ */ e("h2", {
21611
21611
  className: "journey-wizard__step-title",
21612
- children: n?.title
21613
- }), n?.subtitle && /* @__PURE__ */ e("p", {
21612
+ children: i?.title
21613
+ }), i?.subtitle && /* @__PURE__ */ e("p", {
21614
21614
  className: "journey-wizard__step-subtitle",
21615
- children: n.subtitle
21615
+ children: i.subtitle
21616
21616
  })]
21617
21617
  }), /* @__PURE__ */ e("div", {
21618
21618
  className: "journey-wizard__step-content",
21619
- children: n?.content
21619
+ children: i?.content
21620
21620
  })]
21621
21621
  }),
21622
21622
  C
@@ -21637,14 +21637,14 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21637
21637
  className: "journey-wizard__step-header",
21638
21638
  children: [/* @__PURE__ */ e("h2", {
21639
21639
  className: "journey-wizard__step-title",
21640
- children: n?.title
21641
- }), n?.subtitle && /* @__PURE__ */ e("p", {
21640
+ children: i?.title
21641
+ }), i?.subtitle && /* @__PURE__ */ e("p", {
21642
21642
  className: "journey-wizard__step-subtitle",
21643
- children: n.subtitle
21643
+ children: i.subtitle
21644
21644
  })]
21645
21645
  }), /* @__PURE__ */ e("div", {
21646
21646
  className: "journey-wizard__step-content",
21647
- children: n?.content
21647
+ children: i?.content
21648
21648
  })]
21649
21649
  }),
21650
21650
  C
@@ -21665,43 +21665,43 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21665
21665
  className: "journey-wizard__step-header",
21666
21666
  children: [/* @__PURE__ */ e("h2", {
21667
21667
  className: "journey-wizard__step-title",
21668
- children: n?.title
21669
- }), n?.subtitle && /* @__PURE__ */ e("p", {
21668
+ children: i?.title
21669
+ }), i?.subtitle && /* @__PURE__ */ e("p", {
21670
21670
  className: "journey-wizard__step-subtitle",
21671
- children: n.subtitle
21671
+ children: i.subtitle
21672
21672
  })]
21673
21673
  }), /* @__PURE__ */ e("div", {
21674
21674
  className: "journey-wizard__step-content",
21675
- children: n?.content
21675
+ children: i?.content
21676
21676
  })]
21677
21677
  })]
21678
21678
  })
21679
21679
  });
21680
21680
  }, Ci = ({ items: t, direction: r = "vertical", selectable: l = !1, defaultSelectedId: a, onSelect: h, className: d = "" }) => {
21681
- const [o, m] = z(a), i = (n) => {
21682
- !l || n.disabled || (m(n.id), h?.(n));
21681
+ const [o, m] = z(a), n = (i) => {
21682
+ !l || i.disabled || (m(i.id), h?.(i));
21683
21683
  };
21684
21684
  return /* @__PURE__ */ e("ul", {
21685
21685
  className: `list list--${r} ${l ? "list--selectable" : ""} ${d}`,
21686
- children: t.map((n, s) => {
21687
- const p = l && o === n.id;
21686
+ children: t.map((i, s) => {
21687
+ const p = l && o === i.id;
21688
21688
  return /* @__PURE__ */ e("li", {
21689
21689
  className: [
21690
21690
  "list__item",
21691
21691
  s % 2 === 1 ? "list__item--alternate" : "",
21692
21692
  p ? "list__item--active" : "",
21693
- n.disabled ? "list__item--disabled" : ""
21693
+ i.disabled ? "list__item--disabled" : ""
21694
21694
  ].filter(Boolean).join(" "),
21695
- onClick: () => i(n),
21696
- children: n.label
21697
- }, n.id);
21695
+ onClick: () => n(i),
21696
+ children: i.label
21697
+ }, i.id);
21698
21698
  })
21699
21699
  });
21700
21700
  }, dl = ({ icon: t = "menu-hamburger", isCompact: r, items: l, label: a, showLabel: h = !0, disableResponsive: d = !1 }) => {
21701
- const { isAtLeast: o } = g0(), [m, i] = z(null), n = (v) => {
21702
- i(v.currentTarget);
21701
+ const { isAtLeast: o } = g0(), [m, n] = z(null), i = (v) => {
21702
+ n(v.currentTarget);
21703
21703
  }, s = () => {
21704
- i(null);
21704
+ n(null);
21705
21705
  }, p = d ? !0 : o("tablet");
21706
21706
  if (l.length === 1) {
21707
21707
  const v = l[0], w = p && h;
@@ -21723,7 +21723,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21723
21723
  className: "MenuHamburger",
21724
21724
  children: [/* @__PURE__ */ e(T, {
21725
21725
  variant: r || !p ? "plain" : "default",
21726
- onClick: n,
21726
+ onClick: i,
21727
21727
  icon: t,
21728
21728
  className: g ? "" : "MenuHamburger_opener--icon-only",
21729
21729
  children: g ? a : ""
@@ -21751,17 +21751,17 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21751
21751
  })]
21752
21752
  });
21753
21753
  }, M0 = (t) => Math.max(0, Math.min(1, t)), yi = ({ buckets: t, viewportStart: r, viewportEnd: l, onScrub: a, bands: h, caption: d, className: o = "" }) => {
21754
- const m = K(null), i = K(!1), n = Math.max(0, l - r), s = Math.max(1, ...t), p = Z((w) => {
21754
+ const m = K(null), n = K(!1), i = Math.max(0, l - r), s = Math.max(1, ...t), p = Z((w) => {
21755
21755
  const f = m.current;
21756
21756
  if (!f) return;
21757
21757
  const y = f.getBoundingClientRect(), b = M0((w - y.left) / y.width);
21758
- a(Math.max(0, Math.min(1 - n, b - n / 2)));
21759
- }, [a, n]), u = Z((w) => {
21760
- i.current = !0, w.currentTarget.setPointerCapture(w.pointerId), p(w.clientX);
21758
+ a(Math.max(0, Math.min(1 - i, b - i / 2)));
21759
+ }, [a, i]), u = Z((w) => {
21760
+ n.current = !0, w.currentTarget.setPointerCapture(w.pointerId), p(w.clientX);
21761
21761
  }, [p]), g = Z((w) => {
21762
- i.current && p(w.clientX);
21762
+ n.current && p(w.clientX);
21763
21763
  }, [p]), v = Z((w) => {
21764
- i.current = !1, w.currentTarget.hasPointerCapture(w.pointerId) && w.currentTarget.releasePointerCapture(w.pointerId);
21764
+ n.current = !1, w.currentTarget.hasPointerCapture(w.pointerId) && w.currentTarget.releasePointerCapture(w.pointerId);
21765
21765
  }, []);
21766
21766
  return /* @__PURE__ */ c("div", {
21767
21767
  className: `minimap ${o}`.trim(),
@@ -21798,13 +21798,13 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21798
21798
  className: "minimap__viewport",
21799
21799
  style: {
21800
21800
  left: `${M0(r) * 100}%`,
21801
- width: `${M0(n) * 100}%`
21801
+ width: `${M0(i) * 100}%`
21802
21802
  }
21803
21803
  })
21804
21804
  ]
21805
21805
  })]
21806
21806
  });
21807
- }, bi = ({ label: t, value: r, unit: l, variant: a = "default", align: h = "center", labelPosition: d = "bottom", trend: o, trendUnit: m = "%", trendLabel: i, trendVariant: n = "success", footer: s, filled: p = !1, className: u = "" }) => {
21807
+ }, bi = ({ 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 = "" }) => {
21808
21808
  const g = () => /* @__PURE__ */ c("div", {
21809
21809
  className: `mini-stats-card__value mini-stats-card__value--${a}`,
21810
21810
  children: [/* @__PURE__ */ e("span", {
@@ -21819,9 +21819,9 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21819
21819
  children: t
21820
21820
  }), w = () => {
21821
21821
  if (o === void 0) return null;
21822
- const f = o > 0, y = o < 0, b = Math.abs(o), C = i ?? (m ? `${b}${m}` : `${b}`);
21822
+ const f = o > 0, y = o < 0, b = Math.abs(o), C = n ?? (m ? `${b}${m}` : `${b}`);
21823
21823
  return /* @__PURE__ */ c("div", {
21824
- className: `mini-stats-card__trend mini-stats-card__trend--${n}`,
21824
+ className: `mini-stats-card__trend mini-stats-card__trend--${i}`,
21825
21825
  children: [
21826
21826
  f && /* @__PURE__ */ e("span", {
21827
21827
  className: "mini-stats-card__trend-arrow",
@@ -21863,8 +21863,8 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21863
21863
  })]
21864
21864
  });
21865
21865
  }, Mi = ({ items: t, logo: r, actions: l, position: a = "static", className: h = "", renderItem: d, collapsible: o = !1, noPadding: m = !1 }) => {
21866
- const [i, n] = z(!1), s = (v) => {
21867
- v.disabled || (v.onClick && v.onClick(), o && n(!1));
21866
+ const [n, i] = z(!1), s = (v) => {
21867
+ v.disabled || (v.onClick && v.onClick(), o && i(!1));
21868
21868
  }, p = (v) => /* @__PURE__ */ c("button", {
21869
21869
  className: `navbar__item ${v.isActive ? "navbar__item--active" : ""} ${v.disabled ? "navbar__item--disabled" : ""}`,
21870
21870
  onClick: () => s(v),
@@ -21876,7 +21876,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21876
21876
  className: "navbar__item-label",
21877
21877
  children: v.label
21878
21878
  })]
21879
- }, v.id), u = o && !i ? t.filter((v, w) => w === 0 || v.isActive) : t, g = o && !i ? t.filter((v, w) => w > 0 && !v.isActive).length : 0;
21879
+ }, v.id), u = o && !n ? t.filter((v, w) => w === 0 || v.isActive) : t, g = o && !n ? t.filter((v, w) => w > 0 && !v.isActive).length : 0;
21880
21880
  return /* @__PURE__ */ c("nav", {
21881
21881
  className: `navbar navbar--${a} ${h} ${m ? "navbar--no-padding" : ""}`,
21882
21882
  children: [
@@ -21888,9 +21888,9 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21888
21888
  className: "navbar__items",
21889
21889
  children: [
21890
21890
  u.map((v) => d ? d(v) : p(v)),
21891
- o && !i && g > 0 && /* @__PURE__ */ e(T, {
21891
+ o && !n && g > 0 && /* @__PURE__ */ e(T, {
21892
21892
  className: "navbar__item navbar__item--expand",
21893
- onClick: () => n(!0),
21893
+ onClick: () => i(!0),
21894
21894
  children: /* @__PURE__ */ c("span", {
21895
21895
  className: "navbar__item-label",
21896
21896
  children: [
@@ -21900,9 +21900,9 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21900
21900
  ]
21901
21901
  })
21902
21902
  }),
21903
- o && i && /* @__PURE__ */ e(T, {
21903
+ o && n && /* @__PURE__ */ e(T, {
21904
21904
  className: "navbar__item navbar__item--expand",
21905
- onClick: () => n(!1),
21905
+ onClick: () => i(!1),
21906
21906
  children: /* @__PURE__ */ e("span", {
21907
21907
  className: "navbar__item-label",
21908
21908
  children: "− Less"
@@ -21917,12 +21917,12 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21917
21917
  ]
21918
21918
  });
21919
21919
  }, ml = ({ items: t, buttonLabel: r = "Alerts", panelTitle: l = "Notifications", emptyMessage: a = "No active notifications." }) => {
21920
- const [h, d] = z(!1), [o, m] = z({ opacity: 0 }), i = K(null), n = K(null), s = t.some((u) => u.severity === "critical");
21920
+ const [h, d] = z(!1), [o, m] = z({ opacity: 0 }), n = K(null), i = K(null), s = t.some((u) => u.severity === "critical");
21921
21921
  return F(() => {
21922
- if (!h || !i.current || !n.current) return;
21922
+ if (!h || !n.current || !i.current) return;
21923
21923
  const u = requestAnimationFrame(() => {
21924
- if (!i.current || !n.current) return;
21925
- const g = i.current.getBoundingClientRect(), v = n.current.getBoundingClientRect(), w = document.documentElement.clientWidth, f = document.documentElement.clientHeight, y = 8;
21924
+ if (!n.current || !i.current) return;
21925
+ const g = n.current.getBoundingClientRect(), v = i.current.getBoundingClientRect(), w = document.documentElement.clientWidth, f = document.documentElement.clientHeight, y = 8;
21926
21926
  let b = g.bottom + y, C = g.right - v.width;
21927
21927
  C < y && (C = y), C + v.width > w - y && (C = w - v.width - y), b + v.height > f - y && (b = g.top - v.height - y), b < y && (b = y), m({
21928
21928
  position: "fixed",
@@ -21941,7 +21941,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21941
21941
  }, [h]), /* @__PURE__ */ c("div", {
21942
21942
  className: "NotificationPanel",
21943
21943
  children: [/* @__PURE__ */ c("button", {
21944
- ref: i,
21944
+ ref: n,
21945
21945
  type: "button",
21946
21946
  className: `NotificationPanel__button${s ? " NotificationPanel__button--critical" : ""}`,
21947
21947
  onClick: () => {
@@ -21955,7 +21955,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
21955
21955
  className: "NotificationPanel__backdrop",
21956
21956
  onClick: () => d(!1)
21957
21957
  }), /* @__PURE__ */ c("div", {
21958
- ref: n,
21958
+ ref: i,
21959
21959
  className: "NotificationPanel__panel",
21960
21960
  style: o,
21961
21961
  children: [/* @__PURE__ */ e("h4", {
@@ -22012,7 +22012,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22012
22012
  const l = t.variant ?? "default";
22013
22013
  return l === "custom" ? t.customColor || x2.default : l === "random" ? ul(r) : x2[l];
22014
22014
  }, xi = ({ className: t = "", data: r = [], emptyLabel: l, gap: a = 1, size: h = "medium", valueFormatter: d, valuePosition: o = "inside" }) => {
22015
- const m = pl[h], i = o === "outside" ? Math.round(m * 0.18) : 0, n = m / 2, s = Math.max(n - Math.max(a, 1), 1), p = `${-i} ${-i} ${m + i * 2} ${m + i * 2}`, u = u1(() => {
22015
+ const m = pl[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 = u1(() => {
22016
22016
  const x = r.filter((L) => Number.isFinite(L.value) && L.value > 0), k = x.reduce((L, M) => L + M.value, 0);
22017
22017
  if (k <= 0) return [];
22018
22018
  let H = 0;
@@ -22024,17 +22024,17 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22024
22024
  index: M,
22025
22025
  label: d ? d(L.value, L, M) : L.value,
22026
22026
  midAngle: R,
22027
- path: vl(n, s, S, _),
22027
+ path: vl(i, s, S, _),
22028
22028
  startAngle: S,
22029
22029
  value: L.value
22030
22030
  };
22031
22031
  });
22032
22032
  }, [
22033
- n,
22033
+ i,
22034
22034
  r,
22035
22035
  s,
22036
22036
  d
22037
- ]), g = u.length > 0, v = s * 0.58, w = s + i * 0.58, f = s + a / 2, y = s + i * 0.35, b = Math.max(0, a), C = o !== "none";
22037
+ ]), g = u.length > 0, v = s * 0.58, w = s + n * 0.58, f = s + a / 2, y = s + n * 0.35, b = Math.max(0, a), C = o !== "none";
22038
22038
  return /* @__PURE__ */ e("div", {
22039
22039
  className: `pie-chart pie-chart--${h} pie-chart--values-${o} ${t}`.trim(),
22040
22040
  children: /* @__PURE__ */ c("svg", {
@@ -22044,21 +22044,21 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22044
22044
  children: [
22045
22045
  !g && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("circle", {
22046
22046
  className: "pie-chart__empty-circle",
22047
- cx: n,
22048
- cy: n,
22047
+ cx: i,
22048
+ cy: i,
22049
22049
  r: s
22050
22050
  }), C && l && /* @__PURE__ */ e("text", {
22051
22051
  className: "pie-chart__empty-label",
22052
- x: n,
22053
- y: n,
22052
+ x: i,
22053
+ y: i,
22054
22054
  textAnchor: "middle",
22055
22055
  dominantBaseline: "central",
22056
22056
  children: l
22057
22057
  })] }),
22058
22058
  g && (u.length === 1 ? /* @__PURE__ */ e("circle", {
22059
22059
  className: "pie-chart__slice",
22060
- cx: n,
22061
- cy: n,
22060
+ cx: i,
22061
+ cy: i,
22062
22062
  r: s,
22063
22063
  fill: u[0].color,
22064
22064
  strokeWidth: b
@@ -22069,7 +22069,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22069
22069
  strokeWidth: b
22070
22070
  }, `${x.index}-${x.value}-${x.startAngle}`))),
22071
22071
  g && C && o === "outside" && u.map((x) => {
22072
- const k = m0(n, n, f, x.midAngle), H = m0(n, n, y, x.midAngle), L = m0(n, n, w, x.midAngle), M = L.x >= n;
22072
+ const k = m0(i, i, f, x.midAngle), H = m0(i, i, y, x.midAngle), L = m0(i, i, w, x.midAngle), M = L.x >= i;
22073
22073
  return /* @__PURE__ */ c("g", {
22074
22074
  className: "pie-chart__outside-label-group",
22075
22075
  children: [/* @__PURE__ */ e("line", {
@@ -22092,9 +22092,9 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22092
22092
  }),
22093
22093
  g && C && o === "inside" && u.map((x) => {
22094
22094
  const k = u.length === 1 ? {
22095
- x: n,
22096
- y: n
22097
- } : m0(n, n, v, x.midAngle);
22095
+ x: i,
22096
+ y: i
22097
+ } : m0(i, i, v, x.midAngle);
22098
22098
  return /* @__PURE__ */ e("text", {
22099
22099
  className: "pie-chart__value-label pie-chart__value-label--inside",
22100
22100
  x: k.x,
@@ -22116,13 +22116,13 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22116
22116
  a: Math.round(t / l * 100 * 10) / 10,
22117
22117
  b: Math.round(r / l * 100 * 10) / 10
22118
22118
  };
22119
- }, Li = ({ animated: t = !1, height: r, label: l, labelAfterValue: a = !1, labelAlign: h = "left", labelPosition: d = "inside", orientation: o = "horizontal", showPercentage: m = !0, state: i = "default", striped: n = !1, thin: s = !1, value: p = 0 }) => {
22119
+ }, Li = ({ 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 }) => {
22120
22120
  const u = [
22121
22121
  "progress-fill",
22122
- `progress-bar-${i}`,
22123
- n && "progress-bar-striped",
22124
- t && n && "progress-bar-animated"
22125
- ].filter(Boolean).join(" "), g = `progress-bar__label progress-bar__label--${i} ${h ? `progress-bar__label-${h}` : ""}`, v = p > 100 ? 100 : p < 0 ? 0 : p, w = u1(() => {
22122
+ `progress-bar-${n}`,
22123
+ i && "progress-bar-striped",
22124
+ t && i && "progress-bar-animated"
22125
+ ].filter(Boolean).join(" "), g = `progress-bar__label progress-bar__label--${n} ${h ? `progress-bar__label-${h}` : ""}`, v = p > 100 ? 100 : p < 0 ? 0 : p, w = u1(() => {
22126
22126
  const x = [];
22127
22127
  return m && x.push(`${E0(p)}%`), l && x.push(l), (a ? x : x.reverse()).join(" - ");
22128
22128
  }, [
@@ -22159,8 +22159,8 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22159
22159
  small: 64,
22160
22160
  medium: 96,
22161
22161
  large: 128
22162
- }, wl = (t) => typeof t == "number" ? t : e3[t], zi = ({ children: t, className: r = "", label: l, labelPosition: a = "below", rounded: h = !0, showPercentage: d = !0, size: o = "medium", state: m = "default", thickness: i, value: n }) => {
22163
- const s = Math.min(Math.max(Number.isFinite(n) ? n : 0, 0), 100), p = wl(o), u = i ?? (p <= e3.small ? 6 : 8), g = Math.max((p - u) / 2, 1), v = 2 * Math.PI * g, w = v - s / 100 * v, f = u1(() => `${E0(s)}%`, [s]), y = t || (d ? f : a === "inside" ? l : null), b = a === "inside" && l && d && !t;
22162
+ }, wl = (t) => typeof t == "number" ? t : e3[t], zi = ({ 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 }) => {
22163
+ const s = Math.min(Math.max(Number.isFinite(i) ? i : 0, 0), 100), p = wl(o), u = n ?? (p <= e3.small ? 6 : 8), g = Math.max((p - u) / 2, 1), v = 2 * Math.PI * g, w = v - s / 100 * v, f = u1(() => `${E0(s)}%`, [s]), y = t || (d ? f : a === "inside" ? l : null), b = a === "inside" && l && d && !t;
22164
22164
  return /* @__PURE__ */ c("div", {
22165
22165
  className: `progress-ring progress-ring--${m} ${r}`,
22166
22166
  style: { "--progress-ring-size": `${p}px` },
@@ -22200,7 +22200,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22200
22200
  children: l
22201
22201
  })]
22202
22202
  });
22203
- }, Vi = z1(({ disabled: t = !1, error: r, id: l, inputWidth: a, label: h, max: d, min: o = 0, onChange: m, readOnlyInput: i = !1, required: n = !1, step: s = 1, success: p, value: u }, g) => {
22203
+ }, Vi = 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) => {
22204
22204
  const w = a || (d !== void 0 ? Math.max(String(d).length, String(o).length, 3) : 3), f = () => {
22205
22205
  if (t) return;
22206
22206
  const C = (u ?? 0) - s;
@@ -22210,7 +22210,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22210
22210
  const C = (u ?? 0) + s;
22211
22211
  d !== void 0 && C > d || m?.(C);
22212
22212
  }, b = (C) => {
22213
- if (!i) {
22213
+ if (!n) {
22214
22214
  if (C === void 0) {
22215
22215
  m?.(void 0);
22216
22216
  return;
@@ -22232,13 +22232,13 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22232
22232
  h && /* @__PURE__ */ c("label", {
22233
22233
  htmlFor: l,
22234
22234
  className: "quantity-selector-label",
22235
- children: [h, n && /* @__PURE__ */ e("span", {
22235
+ children: [h, i && /* @__PURE__ */ e("span", {
22236
22236
  className: "quantity-selector-required",
22237
22237
  children: "*"
22238
22238
  })]
22239
22239
  }),
22240
22240
  /* @__PURE__ */ c("div", {
22241
- className: `quantity-selector${i ? " quantity-selector-readonly" : ""}${r ? " quantity-selector-error" : ""}${p ? " quantity-selector-success" : ""}`,
22241
+ className: `quantity-selector${n ? " quantity-selector-readonly" : ""}${r ? " quantity-selector-error" : ""}${p ? " quantity-selector-success" : ""}`,
22242
22242
  style: { "--digits": w },
22243
22243
  children: [
22244
22244
  /* @__PURE__ */ e(T, {
@@ -22285,8 +22285,12 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22285
22285
  ]
22286
22286
  });
22287
22287
  }), Ni = ({ isOpen: t = !1, onClose: r, placeholder: l, title: a, onSave: h, titleIcon: d, value: o = "", usePortal: m = !1 }) => {
22288
- const [i, n] = z(o), [s, p] = z(!1), u = async () => {
22289
- p(!0), await h(i), p(!1), r();
22288
+ const [n, i] = z(o), [s, p] = z(!1);
22289
+ F(() => {
22290
+ t && i(o);
22291
+ }, [t, o]);
22292
+ const u = async () => {
22293
+ p(!0), await h(n), p(!1), r();
22290
22294
  };
22291
22295
  return /* @__PURE__ */ e("div", {
22292
22296
  className: "quick-add",
@@ -22314,9 +22318,9 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22314
22318
  className: "quick-add-input",
22315
22319
  children: /* @__PURE__ */ e(V1, {
22316
22320
  placeholder: l,
22317
- value: i,
22321
+ value: n,
22318
22322
  onChange: (w) => {
22319
- n(w);
22323
+ i(w);
22320
22324
  },
22321
22325
  onKeyDown: (w) => {
22322
22326
  w.key === "Enter" && u(), w.key === "Escape" && r();
@@ -22327,8 +22331,8 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22327
22331
  })
22328
22332
  });
22329
22333
  }, Hi = ({ isOpen: t = !1, title: r, onClose: l, onSave: a, icon: h, value: d, min: o, max: m }) => {
22330
- const [i, n] = z(d), [s, p] = z(!1), u = async () => {
22331
- p(!0), await a(i), p(!1), l();
22334
+ const [n, i] = z(d), [s, p] = z(!1), u = async () => {
22335
+ p(!0), await a(n), p(!1), l();
22332
22336
  };
22333
22337
  return /* @__PURE__ */ e(W1, {
22334
22338
  isOpen: t,
@@ -22357,9 +22361,9 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22357
22361
  autoFocus: !0,
22358
22362
  min: o,
22359
22363
  max: m,
22360
- value: i,
22364
+ value: n,
22361
22365
  onChange: (v) => {
22362
- n(v);
22366
+ i(v);
22363
22367
  },
22364
22368
  onKeyDown: (v) => {
22365
22369
  v.key === "Enter" && u();
@@ -22369,7 +22373,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22369
22373
  })
22370
22374
  });
22371
22375
  }, fl = ({ checked: t = !1, onChange: r, label: l, disabled: a = !1, name: h, value: d, id: o, className: m = "" }) => {
22372
- const i = z0(), n = o || i, s = (p) => {
22376
+ const n = z0(), i = o || n, s = (p) => {
22373
22377
  r?.(p.target.checked && d !== void 0 ? d : p.target.checked);
22374
22378
  };
22375
22379
  return /* @__PURE__ */ c("div", {
@@ -22380,7 +22384,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22380
22384
  ].filter(Boolean).join(" "),
22381
22385
  children: [/* @__PURE__ */ e("input", {
22382
22386
  type: "radio",
22383
- id: n,
22387
+ id: i,
22384
22388
  name: h,
22385
22389
  value: d,
22386
22390
  className: "radio-input",
@@ -22388,7 +22392,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22388
22392
  onChange: s,
22389
22393
  disabled: a
22390
22394
  }), /* @__PURE__ */ c("label", {
22391
- htmlFor: n,
22395
+ htmlFor: i,
22392
22396
  className: "radio-label",
22393
22397
  children: [/* @__PURE__ */ e("span", { className: "radio-circle" }), l && /* @__PURE__ */ e("span", {
22394
22398
  className: "radio-text",
@@ -22397,9 +22401,9 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22397
22401
  })]
22398
22402
  });
22399
22403
  }, Si = ({ isOpen: t = !1, list: r, title: l, onClose: a, onSave: h, icon: d, value: o }) => {
22400
- const [m, i] = z(o), [n, s] = z(!1), [p, u] = z("");
22404
+ const [m, n] = z(o), [i, s] = z(!1), [p, u] = z("");
22401
22405
  F(() => {
22402
- i(o);
22406
+ n(o);
22403
22407
  }, [o]);
22404
22408
  const g = async () => {
22405
22409
  if (!m) {
@@ -22415,7 +22419,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22415
22419
  s(!1);
22416
22420
  }
22417
22421
  }, v = (w) => {
22418
- typeof w == "string" || typeof w == "number" ? i(w) : console.error("Unsupported type used.");
22422
+ typeof w == "string" || typeof w == "number" ? n(w) : console.error("Unsupported type used.");
22419
22423
  };
22420
22424
  return /* @__PURE__ */ e("div", {
22421
22425
  className: "quick-set",
@@ -22429,13 +22433,13 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22429
22433
  secondary: {
22430
22434
  text: "Cancel",
22431
22435
  variant: "default",
22432
- disabled: n,
22436
+ disabled: i,
22433
22437
  onClick: a
22434
22438
  },
22435
22439
  primary: {
22436
- text: n ? "Saving..." : "Save",
22440
+ text: i ? "Saving..." : "Save",
22437
22441
  variant: "success",
22438
- disabled: n || !m,
22442
+ disabled: i || !m,
22439
22443
  onClick: g
22440
22444
  },
22441
22445
  children: [/* @__PURE__ */ e("div", {
@@ -22520,10 +22524,10 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22520
22524
  return `[${o}](${h.getAttribute("href") ?? ""})`;
22521
22525
  case "ul":
22522
22526
  return Array.from(h.children).map((m) => {
22523
- const i = m.querySelector('input[type="checkbox"]');
22524
- if (i) {
22525
- const n = i.checked, s = (m.textContent ?? "").trim();
22526
- return `- [${n ? "x" : " "}] ${s}`;
22527
+ const n = m.querySelector('input[type="checkbox"]');
22528
+ if (n) {
22529
+ const i = n.checked, s = (m.textContent ?? "").trim();
22530
+ return `- [${i ? "x" : " "}] ${s}`;
22527
22531
  }
22528
22532
  return `- ${l(m)}`;
22529
22533
  }).join(`
@@ -22531,7 +22535,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
22531
22535
 
22532
22536
  `;
22533
22537
  case "ol":
22534
- return Array.from(h.children).map((m, i) => `${i + 1}. ${l(m)}`).join(`
22538
+ return Array.from(h.children).map((m, n) => `${n + 1}. ${l(m)}`).join(`
22535
22539
  `) + `
22536
22540
 
22537
22541
  `;
@@ -22548,9 +22552,9 @@ ${h.textContent ?? ""}
22548
22552
  case "table": {
22549
22553
  const m = Array.from(h.querySelectorAll("tr"));
22550
22554
  return m.length ? [
22551
- Array.from(m[0].querySelectorAll("th,td")).map((i) => i.textContent ?? "").join(" | "),
22555
+ Array.from(m[0].querySelectorAll("th,td")).map((n) => n.textContent ?? "").join(" | "),
22552
22556
  Array.from(m[0].querySelectorAll("th,td")).map(() => "---").join(" | "),
22553
- ...m.slice(1).map((i) => Array.from(i.querySelectorAll("td")).map((n) => n.textContent ?? "").join(" | "))
22557
+ ...m.slice(1).map((n) => Array.from(n.querySelectorAll("td")).map((i) => i.textContent ?? "").join(" | "))
22554
22558
  ].join(`
22555
22559
  `) + `
22556
22560
 
@@ -22663,21 +22667,21 @@ ${h.textContent ?? ""}
22663
22667
  ])
22664
22668
  };
22665
22669
  }, Nl = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
22666
- const [a, h] = z(!1), [d, o] = z(""), [m, i] = z(""), n = K(null), s = K(null);
22670
+ const [a, h] = z(!1), [d, o] = z(""), [m, n] = z(""), i = K(null), s = K(null);
22667
22671
  return {
22668
22672
  showLinkPrompt: a,
22669
22673
  linkUrl: d,
22670
22674
  setLinkUrl: o,
22671
22675
  linkText: m,
22672
- setLinkText: i,
22676
+ setLinkText: n,
22673
22677
  editingAnchorRef: s,
22674
22678
  openLinkPrompt: Z((p) => {
22675
22679
  if (p)
22676
- s.current = p, i(p.textContent ?? ""), o(p.getAttribute("href") ?? "");
22680
+ s.current = p, n(p.textContent ?? ""), o(p.getAttribute("href") ?? "");
22677
22681
  else {
22678
22682
  s.current = null;
22679
22683
  const u = window.getSelection();
22680
- u && u.rangeCount > 0 && (n.current = u.getRangeAt(0).cloneRange(), i(u.toString())), o("");
22684
+ u && u.rangeCount > 0 && (i.current = u.getRangeAt(0).cloneRange(), n(u.toString())), o("");
22681
22685
  }
22682
22686
  h(!0);
22683
22687
  }, []),
@@ -22697,15 +22701,15 @@ ${h.textContent ?? ""}
22697
22701
  } else {
22698
22702
  r();
22699
22703
  const u = window.getSelection();
22700
- if (n.current && (u?.removeAllRanges(), u?.addRange(n.current)), d) if (m && u?.toString() === "") document.execCommand("insertHTML", !1, `<a href="${d}" target="_blank" rel="noopener noreferrer">${m}</a>`);
22704
+ if (i.current && (u?.removeAllRanges(), u?.addRange(i.current)), d) if (m && u?.toString() === "") document.execCommand("insertHTML", !1, `<a href="${d}" target="_blank" rel="noopener noreferrer">${m}</a>`);
22701
22705
  else {
22702
22706
  document.execCommand("createLink", !1, d);
22703
22707
  const g = u?.anchorNode?.parentElement?.closest("a");
22704
22708
  g && (g.setAttribute("target", "_blank"), g.setAttribute("rel", "noopener noreferrer"));
22705
22709
  }
22706
- n.current = null;
22710
+ i.current = null;
22707
22711
  }
22708
- h(!1), o(""), i(""), l();
22712
+ h(!1), o(""), n(""), l();
22709
22713
  }
22710
22714
  }, [
22711
22715
  t,
@@ -22715,7 +22719,7 @@ ${h.textContent ?? ""}
22715
22719
  l
22716
22720
  ]),
22717
22721
  cancelLink: Z(() => {
22718
- h(!1), o(""), i(""), n.current = null, s.current = null;
22722
+ h(!1), o(""), n(""), i.current = null, s.current = null;
22719
22723
  }, [])
22720
22724
  };
22721
22725
  }, Hl = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
@@ -22731,7 +22735,7 @@ ${h.textContent ?? ""}
22731
22735
  w = w.parentNode;
22732
22736
  }
22733
22737
  return null;
22734
- }, [t]), i = Z((v) => {
22738
+ }, [t]), n = Z((v) => {
22735
22739
  const w = t.current;
22736
22740
  if (!w) return;
22737
22741
  const f = w.getBoundingClientRect(), y = v.getBoundingClientRect();
@@ -22739,7 +22743,7 @@ ${h.textContent ?? ""}
22739
22743
  top: y.top - f.top - 36,
22740
22744
  left: y.left - f.left
22741
22745
  });
22742
- }, [t]), n = Z(() => {
22746
+ }, [t]), i = Z(() => {
22743
22747
  h(null), o(null);
22744
22748
  }, []), s = Z(() => {
22745
22749
  if (!a) return;
@@ -22747,36 +22751,36 @@ ${h.textContent ?? ""}
22747
22751
  const v = m()?.closest("tr") ?? null, w = a.querySelector("tbody") ?? a, f = v ?? w.querySelector("tr:last-child");
22748
22752
  if (!f) return;
22749
22753
  const y = f.querySelectorAll("td,th").length;
22750
- w.insertBefore(k2(y), f.nextSibling), l(), i(a);
22754
+ w.insertBefore(k2(y), f.nextSibling), l(), n(a);
22751
22755
  }, [
22752
22756
  a,
22753
22757
  r,
22754
22758
  m,
22755
22759
  l,
22756
- i
22760
+ n
22757
22761
  ]), p = Z(() => {
22758
22762
  if (!a) return;
22759
22763
  r();
22760
22764
  const v = m()?.closest("tr") ?? null, w = a.querySelector("tbody") ?? a, f = v ?? w.querySelector("tr:first-child");
22761
22765
  if (!f) return;
22762
22766
  const y = f.querySelectorAll("td,th").length;
22763
- w.insertBefore(k2(y), f), l(), i(a);
22767
+ w.insertBefore(k2(y), f), l(), n(a);
22764
22768
  }, [
22765
22769
  a,
22766
22770
  r,
22767
22771
  m,
22768
22772
  l,
22769
- i
22773
+ n
22770
22774
  ]), u = Z(() => {
22771
22775
  if (!a) return;
22772
22776
  const v = Array.from(a.querySelectorAll("tbody tr"));
22773
- v.length <= 1 || (r(), (m()?.closest("tr") ?? v[v.length - 1]).remove(), l(), i(a));
22777
+ v.length <= 1 || (r(), (m()?.closest("tr") ?? v[v.length - 1]).remove(), l(), n(a));
22774
22778
  }, [
22775
22779
  a,
22776
22780
  r,
22777
22781
  m,
22778
22782
  l,
22779
- i
22783
+ n
22780
22784
  ]), g = Z(() => {
22781
22785
  if (!a) return;
22782
22786
  r();
@@ -22786,19 +22790,19 @@ ${h.textContent ?? ""}
22786
22790
  C.setAttribute("contenteditable", "true"), C.textContent = b ? "Header" : "Cell";
22787
22791
  const x = f.querySelectorAll("td,th"), k = x[w >= 0 ? w : x.length - 1];
22788
22792
  f.insertBefore(C, k ? k.nextSibling : null);
22789
- }), l(), i(a);
22793
+ }), l(), n(a);
22790
22794
  }, [
22791
22795
  a,
22792
22796
  r,
22793
22797
  m,
22794
22798
  l,
22795
- i
22799
+ n
22796
22800
  ]);
22797
22801
  return {
22798
22802
  activeTable: a,
22799
22803
  tableToolbarPos: d,
22800
- showTableToolbar: i,
22801
- hideTableToolbar: n,
22804
+ showTableToolbar: n,
22805
+ hideTableToolbar: i,
22802
22806
  addRowAbove: p,
22803
22807
  addRowBelow: s,
22804
22808
  removeRow: u,
@@ -22811,13 +22815,13 @@ ${h.textContent ?? ""}
22811
22815
  C.setAttribute("contenteditable", "true"), C.textContent = b ? "Header" : "Cell";
22812
22816
  const x = f.querySelectorAll("td,th")[w] ?? f.firstChild;
22813
22817
  f.insertBefore(C, x);
22814
- }), l(), i(a);
22818
+ }), l(), n(a);
22815
22819
  }, [
22816
22820
  a,
22817
22821
  r,
22818
22822
  m,
22819
22823
  l,
22820
- i
22824
+ n
22821
22825
  ]),
22822
22826
  addColumnRight: g,
22823
22827
  removeColumn: Z(() => {
@@ -22829,20 +22833,20 @@ ${h.textContent ?? ""}
22829
22833
  v.forEach((y) => {
22830
22834
  const b = y.querySelectorAll("td,th");
22831
22835
  (f >= 0 ? b[f] : b[b.length - 1])?.remove();
22832
- }), l(), i(a);
22836
+ }), l(), n(a);
22833
22837
  }, [
22834
22838
  a,
22835
22839
  r,
22836
22840
  m,
22837
22841
  l,
22838
- i
22842
+ n
22839
22843
  ]),
22840
22844
  deleteTable: Z(() => {
22841
- a && (r(), a.remove(), n(), l());
22845
+ a && (r(), a.remove(), i(), l());
22842
22846
  }, [
22843
22847
  a,
22844
22848
  r,
22845
- n,
22849
+ i,
22846
22850
  l
22847
22851
  ])
22848
22852
  };
@@ -22882,14 +22886,14 @@ ${h.textContent ?? ""}
22882
22886
  })]
22883
22887
  })
22884
22888
  ]
22885
- }), Rl = ({ pos: t, toolbarRef: r, addRowAbove: l, addRowBelow: a, removeRow: h, addColumnLeft: d, addColumnRight: o, removeColumn: m, deleteTable: i }) => /* @__PURE__ */ c("div", {
22889
+ }), Rl = ({ pos: t, toolbarRef: r, addRowAbove: l, addRowBelow: a, removeRow: h, addColumnLeft: d, addColumnRight: o, removeColumn: m, deleteTable: n }) => /* @__PURE__ */ c("div", {
22886
22890
  ref: r,
22887
22891
  className: "rte-table-toolbar",
22888
22892
  style: {
22889
22893
  top: t.top,
22890
22894
  left: t.left
22891
22895
  },
22892
- onMouseDown: (n) => n.preventDefault(),
22896
+ onMouseDown: (i) => i.preventDefault(),
22893
22897
  children: [
22894
22898
  /* @__PURE__ */ c("div", {
22895
22899
  className: "rte-table-toolbar-group",
@@ -22964,49 +22968,49 @@ ${h.textContent ?? ""}
22964
22968
  children: /* @__PURE__ */ e("button", {
22965
22969
  type: "button",
22966
22970
  className: "rte-table-toolbar-btn rte-table-toolbar-btn--danger",
22967
- onClick: i,
22971
+ onClick: n,
22968
22972
  children: "✕ Table"
22969
22973
  })
22970
22974
  })
22971
22975
  })
22972
22976
  ]
22973
- }), Bl = ({ advanced: t, isActive: r, exec: l, applyHeading: a, insertTaskList: h, openLinkPrompt: d, insertTable: o, undo: m, redo: i }) => /* @__PURE__ */ c("div", {
22977
+ }), Bl = ({ advanced: t, isActive: r, exec: l, applyHeading: a, insertTaskList: h, openLinkPrompt: d, insertTable: o, undo: m, redo: n }) => /* @__PURE__ */ c("div", {
22974
22978
  className: "rte-toolbar",
22975
22979
  children: [
22976
22980
  /* @__PURE__ */ e("div", {
22977
22981
  className: "rte-toolbar-group",
22978
- children: xl.map((n) => /* @__PURE__ */ e(X, {
22979
- title: n.title,
22982
+ children: xl.map((i) => /* @__PURE__ */ e(X, {
22983
+ title: i.title,
22980
22984
  children: /* @__PURE__ */ e("button", {
22981
22985
  type: "button",
22982
22986
  className: "rte-toolbar-btn",
22983
22987
  onMouseDown: (s) => {
22984
- s.preventDefault(), n.command === "undo" ? m() : i();
22988
+ s.preventDefault(), i.command === "undo" ? m() : n();
22985
22989
  },
22986
- children: n.label
22990
+ children: i.label
22987
22991
  })
22988
- }, n.command))
22992
+ }, i.command))
22989
22993
  }),
22990
22994
  /* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
22991
22995
  /* @__PURE__ */ c("div", {
22992
22996
  className: "rte-toolbar-group",
22993
- children: [Ml.map((n) => /* @__PURE__ */ e(X, {
22994
- title: n.title,
22997
+ children: [Ml.map((i) => /* @__PURE__ */ e(X, {
22998
+ title: i.title,
22995
22999
  children: /* @__PURE__ */ e("button", {
22996
23000
  type: "button",
22997
- className: `rte-toolbar-btn ${r(n.command) ? "rte-toolbar-btn--active" : ""}`,
23001
+ className: `rte-toolbar-btn ${r(i.command) ? "rte-toolbar-btn--active" : ""}`,
22998
23002
  onMouseDown: (s) => {
22999
- s.preventDefault(), l(n.command, n.value);
23003
+ s.preventDefault(), l(i.command, i.value);
23000
23004
  },
23001
- children: n.label
23005
+ children: i.label
23002
23006
  })
23003
- }, n.command)), /* @__PURE__ */ e(X, {
23007
+ }, i.command)), /* @__PURE__ */ e(X, {
23004
23008
  title: "Task List",
23005
23009
  children: /* @__PURE__ */ c("button", {
23006
23010
  type: "button",
23007
23011
  className: "rte-toolbar-btn",
23008
- onMouseDown: (n) => {
23009
- n.preventDefault(), h();
23012
+ onMouseDown: (i) => {
23013
+ i.preventDefault(), h();
23010
23014
  },
23011
23015
  children: [/* @__PURE__ */ e(P, { name: "checkmark" }), " List"]
23012
23016
  })
@@ -23015,17 +23019,17 @@ ${h.textContent ?? ""}
23015
23019
  /* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
23016
23020
  /* @__PURE__ */ e("div", {
23017
23021
  className: "rte-toolbar-group",
23018
- children: kl.map((n) => /* @__PURE__ */ e(X, {
23019
- title: `Heading ${n}`,
23022
+ children: kl.map((i) => /* @__PURE__ */ e(X, {
23023
+ title: `Heading ${i}`,
23020
23024
  children: /* @__PURE__ */ c("button", {
23021
23025
  type: "button",
23022
- className: `rte-toolbar-btn rte-toolbar-btn--heading ${r(`h${n}`) ? "rte-toolbar-btn--active" : ""}`,
23026
+ className: `rte-toolbar-btn rte-toolbar-btn--heading ${r(`h${i}`) ? "rte-toolbar-btn--active" : ""}`,
23023
23027
  onMouseDown: (s) => {
23024
- s.preventDefault(), a(n);
23028
+ s.preventDefault(), a(i);
23025
23029
  },
23026
- children: ["H", n]
23030
+ children: ["H", i]
23027
23031
  })
23028
- }, n))
23032
+ }, i))
23029
23033
  }),
23030
23034
  /* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
23031
23035
  /* @__PURE__ */ e("div", {
@@ -23035,8 +23039,8 @@ ${h.textContent ?? ""}
23035
23039
  children: /* @__PURE__ */ c("button", {
23036
23040
  type: "button",
23037
23041
  className: "rte-toolbar-btn",
23038
- onMouseDown: (n) => {
23039
- n.preventDefault(), d();
23042
+ onMouseDown: (i) => {
23043
+ i.preventDefault(), d();
23040
23044
  },
23041
23045
  children: [/* @__PURE__ */ e(P, { name: "link" }), " Link"]
23042
23046
  })
@@ -23044,37 +23048,37 @@ ${h.textContent ?? ""}
23044
23048
  }),
23045
23049
  t && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }), /* @__PURE__ */ c("div", {
23046
23050
  className: "rte-toolbar-group",
23047
- children: [_l.map((n) => /* @__PURE__ */ e(X, {
23048
- title: n.title,
23051
+ children: [_l.map((i) => /* @__PURE__ */ e(X, {
23052
+ title: i.title,
23049
23053
  children: /* @__PURE__ */ e("button", {
23050
23054
  type: "button",
23051
- className: `rte-toolbar-btn ${r(n.value ?? n.command) ? "rte-toolbar-btn--active" : ""}`,
23055
+ className: `rte-toolbar-btn ${r(i.value ?? i.command) ? "rte-toolbar-btn--active" : ""}`,
23052
23056
  onMouseDown: (s) => {
23053
- s.preventDefault(), l(n.command, n.value);
23057
+ s.preventDefault(), l(i.command, i.value);
23054
23058
  },
23055
- children: n.label
23059
+ children: i.label
23056
23060
  })
23057
- }, n.command + (n.value ?? ""))), /* @__PURE__ */ e(X, {
23061
+ }, i.command + (i.value ?? ""))), /* @__PURE__ */ e(X, {
23058
23062
  title: "Insert Table",
23059
23063
  children: /* @__PURE__ */ e("button", {
23060
23064
  type: "button",
23061
23065
  className: "rte-toolbar-btn",
23062
- onMouseDown: (n) => {
23063
- n.preventDefault(), o();
23066
+ onMouseDown: (i) => {
23067
+ i.preventDefault(), o();
23064
23068
  },
23065
23069
  children: "Table"
23066
23070
  })
23067
23071
  })]
23068
23072
  })] })
23069
23073
  ]
23070
- }), Bi = ({ advanced: t = !1, error: r, format: l = "html", id: a, label: h, onBlur: d, onChange: o, placeholder: m, required: i = !1, value: n }) => {
23074
+ }), Bi = ({ advanced: t = !1, error: r, format: l = "html", id: a, label: h, onBlur: d, onChange: o, placeholder: m, required: n = !1, value: i }) => {
23071
23075
  const s = K(null), p = K(!1), u = K(null), [g, v] = z(/* @__PURE__ */ new Set());
23072
23076
  F(() => {
23073
23077
  const r1 = s.current;
23074
23078
  if (!r1 || p.current) return;
23075
- const s1 = n ?? "";
23079
+ const s1 = i ?? "";
23076
23080
  r1.innerHTML !== s1 && (r1.innerHTML = s1);
23077
- }, [n]);
23081
+ }, [i]);
23078
23082
  const w = Z(() => {
23079
23083
  const r1 = s.current;
23080
23084
  if (!r1 || !o) return;
@@ -23201,7 +23205,7 @@ ${h.textContent ?? ""}
23201
23205
  h && /* @__PURE__ */ c("label", {
23202
23206
  htmlFor: a,
23203
23207
  className: "rte-label",
23204
- children: [h, i && /* @__PURE__ */ e("span", {
23208
+ children: [h, n && /* @__PURE__ */ e("span", {
23205
23209
  className: "rte-required",
23206
23210
  children: "*"
23207
23211
  })]
@@ -23267,8 +23271,8 @@ ${h.textContent ?? ""}
23267
23271
  const [a, h] = z(!1);
23268
23272
  F(() => {
23269
23273
  const o = t ?? window, m = () => {
23270
- const i = t ? t.scrollTop : window.scrollY;
23271
- h(i > r);
23274
+ const n = t ? t.scrollTop : window.scrollY;
23275
+ h(n > r);
23272
23276
  };
23273
23277
  return o.addEventListener("scroll", m, { passive: !0 }), () => {
23274
23278
  o.removeEventListener("scroll", m);
@@ -23299,7 +23303,7 @@ ${h.textContent ?? ""}
23299
23303
  if (!t) throw new Error("useSidebar must be used within a SidebarProvider");
23300
23304
  return t;
23301
23305
  }, Ei = ({ children: t }) => {
23302
- const { isMobile: r } = g0(), [l, a] = z(!1), h = Z(() => a((i) => !i), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = u1(() => ({
23306
+ const { isMobile: r } = g0(), [l, a] = z(!1), h = Z(() => a((n) => !n), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = u1(() => ({
23303
23307
  isMobile: r,
23304
23308
  isOpen: l,
23305
23309
  toggle: h,
@@ -23316,7 +23320,7 @@ ${h.textContent ?? ""}
23316
23320
  value: m,
23317
23321
  children: t
23318
23322
  });
23319
- }, Di = ({ sections: t, width: r = "280px", className: l = "", appHeaderProps: a, renderItem: h, isOpen: d, onClose: o, isMobile: m, showOverlay: i = !0, contained: n = !1, shadow: s = "none", searchPlaceholder: p }) => {
23323
+ }, Di = ({ 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 }) => {
23320
23324
  const [u, g] = z(""), v = r3(), w = m ?? v?.isMobile ?? !1, f = d ?? (w ? v?.isOpen ?? !1 : !0), y = o ?? v?.close ?? (() => {
23321
23325
  }), b = p && u ? t.map((M) => ({
23322
23326
  ...M,
@@ -23325,9 +23329,9 @@ ${h.textContent ?? ""}
23325
23329
  "sidebar",
23326
23330
  f ? "sidebar--open" : "sidebar--closed",
23327
23331
  w ? "sidebar--mobile" : "",
23328
- n ? "sidebar--contained" : "",
23332
+ i ? "sidebar--contained" : "",
23329
23333
  l
23330
- ].filter(Boolean).join(" "), x = ["sidebar__overlay", n ? "sidebar__overlay--contained" : ""].filter(Boolean).join(" "), k = {
23334
+ ].filter(Boolean).join(" "), x = ["sidebar__overlay", i ? "sidebar__overlay--contained" : ""].filter(Boolean).join(" "), k = {
23331
23335
  "--sidebar-width": r,
23332
23336
  "--sidebar-shadow": s
23333
23337
  }, H = (M) => {
@@ -23365,7 +23369,7 @@ ${h.textContent ?? ""}
23365
23369
  })
23366
23370
  ]
23367
23371
  }, M.id);
23368
- return /* @__PURE__ */ c(n1, { children: [i && w && f && /* @__PURE__ */ e("div", {
23372
+ return /* @__PURE__ */ c(n1, { children: [n && w && f && /* @__PURE__ */ e("div", {
23369
23373
  className: x,
23370
23374
  onClick: y
23371
23375
  }), /* @__PURE__ */ c("aside", {
@@ -23502,16 +23506,16 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
23502
23506
  break;
23503
23507
  }
23504
23508
  return p;
23505
- }, i = `skeleton skeleton--${t} skeleton--${r} ${o}`, n = m(), s = Array.from({ length: d }, (p, u) => /* @__PURE__ */ e("div", {
23506
- className: i,
23507
- style: n
23509
+ }, n = `skeleton skeleton--${t} skeleton--${r} ${o}`, i = m(), s = Array.from({ length: d }, (p, u) => /* @__PURE__ */ e("div", {
23510
+ className: n,
23511
+ style: i
23508
23512
  }, u));
23509
23513
  return d > 1 ? /* @__PURE__ */ e("div", {
23510
23514
  className: "skeleton-group",
23511
23515
  children: s
23512
23516
  }) : /* @__PURE__ */ e(n1, { children: s });
23513
- }, Gi = ({ children: t, panel: r, isPanelOpen: l, onPanelClose: a, panelTitle: h, defaultLeftPercent: d = 55, minLeftPercent: o = 25, minRightPercent: m = 20, className: i = "" }) => {
23514
- const [n, s] = z(d), p = K(null), u = K(!1);
23517
+ }, Gi = ({ children: t, panel: r, isPanelOpen: l, onPanelClose: a, panelTitle: h, defaultLeftPercent: d = 55, minLeftPercent: o = 25, minRightPercent: m = 20, className: n = "" }) => {
23518
+ const [i, s] = z(d), p = K(null), u = K(!1);
23515
23519
  F(() => (l ? document.body.classList.add("split-panel-active") : document.body.classList.remove("split-panel-active"), () => {
23516
23520
  document.body.classList.remove("split-panel-active");
23517
23521
  }), [l]);
@@ -23532,12 +23536,12 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
23532
23536
  };
23533
23537
  return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
23534
23538
  }, [l, a]), l ? /* @__PURE__ */ c("div", {
23535
- className: `split-panel split-panel--open ${i}`,
23539
+ className: `split-panel split-panel--open ${n}`,
23536
23540
  ref: p,
23537
23541
  children: [
23538
23542
  /* @__PURE__ */ e("div", {
23539
23543
  className: "split-panel__left",
23540
- style: { width: `${n}%` },
23544
+ style: { width: `${i}%` },
23541
23545
  children: t
23542
23546
  }),
23543
23547
  /* @__PURE__ */ e("div", {
@@ -23567,24 +23571,24 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
23567
23571
  })
23568
23572
  ]
23569
23573
  }) : /* @__PURE__ */ e("div", {
23570
- className: `split-panel ${i}`,
23574
+ className: `split-panel ${n}`,
23571
23575
  children: t
23572
23576
  });
23573
23577
  }, El = (t, r, l) => {
23574
23578
  const a = `${E0(r)}%`;
23575
23579
  return t.label && l ? `${t.label} - ${a}` : t.label ? t.label : a;
23576
- }, Zi = ({ animated: t = !1, height: r, normalize: l = !0, orientation: a = "horizontal", segments: h, separators: d = !1, showLabels: o = !0, showPercentage: m = !0, thin: i = !1, width: n }) => {
23580
+ }, Zi = ({ 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 }) => {
23577
23581
  const s = u1(() => {
23578
23582
  if (h.length === 0) return [];
23579
23583
  if (!l) return h.map((v) => Math.max(0, v.value));
23580
23584
  const g = h.reduce((v, w) => v + Math.max(0, w.value), 0);
23581
23585
  return g === 0 ? h.map(() => 0) : h.map((v) => Math.max(0, v.value) / g * 100);
23582
23586
  }, [h, l]), p = a === "vertical", u = {};
23583
- return r !== void 0 && (u.height = r), n !== void 0 && (u.width = n), /* @__PURE__ */ e("div", {
23587
+ return r !== void 0 && (u.height = r), i !== void 0 && (u.width = i), /* @__PURE__ */ e("div", {
23584
23588
  className: [
23585
23589
  "stacked-bar",
23586
23590
  `stacked-bar--${a}`,
23587
- i ? "stacked-bar--thin" : "",
23591
+ n ? "stacked-bar--thin" : "",
23588
23592
  d ? "stacked-bar--separators" : ""
23589
23593
  ].filter(Boolean).join(" "),
23590
23594
  style: u,
@@ -23656,7 +23660,7 @@ function _2({ state: t }) {
23656
23660
  });
23657
23661
  }
23658
23662
  var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h = !1, onRowClick: d }) => {
23659
- const [o, m] = z(!1), [i, n] = z(!1), [s, p] = z(""), [u, g] = z(null), [v, w] = z("asc"), f = u1(() => s.trim() ? t.filter((M) => M.name.toLowerCase().includes(s.toLowerCase())) : t, [t, s]), y = u1(() => {
23663
+ const [o, m] = z(!1), [n, i] = z(!1), [s, p] = z(""), [u, g] = z(null), [v, w] = z("asc"), f = u1(() => s.trim() ? t.filter((M) => M.name.toLowerCase().includes(s.toLowerCase())) : t, [t, s]), y = u1(() => {
23660
23664
  if (!u) return f;
23661
23665
  const M = [...f].sort((V, S) => {
23662
23666
  const _ = u === "name" ? V.name : V.value, R = u === "name" ? S.name : S.value;
@@ -23667,11 +23671,11 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
23667
23671
  f,
23668
23672
  u,
23669
23673
  v
23670
- ]), b = u1(() => i ? [...y] : y.slice(0, L2), [y, i]), C = y.length > L2, x = () => {
23674
+ ]), b = u1(() => n ? [...y] : y.slice(0, L2), [y, n]), C = y.length > L2, x = () => {
23671
23675
  m(!o);
23672
23676
  }, k = Z(() => {
23673
- n(!i);
23674
- }, [i]), H = (M) => {
23677
+ i(!n);
23678
+ }, [n]), H = (M) => {
23675
23679
  u === M ? w((V) => V === "asc" ? "desc" : "asc") : (g(M), w("asc"));
23676
23680
  }, L = u1(() => /* @__PURE__ */ c("div", {
23677
23681
  className: "list-suggestions-list",
@@ -23727,12 +23731,12 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
23727
23731
  C && /* @__PURE__ */ c("span", {
23728
23732
  className: "link",
23729
23733
  onClick: k,
23730
- children: ["Show ", i ? "less" : "more"]
23734
+ children: ["Show ", n ? "less" : "more"]
23731
23735
  })
23732
23736
  ]
23733
23737
  }), [
23734
23738
  h,
23735
- i,
23739
+ n,
23736
23740
  C,
23737
23741
  d,
23738
23742
  s,
@@ -24291,7 +24295,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24291
24295
  "terracotta-kitchen",
24292
24296
  "vital-aurora"
24293
24297
  ]), Tl = (t) => Dl.has(t) ? "light" : "dark", Il = (t) => p0.find((r) => r.value === t), V2 = "theme-font-link", N2 = "theme-font-link-display", H2 = "theme-font-link-mono", Ui = ({ children: t, theme: r, effects: l, onSave: a, allowedThemes: h }) => {
24294
- const [d, o] = z(null), [m, i] = z(null), [n, s] = z(!1), p = d ?? r, u = m ?? l;
24298
+ const [d, o] = z(null), [m, n] = z(null), [i, s] = z(!1), p = d ?? r, u = m ?? l;
24295
24299
  F(() => {
24296
24300
  document.documentElement.setAttribute("data-theme", p);
24297
24301
  const C = Il(p);
@@ -24307,9 +24311,9 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24307
24311
  const g = Z((C) => {
24308
24312
  o(C);
24309
24313
  }, []), v = Z((C) => {
24310
- i(C);
24314
+ n(C);
24311
24315
  }, []), w = Z(() => {
24312
- o(null), i(null);
24316
+ o(null), n(null);
24313
24317
  }, []);
24314
24318
  F(() => {
24315
24319
  const C = (k) => {
@@ -24324,7 +24328,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24324
24328
  if (L.length === 0) return;
24325
24329
  const M = L.indexOf(p), V = ((M === -1 ? 0 : M) + (k.key === "]" ? 1 : -1) + L.length) % L.length;
24326
24330
  o(L[V]);
24327
- } else k.key === "Escape" && d && (k.preventDefault(), o(null), i(null));
24331
+ } else k.key === "Escape" && d && (k.preventDefault(), o(null), n(null));
24328
24332
  };
24329
24333
  return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
24330
24334
  }, [
@@ -24336,7 +24340,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24336
24340
  a?.({
24337
24341
  theme: p,
24338
24342
  effects: u
24339
- }), o(null), i(null);
24343
+ }), o(null), n(null);
24340
24344
  }, [
24341
24345
  p,
24342
24346
  u,
@@ -24396,7 +24400,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24396
24400
  },
24397
24401
  children: "[ prev · ] next · Esc revert"
24398
24402
  }),
24399
- n && /* @__PURE__ */ e("div", {
24403
+ i && /* @__PURE__ */ e("div", {
24400
24404
  style: {
24401
24405
  position: "absolute",
24402
24406
  bottom: "calc(100% + 6px)",
@@ -24414,15 +24418,15 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24414
24418
  ]
24415
24419
  })]
24416
24420
  });
24417
- }, S2 = ({ checked: t = !1, className: r, disabled: l = !1, offLabel: a = "Off", onChange: h, onLabel: d = "On", showLabels: o = !0, size: m = "medium", variant: i = "default" }) => {
24418
- const n = () => {
24421
+ }, S2 = ({ checked: t = !1, className: r, disabled: l = !1, offLabel: a = "Off", onChange: h, onLabel: d = "On", showLabels: o = !0, size: m = "medium", variant: n = "default" }) => {
24422
+ const i = () => {
24419
24423
  !l && h && h(!t);
24420
24424
  }, s = (p) => {
24421
- (p.key === " " || p.key === "Enter") && (p.preventDefault(), n());
24425
+ (p.key === " " || p.key === "Enter") && (p.preventDefault(), i());
24422
24426
  };
24423
24427
  return /* @__PURE__ */ e("div", {
24424
- className: `toggle-switch toggle-switch-${m} toggle-switch-${i} ${t ? "toggle-switch-checked" : ""} ${l ? "toggle-switch-disabled" : ""} ${r || ""}`,
24425
- onClick: n,
24428
+ className: `toggle-switch toggle-switch-${m} toggle-switch-${n} ${t ? "toggle-switch-checked" : ""} ${l ? "toggle-switch-disabled" : ""} ${r || ""}`,
24429
+ onClick: i,
24426
24430
  onKeyDown: s,
24427
24431
  tabIndex: l ? -1 : 0,
24428
24432
  children: /* @__PURE__ */ c("div", {
@@ -24447,7 +24451,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24447
24451
  label: "Dark"
24448
24452
  }
24449
24453
  ], Fi = ({ isOpen: t, onClose: r, allowedThemes: l, currentApp: a, showEffects: h = !0, showSearch: d = !0, showFavorites: o = !0, showAppearanceFilter: m = !0 }) => {
24450
- const { theme: i, effects: n, setPreviewTheme: s, setPreviewEffects: p, commitPreview: u, clearPreview: g } = D2(), v = ["Card", "Modal"], w = [
24454
+ const { theme: n, effects: i, setPreviewTheme: s, setPreviewEffects: p, commitPreview: u, clearPreview: g } = D2(), v = ["Card", "Modal"], w = [
24451
24455
  {
24452
24456
  label: "None",
24453
24457
  value: ""
@@ -24504,7 +24508,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24504
24508
  b,
24505
24509
  x,
24506
24510
  H,
24507
- i
24511
+ n
24508
24512
  ]);
24509
24513
  const R = (N) => {
24510
24514
  s(N);
@@ -24512,12 +24516,12 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24512
24516
  const q = !N || Array.isArray(N) ? "" : N.value;
24513
24517
  p({
24514
24518
  effect: q,
24515
- components: n.components
24519
+ components: i.components
24516
24520
  });
24517
24521
  }, E = (N, q) => {
24518
- const t1 = q ? [...n.components, N] : n.components.filter((I) => I !== N);
24522
+ const t1 = q ? [...i.components, N] : i.components.filter((I) => I !== N);
24519
24523
  p({
24520
- effect: n.effect,
24524
+ effect: i.effect,
24521
24525
  components: t1
24522
24526
  });
24523
24527
  }, O = () => {
@@ -24592,9 +24596,9 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24592
24596
  className: "theme-settings__empty",
24593
24597
  children: "No themes found"
24594
24598
  }) : _.map((N) => /* @__PURE__ */ c("button", {
24595
- ref: i === N.value ? M : null,
24599
+ ref: n === N.value ? M : null,
24596
24600
  type: "button",
24597
- className: `theme-settings__swatch ${i === N.value ? "theme-settings__swatch--active" : ""}`,
24601
+ className: `theme-settings__swatch ${n === N.value ? "theme-settings__swatch--active" : ""}`,
24598
24602
  onClick: () => R(N.value),
24599
24603
  children: [/* @__PURE__ */ c("div", {
24600
24604
  className: "theme-settings__preview",
@@ -24643,7 +24647,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24643
24647
  id: "effect-selector",
24644
24648
  name: "effect",
24645
24649
  options: w,
24646
- value: n.effect,
24650
+ value: i.effect,
24647
24651
  onChange: B,
24648
24652
  placeholder: "Choose an effect"
24649
24653
  })]
@@ -24653,9 +24657,9 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24653
24657
  className: "theme-settings__components",
24654
24658
  children: v.map((N) => /* @__PURE__ */ e(c0, {
24655
24659
  label: N,
24656
- checked: n.components.includes(N),
24660
+ checked: i.components.includes(N),
24657
24661
  onChange: (q) => E(N, q),
24658
- disabled: !n.effect
24662
+ disabled: !i.effect
24659
24663
  }, N))
24660
24664
  })]
24661
24665
  })] })]
@@ -24759,7 +24763,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24759
24763
  return h === "cards" ? /* @__PURE__ */ e("div", {
24760
24764
  className: "toggle-buttons toggle-buttons--cards",
24761
24765
  children: a.map((m) => {
24762
- const i = /* @__PURE__ */ c("button", {
24766
+ const n = /* @__PURE__ */ c("button", {
24763
24767
  type: "button",
24764
24768
  className: `toggle-buttons__card${r === m.key ? " toggle-buttons__card--active" : ""}`,
24765
24769
  onClick: () => l(m.key),
@@ -24776,18 +24780,18 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24776
24780
  }, m.key);
24777
24781
  return m.description ? /* @__PURE__ */ e(X, {
24778
24782
  title: m.description,
24779
- children: i
24780
- }, m.key) : i;
24783
+ children: n
24784
+ }, m.key) : n;
24781
24785
  })
24782
24786
  }) : /* @__PURE__ */ e("div", {
24783
24787
  className: "toggle-buttons",
24784
- children: a.map((m, i) => /* @__PURE__ */ e(T, {
24788
+ children: a.map((m, n) => /* @__PURE__ */ e(T, {
24785
24789
  size: d,
24786
24790
  variant: r === m.key ? t : "default",
24787
24791
  icon: m.icon,
24788
24792
  onClick: () => l(m.key),
24789
24793
  children: o("tablet") ? m.label : ""
24790
- }, `btn-toggle2-${i}-${m}`))
24794
+ }, `btn-toggle2-${n}-${m}`))
24791
24795
  });
24792
24796
  }, B0 = "::", jl = (t) => typeof t == "object" ? t.label : void 0, Wl = (t) => "fields" in t ? t.fields.flatMap((r) => [{
24793
24797
  value: `${r.value}${B0}asc`,
@@ -24797,26 +24801,26 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24797
24801
  value: `${r.value}${B0}desc`,
24798
24802
  label: r.label,
24799
24803
  suffixIcon: "arrow-down"
24800
- }]) : t.options, Ul = (t) => "fields" in t ? t.value ? `${t.value.field}${B0}${t.value.direction}` : null : t.value, Xi = ({ children: t, className: r = "", controlPanelToggle: l, heading: a, noCard: h = !1, menuItems: d, notifications: o, search: m, sort: i }) => {
24801
- const n = l2(), s = !!(l && n?.isMobile), p = typeof l == "object" ? l.count ?? 0 : 0, u = [
24804
+ }]) : t.options, Ul = (t) => "fields" in t ? t.value ? `${t.value.field}${B0}${t.value.direction}` : null : t.value, Xi = ({ children: t, className: r = "", controlPanelToggle: l, heading: a, noCard: h = !1, menuItems: d, notifications: o, search: m, sort: n }) => {
24805
+ const i = l2(), s = !!(l && i?.isMobile), p = typeof l == "object" ? l.count ?? 0 : 0, u = [
24802
24806
  "memobit-toolbar",
24803
24807
  h ? "memobit-toolbar--no-card" : "",
24804
24808
  r
24805
- ].filter(Boolean).join(" "), g = !!(m || i || t), v = (w) => {
24806
- if (i) {
24809
+ ].filter(Boolean).join(" "), g = !!(m || n || t), v = (w) => {
24810
+ if (n) {
24807
24811
  if (!w || Array.isArray(w)) {
24808
- "fields" in i || i.onChange("", null);
24812
+ "fields" in n || n.onChange("", null);
24809
24813
  return;
24810
24814
  }
24811
- if ("fields" in i) {
24815
+ if ("fields" in n) {
24812
24816
  const f = String(w.value), y = f.lastIndexOf(B0), b = f.substring(0, y), C = f.substring(y + 2);
24813
- i.onChange({
24817
+ n.onChange({
24814
24818
  field: b,
24815
24819
  direction: C
24816
24820
  });
24817
24821
  return;
24818
24822
  }
24819
- i.onChange(String(w.value), w);
24823
+ n.onChange(String(w.value), w);
24820
24824
  }
24821
24825
  };
24822
24826
  return /* @__PURE__ */ c("div", {
@@ -24827,7 +24831,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24827
24831
  children: /* @__PURE__ */ c(T, {
24828
24832
  className: "memobit-toolbar__control-panel-toggle",
24829
24833
  icon: "tune",
24830
- onClick: n?.toggle,
24834
+ onClick: i?.toggle,
24831
24835
  size: "medium",
24832
24836
  variant: "default",
24833
24837
  children: [l && jl(l), p > 0 && /* @__PURE__ */ e("span", {
@@ -24871,18 +24875,18 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24871
24875
  className: "memobit-toolbar__custom",
24872
24876
  children: t
24873
24877
  }),
24874
- i && /* @__PURE__ */ e("div", {
24875
- className: ["memobit-toolbar__sort", i.className].filter(Boolean).join(" "),
24878
+ n && /* @__PURE__ */ e("div", {
24879
+ className: ["memobit-toolbar__sort", n.className].filter(Boolean).join(" "),
24876
24880
  children: /* @__PURE__ */ e(V0, {
24877
- highlighted: i.highlighted,
24878
- label: i.label,
24879
- name: i.name ?? "toolbar-sort",
24881
+ highlighted: n.highlighted,
24882
+ label: n.label,
24883
+ name: n.name ?? "toolbar-sort",
24880
24884
  onChange: v,
24881
- options: Wl(i),
24882
- placeholder: i.placeholder,
24883
- searchable: i.searchable ?? !1,
24885
+ options: Wl(n),
24886
+ placeholder: n.placeholder,
24887
+ searchable: n.searchable ?? !1,
24884
24888
  usePortal: !1,
24885
- value: Ul(i)
24889
+ value: Ul(n)
24886
24890
  })
24887
24891
  })
24888
24892
  ]
@@ -24902,12 +24906,12 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24902
24906
  })
24903
24907
  ]
24904
24908
  });
24905
- }, Ki = ({ label: t, stepLabel: r, index: l, total: a, title: h, note: d, onPrev: o, onNext: m, onExit: i, width: n, className: s = "" }) => {
24906
- const p = n === void 0 ? void 0 : { "--tour-hud-width": typeof n == "number" ? `${n}px` : n };
24909
+ }, Ki = ({ label: t, stepLabel: r, index: l, total: a, title: h, note: d, onPrev: o, onNext: m, onExit: n, width: i, className: s = "" }) => {
24910
+ const p = i === void 0 ? void 0 : { "--tour-hud-width": typeof i == "number" ? `${i}px` : i };
24907
24911
  return /* @__PURE__ */ c("div", {
24908
24912
  className: [
24909
24913
  "tour-hud",
24910
- n !== void 0 && "tour-hud--fixed-width",
24914
+ i !== void 0 && "tour-hud--fixed-width",
24911
24915
  s
24912
24916
  ].filter(Boolean).join(" "),
24913
24917
  style: p,
@@ -24957,7 +24961,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24957
24961
  /* @__PURE__ */ e("button", {
24958
24962
  type: "button",
24959
24963
  className: "tour-hud__btn",
24960
- onClick: i,
24964
+ onClick: n,
24961
24965
  children: "Exit"
24962
24966
  })
24963
24967
  ]
@@ -24977,10 +24981,10 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
24977
24981
  strokeLinejoin: "round"
24978
24982
  })
24979
24983
  }), c3 = ({ node: t, depth: r, selectable: l, showGuides: a, animated: h, selectedId: d, onSelect: o }) => {
24980
- const [m, i] = z(t.defaultExpanded ?? !1), n = Array.isArray(t.children) && t.children.length > 0, s = l && d === t.id, p = Z((u) => {
24981
- t.disabled || "key" in u && u.key !== "Enter" && u.key !== " " || (n && i((g) => !g), l && o(t));
24984
+ const [m, n] = z(t.defaultExpanded ?? !1), i = Array.isArray(t.children) && t.children.length > 0, s = l && d === t.id, p = Z((u) => {
24985
+ t.disabled || "key" in u && u.key !== "Enter" && u.key !== " " || (i && n((g) => !g), l && o(t));
24982
24986
  }, [
24983
- n,
24987
+ i,
24984
24988
  t,
24985
24989
  l,
24986
24990
  o
@@ -25003,7 +25007,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
25003
25007
  }, g)),
25004
25008
  /* @__PURE__ */ e("span", {
25005
25009
  className: "tree__toggle",
25006
- children: n ? /* @__PURE__ */ e(Fl, { open: m }) : /* @__PURE__ */ e("span", { className: "tree__leaf-dot" })
25010
+ children: i ? /* @__PURE__ */ e(Fl, { open: m }) : /* @__PURE__ */ e("span", { className: "tree__leaf-dot" })
25007
25011
  }),
25008
25012
  t.icon && /* @__PURE__ */ e("span", {
25009
25013
  className: "tree__icon",
@@ -25018,7 +25022,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
25018
25022
  children: t.badge
25019
25023
  })
25020
25024
  ]
25021
- }), n && /* @__PURE__ */ e("ul", {
25025
+ }), i && /* @__PURE__ */ e("ul", {
25022
25026
  className: [
25023
25027
  "tree__children",
25024
25028
  m ? "tree__children--open" : "",
@@ -25035,8 +25039,8 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
25035
25039
  }, u.id))
25036
25040
  })] });
25037
25041
  }, Qi = ({ nodes: t, selectable: r = !1, onSelect: l, showGuides: a = !0, animated: h = !0, defaultSelectedId: d = null, className: o = "" }) => {
25038
- const [m, i] = z(d), n = Z((s) => {
25039
- s.disabled || (i(s.id), l?.(s));
25042
+ const [m, n] = z(d), i = Z((s) => {
25043
+ s.disabled || (n(s.id), l?.(s));
25040
25044
  }, [l]);
25041
25045
  return /* @__PURE__ */ e("ul", {
25042
25046
  className: ["tree", o].filter(Boolean).join(" "),
@@ -25047,19 +25051,19 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
25047
25051
  showGuides: a,
25048
25052
  animated: h,
25049
25053
  selectedId: m,
25050
- onSelect: n
25054
+ onSelect: i
25051
25055
  }, s.id))
25052
25056
  });
25053
25057
  }, Ol = 96, Yl = 6;
25054
- function Ji({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = Yl, maxHeight: d, empty: o, className: m = "", rowClassName: i = "" }) {
25055
- const n = K(null), [s, p] = z(0), [u, g] = z(0), [v, w] = z(() => window.innerHeight), [f, y] = z(Ol), b = a && a > 0 ? a : f, C = Z((_) => {
25058
+ function Ji({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = Yl, maxHeight: d, empty: o, className: m = "", rowClassName: n = "" }) {
25059
+ const i = K(null), [s, p] = z(0), [u, g] = z(0), [v, w] = z(() => window.innerHeight), [f, y] = z(Ol), b = a && a > 0 ? a : f, C = Z((_) => {
25056
25060
  p(_.currentTarget.scrollTop);
25057
25061
  }, []);
25058
25062
  F(() => {
25059
25063
  const _ = () => w(window.innerHeight);
25060
25064
  return window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
25061
25065
  }, []), F(() => {
25062
- const _ = n.current;
25066
+ const _ = i.current;
25063
25067
  if (!_) return;
25064
25068
  const R = new ResizeObserver((B) => {
25065
25069
  const E = B[0]?.contentRect.height ?? 0;
@@ -25067,12 +25071,12 @@ function Ji({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = Yl
25067
25071
  });
25068
25072
  return R.observe(_), g(_.clientHeight), () => R.disconnect();
25069
25073
  }, []), m2(() => {
25070
- n.current && (n.current.scrollTop = 0), p(0);
25074
+ i.current && (i.current.scrollTop = 0), p(0);
25071
25075
  }, [t]);
25072
25076
  const x = t.length, k = Math.ceil(Math.min(u || v, v) / b), H = Math.max(1, k + h * 2), L = Math.max(0, x - H), M = Math.min(L, Math.max(0, Math.floor(s / b) - h)), V = Math.min(x, M + H), S = Math.max(0, x - V);
25073
25077
  return m2(() => {
25074
25078
  if (a) return;
25075
- const _ = n.current;
25079
+ const _ = i.current;
25076
25080
  if (!_) return;
25077
25081
  const R = _.querySelectorAll("[data-virtual-row]"), B = R[0];
25078
25082
  if (!B) return;
@@ -25084,7 +25088,7 @@ function Ji({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = Yl
25084
25088
  u
25085
25089
  ]), x === 0 ? o ? /* @__PURE__ */ e(n1, { children: o }) : null : /* @__PURE__ */ c("div", {
25086
25090
  className: `virtual-list ${m}`.trim(),
25087
- ref: n,
25091
+ ref: i,
25088
25092
  onScroll: C,
25089
25093
  style: d === void 0 ? void 0 : { maxHeight: d },
25090
25094
  children: [
@@ -25095,7 +25099,7 @@ function Ji({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = Yl
25095
25099
  t.slice(M, V).map((_, R) => {
25096
25100
  const B = M + R;
25097
25101
  return /* @__PURE__ */ e("div", {
25098
- className: `virtual-list__row ${i}`.trim(),
25102
+ className: `virtual-list__row ${n}`.trim(),
25099
25103
  "data-virtual-row": "",
25100
25104
  children: r(_, B)
25101
25105
  }, l(_, B));
@@ -25165,7 +25169,7 @@ var $1 = [
25165
25169
  }
25166
25170
  return 100;
25167
25171
  }, en = ({ belly: t, height: r, isSimplified: l = !1, showLabels: a = !0, showIndicator: h = !0 }) => {
25168
- const d = Math.round(t / r * 100) / 100, o = ql(d), m = Xl(d), i = [
25172
+ const d = Math.round(t / r * 100) / 100, o = ql(d), m = Xl(d), n = [
25169
25173
  "<0.4",
25170
25174
  "0.4-0.5",
25171
25175
  "0.5-0.6",
@@ -25189,26 +25193,26 @@ var $1 = [
25189
25193
  }),
25190
25194
  /* @__PURE__ */ e("div", {
25191
25195
  className: "whtr-horizontal-bar",
25192
- children: $1.map((n, s) => /* @__PURE__ */ e("div", {
25196
+ children: $1.map((i, s) => /* @__PURE__ */ e("div", {
25193
25197
  className: "whtr-bar-segment",
25194
25198
  style: {
25195
- backgroundColor: n.color,
25196
- width: `${n.percentage}%`
25199
+ backgroundColor: i.color,
25200
+ width: `${i.percentage}%`
25197
25201
  },
25198
25202
  children: /* @__PURE__ */ e("div", {
25199
25203
  className: "whtr-range-text",
25200
- children: i[s]
25204
+ children: n[s]
25201
25205
  })
25202
25206
  }, s))
25203
25207
  }),
25204
25208
  a && /* @__PURE__ */ e("div", {
25205
25209
  className: "whtr-labels-row",
25206
- children: $1.map((n, s) => /* @__PURE__ */ e("div", {
25210
+ children: $1.map((i, s) => /* @__PURE__ */ e("div", {
25207
25211
  className: "whtr-label-segment",
25208
- style: { width: `${n.percentage}%` },
25212
+ style: { width: `${i.percentage}%` },
25209
25213
  children: /* @__PURE__ */ e("div", {
25210
25214
  className: "whtr-label-text",
25211
- children: l && n.shortLabel || n.label
25215
+ children: l && i.shortLabel || i.label
25212
25216
  })
25213
25217
  }, s))
25214
25218
  })
@@ -25273,7 +25277,7 @@ function tn({ children: t, config: r }) {
25273
25277
  } finally {
25274
25278
  d(!1);
25275
25279
  }
25276
- }, [r.apiBaseUrl, o]), i = Z(async (s, p) => {
25280
+ }, [r.apiBaseUrl, o]), n = Z(async (s, p) => {
25277
25281
  d(!0);
25278
25282
  try {
25279
25283
  const u = await fetch(`${r.apiBaseUrl}/auth/verifyMfa`, {
@@ -25295,7 +25299,7 @@ function tn({ children: t, config: r }) {
25295
25299
  } finally {
25296
25300
  d(!1);
25297
25301
  }
25298
- }, [r.apiBaseUrl, o]), n = Z(async () => {
25302
+ }, [r.apiBaseUrl, o]), i = Z(async () => {
25299
25303
  try {
25300
25304
  await fetch(`${r.apiBaseUrl}/auth/logout`, {
25301
25305
  method: "POST",
@@ -25315,8 +25319,8 @@ function tn({ children: t, config: r }) {
25315
25319
  isLoading: h,
25316
25320
  config: r,
25317
25321
  login: m,
25318
- verifyMfa: i,
25319
- logout: n
25322
+ verifyMfa: n,
25323
+ logout: i
25320
25324
  },
25321
25325
  children: t
25322
25326
  });
@@ -25327,9 +25331,9 @@ var n2 = () => {
25327
25331
  return t;
25328
25332
  };
25329
25333
  function rn({ isOpen: t, onClose: r }) {
25330
- const { config: l } = n2(), [a, h] = z(""), [d, o] = z(""), [m, i] = z(""), [n, s] = z(""), [p, u] = z(!1), [g, v] = z(null);
25334
+ const { config: l } = n2(), [a, h] = z(""), [d, o] = z(""), [m, n] = z(""), [i, s] = z(""), [p, u] = z(!1), [g, v] = z(null);
25331
25335
  F(() => {
25332
- t && (h(""), o(""), i(""), s(""));
25336
+ t && (h(""), o(""), n(""), s(""));
25333
25337
  }, [t]);
25334
25338
  const w = async () => {
25335
25339
  if (!a || !d || !m) {
@@ -25436,14 +25440,14 @@ function rn({ isOpen: t, onClose: r }) {
25436
25440
  }), /* @__PURE__ */ e(u0, {
25437
25441
  id: "confirm-password",
25438
25442
  value: m,
25439
- onChange: (y) => i(y),
25443
+ onChange: (y) => n(y),
25440
25444
  placeholder: "Confirm new password",
25441
25445
  disabled: p
25442
25446
  })]
25443
25447
  }),
25444
- n && /* @__PURE__ */ e("div", {
25448
+ i && /* @__PURE__ */ e("div", {
25445
25449
  className: "ChangePasswordModal__error",
25446
- children: n
25450
+ children: i
25447
25451
  })
25448
25452
  ]
25449
25453
  }), g && /* @__PURE__ */ e(i2, {
@@ -25454,7 +25458,7 @@ function rn({ isOpen: t, onClose: r }) {
25454
25458
  });
25455
25459
  }
25456
25460
  function cn({ redirectPath: t = "/" }) {
25457
- const { login: r, verifyMfa: l, config: a, isAuthenticated: h } = n2(), [d, o] = z("credentials"), [m, i] = z(""), [n, s] = z(""), [p, u] = z(!1), [g, v] = z("totp"), [w, f] = z(""), [y, b] = z(!1), [C, x] = z(""), [k, H] = z(!1), [L, M] = z(!1);
25461
+ const { login: r, verifyMfa: l, config: a, isAuthenticated: h } = n2(), [d, o] = z("credentials"), [m, n] = z(""), [i, s] = z(""), [p, u] = z(!1), [g, v] = z("totp"), [w, f] = z(""), [y, b] = z(!1), [C, x] = z(""), [k, H] = z(!1), [L, M] = z(!1);
25458
25462
  F(() => {
25459
25463
  h && (window.location.href = t);
25460
25464
  }, [h, t]), F(() => {
@@ -25465,7 +25469,7 @@ function cn({ redirectPath: t = "/" }) {
25465
25469
  }
25466
25470
  }, []);
25467
25471
  const V = async (B) => {
25468
- if (B.preventDefault(), x(""), !m || !n) {
25472
+ if (B.preventDefault(), x(""), !m || !i) {
25469
25473
  x("Username and password are required");
25470
25474
  return;
25471
25475
  }
@@ -25473,7 +25477,7 @@ function cn({ redirectPath: t = "/" }) {
25473
25477
  try {
25474
25478
  const E = await r({
25475
25479
  username: m,
25476
- password: n,
25480
+ password: i,
25477
25481
  rememberMe: p
25478
25482
  });
25479
25483
  E.mfaRequired && (v(E.method ?? "totp"), f(""), o("mfa"));
@@ -25512,14 +25516,14 @@ function cn({ redirectPath: t = "/" }) {
25512
25516
  /* @__PURE__ */ e(V1, {
25513
25517
  placeholder: "Username",
25514
25518
  value: m,
25515
- onChange: (B) => i(B),
25519
+ onChange: (B) => n(B),
25516
25520
  required: !0,
25517
25521
  autoFocus: !0,
25518
25522
  disabled: k
25519
25523
  }),
25520
25524
  /* @__PURE__ */ e(u0, {
25521
25525
  placeholder: "Password",
25522
- value: n,
25526
+ value: i,
25523
25527
  onChange: (B) => s(B),
25524
25528
  required: !0,
25525
25529
  disabled: k
@@ -25614,10 +25618,10 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
25614
25618
  }, a0;
25615
25619
  ((t) => {
25616
25620
  const r = class i1 {
25617
- constructor(i, n, s, p) {
25618
- if (this.version = i, this.errorCorrectionLevel = n, this.modules = [], this.isFunction = [], i < i1.MIN_VERSION || i > i1.MAX_VERSION) throw new RangeError("Version value out of range");
25621
+ constructor(n, i, s, p) {
25622
+ if (this.version = n, this.errorCorrectionLevel = i, this.modules = [], this.isFunction = [], n < i1.MIN_VERSION || n > i1.MAX_VERSION) throw new RangeError("Version value out of range");
25619
25623
  if (p < -1 || p > 7) throw new RangeError("Mask value out of range");
25620
- this.size = i * 4 + 17;
25624
+ this.size = n * 4 + 17;
25621
25625
  let u = [];
25622
25626
  for (let v = 0; v < this.size; v++) u.push(!1);
25623
25627
  for (let v = 0; v < this.size; v++)
@@ -25634,19 +25638,19 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
25634
25638
  }
25635
25639
  h(0 <= p && p <= 7), this.mask = p, this.applyMask(p), this.drawFormatBits(p), this.isFunction = [];
25636
25640
  }
25637
- static encodeText(i, n) {
25638
- const s = t.QrSegment.makeSegments(i);
25639
- return i1.encodeSegments(s, n);
25641
+ static encodeText(n, i) {
25642
+ const s = t.QrSegment.makeSegments(n);
25643
+ return i1.encodeSegments(s, i);
25640
25644
  }
25641
- static encodeBinary(i, n) {
25642
- const s = t.QrSegment.makeBytes(i);
25643
- return i1.encodeSegments([s], n);
25645
+ static encodeBinary(n, i) {
25646
+ const s = t.QrSegment.makeBytes(n);
25647
+ return i1.encodeSegments([s], i);
25644
25648
  }
25645
- static encodeSegments(i, n, s = 1, p = 40, u = -1, g = !0) {
25649
+ static encodeSegments(n, i, s = 1, p = 40, u = -1, g = !0) {
25646
25650
  if (!(i1.MIN_VERSION <= s && s <= p && p <= i1.MAX_VERSION) || u < -1 || u > 7) throw new RangeError("Invalid value");
25647
25651
  let v, w;
25648
25652
  for (v = s; ; v++) {
25649
- const C = i1.getNumDataCodewords(v, n) * 8, x = o.getTotalBits(i, v);
25653
+ const C = i1.getNumDataCodewords(v, i) * 8, x = o.getTotalBits(n, v);
25650
25654
  if (x <= C) {
25651
25655
  w = x;
25652
25656
  break;
@@ -25657,22 +25661,22 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
25657
25661
  i1.Ecc.MEDIUM,
25658
25662
  i1.Ecc.QUARTILE,
25659
25663
  i1.Ecc.HIGH
25660
- ]) g && w <= i1.getNumDataCodewords(v, C) * 8 && (n = C);
25664
+ ]) g && w <= i1.getNumDataCodewords(v, C) * 8 && (i = C);
25661
25665
  let f = [];
25662
- for (const C of i) {
25666
+ for (const C of n) {
25663
25667
  l(C.mode.modeBits, 4, f), l(C.numChars, C.mode.numCharCountBits(v), f);
25664
25668
  for (const x of C.getData()) f.push(x);
25665
25669
  }
25666
25670
  h(f.length == w);
25667
- const y = i1.getNumDataCodewords(v, n) * 8;
25671
+ const y = i1.getNumDataCodewords(v, i) * 8;
25668
25672
  h(f.length <= y), l(0, Math.min(4, y - f.length), f), l(0, (8 - f.length % 8) % 8, f), h(f.length % 8 == 0);
25669
25673
  for (let C = 236; f.length < y; C ^= 253) l(C, 8, f);
25670
25674
  let b = [];
25671
25675
  for (; b.length * 8 < f.length; ) b.push(0);
25672
- return f.forEach((C, x) => b[x >>> 3] |= C << 7 - (x & 7)), new i1(v, n, b, u);
25676
+ return f.forEach((C, x) => b[x >>> 3] |= C << 7 - (x & 7)), new i1(v, i, b, u);
25673
25677
  }
25674
- getModule(i, n) {
25675
- return 0 <= i && i < this.size && 0 <= n && n < this.size && this.modules[n][i];
25678
+ getModule(n, i) {
25679
+ return 0 <= n && n < this.size && 0 <= i && i < this.size && this.modules[i][n];
25676
25680
  }
25677
25681
  getModules() {
25678
25682
  return this.modules;
@@ -25681,15 +25685,15 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
25681
25685
  for (let s = 0; s < this.size; s++)
25682
25686
  this.setFunctionModule(6, s, s % 2 == 0), this.setFunctionModule(s, 6, s % 2 == 0);
25683
25687
  this.drawFinderPattern(3, 3), this.drawFinderPattern(this.size - 4, 3), this.drawFinderPattern(3, this.size - 4);
25684
- const i = this.getAlignmentPatternPositions(), n = i.length;
25685
- for (let s = 0; s < n; s++) for (let p = 0; p < n; p++) s == 0 && p == 0 || s == 0 && p == n - 1 || s == n - 1 && p == 0 || this.drawAlignmentPattern(i[s], i[p]);
25688
+ const n = this.getAlignmentPatternPositions(), i = n.length;
25689
+ for (let s = 0; s < i; s++) for (let p = 0; p < i; p++) s == 0 && p == 0 || s == 0 && p == i - 1 || s == i - 1 && p == 0 || this.drawAlignmentPattern(n[s], n[p]);
25686
25690
  this.drawFormatBits(0), this.drawVersion();
25687
25691
  }
25688
- drawFormatBits(i) {
25689
- const n = this.errorCorrectionLevel.formatBits << 3 | i;
25690
- let s = n;
25692
+ drawFormatBits(n) {
25693
+ const i = this.errorCorrectionLevel.formatBits << 3 | n;
25694
+ let s = i;
25691
25695
  for (let u = 0; u < 10; u++) s = s << 1 ^ (s >>> 9) * 1335;
25692
- const p = (n << 10 | s) ^ 21522;
25696
+ const p = (i << 10 | s) ^ 21522;
25693
25697
  h(p >>> 15 == 0);
25694
25698
  for (let u = 0; u <= 5; u++) this.setFunctionModule(8, u, a(p, u));
25695
25699
  this.setFunctionModule(8, 7, a(p, 6)), this.setFunctionModule(8, 8, a(p, 7)), this.setFunctionModule(7, 8, a(p, 8));
@@ -25700,35 +25704,35 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
25700
25704
  }
25701
25705
  drawVersion() {
25702
25706
  if (this.version < 7) return;
25703
- let i = this.version;
25704
- for (let s = 0; s < 12; s++) i = i << 1 ^ (i >>> 11) * 7973;
25705
- const n = this.version << 12 | i;
25706
- h(n >>> 18 == 0);
25707
+ let n = this.version;
25708
+ for (let s = 0; s < 12; s++) n = n << 1 ^ (n >>> 11) * 7973;
25709
+ const i = this.version << 12 | n;
25710
+ h(i >>> 18 == 0);
25707
25711
  for (let s = 0; s < 18; s++) {
25708
- const p = a(n, s), u = this.size - 11 + s % 3, g = Math.floor(s / 3);
25712
+ const p = a(i, s), u = this.size - 11 + s % 3, g = Math.floor(s / 3);
25709
25713
  this.setFunctionModule(u, g, p), this.setFunctionModule(g, u, p);
25710
25714
  }
25711
25715
  }
25712
- drawFinderPattern(i, n) {
25716
+ drawFinderPattern(n, i) {
25713
25717
  for (let s = -4; s <= 4; s++) for (let p = -4; p <= 4; p++) {
25714
- const u = Math.max(Math.abs(p), Math.abs(s)), g = i + p, v = n + s;
25718
+ const u = Math.max(Math.abs(p), Math.abs(s)), g = n + p, v = i + s;
25715
25719
  0 <= g && g < this.size && 0 <= v && v < this.size && this.setFunctionModule(g, v, u != 2 && u != 4);
25716
25720
  }
25717
25721
  }
25718
- drawAlignmentPattern(i, n) {
25719
- for (let s = -2; s <= 2; s++) for (let p = -2; p <= 2; p++) this.setFunctionModule(i + p, n + s, Math.max(Math.abs(p), Math.abs(s)) != 1);
25722
+ drawAlignmentPattern(n, i) {
25723
+ for (let s = -2; s <= 2; s++) for (let p = -2; p <= 2; p++) this.setFunctionModule(n + p, i + s, Math.max(Math.abs(p), Math.abs(s)) != 1);
25720
25724
  }
25721
- setFunctionModule(i, n, s) {
25722
- this.modules[n][i] = s, this.isFunction[n][i] = !0;
25725
+ setFunctionModule(n, i, s) {
25726
+ this.modules[i][n] = s, this.isFunction[i][n] = !0;
25723
25727
  }
25724
- addEccAndInterleave(i) {
25725
- const n = this.version, s = this.errorCorrectionLevel;
25726
- if (i.length != i1.getNumDataCodewords(n, s)) throw new RangeError("Invalid argument");
25727
- const p = i1.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][n], u = i1.ECC_CODEWORDS_PER_BLOCK[s.ordinal][n], g = Math.floor(i1.getNumRawDataModules(n) / 8), v = p - g % p, w = Math.floor(g / p);
25728
+ addEccAndInterleave(n) {
25729
+ const i = this.version, s = this.errorCorrectionLevel;
25730
+ if (n.length != i1.getNumDataCodewords(i, s)) throw new RangeError("Invalid argument");
25731
+ const p = i1.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][i], u = i1.ECC_CODEWORDS_PER_BLOCK[s.ordinal][i], g = Math.floor(i1.getNumRawDataModules(i) / 8), v = p - g % p, w = Math.floor(g / p);
25728
25732
  let f = [];
25729
25733
  const y = i1.reedSolomonComputeDivisor(u);
25730
25734
  for (let C = 0, x = 0; C < p; C++) {
25731
- let k = i.slice(x, x + w - u + (C < v ? 0 : 1));
25735
+ let k = n.slice(x, x + w - u + (C < v ? 0 : 1));
25732
25736
  x += k.length;
25733
25737
  const H = i1.reedSolomonComputeRemainder(k, y);
25734
25738
  C < v && k.push(0), f.push(k.concat(H));
@@ -25739,55 +25743,55 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
25739
25743
  });
25740
25744
  return h(b.length == g), b;
25741
25745
  }
25742
- drawCodewords(i) {
25743
- if (i.length != Math.floor(i1.getNumRawDataModules(this.version) / 8)) throw new RangeError("Invalid argument");
25744
- let n = 0;
25746
+ drawCodewords(n) {
25747
+ if (n.length != Math.floor(i1.getNumRawDataModules(this.version) / 8)) throw new RangeError("Invalid argument");
25748
+ let i = 0;
25745
25749
  for (let s = this.size - 1; s >= 1; s -= 2) {
25746
25750
  s == 6 && (s = 5);
25747
25751
  for (let p = 0; p < this.size; p++) for (let u = 0; u < 2; u++) {
25748
25752
  const g = s - u, v = (s + 1 & 2) == 0 ? this.size - 1 - p : p;
25749
- !this.isFunction[v][g] && n < i.length * 8 && (this.modules[v][g] = a(i[n >>> 3], 7 - (n & 7)), n++);
25753
+ !this.isFunction[v][g] && i < n.length * 8 && (this.modules[v][g] = a(n[i >>> 3], 7 - (i & 7)), i++);
25750
25754
  }
25751
25755
  }
25752
- h(n == i.length * 8);
25756
+ h(i == n.length * 8);
25753
25757
  }
25754
- applyMask(i) {
25755
- if (i < 0 || i > 7) throw new RangeError("Mask value out of range");
25756
- for (let n = 0; n < this.size; n++) for (let s = 0; s < this.size; s++) {
25758
+ applyMask(n) {
25759
+ if (n < 0 || n > 7) throw new RangeError("Mask value out of range");
25760
+ for (let i = 0; i < this.size; i++) for (let s = 0; s < this.size; s++) {
25757
25761
  let p;
25758
- switch (i) {
25762
+ switch (n) {
25759
25763
  case 0:
25760
- p = (s + n) % 2 == 0;
25764
+ p = (s + i) % 2 == 0;
25761
25765
  break;
25762
25766
  case 1:
25763
- p = n % 2 == 0;
25767
+ p = i % 2 == 0;
25764
25768
  break;
25765
25769
  case 2:
25766
25770
  p = s % 3 == 0;
25767
25771
  break;
25768
25772
  case 3:
25769
- p = (s + n) % 3 == 0;
25773
+ p = (s + i) % 3 == 0;
25770
25774
  break;
25771
25775
  case 4:
25772
- p = (Math.floor(s / 3) + Math.floor(n / 2)) % 2 == 0;
25776
+ p = (Math.floor(s / 3) + Math.floor(i / 2)) % 2 == 0;
25773
25777
  break;
25774
25778
  case 5:
25775
- p = s * n % 2 + s * n % 3 == 0;
25779
+ p = s * i % 2 + s * i % 3 == 0;
25776
25780
  break;
25777
25781
  case 6:
25778
- p = (s * n % 2 + s * n % 3) % 2 == 0;
25782
+ p = (s * i % 2 + s * i % 3) % 2 == 0;
25779
25783
  break;
25780
25784
  case 7:
25781
- p = ((s + n) % 2 + s * n % 3) % 2 == 0;
25785
+ p = ((s + i) % 2 + s * i % 3) % 2 == 0;
25782
25786
  break;
25783
25787
  default:
25784
25788
  throw new Error("Unreachable");
25785
25789
  }
25786
- !this.isFunction[n][s] && p && (this.modules[n][s] = !this.modules[n][s]);
25790
+ !this.isFunction[i][s] && p && (this.modules[i][s] = !this.modules[i][s]);
25787
25791
  }
25788
25792
  }
25789
25793
  getPenaltyScore() {
25790
- let i = 0;
25794
+ let n = 0;
25791
25795
  for (let u = 0; u < this.size; u++) {
25792
25796
  let g = !1, v = 0, w = [
25793
25797
  0,
@@ -25798,8 +25802,8 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
25798
25802
  0,
25799
25803
  0
25800
25804
  ];
25801
- for (let f = 0; f < this.size; f++) this.modules[u][f] == g ? (v++, v == 5 ? i += i1.PENALTY_N1 : v > 5 && i++) : (this.finderPenaltyAddHistory(v, w), g || (i += this.finderPenaltyCountPatterns(w) * i1.PENALTY_N3), g = this.modules[u][f], v = 1);
25802
- i += this.finderPenaltyTerminateAndCount(g, v, w) * i1.PENALTY_N3;
25805
+ for (let f = 0; f < this.size; f++) this.modules[u][f] == g ? (v++, v == 5 ? n += i1.PENALTY_N1 : v > 5 && n++) : (this.finderPenaltyAddHistory(v, w), g || (n += this.finderPenaltyCountPatterns(w) * i1.PENALTY_N3), g = this.modules[u][f], v = 1);
25806
+ n += this.finderPenaltyTerminateAndCount(g, v, w) * i1.PENALTY_N3;
25803
25807
  }
25804
25808
  for (let u = 0; u < this.size; u++) {
25805
25809
  let g = !1, v = 0, w = [
@@ -25811,78 +25815,78 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
25811
25815
  0,
25812
25816
  0
25813
25817
  ];
25814
- for (let f = 0; f < this.size; f++) this.modules[f][u] == g ? (v++, v == 5 ? i += i1.PENALTY_N1 : v > 5 && i++) : (this.finderPenaltyAddHistory(v, w), g || (i += this.finderPenaltyCountPatterns(w) * i1.PENALTY_N3), g = this.modules[f][u], v = 1);
25815
- i += this.finderPenaltyTerminateAndCount(g, v, w) * i1.PENALTY_N3;
25818
+ for (let f = 0; f < this.size; f++) this.modules[f][u] == g ? (v++, v == 5 ? n += i1.PENALTY_N1 : v > 5 && n++) : (this.finderPenaltyAddHistory(v, w), g || (n += this.finderPenaltyCountPatterns(w) * i1.PENALTY_N3), g = this.modules[f][u], v = 1);
25819
+ n += this.finderPenaltyTerminateAndCount(g, v, w) * i1.PENALTY_N3;
25816
25820
  }
25817
25821
  for (let u = 0; u < this.size - 1; u++) for (let g = 0; g < this.size - 1; g++) {
25818
25822
  const v = this.modules[u][g];
25819
- v == this.modules[u][g + 1] && v == this.modules[u + 1][g] && v == this.modules[u + 1][g + 1] && (i += i1.PENALTY_N2);
25823
+ v == this.modules[u][g + 1] && v == this.modules[u + 1][g] && v == this.modules[u + 1][g + 1] && (n += i1.PENALTY_N2);
25820
25824
  }
25821
- let n = 0;
25822
- for (const u of this.modules) n = u.reduce((g, v) => g + (v ? 1 : 0), n);
25823
- const s = this.size * this.size, p = Math.ceil(Math.abs(n * 20 - s * 10) / s) - 1;
25824
- return h(0 <= p && p <= 9), i += p * i1.PENALTY_N4, h(0 <= i && i <= 2568888), i;
25825
+ let i = 0;
25826
+ for (const u of this.modules) i = u.reduce((g, v) => g + (v ? 1 : 0), i);
25827
+ const s = this.size * this.size, p = Math.ceil(Math.abs(i * 20 - s * 10) / s) - 1;
25828
+ return h(0 <= p && p <= 9), n += p * i1.PENALTY_N4, h(0 <= n && n <= 2568888), n;
25825
25829
  }
25826
25830
  getAlignmentPatternPositions() {
25827
25831
  if (this.version == 1) return [];
25828
25832
  {
25829
- const i = Math.floor(this.version / 7) + 2, n = this.version == 32 ? 26 : Math.ceil((this.version * 4 + 4) / (i * 2 - 2)) * 2;
25833
+ const n = Math.floor(this.version / 7) + 2, i = this.version == 32 ? 26 : Math.ceil((this.version * 4 + 4) / (n * 2 - 2)) * 2;
25830
25834
  let s = [6];
25831
- for (let p = this.size - 7; s.length < i; p -= n) s.splice(1, 0, p);
25835
+ for (let p = this.size - 7; s.length < n; p -= i) s.splice(1, 0, p);
25832
25836
  return s;
25833
25837
  }
25834
25838
  }
25835
- static getNumRawDataModules(i) {
25836
- if (i < i1.MIN_VERSION || i > i1.MAX_VERSION) throw new RangeError("Version number out of range");
25837
- let n = (16 * i + 128) * i + 64;
25838
- if (i >= 2) {
25839
- const s = Math.floor(i / 7) + 2;
25840
- n -= (25 * s - 10) * s - 55, i >= 7 && (n -= 36);
25839
+ static getNumRawDataModules(n) {
25840
+ if (n < i1.MIN_VERSION || n > i1.MAX_VERSION) throw new RangeError("Version number out of range");
25841
+ let i = (16 * n + 128) * n + 64;
25842
+ if (n >= 2) {
25843
+ const s = Math.floor(n / 7) + 2;
25844
+ i -= (25 * s - 10) * s - 55, n >= 7 && (i -= 36);
25841
25845
  }
25842
- return h(208 <= n && n <= 29648), n;
25846
+ return h(208 <= i && i <= 29648), i;
25843
25847
  }
25844
- static getNumDataCodewords(i, n) {
25845
- return Math.floor(i1.getNumRawDataModules(i) / 8) - i1.ECC_CODEWORDS_PER_BLOCK[n.ordinal][i] * i1.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][i];
25848
+ static getNumDataCodewords(n, i) {
25849
+ return Math.floor(i1.getNumRawDataModules(n) / 8) - i1.ECC_CODEWORDS_PER_BLOCK[i.ordinal][n] * i1.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][n];
25846
25850
  }
25847
- static reedSolomonComputeDivisor(i) {
25848
- if (i < 1 || i > 255) throw new RangeError("Degree out of range");
25849
- let n = [];
25850
- for (let p = 0; p < i - 1; p++) n.push(0);
25851
- n.push(1);
25851
+ static reedSolomonComputeDivisor(n) {
25852
+ if (n < 1 || n > 255) throw new RangeError("Degree out of range");
25853
+ let i = [];
25854
+ for (let p = 0; p < n - 1; p++) i.push(0);
25855
+ i.push(1);
25852
25856
  let s = 1;
25853
- for (let p = 0; p < i; p++) {
25854
- for (let u = 0; u < n.length; u++)
25855
- n[u] = i1.reedSolomonMultiply(n[u], s), u + 1 < n.length && (n[u] ^= n[u + 1]);
25857
+ for (let p = 0; p < n; p++) {
25858
+ for (let u = 0; u < i.length; u++)
25859
+ i[u] = i1.reedSolomonMultiply(i[u], s), u + 1 < i.length && (i[u] ^= i[u + 1]);
25856
25860
  s = i1.reedSolomonMultiply(s, 2);
25857
25861
  }
25858
- return n;
25862
+ return i;
25859
25863
  }
25860
- static reedSolomonComputeRemainder(i, n) {
25861
- let s = n.map((p) => 0);
25862
- for (const p of i) {
25864
+ static reedSolomonComputeRemainder(n, i) {
25865
+ let s = i.map((p) => 0);
25866
+ for (const p of n) {
25863
25867
  const u = p ^ s.shift();
25864
- s.push(0), n.forEach((g, v) => s[v] ^= i1.reedSolomonMultiply(g, u));
25868
+ s.push(0), i.forEach((g, v) => s[v] ^= i1.reedSolomonMultiply(g, u));
25865
25869
  }
25866
25870
  return s;
25867
25871
  }
25868
- static reedSolomonMultiply(i, n) {
25869
- if (i >>> 8 || n >>> 8) throw new RangeError("Byte out of range");
25872
+ static reedSolomonMultiply(n, i) {
25873
+ if (n >>> 8 || i >>> 8) throw new RangeError("Byte out of range");
25870
25874
  let s = 0;
25871
25875
  for (let p = 7; p >= 0; p--)
25872
- s = s << 1 ^ (s >>> 7) * 285, s ^= (n >>> p & 1) * i;
25876
+ s = s << 1 ^ (s >>> 7) * 285, s ^= (i >>> p & 1) * n;
25873
25877
  return h(s >>> 8 == 0), s;
25874
25878
  }
25875
- finderPenaltyCountPatterns(i) {
25876
- const n = i[1];
25877
- h(n <= this.size * 3);
25878
- const s = n > 0 && i[2] == n && i[3] == n * 3 && i[4] == n && i[5] == n;
25879
- return (s && i[0] >= n * 4 && i[6] >= n ? 1 : 0) + (s && i[6] >= n * 4 && i[0] >= n ? 1 : 0);
25879
+ finderPenaltyCountPatterns(n) {
25880
+ const i = n[1];
25881
+ h(i <= this.size * 3);
25882
+ const s = i > 0 && n[2] == i && n[3] == i * 3 && n[4] == i && n[5] == i;
25883
+ return (s && n[0] >= i * 4 && n[6] >= i ? 1 : 0) + (s && n[6] >= i * 4 && n[0] >= i ? 1 : 0);
25880
25884
  }
25881
- finderPenaltyTerminateAndCount(i, n, s) {
25882
- return i && (this.finderPenaltyAddHistory(n, s), n = 0), n += this.size, this.finderPenaltyAddHistory(n, s), this.finderPenaltyCountPatterns(s);
25885
+ finderPenaltyTerminateAndCount(n, i, s) {
25886
+ return n && (this.finderPenaltyAddHistory(i, s), i = 0), i += this.size, this.finderPenaltyAddHistory(i, s), this.finderPenaltyCountPatterns(s);
25883
25887
  }
25884
- finderPenaltyAddHistory(i, n) {
25885
- n[0] == 0 && (i += this.size), n.pop(), n.unshift(i);
25888
+ finderPenaltyAddHistory(n, i) {
25889
+ i[0] == 0 && (n += this.size), i.pop(), i.unshift(n);
25886
25890
  }
25887
25891
  };
25888
25892
  r.MIN_VERSION = 1, r.MAX_VERSION = 40, r.PENALTY_N1 = 3, r.PENALTY_N2 = 3, r.PENALTY_N3 = 40, r.PENALTY_N4 = 10, r.ECC_CODEWORDS_PER_BLOCK = [
@@ -26232,81 +26236,81 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
26232
26236
  81
26233
26237
  ]
26234
26238
  ], t.QrCode = r;
26235
- function l(m, i, n) {
26236
- if (i < 0 || i > 31 || m >>> i) throw new RangeError("Value out of range");
26237
- for (let s = i - 1; s >= 0; s--) n.push(m >>> s & 1);
26239
+ function l(m, n, i) {
26240
+ if (n < 0 || n > 31 || m >>> n) throw new RangeError("Value out of range");
26241
+ for (let s = n - 1; s >= 0; s--) i.push(m >>> s & 1);
26238
26242
  }
26239
- function a(m, i) {
26240
- return (m >>> i & 1) != 0;
26243
+ function a(m, n) {
26244
+ return (m >>> n & 1) != 0;
26241
26245
  }
26242
26246
  function h(m) {
26243
26247
  if (!m) throw new Error("Assertion error");
26244
26248
  }
26245
26249
  const d = class f1 {
26246
- constructor(i, n, s) {
26247
- if (this.mode = i, this.numChars = n, this.bitData = s, n < 0) throw new RangeError("Invalid argument");
26250
+ constructor(n, i, s) {
26251
+ if (this.mode = n, this.numChars = i, this.bitData = s, i < 0) throw new RangeError("Invalid argument");
26248
26252
  this.bitData = s.slice();
26249
26253
  }
26250
- static makeBytes(i) {
26251
- let n = [];
26252
- for (const s of i) l(s, 8, n);
26253
- return new f1(f1.Mode.BYTE, i.length, n);
26254
+ static makeBytes(n) {
26255
+ let i = [];
26256
+ for (const s of n) l(s, 8, i);
26257
+ return new f1(f1.Mode.BYTE, n.length, i);
26254
26258
  }
26255
- static makeNumeric(i) {
26256
- if (!f1.isNumeric(i)) throw new RangeError("String contains non-numeric characters");
26257
- let n = [];
26258
- for (let s = 0; s < i.length; ) {
26259
- const p = Math.min(i.length - s, 3);
26260
- l(parseInt(i.substring(s, s + p), 10), p * 3 + 1, n), s += p;
26259
+ static makeNumeric(n) {
26260
+ if (!f1.isNumeric(n)) throw new RangeError("String contains non-numeric characters");
26261
+ let i = [];
26262
+ for (let s = 0; s < n.length; ) {
26263
+ const p = Math.min(n.length - s, 3);
26264
+ l(parseInt(n.substring(s, s + p), 10), p * 3 + 1, i), s += p;
26261
26265
  }
26262
- return new f1(f1.Mode.NUMERIC, i.length, n);
26266
+ return new f1(f1.Mode.NUMERIC, n.length, i);
26263
26267
  }
26264
- static makeAlphanumeric(i) {
26265
- if (!f1.isAlphanumeric(i)) throw new RangeError("String contains unencodable characters in alphanumeric mode");
26266
- let n = [], s;
26267
- for (s = 0; s + 2 <= i.length; s += 2) {
26268
- let p = f1.ALPHANUMERIC_CHARSET.indexOf(i.charAt(s)) * 45;
26269
- p += f1.ALPHANUMERIC_CHARSET.indexOf(i.charAt(s + 1)), l(p, 11, n);
26268
+ static makeAlphanumeric(n) {
26269
+ if (!f1.isAlphanumeric(n)) throw new RangeError("String contains unencodable characters in alphanumeric mode");
26270
+ let i = [], s;
26271
+ for (s = 0; s + 2 <= n.length; s += 2) {
26272
+ let p = f1.ALPHANUMERIC_CHARSET.indexOf(n.charAt(s)) * 45;
26273
+ p += f1.ALPHANUMERIC_CHARSET.indexOf(n.charAt(s + 1)), l(p, 11, i);
26270
26274
  }
26271
- return s < i.length && l(f1.ALPHANUMERIC_CHARSET.indexOf(i.charAt(s)), 6, n), new f1(f1.Mode.ALPHANUMERIC, i.length, n);
26275
+ return s < n.length && l(f1.ALPHANUMERIC_CHARSET.indexOf(n.charAt(s)), 6, i), new f1(f1.Mode.ALPHANUMERIC, n.length, i);
26272
26276
  }
26273
- static makeSegments(i) {
26274
- return i == "" ? [] : f1.isNumeric(i) ? [f1.makeNumeric(i)] : f1.isAlphanumeric(i) ? [f1.makeAlphanumeric(i)] : [f1.makeBytes(f1.toUtf8ByteArray(i))];
26277
+ static makeSegments(n) {
26278
+ return n == "" ? [] : f1.isNumeric(n) ? [f1.makeNumeric(n)] : f1.isAlphanumeric(n) ? [f1.makeAlphanumeric(n)] : [f1.makeBytes(f1.toUtf8ByteArray(n))];
26275
26279
  }
26276
- static makeEci(i) {
26277
- let n = [];
26278
- if (i < 0) throw new RangeError("ECI assignment value out of range");
26279
- if (i < 128) l(i, 8, n);
26280
- else if (i < 16384)
26281
- l(2, 2, n), l(i, 14, n);
26282
- else if (i < 1e6)
26283
- l(6, 3, n), l(i, 21, n);
26280
+ static makeEci(n) {
26281
+ let i = [];
26282
+ if (n < 0) throw new RangeError("ECI assignment value out of range");
26283
+ if (n < 128) l(n, 8, i);
26284
+ else if (n < 16384)
26285
+ l(2, 2, i), l(n, 14, i);
26286
+ else if (n < 1e6)
26287
+ l(6, 3, i), l(n, 21, i);
26284
26288
  else throw new RangeError("ECI assignment value out of range");
26285
- return new f1(f1.Mode.ECI, 0, n);
26289
+ return new f1(f1.Mode.ECI, 0, i);
26286
26290
  }
26287
- static isNumeric(i) {
26288
- return f1.NUMERIC_REGEX.test(i);
26291
+ static isNumeric(n) {
26292
+ return f1.NUMERIC_REGEX.test(n);
26289
26293
  }
26290
- static isAlphanumeric(i) {
26291
- return f1.ALPHANUMERIC_REGEX.test(i);
26294
+ static isAlphanumeric(n) {
26295
+ return f1.ALPHANUMERIC_REGEX.test(n);
26292
26296
  }
26293
26297
  getData() {
26294
26298
  return this.bitData.slice();
26295
26299
  }
26296
- static getTotalBits(i, n) {
26300
+ static getTotalBits(n, i) {
26297
26301
  let s = 0;
26298
- for (const p of i) {
26299
- const u = p.mode.numCharCountBits(n);
26302
+ for (const p of n) {
26303
+ const u = p.mode.numCharCountBits(i);
26300
26304
  if (p.numChars >= 1 << u) return 1 / 0;
26301
26305
  s += 4 + u + p.bitData.length;
26302
26306
  }
26303
26307
  return s;
26304
26308
  }
26305
- static toUtf8ByteArray(i) {
26306
- i = encodeURI(i);
26307
- let n = [];
26308
- for (let s = 0; s < i.length; s++) i.charAt(s) != "%" ? n.push(i.charCodeAt(s)) : (n.push(parseInt(i.substring(s + 1, s + 3), 16)), s += 2);
26309
- return n;
26309
+ static toUtf8ByteArray(n) {
26310
+ n = encodeURI(n);
26311
+ let i = [];
26312
+ for (let s = 0; s < n.length; s++) n.charAt(s) != "%" ? i.push(n.charCodeAt(s)) : (i.push(parseInt(n.substring(s + 1, s + 3), 16)), s += 2);
26313
+ return i;
26310
26314
  }
26311
26315
  };
26312
26316
  d.NUMERIC_REGEX = /^[0-9]*$/, d.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, d.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
@@ -26385,22 +26389,22 @@ function v3(t, r) {
26385
26389
  }
26386
26390
  function ra(t, r, l, a) {
26387
26391
  if (a == null) return null;
26388
- const h = t.length + l * 2, d = Math.floor(r * ta), o = h / r, m = (a.width || d) * o, i = (a.height || d) * o, n = a.x == null ? t.length / 2 - m / 2 : a.x * o, s = a.y == null ? t.length / 2 - i / 2 : a.y * o, p = a.opacity == null ? 1 : a.opacity;
26392
+ const h = t.length + l * 2, d = Math.floor(r * ta), 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;
26389
26393
  let u = null;
26390
26394
  if (a.excavate) {
26391
- let v = Math.floor(n), w = Math.floor(s);
26395
+ let v = Math.floor(i), w = Math.floor(s);
26392
26396
  u = {
26393
26397
  x: v,
26394
26398
  y: w,
26395
- w: Math.ceil(m + n - v),
26396
- h: Math.ceil(i + s - w)
26399
+ w: Math.ceil(m + i - v),
26400
+ h: Math.ceil(n + s - w)
26397
26401
  };
26398
26402
  }
26399
26403
  const g = a.crossOrigin;
26400
26404
  return {
26401
- x: n,
26405
+ x: i,
26402
26406
  y: s,
26403
- h: i,
26407
+ h: n,
26404
26408
  w: m,
26405
26409
  excavation: u,
26406
26410
  opacity: p,
@@ -26411,7 +26415,7 @@ function ca(t, r) {
26411
26415
  return r != null ? Math.max(Math.floor(r), 0) : t ? Jl : ea;
26412
26416
  }
26413
26417
  function u3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h, imageSettings: d, size: o, boostLevel: m }) {
26414
- let i = g1.useMemo(() => {
26418
+ let n = g1.useMemo(() => {
26415
26419
  const g = (Array.isArray(t) ? t : [t]).reduce((v, w) => (v.push(...v0.QrSegment.makeSegments(w)), v), []);
26416
26420
  return v0.QrCode.encodeSegments(g, Ql[r], l, void 0, void 0, m);
26417
26421
  }, [
@@ -26420,8 +26424,8 @@ function u3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h
26420
26424
  l,
26421
26425
  m
26422
26426
  ]);
26423
- const { cells: n, margin: s, numCells: p, calculatedImageSettings: u } = g1.useMemo(() => {
26424
- let g = i.getModules();
26427
+ const { cells: i, margin: s, numCells: p, calculatedImageSettings: u } = g1.useMemo(() => {
26428
+ let g = n.getModules();
26425
26429
  const v = ca(a, h);
26426
26430
  return {
26427
26431
  cells: g,
@@ -26430,16 +26434,16 @@ function u3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h
26430
26434
  calculatedImageSettings: ra(g, o, v, d)
26431
26435
  };
26432
26436
  }, [
26433
- i,
26437
+ n,
26434
26438
  o,
26435
26439
  d,
26436
26440
  a,
26437
26441
  h
26438
26442
  ]);
26439
26443
  return {
26440
- qrcode: i,
26444
+ qrcode: n,
26441
26445
  margin: s,
26442
- cells: n,
26446
+ cells: i,
26443
26447
  numCells: p,
26444
26448
  calculatedImageSettings: u
26445
26449
  };
@@ -26452,7 +26456,7 @@ var la = (function() {
26452
26456
  }
26453
26457
  return !0;
26454
26458
  })(), aa = g1.forwardRef(function(r, l) {
26455
- const a = r, { value: h, size: d = n3, level: o = o3, bgColor: m = s3, fgColor: i = h3, includeMargin: n = d3, minVersion: s = m3, boostLevel: p, marginSize: u, imageSettings: g } = a, v = r2(a, [
26459
+ const a = r, { value: h, size: d = n3, level: o = o3, bgColor: m = s3, fgColor: n = h3, includeMargin: i = d3, minVersion: s = m3, boostLevel: p, marginSize: u, imageSettings: g } = a, v = r2(a, [
26456
26460
  "value",
26457
26461
  "size",
26458
26462
  "level",
@@ -26470,7 +26474,7 @@ var la = (function() {
26470
26474
  level: o,
26471
26475
  minVersion: s,
26472
26476
  boostLevel: p,
26473
- includeMargin: n,
26477
+ includeMargin: i,
26474
26478
  marginSize: u,
26475
26479
  imageSettings: g,
26476
26480
  size: d
@@ -26485,7 +26489,7 @@ var la = (function() {
26485
26489
  const q = window.devicePixelRatio || 1;
26486
26490
  B.height = B.width = d * q;
26487
26491
  const t1 = d / V * q;
26488
- E.scale(t1, t1), E.fillStyle = m, E.fillRect(0, 0, V, V), E.fillStyle = i, la ? E.fill(new Path2D(p3(O, L))) : M.forEach(function(I, D) {
26492
+ E.scale(t1, t1), E.fillStyle = m, E.fillRect(0, 0, V, V), E.fillStyle = n, la ? E.fill(new Path2D(p3(O, L))) : M.forEach(function(I, D) {
26489
26493
  I.forEach(function(J, h1) {
26490
26494
  J && E.fillRect(h1 + L, D + L, 1, 1);
26491
26495
  });
@@ -26518,7 +26522,7 @@ var la = (function() {
26518
26522
  });
26519
26523
  aa.displayName = "QRCodeCanvas";
26520
26524
  var g3 = g1.forwardRef(function(r, l) {
26521
- const a = r, { value: h, size: d = n3, level: o = o3, bgColor: m = s3, fgColor: i = h3, includeMargin: n = d3, minVersion: s = m3, boostLevel: p, title: u, marginSize: g, imageSettings: v } = a, w = r2(a, [
26525
+ const a = r, { value: h, size: d = n3, level: o = o3, bgColor: m = s3, fgColor: n = h3, includeMargin: i = d3, minVersion: s = m3, boostLevel: p, title: u, marginSize: g, imageSettings: v } = a, w = r2(a, [
26522
26526
  "value",
26523
26527
  "size",
26524
26528
  "level",
@@ -26535,7 +26539,7 @@ var g3 = g1.forwardRef(function(r, l) {
26535
26539
  level: o,
26536
26540
  minVersion: s,
26537
26541
  boostLevel: p,
26538
- includeMargin: n,
26542
+ includeMargin: i,
26539
26543
  marginSize: g,
26540
26544
  imageSettings: v,
26541
26545
  size: d
@@ -26563,14 +26567,14 @@ var g3 = g1.forwardRef(function(r, l) {
26563
26567
  d: `M0,0 h${b}v${b}H0z`,
26564
26568
  shapeRendering: "crispEdges"
26565
26569
  }), /* @__PURE__ */ g1.createElement("path", {
26566
- fill: i,
26570
+ fill: n,
26567
26571
  d: H,
26568
26572
  shapeRendering: "crispEdges"
26569
26573
  }), k);
26570
26574
  });
26571
26575
  g3.displayName = "QRCodeSVG";
26572
26576
  function nn({ isOpen: t, onClose: r }) {
26573
- const { config: l } = n2(), [a, h] = z("loading"), [d, o] = z(!1), [m, i] = z(null), [n, s] = z(""), [p, u] = z(""), [g, v] = z(""), [w, f] = z(""), [y, b] = z([]), [C, x] = z(""), [k, H] = z(!1), [L, M] = z(null), V = Z(async (J, h1) => {
26577
+ const { config: l } = n2(), [a, h] = z("loading"), [d, o] = z(!1), [m, n] = z(null), [i, s] = z(""), [p, u] = z(""), [g, v] = z(""), [w, f] = z(""), [y, b] = z([]), [C, x] = z(""), [k, H] = z(!1), [L, M] = z(null), V = Z(async (J, h1) => {
26574
26578
  const U = document.cookie.match(/(?:^|;\s*)csrf_token=([^;]+)/), d1 = U ? decodeURIComponent(U[1]) : null, v1 = { "Content-Type": "application/json" };
26575
26579
  d1 && (v1["X-CSRF-Token"] = d1);
26576
26580
  const y1 = await fetch(`${l.apiBaseUrl}${J}`, {
@@ -26585,7 +26589,7 @@ function nn({ isOpen: t, onClose: r }) {
26585
26589
  h("loading"), x("");
26586
26590
  try {
26587
26591
  const J = await (await fetch(`${l.apiBaseUrl}/auth/mfaStatus`, { credentials: "include" })).json();
26588
- o(!!J.enabled), i(J.method ?? null), h("overview");
26592
+ o(!!J.enabled), n(J.method ?? null), h("overview");
26589
26593
  } catch {
26590
26594
  x("Could not load MFA status."), h("overview");
26591
26595
  }
@@ -26632,7 +26636,7 @@ function nn({ isOpen: t, onClose: r }) {
26632
26636
  message: "Recovery codes copied.",
26633
26637
  type: "success"
26634
26638
  });
26635
- }, I = n.replace(/(.{4})/g, "$1 ").trim();
26639
+ }, I = i.replace(/(.{4})/g, "$1 ").trim();
26636
26640
  return /* @__PURE__ */ c(W1, {
26637
26641
  isOpen: t,
26638
26642
  onClose: r,
@@ -26933,37 +26937,37 @@ function on(t, r) {
26933
26937
  const l = {
26934
26938
  pages: r.pages ?? {},
26935
26939
  theme: r.theme
26936
- }, [a, h] = z(() => x0.load(t, l)), d = Z((n, s) => {
26940
+ }, [a, h] = z(() => x0.load(t, l)), d = Z((i, s) => {
26937
26941
  h((p) => {
26938
26942
  const u = {
26939
26943
  ...p,
26940
26944
  pages: {
26941
26945
  ...p.pages,
26942
- [n]: s
26946
+ [i]: s
26943
26947
  }
26944
26948
  };
26945
26949
  return x0.save(t, u), u;
26946
26950
  });
26947
- }, [t]), o = Z((n) => {
26951
+ }, [t]), o = Z((i) => {
26948
26952
  h((s) => {
26949
26953
  const p = {
26950
26954
  ...s,
26951
- theme: n
26955
+ theme: i
26952
26956
  };
26953
26957
  return x0.save(t, p), p;
26954
26958
  });
26955
- }, [t]), m = Z((n) => {
26959
+ }, [t]), m = Z((i) => {
26956
26960
  h((s) => {
26957
26961
  const p = {
26958
26962
  ...s,
26959
26963
  pages: {
26960
26964
  ...s.pages,
26961
- [n]: l.pages[n]
26965
+ [i]: l.pages[i]
26962
26966
  }
26963
26967
  };
26964
26968
  return x0.save(t, p), p;
26965
26969
  });
26966
- }, [t]), i = Z(() => {
26970
+ }, [t]), n = Z(() => {
26967
26971
  h(l), x0.clearAll(t);
26968
26972
  }, [t]);
26969
26973
  return {
@@ -26972,7 +26976,7 @@ function on(t, r) {
26972
26976
  setPage: d,
26973
26977
  setTheme: o,
26974
26978
  clearPage: m,
26975
- clearAll: i
26979
+ clearAll: n
26976
26980
  };
26977
26981
  }
26978
26982
  var sn = (t) => new Intl.NumberFormat("en-US", {
@@ -27010,17 +27014,17 @@ function mn(t, r) {
27010
27014
  const { folded: a, mapping: h } = na(t), d = [];
27011
27015
  let o = 0;
27012
27016
  for (; o <= a.length - l.length; ) {
27013
- const n = a.indexOf(l, o);
27014
- if (n === -1) break;
27015
- const s = h[n], p = n + l.length < h.length ? h[n + l.length] : t.length;
27016
- d.push([s, p]), o = n + l.length;
27017
+ const i = a.indexOf(l, o);
27018
+ if (i === -1) break;
27019
+ const s = h[i], p = i + l.length < h.length ? h[i + l.length] : t.length;
27020
+ d.push([s, p]), o = i + l.length;
27017
27021
  }
27018
27022
  if (d.length === 0) return t;
27019
27023
  const m = [];
27020
- let i = 0;
27021
- return d.forEach(([n, s], p) => {
27022
- n > i && m.push(t.slice(i, n)), m.push(/* @__PURE__ */ e("mark", { children: t.slice(n, s) }, p)), i = s;
27023
- }), i < t.length && m.push(t.slice(i)), m;
27024
+ let n = 0;
27025
+ return d.forEach(([i, s], p) => {
27026
+ i > n && m.push(t.slice(n, i)), m.push(/* @__PURE__ */ e("mark", { children: t.slice(i, s) }, p)), n = s;
27027
+ }), n < t.length && m.push(t.slice(n)), m;
27024
27028
  }
27025
27029
  var pn = (t, r, l) => {
27026
27030
  if (t.length === 0) return !0;
@@ -27099,7 +27103,7 @@ var pn = (t, r, l) => {
27099
27103
  } catch {
27100
27104
  return t.trim();
27101
27105
  }
27102
- }, sa = "1.0.47", yn = 321, ha = "03538eb", da = "2026-08-23T13:13:43.316Z", bn = "321", ma = (t) => {
27106
+ }, sa = "1.0.48", yn = 323, ha = "5746f06", da = "2026-08-23T19:46:18.939Z", bn = "323", ma = (t) => {
27103
27107
  const r = document.getElementById("mb-version-toast");
27104
27108
  if (r) {
27105
27109
  r.remove();
@@ -27123,7 +27127,7 @@ var pn = (t, r, l) => {
27123
27127
  const r = {
27124
27128
  ...t,
27125
27129
  lib: sa,
27126
- libBuildNumber: 321,
27130
+ libBuildNumber: 323,
27127
27131
  libCommit: ha,
27128
27132
  libBuildDate: da
27129
27133
  };