@memobit/libs 1.0.48 → 1.0.50
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 +514 -503
- package/dist/version.json +4 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import g1, { Component as k3, Fragment as _3, createContext as _0, forwardRef as z1, useCallback as Z, useContext as L0, useEffect as F, useId as z0, useImperativeHandle as B2, useLayoutEffect as m2, useMemo as u1, useRef as
|
|
1
|
+
import g1, { Component as k3, Fragment as _3, createContext as _0, forwardRef as z1, useCallback as Z, useContext as L0, useEffect as F, useId as z0, useImperativeHandle as B2, useLayoutEffect as m2, useMemo as u1, useRef as X, useState as z } from "react";
|
|
2
2
|
import { Fragment as n1, jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
3
|
import { createPortal as K1 } from "react-dom";
|
|
4
4
|
var L3 = /* @__PURE__ */ c("svg", {
|
|
@@ -9995,7 +9995,7 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
9995
9995
|
t
|
|
9996
9996
|
].filter(Boolean).join(" "),
|
|
9997
9997
|
children: fr[a]
|
|
9998
|
-
}),
|
|
9998
|
+
}), xa = ({ items: t, allowMultiple: r = !1, defaultExpanded: l = [], onChange: a, className: h = "" }) => {
|
|
9999
9999
|
const [d, o] = z(l), m = (n) => {
|
|
10000
10000
|
if (t.find((s) => s.id === n)?.disabled) return;
|
|
10001
10001
|
let i;
|
|
@@ -10017,7 +10017,7 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
10017
10017
|
})
|
|
10018
10018
|
});
|
|
10019
10019
|
}, Cr = ({ id: t, title: r, icon: l, content: a, isExpanded: h, disabled: d = !1, onToggle: o }) => {
|
|
10020
|
-
const m =
|
|
10020
|
+
const m = X(null), n = X(!0);
|
|
10021
10021
|
return F(() => {
|
|
10022
10022
|
const s = m.current;
|
|
10023
10023
|
if (s) {
|
|
@@ -10066,7 +10066,7 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
10066
10066
|
})]
|
|
10067
10067
|
});
|
|
10068
10068
|
}, $2 = (t) => {
|
|
10069
|
-
const r =
|
|
10069
|
+
const r = X(null);
|
|
10070
10070
|
F(() => {
|
|
10071
10071
|
const l = () => {
|
|
10072
10072
|
if (!r.current) return;
|
|
@@ -10122,11 +10122,11 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
10122
10122
|
] })
|
|
10123
10123
|
}));
|
|
10124
10124
|
T.displayName = "Button";
|
|
10125
|
-
var
|
|
10125
|
+
var K = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled: h = !1, className: d = "", maxWidth: o, maxHeight: m }) => {
|
|
10126
10126
|
const [n, i] = z(!1), [s, p] = z({
|
|
10127
10127
|
top: 0,
|
|
10128
10128
|
left: 0
|
|
10129
|
-
}), u =
|
|
10129
|
+
}), u = X(null), g = X(null), v = X(null), w = X(null), f = X(!1), y = m !== void 0, b = y ? 150 : 0, C = () => {
|
|
10130
10130
|
if (!v.current || !w.current) return;
|
|
10131
10131
|
const V = v.current.firstElementChild, S = V && V.getBoundingClientRect().width > 0 ? V.getBoundingClientRect() : v.current.getBoundingClientRect(), _ = w.current.getBoundingClientRect(), R = 8;
|
|
10132
10132
|
let B = 0, E = 0;
|
|
@@ -10201,7 +10201,7 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
|
|
|
10201
10201
|
}, W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h, onOverlayClick: d, primary: o, secondary: m, size: n = "auto", tertiary: i, title: s, titleIcon: p, usePortal: u = !1 }) => {
|
|
10202
10202
|
const g = T2("Modal");
|
|
10203
10203
|
$2(l);
|
|
10204
|
-
const v =
|
|
10204
|
+
const v = X(null), w = X(null);
|
|
10205
10205
|
if (F(() => {
|
|
10206
10206
|
if (!l) return;
|
|
10207
10207
|
const b = (C) => {
|
|
@@ -10226,7 +10226,7 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
|
|
|
10226
10226
|
p ? /* @__PURE__ */ e(P, { name: p }) : null,
|
|
10227
10227
|
" ",
|
|
10228
10228
|
s
|
|
10229
|
-
] }), /* @__PURE__ */ e(
|
|
10229
|
+
] }), /* @__PURE__ */ e(K, {
|
|
10230
10230
|
title: "Close modal",
|
|
10231
10231
|
children: /* @__PURE__ */ e(T, {
|
|
10232
10232
|
className: "modal__close",
|
|
@@ -10271,7 +10271,7 @@ var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled:
|
|
|
10271
10271
|
})
|
|
10272
10272
|
});
|
|
10273
10273
|
return u ? K1(y, document.body) : y;
|
|
10274
|
-
},
|
|
10274
|
+
}, ka = ({ isOpen: t = !1, message: r, primary: l, title: a }) => /* @__PURE__ */ e(W1, {
|
|
10275
10275
|
isOpen: t,
|
|
10276
10276
|
title: a,
|
|
10277
10277
|
onClose: l?.onClick ? () => l.onClick() : void 0,
|
|
@@ -10404,7 +10404,7 @@ function br(t) {
|
|
|
10404
10404
|
for (const l of t) r += l.charCodeAt(0);
|
|
10405
10405
|
return r % G2.length;
|
|
10406
10406
|
}
|
|
10407
|
-
var
|
|
10407
|
+
var _a = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = "" }) => {
|
|
10408
10408
|
const h = yr(t), { background: d, color: o } = G2[br(h)];
|
|
10409
10409
|
return /* @__PURE__ */ e("div", {
|
|
10410
10410
|
className: `avatar-initials avatar-initials--${r} avatar-initials--${l} ${a}`,
|
|
@@ -10418,7 +10418,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10418
10418
|
children: h
|
|
10419
10419
|
})
|
|
10420
10420
|
});
|
|
10421
|
-
},
|
|
10421
|
+
}, La = ({ variant: t = "default", children: r, className: l = "", size: a = "medium", customColor: h, isActive: d, onClick: o, onClear: m }) => {
|
|
10422
10422
|
const n = d !== void 0 ? d ? "badge--active" : "badge--inactive" : "", i = o ? "badge--clickable" : "", s = h ? "badge-variant--custom" : `badge-variant--${t}`, p = h ? { "--badge-custom-color": h } : void 0;
|
|
10423
10423
|
return /* @__PURE__ */ c("span", {
|
|
10424
10424
|
className: `badge ${s} ${l} badge-size--${a} ${n} ${i}`,
|
|
@@ -10428,7 +10428,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10428
10428
|
onKeyDown: o ? (u) => {
|
|
10429
10429
|
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), o(u));
|
|
10430
10430
|
} : void 0,
|
|
10431
|
-
children: [r, m && /* @__PURE__ */ e(
|
|
10431
|
+
children: [r, m && /* @__PURE__ */ e(K, {
|
|
10432
10432
|
title: "Remove",
|
|
10433
10433
|
children: /* @__PURE__ */ e("button", {
|
|
10434
10434
|
className: "badge__clear",
|
|
@@ -10440,7 +10440,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10440
10440
|
})
|
|
10441
10441
|
})]
|
|
10442
10442
|
});
|
|
10443
|
-
},
|
|
10443
|
+
}, za = ({ action: t, secondaryAction: r, className: l = "", description: a, dismissLabel: h = "Dismiss", onDismiss: d, showDismiss: o = !0, title: m, variant: n = "default" }) => {
|
|
10444
10444
|
const [i, s] = z(!1), p = t?.variant || (n === "default" ? "default" : n);
|
|
10445
10445
|
if (i) return null;
|
|
10446
10446
|
const u = () => {
|
|
@@ -10473,7 +10473,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10473
10473
|
children: r.text
|
|
10474
10474
|
})]
|
|
10475
10475
|
})]
|
|
10476
|
-
}), o && /* @__PURE__ */ e(
|
|
10476
|
+
}), o && /* @__PURE__ */ e(K, {
|
|
10477
10477
|
title: h,
|
|
10478
10478
|
children: /* @__PURE__ */ e("button", {
|
|
10479
10479
|
className: "banner__dismiss",
|
|
@@ -10741,7 +10741,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10741
10741
|
}, zr = (t, r) => {
|
|
10742
10742
|
for (const l of r) if (t <= l.max) return l.color;
|
|
10743
10743
|
return r[r.length - 1].color;
|
|
10744
|
-
}, Vr = (t, r, l) => r === 0 ? `<${t.max}` : r === l - 1 ? `>${t.min}` : `${t.min}–${t.max}`,
|
|
10744
|
+
}, Vr = (t, r, l) => r === 0 ? `<${t.max}` : r === l - 1 ? `>${t.min}` : `${t.min}–${t.max}`, Va = ({ weight: t, height: r, age: l, sex: a, isSimplified: h = !1, showLabels: d = !0, showIndicator: o = !0 }) => {
|
|
10745
10745
|
const m = _r(t, r), n = l !== void 0 && a !== void 0 && l >= 2 && l <= 17 ? kr(...Mr[a][l]) : xr, i = Lr(m, n), s = zr(m, n);
|
|
10746
10746
|
return /* @__PURE__ */ c("div", {
|
|
10747
10747
|
className: `horizontal-bar-container ${h ? "horizontal-bar-container--is-simplified" : ""}`,
|
|
@@ -10785,7 +10785,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10785
10785
|
})
|
|
10786
10786
|
]
|
|
10787
10787
|
});
|
|
10788
|
-
},
|
|
10788
|
+
}, Na = ({ items: t, separator: r = "/", className: l = "" }) => {
|
|
10789
10789
|
const a = (h, d) => {
|
|
10790
10790
|
h.onClick && (d.preventDefault(), h.onClick());
|
|
10791
10791
|
};
|
|
@@ -10813,7 +10813,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10813
10813
|
})
|
|
10814
10814
|
})
|
|
10815
10815
|
});
|
|
10816
|
-
}, Nr = (t) => t.label ? `${t.label} ${t.done}/${t.total}` : `Running ${t.done}/${t.total}`,
|
|
10816
|
+
}, Nr = (t) => t.label ? `${t.label} ${t.done}/${t.total}` : `Running ${t.done}/${t.total}`, Ha = ({ selectionCount: t, visible: r, label: l, progress: a, actions: h, onClear: d, clearLabel: o = "Clear", position: m = "bottom", className: n }) => r ?? t > 0 ? /* @__PURE__ */ c("div", {
|
|
10817
10817
|
className: [
|
|
10818
10818
|
"memobit-bulk-action-bar",
|
|
10819
10819
|
`memobit-bulk-action-bar--${m}`,
|
|
@@ -10843,11 +10843,11 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10843
10843
|
children: o
|
|
10844
10844
|
})]
|
|
10845
10845
|
})]
|
|
10846
|
-
}) : null,
|
|
10846
|
+
}) : null, Sa = (t) => {
|
|
10847
10847
|
if (t < 60) return `${t} min`;
|
|
10848
10848
|
const r = Math.floor(t / 60), l = t % 60;
|
|
10849
10849
|
return l === 0 ? `${r}h` : `${r}h ${l}min`;
|
|
10850
|
-
},
|
|
10850
|
+
}, Ra = (t) => {
|
|
10851
10851
|
if (t == null || isNaN(t)) return "0:00";
|
|
10852
10852
|
const r = Math.floor(t), l = Math.floor(r / 3600), a = Math.floor(r % 3600 / 60), h = r % 60, d = a.toString().padStart(2, "0"), o = h.toString().padStart(2, "0");
|
|
10853
10853
|
return l === 0 ? `${a}:${o}` : `${l}:${d}:${o}`;
|
|
@@ -10867,25 +10867,25 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10867
10867
|
], X1 = (t, r) => {
|
|
10868
10868
|
const l = t.getFullYear(), a = t.getMonth(), h = String(a + 1).padStart(2, "0"), d = Hr[a], o = String(t.getDate()).padStart(2, "0"), m = String(t.getHours()).padStart(2, "0"), n = String(t.getMinutes()).padStart(2, "0"), i = String(t.getSeconds()).padStart(2, "0");
|
|
10869
10869
|
return r.replace("YYYY", String(l)).replace("MMM", d).replace("MM", h).replace("DD", o).replace("HH", m).replace("mm", n).replace("ss", i);
|
|
10870
|
-
},
|
|
10870
|
+
}, Ba = (t) => {
|
|
10871
10871
|
const [r, l, a] = t.split("-").map(Number);
|
|
10872
10872
|
return new Date(r, l - 1, a).toLocaleDateString("en-US");
|
|
10873
|
-
},
|
|
10873
|
+
}, Aa = () => {
|
|
10874
10874
|
const t = /* @__PURE__ */ new Date();
|
|
10875
10875
|
return (/* @__PURE__ */ new Date(t.getTime() - t.getTimezoneOffset() * 6e4)).toISOString().slice(0, 10);
|
|
10876
|
-
}, Sr = "DD MMM YYYY", Rr = "DD MMM YYYY HH:mm",
|
|
10876
|
+
}, Sr = "DD MMM YYYY", Rr = "DD MMM YYYY HH:mm", $a = (t) => {
|
|
10877
10877
|
const [r, l, a] = t.split("-").map(Number);
|
|
10878
10878
|
return X1(new Date(r, l - 1, a), Sr);
|
|
10879
|
-
},
|
|
10879
|
+
}, Ea = (t) => {
|
|
10880
10880
|
const r = new Date(t.replace(" ", "T"));
|
|
10881
10881
|
return isNaN(r.getTime()) ? t : X1(r, Rr);
|
|
10882
|
-
},
|
|
10882
|
+
}, Da = (t) => {
|
|
10883
10883
|
const r = Math.floor(t / 365), l = Math.round((t - r * 365) / 30);
|
|
10884
10884
|
return r > 0 && l > 0 ? `${r}y ${l}m` : r > 0 ? `${r}y` : `${l}m`;
|
|
10885
|
-
}, q1 = (t, r) => t.getFullYear() === r.getFullYear() && t.getMonth() === r.getMonth() && t.getDate() === r.getDate(),
|
|
10885
|
+
}, q1 = (t, r) => t.getFullYear() === r.getFullYear() && t.getMonth() === r.getMonth() && t.getDate() === r.getDate(), Ta = (t, r, l) => {
|
|
10886
10886
|
const a = t.getTime();
|
|
10887
10887
|
return a >= r.getTime() && a <= l.getTime();
|
|
10888
|
-
},
|
|
10888
|
+
}, Ia = (t, r) => new Date(t, r + 1, 0).getDate(), Br = (t, r, l = 0) => {
|
|
10889
10889
|
const a = new Date(t, r, 1), h = new Date(t, r + 1, 0).getDate();
|
|
10890
10890
|
let d = a.getDay();
|
|
10891
10891
|
l === 1 && (d = d === 0 ? 6 : d - 1);
|
|
@@ -10904,7 +10904,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10904
10904
|
}, Ar = (t) => q1(t, /* @__PURE__ */ new Date()), $r = (t) => {
|
|
10905
10905
|
const r = t.getDay();
|
|
10906
10906
|
return r === 0 || r === 6;
|
|
10907
|
-
},
|
|
10907
|
+
}, Ga = (t, r) => {
|
|
10908
10908
|
const l = new Date(t);
|
|
10909
10909
|
return l.setDate(l.getDate() + r), l;
|
|
10910
10910
|
}, k0 = (t, r) => {
|
|
@@ -10916,7 +10916,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10916
10916
|
}, Er = (t, r) => {
|
|
10917
10917
|
const l = new Date(t.getFullYear(), t.getMonth(), t.getDate()), a = new Date(r.getFullYear(), r.getMonth(), r.getDate());
|
|
10918
10918
|
return l.getTime() > a.getTime();
|
|
10919
|
-
},
|
|
10919
|
+
}, Za = (t) => {
|
|
10920
10920
|
if (!t) return null;
|
|
10921
10921
|
const r = new Date(t);
|
|
10922
10922
|
if (Number.isNaN(r.getTime())) return null;
|
|
@@ -11039,7 +11039,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11039
11039
|
}, I1 = () => y === "years" ? /* @__PURE__ */ c("div", {
|
|
11040
11040
|
className: "calendar__header",
|
|
11041
11041
|
children: [
|
|
11042
|
-
/* @__PURE__ */ e(
|
|
11042
|
+
/* @__PURE__ */ e(K, {
|
|
11043
11043
|
title: "Previous years",
|
|
11044
11044
|
children: /* @__PURE__ */ e("button", {
|
|
11045
11045
|
type: "button",
|
|
@@ -11056,7 +11056,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11056
11056
|
C + O1 - 1
|
|
11057
11057
|
]
|
|
11058
11058
|
}),
|
|
11059
|
-
/* @__PURE__ */ e(
|
|
11059
|
+
/* @__PURE__ */ e(K, {
|
|
11060
11060
|
title: "Next years",
|
|
11061
11061
|
children: /* @__PURE__ */ e("button", {
|
|
11062
11062
|
type: "button",
|
|
@@ -11069,7 +11069,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11069
11069
|
}) : y === "months" ? /* @__PURE__ */ c("div", {
|
|
11070
11070
|
className: "calendar__header",
|
|
11071
11071
|
children: [
|
|
11072
|
-
/* @__PURE__ */ e(
|
|
11072
|
+
/* @__PURE__ */ e(K, {
|
|
11073
11073
|
title: "Previous year",
|
|
11074
11074
|
children: /* @__PURE__ */ e("button", {
|
|
11075
11075
|
type: "button",
|
|
@@ -11084,7 +11084,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11084
11084
|
onClick: D,
|
|
11085
11085
|
children: L.getFullYear()
|
|
11086
11086
|
}),
|
|
11087
|
-
/* @__PURE__ */ e(
|
|
11087
|
+
/* @__PURE__ */ e(K, {
|
|
11088
11088
|
title: "Next year",
|
|
11089
11089
|
children: /* @__PURE__ */ e("button", {
|
|
11090
11090
|
type: "button",
|
|
@@ -11097,7 +11097,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11097
11097
|
}) : /* @__PURE__ */ c("div", {
|
|
11098
11098
|
className: "calendar__header",
|
|
11099
11099
|
children: [
|
|
11100
|
-
/* @__PURE__ */ e(
|
|
11100
|
+
/* @__PURE__ */ e(K, {
|
|
11101
11101
|
title: "Previous month",
|
|
11102
11102
|
children: /* @__PURE__ */ e("button", {
|
|
11103
11103
|
type: "button",
|
|
@@ -11123,7 +11123,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11123
11123
|
children: L.getFullYear()
|
|
11124
11124
|
})] })
|
|
11125
11125
|
}),
|
|
11126
|
-
/* @__PURE__ */ e(
|
|
11126
|
+
/* @__PURE__ */ e(K, {
|
|
11127
11127
|
title: "Next month",
|
|
11128
11128
|
children: /* @__PURE__ */ e("button", {
|
|
11129
11129
|
type: "button",
|
|
@@ -11204,7 +11204,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11204
11204
|
"Fri",
|
|
11205
11205
|
"",
|
|
11206
11206
|
""
|
|
11207
|
-
], Gr = (t) => t === 0 ? "var(--card-background-accent-color)" : t === 1 ? "rgba(136, 132, 216, 0.35)" : t <= 3 ? "rgba(136, 132, 216, 0.65)" : "#8884d8", Zr = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`,
|
|
11207
|
+
], Gr = (t) => t === 0 ? "var(--card-background-accent-color)" : t === 1 ? "rgba(136, 132, 216, 0.35)" : t <= 3 ? "rgba(136, 132, 216, 0.65)" : "#8884d8", Zr = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, Pa = ({ data: t, startDate: r, endDate: l, colorFn: a = Gr, countLabel: h = "event" }) => {
|
|
11208
11208
|
const d = new Date(l ?? /* @__PURE__ */ new Date());
|
|
11209
11209
|
d.setHours(0, 0, 0, 0);
|
|
11210
11210
|
const o = new Date(r);
|
|
@@ -11317,7 +11317,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11317
11317
|
]
|
|
11318
11318
|
});
|
|
11319
11319
|
}, c0 = ({ checked: t = !1, onChange: r, label: l, icon: a, disabled: h = !1, id: d, indeterminate: o = !1 }) => {
|
|
11320
|
-
const m = z0(), n = d || m, i =
|
|
11320
|
+
const m = z0(), n = d || m, i = X(null);
|
|
11321
11321
|
return F(() => {
|
|
11322
11322
|
i.current && (i.current.indeterminate = o && !t);
|
|
11323
11323
|
}, [o, t]), /* @__PURE__ */ c("div", {
|
|
@@ -11364,7 +11364,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11364
11364
|
children: a
|
|
11365
11365
|
})
|
|
11366
11366
|
]
|
|
11367
|
-
}),
|
|
11367
|
+
}), ja = ({ children: t, className: r = "", defaultCollapsed: l = !1, icon: a, isCollapsed: h, onToggle: d, rightDetails: o, title: m, toggleAccent: n, toggleHighlight: i, toggleMiddleIcon: s, toggleSize: p, toggleSpaceBetween: u, toggleSwap: g, toggleTint: v = "plain", toggleVariant: w, withCard: f = !1 }) => {
|
|
11368
11368
|
const [y, b] = z(l), C = h !== void 0, x = C ? h : y, k = () => {
|
|
11369
11369
|
const L = !x;
|
|
11370
11370
|
C || b(L), d?.(L);
|
|
@@ -11563,7 +11563,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11563
11563
|
g: Math.round((i + m) * 255),
|
|
11564
11564
|
b: Math.round((s + m) * 255)
|
|
11565
11565
|
};
|
|
11566
|
-
},
|
|
11566
|
+
}, Wa = ({ value: t = "#4e79a7", onChange: r }) => {
|
|
11567
11567
|
const [l, a] = z("hex"), [h, d] = z(() => {
|
|
11568
11568
|
const g = U0(t) || {
|
|
11569
11569
|
r: 78,
|
|
@@ -11571,7 +11571,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11571
11571
|
b: 167
|
|
11572
11572
|
};
|
|
11573
11573
|
return j1(g);
|
|
11574
|
-
}), o =
|
|
11574
|
+
}), o = X(null);
|
|
11575
11575
|
F(() => {
|
|
11576
11576
|
const g = U0(t);
|
|
11577
11577
|
g && d(j1(g));
|
|
@@ -11755,7 +11755,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11755
11755
|
})
|
|
11756
11756
|
]
|
|
11757
11757
|
});
|
|
11758
|
-
},
|
|
11758
|
+
}, Ua = ({ items: t, isOpen: r, onOpenChange: l, placeholder: a = "Search commands", enableHotkey: h = !0 }) => {
|
|
11759
11759
|
const [d, o] = z(!1), [m, n] = z(""), i = r ?? d;
|
|
11760
11760
|
F(() => {
|
|
11761
11761
|
if (!h) return;
|
|
@@ -11943,8 +11943,8 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11943
11943
|
break;
|
|
11944
11944
|
}
|
|
11945
11945
|
t.restore();
|
|
11946
|
-
},
|
|
11947
|
-
const o =
|
|
11946
|
+
}, Fa = z1(({ colors: t, duration: r = 3e3, scope: l = "fullscreen", variant: a = "confetti", particleCount: h }, d) => {
|
|
11947
|
+
const o = X(null), m = X(0), n = X(0), i = X(!1), s = {
|
|
11948
11948
|
confetti: 150,
|
|
11949
11949
|
burst: 200,
|
|
11950
11950
|
fireworks: 8
|
|
@@ -12009,7 +12009,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12009
12009
|
ref: o,
|
|
12010
12010
|
className: `confetti-canvas confetti-canvas--${l}`
|
|
12011
12011
|
});
|
|
12012
|
-
}),
|
|
12012
|
+
}), Oa = ({ isOpen: t = !1, message: r, title: l, confirm: a, cancel: h, usePortal: d = !1 }) => {
|
|
12013
12013
|
const o = {
|
|
12014
12014
|
variant: h?.variant || "default",
|
|
12015
12015
|
icon: h?.icon || "clear",
|
|
@@ -12037,7 +12037,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12037
12037
|
children: /* @__PURE__ */ e("p", { children: r })
|
|
12038
12038
|
})
|
|
12039
12039
|
});
|
|
12040
|
-
},
|
|
12040
|
+
}, Ya = () => {
|
|
12041
12041
|
const [t, r] = z({}), l = (m, n) => {
|
|
12042
12042
|
const i = n instanceof HTMLElement ? n : n.currentTarget;
|
|
12043
12043
|
r((s) => ({
|
|
@@ -12066,7 +12066,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12066
12066
|
getAnchorEl: (m) => t[m]?.anchorEl || null
|
|
12067
12067
|
};
|
|
12068
12068
|
}, R1 = 20, Yr = 8, P2 = ({ children: t, visible: r, onClose: l, anchorEl: a, offset: h = Yr, placement: d = "auto" }) => {
|
|
12069
|
-
const o =
|
|
12069
|
+
const o = X(null), m = X(null), [n, i] = z({
|
|
12070
12070
|
top: 0,
|
|
12071
12071
|
left: 0,
|
|
12072
12072
|
placement: "bottom"
|
|
@@ -12204,7 +12204,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12204
12204
|
})
|
|
12205
12205
|
});
|
|
12206
12206
|
}, Xr = ({ target: t, onClose: r, children: l, autoClose: a = !1 }) => {
|
|
12207
|
-
const h =
|
|
12207
|
+
const h = X(null), [d, o] = z(!1), [m, n] = z(() => {
|
|
12208
12208
|
if (!t) return { opacity: 0 };
|
|
12209
12209
|
const s = t.getBoundingClientRect();
|
|
12210
12210
|
return {
|
|
@@ -12279,7 +12279,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12279
12279
|
className: "toast__action-button",
|
|
12280
12280
|
children: a.label
|
|
12281
12281
|
}),
|
|
12282
|
-
d && /* @__PURE__ */ e(
|
|
12282
|
+
d && /* @__PURE__ */ e(K, {
|
|
12283
12283
|
title: "Close",
|
|
12284
12284
|
children: /* @__PURE__ */ e("button", {
|
|
12285
12285
|
onClick: i,
|
|
@@ -12292,7 +12292,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12292
12292
|
})
|
|
12293
12293
|
]
|
|
12294
12294
|
});
|
|
12295
|
-
},
|
|
12295
|
+
}, qa = ({ position: t = "bottom-right", showDismissButton: r = !0 }) => {
|
|
12296
12296
|
const { toasts: l, removeToast: a } = Kr();
|
|
12297
12297
|
return /* @__PURE__ */ e("div", {
|
|
12298
12298
|
className: `toast-container toast-container--${t}`,
|
|
@@ -12306,7 +12306,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12306
12306
|
onClose: a
|
|
12307
12307
|
}, h.id))
|
|
12308
12308
|
});
|
|
12309
|
-
},
|
|
12309
|
+
}, Xa = ({ children: t }) => {
|
|
12310
12310
|
const [r, l] = z([]), a = Z((o) => {
|
|
12311
12311
|
l((m) => m.filter((n) => n.id !== o));
|
|
12312
12312
|
}, []), h = Z((o, m = "info", n = 1500, i) => {
|
|
@@ -12390,11 +12390,11 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12390
12390
|
isAtLeast: h,
|
|
12391
12391
|
isAtMost: d
|
|
12392
12392
|
};
|
|
12393
|
-
}, W2 = _0(null), l2 = () => L0(W2),
|
|
12393
|
+
}, W2 = _0(null), l2 = () => L0(W2), Ka = () => {
|
|
12394
12394
|
const t = l2();
|
|
12395
12395
|
if (!t) throw new Error("useControlPanel must be used within a ControlPanelProvider");
|
|
12396
12396
|
return t;
|
|
12397
|
-
},
|
|
12397
|
+
}, Qa = ({ children: t }) => {
|
|
12398
12398
|
const { isMobile: r } = g0(), [l, a] = z(!1), h = Z(() => a((n) => !n), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = u1(() => ({
|
|
12399
12399
|
isMobile: r,
|
|
12400
12400
|
isOpen: l,
|
|
@@ -12416,7 +12416,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12416
12416
|
const [g, v] = z(!1), [w, f] = z(0), [y, b] = z(0), [C, x] = z(0), [k, H] = z(!1), [L, M] = z(null), [V, S] = z({
|
|
12417
12417
|
position: "fixed",
|
|
12418
12418
|
visibility: "hidden"
|
|
12419
|
-
}), _ =
|
|
12419
|
+
}), _ = X(null), R = X(null);
|
|
12420
12420
|
F(() => {
|
|
12421
12421
|
a && t instanceof Date && (f(h === "12h" ? t.getHours() % 12 || 12 : t.getHours()), b(t.getMinutes()), x(t.getSeconds()), H(t.getHours() >= 12));
|
|
12422
12422
|
}, [
|
|
@@ -12493,7 +12493,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12493
12493
|
children: t1 || m
|
|
12494
12494
|
}), /* @__PURE__ */ c("div", {
|
|
12495
12495
|
className: "datepicker__actions",
|
|
12496
|
-
children: [i && t1 && /* @__PURE__ */ e(
|
|
12496
|
+
children: [i && t1 && /* @__PURE__ */ e(K, {
|
|
12497
12497
|
title: "Clear",
|
|
12498
12498
|
children: /* @__PURE__ */ e("button", {
|
|
12499
12499
|
type: "button",
|
|
@@ -12641,7 +12641,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12641
12641
|
})]
|
|
12642
12642
|
}), document.body))]
|
|
12643
12643
|
});
|
|
12644
|
-
}, tc = /[̀-ͯ]/g, w2 = (t) => t.normalize("NFD").replace(tc, "").toLowerCase(),
|
|
12644
|
+
}, tc = /[̀-ͯ]/g, w2 = (t) => t.normalize("NFD").replace(tc, "").toLowerCase(), Ja = (t, r) => {
|
|
12645
12645
|
const l = t.toLowerCase(), a = r.toLowerCase();
|
|
12646
12646
|
if (l.includes(a)) return !0;
|
|
12647
12647
|
const h = 1 - 1 / Math.max(a.length, 4);
|
|
@@ -12658,7 +12658,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12658
12658
|
left: 0,
|
|
12659
12659
|
width: 0,
|
|
12660
12660
|
maxHeight: 300
|
|
12661
|
-
}), [D, J] = z(!1), h1 =
|
|
12661
|
+
}), [D, J] = z(!1), h1 = X(null), U = X([]), d1 = X(null), v1 = X(null), y1 = z0(), _1 = o ?? `dropdown-${y1}`, C1 = X(null);
|
|
12662
12662
|
F(() => {
|
|
12663
12663
|
if (V && x && s) {
|
|
12664
12664
|
const W = new Set(N.map((c1) => c1.value)), G = [], Y = [];
|
|
@@ -12683,7 +12683,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12683
12683
|
f,
|
|
12684
12684
|
V
|
|
12685
12685
|
]);
|
|
12686
|
-
const I1 =
|
|
12686
|
+
const I1 = X(L);
|
|
12687
12687
|
F(() => {
|
|
12688
12688
|
const W = I1.current;
|
|
12689
12689
|
I1.current = L;
|
|
@@ -12982,7 +12982,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12982
12982
|
children: [/* @__PURE__ */ e("span", {
|
|
12983
12983
|
className: "dropdown-chip__label",
|
|
12984
12984
|
children: W.label
|
|
12985
|
-
}), /* @__PURE__ */ e(
|
|
12985
|
+
}), /* @__PURE__ */ e(K, {
|
|
12986
12986
|
title: "Remove",
|
|
12987
12987
|
children: /* @__PURE__ */ e("button", {
|
|
12988
12988
|
type: "button",
|
|
@@ -13050,7 +13050,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13050
13050
|
]
|
|
13051
13051
|
});
|
|
13052
13052
|
}, rc = z1(({ autoComplete: t = "on", autoFocus: r, clearable: l, disabled: a, error: h, highlighted: d, id: o, label: m, max: n, min: i, onBlur: s, onChange: p, onClick: u, onKeyDown: g, onKeyUp: v, readOnly: w = !1, required: f = !1, success: y, type: b = "date", value: C }, x) => {
|
|
13053
|
-
const k = l && C && !a && !w, H =
|
|
13053
|
+
const k = l && C && !a && !w, H = X(null);
|
|
13054
13054
|
return /* @__PURE__ */ c("div", {
|
|
13055
13055
|
className: `input-date-wrapper${d ? " input-date-highlighted" : ""}`,
|
|
13056
13056
|
children: [
|
|
@@ -13086,7 +13086,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13086
13086
|
required: f
|
|
13087
13087
|
}), /* @__PURE__ */ c("div", {
|
|
13088
13088
|
className: "input-date-actions",
|
|
13089
|
-
children: [k && /* @__PURE__ */ e(
|
|
13089
|
+
children: [k && /* @__PURE__ */ e(K, {
|
|
13090
13090
|
title: "Clear date",
|
|
13091
13091
|
children: /* @__PURE__ */ e("button", {
|
|
13092
13092
|
type: "button",
|
|
@@ -13097,7 +13097,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13097
13097
|
size: "sm"
|
|
13098
13098
|
})
|
|
13099
13099
|
})
|
|
13100
|
-
}), /* @__PURE__ */ e(
|
|
13100
|
+
}), /* @__PURE__ */ e(K, {
|
|
13101
13101
|
title: "Open calendar",
|
|
13102
13102
|
children: /* @__PURE__ */ e("button", {
|
|
13103
13103
|
type: "button",
|
|
@@ -13126,7 +13126,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13126
13126
|
})
|
|
13127
13127
|
]
|
|
13128
13128
|
});
|
|
13129
|
-
}),
|
|
13129
|
+
}), a0 = z1(({ autoComplete: t = "off", autoFocus: r, disabled: l, id: a, label: h, onBlur: d, onChange: o, onClick: m, onKeyDown: n, onKeyUp: i, placeholder: s = "Search...", readOnly: p = !1, required: u = !1, value: g, className: v = "" }, w) => {
|
|
13130
13130
|
const f = () => {
|
|
13131
13131
|
o?.("");
|
|
13132
13132
|
}, y = g && g.length > 0 && !l && !p;
|
|
@@ -13154,7 +13154,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13154
13154
|
value: g,
|
|
13155
13155
|
ref: w
|
|
13156
13156
|
}),
|
|
13157
|
-
y && /* @__PURE__ */ e(
|
|
13157
|
+
y && /* @__PURE__ */ e(K, {
|
|
13158
13158
|
title: "Clear search",
|
|
13159
13159
|
children: /* @__PURE__ */ e("button", {
|
|
13160
13160
|
type: "button",
|
|
@@ -13404,12 +13404,24 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13404
13404
|
children: /* @__PURE__ */ e(P, { name: h ? "caret-up" : "caret-down" })
|
|
13405
13405
|
})
|
|
13406
13406
|
]
|
|
13407
|
-
}) : t.type !== "checkbox" && m, (!a || h) && /* @__PURE__ */ e(
|
|
13407
|
+
}) : t.type !== "checkbox" && m, (!a || h) && /* @__PURE__ */ e(dc, {
|
|
13408
13408
|
filter: t,
|
|
13409
13409
|
onChange: l
|
|
13410
13410
|
})]
|
|
13411
13411
|
});
|
|
13412
|
-
}, hc = ({
|
|
13412
|
+
}, hc = ({ placeholder: t, value: r, onChange: l }) => {
|
|
13413
|
+
const [a, h] = z(r), d = X(r);
|
|
13414
|
+
return F(() => {
|
|
13415
|
+
r !== d.current && (d.current = r, h(r));
|
|
13416
|
+
}, [r]), /* @__PURE__ */ e(a0, {
|
|
13417
|
+
className: "control-panel__filter-search",
|
|
13418
|
+
onChange: (o) => {
|
|
13419
|
+
d.current = o, h(o), l(o);
|
|
13420
|
+
},
|
|
13421
|
+
placeholder: t,
|
|
13422
|
+
value: a
|
|
13423
|
+
});
|
|
13424
|
+
}, dc = ({ filter: t, onChange: r }) => {
|
|
13413
13425
|
const l = U2(t.value), a = t.options ?? [], [h, d] = z("");
|
|
13414
13426
|
if (t.type === "checkbox") return /* @__PURE__ */ e(d0, {
|
|
13415
13427
|
count: t.count,
|
|
@@ -13443,15 +13455,14 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13443
13455
|
value: typeof t.value == "string" ? t.value : ""
|
|
13444
13456
|
})
|
|
13445
13457
|
});
|
|
13446
|
-
if (t.type === "search") return /* @__PURE__ */ e(
|
|
13447
|
-
|
|
13458
|
+
if (t.type === "search") return /* @__PURE__ */ e(hc, {
|
|
13459
|
+
placeholder: t.placeholder,
|
|
13460
|
+
value: typeof t.value == "string" ? t.value : "",
|
|
13448
13461
|
onChange: (o) => r({
|
|
13449
13462
|
filterId: t.id,
|
|
13450
13463
|
type: t.type,
|
|
13451
13464
|
value: o
|
|
13452
|
-
})
|
|
13453
|
-
placeholder: t.placeholder,
|
|
13454
|
-
value: typeof t.value == "string" ? t.value : ""
|
|
13465
|
+
})
|
|
13455
13466
|
});
|
|
13456
13467
|
if (t.type === "number") return /* @__PURE__ */ e("div", {
|
|
13457
13468
|
className: "control-panel__filter-number",
|
|
@@ -13624,7 +13635,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13624
13635
|
const o = h.trim().toLowerCase(), m = t.searchable && o ? a.filter((n) => n.label.toLowerCase().includes(o)) : a;
|
|
13625
13636
|
return /* @__PURE__ */ c("div", {
|
|
13626
13637
|
className: "control-panel__filter-chips-wrap",
|
|
13627
|
-
children: [t.searchable && a.length > 0 && /* @__PURE__ */ e(
|
|
13638
|
+
children: [t.searchable && a.length > 0 && /* @__PURE__ */ e(a0, {
|
|
13628
13639
|
className: "control-panel__filter-chip-search",
|
|
13629
13640
|
value: h,
|
|
13630
13641
|
onChange: d,
|
|
@@ -13707,7 +13718,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13707
13718
|
}, o.value);
|
|
13708
13719
|
})
|
|
13709
13720
|
});
|
|
13710
|
-
},
|
|
13721
|
+
}, mc = ({ navigation: t, onNavigate: r }) => {
|
|
13711
13722
|
const l = t.some((a) => (a.children?.length ?? 0) > 0);
|
|
13712
13723
|
return /* @__PURE__ */ e("nav", {
|
|
13713
13724
|
className: "control-panel__nav",
|
|
@@ -13775,10 +13786,10 @@ function F2(t, r, l, a = 0) {
|
|
|
13775
13786
|
})]
|
|
13776
13787
|
}, t.id);
|
|
13777
13788
|
}
|
|
13778
|
-
var
|
|
13789
|
+
var pc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.length ?? 0, vc = ({ disabled: t = !1, largeValueState: r = "info", min: l = 0, max: a = 100, step: h = 1, value: d, onChange: o, showValues: m = !0, showValueAtTheRight: n = !1, valueSize: i, thin: s = !1, vertical: p = !1 }) => {
|
|
13779
13790
|
const u = (f) => {
|
|
13780
13791
|
o(parseFloat(f.target.value));
|
|
13781
|
-
}, g =
|
|
13792
|
+
}, g = pc(h), v = g > 0 ? d.toFixed(g) : String(d), w = n && !p;
|
|
13782
13793
|
return /* @__PURE__ */ c("div", {
|
|
13783
13794
|
className: [
|
|
13784
13795
|
"slider-component",
|
|
@@ -13807,7 +13818,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13807
13818
|
})
|
|
13808
13819
|
}))]
|
|
13809
13820
|
});
|
|
13810
|
-
},
|
|
13821
|
+
}, uc = [{
|
|
13811
13822
|
value: "cards",
|
|
13812
13823
|
label: "Grid",
|
|
13813
13824
|
icon: "grid"
|
|
@@ -13815,11 +13826,11 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13815
13826
|
value: "table",
|
|
13816
13827
|
label: "Table",
|
|
13817
13828
|
icon: "table"
|
|
13818
|
-
}],
|
|
13829
|
+
}], gc = {
|
|
13819
13830
|
value: "gallery",
|
|
13820
13831
|
label: "Gallery",
|
|
13821
13832
|
icon: "gallery"
|
|
13822
|
-
},
|
|
13833
|
+
}, wc = ({ normalizedOptionGroups: t, onOptionChange: r, viewToggle: l, onViewToggleComplete: a, groupBy: h, visibleColumns: d }) => /* @__PURE__ */ c("div", {
|
|
13823
13834
|
className: "control-panel__options",
|
|
13824
13835
|
children: [
|
|
13825
13836
|
/* @__PURE__ */ e("div", {
|
|
@@ -13833,7 +13844,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13833
13844
|
className: "control-panel__option control-panel__option--view-toggle",
|
|
13834
13845
|
children: /* @__PURE__ */ e("div", {
|
|
13835
13846
|
className: "control-panel__option-view-toggle",
|
|
13836
|
-
children: (l.options ?? [...
|
|
13847
|
+
children: (l.options ?? [...uc, ...l.showGallery ? [gc] : []]).map((o) => /* @__PURE__ */ e(T, {
|
|
13837
13848
|
icon: o.icon,
|
|
13838
13849
|
size: "small",
|
|
13839
13850
|
variant: l.value === o.value ? "info" : "default",
|
|
@@ -13935,7 +13946,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13935
13946
|
]
|
|
13936
13947
|
})
|
|
13937
13948
|
});
|
|
13938
|
-
return u.title ? /* @__PURE__ */ e(
|
|
13949
|
+
return u.title ? /* @__PURE__ */ e(K, {
|
|
13939
13950
|
title: u.title,
|
|
13940
13951
|
children: w
|
|
13941
13952
|
}, u.value) : /* @__PURE__ */ e(g1.Fragment, { children: w }, u.value);
|
|
@@ -13951,7 +13962,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13951
13962
|
children: [n.value, n.unit ?? ""]
|
|
13952
13963
|
})
|
|
13953
13964
|
]
|
|
13954
|
-
}), /* @__PURE__ */ e(
|
|
13965
|
+
}), /* @__PURE__ */ e(vc, {
|
|
13955
13966
|
min: n.min,
|
|
13956
13967
|
max: n.max,
|
|
13957
13968
|
step: n.step,
|
|
@@ -13992,7 +14003,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13992
14003
|
})]
|
|
13993
14004
|
}, o.id ?? o.label ?? m))
|
|
13994
14005
|
]
|
|
13995
|
-
}),
|
|
14006
|
+
}), ei = ({ width: t = "280px", className: r = "", isOpen: l, onClose: a, isMobile: h, showOverlay: d = !0, contained: o = !1, flush: m = !1, shadow: n = "none", header: i, navigation: s = [], actions: p = [], filters: u = [], filtersCount: g, collapsibleFilters: v = !1, onFilterChange: w, onClearFilters: f, options: y = [], onOptionChange: b, viewToggle: C, groupBy: x, visibleColumns: k }) => {
|
|
13996
14007
|
const H = l2(), L = h ?? H?.isMobile ?? !1, M = l ?? (L ? H?.isOpen ?? !1 : !0), V = a ?? H?.close ?? (() => {
|
|
13997
14008
|
}), S = [
|
|
13998
14009
|
"control-panel",
|
|
@@ -14024,12 +14035,12 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14024
14035
|
}),
|
|
14025
14036
|
p.length > 0 && /* @__PURE__ */ e("div", {
|
|
14026
14037
|
className: "control-panel__actions",
|
|
14027
|
-
children: p.map((t1) => /* @__PURE__ */ e(
|
|
14038
|
+
children: p.map((t1) => /* @__PURE__ */ e(fc, {
|
|
14028
14039
|
action: t1,
|
|
14029
14040
|
onActionComplete: L ? V : void 0
|
|
14030
14041
|
}, t1.id))
|
|
14031
14042
|
}),
|
|
14032
|
-
s.length > 0 && /* @__PURE__ */ e(
|
|
14043
|
+
s.length > 0 && /* @__PURE__ */ e(mc, {
|
|
14033
14044
|
navigation: s,
|
|
14034
14045
|
onNavigate: L ? V : void 0
|
|
14035
14046
|
}),
|
|
@@ -14056,7 +14067,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14056
14067
|
}, t1.id))]
|
|
14057
14068
|
}),
|
|
14058
14069
|
O && E && /* @__PURE__ */ e(h0, { spacing: 0 }),
|
|
14059
|
-
E && /* @__PURE__ */ e(
|
|
14070
|
+
E && /* @__PURE__ */ e(wc, {
|
|
14060
14071
|
normalizedOptionGroups: B,
|
|
14061
14072
|
onOptionChange: b,
|
|
14062
14073
|
viewToggle: C,
|
|
@@ -14066,7 +14077,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14066
14077
|
})
|
|
14067
14078
|
]
|
|
14068
14079
|
})] });
|
|
14069
|
-
},
|
|
14080
|
+
}, fc = ({ action: t, onActionComplete: r }) => {
|
|
14070
14081
|
const [l, a] = z(null), [h, d] = z(!1), o = (i) => {
|
|
14071
14082
|
if (t.confirm) {
|
|
14072
14083
|
a(i.currentTarget), d(!0);
|
|
@@ -14086,7 +14097,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14086
14097
|
variant: t.variant ?? "default",
|
|
14087
14098
|
children: t.label
|
|
14088
14099
|
});
|
|
14089
|
-
return /* @__PURE__ */ c(n1, { children: [t.tooltip ? /* @__PURE__ */ e(
|
|
14100
|
+
return /* @__PURE__ */ c(n1, { children: [t.tooltip ? /* @__PURE__ */ e(K, {
|
|
14090
14101
|
title: t.tooltip,
|
|
14091
14102
|
position: "right",
|
|
14092
14103
|
children: n
|
|
@@ -14110,7 +14121,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14110
14121
|
variant: t.confirm.cancel?.variant ?? "default"
|
|
14111
14122
|
}
|
|
14112
14123
|
})] });
|
|
14113
|
-
},
|
|
14124
|
+
}, Cc = async (t) => {
|
|
14114
14125
|
if (navigator.clipboard?.writeText) try {
|
|
14115
14126
|
await navigator.clipboard.writeText(t);
|
|
14116
14127
|
return;
|
|
@@ -14123,8 +14134,8 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14123
14134
|
} finally {
|
|
14124
14135
|
document.body.removeChild(r);
|
|
14125
14136
|
}
|
|
14126
|
-
},
|
|
14127
|
-
const [v, w] = z("idle"), f =
|
|
14137
|
+
}, ti = ({ children: t, className: r = "", copiedLabel: l = "Copied", disabled: a = !1, errorLabel: h = "Copy failed", iconOnly: d = !1, label: o = "Copy", onCopy: m, onError: n, resetDelay: i = 1800, size: s = "medium", title: p, value: u, variant: g = "ghost" }) => {
|
|
14138
|
+
const [v, w] = z("idle"), f = X(null);
|
|
14128
14139
|
F(() => () => {
|
|
14129
14140
|
f.current && window.clearTimeout(f.current);
|
|
14130
14141
|
}, []);
|
|
@@ -14132,7 +14143,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14132
14143
|
f.current && window.clearTimeout(f.current), f.current = window.setTimeout(() => w("idle"), i);
|
|
14133
14144
|
}, b = async () => {
|
|
14134
14145
|
try {
|
|
14135
|
-
await
|
|
14146
|
+
await Cc(u), w("copied"), y(), m?.(u);
|
|
14136
14147
|
} catch (k) {
|
|
14137
14148
|
w("error"), y(), n?.(k);
|
|
14138
14149
|
}
|
|
@@ -14149,8 +14160,8 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14149
14160
|
variant: x,
|
|
14150
14161
|
children: d ? void 0 : t || C
|
|
14151
14162
|
});
|
|
14152
|
-
},
|
|
14153
|
-
if (!t) return /* @__PURE__ */ e(
|
|
14163
|
+
}, yc = ({ code: t, size: r = "md", className: l = "" }) => {
|
|
14164
|
+
if (!t) return /* @__PURE__ */ e(K, {
|
|
14154
14165
|
title: `Unsupported country code: ${t}`,
|
|
14155
14166
|
children: /* @__PURE__ */ e("div", {
|
|
14156
14167
|
className: `flags flags--fallback flags--${r} ${l}`,
|
|
@@ -14163,7 +14174,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14163
14174
|
children: [/* @__PURE__ */ e("source", {
|
|
14164
14175
|
srcSet: h,
|
|
14165
14176
|
type: "image/webp"
|
|
14166
|
-
}), /* @__PURE__ */ e(
|
|
14177
|
+
}), /* @__PURE__ */ e(K, {
|
|
14167
14178
|
title: `Country: ${t.toUpperCase()}`,
|
|
14168
14179
|
children: /* @__PURE__ */ e("img", {
|
|
14169
14180
|
src: a,
|
|
@@ -14176,11 +14187,11 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14176
14187
|
})
|
|
14177
14188
|
})]
|
|
14178
14189
|
});
|
|
14179
|
-
},
|
|
14190
|
+
}, ri = ({ code: t, label: r, size: l = "md", className: a = "" }) => {
|
|
14180
14191
|
const h = r || t?.toUpperCase();
|
|
14181
14192
|
return /* @__PURE__ */ c("div", {
|
|
14182
14193
|
className: `country-with-flag country-with-flag--${l} ${a}`,
|
|
14183
|
-
children: [/* @__PURE__ */ e(
|
|
14194
|
+
children: [/* @__PURE__ */ e(yc, {
|
|
14184
14195
|
code: t,
|
|
14185
14196
|
size: l
|
|
14186
14197
|
}), /* @__PURE__ */ e("span", {
|
|
@@ -14188,7 +14199,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14188
14199
|
children: h
|
|
14189
14200
|
})]
|
|
14190
14201
|
});
|
|
14191
|
-
},
|
|
14202
|
+
}, bc = (t, r, l, a, h) => {
|
|
14192
14203
|
const d = r ? (a - 1) * t + 1 : 0, o = Math.min(a * t, r), m = h ? ` ${h}` : "";
|
|
14193
14204
|
return r === l ? `Showing ${d}-${o} of ${l}${m}` : `Showing ${d}-${o} of ${r} filtered${m} (${l} total)`;
|
|
14194
14205
|
}, r0 = ({ icon: t, title: r, description: l, noCard: a, primary: h, secondary: d, children: o }) => {
|
|
@@ -14228,13 +14239,13 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14228
14239
|
})
|
|
14229
14240
|
]
|
|
14230
14241
|
});
|
|
14231
|
-
},
|
|
14232
|
-
const { isAtLeast: s, isMobile: p } = g0(), u =
|
|
14242
|
+
}, Mc = 45, xc = 120, kc = 45, _c = 45, C2 = 8, Lc = 4, y2 = ({ currentPage: t, totalPages: r, totalItems: l, onPageChange: a, showPagesNumbers: h = !1, pageSizeOptions: d, pageSize: o, onPageSizeChange: m, pageSizeLabel: n = "Rows", horizontalAlign: i = "left" }) => {
|
|
14243
|
+
const { isAtLeast: s, isMobile: p } = g0(), u = X(null), [g, v] = z(p ? 0 : 2), w = Z(() => {
|
|
14233
14244
|
const C = u.current, x = C?.parentElement;
|
|
14234
14245
|
if (!C || !x) return;
|
|
14235
14246
|
let k = 0;
|
|
14236
14247
|
for (const V of x.children) V !== C && (k += V.offsetWidth + C2);
|
|
14237
|
-
const H = x.clientWidth - k - ((s("desktop") ?
|
|
14248
|
+
const H = x.clientWidth - k - ((s("desktop") ? xc : kc) * 2 + Mc * 2 + _c * 2 + C2 * 6), L = Math.floor(H / 53), M = Math.min(Lc, Math.max(0, Math.floor(L / 2)));
|
|
14238
14249
|
v(M);
|
|
14239
14250
|
}, [s]);
|
|
14240
14251
|
F(() => {
|
|
@@ -14309,25 +14320,25 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14309
14320
|
})
|
|
14310
14321
|
]
|
|
14311
14322
|
});
|
|
14312
|
-
},
|
|
14323
|
+
}, zc = (t) => {
|
|
14313
14324
|
const [r, l, a] = t.split("-").map(Number);
|
|
14314
14325
|
return new Date(r, l - 1, a);
|
|
14315
|
-
},
|
|
14326
|
+
}, Vc = (t, r) => r === "month" ? t.toLocaleDateString("en-US", { month: "long" }) : t.toLocaleDateString("en-US", {
|
|
14316
14327
|
day: "2-digit",
|
|
14317
14328
|
month: "short"
|
|
14318
|
-
}),
|
|
14329
|
+
}), Nc = (t, r) => r === "month" ? `${t.getFullYear()}-${t.getMonth()}` : `${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`, Hc = (t) => t.getFullYear().toString(), a2 = (t, r = "day") => {
|
|
14319
14330
|
const l = /* @__PURE__ */ new Map();
|
|
14320
14331
|
let a = null, h = null;
|
|
14321
14332
|
return t.forEach((d, o) => {
|
|
14322
|
-
const m =
|
|
14333
|
+
const m = zc(d.date), n = Hc(m), i = Nc(m, r), s = n !== a, p = i !== h;
|
|
14323
14334
|
l.set(o, {
|
|
14324
14335
|
showYear: s,
|
|
14325
14336
|
showDate: p,
|
|
14326
14337
|
yearLabel: s ? m.getFullYear().toString() : "",
|
|
14327
|
-
dateLabel: p ?
|
|
14338
|
+
dateLabel: p ? Vc(m, r) : ""
|
|
14328
14339
|
}), a = n, h = i;
|
|
14329
14340
|
}), l;
|
|
14330
|
-
},
|
|
14341
|
+
}, Sc = ({ marker: t, onClick: r }) => {
|
|
14331
14342
|
const l = (a) => {
|
|
14332
14343
|
a.stopPropagation(), r?.(a);
|
|
14333
14344
|
};
|
|
@@ -14356,13 +14367,13 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14356
14367
|
onClick: l,
|
|
14357
14368
|
children: /* @__PURE__ */ e("div", { className: "timeline-markers__dot timeline-markers__dot--small" })
|
|
14358
14369
|
});
|
|
14359
|
-
},
|
|
14370
|
+
}, Rc = ({ marker: t }) => !t.showYear && !t.showDate ? null : /* @__PURE__ */ e("div", {
|
|
14360
14371
|
className: "timeline-markers__separator",
|
|
14361
14372
|
children: /* @__PURE__ */ e("span", {
|
|
14362
14373
|
className: "timeline-markers__separator-label",
|
|
14363
14374
|
children: t.showYear ? t.yearLabel : t.dateLabel
|
|
14364
14375
|
})
|
|
14365
|
-
}),
|
|
14376
|
+
}), ci = ({ items: t, renderItem: r, className: l }) => {
|
|
14366
14377
|
const a = u1(() => a2(t), [t]);
|
|
14367
14378
|
return /* @__PURE__ */ c("div", {
|
|
14368
14379
|
className: `timeline-markers${l ? ` ${l}` : ""}`,
|
|
@@ -14378,7 +14389,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14378
14389
|
100,
|
|
14379
14390
|
250,
|
|
14380
14391
|
500
|
|
14381
|
-
], O2 = (t) => typeof t.header == "string" ? t.header : t.key,
|
|
14392
|
+
], O2 = (t) => typeof t.header == "string" ? t.header : t.key, Bc = (t) => typeof t == "number" ? `${t}px` : t, Y2 = (t) => /* @__PURE__ */ c("span", {
|
|
14382
14393
|
className: "data-view__column-label",
|
|
14383
14394
|
children: [t.icon && /* @__PURE__ */ e(P, {
|
|
14384
14395
|
className: "data-view__column-icon",
|
|
@@ -14396,8 +14407,8 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14396
14407
|
}), /* @__PURE__ */ e("span", { children: a })]
|
|
14397
14408
|
}) : a;
|
|
14398
14409
|
};
|
|
14399
|
-
function
|
|
14400
|
-
const k = r.filter((_) => !_.hideInCard && !(w && _.hideInMobile)), H = u1(() => new Set(u ?? []), [u]), L = `data-view__cards${v !== void 0 ? " data-view__cards--grid" : ""}`, M = v !== void 0 ? { "--data-view-card-max-width":
|
|
14410
|
+
function Ac({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d, onRowClick: o, rowHref: m, rowClassName: n, empty: i, selectable: s, selectedIds: p = [], pinnedIds: u, onToggleSelect: g, cardMaxWidth: v, isMobile: w = !1, groups: f, showGroupCount: y = !0, collapsible: b = !1, collapsedGroups: C, onToggleGroup: x }) {
|
|
14411
|
+
const k = r.filter((_) => !_.hideInCard && !(w && _.hideInMobile)), H = u1(() => new Set(u ?? []), [u]), L = `data-view__cards${v !== void 0 ? " data-view__cards--grid" : ""}`, M = v !== void 0 ? { "--data-view-card-max-width": Bc(v) } : void 0, V = u1(() => d ? a2(t.map((_) => ({
|
|
14401
14412
|
id: d.idAccessor(_),
|
|
14402
14413
|
date: d.dateAccessor(_)
|
|
14403
14414
|
})), d.granularity) : /* @__PURE__ */ new Map(), [t, d]);
|
|
@@ -14413,7 +14424,7 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14413
14424
|
const B = V.get(R), E = l(_, R), O = s && p.includes(E), o1 = H.has(E), N = m?.(_), q = `data-view__card ${o || N ? "data-view__card--clickable" : ""} ${O ? "data-view__card--selected" : ""} ${o1 ? "data-view__card--pinned" : ""} ${n?.(_) || ""}`, t1 = (D) => {
|
|
14414
14425
|
D.metaKey || D.ctrlKey || D.shiftKey || D.altKey || D.button !== 0 || o && (D.preventDefault(), o(_, D));
|
|
14415
14426
|
}, I = /* @__PURE__ */ c(n1, { children: [
|
|
14416
|
-
o1 && /* @__PURE__ */ e(
|
|
14427
|
+
o1 && /* @__PURE__ */ e(K, {
|
|
14417
14428
|
title: "Pinned",
|
|
14418
14429
|
children: /* @__PURE__ */ e("span", {
|
|
14419
14430
|
className: "data-view__card-pin",
|
|
@@ -14479,7 +14490,7 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14479
14490
|
children: h(_)
|
|
14480
14491
|
})
|
|
14481
14492
|
] });
|
|
14482
|
-
return /* @__PURE__ */ c(g1.Fragment, { children: [B && /* @__PURE__ */ e(
|
|
14493
|
+
return /* @__PURE__ */ c(g1.Fragment, { children: [B && /* @__PURE__ */ e(Rc, { marker: B }), N ? /* @__PURE__ */ e("a", {
|
|
14483
14494
|
className: q,
|
|
14484
14495
|
href: N,
|
|
14485
14496
|
onClick: t1,
|
|
@@ -14533,8 +14544,8 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14533
14544
|
children: t.map((_, R) => S(_, R))
|
|
14534
14545
|
});
|
|
14535
14546
|
}
|
|
14536
|
-
function
|
|
14537
|
-
const { options: r, selectedKeys: l, onChange: a, label: h = "Columns" } = t, d =
|
|
14547
|
+
function $c({ config: t }) {
|
|
14548
|
+
const { options: r, selectedKeys: l, onChange: a, label: h = "Columns" } = t, d = X(null), [o, m] = z(!1);
|
|
14538
14549
|
if (r.length === 0) return null;
|
|
14539
14550
|
const n = (i, s) => {
|
|
14540
14551
|
if (s) {
|
|
@@ -14575,7 +14586,7 @@ function Ac({ config: t }) {
|
|
|
14575
14586
|
})]
|
|
14576
14587
|
});
|
|
14577
14588
|
}
|
|
14578
|
-
var
|
|
14589
|
+
var Ec = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left", showDirectionToggle: d = !1, className: o = "" }) => t.length === 0 ? null : /* @__PURE__ */ c("div", {
|
|
14579
14590
|
className: [
|
|
14580
14591
|
"mini-sort",
|
|
14581
14592
|
`mini-sort--align-${h}`,
|
|
@@ -14583,7 +14594,7 @@ var $c = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
|
|
|
14583
14594
|
].filter(Boolean).join(" "),
|
|
14584
14595
|
children: [t.map((m, n) => {
|
|
14585
14596
|
const i = m.direction ?? "asc", s = d ? r === m.value : r === m.value && l === i;
|
|
14586
|
-
return /* @__PURE__ */ e(
|
|
14597
|
+
return /* @__PURE__ */ e(K, {
|
|
14587
14598
|
title: `Sort by ${typeof m.label == "string" || typeof m.label == "number" ? String(m.label) : m.value}${d ? "" : ` ${i === "asc" ? "ascending" : "descending"}`}`,
|
|
14588
14599
|
children: /* @__PURE__ */ e(T, {
|
|
14589
14600
|
className: `mini-sort__button${s ? " is-active" : ""}`,
|
|
@@ -14600,7 +14611,7 @@ var $c = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
|
|
|
14600
14611
|
children: m.label ?? m.value
|
|
14601
14612
|
})
|
|
14602
14613
|
}, `${m.value}-${n}`);
|
|
14603
|
-
}), d && /* @__PURE__ */ e(
|
|
14614
|
+
}), d && /* @__PURE__ */ e(K, {
|
|
14604
14615
|
title: `Direction: ${l === "asc" ? "ascending" : "descending"}`,
|
|
14605
14616
|
children: /* @__PURE__ */ e(T, {
|
|
14606
14617
|
className: "mini-sort__button mini-sort__direction",
|
|
@@ -14617,9 +14628,9 @@ var $c = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
|
|
|
14617
14628
|
})
|
|
14618
14629
|
})]
|
|
14619
14630
|
});
|
|
14620
|
-
function
|
|
14631
|
+
function Dc({ columns: t, config: r, sortDirection: l, sortKey: a, onSort: h }) {
|
|
14621
14632
|
const d = r?.columns ?? r?.column ?? [];
|
|
14622
|
-
return d.length === 0 ? null : /* @__PURE__ */ e(
|
|
14633
|
+
return d.length === 0 ? null : /* @__PURE__ */ e(Ec, {
|
|
14623
14634
|
items: d.map((o) => {
|
|
14624
14635
|
const m = t.find((n) => n.key === o.column);
|
|
14625
14636
|
return {
|
|
@@ -14636,13 +14647,13 @@ function Ec({ columns: t, config: r, sortDirection: l, sortKey: a, onSort: h })
|
|
|
14636
14647
|
align: r?.align ?? "left"
|
|
14637
14648
|
});
|
|
14638
14649
|
}
|
|
14639
|
-
function
|
|
14650
|
+
function Tc({ state: t }) {
|
|
14640
14651
|
return /* @__PURE__ */ e("span", {
|
|
14641
14652
|
className: `data-view__sort-icon data-view__sort-icon--${t}`,
|
|
14642
14653
|
children: /* @__PURE__ */ e(P, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
14643
14654
|
});
|
|
14644
14655
|
}
|
|
14645
|
-
function
|
|
14656
|
+
function li({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1, onSelectionChange: d, selectedIds: o, pageSizeOptions: m = b2, initialPageSize: n = b2[1], showPageSize: i = !0, card: s, actions: p, actionsWidth: u, timeline: g, onRowClick: v, rowHref: w, rowClassName: f, rowDetail: y, empty: b, initialSortKey: C = null, initialSortDirection: x = "asc", sortKey: k, sortDirection: H, onSortChange: L, miniSort: M, showCardSortControls: V = !0, desktopView: S = "table", cardMaxWidth: _, className: R, onPageChange: B, onPageSizeChange: E, currentPage: O, totalItems: o1, group: N, showResultsCount: q = !0, totalCount: t1, itemNoun: I, columnSelector: D }) {
|
|
14646
14657
|
const { isMobile: J } = g0(), [h1, U] = z(C), [d1, v1] = z(x), [y1, _1] = z([]), C1 = o ?? y1, [I1, r1] = z(1), s1 = O ?? I1, [A, j] = z(n), [a1, m1] = z(() => t.reduce(($, l1) => (l1.width && ($[l1.key] = l1.width), $), {})), [x1, M1] = z(/* @__PURE__ */ new Set()), E1 = ($) => {
|
|
14647
14658
|
M1((l1) => {
|
|
14648
14659
|
const p1 = new Set(l1);
|
|
@@ -14707,7 +14718,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14707
14718
|
N,
|
|
14708
14719
|
D1,
|
|
14709
14720
|
L1
|
|
14710
|
-
]), J1 = D1 ? o1 : U1.length, e0 = Math.max(1, Math.ceil(J1 / A)), W = Math.min(s1, e0), G = D1 ? U1 : U1.slice((W - 1) * A, W * A), Y = q ?
|
|
14721
|
+
]), J1 = D1 ? o1 : U1.length, e0 = Math.max(1, Math.ceil(J1 / A)), W = Math.min(s1, e0), G = D1 ? U1 : U1.slice((W - 1) * A, W * A), Y = q ? bc(A, J1, t1 ?? J1, W, I) : null, c1 = u1(() => {
|
|
14711
14722
|
if (!N) return null;
|
|
14712
14723
|
const $ = /* @__PURE__ */ new Map();
|
|
14713
14724
|
return U1.forEach((l1) => {
|
|
@@ -14754,13 +14765,13 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14754
14765
|
}, f0 = t.some(($) => $.filter), n0 = t.filter(($) => $.sortable), T0 = n0.map(($) => ({
|
|
14755
14766
|
label: O2($),
|
|
14756
14767
|
value: $.key
|
|
14757
|
-
})), f3 = n0.length > 0, I0 = N1 ? n0.find(($) => $.key === N1) : void 0, C3 = M?.align ?? "left", o2 = (M?.columns ?? M?.column ?? []).length > 0 ? /* @__PURE__ */ e(
|
|
14768
|
+
})), f3 = n0.length > 0, I0 = N1 ? n0.find(($) => $.key === N1) : void 0, C3 = M?.align ?? "left", o2 = (M?.columns ?? M?.column ?? []).length > 0 ? /* @__PURE__ */ e(Dc, {
|
|
14758
14769
|
columns: t,
|
|
14759
14770
|
config: M,
|
|
14760
14771
|
sortKey: N1,
|
|
14761
14772
|
sortDirection: H1,
|
|
14762
14773
|
onSort: Z1
|
|
14763
|
-
}) : null, s2 = D && D.options.length > 0 ? /* @__PURE__ */ e(
|
|
14774
|
+
}) : null, s2 = D && D.options.length > 0 ? /* @__PURE__ */ e($c, { config: D }) : null, G0 = Y || o2 || s2 ? /* @__PURE__ */ c("div", {
|
|
14764
14775
|
className: `data-view__top-row data-view__top-row--mini-${C3}`,
|
|
14765
14776
|
children: [
|
|
14766
14777
|
Y && /* @__PURE__ */ e("div", {
|
|
@@ -14806,7 +14817,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14806
14817
|
Z1(l1, N1 === l1 ? H1 : "asc");
|
|
14807
14818
|
}
|
|
14808
14819
|
})
|
|
14809
|
-
}), /* @__PURE__ */ e(
|
|
14820
|
+
}), /* @__PURE__ */ e(K, {
|
|
14810
14821
|
title: H1 === "asc" ? "Sort descending" : "Sort ascending",
|
|
14811
14822
|
children: /* @__PURE__ */ e(T, {
|
|
14812
14823
|
className: "data-view__card-sort-direction",
|
|
@@ -14826,7 +14837,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14826
14837
|
children: $.filter
|
|
14827
14838
|
}, $.key))
|
|
14828
14839
|
}),
|
|
14829
|
-
/* @__PURE__ */ e(
|
|
14840
|
+
/* @__PURE__ */ e(Ac, {
|
|
14830
14841
|
data: G,
|
|
14831
14842
|
columns: t,
|
|
14832
14843
|
rowKey: G1,
|
|
@@ -14888,7 +14899,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14888
14899
|
onClick: () => D0($),
|
|
14889
14900
|
children: [/* @__PURE__ */ c("span", {
|
|
14890
14901
|
className: "data-view__th-content",
|
|
14891
|
-
children: [Y2($), $.sortable && /* @__PURE__ */ e(
|
|
14902
|
+
children: [Y2($), $.sortable && /* @__PURE__ */ e(Tc, { state: N1 === $.key ? H1 : "unsorted" })]
|
|
14892
14903
|
}), /* @__PURE__ */ e("span", {
|
|
14893
14904
|
className: "data-view__resizer",
|
|
14894
14905
|
onMouseDown: (p1) => w0(p1, $.key),
|
|
@@ -14946,7 +14957,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14946
14957
|
children: [
|
|
14947
14958
|
o0 && /* @__PURE__ */ e("td", {
|
|
14948
14959
|
className: "data-view__timeline-cell",
|
|
14949
|
-
children: T1 && /* @__PURE__ */ e(
|
|
14960
|
+
children: T1 && /* @__PURE__ */ e(Sc, { marker: T1 })
|
|
14950
14961
|
}),
|
|
14951
14962
|
h && /* @__PURE__ */ e("td", {
|
|
14952
14963
|
className: "data-view__checkbox",
|
|
@@ -14959,7 +14970,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14959
14970
|
}),
|
|
14960
14971
|
C0.map((b1, P0) => /* @__PURE__ */ c("td", {
|
|
14961
14972
|
style: a1[b1.key] ? { width: a1[b1.key] } : void 0,
|
|
14962
|
-
children: [P0 === 0 && S1 && /* @__PURE__ */ e(
|
|
14973
|
+
children: [P0 === 0 && S1 && /* @__PURE__ */ e(K, {
|
|
14963
14974
|
title: "Pinned",
|
|
14964
14975
|
children: /* @__PURE__ */ e(P, {
|
|
14965
14976
|
className: "data-view__pin-indicator",
|
|
@@ -15046,11 +15057,11 @@ var t0 = (t) => {
|
|
|
15046
15057
|
const [r, l, a] = t.split("-").map((h) => Number(h));
|
|
15047
15058
|
if (!(!r || !l || !a))
|
|
15048
15059
|
return new Date(r, l - 1, a);
|
|
15049
|
-
}, H0 = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`,
|
|
15060
|
+
}, H0 = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, ai = ({ label: t, value: r, onChange: l, min: a, max: h, alwaysOpen: d = !1, autoClose: o = !0, presets: m }) => {
|
|
15050
15061
|
const [n, i] = z({}), [s, p] = z(() => /* @__PURE__ */ new Date()), [u, g] = z(null), [v, w] = z(d), [f, y] = z({
|
|
15051
15062
|
position: "fixed",
|
|
15052
15063
|
visibility: "hidden"
|
|
15053
|
-
}), [b, C] = z(r?.start ?? ""), [x, k] = z(r?.end ?? ""), H =
|
|
15064
|
+
}), [b, C] = z(r?.start ?? ""), [x, k] = z(r?.end ?? ""), H = X(null), L = X(null), M = r ?? n, V = t0(M.start), S = t0(M.end), _ = V && S ? {
|
|
15054
15065
|
start: V,
|
|
15055
15066
|
end: S
|
|
15056
15067
|
} : void 0, R = (U) => {
|
|
@@ -15125,7 +15136,7 @@ var t0 = (t) => {
|
|
|
15125
15136
|
children: [/* @__PURE__ */ c("div", {
|
|
15126
15137
|
className: "date-range-picker__nav",
|
|
15127
15138
|
children: [
|
|
15128
|
-
/* @__PURE__ */ e(
|
|
15139
|
+
/* @__PURE__ */ e(K, {
|
|
15129
15140
|
title: "Previous month",
|
|
15130
15141
|
children: /* @__PURE__ */ e(T, {
|
|
15131
15142
|
variant: "default",
|
|
@@ -15142,7 +15153,7 @@ var t0 = (t) => {
|
|
|
15142
15153
|
" ",
|
|
15143
15154
|
t1.getFullYear()
|
|
15144
15155
|
] }),
|
|
15145
|
-
/* @__PURE__ */ e(
|
|
15156
|
+
/* @__PURE__ */ e(K, {
|
|
15146
15157
|
title: "Next month",
|
|
15147
15158
|
children: /* @__PURE__ */ e(T, {
|
|
15148
15159
|
variant: "default",
|
|
@@ -15284,7 +15295,7 @@ function X2(t, r) {
|
|
|
15284
15295
|
}
|
|
15285
15296
|
return m;
|
|
15286
15297
|
}
|
|
15287
|
-
function
|
|
15298
|
+
function Ic(t, r) {
|
|
15288
15299
|
const l = X2(t.split(`
|
|
15289
15300
|
`), r.split(`
|
|
15290
15301
|
`)), a = [];
|
|
@@ -15318,17 +15329,17 @@ function Tc(t, r) {
|
|
|
15318
15329
|
}
|
|
15319
15330
|
return a;
|
|
15320
15331
|
}
|
|
15321
|
-
function
|
|
15332
|
+
function Gc(t, r) {
|
|
15322
15333
|
const l = (a) => a.match(/\S+|\s+/g) ?? [];
|
|
15323
15334
|
return X2(l(t), l(r));
|
|
15324
15335
|
}
|
|
15325
|
-
var
|
|
15336
|
+
var Zc = ({ a: t, b: r, side: l }) => /* @__PURE__ */ e(n1, { children: Gc(t, r).map((a, h) => a.kind === "eq" ? /* @__PURE__ */ e("span", { children: a.val }, h) : a.kind === "del" && l === "old" ? /* @__PURE__ */ e("mark", {
|
|
15326
15337
|
className: "dv-word dv-word--del",
|
|
15327
15338
|
children: a.val
|
|
15328
15339
|
}, h) : a.kind === "ins" && l === "new" ? /* @__PURE__ */ e("mark", {
|
|
15329
15340
|
className: "dv-word dv-word--ins",
|
|
15330
15341
|
children: a.val
|
|
15331
|
-
}, h) : null) }),
|
|
15342
|
+
}, h) : null) }), Pc = [
|
|
15332
15343
|
{
|
|
15333
15344
|
name: "comment",
|
|
15334
15345
|
pattern: /\/\/.*$|\/\*[\s\S]*?\*\/|#.*$/m
|
|
@@ -15358,12 +15369,12 @@ var Gc = ({ a: t, b: r, side: l }) => /* @__PURE__ */ e(n1, { children: Ic(t, r)
|
|
|
15358
15369
|
pattern: /\b[a-zA-Z_$][a-zA-Z0-9_$]*(?=\s*\()/
|
|
15359
15370
|
}
|
|
15360
15371
|
];
|
|
15361
|
-
function
|
|
15372
|
+
function jc(t) {
|
|
15362
15373
|
const r = [];
|
|
15363
15374
|
let l = t;
|
|
15364
15375
|
for (; l.length > 0; ) {
|
|
15365
15376
|
let a = !1;
|
|
15366
|
-
for (const { name: h, pattern: d } of
|
|
15377
|
+
for (const { name: h, pattern: d } of Pc) {
|
|
15367
15378
|
const o = l.match(new RegExp(`^(?:${d.source})`, d.flags));
|
|
15368
15379
|
if (o) {
|
|
15369
15380
|
r.push({
|
|
@@ -15380,18 +15391,18 @@ function Pc(t) {
|
|
|
15380
15391
|
}
|
|
15381
15392
|
return r;
|
|
15382
15393
|
}
|
|
15383
|
-
var
|
|
15394
|
+
var Wc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => jc(t), [t]).map((r, l) => r.name === "plain" ? /* @__PURE__ */ e("span", { children: r.val }, l) : /* @__PURE__ */ e("span", {
|
|
15384
15395
|
className: `dv-token dv-token--${r.name}`,
|
|
15385
15396
|
children: r.val
|
|
15386
15397
|
}, l)) }), X0 = ({ line: t, side: r, type: l }) => {
|
|
15387
15398
|
const a = r === "old" ? t.text ?? t.oldText ?? "" : t.text ?? t.newText ?? "";
|
|
15388
|
-
return t.kind !== "equal" && t.oldText !== void 0 && t.newText !== void 0 ? /* @__PURE__ */ e(
|
|
15399
|
+
return t.kind !== "equal" && t.oldText !== void 0 && t.newText !== void 0 ? /* @__PURE__ */ e(Zc, {
|
|
15389
15400
|
a: t.oldText,
|
|
15390
15401
|
b: t.newText,
|
|
15391
15402
|
side: r
|
|
15392
|
-
}) : l === "code" ? /* @__PURE__ */ e(
|
|
15393
|
-
},
|
|
15394
|
-
const m = u1(() =>
|
|
15403
|
+
}) : l === "code" ? /* @__PURE__ */ e(Wc, { text: a }) : /* @__PURE__ */ e(n1, { children: a });
|
|
15404
|
+
}, ii = ({ oldValue: t, newValue: r, mode: l = "split", type: a = "text", oldTitle: h = "Before", newTitle: d = "After", showLineNumbers: o = !0 }) => {
|
|
15405
|
+
const m = u1(() => Ic(t, r), [t, r]), n = u1(() => ({
|
|
15395
15406
|
added: m.filter((i) => i.kind === "added").length,
|
|
15396
15407
|
removed: m.filter((i) => i.kind === "removed").length
|
|
15397
15408
|
}), [m]);
|
|
@@ -15511,7 +15522,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
15511
15522
|
})
|
|
15512
15523
|
})]
|
|
15513
15524
|
});
|
|
15514
|
-
},
|
|
15525
|
+
}, Uc = 1e3, M2 = 0, K2 = ({ isOpen: t, onClose: r, position: l = "left", width: a = "320px", maxWidth: h = "none", margin: d = 0, borderRadius: o = 0, shadow: m = "none", children: n, title: i, icon: s, className: p = "", showOverlay: u = !0, lockScroll: g = !0, hideClose: v = !1, actions: w = [], onBack: f, backLabel: y = "Back", primary: b, secondary: C, footer: x }) => {
|
|
15515
15526
|
$2(t && g);
|
|
15516
15527
|
const [k, H] = z(0);
|
|
15517
15528
|
if (F(() => {
|
|
@@ -15522,7 +15533,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
15522
15533
|
};
|
|
15523
15534
|
return document.addEventListener("keydown", _), () => document.removeEventListener("keydown", _);
|
|
15524
15535
|
}, [t, r]), !t) return null;
|
|
15525
|
-
const L = (_) => typeof _ == "number" ? `${_}px` : _, M =
|
|
15536
|
+
const L = (_) => typeof _ == "number" ? `${_}px` : _, M = Uc + k * 2, V = {
|
|
15526
15537
|
"--drawer-width": a,
|
|
15527
15538
|
"--drawer-max-width": L(h),
|
|
15528
15539
|
"--drawer-margin": L(d),
|
|
@@ -15541,7 +15552,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
15541
15552
|
/* @__PURE__ */ c("div", {
|
|
15542
15553
|
className: "drawer__header",
|
|
15543
15554
|
children: [
|
|
15544
|
-
f && /* @__PURE__ */ e(
|
|
15555
|
+
f && /* @__PURE__ */ e(K, {
|
|
15545
15556
|
title: y,
|
|
15546
15557
|
position: "bottom",
|
|
15547
15558
|
children: /* @__PURE__ */ e(T, {
|
|
@@ -15571,14 +15582,14 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
15571
15582
|
variant: _.variant ?? "ghost",
|
|
15572
15583
|
children: _.label
|
|
15573
15584
|
}), B = _.title ?? _.label;
|
|
15574
|
-
return B ? /* @__PURE__ */ e(
|
|
15585
|
+
return B ? /* @__PURE__ */ e(K, {
|
|
15575
15586
|
title: B,
|
|
15576
15587
|
position: "bottom",
|
|
15577
15588
|
children: R
|
|
15578
15589
|
}, _.id) : /* @__PURE__ */ e(g1.Fragment, { children: R }, _.id);
|
|
15579
15590
|
})
|
|
15580
15591
|
}),
|
|
15581
|
-
!v && /* @__PURE__ */ e(
|
|
15592
|
+
!v && /* @__PURE__ */ e(K, {
|
|
15582
15593
|
title: "Close drawer",
|
|
15583
15594
|
children: /* @__PURE__ */ e(T, {
|
|
15584
15595
|
className: "drawer__close",
|
|
@@ -15618,7 +15629,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
15618
15629
|
})
|
|
15619
15630
|
]
|
|
15620
15631
|
})] });
|
|
15621
|
-
},
|
|
15632
|
+
}, Fc = {
|
|
15622
15633
|
"⚽": [
|
|
15623
15634
|
"soccer",
|
|
15624
15635
|
"football",
|
|
@@ -16122,7 +16133,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
16122
16133
|
"bike",
|
|
16123
16134
|
"sport"
|
|
16124
16135
|
]
|
|
16125
|
-
},
|
|
16136
|
+
}, Oc = {
|
|
16126
16137
|
"🐶": [
|
|
16127
16138
|
"dog",
|
|
16128
16139
|
"puppy",
|
|
@@ -16619,7 +16630,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
16619
16630
|
"animal",
|
|
16620
16631
|
"wild"
|
|
16621
16632
|
]
|
|
16622
|
-
},
|
|
16633
|
+
}, Yc = {
|
|
16623
16634
|
"🍎": [
|
|
16624
16635
|
"apple",
|
|
16625
16636
|
"fruit",
|
|
@@ -17155,7 +17166,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
17155
17166
|
"pop",
|
|
17156
17167
|
"cork"
|
|
17157
17168
|
]
|
|
17158
|
-
},
|
|
17169
|
+
}, qc = {
|
|
17159
17170
|
"⌚": [
|
|
17160
17171
|
"watch",
|
|
17161
17172
|
"time",
|
|
@@ -17803,7 +17814,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
17803
17814
|
"restroom",
|
|
17804
17815
|
"wc"
|
|
17805
17816
|
]
|
|
17806
|
-
},
|
|
17817
|
+
}, Xc = {
|
|
17807
17818
|
"👋": [
|
|
17808
17819
|
"wave",
|
|
17809
17820
|
"hello",
|
|
@@ -18287,7 +18298,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
18287
18298
|
"girl",
|
|
18288
18299
|
"tiara"
|
|
18289
18300
|
]
|
|
18290
|
-
},
|
|
18301
|
+
}, Kc = {
|
|
18291
18302
|
"😀": [
|
|
18292
18303
|
"grinning",
|
|
18293
18304
|
"happy",
|
|
@@ -18821,7 +18832,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
18821
18832
|
"tipsy",
|
|
18822
18833
|
"confused"
|
|
18823
18834
|
]
|
|
18824
|
-
},
|
|
18835
|
+
}, Qc = {
|
|
18825
18836
|
"❤️": [
|
|
18826
18837
|
"heart",
|
|
18827
18838
|
"red",
|
|
@@ -19414,7 +19425,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
19414
19425
|
"forbidden",
|
|
19415
19426
|
"symbol"
|
|
19416
19427
|
]
|
|
19417
|
-
},
|
|
19428
|
+
}, Jc = {
|
|
19418
19429
|
"🚗": [
|
|
19419
19430
|
"car",
|
|
19420
19431
|
"automobile",
|
|
@@ -19917,15 +19928,15 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
19917
19928
|
"country",
|
|
19918
19929
|
"asia"
|
|
19919
19930
|
]
|
|
19920
|
-
},
|
|
19931
|
+
}, el = {
|
|
19932
|
+
...Kc,
|
|
19921
19933
|
...Xc,
|
|
19922
|
-
...qc,
|
|
19923
|
-
...Fc,
|
|
19924
19934
|
...Oc,
|
|
19925
|
-
...Qc,
|
|
19926
|
-
...Uc,
|
|
19927
19935
|
...Yc,
|
|
19928
|
-
...
|
|
19936
|
+
...Jc,
|
|
19937
|
+
...Fc,
|
|
19938
|
+
...qc,
|
|
19939
|
+
...Qc
|
|
19929
19940
|
}, S0 = [
|
|
19930
19941
|
{
|
|
19931
19942
|
id: "smileys",
|
|
@@ -20665,18 +20676,18 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
20665
20676
|
"🈲"
|
|
20666
20677
|
]
|
|
20667
20678
|
}
|
|
20668
|
-
],
|
|
20679
|
+
], ni = ({ value: t, onChange: r }) => {
|
|
20669
20680
|
const [l, a] = z(""), [h, d] = z(S0[0].id), o = u1(() => {
|
|
20670
20681
|
if (!l.trim()) return null;
|
|
20671
20682
|
const n = l.toLowerCase();
|
|
20672
|
-
return S0.flatMap((i) => i.emojis.filter((s) =>
|
|
20683
|
+
return S0.flatMap((i) => i.emojis.filter((s) => el[s]?.some((p) => p.includes(n)) || i.name.toLowerCase().includes(n)));
|
|
20673
20684
|
}, [l]), m = o ?? S0.find((n) => n.id === h)?.emojis ?? [];
|
|
20674
20685
|
return /* @__PURE__ */ c("div", {
|
|
20675
20686
|
className: "emoji-picker",
|
|
20676
20687
|
children: [
|
|
20677
20688
|
/* @__PURE__ */ e("div", {
|
|
20678
20689
|
className: "emoji-picker__search",
|
|
20679
|
-
children: /* @__PURE__ */ e(
|
|
20690
|
+
children: /* @__PURE__ */ e(a0, {
|
|
20680
20691
|
placeholder: "Search emoji...",
|
|
20681
20692
|
value: l,
|
|
20682
20693
|
onChange: a,
|
|
@@ -20705,7 +20716,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
20705
20716
|
})
|
|
20706
20717
|
]
|
|
20707
20718
|
});
|
|
20708
|
-
},
|
|
20719
|
+
}, oi = class extends k3 {
|
|
20709
20720
|
constructor(...t) {
|
|
20710
20721
|
super(...t), this.state = { error: null }, this.reset = () => {
|
|
20711
20722
|
this.setState({ error: null });
|
|
@@ -20733,8 +20744,8 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
20733
20744
|
})
|
|
20734
20745
|
}) : r;
|
|
20735
20746
|
}
|
|
20736
|
-
},
|
|
20737
|
-
const [d, o] = z(!1), [m, n] = z([]), i =
|
|
20747
|
+
}, si = ({ label: t, accept: r, multiple: l = !1, showPreview: a = !0, onFiles: h }) => {
|
|
20748
|
+
const [d, o] = z(!1), [m, n] = z([]), i = X(null), [s, p] = z([]);
|
|
20738
20749
|
F(() => {
|
|
20739
20750
|
if (!a) return;
|
|
20740
20751
|
const v = m.filter((w) => w.type.startsWith("image/")).map((w) => URL.createObjectURL(w));
|
|
@@ -20796,11 +20807,11 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
20796
20807
|
})
|
|
20797
20808
|
]
|
|
20798
20809
|
});
|
|
20799
|
-
},
|
|
20810
|
+
}, hi = ({ actions: t }) => {
|
|
20800
20811
|
const [r, l] = z(!1);
|
|
20801
20812
|
if (t.length === 1) return /* @__PURE__ */ e("div", {
|
|
20802
20813
|
className: "float-button-container",
|
|
20803
|
-
children: /* @__PURE__ */ e(
|
|
20814
|
+
children: /* @__PURE__ */ e(K, {
|
|
20804
20815
|
title: t[0].label,
|
|
20805
20816
|
position: "left",
|
|
20806
20817
|
children: /* @__PURE__ */ e("button", {
|
|
@@ -20839,7 +20850,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
20839
20850
|
children: d.label
|
|
20840
20851
|
})]
|
|
20841
20852
|
}, `float-button-${o}`))
|
|
20842
|
-
})] }), /* @__PURE__ */ e(
|
|
20853
|
+
})] }), /* @__PURE__ */ e(K, {
|
|
20843
20854
|
title: "Actions menu",
|
|
20844
20855
|
children: /* @__PURE__ */ e("button", {
|
|
20845
20856
|
className: `float-button ${r ? "float-button--active" : ""}`,
|
|
@@ -20857,7 +20868,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
20857
20868
|
}, Q2 = () => /* @__PURE__ */ e("div", {
|
|
20858
20869
|
className: "loading",
|
|
20859
20870
|
children: /* @__PURE__ */ e("div", { className: "loading__spinner" })
|
|
20860
|
-
}),
|
|
20871
|
+
}), di = ({ isOpen: t, title: r = "Select a folder", initialPath: l, loadDirectory: a, onSelect: h, onClose: d, selectLabel: o = "Select this folder" }) => {
|
|
20861
20872
|
const [m, n] = z(null), [i, s] = z(!1), [p, u] = z(""), g = Z(async (b) => {
|
|
20862
20873
|
s(!0);
|
|
20863
20874
|
try {
|
|
@@ -20987,8 +20998,8 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
20987
20998
|
]
|
|
20988
20999
|
})
|
|
20989
21000
|
});
|
|
20990
|
-
},
|
|
20991
|
-
const s =
|
|
21001
|
+
}, mi = ({ children: t, onLoadMore: r, hasMore: l, isLoading: a = !1, threshold: h = 0, rootMargin: d = "0px", height: o, onScrollChange: m, endMessage: n, className: i }) => {
|
|
21002
|
+
const s = X(null), p = X(null), u = X(null), g = Z(() => {
|
|
20992
21003
|
const v = s.current;
|
|
20993
21004
|
if (!v) return;
|
|
20994
21005
|
const { scrollTop: w, scrollHeight: f, clientHeight: y } = v, b = {
|
|
@@ -21044,8 +21055,8 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
21044
21055
|
})
|
|
21045
21056
|
]
|
|
21046
21057
|
});
|
|
21047
|
-
},
|
|
21048
|
-
const [H, L] = z(!0), [M, V] = z(!1), S = (E) => f && (!E || E.trim() === "") ? !1 : !E || E.trim() === "" ? !0 :
|
|
21058
|
+
}, tl = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, rl = (t) => !t || t.trim() === "" ? !0 : tl.test(t.trim()), pi = z1(({ autoComplete: t = "on", autoFocus: r, disabled: l, error: a = "Please enter a valid email address", highlighted: h, id: d, label: o, maxLength: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, onValidate: g, placeholder: v, readOnly: w = !1, required: f = !1, showValidation: y = !1, success: b, validateOn: C = "blur", value: x }, k) => {
|
|
21059
|
+
const [H, L] = z(!0), [M, V] = z(!1), S = (E) => f && (!E || E.trim() === "") ? !1 : !E || E.trim() === "" ? !0 : rl(E);
|
|
21049
21060
|
F(() => {
|
|
21050
21061
|
if (x !== void 0) {
|
|
21051
21062
|
const E = S(x);
|
|
@@ -21108,7 +21119,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
21108
21119
|
})
|
|
21109
21120
|
]
|
|
21110
21121
|
});
|
|
21111
|
-
}),
|
|
21122
|
+
}), vi = z1(({ accept: t, disabled: r, error: l, highlighted: a, id: h, label: d, onChange: o, onClick: m, onKeyDown: n, placeholder: i, required: s, success: p, value: u }, g) => /* @__PURE__ */ c("div", {
|
|
21112
21123
|
className: `input-file-wrapper${a ? " input-file-highlighted" : ""}`,
|
|
21113
21124
|
children: [
|
|
21114
21125
|
d && /* @__PURE__ */ c("label", {
|
|
@@ -21146,16 +21157,16 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t])
|
|
|
21146
21157
|
a: /[a-zA-Z]/,
|
|
21147
21158
|
"*": /[a-zA-Z0-9]/
|
|
21148
21159
|
};
|
|
21149
|
-
function
|
|
21160
|
+
function cl(t) {
|
|
21150
21161
|
return t in J2;
|
|
21151
21162
|
}
|
|
21152
|
-
function
|
|
21163
|
+
function ll(t) {
|
|
21153
21164
|
const r = [];
|
|
21154
21165
|
let l = 0;
|
|
21155
21166
|
for (; l < t.length; ) t[l] === "\\" && l + 1 < t.length ? (r.push({
|
|
21156
21167
|
type: "literal",
|
|
21157
21168
|
char: t[l + 1]
|
|
21158
|
-
}), l += 2) :
|
|
21169
|
+
}), l += 2) : cl(t[l]) ? (r.push({
|
|
21159
21170
|
type: "token",
|
|
21160
21171
|
key: t[l]
|
|
21161
21172
|
}), l++) : (r.push({
|
|
@@ -21176,11 +21187,11 @@ function K0(t, r, l) {
|
|
|
21176
21187
|
rawAccepted: d
|
|
21177
21188
|
};
|
|
21178
21189
|
}
|
|
21179
|
-
function
|
|
21190
|
+
function al(t) {
|
|
21180
21191
|
return t.filter((r) => r.type === "token").length;
|
|
21181
21192
|
}
|
|
21182
|
-
var
|
|
21183
|
-
const H = g1.useMemo(() =>
|
|
21193
|
+
var il = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, label: d, hint: o, error: m, highlighted: n, size: i = "md", variant: s = "default", disabled: p = !1, readOnly: u = !1, maskChar: g = "_", mono: v = !0, icon: w, suffix: f, className: y = "", id: b, name: C, autoComplete: x }, k) => {
|
|
21194
|
+
const H = g1.useMemo(() => ll(t), [t]), L = g1.useMemo(() => al(H), [H]), M = z0(), V = b ?? M, [S, _] = z(() => r !== void 0 ? r : ""), R = X(null);
|
|
21184
21195
|
B2(k, () => ({
|
|
21185
21196
|
focus: () => R.current?.focus(),
|
|
21186
21197
|
clear: () => {
|
|
@@ -21282,8 +21293,8 @@ var al = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, la
|
|
|
21282
21293
|
]
|
|
21283
21294
|
});
|
|
21284
21295
|
});
|
|
21285
|
-
|
|
21286
|
-
var
|
|
21296
|
+
il.displayName = "InputMask";
|
|
21297
|
+
var ui = {
|
|
21287
21298
|
creditCard: "9999 9999 9999 9999",
|
|
21288
21299
|
iban: "aa99 9999 9999 9999 9999 99",
|
|
21289
21300
|
cvv: "999",
|
|
@@ -21334,7 +21345,7 @@ var vi = {
|
|
|
21334
21345
|
children: f
|
|
21335
21346
|
})
|
|
21336
21347
|
]
|
|
21337
|
-
})),
|
|
21348
|
+
})), nl = "+## (###) ###-####";
|
|
21338
21349
|
function Q0(t, r) {
|
|
21339
21350
|
let l = 0, a = "";
|
|
21340
21351
|
for (let h = 0; h < r.length && !(l >= t.length); h++)
|
|
@@ -21344,12 +21355,12 @@ function Q0(t, r) {
|
|
|
21344
21355
|
function J0(t) {
|
|
21345
21356
|
return t.replace(/\D/g, "");
|
|
21346
21357
|
}
|
|
21347
|
-
function
|
|
21358
|
+
function ol(t) {
|
|
21348
21359
|
return t.split("").filter((r) => r === "#").length;
|
|
21349
21360
|
}
|
|
21350
|
-
var
|
|
21361
|
+
var sl = z1(({ autoFocus: t, disabled: r, error: l, format: a = nl, highlighted: h, id: d, label: o, onBlur: m, onChange: n, onClick: i, onKeyDown: s, placeholder: p, readOnly: u = !1, required: g = !1, success: v, value: w }, f) => {
|
|
21351
21362
|
const y = w !== void 0, [b, C] = z(() => w ? Q0(J0(w), a) : ""), x = y ? Q0(J0(w ?? ""), a) : b, k = p ?? a.replace(/#/g, "0"), H = a.length, L = (M) => {
|
|
21352
|
-
const V = J0(M), S =
|
|
21363
|
+
const V = J0(M), S = ol(a), _ = V.slice(0, S), R = Q0(_, a);
|
|
21353
21364
|
y || C(R), n?.(R, _);
|
|
21354
21365
|
};
|
|
21355
21366
|
return /* @__PURE__ */ c("div", {
|
|
@@ -21408,8 +21419,8 @@ var ol = z1(({ autoFocus: t, disabled: r, error: l, format: a = il, highlighted:
|
|
|
21408
21419
|
]
|
|
21409
21420
|
});
|
|
21410
21421
|
});
|
|
21411
|
-
|
|
21412
|
-
var
|
|
21422
|
+
sl.displayName = "InputPhone";
|
|
21423
|
+
var gi = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error: h, id: d, label: o, maxLength: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, placeholder: g, required: v, rows: w, success: f, value: y }, b) => /* @__PURE__ */ c("div", {
|
|
21413
21424
|
className: "input-textarea-wrapper",
|
|
21414
21425
|
children: [
|
|
21415
21426
|
o && /* @__PURE__ */ c("label", {
|
|
@@ -21447,7 +21458,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21447
21458
|
children: f
|
|
21448
21459
|
})
|
|
21449
21460
|
]
|
|
21450
|
-
})),
|
|
21461
|
+
})), wi = z1(({ autoFocus: t, disabled: r, error: l, highlighted: a, id: h, label: d, max: o, min: m, onBlur: n, onChange: i, onClick: s, onKeyDown: p, onKeyUp: u, readOnly: g = !1, required: v = !1, success: w, value: f }, y) => /* @__PURE__ */ c("div", {
|
|
21451
21462
|
className: `input-time-wrapper${a ? " input-time-highlighted" : ""}`,
|
|
21452
21463
|
children: [
|
|
21453
21464
|
d && /* @__PURE__ */ c("label", {
|
|
@@ -21485,19 +21496,19 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21485
21496
|
children: w
|
|
21486
21497
|
})
|
|
21487
21498
|
]
|
|
21488
|
-
})),
|
|
21499
|
+
})), hl = "Please enter a valid URL (e.g. https://example.com)", dl = (t) => {
|
|
21489
21500
|
try {
|
|
21490
21501
|
const r = new URL(t);
|
|
21491
21502
|
return r.protocol === "http:" || r.protocol === "https:";
|
|
21492
21503
|
} catch {
|
|
21493
21504
|
return !1;
|
|
21494
21505
|
}
|
|
21495
|
-
},
|
|
21506
|
+
}, fi = z1(({ autoFocus: t, disabled: r, error: l, highlighted: a, id: h, label: d, maxLength: o, onBlur: m, onChange: n, onClick: i, onKeyDown: s, onKeyUp: p, onValidationChange: u, placeholder: g = "https://...", readOnly: v = !1, required: w = !1, success: f, validationErrorMessage: y, value: b }, C) => {
|
|
21496
21507
|
const [x, k] = z(void 0), H = (S) => {
|
|
21497
21508
|
if (!S)
|
|
21498
21509
|
return k(void 0), u?.(!0), !0;
|
|
21499
|
-
const _ =
|
|
21500
|
-
return k(_ ? void 0 : y ??
|
|
21510
|
+
const _ = dl(S);
|
|
21511
|
+
return k(_ ? void 0 : y ?? hl), u?.(_), _;
|
|
21501
21512
|
}, L = (S) => {
|
|
21502
21513
|
n?.(S), x && H(S);
|
|
21503
21514
|
}, M = (S) => {
|
|
@@ -21542,7 +21553,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21542
21553
|
})
|
|
21543
21554
|
]
|
|
21544
21555
|
});
|
|
21545
|
-
}),
|
|
21556
|
+
}), Ci = ({ isOpen: t, onClose: r, onComplete: l, steps: a, title: h, presentation: d = "drawer", width: o = "480px" }) => {
|
|
21546
21557
|
const [m, n] = z(0);
|
|
21547
21558
|
F(() => {
|
|
21548
21559
|
t && n(0);
|
|
@@ -21677,7 +21688,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21677
21688
|
})]
|
|
21678
21689
|
})
|
|
21679
21690
|
});
|
|
21680
|
-
},
|
|
21691
|
+
}, yi = ({ items: t, direction: r = "vertical", selectable: l = !1, defaultSelectedId: a, onSelect: h, className: d = "" }) => {
|
|
21681
21692
|
const [o, m] = z(a), n = (i) => {
|
|
21682
21693
|
!l || i.disabled || (m(i.id), h?.(i));
|
|
21683
21694
|
};
|
|
@@ -21697,7 +21708,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21697
21708
|
}, i.id);
|
|
21698
21709
|
})
|
|
21699
21710
|
});
|
|
21700
|
-
},
|
|
21711
|
+
}, ml = ({ icon: t = "menu-hamburger", isCompact: r, items: l, label: a, showLabel: h = !0, disableResponsive: d = !1 }) => {
|
|
21701
21712
|
const { isAtLeast: o } = g0(), [m, n] = z(null), i = (v) => {
|
|
21702
21713
|
n(v.currentTarget);
|
|
21703
21714
|
}, s = () => {
|
|
@@ -21750,8 +21761,8 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21750
21761
|
})
|
|
21751
21762
|
})]
|
|
21752
21763
|
});
|
|
21753
|
-
}, M0 = (t) => Math.max(0, Math.min(1, t)),
|
|
21754
|
-
const m =
|
|
21764
|
+
}, M0 = (t) => Math.max(0, Math.min(1, t)), bi = ({ buckets: t, viewportStart: r, viewportEnd: l, onScrub: a, bands: h, caption: d, className: o = "" }) => {
|
|
21765
|
+
const m = X(null), n = X(!1), i = Math.max(0, l - r), s = Math.max(1, ...t), p = Z((w) => {
|
|
21755
21766
|
const f = m.current;
|
|
21756
21767
|
if (!f) return;
|
|
21757
21768
|
const y = f.getBoundingClientRect(), b = M0((w - y.left) / y.width);
|
|
@@ -21804,7 +21815,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21804
21815
|
]
|
|
21805
21816
|
})]
|
|
21806
21817
|
});
|
|
21807
|
-
},
|
|
21818
|
+
}, Mi = ({ label: t, value: r, unit: l, variant: a = "default", align: h = "center", labelPosition: d = "bottom", trend: o, trendUnit: m = "%", trendLabel: n, trendVariant: i = "success", footer: s, filled: p = !1, className: u = "" }) => {
|
|
21808
21819
|
const g = () => /* @__PURE__ */ c("div", {
|
|
21809
21820
|
className: `mini-stats-card__value mini-stats-card__value--${a}`,
|
|
21810
21821
|
children: [/* @__PURE__ */ e("span", {
|
|
@@ -21862,7 +21873,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21862
21873
|
children: s
|
|
21863
21874
|
})]
|
|
21864
21875
|
});
|
|
21865
|
-
},
|
|
21876
|
+
}, xi = ({ items: t, logo: r, actions: l, position: a = "static", className: h = "", renderItem: d, collapsible: o = !1, noPadding: m = !1 }) => {
|
|
21866
21877
|
const [n, i] = z(!1), s = (v) => {
|
|
21867
21878
|
v.disabled || (v.onClick && v.onClick(), o && i(!1));
|
|
21868
21879
|
}, p = (v) => /* @__PURE__ */ c("button", {
|
|
@@ -21916,8 +21927,8 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21916
21927
|
})
|
|
21917
21928
|
]
|
|
21918
21929
|
});
|
|
21919
|
-
},
|
|
21920
|
-
const [h, d] = z(!1), [o, m] = z({ opacity: 0 }), n =
|
|
21930
|
+
}, pl = ({ items: t, buttonLabel: r = "Alerts", panelTitle: l = "Notifications", emptyMessage: a = "No active notifications." }) => {
|
|
21931
|
+
const [h, d] = z(!1), [o, m] = z({ opacity: 0 }), n = X(null), i = X(null), s = t.some((u) => u.severity === "critical");
|
|
21921
21932
|
return F(() => {
|
|
21922
21933
|
if (!h || !n.current || !i.current) return;
|
|
21923
21934
|
const u = requestAnimationFrame(() => {
|
|
@@ -21973,7 +21984,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21973
21984
|
})]
|
|
21974
21985
|
})] }), document.body)]
|
|
21975
21986
|
});
|
|
21976
|
-
},
|
|
21987
|
+
}, vl = {
|
|
21977
21988
|
small: 120,
|
|
21978
21989
|
medium: 180,
|
|
21979
21990
|
large: 240
|
|
@@ -21989,7 +22000,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21989
22000
|
x: t + l * Math.cos(h),
|
|
21990
22001
|
y: r + l * Math.sin(h)
|
|
21991
22002
|
};
|
|
21992
|
-
},
|
|
22003
|
+
}, ul = (t, r, l, a) => {
|
|
21993
22004
|
const h = m0(t, t, r, a), d = m0(t, t, r, l), o = a - l <= 180 ? 0 : 1;
|
|
21994
22005
|
return [
|
|
21995
22006
|
"M",
|
|
@@ -22008,23 +22019,23 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22008
22019
|
d.y,
|
|
22009
22020
|
"Z"
|
|
22010
22021
|
].join(" ");
|
|
22011
|
-
},
|
|
22022
|
+
}, gl = (t) => `hsl(${Math.round((t * 137.508 + 28) % 360)} 72% 52%)`, wl = (t, r) => {
|
|
22012
22023
|
const l = t.variant ?? "default";
|
|
22013
|
-
return l === "custom" ? t.customColor || x2.default : l === "random" ?
|
|
22014
|
-
},
|
|
22015
|
-
const m =
|
|
22024
|
+
return l === "custom" ? t.customColor || x2.default : l === "random" ? gl(r) : x2[l];
|
|
22025
|
+
}, ki = ({ className: t = "", data: r = [], emptyLabel: l, gap: a = 1, size: h = "medium", valueFormatter: d, valuePosition: o = "inside" }) => {
|
|
22026
|
+
const m = vl[h], n = o === "outside" ? Math.round(m * 0.18) : 0, i = m / 2, s = Math.max(i - Math.max(a, 1), 1), p = `${-n} ${-n} ${m + n * 2} ${m + n * 2}`, u = u1(() => {
|
|
22016
22027
|
const x = r.filter((L) => Number.isFinite(L.value) && L.value > 0), k = x.reduce((L, M) => L + M.value, 0);
|
|
22017
22028
|
if (k <= 0) return [];
|
|
22018
22029
|
let H = 0;
|
|
22019
22030
|
return x.map((L, M) => {
|
|
22020
22031
|
const V = L.value / k * 360, S = H, _ = M === x.length - 1 ? 360 : H + V, R = S + (_ - S) / 2;
|
|
22021
22032
|
return H = _, {
|
|
22022
|
-
color:
|
|
22033
|
+
color: wl(L, M),
|
|
22023
22034
|
endAngle: _,
|
|
22024
22035
|
index: M,
|
|
22025
22036
|
label: d ? d(L.value, L, M) : L.value,
|
|
22026
22037
|
midAngle: R,
|
|
22027
|
-
path:
|
|
22038
|
+
path: ul(i, s, S, _),
|
|
22028
22039
|
startAngle: S,
|
|
22029
22040
|
value: L.value
|
|
22030
22041
|
};
|
|
@@ -22107,7 +22118,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22107
22118
|
]
|
|
22108
22119
|
})
|
|
22109
22120
|
});
|
|
22110
|
-
}, E0 = (t) => Number((typeof t == "number" ? t : Number(t)).toFixed(2)),
|
|
22121
|
+
}, E0 = (t) => Number((typeof t == "number" ? t : Number(t)).toFixed(2)), _i = (t, r) => (t > r && console.warn(`Could not get percent of value ${t} from a total ${r}. Total must be higher or at least equal to value.`), t === r ? t === 0 ? 0 : 100 : t / (r / 100)), Li = (t, r) => {
|
|
22111
22122
|
const l = t + r;
|
|
22112
22123
|
return l === 0 ? {
|
|
22113
22124
|
a: 0,
|
|
@@ -22116,7 +22127,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22116
22127
|
a: Math.round(t / l * 100 * 10) / 10,
|
|
22117
22128
|
b: Math.round(r / l * 100 * 10) / 10
|
|
22118
22129
|
};
|
|
22119
|
-
},
|
|
22130
|
+
}, zi = ({ animated: t = !1, height: r, label: l, labelAfterValue: a = !1, labelAlign: h = "left", labelPosition: d = "inside", orientation: o = "horizontal", showPercentage: m = !0, state: n = "default", striped: i = !1, thin: s = !1, value: p = 0 }) => {
|
|
22120
22131
|
const u = [
|
|
22121
22132
|
"progress-fill",
|
|
22122
22133
|
`progress-bar-${n}`,
|
|
@@ -22159,8 +22170,8 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22159
22170
|
small: 64,
|
|
22160
22171
|
medium: 96,
|
|
22161
22172
|
large: 128
|
|
22162
|
-
},
|
|
22163
|
-
const s = Math.min(Math.max(Number.isFinite(i) ? i : 0, 0), 100), p =
|
|
22173
|
+
}, fl = (t) => typeof t == "number" ? t : e3[t], Vi = ({ children: t, className: r = "", label: l, labelPosition: a = "below", rounded: h = !0, showPercentage: d = !0, size: o = "medium", state: m = "default", thickness: n, value: i }) => {
|
|
22174
|
+
const s = Math.min(Math.max(Number.isFinite(i) ? i : 0, 0), 100), p = fl(o), u = n ?? (p <= e3.small ? 6 : 8), g = Math.max((p - u) / 2, 1), v = 2 * Math.PI * g, w = v - s / 100 * v, f = u1(() => `${E0(s)}%`, [s]), y = t || (d ? f : a === "inside" ? l : null), b = a === "inside" && l && d && !t;
|
|
22164
22175
|
return /* @__PURE__ */ c("div", {
|
|
22165
22176
|
className: `progress-ring progress-ring--${m} ${r}`,
|
|
22166
22177
|
style: { "--progress-ring-size": `${p}px` },
|
|
@@ -22200,7 +22211,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22200
22211
|
children: l
|
|
22201
22212
|
})]
|
|
22202
22213
|
});
|
|
22203
|
-
},
|
|
22214
|
+
}, Ni = z1(({ disabled: t = !1, error: r, id: l, inputWidth: a, label: h, max: d, min: o = 0, onChange: m, readOnlyInput: n = !1, required: i = !1, step: s = 1, success: p, value: u }, g) => {
|
|
22204
22215
|
const w = a || (d !== void 0 ? Math.max(String(d).length, String(o).length, 3) : 3), f = () => {
|
|
22205
22216
|
if (t) return;
|
|
22206
22217
|
const C = (u ?? 0) - s;
|
|
@@ -22284,7 +22295,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22284
22295
|
})
|
|
22285
22296
|
]
|
|
22286
22297
|
});
|
|
22287
|
-
}),
|
|
22298
|
+
}), Hi = ({ isOpen: t = !1, onClose: r, placeholder: l, title: a, onSave: h, titleIcon: d, value: o = "", usePortal: m = !1 }) => {
|
|
22288
22299
|
const [n, i] = z(o), [s, p] = z(!1);
|
|
22289
22300
|
F(() => {
|
|
22290
22301
|
t && i(o);
|
|
@@ -22330,7 +22341,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22330
22341
|
})
|
|
22331
22342
|
})
|
|
22332
22343
|
});
|
|
22333
|
-
},
|
|
22344
|
+
}, Si = ({ isOpen: t = !1, title: r, onClose: l, onSave: a, icon: h, value: d, min: o, max: m }) => {
|
|
22334
22345
|
const [n, i] = z(d), [s, p] = z(!1), u = async () => {
|
|
22335
22346
|
p(!0), await a(n), p(!1), l();
|
|
22336
22347
|
};
|
|
@@ -22372,7 +22383,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22372
22383
|
})
|
|
22373
22384
|
})
|
|
22374
22385
|
});
|
|
22375
|
-
},
|
|
22386
|
+
}, Cl = ({ checked: t = !1, onChange: r, label: l, disabled: a = !1, name: h, value: d, id: o, className: m = "" }) => {
|
|
22376
22387
|
const n = z0(), i = o || n, s = (p) => {
|
|
22377
22388
|
r?.(p.target.checked && d !== void 0 ? d : p.target.checked);
|
|
22378
22389
|
};
|
|
@@ -22400,7 +22411,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22400
22411
|
})]
|
|
22401
22412
|
})]
|
|
22402
22413
|
});
|
|
22403
|
-
},
|
|
22414
|
+
}, Ri = ({ isOpen: t = !1, list: r, title: l, onClose: a, onSave: h, icon: d, value: o }) => {
|
|
22404
22415
|
const [m, n] = z(o), [i, s] = z(!1), [p, u] = z("");
|
|
22405
22416
|
F(() => {
|
|
22406
22417
|
n(o);
|
|
@@ -22444,7 +22455,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22444
22455
|
},
|
|
22445
22456
|
children: [/* @__PURE__ */ e("div", {
|
|
22446
22457
|
className: "quick-set-list",
|
|
22447
|
-
children: r && r.map(({ key: w, label: f }) => /* @__PURE__ */ e(
|
|
22458
|
+
children: r && r.map(({ key: w, label: f }) => /* @__PURE__ */ e(Cl, {
|
|
22448
22459
|
name: "ownership",
|
|
22449
22460
|
label: f,
|
|
22450
22461
|
checked: m === w,
|
|
@@ -22457,23 +22468,23 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22457
22468
|
})]
|
|
22458
22469
|
})
|
|
22459
22470
|
});
|
|
22460
|
-
},
|
|
22471
|
+
}, yl = (t) => t ? /<[a-z][\s\S]*>/i.test(t) ? t : t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").split(/\n{2,}/).map((r) => `<p>${r.replace(/\n/g, "<br>")}</p>`).join("") : "", bl = (t) => {
|
|
22461
22472
|
if (!t) return "";
|
|
22462
22473
|
const r = document.createElement("div");
|
|
22463
22474
|
return r.innerHTML = t, r.querySelectorAll("br").forEach((l) => l.replaceWith(`
|
|
22464
22475
|
`)), (r.textContent || "").trim();
|
|
22465
|
-
},
|
|
22476
|
+
}, Bi = (t) => {
|
|
22466
22477
|
if (!t) return [];
|
|
22467
|
-
const r =
|
|
22478
|
+
const r = yl(t), l = document.createElement("div");
|
|
22468
22479
|
l.innerHTML = r;
|
|
22469
22480
|
const a = Array.from(l.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6"));
|
|
22470
22481
|
if (a.length > 0) {
|
|
22471
|
-
const d = a.map((o) => o.innerHTML.trim()).filter((o) => o.length > 0 &&
|
|
22482
|
+
const d = a.map((o) => o.innerHTML.trim()).filter((o) => o.length > 0 && bl(o).length > 0);
|
|
22472
22483
|
if (d.length > 0) return d;
|
|
22473
22484
|
}
|
|
22474
22485
|
const h = l.innerHTML.trim();
|
|
22475
22486
|
return h ? [h] : [];
|
|
22476
|
-
},
|
|
22487
|
+
}, Ml = (t) => {
|
|
22477
22488
|
const r = document.createElement("div");
|
|
22478
22489
|
r.innerHTML = t;
|
|
22479
22490
|
const l = (a) => {
|
|
@@ -22568,7 +22579,7 @@ ${h.textContent ?? ""}
|
|
|
22568
22579
|
}
|
|
22569
22580
|
};
|
|
22570
22581
|
return Array.from(r.childNodes).map(l).join("").trim();
|
|
22571
|
-
},
|
|
22582
|
+
}, xl = [
|
|
22572
22583
|
{
|
|
22573
22584
|
command: "bold",
|
|
22574
22585
|
label: "B",
|
|
@@ -22594,7 +22605,7 @@ ${h.textContent ?? ""}
|
|
|
22594
22605
|
label: "1. List",
|
|
22595
22606
|
title: "Ordered List"
|
|
22596
22607
|
}
|
|
22597
|
-
],
|
|
22608
|
+
], kl = [{
|
|
22598
22609
|
command: "undo",
|
|
22599
22610
|
label: "↩ Undo",
|
|
22600
22611
|
title: "Undo (Ctrl+Z)"
|
|
@@ -22602,14 +22613,14 @@ ${h.textContent ?? ""}
|
|
|
22602
22613
|
command: "redo",
|
|
22603
22614
|
label: "↪ Redo",
|
|
22604
22615
|
title: "Redo (Ctrl+Shift+Z)"
|
|
22605
|
-
}],
|
|
22616
|
+
}], _l = [
|
|
22606
22617
|
1,
|
|
22607
22618
|
2,
|
|
22608
22619
|
3,
|
|
22609
22620
|
4,
|
|
22610
22621
|
5,
|
|
22611
22622
|
6
|
|
22612
|
-
],
|
|
22623
|
+
], Ll = [{
|
|
22613
22624
|
command: "formatBlock",
|
|
22614
22625
|
value: "pre",
|
|
22615
22626
|
label: "Code Block",
|
|
@@ -22622,7 +22633,7 @@ ${h.textContent ?? ""}
|
|
|
22622
22633
|
a.setAttribute("contenteditable", "true"), a.textContent = "Cell", r.appendChild(a);
|
|
22623
22634
|
}
|
|
22624
22635
|
return r;
|
|
22625
|
-
},
|
|
22636
|
+
}, zl = `
|
|
22626
22637
|
<table class="rte-table">
|
|
22627
22638
|
<thead>
|
|
22628
22639
|
<tr><th contenteditable="true">Header 1</th><th contenteditable="true">Header 2</th><th contenteditable="true">Header 3</th></tr>
|
|
@@ -22632,12 +22643,12 @@ ${h.textContent ?? ""}
|
|
|
22632
22643
|
<tr><td contenteditable="true">Cell</td><td contenteditable="true">Cell</td><td contenteditable="true">Cell</td></tr>
|
|
22633
22644
|
</tbody>
|
|
22634
22645
|
</table><p><br></p>
|
|
22635
|
-
`,
|
|
22636
|
-
const a =
|
|
22646
|
+
`, Vl = 100, Nl = (t, r, l) => {
|
|
22647
|
+
const a = X([]), h = X([]);
|
|
22637
22648
|
return {
|
|
22638
22649
|
snapshotForUndo: Z(() => {
|
|
22639
22650
|
const d = t.current;
|
|
22640
|
-
d && (a.current.push(d.innerHTML), a.current.length >
|
|
22651
|
+
d && (a.current.push(d.innerHTML), a.current.length > Vl && a.current.shift(), h.current = []);
|
|
22641
22652
|
}, [t]),
|
|
22642
22653
|
undo: Z(() => {
|
|
22643
22654
|
const d = t.current;
|
|
@@ -22666,8 +22677,8 @@ ${h.textContent ?? ""}
|
|
|
22666
22677
|
l
|
|
22667
22678
|
])
|
|
22668
22679
|
};
|
|
22669
|
-
},
|
|
22670
|
-
const [a, h] = z(!1), [d, o] = z(""), [m, n] = z(""), i =
|
|
22680
|
+
}, Hl = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
|
|
22681
|
+
const [a, h] = z(!1), [d, o] = z(""), [m, n] = z(""), i = X(null), s = X(null);
|
|
22671
22682
|
return {
|
|
22672
22683
|
showLinkPrompt: a,
|
|
22673
22684
|
linkUrl: d,
|
|
@@ -22722,7 +22733,7 @@ ${h.textContent ?? ""}
|
|
|
22722
22733
|
h(!1), o(""), n(""), i.current = null, s.current = null;
|
|
22723
22734
|
}, [])
|
|
22724
22735
|
};
|
|
22725
|
-
},
|
|
22736
|
+
}, Sl = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
|
|
22726
22737
|
const [a, h] = z(null), [d, o] = z(null), m = Z(() => {
|
|
22727
22738
|
const v = window.getSelection();
|
|
22728
22739
|
if (!v || v.rangeCount === 0) return null;
|
|
@@ -22850,7 +22861,7 @@ ${h.textContent ?? ""}
|
|
|
22850
22861
|
l
|
|
22851
22862
|
])
|
|
22852
22863
|
};
|
|
22853
|
-
},
|
|
22864
|
+
}, Rl = ({ isEditing: t, linkText: r, linkUrl: l, setLinkText: a, setLinkUrl: h, confirmLink: d, cancelLink: o }) => /* @__PURE__ */ c("div", {
|
|
22854
22865
|
className: "rte-link-prompt",
|
|
22855
22866
|
children: [
|
|
22856
22867
|
/* @__PURE__ */ e("input", {
|
|
@@ -22886,7 +22897,7 @@ ${h.textContent ?? ""}
|
|
|
22886
22897
|
})]
|
|
22887
22898
|
})
|
|
22888
22899
|
]
|
|
22889
|
-
}),
|
|
22900
|
+
}), Bl = ({ pos: t, toolbarRef: r, addRowAbove: l, addRowBelow: a, removeRow: h, addColumnLeft: d, addColumnRight: o, removeColumn: m, deleteTable: n }) => /* @__PURE__ */ c("div", {
|
|
22890
22901
|
ref: r,
|
|
22891
22902
|
className: "rte-table-toolbar",
|
|
22892
22903
|
style: {
|
|
@@ -22898,7 +22909,7 @@ ${h.textContent ?? ""}
|
|
|
22898
22909
|
/* @__PURE__ */ c("div", {
|
|
22899
22910
|
className: "rte-table-toolbar-group",
|
|
22900
22911
|
children: [
|
|
22901
|
-
/* @__PURE__ */ e(
|
|
22912
|
+
/* @__PURE__ */ e(K, {
|
|
22902
22913
|
title: "Add row above",
|
|
22903
22914
|
children: /* @__PURE__ */ e("button", {
|
|
22904
22915
|
type: "button",
|
|
@@ -22907,7 +22918,7 @@ ${h.textContent ?? ""}
|
|
|
22907
22918
|
children: "↑ Row"
|
|
22908
22919
|
})
|
|
22909
22920
|
}),
|
|
22910
|
-
/* @__PURE__ */ e(
|
|
22921
|
+
/* @__PURE__ */ e(K, {
|
|
22911
22922
|
title: "Add row below",
|
|
22912
22923
|
children: /* @__PURE__ */ e("button", {
|
|
22913
22924
|
type: "button",
|
|
@@ -22916,7 +22927,7 @@ ${h.textContent ?? ""}
|
|
|
22916
22927
|
children: "↓ Row"
|
|
22917
22928
|
})
|
|
22918
22929
|
}),
|
|
22919
|
-
/* @__PURE__ */ e(
|
|
22930
|
+
/* @__PURE__ */ e(K, {
|
|
22920
22931
|
title: "Remove last row",
|
|
22921
22932
|
children: /* @__PURE__ */ e("button", {
|
|
22922
22933
|
type: "button",
|
|
@@ -22931,7 +22942,7 @@ ${h.textContent ?? ""}
|
|
|
22931
22942
|
/* @__PURE__ */ c("div", {
|
|
22932
22943
|
className: "rte-table-toolbar-group",
|
|
22933
22944
|
children: [
|
|
22934
|
-
/* @__PURE__ */ e(
|
|
22945
|
+
/* @__PURE__ */ e(K, {
|
|
22935
22946
|
title: "Add column left",
|
|
22936
22947
|
children: /* @__PURE__ */ e("button", {
|
|
22937
22948
|
type: "button",
|
|
@@ -22940,7 +22951,7 @@ ${h.textContent ?? ""}
|
|
|
22940
22951
|
children: "← Col"
|
|
22941
22952
|
})
|
|
22942
22953
|
}),
|
|
22943
|
-
/* @__PURE__ */ e(
|
|
22954
|
+
/* @__PURE__ */ e(K, {
|
|
22944
22955
|
title: "Add column right",
|
|
22945
22956
|
children: /* @__PURE__ */ e("button", {
|
|
22946
22957
|
type: "button",
|
|
@@ -22949,7 +22960,7 @@ ${h.textContent ?? ""}
|
|
|
22949
22960
|
children: "→ Col"
|
|
22950
22961
|
})
|
|
22951
22962
|
}),
|
|
22952
|
-
/* @__PURE__ */ e(
|
|
22963
|
+
/* @__PURE__ */ e(K, {
|
|
22953
22964
|
title: "Remove last column",
|
|
22954
22965
|
children: /* @__PURE__ */ e("button", {
|
|
22955
22966
|
type: "button",
|
|
@@ -22963,7 +22974,7 @@ ${h.textContent ?? ""}
|
|
|
22963
22974
|
/* @__PURE__ */ e("div", { className: "rte-table-toolbar-divider" }),
|
|
22964
22975
|
/* @__PURE__ */ e("div", {
|
|
22965
22976
|
className: "rte-table-toolbar-group",
|
|
22966
|
-
children: /* @__PURE__ */ e(
|
|
22977
|
+
children: /* @__PURE__ */ e(K, {
|
|
22967
22978
|
title: "Delete table",
|
|
22968
22979
|
children: /* @__PURE__ */ e("button", {
|
|
22969
22980
|
type: "button",
|
|
@@ -22974,12 +22985,12 @@ ${h.textContent ?? ""}
|
|
|
22974
22985
|
})
|
|
22975
22986
|
})
|
|
22976
22987
|
]
|
|
22977
|
-
}),
|
|
22988
|
+
}), Al = ({ advanced: t, isActive: r, exec: l, applyHeading: a, insertTaskList: h, openLinkPrompt: d, insertTable: o, undo: m, redo: n }) => /* @__PURE__ */ c("div", {
|
|
22978
22989
|
className: "rte-toolbar",
|
|
22979
22990
|
children: [
|
|
22980
22991
|
/* @__PURE__ */ e("div", {
|
|
22981
22992
|
className: "rte-toolbar-group",
|
|
22982
|
-
children:
|
|
22993
|
+
children: kl.map((i) => /* @__PURE__ */ e(K, {
|
|
22983
22994
|
title: i.title,
|
|
22984
22995
|
children: /* @__PURE__ */ e("button", {
|
|
22985
22996
|
type: "button",
|
|
@@ -22994,7 +23005,7 @@ ${h.textContent ?? ""}
|
|
|
22994
23005
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22995
23006
|
/* @__PURE__ */ c("div", {
|
|
22996
23007
|
className: "rte-toolbar-group",
|
|
22997
|
-
children: [
|
|
23008
|
+
children: [xl.map((i) => /* @__PURE__ */ e(K, {
|
|
22998
23009
|
title: i.title,
|
|
22999
23010
|
children: /* @__PURE__ */ e("button", {
|
|
23000
23011
|
type: "button",
|
|
@@ -23004,7 +23015,7 @@ ${h.textContent ?? ""}
|
|
|
23004
23015
|
},
|
|
23005
23016
|
children: i.label
|
|
23006
23017
|
})
|
|
23007
|
-
}, i.command)), /* @__PURE__ */ e(
|
|
23018
|
+
}, i.command)), /* @__PURE__ */ e(K, {
|
|
23008
23019
|
title: "Task List",
|
|
23009
23020
|
children: /* @__PURE__ */ c("button", {
|
|
23010
23021
|
type: "button",
|
|
@@ -23019,7 +23030,7 @@ ${h.textContent ?? ""}
|
|
|
23019
23030
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
23020
23031
|
/* @__PURE__ */ e("div", {
|
|
23021
23032
|
className: "rte-toolbar-group",
|
|
23022
|
-
children:
|
|
23033
|
+
children: _l.map((i) => /* @__PURE__ */ e(K, {
|
|
23023
23034
|
title: `Heading ${i}`,
|
|
23024
23035
|
children: /* @__PURE__ */ c("button", {
|
|
23025
23036
|
type: "button",
|
|
@@ -23034,7 +23045,7 @@ ${h.textContent ?? ""}
|
|
|
23034
23045
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
23035
23046
|
/* @__PURE__ */ e("div", {
|
|
23036
23047
|
className: "rte-toolbar-group",
|
|
23037
|
-
children: /* @__PURE__ */ e(
|
|
23048
|
+
children: /* @__PURE__ */ e(K, {
|
|
23038
23049
|
title: "Insert Link",
|
|
23039
23050
|
children: /* @__PURE__ */ c("button", {
|
|
23040
23051
|
type: "button",
|
|
@@ -23048,7 +23059,7 @@ ${h.textContent ?? ""}
|
|
|
23048
23059
|
}),
|
|
23049
23060
|
t && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }), /* @__PURE__ */ c("div", {
|
|
23050
23061
|
className: "rte-toolbar-group",
|
|
23051
|
-
children: [
|
|
23062
|
+
children: [Ll.map((i) => /* @__PURE__ */ e(K, {
|
|
23052
23063
|
title: i.title,
|
|
23053
23064
|
children: /* @__PURE__ */ e("button", {
|
|
23054
23065
|
type: "button",
|
|
@@ -23058,7 +23069,7 @@ ${h.textContent ?? ""}
|
|
|
23058
23069
|
},
|
|
23059
23070
|
children: i.label
|
|
23060
23071
|
})
|
|
23061
|
-
}, i.command + (i.value ?? ""))), /* @__PURE__ */ e(
|
|
23072
|
+
}, i.command + (i.value ?? ""))), /* @__PURE__ */ e(K, {
|
|
23062
23073
|
title: "Insert Table",
|
|
23063
23074
|
children: /* @__PURE__ */ e("button", {
|
|
23064
23075
|
type: "button",
|
|
@@ -23071,8 +23082,8 @@ ${h.textContent ?? ""}
|
|
|
23071
23082
|
})]
|
|
23072
23083
|
})] })
|
|
23073
23084
|
]
|
|
23074
|
-
}),
|
|
23075
|
-
const s =
|
|
23085
|
+
}), Ai = ({ advanced: t = !1, error: r, format: l = "html", id: a, label: h, onBlur: d, onChange: o, placeholder: m, required: n = !1, value: i }) => {
|
|
23086
|
+
const s = X(null), p = X(!1), u = X(null), [g, v] = z(/* @__PURE__ */ new Set());
|
|
23076
23087
|
F(() => {
|
|
23077
23088
|
const r1 = s.current;
|
|
23078
23089
|
if (!r1 || p.current) return;
|
|
@@ -23084,14 +23095,14 @@ ${h.textContent ?? ""}
|
|
|
23084
23095
|
if (!r1 || !o) return;
|
|
23085
23096
|
p.current = !0;
|
|
23086
23097
|
const s1 = r1.innerHTML.replace(/ /g, " ");
|
|
23087
|
-
o(l === "markdown" ?
|
|
23098
|
+
o(l === "markdown" ? Ml(s1) : s1), setTimeout(() => {
|
|
23088
23099
|
p.current = !1;
|
|
23089
23100
|
}, 0);
|
|
23090
|
-
}, [l, o]), { snapshotForUndo: f, undo: y, redo: b } =
|
|
23101
|
+
}, [l, o]), { snapshotForUndo: f, undo: y, redo: b } = Nl(s, p, w), { showLinkPrompt: C, linkUrl: x, setLinkUrl: k, linkText: H, setLinkText: L, editingAnchorRef: M, openLinkPrompt: V, confirmLink: S, cancelLink: _ } = Hl({
|
|
23091
23102
|
editorRef: s,
|
|
23092
23103
|
snapshotForUndo: f,
|
|
23093
23104
|
emitChange: w
|
|
23094
|
-
}), { activeTable: R, tableToolbarPos: B, showTableToolbar: E, hideTableToolbar: O, addRowAbove: o1, addRowBelow: N, removeRow: q, addColumnLeft: t1, addColumnRight: I, removeColumn: D, deleteTable: J } =
|
|
23105
|
+
}), { activeTable: R, tableToolbarPos: B, showTableToolbar: E, hideTableToolbar: O, addRowAbove: o1, addRowBelow: N, removeRow: q, addColumnLeft: t1, addColumnRight: I, removeColumn: D, deleteTable: J } = Sl({
|
|
23095
23106
|
editorRef: s,
|
|
23096
23107
|
snapshotForUndo: f,
|
|
23097
23108
|
emitChange: w
|
|
@@ -23148,7 +23159,7 @@ ${h.textContent ?? ""}
|
|
|
23148
23159
|
const M1 = document.createRange();
|
|
23149
23160
|
M1.setStart(m1, 1), M1.collapse(!0), s1.removeAllRanges(), s1.addRange(M1), w();
|
|
23150
23161
|
}, [f, w]), y1 = Z(() => {
|
|
23151
|
-
U("insertHTML",
|
|
23162
|
+
U("insertHTML", zl);
|
|
23152
23163
|
}, [U]), _1 = Z((r1) => {
|
|
23153
23164
|
const s1 = r1.target, A = s1.closest("a");
|
|
23154
23165
|
if (A) {
|
|
@@ -23214,7 +23225,7 @@ ${h.textContent ?? ""}
|
|
|
23214
23225
|
className: `rte-container ${r ? "rte-container--error" : ""}`,
|
|
23215
23226
|
style: { position: "relative" },
|
|
23216
23227
|
children: [
|
|
23217
|
-
/* @__PURE__ */ e(
|
|
23228
|
+
/* @__PURE__ */ e(Al, {
|
|
23218
23229
|
advanced: t,
|
|
23219
23230
|
isActive: (r1) => g.has(r1),
|
|
23220
23231
|
exec: U,
|
|
@@ -23225,7 +23236,7 @@ ${h.textContent ?? ""}
|
|
|
23225
23236
|
undo: y,
|
|
23226
23237
|
redo: b
|
|
23227
23238
|
}),
|
|
23228
|
-
C && /* @__PURE__ */ e(
|
|
23239
|
+
C && /* @__PURE__ */ e(Rl, {
|
|
23229
23240
|
isEditing: !!M.current,
|
|
23230
23241
|
linkText: H,
|
|
23231
23242
|
linkUrl: x,
|
|
@@ -23234,7 +23245,7 @@ ${h.textContent ?? ""}
|
|
|
23234
23245
|
confirmLink: S,
|
|
23235
23246
|
cancelLink: _
|
|
23236
23247
|
}),
|
|
23237
|
-
R && B && /* @__PURE__ */ e(
|
|
23248
|
+
R && B && /* @__PURE__ */ e(Bl, {
|
|
23238
23249
|
pos: B,
|
|
23239
23250
|
toolbarRef: u,
|
|
23240
23251
|
addRowAbove: o1,
|
|
@@ -23267,7 +23278,7 @@ ${h.textContent ?? ""}
|
|
|
23267
23278
|
})
|
|
23268
23279
|
]
|
|
23269
23280
|
});
|
|
23270
|
-
},
|
|
23281
|
+
}, $i = ({ scrollContainer: t, scrollThreshold: r = 200, className: l }) => {
|
|
23271
23282
|
const [a, h] = z(!1);
|
|
23272
23283
|
F(() => {
|
|
23273
23284
|
const o = t ?? window, m = () => {
|
|
@@ -23287,7 +23298,7 @@ ${h.textContent ?? ""}
|
|
|
23287
23298
|
behavior: "smooth"
|
|
23288
23299
|
});
|
|
23289
23300
|
}, [t]);
|
|
23290
|
-
return a ? /* @__PURE__ */ e(
|
|
23301
|
+
return a ? /* @__PURE__ */ e(K, {
|
|
23291
23302
|
title: "Scroll to top",
|
|
23292
23303
|
children: /* @__PURE__ */ e("button", {
|
|
23293
23304
|
className: `scroll-to-top${l ? ` ${l}` : ""}`,
|
|
@@ -23298,11 +23309,11 @@ ${h.textContent ?? ""}
|
|
|
23298
23309
|
})
|
|
23299
23310
|
})
|
|
23300
23311
|
}) : null;
|
|
23301
|
-
}, t3 = _0(null), r3 = () => L0(t3),
|
|
23312
|
+
}, t3 = _0(null), r3 = () => L0(t3), Ei = () => {
|
|
23302
23313
|
const t = r3();
|
|
23303
23314
|
if (!t) throw new Error("useSidebar must be used within a SidebarProvider");
|
|
23304
23315
|
return t;
|
|
23305
|
-
},
|
|
23316
|
+
}, Di = ({ children: t }) => {
|
|
23306
23317
|
const { isMobile: r } = g0(), [l, a] = z(!1), h = Z(() => a((n) => !n), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = u1(() => ({
|
|
23307
23318
|
isMobile: r,
|
|
23308
23319
|
isOpen: l,
|
|
@@ -23320,7 +23331,7 @@ ${h.textContent ?? ""}
|
|
|
23320
23331
|
value: m,
|
|
23321
23332
|
children: t
|
|
23322
23333
|
});
|
|
23323
|
-
},
|
|
23334
|
+
}, Ti = ({ sections: t, width: r = "280px", className: l = "", appHeaderProps: a, renderItem: h, isOpen: d, onClose: o, isMobile: m, showOverlay: n = !0, contained: i = !1, shadow: s = "none", searchPlaceholder: p }) => {
|
|
23324
23335
|
const [u, g] = z(""), v = r3(), w = m ?? v?.isMobile ?? !1, f = d ?? (w ? v?.isOpen ?? !1 : !0), y = o ?? v?.close ?? (() => {
|
|
23325
23336
|
}), b = p && u ? t.map((M) => ({
|
|
23326
23337
|
...M,
|
|
@@ -23360,7 +23371,7 @@ ${h.textContent ?? ""}
|
|
|
23360
23371
|
className: "sidebar__link-label",
|
|
23361
23372
|
children: M.label
|
|
23362
23373
|
}),
|
|
23363
|
-
M.count !== void 0 && /* @__PURE__ */ e(
|
|
23374
|
+
M.count !== void 0 && /* @__PURE__ */ e(K, {
|
|
23364
23375
|
title: M.countLabel,
|
|
23365
23376
|
children: /* @__PURE__ */ e("span", {
|
|
23366
23377
|
className: "sidebar__link-count",
|
|
@@ -23382,7 +23393,7 @@ ${h.textContent ?? ""}
|
|
|
23382
23393
|
}),
|
|
23383
23394
|
p && /* @__PURE__ */ e("div", {
|
|
23384
23395
|
className: "sidebar__search",
|
|
23385
|
-
children: /* @__PURE__ */ e(
|
|
23396
|
+
children: /* @__PURE__ */ e(a0, {
|
|
23386
23397
|
value: u,
|
|
23387
23398
|
onChange: g,
|
|
23388
23399
|
placeholder: p
|
|
@@ -23422,9 +23433,9 @@ ${h.textContent ?? ""}
|
|
|
23422
23433
|
})
|
|
23423
23434
|
]
|
|
23424
23435
|
})] });
|
|
23425
|
-
},
|
|
23426
|
-
function
|
|
23427
|
-
const h =
|
|
23436
|
+
}, $l = (t, r) => t || (r >= 75 ? "excellent" : r >= 50 ? "good" : r >= 25 ? "fair" : r > 0 ? "weak" : "unknown"), El = (t) => t >= 75 ? 4 : t >= 50 ? 3 : t >= 25 ? 2 : t > 0 ? 1 : 0;
|
|
23437
|
+
function Ii({ value: t, state: r, size: l = 16, className: a = "" }) {
|
|
23438
|
+
const h = $l(r, t), d = El(t);
|
|
23428
23439
|
return /* @__PURE__ */ c("svg", {
|
|
23429
23440
|
width: l,
|
|
23430
23441
|
height: l,
|
|
@@ -23472,7 +23483,7 @@ function Ti({ value: t, state: r, size: l = 16, className: a = "" }) {
|
|
|
23472
23483
|
]
|
|
23473
23484
|
});
|
|
23474
23485
|
}
|
|
23475
|
-
var
|
|
23486
|
+
var Gi = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, borderRadius: h, count: d = 1, className: o = "" }) => {
|
|
23476
23487
|
const m = () => {
|
|
23477
23488
|
const p = {};
|
|
23478
23489
|
if (l !== void 0 ? p.width = typeof l == "number" ? `${l}px` : l : p.width = "100%", a !== void 0) p.height = typeof a == "number" ? `${a}px` : a;
|
|
@@ -23514,8 +23525,8 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23514
23525
|
className: "skeleton-group",
|
|
23515
23526
|
children: s
|
|
23516
23527
|
}) : /* @__PURE__ */ e(n1, { children: s });
|
|
23517
|
-
},
|
|
23518
|
-
const [i, s] = z(d), p =
|
|
23528
|
+
}, Zi = ({ children: t, panel: r, isPanelOpen: l, onPanelClose: a, panelTitle: h, defaultLeftPercent: d = 55, minLeftPercent: o = 25, minRightPercent: m = 20, className: n = "" }) => {
|
|
23529
|
+
const [i, s] = z(d), p = X(null), u = X(!1);
|
|
23519
23530
|
F(() => (l ? document.body.classList.add("split-panel-active") : document.body.classList.remove("split-panel-active"), () => {
|
|
23520
23531
|
document.body.classList.remove("split-panel-active");
|
|
23521
23532
|
}), [l]);
|
|
@@ -23556,7 +23567,7 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23556
23567
|
children: [h && /* @__PURE__ */ e("h2", {
|
|
23557
23568
|
className: "split-panel__right-title",
|
|
23558
23569
|
children: h
|
|
23559
|
-
}), /* @__PURE__ */ e(
|
|
23570
|
+
}), /* @__PURE__ */ e(K, {
|
|
23560
23571
|
title: "Close panel",
|
|
23561
23572
|
children: /* @__PURE__ */ e("button", {
|
|
23562
23573
|
className: "split-panel__close",
|
|
@@ -23574,10 +23585,10 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23574
23585
|
className: `split-panel ${n}`,
|
|
23575
23586
|
children: t
|
|
23576
23587
|
});
|
|
23577
|
-
},
|
|
23588
|
+
}, Dl = (t, r, l) => {
|
|
23578
23589
|
const a = `${E0(r)}%`;
|
|
23579
23590
|
return t.label && l ? `${t.label} - ${a}` : t.label ? t.label : a;
|
|
23580
|
-
},
|
|
23591
|
+
}, Pi = ({ animated: t = !1, height: r, normalize: l = !0, orientation: a = "horizontal", segments: h, separators: d = !1, showLabels: o = !0, showPercentage: m = !0, thin: n = !1, width: i }) => {
|
|
23581
23592
|
const s = u1(() => {
|
|
23582
23593
|
if (h.length === 0) return [];
|
|
23583
23594
|
if (!l) return h.map((v) => Math.max(0, v.value));
|
|
@@ -23595,8 +23606,8 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23595
23606
|
children: h.map((g, v) => {
|
|
23596
23607
|
const w = s[v];
|
|
23597
23608
|
if (w <= 0) return null;
|
|
23598
|
-
const f = g.state || "default", y = g.pattern || "solid", b =
|
|
23599
|
-
return /* @__PURE__ */ e(
|
|
23609
|
+
const f = g.state || "default", y = g.pattern || "solid", b = Dl(g, w, m);
|
|
23610
|
+
return /* @__PURE__ */ e(K, {
|
|
23600
23611
|
title: b,
|
|
23601
23612
|
children: /* @__PURE__ */ e("div", {
|
|
23602
23613
|
className: [
|
|
@@ -23614,7 +23625,7 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23614
23625
|
}, `stacked-bar-segment-${v}`);
|
|
23615
23626
|
})
|
|
23616
23627
|
});
|
|
23617
|
-
},
|
|
23628
|
+
}, ji = ({ items: t, dividers: r = !0, align: l = "left", size: a = "medium", className: h = "" }) => t.length === 0 ? null : /* @__PURE__ */ e("div", {
|
|
23618
23629
|
className: [
|
|
23619
23630
|
"stats",
|
|
23620
23631
|
`stats--align-${l}`,
|
|
@@ -23632,7 +23643,7 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23632
23643
|
children: d.value
|
|
23633
23644
|
})]
|
|
23634
23645
|
}, `${d.label}-${o}`))
|
|
23635
|
-
}),
|
|
23646
|
+
}), Wi = ({ children: t, position: r = "bottom", align: l = "between", visible: a = !0, onClose: h, closeLabel: d = "Close", offset: o = 0, className: m }) => a ? /* @__PURE__ */ c("div", {
|
|
23636
23647
|
className: [
|
|
23637
23648
|
"sticky-bar",
|
|
23638
23649
|
`sticky-bar--${r}`,
|
|
@@ -23659,7 +23670,7 @@ function _2({ state: t }) {
|
|
|
23659
23670
|
children: /* @__PURE__ */ e(P, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
23660
23671
|
});
|
|
23661
23672
|
}
|
|
23662
|
-
var L2 = 10,
|
|
23673
|
+
var L2 = 10, Ui = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h = !1, onRowClick: d }) => {
|
|
23663
23674
|
const [o, m] = z(!1), [n, i] = z(!1), [s, p] = z(""), [u, g] = z(null), [v, w] = z("asc"), f = u1(() => s.trim() ? t.filter((M) => M.name.toLowerCase().includes(s.toLowerCase())) : t, [t, s]), y = u1(() => {
|
|
23664
23675
|
if (!u) return f;
|
|
23665
23676
|
const M = [...f].sort((V, S) => {
|
|
@@ -23680,13 +23691,13 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
23680
23691
|
}, L = u1(() => /* @__PURE__ */ c("div", {
|
|
23681
23692
|
className: "list-suggestions-list",
|
|
23682
23693
|
children: [
|
|
23683
|
-
/* @__PURE__ */ e(
|
|
23694
|
+
/* @__PURE__ */ e(K, {
|
|
23684
23695
|
title: a,
|
|
23685
23696
|
children: /* @__PURE__ */ e("legend", { children: l || "Suggestions" })
|
|
23686
23697
|
}),
|
|
23687
23698
|
h && /* @__PURE__ */ e("div", {
|
|
23688
23699
|
className: "list-suggestions-list-search",
|
|
23689
|
-
children: /* @__PURE__ */ e(
|
|
23700
|
+
children: /* @__PURE__ */ e(a0, {
|
|
23690
23701
|
value: s,
|
|
23691
23702
|
onChange: p,
|
|
23692
23703
|
placeholder: "Search suggestions..."
|
|
@@ -24276,7 +24287,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24276
24287
|
"ocean-depths",
|
|
24277
24288
|
"sandstone",
|
|
24278
24289
|
"tailwind-vue-dark"
|
|
24279
|
-
]),
|
|
24290
|
+
]), Tl = /* @__PURE__ */ new Set([
|
|
24280
24291
|
"atelier-media",
|
|
24281
24292
|
"blueprint-clay",
|
|
24282
24293
|
"blush-market",
|
|
@@ -24294,11 +24305,11 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24294
24305
|
"sandy-parchment",
|
|
24295
24306
|
"terracotta-kitchen",
|
|
24296
24307
|
"vital-aurora"
|
|
24297
|
-
]),
|
|
24308
|
+
]), Il = (t) => Tl.has(t) ? "light" : "dark", Gl = (t) => p0.find((r) => r.value === t), V2 = "theme-font-link", N2 = "theme-font-link-display", H2 = "theme-font-link-mono", Fi = ({ children: t, theme: r, effects: l, onSave: a, allowedThemes: h }) => {
|
|
24298
24309
|
const [d, o] = z(null), [m, n] = z(null), [i, s] = z(!1), p = d ?? r, u = m ?? l;
|
|
24299
24310
|
F(() => {
|
|
24300
24311
|
document.documentElement.setAttribute("data-theme", p);
|
|
24301
|
-
const C =
|
|
24312
|
+
const C = Gl(p);
|
|
24302
24313
|
if (C) {
|
|
24303
24314
|
let x = document.getElementById(V2);
|
|
24304
24315
|
x || (x = document.createElement("link"), x.id = V2, x.rel = "stylesheet", document.head.appendChild(x)), x.href = C.fontUrl;
|
|
@@ -24369,7 +24380,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24369
24380
|
boxShadow: "0 4px 16px rgba(0, 0, 0, 0.3)"
|
|
24370
24381
|
},
|
|
24371
24382
|
children: [
|
|
24372
|
-
/* @__PURE__ */ e(
|
|
24383
|
+
/* @__PURE__ */ e(K, {
|
|
24373
24384
|
title: "Copy theme name",
|
|
24374
24385
|
children: /* @__PURE__ */ e("span", {
|
|
24375
24386
|
onClick: () => {
|
|
@@ -24437,7 +24448,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24437
24448
|
}), /* @__PURE__ */ e("div", { className: "toggle-switch__thumb" })]
|
|
24438
24449
|
})
|
|
24439
24450
|
});
|
|
24440
|
-
},
|
|
24451
|
+
}, Zl = [
|
|
24441
24452
|
{
|
|
24442
24453
|
value: "all",
|
|
24443
24454
|
label: "All"
|
|
@@ -24450,7 +24461,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24450
24461
|
value: "dark",
|
|
24451
24462
|
label: "Dark"
|
|
24452
24463
|
}
|
|
24453
|
-
],
|
|
24464
|
+
], Oi = ({ isOpen: t, onClose: r, allowedThemes: l, currentApp: a, showEffects: h = !0, showSearch: d = !0, showFavorites: o = !0, showAppearanceFilter: m = !0 }) => {
|
|
24454
24465
|
const { theme: n, effects: i, setPreviewTheme: s, setPreviewEffects: p, commitPreview: u, clearPreview: g } = D2(), v = ["Card", "Modal"], w = [
|
|
24455
24466
|
{
|
|
24456
24467
|
label: "None",
|
|
@@ -24472,13 +24483,13 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24472
24483
|
label: "Glow",
|
|
24473
24484
|
value: "glow-effect"
|
|
24474
24485
|
}
|
|
24475
|
-
], [f, y] = z(""), [b, C] = z(!1), [x, k] = z(!1), [H, L] = z("all"), M =
|
|
24486
|
+
], [f, y] = z(""), [b, C] = z(!1), [x, k] = z(!1), [H, L] = z("all"), M = X(null), V = X(!1), S = a?.trim().toLowerCase() ?? "", _ = u1(() => {
|
|
24476
24487
|
let N = p0;
|
|
24477
24488
|
if (l && l.length > 0) {
|
|
24478
24489
|
const q = new Set(l);
|
|
24479
24490
|
N = N.filter((t1) => q.has(t1.value));
|
|
24480
24491
|
}
|
|
24481
|
-
if (b && (N = N.filter((q) => z2.has(q.value))), x && S && (N = N.filter((q) => (q.recommendedApps ?? []).some((t1) => t1.toLowerCase() === S))), H !== "all" && (N = N.filter((q) =>
|
|
24492
|
+
if (b && (N = N.filter((q) => z2.has(q.value))), x && S && (N = N.filter((q) => (q.recommendedApps ?? []).some((t1) => t1.toLowerCase() === S))), H !== "all" && (N = N.filter((q) => Il(q.value) === H)), f.trim()) {
|
|
24482
24493
|
const q = f.toLowerCase().trim();
|
|
24483
24494
|
N = N.filter((t1) => t1.label.toLowerCase().includes(q) || (t1.recommendedApps ?? []).some((I) => I.toLowerCase().includes(q)));
|
|
24484
24495
|
}
|
|
@@ -24560,7 +24571,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24560
24571
|
(d || o || a) && /* @__PURE__ */ c("div", {
|
|
24561
24572
|
className: "theme-settings__toolbar",
|
|
24562
24573
|
children: [
|
|
24563
|
-
d && /* @__PURE__ */ e(
|
|
24574
|
+
d && /* @__PURE__ */ e(a0, {
|
|
24564
24575
|
placeholder: "Search themes...",
|
|
24565
24576
|
value: f,
|
|
24566
24577
|
onChange: y
|
|
@@ -24583,7 +24594,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24583
24594
|
}),
|
|
24584
24595
|
m && /* @__PURE__ */ e("div", {
|
|
24585
24596
|
className: "theme-settings__appearance",
|
|
24586
|
-
children:
|
|
24597
|
+
children: Zl.map((N) => /* @__PURE__ */ e("button", {
|
|
24587
24598
|
type: "button",
|
|
24588
24599
|
className: `theme-settings__appearance-option ${H === N.value ? "theme-settings__appearance-option--active" : ""}`,
|
|
24589
24600
|
onClick: () => L(N.value),
|
|
@@ -24666,7 +24677,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24666
24677
|
})
|
|
24667
24678
|
})
|
|
24668
24679
|
});
|
|
24669
|
-
},
|
|
24680
|
+
}, Pl = (t = "default") => `timeline__dot timeline__dot--${t}`, Yi = ({ items: t, orientation: r = "vertical", size: l = "md", connected: a = !0, animated: h = !0, className: d = "" }) => /* @__PURE__ */ e("ol", {
|
|
24670
24681
|
className: [
|
|
24671
24682
|
"timeline",
|
|
24672
24683
|
`timeline--${r}`,
|
|
@@ -24685,7 +24696,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24685
24696
|
children: [/* @__PURE__ */ c("div", {
|
|
24686
24697
|
className: "timeline__node",
|
|
24687
24698
|
children: [/* @__PURE__ */ e("div", {
|
|
24688
|
-
className:
|
|
24699
|
+
className: Pl(o.variant),
|
|
24689
24700
|
children: o.icon ? /* @__PURE__ */ e("span", {
|
|
24690
24701
|
className: "timeline__dot-icon",
|
|
24691
24702
|
children: o.icon
|
|
@@ -24715,8 +24726,8 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24715
24726
|
]
|
|
24716
24727
|
})]
|
|
24717
24728
|
}, o.id))
|
|
24718
|
-
}),
|
|
24719
|
-
const r =
|
|
24729
|
+
}), jl = (t, r) => Math.floor(Math.random() * (r - t + 1) + t), qi = ({ list: t }) => {
|
|
24730
|
+
const r = jl(0, t.length - 1);
|
|
24720
24731
|
return /* @__PURE__ */ c(Z2, {
|
|
24721
24732
|
className: "tips-of-the-day",
|
|
24722
24733
|
children: [
|
|
@@ -24746,7 +24757,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24746
24757
|
onClick: o.onClick,
|
|
24747
24758
|
children: o.label
|
|
24748
24759
|
}),
|
|
24749
|
-
h && /* @__PURE__ */ e(
|
|
24760
|
+
h && /* @__PURE__ */ e(K, {
|
|
24750
24761
|
title: "Close",
|
|
24751
24762
|
children: /* @__PURE__ */ e("button", {
|
|
24752
24763
|
className: "toast__close",
|
|
@@ -24758,7 +24769,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24758
24769
|
})
|
|
24759
24770
|
})
|
|
24760
24771
|
]
|
|
24761
|
-
})),
|
|
24772
|
+
})), Xi = ({ activeVariant: t = "warning", state: r, onToggleChange: l, states: a, layout: h = "buttons", size: d = "medium" }) => {
|
|
24762
24773
|
const { isAtLeast: o } = g0();
|
|
24763
24774
|
return h === "cards" ? /* @__PURE__ */ e("div", {
|
|
24764
24775
|
className: "toggle-buttons toggle-buttons--cards",
|
|
@@ -24778,7 +24789,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24778
24789
|
children: m.label
|
|
24779
24790
|
})]
|
|
24780
24791
|
}, m.key);
|
|
24781
|
-
return m.description ? /* @__PURE__ */ e(
|
|
24792
|
+
return m.description ? /* @__PURE__ */ e(K, {
|
|
24782
24793
|
title: m.description,
|
|
24783
24794
|
children: n
|
|
24784
24795
|
}, m.key) : n;
|
|
@@ -24793,7 +24804,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24793
24804
|
children: o("tablet") ? m.label : ""
|
|
24794
24805
|
}, `btn-toggle2-${n}-${m}`))
|
|
24795
24806
|
});
|
|
24796
|
-
}, B0 = "::",
|
|
24807
|
+
}, B0 = "::", Wl = (t) => typeof t == "object" ? t.label : void 0, Ul = (t) => "fields" in t ? t.fields.flatMap((r) => [{
|
|
24797
24808
|
value: `${r.value}${B0}asc`,
|
|
24798
24809
|
label: r.label,
|
|
24799
24810
|
suffixIcon: "arrow-up"
|
|
@@ -24801,7 +24812,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24801
24812
|
value: `${r.value}${B0}desc`,
|
|
24802
24813
|
label: r.label,
|
|
24803
24814
|
suffixIcon: "arrow-down"
|
|
24804
|
-
}]) : t.options,
|
|
24815
|
+
}]) : t.options, Fl = (t) => "fields" in t ? t.value ? `${t.value.field}${B0}${t.value.direction}` : null : t.value, Ki = ({ children: t, className: r = "", controlPanelToggle: l, heading: a, noCard: h = !1, menuItems: d, notifications: o, search: m, sort: n }) => {
|
|
24805
24816
|
const i = l2(), s = !!(l && i?.isMobile), p = typeof l == "object" ? l.count ?? 0 : 0, u = [
|
|
24806
24817
|
"memobit-toolbar",
|
|
24807
24818
|
h ? "memobit-toolbar--no-card" : "",
|
|
@@ -24826,7 +24837,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24826
24837
|
return /* @__PURE__ */ c("div", {
|
|
24827
24838
|
className: u,
|
|
24828
24839
|
children: [
|
|
24829
|
-
s && /* @__PURE__ */ e(
|
|
24840
|
+
s && /* @__PURE__ */ e(K, {
|
|
24830
24841
|
title: "Filters",
|
|
24831
24842
|
children: /* @__PURE__ */ c(T, {
|
|
24832
24843
|
className: "memobit-toolbar__control-panel-toggle",
|
|
@@ -24834,7 +24845,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24834
24845
|
onClick: i?.toggle,
|
|
24835
24846
|
size: "medium",
|
|
24836
24847
|
variant: "default",
|
|
24837
|
-
children: [l &&
|
|
24848
|
+
children: [l && Wl(l), p > 0 && /* @__PURE__ */ e("span", {
|
|
24838
24849
|
className: "memobit-toolbar__control-panel-toggle-count",
|
|
24839
24850
|
children: p
|
|
24840
24851
|
})]
|
|
@@ -24866,7 +24877,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24866
24877
|
children: [
|
|
24867
24878
|
m && /* @__PURE__ */ e("div", {
|
|
24868
24879
|
className: "memobit-toolbar__search",
|
|
24869
|
-
children: /* @__PURE__ */ e(
|
|
24880
|
+
children: /* @__PURE__ */ e(a0, {
|
|
24870
24881
|
...m,
|
|
24871
24882
|
className: ["memobit-toolbar__search-input", m.className].filter(Boolean).join(" ")
|
|
24872
24883
|
})
|
|
@@ -24882,23 +24893,23 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24882
24893
|
label: n.label,
|
|
24883
24894
|
name: n.name ?? "toolbar-sort",
|
|
24884
24895
|
onChange: v,
|
|
24885
|
-
options:
|
|
24896
|
+
options: Ul(n),
|
|
24886
24897
|
placeholder: n.placeholder,
|
|
24887
24898
|
searchable: n.searchable ?? !1,
|
|
24888
24899
|
usePortal: !1,
|
|
24889
|
-
value:
|
|
24900
|
+
value: Fl(n)
|
|
24890
24901
|
})
|
|
24891
24902
|
})
|
|
24892
24903
|
]
|
|
24893
24904
|
}),
|
|
24894
24905
|
/* @__PURE__ */ c("div", {
|
|
24895
24906
|
className: "memobit-toolbar__actions",
|
|
24896
|
-
children: [o && /* @__PURE__ */ e(
|
|
24907
|
+
children: [o && /* @__PURE__ */ e(pl, {
|
|
24897
24908
|
items: o.items,
|
|
24898
24909
|
buttonLabel: o.buttonLabel,
|
|
24899
24910
|
panelTitle: o.panelTitle,
|
|
24900
24911
|
emptyMessage: o.emptyMessage
|
|
24901
|
-
}), /* @__PURE__ */ e(
|
|
24912
|
+
}), /* @__PURE__ */ e(ml, {
|
|
24902
24913
|
items: d,
|
|
24903
24914
|
disableResponsive: !0,
|
|
24904
24915
|
showLabel: !1
|
|
@@ -24906,7 +24917,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24906
24917
|
})
|
|
24907
24918
|
]
|
|
24908
24919
|
});
|
|
24909
|
-
},
|
|
24920
|
+
}, Qi = ({ label: t, stepLabel: r, index: l, total: a, title: h, note: d, onPrev: o, onNext: m, onExit: n, width: i, className: s = "" }) => {
|
|
24910
24921
|
const p = i === void 0 ? void 0 : { "--tour-hud-width": typeof i == "number" ? `${i}px` : i };
|
|
24911
24922
|
return /* @__PURE__ */ c("div", {
|
|
24912
24923
|
className: [
|
|
@@ -24967,7 +24978,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24967
24978
|
]
|
|
24968
24979
|
})]
|
|
24969
24980
|
});
|
|
24970
|
-
},
|
|
24981
|
+
}, Ol = ({ open: t }) => /* @__PURE__ */ e("svg", {
|
|
24971
24982
|
className: `tree__chevron ${t ? "tree__chevron--open" : ""}`,
|
|
24972
24983
|
viewBox: "0 0 16 16",
|
|
24973
24984
|
width: "12",
|
|
@@ -25007,7 +25018,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
25007
25018
|
}, g)),
|
|
25008
25019
|
/* @__PURE__ */ e("span", {
|
|
25009
25020
|
className: "tree__toggle",
|
|
25010
|
-
children: i ? /* @__PURE__ */ e(
|
|
25021
|
+
children: i ? /* @__PURE__ */ e(Ol, { open: m }) : /* @__PURE__ */ e("span", { className: "tree__leaf-dot" })
|
|
25011
25022
|
}),
|
|
25012
25023
|
t.icon && /* @__PURE__ */ e("span", {
|
|
25013
25024
|
className: "tree__icon",
|
|
@@ -25038,7 +25049,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
25038
25049
|
onSelect: o
|
|
25039
25050
|
}, u.id))
|
|
25040
25051
|
})] });
|
|
25041
|
-
},
|
|
25052
|
+
}, Ji = ({ nodes: t, selectable: r = !1, onSelect: l, showGuides: a = !0, animated: h = !0, defaultSelectedId: d = null, className: o = "" }) => {
|
|
25042
25053
|
const [m, n] = z(d), i = Z((s) => {
|
|
25043
25054
|
s.disabled || (n(s.id), l?.(s));
|
|
25044
25055
|
}, [l]);
|
|
@@ -25054,9 +25065,9 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
25054
25065
|
onSelect: i
|
|
25055
25066
|
}, s.id))
|
|
25056
25067
|
});
|
|
25057
|
-
},
|
|
25058
|
-
function
|
|
25059
|
-
const i =
|
|
25068
|
+
}, Yl = 96, ql = 6;
|
|
25069
|
+
function en({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = ql, maxHeight: d, empty: o, className: m = "", rowClassName: n = "" }) {
|
|
25070
|
+
const i = X(null), [s, p] = z(0), [u, g] = z(0), [v, w] = z(() => window.innerHeight), [f, y] = z(Yl), b = a && a > 0 ? a : f, C = Z((_) => {
|
|
25060
25071
|
p(_.currentTarget.scrollTop);
|
|
25061
25072
|
}, []);
|
|
25062
25073
|
F(() => {
|
|
@@ -25144,7 +25155,7 @@ var $1 = [
|
|
|
25144
25155
|
color: "#FF4444",
|
|
25145
25156
|
percentage: 15
|
|
25146
25157
|
}
|
|
25147
|
-
],
|
|
25158
|
+
], Xl = (t) => {
|
|
25148
25159
|
for (const r of $1) if (t <= r.max) return {
|
|
25149
25160
|
label: r.label,
|
|
25150
25161
|
color: r.color
|
|
@@ -25153,7 +25164,7 @@ var $1 = [
|
|
|
25153
25164
|
label: $1[$1.length - 1].label,
|
|
25154
25165
|
color: $1[$1.length - 1].color
|
|
25155
25166
|
};
|
|
25156
|
-
},
|
|
25167
|
+
}, Kl = (t) => {
|
|
25157
25168
|
const r = [
|
|
25158
25169
|
0,
|
|
25159
25170
|
0.4,
|
|
@@ -25168,8 +25179,8 @@ var $1 = [
|
|
|
25168
25179
|
l += $1[a].percentage;
|
|
25169
25180
|
}
|
|
25170
25181
|
return 100;
|
|
25171
|
-
},
|
|
25172
|
-
const d = Math.round(t / r * 100) / 100, o =
|
|
25182
|
+
}, tn = ({ belly: t, height: r, isSimplified: l = !1, showLabels: a = !0, showIndicator: h = !0 }) => {
|
|
25183
|
+
const d = Math.round(t / r * 100) / 100, o = Xl(d), m = Kl(d), n = [
|
|
25173
25184
|
"<0.4",
|
|
25174
25185
|
"0.4-0.5",
|
|
25175
25186
|
"0.5-0.6",
|
|
@@ -25219,7 +25230,7 @@ var $1 = [
|
|
|
25219
25230
|
]
|
|
25220
25231
|
});
|
|
25221
25232
|
}, l3 = _0(void 0);
|
|
25222
|
-
function
|
|
25233
|
+
function rn({ children: t, config: r }) {
|
|
25223
25234
|
const [l, a] = z(null), [h, d] = z(!0);
|
|
25224
25235
|
F(() => {
|
|
25225
25236
|
(async () => {
|
|
@@ -25330,7 +25341,7 @@ var n2 = () => {
|
|
|
25330
25341
|
if (t === void 0) throw new Error("useAuth must be used within an AuthProvider");
|
|
25331
25342
|
return t;
|
|
25332
25343
|
};
|
|
25333
|
-
function
|
|
25344
|
+
function cn({ isOpen: t, onClose: r }) {
|
|
25334
25345
|
const { config: l } = n2(), [a, h] = z(""), [d, o] = z(""), [m, n] = z(""), [i, s] = z(""), [p, u] = z(!1), [g, v] = z(null);
|
|
25335
25346
|
F(() => {
|
|
25336
25347
|
t && (h(""), o(""), n(""), s(""));
|
|
@@ -25457,7 +25468,7 @@ function rn({ isOpen: t, onClose: r }) {
|
|
|
25457
25468
|
})]
|
|
25458
25469
|
});
|
|
25459
25470
|
}
|
|
25460
|
-
function
|
|
25471
|
+
function ln({ redirectPath: t = "/" }) {
|
|
25461
25472
|
const { login: r, verifyMfa: l, config: a, isAuthenticated: h } = n2(), [d, o] = z("credentials"), [m, n] = z(""), [i, s] = z(""), [p, u] = z(!1), [g, v] = z("totp"), [w, f] = z(""), [y, b] = z(!1), [C, x] = z(""), [k, H] = z(!1), [L, M] = z(!1);
|
|
25462
25473
|
F(() => {
|
|
25463
25474
|
h && (window.location.href = t);
|
|
@@ -25599,7 +25610,7 @@ function cn({ redirectPath: t = "/" }) {
|
|
|
25599
25610
|
onClose: () => M(!1)
|
|
25600
25611
|
})] });
|
|
25601
25612
|
}
|
|
25602
|
-
var
|
|
25613
|
+
var Ql = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.prototype.hasOwnProperty, i3 = Object.prototype.propertyIsEnumerable, R2 = (t, r, l) => r in t ? Ql(t, r, {
|
|
25603
25614
|
enumerable: !0,
|
|
25604
25615
|
configurable: !0,
|
|
25605
25616
|
writable: !0,
|
|
@@ -25615,7 +25626,7 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
|
|
|
25615
25626
|
if (t != null && A0)
|
|
25616
25627
|
for (var a of A0(t)) r.indexOf(a) < 0 && i3.call(t, a) && (l[a] = t[a]);
|
|
25617
25628
|
return l;
|
|
25618
|
-
},
|
|
25629
|
+
}, l0;
|
|
25619
25630
|
((t) => {
|
|
25620
25631
|
const r = class i1 {
|
|
25621
25632
|
constructor(n, i, s, p) {
|
|
@@ -26316,7 +26327,7 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
|
|
|
26316
26327
|
d.NUMERIC_REGEX = /^[0-9]*$/, d.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, d.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
|
|
26317
26328
|
let o = d;
|
|
26318
26329
|
t.QrSegment = d;
|
|
26319
|
-
})(
|
|
26330
|
+
})(l0 || (l0 = {}));
|
|
26320
26331
|
((t) => {
|
|
26321
26332
|
((r) => {
|
|
26322
26333
|
const l = class {
|
|
@@ -26326,7 +26337,7 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
|
|
|
26326
26337
|
};
|
|
26327
26338
|
l.LOW = new l(0, 1), l.MEDIUM = new l(1, 0), l.QUARTILE = new l(2, 3), l.HIGH = new l(3, 2), r.Ecc = l;
|
|
26328
26339
|
})(t.QrCode || (t.QrCode = {}));
|
|
26329
|
-
})(
|
|
26340
|
+
})(l0 || (l0 = {}));
|
|
26330
26341
|
((t) => {
|
|
26331
26342
|
((r) => {
|
|
26332
26343
|
const l = class {
|
|
@@ -26359,13 +26370,13 @@ var Kl = Object.defineProperty, A0 = Object.getOwnPropertySymbols, a3 = Object.p
|
|
|
26359
26370
|
0
|
|
26360
26371
|
]), r.Mode = l;
|
|
26361
26372
|
})(t.QrSegment || (t.QrSegment = {}));
|
|
26362
|
-
})(
|
|
26363
|
-
var v0 =
|
|
26373
|
+
})(l0 || (l0 = {}));
|
|
26374
|
+
var v0 = l0, Jl = {
|
|
26364
26375
|
L: v0.QrCode.Ecc.LOW,
|
|
26365
26376
|
M: v0.QrCode.Ecc.MEDIUM,
|
|
26366
26377
|
Q: v0.QrCode.Ecc.QUARTILE,
|
|
26367
26378
|
H: v0.QrCode.Ecc.HIGH
|
|
26368
|
-
}, n3 = 128, o3 = "L", s3 = "#FFFFFF", h3 = "#000000", d3 = !1, m3 = 1,
|
|
26379
|
+
}, n3 = 128, o3 = "L", s3 = "#FFFFFF", h3 = "#000000", d3 = !1, m3 = 1, ea = 4, ta = 0, ra = 0.1;
|
|
26369
26380
|
function p3(t, r = 0) {
|
|
26370
26381
|
const l = [];
|
|
26371
26382
|
return t.forEach(function(a, h) {
|
|
@@ -26387,9 +26398,9 @@ function p3(t, r = 0) {
|
|
|
26387
26398
|
function v3(t, r) {
|
|
26388
26399
|
return t.slice().map((l, a) => a < r.y || a >= r.y + r.h ? l : l.map((h, d) => d < r.x || d >= r.x + r.w ? h : !1));
|
|
26389
26400
|
}
|
|
26390
|
-
function
|
|
26401
|
+
function ca(t, r, l, a) {
|
|
26391
26402
|
if (a == null) return null;
|
|
26392
|
-
const h = t.length + l * 2, d = Math.floor(r *
|
|
26403
|
+
const h = t.length + l * 2, d = Math.floor(r * ra), o = h / r, m = (a.width || d) * o, n = (a.height || d) * o, i = a.x == null ? t.length / 2 - m / 2 : a.x * o, s = a.y == null ? t.length / 2 - n / 2 : a.y * o, p = a.opacity == null ? 1 : a.opacity;
|
|
26393
26404
|
let u = null;
|
|
26394
26405
|
if (a.excavate) {
|
|
26395
26406
|
let v = Math.floor(i), w = Math.floor(s);
|
|
@@ -26411,13 +26422,13 @@ function ra(t, r, l, a) {
|
|
|
26411
26422
|
crossOrigin: g
|
|
26412
26423
|
};
|
|
26413
26424
|
}
|
|
26414
|
-
function
|
|
26415
|
-
return r != null ? Math.max(Math.floor(r), 0) : t ?
|
|
26425
|
+
function la(t, r) {
|
|
26426
|
+
return r != null ? Math.max(Math.floor(r), 0) : t ? ea : ta;
|
|
26416
26427
|
}
|
|
26417
26428
|
function u3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h, imageSettings: d, size: o, boostLevel: m }) {
|
|
26418
26429
|
let n = g1.useMemo(() => {
|
|
26419
26430
|
const g = (Array.isArray(t) ? t : [t]).reduce((v, w) => (v.push(...v0.QrSegment.makeSegments(w)), v), []);
|
|
26420
|
-
return v0.QrCode.encodeSegments(g,
|
|
26431
|
+
return v0.QrCode.encodeSegments(g, Jl[r], l, void 0, void 0, m);
|
|
26421
26432
|
}, [
|
|
26422
26433
|
t,
|
|
26423
26434
|
r,
|
|
@@ -26426,12 +26437,12 @@ function u3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h
|
|
|
26426
26437
|
]);
|
|
26427
26438
|
const { cells: i, margin: s, numCells: p, calculatedImageSettings: u } = g1.useMemo(() => {
|
|
26428
26439
|
let g = n.getModules();
|
|
26429
|
-
const v =
|
|
26440
|
+
const v = la(a, h);
|
|
26430
26441
|
return {
|
|
26431
26442
|
cells: g,
|
|
26432
26443
|
margin: v,
|
|
26433
26444
|
numCells: g.length + v * 2,
|
|
26434
|
-
calculatedImageSettings:
|
|
26445
|
+
calculatedImageSettings: ca(g, o, v, d)
|
|
26435
26446
|
};
|
|
26436
26447
|
}, [
|
|
26437
26448
|
n,
|
|
@@ -26448,14 +26459,14 @@ function u3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h
|
|
|
26448
26459
|
calculatedImageSettings: u
|
|
26449
26460
|
};
|
|
26450
26461
|
}
|
|
26451
|
-
var
|
|
26462
|
+
var aa = (function() {
|
|
26452
26463
|
try {
|
|
26453
26464
|
new Path2D().addPath(new Path2D());
|
|
26454
26465
|
} catch {
|
|
26455
26466
|
return !1;
|
|
26456
26467
|
}
|
|
26457
26468
|
return !0;
|
|
26458
|
-
})(),
|
|
26469
|
+
})(), ia = g1.forwardRef(function(r, l) {
|
|
26459
26470
|
const a = r, { value: h, size: d = n3, level: o = o3, bgColor: m = s3, fgColor: n = h3, includeMargin: i = d3, minVersion: s = m3, boostLevel: p, marginSize: u, imageSettings: g } = a, v = r2(a, [
|
|
26460
26471
|
"value",
|
|
26461
26472
|
"size",
|
|
@@ -26489,7 +26500,7 @@ var la = (function() {
|
|
|
26489
26500
|
const q = window.devicePixelRatio || 1;
|
|
26490
26501
|
B.height = B.width = d * q;
|
|
26491
26502
|
const t1 = d / V * q;
|
|
26492
|
-
E.scale(t1, t1), E.fillStyle = m, E.fillRect(0, 0, V, V), E.fillStyle = n,
|
|
26503
|
+
E.scale(t1, t1), E.fillStyle = m, E.fillRect(0, 0, V, V), E.fillStyle = n, aa ? E.fill(new Path2D(p3(O, L))) : M.forEach(function(I, D) {
|
|
26493
26504
|
I.forEach(function(J, h1) {
|
|
26494
26505
|
J && E.fillRect(h1 + L, D + L, 1, 1);
|
|
26495
26506
|
});
|
|
@@ -26520,7 +26531,7 @@ var la = (function() {
|
|
|
26520
26531
|
role: "img"
|
|
26521
26532
|
}, f)), R);
|
|
26522
26533
|
});
|
|
26523
|
-
|
|
26534
|
+
ia.displayName = "QRCodeCanvas";
|
|
26524
26535
|
var g3 = g1.forwardRef(function(r, l) {
|
|
26525
26536
|
const a = r, { value: h, size: d = n3, level: o = o3, bgColor: m = s3, fgColor: n = h3, includeMargin: i = d3, minVersion: s = m3, boostLevel: p, title: u, marginSize: g, imageSettings: v } = a, w = r2(a, [
|
|
26526
26537
|
"value",
|
|
@@ -26573,7 +26584,7 @@ var g3 = g1.forwardRef(function(r, l) {
|
|
|
26573
26584
|
}), k);
|
|
26574
26585
|
});
|
|
26575
26586
|
g3.displayName = "QRCodeSVG";
|
|
26576
|
-
function
|
|
26587
|
+
function on({ isOpen: t, onClose: r }) {
|
|
26577
26588
|
const { config: l } = n2(), [a, h] = z("loading"), [d, o] = z(!1), [m, n] = z(null), [i, s] = z(""), [p, u] = z(""), [g, v] = z(""), [w, f] = z(""), [y, b] = z([]), [C, x] = z(""), [k, H] = z(!1), [L, M] = z(null), V = Z(async (J, h1) => {
|
|
26578
26589
|
const U = document.cookie.match(/(?:^|;\s*)csrf_token=([^;]+)/), d1 = U ? decodeURIComponent(U[1]) : null, v1 = { "Content-Type": "application/json" };
|
|
26579
26590
|
d1 && (v1["X-CSRF-Token"] = d1);
|
|
@@ -26933,7 +26944,7 @@ var x0 = class {
|
|
|
26933
26944
|
}
|
|
26934
26945
|
}
|
|
26935
26946
|
};
|
|
26936
|
-
function
|
|
26947
|
+
function sn(t, r) {
|
|
26937
26948
|
const l = {
|
|
26938
26949
|
pages: r.pages ?? {},
|
|
26939
26950
|
theme: r.theme
|
|
@@ -26979,11 +26990,11 @@ function on(t, r) {
|
|
|
26979
26990
|
clearAll: n
|
|
26980
26991
|
};
|
|
26981
26992
|
}
|
|
26982
|
-
var
|
|
26993
|
+
var hn = (t) => new Intl.NumberFormat("en-US", {
|
|
26983
26994
|
style: "currency",
|
|
26984
26995
|
currency: "USD",
|
|
26985
26996
|
minimumFractionDigits: 0
|
|
26986
|
-
}).format(t),
|
|
26997
|
+
}).format(t), dn = (t) => new Intl.NumberFormat("en-US", { minimumFractionDigits: 0 }).format(t), mn = (t, r = 2) => {
|
|
26987
26998
|
if (!Number.isFinite(t) || t <= 0) return "0 B";
|
|
26988
26999
|
const l = [
|
|
26989
27000
|
"B",
|
|
@@ -26994,7 +27005,7 @@ var sn = (t) => new Intl.NumberFormat("en-US", {
|
|
|
26994
27005
|
"PB"
|
|
26995
27006
|
], a = Math.min(Math.floor(Math.log(t) / Math.log(1024)), l.length - 1), h = t / 1024 ** a, d = a === 0 ? 0 : r;
|
|
26996
27007
|
return `${h.toFixed(d)} ${l[a]}`;
|
|
26997
|
-
},
|
|
27008
|
+
}, na = /[̀-ͯ]/g, w3 = (t) => t.normalize("NFD").replace(na, "").toLowerCase(), oa = (t) => {
|
|
26998
27009
|
let r = "";
|
|
26999
27010
|
const l = [];
|
|
27000
27011
|
for (let a = 0; a < t.length; a++) {
|
|
@@ -27007,11 +27018,11 @@ var sn = (t) => new Intl.NumberFormat("en-US", {
|
|
|
27007
27018
|
mapping: l
|
|
27008
27019
|
};
|
|
27009
27020
|
};
|
|
27010
|
-
function
|
|
27021
|
+
function pn(t, r) {
|
|
27011
27022
|
if (!r || !t) return t;
|
|
27012
27023
|
const l = w3(r);
|
|
27013
27024
|
if (!l) return t;
|
|
27014
|
-
const { folded: a, mapping: h } =
|
|
27025
|
+
const { folded: a, mapping: h } = oa(t), d = [];
|
|
27015
27026
|
let o = 0;
|
|
27016
27027
|
for (; o <= a.length - l.length; ) {
|
|
27017
27028
|
const i = a.indexOf(l, o);
|
|
@@ -27026,7 +27037,7 @@ function mn(t, r) {
|
|
|
27026
27037
|
i > n && m.push(t.slice(n, i)), m.push(/* @__PURE__ */ e("mark", { children: t.slice(i, s) }, p)), n = s;
|
|
27027
27038
|
}), n < t.length && m.push(t.slice(n)), m;
|
|
27028
27039
|
}
|
|
27029
|
-
var
|
|
27040
|
+
var vn = (t, r, l) => {
|
|
27030
27041
|
if (t.length === 0) return !0;
|
|
27031
27042
|
const a = r.toLowerCase(), h = t.map((d) => d.toLowerCase());
|
|
27032
27043
|
switch (l) {
|
|
@@ -27037,18 +27048,18 @@ var pn = (t, r, l) => {
|
|
|
27037
27048
|
default:
|
|
27038
27049
|
throw new Error(`Invalid operator: ${l}. Use 'and' or 'or'.`);
|
|
27039
27050
|
}
|
|
27040
|
-
},
|
|
27051
|
+
}, un = (t) => t.toLowerCase().replace(/ /g, "-").replace(/[^\w-]+/g, ""), gn = (t, r = 20, l = 20, a = "...") => {
|
|
27041
27052
|
if (!t || t.length === 0) return "";
|
|
27042
27053
|
const h = r + l + a.length;
|
|
27043
27054
|
return t.length <= h ? t : `${t.substring(0, r)}${a}${t.substring(t.length - l)}`;
|
|
27044
|
-
},
|
|
27055
|
+
}, wn = (t, r = 100, l = "...") => !t || t.trim() === "" ? "" : t.length <= r ? t : t.substring(0, r).trim() + l, fn = (t) => new URL(t).host, Cn = (t) => {
|
|
27045
27056
|
try {
|
|
27046
27057
|
const r = new URL(t.trim());
|
|
27047
27058
|
return r.search = "", r.hash = "", r.toString().replace(/\/$/, "");
|
|
27048
27059
|
} catch {
|
|
27049
27060
|
return t.trim();
|
|
27050
27061
|
}
|
|
27051
|
-
},
|
|
27062
|
+
}, sa = /* @__PURE__ */ new Set([
|
|
27052
27063
|
"gclid",
|
|
27053
27064
|
"gclsrc",
|
|
27054
27065
|
"gad_source",
|
|
@@ -27095,15 +27106,15 @@ var pn = (t, r, l) => {
|
|
|
27095
27106
|
"ref",
|
|
27096
27107
|
"referrer",
|
|
27097
27108
|
"source"
|
|
27098
|
-
]),
|
|
27109
|
+
]), yn = (t) => {
|
|
27099
27110
|
try {
|
|
27100
27111
|
const r = new URL(t.trim()), l = new URLSearchParams(r.search);
|
|
27101
|
-
for (const a of [...l.keys()])
|
|
27112
|
+
for (const a of [...l.keys()]) sa.has(a) && l.delete(a);
|
|
27102
27113
|
return r.search = l.toString(), r.hash = "", r.toString().replace(/\/$/, "");
|
|
27103
27114
|
} catch {
|
|
27104
27115
|
return t.trim();
|
|
27105
27116
|
}
|
|
27106
|
-
},
|
|
27117
|
+
}, ha = "1.0.50", bn = 327, da = "4b5dd5e", ma = "2026-08-27T03:57:07.077Z", Mn = "327", pa = (t) => {
|
|
27107
27118
|
const r = document.getElementById("mb-version-toast");
|
|
27108
27119
|
if (r) {
|
|
27109
27120
|
r.remove();
|
|
@@ -27123,18 +27134,18 @@ var pn = (t, r, l) => {
|
|
|
27123
27134
|
"box-shadow:0 4px 16px rgba(0,0,0,0.35)",
|
|
27124
27135
|
"pointer-events:none"
|
|
27125
27136
|
].join(";"), l.textContent = `app ${t.app} (${t.commit}) - lib build ${t.libBuildNumber} - built ${t.buildDate}`, document.body.appendChild(l), setTimeout(() => l.remove(), 5e3);
|
|
27126
|
-
},
|
|
27137
|
+
}, xn = (t) => {
|
|
27127
27138
|
const r = {
|
|
27128
27139
|
...t,
|
|
27129
|
-
lib:
|
|
27130
|
-
libBuildNumber:
|
|
27131
|
-
libCommit:
|
|
27132
|
-
libBuildDate:
|
|
27140
|
+
lib: ha,
|
|
27141
|
+
libBuildNumber: 327,
|
|
27142
|
+
libCommit: da,
|
|
27143
|
+
libBuildDate: ma
|
|
27133
27144
|
};
|
|
27134
27145
|
window.__VERSIONS__ = r, console.info(`%c build %c app ${r.app} (${r.commit}) - lib build ${r.libBuildNumber} - ${r.buildDate} `, "background:#222;color:#0f0;padding:2px 6px;border-radius:3px 0 0 3px;font-weight:bold", "background:#333;color:#eee;padding:2px 6px;border-radius:0 3px 3px 0"), window.addEventListener("keydown", (l) => {
|
|
27135
|
-
l.ctrlKey && l.altKey && (l.key === "v" || l.key === "V") && (l.preventDefault(),
|
|
27146
|
+
l.ctrlKey && l.altKey && (l.key === "v" || l.key === "V") && (l.preventDefault(), pa(r));
|
|
27136
27147
|
});
|
|
27137
|
-
},
|
|
27148
|
+
}, va = /^[A-HJ-NPR-Z0-9]+$/, ua = {
|
|
27138
27149
|
A: 1,
|
|
27139
27150
|
B: 2,
|
|
27140
27151
|
C: 3,
|
|
@@ -27158,7 +27169,7 @@ var pn = (t, r, l) => {
|
|
|
27158
27169
|
X: 7,
|
|
27159
27170
|
Y: 8,
|
|
27160
27171
|
Z: 9
|
|
27161
|
-
},
|
|
27172
|
+
}, ga = [
|
|
27162
27173
|
8,
|
|
27163
27174
|
7,
|
|
27164
27175
|
6,
|
|
@@ -27176,20 +27187,20 @@ var pn = (t, r, l) => {
|
|
|
27176
27187
|
4,
|
|
27177
27188
|
3,
|
|
27178
27189
|
2
|
|
27179
|
-
],
|
|
27180
|
-
function wa(t) {
|
|
27181
|
-
return /\d/.test(t) ? parseInt(t, 10) : va[t] ?? 0;
|
|
27182
|
-
}
|
|
27190
|
+
], wa = /* @__PURE__ */ new Set("ABCDEFGHJKLMNPRSTVWXY123456789");
|
|
27183
27191
|
function fa(t) {
|
|
27184
|
-
|
|
27192
|
+
return /\d/.test(t) ? parseInt(t, 10) : ua[t] ?? 0;
|
|
27193
|
+
}
|
|
27194
|
+
function Ca(t) {
|
|
27195
|
+
const r = t.split("").reduce((a, h, d) => a + fa(h) * ga[d], 0) % 11, l = r === 10 ? "X" : String(r);
|
|
27185
27196
|
return t[8] === l;
|
|
27186
27197
|
}
|
|
27187
|
-
function
|
|
27198
|
+
function kn(t) {
|
|
27188
27199
|
const r = t.trim().toUpperCase();
|
|
27189
27200
|
return r.length !== 17 ? {
|
|
27190
27201
|
valid: !1,
|
|
27191
27202
|
error: "VIN must be exactly 17 characters"
|
|
27192
|
-
} :
|
|
27203
|
+
} : va.test(r) ? wa.has(r[9]) ? Ca(r) ? { valid: !0 } : {
|
|
27193
27204
|
valid: !1,
|
|
27194
27205
|
error: "VIN checksum is invalid"
|
|
27195
27206
|
} : {
|
|
@@ -27204,186 +27215,186 @@ export {
|
|
|
27204
27215
|
xr as ADULT_RANGES,
|
|
27205
27216
|
Sr as APP_DATE_FORMAT,
|
|
27206
27217
|
Rr as APP_DATE_TIME_FORMAT,
|
|
27207
|
-
|
|
27208
|
-
|
|
27218
|
+
xa as Accordion,
|
|
27219
|
+
ka as AlertDialog,
|
|
27209
27220
|
I2 as AppHeader,
|
|
27210
27221
|
x0 as AppPersistenceStorage,
|
|
27211
27222
|
l3 as AuthContext,
|
|
27212
|
-
|
|
27213
|
-
|
|
27214
|
-
|
|
27215
|
-
|
|
27216
|
-
|
|
27217
|
-
|
|
27218
|
-
|
|
27219
|
-
|
|
27223
|
+
ln as AuthLogin,
|
|
27224
|
+
rn as AuthProvider,
|
|
27225
|
+
_a as AvatarInitials,
|
|
27226
|
+
Va as BMI,
|
|
27227
|
+
La as Badge,
|
|
27228
|
+
za as Banner,
|
|
27229
|
+
Na as Breadcrumb,
|
|
27230
|
+
Ha as BulkActionBar,
|
|
27220
27231
|
T as Button,
|
|
27221
27232
|
R0 as Calendar,
|
|
27222
|
-
|
|
27233
|
+
Pa as CalendarHeatmap,
|
|
27223
27234
|
Z2 as Card,
|
|
27224
|
-
|
|
27235
|
+
cn as ChangePasswordModal,
|
|
27225
27236
|
c0 as Checkbox,
|
|
27226
27237
|
d0 as Chip,
|
|
27227
|
-
|
|
27228
|
-
|
|
27229
|
-
|
|
27230
|
-
|
|
27231
|
-
|
|
27238
|
+
ja as CollapsibleSection,
|
|
27239
|
+
Wa as ColorPicker,
|
|
27240
|
+
Ua as CommandPalette,
|
|
27241
|
+
Fa as Confetti,
|
|
27242
|
+
Oa as ConfirmDialog,
|
|
27232
27243
|
qr as ConfirmPopover,
|
|
27233
27244
|
Xr as ContextMenu,
|
|
27234
|
-
|
|
27235
|
-
|
|
27236
|
-
|
|
27237
|
-
|
|
27238
|
-
|
|
27245
|
+
ei as ControlPanel,
|
|
27246
|
+
Qa as ControlPanelProvider,
|
|
27247
|
+
ti as CopyButton,
|
|
27248
|
+
ri as CountryWithFlag,
|
|
27249
|
+
li as DataView,
|
|
27239
27250
|
ec as DatePicker,
|
|
27240
|
-
|
|
27241
|
-
|
|
27251
|
+
ai as DateRangePicker,
|
|
27252
|
+
ii as DiffViewer,
|
|
27242
27253
|
K2 as Drawer,
|
|
27243
27254
|
V0 as Dropdown,
|
|
27244
|
-
|
|
27255
|
+
ni as EmojiPicker,
|
|
27245
27256
|
r0 as EmptyState,
|
|
27246
|
-
|
|
27247
|
-
|
|
27248
|
-
|
|
27249
|
-
|
|
27250
|
-
|
|
27257
|
+
oi as ErrorBoundary,
|
|
27258
|
+
si as FileDropzone,
|
|
27259
|
+
yc as Flag,
|
|
27260
|
+
hi as FloatButton,
|
|
27261
|
+
di as FolderBrowserModal,
|
|
27251
27262
|
P as Icon,
|
|
27252
|
-
|
|
27263
|
+
mi as InfiniteScroll,
|
|
27253
27264
|
rc as InputDate,
|
|
27254
|
-
|
|
27255
|
-
|
|
27256
|
-
|
|
27257
|
-
|
|
27265
|
+
pi as InputEmail,
|
|
27266
|
+
vi as InputFile,
|
|
27267
|
+
il as InputMask,
|
|
27268
|
+
ui as InputMaskPresets,
|
|
27258
27269
|
A1 as InputNumber,
|
|
27259
27270
|
u0 as InputPassword,
|
|
27260
|
-
|
|
27261
|
-
|
|
27271
|
+
sl as InputPhone,
|
|
27272
|
+
a0 as InputSearch,
|
|
27262
27273
|
V1 as InputText,
|
|
27263
|
-
|
|
27264
|
-
|
|
27265
|
-
|
|
27266
|
-
|
|
27267
|
-
|
|
27268
|
-
|
|
27269
|
-
|
|
27270
|
-
|
|
27271
|
-
|
|
27272
|
-
|
|
27274
|
+
gi as InputTextarea,
|
|
27275
|
+
wi as InputTime,
|
|
27276
|
+
fi as InputUrl,
|
|
27277
|
+
Ci as JourneyWizard,
|
|
27278
|
+
ma as LIB_BUILD_DATE,
|
|
27279
|
+
Mn as LIB_BUILD_ID,
|
|
27280
|
+
bn as LIB_BUILD_NUMBER,
|
|
27281
|
+
da as LIB_COMMIT,
|
|
27282
|
+
ha as LIB_VERSION,
|
|
27283
|
+
yi as List,
|
|
27273
27284
|
Q2 as Loading,
|
|
27274
|
-
|
|
27275
|
-
|
|
27276
|
-
|
|
27277
|
-
|
|
27278
|
-
|
|
27285
|
+
ml as MenuHamburger,
|
|
27286
|
+
on as MfaSetupModal,
|
|
27287
|
+
Ec as MiniSort,
|
|
27288
|
+
Mi as MiniStatsCard,
|
|
27289
|
+
bi as Minimap,
|
|
27279
27290
|
W1 as Modal,
|
|
27280
|
-
|
|
27281
|
-
|
|
27291
|
+
xi as NavBar,
|
|
27292
|
+
pl as NotificationPanel,
|
|
27282
27293
|
Mr as PEDIATRIC_THRESHOLDS,
|
|
27283
27294
|
y2 as Pagination,
|
|
27284
|
-
|
|
27295
|
+
ki as PieChart,
|
|
27285
27296
|
P2 as Popover,
|
|
27286
|
-
|
|
27287
|
-
|
|
27288
|
-
|
|
27289
|
-
|
|
27290
|
-
|
|
27291
|
-
|
|
27292
|
-
|
|
27297
|
+
zi as ProgressBar,
|
|
27298
|
+
Vi as ProgressRing,
|
|
27299
|
+
Ni as QuantitySelector,
|
|
27300
|
+
Hi as QuickAdd,
|
|
27301
|
+
Si as QuickNumberUpdate,
|
|
27302
|
+
Ri as QuickOptionUpdate,
|
|
27303
|
+
Cl as Radio,
|
|
27293
27304
|
lc as Rating,
|
|
27294
|
-
|
|
27295
|
-
|
|
27305
|
+
Ai as RichTextEditor,
|
|
27306
|
+
$i as ScrollToTop,
|
|
27296
27307
|
h0 as Separator,
|
|
27297
|
-
|
|
27298
|
-
|
|
27299
|
-
|
|
27300
|
-
|
|
27301
|
-
|
|
27302
|
-
|
|
27303
|
-
|
|
27304
|
-
|
|
27305
|
-
|
|
27306
|
-
|
|
27308
|
+
Ti as Sidebar,
|
|
27309
|
+
Di as SidebarProvider,
|
|
27310
|
+
Ii as SignalStrength,
|
|
27311
|
+
Gi as Skeleton,
|
|
27312
|
+
vc as Slider,
|
|
27313
|
+
Zi as SplitPanel,
|
|
27314
|
+
Pi as StackedBar,
|
|
27315
|
+
ji as Stats,
|
|
27316
|
+
Wi as StickyBar,
|
|
27317
|
+
Ui as SuggestionsList,
|
|
27307
27318
|
p0 as THEME_CONFIGS,
|
|
27308
27319
|
E2 as ThemeContext,
|
|
27309
|
-
|
|
27310
|
-
|
|
27311
|
-
|
|
27312
|
-
|
|
27313
|
-
|
|
27314
|
-
|
|
27315
|
-
|
|
27320
|
+
Fi as ThemeProvider,
|
|
27321
|
+
Oi as ThemeSettings,
|
|
27322
|
+
Yi as Timeline,
|
|
27323
|
+
Sc as TimelineMarkerDot,
|
|
27324
|
+
ci as TimelineMarkers,
|
|
27325
|
+
Rc as TimelineMobileSeparator,
|
|
27326
|
+
qi as TipsOfTheDay,
|
|
27316
27327
|
i2 as Toast,
|
|
27317
|
-
|
|
27318
|
-
|
|
27319
|
-
|
|
27328
|
+
qa as ToastContainer,
|
|
27329
|
+
Xa as ToastProvider,
|
|
27330
|
+
Xi as ToggleButtons,
|
|
27320
27331
|
S2 as ToggleSwitch,
|
|
27321
|
-
|
|
27322
|
-
|
|
27323
|
-
|
|
27324
|
-
|
|
27325
|
-
|
|
27326
|
-
|
|
27327
|
-
|
|
27332
|
+
Ki as Toolbar,
|
|
27333
|
+
K as Tooltip,
|
|
27334
|
+
Qi as TourHud,
|
|
27335
|
+
Ji as Tree,
|
|
27336
|
+
en as VirtualList,
|
|
27337
|
+
tn as WHtR,
|
|
27338
|
+
Ga as addDays,
|
|
27328
27339
|
k0 as addMonths,
|
|
27329
27340
|
y0 as breakpoints,
|
|
27330
27341
|
_r as calculateBMI,
|
|
27331
27342
|
a2 as calculateTimelineMarkers,
|
|
27332
|
-
|
|
27333
|
-
|
|
27343
|
+
yl as ensureHtml,
|
|
27344
|
+
fn as extractDomainFromUrl,
|
|
27334
27345
|
w2 as foldDiacritics,
|
|
27335
27346
|
E0 as format2Digits,
|
|
27336
|
-
|
|
27337
|
-
|
|
27338
|
-
|
|
27339
|
-
|
|
27347
|
+
$a as formatAppDate,
|
|
27348
|
+
Ea as formatAppDateTime,
|
|
27349
|
+
dn as formatBigNumber,
|
|
27350
|
+
mn as formatBytes,
|
|
27340
27351
|
X1 as formatDate,
|
|
27341
|
-
|
|
27342
|
-
|
|
27343
|
-
|
|
27344
|
-
|
|
27345
|
-
|
|
27346
|
-
|
|
27347
|
-
|
|
27348
|
-
|
|
27352
|
+
Ba as formatDateLocale,
|
|
27353
|
+
Sa as formatDuration,
|
|
27354
|
+
hn as formatMoney,
|
|
27355
|
+
Da as formatRelativeDuration,
|
|
27356
|
+
Za as formatRelativeTime,
|
|
27357
|
+
Ra as formatSecondsToMediaTime,
|
|
27358
|
+
Ja as fuzzyMatch,
|
|
27359
|
+
Ia as getDaysInMonth,
|
|
27349
27360
|
zr as getIndicatorColor,
|
|
27350
27361
|
Lr as getIndicatorPosition,
|
|
27351
27362
|
Br as getMonthMatrix,
|
|
27352
27363
|
kr as getPediatricRanges,
|
|
27353
|
-
|
|
27354
|
-
|
|
27364
|
+
_i as getPercent,
|
|
27365
|
+
Li as getPercentsOf2Numbers,
|
|
27355
27366
|
Vr as getRangeLabel,
|
|
27356
|
-
|
|
27357
|
-
|
|
27358
|
-
|
|
27359
|
-
|
|
27360
|
-
|
|
27361
|
-
|
|
27362
|
-
|
|
27367
|
+
bc as getResultsCount,
|
|
27368
|
+
Gl as getThemeConfig,
|
|
27369
|
+
Aa as getTodayDateString,
|
|
27370
|
+
pn as highlightText,
|
|
27371
|
+
Ml as htmlToMarkdown,
|
|
27372
|
+
bl as htmlToPlainText,
|
|
27373
|
+
xn as initVersionInfo,
|
|
27363
27374
|
Er as isAfter,
|
|
27364
27375
|
j0 as isBefore,
|
|
27365
|
-
|
|
27376
|
+
Ta as isDateInRange,
|
|
27366
27377
|
q1 as isSameDay,
|
|
27367
27378
|
Ar as isToday,
|
|
27368
27379
|
$r as isWeekend,
|
|
27369
|
-
|
|
27370
|
-
|
|
27371
|
-
|
|
27372
|
-
|
|
27373
|
-
|
|
27374
|
-
|
|
27375
|
-
|
|
27376
|
-
|
|
27380
|
+
vn as matchStringsByLogicalOperator,
|
|
27381
|
+
gn as shortenText,
|
|
27382
|
+
un as slugify,
|
|
27383
|
+
Bi as splitHtmlIntoSteps,
|
|
27384
|
+
Cn as stripQueryString,
|
|
27385
|
+
yn as stripTrackingParams,
|
|
27386
|
+
wn as truncateText,
|
|
27387
|
+
sn as useAppPersistence,
|
|
27377
27388
|
n2 as useAuth,
|
|
27378
27389
|
$2 as useBodyScrollLock,
|
|
27379
27390
|
g0 as useBreakpoint,
|
|
27380
27391
|
T2 as useComponentEffect,
|
|
27381
|
-
|
|
27392
|
+
Ka as useControlPanel,
|
|
27382
27393
|
l2 as useControlPanelContext,
|
|
27383
|
-
|
|
27384
|
-
|
|
27394
|
+
Ya as usePopover,
|
|
27395
|
+
Ei as useSidebar,
|
|
27385
27396
|
D2 as useTheme,
|
|
27386
27397
|
Kr as useToast,
|
|
27387
|
-
|
|
27388
|
-
|
|
27398
|
+
rl as validateEmail,
|
|
27399
|
+
kn as validateVin
|
|
27389
27400
|
};
|