@memobit/libs 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +544 -505
- package/dist/styles/theming/cobalt-pulse.scss +268 -269
- package/dist/styles/theming/command-slate.scss +1 -1
- package/dist/styles/theming/crawler-dusk.scss +2 -3
- package/dist/styles/theming/graphite-shell.scss +2 -3
- package/dist/version.json +4 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import E1, { Component as J2, Fragment as e3, createContext as w0, forwardRef as M1, useCallback as j, useContext as f0, useEffect as U, useId as C0, useImperativeHandle as w2, useMemo as m1, useRef as Y, useState as z } from "react";
|
|
2
|
-
import { Fragment as
|
|
2
|
+
import { Fragment as l1, jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import { createPortal as q1 } from "react-dom";
|
|
4
4
|
var t3 = /* @__PURE__ */ r("svg", {
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10088,7 +10088,7 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
10088
10088
|
style: p,
|
|
10089
10089
|
title: w,
|
|
10090
10090
|
type: v,
|
|
10091
|
-
children: n ? /* @__PURE__ */ r(
|
|
10091
|
+
children: n ? /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", { className: "button__spinner" }), /* @__PURE__ */ e("span", { children: c || "Loading..." })] }) : /* @__PURE__ */ r(l1, { children: [
|
|
10092
10092
|
o !== void 0 && (typeof o == "string" ? /* @__PURE__ */ e(G, {
|
|
10093
10093
|
size: "lg",
|
|
10094
10094
|
name: o,
|
|
@@ -10096,7 +10096,11 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
10096
10096
|
}) : o),
|
|
10097
10097
|
h && /* @__PURE__ */ e("span", { children: h }),
|
|
10098
10098
|
c && /* @__PURE__ */ e("span", { children: c }),
|
|
10099
|
-
g && /* @__PURE__ */ e(
|
|
10099
|
+
g !== void 0 && (typeof g == "string" ? /* @__PURE__ */ e(G, {
|
|
10100
|
+
size: "lg",
|
|
10101
|
+
name: g,
|
|
10102
|
+
variant: i
|
|
10103
|
+
}) : g)
|
|
10100
10104
|
] })
|
|
10101
10105
|
}));
|
|
10102
10106
|
F.displayName = "Button";
|
|
@@ -10218,7 +10222,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
|
|
|
10218
10222
|
className: n,
|
|
10219
10223
|
style: d
|
|
10220
10224
|
});
|
|
10221
|
-
}, M2 = ({ emoji: t, icon: c, svg: l, appName: a, heading: s, onClick: o, className: i = "", showSeparator: n = !0 }) => /* @__PURE__ */ r(
|
|
10225
|
+
}, M2 = ({ emoji: t, icon: c, svg: l, appName: a, heading: s, onClick: o, className: i = "", showSeparator: n = !0 }) => /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ r("div", {
|
|
10222
10226
|
className: [
|
|
10223
10227
|
"app-header",
|
|
10224
10228
|
o ? "app-header--clickable" : "",
|
|
@@ -10337,6 +10341,82 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10337
10341
|
children: "×"
|
|
10338
10342
|
})]
|
|
10339
10343
|
});
|
|
10344
|
+
}, K = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled: s = !1, className: o = "", maxWidth: i, maxHeight: n }) => {
|
|
10345
|
+
const [d, h] = z(!1), [m, p] = z({
|
|
10346
|
+
top: 0,
|
|
10347
|
+
left: 0
|
|
10348
|
+
}), g = Y(null), w = Y(null), v = Y(null), u = Y(null), f = Y(!1), C = n !== void 0, x = C ? 150 : 0, b = () => {
|
|
10349
|
+
if (!v.current || !u.current) return;
|
|
10350
|
+
const H = v.current.firstElementChild, S = H && H.getBoundingClientRect().width > 0 ? H.getBoundingClientRect() : v.current.getBoundingClientRect(), k = u.current.getBoundingClientRect(), A = 8;
|
|
10351
|
+
let D = 0, P = 0;
|
|
10352
|
+
switch (c) {
|
|
10353
|
+
case "top":
|
|
10354
|
+
D = S.top - k.height - A, P = S.left + S.width / 2 - k.width / 2;
|
|
10355
|
+
break;
|
|
10356
|
+
case "bottom":
|
|
10357
|
+
D = S.bottom + A, P = S.left + S.width / 2 - k.width / 2;
|
|
10358
|
+
break;
|
|
10359
|
+
case "left":
|
|
10360
|
+
D = S.top + S.height / 2 - k.height / 2, P = S.left - k.width - A;
|
|
10361
|
+
break;
|
|
10362
|
+
case "right":
|
|
10363
|
+
D = S.top + S.height / 2 - k.height / 2, P = S.right + A;
|
|
10364
|
+
break;
|
|
10365
|
+
}
|
|
10366
|
+
const O = 8;
|
|
10367
|
+
P < O && (P = O), P + k.width > window.innerWidth - O && (P = window.innerWidth - k.width - O), D < O && (D = O), D + k.height > window.innerHeight - O && (D = window.innerHeight - k.height - O), p({
|
|
10368
|
+
top: D,
|
|
10369
|
+
left: P
|
|
10370
|
+
});
|
|
10371
|
+
}, M = () => {
|
|
10372
|
+
s || f.current || (w.current && (clearTimeout(w.current), w.current = null), g.current = setTimeout(() => {
|
|
10373
|
+
h(!0);
|
|
10374
|
+
}, l));
|
|
10375
|
+
}, _ = () => {
|
|
10376
|
+
f.current || (g.current && clearTimeout(g.current), x > 0 ? w.current = setTimeout(() => h(!1), x) : h(!1));
|
|
10377
|
+
}, N = (H) => {
|
|
10378
|
+
H.pointerType !== "touch" && H.pointerType !== "pen" || s || (f.current = !0, g.current && (clearTimeout(g.current), g.current = null), H.stopPropagation(), h((S) => !S));
|
|
10379
|
+
};
|
|
10380
|
+
U(() => (d && (b(), window.addEventListener("scroll", b, !0), window.addEventListener("resize", b)), () => {
|
|
10381
|
+
window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
|
|
10382
|
+
}), [d]), U(() => {
|
|
10383
|
+
if (!d) return;
|
|
10384
|
+
const H = (S) => {
|
|
10385
|
+
v.current?.contains(S.target) || u.current?.contains(S.target) || h(!1);
|
|
10386
|
+
};
|
|
10387
|
+
return document.addEventListener("pointerdown", H), () => {
|
|
10388
|
+
document.removeEventListener("pointerdown", H), f.current = !1;
|
|
10389
|
+
};
|
|
10390
|
+
}, [d]), U(() => () => {
|
|
10391
|
+
g.current && clearTimeout(g.current), w.current && clearTimeout(w.current);
|
|
10392
|
+
}, []);
|
|
10393
|
+
const L = () => {
|
|
10394
|
+
C && w.current && (clearTimeout(w.current), w.current = null);
|
|
10395
|
+
}, y = () => {
|
|
10396
|
+
C && (w.current = setTimeout(() => h(!1), x));
|
|
10397
|
+
};
|
|
10398
|
+
return /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", {
|
|
10399
|
+
ref: v,
|
|
10400
|
+
className: "tooltip-trigger",
|
|
10401
|
+
onMouseEnter: M,
|
|
10402
|
+
onMouseLeave: _,
|
|
10403
|
+
onFocus: M,
|
|
10404
|
+
onBlur: _,
|
|
10405
|
+
onPointerDown: N,
|
|
10406
|
+
children: a
|
|
10407
|
+
}), d && t && q1(/* @__PURE__ */ r("div", {
|
|
10408
|
+
ref: u,
|
|
10409
|
+
className: `tooltip tooltip--${c} ${C ? "tooltip--scrollable" : ""} ${o}`,
|
|
10410
|
+
style: {
|
|
10411
|
+
top: `${m.top}px`,
|
|
10412
|
+
left: `${m.left}px`,
|
|
10413
|
+
...i !== void 0 && { maxWidth: typeof i == "number" ? `${i}px` : i },
|
|
10414
|
+
...n !== void 0 && { maxHeight: typeof n == "number" ? `${n}px` : n }
|
|
10415
|
+
},
|
|
10416
|
+
onMouseEnter: L,
|
|
10417
|
+
onMouseLeave: y,
|
|
10418
|
+
children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${c}` })]
|
|
10419
|
+
}), document.body)] });
|
|
10340
10420
|
}, jl = ({ action: t, secondaryAction: c, className: l = "", description: a, dismissLabel: s = "Dismiss", onDismiss: o, showDismiss: i = !0, title: n, variant: d = "default" }) => {
|
|
10341
10421
|
const [h, m] = z(!1), p = t?.variant || (d === "default" ? "default" : d);
|
|
10342
10422
|
if (h) return null;
|
|
@@ -10370,14 +10450,16 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10370
10450
|
children: c.text
|
|
10371
10451
|
})]
|
|
10372
10452
|
})]
|
|
10373
|
-
}), i && /* @__PURE__ */ e(
|
|
10374
|
-
className: "banner__dismiss",
|
|
10375
|
-
type: "button",
|
|
10453
|
+
}), i && /* @__PURE__ */ e(K, {
|
|
10376
10454
|
title: s,
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
10380
|
-
|
|
10455
|
+
children: /* @__PURE__ */ e("button", {
|
|
10456
|
+
className: "banner__dismiss",
|
|
10457
|
+
type: "button",
|
|
10458
|
+
onClick: g,
|
|
10459
|
+
children: /* @__PURE__ */ e(G, {
|
|
10460
|
+
name: "clear",
|
|
10461
|
+
size: "sm"
|
|
10462
|
+
})
|
|
10381
10463
|
})
|
|
10382
10464
|
})]
|
|
10383
10465
|
});
|
|
@@ -10872,26 +10954,26 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10872
10954
|
return l === "multiple" && Array.isArray(t) ? t.some((Z) => U1(Z, B)) : !1;
|
|
10873
10955
|
}, D = (B) => {
|
|
10874
10956
|
if (l === "range" && t && "start" in t) {
|
|
10875
|
-
const { start: Z, end:
|
|
10876
|
-
return
|
|
10957
|
+
const { start: Z, end: J } = t, n1 = B.getTime();
|
|
10958
|
+
return n1 > Z.getTime() && n1 < J.getTime();
|
|
10877
10959
|
}
|
|
10878
10960
|
return !1;
|
|
10879
|
-
}, P = (B) => l === "range" && y ? B.getTime() > y.getTime() : !1, O = (B) => B.getMonth() === L.getMonth(),
|
|
10961
|
+
}, P = (B) => l === "range" && y ? B.getTime() > y.getTime() : !1, O = (B) => B.getMonth() === L.getMonth(), s1 = (B) => {
|
|
10880
10962
|
if (!k(B)) {
|
|
10881
10963
|
if (l === "single") c?.(B);
|
|
10882
10964
|
else if (l === "range") if (!y) v ? v(B) : (N(B), c?.(void 0));
|
|
10883
10965
|
else {
|
|
10884
|
-
const Z = A0(B, y) ? B : y,
|
|
10966
|
+
const Z = A0(B, y) ? B : y, J = A0(B, y) ? y : B;
|
|
10885
10967
|
c?.({
|
|
10886
10968
|
start: Z,
|
|
10887
|
-
end:
|
|
10969
|
+
end: J
|
|
10888
10970
|
}), v ? v(null) : N(null);
|
|
10889
10971
|
}
|
|
10890
10972
|
else if (l === "multiple") {
|
|
10891
|
-
const Z = Array.isArray(t) ? t : [],
|
|
10892
|
-
if (
|
|
10893
|
-
const
|
|
10894
|
-
c?.(
|
|
10973
|
+
const Z = Array.isArray(t) ? t : [], J = Z.findIndex((n1) => U1(n1, B));
|
|
10974
|
+
if (J >= 0) {
|
|
10975
|
+
const n1 = Z.filter((b1, f1) => f1 !== J);
|
|
10976
|
+
c?.(n1.length > 0 ? n1 : void 0);
|
|
10895
10977
|
} else c?.([...Z, B]);
|
|
10896
10978
|
}
|
|
10897
10979
|
}
|
|
@@ -10901,7 +10983,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10901
10983
|
}, X = () => {
|
|
10902
10984
|
const B = u0(L, 1);
|
|
10903
10985
|
p ? p(B) : f(B);
|
|
10904
|
-
},
|
|
10986
|
+
}, i1 = () => {
|
|
10905
10987
|
const B = /* @__PURE__ */ new Date(), Z = new Date(B.getFullYear(), B.getMonth(), 1);
|
|
10906
10988
|
p ? p(Z) : f(Z), x("days"), l === "single" && c?.(B);
|
|
10907
10989
|
}, I = () => {
|
|
@@ -10911,12 +10993,12 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10911
10993
|
}, p1 = (B) => {
|
|
10912
10994
|
const Z = new Date(L.getFullYear(), B, 1);
|
|
10913
10995
|
p ? p(Z) : f(Z), x("days");
|
|
10914
|
-
},
|
|
10996
|
+
}, h1 = (B) => {
|
|
10915
10997
|
const Z = new Date(B, L.getMonth(), 1);
|
|
10916
10998
|
p ? p(Z) : f(Z), x("months");
|
|
10917
10999
|
}, W = () => {
|
|
10918
11000
|
M(b - P1);
|
|
10919
|
-
},
|
|
11001
|
+
}, o1 = () => {
|
|
10920
11002
|
M(b + P1);
|
|
10921
11003
|
}, v1 = () => {
|
|
10922
11004
|
const B = new Date(L.getFullYear() - 1, L.getMonth(), 1);
|
|
@@ -10934,12 +11016,14 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10934
11016
|
}, $1 = () => C === "years" ? /* @__PURE__ */ r("div", {
|
|
10935
11017
|
className: "calendar__header",
|
|
10936
11018
|
children: [
|
|
10937
|
-
/* @__PURE__ */ e(
|
|
10938
|
-
type: "button",
|
|
10939
|
-
className: "calendar__nav-button",
|
|
10940
|
-
onClick: W,
|
|
11019
|
+
/* @__PURE__ */ e(K, {
|
|
10941
11020
|
title: "Previous years",
|
|
10942
|
-
children: "
|
|
11021
|
+
children: /* @__PURE__ */ e("button", {
|
|
11022
|
+
type: "button",
|
|
11023
|
+
className: "calendar__nav-button",
|
|
11024
|
+
onClick: W,
|
|
11025
|
+
children: "‹"
|
|
11026
|
+
})
|
|
10943
11027
|
}),
|
|
10944
11028
|
/* @__PURE__ */ r("div", {
|
|
10945
11029
|
className: "calendar__month-year",
|
|
@@ -10949,23 +11033,27 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10949
11033
|
b + P1 - 1
|
|
10950
11034
|
]
|
|
10951
11035
|
}),
|
|
10952
|
-
/* @__PURE__ */ e(
|
|
10953
|
-
type: "button",
|
|
10954
|
-
className: "calendar__nav-button",
|
|
10955
|
-
onClick: n1,
|
|
11036
|
+
/* @__PURE__ */ e(K, {
|
|
10956
11037
|
title: "Next years",
|
|
10957
|
-
children: "
|
|
11038
|
+
children: /* @__PURE__ */ e("button", {
|
|
11039
|
+
type: "button",
|
|
11040
|
+
className: "calendar__nav-button",
|
|
11041
|
+
onClick: o1,
|
|
11042
|
+
children: "›"
|
|
11043
|
+
})
|
|
10958
11044
|
})
|
|
10959
11045
|
]
|
|
10960
11046
|
}) : C === "months" ? /* @__PURE__ */ r("div", {
|
|
10961
11047
|
className: "calendar__header",
|
|
10962
11048
|
children: [
|
|
10963
|
-
/* @__PURE__ */ e(
|
|
10964
|
-
type: "button",
|
|
10965
|
-
className: "calendar__nav-button",
|
|
10966
|
-
onClick: v1,
|
|
11049
|
+
/* @__PURE__ */ e(K, {
|
|
10967
11050
|
title: "Previous year",
|
|
10968
|
-
children: "
|
|
11051
|
+
children: /* @__PURE__ */ e("button", {
|
|
11052
|
+
type: "button",
|
|
11053
|
+
className: "calendar__nav-button",
|
|
11054
|
+
onClick: v1,
|
|
11055
|
+
children: "‹"
|
|
11056
|
+
})
|
|
10969
11057
|
}),
|
|
10970
11058
|
/* @__PURE__ */ e("button", {
|
|
10971
11059
|
type: "button",
|
|
@@ -10973,30 +11061,34 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10973
11061
|
onClick: $,
|
|
10974
11062
|
children: L.getFullYear()
|
|
10975
11063
|
}),
|
|
10976
|
-
/* @__PURE__ */ e(
|
|
10977
|
-
type: "button",
|
|
10978
|
-
className: "calendar__nav-button",
|
|
10979
|
-
onClick: y1,
|
|
11064
|
+
/* @__PURE__ */ e(K, {
|
|
10980
11065
|
title: "Next year",
|
|
10981
|
-
children: "
|
|
11066
|
+
children: /* @__PURE__ */ e("button", {
|
|
11067
|
+
type: "button",
|
|
11068
|
+
className: "calendar__nav-button",
|
|
11069
|
+
onClick: y1,
|
|
11070
|
+
children: "›"
|
|
11071
|
+
})
|
|
10982
11072
|
})
|
|
10983
11073
|
]
|
|
10984
11074
|
}) : /* @__PURE__ */ r("div", {
|
|
10985
11075
|
className: "calendar__header",
|
|
10986
11076
|
children: [
|
|
10987
|
-
/* @__PURE__ */ e(
|
|
10988
|
-
type: "button",
|
|
10989
|
-
className: "calendar__nav-button",
|
|
10990
|
-
onClick: V,
|
|
11077
|
+
/* @__PURE__ */ e(K, {
|
|
10991
11078
|
title: "Previous month",
|
|
10992
|
-
children: "
|
|
11079
|
+
children: /* @__PURE__ */ e("button", {
|
|
11080
|
+
type: "button",
|
|
11081
|
+
className: "calendar__nav-button",
|
|
11082
|
+
onClick: V,
|
|
11083
|
+
children: "‹"
|
|
11084
|
+
})
|
|
10993
11085
|
}),
|
|
10994
11086
|
/* @__PURE__ */ e("div", {
|
|
10995
11087
|
className: "calendar__month-year",
|
|
10996
11088
|
children: d ? /* @__PURE__ */ e("span", {
|
|
10997
11089
|
className: "calendar__header-label",
|
|
10998
11090
|
children: $0[L.getMonth()]
|
|
10999
|
-
}) : /* @__PURE__ */ r(
|
|
11091
|
+
}) : /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("button", {
|
|
11000
11092
|
type: "button",
|
|
11001
11093
|
className: "calendar__header-button",
|
|
11002
11094
|
onClick: I,
|
|
@@ -11008,32 +11100,34 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11008
11100
|
children: L.getFullYear()
|
|
11009
11101
|
})] })
|
|
11010
11102
|
}),
|
|
11011
|
-
/* @__PURE__ */ e(
|
|
11012
|
-
type: "button",
|
|
11013
|
-
className: "calendar__nav-button",
|
|
11014
|
-
onClick: X,
|
|
11103
|
+
/* @__PURE__ */ e(K, {
|
|
11015
11104
|
title: "Next month",
|
|
11016
|
-
children: "
|
|
11105
|
+
children: /* @__PURE__ */ e("button", {
|
|
11106
|
+
type: "button",
|
|
11107
|
+
className: "calendar__nav-button",
|
|
11108
|
+
onClick: X,
|
|
11109
|
+
children: "›"
|
|
11110
|
+
})
|
|
11017
11111
|
})
|
|
11018
11112
|
]
|
|
11019
|
-
}),
|
|
11020
|
-
const B = k1(), Z = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
11113
|
+
}), Q = () => {
|
|
11114
|
+
const B = k1(), Z = (/* @__PURE__ */ new Date()).getFullYear(), J = L.getFullYear();
|
|
11021
11115
|
return /* @__PURE__ */ e("div", {
|
|
11022
11116
|
className: "calendar__years-grid",
|
|
11023
|
-
children: B.map((
|
|
11117
|
+
children: B.map((n1) => /* @__PURE__ */ e("button", {
|
|
11024
11118
|
type: "button",
|
|
11025
|
-
className: `calendar__year-item ${
|
|
11026
|
-
onClick: () =>
|
|
11027
|
-
children:
|
|
11028
|
-
},
|
|
11119
|
+
className: `calendar__year-item ${n1 === J ? "calendar__year-item--selected" : ""} ${n1 === Z ? "calendar__year-item--current" : ""}`,
|
|
11120
|
+
onClick: () => h1(n1),
|
|
11121
|
+
children: n1
|
|
11122
|
+
}, n1))
|
|
11029
11123
|
});
|
|
11030
|
-
},
|
|
11031
|
-
const B = (/* @__PURE__ */ new Date()).getMonth(), Z = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
11124
|
+
}, r1 = () => {
|
|
11125
|
+
const B = (/* @__PURE__ */ new Date()).getMonth(), Z = (/* @__PURE__ */ new Date()).getFullYear(), J = L.getMonth(), n1 = L.getFullYear();
|
|
11032
11126
|
return /* @__PURE__ */ e("div", {
|
|
11033
11127
|
className: "calendar__months-grid",
|
|
11034
11128
|
children: $0.map((b1, f1) => /* @__PURE__ */ e("button", {
|
|
11035
11129
|
type: "button",
|
|
11036
|
-
className: `calendar__month-item ${f1 ===
|
|
11130
|
+
className: `calendar__month-item ${f1 === J && n1 === L.getFullYear() ? "calendar__month-item--selected" : ""} ${f1 === B && Z === L.getFullYear() ? "calendar__month-item--current" : ""}`,
|
|
11037
11131
|
onClick: () => p1(f1),
|
|
11038
11132
|
children: b1.substring(0, 3)
|
|
11039
11133
|
}, b1))
|
|
@@ -11043,15 +11137,15 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11043
11137
|
className: `calendar ${h}`,
|
|
11044
11138
|
children: [
|
|
11045
11139
|
g && $1(),
|
|
11046
|
-
C === "years" &&
|
|
11047
|
-
C === "months" &&
|
|
11048
|
-
C === "days" && /* @__PURE__ */ r(
|
|
11140
|
+
C === "years" && Q(),
|
|
11141
|
+
C === "months" && r1(),
|
|
11142
|
+
C === "days" && /* @__PURE__ */ r(l1, { children: [
|
|
11049
11143
|
n && !d && /* @__PURE__ */ e("div", {
|
|
11050
11144
|
className: "calendar__today-section",
|
|
11051
11145
|
children: /* @__PURE__ */ e("button", {
|
|
11052
11146
|
type: "button",
|
|
11053
11147
|
className: "calendar__today-button",
|
|
11054
|
-
onClick:
|
|
11148
|
+
onClick: i1,
|
|
11055
11149
|
children: "Today"
|
|
11056
11150
|
})
|
|
11057
11151
|
}),
|
|
@@ -11066,14 +11160,14 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11066
11160
|
className: "calendar__days",
|
|
11067
11161
|
children: H.map((B, Z) => /* @__PURE__ */ e("div", {
|
|
11068
11162
|
className: "calendar__week",
|
|
11069
|
-
children: B.map((
|
|
11163
|
+
children: B.map((J, n1) => /* @__PURE__ */ e("button", {
|
|
11070
11164
|
type: "button",
|
|
11071
|
-
className: g1(
|
|
11072
|
-
onClick: () =>
|
|
11073
|
-
disabled: k(
|
|
11074
|
-
title:
|
|
11075
|
-
children:
|
|
11076
|
-
},
|
|
11165
|
+
className: g1(J),
|
|
11166
|
+
onClick: () => s1(J),
|
|
11167
|
+
disabled: k(J),
|
|
11168
|
+
title: J.toDateString(),
|
|
11169
|
+
children: J.getDate()
|
|
11170
|
+
}, n1))
|
|
11077
11171
|
}, Z))
|
|
11078
11172
|
})
|
|
11079
11173
|
] })
|
|
@@ -11257,7 +11351,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11257
11351
|
children: [n && /* @__PURE__ */ e("div", {
|
|
11258
11352
|
className: `collapsible-section__header ${N ? "" : "collapsible-section__header--inline"} ${g ? "collapsible-section__header--space-between" : ""} ${w ? "collapsible-section__header--swap" : ""} ${h ? "collapsible-section__header--highlight" : ""} ${d ? "collapsible-section__header--accent" : ""} ${p ? `collapsible-section__header--size-${p}` : ""} ${u ? `collapsible-section__header--variant-${u}` : ""} ${v !== "plain" ? `collapsible-section__header--tint-${v}` : ""}`,
|
|
11259
11353
|
onClick: N ? _ : void 0,
|
|
11260
|
-
children: N ? /* @__PURE__ */ r(
|
|
11354
|
+
children: N ? /* @__PURE__ */ r(l1, { children: [
|
|
11261
11355
|
/* @__PURE__ */ r("div", {
|
|
11262
11356
|
className: "collapsible-section__label",
|
|
11263
11357
|
children: [
|
|
@@ -12109,7 +12203,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12109
12203
|
const h = (m) => {
|
|
12110
12204
|
a && c?.();
|
|
12111
12205
|
};
|
|
12112
|
-
return t ? q1(/* @__PURE__ */ r(
|
|
12206
|
+
return t ? q1(/* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", {
|
|
12113
12207
|
style: {
|
|
12114
12208
|
position: "fixed",
|
|
12115
12209
|
inset: 0,
|
|
@@ -12156,13 +12250,15 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12156
12250
|
className: "toast__action-button",
|
|
12157
12251
|
children: a.label
|
|
12158
12252
|
}),
|
|
12159
|
-
o && /* @__PURE__ */ e(
|
|
12160
|
-
onClick: h,
|
|
12161
|
-
className: "toast__close-button",
|
|
12253
|
+
o && /* @__PURE__ */ e(K, {
|
|
12162
12254
|
title: "Close",
|
|
12163
|
-
children: /* @__PURE__ */ e(
|
|
12164
|
-
|
|
12165
|
-
|
|
12255
|
+
children: /* @__PURE__ */ e("button", {
|
|
12256
|
+
onClick: h,
|
|
12257
|
+
className: "toast__close-button",
|
|
12258
|
+
children: /* @__PURE__ */ e(G, {
|
|
12259
|
+
name: "clear",
|
|
12260
|
+
size: "sm"
|
|
12261
|
+
})
|
|
12166
12262
|
})
|
|
12167
12263
|
})
|
|
12168
12264
|
]
|
|
@@ -12283,82 +12379,6 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12283
12379
|
value: n,
|
|
12284
12380
|
children: t
|
|
12285
12381
|
});
|
|
12286
|
-
}, d1 = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled: s = !1, className: o = "", maxWidth: i, maxHeight: n }) => {
|
|
12287
|
-
const [d, h] = z(!1), [m, p] = z({
|
|
12288
|
-
top: 0,
|
|
12289
|
-
left: 0
|
|
12290
|
-
}), g = Y(null), w = Y(null), v = Y(null), u = Y(null), f = Y(!1), C = n !== void 0, x = C ? 150 : 0, b = () => {
|
|
12291
|
-
if (!v.current || !u.current) return;
|
|
12292
|
-
const H = v.current.firstElementChild, S = H && H.getBoundingClientRect().width > 0 ? H.getBoundingClientRect() : v.current.getBoundingClientRect(), k = u.current.getBoundingClientRect(), A = 8;
|
|
12293
|
-
let D = 0, P = 0;
|
|
12294
|
-
switch (c) {
|
|
12295
|
-
case "top":
|
|
12296
|
-
D = S.top - k.height - A, P = S.left + S.width / 2 - k.width / 2;
|
|
12297
|
-
break;
|
|
12298
|
-
case "bottom":
|
|
12299
|
-
D = S.bottom + A, P = S.left + S.width / 2 - k.width / 2;
|
|
12300
|
-
break;
|
|
12301
|
-
case "left":
|
|
12302
|
-
D = S.top + S.height / 2 - k.height / 2, P = S.left - k.width - A;
|
|
12303
|
-
break;
|
|
12304
|
-
case "right":
|
|
12305
|
-
D = S.top + S.height / 2 - k.height / 2, P = S.right + A;
|
|
12306
|
-
break;
|
|
12307
|
-
}
|
|
12308
|
-
const O = 8;
|
|
12309
|
-
P < O && (P = O), P + k.width > window.innerWidth - O && (P = window.innerWidth - k.width - O), D < O && (D = O), D + k.height > window.innerHeight - O && (D = window.innerHeight - k.height - O), p({
|
|
12310
|
-
top: D,
|
|
12311
|
-
left: P
|
|
12312
|
-
});
|
|
12313
|
-
}, M = () => {
|
|
12314
|
-
s || f.current || (w.current && (clearTimeout(w.current), w.current = null), g.current = setTimeout(() => {
|
|
12315
|
-
h(!0);
|
|
12316
|
-
}, l));
|
|
12317
|
-
}, _ = () => {
|
|
12318
|
-
f.current || (g.current && clearTimeout(g.current), x > 0 ? w.current = setTimeout(() => h(!1), x) : h(!1));
|
|
12319
|
-
}, N = (H) => {
|
|
12320
|
-
H.pointerType !== "touch" && H.pointerType !== "pen" || s || (f.current = !0, g.current && (clearTimeout(g.current), g.current = null), H.stopPropagation(), h((S) => !S));
|
|
12321
|
-
};
|
|
12322
|
-
U(() => (d && (b(), window.addEventListener("scroll", b, !0), window.addEventListener("resize", b)), () => {
|
|
12323
|
-
window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
|
|
12324
|
-
}), [d]), U(() => {
|
|
12325
|
-
if (!d) return;
|
|
12326
|
-
const H = (S) => {
|
|
12327
|
-
v.current?.contains(S.target) || u.current?.contains(S.target) || h(!1);
|
|
12328
|
-
};
|
|
12329
|
-
return document.addEventListener("pointerdown", H), () => {
|
|
12330
|
-
document.removeEventListener("pointerdown", H), f.current = !1;
|
|
12331
|
-
};
|
|
12332
|
-
}, [d]), U(() => () => {
|
|
12333
|
-
g.current && clearTimeout(g.current), w.current && clearTimeout(w.current);
|
|
12334
|
-
}, []);
|
|
12335
|
-
const L = () => {
|
|
12336
|
-
C && w.current && (clearTimeout(w.current), w.current = null);
|
|
12337
|
-
}, y = () => {
|
|
12338
|
-
C && (w.current = setTimeout(() => h(!1), x));
|
|
12339
|
-
};
|
|
12340
|
-
return /* @__PURE__ */ r(c1, { children: [/* @__PURE__ */ e("span", {
|
|
12341
|
-
ref: v,
|
|
12342
|
-
className: "tooltip-trigger",
|
|
12343
|
-
onMouseEnter: M,
|
|
12344
|
-
onMouseLeave: _,
|
|
12345
|
-
onFocus: M,
|
|
12346
|
-
onBlur: _,
|
|
12347
|
-
onPointerDown: N,
|
|
12348
|
-
children: a
|
|
12349
|
-
}), d && t && q1(/* @__PURE__ */ r("div", {
|
|
12350
|
-
ref: u,
|
|
12351
|
-
className: `tooltip tooltip--${c} ${C ? "tooltip--scrollable" : ""} ${o}`,
|
|
12352
|
-
style: {
|
|
12353
|
-
top: `${m.top}px`,
|
|
12354
|
-
left: `${m.left}px`,
|
|
12355
|
-
...i !== void 0 && { maxWidth: typeof i == "number" ? `${i}px` : i },
|
|
12356
|
-
...n !== void 0 && { maxHeight: typeof n == "number" ? `${n}px` : n }
|
|
12357
|
-
},
|
|
12358
|
-
onMouseEnter: L,
|
|
12359
|
-
onMouseLeave: y,
|
|
12360
|
-
children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${c}` })]
|
|
12361
|
-
}), document.body)] });
|
|
12362
12382
|
}, Vr = ({ value: t, onChange: c, mode: l = "single", withTime: a = !1, timeFormat: s = "24h", withSeconds: o = !1, dateFormat: i = "YYYY-MM-DD", placeholder: n = "Select date...", disabled: d = !1, clearable: h = !0, autoClose: m = !0, alwaysOpen: p = !1, ...g }) => {
|
|
12363
12383
|
const [w, v] = z(!1), [u, f] = z(0), [C, x] = z(0), [b, M] = z(0), [_, N] = z(!1), [L, y] = z(null), [H, S] = z({
|
|
12364
12384
|
position: "fixed",
|
|
@@ -12381,7 +12401,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12381
12401
|
}, [p, D]);
|
|
12382
12402
|
const P = j(() => {
|
|
12383
12403
|
if (p || !D || !k.current || !A.current) return;
|
|
12384
|
-
const I = k.current.getBoundingClientRect(), $ = A.current.getBoundingClientRect(), p1 = 16,
|
|
12404
|
+
const I = k.current.getBoundingClientRect(), $ = A.current.getBoundingClientRect(), p1 = 16, h1 = 8, W = window.innerHeight - I.bottom - p1, o1 = I.top - p1, v1 = W < $.height && o1 > $.height ? I.top - $.height - h1 : I.bottom + h1, y1 = Math.max(p1, Math.min(v1, window.innerHeight - $.height - p1)), k1 = Math.max(p1, Math.min(I.left, window.innerWidth - $.width - p1));
|
|
12385
12405
|
S({
|
|
12386
12406
|
position: "fixed",
|
|
12387
12407
|
top: `${y1}px`,
|
|
@@ -12413,7 +12433,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12413
12433
|
return a ? `${I} ${o ? F1(t, "HH:mm:ss") : F1(t, "HH:mm")}` : I;
|
|
12414
12434
|
}
|
|
12415
12435
|
return l === "range" && t && "start" in t ? `${F1(t.start, i)} - ${F1(t.end, i)}` : l === "multiple" && Array.isArray(t) ? t.map((I) => F1(I, i)).join(", ") : "";
|
|
12416
|
-
},
|
|
12436
|
+
}, s1 = (I) => {
|
|
12417
12437
|
if (!a || !(I instanceof Date)) {
|
|
12418
12438
|
c?.(I), m && l !== "multiple" && !p && v(!1);
|
|
12419
12439
|
return;
|
|
@@ -12426,7 +12446,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12426
12446
|
I.setHours($, C, b), c?.(I);
|
|
12427
12447
|
}, X = (I) => {
|
|
12428
12448
|
I.stopPropagation(), y(null), c?.(void 0);
|
|
12429
|
-
},
|
|
12449
|
+
}, i1 = O();
|
|
12430
12450
|
return /* @__PURE__ */ r("div", {
|
|
12431
12451
|
className: "datepicker",
|
|
12432
12452
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -12436,16 +12456,18 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12436
12456
|
d || p || (D && y(null), v(!D));
|
|
12437
12457
|
},
|
|
12438
12458
|
children: [/* @__PURE__ */ e("span", {
|
|
12439
|
-
className: `datepicker__value ${
|
|
12440
|
-
children:
|
|
12459
|
+
className: `datepicker__value ${i1 ? "" : "datepicker__value--placeholder"}`,
|
|
12460
|
+
children: i1 || n
|
|
12441
12461
|
}), /* @__PURE__ */ r("div", {
|
|
12442
12462
|
className: "datepicker__actions",
|
|
12443
|
-
children: [h &&
|
|
12444
|
-
type: "button",
|
|
12445
|
-
className: "datepicker__clear",
|
|
12446
|
-
onClick: X,
|
|
12463
|
+
children: [h && i1 && /* @__PURE__ */ e(K, {
|
|
12447
12464
|
title: "Clear",
|
|
12448
|
-
children: "
|
|
12465
|
+
children: /* @__PURE__ */ e("button", {
|
|
12466
|
+
type: "button",
|
|
12467
|
+
className: "datepicker__clear",
|
|
12468
|
+
onClick: X,
|
|
12469
|
+
children: "×"
|
|
12470
|
+
})
|
|
12449
12471
|
}), /* @__PURE__ */ e("span", {
|
|
12450
12472
|
className: "datepicker__icon",
|
|
12451
12473
|
children: /* @__PURE__ */ e(G, { name: "calendar" })
|
|
@@ -12458,7 +12480,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12458
12480
|
...g,
|
|
12459
12481
|
mode: l,
|
|
12460
12482
|
value: t,
|
|
12461
|
-
onChange:
|
|
12483
|
+
onChange: s1,
|
|
12462
12484
|
rangeStart: l === "range" ? L : g.rangeStart,
|
|
12463
12485
|
onRangeStartChange: l === "range" ? y : g.onRangeStartChange
|
|
12464
12486
|
}), a && l === "single" && t instanceof Date && /* @__PURE__ */ r("div", {
|
|
@@ -12494,7 +12516,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12494
12516
|
min: "0",
|
|
12495
12517
|
max: "59"
|
|
12496
12518
|
}),
|
|
12497
|
-
o && /* @__PURE__ */ r(
|
|
12519
|
+
o && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", { children: ":" }), /* @__PURE__ */ e("input", {
|
|
12498
12520
|
type: "number",
|
|
12499
12521
|
className: "datepicker__time-input",
|
|
12500
12522
|
value: b,
|
|
@@ -12525,7 +12547,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12525
12547
|
...g,
|
|
12526
12548
|
mode: l,
|
|
12527
12549
|
value: t,
|
|
12528
|
-
onChange:
|
|
12550
|
+
onChange: s1,
|
|
12529
12551
|
rangeStart: l === "range" ? L : g.rangeStart,
|
|
12530
12552
|
onRangeStartChange: l === "range" ? y : g.onRangeStartChange
|
|
12531
12553
|
}), a && l === "single" && t instanceof Date && /* @__PURE__ */ r("div", {
|
|
@@ -12561,7 +12583,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12561
12583
|
min: "0",
|
|
12562
12584
|
max: "59"
|
|
12563
12585
|
}),
|
|
12564
|
-
o && /* @__PURE__ */ r(
|
|
12586
|
+
o && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", { children: ":" }), /* @__PURE__ */ e("input", {
|
|
12565
12587
|
type: "number",
|
|
12566
12588
|
className: "datepicker__time-input",
|
|
12567
12589
|
value: b,
|
|
@@ -12597,15 +12619,15 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12597
12619
|
}
|
|
12598
12620
|
return o / a.length >= s;
|
|
12599
12621
|
}, y0 = ({ allowCustomValue: t = !1, autofocus: c = !1, className: l = "", disabled: a = !1, error: s, highlighted: o = !1, id: i, label: n, maxVisibleSelectedLabels: d = 1, multilineChips: h = !1, multiple: m = !1, name: p, onChange: g, onSearchChange: w, options: v, placeholder: u = "Select an option", searchable: f = !0, searchValue: C, selectedCountDisplay: x = "inline", showChips: b = !1, sortSelectedFirst: M = !1, success: _, usePortal: N = !0, value: L, valueAsChip: y = !0 }) => {
|
|
12600
|
-
const [H, S] = z(!1), [k, A] = z(C || ""), [D, P] = z(v), [O,
|
|
12622
|
+
const [H, S] = z(!1), [k, A] = z(C || ""), [D, P] = z(v), [O, s1] = z(-1), [V, X] = z([]), [i1, I] = z({
|
|
12601
12623
|
top: 0,
|
|
12602
12624
|
left: 0,
|
|
12603
12625
|
width: 0
|
|
12604
|
-
}), [$, p1] = z(!1),
|
|
12626
|
+
}), [$, p1] = z(!1), h1 = Y(null), W = Y([]), o1 = Y(null), v1 = Y(null), y1 = C0(), k1 = i ?? `dropdown-${y1}`, g1 = Y(null);
|
|
12605
12627
|
U(() => {
|
|
12606
12628
|
if (H && M && m) {
|
|
12607
|
-
const E = new Set(V.map((
|
|
12608
|
-
v.forEach((
|
|
12629
|
+
const E = new Set(V.map((c1) => c1.value)), T = [], q = [];
|
|
12630
|
+
v.forEach((c1) => (E.has(c1.value) ? T : q).push(c1)), g1.current = [...T, ...q];
|
|
12609
12631
|
} else H || (g1.current = null);
|
|
12610
12632
|
}, [
|
|
12611
12633
|
H,
|
|
@@ -12619,7 +12641,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12619
12641
|
const T = c2(k);
|
|
12620
12642
|
P(E.filter((q) => c2(q.label).includes(T)));
|
|
12621
12643
|
}
|
|
12622
|
-
|
|
12644
|
+
s1(-1);
|
|
12623
12645
|
}, [
|
|
12624
12646
|
k,
|
|
12625
12647
|
v,
|
|
@@ -12647,7 +12669,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12647
12669
|
if (m && Array.isArray(L))
|
|
12648
12670
|
X(v.filter((q) => typeof q.value == "number" ? L.includes(q.value) : L.includes(q.value.toString()))), T && A("");
|
|
12649
12671
|
else if (!m && (typeof L == "string" || typeof L == "number")) {
|
|
12650
|
-
const q = v.find((
|
|
12672
|
+
const q = v.find((c1) => typeof c1.value == "number" && typeof L == "number" ? c1.value === L : c1.value.toString() === L.toString());
|
|
12651
12673
|
q ? (X([q]), T && A(q.label)) : t && typeof L == "string" && L.trim() ? (X([{
|
|
12652
12674
|
label: L.trim(),
|
|
12653
12675
|
value: L.trim(),
|
|
@@ -12668,10 +12690,10 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12668
12690
|
]), U(() => {
|
|
12669
12691
|
f && C !== void 0 && A(C);
|
|
12670
12692
|
}, [C, f]), U(() => {
|
|
12671
|
-
if (!H || !
|
|
12693
|
+
if (!H || !h1.current) return;
|
|
12672
12694
|
const E = () => {
|
|
12673
|
-
if (!
|
|
12674
|
-
const T =
|
|
12695
|
+
if (!h1.current) return;
|
|
12696
|
+
const T = h1.current.getBoundingClientRect(), q = window.innerHeight, c1 = 300, K1 = q - T.bottom, j1 = T.top, b0 = K1 < c1 && j1 > K1;
|
|
12675
12697
|
p1(b0), N && I({
|
|
12676
12698
|
top: b0 ? T.top + window.scrollY : T.bottom + window.scrollY,
|
|
12677
12699
|
left: T.left + window.scrollX,
|
|
@@ -12683,13 +12705,13 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12683
12705
|
};
|
|
12684
12706
|
}, [H, N]), U(() => {
|
|
12685
12707
|
const E = (T) => {
|
|
12686
|
-
if (
|
|
12708
|
+
if (h1.current && !h1.current.contains(T.target)) {
|
|
12687
12709
|
if (N && H) {
|
|
12688
12710
|
const q = document.querySelector(".dropdown-menu--portal");
|
|
12689
12711
|
if (q && q.contains(T.target)) return;
|
|
12690
12712
|
}
|
|
12691
12713
|
if (t && !m && k.trim() && !(V.length > 0 && V[0].label.toLowerCase() === k.trim().toLowerCase())) {
|
|
12692
|
-
const q = v.find((
|
|
12714
|
+
const q = v.find((c1) => c1.label.toLowerCase() === k.toLowerCase() || c1.value.toString() === k) || {
|
|
12693
12715
|
label: k.trim(),
|
|
12694
12716
|
value: k.trim(),
|
|
12695
12717
|
className: "custom-option"
|
|
@@ -12715,19 +12737,19 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12715
12737
|
V,
|
|
12716
12738
|
N
|
|
12717
12739
|
]);
|
|
12718
|
-
const
|
|
12740
|
+
const Q = (E) => {
|
|
12719
12741
|
if (!E.disabled)
|
|
12720
12742
|
if (m) {
|
|
12721
|
-
const T = V.some((
|
|
12743
|
+
const T = V.some((c1) => c1.value === E.value);
|
|
12722
12744
|
let q;
|
|
12723
|
-
T ? q = V.filter((
|
|
12745
|
+
T ? q = V.filter((c1) => c1.value !== E.value) : q = [...V, E], X(q), f && A(""), g && g(q, p);
|
|
12724
12746
|
} else
|
|
12725
12747
|
A(E.label), X([E]), S(!1), g && g(E, p);
|
|
12726
|
-
},
|
|
12748
|
+
}, r1 = () => {
|
|
12727
12749
|
if (!t || !k.trim()) return;
|
|
12728
12750
|
const E = v.find((q) => q.label.toLowerCase() === k.toLowerCase() || q.value.toString() === k);
|
|
12729
12751
|
if (E) {
|
|
12730
|
-
|
|
12752
|
+
Q(E);
|
|
12731
12753
|
return;
|
|
12732
12754
|
}
|
|
12733
12755
|
const T = {
|
|
@@ -12745,12 +12767,12 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12745
12767
|
X(T), g && (m ? g(T, p) : (g(null, p), f || A("")));
|
|
12746
12768
|
}, Z = () => {
|
|
12747
12769
|
X([]), (!f || !m) && A(""), S(!1), g && g(m ? [] : null, p);
|
|
12748
|
-
},
|
|
12770
|
+
}, J = (E) => {
|
|
12749
12771
|
A(E), H || S(!0), w?.(E);
|
|
12750
|
-
},
|
|
12751
|
-
a || (S(!0), !m && f && V.length > 0 && A(""), (m || f) &&
|
|
12772
|
+
}, n1 = () => {
|
|
12773
|
+
a || (S(!0), !m && f && V.length > 0 && A(""), (m || f) && o1.current?.focus());
|
|
12752
12774
|
}, b1 = () => {
|
|
12753
|
-
a || (S(!H), H || (
|
|
12775
|
+
a || (S(!H), H || (s1(-1), !m && f && V.length > 0 && A(""), (m || f) && o1.current?.focus()));
|
|
12754
12776
|
}, f1 = (E) => {
|
|
12755
12777
|
if (!a) {
|
|
12756
12778
|
if (!H) {
|
|
@@ -12760,20 +12782,20 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12760
12782
|
switch (E.key) {
|
|
12761
12783
|
case "ArrowDown":
|
|
12762
12784
|
if (E.preventDefault(), t && k && D.length === 0) return;
|
|
12763
|
-
|
|
12764
|
-
const q = T < (t && k && !D.some((
|
|
12785
|
+
s1((T) => {
|
|
12786
|
+
const q = T < (t && k && !D.some((c1) => c1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1) ? T + 1 : 0;
|
|
12765
12787
|
return q < D.length && W.current[q] && W.current[q]?.scrollIntoView({ block: "nearest" }), q;
|
|
12766
12788
|
});
|
|
12767
12789
|
break;
|
|
12768
12790
|
case "ArrowUp":
|
|
12769
12791
|
if (E.preventDefault(), t && k && D.length === 0) return;
|
|
12770
|
-
|
|
12771
|
-
const q = t && k && !D.some((K1) => K1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1,
|
|
12772
|
-
return
|
|
12792
|
+
s1((T) => {
|
|
12793
|
+
const q = t && k && !D.some((K1) => K1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1, c1 = T > 0 ? T - 1 : q;
|
|
12794
|
+
return c1 < D.length && W.current[c1] && W.current[c1]?.scrollIntoView({ block: "nearest" }), c1;
|
|
12773
12795
|
});
|
|
12774
12796
|
break;
|
|
12775
12797
|
case "Enter":
|
|
12776
|
-
E.preventDefault(), O >= 0 && O < D.length ?
|
|
12798
|
+
E.preventDefault(), O >= 0 && O < D.length ? Q(D[O]) : (t && k && O === D.length || t && k && D.length === 0) && r1();
|
|
12777
12799
|
break;
|
|
12778
12800
|
case "Escape":
|
|
12779
12801
|
E.preventDefault(), S(!1), !m && V.length > 0 ? A(V[0].label) : m && f && A("");
|
|
@@ -12788,8 +12810,8 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12788
12810
|
}, B1 = (E) => V.some((T) => T.value === E.value), D1 = () => {
|
|
12789
12811
|
if (V.length === 0) return "";
|
|
12790
12812
|
const E = Math.max(1, d);
|
|
12791
|
-
if (V.length <= E) return V.map((
|
|
12792
|
-
const T = V.slice(0, E).map((
|
|
12813
|
+
if (V.length <= E) return V.map((c1) => c1.label).join(", ");
|
|
12814
|
+
const T = V.slice(0, E).map((c1) => c1.label).join(", "), q = V.length - E;
|
|
12793
12815
|
return `${T} (+${q} ${q === 1 ? "other" : "others"})`;
|
|
12794
12816
|
}, Y1 = () => m && b || f && H ? k : V.length > 0 ? m ? D1() : V[0].label : "", _1 = () => m && b ? V.length > 0 ? "" : u : H && f ? u : V.length > 0 ? "" : u, L1 = () => !m || V.length === 0 || x === "none" ? null : x === "floating" ? /* @__PURE__ */ r("div", {
|
|
12795
12817
|
className: "dropdown-selected-count",
|
|
@@ -12801,21 +12823,21 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12801
12823
|
className: `dropdown-menu ${N ? "dropdown-menu--portal" : ""} ${$ ? "dropdown-menu--upward" : ""}`,
|
|
12802
12824
|
style: N ? {
|
|
12803
12825
|
position: "absolute",
|
|
12804
|
-
top: $ ? "auto" : `${
|
|
12805
|
-
bottom: $ ? `${window.innerHeight -
|
|
12806
|
-
left: `${
|
|
12807
|
-
width: `${
|
|
12826
|
+
top: $ ? "auto" : `${i1.top}px`,
|
|
12827
|
+
bottom: $ ? `${window.innerHeight - i1.top}px` : "auto",
|
|
12828
|
+
left: `${i1.left}px`,
|
|
12829
|
+
width: `${i1.width}px`,
|
|
12808
12830
|
zIndex: 9999
|
|
12809
12831
|
} : void 0,
|
|
12810
12832
|
children: D.length > 0 || T1() ? /* @__PURE__ */ r("ul", {
|
|
12811
12833
|
className: "dropdown-options-list",
|
|
12812
12834
|
children: [D.map((T, q) => /* @__PURE__ */ r("li", {
|
|
12813
|
-
ref: (
|
|
12814
|
-
W.current[q] =
|
|
12835
|
+
ref: (c1) => {
|
|
12836
|
+
W.current[q] = c1;
|
|
12815
12837
|
},
|
|
12816
12838
|
className: `dropdown-option ${T.className || ""} ${O === q ? "focused" : ""} ${B1(T) ? "selected" : ""} ${T.disabled ? "dropdown-option--disabled" : ""}`,
|
|
12817
|
-
onClick: () =>
|
|
12818
|
-
onMouseEnter: () =>
|
|
12839
|
+
onClick: () => Q(T),
|
|
12840
|
+
onMouseEnter: () => s1(q),
|
|
12819
12841
|
title: T.tooltip,
|
|
12820
12842
|
children: [m && /* @__PURE__ */ e("div", {
|
|
12821
12843
|
className: "dropdown-option-checkbox",
|
|
@@ -12858,8 +12880,8 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12858
12880
|
W.current[D.length] = T;
|
|
12859
12881
|
},
|
|
12860
12882
|
className: `dropdown-option dropdown-option--create ${O === D.length ? "focused" : ""}`,
|
|
12861
|
-
onClick:
|
|
12862
|
-
onMouseEnter: () =>
|
|
12883
|
+
onClick: r1,
|
|
12884
|
+
onMouseEnter: () => s1(D.length),
|
|
12863
12885
|
children: /* @__PURE__ */ e("div", {
|
|
12864
12886
|
className: "dropdown-option-content",
|
|
12865
12887
|
children: /* @__PURE__ */ r("span", {
|
|
@@ -12881,7 +12903,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12881
12903
|
}, C1 = !m && V.length === 1 ? V[0] : null, I1 = y && !H && !m && V.length > 0, X1 = !!(C1?.icon && !k && !I1), r0 = !!(C1?.suffixIcon && !I1), Z1 = m && b;
|
|
12882
12904
|
return /* @__PURE__ */ r("div", {
|
|
12883
12905
|
className: `dropdown-container ${s ? "dropdown-error" : ""} ${_ ? "dropdown-success" : ""} ${o ? "dropdown-highlighted" : ""} ${m ? "multiple" : ""} ${a ? "disabled" : ""} ${m ? `count-display-${x}` : ""} ${l}`,
|
|
12884
|
-
ref:
|
|
12906
|
+
ref: h1,
|
|
12885
12907
|
children: [
|
|
12886
12908
|
n && /* @__PURE__ */ e("label", {
|
|
12887
12909
|
htmlFor: k1,
|
|
@@ -12897,7 +12919,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12897
12919
|
}),
|
|
12898
12920
|
I1 && C1 && /* @__PURE__ */ r("span", {
|
|
12899
12921
|
className: "dropdown-value-chip",
|
|
12900
|
-
onClick:
|
|
12922
|
+
onClick: n1,
|
|
12901
12923
|
children: [C1.icon && /* @__PURE__ */ e(G, { name: C1.icon }), /* @__PURE__ */ e("span", {
|
|
12902
12924
|
className: "dropdown-value-chip__label",
|
|
12903
12925
|
children: C1.label
|
|
@@ -12920,13 +12942,13 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12920
12942
|
})]
|
|
12921
12943
|
}, `dd-chip-${E.value}`)),
|
|
12922
12944
|
/* @__PURE__ */ e(A1, {
|
|
12923
|
-
ref:
|
|
12945
|
+
ref: o1,
|
|
12924
12946
|
id: k1,
|
|
12925
12947
|
placeholder: I1 ? "" : _1(),
|
|
12926
12948
|
value: I1 ? "" : Y1(),
|
|
12927
|
-
onChange: f || m ?
|
|
12949
|
+
onChange: f || m ? J : () => {
|
|
12928
12950
|
},
|
|
12929
|
-
onClick:
|
|
12951
|
+
onClick: n1,
|
|
12930
12952
|
onKeyDown: f1,
|
|
12931
12953
|
autoComplete: "off",
|
|
12932
12954
|
autoFocus: c,
|
|
@@ -13006,14 +13028,16 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13006
13028
|
onKeyUp: v,
|
|
13007
13029
|
readOnly: u,
|
|
13008
13030
|
required: f
|
|
13009
|
-
}), _ && /* @__PURE__ */ e(
|
|
13010
|
-
type: "button",
|
|
13011
|
-
className: "input-date-clear",
|
|
13012
|
-
onClick: () => p?.(void 0),
|
|
13031
|
+
}), _ && /* @__PURE__ */ e(K, {
|
|
13013
13032
|
title: "Clear date",
|
|
13014
|
-
children: /* @__PURE__ */ e(
|
|
13015
|
-
|
|
13016
|
-
|
|
13033
|
+
children: /* @__PURE__ */ e("button", {
|
|
13034
|
+
type: "button",
|
|
13035
|
+
className: "input-date-clear",
|
|
13036
|
+
onClick: () => p?.(void 0),
|
|
13037
|
+
children: /* @__PURE__ */ e(G, {
|
|
13038
|
+
name: "clear",
|
|
13039
|
+
size: "sm"
|
|
13040
|
+
})
|
|
13017
13041
|
})
|
|
13018
13042
|
})]
|
|
13019
13043
|
}),
|
|
@@ -13223,14 +13247,16 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13223
13247
|
value: w,
|
|
13224
13248
|
ref: u
|
|
13225
13249
|
}),
|
|
13226
|
-
C && /* @__PURE__ */ e(
|
|
13227
|
-
type: "button",
|
|
13228
|
-
className: "input-search__clear",
|
|
13229
|
-
onClick: f,
|
|
13250
|
+
C && /* @__PURE__ */ e(K, {
|
|
13230
13251
|
title: "Clear search",
|
|
13231
|
-
children: /* @__PURE__ */ e(
|
|
13232
|
-
|
|
13233
|
-
|
|
13252
|
+
children: /* @__PURE__ */ e("button", {
|
|
13253
|
+
type: "button",
|
|
13254
|
+
className: "input-search__clear",
|
|
13255
|
+
onClick: f,
|
|
13256
|
+
children: /* @__PURE__ */ e(G, {
|
|
13257
|
+
name: "clear",
|
|
13258
|
+
size: "sm"
|
|
13259
|
+
})
|
|
13234
13260
|
})
|
|
13235
13261
|
})
|
|
13236
13262
|
]
|
|
@@ -13666,7 +13692,7 @@ var Gr = [{
|
|
|
13666
13692
|
}, o.value))
|
|
13667
13693
|
})
|
|
13668
13694
|
}),
|
|
13669
|
-
a && a.options.length > 0 && /* @__PURE__ */ r(
|
|
13695
|
+
a && a.options.length > 0 && /* @__PURE__ */ r(l1, { children: [l && /* @__PURE__ */ e(a0, { spacing: 0 }), /* @__PURE__ */ r("div", {
|
|
13670
13696
|
className: "control-panel__option control-panel__option--group-by",
|
|
13671
13697
|
children: [/* @__PURE__ */ e("span", {
|
|
13672
13698
|
className: "control-panel__filter-title",
|
|
@@ -13683,7 +13709,7 @@ var Gr = [{
|
|
|
13683
13709
|
})
|
|
13684
13710
|
})]
|
|
13685
13711
|
})] }),
|
|
13686
|
-
s && /* @__PURE__ */ r(
|
|
13712
|
+
s && /* @__PURE__ */ r(l1, { children: [(l || a && a.options.length > 0) && /* @__PURE__ */ e(a0, { spacing: 0 }), /* @__PURE__ */ r("div", {
|
|
13687
13713
|
className: "control-panel__option control-panel__option--chips",
|
|
13688
13714
|
children: [/* @__PURE__ */ e("span", {
|
|
13689
13715
|
className: "control-panel__filter-title",
|
|
@@ -13723,7 +13749,7 @@ var Gr = [{
|
|
|
13723
13749
|
}),
|
|
13724
13750
|
children: n.label
|
|
13725
13751
|
}),
|
|
13726
|
-
n.type === "radio" && /* @__PURE__ */ r(
|
|
13752
|
+
n.type === "radio" && /* @__PURE__ */ r(l1, { children: [n.label && /* @__PURE__ */ e("span", {
|
|
13727
13753
|
className: "control-panel__filter-title",
|
|
13728
13754
|
children: n.label
|
|
13729
13755
|
}), /* @__PURE__ */ e("div", {
|
|
@@ -13757,13 +13783,13 @@ var Gr = [{
|
|
|
13757
13783
|
]
|
|
13758
13784
|
})
|
|
13759
13785
|
});
|
|
13760
|
-
return p.title ? /* @__PURE__ */ e(
|
|
13786
|
+
return p.title ? /* @__PURE__ */ e(K, {
|
|
13761
13787
|
title: p.title,
|
|
13762
13788
|
children: v
|
|
13763
13789
|
}, p.value) : /* @__PURE__ */ e(E1.Fragment, { children: v }, p.value);
|
|
13764
13790
|
})
|
|
13765
13791
|
})] }),
|
|
13766
|
-
n.type === "chips" && /* @__PURE__ */ r(
|
|
13792
|
+
n.type === "chips" && /* @__PURE__ */ r(l1, { children: [n.label && /* @__PURE__ */ e("span", {
|
|
13767
13793
|
className: "control-panel__filter-title",
|
|
13768
13794
|
children: n.label
|
|
13769
13795
|
}), /* @__PURE__ */ e("div", {
|
|
@@ -13805,7 +13831,7 @@ var Gr = [{
|
|
|
13805
13831
|
"--control-panel-width": t,
|
|
13806
13832
|
"--control-panel-shadow": d
|
|
13807
13833
|
}, A = f.length === 0 ? [] : "type" in f[0] ? [{ options: f }] : f, D = !!(x || b || M || A.length > 0), P = g.length > 0 || w !== void 0 && w > 0;
|
|
13808
|
-
return /* @__PURE__ */ r(
|
|
13834
|
+
return /* @__PURE__ */ r(l1, { children: [o && N && L && /* @__PURE__ */ e("div", {
|
|
13809
13835
|
className: S,
|
|
13810
13836
|
onClick: y
|
|
13811
13837
|
}), /* @__PURE__ */ r("aside", {
|
|
@@ -13843,7 +13869,7 @@ var Gr = [{
|
|
|
13843
13869
|
})]
|
|
13844
13870
|
}), g.map((O) => /* @__PURE__ */ e(Dr, {
|
|
13845
13871
|
filter: O,
|
|
13846
|
-
onChange: (
|
|
13872
|
+
onChange: (s1) => v?.(s1)
|
|
13847
13873
|
}, O.id))]
|
|
13848
13874
|
}),
|
|
13849
13875
|
P && D && /* @__PURE__ */ e(a0, { spacing: 0 }),
|
|
@@ -13876,7 +13902,7 @@ var Gr = [{
|
|
|
13876
13902
|
variant: t.variant ?? "default",
|
|
13877
13903
|
children: t.label
|
|
13878
13904
|
});
|
|
13879
|
-
return /* @__PURE__ */ r(
|
|
13905
|
+
return /* @__PURE__ */ r(l1, { children: [t.tooltip ? /* @__PURE__ */ e(K, {
|
|
13880
13906
|
title: t.tooltip,
|
|
13881
13907
|
position: "right",
|
|
13882
13908
|
children: n
|
|
@@ -13940,7 +13966,7 @@ var Gr = [{
|
|
|
13940
13966
|
children: o ? void 0 : t || b
|
|
13941
13967
|
});
|
|
13942
13968
|
}, Wr = ({ code: t, size: c = "md", className: l = "" }) => {
|
|
13943
|
-
if (!t) return /* @__PURE__ */ e(
|
|
13969
|
+
if (!t) return /* @__PURE__ */ e(K, {
|
|
13944
13970
|
title: `Unsupported country code: ${t}`,
|
|
13945
13971
|
children: /* @__PURE__ */ e("div", {
|
|
13946
13972
|
className: `flags flags--fallback flags--${c} ${l}`,
|
|
@@ -13953,7 +13979,7 @@ var Gr = [{
|
|
|
13953
13979
|
children: [/* @__PURE__ */ e("source", {
|
|
13954
13980
|
srcSet: s,
|
|
13955
13981
|
type: "image/webp"
|
|
13956
|
-
}), /* @__PURE__ */ e(
|
|
13982
|
+
}), /* @__PURE__ */ e(K, {
|
|
13957
13983
|
title: `Country: ${t.toUpperCase()}`,
|
|
13958
13984
|
children: /* @__PURE__ */ e("img", {
|
|
13959
13985
|
src: a,
|
|
@@ -14063,12 +14089,13 @@ var Gr = [{
|
|
|
14063
14089
|
onClick: () => typeof b == "number" && a(b),
|
|
14064
14090
|
children: b
|
|
14065
14091
|
}, M)),
|
|
14066
|
-
/* @__PURE__ */
|
|
14092
|
+
/* @__PURE__ */ e(F, {
|
|
14067
14093
|
variant: "default",
|
|
14068
14094
|
borders: "sharp",
|
|
14069
14095
|
disabled: t === c,
|
|
14096
|
+
sufixIcon: "next",
|
|
14070
14097
|
onClick: () => a(t + 1),
|
|
14071
|
-
children:
|
|
14098
|
+
children: m("desktop") ? "Next" : ""
|
|
14072
14099
|
})
|
|
14073
14100
|
]
|
|
14074
14101
|
}),
|
|
@@ -14197,15 +14224,17 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14197
14224
|
secondary: h.secondary
|
|
14198
14225
|
}) : /* @__PURE__ */ e(J1, { title: "No data available" });
|
|
14199
14226
|
const S = (k, A) => {
|
|
14200
|
-
const D = H.get(A), P = l(k, A), O = m && p.includes(P),
|
|
14227
|
+
const D = H.get(A), P = l(k, A), O = m && p.includes(P), s1 = N.has(P), V = n?.(k), X = `data-view__card ${i || V ? "data-view__card--clickable" : ""} ${O ? "data-view__card--selected" : ""} ${s1 ? "data-view__card--pinned" : ""} ${d?.(k) || ""}`, i1 = ($) => {
|
|
14201
14228
|
$.metaKey || $.ctrlKey || $.shiftKey || $.altKey || $.button !== 0 || i && ($.preventDefault(), i(k, $));
|
|
14202
|
-
}, I = /* @__PURE__ */ r(
|
|
14203
|
-
|
|
14204
|
-
className: "data-view__card-pin",
|
|
14229
|
+
}, I = /* @__PURE__ */ r(l1, { children: [
|
|
14230
|
+
s1 && /* @__PURE__ */ e(K, {
|
|
14205
14231
|
title: "Pinned",
|
|
14206
|
-
children: /* @__PURE__ */ e(
|
|
14207
|
-
|
|
14208
|
-
|
|
14232
|
+
children: /* @__PURE__ */ e("span", {
|
|
14233
|
+
className: "data-view__card-pin",
|
|
14234
|
+
children: /* @__PURE__ */ e(G, {
|
|
14235
|
+
name: "pin",
|
|
14236
|
+
size: "sm"
|
|
14237
|
+
})
|
|
14209
14238
|
})
|
|
14210
14239
|
}),
|
|
14211
14240
|
m && w && /* @__PURE__ */ e("div", {
|
|
@@ -14267,7 +14296,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14267
14296
|
return /* @__PURE__ */ r(E1.Fragment, { children: [D && /* @__PURE__ */ e(cc, { marker: D }), V ? /* @__PURE__ */ e("a", {
|
|
14268
14297
|
className: X,
|
|
14269
14298
|
href: V,
|
|
14270
|
-
onClick:
|
|
14299
|
+
onClick: i1,
|
|
14271
14300
|
children: I
|
|
14272
14301
|
}) : /* @__PURE__ */ e("div", {
|
|
14273
14302
|
className: X,
|
|
@@ -14306,7 +14335,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14306
14335
|
}), !P && /* @__PURE__ */ e("div", {
|
|
14307
14336
|
className: L,
|
|
14308
14337
|
style: y,
|
|
14309
|
-
children: A.items.map((O,
|
|
14338
|
+
children: A.items.map((O, s1) => S(O, D + s1))
|
|
14310
14339
|
})]
|
|
14311
14340
|
}, A.key ?? "__null__");
|
|
14312
14341
|
})
|
|
@@ -14368,7 +14397,7 @@ var nc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14368
14397
|
].filter(Boolean).join(" "),
|
|
14369
14398
|
children: [t.map((n, d) => {
|
|
14370
14399
|
const h = n.direction ?? "asc", m = o ? c === n.value : c === n.value && l === h;
|
|
14371
|
-
return /* @__PURE__ */ e(
|
|
14400
|
+
return /* @__PURE__ */ e(K, {
|
|
14372
14401
|
title: `Sort by ${typeof n.label == "string" || typeof n.label == "number" ? String(n.label) : n.value}${o ? "" : ` ${h === "asc" ? "ascending" : "descending"}`}`,
|
|
14373
14402
|
children: /* @__PURE__ */ e(F, {
|
|
14374
14403
|
className: `mini-sort__button${m ? " is-active" : ""}`,
|
|
@@ -14385,7 +14414,7 @@ var nc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14385
14414
|
children: n.label ?? n.value
|
|
14386
14415
|
})
|
|
14387
14416
|
}, `${n.value}-${d}`);
|
|
14388
|
-
}), o && /* @__PURE__ */ e(
|
|
14417
|
+
}), o && /* @__PURE__ */ e(K, {
|
|
14389
14418
|
title: `Direction: ${l === "asc" ? "ascending" : "descending"}`,
|
|
14390
14419
|
children: /* @__PURE__ */ e(F, {
|
|
14391
14420
|
className: "mini-sort__button mini-sort__direction",
|
|
@@ -14427,43 +14456,43 @@ function sc({ state: t }) {
|
|
|
14427
14456
|
children: /* @__PURE__ */ e(G, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
14428
14457
|
});
|
|
14429
14458
|
}
|
|
14430
|
-
function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = i2, initialPageSize: d = i2[1], showPageSize: h = !0, card: m, actions: p, actionsWidth: g, timeline: w, onRowClick: v, rowHref: u, rowClassName: f, rowDetail: C, empty: x, initialSortKey: b = null, initialSortDirection: M = "asc", sortKey: _, sortDirection: N, onSortChange: L, miniSort: y, showCardSortControls: H = !0, desktopView: S = "table", cardMaxWidth: k, className: A, onPageChange: D, onPageSizeChange: P, currentPage: O, totalItems:
|
|
14431
|
-
const { isMobile: p1 } = h0(), [
|
|
14432
|
-
f1((
|
|
14433
|
-
const
|
|
14434
|
-
return
|
|
14459
|
+
function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = i2, initialPageSize: d = i2[1], showPageSize: h = !0, card: m, actions: p, actionsWidth: g, timeline: w, onRowClick: v, rowHref: u, rowClassName: f, rowDetail: C, empty: x, initialSortKey: b = null, initialSortDirection: M = "asc", sortKey: _, sortDirection: N, onSortChange: L, miniSort: y, showCardSortControls: H = !0, desktopView: S = "table", cardMaxWidth: k, className: A, onPageChange: D, onPageSizeChange: P, currentPage: O, totalItems: s1, group: V, showResultsCount: X = !0, totalCount: i1, itemNoun: I, columnSelector: $ }) {
|
|
14460
|
+
const { isMobile: p1 } = h0(), [h1, W] = z(b), [o1, v1] = z(M), [y1, k1] = z([]), g1 = i ?? y1, [$1, Q] = z(1), r1 = O ?? $1, [B, Z] = z(d), [J, n1] = z(() => t.reduce((R, e1) => (e1.width && (R[e1.key] = e1.width), R), {})), [b1, f1] = z(/* @__PURE__ */ new Set()), B1 = (R) => {
|
|
14461
|
+
f1((e1) => {
|
|
14462
|
+
const d1 = new Set(e1);
|
|
14463
|
+
return d1.has(R) ? d1.delete(R) : d1.add(R), d1;
|
|
14435
14464
|
});
|
|
14436
|
-
}, D1 = (R,
|
|
14437
|
-
O === void 0 &&
|
|
14438
|
-
}, _1 = _ !== void 0 ? _ :
|
|
14439
|
-
_ === void 0 && W(R), N === void 0 && v1(
|
|
14465
|
+
}, D1 = (R, e1) => l?.(R, e1) ?? e1, Y1 = (R) => {
|
|
14466
|
+
O === void 0 && Q(R), D?.(R);
|
|
14467
|
+
}, _1 = _ !== void 0 ? _ : h1, L1 = N ?? o1, T1 = (R, e1) => {
|
|
14468
|
+
_ === void 0 && W(R), N === void 0 && v1(e1), L?.({
|
|
14440
14469
|
key: R,
|
|
14441
|
-
direction:
|
|
14470
|
+
direction: e1
|
|
14442
14471
|
}), Y1(1);
|
|
14443
14472
|
}, t0 = m1(() => new Set(a ?? []), [a]), C1 = m1(() => {
|
|
14444
14473
|
let R = c;
|
|
14445
14474
|
if (_1) {
|
|
14446
|
-
const
|
|
14447
|
-
if (
|
|
14448
|
-
const
|
|
14449
|
-
const z1 = N1[
|
|
14475
|
+
const t1 = t.find((a1) => a1.key === _1);
|
|
14476
|
+
if (t1) {
|
|
14477
|
+
const a1 = t1.sortAccessor || t1.accessor || ((N1) => {
|
|
14478
|
+
const z1 = N1[t1.key];
|
|
14450
14479
|
return typeof z1 == "string" || typeof z1 == "number" ? z1 : "";
|
|
14451
14480
|
}), u1 = [...c].sort((N1, z1) => {
|
|
14452
|
-
const R1 =
|
|
14481
|
+
const R1 = a1(N1), x1 = a1(z1);
|
|
14453
14482
|
return typeof R1 == "number" && typeof x1 == "number" ? R1 - x1 : String(R1).localeCompare(String(x1));
|
|
14454
14483
|
});
|
|
14455
14484
|
R = L1 === "asc" ? u1 : u1.reverse();
|
|
14456
14485
|
}
|
|
14457
14486
|
}
|
|
14458
14487
|
if (t0.size === 0) return R;
|
|
14459
|
-
const
|
|
14460
|
-
if (R.forEach((
|
|
14461
|
-
t0.has(D1(
|
|
14462
|
-
}), a && a.length > 1 &&
|
|
14463
|
-
const
|
|
14464
|
-
|
|
14488
|
+
const e1 = [], d1 = [];
|
|
14489
|
+
if (R.forEach((t1, a1) => {
|
|
14490
|
+
t0.has(D1(t1, a1)) ? e1.push(t1) : d1.push(t1);
|
|
14491
|
+
}), a && a.length > 1 && e1.length > 1) {
|
|
14492
|
+
const t1 = new Map(a.map((a1, u1) => [a1, u1]));
|
|
14493
|
+
e1.sort((a1, u1) => (t1.get(D1(a1, 0)) ?? 0) - (t1.get(D1(u1, 0)) ?? 0));
|
|
14465
14494
|
}
|
|
14466
|
-
return [...
|
|
14495
|
+
return [...e1, ...d1];
|
|
14467
14496
|
}, [
|
|
14468
14497
|
t,
|
|
14469
14498
|
c,
|
|
@@ -14471,27 +14500,27 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14471
14500
|
_1,
|
|
14472
14501
|
t0,
|
|
14473
14502
|
a
|
|
14474
|
-
]), I1 =
|
|
14503
|
+
]), I1 = s1 !== void 0, X1 = I1 ? s1 : C1.length, r0 = Math.max(1, Math.ceil(X1 / B)), Z1 = Math.min(r1, r0), E = I1 ? C1 : C1.slice((Z1 - 1) * B, Z1 * B), T = X ? Ur(B, X1, i1 ?? X1, Z1, I) : null, q = m1(() => {
|
|
14475
14504
|
if (!V) return null;
|
|
14476
14505
|
const R = /* @__PURE__ */ new Map();
|
|
14477
|
-
return C1.forEach((
|
|
14478
|
-
const
|
|
14479
|
-
R.set(
|
|
14506
|
+
return C1.forEach((e1) => {
|
|
14507
|
+
const d1 = V.groupBy(e1);
|
|
14508
|
+
R.set(d1, (R.get(d1) ?? 0) + 1);
|
|
14480
14509
|
}), R;
|
|
14481
|
-
}, [V, C1]),
|
|
14510
|
+
}, [V, C1]), c1 = m1(() => {
|
|
14482
14511
|
if (!V || !q) return null;
|
|
14483
|
-
const R = /* @__PURE__ */ new Map(),
|
|
14484
|
-
E.forEach((
|
|
14485
|
-
const
|
|
14486
|
-
u1 ? u1.push(
|
|
14512
|
+
const R = /* @__PURE__ */ new Map(), e1 = [];
|
|
14513
|
+
E.forEach((t1) => {
|
|
14514
|
+
const a1 = V.groupBy(t1), u1 = R.get(a1);
|
|
14515
|
+
u1 ? u1.push(t1) : (R.set(a1, [t1]), e1.push(a1));
|
|
14487
14516
|
});
|
|
14488
|
-
const
|
|
14489
|
-
key:
|
|
14490
|
-
label: V.groupLabel(
|
|
14491
|
-
items: R.get(
|
|
14492
|
-
totalCount: q.get(
|
|
14517
|
+
const d1 = e1.map((t1) => ({
|
|
14518
|
+
key: t1,
|
|
14519
|
+
label: V.groupLabel(t1),
|
|
14520
|
+
items: R.get(t1),
|
|
14521
|
+
totalCount: q.get(t1) ?? 0
|
|
14493
14522
|
}));
|
|
14494
|
-
return V.sortGroups ?
|
|
14523
|
+
return V.sortGroups ? d1.sort(V.sortGroups) : d1.sort((t1, a1) => t1.key === null ? 1 : a1.key === null ? -1 : 0), d1;
|
|
14495
14524
|
}, [
|
|
14496
14525
|
V,
|
|
14497
14526
|
q,
|
|
@@ -14500,21 +14529,21 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14500
14529
|
id: w.idAccessor(R),
|
|
14501
14530
|
date: w.dateAccessor(R)
|
|
14502
14531
|
})), w.granularity) : /* @__PURE__ */ new Map(), [E, w]), j1 = (R) => {
|
|
14503
|
-
i === void 0 && k1(R), o?.(c.filter((
|
|
14532
|
+
i === void 0 && k1(R), o?.(c.filter((e1, d1) => R.includes(D1(e1, d1))));
|
|
14504
14533
|
}, b0 = (R) => {
|
|
14505
14534
|
R.sortable && (_1 === R.key ? T1(R.key, L1 === "asc" ? "desc" : "asc") : T1(R.key, "asc"));
|
|
14506
|
-
}, U2 = (R,
|
|
14535
|
+
}, U2 = (R, e1) => {
|
|
14507
14536
|
R.preventDefault();
|
|
14508
|
-
const
|
|
14509
|
-
const z1 = N1.clientX -
|
|
14510
|
-
|
|
14537
|
+
const d1 = R.clientX, t1 = J[e1] ?? 150, a1 = (N1) => {
|
|
14538
|
+
const z1 = N1.clientX - d1, R1 = t.find((x1) => x1.key === e1)?.minWidth ?? 120;
|
|
14539
|
+
n1((x1) => ({
|
|
14511
14540
|
...x1,
|
|
14512
|
-
[
|
|
14541
|
+
[e1]: Math.max(R1, t1 + z1)
|
|
14513
14542
|
}));
|
|
14514
14543
|
}, u1 = () => {
|
|
14515
|
-
window.removeEventListener("mousemove",
|
|
14544
|
+
window.removeEventListener("mousemove", a1), window.removeEventListener("mouseup", u1);
|
|
14516
14545
|
};
|
|
14517
|
-
window.addEventListener("mousemove",
|
|
14546
|
+
window.addEventListener("mousemove", a1), window.addEventListener("mouseup", u1);
|
|
14518
14547
|
}, O0 = t.some((R) => R.filter), N0 = t.filter((R) => R.sortable), F2 = N0.map((R) => ({
|
|
14519
14548
|
label: H2(R),
|
|
14520
14549
|
value: R.key
|
|
@@ -14535,7 +14564,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14535
14564
|
X0
|
|
14536
14565
|
]
|
|
14537
14566
|
}) : null;
|
|
14538
|
-
if (t.length === 0) return /* @__PURE__ */ r("div", {
|
|
14567
|
+
if (S !== "cards" && t.length === 0) return /* @__PURE__ */ r("div", {
|
|
14539
14568
|
className: `data-view${A ? ` ${A}` : ""}`,
|
|
14540
14569
|
children: [S0, /* @__PURE__ */ e("div", {
|
|
14541
14570
|
className: "data-view__wrapper data-view__wrapper--empty",
|
|
@@ -14566,11 +14595,11 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14566
14595
|
T1(null, L1);
|
|
14567
14596
|
return;
|
|
14568
14597
|
}
|
|
14569
|
-
const
|
|
14570
|
-
T1(
|
|
14598
|
+
const e1 = String(R.value);
|
|
14599
|
+
T1(e1, _1 === e1 ? L1 : "asc");
|
|
14571
14600
|
}
|
|
14572
14601
|
})
|
|
14573
|
-
}), /* @__PURE__ */ e(
|
|
14602
|
+
}), /* @__PURE__ */ e(K, {
|
|
14574
14603
|
title: L1 === "asc" ? "Sort descending" : "Sort ascending",
|
|
14575
14604
|
children: /* @__PURE__ */ e(F, {
|
|
14576
14605
|
className: "data-view__card-sort-direction",
|
|
@@ -14606,13 +14635,13 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14606
14635
|
pinnedIds: a,
|
|
14607
14636
|
cardMaxWidth: k,
|
|
14608
14637
|
isMobile: p1,
|
|
14609
|
-
groups:
|
|
14638
|
+
groups: c1 ?? void 0,
|
|
14610
14639
|
showGroupCount: V?.showCount !== !1,
|
|
14611
14640
|
collapsible: V?.collapsible,
|
|
14612
14641
|
collapsedGroups: b1,
|
|
14613
14642
|
onToggleGroup: B1,
|
|
14614
|
-
onToggleSelect: (R,
|
|
14615
|
-
j1(
|
|
14643
|
+
onToggleSelect: (R, e1) => {
|
|
14644
|
+
j1(e1 ? [...g1, R] : g1.filter((d1) => d1 !== R));
|
|
14616
14645
|
}
|
|
14617
14646
|
}),
|
|
14618
14647
|
/* @__PURE__ */ e(a2, {
|
|
@@ -14628,7 +14657,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14628
14657
|
})
|
|
14629
14658
|
]
|
|
14630
14659
|
});
|
|
14631
|
-
const d0 = t.filter((R) => !R.hideInTable), Y2 = s && g1.length > 0 && g1.length === c.length, X2 = s && g1.length > 0 && g1.length < c.length, c0 = w && K1.size > 0, K0 = /* @__PURE__ */ r(
|
|
14660
|
+
const d0 = t.filter((R) => !R.hideInTable), Y2 = s && g1.length > 0 && g1.length === c.length, X2 = s && g1.length > 0 && g1.length < c.length, c0 = w && K1.size > 0, K0 = /* @__PURE__ */ r(l1, { children: [
|
|
14632
14661
|
S0,
|
|
14633
14662
|
/* @__PURE__ */ e("div", {
|
|
14634
14663
|
className: "data-view__wrapper",
|
|
@@ -14645,9 +14674,9 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14645
14674
|
})
|
|
14646
14675
|
}),
|
|
14647
14676
|
d0.map((R) => {
|
|
14648
|
-
const
|
|
14649
|
-
return
|
|
14650
|
-
style: Object.keys(
|
|
14677
|
+
const e1 = {};
|
|
14678
|
+
return J[R.key] && (e1.width = J[R.key]), R.minWidth && (e1.minWidth = R.minWidth), /* @__PURE__ */ r("th", {
|
|
14679
|
+
style: Object.keys(e1).length > 0 ? e1 : void 0,
|
|
14651
14680
|
className: R.sortable ? "is-sortable" : "",
|
|
14652
14681
|
onClick: () => b0(R),
|
|
14653
14682
|
children: [/* @__PURE__ */ r("span", {
|
|
@@ -14655,8 +14684,8 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14655
14684
|
children: [S2(R), R.sortable && /* @__PURE__ */ e(sc, { state: _1 === R.key ? L1 : "unsorted" })]
|
|
14656
14685
|
}), /* @__PURE__ */ e("span", {
|
|
14657
14686
|
className: "data-view__resizer",
|
|
14658
|
-
onMouseDown: (
|
|
14659
|
-
onClick: (
|
|
14687
|
+
onMouseDown: (d1) => U2(d1, R.key),
|
|
14688
|
+
onClick: (d1) => d1.stopPropagation()
|
|
14660
14689
|
})]
|
|
14661
14690
|
}, R.key);
|
|
14662
14691
|
}),
|
|
@@ -14672,7 +14701,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14672
14701
|
s && /* @__PURE__ */ e("td", { className: "data-view__filter-cell data-view__filter-cell--spacer" }),
|
|
14673
14702
|
d0.map((R) => /* @__PURE__ */ e("td", {
|
|
14674
14703
|
className: "data-view__filter-cell",
|
|
14675
|
-
style:
|
|
14704
|
+
style: J[R.key] ? { width: J[R.key] } : void 0,
|
|
14676
14705
|
children: R.filter ?? null
|
|
14677
14706
|
}, R.key)),
|
|
14678
14707
|
p && /* @__PURE__ */ e("td", { className: "data-view__filter-cell data-view__filter-cell--spacer" })
|
|
@@ -14689,18 +14718,18 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14689
14718
|
secondary: x.secondary
|
|
14690
14719
|
}) : /* @__PURE__ */ e(J1, { title: "No data available" })
|
|
14691
14720
|
}) });
|
|
14692
|
-
const R = d0.length + (c0 ? 1 : 0) + (s ? 1 : 0) + (p ? 1 : 0),
|
|
14693
|
-
const u1 = D1(
|
|
14721
|
+
const R = d0.length + (c0 ? 1 : 0) + (s ? 1 : 0) + (p ? 1 : 0), e1 = V?.showCount !== !1, d1 = (t1, a1) => {
|
|
14722
|
+
const u1 = D1(t1, a1), N1 = g1.includes(u1), z1 = t0.has(u1), R1 = K1.get(a1), x1 = u?.(t1), Q0 = !!v || !!x1, K2 = (w1) => {
|
|
14694
14723
|
if (x1 && (w1.metaKey || w1.ctrlKey || w1.shiftKey)) {
|
|
14695
14724
|
window.open(x1, "_blank", "noopener,noreferrer");
|
|
14696
14725
|
return;
|
|
14697
14726
|
}
|
|
14698
|
-
v?.(
|
|
14727
|
+
v?.(t1, w1);
|
|
14699
14728
|
}, Q2 = (w1) => {
|
|
14700
14729
|
w1.button !== 1 || !x1 || (w1.preventDefault(), window.open(x1, "_blank", "noopener,noreferrer"));
|
|
14701
|
-
}, B0 = C?.(
|
|
14730
|
+
}, B0 = C?.(t1);
|
|
14702
14731
|
return /* @__PURE__ */ r(E1.Fragment, { children: [/* @__PURE__ */ r("tr", {
|
|
14703
|
-
className: `${N1 ? "is-selected" : ""} ${Q0 ? "data-view__row--clickable" : ""} ${z1 ? "data-view__row--pinned" : ""} ${f?.(
|
|
14732
|
+
className: `${N1 ? "is-selected" : ""} ${Q0 ? "data-view__row--clickable" : ""} ${z1 ? "data-view__row--pinned" : ""} ${f?.(t1) || ""}`,
|
|
14704
14733
|
onClick: Q0 ? K2 : void 0,
|
|
14705
14734
|
onAuxClick: x1 ? Q2 : void 0,
|
|
14706
14735
|
children: [
|
|
@@ -14718,15 +14747,15 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14718
14747
|
})
|
|
14719
14748
|
}),
|
|
14720
14749
|
d0.map((w1, R0) => /* @__PURE__ */ r("td", {
|
|
14721
|
-
style:
|
|
14722
|
-
children: [R0 === 0 && z1 && /* @__PURE__ */ e(
|
|
14750
|
+
style: J[w1.key] ? { width: J[w1.key] } : void 0,
|
|
14751
|
+
children: [R0 === 0 && z1 && /* @__PURE__ */ e(K, {
|
|
14723
14752
|
title: "Pinned",
|
|
14724
14753
|
children: /* @__PURE__ */ e(G, {
|
|
14725
14754
|
className: "data-view__pin-indicator",
|
|
14726
14755
|
name: "pin",
|
|
14727
14756
|
size: "sm"
|
|
14728
14757
|
})
|
|
14729
|
-
}), B2(w1,
|
|
14758
|
+
}), B2(w1, t1)]
|
|
14730
14759
|
}, w1.key)),
|
|
14731
14760
|
p && /* @__PURE__ */ e("td", {
|
|
14732
14761
|
className: "data-view__actions-cell",
|
|
@@ -14734,7 +14763,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14734
14763
|
children: /* @__PURE__ */ e("div", {
|
|
14735
14764
|
className: "data-view__table-actions",
|
|
14736
14765
|
onClick: (w1) => w1.stopPropagation(),
|
|
14737
|
-
children: p(
|
|
14766
|
+
children: p(t1)
|
|
14738
14767
|
})
|
|
14739
14768
|
})
|
|
14740
14769
|
]
|
|
@@ -14747,26 +14776,26 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14747
14776
|
})
|
|
14748
14777
|
})] }, u1);
|
|
14749
14778
|
};
|
|
14750
|
-
if (
|
|
14751
|
-
let
|
|
14752
|
-
return
|
|
14753
|
-
const u1 =
|
|
14754
|
-
|
|
14755
|
-
const N1 = V?.collapsible && b1.has(
|
|
14779
|
+
if (c1) {
|
|
14780
|
+
let t1 = 0;
|
|
14781
|
+
return c1.map((a1) => {
|
|
14782
|
+
const u1 = t1;
|
|
14783
|
+
t1 += a1.items.length;
|
|
14784
|
+
const N1 = V?.collapsible && b1.has(a1.key);
|
|
14756
14785
|
return /* @__PURE__ */ r(E1.Fragment, { children: [/* @__PURE__ */ e("tr", {
|
|
14757
14786
|
className: `data-view__group-row${V?.collapsible ? " data-view__group-row--collapsible" : ""}`,
|
|
14758
|
-
onClick: V?.collapsible ? () => B1(
|
|
14787
|
+
onClick: V?.collapsible ? () => B1(a1.key) : void 0,
|
|
14759
14788
|
children: /* @__PURE__ */ r("td", {
|
|
14760
14789
|
colSpan: R,
|
|
14761
14790
|
className: "data-view__group-cell",
|
|
14762
14791
|
children: [
|
|
14763
14792
|
/* @__PURE__ */ e("span", {
|
|
14764
14793
|
className: "data-view__group-label",
|
|
14765
|
-
children:
|
|
14794
|
+
children: a1.label
|
|
14766
14795
|
}),
|
|
14767
|
-
|
|
14796
|
+
e1 && /* @__PURE__ */ e("span", {
|
|
14768
14797
|
className: "data-view__group-count",
|
|
14769
|
-
children:
|
|
14798
|
+
children: a1.totalCount
|
|
14770
14799
|
}),
|
|
14771
14800
|
V?.collapsible && /* @__PURE__ */ e(G, {
|
|
14772
14801
|
className: "data-view__group-chevron",
|
|
@@ -14775,10 +14804,10 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14775
14804
|
})
|
|
14776
14805
|
]
|
|
14777
14806
|
})
|
|
14778
|
-
}), !N1 &&
|
|
14807
|
+
}), !N1 && a1.items.map((z1, R1) => d1(z1, u1 + R1))] }, a1.key ?? "__null__");
|
|
14779
14808
|
});
|
|
14780
14809
|
}
|
|
14781
|
-
return E.map((
|
|
14810
|
+
return E.map((t1, a1) => d1(t1, a1));
|
|
14782
14811
|
})() })] })
|
|
14783
14812
|
}),
|
|
14784
14813
|
/* @__PURE__ */ e(a2, {
|
|
@@ -14822,7 +14851,7 @@ var Q1 = (t) => {
|
|
|
14822
14851
|
}), w(null), !o && i && u(!1));
|
|
14823
14852
|
}, P = (W) => {
|
|
14824
14853
|
w(W);
|
|
14825
|
-
}, O = (W) => /^\d{4}-\d{2}-\d{2}$/.test(W) && Q1(W) !== void 0,
|
|
14854
|
+
}, O = (W) => /^\d{4}-\d{2}-\d{2}$/.test(W) && Q1(W) !== void 0, s1 = () => {
|
|
14826
14855
|
O(x) ? A({
|
|
14827
14856
|
...y,
|
|
14828
14857
|
start: x
|
|
@@ -14833,10 +14862,10 @@ var Q1 = (t) => {
|
|
|
14833
14862
|
end: M
|
|
14834
14863
|
}) : _(y.end ?? "");
|
|
14835
14864
|
}, X = (W) => {
|
|
14836
|
-
const
|
|
14865
|
+
const o1 = /* @__PURE__ */ new Date(), v1 = /* @__PURE__ */ new Date();
|
|
14837
14866
|
v1.setDate(v1.getDate() - W), A({
|
|
14838
14867
|
start: x0(v1),
|
|
14839
|
-
end: x0(
|
|
14868
|
+
end: x0(o1)
|
|
14840
14869
|
});
|
|
14841
14870
|
};
|
|
14842
14871
|
U(() => {
|
|
@@ -14844,12 +14873,12 @@ var Q1 = (t) => {
|
|
|
14844
14873
|
}, [y.start]), U(() => {
|
|
14845
14874
|
_(y.end ?? "");
|
|
14846
14875
|
}, [y.end]);
|
|
14847
|
-
const
|
|
14876
|
+
const i1 = m1(() => u0(m, 1), [m]), I = o || v, $ = !o && v, p1 = j(() => {
|
|
14848
14877
|
if (!$ || !N.current || !L.current) return;
|
|
14849
|
-
const W = N.current.getBoundingClientRect(),
|
|
14878
|
+
const W = N.current.getBoundingClientRect(), o1 = L.current.getBoundingClientRect(), v1 = 16, y1 = 8, k1 = window.innerHeight - W.bottom - v1, g1 = W.top - v1, $1 = k1 < o1.height && g1 > o1.height ? W.top - o1.height - y1 : W.bottom + y1, Q = Math.max(v1, Math.min($1, window.innerHeight - o1.height - v1)), r1 = W.left, B = Math.max(v1, Math.min(r1, window.innerWidth - o1.width - v1));
|
|
14850
14879
|
C({
|
|
14851
14880
|
position: "fixed",
|
|
14852
|
-
top: `${
|
|
14881
|
+
top: `${Q}px`,
|
|
14853
14882
|
left: `${B}px`,
|
|
14854
14883
|
zIndex: 1e3
|
|
14855
14884
|
});
|
|
@@ -14873,14 +14902,14 @@ var Q1 = (t) => {
|
|
|
14873
14902
|
const W = (v1) => {
|
|
14874
14903
|
const y1 = v1.target;
|
|
14875
14904
|
N.current?.contains(y1) || L.current?.contains(y1) || u(!1);
|
|
14876
|
-
},
|
|
14905
|
+
}, o1 = (v1) => {
|
|
14877
14906
|
v1.key === "Escape" && u(!1);
|
|
14878
14907
|
};
|
|
14879
|
-
return document.addEventListener("mousedown", W), document.addEventListener("keydown",
|
|
14880
|
-
document.removeEventListener("mousedown", W), document.removeEventListener("keydown",
|
|
14908
|
+
return document.addEventListener("mousedown", W), document.addEventListener("keydown", o1), () => {
|
|
14909
|
+
document.removeEventListener("mousedown", W), document.removeEventListener("keydown", o1);
|
|
14881
14910
|
};
|
|
14882
14911
|
}, [$]);
|
|
14883
|
-
const
|
|
14912
|
+
const h1 = /* @__PURE__ */ r("div", {
|
|
14884
14913
|
className: "date-range-picker__calendar",
|
|
14885
14914
|
children: [/* @__PURE__ */ r("div", {
|
|
14886
14915
|
className: "date-range-picker__nav",
|
|
@@ -14896,9 +14925,9 @@ var Q1 = (t) => {
|
|
|
14896
14925
|
" ",
|
|
14897
14926
|
m.getFullYear(),
|
|
14898
14927
|
" -",
|
|
14899
|
-
|
|
14928
|
+
i1.toLocaleString("default", { month: "long" }),
|
|
14900
14929
|
" ",
|
|
14901
|
-
|
|
14930
|
+
i1.getFullYear()
|
|
14902
14931
|
] }),
|
|
14903
14932
|
/* @__PURE__ */ e(F, {
|
|
14904
14933
|
variant: "default",
|
|
@@ -14927,7 +14956,7 @@ var Q1 = (t) => {
|
|
|
14927
14956
|
onChange: D,
|
|
14928
14957
|
rangeStart: g,
|
|
14929
14958
|
onRangeStartChange: P,
|
|
14930
|
-
currentMonth:
|
|
14959
|
+
currentMonth: i1,
|
|
14931
14960
|
onMonthChange: p,
|
|
14932
14961
|
showHeader: !1,
|
|
14933
14962
|
showToday: !1,
|
|
@@ -14954,7 +14983,7 @@ var Q1 = (t) => {
|
|
|
14954
14983
|
children: W.label
|
|
14955
14984
|
}, W.days))
|
|
14956
14985
|
})]
|
|
14957
|
-
}) : /* @__PURE__ */ r(
|
|
14986
|
+
}) : /* @__PURE__ */ r(l1, { children: [t && /* @__PURE__ */ e("label", {
|
|
14958
14987
|
className: "date-range-picker__label",
|
|
14959
14988
|
children: t
|
|
14960
14989
|
}), n && n.length > 0 && /* @__PURE__ */ e("div", {
|
|
@@ -14974,7 +15003,7 @@ var Q1 = (t) => {
|
|
|
14974
15003
|
placeholder: "YYYY-MM-DD",
|
|
14975
15004
|
maxLength: 10,
|
|
14976
15005
|
onChange: b,
|
|
14977
|
-
onBlur:
|
|
15006
|
+
onBlur: s1
|
|
14978
15007
|
}),
|
|
14979
15008
|
/* @__PURE__ */ e("span", {
|
|
14980
15009
|
className: "date-range-picker__separator",
|
|
@@ -14995,12 +15024,12 @@ var Q1 = (t) => {
|
|
|
14995
15024
|
})
|
|
14996
15025
|
]
|
|
14997
15026
|
}),
|
|
14998
|
-
o && I &&
|
|
15027
|
+
o && I && h1,
|
|
14999
15028
|
$ && q1(/* @__PURE__ */ e("div", {
|
|
15000
15029
|
ref: L,
|
|
15001
15030
|
className: "date-range-picker__overlay",
|
|
15002
15031
|
style: f,
|
|
15003
|
-
children:
|
|
15032
|
+
children: h1
|
|
15004
15033
|
}), document.body)
|
|
15005
15034
|
]
|
|
15006
15035
|
});
|
|
@@ -15078,7 +15107,7 @@ function dc(t, c) {
|
|
|
15078
15107
|
const l = (a) => a.match(/\S+|\s+/g) ?? [];
|
|
15079
15108
|
return R2(l(t), l(c));
|
|
15080
15109
|
}
|
|
15081
|
-
var mc = ({ a: t, b: c, side: l }) => /* @__PURE__ */ e(
|
|
15110
|
+
var mc = ({ a: t, b: c, side: l }) => /* @__PURE__ */ e(l1, { children: dc(t, c).map((a, s) => a.kind === "eq" ? /* @__PURE__ */ e("span", { children: a.val }, s) : a.kind === "del" && l === "old" ? /* @__PURE__ */ e("mark", {
|
|
15082
15111
|
className: "dv-word dv-word--del",
|
|
15083
15112
|
children: a.val
|
|
15084
15113
|
}, s) : a.kind === "ins" && l === "new" ? /* @__PURE__ */ e("mark", {
|
|
@@ -15136,7 +15165,7 @@ function vc(t) {
|
|
|
15136
15165
|
}
|
|
15137
15166
|
return c;
|
|
15138
15167
|
}
|
|
15139
|
-
var gc = ({ text: t }) => /* @__PURE__ */ e(
|
|
15168
|
+
var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t]).map((c, l) => c.name === "plain" ? /* @__PURE__ */ e("span", { children: c.val }, l) : /* @__PURE__ */ e("span", {
|
|
15140
15169
|
className: `dv-token dv-token--${c.name}`,
|
|
15141
15170
|
children: c.val
|
|
15142
15171
|
}, l)) }), E0 = ({ line: t, side: c, type: l }) => {
|
|
@@ -15145,7 +15174,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15145
15174
|
a: t.oldText,
|
|
15146
15175
|
b: t.newText,
|
|
15147
15176
|
side: c
|
|
15148
|
-
}) : l === "code" ? /* @__PURE__ */ e(gc, { text: a }) : /* @__PURE__ */ e(
|
|
15177
|
+
}) : l === "code" ? /* @__PURE__ */ e(gc, { text: a }) : /* @__PURE__ */ e(l1, { children: a });
|
|
15149
15178
|
}, ba = ({ oldValue: t, newValue: c, mode: l = "split", type: a = "text", oldTitle: s = "Before", newTitle: o = "After", showLineNumbers: i = !0 }) => {
|
|
15150
15179
|
const n = m1(() => hc(t, c), [t, c]), d = m1(() => ({
|
|
15151
15180
|
added: n.filter((h) => h.kind === "added").length,
|
|
@@ -15155,7 +15184,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15155
15184
|
className: `dv dv--${l} dv--${a}`,
|
|
15156
15185
|
children: [/* @__PURE__ */ r("div", {
|
|
15157
15186
|
className: "dv__header",
|
|
15158
|
-
children: [l === "split" ? /* @__PURE__ */ r(
|
|
15187
|
+
children: [l === "split" ? /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", {
|
|
15159
15188
|
className: "dv__header-side",
|
|
15160
15189
|
children: s
|
|
15161
15190
|
}), /* @__PURE__ */ e("div", {
|
|
@@ -15243,7 +15272,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15243
15272
|
children: n.map((h, m) => /* @__PURE__ */ r("div", {
|
|
15244
15273
|
className: `dv__row dv__row--${h.kind}`,
|
|
15245
15274
|
children: [
|
|
15246
|
-
i && /* @__PURE__ */ r(
|
|
15275
|
+
i && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", {
|
|
15247
15276
|
className: "dv__lineno",
|
|
15248
15277
|
children: h.kind !== "added" ? h.oldLineNo : ""
|
|
15249
15278
|
}), /* @__PURE__ */ e("span", {
|
|
@@ -15286,7 +15315,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15286
15315
|
"--drawer-shadow": n,
|
|
15287
15316
|
zIndex: y + 1
|
|
15288
15317
|
}, S = M || x || b;
|
|
15289
|
-
return /* @__PURE__ */ r(
|
|
15318
|
+
return /* @__PURE__ */ r(l1, { children: [g && /* @__PURE__ */ e("div", {
|
|
15290
15319
|
className: "drawer-overlay",
|
|
15291
15320
|
onClick: c,
|
|
15292
15321
|
style: { zIndex: y }
|
|
@@ -15297,7 +15326,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15297
15326
|
/* @__PURE__ */ r("div", {
|
|
15298
15327
|
className: "drawer__header",
|
|
15299
15328
|
children: [
|
|
15300
|
-
f && /* @__PURE__ */ e(
|
|
15329
|
+
f && /* @__PURE__ */ e(K, {
|
|
15301
15330
|
title: C,
|
|
15302
15331
|
position: "bottom",
|
|
15303
15332
|
children: /* @__PURE__ */ e(F, {
|
|
@@ -15327,7 +15356,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15327
15356
|
variant: k.variant ?? "ghost",
|
|
15328
15357
|
children: k.label
|
|
15329
15358
|
}), D = k.title ?? k.label;
|
|
15330
|
-
return D ? /* @__PURE__ */ e(
|
|
15359
|
+
return D ? /* @__PURE__ */ e(K, {
|
|
15331
15360
|
title: D,
|
|
15332
15361
|
position: "bottom",
|
|
15333
15362
|
children: A
|
|
@@ -20554,7 +20583,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
20554
20583
|
const [c, l] = z(!1);
|
|
20555
20584
|
if (t.length === 1) return /* @__PURE__ */ e("div", {
|
|
20556
20585
|
className: "float-button-container",
|
|
20557
|
-
children: /* @__PURE__ */ e(
|
|
20586
|
+
children: /* @__PURE__ */ e(K, {
|
|
20558
20587
|
title: t[0].label,
|
|
20559
20588
|
position: "left",
|
|
20560
20589
|
children: /* @__PURE__ */ e("button", {
|
|
@@ -20577,7 +20606,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
20577
20606
|
};
|
|
20578
20607
|
return /* @__PURE__ */ r("div", {
|
|
20579
20608
|
className: "float-button-container",
|
|
20580
|
-
children: [c && /* @__PURE__ */ r(
|
|
20609
|
+
children: [c && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", {
|
|
20581
20610
|
className: "float-button-overlay",
|
|
20582
20611
|
onClick: () => l(!1)
|
|
20583
20612
|
}), /* @__PURE__ */ e("div", {
|
|
@@ -20593,15 +20622,17 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
20593
20622
|
children: o.label
|
|
20594
20623
|
})]
|
|
20595
20624
|
}, `float-button-${i}`))
|
|
20596
|
-
})] }), /* @__PURE__ */ e(
|
|
20597
|
-
className: `float-button ${c ? "float-button--active" : ""}`,
|
|
20598
|
-
onClick: a,
|
|
20625
|
+
})] }), /* @__PURE__ */ e(K, {
|
|
20599
20626
|
title: "Actions menu",
|
|
20600
|
-
children: /* @__PURE__ */ e("
|
|
20601
|
-
className: "float-
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
20627
|
+
children: /* @__PURE__ */ e("button", {
|
|
20628
|
+
className: `float-button ${c ? "float-button--active" : ""}`,
|
|
20629
|
+
onClick: a,
|
|
20630
|
+
children: /* @__PURE__ */ e("span", {
|
|
20631
|
+
className: "float-button__icon",
|
|
20632
|
+
children: /* @__PURE__ */ e(G, {
|
|
20633
|
+
name: c ? "clear" : "plus",
|
|
20634
|
+
size: "xxl"
|
|
20635
|
+
})
|
|
20605
20636
|
})
|
|
20606
20637
|
})
|
|
20607
20638
|
})]
|
|
@@ -20940,7 +20971,7 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20940
20971
|
},
|
|
20941
20972
|
getRawValue: () => S
|
|
20942
20973
|
}));
|
|
20943
|
-
const { masked: D } = I0(S, N, w), P = D.includes(w) ? D.replace(new RegExp(w.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), w) : D, O = n ? "danger" : m,
|
|
20974
|
+
const { masked: D } = I0(S, N, w), P = D.includes(w) ? D.replace(new RegExp(w.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), w) : D, O = n ? "danger" : m, s1 = [
|
|
20944
20975
|
"input-mask",
|
|
20945
20976
|
`input-mask--${h}`,
|
|
20946
20977
|
`input-mask--${O}`,
|
|
@@ -20955,22 +20986,22 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20955
20986
|
if (p || g) return;
|
|
20956
20987
|
if (I.key === "Backspace") {
|
|
20957
20988
|
I.preventDefault();
|
|
20958
|
-
const
|
|
20959
|
-
k(
|
|
20989
|
+
const o1 = S.slice(0, -1), { masked: v1 } = I0(o1, N, w);
|
|
20990
|
+
k(o1), l?.(o1, v1);
|
|
20960
20991
|
return;
|
|
20961
20992
|
}
|
|
20962
20993
|
if (I.key.length !== 1 || I.ctrlKey || I.metaKey || (I.preventDefault(), S.length >= L)) return;
|
|
20963
20994
|
const $ = I.key;
|
|
20964
20995
|
let p1 = 0;
|
|
20965
|
-
for (const
|
|
20996
|
+
for (const o1 of N) if (o1.type === "token") {
|
|
20966
20997
|
if (p1 === S.length) {
|
|
20967
|
-
if (!D2[
|
|
20998
|
+
if (!D2[o1.key].test($)) return;
|
|
20968
20999
|
break;
|
|
20969
21000
|
}
|
|
20970
21001
|
p1++;
|
|
20971
21002
|
}
|
|
20972
|
-
const { masked:
|
|
20973
|
-
k(W), l?.(W,
|
|
21003
|
+
const { masked: h1, rawAccepted: W } = I0(S + $, N, w);
|
|
21004
|
+
k(W), l?.(W, h1), W.length === L && a?.(W, h1);
|
|
20974
21005
|
}, [
|
|
20975
21006
|
p,
|
|
20976
21007
|
g,
|
|
@@ -20980,9 +21011,9 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20980
21011
|
L,
|
|
20981
21012
|
l,
|
|
20982
21013
|
a
|
|
20983
|
-
]), X = s ?? N.map((I) => I.type === "literal" ? I.char : w).join(""),
|
|
21014
|
+
]), X = s ?? N.map((I) => I.type === "literal" ? I.char : w).join(""), i1 = S.length === L;
|
|
20984
21015
|
return /* @__PURE__ */ r("div", {
|
|
20985
|
-
className:
|
|
21016
|
+
className: s1,
|
|
20986
21017
|
children: [
|
|
20987
21018
|
o && /* @__PURE__ */ e("label", {
|
|
20988
21019
|
className: "input-mask__label",
|
|
@@ -21003,7 +21034,7 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
21003
21034
|
type: "text",
|
|
21004
21035
|
inputMode: "text",
|
|
21005
21036
|
autoComplete: M,
|
|
21006
|
-
className: ["input-mask__input",
|
|
21037
|
+
className: ["input-mask__input", i1 ? "input-mask__input--filled" : ""].filter(Boolean).join(" "),
|
|
21007
21038
|
value: P,
|
|
21008
21039
|
placeholder: X,
|
|
21009
21040
|
disabled: p,
|
|
@@ -21703,7 +21734,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21703
21734
|
className: "NotificationPanel__badge",
|
|
21704
21735
|
children: t.length
|
|
21705
21736
|
})]
|
|
21706
|
-
}), s && q1(/* @__PURE__ */ r(
|
|
21737
|
+
}), s && q1(/* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", {
|
|
21707
21738
|
className: "NotificationPanel__backdrop",
|
|
21708
21739
|
onClick: () => o(!1)
|
|
21709
21740
|
}), /* @__PURE__ */ r("div", {
|
|
@@ -21794,7 +21825,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21794
21825
|
height: n,
|
|
21795
21826
|
viewBox: p,
|
|
21796
21827
|
children: [
|
|
21797
|
-
!w && /* @__PURE__ */ r(
|
|
21828
|
+
!w && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("circle", {
|
|
21798
21829
|
className: "pie-chart__empty-circle",
|
|
21799
21830
|
cx: h,
|
|
21800
21831
|
cy: h,
|
|
@@ -22646,7 +22677,7 @@ ${s.textContent ?? ""}
|
|
|
22646
22677
|
/* @__PURE__ */ r("div", {
|
|
22647
22678
|
className: "rte-table-toolbar-group",
|
|
22648
22679
|
children: [
|
|
22649
|
-
/* @__PURE__ */ e(
|
|
22680
|
+
/* @__PURE__ */ e(K, {
|
|
22650
22681
|
title: "Add row above",
|
|
22651
22682
|
children: /* @__PURE__ */ e("button", {
|
|
22652
22683
|
type: "button",
|
|
@@ -22655,7 +22686,7 @@ ${s.textContent ?? ""}
|
|
|
22655
22686
|
children: "↑ Row"
|
|
22656
22687
|
})
|
|
22657
22688
|
}),
|
|
22658
|
-
/* @__PURE__ */ e(
|
|
22689
|
+
/* @__PURE__ */ e(K, {
|
|
22659
22690
|
title: "Add row below",
|
|
22660
22691
|
children: /* @__PURE__ */ e("button", {
|
|
22661
22692
|
type: "button",
|
|
@@ -22664,7 +22695,7 @@ ${s.textContent ?? ""}
|
|
|
22664
22695
|
children: "↓ Row"
|
|
22665
22696
|
})
|
|
22666
22697
|
}),
|
|
22667
|
-
/* @__PURE__ */ e(
|
|
22698
|
+
/* @__PURE__ */ e(K, {
|
|
22668
22699
|
title: "Remove last row",
|
|
22669
22700
|
children: /* @__PURE__ */ e("button", {
|
|
22670
22701
|
type: "button",
|
|
@@ -22679,7 +22710,7 @@ ${s.textContent ?? ""}
|
|
|
22679
22710
|
/* @__PURE__ */ r("div", {
|
|
22680
22711
|
className: "rte-table-toolbar-group",
|
|
22681
22712
|
children: [
|
|
22682
|
-
/* @__PURE__ */ e(
|
|
22713
|
+
/* @__PURE__ */ e(K, {
|
|
22683
22714
|
title: "Add column left",
|
|
22684
22715
|
children: /* @__PURE__ */ e("button", {
|
|
22685
22716
|
type: "button",
|
|
@@ -22688,7 +22719,7 @@ ${s.textContent ?? ""}
|
|
|
22688
22719
|
children: "← Col"
|
|
22689
22720
|
})
|
|
22690
22721
|
}),
|
|
22691
|
-
/* @__PURE__ */ e(
|
|
22722
|
+
/* @__PURE__ */ e(K, {
|
|
22692
22723
|
title: "Add column right",
|
|
22693
22724
|
children: /* @__PURE__ */ e("button", {
|
|
22694
22725
|
type: "button",
|
|
@@ -22697,7 +22728,7 @@ ${s.textContent ?? ""}
|
|
|
22697
22728
|
children: "→ Col"
|
|
22698
22729
|
})
|
|
22699
22730
|
}),
|
|
22700
|
-
/* @__PURE__ */ e(
|
|
22731
|
+
/* @__PURE__ */ e(K, {
|
|
22701
22732
|
title: "Remove last column",
|
|
22702
22733
|
children: /* @__PURE__ */ e("button", {
|
|
22703
22734
|
type: "button",
|
|
@@ -22711,7 +22742,7 @@ ${s.textContent ?? ""}
|
|
|
22711
22742
|
/* @__PURE__ */ e("div", { className: "rte-table-toolbar-divider" }),
|
|
22712
22743
|
/* @__PURE__ */ e("div", {
|
|
22713
22744
|
className: "rte-table-toolbar-group",
|
|
22714
|
-
children: /* @__PURE__ */ e(
|
|
22745
|
+
children: /* @__PURE__ */ e(K, {
|
|
22715
22746
|
title: "Delete table",
|
|
22716
22747
|
children: /* @__PURE__ */ e("button", {
|
|
22717
22748
|
type: "button",
|
|
@@ -22727,7 +22758,7 @@ ${s.textContent ?? ""}
|
|
|
22727
22758
|
children: [
|
|
22728
22759
|
/* @__PURE__ */ e("div", {
|
|
22729
22760
|
className: "rte-toolbar-group",
|
|
22730
|
-
children: Yc.map((h) => /* @__PURE__ */ e(
|
|
22761
|
+
children: Yc.map((h) => /* @__PURE__ */ e(K, {
|
|
22731
22762
|
title: h.title,
|
|
22732
22763
|
children: /* @__PURE__ */ e("button", {
|
|
22733
22764
|
type: "button",
|
|
@@ -22742,7 +22773,7 @@ ${s.textContent ?? ""}
|
|
|
22742
22773
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22743
22774
|
/* @__PURE__ */ r("div", {
|
|
22744
22775
|
className: "rte-toolbar-group",
|
|
22745
|
-
children: [Oc.map((h) => /* @__PURE__ */ e(
|
|
22776
|
+
children: [Oc.map((h) => /* @__PURE__ */ e(K, {
|
|
22746
22777
|
title: h.title,
|
|
22747
22778
|
children: /* @__PURE__ */ e("button", {
|
|
22748
22779
|
type: "button",
|
|
@@ -22752,7 +22783,7 @@ ${s.textContent ?? ""}
|
|
|
22752
22783
|
},
|
|
22753
22784
|
children: h.label
|
|
22754
22785
|
})
|
|
22755
|
-
}, h.command)), /* @__PURE__ */ e(
|
|
22786
|
+
}, h.command)), /* @__PURE__ */ e(K, {
|
|
22756
22787
|
title: "Task List",
|
|
22757
22788
|
children: /* @__PURE__ */ r("button", {
|
|
22758
22789
|
type: "button",
|
|
@@ -22767,7 +22798,7 @@ ${s.textContent ?? ""}
|
|
|
22767
22798
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22768
22799
|
/* @__PURE__ */ e("div", {
|
|
22769
22800
|
className: "rte-toolbar-group",
|
|
22770
|
-
children: Xc.map((h) => /* @__PURE__ */ e(
|
|
22801
|
+
children: Xc.map((h) => /* @__PURE__ */ e(K, {
|
|
22771
22802
|
title: `Heading ${h}`,
|
|
22772
22803
|
children: /* @__PURE__ */ r("button", {
|
|
22773
22804
|
type: "button",
|
|
@@ -22782,7 +22813,7 @@ ${s.textContent ?? ""}
|
|
|
22782
22813
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22783
22814
|
/* @__PURE__ */ e("div", {
|
|
22784
22815
|
className: "rte-toolbar-group",
|
|
22785
|
-
children: /* @__PURE__ */ e(
|
|
22816
|
+
children: /* @__PURE__ */ e(K, {
|
|
22786
22817
|
title: "Insert Link",
|
|
22787
22818
|
children: /* @__PURE__ */ r("button", {
|
|
22788
22819
|
type: "button",
|
|
@@ -22794,9 +22825,9 @@ ${s.textContent ?? ""}
|
|
|
22794
22825
|
})
|
|
22795
22826
|
})
|
|
22796
22827
|
}),
|
|
22797
|
-
t && /* @__PURE__ */ r(
|
|
22828
|
+
t && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }), /* @__PURE__ */ r("div", {
|
|
22798
22829
|
className: "rte-toolbar-group",
|
|
22799
|
-
children: [Kc.map((h) => /* @__PURE__ */ e(
|
|
22830
|
+
children: [Kc.map((h) => /* @__PURE__ */ e(K, {
|
|
22800
22831
|
title: h.title,
|
|
22801
22832
|
children: /* @__PURE__ */ e("button", {
|
|
22802
22833
|
type: "button",
|
|
@@ -22806,7 +22837,7 @@ ${s.textContent ?? ""}
|
|
|
22806
22837
|
},
|
|
22807
22838
|
children: h.label
|
|
22808
22839
|
})
|
|
22809
|
-
}, h.command + (h.value ?? ""))), /* @__PURE__ */ e(
|
|
22840
|
+
}, h.command + (h.value ?? ""))), /* @__PURE__ */ e(K, {
|
|
22810
22841
|
title: "Insert Table",
|
|
22811
22842
|
children: /* @__PURE__ */ e("button", {
|
|
22812
22843
|
type: "button",
|
|
@@ -22822,38 +22853,38 @@ ${s.textContent ?? ""}
|
|
|
22822
22853
|
}), Ya = ({ advanced: t = !1, error: c, format: l = "html", id: a, label: s, onBlur: o, onChange: i, placeholder: n, required: d = !1, value: h }) => {
|
|
22823
22854
|
const m = Y(null), p = Y(!1), g = Y(null), [w, v] = z(/* @__PURE__ */ new Set());
|
|
22824
22855
|
U(() => {
|
|
22825
|
-
const
|
|
22826
|
-
if (!
|
|
22827
|
-
const
|
|
22828
|
-
|
|
22856
|
+
const Q = m.current;
|
|
22857
|
+
if (!Q || p.current) return;
|
|
22858
|
+
const r1 = h ?? "";
|
|
22859
|
+
Q.innerHTML !== r1 && (Q.innerHTML = r1);
|
|
22829
22860
|
}, [h]);
|
|
22830
22861
|
const u = j(() => {
|
|
22831
|
-
const
|
|
22832
|
-
if (!
|
|
22862
|
+
const Q = m.current;
|
|
22863
|
+
if (!Q || !i) return;
|
|
22833
22864
|
p.current = !0;
|
|
22834
|
-
const
|
|
22835
|
-
i(l === "markdown" ? qc(
|
|
22865
|
+
const r1 = Q.innerHTML.replace(/ /g, " ");
|
|
22866
|
+
i(l === "markdown" ? qc(r1) : r1), setTimeout(() => {
|
|
22836
22867
|
p.current = !1;
|
|
22837
22868
|
}, 0);
|
|
22838
22869
|
}, [l, i]), { snapshotForUndo: f, undo: C, redo: x } = el(m, p, u), { showLinkPrompt: b, linkUrl: M, setLinkUrl: _, linkText: N, setLinkText: L, editingAnchorRef: y, openLinkPrompt: H, confirmLink: S, cancelLink: k } = tl({
|
|
22839
22870
|
editorRef: m,
|
|
22840
22871
|
snapshotForUndo: f,
|
|
22841
22872
|
emitChange: u
|
|
22842
|
-
}), { activeTable: A, tableToolbarPos: D, showTableToolbar: P, hideTableToolbar: O, addRowAbove:
|
|
22873
|
+
}), { activeTable: A, tableToolbarPos: D, showTableToolbar: P, hideTableToolbar: O, addRowAbove: s1, addRowBelow: V, removeRow: X, addColumnLeft: i1, addColumnRight: I, removeColumn: $, deleteTable: p1 } = rl({
|
|
22843
22874
|
editorRef: m,
|
|
22844
22875
|
snapshotForUndo: f,
|
|
22845
22876
|
emitChange: u
|
|
22846
|
-
}),
|
|
22847
|
-
const
|
|
22877
|
+
}), h1 = j(() => {
|
|
22878
|
+
const Q = [
|
|
22848
22879
|
"bold",
|
|
22849
22880
|
"italic",
|
|
22850
22881
|
"underline",
|
|
22851
22882
|
"insertUnorderedList",
|
|
22852
22883
|
"insertOrderedList"
|
|
22853
|
-
],
|
|
22854
|
-
|
|
22884
|
+
], r1 = /* @__PURE__ */ new Set();
|
|
22885
|
+
Q.forEach((Z) => {
|
|
22855
22886
|
try {
|
|
22856
|
-
document.queryCommandState(Z) &&
|
|
22887
|
+
document.queryCommandState(Z) && r1.add(Z);
|
|
22857
22888
|
} catch {
|
|
22858
22889
|
}
|
|
22859
22890
|
});
|
|
@@ -22862,83 +22893,83 @@ ${s.textContent ?? ""}
|
|
|
22862
22893
|
let Z = B.getRangeAt(0).commonAncestorContainer;
|
|
22863
22894
|
for (; Z && Z !== m.current; ) {
|
|
22864
22895
|
if (Z.nodeType === Node.ELEMENT_NODE) {
|
|
22865
|
-
const
|
|
22866
|
-
if (/^h[1-6]$/.test(
|
|
22867
|
-
|
|
22896
|
+
const J = Z.tagName.toLowerCase();
|
|
22897
|
+
if (/^h[1-6]$/.test(J)) {
|
|
22898
|
+
r1.add(J);
|
|
22868
22899
|
break;
|
|
22869
22900
|
}
|
|
22870
|
-
|
|
22901
|
+
J === "pre" && r1.add("pre");
|
|
22871
22902
|
}
|
|
22872
22903
|
Z = Z.parentNode;
|
|
22873
22904
|
}
|
|
22874
22905
|
}
|
|
22875
|
-
v(
|
|
22876
|
-
}, []), W = j((
|
|
22877
|
-
m.current?.focus(), document.execCommand(
|
|
22878
|
-
}, [u,
|
|
22879
|
-
const
|
|
22880
|
-
W("formatBlock", w.has(
|
|
22906
|
+
v(r1);
|
|
22907
|
+
}, []), W = j((Q, r1) => {
|
|
22908
|
+
m.current?.focus(), document.execCommand(Q, !1, r1), h1(), u();
|
|
22909
|
+
}, [u, h1]), o1 = j((Q) => {
|
|
22910
|
+
const r1 = `h${Q}`;
|
|
22911
|
+
W("formatBlock", w.has(r1) ? "p" : r1);
|
|
22881
22912
|
}, [w, W]), v1 = j(() => {
|
|
22882
22913
|
f();
|
|
22883
|
-
const
|
|
22884
|
-
if (!
|
|
22885
|
-
|
|
22886
|
-
const
|
|
22887
|
-
if (!
|
|
22888
|
-
const B =
|
|
22914
|
+
const Q = m.current;
|
|
22915
|
+
if (!Q) return;
|
|
22916
|
+
Q.focus();
|
|
22917
|
+
const r1 = window.getSelection();
|
|
22918
|
+
if (!r1 || r1.rangeCount === 0) return;
|
|
22919
|
+
const B = r1.getRangeAt(0), Z = document.createElement("li");
|
|
22889
22920
|
Z.setAttribute("data-task", "true");
|
|
22890
|
-
const
|
|
22891
|
-
|
|
22892
|
-
const
|
|
22893
|
-
|
|
22921
|
+
const J = document.createElement("input");
|
|
22922
|
+
J.type = "checkbox", J.style.marginRight = "6px";
|
|
22923
|
+
const n1 = document.createElement("span");
|
|
22924
|
+
n1.textContent = "", Z.appendChild(J), Z.appendChild(n1);
|
|
22894
22925
|
const b1 = document.createElement("ul");
|
|
22895
22926
|
b1.className = "rte-task-list", b1.appendChild(Z), B.deleteContents(), B.insertNode(b1);
|
|
22896
22927
|
const f1 = document.createRange();
|
|
22897
|
-
f1.setStart(
|
|
22928
|
+
f1.setStart(n1, 1), f1.collapse(!0), r1.removeAllRanges(), r1.addRange(f1), u();
|
|
22898
22929
|
}, [f, u]), y1 = j(() => {
|
|
22899
22930
|
W("insertHTML", Qc);
|
|
22900
|
-
}, [W]), k1 = j((
|
|
22901
|
-
const
|
|
22931
|
+
}, [W]), k1 = j((Q) => {
|
|
22932
|
+
const r1 = Q.target, B = r1.closest("a");
|
|
22902
22933
|
if (B) {
|
|
22903
|
-
|
|
22934
|
+
Q.preventDefault(), H(B), h1();
|
|
22904
22935
|
return;
|
|
22905
22936
|
}
|
|
22906
|
-
const Z =
|
|
22907
|
-
Z ? P(Z) : O(),
|
|
22937
|
+
const Z = r1.closest("table");
|
|
22938
|
+
Z ? P(Z) : O(), h1();
|
|
22908
22939
|
}, [
|
|
22909
22940
|
H,
|
|
22910
|
-
|
|
22941
|
+
h1,
|
|
22911
22942
|
P,
|
|
22912
22943
|
O
|
|
22913
|
-
]), g1 = j((
|
|
22914
|
-
if ((
|
|
22915
|
-
|
|
22944
|
+
]), g1 = j((Q) => {
|
|
22945
|
+
if ((Q.ctrlKey || Q.metaKey) && Q.key === "z") {
|
|
22946
|
+
Q.preventDefault(), Q.shiftKey ? x() : C();
|
|
22916
22947
|
return;
|
|
22917
22948
|
}
|
|
22918
|
-
const
|
|
22949
|
+
const r1 = Q.key.length === 1 && !Q.ctrlKey && !Q.metaKey, B = [
|
|
22919
22950
|
"Enter",
|
|
22920
22951
|
"Backspace",
|
|
22921
22952
|
"Delete",
|
|
22922
22953
|
" "
|
|
22923
|
-
].includes(
|
|
22924
|
-
if ((
|
|
22954
|
+
].includes(Q.key);
|
|
22955
|
+
if ((r1 || B) && f(), Q.key === "Enter" && !Q.shiftKey) {
|
|
22925
22956
|
const Z = window.getSelection();
|
|
22926
22957
|
if (Z && Z.rangeCount > 0) {
|
|
22927
|
-
let
|
|
22928
|
-
for (;
|
|
22929
|
-
if (
|
|
22930
|
-
|
|
22931
|
-
const
|
|
22932
|
-
|
|
22958
|
+
let J = Z.getRangeAt(0).commonAncestorContainer;
|
|
22959
|
+
for (; J && J !== m.current; ) {
|
|
22960
|
+
if (J.classList?.contains("rte-task-list")) {
|
|
22961
|
+
Q.preventDefault();
|
|
22962
|
+
const n1 = document.createElement("li");
|
|
22963
|
+
n1.setAttribute("data-task", "true");
|
|
22933
22964
|
const b1 = document.createElement("input");
|
|
22934
22965
|
b1.type = "checkbox", b1.style.marginRight = "6px";
|
|
22935
22966
|
const f1 = document.createElement("span");
|
|
22936
|
-
f1.textContent = "",
|
|
22967
|
+
f1.textContent = "", n1.appendChild(b1), n1.appendChild(f1), J.appendChild(n1);
|
|
22937
22968
|
const B1 = document.createRange();
|
|
22938
22969
|
B1.setStart(f1, 1), B1.collapse(!0), Z.removeAllRanges(), Z.addRange(B1);
|
|
22939
22970
|
return;
|
|
22940
22971
|
}
|
|
22941
|
-
|
|
22972
|
+
J = J.parentNode;
|
|
22942
22973
|
}
|
|
22943
22974
|
}
|
|
22944
22975
|
}
|
|
@@ -22964,9 +22995,9 @@ ${s.textContent ?? ""}
|
|
|
22964
22995
|
children: [
|
|
22965
22996
|
/* @__PURE__ */ e(al, {
|
|
22966
22997
|
advanced: t,
|
|
22967
|
-
isActive: (
|
|
22998
|
+
isActive: (Q) => w.has(Q),
|
|
22968
22999
|
exec: W,
|
|
22969
|
-
applyHeading:
|
|
23000
|
+
applyHeading: o1,
|
|
22970
23001
|
insertTaskList: v1,
|
|
22971
23002
|
openLinkPrompt: () => H(),
|
|
22972
23003
|
insertTable: y1,
|
|
@@ -22985,10 +23016,10 @@ ${s.textContent ?? ""}
|
|
|
22985
23016
|
A && D && /* @__PURE__ */ e(ll, {
|
|
22986
23017
|
pos: D,
|
|
22987
23018
|
toolbarRef: g,
|
|
22988
|
-
addRowAbove:
|
|
23019
|
+
addRowAbove: s1,
|
|
22989
23020
|
addRowBelow: V,
|
|
22990
23021
|
removeRow: X,
|
|
22991
|
-
addColumnLeft:
|
|
23022
|
+
addColumnLeft: i1,
|
|
22992
23023
|
addColumnRight: I,
|
|
22993
23024
|
removeColumn: $,
|
|
22994
23025
|
deleteTable: p1
|
|
@@ -23001,8 +23032,8 @@ ${s.textContent ?? ""}
|
|
|
23001
23032
|
suppressContentEditableWarning: !0,
|
|
23002
23033
|
"data-placeholder": n,
|
|
23003
23034
|
onInput: u,
|
|
23004
|
-
onKeyUp:
|
|
23005
|
-
onMouseUp:
|
|
23035
|
+
onKeyUp: h1,
|
|
23036
|
+
onMouseUp: h1,
|
|
23006
23037
|
onClick: k1,
|
|
23007
23038
|
onKeyDown: g1,
|
|
23008
23039
|
onBlur: o
|
|
@@ -23034,13 +23065,15 @@ ${s.textContent ?? ""}
|
|
|
23034
23065
|
behavior: "smooth"
|
|
23035
23066
|
});
|
|
23036
23067
|
}, [t]);
|
|
23037
|
-
return a ? /* @__PURE__ */ e(
|
|
23038
|
-
className: `scroll-to-top${l ? ` ${l}` : ""}`,
|
|
23039
|
-
onClick: o,
|
|
23068
|
+
return a ? /* @__PURE__ */ e(K, {
|
|
23040
23069
|
title: "Scroll to top",
|
|
23041
|
-
children: /* @__PURE__ */ e("
|
|
23042
|
-
className:
|
|
23043
|
-
|
|
23070
|
+
children: /* @__PURE__ */ e("button", {
|
|
23071
|
+
className: `scroll-to-top${l ? ` ${l}` : ""}`,
|
|
23072
|
+
onClick: o,
|
|
23073
|
+
children: /* @__PURE__ */ e("span", {
|
|
23074
|
+
className: "scroll-to-top__icon",
|
|
23075
|
+
children: "▲"
|
|
23076
|
+
})
|
|
23044
23077
|
})
|
|
23045
23078
|
}) : null;
|
|
23046
23079
|
}, Z2 = w0(null), G2 = () => f0(Z2), Ka = () => {
|
|
@@ -23105,14 +23138,16 @@ ${s.textContent ?? ""}
|
|
|
23105
23138
|
className: "sidebar__link-label",
|
|
23106
23139
|
children: y.label
|
|
23107
23140
|
}),
|
|
23108
|
-
y.count !== void 0 && /* @__PURE__ */ e(
|
|
23109
|
-
className: "sidebar__link-count",
|
|
23141
|
+
y.count !== void 0 && /* @__PURE__ */ e(K, {
|
|
23110
23142
|
title: y.countLabel,
|
|
23111
|
-
children:
|
|
23143
|
+
children: /* @__PURE__ */ e("span", {
|
|
23144
|
+
className: "sidebar__link-count",
|
|
23145
|
+
children: y.count
|
|
23146
|
+
})
|
|
23112
23147
|
})
|
|
23113
23148
|
]
|
|
23114
23149
|
}, y.id);
|
|
23115
|
-
return /* @__PURE__ */ r(
|
|
23150
|
+
return /* @__PURE__ */ r(l1, { children: [d && u && f && /* @__PURE__ */ e("div", {
|
|
23116
23151
|
className: M,
|
|
23117
23152
|
onClick: C
|
|
23118
23153
|
}), /* @__PURE__ */ r("aside", {
|
|
@@ -23256,7 +23291,7 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23256
23291
|
return o > 1 ? /* @__PURE__ */ e("div", {
|
|
23257
23292
|
className: "skeleton-group",
|
|
23258
23293
|
children: m
|
|
23259
|
-
}) : /* @__PURE__ */ e(
|
|
23294
|
+
}) : /* @__PURE__ */ e(l1, { children: m });
|
|
23260
23295
|
}, ol = (t) => !Number.isFinite(t) || t >= 1 ? 0 : String(t).split(".")[1]?.length ?? 0, ri = ({ disabled: t = !1, largeValueState: c = "info", min: l = 0, max: a = 100, step: s = 1, value: o, onChange: i, showValues: n = !0, showValueAtTheRight: d = !1, valueSize: h, thin: m = !1, vertical: p = !1 }) => {
|
|
23261
23296
|
const g = (f) => {
|
|
23262
23297
|
i(parseFloat(f.target.value));
|
|
@@ -23331,11 +23366,13 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23331
23366
|
children: [s && /* @__PURE__ */ e("h2", {
|
|
23332
23367
|
className: "split-panel__right-title",
|
|
23333
23368
|
children: s
|
|
23334
|
-
}), /* @__PURE__ */ e(
|
|
23335
|
-
className: "split-panel__close",
|
|
23336
|
-
onClick: a,
|
|
23369
|
+
}), /* @__PURE__ */ e(K, {
|
|
23337
23370
|
title: "Close panel",
|
|
23338
|
-
children: "
|
|
23371
|
+
children: /* @__PURE__ */ e("button", {
|
|
23372
|
+
className: "split-panel__close",
|
|
23373
|
+
onClick: a,
|
|
23374
|
+
children: "✕"
|
|
23375
|
+
})
|
|
23339
23376
|
})]
|
|
23340
23377
|
}), /* @__PURE__ */ e("div", {
|
|
23341
23378
|
className: "split-panel__right-content",
|
|
@@ -23369,18 +23406,20 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23369
23406
|
const u = m[v];
|
|
23370
23407
|
if (u <= 0) return null;
|
|
23371
23408
|
const f = w.state || "default", C = w.pattern || "solid", x = sl(w, u, n);
|
|
23372
|
-
return /* @__PURE__ */ e(
|
|
23373
|
-
className: [
|
|
23374
|
-
"stacked-bar__segment",
|
|
23375
|
-
`stacked-bar__segment--${f}`,
|
|
23376
|
-
`stacked-bar__segment--${C}`,
|
|
23377
|
-
t && C !== "solid" ? "stacked-bar__segment--animated" : ""
|
|
23378
|
-
].filter(Boolean).join(" "),
|
|
23379
|
-
style: p ? { height: `${u}%` } : { width: `${u}%` },
|
|
23409
|
+
return /* @__PURE__ */ e(K, {
|
|
23380
23410
|
title: x,
|
|
23381
|
-
children:
|
|
23382
|
-
className:
|
|
23383
|
-
|
|
23411
|
+
children: /* @__PURE__ */ e("div", {
|
|
23412
|
+
className: [
|
|
23413
|
+
"stacked-bar__segment",
|
|
23414
|
+
`stacked-bar__segment--${f}`,
|
|
23415
|
+
`stacked-bar__segment--${C}`,
|
|
23416
|
+
t && C !== "solid" ? "stacked-bar__segment--animated" : ""
|
|
23417
|
+
].filter(Boolean).join(" "),
|
|
23418
|
+
style: p ? { height: `${u}%` } : { width: `${u}%` },
|
|
23419
|
+
children: i && /* @__PURE__ */ e("span", {
|
|
23420
|
+
className: "stacked-bar__segment-label",
|
|
23421
|
+
children: x
|
|
23422
|
+
})
|
|
23384
23423
|
})
|
|
23385
23424
|
}, `stacked-bar-segment-${v}`);
|
|
23386
23425
|
})
|
|
@@ -23451,7 +23490,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23451
23490
|
}, L = m1(() => /* @__PURE__ */ r("div", {
|
|
23452
23491
|
className: "list-suggestions-list",
|
|
23453
23492
|
children: [
|
|
23454
|
-
/* @__PURE__ */ e(
|
|
23493
|
+
/* @__PURE__ */ e(K, {
|
|
23455
23494
|
title: a,
|
|
23456
23495
|
children: /* @__PURE__ */ e("legend", { children: l || "Suggestions" })
|
|
23457
23496
|
}),
|
|
@@ -23651,8 +23690,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23651
23690
|
recommendedApps: [
|
|
23652
23691
|
"CookBook",
|
|
23653
23692
|
"Impulse",
|
|
23654
|
-
"Seeds"
|
|
23655
|
-
"Books Crawler"
|
|
23693
|
+
"Seeds"
|
|
23656
23694
|
]
|
|
23657
23695
|
},
|
|
23658
23696
|
{
|
|
@@ -23676,8 +23714,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23676
23714
|
"CookBook",
|
|
23677
23715
|
"HUB",
|
|
23678
23716
|
"Impulse",
|
|
23679
|
-
"Seeds"
|
|
23680
|
-
"Books Crawler"
|
|
23717
|
+
"Seeds"
|
|
23681
23718
|
],
|
|
23682
23719
|
fontUrl: "https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap",
|
|
23683
23720
|
fontUrlDisplay: "https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600;700&display=swap"
|
|
@@ -24011,7 +24048,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24011
24048
|
{
|
|
24012
24049
|
value: "command-slate",
|
|
24013
24050
|
label: "Command Slate",
|
|
24014
|
-
recommendedApps: ["
|
|
24051
|
+
recommendedApps: ["Nexus"],
|
|
24015
24052
|
fontUrl: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",
|
|
24016
24053
|
fontUrlDisplay: "https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap"
|
|
24017
24054
|
},
|
|
@@ -24125,11 +24162,11 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24125
24162
|
let V = o0;
|
|
24126
24163
|
if (l && l.length > 0) {
|
|
24127
24164
|
const X = new Set(l);
|
|
24128
|
-
V = V.filter((
|
|
24165
|
+
V = V.filter((i1) => X.has(i1.value));
|
|
24129
24166
|
}
|
|
24130
|
-
if (x && (V = V.filter((X) => p2.has(X.value))), M && S && (V = V.filter((X) => (X.recommendedApps ?? []).some((
|
|
24167
|
+
if (x && (V = V.filter((X) => p2.has(X.value))), M && S && (V = V.filter((X) => (X.recommendedApps ?? []).some((i1) => i1.toLowerCase() === S))), N !== "all" && (V = V.filter((X) => dl(X.value) === N)), f.trim()) {
|
|
24131
24168
|
const X = f.toLowerCase().trim();
|
|
24132
|
-
V = V.filter((
|
|
24169
|
+
V = V.filter((i1) => i1.label.toLowerCase().includes(X) || (i1.recommendedApps ?? []).some((I) => I.toLowerCase().includes(X)));
|
|
24133
24170
|
}
|
|
24134
24171
|
return V;
|
|
24135
24172
|
}, [
|
|
@@ -24167,10 +24204,10 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24167
24204
|
components: h.components
|
|
24168
24205
|
});
|
|
24169
24206
|
}, P = (V, X) => {
|
|
24170
|
-
const
|
|
24207
|
+
const i1 = X ? [...h.components, V] : h.components.filter((I) => I !== V);
|
|
24171
24208
|
p({
|
|
24172
24209
|
effect: h.effect,
|
|
24173
|
-
components:
|
|
24210
|
+
components: i1
|
|
24174
24211
|
});
|
|
24175
24212
|
}, O = () => {
|
|
24176
24213
|
w(), c();
|
|
@@ -24286,7 +24323,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24286
24323
|
}, V.value))
|
|
24287
24324
|
})
|
|
24288
24325
|
]
|
|
24289
|
-
}), s && /* @__PURE__ */ r(
|
|
24326
|
+
}), s && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ r("div", {
|
|
24290
24327
|
className: "theme-settings__section",
|
|
24291
24328
|
children: [/* @__PURE__ */ e("label", {
|
|
24292
24329
|
htmlFor: "effect-selector",
|
|
@@ -24516,13 +24553,15 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24516
24553
|
onClick: i.onClick,
|
|
24517
24554
|
children: i.label
|
|
24518
24555
|
}),
|
|
24519
|
-
s && /* @__PURE__ */ e(
|
|
24520
|
-
className: "toast__close",
|
|
24521
|
-
onClick: l,
|
|
24556
|
+
s && /* @__PURE__ */ e(K, {
|
|
24522
24557
|
title: "Close",
|
|
24523
|
-
children: /* @__PURE__ */ e(
|
|
24524
|
-
|
|
24525
|
-
|
|
24558
|
+
children: /* @__PURE__ */ e("button", {
|
|
24559
|
+
className: "toast__close",
|
|
24560
|
+
onClick: l,
|
|
24561
|
+
children: /* @__PURE__ */ e(G, {
|
|
24562
|
+
name: "clear",
|
|
24563
|
+
size: "sm"
|
|
24564
|
+
})
|
|
24526
24565
|
})
|
|
24527
24566
|
})
|
|
24528
24567
|
]
|
|
@@ -24546,7 +24585,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24546
24585
|
children: n.label
|
|
24547
24586
|
})]
|
|
24548
24587
|
}, n.key);
|
|
24549
|
-
return n.description ? /* @__PURE__ */ e(
|
|
24588
|
+
return n.description ? /* @__PURE__ */ e(K, {
|
|
24550
24589
|
title: n.description,
|
|
24551
24590
|
children: d
|
|
24552
24591
|
}, n.key) : d;
|
|
@@ -25162,7 +25201,7 @@ function Ci({ redirectPath: t = "/" }) {
|
|
|
25162
25201
|
w(!1);
|
|
25163
25202
|
}
|
|
25164
25203
|
};
|
|
25165
|
-
return /* @__PURE__ */ r(
|
|
25204
|
+
return /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", {
|
|
25166
25205
|
className: "LoginPage",
|
|
25167
25206
|
children: /* @__PURE__ */ r("div", {
|
|
25168
25207
|
className: "LoginPage__card",
|
|
@@ -25432,7 +25471,7 @@ var _i = (t, c, l) => {
|
|
|
25432
25471
|
} catch {
|
|
25433
25472
|
return t.trim();
|
|
25434
25473
|
}
|
|
25435
|
-
}, _l = "1.0.
|
|
25474
|
+
}, _l = "1.0.22", Bi = 244, Ll = "1079b88", zl = "2026-07-15T03:58:24.064Z", Ri = "244", Vl = (t) => {
|
|
25436
25475
|
const c = document.getElementById("mb-version-toast");
|
|
25437
25476
|
if (c) {
|
|
25438
25477
|
c.remove();
|
|
@@ -25456,7 +25495,7 @@ var _i = (t, c, l) => {
|
|
|
25456
25495
|
const c = {
|
|
25457
25496
|
...t,
|
|
25458
25497
|
lib: _l,
|
|
25459
|
-
libBuildNumber:
|
|
25498
|
+
libBuildNumber: 244,
|
|
25460
25499
|
libCommit: Ll,
|
|
25461
25500
|
libBuildDate: zl
|
|
25462
25501
|
};
|
|
@@ -25647,7 +25686,7 @@ export {
|
|
|
25647
25686
|
mi as ToggleButtons,
|
|
25648
25687
|
m2 as ToggleSwitch,
|
|
25649
25688
|
pi as Toolbar,
|
|
25650
|
-
|
|
25689
|
+
K as Tooltip,
|
|
25651
25690
|
vi as TourHud,
|
|
25652
25691
|
gi as Tree,
|
|
25653
25692
|
ui as WHtR,
|