@memobit/libs 1.0.27 → 1.0.29
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 +253 -240
- package/dist/version.json +4 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import E1, { Component as J2, Fragment as e3, createContext as C0, forwardRef as M1, useCallback as j, useContext as y0, useEffect as F, useId as b0, useImperativeHandle as y2, useMemo as m1, useRef as
|
|
1
|
+
import E1, { Component as J2, Fragment as e3, createContext as C0, forwardRef as M1, useCallback as j, useContext as y0, useEffect as F, useId as b0, useImperativeHandle as y2, useMemo as m1, useRef as O, useState as z } from "react";
|
|
2
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", {
|
|
@@ -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}` : "",
|
|
@@ -10008,47 +10008,57 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
10008
10008
|
}, d.id);
|
|
10009
10009
|
})
|
|
10010
10010
|
});
|
|
10011
|
-
}, qt = ({ id: t, title: c, icon: l, content: a, isExpanded: s, disabled: o = !1, onToggle: i }) =>
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10011
|
+
}, qt = ({ id: t, title: c, icon: l, content: a, isExpanded: s, disabled: o = !1, onToggle: i }) => {
|
|
10012
|
+
const n = O(null), d = O(!0);
|
|
10013
|
+
return F(() => {
|
|
10014
|
+
const m = n.current;
|
|
10015
|
+
if (m) {
|
|
10016
|
+
if (d.current) {
|
|
10017
|
+
d.current = !1, m.style.maxHeight = s ? "none" : "0";
|
|
10018
|
+
return;
|
|
10019
|
+
}
|
|
10020
|
+
if (s) {
|
|
10021
|
+
m.style.maxHeight = `${m.scrollHeight}px`;
|
|
10022
|
+
const p = (g) => {
|
|
10023
|
+
g.propertyName === "max-height" && (m.style.maxHeight = "none");
|
|
10024
|
+
};
|
|
10025
|
+
return m.addEventListener("transitionend", p), () => m.removeEventListener("transitionend", p);
|
|
10026
|
+
}
|
|
10027
|
+
m.style.maxHeight = `${m.scrollHeight}px`, m.offsetHeight, m.style.maxHeight = "0";
|
|
10028
|
+
}
|
|
10029
|
+
}, [s]), /* @__PURE__ */ r("div", {
|
|
10030
|
+
className: `accordion-item ${s ? "accordion-item--expanded" : ""} ${o ? "accordion-item--disabled" : ""}`,
|
|
10031
|
+
children: [/* @__PURE__ */ r("button", {
|
|
10032
|
+
type: "button",
|
|
10033
|
+
className: "accordion-item__header",
|
|
10034
|
+
onClick: () => {
|
|
10035
|
+
o || i(t);
|
|
10036
|
+
},
|
|
10037
|
+
disabled: o,
|
|
10038
|
+
children: [/* @__PURE__ */ r("span", {
|
|
10039
|
+
className: "accordion-item__title",
|
|
10040
|
+
children: [l && /* @__PURE__ */ e(G, { name: l }), /* @__PURE__ */ e("span", {
|
|
10041
|
+
className: "accordion-item__title-text",
|
|
10042
|
+
children: c
|
|
10043
|
+
})]
|
|
10044
|
+
}), /* @__PURE__ */ e("span", {
|
|
10045
|
+
className: "accordion-item__icon",
|
|
10046
|
+
children: /* @__PURE__ */ e(G, {
|
|
10047
|
+
name: "caret-down",
|
|
10048
|
+
size: "md"
|
|
10040
10049
|
})
|
|
10050
|
+
})]
|
|
10051
|
+
}), /* @__PURE__ */ e("div", {
|
|
10052
|
+
ref: n,
|
|
10053
|
+
className: "accordion-item__content-wrapper",
|
|
10054
|
+
children: /* @__PURE__ */ e("div", {
|
|
10055
|
+
className: "accordion-item__content",
|
|
10056
|
+
children: a
|
|
10041
10057
|
})
|
|
10042
10058
|
})]
|
|
10043
|
-
})
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
className: "accordion-item__content",
|
|
10047
|
-
children: a
|
|
10048
|
-
})
|
|
10049
|
-
})]
|
|
10050
|
-
}), x2 = (t) => {
|
|
10051
|
-
const c = Y(null);
|
|
10059
|
+
});
|
|
10060
|
+
}, x2 = (t) => {
|
|
10061
|
+
const c = O(null);
|
|
10052
10062
|
F(() => {
|
|
10053
10063
|
const l = () => {
|
|
10054
10064
|
if (!c.current) return;
|
|
@@ -10089,14 +10099,14 @@ var t3 = /* @__PURE__ */ r("svg", {
|
|
|
10089
10099
|
title: w,
|
|
10090
10100
|
type: v,
|
|
10091
10101
|
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(
|
|
10102
|
+
o !== void 0 && (typeof o == "string" ? /* @__PURE__ */ e(G, {
|
|
10093
10103
|
size: "lg",
|
|
10094
10104
|
name: o,
|
|
10095
10105
|
variant: i
|
|
10096
10106
|
}) : o),
|
|
10097
10107
|
h && /* @__PURE__ */ e("span", { children: h }),
|
|
10098
10108
|
c && /* @__PURE__ */ e("span", { children: c }),
|
|
10099
|
-
g !== void 0 && (typeof g == "string" ? /* @__PURE__ */ e(
|
|
10109
|
+
g !== void 0 && (typeof g == "string" ? /* @__PURE__ */ e(G, {
|
|
10100
10110
|
size: "lg",
|
|
10101
10111
|
name: g,
|
|
10102
10112
|
variant: i
|
|
@@ -10107,7 +10117,7 @@ q.displayName = "Button";
|
|
|
10107
10117
|
var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s, onOverlayClick: o, primary: i, secondary: n, size: d = "auto", tertiary: h, title: m, titleIcon: p, usePortal: g = !1 }) => {
|
|
10108
10118
|
const w = _2("Modal");
|
|
10109
10119
|
x2(l);
|
|
10110
|
-
const v =
|
|
10120
|
+
const v = O(null), u = O(null);
|
|
10111
10121
|
if (F(() => {
|
|
10112
10122
|
const x = (b) => {
|
|
10113
10123
|
b.key === "Escape" && s && s();
|
|
@@ -10128,7 +10138,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
|
|
|
10128
10138
|
/* @__PURE__ */ r("div", {
|
|
10129
10139
|
className: "modal__header",
|
|
10130
10140
|
children: [/* @__PURE__ */ r("h2", { children: [
|
|
10131
|
-
p ? /* @__PURE__ */ e(
|
|
10141
|
+
p ? /* @__PURE__ */ e(G, { name: p }) : null,
|
|
10132
10142
|
" ",
|
|
10133
10143
|
m
|
|
10134
10144
|
] }), /* @__PURE__ */ e(q, {
|
|
@@ -10240,7 +10250,7 @@ var O1 = ({ children: t, className: c, isOpen: l, noPadding: a = !1, onClose: s,
|
|
|
10240
10250
|
}),
|
|
10241
10251
|
c && /* @__PURE__ */ e("span", {
|
|
10242
10252
|
className: "app-header__icon",
|
|
10243
|
-
children: /* @__PURE__ */ e(
|
|
10253
|
+
children: /* @__PURE__ */ e(G, { name: c })
|
|
10244
10254
|
}),
|
|
10245
10255
|
/* @__PURE__ */ r("div", {
|
|
10246
10256
|
className: "app-header__copy",
|
|
@@ -10345,7 +10355,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10345
10355
|
const [d, h] = z(!1), [m, p] = z({
|
|
10346
10356
|
top: 0,
|
|
10347
10357
|
left: 0
|
|
10348
|
-
}), g =
|
|
10358
|
+
}), g = O(null), w = O(null), v = O(null), u = O(null), f = O(!1), C = n !== void 0, x = C ? 150 : 0, b = () => {
|
|
10349
10359
|
if (!v.current || !u.current) return;
|
|
10350
10360
|
const H = v.current.firstElementChild, S = H && H.getBoundingClientRect().width > 0 ? H.getBoundingClientRect() : v.current.getBoundingClientRect(), k = u.current.getBoundingClientRect(), A = 8;
|
|
10351
10361
|
let D = 0, P = 0;
|
|
@@ -10363,8 +10373,8 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10363
10373
|
D = S.top + S.height / 2 - k.height / 2, P = S.right + A;
|
|
10364
10374
|
break;
|
|
10365
10375
|
}
|
|
10366
|
-
const
|
|
10367
|
-
P <
|
|
10376
|
+
const Y = 8;
|
|
10377
|
+
P < Y && (P = Y), P + k.width > window.innerWidth - Y && (P = window.innerWidth - k.width - Y), D < Y && (D = Y), D + k.height > window.innerHeight - Y && (D = window.innerHeight - k.height - Y), p({
|
|
10368
10378
|
top: D,
|
|
10369
10379
|
left: P
|
|
10370
10380
|
});
|
|
@@ -10456,7 +10466,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10456
10466
|
className: "banner__dismiss",
|
|
10457
10467
|
type: "button",
|
|
10458
10468
|
onClick: g,
|
|
10459
|
-
children: /* @__PURE__ */ e(
|
|
10469
|
+
children: /* @__PURE__ */ e(G, {
|
|
10460
10470
|
name: "clear",
|
|
10461
10471
|
size: "sm"
|
|
10462
10472
|
})
|
|
@@ -10958,7 +10968,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
10958
10968
|
return n1 > Z.getTime() && n1 < J.getTime();
|
|
10959
10969
|
}
|
|
10960
10970
|
return !1;
|
|
10961
|
-
}, P = (B) => l === "range" && y ? B.getTime() > y.getTime() : !1,
|
|
10971
|
+
}, P = (B) => l === "range" && y ? B.getTime() > y.getTime() : !1, Y = (B) => B.getMonth() === L.getMonth(), s1 = (B) => {
|
|
10962
10972
|
if (!k(B)) {
|
|
10963
10973
|
if (l === "single") c?.(B);
|
|
10964
10974
|
else if (l === "range") if (!y) v ? v(B) : (N(B), c?.(void 0));
|
|
@@ -11012,7 +11022,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11012
11022
|
return B;
|
|
11013
11023
|
}, g1 = (B) => {
|
|
11014
11024
|
const Z = ["calendar__day"];
|
|
11015
|
-
return
|
|
11025
|
+
return Y(B) ? (A(B) && Z.push("calendar__day--selected"), D(B) && Z.push("calendar__day--in-range"), P(B) && Z.push("calendar__day--hover-range")) : Z.push("calendar__day--other-month"), or(B) && Z.push("calendar__day--today"), sr(B) && Z.push("calendar__day--weekend"), k(B) && Z.push("calendar__day--disabled"), Z.join(" ");
|
|
11016
11026
|
}, $1 = () => C === "years" ? /* @__PURE__ */ r("div", {
|
|
11017
11027
|
className: "calendar__header",
|
|
11018
11028
|
children: [
|
|
@@ -11270,13 +11280,13 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11270
11280
|
className: `${g ? "card-content-hidden" : ""}`,
|
|
11271
11281
|
children: [/* @__PURE__ */ r("span", {
|
|
11272
11282
|
className: "card-title-content",
|
|
11273
|
-
children: [a && /* @__PURE__ */ e(
|
|
11283
|
+
children: [a && /* @__PURE__ */ e(G, { name: a }), m]
|
|
11274
11284
|
}), o && /* @__PURE__ */ e("span", {
|
|
11275
11285
|
className: "collapsible-button",
|
|
11276
11286
|
onClick: () => w(!g),
|
|
11277
11287
|
children: /* @__PURE__ */ e("span", {
|
|
11278
11288
|
className: `opener-button ${g ? "opener-button-extended" : ""}`,
|
|
11279
|
-
children: /* @__PURE__ */ e(
|
|
11289
|
+
children: /* @__PURE__ */ e(G, {
|
|
11280
11290
|
name: "caret-up",
|
|
11281
11291
|
size: "lg"
|
|
11282
11292
|
})
|
|
@@ -11294,7 +11304,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11294
11304
|
]
|
|
11295
11305
|
});
|
|
11296
11306
|
}, d0 = ({ checked: t = !1, onChange: c, label: l, icon: a, disabled: s = !1, id: o, indeterminate: i = !1 }) => {
|
|
11297
|
-
const n = b0(), d = o || n, h =
|
|
11307
|
+
const n = b0(), d = o || n, h = O(null);
|
|
11298
11308
|
return F(() => {
|
|
11299
11309
|
h.current && (h.current.indeterminate = i && !t);
|
|
11300
11310
|
}, [i, t]), /* @__PURE__ */ r("div", {
|
|
@@ -11312,7 +11322,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11312
11322
|
className: "checkbox-label",
|
|
11313
11323
|
children: [/* @__PURE__ */ e("span", { className: "checkbox-box" }), (a || l) && /* @__PURE__ */ r("span", {
|
|
11314
11324
|
className: "checkbox-text",
|
|
11315
|
-
children: [a && /* @__PURE__ */ e(
|
|
11325
|
+
children: [a && /* @__PURE__ */ e(G, { name: a }), l && /* @__PURE__ */ e("span", {
|
|
11316
11326
|
className: "checkbox-text-label",
|
|
11317
11327
|
children: l
|
|
11318
11328
|
})]
|
|
@@ -11331,7 +11341,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11331
11341
|
className: "chip__swatch",
|
|
11332
11342
|
style: { backgroundColor: l }
|
|
11333
11343
|
}),
|
|
11334
|
-
o && /* @__PURE__ */ e(
|
|
11344
|
+
o && /* @__PURE__ */ e(G, { name: o }),
|
|
11335
11345
|
/* @__PURE__ */ e("span", {
|
|
11336
11346
|
className: "chip__label",
|
|
11337
11347
|
children: t
|
|
@@ -11355,7 +11365,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11355
11365
|
/* @__PURE__ */ r("div", {
|
|
11356
11366
|
className: "collapsible-section__label",
|
|
11357
11367
|
children: [
|
|
11358
|
-
a && /* @__PURE__ */ e(
|
|
11368
|
+
a && /* @__PURE__ */ e(G, {
|
|
11359
11369
|
name: a,
|
|
11360
11370
|
variant: u
|
|
11361
11371
|
}),
|
|
@@ -11363,10 +11373,10 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11363
11373
|
n
|
|
11364
11374
|
]
|
|
11365
11375
|
}),
|
|
11366
|
-
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
11376
|
+
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(G, { name: m }) }),
|
|
11367
11377
|
/* @__PURE__ */ e("span", {
|
|
11368
11378
|
className: `collapsible-section__icon ${M ? "collapsible-section__icon--collapsed" : ""}`,
|
|
11369
|
-
children: /* @__PURE__ */ e(
|
|
11379
|
+
children: /* @__PURE__ */ e(G, { name: "caret-up" })
|
|
11370
11380
|
}),
|
|
11371
11381
|
/* @__PURE__ */ e("span", {
|
|
11372
11382
|
className: "collapsible-section__right-details",
|
|
@@ -11380,7 +11390,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11380
11390
|
/* @__PURE__ */ r("span", {
|
|
11381
11391
|
className: "collapsible-section__label",
|
|
11382
11392
|
children: [
|
|
11383
|
-
a && /* @__PURE__ */ e(
|
|
11393
|
+
a && /* @__PURE__ */ e(G, {
|
|
11384
11394
|
name: a,
|
|
11385
11395
|
variant: u
|
|
11386
11396
|
}),
|
|
@@ -11388,10 +11398,10 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11388
11398
|
n
|
|
11389
11399
|
]
|
|
11390
11400
|
}),
|
|
11391
|
-
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
11401
|
+
m && /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(G, { name: m }) }),
|
|
11392
11402
|
/* @__PURE__ */ e("span", {
|
|
11393
11403
|
className: `collapsible-section__icon ${M ? "collapsible-section__icon--collapsed" : ""}`,
|
|
11394
|
-
children: /* @__PURE__ */ e(
|
|
11404
|
+
children: /* @__PURE__ */ e(G, { name: "caret-up" })
|
|
11395
11405
|
})
|
|
11396
11406
|
]
|
|
11397
11407
|
})
|
|
@@ -11545,7 +11555,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11545
11555
|
r: 78,
|
|
11546
11556
|
g: 121,
|
|
11547
11557
|
b: 167
|
|
11548
|
-
})), i =
|
|
11558
|
+
})), i = O(null);
|
|
11549
11559
|
F(() => {
|
|
11550
11560
|
const w = E0(t);
|
|
11551
11561
|
w && o(G1(w));
|
|
@@ -11915,7 +11925,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
11915
11925
|
}
|
|
11916
11926
|
t.restore();
|
|
11917
11927
|
}, na = M1(({ colors: t, duration: c = 3e3, scope: l = "fullscreen", variant: a = "confetti", particleCount: s }, o) => {
|
|
11918
|
-
const i =
|
|
11928
|
+
const i = O(null), n = O(0), d = O(0), h = O(!1), m = {
|
|
11919
11929
|
confetti: 150,
|
|
11920
11930
|
burst: 200,
|
|
11921
11931
|
fireworks: 8
|
|
@@ -12009,7 +12019,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12009
12019
|
})
|
|
12010
12020
|
});
|
|
12011
12021
|
}, V1 = 20, xr = 8, N2 = ({ children: t, visible: c, onClose: l, anchorEl: a, offset: s = xr, placement: o = "auto" }) => {
|
|
12012
|
-
const i =
|
|
12022
|
+
const i = O(null), n = O(null), [d, h] = z({
|
|
12013
12023
|
top: 0,
|
|
12014
12024
|
left: 0,
|
|
12015
12025
|
placement: "bottom"
|
|
@@ -12146,7 +12156,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12146
12156
|
children: [
|
|
12147
12157
|
(a || o) && /* @__PURE__ */ r("div", {
|
|
12148
12158
|
className: "confirm-popover__header",
|
|
12149
|
-
children: [o && /* @__PURE__ */ e(
|
|
12159
|
+
children: [o && /* @__PURE__ */ e(G, { name: o }), a && /* @__PURE__ */ e("span", {
|
|
12150
12160
|
className: "confirm-popover__title",
|
|
12151
12161
|
children: a
|
|
12152
12162
|
})]
|
|
@@ -12175,7 +12185,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12175
12185
|
})
|
|
12176
12186
|
});
|
|
12177
12187
|
}, kr = ({ target: t, onClose: c, children: l, autoClose: a = !1 }) => {
|
|
12178
|
-
const s =
|
|
12188
|
+
const s = O(null), [o, i] = z(!1), [n, d] = z(() => {
|
|
12179
12189
|
if (!t) return { opacity: 0 };
|
|
12180
12190
|
const m = t.getBoundingClientRect();
|
|
12181
12191
|
return {
|
|
@@ -12255,7 +12265,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12255
12265
|
children: /* @__PURE__ */ e("button", {
|
|
12256
12266
|
onClick: h,
|
|
12257
12267
|
className: "toast__close-button",
|
|
12258
|
-
children: /* @__PURE__ */ e(
|
|
12268
|
+
children: /* @__PURE__ */ e(G, {
|
|
12259
12269
|
name: "clear",
|
|
12260
12270
|
size: "sm"
|
|
12261
12271
|
})
|
|
@@ -12383,7 +12393,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12383
12393
|
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({
|
|
12384
12394
|
position: "fixed",
|
|
12385
12395
|
visibility: "hidden"
|
|
12386
|
-
}), k =
|
|
12396
|
+
}), k = O(null), A = O(null);
|
|
12387
12397
|
F(() => {
|
|
12388
12398
|
a && t instanceof Date && (f(s === "12h" ? t.getHours() % 12 || 12 : t.getHours()), x(t.getMinutes()), M(t.getSeconds()), N(t.getHours() >= 12));
|
|
12389
12399
|
}, [
|
|
@@ -12426,7 +12436,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12426
12436
|
D,
|
|
12427
12437
|
P
|
|
12428
12438
|
]);
|
|
12429
|
-
const
|
|
12439
|
+
const Y = () => {
|
|
12430
12440
|
if (!t) return "";
|
|
12431
12441
|
if (l === "single" && t instanceof Date) {
|
|
12432
12442
|
const I = F1(t, i);
|
|
@@ -12446,7 +12456,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12446
12456
|
I.setHours($, C, b), c?.(I);
|
|
12447
12457
|
}, X = (I) => {
|
|
12448
12458
|
I.stopPropagation(), y(null), c?.(void 0);
|
|
12449
|
-
}, a1 =
|
|
12459
|
+
}, a1 = Y();
|
|
12450
12460
|
return /* @__PURE__ */ r("div", {
|
|
12451
12461
|
className: "datepicker",
|
|
12452
12462
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -12470,7 +12480,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12470
12480
|
})
|
|
12471
12481
|
}), /* @__PURE__ */ e("span", {
|
|
12472
12482
|
className: "datepicker__icon",
|
|
12473
|
-
children: /* @__PURE__ */ e(
|
|
12483
|
+
children: /* @__PURE__ */ e(G, { name: "calendar" })
|
|
12474
12484
|
})]
|
|
12475
12485
|
})]
|
|
12476
12486
|
}), D && (p ? /* @__PURE__ */ r("div", {
|
|
@@ -12619,17 +12629,17 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12619
12629
|
}
|
|
12620
12630
|
return o / a.length >= s;
|
|
12621
12631
|
}, x0 = ({ 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 }) => {
|
|
12622
|
-
const [H, S] = z(!1), [k, A] = z(C || ""), [D, P] = z(v), [
|
|
12632
|
+
const [H, S] = z(!1), [k, A] = z(C || ""), [D, P] = z(v), [Y, s1] = z(-1), [V, X] = z([]), [a1, I] = z({
|
|
12623
12633
|
top: 0,
|
|
12624
12634
|
bottom: 0,
|
|
12625
12635
|
left: 0,
|
|
12626
12636
|
width: 0,
|
|
12627
12637
|
maxHeight: 300
|
|
12628
|
-
}), [$, p1] = z(!1), h1 =
|
|
12638
|
+
}), [$, p1] = z(!1), h1 = O(null), W = O([]), o1 = O(null), v1 = O(null), y1 = b0(), k1 = i ?? `dropdown-${y1}`, g1 = O(null);
|
|
12629
12639
|
F(() => {
|
|
12630
12640
|
if (H && M && m) {
|
|
12631
|
-
const T = new Set(V.map((c1) => c1.value)),
|
|
12632
|
-
v.forEach((c1) => (T.has(c1.value) ?
|
|
12641
|
+
const T = new Set(V.map((c1) => c1.value)), E = [], U = [];
|
|
12642
|
+
v.forEach((c1) => (T.has(c1.value) ? E : U).push(c1)), g1.current = [...E, ...U];
|
|
12633
12643
|
} else H || (g1.current = null);
|
|
12634
12644
|
}, [
|
|
12635
12645
|
H,
|
|
@@ -12640,8 +12650,8 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12640
12650
|
const T = g1.current ?? v;
|
|
12641
12651
|
if (!f || !k) P(T);
|
|
12642
12652
|
else {
|
|
12643
|
-
const
|
|
12644
|
-
P(T.filter((U) => i2(U.label).includes(
|
|
12653
|
+
const E = i2(k);
|
|
12654
|
+
P(T.filter((U) => i2(U.label).includes(E)));
|
|
12645
12655
|
}
|
|
12646
12656
|
s1(-1);
|
|
12647
12657
|
}, [
|
|
@@ -12650,39 +12660,39 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12650
12660
|
f,
|
|
12651
12661
|
H
|
|
12652
12662
|
]);
|
|
12653
|
-
const $1 =
|
|
12663
|
+
const $1 = O(L);
|
|
12654
12664
|
F(() => {
|
|
12655
12665
|
const T = $1.current;
|
|
12656
12666
|
$1.current = L;
|
|
12657
|
-
const
|
|
12667
|
+
const E = !Object.is(T, L);
|
|
12658
12668
|
if (L == null) {
|
|
12659
|
-
|
|
12669
|
+
E && (X([]), A(""));
|
|
12660
12670
|
return;
|
|
12661
12671
|
}
|
|
12662
12672
|
if (m && Array.isArray(L) && L.length === 0) {
|
|
12663
|
-
|
|
12673
|
+
E && (X([]), A(""));
|
|
12664
12674
|
return;
|
|
12665
12675
|
}
|
|
12666
12676
|
if (!m && L === "") {
|
|
12667
|
-
|
|
12677
|
+
E && (X([]), A(""));
|
|
12668
12678
|
return;
|
|
12669
12679
|
}
|
|
12670
12680
|
if (v.length > 0) {
|
|
12671
12681
|
if (m && Array.isArray(L))
|
|
12672
|
-
X(v.filter((U) => typeof U.value == "number" ? L.includes(U.value) : L.includes(U.value.toString()))),
|
|
12682
|
+
X(v.filter((U) => typeof U.value == "number" ? L.includes(U.value) : L.includes(U.value.toString()))), E && A("");
|
|
12673
12683
|
else if (!m && (typeof L == "string" || typeof L == "number")) {
|
|
12674
12684
|
const U = v.find((c1) => typeof c1.value == "number" && typeof L == "number" ? c1.value === L : c1.value.toString() === L.toString());
|
|
12675
|
-
U ? (X([U]),
|
|
12685
|
+
U ? (X([U]), E && A(U.label)) : t && typeof L == "string" && L.trim() ? (X([{
|
|
12676
12686
|
label: L.trim(),
|
|
12677
12687
|
value: L.trim(),
|
|
12678
12688
|
className: "custom-option"
|
|
12679
|
-
}]),
|
|
12689
|
+
}]), E && A(L.trim())) : E && (X([]), A(""));
|
|
12680
12690
|
}
|
|
12681
12691
|
} else t && !m && typeof L == "string" && L.trim() ? (X([{
|
|
12682
12692
|
label: L.trim(),
|
|
12683
12693
|
value: L.trim(),
|
|
12684
12694
|
className: "custom-option"
|
|
12685
|
-
}]),
|
|
12695
|
+
}]), E && A(L.trim())) : E && (X([]), A(""));
|
|
12686
12696
|
}, [
|
|
12687
12697
|
L,
|
|
12688
12698
|
v,
|
|
@@ -12708,16 +12718,16 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12708
12718
|
}
|
|
12709
12719
|
};
|
|
12710
12720
|
T();
|
|
12711
|
-
const
|
|
12712
|
-
return window.addEventListener("scroll", T, !0), window.addEventListener("resize", T),
|
|
12713
|
-
window.removeEventListener("scroll", T, !0), window.removeEventListener("resize", T),
|
|
12721
|
+
const E = window.visualViewport;
|
|
12722
|
+
return window.addEventListener("scroll", T, !0), window.addEventListener("resize", T), E?.addEventListener("resize", T), E?.addEventListener("scroll", T), () => {
|
|
12723
|
+
window.removeEventListener("scroll", T, !0), window.removeEventListener("resize", T), E?.removeEventListener("resize", T), E?.removeEventListener("scroll", T);
|
|
12714
12724
|
};
|
|
12715
12725
|
}, [H, N]), F(() => {
|
|
12716
|
-
const T = (
|
|
12717
|
-
if (h1.current && !h1.current.contains(
|
|
12726
|
+
const T = (E) => {
|
|
12727
|
+
if (h1.current && !h1.current.contains(E.target)) {
|
|
12718
12728
|
if (N && H) {
|
|
12719
12729
|
const U = document.querySelector(".dropdown-menu--portal");
|
|
12720
|
-
if (U && U.contains(
|
|
12730
|
+
if (U && U.contains(E.target)) return;
|
|
12721
12731
|
}
|
|
12722
12732
|
if (t && !m && k.trim() && !(V.length > 0 && V[0].label.toLowerCase() === k.trim().toLowerCase())) {
|
|
12723
12733
|
const U = v.find((c1) => c1.label.toLowerCase() === k.toLowerCase() || c1.value.toString() === k) || {
|
|
@@ -12749,9 +12759,9 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12749
12759
|
const Q = (T) => {
|
|
12750
12760
|
if (!T.disabled)
|
|
12751
12761
|
if (m) {
|
|
12752
|
-
const
|
|
12762
|
+
const E = V.some((c1) => c1.value === T.value);
|
|
12753
12763
|
let U;
|
|
12754
|
-
|
|
12764
|
+
E ? U = V.filter((c1) => c1.value !== T.value) : U = [...V, T], X(U), f && A(""), g && g(U, p);
|
|
12755
12765
|
} else
|
|
12756
12766
|
A(T.label), X([T]), S(!1), g && g(T, p);
|
|
12757
12767
|
}, r1 = () => {
|
|
@@ -12761,19 +12771,19 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12761
12771
|
Q(T);
|
|
12762
12772
|
return;
|
|
12763
12773
|
}
|
|
12764
|
-
const
|
|
12774
|
+
const E = {
|
|
12765
12775
|
label: k.trim(),
|
|
12766
12776
|
value: k.trim(),
|
|
12767
12777
|
className: "custom-option"
|
|
12768
12778
|
};
|
|
12769
12779
|
if (m) {
|
|
12770
|
-
const U = [...V,
|
|
12780
|
+
const U = [...V, E];
|
|
12771
12781
|
X(U), A(""), g && g(U, p);
|
|
12772
12782
|
} else
|
|
12773
|
-
X([
|
|
12783
|
+
X([E]), A(E.label), S(!1), g && g(E, p);
|
|
12774
12784
|
}, B = (T) => {
|
|
12775
|
-
const
|
|
12776
|
-
X(
|
|
12785
|
+
const E = V.filter((U) => U.value !== T.value);
|
|
12786
|
+
X(E), g && (m ? g(E, p) : (g(null, p), f || A("")));
|
|
12777
12787
|
}, Z = () => {
|
|
12778
12788
|
X([]), (!f || !m) && A(""), S(!1), g && g(m ? [] : null, p);
|
|
12779
12789
|
}, J = (T) => {
|
|
@@ -12791,20 +12801,20 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12791
12801
|
switch (T.key) {
|
|
12792
12802
|
case "ArrowDown":
|
|
12793
12803
|
if (T.preventDefault(), t && k && D.length === 0) return;
|
|
12794
|
-
s1((
|
|
12795
|
-
const U =
|
|
12804
|
+
s1((E) => {
|
|
12805
|
+
const U = E < (t && k && !D.some((c1) => c1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1) ? E + 1 : 0;
|
|
12796
12806
|
return U < D.length && W.current[U] && W.current[U]?.scrollIntoView({ block: "nearest" }), U;
|
|
12797
12807
|
});
|
|
12798
12808
|
break;
|
|
12799
12809
|
case "ArrowUp":
|
|
12800
12810
|
if (T.preventDefault(), t && k && D.length === 0) return;
|
|
12801
|
-
s1((
|
|
12802
|
-
const U = t && k && !D.some((K1) => K1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1, c1 =
|
|
12811
|
+
s1((E) => {
|
|
12812
|
+
const U = t && k && !D.some((K1) => K1.label.toLowerCase() === k.toLowerCase()) ? D.length : D.length - 1, c1 = E > 0 ? E - 1 : U;
|
|
12803
12813
|
return c1 < D.length && W.current[c1] && W.current[c1]?.scrollIntoView({ block: "nearest" }), c1;
|
|
12804
12814
|
});
|
|
12805
12815
|
break;
|
|
12806
12816
|
case "Enter":
|
|
12807
|
-
T.preventDefault(),
|
|
12817
|
+
T.preventDefault(), Y >= 0 && Y < D.length ? Q(D[Y]) : (t && k && Y === D.length || t && k && D.length === 0) && r1();
|
|
12808
12818
|
break;
|
|
12809
12819
|
case "Escape":
|
|
12810
12820
|
T.preventDefault(), S(!1), !m && V.length > 0 ? A(V[0].label) : m && f && A("");
|
|
@@ -12816,12 +12826,12 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12816
12826
|
break;
|
|
12817
12827
|
}
|
|
12818
12828
|
}
|
|
12819
|
-
}, B1 = (T) => V.some((
|
|
12829
|
+
}, B1 = (T) => V.some((E) => E.value === T.value), D1 = () => {
|
|
12820
12830
|
if (V.length === 0) return "";
|
|
12821
12831
|
const T = Math.max(1, d);
|
|
12822
12832
|
if (V.length <= T) return V.map((c1) => c1.label).join(", ");
|
|
12823
|
-
const
|
|
12824
|
-
return `${
|
|
12833
|
+
const E = V.slice(0, T).map((c1) => c1.label).join(", "), U = V.length - T;
|
|
12834
|
+
return `${E} (+${U} ${U === 1 ? "other" : "others"})`;
|
|
12825
12835
|
}, 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", {
|
|
12826
12836
|
className: "dropdown-selected-count",
|
|
12827
12837
|
children: [V.length, " selected"]
|
|
@@ -12841,19 +12851,19 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12841
12851
|
} : void 0,
|
|
12842
12852
|
children: D.length > 0 || T1() ? /* @__PURE__ */ r("ul", {
|
|
12843
12853
|
className: "dropdown-options-list",
|
|
12844
|
-
children: [D.map((
|
|
12854
|
+
children: [D.map((E, U) => /* @__PURE__ */ r("li", {
|
|
12845
12855
|
ref: (c1) => {
|
|
12846
12856
|
W.current[U] = c1;
|
|
12847
12857
|
},
|
|
12848
|
-
className: `dropdown-option ${
|
|
12849
|
-
onClick: () => Q(
|
|
12858
|
+
className: `dropdown-option ${E.className || ""} ${Y === U ? "focused" : ""} ${B1(E) ? "selected" : ""} ${E.disabled ? "dropdown-option--disabled" : ""}`,
|
|
12859
|
+
onClick: () => Q(E),
|
|
12850
12860
|
onMouseEnter: () => s1(U),
|
|
12851
|
-
title:
|
|
12861
|
+
title: E.tooltip,
|
|
12852
12862
|
children: [m && /* @__PURE__ */ e("div", {
|
|
12853
12863
|
className: "dropdown-option-checkbox",
|
|
12854
12864
|
children: /* @__PURE__ */ e("div", {
|
|
12855
|
-
className: `checkbox ${B1(
|
|
12856
|
-
children: B1(
|
|
12865
|
+
className: `checkbox ${B1(E) ? "checked" : ""}`,
|
|
12866
|
+
children: B1(E) && /* @__PURE__ */ e("svg", {
|
|
12857
12867
|
width: "10",
|
|
12858
12868
|
height: "8",
|
|
12859
12869
|
viewBox: "0 0 10 8",
|
|
@@ -12872,31 +12882,31 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12872
12882
|
children: [/* @__PURE__ */ r("span", {
|
|
12873
12883
|
className: "dropdown-option-label",
|
|
12874
12884
|
children: [
|
|
12875
|
-
|
|
12885
|
+
E.prefix && /* @__PURE__ */ e("span", {
|
|
12876
12886
|
className: "dropdown-option-prefix",
|
|
12877
|
-
children:
|
|
12887
|
+
children: E.prefix
|
|
12878
12888
|
}),
|
|
12879
|
-
|
|
12880
|
-
/* @__PURE__ */ e("span", { children:
|
|
12881
|
-
|
|
12889
|
+
E.icon && /* @__PURE__ */ e(G, { name: E.icon }),
|
|
12890
|
+
/* @__PURE__ */ e("span", { children: E.label }),
|
|
12891
|
+
E.suffixIcon && /* @__PURE__ */ e(G, { name: E.suffixIcon })
|
|
12882
12892
|
]
|
|
12883
|
-
}),
|
|
12893
|
+
}), E.details && /* @__PURE__ */ e("span", {
|
|
12884
12894
|
className: "dropdown-option-details",
|
|
12885
|
-
children:
|
|
12895
|
+
children: E.details
|
|
12886
12896
|
})]
|
|
12887
12897
|
})]
|
|
12888
12898
|
}, `dd-option-${y1}-${U}`)), T1() && /* @__PURE__ */ e("li", {
|
|
12889
|
-
ref: (
|
|
12890
|
-
W.current[D.length] =
|
|
12899
|
+
ref: (E) => {
|
|
12900
|
+
W.current[D.length] = E;
|
|
12891
12901
|
},
|
|
12892
|
-
className: `dropdown-option dropdown-option--create ${
|
|
12902
|
+
className: `dropdown-option dropdown-option--create ${Y === D.length ? "focused" : ""}`,
|
|
12893
12903
|
onClick: r1,
|
|
12894
12904
|
onMouseEnter: () => s1(D.length),
|
|
12895
12905
|
children: /* @__PURE__ */ e("div", {
|
|
12896
12906
|
className: "dropdown-option-content",
|
|
12897
12907
|
children: /* @__PURE__ */ r("span", {
|
|
12898
12908
|
className: "dropdown-option-label",
|
|
12899
|
-
children: [/* @__PURE__ */ e(
|
|
12909
|
+
children: [/* @__PURE__ */ e(G, { name: "plus" }), /* @__PURE__ */ r("span", { children: [
|
|
12900
12910
|
"Create “",
|
|
12901
12911
|
k,
|
|
12902
12912
|
"”"
|
|
@@ -12925,12 +12935,12 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12925
12935
|
children: [
|
|
12926
12936
|
X1 && C1?.icon && /* @__PURE__ */ e("span", {
|
|
12927
12937
|
className: "dropdown-selected-icon dropdown-selected-icon--prefix",
|
|
12928
|
-
children: /* @__PURE__ */ e(
|
|
12938
|
+
children: /* @__PURE__ */ e(G, { name: C1.icon })
|
|
12929
12939
|
}),
|
|
12930
12940
|
I1 && C1 && /* @__PURE__ */ r("span", {
|
|
12931
12941
|
className: "dropdown-value-chip",
|
|
12932
12942
|
onClick: n1,
|
|
12933
|
-
children: [C1.icon && /* @__PURE__ */ e(
|
|
12943
|
+
children: [C1.icon && /* @__PURE__ */ e(G, { name: C1.icon }), /* @__PURE__ */ e("span", {
|
|
12934
12944
|
className: "dropdown-value-chip__label",
|
|
12935
12945
|
children: C1.label
|
|
12936
12946
|
})]
|
|
@@ -12945,8 +12955,8 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12945
12955
|
className: "dropdown-chip__remove",
|
|
12946
12956
|
title: "Remove",
|
|
12947
12957
|
disabled: a,
|
|
12948
|
-
onClick: (
|
|
12949
|
-
|
|
12958
|
+
onClick: (E) => {
|
|
12959
|
+
E.stopPropagation(), B(T);
|
|
12950
12960
|
},
|
|
12951
12961
|
children: O0
|
|
12952
12962
|
})]
|
|
@@ -12969,7 +12979,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
12969
12979
|
children: [
|
|
12970
12980
|
r0 && C1?.suffixIcon && /* @__PURE__ */ e("span", {
|
|
12971
12981
|
className: "dropdown-selected-icon dropdown-selected-icon--suffix",
|
|
12972
|
-
children: /* @__PURE__ */ e(
|
|
12982
|
+
children: /* @__PURE__ */ e(G, { name: C1.suffixIcon })
|
|
12973
12983
|
}),
|
|
12974
12984
|
(!m && V.length > 0 || m && V.length > 0) && /* @__PURE__ */ e("span", {
|
|
12975
12985
|
className: "dropdown-action-button dropdown-clear-button",
|
|
@@ -13044,7 +13054,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13044
13054
|
type: "button",
|
|
13045
13055
|
className: "input-date-clear",
|
|
13046
13056
|
onClick: () => p?.(void 0),
|
|
13047
|
-
children: /* @__PURE__ */ e(
|
|
13057
|
+
children: /* @__PURE__ */ e(G, {
|
|
13048
13058
|
name: "clear",
|
|
13049
13059
|
size: "sm"
|
|
13050
13060
|
})
|
|
@@ -13238,7 +13248,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13238
13248
|
children: [
|
|
13239
13249
|
/* @__PURE__ */ e("div", {
|
|
13240
13250
|
className: "input-search__icon",
|
|
13241
|
-
children: /* @__PURE__ */ e(
|
|
13251
|
+
children: /* @__PURE__ */ e(G, { name: "search" })
|
|
13242
13252
|
}),
|
|
13243
13253
|
/* @__PURE__ */ e(A1, {
|
|
13244
13254
|
autoComplete: t,
|
|
@@ -13263,7 +13273,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13263
13273
|
type: "button",
|
|
13264
13274
|
className: "input-search__clear",
|
|
13265
13275
|
onClick: f,
|
|
13266
|
-
children: /* @__PURE__ */ e(
|
|
13276
|
+
children: /* @__PURE__ */ e(G, {
|
|
13267
13277
|
name: "clear",
|
|
13268
13278
|
size: "sm"
|
|
13269
13279
|
})
|
|
@@ -13294,7 +13304,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13294
13304
|
className: `control-panel__filter-title${t.isActive ? " control-panel__filter-title--active" : ""}`,
|
|
13295
13305
|
children: [
|
|
13296
13306
|
t.isActive && /* @__PURE__ */ e("span", { className: "control-panel__filter-active-dot" }),
|
|
13297
|
-
t.icon && /* @__PURE__ */ e(
|
|
13307
|
+
t.icon && /* @__PURE__ */ e(G, { name: t.icon }),
|
|
13298
13308
|
t.label
|
|
13299
13309
|
]
|
|
13300
13310
|
}), /* @__PURE__ */ e(Tr, {
|
|
@@ -13478,7 +13488,7 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13478
13488
|
className: "control-panel__filter-swatch",
|
|
13479
13489
|
style: { backgroundColor: i.color }
|
|
13480
13490
|
}),
|
|
13481
|
-
i.icon && /* @__PURE__ */ e(
|
|
13491
|
+
i.icon && /* @__PURE__ */ e(G, { name: i.icon }),
|
|
13482
13492
|
/* @__PURE__ */ e("span", {
|
|
13483
13493
|
className: "control-panel__filter-label",
|
|
13484
13494
|
children: i.label
|
|
@@ -13599,47 +13609,47 @@ var El = ({ name: t, size: c = "medium", shape: l = "rounded", className: a = ""
|
|
|
13599
13609
|
}, i.value);
|
|
13600
13610
|
})
|
|
13601
13611
|
});
|
|
13602
|
-
}, Zr = ({ navigation: t }) => {
|
|
13603
|
-
const
|
|
13612
|
+
}, Zr = ({ navigation: t, onNavigate: c }) => {
|
|
13613
|
+
const l = t.some((a) => (a.children?.length ?? 0) > 0);
|
|
13604
13614
|
return /* @__PURE__ */ e("nav", {
|
|
13605
13615
|
className: "control-panel__nav",
|
|
13606
|
-
children: t.map((
|
|
13616
|
+
children: t.map((a) => B2(a, l, c))
|
|
13607
13617
|
});
|
|
13608
13618
|
};
|
|
13609
|
-
function B2(t, c, l = 0) {
|
|
13610
|
-
const
|
|
13619
|
+
function B2(t, c, l, a = 0) {
|
|
13620
|
+
const s = t.children ?? [], o = s.length > 0, i = t.isOpen ?? !1, n = [
|
|
13611
13621
|
"control-panel__nav-item",
|
|
13612
13622
|
t.isActive ? "control-panel__nav-item--active" : "",
|
|
13613
13623
|
t.dimmed ? "control-panel__nav-item--dimmed" : "",
|
|
13614
|
-
|
|
13624
|
+
o ? "control-panel__nav-item--has-children" : ""
|
|
13615
13625
|
].filter(Boolean).join(" ");
|
|
13616
13626
|
return /* @__PURE__ */ r("div", {
|
|
13617
13627
|
className: "control-panel__nav-node",
|
|
13618
13628
|
children: [/* @__PURE__ */ r("div", {
|
|
13619
13629
|
className: "control-panel__nav-row",
|
|
13620
|
-
style: { "--control-panel-nav-depth":
|
|
13621
|
-
children: [c && (
|
|
13622
|
-
className: `control-panel__nav-toggle${
|
|
13623
|
-
onClick: (
|
|
13624
|
-
|
|
13630
|
+
style: { "--control-panel-nav-depth": a },
|
|
13631
|
+
children: [c && (o ? /* @__PURE__ */ e("button", {
|
|
13632
|
+
className: `control-panel__nav-toggle${i ? " control-panel__nav-toggle--open" : ""}`,
|
|
13633
|
+
onClick: (m) => {
|
|
13634
|
+
m.stopPropagation(), t.onOpenChange?.(!i, t);
|
|
13625
13635
|
},
|
|
13626
13636
|
type: "button",
|
|
13627
|
-
children: /* @__PURE__ */ e(
|
|
13637
|
+
children: /* @__PURE__ */ e(G, { name: "caret-right" })
|
|
13628
13638
|
}) : /* @__PURE__ */ e("span", { className: "control-panel__nav-toggle-placeholder" })), /* @__PURE__ */ r("button", {
|
|
13629
|
-
className:
|
|
13639
|
+
className: n,
|
|
13630
13640
|
onClick: () => {
|
|
13631
13641
|
if (t.onClick) {
|
|
13632
|
-
t.onClick();
|
|
13642
|
+
t.onClick(), l?.();
|
|
13633
13643
|
return;
|
|
13634
13644
|
}
|
|
13635
|
-
|
|
13645
|
+
o && t.onOpenChange?.(!i, t);
|
|
13636
13646
|
},
|
|
13637
13647
|
type: "button",
|
|
13638
13648
|
children: [
|
|
13639
13649
|
t.icon ? /* @__PURE__ */ e("span", {
|
|
13640
13650
|
className: "control-panel__nav-icon",
|
|
13641
13651
|
style: t.color ? { color: t.color } : void 0,
|
|
13642
|
-
children: /* @__PURE__ */ e(
|
|
13652
|
+
children: /* @__PURE__ */ e(G, { name: t.icon })
|
|
13643
13653
|
}) : t.color && /* @__PURE__ */ e("span", {
|
|
13644
13654
|
className: "control-panel__nav-dot",
|
|
13645
13655
|
style: { backgroundColor: t.color }
|
|
@@ -13654,16 +13664,16 @@ function B2(t, c, l = 0) {
|
|
|
13654
13664
|
}),
|
|
13655
13665
|
t.badges && t.badges.length > 0 && /* @__PURE__ */ e("span", {
|
|
13656
13666
|
className: "control-panel__nav-badges",
|
|
13657
|
-
children: t.badges.map((
|
|
13658
|
-
className: `control-panel__nav-badge control-panel__nav-badge--${
|
|
13659
|
-
children:
|
|
13660
|
-
},
|
|
13667
|
+
children: t.badges.map((m, p) => /* @__PURE__ */ e("span", {
|
|
13668
|
+
className: `control-panel__nav-badge control-panel__nav-badge--${m.variant}`,
|
|
13669
|
+
children: m.count
|
|
13670
|
+
}, p))
|
|
13661
13671
|
})
|
|
13662
13672
|
]
|
|
13663
13673
|
})]
|
|
13664
|
-
}),
|
|
13665
|
-
className: `control-panel__nav-children${
|
|
13666
|
-
children:
|
|
13674
|
+
}), o && /* @__PURE__ */ e("div", {
|
|
13675
|
+
className: `control-panel__nav-children${i ? " control-panel__nav-children--open" : ""}`,
|
|
13676
|
+
children: s.map((m) => B2(m, c, l, a + 1))
|
|
13667
13677
|
})]
|
|
13668
13678
|
}, t.id);
|
|
13669
13679
|
}
|
|
@@ -13785,7 +13795,7 @@ var Gr = [{
|
|
|
13785
13795
|
type: "radio",
|
|
13786
13796
|
value: p.value
|
|
13787
13797
|
}),
|
|
13788
|
-
p.icon && /* @__PURE__ */ e(
|
|
13798
|
+
p.icon && /* @__PURE__ */ e(G, { name: p.icon }),
|
|
13789
13799
|
/* @__PURE__ */ e("span", {
|
|
13790
13800
|
className: "control-panel__filter-label",
|
|
13791
13801
|
children: p.label
|
|
@@ -13858,9 +13868,12 @@ var Gr = [{
|
|
|
13858
13868
|
}),
|
|
13859
13869
|
p.length > 0 && /* @__PURE__ */ e("div", {
|
|
13860
13870
|
className: "control-panel__actions",
|
|
13861
|
-
children: p.map((
|
|
13871
|
+
children: p.map((Y) => /* @__PURE__ */ e(jr, { action: Y }, Y.id))
|
|
13872
|
+
}),
|
|
13873
|
+
m.length > 0 && /* @__PURE__ */ e(Zr, {
|
|
13874
|
+
navigation: m,
|
|
13875
|
+
onNavigate: N ? y : void 0
|
|
13862
13876
|
}),
|
|
13863
|
-
m.length > 0 && /* @__PURE__ */ e(Zr, { navigation: m }),
|
|
13864
13877
|
P && /* @__PURE__ */ r("div", {
|
|
13865
13878
|
className: "control-panel__filters",
|
|
13866
13879
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -13877,10 +13890,10 @@ var Gr = [{
|
|
|
13877
13890
|
onClick: () => u({ source: "control-panel" }),
|
|
13878
13891
|
children: "Clear filters"
|
|
13879
13892
|
})]
|
|
13880
|
-
}), g.map((
|
|
13881
|
-
filter:
|
|
13893
|
+
}), g.map((Y) => /* @__PURE__ */ e(Dr, {
|
|
13894
|
+
filter: Y,
|
|
13882
13895
|
onChange: (s1) => v?.(s1)
|
|
13883
|
-
},
|
|
13896
|
+
}, Y.id))]
|
|
13884
13897
|
}),
|
|
13885
13898
|
P && D && /* @__PURE__ */ e(n0, { spacing: 0 }),
|
|
13886
13899
|
D && /* @__PURE__ */ e(Ir, {
|
|
@@ -13950,7 +13963,7 @@ var Gr = [{
|
|
|
13950
13963
|
document.body.removeChild(c);
|
|
13951
13964
|
}
|
|
13952
13965
|
}, ua = ({ children: t, className: c = "", copiedLabel: l = "Copied", disabled: a = !1, errorLabel: s = "Copy failed", iconOnly: o = !1, label: i = "Copy", onCopy: n, onError: d, resetDelay: h = 1800, size: m = "medium", title: p, value: g, variant: w = "ghost" }) => {
|
|
13953
|
-
const [v, u] = z("idle"), f =
|
|
13966
|
+
const [v, u] = z("idle"), f = O(null);
|
|
13954
13967
|
F(() => () => {
|
|
13955
13968
|
f.current && window.clearTimeout(f.current);
|
|
13956
13969
|
}, []);
|
|
@@ -14018,7 +14031,7 @@ var Gr = [{
|
|
|
14018
14031
|
const o = c ? (a - 1) * t + 1 : 0, i = Math.min(a * t, c), n = s ? ` ${s}` : "";
|
|
14019
14032
|
return c === l ? `Showing ${o}-${i} of ${l}${n}` : `Showing ${o}-${i} of ${c} filtered${n} (${l} total)`;
|
|
14020
14033
|
}, J1 = ({ icon: t, title: c, description: l, noCard: a, primary: s, secondary: o, children: i }) => {
|
|
14021
|
-
const n = s || o, d = typeof t == "string" ? /* @__PURE__ */ e(
|
|
14034
|
+
const n = s || o, d = typeof t == "string" ? /* @__PURE__ */ e(G, {
|
|
14022
14035
|
name: t,
|
|
14023
14036
|
size: "xxxl"
|
|
14024
14037
|
}) : t;
|
|
@@ -14055,7 +14068,7 @@ var Gr = [{
|
|
|
14055
14068
|
]
|
|
14056
14069
|
});
|
|
14057
14070
|
}, Fr = 45, qr = 120, Or = 45, Yr = 45, Xr = 8, Kr = 2, o2 = ({ currentPage: t, totalPages: c, totalItems: l, onPageChange: a, showPagesNumbers: s = !1, pageSizeOptions: o, pageSize: i, onPageSizeChange: n, pageSizeLabel: d = "Rows", horizontalAlign: h = "left" }) => {
|
|
14058
|
-
const { isAtLeast: m, isMobile: p } = m0(), g =
|
|
14071
|
+
const { isAtLeast: m, isMobile: p } = m0(), g = O(null), [w, v] = z(p ? 0 : 2), u = j(() => {
|
|
14059
14072
|
const b = g.current;
|
|
14060
14073
|
if (!b) return;
|
|
14061
14074
|
const M = b.offsetWidth - ((m("desktop") ? qr : Or) * 2 + Fr * 2 + Yr * 2 + Xr * 6), _ = Math.floor(M / 53);
|
|
@@ -14204,7 +14217,7 @@ var Gr = [{
|
|
|
14204
14217
|
500
|
|
14205
14218
|
], R2 = (t) => typeof t.header == "string" ? t.header : t.key, lc = (t) => typeof t == "number" ? `${t}px` : t, A2 = (t) => /* @__PURE__ */ r("span", {
|
|
14206
14219
|
className: "data-view__column-label",
|
|
14207
|
-
children: [t.icon && /* @__PURE__ */ e(
|
|
14220
|
+
children: [t.icon && /* @__PURE__ */ e(G, {
|
|
14208
14221
|
className: "data-view__column-icon",
|
|
14209
14222
|
name: t.icon,
|
|
14210
14223
|
size: "sm",
|
|
@@ -14214,7 +14227,7 @@ var Gr = [{
|
|
|
14214
14227
|
const l = t.cellIcon?.(c), a = t.accessor ? t.accessor(c) : c[t.key];
|
|
14215
14228
|
return l ? /* @__PURE__ */ r("span", {
|
|
14216
14229
|
className: "data-view__cell-with-icon",
|
|
14217
|
-
children: [/* @__PURE__ */ e(
|
|
14230
|
+
children: [/* @__PURE__ */ e(G, {
|
|
14218
14231
|
className: "data-view__cell-icon",
|
|
14219
14232
|
name: l
|
|
14220
14233
|
}), /* @__PURE__ */ e("span", { children: a })]
|
|
@@ -14234,14 +14247,14 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14234
14247
|
secondary: h.secondary
|
|
14235
14248
|
}) : /* @__PURE__ */ e(J1, { title: "No data available" });
|
|
14236
14249
|
const S = (k, A) => {
|
|
14237
|
-
const D = H.get(A), P = l(k, A),
|
|
14250
|
+
const D = H.get(A), P = l(k, A), Y = m && p.includes(P), s1 = N.has(P), V = n?.(k), X = `data-view__card ${i || V ? "data-view__card--clickable" : ""} ${Y ? "data-view__card--selected" : ""} ${s1 ? "data-view__card--pinned" : ""} ${d?.(k) || ""}`, a1 = ($) => {
|
|
14238
14251
|
$.metaKey || $.ctrlKey || $.shiftKey || $.altKey || $.button !== 0 || i && ($.preventDefault(), i(k, $));
|
|
14239
14252
|
}, I = /* @__PURE__ */ r(l1, { children: [
|
|
14240
14253
|
s1 && /* @__PURE__ */ e(K, {
|
|
14241
14254
|
title: "Pinned",
|
|
14242
14255
|
children: /* @__PURE__ */ e("span", {
|
|
14243
14256
|
className: "data-view__card-pin",
|
|
14244
|
-
children: /* @__PURE__ */ e(
|
|
14257
|
+
children: /* @__PURE__ */ e(G, {
|
|
14245
14258
|
name: "pin",
|
|
14246
14259
|
size: "sm"
|
|
14247
14260
|
})
|
|
@@ -14251,7 +14264,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14251
14264
|
className: "data-view__card-select",
|
|
14252
14265
|
onClick: ($) => $.stopPropagation(),
|
|
14253
14266
|
children: /* @__PURE__ */ e(d0, {
|
|
14254
|
-
checked:
|
|
14267
|
+
checked: Y || !1,
|
|
14255
14268
|
onChange: ($) => w(P, $)
|
|
14256
14269
|
})
|
|
14257
14270
|
}),
|
|
@@ -14267,7 +14280,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14267
14280
|
className: "data-view__card-title-row",
|
|
14268
14281
|
children: [/* @__PURE__ */ r("div", {
|
|
14269
14282
|
className: "data-view__card-title-line",
|
|
14270
|
-
children: [$ && /* @__PURE__ */ e(
|
|
14283
|
+
children: [$ && /* @__PURE__ */ e(G, {
|
|
14271
14284
|
className: "data-view__card-icon",
|
|
14272
14285
|
name: $
|
|
14273
14286
|
}), /* @__PURE__ */ e("span", {
|
|
@@ -14336,7 +14349,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14336
14349
|
className: "data-view__group-count",
|
|
14337
14350
|
children: A.totalCount
|
|
14338
14351
|
}),
|
|
14339
|
-
x && /* @__PURE__ */ e(
|
|
14352
|
+
x && /* @__PURE__ */ e(G, {
|
|
14340
14353
|
className: "data-view__group-chevron",
|
|
14341
14354
|
name: P ? "caret-down" : "caret-up",
|
|
14342
14355
|
size: "sm"
|
|
@@ -14345,7 +14358,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14345
14358
|
}), !P && /* @__PURE__ */ e("div", {
|
|
14346
14359
|
className: L,
|
|
14347
14360
|
style: y,
|
|
14348
|
-
children: A.items.map((
|
|
14361
|
+
children: A.items.map((Y, s1) => S(Y, D + s1))
|
|
14349
14362
|
})]
|
|
14350
14363
|
}, A.key ?? "__null__");
|
|
14351
14364
|
})
|
|
@@ -14358,7 +14371,7 @@ function ac({ data: t, columns: c, rowKey: l, card: a, actions: s, timeline: o,
|
|
|
14358
14371
|
});
|
|
14359
14372
|
}
|
|
14360
14373
|
function ic({ config: t }) {
|
|
14361
|
-
const { options: c, selectedKeys: l, onChange: a, label: s = "Columns" } = t, o =
|
|
14374
|
+
const { options: c, selectedKeys: l, onChange: a, label: s = "Columns" } = t, o = O(null), [i, n] = z(!1);
|
|
14362
14375
|
if (c.length === 0) return null;
|
|
14363
14376
|
const d = (h, m) => {
|
|
14364
14377
|
if (m) {
|
|
@@ -14376,7 +14389,7 @@ function ic({ config: t }) {
|
|
|
14376
14389
|
onClick: () => n((h) => !h),
|
|
14377
14390
|
children: /* @__PURE__ */ r("span", {
|
|
14378
14391
|
className: "data-view__column-selector-label",
|
|
14379
|
-
children: [s, /* @__PURE__ */ e(
|
|
14392
|
+
children: [s, /* @__PURE__ */ e(G, {
|
|
14380
14393
|
name: "caret-down",
|
|
14381
14394
|
size: "sm"
|
|
14382
14395
|
})]
|
|
@@ -14412,7 +14425,7 @@ var nc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14412
14425
|
children: /* @__PURE__ */ e(q, {
|
|
14413
14426
|
className: `mini-sort__button${m ? " is-active" : ""}`,
|
|
14414
14427
|
disabled: n.disabled,
|
|
14415
|
-
icon: n.icon ? /* @__PURE__ */ e(
|
|
14428
|
+
icon: n.icon ? /* @__PURE__ */ e(G, {
|
|
14416
14429
|
className: "mini-sort__icon",
|
|
14417
14430
|
name: n.icon,
|
|
14418
14431
|
size: "sm",
|
|
@@ -14429,7 +14442,7 @@ var nc = ({ items: t, sortKey: c, sortDirection: l, onSort: a, align: s = "left"
|
|
|
14429
14442
|
children: /* @__PURE__ */ e(q, {
|
|
14430
14443
|
className: "mini-sort__button mini-sort__direction",
|
|
14431
14444
|
disabled: c === null,
|
|
14432
|
-
icon: /* @__PURE__ */ e(
|
|
14445
|
+
icon: /* @__PURE__ */ e(G, {
|
|
14433
14446
|
className: "mini-sort__icon",
|
|
14434
14447
|
name: l === "asc" ? "arrow-up" : "arrow-down",
|
|
14435
14448
|
size: "sm",
|
|
@@ -14463,17 +14476,17 @@ function oc({ columns: t, config: c, sortDirection: l, sortKey: a, onSort: s })
|
|
|
14463
14476
|
function sc({ state: t }) {
|
|
14464
14477
|
return /* @__PURE__ */ e("span", {
|
|
14465
14478
|
className: `data-view__sort-icon data-view__sort-icon--${t}`,
|
|
14466
|
-
children: /* @__PURE__ */ e(
|
|
14479
|
+
children: /* @__PURE__ */ e(G, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
14467
14480
|
});
|
|
14468
14481
|
}
|
|
14469
|
-
function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = s2, initialPageSize: d = s2[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:
|
|
14470
|
-
const { isMobile: p1 } = m0(), [h1, W] = z(b), [o1, v1] = z(M), [y1, k1] = z([]), g1 = i ?? y1, [$1, Q] = z(1), r1 =
|
|
14482
|
+
function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1, onSelectionChange: o, selectedIds: i, pageSizeOptions: n = s2, initialPageSize: d = s2[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: Y, totalItems: s1, group: V, showResultsCount: X = !0, totalCount: a1, itemNoun: I, columnSelector: $ }) {
|
|
14483
|
+
const { isMobile: p1 } = m0(), [h1, W] = z(b), [o1, v1] = z(M), [y1, k1] = z([]), g1 = i ?? y1, [$1, Q] = z(1), r1 = Y ?? $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) => {
|
|
14471
14484
|
f1((e1) => {
|
|
14472
14485
|
const d1 = new Set(e1);
|
|
14473
14486
|
return d1.has(R) ? d1.delete(R) : d1.add(R), d1;
|
|
14474
14487
|
});
|
|
14475
14488
|
}, D1 = (R, e1) => l?.(R, e1) ?? e1, Y1 = (R) => {
|
|
14476
|
-
|
|
14489
|
+
Y === void 0 && Q(R), D?.(R);
|
|
14477
14490
|
}, _1 = _ !== void 0 ? _ : h1, L1 = N ?? o1, T1 = (R, e1) => {
|
|
14478
14491
|
_ === void 0 && W(R), N === void 0 && v1(e1), L?.({
|
|
14479
14492
|
key: R,
|
|
@@ -14510,7 +14523,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14510
14523
|
_1,
|
|
14511
14524
|
t0,
|
|
14512
14525
|
a
|
|
14513
|
-
]), I1 = s1 !== void 0, X1 = I1 ? s1 : C1.length, r0 = Math.max(1, Math.ceil(X1 / B)), Z1 = Math.min(r1, r0), T = I1 ? C1 : C1.slice((Z1 - 1) * B, Z1 * B),
|
|
14526
|
+
]), I1 = s1 !== void 0, X1 = I1 ? s1 : C1.length, r0 = Math.max(1, Math.ceil(X1 / B)), Z1 = Math.min(r1, r0), T = I1 ? C1 : C1.slice((Z1 - 1) * B, Z1 * B), E = X ? Ur(B, X1, a1 ?? X1, Z1, I) : null, U = m1(() => {
|
|
14514
14527
|
if (!V) return null;
|
|
14515
14528
|
const R = /* @__PURE__ */ new Map();
|
|
14516
14529
|
return C1.forEach((e1) => {
|
|
@@ -14563,12 +14576,12 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14563
14576
|
sortKey: _1,
|
|
14564
14577
|
sortDirection: L1,
|
|
14565
14578
|
onSort: T1
|
|
14566
|
-
}) : null, J0 = $ && $.options.length > 0 ? /* @__PURE__ */ e(ic, { config: $ }) : null, $0 =
|
|
14579
|
+
}) : null, J0 = $ && $.options.length > 0 ? /* @__PURE__ */ e(ic, { config: $ }) : null, $0 = E || Q0 || J0 ? /* @__PURE__ */ r("div", {
|
|
14567
14580
|
className: `data-view__top-row data-view__top-row--mini-${O2}`,
|
|
14568
14581
|
children: [
|
|
14569
|
-
|
|
14582
|
+
E && /* @__PURE__ */ e("div", {
|
|
14570
14583
|
className: "data-view__results-count",
|
|
14571
|
-
children:
|
|
14584
|
+
children: E
|
|
14572
14585
|
}),
|
|
14573
14586
|
Q0,
|
|
14574
14587
|
J0
|
|
@@ -14618,7 +14631,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14618
14631
|
A0 && T1(A0.key, L1 === "asc" ? "desc" : "asc");
|
|
14619
14632
|
},
|
|
14620
14633
|
variant: "ghost",
|
|
14621
|
-
children: /* @__PURE__ */ e(
|
|
14634
|
+
children: /* @__PURE__ */ e(G, { name: L1 === "asc" ? "arrow-up" : "arrow-down" })
|
|
14622
14635
|
})
|
|
14623
14636
|
})]
|
|
14624
14637
|
}),
|
|
@@ -14760,7 +14773,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14760
14773
|
style: J[w1.key] ? { width: J[w1.key] } : void 0,
|
|
14761
14774
|
children: [T0 === 0 && z1 && /* @__PURE__ */ e(K, {
|
|
14762
14775
|
title: "Pinned",
|
|
14763
|
-
children: /* @__PURE__ */ e(
|
|
14776
|
+
children: /* @__PURE__ */ e(G, {
|
|
14764
14777
|
className: "data-view__pin-indicator",
|
|
14765
14778
|
name: "pin",
|
|
14766
14779
|
size: "sm"
|
|
@@ -14807,7 +14820,7 @@ function Ca({ columns: t, data: c, rowKey: l, pinnedIds: a, selectable: s = !1,
|
|
|
14807
14820
|
className: "data-view__group-count",
|
|
14808
14821
|
children: i1.totalCount
|
|
14809
14822
|
}),
|
|
14810
|
-
V?.collapsible && /* @__PURE__ */ e(
|
|
14823
|
+
V?.collapsible && /* @__PURE__ */ e(G, {
|
|
14811
14824
|
className: "data-view__group-chevron",
|
|
14812
14825
|
name: N1 ? "caret-down" : "caret-up",
|
|
14813
14826
|
size: "sm"
|
|
@@ -14849,7 +14862,7 @@ var Q1 = (t) => {
|
|
|
14849
14862
|
const [d, h] = z({}), [m, p] = z(() => /* @__PURE__ */ new Date()), [g, w] = z(null), [v, u] = z(o), [f, C] = z({
|
|
14850
14863
|
position: "fixed",
|
|
14851
14864
|
visibility: "hidden"
|
|
14852
|
-
}), [x, b] = z(c?.start ?? ""), [M, _] = z(c?.end ?? ""), N =
|
|
14865
|
+
}), [x, b] = z(c?.start ?? ""), [M, _] = z(c?.end ?? ""), N = O(null), L = O(null), y = c ?? d, H = Q1(y.start), S = Q1(y.end), k = H && S ? {
|
|
14853
14866
|
start: H,
|
|
14854
14867
|
end: S
|
|
14855
14868
|
} : void 0, A = (W) => {
|
|
@@ -14861,13 +14874,13 @@ var Q1 = (t) => {
|
|
|
14861
14874
|
}), w(null), !o && i && u(!1));
|
|
14862
14875
|
}, P = (W) => {
|
|
14863
14876
|
w(W);
|
|
14864
|
-
},
|
|
14865
|
-
|
|
14877
|
+
}, Y = (W) => /^\d{4}-\d{2}-\d{2}$/.test(W) && Q1(W) !== void 0, s1 = () => {
|
|
14878
|
+
Y(x) ? A({
|
|
14866
14879
|
...y,
|
|
14867
14880
|
start: x
|
|
14868
14881
|
}) : b(y.start ?? "");
|
|
14869
14882
|
}, V = () => {
|
|
14870
|
-
|
|
14883
|
+
Y(M) ? A({
|
|
14871
14884
|
...y,
|
|
14872
14885
|
end: M
|
|
14873
14886
|
}) : _(y.end ?? "");
|
|
@@ -15349,7 +15362,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
|
|
|
15349
15362
|
}),
|
|
15350
15363
|
(h || m) && /* @__PURE__ */ r("h2", {
|
|
15351
15364
|
className: "drawer__title",
|
|
15352
|
-
children: [m && /* @__PURE__ */ e(
|
|
15365
|
+
children: [m && /* @__PURE__ */ e(G, { name: m }), h && /* @__PURE__ */ e("span", {
|
|
15353
15366
|
className: "drawer__title-text",
|
|
15354
15367
|
children: h
|
|
15355
15368
|
})]
|
|
@@ -20527,7 +20540,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
|
|
|
20527
20540
|
}) : c;
|
|
20528
20541
|
}
|
|
20529
20542
|
}, ka = ({ label: t, accept: c, multiple: l = !1, showPreview: a = !0, onFiles: s }) => {
|
|
20530
|
-
const [o, i] = z(!1), [n, d] = z([]), h =
|
|
20543
|
+
const [o, i] = z(!1), [n, d] = z([]), h = O(null), [m, p] = z([]);
|
|
20531
20544
|
F(() => {
|
|
20532
20545
|
if (!a) return;
|
|
20533
20546
|
const v = n.filter((u) => u.type.startsWith("image/")).map((u) => URL.createObjectURL(u));
|
|
@@ -20601,7 +20614,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
|
|
|
20601
20614
|
onClick: t[0].onClick,
|
|
20602
20615
|
children: /* @__PURE__ */ e("span", {
|
|
20603
20616
|
className: "float-button__icon",
|
|
20604
|
-
children: /* @__PURE__ */ e(
|
|
20617
|
+
children: /* @__PURE__ */ e(G, {
|
|
20605
20618
|
name: t[0].icon,
|
|
20606
20619
|
size: "xxl"
|
|
20607
20620
|
})
|
|
@@ -20626,7 +20639,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
|
|
|
20626
20639
|
onClick: () => s(o),
|
|
20627
20640
|
children: [/* @__PURE__ */ e("span", {
|
|
20628
20641
|
className: "float-button-menu__icon",
|
|
20629
|
-
children: /* @__PURE__ */ e(
|
|
20642
|
+
children: /* @__PURE__ */ e(G, { name: o.icon })
|
|
20630
20643
|
}), /* @__PURE__ */ e("span", {
|
|
20631
20644
|
className: "float-button-menu__label",
|
|
20632
20645
|
children: o.label
|
|
@@ -20639,7 +20652,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
|
|
|
20639
20652
|
onClick: a,
|
|
20640
20653
|
children: /* @__PURE__ */ e("span", {
|
|
20641
20654
|
className: "float-button__icon",
|
|
20642
|
-
children: /* @__PURE__ */ e(
|
|
20655
|
+
children: /* @__PURE__ */ e(G, {
|
|
20643
20656
|
name: c ? "clear" : "plus",
|
|
20644
20657
|
size: "xxl"
|
|
20645
20658
|
})
|
|
@@ -20761,7 +20774,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
|
|
|
20761
20774
|
w(x.path);
|
|
20762
20775
|
},
|
|
20763
20776
|
children: [
|
|
20764
|
-
/* @__PURE__ */ e(
|
|
20777
|
+
/* @__PURE__ */ e(G, {
|
|
20765
20778
|
name: "folder",
|
|
20766
20779
|
size: "sm"
|
|
20767
20780
|
}),
|
|
@@ -20769,7 +20782,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
|
|
|
20769
20782
|
className: "folder-browser__entry-name",
|
|
20770
20783
|
children: x.name
|
|
20771
20784
|
}),
|
|
20772
|
-
/* @__PURE__ */ e(
|
|
20785
|
+
/* @__PURE__ */ e(G, {
|
|
20773
20786
|
className: "folder-browser__entry-chevron",
|
|
20774
20787
|
name: "arrow-right",
|
|
20775
20788
|
size: "sm"
|
|
@@ -20781,7 +20794,7 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
|
|
|
20781
20794
|
})
|
|
20782
20795
|
});
|
|
20783
20796
|
}, za = ({ children: t, onLoadMore: c, hasMore: l, isLoading: a = !1, threshold: s = 0, rootMargin: o = "0px", height: i, onScrollChange: n, endMessage: d, className: h }) => {
|
|
20784
|
-
const m =
|
|
20797
|
+
const m = O(null), p = O(null), g = O(null), w = j(() => {
|
|
20785
20798
|
const v = m.current;
|
|
20786
20799
|
if (!v) return;
|
|
20787
20800
|
const { scrollTop: u, scrollHeight: f, clientHeight: C } = v, x = {
|
|
@@ -20851,13 +20864,13 @@ var gc = ({ text: t }) => /* @__PURE__ */ e(l1, { children: m1(() => vc(t), [t])
|
|
|
20851
20864
|
]);
|
|
20852
20865
|
const k = (P) => {
|
|
20853
20866
|
if (h?.(P), b === "change" || b === "both") {
|
|
20854
|
-
const
|
|
20855
|
-
L(
|
|
20867
|
+
const Y = S(P);
|
|
20868
|
+
L(Y), H(!0), w?.(Y);
|
|
20856
20869
|
}
|
|
20857
20870
|
}, A = (P) => {
|
|
20858
20871
|
if (H(!0), b === "blur" || b === "both") {
|
|
20859
|
-
const
|
|
20860
|
-
L(
|
|
20872
|
+
const Y = S(P.target.value);
|
|
20873
|
+
L(Y), w?.(Y);
|
|
20861
20874
|
}
|
|
20862
20875
|
d?.(P);
|
|
20863
20876
|
}, D = C && y && !N;
|
|
@@ -20973,7 +20986,7 @@ function Hc(t) {
|
|
|
20973
20986
|
return t.filter((c) => c.type === "token").length;
|
|
20974
20987
|
}
|
|
20975
20988
|
var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, label: o, hint: i, error: n, highlighted: d, size: h = "md", variant: m = "default", disabled: p = !1, readOnly: g = !1, maskChar: w = "_", mono: v = !0, icon: u, suffix: f, className: C = "", id: x, name: b, autoComplete: M }, _) => {
|
|
20976
|
-
const N = E1.useMemo(() => Nc(t), [t]), L = E1.useMemo(() => Hc(N), [N]), y = b0(), H = x ?? y, [S, k] = z(() => c !== void 0 ? c : ""), A =
|
|
20989
|
+
const N = E1.useMemo(() => Nc(t), [t]), L = E1.useMemo(() => Hc(N), [N]), y = b0(), H = x ?? y, [S, k] = z(() => c !== void 0 ? c : ""), A = O(null);
|
|
20977
20990
|
y2(_, () => ({
|
|
20978
20991
|
focus: () => A.current?.focus(),
|
|
20979
20992
|
clear: () => {
|
|
@@ -20981,10 +20994,10 @@ var Sc = M1(({ mask: t, value: c, onChange: l, onComplete: a, placeholder: s, la
|
|
|
20981
20994
|
},
|
|
20982
20995
|
getRawValue: () => S
|
|
20983
20996
|
}));
|
|
20984
|
-
const { masked: D } = U0(S, N, w), P = D.includes(w) ? D.replace(new RegExp(w.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), w) : D,
|
|
20997
|
+
const { masked: D } = U0(S, N, w), P = D.includes(w) ? D.replace(new RegExp(w.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), w) : D, Y = n ? "danger" : m, s1 = [
|
|
20985
20998
|
"input-mask",
|
|
20986
20999
|
`input-mask--${h}`,
|
|
20987
|
-
`input-mask--${
|
|
21000
|
+
`input-mask--${Y}`,
|
|
20988
21001
|
d ? "input-mask--highlighted" : "",
|
|
20989
21002
|
p ? "input-mask--disabled" : "",
|
|
20990
21003
|
g ? "input-mask--readonly" : "",
|
|
@@ -21384,7 +21397,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21384
21397
|
variant: "info",
|
|
21385
21398
|
disabled: !g,
|
|
21386
21399
|
onClick: v,
|
|
21387
|
-
children: ["Next ", /* @__PURE__ */ e(
|
|
21400
|
+
children: ["Next ", /* @__PURE__ */ e(G, {
|
|
21388
21401
|
name: "next",
|
|
21389
21402
|
size: "sm"
|
|
21390
21403
|
})]
|
|
@@ -21533,7 +21546,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21533
21546
|
onClick: () => g(v),
|
|
21534
21547
|
children: [/* @__PURE__ */ e("span", {
|
|
21535
21548
|
className: "MenuHamburger_item__icon",
|
|
21536
|
-
children: v.icon ? /* @__PURE__ */ e(
|
|
21549
|
+
children: v.icon ? /* @__PURE__ */ e(G, { name: v.icon }) : null
|
|
21537
21550
|
}), /* @__PURE__ */ e("span", {
|
|
21538
21551
|
className: "MenuHamburger_item__label",
|
|
21539
21552
|
children: v.label
|
|
@@ -21544,7 +21557,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21544
21557
|
})]
|
|
21545
21558
|
});
|
|
21546
21559
|
}, u0 = (t) => Math.max(0, Math.min(1, t)), Da = ({ buckets: t, viewportStart: c, viewportEnd: l, onScrub: a, bands: s, caption: o, className: i = "" }) => {
|
|
21547
|
-
const n =
|
|
21560
|
+
const n = O(null), d = O(!1), h = Math.max(0, l - c), m = Math.max(1, ...t), p = j((u) => {
|
|
21548
21561
|
const f = n.current;
|
|
21549
21562
|
if (!f) return;
|
|
21550
21563
|
const C = f.getBoundingClientRect(), x = u0((u - C.left) / C.width);
|
|
@@ -21664,7 +21677,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21664
21677
|
disabled: v.disabled,
|
|
21665
21678
|
children: [v.icon && /* @__PURE__ */ e("span", {
|
|
21666
21679
|
className: "navbar__item-icon",
|
|
21667
|
-
children: v.icon ? /* @__PURE__ */ e(
|
|
21680
|
+
children: v.icon ? /* @__PURE__ */ e(G, { name: v.icon }) : null
|
|
21668
21681
|
}), /* @__PURE__ */ e("span", {
|
|
21669
21682
|
className: "navbar__item-label",
|
|
21670
21683
|
children: v.label
|
|
@@ -21710,7 +21723,7 @@ var Sa = M1(({ autoComplete: t = "on", autoFocus: c, cols: l, disabled: a, error
|
|
|
21710
21723
|
]
|
|
21711
21724
|
});
|
|
21712
21725
|
}, Zc = ({ items: t, buttonLabel: c = "Alerts", panelTitle: l = "Notifications", emptyMessage: a = "No active notifications." }) => {
|
|
21713
|
-
const [s, o] = z(!1), [i, n] = z({ opacity: 0 }), d =
|
|
21726
|
+
const [s, o] = z(!1), [i, n] = z({ opacity: 0 }), d = O(null), h = O(null), m = t.some((g) => g.severity === "critical");
|
|
21714
21727
|
return F(() => {
|
|
21715
21728
|
if (!s || !d.current || !h.current) return;
|
|
21716
21729
|
const g = requestAnimationFrame(() => {
|
|
@@ -22422,7 +22435,7 @@ ${s.textContent ?? ""}
|
|
|
22422
22435
|
</tbody>
|
|
22423
22436
|
</table><p><br></p>
|
|
22424
22437
|
`, Jc = 100, el = (t, c, l) => {
|
|
22425
|
-
const a =
|
|
22438
|
+
const a = O([]), s = O([]);
|
|
22426
22439
|
return {
|
|
22427
22440
|
snapshotForUndo: j(() => {
|
|
22428
22441
|
const o = t.current;
|
|
@@ -22456,7 +22469,7 @@ ${s.textContent ?? ""}
|
|
|
22456
22469
|
])
|
|
22457
22470
|
};
|
|
22458
22471
|
}, tl = ({ editorRef: t, snapshotForUndo: c, emitChange: l }) => {
|
|
22459
|
-
const [a, s] = z(!1), [o, i] = z(""), [n, d] = z(""), h =
|
|
22472
|
+
const [a, s] = z(!1), [o, i] = z(""), [n, d] = z(""), h = O(null), m = O(null);
|
|
22460
22473
|
return {
|
|
22461
22474
|
showLinkPrompt: a,
|
|
22462
22475
|
linkUrl: o,
|
|
@@ -22801,7 +22814,7 @@ ${s.textContent ?? ""}
|
|
|
22801
22814
|
onMouseDown: (h) => {
|
|
22802
22815
|
h.preventDefault(), s();
|
|
22803
22816
|
},
|
|
22804
|
-
children: [/* @__PURE__ */ e(
|
|
22817
|
+
children: [/* @__PURE__ */ e(G, { name: "checkmark" }), " List"]
|
|
22805
22818
|
})
|
|
22806
22819
|
})]
|
|
22807
22820
|
}),
|
|
@@ -22831,7 +22844,7 @@ ${s.textContent ?? ""}
|
|
|
22831
22844
|
onMouseDown: (h) => {
|
|
22832
22845
|
h.preventDefault(), o();
|
|
22833
22846
|
},
|
|
22834
|
-
children: [/* @__PURE__ */ e(
|
|
22847
|
+
children: [/* @__PURE__ */ e(G, { name: "link" }), " Link"]
|
|
22835
22848
|
})
|
|
22836
22849
|
})
|
|
22837
22850
|
}),
|
|
@@ -22861,7 +22874,7 @@ ${s.textContent ?? ""}
|
|
|
22861
22874
|
})] })
|
|
22862
22875
|
]
|
|
22863
22876
|
}), Ya = ({ advanced: t = !1, error: c, format: l = "html", id: a, label: s, onBlur: o, onChange: i, placeholder: n, required: d = !1, value: h }) => {
|
|
22864
|
-
const m =
|
|
22877
|
+
const m = O(null), p = O(!1), g = O(null), [w, v] = z(/* @__PURE__ */ new Set());
|
|
22865
22878
|
F(() => {
|
|
22866
22879
|
const Q = m.current;
|
|
22867
22880
|
if (!Q || p.current) return;
|
|
@@ -22880,7 +22893,7 @@ ${s.textContent ?? ""}
|
|
|
22880
22893
|
editorRef: m,
|
|
22881
22894
|
snapshotForUndo: f,
|
|
22882
22895
|
emitChange: u
|
|
22883
|
-
}), { activeTable: A, tableToolbarPos: D, showTableToolbar: P, hideTableToolbar:
|
|
22896
|
+
}), { activeTable: A, tableToolbarPos: D, showTableToolbar: P, hideTableToolbar: Y, addRowAbove: s1, addRowBelow: V, removeRow: X, addColumnLeft: a1, addColumnRight: I, removeColumn: $, deleteTable: p1 } = rl({
|
|
22884
22897
|
editorRef: m,
|
|
22885
22898
|
snapshotForUndo: f,
|
|
22886
22899
|
emitChange: u
|
|
@@ -22945,12 +22958,12 @@ ${s.textContent ?? ""}
|
|
|
22945
22958
|
return;
|
|
22946
22959
|
}
|
|
22947
22960
|
const Z = r1.closest("table");
|
|
22948
|
-
Z ? P(Z) :
|
|
22961
|
+
Z ? P(Z) : Y(), h1();
|
|
22949
22962
|
}, [
|
|
22950
22963
|
H,
|
|
22951
22964
|
h1,
|
|
22952
22965
|
P,
|
|
22953
|
-
|
|
22966
|
+
Y
|
|
22954
22967
|
]), g1 = j((Q) => {
|
|
22955
22968
|
if ((Q.ctrlKey || Q.metaKey) && Q.key === "z") {
|
|
22956
22969
|
Q.preventDefault(), Q.shiftKey ? x() : C();
|
|
@@ -23134,7 +23147,7 @@ ${s.textContent ?? ""}
|
|
|
23134
23147
|
children: [
|
|
23135
23148
|
y.icon && /* @__PURE__ */ e("span", {
|
|
23136
23149
|
className: "sidebar__link-icon",
|
|
23137
|
-
children: /* @__PURE__ */ e(
|
|
23150
|
+
children: /* @__PURE__ */ e(G, { name: y.icon })
|
|
23138
23151
|
}),
|
|
23139
23152
|
y.emoji && /* @__PURE__ */ e("span", {
|
|
23140
23153
|
className: "sidebar__link-emoji",
|
|
@@ -23187,7 +23200,7 @@ ${s.textContent ?? ""}
|
|
|
23187
23200
|
className: "sidebar__section-title-row",
|
|
23188
23201
|
children: [y.icon && /* @__PURE__ */ e("span", {
|
|
23189
23202
|
className: "sidebar__section-icon",
|
|
23190
|
-
children: /* @__PURE__ */ e(
|
|
23203
|
+
children: /* @__PURE__ */ e(G, { name: y.icon })
|
|
23191
23204
|
}), /* @__PURE__ */ r("div", {
|
|
23192
23205
|
className: "sidebar__section-copy",
|
|
23193
23206
|
children: [y.title && /* @__PURE__ */ e("span", {
|
|
@@ -23335,7 +23348,7 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23335
23348
|
}))]
|
|
23336
23349
|
});
|
|
23337
23350
|
}, ci = ({ children: t, panel: c, isPanelOpen: l, onPanelClose: a, panelTitle: s, defaultLeftPercent: o = 55, minLeftPercent: i = 25, minRightPercent: n = 20, className: d = "" }) => {
|
|
23338
|
-
const [h, m] = z(o), p =
|
|
23351
|
+
const [h, m] = z(o), p = O(null), g = O(!1);
|
|
23339
23352
|
F(() => (l ? document.body.classList.add("split-panel-active") : document.body.classList.remove("split-panel-active"), () => {
|
|
23340
23353
|
document.body.classList.remove("split-panel-active");
|
|
23341
23354
|
}), [l]);
|
|
@@ -23476,7 +23489,7 @@ var ti = ({ variant: t = "text", animation: c = "pulse", width: l, height: a, bo
|
|
|
23476
23489
|
function p2({ state: t }) {
|
|
23477
23490
|
return /* @__PURE__ */ e("span", {
|
|
23478
23491
|
className: `suggestions-list__sort-icon suggestions-list__sort-icon--${t}`,
|
|
23479
|
-
children: /* @__PURE__ */ e(
|
|
23492
|
+
children: /* @__PURE__ */ e(G, { name: t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
23480
23493
|
});
|
|
23481
23494
|
}
|
|
23482
23495
|
var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s = !1, onRowClick: o }) => {
|
|
@@ -24168,7 +24181,7 @@ var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24168
24181
|
label: "Glow",
|
|
24169
24182
|
value: "glow-effect"
|
|
24170
24183
|
}
|
|
24171
|
-
], [f, C] = z(""), [x, b] = z(!1), [M, _] = z(!1), [N, L] = z("all"), y =
|
|
24184
|
+
], [f, C] = z(""), [x, b] = z(!1), [M, _] = z(!1), [N, L] = z("all"), y = O(null), H = O(!1), S = a?.trim().toLowerCase() ?? "", k = m1(() => {
|
|
24172
24185
|
let V = h0;
|
|
24173
24186
|
if (l && l.length > 0) {
|
|
24174
24187
|
const X = new Set(l);
|
|
@@ -24219,12 +24232,12 @@ var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24219
24232
|
effect: h.effect,
|
|
24220
24233
|
components: a1
|
|
24221
24234
|
});
|
|
24222
|
-
},
|
|
24235
|
+
}, Y = () => {
|
|
24223
24236
|
w(), c();
|
|
24224
24237
|
};
|
|
24225
24238
|
return /* @__PURE__ */ e(T2, {
|
|
24226
24239
|
isOpen: t,
|
|
24227
|
-
onClose:
|
|
24240
|
+
onClose: Y,
|
|
24228
24241
|
title: "Theme Settings",
|
|
24229
24242
|
position: "right",
|
|
24230
24243
|
width: "520px",
|
|
@@ -24233,7 +24246,7 @@ var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24233
24246
|
secondary: {
|
|
24234
24247
|
text: "Cancel",
|
|
24235
24248
|
variant: "default",
|
|
24236
|
-
onClick:
|
|
24249
|
+
onClick: Y,
|
|
24237
24250
|
icon: "clear"
|
|
24238
24251
|
},
|
|
24239
24252
|
primary: {
|
|
@@ -24538,9 +24551,9 @@ var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24538
24551
|
className: "tips-of-the-day",
|
|
24539
24552
|
children: [
|
|
24540
24553
|
/* @__PURE__ */ r("h3", { children: [
|
|
24541
|
-
/* @__PURE__ */ e(
|
|
24554
|
+
/* @__PURE__ */ e(G, { name: "sparkle" }),
|
|
24542
24555
|
" Tip Of The Day ",
|
|
24543
|
-
/* @__PURE__ */ e(
|
|
24556
|
+
/* @__PURE__ */ e(G, { name: "sparkle" })
|
|
24544
24557
|
] }),
|
|
24545
24558
|
" ",
|
|
24546
24559
|
/* @__PURE__ */ e("h4", { children: t[c] })
|
|
@@ -24568,7 +24581,7 @@ var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24568
24581
|
children: /* @__PURE__ */ e("button", {
|
|
24569
24582
|
className: "toast__close",
|
|
24570
24583
|
onClick: l,
|
|
24571
|
-
children: /* @__PURE__ */ e(
|
|
24584
|
+
children: /* @__PURE__ */ e(G, {
|
|
24572
24585
|
name: "clear",
|
|
24573
24586
|
size: "sm"
|
|
24574
24587
|
})
|
|
@@ -24586,7 +24599,7 @@ var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24586
24599
|
onClick: () => l(n.key),
|
|
24587
24600
|
children: [n.icon && /* @__PURE__ */ e("span", {
|
|
24588
24601
|
className: "toggle-buttons__card-icon",
|
|
24589
|
-
children: /* @__PURE__ */ e(
|
|
24602
|
+
children: /* @__PURE__ */ e(G, {
|
|
24590
24603
|
name: n.icon,
|
|
24591
24604
|
size: "xl"
|
|
24592
24605
|
})
|
|
@@ -24658,7 +24671,7 @@ var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24658
24671
|
className: "memobit-toolbar__heading-icon",
|
|
24659
24672
|
children: [
|
|
24660
24673
|
a.svg,
|
|
24661
|
-
a.icon && /* @__PURE__ */ e(
|
|
24674
|
+
a.icon && /* @__PURE__ */ e(G, { name: a.icon }),
|
|
24662
24675
|
a.emoji
|
|
24663
24676
|
]
|
|
24664
24677
|
}), /* @__PURE__ */ r("div", {
|
|
@@ -24754,7 +24767,7 @@ var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24754
24767
|
className: "tour-hud__btn",
|
|
24755
24768
|
disabled: l === 0,
|
|
24756
24769
|
onClick: i,
|
|
24757
|
-
children: [/* @__PURE__ */ e(
|
|
24770
|
+
children: [/* @__PURE__ */ e(G, {
|
|
24758
24771
|
name: "arrow-left",
|
|
24759
24772
|
size: "sm"
|
|
24760
24773
|
}), "Prev"]
|
|
@@ -24764,7 +24777,7 @@ var v2 = 10, ni = ({ data: t, label: c, title: l, tooltip: a, enableSearch: s =
|
|
|
24764
24777
|
className: "tour-hud__btn",
|
|
24765
24778
|
disabled: l >= a - 1,
|
|
24766
24779
|
onClick: n,
|
|
24767
|
-
children: ["Next", /* @__PURE__ */ e(
|
|
24780
|
+
children: ["Next", /* @__PURE__ */ e(G, {
|
|
24768
24781
|
name: "arrow-right",
|
|
24769
24782
|
size: "sm"
|
|
24770
24783
|
})]
|
|
@@ -25481,7 +25494,7 @@ var _i = (t, c, l) => {
|
|
|
25481
25494
|
} catch {
|
|
25482
25495
|
return t.trim();
|
|
25483
25496
|
}
|
|
25484
|
-
}, _l = "1.0.
|
|
25497
|
+
}, _l = "1.0.29", Bi = 260, Ll = "3abbdf8", zl = "2026-07-22T13:20:33.195Z", Ri = "260", Vl = (t) => {
|
|
25485
25498
|
const c = document.getElementById("mb-version-toast");
|
|
25486
25499
|
if (c) {
|
|
25487
25500
|
c.remove();
|
|
@@ -25505,7 +25518,7 @@ var _i = (t, c, l) => {
|
|
|
25505
25518
|
const c = {
|
|
25506
25519
|
...t,
|
|
25507
25520
|
lib: _l,
|
|
25508
|
-
libBuildNumber:
|
|
25521
|
+
libBuildNumber: 260,
|
|
25509
25522
|
libCommit: Ll,
|
|
25510
25523
|
libBuildDate: zl
|
|
25511
25524
|
};
|
|
@@ -25626,7 +25639,7 @@ export {
|
|
|
25626
25639
|
Wr as Flag,
|
|
25627
25640
|
_a as FloatButton,
|
|
25628
25641
|
La as FolderBrowserModal,
|
|
25629
|
-
|
|
25642
|
+
G as Icon,
|
|
25630
25643
|
za as InfiniteScroll,
|
|
25631
25644
|
Hr as InputDate,
|
|
25632
25645
|
Va as InputEmail,
|