@lax-wp/design-system 0.11.44 → 0.11.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data-display/tag/Tag.d.ts +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +522 -527
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as A, jsxs as T, Fragment as ot } from "react/jsx-runtime";
|
|
2
2
|
import { AnimatePresence as Rr, motion as st } from "framer-motion";
|
|
3
|
-
import ke, { forwardRef as ct, useRef as
|
|
3
|
+
import ke, { forwardRef as ct, useRef as ae, useState as X, useEffect as re, useMemo as Pe, createElement as Gu, useCallback as ue, memo as Al, createContext as Oo, useContext as fr, useLayoutEffect as ul, useImperativeHandle as Eb, Suspense as SC, Fragment as mS } from "react";
|
|
4
4
|
import { useTranslation as Kt } from "react-i18next";
|
|
5
5
|
import { Tooltip as tr, Select as EC, Skeleton as G1, Checkbox as gS, Dropdown as On, DatePicker as Y1, Modal as wC, Upload as bS, Popover as cl, Drawer as kC } from "antd";
|
|
6
6
|
import { Link as wb, useLocation as TC } from "react-router-dom";
|
|
@@ -92,7 +92,7 @@ function ID() {
|
|
|
92
92
|
}($c)), $c.exports;
|
|
93
93
|
}
|
|
94
94
|
var MD = ID();
|
|
95
|
-
const U = /* @__PURE__ */ Fb(MD),
|
|
95
|
+
const U = /* @__PURE__ */ Fb(MD), oe = ({
|
|
96
96
|
children: t,
|
|
97
97
|
variant: e = "regular",
|
|
98
98
|
size: r = "medium",
|
|
@@ -154,9 +154,9 @@ const U = /* @__PURE__ */ Fb(MD), ae = ({
|
|
|
154
154
|
);
|
|
155
155
|
return /* @__PURE__ */ A("div", { className: f, onClick: n, style: s, children: t });
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
oe.displayName = "Typography";
|
|
158
158
|
const HD = ({ isConditional: t }) => /* @__PURE__ */ A("span", { className: `${t ? "text-yellow-500" : "text-red-500"}`, children: "*" }), Zt = ({ label: t, required: e, isRequiredConditional: r }) => /* @__PURE__ */ T(
|
|
159
|
-
|
|
159
|
+
oe,
|
|
160
160
|
{
|
|
161
161
|
variant: "medium",
|
|
162
162
|
size: "extra-small",
|
|
@@ -189,8 +189,8 @@ const HD = ({ isConditional: t }) => /* @__PURE__ */ A("span", { className: `${t
|
|
|
189
189
|
inputStyle: g = {},
|
|
190
190
|
inputProps: _
|
|
191
191
|
}, y) => {
|
|
192
|
-
const x =
|
|
193
|
-
|
|
192
|
+
const x = ae(null), [E, S] = X(0), w = () => a === "error" ? "border-red-300 focus:border-red-500 focus:ring-red-200" : a === "success" ? "border-green-300 focus:border-green-500 focus:ring-green-200" : a === "info" ? "border-blue-300 focus:border-blue-500 focus:ring-blue-200" : "border-neutral-200 dark:border-black-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20", k = () => a === "error" ? "text-red-500 dark:text-red-400" : a === "success" ? "text-green-500 dark:text-green-400" : a === "info" ? "text-blue-500 dark:text-blue-400" : "text-neutral-500 dark:text-black-100", O = t || `input-${d?.replace(/\s+/g, "-").toLowerCase()}`;
|
|
193
|
+
re(() => {
|
|
194
194
|
if (h && x.current) {
|
|
195
195
|
const N = new ResizeObserver((L) => {
|
|
196
196
|
const R = L[0];
|
|
@@ -290,7 +290,7 @@ const HD = ({ isConditional: t }) => /* @__PURE__ */ A("span", { className: `${t
|
|
|
290
290
|
exit: { opacity: 0, y: -10 },
|
|
291
291
|
transition: { duration: 0.2 },
|
|
292
292
|
children: /* @__PURE__ */ A(
|
|
293
|
-
|
|
293
|
+
oe,
|
|
294
294
|
{
|
|
295
295
|
className: U("mt-1", k()),
|
|
296
296
|
appearance: "custom",
|
|
@@ -463,6 +463,7 @@ const $u = () => {
|
|
|
463
463
|
blue: "bg-blue-50 border-blue-200 text-blue-700 dark:bg-blue-950 dark:border-blue-900 dark:text-blue-300",
|
|
464
464
|
teal: "bg-teal-50 border-teal-200 text-teal-700 dark:bg-teal-950 dark:border-teal-900 dark:text-teal-300",
|
|
465
465
|
orange: "bg-orange-50 border-orange-200 text-orange-700 dark:bg-orange-950 dark:border-orange-900 dark:text-orange-300",
|
|
466
|
+
peach: "bg-peach-50 border-peach-200 text-peach-700 dark:bg-peach-950 dark:border-peach-900 dark:text-peach-300",
|
|
466
467
|
navy: "bg-slate-50 border-slate-200 text-slate-700 dark:bg-slate-900 dark:border-slate-700 dark:text-slate-300",
|
|
467
468
|
gray: "bg-gray-50 border-gray-200 text-gray-700 dark:bg-gray-900 dark:border-gray-700 dark:text-gray-300",
|
|
468
469
|
grey: "bg-gray-50 border-gray-200 text-gray-700 dark:bg-gray-900 dark:border-gray-700 dark:text-gray-300",
|
|
@@ -787,7 +788,7 @@ const nn = ({ labels: t = [] }) => {
|
|
|
787
788
|
onConfidenceScoreClick: te,
|
|
788
789
|
...j
|
|
789
790
|
}, q) => {
|
|
790
|
-
const { t: K } = Kt(), ie = !!(I && F?.color), Y = Q === "modified" && !i && !a && !ie, [Z,
|
|
791
|
+
const { t: K } = Kt(), ie = !!(I && F?.color), Y = Q === "modified" && !i && !a && !ie, [Z, ne] = X(!1), [J, ce] = X(!1), ze = (Ee) => {
|
|
791
792
|
B && B({
|
|
792
793
|
key: O,
|
|
793
794
|
value: Ee
|
|
@@ -966,7 +967,7 @@ const nn = ({ labels: t = [] }) => {
|
|
|
966
967
|
{
|
|
967
968
|
className: "absolute inset-y-0 flex items-center cursor-pointer right-2",
|
|
968
969
|
onClick: () => {
|
|
969
|
-
|
|
970
|
+
ne(!Z), p?.(!Z);
|
|
970
971
|
},
|
|
971
972
|
type: "button",
|
|
972
973
|
children: Z ? /* @__PURE__ */ A(GD, { className: "text-gray-400", size: 16 }) : /* @__PURE__ */ A(YD, { className: "text-gray-400", size: 16 })
|
|
@@ -998,7 +999,7 @@ const nn = ({ labels: t = [] }) => {
|
|
|
998
999
|
exit: { opacity: 0, y: -10 },
|
|
999
1000
|
transition: { duration: 0.2 },
|
|
1000
1001
|
children: /* @__PURE__ */ A(
|
|
1001
|
-
|
|
1002
|
+
oe,
|
|
1002
1003
|
{
|
|
1003
1004
|
className: "mt-1 text-error-500",
|
|
1004
1005
|
appearance: "custom",
|
|
@@ -1017,7 +1018,7 @@ const nn = ({ labels: t = [] }) => {
|
|
|
1017
1018
|
exit: { opacity: 0, y: -10 },
|
|
1018
1019
|
transition: { duration: 0.2 },
|
|
1019
1020
|
children: /* @__PURE__ */ A(
|
|
1020
|
-
|
|
1021
|
+
oe,
|
|
1021
1022
|
{
|
|
1022
1023
|
className: "mt-1 text-success-500 dark:text-success-300",
|
|
1023
1024
|
appearance: "custom",
|
|
@@ -1139,7 +1140,7 @@ const Oue = ct(
|
|
|
1139
1140
|
}
|
|
1140
1141
|
),
|
|
1141
1142
|
f && /* @__PURE__ */ T(
|
|
1142
|
-
|
|
1143
|
+
oe,
|
|
1143
1144
|
{
|
|
1144
1145
|
className: "mt-0.5 text-right text-gray-600 dark:text-gray-400",
|
|
1145
1146
|
appearance: "custom",
|
|
@@ -1173,7 +1174,7 @@ const Oue = ct(
|
|
|
1173
1174
|
id: `${x}-message`,
|
|
1174
1175
|
role: o === "error" ? "alert" : void 0,
|
|
1175
1176
|
children: /* @__PURE__ */ A(
|
|
1176
|
-
|
|
1177
|
+
oe,
|
|
1177
1178
|
{
|
|
1178
1179
|
className: U("mt-1", O()),
|
|
1179
1180
|
appearance: "custom",
|
|
@@ -1384,7 +1385,7 @@ const Oue = ct(
|
|
|
1384
1385
|
}
|
|
1385
1386
|
),
|
|
1386
1387
|
p ? /* @__PURE__ */ T(
|
|
1387
|
-
|
|
1388
|
+
oe,
|
|
1388
1389
|
{
|
|
1389
1390
|
className: "mt-0.5 text-right text-neutral-900 dark:text-white",
|
|
1390
1391
|
appearance: "custom",
|
|
@@ -1406,7 +1407,7 @@ const Oue = ct(
|
|
|
1406
1407
|
}
|
|
1407
1408
|
) : null,
|
|
1408
1409
|
a && /* @__PURE__ */ A(
|
|
1409
|
-
|
|
1410
|
+
oe,
|
|
1410
1411
|
{
|
|
1411
1412
|
className: "text-error-500 mt-1",
|
|
1412
1413
|
appearance: "custom",
|
|
@@ -1508,16 +1509,16 @@ const br = ({
|
|
|
1508
1509
|
MasterDataModal: te,
|
|
1509
1510
|
parseMasterDataFormula: j
|
|
1510
1511
|
}, q) => {
|
|
1511
|
-
const { t: K } = Kt(), [ie, Y] = X(!1), [Z,
|
|
1512
|
-
|
|
1512
|
+
const { t: K } = Kt(), [ie, Y] = X(!1), [Z, ne] = X(null), [J, ce] = X(!1), [ze, Ee] = X(""), [_e, me] = X(null), [ge, we] = X(!1), Se = ae(null), pe = q || Se;
|
|
1513
|
+
re(() => {
|
|
1513
1514
|
const Ne = () => {
|
|
1514
1515
|
const Fe = pe.current || Se.current;
|
|
1515
1516
|
Fe && we(Fe.scrollWidth > Fe.clientWidth);
|
|
1516
1517
|
};
|
|
1517
1518
|
return Ne(), window.addEventListener("resize", Ne), () => window.removeEventListener("resize", Ne);
|
|
1518
|
-
}, [Z, n]),
|
|
1519
|
-
|
|
1520
|
-
}, [h, n]),
|
|
1519
|
+
}, [Z, n]), re(() => {
|
|
1520
|
+
ne(n);
|
|
1521
|
+
}, [h, n]), re(() => {
|
|
1521
1522
|
Z !== null && Z !== n && i(Z, _e);
|
|
1522
1523
|
}, [Z, _e]);
|
|
1523
1524
|
const G = () => {
|
|
@@ -1525,13 +1526,13 @@ const br = ({
|
|
|
1525
1526
|
}, Ae = (Ne) => {
|
|
1526
1527
|
if (Ne.keyCode === 9 || Ne.key === "Enter") {
|
|
1527
1528
|
const Fe = pe.current || Se.current;
|
|
1528
|
-
Fe && (
|
|
1529
|
+
Fe && (ne(ze), Fe.blur());
|
|
1529
1530
|
}
|
|
1530
1531
|
}, Ce = (Ne, Fe) => {
|
|
1531
1532
|
let ve = Ne;
|
|
1532
|
-
d && j && (ve = j(d, Fe)), Ee(""),
|
|
1533
|
+
d && j && (ve = j(d, Fe)), Ee(""), ne(ve), G(), me(Fe);
|
|
1533
1534
|
}, Xe = () => {
|
|
1534
|
-
|
|
1535
|
+
ne(""), me(null);
|
|
1535
1536
|
}, Ze = (Ne) => {
|
|
1536
1537
|
D && x && D({
|
|
1537
1538
|
key: x,
|
|
@@ -1541,7 +1542,7 @@ const br = ({
|
|
|
1541
1542
|
const Ne = "border h-[32px] text-sm rounded-lg block w-full p-2.5 pr-16 font-inter font-medium", Fe = a ? "border-red-300" : I && F?.color ? `border-${F?.color}-300` : "border-gray-300 dark:border-black-600", ve = "placeholder:text-neutral-900 dark:placeholder:text-black-400", Me = `${I && F?.color ? `bg-${F?.color}-50` : "bg-gray-200 dark:bg-black-600 "} ${g || "text-neutral-900 dark:text-black-200"}`;
|
|
1542
1543
|
return `${Ne} ${Fe} ${Me} ${ve}`;
|
|
1543
1544
|
}, We = () => Z !== null ? Z : d && j ? j(d, P) : n;
|
|
1544
|
-
return
|
|
1545
|
+
return re(() => {
|
|
1545
1546
|
J && !u && (Q?.(), ce(!1));
|
|
1546
1547
|
}, [J, u, Q]), /* @__PURE__ */ T(
|
|
1547
1548
|
"div",
|
|
@@ -1655,7 +1656,7 @@ const br = ({
|
|
|
1655
1656
|
placeholder: r,
|
|
1656
1657
|
className: tt(),
|
|
1657
1658
|
onChange: (Ne) => {
|
|
1658
|
-
i(Ne.target.value, _e),
|
|
1659
|
+
i(Ne.target.value, _e), ne(Ne.target?.value);
|
|
1659
1660
|
},
|
|
1660
1661
|
onKeyDown: Ae,
|
|
1661
1662
|
value: We(),
|
|
@@ -1703,7 +1704,7 @@ const br = ({
|
|
|
1703
1704
|
)
|
|
1704
1705
|
] }),
|
|
1705
1706
|
a && /* @__PURE__ */ A(
|
|
1706
|
-
|
|
1707
|
+
oe,
|
|
1707
1708
|
{
|
|
1708
1709
|
className: "text-error-500 mt-1",
|
|
1709
1710
|
appearance: "custom",
|
|
@@ -1805,7 +1806,7 @@ const JD = (t) => Array.isArray(t) ? t.map(
|
|
|
1805
1806
|
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), i());
|
|
1806
1807
|
},
|
|
1807
1808
|
children: /* @__PURE__ */ A(
|
|
1808
|
-
|
|
1809
|
+
oe,
|
|
1809
1810
|
{
|
|
1810
1811
|
size: "small",
|
|
1811
1812
|
variant: "semibold",
|
|
@@ -1865,8 +1866,8 @@ const JD = (t) => Array.isArray(t) ? t.map(
|
|
|
1865
1866
|
isLiveField: ie = !1,
|
|
1866
1867
|
...Y
|
|
1867
1868
|
}, Z) => {
|
|
1868
|
-
const { t:
|
|
1869
|
-
|
|
1869
|
+
const { t: ne } = Kt(), [J, ce] = X(!1), ze = ae(null), [Ee, _e] = X(!1), [me, ge] = X("");
|
|
1870
|
+
re(() => {
|
|
1870
1871
|
const ve = "select-field-scrollbar-styles";
|
|
1871
1872
|
if (document.getElementById(ve)) return;
|
|
1872
1873
|
const Me = document.createElement("style");
|
|
@@ -2092,7 +2093,7 @@ const JD = (t) => Array.isArray(t) ? t.map(
|
|
|
2092
2093
|
className: "cursor-pointer",
|
|
2093
2094
|
onClick: we,
|
|
2094
2095
|
type: "button",
|
|
2095
|
-
children: /* @__PURE__ */ A(Re, { placement: "top", title:
|
|
2096
|
+
children: /* @__PURE__ */ A(Re, { placement: "top", title: ne("Add to document"), children: /* @__PURE__ */ A(
|
|
2096
2097
|
Ri,
|
|
2097
2098
|
{
|
|
2098
2099
|
className: "text-primary-600",
|
|
@@ -2142,7 +2143,7 @@ const JD = (t) => Array.isArray(t) ? t.map(
|
|
|
2142
2143
|
menu: ve,
|
|
2143
2144
|
isLoading: k,
|
|
2144
2145
|
hasExistingData: Ce,
|
|
2145
|
-
t:
|
|
2146
|
+
t: ne
|
|
2146
2147
|
}
|
|
2147
2148
|
),
|
|
2148
2149
|
options: Ae.map(
|
|
@@ -2202,7 +2203,7 @@ const JD = (t) => Array.isArray(t) ? t.map(
|
|
|
2202
2203
|
}
|
|
2203
2204
|
),
|
|
2204
2205
|
n && /* @__PURE__ */ A(
|
|
2205
|
-
|
|
2206
|
+
oe,
|
|
2206
2207
|
{
|
|
2207
2208
|
className: "text-error-500",
|
|
2208
2209
|
appearance: "custom",
|
|
@@ -2323,7 +2324,7 @@ const iR = ct(
|
|
|
2323
2324
|
h === "right" ? "ml-2" : "mr-2",
|
|
2324
2325
|
d
|
|
2325
2326
|
),
|
|
2326
|
-
children: /* @__PURE__ */ T(
|
|
2327
|
+
children: /* @__PURE__ */ T(oe, { variant: "medium", size: E(), appearance: "body", children: [
|
|
2327
2328
|
e,
|
|
2328
2329
|
o && /* @__PURE__ */ A("span", { className: "text-red-500 ml-1", children: "*" })
|
|
2329
2330
|
] })
|
|
@@ -2356,7 +2357,7 @@ const iR = ct(
|
|
|
2356
2357
|
id: `${t}-message`,
|
|
2357
2358
|
role: l === "error" ? "alert" : void 0,
|
|
2358
2359
|
children: /* @__PURE__ */ A(
|
|
2359
|
-
|
|
2360
|
+
oe,
|
|
2360
2361
|
{
|
|
2361
2362
|
className: U("mt-1", x()),
|
|
2362
2363
|
appearance: "custom",
|
|
@@ -2412,7 +2413,7 @@ const aR = ({
|
|
|
2412
2413
|
inputProps: v,
|
|
2413
2414
|
helpText: g
|
|
2414
2415
|
}, _) => {
|
|
2415
|
-
const y =
|
|
2416
|
+
const y = ae(null), x = _ || y, E = ue(() => {
|
|
2416
2417
|
requestAnimationFrame(() => {
|
|
2417
2418
|
x.current?.focus();
|
|
2418
2419
|
});
|
|
@@ -2496,7 +2497,7 @@ const aR = ({
|
|
|
2496
2497
|
f
|
|
2497
2498
|
),
|
|
2498
2499
|
children: /* @__PURE__ */ A("div", { className: "flex flex-wrap items-center justify-between w-full", children: /* @__PURE__ */ A("div", { className: "inline-flex flex-wrap items-center gap-1", children: /* @__PURE__ */ T(
|
|
2499
|
-
|
|
2500
|
+
oe,
|
|
2500
2501
|
{
|
|
2501
2502
|
variant: "medium",
|
|
2502
2503
|
size: N(),
|
|
@@ -2510,7 +2511,7 @@ const aR = ({
|
|
|
2510
2511
|
}
|
|
2511
2512
|
),
|
|
2512
2513
|
g && /* @__PURE__ */ A(
|
|
2513
|
-
|
|
2514
|
+
oe,
|
|
2514
2515
|
{
|
|
2515
2516
|
className: "mb-2 text-neutral-600 dark:text-neutral-400",
|
|
2516
2517
|
appearance: "custom",
|
|
@@ -2555,7 +2556,7 @@ const aR = ({
|
|
|
2555
2556
|
}
|
|
2556
2557
|
) }),
|
|
2557
2558
|
h && /* @__PURE__ */ A("div", { className: "flex-1", children: /* @__PURE__ */ A(
|
|
2558
|
-
|
|
2559
|
+
oe,
|
|
2559
2560
|
{
|
|
2560
2561
|
variant: "medium",
|
|
2561
2562
|
size: "small",
|
|
@@ -2575,7 +2576,7 @@ const aR = ({
|
|
|
2575
2576
|
id: `${t}-description`,
|
|
2576
2577
|
role: u === "error" ? "alert" : void 0,
|
|
2577
2578
|
children: /* @__PURE__ */ A(
|
|
2578
|
-
|
|
2579
|
+
oe,
|
|
2579
2580
|
{
|
|
2580
2581
|
className: U("mt-1", O()),
|
|
2581
2582
|
appearance: "custom",
|
|
@@ -2593,7 +2594,7 @@ const aR = ({
|
|
|
2593
2594
|
oR.displayName = "ColorPicker";
|
|
2594
2595
|
const zb = () => {
|
|
2595
2596
|
const [t, e] = X(!1);
|
|
2596
|
-
return
|
|
2597
|
+
return re(() => {
|
|
2597
2598
|
const r = () => {
|
|
2598
2599
|
e(document.documentElement.classList.contains("dark"));
|
|
2599
2600
|
};
|
|
@@ -2816,7 +2817,7 @@ const zb = () => {
|
|
|
2816
2817
|
}
|
|
2817
2818
|
),
|
|
2818
2819
|
r && /* @__PURE__ */ A(
|
|
2819
|
-
|
|
2820
|
+
oe,
|
|
2820
2821
|
{
|
|
2821
2822
|
className: "text-error-500",
|
|
2822
2823
|
appearance: "custom",
|
|
@@ -2835,7 +2836,7 @@ const Bb = ({
|
|
|
2835
2836
|
handler: e,
|
|
2836
2837
|
enabled: r = !0
|
|
2837
2838
|
}) => {
|
|
2838
|
-
|
|
2839
|
+
re(() => {
|
|
2839
2840
|
if (!r) return;
|
|
2840
2841
|
const n = (i) => {
|
|
2841
2842
|
t.current && !t.current.contains(i.target) && e();
|
|
@@ -2878,7 +2879,7 @@ const Bb = ({
|
|
|
2878
2879
|
isDark: v = !1,
|
|
2879
2880
|
primaryColorShades: g = lR
|
|
2880
2881
|
}) => {
|
|
2881
|
-
const _ =
|
|
2882
|
+
const _ = ae(null), [y, x] = X(null), [E, S] = X("");
|
|
2882
2883
|
Bb({
|
|
2883
2884
|
ref: _,
|
|
2884
2885
|
handler: () => {
|
|
@@ -3110,7 +3111,7 @@ const Bb = ({
|
|
|
3110
3111
|
}
|
|
3111
3112
|
),
|
|
3112
3113
|
s && /* @__PURE__ */ A(
|
|
3113
|
-
|
|
3114
|
+
oe,
|
|
3114
3115
|
{
|
|
3115
3116
|
className: U("mt-1", v ? "text-red-400" : "text-red-500"),
|
|
3116
3117
|
appearance: "custom",
|
|
@@ -3527,7 +3528,7 @@ const MS = ({
|
|
|
3527
3528
|
hideSearchIcon: m,
|
|
3528
3529
|
allowAStarSearch: v = !1,
|
|
3529
3530
|
...g
|
|
3530
|
-
} = t, { t: _ } = Kt(), [y, x] = X(!1), [E, S] = X("search"), w =
|
|
3531
|
+
} = t, { t: _ } = Kt(), [y, x] = X(!1), [E, S] = X("search"), w = ae(null), { searchCount: k, searchPointer: O, setSearchPointer: C } = h || {}, N = () => {
|
|
3531
3532
|
const R = l && !!e, D = f && !!e;
|
|
3532
3533
|
return R && D ? "pr-28" : D ? "pr-12" : R ? "pr-8" : "pr-7";
|
|
3533
3534
|
}, P = () => {
|
|
@@ -3610,7 +3611,7 @@ const MS = ({
|
|
|
3610
3611
|
] })
|
|
3611
3612
|
] }),
|
|
3612
3613
|
v && !(l && e) && !y && !e ? /* @__PURE__ */ T("div", { className: "absolute flex ml-6 items-center justify-center focus:outline-none gap-1 flex-wrap-none", children: [
|
|
3613
|
-
/* @__PURE__ */ T(
|
|
3614
|
+
/* @__PURE__ */ T(oe, { className: "text-[#98A2B3] dark:text-black-400 font-inter text-sm font-medium leading-5", children: [
|
|
3614
3615
|
_("Search"),
|
|
3615
3616
|
" (use"
|
|
3616
3617
|
] }),
|
|
@@ -3623,56 +3624,56 @@ const MS = ({
|
|
|
3623
3624
|
root: "custom-tooltip dark:!bg-black-800"
|
|
3624
3625
|
},
|
|
3625
3626
|
title: /* @__PURE__ */ T("div", { className: "flex flex-col items-start justify-center p-2 w-full h-full gap-2 dark:bg-black-800", children: [
|
|
3626
|
-
/* @__PURE__ */ A(
|
|
3627
|
-
/* @__PURE__ */ A(
|
|
3627
|
+
/* @__PURE__ */ A(oe, { variant: "semibold", size: "extra-small", className: "text-white", children: _("Normal Search") }),
|
|
3628
|
+
/* @__PURE__ */ A(oe, { variant: "medium", size: "extra-small", className: "text-primary-400 dark:text-primary-400", appearance: "custom", children: _("Examples") }),
|
|
3628
3629
|
/* @__PURE__ */ T("div", { className: "flex flex-col items-start justify-center ", children: [
|
|
3629
3630
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
|
|
3630
|
-
/* @__PURE__ */ A(
|
|
3631
|
-
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(
|
|
3632
|
-
/* @__PURE__ */ A(
|
|
3631
|
+
/* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
|
|
3632
|
+
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "data" }) }),
|
|
3633
|
+
/* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "data", "Data".' })
|
|
3633
3634
|
] }),
|
|
3634
3635
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
|
|
3635
|
-
/* @__PURE__ */ A(
|
|
3636
|
-
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(
|
|
3637
|
-
/* @__PURE__ */ A(
|
|
3636
|
+
/* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
|
|
3637
|
+
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "text" }) }),
|
|
3638
|
+
/* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "text", "context", "plaintext".' })
|
|
3638
3639
|
] }),
|
|
3639
3640
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
|
|
3640
|
-
/* @__PURE__ */ A(
|
|
3641
|
-
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(
|
|
3642
|
-
/* @__PURE__ */ A(
|
|
3641
|
+
/* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
|
|
3642
|
+
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "base" }) }),
|
|
3643
|
+
/* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "database", "baseball", "basename".' })
|
|
3643
3644
|
] })
|
|
3644
3645
|
] }),
|
|
3645
3646
|
/* @__PURE__ */ A("div", { className: "h-[1px] w-full bg-neutral-800 dark:bg-black-200 my-2" }),
|
|
3646
|
-
/* @__PURE__ */ A(
|
|
3647
|
-
/* @__PURE__ */ A(
|
|
3648
|
-
/* @__PURE__ */ A(
|
|
3647
|
+
/* @__PURE__ */ A(oe, { variant: "semibold", size: "extra-small", className: "text-white", children: "Wildcard Search" }),
|
|
3648
|
+
/* @__PURE__ */ A(oe, { variant: "medium", size: "extra-small", className: "text-white dark:text-black-200", appearance: "custom", children: "Use * as a wildcard to refine your search." }),
|
|
3649
|
+
/* @__PURE__ */ A(oe, { variant: "medium", size: "extra-small", className: "text-primary-400 dark:text-primary-400", appearance: "custom", children: "Examples:" }),
|
|
3649
3650
|
/* @__PURE__ */ T("div", { className: "flex flex-col items-start justify-center ", children: [
|
|
3650
3651
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
|
|
3651
|
-
/* @__PURE__ */ A(
|
|
3652
|
-
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(
|
|
3653
|
-
/* @__PURE__ */ A(
|
|
3652
|
+
/* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
|
|
3653
|
+
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter ", appearance: "custom", children: "contract*" }) }),
|
|
3654
|
+
/* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ "contracts", "contractor", "CONTRACTOR".' })
|
|
3654
3655
|
] }),
|
|
3655
3656
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
|
|
3656
|
-
/* @__PURE__ */ A(
|
|
3657
|
-
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(
|
|
3658
|
-
/* @__PURE__ */ A(
|
|
3657
|
+
/* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
|
|
3658
|
+
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter ", appearance: "custom", children: "*agreement" }) }),
|
|
3659
|
+
/* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "service agreement", "legal agreement".' })
|
|
3659
3660
|
] }),
|
|
3660
3661
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
|
|
3661
|
-
/* @__PURE__ */ A(
|
|
3662
|
-
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(
|
|
3663
|
-
/* @__PURE__ */ A(
|
|
3662
|
+
/* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
|
|
3663
|
+
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "*clause*" }) }),
|
|
3664
|
+
/* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "clause", "subclause", "clauses".' })
|
|
3664
3665
|
] }),
|
|
3665
3666
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
|
|
3666
|
-
/* @__PURE__ */ A(
|
|
3667
|
-
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(
|
|
3668
|
-
/* @__PURE__ */ A(
|
|
3667
|
+
/* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
|
|
3668
|
+
/* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "*l*s*" }) }),
|
|
3669
|
+
/* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "clause", "clauses".' })
|
|
3669
3670
|
] })
|
|
3670
3671
|
] })
|
|
3671
3672
|
] }),
|
|
3672
3673
|
children: /* @__PURE__ */ A("div", { className: "text-[#475467] dark:text-black-300 dark:bg-black-600", children: "*" })
|
|
3673
3674
|
}
|
|
3674
3675
|
) }),
|
|
3675
|
-
/* @__PURE__ */ A(
|
|
3676
|
+
/* @__PURE__ */ A(oe, { className: "text-[#98A2B3] dark:text-black-400 font-inter text-sm font-medium leading-5", children: "as a wildcard)" })
|
|
3676
3677
|
] }) : l && e && /* @__PURE__ */ A("button", { id: "btn-search-bar-close", className: "absolute right-0 mr-2 focus:outline-none", onClick: () => n?.(""), children: /* @__PURE__ */ A(eu, { classValue: "text-neutral-200 dark:text-black-500", size: 16 }) })
|
|
3677
3678
|
]
|
|
3678
3679
|
}
|
|
@@ -3750,7 +3751,7 @@ const uR = (t, e, r, n = "medium") => {
|
|
|
3750
3751
|
renderGTNAddButton: I,
|
|
3751
3752
|
onAddGTNToDocument: M
|
|
3752
3753
|
}, B) => {
|
|
3753
|
-
const { t: W } = Kt(), Q = x ?? E, te = !!Q, j = typeof Q == "string" ? Q : void 0, q = l === ls.TOP, K = l === ls.LEFT, ie = l === ls.RIGHT, [Y, Z] = X(!1),
|
|
3754
|
+
const { t: W } = Kt(), Q = x ?? E, te = !!Q, j = typeof Q == "string" ? Q : void 0, q = l === ls.TOP, K = l === ls.LEFT, ie = l === ls.RIGHT, [Y, Z] = X(!1), ne = () => {
|
|
3754
3755
|
M && M({
|
|
3755
3756
|
key: k,
|
|
3756
3757
|
value: e ? "Yes" : "No"
|
|
@@ -3823,12 +3824,12 @@ const uR = (t, e, r, n = "medium") => {
|
|
|
3823
3824
|
)
|
|
3824
3825
|
}
|
|
3825
3826
|
) : null,
|
|
3826
|
-
t && Y ? I ? I(
|
|
3827
|
+
t && Y ? I ? I(ne) : /* @__PURE__ */ A(
|
|
3827
3828
|
"button",
|
|
3828
3829
|
{
|
|
3829
3830
|
id: "btn-toggle-add-to-document",
|
|
3830
3831
|
className: "cursor-pointer",
|
|
3831
|
-
onClick:
|
|
3832
|
+
onClick: ne,
|
|
3832
3833
|
type: "button",
|
|
3833
3834
|
children: /* @__PURE__ */ A(tr, { placement: "top", title: W("Add to document"), children: /* @__PURE__ */ A(Ri, { className: "text-primary-600", sx: { fontSize: 16 } }) })
|
|
3834
3835
|
}
|
|
@@ -3836,7 +3837,7 @@ const uR = (t, e, r, n = "medium") => {
|
|
|
3836
3837
|
] })
|
|
3837
3838
|
] }),
|
|
3838
3839
|
D && /* @__PURE__ */ A(
|
|
3839
|
-
|
|
3840
|
+
oe,
|
|
3840
3841
|
{
|
|
3841
3842
|
className: "mb-2 text-neutral-600 dark:text-neutral-400",
|
|
3842
3843
|
appearance: "custom",
|
|
@@ -3847,7 +3848,7 @@ const uR = (t, e, r, n = "medium") => {
|
|
|
3847
3848
|
),
|
|
3848
3849
|
/* @__PURE__ */ T("div", { className: "flex", children: [
|
|
3849
3850
|
K && /* @__PURE__ */ A(
|
|
3850
|
-
|
|
3851
|
+
oe,
|
|
3851
3852
|
{
|
|
3852
3853
|
size: "small",
|
|
3853
3854
|
variant: "medium",
|
|
@@ -3901,7 +3902,7 @@ const uR = (t, e, r, n = "medium") => {
|
|
|
3901
3902
|
F === "large" && "w-11"
|
|
3902
3903
|
) }) }),
|
|
3903
3904
|
ie && /* @__PURE__ */ A(
|
|
3904
|
-
|
|
3905
|
+
oe,
|
|
3905
3906
|
{
|
|
3906
3907
|
size: "small",
|
|
3907
3908
|
variant: "medium",
|
|
@@ -3911,7 +3912,7 @@ const uR = (t, e, r, n = "medium") => {
|
|
|
3911
3912
|
}
|
|
3912
3913
|
),
|
|
3913
3914
|
s ? null : /* @__PURE__ */ A(
|
|
3914
|
-
|
|
3915
|
+
oe,
|
|
3915
3916
|
{
|
|
3916
3917
|
size: "small",
|
|
3917
3918
|
variant: "medium",
|
|
@@ -3934,7 +3935,7 @@ const uR = (t, e, r, n = "medium") => {
|
|
|
3934
3935
|
id: `${r}-description`,
|
|
3935
3936
|
role: L === "error" ? "alert" : void 0,
|
|
3936
3937
|
children: /* @__PURE__ */ A(
|
|
3937
|
-
|
|
3938
|
+
oe,
|
|
3938
3939
|
{
|
|
3939
3940
|
className: U("mt-1", J()),
|
|
3940
3941
|
appearance: "custom",
|
|
@@ -4118,7 +4119,7 @@ const Cue = (t) => {
|
|
|
4118
4119
|
className: U("flex-1 min-w-0", m && "max-w-[150px]"),
|
|
4119
4120
|
style: { width: g },
|
|
4120
4121
|
children: /* @__PURE__ */ A(
|
|
4121
|
-
|
|
4122
|
+
oe,
|
|
4122
4123
|
{
|
|
4123
4124
|
className: U(
|
|
4124
4125
|
"font-medium text-sm truncate transition-colors duration-300 ease-in-out",
|
|
@@ -4408,7 +4409,7 @@ const Is = (t, e) => {
|
|
|
4408
4409
|
RiskDetailsCard: W,
|
|
4409
4410
|
...Q
|
|
4410
4411
|
}, te) => {
|
|
4411
|
-
const { t: j } = Kt(), [q, K] = X(!1), [ie, Y] = X([]), [Z,
|
|
4412
|
+
const { t: j } = Kt(), [q, K] = X(!1), [ie, Y] = X([]), [Z, ne] = X(""), [J, ce] = X(
|
|
4412
4413
|
O || "USD"
|
|
4413
4414
|
), [ze, Ee] = X(!1), _e = (G) => {
|
|
4414
4415
|
if (I) {
|
|
@@ -4459,9 +4460,9 @@ const Is = (t, e) => {
|
|
|
4459
4460
|
const G = "pl-11 border h-[32px] text-sm rounded-lg block w-full p-2.5 font-inter font-medium text-neutral-900 dark:text-black-200 disabled:bg-neutral-50 dark:disabled:!bg-black-800 dark:disabled:placeholder:!text-black-400 focus:outline-none focus:ring-0 focus:border-[var(--color-primary-600)] dark:focus:border-[var(--color-primary-400)] focus:shadow-[0_0_0_1.5px_var(--color-primary-100)] dark:focus:shadow-[0_0_0_1.5px_var(--color-primary-950)]", Ae = i ? "border-red-300" : B && M?.color ? `border-${M.color}-300` : "border-gray-300 dark:border-black-600", Ce = `${B && M?.color ? `bg-${M.color}-50` : "bg-white dark:bg-black-600"}`;
|
|
4460
4461
|
return `${G} ${Ae} ${Ce} ${p}`;
|
|
4461
4462
|
};
|
|
4462
|
-
return
|
|
4463
|
+
return re(() => {
|
|
4463
4464
|
O && ce(O);
|
|
4464
|
-
}, [O]),
|
|
4465
|
+
}, [O]), re(() => {
|
|
4465
4466
|
if (J) {
|
|
4466
4467
|
const G = r === "" || r === null || r === void 0 ? 0 : Number(r);
|
|
4467
4468
|
O !== J && n(G, J);
|
|
@@ -4487,7 +4488,7 @@ const Is = (t, e) => {
|
|
|
4487
4488
|
Ae.dispatchEvent(Ce);
|
|
4488
4489
|
}
|
|
4489
4490
|
}
|
|
4490
|
-
}, [J]),
|
|
4491
|
+
}, [J]), re(() => {
|
|
4491
4492
|
const G = eg.filter(
|
|
4492
4493
|
(Ae) => (Ae.value + " - " + Ae.label).toLowerCase().includes(Z.toLowerCase())
|
|
4493
4494
|
).map((Ae) => ({
|
|
@@ -4504,8 +4505,8 @@ const Is = (t, e) => {
|
|
|
4504
4505
|
key: Ae.value
|
|
4505
4506
|
}));
|
|
4506
4507
|
Y(G);
|
|
4507
|
-
}, [Z, J]),
|
|
4508
|
-
|
|
4508
|
+
}, [Z, J]), re(() => {
|
|
4509
|
+
ne("");
|
|
4509
4510
|
}, [J]), f ? /* @__PURE__ */ T(
|
|
4510
4511
|
"label",
|
|
4511
4512
|
{
|
|
@@ -4684,7 +4685,7 @@ const Is = (t, e) => {
|
|
|
4684
4685
|
{
|
|
4685
4686
|
id: "search-bar-currency-input",
|
|
4686
4687
|
value: Z,
|
|
4687
|
-
onChange: (Ae) =>
|
|
4688
|
+
onChange: (Ae) => ne(Ae),
|
|
4688
4689
|
className: "mb-2"
|
|
4689
4690
|
}
|
|
4690
4691
|
),
|
|
@@ -4703,7 +4704,7 @@ const Is = (t, e) => {
|
|
|
4703
4704
|
)
|
|
4704
4705
|
] }),
|
|
4705
4706
|
i && /* @__PURE__ */ A(
|
|
4706
|
-
|
|
4707
|
+
oe,
|
|
4707
4708
|
{
|
|
4708
4709
|
className: "text-error-500 mt-1",
|
|
4709
4710
|
appearance: "custom",
|
|
@@ -4819,7 +4820,7 @@ const SR = ct(
|
|
|
4819
4820
|
d
|
|
4820
4821
|
),
|
|
4821
4822
|
children: /* @__PURE__ */ A("div", { className: "flex flex-wrap items-center justify-between w-full", children: /* @__PURE__ */ A("div", { className: "inline-flex flex-wrap items-center gap-1", children: /* @__PURE__ */ T(
|
|
4822
|
-
|
|
4823
|
+
oe,
|
|
4823
4824
|
{
|
|
4824
4825
|
variant: "medium",
|
|
4825
4826
|
size: O(),
|
|
@@ -4833,7 +4834,7 @@ const SR = ct(
|
|
|
4833
4834
|
}
|
|
4834
4835
|
),
|
|
4835
4836
|
f && /* @__PURE__ */ A(
|
|
4836
|
-
|
|
4837
|
+
oe,
|
|
4837
4838
|
{
|
|
4838
4839
|
className: "mb-2 text-neutral-600 dark:text-neutral-400",
|
|
4839
4840
|
appearance: "custom",
|
|
@@ -4983,7 +4984,7 @@ const SR = ct(
|
|
|
4983
4984
|
id: `${t}-description`,
|
|
4984
4985
|
role: l === "error" ? "alert" : void 0,
|
|
4985
4986
|
children: /* @__PURE__ */ A(
|
|
4986
|
-
|
|
4987
|
+
oe,
|
|
4987
4988
|
{
|
|
4988
4989
|
className: U("mt-1", k()),
|
|
4989
4990
|
appearance: "custom",
|
|
@@ -5002,10 +5003,10 @@ SR.displayName = "DateRange2";
|
|
|
5002
5003
|
const { RangePicker: X3 } = Y1, j3 = {
|
|
5003
5004
|
ENTER: "Enter"
|
|
5004
5005
|
}, Q3 = () => Math.random().toString(36).substring(2, 9), ER = (t, e) => {
|
|
5005
|
-
const r =
|
|
5006
|
-
|
|
5006
|
+
const r = ae(e);
|
|
5007
|
+
re(() => {
|
|
5007
5008
|
r.current = e;
|
|
5008
|
-
}, [e]),
|
|
5009
|
+
}, [e]), re(() => {
|
|
5009
5010
|
const n = (i) => r.current(i);
|
|
5010
5011
|
return document.addEventListener(t, n), () => {
|
|
5011
5012
|
document.removeEventListener(t, n);
|
|
@@ -5033,7 +5034,7 @@ const { RangePicker: X3 } = Y1, j3 = {
|
|
|
5033
5034
|
iconButtonClassName: _,
|
|
5034
5035
|
iconClassName: y
|
|
5035
5036
|
}) => {
|
|
5036
|
-
const [x, E] = X(!1), [S, w] = X(!1), k =
|
|
5037
|
+
const [x, E] = X(!1), [S, w] = X(!1), k = ae(null), O = ae(null), C = ae(!1), N = ae(!1), P = (W) => W ? Ht(W) : null, L = `date-range-start-${Q3()}`, R = `date-range-end-${Q3()}`, D = () => {
|
|
5037
5038
|
E(!0), setTimeout(() => {
|
|
5038
5039
|
k.current && k.current.focus();
|
|
5039
5040
|
}, 0);
|
|
@@ -5214,10 +5215,10 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
|
|
|
5214
5215
|
const n = Ht(t);
|
|
5215
5216
|
return n.isValid() ? n : null;
|
|
5216
5217
|
}, Z3 = (t, e) => {
|
|
5217
|
-
const r =
|
|
5218
|
-
|
|
5218
|
+
const r = ae(e);
|
|
5219
|
+
re(() => {
|
|
5219
5220
|
r.current = e;
|
|
5220
|
-
}, [e]),
|
|
5221
|
+
}, [e]), re(() => {
|
|
5221
5222
|
const n = (i) => r.current(i);
|
|
5222
5223
|
return document.addEventListener(t, n), () => {
|
|
5223
5224
|
document.removeEventListener(t, n);
|
|
@@ -5262,14 +5263,14 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
|
|
|
5262
5263
|
}, M) => {
|
|
5263
5264
|
const { t: B } = Kt(), [W, Q] = X(!1), [te, j] = X(null), [q, K] = X(
|
|
5264
5265
|
null
|
|
5265
|
-
), [ie, Y] = X(!1), Z = p || (l ? ed : kR),
|
|
5266
|
+
), [ie, Y] = X(!1), Z = p || (l ? ed : kR), ne = I?.id || `date-picker-${OR()}`, J = ae(null), ce = ae(!1);
|
|
5266
5267
|
Z3("paste", (pe) => {
|
|
5267
|
-
document.activeElement?.id ===
|
|
5268
|
+
document.activeElement?.id === ne && (pe.preventDefault(), navigator.clipboard.readText().then((G) => {
|
|
5268
5269
|
const Ae = Go(G, l);
|
|
5269
5270
|
Ae && ge(Ae);
|
|
5270
5271
|
}));
|
|
5271
5272
|
}), Z3("keydown", (pe) => {
|
|
5272
|
-
if (pe.key === K3.ENTER && document.activeElement instanceof HTMLInputElement && document.activeElement.id ===
|
|
5273
|
+
if (pe.key === K3.ENTER && document.activeElement instanceof HTMLInputElement && document.activeElement.id === ne) {
|
|
5273
5274
|
const G = Go(document?.activeElement?.value, l);
|
|
5274
5275
|
G && ge(G);
|
|
5275
5276
|
}
|
|
@@ -5303,15 +5304,15 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
|
|
|
5303
5304
|
if (!k) {
|
|
5304
5305
|
const G = l ? Y3 : G3;
|
|
5305
5306
|
if (s(pe ? pe.format(G) : null), pe) {
|
|
5306
|
-
const Ae = document.getElementById(
|
|
5307
|
+
const Ae = document.getElementById(ne);
|
|
5307
5308
|
if (Ae) {
|
|
5308
5309
|
const Ce = new CustomEvent("pilot-date-change", {
|
|
5309
5310
|
bubbles: !0,
|
|
5310
5311
|
detail: {
|
|
5311
|
-
selector: `#${
|
|
5312
|
+
selector: `#${ne}`,
|
|
5312
5313
|
value: pe.format ? pe.format(Z) : pe,
|
|
5313
5314
|
type: "date-change",
|
|
5314
|
-
elementId:
|
|
5315
|
+
elementId: ne
|
|
5315
5316
|
}
|
|
5316
5317
|
});
|
|
5317
5318
|
Ae.dispatchEvent(Ce);
|
|
@@ -5323,15 +5324,15 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
|
|
|
5323
5324
|
let G;
|
|
5324
5325
|
if (l ? G = Ht(pe).utc().toISOString() : G = Ht(pe).utc().add(Ht(pe).utcOffset(), "minute").startOf("day").toISOString(), G) {
|
|
5325
5326
|
s(G);
|
|
5326
|
-
const Ae = document.getElementById(
|
|
5327
|
+
const Ae = document.getElementById(ne);
|
|
5327
5328
|
if (Ae) {
|
|
5328
5329
|
const Ce = new CustomEvent("pilot-date-change", {
|
|
5329
5330
|
bubbles: !0,
|
|
5330
5331
|
detail: {
|
|
5331
|
-
selector: `#${
|
|
5332
|
+
selector: `#${ne}`,
|
|
5332
5333
|
value: pe.format(Z),
|
|
5333
5334
|
type: "date-change",
|
|
5334
|
-
elementId:
|
|
5335
|
+
elementId: ne
|
|
5335
5336
|
}
|
|
5336
5337
|
});
|
|
5337
5338
|
Ae.dispatchEvent(Ce);
|
|
@@ -5340,7 +5341,7 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
|
|
|
5340
5341
|
} else
|
|
5341
5342
|
s(null);
|
|
5342
5343
|
},
|
|
5343
|
-
[k, s, l,
|
|
5344
|
+
[k, s, l, ne, Z]
|
|
5344
5345
|
), me = ue(
|
|
5345
5346
|
(pe) => {
|
|
5346
5347
|
if (!pe) return null;
|
|
@@ -5372,15 +5373,15 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
|
|
|
5372
5373
|
j(pe);
|
|
5373
5374
|
const G = l ? Y3 : G3, Ae = k ? pe?.toISOString() : pe ? pe.format(G) : "";
|
|
5374
5375
|
if (s(Ae || null), pe?.isValid()) {
|
|
5375
|
-
const Ce = document.getElementById(
|
|
5376
|
+
const Ce = document.getElementById(ne);
|
|
5376
5377
|
if (Ce) {
|
|
5377
5378
|
const Xe = new CustomEvent("pilot-date-change", {
|
|
5378
5379
|
bubbles: !0,
|
|
5379
5380
|
detail: {
|
|
5380
|
-
selector: `#${
|
|
5381
|
+
selector: `#${ne}`,
|
|
5381
5382
|
value: pe.format(Z),
|
|
5382
5383
|
type: "date-change",
|
|
5383
|
-
elementId:
|
|
5384
|
+
elementId: ne
|
|
5384
5385
|
}
|
|
5385
5386
|
});
|
|
5386
5387
|
Ce.dispatchEvent(Xe);
|
|
@@ -5388,14 +5389,14 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
|
|
|
5388
5389
|
}
|
|
5389
5390
|
}
|
|
5390
5391
|
},
|
|
5391
|
-
[k, Z, s,
|
|
5392
|
+
[k, Z, s, ne, l]
|
|
5392
5393
|
);
|
|
5393
|
-
|
|
5394
|
+
re(() => {
|
|
5394
5395
|
j(me(e));
|
|
5395
|
-
}, [e, me]),
|
|
5396
|
+
}, [e, me]), re(() => {
|
|
5396
5397
|
q && K(null);
|
|
5397
|
-
}, [q]),
|
|
5398
|
-
const pe = document.getElementById(
|
|
5398
|
+
}, [q]), re(() => {
|
|
5399
|
+
const pe = document.getElementById(ne);
|
|
5399
5400
|
if (!pe) return;
|
|
5400
5401
|
const G = (Ae) => {
|
|
5401
5402
|
const { value: Ce, type: Xe } = Ae.detail;
|
|
@@ -5430,7 +5431,7 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
|
|
|
5430
5431
|
G
|
|
5431
5432
|
);
|
|
5432
5433
|
};
|
|
5433
|
-
}, [
|
|
5434
|
+
}, [ne, Z, _e, l]);
|
|
5434
5435
|
const we = ue((pe) => {
|
|
5435
5436
|
if (pe.key === K3.ENTER && !ie) {
|
|
5436
5437
|
pe.preventDefault(), pe.stopPropagation();
|
|
@@ -5477,7 +5478,7 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
|
|
|
5477
5478
|
},
|
|
5478
5479
|
ref: J,
|
|
5479
5480
|
disabled: i,
|
|
5480
|
-
id:
|
|
5481
|
+
id: ne
|
|
5481
5482
|
}
|
|
5482
5483
|
) }) : /* @__PURE__ */ T(
|
|
5483
5484
|
"div",
|
|
@@ -5602,12 +5603,12 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
|
|
|
5602
5603
|
inputReadOnly: !1,
|
|
5603
5604
|
onOpenChange: Se,
|
|
5604
5605
|
getPopupContainer: w ? (pe) => pe.parentElement : () => document.body,
|
|
5605
|
-
id:
|
|
5606
|
+
id: ne,
|
|
5606
5607
|
autoComplete: "off"
|
|
5607
5608
|
}
|
|
5608
5609
|
),
|
|
5609
5610
|
o && /* @__PURE__ */ A(
|
|
5610
|
-
|
|
5611
|
+
oe,
|
|
5611
5612
|
{
|
|
5612
5613
|
className: "text-error-500 mt-1",
|
|
5613
5614
|
appearance: "custom",
|
|
@@ -5698,7 +5699,7 @@ const CR = ({
|
|
|
5698
5699
|
exit: { opacity: 0, y: -5 },
|
|
5699
5700
|
transition: { duration: 0.15 },
|
|
5700
5701
|
children: /* @__PURE__ */ A(
|
|
5701
|
-
|
|
5702
|
+
oe,
|
|
5702
5703
|
{
|
|
5703
5704
|
className: "pt-1 text-error-500",
|
|
5704
5705
|
appearance: "custom",
|
|
@@ -5751,11 +5752,11 @@ const NR = ct(
|
|
|
5751
5752
|
showDeprecatedFieldWarning: M,
|
|
5752
5753
|
DynamicDataModal: B
|
|
5753
5754
|
}, W) => {
|
|
5754
|
-
const { t: Q } = Kt(), [te, j] = X(!1), [q, K] = X(n), [ie, Y] = X(!1), Z =
|
|
5755
|
+
const { t: Q } = Kt(), [te, j] = X(!1), [q, K] = X(n), [ie, Y] = X(!1), Z = ae(null), ne = W || Z, J = () => {
|
|
5755
5756
|
I?.(!ie), Y(!ie);
|
|
5756
5757
|
}, ce = (me) => {
|
|
5757
5758
|
if (me.keyCode === 9 || me.key === "Enter") {
|
|
5758
|
-
const ge =
|
|
5759
|
+
const ge = ne.current || Z.current;
|
|
5759
5760
|
ge && (q !== null && i(q), K(q), ge.blur());
|
|
5760
5761
|
}
|
|
5761
5762
|
}, ze = () => {
|
|
@@ -5769,9 +5770,9 @@ const NR = ct(
|
|
|
5769
5770
|
const me = "border h-[32px] text-sm rounded-lg block w-full p-2.5 font-inter font-medium", ge = a ? "border-red-300" : P && N?.color ? `border-${N?.color}-300` : "border-gray-300 dark:border-black-600", we = "placeholder:text-neutral-900 dark:placeholder:text-black-400", Se = `${P && N?.color ? `bg-${N?.color}-50` : "bg-gray-200 dark:bg-black-600 "} ${h || "text-neutral-900 dark:text-black-200"}`;
|
|
5770
5771
|
return `${me} ${ge} ${Se} ${we}`;
|
|
5771
5772
|
};
|
|
5772
|
-
return
|
|
5773
|
+
return re(() => {
|
|
5773
5774
|
ie && !u && (M?.(), Y(!1));
|
|
5774
|
-
}, [ie, u, M]),
|
|
5775
|
+
}, [ie, u, M]), re(() => {
|
|
5775
5776
|
K(n);
|
|
5776
5777
|
}, [n]), /* @__PURE__ */ T(
|
|
5777
5778
|
"div",
|
|
@@ -5869,7 +5870,7 @@ const NR = ct(
|
|
|
5869
5870
|
"input",
|
|
5870
5871
|
{
|
|
5871
5872
|
id: t,
|
|
5872
|
-
ref:
|
|
5873
|
+
ref: ne,
|
|
5873
5874
|
required: s,
|
|
5874
5875
|
placeholder: r,
|
|
5875
5876
|
className: _e(),
|
|
@@ -5918,7 +5919,7 @@ const NR = ct(
|
|
|
5918
5919
|
)
|
|
5919
5920
|
] }),
|
|
5920
5921
|
a && /* @__PURE__ */ A(
|
|
5921
|
-
|
|
5922
|
+
oe,
|
|
5922
5923
|
{
|
|
5923
5924
|
className: "text-error-500 mt-1",
|
|
5924
5925
|
appearance: "custom",
|
|
@@ -6162,7 +6163,7 @@ const DR = (t = {}) => {
|
|
|
6162
6163
|
maxRetries: n = 10,
|
|
6163
6164
|
retryDelay: i = 100
|
|
6164
6165
|
} = t, [a, o] = X(null);
|
|
6165
|
-
return
|
|
6166
|
+
return re(() => {
|
|
6166
6167
|
let s = 0, l;
|
|
6167
6168
|
const u = (d) => {
|
|
6168
6169
|
if (typeof document < "u") {
|
|
@@ -6209,7 +6210,7 @@ const DR = (t = {}) => {
|
|
|
6209
6210
|
fallbackContainerId: "full-screen-container"
|
|
6210
6211
|
}), v = /* @__PURE__ */ T(ot, { children: [
|
|
6211
6212
|
/* @__PURE__ */ T("div", { className: "flex justify-between items-center", children: [
|
|
6212
|
-
f ? /* @__PURE__ */ A(
|
|
6213
|
+
f ? /* @__PURE__ */ A(oe, { size: "large", variant: "semibold", className: "tour__title", children: n }) : /* @__PURE__ */ A("div", { className: "flex flex-col w-full", children: n }),
|
|
6213
6214
|
s || f && /* @__PURE__ */ A("button", { id: "btn-modal-close", onClick: h.onCancel, className: "", type: "button", children: /* @__PURE__ */ A(Co, { sx: { fontSize: "20px" }, className: "cursor-pointer text-neutral-400 hover:text-neutral-600" }) })
|
|
6214
6215
|
] }),
|
|
6215
6216
|
h.addLineAfterHeader && /* @__PURE__ */ A("hr", { className: "mt-2" })
|
|
@@ -6676,12 +6677,12 @@ function EP({ width: t, height: e, isEditorReady: r, loading: n, _ref: i, classN
|
|
|
6676
6677
|
}
|
|
6677
6678
|
var wP = EP, VS = Al(wP);
|
|
6678
6679
|
function kP(t) {
|
|
6679
|
-
|
|
6680
|
+
re(t, []);
|
|
6680
6681
|
}
|
|
6681
6682
|
var WS = kP;
|
|
6682
6683
|
function TP(t, e, r = !0) {
|
|
6683
|
-
let n =
|
|
6684
|
-
|
|
6684
|
+
let n = ae(!0);
|
|
6685
|
+
re(n.current || !r ? () => {
|
|
6685
6686
|
n.current = !1;
|
|
6686
6687
|
} : t, e);
|
|
6687
6688
|
}
|
|
@@ -6701,7 +6702,7 @@ function XS(t, e) {
|
|
|
6701
6702
|
return t.Uri.parse(e);
|
|
6702
6703
|
}
|
|
6703
6704
|
function NP({ original: t, modified: e, language: r, originalLanguage: n, modifiedLanguage: i, originalModelPath: a, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: u = "light", loading: c = "Loading...", options: d = {}, height: f = "100%", width: p = "100%", className: h, wrapperProps: m = {}, beforeMount: v = hs, onMount: g = hs }) {
|
|
6704
|
-
let [_, y] = X(!1), [x, E] = X(!0), S =
|
|
6705
|
+
let [_, y] = X(!1), [x, E] = X(!0), S = ae(null), w = ae(null), k = ae(null), O = ae(g), C = ae(v), N = ae(!1);
|
|
6705
6706
|
WS(() => {
|
|
6706
6707
|
let D = ru.init();
|
|
6707
6708
|
return D.then((F) => (w.current = F) && E(!1)).catch((F) => F?.type !== "cancelation" && console.error("Monaco initialization: error:", F)), () => S.current ? R() : D.cancel();
|
|
@@ -6736,9 +6737,9 @@ function NP({ original: t, modified: e, language: r, originalLanguage: n, modifi
|
|
|
6736
6737
|
}, [r, e, i, t, n, a, o]), L = ue(() => {
|
|
6737
6738
|
!N.current && k.current && (S.current = w.current.editor.createDiffEditor(k.current, { automaticLayout: !0, ...d }), P(), w.current?.editor.setTheme(u), y(!0), N.current = !0);
|
|
6738
6739
|
}, [d, u, P]);
|
|
6739
|
-
|
|
6740
|
+
re(() => {
|
|
6740
6741
|
_ && O.current(S.current, w.current);
|
|
6741
|
-
}, [_]),
|
|
6742
|
+
}, [_]), re(() => {
|
|
6742
6743
|
!x && !_ && L();
|
|
6743
6744
|
}, [x, _, L]);
|
|
6744
6745
|
function R() {
|
|
@@ -6750,14 +6751,14 @@ function NP({ original: t, modified: e, language: r, originalLanguage: n, modifi
|
|
|
6750
6751
|
var DP = NP;
|
|
6751
6752
|
Al(DP);
|
|
6752
6753
|
function RP(t) {
|
|
6753
|
-
let e =
|
|
6754
|
-
return
|
|
6754
|
+
let e = ae();
|
|
6755
|
+
return re(() => {
|
|
6755
6756
|
e.current = t;
|
|
6756
6757
|
}, [t]), e.current;
|
|
6757
6758
|
}
|
|
6758
6759
|
var PP = RP, Zl = /* @__PURE__ */ new Map();
|
|
6759
6760
|
function LP({ defaultValue: t, defaultLanguage: e, defaultPath: r, value: n, language: i, path: a, theme: o = "light", line: s, loading: l = "Loading...", options: u = {}, overrideServices: c = {}, saveViewState: d = !0, keepCurrentModel: f = !1, width: p = "100%", height: h = "100%", className: m, wrapperProps: v = {}, beforeMount: g = hs, onMount: _ = hs, onChange: y, onValidate: x = hs }) {
|
|
6760
|
-
let [E, S] = X(!1), [w, k] = X(!0), O =
|
|
6761
|
+
let [E, S] = X(!1), [w, k] = X(!0), O = ae(null), C = ae(null), N = ae(null), P = ae(_), L = ae(g), R = ae(), D = ae(n), F = PP(a), I = ae(!1), M = ae(!1);
|
|
6761
6762
|
WS(() => {
|
|
6762
6763
|
let Q = ru.init();
|
|
6763
6764
|
return Q.then((te) => (O.current = te) && k(!1)).catch((te) => te?.type !== "cancelation" && console.error("Monaco initialization: error:", te)), () => C.current ? W() : Q.cancel();
|
|
@@ -6783,15 +6784,15 @@ function LP({ defaultValue: t, defaultLanguage: e, defaultPath: r, value: n, lan
|
|
|
6783
6784
|
C.current = O.current?.editor.create(N.current, { model: te, automaticLayout: !0, ...u }, c), d && C.current.restoreViewState(Zl.get(Q)), O.current.editor.setTheme(o), s !== void 0 && C.current.revealLine(s), S(!0), I.current = !0;
|
|
6784
6785
|
}
|
|
6785
6786
|
}, [t, e, r, n, i, a, u, c, d, o, s]);
|
|
6786
|
-
|
|
6787
|
+
re(() => {
|
|
6787
6788
|
E && P.current(C.current, O.current);
|
|
6788
|
-
}, [E]),
|
|
6789
|
+
}, [E]), re(() => {
|
|
6789
6790
|
!w && !E && B();
|
|
6790
|
-
}, [w, E, B]), D.current = n,
|
|
6791
|
+
}, [w, E, B]), D.current = n, re(() => {
|
|
6791
6792
|
E && y && (R.current?.dispose(), R.current = C.current?.onDidChangeModelContent((Q) => {
|
|
6792
6793
|
M.current || y(C.current.getValue(), Q);
|
|
6793
6794
|
}));
|
|
6794
|
-
}, [E, y]),
|
|
6795
|
+
}, [E, y]), re(() => {
|
|
6795
6796
|
if (E) {
|
|
6796
6797
|
let Q = O.current.editor.onDidChangeMarkers((te) => {
|
|
6797
6798
|
let j = C.current.getModel()?.uri;
|
|
@@ -6876,7 +6877,7 @@ class Ka {
|
|
|
6876
6877
|
}
|
|
6877
6878
|
const i_ = Ka.getInstance(), FP = () => {
|
|
6878
6879
|
const [t, e] = X(i_.getMonaco());
|
|
6879
|
-
return
|
|
6880
|
+
return re(() => {
|
|
6880
6881
|
if (t) return;
|
|
6881
6882
|
let r = !1;
|
|
6882
6883
|
return i_.initialize().then((n) => {
|
|
@@ -7189,7 +7190,7 @@ const i_ = Ka.getInstance(), FP = () => {
|
|
|
7189
7190
|
c(!1);
|
|
7190
7191
|
}
|
|
7191
7192
|
};
|
|
7192
|
-
return
|
|
7193
|
+
return re(() => {
|
|
7193
7194
|
if (t && i && a) {
|
|
7194
7195
|
const m = CS(p, 500);
|
|
7195
7196
|
return m(), () => {
|
|
@@ -7467,7 +7468,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
|
|
|
7467
7468
|
};
|
|
7468
7469
|
}, jP = ({ value: t, path: e, onChange: r, isDarkMode: n = !1 }) => {
|
|
7469
7470
|
const [i, a] = X(""), o = GS(t), { selectedPathForEdit: s, setSelectedPathForEdit: l } = pl();
|
|
7470
|
-
|
|
7471
|
+
re(() => {
|
|
7471
7472
|
o === Be.STRING ? a(t) : o === Be.NUMBER || o === Be.BOOLEAN ? a(String(t)) : o === Be.NULL && a("null");
|
|
7472
7473
|
}, [t, o]);
|
|
7473
7474
|
const u = (d) => {
|
|
@@ -7542,7 +7543,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
|
|
|
7542
7543
|
};
|
|
7543
7544
|
return E(t, e), x;
|
|
7544
7545
|
};
|
|
7545
|
-
|
|
7546
|
+
re(() => {
|
|
7546
7547
|
t && a(o ? m() : []);
|
|
7547
7548
|
}, [o, t, e]);
|
|
7548
7549
|
const v = (x) => {
|
|
@@ -7763,8 +7764,8 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
|
|
|
7763
7764
|
selectedItemsCount: a,
|
|
7764
7765
|
deleteConfig: o,
|
|
7765
7766
|
showActionBg: s
|
|
7766
|
-
} = t, { t: l } = Kt(), [u, c] = X(!1), [d, f] = X(!0), p =
|
|
7767
|
-
|
|
7767
|
+
} = t, { t: l } = Kt(), [u, c] = X(!1), [d, f] = X(!0), p = ae(null), h = ae(null);
|
|
7768
|
+
re(() => {
|
|
7768
7769
|
const g = new ResizeObserver(() => {
|
|
7769
7770
|
if (p.current && h.current) {
|
|
7770
7771
|
const _ = p.current.scrollWidth - 100;
|
|
@@ -7831,7 +7832,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
|
|
|
7831
7832
|
/* @__PURE__ */ T("div", { className: "flex items-center gap-1.5 ml-2", children: [
|
|
7832
7833
|
/* @__PURE__ */ A("span", { className: "text-primary-600 dark:text-black-100 bg-primary-50 dark:bg-black-800 border-primary-200 dark:border-black-800 text-xs leading-4 font-normal border rounded-full pr-2 pl-2", children: a || 0 }),
|
|
7833
7834
|
/* @__PURE__ */ A(
|
|
7834
|
-
|
|
7835
|
+
oe,
|
|
7835
7836
|
{
|
|
7836
7837
|
size: "extra-small",
|
|
7837
7838
|
appearance: "custom",
|
|
@@ -7892,7 +7893,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
|
|
|
7892
7893
|
}
|
|
7893
7894
|
),
|
|
7894
7895
|
!g?.hideLabel && g.label && /* @__PURE__ */ A(
|
|
7895
|
-
|
|
7896
|
+
oe,
|
|
7896
7897
|
{
|
|
7897
7898
|
size: "small",
|
|
7898
7899
|
variant: "medium",
|
|
@@ -7928,7 +7929,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
|
|
|
7928
7929
|
}
|
|
7929
7930
|
),
|
|
7930
7931
|
!g?.hideLabel && g.label && /* @__PURE__ */ A(
|
|
7931
|
-
|
|
7932
|
+
oe,
|
|
7932
7933
|
{
|
|
7933
7934
|
size: "small",
|
|
7934
7935
|
variant: "medium",
|
|
@@ -7951,7 +7952,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
|
|
|
7951
7952
|
children: [
|
|
7952
7953
|
m.icon,
|
|
7953
7954
|
/* @__PURE__ */ A(
|
|
7954
|
-
|
|
7955
|
+
oe,
|
|
7955
7956
|
{
|
|
7956
7957
|
size: "small",
|
|
7957
7958
|
variant: "medium",
|
|
@@ -7993,7 +7994,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
|
|
|
7993
7994
|
className: "flex items-center gap-1.5 px-2 py-1 w-22 h-7 rounded-full bg-primary-700",
|
|
7994
7995
|
type: "button",
|
|
7995
7996
|
children: [
|
|
7996
|
-
/* @__PURE__ */ A(
|
|
7997
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-white", children: l("Actions") }),
|
|
7997
7998
|
/* @__PURE__ */ A(JP, { fill: "#FFFFFF", className: "w-[16px] h-[16px]" })
|
|
7998
7999
|
]
|
|
7999
8000
|
}
|
|
@@ -8011,7 +8012,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
|
|
|
8011
8012
|
children: [
|
|
8012
8013
|
m.icon,
|
|
8013
8014
|
/* @__PURE__ */ A(
|
|
8014
|
-
|
|
8015
|
+
oe,
|
|
8015
8016
|
{
|
|
8016
8017
|
size: "small",
|
|
8017
8018
|
variant: "medium",
|
|
@@ -8102,13 +8103,13 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8102
8103
|
return {};
|
|
8103
8104
|
}, oL = ({ isVisible: t, onClose: e, parentContainer: r }) => {
|
|
8104
8105
|
const [n, i] = X(""), [a, o] = X(id[0]), [s, l] = X(null), [u, c] = X(""), [d, f] = X(null), { handleAddKey: p, selectedPathModification: h } = pl();
|
|
8105
|
-
|
|
8106
|
+
re(() => {
|
|
8106
8107
|
a.value === Be.BOOLEAN ? l(!1) : a.value === Be.STRING ? l("") : a.value === Be.NUMBER ? l(0) : a.value === Be.NULL ? l(null) : a.value === Be.ARRAY ? (l([]), c("")) : a.value === Be.OBJECT && (l({}), c(""));
|
|
8107
8108
|
}, [a]);
|
|
8108
8109
|
const m = () => {
|
|
8109
8110
|
i(""), o(id[0]), l(null), c(""), e(), f(null);
|
|
8110
8111
|
};
|
|
8111
|
-
|
|
8112
|
+
re(() => {
|
|
8112
8113
|
if (a.value === Be.ARRAY || a.value === Be.OBJECT) {
|
|
8113
8114
|
if (u.trim() === "") {
|
|
8114
8115
|
f(null);
|
|
@@ -8232,9 +8233,9 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8232
8233
|
isAddKeyModalOpen: u
|
|
8233
8234
|
}) => {
|
|
8234
8235
|
const [c, d] = X({}), [f, p] = X(null), [h, m] = X([]), [v, g] = X([]), [_, y] = X(null), [x, E] = X(null);
|
|
8235
|
-
return
|
|
8236
|
+
return re(() => {
|
|
8236
8237
|
g(VP(h));
|
|
8237
|
-
}, [h]),
|
|
8238
|
+
}, [h]), re(() => {
|
|
8238
8239
|
try {
|
|
8239
8240
|
const C = WP(o);
|
|
8240
8241
|
d(C), p(null);
|
|
@@ -8423,7 +8424,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8423
8424
|
focusBlock: y,
|
|
8424
8425
|
focusBlockTopLevelOnly: x = !1
|
|
8425
8426
|
}) => {
|
|
8426
|
-
const E =
|
|
8427
|
+
const E = ae(null), [S, w] = X("vs"), [k, O] = X("light"), C = f ?? S, N = h ?? k, P = p ?? ((G) => {
|
|
8427
8428
|
w(G), O(G === "vs-dark" ? "dark" : "light");
|
|
8428
8429
|
}), [L, R] = X(!1), [D, F] = X(null), I = FP(), M = s || I, {
|
|
8429
8430
|
handleFormatCode: B,
|
|
@@ -8437,11 +8438,11 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8437
8438
|
enable: i === !0 && o === "python"
|
|
8438
8439
|
}), te = TS(), [j, q] = X("JSON"), [K, ie] = X(!1), Y = o === "json", Z = () => {
|
|
8439
8440
|
te?.active ? te.exit() : te.enter();
|
|
8440
|
-
},
|
|
8441
|
-
|
|
8441
|
+
}, ne = ae(_);
|
|
8442
|
+
ne.current = _;
|
|
8442
8443
|
const J = ue(
|
|
8443
8444
|
async (G, Ae, Ce) => {
|
|
8444
|
-
if (!
|
|
8445
|
+
if (!ne.current) return;
|
|
8445
8446
|
const Xe = G.getModel();
|
|
8446
8447
|
if (!Xe) return;
|
|
8447
8448
|
const Ze = (We, Ne) => Xe.getValueInRange({
|
|
@@ -8450,7 +8451,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8450
8451
|
endLineNumber: Ne,
|
|
8451
8452
|
endColumn: Xe.getLineMaxColumn(Ne)
|
|
8452
8453
|
}), tt = (We, Ne, Fe, ve, Me) => {
|
|
8453
|
-
|
|
8454
|
+
ne.current({
|
|
8454
8455
|
startLine: We,
|
|
8455
8456
|
endLine: Ne,
|
|
8456
8457
|
text: Fe,
|
|
@@ -8510,7 +8511,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8510
8511
|
},
|
|
8511
8512
|
[]
|
|
8512
8513
|
);
|
|
8513
|
-
|
|
8514
|
+
re(() => {
|
|
8514
8515
|
if (!y || !E.current) return;
|
|
8515
8516
|
const G = E.current, Ae = G.getModel();
|
|
8516
8517
|
if (!Ae) return;
|
|
@@ -8610,7 +8611,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8610
8611
|
Ae(), Ce.dispose();
|
|
8611
8612
|
});
|
|
8612
8613
|
}
|
|
8613
|
-
|
|
8614
|
+
ne.current && G.onMouseDown(() => {
|
|
8614
8615
|
requestAnimationFrame(() => {
|
|
8615
8616
|
const Ce = G.getPosition();
|
|
8616
8617
|
Ce && J(G, Ce.lineNumber, Ce.column);
|
|
@@ -8668,7 +8669,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8668
8669
|
}, _e = (G) => {
|
|
8669
8670
|
typeof G == "string" && e(G);
|
|
8670
8671
|
};
|
|
8671
|
-
if (
|
|
8672
|
+
if (re(() => {
|
|
8672
8673
|
c && c(W || Q);
|
|
8673
8674
|
}, [W, Q, c]), !s && !I)
|
|
8674
8675
|
return /* @__PURE__ */ A("div", { className: "flex items-center justify-center p-8 border border-neutral-200 dark:border-neutral-700 rounded-lg", children: /* @__PURE__ */ A("div", { className: "text-neutral-600 dark:text-neutral-400", children: "Loading editor..." }) });
|
|
@@ -8929,7 +8930,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8929
8930
|
width: o = 1040
|
|
8930
8931
|
}) => {
|
|
8931
8932
|
const [s, l] = X(n);
|
|
8932
|
-
|
|
8933
|
+
re(() => {
|
|
8933
8934
|
l(n);
|
|
8934
8935
|
}, [t, n]);
|
|
8935
8936
|
const u = () => {
|
|
@@ -8996,10 +8997,10 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8996
8997
|
onConfidenceScoreClick: S,
|
|
8997
8998
|
disabled: w = !1,
|
|
8998
8999
|
...k
|
|
8999
|
-
} = t, [O, C] = X(null), [N, P] = X(!1), L =
|
|
9000
|
-
|
|
9000
|
+
} = t, [O, C] = X(null), [N, P] = X(!1), L = ae(null);
|
|
9001
|
+
re(() => {
|
|
9001
9002
|
C(null);
|
|
9002
|
-
}, [f]),
|
|
9003
|
+
}, [f]), re(() => {
|
|
9003
9004
|
O !== null && o(O);
|
|
9004
9005
|
}, [O, o]);
|
|
9005
9006
|
const R = () => {
|
|
@@ -9122,7 +9123,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
9122
9123
|
)
|
|
9123
9124
|
] }),
|
|
9124
9125
|
l && /* @__PURE__ */ A(
|
|
9125
|
-
|
|
9126
|
+
oe,
|
|
9126
9127
|
{
|
|
9127
9128
|
className: "text-error-500 mt-1 ",
|
|
9128
9129
|
appearance: "custom",
|
|
@@ -9338,7 +9339,7 @@ const _L = ct(
|
|
|
9338
9339
|
/* @__PURE__ */ A("span", { className: "absolute inset-y-0 right-3 flex items-center z-[1000px] h-full dark:text-black-100", children: "%" })
|
|
9339
9340
|
] }),
|
|
9340
9341
|
i && /* @__PURE__ */ A(
|
|
9341
|
-
|
|
9342
|
+
oe,
|
|
9342
9343
|
{
|
|
9343
9344
|
className: "text-error-500 mt-1",
|
|
9344
9345
|
appearance: "custom",
|
|
@@ -9379,12 +9380,12 @@ const vL = ct(({ onSubmit: t, ...e }, r) => /* @__PURE__ */ A(
|
|
|
9379
9380
|
}
|
|
9380
9381
|
));
|
|
9381
9382
|
vL.displayName = "Form";
|
|
9382
|
-
const yL = typeof window < "u" ? ul :
|
|
9383
|
+
const yL = typeof window < "u" ? ul : re;
|
|
9383
9384
|
function ZS(t, e, r, n) {
|
|
9384
|
-
const i =
|
|
9385
|
+
const i = ae(e);
|
|
9385
9386
|
yL(() => {
|
|
9386
9387
|
i.current = e;
|
|
9387
|
-
}, [e]),
|
|
9388
|
+
}, [e]), re(() => {
|
|
9388
9389
|
const a = r?.current || window;
|
|
9389
9390
|
if (!(a && a.addEventListener) || t === null)
|
|
9390
9391
|
return;
|
|
@@ -9397,7 +9398,7 @@ function ZS(t, e, r, n) {
|
|
|
9397
9398
|
const nu = ke.memo(
|
|
9398
9399
|
ke.forwardRef(
|
|
9399
9400
|
({ adjustWithScreen: t, children: e, renderViewClassName: r, fullHeight: n, ...i }, a) => {
|
|
9400
|
-
const [o, s] = X(window.innerHeight), l =
|
|
9401
|
+
const [o, s] = X(window.innerHeight), l = ae(null);
|
|
9401
9402
|
return ZS("resize", () => {
|
|
9402
9403
|
t && s(window.innerHeight);
|
|
9403
9404
|
}), Eb(
|
|
@@ -9485,7 +9486,7 @@ const Iue = ({
|
|
|
9485
9486
|
onClick: () => h("markdown"),
|
|
9486
9487
|
disabled: a,
|
|
9487
9488
|
children: /* @__PURE__ */ A(
|
|
9488
|
-
|
|
9489
|
+
oe,
|
|
9489
9490
|
{
|
|
9490
9491
|
variant: "semibold",
|
|
9491
9492
|
size: "extra-small",
|
|
@@ -9508,7 +9509,7 @@ const Iue = ({
|
|
|
9508
9509
|
onClick: () => h("preview"),
|
|
9509
9510
|
disabled: a,
|
|
9510
9511
|
children: /* @__PURE__ */ A(
|
|
9511
|
-
|
|
9512
|
+
oe,
|
|
9512
9513
|
{
|
|
9513
9514
|
variant: "semibold",
|
|
9514
9515
|
size: "extra-small",
|
|
@@ -9678,11 +9679,11 @@ const Iue = ({
|
|
|
9678
9679
|
}
|
|
9679
9680
|
_(null), x([]), t(""), m?.();
|
|
9680
9681
|
};
|
|
9681
|
-
|
|
9682
|
+
re(() => {
|
|
9682
9683
|
a?.name && _(a);
|
|
9683
|
-
}, [a]),
|
|
9684
|
+
}, [a]), re(() => {
|
|
9684
9685
|
S(n ? "#EF4444" : "#d9d9d9");
|
|
9685
|
-
}, [n]),
|
|
9686
|
+
}, [n]), re(() => {
|
|
9686
9687
|
y.length && N();
|
|
9687
9688
|
}, [y]);
|
|
9688
9689
|
const R = (D) => D ? D.length <= 20 ? D : D.slice(0, 14) + "...." + D.slice(-7) : "";
|
|
@@ -9708,8 +9709,8 @@ const Iue = ({
|
|
|
9708
9709
|
}
|
|
9709
9710
|
) }),
|
|
9710
9711
|
/* @__PURE__ */ T("div", { className: "text-left", children: [
|
|
9711
|
-
/* @__PURE__ */ A(
|
|
9712
|
-
d ? /* @__PURE__ */ A(
|
|
9712
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "font-inter text-md font-medium text-base", children: R(g?.name || a?.name) }),
|
|
9713
|
+
d ? /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "subtitle", children: "Uploading..." }) : g?.size > 0 ? /* @__PURE__ */ T(oe, { size: "small", variant: "medium", appearance: "subtitle", children: [
|
|
9713
9714
|
(g.size / 1e3).toFixed(2),
|
|
9714
9715
|
" ",
|
|
9715
9716
|
"KB"
|
|
@@ -9732,15 +9733,15 @@ const Iue = ({
|
|
|
9732
9733
|
/* @__PURE__ */ A("div", { className: "mb-4 flex justify-center", children: /* @__PURE__ */ A(RN, { size: 24, className: "text-neutral-400 dark:text-neutral-400" }) }),
|
|
9733
9734
|
/* @__PURE__ */ T("div", { children: [
|
|
9734
9735
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-center", children: [
|
|
9735
|
-
/* @__PURE__ */ A(
|
|
9736
|
-
/* @__PURE__ */ A(
|
|
9736
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-primary-600 dark:text-primary-300", appearance: "custom", children: "Click to upload" }),
|
|
9737
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "ml-1", appearance: "subtitle", children: "or drag and drop" })
|
|
9737
9738
|
] }),
|
|
9738
|
-
r ? /* @__PURE__ */ A(
|
|
9739
|
+
r ? /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "subtitle", children: r }) : null
|
|
9739
9740
|
] })
|
|
9740
9741
|
] }) })
|
|
9741
9742
|
}
|
|
9742
9743
|
) }),
|
|
9743
|
-
n && /* @__PURE__ */ A(
|
|
9744
|
+
n && /* @__PURE__ */ A(oe, { className: "text-error-500 mt-1", appearance: "custom", size: "extra-small", variant: "medium", children: n })
|
|
9744
9745
|
] });
|
|
9745
9746
|
}, SL = Object.keys(Yu).filter(
|
|
9746
9747
|
(t) => t?.endsWith("Rounded")
|
|
@@ -9859,8 +9860,8 @@ const Iue = ({
|
|
|
9859
9860
|
errorMessage: o,
|
|
9860
9861
|
dropdownPosition: s = "bottom"
|
|
9861
9862
|
}) => {
|
|
9862
|
-
const [l, u] = X(!1), c =
|
|
9863
|
-
|
|
9863
|
+
const [l, u] = X(!1), c = ae(!1), d = ae(null), f = ae(!1);
|
|
9864
|
+
re(() => {
|
|
9864
9865
|
f.current && !l && d.current?.focus(), f.current = l;
|
|
9865
9866
|
}, [l]);
|
|
9866
9867
|
const p = (h) => {
|
|
@@ -9900,7 +9901,7 @@ const Iue = ({
|
|
|
9900
9901
|
},
|
|
9901
9902
|
children: [
|
|
9902
9903
|
t ? /* @__PURE__ */ A($S, { iconName: t, sx: { width: 20, height: 20 }, className: "text-neutral-900 dark:text-white" }) : /* @__PURE__ */ A(
|
|
9903
|
-
|
|
9904
|
+
oe,
|
|
9904
9905
|
{
|
|
9905
9906
|
size: "small",
|
|
9906
9907
|
variant: "medium",
|
|
@@ -9919,7 +9920,7 @@ const Iue = ({
|
|
|
9919
9920
|
]
|
|
9920
9921
|
}
|
|
9921
9922
|
),
|
|
9922
|
-
o && /* @__PURE__ */ A(
|
|
9923
|
+
o && /* @__PURE__ */ A(oe, { size: "extra-small", className: "text-red-500 font-medium", children: o })
|
|
9923
9924
|
] })
|
|
9924
9925
|
}
|
|
9925
9926
|
);
|
|
@@ -10081,8 +10082,8 @@ const Xb = ({
|
|
|
10081
10082
|
footer: m,
|
|
10082
10083
|
...v
|
|
10083
10084
|
}) => {
|
|
10084
|
-
const g =
|
|
10085
|
-
|
|
10085
|
+
const g = ae(!1), [_, y] = X(s);
|
|
10086
|
+
re(() => {
|
|
10086
10087
|
y(s);
|
|
10087
10088
|
}, [n, s]);
|
|
10088
10089
|
const x = ue(
|
|
@@ -10098,7 +10099,7 @@ const Xb = ({
|
|
|
10098
10099
|
), E = ue(() => {
|
|
10099
10100
|
g.current && (g.current = !1);
|
|
10100
10101
|
}, []);
|
|
10101
|
-
|
|
10102
|
+
re(() => (document.addEventListener("mousemove", x), document.addEventListener("mouseup", E), () => {
|
|
10102
10103
|
document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", E);
|
|
10103
10104
|
}), [x, E]);
|
|
10104
10105
|
const S = typeof window < "u" ? document.getElementById(a) || document.body : null;
|
|
@@ -10143,8 +10144,8 @@ const Xb = ({
|
|
|
10143
10144
|
Xb.displayName = "Drawer";
|
|
10144
10145
|
const Fue = ({ children: t, showAsModal: e, ...r }) => e ? /* @__PURE__ */ A(Pn, { onCancel: r.onClose, ...r, children: t }) : /* @__PURE__ */ A(Xb, { ...r, children: t });
|
|
10145
10146
|
function RL(t) {
|
|
10146
|
-
const [e, r] = X(void 0), n =
|
|
10147
|
-
return
|
|
10147
|
+
const [e, r] = X(void 0), n = ae(null);
|
|
10148
|
+
return re(() => {
|
|
10148
10149
|
if (t.current)
|
|
10149
10150
|
return n.current = new ResizeObserver((i) => {
|
|
10150
10151
|
if (i[0]) {
|
|
@@ -10168,7 +10169,7 @@ const Uue = ({
|
|
|
10168
10169
|
fitContent: l = !1,
|
|
10169
10170
|
trailingContent: u
|
|
10170
10171
|
}) => {
|
|
10171
|
-
const c =
|
|
10172
|
+
const c = ae(null), d = RL(c), f = (x) => {
|
|
10172
10173
|
switch (x) {
|
|
10173
10174
|
case "xs":
|
|
10174
10175
|
return 6.5;
|
|
@@ -10383,7 +10384,7 @@ const Uue = ({
|
|
|
10383
10384
|
decodeEntities: I = !0,
|
|
10384
10385
|
onAiExtractedIndicatorClick: M
|
|
10385
10386
|
}, B) => {
|
|
10386
|
-
const [W, Q] = X(!0), [te, j] = X(!1), [q, K] = X(null), [ie, Y] = X(!1), Z = (ge) => I ? yR(ge) : ge,
|
|
10387
|
+
const [W, Q] = X(!0), [te, j] = X(!1), [q, K] = X(null), [ie, Y] = X(!1), Z = (ge) => I ? yR(ge) : ge, ne = () => {
|
|
10387
10388
|
Q(!W);
|
|
10388
10389
|
}, J = (ge) => {
|
|
10389
10390
|
j(!0), K({ ...ge, value: r });
|
|
@@ -10432,9 +10433,9 @@ const Uue = ({
|
|
|
10432
10433
|
{
|
|
10433
10434
|
id: `btn-label-value-${W ? "Show more" : "Show less"}`,
|
|
10434
10435
|
className: "text-primary-400 text-sm hover:text-primary-500 cursor-pointer whitespace-nowrap",
|
|
10435
|
-
onClick:
|
|
10436
|
+
onClick: ne,
|
|
10436
10437
|
onKeyDown: (Se) => {
|
|
10437
|
-
(Se.key === "Enter" || Se.key === " ") && (Se.preventDefault(),
|
|
10438
|
+
(Se.key === "Enter" || Se.key === " ") && (Se.preventDefault(), ne());
|
|
10438
10439
|
},
|
|
10439
10440
|
"aria-label": W ? "Show more content" : "Show less content",
|
|
10440
10441
|
type: "button",
|
|
@@ -10484,7 +10485,7 @@ const Uue = ({
|
|
|
10484
10485
|
"aria-label": F || `Label: ${e}, Value: ${r}`,
|
|
10485
10486
|
children: [
|
|
10486
10487
|
/* @__PURE__ */ T(
|
|
10487
|
-
|
|
10488
|
+
oe,
|
|
10488
10489
|
{
|
|
10489
10490
|
variant: "medium",
|
|
10490
10491
|
size: _e(),
|
|
@@ -10542,7 +10543,7 @@ const Uue = ({
|
|
|
10542
10543
|
}
|
|
10543
10544
|
),
|
|
10544
10545
|
/* @__PURE__ */ T(
|
|
10545
|
-
|
|
10546
|
+
oe,
|
|
10546
10547
|
{
|
|
10547
10548
|
variant: "medium",
|
|
10548
10549
|
size: _e(),
|
|
@@ -10599,7 +10600,7 @@ const Uue = ({
|
|
|
10599
10600
|
}
|
|
10600
10601
|
),
|
|
10601
10602
|
f && !v && /* @__PURE__ */ A(
|
|
10602
|
-
|
|
10603
|
+
oe,
|
|
10603
10604
|
{
|
|
10604
10605
|
variant: "medium",
|
|
10605
10606
|
size: "extra-small",
|
|
@@ -10619,7 +10620,7 @@ const Uue = ({
|
|
|
10619
10620
|
{
|
|
10620
10621
|
id: `btn-label-value-${W ? "Show more" : "Show less"}`,
|
|
10621
10622
|
className: "text-primary-400 text-sm hover:text-primary-500 cursor-pointer whitespace-nowrap",
|
|
10622
|
-
onClick:
|
|
10623
|
+
onClick: ne,
|
|
10623
10624
|
children: W ? "Show more" : "Show less"
|
|
10624
10625
|
}
|
|
10625
10626
|
)
|
|
@@ -10834,15 +10835,15 @@ const UL = () => /* @__PURE__ */ A("div", { className: "cursor-ew-resize flex it
|
|
|
10834
10835
|
}
|
|
10835
10836
|
}, qL = (t, e, r, n, i, a) => {
|
|
10836
10837
|
const [o, s] = X(!1), [l, u] = X(null);
|
|
10837
|
-
return
|
|
10838
|
+
return re(() => {
|
|
10838
10839
|
if (!t || typeof window > "u") {
|
|
10839
10840
|
u(null);
|
|
10840
10841
|
return;
|
|
10841
10842
|
}
|
|
10842
10843
|
zL(t, u);
|
|
10843
|
-
}, [t]),
|
|
10844
|
+
}, [t]), re(() => {
|
|
10844
10845
|
BL(i, r);
|
|
10845
|
-
}, [r]),
|
|
10846
|
+
}, [r]), re(() => {
|
|
10846
10847
|
if (t && e) {
|
|
10847
10848
|
const c = requestAnimationFrame(() => {
|
|
10848
10849
|
s(!0);
|
|
@@ -10852,7 +10853,7 @@ const UL = () => /* @__PURE__ */ A("div", { className: "cursor-ew-resize flex it
|
|
|
10852
10853
|
};
|
|
10853
10854
|
}
|
|
10854
10855
|
t || s(!0), e || s(!1);
|
|
10855
|
-
}, [e, t]),
|
|
10856
|
+
}, [e, t]), re(() => {
|
|
10856
10857
|
i.current?.size?.width && n && n(i.current.size.width);
|
|
10857
10858
|
}, [i.current?.size?.width, n]), { shouldRenderSidebar: o, portalTarget: l };
|
|
10858
10859
|
}, VL = ({
|
|
@@ -10965,7 +10966,7 @@ const UL = () => /* @__PURE__ */ A("div", { className: "cursor-ew-resize flex it
|
|
|
10965
10966
|
mainSidebarCollapsedWidth: g = 80,
|
|
10966
10967
|
navbarHeight: _ = 64
|
|
10967
10968
|
}, y) => {
|
|
10968
|
-
const x = m ? v : g, E =
|
|
10969
|
+
const x = m ? v : g, E = ae(null), { shouldRenderSidebar: S, portalTarget: w } = qL(
|
|
10969
10970
|
u,
|
|
10970
10971
|
t,
|
|
10971
10972
|
r,
|
|
@@ -28816,17 +28817,17 @@ function Hq(t) {
|
|
|
28816
28817
|
return () => {
|
|
28817
28818
|
O && (P(void 0), C(void 0));
|
|
28818
28819
|
};
|
|
28819
|
-
}, [w, N]),
|
|
28820
|
+
}, [w, N]), re(() => {
|
|
28820
28821
|
t.container && k(t.container);
|
|
28821
|
-
}, [t.container]),
|
|
28822
|
+
}, [t.container]), re(() => () => {
|
|
28822
28823
|
O && (O.destroy(), C(void 0)), L.current && (L.current.cancel(), L.current = null);
|
|
28823
|
-
}, [O]),
|
|
28824
|
+
}, [O]), re(() => {
|
|
28824
28825
|
l && O && O.focus();
|
|
28825
|
-
}, [l, O]),
|
|
28826
|
+
}, [l, O]), re(() => {
|
|
28826
28827
|
O && O.dispatch({
|
|
28827
28828
|
effects: et.reconfigure.of(M)
|
|
28828
28829
|
});
|
|
28829
|
-
}, [u, s, c, d, f, p, h, m, v, g, _, y, x, n, o]),
|
|
28830
|
+
}, [u, s, c, d, f, p, h, m, v, g, _, y, x, n, o]), re(() => {
|
|
28830
28831
|
if (e !== void 0) {
|
|
28831
28832
|
var B = O ? O.state.doc.toString() : "";
|
|
28832
28833
|
if (O && e !== B) {
|
|
@@ -28877,7 +28878,7 @@ var Fq = ["className", "value", "selection", "extensions", "onChange", "onStatis
|
|
|
28877
28878
|
readOnly: S,
|
|
28878
28879
|
root: w,
|
|
28879
28880
|
initialState: k
|
|
28880
|
-
} = t, O = e7(t, Fq), C =
|
|
28881
|
+
} = t, O = e7(t, Fq), C = ae(null), {
|
|
28881
28882
|
state: N,
|
|
28882
28883
|
view: P,
|
|
28883
28884
|
container: L,
|
|
@@ -30882,7 +30883,7 @@ const mW = ({
|
|
|
30882
30883
|
checkSyntaxAPI: i,
|
|
30883
30884
|
formatCodeAPI: a
|
|
30884
30885
|
}) => {
|
|
30885
|
-
const [o, s] = X(null), [l, u] = X(!1), c =
|
|
30886
|
+
const [o, s] = X(null), [l, u] = X(!1), c = ae(t);
|
|
30886
30887
|
c.current = t;
|
|
30887
30888
|
const d = Pe(() => ok(), []), f = ue(() => {
|
|
30888
30889
|
const m = c.current;
|
|
@@ -30936,7 +30937,7 @@ const mW = ({
|
|
|
30936
30937
|
}
|
|
30937
30938
|
}
|
|
30938
30939
|
}, [e, r, a]);
|
|
30939
|
-
return
|
|
30940
|
+
return re(() => {
|
|
30940
30941
|
if (!n || !i || !c.current) return;
|
|
30941
30942
|
const m = CS(() => {
|
|
30942
30943
|
p();
|
|
@@ -31028,7 +31029,7 @@ const NW = ({
|
|
|
31028
31029
|
onBlockClick: g,
|
|
31029
31030
|
focusBlock: _
|
|
31030
31031
|
}) => {
|
|
31031
|
-
const y =
|
|
31032
|
+
const y = ae(null), [x, E] = X("light"), S = c ?? x, [w, k] = X(!1), [O, C] = X("JSON"), [N, P] = X(!1), [L, R] = X(!1), D = o === "json", F = TS(), I = ae(g);
|
|
31032
31033
|
I.current = g;
|
|
31033
31034
|
const M = () => {
|
|
31034
31035
|
F?.active ? F.exit() : F.enter();
|
|
@@ -31045,7 +31046,7 @@ const NW = ({
|
|
|
31045
31046
|
checkSyntaxAPI: h,
|
|
31046
31047
|
formatCodeAPI: m
|
|
31047
31048
|
});
|
|
31048
|
-
|
|
31049
|
+
re(() => {
|
|
31049
31050
|
p && p(W || Q);
|
|
31050
31051
|
}, [W, Q, p]);
|
|
31051
31052
|
const j = Pe(() => o !== "json" ? [] : uq((_e) => {
|
|
@@ -31082,7 +31083,7 @@ const NW = ({
|
|
|
31082
31083
|
});
|
|
31083
31084
|
}
|
|
31084
31085
|
}, []);
|
|
31085
|
-
|
|
31086
|
+
re(() => {
|
|
31086
31087
|
if (!_) return;
|
|
31087
31088
|
const _e = y.current?.view;
|
|
31088
31089
|
if (!_e) return;
|
|
@@ -31134,7 +31135,7 @@ const NW = ({
|
|
|
31134
31135
|
toastId: "code-editor-beta-format-error"
|
|
31135
31136
|
});
|
|
31136
31137
|
}
|
|
31137
|
-
},
|
|
31138
|
+
}, ne = (_e, me) => _e.replace(/[<>:"/\\|?*\x00-\x1f]/g, "_").replace(/\.{2,}/g, ".").replace(/^\.+|\.+$/g, "").trim() || me, J = (_e) => _e === "python" ? { type: "text/x-python", extension: "py" } : _e === "json" ? { type: "application/json", extension: "json" } : { type: "text/plain", extension: "txt" }, ce = () => {
|
|
31138
31139
|
if (o === "python")
|
|
31139
31140
|
try {
|
|
31140
31141
|
let _e = t;
|
|
@@ -31174,8 +31175,8 @@ const NW = ({
|
|
|
31174
31175
|
try {
|
|
31175
31176
|
const _e = new Blob([t], { type: J(o)?.type }), me = URL.createObjectURL(_e), ge = document.createElement("a");
|
|
31176
31177
|
ge.href = me;
|
|
31177
|
-
const we = J(o)?.extension || "txt", Se =
|
|
31178
|
-
ge.download =
|
|
31178
|
+
const we = J(o)?.extension || "txt", Se = ne(we, "txt");
|
|
31179
|
+
ge.download = ne(
|
|
31179
31180
|
`code_${Date.now()}.${Se}`,
|
|
31180
31181
|
`code_${Date.now()}.${Se}`
|
|
31181
31182
|
), document.body.appendChild(ge), ge.click(), document.body.removeChild(ge), URL.revokeObjectURL(me);
|
|
@@ -31484,8 +31485,8 @@ const Xue = ({
|
|
|
31484
31485
|
), Que = ({ title: t, visible: e, onClose: r, content: n }) => /* @__PURE__ */ T(Pn, { title: null, open: e, footer: null, onCancel: r, zIndex: 9999, showCloseButton: !1, width: 400, children: [
|
|
31485
31486
|
/* @__PURE__ */ T("div", { children: [
|
|
31486
31487
|
/* @__PURE__ */ A("div", { className: "flex justify-center", children: /* @__PURE__ */ A("div", { className: "flex w-[48px] h-[48px] justify-center items-center gap-2 rounded-lg border border-[#54A4EC] shadow-[0_0_4px_2px_rgba(198,225,249,0.20)_inset]", children: /* @__PURE__ */ A(RW, {}) }) }),
|
|
31487
|
-
/* @__PURE__ */ A(
|
|
31488
|
-
/* @__PURE__ */ A(
|
|
31488
|
+
/* @__PURE__ */ A(oe, { size: "medium", variant: "semibold", className: "text-center mt-3", children: t }),
|
|
31489
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-center text-neutral-500 mt-2 dark:text-neutral-400", appearance: "custom", children: n })
|
|
31489
31490
|
] }),
|
|
31490
31491
|
/* @__PURE__ */ A("div", { className: "flex justify-center mt-4", children: /* @__PURE__ */ A(Tt, { id: "btn-access-denied-modal-close", appearance: "outline", status: "secondary-neutral", onClick: r, children: "Close" }) })
|
|
31491
31492
|
] }), Gue = ({ containerClass: t }) => /* @__PURE__ */ A("div", { className: U("flex justify-center items-center h-table", t), children: /* @__PURE__ */ T("div", { className: "flex flex-col items-center text-neutral-800 -mt-12", children: [
|
|
@@ -31619,7 +31620,7 @@ const Xue = ({
|
|
|
31619
31620
|
}
|
|
31620
31621
|
)
|
|
31621
31622
|
] }, ""), children: /* @__PURE__ */ T("div", { className: "mt-5 mb-8", children: [
|
|
31622
|
-
/* @__PURE__ */ T(
|
|
31623
|
+
/* @__PURE__ */ T(oe, { variant: "regular", size: "medium", appearance: "body", className: "font-inter", children: [
|
|
31623
31624
|
s,
|
|
31624
31625
|
n && /* @__PURE__ */ T("span", { className: "font-bold text-neutral-900 dark:text-neutral-100", children: [
|
|
31625
31626
|
" ",
|
|
@@ -31631,7 +31632,7 @@ const Xue = ({
|
|
|
31631
31632
|
] }),
|
|
31632
31633
|
"?"
|
|
31633
31634
|
] }),
|
|
31634
|
-
l && /* @__PURE__ */ A(
|
|
31635
|
+
l && /* @__PURE__ */ A(oe, { variant: "regular", size: "medium", className: "text-neutral-700 font-inter mt-5", children: l })
|
|
31635
31636
|
] }) });
|
|
31636
31637
|
}, bk = ct(
|
|
31637
31638
|
({
|
|
@@ -31807,7 +31808,7 @@ const $ue = bk, Jue = ({ icon: t, title: e, description: r, variant: n, classNam
|
|
|
31807
31808
|
children: t
|
|
31808
31809
|
}
|
|
31809
31810
|
), MW = (t, e) => {
|
|
31810
|
-
|
|
31811
|
+
re(() => () => {
|
|
31811
31812
|
}, [t, e]);
|
|
31812
31813
|
}, HW = (t) => {
|
|
31813
31814
|
const {
|
|
@@ -31826,10 +31827,10 @@ const $ue = bk, Jue = ({ icon: t, title: e, description: r, variant: n, classNam
|
|
|
31826
31827
|
onSelectResult: p,
|
|
31827
31828
|
isLoading: h,
|
|
31828
31829
|
...m
|
|
31829
|
-
} = t, { t: v } = Kt(), [g, _] = X(r?.slice(0, 0)), [y, x] = X(0), [E, S] = X(!1), [w, k] = X("search"), [O, C] = X(!0), N =
|
|
31830
|
+
} = t, { t: v } = Kt(), [g, _] = X(r?.slice(0, 0)), [y, x] = X(0), [E, S] = X(!1), [w, k] = X("search"), [O, C] = X(!0), N = ae(null);
|
|
31830
31831
|
MW(i, f || N);
|
|
31831
31832
|
const P = l ? (s || 0) + 1 : 0;
|
|
31832
|
-
|
|
31833
|
+
re(() => {
|
|
31833
31834
|
const F = setInterval(() => {
|
|
31834
31835
|
_(r?.slice(0, y)), y + 1 > (r?.length || 0) ? x(0) : x(y + 1);
|
|
31835
31836
|
}, 100);
|
|
@@ -31892,7 +31893,7 @@ const $ue = bk, Jue = ({ icon: t, title: e, description: r, variant: n, classNam
|
|
|
31892
31893
|
}
|
|
31893
31894
|
),
|
|
31894
31895
|
h ? /* @__PURE__ */ A("div", { className: "flex absolute right-0 mr-2 focus:outline-none", children: /* @__PURE__ */ A(sD, { sx: { color: "var(--color-primary-600)" }, className: "text-gray-400 dark:text-black-200", size: 16 }) }) : e ? /* @__PURE__ */ T("div", { className: "flex absolute right-0 mr-2 focus:outline-none", children: [
|
|
31895
|
-
/* @__PURE__ */ T(
|
|
31896
|
+
/* @__PURE__ */ T(oe, { size: "small", variant: "semibold", className: "text-gray-400 dark:text-black-200 mx-2 mt-[2px]", appearance: "custom", children: [
|
|
31896
31897
|
P,
|
|
31897
31898
|
"/",
|
|
31898
31899
|
l || 0
|
|
@@ -31915,7 +31916,7 @@ const $ue = bk, Jue = ({ icon: t, title: e, description: r, variant: n, classNam
|
|
|
31915
31916
|
) }) });
|
|
31916
31917
|
}, _k = () => {
|
|
31917
31918
|
const { pathname: t } = TC();
|
|
31918
|
-
|
|
31919
|
+
re(() => {
|
|
31919
31920
|
window.scrollTo(0, 0);
|
|
31920
31921
|
}, [t]);
|
|
31921
31922
|
};
|
|
@@ -32634,7 +32635,7 @@ function gX(t) {
|
|
|
32634
32635
|
if (!(!a || !e || !r || !i)) {
|
|
32635
32636
|
var o = e.velocityX, s = e.velocityY, l = e.total, u = r.maxPositionX, c = r.minPositionX, d = r.maxPositionY, f = r.minPositionY, p = n.limitToBounds, h = n.alignmentAnimation, m = n.zoomAnimation, v = n.panning, g = v.lockAxisY, _ = v.lockAxisX, y = m.animationType, x = h.sizeX, E = h.sizeY, S = h.velocityAlignmentTime, w = S, k = pX(t, l), O = Math.max(k, w), C = ra(t, x), N = ra(t, E), P = C * i.offsetWidth / 100, L = N * i.offsetHeight / 100, R = u + P, D = c - P, F = d + L, I = f - L, M = t.transformState, B = (/* @__PURE__ */ new Date()).getTime();
|
|
32636
32637
|
Sk(t, y, O, function(W) {
|
|
32637
|
-
var Q = t.transformState, te = Q.scale, j = Q.positionX, q = Q.positionY, K = (/* @__PURE__ */ new Date()).getTime() - B, ie = K / w, Y = yk[h.animationType], Z = 1 - Y(Math.min(1, ie)),
|
|
32638
|
+
var Q = t.transformState, te = Q.scale, j = Q.positionX, q = Q.positionY, K = (/* @__PURE__ */ new Date()).getTime() - B, ie = K / w, Y = yk[h.animationType], Z = 1 - Y(Math.min(1, ie)), ne = 1 - W, J = j + o * ne, ce = q + s * ne, ze = my(J, M.positionX, j, _, p, c, u, D, R, Z), Ee = my(ce, M.positionY, q, g, p, f, d, I, F, Z);
|
|
32638
32639
|
(j !== J || q !== ce) && t.setTransformState(te, ze, Ee);
|
|
32639
32640
|
});
|
|
32640
32641
|
}
|
|
@@ -33244,16 +33245,16 @@ var KX = function(t, e) {
|
|
|
33244
33245
|
), z2 = ke.createContext(null), $X = function(t, e) {
|
|
33245
33246
|
return typeof t == "function" ? t(e) : t;
|
|
33246
33247
|
}, JX = ke.forwardRef(function(t, e) {
|
|
33247
|
-
var r =
|
|
33248
|
+
var r = ae(new ZX(t)).current, n = $X(t.children, eb(r));
|
|
33248
33249
|
return Eb(e, function() {
|
|
33249
33250
|
return eb(r);
|
|
33250
|
-
}, [r]),
|
|
33251
|
+
}, [r]), re(function() {
|
|
33251
33252
|
r.update(t);
|
|
33252
33253
|
}, [r, t]), ke.createElement(z2.Provider, { value: r }, n);
|
|
33253
33254
|
});
|
|
33254
33255
|
ke.forwardRef(function(t, e) {
|
|
33255
|
-
var r =
|
|
33256
|
-
return
|
|
33256
|
+
var r = ae(null), n = fr(z2);
|
|
33257
|
+
return re(function() {
|
|
33257
33258
|
return n.onChange(function(i) {
|
|
33258
33259
|
if (r.current) {
|
|
33259
33260
|
var a = 0, o = 0;
|
|
@@ -33304,8 +33305,8 @@ var tj = `.transform-component-module_wrapper__SPB86 {
|
|
|
33304
33305
|
`, yy = { wrapper: "transform-component-module_wrapper__SPB86", content: "transform-component-module_content__FBWxo" };
|
|
33305
33306
|
ej(tj);
|
|
33306
33307
|
var rj = function(t) {
|
|
33307
|
-
var e = t.children, r = t.wrapperClass, n = r === void 0 ? "" : r, i = t.contentClass, a = i === void 0 ? "" : i, o = t.wrapperStyle, s = t.contentStyle, l = t.wrapperProps, u = l === void 0 ? {} : l, c = t.contentProps, d = c === void 0 ? {} : c, f = fr(z2), p = f.init, h = f.cleanupWindowEvents, m =
|
|
33308
|
-
return
|
|
33308
|
+
var e = t.children, r = t.wrapperClass, n = r === void 0 ? "" : r, i = t.contentClass, a = i === void 0 ? "" : i, o = t.wrapperStyle, s = t.contentStyle, l = t.wrapperProps, u = l === void 0 ? {} : l, c = t.contentProps, d = c === void 0 ? {} : c, f = fr(z2), p = f.init, h = f.cleanupWindowEvents, m = ae(null), v = ae(null);
|
|
33309
|
+
return re(function() {
|
|
33309
33310
|
var g = m.current, _ = v.current;
|
|
33310
33311
|
return g !== null && _ !== null && p && p?.(g, _), function() {
|
|
33311
33312
|
h?.();
|
|
@@ -33333,7 +33334,7 @@ const nj = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEIAAAAugCAYAAABoY/TMAA
|
|
|
33333
33334
|
...p
|
|
33334
33335
|
}) => {
|
|
33335
33336
|
const [h, m] = X(9), [v, g] = X(!1);
|
|
33336
|
-
|
|
33337
|
+
re(() => {
|
|
33337
33338
|
const y = () => {
|
|
33338
33339
|
g(document.documentElement.classList.contains("dark"));
|
|
33339
33340
|
};
|
|
@@ -33387,7 +33388,7 @@ const nj = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEIAAAAugCAYAAABoY/TMAA
|
|
|
33387
33388
|
),
|
|
33388
33389
|
/* @__PURE__ */ T(IW, { variant: "group", children: [
|
|
33389
33390
|
/* @__PURE__ */ A(br, { onClick: () => y(), className: "rounded-r-none", noborder: !0, tooltip: "Zoom In", children: /* @__PURE__ */ A(SS, { className: "text-neutral-900 dark:text-white" }) }),
|
|
33390
|
-
/* @__PURE__ */ A(br, { onClick: () => x(), className: "rounded-none h-full", noborder: !0, tooltip: "Zoom Out", children: /* @__PURE__ */ A(
|
|
33391
|
+
/* @__PURE__ */ A(br, { onClick: () => x(), className: "rounded-none h-full", noborder: !0, tooltip: "Zoom Out", children: /* @__PURE__ */ A(oe, { size: "small", variant: "medium", children: h + "%" }) }),
|
|
33391
33392
|
/* @__PURE__ */ A(br, { onClick: () => x(), className: "rounded-l-none", noborder: !0, tooltip: "Zoom Out", children: /* @__PURE__ */ A(FC, { className: "text-neutral-900 dark:text-white" }) })
|
|
33392
33393
|
] }),
|
|
33393
33394
|
/* @__PURE__ */ A(br, { onClick: () => E(), tooltip: "Reset Zoom", children: /* @__PURE__ */ A(UC, { className: "text-neutral-900 dark:text-white" }) })
|
|
@@ -33432,7 +33433,7 @@ const Ik = ct(
|
|
|
33432
33433
|
n?.(t?.id || "");
|
|
33433
33434
|
};
|
|
33434
33435
|
return /* @__PURE__ */ A("div", { ref: i, className: "min-w-0 w-full", children: /* @__PURE__ */ A(
|
|
33435
|
-
|
|
33436
|
+
oe,
|
|
33436
33437
|
{
|
|
33437
33438
|
size: "small",
|
|
33438
33439
|
variant: "medium",
|
|
@@ -33471,8 +33472,8 @@ const oj = ({
|
|
|
33471
33472
|
variant: e = "primary",
|
|
33472
33473
|
onClick: r
|
|
33473
33474
|
}) => {
|
|
33474
|
-
const n =
|
|
33475
|
-
|
|
33475
|
+
const n = ae([]), [i, a] = X([]);
|
|
33476
|
+
re(() => {
|
|
33476
33477
|
const s = () => {
|
|
33477
33478
|
const c = n?.current?.map((d) => {
|
|
33478
33479
|
if (!d) return !1;
|
|
@@ -34975,7 +34976,7 @@ const Lj = ({ text: t }) => {
|
|
|
34975
34976
|
const i = t.split(/(<um>.*?<\/um>)/);
|
|
34976
34977
|
r(i);
|
|
34977
34978
|
};
|
|
34978
|
-
return
|
|
34979
|
+
return re(() => {
|
|
34979
34980
|
n();
|
|
34980
34981
|
}, [t]), /* @__PURE__ */ A(ot, { children: e.map((i, a) => i.includes("<um>") ? /* @__PURE__ */ A(
|
|
34981
34982
|
"span",
|
|
@@ -35109,7 +35110,7 @@ const bce = Al(Vk), Ij = (t, e, r) => {
|
|
|
35109
35110
|
d(!1), n?.(h.target.value);
|
|
35110
35111
|
};
|
|
35111
35112
|
return /* @__PURE__ */ T("div", { className: "flex flex-col gap-1", children: [
|
|
35112
|
-
t && /* @__PURE__ */ A(
|
|
35113
|
+
t && /* @__PURE__ */ A(oe, { size: "extra-small", variant: "regular", appearance: "subtitle", children: t }),
|
|
35113
35114
|
/* @__PURE__ */ A(
|
|
35114
35115
|
"input",
|
|
35115
35116
|
{
|
|
@@ -35199,9 +35200,9 @@ const Hj = ({
|
|
|
35199
35200
|
),
|
|
35200
35201
|
/* @__PURE__ */ T("div", { className: "flex gap-2 items-center", children: [
|
|
35201
35202
|
m,
|
|
35202
|
-
/* @__PURE__ */ A(
|
|
35203
|
+
/* @__PURE__ */ A(oe, { size: "small", appearance: "body", variant: "medium", className: "whitespace-nowrap", children: e })
|
|
35203
35204
|
] }),
|
|
35204
|
-
/* @__PURE__ */ A(
|
|
35205
|
+
/* @__PURE__ */ A(oe, { size: "extra-small", appearance: "title", variant: "medium", className: "ml-1", children: c }),
|
|
35205
35206
|
v,
|
|
35206
35207
|
/* @__PURE__ */ A("span", { children: i === a && !o && /* @__PURE__ */ A(br, { variant: "ghost", children: /* @__PURE__ */ A(MN, { size: 16, className: "ml-[8px] text-neutral-400 dark:text-neutral-400" }) }) })
|
|
35207
35208
|
] })
|
|
@@ -35250,7 +35251,7 @@ const Fj = ({
|
|
|
35250
35251
|
isMainSideBarOpen: l = !1,
|
|
35251
35252
|
isAuthoringOpen: u = !1
|
|
35252
35253
|
}) => {
|
|
35253
|
-
const c =
|
|
35254
|
+
const c = ae(null), [d, f] = X(0), [p, h] = X(0), [m, v] = X(0), [g, _] = X(""), [y, x] = X(""), E = () => n === "top" || n === "top-right" ? "flex-col" : n === "bottom" || n === "bottom-right" ? "flex-col-reverse" : r === "linear" ? "flex-row" : "flex-col", S = () => {
|
|
35254
35255
|
setTimeout(() => {
|
|
35255
35256
|
f(0);
|
|
35256
35257
|
const k = 210, O = 225;
|
|
@@ -35260,13 +35261,13 @@ const Fj = ({
|
|
|
35260
35261
|
f(N), c?.current?.clientWidth && c?.current?.clientWidth < 480 && f(t?.length);
|
|
35261
35262
|
}, 300);
|
|
35262
35263
|
};
|
|
35263
|
-
|
|
35264
|
+
re(() => {
|
|
35264
35265
|
S();
|
|
35265
|
-
}, [l, t, e]),
|
|
35266
|
+
}, [l, t, e]), re(() => {
|
|
35266
35267
|
setTimeout(() => {
|
|
35267
35268
|
S();
|
|
35268
35269
|
}, 300);
|
|
35269
|
-
}, [u]),
|
|
35270
|
+
}, [u]), re(() => {
|
|
35270
35271
|
if (d > 0)
|
|
35271
35272
|
if (d > e) {
|
|
35272
35273
|
let k = t?.slice(d, t?.length)?.map((C) => C?.label)?.join(", "), O = d;
|
|
@@ -35286,7 +35287,7 @@ const Fj = ({
|
|
|
35286
35287
|
/* @__PURE__ */ T("div", { className: `flex ${E()} ${n === "inline" && r === "linear" ? "items-center" : ""}`, children: [
|
|
35287
35288
|
/* @__PURE__ */ T("div", { className: `${n === "inline" ? "max-w-[70%]" : "w-full"} flex flex-col`, children: [
|
|
35288
35289
|
/* @__PURE__ */ A("div", { className: `flex ${n === "top-right" || n === "bottom-right" ? "justify-end" : ""}`, children: /* @__PURE__ */ A(Re, { title: k?.tooltipText, children: /* @__PURE__ */ T(
|
|
35289
|
-
|
|
35290
|
+
oe,
|
|
35290
35291
|
{
|
|
35291
35292
|
size: "small",
|
|
35292
35293
|
variant: "medium",
|
|
@@ -35298,7 +35299,7 @@ const Fj = ({
|
|
|
35298
35299
|
{
|
|
35299
35300
|
className: `${r === "parallel" ? "flex items-center" : `w-6 min-w-[24px] h-6 ${O <= e ? "bg-primary-600" : "bg-neutral-400 dark:bg-black-400"} rounded-full flex items-center justify-center text-white`}`,
|
|
35300
35301
|
children: k?.isLocked ? /* @__PURE__ */ A("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ A(BC, { sx: { fontSize: 16 } }) }) : /* @__PURE__ */ A(ot, { children: e > O && r === "linear" ? /* @__PURE__ */ A(HN, { size: 18, className: "text-white dark:text-white" }) : /* @__PURE__ */ A(
|
|
35301
|
-
|
|
35302
|
+
oe,
|
|
35302
35303
|
{
|
|
35303
35304
|
size: `${r === "parallel" ? "small" : "extra-small"}`,
|
|
35304
35305
|
variant: "medium",
|
|
@@ -35318,7 +35319,7 @@ const Fj = ({
|
|
|
35318
35319
|
{
|
|
35319
35320
|
className: `flex ${n === "top-right" || n === "bottom-right" ? "justify-end" : r === "linear" ? "ml-8" : ""}`,
|
|
35320
35321
|
children: /* @__PURE__ */ A(
|
|
35321
|
-
|
|
35322
|
+
oe,
|
|
35322
35323
|
{
|
|
35323
35324
|
size: "extra-small",
|
|
35324
35325
|
variant: "medium",
|
|
@@ -35338,7 +35339,7 @@ const Fj = ({
|
|
|
35338
35339
|
) : null
|
|
35339
35340
|
] }),
|
|
35340
35341
|
n === "inline" && r === "linear" ? /* @__PURE__ */ A(
|
|
35341
|
-
|
|
35342
|
+
oe,
|
|
35342
35343
|
{
|
|
35343
35344
|
size: "extra-small",
|
|
35344
35345
|
variant: "medium",
|
|
@@ -35364,7 +35365,7 @@ const Fj = ({
|
|
|
35364
35365
|
},
|
|
35365
35366
|
trigger: ["click"],
|
|
35366
35367
|
children: /* @__PURE__ */ A(
|
|
35367
|
-
|
|
35368
|
+
oe,
|
|
35368
35369
|
{
|
|
35369
35370
|
size: "small",
|
|
35370
35371
|
variant: "medium",
|
|
@@ -35378,7 +35379,7 @@ const Fj = ({
|
|
|
35378
35379
|
)
|
|
35379
35380
|
}
|
|
35380
35381
|
) : /* @__PURE__ */ A(
|
|
35381
|
-
|
|
35382
|
+
oe,
|
|
35382
35383
|
{
|
|
35383
35384
|
size: "small",
|
|
35384
35385
|
variant: "medium",
|
|
@@ -35405,7 +35406,7 @@ const Fj = ({
|
|
|
35405
35406
|
},
|
|
35406
35407
|
trigger: ["click"],
|
|
35407
35408
|
children: /* @__PURE__ */ A(
|
|
35408
|
-
|
|
35409
|
+
oe,
|
|
35409
35410
|
{
|
|
35410
35411
|
size: "small",
|
|
35411
35412
|
variant: "medium",
|
|
@@ -35419,7 +35420,7 @@ const Fj = ({
|
|
|
35419
35420
|
)
|
|
35420
35421
|
}
|
|
35421
35422
|
) : /* @__PURE__ */ A(
|
|
35422
|
-
|
|
35423
|
+
oe,
|
|
35423
35424
|
{
|
|
35424
35425
|
size: "small",
|
|
35425
35426
|
variant: "medium",
|
|
@@ -35456,7 +35457,7 @@ const Wk = ({
|
|
|
35456
35457
|
g ? h(!1) : (h(!1), r(), f(!1));
|
|
35457
35458
|
})) : (r(), f(!1));
|
|
35458
35459
|
};
|
|
35459
|
-
return
|
|
35460
|
+
return re(() => {
|
|
35460
35461
|
t || f(l);
|
|
35461
35462
|
}, [l, t]), /* @__PURE__ */ T(ot, { children: [
|
|
35462
35463
|
/* @__PURE__ */ A(
|
|
@@ -35524,7 +35525,7 @@ const Uj = ke.memo(Wk), zj = ({
|
|
|
35524
35525
|
c.stopPropagation();
|
|
35525
35526
|
}, u = "text-primary-600 font-semibold font-inter text-sm cursor-pointer hover:text-primary-700";
|
|
35526
35527
|
return /* @__PURE__ */ T("div", { className: "flex items-center justify-between mb-4", children: [
|
|
35527
|
-
/* @__PURE__ */ A(
|
|
35528
|
+
/* @__PURE__ */ A(oe, { variant: "semibold", size: "medium", appearance: "body", children: t }),
|
|
35528
35529
|
r && e ? i ? /* @__PURE__ */ A(
|
|
35529
35530
|
i,
|
|
35530
35531
|
{
|
|
@@ -36278,8 +36279,8 @@ function NQ(t) {
|
|
|
36278
36279
|
var ie = x.find(function(Y) {
|
|
36279
36280
|
var Z = w.get(Y);
|
|
36280
36281
|
if (Z)
|
|
36281
|
-
return Z.slice(0, K).every(function(
|
|
36282
|
-
return
|
|
36282
|
+
return Z.slice(0, K).every(function(ne) {
|
|
36283
|
+
return ne;
|
|
36283
36284
|
});
|
|
36284
36285
|
});
|
|
36285
36286
|
if (ie)
|
|
@@ -36406,7 +36407,7 @@ function zQ(t) {
|
|
|
36406
36407
|
var L, R = x === "y" ? Vr : Wr, D = x === "y" ? mn : gn, F = x === "y" ? "height" : "width", I = S[x], M = I + v[R], B = I - v[D], W = p ? -k[F] / 2 : 0, Q = _ === xo ? w[F] : k[F], te = _ === xo ? -k[F] : -w[F], j = e.elements.arrow, q = p && j ? V2(j) : {
|
|
36407
36408
|
width: 0,
|
|
36408
36409
|
height: 0
|
|
36409
|
-
}, K = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Kk(), ie = K[R], Y = K[D], Z = Es(0, w[F], q[F]),
|
|
36410
|
+
}, K = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Kk(), ie = K[R], Y = K[D], Z = Es(0, w[F], q[F]), ne = y ? w[F] / 2 - W - Z - ie - C.mainAxis : Q - Z - ie - C.mainAxis, J = y ? -w[F] / 2 + W + Z + Y + C.mainAxis : te + Z + Y + C.mainAxis, ce = e.elements.arrow && Nl(e.elements.arrow), ze = ce ? x === "y" ? ce.clientTop || 0 : ce.clientLeft || 0 : 0, Ee = (L = N?.[x]) != null ? L : 0, _e = I + ne - Ee - ze, me = I + J - Ee, ge = Es(p ? Lu(M, _e) : M, I, p ? ka(B, me) : B);
|
|
36410
36411
|
S[x] = ge, P[x] = ge - I;
|
|
36411
36412
|
}
|
|
36412
36413
|
if (s) {
|
|
@@ -36903,8 +36904,8 @@ var hG = function() {
|
|
|
36903
36904
|
return typeof Iu.ResizeObserver < "u" ? Iu.ResizeObserver : oT;
|
|
36904
36905
|
}();
|
|
36905
36906
|
const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start", children: i, className: a }) => {
|
|
36906
|
-
const o =
|
|
36907
|
-
return
|
|
36907
|
+
const o = ae(null), s = ae(null);
|
|
36908
|
+
return re(() => {
|
|
36908
36909
|
if (t && r && o.current) {
|
|
36909
36910
|
s.current = tT(r, o.current, {
|
|
36910
36911
|
placement: n ?? "right",
|
|
@@ -36939,7 +36940,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
36939
36940
|
return () => {
|
|
36940
36941
|
s.current && (s.current.destroy(), s.current = null);
|
|
36941
36942
|
};
|
|
36942
|
-
}, [t, r, n]),
|
|
36943
|
+
}, [t, r, n]), re(() => {
|
|
36943
36944
|
if (!t || !o.current || !s.current) return;
|
|
36944
36945
|
const l = new hG(() => {
|
|
36945
36946
|
s.current && s.current.update();
|
|
@@ -36971,18 +36972,18 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
36971
36972
|
return ((/* @__PURE__ */ new Date()).getTime() - a.getTime()) / (1e3 * 60 * 60) < 24;
|
|
36972
36973
|
}, [e]);
|
|
36973
36974
|
return !t && !r ? null : /* @__PURE__ */ T("div", { className: "flex justify-between items-center", children: [
|
|
36974
|
-
/* @__PURE__ */ A(
|
|
36975
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "mr-5", appearance: "body", children: "Status" }),
|
|
36975
36976
|
(() => {
|
|
36976
36977
|
if (t)
|
|
36977
36978
|
return /* @__PURE__ */ T("div", { className: "flex items-center gap-2", children: [
|
|
36978
36979
|
/* @__PURE__ */ A("div", { className: "w-2 h-2 rounded-full bg-primary-600" }),
|
|
36979
|
-
/* @__PURE__ */ A(
|
|
36980
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-primary-600", children: "Online now" })
|
|
36980
36981
|
] });
|
|
36981
36982
|
if (r) {
|
|
36982
36983
|
const a = n ? "text-primary-300" : "text-neutral-400";
|
|
36983
36984
|
return /* @__PURE__ */ T("div", { className: "flex items-center gap-2", children: [
|
|
36984
36985
|
/* @__PURE__ */ A("div", { className: U("w-2 h-2 rounded-full", n ? "bg-primary-300" : "bg-neutral-400") }),
|
|
36985
|
-
/* @__PURE__ */ A(
|
|
36986
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: a, children: r })
|
|
36986
36987
|
] });
|
|
36987
36988
|
}
|
|
36988
36989
|
return null;
|
|
@@ -37016,7 +37017,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
37016
37017
|
)
|
|
37017
37018
|
}
|
|
37018
37019
|
), vG = () => {
|
|
37019
|
-
const t =
|
|
37020
|
+
const t = ae(null), e = ae(null), [r, n] = X({
|
|
37020
37021
|
vertical: "bottom",
|
|
37021
37022
|
horizontal: "left"
|
|
37022
37023
|
}), [i, a] = X(!1), o = ue(() => {
|
|
@@ -37039,7 +37040,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
37039
37040
|
hide: l
|
|
37040
37041
|
};
|
|
37041
37042
|
}, kA = ({ label: t, content: e }) => /* @__PURE__ */ T("div", { className: "flex justify-between items-center", children: [
|
|
37042
|
-
/* @__PURE__ */ A(
|
|
37043
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "mr-5", appearance: "body", children: t }),
|
|
37043
37044
|
e
|
|
37044
37045
|
] }), yG = ({
|
|
37045
37046
|
firstName: t,
|
|
@@ -37069,7 +37070,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
37069
37070
|
isVisible: O,
|
|
37070
37071
|
show: C,
|
|
37071
37072
|
hide: N
|
|
37072
|
-
} = vG(), P =
|
|
37073
|
+
} = vG(), P = ae({}), L = Pe(() => {
|
|
37073
37074
|
if (d || !c) return !1;
|
|
37074
37075
|
const ie = new Date(c);
|
|
37075
37076
|
return ((/* @__PURE__ */ new Date()).getTime() - ie.getTime()) / (1e3 * 60 * 60) < 24;
|
|
@@ -37080,7 +37081,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
37080
37081
|
lg: "w-3.5 h-3.5",
|
|
37081
37082
|
xl: "w-4 h-4"
|
|
37082
37083
|
};
|
|
37083
|
-
|
|
37084
|
+
re(() => {
|
|
37084
37085
|
if (n)
|
|
37085
37086
|
if (P.current[n])
|
|
37086
37087
|
x(!0);
|
|
@@ -37095,10 +37096,10 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
37095
37096
|
}
|
|
37096
37097
|
else
|
|
37097
37098
|
x(!1);
|
|
37098
|
-
}, [n, m]),
|
|
37099
|
+
}, [n, m]), re(() => () => {
|
|
37099
37100
|
W.current && clearTimeout(W.current);
|
|
37100
37101
|
}, []);
|
|
37101
|
-
const B = n ? P.current[n] : void 0, W =
|
|
37102
|
+
const B = n ? P.current[n] : void 0, W = ae(null), Q = ae(null), te = () => {
|
|
37102
37103
|
v?.(), t && e && s && (W.current && clearTimeout(W.current), W.current = setTimeout(() => {
|
|
37103
37104
|
_(!0);
|
|
37104
37105
|
}, 300));
|
|
@@ -37148,14 +37149,14 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
37148
37149
|
)
|
|
37149
37150
|
] }),
|
|
37150
37151
|
/* @__PURE__ */ T("div", { className: "flex flex-row gap-1 items-center justify-center", children: [
|
|
37151
|
-
/* @__PURE__ */ T(
|
|
37152
|
+
/* @__PURE__ */ T(oe, { size: "medium", variant: "semibold", className: "w-full text-center", children: [
|
|
37152
37153
|
t || "",
|
|
37153
37154
|
" ",
|
|
37154
37155
|
e || ""
|
|
37155
37156
|
] }),
|
|
37156
37157
|
p?.region && /* @__PURE__ */ A("span", { children: mR(p?.region) })
|
|
37157
37158
|
] }),
|
|
37158
|
-
/* @__PURE__ */ A(
|
|
37159
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "body", children: r || p?.email || "" })
|
|
37159
37160
|
] }),
|
|
37160
37161
|
u && (h ? /* @__PURE__ */ A("div", { className: "p-5", children: /* @__PURE__ */ A(Mk, {}) }) : u && (p?.teams || p?.clearanceLevel || p?.group) ? /* @__PURE__ */ T("div", { className: "flex flex-col gap-4 bg-neutral-50 border-t border-neutral-200 dark:bg-black-700 dark:border-none p-5 rounded-b-lg", children: [
|
|
37161
37162
|
/* @__PURE__ */ A(bG, { isActive: d, lastViewedOn: c }),
|
|
@@ -37163,7 +37164,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
37163
37164
|
kA,
|
|
37164
37165
|
{
|
|
37165
37166
|
label: "Username",
|
|
37166
|
-
content: /* @__PURE__ */ A("div", { className: "flex gap-2", children: /* @__PURE__ */ A(
|
|
37167
|
+
content: /* @__PURE__ */ A("div", { className: "flex gap-2", children: /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "body", children: p.username }) })
|
|
37167
37168
|
}
|
|
37168
37169
|
),
|
|
37169
37170
|
p?.teams && p?.teams?.length > 0 && /* @__PURE__ */ A(
|
|
@@ -37238,7 +37239,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
37238
37239
|
)
|
|
37239
37240
|
}
|
|
37240
37241
|
)
|
|
37241
|
-
] }) : /* @__PURE__ */ A("div", { className: "flex items-center justify-center bg-neutral-50 dark:bg-black-700 border-t border-neutral-200 dark:border-black-700 p-5 rounded-b-lg", children: /* @__PURE__ */ T(
|
|
37242
|
+
] }) : /* @__PURE__ */ A("div", { className: "flex items-center justify-center bg-neutral-50 dark:bg-black-700 border-t border-neutral-200 dark:border-black-700 p-5 rounded-b-lg", children: /* @__PURE__ */ T(oe, { className: "flex items-center justify-center gap-1", size: "extra-small", variant: "medium", appearance: "body", children: [
|
|
37242
37243
|
/* @__PURE__ */ A(
|
|
37243
37244
|
ND,
|
|
37244
37245
|
{
|
|
@@ -37253,7 +37254,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
|
|
|
37253
37254
|
] }) }))
|
|
37254
37255
|
]
|
|
37255
37256
|
}
|
|
37256
|
-
), K =
|
|
37257
|
+
), K = ae(null);
|
|
37257
37258
|
return /* @__PURE__ */ T(
|
|
37258
37259
|
"div",
|
|
37259
37260
|
{
|
|
@@ -37511,11 +37512,11 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
|
|
|
37511
37512
|
}
|
|
37512
37513
|
O(null), N([]), t(""), g?.();
|
|
37513
37514
|
};
|
|
37514
|
-
|
|
37515
|
+
re(() => {
|
|
37515
37516
|
s?.name && O(s), w && O?.(w);
|
|
37516
|
-
}, [s, w]),
|
|
37517
|
+
}, [s, w]), re(() => {
|
|
37517
37518
|
L(a ? "#EF4444" : "#d9d9d9");
|
|
37518
|
-
}, [a]),
|
|
37519
|
+
}, [a]), re(() => {
|
|
37519
37520
|
C.length && B();
|
|
37520
37521
|
}, [C]);
|
|
37521
37522
|
const te = (q) => q.includes("?") ? new URLSearchParams(q.split("?")[1]).get("file_name") : null, j = (q) => {
|
|
@@ -37536,8 +37537,8 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
|
|
|
37536
37537
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-4", children: [
|
|
37537
37538
|
k?.type === "application/pdf" ? /* @__PURE__ */ A("div", { className: "p-3 bg-primary-50 rounded-lg", children: /* @__PURE__ */ A(wG, { size: 20, fill: "var(--color-primary-500)" }) }) : /* @__PURE__ */ A("div", { className: "p-3 bg-primary-50 rounded-lg", children: /* @__PURE__ */ A(kG, { size: 20, fill: "var(--color-primary-500)" }) }),
|
|
37538
37539
|
/* @__PURE__ */ T("div", { className: "text-left", children: [
|
|
37539
|
-
/* @__PURE__ */ A(
|
|
37540
|
-
p ? /* @__PURE__ */ A(
|
|
37540
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "font-inter text-md text-neutral-900 font-medium text-base", children: j(k?.name || s?.name) }),
|
|
37541
|
+
p ? /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "subtitle", children: M("Uploading...") }) : k?.size > 0 ? /* @__PURE__ */ T(oe, { size: "small", variant: "medium", appearance: "subtitle", children: [
|
|
37541
37542
|
(k.size / 1e3).toFixed(2),
|
|
37542
37543
|
" ",
|
|
37543
37544
|
"KB"
|
|
@@ -37561,15 +37562,15 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
|
|
|
37561
37562
|
/* @__PURE__ */ A("div", { className: "mb-4 flex justify-center", children: /* @__PURE__ */ A(EG, { size: 24, fill: "#98A2B3" }) }),
|
|
37562
37563
|
/* @__PURE__ */ T("div", { children: [
|
|
37563
37564
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-center", children: [
|
|
37564
|
-
/* @__PURE__ */ A(
|
|
37565
|
-
/* @__PURE__ */ A(
|
|
37565
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-primary-600 dark:text-primary-300", appearance: "custom", children: x || M("Click to upload") }),
|
|
37566
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "ml-1", appearance: "subtitle", children: E || M("or drag and drop") })
|
|
37566
37567
|
] }),
|
|
37567
|
-
n ? /* @__PURE__ */ A(
|
|
37568
|
+
n ? /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-neutral-400", children: n }) : null
|
|
37568
37569
|
] })
|
|
37569
37570
|
] }) })
|
|
37570
37571
|
}
|
|
37571
37572
|
) }),
|
|
37572
|
-
a && /* @__PURE__ */ A(
|
|
37573
|
+
a && /* @__PURE__ */ A(oe, { className: "text-error-500 mt-1", appearance: "custom", size: "extra-small", variant: "medium", children: a })
|
|
37573
37574
|
] });
|
|
37574
37575
|
}, yce = ({
|
|
37575
37576
|
animationData: t,
|
|
@@ -37580,8 +37581,8 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
|
|
|
37580
37581
|
className: a,
|
|
37581
37582
|
"data-testid": o
|
|
37582
37583
|
}) => {
|
|
37583
|
-
const s =
|
|
37584
|
-
return
|
|
37584
|
+
const s = ae(null);
|
|
37585
|
+
return re(() => {
|
|
37585
37586
|
if (s.current) {
|
|
37586
37587
|
const l = pD.loadAnimation({
|
|
37587
37588
|
container: s.current,
|
|
@@ -37909,7 +37910,7 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
|
|
|
37909
37910
|
children: [
|
|
37910
37911
|
n || /* @__PURE__ */ A(HG, {}),
|
|
37911
37912
|
/* @__PURE__ */ A(
|
|
37912
|
-
|
|
37913
|
+
oe,
|
|
37913
37914
|
{
|
|
37914
37915
|
variant: "semibold",
|
|
37915
37916
|
size: "display-small",
|
|
@@ -37919,7 +37920,7 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
|
|
|
37919
37920
|
}
|
|
37920
37921
|
),
|
|
37921
37922
|
/* @__PURE__ */ A(
|
|
37922
|
-
|
|
37923
|
+
oe,
|
|
37923
37924
|
{
|
|
37924
37925
|
variant: "regular",
|
|
37925
37926
|
size: "small",
|
|
@@ -39921,7 +39922,7 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
|
|
|
39921
39922
|
"data-testid": r,
|
|
39922
39923
|
children: [
|
|
39923
39924
|
i?.icon,
|
|
39924
|
-
/* @__PURE__ */ A(
|
|
39925
|
+
/* @__PURE__ */ A(oe, { variant: "regular", size: "small", className: "text-center mt-2 dark:text-black-200", appearance: "custom", children: i?.additionaltext })
|
|
39925
39926
|
]
|
|
39926
39927
|
}
|
|
39927
39928
|
);
|
|
@@ -39970,8 +39971,8 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
|
|
|
39970
39971
|
"data-testid": o,
|
|
39971
39972
|
children: [
|
|
39972
39973
|
/* @__PURE__ */ A("div", { className: "flex items-center gap-2 w-[70px] h-[70px] bg-neutral-50 dark:bg-black-800 rounded-full justify-center p-1", children: /* @__PURE__ */ A("div", { className: "flex items-center gap-2 w-14 h-14 bg-neutral-200 dark:bg-black-700 rounded-full justify-center p-1", children: i || /* @__PURE__ */ A($C, {}) }) }),
|
|
39973
|
-
/* @__PURE__ */ A(
|
|
39974
|
-
/* @__PURE__ */ A(
|
|
39974
|
+
/* @__PURE__ */ A(oe, { size: "large", variant: "semibold", className: "pt-2 text-center", children: r }),
|
|
39975
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "regular", className: "pt-0.5 text-center", appearance: "subtitle", children: n })
|
|
39975
39976
|
]
|
|
39976
39977
|
}
|
|
39977
39978
|
);
|
|
@@ -40143,8 +40144,8 @@ const eY = /* @__PURE__ */ Fb(JG), tY = (t) => {
|
|
|
40143
40144
|
setAnimatedDisplayValue: l = null,
|
|
40144
40145
|
className: u = ""
|
|
40145
40146
|
}) => {
|
|
40146
|
-
const [c, d] = X(0), f =
|
|
40147
|
-
|
|
40147
|
+
const [c, d] = X(0), f = ae();
|
|
40148
|
+
re(() => {
|
|
40148
40149
|
d(0), l?.(0);
|
|
40149
40150
|
const h = performance.now(), m = 0, v = t, g = 0, _ = t / e * 100, y = (x) => {
|
|
40150
40151
|
const E = x - h, S = Math.min(E / o, 1), w = Math.round(m + (v - m) * S);
|
|
@@ -40184,14 +40185,14 @@ const eY = /* @__PURE__ */ Fb(JG), tY = (t) => {
|
|
|
40184
40185
|
children: o,
|
|
40185
40186
|
setAnimatedDisplayValue: s = null
|
|
40186
40187
|
}) => {
|
|
40187
|
-
const l = (r - n) / 2, u = 2 * Math.PI * l, [c, d] = X(0), f =
|
|
40188
|
-
|
|
40188
|
+
const l = (r - n) / 2, u = 2 * Math.PI * l, [c, d] = X(0), f = ae();
|
|
40189
|
+
re(() => {
|
|
40189
40190
|
d(0), s?.(0);
|
|
40190
40191
|
const m = setTimeout(() => {
|
|
40191
40192
|
d(t);
|
|
40192
40193
|
}, 100);
|
|
40193
40194
|
return () => clearTimeout(m);
|
|
40194
|
-
}, [t]),
|
|
40195
|
+
}, [t]), re(() => {
|
|
40195
40196
|
const m = performance.now(), v = 0, g = t, _ = (y) => {
|
|
40196
40197
|
const x = y - m, E = Math.min(x / a, 1), S = Math.round(v + (g - v) * E);
|
|
40197
40198
|
s?.(S), E < 1 && (f.current = requestAnimationFrame(_));
|
|
@@ -40744,12 +40745,12 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
40744
40745
|
suggestions: f = [],
|
|
40745
40746
|
showRawValue: p = !1
|
|
40746
40747
|
}) => {
|
|
40747
|
-
const h =
|
|
40748
|
-
|
|
40748
|
+
const h = ae(null), m = ae(null), v = ae(null), g = ae([]), _ = ae(null), [y, x] = X(!1), [E, S] = X(""), [w, k] = X(0), [O, C] = X(p), N = ae(y), P = ae([]), L = ae(w), R = ae(t);
|
|
40749
|
+
re(() => {
|
|
40749
40750
|
N.current = y;
|
|
40750
|
-
}, [y]),
|
|
40751
|
+
}, [y]), re(() => {
|
|
40751
40752
|
L.current = w;
|
|
40752
|
-
}, [w]),
|
|
40753
|
+
}, [w]), re(() => {
|
|
40753
40754
|
R.current = t;
|
|
40754
40755
|
}, [t]), Bb({
|
|
40755
40756
|
ref: v,
|
|
@@ -40762,16 +40763,16 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
40762
40763
|
const j = E.toLowerCase();
|
|
40763
40764
|
return f.filter((q) => q.toLowerCase().includes(j));
|
|
40764
40765
|
}, [f, E]);
|
|
40765
|
-
|
|
40766
|
+
re(() => {
|
|
40766
40767
|
P.current = D;
|
|
40767
|
-
}, [D]),
|
|
40768
|
+
}, [D]), re(() => {
|
|
40768
40769
|
k(0);
|
|
40769
|
-
}, [D]),
|
|
40770
|
+
}, [D]), re(() => {
|
|
40770
40771
|
y && g.current[w] && g.current[w]?.scrollIntoView({
|
|
40771
40772
|
block: "nearest",
|
|
40772
40773
|
behavior: "smooth"
|
|
40773
40774
|
});
|
|
40774
|
-
}, [w, y]),
|
|
40775
|
+
}, [w, y]), re(() => {
|
|
40775
40776
|
if (y && m.current && v.current)
|
|
40776
40777
|
return _.current = tT(m.current, v.current, {
|
|
40777
40778
|
placement: "bottom-start",
|
|
@@ -40832,7 +40833,7 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
40832
40833
|
const Y = q.slice(K + 1).search(/\s/);
|
|
40833
40834
|
let Z;
|
|
40834
40835
|
Y === -1 ? Z = q.length : Z = K + 1 + Y;
|
|
40835
|
-
const
|
|
40836
|
+
const ne = q.slice(0, K), J = q.slice(Z), ce = `${ne}{{${j}}}${J}`;
|
|
40836
40837
|
e(ce), x(!1), S(""), setTimeout(() => {
|
|
40837
40838
|
h.current?.focus();
|
|
40838
40839
|
}, 0);
|
|
@@ -40882,7 +40883,7 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
40882
40883
|
{
|
|
40883
40884
|
className: "absolute top-0 left-0 w-full h-full text-gray-400 flex items-center cursor-text px-3 z-50",
|
|
40884
40885
|
onClick: () => h.current?.focus(),
|
|
40885
|
-
children: /* @__PURE__ */ A(
|
|
40886
|
+
children: /* @__PURE__ */ A(oe, { size: "extra-small", variant: "medium", children: l })
|
|
40886
40887
|
}
|
|
40887
40888
|
),
|
|
40888
40889
|
/* @__PURE__ */ T("div", { className: "relative", children: [
|
|
@@ -40943,7 +40944,7 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
40943
40944
|
document.body
|
|
40944
40945
|
)
|
|
40945
40946
|
] }),
|
|
40946
|
-
c && /* @__PURE__ */ A("div", { className: "pt-1", children: /* @__PURE__ */ A(
|
|
40947
|
+
c && /* @__PURE__ */ A("div", { className: "pt-1", children: /* @__PURE__ */ A(oe, { className: "text-error-500", size: "extra-small", variant: "medium", appearance: "custom", children: c }) })
|
|
40947
40948
|
] });
|
|
40948
40949
|
}, Uce = ke.memo(MY), HY = ({ children: t, id: e, enabled: r = !0 }) => {
|
|
40949
40950
|
const { setNodeRef: n } = DS({ id: e });
|
|
@@ -41189,13 +41190,13 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
41189
41190
|
lockOrder: l.lockOrder
|
|
41190
41191
|
}), n(l.sortOrder), r(!0), s(!1), c && i(c, l.filterType.value);
|
|
41191
41192
|
};
|
|
41192
|
-
|
|
41193
|
+
re(() => {
|
|
41193
41194
|
t && JSON.stringify(t) !== JSON.stringify(l) && u(t);
|
|
41194
41195
|
}, [t]);
|
|
41195
41196
|
const m = /* @__PURE__ */ T("div", { children: [
|
|
41196
41197
|
/* @__PURE__ */ T("div", { className: "p-5 space-y-5", children: [
|
|
41197
41198
|
/* @__PURE__ */ T("div", { className: "space-y-2", children: [
|
|
41198
|
-
/* @__PURE__ */ T(
|
|
41199
|
+
/* @__PURE__ */ T(oe, { size: "extra-small", variant: "regular", className: "!text-neutral-600 dark:!text-neutral-400 uppercase", appearance: "title", children: [
|
|
41199
41200
|
/* @__PURE__ */ A(JC, { sx: { height: "14px", width: "14px" } }),
|
|
41200
41201
|
" Filter Tabs"
|
|
41201
41202
|
] }),
|
|
@@ -41226,7 +41227,7 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
41226
41227
|
] })
|
|
41227
41228
|
] }),
|
|
41228
41229
|
/* @__PURE__ */ T("div", { className: "space-y-2", children: [
|
|
41229
|
-
/* @__PURE__ */ T(
|
|
41230
|
+
/* @__PURE__ */ T(oe, { size: "extra-small", variant: "regular", className: "!text-neutral-600 dark:!text-neutral-400 uppercase", appearance: "title", children: [
|
|
41230
41231
|
/* @__PURE__ */ A(eN, { sx: { height: "14px", width: "14px" } }),
|
|
41231
41232
|
" Sort"
|
|
41232
41233
|
] }),
|
|
@@ -41250,7 +41251,7 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
41250
41251
|
}) })
|
|
41251
41252
|
] }),
|
|
41252
41253
|
/* @__PURE__ */ T("div", { className: "space-y-2", children: [
|
|
41253
|
-
/* @__PURE__ */ T(
|
|
41254
|
+
/* @__PURE__ */ T(oe, { size: "extra-small", variant: "regular", className: "!text-neutral-600 dark:!text-neutral-400 uppercase", appearance: "title", children: [
|
|
41254
41255
|
/* @__PURE__ */ A(Tb, { sx: { height: "14px", width: "14px" } }),
|
|
41255
41256
|
" Display Options"
|
|
41256
41257
|
] }),
|
|
@@ -41258,8 +41259,8 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
41258
41259
|
/* @__PURE__ */ T("div", { className: "flex items-center gap-2", children: [
|
|
41259
41260
|
/* @__PURE__ */ A("div", { className: "flex items-center justify-center h-8 w-8 bg-white dark:bg-neutral-700 rounded-lg", children: /* @__PURE__ */ A(tN, { sx: { height: "16px", width: "16px" }, className: "text-neutral-800 dark:text-white" }) }),
|
|
41260
41261
|
/* @__PURE__ */ T("div", { className: "flex flex-col gap-0", children: [
|
|
41261
|
-
/* @__PURE__ */ A(
|
|
41262
|
-
/* @__PURE__ */ A(
|
|
41262
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "title", children: "Show Counts" }),
|
|
41263
|
+
/* @__PURE__ */ A(oe, { size: "extra-small", variant: "regular", appearance: "subtitle", children: "Display item counts on tabs" })
|
|
41263
41264
|
] })
|
|
41264
41265
|
] }),
|
|
41265
41266
|
/* @__PURE__ */ A("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ A(
|
|
@@ -41280,8 +41281,8 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
41280
41281
|
/* @__PURE__ */ T("div", { className: "flex items-center gap-2", children: [
|
|
41281
41282
|
/* @__PURE__ */ A("div", { className: "flex items-center justify-center h-8 w-8 bg-white dark:bg-neutral-700 rounded-lg", children: /* @__PURE__ */ A(F3, { sx: { height: "16px", width: "16px" }, className: "text-neutral-800 dark:text-white" }) }),
|
|
41282
41283
|
/* @__PURE__ */ T("div", { className: "flex flex-col gap-0", children: [
|
|
41283
|
-
/* @__PURE__ */ A(
|
|
41284
|
-
/* @__PURE__ */ A(
|
|
41284
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "title", children: "Lock Order" }),
|
|
41285
|
+
/* @__PURE__ */ A(oe, { size: "extra-small", variant: "regular", appearance: "subtitle", children: "Prevent tab reordering" })
|
|
41285
41286
|
] })
|
|
41286
41287
|
] }),
|
|
41287
41288
|
/* @__PURE__ */ A("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ A(
|
|
@@ -41355,8 +41356,8 @@ const xY = ke.memo(lT), SY = () => {
|
|
|
41355
41356
|
children: /* @__PURE__ */ A("circle", { cx: "2", cy: "2", r: "2", fill: "currentColor" })
|
|
41356
41357
|
}
|
|
41357
41358
|
), XY = ({ ...t }) => /* @__PURE__ */ A("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t, children: /* @__PURE__ */ A("g", { mask: "url(#mask0_6454_18843)", children: /* @__PURE__ */ A("path", { d: "M5.8335 17.5C5.37516 17.5 4.9828 17.3368 4.65641 17.0104C4.33002 16.684 4.16683 16.2917 4.16683 15.8333V5C3.93072 5 3.7328 4.92014 3.57308 4.76042C3.41336 4.60069 3.3335 4.40278 3.3335 4.16667C3.3335 3.93056 3.41336 3.73264 3.57308 3.57292C3.7328 3.41319 3.93072 3.33333 4.16683 3.33333H7.50016C7.50016 3.09722 7.58002 2.89931 7.73975 2.73958C7.89947 2.57986 8.09738 2.5 8.3335 2.5H11.6668C11.9029 2.5 12.1009 2.57986 12.2606 2.73958C12.4203 2.89931 12.5002 3.09722 12.5002 3.33333H15.8335C16.0696 3.33333 16.2675 3.41319 16.4272 3.57292C16.587 3.73264 16.6668 3.93056 16.6668 4.16667C16.6668 4.40278 16.587 4.60069 16.4272 4.76042C16.2675 4.92014 16.0696 5 15.8335 5V15.8333C15.8335 16.2917 15.6703 16.684 15.3439 17.0104C15.0175 17.3368 14.6252 17.5 14.1668 17.5H5.8335ZM5.8335 5V15.8333H14.1668V5H5.8335ZM7.50016 13.3333C7.50016 13.5694 7.58002 13.7674 7.73975 13.9271C7.89947 14.0868 8.09738 14.1667 8.3335 14.1667C8.56961 14.1667 8.76752 14.0868 8.92725 13.9271C9.08697 13.7674 9.16683 13.5694 9.16683 13.3333V7.5C9.16683 7.26389 9.08697 7.06597 8.92725 6.90625C8.76752 6.74653 8.56961 6.66667 8.3335 6.66667C8.09738 6.66667 7.89947 6.74653 7.73975 6.90625C7.58002 7.06597 7.50016 7.26389 7.50016 7.5V13.3333ZM10.8335 13.3333C10.8335 13.5694 10.9134 13.7674 11.0731 13.9271C11.2328 14.0868 11.4307 14.1667 11.6668 14.1667C11.9029 14.1667 12.1009 14.0868 12.2606 13.9271C12.4203 13.7674 12.5002 13.5694 12.5002 13.3333V7.5C12.5002 7.26389 12.4203 7.06597 12.2606 6.90625C12.1009 6.74653 11.9029 6.66667 11.6668 6.66667C11.4307 6.66667 11.2328 6.74653 11.0731 6.90625C10.9134 7.06597 10.8335 7.26389 10.8335 7.5V13.3333Z" }) }) }), kc = Oo(void 0), zce = () => fr(kc), jY = () => fr(kc)?.tab, yn = () => fr(kc)?.table, QY = () => {
|
|
41358
|
-
const t =
|
|
41359
|
-
return
|
|
41359
|
+
const t = ae(null), e = ae(/* @__PURE__ */ new Map());
|
|
41360
|
+
return re(() => {
|
|
41360
41361
|
t.current || (t.current = document.createElement("canvas"));
|
|
41361
41362
|
}, []), { measureText: (i, a = {}) => {
|
|
41362
41363
|
if (!i) return 0;
|
|
@@ -41445,12 +41446,12 @@ const Yd = (t) => {
|
|
|
41445
41446
|
linkConfig: D,
|
|
41446
41447
|
showTabOptions: F = !0
|
|
41447
41448
|
}) => {
|
|
41448
|
-
const I = jY(), M = R ? I?.getTabSettings(R) : void 0, B = O ?? M?.tab_items, W = C ?? M?.tab_options, [Q, te] = X(""), [j, q] = X(!1), [K, ie] = X(0), [Y, Z] = X([]), [
|
|
41449
|
+
const I = jY(), M = R ? I?.getTabSettings(R) : void 0, B = O ?? M?.tab_items, W = C ?? M?.tab_options, [Q, te] = X(""), [j, q] = X(!1), [K, ie] = X(0), [Y, Z] = X([]), [ne, J] = X([]), [ce, ze] = X(null), [Ee, _e] = X(null), [me, ge] = X(!1), [we, Se] = X(
|
|
41449
41450
|
W ?? lb
|
|
41450
|
-
), [pe, G] = X(""), [Ae, Ce] = X("contains"), { showCounts: Xe, lockOrder: Ze, sortOrder: tt } = we, { t: We } = Kt(), Ne =
|
|
41451
|
+
), [pe, G] = X(""), [Ae, Ce] = X("contains"), { showCounts: Xe, lockOrder: Ze, sortOrder: tt } = we, { t: We } = Kt(), Ne = ae(null), Fe = ae(null), ve = ae(K), { measureText: Me } = QY(), Ue = Pe(() => GY(), []), $e = Ku(
|
|
41451
41452
|
Gi(Nb, { activationConstraint: { distance: 5 } }),
|
|
41452
41453
|
Gi(Db, { activationConstraint: { delay: 300, tolerance: 5 } })
|
|
41453
|
-
), dt = Pe(() =>
|
|
41454
|
+
), dt = Pe(() => ne.filter(({ is_hidden: le }) => !le), [ne]), at = Pe(() => ne.filter(({ is_hidden: le }) => le), [ne]), nt = Pe(
|
|
41454
41455
|
() => dt.filter(({ name: le }) => {
|
|
41455
41456
|
if (!pe) return !0;
|
|
41456
41457
|
const He = (le ?? "").toLowerCase(), je = pe.toLowerCase();
|
|
@@ -41734,7 +41735,7 @@ const Yd = (t) => {
|
|
|
41734
41735
|
)
|
|
41735
41736
|
}
|
|
41736
41737
|
})[le][t];
|
|
41737
|
-
|
|
41738
|
+
re(() => {
|
|
41738
41739
|
if (!Ne.current || t === "switch") return;
|
|
41739
41740
|
const le = new ResizeObserver((He) => {
|
|
41740
41741
|
const je = He[0].contentRect.width;
|
|
@@ -41743,7 +41744,7 @@ const Yd = (t) => {
|
|
|
41743
41744
|
return le.observe(Ne.current), kr(Ne.current.clientWidth), () => le.disconnect();
|
|
41744
41745
|
}, [kr, t]);
|
|
41745
41746
|
const Uc = JSON.stringify(e), zc = JSON.stringify(B?.map(({ name: le }) => le));
|
|
41746
|
-
return
|
|
41747
|
+
return re(() => {
|
|
41747
41748
|
if (B?.length) {
|
|
41748
41749
|
let le = [...B];
|
|
41749
41750
|
e.forEach((He) => {
|
|
@@ -41755,13 +41756,13 @@ const Yd = (t) => {
|
|
|
41755
41756
|
Z(
|
|
41756
41757
|
e.map((le) => ({ name: le, is_default: !1, is_hidden: !1, is_pinned: !1 })).filter((le, He, je) => He === je.findIndex((Mt) => Mt.name === le.name))
|
|
41757
41758
|
);
|
|
41758
|
-
}, [Uc, zc]),
|
|
41759
|
+
}, [Uc, zc]), re(() => {
|
|
41759
41760
|
W && Se(W);
|
|
41760
|
-
}, [W]),
|
|
41761
|
+
}, [W]), re(() => {
|
|
41761
41762
|
if (!Y.length) return;
|
|
41762
41763
|
const le = [...Y];
|
|
41763
41764
|
tt === "asc" ? le.sort((He, je) => He.name.localeCompare(je.name)) : tt === "desc" && le.sort((He, je) => je.name.localeCompare(He.name)), J(le);
|
|
41764
|
-
}, [Y, tt]),
|
|
41765
|
+
}, [Y, tt]), re(() => {
|
|
41765
41766
|
Yd(j);
|
|
41766
41767
|
}, [j]), t === "switch" ? /* @__PURE__ */ A("div", { className: U("inline", s), children: /* @__PURE__ */ A(
|
|
41767
41768
|
"ul",
|
|
@@ -50293,7 +50294,7 @@ function $J(t, e) {
|
|
|
50293
50294
|
defaultCodeValue: Y
|
|
50294
50295
|
});
|
|
50295
50296
|
Z.language === null && (Z.value = Y);
|
|
50296
|
-
var
|
|
50297
|
+
var ne = (i = (a = W.match(/\n/g)) === null || a === void 0 ? void 0 : a.length) !== null && i !== void 0 ? i : 0, J = E + ne, ce = YJ(Z, O, L, g, y, E, J, k, N);
|
|
50297
50298
|
return /* @__PURE__ */ ke.createElement(F, ie, /* @__PURE__ */ ke.createElement(M, p, !y && j, R({
|
|
50298
50299
|
rows: ce,
|
|
50299
50300
|
stylesheet: u,
|
|
@@ -51293,8 +51294,8 @@ function vre() {
|
|
|
51293
51294
|
return (K.position.indent || K.position.start) && (K.indent = K.position.indent || [], K.position = K.position.start), W(j, K);
|
|
51294
51295
|
}
|
|
51295
51296
|
function W(j, q) {
|
|
51296
|
-
var K = q.additional, ie = q.nonTerminated, Y = q.text, Z = q.reference,
|
|
51297
|
-
for (typeof K == "string" && (K = K.charCodeAt(0)), vt = Ot(), ve =
|
|
51297
|
+
var K = q.additional, ie = q.nonTerminated, Y = q.text, Z = q.reference, ne = q.warning, J = q.textContext, ce = q.referenceContext, ze = q.warningContext, Ee = q.position, _e = q.indent || [], me = j.length, ge = 0, we = -1, Se = Ee.column || 1, pe = Ee.line || 1, G = "", Ae = [], Ce, Xe, Ze, tt, We, Ne, Fe, ve, Me, Ue, $e, dt, at, nt, Ye, vt, qe, Ke, Je;
|
|
51298
|
+
for (typeof K == "string" && (K = K.charCodeAt(0)), vt = Ot(), ve = ne ? ft : l, ge--, me++; ++ge < me; )
|
|
51298
51299
|
if (We === d && (Se = _e[we] || 1), We = j.charCodeAt(ge), We === h) {
|
|
51299
51300
|
if (Fe = j.charCodeAt(ge + 1), Fe === c || Fe === d || Fe === f || Fe === p || Fe === h || Fe === v || Fe !== Fe || K && Fe === K) {
|
|
51300
51301
|
G += s(We), Se++;
|
|
@@ -51320,7 +51321,7 @@ function vre() {
|
|
|
51320
51321
|
}
|
|
51321
51322
|
function ft(kr, vr) {
|
|
51322
51323
|
var Tr = Ot();
|
|
51323
|
-
Tr.column += vr, Tr.offset += vr,
|
|
51324
|
+
Tr.column += vr, Tr.offset += vr, ne.call(ze, M[kr], Tr, kr);
|
|
51324
51325
|
}
|
|
51325
51326
|
function ui() {
|
|
51326
51327
|
G && (Ae.push(G), Y && Y.call(J, G, { start: vt, end: Ot() }), G = "");
|
|
@@ -51983,12 +51984,12 @@ function yre() {
|
|
|
51983
51984
|
Q--, W = _.slice(B, q), te.index -= B;
|
|
51984
51985
|
} else if (te = u(I, 0, W, L), !te)
|
|
51985
51986
|
continue;
|
|
51986
|
-
var ie = te.index, Y = te[0], Z = W.slice(0, ie),
|
|
51987
|
+
var ie = te.index, Y = te[0], Z = W.slice(0, ie), ne = W.slice(ie + Y.length), J = B + W.length;
|
|
51987
51988
|
w && J > w.reach && (w.reach = J);
|
|
51988
51989
|
var ce = M.prev;
|
|
51989
51990
|
Z && (ce = f(y, ce, Z), B += Z.length), p(y, ce, Q);
|
|
51990
51991
|
var ze = new l(k, P ? s.tokenize(Y, P) : Y, D, Y);
|
|
51991
|
-
if (M = f(y, ce, ze),
|
|
51992
|
+
if (M = f(y, ce, ze), ne && f(y, M, ne), Q > 1) {
|
|
51992
51993
|
var Ee = {
|
|
51993
51994
|
cause: k + "," + C,
|
|
51994
51995
|
reach: J
|
|
@@ -72078,8 +72079,8 @@ const fse = {
|
|
|
72078
72079
|
collapseLabel: c = "Show less",
|
|
72079
72080
|
animationDurationMs: d = 300
|
|
72080
72081
|
}, f) => {
|
|
72081
|
-
const p =
|
|
72082
|
-
|
|
72082
|
+
const p = ae(null), [h, m] = X(!1), [v, g] = X(0), [_, y] = X(!1);
|
|
72083
|
+
re(() => {
|
|
72083
72084
|
if (!s || !p.current)
|
|
72084
72085
|
return;
|
|
72085
72086
|
const S = p.current, w = () => {
|
|
@@ -72316,18 +72317,18 @@ const pse = ["edit", "preview"], hse = ({ className: t, size: e = 16 }) => /* @_
|
|
|
72316
72317
|
showMinimalPreview: N = !1,
|
|
72317
72318
|
acceptAdvanceContent: P = !0
|
|
72318
72319
|
}, L) => {
|
|
72319
|
-
const [R, D] = X("edit"), [F, I] = X(!1), M =
|
|
72320
|
+
const [R, D] = X("edit"), [F, I] = X(!1), M = ae(null), B = t || `rich-md-input-${Math.random().toString(36).slice(2, 11)}`, W = e.length, Q = (Z, ne = "", J = "") => {
|
|
72320
72321
|
const ce = L?.current || M.current;
|
|
72321
72322
|
if (!ce) return;
|
|
72322
|
-
const ze = ce.selectionStart, Ee = ce.selectionEnd, _e = e.substring(ze, Ee), me = _e || J, ge = e.substring(0, ze) + Z + me +
|
|
72323
|
+
const ze = ce.selectionStart, Ee = ce.selectionEnd, _e = e.substring(ze, Ee), me = _e || J, ge = e.substring(0, ze) + Z + me + ne + e.substring(Ee);
|
|
72323
72324
|
n(ge), setTimeout(() => {
|
|
72324
72325
|
const we = ze + Z.length + (_e ? _e.length : 0);
|
|
72325
72326
|
ce.focus(), ce.setSelectionRange(we, we + (_e ? 0 : J.length));
|
|
72326
72327
|
}, 0);
|
|
72327
72328
|
}, te = (Z) => {
|
|
72328
|
-
const
|
|
72329
|
-
if (!
|
|
72330
|
-
const J =
|
|
72329
|
+
const ne = L?.current || M.current;
|
|
72330
|
+
if (!ne) return;
|
|
72331
|
+
const J = ne.selectionStart, ce = ne.selectionEnd, ze = e.split(`
|
|
72331
72332
|
`);
|
|
72332
72333
|
let Ee = 0, _e = 0, me = 0;
|
|
72333
72334
|
for (let we = 0; we < ze.length; we++) {
|
|
@@ -72340,7 +72341,7 @@ const pse = ["edit", "preview"], hse = ({ className: t, size: e = 16 }) => /* @_
|
|
|
72340
72341
|
const ge = ze.map((we, Se) => Se >= _e && Se <= me ? we.trim() === "" ? we : Z === "- " && we.trim().startsWith("- ") ? we.replace(/^\s*-\s+/, "") : Z.match(/^\d+\.\s/) && we.trim().match(/^\d+\.\s/) ? we.replace(/^\s*\d+\.\s+/, "") : Z + we.trim() : we);
|
|
72341
72342
|
n(ge.join(`
|
|
72342
72343
|
`)), setTimeout(() => {
|
|
72343
|
-
|
|
72344
|
+
ne.focus();
|
|
72344
72345
|
}, 0);
|
|
72345
72346
|
}, j = (Z) => {
|
|
72346
72347
|
if (O?.(Z), Z.metaKey || Z.ctrlKey)
|
|
@@ -72465,7 +72466,7 @@ const pse = ["edit", "preview"], hse = ({ className: t, size: e = 16 }) => /* @_
|
|
|
72465
72466
|
] })
|
|
72466
72467
|
] }) })
|
|
72467
72468
|
] }),
|
|
72468
|
-
children: /* @__PURE__ */ A(
|
|
72469
|
+
children: /* @__PURE__ */ A(oe, { className: "mb-2 text-xs font-medium text-primary-700 inline-flex items-center gap-1 cursor-pointer", children: "Formatting help ?" })
|
|
72469
72470
|
}
|
|
72470
72471
|
)
|
|
72471
72472
|
] }),
|
|
@@ -72600,8 +72601,8 @@ const pse = ["edit", "preview"], hse = ({ className: t, size: e = 16 }) => /* @_
|
|
|
72600
72601
|
value: e,
|
|
72601
72602
|
defaultValue: r,
|
|
72602
72603
|
onChange: (Z) => {
|
|
72603
|
-
const
|
|
72604
|
-
(!v ||
|
|
72604
|
+
const ne = Z.target.value;
|
|
72605
|
+
(!v || ne.length <= v) && n(ne);
|
|
72605
72606
|
},
|
|
72606
72607
|
onKeyDown: j,
|
|
72607
72608
|
placeholder: i,
|
|
@@ -72693,7 +72694,7 @@ const pse = ["edit", "preview"], hse = ({ className: t, size: e = 16 }) => /* @_
|
|
|
72693
72694
|
exit: { opacity: 0, y: -10 },
|
|
72694
72695
|
transition: { duration: 0.2 },
|
|
72695
72696
|
children: /* @__PURE__ */ A(
|
|
72696
|
-
|
|
72697
|
+
oe,
|
|
72697
72698
|
{
|
|
72698
72699
|
className: "mt-1 text-error-500",
|
|
72699
72700
|
appearance: "custom",
|
|
@@ -75670,7 +75671,7 @@ function jle(t, e, r) {
|
|
|
75670
75671
|
}));
|
|
75671
75672
|
}
|
|
75672
75673
|
function Ps(t, e) {
|
|
75673
|
-
return typeof window > "u" ?
|
|
75674
|
+
return typeof window > "u" ? re(t, e) : ul(t, e);
|
|
75674
75675
|
}
|
|
75675
75676
|
const sS = /* @__PURE__ */ Oo(null), Qle = /* @__PURE__ */ Oo(null), zO = /* @__PURE__ */ ct(({
|
|
75676
75677
|
className: t,
|
|
@@ -75681,7 +75682,7 @@ const sS = /* @__PURE__ */ Oo(null), Qle = /* @__PURE__ */ Oo(null), zO = /* @__
|
|
|
75681
75682
|
...a
|
|
75682
75683
|
} = {}, o) => {
|
|
75683
75684
|
let s = !1;
|
|
75684
|
-
const [l, u] = X("swiper"), [c, d] = X(null), [f, p] = X(!1), h =
|
|
75685
|
+
const [l, u] = X("swiper"), [c, d] = X(null), [f, p] = X(!1), h = ae(!1), m = ae(null), v = ae(null), g = ae(null), _ = ae(null), y = ae(null), x = ae(null), E = ae(null), S = ae(null), {
|
|
75685
75686
|
params: w,
|
|
75686
75687
|
passedParams: k,
|
|
75687
75688
|
rest: O,
|
|
@@ -75723,9 +75724,9 @@ const sS = /* @__PURE__ */ Oo(null), Qle = /* @__PURE__ */ Oo(null), zO = /* @__
|
|
|
75723
75724
|
v.current.off(M, C[M]);
|
|
75724
75725
|
});
|
|
75725
75726
|
};
|
|
75726
|
-
|
|
75727
|
+
re(() => () => {
|
|
75727
75728
|
v.current && v.current.off("_beforeBreakpoint", L);
|
|
75728
|
-
}),
|
|
75729
|
+
}), re(() => {
|
|
75729
75730
|
!h.current && v.current && (v.current.emitSlidesClasses(), h.current = !0);
|
|
75730
75731
|
}), Ps(() => {
|
|
75731
75732
|
if (o && (o.current = m.current), !!m.current)
|
|
@@ -75796,7 +75797,7 @@ const Gle = /* @__PURE__ */ ct(({
|
|
|
75796
75797
|
swiperSlideIndex: s,
|
|
75797
75798
|
...l
|
|
75798
75799
|
} = {}, u) => {
|
|
75799
|
-
const c =
|
|
75800
|
+
const c = ae(null), [d, f] = X("swiper-slide"), [p, h] = X(!1);
|
|
75800
75801
|
function m(y, x, E) {
|
|
75801
75802
|
x === c.current && f(E);
|
|
75802
75803
|
}
|
|
@@ -80602,7 +80603,7 @@ const Bce = ({
|
|
|
80602
80603
|
} else
|
|
80603
80604
|
o([]);
|
|
80604
80605
|
};
|
|
80605
|
-
return
|
|
80606
|
+
return re(() => {
|
|
80606
80607
|
f() ? a(!0) : a(!1);
|
|
80607
80608
|
}, [e, t, f, a]), {
|
|
80608
80609
|
checkboxConfig: e ? {
|
|
@@ -80891,16 +80892,16 @@ const rAe = ({
|
|
|
80891
80892
|
inputStyle: o,
|
|
80892
80893
|
disabled: s = !1
|
|
80893
80894
|
}) => {
|
|
80894
|
-
const { openCurrencyDropdown: l, closeCurrencyDropdown: u, currencyDropdownConfig: c, setCurrencyForCell: d, getCurrencyForCell: f } = fr(ai), h = f?.(t) || i || "USD", [m, v] = X(h), [g, _] = X(e), y =
|
|
80895
|
-
|
|
80895
|
+
const { openCurrencyDropdown: l, closeCurrencyDropdown: u, currencyDropdownConfig: c, setCurrencyForCell: d, getCurrencyForCell: f } = fr(ai), h = f?.(t) || i || "USD", [m, v] = X(h), [g, _] = X(e), y = ae(e), x = ae(null), E = ae(null), S = ae(!1), w = ae(r);
|
|
80896
|
+
re(() => {
|
|
80896
80897
|
y.current = g;
|
|
80897
|
-
}, [g]),
|
|
80898
|
+
}, [g]), re(() => {
|
|
80898
80899
|
w.current = r;
|
|
80899
80900
|
}, [r]);
|
|
80900
|
-
const k =
|
|
80901
|
-
|
|
80901
|
+
const k = ae(!1);
|
|
80902
|
+
re(() => {
|
|
80902
80903
|
k.current || (_(e), y.current = e, k.current = !0);
|
|
80903
|
-
}, [e]),
|
|
80904
|
+
}, [e]), re(() => {
|
|
80904
80905
|
h !== m && v(h);
|
|
80905
80906
|
}, [h, m]), ul(() => {
|
|
80906
80907
|
const D = x.current;
|
|
@@ -80950,7 +80951,7 @@ const rAe = ({
|
|
|
80950
80951
|
},
|
|
80951
80952
|
[c, l, u, m, L]
|
|
80952
80953
|
);
|
|
80953
|
-
return
|
|
80954
|
+
return re(() => {
|
|
80954
80955
|
c || setTimeout(() => {
|
|
80955
80956
|
S.current = !1;
|
|
80956
80957
|
}, 100);
|
|
@@ -81014,8 +81015,8 @@ const rAe = ({
|
|
|
81014
81015
|
onOpenMasterDataModal: c,
|
|
81015
81016
|
reference: d = {}
|
|
81016
81017
|
}) => {
|
|
81017
|
-
const [f, p] = X(null), [h, m] = X(""), [v, g] = X(null), _ =
|
|
81018
|
-
y.current = n,
|
|
81018
|
+
const [f, p] = X(null), [h, m] = X(""), [v, g] = X(null), _ = ae(null), y = ae(n);
|
|
81019
|
+
y.current = n, re(() => {
|
|
81019
81020
|
f !== null && y.current(f, v ?? void 0);
|
|
81020
81021
|
}, [f, v]);
|
|
81021
81022
|
const x = (C) => {
|
|
@@ -81097,7 +81098,7 @@ const pa = (t) => ({
|
|
|
81097
81098
|
f
|
|
81098
81099
|
]
|
|
81099
81100
|
), g = () => {
|
|
81100
|
-
const Y = t?.row?.original?.__rawData, Z = t?.column?.Header,
|
|
81101
|
+
const Y = t?.row?.original?.__rawData, Z = t?.column?.Header, ne = t?.column?.key, J = Z ? Y?.[Z]?.currency_code : void 0, ce = ne ? Y?.[ne]?.currency_code : void 0;
|
|
81101
81102
|
return J && J !== "" ? J : ce && ce !== "" ? ce : t?.column?.currencyCode || "USD";
|
|
81102
81103
|
}, _ = t.column.key || "", y = `${e}-${_}`, x = u?.(y), E = c?.(String(e), _), [S, w] = X({
|
|
81103
81104
|
value: E?.value !== void 0 ? E.value : t.value || "",
|
|
@@ -81106,17 +81107,17 @@ const pa = (t) => ({
|
|
|
81106
81107
|
if (r !== _) return null;
|
|
81107
81108
|
const Y = typeof S.value == "number" ? String(S.value) : S.value, Z = ll(Y, t?.column);
|
|
81108
81109
|
return Z.isValid ? null : Z.error || null;
|
|
81109
|
-
})(), N = c?.(String(e), _)?.validationError, P = k || C || N || null, L =
|
|
81110
|
-
|
|
81110
|
+
})(), N = c?.(String(e), _)?.validationError, P = k || C || N || null, L = ae(null);
|
|
81111
|
+
re(() => {
|
|
81111
81112
|
if (r === _ && L.current !== _) {
|
|
81112
|
-
const Z = u?.(`${e}-${_}`),
|
|
81113
|
+
const Z = u?.(`${e}-${_}`), ne = c?.(String(e), _), J = ne?.value !== void 0 ? ne.value : t.value || "", ce = ne?.meta?.currency_code || Z || g();
|
|
81113
81114
|
w({
|
|
81114
81115
|
value: J,
|
|
81115
81116
|
currencyCode: ce
|
|
81116
81117
|
});
|
|
81117
81118
|
}
|
|
81118
81119
|
r !== _ && L.current === _ && O(null), L.current = r;
|
|
81119
|
-
}, [r, _, u, c, e, t.value]),
|
|
81120
|
+
}, [r, _, u, c, e, t.value]), re(() => {
|
|
81120
81121
|
s && r === _ && t?.column?.masterDataColumnName && t?.column?.masterDataName && (d && d(String(e), _, {
|
|
81121
81122
|
value: s.value,
|
|
81122
81123
|
meta: { reference: s.reference },
|
|
@@ -81135,11 +81136,11 @@ const pa = (t) => ({
|
|
|
81135
81136
|
v,
|
|
81136
81137
|
l
|
|
81137
81138
|
]);
|
|
81138
|
-
const R = (Y) => t?.column?.is_required && (Y == null || Y === "" || typeof Y == "string" && Y.trim() === "") ? (O("Field required"), !1) : (O(null), !0), D = (Y) => R(Y) ? Y && Y.trim() !== "" && !Qu.url.test(Y) ? (O("Invalid URL format"), !1) : (O(null), !0) : !1, F = (Y) => R(Y) ? Y && Y.trim() !== "" && !Qu.email.test(Y) ? (O("Email is not valid"), !1) : (O(null), !0) : !1, I =
|
|
81139
|
-
|
|
81139
|
+
const R = (Y) => t?.column?.is_required && (Y == null || Y === "" || typeof Y == "string" && Y.trim() === "") ? (O("Field required"), !1) : (O(null), !0), D = (Y) => R(Y) ? Y && Y.trim() !== "" && !Qu.url.test(Y) ? (O("Invalid URL format"), !1) : (O(null), !0) : !1, F = (Y) => R(Y) ? Y && Y.trim() !== "" && !Qu.email.test(Y) ? (O("Email is not valid"), !1) : (O(null), !0) : !1, I = ae(S);
|
|
81140
|
+
re(() => {
|
|
81140
81141
|
I.current = S;
|
|
81141
81142
|
}, [S]);
|
|
81142
|
-
const M =
|
|
81143
|
+
const M = ae(null), B = `${e}-${_}`;
|
|
81143
81144
|
ul(() => {
|
|
81144
81145
|
const Y = M.current;
|
|
81145
81146
|
if (!Y) return;
|
|
@@ -81152,8 +81153,8 @@ const pa = (t) => ({
|
|
|
81152
81153
|
}
|
|
81153
81154
|
} else mi !== B && Y.focus();
|
|
81154
81155
|
}, [B]);
|
|
81155
|
-
const W =
|
|
81156
|
-
|
|
81156
|
+
const W = ae();
|
|
81157
|
+
re(() => () => {
|
|
81157
81158
|
W.current && clearTimeout(W.current);
|
|
81158
81159
|
}, []);
|
|
81159
81160
|
const Q = ue(
|
|
@@ -81187,7 +81188,7 @@ const pa = (t) => ({
|
|
|
81187
81188
|
break;
|
|
81188
81189
|
}
|
|
81189
81190
|
}, [t?.column?.type]), K = ue(() => {
|
|
81190
|
-
const Y = t?.column?.type?.toLowerCase(), Z = I.current.value,
|
|
81191
|
+
const Y = t?.column?.type?.toLowerCase(), Z = I.current.value, ne = I.current.currencyCode;
|
|
81191
81192
|
let J = !0;
|
|
81192
81193
|
switch (Y) {
|
|
81193
81194
|
case "url":
|
|
@@ -81203,18 +81204,18 @@ const pa = (t) => ({
|
|
|
81203
81204
|
if (!J)
|
|
81204
81205
|
return { isValid: !1 };
|
|
81205
81206
|
let ce = null;
|
|
81206
|
-
return Y === "currency" && (ce = { currency_code: u?.(y) ||
|
|
81207
|
+
return Y === "currency" && (ce = { currency_code: u?.(y) || ne }), {
|
|
81207
81208
|
isValid: !0,
|
|
81208
81209
|
value: typeof Z == "number" ? String(Z) : Z,
|
|
81209
81210
|
meta: ce
|
|
81210
81211
|
};
|
|
81211
81212
|
}, [t?.column?.type, y, u]);
|
|
81212
|
-
|
|
81213
|
+
re(() => {
|
|
81213
81214
|
a && r === _ && a(K);
|
|
81214
81215
|
}, [a, K, r, _]);
|
|
81215
81216
|
const ie = () => {
|
|
81216
81217
|
if (t?.column?.is_master_data && t?.column?.masterDataName && (t?.column?.masterDataColumnName || t?.column?.masterDataFormula)) {
|
|
81217
|
-
const
|
|
81218
|
+
const ne = c?.(String(e), _), J = s?.value ?? ne?.value ?? t.value;
|
|
81218
81219
|
return /* @__PURE__ */ A("div", { onMouseDown: (ce) => ce.stopPropagation(), className: "z-[120] h-full w-full", children: /* @__PURE__ */ A(
|
|
81219
81220
|
nAe,
|
|
81220
81221
|
{
|
|
@@ -81233,20 +81234,20 @@ const pa = (t) => ({
|
|
|
81233
81234
|
masterDataFormula: t.column.masterDataFormula,
|
|
81234
81235
|
masterDataFilters: t.column.masterDataFilters,
|
|
81235
81236
|
onOpenMasterDataModal: o,
|
|
81236
|
-
reference:
|
|
81237
|
+
reference: ne?.meta?.reference
|
|
81237
81238
|
}
|
|
81238
81239
|
) });
|
|
81239
81240
|
}
|
|
81240
81241
|
const Y = t?.column?.type?.toLowerCase(), Z = _ ? t?.row?.original?.__cellMetadata?.[_] : void 0;
|
|
81241
81242
|
switch (Y) {
|
|
81242
81243
|
case "choice": {
|
|
81243
|
-
const
|
|
81244
|
+
const ne = Z?.choices ?? t?.column?.choices;
|
|
81244
81245
|
return /* @__PURE__ */ A("div", { onMouseDown: (J) => J.stopPropagation(), children: /* @__PURE__ */ A(
|
|
81245
81246
|
ec,
|
|
81246
81247
|
{
|
|
81247
81248
|
id: `select-cell-${e}-${t.column.id}`,
|
|
81248
81249
|
value: S.value || null,
|
|
81249
|
-
selectOptions:
|
|
81250
|
+
selectOptions: ne?.map((J) => ({
|
|
81250
81251
|
label: J,
|
|
81251
81252
|
value: J
|
|
81252
81253
|
})) || [],
|
|
@@ -81272,16 +81273,16 @@ const pa = (t) => ({
|
|
|
81272
81273
|
return /* @__PURE__ */ A(
|
|
81273
81274
|
"div",
|
|
81274
81275
|
{
|
|
81275
|
-
onMouseDown: (
|
|
81276
|
-
|
|
81276
|
+
onMouseDown: (ne) => {
|
|
81277
|
+
ne.stopPropagation(), ne.target.tagName !== "INPUT" && ne.preventDefault();
|
|
81277
81278
|
},
|
|
81278
81279
|
children: /* @__PURE__ */ A(
|
|
81279
81280
|
FS,
|
|
81280
81281
|
{
|
|
81281
81282
|
id: `date-cell-${e}-${t.column.id}`,
|
|
81282
81283
|
value: S.value || void 0,
|
|
81283
|
-
handleOnChange: (
|
|
81284
|
-
const J =
|
|
81284
|
+
handleOnChange: (ne) => {
|
|
81285
|
+
const J = ne || "";
|
|
81285
81286
|
w((ce) => ({ ...ce, value: J })), i(pa(J)), d && d(String(e), _, {
|
|
81286
81287
|
value: J,
|
|
81287
81288
|
originalValue: t.value
|
|
@@ -81295,7 +81296,7 @@ const pa = (t) => ({
|
|
|
81295
81296
|
}
|
|
81296
81297
|
);
|
|
81297
81298
|
case "currency": {
|
|
81298
|
-
const
|
|
81299
|
+
const ne = g();
|
|
81299
81300
|
return /* @__PURE__ */ A("div", { onMouseDown: (J) => J.stopPropagation(), className: "z-[120] h-full w-full", children: /* @__PURE__ */ A(
|
|
81300
81301
|
rAe,
|
|
81301
81302
|
{
|
|
@@ -81309,7 +81310,7 @@ const pa = (t) => ({
|
|
|
81309
81310
|
value: J,
|
|
81310
81311
|
meta: { currency_code: ce },
|
|
81311
81312
|
originalValue: t.value,
|
|
81312
|
-
originalMeta: { currency_code:
|
|
81313
|
+
originalMeta: { currency_code: ne }
|
|
81313
81314
|
}), R(J), v(J, { currency_code: ce });
|
|
81314
81315
|
},
|
|
81315
81316
|
currencyCode: S.currencyCode,
|
|
@@ -81324,19 +81325,19 @@ const pa = (t) => ({
|
|
|
81324
81325
|
) });
|
|
81325
81326
|
}
|
|
81326
81327
|
case "percentage":
|
|
81327
|
-
return /* @__PURE__ */ T("label", { className: "relative block h-full", onMouseDown: (
|
|
81328
|
+
return /* @__PURE__ */ T("label", { className: "relative block h-full", onMouseDown: (ne) => ne.stopPropagation(), children: [
|
|
81328
81329
|
/* @__PURE__ */ A(
|
|
81329
81330
|
"input",
|
|
81330
81331
|
{
|
|
81331
81332
|
ref: M,
|
|
81332
81333
|
type: "number",
|
|
81333
81334
|
defaultValue: String(S.value ?? ""),
|
|
81334
|
-
onChange: (
|
|
81335
|
+
onChange: (ne) => {
|
|
81335
81336
|
try {
|
|
81336
|
-
hi.set(B, { start:
|
|
81337
|
+
hi.set(B, { start: ne.target.selectionStart ?? 0, end: ne.target.selectionEnd ?? 0 });
|
|
81337
81338
|
} catch {
|
|
81338
81339
|
}
|
|
81339
|
-
const J =
|
|
81340
|
+
const J = ne.target.value;
|
|
81340
81341
|
w((ce) => ({ ...ce, value: J })), I.current = { ...I.current, value: J }, on = B, R(J), te(J);
|
|
81341
81342
|
},
|
|
81342
81343
|
onBlur: () => {
|
|
@@ -81344,8 +81345,8 @@ const pa = (t) => ({
|
|
|
81344
81345
|
mi = null;
|
|
81345
81346
|
});
|
|
81346
81347
|
},
|
|
81347
|
-
onKeyDown: (
|
|
81348
|
-
|
|
81348
|
+
onKeyDown: (ne) => {
|
|
81349
|
+
ne.stopPropagation();
|
|
81349
81350
|
},
|
|
81350
81351
|
className: "border border-gray-300 h-full text-gray-900 dark:bg-black-800 dark:text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:focus:ring-white dark:focus:border-white block w-full px-2.5 py-1.5 font-inter font-medium disabled:bg-neutral-50 dark:disabled:!bg-black-800 dark:disabled:placeholder:!text-black-400",
|
|
81351
81352
|
id: `percentage-cell-${e}-${t.column.id}`,
|
|
@@ -81361,7 +81362,7 @@ const pa = (t) => ({
|
|
|
81361
81362
|
/* @__PURE__ */ A("span", { className: "absolute inset-y-0 right-3 flex items-center pointer-events-none h-full dark:text-black-100", children: "%" })
|
|
81362
81363
|
] });
|
|
81363
81364
|
case "boolean": {
|
|
81364
|
-
const
|
|
81365
|
+
const ne = S.value === !0 || S.value === "true" || S.value === "Yes" || S.value === "True" || S.value === 1;
|
|
81365
81366
|
return /* @__PURE__ */ A(
|
|
81366
81367
|
"div",
|
|
81367
81368
|
{
|
|
@@ -81371,7 +81372,7 @@ const pa = (t) => ({
|
|
|
81371
81372
|
Oi,
|
|
81372
81373
|
{
|
|
81373
81374
|
id: `toggle-cell-${e}-${t.column.id}`,
|
|
81374
|
-
isChecked:
|
|
81375
|
+
isChecked: ne,
|
|
81375
81376
|
onChange: (J) => {
|
|
81376
81377
|
w((ce) => ({ ...ce, value: J })), i(pa(J)), d && d(String(e), _, {
|
|
81377
81378
|
value: J,
|
|
@@ -81381,7 +81382,7 @@ const pa = (t) => ({
|
|
|
81381
81382
|
hideStatus: !1,
|
|
81382
81383
|
labelDirection: "right",
|
|
81383
81384
|
stopClickPropagation: !0,
|
|
81384
|
-
statusText:
|
|
81385
|
+
statusText: ne ? "Yes" : "No"
|
|
81385
81386
|
}
|
|
81386
81387
|
)
|
|
81387
81388
|
}
|
|
@@ -81394,9 +81395,9 @@ const pa = (t) => ({
|
|
|
81394
81395
|
ref: M,
|
|
81395
81396
|
type: "url",
|
|
81396
81397
|
defaultValue: String(S.value ?? ""),
|
|
81397
|
-
onChange: (
|
|
81398
|
-
hi.set(B, { start:
|
|
81399
|
-
const J =
|
|
81398
|
+
onChange: (ne) => {
|
|
81399
|
+
hi.set(B, { start: ne.target.selectionStart ?? 0, end: ne.target.selectionEnd ?? 0 });
|
|
81400
|
+
const J = ne.target.value;
|
|
81400
81401
|
w((ce) => ({ ...ce, value: J })), I.current = { ...I.current, value: J }, on = B, k ? D(J) : R(J), te(J);
|
|
81401
81402
|
},
|
|
81402
81403
|
onBlur: () => {
|
|
@@ -81404,10 +81405,10 @@ const pa = (t) => ({
|
|
|
81404
81405
|
mi = null;
|
|
81405
81406
|
});
|
|
81406
81407
|
},
|
|
81407
|
-
onKeyDown: (
|
|
81408
|
-
|
|
81408
|
+
onKeyDown: (ne) => {
|
|
81409
|
+
ne.stopPropagation();
|
|
81409
81410
|
},
|
|
81410
|
-
onMouseDown: (
|
|
81411
|
+
onMouseDown: (ne) => ne.stopPropagation(),
|
|
81411
81412
|
className: "text-neutral-900 dark:text-white dark:bg-black-800 text-base font-medium h-full font-inter overflow-hidden whitespace-nowrap text-ellipsis px-2.5 py-1 w-full border rounded focus:outline-primary-600 dark:focus:outline-white z-[120] shadow-xl disabled:bg-neutral-50 dark:disabled:!bg-black-800",
|
|
81412
81413
|
style: {
|
|
81413
81414
|
height: "var(--row-height)"
|
|
@@ -81422,12 +81423,12 @@ const pa = (t) => ({
|
|
|
81422
81423
|
ref: M,
|
|
81423
81424
|
type: "email",
|
|
81424
81425
|
defaultValue: String(S.value ?? ""),
|
|
81425
|
-
onChange: (
|
|
81426
|
+
onChange: (ne) => {
|
|
81426
81427
|
try {
|
|
81427
|
-
hi.set(B, { start:
|
|
81428
|
+
hi.set(B, { start: ne.target.selectionStart ?? 0, end: ne.target.selectionEnd ?? 0 });
|
|
81428
81429
|
} catch {
|
|
81429
81430
|
}
|
|
81430
|
-
const J =
|
|
81431
|
+
const J = ne.target.value;
|
|
81431
81432
|
w((ce) => ({ ...ce, value: J })), I.current = { ...I.current, value: J }, on = B, k ? F(J) : R(J), te(J);
|
|
81432
81433
|
},
|
|
81433
81434
|
onBlur: () => {
|
|
@@ -81435,10 +81436,10 @@ const pa = (t) => ({
|
|
|
81435
81436
|
mi = null;
|
|
81436
81437
|
});
|
|
81437
81438
|
},
|
|
81438
|
-
onKeyDown: (
|
|
81439
|
-
|
|
81439
|
+
onKeyDown: (ne) => {
|
|
81440
|
+
ne.stopPropagation();
|
|
81440
81441
|
},
|
|
81441
|
-
onMouseDown: (
|
|
81442
|
+
onMouseDown: (ne) => ne.stopPropagation(),
|
|
81442
81443
|
className: "text-neutral-900 dark:text-white dark:bg-black-800 text-base font-medium h-full font-inter overflow-hidden whitespace-nowrap text-ellipsis px-2.5 py-1 w-full border rounded focus:outline-primary-600 dark:focus:outline-white z-[120] shadow-xl disabled:bg-neutral-50 dark:disabled:!bg-black-800",
|
|
81443
81444
|
style: {
|
|
81444
81445
|
height: "var(--row-height)"
|
|
@@ -81453,9 +81454,9 @@ const pa = (t) => ({
|
|
|
81453
81454
|
ref: M,
|
|
81454
81455
|
type: "text",
|
|
81455
81456
|
defaultValue: String(S.value ?? ""),
|
|
81456
|
-
onChange: (
|
|
81457
|
-
hi.set(B, { start:
|
|
81458
|
-
const J =
|
|
81457
|
+
onChange: (ne) => {
|
|
81458
|
+
hi.set(B, { start: ne.target.selectionStart ?? 0, end: ne.target.selectionEnd ?? 0 });
|
|
81459
|
+
const J = ne.target.value;
|
|
81459
81460
|
w((ce) => ({ ...ce, value: J })), I.current = { ...I.current, value: J }, on = B, R(J), te(J);
|
|
81460
81461
|
},
|
|
81461
81462
|
onBlur: () => {
|
|
@@ -81463,10 +81464,10 @@ const pa = (t) => ({
|
|
|
81463
81464
|
mi = null;
|
|
81464
81465
|
});
|
|
81465
81466
|
},
|
|
81466
|
-
onKeyDown: (
|
|
81467
|
-
|
|
81467
|
+
onKeyDown: (ne) => {
|
|
81468
|
+
ne.stopPropagation();
|
|
81468
81469
|
},
|
|
81469
|
-
onMouseDown: (
|
|
81470
|
+
onMouseDown: (ne) => ne.stopPropagation(),
|
|
81470
81471
|
className: "text-neutral-900 dark:text-white dark:bg-black-800 text-base font-medium h-full font-inter overflow-hidden whitespace-nowrap text-ellipsis px-2.5 py-1 w-full border rounded focus:outline-primary-600 dark:focus:outline-white z-[120] shadow-xl disabled:bg-neutral-50 dark:disabled:!bg-black-800",
|
|
81471
81472
|
style: {
|
|
81472
81473
|
height: "var(--row-height)"
|
|
@@ -81564,9 +81565,9 @@ const uS = (t) => {
|
|
|
81564
81565
|
allowInlineEdit: q,
|
|
81565
81566
|
fieldOperationLoading: K,
|
|
81566
81567
|
pendingEdits: ie
|
|
81567
|
-
} = fr(ai), Y = yn(),
|
|
81568
|
+
} = fr(ai), Y = yn(), ne = (t?.column?.key ? t?.row?.original?.__cellMetadata?.[t.column.key] : void 0)?.is_locked ?? t?.column?.is_locked, J = (t?.column?.key ? ie?.[e]?.[t.column.key]?.validationError : null) || R || null, ce = v === t.column.key && t?.column?.canEdit && !ne && !t?.column?.is_disabled, ze = K === `${e}-${t?.column?.id}`, { theme: Ee } = DW(), _e = Ee === "dark", me = ue(() => _(e), [_, e]), ge = ue(() => _(null), [_]), we = Y?.formatDuration, [Se, pe] = X(
|
|
81568
81569
|
t?.column?.dataType === "duration" && t?.value ? we ? we(t.value) : uS(t.value) : t.value
|
|
81569
|
-
), [G, Ae] = X(null), [Ce, Xe] = X(!1), [Ze, tt] = X(!1), [We, Ne] = X(!1), Fe =
|
|
81570
|
+
), [G, Ae] = X(null), [Ce, Xe] = X(!1), [Ze, tt] = X(!1), [We, Ne] = X(!1), Fe = ae(null), ve = ae(), Me = ae(), { selectedColumnIds: Ue = [] } = Q || {}, $e = !Object.prototype.hasOwnProperty.call(t?.column?.meta ?? {}, "shouldHighlight") || t?.column?.meta?.shouldHighlight, dt = ue(() => {
|
|
81570
81571
|
Fe.current && Xe(Fe.current.scrollWidth > Fe.current.clientWidth);
|
|
81571
81572
|
}, []), at = ue((qe) => {
|
|
81572
81573
|
ve.current && clearTimeout(ve.current), qe ? tt(!0) : ve.current = setTimeout(() => tt(!1), 200);
|
|
@@ -81587,14 +81588,14 @@ const uS = (t) => {
|
|
|
81587
81588
|
}), vt = (qe) => {
|
|
81588
81589
|
t.column?.disableRowClick || s(qe);
|
|
81589
81590
|
};
|
|
81590
|
-
return
|
|
81591
|
+
return re(() => (t?.row?.original?.status === "running" && t.column?.dataType === "duration" && (j1 = setInterval(() => {
|
|
81591
81592
|
const Ke = new Date(ki(t?.row?.original?.created_at || t?.row?.original?.executed_on, { withTime: !0, format: "yyyy-MM-dd HH:mm:ss" })), Je = Math.abs((/* @__PURE__ */ new Date()).getTime() - new Date(Ke).getTime());
|
|
81592
81593
|
pe(we ? we(Je) : uS(Je));
|
|
81593
81594
|
}, 500)), () => {
|
|
81594
81595
|
j1 && clearInterval(j1);
|
|
81595
|
-
}), [Se, t.value, t?.row?.original?.created_at, t?.row?.original?.executed_on, t?.row?.original?.status, t.column?.dataType, we]),
|
|
81596
|
+
}), [Se, t.value, t?.row?.original?.created_at, t?.row?.original?.executed_on, t?.row?.original?.status, t.column?.dataType, we]), re(() => {
|
|
81596
81597
|
(t?.column?.tooltipCellKey || t?.column?.type?.toLowerCase() === "url") && (t?.column?.type?.toLowerCase() === "url" ? Ae(t?.value) : Ae(t?.row?.original?.[String(t?.column?.tooltipCellKey)]));
|
|
81597
|
-
}, [t?.column?.tooltipCellKey, t?.row?.original, t?.column?.type, t?.value]),
|
|
81598
|
+
}, [t?.column?.tooltipCellKey, t?.row?.original, t?.column?.type, t?.value]), re(() => {
|
|
81598
81599
|
if (t?.column?.type?.toLowerCase() === "currency")
|
|
81599
81600
|
if (P?.value !== void 0) {
|
|
81600
81601
|
const qe = t?.row?.original?.__rawData, Ke = t?.column?.Header, Je = P?.meta?.currency_code || qe?.[Ke]?.currency_code || "USD";
|
|
@@ -81603,24 +81604,24 @@ const uS = (t) => {
|
|
|
81603
81604
|
const qe = t?.row?.original?.__rawData, Ke = t?.column?.Header;
|
|
81604
81605
|
pe(no(t?.value, qe?.[Ke]?.currency_code || "USD"));
|
|
81605
81606
|
}
|
|
81606
|
-
}, [t?.value, t?.column?.type, t?.column?.Header, t?.row?.original?.__rawData, P?.value, P?.meta?.currency_code]),
|
|
81607
|
+
}, [t?.value, t?.column?.type, t?.column?.Header, t?.row?.original?.__rawData, P?.value, P?.meta?.currency_code]), re(() => {
|
|
81607
81608
|
t?.column?.type?.toLowerCase() === "percentage" && (P?.value !== void 0 ? pe(P.value?.toString() + "%" || "") : pe(t?.value?.toString() + "%" || ""));
|
|
81608
|
-
}, [t?.value, t?.column?.type, P?.value]),
|
|
81609
|
+
}, [t?.value, t?.column?.type, P?.value]), re(() => {
|
|
81609
81610
|
const qe = t?.column?.type?.toLowerCase() || "";
|
|
81610
81611
|
if (["date", "datetime"].includes(qe))
|
|
81611
81612
|
if (P?.value !== void 0) {
|
|
81612
81613
|
const Ke = qe === "datetime", Je = ki(P.value, { withTime: Ke, skipTimezone: !0 });
|
|
81613
81614
|
pe(Je || P.value);
|
|
81614
81615
|
} else pe(t.value);
|
|
81615
|
-
}, [t?.value, t?.column?.type, P?.value]),
|
|
81616
|
+
}, [t?.value, t?.column?.type, P?.value]), re(() => {
|
|
81616
81617
|
const qe = t?.column?.type?.toLowerCase() || "";
|
|
81617
81618
|
["currency", "percentage", "duration", "boolean", "date", "datetime"].includes(qe) || (P?.value !== void 0 ? pe(P.value) : t?.column?.dataType !== "duration" && pe(t.value));
|
|
81618
|
-
}, [t?.value, t?.column?.type, t?.column?.dataType, P?.value]),
|
|
81619
|
+
}, [t?.value, t?.column?.type, t?.column?.dataType, P?.value]), re(() => {
|
|
81619
81620
|
if (t?.column?.type?.toLowerCase() === "boolean" && q) {
|
|
81620
81621
|
const qe = P?.value !== void 0 ? P.value : t?.value;
|
|
81621
81622
|
pe(qe === !0 || qe === "true" || qe === "True" || qe === "Yes" || qe === 1 ? "Yes" : "No");
|
|
81622
81623
|
}
|
|
81623
|
-
}, [t?.value, t?.column?.type, q, P?.value]),
|
|
81624
|
+
}, [t?.value, t?.column?.type, q, P?.value]), re(() => () => {
|
|
81624
81625
|
ve.current && clearTimeout(ve.current), Me.current && clearTimeout(Me.current);
|
|
81625
81626
|
}, []), /* @__PURE__ */ T(
|
|
81626
81627
|
"td",
|
|
@@ -81645,7 +81646,7 @@ const uS = (t) => {
|
|
|
81645
81646
|
return Je === "boolean" ? Ke === !0 || Ke === "true" || Ke === "True" ? "Yes" : "No" : (Je === "date" || Je === "datetime") && Ke ? ki(Ke, { withTime: Je === "datetime", skipTimezone: !0 }) || String(Ke) : Ke != null ? String(Ke) : Se;
|
|
81646
81647
|
})() }),
|
|
81647
81648
|
/* @__PURE__ */ A("div", { className: "ml-2 flex items-center gap-1.5", children: /* @__PURE__ */ A(Wi, { className: "spinner text-neutral-600 dark:text-white", size: 12 }) })
|
|
81648
|
-
] }) : v === t.column.key && t?.column?.canEdit && !
|
|
81649
|
+
] }) : v === t.column.key && t?.column?.canEdit && !ne && !t?.column?.is_disabled ? /* @__PURE__ */ A("div", { className: "h-row w-full absolute top-0 left-0 flex items-center", style: { marginLeft: m > 0 && a === 0 ? `-${m * 16}px` : void 0, width: m > 0 && a === 0 ? `calc(100% + ${m * 16}px)` : "100%" }, children: /* @__PURE__ */ A(iAe, { cell: t, id: e, inlineEditing: v, cellRef: x, handleCellValueChange: y, handleUpdateCellData: E, registerValidation: S }) }) : /* @__PURE__ */ T(ot, { children: [
|
|
81649
81650
|
m > 0 && a === 0 && /* @__PURE__ */ A("div", { className: "h-full border-l border-neutral-300 dark:border-black-600 ml-2" }),
|
|
81650
81651
|
/* @__PURE__ */ A("div", { className: "min-h-6", children: /* @__PURE__ */ A(
|
|
81651
81652
|
Re,
|
|
@@ -81670,7 +81671,7 @@ const uS = (t) => {
|
|
|
81670
81671
|
{
|
|
81671
81672
|
title: /* @__PURE__ */ A("div", { onMouseEnter: () => at(!0), onMouseLeave: () => at(!1), children: /* @__PURE__ */ A("a", { href: G, target: "_blank", rel: "noopener noreferrer", onClick: (qe) => qe.stopPropagation(), children: /* @__PURE__ */ T("div", { className: "flex gap-1 items-center w-full", children: [
|
|
81672
81673
|
/* @__PURE__ */ A("div", { className: "w-4 h-4", children: /* @__PURE__ */ A(jN, { height: 16, width: 16 }) }),
|
|
81673
|
-
/* @__PURE__ */ A(
|
|
81674
|
+
/* @__PURE__ */ A(oe, { variant: "medium", size: "small", className: "truncate", appearance: "custom", children: G }),
|
|
81674
81675
|
/* @__PURE__ */ A(cN, { sx: { height: "16px", width: "16px", color: "#016DCF" } })
|
|
81675
81676
|
] }) }) }),
|
|
81676
81677
|
placement: "top",
|
|
@@ -81707,7 +81708,7 @@ const uS = (t) => {
|
|
|
81707
81708
|
) })
|
|
81708
81709
|
] }) }),
|
|
81709
81710
|
J && !ce && /* @__PURE__ */ A("div", { className: "absolute bottom-0 left-0 right-0 h-row flex items-end pointer-events-none z-[5]", children: /* @__PURE__ */ A("div", { className: "w-full bg-error-50 dark:bg-error-975 px-1.5 py-0.5 truncate", children: /* @__PURE__ */ A("span", { className: "text-error-600 text-[10px] font-medium leading-none", children: J }) }) }),
|
|
81710
|
-
ze && !(v === t.column.key && t?.column?.canEdit && !
|
|
81711
|
+
ze && !(v === t.column.key && t?.column?.canEdit && !ne && !t?.column?.is_disabled) && /* @__PURE__ */ A("div", { className: "absolute top-0 right-0 bg-white dark:bg-black-800 rounded-full w-5 h-5 flex items-center justify-center border border-primary-300 dark:border-primary-600 shadow-sm z-10", children: /* @__PURE__ */ A(Wi, { className: "text-primary-600 dark:text-white", size: 8 }) })
|
|
81711
81712
|
]
|
|
81712
81713
|
},
|
|
81713
81714
|
a
|
|
@@ -81756,7 +81757,7 @@ const uS = (t) => {
|
|
|
81756
81757
|
showNewItem: p,
|
|
81757
81758
|
onScrollToCell: h
|
|
81758
81759
|
}) => {
|
|
81759
|
-
const [m, v] = X(!1), [g, _] = X({ top: 0, left: 0 }), y =
|
|
81760
|
+
const [m, v] = X(!1), [g, _] = X({ top: 0, left: 0 }), y = ae(null), x = ae(null), E = r?.[t], S = Pe(
|
|
81760
81761
|
() => E ? Object.entries(E).map(([N, P]) => {
|
|
81761
81762
|
const L = n?.find((D) => D.key === N), R = L?.Header || L?.display_name || N;
|
|
81762
81763
|
return { columnKey: N, fieldName: R, value: P.value, originalValue: P.originalValue, meta: P.meta, originalMeta: P.originalMeta };
|
|
@@ -81948,8 +81949,8 @@ const uS = (t) => {
|
|
|
81948
81949
|
pendingEdits: B
|
|
81949
81950
|
} = fr(ai), W = yn(), Q = !!c, { activeInlineEdit: te, setActiveInlineEdit: j } = fr(ai), q = te?.rowId === t.original.id ? te?.columnKey : null, K = !!q, ie = (Ge) => {
|
|
81950
81951
|
j?.(Ge === null ? null : { rowId: String(t.original.id), columnKey: Ge });
|
|
81951
|
-
}, [Y, Z] = X(null), [
|
|
81952
|
-
|
|
81952
|
+
}, [Y, Z] = X(null), [ne, J] = X(null), [ce, ze] = X(null), [Ee, _e] = X(!1), [me, ge] = X(!1), we = ae(null);
|
|
81953
|
+
re(() => {
|
|
81953
81954
|
const Ge = we.current, gt = q;
|
|
81954
81955
|
if (Ge && !gt) {
|
|
81955
81956
|
const ir = B?.[t.original.id]?.[Ge];
|
|
@@ -81965,7 +81966,7 @@ const uS = (t) => {
|
|
|
81965
81966
|
}
|
|
81966
81967
|
}
|
|
81967
81968
|
we.current = gt ?? null;
|
|
81968
|
-
}, [q, t.original.id, t.cells, B, R]),
|
|
81969
|
+
}, [q, t.original.id, t.cells, B, R]), re(() => {
|
|
81969
81970
|
if (w) {
|
|
81970
81971
|
const Ge = String(t?.original?.id);
|
|
81971
81972
|
ze(w[Ge]?.[t?.cells[0].column.Header] || w[Ge]?.[0]);
|
|
@@ -81983,12 +81984,12 @@ const uS = (t) => {
|
|
|
81983
81984
|
J(Ge.target.value);
|
|
81984
81985
|
}, $e = () => {
|
|
81985
81986
|
F || ie(null);
|
|
81986
|
-
}, dt =
|
|
81987
|
+
}, dt = ae(null), at = ue(
|
|
81987
81988
|
(Ge) => {
|
|
81988
81989
|
dt.current = Ge;
|
|
81989
81990
|
},
|
|
81990
81991
|
[]
|
|
81991
|
-
), nt =
|
|
81992
|
+
), nt = ae(W);
|
|
81992
81993
|
nt.current = W;
|
|
81993
81994
|
const Ye = ue(() => {
|
|
81994
81995
|
I && I(String(t.original.id));
|
|
@@ -82013,9 +82014,9 @@ const uS = (t) => {
|
|
|
82013
82014
|
}
|
|
82014
82015
|
M && M(String(t.original.id));
|
|
82015
82016
|
}, [M, t.original, t.cells, q, R, B]), qe = (Ge, gt) => {
|
|
82016
|
-
const ir = { ...t.original }, Ct = Ge !== void 0 ? Ge :
|
|
82017
|
+
const ir = { ...t.original }, Ct = Ge !== void 0 ? Ge : ne;
|
|
82017
82018
|
q && Ct !== void 0 && (ir[q] = Ct, m && m(ir, i, q, Ct, gt), D && D(String(t.original.id), q)), $e();
|
|
82018
|
-
}, Ke =
|
|
82019
|
+
}, Ke = ae(null), Je = (Ge, gt, ir, Ct) => {
|
|
82019
82020
|
if (!N && (Ge?.stopPropagation(), q !== Ct)) {
|
|
82020
82021
|
if (m) {
|
|
82021
82022
|
if (v?.includes(Ct))
|
|
@@ -82209,7 +82210,7 @@ const uS = (t) => {
|
|
|
82209
82210
|
tableHeaders: q,
|
|
82210
82211
|
pendingEditsCount: K,
|
|
82211
82212
|
scrollToCell: ie
|
|
82212
|
-
} = fr(ai), Y = j?.[o.original.id] && Object.keys(j[o.original.id]).length > 0, Z = (K ?? 0) > 0,
|
|
82213
|
+
} = fr(ai), Y = j?.[o.original.id] && Object.keys(j[o.original.id]).length > 0, Z = (K ?? 0) > 0, ne = Pe(() => {
|
|
82213
82214
|
if (Array.isArray(L)) return L;
|
|
82214
82215
|
if (typeof L == "function") {
|
|
82215
82216
|
const J = L({ ...o.original, rowIndex: c });
|
|
@@ -82348,11 +82349,11 @@ const uS = (t) => {
|
|
|
82348
82349
|
]
|
|
82349
82350
|
}
|
|
82350
82351
|
),
|
|
82351
|
-
(
|
|
82352
|
+
(ne.length > 0 || !!I) && /* @__PURE__ */ A(
|
|
82352
82353
|
hAe,
|
|
82353
82354
|
{
|
|
82354
82355
|
rowId: o.original.id,
|
|
82355
|
-
rowOptions:
|
|
82356
|
+
rowOptions: ne,
|
|
82356
82357
|
disableOption: u !== null || !!o?.original?.__isLoading,
|
|
82357
82358
|
rowHovering: s,
|
|
82358
82359
|
setRowHovering: N,
|
|
@@ -82390,14 +82391,14 @@ const uS = (t) => {
|
|
|
82390
82391
|
},
|
|
82391
82392
|
[e]
|
|
82392
82393
|
);
|
|
82393
|
-
return
|
|
82394
|
+
return re(() => {
|
|
82394
82395
|
a && i && i("SET_SCROLLBAR_REF_FOR_INFINITY_TABLE", { scrollbarsInstance: a });
|
|
82395
82396
|
}, [a, i]), /* @__PURE__ */ A(nu, { ref: s, style: { ...r, overflow: "hidden" }, onScroll: t, renderViewClassName: "!h-[calc(100%+5px)]", children: n });
|
|
82396
82397
|
}, gAe = ct((t, e) => {
|
|
82397
82398
|
const r = yn();
|
|
82398
82399
|
return /* @__PURE__ */ A(mAe, { ...t, forwardedRef: e, dispatchEvent: r?.dispatchEvent });
|
|
82399
82400
|
}), bAe = ({ rows: t, prepareRow: e, isLoading: r, onScroll: n, columns: i, width: a, height: o, onScrolling: s, level: l = 0, allowAstarSearch: u = !1 }) => {
|
|
82400
|
-
const c =
|
|
82401
|
+
const c = ae(null), d = ae(null), f = yn(), {
|
|
82401
82402
|
tableWrapper: p,
|
|
82402
82403
|
tableBodyWrapper: h,
|
|
82403
82404
|
search: m,
|
|
@@ -82406,23 +82407,23 @@ const uS = (t) => {
|
|
|
82406
82407
|
activeInlineEdit: _,
|
|
82407
82408
|
closeCurrencyDropdown: y,
|
|
82408
82409
|
currencyDropdownConfig: x
|
|
82409
|
-
} = fr(ai), E =
|
|
82410
|
-
E.current = f,
|
|
82410
|
+
} = fr(ai), E = ae(f);
|
|
82411
|
+
E.current = f, re(() => {
|
|
82411
82412
|
if (E.current?.onEvent)
|
|
82412
82413
|
return E.current.onEvent("SET_SCROLLBAR_REF_FOR_INFINITY_TABLE", (M) => {
|
|
82413
82414
|
const { scrollbarsInstance: B } = M;
|
|
82414
82415
|
c.current = B;
|
|
82415
82416
|
});
|
|
82416
82417
|
}, [f?.onEvent]);
|
|
82417
|
-
const S =
|
|
82418
|
-
|
|
82418
|
+
const S = ae(null);
|
|
82419
|
+
re(() => {
|
|
82419
82420
|
if (E.current?.onEvent)
|
|
82420
82421
|
return E.current.onEvent("SCROLL_TO_TABLE_ROW", (M) => {
|
|
82421
82422
|
const { rowIndex: B } = M;
|
|
82422
82423
|
S.current && typeof B == "number" && S.current.scrollToItem(B, "center");
|
|
82423
82424
|
});
|
|
82424
82425
|
}, [f?.onEvent]);
|
|
82425
|
-
const w =
|
|
82426
|
+
const w = ae({}), k = ue((M, B) => 0, [v]), O = ue(() => {
|
|
82426
82427
|
const M = { ...w.current };
|
|
82427
82428
|
for (const B of t) {
|
|
82428
82429
|
const W = B.original.id;
|
|
@@ -82434,7 +82435,7 @@ const uS = (t) => {
|
|
|
82434
82435
|
}
|
|
82435
82436
|
w.current = M, S.current?.resetAfterIndex(0);
|
|
82436
82437
|
}, [v, t, k]);
|
|
82437
|
-
|
|
82438
|
+
re(() => {
|
|
82438
82439
|
O();
|
|
82439
82440
|
}, [O]);
|
|
82440
82441
|
const C = ue((M) => w.current[M] || 41, []), N = ue(
|
|
@@ -82506,9 +82507,9 @@ const uS = (t) => {
|
|
|
82506
82507
|
);
|
|
82507
82508
|
},
|
|
82508
82509
|
[i, t, r, N, e, v, L, l]
|
|
82509
|
-
), D =
|
|
82510
|
+
), D = ae(_);
|
|
82510
82511
|
D.current = _;
|
|
82511
|
-
const F =
|
|
82512
|
+
const F = ae(!!x);
|
|
82512
82513
|
F.current = !!x;
|
|
82513
82514
|
const I = ue(
|
|
82514
82515
|
(M) => {
|
|
@@ -82558,15 +82559,15 @@ const uS = (t) => {
|
|
|
82558
82559
|
allowAstarSearch: c
|
|
82559
82560
|
}
|
|
82560
82561
|
) }) }), vAe = ({ config: t, onClose: e }) => {
|
|
82561
|
-
const r = yn(), [n, i] = X(""), [a, o] = X(eg), s =
|
|
82562
|
-
if (
|
|
82562
|
+
const r = yn(), [n, i] = X(""), [a, o] = X(eg), s = ae(null);
|
|
82563
|
+
if (re(() => {
|
|
82563
82564
|
if (!t) {
|
|
82564
82565
|
i("");
|
|
82565
82566
|
return;
|
|
82566
82567
|
}
|
|
82567
82568
|
const m = eg.filter((v) => `${v.value} - ${v.label}`.toLowerCase().includes(n.toLowerCase()));
|
|
82568
82569
|
o(m);
|
|
82569
|
-
}, [n, t]),
|
|
82570
|
+
}, [n, t]), re(() => {
|
|
82570
82571
|
if (!t) return;
|
|
82571
82572
|
const m = (_) => {
|
|
82572
82573
|
s.current && !s.current.contains(_.target) && e();
|
|
@@ -82682,13 +82683,13 @@ const uS = (t) => {
|
|
|
82682
82683
|
onEditColumnClick: f,
|
|
82683
82684
|
onDeleteColumnClick: p
|
|
82684
82685
|
}) => {
|
|
82685
|
-
const h = yn(), m = () => l(null), v =
|
|
82686
|
+
const h = yn(), m = () => l(null), v = ae(null);
|
|
82686
82687
|
Bb({
|
|
82687
82688
|
ref: v,
|
|
82688
82689
|
handler: m
|
|
82689
82690
|
});
|
|
82690
82691
|
const g = h?.t ?? ((S) => S), _ = r?.dataType === "date", y = r?.dataType === "boolean", x = g(_ ? "Least Recent" : "Sort By A-Z"), E = g(_ ? "Most Recent" : "Sort By Z-A");
|
|
82691
|
-
return
|
|
82692
|
+
return re(() => {
|
|
82692
82693
|
v.current?.querySelector("button:not([disabled])")?.focus();
|
|
82693
82694
|
}, []), h?.renderColumnOptions ? h.renderColumnOptions({
|
|
82694
82695
|
headerIndex: t,
|
|
@@ -83009,7 +83010,7 @@ const uS = (t) => {
|
|
|
83009
83010
|
onSaveAll: a,
|
|
83010
83011
|
onScrollToCell: o
|
|
83011
83012
|
}) => {
|
|
83012
|
-
const [s, l] = X(!1), [u, c] = X(!1), [d, f] = X(null), [p, h] = X(null), [m, v] = X(!1), [g, _] = X(""), [y, x] = X(!1), [E, S] = X(null), w =
|
|
83013
|
+
const [s, l] = X(!1), [u, c] = X(!1), [d, f] = X(null), [p, h] = X(null), [m, v] = X(!1), [g, _] = X(""), [y, x] = X(!1), [E, S] = X(null), w = ae(null), k = ae(null), O = ae(null), C = ae(null), N = ae(null), P = ae(null), L = Pe(() => d ? e.filter((q) => q.rowId === d) : e, [e, d]), R = Pe(() => {
|
|
83013
83014
|
if (!g) return r;
|
|
83014
83015
|
const q = g.toLowerCase();
|
|
83015
83016
|
return r.filter((K) => `row ${K.rowIndex + 1}`.toLowerCase().includes(q));
|
|
@@ -83018,9 +83019,9 @@ const uS = (t) => {
|
|
|
83018
83019
|
const q = r.find((K) => K.rowId === d);
|
|
83019
83020
|
return q ? `Row ${q.rowIndex + 1} (${q.editCount})` : `All Rows (${e.length})`;
|
|
83020
83021
|
}, [d, r, e.length]);
|
|
83021
|
-
|
|
83022
|
+
re(() => {
|
|
83022
83023
|
d && !r.find((q) => q.rowId === d) && f(null);
|
|
83023
|
-
}, [r, d]),
|
|
83024
|
+
}, [r, d]), re(() => {
|
|
83024
83025
|
const q = (K) => {
|
|
83025
83026
|
const ie = K.target;
|
|
83026
83027
|
!C.current?.contains(ie) && !P.current?.contains(ie) && (x(!1), _(""));
|
|
@@ -83032,10 +83033,10 @@ const uS = (t) => {
|
|
|
83032
83033
|
}, []), I = ue(() => {
|
|
83033
83034
|
w.current = setTimeout(() => l(!1), 300);
|
|
83034
83035
|
}, []), M = ue((q, K, ie, Y) => {
|
|
83035
|
-
const Z = Math.max(0, window.innerWidth - ie),
|
|
83036
|
+
const Z = Math.max(0, window.innerWidth - ie), ne = Math.max(0, window.innerHeight - Y);
|
|
83036
83037
|
return {
|
|
83037
83038
|
x: Math.min(Math.max(q, 0), Z),
|
|
83038
|
-
y: Math.min(Math.max(K, 0),
|
|
83039
|
+
y: Math.min(Math.max(K, 0), ne)
|
|
83039
83040
|
};
|
|
83040
83041
|
}, []), B = ue((q) => {
|
|
83041
83042
|
q.preventDefault();
|
|
@@ -83051,7 +83052,7 @@ const uS = (t) => {
|
|
|
83051
83052
|
barHeight: ie.height
|
|
83052
83053
|
}, v(!0);
|
|
83053
83054
|
}, [p]);
|
|
83054
|
-
|
|
83055
|
+
re(() => {
|
|
83055
83056
|
if (!m) return;
|
|
83056
83057
|
const q = (ie) => {
|
|
83057
83058
|
if (!k.current) return;
|
|
@@ -83063,7 +83064,7 @@ const uS = (t) => {
|
|
|
83063
83064
|
return document.addEventListener("mousemove", q), document.addEventListener("mouseup", K), () => {
|
|
83064
83065
|
document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", K);
|
|
83065
83066
|
};
|
|
83066
|
-
}, [m, M]),
|
|
83067
|
+
}, [m, M]), re(() => {
|
|
83067
83068
|
if (!p || !O.current) return;
|
|
83068
83069
|
const q = () => {
|
|
83069
83070
|
if (!O.current) return;
|
|
@@ -83339,7 +83340,7 @@ const uS = (t) => {
|
|
|
83339
83340
|
enableRootDrag: ie,
|
|
83340
83341
|
pageSize: Y = 10,
|
|
83341
83342
|
onCascadingRowExpand: Z,
|
|
83342
|
-
totalItems:
|
|
83343
|
+
totalItems: ne,
|
|
83343
83344
|
showRecordCount: J = !1,
|
|
83344
83345
|
getInnerRowData: ce,
|
|
83345
83346
|
maxLevel: ze,
|
|
@@ -83373,15 +83374,15 @@ const uS = (t) => {
|
|
|
83373
83374
|
onPendingEditsChange: Je,
|
|
83374
83375
|
onCancelPendingEdits: Ot
|
|
83375
83376
|
}) => {
|
|
83376
|
-
const ft = yn(), ui = !!e?.search, kr = r?.columnFilters?.length > 0, vr = ui || kr, Tr = !!m, Ge = ft?.getTableView?.(t) ?? null, [gt, ir] = X(Ge || null), [Ct, ar] = X(!1), [la, Aa] = X(!1), [Hl, Fo] = X(null), [Ft, Uo] = X(o), Fl = (u.length === 0 || !Ft.length) && !v, [Ul, Ua] = X(null), [Fc, zo] = X(!1), [Pi, Uc] = X(null), [zc, le] = X(!1), [He, je] = X(null), [Mt, bt] = X(null), [Or, ua] = X({}), [or, pr] = X(null), [zl, Bo] = X(!1), [ci, Bl] = X(0), ql =
|
|
83377
|
+
const ft = yn(), ui = !!e?.search, kr = r?.columnFilters?.length > 0, vr = ui || kr, Tr = !!m, Ge = ft?.getTableView?.(t) ?? null, [gt, ir] = X(Ge || null), [Ct, ar] = X(!1), [la, Aa] = X(!1), [Hl, Fo] = X(null), [Ft, Uo] = X(o), Fl = (u.length === 0 || !Ft.length) && !v, [Ul, Ua] = X(null), [Fc, zo] = X(!1), [Pi, Uc] = X(null), [zc, le] = X(!1), [He, je] = X(null), [Mt, bt] = X(null), [Or, ua] = X({}), [or, pr] = X(null), [zl, Bo] = X(!1), [ci, Bl] = X(0), ql = ae(null), qo = ae(null), [Bc, Cr] = X({ width: 0, height: 0 }), [Un, xn] = X(null), [an, za] = X(null), [Vo, Wo] = X(null), [b3, _3] = X(null), [qc, Xo] = X({}), Vc = ae(!1), Wc = ae(gt);
|
|
83377
83378
|
Wc.current = gt;
|
|
83378
|
-
const v3 =
|
|
83379
|
+
const v3 = ae(ft);
|
|
83379
83380
|
v3.current = ft;
|
|
83380
|
-
const y3 =
|
|
83381
|
+
const y3 = ae(o);
|
|
83381
83382
|
y3.current = o;
|
|
83382
|
-
const Vl =
|
|
83383
|
+
const Vl = ae(r);
|
|
83383
83384
|
Vl.current = r;
|
|
83384
|
-
const x3 =
|
|
83385
|
+
const x3 = ae(null), S3 = ae(() => ({})), E3 = ae(() => ({})), [Pt, Li] = X({}), Xc = ue(
|
|
83385
83386
|
(de, be, Ve) => {
|
|
83386
83387
|
Li((rt) => {
|
|
83387
83388
|
const ht = rt[de]?.[be];
|
|
@@ -83399,7 +83400,7 @@ const uS = (t) => {
|
|
|
83399
83400
|
},
|
|
83400
83401
|
[Ft]
|
|
83401
83402
|
), w3 = ue(() => Object.values(Pt).some((de) => Object.keys(de).length > 0), [Pt]);
|
|
83402
|
-
|
|
83403
|
+
re(() => {
|
|
83403
83404
|
Ke && Ke({ addPendingEdit: Xc, hasPendingEdits: w3 });
|
|
83404
83405
|
}, [Ke, Xc, w3]);
|
|
83405
83406
|
const VO = ue((de, be) => {
|
|
@@ -83524,7 +83525,7 @@ const uS = (t) => {
|
|
|
83524
83525
|
},
|
|
83525
83526
|
[Pt, u, I, M, jo, Wl, Ba, ft]
|
|
83526
83527
|
), qa = Pe(() => Object.values(Pt).reduce((de, be) => de + Object.keys(be).length, 0), [Pt]);
|
|
83527
|
-
|
|
83528
|
+
re(() => {
|
|
83528
83529
|
Je?.(qa > 0, qa);
|
|
83529
83530
|
}, [qa, Je]);
|
|
83530
83531
|
const GO = Pe(() => {
|
|
@@ -83575,7 +83576,7 @@ const uS = (t) => {
|
|
|
83575
83576
|
), { getTableProps: N3, getTableBodyProps: D3, headerGroups: Ql, prepareRow: R3, rows: ca } = lC;
|
|
83576
83577
|
x3.current = Ql;
|
|
83577
83578
|
const AC = JSON.stringify(Ql[0]?.headers?.map((de) => de?.Header));
|
|
83578
|
-
|
|
83579
|
+
re(() => {
|
|
83579
83580
|
if (dt) {
|
|
83580
83581
|
const de = x3.current;
|
|
83581
83582
|
dt?.(de?.[0]?.headers?.map((be) => be?.Header) ?? []);
|
|
@@ -83664,7 +83665,7 @@ const uS = (t) => {
|
|
|
83664
83665
|
unsaved: !0
|
|
83665
83666
|
});
|
|
83666
83667
|
};
|
|
83667
|
-
|
|
83668
|
+
re(() => {
|
|
83668
83669
|
r?.columnFilters?.length > 0 && ar(!0);
|
|
83669
83670
|
const de = Wc.current;
|
|
83670
83671
|
if (JSON.stringify(de?.filters || []) !== JSON.stringify(r?.columnFilters || [])) {
|
|
@@ -83674,24 +83675,24 @@ const uS = (t) => {
|
|
|
83674
83675
|
ir({ ...ht, filters: JSON.parse(JSON.stringify(r?.columnFilters || [])), unsaved: !0 });
|
|
83675
83676
|
}
|
|
83676
83677
|
}
|
|
83677
|
-
}, [r?.columnFilters]),
|
|
83678
|
+
}, [r?.columnFilters]), re(() => {
|
|
83678
83679
|
n?.columnSort?.field ? (Aa(!0), n.columnSort.order === "asc" ? (je(n.columnSort.field), bt(null)) : n.columnSort.order === "desc" && (bt(n.columnSort.field), je(null))) : (je(null), bt(null));
|
|
83679
|
-
}, [n?.columnSort?.field, n?.columnSort?.order]),
|
|
83680
|
+
}, [n?.columnSort?.field, n?.columnSort?.order]), re(() => {
|
|
83680
83681
|
Uo(lS(Wc.current?.columns || [], o));
|
|
83681
|
-
}, [o]),
|
|
83682
|
+
}, [o]), re(() => {
|
|
83682
83683
|
gt?.unsaved && v3.current?.persistTableView?.(gt);
|
|
83683
|
-
}, [gt]),
|
|
83684
|
+
}, [gt]), re(() => {
|
|
83684
83685
|
ua(E3.current());
|
|
83685
|
-
}, [ca.length]),
|
|
83686
|
+
}, [ca.length]), re(() => {
|
|
83686
83687
|
ir(Ge || null), Ge?.columns && Uo(lS(Ge?.columns || [], y3.current)), Ge?.filters && Ge.filters.length > 0 && !Vc.current ? (requestAnimationFrame(() => {
|
|
83687
83688
|
Vl.current?.onFilter?.(Ge.filters);
|
|
83688
83689
|
}), Vc.current = !0) : Ge?.filters && Vc.current && JSON.stringify(Ge.filters) !== JSON.stringify(Vl.current?.columnFilters) && Vl.current?.onFilter?.(Ge.filters);
|
|
83689
|
-
}, [Ge]),
|
|
83690
|
+
}, [Ge]), re(() => {
|
|
83690
83691
|
if (ql.current) {
|
|
83691
83692
|
const de = new ResizeObserver((be) => Bl(be[0].contentRect.width));
|
|
83692
83693
|
return de.observe(ql.current), () => de.disconnect();
|
|
83693
83694
|
}
|
|
83694
|
-
}, []),
|
|
83695
|
+
}, []), re(() => {
|
|
83695
83696
|
if (!qo.current) return;
|
|
83696
83697
|
const de = new ResizeObserver((be) => {
|
|
83697
83698
|
const { width: Ve, height: rt } = be[0].contentRect;
|
|
@@ -83841,7 +83842,7 @@ const uS = (t) => {
|
|
|
83841
83842
|
e?.allowAStarSearch,
|
|
83842
83843
|
l
|
|
83843
83844
|
]);
|
|
83844
|
-
return
|
|
83845
|
+
return re(() => {
|
|
83845
83846
|
Ze && Ze(Gc);
|
|
83846
83847
|
}, [Gc, Ze]), /* @__PURE__ */ T(
|
|
83847
83848
|
ai.Provider,
|
|
@@ -83964,8 +83965,8 @@ const uS = (t) => {
|
|
|
83964
83965
|
]
|
|
83965
83966
|
}
|
|
83966
83967
|
),
|
|
83967
|
-
/* @__PURE__ */ A(
|
|
83968
|
-
/* @__PURE__ */ A(
|
|
83968
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "semibold", appearance: "title", children: (ne ?? u.length).toLocaleString() }),
|
|
83969
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "regular", appearance: "subtitle", children: "total records" })
|
|
83969
83970
|
] }) : i?.preContent ? /* @__PURE__ */ A("div", { className: "flex justify-start items-center min-w-0 shrink-0", children: i.preContent }) : null
|
|
83970
83971
|
] }),
|
|
83971
83972
|
/* @__PURE__ */ T(
|
|
@@ -83983,48 +83984,42 @@ const uS = (t) => {
|
|
|
83983
83984
|
}
|
|
83984
83985
|
) : null,
|
|
83985
83986
|
i?.showDivider ? /* @__PURE__ */ A("div", { className: "border-b pb-2 w-full dark:bg-black-800" }) : null,
|
|
83986
|
-
Ct || la ? /* @__PURE__ */
|
|
83987
|
-
|
|
83988
|
-
|
|
83989
|
-
|
|
83990
|
-
|
|
83991
|
-
|
|
83992
|
-
|
|
83993
|
-
|
|
83994
|
-
|
|
83995
|
-
|
|
83996
|
-
|
|
83997
|
-
|
|
83998
|
-
|
|
83999
|
-
|
|
84000
|
-
|
|
84001
|
-
|
|
84002
|
-
|
|
84003
|
-
|
|
84004
|
-
|
|
84005
|
-
|
|
84006
|
-
|
|
84007
|
-
|
|
84008
|
-
|
|
84009
|
-
|
|
84010
|
-
|
|
84011
|
-
|
|
84012
|
-
|
|
84013
|
-
|
|
84014
|
-
|
|
84015
|
-
|
|
84016
|
-
|
|
84017
|
-
|
|
84018
|
-
|
|
84019
|
-
|
|
84020
|
-
})
|
|
84021
|
-
] }) : null
|
|
84022
|
-
] }),
|
|
84023
|
-
r?.columnFilters?.length > 0 && (re || 0) > 0 ? /* @__PURE__ */ T(ae, { size: "small", variant: "medium", appearance: "subtitle", children: [
|
|
84024
|
-
re,
|
|
84025
|
-
" Results"
|
|
83987
|
+
Ct || la ? /* @__PURE__ */ A("div", { className: "flex justify-between items-center pb-4 dark:bg-black-800", children: /* @__PURE__ */ T("div", { className: "flex gap-2 items-center", children: [
|
|
83988
|
+
la && ft?.renderSortItem ? ft.renderSortItem({ sort: n?.columnSort, onRemoveSort: jc, onSort: n?.onSort, tableHeaders: Ft, data: u }) : null,
|
|
83989
|
+
Ct && la && n?.columnSort?.field !== "" ? /* @__PURE__ */ A("div", { className: "h-8 w-[1px] flex-shrink-0 bg-neutral-200" }) : null,
|
|
83990
|
+
Ct ? /* @__PURE__ */ T("div", { className: "flex gap-2 items-center", children: [
|
|
83991
|
+
(kr || r?.onResetFilter) && ft?.renderActiveFilters && ft.renderActiveFilters({
|
|
83992
|
+
filters: r?.columnFilters,
|
|
83993
|
+
onRemoveFilter: r?.onRemoveFilter,
|
|
83994
|
+
onClearFilter: r?.onClearFilter,
|
|
83995
|
+
onResetFilter: r?.onResetFilter,
|
|
83996
|
+
onFilter: r?.onFilter,
|
|
83997
|
+
tableHeaders: Ft,
|
|
83998
|
+
columnFilters: r?.columnFilters,
|
|
83999
|
+
modelName: s,
|
|
84000
|
+
enableMasterDataEnumSuggestions: l,
|
|
84001
|
+
noSpacing: !0,
|
|
84002
|
+
notionStyle: r?.notionStyle,
|
|
84003
|
+
context: r?.context,
|
|
84004
|
+
data: u
|
|
84005
|
+
}),
|
|
84006
|
+
ft?.renderFilterButtons && ft.renderFilterButtons({
|
|
84007
|
+
onClearFilter: r?.onClearFilter,
|
|
84008
|
+
onClose: gC,
|
|
84009
|
+
modelName: s,
|
|
84010
|
+
enableMasterDataEnumSuggestions: l,
|
|
84011
|
+
defaultFilterColumn: Hl,
|
|
84012
|
+
resetDefaultFilterColumn: () => Fo(null),
|
|
84013
|
+
column: Pi,
|
|
84014
|
+
onFilter: r?.onFilter,
|
|
84015
|
+
tableHeaders: Ft,
|
|
84016
|
+
columnFilters: r?.columnFilters,
|
|
84017
|
+
data: u,
|
|
84018
|
+
notionStyle: r?.notionStyle,
|
|
84019
|
+
context: r?.context
|
|
84020
|
+
})
|
|
84026
84021
|
] }) : null
|
|
84027
|
-
] }) : null,
|
|
84022
|
+
] }) }) : null,
|
|
84028
84023
|
G && Object.keys(G).length ? /* @__PURE__ */ A(Wb, { ...G }) : null,
|
|
84029
84024
|
!d && J ? /* @__PURE__ */ T("div", { className: "flex items-center gap-1.5 mb-2", children: [
|
|
84030
84025
|
/* @__PURE__ */ T(
|
|
@@ -84049,8 +84044,8 @@ const uS = (t) => {
|
|
|
84049
84044
|
]
|
|
84050
84045
|
}
|
|
84051
84046
|
),
|
|
84052
|
-
/* @__PURE__ */ A(
|
|
84053
|
-
/* @__PURE__ */ A(
|
|
84047
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "semibold", appearance: "title", children: (ne ?? u.length).toLocaleString() }),
|
|
84048
|
+
/* @__PURE__ */ A(oe, { size: "small", variant: "regular", appearance: "subtitle", children: "total records" })
|
|
84054
84049
|
] }) : !d && i?.preContent ? /* @__PURE__ */ A("div", { className: "flex items-center mb-2", children: i.preContent }) : null,
|
|
84055
84050
|
/* @__PURE__ */ A(
|
|
84056
84051
|
"div",
|
|
@@ -84477,7 +84472,7 @@ export {
|
|
|
84477
84472
|
Oi as Toggle,
|
|
84478
84473
|
Re as Tooltip,
|
|
84479
84474
|
pce as TutorialsSkeleton,
|
|
84480
|
-
|
|
84475
|
+
oe as Typography,
|
|
84481
84476
|
ed as UNIVERSAL_DATETIME_FORMAT,
|
|
84482
84477
|
kR as UNIVERSAL_DATE_FORMAT,
|
|
84483
84478
|
Yue as UnsavedChangesModal,
|