@memobit/libs 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import Z1, { Component as K2, Fragment as Q2, createContext as p0, forwardRef as _1, useCallback as E, useContext as v0, useEffect as F, useId as g0, useImperativeHandle as u2, useMemo as s1, useRef as O, useState as L } from "react";
1
+ import Z1, { Component as K2, Fragment as Q2, createContext as p0, forwardRef as _1, useCallback as E, useContext as v0, useEffect as F, useId as g0, useImperativeHandle as u2, useMemo as h1, useRef as O, useState as L } from "react";
2
2
  import { Fragment as r1, jsx as e, jsxs as r } from "react/jsx-runtime";
3
3
  import { createPortal as W1 } from "react-dom";
4
4
  import { GoogleGenAI as J2 } from "@google/genai";
@@ -10863,7 +10863,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10863
10863
  }), [b, x] = L("days"), [y, M] = L(() => {
10864
10864
  const S = (p ?? u).getFullYear();
10865
10865
  return Math.floor(S / E1) * E1;
10866
- }), [k, V] = L(null), _ = p ?? u, C = w ?? k, N = s1(() => ir(_.getFullYear(), _.getMonth(), i), [_, i]), B = i === 1 ? dr : hr, z = (S) => a && S0(S, a) || s && sr(S, s) ? !0 : o ? typeof o == "function" ? o(S) : o.some((D) => j1(D, S)) : !1, Z = (S) => {
10866
+ }), [k, V] = L(null), _ = p ?? u, C = w ?? k, N = h1(() => ir(_.getFullYear(), _.getMonth(), i), [_, i]), B = i === 1 ? dr : hr, z = (S) => a && S0(S, a) || s && sr(S, s) ? !0 : o ? typeof o == "function" ? o(S) : o.some((D) => j1(D, S)) : !1, G = (S) => {
10867
10867
  if (!t) return !1;
10868
10868
  if (l === "single" && t instanceof Date) return j1(S, t);
10869
10869
  if (l === "range") {
@@ -10907,9 +10907,9 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10907
10907
  v ? v(D) : f(D), x("days"), l === "single" && c?.(S);
10908
10908
  }, T = () => {
10909
10909
  g && x("months");
10910
- }, G = () => {
10910
+ }, Z = () => {
10911
10911
  g && (M(Math.floor(_.getFullYear() / E1) * E1), x("years"));
10912
- }, h1 = (S) => {
10912
+ }, d1 = (S) => {
10913
10913
  const D = new Date(_.getFullYear(), S, 1);
10914
10914
  v ? v(D) : f(D), x("days");
10915
10915
  }, v1 = (S) => {
@@ -10922,7 +10922,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10922
10922
  }, n1 = () => {
10923
10923
  const S = new Date(_.getFullYear() - 1, _.getMonth(), 1);
10924
10924
  v ? v(S) : f(S);
10925
- }, C1 = () => {
10925
+ }, y1 = () => {
10926
10926
  const S = new Date(_.getFullYear() + 1, _.getMonth(), 1);
10927
10927
  v ? v(S) : f(S);
10928
10928
  }, u1 = () => {
@@ -10931,7 +10931,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10931
10931
  return S;
10932
10932
  }, A1 = (S) => {
10933
10933
  const D = ["calendar__day"];
10934
- return q(S) ? (Z(S) && D.push("calendar__day--selected"), R(S) && D.push("calendar__day--in-range"), $(S) && D.push("calendar__day--hover-range")) : D.push("calendar__day--other-month"), nr(S) && D.push("calendar__day--today"), or(S) && D.push("calendar__day--weekend"), z(S) && D.push("calendar__day--disabled"), D.join(" ");
10934
+ return q(S) ? (G(S) && D.push("calendar__day--selected"), R(S) && D.push("calendar__day--in-range"), $(S) && D.push("calendar__day--hover-range")) : D.push("calendar__day--other-month"), nr(S) && D.push("calendar__day--today"), or(S) && D.push("calendar__day--weekend"), z(S) && D.push("calendar__day--disabled"), D.join(" ");
10935
10935
  }, G1 = () => b === "years" ? /* @__PURE__ */ r("div", {
10936
10936
  className: "calendar__header",
10937
10937
  children: [
@@ -10971,13 +10971,13 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
10971
10971
  /* @__PURE__ */ e("button", {
10972
10972
  type: "button",
10973
10973
  className: "calendar__header-button",
10974
- onClick: G,
10974
+ onClick: Z,
10975
10975
  children: _.getFullYear()
10976
10976
  }),
10977
10977
  /* @__PURE__ */ e("button", {
10978
10978
  type: "button",
10979
10979
  className: "calendar__nav-button",
10980
- onClick: C1,
10980
+ onClick: y1,
10981
10981
  title: "Next year",
10982
10982
  children: "›"
10983
10983
  })
@@ -11005,7 +11005,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11005
11005
  }), /* @__PURE__ */ e("button", {
11006
11006
  type: "button",
11007
11007
  className: "calendar__header-button",
11008
- onClick: G,
11008
+ onClick: Z,
11009
11009
  children: _.getFullYear()
11010
11010
  })] })
11011
11011
  }),
@@ -11035,7 +11035,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11035
11035
  children: B0.map((x1, f1) => /* @__PURE__ */ e("button", {
11036
11036
  type: "button",
11037
11037
  className: `calendar__month-item ${f1 === e1 && a1 === _.getFullYear() ? "calendar__month-item--selected" : ""} ${f1 === S && D === _.getFullYear() ? "calendar__month-item--current" : ""}`,
11038
- onClick: () => h1(f1),
11038
+ onClick: () => d1(f1),
11039
11039
  children: x1.substring(0, 3)
11040
11040
  }, x1))
11041
11041
  });
@@ -11701,10 +11701,10 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
11701
11701
  ]), F(() => {
11702
11702
  h || d("");
11703
11703
  }, [h]);
