@memobit/libs 1.0.45 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +205 -200
- 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 X, useState as z } from "react";
|
|
2
2
|
import { Fragment as n1, jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
3
|
import { createPortal as K1 } from "react-dom";
|
|
4
4
|
var L3 = /* @__PURE__ */ c("svg", {
|
|
@@ -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}` : "",
|
|
@@ -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
|
})
|
|
@@ -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
|
|
@@ -10127,12 +10127,13 @@ var W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h,
|
|
|
10127
10127
|
$2(l);
|
|
10128
10128
|
const v = X(null), w = X(null);
|
|
10129
10129
|
if (F(() => {
|
|
10130
|
+
if (!l) return;
|
|
10130
10131
|
const b = (C) => {
|
|
10131
|
-
C.key
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
document.removeEventListener("keydown", b);
|
|
10132
|
+
if (C.key !== "Escape" || !h) return;
|
|
10133
|
+
const x = document.querySelectorAll(".modal-overlay");
|
|
10134
|
+
x[x.length - 1] === w.current && (C.stopPropagation(), h());
|
|
10135
10135
|
};
|
|
10136
|
+
return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
|
|
10136
10137
|
}, [l, h]), !l) return null;
|
|
10137
10138
|
const f = o || m || n, y = /* @__PURE__ */ e("div", {
|
|
10138
10139
|
ref: w,
|
|
@@ -10146,7 +10147,7 @@ var W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h,
|
|
|
10146
10147
|
/* @__PURE__ */ c("div", {
|
|
10147
10148
|
className: "modal__header",
|
|
10148
10149
|
children: [/* @__PURE__ */ c("h2", { children: [
|
|
10149
|
-
p ? /* @__PURE__ */ e(
|
|
10150
|
+
p ? /* @__PURE__ */ e(P, { name: p }) : null,
|
|
10150
10151
|
" ",
|
|
10151
10152
|
s
|
|
10152
10153
|
] }), /* @__PURE__ */ e(T, {
|
|
@@ -10258,7 +10259,7 @@ var W1 = ({ children: t, className: r, isOpen: l, noPadding: a = !1, onClose: h,
|
|
|
10258
10259
|
}),
|
|
10259
10260
|
r && /* @__PURE__ */ e("span", {
|
|
10260
10261
|
className: "app-header__icon",
|
|
10261
|
-
children: /* @__PURE__ */ e(
|
|
10262
|
+
children: /* @__PURE__ */ e(P, { name: r })
|
|
10262
10263
|
}),
|
|
10263
10264
|
/* @__PURE__ */ c("div", {
|
|
10264
10265
|
className: "app-header__copy",
|
|
@@ -10474,7 +10475,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10474
10475
|
className: "banner__dismiss",
|
|
10475
10476
|
type: "button",
|
|
10476
10477
|
onClick: u,
|
|
10477
|
-
children: /* @__PURE__ */ e(
|
|
10478
|
+
children: /* @__PURE__ */ e(P, {
|
|
10478
10479
|
name: "clear",
|
|
10479
10480
|
size: "sm"
|
|
10480
10481
|
})
|
|
@@ -10962,7 +10963,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
10962
10963
|
}), [y, b] = z("days"), [C, x] = z(() => {
|
|
10963
10964
|
const A = (s ?? w).getFullYear();
|
|
10964
10965
|
return Math.floor(A / O1) * O1;
|
|
10965
|
-
}), [k, H] = z(null), L = s ?? w, M = g ?? k, V =
|
|
10966
|
+
}), [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
10967
|
if (!t) return !1;
|
|
10967
10968
|
if (l === "single" && t instanceof Date) return q1(A, t);
|
|
10968
10969
|
if (l === "range") {
|
|
@@ -11288,13 +11289,13 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11288
11289
|
className: `${u ? "card-content-hidden" : ""}`,
|
|
11289
11290
|
children: [/* @__PURE__ */ c("span", {
|
|
11290
11291
|
className: "card-title-content",
|
|
11291
|
-
children: [a && /* @__PURE__ */ e(
|
|
11292
|
+
children: [a && /* @__PURE__ */ e(P, { name: a }), s]
|
|
11292
11293
|
}), d && /* @__PURE__ */ e("span", {
|
|
11293
11294
|
className: "collapsible-button",
|
|
11294
11295
|
onClick: () => g(!u),
|
|
11295
11296
|
children: /* @__PURE__ */ e("span", {
|
|
11296
11297
|
className: `opener-button ${u ? "opener-button-extended" : ""}`,
|
|
11297
|
-
children: /* @__PURE__ */ e(
|
|
11298
|
+
children: /* @__PURE__ */ e(P, {
|
|
11298
11299
|
name: "caret-up",
|
|
11299
11300
|
size: "lg"
|
|
11300
11301
|
})
|
|
@@ -11330,7 +11331,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11330
11331
|
className: "checkbox-label",
|
|
11331
11332
|
children: [/* @__PURE__ */ e("span", { className: "checkbox-box" }), (a || l) && /* @__PURE__ */ c("span", {
|
|
11332
11333
|
className: "checkbox-text",
|
|
11333
|
-
children: [a && /* @__PURE__ */ e(
|
|
11334
|
+
children: [a && /* @__PURE__ */ e(P, { name: a }), l && /* @__PURE__ */ e("span", {
|
|
11334
11335
|
className: "checkbox-text-label",
|
|
11335
11336
|
children: l
|
|
11336
11337
|
})]
|
|
@@ -11349,7 +11350,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11349
11350
|
className: "chip__swatch",
|
|
11350
11351
|
style: { backgroundColor: l }
|
|
11351
11352
|
}),
|
|
11352
|
-
d && /* @__PURE__ */ e(
|
|
11353
|
+
d && /* @__PURE__ */ e(P, { name: d }),
|
|
11353
11354
|
/* @__PURE__ */ e("span", {
|
|
11354
11355
|
className: "chip__label",
|
|
11355
11356
|
children: t
|
|
@@ -11373,7 +11374,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11373
11374
|
/* @__PURE__ */ c("div", {
|
|
11374
11375
|
className: "collapsible-section__label",
|
|
11375
11376
|
children: [
|
|
11376
|
-
a && /* @__PURE__ */ e(
|
|
11377
|
+
a && /* @__PURE__ */ e(P, {
|
|
11377
11378
|
name: a,
|
|
11378
11379
|
variant: w
|
|
11379
11380
|
}),
|
|
@@ -11381,10 +11382,10 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11381
11382
|
m
|
|
11382
11383
|
]
|
|
11383
11384
|
}),
|
|
11384
|
-
s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
11385
|
+
s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(P, { name: s }) }),
|
|
11385
11386
|
/* @__PURE__ */ e("span", {
|
|
11386
11387
|
className: `collapsible-section__icon ${x ? "collapsible-section__icon--collapsed" : ""}`,
|
|
11387
|
-
children: /* @__PURE__ */ e(
|
|
11388
|
+
children: /* @__PURE__ */ e(P, { name: "caret-up" })
|
|
11388
11389
|
}),
|
|
11389
11390
|
/* @__PURE__ */ e("span", {
|
|
11390
11391
|
className: "collapsible-section__right-details",
|
|
@@ -11398,7 +11399,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11398
11399
|
/* @__PURE__ */ c("span", {
|
|
11399
11400
|
className: "collapsible-section__label",
|
|
11400
11401
|
children: [
|
|
11401
|
-
a && /* @__PURE__ */ e(
|
|
11402
|
+
a && /* @__PURE__ */ e(P, {
|
|
11402
11403
|
name: a,
|
|
11403
11404
|
variant: w
|
|
11404
11405
|
}),
|
|
@@ -11406,10 +11407,10 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11406
11407
|
m
|
|
11407
11408
|
]
|
|
11408
11409
|
}),
|
|
11409
|
-
s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
11410
|
+
s && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(P, { name: s }) }),
|
|
11410
11411
|
/* @__PURE__ */ e("span", {
|
|
11411
11412
|
className: `collapsible-section__icon ${x ? "collapsible-section__icon--collapsed" : ""}`,
|
|
11412
|
-
children: /* @__PURE__ */ e(
|
|
11413
|
+
children: /* @__PURE__ */ e(P, { name: "caret-up" })
|
|
11413
11414
|
})
|
|
11414
11415
|
]
|
|
11415
11416
|
})
|
|
@@ -11771,10 +11772,10 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11771
11772
|
]), F(() => {
|
|
11772
11773
|
n || i("");
|
|
11773
11774
|
}, [n]);
|
|
11774
|
-
const s =
|
|
11775
|
+
const s = u1(() => {
|
|
11775
11776
|
const g = m.trim().toLowerCase();
|
|
11776
11777
|
return g ? t.filter((v) => [v.label, ...v.keywords ?? []].join(" ").toLowerCase().includes(g)) : t;
|
|
11777
|
-
}, [t, m]), p =
|
|
11778
|
+
}, [t, m]), p = u1(() => s.reduce((g, v) => {
|
|
11778
11779
|
const w = v.group || "General";
|
|
11779
11780
|
return g[w] = g[w] ? [...g[w], v] : [v], g;
|
|
11780
11781
|
}, {}), [s]), u = () => {
|
|
@@ -11943,11 +11944,11 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
11943
11944
|
confetti: 150,
|
|
11944
11945
|
burst: 200,
|
|
11945
11946
|
fireworks: 8
|
|
11946
|
-
}, p =
|
|
11947
|
+
}, p = Z(() => {
|
|
11947
11948
|
n.current = !1, cancelAnimationFrame(m.current);
|
|
11948
11949
|
const g = o.current;
|
|
11949
11950
|
g && g.getContext("2d")?.clearRect(0, 0, g.width, g.height);
|
|
11950
|
-
}, []), u =
|
|
11951
|
+
}, []), u = Z(() => {
|
|
11951
11952
|
const g = o.current;
|
|
11952
11953
|
if (!g || n.current) return;
|
|
11953
11954
|
const v = g.getContext("2d");
|
|
@@ -12065,7 +12066,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12065
12066
|
top: 0,
|
|
12066
12067
|
left: 0,
|
|
12067
12068
|
placement: "bottom"
|
|
12068
|
-
}), s =
|
|
12069
|
+
}), s = Z(() => {
|
|
12069
12070
|
if (!a || !o.current || !r) return;
|
|
12070
12071
|
const p = a.getBoundingClientRect(), u = o.current.getBoundingClientRect(), g = {
|
|
12071
12072
|
width: window.innerWidth,
|
|
@@ -12170,7 +12171,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12170
12171
|
children: [
|
|
12171
12172
|
(a || d) && /* @__PURE__ */ c("div", {
|
|
12172
12173
|
className: "confirm-popover__header",
|
|
12173
|
-
children: [d && /* @__PURE__ */ e(
|
|
12174
|
+
children: [d && /* @__PURE__ */ e(P, { name: d }), a && /* @__PURE__ */ e("span", {
|
|
12174
12175
|
className: "confirm-popover__title",
|
|
12175
12176
|
children: a
|
|
12176
12177
|
})]
|
|
@@ -12279,7 +12280,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12279
12280
|
children: /* @__PURE__ */ e("button", {
|
|
12280
12281
|
onClick: n,
|
|
12281
12282
|
className: "toast__close-button",
|
|
12282
|
-
children: /* @__PURE__ */ e(
|
|
12283
|
+
children: /* @__PURE__ */ e(P, {
|
|
12283
12284
|
name: "clear",
|
|
12284
12285
|
size: "sm"
|
|
12285
12286
|
})
|
|
@@ -12302,22 +12303,26 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12302
12303
|
}, h.id))
|
|
12303
12304
|
});
|
|
12304
12305
|
}, qa = ({ children: t }) => {
|
|
12305
|
-
const [r, l] = z([]),
|
|
12306
|
+
const [r, l] = z([]), a = Z((o) => {
|
|
12307
|
+
l((m) => m.filter((i) => i.id !== o));
|
|
12308
|
+
}, []), h = Z((o, m = "info", i = 1500, n) => {
|
|
12309
|
+
const s = `${Date.now().toString()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
12310
|
+
return l((p) => [...p, {
|
|
12311
|
+
id: s,
|
|
12312
|
+
message: o,
|
|
12313
|
+
type: m,
|
|
12314
|
+
timeout: i,
|
|
12315
|
+
action: n
|
|
12316
|
+
}]), s;
|
|
12317
|
+
}, []), d = u1(() => ({
|
|
12306
12318
|
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
|
-
};
|
|
12319
|
+
addToast: h,
|
|
12320
|
+
removeToast: a
|
|
12321
|
+
}), [
|
|
12322
|
+
r,
|
|
12323
|
+
h,
|
|
12324
|
+
a
|
|
12325
|
+
]);
|
|
12321
12326
|
return /* @__PURE__ */ e(j2.Provider, {
|
|
12322
12327
|
value: d,
|
|
12323
12328
|
children: t
|
|
@@ -12354,7 +12359,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12354
12359
|
"desktop",
|
|
12355
12360
|
"largeDesktop"
|
|
12356
12361
|
].indexOf(t), g0 = () => {
|
|
12357
|
-
const [t, r] = z(Y0), l =
|
|
12362
|
+
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
12363
|
return F(() => {
|
|
12359
12364
|
if (typeof window > "u") return;
|
|
12360
12365
|
const o = Object.entries(Jr).map(([i, n]) => ({
|
|
@@ -12386,7 +12391,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12386
12391
|
if (!t) throw new Error("useControlPanel must be used within a ControlPanelProvider");
|
|
12387
12392
|
return t;
|
|
12388
12393
|
}, Ka = ({ children: t }) => {
|
|
12389
|
-
const { isMobile: r } = g0(), [l, a] = z(!1), h =
|
|
12394
|
+
const { isMobile: r } = g0(), [l, a] = z(!1), h = Z(() => a((i) => !i), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = u1(() => ({
|
|
12390
12395
|
isMobile: r,
|
|
12391
12396
|
isOpen: l,
|
|
12392
12397
|
toggle: h,
|
|
@@ -12423,7 +12428,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12423
12428
|
};
|
|
12424
12429
|
return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
|
|
12425
12430
|
}, [p, B]);
|
|
12426
|
-
const E =
|
|
12431
|
+
const E = Z(() => {
|
|
12427
12432
|
if (p || !B || !_.current || !R.current) return;
|
|
12428
12433
|
const I = _.current.getBoundingClientRect(), D = R.current.getBoundingClientRect(), Q = 16, h1 = 8, U = window.innerHeight - I.bottom - Q, d1 = I.top - Q, v1 = U < D.height && d1 > D.height ? I.top - D.height - h1 : I.bottom + h1, y1 = Math.max(Q, Math.min(v1, window.innerHeight - D.height - Q)), _1 = Math.max(Q, Math.min(I.left, window.innerWidth - D.width - Q));
|
|
12429
12434
|
S({
|
|
@@ -12494,7 +12499,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12494
12499
|
})
|
|
12495
12500
|
}), /* @__PURE__ */ e("span", {
|
|
12496
12501
|
className: "datepicker__icon",
|
|
12497
|
-
children: /* @__PURE__ */ e(
|
|
12502
|
+
children: /* @__PURE__ */ e(P, { name: "calendar" })
|
|
12498
12503
|
})]
|
|
12499
12504
|
})]
|
|
12500
12505
|
}), B && (p ? /* @__PURE__ */ c("div", {
|
|
@@ -12909,9 +12914,9 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12909
12914
|
className: "dropdown-option-prefix",
|
|
12910
12915
|
children: G.prefix
|
|
12911
12916
|
}),
|
|
12912
|
-
G.icon && /* @__PURE__ */ e(
|
|
12917
|
+
G.icon && /* @__PURE__ */ e(P, { name: G.icon }),
|
|
12913
12918
|
/* @__PURE__ */ e("span", { children: G.label }),
|
|
12914
|
-
G.suffixIcon && /* @__PURE__ */ e(
|
|
12919
|
+
G.suffixIcon && /* @__PURE__ */ e(P, { name: G.suffixIcon })
|
|
12915
12920
|
]
|
|
12916
12921
|
}), G.details && /* @__PURE__ */ e("span", {
|
|
12917
12922
|
className: "dropdown-option-details",
|
|
@@ -12929,7 +12934,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12929
12934
|
className: "dropdown-option-content",
|
|
12930
12935
|
children: /* @__PURE__ */ c("span", {
|
|
12931
12936
|
className: "dropdown-option-label",
|
|
12932
|
-
children: [/* @__PURE__ */ e(
|
|
12937
|
+
children: [/* @__PURE__ */ e(P, { name: "plus" }), /* @__PURE__ */ c("span", { children: [
|
|
12933
12938
|
"Create “",
|
|
12934
12939
|
_,
|
|
12935
12940
|
"”"
|
|
@@ -12958,12 +12963,12 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
12958
12963
|
children: [
|
|
12959
12964
|
U1 && L1?.icon && /* @__PURE__ */ e("span", {
|
|
12960
12965
|
className: "dropdown-selected-icon dropdown-selected-icon--prefix",
|
|
12961
|
-
children: /* @__PURE__ */ e(
|
|
12966
|
+
children: /* @__PURE__ */ e(P, { name: L1.icon })
|
|
12962
12967
|
}),
|
|
12963
12968
|
D1 && L1 && /* @__PURE__ */ c("span", {
|
|
12964
12969
|
className: "dropdown-value-chip",
|
|
12965
12970
|
onClick: m1,
|
|
12966
|
-
children: [L1.icon && /* @__PURE__ */ e(
|
|
12971
|
+
children: [L1.icon && /* @__PURE__ */ e(P, { name: L1.icon }), /* @__PURE__ */ e("span", {
|
|
12967
12972
|
className: "dropdown-value-chip__label",
|
|
12968
12973
|
children: L1.label
|
|
12969
12974
|
})]
|
|
@@ -13002,7 +13007,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13002
13007
|
children: [
|
|
13003
13008
|
J1 && L1?.suffixIcon && /* @__PURE__ */ e("span", {
|
|
13004
13009
|
className: "dropdown-selected-icon dropdown-selected-icon--suffix",
|
|
13005
|
-
children: /* @__PURE__ */ e(
|
|
13010
|
+
children: /* @__PURE__ */ e(P, { name: L1.suffixIcon })
|
|
13006
13011
|
}),
|
|
13007
13012
|
(!s && N.length > 0 || s && N.length > 0) && /* @__PURE__ */ e("span", {
|
|
13008
13013
|
className: "dropdown-action-button dropdown-clear-button",
|
|
@@ -13081,7 +13086,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13081
13086
|
type: "button",
|
|
13082
13087
|
className: "input-date-clear",
|
|
13083
13088
|
onClick: () => p?.(void 0),
|
|
13084
|
-
children: /* @__PURE__ */ e(
|
|
13089
|
+
children: /* @__PURE__ */ e(P, {
|
|
13085
13090
|
name: "clear",
|
|
13086
13091
|
size: "sm"
|
|
13087
13092
|
})
|
|
@@ -13097,7 +13102,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13097
13102
|
},
|
|
13098
13103
|
disabled: a || w,
|
|
13099
13104
|
tabIndex: -1,
|
|
13100
|
-
children: /* @__PURE__ */ e(
|
|
13105
|
+
children: /* @__PURE__ */ e(P, {
|
|
13101
13106
|
name: "calendar",
|
|
13102
13107
|
size: "sm"
|
|
13103
13108
|
})
|
|
@@ -13124,7 +13129,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13124
13129
|
children: [
|
|
13125
13130
|
/* @__PURE__ */ e("div", {
|
|
13126
13131
|
className: "input-search__icon",
|
|
13127
|
-
children: /* @__PURE__ */ e(
|
|
13132
|
+
children: /* @__PURE__ */ e(P, { name: "search" })
|
|
13128
13133
|
}),
|
|
13129
13134
|
/* @__PURE__ */ e(V1, {
|
|
13130
13135
|
autoComplete: t,
|
|
@@ -13149,7 +13154,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13149
13154
|
type: "button",
|
|
13150
13155
|
className: "input-search__clear",
|
|
13151
13156
|
onClick: f,
|
|
13152
|
-
children: /* @__PURE__ */ e(
|
|
13157
|
+
children: /* @__PURE__ */ e(P, {
|
|
13153
13158
|
name: "clear",
|
|
13154
13159
|
size: "sm"
|
|
13155
13160
|
})
|
|
@@ -13218,7 +13223,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13218
13223
|
}
|
|
13219
13224
|
return null;
|
|
13220
13225
|
}, 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 =
|
|
13226
|
+
const p = Z((u) => {
|
|
13222
13227
|
m && !n && d?.(u + 1);
|
|
13223
13228
|
}, [
|
|
13224
13229
|
m,
|
|
@@ -13367,7 +13372,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13367
13372
|
className: `control-panel__filter-title${t.isActive ? " control-panel__filter-title--active" : ""}`,
|
|
13368
13373
|
children: [
|
|
13369
13374
|
t.isActive && /* @__PURE__ */ e("span", { className: "control-panel__filter-active-dot" }),
|
|
13370
|
-
t.icon && /* @__PURE__ */ e(
|
|
13375
|
+
t.icon && /* @__PURE__ */ e(P, { name: t.icon }),
|
|
13371
13376
|
t.label
|
|
13372
13377
|
]
|
|
13373
13378
|
});
|
|
@@ -13390,7 +13395,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13390
13395
|
}),
|
|
13391
13396
|
/* @__PURE__ */ e("span", {
|
|
13392
13397
|
className: "control-panel__filter-caret",
|
|
13393
|
-
children: /* @__PURE__ */ e(
|
|
13398
|
+
children: /* @__PURE__ */ e(P, { name: h ? "caret-up" : "caret-down" })
|
|
13394
13399
|
})
|
|
13395
13400
|
]
|
|
13396
13401
|
}) : t.type !== "checkbox" && m, (!a || h) && /* @__PURE__ */ e(hc, {
|
|
@@ -13575,7 +13580,7 @@ var ka = ({ name: t, size: r = "medium", shape: l = "rounded", className: a = ""
|
|
|
13575
13580
|
className: "control-panel__filter-swatch",
|
|
13576
13581
|
style: { backgroundColor: o.color }
|
|
13577
13582
|
}),
|
|
13578
|
-
o.icon && /* @__PURE__ */ e(
|
|
13583
|
+
o.icon && /* @__PURE__ */ e(P, { name: o.icon }),
|
|
13579
13584
|
/* @__PURE__ */ e("span", {
|
|
13580
13585
|
className: "control-panel__filter-label",
|
|
13581
13586
|
children: o.label
|
|
@@ -13721,7 +13726,7 @@ function F2(t, r, l, a = 0) {
|
|
|
13721
13726
|
s.stopPropagation(), t.onOpenChange?.(!o, t);
|
|
13722
13727
|
},
|
|
13723
13728
|
type: "button",
|
|
13724
|
-
children: /* @__PURE__ */ e(
|
|
13729
|
+
children: /* @__PURE__ */ e(P, { name: "caret-right" })
|
|
13725
13730
|
}) : /* @__PURE__ */ e("span", { className: "control-panel__nav-toggle-placeholder" })), /* @__PURE__ */ c("button", {
|
|
13726
13731
|
className: m,
|
|
13727
13732
|
onClick: () => {
|
|
@@ -13736,7 +13741,7 @@ function F2(t, r, l, a = 0) {
|
|
|
13736
13741
|
t.icon ? /* @__PURE__ */ e("span", {
|
|
13737
13742
|
className: "control-panel__nav-icon",
|
|
13738
13743
|
style: t.color ? { color: t.color } : void 0,
|
|
13739
|
-
children: /* @__PURE__ */ e(
|
|
13744
|
+
children: /* @__PURE__ */ e(P, { name: t.icon })
|
|
13740
13745
|
}) : t.color && /* @__PURE__ */ e("span", {
|
|
13741
13746
|
className: "control-panel__nav-dot",
|
|
13742
13747
|
style: { backgroundColor: t.color }
|
|
@@ -13878,7 +13883,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13878
13883
|
children: o.label
|
|
13879
13884
|
}), o.options.map((i, n) => {
|
|
13880
13885
|
const s = n > 0 ? o.options[n - 1] : void 0, p = !!s && s.type !== i.type;
|
|
13881
|
-
return /* @__PURE__ */ c(
|
|
13886
|
+
return /* @__PURE__ */ c(g1.Fragment, { children: [p && /* @__PURE__ */ e(h0, { spacing: 0 }), /* @__PURE__ */ c("div", {
|
|
13882
13887
|
className: `control-panel__option control-panel__option--${i.type}`,
|
|
13883
13888
|
children: [
|
|
13884
13889
|
i.type === "checkbox" && /* @__PURE__ */ e(d0, {
|
|
@@ -13916,7 +13921,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13916
13921
|
type: "radio",
|
|
13917
13922
|
value: u.value
|
|
13918
13923
|
}),
|
|
13919
|
-
u.icon && /* @__PURE__ */ e(
|
|
13924
|
+
u.icon && /* @__PURE__ */ e(P, { name: u.icon }),
|
|
13920
13925
|
/* @__PURE__ */ e("span", {
|
|
13921
13926
|
className: "control-panel__filter-label",
|
|
13922
13927
|
children: u.label
|
|
@@ -13927,13 +13932,13 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
13927
13932
|
return u.title ? /* @__PURE__ */ e(J, {
|
|
13928
13933
|
title: u.title,
|
|
13929
13934
|
children: w
|
|
13930
|
-
}, u.value) : /* @__PURE__ */ e(
|
|
13935
|
+
}, u.value) : /* @__PURE__ */ e(g1.Fragment, { children: w }, u.value);
|
|
13931
13936
|
})
|
|
13932
13937
|
})] }),
|
|
13933
13938
|
i.type === "slider" && /* @__PURE__ */ c(n1, { children: [i.label && /* @__PURE__ */ c("span", {
|
|
13934
13939
|
className: "control-panel__filter-title",
|
|
13935
13940
|
children: [
|
|
13936
|
-
i.icon && /* @__PURE__ */ e(
|
|
13941
|
+
i.icon && /* @__PURE__ */ e(P, { name: i.icon }),
|
|
13937
13942
|
i.label,
|
|
13938
13943
|
i.showValue !== !1 && /* @__PURE__ */ c("span", {
|
|
13939
13944
|
className: "control-panel__option-slider-value",
|
|
@@ -14181,7 +14186,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14181
14186
|
const d = r ? (a - 1) * t + 1 : 0, o = Math.min(a * t, r), m = h ? ` ${h}` : "";
|
|
14182
14187
|
return r === l ? `Showing ${d}-${o} of ${l}${m}` : `Showing ${d}-${o} of ${r} filtered${m} (${l} total)`;
|
|
14183
14188
|
}, 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(
|
|
14189
|
+
const m = h || d, i = typeof t == "string" ? /* @__PURE__ */ e(P, {
|
|
14185
14190
|
name: t,
|
|
14186
14191
|
size: "xxxl"
|
|
14187
14192
|
}) : t;
|
|
@@ -14218,7 +14223,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14218
14223
|
]
|
|
14219
14224
|
});
|
|
14220
14225
|
}, 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 = X(null), [g, v] = z(p ? 0 : 2), w =
|
|
14226
|
+
const { isAtLeast: s, isMobile: p } = g0(), u = X(null), [g, v] = z(p ? 0 : 2), w = Z(() => {
|
|
14222
14227
|
const C = u.current, x = C?.parentElement;
|
|
14223
14228
|
if (!C || !x) return;
|
|
14224
14229
|
let k = 0;
|
|
@@ -14352,7 +14357,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14352
14357
|
children: t.showYear ? t.yearLabel : t.dateLabel
|
|
14353
14358
|
})
|
|
14354
14359
|
}), ri = ({ items: t, renderItem: r, className: l }) => {
|
|
14355
|
-
const a =
|
|
14360
|
+
const a = u1(() => a2(t), [t]);
|
|
14356
14361
|
return /* @__PURE__ */ c("div", {
|
|
14357
14362
|
className: `timeline-markers${l ? ` ${l}` : ""}`,
|
|
14358
14363
|
children: [/* @__PURE__ */ e("div", { className: "timeline-markers__track" }), t.map((h, d) => {
|
|
@@ -14369,7 +14374,7 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14369
14374
|
500
|
|
14370
14375
|
], O2 = (t) => typeof t.header == "string" ? t.header : t.key, Rc = (t) => typeof t == "number" ? `${t}px` : t, Y2 = (t) => /* @__PURE__ */ c("span", {
|
|
14371
14376
|
className: "data-view__column-label",
|
|
14372
|
-
children: [t.icon && /* @__PURE__ */ e(
|
|
14377
|
+
children: [t.icon && /* @__PURE__ */ e(P, {
|
|
14373
14378
|
className: "data-view__column-icon",
|
|
14374
14379
|
name: t.icon,
|
|
14375
14380
|
size: "sm",
|
|
@@ -14379,14 +14384,14 @@ var mc = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.len
|
|
|
14379
14384
|
const l = t.cellIcon?.(r), a = t.accessor ? t.accessor(r) : r[t.key];
|
|
14380
14385
|
return l ? /* @__PURE__ */ c("span", {
|
|
14381
14386
|
className: "data-view__cell-with-icon",
|
|
14382
|
-
children: [/* @__PURE__ */ e(
|
|
14387
|
+
children: [/* @__PURE__ */ e(P, {
|
|
14383
14388
|
className: "data-view__cell-icon",
|
|
14384
14389
|
name: l
|
|
14385
14390
|
}), /* @__PURE__ */ e("span", { children: a })]
|
|
14386
14391
|
}) : a;
|
|
14387
14392
|
};
|
|
14388
14393
|
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 =
|
|
14394
|
+
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
14395
|
id: d.idAccessor(_),
|
|
14391
14396
|
date: d.dateAccessor(_)
|
|
14392
14397
|
})), d.granularity) : /* @__PURE__ */ new Map(), [t, d]);
|
|
@@ -14406,7 +14411,7 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14406
14411
|
title: "Pinned",
|
|
14407
14412
|
children: /* @__PURE__ */ e("span", {
|
|
14408
14413
|
className: "data-view__card-pin",
|
|
14409
|
-
children: /* @__PURE__ */ e(
|
|
14414
|
+
children: /* @__PURE__ */ e(P, {
|
|
14410
14415
|
name: "pin",
|
|
14411
14416
|
size: "sm"
|
|
14412
14417
|
})
|
|
@@ -14432,7 +14437,7 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14432
14437
|
className: "data-view__card-title-row",
|
|
14433
14438
|
children: [/* @__PURE__ */ c("div", {
|
|
14434
14439
|
className: "data-view__card-title-line",
|
|
14435
|
-
children: [D && /* @__PURE__ */ e(
|
|
14440
|
+
children: [D && /* @__PURE__ */ e(P, {
|
|
14436
14441
|
className: "data-view__card-icon",
|
|
14437
14442
|
name: D
|
|
14438
14443
|
}), /* @__PURE__ */ e("span", {
|
|
@@ -14468,7 +14473,7 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14468
14473
|
children: h(_)
|
|
14469
14474
|
})
|
|
14470
14475
|
] });
|
|
14471
|
-
return /* @__PURE__ */ c(
|
|
14476
|
+
return /* @__PURE__ */ c(g1.Fragment, { children: [B && /* @__PURE__ */ e(Sc, { marker: B }), N ? /* @__PURE__ */ e("a", {
|
|
14472
14477
|
className: q,
|
|
14473
14478
|
href: N,
|
|
14474
14479
|
onClick: t1,
|
|
@@ -14501,7 +14506,7 @@ function Bc({ data: t, columns: r, rowKey: l, card: a, actions: h, timeline: d,
|
|
|
14501
14506
|
className: "data-view__group-count",
|
|
14502
14507
|
children: R.items.length === R.totalCount ? R.totalCount : `${R.items.length} of ${R.totalCount}`
|
|
14503
14508
|
}),
|
|
14504
|
-
b && /* @__PURE__ */ e(
|
|
14509
|
+
b && /* @__PURE__ */ e(P, {
|
|
14505
14510
|
className: "data-view__group-chevron",
|
|
14506
14511
|
name: E ? "caret-down" : "caret-up",
|
|
14507
14512
|
size: "sm"
|
|
@@ -14541,7 +14546,7 @@ function Ac({ config: t }) {
|
|
|
14541
14546
|
onClick: () => m((n) => !n),
|
|
14542
14547
|
children: /* @__PURE__ */ c("span", {
|
|
14543
14548
|
className: "data-view__column-selector-label",
|
|
14544
|
-
children: [h, /* @__PURE__ */ e(
|
|
14549
|
+
children: [h, /* @__PURE__ */ e(P, {
|
|
14545
14550
|
name: "caret-down",
|
|
14546
14551
|
size: "sm"
|
|
14547
14552
|
})]
|
|
@@ -14577,7 +14582,7 @@ var $c = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
|
|
|
14577
14582
|
children: /* @__PURE__ */ e(T, {
|
|
14578
14583
|
className: `mini-sort__button${s ? " is-active" : ""}`,
|
|
14579
14584
|
disabled: m.disabled,
|
|
14580
|
-
icon: m.icon ? /* @__PURE__ */ e(
|
|
14585
|
+
icon: m.icon ? /* @__PURE__ */ e(P, {
|
|
14581
14586
|
className: "mini-sort__icon",
|
|
14582
14587
|
name: m.icon,
|
|
14583
14588
|
size: "sm",
|
|
@@ -14594,7 +14599,7 @@ var $c = ({ items: t, sortKey: r, sortDirection: l, onSort: a, align: h = "left"
|
|
|
14594
14599
|
children: /* @__PURE__ */ e(T, {
|
|
14595
14600
|
className: "mini-sort__button mini-sort__direction",
|
|
14596
14601
|
disabled: r === null,
|
|
14597
|
-
icon: /* @__PURE__ */ e(
|
|
14602
|
+
icon: /* @__PURE__ */ e(P, {
|
|
14598
14603
|
className: "mini-sort__icon",
|
|
14599
14604
|
name: l === "asc" ? "arrow-up" : "arrow-down",
|
|
14600
14605
|
size: "sm",
|
|
@@ -14628,7 +14633,7 @@ function Ec({ columns: t, config: r, sortDirection: l, sortKey: a, onSort: h })
|
|
|
14628
14633
|
function Dc({ state: t }) {
|
|
14629
14634
|
return /* @__PURE__ */ e("span", {
|
|
14630
14635
|
className: `data-view__sort-icon data-view__sort-icon--${t}`,
|
|
14631
|
-
children: /* @__PURE__ */ e(
|
|
14636
|
+
children: /* @__PURE__ */ e(P, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
14632
14637
|
});
|
|
14633
14638
|
}
|
|
14634
14639
|
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 }) {
|
|
@@ -14644,7 +14649,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14644
14649
|
key: $,
|
|
14645
14650
|
direction: l1
|
|
14646
14651
|
}), Q1(1);
|
|
14647
|
-
}, i0 =
|
|
14652
|
+
}, i0 = u1(() => new Set(a ?? []), [a]), L1 = u1(() => {
|
|
14648
14653
|
let $ = r;
|
|
14649
14654
|
if (N1) {
|
|
14650
14655
|
const K = t.find((e1) => e1.key === N1);
|
|
@@ -14675,7 +14680,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14675
14680
|
N1,
|
|
14676
14681
|
i0,
|
|
14677
14682
|
a
|
|
14678
|
-
]), D1 = o1 !== void 0, U1 =
|
|
14683
|
+
]), D1 = o1 !== void 0, U1 = u1(() => {
|
|
14679
14684
|
if (!N || D1) return L1;
|
|
14680
14685
|
const $ = /* @__PURE__ */ new Map(), l1 = [];
|
|
14681
14686
|
L1.forEach((K) => {
|
|
@@ -14696,14 +14701,14 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14696
14701
|
N,
|
|
14697
14702
|
D1,
|
|
14698
14703
|
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 =
|
|
14704
|
+
]), 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
14705
|
if (!N) return null;
|
|
14701
14706
|
const $ = /* @__PURE__ */ new Map();
|
|
14702
14707
|
return U1.forEach((l1) => {
|
|
14703
14708
|
const p1 = N.groupBy(l1);
|
|
14704
14709
|
$.set(p1, ($.get(p1) ?? 0) + 1);
|
|
14705
14710
|
}), $;
|
|
14706
|
-
}, [N, U1]), F1 =
|
|
14711
|
+
}, [N, U1]), F1 = u1(() => {
|
|
14707
14712
|
if (!N || !c1) return null;
|
|
14708
14713
|
const $ = /* @__PURE__ */ new Map(), l1 = [];
|
|
14709
14714
|
G.forEach((K) => {
|
|
@@ -14721,7 +14726,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14721
14726
|
N,
|
|
14722
14727
|
c1,
|
|
14723
14728
|
G
|
|
14724
|
-
]), N0 =
|
|
14729
|
+
]), N0 = u1(() => g ? a2(G.map(($) => ({
|
|
14725
14730
|
id: g.idAccessor($),
|
|
14726
14731
|
date: g.dateAccessor($)
|
|
14727
14732
|
})), g.granularity) : /* @__PURE__ */ new Map(), [G, g]), P1 = ($) => {
|
|
@@ -14804,7 +14809,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14804
14809
|
I0 && Z1(I0.key, H1 === "asc" ? "desc" : "asc");
|
|
14805
14810
|
},
|
|
14806
14811
|
variant: "ghost",
|
|
14807
|
-
children: /* @__PURE__ */ e(
|
|
14812
|
+
children: /* @__PURE__ */ e(P, { name: H1 === "asc" ? "arrow-up" : "arrow-down" })
|
|
14808
14813
|
})
|
|
14809
14814
|
})]
|
|
14810
14815
|
}),
|
|
@@ -14928,7 +14933,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14928
14933
|
}, x3 = (b1) => {
|
|
14929
14934
|
b1.button !== 1 || !k1 || (b1.preventDefault(), window.open(k1, "_blank", "noopener,noreferrer"));
|
|
14930
14935
|
}, Z0 = y?.(K);
|
|
14931
|
-
return /* @__PURE__ */ c(
|
|
14936
|
+
return /* @__PURE__ */ c(g1.Fragment, { children: [/* @__PURE__ */ c("tr", {
|
|
14932
14937
|
className: `${B1 ? "is-selected" : ""} ${d2 ? "data-view__row--clickable" : ""} ${S1 ? "data-view__row--pinned" : ""} ${f?.(K) || ""}`,
|
|
14933
14938
|
onClick: d2 ? M3 : void 0,
|
|
14934
14939
|
onAuxClick: k1 ? x3 : void 0,
|
|
@@ -14950,7 +14955,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14950
14955
|
style: a1[b1.key] ? { width: a1[b1.key] } : void 0,
|
|
14951
14956
|
children: [P0 === 0 && S1 && /* @__PURE__ */ e(J, {
|
|
14952
14957
|
title: "Pinned",
|
|
14953
|
-
children: /* @__PURE__ */ e(
|
|
14958
|
+
children: /* @__PURE__ */ e(P, {
|
|
14954
14959
|
className: "data-view__pin-indicator",
|
|
14955
14960
|
name: "pin",
|
|
14956
14961
|
size: "sm"
|
|
@@ -14982,7 +14987,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14982
14987
|
const w1 = K;
|
|
14983
14988
|
K += e1.items.length;
|
|
14984
14989
|
const B1 = N?.collapsible && x1.has(e1.key);
|
|
14985
|
-
return /* @__PURE__ */ c(
|
|
14990
|
+
return /* @__PURE__ */ c(g1.Fragment, { children: [/* @__PURE__ */ e("tr", {
|
|
14986
14991
|
className: `data-view__group-row${N?.collapsible ? " data-view__group-row--collapsible" : ""}`,
|
|
14987
14992
|
onClick: N?.collapsible ? () => E1(e1.key) : void 0,
|
|
14988
14993
|
children: /* @__PURE__ */ c("td", {
|
|
@@ -14997,7 +15002,7 @@ function ci({ columns: t, data: r, rowKey: l, pinnedIds: a, selectable: h = !1,
|
|
|
14997
15002
|
className: "data-view__group-count",
|
|
14998
15003
|
children: e1.items.length === e1.totalCount ? e1.totalCount : `${e1.items.length} of ${e1.totalCount}`
|
|
14999
15004
|
}),
|
|
15000
|
-
N?.collapsible && /* @__PURE__ */ e(
|
|
15005
|
+
N?.collapsible && /* @__PURE__ */ e(P, {
|
|
15001
15006
|
className: "data-view__group-chevron",
|
|
15002
15007
|
name: B1 ? "caret-down" : "caret-up",
|
|
15003
15008
|
size: "sm"
|
|
@@ -15073,7 +15078,7 @@ var t0 = (t) => {
|
|
|
15073
15078
|
}, [M.start]), F(() => {
|
|
15074
15079
|
k(M.end ?? "");
|
|
15075
15080
|
}, [M.end]);
|
|
15076
|
-
const t1 =
|
|
15081
|
+
const t1 = u1(() => k0(s, 1), [s]), I = d || v, D = !d && v, Q = Z(() => {
|
|
15077
15082
|
if (!D || !H.current || !L.current) return;
|
|
15078
15083
|
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
15084
|
y({
|
|
@@ -15365,7 +15370,7 @@ function Pc(t) {
|
|
|
15365
15370
|
}
|
|
15366
15371
|
return r;
|
|
15367
15372
|
}
|
|
15368
|
-
var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children:
|
|
15373
|
+
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
15374
|
className: `dv-token dv-token--${r.name}`,
|
|
15370
15375
|
children: r.val
|
|
15371
15376
|
}, l)) }), X0 = ({ line: t, side: r, type: l }) => {
|
|
@@ -15376,7 +15381,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
15376
15381
|
side: r
|
|
15377
15382
|
}) : l === "code" ? /* @__PURE__ */ e(jc, { text: a }) : /* @__PURE__ */ e(n1, { children: a });
|
|
15378
15383
|
}, ai = ({ oldValue: t, newValue: r, mode: l = "split", type: a = "text", oldTitle: h = "Before", newTitle: d = "After", showLineNumbers: o = !0 }) => {
|
|
15379
|
-
const m =
|
|
15384
|
+
const m = u1(() => Tc(t, r), [t, r]), i = u1(() => ({
|
|
15380
15385
|
added: m.filter((n) => n.kind === "added").length,
|
|
15381
15386
|
removed: m.filter((n) => n.kind === "removed").length
|
|
15382
15387
|
}), [m]);
|
|
@@ -15539,7 +15544,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
15539
15544
|
}),
|
|
15540
15545
|
(n || s) && /* @__PURE__ */ c("h2", {
|
|
15541
15546
|
className: "drawer__title",
|
|
15542
|
-
children: [s && /* @__PURE__ */ e(
|
|
15547
|
+
children: [s && /* @__PURE__ */ e(P, { name: s }), n && /* @__PURE__ */ e("span", {
|
|
15543
15548
|
className: "drawer__title-text",
|
|
15544
15549
|
children: n
|
|
15545
15550
|
})]
|
|
@@ -15560,7 +15565,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
15560
15565
|
title: B,
|
|
15561
15566
|
position: "bottom",
|
|
15562
15567
|
children: R
|
|
15563
|
-
}, _.id) : /* @__PURE__ */ e(
|
|
15568
|
+
}, _.id) : /* @__PURE__ */ e(g1.Fragment, { children: R }, _.id);
|
|
15564
15569
|
})
|
|
15565
15570
|
}),
|
|
15566
15571
|
!v && /* @__PURE__ */ e(T, {
|
|
@@ -20649,7 +20654,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20649
20654
|
]
|
|
20650
20655
|
}
|
|
20651
20656
|
], ii = ({ value: t, onChange: r }) => {
|
|
20652
|
-
const [l, a] = z(""), [h, d] = z(S0[0].id), o =
|
|
20657
|
+
const [l, a] = z(""), [h, d] = z(S0[0].id), o = u1(() => {
|
|
20653
20658
|
if (!l.trim()) return null;
|
|
20654
20659
|
const i = l.toLowerCase();
|
|
20655
20660
|
return S0.flatMap((n) => n.emojis.filter((s) => Jc[s]?.some((p) => p.includes(i)) || n.name.toLowerCase().includes(i)));
|
|
@@ -20725,7 +20730,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20725
20730
|
v.forEach((w) => URL.revokeObjectURL(w));
|
|
20726
20731
|
};
|
|
20727
20732
|
}, [m, a]);
|
|
20728
|
-
const u =
|
|
20733
|
+
const u = Z((v) => {
|
|
20729
20734
|
if (!v) return;
|
|
20730
20735
|
const w = l ? Array.from(v) : [v[0]].filter(Boolean);
|
|
20731
20736
|
i(w), h?.(w);
|
|
@@ -20791,7 +20796,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20791
20796
|
onClick: t[0].onClick,
|
|
20792
20797
|
children: /* @__PURE__ */ e("span", {
|
|
20793
20798
|
className: "float-button__icon",
|
|
20794
|
-
children: /* @__PURE__ */ e(
|
|
20799
|
+
children: /* @__PURE__ */ e(P, {
|
|
20795
20800
|
name: t[0].icon,
|
|
20796
20801
|
size: "xxl"
|
|
20797
20802
|
})
|
|
@@ -20816,7 +20821,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20816
20821
|
onClick: () => h(d),
|
|
20817
20822
|
children: [/* @__PURE__ */ e("span", {
|
|
20818
20823
|
className: "float-button-menu__icon",
|
|
20819
|
-
children: /* @__PURE__ */ e(
|
|
20824
|
+
children: /* @__PURE__ */ e(P, { name: d.icon })
|
|
20820
20825
|
}), /* @__PURE__ */ e("span", {
|
|
20821
20826
|
className: "float-button-menu__label",
|
|
20822
20827
|
children: d.label
|
|
@@ -20829,7 +20834,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20829
20834
|
onClick: a,
|
|
20830
20835
|
children: /* @__PURE__ */ e("span", {
|
|
20831
20836
|
className: "float-button__icon",
|
|
20832
|
-
children: /* @__PURE__ */ e(
|
|
20837
|
+
children: /* @__PURE__ */ e(P, {
|
|
20833
20838
|
name: r ? "clear" : "plus",
|
|
20834
20839
|
size: "xxl"
|
|
20835
20840
|
})
|
|
@@ -20841,7 +20846,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20841
20846
|
className: "loading",
|
|
20842
20847
|
children: /* @__PURE__ */ e("div", { className: "loading__spinner" })
|
|
20843
20848
|
}), 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 =
|
|
20849
|
+
const [m, i] = z(null), [n, s] = z(!1), [p, u] = z(""), g = Z(async (b) => {
|
|
20845
20850
|
s(!0);
|
|
20846
20851
|
try {
|
|
20847
20852
|
i(await a(b));
|
|
@@ -20951,7 +20956,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20951
20956
|
g(b.path);
|
|
20952
20957
|
},
|
|
20953
20958
|
children: [
|
|
20954
|
-
/* @__PURE__ */ e(
|
|
20959
|
+
/* @__PURE__ */ e(P, {
|
|
20955
20960
|
name: "folder",
|
|
20956
20961
|
size: "sm"
|
|
20957
20962
|
}),
|
|
@@ -20959,7 +20964,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20959
20964
|
className: "folder-browser__entry-name",
|
|
20960
20965
|
children: b.name
|
|
20961
20966
|
}),
|
|
20962
|
-
/* @__PURE__ */ e(
|
|
20967
|
+
/* @__PURE__ */ e(P, {
|
|
20963
20968
|
className: "folder-browser__entry-chevron",
|
|
20964
20969
|
name: "arrow-right",
|
|
20965
20970
|
size: "sm"
|
|
@@ -20971,7 +20976,7 @@ var jc = ({ text: t }) => /* @__PURE__ */ e(n1, { children: g1(() => Pc(t), [t])
|
|
|
20971
20976
|
})
|
|
20972
20977
|
});
|
|
20973
20978
|
}, 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 = X(null), p = X(null), u = X(null), g =
|
|
20979
|
+
const s = X(null), p = X(null), u = X(null), g = Z(() => {
|
|
20975
20980
|
const v = s.current;
|
|
20976
20981
|
if (!v) return;
|
|
20977
20982
|
const { scrollTop: w, scrollHeight: f, clientHeight: y } = v, b = {
|
|
@@ -21163,7 +21168,7 @@ function ll(t) {
|
|
|
21163
21168
|
return t.filter((r) => r.type === "token").length;
|
|
21164
21169
|
}
|
|
21165
21170
|
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 =
|
|
21171
|
+
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 = X(null);
|
|
21167
21172
|
B2(k, () => ({
|
|
21168
21173
|
focus: () => R.current?.focus(),
|
|
21169
21174
|
clear: () => {
|
|
@@ -21182,7 +21187,7 @@ var al = z1(({ mask: t, value: r, onChange: l, onComplete: a, placeholder: h, la
|
|
|
21182
21187
|
w ? "input-mask--has-icon" : "",
|
|
21183
21188
|
f ? "input-mask--has-suffix" : "",
|
|
21184
21189
|
y
|
|
21185
|
-
].filter(Boolean).join(" "), N =
|
|
21190
|
+
].filter(Boolean).join(" "), N = Z((I) => {
|
|
21186
21191
|
if (p || u) return;
|
|
21187
21192
|
if (I.key === "Backspace") {
|
|
21188
21193
|
I.preventDefault();
|
|
@@ -21574,7 +21579,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21574
21579
|
variant: "info",
|
|
21575
21580
|
disabled: !u,
|
|
21576
21581
|
onClick: v,
|
|
21577
|
-
children: ["Next ", /* @__PURE__ */ e(
|
|
21582
|
+
children: ["Next ", /* @__PURE__ */ e(P, {
|
|
21578
21583
|
name: "next",
|
|
21579
21584
|
size: "sm"
|
|
21580
21585
|
})]
|
|
@@ -21723,7 +21728,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21723
21728
|
onClick: () => u(v),
|
|
21724
21729
|
children: [/* @__PURE__ */ e("span", {
|
|
21725
21730
|
className: "MenuHamburger_item__icon",
|
|
21726
|
-
children: v.icon ? /* @__PURE__ */ e(
|
|
21731
|
+
children: v.icon ? /* @__PURE__ */ e(P, { name: v.icon }) : null
|
|
21727
21732
|
}), /* @__PURE__ */ e("span", {
|
|
21728
21733
|
className: "MenuHamburger_item__label",
|
|
21729
21734
|
children: v.label
|
|
@@ -21734,16 +21739,16 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21734
21739
|
})]
|
|
21735
21740
|
});
|
|
21736
21741
|
}, 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 = X(null), i = X(!1), n = Math.max(0, l - r), s = Math.max(1, ...t), p =
|
|
21742
|
+
const m = X(null), i = X(!1), n = Math.max(0, l - r), s = Math.max(1, ...t), p = Z((w) => {
|
|
21738
21743
|
const f = m.current;
|
|
21739
21744
|
if (!f) return;
|
|
21740
21745
|
const y = f.getBoundingClientRect(), b = M0((w - y.left) / y.width);
|
|
21741
21746
|
a(Math.max(0, Math.min(1 - n, b - n / 2)));
|
|
21742
|
-
}, [a, n]), u =
|
|
21747
|
+
}, [a, n]), u = Z((w) => {
|
|
21743
21748
|
i.current = !0, w.currentTarget.setPointerCapture(w.pointerId), p(w.clientX);
|
|
21744
|
-
}, [p]), g =
|
|
21749
|
+
}, [p]), g = Z((w) => {
|
|
21745
21750
|
i.current && p(w.clientX);
|
|
21746
|
-
}, [p]), v =
|
|
21751
|
+
}, [p]), v = Z((w) => {
|
|
21747
21752
|
i.current = !1, w.currentTarget.hasPointerCapture(w.pointerId) && w.currentTarget.releasePointerCapture(w.pointerId);
|
|
21748
21753
|
}, []);
|
|
21749
21754
|
return /* @__PURE__ */ c("div", {
|
|
@@ -21854,7 +21859,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21854
21859
|
disabled: v.disabled,
|
|
21855
21860
|
children: [v.icon && /* @__PURE__ */ e("span", {
|
|
21856
21861
|
className: "navbar__item-icon",
|
|
21857
|
-
children: v.icon ? /* @__PURE__ */ e(
|
|
21862
|
+
children: v.icon ? /* @__PURE__ */ e(P, { name: v.icon }) : null
|
|
21858
21863
|
}), /* @__PURE__ */ e("span", {
|
|
21859
21864
|
className: "navbar__item-label",
|
|
21860
21865
|
children: v.label
|
|
@@ -21995,7 +22000,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
21995
22000
|
const l = t.variant ?? "default";
|
|
21996
22001
|
return l === "custom" ? t.customColor || x2.default : l === "random" ? ul(r) : x2[l];
|
|
21997
22002
|
}, 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 =
|
|
22003
|
+
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
22004
|
const x = r.filter((L) => Number.isFinite(L.value) && L.value > 0), k = x.reduce((L, M) => L + M.value, 0);
|
|
22000
22005
|
if (k <= 0) return [];
|
|
22001
22006
|
let H = 0;
|
|
@@ -22105,7 +22110,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22105
22110
|
`progress-bar-${i}`,
|
|
22106
22111
|
n && "progress-bar-striped",
|
|
22107
22112
|
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 =
|
|
22113
|
+
].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
22114
|
const x = [];
|
|
22110
22115
|
return m && x.push(`${E0(p)}%`), l && x.push(l), (a ? x : x.reverse()).join(" - ");
|
|
22111
22116
|
}, [
|
|
@@ -22143,7 +22148,7 @@ var ui = z1(({ autoComplete: t = "on", autoFocus: r, cols: l, disabled: a, error
|
|
|
22143
22148
|
medium: 96,
|
|
22144
22149
|
large: 128
|
|
22145
22150
|
}, 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 =
|
|
22151
|
+
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
22152
|
return /* @__PURE__ */ c("div", {
|
|
22148
22153
|
className: `progress-ring progress-ring--${m} ${r}`,
|
|
22149
22154
|
style: { "--progress-ring-size": `${p}px` },
|
|
@@ -22614,11 +22619,11 @@ ${h.textContent ?? ""}
|
|
|
22614
22619
|
`, zl = 100, Vl = (t, r, l) => {
|
|
22615
22620
|
const a = X([]), h = X([]);
|
|
22616
22621
|
return {
|
|
22617
|
-
snapshotForUndo:
|
|
22622
|
+
snapshotForUndo: Z(() => {
|
|
22618
22623
|
const d = t.current;
|
|
22619
22624
|
d && (a.current.push(d.innerHTML), a.current.length > zl && a.current.shift(), h.current = []);
|
|
22620
22625
|
}, [t]),
|
|
22621
|
-
undo:
|
|
22626
|
+
undo: Z(() => {
|
|
22622
22627
|
const d = t.current;
|
|
22623
22628
|
if (!d || a.current.length === 0) return;
|
|
22624
22629
|
h.current.push(d.innerHTML);
|
|
@@ -22631,7 +22636,7 @@ ${h.textContent ?? ""}
|
|
|
22631
22636
|
r,
|
|
22632
22637
|
l
|
|
22633
22638
|
]),
|
|
22634
|
-
redo:
|
|
22639
|
+
redo: Z(() => {
|
|
22635
22640
|
const d = t.current;
|
|
22636
22641
|
if (!d || h.current.length === 0) return;
|
|
22637
22642
|
a.current.push(d.innerHTML);
|
|
@@ -22654,7 +22659,7 @@ ${h.textContent ?? ""}
|
|
|
22654
22659
|
linkText: m,
|
|
22655
22660
|
setLinkText: i,
|
|
22656
22661
|
editingAnchorRef: s,
|
|
22657
|
-
openLinkPrompt:
|
|
22662
|
+
openLinkPrompt: Z((p) => {
|
|
22658
22663
|
if (p)
|
|
22659
22664
|
s.current = p, i(p.textContent ?? ""), o(p.getAttribute("href") ?? "");
|
|
22660
22665
|
else {
|
|
@@ -22664,7 +22669,7 @@ ${h.textContent ?? ""}
|
|
|
22664
22669
|
}
|
|
22665
22670
|
h(!0);
|
|
22666
22671
|
}, []),
|
|
22667
|
-
confirmLink:
|
|
22672
|
+
confirmLink: Z(() => {
|
|
22668
22673
|
const p = t.current;
|
|
22669
22674
|
if (p) {
|
|
22670
22675
|
if (p.focus(), s.current) {
|
|
@@ -22697,12 +22702,12 @@ ${h.textContent ?? ""}
|
|
|
22697
22702
|
r,
|
|
22698
22703
|
l
|
|
22699
22704
|
]),
|
|
22700
|
-
cancelLink:
|
|
22705
|
+
cancelLink: Z(() => {
|
|
22701
22706
|
h(!1), o(""), i(""), n.current = null, s.current = null;
|
|
22702
22707
|
}, [])
|
|
22703
22708
|
};
|
|
22704
22709
|
}, Hl = ({ editorRef: t, snapshotForUndo: r, emitChange: l }) => {
|
|
22705
|
-
const [a, h] = z(null), [d, o] = z(null), m =
|
|
22710
|
+
const [a, h] = z(null), [d, o] = z(null), m = Z(() => {
|
|
22706
22711
|
const v = window.getSelection();
|
|
22707
22712
|
if (!v || v.rangeCount === 0) return null;
|
|
22708
22713
|
let w = v.getRangeAt(0).commonAncestorContainer;
|
|
@@ -22714,7 +22719,7 @@ ${h.textContent ?? ""}
|
|
|
22714
22719
|
w = w.parentNode;
|
|
22715
22720
|
}
|
|
22716
22721
|
return null;
|
|
22717
|
-
}, [t]), i =
|
|
22722
|
+
}, [t]), i = Z((v) => {
|
|
22718
22723
|
const w = t.current;
|
|
22719
22724
|
if (!w) return;
|
|
22720
22725
|
const f = w.getBoundingClientRect(), y = v.getBoundingClientRect();
|
|
@@ -22722,9 +22727,9 @@ ${h.textContent ?? ""}
|
|
|
22722
22727
|
top: y.top - f.top - 36,
|
|
22723
22728
|
left: y.left - f.left
|
|
22724
22729
|
});
|
|
22725
|
-
}, [t]), n =
|
|
22730
|
+
}, [t]), n = Z(() => {
|
|
22726
22731
|
h(null), o(null);
|
|
22727
|
-
}, []), s =
|
|
22732
|
+
}, []), s = Z(() => {
|
|
22728
22733
|
if (!a) return;
|
|
22729
22734
|
r();
|
|
22730
22735
|
const v = m()?.closest("tr") ?? null, w = a.querySelector("tbody") ?? a, f = v ?? w.querySelector("tr:last-child");
|
|
@@ -22737,7 +22742,7 @@ ${h.textContent ?? ""}
|
|
|
22737
22742
|
m,
|
|
22738
22743
|
l,
|
|
22739
22744
|
i
|
|
22740
|
-
]), p =
|
|
22745
|
+
]), p = Z(() => {
|
|
22741
22746
|
if (!a) return;
|
|
22742
22747
|
r();
|
|
22743
22748
|
const v = m()?.closest("tr") ?? null, w = a.querySelector("tbody") ?? a, f = v ?? w.querySelector("tr:first-child");
|
|
@@ -22750,7 +22755,7 @@ ${h.textContent ?? ""}
|
|
|
22750
22755
|
m,
|
|
22751
22756
|
l,
|
|
22752
22757
|
i
|
|
22753
|
-
]), u =
|
|
22758
|
+
]), u = Z(() => {
|
|
22754
22759
|
if (!a) return;
|
|
22755
22760
|
const v = Array.from(a.querySelectorAll("tbody tr"));
|
|
22756
22761
|
v.length <= 1 || (r(), (m()?.closest("tr") ?? v[v.length - 1]).remove(), l(), i(a));
|
|
@@ -22760,7 +22765,7 @@ ${h.textContent ?? ""}
|
|
|
22760
22765
|
m,
|
|
22761
22766
|
l,
|
|
22762
22767
|
i
|
|
22763
|
-
]), g =
|
|
22768
|
+
]), g = Z(() => {
|
|
22764
22769
|
if (!a) return;
|
|
22765
22770
|
r();
|
|
22766
22771
|
const v = m(), w = v ? Array.from(v.parentElement.querySelectorAll("td,th")).indexOf(v) : -1;
|
|
@@ -22785,7 +22790,7 @@ ${h.textContent ?? ""}
|
|
|
22785
22790
|
addRowAbove: p,
|
|
22786
22791
|
addRowBelow: s,
|
|
22787
22792
|
removeRow: u,
|
|
22788
|
-
addColumnLeft:
|
|
22793
|
+
addColumnLeft: Z(() => {
|
|
22789
22794
|
if (!a) return;
|
|
22790
22795
|
r();
|
|
22791
22796
|
const v = m(), w = v ? Array.from(v.parentElement.querySelectorAll("td,th")).indexOf(v) : 0;
|
|
@@ -22803,7 +22808,7 @@ ${h.textContent ?? ""}
|
|
|
22803
22808
|
i
|
|
22804
22809
|
]),
|
|
22805
22810
|
addColumnRight: g,
|
|
22806
|
-
removeColumn:
|
|
22811
|
+
removeColumn: Z(() => {
|
|
22807
22812
|
if (!a) return;
|
|
22808
22813
|
const v = Array.from(a.querySelectorAll("tr"));
|
|
22809
22814
|
if ((v[0]?.querySelectorAll("td,th").length ?? 0) <= 1) return;
|
|
@@ -22820,7 +22825,7 @@ ${h.textContent ?? ""}
|
|
|
22820
22825
|
l,
|
|
22821
22826
|
i
|
|
22822
22827
|
]),
|
|
22823
|
-
deleteTable:
|
|
22828
|
+
deleteTable: Z(() => {
|
|
22824
22829
|
a && (r(), a.remove(), n(), l());
|
|
22825
22830
|
}, [
|
|
22826
22831
|
a,
|
|
@@ -22991,7 +22996,7 @@ ${h.textContent ?? ""}
|
|
|
22991
22996
|
onMouseDown: (n) => {
|
|
22992
22997
|
n.preventDefault(), h();
|
|
22993
22998
|
},
|
|
22994
|
-
children: [/* @__PURE__ */ e(
|
|
22999
|
+
children: [/* @__PURE__ */ e(P, { name: "checkmark" }), " List"]
|
|
22995
23000
|
})
|
|
22996
23001
|
})]
|
|
22997
23002
|
}),
|
|
@@ -23021,7 +23026,7 @@ ${h.textContent ?? ""}
|
|
|
23021
23026
|
onMouseDown: (n) => {
|
|
23022
23027
|
n.preventDefault(), d();
|
|
23023
23028
|
},
|
|
23024
|
-
children: [/* @__PURE__ */ e(
|
|
23029
|
+
children: [/* @__PURE__ */ e(P, { name: "link" }), " Link"]
|
|
23025
23030
|
})
|
|
23026
23031
|
})
|
|
23027
23032
|
}),
|
|
@@ -23058,7 +23063,7 @@ ${h.textContent ?? ""}
|
|
|
23058
23063
|
const s1 = n ?? "";
|
|
23059
23064
|
r1.innerHTML !== s1 && (r1.innerHTML = s1);
|
|
23060
23065
|
}, [n]);
|
|
23061
|
-
const w =
|
|
23066
|
+
const w = Z(() => {
|
|
23062
23067
|
const r1 = s.current;
|
|
23063
23068
|
if (!r1 || !o) return;
|
|
23064
23069
|
p.current = !0;
|
|
@@ -23074,7 +23079,7 @@ ${h.textContent ?? ""}
|
|
|
23074
23079
|
editorRef: s,
|
|
23075
23080
|
snapshotForUndo: f,
|
|
23076
23081
|
emitChange: w
|
|
23077
|
-
}), h1 =
|
|
23082
|
+
}), h1 = Z(() => {
|
|
23078
23083
|
const r1 = [
|
|
23079
23084
|
"bold",
|
|
23080
23085
|
"italic",
|
|
@@ -23104,12 +23109,12 @@ ${h.textContent ?? ""}
|
|
|
23104
23109
|
}
|
|
23105
23110
|
}
|
|
23106
23111
|
v(s1);
|
|
23107
|
-
}, []), U =
|
|
23112
|
+
}, []), U = Z((r1, s1) => {
|
|
23108
23113
|
s.current?.focus(), document.execCommand(r1, !1, s1), h1(), w();
|
|
23109
|
-
}, [w, h1]), d1 =
|
|
23114
|
+
}, [w, h1]), d1 = Z((r1) => {
|
|
23110
23115
|
const s1 = `h${r1}`, A = g.has(s1);
|
|
23111
23116
|
U("formatBlock", A ? "p" : s1);
|
|
23112
|
-
}, [g, U]), v1 =
|
|
23117
|
+
}, [g, U]), v1 = Z(() => {
|
|
23113
23118
|
f();
|
|
23114
23119
|
const r1 = s.current;
|
|
23115
23120
|
if (!r1) return;
|
|
@@ -23126,9 +23131,9 @@ ${h.textContent ?? ""}
|
|
|
23126
23131
|
x1.className = "rte-task-list", x1.appendChild(j), A.deleteContents(), A.insertNode(x1);
|
|
23127
23132
|
const M1 = document.createRange();
|
|
23128
23133
|
M1.setStart(m1, 1), M1.collapse(!0), s1.removeAllRanges(), s1.addRange(M1), w();
|
|
23129
|
-
}, [f, w]), y1 =
|
|
23134
|
+
}, [f, w]), y1 = Z(() => {
|
|
23130
23135
|
U("insertHTML", Ll);
|
|
23131
|
-
}, [U]), _1 =
|
|
23136
|
+
}, [U]), _1 = Z((r1) => {
|
|
23132
23137
|
const s1 = r1.target, A = s1.closest("a");
|
|
23133
23138
|
if (A) {
|
|
23134
23139
|
r1.preventDefault(), V(A), h1();
|
|
@@ -23141,7 +23146,7 @@ ${h.textContent ?? ""}
|
|
|
23141
23146
|
h1,
|
|
23142
23147
|
E,
|
|
23143
23148
|
O
|
|
23144
|
-
]), C1 =
|
|
23149
|
+
]), C1 = Z((r1) => {
|
|
23145
23150
|
if ((r1.ctrlKey || r1.metaKey) && r1.key === "z") {
|
|
23146
23151
|
r1.preventDefault(), r1.shiftKey ? b() : y();
|
|
23147
23152
|
return;
|
|
@@ -23257,7 +23262,7 @@ ${h.textContent ?? ""}
|
|
|
23257
23262
|
o.removeEventListener("scroll", m);
|
|
23258
23263
|
};
|
|
23259
23264
|
}, [t, r]);
|
|
23260
|
-
const d =
|
|
23265
|
+
const d = Z(() => {
|
|
23261
23266
|
t ? t.scrollTo({
|
|
23262
23267
|
top: 0,
|
|
23263
23268
|
behavior: "smooth"
|
|
@@ -23282,7 +23287,7 @@ ${h.textContent ?? ""}
|
|
|
23282
23287
|
if (!t) throw new Error("useSidebar must be used within a SidebarProvider");
|
|
23283
23288
|
return t;
|
|
23284
23289
|
}, Ei = ({ children: t }) => {
|
|
23285
|
-
const { isMobile: r } = g0(), [l, a] = z(!1), h =
|
|
23290
|
+
const { isMobile: r } = g0(), [l, a] = z(!1), h = Z(() => a((i) => !i), []), d = Z(() => a(!0), []), o = Z(() => a(!1), []), m = u1(() => ({
|
|
23286
23291
|
isMobile: r,
|
|
23287
23292
|
isOpen: l,
|
|
23288
23293
|
toggle: h,
|
|
@@ -23325,7 +23330,7 @@ ${h.textContent ?? ""}
|
|
|
23325
23330
|
children: [
|
|
23326
23331
|
M.icon && /* @__PURE__ */ e("span", {
|
|
23327
23332
|
className: "sidebar__link-icon",
|
|
23328
|
-
children: /* @__PURE__ */ e(
|
|
23333
|
+
children: /* @__PURE__ */ e(P, { name: M.icon })
|
|
23329
23334
|
}),
|
|
23330
23335
|
M.emoji && /* @__PURE__ */ e("span", {
|
|
23331
23336
|
className: "sidebar__link-emoji",
|
|
@@ -23378,7 +23383,7 @@ ${h.textContent ?? ""}
|
|
|
23378
23383
|
className: "sidebar__section-title-row",
|
|
23379
23384
|
children: [M.icon && /* @__PURE__ */ e("span", {
|
|
23380
23385
|
className: "sidebar__section-icon",
|
|
23381
|
-
children: /* @__PURE__ */ e(
|
|
23386
|
+
children: /* @__PURE__ */ e(P, { name: M.icon })
|
|
23382
23387
|
}), /* @__PURE__ */ c("div", {
|
|
23383
23388
|
className: "sidebar__section-copy",
|
|
23384
23389
|
children: [M.title && /* @__PURE__ */ e("span", {
|
|
@@ -23498,7 +23503,7 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23498
23503
|
F(() => (l ? document.body.classList.add("split-panel-active") : document.body.classList.remove("split-panel-active"), () => {
|
|
23499
23504
|
document.body.classList.remove("split-panel-active");
|
|
23500
23505
|
}), [l]);
|
|
23501
|
-
const g =
|
|
23506
|
+
const g = Z((v) => {
|
|
23502
23507
|
v.preventDefault(), u.current = !0, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
23503
23508
|
const w = (y) => {
|
|
23504
23509
|
if (!u.current || !p.current) return;
|
|
@@ -23557,7 +23562,7 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23557
23562
|
const a = `${E0(r)}%`;
|
|
23558
23563
|
return t.label && l ? `${t.label} - ${a}` : t.label ? t.label : a;
|
|
23559
23564
|
}, 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 =
|
|
23565
|
+
const s = u1(() => {
|
|
23561
23566
|
if (h.length === 0) return [];
|
|
23562
23567
|
if (!l) return h.map((v) => Math.max(0, v.value));
|
|
23563
23568
|
const g = h.reduce((v, w) => v + Math.max(0, w.value), 0);
|
|
@@ -23635,11 +23640,11 @@ var Ii = ({ variant: t = "text", animation: r = "pulse", width: l, height: a, bo
|
|
|
23635
23640
|
function _2({ state: t }) {
|
|
23636
23641
|
return /* @__PURE__ */ e("span", {
|
|
23637
23642
|
className: `suggestions-list__sort-icon suggestions-list__sort-icon--${t}`,
|
|
23638
|
-
children: /* @__PURE__ */ e(
|
|
23643
|
+
children: /* @__PURE__ */ e(P, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
23639
23644
|
});
|
|
23640
23645
|
}
|
|
23641
23646
|
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 =
|
|
23647
|
+
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
23648
|
if (!u) return f;
|
|
23644
23649
|
const M = [...f].sort((V, S) => {
|
|
23645
23650
|
const _ = u === "name" ? V.name : V.value, R = u === "name" ? S.name : S.value;
|
|
@@ -23650,13 +23655,13 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
23650
23655
|
f,
|
|
23651
23656
|
u,
|
|
23652
23657
|
v
|
|
23653
|
-
]), b =
|
|
23658
|
+
]), b = u1(() => i ? [...y] : y.slice(0, L2), [y, i]), C = y.length > L2, x = () => {
|
|
23654
23659
|
m(!o);
|
|
23655
|
-
}, k =
|
|
23660
|
+
}, k = Z(() => {
|
|
23656
23661
|
n(!i);
|
|
23657
23662
|
}, [i]), H = (M) => {
|
|
23658
23663
|
u === M ? w((V) => V === "asc" ? "desc" : "asc") : (g(M), w("asc"));
|
|
23659
|
-
}, L =
|
|
23664
|
+
}, L = u1(() => /* @__PURE__ */ c("div", {
|
|
23660
23665
|
className: "list-suggestions-list",
|
|
23661
23666
|
children: [
|
|
23662
23667
|
/* @__PURE__ */ e(J, {
|
|
@@ -24287,11 +24292,11 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24287
24292
|
C.fontUrlMono ? (H || (H = document.createElement("link"), H.id = H2, H.rel = "stylesheet", document.head.appendChild(H)), H.href = C.fontUrlMono) : H?.remove();
|
|
24288
24293
|
}
|
|
24289
24294
|
}, [p]);
|
|
24290
|
-
const g =
|
|
24295
|
+
const g = Z((C) => {
|
|
24291
24296
|
o(C);
|
|
24292
|
-
}, []), v =
|
|
24297
|
+
}, []), v = Z((C) => {
|
|
24293
24298
|
i(C);
|
|
24294
|
-
}, []), w =
|
|
24299
|
+
}, []), w = Z(() => {
|
|
24295
24300
|
o(null), i(null);
|
|
24296
24301
|
}, []);
|
|
24297
24302
|
F(() => {
|
|
@@ -24315,7 +24320,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24315
24320
|
d,
|
|
24316
24321
|
h
|
|
24317
24322
|
]);
|
|
24318
|
-
const f = p0.findIndex((C) => C.value === p), y = f >= 0 ? p0[f].label : p, b =
|
|
24323
|
+
const f = p0.findIndex((C) => C.value === p), y = f >= 0 ? p0[f].label : p, b = Z(() => {
|
|
24319
24324
|
a?.({
|
|
24320
24325
|
theme: p,
|
|
24321
24326
|
effects: u
|
|
@@ -24449,7 +24454,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24449
24454
|
label: "Glow",
|
|
24450
24455
|
value: "glow-effect"
|
|
24451
24456
|
}
|
|
24452
|
-
], [f, y] = z(""), [b, C] = z(!1), [x, k] = z(!1), [H, L] = z("all"), M = X(null), V = X(!1), S = a?.trim().toLowerCase() ?? "", _ =
|
|
24457
|
+
], [f, y] = z(""), [b, C] = z(!1), [x, k] = z(!1), [H, L] = z("all"), M = X(null), V = X(!1), S = a?.trim().toLowerCase() ?? "", _ = u1(() => {
|
|
24453
24458
|
let N = p0;
|
|
24454
24459
|
if (l && l.length > 0) {
|
|
24455
24460
|
const q = new Set(l);
|
|
@@ -24698,9 +24703,9 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24698
24703
|
className: "tips-of-the-day",
|
|
24699
24704
|
children: [
|
|
24700
24705
|
/* @__PURE__ */ c("h3", { children: [
|
|
24701
|
-
/* @__PURE__ */ e(
|
|
24706
|
+
/* @__PURE__ */ e(P, { name: "sparkle" }),
|
|
24702
24707
|
" Tip Of The Day ",
|
|
24703
|
-
/* @__PURE__ */ e(
|
|
24708
|
+
/* @__PURE__ */ e(P, { name: "sparkle" })
|
|
24704
24709
|
] }),
|
|
24705
24710
|
" ",
|
|
24706
24711
|
/* @__PURE__ */ e("h4", { children: t[r] })
|
|
@@ -24728,7 +24733,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24728
24733
|
children: /* @__PURE__ */ e("button", {
|
|
24729
24734
|
className: "toast__close",
|
|
24730
24735
|
onClick: l,
|
|
24731
|
-
children: /* @__PURE__ */ e(
|
|
24736
|
+
children: /* @__PURE__ */ e(P, {
|
|
24732
24737
|
name: "clear",
|
|
24733
24738
|
size: "sm"
|
|
24734
24739
|
})
|
|
@@ -24746,7 +24751,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24746
24751
|
onClick: () => l(m.key),
|
|
24747
24752
|
children: [m.icon && /* @__PURE__ */ e("span", {
|
|
24748
24753
|
className: "toggle-buttons__card-icon",
|
|
24749
|
-
children: /* @__PURE__ */ e(
|
|
24754
|
+
children: /* @__PURE__ */ e(P, {
|
|
24750
24755
|
name: m.icon,
|
|
24751
24756
|
size: "xl"
|
|
24752
24757
|
})
|
|
@@ -24822,7 +24827,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24822
24827
|
className: "memobit-toolbar__heading-icon",
|
|
24823
24828
|
children: [
|
|
24824
24829
|
a.svg,
|
|
24825
|
-
a.icon && /* @__PURE__ */ e(
|
|
24830
|
+
a.icon && /* @__PURE__ */ e(P, { name: a.icon }),
|
|
24826
24831
|
a.emoji
|
|
24827
24832
|
]
|
|
24828
24833
|
}), /* @__PURE__ */ c("div", {
|
|
@@ -24918,7 +24923,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24918
24923
|
className: "tour-hud__btn",
|
|
24919
24924
|
disabled: l === 0,
|
|
24920
24925
|
onClick: o,
|
|
24921
|
-
children: [/* @__PURE__ */ e(
|
|
24926
|
+
children: [/* @__PURE__ */ e(P, {
|
|
24922
24927
|
name: "arrow-left",
|
|
24923
24928
|
size: "sm"
|
|
24924
24929
|
}), "Prev"]
|
|
@@ -24928,7 +24933,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24928
24933
|
className: "tour-hud__btn",
|
|
24929
24934
|
disabled: l >= a - 1,
|
|
24930
24935
|
onClick: m,
|
|
24931
|
-
children: ["Next", /* @__PURE__ */ e(
|
|
24936
|
+
children: ["Next", /* @__PURE__ */ e(P, {
|
|
24932
24937
|
name: "arrow-right",
|
|
24933
24938
|
size: "sm"
|
|
24934
24939
|
})]
|
|
@@ -24956,7 +24961,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
24956
24961
|
strokeLinejoin: "round"
|
|
24957
24962
|
})
|
|
24958
24963
|
}), 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 =
|
|
24964
|
+
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
24965
|
t.disabled || "key" in u && u.key !== "Enter" && u.key !== " " || (n && i((g) => !g), l && o(t));
|
|
24961
24966
|
}, [
|
|
24962
24967
|
n,
|
|
@@ -25014,7 +25019,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
25014
25019
|
}, u.id))
|
|
25015
25020
|
})] });
|
|
25016
25021
|
}, 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 =
|
|
25022
|
+
const [m, i] = z(d), n = Z((s) => {
|
|
25018
25023
|
s.disabled || (i(s.id), l?.(s));
|
|
25019
25024
|
}, [l]);
|
|
25020
25025
|
return /* @__PURE__ */ e("ul", {
|
|
@@ -25031,7 +25036,7 @@ var L2 = 10, Wi = ({ data: t, label: r, title: l, tooltip: a, enableSearch: h =
|
|
|
25031
25036
|
});
|
|
25032
25037
|
}, Ol = 96, Yl = 6;
|
|
25033
25038
|
function Ji({ items: t, renderItem: r, getKey: l, rowHeight: a, overscan: h = Yl, maxHeight: d, empty: o, className: m = "", rowClassName: i = "" }) {
|
|
25034
|
-
const n = X(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 =
|
|
25039
|
+
const n = X(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
25040
|
p(_.currentTarget.scrollTop);
|
|
25036
25041
|
}, []);
|
|
25037
25042
|
F(() => {
|
|
@@ -25219,13 +25224,13 @@ function tn({ children: t, config: r }) {
|
|
|
25219
25224
|
}
|
|
25220
25225
|
})();
|
|
25221
25226
|
}, [r.apiBaseUrl]);
|
|
25222
|
-
const o =
|
|
25227
|
+
const o = Z((s) => {
|
|
25223
25228
|
s.user && a({
|
|
25224
25229
|
id: s.user.id,
|
|
25225
25230
|
username: s.user.username,
|
|
25226
25231
|
createdAt: new Date(s.user.createdAt)
|
|
25227
25232
|
});
|
|
25228
|
-
}, []), m =
|
|
25233
|
+
}, []), m = Z(async (s) => {
|
|
25229
25234
|
d(!0);
|
|
25230
25235
|
try {
|
|
25231
25236
|
const p = await fetch(`${r.apiBaseUrl}/auth/login`, {
|
|
@@ -25252,7 +25257,7 @@ function tn({ children: t, config: r }) {
|
|
|
25252
25257
|
} finally {
|
|
25253
25258
|
d(!1);
|
|
25254
25259
|
}
|
|
25255
|
-
}, [r.apiBaseUrl, o]), i =
|
|
25260
|
+
}, [r.apiBaseUrl, o]), i = Z(async (s, p) => {
|
|
25256
25261
|
d(!0);
|
|
25257
25262
|
try {
|
|
25258
25263
|
const u = await fetch(`${r.apiBaseUrl}/auth/verifyMfa`, {
|
|
@@ -25274,7 +25279,7 @@ function tn({ children: t, config: r }) {
|
|
|
25274
25279
|
} finally {
|
|
25275
25280
|
d(!1);
|
|
25276
25281
|
}
|
|
25277
|
-
}, [r.apiBaseUrl, o]), n =
|
|
25282
|
+
}, [r.apiBaseUrl, o]), n = Z(async () => {
|
|
25278
25283
|
try {
|
|
25279
25284
|
await fetch(`${r.apiBaseUrl}/auth/logout`, {
|
|
25280
25285
|
method: "POST",
|
|
@@ -26390,7 +26395,7 @@ function ca(t, r) {
|
|
|
26390
26395
|
return r != null ? Math.max(Math.floor(r), 0) : t ? Jl : ea;
|
|
26391
26396
|
}
|
|
26392
26397
|
function u3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h, imageSettings: d, size: o, boostLevel: m }) {
|
|
26393
|
-
let i =
|
|
26398
|
+
let i = g1.useMemo(() => {
|
|
26394
26399
|
const g = (Array.isArray(t) ? t : [t]).reduce((v, w) => (v.push(...v0.QrSegment.makeSegments(w)), v), []);
|
|
26395
26400
|
return v0.QrCode.encodeSegments(g, Ql[r], l, void 0, void 0, m);
|
|
26396
26401
|
}, [
|
|
@@ -26399,7 +26404,7 @@ function u3({ value: t, level: r, minVersion: l, includeMargin: a, marginSize: h
|
|
|
26399
26404
|
l,
|
|
26400
26405
|
m
|
|
26401
26406
|
]);
|
|
26402
|
-
const { cells: n, margin: s, numCells: p, calculatedImageSettings: u } =
|
|
26407
|
+
const { cells: n, margin: s, numCells: p, calculatedImageSettings: u } = g1.useMemo(() => {
|
|
26403
26408
|
let g = i.getModules();
|
|
26404
26409
|
const v = ca(a, h);
|
|
26405
26410
|
return {
|
|
@@ -26430,7 +26435,7 @@ var la = (function() {
|
|
|
26430
26435
|
return !1;
|
|
26431
26436
|
}
|
|
26432
26437
|
return !0;
|
|
26433
|
-
})(), aa =
|
|
26438
|
+
})(), aa = g1.forwardRef(function(r, l) {
|
|
26434
26439
|
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
26440
|
"value",
|
|
26436
26441
|
"size",
|
|
@@ -26442,9 +26447,9 @@ var la = (function() {
|
|
|
26442
26447
|
"boostLevel",
|
|
26443
26448
|
"marginSize",
|
|
26444
26449
|
"imageSettings"
|
|
26445
|
-
]), { style: w } = v, f = r2(v, ["style"]), y = g?.src, b =
|
|
26450
|
+
]), { style: w } = v, f = r2(v, ["style"]), y = g?.src, b = g1.useRef(null), C = g1.useRef(null), x = g1.useCallback((B) => {
|
|
26446
26451
|
b.current = B, typeof l == "function" ? l(B) : l && (l.current = B);
|
|
26447
|
-
}, [l]), [k, H] =
|
|
26452
|
+
}, [l]), [k, H] = g1.useState(!1), { margin: L, cells: M, numCells: V, calculatedImageSettings: S } = u3({
|
|
26448
26453
|
value: h,
|
|
26449
26454
|
level: o,
|
|
26450
26455
|
minVersion: s,
|
|
@@ -26454,7 +26459,7 @@ var la = (function() {
|
|
|
26454
26459
|
imageSettings: g,
|
|
26455
26460
|
size: d
|
|
26456
26461
|
});
|
|
26457
|
-
|
|
26462
|
+
g1.useEffect(() => {
|
|
26458
26463
|
if (b.current != null) {
|
|
26459
26464
|
const B = b.current, E = B.getContext("2d");
|
|
26460
26465
|
if (!E) return;
|
|
@@ -26470,7 +26475,7 @@ var la = (function() {
|
|
|
26470
26475
|
});
|
|
26471
26476
|
}), S && (E.globalAlpha = S.opacity), N && E.drawImage(o1, S.x + L, S.y + L, S.w, S.h);
|
|
26472
26477
|
}
|
|
26473
|
-
}),
|
|
26478
|
+
}), g1.useEffect(() => {
|
|
26474
26479
|
H(!1);
|
|
26475
26480
|
}, [y]);
|
|
26476
26481
|
const _ = t2({
|
|
@@ -26478,7 +26483,7 @@ var la = (function() {
|
|
|
26478
26483
|
width: d
|
|
26479
26484
|
}, w);
|
|
26480
26485
|
let R = null;
|
|
26481
|
-
return y != null && (R = /* @__PURE__ */
|
|
26486
|
+
return y != null && (R = /* @__PURE__ */ g1.createElement("img", {
|
|
26482
26487
|
src: y,
|
|
26483
26488
|
key: y,
|
|
26484
26489
|
style: { display: "none" },
|
|
@@ -26487,7 +26492,7 @@ var la = (function() {
|
|
|
26487
26492
|
},
|
|
26488
26493
|
ref: C,
|
|
26489
26494
|
crossOrigin: S?.crossOrigin
|
|
26490
|
-
})), /* @__PURE__ */
|
|
26495
|
+
})), /* @__PURE__ */ g1.createElement(g1.Fragment, null, /* @__PURE__ */ g1.createElement("canvas", t2({
|
|
26491
26496
|
style: _,
|
|
26492
26497
|
height: d,
|
|
26493
26498
|
width: d,
|
|
@@ -26496,7 +26501,7 @@ var la = (function() {
|
|
|
26496
26501
|
}, f)), R);
|
|
26497
26502
|
});
|
|
26498
26503
|
aa.displayName = "QRCodeCanvas";
|
|
26499
|
-
var g3 =
|
|
26504
|
+
var g3 = g1.forwardRef(function(r, l) {
|
|
26500
26505
|
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
26506
|
"value",
|
|
26502
26507
|
"size",
|
|
@@ -26520,7 +26525,7 @@ var g3 = u1.forwardRef(function(r, l) {
|
|
|
26520
26525
|
size: d
|
|
26521
26526
|
});
|
|
26522
26527
|
let x = y, k = null;
|
|
26523
|
-
v != null && C != null && (C.excavation != null && (x = v3(y, C.excavation)), k = /* @__PURE__ */
|
|
26528
|
+
v != null && C != null && (C.excavation != null && (x = v3(y, C.excavation)), k = /* @__PURE__ */ g1.createElement("image", {
|
|
26524
26529
|
href: v.src,
|
|
26525
26530
|
height: C.h,
|
|
26526
26531
|
width: C.w,
|
|
@@ -26531,17 +26536,17 @@ var g3 = u1.forwardRef(function(r, l) {
|
|
|
26531
26536
|
crossOrigin: C.crossOrigin
|
|
26532
26537
|
}));
|
|
26533
26538
|
const H = p3(x, f);
|
|
26534
|
-
return /* @__PURE__ */
|
|
26539
|
+
return /* @__PURE__ */ g1.createElement("svg", t2({
|
|
26535
26540
|
height: d,
|
|
26536
26541
|
width: d,
|
|
26537
26542
|
viewBox: `0 0 ${b} ${b}`,
|
|
26538
26543
|
ref: l,
|
|
26539
26544
|
role: "img"
|
|
26540
|
-
}, w), !!u && /* @__PURE__ */
|
|
26545
|
+
}, w), !!u && /* @__PURE__ */ g1.createElement("title", null, u), /* @__PURE__ */ g1.createElement("path", {
|
|
26541
26546
|
fill: m,
|
|
26542
26547
|
d: `M0,0 h${b}v${b}H0z`,
|
|
26543
26548
|
shapeRendering: "crispEdges"
|
|
26544
|
-
}), /* @__PURE__ */
|
|
26549
|
+
}), /* @__PURE__ */ g1.createElement("path", {
|
|
26545
26550
|
fill: i,
|
|
26546
26551
|
d: H,
|
|
26547
26552
|
shapeRendering: "crispEdges"
|
|
@@ -26549,7 +26554,7 @@ var g3 = u1.forwardRef(function(r, l) {
|
|
|
26549
26554
|
});
|
|
26550
26555
|
g3.displayName = "QRCodeSVG";
|
|
26551
26556
|
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 =
|
|
26557
|
+
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 (Q, h1) => {
|
|
26553
26558
|
const U = document.cookie.match(/(?:^|;\s*)csrf_token=([^;]+)/), d1 = U ? decodeURIComponent(U[1]) : null, v1 = { "Content-Type": "application/json" };
|
|
26554
26559
|
d1 && (v1["X-CSRF-Token"] = d1);
|
|
26555
26560
|
const y1 = await fetch(`${l.apiBaseUrl}${Q}`, {
|
|
@@ -26560,7 +26565,7 @@ function nn({ isOpen: t, onClose: r }) {
|
|
|
26560
26565
|
}), _1 = await y1.json().catch(() => ({}));
|
|
26561
26566
|
if (!y1.ok) throw new Error(_1.error || "Request failed");
|
|
26562
26567
|
return _1;
|
|
26563
|
-
}, [l.apiBaseUrl]), S =
|
|
26568
|
+
}, [l.apiBaseUrl]), S = Z(async () => {
|
|
26564
26569
|
h("loading"), x("");
|
|
26565
26570
|
try {
|
|
26566
26571
|
const Q = await (await fetch(`${l.apiBaseUrl}/auth/mfaStatus`, { credentials: "include" })).json();
|
|
@@ -26912,7 +26917,7 @@ function on(t, r) {
|
|
|
26912
26917
|
const l = {
|
|
26913
26918
|
pages: r.pages ?? {},
|
|
26914
26919
|
theme: r.theme
|
|
26915
|
-
}, [a, h] = z(() => x0.load(t, l)), d =
|
|
26920
|
+
}, [a, h] = z(() => x0.load(t, l)), d = Z((n, s) => {
|
|
26916
26921
|
h((p) => {
|
|
26917
26922
|
const u = {
|
|
26918
26923
|
...p,
|
|
@@ -26923,7 +26928,7 @@ function on(t, r) {
|
|
|
26923
26928
|
};
|
|
26924
26929
|
return x0.save(t, u), u;
|
|
26925
26930
|
});
|
|
26926
|
-
}, [t]), o =
|
|
26931
|
+
}, [t]), o = Z((n) => {
|
|
26927
26932
|
h((s) => {
|
|
26928
26933
|
const p = {
|
|
26929
26934
|
...s,
|
|
@@ -26931,7 +26936,7 @@ function on(t, r) {
|
|
|
26931
26936
|
};
|
|
26932
26937
|
return x0.save(t, p), p;
|
|
26933
26938
|
});
|
|
26934
|
-
}, [t]), m =
|
|
26939
|
+
}, [t]), m = Z((n) => {
|
|
26935
26940
|
h((s) => {
|
|
26936
26941
|
const p = {
|
|
26937
26942
|
...s,
|
|
@@ -26942,7 +26947,7 @@ function on(t, r) {
|
|
|
26942
26947
|
};
|
|
26943
26948
|
return x0.save(t, p), p;
|
|
26944
26949
|
});
|
|
26945
|
-
}, [t]), i =
|
|
26950
|
+
}, [t]), i = Z(() => {
|
|
26946
26951
|
h(l), x0.clearAll(t);
|
|
26947
26952
|
}, [t]);
|
|
26948
26953
|
return {
|
|
@@ -27078,7 +27083,7 @@ var pn = (t, r, l) => {
|
|
|
27078
27083
|
} catch {
|
|
27079
27084
|
return t.trim();
|
|
27080
27085
|
}
|
|
27081
|
-
}, sa = "1.0.
|
|
27086
|
+
}, sa = "1.0.46", yn = 318, ha = "61e2247", da = "2026-08-23T06:48:15.977Z", bn = "318", ma = (t) => {
|
|
27082
27087
|
const r = document.getElementById("mb-version-toast");
|
|
27083
27088
|
if (r) {
|
|
27084
27089
|
r.remove();
|
|
@@ -27102,7 +27107,7 @@ var pn = (t, r, l) => {
|
|
|
27102
27107
|
const r = {
|
|
27103
27108
|
...t,
|
|
27104
27109
|
lib: sa,
|
|
27105
|
-
libBuildNumber:
|
|
27110
|
+
libBuildNumber: 318,
|
|
27106
27111
|
libCommit: ha,
|
|
27107
27112
|
libBuildDate: da
|
|
27108
27113
|
};
|
|
@@ -27223,7 +27228,7 @@ export {
|
|
|
27223
27228
|
Cc as Flag,
|
|
27224
27229
|
si as FloatButton,
|
|
27225
27230
|
hi as FolderBrowserModal,
|
|
27226
|
-
|
|
27231
|
+
P as Icon,
|
|
27227
27232
|
di as InfiniteScroll,
|
|
27228
27233
|
rc as InputDate,
|
|
27229
27234
|
mi as InputEmail,
|