@memobit/libs 1.0.16 → 1.0.17
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 +607 -625
- package/dist/version.json +4 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import E1, { Component as J2, Fragment as e3, createContext as w0, forwardRef as M1, useCallback as
|
|
1
|
+
import E1, { Component as J2, Fragment as e3, createContext as w0, forwardRef as M1, useCallback as j, useContext as f0, useEffect as U, useId as C0, useImperativeHandle as w2, useMemo as m1, useRef as Y, useState as z } from "react";
|
|
2
2
|
import { Fragment as c1, jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import { createPortal as q1 } from "react-dom";
|
|
4
4
|
var t3 = /* @__PURE__ */ r("svg", {
|
|
@@ -9973,7 +9973,7 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
9973
9973
|
storm: Pt,
|
|
9974
9974
|
uranus: Wt,
|
|
9975
9975
|
venus: Ut
|
|
9976
|
-
},
|
|
9976
|
+
}, E = ({ className: t = "", fade: c, fadeOnHover: l, name: a, pulse: s, pulseOnHover: o, size: i, spin: n, spinOnHover: d, variant: h }) => /* @__PURE__ */ e("span", {
|
|
9977
9977
|
className: [
|
|
9978
9978
|
"icon",
|
|
9979
9979
|
i ? `icon--${i}` : "",
|
|
@@ -9987,7 +9987,7 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
9987
9987
|
t
|
|
9988
9988
|
].filter(Boolean).join(" "),
|
|
9989
9989
|
children: Ft[a]
|
|
9990
|
-
}),
|
|
9990
|
+
}), Zl = ({ items: t, allowMultiple: c = !1, defaultExpanded: l = [], onChange: a, className: s = "" }) => {
|
|
9991
9991
|
const [o, i] = z(l), n = (d) => {
|
|
9992
9992
|
if (t.find((m) => m.id === d)?.disabled) return;
|
|
9993
9993
|
let h;
|
|
@@ -10019,7 +10019,7 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
10019
10019
|
disabled: o,
|
|
10020
10020
|
children: [/* @__PURE__ */ r("span", {
|
|
10021
10021
|
className: "accordion-item__title",
|
|
10022
|
-
children: [l && /* @__PURE__ */ e(
|
|
10022
|
+
children: [l && /* @__PURE__ */ e(E, { name: l }), /* @__PURE__ */ e("span", {
|
|
10023
10023
|
className: "accordion-item__title-text",
|
|
10024
10024
|
children: c
|
|
10025
10025
|
})]
|
|
@@ -10089,7 +10089,7 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
10089
10089
|
title: w,
|
|
10090
10090
|
type: v,
|
|
10091
10091
|
children: n ? /* @__PURE__ */ r(c1, { children: [/* @__PURE__ */ e("span", { className: "button__spinner" }), /* @__PURE__ */ e("span", { children: c || "Loading..." })] }) : /* @__PURE__ */ r(c1, { children: [
|
|
10092
|
-
o !== void 0 && (typeof o == "string" ? /* @__PURE__ */ e(
|
|
10092
|
+
o !== void 0 && (typeof o == "string" ? /* @__PURE__ */ e(E, {
|
|
10093
10093
|
size: "lg",
|
|
10094
10094
|
name: o,
|
|
10095
10095
|
variant: i
|
|
@@ -10124,7 +10124,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
|
|
|
10124
10124
|
/* @__PURE__ */ r("div", {
|
|
10125
10125
|
className: "modal__header",
|
|
10126
10126
|
children: [/* @__PURE__ */ r("h2", { children: [
|
|
10127
|
-
p ? /* @__PURE__ */ e(
|
|
10127
|
+
p ? /* @__PURE__ */ e(E, { name: p }) : null,
|
|
10128
10128
|
" ",
|
|
10129
10129
|
m
|
|
10130
10130
|
] }), /* @__PURE__ */ e(F, {
|
|
@@ -10170,7 +10170,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
|
|
|
10170
10170
|
})
|
|
10171
10171
|
});
|
|
10172
10172
|
return g ? q1(C, document.body) : C;
|
|
10173
|
-
},
|
|
10173
|
+
}, Gl = ({ isOpen: t = !1, message: c, primary: l, title: a }) => /* @__PURE__ */ e(O1, {
|
|
10174
10174
|
isOpen: t,
|
|
10175
10175
|
title: a,
|
|
10176
10176
|
onClose: l?.onClick ? () => l.onClick() : void 0,
|
|
@@ -10236,7 +10236,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
|
|
|
10236
10236
|
}),
|
|
10237
10237
|
c && /* @__PURE__ */ e("span", {
|
|
10238
10238
|
className: "app-header__icon",
|
|
10239
|
-
children: /* @__PURE__ */ e(
|
|
10239
|
+
children: /* @__PURE__ */ e(E, { name: c })
|
|
10240
10240
|
}),
|
|
10241
10241
|
/* @__PURE__ */ r("div", {
|
|
10242
10242
|
className: "app-header__copy",
|
|
@@ -10303,7 +10303,7 @@ function Yt(t) {
|
|
|
10303
10303
|
for (const l of t) c += l.charCodeAt(0);
|
|
10304
10304
|
return c % k2.length;
|
|
10305
10305
|
}
|
|
10306
|
-
var
|
|
10306
|
+
var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = "" }) => {
|
|
10307
10307
|
const s = Ot(t), { background: o, color: i } = k2[Yt(s)];
|
|
10308
10308
|
return /* @__PURE__ */ e("div", {
|
|
10309
10309
|
className: `avatar-initials avatar-initials--${c} avatar-initials--${l} ${a}`,
|
|
@@ -10317,7 +10317,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10317
10317
|
children: s
|
|
10318
10318
|
})
|
|
10319
10319
|
});
|
|
10320
|
-
},
|
|
10320
|
+
}, Il = ({ variant: t = "default", children: c, className: l = "", size: a = "medium", customColor: s, isActive: o, onClick: i, onClear: n }) => {
|
|
10321
10321
|
const d = o !== void 0 ? o ? "badge--active" : "badge--inactive" : "", h = i ? "badge--clickable" : "", m = s ? "badge-variant--custom" : `badge-variant--${t}`, p = s ? { "--badge-custom-color": s } : void 0;
|
|
10322
10322
|
return /* @__PURE__ */ r("span", {
|
|
10323
10323
|
className: `badge ${m} ${l} badge-size--${a} ${d} ${h}`,
|
|
@@ -10337,7 +10337,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10337
10337
|
children: "×"
|
|
10338
10338
|
})]
|
|
10339
10339
|
});
|
|
10340
|
-
},
|
|
10340
|
+
}, jl = ({ action: t, secondaryAction: c, className: l = "", description: a, dismissLabel: s = "Dismiss", onDismiss: o, showDismiss: i = !0, title: n, variant: d = "default" }) => {
|
|
10341
10341
|
const [h, m] = z(!1), p = t?.variant || (d === "default" ? "default" : d);
|
|
10342
10342
|
if (h) return null;
|
|
10343
10343
|
const g = () => {
|
|
@@ -10375,7 +10375,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10375
10375
|
type: "button",
|
|
10376
10376
|
title: s,
|
|
10377
10377
|
onClick: g,
|
|
10378
|
-
children: /* @__PURE__ */ e(
|
|
10378
|
+
children: /* @__PURE__ */ e(E, {
|
|
10379
10379
|
name: "clear",
|
|
10380
10380
|
size: "sm"
|
|
10381
10381
|
})
|
|
@@ -10636,7 +10636,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10636
10636
|
}, tr = (t, c) => {
|
|
10637
10637
|
for (const l of c) if (t <= l.max) return l.color;
|
|
10638
10638
|
return c[c.length - 1].color;
|
|
10639
|
-
}, rr = (t, c, l) => c === 0 ? `<${t.max}` : c === l - 1 ? `>${t.min}` : `${t.min}–${t.max}`,
|
|
10639
|
+
}, rr = (t, c, l) => c === 0 ? `<${t.max}` : c === l - 1 ? `>${t.min}` : `${t.min}–${t.max}`, Pl = ({ weight: t, height: c, age: l, sex: a, isSimplified: s = !1, showLabels: o = !0, showIndicator: i = !0 }) => {
|
|
10640
10640
|
const n = Jt(t, c), d = l !== void 0 && a !== void 0 && l >= 2 && l <= 17 ? Qt(...Xt[a][l]) : Kt, h = er(n, d), m = tr(n, d);
|
|
10641
10641
|
return /* @__PURE__ */ r("div", {
|
|
10642
10642
|
className: `horizontal-bar-container ${s ? "horizontal-bar-container--is-simplified" : ""}`,
|
|
@@ -10680,7 +10680,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10680
10680
|
})
|
|
10681
10681
|
]
|
|
10682
10682
|
});
|
|
10683
|
-
},
|
|
10683
|
+
}, Wl = ({ items: t, separator: c = "/", className: l = "" }) => {
|
|
10684
10684
|
const a = (s, o) => {
|
|
10685
10685
|
s.onClick && (o.preventDefault(), s.onClick());
|
|
10686
10686
|
};
|
|
@@ -10708,7 +10708,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10708
10708
|
})
|
|
10709
10709
|
})
|
|
10710
10710
|
});
|
|
10711
|
-
}, cr = (t) => t.label ? `${t.label} ${t.done}/${t.total}` : `Running ${t.done}/${t.total}`,
|
|
10711
|
+
}, cr = (t) => t.label ? `${t.label} ${t.done}/${t.total}` : `Running ${t.done}/${t.total}`, Ul = ({ selectionCount: t, visible: c, label: l, progress: a, actions: s, onClear: o, clearLabel: i = "Clear", position: n = "bottom", className: d }) => c ?? t > 0 ? /* @__PURE__ */ r("div", {
|
|
10712
10712
|
className: [
|
|
10713
10713
|
"memobit-bulk-action-bar",
|
|
10714
10714
|
`memobit-bulk-action-bar--${n}`,
|
|
@@ -10738,11 +10738,11 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10738
10738
|
children: i
|
|
10739
10739
|
})]
|
|
10740
10740
|
})]
|
|
10741
|
-
}) : null,
|
|
10741
|
+
}) : null, Fl = (t) => {
|
|
10742
10742
|
if (t < 60) return `${t} min`;
|
|
10743
10743
|
const c = Math.floor(t / 60), l = t % 60;
|
|
10744
10744
|
return l === 0 ? `${c}h` : `${c}h ${l}min`;
|
|
10745
|
-
},
|
|
10745
|
+
}, ql = (t) => {
|
|
10746
10746
|
if (t == null || isNaN(t)) return "0:00";
|
|
10747
10747
|
const c = Math.floor(t), l = Math.floor(c / 3600), a = Math.floor(c % 3600 / 60), s = c % 60, o = a.toString().padStart(2, "0"), i = s.toString().padStart(2, "0");
|
|
10748
10748
|
return l === 0 ? `${a}:${i}` : `${l}:${o}:${i}`;
|
|
@@ -10762,25 +10762,25 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10762
10762
|
], F1 = (t, c) => {
|
|
10763
10763
|
const l = t.getFullYear(), a = t.getMonth(), s = String(a + 1).padStart(2, "0"), o = lr[a], i = String(t.getDate()).padStart(2, "0"), n = String(t.getHours()).padStart(2, "0"), d = String(t.getMinutes()).padStart(2, "0"), h = String(t.getSeconds()).padStart(2, "0");
|
|
10764
10764
|
return c.replace("YYYY", String(l)).replace("MMM", o).replace("MM", s).replace("DD", i).replace("HH", n).replace("mm", d).replace("ss", h);
|
|
10765
|
-
},
|
|
10765
|
+
}, Ol = (t) => {
|
|
10766
10766
|
const [c, l, a] = t.split("-").map(Number);
|
|
10767
10767
|
return new Date(c, l - 1, a).toLocaleDateString("en-US");
|
|
10768
|
-
},
|
|
10768
|
+
}, Yl = () => {
|
|
10769
10769
|
const t = /* @__PURE__ */ new Date();
|
|
10770
10770
|
return (/* @__PURE__ */ new Date(t.getTime() - t.getTimezoneOffset() * 6e4)).toISOString().slice(0, 10);
|
|
10771
|
-
}, ar = "DD MMM YYYY", ir = "DD MMM YYYY HH:mm",
|
|
10771
|
+
}, ar = "DD MMM YYYY", ir = "DD MMM YYYY HH:mm", Xl = (t) => {
|
|
10772
10772
|
const [c, l, a] = t.split("-").map(Number);
|
|
10773
10773
|
return F1(new Date(c, l - 1, a), ar);
|
|
10774
|
-
},
|
|
10774
|
+
}, Kl = (t) => {
|
|
10775
10775
|
const c = new Date(t.replace(" ", "T"));
|
|
10776
10776
|
return isNaN(c.getTime()) ? t : F1(c, ir);
|
|
10777
|
-
},
|
|
10777
|
+
}, Ql = (t) => {
|
|
10778
10778
|
const c = Math.floor(t / 365), l = Math.round((t - c * 365) / 30);
|
|
10779
10779
|
return c > 0 && l > 0 ? `${c}y ${l}m` : c > 0 ? `${c}y` : `${l}m`;
|
|
10780
|
-
}, U1 = (t, c) => t.getFullYear() === c.getFullYear() && t.getMonth() === c.getMonth() && t.getDate() === c.getDate(),
|
|
10780
|
+
}, U1 = (t, c) => t.getFullYear() === c.getFullYear() && t.getMonth() === c.getMonth() && t.getDate() === c.getDate(), Jl = (t, c, l) => {
|
|
10781
10781
|
const a = t.getTime();
|
|
10782
10782
|
return a >= c.getTime() && a <= l.getTime();
|
|
10783
|
-
},
|
|
10783
|
+
}, ea = (t, c) => new Date(t, c + 1, 0).getDate(), nr = (t, c, l = 0) => {
|
|
10784
10784
|
const a = new Date(t, c, 1), s = new Date(t, c + 1, 0).getDate();
|
|
10785
10785
|
let o = a.getDay();
|
|
10786
10786
|
l === 1 && (o = o === 0 ? 6 : o - 1);
|
|
@@ -10799,7 +10799,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10799
10799
|
}, or = (t) => U1(t, /* @__PURE__ */ new Date()), sr = (t) => {
|
|
10800
10800
|
const c = t.getDay();
|
|
10801
10801
|
return c === 0 || c === 6;
|
|
10802
|
-
},
|
|
10802
|
+
}, ta = (t, c) => {
|
|
10803
10803
|
const l = new Date(t);
|
|
10804
10804
|
return l.setDate(l.getDate() + c), l;
|
|
10805
10805
|
}, u0 = (t, c) => {
|
|
@@ -10811,7 +10811,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10811
10811
|
}, hr = (t, c) => {
|
|
10812
10812
|
const l = new Date(t.getFullYear(), t.getMonth(), t.getDate()), a = new Date(c.getFullYear(), c.getMonth(), c.getDate());
|
|
10813
10813
|
return l.getTime() > a.getTime();
|
|
10814
|
-
},
|
|
10814
|
+
}, ra = (t) => {
|
|
10815
10815
|
if (!t) return null;
|
|
10816
10816
|
const c = new Date(t);
|
|
10817
10817
|
if (Number.isNaN(c.getTime())) return null;
|
|
@@ -10904,7 +10904,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10904
10904
|
}, a1 = () => {
|
|
10905
10905
|
const B = /* @__PURE__ */ new Date(), Z = new Date(B.getFullYear(), B.getMonth(), 1);
|
|
10906
10906
|
p ? p(Z) : f(Z), x("days"), l === "single" && c?.(B);
|
|
10907
|
-
},
|
|
10907
|
+
}, I = () => {
|
|
10908
10908
|
g && x("months");
|
|
10909
10909
|
}, $ = () => {
|
|
10910
10910
|
g && (M(Math.floor(L.getFullYear() / P1) * P1), x("years"));
|
|
@@ -10999,7 +10999,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10999
10999
|
}) : /* @__PURE__ */ r(c1, { children: [/* @__PURE__ */ e("button", {
|
|
11000
11000
|
type: "button",
|
|
11001
11001
|
className: "calendar__header-button",
|
|
11002
|
-
onClick:
|
|
11002
|
+
onClick: I,
|
|
11003
11003
|
children: $0[L.getMonth()]
|
|
11004
11004
|
}), /* @__PURE__ */ e("button", {
|
|
11005
11005
|
type: "button",
|
|
@@ -11087,7 +11087,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11087
11087
|
"Fri",
|
|
11088
11088
|
"",
|
|
11089
11089
|
""
|
|
11090
|
-
], vr = (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", gr = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`,
|
|
11090
|
+
], vr = (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", gr = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, ca = ({ data: t, startDate: c, endDate: l, colorFn: a = vr, countLabel: s = "event" }) => {
|
|
11091
11091
|
const o = new Date(l ?? /* @__PURE__ */ new Date());
|
|
11092
11092
|
o.setHours(0, 0, 0, 0);
|
|
11093
11093
|
const i = new Date(c);
|
|
@@ -11176,13 +11176,13 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11176
11176
|
className: `${g ? "card-content-hidden" : ""}`,
|
|
11177
11177
|
children: [/* @__PURE__ */ r("span", {
|
|
11178
11178
|
className: "card-title-content",
|
|
11179
|
-
children: [a && /* @__PURE__ */ e(
|
|
11179
|
+
children: [a && /* @__PURE__ */ e(E, { name: a }), m]
|
|
11180
11180
|
}), o && /* @__PURE__ */ e("span", {
|
|
11181
11181
|
className: "collapsible-button",
|
|
11182
11182
|
onClick: () => w(!g),
|
|
11183
11183
|
children: /* @__PURE__ */ e("span", {
|
|
11184
11184
|
className: `opener-button ${g ? "opener-button-extended" : ""}`,
|
|
11185
|
-
children: /* @__PURE__ */ e(
|
|
11185
|
+
children: /* @__PURE__ */ e(E, {
|
|
11186
11186
|
name: "caret-up",
|
|
11187
11187
|
size: "lg"
|
|
11188
11188
|
})
|
|
@@ -11218,7 +11218,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11218
11218
|
className: "checkbox-label",
|
|
11219
11219
|
children: [/* @__PURE__ */ e("span", { className: "checkbox-box" }), (a || l) && /* @__PURE__ */ r("span", {
|
|
11220
11220
|
className: "checkbox-text",
|
|
11221
|
-
children: [a && /* @__PURE__ */ e(
|
|
11221
|
+
children: [a && /* @__PURE__ */ e(E, { name: a }), l && /* @__PURE__ */ e("span", {
|
|
11222
11222
|
className: "checkbox-text-label",
|
|
11223
11223
|
children: l
|
|
11224
11224
|
})]
|
|
@@ -11237,7 +11237,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11237
11237
|
className: "chip__swatch",
|
|
11238
11238
|
style: { backgroundColor: l }
|
|
11239
11239
|
}),
|
|
11240
|
-
o && /* @__PURE__ */ e(
|
|
11240
|
+
o && /* @__PURE__ */ e(E, { name: o }),
|
|
11241
11241
|
/* @__PURE__ */ e("span", {
|
|
11242
11242
|
className: "chip__label",
|
|
11243
11243
|
children: t
|
|
@@ -11247,7 +11247,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11247
11247
|
children: a
|
|
11248
11248
|
})
|
|
11249
11249
|
]
|
|
11250
|
-
}),
|
|
11250
|
+
}), la = ({ children: t, className: c = "", defaultCollapsed: l = !1, icon: a, isCollapsed: s, onToggle: o, rightDetails: i, title: n, toggleAccent: d, toggleHighlight: h, toggleMiddleIcon: m, toggleSize: p, toggleSpaceBetween: g, toggleSwap: w, toggleTint: v = "plain", toggleVariant: u, withCard: f = !1 }) => {
|
|
11251
11251
|
const [C, x] = z(l), b = s !== void 0, M = b ? s : C, _ = () => {
|
|
11252
11252
|
const L = !M;
|
|
11253
11253
|
b || x(L), o?.(L);
|
|
@@ -11261,7 +11261,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11261
11261
|
/* @__PURE__ */ r("div", {
|
|
11262
11262
|
className: "collapsible-section__label",
|
|
11263
11263
|
children: [
|
|
11264
|
-
a && /* @__PURE__ */ e(
|
|
11264
|
+
a && /* @__PURE__ */ e(E, {
|
|
11265
11265
|
name: a,
|
|
11266
11266
|
variant: u
|
|
11267
11267
|
}),
|
|
@@ -11269,10 +11269,10 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11269
11269
|
n
|
|
11270
11270
|
]
|
|
11271
11271
|
}),
|
|
11272
|
-
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
11272
|
+
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(E, { name: m }) }),
|
|
11273
11273
|
/* @__PURE__ */ e("span", {
|
|
11274
11274
|
className: `collapsible-section__icon ${M ? "collapsible-section__icon--collapsed" : ""}`,
|
|
11275
|
-
children: /* @__PURE__ */ e(
|
|
11275
|
+
children: /* @__PURE__ */ e(E, { name: "caret-up" })
|
|
11276
11276
|
}),
|
|
11277
11277
|
/* @__PURE__ */ e("span", {
|
|
11278
11278
|
className: "collapsible-section__right-details",
|
|
@@ -11286,7 +11286,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11286
11286
|
/* @__PURE__ */ r("span", {
|
|
11287
11287
|
className: "collapsible-section__label",
|
|
11288
11288
|
children: [
|
|
11289
|
-
a && /* @__PURE__ */ e(
|
|
11289
|
+
a && /* @__PURE__ */ e(E, {
|
|
11290
11290
|
name: a,
|
|
11291
11291
|
variant: u
|
|
11292
11292
|
}),
|
|
@@ -11294,10 +11294,10 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11294
11294
|
n
|
|
11295
11295
|
]
|
|
11296
11296
|
}),
|
|
11297
|
-
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
11297
|
+
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(E, { name: m }) }),
|
|
11298
11298
|
/* @__PURE__ */ e("span", {
|
|
11299
11299
|
className: `collapsible-section__icon ${M ? "collapsible-section__icon--collapsed" : ""}`,
|
|
11300
|
-
children: /* @__PURE__ */ e(
|
|
11300
|
+
children: /* @__PURE__ */ e(E, { name: "caret-up" })
|
|
11301
11301
|
})
|
|
11302
11302
|
]
|
|
11303
11303
|
})
|
|
@@ -11446,7 +11446,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11446
11446
|
g: Math.round((h + n) * 255),
|
|
11447
11447
|
b: Math.round((m + n) * 255)
|
|
11448
11448
|
};
|
|
11449
|
-
},
|
|
11449
|
+
}, aa = ({ value: t = "#4e79a7", onChange: c }) => {
|
|
11450
11450
|
const [l, a] = z("hex"), [s, o] = z(() => G1(D0(t) || {
|
|
11451
11451
|
r: 78,
|
|
11452
11452
|
g: 121,
|
|
@@ -11632,7 +11632,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11632
11632
|
})
|
|
11633
11633
|
]
|
|
11634
11634
|
});
|
|
11635
|
-
},
|
|
11635
|
+
}, ia = ({ items: t, isOpen: c, onOpenChange: l, placeholder: a = "Search commands", enableHotkey: s = !0 }) => {
|
|
11636
11636
|
const [o, i] = z(!1), [n, d] = z(""), h = c ?? o;
|
|
11637
11637
|
U(() => {
|
|
11638
11638
|
if (!s) return;
|
|
@@ -11820,16 +11820,16 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11820
11820
|
break;
|
|
11821
11821
|
}
|
|
11822
11822
|
t.restore();
|
|
11823
|
-
},
|
|
11823
|
+
}, na = M1(({ colors: t, duration: c = 3e3, scope: l = "fullscreen", variant: a = "confetti", particleCount: s }, o) => {
|
|
11824
11824
|
const i = Y(null), n = Y(0), d = Y(0), h = Y(!1), m = {
|
|
11825
11825
|
confetti: 150,
|
|
11826
11826
|
burst: 200,
|
|
11827
11827
|
fireworks: 8
|
|
11828
|
-
}, p =
|
|
11828
|
+
}, p = j(() => {
|
|
11829
11829
|
h.current = !1, cancelAnimationFrame(n.current);
|
|
11830
11830
|
const w = i.current;
|
|
11831
11831
|
w && w.getContext("2d")?.clearRect(0, 0, w.width, w.height);
|
|
11832
|
-
}, []), g =
|
|
11832
|
+
}, []), g = j(() => {
|
|
11833
11833
|
const w = i.current;
|
|
11834
11834
|
if (!w || h.current) return;
|
|
11835
11835
|
const v = w.getContext("2d");
|
|
@@ -11886,7 +11886,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11886
11886
|
ref: i,
|
|
11887
11887
|
className: `confetti-canvas confetti-canvas--${l}`
|
|
11888
11888
|
});
|
|
11889
|
-
}),
|
|
11889
|
+
}), oa = ({ isOpen: t = !1, message: c, title: l, confirm: a, cancel: s, usePortal: o = !1 }) => {
|
|
11890
11890
|
const i = {
|
|
11891
11891
|
variant: s?.variant || "default",
|
|
11892
11892
|
icon: s?.icon || "clear",
|
|
@@ -11919,7 +11919,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11919
11919
|
top: 0,
|
|
11920
11920
|
left: 0,
|
|
11921
11921
|
placement: "bottom"
|
|
11922
|
-
}), m =
|
|
11922
|
+
}), m = j(() => {
|
|
11923
11923
|
if (!a || !i.current || !c) return;
|
|
11924
11924
|
const p = a.getBoundingClientRect(), g = i.current.getBoundingClientRect(), w = {
|
|
11925
11925
|
width: window.innerWidth,
|
|
@@ -12007,7 +12007,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12007
12007
|
children: t
|
|
12008
12008
|
})]
|
|
12009
12009
|
}), document.body);
|
|
12010
|
-
},
|
|
12010
|
+
}, sa = () => {
|
|
12011
12011
|
const [t, c] = z({}), l = (n, d) => {
|
|
12012
12012
|
const h = d instanceof HTMLElement ? d : d.currentTarget;
|
|
12013
12013
|
c((m) => ({
|
|
@@ -12052,7 +12052,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12052
12052
|
children: [
|
|
12053
12053
|
(a || o) && /* @__PURE__ */ r("div", {
|
|
12054
12054
|
className: "confirm-popover__header",
|
|
12055
|
-
children: [o && /* @__PURE__ */ e(
|
|
12055
|
+
children: [o && /* @__PURE__ */ e(E, { name: o }), a && /* @__PURE__ */ e("span", {
|
|
12056
12056
|
className: "confirm-popover__title",
|
|
12057
12057
|
children: a
|
|
12058
12058
|
})]
|
|
@@ -12128,27 +12128,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12128
12128
|
const t = f0(z2);
|
|
12129
12129
|
if (!t) throw new Error("useToast must be used within a ToastProvider");
|
|
12130
12130
|
return t;
|
|
12131
|
-
}, Lr = (
|
|
12132
|
-
width: "16",
|
|
12133
|
-
height: "16",
|
|
12134
|
-
viewBox: "0 0 24 24",
|
|
12135
|
-
fill: "none",
|
|
12136
|
-
stroke: "currentColor",
|
|
12137
|
-
strokeWidth: "2",
|
|
12138
|
-
strokeLinecap: "round",
|
|
12139
|
-
strokeLinejoin: "round",
|
|
12140
|
-
children: [/* @__PURE__ */ e("line", {
|
|
12141
|
-
x1: "18",
|
|
12142
|
-
y1: "6",
|
|
12143
|
-
x2: "6",
|
|
12144
|
-
y2: "18"
|
|
12145
|
-
}), /* @__PURE__ */ e("line", {
|
|
12146
|
-
x1: "6",
|
|
12147
|
-
y1: "6",
|
|
12148
|
-
x2: "18",
|
|
12149
|
-
y2: "18"
|
|
12150
|
-
})]
|
|
12151
|
-
}), zr = ({ id: t, message: c, type: l = "info", action: a, onClose: s, showDismissButton: o = !0, timeout: i = 2e3 }) => {
|
|
12131
|
+
}, Lr = ({ id: t, message: c, type: l = "info", action: a, onClose: s, showDismissButton: o = !0, timeout: i = 2e3 }) => {
|
|
12152
12132
|
U(() => {
|
|
12153
12133
|
const p = setTimeout(() => {
|
|
12154
12134
|
s(t);
|
|
@@ -12180,15 +12160,18 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12180
12160
|
onClick: h,
|
|
12181
12161
|
className: "toast__close-button",
|
|
12182
12162
|
title: "Close",
|
|
12183
|
-
children: /* @__PURE__ */ e(
|
|
12163
|
+
children: /* @__PURE__ */ e(E, {
|
|
12164
|
+
name: "clear",
|
|
12165
|
+
size: "sm"
|
|
12166
|
+
})
|
|
12184
12167
|
})
|
|
12185
12168
|
]
|
|
12186
12169
|
});
|
|
12187
|
-
},
|
|
12170
|
+
}, ha = ({ position: t = "bottom-right", showDismissButton: c = !0 }) => {
|
|
12188
12171
|
const { toasts: l, removeToast: a } = _r();
|
|
12189
12172
|
return /* @__PURE__ */ e("div", {
|
|
12190
12173
|
className: `toast-container toast-container--${t}`,
|
|
12191
|
-
children: l.map((s) => /* @__PURE__ */ e(
|
|
12174
|
+
children: l.map((s) => /* @__PURE__ */ e(Lr, {
|
|
12192
12175
|
id: s.id,
|
|
12193
12176
|
message: s.message,
|
|
12194
12177
|
type: s.type,
|
|
@@ -12198,7 +12181,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12198
12181
|
onClose: a
|
|
12199
12182
|
}, s.id))
|
|
12200
12183
|
});
|
|
12201
|
-
},
|
|
12184
|
+
}, da = ({ children: t }) => {
|
|
12202
12185
|
const [c, l] = z([]), o = {
|
|
12203
12186
|
toasts: c,
|
|
12204
12187
|
addToast: (i, n = "info", d = 1500, h) => {
|
|
@@ -12236,7 +12219,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12236
12219
|
min: 1200,
|
|
12237
12220
|
max: 1 / 0
|
|
12238
12221
|
}
|
|
12239
|
-
},
|
|
12222
|
+
}, zr = {
|
|
12240
12223
|
mobile: "(max-width: 767px)",
|
|
12241
12224
|
tablet: "(min-width: 768px) and (max-width: 991px)",
|
|
12242
12225
|
desktop: "(min-width: 992px) and (max-width: 1199px)",
|
|
@@ -12251,10 +12234,10 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12251
12234
|
"desktop",
|
|
12252
12235
|
"largeDesktop"
|
|
12253
12236
|
].indexOf(t), h0 = () => {
|
|
12254
|
-
const [t, c] = z(G0), l =
|
|
12237
|
+
const [t, c] = z(G0), l = j((i) => W1(t) > W1(i), [t]), a = j((i) => W1(t) < W1(i), [t]), s = j((i) => W1(t) >= W1(i), [t]), o = j((i) => W1(t) <= W1(i), [t]);
|
|
12255
12238
|
return U(() => {
|
|
12256
12239
|
if (typeof window > "u") return;
|
|
12257
|
-
const i = Object.entries(
|
|
12240
|
+
const i = Object.entries(zr).map(([d, h]) => ({
|
|
12258
12241
|
breakpoint: d,
|
|
12259
12242
|
mql: window.matchMedia(h)
|
|
12260
12243
|
})), n = () => {
|
|
@@ -12278,12 +12261,12 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12278
12261
|
isAtLeast: s,
|
|
12279
12262
|
isAtMost: o
|
|
12280
12263
|
};
|
|
12281
|
-
}, V2 = w0(null), F0 = () => f0(V2),
|
|
12264
|
+
}, V2 = w0(null), F0 = () => f0(V2), ma = () => {
|
|
12282
12265
|
const t = F0();
|
|
12283
12266
|
if (!t) throw new Error("useControlPanel must be used within a ControlPanelProvider");
|
|
12284
12267
|
return t;
|
|
12285
|
-
},
|
|
12286
|
-
const { isMobile: c } = h0(), [l, a] = z(!1), s =
|
|
12268
|
+
}, pa = ({ children: t }) => {
|
|
12269
|
+
const { isMobile: c } = h0(), [l, a] = z(!1), s = j(() => a((d) => !d), []), o = j(() => a(!0), []), i = j(() => a(!1), []), n = m1(() => ({
|
|
12287
12270
|
isMobile: c,
|
|
12288
12271
|
isOpen: l,
|
|
12289
12272
|
toggle: s,
|
|
@@ -12376,7 +12359,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12376
12359
|
onMouseLeave: y,
|
|
12377
12360
|
children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${c}` })]
|
|
12378
12361
|
}), document.body)] });
|
|
12379
|
-
},
|
|
12362
|
+
}, Vr = ({ value: t, onChange: c, mode: l = "single", withTime: a = !1, timeFormat: s = "24h", withSeconds: o = !1, dateFormat: i = "YYYY-MM-DD", placeholder: n = "Select date...", disabled: d = !1, clearable: h = !0, autoClose: m = !0, alwaysOpen: p = !1, ...g }) => {
|
|
12380
12363
|
const [w, v] = z(!1), [u, f] = z(0), [C, x] = z(0), [b, M] = z(0), [_, N] = z(!1), [L, y] = z(null), [H, S] = z({
|
|
12381
12364
|
position: "fixed",
|
|
12382
12365
|
visibility: "hidden"
|
|
@@ -12391,14 +12374,14 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12391
12374
|
const D = p ? !d : w;
|
|
12392
12375
|
U(() => {
|
|
12393
12376
|
if (p) return;
|
|
12394
|
-
const
|
|
12377
|
+
const I = ($) => {
|
|
12395
12378
|
D && k.current && A.current && !k.current.contains($.target) && !A.current.contains($.target) && (y(null), v(!1));
|
|
12396
12379
|
};
|
|
12397
|
-
return document.addEventListener("mousedown",
|
|
12380
|
+
return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
|
|
12398
12381
|
}, [p, D]);
|
|
12399
|
-
const P =
|
|
12382
|
+
const P = j(() => {
|
|
12400
12383
|
if (p || !D || !k.current || !A.current) return;
|
|
12401
|
-
const
|
|
12384
|
+
const I = k.current.getBoundingClientRect(), $ = A.current.getBoundingClientRect(), p1 = 16, s1 = 8, W = window.innerHeight - I.bottom - p1, n1 = I.top - p1, v1 = W < $.height && n1 > $.height ? I.top - $.height - s1 : I.bottom + s1, y1 = Math.max(p1, Math.min(v1, window.innerHeight - $.height - p1)), k1 = Math.max(p1, Math.min(I.left, window.innerWidth - $.width - p1));
|
|
12402
12385
|
S({
|
|
12403
12386
|
position: "fixed",
|
|
12404
12387
|
top: `${y1}px`,
|
|
@@ -12414,9 +12397,9 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12414
12397
|
});
|
|
12415
12398
|
return;
|
|
12416
12399
|
}
|
|
12417
|
-
const
|
|
12400
|
+
const I = requestAnimationFrame(() => requestAnimationFrame(P));
|
|
12418
12401
|
return window.addEventListener("resize", P), window.addEventListener("scroll", P, !0), () => {
|
|
12419
|
-
cancelAnimationFrame(
|
|
12402
|
+
cancelAnimationFrame(I), window.removeEventListener("resize", P), window.removeEventListener("scroll", P, !0);
|
|
12420
12403
|
};
|
|
12421
12404
|
}, [
|
|
12422
12405
|
p,
|
|
@@ -12426,23 +12409,23 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12426
12409
|
const O = () => {
|
|
12427
12410
|
if (!t) return "";
|
|
12428
12411
|
if (l === "single" && t instanceof Date) {
|
|
12429
|
-
const
|
|
12430
|
-
return a ? `${
|
|
12412
|
+
const I = F1(t, i);
|
|
12413
|
+
return a ? `${I} ${o ? F1(t, "HH:mm:ss") : F1(t, "HH:mm")}` : I;
|
|
12431
12414
|
}
|
|
12432
|
-
return l === "range" && t && "start" in t ? `${F1(t.start, i)} - ${F1(t.end, i)}` : l === "multiple" && Array.isArray(t) ? t.map((
|
|
12433
|
-
}, o1 = (
|
|
12434
|
-
if (!a || !(
|
|
12435
|
-
c?.(
|
|
12415
|
+
return l === "range" && t && "start" in t ? `${F1(t.start, i)} - ${F1(t.end, i)}` : l === "multiple" && Array.isArray(t) ? t.map((I) => F1(I, i)).join(", ") : "";
|
|
12416
|
+
}, o1 = (I) => {
|
|
12417
|
+
if (!a || !(I instanceof Date)) {
|
|
12418
|
+
c?.(I), m && l !== "multiple" && !p && v(!1);
|
|
12436
12419
|
return;
|
|
12437
12420
|
}
|
|
12438
|
-
const $ = new Date(
|
|
12421
|
+
const $ = new Date(I), p1 = s === "12h" ? _ ? u % 12 + 12 : u % 12 : u;
|
|
12439
12422
|
$.setHours(p1, C, b), c?.($), m && !p && v(!1);
|
|
12440
12423
|
}, V = () => {
|
|
12441
12424
|
if (!t || !(t instanceof Date)) return;
|
|
12442
|
-
const
|
|
12443
|
-
|
|
12444
|
-
}, X = (
|
|
12445
|
-
|
|
12425
|
+
const I = new Date(t), $ = s === "12h" ? _ ? u % 12 + 12 : u % 12 : u;
|
|
12426
|
+
I.setHours($, C, b), c?.(I);
|
|
12427
|
+
}, X = (I) => {
|
|
12428
|
+
I.stopPropagation(), y(null), c?.(void 0);
|
|
12446
12429
|
}, a1 = O();
|
|
12447
12430
|
return /* @__PURE__ */ r("div", {
|
|
12448
12431
|
className: "datepicker",
|
|
@@ -12465,7 +12448,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12465
12448
|
children: "×"
|
|
12466
12449
|
}), /* @__PURE__ */ e("span", {
|
|
12467
12450
|
className: "datepicker__icon",
|
|
12468
|
-
children: /* @__PURE__ */ e(
|
|
12451
|
+
children: /* @__PURE__ */ e(E, { name: "calendar" })
|
|
12469
12452
|
})]
|
|
12470
12453
|
})]
|
|
12471
12454
|
}), D && (p ? /* @__PURE__ */ r("div", {
|
|
@@ -12490,8 +12473,8 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12490
12473
|
type: "number",
|
|
12491
12474
|
className: "datepicker__time-input",
|
|
12492
12475
|
value: u,
|
|
12493
|
-
onChange: (
|
|
12494
|
-
const $ = parseInt(
|
|
12476
|
+
onChange: (I) => {
|
|
12477
|
+
const $ = parseInt(I.target.value) || 0;
|
|
12495
12478
|
f(Math.min(Math.max($, 0), s === "12h" ? 12 : 23));
|
|
12496
12479
|
},
|
|
12497
12480
|
onBlur: V,
|
|
@@ -12503,8 +12486,8 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12503
12486
|
type: "number",
|
|
12504
12487
|
className: "datepicker__time-input",
|
|
12505
12488
|
value: C,
|
|
12506
|
-
onChange: (
|
|
12507
|
-
const $ = parseInt(
|
|
12489
|
+
onChange: (I) => {
|
|
12490
|
+
const $ = parseInt(I.target.value) || 0;
|
|
12508
12491
|
x(Math.min(Math.max($, 0), 59));
|
|
12509
12492
|
},
|
|
12510
12493
|
onBlur: V,
|
|
@@ -12515,8 +12498,8 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12515
12498
|
type: "number",
|
|
12516
12499
|
className: "datepicker__time-input",
|
|
12517
12500
|
value: b,
|
|
12518
|
-
onChange: (
|
|
12519
|
-
const $ = parseInt(
|
|
12501
|
+
onChange: (I) => {
|
|
12502
|
+
const $ = parseInt(I.target.value) || 0;
|
|
12520
12503
|
M(Math.min(Math.max($, 0), 59));
|
|
12521
12504
|
},
|
|
12522
12505
|
onBlur: V,
|
|
@@ -12557,8 +12540,8 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12557
12540
|
type: "number",
|
|
12558
12541
|
className: "datepicker__time-input",
|
|
12559
12542
|
value: u,
|
|
12560
|
-
onChange: (
|
|
12561
|
-
const $ = parseInt(
|
|
12543
|
+
onChange: (I) => {
|
|
12544
|
+
const $ = parseInt(I.target.value) || 0;
|
|
12562
12545
|
f(Math.min(Math.max($, 0), s === "12h" ? 12 : 23));
|
|
12563
12546
|
},
|
|
12564
12547
|
onBlur: V,
|
|
@@ -12570,8 +12553,8 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12570
12553
|
type: "number",
|
|
12571
12554
|
className: "datepicker__time-input",
|
|
12572
12555
|
value: C,
|
|
12573
|
-
onChange: (
|
|
12574
|
-
const $ = parseInt(
|
|
12556
|
+
onChange: (I) => {
|
|
12557
|
+
const $ = parseInt(I.target.value) || 0;
|
|
12575
12558
|
x(Math.min(Math.max($, 0), 59));
|
|
12576
12559
|
},
|
|
12577
12560
|
onBlur: V,
|
|
@@ -12582,8 +12565,8 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12582
12565
|
type: "number",
|
|
12583
12566
|
className: "datepicker__time-input",
|
|
12584
12567
|
value: b,
|
|
12585
|
-
onChange: (
|
|
12586
|
-
const $ = parseInt(
|
|
12568
|
+
onChange: (I) => {
|
|
12569
|
+
const $ = parseInt(I.target.value) || 0;
|
|
12587
12570
|
M(Math.min(Math.max($, 0), 59));
|
|
12588
12571
|
},
|
|
12589
12572
|
onBlur: V,
|
|
@@ -12603,7 +12586,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12603
12586
|
})]
|
|
12604
12587
|
}), document.body))]
|
|
12605
12588
|
});
|
|
12606
|
-
},
|
|
12589
|
+
}, Nr = /[̀-ͯ]/g, c2 = (t) => t.normalize("NFD").replace(Nr, "").toLowerCase(), va = (t, c) => {
|
|
12607
12590
|
const l = t.toLowerCase(), a = c.toLowerCase();
|
|
12608
12591
|
if (l.includes(a)) return !0;
|
|
12609
12592
|
const s = 1 - 1 / Math.max(a.length, 4);
|
|
@@ -12614,7 +12597,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12614
12597
|
}
|
|
12615
12598
|
return o / a.length >= s;
|
|
12616
12599
|
}, y0 = ({ allowCustomValue: t = !1, autofocus: c = !1, className: l = "", disabled: a = !1, error: s, highlighted: o = !1, id: i, label: n, maxVisibleSelectedLabels: d = 1, multilineChips: h = !1, multiple: m = !1, name: p, onChange: g, onSearchChange: w, options: v, placeholder: u = "Select an option", searchable: f = !0, searchValue: C, selectedCountDisplay: x = "inline", showChips: b = !1, sortSelectedFirst: M = !1, success: _, usePortal: N = !0, value: L, valueAsChip: y = !0 }) => {
|
|
12617
|
-
const [H, S] = z(!1), [k, A] = z(C || ""), [D, P] = z(v), [O, o1] = z(-1), [V, X] = z([]), [a1,
|
|
12600
|
+
const [H, S] = z(!1), [k, A] = z(C || ""), [D, P] = z(v), [O, o1] = z(-1), [V, X] = z([]), [a1, I] = z({
|
|
12618
12601
|
top: 0,
|
|
12619
12602
|
left: 0,
|
|
12620
12603
|
width: 0
|
|
@@ -12689,7 +12672,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12689
12672
|
const G = () => {
|
|
12690
12673
|
if (!s1.current) return;
|
|
12691
12674
|
const T = s1.current.getBoundingClientRect(), q = window.innerHeight, r1 = 300, K1 = q - T.bottom, j1 = T.top, b0 = K1 < r1 && j1 > K1;
|
|
12692
|
-
p1(b0), N &&
|
|
12675
|
+
p1(b0), N && I({
|
|
12693
12676
|
top: b0 ? T.top + window.scrollY : T.bottom + window.scrollY,
|
|
12694
12677
|
left: T.left + window.scrollX,
|
|
12695
12678
|
width: T.width
|
|
@@ -12861,9 +12844,9 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12861
12844
|
className: "dropdown-option-prefix",
|
|
12862
12845
|
children: T.prefix
|
|
12863
12846
|
}),
|
|
12864
|
-
T.icon && /* @__PURE__ */ e(
|
|
12847
|
+
T.icon && /* @__PURE__ */ e(E, { name: T.icon }),
|
|
12865
12848
|
/* @__PURE__ */ e("span", { children: T.label }),
|
|
12866
|
-
T.suffixIcon && /* @__PURE__ */ e(
|
|
12849
|
+
T.suffixIcon && /* @__PURE__ */ e(E, { name: T.suffixIcon })
|
|
12867
12850
|
]
|
|
12868
12851
|
}), T.details && /* @__PURE__ */ e("span", {
|
|
12869
12852
|
className: "dropdown-option-details",
|
|
@@ -12881,7 +12864,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12881
12864
|
className: "dropdown-option-content",
|
|
12882
12865
|
children: /* @__PURE__ */ r("span", {
|
|
12883
12866
|
className: "dropdown-option-label",
|
|
12884
|
-
children: [/* @__PURE__ */ e(
|
|
12867
|
+
children: [/* @__PURE__ */ e(E, { name: "plus" }), /* @__PURE__ */ r("span", { children: [
|
|
12885
12868
|
"Create “",
|
|
12886
12869
|
k,
|
|
12887
12870
|
"”"
|
|
@@ -12910,12 +12893,12 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12910
12893
|
children: [
|
|
12911
12894
|
X1 && C1?.icon && /* @__PURE__ */ e("span", {
|
|
12912
12895
|
className: "dropdown-selected-icon dropdown-selected-icon--prefix",
|
|
12913
|
-
children: /* @__PURE__ */ e(
|
|
12896
|
+
children: /* @__PURE__ */ e(E, { name: C1.icon })
|
|
12914
12897
|
}),
|
|
12915
12898
|
I1 && C1 && /* @__PURE__ */ r("span", {
|
|
12916
12899
|
className: "dropdown-value-chip",
|
|
12917
12900
|
onClick: i1,
|
|
12918
|
-
children: [C1.icon && /* @__PURE__ */ e(
|
|
12901
|
+
children: [C1.icon && /* @__PURE__ */ e(E, { name: C1.icon }), /* @__PURE__ */ e("span", {
|
|
12919
12902
|
className: "dropdown-value-chip__label",
|
|
12920
12903
|
children: C1.label
|
|
12921
12904
|
})]
|
|
@@ -12954,7 +12937,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12954
12937
|
children: [
|
|
12955
12938
|
r0 && C1?.suffixIcon && /* @__PURE__ */ e("span", {
|
|
12956
12939
|
className: "dropdown-selected-icon dropdown-selected-icon--suffix",
|
|
12957
|
-
children: /* @__PURE__ */ e(
|
|
12940
|
+
children: /* @__PURE__ */ e(E, { name: C1.suffixIcon })
|
|
12958
12941
|
}),
|
|
12959
12942
|
(!m && V.length > 0 || m && V.length > 0) && /* @__PURE__ */ e("span", {
|
|
12960
12943
|
className: "dropdown-action-button dropdown-clear-button",
|
|
@@ -12990,7 +12973,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12990
12973
|
})
|
|
12991
12974
|
]
|
|
12992
12975
|
});
|
|
12993
|
-
},
|
|
12976
|
+
}, Hr = M1(({ autoComplete: t = "on", autoFocus: c, clearable: l, disabled: a, error: s, highlighted: o, id: i, label: n, max: d, min: h, onBlur: m, onChange: p, onClick: g, onKeyDown: w, onKeyUp: v, readOnly: u = !1, required: f = !1, success: C, type: x = "date", value: b }, M) => {
|
|
12994
12977
|
const _ = l && b && !a && !u;
|
|
12995
12978
|
return /* @__PURE__ */ r("div", {
|
|
12996
12979
|
className: `input-date-wrapper${o ? " input-date-highlighted" : ""}`,
|
|
@@ -13028,7 +13011,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13028
13011
|
className: "input-date-clear",
|
|
13029
13012
|
onClick: () => p?.(void 0),
|
|
13030
13013
|
title: "Clear date",
|
|
13031
|
-
children: /* @__PURE__ */ e(
|
|
13014
|
+
children: /* @__PURE__ */ e(E, {
|
|
13032
13015
|
name: "clear",
|
|
13033
13016
|
size: "sm"
|
|
13034
13017
|
})
|
|
@@ -13044,13 +13027,13 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13044
13027
|
})
|
|
13045
13028
|
]
|
|
13046
13029
|
});
|
|
13047
|
-
}),
|
|
13030
|
+
}), Sr = {
|
|
13048
13031
|
success: "var(--rating-color-success)",
|
|
13049
13032
|
info: "var(--rating-color-info)",
|
|
13050
13033
|
warning: "var(--rating-color-warning)",
|
|
13051
13034
|
danger: "var(--rating-color-danger)"
|
|
13052
13035
|
}, p0 = ({ type: t, filled: c, variant: l, size: a = 16 }) => {
|
|
13053
|
-
const s = `rating-grad-${C0()}`, o =
|
|
13036
|
+
const s = `rating-grad-${C0()}`, o = Sr[l], i = "var(--rating-empty-color)", n = c === "full" ? o : c === "half" ? `url(#${s})` : i, d = () => c === "half" ? /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ r("linearGradient", {
|
|
13054
13037
|
id: s,
|
|
13055
13038
|
x1: "0",
|
|
13056
13039
|
x2: "1",
|
|
@@ -13104,8 +13087,8 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13104
13087
|
});
|
|
13105
13088
|
}
|
|
13106
13089
|
return null;
|
|
13107
|
-
},
|
|
13108
|
-
const p =
|
|
13090
|
+
}, Br = ({ align: t = "left", icon: c = "star", maxRate: l = 10, onHover: a, onHoverEnd: s, onSelect: o, rating: i, selectable: n = !1, showValue: d = !0, useHalf: h = !1, variant: m = "warning" }) => {
|
|
13091
|
+
const p = j((g) => {
|
|
13109
13092
|
n && !h && o?.(g + 1);
|
|
13110
13093
|
}, [
|
|
13111
13094
|
n,
|
|
@@ -13221,7 +13204,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13221
13204
|
children: [
|
|
13222
13205
|
/* @__PURE__ */ e("div", {
|
|
13223
13206
|
className: "input-search__icon",
|
|
13224
|
-
children: /* @__PURE__ */ e(
|
|
13207
|
+
children: /* @__PURE__ */ e(E, { name: "search" })
|
|
13225
13208
|
}),
|
|
13226
13209
|
/* @__PURE__ */ e(A1, {
|
|
13227
13210
|
autoComplete: t,
|
|
@@ -13245,14 +13228,14 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13245
13228
|
className: "input-search__clear",
|
|
13246
13229
|
onClick: f,
|
|
13247
13230
|
title: "Clear search",
|
|
13248
|
-
children: /* @__PURE__ */ e(
|
|
13231
|
+
children: /* @__PURE__ */ e(E, {
|
|
13249
13232
|
name: "clear",
|
|
13250
13233
|
size: "sm"
|
|
13251
13234
|
})
|
|
13252
13235
|
})
|
|
13253
13236
|
]
|
|
13254
13237
|
});
|
|
13255
|
-
}),
|
|
13238
|
+
}), Rr = [
|
|
13256
13239
|
{
|
|
13257
13240
|
label: "7d",
|
|
13258
13241
|
days: 7
|
|
@@ -13269,21 +13252,21 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13269
13252
|
label: "90d",
|
|
13270
13253
|
days: 90
|
|
13271
13254
|
}
|
|
13272
|
-
],
|
|
13255
|
+
], Ar = 3, $r = (t) => Array.isArray(t) ? t : t == null || typeof t == "boolean" ? [] : [t], l2 = (t) => t.every((c) => typeof c == "number") ? t : t.map(String), Dr = ({ filter: t, onChange: c }) => /* @__PURE__ */ r("div", {
|
|
13273
13256
|
className: `control-panel__filter${t.type === "checkbox" ? " control-panel__filter--checkbox" : ""}`,
|
|
13274
13257
|
children: [t.type !== "checkbox" && /* @__PURE__ */ r("span", {
|
|
13275
13258
|
className: `control-panel__filter-title${t.isActive ? " control-panel__filter-title--active" : ""}`,
|
|
13276
13259
|
children: [
|
|
13277
13260
|
t.isActive && /* @__PURE__ */ e("span", { className: "control-panel__filter-active-dot" }),
|
|
13278
|
-
t.icon && /* @__PURE__ */ e(
|
|
13261
|
+
t.icon && /* @__PURE__ */ e(E, { name: t.icon }),
|
|
13279
13262
|
t.label
|
|
13280
13263
|
]
|
|
13281
|
-
}), /* @__PURE__ */ e(
|
|
13264
|
+
}), /* @__PURE__ */ e(Tr, {
|
|
13282
13265
|
filter: t,
|
|
13283
13266
|
onChange: c
|
|
13284
13267
|
})]
|
|
13285
|
-
}),
|
|
13286
|
-
const l =
|
|
13268
|
+
}), Tr = ({ filter: t, onChange: c }) => {
|
|
13269
|
+
const l = $r(t.value), a = t.options ?? [], [s, o] = z("");
|
|
13287
13270
|
if (t.type === "checkbox") return /* @__PURE__ */ e(i0, {
|
|
13288
13271
|
count: t.count,
|
|
13289
13272
|
selected: t.value === !0,
|
|
@@ -13294,7 +13277,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13294
13277
|
}),
|
|
13295
13278
|
children: t.label
|
|
13296
13279
|
});
|
|
13297
|
-
if (t.type === "date") return /* @__PURE__ */ e(
|
|
13280
|
+
if (t.type === "date") return /* @__PURE__ */ e(Hr, {
|
|
13298
13281
|
min: t.minDate,
|
|
13299
13282
|
max: t.maxDate,
|
|
13300
13283
|
value: typeof t.value == "string" ? t.value : "",
|
|
@@ -13341,7 +13324,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13341
13324
|
})
|
|
13342
13325
|
})
|
|
13343
13326
|
});
|
|
13344
|
-
if (t.type === "rating") return /* @__PURE__ */ e(
|
|
13327
|
+
if (t.type === "rating") return /* @__PURE__ */ e(Br, {
|
|
13345
13328
|
selectable: !0,
|
|
13346
13329
|
icon: t.ratingIcon ?? "star",
|
|
13347
13330
|
maxRate: t.maxRate ?? 10,
|
|
@@ -13388,7 +13371,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13388
13371
|
});
|
|
13389
13372
|
}
|
|
13390
13373
|
if (t.type === "date-range") {
|
|
13391
|
-
const i = Array.isArray(t.value) ? t.value : [], n = i[0] || void 0, d = i[1] || void 0, h = t.presets ??
|
|
13374
|
+
const i = Array.isArray(t.value) ? t.value : [], n = i[0] || void 0, d = i[1] || void 0, h = t.presets ?? Rr, m = (v) => {
|
|
13392
13375
|
if (!v) return;
|
|
13393
13376
|
const [u, f, C] = v.split("-").map(Number);
|
|
13394
13377
|
return new Date(u, f - 1, C);
|
|
@@ -13412,7 +13395,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13412
13395
|
onClick: () => w(v.days),
|
|
13413
13396
|
children: v.label
|
|
13414
13397
|
}, v.days))
|
|
13415
|
-
}), /* @__PURE__ */ e(
|
|
13398
|
+
}), /* @__PURE__ */ e(Vr, {
|
|
13416
13399
|
mode: "range",
|
|
13417
13400
|
minDate: m(t.minDate),
|
|
13418
13401
|
maxDate: m(t.maxDate),
|
|
@@ -13432,7 +13415,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13432
13415
|
});
|
|
13433
13416
|
}
|
|
13434
13417
|
if (t.type === "dropdown")
|
|
13435
|
-
return !t.multiple && a.length > 0 && a.length <=
|
|
13418
|
+
return !t.multiple && a.length > 0 && a.length <= Ar ? /* @__PURE__ */ e("div", {
|
|
13436
13419
|
className: "control-panel__filter-list",
|
|
13437
13420
|
children: a.map((i) => {
|
|
13438
13421
|
const n = t.value === i.value;
|
|
@@ -13459,7 +13442,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13459
13442
|
className: "control-panel__filter-swatch",
|
|
13460
13443
|
style: { backgroundColor: i.color }
|
|
13461
13444
|
}),
|
|
13462
|
-
i.icon && /* @__PURE__ */ e(
|
|
13445
|
+
i.icon && /* @__PURE__ */ e(E, { name: i.icon }),
|
|
13463
13446
|
/* @__PURE__ */ e("span", {
|
|
13464
13447
|
className: "control-panel__filter-label",
|
|
13465
13448
|
children: i.label
|
|
@@ -13580,7 +13563,7 @@ var Il = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13580
13563
|
}, i.value);
|
|
13581
13564
|
})
|
|
13582
13565
|
});
|
|
13583
|
-
},
|
|
13566
|
+
}, Zr = ({ navigation: t }) => {
|
|
13584
13567
|
const c = t.some((l) => (l.children?.length ?? 0) > 0);
|
|
13585
13568
|
return /* @__PURE__ */ e("nav", {
|
|
13586
13569
|
className: "control-panel__nav",
|
|
@@ -13605,7 +13588,7 @@ function N2(t, c, l = 0) {
|
|
|
13605
13588
|
h.stopPropagation(), t.onOpenChange?.(!o, t);
|
|
13606
13589
|
},
|
|
13607
13590
|
type: "button",
|
|
13608
|
-
children: /* @__PURE__ */ e(
|
|
13591
|
+
children: /* @__PURE__ */ e(E, { name: "caret-right" })
|
|
13609
13592
|
}) : /* @__PURE__ */ e("span", { className: "control-panel__nav-toggle-placeholder" })), /* @__PURE__ */ r("button", {
|
|
13610
13593
|
className: i,
|
|
13611
13594
|
onClick: () => {
|
|
@@ -13620,7 +13603,7 @@ function N2(t, c, l = 0) {
|
|
|
13620
13603
|
t.icon ? /* @__PURE__ */ e("span", {
|
|
13621
13604
|
className: "control-panel__nav-icon",
|
|
13622
13605
|
style: t.color ? { color: t.color } : void 0,
|
|
13623
|
-
children: /* @__PURE__ */ e(
|
|
13606
|
+
children: /* @__PURE__ */ e(E, { name: t.icon })
|
|
13624
13607
|
}) : t.color && /* @__PURE__ */ e("span", {
|
|
13625
13608
|
className: "control-panel__nav-dot",
|
|
13626
13609
|
style: { backgroundColor: t.color }
|
|
@@ -13648,7 +13631,7 @@ function N2(t, c, l = 0) {
|
|
|
13648
13631
|
})]
|
|
13649
13632
|
}, t.id);
|
|
13650
13633
|
}
|
|
13651
|
-
var
|
|
13634
|
+
var Gr = [{
|
|
13652
13635
|
value: "cards",
|
|
13653
13636
|
label: "Grid",
|
|
13654
13637
|
icon: "grid"
|
|
@@ -13656,11 +13639,11 @@ var Er = [{
|
|
|
13656
13639
|
value: "table",
|
|
13657
13640
|
label: "Table",
|
|
13658
13641
|
icon: "table"
|
|
13659
|
-
}],
|
|
13642
|
+
}], Er = {
|
|
13660
13643
|
value: "gallery",
|
|
13661
13644
|
label: "Gallery",
|
|
13662
13645
|
icon: "gallery"
|
|
13663
|
-
},
|
|
13646
|
+
}, Ir = ({ normalizedOptionGroups: t, onOptionChange: c, viewToggle: l, groupBy: a, visibleColumns: s }) => /* @__PURE__ */ r("div", {
|
|
13664
13647
|
className: "control-panel__options",
|
|
13665
13648
|
children: [
|
|
13666
13649
|
/* @__PURE__ */ e("div", {
|
|
@@ -13674,7 +13657,7 @@ var Er = [{
|
|
|
13674
13657
|
className: "control-panel__option control-panel__option--view-toggle",
|
|
13675
13658
|
children: /* @__PURE__ */ e("div", {
|
|
13676
13659
|
className: "control-panel__option-view-toggle",
|
|
13677
|
-
children: (l.options ?? [...
|
|
13660
|
+
children: (l.options ?? [...Gr, ...l.showGallery ? [Er] : []]).map((o) => /* @__PURE__ */ e(F, {
|
|
13678
13661
|
icon: o.icon,
|
|
13679
13662
|
size: "small",
|
|
13680
13663
|
variant: l.value === o.value ? "info" : "default",
|
|
@@ -13766,7 +13749,7 @@ var Er = [{
|
|
|
13766
13749
|
type: "radio",
|
|
13767
13750
|
value: p.value
|
|
13768
13751
|
}),
|
|
13769
|
-
p.icon && /* @__PURE__ */ e(
|
|
13752
|
+
p.icon && /* @__PURE__ */ e(E, { name: p.icon }),
|
|
13770
13753
|
/* @__PURE__ */ e("span", {
|
|
13771
13754
|
className: "control-panel__filter-label",
|
|
13772
13755
|
children: p.label
|
|
@@ -13809,7 +13792,7 @@ var Er = [{
|
|
|
13809
13792
|
})]
|
|
13810
13793
|
}, o.id ?? o.label ?? i))
|
|
13811
13794
|
]
|
|
13812
|
-
}),
|
|
13795
|
+
}), ga = ({ width: t = "280px", className: c = "", isOpen: l, onClose: a, isMobile: s, showOverlay: o = !0, contained: i = !1, flush: n = !1, shadow: d = "none", header: h, navigation: m = [], actions: p = [], filters: g = [], filtersCount: w, onFilterChange: v, onClearFilters: u, options: f = [], onOptionChange: C, viewToggle: x, groupBy: b, visibleColumns: M }) => {
|
|
13813
13796
|
const _ = F0(), N = s ?? _?.isMobile ?? !1, L = l ?? (N ? _?.isOpen ?? !1 : !0), y = a ?? _?.close ?? (() => {
|
|
13814
13797
|
}), H = [
|
|
13815
13798
|
"control-panel",
|
|
@@ -13839,9 +13822,9 @@ var Er = [{
|
|
|
13839
13822
|
}),
|
|
13840
13823
|
p.length > 0 && /* @__PURE__ */ e("div", {
|
|
13841
13824
|
className: "control-panel__actions",
|
|
13842
|
-
children: p.map((O) => /* @__PURE__ */ e(
|
|
13825
|
+
children: p.map((O) => /* @__PURE__ */ e(jr, { action: O }, O.id))
|
|
13843
13826
|
}),
|
|
13844
|
-
m.length > 0 && /* @__PURE__ */ e(
|
|
13827
|
+
m.length > 0 && /* @__PURE__ */ e(Zr, { navigation: m }),
|
|
13845
13828
|
P && /* @__PURE__ */ r("div", {
|
|
13846
13829
|
className: "control-panel__filters",
|
|
13847
13830
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -13858,13 +13841,13 @@ var Er = [{
|
|
|
13858
13841
|
onClick: () => u({ source: "control-panel" }),
|
|
13859
13842
|
children: "Clear filters"
|
|
13860
13843
|
})]
|
|
13861
|
-
}), g.map((O) => /* @__PURE__ */ e(
|
|
13844
|
+
}), g.map((O) => /* @__PURE__ */ e(Dr, {
|
|
13862
13845
|
filter: O,
|
|
13863
13846
|
onChange: (o1) => v?.(o1)
|
|
13864
13847
|
}, O.id))]
|
|
13865
13848
|
}),
|
|
13866
13849
|
P && D && /* @__PURE__ */ e(a0, { spacing: 0 }),
|
|
13867
|
-
D && /* @__PURE__ */ e(
|
|
13850
|
+
D && /* @__PURE__ */ e(Ir, {
|
|
13868
13851
|
normalizedOptionGroups: A,
|
|
13869
13852
|
onOptionChange: C,
|
|
13870
13853
|
viewToggle: x,
|
|
@@ -13873,7 +13856,7 @@ var Er = [{
|
|
|
13873
13856
|
})
|
|
13874
13857
|
]
|
|
13875
13858
|
})] });
|
|
13876
|
-
},
|
|
13859
|
+
}, jr = ({ action: t }) => {
|
|
13877
13860
|
const [c, l] = z(null), [a, s] = z(!1), o = (d) => {
|
|
13878
13861
|
if (t.confirm) {
|
|
13879
13862
|
l(d.currentTarget), s(!0);
|
|
@@ -13917,7 +13900,7 @@ var Er = [{
|
|
|
13917
13900
|
variant: t.confirm.cancel?.variant ?? "default"
|
|
13918
13901
|
}
|
|
13919
13902
|
})] });
|
|
13920
|
-
},
|
|
13903
|
+
}, Pr = async (t) => {
|
|
13921
13904
|
if (navigator.clipboard?.writeText) try {
|
|
13922
13905
|
await navigator.clipboard.writeText(t);
|
|
13923
13906
|
return;
|
|
@@ -13930,7 +13913,7 @@ var Er = [{
|
|
|
13930
13913
|
} finally {
|
|
13931
13914
|
document.body.removeChild(c);
|
|
13932
13915
|
}
|
|
13933
|
-
},
|
|
13916
|
+
}, ua = ({ children: t, className: c = "", copiedLabel: l = "Copied", disabled: a = !1, errorLabel: s = "Copy failed", iconOnly: o = !1, label: i = "Copy", onCopy: n, onError: d, resetDelay: h = 1800, size: m = "medium", title: p, value: g, variant: w = "ghost" }) => {
|
|
13934
13917
|
const [v, u] = z("idle"), f = Y(null);
|
|
13935
13918
|
U(() => () => {
|
|
13936
13919
|
f.current && window.clearTimeout(f.current);
|
|
@@ -13939,7 +13922,7 @@ var Er = [{
|
|
|
13939
13922
|
f.current && window.clearTimeout(f.current), f.current = window.setTimeout(() => u("idle"), h);
|
|
13940
13923
|
}, x = async () => {
|
|
13941
13924
|
try {
|
|
13942
|
-
await
|
|
13925
|
+
await Pr(g), u("copied"), C(), n?.(g);
|
|
13943
13926
|
} catch (_) {
|
|
13944
13927
|
u("error"), C(), d?.(_);
|
|
13945
13928
|
}
|
|
@@ -13956,7 +13939,7 @@ var Er = [{
|
|
|
13956
13939
|
variant: M,
|
|
13957
13940
|
children: o ? void 0 : t || b
|
|
13958
13941
|
});
|
|
13959
|
-
},
|
|
13942
|
+
}, Wr = ({ code: t, size: c = "md", className: l = "" }) => {
|
|
13960
13943
|
if (!t) return /* @__PURE__ */ e(d1, {
|
|
13961
13944
|
title: `Unsupported country code: ${t}`,
|
|
13962
13945
|
children: /* @__PURE__ */ e("div", {
|
|
@@ -13983,11 +13966,11 @@ var Er = [{
|
|
|
13983
13966
|
})
|
|
13984
13967
|
})]
|
|
13985
13968
|
});
|
|
13986
|
-
},
|
|
13969
|
+
}, wa = ({ code: t, label: c, size: l = "md", className: a = "" }) => {
|
|
13987
13970
|
const s = c || t?.toUpperCase();
|
|
13988
13971
|
return /* @__PURE__ */ r("div", {
|
|
13989
13972
|
className: `country-with-flag country-with-flag--${l} ${a}`,
|
|
13990
|
-
children: [/* @__PURE__ */ e(
|
|
13973
|
+
children: [/* @__PURE__ */ e(Wr, {
|
|
13991
13974
|
code: t,
|
|
13992
13975
|
size: l
|
|
13993
13976
|
}), /* @__PURE__ */ e("span", {
|
|
@@ -13995,11 +13978,11 @@ var Er = [{
|
|
|
13995
13978
|
children: s
|
|
13996
13979
|
})]
|
|
13997
13980
|
});
|
|
13998
|
-
},
|
|
13981
|
+
}, Ur = (t, c, l, a, s) => {
|
|
13999
13982
|
const o = c ? (a - 1) * t + 1 : 0, i = Math.min(a * t, c), n = s ? ` ${s}` : "";
|
|
14000
13983
|
return c === l ? `Showing ${o}-${i} of ${l}${n}` : `Showing ${o}-${i} of ${c} filtered${n} (${l} total)`;
|
|
14001
13984
|
}, J1 = ({ icon: t, title: c, description: l, noCard: a, primary: s, secondary: o, children: i }) => {
|
|
14002
|
-
const n = s || o, d = typeof t == "string" ? /* @__PURE__ */ e(
|
|
13985
|
+
const n = s || o, d = typeof t == "string" ? /* @__PURE__ */ e(E, {
|
|
14003
13986
|
name: t,
|
|
14004
13987
|
size: "xxxl"
|
|
14005
13988
|
}) : t;
|
|
@@ -14035,12 +14018,12 @@ var Er = [{
|
|
|
14035
14018
|
})
|
|
14036
14019
|
]
|
|
14037
14020
|
});
|
|
14038
|
-
},
|
|
14039
|
-
const { isAtLeast: m, isMobile: p } = h0(), g = Y(null), [w, v] = z(p ? 0 : 2), u =
|
|
14021
|
+
}, Fr = 45, qr = 120, Or = 45, Yr = 45, Xr = 8, Kr = 2, a2 = ({ currentPage: t, totalPages: c, totalItems: l, onPageChange: a, showPagesNumbers: s = !1, pageSizeOptions: o, pageSize: i, onPageSizeChange: n, pageSizeLabel: d = "Rows", horizontalAlign: h = "left" }) => {
|
|
14022
|
+
const { isAtLeast: m, isMobile: p } = h0(), g = Y(null), [w, v] = z(p ? 0 : 2), u = j(() => {
|
|
14040
14023
|
const b = g.current;
|
|
14041
14024
|
if (!b) return;
|
|
14042
|
-
const M = b.offsetWidth - ((m("desktop") ?
|
|
14043
|
-
v(Math.min(
|
|
14025
|
+
const M = b.offsetWidth - ((m("desktop") ? qr : Or) * 2 + Fr * 2 + Yr * 2 + Xr * 6), _ = Math.floor(M / 53);
|
|
14026
|
+
v(Math.min(Kr, Math.max(0, Math.floor(_ / 2))));
|
|
14044
14027
|
}, [m]);
|
|
14045
14028
|
U(() => {
|
|
14046
14029
|
const b = g.current;
|
|
@@ -14114,25 +14097,25 @@ var Er = [{
|
|
|
14114
14097
|
})
|
|
14115
14098
|
]
|
|
14116
14099
|
});
|
|
14117
|
-
},
|
|
14100
|
+
}, Qr = (t) => {
|
|
14118
14101
|
const [c, l, a] = t.split("-").map(Number);
|
|
14119
14102
|
return new Date(c, l - 1, a);
|
|
14120
|
-
},
|
|
14103
|
+
}, Jr = (t, c) => c === "month" ? t.toLocaleDateString("en-US", { month: "long" }) : t.toLocaleDateString("en-US", {
|
|
14121
14104
|
day: "2-digit",
|
|
14122
14105
|
month: "short"
|
|
14123
|
-
}),
|
|
14106
|
+
}), ec = (t, c) => c === "month" ? `${t.getFullYear()}-${t.getMonth()}` : `${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`, tc = (t) => t.getFullYear().toString(), q0 = (t, c = "day") => {
|
|
14124
14107
|
const l = /* @__PURE__ */ new Map();
|
|
14125
14108
|
let a = null, s = null;
|
|
14126
14109
|
return t.forEach((o, i) => {
|
|
14127
|
-
const n =
|
|
14110
|
+
const n = Qr(o.date), d = tc(n), h = ec(n, c), m = d !== a, p = h !== s;
|
|
14128
14111
|
l.set(i, {
|
|
14129
14112
|
showYear: m,
|
|
14130
14113
|
showDate: p,
|
|
14131
14114
|
yearLabel: m ? n.getFullYear().toString() : "",
|
|
14132
|
-
dateLabel: p ?
|
|
14115
|
+
dateLabel: p ? Jr(n, c) : ""
|
|
14133
14116
|
}), a = d, s = h;
|
|
14134
14117
|
}), l;
|
|
14135
|
-
},
|
|
14118
|
+
}, rc = ({ marker: t, onClick: c }) => {
|
|
14136
14119
|
const l = (a) => {
|
|
14137
14120
|
a.stopPropagation(), c?.(a);
|
|
14138
14121
|
};
|
|
@@ -14161,13 +14144,13 @@ var Er = [{
|
|
|
14161
14144
|
onClick: l,
|
|
14162
14145
|
children: /* @__PURE__ */ e("div", { className: "timeline-markers__dot timeline-markers__dot--small" })
|
|
14163
14146
|
});
|
|
14164
|
-
},
|
|
14147
|
+
}, cc = ({ marker: t }) => !t.showYear && !t.showDate ? null : /* @__PURE__ */ e("div", {
|
|
14165
14148
|
className: "timeline-markers__separator",
|
|
14166
14149
|
children: /* @__PURE__ */ e("span", {
|
|
14167
14150
|
className: "timeline-markers__separator-label",
|
|
14168
14151
|
children: t.showYear ? t.yearLabel : t.dateLabel
|
|
14169
14152
|
})
|
|
14170
|
-
}),
|
|
14153
|
+
}), fa = ({ items: t, renderItem: c, className: l }) => {
|
|
14171
14154
|
const a = m1(() => q0(t), [t]);
|
|
14172
14155
|
return /* @__PURE__ */ r("div", {
|
|
14173
14156
|
className: `timeline-markers${l ? ` ${l}` : ""}`,
|
|
@@ -14183,9 +14166,9 @@ var Er = [{
|
|
|
14183
14166
|
100,
|
|
14184
14167
|
250,
|
|
14185
14168
|
500
|
|
14186
|
-
], H2 = (t) => typeof t.header == "string" ? t.header : t.key,
|
|
14169
|
+
], H2 = (t) => typeof t.header == "string" ? t.header : t.key, lc = (t) => typeof t == "number" ? `${t}px` : t, S2 = (t) => /* @__PURE__ */ r("span", {
|
|
14187
14170
|
className: "data-view__column-label",
|
|
14188
|
-
children: [t.icon && /* @__PURE__ */ e(
|
|
14171
|
+
children: [t.icon && /* @__PURE__ */ e(E, {
|
|
14189
14172
|
className: "data-view__column-icon",
|
|
14190
14173
|
name: t.icon,
|
|
14191
14174
|
size: "sm",
|
|
@@ -14195,14 +14178,14 @@ var Er = [{
|
|
|
14195
14178
|
const l = t.cellIcon?.(c), a = t.accessor ? t.accessor(c) : c[t.key];
|
|
14196
14179
|
return l ? /* @__PURE__ */ r("span", {
|
|
14197
14180
|
className: "data-view__cell-with-icon",
|
|
14198
|
-
children: [/* @__PURE__ */ e(
|
|
14181
|
+
children: [/* @__PURE__ */ e(E, {
|
|
14199
14182
|
className: "data-view__cell-icon",
|
|
14200
14183
|
name: l
|
|
14201
14184
|
}), /* @__PURE__ */ e("span", { children: a })]
|
|
14202
14185
|
}) : a;
|
|
14203
14186
|
};
|
|
14204
|
-
function
|
|
14205
|
-
const _ = c.filter((k) => !k.hideInCard && !(u && k.hideInMobile)), N = m1(() => new Set(g ?? []), [g]), L = `data-view__cards${v !== void 0 ? " data-view__cards--grid" : ""}`, y = v !== void 0 ? { "--data-view-card-max-width":
|
|
14187
|
+
function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o, onRowClick: i, rowHref: n, rowClassName: d, empty: h, selectable: m, selectedIds: p = [], pinnedIds: g, onToggleSelect: w, cardMaxWidth: v, isMobile: u = !1, groups: f, showGroupCount: C = !0, collapsible: x = !1, collapsedGroups: b, onToggleGroup: M }) {
|
|
14188
|
+
const _ = c.filter((k) => !k.hideInCard && !(u && k.hideInMobile)), N = m1(() => new Set(g ?? []), [g]), L = `data-view__cards${v !== void 0 ? " data-view__cards--grid" : ""}`, y = v !== void 0 ? { "--data-view-card-max-width": lc(v) } : void 0, H = m1(() => o ? q0(t.map((k) => ({
|
|
14206
14189
|
id: o.idAccessor(k),
|
|
14207
14190
|
date: o.dateAccessor(k)
|
|
14208
14191
|
})), o.granularity) : /* @__PURE__ */ new Map(), [t, o]);
|
|
@@ -14217,11 +14200,11 @@ function ic({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14217
14200
|
const S = (k, A) => {
|
|
14218
14201
|
const D = H.get(A), P = l(k, A), O = m && p.includes(P), o1 = N.has(P), V = n?.(k), X = `data-view__card ${i || V ? "data-view__card--clickable" : ""} ${O ? "data-view__card--selected" : ""} ${o1 ? "data-view__card--pinned" : ""} ${d?.(k) || ""}`, a1 = ($) => {
|
|
14219
14202
|
$.metaKey || $.ctrlKey || $.shiftKey || $.altKey || $.button !== 0 || i && ($.preventDefault(), i(k, $));
|
|
14220
|
-
},
|
|
14203
|
+
}, I = /* @__PURE__ */ r(c1, { children: [
|
|
14221
14204
|
o1 && /* @__PURE__ */ e("span", {
|
|
14222
14205
|
className: "data-view__card-pin",
|
|
14223
14206
|
title: "Pinned",
|
|
14224
|
-
children: /* @__PURE__ */ e(
|
|
14207
|
+
children: /* @__PURE__ */ e(E, {
|
|
14225
14208
|
name: "pin",
|
|
14226
14209
|
size: "sm"
|
|
14227
14210
|
})
|
|
@@ -14246,7 +14229,7 @@ function ic({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14246
14229
|
className: "data-view__card-title-row",
|
|
14247
14230
|
children: [/* @__PURE__ */ r("div", {
|
|
14248
14231
|
className: "data-view__card-title-line",
|
|
14249
|
-
children: [$ && /* @__PURE__ */ e(
|
|
14232
|
+
children: [$ && /* @__PURE__ */ e(E, {
|
|
14250
14233
|
className: "data-view__card-icon",
|
|
14251
14234
|
name: $
|
|
14252
14235
|
}), /* @__PURE__ */ e("span", {
|
|
@@ -14282,15 +14265,15 @@ function ic({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14282
14265
|
children: s(k)
|
|
14283
14266
|
})
|
|
14284
14267
|
] });
|
|
14285
|
-
return /* @__PURE__ */ r(E1.Fragment, { children: [D && /* @__PURE__ */ e(
|
|
14268
|
+
return /* @__PURE__ */ r(E1.Fragment, { children: [D && /* @__PURE__ */ e(cc, { marker: D }), V ? /* @__PURE__ */ e("a", {
|
|
14286
14269
|
className: X,
|
|
14287
14270
|
href: V,
|
|
14288
14271
|
onClick: a1,
|
|
14289
|
-
children:
|
|
14272
|
+
children: I
|
|
14290
14273
|
}) : /* @__PURE__ */ e("div", {
|
|
14291
14274
|
className: X,
|
|
14292
14275
|
onClick: i ? ($) => i(k, $) : void 0,
|
|
14293
|
-
children:
|
|
14276
|
+
children: I
|
|
14294
14277
|
})] }, P);
|
|
14295
14278
|
};
|
|
14296
14279
|
if (f) {
|
|
@@ -14315,7 +14298,7 @@ function ic({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14315
14298
|
className: "data-view__group-count",
|
|
14316
14299
|
children: A.totalCount
|
|
14317
14300
|
}),
|
|
14318
|
-
x && /* @__PURE__ */ e(
|
|
14301
|
+
x && /* @__PURE__ */ e(E, {
|
|
14319
14302
|
className: "data-view__group-chevron",
|
|
14320
14303
|
name: P ? "caret-down" : "caret-up",
|
|
14321
14304
|
size: "sm"
|
|
@@ -14336,7 +14319,7 @@ function ic({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14336
14319
|
children: t.map((k, A) => S(k, A))
|
|
14337
14320
|
});
|
|
14338
14321
|
}
|
|
14339
|
-
function
|
|
14322
|
+
function ic({ config: t }) {
|
|
14340
14323
|
const { options: c, selectedKeys: l, onChange: a, label: s = "Columns" } = t, o = Y(null), [i, n] = z(!1);
|
|
14341
14324
|
if (c.length === 0) return null;
|
|
14342
14325
|
const d = (h, m) => {
|
|
@@ -14355,7 +14338,7 @@ function nc({ config: t }) {
|
|
|
14355
14338
|
onClick: () => n((h) => !h),
|
|
14356
14339
|
children: /* @__PURE__ */ r("span", {
|
|
14357
14340
|
className: "data-view__column-selector-label",
|
|
14358
|
-
children: [s, /* @__PURE__ */ e(
|
|
14341
|
+
children: [s, /* @__PURE__ */ e(E, {
|
|
14359
14342
|
name: "caret-down",
|
|
14360
14343
|
size: "sm"
|
|
14361
14344
|
})]
|
|
@@ -14378,7 +14361,7 @@ function nc({ config: t }) {
|
|
|
14378
14361
|
})]
|
|
14379
14362
|
});
|
|
14380
14363
|
}
|
|
14381
|
-
var
|
|
14364
|
+
var nc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left", showDirectionToggle: o = !1, className: i = "" }) => t.length === 0 ? null : /* @__PURE__ */ r("div", {
|
|
14382
14365
|
className: [
|
|
14383
14366
|
"mini-sort",
|
|
14384
14367
|
`mini-sort--align-${s}`,
|
|
@@ -14391,7 +14374,7 @@ var oc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14391
14374
|
children: /* @__PURE__ */ e(F, {
|
|
14392
14375
|
className: `mini-sort__button${m ? " is-active" : ""}`,
|
|
14393
14376
|
disabled: n.disabled,
|
|
14394
|
-
icon: n.icon ? /* @__PURE__ */ e(
|
|
14377
|
+
icon: n.icon ? /* @__PURE__ */ e(E, {
|
|
14395
14378
|
className: "mini-sort__icon",
|
|
14396
14379
|
name: n.icon,
|
|
14397
14380
|
size: "sm",
|
|
@@ -14408,7 +14391,7 @@ var oc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14408
14391
|
children: /* @__PURE__ */ e(F, {
|
|
14409
14392
|
className: "mini-sort__button mini-sort__direction",
|
|
14410
14393
|
disabled: c === null,
|
|
14411
|
-
icon: /* @__PURE__ */ e(
|
|
14394
|
+
icon: /* @__PURE__ */ e(E, {
|
|
14412
14395
|
className: "mini-sort__icon",
|
|
14413
14396
|
name: l === "asc" ? "arrow-up" : "arrow-down",
|
|
14414
14397
|
size: "sm",
|
|
@@ -14420,9 +14403,9 @@ var oc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14420
14403
|
})
|
|
14421
14404
|
})]
|
|
14422
14405
|
});
|
|
14423
|
-
function
|
|
14406
|
+
function oc({ columns: t, config: c, sortDirection: l, sortKey: a, onSort: s }) {
|
|
14424
14407
|
const o = c?.columns ?? c?.column ?? [];
|
|
14425
|
-
return o.length === 0 ? null : /* @__PURE__ */ e(
|
|
14408
|
+
return o.length === 0 ? null : /* @__PURE__ */ e(nc, {
|
|
14426
14409
|
items: o.map((i) => {
|
|
14427
14410
|
const n = t.find((d) => d.key === i.column);
|
|
14428
14411
|
return {
|
|
@@ -14439,13 +14422,13 @@ function sc({ columns: t, config: c, sortDirection: l, sortKey: a, onSort: s })
|
|
|
14439
14422
|
align: c?.align ?? "left"
|
|
14440
14423
|
});
|
|
14441
14424
|
}
|
|
14442
|
-
function
|
|
14425
|
+
function sc({ state: t }) {
|
|
14443
14426
|
return /* @__PURE__ */ e("span", {
|
|
14444
14427
|
className: `data-view__sort-icon data-view__sort-icon--${t}`,
|
|
14445
|
-
children: /* @__PURE__ */ e(
|
|
14428
|
+
children: /* @__PURE__ */ e(E, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
14446
14429
|
});
|
|
14447
14430
|
}
|
|
14448
|
-
function
|
|
14431
|
+
function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = i2, initialPageSize: d = i2[1], showPageSize: h = !0, card: m, actions: p, actionsWidth: g, timeline: w, onRowClick: v, rowHref: u, rowClassName: f, rowDetail: C, empty: x, initialSortKey: b = null, initialSortDirection: M = "asc", sortKey: _, sortDirection: N, onSortChange: L, miniSort: y, showCardSortControls: H = !0, desktopView: S = "table", cardMaxWidth: k, className: A, onPageChange: D, onPageSizeChange: P, currentPage: O, totalItems: o1, group: V, showResultsCount: X = !0, totalCount: a1, itemNoun: I, columnSelector: $ }) {
|
|
14449
14432
|
const { isMobile: p1 } = h0(), [s1, W] = z(b), [n1, v1] = z(M), [y1, k1] = z([]), g1 = i ?? y1, [$1, K] = z(1), t1 = O ?? $1, [B, Z] = z(d), [Q, i1] = z(() => t.reduce((R, J) => (J.width && (R[J.key] = J.width), R), {})), [b1, f1] = z(/* @__PURE__ */ new Set()), B1 = (R) => {
|
|
14450
14433
|
f1((J) => {
|
|
14451
14434
|
const h1 = new Set(J);
|
|
@@ -14489,7 +14472,7 @@ function ya({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14489
14472
|
_1,
|
|
14490
14473
|
t0,
|
|
14491
14474
|
a
|
|
14492
|
-
]), I1 = o1 !== void 0, X1 = I1 ? o1 : C1.length, r0 = Math.max(1, Math.ceil(X1 / B)), Z1 = Math.min(t1, r0), G = I1 ? C1 : C1.slice((Z1 - 1) * B, Z1 * B), T = X ?
|
|
14475
|
+
]), I1 = o1 !== void 0, X1 = I1 ? o1 : C1.length, r0 = Math.max(1, Math.ceil(X1 / B)), Z1 = Math.min(t1, r0), G = I1 ? C1 : C1.slice((Z1 - 1) * B, Z1 * B), T = X ? Ur(B, X1, a1 ?? X1, Z1, I) : null, q = m1(() => {
|
|
14493
14476
|
if (!V) return null;
|
|
14494
14477
|
const R = /* @__PURE__ */ new Map();
|
|
14495
14478
|
return C1.forEach((J) => {
|
|
@@ -14536,13 +14519,13 @@ function ya({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14536
14519
|
}, O0 = t.some((R) => R.filter), N0 = t.filter((R) => R.sortable), F2 = N0.map((R) => ({
|
|
14537
14520
|
label: H2(R),
|
|
14538
14521
|
value: R.key
|
|
14539
|
-
})), q2 = N0.length > 0, H0 = _1 ? N0.find((R) => R.key === _1) : void 0, O2 = y?.align ?? "left", Y0 = (y?.columns ?? y?.column ?? []).length > 0 ? /* @__PURE__ */ e(
|
|
14522
|
+
})), q2 = N0.length > 0, H0 = _1 ? N0.find((R) => R.key === _1) : void 0, O2 = y?.align ?? "left", Y0 = (y?.columns ?? y?.column ?? []).length > 0 ? /* @__PURE__ */ e(oc, {
|
|
14540
14523
|
columns: t,
|
|
14541
14524
|
config: y,
|
|
14542
14525
|
sortKey: _1,
|
|
14543
14526
|
sortDirection: L1,
|
|
14544
14527
|
onSort: T1
|
|
14545
|
-
}) : null, X0 = $ && $.options.length > 0 ? /* @__PURE__ */ e(
|
|
14528
|
+
}) : null, X0 = $ && $.options.length > 0 ? /* @__PURE__ */ e(ic, { config: $ }) : null, S0 = T || Y0 || X0 ? /* @__PURE__ */ r("div", {
|
|
14546
14529
|
className: `data-view__top-row data-view__top-row--mini-${O2}`,
|
|
14547
14530
|
children: [
|
|
14548
14531
|
T && /* @__PURE__ */ e("div", {
|
|
@@ -14597,7 +14580,7 @@ function ya({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14597
14580
|
H0 && T1(H0.key, L1 === "asc" ? "desc" : "asc");
|
|
14598
14581
|
},
|
|
14599
14582
|
variant: "ghost",
|
|
14600
|
-
children: /* @__PURE__ */ e(
|
|
14583
|
+
children: /* @__PURE__ */ e(E, { name: L1 === "asc" ? "arrow-up" : "arrow-down" })
|
|
14601
14584
|
})
|
|
14602
14585
|
})]
|
|
14603
14586
|
}),
|
|
@@ -14608,7 +14591,7 @@ function ya({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14608
14591
|
children: R.filter
|
|
14609
14592
|
}, R.key))
|
|
14610
14593
|
}),
|
|
14611
|
-
/* @__PURE__ */ e(
|
|
14594
|
+
/* @__PURE__ */ e(ac, {
|
|
14612
14595
|
data: G,
|
|
14613
14596
|
columns: t,
|
|
14614
14597
|
rowKey: D1,
|
|
@@ -14670,7 +14653,7 @@ function ya({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14670
14653
|
onClick: () => b0(R),
|
|
14671
14654
|
children: [/* @__PURE__ */ r("span", {
|
|
14672
14655
|
className: "data-view__th-content",
|
|
14673
|
-
children: [S2(R), R.sortable && /* @__PURE__ */ e(
|
|
14656
|
+
children: [S2(R), R.sortable && /* @__PURE__ */ e(sc, { state: _1 === R.key ? L1 : "unsorted" })]
|
|
14674
14657
|
}), /* @__PURE__ */ e("span", {
|
|
14675
14658
|
className: "data-view__resizer",
|
|
14676
14659
|
onMouseDown: (h1) => U2(h1, R.key),
|
|
@@ -14724,7 +14707,7 @@ function ya({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14724
14707
|
children: [
|
|
14725
14708
|
c0 && /* @__PURE__ */ e("td", {
|
|
14726
14709
|
className: "data-view__timeline-cell",
|
|
14727
|
-
children: R1 && /* @__PURE__ */ e(
|
|
14710
|
+
children: R1 && /* @__PURE__ */ e(rc, { marker: R1 })
|
|
14728
14711
|
}),
|
|
14729
14712
|
s && /* @__PURE__ */ e("td", {
|
|
14730
14713
|
className: "data-view__checkbox",
|
|
@@ -14739,7 +14722,7 @@ function ya({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14739
14722
|
style: Q[w1.key] ? { width: Q[w1.key] } : void 0,
|
|
14740
14723
|
children: [R0 === 0 && z1 && /* @__PURE__ */ e(d1, {
|
|
14741
14724
|
title: "Pinned",
|
|
14742
|
-
children: /* @__PURE__ */ e(
|
|
14725
|
+
children: /* @__PURE__ */ e(E, {
|
|
14743
14726
|
className: "data-view__pin-indicator",
|
|
14744
14727
|
name: "pin",
|
|
14745
14728
|
size: "sm"
|
|
@@ -14786,7 +14769,7 @@ function ya({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14786
14769
|
className: "data-view__group-count",
|
|
14787
14770
|
children: l1.totalCount
|
|
14788
14771
|
}),
|
|
14789
|
-
V?.collapsible && /* @__PURE__ */ e(
|
|
14772
|
+
V?.collapsible && /* @__PURE__ */ e(E, {
|
|
14790
14773
|
className: "data-view__group-chevron",
|
|
14791
14774
|
name: N1 ? "caret-down" : "caret-up",
|
|
14792
14775
|
size: "sm"
|
|
@@ -14824,7 +14807,7 @@ var Q1 = (t) => {
|
|
|
14824
14807
|
const [c, l, a] = t.split("-").map((s) => Number(s));
|
|
14825
14808
|
if (!(!c || !l || !a))
|
|
14826
14809
|
return new Date(c, l - 1, a);
|
|
14827
|
-
}, x0 = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`,
|
|
14810
|
+
}, x0 = (t) => `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`, ya = ({ label: t, value: c, onChange: l, min: a, max: s, alwaysOpen: o = !1, autoClose: i = !0, presets: n }) => {
|
|
14828
14811
|
const [d, h] = z({}), [m, p] = z(() => /* @__PURE__ */ new Date()), [g, w] = z(null), [v, u] = z(o), [f, C] = z({
|
|
14829
14812
|
position: "fixed",
|
|
14830
14813
|
visibility: "hidden"
|
|
@@ -14862,7 +14845,7 @@ var Q1 = (t) => {
|
|
|
14862
14845
|
}, [y.start]), U(() => {
|
|
14863
14846
|
_(y.end ?? "");
|
|
14864
14847
|
}, [y.end]);
|
|
14865
|
-
const a1 = m1(() => u0(m, 1), [m]),
|
|
14848
|
+
const a1 = m1(() => u0(m, 1), [m]), I = o || v, $ = !o && v, p1 = j(() => {
|
|
14866
14849
|
if (!$ || !N.current || !L.current) return;
|
|
14867
14850
|
const W = N.current.getBoundingClientRect(), n1 = L.current.getBoundingClientRect(), v1 = 16, y1 = 8, k1 = window.innerHeight - W.bottom - v1, g1 = W.top - v1, $1 = k1 < n1.height && g1 > n1.height ? W.top - n1.height - y1 : W.bottom + y1, K = Math.max(v1, Math.min($1, window.innerHeight - n1.height - v1)), t1 = W.left, B = Math.max(v1, Math.min(t1, window.innerWidth - n1.width - v1));
|
|
14868
14851
|
C({
|
|
@@ -15007,11 +14990,11 @@ var Q1 = (t) => {
|
|
|
15007
14990
|
className: "date-range-picker__toggle",
|
|
15008
14991
|
variant: "default",
|
|
15009
14992
|
onClick: () => u((W) => !W),
|
|
15010
|
-
children:
|
|
14993
|
+
children: I ? "Hide calendar" : "Choose dates"
|
|
15011
14994
|
})
|
|
15012
14995
|
]
|
|
15013
14996
|
}),
|
|
15014
|
-
o &&
|
|
14997
|
+
o && I && s1,
|
|
15015
14998
|
$ && q1(/* @__PURE__ */ e("div", {
|
|
15016
14999
|
ref: L,
|
|
15017
15000
|
className: "date-range-picker__overlay",
|
|
@@ -15056,7 +15039,7 @@ function R2(t, c) {
|
|
|
15056
15039
|
}
|
|
15057
15040
|
return n;
|
|
15058
15041
|
}
|
|
15059
|
-
function
|
|
15042
|
+
function hc(t, c) {
|
|
15060
15043
|
const l = R2(t.split(`
|
|
15061
15044
|
`), c.split(`
|
|
15062
15045
|
`)), a = [];
|
|
@@ -15090,17 +15073,17 @@ function dc(t, c) {
|
|
|
15090
15073
|
}
|
|
15091
15074
|
return a;
|
|
15092
15075
|
}
|
|
15093
|
-
function
|
|
15076
|
+
function dc(t, c) {
|
|
15094
15077
|
const l = (a) => a.match(/\S+|\s+/g) ?? [];
|
|
15095
15078
|
return R2(l(t), l(c));
|
|
15096
15079
|
}
|
|
15097
|
-
var
|
|
15080
|
+
var mc = ({ a: t, b: c, side: l }) => /* @__PURE__ */ e(c1, { children: dc(t, c).map((a, s) => a.kind === "eq" ? /* @__PURE__ */ e("span", { children: a.val }, s) : a.kind === "del" && l === "old" ? /* @__PURE__ */ e("mark", {
|
|
15098
15081
|
className: "dv-word dv-word--del",
|
|
15099
15082
|
children: a.val
|
|
15100
15083
|
}, s) : a.kind === "ins" && l === "new" ? /* @__PURE__ */ e("mark", {
|
|
15101
15084
|
className: "dv-word dv-word--ins",
|
|
15102
15085
|
children: a.val
|
|
15103
|
-
}, s) : null) }),
|
|
15086
|
+
}, s) : null) }), pc = [
|
|
15104
15087
|
{
|
|
15105
15088
|
name: "comment",
|
|
15106
15089
|
pattern: /\/\/.*$|\/\*[\s\S]*?\*\/|#.*$/m
|
|
@@ -15130,12 +15113,12 @@ var pc = ({ a: t, b: c, side: l }) => /* @__PURE__ */ e(c1, { children: mc(t, c)
|
|
|
15130
15113
|
pattern: /\b[a-zA-Z_$][a-zA-Z0-9_$]*(?=\s*\()/
|
|
15131
15114
|
}
|
|
15132
15115
|
];
|
|
15133
|
-
function
|
|
15116
|
+
function vc(t) {
|
|
15134
15117
|
const c = [];
|
|
15135
15118
|
let l = t;
|
|
15136
15119
|
for (; l.length > 0; ) {
|
|
15137
15120
|
let a = !1;
|
|
15138
|
-
for (const { name: s, pattern: o } of
|
|
15121
|
+
for (const { name: s, pattern: o } of pc) {
|
|
15139
15122
|
const i = l.match(new RegExp(`^(?:${o.source})`, o.flags));
|
|
15140
15123
|
if (i) {
|
|
15141
15124
|
c.push({
|
|
@@ -15152,18 +15135,18 @@ function gc(t) {
|
|
|
15152
15135
|
}
|
|
15153
15136
|
return c;
|
|
15154
15137
|
}
|
|
15155
|
-
var
|
|
15138
|
+
var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t]).map((c, l) => c.name === "plain" ? /* @__PURE__ */ e("span", { children: c.val }, l) : /* @__PURE__ */ e("span", {
|
|
15156
15139
|
className: `dv-token dv-token--${c.name}`,
|
|
15157
15140
|
children: c.val
|
|
15158
15141
|
}, l)) }), E0 = ({ line: t, side: c, type: l }) => {
|
|
15159
15142
|
const a = c === "old" ? t.text ?? t.oldText ?? "" : t.text ?? t.newText ?? "";
|
|
15160
|
-
return t.kind !== "equal" && t.oldText !== void 0 && t.newText !== void 0 ? /* @__PURE__ */ e(
|
|
15143
|
+
return t.kind !== "equal" && t.oldText !== void 0 && t.newText !== void 0 ? /* @__PURE__ */ e(mc, {
|
|
15161
15144
|
a: t.oldText,
|
|
15162
15145
|
b: t.newText,
|
|
15163
15146
|
side: c
|
|
15164
|
-
}) : l === "code" ? /* @__PURE__ */ e(
|
|
15165
|
-
},
|
|
15166
|
-
const n = m1(() =>
|
|
15147
|
+
}) : l === "code" ? /* @__PURE__ */ e(gc, { text: a }) : /* @__PURE__ */ e(c1, { children: a });
|
|
15148
|
+
}, ba = ({ oldValue: t, newValue: c, mode: l = "split", type: a = "text", oldTitle: s = "Before", newTitle: o = "After", showLineNumbers: i = !0 }) => {
|
|
15149
|
+
const n = m1(() => hc(t, c), [t, c]), d = m1(() => ({
|
|
15167
15150
|
added: n.filter((h) => h.kind === "added").length,
|
|
15168
15151
|
removed: n.filter((h) => h.kind === "removed").length
|
|
15169
15152
|
}), [n]);
|
|
@@ -15283,7 +15266,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
15283
15266
|
})
|
|
15284
15267
|
})]
|
|
15285
15268
|
});
|
|
15286
|
-
},
|
|
15269
|
+
}, uc = 1e3, n2 = 0, A2 = ({ isOpen: t, onClose: c, position: l = "left", width: a = "320px", maxWidth: s = "none", margin: o = 0, borderRadius: i = 0, shadow: n = "none", children: d, title: h, icon: m, className: p = "", showOverlay: g = !0, lockScroll: w = !0, hideClose: v = !1, actions: u = [], onBack: f, backLabel: C = "Back", primary: x, secondary: b, footer: M }) => {
|
|
15287
15270
|
C2(t && w);
|
|
15288
15271
|
const [_, N] = z(0);
|
|
15289
15272
|
if (U(() => {
|
|
@@ -15294,7 +15277,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
15294
15277
|
};
|
|
15295
15278
|
return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
|
|
15296
15279
|
}, [t, c]), !t) return null;
|
|
15297
|
-
const L = (k) => typeof k == "number" ? `${k}px` : k, y =
|
|
15280
|
+
const L = (k) => typeof k == "number" ? `${k}px` : k, y = uc + _ * 2, H = {
|
|
15298
15281
|
"--drawer-width": a,
|
|
15299
15282
|
"--drawer-max-width": L(s),
|
|
15300
15283
|
"--drawer-margin": L(o),
|
|
@@ -15326,7 +15309,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
15326
15309
|
}),
|
|
15327
15310
|
(h || m) && /* @__PURE__ */ r("h2", {
|
|
15328
15311
|
className: "drawer__title",
|
|
15329
|
-
children: [m && /* @__PURE__ */ e(
|
|
15312
|
+
children: [m && /* @__PURE__ */ e(E, { name: m }), h && /* @__PURE__ */ e("span", {
|
|
15330
15313
|
className: "drawer__title-text",
|
|
15331
15314
|
children: h
|
|
15332
15315
|
})]
|
|
@@ -15388,7 +15371,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
15388
15371
|
})
|
|
15389
15372
|
]
|
|
15390
15373
|
})] });
|
|
15391
|
-
},
|
|
15374
|
+
}, wc = {
|
|
15392
15375
|
"⚽": [
|
|
15393
15376
|
"soccer",
|
|
15394
15377
|
"football",
|
|
@@ -15892,7 +15875,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
15892
15875
|
"bike",
|
|
15893
15876
|
"sport"
|
|
15894
15877
|
]
|
|
15895
|
-
},
|
|
15878
|
+
}, fc = {
|
|
15896
15879
|
"🐶": [
|
|
15897
15880
|
"dog",
|
|
15898
15881
|
"puppy",
|
|
@@ -16389,7 +16372,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
16389
16372
|
"animal",
|
|
16390
16373
|
"wild"
|
|
16391
16374
|
]
|
|
16392
|
-
},
|
|
16375
|
+
}, Cc = {
|
|
16393
16376
|
"🍎": [
|
|
16394
16377
|
"apple",
|
|
16395
16378
|
"fruit",
|
|
@@ -16925,7 +16908,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
16925
16908
|
"pop",
|
|
16926
16909
|
"cork"
|
|
16927
16910
|
]
|
|
16928
|
-
},
|
|
16911
|
+
}, yc = {
|
|
16929
16912
|
"⌚": [
|
|
16930
16913
|
"watch",
|
|
16931
16914
|
"time",
|
|
@@ -17573,7 +17556,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
17573
17556
|
"restroom",
|
|
17574
17557
|
"wc"
|
|
17575
17558
|
]
|
|
17576
|
-
},
|
|
17559
|
+
}, bc = {
|
|
17577
17560
|
"👋": [
|
|
17578
17561
|
"wave",
|
|
17579
17562
|
"hello",
|
|
@@ -18057,7 +18040,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
18057
18040
|
"girl",
|
|
18058
18041
|
"tiara"
|
|
18059
18042
|
]
|
|
18060
|
-
},
|
|
18043
|
+
}, xc = {
|
|
18061
18044
|
"😀": [
|
|
18062
18045
|
"grinning",
|
|
18063
18046
|
"happy",
|
|
@@ -18591,7 +18574,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
18591
18574
|
"tipsy",
|
|
18592
18575
|
"confused"
|
|
18593
18576
|
]
|
|
18594
|
-
},
|
|
18577
|
+
}, Mc = {
|
|
18595
18578
|
"❤️": [
|
|
18596
18579
|
"heart",
|
|
18597
18580
|
"red",
|
|
@@ -19184,7 +19167,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
19184
19167
|
"forbidden",
|
|
19185
19168
|
"symbol"
|
|
19186
19169
|
]
|
|
19187
|
-
},
|
|
19170
|
+
}, kc = {
|
|
19188
19171
|
"🚗": [
|
|
19189
19172
|
"car",
|
|
19190
19173
|
"automobile",
|
|
@@ -19687,15 +19670,15 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
19687
19670
|
"country",
|
|
19688
19671
|
"asia"
|
|
19689
19672
|
]
|
|
19690
|
-
},
|
|
19691
|
-
...Mc,
|
|
19673
|
+
}, _c = {
|
|
19692
19674
|
...xc,
|
|
19675
|
+
...bc,
|
|
19676
|
+
...fc,
|
|
19693
19677
|
...Cc,
|
|
19678
|
+
...kc,
|
|
19679
|
+
...wc,
|
|
19694
19680
|
...yc,
|
|
19695
|
-
...
|
|
19696
|
-
...fc,
|
|
19697
|
-
...bc,
|
|
19698
|
-
...kc
|
|
19681
|
+
...Mc
|
|
19699
19682
|
}, M0 = [
|
|
19700
19683
|
{
|
|
19701
19684
|
id: "smileys",
|
|
@@ -20435,11 +20418,11 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20435
20418
|
"🈲"
|
|
20436
20419
|
]
|
|
20437
20420
|
}
|
|
20438
|
-
],
|
|
20421
|
+
], xa = ({ value: t, onChange: c }) => {
|
|
20439
20422
|
const [l, a] = z(""), [s, o] = z(M0[0].id), i = m1(() => {
|
|
20440
20423
|
if (!l.trim()) return null;
|
|
20441
20424
|
const d = l.toLowerCase();
|
|
20442
|
-
return M0.flatMap((h) => h.emojis.filter((m) =>
|
|
20425
|
+
return M0.flatMap((h) => h.emojis.filter((m) => _c[m]?.some((p) => p.includes(d)) || h.name.toLowerCase().includes(d)));
|
|
20443
20426
|
}, [l]), n = i ?? M0.find((d) => d.id === s)?.emojis ?? [];
|
|
20444
20427
|
return /* @__PURE__ */ r("div", {
|
|
20445
20428
|
className: "emoji-picker",
|
|
@@ -20475,7 +20458,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20475
20458
|
})
|
|
20476
20459
|
]
|
|
20477
20460
|
});
|
|
20478
|
-
},
|
|
20461
|
+
}, Ma = class extends J2 {
|
|
20479
20462
|
constructor(...t) {
|
|
20480
20463
|
super(...t), this.state = { error: null }, this.reset = () => {
|
|
20481
20464
|
this.setState({ error: null });
|
|
@@ -20503,7 +20486,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20503
20486
|
})
|
|
20504
20487
|
}) : c;
|
|
20505
20488
|
}
|
|
20506
|
-
},
|
|
20489
|
+
}, ka = ({ label: t, accept: c, multiple: l = !1, showPreview: a = !0, onFiles: s }) => {
|
|
20507
20490
|
const [o, i] = z(!1), [n, d] = z([]), h = Y(null), [m, p] = z([]);
|
|
20508
20491
|
U(() => {
|
|
20509
20492
|
if (!a) return;
|
|
@@ -20512,7 +20495,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20512
20495
|
v.forEach((u) => URL.revokeObjectURL(u));
|
|
20513
20496
|
};
|
|
20514
20497
|
}, [n, a]);
|
|
20515
|
-
const g =
|
|
20498
|
+
const g = j((v) => {
|
|
20516
20499
|
if (!v) return;
|
|
20517
20500
|
const u = l ? Array.from(v) : [v[0]].filter(Boolean);
|
|
20518
20501
|
d(u), s?.(u);
|
|
@@ -20566,7 +20549,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20566
20549
|
})
|
|
20567
20550
|
]
|
|
20568
20551
|
});
|
|
20569
|
-
},
|
|
20552
|
+
}, _a = ({ actions: t }) => {
|
|
20570
20553
|
const [c, l] = z(!1);
|
|
20571
20554
|
if (t.length === 1) return /* @__PURE__ */ e("div", {
|
|
20572
20555
|
className: "float-button-container",
|
|
@@ -20578,7 +20561,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20578
20561
|
onClick: t[0].onClick,
|
|
20579
20562
|
children: /* @__PURE__ */ e("span", {
|
|
20580
20563
|
className: "float-button__icon",
|
|
20581
|
-
children: /* @__PURE__ */ e(
|
|
20564
|
+
children: /* @__PURE__ */ e(E, {
|
|
20582
20565
|
name: t[0].icon,
|
|
20583
20566
|
size: "xxl"
|
|
20584
20567
|
})
|
|
@@ -20603,7 +20586,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20603
20586
|
onClick: () => s(o),
|
|
20604
20587
|
children: [/* @__PURE__ */ e("span", {
|
|
20605
20588
|
className: "float-button-menu__icon",
|
|
20606
|
-
children: /* @__PURE__ */ e(
|
|
20589
|
+
children: /* @__PURE__ */ e(E, { name: o.icon })
|
|
20607
20590
|
}), /* @__PURE__ */ e("span", {
|
|
20608
20591
|
className: "float-button-menu__label",
|
|
20609
20592
|
children: o.label
|
|
@@ -20615,7 +20598,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20615
20598
|
title: "Actions menu",
|
|
20616
20599
|
children: /* @__PURE__ */ e("span", {
|
|
20617
20600
|
className: "float-button__icon",
|
|
20618
|
-
children: /* @__PURE__ */ e(
|
|
20601
|
+
children: /* @__PURE__ */ e(E, {
|
|
20619
20602
|
name: c ? "clear" : "plus",
|
|
20620
20603
|
size: "xxl"
|
|
20621
20604
|
})
|
|
@@ -20625,8 +20608,8 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20625
20608
|
}, $2 = () => /* @__PURE__ */ e("div", {
|
|
20626
20609
|
className: "loading",
|
|
20627
20610
|
children: /* @__PURE__ */ e("div", { className: "loading__spinner" })
|
|
20628
|
-
}),
|
|
20629
|
-
const [n, d] = z(null), [h, m] = z(!1), [p, g] = z(""), w =
|
|
20611
|
+
}), La = ({ isOpen: t, title: c = "Select a folder", initialPath: l, loadDirectory: a, onSelect: s, onClose: o, selectLabel: i = "Select this folder" }) => {
|
|
20612
|
+
const [n, d] = z(null), [h, m] = z(!1), [p, g] = z(""), w = j(async (x) => {
|
|
20630
20613
|
m(!0);
|
|
20631
20614
|
try {
|
|
20632
20615
|
d(await a(x));
|
|
@@ -20736,7 +20719,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20736
20719
|
w(x.path);
|
|
20737
20720
|
},
|
|
20738
20721
|
children: [
|
|
20739
|
-
/* @__PURE__ */ e(
|
|
20722
|
+
/* @__PURE__ */ e(E, {
|
|
20740
20723
|
name: "folder",
|
|
20741
20724
|
size: "sm"
|
|
20742
20725
|
}),
|
|
@@ -20744,7 +20727,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20744
20727
|
className: "folder-browser__entry-name",
|
|
20745
20728
|
children: x.name
|
|
20746
20729
|
}),
|
|
20747
|
-
/* @__PURE__ */ e(
|
|
20730
|
+
/* @__PURE__ */ e(E, {
|
|
20748
20731
|
className: "folder-browser__entry-chevron",
|
|
20749
20732
|
name: "arrow-right",
|
|
20750
20733
|
size: "sm"
|
|
@@ -20755,8 +20738,8 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20755
20738
|
]
|
|
20756
20739
|
})
|
|
20757
20740
|
});
|
|
20758
|
-
},
|
|
20759
|
-
const m = Y(null), p = Y(null), g = Y(null), w =
|
|
20741
|
+
}, za = ({ children: t, onLoadMore: c, hasMore: l, isLoading: a = !1, threshold: s = 0, rootMargin: o = "0px", height: i, onScrollChange: n, endMessage: d, className: h }) => {
|
|
20742
|
+
const m = Y(null), p = Y(null), g = Y(null), w = j(() => {
|
|
20760
20743
|
const v = m.current;
|
|
20761
20744
|
if (!v) return;
|
|
20762
20745
|
const { scrollTop: u, scrollHeight: f, clientHeight: C } = v, x = {
|
|
@@ -20812,8 +20795,8 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20812
20795
|
})
|
|
20813
20796
|
]
|
|
20814
20797
|
});
|
|
20815
|
-
},
|
|
20816
|
-
const [N, L] = z(!0), [y, H] = z(!1), S = (P) => f && (!P || P.trim() === "") ? !1 : !P || P.trim() === "" ? !0 :
|
|
20798
|
+
}, Lc = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, zc = (t) => !t || t.trim() === "" ? !0 : Lc.test(t.trim()), Va = M1(({ autoComplete: t = "on", autoFocus: c, disabled: l, error: a = "Please enter a valid email address", highlighted: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: m, onKeyDown: p, onKeyUp: g, onValidate: w, placeholder: v, readOnly: u = !1, required: f = !1, showValidation: C = !1, success: x, validateOn: b = "blur", value: M }, _) => {
|
|
20799
|
+
const [N, L] = z(!0), [y, H] = z(!1), S = (P) => f && (!P || P.trim() === "") ? !1 : !P || P.trim() === "" ? !0 : zc(P);
|
|
20817
20800
|
U(() => {
|
|
20818
20801
|
if (M !== void 0) {
|
|
20819
20802
|
const P = S(M);
|
|
@@ -20876,7 +20859,7 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20876
20859
|
})
|
|
20877
20860
|
]
|
|
20878
20861
|
});
|
|
20879
|
-
}),
|
|
20862
|
+
}), Na = M1(({ accept: t, disabled: c, error: l, highlighted: a, id: s, label: o, onChange: i, onClick: n, onKeyDown: d, placeholder: h, required: m, success: p, value: g }, w) => /* @__PURE__ */ r("div", {
|
|
20880
20863
|
className: `input-file-wrapper${a ? " input-file-highlighted" : ""}`,
|
|
20881
20864
|
children: [
|
|
20882
20865
|
o && /* @__PURE__ */ r("label", {
|
|
@@ -20914,16 +20897,16 @@ var uc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => gc(t), [t])
|
|
|
20914
20897
|
a: /[a-zA-Z]/,
|
|
20915
20898
|
"*": /[a-zA-Z0-9]/
|
|
20916
20899
|
};
|
|
20917
|
-
function
|
|
20900
|
+
function Vc(t) {
|
|
20918
20901
|
return t in D2;
|
|
20919
20902
|
}
|
|
20920
|
-
function
|
|
20903
|
+
function Nc(t) {
|
|
20921
20904
|
const c = [];
|
|
20922
20905
|
let l = 0;
|
|
20923
20906
|
for (; l < t.length; ) t[l] === "\\" && l + 1 < t.length ? (c.push({
|
|
20924
20907
|
type: "literal",
|
|
20925
20908
|
char: t[l + 1]
|
|
20926
|
-
}), l += 2) :
|
|
20909
|
+
}), l += 2) : Vc(t[l]) ? (c.push({
|
|
20927
20910
|
type: "token",
|
|
20928
20911
|
key: t[l]
|
|
20929
20912
|
}), l++) : (c.push({
|
|
@@ -20944,11 +20927,11 @@ function I0(t, c, l) {
|
|
|
20944
20927
|
rawAccepted: o
|
|
20945
20928
|
};
|
|
20946
20929
|
}
|
|
20947
|
-
function
|
|
20930
|
+
function Hc(t) {
|
|
20948
20931
|
return t.filter((c) => c.type === "token").length;
|
|
20949
20932
|
}
|
|
20950
|
-
var
|
|
20951
|
-
const N = E1.useMemo(() =>
|
|
20933
|
+
var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, label: o, hint: i, error: n, highlighted: d, size: h = "md", variant: m = "default", disabled: p = !1, readOnly: g = !1, maskChar: w = "_", mono: v = !0, icon: u, suffix: f, className: C = "", id: x, name: b, autoComplete: M }, _) => {
|
|
20934
|
+
const N = E1.useMemo(() => Nc(t), [t]), L = E1.useMemo(() => Hc(N), [N]), y = C0(), H = x ?? y, [S, k] = z(() => c !== void 0 ? c : ""), A = Y(null);
|
|
20952
20935
|
w2(_, () => ({
|
|
20953
20936
|
focus: () => A.current?.focus(),
|
|
20954
20937
|
clear: () => {
|
|
@@ -20967,16 +20950,16 @@ var Bc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20967
20950
|
u ? "input-mask--has-icon" : "",
|
|
20968
20951
|
f ? "input-mask--has-suffix" : "",
|
|
20969
20952
|
C
|
|
20970
|
-
].filter(Boolean).join(" "), V =
|
|
20953
|
+
].filter(Boolean).join(" "), V = j((I) => {
|
|
20971
20954
|
if (p || g) return;
|
|
20972
|
-
if (
|
|
20973
|
-
|
|
20955
|
+
if (I.key === "Backspace") {
|
|
20956
|
+
I.preventDefault();
|
|
20974
20957
|
const n1 = S.slice(0, -1), { masked: v1 } = I0(n1, N, w);
|
|
20975
20958
|
k(n1), l?.(n1, v1);
|
|
20976
20959
|
return;
|
|
20977
20960
|
}
|
|
20978
|
-
if (
|
|
20979
|
-
const $ =
|
|
20961
|
+
if (I.key.length !== 1 || I.ctrlKey || I.metaKey || (I.preventDefault(), S.length >= L)) return;
|
|
20962
|
+
const $ = I.key;
|
|
20980
20963
|
let p1 = 0;
|
|
20981
20964
|
for (const n1 of N) if (n1.type === "token") {
|
|
20982
20965
|
if (p1 === S.length) {
|
|
@@ -20996,7 +20979,7 @@ var Bc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20996
20979
|
L,
|
|
20997
20980
|
l,
|
|
20998
20981
|
a
|
|
20999
|
-
]), X = s ?? N.map((
|
|
20982
|
+
]), X = s ?? N.map((I) => I.type === "literal" ? I.char : w).join(""), a1 = S.length === L;
|
|
21000
20983
|
return /* @__PURE__ */ r("div", {
|
|
21001
20984
|
className: o1,
|
|
21002
20985
|
children: [
|
|
@@ -21050,8 +21033,8 @@ var Bc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
21050
21033
|
]
|
|
21051
21034
|
});
|
|
21052
21035
|
});
|
|
21053
|
-
|
|
21054
|
-
var
|
|
21036
|
+
Sc.displayName = "InputMask";
|
|
21037
|
+
var Ha = {
|
|
21055
21038
|
creditCard: "9999 9999 9999 9999",
|
|
21056
21039
|
iban: "aa99 9999 9999 9999 9999 99",
|
|
21057
21040
|
cvv: "999",
|
|
@@ -21102,7 +21085,7 @@ var Sa = {
|
|
|
21102
21085
|
children: f
|
|
21103
21086
|
})
|
|
21104
21087
|
]
|
|
21105
|
-
})),
|
|
21088
|
+
})), Bc = "+## (###) ###-####";
|
|
21106
21089
|
function j0(t, c) {
|
|
21107
21090
|
let l = 0, a = "";
|
|
21108
21091
|
for (let s = 0; s < c.length && !(l >= t.length); s++)
|
|
@@ -21112,12 +21095,12 @@ function j0(t, c) {
|
|
|
21112
21095
|
function P0(t) {
|
|
21113
21096
|
return t.replace(/\D/g, "");
|
|
21114
21097
|
}
|
|
21115
|
-
function
|
|
21098
|
+
function Rc(t) {
|
|
21116
21099
|
return t.split("").filter((c) => c === "#").length;
|
|
21117
21100
|
}
|
|
21118
|
-
var
|
|
21101
|
+
var Ac = M1(({ autoFocus: t, disabled: c, error: l, format: a = Bc, highlighted: s, id: o, label: i, onBlur: n, onChange: d, onClick: h, onKeyDown: m, placeholder: p, readOnly: g = !1, required: w = !1, success: v, value: u }, f) => {
|
|
21119
21102
|
const C = u !== void 0, [x, b] = z(() => u ? j0(P0(u), a) : ""), M = C ? j0(P0(u ?? ""), a) : x, _ = p ?? a.replace(/#/g, "0"), N = a.length, L = (y) => {
|
|
21120
|
-
const H = P0(y), S =
|
|
21103
|
+
const H = P0(y), S = Rc(a), k = H.slice(0, S), A = j0(k, a);
|
|
21121
21104
|
C || b(A), d?.(A, k);
|
|
21122
21105
|
};
|
|
21123
21106
|
return /* @__PURE__ */ r("div", {
|
|
@@ -21176,8 +21159,8 @@ var $c = M1(({ autoFocus: t, disabled: c, error: l, format: a = Rc, highlighted:
|
|
|
21176
21159
|
]
|
|
21177
21160
|
});
|
|
21178
21161
|
});
|
|
21179
|
-
|
|
21180
|
-
var
|
|
21162
|
+
Ac.displayName = "InputPhone";
|
|
21163
|
+
var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error: s, id: o, label: i, maxLength: n, onBlur: d, onChange: h, onClick: m, onKeyDown: p, onKeyUp: g, placeholder: w, required: v, rows: u, success: f, value: C }, x) => /* @__PURE__ */ r("div", {
|
|
21181
21164
|
className: "input-textarea-wrapper",
|
|
21182
21165
|
children: [
|
|
21183
21166
|
i && /* @__PURE__ */ r("label", {
|
|
@@ -21215,7 +21198,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21215
21198
|
children: f
|
|
21216
21199
|
})
|
|
21217
21200
|
]
|
|
21218
|
-
})),
|
|
21201
|
+
})), Ba = M1(({ autoFocus: t, disabled: c, error: l, highlighted: a, id: s, label: o, max: i, min: n, onBlur: d, onChange: h, onClick: m, onKeyDown: p, onKeyUp: g, readOnly: w = !1, required: v = !1, success: u, value: f }, C) => /* @__PURE__ */ r("div", {
|
|
21219
21202
|
className: `input-time-wrapper${a ? " input-time-highlighted" : ""}`,
|
|
21220
21203
|
children: [
|
|
21221
21204
|
o && /* @__PURE__ */ r("label", {
|
|
@@ -21253,19 +21236,19 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21253
21236
|
children: u
|
|
21254
21237
|
})
|
|
21255
21238
|
]
|
|
21256
|
-
})),
|
|
21239
|
+
})), $c = "Please enter a valid URL (e.g. https://example.com)", Dc = (t) => {
|
|
21257
21240
|
try {
|
|
21258
21241
|
const c = new URL(t);
|
|
21259
21242
|
return c.protocol === "http:" || c.protocol === "https:";
|
|
21260
21243
|
} catch {
|
|
21261
21244
|
return !1;
|
|
21262
21245
|
}
|
|
21263
|
-
},
|
|
21246
|
+
}, Ra = M1(({ autoFocus: t, disabled: c, error: l, highlighted: a, id: s, label: o, maxLength: i, onBlur: n, onChange: d, onClick: h, onKeyDown: m, onKeyUp: p, onValidationChange: g, placeholder: w = "https://...", readOnly: v = !1, required: u = !1, success: f, validationErrorMessage: C, value: x }, b) => {
|
|
21264
21247
|
const [M, _] = z(void 0), N = (S) => {
|
|
21265
21248
|
if (!S)
|
|
21266
21249
|
return _(void 0), g?.(!0), !0;
|
|
21267
|
-
const k =
|
|
21268
|
-
return _(k ? void 0 : C ??
|
|
21250
|
+
const k = Dc(S);
|
|
21251
|
+
return _(k ? void 0 : C ?? $c), g?.(k), k;
|
|
21269
21252
|
}, L = (S) => {
|
|
21270
21253
|
d?.(S), M && N(S);
|
|
21271
21254
|
}, y = (S) => {
|
|
@@ -21310,7 +21293,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21310
21293
|
})
|
|
21311
21294
|
]
|
|
21312
21295
|
});
|
|
21313
|
-
}),
|
|
21296
|
+
}), Aa = ({ isOpen: t, onClose: c, onComplete: l, steps: a, title: s, presentation: o = "drawer", width: i = "480px" }) => {
|
|
21314
21297
|
const [n, d] = z(0);
|
|
21315
21298
|
U(() => {
|
|
21316
21299
|
t && d(0);
|
|
@@ -21359,7 +21342,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21359
21342
|
variant: "info",
|
|
21360
21343
|
disabled: !g,
|
|
21361
21344
|
onClick: v,
|
|
21362
|
-
children: ["Next ", /* @__PURE__ */ e(
|
|
21345
|
+
children: ["Next ", /* @__PURE__ */ e(E, {
|
|
21363
21346
|
name: "next",
|
|
21364
21347
|
size: "sm"
|
|
21365
21348
|
})]
|
|
@@ -21445,7 +21428,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21445
21428
|
})]
|
|
21446
21429
|
})
|
|
21447
21430
|
});
|
|
21448
|
-
},
|
|
21431
|
+
}, $a = ({ items: t, direction: c = "vertical", selectable: l = !1, defaultSelectedId: a, onSelect: s, className: o = "" }) => {
|
|
21449
21432
|
const [i, n] = z(a), d = (h) => {
|
|
21450
21433
|
!l || h.disabled || (n(h.id), s?.(h));
|
|
21451
21434
|
};
|
|
@@ -21465,7 +21448,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21465
21448
|
}, h.id);
|
|
21466
21449
|
})
|
|
21467
21450
|
});
|
|
21468
|
-
},
|
|
21451
|
+
}, Tc = ({ icon: t = "menu-hamburger", isCompact: c, items: l, label: a, showLabel: s = !0, disableResponsive: o = !1 }) => {
|
|
21469
21452
|
const { isAtLeast: i } = h0(), [n, d] = z(null), h = (v) => {
|
|
21470
21453
|
d(v.currentTarget);
|
|
21471
21454
|
}, m = () => {
|
|
@@ -21508,7 +21491,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21508
21491
|
onClick: () => g(v),
|
|
21509
21492
|
children: [/* @__PURE__ */ e("span", {
|
|
21510
21493
|
className: "MenuHamburger_item__icon",
|
|
21511
|
-
children: v.icon ? /* @__PURE__ */ e(
|
|
21494
|
+
children: v.icon ? /* @__PURE__ */ e(E, { name: v.icon }) : null
|
|
21512
21495
|
}), /* @__PURE__ */ e("span", {
|
|
21513
21496
|
className: "MenuHamburger_item__label",
|
|
21514
21497
|
children: v.label
|
|
@@ -21518,17 +21501,17 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21518
21501
|
})
|
|
21519
21502
|
})]
|
|
21520
21503
|
});
|
|
21521
|
-
}, v0 = (t) => Math.max(0, Math.min(1, t)),
|
|
21522
|
-
const n = Y(null), d = Y(!1), h = Math.max(0, l - c), m = Math.max(1, ...t), p =
|
|
21504
|
+
}, v0 = (t) => Math.max(0, Math.min(1, t)), Da = ({ buckets: t, viewportStart: c, viewportEnd: l, onScrub: a, bands: s, caption: o, className: i = "" }) => {
|
|
21505
|
+
const n = Y(null), d = Y(!1), h = Math.max(0, l - c), m = Math.max(1, ...t), p = j((u) => {
|
|
21523
21506
|
const f = n.current;
|
|
21524
21507
|
if (!f) return;
|
|
21525
21508
|
const C = f.getBoundingClientRect(), x = v0((u - C.left) / C.width);
|
|
21526
21509
|
a(Math.max(0, Math.min(1 - h, x - h / 2)));
|
|
21527
|
-
}, [a, h]), g =
|
|
21510
|
+
}, [a, h]), g = j((u) => {
|
|
21528
21511
|
d.current = !0, u.currentTarget.setPointerCapture(u.pointerId), p(u.clientX);
|
|
21529
|
-
}, [p]), w =
|
|
21512
|
+
}, [p]), w = j((u) => {
|
|
21530
21513
|
d.current && p(u.clientX);
|
|
21531
|
-
}, [p]), v =
|
|
21514
|
+
}, [p]), v = j((u) => {
|
|
21532
21515
|
d.current = !1, u.currentTarget.hasPointerCapture(u.pointerId) && u.currentTarget.releasePointerCapture(u.pointerId);
|
|
21533
21516
|
}, []);
|
|
21534
21517
|
return /* @__PURE__ */ r("div", {
|
|
@@ -21572,7 +21555,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21572
21555
|
]
|
|
21573
21556
|
})]
|
|
21574
21557
|
});
|
|
21575
|
-
},
|
|
21558
|
+
}, Ta = ({ label: t, value: c, unit: l, variant: a = "default", align: s = "center", labelPosition: o = "bottom", trend: i, trendUnit: n = "%", trendLabel: d, trendVariant: h = "success", footer: m, filled: p = !1, className: g = "" }) => {
|
|
21576
21559
|
const w = () => /* @__PURE__ */ r("div", {
|
|
21577
21560
|
className: `mini-stats-card__value mini-stats-card__value--${a}`,
|
|
21578
21561
|
children: [/* @__PURE__ */ e("span", {
|
|
@@ -21630,7 +21613,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21630
21613
|
children: m
|
|
21631
21614
|
})]
|
|
21632
21615
|
});
|
|
21633
|
-
},
|
|
21616
|
+
}, Za = ({ items: t, logo: c, actions: l, position: a = "static", className: s = "", renderItem: o, collapsible: i = !1, noPadding: n = !1 }) => {
|
|
21634
21617
|
const [d, h] = z(!1), m = (v) => {
|
|
21635
21618
|
v.disabled || (v.onClick && v.onClick(), i && h(!1));
|
|
21636
21619
|
}, p = (v) => /* @__PURE__ */ r("button", {
|
|
@@ -21639,7 +21622,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21639
21622
|
disabled: v.disabled,
|
|
21640
21623
|
children: [v.icon && /* @__PURE__ */ e("span", {
|
|
21641
21624
|
className: "navbar__item-icon",
|
|
21642
|
-
children: v.icon ? /* @__PURE__ */ e(
|
|
21625
|
+
children: v.icon ? /* @__PURE__ */ e(E, { name: v.icon }) : null
|
|
21643
21626
|
}), /* @__PURE__ */ e("span", {
|
|
21644
21627
|
className: "navbar__item-label",
|
|
21645
21628
|
children: v.label
|
|
@@ -21684,7 +21667,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21684
21667
|
})
|
|
21685
21668
|
]
|
|
21686
21669
|
});
|
|
21687
|
-
},
|
|
21670
|
+
}, Zc = ({ items: t, buttonLabel: c = "Alerts", panelTitle: l = "Notifications", emptyMessage: a = "No active notifications." }) => {
|
|
21688
21671
|
const [s, o] = z(!1), [i, n] = z({ opacity: 0 }), d = Y(null), h = Y(null), m = t.some((g) => g.severity === "critical");
|
|
21689
21672
|
return U(() => {
|
|
21690
21673
|
if (!s || !d.current || !h.current) return;
|
|
@@ -21741,7 +21724,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21741
21724
|
})]
|
|
21742
21725
|
})] }), document.body)]
|
|
21743
21726
|
});
|
|
21744
|
-
},
|
|
21727
|
+
}, Gc = {
|
|
21745
21728
|
small: 120,
|
|
21746
21729
|
medium: 180,
|
|
21747
21730
|
large: 240
|
|
@@ -21757,7 +21740,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21757
21740
|
x: t + l * Math.cos(s),
|
|
21758
21741
|
y: c + l * Math.sin(s)
|
|
21759
21742
|
};
|
|
21760
|
-
},
|
|
21743
|
+
}, Ec = (t, c, l, a) => {
|
|
21761
21744
|
const s = n0(t, t, c, a), o = n0(t, t, c, l), i = a - l <= 180 ? 0 : 1;
|
|
21762
21745
|
return [
|
|
21763
21746
|
"M",
|
|
@@ -21776,23 +21759,23 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21776
21759
|
o.y,
|
|
21777
21760
|
"Z"
|
|
21778
21761
|
].join(" ");
|
|
21779
|
-
},
|
|
21762
|
+
}, Ic = (t) => `hsl(${Math.round((t * 137.508 + 28) % 360)} 72% 52%)`, jc = (t, c) => {
|
|
21780
21763
|
const l = t.variant ?? "default";
|
|
21781
|
-
return l === "custom" ? t.customColor || o2.default : l === "random" ?
|
|
21782
|
-
},
|
|
21783
|
-
const n =
|
|
21764
|
+
return l === "custom" ? t.customColor || o2.default : l === "random" ? Ic(c) : o2[l];
|
|
21765
|
+
}, Ga = ({ className: t = "", data: c = [], emptyLabel: l, gap: a = 1, size: s = "medium", valueFormatter: o, valuePosition: i = "inside" }) => {
|
|
21766
|
+
const n = Gc[s], d = i === "outside" ? Math.round(n * 0.18) : 0, h = n / 2, m = Math.max(h - Math.max(a, 1), 1), p = `${-d} ${-d} ${n + d * 2} ${n + d * 2}`, g = m1(() => {
|
|
21784
21767
|
const M = c.filter((L) => Number.isFinite(L.value) && L.value > 0), _ = M.reduce((L, y) => L + y.value, 0);
|
|
21785
21768
|
if (_ <= 0) return [];
|
|
21786
21769
|
let N = 0;
|
|
21787
21770
|
return M.map((L, y) => {
|
|
21788
21771
|
const H = L.value / _ * 360, S = N, k = y === M.length - 1 ? 360 : N + H, A = S + (k - S) / 2;
|
|
21789
21772
|
return N = k, {
|
|
21790
|
-
color:
|
|
21773
|
+
color: jc(L, y),
|
|
21791
21774
|
endAngle: k,
|
|
21792
21775
|
index: y,
|
|
21793
21776
|
label: o ? o(L.value, L, y) : L.value,
|
|
21794
21777
|
midAngle: A,
|
|
21795
|
-
path:
|
|
21778
|
+
path: Ec(h, m, S, k),
|
|
21796
21779
|
startAngle: S,
|
|
21797
21780
|
value: L.value
|
|
21798
21781
|
};
|
|
@@ -21875,7 +21858,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21875
21858
|
]
|
|
21876
21859
|
})
|
|
21877
21860
|
});
|
|
21878
|
-
}, V0 = (t) => Number((typeof t == "number" ? t : Number(t)).toFixed(2)),
|
|
21861
|
+
}, V0 = (t) => Number((typeof t == "number" ? t : Number(t)).toFixed(2)), Ea = (t, c) => (t > c && console.warn(`Could not get percent of value ${t} from a total ${c}. Total must be higher or at least equal to value.`), t === c ? t === 0 ? 0 : 100 : t / (c / 100)), Ia = (t, c) => {
|
|
21879
21862
|
const l = t + c;
|
|
21880
21863
|
return l === 0 ? {
|
|
21881
21864
|
a: 0,
|
|
@@ -21884,7 +21867,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21884
21867
|
a: Math.round(t / l * 100 * 10) / 10,
|
|
21885
21868
|
b: Math.round(c / l * 100 * 10) / 10
|
|
21886
21869
|
};
|
|
21887
|
-
},
|
|
21870
|
+
}, ja = ({ animated: t = !1, height: c, label: l, labelAfterValue: a = !1, labelAlign: s = "left", labelPosition: o = "inside", orientation: i = "horizontal", showPercentage: n = !0, state: d = "default", striped: h = !1, thin: m = !1, value: p = 0 }) => {
|
|
21888
21871
|
const g = [
|
|
21889
21872
|
"progress-fill",
|
|
21890
21873
|
`progress-bar-${d}`,
|
|
@@ -21927,8 +21910,8 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21927
21910
|
small: 64,
|
|
21928
21911
|
medium: 96,
|
|
21929
21912
|
large: 128
|
|
21930
|
-
},
|
|
21931
|
-
const m = Math.min(Math.max(Number.isFinite(h) ? h : 0, 0), 100), p =
|
|
21913
|
+
}, Pc = (t) => typeof t == "number" ? t : T2[t], Pa = ({ children: t, className: c = "", label: l, labelPosition: a = "below", rounded: s = !0, showPercentage: o = !0, size: i = "medium", state: n = "default", thickness: d, value: h }) => {
|
|
21914
|
+
const m = Math.min(Math.max(Number.isFinite(h) ? h : 0, 0), 100), p = Pc(i), g = d ?? (p <= T2.small ? 6 : 8), w = Math.max((p - g) / 2, 1), v = 2 * Math.PI * w, u = v - m / 100 * v, f = m1(() => `${V0(m)}%`, [m]), C = t || (o ? f : a === "inside" ? l : null), x = a === "inside" && l && o && !t;
|
|
21932
21915
|
return /* @__PURE__ */ r("div", {
|
|
21933
21916
|
className: `progress-ring progress-ring--${n} ${c}`,
|
|
21934
21917
|
style: { "--progress-ring-size": `${p}px` },
|
|
@@ -21968,7 +21951,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21968
21951
|
children: l
|
|
21969
21952
|
})]
|
|
21970
21953
|
});
|
|
21971
|
-
},
|
|
21954
|
+
}, Wa = M1(({ disabled: t = !1, error: c, id: l, inputWidth: a, label: s, max: o, min: i = 0, onChange: n, readOnlyInput: d = !1, required: h = !1, step: m = 1, success: p, value: g }, w) => {
|
|
21972
21955
|
const u = a || (o !== void 0 ? Math.max(String(o).length, String(i).length, 3) : 3), f = () => {
|
|
21973
21956
|
if (t) return;
|
|
21974
21957
|
const b = (g ?? 0) - m;
|
|
@@ -22052,7 +22035,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
22052
22035
|
})
|
|
22053
22036
|
]
|
|
22054
22037
|
});
|
|
22055
|
-
}),
|
|
22038
|
+
}), Ua = ({ isOpen: t = !1, onClose: c, placeholder: l, title: a, onSave: s, titleIcon: o, value: i = "", usePortal: n = !1 }) => {
|
|
22056
22039
|
const [d, h] = z(i), [m, p] = z(!1), g = async () => {
|
|
22057
22040
|
p(!0), await s(d), p(!1), c();
|
|
22058
22041
|
};
|
|
@@ -22094,7 +22077,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
22094
22077
|
})
|
|
22095
22078
|
})
|
|
22096
22079
|
});
|
|
22097
|
-
},
|
|
22080
|
+
}, Fa = ({ isOpen: t = !1, title: c, onClose: l, onSave: a, icon: s, value: o, min: i, max: n }) => {
|
|
22098
22081
|
const [d, h] = z(o), [m, p] = z(!1), g = async () => {
|
|
22099
22082
|
p(!0), await a(d), p(!1), l();
|
|
22100
22083
|
};
|
|
@@ -22136,7 +22119,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
22136
22119
|
})
|
|
22137
22120
|
})
|
|
22138
22121
|
});
|
|
22139
|
-
},
|
|
22122
|
+
}, Wc = ({ checked: t = !1, onChange: c, label: l, disabled: a = !1, name: s, value: o, id: i, className: n = "" }) => {
|
|
22140
22123
|
const d = C0(), h = i || d, m = (p) => {
|
|
22141
22124
|
c?.(p.target.checked && o !== void 0 ? o : p.target.checked);
|
|
22142
22125
|
};
|
|
@@ -22164,7 +22147,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
22164
22147
|
})]
|
|
22165
22148
|
})]
|
|
22166
22149
|
});
|
|
22167
|
-
},
|
|
22150
|
+
}, qa = ({ isOpen: t = !1, list: c, title: l, onClose: a, onSave: s, icon: o, value: i }) => {
|
|
22168
22151
|
const [n, d] = z(i), [h, m] = z(!1), [p, g] = z("");
|
|
22169
22152
|
U(() => {
|
|
22170
22153
|
d(i);
|
|
@@ -22208,7 +22191,7 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
22208
22191
|
},
|
|
22209
22192
|
children: [/* @__PURE__ */ e("div", {
|
|
22210
22193
|
className: "quick-set-list",
|
|
22211
|
-
children: c && c.map(({ key: u, label: f }) => /* @__PURE__ */ e(
|
|
22194
|
+
children: c && c.map(({ key: u, label: f }) => /* @__PURE__ */ e(Wc, {
|
|
22212
22195
|
name: "ownership",
|
|
22213
22196
|
label: f,
|
|
22214
22197
|
checked: n === u,
|
|
@@ -22221,23 +22204,23 @@ var Ba = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
22221
22204
|
})]
|
|
22222
22205
|
})
|
|
22223
22206
|
});
|
|
22224
|
-
},
|
|
22207
|
+
}, Uc = (t) => t ? /<[a-z][\s\S]*>/i.test(t) ? t : t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").split(/\n{2,}/).map((c) => `<p>${c.replace(/\n/g, "<br>")}</p>`).join("") : "", Fc = (t) => {
|
|
22225
22208
|
if (!t) return "";
|
|
22226
22209
|
const c = document.createElement("div");
|
|
22227
22210
|
return c.innerHTML = t, c.querySelectorAll("br").forEach((l) => l.replaceWith(`
|
|
22228
22211
|
`)), (c.textContent || "").trim();
|
|
22229
|
-
},
|
|
22212
|
+
}, Oa = (t) => {
|
|
22230
22213
|
if (!t) return [];
|
|
22231
|
-
const c =
|
|
22214
|
+
const c = Uc(t), l = document.createElement("div");
|
|
22232
22215
|
l.innerHTML = c;
|
|
22233
22216
|
const a = Array.from(l.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6"));
|
|
22234
22217
|
if (a.length > 0) {
|
|
22235
|
-
const o = a.map((i) => i.innerHTML.trim()).filter((i) => i.length > 0 &&
|
|
22218
|
+
const o = a.map((i) => i.innerHTML.trim()).filter((i) => i.length > 0 && Fc(i).length > 0);
|
|
22236
22219
|
if (o.length > 0) return o;
|
|
22237
22220
|
}
|
|
22238
22221
|
const s = l.innerHTML.trim();
|
|
22239
22222
|
return s ? [s] : [];
|
|
22240
|
-
},
|
|
22223
|
+
}, qc = (t) => {
|
|
22241
22224
|
const c = document.createElement("div");
|
|
22242
22225
|
c.innerHTML = t;
|
|
22243
22226
|
const l = (a) => {
|
|
@@ -22332,7 +22315,7 @@ ${s.textContent ?? ""}
|
|
|
22332
22315
|
}
|
|
22333
22316
|
};
|
|
22334
22317
|
return Array.from(c.childNodes).map(l).join("").trim();
|
|
22335
|
-
},
|
|
22318
|
+
}, Oc = [
|
|
22336
22319
|
{
|
|
22337
22320
|
command: "bold",
|
|
22338
22321
|
label: "B",
|
|
@@ -22358,7 +22341,7 @@ ${s.textContent ?? ""}
|
|
|
22358
22341
|
label: "1. List",
|
|
22359
22342
|
title: "Ordered List"
|
|
22360
22343
|
}
|
|
22361
|
-
],
|
|
22344
|
+
], Yc = [{
|
|
22362
22345
|
command: "undo",
|
|
22363
22346
|
label: "↩ Undo",
|
|
22364
22347
|
title: "Undo (Ctrl+Z)"
|
|
@@ -22366,14 +22349,14 @@ ${s.textContent ?? ""}
|
|
|
22366
22349
|
command: "redo",
|
|
22367
22350
|
label: "↪ Redo",
|
|
22368
22351
|
title: "Redo (Ctrl+Shift+Z)"
|
|
22369
|
-
}],
|
|
22352
|
+
}], Xc = [
|
|
22370
22353
|
1,
|
|
22371
22354
|
2,
|
|
22372
22355
|
3,
|
|
22373
22356
|
4,
|
|
22374
22357
|
5,
|
|
22375
22358
|
6
|
|
22376
|
-
],
|
|
22359
|
+
], Kc = [{
|
|
22377
22360
|
command: "formatBlock",
|
|
22378
22361
|
value: "pre",
|
|
22379
22362
|
label: "Code Block",
|
|
@@ -22386,7 +22369,7 @@ ${s.textContent ?? ""}
|
|
|
22386
22369
|
a.setAttribute("contenteditable", "true"), a.textContent = "Cell", c.appendChild(a);
|
|
22387
22370
|
}
|
|
22388
22371
|
return c;
|
|
22389
|
-
},
|
|
22372
|
+
}, Qc = `
|
|
22390
22373
|
<table class="rte-table">
|
|
22391
22374
|
<thead>
|
|
22392
22375
|
<tr><th contenteditable="true">Header 1</th><th contenteditable="true">Header 2</th><th contenteditable="true">Header 3</th></tr>
|
|
@@ -22396,14 +22379,14 @@ ${s.textContent ?? ""}
|
|
|
22396
22379
|
<tr><td contenteditable="true">Cell</td><td contenteditable="true">Cell</td><td contenteditable="true">Cell</td></tr>
|
|
22397
22380
|
</tbody>
|
|
22398
22381
|
</table><p><br></p>
|
|
22399
|
-
`,
|
|
22382
|
+
`, Jc = 100, el = (t, c, l) => {
|
|
22400
22383
|
const a = Y([]), s = Y([]);
|
|
22401
22384
|
return {
|
|
22402
|
-
snapshotForUndo:
|
|
22385
|
+
snapshotForUndo: j(() => {
|
|
22403
22386
|
const o = t.current;
|
|
22404
|
-
o && (a.current.push(o.innerHTML), a.current.length >
|
|
22387
|
+
o && (a.current.push(o.innerHTML), a.current.length > Jc && a.current.shift(), s.current = []);
|
|
22405
22388
|
}, [t]),
|
|
22406
|
-
undo:
|
|
22389
|
+
undo: j(() => {
|
|
22407
22390
|
const o = t.current;
|
|
22408
22391
|
if (!o || a.current.length === 0) return;
|
|
22409
22392
|
s.current.push(o.innerHTML);
|
|
@@ -22416,7 +22399,7 @@ ${s.textContent ?? ""}
|
|
|
22416
22399
|
c,
|
|
22417
22400
|
l
|
|
22418
22401
|
]),
|
|
22419
|
-
redo:
|
|
22402
|
+
redo: j(() => {
|
|
22420
22403
|
const o = t.current;
|
|
22421
22404
|
if (!o || s.current.length === 0) return;
|
|
22422
22405
|
a.current.push(o.innerHTML);
|
|
@@ -22430,7 +22413,7 @@ ${s.textContent ?? ""}
|
|
|
22430
22413
|
l
|
|
22431
22414
|
])
|
|
22432
22415
|
};
|
|
22433
|
-
},
|
|
22416
|
+
}, tl = ({ editorRef: t, snapshotForUndo: c, emitChange: l }) => {
|
|
22434
22417
|
const [a, s] = z(!1), [o, i] = z(""), [n, d] = z(""), h = Y(null), m = Y(null);
|
|
22435
22418
|
return {
|
|
22436
22419
|
showLinkPrompt: a,
|
|
@@ -22439,7 +22422,7 @@ ${s.textContent ?? ""}
|
|
|
22439
22422
|
linkText: n,
|
|
22440
22423
|
setLinkText: d,
|
|
22441
22424
|
editingAnchorRef: m,
|
|
22442
|
-
openLinkPrompt:
|
|
22425
|
+
openLinkPrompt: j((p) => {
|
|
22443
22426
|
if (p)
|
|
22444
22427
|
m.current = p, d(p.textContent ?? ""), i(p.getAttribute("href") ?? "");
|
|
22445
22428
|
else {
|
|
@@ -22449,7 +22432,7 @@ ${s.textContent ?? ""}
|
|
|
22449
22432
|
}
|
|
22450
22433
|
s(!0);
|
|
22451
22434
|
}, []),
|
|
22452
|
-
confirmLink:
|
|
22435
|
+
confirmLink: j(() => {
|
|
22453
22436
|
const p = t.current;
|
|
22454
22437
|
if (p) {
|
|
22455
22438
|
if (p.focus(), m.current) {
|
|
@@ -22482,12 +22465,12 @@ ${s.textContent ?? ""}
|
|
|
22482
22465
|
c,
|
|
22483
22466
|
l
|
|
22484
22467
|
]),
|
|
22485
|
-
cancelLink:
|
|
22468
|
+
cancelLink: j(() => {
|
|
22486
22469
|
s(!1), i(""), d(""), h.current = null, m.current = null;
|
|
22487
22470
|
}, [])
|
|
22488
22471
|
};
|
|
22489
|
-
},
|
|
22490
|
-
const [a, s] = z(null), [o, i] = z(null), n =
|
|
22472
|
+
}, rl = ({ editorRef: t, snapshotForUndo: c, emitChange: l }) => {
|
|
22473
|
+
const [a, s] = z(null), [o, i] = z(null), n = j(() => {
|
|
22491
22474
|
const v = window.getSelection();
|
|
22492
22475
|
if (!v || v.rangeCount === 0) return null;
|
|
22493
22476
|
let u = v.getRangeAt(0).commonAncestorContainer;
|
|
@@ -22499,7 +22482,7 @@ ${s.textContent ?? ""}
|
|
|
22499
22482
|
u = u.parentNode;
|
|
22500
22483
|
}
|
|
22501
22484
|
return null;
|
|
22502
|
-
}, [t]), d =
|
|
22485
|
+
}, [t]), d = j((v) => {
|
|
22503
22486
|
const u = t.current;
|
|
22504
22487
|
if (!u) return;
|
|
22505
22488
|
const f = u.getBoundingClientRect(), C = v.getBoundingClientRect();
|
|
@@ -22507,9 +22490,9 @@ ${s.textContent ?? ""}
|
|
|
22507
22490
|
top: C.top - f.top - 36,
|
|
22508
22491
|
left: C.left - f.left
|
|
22509
22492
|
});
|
|
22510
|
-
}, [t]), h =
|
|
22493
|
+
}, [t]), h = j(() => {
|
|
22511
22494
|
s(null), i(null);
|
|
22512
|
-
}, []), m =
|
|
22495
|
+
}, []), m = j(() => {
|
|
22513
22496
|
if (!a) return;
|
|
22514
22497
|
c();
|
|
22515
22498
|
const v = n()?.closest("tr") ?? null, u = a.querySelector("tbody") ?? a, f = v ?? u.querySelector("tr:last-child");
|
|
@@ -22522,7 +22505,7 @@ ${s.textContent ?? ""}
|
|
|
22522
22505
|
n,
|
|
22523
22506
|
l,
|
|
22524
22507
|
d
|
|
22525
|
-
]), p =
|
|
22508
|
+
]), p = j(() => {
|
|
22526
22509
|
if (!a) return;
|
|
22527
22510
|
c();
|
|
22528
22511
|
const v = n()?.closest("tr") ?? null, u = a.querySelector("tbody") ?? a, f = v ?? u.querySelector("tr:first-child");
|
|
@@ -22535,7 +22518,7 @@ ${s.textContent ?? ""}
|
|
|
22535
22518
|
n,
|
|
22536
22519
|
l,
|
|
22537
22520
|
d
|
|
22538
|
-
]), g =
|
|
22521
|
+
]), g = j(() => {
|
|
22539
22522
|
if (!a) return;
|
|
22540
22523
|
const v = Array.from(a.querySelectorAll("tbody tr"));
|
|
22541
22524
|
v.length <= 1 || (c(), (n()?.closest("tr") ?? v[v.length - 1]).remove(), l(), d(a));
|
|
@@ -22545,7 +22528,7 @@ ${s.textContent ?? ""}
|
|
|
22545
22528
|
n,
|
|
22546
22529
|
l,
|
|
22547
22530
|
d
|
|
22548
|
-
]), w =
|
|
22531
|
+
]), w = j(() => {
|
|
22549
22532
|
if (!a) return;
|
|
22550
22533
|
c();
|
|
22551
22534
|
const v = n(), u = v ? Array.from(v.parentElement.querySelectorAll("td,th")).indexOf(v) : -1;
|
|
@@ -22570,7 +22553,7 @@ ${s.textContent ?? ""}
|
|
|
22570
22553
|
addRowAbove: p,
|
|
22571
22554
|
addRowBelow: m,
|
|
22572
22555
|
removeRow: g,
|
|
22573
|
-
addColumnLeft:
|
|
22556
|
+
addColumnLeft: j(() => {
|
|
22574
22557
|
if (!a) return;
|
|
22575
22558
|
c();
|
|
22576
22559
|
const v = n(), u = v ? Array.from(v.parentElement.querySelectorAll("td,th")).indexOf(v) : 0;
|
|
@@ -22588,7 +22571,7 @@ ${s.textContent ?? ""}
|
|
|
22588
22571
|
d
|
|
22589
22572
|
]),
|
|
22590
22573
|
addColumnRight: w,
|
|
22591
|
-
removeColumn:
|
|
22574
|
+
removeColumn: j(() => {
|
|
22592
22575
|
if (!a) return;
|
|
22593
22576
|
const v = Array.from(a.querySelectorAll("tr"));
|
|
22594
22577
|
if ((v[0]?.querySelectorAll("td,th").length ?? 0) <= 1) return;
|
|
@@ -22605,7 +22588,7 @@ ${s.textContent ?? ""}
|
|
|
22605
22588
|
l,
|
|
22606
22589
|
d
|
|
22607
22590
|
]),
|
|
22608
|
-
deleteTable:
|
|
22591
|
+
deleteTable: j(() => {
|
|
22609
22592
|
a && (c(), a.remove(), h(), l());
|
|
22610
22593
|
}, [
|
|
22611
22594
|
a,
|
|
@@ -22614,7 +22597,7 @@ ${s.textContent ?? ""}
|
|
|
22614
22597
|
l
|
|
22615
22598
|
])
|
|
22616
22599
|
};
|
|
22617
|
-
},
|
|
22600
|
+
}, cl = ({ isEditing: t, linkText: c, linkUrl: l, setLinkText: a, setLinkUrl: s, confirmLink: o, cancelLink: i }) => /* @__PURE__ */ r("div", {
|
|
22618
22601
|
className: "rte-link-prompt",
|
|
22619
22602
|
children: [
|
|
22620
22603
|
/* @__PURE__ */ e("input", {
|
|
@@ -22650,7 +22633,7 @@ ${s.textContent ?? ""}
|
|
|
22650
22633
|
})]
|
|
22651
22634
|
})
|
|
22652
22635
|
]
|
|
22653
|
-
}),
|
|
22636
|
+
}), ll = ({ pos: t, toolbarRef: c, addRowAbove: l, addRowBelow: a, removeRow: s, addColumnLeft: o, addColumnRight: i, removeColumn: n, deleteTable: d }) => /* @__PURE__ */ r("div", {
|
|
22654
22637
|
ref: c,
|
|
22655
22638
|
className: "rte-table-toolbar",
|
|
22656
22639
|
style: {
|
|
@@ -22738,12 +22721,12 @@ ${s.textContent ?? ""}
|
|
|
22738
22721
|
})
|
|
22739
22722
|
})
|
|
22740
22723
|
]
|
|
22741
|
-
}),
|
|
22724
|
+
}), al = ({ advanced: t, isActive: c, exec: l, applyHeading: a, insertTaskList: s, openLinkPrompt: o, insertTable: i, undo: n, redo: d }) => /* @__PURE__ */ r("div", {
|
|
22742
22725
|
className: "rte-toolbar",
|
|
22743
22726
|
children: [
|
|
22744
22727
|
/* @__PURE__ */ e("div", {
|
|
22745
22728
|
className: "rte-toolbar-group",
|
|
22746
|
-
children:
|
|
22729
|
+
children: Yc.map((h) => /* @__PURE__ */ e(d1, {
|
|
22747
22730
|
title: h.title,
|
|
22748
22731
|
children: /* @__PURE__ */ e("button", {
|
|
22749
22732
|
type: "button",
|
|
@@ -22758,7 +22741,7 @@ ${s.textContent ?? ""}
|
|
|
22758
22741
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22759
22742
|
/* @__PURE__ */ r("div", {
|
|
22760
22743
|
className: "rte-toolbar-group",
|
|
22761
|
-
children: [
|
|
22744
|
+
children: [Oc.map((h) => /* @__PURE__ */ e(d1, {
|
|
22762
22745
|
title: h.title,
|
|
22763
22746
|
children: /* @__PURE__ */ e("button", {
|
|
22764
22747
|
type: "button",
|
|
@@ -22776,14 +22759,14 @@ ${s.textContent ?? ""}
|
|
|
22776
22759
|
onMouseDown: (h) => {
|
|
22777
22760
|
h.preventDefault(), s();
|
|
22778
22761
|
},
|
|
22779
|
-
children: [/* @__PURE__ */ e(
|
|
22762
|
+
children: [/* @__PURE__ */ e(E, { name: "checkmark" }), " List"]
|
|
22780
22763
|
})
|
|
22781
22764
|
})]
|
|
22782
22765
|
}),
|
|
22783
22766
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22784
22767
|
/* @__PURE__ */ e("div", {
|
|
22785
22768
|
className: "rte-toolbar-group",
|
|
22786
|
-
children:
|
|
22769
|
+
children: Xc.map((h) => /* @__PURE__ */ e(d1, {
|
|
22787
22770
|
title: `Heading ${h}`,
|
|
22788
22771
|
children: /* @__PURE__ */ r("button", {
|
|
22789
22772
|
type: "button",
|
|
@@ -22806,13 +22789,13 @@ ${s.textContent ?? ""}
|
|
|
22806
22789
|
onMouseDown: (h) => {
|
|
22807
22790
|
h.preventDefault(), o();
|
|
22808
22791
|
},
|
|
22809
|
-
children: [/* @__PURE__ */ e(
|
|
22792
|
+
children: [/* @__PURE__ */ e(E, { name: "link" }), " Link"]
|
|
22810
22793
|
})
|
|
22811
22794
|
})
|
|
22812
22795
|
}),
|
|
22813
22796
|
t && /* @__PURE__ */ r(c1, { children: [/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }), /* @__PURE__ */ r("div", {
|
|
22814
22797
|
className: "rte-toolbar-group",
|
|
22815
|
-
children: [
|
|
22798
|
+
children: [Kc.map((h) => /* @__PURE__ */ e(d1, {
|
|
22816
22799
|
title: h.title,
|
|
22817
22800
|
children: /* @__PURE__ */ e("button", {
|
|
22818
22801
|
type: "button",
|
|
@@ -22835,7 +22818,7 @@ ${s.textContent ?? ""}
|
|
|
22835
22818
|
})]
|
|
22836
22819
|
})] })
|
|
22837
22820
|
]
|
|
22838
|
-
}),
|
|
22821
|
+
}), Ya = ({ advanced: t = !1, error: c, format: l = "html", id: a, label: s, onBlur: o, onChange: i, placeholder: n, required: d = !1, value: h }) => {
|
|
22839
22822
|
const m = Y(null), p = Y(!1), g = Y(null), [w, v] = z(/* @__PURE__ */ new Set());
|
|
22840
22823
|
U(() => {
|
|
22841
22824
|
const K = m.current;
|
|
@@ -22843,23 +22826,23 @@ ${s.textContent ?? ""}
|
|
|
22843
22826
|
const t1 = h ?? "";
|
|
22844
22827
|
K.innerHTML !== t1 && (K.innerHTML = t1);
|
|
22845
22828
|
}, [h]);
|
|
22846
|
-
const u =
|
|
22829
|
+
const u = j(() => {
|
|
22847
22830
|
const K = m.current;
|
|
22848
22831
|
if (!K || !i) return;
|
|
22849
22832
|
p.current = !0;
|
|
22850
22833
|
const t1 = K.innerHTML.replace(/ /g, " ");
|
|
22851
|
-
i(l === "markdown" ?
|
|
22834
|
+
i(l === "markdown" ? qc(t1) : t1), setTimeout(() => {
|
|
22852
22835
|
p.current = !1;
|
|
22853
22836
|
}, 0);
|
|
22854
|
-
}, [l, i]), { snapshotForUndo: f, undo: C, redo: x } =
|
|
22837
|
+
}, [l, i]), { snapshotForUndo: f, undo: C, redo: x } = el(m, p, u), { showLinkPrompt: b, linkUrl: M, setLinkUrl: _, linkText: N, setLinkText: L, editingAnchorRef: y, openLinkPrompt: H, confirmLink: S, cancelLink: k } = tl({
|
|
22855
22838
|
editorRef: m,
|
|
22856
22839
|
snapshotForUndo: f,
|
|
22857
22840
|
emitChange: u
|
|
22858
|
-
}), { activeTable: A, tableToolbarPos: D, showTableToolbar: P, hideTableToolbar: O, addRowAbove: o1, addRowBelow: V, removeRow: X, addColumnLeft: a1, addColumnRight:
|
|
22841
|
+
}), { activeTable: A, tableToolbarPos: D, showTableToolbar: P, hideTableToolbar: O, addRowAbove: o1, addRowBelow: V, removeRow: X, addColumnLeft: a1, addColumnRight: I, removeColumn: $, deleteTable: p1 } = rl({
|
|
22859
22842
|
editorRef: m,
|
|
22860
22843
|
snapshotForUndo: f,
|
|
22861
22844
|
emitChange: u
|
|
22862
|
-
}), s1 =
|
|
22845
|
+
}), s1 = j(() => {
|
|
22863
22846
|
const K = [
|
|
22864
22847
|
"bold",
|
|
22865
22848
|
"italic",
|
|
@@ -22889,12 +22872,12 @@ ${s.textContent ?? ""}
|
|
|
22889
22872
|
}
|
|
22890
22873
|
}
|
|
22891
22874
|
v(t1);
|
|
22892
|
-
}, []), W =
|
|
22875
|
+
}, []), W = j((K, t1) => {
|
|
22893
22876
|
m.current?.focus(), document.execCommand(K, !1, t1), s1(), u();
|
|
22894
|
-
}, [u, s1]), n1 =
|
|
22877
|
+
}, [u, s1]), n1 = j((K) => {
|
|
22895
22878
|
const t1 = `h${K}`;
|
|
22896
22879
|
W("formatBlock", w.has(t1) ? "p" : t1);
|
|
22897
|
-
}, [w, W]), v1 =
|
|
22880
|
+
}, [w, W]), v1 = j(() => {
|
|
22898
22881
|
f();
|
|
22899
22882
|
const K = m.current;
|
|
22900
22883
|
if (!K) return;
|
|
@@ -22911,9 +22894,9 @@ ${s.textContent ?? ""}
|
|
|
22911
22894
|
b1.className = "rte-task-list", b1.appendChild(Z), B.deleteContents(), B.insertNode(b1);
|
|
22912
22895
|
const f1 = document.createRange();
|
|
22913
22896
|
f1.setStart(i1, 1), f1.collapse(!0), t1.removeAllRanges(), t1.addRange(f1), u();
|
|
22914
|
-
}, [f, u]), y1 =
|
|
22915
|
-
W("insertHTML",
|
|
22916
|
-
}, [W]), k1 =
|
|
22897
|
+
}, [f, u]), y1 = j(() => {
|
|
22898
|
+
W("insertHTML", Qc);
|
|
22899
|
+
}, [W]), k1 = j((K) => {
|
|
22917
22900
|
const t1 = K.target, B = t1.closest("a");
|
|
22918
22901
|
if (B) {
|
|
22919
22902
|
K.preventDefault(), H(B), s1();
|
|
@@ -22926,7 +22909,7 @@ ${s.textContent ?? ""}
|
|
|
22926
22909
|
s1,
|
|
22927
22910
|
P,
|
|
22928
22911
|
O
|
|
22929
|
-
]), g1 =
|
|
22912
|
+
]), g1 = j((K) => {
|
|
22930
22913
|
if ((K.ctrlKey || K.metaKey) && K.key === "z") {
|
|
22931
22914
|
K.preventDefault(), K.shiftKey ? x() : C();
|
|
22932
22915
|
return;
|
|
@@ -22978,7 +22961,7 @@ ${s.textContent ?? ""}
|
|
|
22978
22961
|
className: `rte-container ${c ? "rte-container--error" : ""}`,
|
|
22979
22962
|
style: { position: "relative" },
|
|
22980
22963
|
children: [
|
|
22981
|
-
/* @__PURE__ */ e(
|
|
22964
|
+
/* @__PURE__ */ e(al, {
|
|
22982
22965
|
advanced: t,
|
|
22983
22966
|
isActive: (K) => w.has(K),
|
|
22984
22967
|
exec: W,
|
|
@@ -22989,7 +22972,7 @@ ${s.textContent ?? ""}
|
|
|
22989
22972
|
undo: C,
|
|
22990
22973
|
redo: x
|
|
22991
22974
|
}),
|
|
22992
|
-
b && /* @__PURE__ */ e(
|
|
22975
|
+
b && /* @__PURE__ */ e(cl, {
|
|
22993
22976
|
isEditing: !!y.current,
|
|
22994
22977
|
linkText: N,
|
|
22995
22978
|
linkUrl: M,
|
|
@@ -22998,14 +22981,14 @@ ${s.textContent ?? ""}
|
|
|
22998
22981
|
confirmLink: S,
|
|
22999
22982
|
cancelLink: k
|
|
23000
22983
|
}),
|
|
23001
|
-
A && D && /* @__PURE__ */ e(
|
|
22984
|
+
A && D && /* @__PURE__ */ e(ll, {
|
|
23002
22985
|
pos: D,
|
|
23003
22986
|
toolbarRef: g,
|
|
23004
22987
|
addRowAbove: o1,
|
|
23005
22988
|
addRowBelow: V,
|
|
23006
22989
|
removeRow: X,
|
|
23007
22990
|
addColumnLeft: a1,
|
|
23008
|
-
addColumnRight:
|
|
22991
|
+
addColumnRight: I,
|
|
23009
22992
|
removeColumn: $,
|
|
23010
22993
|
deleteTable: p1
|
|
23011
22994
|
}),
|
|
@@ -23031,7 +23014,7 @@ ${s.textContent ?? ""}
|
|
|
23031
23014
|
})
|
|
23032
23015
|
]
|
|
23033
23016
|
});
|
|
23034
|
-
},
|
|
23017
|
+
}, Xa = ({ scrollContainer: t, scrollThreshold: c = 200, className: l }) => {
|
|
23035
23018
|
const [a, s] = z(!1);
|
|
23036
23019
|
U(() => {
|
|
23037
23020
|
const i = t ?? window, n = () => {
|
|
@@ -23041,7 +23024,7 @@ ${s.textContent ?? ""}
|
|
|
23041
23024
|
i.removeEventListener("scroll", n);
|
|
23042
23025
|
};
|
|
23043
23026
|
}, [t, c]);
|
|
23044
|
-
const o =
|
|
23027
|
+
const o = j(() => {
|
|
23045
23028
|
t ? t.scrollTo({
|
|
23046
23029
|
top: 0,
|
|
23047
23030
|
behavior: "smooth"
|
|
@@ -23059,12 +23042,12 @@ ${s.textContent ?? ""}
|
|
|
23059
23042
|
children: "▲"
|
|
23060
23043
|
})
|
|
23061
23044
|
}) : null;
|
|
23062
|
-
}, Z2 = w0(null), G2 = () => f0(Z2),
|
|
23045
|
+
}, Z2 = w0(null), G2 = () => f0(Z2), Ka = () => {
|
|
23063
23046
|
const t = G2();
|
|
23064
23047
|
if (!t) throw new Error("useSidebar must be used within a SidebarProvider");
|
|
23065
23048
|
return t;
|
|
23066
|
-
},
|
|
23067
|
-
const { isMobile: c } = h0(), [l, a] = z(!1), s =
|
|
23049
|
+
}, Qa = ({ children: t }) => {
|
|
23050
|
+
const { isMobile: c } = h0(), [l, a] = z(!1), s = j(() => a((d) => !d), []), o = j(() => a(!0), []), i = j(() => a(!1), []), n = m1(() => ({
|
|
23068
23051
|
isMobile: c,
|
|
23069
23052
|
isOpen: l,
|
|
23070
23053
|
toggle: s,
|
|
@@ -23081,7 +23064,7 @@ ${s.textContent ?? ""}
|
|
|
23081
23064
|
value: n,
|
|
23082
23065
|
children: t
|
|
23083
23066
|
});
|
|
23084
|
-
},
|
|
23067
|
+
}, Ja = ({ sections: t, width: c = "280px", className: l = "", appHeaderProps: a, renderItem: s, isOpen: o, onClose: i, isMobile: n, showOverlay: d = !0, contained: h = !1, shadow: m = "none", searchPlaceholder: p }) => {
|
|
23085
23068
|
const [g, w] = z(""), v = G2(), u = n ?? v?.isMobile ?? !1, f = o ?? (u ? v?.isOpen ?? !1 : !0), C = i ?? v?.close ?? (() => {
|
|
23086
23069
|
}), x = p && g ? t.map((y) => ({
|
|
23087
23070
|
...y,
|
|
@@ -23107,7 +23090,7 @@ ${s.textContent ?? ""}
|
|
|
23107
23090
|
children: [
|
|
23108
23091
|
y.icon && /* @__PURE__ */ e("span", {
|
|
23109
23092
|
className: "sidebar__link-icon",
|
|
23110
|
-
children: /* @__PURE__ */ e(
|
|
23093
|
+
children: /* @__PURE__ */ e(E, { name: y.icon })
|
|
23111
23094
|
}),
|
|
23112
23095
|
y.emoji && /* @__PURE__ */ e("span", {
|
|
23113
23096
|
className: "sidebar__link-emoji",
|
|
@@ -23158,7 +23141,7 @@ ${s.textContent ?? ""}
|
|
|
23158
23141
|
className: "sidebar__section-title-row",
|
|
23159
23142
|
children: [y.icon && /* @__PURE__ */ e("span", {
|
|
23160
23143
|
className: "sidebar__section-icon",
|
|
23161
|
-
children: /* @__PURE__ */ e(
|
|
23144
|
+
children: /* @__PURE__ */ e(E, { name: y.icon })
|
|
23162
23145
|
}), /* @__PURE__ */ r("div", {
|
|
23163
23146
|
className: "sidebar__section-copy",
|
|
23164
23147
|
children: [y.title && /* @__PURE__ */ e("span", {
|
|
@@ -23181,9 +23164,9 @@ ${s.textContent ?? ""}
|
|
|
23181
23164
|
})
|
|
23182
23165
|
]
|
|
23183
23166
|
})] });
|
|
23184
|
-
},
|
|
23185
|
-
function
|
|
23186
|
-
const s =
|
|
23167
|
+
}, il = (t, c) => t || (c >= 75 ? "excellent" : c >= 50 ? "good" : c >= 25 ? "fair" : c > 0 ? "weak" : "unknown"), nl = (t) => t >= 75 ? 4 : t >= 50 ? 3 : t >= 25 ? 2 : t > 0 ? 1 : 0;
|
|
23168
|
+
function ei({ value: t, state: c, size: l = 16, className: a = "" }) {
|
|
23169
|
+
const s = il(c, t), o = nl(t);
|
|
23187
23170
|
return /* @__PURE__ */ r("svg", {
|
|
23188
23171
|
width: l,
|
|
23189
23172
|
height: l,
|
|
@@ -23231,7 +23214,7 @@ function ti({ value: t, state: c, size: l = 16, className: a = "" }) {
|
|
|
23231
23214
|
]
|
|
23232
23215
|
});
|
|
23233
23216
|
}
|
|
23234
|
-
var
|
|
23217
|
+
var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, borderRadius: s, count: o = 1, className: i = "" }) => {
|
|
23235
23218
|
const n = () => {
|
|
23236
23219
|
const p = {};
|
|
23237
23220
|
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;
|
|
@@ -23273,10 +23256,10 @@ var ri = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23273
23256
|
className: "skeleton-group",
|
|
23274
23257
|
children: m
|
|
23275
23258
|
}) : /* @__PURE__ */ e(c1, { children: m });
|
|
23276
|
-
},
|
|
23259
|
+
}, ol = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.length ?? 0, ri = ({ disabled: t = !1, largeValueState: c = "info", min: l = 0, max: a = 100, step: s = 1, value: o, onChange: i, showValues: n = !0, showValueAtTheRight: d = !1, valueSize: h, thin: m = !1, vertical: p = !1 }) => {
|
|
23277
23260
|
const g = (f) => {
|
|
23278
23261
|
i(parseFloat(f.target.value));
|
|
23279
|
-
}, w =
|
|
23262
|
+
}, w = ol(s), v = w > 0 ? o.toFixed(w) : String(o), u = d && !p;
|
|
23280
23263
|
return /* @__PURE__ */ r("div", {
|
|
23281
23264
|
className: [
|
|
23282
23265
|
"slider-component",
|
|
@@ -23305,12 +23288,12 @@ var ri = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23305
23288
|
})
|
|
23306
23289
|
}))]
|
|
23307
23290
|
});
|
|
23308
|
-
},
|
|
23291
|
+
}, ci = ({ children: t, panel: c, isPanelOpen: l, onPanelClose: a, panelTitle: s, defaultLeftPercent: o = 55, minLeftPercent: i = 25, minRightPercent: n = 20, className: d = "" }) => {
|
|
23309
23292
|
const [h, m] = z(o), p = Y(null), g = Y(!1);
|
|
23310
23293
|
U(() => (l ? document.body.classList.add("split-panel-active") : document.body.classList.remove("split-panel-active"), () => {
|
|
23311
23294
|
document.body.classList.remove("split-panel-active");
|
|
23312
23295
|
}), [l]);
|
|
23313
|
-
const w =
|
|
23296
|
+
const w = j((v) => {
|
|
23314
23297
|
v.preventDefault(), g.current = !0, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
23315
23298
|
const u = (C) => {
|
|
23316
23299
|
if (!g.current || !p.current) return;
|
|
@@ -23363,10 +23346,10 @@ var ri = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23363
23346
|
className: `split-panel ${d}`,
|
|
23364
23347
|
children: t
|
|
23365
23348
|
});
|
|
23366
|
-
},
|
|
23349
|
+
}, sl = (t, c, l) => {
|
|
23367
23350
|
const a = `${V0(c)}%`;
|
|
23368
23351
|
return t.label && l ? `${t.label} - ${a}` : t.label ? t.label : a;
|
|
23369
|
-
},
|
|
23352
|
+
}, li = ({ animated: t = !1, height: c, normalize: l = !0, orientation: a = "horizontal", segments: s, showLabels: o = !0, showPercentage: i = !0, thin: n = !1, width: d }) => {
|
|
23370
23353
|
const h = m1(() => {
|
|
23371
23354
|
if (s.length === 0) return [];
|
|
23372
23355
|
if (!l) return s.map((w) => Math.max(0, w.value));
|
|
@@ -23383,7 +23366,7 @@ var ri = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23383
23366
|
children: s.map((g, w) => {
|
|
23384
23367
|
const v = h[w];
|
|
23385
23368
|
if (v <= 0) return null;
|
|
23386
|
-
const u = g.state || "default", f = g.pattern || "solid", C =
|
|
23369
|
+
const u = g.state || "default", f = g.pattern || "solid", C = sl(g, v, i);
|
|
23387
23370
|
return /* @__PURE__ */ e("div", {
|
|
23388
23371
|
className: [
|
|
23389
23372
|
"stacked-bar__segment",
|
|
@@ -23400,7 +23383,7 @@ var ri = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23400
23383
|
}, `stacked-bar-segment-${w}`);
|
|
23401
23384
|
})
|
|
23402
23385
|
});
|
|
23403
|
-
},
|
|
23386
|
+
}, ai = ({ items: t, dividers: c = !0, align: l = "left", size: a = "medium", className: s = "" }) => t.length === 0 ? null : /* @__PURE__ */ e("div", {
|
|
23404
23387
|
className: [
|
|
23405
23388
|
"stats",
|
|
23406
23389
|
`stats--align-${l}`,
|
|
@@ -23418,7 +23401,7 @@ var ri = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23418
23401
|
children: o.value
|
|
23419
23402
|
})]
|
|
23420
23403
|
}, `${o.label}-${i}`))
|
|
23421
|
-
}),
|
|
23404
|
+
}), ii = ({ children: t, position: c = "bottom", align: l = "between", visible: a = !0, onClose: s, closeLabel: o = "Close", offset: i = 0, className: n }) => a ? /* @__PURE__ */ r("div", {
|
|
23422
23405
|
className: [
|
|
23423
23406
|
"sticky-bar",
|
|
23424
23407
|
`sticky-bar--${c}`,
|
|
@@ -23442,10 +23425,10 @@ var ri = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23442
23425
|
function h2({ state: t }) {
|
|
23443
23426
|
return /* @__PURE__ */ e("span", {
|
|
23444
23427
|
className: `suggestions-list__sort-icon suggestions-list__sort-icon--${t}`,
|
|
23445
|
-
children: /* @__PURE__ */ e(
|
|
23428
|
+
children: /* @__PURE__ */ e(E, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
23446
23429
|
});
|
|
23447
23430
|
}
|
|
23448
|
-
var d2 = 10,
|
|
23431
|
+
var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s = !1, onRowClick: o }) => {
|
|
23449
23432
|
const [i, n] = z(!1), [d, h] = z(!1), [m, p] = z(""), [g, w] = z(null), [v, u] = z("asc"), f = m1(() => m.trim() ? t.filter((y) => y.name.toLowerCase().includes(m.toLowerCase())) : t, [t, m]), C = m1(() => {
|
|
23450
23433
|
if (!g) return f;
|
|
23451
23434
|
const y = [...f].sort((H, S) => {
|
|
@@ -23459,7 +23442,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23459
23442
|
v
|
|
23460
23443
|
]), x = m1(() => d ? [...C] : C.slice(0, d2), [C, d]), b = C.length > d2, M = () => {
|
|
23461
23444
|
n(!i);
|
|
23462
|
-
}, _ =
|
|
23445
|
+
}, _ = j(() => {
|
|
23463
23446
|
h(!d);
|
|
23464
23447
|
}, [d]), N = (y) => {
|
|
23465
23448
|
g === y ? u((H) => H === "asc" ? "desc" : "asc") : (w(y), u("asc"));
|
|
@@ -24082,7 +24065,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24082
24065
|
"ocean-depths",
|
|
24083
24066
|
"sandstone",
|
|
24084
24067
|
"tailwind-vue-dark"
|
|
24085
|
-
]),
|
|
24068
|
+
]), hl = /* @__PURE__ */ new Set([
|
|
24086
24069
|
"atelier-media",
|
|
24087
24070
|
"blueprint-clay",
|
|
24088
24071
|
"blush-market",
|
|
@@ -24100,7 +24083,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24100
24083
|
"sandy-parchment",
|
|
24101
24084
|
"terracotta-kitchen",
|
|
24102
24085
|
"vital-aurora"
|
|
24103
|
-
]),
|
|
24086
|
+
]), dl = (t) => hl.has(t) ? "light" : "dark", ml = (t) => o0.find((c) => c.value === t), pl = [
|
|
24104
24087
|
{
|
|
24105
24088
|
value: "all",
|
|
24106
24089
|
label: "All"
|
|
@@ -24113,7 +24096,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24113
24096
|
value: "dark",
|
|
24114
24097
|
label: "Dark"
|
|
24115
24098
|
}
|
|
24116
|
-
],
|
|
24099
|
+
], oi = ({ isOpen: t, onClose: c, allowedThemes: l, currentApp: a, showEffects: s = !0, showSearch: o = !0, showFavorites: i = !0, showAppearanceFilter: n = !0 }) => {
|
|
24117
24100
|
const { theme: d, effects: h, setPreviewTheme: m, setPreviewEffects: p, commitPreview: g, clearPreview: w } = b2(), v = ["Card", "Modal"], u = [
|
|
24118
24101
|
{
|
|
24119
24102
|
label: "None",
|
|
@@ -24141,9 +24124,9 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24141
24124
|
const X = new Set(l);
|
|
24142
24125
|
V = V.filter((a1) => X.has(a1.value));
|
|
24143
24126
|
}
|
|
24144
|
-
if (x && (V = V.filter((X) => p2.has(X.value))), M && S && (V = V.filter((X) => (X.recommendedApps ?? []).some((a1) => a1.toLowerCase() === S))), N !== "all" && (V = V.filter((X) =>
|
|
24127
|
+
if (x && (V = V.filter((X) => p2.has(X.value))), M && S && (V = V.filter((X) => (X.recommendedApps ?? []).some((a1) => a1.toLowerCase() === S))), N !== "all" && (V = V.filter((X) => dl(X.value) === N)), f.trim()) {
|
|
24145
24128
|
const X = f.toLowerCase().trim();
|
|
24146
|
-
V = V.filter((a1) => a1.label.toLowerCase().includes(X) || (a1.recommendedApps ?? []).some((
|
|
24129
|
+
V = V.filter((a1) => a1.label.toLowerCase().includes(X) || (a1.recommendedApps ?? []).some((I) => I.toLowerCase().includes(X)));
|
|
24147
24130
|
}
|
|
24148
24131
|
return V;
|
|
24149
24132
|
}, [
|
|
@@ -24181,7 +24164,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24181
24164
|
components: h.components
|
|
24182
24165
|
});
|
|
24183
24166
|
}, P = (V, X) => {
|
|
24184
|
-
const a1 = X ? [...h.components, V] : h.components.filter((
|
|
24167
|
+
const a1 = X ? [...h.components, V] : h.components.filter((I) => I !== V);
|
|
24185
24168
|
p({
|
|
24186
24169
|
effect: h.effect,
|
|
24187
24170
|
components: a1
|
|
@@ -24245,7 +24228,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24245
24228
|
}),
|
|
24246
24229
|
n && /* @__PURE__ */ e("div", {
|
|
24247
24230
|
className: "theme-settings__appearance",
|
|
24248
|
-
children:
|
|
24231
|
+
children: pl.map((V) => /* @__PURE__ */ e("button", {
|
|
24249
24232
|
type: "button",
|
|
24250
24233
|
className: `theme-settings__appearance-option ${N === V.value ? "theme-settings__appearance-option--active" : ""}`,
|
|
24251
24234
|
onClick: () => L(V.value),
|
|
@@ -24328,11 +24311,11 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24328
24311
|
})
|
|
24329
24312
|
})
|
|
24330
24313
|
});
|
|
24331
|
-
}, v2 = "theme-font-link", g2 = "theme-font-link-display", u2 = "theme-font-link-mono",
|
|
24314
|
+
}, v2 = "theme-font-link", g2 = "theme-font-link-display", u2 = "theme-font-link-mono", si = ({ children: t, theme: c, effects: l, onSave: a, allowedThemes: s }) => {
|
|
24332
24315
|
const [o, i] = z(null), [n, d] = z(null), [h, m] = z(!1), p = o ?? c, g = n ?? l;
|
|
24333
24316
|
U(() => {
|
|
24334
24317
|
document.documentElement.setAttribute("data-theme", p);
|
|
24335
|
-
const b =
|
|
24318
|
+
const b = ml(p);
|
|
24336
24319
|
if (b) {
|
|
24337
24320
|
let M = document.getElementById(v2);
|
|
24338
24321
|
M || (M = document.createElement("link"), M.id = v2, M.rel = "stylesheet", document.head.appendChild(M)), M.href = b.fontUrl;
|
|
@@ -24342,11 +24325,11 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24342
24325
|
b.fontUrlMono ? (N || (N = document.createElement("link"), N.id = u2, N.rel = "stylesheet", document.head.appendChild(N)), N.href = b.fontUrlMono) : N?.remove();
|
|
24343
24326
|
}
|
|
24344
24327
|
}, [p]);
|
|
24345
|
-
const w =
|
|
24328
|
+
const w = j((b) => {
|
|
24346
24329
|
i(b);
|
|
24347
|
-
}, []), v =
|
|
24330
|
+
}, []), v = j((b) => {
|
|
24348
24331
|
d(b);
|
|
24349
|
-
}, []), u =
|
|
24332
|
+
}, []), u = j(() => {
|
|
24350
24333
|
i(null), d(null);
|
|
24351
24334
|
}, []);
|
|
24352
24335
|
U(() => {
|
|
@@ -24370,7 +24353,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24370
24353
|
o,
|
|
24371
24354
|
s
|
|
24372
24355
|
]);
|
|
24373
|
-
const f = o0.findIndex((b) => b.value === p), C = f >= 0 ? o0[f].label : p, x =
|
|
24356
|
+
const f = o0.findIndex((b) => b.value === p), C = f >= 0 ? o0[f].label : p, x = j(() => {
|
|
24374
24357
|
a?.({
|
|
24375
24358
|
theme: p,
|
|
24376
24359
|
effects: g
|
|
@@ -24450,7 +24433,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24450
24433
|
]
|
|
24451
24434
|
})]
|
|
24452
24435
|
});
|
|
24453
|
-
},
|
|
24436
|
+
}, vl = (t = "default") => `timeline__dot timeline__dot--${t}`, hi = ({ items: t, orientation: c = "vertical", size: l = "md", connected: a = !0, animated: s = !0, className: o = "" }) => /* @__PURE__ */ e("ol", {
|
|
24454
24437
|
className: [
|
|
24455
24438
|
"timeline",
|
|
24456
24439
|
`timeline--${c}`,
|
|
@@ -24469,7 +24452,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24469
24452
|
children: [/* @__PURE__ */ r("div", {
|
|
24470
24453
|
className: "timeline__node",
|
|
24471
24454
|
children: [/* @__PURE__ */ e("div", {
|
|
24472
|
-
className:
|
|
24455
|
+
className: vl(i.variant),
|
|
24473
24456
|
children: i.icon ? /* @__PURE__ */ e("span", {
|
|
24474
24457
|
className: "timeline__dot-icon",
|
|
24475
24458
|
children: i.icon
|
|
@@ -24499,49 +24482,48 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24499
24482
|
]
|
|
24500
24483
|
})]
|
|
24501
24484
|
}, i.id))
|
|
24502
|
-
}),
|
|
24503
|
-
const c =
|
|
24485
|
+
}), gl = (t, c) => Math.floor(Math.random() * (c - t + 1) + t), di = ({ list: t }) => {
|
|
24486
|
+
const c = gl(0, t.length - 1);
|
|
24504
24487
|
return /* @__PURE__ */ r(_2, {
|
|
24505
24488
|
className: "tips-of-the-day",
|
|
24506
24489
|
children: [
|
|
24507
24490
|
/* @__PURE__ */ r("h3", { children: [
|
|
24508
|
-
/* @__PURE__ */ e(
|
|
24491
|
+
/* @__PURE__ */ e(E, { name: "sparkle" }),
|
|
24509
24492
|
" Tip Of The Day ",
|
|
24510
|
-
/* @__PURE__ */ e(
|
|
24493
|
+
/* @__PURE__ */ e(E, { name: "sparkle" })
|
|
24511
24494
|
] }),
|
|
24512
24495
|
" ",
|
|
24513
24496
|
/* @__PURE__ */ e("h4", { children: t[c] })
|
|
24514
24497
|
]
|
|
24515
24498
|
});
|
|
24516
|
-
}, E2 = ({ message: t, type: c = "success", onClose: l, position: a = "top-right", showDismissButton: s, timeout: o = 3e3, action: i }) => {
|
|
24517
|
-
|
|
24518
|
-
|
|
24519
|
-
|
|
24520
|
-
|
|
24521
|
-
|
|
24522
|
-
}
|
|
24523
|
-
|
|
24524
|
-
|
|
24525
|
-
|
|
24526
|
-
|
|
24527
|
-
|
|
24528
|
-
|
|
24529
|
-
|
|
24530
|
-
|
|
24531
|
-
i
|
|
24532
|
-
|
|
24533
|
-
|
|
24534
|
-
|
|
24535
|
-
|
|
24536
|
-
|
|
24537
|
-
|
|
24538
|
-
|
|
24539
|
-
|
|
24540
|
-
children: "x"
|
|
24499
|
+
}, E2 = ({ message: t, type: c = "success", onClose: l, position: a = "top-right", showDismissButton: s = !0, timeout: o = 3e3, action: i }) => (U(() => {
|
|
24500
|
+
const n = setTimeout(() => {
|
|
24501
|
+
l();
|
|
24502
|
+
}, o);
|
|
24503
|
+
return () => clearTimeout(n);
|
|
24504
|
+
}, [l, o]), /* @__PURE__ */ r("div", {
|
|
24505
|
+
className: `toast toast--fixed toast-${c} toast--${a}`,
|
|
24506
|
+
children: [
|
|
24507
|
+
/* @__PURE__ */ e("span", {
|
|
24508
|
+
className: "toast__message",
|
|
24509
|
+
children: t
|
|
24510
|
+
}),
|
|
24511
|
+
i && /* @__PURE__ */ e("button", {
|
|
24512
|
+
className: "toast__action",
|
|
24513
|
+
onClick: i.onClick,
|
|
24514
|
+
children: i.label
|
|
24515
|
+
}),
|
|
24516
|
+
s && /* @__PURE__ */ e("button", {
|
|
24517
|
+
className: "toast__close",
|
|
24518
|
+
onClick: l,
|
|
24519
|
+
title: "Close",
|
|
24520
|
+
children: /* @__PURE__ */ e(E, {
|
|
24521
|
+
name: "clear",
|
|
24522
|
+
size: "sm"
|
|
24541
24523
|
})
|
|
24542
|
-
|
|
24543
|
-
|
|
24544
|
-
},
|
|
24524
|
+
})
|
|
24525
|
+
]
|
|
24526
|
+
})), mi = ({ activeVariant: t = "warning", state: c, onToggleChange: l, states: a, layout: s = "buttons", size: o = "medium" }) => {
|
|
24545
24527
|
const { isAtLeast: i } = h0();
|
|
24546
24528
|
return s === "cards" ? /* @__PURE__ */ e("div", {
|
|
24547
24529
|
className: "toggle-buttons toggle-buttons--cards",
|
|
@@ -24552,7 +24534,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24552
24534
|
onClick: () => l(n.key),
|
|
24553
24535
|
children: [n.icon && /* @__PURE__ */ e("span", {
|
|
24554
24536
|
className: "toggle-buttons__card-icon",
|
|
24555
|
-
children: /* @__PURE__ */ e(
|
|
24537
|
+
children: /* @__PURE__ */ e(E, {
|
|
24556
24538
|
name: n.icon,
|
|
24557
24539
|
size: "xl"
|
|
24558
24540
|
})
|
|
@@ -24576,7 +24558,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24576
24558
|
children: i("tablet") ? n.label : ""
|
|
24577
24559
|
}, `btn-toggle2-${d}-${n}`))
|
|
24578
24560
|
});
|
|
24579
|
-
}, L0 = "::",
|
|
24561
|
+
}, L0 = "::", ul = (t) => typeof t == "object" && t.label ? t.label : "Filters", wl = (t) => "fields" in t ? t.fields.flatMap((c) => [{
|
|
24580
24562
|
value: `${c.value}${L0}asc`,
|
|
24581
24563
|
label: c.label,
|
|
24582
24564
|
suffixIcon: "arrow-up"
|
|
@@ -24584,7 +24566,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24584
24566
|
value: `${c.value}${L0}desc`,
|
|
24585
24567
|
label: c.label,
|
|
24586
24568
|
suffixIcon: "arrow-down"
|
|
24587
|
-
}]) : t.options,
|
|
24569
|
+
}]) : t.options, fl = (t) => "fields" in t ? t.value ? `${t.value.field}${L0}${t.value.direction}` : null : t.value, pi = ({ children: t, className: c = "", controlPanelToggle: l, heading: a, noCard: s = !1, menuItems: o, notifications: i, search: n, sort: d }) => {
|
|
24588
24570
|
const h = F0(), m = !!(l && h?.isMobile), p = [
|
|
24589
24571
|
"memobit-toolbar",
|
|
24590
24572
|
s ? "memobit-toolbar--no-card" : "",
|
|
@@ -24615,7 +24597,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24615
24597
|
onClick: h?.toggle,
|
|
24616
24598
|
size: "medium",
|
|
24617
24599
|
variant: "default",
|
|
24618
|
-
children: l ?
|
|
24600
|
+
children: l ? ul(l) : "Filters"
|
|
24619
24601
|
}),
|
|
24620
24602
|
a && /* @__PURE__ */ r("div", {
|
|
24621
24603
|
className: ["memobit-toolbar__heading", a.onClick ? "memobit-toolbar__heading--clickable" : ""].filter(Boolean).join(" "),
|
|
@@ -24624,7 +24606,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24624
24606
|
className: "memobit-toolbar__heading-icon",
|
|
24625
24607
|
children: [
|
|
24626
24608
|
a.svg,
|
|
24627
|
-
a.icon && /* @__PURE__ */ e(
|
|
24609
|
+
a.icon && /* @__PURE__ */ e(E, { name: a.icon }),
|
|
24628
24610
|
a.emoji
|
|
24629
24611
|
]
|
|
24630
24612
|
}), /* @__PURE__ */ r("div", {
|
|
@@ -24659,23 +24641,23 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24659
24641
|
label: d.label,
|
|
24660
24642
|
name: d.name ?? "toolbar-sort",
|
|
24661
24643
|
onChange: w,
|
|
24662
|
-
options:
|
|
24644
|
+
options: wl(d),
|
|
24663
24645
|
placeholder: d.placeholder,
|
|
24664
24646
|
searchable: d.searchable ?? !1,
|
|
24665
24647
|
usePortal: !1,
|
|
24666
|
-
value:
|
|
24648
|
+
value: fl(d)
|
|
24667
24649
|
})
|
|
24668
24650
|
})
|
|
24669
24651
|
]
|
|
24670
24652
|
}),
|
|
24671
24653
|
/* @__PURE__ */ r("div", {
|
|
24672
24654
|
className: "memobit-toolbar__actions",
|
|
24673
|
-
children: [i && /* @__PURE__ */ e(
|
|
24655
|
+
children: [i && /* @__PURE__ */ e(Zc, {
|
|
24674
24656
|
items: i.items,
|
|
24675
24657
|
buttonLabel: i.buttonLabel,
|
|
24676
24658
|
panelTitle: i.panelTitle,
|
|
24677
24659
|
emptyMessage: i.emptyMessage
|
|
24678
|
-
}), /* @__PURE__ */ e(
|
|
24660
|
+
}), /* @__PURE__ */ e(Tc, {
|
|
24679
24661
|
items: o,
|
|
24680
24662
|
disableResponsive: !0,
|
|
24681
24663
|
showLabel: !1
|
|
@@ -24683,7 +24665,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24683
24665
|
})
|
|
24684
24666
|
]
|
|
24685
24667
|
});
|
|
24686
|
-
},
|
|
24668
|
+
}, vi = ({ label: t, stepLabel: c, index: l, total: a, title: s, note: o, onPrev: i, onNext: n, onExit: d, width: h, className: m = "" }) => {
|
|
24687
24669
|
const p = h === void 0 ? void 0 : { "--tour-hud-width": typeof h == "number" ? `${h}px` : h };
|
|
24688
24670
|
return /* @__PURE__ */ r("div", {
|
|
24689
24671
|
className: [
|
|
@@ -24720,7 +24702,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24720
24702
|
className: "tour-hud__btn",
|
|
24721
24703
|
disabled: l === 0,
|
|
24722
24704
|
onClick: i,
|
|
24723
|
-
children: [/* @__PURE__ */ e(
|
|
24705
|
+
children: [/* @__PURE__ */ e(E, {
|
|
24724
24706
|
name: "arrow-left",
|
|
24725
24707
|
size: "sm"
|
|
24726
24708
|
}), "Prev"]
|
|
@@ -24730,7 +24712,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24730
24712
|
className: "tour-hud__btn",
|
|
24731
24713
|
disabled: l >= a - 1,
|
|
24732
24714
|
onClick: n,
|
|
24733
|
-
children: ["Next", /* @__PURE__ */ e(
|
|
24715
|
+
children: ["Next", /* @__PURE__ */ e(E, {
|
|
24734
24716
|
name: "arrow-right",
|
|
24735
24717
|
size: "sm"
|
|
24736
24718
|
})]
|
|
@@ -24744,7 +24726,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24744
24726
|
]
|
|
24745
24727
|
})]
|
|
24746
24728
|
});
|
|
24747
|
-
},
|
|
24729
|
+
}, Cl = ({ open: t }) => /* @__PURE__ */ e("svg", {
|
|
24748
24730
|
className: `tree__chevron ${t ? "tree__chevron--open" : ""}`,
|
|
24749
24731
|
viewBox: "0 0 16 16",
|
|
24750
24732
|
width: "12",
|
|
@@ -24758,7 +24740,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24758
24740
|
strokeLinejoin: "round"
|
|
24759
24741
|
})
|
|
24760
24742
|
}), I2 = ({ node: t, depth: c, selectable: l, showGuides: a, animated: s, selectedId: o, onSelect: i }) => {
|
|
24761
|
-
const [n, d] = z(t.defaultExpanded ?? !1), h = Array.isArray(t.children) && t.children.length > 0, m = l && o === t.id, p =
|
|
24743
|
+
const [n, d] = z(t.defaultExpanded ?? !1), h = Array.isArray(t.children) && t.children.length > 0, m = l && o === t.id, p = j((g) => {
|
|
24762
24744
|
t.disabled || "key" in g && g.key !== "Enter" && g.key !== " " || (h && d((w) => !w), l && i(t));
|
|
24763
24745
|
}, [
|
|
24764
24746
|
h,
|
|
@@ -24784,7 +24766,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24784
24766
|
}, w)),
|
|
24785
24767
|
/* @__PURE__ */ e("span", {
|
|
24786
24768
|
className: "tree__toggle",
|
|
24787
|
-
children: h ? /* @__PURE__ */ e(
|
|
24769
|
+
children: h ? /* @__PURE__ */ e(Cl, { open: n }) : /* @__PURE__ */ e("span", { className: "tree__leaf-dot" })
|
|
24788
24770
|
}),
|
|
24789
24771
|
t.icon && /* @__PURE__ */ e("span", {
|
|
24790
24772
|
className: "tree__icon",
|
|
@@ -24815,8 +24797,8 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24815
24797
|
onSelect: i
|
|
24816
24798
|
}, g.id))
|
|
24817
24799
|
})] });
|
|
24818
|
-
},
|
|
24819
|
-
const [n, d] = z(o), h =
|
|
24800
|
+
}, gi = ({ nodes: t, selectable: c = !1, onSelect: l, showGuides: a = !0, animated: s = !0, defaultSelectedId: o = null, className: i = "" }) => {
|
|
24801
|
+
const [n, d] = z(o), h = j((m) => {
|
|
24820
24802
|
m.disabled || (d(m.id), l?.(m));
|
|
24821
24803
|
}, [l]);
|
|
24822
24804
|
return /* @__PURE__ */ e("ul", {
|
|
@@ -24864,7 +24846,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24864
24846
|
color: "#FF4444",
|
|
24865
24847
|
percentage: 15
|
|
24866
24848
|
}
|
|
24867
|
-
],
|
|
24849
|
+
], yl = (t) => {
|
|
24868
24850
|
for (const c of S1) if (t <= c.max) return {
|
|
24869
24851
|
label: c.label,
|
|
24870
24852
|
color: c.color
|
|
@@ -24873,7 +24855,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24873
24855
|
label: S1[S1.length - 1].label,
|
|
24874
24856
|
color: S1[S1.length - 1].color
|
|
24875
24857
|
};
|
|
24876
|
-
},
|
|
24858
|
+
}, bl = (t) => {
|
|
24877
24859
|
const c = [
|
|
24878
24860
|
0,
|
|
24879
24861
|
0.4,
|
|
@@ -24888,8 +24870,8 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24888
24870
|
l += S1[a].percentage;
|
|
24889
24871
|
}
|
|
24890
24872
|
return 100;
|
|
24891
|
-
},
|
|
24892
|
-
const o = Math.round(t / c * 100) / 100, i =
|
|
24873
|
+
}, ui = ({ belly: t, height: c, isSimplified: l = !1, showLabels: a = !0, showIndicator: s = !0 }) => {
|
|
24874
|
+
const o = Math.round(t / c * 100) / 100, i = yl(o), n = bl(o), d = [
|
|
24893
24875
|
"<0.4",
|
|
24894
24876
|
"0.4-0.5",
|
|
24895
24877
|
"0.5-0.6",
|
|
@@ -24939,7 +24921,7 @@ var d2 = 10, oi = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24939
24921
|
]
|
|
24940
24922
|
});
|
|
24941
24923
|
}, j2 = w0(void 0);
|
|
24942
|
-
function
|
|
24924
|
+
function wi({ children: t, config: c }) {
|
|
24943
24925
|
const [l, a] = z(null), [s, o] = z(!0);
|
|
24944
24926
|
U(() => {
|
|
24945
24927
|
(async () => {
|
|
@@ -24964,7 +24946,7 @@ function fi({ children: t, config: c }) {
|
|
|
24964
24946
|
}
|
|
24965
24947
|
})();
|
|
24966
24948
|
}, [c.apiBaseUrl]);
|
|
24967
|
-
const i =
|
|
24949
|
+
const i = j(async (d) => {
|
|
24968
24950
|
o(!0);
|
|
24969
24951
|
try {
|
|
24970
24952
|
const h = await fetch(`${c.apiBaseUrl}/auth/login`, {
|
|
@@ -24992,7 +24974,7 @@ function fi({ children: t, config: c }) {
|
|
|
24992
24974
|
} finally {
|
|
24993
24975
|
o(!1);
|
|
24994
24976
|
}
|
|
24995
|
-
}, [c.apiBaseUrl]), n =
|
|
24977
|
+
}, [c.apiBaseUrl]), n = j(async () => {
|
|
24996
24978
|
try {
|
|
24997
24979
|
await fetch(`${c.apiBaseUrl}/auth/logout`, {
|
|
24998
24980
|
method: "POST",
|
|
@@ -25022,7 +25004,7 @@ var P2 = () => {
|
|
|
25022
25004
|
if (t === void 0) throw new Error("useAuth must be used within an AuthProvider");
|
|
25023
25005
|
return t;
|
|
25024
25006
|
};
|
|
25025
|
-
function
|
|
25007
|
+
function fi({ isOpen: t, onClose: c }) {
|
|
25026
25008
|
const { config: l } = P2(), [a, s] = z(""), [o, i] = z(""), [n, d] = z(""), [h, m] = z(""), [p, g] = z(!1), [w, v] = z(null);
|
|
25027
25009
|
U(() => {
|
|
25028
25010
|
t && (s(""), i(""), d(""), m(""));
|
|
@@ -25148,7 +25130,7 @@ function Ci({ isOpen: t, onClose: c }) {
|
|
|
25148
25130
|
})]
|
|
25149
25131
|
});
|
|
25150
25132
|
}
|
|
25151
|
-
function
|
|
25133
|
+
function Ci({ redirectPath: t = "/" }) {
|
|
25152
25134
|
const { login: c, config: l, isAuthenticated: a } = P2(), [s, o] = z(""), [i, n] = z(""), [d, h] = z(!1), [m, p] = z(""), [g, w] = z(!1), [v, u] = z(!1);
|
|
25153
25135
|
U(() => {
|
|
25154
25136
|
a && (window.location.href = t);
|
|
@@ -25276,11 +25258,11 @@ var g0 = class {
|
|
|
25276
25258
|
}
|
|
25277
25259
|
}
|
|
25278
25260
|
};
|
|
25279
|
-
function
|
|
25261
|
+
function yi(t, c) {
|
|
25280
25262
|
const l = {
|
|
25281
25263
|
pages: c.pages ?? {},
|
|
25282
25264
|
theme: c.theme
|
|
25283
|
-
}, [a, s] = z(() => g0.load(t, l)), o =
|
|
25265
|
+
}, [a, s] = z(() => g0.load(t, l)), o = j((h, m) => {
|
|
25284
25266
|
s((p) => {
|
|
25285
25267
|
const g = {
|
|
25286
25268
|
...p,
|
|
@@ -25291,7 +25273,7 @@ function bi(t, c) {
|
|
|
25291
25273
|
};
|
|
25292
25274
|
return g0.save(t, g), g;
|
|
25293
25275
|
});
|
|
25294
|
-
}, [t]), i =
|
|
25276
|
+
}, [t]), i = j((h) => {
|
|
25295
25277
|
s((m) => {
|
|
25296
25278
|
const p = {
|
|
25297
25279
|
...m,
|
|
@@ -25299,7 +25281,7 @@ function bi(t, c) {
|
|
|
25299
25281
|
};
|
|
25300
25282
|
return g0.save(t, p), p;
|
|
25301
25283
|
});
|
|
25302
|
-
}, [t]), n =
|
|
25284
|
+
}, [t]), n = j((h) => {
|
|
25303
25285
|
s((m) => {
|
|
25304
25286
|
const p = {
|
|
25305
25287
|
...m,
|
|
@@ -25310,7 +25292,7 @@ function bi(t, c) {
|
|
|
25310
25292
|
};
|
|
25311
25293
|
return g0.save(t, p), p;
|
|
25312
25294
|
});
|
|
25313
|
-
}, [t]), d =
|
|
25295
|
+
}, [t]), d = j(() => {
|
|
25314
25296
|
s(l), g0.clearAll(t);
|
|
25315
25297
|
}, [t]);
|
|
25316
25298
|
return {
|
|
@@ -25322,11 +25304,11 @@ function bi(t, c) {
|
|
|
25322
25304
|
clearAll: d
|
|
25323
25305
|
};
|
|
25324
25306
|
}
|
|
25325
|
-
var
|
|
25307
|
+
var bi = (t) => new Intl.NumberFormat("en-US", {
|
|
25326
25308
|
style: "currency",
|
|
25327
25309
|
currency: "USD",
|
|
25328
25310
|
minimumFractionDigits: 0
|
|
25329
|
-
}).format(t),
|
|
25311
|
+
}).format(t), xi = (t) => new Intl.NumberFormat("en-US", { minimumFractionDigits: 0 }).format(t), Mi = (t, c = 2) => {
|
|
25330
25312
|
if (!Number.isFinite(t) || t <= 0) return "0 B";
|
|
25331
25313
|
const l = [
|
|
25332
25314
|
"B",
|
|
@@ -25337,7 +25319,7 @@ var xi = (t) => new Intl.NumberFormat("en-US", {
|
|
|
25337
25319
|
"PB"
|
|
25338
25320
|
], a = Math.min(Math.floor(Math.log(t) / Math.log(1024)), l.length - 1), s = t / 1024 ** a, o = a === 0 ? 0 : c;
|
|
25339
25321
|
return `${s.toFixed(o)} ${l[a]}`;
|
|
25340
|
-
},
|
|
25322
|
+
}, xl = /[̀-ͯ]/g, W2 = (t) => t.normalize("NFD").replace(xl, "").toLowerCase(), Ml = (t) => {
|
|
25341
25323
|
let c = "";
|
|
25342
25324
|
const l = [];
|
|
25343
25325
|
for (let a = 0; a < t.length; a++) {
|
|
@@ -25350,11 +25332,11 @@ var xi = (t) => new Intl.NumberFormat("en-US", {
|
|
|
25350
25332
|
mapping: l
|
|
25351
25333
|
};
|
|
25352
25334
|
};
|
|
25353
|
-
function
|
|
25335
|
+
function ki(t, c) {
|
|
25354
25336
|
if (!c || !t) return t;
|
|
25355
25337
|
const l = W2(c);
|
|
25356
25338
|
if (!l) return t;
|
|
25357
|
-
const { folded: a, mapping: s } =
|
|
25339
|
+
const { folded: a, mapping: s } = Ml(t), o = [];
|
|
25358
25340
|
let i = 0;
|
|
25359
25341
|
for (; i <= a.length - l.length; ) {
|
|
25360
25342
|
const h = a.indexOf(l, i);
|
|
@@ -25369,7 +25351,7 @@ function _i(t, c) {
|
|
|
25369
25351
|
h > d && n.push(t.slice(d, h)), n.push(/* @__PURE__ */ e("mark", { children: t.slice(h, m) }, p)), d = m;
|
|
25370
25352
|
}), d < t.length && n.push(t.slice(d)), n;
|
|
25371
25353
|
}
|
|
25372
|
-
var
|
|
25354
|
+
var _i = (t, c, l) => {
|
|
25373
25355
|
if (t.length === 0) return !0;
|
|
25374
25356
|
const a = c.toLowerCase(), s = t.map((o) => o.toLowerCase());
|
|
25375
25357
|
switch (l) {
|
|
@@ -25380,18 +25362,18 @@ var Li = (t, c, l) => {
|
|
|
25380
25362
|
default:
|
|
25381
25363
|
throw new Error(`Invalid operator: ${l}. Use 'and' or 'or'.`);
|
|
25382
25364
|
}
|
|
25383
|
-
},
|
|
25365
|
+
}, Li = (t) => t.toLowerCase().replace(/ /g, "-").replace(/[^\w-]+/g, ""), zi = (t, c = 20, l = 20, a = "...") => {
|
|
25384
25366
|
if (!t || t.length === 0) return "";
|
|
25385
25367
|
const s = c + l + a.length;
|
|
25386
25368
|
return t.length <= s ? t : `${t.substring(0, c)}${a}${t.substring(t.length - l)}`;
|
|
25387
|
-
},
|
|
25369
|
+
}, Vi = (t, c = 100, l = "...") => !t || t.trim() === "" ? "" : t.length <= c ? t : t.substring(0, c).trim() + l, Ni = (t) => new URL(t).host, Hi = (t) => {
|
|
25388
25370
|
try {
|
|
25389
25371
|
const c = new URL(t.trim());
|
|
25390
25372
|
return c.search = "", c.hash = "", c.toString().replace(/\/$/, "");
|
|
25391
25373
|
} catch {
|
|
25392
25374
|
return t.trim();
|
|
25393
25375
|
}
|
|
25394
|
-
},
|
|
25376
|
+
}, kl = /* @__PURE__ */ new Set([
|
|
25395
25377
|
"gclid",
|
|
25396
25378
|
"gclsrc",
|
|
25397
25379
|
"gad_source",
|
|
@@ -25438,15 +25420,15 @@ var Li = (t, c, l) => {
|
|
|
25438
25420
|
"ref",
|
|
25439
25421
|
"referrer",
|
|
25440
25422
|
"source"
|
|
25441
|
-
]),
|
|
25423
|
+
]), Si = (t) => {
|
|
25442
25424
|
try {
|
|
25443
25425
|
const c = new URL(t.trim()), l = new URLSearchParams(c.search);
|
|
25444
|
-
for (const a of [...l.keys()])
|
|
25426
|
+
for (const a of [...l.keys()]) kl.has(a) && l.delete(a);
|
|
25445
25427
|
return c.search = l.toString(), c.hash = "", c.toString().replace(/\/$/, "");
|
|
25446
25428
|
} catch {
|
|
25447
25429
|
return t.trim();
|
|
25448
25430
|
}
|
|
25449
|
-
},
|
|
25431
|
+
}, _l = "1.0.17", Bi = 231, Ll = "64cf8ba", zl = "2026-07-01T14:08:46.911Z", Ri = "231", Vl = (t) => {
|
|
25450
25432
|
const c = document.getElementById("mb-version-toast");
|
|
25451
25433
|
if (c) {
|
|
25452
25434
|
c.remove();
|
|
@@ -25466,18 +25448,18 @@ var Li = (t, c, l) => {
|
|
|
25466
25448
|
"box-shadow:0 4px 16px rgba(0,0,0,0.35)",
|
|
25467
25449
|
"pointer-events:none"
|
|
25468
25450
|
].join(";"), l.textContent = `app ${t.app} (${t.commit}) - lib build ${t.libBuildNumber} - built ${t.buildDate}`, document.body.appendChild(l), setTimeout(() => l.remove(), 5e3);
|
|
25469
|
-
},
|
|
25451
|
+
}, Ai = (t) => {
|
|
25470
25452
|
const c = {
|
|
25471
25453
|
...t,
|
|
25472
|
-
lib:
|
|
25473
|
-
libBuildNumber:
|
|
25474
|
-
libCommit:
|
|
25475
|
-
libBuildDate:
|
|
25454
|
+
lib: _l,
|
|
25455
|
+
libBuildNumber: 231,
|
|
25456
|
+
libCommit: Ll,
|
|
25457
|
+
libBuildDate: zl
|
|
25476
25458
|
};
|
|
25477
25459
|
window.__VERSIONS__ = c, console.info(`%c build %c app ${c.app} (${c.commit}) - lib build ${c.libBuildNumber} - ${c.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) => {
|
|
25478
|
-
l.ctrlKey && l.altKey && (l.key === "v" || l.key === "V") && (l.preventDefault(),
|
|
25460
|
+
l.ctrlKey && l.altKey && (l.key === "v" || l.key === "V") && (l.preventDefault(), Vl(c));
|
|
25479
25461
|
});
|
|
25480
|
-
},
|
|
25462
|
+
}, Nl = /^[A-HJ-NPR-Z0-9]+$/, Hl = {
|
|
25481
25463
|
A: 1,
|
|
25482
25464
|
B: 2,
|
|
25483
25465
|
C: 3,
|
|
@@ -25501,7 +25483,7 @@ var Li = (t, c, l) => {
|
|
|
25501
25483
|
X: 7,
|
|
25502
25484
|
Y: 8,
|
|
25503
25485
|
Z: 9
|
|
25504
|
-
},
|
|
25486
|
+
}, Sl = [
|
|
25505
25487
|
8,
|
|
25506
25488
|
7,
|
|
25507
25489
|
6,
|
|
@@ -25519,20 +25501,20 @@ var Li = (t, c, l) => {
|
|
|
25519
25501
|
4,
|
|
25520
25502
|
3,
|
|
25521
25503
|
2
|
|
25522
|
-
],
|
|
25523
|
-
function
|
|
25524
|
-
return /\d/.test(t) ? parseInt(t, 10) :
|
|
25504
|
+
], Bl = /* @__PURE__ */ new Set("ABCDEFGHJKLMNPRSTVWXY123456789");
|
|
25505
|
+
function Rl(t) {
|
|
25506
|
+
return /\d/.test(t) ? parseInt(t, 10) : Hl[t] ?? 0;
|
|
25525
25507
|
}
|
|
25526
|
-
function
|
|
25527
|
-
const c = t.split("").reduce((a, s, o) => a +
|
|
25508
|
+
function Al(t) {
|
|
25509
|
+
const c = t.split("").reduce((a, s, o) => a + Rl(s) * Sl[o], 0) % 11, l = c === 10 ? "X" : String(c);
|
|
25528
25510
|
return t[8] === l;
|
|
25529
25511
|
}
|
|
25530
|
-
function
|
|
25512
|
+
function $i(t) {
|
|
25531
25513
|
const c = t.trim().toUpperCase();
|
|
25532
25514
|
return c.length !== 17 ? {
|
|
25533
25515
|
valid: !1,
|
|
25534
25516
|
error: "VIN must be exactly 17 characters"
|
|
25535
|
-
} :
|
|
25517
|
+
} : Nl.test(c) ? Bl.has(c[9]) ? Al(c) ? { valid: !0 } : {
|
|
25536
25518
|
valid: !1,
|
|
25537
25519
|
error: "VIN checksum is invalid"
|
|
25538
25520
|
} : {
|
|
@@ -25547,184 +25529,184 @@ export {
|
|
|
25547
25529
|
Kt as ADULT_RANGES,
|
|
25548
25530
|
ar as APP_DATE_FORMAT,
|
|
25549
25531
|
ir as APP_DATE_TIME_FORMAT,
|
|
25550
|
-
|
|
25551
|
-
|
|
25532
|
+
Zl as Accordion,
|
|
25533
|
+
Gl as AlertDialog,
|
|
25552
25534
|
M2 as AppHeader,
|
|
25553
25535
|
g0 as AppPersistenceStorage,
|
|
25554
25536
|
j2 as AuthContext,
|
|
25555
|
-
|
|
25556
|
-
|
|
25557
|
-
|
|
25558
|
-
|
|
25559
|
-
|
|
25560
|
-
|
|
25561
|
-
|
|
25562
|
-
|
|
25537
|
+
Ci as AuthLogin,
|
|
25538
|
+
wi as AuthProvider,
|
|
25539
|
+
El as AvatarInitials,
|
|
25540
|
+
Pl as BMI,
|
|
25541
|
+
Il as Badge,
|
|
25542
|
+
jl as Banner,
|
|
25543
|
+
Wl as Breadcrumb,
|
|
25544
|
+
Ul as BulkActionBar,
|
|
25563
25545
|
F as Button,
|
|
25564
25546
|
_0 as Calendar,
|
|
25565
|
-
|
|
25547
|
+
ca as CalendarHeatmap,
|
|
25566
25548
|
_2 as Card,
|
|
25567
|
-
|
|
25549
|
+
fi as ChangePasswordModal,
|
|
25568
25550
|
s0 as Checkbox,
|
|
25569
25551
|
i0 as Chip,
|
|
25570
|
-
|
|
25571
|
-
|
|
25572
|
-
|
|
25573
|
-
|
|
25574
|
-
|
|
25552
|
+
la as CollapsibleSection,
|
|
25553
|
+
aa as ColorPicker,
|
|
25554
|
+
ia as CommandPalette,
|
|
25555
|
+
na as Confetti,
|
|
25556
|
+
oa as ConfirmDialog,
|
|
25575
25557
|
Mr as ConfirmPopover,
|
|
25576
25558
|
kr as ContextMenu,
|
|
25577
|
-
|
|
25578
|
-
|
|
25579
|
-
|
|
25580
|
-
|
|
25581
|
-
|
|
25582
|
-
|
|
25583
|
-
|
|
25584
|
-
|
|
25559
|
+
ga as ControlPanel,
|
|
25560
|
+
pa as ControlPanelProvider,
|
|
25561
|
+
ua as CopyButton,
|
|
25562
|
+
wa as CountryWithFlag,
|
|
25563
|
+
Ca as DataView,
|
|
25564
|
+
Vr as DatePicker,
|
|
25565
|
+
ya as DateRangePicker,
|
|
25566
|
+
ba as DiffViewer,
|
|
25585
25567
|
A2 as Drawer,
|
|
25586
25568
|
y0 as Dropdown,
|
|
25587
|
-
|
|
25569
|
+
xa as EmojiPicker,
|
|
25588
25570
|
J1 as EmptyState,
|
|
25589
|
-
|
|
25590
|
-
|
|
25591
|
-
|
|
25592
|
-
|
|
25593
|
-
|
|
25594
|
-
|
|
25595
|
-
|
|
25596
|
-
|
|
25597
|
-
|
|
25598
|
-
|
|
25599
|
-
|
|
25600
|
-
|
|
25571
|
+
Ma as ErrorBoundary,
|
|
25572
|
+
ka as FileDropzone,
|
|
25573
|
+
Wr as Flag,
|
|
25574
|
+
_a as FloatButton,
|
|
25575
|
+
La as FolderBrowserModal,
|
|
25576
|
+
E as Icon,
|
|
25577
|
+
za as InfiniteScroll,
|
|
25578
|
+
Hr as InputDate,
|
|
25579
|
+
Va as InputEmail,
|
|
25580
|
+
Na as InputFile,
|
|
25581
|
+
Sc as InputMask,
|
|
25582
|
+
Ha as InputMaskPresets,
|
|
25601
25583
|
H1 as InputNumber,
|
|
25602
25584
|
k0 as InputPassword,
|
|
25603
|
-
|
|
25585
|
+
Ac as InputPhone,
|
|
25604
25586
|
e0 as InputSearch,
|
|
25605
25587
|
A1 as InputText,
|
|
25606
|
-
|
|
25607
|
-
|
|
25608
|
-
|
|
25609
|
-
|
|
25610
|
-
|
|
25611
|
-
|
|
25612
|
-
|
|
25613
|
-
|
|
25614
|
-
|
|
25615
|
-
|
|
25588
|
+
Sa as InputTextarea,
|
|
25589
|
+
Ba as InputTime,
|
|
25590
|
+
Ra as InputUrl,
|
|
25591
|
+
Aa as JourneyWizard,
|
|
25592
|
+
zl as LIB_BUILD_DATE,
|
|
25593
|
+
Ri as LIB_BUILD_ID,
|
|
25594
|
+
Bi as LIB_BUILD_NUMBER,
|
|
25595
|
+
Ll as LIB_COMMIT,
|
|
25596
|
+
_l as LIB_VERSION,
|
|
25597
|
+
$a as List,
|
|
25616
25598
|
$2 as Loading,
|
|
25617
|
-
|
|
25618
|
-
|
|
25619
|
-
|
|
25620
|
-
|
|
25599
|
+
Tc as MenuHamburger,
|
|
25600
|
+
nc as MiniSort,
|
|
25601
|
+
Ta as MiniStatsCard,
|
|
25602
|
+
Da as Minimap,
|
|
25621
25603
|
O1 as Modal,
|
|
25622
|
-
|
|
25623
|
-
|
|
25604
|
+
Za as NavBar,
|
|
25605
|
+
Zc as NotificationPanel,
|
|
25624
25606
|
Xt as PEDIATRIC_THRESHOLDS,
|
|
25625
25607
|
a2 as Pagination,
|
|
25626
|
-
|
|
25608
|
+
Ga as PieChart,
|
|
25627
25609
|
L2 as Popover,
|
|
25628
|
-
|
|
25629
|
-
|
|
25630
|
-
|
|
25631
|
-
|
|
25632
|
-
|
|
25633
|
-
|
|
25634
|
-
|
|
25635
|
-
|
|
25636
|
-
|
|
25637
|
-
|
|
25610
|
+
ja as ProgressBar,
|
|
25611
|
+
Pa as ProgressRing,
|
|
25612
|
+
Wa as QuantitySelector,
|
|
25613
|
+
Ua as QuickAdd,
|
|
25614
|
+
Fa as QuickNumberUpdate,
|
|
25615
|
+
qa as QuickOptionUpdate,
|
|
25616
|
+
Wc as Radio,
|
|
25617
|
+
Br as Rating,
|
|
25618
|
+
Ya as RichTextEditor,
|
|
25619
|
+
Xa as ScrollToTop,
|
|
25638
25620
|
a0 as Separator,
|
|
25639
|
-
|
|
25640
|
-
|
|
25641
|
-
|
|
25642
|
-
|
|
25643
|
-
|
|
25644
|
-
|
|
25645
|
-
|
|
25646
|
-
|
|
25647
|
-
|
|
25648
|
-
|
|
25621
|
+
Ja as Sidebar,
|
|
25622
|
+
Qa as SidebarProvider,
|
|
25623
|
+
ei as SignalStrength,
|
|
25624
|
+
ti as Skeleton,
|
|
25625
|
+
ri as Slider,
|
|
25626
|
+
ci as SplitPanel,
|
|
25627
|
+
li as StackedBar,
|
|
25628
|
+
ai as Stats,
|
|
25629
|
+
ii as StickyBar,
|
|
25630
|
+
ni as SuggestionsList,
|
|
25649
25631
|
o0 as THEME_CONFIGS,
|
|
25650
25632
|
y2 as ThemeContext,
|
|
25651
|
-
|
|
25652
|
-
|
|
25653
|
-
|
|
25654
|
-
|
|
25655
|
-
|
|
25656
|
-
|
|
25657
|
-
|
|
25633
|
+
si as ThemeProvider,
|
|
25634
|
+
oi as ThemeSettings,
|
|
25635
|
+
hi as Timeline,
|
|
25636
|
+
rc as TimelineMarkerDot,
|
|
25637
|
+
fa as TimelineMarkers,
|
|
25638
|
+
cc as TimelineMobileSeparator,
|
|
25639
|
+
di as TipsOfTheDay,
|
|
25658
25640
|
E2 as Toast,
|
|
25659
|
-
|
|
25660
|
-
|
|
25661
|
-
|
|
25641
|
+
ha as ToastContainer,
|
|
25642
|
+
da as ToastProvider,
|
|
25643
|
+
mi as ToggleButtons,
|
|
25662
25644
|
m2 as ToggleSwitch,
|
|
25663
|
-
|
|
25645
|
+
pi as Toolbar,
|
|
25664
25646
|
d1 as Tooltip,
|
|
25665
|
-
|
|
25666
|
-
|
|
25667
|
-
|
|
25668
|
-
|
|
25647
|
+
vi as TourHud,
|
|
25648
|
+
gi as Tree,
|
|
25649
|
+
ui as WHtR,
|
|
25650
|
+
ta as addDays,
|
|
25669
25651
|
u0 as addMonths,
|
|
25670
25652
|
m0 as breakpoints,
|
|
25671
25653
|
Jt as calculateBMI,
|
|
25672
25654
|
q0 as calculateTimelineMarkers,
|
|
25673
|
-
|
|
25674
|
-
|
|
25655
|
+
Uc as ensureHtml,
|
|
25656
|
+
Ni as extractDomainFromUrl,
|
|
25675
25657
|
c2 as foldDiacritics,
|
|
25676
25658
|
V0 as format2Digits,
|
|
25677
|
-
|
|
25678
|
-
|
|
25679
|
-
|
|
25680
|
-
|
|
25659
|
+
Xl as formatAppDate,
|
|
25660
|
+
Kl as formatAppDateTime,
|
|
25661
|
+
xi as formatBigNumber,
|
|
25662
|
+
Mi as formatBytes,
|
|
25681
25663
|
F1 as formatDate,
|
|
25682
|
-
|
|
25683
|
-
|
|
25684
|
-
|
|
25685
|
-
|
|
25686
|
-
|
|
25687
|
-
|
|
25688
|
-
|
|
25689
|
-
|
|
25664
|
+
Ol as formatDateLocale,
|
|
25665
|
+
Fl as formatDuration,
|
|
25666
|
+
bi as formatMoney,
|
|
25667
|
+
Ql as formatRelativeDuration,
|
|
25668
|
+
ra as formatRelativeTime,
|
|
25669
|
+
ql as formatSecondsToMediaTime,
|
|
25670
|
+
va as fuzzyMatch,
|
|
25671
|
+
ea as getDaysInMonth,
|
|
25690
25672
|
tr as getIndicatorColor,
|
|
25691
25673
|
er as getIndicatorPosition,
|
|
25692
25674
|
nr as getMonthMatrix,
|
|
25693
25675
|
Qt as getPediatricRanges,
|
|
25694
|
-
|
|
25695
|
-
|
|
25676
|
+
Ea as getPercent,
|
|
25677
|
+
Ia as getPercentsOf2Numbers,
|
|
25696
25678
|
rr as getRangeLabel,
|
|
25697
|
-
|
|
25698
|
-
|
|
25699
|
-
|
|
25700
|
-
|
|
25701
|
-
|
|
25702
|
-
|
|
25703
|
-
|
|
25679
|
+
Ur as getResultsCount,
|
|
25680
|
+
ml as getThemeConfig,
|
|
25681
|
+
Yl as getTodayDateString,
|
|
25682
|
+
ki as highlightText,
|
|
25683
|
+
qc as htmlToMarkdown,
|
|
25684
|
+
Fc as htmlToPlainText,
|
|
25685
|
+
Ai as initVersionInfo,
|
|
25704
25686
|
hr as isAfter,
|
|
25705
25687
|
A0 as isBefore,
|
|
25706
|
-
|
|
25688
|
+
Jl as isDateInRange,
|
|
25707
25689
|
U1 as isSameDay,
|
|
25708
25690
|
or as isToday,
|
|
25709
25691
|
sr as isWeekend,
|
|
25710
|
-
|
|
25711
|
-
|
|
25712
|
-
|
|
25713
|
-
|
|
25714
|
-
|
|
25715
|
-
|
|
25716
|
-
|
|
25717
|
-
|
|
25692
|
+
_i as matchStringsByLogicalOperator,
|
|
25693
|
+
zi as shortenText,
|
|
25694
|
+
Li as slugify,
|
|
25695
|
+
Oa as splitHtmlIntoSteps,
|
|
25696
|
+
Hi as stripQueryString,
|
|
25697
|
+
Si as stripTrackingParams,
|
|
25698
|
+
Vi as truncateText,
|
|
25699
|
+
yi as useAppPersistence,
|
|
25718
25700
|
P2 as useAuth,
|
|
25719
25701
|
C2 as useBodyScrollLock,
|
|
25720
25702
|
h0 as useBreakpoint,
|
|
25721
25703
|
x2 as useComponentEffect,
|
|
25722
|
-
|
|
25704
|
+
ma as useControlPanel,
|
|
25723
25705
|
F0 as useControlPanelContext,
|
|
25724
|
-
|
|
25725
|
-
|
|
25706
|
+
sa as usePopover,
|
|
25707
|
+
Ka as useSidebar,
|
|
25726
25708
|
b2 as useTheme,
|
|
25727
25709
|
_r as useToast,
|
|
25728
|
-
|
|
25729
|
-
|
|
25710
|
+
zc as validateEmail,
|
|
25711
|
+
$i as validateVin
|
|
25730
25712
|
};
|