11704
- const p = s1(() => {
11704
+ const p = h1(() => {
11705
11705
  const w = n.trim().toLowerCase();
11706
11706
  return w ? t.filter((m) => [m.label, ...m.keywords ?? []].join(" ").toLowerCase().includes(w)) : t;
11707
- }, [t, n]), v = s1(() => p.reduce((w, m) => {
11707
+ }, [t, n]), v = h1(() => p.reduce((w, m) => {
11708
11708
  const u = m.group || "General";
11709
11709
  return w[u] = w[u] ? [...w[u], m] : [m], w;
11710
11710
  }, {}), [p]), g = () => {
@@ -12331,7 +12331,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12331
12331
  if (!t) throw new Error("useControlPanel must be used within a ControlPanelProvider");
12332
12332
  return t;
12333
12333
  }, Ca = ({ children: t }) => {
12334
- const { isMobile: c } = a0(), [l, a] = L(!1), s = E(() => a((d) => !d), []), o = E(() => a(!0), []), i = E(() => a(!1), []), n = s1(() => ({
12334
+ const { isMobile: c } = a0(), [l, a] = L(!1), s = E(() => a((d) => !d), []), o = E(() => a(!0), []), i = E(() => a(!1), []), n = h1(() => ({
12335
12335
  isMobile: c,
12336
12336
  isOpen: l,
12337
12337
  toggle: s,
@@ -12348,11 +12348,87 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12348
12348
  value: n,
12349
12349
  children: t
12350
12350
  });
12351
+ }, s1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled: s = !1, className: o = "", maxWidth: i, maxHeight: n }) => {
12352
+ const [d, h] = L(!1), [p, v] = L({
12353
+ top: 0,
12354
+ left: 0
12355
+ }), g = O(null), w = O(null), m = O(null), u = O(null), f = O(!1), b = n !== void 0, x = b ? 150 : 0, y = () => {
12356
+ if (!m.current || !u.current) return;
12357
+ const N = m.current.firstElementChild, B = N && N.getBoundingClientRect().width > 0 ? N.getBoundingClientRect() : m.current.getBoundingClientRect(), z = u.current.getBoundingClientRect(), G = 8;
12358
+ let R = 0, $ = 0;
12359
+ switch (c) {
12360
+ case "top":
12361
+ R = B.top - z.height - G, $ = B.left + B.width / 2 - z.width / 2;
12362
+ break;
12363
+ case "bottom":
12364
+ R = B.bottom + G, $ = B.left + B.width / 2 - z.width / 2;
12365
+ break;
12366
+ case "left":
12367
+ R = B.top + B.height / 2 - z.height / 2, $ = B.left - z.width - G;
12368
+ break;
12369
+ case "right":
12370
+ R = B.top + B.height / 2 - z.height / 2, $ = B.right + G;
12371
+ break;
12372
+ }
12373
+ const q = 8;
12374
+ $ < q && ($ = q), $ + z.width > window.innerWidth - q && ($ = window.innerWidth - z.width - q), R < q && (R = q), R + z.height > window.innerHeight - q && (R = window.innerHeight - z.height - q), v({
12375
+ top: R,
12376
+ left: $
12377
+ });
12378
+ }, M = () => {
12379
+ s || f.current || (w.current && (clearTimeout(w.current), w.current = null), g.current = setTimeout(() => {
12380
+ h(!0);
12381
+ }, l));
12382
+ }, k = () => {
12383
+ f.current || (g.current && clearTimeout(g.current), x > 0 ? w.current = setTimeout(() => h(!1), x) : h(!1));
12384
+ }, V = (N) => {
12385
+ N.pointerType !== "touch" && N.pointerType !== "pen" || s || (f.current = !0, g.current && (clearTimeout(g.current), g.current = null), N.stopPropagation(), h((B) => !B));
12386
+ };
12387
+ F(() => (d && (y(), window.addEventListener("scroll", y, !0), window.addEventListener("resize", y)), () => {
12388
+ window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y);
12389
+ }), [d]), F(() => {
12390
+ if (!d) return;
12391
+ const N = (B) => {
12392
+ m.current?.contains(B.target) || u.current?.contains(B.target) || h(!1);
12393
+ };
12394
+ return document.addEventListener("pointerdown", N), () => {
12395
+ document.removeEventListener("pointerdown", N), f.current = !1;
12396
+ };
12397
+ }, [d]), F(() => () => {
12398
+ g.current && clearTimeout(g.current), w.current && clearTimeout(w.current);
12399
+ }, []);
12400
+ const _ = () => {
12401
+ b && w.current && (clearTimeout(w.current), w.current = null);
12402
+ }, C = () => {
12403
+ b && (w.current = setTimeout(() => h(!1), x));
12404
+ };
12405
+ return /* @__PURE__ */ r(r1, { children: [/* @__PURE__ */ e("span", {
12406
+ ref: m,
12407
+ className: "tooltip-trigger",
12408
+ onMouseEnter: M,
12409
+ onMouseLeave: k,
12410
+ onFocus: M,
12411
+ onBlur: k,
12412
+ onPointerDown: V,
12413
+ children: a
12414
+ }), d && t && W1(/* @__PURE__ */ r("div", {
12415
+ ref: u,
12416
+ className: `tooltip tooltip--${c} ${b ? "tooltip--scrollable" : ""} ${o}`,
12417
+ style: {
12418
+ top: `${p.top}px`,
12419
+ left: `${p.left}px`,
12420
+ ...i !== void 0 && { maxWidth: typeof i == "number" ? `${i}px` : i },
12421
+ ...n !== void 0 && { maxHeight: typeof n == "number" ? `${n}px` : n }
12422
+ },
12423
+ onMouseEnter: _,
12424
+ onMouseLeave: C,
12425
+ children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${c}` })]
12426
+ }), document.body)] });
12351
12427
  }, Rr = ({ value: t, onChange: c, mode: l = "single", withTime: a = !1, timeFormat: s = "24h", withSeconds: o = !1, dateFormat: i = "YYYY-MM-DD", placeholder: n = "Select date...", disabled: d = !1, clearable: h = !0, autoClose: p = !0, alwaysOpen: v = !1, ...g }) => {
12352
12428
  const [w, m] = L(!1), [u, f] = L(0), [b, x] = L(0), [y, M] = L(0), [k, V] = L(!1), [_, C] = L(null), [N, B] = L({
12353
12429
  position: "fixed",
12354
12430
  visibility: "hidden"
12355
- }), z = O(null), Z = O(null);
12431
+ }), z = O(null), G = O(null);
12356
12432
  F(() => {
12357
12433
  a && t instanceof Date && (f(s === "12h" ? t.getHours() % 12 || 12 : t.getHours()), x(t.getMinutes()), M(t.getSeconds()), V(t.getHours() >= 12));
12358
12434
  }, [
@@ -12363,17 +12439,17 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12363
12439
  const R = v ? !d : w;
12364
12440
  F(() => {
12365
12441
  if (v) return;
12366
- const T = (G) => {
12367
- R && z.current && Z.current && !z.current.contains(G.target) && !Z.current.contains(G.target) && (C(null), m(!1));
12442
+ const T = (Z) => {
12443
+ R && z.current && G.current && !z.current.contains(Z.target) && !G.current.contains(Z.target) && (C(null), m(!1));
12368
12444
  };
12369
12445
  return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
12370
12446
  }, [v, R]);
12371
12447
  const $ = E(() => {
12372
- if (v || !R || !z.current || !Z.current) return;
12373
- const T = z.current.getBoundingClientRect(), G = Z.current.getBoundingClientRect(), h1 = 16, v1 = 8, U = window.innerHeight - T.bottom - h1, i1 = T.top - h1, n1 = U < G.height && i1 > G.height ? T.top - G.height - v1 : T.bottom + v1, C1 = Math.max(h1, Math.min(n1, window.innerHeight - G.height - h1)), u1 = Math.max(h1, Math.min(T.left, window.innerWidth - G.width - h1));
12448
+ if (v || !R || !z.current || !G.current) return;
12449
+ const T = z.current.getBoundingClientRect(), Z = G.current.getBoundingClientRect(), d1 = 16, v1 = 8, U = window.innerHeight - T.bottom - d1, i1 = T.top - d1, n1 = U < Z.height && i1 > Z.height ? T.top - Z.height - v1 : T.bottom + v1, y1 = Math.max(d1, Math.min(n1, window.innerHeight - Z.height - d1)), u1 = Math.max(d1, Math.min(T.left, window.innerWidth - Z.width - d1));
12374
12450
  B({
12375
12451
  position: "fixed",
12376
- top: `${C1}px`,
12452
+ top: `${y1}px`,
12377
12453
  left: `${u1}px`,
12378
12454
  zIndex: 1100
12379
12455
  });
@@ -12407,12 +12483,12 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12407
12483
  c?.(T), p && l !== "multiple" && !v && m(!1);
12408
12484
  return;
12409
12485
  }
12410
- const G = new Date(T), h1 = s === "12h" ? k ? u % 12 + 12 : u % 12 : u;
12411
- G.setHours(h1, b, y), c?.(G), p && !v && m(!1);
12486
+ const Z = new Date(T), d1 = s === "12h" ? k ? u % 12 + 12 : u % 12 : u;
12487
+ Z.setHours(d1, b, y), c?.(Z), p && !v && m(!1);
12412
12488
  }, A = () => {
12413
12489
  if (!t || !(t instanceof Date)) return;
12414
- const T = new Date(t), G = s === "12h" ? k ? u % 12 + 12 : u % 12 : u;
12415
- T.setHours(G, b, y), c?.(T);
12490
+ const T = new Date(t), Z = s === "12h" ? k ? u % 12 + 12 : u % 12 : u;
12491
+ T.setHours(Z, b, y), c?.(T);
12416
12492
  }, c1 = (T) => {
12417
12493
  T.stopPropagation(), C(null), c?.(void 0);
12418
12494
  }, t1 = q();
@@ -12441,7 +12517,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12441
12517
  })]
12442
12518
  })]
12443
12519
  }), R && (v ? /* @__PURE__ */ r("div", {
12444
- ref: Z,
12520
+ ref: G,
12445
12521
  className: "datepicker__dropdown datepicker__dropdown--inline",
12446
12522
  children: [/* @__PURE__ */ e(b0, {
12447
12523
  ...g,
@@ -12463,8 +12539,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12463
12539
  className: "datepicker__time-input",
12464
12540
  value: u,
12465
12541
  onChange: (T) => {
12466
- const G = parseInt(T.target.value) || 0;
12467
- f(Math.min(Math.max(G, 0), s === "12h" ? 12 : 23));
12542
+ const Z = parseInt(T.target.value) || 0;
12543
+ f(Math.min(Math.max(Z, 0), s === "12h" ? 12 : 23));
12468
12544
  },
12469
12545
  onBlur: A,
12470
12546
  min: "0",
@@ -12476,8 +12552,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12476
12552
  className: "datepicker__time-input",
12477
12553
  value: b,
12478
12554
  onChange: (T) => {
12479
- const G = parseInt(T.target.value) || 0;
12480
- x(Math.min(Math.max(G, 0), 59));
12555
+ const Z = parseInt(T.target.value) || 0;
12556
+ x(Math.min(Math.max(Z, 0), 59));
12481
12557
  },
12482
12558
  onBlur: A,
12483
12559
  min: "0",
@@ -12488,8 +12564,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12488
12564
  className: "datepicker__time-input",
12489
12565
  value: y,
12490
12566
  onChange: (T) => {
12491
- const G = parseInt(T.target.value) || 0;
12492
- M(Math.min(Math.max(G, 0), 59));
12567
+ const Z = parseInt(T.target.value) || 0;
12568
+ M(Math.min(Math.max(Z, 0), 59));
12493
12569
  },
12494
12570
  onBlur: A,
12495
12571
  min: "0",
@@ -12507,7 +12583,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12507
12583
  })]
12508
12584
  })]
12509
12585
  }) : W1(/* @__PURE__ */ r("div", {
12510
- ref: Z,
12586
+ ref: G,
12511
12587
  className: "datepicker__dropdown",
12512
12588
  style: N,
12513
12589
  children: [/* @__PURE__ */ e(b0, {
@@ -12530,8 +12606,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12530
12606
  className: "datepicker__time-input",
12531
12607
  value: u,
12532
12608
  onChange: (T) => {
12533
- const G = parseInt(T.target.value) || 0;
12534
- f(Math.min(Math.max(G, 0), s === "12h" ? 12 : 23));
12609
+ const Z = parseInt(T.target.value) || 0;
12610
+ f(Math.min(Math.max(Z, 0), s === "12h" ? 12 : 23));
12535
12611
  },
12536
12612
  onBlur: A,
12537
12613
  min: "0",
@@ -12543,8 +12619,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12543
12619
  className: "datepicker__time-input",
12544
12620
  value: b,
12545
12621
  onChange: (T) => {
12546
- const G = parseInt(T.target.value) || 0;
12547
- x(Math.min(Math.max(G, 0), 59));
12622
+ const Z = parseInt(T.target.value) || 0;
12623
+ x(Math.min(Math.max(Z, 0), 59));
12548
12624
  },
12549
12625
  onBlur: A,
12550
12626
  min: "0",
@@ -12555,8 +12631,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12555
12631
  className: "datepicker__time-input",
12556
12632
  value: y,
12557
12633
  onChange: (T) => {
12558
- const G = parseInt(T.target.value) || 0;
12559
- M(Math.min(Math.max(G, 0), 59));
12634
+ const Z = parseInt(T.target.value) || 0;
12635
+ M(Math.min(Math.max(Z, 0), 59));
12560
12636
  },
12561
12637
  onBlur: A,
12562
12638
  min: "0",
@@ -12586,18 +12662,18 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12586
12662
  }
12587
12663
  return o / a.length >= s;
12588
12664
  }, u0 = ({ allowCustomValue: t = !1, autofocus: c = !1, className: l = "", disabled: a = !1, error: s, highlighted: o = !1, id: i, label: n, multiple: d = !1, name: h, onChange: p, onSearchChange: v, options: g, placeholder: w = "Select an option", searchable: m = !0, searchValue: u, selectedCountDisplay: f = "inline", success: b, usePortal: x = !0, value: y, valueAsChip: M = !0 }) => {
12589
- const [k, V] = L(!1), [_, C] = L(u || ""), [N, B] = L(g), [z, Z] = L(-1), [R, $] = L([]), [q, p1] = L({
12665
+ const [k, V] = L(!1), [_, C] = L(u || ""), [N, B] = L(g), [z, G] = L(-1), [R, $] = L([]), [q, p1] = L({
12590
12666
  top: 0,
12591
12667
  left: 0,
12592
12668
  width: 0
12593
- }), [A, c1] = L(!1), t1 = O(null), T = O([]), G = O(null), h1 = O(null), v1 = g0(), U = i ?? `dropdown-${v1}`;
12669
+ }), [A, c1] = L(!1), t1 = O(null), T = O([]), Z = O(null), d1 = O(null), v1 = g0(), U = i ?? `dropdown-${v1}`;
12594
12670
  F(() => {
12595
12671
  if (!m || !_) B(g);
12596
12672
  else {
12597
12673
  const P = r2(_);
12598
12674
  B(g.filter((j) => r2(j.label).includes(P)));
12599
12675
  }
12600
- Z(-1);
12676
+ G(-1);
12601
12677
  }, [
12602
12678
  _,
12603
12679
  g,
@@ -12700,7 +12776,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12700
12776
  j ? Y = R.filter((m1) => m1.value !== P.value) : Y = [...R, P], $(Y), m && C(""), p && p(Y, h);
12701
12777
  } else
12702
12778
  C(P.label), $([P]), V(!1), p && p(P, h);
12703
- }, C1 = () => {
12779
+ }, y1 = () => {
12704
12780
  if (!t || !_.trim()) return;
12705
12781
  const P = g.find((Y) => Y.label.toLowerCase() === _.toLowerCase() || Y.value.toString() === _);
12706
12782
  if (P) {
@@ -12725,9 +12801,9 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12725
12801
  }, G1 = (P) => {
12726
12802
  C(P), k || V(!0), v?.(P);
12727
12803
  }, X = () => {
12728
- a || (V(!0), !d && m && R.length > 0 && C(""), (d || m) && G.current?.focus());
12804
+ a || (V(!0), !d && m && R.length > 0 && C(""), (d || m) && Z.current?.focus());
12729
12805
  }, K = () => {
12730
- a || (V(!k), k || (Z(-1), !d && m && R.length > 0 && C(""), (d || m) && G.current?.focus()));
12806
+ a || (V(!k), k || (G(-1), !d && m && R.length > 0 && C(""), (d || m) && Z.current?.focus()));
12731
12807
  }, S = (P) => {
12732
12808
  if (!a) {
12733
12809
  if (!k) {
@@ -12737,20 +12813,20 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12737
12813
  switch (P.key) {
12738
12814
  case "ArrowDown":
12739
12815
  if (P.preventDefault(), t && _ && N.length === 0) return;
12740
- Z((j) => {
12816
+ G((j) => {
12741
12817
  const Y = j < (t && _ && !N.some((m1) => m1.label.toLowerCase() === _.toLowerCase()) ? N.length : N.length - 1) ? j + 1 : 0;
12742
12818
  return Y < N.length && T.current[Y] && T.current[Y]?.scrollIntoView({ block: "nearest" }), Y;
12743
12819
  });
12744
12820
  break;
12745
12821
  case "ArrowUp":
12746
12822
  if (P.preventDefault(), t && _ && N.length === 0) return;
12747
- Z((j) => {
12823
+ G((j) => {
12748
12824
  const Y = t && _ && !N.some((B1) => B1.label.toLowerCase() === _.toLowerCase()) ? N.length : N.length - 1, m1 = j > 0 ? j - 1 : Y;
12749
12825
  return m1 < N.length && T.current[m1] && T.current[m1]?.scrollIntoView({ block: "nearest" }), m1;
12750
12826
  });
12751
12827
  break;
12752
12828
  case "Enter":
12753
- P.preventDefault(), z >= 0 && z < N.length ? n1(N[z]) : (t && _ && z === N.length || t && _ && N.length === 0) && C1();
12829
+ P.preventDefault(), z >= 0 && z < N.length ? n1(N[z]) : (t && _ && z === N.length || t && _ && N.length === 0) && y1();
12754
12830
  break;
12755
12831
  case "Escape":
12756
12832
  P.preventDefault(), V(!1), !d && R.length > 0 ? C(R[0].label) : d && m && C("");
@@ -12772,7 +12848,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12772
12848
  }) : null, M1 = () => !!(t && _ && _.trim() && !N.some((P) => P.label.toLowerCase() === _.toLowerCase() || P.value.toString() === _)), F1 = () => {
12773
12849
  if (!k || a) return null;
12774
12850
  const P = /* @__PURE__ */ e("div", {
12775
- ref: h1,
12851
+ ref: d1,
12776
12852
  className: `dropdown-menu ${x ? "dropdown-menu--portal" : ""} ${A ? "dropdown-menu--upward" : ""}`,
12777
12853
  style: x ? {
12778
12854
  position: "absolute",
@@ -12790,7 +12866,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12790
12866
  },
12791
12867
  className: `dropdown-option ${j.className || ""} ${z === Y ? "focused" : ""} ${D(j) ? "selected" : ""} ${j.disabled ? "dropdown-option--disabled" : ""}`,
12792
12868
  onClick: () => n1(j),
12793
- onMouseEnter: () => Z(Y),
12869
+ onMouseEnter: () => G(Y),
12794
12870
  title: j.tooltip,
12795
12871
  children: [d && /* @__PURE__ */ e("div", {
12796
12872
  className: "dropdown-option-checkbox",
@@ -12833,8 +12909,8 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12833
12909
  T.current[N.length] = j;
12834
12910
  },
12835
12911
  className: `dropdown-option dropdown-option--create ${z === N.length ? "focused" : ""}`,
12836
- onClick: C1,
12837
- onMouseEnter: () => Z(N.length),
12912
+ onClick: y1,
12913
+ onMouseEnter: () => G(N.length),
12838
12914
  children: /* @__PURE__ */ e("div", {
12839
12915
  className: "dropdown-option-content",
12840
12916
  children: /* @__PURE__ */ r("span", {
@@ -12879,7 +12955,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
12879
12955
  })]
12880
12956
  }),
12881
12957
  /* @__PURE__ */ e(S1, {
12882
- ref: G,
12958
+ ref: Z,
12883
12959
  id: U,
12884
12960
  placeholder: b1 ? "" : x1(),
12885
12961
  value: b1 ? "" : a1(),
@@ -13590,83 +13666,7 @@ function z2(t, c, l = 0) {
13590
13666
  })]
13591
13667
  }, t.id);
13592
13668
  }
13593
- var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled: s = !1, className: o = "", maxWidth: i, maxHeight: n }) => {
13594
- const [d, h] = L(!1), [p, v] = L({
13595
- top: 0,
13596
- left: 0
13597
- }), g = O(null), w = O(null), m = O(null), u = O(null), f = O(!1), b = n !== void 0, x = b ? 150 : 0, y = () => {
13598
- if (!m.current || !u.current) return;
13599
- const N = m.current.firstElementChild, B = N && N.getBoundingClientRect().width > 0 ? N.getBoundingClientRect() : m.current.getBoundingClientRect(), z = u.current.getBoundingClientRect(), Z = 8;
13600
- let R = 0, $ = 0;
13601
- switch (c) {
13602
- case "top":
13603
- R = B.top - z.height - Z, $ = B.left + B.width / 2 - z.width / 2;
13604
- break;
13605
- case "bottom":
13606
- R = B.bottom + Z, $ = B.left + B.width / 2 - z.width / 2;
13607
- break;
13608
- case "left":
13609
- R = B.top + B.height / 2 - z.height / 2, $ = B.left - z.width - Z;
13610
- break;
13611
- case "right":
13612
- R = B.top + B.height / 2 - z.height / 2, $ = B.right + Z;
13613
- break;
13614
- }
13615
- const q = 8;
13616
- $ < q && ($ = q), $ + z.width > window.innerWidth - q && ($ = window.innerWidth - z.width - q), R < q && (R = q), R + z.height > window.innerHeight - q && (R = window.innerHeight - z.height - q), v({
13617
- top: R,
13618
- left: $
13619
- });
13620
- }, M = () => {
13621
- s || f.current || (w.current && (clearTimeout(w.current), w.current = null), g.current = setTimeout(() => {
13622
- h(!0);
13623
- }, l));
13624
- }, k = () => {
13625
- f.current || (g.current && clearTimeout(g.current), x > 0 ? w.current = setTimeout(() => h(!1), x) : h(!1));
13626
- }, V = (N) => {
13627
- N.pointerType !== "touch" && N.pointerType !== "pen" || s || (f.current = !0, g.current && (clearTimeout(g.current), g.current = null), N.stopPropagation(), h((B) => !B));
13628
- };
13629
- F(() => (d && (y(), window.addEventListener("scroll", y, !0), window.addEventListener("resize", y)), () => {
13630
- window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y);
13631
- }), [d]), F(() => {
13632
- if (!d) return;
13633
- const N = (B) => {
13634
- m.current?.contains(B.target) || u.current?.contains(B.target) || h(!1);
13635
- };
13636
- return document.addEventListener("pointerdown", N), () => {
13637
- document.removeEventListener("pointerdown", N), f.current = !1;
13638
- };
13639
- }, [d]), F(() => () => {
13640
- g.current && clearTimeout(g.current), w.current && clearTimeout(w.current);
13641
- }, []);
13642
- const _ = () => {
13643
- b && w.current && (clearTimeout(w.current), w.current = null);
13644
- }, C = () => {
13645
- b && (w.current = setTimeout(() => h(!1), x));
13646
- };
13647
- return /* @__PURE__ */ r(r1, { children: [/* @__PURE__ */ e("span", {
13648
- ref: m,
13649
- className: "tooltip-trigger",
13650
- onMouseEnter: M,
13651
- onMouseLeave: k,
13652
- onFocus: M,
13653
- onBlur: k,
13654
- onPointerDown: V,
13655
- children: a
13656
- }), d && t && W1(/* @__PURE__ */ r("div", {
13657
- ref: u,
13658
- className: `tooltip tooltip--${c} ${b ? "tooltip--scrollable" : ""} ${o}`,
13659
- style: {
13660
- top: `${p.top}px`,
13661
- left: `${p.left}px`,
13662
- ...i !== void 0 && { maxWidth: typeof i == "number" ? `${i}px` : i },
13663
- ...n !== void 0 && { maxHeight: typeof n == "number" ? `${n}px` : n }
13664
- },
13665
- onMouseEnter: _,
13666
- onMouseLeave: C,
13667
- children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${c}` })]
13668
- }), document.body)] });
13669
- }, Wr = [{
13669
+ var Wr = [{
13670
13670
  value: "cards",
13671
13671
  label: "Grid",
13672
13672
  icon: "grid"
@@ -13792,7 +13792,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
13792
13792
  ]
13793
13793
  })
13794
13794
  });
