@memobit/libs 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.esm.js +644 -605
- 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",
|
|
@@ -9973,7 +9973,7 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
9973
9973
|
storm: Pt,
|
|
9974
9974
|
uranus: Wt,
|
|
9975
9975
|
venus: Ut
|
|
9976
|
-
},
|
|
9976
|
+
}, G = ({ className: t = "", fade: c, fadeOnHover: l, name: a, pulse: s, pulseOnHover: o, size: i, spin: n, spinOnHover: d, variant: h }) => /* @__PURE__ */ e("span", {
|
|
9977
9977
|
className: [
|
|
9978
9978
|
"icon",
|
|
9979
9979
|
i ? `icon--${i}` : "",
|
|
@@ -10019,7 +10019,7 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
10019
10019
|
disabled: o,
|
|
10020
10020
|
children: [/* @__PURE__ */ r("span", {
|
|
10021
10021
|
className: "accordion-item__title",
|
|
10022
|
-
children: [l && /* @__PURE__ */ e(
|
|
10022
|
+
children: [l && /* @__PURE__ */ e(G, { name: l }), /* @__PURE__ */ e("span", {
|
|
10023
10023
|
className: "accordion-item__title-text",
|
|
10024
10024
|
children: c
|
|
10025
10025
|
})]
|
|
@@ -10088,8 +10088,8 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
10088
10088
|
style: p,
|
|
10089
10089
|
title: w,
|
|
10090
10090
|
type: v,
|
|
10091
|
-
children: n ? /* @__PURE__ */ r(
|
|
10092
|
-
o !== void 0 && (typeof o == "string" ? /* @__PURE__ */ e(
|
|
10091
|
+
children: n ? /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", { className: "button__spinner" }), /* @__PURE__ */ e("span", { children: c || "Loading..." })] }) : /* @__PURE__ */ r(l1, { children: [
|
|
10092
|
+
o !== void 0 && (typeof o == "string" ? /* @__PURE__ */ e(G, {
|
|
10093
10093
|
size: "lg",
|
|
10094
10094
|
name: o,
|
|
10095
10095
|
variant: i
|
|
@@ -10124,16 +10124,16 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
|
|
|
10124
10124
|
/* @__PURE__ */ r("div", {
|
|
10125
10125
|
className: "modal__header",
|
|
10126
10126
|
children: [/* @__PURE__ */ r("h2", { children: [
|
|
10127
|
-
p ? /* @__PURE__ */ e(
|
|
10127
|
+
p ? /* @__PURE__ */ e(G, { name: p }) : null,
|
|
10128
10128
|
" ",
|
|
10129
10129
|
m
|
|
10130
10130
|
] }), /* @__PURE__ */ e(F, {
|
|
10131
10131
|
className: "modal__close",
|
|
10132
|
+
icon: "clear",
|
|
10132
10133
|
onClick: s,
|
|
10133
10134
|
size: "medium",
|
|
10134
10135
|
title: "Close modal",
|
|
10135
|
-
variant: "ghost"
|
|
10136
|
-
children: "×"
|
|
10136
|
+
variant: "ghost"
|
|
10137
10137
|
})]
|
|
10138
10138
|
}),
|
|
10139
10139
|
t != null && /* @__PURE__ */ e("div", {
|
|
@@ -10218,7 +10218,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
|
|
|
10218
10218
|
className: n,
|
|
10219
10219
|
style: d
|
|
10220
10220
|
});
|
|
10221
|
-
}, M2 = ({ emoji: t, icon: c, svg: l, appName: a, heading: s, onClick: o, className: i = "", showSeparator: n = !0 }) => /* @__PURE__ */ r(
|
|
10221
|
+
}, 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
10222
|
className: [
|
|
10223
10223
|
"app-header",
|
|
10224
10224
|
o ? "app-header--clickable" : "",
|
|
@@ -10236,7 +10236,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
|
|
|
10236
10236
|
}),
|
|
10237
10237
|
c && /* @__PURE__ */ e("span", {
|
|
10238
10238
|
className: "app-header__icon",
|
|
10239
|
-
children: /* @__PURE__ */ e(
|
|
10239
|
+
children: /* @__PURE__ */ e(G, { name: c })
|
|
10240
10240
|
}),
|
|
10241
10241
|
/* @__PURE__ */ r("div", {
|
|
10242
10242
|
className: "app-header__copy",
|
|
@@ -10337,6 +10337,82 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10337
10337
|
children: "×"
|
|
10338
10338
|
})]
|
|
10339
10339
|
});
|
|
10340
|
+
}, K = ({ title: t, position: c = "top", delay: l = 200, children: a, disabled: s = !1, className: o = "", maxWidth: i, maxHeight: n }) => {
|
|
10341
|
+
const [d, h] = z(!1), [m, p] = z({
|
|
10342
|
+
top: 0,
|
|
10343
|
+
left: 0
|
|
10344
|
+
}), g = Y(null), w = Y(null), v = Y(null), u = Y(null), f = Y(!1), C = n !== void 0, x = C ? 150 : 0, b = () => {
|
|
10345
|
+
if (!v.current || !u.current) return;
|
|
10346
|
+
const H = v.current.firstElementChild, S = H && H.getBoundingClientRect().width > 0 ? H.getBoundingClientRect() : v.current.getBoundingClientRect(), k = u.current.getBoundingClientRect(), A = 8;
|
|
10347
|
+
let D = 0, P = 0;
|
|
10348
|
+
switch (c) {
|
|
10349
|
+
case "top":
|
|
10350
|
+
D = S.top - k.height - A, P = S.left + S.width / 2 - k.width / 2;
|
|
10351
|
+
break;
|
|
10352
|
+
case "bottom":
|
|
10353
|
+
D = S.bottom + A, P = S.left + S.width / 2 - k.width / 2;
|
|
10354
|
+
break;
|
|
10355
|
+
case "left":
|
|
10356
|
+
D = S.top + S.height / 2 - k.height / 2, P = S.left - k.width - A;
|
|
10357
|
+
break;
|
|
10358
|
+
case "right":
|
|
10359
|
+
D = S.top + S.height / 2 - k.height / 2, P = S.right + A;
|
|
10360
|
+
break;
|
|
10361
|
+
}
|
|
10362
|
+
const O = 8;
|
|
10363
|
+
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({
|
|
10364
|
+
top: D,
|
|
10365
|
+
left: P
|
|
10366
|
+
});
|
|
10367
|
+
}, M = () => {
|
|
10368
|
+
s || f.current || (w.current && (clearTimeout(w.current), w.current = null), g.current = setTimeout(() => {
|
|
10369
|
+
h(!0);
|
|
10370
|
+
}, l));
|
|
10371
|
+
}, _ = () => {
|
|
10372
|
+
f.current || (g.current && clearTimeout(g.current), x > 0 ? w.current = setTimeout(() => h(!1), x) : h(!1));
|
|
10373
|
+
}, N = (H) => {
|
|
10374
|
+
H.pointerType !== "touch" && H.pointerType !== "pen" || s || (f.current = !0, g.current && (clearTimeout(g.current), g.current = null), H.stopPropagation(), h((S) => !S));
|
|
10375
|
+
};
|
|
10376
|
+
U(() => (d && (b(), window.addEventListener("scroll", b, !0), window.addEventListener("resize", b)), () => {
|
|
10377
|
+
window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
|
|
10378
|
+
}), [d]), U(() => {
|
|
10379
|
+
if (!d) return;
|
|
10380
|
+
const H = (S) => {
|
|
10381
|
+
v.current?.contains(S.target) || u.current?.contains(S.target) || h(!1);
|
|
10382
|
+
};
|
|
10383
|
+
return document.addEventListener("pointerdown", H), () => {
|
|
10384
|
+
document.removeEventListener("pointerdown", H), f.current = !1;
|
|
10385
|
+
};
|
|
10386
|
+
}, [d]), U(() => () => {
|
|
10387
|
+
g.current && clearTimeout(g.current), w.current && clearTimeout(w.current);
|
|
10388
|
+
}, []);
|
|
10389
|
+
const L = () => {
|
|
10390
|
+
C && w.current && (clearTimeout(w.current), w.current = null);
|
|
10391
|
+
}, y = () => {
|
|
10392
|
+
C && (w.current = setTimeout(() => h(!1), x));
|
|
10393
|
+
};
|
|
10394
|
+
return /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", {
|
|
10395
|
+
ref: v,
|
|
10396
|
+
className: "tooltip-trigger",
|
|
10397
|
+
onMouseEnter: M,
|
|
10398
|
+
onMouseLeave: _,
|
|
10399
|
+
onFocus: M,
|
|
10400
|
+
onBlur: _,
|
|
10401
|
+
onPointerDown: N,
|
|
10402
|
+
children: a
|
|
10403
|
+
}), d && t && q1(/* @__PURE__ */ r("div", {
|
|
10404
|
+
ref: u,
|
|
10405
|
+
className: `tooltip tooltip--${c} ${C ? "tooltip--scrollable" : ""} ${o}`,
|
|
10406
|
+
style: {
|
|
10407
|
+
top: `${m.top}px`,
|
|
10408
|
+
left: `${m.left}px`,
|
|
10409
|
+
...i !== void 0 && { maxWidth: typeof i == "number" ? `${i}px` : i },
|
|
10410
|
+
...n !== void 0 && { maxHeight: typeof n == "number" ? `${n}px` : n }
|
|
10411
|
+
},
|
|
10412
|
+
onMouseEnter: L,
|
|
10413
|
+
onMouseLeave: y,
|
|
10414
|
+
children: [t, /* @__PURE__ */ e("div", { className: `tooltip__arrow tooltip__arrow--${c}` })]
|
|
10415
|
+
}), document.body)] });
|
|
10340
10416
|
}, jl = ({ action: t, secondaryAction: c, className: l = "", description: a, dismissLabel: s = "Dismiss", onDismiss: o, showDismiss: i = !0, title: n, variant: d = "default" }) => {
|
|
10341
10417
|
const [h, m] = z(!1), p = t?.variant || (d === "default" ? "default" : d);
|
|
10342
10418
|
if (h) return null;
|
|
@@ -10370,14 +10446,16 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10370
10446
|
children: c.text
|
|
10371
10447
|
})]
|
|
10372
10448
|
})]
|
|
10373
|
-
}), i && /* @__PURE__ */ e(
|
|
10374
|
-
className: "banner__dismiss",
|
|
10375
|
-
type: "button",
|
|
10449
|
+
}), i && /* @__PURE__ */ e(K, {
|
|
10376
10450
|
title: s,
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
10380
|
-
|
|
10451
|
+
children: /* @__PURE__ */ e("button", {
|
|
10452
|
+
className: "banner__dismiss",
|
|
10453
|
+
type: "button",
|
|
10454
|
+
onClick: g,
|
|
10455
|
+
children: /* @__PURE__ */ e(G, {
|
|
10456
|
+
name: "clear",
|
|
10457
|
+
size: "sm"
|
|
10458
|
+
})
|
|
10381
10459
|
})
|
|
10382
10460
|
})]
|
|
10383
10461
|
});
|
|
@@ -10872,26 +10950,26 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10872
10950
|
return l === "multiple" && Array.isArray(t) ? t.some((Z) => U1(Z, B)) : !1;
|
|
10873
10951
|
}, D = (B) => {
|
|
10874
10952
|
if (l === "range" && t && "start" in t) {
|
|
10875
|
-
const { start: Z, end:
|
|
10876
|
-
return
|
|
10953
|
+
const { start: Z, end: J } = t, n1 = B.getTime();
|
|
10954
|
+
return n1 > Z.getTime() && n1 < J.getTime();
|
|
10877
10955
|
}
|
|
10878
10956
|
return !1;
|
|
10879
|
-
}, P = (B) => l === "range" && y ? B.getTime() > y.getTime() : !1, O = (B) => B.getMonth() === L.getMonth(),
|
|
10957
|
+
}, P = (B) => l === "range" && y ? B.getTime() > y.getTime() : !1, O = (B) => B.getMonth() === L.getMonth(), s1 = (B) => {
|
|
10880
10958
|
if (!k(B)) {
|
|
10881
10959
|
if (l === "single") c?.(B);
|
|
10882
10960
|
else if (l === "range") if (!y) v ? v(B) : (N(B), c?.(void 0));
|
|
10883
10961
|
else {
|
|
10884
|
-
const Z = A0(B, y) ? B : y,
|
|
10962
|
+
const Z = A0(B, y) ? B : y, J = A0(B, y) ? y : B;
|
|
10885
10963
|
c?.({
|
|
10886
10964
|
start: Z,
|
|
10887
|
-
end:
|
|
10965
|
+
end: J
|
|
10888
10966
|
}), v ? v(null) : N(null);
|
|
10889
10967
|
}
|
|
10890
10968
|
else if (l === "multiple") {
|
|
10891
|
-
const Z = Array.isArray(t) ? t : [],
|
|
10892
|
-
if (
|
|
10893
|
-
const
|
|
10894
|
-
c?.(
|
|
10969
|
+
const Z = Array.isArray(t) ? t : [], J = Z.findIndex((n1) => U1(n1, B));
|
|
10970
|
+
if (J >= 0) {
|
|
10971
|
+
const n1 = Z.filter((b1, f1) => f1 !== J);
|
|
10972
|
+
c?.(n1.length > 0 ? n1 : void 0);
|
|
10895
10973
|
} else c?.([...Z, B]);
|
|
10896
10974
|
}
|
|
10897
10975
|
}
|
|
@@ -10901,7 +10979,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10901
10979
|
}, X = () => {
|
|
10902
10980
|
const B = u0(L, 1);
|
|
10903
10981
|
p ? p(B) : f(B);
|
|
10904
|
-
},
|
|
10982
|
+
}, i1 = () => {
|
|
10905
10983
|
const B = /* @__PURE__ */ new Date(), Z = new Date(B.getFullYear(), B.getMonth(), 1);
|
|
10906
10984
|
p ? p(Z) : f(Z), x("days"), l === "single" && c?.(B);
|
|
10907
10985
|
}, I = () => {
|
|
@@ -10911,12 +10989,12 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10911
10989
|
}, p1 = (B) => {
|
|
10912
10990
|
const Z = new Date(L.getFullYear(), B, 1);
|
|
10913
10991
|
p ? p(Z) : f(Z), x("days");
|
|
10914
|
-
},
|
|
10992
|
+
}, h1 = (B) => {
|
|
10915
10993
|
const Z = new Date(B, L.getMonth(), 1);
|
|
10916
10994
|
p ? p(Z) : f(Z), x("months");
|
|
10917
10995
|
}, W = () => {
|
|
10918
10996
|
M(b - P1);
|
|
10919
|
-
},
|
|
10997
|
+
}, o1 = () => {
|
|
10920
10998
|
M(b + P1);
|
|
10921
10999
|
}, v1 = () => {
|
|
10922
11000
|
const B = new Date(L.getFullYear() - 1, L.getMonth(), 1);
|
|
@@ -10934,12 +11012,14 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10934
11012
|
}, $1 = () => C === "years" ? /* @__PURE__ */ r("div", {
|
|
10935
11013
|
className: "calendar__header",
|
|
10936
11014
|
children: [
|
|
10937
|
-
/* @__PURE__ */ e(
|
|
10938
|
-
type: "button",
|
|
10939
|
-
className: "calendar__nav-button",
|
|
10940
|
-
onClick: W,
|
|
11015
|
+
/* @__PURE__ */ e(K, {
|
|
10941
11016
|
title: "Previous years",
|
|
10942
|
-
children: "
|
|
11017
|
+
children: /* @__PURE__ */ e("button", {
|
|
11018
|
+
type: "button",
|
|
11019
|
+
className: "calendar__nav-button",
|
|
11020
|
+
onClick: W,
|
|
11021
|
+
children: "‹"
|
|
11022
|
+
})
|
|
10943
11023
|
}),
|
|
10944
11024
|
/* @__PURE__ */ r("div", {
|
|
10945
11025
|
className: "calendar__month-year",
|
|
@@ -10949,23 +11029,27 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10949
11029
|
b + P1 - 1
|
|
10950
11030
|
]
|
|
10951
11031
|
}),
|
|
10952
|
-
/* @__PURE__ */ e(
|
|
10953
|
-
type: "button",
|
|
10954
|
-
className: "calendar__nav-button",
|
|
10955
|
-
onClick: n1,
|
|
11032
|
+
/* @__PURE__ */ e(K, {
|
|
10956
11033
|
title: "Next years",
|
|
10957
|
-
children: "
|
|
11034
|
+
children: /* @__PURE__ */ e("button", {
|
|
11035
|
+
type: "button",
|
|
11036
|
+
className: "calendar__nav-button",
|
|
11037
|
+
onClick: o1,
|
|
11038
|
+
children: "›"
|
|
11039
|
+
})
|
|
10958
11040
|
})
|
|
10959
11041
|
]
|
|
10960
11042
|
}) : C === "months" ? /* @__PURE__ */ r("div", {
|
|
10961
11043
|
className: "calendar__header",
|
|
10962
11044
|
children: [
|
|
10963
|
-
/* @__PURE__ */ e(
|
|
10964
|
-
type: "button",
|
|
10965
|
-
className: "calendar__nav-button",
|
|
10966
|
-
onClick: v1,
|
|
11045
|
+
/* @__PURE__ */ e(K, {
|
|
10967
11046
|
title: "Previous year",
|
|
10968
|
-
children: "
|
|
11047
|
+
children: /* @__PURE__ */ e("button", {
|
|
11048
|
+
type: "button",
|
|
11049
|
+
className: "calendar__nav-button",
|
|
11050
|
+
onClick: v1,
|
|
11051
|
+
children: "‹"
|
|
11052
|
+
})
|
|
10969
11053
|
}),
|
|
10970
11054
|
/* @__PURE__ */ e("button", {
|
|
10971
11055
|
type: "button",
|
|
@@ -10973,30 +11057,34 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10973
11057
|
onClick: $,
|
|
10974
11058
|
children: L.getFullYear()
|
|
10975
11059
|
}),
|
|
10976
|
-
/* @__PURE__ */ e(
|
|
10977
|
-
type: "button",
|
|
10978
|
-
className: "calendar__nav-button",
|
|
10979
|
-
onClick: y1,
|
|
11060
|
+
/* @__PURE__ */ e(K, {
|
|
10980
11061
|
title: "Next year",
|
|
10981
|
-
children: "
|
|
11062
|
+
children: /* @__PURE__ */ e("button", {
|
|
11063
|
+
type: "button",
|
|
11064
|
+
className: "calendar__nav-button",
|
|
11065
|
+
onClick: y1,
|
|
11066
|
+
children: "›"
|
|
11067
|
+
})
|
|
10982
11068
|
})
|
|
10983
11069
|
]
|
|
10984
11070
|
}) : /* @__PURE__ */ r("div", {
|
|
10985
11071
|
className: "calendar__header",
|
|
10986
11072
|
children: [
|
|
10987
|
-
/* @__PURE__ */ e(
|
|
10988
|
-
type: "button",
|
|
10989
|
-
className: "calendar__nav-button",
|
|
10990
|
-
onClick: V,
|
|
11073
|
+
/* @__PURE__ */ e(K, {
|
|
10991
11074
|
title: "Previous month",
|
|
10992
|
-
children: "
|
|
11075
|
+
children: /* @__PURE__ */ e("button", {
|
|
11076
|
+
type: "button",
|
|
11077
|
+
className: "calendar__nav-button",
|
|
11078
|
+
onClick: V,
|
|
11079
|
+
children: "‹"
|
|
11080
|
+
})
|
|
10993
11081
|
}),
|
|
10994
11082
|
/* @__PURE__ */ e("div", {
|
|
10995
11083
|
className: "calendar__month-year",
|
|
10996
11084
|
children: d ? /* @__PURE__ */ e("span", {
|
|
10997
11085
|
className: "calendar__header-label",
|
|
10998
11086
|
children: $0[L.getMonth()]
|
|
10999
|
-
}) : /* @__PURE__ */ r(
|
|
11087
|
+
}) : /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("button", {
|
|
11000
11088
|
type: "button",
|
|
11001
11089
|
className: "calendar__header-button",
|
|
11002
11090
|
onClick: I,
|
|
@@ -11008,32 +11096,34 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11008
11096
|
children: L.getFullYear()
|
|
11009
11097
|
})] })
|
|
11010
11098
|
}),
|
|
11011
|
-
/* @__PURE__ */ e(
|
|
11012
|
-
type: "button",
|
|
11013
|
-
className: "calendar__nav-button",
|
|
11014
|
-
onClick: X,
|
|
11099
|
+
/* @__PURE__ */ e(K, {
|
|
11015
11100
|
title: "Next month",
|
|
11016
|
-
children: "
|
|
11101
|
+
children: /* @__PURE__ */ e("button", {
|
|
11102
|
+
type: "button",
|
|
11103
|
+
className: "calendar__nav-button",
|
|
11104
|
+
onClick: X,
|
|
11105
|
+
children: "›"
|
|
11106
|
+
})
|
|
11017
11107
|
})
|
|
11018
11108
|
]
|
|
11019
|
-
}),
|
|
11020
|
-
const B = k1(), Z = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
11109
|
+
}), Q = () => {
|
|
11110
|
+
const B = k1(), Z = (/* @__PURE__ */ new Date()).getFullYear(), J = L.getFullYear();
|
|
11021
11111
|
return /* @__PURE__ */ e("div", {
|
|
11022
11112
|
className: "calendar__years-grid",
|
|
11023
|
-
children: B.map((
|
|
11113
|
+
children: B.map((n1) => /* @__PURE__ */ e("button", {
|
|
11024
11114
|
type: "button",
|
|
11025
|
-
className: `calendar__year-item ${
|
|
11026
|
-
onClick: () =>
|
|
11027
|
-
children:
|
|
11028
|
-
},
|
|
11115
|
+
className: `calendar__year-item ${n1 === J ? "calendar__year-item--selected" : ""} ${n1 === Z ? "calendar__year-item--current" : ""}`,
|
|
11116
|
+
onClick: () => h1(n1),
|
|
11117
|
+
children: n1
|
|
11118
|
+
}, n1))
|
|
11029
11119
|
});
|
|
11030
|
-
},
|
|
11031
|
-
const B = (/* @__PURE__ */ new Date()).getMonth(), Z = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
11120
|
+
}, r1 = () => {
|
|
11121
|
+
const B = (/* @__PURE__ */ new Date()).getMonth(), Z = (/* @__PURE__ */ new Date()).getFullYear(), J = L.getMonth(), n1 = L.getFullYear();
|
|
11032
11122
|
return /* @__PURE__ */ e("div", {
|
|
11033
11123
|
className: "calendar__months-grid",
|
|
11034
11124
|
children: $0.map((b1, f1) => /* @__PURE__ */ e("button", {
|
|
11035
11125
|
type: "button",
|
|
11036
|
-
className: `calendar__month-item ${f1 ===
|
|
11126
|
+
className: `calendar__month-item ${f1 === J && n1 === L.getFullYear() ? "calendar__month-item--selected" : ""} ${f1 === B && Z === L.getFullYear() ? "calendar__month-item--current" : ""}`,
|
|
11037
11127
|
onClick: () => p1(f1),
|
|
11038
11128
|
children: b1.substring(0, 3)
|
|
11039
11129
|
}, b1))
|
|
@@ -11043,15 +11133,15 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11043
11133
|
className: `calendar ${h}`,
|
|
11044
11134
|
children: [
|
|
11045
11135
|
g && $1(),
|
|
11046
|
-
C === "years" &&
|
|
11047
|
-
C === "months" &&
|
|
11048
|
-
C === "days" && /* @__PURE__ */ r(
|
|
11136
|
+
C === "years" && Q(),
|
|
11137
|
+
C === "months" && r1(),
|
|
11138
|
+
C === "days" && /* @__PURE__ */ r(l1, { children: [
|
|
11049
11139
|
n && !d && /* @__PURE__ */ e("div", {
|
|
11050
11140
|
className: "calendar__today-section",
|
|
11051
11141
|
children: /* @__PURE__ */ e("button", {
|
|
11052
11142
|
type: "button",
|
|
11053
11143
|
className: "calendar__today-button",
|
|
11054
|
-
onClick:
|
|
11144
|
+
onClick: i1,
|
|
11055
11145
|
children: "Today"
|
|
11056
11146
|
})
|
|
11057
11147
|
}),
|
|
@@ -11066,14 +11156,14 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11066
11156
|
className: "calendar__days",
|
|
11067
11157
|
children: H.map((B, Z) => /* @__PURE__ */ e("div", {
|
|
11068
11158
|
className: "calendar__week",
|
|
11069
|
-
children: B.map((
|
|
11159
|
+
children: B.map((J, n1) => /* @__PURE__ */ e("button", {
|
|
11070
11160
|
type: "button",
|
|
11071
|
-
className: g1(
|
|
11072
|
-
onClick: () =>
|
|
11073
|
-
disabled: k(
|
|
11074
|
-
title:
|
|
11075
|
-
children:
|
|
11076
|
-
},
|
|
11161
|
+
className: g1(J),
|
|
11162
|
+
onClick: () => s1(J),
|
|
11163
|
+
disabled: k(J),
|
|
11164
|
+
title: J.toDateString(),
|
|
11165
|
+
children: J.getDate()
|
|
11166
|
+
}, n1))
|
|
11077
11167
|
}, Z))
|
|
11078
11168
|
})
|
|
11079
11169
|
] })
|
|
@@ -11176,13 +11266,13 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11176
11266
|
className: `${g ? "card-content-hidden" : ""}`,
|
|
11177
11267
|
children: [/* @__PURE__ */ r("span", {
|
|
11178
11268
|
className: "card-title-content",
|
|
11179
|
-
children: [a && /* @__PURE__ */ e(
|
|
11269
|
+
children: [a && /* @__PURE__ */ e(G, { name: a }), m]
|
|
11180
11270
|
}), o && /* @__PURE__ */ e("span", {
|
|
11181
11271
|
className: "collapsible-button",
|
|
11182
11272
|
onClick: () => w(!g),
|
|
11183
11273
|
children: /* @__PURE__ */ e("span", {
|
|
11184
11274
|
className: `opener-button ${g ? "opener-button-extended" : ""}`,
|
|
11185
|
-
children: /* @__PURE__ */ e(
|
|
11275
|
+
children: /* @__PURE__ */ e(G, {
|
|
11186
11276
|
name: "caret-up",
|
|
11187
11277
|
size: "lg"
|
|
11188
11278
|
})
|
|
@@ -11218,7 +11308,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11218
11308
|
className: "checkbox-label",
|
|
11219
11309
|
children: [/* @__PURE__ */ e("span", { className: "checkbox-box" }), (a || l) && /* @__PURE__ */ r("span", {
|
|
11220
11310
|
className: "checkbox-text",
|
|
11221
|
-
children: [a && /* @__PURE__ */ e(
|
|
11311
|
+
children: [a && /* @__PURE__ */ e(G, { name: a }), l && /* @__PURE__ */ e("span", {
|
|
11222
11312
|
className: "checkbox-text-label",
|
|
11223
11313
|
children: l
|
|
11224
11314
|
})]
|
|
@@ -11237,7 +11327,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11237
11327
|
className: "chip__swatch",
|
|
11238
11328
|
style: { backgroundColor: l }
|
|
11239
11329
|
}),
|
|
11240
|
-
o && /* @__PURE__ */ e(
|
|
11330
|
+
o && /* @__PURE__ */ e(G, { name: o }),
|
|
11241
11331
|
/* @__PURE__ */ e("span", {
|
|
11242
11332
|
className: "chip__label",
|
|
11243
11333
|
children: t
|
|
@@ -11257,11 +11347,11 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11257
11347
|
children: [n && /* @__PURE__ */ e("div", {
|
|
11258
11348
|
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
11349
|
onClick: N ? _ : void 0,
|
|
11260
|
-
children: N ? /* @__PURE__ */ r(
|
|
11350
|
+
children: N ? /* @__PURE__ */ r(l1, { children: [
|
|
11261
11351
|
/* @__PURE__ */ r("div", {
|
|
11262
11352
|
className: "collapsible-section__label",
|
|
11263
11353
|
children: [
|
|
11264
|
-
a && /* @__PURE__ */ e(
|
|
11354
|
+
a && /* @__PURE__ */ e(G, {
|
|
11265
11355
|
name: a,
|
|
11266
11356
|
variant: u
|
|
11267
11357
|
}),
|
|
@@ -11269,10 +11359,10 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11269
11359
|
n
|
|
11270
11360
|
]
|
|
11271
11361
|
}),
|
|
11272
|
-
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
11362
|
+
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(G, { name: m }) }),
|
|
11273
11363
|
/* @__PURE__ */ e("span", {
|
|
11274
11364
|
className: `collapsible-section__icon ${M ? "collapsible-section__icon--collapsed" : ""}`,
|
|
11275
|
-
children: /* @__PURE__ */ e(
|
|
11365
|
+
children: /* @__PURE__ */ e(G, { name: "caret-up" })
|
|
11276
11366
|
}),
|
|
11277
11367
|
/* @__PURE__ */ e("span", {
|
|
11278
11368
|
className: "collapsible-section__right-details",
|
|
@@ -11286,7 +11376,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11286
11376
|
/* @__PURE__ */ r("span", {
|
|
11287
11377
|
className: "collapsible-section__label",
|
|
11288
11378
|
children: [
|
|
11289
|
-
a && /* @__PURE__ */ e(
|
|
11379
|
+
a && /* @__PURE__ */ e(G, {
|
|
11290
11380
|
name: a,
|
|
11291
11381
|
variant: u
|
|
11292
11382
|
}),
|
|
@@ -11294,10 +11384,10 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11294
11384
|
n
|
|
11295
11385
|
]
|
|
11296
11386
|
}),
|
|
11297
|
-
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
11387
|
+
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(G, { name: m }) }),
|
|
11298
11388
|
/* @__PURE__ */ e("span", {
|
|
11299
11389
|
className: `collapsible-section__icon ${M ? "collapsible-section__icon--collapsed" : ""}`,
|
|
11300
|
-
children: /* @__PURE__ */ e(
|
|
11390
|
+
children: /* @__PURE__ */ e(G, { name: "caret-up" })
|
|
11301
11391
|
})
|
|
11302
11392
|
]
|
|
11303
11393
|
})
|
|
@@ -12052,7 +12142,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12052
12142
|
children: [
|
|
12053
12143
|
(a || o) && /* @__PURE__ */ r("div", {
|
|
12054
12144
|
className: "confirm-popover__header",
|
|
12055
|
-
children: [o && /* @__PURE__ */ e(
|
|
12145
|
+
children: [o && /* @__PURE__ */ e(G, { name: o }), a && /* @__PURE__ */ e("span", {
|
|
12056
12146
|
className: "confirm-popover__title",
|
|
12057
12147
|
children: a
|
|
12058
12148
|
})]
|
|
@@ -12109,7 +12199,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12109
12199
|
const h = (m) => {
|
|
12110
12200
|
a && c?.();
|
|
12111
12201
|
};
|
|
12112
|
-
return t ? q1(/* @__PURE__ */ r(
|
|
12202
|
+
return t ? q1(/* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", {
|
|
12113
12203
|
style: {
|
|
12114
12204
|
position: "fixed",
|
|
12115
12205
|
inset: 0,
|
|
@@ -12156,13 +12246,15 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12156
12246
|
className: "toast__action-button",
|
|
12157
12247
|
children: a.label
|
|
12158
12248
|
}),
|
|
12159
|
-
o && /* @__PURE__ */ e(
|
|
12160
|
-
onClick: h,
|
|
12161
|
-
className: "toast__close-button",
|
|
12249
|
+
o && /* @__PURE__ */ e(K, {
|
|
12162
12250
|
title: "Close",
|
|
12163
|
-
children: /* @__PURE__ */ e(
|
|
12164
|
-
|
|
12165
|
-
|
|
12251
|
+
children: /* @__PURE__ */ e("button", {
|
|
12252
|
+
onClick: h,
|
|
12253
|
+
className: "toast__close-button",
|
|
12254
|
+
children: /* @__PURE__ */ e(G, {
|
|
12255
|
+
name: "clear",
|
|
12256
|
+
size: "sm"
|
|
12257
|
+
})
|
|
12166
12258
|
})
|
|
12167
12259
|
})
|
|
12168
12260
|
]
|
|
@@ -12283,82 +12375,6 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12283
12375
|
value: n,
|
|
12284
12376
|
children: t
|
|
12285
12377
|
});
|
|
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
12378
|
}, 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
12379
|
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
12380
|
position: "fixed",
|
|
@@ -12381,7 +12397,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12381
12397
|
}, [p, D]);
|
|
12382
12398
|
const P = j(() => {
|
|
12383
12399
|
if (p || !D || !k.current || !A.current) return;
|
|
12384
|
-
const I = k.current.getBoundingClientRect(), $ = A.current.getBoundingClientRect(), p1 = 16,
|
|
12400
|
+
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
12401
|
S({
|
|
12386
12402
|
position: "fixed",
|
|
12387
12403
|
top: `${y1}px`,
|
|
@@ -12413,7 +12429,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12413
12429
|
return a ? `${I} ${o ? F1(t, "HH:mm:ss") : F1(t, "HH:mm")}` : I;
|
|
12414
12430
|
}
|
|
12415
12431
|
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
|
-
},
|
|
12432
|
+
}, s1 = (I) => {
|
|
12417
12433
|
if (!a || !(I instanceof Date)) {
|
|
12418
12434
|
c?.(I), m && l !== "multiple" && !p && v(!1);
|
|
12419
12435
|
return;
|
|
@@ -12426,7 +12442,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12426
12442
|
I.setHours($, C, b), c?.(I);
|
|
12427
12443
|
}, X = (I) => {
|
|
12428
12444
|
I.stopPropagation(), y(null), c?.(void 0);
|
|
12429
|
-
},
|
|
12445
|
+
}, i1 = O();
|
|
12430
12446
|
return /* @__PURE__ */ r("div", {
|
|
12431
12447
|
className: "datepicker",
|
|
12432
12448
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -12436,19 +12452,21 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12436
12452
|
d || p || (D && y(null), v(!D));
|
|
12437
12453
|
},
|
|
12438
12454
|
children: [/* @__PURE__ */ e("span", {
|
|
12439
|
-
className: `datepicker__value ${
|
|
12440
|
-
children:
|
|
12455
|
+
className: `datepicker__value ${i1 ? "" : "datepicker__value--placeholder"}`,
|
|
12456
|
+
children: i1 || n
|
|
12441
12457
|
}), /* @__PURE__ */ r("div", {
|
|
12442
12458
|
className: "datepicker__actions",
|
|
12443
|
-
children: [h &&
|
|
12444
|
-
type: "button",
|
|
12445
|
-
className: "datepicker__clear",
|
|
12446
|
-
onClick: X,
|
|
12459
|
+
children: [h && i1 && /* @__PURE__ */ e(K, {
|
|
12447
12460
|
title: "Clear",
|
|
12448
|
-
children: "
|
|
12461
|
+
children: /* @__PURE__ */ e("button", {
|
|
12462
|
+
type: "button",
|
|
12463
|
+
className: "datepicker__clear",
|
|
12464
|
+
onClick: X,
|
|
12465
|
+
children: "×"
|
|
12466
|
+
})
|
|
12449
12467
|
}), /* @__PURE__ */ e("span", {
|
|
12450
12468
|
className: "datepicker__icon",
|
|
12451
|
-
children: /* @__PURE__ */ e(
|
|
12469
|
+
children: /* @__PURE__ */ e(G, { name: "calendar" })
|
|
12452
12470
|
})]
|
|
12453
12471
|
})]
|
|
12454
12472
|
}), D && (p ? /* @__PURE__ */ r("div", {
|
|
@@ -12458,7 +12476,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12458
12476
|
...g,
|
|
12459
12477
|
mode: l,
|
|
12460
12478
|
value: t,
|
|
12461
|
-
onChange:
|
|
12479
|
+
onChange: s1,
|
|
12462
12480
|
rangeStart: l === "range" ? L : g.rangeStart,
|
|
12463
12481
|
onRangeStartChange: l === "range" ? y : g.onRangeStartChange
|
|
12464
12482
|
}), a && l === "single" && t instanceof Date && /* @__PURE__ */ r("div", {
|
|
@@ -12494,7 +12512,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12494
12512
|
min: "0",
|
|
12495
12513
|
max: "59"
|
|
12496
12514
|
}),
|
|
12497
|
-
o && /* @__PURE__ */ r(
|
|
12515
|
+
o && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", { children: ":" }), /* @__PURE__ */ e("input", {
|
|
12498
12516
|
type: "number",
|
|
12499
12517
|
className: "datepicker__time-input",
|
|
12500
12518
|
value: b,
|
|
@@ -12525,7 +12543,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12525
12543
|
...g,
|
|
12526
12544
|
mode: l,
|
|
12527
12545
|
value: t,
|
|
12528
|
-
onChange:
|
|
12546
|
+
onChange: s1,
|
|
12529
12547
|
rangeStart: l === "range" ? L : g.rangeStart,
|
|
12530
12548
|
onRangeStartChange: l === "range" ? y : g.onRangeStartChange
|
|
12531
12549
|
}), a && l === "single" && t instanceof Date && /* @__PURE__ */ r("div", {
|
|
@@ -12561,7 +12579,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12561
12579
|
min: "0",
|
|
12562
12580
|
max: "59"
|
|
12563
12581
|
}),
|
|
12564
|
-
o && /* @__PURE__ */ r(
|
|
12582
|
+
o && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", { children: ":" }), /* @__PURE__ */ e("input", {
|
|
12565
12583
|
type: "number",
|
|
12566
12584
|
className: "datepicker__time-input",
|
|
12567
12585
|
value: b,
|
|
@@ -12597,15 +12615,15 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12597
12615
|
}
|
|
12598
12616
|
return o / a.length >= s;
|
|
12599
12617
|
}, 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,
|
|
12618
|
+
const [H, S] = z(!1), [k, A] = z(C || ""), [D, P] = z(v), [O, s1] = z(-1), [V, X] = z([]), [i1, I] = z({
|
|
12601
12619
|
top: 0,
|
|
12602
12620
|
left: 0,
|
|
12603
12621
|
width: 0
|
|
12604
|
-
}), [$, p1] = z(!1),
|
|
12622
|
+
}), [$, p1] = z(!1), h1 = Y(null), W = Y([]), o1 = Y(null), v1 = Y(null), y1 = C0(), k1 = i ?? `dropdown-${y1}`, g1 = Y(null);
|
|
12605
12623
|
U(() => {
|
|
12606
12624
|
if (H && M && m) {
|
|
12607
|
-
const
|
|
12608
|
-
v.forEach((
|
|
12625
|
+
const E = new Set(V.map((c1) => c1.value)), T = [], q = [];
|
|
12626
|
+
v.forEach((c1) => (E.has(c1.value) ? T : q).push(c1)), g1.current = [...T, ...q];
|
|
12609
12627
|
} else H || (g1.current = null);
|
|
12610
12628
|
}, [
|
|
12611
12629
|
H,
|
|
@@ -12613,13 +12631,13 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12613
12631
|
m,
|
|
12614
12632
|
v
|
|
12615
12633
|
]), U(() => {
|
|
12616
|
-
const
|
|
12617
|
-
if (!f || !k) P(
|
|
12634
|
+
const E = g1.current ?? v;
|
|
12635
|
+
if (!f || !k) P(E);
|
|
12618
12636
|
else {
|
|
12619
12637
|
const T = c2(k);
|
|
12620
|
-
P(
|
|
12638
|
+
P(E.filter((q) => c2(q.label).includes(T)));
|
|
12621
12639
|
}
|
|
12622
|
-
|
|
12640
|
+
s1(-1);
|
|
12623
12641
|
}, [
|
|
12624
12642
|
k,
|
|
12625
12643
|
v,
|
|
@@ -12628,9 +12646,9 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12628
12646
|
]);
|
|
12629
12647
|
const $1 = Y(L);
|
|
12630
12648
|
U(() => {
|
|
12631
|
-
const
|
|
12649
|
+
const E = $1.current;
|
|
12632
12650
|
$1.current = L;
|
|
12633
|
-
const T = !Object.is(
|
|
12651
|
+
const T = !Object.is(E, L);
|
|
12634
12652
|
if (L == null) {
|
|
12635
12653
|
T && (X([]), A(""));
|
|
12636
12654
|
return;
|
|
@@ -12647,7 +12665,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12647
12665
|
if (m && Array.isArray(L))
|
|
12648
12666
|
X(v.filter((q) => typeof q.value == "number" ? L.includes(q.value) : L.includes(q.value.toString()))), T && A("");
|
|
12649
12667
|
else if (!m && (typeof L == "string" || typeof L == "number")) {
|
|
12650
|
-
const q = v.find((
|
|
12668
|
+
const q = v.find((c1) => typeof c1.value == "number" && typeof L == "number" ? c1.value === L : c1.value.toString() === L.toString());
|
|
12651
12669
|
q ? (X([q]), T && A(q.label)) : t && typeof L == "string" && L.trim() ? (X([{
|
|
12652
12670
|
label: L.trim(),
|
|
12653
12671
|
value: L.trim(),
|
|
@@ -12668,28 +12686,28 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12668
12686
|
]), U(() => {
|
|
12669
12687
|
f && C !== void 0 && A(C);
|
|
12670
12688
|
}, [C, f]), U(() => {
|
|
12671
|
-
if (!H || !
|
|
12672
|
-
const
|
|
12673
|
-
if (!
|
|
12674
|
-
const T =
|
|
12689
|
+
if (!H || !h1.current) return;
|
|
12690
|
+
const E = () => {
|
|
12691
|
+
if (!h1.current) return;
|
|
12692
|
+
const T = h1.current.getBoundingClientRect(), q = window.innerHeight, c1 = 300, K1 = q - T.bottom, j1 = T.top, b0 = K1 < c1 && j1 > K1;
|
|
12675
12693
|
p1(b0), N && I({
|
|
12676
12694
|
top: b0 ? T.top + window.scrollY : T.bottom + window.scrollY,
|
|
12677
12695
|
left: T.left + window.scrollX,
|
|
12678
12696
|
width: T.width
|
|
12679
12697
|
});
|
|
12680
12698
|
};
|
|
12681
|
-
return
|
|
12682
|
-
window.removeEventListener("scroll",
|
|
12699
|
+
return E(), window.addEventListener("scroll", E, !0), window.addEventListener("resize", E), () => {
|
|
12700
|
+
window.removeEventListener("scroll", E, !0), window.removeEventListener("resize", E);
|
|
12683
12701
|
};
|
|
12684
12702
|
}, [H, N]), U(() => {
|
|
12685
|
-
const
|
|
12686
|
-
if (
|
|
12703
|
+
const E = (T) => {
|
|
12704
|
+
if (h1.current && !h1.current.contains(T.target)) {
|
|
12687
12705
|
if (N && H) {
|
|
12688
12706
|
const q = document.querySelector(".dropdown-menu--portal");
|
|
12689
12707
|
if (q && q.contains(T.target)) return;
|
|
12690
12708
|
}
|
|
12691
12709
|
if (t && !m && k.trim() && !(V.length > 0 && V[0].label.toLowerCase() === k.trim().toLowerCase())) {
|
|
12692
|
-
const q = v.find((
|
|
12710
|
+
const q = v.find((c1) => c1.label.toLowerCase() === k.toLowerCase() || c1.value.toString() === k) || {
|
|
12693
12711
|
label: k.trim(),
|
|
12694
12712
|
value: k.trim(),
|
|
12695
12713
|
className: "custom-option"
|
|
@@ -12700,8 +12718,8 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12700
12718
|
S(!1), !m && V.length > 0 ? A(V[0].label) : m && f && A("");
|
|
12701
12719
|
}
|
|
12702
12720
|
};
|
|
12703
|
-
return document.addEventListener("mousedown",
|
|
12704
|
-
document.removeEventListener("mousedown",
|
|
12721
|
+
return document.addEventListener("mousedown", E), () => {
|
|
12722
|
+
document.removeEventListener("mousedown", E);
|
|
12705
12723
|
};
|
|
12706
12724
|
}, [
|
|
12707
12725
|
t,
|
|
@@ -12715,19 +12733,19 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12715
12733
|
V,
|
|
12716
12734
|
N
|
|
12717
12735
|
]);
|
|
12718
|
-
const
|
|
12719
|
-
if (!
|
|
12736
|
+
const Q = (E) => {
|
|
12737
|
+
if (!E.disabled)
|
|
12720
12738
|
if (m) {
|
|
12721
|
-
const T = V.some((
|
|
12739
|
+
const T = V.some((c1) => c1.value === E.value);
|
|
12722
12740
|
let q;
|
|
12723
|
-
T ? q = V.filter((
|
|
12741
|
+
T ? q = V.filter((c1) => c1.value !== E.value) : q = [...V, E], X(q), f && A(""), g && g(q, p);
|
|
12724
12742
|
} else
|
|
12725
|
-
A(
|
|
12726
|
-
},
|
|
12743
|
+
A(E.label), X([E]), S(!1), g && g(E, p);
|
|
12744
|
+
}, r1 = () => {
|
|
12727
12745
|
if (!t || !k.trim()) return;
|
|
12728
|
-
const
|
|
12729
|
-
if (
|
|
12730
|
-
|
|
12746
|
+
const E = v.find((q) => q.label.toLowerCase() === k.toLowerCase() || q.value.toString() === k);
|
|
12747
|
+
if (E) {
|
|
12748
|
+
Q(E);
|
|
12731
12749
|
return;
|
|
12732
12750
|
}
|
|
12733
12751
|
const T = {
|
|
@@ -12740,82 +12758,82 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12740
12758
|
X(q), A(""), g && g(q, p);
|
|
12741
12759
|
} else
|
|
12742
12760
|
X([T]), A(T.label), S(!1), g && g(T, p);
|
|
12743
|
-
}, B = (
|
|
12744
|
-
const T = V.filter((q) => q.value !==
|
|
12761
|
+
}, B = (E) => {
|
|
12762
|
+
const T = V.filter((q) => q.value !== E.value);
|
|
12745
12763
|
X(T), g && (m ? g(T, p) : (g(null, p), f || A("")));
|
|
12746
12764
|
}, Z = () => {
|
|
12747
12765
|
X([]), (!f || !m) && A(""), S(!1), g && g(m ? [] : null, p);
|
|
12748
|
-
},
|
|
12749
|
-
A(
|
|
12750
|
-
},
|
|
12751
|
-
a || (S(!0), !m && f && V.length > 0 && A(""), (m || f) &&
|
|
12766
|
+
}, J = (E) => {
|
|
12767
|
+
A(E), H || S(!0), w?.(E);
|
|
12768
|
+
}, n1 = () => {
|
|
12769
|
+
a || (S(!0), !m && f && V.length > 0 && A(""), (m || f) && o1.current?.focus());
|
|
12752
12770
|
}, b1 = () => {
|
|
12753
|
-
a || (S(!H), H || (
|
|
12754
|
-
}, f1 = (
|
|
12771
|
+
a || (S(!H), H || (s1(-1), !m && f && V.length > 0 && A(""), (m || f) && o1.current?.focus()));
|
|
12772
|
+
}, f1 = (E) => {
|
|
12755
12773
|
if (!a) {
|
|
12756
12774
|
if (!H) {
|
|
12757
|
-
(
|
|
12775
|
+
(E.key === "ArrowDown" || E.key === "Enter") && (S(!0), E.preventDefault());
|
|
12758
12776
|
return;
|
|
12759
12777
|
}
|
|
12760
|
-
switch (
|
|
12778
|
+
switch (E.key) {
|
|
12761
12779
|
case "ArrowDown":
|
|
12762
|
-
if (
|
|
12763
|
-
|
|
12764
|
-
const q = T < (t && k && !D.some((
|
|
12780
|
+
if (E.preventDefault(), t && k && D.length === 0) return;
|
|
12781
|
+
s1((T) => {
|
|
12782
|
+
const q = T < (t && k && !D.some((c1) => c1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1) ? T + 1 : 0;
|
|
12765
12783
|
return q < D.length && W.current[q] && W.current[q]?.scrollIntoView({ block: "nearest" }), q;
|
|
12766
12784
|
});
|
|
12767
12785
|
break;
|
|
12768
12786
|
case "ArrowUp":
|
|
12769
|
-
if (
|
|
12770
|
-
|
|
12771
|
-
const q = t && k && !D.some((K1) => K1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1,
|
|
12772
|
-
return
|
|
12787
|
+
if (E.preventDefault(), t && k && D.length === 0) return;
|
|
12788
|
+
s1((T) => {
|
|
12789
|
+
const q = t && k && !D.some((K1) => K1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1, c1 = T > 0 ? T - 1 : q;
|
|
12790
|
+
return c1 < D.length && W.current[c1] && W.current[c1]?.scrollIntoView({ block: "nearest" }), c1;
|
|
12773
12791
|
});
|
|
12774
12792
|
break;
|
|
12775
12793
|
case "Enter":
|
|
12776
|
-
|
|
12794
|
+
E.preventDefault(), O >= 0 && O < D.length ? Q(D[O]) : (t && k && O === D.length || t && k && D.length === 0) && r1();
|
|
12777
12795
|
break;
|
|
12778
12796
|
case "Escape":
|
|
12779
|
-
|
|
12797
|
+
E.preventDefault(), S(!1), !m && V.length > 0 ? A(V[0].label) : m && f && A("");
|
|
12780
12798
|
break;
|
|
12781
12799
|
case "Backspace":
|
|
12782
|
-
m && k === "" && V.length > 0 && (
|
|
12800
|
+
m && k === "" && V.length > 0 && (E.preventDefault(), B(V[V.length - 1]));
|
|
12783
12801
|
break;
|
|
12784
12802
|
default:
|
|
12785
12803
|
break;
|
|
12786
12804
|
}
|
|
12787
12805
|
}
|
|
12788
|
-
}, B1 = (
|
|
12806
|
+
}, B1 = (E) => V.some((T) => T.value === E.value), D1 = () => {
|
|
12789
12807
|
if (V.length === 0) return "";
|
|
12790
|
-
const
|
|
12791
|
-
if (V.length <=
|
|
12792
|
-
const T = V.slice(0,
|
|
12808
|
+
const E = Math.max(1, d);
|
|
12809
|
+
if (V.length <= E) return V.map((c1) => c1.label).join(", ");
|
|
12810
|
+
const T = V.slice(0, E).map((c1) => c1.label).join(", "), q = V.length - E;
|
|
12793
12811
|
return `${T} (+${q} ${q === 1 ? "other" : "others"})`;
|
|
12794
12812
|
}, 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
12813
|
className: "dropdown-selected-count",
|
|
12796
12814
|
children: [V.length, " selected"]
|
|
12797
|
-
}) : null, T1 = () => !!(t && k && k.trim() && !D.some((
|
|
12815
|
+
}) : null, T1 = () => !!(t && k && k.trim() && !D.some((E) => E.label.toLowerCase() === k.toLowerCase() || E.value.toString() === k)), t0 = () => {
|
|
12798
12816
|
if (!H || a) return null;
|
|
12799
|
-
const
|
|
12817
|
+
const E = /* @__PURE__ */ e("div", {
|
|
12800
12818
|
ref: v1,
|
|
12801
12819
|
className: `dropdown-menu ${N ? "dropdown-menu--portal" : ""} ${$ ? "dropdown-menu--upward" : ""}`,
|
|
12802
12820
|
style: N ? {
|
|
12803
12821
|
position: "absolute",
|
|
12804
|
-
top: $ ? "auto" : `${
|
|
12805
|
-
bottom: $ ? `${window.innerHeight -
|
|
12806
|
-
left: `${
|
|
12807
|
-
width: `${
|
|
12822
|
+
top: $ ? "auto" : `${i1.top}px`,
|
|
12823
|
+
bottom: $ ? `${window.innerHeight - i1.top}px` : "auto",
|
|
12824
|
+
left: `${i1.left}px`,
|
|
12825
|
+
width: `${i1.width}px`,
|
|
12808
12826
|
zIndex: 9999
|
|
12809
12827
|
} : void 0,
|
|
12810
12828
|
children: D.length > 0 || T1() ? /* @__PURE__ */ r("ul", {
|
|
12811
12829
|
className: "dropdown-options-list",
|
|
12812
12830
|
children: [D.map((T, q) => /* @__PURE__ */ r("li", {
|
|
12813
|
-
ref: (
|
|
12814
|
-
W.current[q] =
|
|
12831
|
+
ref: (c1) => {
|
|
12832
|
+
W.current[q] = c1;
|
|
12815
12833
|
},
|
|
12816
12834
|
className: `dropdown-option ${T.className || ""} ${O === q ? "focused" : ""} ${B1(T) ? "selected" : ""} ${T.disabled ? "dropdown-option--disabled" : ""}`,
|
|
12817
|
-
onClick: () =>
|
|
12818
|
-
onMouseEnter: () =>
|
|
12835
|
+
onClick: () => Q(T),
|
|
12836
|
+
onMouseEnter: () => s1(q),
|
|
12819
12837
|
title: T.tooltip,
|
|
12820
12838
|
children: [m && /* @__PURE__ */ e("div", {
|
|
12821
12839
|
className: "dropdown-option-checkbox",
|
|
@@ -12844,9 +12862,9 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12844
12862
|
className: "dropdown-option-prefix",
|
|
12845
12863
|
children: T.prefix
|
|
12846
12864
|
}),
|
|
12847
|
-
T.icon && /* @__PURE__ */ e(
|
|
12865
|
+
T.icon && /* @__PURE__ */ e(G, { name: T.icon }),
|
|
12848
12866
|
/* @__PURE__ */ e("span", { children: T.label }),
|
|
12849
|
-
T.suffixIcon && /* @__PURE__ */ e(
|
|
12867
|
+
T.suffixIcon && /* @__PURE__ */ e(G, { name: T.suffixIcon })
|
|
12850
12868
|
]
|
|
12851
12869
|
}), T.details && /* @__PURE__ */ e("span", {
|
|
12852
12870
|
className: "dropdown-option-details",
|
|
@@ -12858,13 +12876,13 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12858
12876
|
W.current[D.length] = T;
|
|
12859
12877
|
},
|
|
12860
12878
|
className: `dropdown-option dropdown-option--create ${O === D.length ? "focused" : ""}`,
|
|
12861
|
-
onClick:
|
|
12862
|
-
onMouseEnter: () =>
|
|
12879
|
+
onClick: r1,
|
|
12880
|
+
onMouseEnter: () => s1(D.length),
|
|
12863
12881
|
children: /* @__PURE__ */ e("div", {
|
|
12864
12882
|
className: "dropdown-option-content",
|
|
12865
12883
|
children: /* @__PURE__ */ r("span", {
|
|
12866
12884
|
className: "dropdown-option-label",
|
|
12867
|
-
children: [/* @__PURE__ */ e(
|
|
12885
|
+
children: [/* @__PURE__ */ e(G, { name: "plus" }), /* @__PURE__ */ r("span", { children: [
|
|
12868
12886
|
"Create “",
|
|
12869
12887
|
k,
|
|
12870
12888
|
"”"
|
|
@@ -12877,11 +12895,11 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12877
12895
|
children: "No options found"
|
|
12878
12896
|
})
|
|
12879
12897
|
});
|
|
12880
|
-
return N ? q1(
|
|
12898
|
+
return N ? q1(E, document.body) : E;
|
|
12881
12899
|
}, 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
12900
|
return /* @__PURE__ */ r("div", {
|
|
12883
12901
|
className: `dropdown-container ${s ? "dropdown-error" : ""} ${_ ? "dropdown-success" : ""} ${o ? "dropdown-highlighted" : ""} ${m ? "multiple" : ""} ${a ? "disabled" : ""} ${m ? `count-display-${x}` : ""} ${l}`,
|
|
12884
|
-
ref:
|
|
12902
|
+
ref: h1,
|
|
12885
12903
|
children: [
|
|
12886
12904
|
n && /* @__PURE__ */ e("label", {
|
|
12887
12905
|
htmlFor: k1,
|
|
@@ -12893,40 +12911,40 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12893
12911
|
children: [
|
|
12894
12912
|
X1 && C1?.icon && /* @__PURE__ */ e("span", {
|
|
12895
12913
|
className: "dropdown-selected-icon dropdown-selected-icon--prefix",
|
|
12896
|
-
children: /* @__PURE__ */ e(
|
|
12914
|
+
children: /* @__PURE__ */ e(G, { name: C1.icon })
|
|
12897
12915
|
}),
|
|
12898
12916
|
I1 && C1 && /* @__PURE__ */ r("span", {
|
|
12899
12917
|
className: "dropdown-value-chip",
|
|
12900
|
-
onClick:
|
|
12901
|
-
children: [C1.icon && /* @__PURE__ */ e(
|
|
12918
|
+
onClick: n1,
|
|
12919
|
+
children: [C1.icon && /* @__PURE__ */ e(G, { name: C1.icon }), /* @__PURE__ */ e("span", {
|
|
12902
12920
|
className: "dropdown-value-chip__label",
|
|
12903
12921
|
children: C1.label
|
|
12904
12922
|
})]
|
|
12905
12923
|
}),
|
|
12906
|
-
Z1 && V.map((
|
|
12924
|
+
Z1 && V.map((E) => /* @__PURE__ */ r("span", {
|
|
12907
12925
|
className: "dropdown-chip",
|
|
12908
12926
|
children: [/* @__PURE__ */ e("span", {
|
|
12909
12927
|
className: "dropdown-chip__label",
|
|
12910
|
-
children:
|
|
12928
|
+
children: E.label
|
|
12911
12929
|
}), /* @__PURE__ */ e("button", {
|
|
12912
12930
|
type: "button",
|
|
12913
12931
|
className: "dropdown-chip__remove",
|
|
12914
12932
|
title: "Remove",
|
|
12915
12933
|
disabled: a,
|
|
12916
12934
|
onClick: (T) => {
|
|
12917
|
-
T.stopPropagation(), B(
|
|
12935
|
+
T.stopPropagation(), B(E);
|
|
12918
12936
|
},
|
|
12919
12937
|
children: W0
|
|
12920
12938
|
})]
|
|
12921
|
-
}, `dd-chip-${
|
|
12939
|
+
}, `dd-chip-${E.value}`)),
|
|
12922
12940
|
/* @__PURE__ */ e(A1, {
|
|
12923
|
-
ref:
|
|
12941
|
+
ref: o1,
|
|
12924
12942
|
id: k1,
|
|
12925
12943
|
placeholder: I1 ? "" : _1(),
|
|
12926
12944
|
value: I1 ? "" : Y1(),
|
|
12927
|
-
onChange: f || m ?
|
|
12945
|
+
onChange: f || m ? J : () => {
|
|
12928
12946
|
},
|
|
12929
|
-
onClick:
|
|
12947
|
+
onClick: n1,
|
|
12930
12948
|
onKeyDown: f1,
|
|
12931
12949
|
autoComplete: "off",
|
|
12932
12950
|
autoFocus: c,
|
|
@@ -12937,7 +12955,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12937
12955
|
children: [
|
|
12938
12956
|
r0 && C1?.suffixIcon && /* @__PURE__ */ e("span", {
|
|
12939
12957
|
className: "dropdown-selected-icon dropdown-selected-icon--suffix",
|
|
12940
|
-
children: /* @__PURE__ */ e(
|
|
12958
|
+
children: /* @__PURE__ */ e(G, { name: C1.suffixIcon })
|
|
12941
12959
|
}),
|
|
12942
12960
|
(!m && V.length > 0 || m && V.length > 0) && /* @__PURE__ */ e("span", {
|
|
12943
12961
|
className: "dropdown-action-button dropdown-clear-button",
|
|
@@ -13006,14 +13024,16 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13006
13024
|
onKeyUp: v,
|
|
13007
13025
|
readOnly: u,
|
|
13008
13026
|
required: f
|
|
13009
|
-
}), _ && /* @__PURE__ */ e(
|
|
13010
|
-
type: "button",
|
|
13011
|
-
className: "input-date-clear",
|
|
13012
|
-
onClick: () => p?.(void 0),
|
|
13027
|
+
}), _ && /* @__PURE__ */ e(K, {
|
|
13013
13028
|
title: "Clear date",
|
|
13014
|
-
children: /* @__PURE__ */ e(
|
|
13015
|
-
|
|
13016
|
-
|
|
13029
|
+
children: /* @__PURE__ */ e("button", {
|
|
13030
|
+
type: "button",
|
|
13031
|
+
className: "input-date-clear",
|
|
13032
|
+
onClick: () => p?.(void 0),
|
|
13033
|
+
children: /* @__PURE__ */ e(G, {
|
|
13034
|
+
name: "clear",
|
|
13035
|
+
size: "sm"
|
|
13036
|
+
})
|
|
13017
13037
|
})
|
|
13018
13038
|
})]
|
|
13019
13039
|
}),
|
|
@@ -13204,7 +13224,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13204
13224
|
children: [
|
|
13205
13225
|
/* @__PURE__ */ e("div", {
|
|
13206
13226
|
className: "input-search__icon",
|
|
13207
|
-
children: /* @__PURE__ */ e(
|
|
13227
|
+
children: /* @__PURE__ */ e(G, { name: "search" })
|
|
13208
13228
|
}),
|
|
13209
13229
|
/* @__PURE__ */ e(A1, {
|
|
13210
13230
|
autoComplete: t,
|
|
@@ -13223,14 +13243,16 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13223
13243
|
value: w,
|
|
13224
13244
|
ref: u
|
|
13225
13245
|
}),
|
|
13226
|
-
C && /* @__PURE__ */ e(
|
|
13227
|
-
type: "button",
|
|
13228
|
-
className: "input-search__clear",
|
|
13229
|
-
onClick: f,
|
|
13246
|
+
C && /* @__PURE__ */ e(K, {
|
|
13230
13247
|
title: "Clear search",
|
|
13231
|
-
children: /* @__PURE__ */ e(
|
|
13232
|
-
|
|
13233
|
-
|
|
13248
|
+
children: /* @__PURE__ */ e("button", {
|
|
13249
|
+
type: "button",
|
|
13250
|
+
className: "input-search__clear",
|
|
13251
|
+
onClick: f,
|
|
13252
|
+
children: /* @__PURE__ */ e(G, {
|
|
13253
|
+
name: "clear",
|
|
13254
|
+
size: "sm"
|
|
13255
|
+
})
|
|
13234
13256
|
})
|
|
13235
13257
|
})
|
|
13236
13258
|
]
|
|
@@ -13258,7 +13280,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13258
13280
|
className: `control-panel__filter-title${t.isActive ? " control-panel__filter-title--active" : ""}`,
|
|
13259
13281
|
children: [
|
|
13260
13282
|
t.isActive && /* @__PURE__ */ e("span", { className: "control-panel__filter-active-dot" }),
|
|
13261
|
-
t.icon && /* @__PURE__ */ e(
|
|
13283
|
+
t.icon && /* @__PURE__ */ e(G, { name: t.icon }),
|
|
13262
13284
|
t.label
|
|
13263
13285
|
]
|
|
13264
13286
|
}), /* @__PURE__ */ e(Tr, {
|
|
@@ -13442,7 +13464,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13442
13464
|
className: "control-panel__filter-swatch",
|
|
13443
13465
|
style: { backgroundColor: i.color }
|
|
13444
13466
|
}),
|
|
13445
|
-
i.icon && /* @__PURE__ */ e(
|
|
13467
|
+
i.icon && /* @__PURE__ */ e(G, { name: i.icon }),
|
|
13446
13468
|
/* @__PURE__ */ e("span", {
|
|
13447
13469
|
className: "control-panel__filter-label",
|
|
13448
13470
|
children: i.label
|
|
@@ -13588,7 +13610,7 @@ function N2(t, c, l = 0) {
|
|
|
13588
13610
|
h.stopPropagation(), t.onOpenChange?.(!o, t);
|
|
13589
13611
|
},
|
|
13590
13612
|
type: "button",
|
|
13591
|
-
children: /* @__PURE__ */ e(
|
|
13613
|
+
children: /* @__PURE__ */ e(G, { name: "caret-right" })
|
|
13592
13614
|
}) : /* @__PURE__ */ e("span", { className: "control-panel__nav-toggle-placeholder" })), /* @__PURE__ */ r("button", {
|
|
13593
13615
|
className: i,
|
|
13594
13616
|
onClick: () => {
|
|
@@ -13603,7 +13625,7 @@ function N2(t, c, l = 0) {
|
|
|
13603
13625
|
t.icon ? /* @__PURE__ */ e("span", {
|
|
13604
13626
|
className: "control-panel__nav-icon",
|
|
13605
13627
|
style: t.color ? { color: t.color } : void 0,
|
|
13606
|
-
children: /* @__PURE__ */ e(
|
|
13628
|
+
children: /* @__PURE__ */ e(G, { name: t.icon })
|
|
13607
13629
|
}) : t.color && /* @__PURE__ */ e("span", {
|
|
13608
13630
|
className: "control-panel__nav-dot",
|
|
13609
13631
|
style: { backgroundColor: t.color }
|
|
@@ -13666,7 +13688,7 @@ var Gr = [{
|
|
|
13666
13688
|
}, o.value))
|
|
13667
13689
|
})
|
|
13668
13690
|
}),
|
|
13669
|
-
a && a.options.length > 0 && /* @__PURE__ */ r(
|
|
13691
|
+
a && a.options.length > 0 && /* @__PURE__ */ r(l1, { children: [l && /* @__PURE__ */ e(a0, { spacing: 0 }), /* @__PURE__ */ r("div", {
|
|
13670
13692
|
className: "control-panel__option control-panel__option--group-by",
|
|
13671
13693
|
children: [/* @__PURE__ */ e("span", {
|
|
13672
13694
|
className: "control-panel__filter-title",
|
|
@@ -13683,7 +13705,7 @@ var Gr = [{
|
|
|
13683
13705
|
})
|
|
13684
13706
|
})]
|
|
13685
13707
|
})] }),
|
|
13686
|
-
s && /* @__PURE__ */ r(
|
|
13708
|
+
s && /* @__PURE__ */ r(l1, { children: [(l || a && a.options.length > 0) && /* @__PURE__ */ e(a0, { spacing: 0 }), /* @__PURE__ */ r("div", {
|
|
13687
13709
|
className: "control-panel__option control-panel__option--chips",
|
|
13688
13710
|
children: [/* @__PURE__ */ e("span", {
|
|
13689
13711
|
className: "control-panel__filter-title",
|
|
@@ -13723,7 +13745,7 @@ var Gr = [{
|
|
|
13723
13745
|
}),
|
|
13724
13746
|
children: n.label
|
|
13725
13747
|
}),
|
|
13726
|
-
n.type === "radio" && /* @__PURE__ */ r(
|
|
13748
|
+
n.type === "radio" && /* @__PURE__ */ r(l1, { children: [n.label && /* @__PURE__ */ e("span", {
|
|
13727
13749
|
className: "control-panel__filter-title",
|
|
13728
13750
|
children: n.label
|
|
13729
13751
|
}), /* @__PURE__ */ e("div", {
|
|
@@ -13749,7 +13771,7 @@ var Gr = [{
|
|
|
13749
13771
|
type: "radio",
|
|
13750
13772
|
value: p.value
|
|
13751
13773
|
}),
|
|
13752
|
-
p.icon && /* @__PURE__ */ e(
|
|
13774
|
+
p.icon && /* @__PURE__ */ e(G, { name: p.icon }),
|
|
13753
13775
|
/* @__PURE__ */ e("span", {
|
|
13754
13776
|
className: "control-panel__filter-label",
|
|
13755
13777
|
children: p.label
|
|
@@ -13757,13 +13779,13 @@ var Gr = [{
|
|
|
13757
13779
|
]
|
|
13758
13780
|
})
|
|
13759
13781
|
});
|
|
13760
|
-
return p.title ? /* @__PURE__ */ e(
|
|
13782
|
+
return p.title ? /* @__PURE__ */ e(K, {
|
|
13761
13783
|
title: p.title,
|
|
13762
13784
|
children: v
|
|
13763
13785
|
}, p.value) : /* @__PURE__ */ e(E1.Fragment, { children: v }, p.value);
|
|
13764
13786
|
})
|
|
13765
13787
|
})] }),
|
|
13766
|
-
n.type === "chips" && /* @__PURE__ */ r(
|
|
13788
|
+
n.type === "chips" && /* @__PURE__ */ r(l1, { children: [n.label && /* @__PURE__ */ e("span", {
|
|
13767
13789
|
className: "control-panel__filter-title",
|
|
13768
13790
|
children: n.label
|
|
13769
13791
|
}), /* @__PURE__ */ e("div", {
|
|
@@ -13805,7 +13827,7 @@ var Gr = [{
|
|
|
13805
13827
|
"--control-panel-width": t,
|
|
13806
13828
|
"--control-panel-shadow": d
|
|
13807
13829
|
}, 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(
|
|
13830
|
+
return /* @__PURE__ */ r(l1, { children: [o && N && L && /* @__PURE__ */ e("div", {
|
|
13809
13831
|
className: S,
|
|
13810
13832
|
onClick: y
|
|
13811
13833
|
}), /* @__PURE__ */ r("aside", {
|
|
@@ -13843,7 +13865,7 @@ var Gr = [{
|
|
|
13843
13865
|
})]
|
|
13844
13866
|
}), g.map((O) => /* @__PURE__ */ e(Dr, {
|
|
13845
13867
|
filter: O,
|
|
13846
|
-
onChange: (
|
|
13868
|
+
onChange: (s1) => v?.(s1)
|
|
13847
13869
|
}, O.id))]
|
|
13848
13870
|
}),
|
|
13849
13871
|
P && D && /* @__PURE__ */ e(a0, { spacing: 0 }),
|
|
@@ -13876,7 +13898,7 @@ var Gr = [{
|
|
|
13876
13898
|
variant: t.variant ?? "default",
|
|
13877
13899
|
children: t.label
|
|
13878
13900
|
});
|
|
13879
|
-
return /* @__PURE__ */ r(
|
|
13901
|
+
return /* @__PURE__ */ r(l1, { children: [t.tooltip ? /* @__PURE__ */ e(K, {
|
|
13880
13902
|
title: t.tooltip,
|
|
13881
13903
|
position: "right",
|
|
13882
13904
|
children: n
|
|
@@ -13940,7 +13962,7 @@ var Gr = [{
|
|
|
13940
13962
|
children: o ? void 0 : t || b
|
|
13941
13963
|
});
|
|
13942
13964
|
}, Wr = ({ code: t, size: c = "md", className: l = "" }) => {
|
|
13943
|
-
if (!t) return /* @__PURE__ */ e(
|
|
13965
|
+
if (!t) return /* @__PURE__ */ e(K, {
|
|
13944
13966
|
title: `Unsupported country code: ${t}`,
|
|
13945
13967
|
children: /* @__PURE__ */ e("div", {
|
|
13946
13968
|
className: `flags flags--fallback flags--${c} ${l}`,
|
|
@@ -13953,7 +13975,7 @@ var Gr = [{
|
|
|
13953
13975
|
children: [/* @__PURE__ */ e("source", {
|
|
13954
13976
|
srcSet: s,
|
|
13955
13977
|
type: "image/webp"
|
|
13956
|
-
}), /* @__PURE__ */ e(
|
|
13978
|
+
}), /* @__PURE__ */ e(K, {
|
|
13957
13979
|
title: `Country: ${t.toUpperCase()}`,
|
|
13958
13980
|
children: /* @__PURE__ */ e("img", {
|
|
13959
13981
|
src: a,
|
|
@@ -13982,7 +14004,7 @@ var Gr = [{
|
|
|
13982
14004
|
const o = c ? (a - 1) * t + 1 : 0, i = Math.min(a * t, c), n = s ? ` ${s}` : "";
|
|
13983
14005
|
return c === l ? `Showing ${o}-${i} of ${l}${n}` : `Showing ${o}-${i} of ${c} filtered${n} (${l} total)`;
|
|
13984
14006
|
}, J1 = ({ icon: t, title: c, description: l, noCard: a, primary: s, secondary: o, children: i }) => {
|
|
13985
|
-
const n = s || o, d = typeof t == "string" ? /* @__PURE__ */ e(
|
|
14007
|
+
const n = s || o, d = typeof t == "string" ? /* @__PURE__ */ e(G, {
|
|
13986
14008
|
name: t,
|
|
13987
14009
|
size: "xxxl"
|
|
13988
14010
|
}) : t;
|
|
@@ -14063,13 +14085,12 @@ var Gr = [{
|
|
|
14063
14085
|
onClick: () => typeof b == "number" && a(b),
|
|
14064
14086
|
children: b
|
|
14065
14087
|
}, M)),
|
|
14066
|
-
/* @__PURE__ */
|
|
14088
|
+
/* @__PURE__ */ r(F, {
|
|
14067
14089
|
variant: "default",
|
|
14068
14090
|
borders: "sharp",
|
|
14069
14091
|
disabled: t === c,
|
|
14070
|
-
sufixIcon: "»",
|
|
14071
14092
|
onClick: () => a(t + 1),
|
|
14072
|
-
children: m("desktop") ? "Next" : ""
|
|
14093
|
+
children: [m("desktop") ? "Next" : "", /* @__PURE__ */ e(G, { name: "next" })]
|
|
14073
14094
|
})
|
|
14074
14095
|
]
|
|
14075
14096
|
}),
|
|
@@ -14168,7 +14189,7 @@ var Gr = [{
|
|
|
14168
14189
|
500
|
|
14169
14190
|
], H2 = (t) => typeof t.header == "string" ? t.header : t.key, lc = (t) => typeof t == "number" ? `${t}px` : t, S2 = (t) => /* @__PURE__ */ r("span", {
|
|
14170
14191
|
className: "data-view__column-label",
|
|
14171
|
-
children: [t.icon && /* @__PURE__ */ e(
|
|
14192
|
+
children: [t.icon && /* @__PURE__ */ e(G, {
|
|
14172
14193
|
className: "data-view__column-icon",
|
|
14173
14194
|
name: t.icon,
|
|
14174
14195
|
size: "sm",
|
|
@@ -14178,7 +14199,7 @@ var Gr = [{
|
|
|
14178
14199
|
const l = t.cellIcon?.(c), a = t.accessor ? t.accessor(c) : c[t.key];
|
|
14179
14200
|
return l ? /* @__PURE__ */ r("span", {
|
|
14180
14201
|
className: "data-view__cell-with-icon",
|
|
14181
|
-
children: [/* @__PURE__ */ e(
|
|
14202
|
+
children: [/* @__PURE__ */ e(G, {
|
|
14182
14203
|
className: "data-view__cell-icon",
|
|
14183
14204
|
name: l
|
|
14184
14205
|
}), /* @__PURE__ */ e("span", { children: a })]
|
|
@@ -14198,15 +14219,17 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14198
14219
|
secondary: h.secondary
|
|
14199
14220
|
}) : /* @__PURE__ */ e(J1, { title: "No data available" });
|
|
14200
14221
|
const S = (k, A) => {
|
|
14201
|
-
const D = H.get(A), P = l(k, A), O = m && p.includes(P),
|
|
14222
|
+
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 = ($) => {
|
|
14202
14223
|
$.metaKey || $.ctrlKey || $.shiftKey || $.altKey || $.button !== 0 || i && ($.preventDefault(), i(k, $));
|
|
14203
|
-
}, I = /* @__PURE__ */ r(
|
|
14204
|
-
|
|
14205
|
-
className: "data-view__card-pin",
|
|
14224
|
+
}, I = /* @__PURE__ */ r(l1, { children: [
|
|
14225
|
+
s1 && /* @__PURE__ */ e(K, {
|
|
14206
14226
|
title: "Pinned",
|
|
14207
|
-
children: /* @__PURE__ */ e(
|
|
14208
|
-
|
|
14209
|
-
|
|
14227
|
+
children: /* @__PURE__ */ e("span", {
|
|
14228
|
+
className: "data-view__card-pin",
|
|
14229
|
+
children: /* @__PURE__ */ e(G, {
|
|
14230
|
+
name: "pin",
|
|
14231
|
+
size: "sm"
|
|
14232
|
+
})
|
|
14210
14233
|
})
|
|
14211
14234
|
}),
|
|
14212
14235
|
m && w && /* @__PURE__ */ e("div", {
|
|
@@ -14229,7 +14252,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14229
14252
|
className: "data-view__card-title-row",
|
|
14230
14253
|
children: [/* @__PURE__ */ r("div", {
|
|
14231
14254
|
className: "data-view__card-title-line",
|
|
14232
|
-
children: [$ && /* @__PURE__ */ e(
|
|
14255
|
+
children: [$ && /* @__PURE__ */ e(G, {
|
|
14233
14256
|
className: "data-view__card-icon",
|
|
14234
14257
|
name: $
|
|
14235
14258
|
}), /* @__PURE__ */ e("span", {
|
|
@@ -14268,7 +14291,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14268
14291
|
return /* @__PURE__ */ r(E1.Fragment, { children: [D && /* @__PURE__ */ e(cc, { marker: D }), V ? /* @__PURE__ */ e("a", {
|
|
14269
14292
|
className: X,
|
|
14270
14293
|
href: V,
|
|
14271
|
-
onClick:
|
|
14294
|
+
onClick: i1,
|
|
14272
14295
|
children: I
|
|
14273
14296
|
}) : /* @__PURE__ */ e("div", {
|
|
14274
14297
|
className: X,
|
|
@@ -14298,7 +14321,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14298
14321
|
className: "data-view__group-count",
|
|
14299
14322
|
children: A.totalCount
|
|
14300
14323
|
}),
|
|
14301
|
-
x && /* @__PURE__ */ e(
|
|
14324
|
+
x && /* @__PURE__ */ e(G, {
|
|
14302
14325
|
className: "data-view__group-chevron",
|
|
14303
14326
|
name: P ? "caret-down" : "caret-up",
|
|
14304
14327
|
size: "sm"
|
|
@@ -14307,7 +14330,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14307
14330
|
}), !P && /* @__PURE__ */ e("div", {
|
|
14308
14331
|
className: L,
|
|
14309
14332
|
style: y,
|
|
14310
|
-
children: A.items.map((O,
|
|
14333
|
+
children: A.items.map((O, s1) => S(O, D + s1))
|
|
14311
14334
|
})]
|
|
14312
14335
|
}, A.key ?? "__null__");
|
|
14313
14336
|
})
|
|
@@ -14338,7 +14361,7 @@ function ic({ config: t }) {
|
|
|
14338
14361
|
onClick: () => n((h) => !h),
|
|
14339
14362
|
children: /* @__PURE__ */ r("span", {
|
|
14340
14363
|
className: "data-view__column-selector-label",
|
|
14341
|
-
children: [s, /* @__PURE__ */ e(
|
|
14364
|
+
children: [s, /* @__PURE__ */ e(G, {
|
|
14342
14365
|
name: "caret-down",
|
|
14343
14366
|
size: "sm"
|
|
14344
14367
|
})]
|
|
@@ -14369,12 +14392,12 @@ var nc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14369
14392
|
].filter(Boolean).join(" "),
|
|
14370
14393
|
children: [t.map((n, d) => {
|
|
14371
14394
|
const h = n.direction ?? "asc", m = o ? c === n.value : c === n.value && l === h;
|
|
14372
|
-
return /* @__PURE__ */ e(
|
|
14395
|
+
return /* @__PURE__ */ e(K, {
|
|
14373
14396
|
title: `Sort by ${typeof n.label == "string" || typeof n.label == "number" ? String(n.label) : n.value}${o ? "" : ` ${h === "asc" ? "ascending" : "descending"}`}`,
|
|
14374
14397
|
children: /* @__PURE__ */ e(F, {
|
|
14375
14398
|
className: `mini-sort__button${m ? " is-active" : ""}`,
|
|
14376
14399
|
disabled: n.disabled,
|
|
14377
|
-
icon: n.icon ? /* @__PURE__ */ e(
|
|
14400
|
+
icon: n.icon ? /* @__PURE__ */ e(G, {
|
|
14378
14401
|
className: "mini-sort__icon",
|
|
14379
14402
|
name: n.icon,
|
|
14380
14403
|
size: "sm",
|
|
@@ -14386,12 +14409,12 @@ var nc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14386
14409
|
children: n.label ?? n.value
|
|
14387
14410
|
})
|
|
14388
14411
|
}, `${n.value}-${d}`);
|
|
14389
|
-
}), o && /* @__PURE__ */ e(
|
|
14412
|
+
}), o && /* @__PURE__ */ e(K, {
|
|
14390
14413
|
title: `Direction: ${l === "asc" ? "ascending" : "descending"}`,
|
|
14391
14414
|
children: /* @__PURE__ */ e(F, {
|
|
14392
14415
|
className: "mini-sort__button mini-sort__direction",
|
|
14393
14416
|
disabled: c === null,
|
|
14394
|
-
icon: /* @__PURE__ */ e(
|
|
14417
|
+
icon: /* @__PURE__ */ e(G, {
|
|
14395
14418
|
className: "mini-sort__icon",
|
|
14396
14419
|
name: l === "asc" ? "arrow-up" : "arrow-down",
|
|
14397
14420
|
size: "sm",
|
|
@@ -14425,46 +14448,46 @@ function oc({ columns: t, config: c, sortDirection: l, sortKey: a, onSort: s })
|
|
|
14425
14448
|
function sc({ state: t }) {
|
|
14426
14449
|
return /* @__PURE__ */ e("span", {
|
|
14427
14450
|
className: `data-view__sort-icon data-view__sort-icon--${t}`,
|
|
14428
|
-
children: /* @__PURE__ */ e(
|
|
14451
|
+
children: /* @__PURE__ */ e(G, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
14429
14452
|
});
|
|
14430
14453
|
}
|
|
14431
|
-
function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = i2, initialPageSize: d = i2[1], showPageSize: h = !0, card: m, actions: p, actionsWidth: g, timeline: w, onRowClick: v, rowHref: u, rowClassName: f, rowDetail: C, empty: x, initialSortKey: b = null, initialSortDirection: M = "asc", sortKey: _, sortDirection: N, onSortChange: L, miniSort: y, showCardSortControls: H = !0, desktopView: S = "table", cardMaxWidth: k, className: A, onPageChange: D, onPageSizeChange: P, currentPage: O, totalItems:
|
|
14432
|
-
const { isMobile: p1 } = h0(), [
|
|
14433
|
-
f1((
|
|
14434
|
-
const
|
|
14435
|
-
return
|
|
14454
|
+
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: $ }) {
|
|
14455
|
+
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) => {
|
|
14456
|
+
f1((e1) => {
|
|
14457
|
+
const d1 = new Set(e1);
|
|
14458
|
+
return d1.has(R) ? d1.delete(R) : d1.add(R), d1;
|
|
14436
14459
|
});
|
|
14437
|
-
}, D1 = (R,
|
|
14438
|
-
O === void 0 &&
|
|
14439
|
-
}, _1 = _ !== void 0 ? _ :
|
|
14440
|
-
_ === void 0 && W(R), N === void 0 && v1(
|
|
14460
|
+
}, D1 = (R, e1) => l?.(R, e1) ?? e1, Y1 = (R) => {
|
|
14461
|
+
O === void 0 && Q(R), D?.(R);
|
|
14462
|
+
}, _1 = _ !== void 0 ? _ : h1, L1 = N ?? o1, T1 = (R, e1) => {
|
|
14463
|
+
_ === void 0 && W(R), N === void 0 && v1(e1), L?.({
|
|
14441
14464
|
key: R,
|
|
14442
|
-
direction:
|
|
14465
|
+
direction: e1
|
|
14443
14466
|
}), Y1(1);
|
|
14444
14467
|
}, t0 = m1(() => new Set(a ?? []), [a]), C1 = m1(() => {
|
|
14445
14468
|
let R = c;
|
|
14446
14469
|
if (_1) {
|
|
14447
|
-
const
|
|
14448
|
-
if (
|
|
14449
|
-
const
|
|
14450
|
-
const z1 = N1[
|
|
14470
|
+
const t1 = t.find((a1) => a1.key === _1);
|
|
14471
|
+
if (t1) {
|
|
14472
|
+
const a1 = t1.sortAccessor || t1.accessor || ((N1) => {
|
|
14473
|
+
const z1 = N1[t1.key];
|
|
14451
14474
|
return typeof z1 == "string" || typeof z1 == "number" ? z1 : "";
|
|
14452
14475
|
}), u1 = [...c].sort((N1, z1) => {
|
|
14453
|
-
const R1 =
|
|
14476
|
+
const R1 = a1(N1), x1 = a1(z1);
|
|
14454
14477
|
return typeof R1 == "number" && typeof x1 == "number" ? R1 - x1 : String(R1).localeCompare(String(x1));
|
|
14455
14478
|
});
|
|
14456
14479
|
R = L1 === "asc" ? u1 : u1.reverse();
|
|
14457
14480
|
}
|
|
14458
14481
|
}
|
|
14459
14482
|
if (t0.size === 0) return R;
|
|
14460
|
-
const
|
|
14461
|
-
if (R.forEach((
|
|
14462
|
-
t0.has(D1(
|
|
14463
|
-
}), a && a.length > 1 &&
|
|
14464
|
-
const
|
|
14465
|
-
|
|
14483
|
+
const e1 = [], d1 = [];
|
|
14484
|
+
if (R.forEach((t1, a1) => {
|
|
14485
|
+
t0.has(D1(t1, a1)) ? e1.push(t1) : d1.push(t1);
|
|
14486
|
+
}), a && a.length > 1 && e1.length > 1) {
|
|
14487
|
+
const t1 = new Map(a.map((a1, u1) => [a1, u1]));
|
|
14488
|
+
e1.sort((a1, u1) => (t1.get(D1(a1, 0)) ?? 0) - (t1.get(D1(u1, 0)) ?? 0));
|
|
14466
14489
|
}
|
|
14467
|
-
return [...
|
|
14490
|
+
return [...e1, ...d1];
|
|
14468
14491
|
}, [
|
|
14469
14492
|
t,
|
|
14470
14493
|
c,
|
|
@@ -14472,50 +14495,50 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14472
14495
|
_1,
|
|
14473
14496
|
t0,
|
|
14474
14497
|
a
|
|
14475
|
-
]), I1 =
|
|
14498
|
+
]), 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(() => {
|
|
14476
14499
|
if (!V) return null;
|
|
14477
14500
|
const R = /* @__PURE__ */ new Map();
|
|
14478
|
-
return C1.forEach((
|
|
14479
|
-
const
|
|
14480
|
-
R.set(
|
|
14501
|
+
return C1.forEach((e1) => {
|
|
14502
|
+
const d1 = V.groupBy(e1);
|
|
14503
|
+
R.set(d1, (R.get(d1) ?? 0) + 1);
|
|
14481
14504
|
}), R;
|
|
14482
|
-
}, [V, C1]),
|
|
14505
|
+
}, [V, C1]), c1 = m1(() => {
|
|
14483
14506
|
if (!V || !q) return null;
|
|
14484
|
-
const R = /* @__PURE__ */ new Map(),
|
|
14485
|
-
|
|
14486
|
-
const
|
|
14487
|
-
u1 ? u1.push(
|
|
14507
|
+
const R = /* @__PURE__ */ new Map(), e1 = [];
|
|
14508
|
+
E.forEach((t1) => {
|
|
14509
|
+
const a1 = V.groupBy(t1), u1 = R.get(a1);
|
|
14510
|
+
u1 ? u1.push(t1) : (R.set(a1, [t1]), e1.push(a1));
|
|
14488
14511
|
});
|
|
14489
|
-
const
|
|
14490
|
-
key:
|
|
14491
|
-
label: V.groupLabel(
|
|
14492
|
-
items: R.get(
|
|
14493
|
-
totalCount: q.get(
|
|
14512
|
+
const d1 = e1.map((t1) => ({
|
|
14513
|
+
key: t1,
|
|
14514
|
+
label: V.groupLabel(t1),
|
|
14515
|
+
items: R.get(t1),
|
|
14516
|
+
totalCount: q.get(t1) ?? 0
|
|
14494
14517
|
}));
|
|
14495
|
-
return V.sortGroups ?
|
|
14518
|
+
return V.sortGroups ? d1.sort(V.sortGroups) : d1.sort((t1, a1) => t1.key === null ? 1 : a1.key === null ? -1 : 0), d1;
|
|
14496
14519
|
}, [
|
|
14497
14520
|
V,
|
|
14498
14521
|
q,
|
|
14499
|
-
|
|
14500
|
-
]), K1 = m1(() => w ? q0(
|
|
14522
|
+
E
|
|
14523
|
+
]), K1 = m1(() => w ? q0(E.map((R) => ({
|
|
14501
14524
|
id: w.idAccessor(R),
|
|
14502
14525
|
date: w.dateAccessor(R)
|
|
14503
|
-
})), w.granularity) : /* @__PURE__ */ new Map(), [
|
|
14504
|
-
i === void 0 && k1(R), o?.(c.filter((
|
|
14526
|
+
})), w.granularity) : /* @__PURE__ */ new Map(), [E, w]), j1 = (R) => {
|
|
14527
|
+
i === void 0 && k1(R), o?.(c.filter((e1, d1) => R.includes(D1(e1, d1))));
|
|
14505
14528
|
}, b0 = (R) => {
|
|
14506
14529
|
R.sortable && (_1 === R.key ? T1(R.key, L1 === "asc" ? "desc" : "asc") : T1(R.key, "asc"));
|
|
14507
|
-
}, U2 = (R,
|
|
14530
|
+
}, U2 = (R, e1) => {
|
|
14508
14531
|
R.preventDefault();
|
|
14509
|
-
const
|
|
14510
|
-
const z1 = N1.clientX -
|
|
14511
|
-
|
|
14532
|
+
const d1 = R.clientX, t1 = J[e1] ?? 150, a1 = (N1) => {
|
|
14533
|
+
const z1 = N1.clientX - d1, R1 = t.find((x1) => x1.key === e1)?.minWidth ?? 120;
|
|
14534
|
+
n1((x1) => ({
|
|
14512
14535
|
...x1,
|
|
14513
|
-
[
|
|
14536
|
+
[e1]: Math.max(R1, t1 + z1)
|
|
14514
14537
|
}));
|
|
14515
14538
|
}, u1 = () => {
|
|
14516
|
-
window.removeEventListener("mousemove",
|
|
14539
|
+
window.removeEventListener("mousemove", a1), window.removeEventListener("mouseup", u1);
|
|
14517
14540
|
};
|
|
14518
|
-
window.addEventListener("mousemove",
|
|
14541
|
+
window.addEventListener("mousemove", a1), window.addEventListener("mouseup", u1);
|
|
14519
14542
|
}, O0 = t.some((R) => R.filter), N0 = t.filter((R) => R.sortable), F2 = N0.map((R) => ({
|
|
14520
14543
|
label: H2(R),
|
|
14521
14544
|
value: R.key
|
|
@@ -14567,11 +14590,11 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14567
14590
|
T1(null, L1);
|
|
14568
14591
|
return;
|
|
14569
14592
|
}
|
|
14570
|
-
const
|
|
14571
|
-
T1(
|
|
14593
|
+
const e1 = String(R.value);
|
|
14594
|
+
T1(e1, _1 === e1 ? L1 : "asc");
|
|
14572
14595
|
}
|
|
14573
14596
|
})
|
|
14574
|
-
}), /* @__PURE__ */ e(
|
|
14597
|
+
}), /* @__PURE__ */ e(K, {
|
|
14575
14598
|
title: L1 === "asc" ? "Sort descending" : "Sort ascending",
|
|
14576
14599
|
children: /* @__PURE__ */ e(F, {
|
|
14577
14600
|
className: "data-view__card-sort-direction",
|
|
@@ -14580,7 +14603,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14580
14603
|
H0 && T1(H0.key, L1 === "asc" ? "desc" : "asc");
|
|
14581
14604
|
},
|
|
14582
14605
|
variant: "ghost",
|
|
14583
|
-
children: /* @__PURE__ */ e(
|
|
14606
|
+
children: /* @__PURE__ */ e(G, { name: L1 === "asc" ? "arrow-up" : "arrow-down" })
|
|
14584
14607
|
})
|
|
14585
14608
|
})]
|
|
14586
14609
|
}),
|
|
@@ -14592,7 +14615,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14592
14615
|
}, R.key))
|
|
14593
14616
|
}),
|
|
14594
14617
|
/* @__PURE__ */ e(ac, {
|
|
14595
|
-
data:
|
|
14618
|
+
data: E,
|
|
14596
14619
|
columns: t,
|
|
14597
14620
|
rowKey: D1,
|
|
14598
14621
|
card: m,
|
|
@@ -14607,13 +14630,13 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14607
14630
|
pinnedIds: a,
|
|
14608
14631
|
cardMaxWidth: k,
|
|
14609
14632
|
isMobile: p1,
|
|
14610
|
-
groups:
|
|
14633
|
+
groups: c1 ?? void 0,
|
|
14611
14634
|
showGroupCount: V?.showCount !== !1,
|
|
14612
14635
|
collapsible: V?.collapsible,
|
|
14613
14636
|
collapsedGroups: b1,
|
|
14614
14637
|
onToggleGroup: B1,
|
|
14615
|
-
onToggleSelect: (R,
|
|
14616
|
-
j1(
|
|
14638
|
+
onToggleSelect: (R, e1) => {
|
|
14639
|
+
j1(e1 ? [...g1, R] : g1.filter((d1) => d1 !== R));
|
|
14617
14640
|
}
|
|
14618
14641
|
}),
|
|
14619
14642
|
/* @__PURE__ */ e(a2, {
|
|
@@ -14629,7 +14652,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14629
14652
|
})
|
|
14630
14653
|
]
|
|
14631
14654
|
});
|
|
14632
|
-
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(
|
|
14655
|
+
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: [
|
|
14633
14656
|
S0,
|
|
14634
14657
|
/* @__PURE__ */ e("div", {
|
|
14635
14658
|
className: "data-view__wrapper",
|
|
@@ -14646,9 +14669,9 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14646
14669
|
})
|
|
14647
14670
|
}),
|
|
14648
14671
|
d0.map((R) => {
|
|
14649
|
-
const
|
|
14650
|
-
return
|
|
14651
|
-
style: Object.keys(
|
|
14672
|
+
const e1 = {};
|
|
14673
|
+
return J[R.key] && (e1.width = J[R.key]), R.minWidth && (e1.minWidth = R.minWidth), /* @__PURE__ */ r("th", {
|
|
14674
|
+
style: Object.keys(e1).length > 0 ? e1 : void 0,
|
|
14652
14675
|
className: R.sortable ? "is-sortable" : "",
|
|
14653
14676
|
onClick: () => b0(R),
|
|
14654
14677
|
children: [/* @__PURE__ */ r("span", {
|
|
@@ -14656,8 +14679,8 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14656
14679
|
children: [S2(R), R.sortable && /* @__PURE__ */ e(sc, { state: _1 === R.key ? L1 : "unsorted" })]
|
|
14657
14680
|
}), /* @__PURE__ */ e("span", {
|
|
14658
14681
|
className: "data-view__resizer",
|
|
14659
|
-
onMouseDown: (
|
|
14660
|
-
onClick: (
|
|
14682
|
+
onMouseDown: (d1) => U2(d1, R.key),
|
|
14683
|
+
onClick: (d1) => d1.stopPropagation()
|
|
14661
14684
|
})]
|
|
14662
14685
|
}, R.key);
|
|
14663
14686
|
}),
|
|
@@ -14673,13 +14696,13 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14673
14696
|
s && /* @__PURE__ */ e("td", { className: "data-view__filter-cell data-view__filter-cell--spacer" }),
|
|
14674
14697
|
d0.map((R) => /* @__PURE__ */ e("td", {
|
|
14675
14698
|
className: "data-view__filter-cell",
|
|
14676
|
-
style:
|
|
14699
|
+
style: J[R.key] ? { width: J[R.key] } : void 0,
|
|
14677
14700
|
children: R.filter ?? null
|
|
14678
14701
|
}, R.key)),
|
|
14679
14702
|
p && /* @__PURE__ */ e("td", { className: "data-view__filter-cell data-view__filter-cell--spacer" })
|
|
14680
14703
|
]
|
|
14681
14704
|
})] }), /* @__PURE__ */ e("tbody", { children: (() => {
|
|
14682
|
-
if (
|
|
14705
|
+
if (E.length === 0) return /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", {
|
|
14683
14706
|
colSpan: d0.length + (c0 ? 1 : 0) + (s ? 1 : 0) + (p ? 1 : 0),
|
|
14684
14707
|
className: "data-view__empty",
|
|
14685
14708
|
children: x ? /* @__PURE__ */ e(J1, {
|
|
@@ -14690,18 +14713,18 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14690
14713
|
secondary: x.secondary
|
|
14691
14714
|
}) : /* @__PURE__ */ e(J1, { title: "No data available" })
|
|
14692
14715
|
}) });
|
|
14693
|
-
const R = d0.length + (c0 ? 1 : 0) + (s ? 1 : 0) + (p ? 1 : 0),
|
|
14694
|
-
const u1 = D1(
|
|
14716
|
+
const R = d0.length + (c0 ? 1 : 0) + (s ? 1 : 0) + (p ? 1 : 0), e1 = V?.showCount !== !1, d1 = (t1, a1) => {
|
|
14717
|
+
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) => {
|
|
14695
14718
|
if (x1 && (w1.metaKey || w1.ctrlKey || w1.shiftKey)) {
|
|
14696
14719
|
window.open(x1, "_blank", "noopener,noreferrer");
|
|
14697
14720
|
return;
|
|
14698
14721
|
}
|
|
14699
|
-
v?.(
|
|
14722
|
+
v?.(t1, w1);
|
|
14700
14723
|
}, Q2 = (w1) => {
|
|
14701
14724
|
w1.button !== 1 || !x1 || (w1.preventDefault(), window.open(x1, "_blank", "noopener,noreferrer"));
|
|
14702
|
-
}, B0 = C?.(
|
|
14725
|
+
}, B0 = C?.(t1);
|
|
14703
14726
|
return /* @__PURE__ */ r(E1.Fragment, { children: [/* @__PURE__ */ r("tr", {
|
|
14704
|
-
className: `${N1 ? "is-selected" : ""} ${Q0 ? "data-view__row--clickable" : ""} ${z1 ? "data-view__row--pinned" : ""} ${f?.(
|
|
14727
|
+
className: `${N1 ? "is-selected" : ""} ${Q0 ? "data-view__row--clickable" : ""} ${z1 ? "data-view__row--pinned" : ""} ${f?.(t1) || ""}`,
|
|
14705
14728
|
onClick: Q0 ? K2 : void 0,
|
|
14706
14729
|
onAuxClick: x1 ? Q2 : void 0,
|
|
14707
14730
|
children: [
|
|
@@ -14719,15 +14742,15 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14719
14742
|
})
|
|
14720
14743
|
}),
|
|
14721
14744
|
d0.map((w1, R0) => /* @__PURE__ */ r("td", {
|
|
14722
|
-
style:
|
|
14723
|
-
children: [R0 === 0 && z1 && /* @__PURE__ */ e(
|
|
14745
|
+
style: J[w1.key] ? { width: J[w1.key] } : void 0,
|
|
14746
|
+
children: [R0 === 0 && z1 && /* @__PURE__ */ e(K, {
|
|
14724
14747
|
title: "Pinned",
|
|
14725
|
-
children: /* @__PURE__ */ e(
|
|
14748
|
+
children: /* @__PURE__ */ e(G, {
|
|
14726
14749
|
className: "data-view__pin-indicator",
|
|
14727
14750
|
name: "pin",
|
|
14728
14751
|
size: "sm"
|
|
14729
14752
|
})
|
|
14730
|
-
}), B2(w1,
|
|
14753
|
+
}), B2(w1, t1)]
|
|
14731
14754
|
}, w1.key)),
|
|
14732
14755
|
p && /* @__PURE__ */ e("td", {
|
|
14733
14756
|
className: "data-view__actions-cell",
|
|
@@ -14735,7 +14758,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14735
14758
|
children: /* @__PURE__ */ e("div", {
|
|
14736
14759
|
className: "data-view__table-actions",
|
|
14737
14760
|
onClick: (w1) => w1.stopPropagation(),
|
|
14738
|
-
children: p(
|
|
14761
|
+
children: p(t1)
|
|
14739
14762
|
})
|
|
14740
14763
|
})
|
|
14741
14764
|
]
|
|
@@ -14748,38 +14771,38 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14748
14771
|
})
|
|
14749
14772
|
})] }, u1);
|
|
14750
14773
|
};
|
|
14751
|
-
if (
|
|
14752
|
-
let
|
|
14753
|
-
return
|
|
14754
|
-
const u1 =
|
|
14755
|
-
|
|
14756
|
-
const N1 = V?.collapsible && b1.has(
|
|
14774
|
+
if (c1) {
|
|
14775
|
+
let t1 = 0;
|
|
14776
|
+
return c1.map((a1) => {
|
|
14777
|
+
const u1 = t1;
|
|
14778
|
+
t1 += a1.items.length;
|
|
14779
|
+
const N1 = V?.collapsible && b1.has(a1.key);
|
|
14757
14780
|
return /* @__PURE__ */ r(E1.Fragment, { children: [/* @__PURE__ */ e("tr", {
|
|
14758
14781
|
className: `data-view__group-row${V?.collapsible ? " data-view__group-row--collapsible" : ""}`,
|
|
14759
|
-
onClick: V?.collapsible ? () => B1(
|
|
14782
|
+
onClick: V?.collapsible ? () => B1(a1.key) : void 0,
|
|
14760
14783
|
children: /* @__PURE__ */ r("td", {
|
|
14761
14784
|
colSpan: R,
|
|
14762
14785
|
className: "data-view__group-cell",
|
|
14763
14786
|
children: [
|
|
14764
14787
|
/* @__PURE__ */ e("span", {
|
|
14765
14788
|
className: "data-view__group-label",
|
|
14766
|
-
children:
|
|
14789
|
+
children: a1.label
|
|
14767
14790
|
}),
|
|
14768
|
-
|
|
14791
|
+
e1 && /* @__PURE__ */ e("span", {
|
|
14769
14792
|
className: "data-view__group-count",
|
|
14770
|
-
children:
|
|
14793
|
+
children: a1.totalCount
|
|
14771
14794
|
}),
|
|
14772
|
-
V?.collapsible && /* @__PURE__ */ e(
|
|
14795
|
+
V?.collapsible && /* @__PURE__ */ e(G, {
|
|
14773
14796
|
className: "data-view__group-chevron",
|
|
14774
14797
|
name: N1 ? "caret-down" : "caret-up",
|
|
14775
14798
|
size: "sm"
|
|
14776
14799
|
})
|
|
14777
14800
|
]
|
|
14778
14801
|
})
|
|
14779
|
-
}), !N1 &&
|
|
14802
|
+
}), !N1 && a1.items.map((z1, R1) => d1(z1, u1 + R1))] }, a1.key ?? "__null__");
|
|
14780
14803
|
});
|
|
14781
14804
|
}
|
|
14782
|
-
return
|
|
14805
|
+
return E.map((t1, a1) => d1(t1, a1));
|
|
14783
14806
|
})() })] })
|
|
14784
14807
|
}),
|
|
14785
14808
|
/* @__PURE__ */ e(a2, {
|
|
@@ -14823,7 +14846,7 @@ var Q1 = (t) => {
|
|
|
14823
14846
|
}), w(null), !o && i && u(!1));
|
|
14824
14847
|
}, P = (W) => {
|
|
14825
14848
|
w(W);
|
|
14826
|
-
}, O = (W) => /^\d{4}-\d{2}-\d{2}$/.test(W) && Q1(W) !== void 0,
|
|
14849
|
+
}, O = (W) => /^\d{4}-\d{2}-\d{2}$/.test(W) && Q1(W) !== void 0, s1 = () => {
|
|
14827
14850
|
O(x) ? A({
|
|
14828
14851
|
...y,
|
|
14829
14852
|
start: x
|
|
@@ -14834,10 +14857,10 @@ var Q1 = (t) => {
|
|
|
14834
14857
|
end: M
|
|
14835
14858
|
}) : _(y.end ?? "");
|
|
14836
14859
|
}, X = (W) => {
|
|
14837
|
-
const
|
|
14860
|
+
const o1 = /* @__PURE__ */ new Date(), v1 = /* @__PURE__ */ new Date();
|
|
14838
14861
|
v1.setDate(v1.getDate() - W), A({
|
|
14839
14862
|
start: x0(v1),
|
|
14840
|
-
end: x0(
|
|
14863
|
+
end: x0(o1)
|
|
14841
14864
|
});
|
|
14842
14865
|
};
|
|
14843
14866
|
U(() => {
|
|
@@ -14845,12 +14868,12 @@ var Q1 = (t) => {
|
|
|
14845
14868
|
}, [y.start]), U(() => {
|
|
14846
14869
|
_(y.end ?? "");
|
|
14847
14870
|
}, [y.end]);
|
|
14848
|
-
const
|
|
14871
|
+
const i1 = m1(() => u0(m, 1), [m]), I = o || v, $ = !o && v, p1 = j(() => {
|
|
14849
14872
|
if (!$ || !N.current || !L.current) return;
|
|
14850
|
-
const W = N.current.getBoundingClientRect(),
|
|
14873
|
+
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));
|
|
14851
14874
|
C({
|
|
14852
14875
|
position: "fixed",
|
|
14853
|
-
top: `${
|
|
14876
|
+
top: `${Q}px`,
|
|
14854
14877
|
left: `${B}px`,
|
|
14855
14878
|
zIndex: 1e3
|
|
14856
14879
|
});
|
|
@@ -14874,36 +14897,38 @@ var Q1 = (t) => {
|
|
|
14874
14897
|
const W = (v1) => {
|
|
14875
14898
|
const y1 = v1.target;
|
|
14876
14899
|
N.current?.contains(y1) || L.current?.contains(y1) || u(!1);
|
|
14877
|
-
},
|
|
14900
|
+
}, o1 = (v1) => {
|
|
14878
14901
|
v1.key === "Escape" && u(!1);
|
|
14879
14902
|
};
|
|
14880
|
-
return document.addEventListener("mousedown", W), document.addEventListener("keydown",
|
|
14881
|
-
document.removeEventListener("mousedown", W), document.removeEventListener("keydown",
|
|
14903
|
+
return document.addEventListener("mousedown", W), document.addEventListener("keydown", o1), () => {
|
|
14904
|
+
document.removeEventListener("mousedown", W), document.removeEventListener("keydown", o1);
|
|
14882
14905
|
};
|
|
14883
14906
|
}, [$]);
|
|
14884
|
-
const
|
|
14907
|
+
const h1 = /* @__PURE__ */ r("div", {
|
|
14885
14908
|
className: "date-range-picker__calendar",
|
|
14886
14909
|
children: [/* @__PURE__ */ r("div", {
|
|
14887
14910
|
className: "date-range-picker__nav",
|
|
14888
14911
|
children: [
|
|
14889
14912
|
/* @__PURE__ */ e(F, {
|
|
14890
14913
|
variant: "default",
|
|
14914
|
+
icon: "caret-left",
|
|
14891
14915
|
onClick: () => p(u0(m, -1)),
|
|
14892
|
-
|
|
14916
|
+
title: "Previous month"
|
|
14893
14917
|
}),
|
|
14894
14918
|
/* @__PURE__ */ r("span", { children: [
|
|
14895
14919
|
m.toLocaleString("default", { month: "long" }),
|
|
14896
14920
|
" ",
|
|
14897
14921
|
m.getFullYear(),
|
|
14898
14922
|
" -",
|
|
14899
|
-
|
|
14923
|
+
i1.toLocaleString("default", { month: "long" }),
|
|
14900
14924
|
" ",
|
|
14901
|
-
|
|
14925
|
+
i1.getFullYear()
|
|
14902
14926
|
] }),
|
|
14903
14927
|
/* @__PURE__ */ e(F, {
|
|
14904
14928
|
variant: "default",
|
|
14929
|
+
icon: "caret-right",
|
|
14905
14930
|
onClick: () => p(u0(m, 1)),
|
|
14906
|
-
|
|
14931
|
+
title: "Next month"
|
|
14907
14932
|
})
|
|
14908
14933
|
]
|
|
14909
14934
|
}), /* @__PURE__ */ r("div", {
|
|
@@ -14926,7 +14951,7 @@ var Q1 = (t) => {
|
|
|
14926
14951
|
onChange: D,
|
|
14927
14952
|
rangeStart: g,
|
|
14928
14953
|
onRangeStartChange: P,
|
|
14929
|
-
currentMonth:
|
|
14954
|
+
currentMonth: i1,
|
|
14930
14955
|
onMonthChange: p,
|
|
14931
14956
|
showHeader: !1,
|
|
14932
14957
|
showToday: !1,
|
|
@@ -14953,7 +14978,7 @@ var Q1 = (t) => {
|
|
|
14953
14978
|
children: W.label
|
|
14954
14979
|
}, W.days))
|
|
14955
14980
|
})]
|
|
14956
|
-
}) : /* @__PURE__ */ r(
|
|
14981
|
+
}) : /* @__PURE__ */ r(l1, { children: [t && /* @__PURE__ */ e("label", {
|
|
14957
14982
|
className: "date-range-picker__label",
|
|
14958
14983
|
children: t
|
|
14959
14984
|
}), n && n.length > 0 && /* @__PURE__ */ e("div", {
|
|
@@ -14973,7 +14998,7 @@ var Q1 = (t) => {
|
|
|
14973
14998
|
placeholder: "YYYY-MM-DD",
|
|
14974
14999
|
maxLength: 10,
|
|
14975
15000
|
onChange: b,
|
|
14976
|
-
onBlur:
|
|
15001
|
+
onBlur: s1
|
|
14977
15002
|
}),
|
|
14978
15003
|
/* @__PURE__ */ e("span", {
|
|
14979
15004
|
className: "date-range-picker__separator",
|
|
@@ -14994,12 +15019,12 @@ var Q1 = (t) => {
|
|
|
14994
15019
|
})
|
|
14995
15020
|
]
|
|
14996
15021
|
}),
|
|
14997
|
-
o && I &&
|
|
15022
|
+
o && I && h1,
|
|
14998
15023
|
$ && q1(/* @__PURE__ */ e("div", {
|
|
14999
15024
|
ref: L,
|
|
15000
15025
|
className: "date-range-picker__overlay",
|
|
15001
15026
|
style: f,
|
|
15002
|
-
children:
|
|
15027
|
+
children: h1
|
|
15003
15028
|
}), document.body)
|
|
15004
15029
|
]
|
|
15005
15030
|
});
|
|
@@ -15077,7 +15102,7 @@ function dc(t, c) {
|
|
|
15077
15102
|
const l = (a) => a.match(/\S+|\s+/g) ?? [];
|
|
15078
15103
|
return R2(l(t), l(c));
|
|
15079
15104
|
}
|
|
15080
|
-
var mc = ({ a: t, b: c, side: l }) => /* @__PURE__ */ e(
|
|
15105
|
+
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", {
|
|
15081
15106
|
className: "dv-word dv-word--del",
|
|
15082
15107
|
children: a.val
|
|
15083
15108
|
}, s) : a.kind === "ins" && l === "new" ? /* @__PURE__ */ e("mark", {
|
|
@@ -15135,7 +15160,7 @@ function vc(t) {
|
|
|
15135
15160
|
}
|
|
15136
15161
|
return c;
|
|
15137
15162
|
}
|
|
15138
|
-
var gc = ({ text: t }) => /* @__PURE__ */ e(
|
|
15163
|
+
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", {
|
|
15139
15164
|
className: `dv-token dv-token--${c.name}`,
|
|
15140
15165
|
children: c.val
|
|
15141
15166
|
}, l)) }), E0 = ({ line: t, side: c, type: l }) => {
|
|
@@ -15144,7 +15169,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15144
15169
|
a: t.oldText,
|
|
15145
15170
|
b: t.newText,
|
|
15146
15171
|
side: c
|
|
15147
|
-
}) : l === "code" ? /* @__PURE__ */ e(gc, { text: a }) : /* @__PURE__ */ e(
|
|
15172
|
+
}) : l === "code" ? /* @__PURE__ */ e(gc, { text: a }) : /* @__PURE__ */ e(l1, { children: a });
|
|
15148
15173
|
}, ba = ({ oldValue: t, newValue: c, mode: l = "split", type: a = "text", oldTitle: s = "Before", newTitle: o = "After", showLineNumbers: i = !0 }) => {
|
|
15149
15174
|
const n = m1(() => hc(t, c), [t, c]), d = m1(() => ({
|
|
15150
15175
|
added: n.filter((h) => h.kind === "added").length,
|
|
@@ -15154,7 +15179,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15154
15179
|
className: `dv dv--${l} dv--${a}`,
|
|
15155
15180
|
children: [/* @__PURE__ */ r("div", {
|
|
15156
15181
|
className: "dv__header",
|
|
15157
|
-
children: [l === "split" ? /* @__PURE__ */ r(
|
|
15182
|
+
children: [l === "split" ? /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", {
|
|
15158
15183
|
className: "dv__header-side",
|
|
15159
15184
|
children: s
|
|
15160
15185
|
}), /* @__PURE__ */ e("div", {
|
|
@@ -15242,7 +15267,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15242
15267
|
children: n.map((h, m) => /* @__PURE__ */ r("div", {
|
|
15243
15268
|
className: `dv__row dv__row--${h.kind}`,
|
|
15244
15269
|
children: [
|
|
15245
|
-
i && /* @__PURE__ */ r(
|
|
15270
|
+
i && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("span", {
|
|
15246
15271
|
className: "dv__lineno",
|
|
15247
15272
|
children: h.kind !== "added" ? h.oldLineNo : ""
|
|
15248
15273
|
}), /* @__PURE__ */ e("span", {
|
|
@@ -15285,7 +15310,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15285
15310
|
"--drawer-shadow": n,
|
|
15286
15311
|
zIndex: y + 1
|
|
15287
15312
|
}, S = M || x || b;
|
|
15288
|
-
return /* @__PURE__ */ r(
|
|
15313
|
+
return /* @__PURE__ */ r(l1, { children: [g && /* @__PURE__ */ e("div", {
|
|
15289
15314
|
className: "drawer-overlay",
|
|
15290
15315
|
onClick: c,
|
|
15291
15316
|
style: { zIndex: y }
|
|
@@ -15296,7 +15321,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15296
15321
|
/* @__PURE__ */ r("div", {
|
|
15297
15322
|
className: "drawer__header",
|
|
15298
15323
|
children: [
|
|
15299
|
-
f && /* @__PURE__ */ e(
|
|
15324
|
+
f && /* @__PURE__ */ e(K, {
|
|
15300
15325
|
title: C,
|
|
15301
15326
|
position: "bottom",
|
|
15302
15327
|
children: /* @__PURE__ */ e(F, {
|
|
@@ -15309,7 +15334,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15309
15334
|
}),
|
|
15310
15335
|
(h || m) && /* @__PURE__ */ r("h2", {
|
|
15311
15336
|
className: "drawer__title",
|
|
15312
|
-
children: [m && /* @__PURE__ */ e(
|
|
15337
|
+
children: [m && /* @__PURE__ */ e(G, { name: m }), h && /* @__PURE__ */ e("span", {
|
|
15313
15338
|
className: "drawer__title-text",
|
|
15314
15339
|
children: h
|
|
15315
15340
|
})]
|
|
@@ -15326,7 +15351,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15326
15351
|
variant: k.variant ?? "ghost",
|
|
15327
15352
|
children: k.label
|
|
15328
15353
|
}), D = k.title ?? k.label;
|
|
15329
|
-
return D ? /* @__PURE__ */ e(
|
|
15354
|
+
return D ? /* @__PURE__ */ e(K, {
|
|
15330
15355
|
title: D,
|
|
15331
15356
|
position: "bottom",
|
|
15332
15357
|
children: A
|
|
@@ -15335,11 +15360,11 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
15335
15360
|
}),
|
|
15336
15361
|
!v && /* @__PURE__ */ e(F, {
|
|
15337
15362
|
className: "drawer__close",
|
|
15363
|
+
icon: "clear",
|
|
15338
15364
|
onClick: c,
|
|
15339
15365
|
size: "medium",
|
|
15340
15366
|
title: "Close drawer",
|
|
15341
|
-
variant: "ghost"
|
|
15342
|
-
children: "×"
|
|
15367
|
+
variant: "ghost"
|
|
15343
15368
|
})
|
|
15344
15369
|
]
|
|
15345
15370
|
}),
|
|
@@ -20553,7 +20578,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
20553
20578
|
const [c, l] = z(!1);
|
|
20554
20579
|
if (t.length === 1) return /* @__PURE__ */ e("div", {
|
|
20555
20580
|
className: "float-button-container",
|
|
20556
|
-
children: /* @__PURE__ */ e(
|
|
20581
|
+
children: /* @__PURE__ */ e(K, {
|
|
20557
20582
|
title: t[0].label,
|
|
20558
20583
|
position: "left",
|
|
20559
20584
|
children: /* @__PURE__ */ e("button", {
|
|
@@ -20561,7 +20586,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
20561
20586
|
onClick: t[0].onClick,
|
|
20562
20587
|
children: /* @__PURE__ */ e("span", {
|
|
20563
20588
|
className: "float-button__icon",
|
|
20564
|
-
children: /* @__PURE__ */ e(
|
|
20589
|
+
children: /* @__PURE__ */ e(G, {
|
|
20565
20590
|
name: t[0].icon,
|
|
20566
20591
|
size: "xxl"
|
|
20567
20592
|
})
|
|
@@ -20576,7 +20601,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
20576
20601
|
};
|
|
20577
20602
|
return /* @__PURE__ */ r("div", {
|
|
20578
20603
|
className: "float-button-container",
|
|
20579
|
-
children: [c && /* @__PURE__ */ r(
|
|
20604
|
+
children: [c && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", {
|
|
20580
20605
|
className: "float-button-overlay",
|
|
20581
20606
|
onClick: () => l(!1)
|
|
20582
20607
|
}), /* @__PURE__ */ e("div", {
|
|
@@ -20586,21 +20611,23 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
20586
20611
|
onClick: () => s(o),
|
|
20587
20612
|
children: [/* @__PURE__ */ e("span", {
|
|
20588
20613
|
className: "float-button-menu__icon",
|
|
20589
|
-
children: /* @__PURE__ */ e(
|
|
20614
|
+
children: /* @__PURE__ */ e(G, { name: o.icon })
|
|
20590
20615
|
}), /* @__PURE__ */ e("span", {
|
|
20591
20616
|
className: "float-button-menu__label",
|
|
20592
20617
|
children: o.label
|
|
20593
20618
|
})]
|
|
20594
20619
|
}, `float-button-${i}`))
|
|
20595
|
-
})] }), /* @__PURE__ */ e(
|
|
20596
|
-
className: `float-button ${c ? "float-button--active" : ""}`,
|
|
20597
|
-
onClick: a,
|
|
20620
|
+
})] }), /* @__PURE__ */ e(K, {
|
|
20598
20621
|
title: "Actions menu",
|
|
20599
|
-
children: /* @__PURE__ */ e("
|
|
20600
|
-
className: "float-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20622
|
+
children: /* @__PURE__ */ e("button", {
|
|
20623
|
+
className: `float-button ${c ? "float-button--active" : ""}`,
|
|
20624
|
+
onClick: a,
|
|
20625
|
+
children: /* @__PURE__ */ e("span", {
|
|
20626
|
+
className: "float-button__icon",
|
|
20627
|
+
children: /* @__PURE__ */ e(G, {
|
|
20628
|
+
name: c ? "clear" : "plus",
|
|
20629
|
+
size: "xxl"
|
|
20630
|
+
})
|
|
20604
20631
|
})
|
|
20605
20632
|
})
|
|
20606
20633
|
})]
|
|
@@ -20719,7 +20746,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
20719
20746
|
w(x.path);
|
|
20720
20747
|
},
|
|
20721
20748
|
children: [
|
|
20722
|
-
/* @__PURE__ */ e(
|
|
20749
|
+
/* @__PURE__ */ e(G, {
|
|
20723
20750
|
name: "folder",
|
|
20724
20751
|
size: "sm"
|
|
20725
20752
|
}),
|
|
@@ -20727,7 +20754,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(c1, { children: m1(() => vc(t), [t])
|
|
|
20727
20754
|
className: "folder-browser__entry-name",
|
|
20728
20755
|
children: x.name
|
|
20729
20756
|
}),
|
|
20730
|
-
/* @__PURE__ */ e(
|
|
20757
|
+
/* @__PURE__ */ e(G, {
|
|
20731
20758
|
className: "folder-browser__entry-chevron",
|
|
20732
20759
|
name: "arrow-right",
|
|
20733
20760
|
size: "sm"
|
|
@@ -20939,7 +20966,7 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20939
20966
|
},
|
|
20940
20967
|
getRawValue: () => S
|
|
20941
20968
|
}));
|
|
20942
|
-
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,
|
|
20969
|
+
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 = [
|
|
20943
20970
|
"input-mask",
|
|
20944
20971
|
`input-mask--${h}`,
|
|
20945
20972
|
`input-mask--${O}`,
|
|
@@ -20954,22 +20981,22 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20954
20981
|
if (p || g) return;
|
|
20955
20982
|
if (I.key === "Backspace") {
|
|
20956
20983
|
I.preventDefault();
|
|
20957
|
-
const
|
|
20958
|
-
k(
|
|
20984
|
+
const o1 = S.slice(0, -1), { masked: v1 } = I0(o1, N, w);
|
|
20985
|
+
k(o1), l?.(o1, v1);
|
|
20959
20986
|
return;
|
|
20960
20987
|
}
|
|
20961
20988
|
if (I.key.length !== 1 || I.ctrlKey || I.metaKey || (I.preventDefault(), S.length >= L)) return;
|
|
20962
20989
|
const $ = I.key;
|
|
20963
20990
|
let p1 = 0;
|
|
20964
|
-
for (const
|
|
20991
|
+
for (const o1 of N) if (o1.type === "token") {
|
|
20965
20992
|
if (p1 === S.length) {
|
|
20966
|
-
if (!D2[
|
|
20993
|
+
if (!D2[o1.key].test($)) return;
|
|
20967
20994
|
break;
|
|
20968
20995
|
}
|
|
20969
20996
|
p1++;
|
|
20970
20997
|
}
|
|
20971
|
-
const { masked:
|
|
20972
|
-
k(W), l?.(W,
|
|
20998
|
+
const { masked: h1, rawAccepted: W } = I0(S + $, N, w);
|
|
20999
|
+
k(W), l?.(W, h1), W.length === L && a?.(W, h1);
|
|
20973
21000
|
}, [
|
|
20974
21001
|
p,
|
|
20975
21002
|
g,
|
|
@@ -20979,9 +21006,9 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20979
21006
|
L,
|
|
20980
21007
|
l,
|
|
20981
21008
|
a
|
|
20982
|
-
]), X = s ?? N.map((I) => I.type === "literal" ? I.char : w).join(""),
|
|
21009
|
+
]), X = s ?? N.map((I) => I.type === "literal" ? I.char : w).join(""), i1 = S.length === L;
|
|
20983
21010
|
return /* @__PURE__ */ r("div", {
|
|
20984
|
-
className:
|
|
21011
|
+
className: s1,
|
|
20985
21012
|
children: [
|
|
20986
21013
|
o && /* @__PURE__ */ e("label", {
|
|
20987
21014
|
className: "input-mask__label",
|
|
@@ -21002,7 +21029,7 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
21002
21029
|
type: "text",
|
|
21003
21030
|
inputMode: "text",
|
|
21004
21031
|
autoComplete: M,
|
|
21005
|
-
className: ["input-mask__input",
|
|
21032
|
+
className: ["input-mask__input", i1 ? "input-mask__input--filled" : ""].filter(Boolean).join(" "),
|
|
21006
21033
|
value: P,
|
|
21007
21034
|
placeholder: X,
|
|
21008
21035
|
disabled: p,
|
|
@@ -21342,7 +21369,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21342
21369
|
variant: "info",
|
|
21343
21370
|
disabled: !g,
|
|
21344
21371
|
onClick: v,
|
|
21345
|
-
children: ["Next ", /* @__PURE__ */ e(
|
|
21372
|
+
children: ["Next ", /* @__PURE__ */ e(G, {
|
|
21346
21373
|
name: "next",
|
|
21347
21374
|
size: "sm"
|
|
21348
21375
|
})]
|
|
@@ -21491,7 +21518,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21491
21518
|
onClick: () => g(v),
|
|
21492
21519
|
children: [/* @__PURE__ */ e("span", {
|
|
21493
21520
|
className: "MenuHamburger_item__icon",
|
|
21494
|
-
children: v.icon ? /* @__PURE__ */ e(
|
|
21521
|
+
children: v.icon ? /* @__PURE__ */ e(G, { name: v.icon }) : null
|
|
21495
21522
|
}), /* @__PURE__ */ e("span", {
|
|
21496
21523
|
className: "MenuHamburger_item__label",
|
|
21497
21524
|
children: v.label
|
|
@@ -21622,7 +21649,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21622
21649
|
disabled: v.disabled,
|
|
21623
21650
|
children: [v.icon && /* @__PURE__ */ e("span", {
|
|
21624
21651
|
className: "navbar__item-icon",
|
|
21625
|
-
children: v.icon ? /* @__PURE__ */ e(
|
|
21652
|
+
children: v.icon ? /* @__PURE__ */ e(G, { name: v.icon }) : null
|
|
21626
21653
|
}), /* @__PURE__ */ e("span", {
|
|
21627
21654
|
className: "navbar__item-label",
|
|
21628
21655
|
children: v.label
|
|
@@ -21702,7 +21729,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21702
21729
|
className: "NotificationPanel__badge",
|
|
21703
21730
|
children: t.length
|
|
21704
21731
|
})]
|
|
21705
|
-
}), s && q1(/* @__PURE__ */ r(
|
|
21732
|
+
}), s && q1(/* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", {
|
|
21706
21733
|
className: "NotificationPanel__backdrop",
|
|
21707
21734
|
onClick: () => o(!1)
|
|
21708
21735
|
}), /* @__PURE__ */ r("div", {
|
|
@@ -21793,7 +21820,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21793
21820
|
height: n,
|
|
21794
21821
|
viewBox: p,
|
|
21795
21822
|
children: [
|
|
21796
|
-
!w && /* @__PURE__ */ r(
|
|
21823
|
+
!w && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("circle", {
|
|
21797
21824
|
className: "pie-chart__empty-circle",
|
|
21798
21825
|
cx: h,
|
|
21799
21826
|
cy: h,
|
|
@@ -22645,7 +22672,7 @@ ${s.textContent ?? ""}
|
|
|
22645
22672
|
/* @__PURE__ */ r("div", {
|
|
22646
22673
|
className: "rte-table-toolbar-group",
|
|
22647
22674
|
children: [
|
|
22648
|
-
/* @__PURE__ */ e(
|
|
22675
|
+
/* @__PURE__ */ e(K, {
|
|
22649
22676
|
title: "Add row above",
|
|
22650
22677
|
children: /* @__PURE__ */ e("button", {
|
|
22651
22678
|
type: "button",
|
|
@@ -22654,7 +22681,7 @@ ${s.textContent ?? ""}
|
|
|
22654
22681
|
children: "↑ Row"
|
|
22655
22682
|
})
|
|
22656
22683
|
}),
|
|
22657
|
-
/* @__PURE__ */ e(
|
|
22684
|
+
/* @__PURE__ */ e(K, {
|
|
22658
22685
|
title: "Add row below",
|
|
22659
22686
|
children: /* @__PURE__ */ e("button", {
|
|
22660
22687
|
type: "button",
|
|
@@ -22663,7 +22690,7 @@ ${s.textContent ?? ""}
|
|
|
22663
22690
|
children: "↓ Row"
|
|
22664
22691
|
})
|
|
22665
22692
|
}),
|
|
22666
|
-
/* @__PURE__ */ e(
|
|
22693
|
+
/* @__PURE__ */ e(K, {
|
|
22667
22694
|
title: "Remove last row",
|
|
22668
22695
|
children: /* @__PURE__ */ e("button", {
|
|
22669
22696
|
type: "button",
|
|
@@ -22678,7 +22705,7 @@ ${s.textContent ?? ""}
|
|
|
22678
22705
|
/* @__PURE__ */ r("div", {
|
|
22679
22706
|
className: "rte-table-toolbar-group",
|
|
22680
22707
|
children: [
|
|
22681
|
-
/* @__PURE__ */ e(
|
|
22708
|
+
/* @__PURE__ */ e(K, {
|
|
22682
22709
|
title: "Add column left",
|
|
22683
22710
|
children: /* @__PURE__ */ e("button", {
|
|
22684
22711
|
type: "button",
|
|
@@ -22687,7 +22714,7 @@ ${s.textContent ?? ""}
|
|
|
22687
22714
|
children: "← Col"
|
|
22688
22715
|
})
|
|
22689
22716
|
}),
|
|
22690
|
-
/* @__PURE__ */ e(
|
|
22717
|
+
/* @__PURE__ */ e(K, {
|
|
22691
22718
|
title: "Add column right",
|
|
22692
22719
|
children: /* @__PURE__ */ e("button", {
|
|
22693
22720
|
type: "button",
|
|
@@ -22696,7 +22723,7 @@ ${s.textContent ?? ""}
|
|
|
22696
22723
|
children: "→ Col"
|
|
22697
22724
|
})
|
|
22698
22725
|
}),
|
|
22699
|
-
/* @__PURE__ */ e(
|
|
22726
|
+
/* @__PURE__ */ e(K, {
|
|
22700
22727
|
title: "Remove last column",
|
|
22701
22728
|
children: /* @__PURE__ */ e("button", {
|
|
22702
22729
|
type: "button",
|
|
@@ -22710,7 +22737,7 @@ ${s.textContent ?? ""}
|
|
|
22710
22737
|
/* @__PURE__ */ e("div", { className: "rte-table-toolbar-divider" }),
|
|
22711
22738
|
/* @__PURE__ */ e("div", {
|
|
22712
22739
|
className: "rte-table-toolbar-group",
|
|
22713
|
-
children: /* @__PURE__ */ e(
|
|
22740
|
+
children: /* @__PURE__ */ e(K, {
|
|
22714
22741
|
title: "Delete table",
|
|
22715
22742
|
children: /* @__PURE__ */ e("button", {
|
|
22716
22743
|
type: "button",
|
|
@@ -22726,7 +22753,7 @@ ${s.textContent ?? ""}
|
|
|
22726
22753
|
children: [
|
|
22727
22754
|
/* @__PURE__ */ e("div", {
|
|
22728
22755
|
className: "rte-toolbar-group",
|
|
22729
|
-
children: Yc.map((h) => /* @__PURE__ */ e(
|
|
22756
|
+
children: Yc.map((h) => /* @__PURE__ */ e(K, {
|
|
22730
22757
|
title: h.title,
|
|
22731
22758
|
children: /* @__PURE__ */ e("button", {
|
|
22732
22759
|
type: "button",
|
|
@@ -22741,7 +22768,7 @@ ${s.textContent ?? ""}
|
|
|
22741
22768
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22742
22769
|
/* @__PURE__ */ r("div", {
|
|
22743
22770
|
className: "rte-toolbar-group",
|
|
22744
|
-
children: [Oc.map((h) => /* @__PURE__ */ e(
|
|
22771
|
+
children: [Oc.map((h) => /* @__PURE__ */ e(K, {
|
|
22745
22772
|
title: h.title,
|
|
22746
22773
|
children: /* @__PURE__ */ e("button", {
|
|
22747
22774
|
type: "button",
|
|
@@ -22751,7 +22778,7 @@ ${s.textContent ?? ""}
|
|
|
22751
22778
|
},
|
|
22752
22779
|
children: h.label
|
|
22753
22780
|
})
|
|
22754
|
-
}, h.command)), /* @__PURE__ */ e(
|
|
22781
|
+
}, h.command)), /* @__PURE__ */ e(K, {
|
|
22755
22782
|
title: "Task List",
|
|
22756
22783
|
children: /* @__PURE__ */ r("button", {
|
|
22757
22784
|
type: "button",
|
|
@@ -22759,14 +22786,14 @@ ${s.textContent ?? ""}
|
|
|
22759
22786
|
onMouseDown: (h) => {
|
|
22760
22787
|
h.preventDefault(), s();
|
|
22761
22788
|
},
|
|
22762
|
-
children: [/* @__PURE__ */ e(
|
|
22789
|
+
children: [/* @__PURE__ */ e(G, { name: "checkmark" }), " List"]
|
|
22763
22790
|
})
|
|
22764
22791
|
})]
|
|
22765
22792
|
}),
|
|
22766
22793
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22767
22794
|
/* @__PURE__ */ e("div", {
|
|
22768
22795
|
className: "rte-toolbar-group",
|
|
22769
|
-
children: Xc.map((h) => /* @__PURE__ */ e(
|
|
22796
|
+
children: Xc.map((h) => /* @__PURE__ */ e(K, {
|
|
22770
22797
|
title: `Heading ${h}`,
|
|
22771
22798
|
children: /* @__PURE__ */ r("button", {
|
|
22772
22799
|
type: "button",
|
|
@@ -22781,7 +22808,7 @@ ${s.textContent ?? ""}
|
|
|
22781
22808
|
/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }),
|
|
22782
22809
|
/* @__PURE__ */ e("div", {
|
|
22783
22810
|
className: "rte-toolbar-group",
|
|
22784
|
-
children: /* @__PURE__ */ e(
|
|
22811
|
+
children: /* @__PURE__ */ e(K, {
|
|
22785
22812
|
title: "Insert Link",
|
|
22786
22813
|
children: /* @__PURE__ */ r("button", {
|
|
22787
22814
|
type: "button",
|
|
@@ -22789,13 +22816,13 @@ ${s.textContent ?? ""}
|
|
|
22789
22816
|
onMouseDown: (h) => {
|
|
22790
22817
|
h.preventDefault(), o();
|
|
22791
22818
|
},
|
|
22792
|
-
children: [/* @__PURE__ */ e(
|
|
22819
|
+
children: [/* @__PURE__ */ e(G, { name: "link" }), " Link"]
|
|
22793
22820
|
})
|
|
22794
22821
|
})
|
|
22795
22822
|
}),
|
|
22796
|
-
t && /* @__PURE__ */ r(
|
|
22823
|
+
t && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", { className: "rte-toolbar-divider" }), /* @__PURE__ */ r("div", {
|
|
22797
22824
|
className: "rte-toolbar-group",
|
|
22798
|
-
children: [Kc.map((h) => /* @__PURE__ */ e(
|
|
22825
|
+
children: [Kc.map((h) => /* @__PURE__ */ e(K, {
|
|
22799
22826
|
title: h.title,
|
|
22800
22827
|
children: /* @__PURE__ */ e("button", {
|
|
22801
22828
|
type: "button",
|
|
@@ -22805,7 +22832,7 @@ ${s.textContent ?? ""}
|
|
|
22805
22832
|
},
|
|
22806
22833
|
children: h.label
|
|
22807
22834
|
})
|
|
22808
|
-
}, h.command + (h.value ?? ""))), /* @__PURE__ */ e(
|
|
22835
|
+
}, h.command + (h.value ?? ""))), /* @__PURE__ */ e(K, {
|
|
22809
22836
|
title: "Insert Table",
|
|
22810
22837
|
children: /* @__PURE__ */ e("button", {
|
|
22811
22838
|
type: "button",
|
|
@@ -22821,38 +22848,38 @@ ${s.textContent ?? ""}
|
|
|
22821
22848
|
}), Ya = ({ advanced: t = !1, error: c, format: l = "html", id: a, label: s, onBlur: o, onChange: i, placeholder: n, required: d = !1, value: h }) => {
|
|
22822
22849
|
const m = Y(null), p = Y(!1), g = Y(null), [w, v] = z(/* @__PURE__ */ new Set());
|
|
22823
22850
|
U(() => {
|
|
22824
|
-
const
|
|
22825
|
-
if (!
|
|
22826
|
-
const
|
|
22827
|
-
|
|
22851
|
+
const Q = m.current;
|
|
22852
|
+
if (!Q || p.current) return;
|
|
22853
|
+
const r1 = h ?? "";
|
|
22854
|
+
Q.innerHTML !== r1 && (Q.innerHTML = r1);
|
|
22828
22855
|
}, [h]);
|
|
22829
22856
|
const u = j(() => {
|
|
22830
|
-
const
|
|
22831
|
-
if (!
|
|
22857
|
+
const Q = m.current;
|
|
22858
|
+
if (!Q || !i) return;
|
|
22832
22859
|
p.current = !0;
|
|
22833
|
-
const
|
|
22834
|
-
i(l === "markdown" ? qc(
|
|
22860
|
+
const r1 = Q.innerHTML.replace(/ /g, " ");
|
|
22861
|
+
i(l === "markdown" ? qc(r1) : r1), setTimeout(() => {
|
|
22835
22862
|
p.current = !1;
|
|
22836
22863
|
}, 0);
|
|
22837
22864
|
}, [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({
|
|
22838
22865
|
editorRef: m,
|
|
22839
22866
|
snapshotForUndo: f,
|
|
22840
22867
|
emitChange: u
|
|
22841
|
-
}), { activeTable: A, tableToolbarPos: D, showTableToolbar: P, hideTableToolbar: O, addRowAbove:
|
|
22868
|
+
}), { activeTable: A, tableToolbarPos: D, showTableToolbar: P, hideTableToolbar: O, addRowAbove: s1, addRowBelow: V, removeRow: X, addColumnLeft: i1, addColumnRight: I, removeColumn: $, deleteTable: p1 } = rl({
|
|
22842
22869
|
editorRef: m,
|
|
22843
22870
|
snapshotForUndo: f,
|
|
22844
22871
|
emitChange: u
|
|
22845
|
-
}),
|
|
22846
|
-
const
|
|
22872
|
+
}), h1 = j(() => {
|
|
22873
|
+
const Q = [
|
|
22847
22874
|
"bold",
|
|
22848
22875
|
"italic",
|
|
22849
22876
|
"underline",
|
|
22850
22877
|
"insertUnorderedList",
|
|
22851
22878
|
"insertOrderedList"
|
|
22852
|
-
],
|
|
22853
|
-
|
|
22879
|
+
], r1 = /* @__PURE__ */ new Set();
|
|
22880
|
+
Q.forEach((Z) => {
|
|
22854
22881
|
try {
|
|
22855
|
-
document.queryCommandState(Z) &&
|
|
22882
|
+
document.queryCommandState(Z) && r1.add(Z);
|
|
22856
22883
|
} catch {
|
|
22857
22884
|
}
|
|
22858
22885
|
});
|
|
@@ -22861,83 +22888,83 @@ ${s.textContent ?? ""}
|
|
|
22861
22888
|
let Z = B.getRangeAt(0).commonAncestorContainer;
|
|
22862
22889
|
for (; Z && Z !== m.current; ) {
|
|
22863
22890
|
if (Z.nodeType === Node.ELEMENT_NODE) {
|
|
22864
|
-
const
|
|
22865
|
-
if (/^h[1-6]$/.test(
|
|
22866
|
-
|
|
22891
|
+
const J = Z.tagName.toLowerCase();
|
|
22892
|
+
if (/^h[1-6]$/.test(J)) {
|
|
22893
|
+
r1.add(J);
|
|
22867
22894
|
break;
|
|
22868
22895
|
}
|
|
22869
|
-
|
|
22896
|
+
J === "pre" && r1.add("pre");
|
|
22870
22897
|
}
|
|
22871
22898
|
Z = Z.parentNode;
|
|
22872
22899
|
}
|
|
22873
22900
|
}
|
|
22874
|
-
v(
|
|
22875
|
-
}, []), W = j((
|
|
22876
|
-
m.current?.focus(), document.execCommand(
|
|
22877
|
-
}, [u,
|
|
22878
|
-
const
|
|
22879
|
-
W("formatBlock", w.has(
|
|
22901
|
+
v(r1);
|
|
22902
|
+
}, []), W = j((Q, r1) => {
|
|
22903
|
+
m.current?.focus(), document.execCommand(Q, !1, r1), h1(), u();
|
|
22904
|
+
}, [u, h1]), o1 = j((Q) => {
|
|
22905
|
+
const r1 = `h${Q}`;
|
|
22906
|
+
W("formatBlock", w.has(r1) ? "p" : r1);
|
|
22880
22907
|
}, [w, W]), v1 = j(() => {
|
|
22881
22908
|
f();
|
|
22882
|
-
const
|
|
22883
|
-
if (!
|
|
22884
|
-
|
|
22885
|
-
const
|
|
22886
|
-
if (!
|
|
22887
|
-
const B =
|
|
22909
|
+
const Q = m.current;
|
|
22910
|
+
if (!Q) return;
|
|
22911
|
+
Q.focus();
|
|
22912
|
+
const r1 = window.getSelection();
|
|
22913
|
+
if (!r1 || r1.rangeCount === 0) return;
|
|
22914
|
+
const B = r1.getRangeAt(0), Z = document.createElement("li");
|
|
22888
22915
|
Z.setAttribute("data-task", "true");
|
|
22889
|
-
const
|
|
22890
|
-
|
|
22891
|
-
const
|
|
22892
|
-
|
|
22916
|
+
const J = document.createElement("input");
|
|
22917
|
+
J.type = "checkbox", J.style.marginRight = "6px";
|
|
22918
|
+
const n1 = document.createElement("span");
|
|
22919
|
+
n1.textContent = "", Z.appendChild(J), Z.appendChild(n1);
|
|
22893
22920
|
const b1 = document.createElement("ul");
|
|
22894
22921
|
b1.className = "rte-task-list", b1.appendChild(Z), B.deleteContents(), B.insertNode(b1);
|
|
22895
22922
|
const f1 = document.createRange();
|
|
22896
|
-
f1.setStart(
|
|
22923
|
+
f1.setStart(n1, 1), f1.collapse(!0), r1.removeAllRanges(), r1.addRange(f1), u();
|
|
22897
22924
|
}, [f, u]), y1 = j(() => {
|
|
22898
22925
|
W("insertHTML", Qc);
|
|
22899
|
-
}, [W]), k1 = j((
|
|
22900
|
-
const
|
|
22926
|
+
}, [W]), k1 = j((Q) => {
|
|
22927
|
+
const r1 = Q.target, B = r1.closest("a");
|
|
22901
22928
|
if (B) {
|
|
22902
|
-
|
|
22929
|
+
Q.preventDefault(), H(B), h1();
|
|
22903
22930
|
return;
|
|
22904
22931
|
}
|
|
22905
|
-
const Z =
|
|
22906
|
-
Z ? P(Z) : O(),
|
|
22932
|
+
const Z = r1.closest("table");
|
|
22933
|
+
Z ? P(Z) : O(), h1();
|
|
22907
22934
|
}, [
|
|
22908
22935
|
H,
|
|
22909
|
-
|
|
22936
|
+
h1,
|
|
22910
22937
|
P,
|
|
22911
22938
|
O
|
|
22912
|
-
]), g1 = j((
|
|
22913
|
-
if ((
|
|
22914
|
-
|
|
22939
|
+
]), g1 = j((Q) => {
|
|
22940
|
+
if ((Q.ctrlKey || Q.metaKey) && Q.key === "z") {
|
|
22941
|
+
Q.preventDefault(), Q.shiftKey ? x() : C();
|
|
22915
22942
|
return;
|
|
22916
22943
|
}
|
|
22917
|
-
const
|
|
22944
|
+
const r1 = Q.key.length === 1 && !Q.ctrlKey && !Q.metaKey, B = [
|
|
22918
22945
|
"Enter",
|
|
22919
22946
|
"Backspace",
|
|
22920
22947
|
"Delete",
|
|
22921
22948
|
" "
|
|
22922
|
-
].includes(
|
|
22923
|
-
if ((
|
|
22949
|
+
].includes(Q.key);
|
|
22950
|
+
if ((r1 || B) && f(), Q.key === "Enter" && !Q.shiftKey) {
|
|
22924
22951
|
const Z = window.getSelection();
|
|
22925
22952
|
if (Z && Z.rangeCount > 0) {
|
|
22926
|
-
let
|
|
22927
|
-
for (;
|
|
22928
|
-
if (
|
|
22929
|
-
|
|
22930
|
-
const
|
|
22931
|
-
|
|
22953
|
+
let J = Z.getRangeAt(0).commonAncestorContainer;
|
|
22954
|
+
for (; J && J !== m.current; ) {
|
|
22955
|
+
if (J.classList?.contains("rte-task-list")) {
|
|
22956
|
+
Q.preventDefault();
|
|
22957
|
+
const n1 = document.createElement("li");
|
|
22958
|
+
n1.setAttribute("data-task", "true");
|
|
22932
22959
|
const b1 = document.createElement("input");
|
|
22933
22960
|
b1.type = "checkbox", b1.style.marginRight = "6px";
|
|
22934
22961
|
const f1 = document.createElement("span");
|
|
22935
|
-
f1.textContent = "",
|
|
22962
|
+
f1.textContent = "", n1.appendChild(b1), n1.appendChild(f1), J.appendChild(n1);
|
|
22936
22963
|
const B1 = document.createRange();
|
|
22937
22964
|
B1.setStart(f1, 1), B1.collapse(!0), Z.removeAllRanges(), Z.addRange(B1);
|
|
22938
22965
|
return;
|
|
22939
22966
|
}
|
|
22940
|
-
|
|
22967
|
+
J = J.parentNode;
|
|
22941
22968
|
}
|
|
22942
22969
|
}
|
|
22943
22970
|
}
|
|
@@ -22963,9 +22990,9 @@ ${s.textContent ?? ""}
|
|
|
22963
22990
|
children: [
|
|
22964
22991
|
/* @__PURE__ */ e(al, {
|
|
22965
22992
|
advanced: t,
|
|
22966
|
-
isActive: (
|
|
22993
|
+
isActive: (Q) => w.has(Q),
|
|
22967
22994
|
exec: W,
|
|
22968
|
-
applyHeading:
|
|
22995
|
+
applyHeading: o1,
|
|
22969
22996
|
insertTaskList: v1,
|
|
22970
22997
|
openLinkPrompt: () => H(),
|
|
22971
22998
|
insertTable: y1,
|
|
@@ -22984,10 +23011,10 @@ ${s.textContent ?? ""}
|
|
|
22984
23011
|
A && D && /* @__PURE__ */ e(ll, {
|
|
22985
23012
|
pos: D,
|
|
22986
23013
|
toolbarRef: g,
|
|
22987
|
-
addRowAbove:
|
|
23014
|
+
addRowAbove: s1,
|
|
22988
23015
|
addRowBelow: V,
|
|
22989
23016
|
removeRow: X,
|
|
22990
|
-
addColumnLeft:
|
|
23017
|
+
addColumnLeft: i1,
|
|
22991
23018
|
addColumnRight: I,
|
|
22992
23019
|
removeColumn: $,
|
|
22993
23020
|
deleteTable: p1
|
|
@@ -23000,8 +23027,8 @@ ${s.textContent ?? ""}
|
|
|
23000
23027
|
suppressContentEditableWarning: !0,
|
|
23001
23028
|
"data-placeholder": n,
|
|
23002
23029
|
onInput: u,
|
|
23003
|
-
onKeyUp:
|
|
23004
|
-
onMouseUp:
|
|
23030
|
+
onKeyUp: h1,
|
|
23031
|
+
onMouseUp: h1,
|
|
23005
23032
|
onClick: k1,
|
|
23006
23033
|
onKeyDown: g1,
|
|
23007
23034
|
onBlur: o
|
|
@@ -23033,13 +23060,15 @@ ${s.textContent ?? ""}
|
|
|
23033
23060
|
behavior: "smooth"
|
|
23034
23061
|
});
|
|
23035
23062
|
}, [t]);
|
|
23036
|
-
return a ? /* @__PURE__ */ e(
|
|
23037
|
-
className: `scroll-to-top${l ? ` ${l}` : ""}`,
|
|
23038
|
-
onClick: o,
|
|
23063
|
+
return a ? /* @__PURE__ */ e(K, {
|
|
23039
23064
|
title: "Scroll to top",
|
|
23040
|
-
children: /* @__PURE__ */ e("
|
|
23041
|
-
className:
|
|
23042
|
-
|
|
23065
|
+
children: /* @__PURE__ */ e("button", {
|
|
23066
|
+
className: `scroll-to-top${l ? ` ${l}` : ""}`,
|
|
23067
|
+
onClick: o,
|
|
23068
|
+
children: /* @__PURE__ */ e("span", {
|
|
23069
|
+
className: "scroll-to-top__icon",
|
|
23070
|
+
children: "▲"
|
|
23071
|
+
})
|
|
23043
23072
|
})
|
|
23044
23073
|
}) : null;
|
|
23045
23074
|
}, Z2 = w0(null), G2 = () => f0(Z2), Ka = () => {
|
|
@@ -23090,7 +23119,7 @@ ${s.textContent ?? ""}
|
|
|
23090
23119
|
children: [
|
|
23091
23120
|
y.icon && /* @__PURE__ */ e("span", {
|
|
23092
23121
|
className: "sidebar__link-icon",
|
|
23093
|
-
children: /* @__PURE__ */ e(
|
|
23122
|
+
children: /* @__PURE__ */ e(G, { name: y.icon })
|
|
23094
23123
|
}),
|
|
23095
23124
|
y.emoji && /* @__PURE__ */ e("span", {
|
|
23096
23125
|
className: "sidebar__link-emoji",
|
|
@@ -23104,14 +23133,16 @@ ${s.textContent ?? ""}
|
|
|
23104
23133
|
className: "sidebar__link-label",
|
|
23105
23134
|
children: y.label
|
|
23106
23135
|
}),
|
|
23107
|
-
y.count !== void 0 && /* @__PURE__ */ e(
|
|
23108
|
-
className: "sidebar__link-count",
|
|
23136
|
+
y.count !== void 0 && /* @__PURE__ */ e(K, {
|
|
23109
23137
|
title: y.countLabel,
|
|
23110
|
-
children:
|
|
23138
|
+
children: /* @__PURE__ */ e("span", {
|
|
23139
|
+
className: "sidebar__link-count",
|
|
23140
|
+
children: y.count
|
|
23141
|
+
})
|
|
23111
23142
|
})
|
|
23112
23143
|
]
|
|
23113
23144
|
}, y.id);
|
|
23114
|
-
return /* @__PURE__ */ r(
|
|
23145
|
+
return /* @__PURE__ */ r(l1, { children: [d && u && f && /* @__PURE__ */ e("div", {
|
|
23115
23146
|
className: M,
|
|
23116
23147
|
onClick: C
|
|
23117
23148
|
}), /* @__PURE__ */ r("aside", {
|
|
@@ -23141,7 +23172,7 @@ ${s.textContent ?? ""}
|
|
|
23141
23172
|
className: "sidebar__section-title-row",
|
|
23142
23173
|
children: [y.icon && /* @__PURE__ */ e("span", {
|
|
23143
23174
|
className: "sidebar__section-icon",
|
|
23144
|
-
children: /* @__PURE__ */ e(
|
|
23175
|
+
children: /* @__PURE__ */ e(G, { name: y.icon })
|
|
23145
23176
|
}), /* @__PURE__ */ r("div", {
|
|
23146
23177
|
className: "sidebar__section-copy",
|
|
23147
23178
|
children: [y.title && /* @__PURE__ */ e("span", {
|
|
@@ -23255,7 +23286,7 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23255
23286
|
return o > 1 ? /* @__PURE__ */ e("div", {
|
|
23256
23287
|
className: "skeleton-group",
|
|
23257
23288
|
children: m
|
|
23258
|
-
}) : /* @__PURE__ */ e(
|
|
23289
|
+
}) : /* @__PURE__ */ e(l1, { children: m });
|
|
23259
23290
|
}, 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 }) => {
|
|
23260
23291
|
const g = (f) => {
|
|
23261
23292
|
i(parseFloat(f.target.value));
|
|
@@ -23330,11 +23361,13 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23330
23361
|
children: [s && /* @__PURE__ */ e("h2", {
|
|
23331
23362
|
className: "split-panel__right-title",
|
|
23332
23363
|
children: s
|
|
23333
|
-
}), /* @__PURE__ */ e(
|
|
23334
|
-
className: "split-panel__close",
|
|
23335
|
-
onClick: a,
|
|
23364
|
+
}), /* @__PURE__ */ e(K, {
|
|
23336
23365
|
title: "Close panel",
|
|
23337
|
-
children: "
|
|
23366
|
+
children: /* @__PURE__ */ e("button", {
|
|
23367
|
+
className: "split-panel__close",
|
|
23368
|
+
onClick: a,
|
|
23369
|
+
children: "✕"
|
|
23370
|
+
})
|
|
23338
23371
|
})]
|
|
23339
23372
|
}), /* @__PURE__ */ e("div", {
|
|
23340
23373
|
className: "split-panel__right-content",
|
|
@@ -23368,18 +23401,20 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23368
23401
|
const u = m[v];
|
|
23369
23402
|
if (u <= 0) return null;
|
|
23370
23403
|
const f = w.state || "default", C = w.pattern || "solid", x = sl(w, u, n);
|
|
23371
|
-
return /* @__PURE__ */ e(
|
|
23372
|
-
className: [
|
|
23373
|
-
"stacked-bar__segment",
|
|
23374
|
-
`stacked-bar__segment--${f}`,
|
|
23375
|
-
`stacked-bar__segment--${C}`,
|
|
23376
|
-
t && C !== "solid" ? "stacked-bar__segment--animated" : ""
|
|
23377
|
-
].filter(Boolean).join(" "),
|
|
23378
|
-
style: p ? { height: `${u}%` } : { width: `${u}%` },
|
|
23404
|
+
return /* @__PURE__ */ e(K, {
|
|
23379
23405
|
title: x,
|
|
23380
|
-
children:
|
|
23381
|
-
className:
|
|
23382
|
-
|
|
23406
|
+
children: /* @__PURE__ */ e("div", {
|
|
23407
|
+
className: [
|
|
23408
|
+
"stacked-bar__segment",
|
|
23409
|
+
`stacked-bar__segment--${f}`,
|
|
23410
|
+
`stacked-bar__segment--${C}`,
|
|
23411
|
+
t && C !== "solid" ? "stacked-bar__segment--animated" : ""
|
|
23412
|
+
].filter(Boolean).join(" "),
|
|
23413
|
+
style: p ? { height: `${u}%` } : { width: `${u}%` },
|
|
23414
|
+
children: i && /* @__PURE__ */ e("span", {
|
|
23415
|
+
className: "stacked-bar__segment-label",
|
|
23416
|
+
children: x
|
|
23417
|
+
})
|
|
23383
23418
|
})
|
|
23384
23419
|
}, `stacked-bar-segment-${v}`);
|
|
23385
23420
|
})
|
|
@@ -23426,7 +23461,7 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23426
23461
|
function h2({ state: t }) {
|
|
23427
23462
|
return /* @__PURE__ */ e("span", {
|
|
23428
23463
|
className: `suggestions-list__sort-icon suggestions-list__sort-icon--${t}`,
|
|
23429
|
-
children: /* @__PURE__ */ e(
|
|
23464
|
+
children: /* @__PURE__ */ e(G, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
23430
23465
|
});
|
|
23431
23466
|
}
|
|
23432
23467
|
var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s = !1, onRowClick: o }) => {
|
|
@@ -23450,7 +23485,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23450
23485
|
}, L = m1(() => /* @__PURE__ */ r("div", {
|
|
23451
23486
|
className: "list-suggestions-list",
|
|
23452
23487
|
children: [
|
|
23453
|
-
/* @__PURE__ */ e(
|
|
23488
|
+
/* @__PURE__ */ e(K, {
|
|
23454
23489
|
title: a,
|
|
23455
23490
|
children: /* @__PURE__ */ e("legend", { children: l || "Suggestions" })
|
|
23456
23491
|
}),
|
|
@@ -23521,6 +23556,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
23521
23556
|
return /* @__PURE__ */ r("div", {
|
|
23522
23557
|
className: "suggestions-list",
|
|
23523
23558
|
children: [/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(F, {
|
|
23559
|
+
icon: i ? "caret-up" : "caret-down",
|
|
23524
23560
|
onClick: M,
|
|
23525
23561
|
children: [
|
|
23526
23562
|
i ? "Hide" : "Show",
|
|
@@ -24123,11 +24159,11 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24123
24159
|
let V = o0;
|
|
24124
24160
|
if (l && l.length > 0) {
|
|
24125
24161
|
const X = new Set(l);
|
|
24126
|
-
V = V.filter((
|
|
24162
|
+
V = V.filter((i1) => X.has(i1.value));
|
|
24127
24163
|
}
|
|
24128
|
-
if (x && (V = V.filter((X) => p2.has(X.value))), M && S && (V = V.filter((X) => (X.recommendedApps ?? []).some((
|
|
24164
|
+
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()) {
|
|
24129
24165
|
const X = f.toLowerCase().trim();
|
|
24130
|
-
V = V.filter((
|
|
24166
|
+
V = V.filter((i1) => i1.label.toLowerCase().includes(X) || (i1.recommendedApps ?? []).some((I) => I.toLowerCase().includes(X)));
|
|
24131
24167
|
}
|
|
24132
24168
|
return V;
|
|
24133
24169
|
}, [
|
|
@@ -24165,10 +24201,10 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24165
24201
|
components: h.components
|
|
24166
24202
|
});
|
|
24167
24203
|
}, P = (V, X) => {
|
|
24168
|
-
const
|
|
24204
|
+
const i1 = X ? [...h.components, V] : h.components.filter((I) => I !== V);
|
|
24169
24205
|
p({
|
|
24170
24206
|
effect: h.effect,
|
|
24171
|
-
components:
|
|
24207
|
+
components: i1
|
|
24172
24208
|
});
|
|
24173
24209
|
}, O = () => {
|
|
24174
24210
|
w(), c();
|
|
@@ -24284,7 +24320,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24284
24320
|
}, V.value))
|
|
24285
24321
|
})
|
|
24286
24322
|
]
|
|
24287
|
-
}), s && /* @__PURE__ */ r(
|
|
24323
|
+
}), s && /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ r("div", {
|
|
24288
24324
|
className: "theme-settings__section",
|
|
24289
24325
|
children: [/* @__PURE__ */ e("label", {
|
|
24290
24326
|
htmlFor: "effect-selector",
|
|
@@ -24489,9 +24525,9 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24489
24525
|
className: "tips-of-the-day",
|
|
24490
24526
|
children: [
|
|
24491
24527
|
/* @__PURE__ */ r("h3", { children: [
|
|
24492
|
-
/* @__PURE__ */ e(
|
|
24528
|
+
/* @__PURE__ */ e(G, { name: "sparkle" }),
|
|
24493
24529
|
" Tip Of The Day ",
|
|
24494
|
-
/* @__PURE__ */ e(
|
|
24530
|
+
/* @__PURE__ */ e(G, { name: "sparkle" })
|
|
24495
24531
|
] }),
|
|
24496
24532
|
" ",
|
|
24497
24533
|
/* @__PURE__ */ e("h4", { children: t[c] })
|
|
@@ -24514,13 +24550,15 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24514
24550
|
onClick: i.onClick,
|
|
24515
24551
|
children: i.label
|
|
24516
24552
|
}),
|
|
24517
|
-
s && /* @__PURE__ */ e(
|
|
24518
|
-
className: "toast__close",
|
|
24519
|
-
onClick: l,
|
|
24553
|
+
s && /* @__PURE__ */ e(K, {
|
|
24520
24554
|
title: "Close",
|
|
24521
|
-
children: /* @__PURE__ */ e(
|
|
24522
|
-
|
|
24523
|
-
|
|
24555
|
+
children: /* @__PURE__ */ e("button", {
|
|
24556
|
+
className: "toast__close",
|
|
24557
|
+
onClick: l,
|
|
24558
|
+
children: /* @__PURE__ */ e(G, {
|
|
24559
|
+
name: "clear",
|
|
24560
|
+
size: "sm"
|
|
24561
|
+
})
|
|
24524
24562
|
})
|
|
24525
24563
|
})
|
|
24526
24564
|
]
|
|
@@ -24535,7 +24573,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24535
24573
|
onClick: () => l(n.key),
|
|
24536
24574
|
children: [n.icon && /* @__PURE__ */ e("span", {
|
|
24537
24575
|
className: "toggle-buttons__card-icon",
|
|
24538
|
-
children: /* @__PURE__ */ e(
|
|
24576
|
+
children: /* @__PURE__ */ e(G, {
|
|
24539
24577
|
name: n.icon,
|
|
24540
24578
|
size: "xl"
|
|
24541
24579
|
})
|
|
@@ -24544,7 +24582,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24544
24582
|
children: n.label
|
|
24545
24583
|
})]
|
|
24546
24584
|
}, n.key);
|
|
24547
|
-
return n.description ? /* @__PURE__ */ e(
|
|
24585
|
+
return n.description ? /* @__PURE__ */ e(K, {
|
|
24548
24586
|
title: n.description,
|
|
24549
24587
|
children: d
|
|
24550
24588
|
}, n.key) : d;
|
|
@@ -24607,7 +24645,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24607
24645
|
className: "memobit-toolbar__heading-icon",
|
|
24608
24646
|
children: [
|
|
24609
24647
|
a.svg,
|
|
24610
|
-
a.icon && /* @__PURE__ */ e(
|
|
24648
|
+
a.icon && /* @__PURE__ */ e(G, { name: a.icon }),
|
|
24611
24649
|
a.emoji
|
|
24612
24650
|
]
|
|
24613
24651
|
}), /* @__PURE__ */ r("div", {
|
|
@@ -24703,7 +24741,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24703
24741
|
className: "tour-hud__btn",
|
|
24704
24742
|
disabled: l === 0,
|
|
24705
24743
|
onClick: i,
|
|
24706
|
-
children: [/* @__PURE__ */ e(
|
|
24744
|
+
children: [/* @__PURE__ */ e(G, {
|
|
24707
24745
|
name: "arrow-left",
|
|
24708
24746
|
size: "sm"
|
|
24709
24747
|
}), "Prev"]
|
|
@@ -24713,7 +24751,7 @@ var d2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24713
24751
|
className: "tour-hud__btn",
|
|
24714
24752
|
disabled: l >= a - 1,
|
|
24715
24753
|
onClick: n,
|
|
24716
|
-
children: ["Next", /* @__PURE__ */ e(
|
|
24754
|
+
children: ["Next", /* @__PURE__ */ e(G, {
|
|
24717
24755
|
name: "arrow-right",
|
|
24718
24756
|
size: "sm"
|
|
24719
24757
|
})]
|
|
@@ -25160,7 +25198,7 @@ function Ci({ redirectPath: t = "/" }) {
|
|
|
25160
25198
|
w(!1);
|
|
25161
25199
|
}
|
|
25162
25200
|
};
|
|
25163
|
-
return /* @__PURE__ */ r(
|
|
25201
|
+
return /* @__PURE__ */ r(l1, { children: [/* @__PURE__ */ e("div", {
|
|
25164
25202
|
className: "LoginPage",
|
|
25165
25203
|
children: /* @__PURE__ */ r("div", {
|
|
25166
25204
|
className: "LoginPage__card",
|
|
@@ -25199,6 +25237,7 @@ function Ci({ redirectPath: t = "/" }) {
|
|
|
25199
25237
|
/* @__PURE__ */ e(F, {
|
|
25200
25238
|
type: "submit",
|
|
25201
25239
|
variant: "info",
|
|
25240
|
+
icon: "key",
|
|
25202
25241
|
loading: g,
|
|
25203
25242
|
fullWidth: !0,
|
|
25204
25243
|
children: "Sign In"
|
|
@@ -25429,7 +25468,7 @@ var _i = (t, c, l) => {
|
|
|
25429
25468
|
} catch {
|
|
25430
25469
|
return t.trim();
|
|
25431
25470
|
}
|
|
25432
|
-
}, _l = "1.0.
|
|
25471
|
+
}, _l = "1.0.21", Bi = 242, Ll = "4d81fc9", zl = "2026-07-14T09:19:47.258Z", Ri = "242", Vl = (t) => {
|
|
25433
25472
|
const c = document.getElementById("mb-version-toast");
|
|
25434
25473
|
if (c) {
|
|
25435
25474
|
c.remove();
|
|
@@ -25453,7 +25492,7 @@ var _i = (t, c, l) => {
|
|
|
25453
25492
|
const c = {
|
|
25454
25493
|
...t,
|
|
25455
25494
|
lib: _l,
|
|
25456
|
-
libBuildNumber:
|
|
25495
|
+
libBuildNumber: 242,
|
|
25457
25496
|
libCommit: Ll,
|
|
25458
25497
|
libBuildDate: zl
|
|
25459
25498
|
};
|
|
@@ -25574,7 +25613,7 @@ export {
|
|
|
25574
25613
|
Wr as Flag,
|
|
25575
25614
|
_a as FloatButton,
|
|
25576
25615
|
La as FolderBrowserModal,
|
|
25577
|
-
|
|
25616
|
+
G as Icon,
|
|
25578
25617
|
za as InfiniteScroll,
|
|
25579
25618
|
Hr as InputDate,
|
|
25580
25619
|
Va as InputEmail,
|
|
@@ -25644,7 +25683,7 @@ export {
|
|
|
25644
25683
|
mi as ToggleButtons,
|
|
25645
25684
|
m2 as ToggleSwitch,
|
|
25646
25685
|
pi as Toolbar,
|
|
25647
|
-
|
|
25686
|
+
K as Tooltip,
|
|
25648
25687
|
vi as TourHud,
|
|
25649
25688
|
gi as Tree,
|
|
25650
25689
|
ui as WHtR,
|