@memobit/libs 1.0.45 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.esm.js +490 -469
- package/dist/version.json +4 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g1, { Component as k3, Fragment as _3, createContext as _0, forwardRef as z1, useCallback as Z, useContext as L0, useEffect as F, useId as z0, useImperativeHandle as B2, useLayoutEffect as m2, useMemo as u1, useRef as K, useState as z } from "react";
|
|
2
2
|
import { Fragment as n1, jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
3
|
import { createPortal as K1 } from "react-dom";
|
|
4
4
|
var L3 = /* @__PURE__ */ c("svg", {
|
|
@@ -9981,7 +9981,7 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
9981
9981
|
storm: ot,
|
|
9982
9982
|
uranus: qt,
|
|
9983
9983
|
venus: er
|
|
9984
|
-
},
|
|
9984
|
+
}, P = ({ className: t = "", fade: r, fadeOnHover: l, name: a, pulse: h, pulseOnHover: d, size: o, spin: m, spinOnHover: i, variant: n }) => /* @__PURE__ */ e("span", {
|
|
9985
9985
|
className: [
|
|
9986
9986
|
"icon",
|
|
9987
9987
|
o ? `icon--${o}` : "",
|
|
@@ -10017,7 +10017,7 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
10017
10017
|
})
|
|
10018
10018
|
});
|
|
10019
10019
|
}, Cr = ({ id: t, title: r, icon: l, content: a, isExpanded: h, disabled: d = !1, onToggle: o }) => {
|
|
10020
|
-
const m =
|
|
10020
|
+
const m = K(null), i = K(!0);
|
|
10021
10021
|
return F(() => {
|
|
10022
10022
|
const s = m.current;
|
|
10023
10023
|
if (s) {
|
|
@@ -10045,13 +10045,13 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
10045
10045
|
disabled: d,
|
|
10046
10046
|
children: [/* @__PURE__ */ c("span", {
|
|
10047
10047
|
className: "accordion-item__title",
|
|
10048
|
-
children: [l && /* @__PURE__ */ e(
|
|
10048
|
+
children: [l && /* @__PURE__ */ e(P, { name: l }), /* @__PURE__ */ e("span", {
|
|
10049
10049
|
className: "accordion-item__title-text",
|
|
10050
10050
|
children: r
|
|
10051
10051
|
})]
|
|
10052
10052
|
}), /* @__PURE__ */ e("span", {
|
|
10053
10053
|
className: "accordion-item__icon",
|
|
10054
|
-
children: /* @__PURE__ */ e(
|
|
10054
|
+
children: /* @__PURE__ */ e(P, {
|
|
10055
10055
|
name: "caret-down",
|
|
10056
10056
|
size: "md"
|
|
10057
10057
|
})
|
|
@@ -10066,7 +10066,7 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
10066
10066
|
})]
|
|
10067
10067
|
});
|
|
10068
10068
|
}, $2 = (t) => {
|
|
10069
|
-
const r =
|
|
10069
|
+
const r = K(null);
|
|
10070
10070
|
F(() => {
|
|
10071
10071
|
const l = () => {
|
|
10072
10072
|
if (!r.current) return;
|
|
@@ -10098,7 +10098,7 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
10098
10098
|
}, T2 = (t) => {
|
|
10099
10099
|
const { effects: r } = D2();
|
|
10100
10100
|
return r.effect && r.components.includes(t) ? r.effect : "";
|
|
10101
|
-
}, T =
|
|
10101
|
+
}, T = g1.forwardRef(({ borders: t = "rounded", children: r, className: l, disabled: a = !1, fullWidth: h = !1, icon: d, iconVariant: o = "default", loading: m = !1, onClick: i, emojiIcon: n, size: s = "medium", style: p, sufixIcon: u, title: g, type: v = "button", variant: w = "default" }, f) => /* @__PURE__ */ e("button", {
|
|
10102
10102
|
ref: f,
|
|
10103
10103
|
className: `button button-${s} button-${w} ${t === "rounded" ? "button-rounded" : ""} ${h ? "is-full-width" : ""} ${l || ""}`,
|
|
10104
10104
|
disabled: a,
|
|
@@ -10107,14 +10107,14 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
10107
10107
|
title: g,
|
|
10108
10108
|
type: v,
|
|
10109
10109
|
children: m ? /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("span", { className: "button__spinner" }), /* @__PURE__ */ e("span", { children: r || "Loading..." })] }) : /* @__PURE__ */ c(n1, { children: [
|
|
10110
|
-
d !== void 0 && (typeof d == "string" ? /* @__PURE__ */ e(
|
|
10110
|
+
d !== void 0 && (typeof d == "string" ? /* @__PURE__ */ e(P, {
|
|
10111
10111
|
size: "lg",
|
|
10112
10112
|
name: d,
|
|
10113
10113
|
variant: o
|
|
10114
10114
|
}) : d),
|
|
10115
10115
|
n && /* @__PURE__ */ e("span", { children: n }),
|
|
10116
10116
|
r && /* @__PURE__ */ e("span", { children: r }),
|
|
10117
|
-
u !== void 0 && (typeof u == "string" ? /* @__PURE__ */ e(
|
|
10117
|
+
u !== void 0 && (typeof u == "string" ? /* @__PURE__ */ e(P, {
|
|
10118
10118
|
size: "lg",
|
|
10119
10119
|
name: u,
|
|
10120
10120
|
variant: o
|
|
@@ -10122,17 +10122,94 @@ var L3 = /* @__PURE__ */ c("svg", {
|
|
|
10122
10122
|
] })
|
|
10123
10123
|
}));
|
|
10124
10124
|
T.displayName = "Button";
|
|
10125
|
-
var
|
|
10125
|
+
var X = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled: h = !1, className: d = "", maxWidth: o, maxHeight: m }) => {
|
|
10126
|
+
const [i, n] = z(!1), [s, p] = z({
|
|
10127
|
+
top: 0,
|
|
10128
|
+
left: 0
|
|
10129
|
+
}), u = K(null), g = K(null), v = K(null), w = K(null), f = K(!1), y = m !== void 0, b = y ? 150 : 0, C = () => {
|
|
10130
|
+
if (!v.current || !w.current) return;
|
|
10131
|
+
const V = v.current.firstElementChild, S = V && V.getBoundingClientRect().width > 0 ? V.getBoundingClientRect() : v.current.getBoundingClientRect(), _ = w.current.getBoundingClientRect(), R = 8;
|
|
10132
|
+
let B = 0, E = 0;
|
|
10133
|
+
switch (r) {
|
|
10134
|
+
case "top":
|
|
10135
|
+
B = S.top - _.height - R, E = S.left + S.width / 2 - _.width / 2;
|
|
10136
|
+
break;
|
|
10137
|
+
case "bottom":
|
|
10138
|
+
B = S.bottom + R, E = S.left + S.width / 2 - _.width / 2;
|
|
10139
|
+
break;
|
|
10140
|
+
case "left":
|
|
10141
|
+
B = S.top + S.height / 2 - _.height / 2, E = S.left - _.width - R;
|
|
10142
|
+
break;
|
|
10143
|
+
case "right":
|
|
10144
|
+
B = S.top + S.height / 2 - _.height / 2, E = S.right + R;
|
|
10145
|
+
break;
|
|
10146
|
+
}
|
|
10147
|
+
const O = 8;
|
|
10148
|
+
E < O && (E = O), E + _.width > window.innerWidth - O && (E = window.innerWidth - _.width - O), B < O && (B = O), B + _.height > window.innerHeight - O && (B = window.innerHeight - _.height - O), p({
|
|
10149
|
+
top: B,
|
|
10150
|
+
left: E
|
|
10151
|
+
});
|
|
10152
|
+
}, x = () => {
|
|
10153
|
+
h || f.current || (g.current && (clearTimeout(g.current), g.current = null), u.current = setTimeout(() => {
|
|
10154
|
+
n(!0);
|
|
10155
|
+
}, l));
|
|
10156
|
+
}, k = () => {
|
|
10157
|
+
f.current || (u.current && clearTimeout(u.current), b > 0 ? g.current = setTimeout(() => n(!1), b) : n(!1));
|
|
10158
|
+
}, H = (V) => {
|
|
10159
|
+
V.pointerType !== "touch" && V.pointerType !== "pen" || h || (f.current = !0, u.current && (clearTimeout(u.current), u.current = null), V.stopPropagation(), n((S) => !S));
|
|
10160
|
+
};
|
|
10161
|
+
F(() => (i && (C(), window.addEventListener("scroll", C, !0), window.addEventListener("resize", C)), () => {
|
|
10162
|
+
window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C);
|
|
10163
|
+
}), [i]), F(() => {
|
|
10164
|
+
if (!i) return;
|
|
10165
|
+
const V = (S) => {
|
|
10166
|
+
v.current?.contains(S.target) || w.current?.contains(S.target) || n(!1);
|
|
10167
|
+
};
|
|
10168
|
+
return document.addEventListener("pointerdown", V), () => {
|
|
10169
|
+
document.removeEventListener("pointerdown", V), f.current = !1;
|
|
10170
|
+
};
|
|
10171
|
+
}, [i]), F(() => () => {
|
|
10172
|
+
u.current && clearTimeout(u.current), g.current && clearTimeout(g.current);
|
|
10173
|
+
}, []);
|
|
10174
|
+
const L = () => {
|
|
10175
|
+
y && g.current && (clearTimeout(g.current), g.current = null);
|
|
10176
|
+
}, M = () => {
|
|
10177
|
+
y && (g.current = setTimeout(() => n(!1), b));
|
|
10178
|
+
};
|
|
10179
|
+
return /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("span", {
|
|
10180
|
+
ref: v,
|
|
10181
|
+
className: "tooltip-trigger",
|
|
10182
|
+
onMouseEnter: x,
|
|
10183
|
+
onMouseLeave: k,
|
|
10184
|
+
onFocus: x,
|
|
10185
|
+
onBlur: k,
|
|
10186
|
+
onPointerDown: H,
|
|
10187
|
+
children: a
|
|
10188
|
+
}), i && t && K1(/* @__PURE__ */ c("div", {
|
|
10189
|
+
ref: w,
|
|
10190
|
+
className: `tooltip tooltip--${r} ${y ? "tooltip--scrollable" : ""} ${d}`,
|
|
10191
|
+
style: {
|
|
10192
|
+
top: `${s.top}px`,
|
|
10193
|
+
left: `${s.left}px`,
|
|
10194
|
+
...o !== void 0 && { maxWidth: typeof o == "number" ? `${o}px` : o },
|
|
10195
|
+
...m !== void 0 && { maxHeight: typeof m == "number" ? `${m}px` : m }
|
|
10196
|
+
},
|
|
10197
|
+
onMouseEnter: L,
|
|
10198
|
+
onMouseLeave: M,
|
|
10199
|
+
children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${r}` })]
|
|
10200
|
+
}), document.body)] });
|
|
10201
|
+
}, W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h, onOverlayClick: d, primary: o, secondary: m, size: i = "auto", tertiary: n, title: s, titleIcon: p, usePortal: u = !1 }) => {
|
|
10126
10202
|
const g = T2("Modal");
|
|
10127
10203
|
$2(l);
|
|
10128
|
-
const v =
|
|
10204
|
+
const v = K(null), w = K(null);
|
|
10129
10205
|
if (F(() => {
|
|
10206
|
+
if (!l) return;
|
|
10130
10207
|
const b = (C) => {
|
|
10131
|
-
C.key
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
document.removeEventListener("keydown", b);
|
|
10208
|
+
if (C.key !== "Escape" || !h) return;
|
|
10209
|
+
const x = document.querySelectorAll(".modal-overlay");
|
|
10210
|
+
x[x.length - 1] === w.current && (C.stopPropagation(), h());
|
|
10135
10211
|
};
|
|
10212
|
+
return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
|
|
10136
10213
|
}, [l, h]), !l) return null;
|
|
10137
10214
|
const f = o || m || n, y = /* @__PURE__ */ e("div", {
|
|
10138
10215
|
ref: w,
|
|
@@ -10146,16 +10223,18 @@ var W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h,
|
|
|
10146
10223
|
/* @__PURE__ */ c("div", {
|
|
10147
10224
|
className: "modal__header",
|
|
10148
10225
|
children: [/* @__PURE__ */ c("h2", { children: [
|
|
10149
|
-
p ? /* @__PURE__ */ e(
|
|
10226
|
+
p ? /* @__PURE__ */ e(P, { name: p }) : null,
|
|
10150
10227
|
" ",
|
|
10151
10228
|
s
|
|
10152
|
-
] }), /* @__PURE__ */ e(
|
|
10153
|
-
className: "modal__close",
|
|
10154
|
-
icon: "clear",
|
|
10155
|
-
onClick: h,
|
|
10156
|
-
size: "medium",
|
|
10229
|
+
] }), /* @__PURE__ */ e(X, {
|
|
10157
10230
|
title: "Close modal",
|
|
10158
|
-
|
|
10231
|
+
children: /* @__PURE__ */ e(T, {
|
|
10232
|
+
className: "modal__close",
|
|
10233
|
+
icon: "clear",
|
|
10234
|
+
onClick: h,
|
|
10235
|
+
size: "medium",
|
|
10236
|
+
variant: "ghost"
|
|
10237
|
+
})
|
|
10159
10238
|
})]
|
|
10160
10239
|
}),
|
|
10161
10240
|
t != null && /* @__PURE__ */ e("div", {
|
|
@@ -10258,7 +10337,7 @@ var W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h,
|
|
|
10258
10337
|
}),
|
|
10259
10338
|
r && /* @__PURE__ */ e("span", {
|
|
10260
10339
|
className: "app-header__icon",
|
|
10261
|
-
children: /* @__PURE__ */ e(
|
|
10340
|
+
children: /* @__PURE__ */ e(P, { name: r })
|
|
10262
10341
|
}),
|
|
10263
10342
|
/* @__PURE__ */ c("div", {
|
|
10264
10343
|
className: "app-header__copy",
|
|
@@ -10349,92 +10428,18 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10349
10428
|
onKeyDown: o ? (u) => {
|
|
10350
10429
|
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), o(u));
|
|
10351
10430
|
} : void 0,
|
|
10352
|
-
children: [r, m && /* @__PURE__ */ e(
|
|
10353
|
-
className: "badge__clear",
|
|
10354
|
-
onClick: (u) => {
|
|
10355
|
-
u.stopPropagation(), m();
|
|
10356
|
-
},
|
|
10357
|
-
type: "button",
|
|
10431
|
+
children: [r, m && /* @__PURE__ */ e(X, {
|
|
10358
10432
|
title: "Remove",
|
|
10359
|
-
children: "
|
|
10433
|
+
children: /* @__PURE__ */ e("button", {
|
|
10434
|
+
className: "badge__clear",
|
|
10435
|
+
onClick: (u) => {
|
|
10436
|
+
u.stopPropagation(), m();
|
|
10437
|
+
},
|
|
10438
|
+
type: "button",
|
|
10439
|
+
children: "×"
|
|
10440
|
+
})
|
|
10360
10441
|
})]
|
|
10361
10442
|
});
|
|
10362
|
-
}, J = ({ title: t, position: r = "top", delay: l = 200, children: a, disabled: h = !1, className: d = "", maxWidth: o, maxHeight: m }) => {
|
|
10363
|
-
const [i, n] = z(!1), [s, p] = z({
|
|
10364
|
-
top: 0,
|
|
10365
|
-
left: 0
|
|
10366
|
-
}), u = X(null), g = X(null), v = X(null), w = X(null), f = X(!1), y = m !== void 0, b = y ? 150 : 0, C = () => {
|
|
10367
|
-
if (!v.current || !w.current) return;
|
|
10368
|
-
const V = v.current.firstElementChild, S = V && V.getBoundingClientRect().width > 0 ? V.getBoundingClientRect() : v.current.getBoundingClientRect(), _ = w.current.getBoundingClientRect(), R = 8;
|
|
10369
|
-
let B = 0, E = 0;
|
|
10370
|
-
switch (r) {
|
|
10371
|
-
case "top":
|
|
10372
|
-
B = S.top - _.height - R, E = S.left + S.width / 2 - _.width / 2;
|
|
10373
|
-
break;
|
|
10374
|
-
case "bottom":
|
|
10375
|
-
B = S.bottom + R, E = S.left + S.width / 2 - _.width / 2;
|
|
10376
|
-
break;
|
|
10377
|
-
case "left":
|
|
10378
|
-
B = S.top + S.height / 2 - _.height / 2, E = S.left - _.width - R;
|
|
10379
|
-
break;
|
|
10380
|
-
case "right":
|
|
10381
|
-
B = S.top + S.height / 2 - _.height / 2, E = S.right + R;
|
|
10382
|
-
break;
|
|
10383
|
-
}
|
|
10384
|
-
const O = 8;
|
|
10385
|
-
E < O && (E = O), E + _.width > window.innerWidth - O && (E = window.innerWidth - _.width - O), B < O && (B = O), B + _.height > window.innerHeight - O && (B = window.innerHeight - _.height - O), p({
|
|
10386
|
-
top: B,
|
|
10387
|
-
left: E
|
|
10388
|
-
});
|
|
10389
|
-
}, x = () => {
|
|
10390
|
-
h || f.current || (g.current && (clearTimeout(g.current), g.current = null), u.current = setTimeout(() => {
|
|
10391
|
-
n(!0);
|
|
10392
|
-
}, l));
|
|
10393
|
-
}, k = () => {
|
|
10394
|
-
f.current || (u.current && clearTimeout(u.current), b > 0 ? g.current = setTimeout(() => n(!1), b) : n(!1));
|
|
10395
|
-
}, H = (V) => {
|
|
10396
|
-
V.pointerType !== "touch" && V.pointerType !== "pen" || h || (f.current = !0, u.current && (clearTimeout(u.current), u.current = null), V.stopPropagation(), n((S) => !S));
|
|
10397
|
-
};
|
|
10398
|
-
F(() => (i && (C(), window.addEventListener("scroll", C, !0), window.addEventListener("resize", C)), () => {
|
|
10399
|
-
window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C);
|
|
10400
|
-
}), [i]), F(() => {
|
|
10401
|
-
if (!i) return;
|
|
10402
|
-
const V = (S) => {
|
|
10403
|
-
v.current?.contains(S.target) || w.current?.contains(S.target) || n(!1);
|
|
10404
|
-
};
|
|
10405
|
-
return document.addEventListener("pointerdown", V), () => {
|
|
10406
|
-
document.removeEventListener("pointerdown", V), f.current = !1;
|
|
10407
|
-
};
|
|
10408
|
-
}, [i]), F(() => () => {
|
|
10409
|
-
u.current && clearTimeout(u.current), g.current && clearTimeout(g.current);
|
|
10410
|
-
}, []);
|
|
10411
|
-
const L = () => {
|
|
10412
|
-
y && g.current && (clearTimeout(g.current), g.current = null);
|
|
10413
|
-
}, M = () => {
|
|
10414
|
-
y && (g.current = setTimeout(() => n(!1), b));
|
|
10415
|
-
};
|
|
10416
|
-
return /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("span", {
|
|
10417
|
-
ref: v,
|
|
10418
|
-
className: "tooltip-trigger",
|
|
10419
|
-
onMouseEnter: x,
|
|
10420
|
-
onMouseLeave: k,
|
|
10421
|
-
onFocus: x,
|
|
10422
|
-
onBlur: k,
|
|
10423
|
-
onPointerDown: H,
|
|
10424
|
-
children: a
|
|
10425
|
-
}), i && t && K1(/* @__PURE__ */ c("div", {
|
|
10426
|
-
ref: w,
|
|
10427
|
-
className: `tooltip tooltip--${r} ${y ? "tooltip--scrollable" : ""} ${d}`,
|
|
10428
|
-
style: {
|
|
10429
|
-
top: `${s.top}px`,
|
|
10430
|
-
left: `${s.left}px`,
|
|
10431
|
-
...o !== void 0 && { maxWidth: typeof o == "number" ? `${o}px` : o },
|
|
10432
|
-
...m !== void 0 && { maxHeight: typeof m == "number" ? `${m}px` : m }
|
|
10433
|
-
},
|
|
10434
|
-
onMouseEnter: L,
|
|
10435
|
-
onMouseLeave: M,
|
|
10436
|
-
children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${r}` })]
|
|
10437
|
-
}), document.body)] });
|
|
10438
10443
|
}, La = ({ action: t, secondaryAction: r, className: l = "", description: a, dismissLabel: h = "Dismiss", onDismiss: d, showDismiss: o = !0, title: m, variant: i = "default" }) => {
|
|
10439
10444
|
const [n, s] = z(!1), p = t?.variant || (i === "default" ? "default" : i);
|
|
10440
10445
|
if (n) return null;
|
|
@@ -10468,13 +10473,13 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10468
10473
|
children: r.text
|
|
10469
10474
|
})]
|
|
10470
10475
|
})]
|
|
10471
|
-
}), o && /* @__PURE__ */ e(
|
|
10476
|
+
}), o && /* @__PURE__ */ e(X, {
|
|
10472
10477
|
title: h,
|
|
10473
10478
|
children: /* @__PURE__ */ e("button", {
|
|
10474
10479
|
className: "banner__dismiss",
|
|
10475
10480
|
type: "button",
|
|
10476
10481
|
onClick: u,
|
|
10477
|
-
children: /* @__PURE__ */ e(
|
|
10482
|
+
children: /* @__PURE__ */ e(P, {
|
|
10478
10483
|
name: "clear",
|
|
10479
10484
|
size: "sm"
|
|
10480
10485
|
})
|
|
@@ -10962,7 +10967,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10962
10967
|
}), [y, b] = z("days"), [C, x] = z(() => {
|
|
10963
10968
|
const A = (s ?? w).getFullYear();
|
|
10964
10969
|
return Math.floor(A / O1) * O1;
|
|
10965
|
-
}), [k, H] = z(null), L = s ?? w, M = g ?? k, V =
|
|
10970
|
+
}), [k, H] = z(null), L = s ?? w, M = g ?? k, V = u1(() => Br(L.getFullYear(), L.getMonth(), o), [L, o]), S = o === 1 ? Tr : Dr, _ = (A) => a && j0(A, a) || h && Er(A, h) ? !0 : d ? typeof d == "function" ? d(A) : d.some((j) => q1(j, A)) : !1, R = (A) => {
|
|
10966
10971
|
if (!t) return !1;
|
|
10967
10972
|
if (l === "single" && t instanceof Date) return q1(A, t);
|
|
10968
10973
|
if (l === "range") {
|
|
@@ -11008,7 +11013,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11008
11013
|
u && b("months");
|
|
11009
11014
|
}, D = () => {
|
|
11010
11015
|
u && (x(Math.floor(L.getFullYear() / O1) * O1), b("years"));
|
|
11011
|
-
},
|
|
11016
|
+
}, J = (A) => {
|
|
11012
11017
|
const j = new Date(L.getFullYear(), A, 1);
|
|
11013
11018
|
p ? p(j) : f(j), b("days");
|
|
11014
11019
|
}, h1 = (A) => {
|
|
@@ -11034,7 +11039,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11034
11039
|
}, I1 = () => y === "years" ? /* @__PURE__ */ c("div", {
|
|
11035
11040
|
className: "calendar__header",
|
|
11036
11041
|
children: [
|
|
11037
|
-
/* @__PURE__ */ e(
|
|
11042
|
+
/* @__PURE__ */ e(X, {
|
|
11038
11043
|
title: "Previous years",
|
|
11039
11044
|
children: /* @__PURE__ */ e("button", {
|
|
11040
11045
|
type: "button",
|
|
@@ -11051,7 +11056,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11051
11056
|
C + O1 - 1
|
|
11052
11057
|
]
|
|
11053
11058
|
}),
|
|
11054
|
-
/* @__PURE__ */ e(
|
|
11059
|
+
/* @__PURE__ */ e(X, {
|
|
11055
11060
|
title: "Next years",
|
|
11056
11061
|
children: /* @__PURE__ */ e("button", {
|
|
11057
11062
|
type: "button",
|
|
@@ -11064,7 +11069,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11064
11069
|
}) : y === "months" ? /* @__PURE__ */ c("div", {
|
|
11065
11070
|
className: "calendar__header",
|
|
11066
11071
|
children: [
|
|
11067
|
-
/* @__PURE__ */ e(
|
|
11072
|
+
/* @__PURE__ */ e(X, {
|
|
11068
11073
|
title: "Previous year",
|
|
11069
11074
|
children: /* @__PURE__ */ e("button", {
|
|
11070
11075
|
type: "button",
|
|
@@ -11079,7 +11084,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11079
11084
|
onClick: D,
|
|
11080
11085
|
children: L.getFullYear()
|
|
11081
11086
|
}),
|
|
11082
|
-
/* @__PURE__ */ e(
|
|
11087
|
+
/* @__PURE__ */ e(X, {
|
|
11083
11088
|
title: "Next year",
|
|
11084
11089
|
children: /* @__PURE__ */ e("button", {
|
|
11085
11090
|
type: "button",
|
|
@@ -11092,7 +11097,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11092
11097
|
}) : /* @__PURE__ */ c("div", {
|
|
11093
11098
|
className: "calendar__header",
|
|
11094
11099
|
children: [
|
|
11095
|
-
/* @__PURE__ */ e(
|
|
11100
|
+
/* @__PURE__ */ e(X, {
|
|
11096
11101
|
title: "Previous month",
|
|
11097
11102
|
children: /* @__PURE__ */ e("button", {
|
|
11098
11103
|
type: "button",
|
|
@@ -11118,7 +11123,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11118
11123
|
children: L.getFullYear()
|
|
11119
11124
|
})] })
|
|
11120
11125
|
}),
|
|
11121
|
-
/* @__PURE__ */ e(
|
|
11126
|
+
/* @__PURE__ */ e(X, {
|
|
11122
11127
|
title: "Next month",
|
|
11123
11128
|
children: /* @__PURE__ */ e("button", {
|
|
11124
11129
|
type: "button",
|
|
@@ -11146,7 +11151,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11146
11151
|
children: W0.map((x1, M1) => /* @__PURE__ */ e("button", {
|
|
11147
11152
|
type: "button",
|
|
11148
11153
|
className: `calendar__month-item ${M1 === a1 && m1 === L.getFullYear() ? "calendar__month-item--selected" : ""} ${M1 === A && j === L.getFullYear() ? "calendar__month-item--current" : ""}`,
|
|
11149
|
-
onClick: () =>
|
|
11154
|
+
onClick: () => J(M1),
|
|
11150
11155
|
children: x1.substring(0, 3)
|
|
11151
11156
|
}, x1))
|
|
11152
11157
|
});
|
|
@@ -11288,13 +11293,13 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11288
11293
|
className: `${u ? "card-content-hidden" : ""}`,
|
|
11289
11294
|
children: [/* @__PURE__ */ c("span", {
|
|
11290
11295
|
className: "card-title-content",
|
|
11291
|
-
children: [a && /* @__PURE__ */ e(
|
|
11296
|
+
children: [a && /* @__PURE__ */ e(P, { name: a }), s]
|
|
11292
11297
|
}), d && /* @__PURE__ */ e("span", {
|
|
11293
11298
|
className: "collapsible-button",
|
|
11294
11299
|
onClick: () => g(!u),
|
|
11295
11300
|
children: /* @__PURE__ */ e("span", {
|
|
11296
11301
|
className: `opener-button ${u ? "opener-button-extended" : ""}`,
|
|
11297
|
-
children: /* @__PURE__ */ e(
|
|
11302
|
+
children: /* @__PURE__ */ e(P, {
|
|
11298
11303
|
name: "caret-up",
|
|
11299
11304
|
size: "lg"
|
|
11300
11305
|
})
|
|
@@ -11312,7 +11317,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11312
11317
|
]
|
|
11313
11318
|
});
|
|
11314
11319
|
}, c0 = ({ checked: t = !1, onChange: r, label: l, icon: a, disabled: h = !1, id: d, indeterminate: o = !1 }) => {
|
|
11315
|
-
const m = z0(), i = d || m, n =
|
|
11320
|
+
const m = z0(), i = d || m, n = K(null);
|
|
11316
11321
|
return F(() => {
|
|
11317
11322
|
n.current && (n.current.indeterminate = o && !t);
|
|
11318
11323
|
}, [o, t]), /* @__PURE__ */ c("div", {
|
|
@@ -11330,7 +11335,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11330
11335
|
className: "checkbox-label",
|
|
11331
11336
|
children: [/* @__PURE__ */ e("span", { className: "checkbox-box" }), (a || l) && /* @__PURE__ */ c("span", {
|
|
11332
11337
|
className: "checkbox-text",
|
|
11333
|
-
children: [a && /* @__PURE__ */ e(
|
|
11338
|
+
children: [a && /* @__PURE__ */ e(P, { name: a }), l && /* @__PURE__ */ e("span", {
|
|
11334
11339
|
className: "checkbox-text-label",
|
|
11335
11340
|
children: l
|
|
11336
11341
|
})]
|
|
@@ -11349,7 +11354,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11349
11354
|
className: "chip__swatch",
|
|
11350
11355
|
style: { backgroundColor: l }
|
|
11351
11356
|
}),
|
|
11352
|
-
d && /* @__PURE__ */ e(
|
|
11357
|
+
d && /* @__PURE__ */ e(P, { name: d }),
|
|
11353
11358
|
/* @__PURE__ */ e("span", {
|
|
11354
11359
|
className: "chip__label",
|
|
11355
11360
|
children: t
|
|
@@ -11373,7 +11378,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11373
11378
|
/* @__PURE__ */ c("div", {
|
|
11374
11379
|
className: "collapsible-section__label",
|
|
11375
11380
|
children: [
|
|
11376
|
-
a && /* @__PURE__ */ e(
|
|
11381
|
+
a && /* @__PURE__ */ e(P, {
|
|
11377
11382
|
name: a,
|
|
11378
11383
|
variant: w
|
|
11379
11384
|
}),
|
|
@@ -11381,10 +11386,10 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11381
11386
|
m
|
|
11382
11387
|
]
|
|
11383
11388
|
}),
|
|
11384
|
-
s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
11389
|
+
s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(P, { name: s }) }),
|
|
11385
11390
|
/* @__PURE__ */ e("span", {
|
|
11386
11391
|
className: `collapsible-section__icon ${x ? "collapsible-section__icon--collapsed" : ""}`,
|
|
11387
|
-
children: /* @__PURE__ */ e(
|
|
11392
|
+
children: /* @__PURE__ */ e(P, { name: "caret-up" })
|
|
11388
11393
|
}),
|
|
11389
11394
|
/* @__PURE__ */ e("span", {
|
|
11390
11395
|
className: "collapsible-section__right-details",
|
|
@@ -11398,7 +11403,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11398
11403
|
/* @__PURE__ */ c("span", {
|
|
11399
11404
|
className: "collapsible-section__label",
|
|
11400
11405
|
children: [
|
|
11401
|
-
a && /* @__PURE__ */ e(
|
|
11406
|
+
a && /* @__PURE__ */ e(P, {
|
|
11402
11407
|
name: a,
|
|
11403
11408
|
variant: w
|
|
11404
11409
|
}),
|
|
@@ -11406,10 +11411,10 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11406
11411
|
m
|
|
11407
11412
|
]
|
|
11408
11413
|
}),
|
|
11409
|
-
s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
11414
|
+
s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(P, { name: s }) }),
|
|
11410
11415
|
/* @__PURE__ */ e("span", {
|
|
11411
11416
|
className: `collapsible-section__icon ${x ? "collapsible-section__icon--collapsed" : ""}`,
|
|
11412
|
-
children: /* @__PURE__ */ e(
|
|
11417
|
+
children: /* @__PURE__ */ e(P, { name: "caret-up" })
|
|
11413
11418
|
})
|
|
11414
11419
|
]
|
|
11415
11420
|
})
|
|
@@ -11566,7 +11571,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11566
11571
|
b: 167
|
|
11567
11572
|
};
|
|
11568
11573
|
return j1(g);
|
|
11569
|
-
}), o =
|
|
11574
|
+
}), o = K(null);
|
|
11570
11575
|
F(() => {
|
|
11571
11576
|
const g = U0(t);
|
|
11572
11577
|
g && d(j1(g));
|
|
@@ -11771,10 +11776,10 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11771
11776
|
]), F(() => {
|
|
11772
11777
|
n || i("");
|
|
11773
11778
|
}, [n]);
|
|
11774
|
-
const s =
|
|
11779
|
+
const s = u1(() => {
|
|
11775
11780
|
const g = m.trim().toLowerCase();
|
|
11776
11781
|
return g ? t.filter((v) => [v.label, ...v.keywords ?? []].join(" ").toLowerCase().includes(g)) : t;
|
|
11777
|
-
}, [t, m]), p =
|
|
11782
|
+
}, [t, m]), p = u1(() => s.reduce((g, v) => {
|
|
11778
11783
|
const w = v.group || "General";
|
|
11779
11784
|
return g[w] = g[w] ? [...g[w], v] : [v], g;
|
|
11780
11785
|
}, {}), [s]), u = () => {
|
|
@@ -11939,15 +11944,15 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11939
11944
|
}
|
|
11940
11945
|
t.restore();
|
|
11941
11946
|
}, Ua = z1(({ colors: t, duration: r = 3e3, scope: l = "fullscreen", variant: a = "confetti", particleCount: h }, d) => {
|
|
11942
|
-
const o =
|
|
11947
|
+
const o = K(null), m = K(0), i = K(0), n = K(!1), s = {
|
|
11943
11948
|
confetti: 150,
|
|
11944
11949
|
burst: 200,
|
|
11945
11950
|
fireworks: 8
|
|
11946
|
-
}, p =
|
|
11951
|
+
}, p = Z(() => {
|
|
11947
11952
|
n.current = !1, cancelAnimationFrame(m.current);
|
|
11948
11953
|
const g = o.current;
|
|
11949
11954
|
g && g.getContext("2d")?.clearRect(0, 0, g.width, g.height);
|
|
11950
|
-
}, []), u =
|
|
11955
|
+
}, []), u = Z(() => {
|
|
11951
11956
|
const g = o.current;
|
|
11952
11957
|
if (!g || n.current) return;
|
|
11953
11958
|
const v = g.getContext("2d");
|
|
@@ -12061,11 +12066,11 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12061
12066
|
getAnchorEl: (m) => t[m]?.anchorEl || null
|
|
12062
12067
|
};
|
|
12063
12068
|
}, R1 = 20, Yr = 8, P2 = ({ children: t, visible: r, onClose: l, anchorEl: a, offset: h = Yr, placement: d = "auto" }) => {
|
|
12064
|
-
const o =
|
|
12069
|
+
const o = K(null), m = K(null), [i, n] = z({
|
|
12065
12070
|
top: 0,
|
|
12066
12071
|
left: 0,
|
|
12067
12072
|
placement: "bottom"
|
|
12068
|
-
}), s =
|
|
12073
|
+
}), s = Z(() => {
|
|
12069
12074
|
if (!a || !o.current || !r) return;
|
|
12070
12075
|
const p = a.getBoundingClientRect(), u = o.current.getBoundingClientRect(), g = {
|
|
12071
12076
|
width: window.innerWidth,
|
|
@@ -12170,7 +12175,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12170
12175
|
children: [
|
|
12171
12176
|
(a || d) && /* @__PURE__ */ c("div", {
|
|
12172
12177
|
className: "confirm-popover__header",
|
|
12173
|
-
children: [d && /* @__PURE__ */ e(
|
|
12178
|
+
children: [d && /* @__PURE__ */ e(P, { name: d }), a && /* @__PURE__ */ e("span", {
|
|
12174
12179
|
className: "confirm-popover__title",
|
|
12175
12180
|
children: a
|
|
12176
12181
|
})]
|
|
@@ -12199,7 +12204,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12199
12204
|
})
|
|
12200
12205
|
});
|
|
12201
12206
|
}, Xr = ({ target: t, onClose: r, children: l, autoClose: a = !1 }) => {
|
|
12202
|
-
const h =
|
|
12207
|
+
const h = K(null), [d, o] = z(!1), [m, i] = z(() => {
|
|
12203
12208
|
if (!t) return { opacity: 0 };
|
|
12204
12209
|
const s = t.getBoundingClientRect();
|
|
12205
12210
|
return {
|
|
@@ -12274,12 +12279,12 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12274
12279
|
className: "toast__action-button",
|
|
12275
12280
|
children: a.label
|
|
12276
12281
|
}),
|
|
12277
|
-
d && /* @__PURE__ */ e(
|
|
12282
|
+
d && /* @__PURE__ */ e(X, {
|
|
12278
12283
|
title: "Close",
|
|
12279
12284
|
children: /* @__PURE__ */ e("button", {
|
|
12280
12285
|
onClick: n,
|
|
12281
12286
|
className: "toast__close-button",
|
|
12282
|
-
children: /* @__PURE__ */ e(
|
|
12287
|
+
children: /* @__PURE__ */ e(P, {
|
|
12283
12288
|
name: "clear",
|
|
12284
12289
|
size: "sm"
|
|
12285
12290
|
})
|
|
@@ -12302,22 +12307,26 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12302
12307
|
}, h.id))
|
|
12303
12308
|
});
|
|
12304
12309
|
}, qa = ({ children: t }) => {
|
|
12305
|
-
const [r, l] = z([]),
|
|
12310
|
+
const [r, l] = z([]), a = Z((o) => {
|
|
12311
|
+
l((m) => m.filter((i) => i.id !== o));
|
|
12312
|
+
}, []), h = Z((o, m = "info", i = 1500, n) => {
|
|
12313
|
+
const s = `${Date.now().toString()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
12314
|
+
return l((p) => [...p, {
|
|
12315
|
+
id: s,
|
|
12316
|
+
message: o,
|
|
12317
|
+
type: m,
|
|
12318
|
+
timeout: i,
|
|
12319
|
+
action: n
|
|
12320
|
+
}]), s;
|
|
12321
|
+
}, []), d = u1(() => ({
|
|
12306
12322
|
toasts: r,
|
|
12307
|
-
addToast:
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12314
|
-
action: n
|
|
12315
|
-
}]), s;
|
|
12316
|
-
},
|
|
12317
|
-
removeToast: (o) => {
|
|
12318
|
-
l((m) => m.filter((i) => i.id !== o));
|
|
12319
|
-
}
|
|
12320
|
-
};
|
|
12323
|
+
addToast: h,
|
|
12324
|
+
removeToast: a
|
|
12325
|
+
}), [
|
|
12326
|
+
r,
|
|
12327
|
+
h,
|
|
12328
|
+
a
|
|
12329
|
+
]);
|
|
12321
12330
|
return /* @__PURE__ */ e(j2.Provider, {
|
|
12322
12331
|
value: d,
|
|
12323
12332
|
children: t
|
|
@@ -12354,7 +12363,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12354
12363
|
"desktop",
|
|
12355
12364
|
"largeDesktop"
|
|
12356
12365
|
].indexOf(t), g0 = () => {
|
|
12357
|
-
const [t, r] = z(Y0), l =
|
|
12366
|
+
const [t, r] = z(Y0), l = Z((o) => Y1(t) > Y1(o), [t]), a = Z((o) => Y1(t) < Y1(o), [t]), h = Z((o) => Y1(t) >= Y1(o), [t]), d = Z((o) => Y1(t) <= Y1(o), [t]);
|
|
12358
12367
|
return F(() => {
|
|
12359
12368
|
if (typeof window > "u") return;
|
|
12360
12369
|
const o = Object.entries(Jr).map(([i, n]) => ({
|
|
@@ -12386,7 +12395,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12386
12395
|
if (!t) throw new Error("useControlPanel must be used within a ControlPanelProvider");
|
|
12387
12396
|
return t;
|
|
12388
12397
|
}, Ka = ({ children: t }) => {
|
|
12389
|
-
const { isMobile: r } = g0(), [l, a] = z(!1), h =
|
|
12398
|
+
const { isMobile: r } = g0(), [l, a] = z(!1), h = Z(() => a((i) => !i), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = u1(() => ({
|
|
12390
12399
|
isMobile: r,
|
|
12391
12400
|
isOpen: l,
|
|
12392
12401
|
toggle: h,
|
|
@@ -12407,7 +12416,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12407
12416
|
const [g, v] = z(!1), [w, f] = z(0), [y, b] = z(0), [C, x] = z(0), [k, H] = z(!1), [L, M] = z(null), [V, S] = z({
|
|
12408
12417
|
position: "fixed",
|
|
12409
12418
|
visibility: "hidden"
|
|
12410
|
-
}), _ =
|
|
12419
|
+
}), _ = K(null), R = K(null);
|
|
12411
12420
|
F(() => {
|
|
12412
12421
|
a && t instanceof Date && (f(h === "12h" ? t.getHours() % 12 || 12 : t.getHours()), b(t.getMinutes()), x(t.getSeconds()), H(t.getHours() >= 12));
|
|
12413
12422
|
}, [
|
|
@@ -12423,9 +12432,9 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12423
12432
|
};
|
|
12424
12433
|
return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
|
|
12425
12434
|
}, [p, B]);
|
|
12426
|
-
const E =
|
|
12435
|
+
const E = Z(() => {
|
|
12427
12436
|
if (p || !B || !_.current || !R.current) return;
|
|
12428
|
-
const I = _.current.getBoundingClientRect(), D = R.current.getBoundingClientRect(),
|
|
12437
|
+
const I = _.current.getBoundingClientRect(), D = R.current.getBoundingClientRect(), J = 16, h1 = 8, U = window.innerHeight - I.bottom - J, d1 = I.top - J, v1 = U < D.height && d1 > D.height ? I.top - D.height - h1 : I.bottom + h1, y1 = Math.max(J, Math.min(v1, window.innerHeight - D.height - J)), _1 = Math.max(J, Math.min(I.left, window.innerWidth - D.width - J));
|
|
12429
12438
|
S({
|
|
12430
12439
|
position: "fixed",
|
|
12431
12440
|
top: `${y1}px`,
|
|
@@ -12462,8 +12471,8 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12462
12471
|
r?.(I), s && l !== "multiple" && !p && v(!1);
|
|
12463
12472
|
return;
|
|
12464
12473
|
}
|
|
12465
|
-
const D = new Date(I),
|
|
12466
|
-
D.setHours(
|
|
12474
|
+
const D = new Date(I), J = h === "12h" ? k ? w % 12 + 12 : w % 12 : w;
|
|
12475
|
+
D.setHours(J, y, C), r?.(D), s && !p && v(!1);
|
|
12467
12476
|
}, N = () => {
|
|
12468
12477
|
if (!t || !(t instanceof Date)) return;
|
|
12469
12478
|
const I = new Date(t), D = h === "12h" ? k ? w % 12 + 12 : w % 12 : w;
|
|
@@ -12484,7 +12493,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12484
12493
|
children: t1 || m
|
|
12485
12494
|
}), /* @__PURE__ */ c("div", {
|
|
12486
12495
|
className: "datepicker__actions",
|
|
12487
|
-
children: [n && t1 && /* @__PURE__ */ e(
|
|
12496
|
+
children: [n && t1 && /* @__PURE__ */ e(X, {
|
|
12488
12497
|
title: "Clear",
|
|
12489
12498
|
children: /* @__PURE__ */ e("button", {
|
|
12490
12499
|
type: "button",
|
|
@@ -12494,7 +12503,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12494
12503
|
})
|
|
12495
12504
|
}), /* @__PURE__ */ e("span", {
|
|
12496
12505
|
className: "datepicker__icon",
|
|
12497
|
-
children: /* @__PURE__ */ e(
|
|
12506
|
+
children: /* @__PURE__ */ e(P, { name: "calendar" })
|
|
12498
12507
|
})]
|
|
12499
12508
|
})]
|
|
12500
12509
|
}), B && (p ? /* @__PURE__ */ c("div", {
|
|
@@ -12649,7 +12658,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12649
12658
|
left: 0,
|
|
12650
12659
|
width: 0,
|
|
12651
12660
|
maxHeight: 300
|
|
12652
|
-
}), [D,
|
|
12661
|
+
}), [D, J] = z(!1), h1 = K(null), U = K([]), d1 = K(null), v1 = K(null), y1 = z0(), _1 = o ?? `dropdown-${y1}`, C1 = K(null);
|
|
12653
12662
|
F(() => {
|
|
12654
12663
|
if (V && x && s) {
|
|
12655
12664
|
const W = new Set(N.map((c1) => c1.value)), G = [], Y = [];
|
|
@@ -12674,7 +12683,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12674
12683
|
f,
|
|
12675
12684
|
V
|
|
12676
12685
|
]);
|
|
12677
|
-
const I1 =
|
|
12686
|
+
const I1 = K(L);
|
|
12678
12687
|
F(() => {
|
|
12679
12688
|
const W = I1.current;
|
|
12680
12689
|
I1.current = L;
|
|
@@ -12729,7 +12738,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12729
12738
|
const W = () => {
|
|
12730
12739
|
if (!h1.current) return;
|
|
12731
12740
|
const Y = h1.current.getBoundingClientRect(), c1 = window.visualViewport, F1 = c1?.offsetTop ?? 0, N0 = F1 + (c1?.height ?? window.innerHeight), P1 = 300, D0 = 8, w0 = N0 - Y.bottom, f0 = Y.top - F1, n0 = w0 < P1 && f0 > w0;
|
|
12732
|
-
if (
|
|
12741
|
+
if (J(n0), H) {
|
|
12733
12742
|
const T0 = Math.max(0, (n0 ? f0 : w0) - D0);
|
|
12734
12743
|
I({
|
|
12735
12744
|
top: Y.bottom,
|
|
@@ -12909,9 +12918,9 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12909
12918
|
className: "dropdown-option-prefix",
|
|
12910
12919
|
children: G.prefix
|
|
12911
12920
|
}),
|
|
12912
|
-
G.icon && /* @__PURE__ */ e(
|
|
12921
|
+
G.icon && /* @__PURE__ */ e(P, { name: G.icon }),
|
|
12913
12922
|
/* @__PURE__ */ e("span", { children: G.label }),
|
|
12914
|
-
G.suffixIcon && /* @__PURE__ */ e(
|
|
12923
|
+
G.suffixIcon && /* @__PURE__ */ e(P, { name: G.suffixIcon })
|
|
12915
12924
|
]
|
|
12916
12925
|
}), G.details && /* @__PURE__ */ e("span", {
|
|
12917
12926
|
className: "dropdown-option-details",
|
|
@@ -12929,7 +12938,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12929
12938
|
className: "dropdown-option-content",
|
|
12930
12939
|
children: /* @__PURE__ */ c("span", {
|
|
12931
12940
|
className: "dropdown-option-label",
|
|
12932
|
-
children: [/* @__PURE__ */ e(
|
|
12941
|
+
children: [/* @__PURE__ */ e(P, { name: "plus" }), /* @__PURE__ */ c("span", { children: [
|
|
12933
12942
|
"Create “",
|
|
12934
12943
|
_,
|
|
12935
12944
|
"”"
|
|
@@ -12958,12 +12967,12 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12958
12967
|
children: [
|
|
12959
12968
|
U1 && L1?.icon && /* @__PURE__ */ e("span", {
|
|
12960
12969
|
className: "dropdown-selected-icon dropdown-selected-icon--prefix",
|
|
12961
|
-
children: /* @__PURE__ */ e(
|
|
12970
|
+
children: /* @__PURE__ */ e(P, { name: L1.icon })
|
|
12962
12971
|
}),
|
|
12963
12972
|
D1 && L1 && /* @__PURE__ */ c("span", {
|
|
12964
12973
|
className: "dropdown-value-chip",
|
|
12965
12974
|
onClick: m1,
|
|
12966
|
-
children: [L1.icon && /* @__PURE__ */ e(
|
|
12975
|
+
children: [L1.icon && /* @__PURE__ */ e(P, { name: L1.icon }), /* @__PURE__ */ e("span", {
|
|
12967
12976
|
className: "dropdown-value-chip__label",
|
|
12968
12977
|
children: L1.label
|
|
12969
12978
|
})]
|
|
@@ -12973,15 +12982,17 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12973
12982
|
children: [/* @__PURE__ */ e("span", {
|
|
12974
12983
|
className: "dropdown-chip__label",
|
|
12975
12984
|
children: W.label
|
|
12976
|
-
}), /* @__PURE__ */ e(
|
|
12977
|
-
type: "button",
|
|
12978
|
-
className: "dropdown-chip__remove",
|
|
12985
|
+
}), /* @__PURE__ */ e(X, {
|
|
12979
12986
|
title: "Remove",
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12987
|
+
children: /* @__PURE__ */ e("button", {
|
|
12988
|
+
type: "button",
|
|
12989
|
+
className: "dropdown-chip__remove",
|
|
12990
|
+
disabled: a,
|
|
12991
|
+
onClick: (G) => {
|
|
12992
|
+
G.stopPropagation(), A(W);
|
|
12993
|
+
},
|
|
12994
|
+
children: e2
|
|
12995
|
+
})
|
|
12985
12996
|
})]
|
|
12986
12997
|
}, `dd-chip-${W.value}`)),
|
|
12987
12998
|
/* @__PURE__ */ e(V1, {
|
|
@@ -13002,7 +13013,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13002
13013
|
children: [
|
|
13003
13014
|
J1 && L1?.suffixIcon && /* @__PURE__ */ e("span", {
|
|
13004
13015
|
className: "dropdown-selected-icon dropdown-selected-icon--suffix",
|
|
13005
|
-
children: /* @__PURE__ */ e(
|
|
13016
|
+
children: /* @__PURE__ */ e(P, { name: L1.suffixIcon })
|
|
13006
13017
|
}),
|
|
13007
13018
|
(!s && N.length > 0 || s && N.length > 0) && /* @__PURE__ */ e("span", {
|
|
13008
13019
|
className: "dropdown-action-button dropdown-clear-button",
|
|
@@ -13039,7 +13050,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13039
13050
|
]
|
|
13040
13051
|
});
|
|
13041
13052
|
}, rc = z1(({ autoComplete: t = "on", autoFocus: r, clearable: l, disabled: a, error: h, highlighted: d, id: o, label: m, max: i, min: n, onBlur: s, onChange: p, onClick: u, onKeyDown: g, onKeyUp: v, readOnly: w = !1, required: f = !1, success: y, type: b = "date", value: C }, x) => {
|
|
13042
|
-
const k = l && C && !a && !w, H =
|
|
13053
|
+
const k = l && C && !a && !w, H = K(null);
|
|
13043
13054
|
return /* @__PURE__ */ c("div", {
|
|
13044
13055
|
className: `input-date-wrapper${d ? " input-date-highlighted" : ""}`,
|
|
13045
13056
|
children: [
|
|
@@ -13075,18 +13086,18 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13075
13086
|
required: f
|
|
13076
13087
|
}), /* @__PURE__ */ c("div", {
|
|
13077
13088
|
className: "input-date-actions",
|
|
13078
|
-
children: [k && /* @__PURE__ */ e(
|
|
13089
|
+
children: [k && /* @__PURE__ */ e(X, {
|
|
13079
13090
|
title: "Clear date",
|
|
13080
13091
|
children: /* @__PURE__ */ e("button", {
|
|
13081
13092
|
type: "button",
|
|
13082
13093
|
className: "input-date-clear",
|
|
13083
13094
|
onClick: () => p?.(void 0),
|
|
13084
|
-
children: /* @__PURE__ */ e(
|
|
13095
|
+
children: /* @__PURE__ */ e(P, {
|
|
13085
13096
|
name: "clear",
|
|
13086
13097
|
size: "sm"
|
|
13087
13098
|
})
|
|
13088
13099
|
})
|
|
13089
|
-
}), /* @__PURE__ */ e(
|
|
13100
|
+
}), /* @__PURE__ */ e(X, {
|
|
13090
13101
|
title: "Open calendar",
|
|
13091
13102
|
children: /* @__PURE__ */ e("button", {
|
|
13092
13103
|
type: "button",
|
|
@@ -13097,7 +13108,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13097
13108
|
},
|
|
13098
13109
|
disabled: a || w,
|
|
13099
13110
|
tabIndex: -1,
|
|
13100
|
-
children: /* @__PURE__ */ e(
|
|
13111
|
+
children: /* @__PURE__ */ e(P, {
|
|
13101
13112
|
name: "calendar",
|
|
13102
13113
|
size: "sm"
|
|
13103
13114
|
})
|
|
@@ -13124,7 +13135,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13124
13135
|
children: [
|
|
13125
13136
|
/* @__PURE__ */ e("div", {
|
|
13126
13137
|
className: "input-search__icon",
|
|
13127
|
-
children: /* @__PURE__ */ e(
|
|
13138
|
+
children: /* @__PURE__ */ e(P, { name: "search" })
|
|
13128
13139
|
}),
|
|
13129
13140
|
/* @__PURE__ */ e(V1, {
|
|
13130
13141
|
autoComplete: t,
|
|
@@ -13143,13 +13154,13 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13143
13154
|
value: g,
|
|
13144
13155
|
ref: w
|
|
13145
13156
|
}),
|
|
13146
|
-
y && /* @__PURE__ */ e(
|
|
13157
|
+
y && /* @__PURE__ */ e(X, {
|
|
13147
13158
|
title: "Clear search",
|
|
13148
13159
|
children: /* @__PURE__ */ e("button", {
|
|
13149
13160
|
type: "button",
|
|
13150
13161
|
className: "input-search__clear",
|
|
13151
13162
|
onClick: f,
|
|
13152
|
-
children: /* @__PURE__ */ e(
|
|
13163
|
+
children: /* @__PURE__ */ e(P, {
|
|
13153
13164
|
name: "clear",
|
|
13154
13165
|
size: "sm"
|
|
13155
13166
|
})
|
|
@@ -13218,7 +13229,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13218
13229
|
}
|
|
13219
13230
|
return null;
|
|
13220
13231
|
}, lc = ({ align: t = "left", icon: r = "star", maxRate: l = 10, onHover: a, onHoverEnd: h, onSelect: d, rating: o, selectable: m = !1, showValue: i = !0, useHalf: n = !1, variant: s = "warning" }) => {
|
|
13221
|
-
const p =
|
|
13232
|
+
const p = Z((u) => {
|
|
13222
13233
|
m && !n && d?.(u + 1);
|
|
13223
13234
|
}, [
|
|
13224
13235
|
m,
|
|
@@ -13367,7 +13378,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13367
13378
|
className: `control-panel__filter-title${t.isActive ? " control-panel__filter-title--active" : ""}`,
|
|
13368
13379
|
children: [
|
|
13369
13380
|
t.isActive && /* @__PURE__ */ e("span", { className: "control-panel__filter-active-dot" }),
|
|
13370
|
-
t.icon && /* @__PURE__ */ e(
|
|
13381
|
+
t.icon && /* @__PURE__ */ e(P, { name: t.icon }),
|
|
13371
13382
|
t.label
|
|
13372
13383
|
]
|
|
13373
13384
|
});
|
|
@@ -13390,7 +13401,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13390
13401
|
}),
|
|
13391
13402
|
/* @__PURE__ */ e("span", {
|
|
13392
13403
|
className: "control-panel__filter-caret",
|
|
13393
|
-
children: /* @__PURE__ */ e(
|
|
13404
|
+
children: /* @__PURE__ */ e(P, { name: h ? "caret-up" : "caret-down" })
|
|
13394
13405
|
})
|
|
13395
13406
|
]
|
|
13396
13407
|
}) : t.type !== "checkbox" && m, (!a || h) && /* @__PURE__ */ e(hc, {
|
|
@@ -13575,7 +13586,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13575
13586
|
className: "control-panel__filter-swatch",
|
|
13576
13587
|
style: { backgroundColor: o.color }
|
|
13577
13588
|
}),
|
|
13578
|
-
o.icon && /* @__PURE__ */ e(
|
|
13589
|
+
o.icon && /* @__PURE__ */ e(P, { name: o.icon }),
|
|
13579
13590
|
/* @__PURE__ */ e("span", {
|
|
13580
13591
|
className: "control-panel__filter-label",
|
|
13581
13592
|
children: o.label
|
|
@@ -13721,7 +13732,7 @@ function F2(t, r, l, a = 0) {
|
|
|
13721
13732
|
s.stopPropagation(), t.onOpenChange?.(!o, t);
|
|
13722
13733
|
},
|
|
13723
13734
|
type: "button",
|
|
13724
|
-
children: /* @__PURE__ */ e(
|
|
13735
|
+
children: /* @__PURE__ */ e(P, { name: "caret-right" })
|
|
13725
13736
|
}) : /* @__PURE__ */ e("span", { className: "control-panel__nav-toggle-placeholder" })), /* @__PURE__ */ c("button", {
|
|
13726
13737
|
className: m,
|
|
13727
13738
|
onClick: () => {
|
|
@@ -13736,7 +13747,7 @@ function F2(t, r, l, a = 0) {
|
|
|
13736
13747
|
t.icon ? /* @__PURE__ */ e("span", {
|
|
13737
13748
|
className: "control-panel__nav-icon",
|
|
13738
13749
|
style: t.color ? { color: t.color } : void 0,
|
|
13739
|
-
children: /* @__PURE__ */ e(
|
|
13750
|
+
children: /* @__PURE__ */ e(P, { name: t.icon })
|
|
13740
13751
|
}) : t.color && /* @__PURE__ */ e("span", {
|
|
13741
13752
|
className: "control-panel__nav-dot",
|
|
13742
13753
|
style: { backgroundColor: t.color }
|
|
@@ -13878,7 +13889,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13878
13889
|
children: o.label
|
|
13879
13890
|
}), o.options.map((i, n) => {
|
|
13880
13891
|
const s = n > 0 ? o.options[n - 1] : void 0, p = !!s && s.type !== i.type;
|
|
13881
|
-
return /* @__PURE__ */ c(
|
|
13892
|
+
return /* @__PURE__ */ c(g1.Fragment, { children: [p && /* @__PURE__ */ e(h0, { spacing: 0 }), /* @__PURE__ */ c("div", {
|
|
13882
13893
|
className: `control-panel__option control-panel__option--${i.type}`,
|
|
13883
13894
|
children: [
|
|
13884
13895
|
i.type === "checkbox" && /* @__PURE__ */ e(d0, {
|
|
@@ -13916,7 +13927,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13916
13927
|
type: "radio",
|
|
13917
13928
|
value: u.value
|
|
13918
13929
|
}),
|
|
13919
|
-
u.icon && /* @__PURE__ */ e(
|
|
13930
|
+
u.icon && /* @__PURE__ */ e(P, { name: u.icon }),
|
|
13920
13931
|
/* @__PURE__ */ e("span", {
|
|
13921
13932
|
className: "control-panel__filter-label",
|
|
13922
13933
|
children: u.label
|
|
@@ -13924,16 +13935,16 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13924
13935
|
]
|
|
13925
13936
|
})
|
|
13926
13937
|
});
|
|
13927
|
-
return u.title ? /* @__PURE__ */ e(
|
|
13938
|
+
return u.title ? /* @__PURE__ */ e(X, {
|
|
13928
13939
|
title: u.title,
|
|
13929
13940
|
children: w
|
|
13930
|
-
}, u.value) : /* @__PURE__ */ e(
|
|
13941
|
+
}, u.value) : /* @__PURE__ */ e(g1.Fragment, { children: w }, u.value);
|
|
13931
13942
|
})
|
|
13932
13943
|
})] }),
|
|
13933
13944
|
i.type === "slider" && /* @__PURE__ */ c(n1, { children: [i.label && /* @__PURE__ */ c("span", {
|
|
13934
13945
|
className: "control-panel__filter-title",
|
|
13935
13946
|
children: [
|
|
13936
|
-
i.icon && /* @__PURE__ */ e(
|
|
13947
|
+
i.icon && /* @__PURE__ */ e(P, { name: i.icon }),
|
|
13937
13948
|
i.label,
|
|
13938
13949
|
i.showValue !== !1 && /* @__PURE__ */ c("span", {
|
|
13939
13950
|
className: "control-panel__option-slider-value",
|
|
@@ -14075,7 +14086,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14075
14086
|
variant: t.variant ?? "default",
|
|
14076
14087
|
children: t.label
|
|
14077
14088
|
});
|
|
14078
|
-
return /* @__PURE__ */ c(n1, { children: [t.tooltip ? /* @__PURE__ */ e(
|
|
14089
|
+
return /* @__PURE__ */ c(n1, { children: [t.tooltip ? /* @__PURE__ */ e(X, {
|
|
14079
14090
|
title: t.tooltip,
|
|
14080
14091
|
position: "right",
|
|
14081
14092
|
children: i
|
|
@@ -14113,7 +14124,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14113
14124
|
document.body.removeChild(r);
|
|
14114
14125
|
}
|
|
14115
14126
|
}, ei = ({ children: t, className: r = "", copiedLabel: l = "Copied", disabled: a = !1, errorLabel: h = "Copy failed", iconOnly: d = !1, label: o = "Copy", onCopy: m, onError: i, resetDelay: n = 1800, size: s = "medium", title: p, value: u, variant: g = "ghost" }) => {
|
|
14116
|
-
const [v, w] = z("idle"), f =
|
|
14127
|
+
const [v, w] = z("idle"), f = K(null);
|
|
14117
14128
|
F(() => () => {
|
|
14118
14129
|
f.current && window.clearTimeout(f.current);
|
|
14119
14130
|
}, []);
|
|
@@ -14139,7 +14150,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14139
14150
|
children: d ? void 0 : t || C
|
|
14140
14151
|
});
|
|
14141
14152
|
}, Cc = ({ code: t, size: r = "md", className: l = "" }) => {
|
|
14142
|
-
if (!t) return /* @__PURE__ */ e(
|
|
14153
|
+
if (!t) return /* @__PURE__ */ e(X, {
|
|
14143
14154
|
title: `Unsupported country code: ${t}`,
|
|
14144
14155
|
children: /* @__PURE__ */ e("div", {
|
|
14145
14156
|
className: `flags flags--fallback flags--${r} ${l}`,
|
|
@@ -14152,7 +14163,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14152
14163
|
children: [/* @__PURE__ */ e("source", {
|
|
14153
14164
|
srcSet: h,
|
|
14154
14165
|
type: "image/webp"
|
|
14155
|
-
}), /* @__PURE__ */ e(
|
|
14166
|
+
}), /* @__PURE__ */ e(X, {
|
|
14156
14167
|
title: `Country: ${t.toUpperCase()}`,
|
|
14157
14168
|
children: /* @__PURE__ */ e("img", {
|
|
14158
14169
|
src: a,
|
|
@@ -14181,7 +14192,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14181
14192
|
const d = r ? (a - 1) * t + 1 : 0, o = Math.min(a * t, r), m = h ? ` ${h}` : "";
|
|
14182
14193
|
return r === l ? `Showing ${d}-${o} of ${l}${m}` : `Showing ${d}-${o} of ${r} filtered${m} (${l} total)`;
|
|
14183
14194
|
}, r0 = ({ icon: t, title: r, description: l, noCard: a, primary: h, secondary: d, children: o }) => {
|
|
14184
|
-
const m = h || d, i = typeof t == "string" ? /* @__PURE__ */ e(
|
|
14195
|
+
const m = h || d, i = typeof t == "string" ? /* @__PURE__ */ e(P, {
|
|
14185
14196
|
name: t,
|
|
14186
14197
|
size: "xxxl"
|
|
14187
14198
|
}) : t;
|
|
@@ -14218,7 +14229,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14218
14229
|
]
|
|
14219
14230
|
});
|
|
14220
14231
|
}, bc = 45, Mc = 120, xc = 45, kc = 45, C2 = 8, _c = 4, y2 = ({ currentPage: t, totalPages: r, totalItems: l, onPageChange: a, showPagesNumbers: h = !1, pageSizeOptions: d, pageSize: o, onPageSizeChange: m, pageSizeLabel: i = "Rows", horizontalAlign: n = "left" }) => {
|
|
14221
|
-
const { isAtLeast: s, isMobile: p } = g0(), u =
|
|
14232
|
+
const { isAtLeast: s, isMobile: p } = g0(), u = K(null), [g, v] = z(p ? 0 : 2), w = Z(() => {
|
|
14222
14233
|
const C = u.current, x = C?.parentElement;
|
|
14223
14234
|
if (!C || !x) return;
|
|
14224
14235
|
let k = 0;
|
|
@@ -14352,7 +14363,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14352
14363
|
children: t.showYear ? t.yearLabel : t.dateLabel
|
|
14353
14364
|
})
|
|
14354
14365
|
}), ri = ({ items: t, renderItem: r, className: l }) => {
|
|
14355
|
-
const a =
|
|
14366
|
+
const a = u1(() => a2(t), [t]);
|
|
14356
14367
|
return /* @__PURE__ */ c("div", {
|
|
14357
14368
|
className: `timeline-markers${l ? ` ${l}` : ""}`,
|
|
14358
14369
|
children: [/* @__PURE__ */ e("div", { className: "timeline-markers__track" }), t.map((h, d) => {
|
|
@@ -14369,7 +14380,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14369
14380
|
500
|
|
14370
14381
|
], O2 = (t) => typeof t.header == "string" ? t.header : t.key, Rc = (t) => typeof t == "number" ? `${t}px` : t, Y2 = (t) => /* @__PURE__ */ c("span", {
|
|
14371
14382
|
className: "data-view__column-label",
|
|
14372
|
-
children: [t.icon && /* @__PURE__ */ e(
|
|
14383
|
+
children: [t.icon && /* @__PURE__ */ e(P, {
|
|
14373
14384
|
className: "data-view__column-icon",
|
|
14374
14385
|
name: t.icon,
|
|
14375
14386
|
size: "sm",
|
|
@@ -14379,14 +14390,14 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14379
14390
|
const l = t.cellIcon?.(r), a = t.accessor ? t.accessor(r) : r[t.key];
|
|
14380
14391
|
return l ? /* @__PURE__ */ c("span", {
|
|
14381
14392
|
className: "data-view__cell-with-icon",
|
|
14382
|
-
children: [/* @__PURE__ */ e(
|
|
14393
|
+
children: [/* @__PURE__ */ e(P, {
|
|
14383
14394
|
className: "data-view__cell-icon",
|
|
14384
14395
|
name: l
|
|
14385
14396
|
}), /* @__PURE__ */ e("span", { children: a })]
|
|
14386
14397
|
}) : a;
|
|
14387
14398
|
};
|
|
14388
14399
|
function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d, onRowClick: o, rowHref: m, rowClassName: i, empty: n, selectable: s, selectedIds: p = [], pinnedIds: u, onToggleSelect: g, cardMaxWidth: v, isMobile: w = !1, groups: f, showGroupCount: y = !0, collapsible: b = !1, collapsedGroups: C, onToggleGroup: x }) {
|
|
14389
|
-
const k = r.filter((_) => !_.hideInCard && !(w && _.hideInMobile)), H =
|
|
14400
|
+
const k = r.filter((_) => !_.hideInCard && !(w && _.hideInMobile)), H = u1(() => new Set(u ?? []), [u]), L = `data-view__cards${v !== void 0 ? " data-view__cards--grid" : ""}`, M = v !== void 0 ? { "--data-view-card-max-width": Rc(v) } : void 0, V = u1(() => d ? a2(t.map((_) => ({
|
|
14390
14401
|
id: d.idAccessor(_),
|
|
14391
14402
|
date: d.dateAccessor(_)
|
|
14392
14403
|
})), d.granularity) : /* @__PURE__ */ new Map(), [t, d]);
|
|
@@ -14402,11 +14413,11 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14402
14413
|
const B = V.get(R), E = l(_, R), O = s && p.includes(E), o1 = H.has(E), N = m?.(_), q = `data-view__card ${o || N ? "data-view__card--clickable" : ""} ${O ? "data-view__card--selected" : ""} ${o1 ? "data-view__card--pinned" : ""} ${i?.(_) || ""}`, t1 = (D) => {
|
|
14403
14414
|
D.metaKey || D.ctrlKey || D.shiftKey || D.altKey || D.button !== 0 || o && (D.preventDefault(), o(_, D));
|
|
14404
14415
|
}, I = /* @__PURE__ */ c(n1, { children: [
|
|
14405
|
-
o1 && /* @__PURE__ */ e(
|
|
14416
|
+
o1 && /* @__PURE__ */ e(X, {
|
|
14406
14417
|
title: "Pinned",
|
|
14407
14418
|
children: /* @__PURE__ */ e("span", {
|
|
14408
14419
|
className: "data-view__card-pin",
|
|
14409
|
-
children: /* @__PURE__ */ e(
|
|
14420
|
+
children: /* @__PURE__ */ e(P, {
|
|
14410
14421
|
name: "pin",
|
|
14411
14422
|
size: "sm"
|
|
14412
14423
|
})
|
|
@@ -14432,7 +14443,7 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14432
14443
|
className: "data-view__card-title-row",
|
|
14433
14444
|
children: [/* @__PURE__ */ c("div", {
|
|
14434
14445
|
className: "data-view__card-title-line",
|
|
14435
|
-
children: [D && /* @__PURE__ */ e(
|
|
14446
|
+
children: [D && /* @__PURE__ */ e(P, {
|
|
14436
14447
|
className: "data-view__card-icon",
|
|
14437
14448
|
name: D
|
|
14438
14449
|
}), /* @__PURE__ */ e("span", {
|
|
@@ -14468,7 +14479,7 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14468
14479
|
children: h(_)
|
|
14469
14480
|
})
|
|
14470
14481
|
] });
|
|
14471
|
-
return /* @__PURE__ */ c(
|
|
14482
|
+
return /* @__PURE__ */ c(g1.Fragment, { children: [B && /* @__PURE__ */ e(Sc, { marker: B }), N ? /* @__PURE__ */ e("a", {
|
|
14472
14483
|
className: q,
|
|
14473
14484
|
href: N,
|
|
14474
14485
|
onClick: t1,
|
|
@@ -14501,7 +14512,7 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14501
14512
|
className: "data-view__group-count",
|
|
14502
14513
|
children: R.items.length === R.totalCount ? R.totalCount : `${R.items.length} of ${R.totalCount}`
|
|
14503
14514
|
}),
|
|
14504
|
-
b && /* @__PURE__ */ e(
|
|
14515
|
+
b && /* @__PURE__ */ e(P, {
|
|
14505
14516
|
className: "data-view__group-chevron",
|
|
14506
14517
|
name: E ? "caret-down" : "caret-up",
|
|
14507
14518
|
size: "sm"
|
|
@@ -14523,7 +14534,7 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14523
14534
|
});
|
|
14524
14535
|
}
|
|
14525
14536
|
function Ac({ config: t }) {
|
|
14526
|
-
const { options: r, selectedKeys: l, onChange: a, label: h = "Columns" } = t, d =
|
|
14537
|
+
const { options: r, selectedKeys: l, onChange: a, label: h = "Columns" } = t, d = K(null), [o, m] = z(!1);
|
|
14527
14538
|
if (r.length === 0) return null;
|
|
14528
14539
|
const i = (n, s) => {
|
|
14529
14540
|
if (s) {
|
|
@@ -14541,7 +14552,7 @@ function Ac({ config: t }) {
|
|
|
14541
14552
|
onClick: () => m((n) => !n),
|
|
14542
14553
|
children: /* @__PURE__ */ c("span", {
|
|
14543
14554
|
className: "data-view__column-selector-label",
|
|
14544
|
-
children: [h, /* @__PURE__ */ e(
|
|
14555
|
+
children: [h, /* @__PURE__ */ e(P, {
|
|
14545
14556
|
name: "caret-down",
|
|
14546
14557
|
size: "sm"
|
|
14547
14558
|
})]
|
|
@@ -14572,12 +14583,12 @@ var $c = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
|
|
|
14572
14583
|
].filter(Boolean).join(" "),
|
|
14573
14584
|
children: [t.map((m, i) => {
|
|
14574
14585
|
const n = m.direction ?? "asc", s = d ? r === m.value : r === m.value && l === n;
|
|
14575
|
-
return /* @__PURE__ */ e(
|
|
14586
|
+
return /* @__PURE__ */ e(X, {
|
|
14576
14587
|
title: `Sort by ${typeof m.label == "string" || typeof m.label == "number" ? String(m.label) : m.value}${d ? "" : ` ${n === "asc" ? "ascending" : "descending"}`}`,
|
|
14577
14588
|
children: /* @__PURE__ */ e(T, {
|
|
14578
14589
|
className: `mini-sort__button${s ? " is-active" : ""}`,
|
|
14579
14590
|
disabled: m.disabled,
|
|
14580
|
-
icon: m.icon ? /* @__PURE__ */ e(
|
|
14591
|
+
icon: m.icon ? /* @__PURE__ */ e(P, {
|
|
14581
14592
|
className: "mini-sort__icon",
|
|
14582
14593
|
name: m.icon,
|
|
14583
14594
|
size: "sm",
|
|
@@ -14589,12 +14600,12 @@ var $c = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
|
|
|
14589
14600
|
children: m.label ?? m.value
|
|
14590
14601
|
})
|
|
14591
14602
|
}, `${m.value}-${i}`);
|
|
14592
|
-
}), d && /* @__PURE__ */ e(
|
|
14603
|
+
}), d && /* @__PURE__ */ e(X, {
|
|
14593
14604
|
title: `Direction: ${l === "asc" ? "ascending" : "descending"}`,
|
|
14594
14605
|
children: /* @__PURE__ */ e(T, {
|
|
14595
14606
|
className: "mini-sort__button mini-sort__direction",
|
|
14596
14607
|
disabled: r === null,
|
|
14597
|
-
icon: /* @__PURE__ */ e(
|
|
14608
|
+
icon: /* @__PURE__ */ e(P, {
|
|
14598
14609
|
className: "mini-sort__icon",
|
|
14599
14610
|
name: l === "asc" ? "arrow-up" : "arrow-down",
|
|
14600
14611
|
size: "sm",
|
|
@@ -14628,11 +14639,11 @@ function Ec({ columns: t, config: r, sortDirection: l, sortKey: a, onSort: h })
|
|
|
14628
14639
|
function Dc({ state: t }) {
|
|
14629
14640
|
return /* @__PURE__ */ e("span", {
|
|
14630
14641
|
className: `data-view__sort-icon data-view__sort-icon--${t}`,
|
|
14631
|
-
children: /* @__PURE__ */ e(
|
|
14642
|
+
children: /* @__PURE__ */ e(P, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
14632
14643
|
});
|
|
14633
14644
|
}
|
|
14634
14645
|
function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1, onSelectionChange: d, selectedIds: o, pageSizeOptions: m = b2, initialPageSize: i = b2[1], showPageSize: n = !0, card: s, actions: p, actionsWidth: u, timeline: g, onRowClick: v, rowHref: w, rowClassName: f, rowDetail: y, empty: b, initialSortKey: C = null, initialSortDirection: x = "asc", sortKey: k, sortDirection: H, onSortChange: L, miniSort: M, showCardSortControls: V = !0, desktopView: S = "table", cardMaxWidth: _, className: R, onPageChange: B, onPageSizeChange: E, currentPage: O, totalItems: o1, group: N, showResultsCount: q = !0, totalCount: t1, itemNoun: I, columnSelector: D }) {
|
|
14635
|
-
const { isMobile:
|
|
14646
|
+
const { isMobile: J } = g0(), [h1, U] = z(C), [d1, v1] = z(x), [y1, _1] = z([]), C1 = o ?? y1, [I1, r1] = z(1), s1 = O ?? I1, [A, j] = z(i), [a1, m1] = z(() => t.reduce(($, l1) => (l1.width && ($[l1.key] = l1.width), $), {})), [x1, M1] = z(/* @__PURE__ */ new Set()), E1 = ($) => {
|
|
14636
14647
|
M1((l1) => {
|
|
14637
14648
|
const p1 = new Set(l1);
|
|
14638
14649
|
return p1.has($) ? p1.delete($) : p1.add($), p1;
|
|
@@ -14644,13 +14655,13 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14644
14655
|
key: $,
|
|
14645
14656
|
direction: l1
|
|
14646
14657
|
}), Q1(1);
|
|
14647
|
-
}, i0 =
|
|
14658
|
+
}, i0 = u1(() => new Set(a ?? []), [a]), L1 = u1(() => {
|
|
14648
14659
|
let $ = r;
|
|
14649
14660
|
if (N1) {
|
|
14650
|
-
const
|
|
14651
|
-
if (
|
|
14652
|
-
const e1 =
|
|
14653
|
-
const S1 = B1[
|
|
14661
|
+
const Q = t.find((e1) => e1.key === N1);
|
|
14662
|
+
if (Q) {
|
|
14663
|
+
const e1 = Q.sortAccessor || Q.accessor || ((B1) => {
|
|
14664
|
+
const S1 = B1[Q.key];
|
|
14654
14665
|
return typeof S1 == "string" || typeof S1 == "number" ? S1 : "";
|
|
14655
14666
|
}), w1 = [...r].sort((B1, S1) => {
|
|
14656
14667
|
const T1 = e1(B1), k1 = e1(S1);
|
|
@@ -14661,11 +14672,11 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14661
14672
|
}
|
|
14662
14673
|
if (i0.size === 0) return $;
|
|
14663
14674
|
const l1 = [], p1 = [];
|
|
14664
|
-
if ($.forEach((
|
|
14665
|
-
i0.has(G1(
|
|
14675
|
+
if ($.forEach((Q, e1) => {
|
|
14676
|
+
i0.has(G1(Q, e1)) ? l1.push(Q) : p1.push(Q);
|
|
14666
14677
|
}), a && a.length > 1 && l1.length > 1) {
|
|
14667
|
-
const
|
|
14668
|
-
l1.sort((e1, w1) => (
|
|
14678
|
+
const Q = new Map(a.map((e1, w1) => [e1, w1]));
|
|
14679
|
+
l1.sort((e1, w1) => (Q.get(G1(e1, 0)) ?? 0) - (Q.get(G1(w1, 0)) ?? 0));
|
|
14669
14680
|
}
|
|
14670
14681
|
return [...l1, ...p1];
|
|
14671
14682
|
}, [
|
|
@@ -14675,53 +14686,53 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14675
14686
|
N1,
|
|
14676
14687
|
i0,
|
|
14677
14688
|
a
|
|
14678
|
-
]), D1 = o1 !== void 0, U1 =
|
|
14689
|
+
]), D1 = o1 !== void 0, U1 = u1(() => {
|
|
14679
14690
|
if (!N || D1) return L1;
|
|
14680
14691
|
const $ = /* @__PURE__ */ new Map(), l1 = [];
|
|
14681
|
-
L1.forEach((
|
|
14682
|
-
const e1 = N.groupBy(
|
|
14683
|
-
w1 ? w1.push(
|
|
14692
|
+
L1.forEach((Q) => {
|
|
14693
|
+
const e1 = N.groupBy(Q), w1 = $.get(e1);
|
|
14694
|
+
w1 ? w1.push(Q) : ($.set(e1, [Q]), l1.push(e1));
|
|
14684
14695
|
});
|
|
14685
|
-
const p1 = l1.map((
|
|
14686
|
-
const e1 = $.get(
|
|
14696
|
+
const p1 = l1.map((Q) => {
|
|
14697
|
+
const e1 = $.get(Q);
|
|
14687
14698
|
return {
|
|
14688
|
-
key:
|
|
14689
|
-
label: N.groupLabel(
|
|
14699
|
+
key: Q,
|
|
14700
|
+
label: N.groupLabel(Q),
|
|
14690
14701
|
items: e1,
|
|
14691
14702
|
totalCount: e1.length
|
|
14692
14703
|
};
|
|
14693
14704
|
});
|
|
14694
|
-
return N.sortGroups ? p1.sort(N.sortGroups) : p1.sort((
|
|
14705
|
+
return N.sortGroups ? p1.sort(N.sortGroups) : p1.sort((Q, e1) => Q.key === null ? 1 : e1.key === null ? -1 : 0), p1.flatMap((Q) => Q.items);
|
|
14695
14706
|
}, [
|
|
14696
14707
|
N,
|
|
14697
14708
|
D1,
|
|
14698
14709
|
L1
|
|
14699
|
-
]), J1 = D1 ? o1 : U1.length, e0 = Math.max(1, Math.ceil(J1 / A)), W = Math.min(s1, e0), G = D1 ? U1 : U1.slice((W - 1) * A, W * A), Y = q ? yc(A, J1, t1 ?? J1, W, I) : null, c1 =
|
|
14710
|
+
]), J1 = D1 ? o1 : U1.length, e0 = Math.max(1, Math.ceil(J1 / A)), W = Math.min(s1, e0), G = D1 ? U1 : U1.slice((W - 1) * A, W * A), Y = q ? yc(A, J1, t1 ?? J1, W, I) : null, c1 = u1(() => {
|
|
14700
14711
|
if (!N) return null;
|
|
14701
14712
|
const $ = /* @__PURE__ */ new Map();
|
|
14702
14713
|
return U1.forEach((l1) => {
|
|
14703
14714
|
const p1 = N.groupBy(l1);
|
|
14704
14715
|
$.set(p1, ($.get(p1) ?? 0) + 1);
|
|
14705
14716
|
}), $;
|
|
14706
|
-
}, [N, U1]), F1 =
|
|
14717
|
+
}, [N, U1]), F1 = u1(() => {
|
|
14707
14718
|
if (!N || !c1) return null;
|
|
14708
14719
|
const $ = /* @__PURE__ */ new Map(), l1 = [];
|
|
14709
|
-
G.forEach((
|
|
14710
|
-
const e1 = N.groupBy(
|
|
14711
|
-
w1 ? w1.push(
|
|
14720
|
+
G.forEach((Q) => {
|
|
14721
|
+
const e1 = N.groupBy(Q), w1 = $.get(e1);
|
|
14722
|
+
w1 ? w1.push(Q) : ($.set(e1, [Q]), l1.push(e1));
|
|
14712
14723
|
});
|
|
14713
|
-
const p1 = l1.map((
|
|
14714
|
-
key:
|
|
14715
|
-
label: N.groupLabel(
|
|
14716
|
-
items: $.get(
|
|
14717
|
-
totalCount: c1.get(
|
|
14724
|
+
const p1 = l1.map((Q) => ({
|
|
14725
|
+
key: Q,
|
|
14726
|
+
label: N.groupLabel(Q),
|
|
14727
|
+
items: $.get(Q),
|
|
14728
|
+
totalCount: c1.get(Q) ?? 0
|
|
14718
14729
|
}));
|
|
14719
|
-
return N.sortGroups ? p1.sort(N.sortGroups) : p1.sort((
|
|
14730
|
+
return N.sortGroups ? p1.sort(N.sortGroups) : p1.sort((Q, e1) => Q.key === null ? 1 : e1.key === null ? -1 : 0), p1;
|
|
14720
14731
|
}, [
|
|
14721
14732
|
N,
|
|
14722
14733
|
c1,
|
|
14723
14734
|
G
|
|
14724
|
-
]), N0 =
|
|
14735
|
+
]), N0 = u1(() => g ? a2(G.map(($) => ({
|
|
14725
14736
|
id: g.idAccessor($),
|
|
14726
14737
|
date: g.dateAccessor($)
|
|
14727
14738
|
})), g.granularity) : /* @__PURE__ */ new Map(), [G, g]), P1 = ($) => {
|
|
@@ -14730,11 +14741,11 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14730
14741
|
$.sortable && (N1 === $.key ? Z1($.key, H1 === "asc" ? "desc" : "asc") : Z1($.key, "asc"));
|
|
14731
14742
|
}, w0 = ($, l1) => {
|
|
14732
14743
|
$.preventDefault();
|
|
14733
|
-
const p1 = $.clientX,
|
|
14744
|
+
const p1 = $.clientX, Q = a1[l1] ?? 150, e1 = (B1) => {
|
|
14734
14745
|
const S1 = B1.clientX - p1, T1 = t.find((k1) => k1.key === l1)?.minWidth ?? 120;
|
|
14735
14746
|
m1((k1) => ({
|
|
14736
14747
|
...k1,
|
|
14737
|
-
[l1]: Math.max(T1,
|
|
14748
|
+
[l1]: Math.max(T1, Q + S1)
|
|
14738
14749
|
}));
|
|
14739
14750
|
}, w1 = () => {
|
|
14740
14751
|
window.removeEventListener("mousemove", e1), window.removeEventListener("mouseup", w1);
|
|
@@ -14795,7 +14806,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14795
14806
|
Z1(l1, N1 === l1 ? H1 : "asc");
|
|
14796
14807
|
}
|
|
14797
14808
|
})
|
|
14798
|
-
}), /* @__PURE__ */ e(
|
|
14809
|
+
}), /* @__PURE__ */ e(X, {
|
|
14799
14810
|
title: H1 === "asc" ? "Sort descending" : "Sort ascending",
|
|
14800
14811
|
children: /* @__PURE__ */ e(T, {
|
|
14801
14812
|
className: "data-view__card-sort-direction",
|
|
@@ -14804,7 +14815,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14804
14815
|
I0 && Z1(I0.key, H1 === "asc" ? "desc" : "asc");
|
|
14805
14816
|
},
|
|
14806
14817
|
variant: "ghost",
|
|
14807
|
-
children: /* @__PURE__ */ e(
|
|
14818
|
+
children: /* @__PURE__ */ e(P, { name: H1 === "asc" ? "arrow-up" : "arrow-down" })
|
|
14808
14819
|
})
|
|
14809
14820
|
})]
|
|
14810
14821
|
}),
|
|
@@ -14830,7 +14841,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14830
14841
|
selectedIds: C1,
|
|
14831
14842
|
pinnedIds: a,
|
|
14832
14843
|
cardMaxWidth: _,
|
|
14833
|
-
isMobile:
|
|
14844
|
+
isMobile: J,
|
|
14834
14845
|
groups: F1 ?? void 0,
|
|
14835
14846
|
showGroupCount: N?.showCount !== !1,
|
|
14836
14847
|
collapsible: N?.collapsible,
|
|
@@ -14914,22 +14925,22 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14914
14925
|
secondary: b.secondary
|
|
14915
14926
|
}) : /* @__PURE__ */ e(r0, { title: "No data available" })
|
|
14916
14927
|
}) });
|
|
14917
|
-
const $ = C0.length + (o0 ? 1 : 0) + (h ? 1 : 0) + (p ? 1 : 0), l1 = N?.showCount !== !1, p1 = (
|
|
14918
|
-
const w1 = G1(
|
|
14928
|
+
const $ = C0.length + (o0 ? 1 : 0) + (h ? 1 : 0) + (p ? 1 : 0), l1 = N?.showCount !== !1, p1 = (Q, e1) => {
|
|
14929
|
+
const w1 = G1(Q, e1), B1 = C1.includes(w1), S1 = i0.has(w1), T1 = N0.get(e1), k1 = w?.(Q), d2 = !!v || !!k1, M3 = (b1) => {
|
|
14919
14930
|
if (k1 && (b1.metaKey || b1.ctrlKey || b1.shiftKey)) {
|
|
14920
14931
|
window.open(k1, "_blank", "noopener,noreferrer");
|
|
14921
14932
|
return;
|
|
14922
14933
|
}
|
|
14923
14934
|
if (v) {
|
|
14924
|
-
v(
|
|
14935
|
+
v(Q, b1);
|
|
14925
14936
|
return;
|
|
14926
14937
|
}
|
|
14927
14938
|
k1 && window.location.assign(k1);
|
|
14928
14939
|
}, x3 = (b1) => {
|
|
14929
14940
|
b1.button !== 1 || !k1 || (b1.preventDefault(), window.open(k1, "_blank", "noopener,noreferrer"));
|
|
14930
|
-
}, Z0 = y?.(
|
|
14931
|
-
return /* @__PURE__ */ c(
|
|
14932
|
-
className: `${B1 ? "is-selected" : ""} ${d2 ? "data-view__row--clickable" : ""} ${S1 ? "data-view__row--pinned" : ""} ${f?.(
|
|
14941
|
+
}, Z0 = y?.(Q);
|
|
14942
|
+
return /* @__PURE__ */ c(g1.Fragment, { children: [/* @__PURE__ */ c("tr", {
|
|
14943
|
+
className: `${B1 ? "is-selected" : ""} ${d2 ? "data-view__row--clickable" : ""} ${S1 ? "data-view__row--pinned" : ""} ${f?.(Q) || ""}`,
|
|
14933
14944
|
onClick: d2 ? M3 : void 0,
|
|
14934
14945
|
onAuxClick: k1 ? x3 : void 0,
|
|
14935
14946
|
children: [
|
|
@@ -14948,14 +14959,14 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14948
14959
|
}),
|
|
14949
14960
|
C0.map((b1, P0) => /* @__PURE__ */ c("td", {
|
|
14950
14961
|
style: a1[b1.key] ? { width: a1[b1.key] } : void 0,
|
|
14951
|
-
children: [P0 === 0 && S1 && /* @__PURE__ */ e(
|
|
14962
|
+
children: [P0 === 0 && S1 && /* @__PURE__ */ e(X, {
|
|
14952
14963
|
title: "Pinned",
|
|
14953
|
-
children: /* @__PURE__ */ e(
|
|
14964
|
+
children: /* @__PURE__ */ e(P, {
|
|
14954
14965
|
className: "data-view__pin-indicator",
|
|
14955
14966
|
name: "pin",
|
|
14956
14967
|
size: "sm"
|
|
14957
14968
|
})
|
|
14958
|
-
}), q2(b1,
|
|
14969
|
+
}), q2(b1, Q)]
|
|
14959
14970
|
}, b1.key)),
|
|
14960
14971
|
p && /* @__PURE__ */ e("td", {
|
|
14961
14972
|
className: "data-view__actions-cell",
|
|
@@ -14963,7 +14974,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14963
14974
|
children: /* @__PURE__ */ e("div", {
|
|
14964
14975
|
className: "data-view__table-actions",
|
|
14965
14976
|
onClick: (b1) => b1.stopPropagation(),
|
|
14966
|
-
children: p(
|
|
14977
|
+
children: p(Q)
|
|
14967
14978
|
})
|
|
14968
14979
|
})
|
|
14969
14980
|
]
|
|
@@ -14977,12 +14988,12 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14977
14988
|
})] }, w1);
|
|
14978
14989
|
};
|
|
14979
14990
|
if (F1) {
|
|
14980
|
-
let
|
|
14991
|
+
let Q = 0;
|
|
14981
14992
|
return F1.map((e1) => {
|
|
14982
|
-
const w1 =
|
|
14983
|
-
|
|
14993
|
+
const w1 = Q;
|
|
14994
|
+
Q += e1.items.length;
|
|
14984
14995
|
const B1 = N?.collapsible && x1.has(e1.key);
|
|
14985
|
-
return /* @__PURE__ */ c(
|
|
14996
|
+
return /* @__PURE__ */ c(g1.Fragment, { children: [/* @__PURE__ */ e("tr", {
|
|
14986
14997
|
className: `data-view__group-row${N?.collapsible ? " data-view__group-row--collapsible" : ""}`,
|
|
14987
14998
|
onClick: N?.collapsible ? () => E1(e1.key) : void 0,
|
|
14988
14999
|
children: /* @__PURE__ */ c("td", {
|
|
@@ -14997,7 +15008,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14997
15008
|
className: "data-view__group-count",
|
|
14998
15009
|
children: e1.items.length === e1.totalCount ? e1.totalCount : `${e1.items.length} of ${e1.totalCount}`
|
|
14999
15010
|
}),
|
|
15000
|
-
N?.collapsible && /* @__PURE__ */ e(
|
|
15011
|
+
N?.collapsible && /* @__PURE__ */ e(P, {
|
|
15001
15012
|
className: "data-view__group-chevron",
|
|
15002
15013
|
name: B1 ? "caret-down" : "caret-up",
|
|
15003
15014
|
size: "sm"
|
|
@@ -15007,7 +15018,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
15007
15018
|
}), !B1 && e1.items.map((S1, T1) => p1(S1, w1 + T1))] }, e1.key ?? "__null__");
|
|
15008
15019
|
});
|
|
15009
15020
|
}
|
|
15010
|
-
return G.map((
|
|
15021
|
+
return G.map((Q, e1) => p1(Q, e1));
|
|
15011
15022
|
})() })] })
|
|
15012
15023
|
}),
|
|
15013
15024
|
/* @__PURE__ */ e(y2, {
|
|
@@ -15039,7 +15050,7 @@ var t0 = (t) => {
|
|
|
15039
15050
|
const [i, n] = z({}), [s, p] = z(() => /* @__PURE__ */ new Date()), [u, g] = z(null), [v, w] = z(d), [f, y] = z({
|
|
15040
15051
|
position: "fixed",
|
|
15041
15052
|
visibility: "hidden"
|
|
15042
|
-
}), [b, C] = z(r?.start ?? ""), [x, k] = z(r?.end ?? ""), H =
|
|
15053
|
+
}), [b, C] = z(r?.start ?? ""), [x, k] = z(r?.end ?? ""), H = K(null), L = K(null), M = r ?? i, V = t0(M.start), S = t0(M.end), _ = V && S ? {
|
|
15043
15054
|
start: V,
|
|
15044
15055
|
end: S
|
|
15045
15056
|
} : void 0, R = (U) => {
|
|
@@ -15073,7 +15084,7 @@ var t0 = (t) => {
|
|
|
15073
15084
|
}, [M.start]), F(() => {
|
|
15074
15085
|
k(M.end ?? "");
|
|
15075
15086
|
}, [M.end]);
|
|
15076
|
-
const t1 =
|
|
15087
|
+
const t1 = u1(() => k0(s, 1), [s]), I = d || v, D = !d && v, J = Z(() => {
|
|
15077
15088
|
if (!D || !H.current || !L.current) return;
|
|
15078
15089
|
const U = H.current.getBoundingClientRect(), d1 = L.current.getBoundingClientRect(), v1 = 16, y1 = 8, _1 = window.innerHeight - U.bottom - v1, C1 = U.top - v1, I1 = _1 < d1.height && C1 > d1.height ? U.top - d1.height - y1 : U.bottom + y1, r1 = Math.max(v1, Math.min(I1, window.innerHeight - d1.height - v1)), s1 = U.left, A = Math.max(v1, Math.min(s1, window.innerWidth - d1.width - v1));
|
|
15079
15090
|
y({
|
|
@@ -15093,11 +15104,11 @@ var t0 = (t) => {
|
|
|
15093
15104
|
});
|
|
15094
15105
|
return;
|
|
15095
15106
|
}
|
|
15096
|
-
const U = requestAnimationFrame(() => requestAnimationFrame(
|
|
15097
|
-
return window.addEventListener("resize",
|
|
15098
|
-
cancelAnimationFrame(U), window.removeEventListener("resize",
|
|
15107
|
+
const U = requestAnimationFrame(() => requestAnimationFrame(J));
|
|
15108
|
+
return window.addEventListener("resize", J), window.addEventListener("scroll", J, !0), () => {
|
|
15109
|
+
cancelAnimationFrame(U), window.removeEventListener("resize", J), window.removeEventListener("scroll", J, !0);
|
|
15099
15110
|
};
|
|
15100
|
-
}, [D,
|
|
15111
|
+
}, [D, J]), F(() => {
|
|
15101
15112
|
if (!D) return;
|
|
15102
15113
|
const U = (v1) => {
|
|
15103
15114
|
const y1 = v1.target;
|
|
@@ -15114,11 +15125,13 @@ var t0 = (t) => {
|
|
|
15114
15125
|
children: [/* @__PURE__ */ c("div", {
|
|
15115
15126
|
className: "date-range-picker__nav",
|
|
15116
15127
|
children: [
|
|
15117
|
-
/* @__PURE__ */ e(
|
|
15118
|
-
|
|
15119
|
-
|
|
15120
|
-
|
|
15121
|
-
|
|
15128
|
+
/* @__PURE__ */ e(X, {
|
|
15129
|
+
title: "Previous month",
|
|
15130
|
+
children: /* @__PURE__ */ e(T, {
|
|
15131
|
+
variant: "default",
|
|
15132
|
+
icon: "caret-left",
|
|
15133
|
+
onClick: () => p(k0(s, -1))
|
|
15134
|
+
})
|
|
15122
15135
|
}),
|
|
15123
15136
|
/* @__PURE__ */ c("span", { children: [
|
|
15124
15137
|
s.toLocaleString("default", { month: "long" }),
|
|
@@ -15129,11 +15142,13 @@ var t0 = (t) => {
|
|
|
15129
15142
|
" ",
|
|
15130
15143
|
t1.getFullYear()
|
|
15131
15144
|
] }),
|
|
15132
|
-
/* @__PURE__ */ e(
|
|
15133
|
-
|
|
15134
|
-
|
|
15135
|
-
|
|
15136
|
-
|
|
15145
|
+
/* @__PURE__ */ e(X, {
|
|
15146
|
+
title: "Next month",
|
|
15147
|
+
children: /* @__PURE__ */ e(T, {
|
|
15148
|
+
variant: "default",
|
|
15149
|
+
icon: "caret-right",
|
|
15150
|
+
onClick: () => p(k0(s, 1))
|
|
15151
|
+
})
|
|
15137
15152
|
})
|
|
15138
15153
|
]
|
|
15139
15154
|
}), /* @__PURE__ */ c("div", {
|
|
@@ -15365,7 +15380,7 @@ function Pc(t) {
|
|
|
15365
15380
|
}
|
|
15366
15381
|
return r;
|
|
15367
15382
|
}
|
|
15368
|
-
var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children:
|
|
15383
|
+
var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: u1(() => Pc(t), [t]).map((r, l) => r.name === "plain" ? /* @__PURE__ */ e("span", { children: r.val }, l) : /* @__PURE__ */ e("span", {
|
|
15369
15384
|
className: `dv-token dv-token--${r.name}`,
|
|
15370
15385
|
children: r.val
|
|
15371
15386
|
}, l)) }), X0 = ({ line: t, side: r, type: l }) => {
|
|
@@ -15376,7 +15391,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
15376
15391
|
side: r
|
|
15377
15392
|
}) : l === "code" ? /* @__PURE__ */ e(jc, { text: a }) : /* @__PURE__ */ e(n1, { children: a });
|
|
15378
15393
|
}, ai = ({ oldValue: t, newValue: r, mode: l = "split", type: a = "text", oldTitle: h = "Before", newTitle: d = "After", showLineNumbers: o = !0 }) => {
|
|
15379
|
-
const m =
|
|
15394
|
+
const m = u1(() => Tc(t, r), [t, r]), i = u1(() => ({
|
|
15380
15395
|
added: m.filter((n) => n.kind === "added").length,
|
|
15381
15396
|
removed: m.filter((n) => n.kind === "removed").length
|
|
15382
15397
|
}), [m]);
|
|
@@ -15526,7 +15541,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
15526
15541
|
/* @__PURE__ */ c("div", {
|
|
15527
15542
|
className: "drawer__header",
|
|
15528
15543
|
children: [
|
|
15529
|
-
f && /* @__PURE__ */ e(
|
|
15544
|
+
f && /* @__PURE__ */ e(X, {
|
|
15530
15545
|
title: y,
|
|
15531
15546
|
position: "bottom",
|
|
15532
15547
|
children: /* @__PURE__ */ e(T, {
|
|
@@ -15539,7 +15554,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
15539
15554
|
}),
|
|
15540
15555
|
(n || s) && /* @__PURE__ */ c("h2", {
|
|
15541
15556
|
className: "drawer__title",
|
|
15542
|
-
children: [s && /* @__PURE__ */ e(
|
|
15557
|
+
children: [s && /* @__PURE__ */ e(P, { name: s }), n && /* @__PURE__ */ e("span", {
|
|
15543
15558
|
className: "drawer__title-text",
|
|
15544
15559
|
children: n
|
|
15545
15560
|
})]
|
|
@@ -15556,20 +15571,22 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
15556
15571
|
variant: _.variant ?? "ghost",
|
|
15557
15572
|
children: _.label
|
|
15558
15573
|
}), B = _.title ?? _.label;
|
|
15559
|
-
return B ? /* @__PURE__ */ e(
|
|
15574
|
+
return B ? /* @__PURE__ */ e(X, {
|
|
15560
15575
|
title: B,
|
|
15561
15576
|
position: "bottom",
|
|
15562
15577
|
children: R
|
|
15563
|
-
}, _.id) : /* @__PURE__ */ e(
|
|
15578
|
+
}, _.id) : /* @__PURE__ */ e(g1.Fragment, { children: R }, _.id);
|
|
15564
15579
|
})
|
|
15565
15580
|
}),
|
|
15566
|
-
!v && /* @__PURE__ */ e(
|
|
15567
|
-
className: "drawer__close",
|
|
15568
|
-
icon: "clear",
|
|
15569
|
-
onClick: r,
|
|
15570
|
-
size: "medium",
|
|
15581
|
+
!v && /* @__PURE__ */ e(X, {
|
|
15571
15582
|
title: "Close drawer",
|
|
15572
|
-
|
|
15583
|
+
children: /* @__PURE__ */ e(T, {
|
|
15584
|
+
className: "drawer__close",
|
|
15585
|
+
icon: "clear",
|
|
15586
|
+
onClick: r,
|
|
15587
|
+
size: "medium",
|
|
15588
|
+
variant: "ghost"
|
|
15589
|
+
})
|
|
15573
15590
|
})
|
|
15574
15591
|
]
|
|
15575
15592
|
}),
|
|
@@ -20649,7 +20666,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20649
20666
|
]
|
|
20650
20667
|
}
|
|
20651
20668
|
], ii = ({ value: t, onChange: r }) => {
|
|
20652
|
-
const [l, a] = z(""), [h, d] = z(S0[0].id), o =
|
|
20669
|
+
const [l, a] = z(""), [h, d] = z(S0[0].id), o = u1(() => {
|
|
20653
20670
|
if (!l.trim()) return null;
|
|
20654
20671
|
const i = l.toLowerCase();
|
|
20655
20672
|
return S0.flatMap((n) => n.emojis.filter((s) => Jc[s]?.some((p) => p.includes(i)) || n.name.toLowerCase().includes(i)));
|
|
@@ -20717,7 +20734,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20717
20734
|
}) : r;
|
|
20718
20735
|
}
|
|
20719
20736
|
}, oi = ({ label: t, accept: r, multiple: l = !1, showPreview: a = !0, onFiles: h }) => {
|
|
20720
|
-
const [d, o] = z(!1), [m, i] = z([]), n =
|
|
20737
|
+
const [d, o] = z(!1), [m, i] = z([]), n = K(null), [s, p] = z([]);
|
|
20721
20738
|
F(() => {
|
|
20722
20739
|
if (!a) return;
|
|
20723
20740
|
const v = m.filter((w) => w.type.startsWith("image/")).map((w) => URL.createObjectURL(w));
|
|
@@ -20725,7 +20742,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20725
20742
|
v.forEach((w) => URL.revokeObjectURL(w));
|
|
20726
20743
|
};
|
|
20727
20744
|
}, [m, a]);
|
|
20728
|
-
const u =
|
|
20745
|
+
const u = Z((v) => {
|
|
20729
20746
|
if (!v) return;
|
|
20730
20747
|
const w = l ? Array.from(v) : [v[0]].filter(Boolean);
|
|
20731
20748
|
i(w), h?.(w);
|
|
@@ -20783,7 +20800,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20783
20800
|
const [r, l] = z(!1);
|
|
20784
20801
|
if (t.length === 1) return /* @__PURE__ */ e("div", {
|
|
20785
20802
|
className: "float-button-container",
|
|
20786
|
-
children: /* @__PURE__ */ e(
|
|
20803
|
+
children: /* @__PURE__ */ e(X, {
|
|
20787
20804
|
title: t[0].label,
|
|
20788
20805
|
position: "left",
|
|
20789
20806
|
children: /* @__PURE__ */ e("button", {
|
|
@@ -20791,7 +20808,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20791
20808
|
onClick: t[0].onClick,
|
|
20792
20809
|
children: /* @__PURE__ */ e("span", {
|
|
20793
20810
|
className: "float-button__icon",
|
|
20794
|
-
children: /* @__PURE__ */ e(
|
|
20811
|
+
children: /* @__PURE__ */ e(P, {
|
|
20795
20812
|
name: t[0].icon,
|
|
20796
20813
|
size: "xxl"
|
|
20797
20814
|
})
|
|
@@ -20816,20 +20833,20 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20816
20833
|
onClick: () => h(d),
|
|
20817
20834
|
children: [/* @__PURE__ */ e("span", {
|
|
20818
20835
|
className: "float-button-menu__icon",
|
|
20819
|
-
children: /* @__PURE__ */ e(
|
|
20836
|
+
children: /* @__PURE__ */ e(P, { name: d.icon })
|
|
20820
20837
|
}), /* @__PURE__ */ e("span", {
|
|
20821
20838
|
className: "float-button-menu__label",
|
|
20822
20839
|
children: d.label
|
|
20823
20840
|
})]
|
|
20824
20841
|
}, `float-button-${o}`))
|
|
20825
|
-
})] }), /* @__PURE__ */ e(
|
|
20842
|
+
})] }), /* @__PURE__ */ e(X, {
|
|
20826
20843
|
title: "Actions menu",
|
|
20827
20844
|
children: /* @__PURE__ */ e("button", {
|
|
20828
20845
|
className: `float-button ${r ? "float-button--active" : ""}`,
|
|
20829
20846
|
onClick: a,
|
|
20830
20847
|
children: /* @__PURE__ */ e("span", {
|
|
20831
20848
|
className: "float-button__icon",
|
|
20832
|
-
children: /* @__PURE__ */ e(
|
|
20849
|
+
children: /* @__PURE__ */ e(P, {
|
|
20833
20850
|
name: r ? "clear" : "plus",
|
|
20834
20851
|
size: "xxl"
|
|
20835
20852
|
})
|
|
@@ -20841,7 +20858,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20841
20858
|
className: "loading",
|
|
20842
20859
|
children: /* @__PURE__ */ e("div", { className: "loading__spinner" })
|
|
20843
20860
|
}), hi = ({ isOpen: t, title: r = "Select a folder", initialPath: l, loadDirectory: a, onSelect: h, onClose: d, selectLabel: o = "Select this folder" }) => {
|
|
20844
|
-
const [m, i] = z(null), [n, s] = z(!1), [p, u] = z(""), g =
|
|
20861
|
+
const [m, i] = z(null), [n, s] = z(!1), [p, u] = z(""), g = Z(async (b) => {
|
|
20845
20862
|
s(!0);
|
|
20846
20863
|
try {
|
|
20847
20864
|
i(await a(b));
|
|
@@ -20951,7 +20968,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20951
20968
|
g(b.path);
|
|
20952
20969
|
},
|
|
20953
20970
|
children: [
|
|
20954
|
-
/* @__PURE__ */ e(
|
|
20971
|
+
/* @__PURE__ */ e(P, {
|
|
20955
20972
|
name: "folder",
|
|
20956
20973
|
size: "sm"
|
|
20957
20974
|
}),
|
|
@@ -20959,7 +20976,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20959
20976
|
className: "folder-browser__entry-name",
|
|
20960
20977
|
children: b.name
|
|
20961
20978
|
}),
|
|
20962
|
-
/* @__PURE__ */ e(
|
|
20979
|
+
/* @__PURE__ */ e(P, {
|
|
20963
20980
|
className: "folder-browser__entry-chevron",
|
|
20964
20981
|
name: "arrow-right",
|
|
20965
20982
|
size: "sm"
|
|
@@ -20971,7 +20988,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20971
20988
|
})
|
|
20972
20989
|
});
|
|
20973
20990
|
}, di = ({ children: t, onLoadMore: r, hasMore: l, isLoading: a = !1, threshold: h = 0, rootMargin: d = "0px", height: o, onScrollChange: m, endMessage: i, className: n }) => {
|
|
20974
|
-
const s =
|
|
20991
|
+
const s = K(null), p = K(null), u = K(null), g = Z(() => {
|
|
20975
20992
|
const v = s.current;
|
|
20976
20993
|
if (!v) return;
|
|
20977
20994
|
const { scrollTop: w, scrollHeight: f, clientHeight: y } = v, b = {
|
|
@@ -21163,7 +21180,7 @@ function ll(t) {
|
|
|
21163
21180
|
return t.filter((r) => r.type === "token").length;
|
|
21164
21181
|
}
|
|
21165
21182
|
var al = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, label: d, hint: o, error: m, highlighted: i, size: n = "md", variant: s = "default", disabled: p = !1, readOnly: u = !1, maskChar: g = "_", mono: v = !0, icon: w, suffix: f, className: y = "", id: b, name: C, autoComplete: x }, k) => {
|
|
21166
|
-
const H =
|
|
21183
|
+
const H = g1.useMemo(() => cl(t), [t]), L = g1.useMemo(() => ll(H), [H]), M = z0(), V = b ?? M, [S, _] = z(() => r !== void 0 ? r : ""), R = K(null);
|
|
21167
21184
|
B2(k, () => ({
|
|
21168
21185
|
focus: () => R.current?.focus(),
|
|
21169
21186
|
clear: () => {
|
|
@@ -21182,7 +21199,7 @@ var al = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, la
|
|
|
21182
21199
|
w ? "input-mask--has-icon" : "",
|
|
21183
21200
|
f ? "input-mask--has-suffix" : "",
|
|
21184
21201
|
y
|
|
21185
|
-
].filter(Boolean).join(" "), N =
|
|
21202
|
+
].filter(Boolean).join(" "), N = Z((I) => {
|
|
21186
21203
|
if (p || u) return;
|
|
21187
21204
|
if (I.key === "Backspace") {
|
|
21188
21205
|
I.preventDefault();
|
|
@@ -21192,13 +21209,13 @@ var al = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, la
|
|
|
21192
21209
|
}
|
|
21193
21210
|
if (I.key.length !== 1 || I.ctrlKey || I.metaKey || (I.preventDefault(), S.length >= L)) return;
|
|
21194
21211
|
const D = I.key;
|
|
21195
|
-
let
|
|
21212
|
+
let J = 0;
|
|
21196
21213
|
for (const d1 of H) if (d1.type === "token") {
|
|
21197
|
-
if (
|
|
21214
|
+
if (J === S.length) {
|
|
21198
21215
|
if (!J2[d1.key].test(D)) return;
|
|
21199
21216
|
break;
|
|
21200
21217
|
}
|
|
21201
|
-
|
|
21218
|
+
J++;
|
|
21202
21219
|
}
|
|
21203
21220
|
const { masked: h1, rawAccepted: U } = K0(S + D, H, g);
|
|
21204
21221
|
_(U), l?.(U, h1), U.length === L && a?.(U, h1);
|
|
@@ -21574,7 +21591,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21574
21591
|
variant: "info",
|
|
21575
21592
|
disabled: !u,
|
|
21576
21593
|
onClick: v,
|
|
21577
|
-
children: ["Next ", /* @__PURE__ */ e(
|
|
21594
|
+
children: ["Next ", /* @__PURE__ */ e(P, {
|
|
21578
21595
|
name: "next",
|
|
21579
21596
|
size: "sm"
|
|
21580
21597
|
})]
|
|
@@ -21723,7 +21740,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21723
21740
|
onClick: () => u(v),
|
|
21724
21741
|
children: [/* @__PURE__ */ e("span", {
|
|
21725
21742
|
className: "MenuHamburger_item__icon",
|
|
21726
|
-
children: v.icon ? /* @__PURE__ */ e(
|
|
21743
|
+
children: v.icon ? /* @__PURE__ */ e(P, { name: v.icon }) : null
|
|
21727
21744
|
}), /* @__PURE__ */ e("span", {
|
|
21728
21745
|
className: "MenuHamburger_item__label",
|
|
21729
21746
|
children: v.label
|
|
@@ -21734,16 +21751,16 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21734
21751
|
})]
|
|
21735
21752
|
});
|
|
21736
21753
|
}, M0 = (t) => Math.max(0, Math.min(1, t)), yi = ({ buckets: t, viewportStart: r, viewportEnd: l, onScrub: a, bands: h, caption: d, className: o = "" }) => {
|
|
21737
|
-
const m =
|
|
21754
|
+
const m = K(null), i = K(!1), n = Math.max(0, l - r), s = Math.max(1, ...t), p = Z((w) => {
|
|
21738
21755
|
const f = m.current;
|
|
21739
21756
|
if (!f) return;
|
|
21740
21757
|
const y = f.getBoundingClientRect(), b = M0((w - y.left) / y.width);
|
|
21741
21758
|
a(Math.max(0, Math.min(1 - n, b - n / 2)));
|
|
21742
|
-
}, [a, n]), u =
|
|
21759
|
+
}, [a, n]), u = Z((w) => {
|
|
21743
21760
|
i.current = !0, w.currentTarget.setPointerCapture(w.pointerId), p(w.clientX);
|
|
21744
|
-
}, [p]), g =
|
|
21761
|
+
}, [p]), g = Z((w) => {
|
|
21745
21762
|
i.current && p(w.clientX);
|
|
21746
|
-
}, [p]), v =
|
|
21763
|
+
}, [p]), v = Z((w) => {
|
|
21747
21764
|
i.current = !1, w.currentTarget.hasPointerCapture(w.pointerId) && w.currentTarget.releasePointerCapture(w.pointerId);
|
|
21748
21765
|
}, []);
|
|
21749
21766
|
return /* @__PURE__ */ c("div", {
|
|
@@ -21854,7 +21871,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21854
21871
|
disabled: v.disabled,
|
|
21855
21872
|
children: [v.icon && /* @__PURE__ */ e("span", {
|
|
21856
21873
|
className: "navbar__item-icon",
|
|
21857
|
-
children: v.icon ? /* @__PURE__ */ e(
|
|
21874
|
+
children: v.icon ? /* @__PURE__ */ e(P, { name: v.icon }) : null
|
|
21858
21875
|
}), /* @__PURE__ */ e("span", {
|
|
21859
21876
|
className: "navbar__item-label",
|
|
21860
21877
|
children: v.label
|
|
@@ -21900,7 +21917,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21900
21917
|
]
|
|
21901
21918
|
});
|
|
21902
21919
|
}, ml = ({ items: t, buttonLabel: r = "Alerts", panelTitle: l = "Notifications", emptyMessage: a = "No active notifications." }) => {
|
|
21903
|
-
const [h, d] = z(!1), [o, m] = z({ opacity: 0 }), i =
|
|
21920
|
+
const [h, d] = z(!1), [o, m] = z({ opacity: 0 }), i = K(null), n = K(null), s = t.some((u) => u.severity === "critical");
|
|
21904
21921
|
return F(() => {
|
|
21905
21922
|
if (!h || !i.current || !n.current) return;
|
|
21906
21923
|
const u = requestAnimationFrame(() => {
|
|
@@ -21995,7 +22012,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21995
22012
|
const l = t.variant ?? "default";
|
|
21996
22013
|
return l === "custom" ? t.customColor || x2.default : l === "random" ? ul(r) : x2[l];
|
|
21997
22014
|
}, xi = ({ className: t = "", data: r = [], emptyLabel: l, gap: a = 1, size: h = "medium", valueFormatter: d, valuePosition: o = "inside" }) => {
|
|
21998
|
-
const m = pl[h], i = o === "outside" ? Math.round(m * 0.18) : 0, n = m / 2, s = Math.max(n - Math.max(a, 1), 1), p = `${-i} ${-i} ${m + i * 2} ${m + i * 2}`, u =
|
|
22015
|
+
const m = pl[h], i = o === "outside" ? Math.round(m * 0.18) : 0, n = m / 2, s = Math.max(n - Math.max(a, 1), 1), p = `${-i} ${-i} ${m + i * 2} ${m + i * 2}`, u = u1(() => {
|
|
21999
22016
|
const x = r.filter((L) => Number.isFinite(L.value) && L.value > 0), k = x.reduce((L, M) => L + M.value, 0);
|
|
22000
22017
|
if (k <= 0) return [];
|
|
22001
22018
|
let H = 0;
|
|
@@ -22105,7 +22122,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22105
22122
|
`progress-bar-${i}`,
|
|
22106
22123
|
n && "progress-bar-striped",
|
|
22107
22124
|
t && n && "progress-bar-animated"
|
|
22108
|
-
].filter(Boolean).join(" "), g = `progress-bar__label progress-bar__label--${i} ${h ? `progress-bar__label-${h}` : ""}`, v = p > 100 ? 100 : p < 0 ? 0 : p, w =
|
|
22125
|
+
].filter(Boolean).join(" "), g = `progress-bar__label progress-bar__label--${i} ${h ? `progress-bar__label-${h}` : ""}`, v = p > 100 ? 100 : p < 0 ? 0 : p, w = u1(() => {
|
|
22109
22126
|
const x = [];
|
|
22110
22127
|
return m && x.push(`${E0(p)}%`), l && x.push(l), (a ? x : x.reverse()).join(" - ");
|
|
22111
22128
|
}, [
|
|
@@ -22143,7 +22160,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22143
22160
|
medium: 96,
|
|
22144
22161
|
large: 128
|
|
22145
22162
|
}, wl = (t) => typeof t == "number" ? t : e3[t], zi = ({ children: t, className: r = "", label: l, labelPosition: a = "below", rounded: h = !0, showPercentage: d = !0, size: o = "medium", state: m = "default", thickness: i, value: n }) => {
|
|
22146
|
-
const s = Math.min(Math.max(Number.isFinite(n) ? n : 0, 0), 100), p = wl(o), u = i ?? (p <= e3.small ? 6 : 8), g = Math.max((p - u) / 2, 1), v = 2 * Math.PI * g, w = v - s / 100 * v, f =
|
|
22163
|
+
const s = Math.min(Math.max(Number.isFinite(n) ? n : 0, 0), 100), p = wl(o), u = i ?? (p <= e3.small ? 6 : 8), g = Math.max((p - u) / 2, 1), v = 2 * Math.PI * g, w = v - s / 100 * v, f = u1(() => `${E0(s)}%`, [s]), y = t || (d ? f : a === "inside" ? l : null), b = a === "inside" && l && d && !t;
|
|
22147
22164
|
return /* @__PURE__ */ c("div", {
|
|
22148
22165
|
className: `progress-ring progress-ring--${m} ${r}`,
|
|
22149
22166
|
style: { "--progress-ring-size": `${p}px` },
|
|
@@ -22612,13 +22629,13 @@ ${h.textContent ?? ""}
|
|
|
22612
22629
|
</tbody>
|
|
22613
22630
|
</table><p><br></p>
|
|
22614
22631
|
`, zl = 100, Vl = (t, r, l) => {
|
|
22615
|
-
const a =
|
|
22632
|
+
const a = K([]), h = K([]);
|
|
22616
22633
|
return {
|
|
22617
|
-
snapshotForUndo:
|
|
22634
|
+
snapshotForUndo: Z(() => {
|
|
22618
22635
|
const d = t.current;
|
|
22619
22636
|
d && (a.current.push(d.innerHTML), a.current.length > zl && a.current.shift(), h.current = []);
|
|
22620
22637
|
}, [t]),
|
|
22621
|
-
undo:
|
|
22638
|
+
undo: Z(() => {
|
|
22622
22639
|
const d = t.current;
|
|
22623
22640
|
if (!d || a.current.length === 0) return;
|
|
22624
22641
|
h.current.push(d.innerHTML);
|
|
@@ -22631,7 +22648,7 @@ ${h.textContent ?? ""}
|
|
|
22631
22648
|
r,
|
|
22632
22649
|
l
|
|
22633
22650
|
]),
|
|
22634
|
-
redo:
|
|
22651
|
+
redo: Z(() => {
|
|
22635
22652
|
const d = t.current;
|
|
22636
22653
|
if (!d || h.current.length === 0) return;
|
|
22637
22654
|
a.current.push(d.innerHTML);
|
|
@@ -22646,7 +22663,7 @@ ${h.textContent ?? ""}
|
|
|
22646
22663
|
])
|
|
22647
22664
|
};
|
|
22648
22665
|
}, Nl = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
|
|
22649
|
-
const [a, h] = z(!1), [d, o] = z(""), [m, i] = z(""), n =
|
|
22666
|
+
const [a, h] = z(!1), [d, o] = z(""), [m, i] = z(""), n = K(null), s = K(null);
|
|
22650
22667
|
return {
|
|
22651
22668
|
showLinkPrompt: a,
|
|
22652
22669
|
linkUrl: d,
|
|
@@ -22654,7 +22671,7 @@ ${h.textContent ?? ""}
|
|
|
22654
22671
|
linkText: m,
|
|
22655
22672
|
setLinkText: i,
|
|
22656
22673
|
editingAnchorRef: s,
|
|
22657
|
-
openLinkPrompt:
|
|
22674
|
+
openLinkPrompt: Z((p) => {
|
|
22658
22675
|
if (p)
|
|
22659
22676
|
s.current = p, i(p.textContent ?? ""), o(p.getAttribute("href") ?? "");
|
|
22660
22677
|
else {
|
|
@@ -22664,7 +22681,7 @@ ${h.textContent ?? ""}
|
|
|
22664
22681
|
}
|
|
22665
22682
|
h(!0);
|
|
22666
22683
|
}, []),
|
|
22667
|
-
confirmLink:
|
|
22684
|
+
confirmLink: Z(() => {
|
|
22668
22685
|
const p = t.current;
|
|
22669
22686
|
if (p) {
|
|
22670
22687
|
if (p.focus(), s.current) {
|
|
@@ -22697,12 +22714,12 @@ ${h.textContent ?? ""}
|
|
|
22697
22714
|
r,
|
|
22698
22715
|
l
|
|
22699
22716
|
]),
|
|
22700
|
-
cancelLink:
|
|
22717
|
+
cancelLink: Z(() => {
|
|
22701
22718
|
h(!1), o(""), i(""), n.current = null, s.current = null;
|
|
22702
22719
|
}, [])
|
|
22703
22720
|
};
|
|
22704
22721
|
}, Hl = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
|
|
22705
|
-
const [a, h] = z(null), [d, o] = z(null), m =
|
|
22722
|
+
const [a, h] = z(null), [d, o] = z(null), m = Z(() => {
|
|
22706
22723
|
const v = window.getSelection();
|
|
22707
22724
|
if (!v || v.rangeCount === 0) return null;
|
|
22708
22725
|
let w = v.getRangeAt(0).commonAncestorContainer;
|
|
@@ -22714,7 +22731,7 @@ ${h.textContent ?? ""}
|
|
|
22714
22731
|
w = w.parentNode;
|
|
22715
22732
|
}
|
|
22716
22733
|
return null;
|
|
22717
|
-
}, [t]), i =
|
|
22734
|
+
}, [t]), i = Z((v) => {
|
|
22718
22735
|
const w = t.current;
|
|
22719
22736
|
if (!w) return;
|
|
22720
22737
|
const f = w.getBoundingClientRect(), y = v.getBoundingClientRect();
|
|
@@ -22722,9 +22739,9 @@ ${h.textContent ?? ""}
|
|
|
22722
22739
|
top: y.top - f.top - 36,
|
|
22723
22740
|
left: y.left - f.left
|
|
22724
22741
|
});
|
|
22725
|
-
}, [t]), n =
|
|
22742
|
+
}, [t]), n = Z(() => {
|
|
22726
22743
|
h(null), o(null);
|
|
22727
|
-
}, []), s =
|
|
22744
|
+
}, []), s = Z(() => {
|
|
22728
22745
|
if (!a) return;
|
|
22729
22746
|
r();
|
|
22730
22747
|
const v = m()?.closest("tr") ?? null, w = a.querySelector("tbody") ?? a, f = v ?? w.querySelector("tr:last-child");
|
|
@@ -22737,7 +22754,7 @@ ${h.textContent ?? ""}
|
|
|
22737
22754
|
m,
|
|
22738
22755
|
l,
|
|
22739
22756
|
i
|
|
22740
|
-
]), p =
|
|
22757
|
+
]), p = Z(() => {
|
|
22741
22758
|
if (!a) return;
|
|
22742
22759
|
r();
|
|
22743
22760
|
const v = m()?.closest("tr") ?? null, w = a.querySelector("tbody") ?? a, f = v ?? w.querySelector("tr:first-child");
|
|
@@ -22750,7 +22767,7 @@ ${h.textContent ?? ""}
|
|
|
22750
22767
|
m,
|
|
22751
22768
|
l,
|
|
22752
22769
|
i
|
|
22753
|
-
]), u =
|
|
22770
|
+
]), u = Z(() => {
|
|
22754
22771
|
if (!a) return;
|
|
22755
22772
|
const v = Array.from(a.querySelectorAll("tbody tr"));
|
|
22756
22773
|
v.length <= 1 || (r(), (m()?.closest("tr") ?? v[v.length - 1]).remove(), l(), i(a));
|
|
@@ -22760,7 +22777,7 @@ ${h.textContent ?? ""}
|
|
|
22760
22777
|
m,
|
|
22761
22778
|
l,
|
|
22762
22779
|
i
|
|
22763
|
-
]), g =
|
|
22780
|
+
]), g = Z(() => {
|
|
22764
22781
|
if (!a) return;
|
|
22765
22782
|
r();
|
|
22766
22783
|
const v = m(), w = v ? Array.from(v.parentElement.querySelectorAll("td,th")).indexOf(v) : -1;
|
|
@@ -22785,7 +22802,7 @@ ${h.textContent ?? ""}
|
|
|
22785
22802
|
addRowAbove: p,
|
|
22786
22803
|
addRowBelow: s,
|
|
22787
22804
|
removeRow: u,
|
|
22788
|
-
addColumnLeft:
|
|
22805
|
+
addColumnLeft: Z(() => {
|
|
22789
22806
|
if (!a) return;
|
|
22790
22807
|
r();
|
|
22791
22808
|
const v = m(), w = v ? Array.from(v.parentElement.querySelectorAll("td,th")).indexOf(v) : 0;
|
|
@@ -22803,7 +22820,7 @@ ${h.textContent ?? ""}
|
|
|
22803
22820
|
i
|
|
22804
22821
|
]),
|
|
22805
22822
|
addColumnRight: g,
|
|
22806
|
-
removeColumn:
|
|
22823
|
+
removeColumn: Z(() => {
|
|
22807
22824
|
if (!a) return;
|
|
22808
22825
|
const v = Array.from(a.querySelectorAll("tr"));
|
|
22809
22826
|
if ((v[0]?.querySelectorAll("td,th").length ?? 0) <= 1) return;
|
|
@@ -22820,7 +22837,7 @@ ${h.textContent ?? ""}
|
|
|
22820
22837
|
l,
|
|
22821
22838
|
i
|
|
22822
22839
|
]),
|
|
22823
|
-
deleteTable:
|
|
22840
|
+
deleteTable: Z(() => {
|
|
22824
22841
|
a && (r(), a.remove(), n(), l());
|
|
22825
22842
|
}, [
|
|
22826
22843
|
a,
|
|
@@ -22877,7 +22894,7 @@ ${h.textContent ?? ""}
|
|
|
22877
22894
|
/* @__PURE__ */ c("div", {
|
|
22878
22895
|
className: "rte-table-toolbar-group",
|
|
22879
22896
|
children: [
|
|
22880
|
-
/* @__PURE__ */ e(
|
|
22897
|
+
/* @__PURE__ */ e(X, {
|
|
22881
22898
|
title: "Add row above",
|
|
22882
22899
|
children: /* @__PURE__ */ e("button", {
|
|
22883
22900
|
type: "button",
|
|
@@ -22886,7 +22903,7 @@ ${h.textContent ?? ""}
|
|
|
22886
22903
|
children: "↑ Row"
|
|
22887
22904
|
})
|
|
22888
22905
|
}),
|
|
22889
|
-
/* @__PURE__ */ e(
|
|
22906
|
+
/* @__PURE__ */ e(X, {
|
|
22890
22907
|
title: "Add row below",
|
|
22891
22908
|
children: /* @__PURE__ */ e("button", {
|
|
22892
22909
|
type: "button",
|
|
@@ -22895,7 +22912,7 @@ ${h.textContent ?? ""}
|
|
|
22895
22912
|
children: "↓ Row"
|
|
22896
22913
|
})
|
|
22897
22914
|
}),
|
|
22898
|
-
/* @__PURE__ */ e(
|
|
22915
|
+
/* @__PURE__ */ e(X, {
|
|
22899
22916
|
title: "Remove last row",
|
|
22900
22917
|
children: /* @__PURE__ */ e("button", {
|
|
22901
22918
|
type: "button",
|
|
@@ -22910,7 +22927,7 @@ ${h.textContent ?? ""}
|
|
|
22910
22927
|
/* @__PURE__ */ c("div", {
|
|
22911
22928
|
className: "rte-table-toolbar-group",
|
|
22912
22929
|
children: [
|
|
22913
|
-
/* @__PURE__ */ e(
|
|
22930
|
+
/* @__PURE__ */ e(X, {
|
|
22914
22931
|
title: "Add column left",
|
|
22915
22932
|
children: /* @__PURE__ */ e("button", {
|
|
22916
22933
|
type: "button",
|
|
@@ -22919,7 +22936,7 @@ ${h.textContent ?? ""}
|
|
|
22919
22936
|
children: "← Col"
|
|
22920
22937
|
})
|
|
22921
22938
|
}),
|
|
22922
|
-
/* @__PURE__ */ e(
|
|
22939
|
+
/* @__PURE__ */ e(X, {
|
|
22923
22940
|
title: "Add column right",
|
|
22924
22941
|
children: /* @__PURE__ */ e("button", {
|
|
22925
22942
|
type: "button",
|
|
@@ -22928,7 +22945,7 @@ ${h.textContent ?? ""}
|
|
|
22928
22945
|
children: "→ Col"
|
|
22929
22946
|
})
|
|
22930
22947
|
}),
|
|
22931
|
-
/* @__PURE__ */ e(
|
|
22948
|
+
/* @__PURE__ */ e(X, {
|
|
22932
22949
|
title: "Remove last column",
|
|
22933
22950
|
children: /* @__PURE__ */ e("button", {
|
|
22934
22951
|
type: "button",
|
|
@@ -22942,7 +22959,7 @@ ${h.textContent ?? ""}
|
|
|
22942
22959
|
/* @__PURE__ */ e("div", { className: "rte-table-toolbar-divider" }),
|
|
22943
22960
|
/* @__PURE__ */ e("div", {
|
|
22944
22961
|
className: "rte-table-toolbar-group",
|
|
22945
|
-
children: /* @__PURE__ */ e(
|
|
22962
|
+
children: /* @__PURE__ */ e(X, {
|
|
22946
22963
|
title: "Delete table",
|
|
22947
22964
|
children: /* @__PURE__ */ e("button", {
|
|
22948
22965
|
type: "button",
|
|
@@ -22958,7 +22975,7 @@ ${h.textContent ?? ""}
|
|
|
22958
22975
|
children: [
|
|
22959
22976
|
/* @__PURE__ */ e("div", {
|
|
22960
22977
|
className: "rte-toolbar-group",
|
|
22961
|
-
children: xl.map((n) => /* @__PURE__ */ e(
|
|
22978
|
+
children: xl.map((n) => /* @__PURE__ */ e(X, {
|
|
22962
22979
|
title: n.title,
|
|
22963
22980
|
children: /* @__PURE__ */ e("button", {
|
|
22964
22981
|
type: "button",
|
|
@@ -22973,7 +22990,7 @@ ${h.textContent ?? ""}
|
|
|
22973
22990
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22974
22991
|
/* @__PURE__ */ c("div", {
|
|
22975
22992
|
className: "rte-toolbar-group",
|
|
22976
|
-
children: [Ml.map((n) => /* @__PURE__ */ e(
|
|
22993
|
+
children: [Ml.map((n) => /* @__PURE__ */ e(X, {
|
|
22977
22994
|
title: n.title,
|
|
22978
22995
|
children: /* @__PURE__ */ e("button", {
|
|
22979
22996
|
type: "button",
|
|
@@ -22983,7 +23000,7 @@ ${h.textContent ?? ""}
|
|
|
22983
23000
|
},
|
|
22984
23001
|
children: n.label
|
|
22985
23002
|
})
|
|
22986
|
-
}, n.command)), /* @__PURE__ */ e(
|
|
23003
|
+
}, n.command)), /* @__PURE__ */ e(X, {
|
|
22987
23004
|
title: "Task List",
|
|
22988
23005
|
children: /* @__PURE__ */ c("button", {
|
|
22989
23006
|
type: "button",
|
|
@@ -22991,14 +23008,14 @@ ${h.textContent ?? ""}
|
|
|
22991
23008
|
onMouseDown: (n) => {
|
|
22992
23009
|
n.preventDefault(), h();
|
|
22993
23010
|
},
|
|
22994
|
-
children: [/* @__PURE__ */ e(
|
|
23011
|
+
children: [/* @__PURE__ */ e(P, { name: "checkmark" }), " List"]
|
|
22995
23012
|
})
|
|
22996
23013
|
})]
|
|
22997
23014
|
}),
|
|
22998
23015
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22999
23016
|
/* @__PURE__ */ e("div", {
|
|
23000
23017
|
className: "rte-toolbar-group",
|
|
23001
|
-
children: kl.map((n) => /* @__PURE__ */ e(
|
|
23018
|
+
children: kl.map((n) => /* @__PURE__ */ e(X, {
|
|
23002
23019
|
title: `Heading ${n}`,
|
|
23003
23020
|
children: /* @__PURE__ */ c("button", {
|
|
23004
23021
|
type: "button",
|
|
@@ -23013,7 +23030,7 @@ ${h.textContent ?? ""}
|
|
|
23013
23030
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
23014
23031
|
/* @__PURE__ */ e("div", {
|
|
23015
23032
|
className: "rte-toolbar-group",
|
|
23016
|
-
children: /* @__PURE__ */ e(
|
|
23033
|
+
children: /* @__PURE__ */ e(X, {
|
|
23017
23034
|
title: "Insert Link",
|
|
23018
23035
|
children: /* @__PURE__ */ c("button", {
|
|
23019
23036
|
type: "button",
|
|
@@ -23021,13 +23038,13 @@ ${h.textContent ?? ""}
|
|
|
23021
23038
|
onMouseDown: (n) => {
|
|
23022
23039
|
n.preventDefault(), d();
|
|
23023
23040
|
},
|
|
23024
|
-
children: [/* @__PURE__ */ e(
|
|
23041
|
+
children: [/* @__PURE__ */ e(P, { name: "link" }), " Link"]
|
|
23025
23042
|
})
|
|
23026
23043
|
})
|
|
23027
23044
|
}),
|
|
23028
23045
|
t && /* @__PURE__ */ c(n1, { children: [/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }), /* @__PURE__ */ c("div", {
|
|
23029
23046
|
className: "rte-toolbar-group",
|
|
23030
|
-
children: [_l.map((n) => /* @__PURE__ */ e(
|
|
23047
|
+
children: [_l.map((n) => /* @__PURE__ */ e(X, {
|
|
23031
23048
|
title: n.title,
|
|
23032
23049
|
children: /* @__PURE__ */ e("button", {
|
|
23033
23050
|
type: "button",
|
|
@@ -23037,7 +23054,7 @@ ${h.textContent ?? ""}
|
|
|
23037
23054
|
},
|
|
23038
23055
|
children: n.label
|
|
23039
23056
|
})
|
|
23040
|
-
}, n.command + (n.value ?? ""))), /* @__PURE__ */ e(
|
|
23057
|
+
}, n.command + (n.value ?? ""))), /* @__PURE__ */ e(X, {
|
|
23041
23058
|
title: "Insert Table",
|
|
23042
23059
|
children: /* @__PURE__ */ e("button", {
|
|
23043
23060
|
type: "button",
|
|
@@ -23051,14 +23068,14 @@ ${h.textContent ?? ""}
|
|
|
23051
23068
|
})] })
|
|
23052
23069
|
]
|
|
23053
23070
|
}), Bi = ({ advanced: t = !1, error: r, format: l = "html", id: a, label: h, onBlur: d, onChange: o, placeholder: m, required: i = !1, value: n }) => {
|
|
23054
|
-
const s =
|
|
23071
|
+
const s = K(null), p = K(!1), u = K(null), [g, v] = z(/* @__PURE__ */ new Set());
|
|
23055
23072
|
F(() => {
|
|
23056
23073
|
const r1 = s.current;
|
|
23057
23074
|
if (!r1 || p.current) return;
|
|
23058
23075
|
const s1 = n ?? "";
|
|
23059
23076
|
r1.innerHTML !== s1 && (r1.innerHTML = s1);
|
|
23060
23077
|
}, [n]);
|
|
23061
|
-
const w =
|
|
23078
|
+
const w = Z(() => {
|
|
23062
23079
|
const r1 = s.current;
|
|
23063
23080
|
if (!r1 || !o) return;
|
|
23064
23081
|
p.current = !0;
|
|
@@ -23070,11 +23087,11 @@ ${h.textContent ?? ""}
|
|
|
23070
23087
|
editorRef: s,
|
|
23071
23088
|
snapshotForUndo: f,
|
|
23072
23089
|
emitChange: w
|
|
23073
|
-
}), { activeTable: R, tableToolbarPos: B, showTableToolbar: E, hideTableToolbar: O, addRowAbove: o1, addRowBelow: N, removeRow: q, addColumnLeft: t1, addColumnRight: I, removeColumn: D, deleteTable:
|
|
23090
|
+
}), { activeTable: R, tableToolbarPos: B, showTableToolbar: E, hideTableToolbar: O, addRowAbove: o1, addRowBelow: N, removeRow: q, addColumnLeft: t1, addColumnRight: I, removeColumn: D, deleteTable: J } = Hl({
|
|
23074
23091
|
editorRef: s,
|
|
23075
23092
|
snapshotForUndo: f,
|
|
23076
23093
|
emitChange: w
|
|
23077
|
-
}), h1 =
|
|
23094
|
+
}), h1 = Z(() => {
|
|
23078
23095
|
const r1 = [
|
|
23079
23096
|
"bold",
|
|
23080
23097
|
"italic",
|
|
@@ -23104,12 +23121,12 @@ ${h.textContent ?? ""}
|
|
|
23104
23121
|
}
|
|
23105
23122
|
}
|
|
23106
23123
|
v(s1);
|
|
23107
|
-
}, []), U =
|
|
23124
|
+
}, []), U = Z((r1, s1) => {
|
|
23108
23125
|
s.current?.focus(), document.execCommand(r1, !1, s1), h1(), w();
|
|
23109
|
-
}, [w, h1]), d1 =
|
|
23126
|
+
}, [w, h1]), d1 = Z((r1) => {
|
|
23110
23127
|
const s1 = `h${r1}`, A = g.has(s1);
|
|
23111
23128
|
U("formatBlock", A ? "p" : s1);
|
|
23112
|
-
}, [g, U]), v1 =
|
|
23129
|
+
}, [g, U]), v1 = Z(() => {
|
|
23113
23130
|
f();
|
|
23114
23131
|
const r1 = s.current;
|
|
23115
23132
|
if (!r1) return;
|
|
@@ -23126,9 +23143,9 @@ ${h.textContent ?? ""}
|
|
|
23126
23143
|
x1.className = "rte-task-list", x1.appendChild(j), A.deleteContents(), A.insertNode(x1);
|
|
23127
23144
|
const M1 = document.createRange();
|
|
23128
23145
|
M1.setStart(m1, 1), M1.collapse(!0), s1.removeAllRanges(), s1.addRange(M1), w();
|
|
23129
|
-
}, [f, w]), y1 =
|
|
23146
|
+
}, [f, w]), y1 = Z(() => {
|
|
23130
23147
|
U("insertHTML", Ll);
|
|
23131
|
-
}, [U]), _1 =
|
|
23148
|
+
}, [U]), _1 = Z((r1) => {
|
|
23132
23149
|
const s1 = r1.target, A = s1.closest("a");
|
|
23133
23150
|
if (A) {
|
|
23134
23151
|
r1.preventDefault(), V(A), h1();
|
|
@@ -23141,7 +23158,7 @@ ${h.textContent ?? ""}
|
|
|
23141
23158
|
h1,
|
|
23142
23159
|
E,
|
|
23143
23160
|
O
|
|
23144
|
-
]), C1 =
|
|
23161
|
+
]), C1 = Z((r1) => {
|
|
23145
23162
|
if ((r1.ctrlKey || r1.metaKey) && r1.key === "z") {
|
|
23146
23163
|
r1.preventDefault(), r1.shiftKey ? b() : y();
|
|
23147
23164
|
return;
|
|
@@ -23222,7 +23239,7 @@ ${h.textContent ?? ""}
|
|
|
23222
23239
|
addColumnLeft: t1,
|
|
23223
23240
|
addColumnRight: I,
|
|
23224
23241
|
removeColumn: D,
|
|
23225
|
-
deleteTable:
|
|
23242
|
+
deleteTable: J
|
|
23226
23243
|
}),
|
|
23227
23244
|
/* @__PURE__ */ e("div", {
|
|
23228
23245
|
ref: s,
|
|
@@ -23257,7 +23274,7 @@ ${h.textContent ?? ""}
|
|
|
23257
23274
|
o.removeEventListener("scroll", m);
|
|
23258
23275
|
};
|
|
23259
23276
|
}, [t, r]);
|
|
23260
|
-
const d =
|
|
23277
|
+
const d = Z(() => {
|
|
23261
23278
|
t ? t.scrollTo({
|
|
23262
23279
|
top: 0,
|
|
23263
23280
|
behavior: "smooth"
|
|
@@ -23266,7 +23283,7 @@ ${h.textContent ?? ""}
|
|
|
23266
23283
|
behavior: "smooth"
|
|
23267
23284
|
});
|
|
23268
23285
|
}, [t]);
|
|
23269
|
-
return a ? /* @__PURE__ */ e(
|
|
23286
|
+
return a ? /* @__PURE__ */ e(X, {
|
|
23270
23287
|
title: "Scroll to top",
|
|
23271
23288
|
children: /* @__PURE__ */ e("button", {
|
|
23272
23289
|
className: `scroll-to-top${l ? ` ${l}` : ""}`,
|
|
@@ -23282,7 +23299,7 @@ ${h.textContent ?? ""}
|
|
|
23282
23299
|
if (!t) throw new Error("useSidebar must be used within a SidebarProvider");
|
|
23283
23300
|
return t;
|
|
23284
23301
|
}, Ei = ({ children: t }) => {
|
|
23285
|
-
const { isMobile: r } = g0(), [l, a] = z(!1), h =
|
|
23302
|
+
const { isMobile: r } = g0(), [l, a] = z(!1), h = Z(() => a((i) => !i), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = u1(() => ({
|
|
23286
23303
|
isMobile: r,
|
|
23287
23304
|
isOpen: l,
|
|
23288
23305
|
toggle: h,
|
|
@@ -23325,7 +23342,7 @@ ${h.textContent ?? ""}
|
|
|
23325
23342
|
children: [
|
|
23326
23343
|
M.icon && /* @__PURE__ */ e("span", {
|
|
23327
23344
|
className: "sidebar__link-icon",
|
|
23328
|
-
children: /* @__PURE__ */ e(
|
|
23345
|
+
children: /* @__PURE__ */ e(P, { name: M.icon })
|
|
23329
23346
|
}),
|
|
23330
23347
|
M.emoji && /* @__PURE__ */ e("span", {
|
|
23331
23348
|
className: "sidebar__link-emoji",
|
|
@@ -23339,7 +23356,7 @@ ${h.textContent ?? ""}
|
|
|
23339
23356
|
className: "sidebar__link-label",
|
|
23340
23357
|
children: M.label
|
|
23341
23358
|
}),
|
|
23342
|
-
M.count !== void 0 && /* @__PURE__ */ e(
|
|
23359
|
+
M.count !== void 0 && /* @__PURE__ */ e(X, {
|
|
23343
23360
|
title: M.countLabel,
|
|
23344
23361
|
children: /* @__PURE__ */ e("span", {
|
|
23345
23362
|
className: "sidebar__link-count",
|
|
@@ -23378,7 +23395,7 @@ ${h.textContent ?? ""}
|
|
|
23378
23395
|
className: "sidebar__section-title-row",
|
|
23379
23396
|
children: [M.icon && /* @__PURE__ */ e("span", {
|
|
23380
23397
|
className: "sidebar__section-icon",
|
|
23381
|
-
children: /* @__PURE__ */ e(
|
|
23398
|
+
children: /* @__PURE__ */ e(P, { name: M.icon })
|
|
23382
23399
|
}), /* @__PURE__ */ c("div", {
|
|
23383
23400
|
className: "sidebar__section-copy",
|
|
23384
23401
|
children: [M.title && /* @__PURE__ */ e("span", {
|
|
@@ -23494,11 +23511,11 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23494
23511
|
children: s
|
|
23495
23512
|
}) : /* @__PURE__ */ e(n1, { children: s });
|
|
23496
23513
|
}, Gi = ({ children: t, panel: r, isPanelOpen: l, onPanelClose: a, panelTitle: h, defaultLeftPercent: d = 55, minLeftPercent: o = 25, minRightPercent: m = 20, className: i = "" }) => {
|
|
23497
|
-
const [n, s] = z(d), p =
|
|
23514
|
+
const [n, s] = z(d), p = K(null), u = K(!1);
|
|
23498
23515
|
F(() => (l ? document.body.classList.add("split-panel-active") : document.body.classList.remove("split-panel-active"), () => {
|
|
23499
23516
|
document.body.classList.remove("split-panel-active");
|
|
23500
23517
|
}), [l]);
|
|
23501
|
-
const g =
|
|
23518
|
+
const g = Z((v) => {
|
|
23502
23519
|
v.preventDefault(), u.current = !0, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
23503
23520
|
const w = (y) => {
|
|
23504
23521
|
if (!u.current || !p.current) return;
|
|
@@ -23535,7 +23552,7 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23535
23552
|
children: [h && /* @__PURE__ */ e("h2", {
|
|
23536
23553
|
className: "split-panel__right-title",
|
|
23537
23554
|
children: h
|
|
23538
|
-
}), /* @__PURE__ */ e(
|
|
23555
|
+
}), /* @__PURE__ */ e(X, {
|
|
23539
23556
|
title: "Close panel",
|
|
23540
23557
|
children: /* @__PURE__ */ e("button", {
|
|
23541
23558
|
className: "split-panel__close",
|
|
@@ -23557,7 +23574,7 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23557
23574
|
const a = `${E0(r)}%`;
|
|
23558
23575
|
return t.label && l ? `${t.label} - ${a}` : t.label ? t.label : a;
|
|
23559
23576
|
}, Zi = ({ animated: t = !1, height: r, normalize: l = !0, orientation: a = "horizontal", segments: h, separators: d = !1, showLabels: o = !0, showPercentage: m = !0, thin: i = !1, width: n }) => {
|
|
23560
|
-
const s =
|
|
23577
|
+
const s = u1(() => {
|
|
23561
23578
|
if (h.length === 0) return [];
|
|
23562
23579
|
if (!l) return h.map((v) => Math.max(0, v.value));
|
|
23563
23580
|
const g = h.reduce((v, w) => v + Math.max(0, w.value), 0);
|
|
@@ -23575,7 +23592,7 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23575
23592
|
const w = s[v];
|
|
23576
23593
|
if (w <= 0) return null;
|
|
23577
23594
|
const f = g.state || "default", y = g.pattern || "solid", b = El(g, w, m);
|
|
23578
|
-
return /* @__PURE__ */ e(
|
|
23595
|
+
return /* @__PURE__ */ e(X, {
|
|
23579
23596
|
title: b,
|
|
23580
23597
|
children: /* @__PURE__ */ e("div", {
|
|
23581
23598
|
className: [
|
|
@@ -23635,11 +23652,11 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23635
23652
|
function _2({ state: t }) {
|
|
23636
23653
|
return /* @__PURE__ */ e("span", {
|
|
23637
23654
|
className: `suggestions-list__sort-icon suggestions-list__sort-icon--${t}`,
|
|
23638
|
-
children: /* @__PURE__ */ e(
|
|
23655
|
+
children: /* @__PURE__ */ e(P, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
23639
23656
|
});
|
|
23640
23657
|
}
|
|
23641
23658
|
var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h = !1, onRowClick: d }) => {
|
|
23642
|
-
const [o, m] = z(!1), [i, n] = z(!1), [s, p] = z(""), [u, g] = z(null), [v, w] = z("asc"), f =
|
|
23659
|
+
const [o, m] = z(!1), [i, n] = z(!1), [s, p] = z(""), [u, g] = z(null), [v, w] = z("asc"), f = u1(() => s.trim() ? t.filter((M) => M.name.toLowerCase().includes(s.toLowerCase())) : t, [t, s]), y = u1(() => {
|
|
23643
23660
|
if (!u) return f;
|
|
23644
23661
|
const M = [...f].sort((V, S) => {
|
|
23645
23662
|
const _ = u === "name" ? V.name : V.value, R = u === "name" ? S.name : S.value;
|
|
@@ -23650,16 +23667,16 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
23650
23667
|
f,
|
|
23651
23668
|
u,
|
|
23652
23669
|
v
|
|
23653
|
-
]), b =
|
|
23670
|
+
]), b = u1(() => i ? [...y] : y.slice(0, L2), [y, i]), C = y.length > L2, x = () => {
|
|
23654
23671
|
m(!o);
|
|
23655
|
-
}, k =
|
|
23672
|
+
}, k = Z(() => {
|
|
23656
23673
|
n(!i);
|
|
23657
23674
|
}, [i]), H = (M) => {
|
|
23658
23675
|
u === M ? w((V) => V === "asc" ? "desc" : "asc") : (g(M), w("asc"));
|
|
23659
|
-
}, L =
|
|
23676
|
+
}, L = u1(() => /* @__PURE__ */ c("div", {
|
|
23660
23677
|
className: "list-suggestions-list",
|
|
23661
23678
|
children: [
|
|
23662
|
-
/* @__PURE__ */ e(
|
|
23679
|
+
/* @__PURE__ */ e(X, {
|
|
23663
23680
|
title: a,
|
|
23664
23681
|
children: /* @__PURE__ */ e("legend", { children: l || "Suggestions" })
|
|
23665
23682
|
}),
|
|
@@ -24287,11 +24304,11 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24287
24304
|
C.fontUrlMono ? (H || (H = document.createElement("link"), H.id = H2, H.rel = "stylesheet", document.head.appendChild(H)), H.href = C.fontUrlMono) : H?.remove();
|
|
24288
24305
|
}
|
|
24289
24306
|
}, [p]);
|
|
24290
|
-
const g =
|
|
24307
|
+
const g = Z((C) => {
|
|
24291
24308
|
o(C);
|
|
24292
|
-
}, []), v =
|
|
24309
|
+
}, []), v = Z((C) => {
|
|
24293
24310
|
i(C);
|
|
24294
|
-
}, []), w =
|
|
24311
|
+
}, []), w = Z(() => {
|
|
24295
24312
|
o(null), i(null);
|
|
24296
24313
|
}, []);
|
|
24297
24314
|
F(() => {
|
|
@@ -24315,7 +24332,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24315
24332
|
d,
|
|
24316
24333
|
h
|
|
24317
24334
|
]);
|
|
24318
|
-
const f = p0.findIndex((C) => C.value === p), y = f >= 0 ? p0[f].label : p, b =
|
|
24335
|
+
const f = p0.findIndex((C) => C.value === p), y = f >= 0 ? p0[f].label : p, b = Z(() => {
|
|
24319
24336
|
a?.({
|
|
24320
24337
|
theme: p,
|
|
24321
24338
|
effects: u
|
|
@@ -24348,13 +24365,15 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24348
24365
|
boxShadow: "0 4px 16px rgba(0, 0, 0, 0.3)"
|
|
24349
24366
|
},
|
|
24350
24367
|
children: [
|
|
24351
|
-
/* @__PURE__ */ e(
|
|
24352
|
-
onClick: () => {
|
|
24353
|
-
navigator.clipboard.writeText(y), s(!0), window.setTimeout(() => s(!1), 1500);
|
|
24354
|
-
},
|
|
24355
|
-
style: { cursor: "pointer" },
|
|
24368
|
+
/* @__PURE__ */ e(X, {
|
|
24356
24369
|
title: "Copy theme name",
|
|
24357
|
-
children:
|
|
24370
|
+
children: /* @__PURE__ */ e("span", {
|
|
24371
|
+
onClick: () => {
|
|
24372
|
+
navigator.clipboard.writeText(y), s(!0), window.setTimeout(() => s(!1), 1500);
|
|
24373
|
+
},
|
|
24374
|
+
style: { cursor: "pointer" },
|
|
24375
|
+
children: y
|
|
24376
|
+
})
|
|
24358
24377
|
}),
|
|
24359
24378
|
/* @__PURE__ */ c("span", {
|
|
24360
24379
|
style: {
|
|
@@ -24449,7 +24468,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24449
24468
|
label: "Glow",
|
|
24450
24469
|
value: "glow-effect"
|
|
24451
24470
|
}
|
|
24452
|
-
], [f, y] = z(""), [b, C] = z(!1), [x, k] = z(!1), [H, L] = z("all"), M =
|
|
24471
|
+
], [f, y] = z(""), [b, C] = z(!1), [x, k] = z(!1), [H, L] = z("all"), M = K(null), V = K(!1), S = a?.trim().toLowerCase() ?? "", _ = u1(() => {
|
|
24453
24472
|
let N = p0;
|
|
24454
24473
|
if (l && l.length > 0) {
|
|
24455
24474
|
const q = new Set(l);
|
|
@@ -24698,9 +24717,9 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24698
24717
|
className: "tips-of-the-day",
|
|
24699
24718
|
children: [
|
|
24700
24719
|
/* @__PURE__ */ c("h3", { children: [
|
|
24701
|
-
/* @__PURE__ */ e(
|
|
24720
|
+
/* @__PURE__ */ e(P, { name: "sparkle" }),
|
|
24702
24721
|
" Tip Of The Day ",
|
|
24703
|
-
/* @__PURE__ */ e(
|
|
24722
|
+
/* @__PURE__ */ e(P, { name: "sparkle" })
|
|
24704
24723
|
] }),
|
|
24705
24724
|
" ",
|
|
24706
24725
|
/* @__PURE__ */ e("h4", { children: t[r] })
|
|
@@ -24723,12 +24742,12 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24723
24742
|
onClick: o.onClick,
|
|
24724
24743
|
children: o.label
|
|
24725
24744
|
}),
|
|
24726
|
-
h && /* @__PURE__ */ e(
|
|
24745
|
+
h && /* @__PURE__ */ e(X, {
|
|
24727
24746
|
title: "Close",
|
|
24728
24747
|
children: /* @__PURE__ */ e("button", {
|
|
24729
24748
|
className: "toast__close",
|
|
24730
24749
|
onClick: l,
|
|
24731
|
-
children: /* @__PURE__ */ e(
|
|
24750
|
+
children: /* @__PURE__ */ e(P, {
|
|
24732
24751
|
name: "clear",
|
|
24733
24752
|
size: "sm"
|
|
24734
24753
|
})
|
|
@@ -24746,7 +24765,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24746
24765
|
onClick: () => l(m.key),
|
|
24747
24766
|
children: [m.icon && /* @__PURE__ */ e("span", {
|
|
24748
24767
|
className: "toggle-buttons__card-icon",
|
|
24749
|
-
children: /* @__PURE__ */ e(
|
|
24768
|
+
children: /* @__PURE__ */ e(P, {
|
|
24750
24769
|
name: m.icon,
|
|
24751
24770
|
size: "xl"
|
|
24752
24771
|
})
|
|
@@ -24755,7 +24774,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24755
24774
|
children: m.label
|
|
24756
24775
|
})]
|
|
24757
24776
|
}, m.key);
|
|
24758
|
-
return m.description ? /* @__PURE__ */ e(
|
|
24777
|
+
return m.description ? /* @__PURE__ */ e(X, {
|
|
24759
24778
|
title: m.description,
|
|
24760
24779
|
children: i
|
|
24761
24780
|
}, m.key) : i;
|
|
@@ -24803,17 +24822,19 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24803
24822
|
return /* @__PURE__ */ c("div", {
|
|
24804
24823
|
className: u,
|
|
24805
24824
|
children: [
|
|
24806
|
-
s && /* @__PURE__ */
|
|
24807
|
-
className: "memobit-toolbar__control-panel-toggle",
|
|
24808
|
-
icon: "tune",
|
|
24809
|
-
onClick: n?.toggle,
|
|
24810
|
-
size: "medium",
|
|
24825
|
+
s && /* @__PURE__ */ e(X, {
|
|
24811
24826
|
title: "Filters",
|
|
24812
|
-
|
|
24813
|
-
|
|
24814
|
-
|
|
24815
|
-
|
|
24816
|
-
|
|
24827
|
+
children: /* @__PURE__ */ c(T, {
|
|
24828
|
+
className: "memobit-toolbar__control-panel-toggle",
|
|
24829
|
+
icon: "tune",
|
|
24830
|
+
onClick: n?.toggle,
|
|
24831
|
+
size: "medium",
|
|
24832
|
+
variant: "default",
|
|
24833
|
+
children: [l && jl(l), p > 0 && /* @__PURE__ */ e("span", {
|
|
24834
|
+
className: "memobit-toolbar__control-panel-toggle-count",
|
|
24835
|
+
children: p
|
|
24836
|
+
})]
|
|
24837
|
+
})
|
|
24817
24838
|
}),
|
|
24818
24839
|
a && /* @__PURE__ */ c("div", {
|
|
24819
24840
|
className: ["memobit-toolbar__heading", a.onClick ? "memobit-toolbar__heading--clickable" : ""].filter(Boolean).join(" "),
|
|
@@ -24822,7 +24843,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24822
24843
|
className: "memobit-toolbar__heading-icon",
|
|
24823
24844
|
children: [
|
|
24824
24845
|
a.svg,
|
|
24825
|
-
a.icon && /* @__PURE__ */ e(
|
|
24846
|
+
a.icon && /* @__PURE__ */ e(P, { name: a.icon }),
|
|
24826
24847
|
a.emoji
|
|
24827
24848
|
]
|
|
24828
24849
|
}), /* @__PURE__ */ c("div", {
|
|
@@ -24918,7 +24939,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24918
24939
|
className: "tour-hud__btn",
|
|
24919
24940
|
disabled: l === 0,
|
|
24920
24941
|
onClick: o,
|
|
24921
|
-
children: [/* @__PURE__ */ e(
|
|
24942
|
+
children: [/* @__PURE__ */ e(P, {
|
|
24922
24943
|
name: "arrow-left",
|
|
24923
24944
|
size: "sm"
|
|
24924
24945
|
}), "Prev"]
|
|
@@ -24928,7 +24949,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24928
24949
|
className: "tour-hud__btn",
|
|
24929
24950
|
disabled: l >= a - 1,
|
|
24930
24951
|
onClick: m,
|
|
24931
|
-
children: ["Next", /* @__PURE__ */ e(
|
|
24952
|
+
children: ["Next", /* @__PURE__ */ e(P, {
|
|
24932
24953
|
name: "arrow-right",
|
|
24933
24954
|
size: "sm"
|
|
24934
24955
|
})]
|
|
@@ -24956,7 +24977,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24956
24977
|
strokeLinejoin: "round"
|
|
24957
24978
|
})
|
|
24958
24979
|
}), c3 = ({ node: t, depth: r, selectable: l, showGuides: a, animated: h, selectedId: d, onSelect: o }) => {
|
|
24959
|
-
const [m, i] = z(t.defaultExpanded ?? !1), n = Array.isArray(t.children) && t.children.length > 0, s = l && d === t.id, p =
|
|
24980
|
+
const [m, i] = z(t.defaultExpanded ?? !1), n = Array.isArray(t.children) && t.children.length > 0, s = l && d === t.id, p = Z((u) => {
|
|
24960
24981
|
t.disabled || "key" in u && u.key !== "Enter" && u.key !== " " || (n && i((g) => !g), l && o(t));
|
|
24961
24982
|
}, [
|
|
24962
24983
|
n,
|
|
@@ -25014,7 +25035,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
25014
25035
|
}, u.id))
|
|
25015
25036
|
})] });
|
|
25016
25037
|
}, Qi = ({ nodes: t, selectable: r = !1, onSelect: l, showGuides: a = !0, animated: h = !0, defaultSelectedId: d = null, className: o = "" }) => {
|
|
25017
|
-
const [m, i] = z(d), n =
|
|
25038
|
+
const [m, i] = z(d), n = Z((s) => {
|
|
25018
25039
|
s.disabled || (i(s.id), l?.(s));
|
|
25019
25040
|
}, [l]);
|
|
25020
25041
|
return /* @__PURE__ */ e("ul", {
|
|
@@ -25031,7 +25052,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
25031
25052
|
});
|
|
25032
25053
|
}, Ol = 96, Yl = 6;
|
|
25033
25054
|
function Ji({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = Yl, maxHeight: d, empty: o, className: m = "", rowClassName: i = "" }) {
|
|
25034
|
-
const n =
|
|
25055
|
+
const n = K(null), [s, p] = z(0), [u, g] = z(0), [v, w] = z(() => window.innerHeight), [f, y] = z(Ol), b = a && a > 0 ? a : f, C = Z((_) => {
|
|
25035
25056
|
p(_.currentTarget.scrollTop);
|
|
25036
25057
|
}, []);
|
|
25037
25058
|
F(() => {
|
|
@@ -25219,13 +25240,13 @@ function tn({ children: t, config: r }) {
|
|
|
25219
25240
|
}
|
|
25220
25241
|
})();
|
|
25221
25242
|
}, [r.apiBaseUrl]);
|
|
25222
|
-
const o =
|
|
25243
|
+
const o = Z((s) => {
|
|
25223
25244
|
s.user && a({
|
|
25224
25245
|
id: s.user.id,
|
|
25225
25246
|
username: s.user.username,
|
|
25226
25247
|
createdAt: new Date(s.user.createdAt)
|
|
25227
25248
|
});
|
|
25228
|
-
}, []), m =
|
|
25249
|
+
}, []), m = Z(async (s) => {
|
|
25229
25250
|
d(!0);
|
|
25230
25251
|
try {
|
|
25231
25252
|
const p = await fetch(`${r.apiBaseUrl}/auth/login`, {
|
|
@@ -25252,7 +25273,7 @@ function tn({ children: t, config: r }) {
|
|
|
25252
25273
|
} finally {
|
|
25253
25274
|
d(!1);
|
|
25254
25275
|
}
|
|
25255
|
-
}, [r.apiBaseUrl, o]), i =
|
|
25276
|
+
}, [r.apiBaseUrl, o]), i = Z(async (s, p) => {
|
|
25256
25277
|
d(!0);
|
|
25257
25278
|
try {
|
|
25258
25279
|
const u = await fetch(`${r.apiBaseUrl}/auth/verifyMfa`, {
|
|
@@ -25274,7 +25295,7 @@ function tn({ children: t, config: r }) {
|
|
|
25274
25295
|
} finally {
|
|
25275
25296
|
d(!1);
|
|
25276
25297
|
}
|
|
25277
|
-
}, [r.apiBaseUrl, o]), n =
|
|
25298
|
+
}, [r.apiBaseUrl, o]), n = Z(async () => {
|
|
25278
25299
|
try {
|
|
25279
25300
|
await fetch(`${r.apiBaseUrl}/auth/logout`, {
|
|
25280
25301
|
method: "POST",
|
|
@@ -26390,7 +26411,7 @@ function ca(t, r) {
|
|
|
26390
26411
|
return r != null ? Math.max(Math.floor(r), 0) : t ? Jl : ea;
|
|
26391
26412
|
}
|
|
26392
26413
|
function u3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h, imageSettings: d, size: o, boostLevel: m }) {
|
|
26393
|
-
let i =
|
|
26414
|
+
let i = g1.useMemo(() => {
|
|
26394
26415
|
const g = (Array.isArray(t) ? t : [t]).reduce((v, w) => (v.push(...v0.QrSegment.makeSegments(w)), v), []);
|
|
26395
26416
|
return v0.QrCode.encodeSegments(g, Ql[r], l, void 0, void 0, m);
|
|
26396
26417
|
}, [
|
|
@@ -26399,7 +26420,7 @@ function u3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h
|
|
|
26399
26420
|
l,
|
|
26400
26421
|
m
|
|
26401
26422
|
]);
|
|
26402
|
-
const { cells: n, margin: s, numCells: p, calculatedImageSettings: u } =
|
|
26423
|
+
const { cells: n, margin: s, numCells: p, calculatedImageSettings: u } = g1.useMemo(() => {
|
|
26403
26424
|
let g = i.getModules();
|
|
26404
26425
|
const v = ca(a, h);
|
|
26405
26426
|
return {
|
|
@@ -26430,7 +26451,7 @@ var la = (function() {
|
|
|
26430
26451
|
return !1;
|
|
26431
26452
|
}
|
|
26432
26453
|
return !0;
|
|
26433
|
-
})(), aa =
|
|
26454
|
+
})(), aa = g1.forwardRef(function(r, l) {
|
|
26434
26455
|
const a = r, { value: h, size: d = n3, level: o = o3, bgColor: m = s3, fgColor: i = h3, includeMargin: n = d3, minVersion: s = m3, boostLevel: p, marginSize: u, imageSettings: g } = a, v = r2(a, [
|
|
26435
26456
|
"value",
|
|
26436
26457
|
"size",
|
|
@@ -26442,9 +26463,9 @@ var la = (function() {
|
|
|
26442
26463
|
"boostLevel",
|
|
26443
26464
|
"marginSize",
|
|
26444
26465
|
"imageSettings"
|
|
26445
|
-
]), { style: w } = v, f = r2(v, ["style"]), y = g?.src, b =
|
|
26466
|
+
]), { style: w } = v, f = r2(v, ["style"]), y = g?.src, b = g1.useRef(null), C = g1.useRef(null), x = g1.useCallback((B) => {
|
|
26446
26467
|
b.current = B, typeof l == "function" ? l(B) : l && (l.current = B);
|
|
26447
|
-
}, [l]), [k, H] =
|
|
26468
|
+
}, [l]), [k, H] = g1.useState(!1), { margin: L, cells: M, numCells: V, calculatedImageSettings: S } = u3({
|
|
26448
26469
|
value: h,
|
|
26449
26470
|
level: o,
|
|
26450
26471
|
minVersion: s,
|
|
@@ -26454,7 +26475,7 @@ var la = (function() {
|
|
|
26454
26475
|
imageSettings: g,
|
|
26455
26476
|
size: d
|
|
26456
26477
|
});
|
|
26457
|
-
|
|
26478
|
+
g1.useEffect(() => {
|
|
26458
26479
|
if (b.current != null) {
|
|
26459
26480
|
const B = b.current, E = B.getContext("2d");
|
|
26460
26481
|
if (!E) return;
|
|
@@ -26465,12 +26486,12 @@ var la = (function() {
|
|
|
26465
26486
|
B.height = B.width = d * q;
|
|
26466
26487
|
const t1 = d / V * q;
|
|
26467
26488
|
E.scale(t1, t1), E.fillStyle = m, E.fillRect(0, 0, V, V), E.fillStyle = i, la ? E.fill(new Path2D(p3(O, L))) : M.forEach(function(I, D) {
|
|
26468
|
-
I.forEach(function(
|
|
26469
|
-
|
|
26489
|
+
I.forEach(function(J, h1) {
|
|
26490
|
+
J && E.fillRect(h1 + L, D + L, 1, 1);
|
|
26470
26491
|
});
|
|
26471
26492
|
}), S && (E.globalAlpha = S.opacity), N && E.drawImage(o1, S.x + L, S.y + L, S.w, S.h);
|
|
26472
26493
|
}
|
|
26473
|
-
}),
|
|
26494
|
+
}), g1.useEffect(() => {
|
|
26474
26495
|
H(!1);
|
|
26475
26496
|
}, [y]);
|
|
26476
26497
|
const _ = t2({
|
|
@@ -26478,7 +26499,7 @@ var la = (function() {
|
|
|
26478
26499
|
width: d
|
|
26479
26500
|
}, w);
|
|
26480
26501
|
let R = null;
|
|
26481
|
-
return y != null && (R = /* @__PURE__ */
|
|
26502
|
+
return y != null && (R = /* @__PURE__ */ g1.createElement("img", {
|
|
26482
26503
|
src: y,
|
|
26483
26504
|
key: y,
|
|
26484
26505
|
style: { display: "none" },
|
|
@@ -26487,7 +26508,7 @@ var la = (function() {
|
|
|
26487
26508
|
},
|
|
26488
26509
|
ref: C,
|
|
26489
26510
|
crossOrigin: S?.crossOrigin
|
|
26490
|
-
})), /* @__PURE__ */
|
|
26511
|
+
})), /* @__PURE__ */ g1.createElement(g1.Fragment, null, /* @__PURE__ */ g1.createElement("canvas", t2({
|
|
26491
26512
|
style: _,
|
|
26492
26513
|
height: d,
|
|
26493
26514
|
width: d,
|
|
@@ -26496,7 +26517,7 @@ var la = (function() {
|
|
|
26496
26517
|
}, f)), R);
|
|
26497
26518
|
});
|
|
26498
26519
|
aa.displayName = "QRCodeCanvas";
|
|
26499
|
-
var g3 =
|
|
26520
|
+
var g3 = g1.forwardRef(function(r, l) {
|
|
26500
26521
|
const a = r, { value: h, size: d = n3, level: o = o3, bgColor: m = s3, fgColor: i = h3, includeMargin: n = d3, minVersion: s = m3, boostLevel: p, title: u, marginSize: g, imageSettings: v } = a, w = r2(a, [
|
|
26501
26522
|
"value",
|
|
26502
26523
|
"size",
|
|
@@ -26520,7 +26541,7 @@ var g3 = u1.forwardRef(function(r, l) {
|
|
|
26520
26541
|
size: d
|
|
26521
26542
|
});
|
|
26522
26543
|
let x = y, k = null;
|
|
26523
|
-
v != null && C != null && (C.excavation != null && (x = v3(y, C.excavation)), k = /* @__PURE__ */
|
|
26544
|
+
v != null && C != null && (C.excavation != null && (x = v3(y, C.excavation)), k = /* @__PURE__ */ g1.createElement("image", {
|
|
26524
26545
|
href: v.src,
|
|
26525
26546
|
height: C.h,
|
|
26526
26547
|
width: C.w,
|
|
@@ -26531,17 +26552,17 @@ var g3 = u1.forwardRef(function(r, l) {
|
|
|
26531
26552
|
crossOrigin: C.crossOrigin
|
|
26532
26553
|
}));
|
|
26533
26554
|
const H = p3(x, f);
|
|
26534
|
-
return /* @__PURE__ */
|
|
26555
|
+
return /* @__PURE__ */ g1.createElement("svg", t2({
|
|
26535
26556
|
height: d,
|
|
26536
26557
|
width: d,
|
|
26537
26558
|
viewBox: `0 0 ${b} ${b}`,
|
|
26538
26559
|
ref: l,
|
|
26539
26560
|
role: "img"
|
|
26540
|
-
}, w), !!u && /* @__PURE__ */
|
|
26561
|
+
}, w), !!u && /* @__PURE__ */ g1.createElement("title", null, u), /* @__PURE__ */ g1.createElement("path", {
|
|
26541
26562
|
fill: m,
|
|
26542
26563
|
d: `M0,0 h${b}v${b}H0z`,
|
|
26543
26564
|
shapeRendering: "crispEdges"
|
|
26544
|
-
}), /* @__PURE__ */
|
|
26565
|
+
}), /* @__PURE__ */ g1.createElement("path", {
|
|
26545
26566
|
fill: i,
|
|
26546
26567
|
d: H,
|
|
26547
26568
|
shapeRendering: "crispEdges"
|
|
@@ -26549,10 +26570,10 @@ var g3 = u1.forwardRef(function(r, l) {
|
|
|
26549
26570
|
});
|
|
26550
26571
|
g3.displayName = "QRCodeSVG";
|
|
26551
26572
|
function nn({ isOpen: t, onClose: r }) {
|
|
26552
|
-
const { config: l } = n2(), [a, h] = z("loading"), [d, o] = z(!1), [m, i] = z(null), [n, s] = z(""), [p, u] = z(""), [g, v] = z(""), [w, f] = z(""), [y, b] = z([]), [C, x] = z(""), [k, H] = z(!1), [L, M] = z(null), V =
|
|
26573
|
+
const { config: l } = n2(), [a, h] = z("loading"), [d, o] = z(!1), [m, i] = z(null), [n, s] = z(""), [p, u] = z(""), [g, v] = z(""), [w, f] = z(""), [y, b] = z([]), [C, x] = z(""), [k, H] = z(!1), [L, M] = z(null), V = Z(async (J, h1) => {
|
|
26553
26574
|
const U = document.cookie.match(/(?:^|;\s*)csrf_token=([^;]+)/), d1 = U ? decodeURIComponent(U[1]) : null, v1 = { "Content-Type": "application/json" };
|
|
26554
26575
|
d1 && (v1["X-CSRF-Token"] = d1);
|
|
26555
|
-
const y1 = await fetch(`${l.apiBaseUrl}${
|
|
26576
|
+
const y1 = await fetch(`${l.apiBaseUrl}${J}`, {
|
|
26556
26577
|
method: "POST",
|
|
26557
26578
|
credentials: "include",
|
|
26558
26579
|
headers: v1,
|
|
@@ -26560,11 +26581,11 @@ function nn({ isOpen: t, onClose: r }) {
|
|
|
26560
26581
|
}), _1 = await y1.json().catch(() => ({}));
|
|
26561
26582
|
if (!y1.ok) throw new Error(_1.error || "Request failed");
|
|
26562
26583
|
return _1;
|
|
26563
|
-
}, [l.apiBaseUrl]), S =
|
|
26584
|
+
}, [l.apiBaseUrl]), S = Z(async () => {
|
|
26564
26585
|
h("loading"), x("");
|
|
26565
26586
|
try {
|
|
26566
|
-
const
|
|
26567
|
-
o(!!
|
|
26587
|
+
const J = await (await fetch(`${l.apiBaseUrl}/auth/mfaStatus`, { credentials: "include" })).json();
|
|
26588
|
+
o(!!J.enabled), i(J.method ?? null), h("overview");
|
|
26568
26589
|
} catch {
|
|
26569
26590
|
x("Could not load MFA status."), h("overview");
|
|
26570
26591
|
}
|
|
@@ -26572,34 +26593,34 @@ function nn({ isOpen: t, onClose: r }) {
|
|
|
26572
26593
|
F(() => {
|
|
26573
26594
|
t && (v(""), f(""), x(""), b([]), S());
|
|
26574
26595
|
}, [t, S]);
|
|
26575
|
-
const _ = async (
|
|
26596
|
+
const _ = async (J) => {
|
|
26576
26597
|
H(!0), x("");
|
|
26577
26598
|
try {
|
|
26578
|
-
await
|
|
26599
|
+
await J();
|
|
26579
26600
|
} catch (h1) {
|
|
26580
26601
|
x(h1 instanceof Error ? h1.message : "Something went wrong.");
|
|
26581
26602
|
} finally {
|
|
26582
26603
|
H(!1);
|
|
26583
26604
|
}
|
|
26584
26605
|
}, R = () => _(async () => {
|
|
26585
|
-
const
|
|
26586
|
-
s(
|
|
26606
|
+
const J = await V("/auth/mfaSetupTotp");
|
|
26607
|
+
s(J.secret || ""), u(J.otpauthUri || ""), v(""), h("totp-setup");
|
|
26587
26608
|
}), B = () => _(async () => {
|
|
26588
|
-
const
|
|
26589
|
-
b(
|
|
26609
|
+
const J = await V("/auth/mfaConfirmTotp", { code: g.trim() });
|
|
26610
|
+
b(J.recoveryCodes || []), h("recovery");
|
|
26590
26611
|
}), E = () => _(async () => {
|
|
26591
26612
|
await V("/auth/mfaEnableEmail"), v(""), h("email-setup");
|
|
26592
26613
|
}), O = () => _(async () => {
|
|
26593
|
-
const
|
|
26594
|
-
b(
|
|
26614
|
+
const J = await V("/auth/mfaConfirmEmail", { code: g.trim() });
|
|
26615
|
+
b(J.recoveryCodes || []), h("recovery");
|
|
26595
26616
|
}), o1 = () => _(async () => {
|
|
26596
26617
|
await V("/auth/mfaDisable", { password: w }), M({
|
|
26597
26618
|
message: "Two-factor authentication disabled.",
|
|
26598
26619
|
type: "success"
|
|
26599
26620
|
}), f(""), await S();
|
|
26600
26621
|
}), N = () => _(async () => {
|
|
26601
|
-
const
|
|
26602
|
-
b(
|
|
26622
|
+
const J = await V("/auth/mfaRegenRecovery", { password: w });
|
|
26623
|
+
b(J.recoveryCodes || []), f(""), h("recovery");
|
|
26603
26624
|
}), q = () => _(async () => {
|
|
26604
26625
|
await V("/auth/mfaForgetDevices"), M({
|
|
26605
26626
|
message: "All trusted devices have been signed out.",
|
|
@@ -26765,7 +26786,7 @@ function nn({ isOpen: t, onClose: r }) {
|
|
|
26765
26786
|
}),
|
|
26766
26787
|
/* @__PURE__ */ e("ul", {
|
|
26767
26788
|
className: "MfaSetupModal__codes",
|
|
26768
|
-
children: y.map((
|
|
26789
|
+
children: y.map((J) => /* @__PURE__ */ e("li", { children: J }, J))
|
|
26769
26790
|
}),
|
|
26770
26791
|
/* @__PURE__ */ e(T, {
|
|
26771
26792
|
variant: "default",
|
|
@@ -26912,7 +26933,7 @@ function on(t, r) {
|
|
|
26912
26933
|
const l = {
|
|
26913
26934
|
pages: r.pages ?? {},
|
|
26914
26935
|
theme: r.theme
|
|
26915
|
-
}, [a, h] = z(() => x0.load(t, l)), d =
|
|
26936
|
+
}, [a, h] = z(() => x0.load(t, l)), d = Z((n, s) => {
|
|
26916
26937
|
h((p) => {
|
|
26917
26938
|
const u = {
|
|
26918
26939
|
...p,
|
|
@@ -26923,7 +26944,7 @@ function on(t, r) {
|
|
|
26923
26944
|
};
|
|
26924
26945
|
return x0.save(t, u), u;
|
|
26925
26946
|
});
|
|
26926
|
-
}, [t]), o =
|
|
26947
|
+
}, [t]), o = Z((n) => {
|
|
26927
26948
|
h((s) => {
|
|
26928
26949
|
const p = {
|
|
26929
26950
|
...s,
|
|
@@ -26931,7 +26952,7 @@ function on(t, r) {
|
|
|
26931
26952
|
};
|
|
26932
26953
|
return x0.save(t, p), p;
|
|
26933
26954
|
});
|
|
26934
|
-
}, [t]), m =
|
|
26955
|
+
}, [t]), m = Z((n) => {
|
|
26935
26956
|
h((s) => {
|
|
26936
26957
|
const p = {
|
|
26937
26958
|
...s,
|
|
@@ -26942,7 +26963,7 @@ function on(t, r) {
|
|
|
26942
26963
|
};
|
|
26943
26964
|
return x0.save(t, p), p;
|
|
26944
26965
|
});
|
|
26945
|
-
}, [t]), i =
|
|
26966
|
+
}, [t]), i = Z(() => {
|
|
26946
26967
|
h(l), x0.clearAll(t);
|
|
26947
26968
|
}, [t]);
|
|
26948
26969
|
return {
|
|
@@ -27078,7 +27099,7 @@ var pn = (t, r, l) => {
|
|
|
27078
27099
|
} catch {
|
|
27079
27100
|
return t.trim();
|
|
27080
27101
|
}
|
|
27081
|
-
}, sa = "1.0.
|
|
27102
|
+
}, sa = "1.0.47", yn = 321, ha = "03538eb", da = "2026-08-23T13:13:43.316Z", bn = "321", ma = (t) => {
|
|
27082
27103
|
const r = document.getElementById("mb-version-toast");
|
|
27083
27104
|
if (r) {
|
|
27084
27105
|
r.remove();
|
|
@@ -27102,7 +27123,7 @@ var pn = (t, r, l) => {
|
|
|
27102
27123
|
const r = {
|
|
27103
27124
|
...t,
|
|
27104
27125
|
lib: sa,
|
|
27105
|
-
libBuildNumber:
|
|
27126
|
+
libBuildNumber: 321,
|
|
27106
27127
|
libCommit: ha,
|
|
27107
27128
|
libBuildDate: da
|
|
27108
27129
|
};
|
|
@@ -27223,7 +27244,7 @@ export {
|
|
|
27223
27244
|
Cc as Flag,
|
|
27224
27245
|
si as FloatButton,
|
|
27225
27246
|
hi as FolderBrowserModal,
|
|
27226
|
-
|
|
27247
|
+
P as Icon,
|
|
27227
27248
|
di as InfiniteScroll,
|
|
27228
27249
|
rc as InputDate,
|
|
27229
27250
|
mi as InputEmail,
|
|
@@ -27294,7 +27315,7 @@ export {
|
|
|
27294
27315
|
qi as ToggleButtons,
|
|
27295
27316
|
S2 as ToggleSwitch,
|
|
27296
27317
|
Xi as Toolbar,
|
|
27297
|
-
|
|
27318
|
+
X as Tooltip,
|
|
27298
27319
|
Ki as TourHud,
|
|
27299
27320
|
Qi as Tree,
|
|
27300
27321
|
Ji as VirtualList,
|