13795
- return v.title ? /* @__PURE__ */ e(d1, {
13795
+ return v.title ? /* @__PURE__ */ e(s1, {
13796
13796
  title: v.title,
13797
13797
  children: m
13798
13798
  }, v.value) : /* @__PURE__ */ e(Z1.Fragment, { children: m }, v.value);
@@ -13839,7 +13839,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
13839
13839
  ].filter(Boolean).join(" "), B = ["control-panel__overlay", i ? "control-panel__overlay--contained" : ""].filter(Boolean).join(" "), z = {
13840
13840
  "--control-panel-width": t,
13841
13841
  "--control-panel-shadow": d
13842
- }, Z = f.length === 0 ? [] : "type" in f[0] ? [{ options: f }] : f, R = !!(x || y || M || Z.length > 0), $ = g.length > 0 || w !== void 0 && w > 0;
13842
+ }, G = f.length === 0 ? [] : "type" in f[0] ? [{ options: f }] : f, R = !!(x || y || M || G.length > 0), $ = g.length > 0 || w !== void 0 && w > 0;
13843
13843
  return /* @__PURE__ */ r(r1, { children: [o && V && _ && /* @__PURE__ */ e("div", {
13844
13844
  className: B,
13845
13845
  onClick: C
@@ -13883,7 +13883,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
13883
13883
  }),
13884
13884
  $ && R && /* @__PURE__ */ e(e0, { spacing: 0 }),
13885
13885
  R && /* @__PURE__ */ e(Fr, {
13886
- normalizedOptionGroups: Z,
13886
+ normalizedOptionGroups: G,
13887
13887
  onOptionChange: b,
13888
13888
  viewToggle: x,
13889
13889
  groupBy: y,
@@ -13892,16 +13892,15 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
13892
13892
  ]
13893
13893
  })] });
