@memobit/libs 1.0.9 → 1.0.10
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.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +158 -154
- package/dist/version.json +4 -4
- package/package.json +1 -1
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
|
|
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 =
|
|
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, Z = (S) => {
|
|
10867
10867
|
if (!t) return !1;
|
|
10868
10868
|
if (l === "single" && t instanceof Date) return j1(S, t);
|
|
10869
10869
|
if (l === "range") {
|
|
@@ -10909,7 +10909,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10909
10909
|
g && x("months");
|
|
10910
10910
|
}, G = () => {
|
|
10911
10911
|
g && (M(Math.floor(_.getFullYear() / E1) * E1), x("years"));
|
|
10912
|
-
},
|
|
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) => {
|
|
@@ -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: () =>
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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,6 +12348,82 @@ 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(), Z = 8;
|
|
12358
|
+
let R = 0, $ = 0;
|
|
12359
|
+
switch (c) {
|
|
12360
|
+
case "top":
|
|
12361
|
+
R = B.top - z.height - Z, $ = B.left + B.width / 2 - z.width / 2;
|
|
12362
|
+
break;
|
|
12363
|
+
case "bottom":
|
|
12364
|
+
R = B.bottom + Z, $ = 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 - Z;
|
|
12368
|
+
break;
|
|
12369
|
+
case "right":
|
|
12370
|
+
R = B.top + B.height / 2 - z.height / 2, $ = B.right + Z;
|
|
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",
|
|
@@ -12370,7 +12446,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12370
12446
|
}, [v, R]);
|
|
12371
12447
|
const $ = E(() => {
|
|
12372
12448
|
if (v || !R || !z.current || !Z.current) return;
|
|
12373
|
-
const T = z.current.getBoundingClientRect(), G = Z.current.getBoundingClientRect(),
|
|
12449
|
+
const T = z.current.getBoundingClientRect(), G = Z.current.getBoundingClientRect(), d1 = 16, v1 = 8, U = window.innerHeight - T.bottom - d1, i1 = T.top - d1, n1 = U < G.height && i1 > G.height ? T.top - G.height - v1 : T.bottom + v1, C1 = Math.max(d1, Math.min(n1, window.innerHeight - G.height - d1)), u1 = Math.max(d1, Math.min(T.left, window.innerWidth - G.width - d1));
|
|
12374
12450
|
B({
|
|
12375
12451
|
position: "fixed",
|
|
12376
12452
|
top: `${C1}px`,
|
|
@@ -12407,8 +12483,8 @@ 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),
|
|
12411
|
-
G.setHours(
|
|
12486
|
+
const G = new Date(T), d1 = s === "12h" ? k ? u % 12 + 12 : u % 12 : u;
|
|
12487
|
+
G.setHours(d1, b, y), c?.(G), p && !v && m(!1);
|
|
12412
12488
|
}, A = () => {
|
|
12413
12489
|
if (!t || !(t instanceof Date)) return;
|
|
12414
12490
|
const T = new Date(t), G = s === "12h" ? k ? u % 12 + 12 : u % 12 : u;
|
|
@@ -12590,7 +12666,7 @@ var Ul = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
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),
|
|
12669
|
+
}), [A, c1] = L(!1), t1 = O(null), T = O([]), G = O(null), d1 = O(null), v1 = g0(), U = i ?? `dropdown-${v1}`;
|
|
12594
12670
|
F(() => {
|
|
12595
12671
|
if (!m || !_) B(g);
|
|
12596
12672
|
else {
|
|
@@ -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:
|
|
12851
|
+
ref: d1,
|
|
12776
12852
|
className: `dropdown-menu ${x ? "dropdown-menu--portal" : ""} ${A ? "dropdown-menu--upward" : ""}`,
|
|
12777
12853
|
style: x ? {
|
|
12778
12854
|
position: "absolute",
|
|
@@ -13590,83 +13666,7 @@ function z2(t, c, l = 0) {
|
|
|
13590
13666
|
})]
|
|
13591
13667
|
}, t.id);
|
|
13592
13668
|
}
|
|
13593
|
-
var
|
|
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(
|
|
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);
|
|
@@ -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 = (
|
|
13895
|
+
const [c, l] = L(null), [a, s] = L(!1), o = (d) => {
|
|
13896
13896
|
if (t.confirm) {
|
|
13897
|
-
l(
|
|
13897
|
+
l(d.currentTarget), s(!0);
|
|
13898
13898
|
return;
|
|
13899
13899
|
}
|
|
13900
|
-
t.onClick?.(
|
|
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
|
-
})
|
|
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(
|
|
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(
|
|
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 =
|
|
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 =
|
|
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]);
|
|
@@ -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(
|
|
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(
|
|
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",
|
|
@@ -14418,19 +14422,19 @@ function pc({ state: t }) {
|
|
|
14418
14422
|
});
|
|
14419
14423
|
}
|
|
14420
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: Z, onPageChange: R, onPageSizeChange: $, currentPage: q, totalItems: p1, group: A, showResultsCount: c1 = !0, totalCount: t1, itemNoun: T }) {
|
|
14421
|
-
const { isMobile: G } = a0(), [
|
|
14425
|
+
const { isMobile: G } = a0(), [d1, 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) => {
|
|
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 :
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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,7 +14490,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14486
14490
|
A,
|
|
14487
14491
|
_0,
|
|
14488
14492
|
D1
|
|
14489
|
-
]), F0 =
|
|
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) => {
|
|
@@ -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(
|
|
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",
|
|
@@ -14695,7 +14699,7 @@ function _a({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14695
14699
|
}),
|
|
14696
14700
|
i0.map((y1, H0) => /* @__PURE__ */ r("td", {
|
|
14697
14701
|
style: D[y1.key] ? { width: D[y1.key] } : void 0,
|
|
14698
|
-
children: [H0 === 0 && L1 && /* @__PURE__ */ e(
|
|
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",
|
|
@@ -14820,7 +14824,7 @@ var O1 = (t) => {
|
|
|
14820
14824
|
}, [C.start]), F(() => {
|
|
14821
14825
|
k(C.end ?? "");
|
|
14822
14826
|
}, [C.end]);
|
|
14823
|
-
const t1 =
|
|
14827
|
+
const t1 = h1(() => d0(p, 1), [p]), T = o || m, G = !o && m, d1 = E(() => {
|
|
14824
14828
|
if (!G || !V.current || !_.current) return;
|
|
14825
14829
|
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));
|
|
14826
14830
|
b({
|
|
@@ -14840,11 +14844,11 @@ var O1 = (t) => {
|
|
|
14840
14844
|
});
|
|
14841
14845
|
return;
|
|
14842
14846
|
}
|
|
14843
|
-
const U = requestAnimationFrame(() => requestAnimationFrame(
|
|
14844
|
-
return window.addEventListener("resize",
|
|
14845
|
-
cancelAnimationFrame(U), window.removeEventListener("resize",
|
|
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,
|
|
14851
|
+
}, [G, d1]), F(() => {
|
|
14848
14852
|
if (!G) return;
|
|
14849
14853
|
const U = (n1) => {
|
|
14850
14854
|
const C1 = n1.target;
|
|
@@ -15110,7 +15114,7 @@ function fc(t) {
|
|
|
15110
15114
|
}
|
|
15111
15115
|
return c;
|
|
15112
15116
|
}
|
|
15113
|
-
var Cc = ({ text: t }) => /* @__PURE__ */ e(r1, { children:
|
|
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 =
|
|
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]);
|
|
@@ -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(
|
|
15278
|
+
f && /* @__PURE__ */ e(s1, {
|
|
15275
15279
|
title: b,
|
|
15276
15280
|
position: "bottom",
|
|
15277
15281
|
children: /* @__PURE__ */ e(W, {
|
|
@@ -15301,7 +15305,7 @@ 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(
|
|
15308
|
+
return R ? /* @__PURE__ */ e(s1, {
|
|
15305
15309
|
title: R,
|
|
15306
15310
|
position: "bottom",
|
|
15307
15311
|
children: Z
|
|
@@ -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 =
|
|
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(
|
|
20535
|
+
children: /* @__PURE__ */ e(s1, {
|
|
20532
20536
|
title: t[0].label,
|
|
20533
20537
|
position: "left",
|
|
20534
20538
|
children: /* @__PURE__ */ e("button", {
|
|
@@ -20932,13 +20936,13 @@ var $c = _1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20932
20936
|
}
|
|
20933
20937
|
if (T.key.length !== 1 || T.ctrlKey || T.metaKey || (T.preventDefault(), B.length >= _)) return;
|
|
20934
20938
|
const G = T.key;
|
|
20935
|
-
let
|
|
20939
|
+
let d1 = 0;
|
|
20936
20940
|
for (const i1 of V) if (i1.type === "token") {
|
|
20937
|
-
if (
|
|
20941
|
+
if (d1 === B.length) {
|
|
20938
20942
|
if (!R2[i1.key].test(G)) return;
|
|
20939
20943
|
break;
|
|
20940
20944
|
}
|
|
20941
|
-
|
|
20945
|
+
d1++;
|
|
20942
20946
|
}
|
|
20943
20947
|
const { masked: v1, rawAccepted: U } = Z0(B + G, V, w);
|
|
20944
20948
|
z(U), l?.(U, v1), U.length === _ && a?.(U, v1);
|
|
@@ -21735,7 +21739,7 @@ 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 =
|
|
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;
|
|
@@ -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 =
|
|
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 =
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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:
|
|
22817
|
+
}), { activeTable: Z, tableToolbarPos: R, showTableToolbar: $, hideTableToolbar: q, addRowAbove: p1, addRowBelow: A, removeRow: c1, addColumnLeft: t1, addColumnRight: T, removeColumn: G, deleteTable: d1 } = il({
|
|
22814
22818
|
editorRef: p,
|
|
22815
22819
|
snapshotForUndo: f,
|
|
22816
22820
|
emitChange: u
|
|
@@ -22962,7 +22966,7 @@ ${s.textContent ?? ""}
|
|
|
22962
22966
|
addColumnLeft: t1,
|
|
22963
22967
|
addColumnRight: T,
|
|
22964
22968
|
removeColumn: G,
|
|
22965
|
-
deleteTable:
|
|
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 =
|
|
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 =
|
|
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,7 +23405,7 @@ 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 =
|
|
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
23411
|
const z = g === "name" ? N.name : N.value, Z = g === "name" ? B.name : B.value;
|
|
@@ -23412,16 +23416,16 @@ var h2 = 10, pi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23412
23416
|
f,
|
|
23413
23417
|
g,
|
|
23414
23418
|
m
|
|
23415
|
-
]), x =
|
|
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
|
-
}, _ =
|
|
23425
|
+
}, _ = h1(() => /* @__PURE__ */ r("div", {
|
|
23422
23426
|
className: "list-suggestions-list",
|
|
23423
23427
|
children: [
|
|
23424
|
-
/* @__PURE__ */ e(
|
|
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 =
|
|
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);
|
|
@@ -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(
|
|
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.
|
|
25408
|
+
}, Nl = "1.0.10", Zi = 215, Hl = "efac3bb", Sl = "2026-06-28T11:04:43.066Z", Gi = "215", 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:
|
|
25432
|
+
libBuildNumber: 215,
|
|
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
|
-
|
|
25624
|
+
s1 as Tooltip,
|
|
25621
25625
|
yi as TourHud,
|
|
25622
25626
|
bi as Tree,
|
|
25623
25627
|
xi as WHtR,
|