13894
13894
  }, qr = ({ action: t }) => {
13895
- const [c, l] = L(null), [a, s] = L(!1), o = (n) => {
13895
+ const [c, l] = L(null), [a, s] = L(!1), o = (d) => {
13896
13896
  if (t.confirm) {
13897
- l(n.currentTarget), s(!0);
13897
+ l(d.currentTarget), s(!0);
13898
13898
  return;
13899
13899
  }
13900
- t.onClick?.(n);
13900
+ t.onClick?.(d);
13901
13901
  }, i = () => {
13902
13902
  t.onClick?.({});
13903
- };
13904
- return /* @__PURE__ */ r(r1, { children: [/* @__PURE__ */ e(W, {
13903
+ }, n = /* @__PURE__ */ e(W, {
13905
13904
  className: "control-panel__action",
13906
13905
  disabled: t.disabled,
13907
13906
  fullWidth: t.fullWidth ?? !0,
@@ -13911,7 +13910,12 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
13911
13910
  sufixIcon: t.suffixIcon,
13912
13911
  variant: t.variant ?? "default",
13913
13912
  children: t.label
13914
- }), t.confirm && /* @__PURE__ */ e(zr, {
13913
+ });
13914
+ return /* @__PURE__ */ r(r1, { children: [t.tooltip ? /* @__PURE__ */ e(s1, {
13915
+ title: t.tooltip,
13916
+ position: "right",
13917
+ children: n
13918
+ }) : n, t.confirm && /* @__PURE__ */ e(zr, {
13915
13919
  visible: a,
13916
13920
  onClose: () => s(!1),
13917
13921
  anchorEl: c,
@@ -13971,7 +13975,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
13971
13975
  children: o ? void 0 : t || y
13972
13976
  });
13973
13977
  }, Yr = ({ code: t, size: c = "md", className: l = "" }) => {
13974
- if (!t) return /* @__PURE__ */ e(d1, {
13978
+ if (!t) return /* @__PURE__ */ e(s1, {
13975
13979
  title: `Unsupported country code: ${t}`,
13976
13980
  children: /* @__PURE__ */ e("div", {
13977
13981
  className: `flags flags--fallback flags--${c} ${l}`,
@@ -13984,7 +13988,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
13984
13988
  children: [/* @__PURE__ */ e("source", {
13985
13989
  srcSet: s,
13986
13990
  type: "image/webp"
13987
- }), /* @__PURE__ */ e(d1, {
13991
+ }), /* @__PURE__ */ e(s1, {
13988
13992
  title: `Country: ${t.toUpperCase()}`,
13989
13993
  children: /* @__PURE__ */ e("img", {
13990
13994
  src: a,
@@ -14182,7 +14186,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
14182
14186
  children: t.showYear ? t.yearLabel : t.dateLabel
14183
14187
  })
14184
14188
  }), ka = ({ items: t, renderItem: c, className: l }) => {
14185
- const a = s1(() => U0(t), [t]);
14189
+ const a = h1(() => U0(t), [t]);
14186
14190
  return /* @__PURE__ */ r("div", {
14187
14191
  className: `timeline-markers${l ? ` ${l}` : ""}`,
14188
14192
  children: [/* @__PURE__ */ e("div", { className: "timeline-markers__track" }), t.map((s, o) => {
@@ -14216,7 +14220,7 @@ var d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled
14216
14220
  }) : a;
14217
14221
  };
14218
14222
  function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o, onRowClick: i, rowHref: n, rowClassName: d, empty: h, selectable: p, selectedIds: v = [], pinnedIds: g, onToggleSelect: w, cardMaxWidth: m, isMobile: u = !1, groups: f, showGroupCount: b = !0, collapsible: x = !1, collapsedGroups: y, onToggleGroup: M }) {
14219
- const k = c.filter((z) => !z.hideInCard && !(u && z.hideInMobile)), V = s1(() => new Set(g ?? []), [g]), _ = `data-view__cards${m !== void 0 ? " data-view__cards--grid" : ""}`, C = m !== void 0 ? { "--data-view-card-max-width": sc(m) } : void 0, N = s1(() => o ? U0(t.map((z) => ({
14223
+ const k = c.filter((z) => !z.hideInCard && !(u && z.hideInMobile)), V = h1(() => new Set(g ?? []), [g]), _ = `data-view__cards${m !== void 0 ? " data-view__cards--grid" : ""}`, C = m !== void 0 ? { "--data-view-card-max-width": sc(m) } : void 0, N = h1(() => o ? U0(t.map((z) => ({
14220
14224
  id: o.idAccessor(z),
14221
14225
  date: o.dateAccessor(z)
14222
14226
  })), o.granularity) : /* @__PURE__ */ new Map(), [t, o]);
@@ -14228,9 +14232,9 @@ function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14228
14232
  primary: h.primary,
14229
14233
  secondary: h.secondary
14230
14234
  }) : /* @__PURE__ */ e(l0, { title: "No data available" });
14231
- const B = (z, Z) => {
14232
- const R = N.get(Z), $ = l(z, Z), q = p && v.includes($), p1 = V.has($), A = n?.(z), c1 = `data-view__card ${i || A ? "data-view__card--clickable" : ""} ${q ? "data-view__card--selected" : ""} ${p1 ? "data-view__card--pinned" : ""} ${d?.(z) || ""}`, t1 = (G) => {
14233
- G.metaKey || G.ctrlKey || G.shiftKey || G.altKey || G.button !== 0 || i && (G.preventDefault(), i(z));
14235
+ const B = (z, G) => {
14236
+ const R = N.get(G), $ = l(z, G), q = p && v.includes($), p1 = V.has($), A = n?.(z), c1 = `data-view__card ${i || A ? "data-view__card--clickable" : ""} ${q ? "data-view__card--selected" : ""} ${p1 ? "data-view__card--pinned" : ""} ${d?.(z) || ""}`, t1 = (Z) => {
14237
+ Z.metaKey || Z.ctrlKey || Z.shiftKey || Z.altKey || Z.button !== 0 || i && (Z.preventDefault(), i(z, Z));
14234
14238
  }, T = /* @__PURE__ */ r(r1, { children: [
14235
14239
  p1 && /* @__PURE__ */ e("span", {
14236
14240
  className: "data-view__card-pin",
@@ -14242,10 +14246,10 @@ function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14242
14246
  }),
14243
14247
  p && w && /* @__PURE__ */ e("div", {
14244
14248
  className: "data-view__card-select",
14245
- onClick: (G) => G.stopPropagation(),
14249
+ onClick: (Z) => Z.stopPropagation(),
14246
14250
  children: /* @__PURE__ */ e(m0, {
14247
14251
  checked: q || !1,
14248
- onChange: (G) => w($, G)
14252
+ onChange: (Z) => w($, Z)
14249
14253
  })
14250
14254
  }),
14251
14255
  a?.media && /* @__PURE__ */ e("div", {
@@ -14253,16 +14257,16 @@ function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14253
14257
  children: a.media(z)
14254
14258
  }),
14255
14259
  a && (() => {
14256
- const G = a.icon?.(z);
14260
+ const Z = a.icon?.(z);
14257
14261
  return /* @__PURE__ */ r("div", {
14258
14262
  className: "data-view__card-header",
14259
14263
  children: [/* @__PURE__ */ r("div", {
14260
14264
  className: "data-view__card-title-row",
14261
14265
  children: [/* @__PURE__ */ r("div", {
14262
14266
  className: "data-view__card-title-line",
14263
- children: [G && /* @__PURE__ */ e(I, {
14267
+ children: [Z && /* @__PURE__ */ e(I, {
14264
14268
  className: "data-view__card-icon",
14265
- name: G
14269
+ name: Z
14266
14270
  }), /* @__PURE__ */ e("span", {
14267
14271
  className: "data-view__card-title",
14268
14272
  children: a.title(z)
@@ -14279,20 +14283,20 @@ function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14279
14283
  })(),
14280
14284
  k.length > 0 && /* @__PURE__ */ e("div", {
14281
14285
  className: "data-view__card-body",
14282
- children: k.map((G) => /* @__PURE__ */ r("div", {
14286
+ children: k.map((Z) => /* @__PURE__ */ r("div", {
14283
14287
  className: "data-view__card-field",
14284
14288
  children: [/* @__PURE__ */ e("span", {
14285
14289
  className: "data-view__card-label",
14286
- children: N2(G)
14290
+ children: N2(Z)
14287
14291
  }), /* @__PURE__ */ e("span", {
14288
14292
  className: "data-view__card-value",
14289
- children: H2(G, z)
14293
+ children: H2(Z, z)
14290
14294
  })]
14291
- }, G.key))
14295
+ }, Z.key))
14292
14296
  }),
14293
14297
  s && /* @__PURE__ */ e("div", {
14294
14298
  className: "data-view__card-actions",
14295
- onClick: (G) => G.stopPropagation(),
14299
+ onClick: (Z) => Z.stopPropagation(),
14296
14300
  children: s(z)
14297
14301
  })
14298
14302
  ] });
@@ -14303,7 +14307,7 @@ function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14303
14307
  children: T
14304
14308
  }) : /* @__PURE__ */ e("div", {
14305
14309
  className: c1,
14306
- onClick: i ? () => i(z) : void 0,
14310
+ onClick: i ? (Z) => i(z, Z) : void 0,
14307
14311
  children: T
14308
14312
  })] }, $);
14309
14313
  };
@@ -14311,23 +14315,23 @@ function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14311
14315
  let z = 0;
14312
14316
  return /* @__PURE__ */ e("div", {
14313
14317
  className: "data-view__groups",
14314
- children: f.map((Z) => {
14318
+ children: f.map((G) => {
14315
14319
  const R = z;
14316
- z += Z.items.length;
14317
- const $ = x && y?.has(Z.key);
14320
+ z += G.items.length;
14321
+ const $ = x && y?.has(G.key);
14318
14322
  return /* @__PURE__ */ r("section", {
14319
14323
  className: "data-view__group",
14320
14324
  children: [/* @__PURE__ */ r("header", {
14321
14325
  className: `data-view__group-header${x ? " data-view__group-header--collapsible" : ""}`,
14322
- onClick: x ? () => M?.(Z.key) : void 0,
14326
+ onClick: x ? () => M?.(G.key) : void 0,
14323
14327
  children: [
14324
14328
  /* @__PURE__ */ e("span", {
14325
14329
  className: "data-view__group-label",
14326
- children: Z.label
14330
+ children: G.label
14327
14331
  }),
14328
14332
  b && /* @__PURE__ */ e("span", {
14329
14333
  className: "data-view__group-count",
14330
- children: Z.totalCount
14334
+ children: G.totalCount
14331
14335
  }),
14332
14336
  x && /* @__PURE__ */ e(I, {
14333
14337
  className: "data-view__group-chevron",
@@ -14338,16 +14342,16 @@ function hc({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
14338
14342
  }), !$ && /* @__PURE__ */ e("div", {
14339
14343
  className: _,
14340
14344
  style: C,
14341
- children: Z.items.map((q, p1) => B(q, R + p1))
14345
+ children: G.items.map((q, p1) => B(q, R + p1))
14342
14346
  })]
14343
- }, Z.key ?? "__null__");
14347
+ }, G.key ?? "__null__");
14344
14348
  })
14345
14349
  });
14346
14350
  }
14347
14351
  return /* @__PURE__ */ e("div", {
14348
14352
  className: _,
14349
14353
  style: C,
14350
- children: t.map((z, Z) => B(z, Z))
14354
+ children: t.map((z, G) => B(z, G))
14351
14355
  });
14352
14356
  }
14353
14357
  var dc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left", showDirectionToggle: o = !1, className: i = "" }) => t.length === 0 ? null : /* @__PURE__ */ r("div", {
@@ -14358,7 +14362,7 @@ var dc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
14358
14362
  ].filter(Boolean).join(" "),
14359
14363
  children: [t.map((n, d) => {
14360
14364
  const h = n.direction ?? "asc", p = o ? c === n.value : c === n.value && l === h;
14361
- return /* @__PURE__ */ e(d1, {
14365
+ return /* @__PURE__ */ e(s1, {
14362
14366
  title: `Sort by ${typeof n.label == "string" || typeof n.label == "number" ? String(n.label) : n.value}${o ? "" : ` ${h === "asc" ? "ascending" : "descending"}`}`,
14363
14367
  children: /* @__PURE__ */ e(W, {
14364
14368
  className: `mini-sort__button${p ? " is-active" : ""}`,
@@ -14375,7 +14379,7 @@ var dc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
14375
14379
  children: n.label ?? n.value
14376
14380
  })
14377
14381
  }, `${n.value}-${d}`);
14378
- }), o && /* @__PURE__ */ e(d1, {
14382
+ }), o && /* @__PURE__ */ e(s1, {
14379
14383
  title: `Direction: ${l === "asc" ? "ascending" : "descending"}`,
14380
14384
  children: /* @__PURE__ */ e(W, {
14381
14385
  className: "mini-sort__button mini-sort__direction",
@@ -14417,20 +14421,20 @@ function pc({ state: t }) {
14417
14421
  children: /* @__PURE__ */ e(I, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
14418
14422
  });
14419
14423
  }
14420
- function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = a2, initialPageSize: d = a2[1], showPageSize: h = !0, card: p, actions: v, actionsWidth: g, timeline: w, onRowClick: m, rowHref: u, rowClassName: f, rowDetail: b, empty: x, initialSortKey: y = null, initialSortDirection: M = "asc", sortKey: k, sortDirection: V, onSortChange: _, miniSort: C, showCardSortControls: N = !0, desktopView: B = "table", cardMaxWidth: z, className: Z, onPageChange: R, onPageSizeChange: $, currentPage: q, totalItems: p1, group: A, showResultsCount: c1 = !0, totalCount: t1, itemNoun: T }) {
14421
- const { isMobile: G } = a0(), [h1, v1] = L(y), [U, i1] = L(M), [n1, C1] = L([]), u1 = i ?? n1, [A1, G1] = L(1), X = q ?? A1, [K, S] = L(d), [D, e1] = L(() => t.reduce((H, Q) => (Q.width && (H[Q.key] = Q.width), H), {})), [a1, x1] = L(/* @__PURE__ */ new Set()), f1 = (H) => {
14424
+ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = a2, initialPageSize: d = a2[1], showPageSize: h = !0, card: p, actions: v, actionsWidth: g, timeline: w, onRowClick: m, rowHref: u, rowClassName: f, rowDetail: b, empty: x, initialSortKey: y = null, initialSortDirection: M = "asc", sortKey: k, sortDirection: V, onSortChange: _, miniSort: C, showCardSortControls: N = !0, desktopView: B = "table", cardMaxWidth: z, className: G, onPageChange: R, onPageSizeChange: $, currentPage: q, totalItems: p1, group: A, showResultsCount: c1 = !0, totalCount: t1, itemNoun: T }) {
14425
+ const { isMobile: Z } = a0(), [d1, v1] = L(y), [U, i1] = L(M), [n1, y1] = L([]), u1 = i ?? n1, [A1, G1] = L(1), X = q ?? A1, [K, S] = L(d), [D, e1] = L(() => t.reduce((H, Q) => (Q.width && (H[Q.key] = Q.width), H), {})), [a1, x1] = L(/* @__PURE__ */ new Set()), f1 = (H) => {
14422
14426
  x1((Q) => {
14423
14427
  const o1 = new Set(Q);
14424
14428
  return o1.has(H) ? o1.delete(H) : o1.add(H), o1;
14425
14429
  });
14426
14430
  }, M1 = (H, Q) => l?.(H, Q) ?? Q, F1 = (H) => {
14427
14431
  q === void 0 && G1(H), R?.(H);
14428
- }, g1 = k !== void 0 ? k : h1, b1 = V ?? U, $1 = (H, Q) => {
14432
+ }, g1 = k !== void 0 ? k : d1, b1 = V ?? U, $1 = (H, Q) => {
14429
14433
  k === void 0 && v1(H), V === void 0 && i1(Q), _?.({
14430
14434
  key: H,
14431
14435
  direction: Q
14432
14436
  }), F1(1);
14433
- }, q1 = s1(() => new Set(a ?? []), [a]), P = s1(() => {
14437
+ }, q1 = h1(() => new Set(a ?? []), [a]), P = h1(() => {
14434
14438
  let H = c;
14435
14439
  if (g1) {
14436
14440
  const J = t.find((l1) => l1.key === g1);
@@ -14461,14 +14465,14 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14461
14465
  g1,
14462
14466
  q1,
14463
14467
  a
14464
- ]), j = p1 !== void 0, Y = j ? p1 : P.length, m1 = Math.max(1, Math.ceil(Y / K)), B1 = Math.min(X, m1), D1 = j ? P : P.slice((B1 - 1) * K, B1 * K), X1 = c1 ? Xr(K, Y, t1 ?? Y, B1, T) : null, _0 = s1(() => {
14468
+ ]), j = p1 !== void 0, Y = j ? p1 : P.length, m1 = Math.max(1, Math.ceil(Y / K)), B1 = Math.min(X, m1), D1 = j ? P : P.slice((B1 - 1) * K, B1 * K), X1 = c1 ? Xr(K, Y, t1 ?? Y, B1, T) : null, _0 = h1(() => {
14465
14469
  if (!A) return null;
14466
14470
  const H = /* @__PURE__ */ new Map();
14467
14471
  return P.forEach((Q) => {
14468
14472
  const o1 = A.groupBy(Q);
14469
14473
  H.set(o1, (H.get(o1) ?? 0) + 1);
14470
14474
  }), H;
14471
- }, [A, P]), L0 = s1(() => {
14475
+ }, [A, P]), L0 = h1(() => {
14472
14476
  if (!A || !_0) return null;
14473
14477
  const H = /* @__PURE__ */ new Map(), Q = [];
14474
14478
  D1.forEach((J) => {
@@ -14486,11 +14490,11 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14486
14490
  A,
14487
14491
  _0,
14488
14492
  D1
14489
- ]), F0 = s1(() => w ? U0(D1.map((H) => ({
14493
+ ]), F0 = h1(() => w ? U0(D1.map((H) => ({
14490
14494
  id: w.idAccessor(H),
14491
14495
  date: w.dateAccessor(H)
14492
14496
  })), w.granularity) : /* @__PURE__ */ new Map(), [D1, w]), K1 = (H) => {
14493
- i === void 0 && C1(H), o?.(c.filter((Q, o1) => H.includes(M1(Q, o1))));
14497
+ i === void 0 && y1(H), o?.(c.filter((Q, o1) => H.includes(M1(Q, o1))));
14494
14498
  }, j2 = (H) => {
14495
14499
  H.sortable && (g1 === H.key ? $1(H.key, b1 === "asc" ? "desc" : "asc") : $1(H.key, "asc"));
14496
14500
  }, P2 = (H, Q) => {
@@ -14522,7 +14526,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14522
14526
  }), O0]
14523
14527
  }) : null;
14524
14528
  if (B === "cards") return /* @__PURE__ */ r("div", {
14525
- className: `data-view data-view--cards${Z ? ` ${Z}` : ""}`,
14529
+ className: `data-view data-view--cards${G ? ` ${G}` : ""}`,
14526
14530
  children: [
14527
14531
  Y0,
14528
14532
  N && U2 && /* @__PURE__ */ r("div", {
@@ -14546,7 +14550,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14546
14550
  $1(Q, g1 === Q ? b1 : "asc");
14547
14551
  }
14548
14552
  })
14549
- }), /* @__PURE__ */ e(d1, {
14553
+ }), /* @__PURE__ */ e(s1, {
14550
14554
  title: b1 === "asc" ? "Sort descending" : "Sort ascending",
14551
14555
  children: /* @__PURE__ */ e(W, {
14552
14556
  className: "data-view__card-sort-direction",
@@ -14581,7 +14585,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14581
14585
  selectedIds: u1,
14582
14586
  pinnedIds: a,
14583
14587
  cardMaxWidth: z,
14584
- isMobile: G,
14588
+ isMobile: Z,
14585
14589
  groups: L0 ?? void 0,
14586
14590
  showGroupCount: A?.showCount !== !1,
14587
14591
  collapsible: A?.collapsible,
@@ -14666,14 +14670,14 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14666
14670
  }) : /* @__PURE__ */ e(l0, { title: "No data available" })
14667
14671
  }) });
14668
14672
  const H = i0.length + (Q1 ? 1 : 0) + (s ? 1 : 0) + (v ? 1 : 0), Q = A?.showCount !== !1, o1 = (J, l1) => {
14669
- const w1 = M1(J, l1), V1 = u1.includes(w1), L1 = q1.has(w1), R1 = F0.get(l1), k1 = u?.(J), K0 = !!m || !!k1, Y2 = (y1) => {
14670
- if (k1 && (y1.metaKey || y1.ctrlKey || y1.shiftKey)) {
14673
+ const w1 = M1(J, l1), V1 = u1.includes(w1), L1 = q1.has(w1), R1 = F0.get(l1), k1 = u?.(J), K0 = !!m || !!k1, Y2 = (C1) => {
14674
+ if (k1 && (C1.metaKey || C1.ctrlKey || C1.shiftKey)) {
14671
14675
  window.open(k1, "_blank", "noopener,noreferrer");
14672
14676
  return;
14673
14677
  }
14674
- m?.(J);
14675
- }, X2 = (y1) => {
14676
- y1.button !== 1 || !k1 || (y1.preventDefault(), window.open(k1, "_blank", "noopener,noreferrer"));
14678
+ m?.(J, C1);
14679
+ }, X2 = (C1) => {
14680
+ C1.button !== 1 || !k1 || (C1.preventDefault(), window.open(k1, "_blank", "noopener,noreferrer"));
14677
14681
  }, N0 = b?.(J);
14678
14682
  return /* @__PURE__ */ r(Z1.Fragment, { children: [/* @__PURE__ */ r("tr", {
14679
14683
  className: `${V1 ? "is-selected" : ""} ${K0 ? "data-view__row--clickable" : ""} ${L1 ? "data-view__row--pinned" : ""} ${f?.(J) || ""}`,
@@ -14688,28 +14692,28 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14688
14692
  className: "data-view__checkbox",
14689
14693
  children: /* @__PURE__ */ e(m0, {
14690
14694
  checked: V1,
14691
- onChange: (y1) => {
14692
- K1(y1 ? [...u1, w1] : u1.filter((H0) => H0 !== w1));
14695
+ onChange: (C1) => {
14696
+ K1(C1 ? [...u1, w1] : u1.filter((H0) => H0 !== w1));
14693
14697
  }
14694
14698
  })
14695
14699
  }),
14696
- i0.map((y1, H0) => /* @__PURE__ */ r("td", {
14697
- style: D[y1.key] ? { width: D[y1.key] } : void 0,
14698
- children: [H0 === 0 && L1 && /* @__PURE__ */ e(d1, {
14700
+ i0.map((C1, H0) => /* @__PURE__ */ r("td", {
14701
+ style: D[C1.key] ? { width: D[C1.key] } : void 0,
14702
+ children: [H0 === 0 && L1 && /* @__PURE__ */ e(s1, {
14699
14703
  title: "Pinned",
14700
14704
  children: /* @__PURE__ */ e(I, {
14701
14705
  className: "data-view__pin-indicator",
14702
14706
  name: "pin",
14703
14707
  size: "sm"
14704
14708
  })
14705
- }), H2(y1, J)]
14706
- }, y1.key)),
14709
+ }), H2(C1, J)]
14710
+ }, C1.key)),
14707
14711
  v && /* @__PURE__ */ e("td", {
14708
14712
  className: "data-view__actions-cell",
14709
14713
  style: g ? { width: g } : void 0,
14710
14714
  children: /* @__PURE__ */ e("div", {
14711
14715
  className: "data-view__table-actions",
14712
- onClick: (y1) => y1.stopPropagation(),
14716
+ onClick: (C1) => C1.stopPropagation(),
14713
14717
  children: v(J)
14714
14718
  })
14715
14719
  })
@@ -14718,7 +14722,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14718
14722
  className: "data-view__row-detail",
14719
14723
  children: /* @__PURE__ */ e("td", {
14720
14724
  colSpan: H,
14721
- onClick: (y1) => y1.stopPropagation(),
14725
+ onClick: (C1) => C1.stopPropagation(),
14722
14726
  children: N0
14723
14727
  })
14724
14728
  })] }, w1);
@@ -14770,7 +14774,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
14770
14774
  })
14771
14775
  ] });
14772
14776
  return /* @__PURE__ */ e("div", {
14773
- className: `data-view${Z ? ` ${Z}` : ""}`,
14777
+ className: `data-view${G ? ` ${G}` : ""}`,
14774
14778
  children: Q1 ? /* @__PURE__ */ r("div", {
14775
14779
  className: "timeline-markers",
14776
14780
  children: [/* @__PURE__ */ e("div", { className: "timeline-markers__track" }), X0]
@@ -14789,28 +14793,28 @@ var O1 = (t) => {
14789
14793
  }), [x, y] = L(c?.start ?? ""), [M, k] = L(c?.end ?? ""), V = O(null), _ = O(null), C = c ?? d, N = O1(C.start), B = O1(C.end), z = N && B ? {
14790
14794
  start: N,
14791
14795
  end: B
14792
- } : void 0, Z = (U) => {
14796
+ } : void 0, G = (U) => {
14793
14797
  c || h(U), l?.(U);
14794
14798
  }, R = (U) => {
14795
- U && typeof U == "object" && "start" in U && (Z({
14799
+ U && typeof U == "object" && "start" in U && (G({
14796
14800
  start: f0(U.start),
14797
14801
  end: f0(U.end)
14798
14802
  }), w(null), !o && i && u(!1));
14799
14803
  }, $ = (U) => {
14800
14804
  w(U);
14801
14805
  }, q = (U) => /^\d{4}-\d{2}-\d{2}$/.test(U) && O1(U) !== void 0, p1 = () => {
14802
- q(x) ? Z({
14806
+ q(x) ? G({
14803
14807
  ...C,
14804
14808
  start: x
14805
14809
  }) : y(C.start ?? "");
14806
14810
  }, A = () => {
14807
- q(M) ? Z({
14811
+ q(M) ? G({
14808
14812
  ...C,
14809
14813
  end: M
14810
14814
  }) : k(C.end ?? "");
14811
14815
  }, c1 = (U) => {
14812
14816
  const i1 = /* @__PURE__ */ new Date(), n1 = /* @__PURE__ */ new Date();
14813
- n1.setDate(n1.getDate() - U), Z({
14817
+ n1.setDate(n1.getDate() - U), G({
14814
14818
  start: f0(n1),
14815
14819
  end: f0(i1)
14816
14820
  });
@@ -14820,42 +14824,42 @@ var O1 = (t) => {
14820
14824
  }, [C.start]), F(() => {
14821
14825
  k(C.end ?? "");
14822
14826
  }, [C.end]);
14823
- const t1 = s1(() => d0(p, 1), [p]), T = o || m, G = !o && m, h1 = E(() => {
14824
- if (!G || !V.current || !_.current) return;
14825
- const U = V.current.getBoundingClientRect(), i1 = _.current.getBoundingClientRect(), n1 = 16, C1 = 8, u1 = window.innerHeight - U.bottom - n1, A1 = U.top - n1, G1 = u1 < i1.height && A1 > i1.height ? U.top - i1.height - C1 : U.bottom + C1, X = Math.max(n1, Math.min(G1, window.innerHeight - i1.height - n1)), K = U.left, S = Math.max(n1, Math.min(K, window.innerWidth - i1.width - n1));
14827
+ const t1 = h1(() => d0(p, 1), [p]), T = o || m, Z = !o && m, d1 = E(() => {
14828
+ if (!Z || !V.current || !_.current) return;
14829
+ const U = V.current.getBoundingClientRect(), i1 = _.current.getBoundingClientRect(), n1 = 16, y1 = 8, u1 = window.innerHeight - U.bottom - n1, A1 = U.top - n1, G1 = u1 < i1.height && A1 > i1.height ? U.top - i1.height - y1 : U.bottom + y1, X = Math.max(n1, Math.min(G1, window.innerHeight - i1.height - n1)), K = U.left, S = Math.max(n1, Math.min(K, window.innerWidth - i1.width - n1));
14826
14830
  b({
14827
14831
  position: "fixed",
14828
14832
  top: `${X}px`,
14829
14833
  left: `${S}px`,
14830
14834
  zIndex: 1e3
14831
14835
  });
14832
- }, [G]);
14836
+ }, [Z]);
14833
14837
  F(() => {
14834
14838
  o && u(!0);
14835
14839
  }, [o]), F(() => {
14836
- if (!G) {
14840
+ if (!Z) {
14837
14841
  b({
14838
14842
  position: "fixed",
14839
14843
  visibility: "hidden"
14840
14844
  });
14841
14845
  return;
14842
14846
  }
14843
- const U = requestAnimationFrame(() => requestAnimationFrame(h1));
14844
- return window.addEventListener("resize", h1), window.addEventListener("scroll", h1, !0), () => {
14845
- cancelAnimationFrame(U), window.removeEventListener("resize", h1), window.removeEventListener("scroll", h1, !0);
14847
+ const U = requestAnimationFrame(() => requestAnimationFrame(d1));
14848
+ return window.addEventListener("resize", d1), window.addEventListener("scroll", d1, !0), () => {
14849
+ cancelAnimationFrame(U), window.removeEventListener("resize", d1), window.removeEventListener("scroll", d1, !0);
14846
14850
  };
14847
- }, [G, h1]), F(() => {
14848
- if (!G) return;
14851
+ }, [Z, d1]), F(() => {
14852
+ if (!Z) return;
14849
14853
  const U = (n1) => {
14850
- const C1 = n1.target;
14851
- V.current?.contains(C1) || _.current?.contains(C1) || u(!1);
14854
+ const y1 = n1.target;
14855
+ V.current?.contains(y1) || _.current?.contains(y1) || u(!1);
14852
14856
  }, i1 = (n1) => {
14853
14857
  n1.key === "Escape" && u(!1);
14854
14858
  };
14855
14859
  return document.addEventListener("mousedown", U), document.addEventListener("keydown", i1), () => {
14856
14860
  document.removeEventListener("mousedown", U), document.removeEventListener("keydown", i1);
14857
14861
  };
14858
- }, [G]);
14862
+ }, [Z]);
14859
14863
  const v1 = /* @__PURE__ */ r("div", {
14860
14864
  className: "date-range-picker__calendar",
14861
14865
  children: [/* @__PURE__ */ r("div", {
@@ -14970,7 +14974,7 @@ var O1 = (t) => {
14970
14974
  ]
14971
14975
  }),
14972
14976
  o && T && v1,
14973
- G && W1(/* @__PURE__ */ e("div", {
14977
+ Z && W1(/* @__PURE__ */ e("div", {
14974
14978
  ref: _,
14975
14979
  className: "date-range-picker__overlay",
14976
14980
  style: f,
@@ -15110,7 +15114,7 @@ function fc(t) {
15110
15114
  }
15111
15115
  return c;
15112
15116
  }
15113
- var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t]).map((c, l) => c.name === "plain" ? /* @__PURE__ */ e("span", { children: c.val }, l) : /* @__PURE__ */ e("span", {
15117
+ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: h1(() => fc(t), [t]).map((c, l) => c.name === "plain" ? /* @__PURE__ */ e("span", { children: c.val }, l) : /* @__PURE__ */ e("span", {
15114
15118
  className: `dv-token dv-token--${c.name}`,
15115
15119
  children: c.val
15116
15120
  }, l)) }), T0 = ({ line: t, side: c, type: l }) => {
@@ -15121,7 +15125,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
15121
15125
  side: c
15122
15126
  }) : l === "code" ? /* @__PURE__ */ e(Cc, { text: a }) : /* @__PURE__ */ e(r1, { children: a });
15123
15127
  }, za = ({ oldValue: t, newValue: c, mode: l = "split", type: a = "text", oldTitle: s = "Before", newTitle: o = "After", showLineNumbers: i = !0 }) => {
15124
- const n = s1(() => vc(t, c), [t, c]), d = s1(() => ({
15128
+ const n = h1(() => vc(t, c), [t, c]), d = h1(() => ({
15125
15129
  added: n.filter((h) => h.kind === "added").length,
15126
15130
  removed: n.filter((h) => h.kind === "removed").length
15127
15131
  }), [n]);
@@ -15247,8 +15251,8 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
15247
15251
  if (F(() => {
15248
15252
  t && (i2 += 1, V(i2));
15249
15253
  }, [t]), F(() => {
15250
- const z = (Z) => {
15251
- Z.key === "Escape" && t && c();
15254
+ const z = (G) => {
15255
+ G.key === "Escape" && t && c();
15252
15256
  };
15253
15257
  return document.addEventListener("keydown", z), () => document.removeEventListener("keydown", z);
15254
15258
  }, [t, c]), !t) return null;
@@ -15271,7 +15275,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
15271
15275
  /* @__PURE__ */ r("div", {
15272
15276
  className: "drawer__header",
15273
15277
  children: [
15274
- f && /* @__PURE__ */ e(d1, {
15278
+ f && /* @__PURE__ */ e(s1, {
15275
15279
  title: b,
15276
15280
  position: "bottom",
15277
15281
  children: /* @__PURE__ */ e(W, {
@@ -15292,7 +15296,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
15292
15296
  u.length > 0 && /* @__PURE__ */ e("div", {
15293
15297
  className: "drawer__header-actions",
15294
15298
  children: u.map((z) => {
15295
- const Z = /* @__PURE__ */ e(W, {
15299
+ const G = /* @__PURE__ */ e(W, {
15296
15300
  disabled: z.disabled,
15297
15301
  onClick: z.onClick,
15298
15302
  icon: z.icon,
@@ -15301,11 +15305,11 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
15301
15305
  variant: z.variant ?? "ghost",
15302
15306
  children: z.label
15303
15307
  }), R = z.title ?? z.label;
15304
- return R ? /* @__PURE__ */ e(d1, {
15308
+ return R ? /* @__PURE__ */ e(s1, {
15305
15309
  title: R,
15306
15310
  position: "bottom",
15307
- children: Z
15308
- }, z.id) : /* @__PURE__ */ e(Z1.Fragment, { children: Z }, z.id);
15311
+ children: G
15312
+ }, z.id) : /* @__PURE__ */ e(Z1.Fragment, { children: G }, z.id);
15309
15313
  })
15310
15314
  }),
15311
15315
  !m && /* @__PURE__ */ e(W, {
@@ -20394,7 +20398,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
20394
20398
  ]
20395
20399
  }
20396
20400
  ], Va = ({ value: t, onChange: c }) => {
20397
- const [l, a] = L(""), [s, o] = L(C0[0].id), i = s1(() => {
20401
+ const [l, a] = L(""), [s, o] = L(C0[0].id), i = h1(() => {
20398
20402
  if (!l.trim()) return null;
20399
20403
  const d = l.toLowerCase();
20400
20404
  return C0.flatMap((h) => h.emojis.filter((p) => Nc[p]?.some((v) => v.includes(d)) || h.name.toLowerCase().includes(d)));
@@ -20528,7 +20532,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
20528
20532
  const [c, l] = L(!1);
20529
20533
  if (t.length === 1) return /* @__PURE__ */ e("div", {
20530
20534
  className: "float-button-container",
20531
- children: /* @__PURE__ */ e(d1, {
20535
+ children: /* @__PURE__ */ e(s1, {
20532
20536
  title: t[0].label,
20533
20537
  position: "left",
20534
20538
  children: /* @__PURE__ */ e("button", {
@@ -20784,7 +20788,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
20784
20788
  const q = B($);
20785
20789
  _(q), N(!0), w?.(q);
20786
20790
  }
20787
- }, Z = ($) => {
20791
+ }, G = ($) => {
20788
20792
  if (N(!0), y === "blur" || y === "both") {
20789
20793
  const q = B($.target.value);
20790
20794
  _(q), w?.(q);
@@ -20813,7 +20817,7 @@ var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children: s1(() => fc(t), [t])
20813
20817
  placeholder: m,
20814
20818
  ref: k,
20815
20819
  value: M,
20816
- onBlur: Z,
20820
+ onBlur: G,
20817
20821
  onChange: ($) => z($.target.value),
20818
20822
  onClick: p,
20819
20823
  onKeyDown: v,
@@ -20903,9 +20907,9 @@ function Ac(t) {
20903
20907
  return t.filter((c) => c.type === "token").length;
20904
20908
  }
20905
20909
  var $c = _1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, label: o, hint: i, error: n, highlighted: d, size: h = "md", variant: p = "default", disabled: v = !1, readOnly: g = !1, maskChar: w = "_", mono: m = !0, icon: u, suffix: f, className: b = "", id: x, name: y, autoComplete: M }, k) => {
20906
- const V = Z1.useMemo(() => Rc(t), [t]), _ = Z1.useMemo(() => Ac(V), [V]), C = g0(), N = x ?? C, [B, z] = L(() => c !== void 0 ? c : ""), Z = O(null);
20910
+ const V = Z1.useMemo(() => Rc(t), [t]), _ = Z1.useMemo(() => Ac(V), [V]), C = g0(), N = x ?? C, [B, z] = L(() => c !== void 0 ? c : ""), G = O(null);
20907
20911
  u2(k, () => ({
20908
- focus: () => Z.current?.focus(),
20912
+ focus: () => G.current?.focus(),
20909
20913
  clear: () => {
20910
20914
  z(""), l?.("", "");
20911
20915
  },
@@ -20931,16 +20935,16 @@ var $c = _1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
20931
20935
  return;
20932
20936
  }
20933
20937
  if (T.key.length !== 1 || T.ctrlKey || T.metaKey || (T.preventDefault(), B.length >= _)) return;
20934
- const G = T.key;
20935
- let h1 = 0;
20938
+ const Z = T.key;
20939
+ let d1 = 0;
20936
20940
  for (const i1 of V) if (i1.type === "token") {
20937
- if (h1 === B.length) {
20938
- if (!R2[i1.key].test(G)) return;
20941
+ if (d1 === B.length) {
20942
+ if (!R2[i1.key].test(Z)) return;
20939
20943
  break;
20940
20944
  }
20941
- h1++;
20945
+ d1++;
20942
20946
  }
20943
- const { masked: v1, rawAccepted: U } = Z0(B + G, V, w);
20947
+ const { masked: v1, rawAccepted: U } = Z0(B + Z, V, w);
20944
20948
  z(U), l?.(U, v1), U.length === _ && a?.(U, v1);
20945
20949
  }, [
20946
20950
  v,
@@ -20968,7 +20972,7 @@ var $c = _1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
20968
20972
  children: u
20969
20973
  }),
20970
20974
  /* @__PURE__ */ e("input", {
20971
- ref: Z,
20975
+ ref: G,
20972
20976
  id: N,
20973
20977
  name: y,
20974
20978
  type: "text",
@@ -21072,8 +21076,8 @@ function Tc(t) {
21072
21076
  }
21073
21077
  var Zc = _1(({ autoFocus: t, disabled: c, error: l, format: a = Dc, highlighted: s, id: o, label: i, onBlur: n, onChange: d, onClick: h, onKeyDown: p, placeholder: v, readOnly: g = !1, required: w = !1, success: m, value: u }, f) => {
21074
21078
  const b = u !== void 0, [x, y] = L(() => u ? G0(E0(u), a) : ""), M = b ? G0(E0(u ?? ""), a) : x, k = v ?? a.replace(/#/g, "0"), V = a.length, _ = (C) => {
21075
- const N = E0(C), B = Tc(a), z = N.slice(0, B), Z = G0(z, a);
21076
- b || y(Z), d?.(Z, z);
21079
+ const N = E0(C), B = Tc(a), z = N.slice(0, B), G = G0(z, a);
21080
+ b || y(G), d?.(G, z);
21077
21081
  };
21078
21082
  return /* @__PURE__ */ r("div", {
21079
21083
  className: "input-phone-wrapper",
@@ -21735,18 +21739,18 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21735
21739
  const l = t.variant ?? "default";
21736
21740
  return l === "custom" ? t.customColor || n2.default : l === "random" ? Uc(c) : n2[l];
21737
21741
  }, Ua = ({ className: t = "", data: c = [], emptyLabel: l, gap: a = 1, size: s = "medium", valueFormatter: o, valuePosition: i = "inside" }) => {
21738
- const n = Pc[s], d = i === "outside" ? Math.round(n * 0.18) : 0, h = n / 2, p = Math.max(h - Math.max(a, 1), 1), v = `${-d} ${-d} ${n + d * 2} ${n + d * 2}`, g = s1(() => {
21742
+ const n = Pc[s], d = i === "outside" ? Math.round(n * 0.18) : 0, h = n / 2, p = Math.max(h - Math.max(a, 1), 1), v = `${-d} ${-d} ${n + d * 2} ${n + d * 2}`, g = h1(() => {
21739
21743
  const M = c.filter((_) => Number.isFinite(_.value) && _.value > 0), k = M.reduce((_, C) => _ + C.value, 0);
21740
21744
  if (k <= 0) return [];
21741
21745
  let V = 0;
21742
21746
  return M.map((_, C) => {
21743
- const N = _.value / k * 360, B = V, z = C === M.length - 1 ? 360 : V + N, Z = B + (z - B) / 2;
21747
+ const N = _.value / k * 360, B = V, z = C === M.length - 1 ? 360 : V + N, G = B + (z - B) / 2;
21744
21748
  return V = z, {
21745
21749
  color: Fc(_, C),
21746
21750
  endAngle: z,
21747
21751
  index: C,
21748
21752
  label: o ? o(_.value, _, C) : _.value,
21749
- midAngle: Z,
21753
+ midAngle: G,
21750
21754
  path: Wc(h, p, B, z),
21751
21755
  startAngle: B,
21752
21756
  value: _.value
@@ -21845,7 +21849,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21845
21849
  `progress-bar-${d}`,
21846
21850
  h && "progress-bar-striped",
21847
21851
  t && h && "progress-bar-animated"
21848
- ].filter(Boolean).join(" "), w = `progress-bar__label progress-bar__label--${d} ${s ? `progress-bar__label-${s}` : ""}`, m = v > 100 ? 100 : v < 0 ? 0 : v, u = s1(() => {
21852
+ ].filter(Boolean).join(" "), w = `progress-bar__label progress-bar__label--${d} ${s ? `progress-bar__label-${s}` : ""}`, m = v > 100 ? 100 : v < 0 ? 0 : v, u = h1(() => {
21849
21853
  const M = [];
21850
21854
  return n && M.push(`${k0(v)}%`), l && M.push(l), (a ? M : M.reverse()).join(" - ");
21851
21855
  }, [
@@ -21883,7 +21887,7 @@ var Ta = _1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
21883
21887
  medium: 96,
21884
21888
  large: 128
21885
21889
  }, qc = (t) => typeof t == "number" ? t : A2[t], Ya = ({ children: t, className: c = "", label: l, labelPosition: a = "below", rounded: s = !0, showPercentage: o = !0, size: i = "medium", state: n = "default", thickness: d, value: h }) => {
21886
- const p = Math.min(Math.max(Number.isFinite(h) ? h : 0, 0), 100), v = qc(i), g = d ?? (v <= A2.small ? 6 : 8), w = Math.max((v - g) / 2, 1), m = 2 * Math.PI * w, u = m - p / 100 * m, f = s1(() => `${k0(p)}%`, [p]), b = t || (o ? f : a === "inside" ? l : null), x = a === "inside" && l && o && !t;
21890
+ const p = Math.min(Math.max(Number.isFinite(h) ? h : 0, 0), 100), v = qc(i), g = d ?? (v <= A2.small ? 6 : 8), w = Math.max((v - g) / 2, 1), m = 2 * Math.PI * w, u = m - p / 100 * m, f = h1(() => `${k0(p)}%`, [p]), b = t || (o ? f : a === "inside" ? l : null), x = a === "inside" && l && o && !t;
21887
21891
  return /* @__PURE__ */ r("div", {
21888
21892
  className: `progress-ring progress-ring--${n} ${c}`,
21889
21893
  style: { "--progress-ring-size": `${v}px` },
@@ -22617,7 +22621,7 @@ ${s.textContent ?? ""}
22617
22621
  /* @__PURE__ */ r("div", {
22618
22622
  className: "rte-table-toolbar-group",
22619
22623
  children: [
22620
- /* @__PURE__ */ e(d1, {
22624
+ /* @__PURE__ */ e(s1, {
22621
22625
  title: "Add row above",
22622
22626
  children: /* @__PURE__ */ e("button", {
22623
22627
  type: "button",
@@ -22626,7 +22630,7 @@ ${s.textContent ?? ""}
22626
22630
  children: "↑ Row"
22627
22631
  })
22628
22632
  }),
22629
- /* @__PURE__ */ e(d1, {
22633
+ /* @__PURE__ */ e(s1, {
22630
22634
  title: "Add row below",
22631
22635
  children: /* @__PURE__ */ e("button", {
22632
22636
  type: "button",
@@ -22635,7 +22639,7 @@ ${s.textContent ?? ""}
22635
22639
  children: "↓ Row"
22636
22640
  })
22637
22641
  }),
22638
- /* @__PURE__ */ e(d1, {
22642
+ /* @__PURE__ */ e(s1, {
22639
22643
  title: "Remove last row",
22640
22644
  children: /* @__PURE__ */ e("button", {
22641
22645
  type: "button",
@@ -22650,7 +22654,7 @@ ${s.textContent ?? ""}
22650
22654
  /* @__PURE__ */ r("div", {
22651
22655
  className: "rte-table-toolbar-group",
22652
22656
  children: [
22653
- /* @__PURE__ */ e(d1, {
22657
+ /* @__PURE__ */ e(s1, {
22654
22658
  title: "Add column left",
22655
22659
  children: /* @__PURE__ */ e("button", {
22656
22660
  type: "button",
@@ -22659,7 +22663,7 @@ ${s.textContent ?? ""}
22659
22663
  children: "← Col"
22660
22664
  })
22661
22665
  }),
22662
- /* @__PURE__ */ e(d1, {
22666
+ /* @__PURE__ */ e(s1, {
22663
22667
  title: "Add column right",
22664
22668
  children: /* @__PURE__ */ e("button", {
22665
22669
  type: "button",
@@ -22668,7 +22672,7 @@ ${s.textContent ?? ""}
22668
22672
  children: "→ Col"
22669
22673
  })
22670
22674
  }),
22671
- /* @__PURE__ */ e(d1, {
22675
+ /* @__PURE__ */ e(s1, {
22672
22676
  title: "Remove last column",
22673
22677
  children: /* @__PURE__ */ e("button", {
22674
22678
  type: "button",
@@ -22682,7 +22686,7 @@ ${s.textContent ?? ""}
22682
22686
  /* @__PURE__ */ e("div", { className: "rte-table-toolbar-divider" }),
22683
22687
  /* @__PURE__ */ e("div", {
22684
22688
  className: "rte-table-toolbar-group",
22685
- children: /* @__PURE__ */ e(d1, {
22689
+ children: /* @__PURE__ */ e(s1, {
22686
22690
  title: "Delete table",
22687
22691
  children: /* @__PURE__ */ e("button", {
22688
22692
  type: "button",
@@ -22698,7 +22702,7 @@ ${s.textContent ?? ""}
22698
22702
  children: [
22699
22703
  /* @__PURE__ */ e("div", {
22700
22704
  className: "rte-toolbar-group",
22701
- children: Jc.map((h) => /* @__PURE__ */ e(d1, {
22705
+ children: Jc.map((h) => /* @__PURE__ */ e(s1, {
22702
22706
  title: h.title,
22703
22707
  children: /* @__PURE__ */ e("button", {
22704
22708
  type: "button",
@@ -22713,7 +22717,7 @@ ${s.textContent ?? ""}
22713
22717
  /* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
22714
22718
  /* @__PURE__ */ r("div", {
22715
22719
  className: "rte-toolbar-group",
22716
- children: [Qc.map((h) => /* @__PURE__ */ e(d1, {
22720
+ children: [Qc.map((h) => /* @__PURE__ */ e(s1, {
22717
22721
  title: h.title,
22718
22722
  children: /* @__PURE__ */ e("button", {
22719
22723
  type: "button",
@@ -22723,7 +22727,7 @@ ${s.textContent ?? ""}
22723
22727
  },
22724
22728
  children: h.label
22725
22729
  })
22726
- }, h.command)), /* @__PURE__ */ e(d1, {
22730
+ }, h.command)), /* @__PURE__ */ e(s1, {
22727
22731
  title: "Task List",
22728
22732
  children: /* @__PURE__ */ r("button", {
22729
22733
  type: "button",
@@ -22738,7 +22742,7 @@ ${s.textContent ?? ""}
22738
22742
  /* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
22739
22743
  /* @__PURE__ */ e("div", {
22740
22744
  className: "rte-toolbar-group",
22741
- children: el.map((h) => /* @__PURE__ */ e(d1, {
22745
+ children: el.map((h) => /* @__PURE__ */ e(s1, {
22742
22746
  title: `Heading ${h}`,
22743
22747
  children: /* @__PURE__ */ r("button", {
22744
22748
  type: "button",
@@ -22753,7 +22757,7 @@ ${s.textContent ?? ""}
22753
22757
  /* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
22754
22758
  /* @__PURE__ */ e("div", {
22755
22759
  className: "rte-toolbar-group",
22756
- children: /* @__PURE__ */ e(d1, {
22760
+ children: /* @__PURE__ */ e(s1, {
22757
22761
  title: "Insert Link",
22758
22762
  children: /* @__PURE__ */ r("button", {
22759
22763
  type: "button",
@@ -22767,7 +22771,7 @@ ${s.textContent ?? ""}
22767
22771
  }),
22768
22772
  t && /* @__PURE__ */ r(r1, { children: [/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }), /* @__PURE__ */ r("div", {
22769
22773
  className: "rte-toolbar-group",
22770
- children: [tl.map((h) => /* @__PURE__ */ e(d1, {
22774
+ children: [tl.map((h) => /* @__PURE__ */ e(s1, {
22771
22775
  title: h.title,
22772
22776
  children: /* @__PURE__ */ e("button", {
22773
22777
  type: "button",
@@ -22777,7 +22781,7 @@ ${s.textContent ?? ""}
22777
22781
  },
22778
22782
  children: h.label
22779
22783
  })
22780
- }, h.command + (h.value ?? ""))), /* @__PURE__ */ e(d1, {
22784
+ }, h.command + (h.value ?? ""))), /* @__PURE__ */ e(s1, {
22781
22785
  title: "Insert Table",
22782
22786
  children: /* @__PURE__ */ e("button", {
22783
22787
  type: "button",
@@ -22810,7 +22814,7 @@ ${s.textContent ?? ""}
22810
22814
  editorRef: p,
22811
22815
  snapshotForUndo: f,
22812
22816
  emitChange: u
22813
- }), { activeTable: Z, tableToolbarPos: R, showTableToolbar: $, hideTableToolbar: q, addRowAbove: p1, addRowBelow: A, removeRow: c1, addColumnLeft: t1, addColumnRight: T, removeColumn: G, deleteTable: h1 } = il({
22817
+ }), { activeTable: G, tableToolbarPos: R, showTableToolbar: $, hideTableToolbar: q, addRowAbove: p1, addRowBelow: A, removeRow: c1, addColumnLeft: t1, addColumnRight: T, removeColumn: Z, deleteTable: d1 } = il({
22814
22818
  editorRef: p,
22815
22819
  snapshotForUndo: f,
22816
22820
  emitChange: u
@@ -22866,7 +22870,7 @@ ${s.textContent ?? ""}
22866
22870
  x1.className = "rte-task-list", x1.appendChild(D), S.deleteContents(), S.insertNode(x1);
22867
22871
  const f1 = document.createRange();
22868
22872
  f1.setStart(a1, 1), f1.collapse(!0), K.removeAllRanges(), K.addRange(f1), u();
22869
- }, [f, u]), C1 = E(() => {
22873
+ }, [f, u]), y1 = E(() => {
22870
22874
  U("insertHTML", rl);
22871
22875
  }, [U]), u1 = E((X) => {
22872
22876
  const K = X.target, S = K.closest("a");
@@ -22940,7 +22944,7 @@ ${s.textContent ?? ""}
22940
22944
  applyHeading: i1,
22941
22945
  insertTaskList: n1,
22942
22946
  openLinkPrompt: () => N(),
22943
- insertTable: C1,
22947
+ insertTable: y1,
22944
22948
  undo: b,
22945
22949
  redo: x
22946
22950
  }),
@@ -22953,7 +22957,7 @@ ${s.textContent ?? ""}
22953
22957
  confirmLink: B,
22954
22958
  cancelLink: z
22955
22959
  }),
22956
- Z && R && /* @__PURE__ */ e(ol, {
22960
+ G && R && /* @__PURE__ */ e(ol, {
22957
22961
  pos: R,
22958
22962
  toolbarRef: g,
22959
22963
  addRowAbove: p1,
@@ -22961,8 +22965,8 @@ ${s.textContent ?? ""}
22961
22965
  removeRow: c1,
22962
22966
  addColumnLeft: t1,
22963
22967
  addColumnRight: T,
22964
- removeColumn: G,
22965
- deleteTable: h1
22968
+ removeColumn: Z,
22969
+ deleteTable: d1
22966
22970
  }),
22967
22971
  /* @__PURE__ */ e("div", {
22968
22972
  ref: p,
@@ -23019,7 +23023,7 @@ ${s.textContent ?? ""}
23019
23023
  if (!t) throw new Error("useSidebar must be used within a SidebarProvider");
23020
23024
  return t;
23021
23025
  }, li = ({ children: t }) => {
23022
- const { isMobile: c } = a0(), [l, a] = L(!1), s = E(() => a((d) => !d), []), o = E(() => a(!0), []), i = E(() => a(!1), []), n = s1(() => ({
23026
+ const { isMobile: c } = a0(), [l, a] = L(!1), s = E(() => a((d) => !d), []), o = E(() => a(!0), []), i = E(() => a(!1), []), n = h1(() => ({
23023
23027
  isMobile: c,
23024
23028
  isOpen: l,
23025
23029
  toggle: s,
@@ -23322,7 +23326,7 @@ var ni = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
23322
23326
  const a = `${k0(c)}%`;
23323
23327
  return t.label && l ? `${t.label} - ${a}` : t.label ? t.label : a;
23324
23328
  }, hi = ({ animated: t = !1, height: c, normalize: l = !0, orientation: a = "horizontal", segments: s, showLabels: o = !0, showPercentage: i = !0, thin: n = !1, width: d }) => {
23325
- const h = s1(() => {
23329
+ const h = h1(() => {
23326
23330
  if (s.length === 0) return [];
23327
23331
  if (!l) return s.map((w) => Math.max(0, w.value));
23328
23332
  const g = s.reduce((w, m) => w + Math.max(0, m.value), 0);
@@ -23401,27 +23405,27 @@ function s2({ state: t }) {
23401
23405
  });
23402
23406
  }
23403
23407
  var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s = !1, onRowClick: o }) => {
23404
- const [i, n] = L(!1), [d, h] = L(!1), [p, v] = L(""), [g, w] = L(null), [m, u] = L("asc"), f = s1(() => p.trim() ? t.filter((C) => C.name.toLowerCase().includes(p.toLowerCase())) : t, [t, p]), b = s1(() => {
23408
+ const [i, n] = L(!1), [d, h] = L(!1), [p, v] = L(""), [g, w] = L(null), [m, u] = L("asc"), f = h1(() => p.trim() ? t.filter((C) => C.name.toLowerCase().includes(p.toLowerCase())) : t, [t, p]), b = h1(() => {
23405
23409
  if (!g) return f;
23406
23410
  const C = [...f].sort((N, B) => {
23407
- const z = g === "name" ? N.name : N.value, Z = g === "name" ? B.name : B.value;
23408
- return typeof z == "number" && typeof Z == "number" ? z - Z : String(z).localeCompare(String(Z));
23411
+ const z = g === "name" ? N.name : N.value, G = g === "name" ? B.name : B.value;
23412
+ return typeof z == "number" && typeof G == "number" ? z - G : String(z).localeCompare(String(G));
23409
23413
  });
23410
23414
  return m === "asc" ? C : C.reverse();
23411
23415
  }, [
23412
23416
  f,
23413
23417
  g,
23414
23418
  m
23415
- ]), x = s1(() => d ? [...b] : b.slice(0, h2), [b, d]), y = b.length > h2, M = () => {
23419
+ ]), x = h1(() => d ? [...b] : b.slice(0, h2), [b, d]), y = b.length > h2, M = () => {
23416
23420
  n(!i);
23417
23421
  }, k = E(() => {
23418
23422
  h(!d);
23419
23423
  }, [d]), V = (C) => {
23420
23424
  g === C ? u((N) => N === "asc" ? "desc" : "asc") : (w(C), u("asc"));
23421
- }, _ = s1(() => /* @__PURE__ */ r("div", {
23425
+ }, _ = h1(() => /* @__PURE__ */ r("div", {
23422
23426
  className: "list-suggestions-list",
23423
23427
  children: [
23424
- /* @__PURE__ */ e(d1, {
23428
+ /* @__PURE__ */ e(s1, {
23425
23429
  title: a,
23426
23430
  children: /* @__PURE__ */ e("legend", { children: l || "Suggestions" })
23427
23431
  }),
@@ -24090,7 +24094,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24090
24094
  label: "Glow",
24091
24095
  value: "glow-effect"
24092
24096
  }
24093
- ], [f, b] = L(""), [x, y] = L(!1), [M, k] = L(!1), [V, _] = L("all"), C = O(null), N = O(!1), B = a?.trim().toLowerCase() ?? "", z = s1(() => {
24097
+ ], [f, b] = L(""), [x, y] = L(!1), [M, k] = L(!1), [V, _] = L("all"), C = O(null), N = O(!1), B = a?.trim().toLowerCase() ?? "", z = h1(() => {
24094
24098
  let A = c0;
24095
24099
  if (l && l.length > 0) {
24096
24100
  const c1 = new Set(l);
@@ -24128,7 +24132,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24128
24132
  V,
24129
24133
  d
24130
24134
  ]);
24131
- const Z = (A) => {
24135
+ const G = (A) => {
24132
24136
  p(A);
24133
24137
  }, R = (A) => {
24134
24138
  v({
@@ -24216,7 +24220,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24216
24220
  ref: d === A.value ? C : null,
24217
24221
  type: "button",
24218
24222
  className: `theme-settings__swatch ${d === A.value ? "theme-settings__swatch--active" : ""}`,
24219
- onClick: () => Z(A.value),
24223
+ onClick: () => G(A.value),
24220
24224
  children: [/* @__PURE__ */ r("div", {
24221
24225
  className: "theme-settings__preview",
24222
24226
  "data-theme": A.value,
@@ -24516,7 +24520,7 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
24516
24520
  children: n.label
24517
24521
  })]
24518
24522
  }, n.key);
24519
- return n.description ? /* @__PURE__ */ e(d1, {
24523
+ return n.description ? /* @__PURE__ */ e(s1, {
24520
24524
  title: n.description,
24521
24525
  children: d
24522
24526
  }, n.key) : d;
@@ -25401,7 +25405,7 @@ var Si = (t, c, l) => {
25401
25405
  } catch {
25402
25406
  return t.trim();
25403
25407
  }
25404
- }, Nl = "1.0.9", Zi = 213, Hl = "6d1fb76", Sl = "2026-06-25T15:56:55.898Z", Gi = "213", Bl = (t) => {
25408
+ }, Nl = "1.0.11", Zi = 217, Hl = "04b6943", Sl = "2026-06-28T14:45:22.478Z", Gi = "217", Bl = (t) => {
25405
25409
  const c = document.getElementById("mb-version-toast");
25406
25410
  if (c) {
25407
25411
  c.remove();
@@ -25425,7 +25429,7 @@ var Si = (t, c, l) => {
25425
25429
  const c = {
25426
25430
  ...t,
25427
25431
  lib: Nl,
25428
- libBuildNumber: 213,
25432
+ libBuildNumber: 217,
25429
25433
  libCommit: Hl,
25430
25434
  libBuildDate: Sl
25431
25435
  };
@@ -25617,7 +25621,7 @@ export {
25617
25621
  fi as ToggleButtons,
25618
25622
  d2 as ToggleSwitch,
25619
25623
  Ci as Toolbar,
25620
- d1 as Tooltip,
25624
+ s1 as Tooltip,
25621
25625
  yi as TourHud,
25622
25626
  bi as Tree,
25623
25627
  xi as WHtR,