@lax-wp/design-system 0.13.13 → 0.13.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +20 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +287 -281
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -13,7 +13,7 @@ import { DebounceInput as gp } from "react-debounce-input";
|
|
|
13
13
|
import * as fA from "country-flag-icons/react/1x1";
|
|
14
14
|
import { formatDistanceToNow as _9, format as v9 } from "date-fns";
|
|
15
15
|
import { utcToZonedTime as y9 } from "date-fns-tz";
|
|
16
|
-
import
|
|
16
|
+
import bt from "dayjs";
|
|
17
17
|
import { kt as mo, m3 as V0, MP as ba, rf as pA, nO as E9, EP as x9, yb as S9, tL as w9, JV as k9, JP as w3, UX as T9, oE as k3, m1 as C9, Qn as N9, tZ as _p, uX as D9, m7 as L9, dk as R9, WJ as HA, dW as O9, eh as P9, dy as I9, agz as M9, agA as H9, aes as F9, JS as U9, Mz as z9, W as B9, wz as ho, JT as bo } from "./icons.generated-C1EbGgTL.js";
|
|
18
18
|
import q9 from "dayjs/plugin/customParseFormat";
|
|
19
19
|
import V9 from "dayjs/plugin/localeData";
|
|
@@ -790,7 +790,7 @@ const hr = ({ labels: e = [] }) => {
|
|
|
790
790
|
onConfidenceScoreClick: ee,
|
|
791
791
|
...X
|
|
792
792
|
}, B) => {
|
|
793
|
-
const { t: Z } = Nt(), ie = !!(F && U?.color), q = K === "modified" && !n && !i && !ie, Y = K === "deleted" && !n && !i && !ie, J = K === "success" && !n && !i && !ie, [
|
|
793
|
+
const { t: Z } = Nt(), ie = !!(F && U?.color), q = K === "modified" && !n && !i && !ie, Y = K === "deleted" && !n && !i && !ie, J = K === "success" && !n && !i && !ie, [re, le] = W(!1), [Ee, xe] = W(!1), Ne = (fe) => {
|
|
794
794
|
j && j({
|
|
795
795
|
key: C,
|
|
796
796
|
value: fe
|
|
@@ -969,10 +969,10 @@ const hr = ({ labels: e = [] }) => {
|
|
|
969
969
|
{
|
|
970
970
|
className: "absolute inset-y-0 flex items-center cursor-pointer right-2",
|
|
971
971
|
onClick: () => {
|
|
972
|
-
le(!
|
|
972
|
+
le(!re), p?.(!re);
|
|
973
973
|
},
|
|
974
974
|
type: "button",
|
|
975
|
-
children:
|
|
975
|
+
children: re ? /* @__PURE__ */ A(q8, { className: "text-gray-400", size: 16 }) : /* @__PURE__ */ A(V8, { className: "text-gray-400", size: 16 })
|
|
976
976
|
}
|
|
977
977
|
) : R && X.value ? /* @__PURE__ */ A(
|
|
978
978
|
"button",
|
|
@@ -1239,7 +1239,7 @@ const CV = it(
|
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
Q.onKeyDown?.(le);
|
|
1242
|
-
},
|
|
1242
|
+
}, re = () => {
|
|
1243
1243
|
F && F({
|
|
1244
1244
|
key: T,
|
|
1245
1245
|
value: r || ""
|
|
@@ -1332,7 +1332,7 @@ const CV = it(
|
|
|
1332
1332
|
{
|
|
1333
1333
|
id: "btn-textarea-field-add-to-document",
|
|
1334
1334
|
className: "cursor-pointer",
|
|
1335
|
-
onClick:
|
|
1335
|
+
onClick: re,
|
|
1336
1336
|
type: "button",
|
|
1337
1337
|
children: /* @__PURE__ */ A(Mt, { placement: "top", title: ee("Add to document"), children: /* @__PURE__ */ A(
|
|
1338
1338
|
la,
|
|
@@ -1516,7 +1516,7 @@ const Gt = ({
|
|
|
1516
1516
|
MasterDataModal: ee,
|
|
1517
1517
|
parseMasterDataFormula: X
|
|
1518
1518
|
}, B) => {
|
|
1519
|
-
const { t: Z } = Nt(), [ie, q] = W(!1), [Y, J] = W(null), [
|
|
1519
|
+
const { t: Z } = Nt(), [ie, q] = W(!1), [Y, J] = W(null), [re, le] = W(!1), [Ee, xe] = W(""), [Ne, fe] = W(null), [We, we] = W(!1), Le = Ae(null), Je = B || Le;
|
|
1520
1520
|
ae(() => {
|
|
1521
1521
|
const pe = () => {
|
|
1522
1522
|
const ve = Je.current || Le.current;
|
|
@@ -1529,7 +1529,7 @@ const Gt = ({
|
|
|
1529
1529
|
Y !== null && Y !== a && n(Y, Ne);
|
|
1530
1530
|
}, [Y, Ne]);
|
|
1531
1531
|
const ue = () => {
|
|
1532
|
-
Q?.(!
|
|
1532
|
+
Q?.(!re), le(!re);
|
|
1533
1533
|
}, ke = (pe) => {
|
|
1534
1534
|
if (pe.keyCode === 9 || pe.key === "Enter") {
|
|
1535
1535
|
const ve = Je.current || Le.current;
|
|
@@ -1548,10 +1548,10 @@ const Gt = ({
|
|
|
1548
1548
|
}, G = () => {
|
|
1549
1549
|
const pe = "border h-[32px] text-sm rounded-lg block w-full p-2.5 pr-16 font-inter font-medium", ve = i ? "border-red-300" : F && U?.color ? `border-${U?.color}-300` : "border-gray-300 dark:border-black-600", Xe = "placeholder:text-neutral-900 dark:placeholder:text-black-400", Qe = `${F && U?.color ? `bg-${U?.color}-50` : "bg-gray-200 dark:bg-black-600 "} ${h || "text-neutral-900 dark:text-black-200"}`;
|
|
1550
1550
|
return `${pe} ${ve} ${Qe} ${Xe}`;
|
|
1551
|
-
},
|
|
1551
|
+
}, te = () => Y !== null ? Y : c && X ? X(c, I) : a;
|
|
1552
1552
|
return ae(() => {
|
|
1553
|
-
|
|
1554
|
-
}, [
|
|
1553
|
+
re && !u && (K?.(), le(!1));
|
|
1554
|
+
}, [re, u, K]), /* @__PURE__ */ w(
|
|
1555
1555
|
"div",
|
|
1556
1556
|
{
|
|
1557
1557
|
className: H(
|
|
@@ -1653,7 +1653,7 @@ const Gt = ({
|
|
|
1653
1653
|
/* @__PURE__ */ A(
|
|
1654
1654
|
Me,
|
|
1655
1655
|
{
|
|
1656
|
-
title: We ?
|
|
1656
|
+
title: We ? te() : "",
|
|
1657
1657
|
children: /* @__PURE__ */ A(
|
|
1658
1658
|
"input",
|
|
1659
1659
|
{
|
|
@@ -1666,7 +1666,7 @@ const Gt = ({
|
|
|
1666
1666
|
n(pe.target.value, Ne), J(pe.target?.value);
|
|
1667
1667
|
},
|
|
1668
1668
|
onKeyDown: ke,
|
|
1669
|
-
value:
|
|
1669
|
+
value: te(),
|
|
1670
1670
|
defaultValue: o,
|
|
1671
1671
|
disabled: !0,
|
|
1672
1672
|
autoComplete: "off",
|
|
@@ -1720,10 +1720,10 @@ const Gt = ({
|
|
|
1720
1720
|
children: i
|
|
1721
1721
|
}
|
|
1722
1722
|
),
|
|
1723
|
-
|
|
1723
|
+
re && ee && /* @__PURE__ */ A(
|
|
1724
1724
|
ee,
|
|
1725
1725
|
{
|
|
1726
|
-
isVisible:
|
|
1726
|
+
isVisible: re,
|
|
1727
1727
|
onSelected: Re,
|
|
1728
1728
|
onClose: ue,
|
|
1729
1729
|
masterDataColumnName: d,
|
|
@@ -1874,7 +1874,7 @@ const G8 = (e) => Array.isArray(e) ? e.map(
|
|
|
1874
1874
|
labelExtra: q,
|
|
1875
1875
|
inputEmphasis: Y = "default",
|
|
1876
1876
|
...J
|
|
1877
|
-
},
|
|
1877
|
+
}, re) => {
|
|
1878
1878
|
const { t: le } = Nt(), [Ee, xe] = W(!1), Ne = Y === "modified" && !a && !(j && O?.color), fe = Y === "deleted" && !a && !(j && O?.color), We = Y === "success" && !a && !(j && O?.color), we = Ae(null), [Le, Je] = W(!1), [ue, ke] = W("");
|
|
1879
1879
|
ae(() => {
|
|
1880
1880
|
const _e = "select-field-scrollbar-styles";
|
|
@@ -1934,20 +1934,20 @@ const G8 = (e) => Array.isArray(e) ? e.map(
|
|
|
1934
1934
|
g?.(qe?.map((Oe) => ({ label: Oe, value: Oe })));
|
|
1935
1935
|
} else
|
|
1936
1936
|
g?.(Se);
|
|
1937
|
-
},
|
|
1937
|
+
}, te = K8({
|
|
1938
1938
|
options: n,
|
|
1939
1939
|
value: t,
|
|
1940
1940
|
defaultValue: J?.defaultValue
|
|
1941
|
-
}), pe = De(() =>
|
|
1942
|
-
if (!r || r !== "multiple" ||
|
|
1941
|
+
}), pe = De(() => te.length > 0 || Te != null, [te, Te]), ve = De(() => {
|
|
1942
|
+
if (!r || r !== "multiple" || te.length === 0) return !1;
|
|
1943
1943
|
const _e = Array.isArray(Te) ? Te : [];
|
|
1944
|
-
return
|
|
1944
|
+
return te.map((qe) => qe.value).every(
|
|
1945
1945
|
(qe) => _e.some(
|
|
1946
1946
|
(Oe) => typeof Oe == "object" && Oe !== null && "value" in Oe ? String(Oe.value) === String(qe) : String(Oe) === String(qe)
|
|
1947
1947
|
)
|
|
1948
1948
|
);
|
|
1949
|
-
}, [Te,
|
|
1950
|
-
!r || r !== "multiple" || !g || g(ve ? [] :
|
|
1949
|
+
}, [Te, te, r]), Xe = () => {
|
|
1950
|
+
!r || r !== "multiple" || !g || g(ve ? [] : te);
|
|
1951
1951
|
}, Qe = ce((_e) => {
|
|
1952
1952
|
if (!_e) return;
|
|
1953
1953
|
const Se = new Event("submit", {
|
|
@@ -1969,7 +1969,7 @@ const G8 = (e) => Array.isArray(e) ? e.map(
|
|
|
1969
1969
|
[Le, Te, Qe]
|
|
1970
1970
|
), ot = ce(
|
|
1971
1971
|
(_e) => {
|
|
1972
|
-
const { label: Se, value: qe, onClose: Oe } = _e, Ie =
|
|
1972
|
+
const { label: Se, value: qe, onClose: Oe } = _e, Ie = te.find(
|
|
1973
1973
|
(lt) => String(lt.value) === String(qe)
|
|
1974
1974
|
)?.color || "primary";
|
|
1975
1975
|
return /* @__PURE__ */ A("div", { className: "cursor-pointer me-1 inline-flex", children: /* @__PURE__ */ A(
|
|
@@ -1989,7 +1989,7 @@ const G8 = (e) => Array.isArray(e) ? e.map(
|
|
|
1989
1989
|
}
|
|
1990
1990
|
) });
|
|
1991
1991
|
},
|
|
1992
|
-
[
|
|
1992
|
+
[te, R]
|
|
1993
1993
|
), Ge = ce(
|
|
1994
1994
|
(_e) => {
|
|
1995
1995
|
ke(_e), (s || je)?.(_e);
|
|
@@ -1999,7 +1999,7 @@ const G8 = (e) => Array.isArray(e) ? e.map(
|
|
|
1999
1999
|
return /* @__PURE__ */ w(
|
|
2000
2000
|
"div",
|
|
2001
2001
|
{
|
|
2002
|
-
ref:
|
|
2002
|
+
ref: re,
|
|
2003
2003
|
className: H(
|
|
2004
2004
|
"flex gap-0.5 w-full relative",
|
|
2005
2005
|
Ee && h ? "border rounded-lg border-primary-100 bg-primary-50 p-1" : ""
|
|
@@ -2147,7 +2147,7 @@ const G8 = (e) => Array.isArray(e) ? e.map(
|
|
|
2147
2147
|
{
|
|
2148
2148
|
showSelectAll: U,
|
|
2149
2149
|
mode: r,
|
|
2150
|
-
options:
|
|
2150
|
+
options: te,
|
|
2151
2151
|
searchValue: ue,
|
|
2152
2152
|
handleSelectAll: Xe,
|
|
2153
2153
|
isAllSelected: ve,
|
|
@@ -2157,7 +2157,7 @@ const G8 = (e) => Array.isArray(e) ? e.map(
|
|
|
2157
2157
|
t: le
|
|
2158
2158
|
}
|
|
2159
2159
|
),
|
|
2160
|
-
options:
|
|
2160
|
+
options: te.map(
|
|
2161
2161
|
({
|
|
2162
2162
|
label: _e,
|
|
2163
2163
|
value: Se,
|
|
@@ -3767,7 +3767,7 @@ const n4 = (e, t, r, a = "medium") => {
|
|
|
3767
3767
|
key: k,
|
|
3768
3768
|
value: t ? "Yes" : "No"
|
|
3769
3769
|
});
|
|
3770
|
-
},
|
|
3770
|
+
}, re = () => P === "error" ? "text-red-500 dark:text-red-400" : P === "success" ? "text-green-500 dark:text-green-400" : P === "info" ? "text-primary-500 dark:text-primary-400" : "text-neutral-500 dark:text-neutral-400";
|
|
3771
3771
|
return /* @__PURE__ */ w(
|
|
3772
3772
|
"div",
|
|
3773
3773
|
{
|
|
@@ -3948,7 +3948,7 @@ const n4 = (e, t, r, a = "medium") => {
|
|
|
3948
3948
|
children: /* @__PURE__ */ A(
|
|
3949
3949
|
ne,
|
|
3950
3950
|
{
|
|
3951
|
-
className: H("mt-1",
|
|
3951
|
+
className: H("mt-1", re()),
|
|
3952
3952
|
appearance: "custom",
|
|
3953
3953
|
size: "extra-small",
|
|
3954
3954
|
variant: "medium",
|
|
@@ -4321,7 +4321,7 @@ const aA = (e, t) => {
|
|
|
4321
4321
|
if (!e)
|
|
4322
4322
|
return o;
|
|
4323
4323
|
try {
|
|
4324
|
-
if (!
|
|
4324
|
+
if (!bt(e).isValid())
|
|
4325
4325
|
return o;
|
|
4326
4326
|
const u = f4(e.toString(), l);
|
|
4327
4327
|
if (Number.isNaN(u.getTime()))
|
|
@@ -4441,25 +4441,25 @@ const aA = (e, t) => {
|
|
|
4441
4441
|
inputEmphasis: ee = "default",
|
|
4442
4442
|
...X
|
|
4443
4443
|
}, B) => {
|
|
4444
|
-
const { t: Z } = Nt(), ie = ee === "modified" && !n && !(j && O?.color), q = ee === "deleted" && !n && !(j && O?.color), Y = ee === "success" && !n && !(j && O?.color), [J,
|
|
4444
|
+
const { t: Z } = Nt(), ie = ee === "modified" && !n && !(j && O?.color), q = ee === "deleted" && !n && !(j && O?.color), Y = ee === "success" && !n && !(j && O?.color), [J, re] = W(!1), [le, Ee] = W([]), [xe, Ne] = W(""), [fe, We] = W(
|
|
4445
4445
|
C || "USD"
|
|
4446
4446
|
), [we, Le] = W(!1), Je = (G) => {
|
|
4447
4447
|
if (F) {
|
|
4448
|
-
const
|
|
4448
|
+
const te = {
|
|
4449
4449
|
key: S,
|
|
4450
4450
|
value: rn(G, fe)
|
|
4451
4451
|
};
|
|
4452
|
-
F(
|
|
4452
|
+
F(te);
|
|
4453
4453
|
}
|
|
4454
4454
|
}, ue = (G) => {
|
|
4455
4455
|
if (G == null) return "";
|
|
4456
|
-
const
|
|
4457
|
-
return isNaN(
|
|
4456
|
+
const te = Number(G);
|
|
4457
|
+
return isNaN(te) ? G : te?.toLocaleString("en-US", {
|
|
4458
4458
|
minimumFractionDigits: 2,
|
|
4459
4459
|
maximumFractionDigits: 2
|
|
4460
4460
|
});
|
|
4461
4461
|
}, ke = (G) => {
|
|
4462
|
-
const
|
|
4462
|
+
const te = G.target.value, pe = te === "" || te === null || te === void 0 ? 0 : Number(te);
|
|
4463
4463
|
a(pe, fe);
|
|
4464
4464
|
const ve = document.getElementById(e);
|
|
4465
4465
|
if (ve && ve.setAttribute(
|
|
@@ -4483,9 +4483,9 @@ const aA = (e, t) => {
|
|
|
4483
4483
|
ve.dispatchEvent(Xe);
|
|
4484
4484
|
}
|
|
4485
4485
|
}, Re = () => {
|
|
4486
|
-
|
|
4486
|
+
re(!0);
|
|
4487
4487
|
}, Te = () => {
|
|
4488
|
-
|
|
4488
|
+
re(!1), (r == null || r === "") && ke({
|
|
4489
4489
|
target: { value: "0.00" }
|
|
4490
4490
|
}), P?.();
|
|
4491
4491
|
}, je = () => {
|
|
@@ -4498,8 +4498,8 @@ const aA = (e, t) => {
|
|
|
4498
4498
|
if (fe) {
|
|
4499
4499
|
const G = r === "" || r === null || r === void 0 ? 0 : Number(r);
|
|
4500
4500
|
C !== fe && a(G, fe);
|
|
4501
|
-
const
|
|
4502
|
-
if (
|
|
4501
|
+
const te = document.getElementById(e);
|
|
4502
|
+
if (te && (te.setAttribute(
|
|
4503
4503
|
"data-selected-value",
|
|
4504
4504
|
JSON.stringify({
|
|
4505
4505
|
value: G,
|
|
@@ -4517,24 +4517,24 @@ const aA = (e, t) => {
|
|
|
4517
4517
|
type: "change"
|
|
4518
4518
|
}
|
|
4519
4519
|
});
|
|
4520
|
-
|
|
4520
|
+
te.dispatchEvent(pe);
|
|
4521
4521
|
}
|
|
4522
4522
|
}
|
|
4523
4523
|
}, [fe]), ae(() => {
|
|
4524
4524
|
const G = Ff.filter(
|
|
4525
|
-
(
|
|
4526
|
-
).map((
|
|
4525
|
+
(te) => (te.value + " - " + te.label).toLowerCase().includes(xe.toLowerCase())
|
|
4526
|
+
).map((te) => ({
|
|
4527
4527
|
label: /* @__PURE__ */ A(
|
|
4528
4528
|
Ar,
|
|
4529
4529
|
{
|
|
4530
|
-
text: `${
|
|
4531
|
-
icon: aA(
|
|
4532
|
-
showTick: fe ===
|
|
4533
|
-
onClick: () => We(
|
|
4530
|
+
text: `${te.value} - ${te.label}`,
|
|
4531
|
+
icon: aA(te.value),
|
|
4532
|
+
showTick: fe === te.value,
|
|
4533
|
+
onClick: () => We(te.value),
|
|
4534
4534
|
className: "text-black-900 dark:text-white"
|
|
4535
4535
|
}
|
|
4536
4536
|
),
|
|
4537
|
-
key:
|
|
4537
|
+
key: te.value
|
|
4538
4538
|
}));
|
|
4539
4539
|
Ee(G);
|
|
4540
4540
|
}, [xe, fe]), ae(() => {
|
|
@@ -4718,7 +4718,7 @@ const aA = (e, t) => {
|
|
|
4718
4718
|
{
|
|
4719
4719
|
id: "search-bar-currency-input",
|
|
4720
4720
|
value: xe,
|
|
4721
|
-
onChange: (
|
|
4721
|
+
onChange: (te) => Ne(te),
|
|
4722
4722
|
className: "mb-2"
|
|
4723
4723
|
}
|
|
4724
4724
|
),
|
|
@@ -5069,7 +5069,7 @@ const { RangePicker: G0 } = Of, Y0 = {
|
|
|
5069
5069
|
labelExtra: E,
|
|
5070
5070
|
inputEmphasis: S = "default"
|
|
5071
5071
|
}) => {
|
|
5072
|
-
const x = S === "modified" && !o, T = S === "deleted" && !o, k = S === "success" && !o, C = x ? "var(--Warning-50, #FFFAEB)" : T ? "var(--Error-50, #FEF2F2)" : k ? "var(--Success-50, #F0FDF4)" : "", N = x ? "var(--Warning-200, #FEDF89)" : T ? "var(--Error-200, #FECACA)" : k ? "var(--Success-200, #BBF7D0)" : "", [D, I] = W(!1), [P, L] = W(!1), R = Ae(null), U = Ae(null), F = Ae(!1), O = Ae(!1), j = (q) => q ?
|
|
5072
|
+
const x = S === "modified" && !o, T = S === "deleted" && !o, k = S === "success" && !o, C = x ? "var(--Warning-50, #FFFAEB)" : T ? "var(--Error-50, #FEF2F2)" : k ? "var(--Success-50, #F0FDF4)" : "", N = x ? "var(--Warning-200, #FEDF89)" : T ? "var(--Error-200, #FECACA)" : k ? "var(--Success-200, #BBF7D0)" : "", [D, I] = W(!1), [P, L] = W(!1), R = Ae(null), U = Ae(null), F = Ae(!1), O = Ae(!1), j = (q) => q ? bt(q) : null, Q = `date-range-start-${K0()}`, K = `date-range-end-${K0()}`, ee = () => {
|
|
5073
5073
|
I(!0), setTimeout(() => {
|
|
5074
5074
|
R.current && R.current.focus();
|
|
5075
5075
|
}, 0);
|
|
@@ -5077,11 +5077,11 @@ const { RangePicker: G0 } = Of, Y0 = {
|
|
|
5077
5077
|
_4("keydown", (q) => {
|
|
5078
5078
|
if (q.key === Y0.ENTER && document.activeElement instanceof HTMLInputElement) {
|
|
5079
5079
|
if (document?.activeElement?.id === Q) {
|
|
5080
|
-
const Y =
|
|
5080
|
+
const Y = bt(document?.activeElement?.value);
|
|
5081
5081
|
Y.isValid() && t([Y, j(i)]);
|
|
5082
5082
|
}
|
|
5083
5083
|
if (document?.activeElement?.id === K) {
|
|
5084
|
-
const Y =
|
|
5084
|
+
const Y = bt(document?.activeElement?.value);
|
|
5085
5085
|
Y.isValid() && t([j(n), Y]);
|
|
5086
5086
|
}
|
|
5087
5087
|
}
|
|
@@ -5097,8 +5097,8 @@ const { RangePicker: G0 } = Of, Y0 = {
|
|
|
5097
5097
|
q.preventDefault(), q.stopPropagation();
|
|
5098
5098
|
const J = q.target.closest("form");
|
|
5099
5099
|
if (J) {
|
|
5100
|
-
const
|
|
5101
|
-
|
|
5100
|
+
const re = J.querySelector('button[type="submit"]');
|
|
5101
|
+
re ? re.click() : J.requestSubmit();
|
|
5102
5102
|
}
|
|
5103
5103
|
}
|
|
5104
5104
|
}, [h, D, y, P]), Z = ce((q) => {
|
|
@@ -5212,10 +5212,10 @@ const { RangePicker: G0 } = Of, Y0 = {
|
|
|
5212
5212
|
] });
|
|
5213
5213
|
};
|
|
5214
5214
|
v4.displayName = "DateRange";
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5215
|
+
bt.extend(j9);
|
|
5216
|
+
bt.extend(q9);
|
|
5217
|
+
bt.extend(W9);
|
|
5218
|
+
bt.extend(V9);
|
|
5219
5219
|
const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "YYYY-MM-DDTHH:mm:ss", $0 = {
|
|
5220
5220
|
ENTER: "Enter"
|
|
5221
5221
|
}, I3 = [
|
|
@@ -5262,11 +5262,11 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5262
5262
|
if (!e) return null;
|
|
5263
5263
|
const r = t ? E4 : I3;
|
|
5264
5264
|
for (const n of r) {
|
|
5265
|
-
const i =
|
|
5265
|
+
const i = bt(e, n, !0);
|
|
5266
5266
|
if (i.isValid())
|
|
5267
5267
|
return i;
|
|
5268
5268
|
}
|
|
5269
|
-
const a =
|
|
5269
|
+
const a = bt(e);
|
|
5270
5270
|
return a.isValid() ? a : null;
|
|
5271
5271
|
}, J0 = (e, t) => {
|
|
5272
5272
|
const r = Ae(t);
|
|
@@ -5317,36 +5317,36 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5317
5317
|
formatDateForGTN: O,
|
|
5318
5318
|
...j
|
|
5319
5319
|
}, Q) => {
|
|
5320
|
-
const { t: K } = Nt(), ee = !!(R && L?.color), X = P === "modified" && !o && !ee, B = P === "deleted" && !o && !ee, Z = P === "success" && !o && !ee, [ie, q] = W(!1), [Y, J] = W(null), [
|
|
5320
|
+
const { t: K } = Nt(), ee = !!(R && L?.color), X = P === "modified" && !o && !ee, B = P === "deleted" && !o && !ee, Z = P === "success" && !o && !ee, [ie, q] = W(!1), [Y, J] = W(null), [re, le] = W(
|
|
5321
5321
|
null
|
|
5322
5322
|
), [Ee, xe] = W(!1), Ne = p || (s ? yo : y4), fe = j?.id || `date-picker-${x4()}`, We = Ae(null), we = Ae(!1);
|
|
5323
5323
|
J0("paste", (G) => {
|
|
5324
|
-
document.activeElement?.id === fe && (G.preventDefault(), navigator.clipboard.readText().then((
|
|
5325
|
-
const pe = Ln(
|
|
5324
|
+
document.activeElement?.id === fe && (G.preventDefault(), navigator.clipboard.readText().then((te) => {
|
|
5325
|
+
const pe = Ln(te, s);
|
|
5326
5326
|
pe && Re(pe);
|
|
5327
5327
|
}));
|
|
5328
5328
|
}), J0("keydown", (G) => {
|
|
5329
5329
|
if (G.key === $0.ENTER && document.activeElement instanceof HTMLInputElement && document.activeElement.id === fe) {
|
|
5330
|
-
const
|
|
5331
|
-
|
|
5330
|
+
const te = Ln(document?.activeElement?.value, s);
|
|
5331
|
+
te && Re(te);
|
|
5332
5332
|
}
|
|
5333
5333
|
});
|
|
5334
5334
|
const Le = ce(
|
|
5335
5335
|
(G) => {
|
|
5336
5336
|
if (!F) return;
|
|
5337
|
-
let
|
|
5337
|
+
let te = G || "";
|
|
5338
5338
|
if (O && G)
|
|
5339
|
-
|
|
5339
|
+
te = O(G, {
|
|
5340
5340
|
skipTimezone: !0,
|
|
5341
5341
|
withTime: s
|
|
5342
5342
|
});
|
|
5343
5343
|
else if (G) {
|
|
5344
|
-
const ve =
|
|
5345
|
-
ve.isValid() && (
|
|
5344
|
+
const ve = bt(G);
|
|
5345
|
+
ve.isValid() && (te = ve.format(Ne));
|
|
5346
5346
|
}
|
|
5347
5347
|
F({
|
|
5348
5348
|
key: x,
|
|
5349
|
-
value:
|
|
5349
|
+
value: te
|
|
5350
5350
|
});
|
|
5351
5351
|
},
|
|
5352
5352
|
[F, x, O, s, Ne]
|
|
@@ -5358,8 +5358,8 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5358
5358
|
}, []), ue = ce(
|
|
5359
5359
|
(G) => {
|
|
5360
5360
|
if (!k) {
|
|
5361
|
-
const
|
|
5362
|
-
if (l(G ? G.format(
|
|
5361
|
+
const te = s ? Z0 : Q0;
|
|
5362
|
+
if (l(G ? G.format(te) : null), G) {
|
|
5363
5363
|
const pe = document.getElementById(fe);
|
|
5364
5364
|
if (pe) {
|
|
5365
5365
|
const ve = new CustomEvent("pilot-date-change", {
|
|
@@ -5377,9 +5377,9 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5377
5377
|
return;
|
|
5378
5378
|
}
|
|
5379
5379
|
if (G) {
|
|
5380
|
-
let
|
|
5381
|
-
if (s ?
|
|
5382
|
-
l(
|
|
5380
|
+
let te;
|
|
5381
|
+
if (s ? te = bt(G).utc().toISOString() : te = bt(G).utc().add(bt(G).utcOffset(), "minute").startOf("day").toISOString(), te) {
|
|
5382
|
+
l(te);
|
|
5383
5383
|
const pe = document.getElementById(fe);
|
|
5384
5384
|
if (pe) {
|
|
5385
5385
|
const ve = new CustomEvent("pilot-date-change", {
|
|
@@ -5403,23 +5403,23 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5403
5403
|
if (!G) return null;
|
|
5404
5404
|
if (!k)
|
|
5405
5405
|
try {
|
|
5406
|
-
const
|
|
5407
|
-
if (
|
|
5408
|
-
return
|
|
5409
|
-
const pe =
|
|
5406
|
+
const te = bt(G);
|
|
5407
|
+
if (te.isValid())
|
|
5408
|
+
return te;
|
|
5409
|
+
const pe = bt(G, Ne);
|
|
5410
5410
|
return pe.isValid() ? pe : null;
|
|
5411
5411
|
} catch {
|
|
5412
5412
|
return null;
|
|
5413
5413
|
}
|
|
5414
5414
|
if (s) {
|
|
5415
|
-
const
|
|
5416
|
-
return
|
|
5415
|
+
const te = bt(G);
|
|
5416
|
+
return bt(te).isValid() ? te : null;
|
|
5417
5417
|
} else if (G?.toString()?.includes("Z")) {
|
|
5418
|
-
const
|
|
5419
|
-
return
|
|
5418
|
+
const te = bt.utc(G);
|
|
5419
|
+
return bt(te).isValid() ? te : null;
|
|
5420
5420
|
} else {
|
|
5421
|
-
const
|
|
5422
|
-
return
|
|
5421
|
+
const te = bt(G);
|
|
5422
|
+
return bt(te).isValid() ? te : null;
|
|
5423
5423
|
}
|
|
5424
5424
|
},
|
|
5425
5425
|
[k, Ne, s]
|
|
@@ -5427,7 +5427,7 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5427
5427
|
(G) => {
|
|
5428
5428
|
if (G?.isValid() || G === null) {
|
|
5429
5429
|
J(G);
|
|
5430
|
-
const
|
|
5430
|
+
const te = s ? Z0 : Q0, pe = k ? G?.toISOString() : G ? G.format(te) : "";
|
|
5431
5431
|
if (l(pe || null), G?.isValid()) {
|
|
5432
5432
|
const ve = document.getElementById(fe);
|
|
5433
5433
|
if (ve) {
|
|
@@ -5450,11 +5450,11 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5450
5450
|
ae(() => {
|
|
5451
5451
|
J(ke(t));
|
|
5452
5452
|
}, [t, ke]), ae(() => {
|
|
5453
|
-
|
|
5454
|
-
}, [
|
|
5453
|
+
re && le(null);
|
|
5454
|
+
}, [re]), ae(() => {
|
|
5455
5455
|
const G = document.getElementById(fe);
|
|
5456
5456
|
if (!G) return;
|
|
5457
|
-
const
|
|
5457
|
+
const te = (pe) => {
|
|
5458
5458
|
const { value: ve, type: Xe } = pe.detail;
|
|
5459
5459
|
if (Xe === "date-playback" && ve) {
|
|
5460
5460
|
const Qe = Ln(ve, s);
|
|
@@ -5480,21 +5480,21 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5480
5480
|
};
|
|
5481
5481
|
return G.addEventListener(
|
|
5482
5482
|
"pilot-date-playback",
|
|
5483
|
-
|
|
5483
|
+
te
|
|
5484
5484
|
), () => {
|
|
5485
5485
|
G.removeEventListener(
|
|
5486
5486
|
"pilot-date-playback",
|
|
5487
|
-
|
|
5487
|
+
te
|
|
5488
5488
|
);
|
|
5489
5489
|
};
|
|
5490
5490
|
}, [fe, Ne, ue, s]);
|
|
5491
5491
|
const Te = ce((G) => {
|
|
5492
5492
|
if (G.key === $0.ENTER && !Ee) {
|
|
5493
5493
|
G.preventDefault(), G.stopPropagation();
|
|
5494
|
-
const
|
|
5495
|
-
if (
|
|
5496
|
-
const pe =
|
|
5497
|
-
pe ? pe.click() :
|
|
5494
|
+
const te = G.target.closest("form");
|
|
5495
|
+
if (te) {
|
|
5496
|
+
const pe = te.querySelector('button[type="submit"]');
|
|
5497
|
+
pe ? pe.click() : te.requestSubmit();
|
|
5498
5498
|
}
|
|
5499
5499
|
}
|
|
5500
5500
|
}, [Ee]), je = ce((G) => {
|
|
@@ -5526,9 +5526,9 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5526
5526
|
onFocus: Je,
|
|
5527
5527
|
onOpenChange: je,
|
|
5528
5528
|
onBlur: (G) => {
|
|
5529
|
-
const
|
|
5530
|
-
if (
|
|
5531
|
-
const pe = Ln(
|
|
5529
|
+
const te = G.target.value;
|
|
5530
|
+
if (te) {
|
|
5531
|
+
const pe = Ln(te, s);
|
|
5532
5532
|
pe && Re(pe);
|
|
5533
5533
|
}
|
|
5534
5534
|
},
|
|
@@ -5669,9 +5669,9 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5669
5669
|
J(G), ue(G), le(G?.toISOString() || null);
|
|
5670
5670
|
},
|
|
5671
5671
|
onBlur: (G) => {
|
|
5672
|
-
const
|
|
5673
|
-
if (
|
|
5674
|
-
const pe = Ln(
|
|
5672
|
+
const te = G.target.value;
|
|
5673
|
+
if (te) {
|
|
5674
|
+
const pe = Ln(te, s);
|
|
5675
5675
|
pe && (J(pe), ue(pe));
|
|
5676
5676
|
}
|
|
5677
5677
|
},
|
|
@@ -5836,7 +5836,7 @@ const w4 = it(
|
|
|
5836
5836
|
showDeprecatedFieldWarning: O,
|
|
5837
5837
|
DynamicDataModal: j
|
|
5838
5838
|
}, Q) => {
|
|
5839
|
-
const { t: K } = Nt(), [ee, X] = W(!1), [B, Z] = W(a), [ie, q] = W(!1), Y = Ae(null), J = Q || Y,
|
|
5839
|
+
const { t: K } = Nt(), [ee, X] = W(!1), [B, Z] = W(a), [ie, q] = W(!1), Y = Ae(null), J = Q || Y, re = () => {
|
|
5840
5840
|
F?.(!ie), q(!ie);
|
|
5841
5841
|
}, le = (fe) => {
|
|
5842
5842
|
if (fe.keyCode === 9 || fe.key === "Enter") {
|
|
@@ -5988,7 +5988,7 @@ const w4 = it(
|
|
|
5988
5988
|
Gt,
|
|
5989
5989
|
{
|
|
5990
5990
|
id: "btn-dynamic-data-input-ai-outline-pic-center",
|
|
5991
|
-
onClick:
|
|
5991
|
+
onClick: re,
|
|
5992
5992
|
className: "absolute inset-y-0 right-8 flex items-center px-2 focus:border-transparent",
|
|
5993
5993
|
variant: "ghost",
|
|
5994
5994
|
disabled: k,
|
|
@@ -6019,7 +6019,7 @@ const w4 = it(
|
|
|
6019
6019
|
onSelect: (fe) => {
|
|
6020
6020
|
n(fe), Z(fe);
|
|
6021
6021
|
},
|
|
6022
|
-
onClose:
|
|
6022
|
+
onClose: re,
|
|
6023
6023
|
dataKey: d,
|
|
6024
6024
|
dataSource: u
|
|
6025
6025
|
}
|
|
@@ -8795,7 +8795,7 @@ const Pt = (e) => {
|
|
|
8795
8795
|
y,
|
|
8796
8796
|
Fe,
|
|
8797
8797
|
He
|
|
8798
|
-
], J = () => ["none", et, Fe, He],
|
|
8798
|
+
], J = () => ["none", et, Fe, He], re = () => ["none", et, Fe, He], le = () => [et, Fe, He], Ee = () => [Ga, "full", ...k()];
|
|
8799
8799
|
return {
|
|
8800
8800
|
cacheSize: 500,
|
|
8801
8801
|
theme: {
|
|
@@ -10770,28 +10770,28 @@ const Pt = (e) => {
|
|
|
10770
10770
|
* @see https://tailwindcss.com/docs/scale
|
|
10771
10771
|
*/
|
|
10772
10772
|
scale: [{
|
|
10773
|
-
scale:
|
|
10773
|
+
scale: re()
|
|
10774
10774
|
}],
|
|
10775
10775
|
/**
|
|
10776
10776
|
* Scale X
|
|
10777
10777
|
* @see https://tailwindcss.com/docs/scale
|
|
10778
10778
|
*/
|
|
10779
10779
|
"scale-x": [{
|
|
10780
|
-
"scale-x":
|
|
10780
|
+
"scale-x": re()
|
|
10781
10781
|
}],
|
|
10782
10782
|
/**
|
|
10783
10783
|
* Scale Y
|
|
10784
10784
|
* @see https://tailwindcss.com/docs/scale
|
|
10785
10785
|
*/
|
|
10786
10786
|
"scale-y": [{
|
|
10787
|
-
"scale-y":
|
|
10787
|
+
"scale-y": re()
|
|
10788
10788
|
}],
|
|
10789
10789
|
/**
|
|
10790
10790
|
* Scale Z
|
|
10791
10791
|
* @see https://tailwindcss.com/docs/scale
|
|
10792
10792
|
*/
|
|
10793
10793
|
"scale-z": [{
|
|
10794
|
-
"scale-z":
|
|
10794
|
+
"scale-z": re()
|
|
10795
10795
|
}],
|
|
10796
10796
|
/**
|
|
10797
10797
|
* Scale 3D
|
|
@@ -11275,19 +11275,19 @@ const xa = H(
|
|
|
11275
11275
|
ee?.active ? ee.exit() : ee.enter();
|
|
11276
11276
|
}, J = Ae(b);
|
|
11277
11277
|
J.current = b;
|
|
11278
|
-
const
|
|
11278
|
+
const re = ce(
|
|
11279
11279
|
async (ue, ke, Re) => {
|
|
11280
11280
|
if (!J.current) return;
|
|
11281
11281
|
const Te = ue.getModel();
|
|
11282
11282
|
if (!Te) return;
|
|
11283
|
-
const je = (
|
|
11284
|
-
startLineNumber:
|
|
11283
|
+
const je = (te, pe) => Te.getValueInRange({
|
|
11284
|
+
startLineNumber: te,
|
|
11285
11285
|
startColumn: 1,
|
|
11286
11286
|
endLineNumber: pe,
|
|
11287
11287
|
endColumn: Te.getLineMaxColumn(pe)
|
|
11288
|
-
}), G = (
|
|
11288
|
+
}), G = (te, pe, ve, Xe, Qe) => {
|
|
11289
11289
|
J.current({
|
|
11290
|
-
startLine:
|
|
11290
|
+
startLine: te,
|
|
11291
11291
|
endLine: pe,
|
|
11292
11292
|
text: ve,
|
|
11293
11293
|
kind: Xe,
|
|
@@ -11297,11 +11297,11 @@ const xa = H(
|
|
|
11297
11297
|
});
|
|
11298
11298
|
};
|
|
11299
11299
|
try {
|
|
11300
|
-
const
|
|
11300
|
+
const te = ue.getContribution(
|
|
11301
11301
|
"editor.contrib.folding"
|
|
11302
11302
|
);
|
|
11303
|
-
if (
|
|
11304
|
-
const nt = await
|
|
11303
|
+
if (te) {
|
|
11304
|
+
const nt = await te.getFoldingModel();
|
|
11305
11305
|
if (nt?.regions) {
|
|
11306
11306
|
const ot = nt.regions, Ge = Te.getLineCount(), _e = [];
|
|
11307
11307
|
for (let Se = 0; Se < ot.length; Se++) {
|
|
@@ -11369,7 +11369,7 @@ const xa = H(
|
|
|
11369
11369
|
}
|
|
11370
11370
|
const je = Te.range.startLineNumber, G = Te.range.startColumn;
|
|
11371
11371
|
ue.setPosition({ lineNumber: je, column: G }), ue.revealLineInCenter(je, 1);
|
|
11372
|
-
const
|
|
11372
|
+
const te = async () => {
|
|
11373
11373
|
try {
|
|
11374
11374
|
const pe = ue.getContribution(
|
|
11375
11375
|
"editor.contrib.folding"
|
|
@@ -11421,7 +11421,7 @@ const xa = H(
|
|
|
11421
11421
|
}
|
|
11422
11422
|
};
|
|
11423
11423
|
requestAnimationFrame(() => {
|
|
11424
|
-
|
|
11424
|
+
te();
|
|
11425
11425
|
});
|
|
11426
11426
|
}, [g, E]);
|
|
11427
11427
|
const le = (ue) => {
|
|
@@ -11449,7 +11449,7 @@ const xa = H(
|
|
|
11449
11449
|
J.current && ue.onMouseDown(() => {
|
|
11450
11450
|
requestAnimationFrame(() => {
|
|
11451
11451
|
const Re = ue.getPosition();
|
|
11452
|
-
Re &&
|
|
11452
|
+
Re && re(ue, Re.lineNumber, Re.column);
|
|
11453
11453
|
});
|
|
11454
11454
|
});
|
|
11455
11455
|
}, Ee = () => {
|
|
@@ -13728,8 +13728,8 @@ function jx(e) {
|
|
|
13728
13728
|
if (!(!i || !t || !r || !n)) {
|
|
13729
13729
|
var o = t.velocityX, l = t.velocityY, s = t.total, u = r.maxPositionX, d = r.minPositionX, c = r.maxPositionY, m = r.minPositionY, p = a.limitToBounds, y = a.alignmentAnimation, _ = a.zoomAnimation, v = a.panning, h = v.lockAxisY, b = v.lockAxisX, g = _.animationType, E = y.sizeX, S = y.sizeY, x = y.velocityAlignmentTime, T = x, k = Bx(e, s), C = Math.max(k, T), N = Ea(e, E), D = Ea(e, S), I = N * n.offsetWidth / 100, P = D * n.offsetHeight / 100, L = u + I, R = d - I, U = c + P, F = m - P, O = e.transformState, j = (/* @__PURE__ */ new Date()).getTime();
|
|
13730
13730
|
dv(e, g, C, function(Q) {
|
|
13731
|
-
var K = e.transformState, ee = K.scale, X = K.positionX, B = K.positionY, Z = (/* @__PURE__ */ new Date()).getTime() - j, ie = Z / T, q = sv[y.animationType], Y = 1 - q(Math.min(1, ie)), J = 1 - Q,
|
|
13732
|
-
(X !==
|
|
13731
|
+
var K = e.transformState, ee = K.scale, X = K.positionX, B = K.positionY, Z = (/* @__PURE__ */ new Date()).getTime() - j, ie = Z / T, q = sv[y.animationType], Y = 1 - q(Math.min(1, ie)), J = 1 - Q, re = X + o * J, le = B + l * J, Ee = p1(re, O.positionX, X, b, p, d, u, R, L, Y), xe = p1(le, O.positionY, B, h, p, m, c, F, U, Y);
|
|
13732
|
+
(X !== re || B !== le) && e.setTransformState(ee, Ee, xe);
|
|
13733
13733
|
});
|
|
13734
13734
|
}
|
|
13735
13735
|
}
|
|
@@ -14975,7 +14975,7 @@ const UV = ({
|
|
|
14975
14975
|
copyOnHover: j = !1,
|
|
14976
14976
|
urlAlias: Q
|
|
14977
14977
|
}, K) => {
|
|
14978
|
-
const [ee, X] = W(!0), [B, Z] = W(!1), [ie, q] = W(null), [Y, J] = W(!1), [
|
|
14978
|
+
const [ee, X] = W(!0), [B, Z] = W(!1), [ie, q] = W(null), [Y, J] = W(!1), [re, le] = W(!1), Ee = Ae(null);
|
|
14979
14979
|
ae(() => () => {
|
|
14980
14980
|
Ee.current && clearTimeout(Ee.current);
|
|
14981
14981
|
}, []);
|
|
@@ -15009,9 +15009,9 @@ const UV = ({
|
|
|
15009
15009
|
]
|
|
15010
15010
|
}
|
|
15011
15011
|
);
|
|
15012
|
-
const
|
|
15013
|
-
return
|
|
15014
|
-
/* @__PURE__ */ A("a", { href: G, className: "text-primary-600 break-all", children:
|
|
15012
|
+
const te = xe(G);
|
|
15013
|
+
return te.length <= Ne ? /* @__PURE__ */ A("a", { href: G, className: "text-primary-600 truncate", children: te }) : /* @__PURE__ */ w("p", { children: [
|
|
15014
|
+
/* @__PURE__ */ A("a", { href: G, className: "text-primary-600 break-all", children: te.slice(0, ee ? Ne : te.length) }),
|
|
15015
15015
|
ee ? "... " : " ",
|
|
15016
15016
|
We()
|
|
15017
15017
|
] });
|
|
@@ -15026,8 +15026,8 @@ const UV = ({
|
|
|
15026
15026
|
}).catch(() => {
|
|
15027
15027
|
});
|
|
15028
15028
|
}, ke = (G) => {
|
|
15029
|
-
const
|
|
15030
|
-
|
|
15029
|
+
const te = G.target.files?.[0];
|
|
15030
|
+
te && N && N(te), G.target.value = "";
|
|
15031
15031
|
}, Re = () => {
|
|
15032
15032
|
const G = typeof r == "string" && p4(r);
|
|
15033
15033
|
if (y && typeof r == "object")
|
|
@@ -15044,14 +15044,20 @@ const UV = ({
|
|
|
15044
15044
|
if (n?.toLowerCase() === "currency")
|
|
15045
15045
|
return rn(r, l?.currency_code) || "-";
|
|
15046
15046
|
if (n?.toLowerCase() === "datetime") {
|
|
15047
|
-
const
|
|
15048
|
-
return ia(
|
|
15047
|
+
const te = typeof r == "string" && r.includes("Z") ? r.replace(/\.000Z$/, "Z") : r;
|
|
15048
|
+
return ia(te, {
|
|
15049
15049
|
skipTimezone: !1,
|
|
15050
15050
|
withTime: !0
|
|
15051
15051
|
});
|
|
15052
15052
|
} else if (n?.toLowerCase() === "date" || G) {
|
|
15053
|
-
|
|
15054
|
-
|
|
15053
|
+
let te = r;
|
|
15054
|
+
if (typeof r == "string" && r.includes("Z"))
|
|
15055
|
+
te = r.replace(/\.000Z$/, "Z");
|
|
15056
|
+
else if (typeof r == "string" && !r.includes("Z")) {
|
|
15057
|
+
const pe = bt(r);
|
|
15058
|
+
te = bt(pe).isValid() ? pe.toString() : r;
|
|
15059
|
+
}
|
|
15060
|
+
return ia(te, {
|
|
15055
15061
|
skipTimezone: !0,
|
|
15056
15062
|
withTime: !1
|
|
15057
15063
|
});
|
|
@@ -15059,9 +15065,9 @@ const UV = ({
|
|
|
15059
15065
|
if (n?.toLowerCase() === "percentage")
|
|
15060
15066
|
return `${r}%`;
|
|
15061
15067
|
if (typeof r == "string" && r.length > Ne) {
|
|
15062
|
-
const
|
|
15068
|
+
const te = xe(r);
|
|
15063
15069
|
return /* @__PURE__ */ w("p", { children: [
|
|
15064
|
-
|
|
15070
|
+
te.slice(0, ee ? Ne : te.length),
|
|
15065
15071
|
ee ? "... " : " ",
|
|
15066
15072
|
We()
|
|
15067
15073
|
] });
|
|
@@ -15161,12 +15167,12 @@ const UV = ({
|
|
|
15161
15167
|
)
|
|
15162
15168
|
}
|
|
15163
15169
|
),
|
|
15164
|
-
j && Y && /* @__PURE__ */ A(Me, { title:
|
|
15170
|
+
j && Y && /* @__PURE__ */ A(Me, { title: re ? "Copied" : `Copy ${t ?? "value"}`, placement: "top", whiteSpace: "pre-wrap", children: /* @__PURE__ */ A(
|
|
15165
15171
|
"button",
|
|
15166
15172
|
{
|
|
15167
15173
|
type: "button",
|
|
15168
15174
|
onClick: ue,
|
|
15169
|
-
"aria-label":
|
|
15175
|
+
"aria-label": re ? `Copied ${t ?? "value"}` : `Copy ${t ?? "value"}`,
|
|
15170
15176
|
className: "p-1 flex items-center justify-center rounded text-neutral-500 hover:!text-primary-600 hover:bg-neutral-100 dark:text-primary-400 dark:hover:!text-primary-600 dark:hover:bg-neutral-800 cursor-pointer",
|
|
15171
15177
|
children: /* @__PURE__ */ w("span", { className: "relative inline-flex h-4 w-4 items-center justify-center", children: [
|
|
15172
15178
|
/* @__PURE__ */ A(
|
|
@@ -15175,7 +15181,7 @@ const UV = ({
|
|
|
15175
15181
|
size: 16,
|
|
15176
15182
|
className: H(
|
|
15177
15183
|
"absolute inset-0 text-primary-600 dark:text-primary-500 transition-all duration-200 ease-out",
|
|
15178
|
-
|
|
15184
|
+
re ? "opacity-0 scale-50 rotate-[-90deg]" : "opacity-100 scale-100 rotate-0"
|
|
15179
15185
|
)
|
|
15180
15186
|
}
|
|
15181
15187
|
),
|
|
@@ -15185,7 +15191,7 @@ const UV = ({
|
|
|
15185
15191
|
size: 16,
|
|
15186
15192
|
className: H(
|
|
15187
15193
|
"absolute inset-0 text-primary-600 dark:text-primary-500 transition-all duration-200 ease-out",
|
|
15188
|
-
|
|
15194
|
+
re ? "opacity-100 scale-100 rotate-0" : "opacity-0 scale-50 rotate-90"
|
|
15189
15195
|
)
|
|
15190
15196
|
}
|
|
15191
15197
|
)
|
|
@@ -19266,11 +19272,11 @@ function zk(e) {
|
|
|
19266
19272
|
var P, L = E === "y" ? ir : or, R = E === "y" ? wr : kr, U = E === "y" ? "height" : "width", F = x[E], O = F + v[L], j = F - v[R], Q = p ? -k[U] / 2 : 0, K = b === ln ? T[U] : k[U], ee = b === ln ? -k[U] : -T[U], X = t.elements.arrow, B = p && X ? qp(X) : {
|
|
19267
19273
|
width: 0,
|
|
19268
19274
|
height: 0
|
|
19269
|
-
}, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : zv(), ie = Z[L], q = Z[R], Y = Xn(0, T[U], B[U]), J = g ? T[U] / 2 - Q - Y - ie - N.mainAxis : K - Y - ie - N.mainAxis,
|
|
19275
|
+
}, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : zv(), ie = Z[L], q = Z[R], Y = Xn(0, T[U], B[U]), J = g ? T[U] / 2 - Q - Y - ie - N.mainAxis : K - Y - ie - N.mainAxis, re = g ? -T[U] / 2 + Q + Y + q + N.mainAxis : ee + Y + q + N.mainAxis, le = t.elements.arrow && vA(t.elements.arrow), Ee = le ? E === "y" ? le.clientTop || 0 : le.clientLeft || 0 : 0, xe = (P = D?.[E]) != null ? P : 0, Ne = F + J - xe - Ee, fe = F + re - xe, We = Xn(p ? pi(O, Ne) : O, F, p ? Pa(j, fe) : j);
|
|
19270
19276
|
x[E] = We, I[E] = We - F;
|
|
19271
19277
|
}
|
|
19272
19278
|
if (l) {
|
|
19273
|
-
var we, Le = E === "x" ? ir : or, Je = E === "x" ? wr : kr, ue = x[S], ke = S === "y" ? "height" : "width", Re = ue + v[Le], Te = ue - v[Je], je = [ir, or].indexOf(h) !== -1, G = (we = D?.[S]) != null ? we : 0,
|
|
19279
|
+
var we, Le = E === "x" ? ir : or, Je = E === "x" ? wr : kr, ue = x[S], ke = S === "y" ? "height" : "width", Re = ue + v[Le], Te = ue - v[Je], je = [ir, or].indexOf(h) !== -1, G = (we = D?.[S]) != null ? we : 0, te = je ? Re : ue - T[ke] - k[ke] - G + N.altAxis, pe = je ? ue + T[ke] + k[ke] - G - N.altAxis : Te, ve = p && je ? uk(te, ue, pe) : Xn(p ? te : Re, ue, p ? pe : Te);
|
|
19274
19280
|
x[S] = ve, I[S] = ve - ue;
|
|
19275
19281
|
}
|
|
19276
19282
|
t.modifiersData[a] = I;
|
|
@@ -23715,7 +23721,7 @@ const yC = ye.memo($v), EC = () => {
|
|
|
23715
23721
|
const q = B.slice(Z + 1).search(/\s/);
|
|
23716
23722
|
let Y;
|
|
23717
23723
|
q === -1 ? Y = B.length : Y = Z + 1 + q;
|
|
23718
|
-
const J = B.slice(0, Z),
|
|
23724
|
+
const J = B.slice(0, Z), re = B.slice(Y), le = `${J}{{${X}}}${re}`;
|
|
23719
23725
|
t(le), E(!1), x(""), setTimeout(() => {
|
|
23720
23726
|
y.current?.focus();
|
|
23721
23727
|
}, 0);
|
|
@@ -24328,9 +24334,9 @@ const Oo = (e) => {
|
|
|
24328
24334
|
linkConfig: R,
|
|
24329
24335
|
showTabOptions: U = !0
|
|
24330
24336
|
}) => {
|
|
24331
|
-
const F = jC(), O = L ? F?.getTabSettings(L) : void 0, j = C ?? O?.tab_items, Q = N ?? O?.tab_options, [K, ee] = W(""), [X, B] = W(!1), [Z, ie] = W(0), [q, Y] = W([]), [J,
|
|
24337
|
+
const F = jC(), O = L ? F?.getTabSettings(L) : void 0, j = C ?? O?.tab_items, Q = N ?? O?.tab_options, [K, ee] = W(""), [X, B] = W(!1), [Z, ie] = W(0), [q, Y] = W([]), [J, re] = W([]), [le, Ee] = W(null), [xe, Ne] = W(null), [fe, We] = W(!1), [we, Le] = W(
|
|
24332
24338
|
Q ?? Jf
|
|
24333
|
-
), [Je, ue] = W(""), [ke, Re] = W("contains"), { showCounts: Te, lockOrder: je, sortOrder: G } = we, { t:
|
|
24339
|
+
), [Je, ue] = W(""), [ke, Re] = W("contains"), { showCounts: Te, lockOrder: je, sortOrder: G } = we, { t: te } = Nt(), pe = Ae(null), ve = Ae(null), Xe = Ae(Z), { measureText: Qe } = WC(), nt = De(() => XC(), []), ot = Ri(
|
|
24334
24340
|
va(vp, { activationConstraint: { distance: 5 } }),
|
|
24335
24341
|
va(yp, { activationConstraint: { delay: 300, tolerance: 5 } })
|
|
24336
24342
|
), Ge = De(() => n && Object.fromEntries(
|
|
@@ -24363,7 +24369,7 @@ const Oo = (e) => {
|
|
|
24363
24369
|
), br = (oe) => oe.is_pinned ? 32 : 0, Lt = ce(
|
|
24364
24370
|
(oe) => {
|
|
24365
24371
|
if (!oe) return;
|
|
24366
|
-
const Pe = s ? 30 : 0, Ve = Te ? 190 : 84,
|
|
24372
|
+
const Pe = s ? 30 : 0, Ve = Te ? 190 : 84, vt = o === "sm" ? 4 : 8, pt = 32;
|
|
24367
24373
|
let Ht = 0, Va = 0, Wt = 0;
|
|
24368
24374
|
const $t = oe - (k?.width || 0) - Pe, wn = Xe.current, sa = wn < Oe.length, ja = Se.length > 0;
|
|
24369
24375
|
for (let Xt = 0; Xt < Oe.length; Xt++) {
|
|
@@ -24375,7 +24381,7 @@ const Oo = (e) => {
|
|
|
24375
24381
|
fontSize: "16px",
|
|
24376
24382
|
fontWeight: "600",
|
|
24377
24383
|
fontFamily: "Inter, system-ui, -apple-system, sans-serif"
|
|
24378
|
-
}), Vr = x ? br(_r) : 0, Rr = Tn + kn + pt +
|
|
24384
|
+
}), Vr = x ? br(_r) : 0, Rr = Tn + kn + pt + vt + Vr;
|
|
24379
24385
|
if (_r.name === r && (Va = Rr), Ht += Rr, $t > Ht + (sa || ja ? Ve : 0) + Xt * 25)
|
|
24380
24386
|
Wt = Xt + 1;
|
|
24381
24387
|
else
|
|
@@ -24393,7 +24399,7 @@ const Oo = (e) => {
|
|
|
24393
24399
|
fontSize: "16px",
|
|
24394
24400
|
fontWeight: "600",
|
|
24395
24401
|
fontFamily: "Inter, system-ui, -apple-system, sans-serif"
|
|
24396
|
-
}), Tn = x ? br(Xt) : 0, Vr = kn + ka + pt +
|
|
24402
|
+
}), Tn = x ? br(Xt) : 0, Vr = kn + ka + pt + vt + Tn;
|
|
24397
24403
|
$t >= Ht + Vr && (Wt += 1);
|
|
24398
24404
|
}
|
|
24399
24405
|
}
|
|
@@ -24432,12 +24438,12 @@ const Oo = (e) => {
|
|
|
24432
24438
|
[Br, Ye, R]
|
|
24433
24439
|
), qr = d || !!R, En = ce(
|
|
24434
24440
|
async (oe) => {
|
|
24435
|
-
const Pe = gr(oe), Ve = typeof window < "u" ? window.location.origin : "",
|
|
24436
|
-
await navigator.clipboard.writeText(pt), Jt.success(
|
|
24441
|
+
const Pe = gr(oe), Ve = typeof window < "u" ? window.location.origin : "", vt = typeof window < "u" ? window.location.pathname : "", pt = Pe ? `${Ve}${vt}${Pe}` : `${Ve}${vt}`;
|
|
24442
|
+
await navigator.clipboard.writeText(pt), Jt.success(te("Link copied to clipboard"), {
|
|
24437
24443
|
toastId: "Link copied to clipboard"
|
|
24438
24444
|
}), S?.(oe, pt);
|
|
24439
24445
|
},
|
|
24440
|
-
[gr,
|
|
24446
|
+
[gr, te, S]
|
|
24441
24447
|
), Rt = (oe) => {
|
|
24442
24448
|
if (B(!1), a?.(oe), R && F?.navigate) {
|
|
24443
24449
|
const Pe = Br(Ye(), oe);
|
|
@@ -24447,30 +24453,30 @@ const Oo = (e) => {
|
|
|
24447
24453
|
if (Oe.length <= 1) return;
|
|
24448
24454
|
const Pe = q.map(
|
|
24449
24455
|
(pt) => pt.name === oe ? { ...pt, is_hidden: !0 } : pt
|
|
24450
|
-
), Ve = Oe.findIndex((pt) => pt.name === oe),
|
|
24451
|
-
Rt(Oe[
|
|
24456
|
+
), Ve = Oe.findIndex((pt) => pt.name === oe), vt = Ve === 0 ? 1 : Ve - 1;
|
|
24457
|
+
Rt(Oe[vt].name), Vt(Pe);
|
|
24452
24458
|
}, Ze = (oe) => {
|
|
24453
24459
|
const Pe = q.map(
|
|
24454
24460
|
(Ve) => Ve.name === oe ? { ...Ve, is_hidden: !1 } : Ve
|
|
24455
24461
|
);
|
|
24456
24462
|
B(!1), Vt(Pe);
|
|
24457
|
-
},
|
|
24463
|
+
}, _t = (oe) => {
|
|
24458
24464
|
if (!x) return;
|
|
24459
24465
|
const Pe = q.map(
|
|
24460
24466
|
(Ve) => Ve.name === oe ? { ...Ve, is_pinned: !Ve.is_pinned } : Ve
|
|
24461
24467
|
);
|
|
24462
24468
|
Vt(Pe);
|
|
24463
24469
|
}, jt = (oe, Pe) => {
|
|
24464
|
-
const Ve = q.findIndex(({ name: pt }) => pt === oe),
|
|
24465
|
-
Vt(Hf(q, Ve,
|
|
24470
|
+
const Ve = q.findIndex(({ name: pt }) => pt === oe), vt = Pe === "left" ? Ve - (q[Ve - 1]?.name === r ? 2 : 1) : Ve + 1;
|
|
24471
|
+
Vt(Hf(q, Ve, vt));
|
|
24466
24472
|
}, yt = () => B(!X), Yt = (oe) => Ne(oe.active.id), xn = (oe) => {
|
|
24467
24473
|
const { active: Pe, over: Ve } = oe;
|
|
24468
24474
|
if (Ve?.id === "more-tabs") {
|
|
24469
24475
|
kt(Pe.id), Ne(null), Ee(null);
|
|
24470
24476
|
return;
|
|
24471
24477
|
}
|
|
24472
|
-
const
|
|
24473
|
-
Vt(Hf(q,
|
|
24478
|
+
const vt = q.findIndex(({ name: Ht }) => Ht === Pe.id), pt = q.findIndex(({ name: Ht }) => Ht === Ve?.id);
|
|
24479
|
+
Vt(Hf(q, vt, pt)), Ne(null), Ee(null);
|
|
24474
24480
|
}, TA = () => {
|
|
24475
24481
|
Ne(null), Ee(null);
|
|
24476
24482
|
}, Et = (oe) => {
|
|
@@ -24485,7 +24491,7 @@ const Oo = (e) => {
|
|
|
24485
24491
|
Ar,
|
|
24486
24492
|
{
|
|
24487
24493
|
icon: /* @__PURE__ */ A(O9, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24488
|
-
text:
|
|
24494
|
+
text: te("Select Tab"),
|
|
24489
24495
|
className: "text-black-900 dark:text-white"
|
|
24490
24496
|
}
|
|
24491
24497
|
),
|
|
@@ -24497,7 +24503,7 @@ const Oo = (e) => {
|
|
|
24497
24503
|
Ar,
|
|
24498
24504
|
{
|
|
24499
24505
|
icon: /* @__PURE__ */ A(P9, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24500
|
-
text:
|
|
24506
|
+
text: te("Move Up"),
|
|
24501
24507
|
isDisabled: je,
|
|
24502
24508
|
className: "text-black-900 dark:text-white"
|
|
24503
24509
|
}
|
|
@@ -24511,7 +24517,7 @@ const Oo = (e) => {
|
|
|
24511
24517
|
Ar,
|
|
24512
24518
|
{
|
|
24513
24519
|
icon: /* @__PURE__ */ A(I9, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24514
|
-
text:
|
|
24520
|
+
text: te("Move Down"),
|
|
24515
24521
|
isDisabled: je,
|
|
24516
24522
|
className: "text-black-900 dark:text-white"
|
|
24517
24523
|
}
|
|
@@ -24525,7 +24531,7 @@ const Oo = (e) => {
|
|
|
24525
24531
|
Ar,
|
|
24526
24532
|
{
|
|
24527
24533
|
icon: /* @__PURE__ */ A(k3, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24528
|
-
text:
|
|
24534
|
+
text: te("Copy Link"),
|
|
24529
24535
|
className: "text-black-900 dark:text-white"
|
|
24530
24536
|
}
|
|
24531
24537
|
),
|
|
@@ -24537,7 +24543,7 @@ const Oo = (e) => {
|
|
|
24537
24543
|
Ar,
|
|
24538
24544
|
{
|
|
24539
24545
|
icon: /* @__PURE__ */ A(M9, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24540
|
-
text:
|
|
24546
|
+
text: te("Hide"),
|
|
24541
24547
|
className: "text-black-900 dark:text-white"
|
|
24542
24548
|
}
|
|
24543
24549
|
),
|
|
@@ -24549,7 +24555,7 @@ const Oo = (e) => {
|
|
|
24549
24555
|
Ar,
|
|
24550
24556
|
{
|
|
24551
24557
|
icon: /* @__PURE__ */ A(H9, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24552
|
-
text:
|
|
24558
|
+
text: te("Unhide"),
|
|
24553
24559
|
className: "text-black-900 dark:text-white"
|
|
24554
24560
|
}
|
|
24555
24561
|
),
|
|
@@ -24561,13 +24567,13 @@ const Oo = (e) => {
|
|
|
24561
24567
|
Ar,
|
|
24562
24568
|
{
|
|
24563
24569
|
icon: pt ? /* @__PURE__ */ A(F9, { size: 20, className: "rotate-12 text-inherit dark:text-inherit" }) : /* @__PURE__ */ A(HA, { size: 20, className: "rotate-45 text-inherit dark:text-inherit" }),
|
|
24564
|
-
text:
|
|
24570
|
+
text: te(pt ? "Unpin" : "Pin"),
|
|
24565
24571
|
className: "text-black-900 dark:text-white",
|
|
24566
24572
|
notVisible: !x
|
|
24567
24573
|
}
|
|
24568
24574
|
),
|
|
24569
24575
|
key: pt ? It.UNPIN : It.PIN,
|
|
24570
|
-
onClick: () =>
|
|
24576
|
+
onClick: () => _t(oe)
|
|
24571
24577
|
},
|
|
24572
24578
|
{
|
|
24573
24579
|
label: /* @__PURE__ */ A(
|
|
@@ -24575,7 +24581,7 @@ const Oo = (e) => {
|
|
|
24575
24581
|
{
|
|
24576
24582
|
className: "text-black-900 dark:text-white",
|
|
24577
24583
|
icon: /* @__PURE__ */ A(qf, {}),
|
|
24578
|
-
text:
|
|
24584
|
+
text: te("Edit"),
|
|
24579
24585
|
notVisible: !g
|
|
24580
24586
|
}
|
|
24581
24587
|
),
|
|
@@ -24588,7 +24594,7 @@ const Oo = (e) => {
|
|
|
24588
24594
|
{
|
|
24589
24595
|
className: "text-error-600 dark:text-error-600",
|
|
24590
24596
|
icon: /* @__PURE__ */ A(pA, { size: 18, className: "text-error-600 dark:text-error-600" }),
|
|
24591
|
-
text:
|
|
24597
|
+
text: te("Delete"),
|
|
24592
24598
|
notVisible: !E
|
|
24593
24599
|
}
|
|
24594
24600
|
),
|
|
@@ -24637,18 +24643,18 @@ const Oo = (e) => {
|
|
|
24637
24643
|
t.forEach((Pe) => {
|
|
24638
24644
|
oe.find((Ve) => Ve.name === Pe) || oe.push({ name: Pe, is_default: !1, is_hidden: !1, is_pinned: !1 });
|
|
24639
24645
|
}), oe = oe.filter(
|
|
24640
|
-
(Pe, Ve,
|
|
24646
|
+
(Pe, Ve, vt) => t.includes(Pe.name) && Ve === vt.findIndex((pt) => pt.name === Pe.name)
|
|
24641
24647
|
), Y(oe);
|
|
24642
24648
|
} else
|
|
24643
24649
|
Y(
|
|
24644
|
-
t.map((oe) => ({ name: oe, is_default: !1, is_hidden: !1, is_pinned: !1 })).filter((oe, Pe, Ve) => Pe === Ve.findIndex((
|
|
24650
|
+
t.map((oe) => ({ name: oe, is_default: !1, is_hidden: !1, is_pinned: !1 })).filter((oe, Pe, Ve) => Pe === Ve.findIndex((vt) => vt.name === oe.name))
|
|
24645
24651
|
);
|
|
24646
24652
|
}, [ao, no]), ae(() => {
|
|
24647
24653
|
Q && Le(Q);
|
|
24648
24654
|
}, [Q]), ae(() => {
|
|
24649
24655
|
if (!q.length) return;
|
|
24650
24656
|
const oe = [...q];
|
|
24651
|
-
G === "asc" ? oe.sort((Pe, Ve) => Pe.name.localeCompare(Ve.name)) : G === "desc" && oe.sort((Pe, Ve) => Ve.name.localeCompare(Pe.name)),
|
|
24657
|
+
G === "asc" ? oe.sort((Pe, Ve) => Pe.name.localeCompare(Ve.name)) : G === "desc" && oe.sort((Pe, Ve) => Ve.name.localeCompare(Pe.name)), re(oe);
|
|
24652
24658
|
}, [q, G]), ae(() => {
|
|
24653
24659
|
Oo(X);
|
|
24654
24660
|
}, [X]), e === "switch" ? /* @__PURE__ */ A("div", { className: H("inline", l), children: /* @__PURE__ */ A(
|
|
@@ -24662,7 +24668,7 @@ const Oo = (e) => {
|
|
|
24662
24668
|
v ? "w-full" : "w-auto"
|
|
24663
24669
|
),
|
|
24664
24670
|
children: t.map((oe) => {
|
|
24665
|
-
const Pe = r === oe, Ve = y?.[oe],
|
|
24671
|
+
const Pe = r === oe, Ve = y?.[oe], vt = q.find((Ht) => Ht.name === oe), pt = x && vt?.is_pinned;
|
|
24666
24672
|
return /* @__PURE__ */ A("li", { role: "presentation", className: H("inline-flex", v ? "w-full" : "w-auto"), children: /* @__PURE__ */ A(
|
|
24667
24673
|
Yn,
|
|
24668
24674
|
{
|
|
@@ -24671,7 +24677,7 @@ const Oo = (e) => {
|
|
|
24671
24677
|
role: "tab",
|
|
24672
24678
|
ariaSelected: Pe,
|
|
24673
24679
|
tabIndex: 0,
|
|
24674
|
-
icon: pt ? /* @__PURE__ */ A(Me, { title: "Unpin", children: /* @__PURE__ */ A("span", { onClick: () =>
|
|
24680
|
+
icon: pt ? /* @__PURE__ */ A(Me, { title: "Unpin", children: /* @__PURE__ */ A("span", { onClick: () => _t(oe), children: /* @__PURE__ */ A(HA, { size: 20, className: "rotate-45 text-inherit dark:text-inherit" }) }) }) : Ve,
|
|
24675
24681
|
iconsOnly: p,
|
|
24676
24682
|
classValue: H(
|
|
24677
24683
|
"relative py-0.5 border-gray-200",
|
|
@@ -24735,7 +24741,7 @@ const Oo = (e) => {
|
|
|
24735
24741
|
disabled: !s || je,
|
|
24736
24742
|
children: [
|
|
24737
24743
|
Oe.slice(0, Ie).map(({ name: oe, is_pinned: Pe }) => {
|
|
24738
|
-
const Ve = r === oe && !X,
|
|
24744
|
+
const Ve = r === oe && !X, vt = x && Pe;
|
|
24739
24745
|
return /* @__PURE__ */ A(
|
|
24740
24746
|
U1,
|
|
24741
24747
|
{
|
|
@@ -24773,7 +24779,7 @@ const Oo = (e) => {
|
|
|
24773
24779
|
children: /* @__PURE__ */ A(
|
|
24774
24780
|
Gt,
|
|
24775
24781
|
{
|
|
24776
|
-
tooltip:
|
|
24782
|
+
tooltip: te("More"),
|
|
24777
24783
|
variant: "ghost",
|
|
24778
24784
|
className: "!text-primary-500 hover:!bg-primary-100 dark:hover:!bg-primary-900",
|
|
24779
24785
|
children: /* @__PURE__ */ A(j0, { sx: { fontSize: 20 } })
|
|
@@ -24786,7 +24792,7 @@ const Oo = (e) => {
|
|
|
24786
24792
|
onClick: () => Rt(oe),
|
|
24787
24793
|
suffixRecord: Ge,
|
|
24788
24794
|
selectedId: nt,
|
|
24789
|
-
icon:
|
|
24795
|
+
icon: vt ? /* @__PURE__ */ A(Me, { title: te("Unpin"), children: /* @__PURE__ */ A("span", { onClick: () => _t(oe), children: /* @__PURE__ */ A(HA, { size: 20, className: "rotate-45 text-inherit dark:text-inherit" }) }) }) : y?.[oe] ?? null
|
|
24790
24796
|
}
|
|
24791
24797
|
) }, oe)
|
|
24792
24798
|
},
|
|
@@ -24825,7 +24831,7 @@ const Oo = (e) => {
|
|
|
24825
24831
|
href: gr(r),
|
|
24826
24832
|
suffixRecord: Ge,
|
|
24827
24833
|
selectedId: nt,
|
|
24828
|
-
icon: x && q.find((oe) => oe.name === r)?.is_pinned ? /* @__PURE__ */ A(Me, { title:
|
|
24834
|
+
icon: x && q.find((oe) => oe.name === r)?.is_pinned ? /* @__PURE__ */ A(Me, { title: te("Pinned"), children: /* @__PURE__ */ A("span", { onClick: () => _t(r), children: /* @__PURE__ */ A(HA, { size: 20, className: "rotate-45 text-inherit dark:text-inherit" }) }) }) : y?.[r] ?? null
|
|
24829
24835
|
}
|
|
24830
24836
|
) }, r) }, r) : null,
|
|
24831
24837
|
(Z < Oe.length && !u || Se.length > 0) && lt > 0 ? /* @__PURE__ */ A(MC, { id: "more-tabs", children: /* @__PURE__ */ A(
|
|
@@ -33199,7 +33205,7 @@ function ZR(e, t) {
|
|
|
33199
33205
|
defaultCodeValue: q
|
|
33200
33206
|
});
|
|
33201
33207
|
Y.language === null && (Y.value = q);
|
|
33202
|
-
var J = (n = (i = Q.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && n !== void 0 ? n : 0,
|
|
33208
|
+
var J = (n = (i = Q.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && n !== void 0 ? n : 0, re = S + J, le = YR(Y, C, P, h, g, S, re, k, D);
|
|
33203
33209
|
return /* @__PURE__ */ ye.createElement(U, ie, /* @__PURE__ */ ye.createElement(O, p, !g && X, L({
|
|
33204
33210
|
rows: le,
|
|
33205
33211
|
stylesheet: u,
|
|
@@ -34199,11 +34205,11 @@ function _I() {
|
|
|
34199
34205
|
return (Z.position.indent || Z.position.start) && (Z.indent = Z.position.indent || [], Z.position = Z.position.start), Q(X, Z);
|
|
34200
34206
|
}
|
|
34201
34207
|
function Q(X, B) {
|
|
34202
|
-
var Z = B.additional, ie = B.nonTerminated, q = B.text, Y = B.reference, J = B.warning,
|
|
34208
|
+
var Z = B.additional, ie = B.nonTerminated, q = B.text, Y = B.reference, J = B.warning, re = B.textContext, le = B.referenceContext, Ee = B.warningContext, xe = B.position, Ne = B.indent || [], fe = X.length, We = 0, we = -1, Le = xe.column || 1, Je = xe.line || 1, ue = "", ke = [], Re, Te, je, G, te, pe, ve, Xe, Qe, nt, ot, Ge, _e, Se, qe, Oe, At, Ie, Be;
|
|
34203
34209
|
for (typeof Z == "string" && (Z = Z.charCodeAt(0)), Oe = lt(), Xe = J ? Vt : s, We--, fe++; ++We < fe; )
|
|
34204
|
-
if (
|
|
34210
|
+
if (te === c && (Le = Ne[we] || 1), te = X.charCodeAt(We), te === y) {
|
|
34205
34211
|
if (ve = X.charCodeAt(We + 1), ve === d || ve === c || ve === m || ve === p || ve === y || ve === v || ve !== ve || Z && ve === Z) {
|
|
34206
|
-
ue += l(
|
|
34212
|
+
ue += l(te), Le++;
|
|
34207
34213
|
continue;
|
|
34208
34214
|
}
|
|
34209
34215
|
for (_e = We + 1, Ge = _e, Be = _e, ve === b ? (Be = ++Ge, ve = X.charCodeAt(Be), ve === g || ve === E ? (Se = T, Be = ++Ge) : Se = k) : Se = x, Re = "", ot = "", G = "", qe = N[Se], Be--; ++Be < fe && (ve = X.charCodeAt(Be), !!qe(ve)); )
|
|
@@ -34215,7 +34221,7 @@ function _I() {
|
|
|
34215
34221
|
X.slice(_e - 1, Be)
|
|
34216
34222
|
), Oe = At) : (G = X.slice(_e - 1, Be), ue += G, Le += G.length, We = Be - 1);
|
|
34217
34223
|
} else
|
|
34218
|
-
|
|
34224
|
+
te === 10 && (Je++, we++, Le = 0), te === te ? (ue += l(te), Le++) : rr();
|
|
34219
34225
|
return ke.join("");
|
|
34220
34226
|
function lt() {
|
|
34221
34227
|
return {
|
|
@@ -34229,7 +34235,7 @@ function _I() {
|
|
|
34229
34235
|
Ye.column += Lt, Ye.offset += Lt, J.call(Ee, O[br], Ye, br);
|
|
34230
34236
|
}
|
|
34231
34237
|
function rr() {
|
|
34232
|
-
ue && (ke.push(ue), q && q.call(
|
|
34238
|
+
ue && (ke.push(ue), q && q.call(re, ue, { start: Oe, end: lt() }), ue = "");
|
|
34233
34239
|
}
|
|
34234
34240
|
}
|
|
34235
34241
|
function K(X) {
|
|
@@ -34889,15 +34895,15 @@ function vI() {
|
|
|
34889
34895
|
K--, Q = b.slice(j, B), ee.index -= j;
|
|
34890
34896
|
} else if (ee = u(F, 0, Q, P), !ee)
|
|
34891
34897
|
continue;
|
|
34892
|
-
var ie = ee.index, q = ee[0], Y = Q.slice(0, ie), J = Q.slice(ie + q.length),
|
|
34893
|
-
T &&
|
|
34898
|
+
var ie = ee.index, q = ee[0], Y = Q.slice(0, ie), J = Q.slice(ie + q.length), re = j + Q.length;
|
|
34899
|
+
T && re > T.reach && (T.reach = re);
|
|
34894
34900
|
var le = O.prev;
|
|
34895
34901
|
Y && (le = m(g, le, Y), j += Y.length), p(g, le, K);
|
|
34896
34902
|
var Ee = new s(k, I ? l.tokenize(q, I) : q, R, q);
|
|
34897
34903
|
if (O = m(g, le, Ee), J && m(g, O, J), K > 1) {
|
|
34898
34904
|
var xe = {
|
|
34899
34905
|
cause: k + "," + N,
|
|
34900
|
-
reach:
|
|
34906
|
+
reach: re
|
|
34901
34907
|
};
|
|
34902
34908
|
d(b, g, E, O.prev, j, xe), T && xe.reach > T.reach && (T.reach = xe.reach);
|
|
34903
34909
|
}
|
|
@@ -55222,22 +55228,22 @@ const fz = ["edit", "preview"], pz = ({ className: e, size: t = 16 }) => /* @__P
|
|
|
55222
55228
|
showMinimalPreview: D = !1,
|
|
55223
55229
|
acceptAdvanceContent: I = !0
|
|
55224
55230
|
}, P) => {
|
|
55225
|
-
const [L, R] = W("edit"), [U, F] = W(!1), O = Ae(null), j = e || `rich-md-input-${Math.random().toString(36).slice(2, 11)}`, Q = t.length, K = (Y, J = "",
|
|
55231
|
+
const [L, R] = W("edit"), [U, F] = W(!1), O = Ae(null), j = e || `rich-md-input-${Math.random().toString(36).slice(2, 11)}`, Q = t.length, K = (Y, J = "", re = "") => {
|
|
55226
55232
|
const le = P?.current || O.current;
|
|
55227
55233
|
if (!le) return;
|
|
55228
|
-
const Ee = le.selectionStart, xe = le.selectionEnd, Ne = t.substring(Ee, xe), fe = Ne ||
|
|
55234
|
+
const Ee = le.selectionStart, xe = le.selectionEnd, Ne = t.substring(Ee, xe), fe = Ne || re, We = t.substring(0, Ee) + Y + fe + J + t.substring(xe);
|
|
55229
55235
|
a(We), setTimeout(() => {
|
|
55230
55236
|
const we = Ee + Y.length + (Ne ? Ne.length : 0);
|
|
55231
|
-
le.focus(), le.setSelectionRange(we, we + (Ne ? 0 :
|
|
55237
|
+
le.focus(), le.setSelectionRange(we, we + (Ne ? 0 : re.length));
|
|
55232
55238
|
}, 0);
|
|
55233
55239
|
}, ee = (Y) => {
|
|
55234
55240
|
const J = P?.current || O.current;
|
|
55235
55241
|
if (!J) return;
|
|
55236
|
-
const
|
|
55242
|
+
const re = J.selectionStart, le = J.selectionEnd, Ee = t.split(`
|
|
55237
55243
|
`);
|
|
55238
55244
|
let xe = 0, Ne = 0, fe = 0;
|
|
55239
55245
|
for (let we = 0; we < Ee.length; we++) {
|
|
55240
|
-
if (xe <=
|
|
55246
|
+
if (xe <= re && re <= xe + Ee[we].length + 1 && (Ne = we), xe <= le && le <= xe + Ee[we].length + 1) {
|
|
55241
55247
|
fe = we;
|
|
55242
55248
|
break;
|
|
55243
55249
|
}
|
|
@@ -64045,8 +64051,8 @@ const Da = (e) => ({
|
|
|
64045
64051
|
m
|
|
64046
64052
|
]
|
|
64047
64053
|
), h = () => {
|
|
64048
|
-
const q = e?.row?.original?.__rawData, Y = e?.column?.Header, J = e?.column?.key,
|
|
64049
|
-
return
|
|
64054
|
+
const q = e?.row?.original?.__rawData, Y = e?.column?.Header, J = e?.column?.key, re = Y ? q?.[Y]?.currency_code : void 0, le = J ? q?.[J]?.currency_code : void 0;
|
|
64055
|
+
return re && re !== "" ? re : le && le !== "" ? le : e?.column?.currencyCode || "USD";
|
|
64050
64056
|
}, b = e.column.key || "", g = `${t}-${b}`, E = u?.(g), S = d?.(String(t), b), [x, T] = W({
|
|
64051
64057
|
value: S?.value !== void 0 ? S.value : e.value || "",
|
|
64052
64058
|
currencyCode: S?.meta?.currency_code || E || h()
|
|
@@ -64057,9 +64063,9 @@ const Da = (e) => ({
|
|
|
64057
64063
|
})(), D = d?.(String(t), b)?.validationError, I = k || N || D || null, P = Ae(null);
|
|
64058
64064
|
ae(() => {
|
|
64059
64065
|
if (r === b && P.current !== b) {
|
|
64060
|
-
const Y = u?.(`${t}-${b}`), J = d?.(String(t), b),
|
|
64066
|
+
const Y = u?.(`${t}-${b}`), J = d?.(String(t), b), re = J?.value !== void 0 ? J.value : e.value || "", le = J?.meta?.currency_code || Y || h();
|
|
64061
64067
|
T({
|
|
64062
|
-
value:
|
|
64068
|
+
value: re,
|
|
64063
64069
|
currencyCode: le
|
|
64064
64070
|
});
|
|
64065
64071
|
}
|
|
@@ -64136,19 +64142,19 @@ const Da = (e) => ({
|
|
|
64136
64142
|
}
|
|
64137
64143
|
}, [e?.column?.type]), Z = ce(() => {
|
|
64138
64144
|
const q = e?.column?.type?.toLowerCase(), Y = F.current.value, J = F.current.currencyCode;
|
|
64139
|
-
let
|
|
64145
|
+
let re = !0;
|
|
64140
64146
|
switch (q) {
|
|
64141
64147
|
case "url":
|
|
64142
|
-
|
|
64148
|
+
re = R(String(Y ?? ""));
|
|
64143
64149
|
break;
|
|
64144
64150
|
case "e-mail":
|
|
64145
|
-
|
|
64151
|
+
re = U(String(Y ?? ""));
|
|
64146
64152
|
break;
|
|
64147
64153
|
default:
|
|
64148
|
-
|
|
64154
|
+
re = L(Y);
|
|
64149
64155
|
break;
|
|
64150
64156
|
}
|
|
64151
|
-
if (!
|
|
64157
|
+
if (!re)
|
|
64152
64158
|
return { isValid: !1 };
|
|
64153
64159
|
let le = null;
|
|
64154
64160
|
return q === "currency" && (le = { currency_code: u?.(g) || J }), {
|
|
@@ -64162,12 +64168,12 @@ const Da = (e) => ({
|
|
|
64162
64168
|
}, [i, Z, r, b]);
|
|
64163
64169
|
const ie = () => {
|
|
64164
64170
|
if (e?.column?.is_master_data && e?.column?.masterDataName && (e?.column?.masterDataColumnName || e?.column?.masterDataFormula)) {
|
|
64165
|
-
const J = d?.(String(t), b),
|
|
64171
|
+
const J = d?.(String(t), b), re = l?.value ?? J?.value ?? e.value;
|
|
64166
64172
|
return /* @__PURE__ */ A("div", { onMouseDown: (le) => le.stopPropagation(), className: "z-[120] h-full w-full", children: /* @__PURE__ */ A(
|
|
64167
64173
|
rq,
|
|
64168
64174
|
{
|
|
64169
64175
|
id: `master-data-cell-${t}-${e.column.id}`,
|
|
64170
|
-
value:
|
|
64176
|
+
value: re,
|
|
64171
64177
|
onChange: (le, Ee) => {
|
|
64172
64178
|
n(Da(le)), c && c(String(t), b, {
|
|
64173
64179
|
value: le,
|
|
@@ -64189,17 +64195,17 @@ const Da = (e) => ({
|
|
|
64189
64195
|
switch (q) {
|
|
64190
64196
|
case "choice": {
|
|
64191
64197
|
const J = Y?.choices ?? e?.column?.choices;
|
|
64192
|
-
return /* @__PURE__ */ A("div", { onMouseDown: (
|
|
64198
|
+
return /* @__PURE__ */ A("div", { onMouseDown: (re) => re.stopPropagation(), children: /* @__PURE__ */ A(
|
|
64193
64199
|
Mi,
|
|
64194
64200
|
{
|
|
64195
64201
|
id: `select-cell-${t}-${e.column.id}`,
|
|
64196
64202
|
value: x.value || null,
|
|
64197
|
-
selectOptions: J?.map((
|
|
64198
|
-
label:
|
|
64199
|
-
value:
|
|
64203
|
+
selectOptions: J?.map((re) => ({
|
|
64204
|
+
label: re,
|
|
64205
|
+
value: re
|
|
64200
64206
|
})) || [],
|
|
64201
|
-
onChange: (
|
|
64202
|
-
const le =
|
|
64207
|
+
onChange: (re) => {
|
|
64208
|
+
const le = re ? Array.isArray(re) ? re[0]?.value?.toString() || "" : re?.value?.toString() || "" : "";
|
|
64203
64209
|
T((Ee) => ({ ...Ee, value: le })), n(Da(le)), c && c(String(t), b, {
|
|
64204
64210
|
value: le,
|
|
64205
64211
|
originalValue: e.value
|
|
@@ -64229,11 +64235,11 @@ const Da = (e) => ({
|
|
|
64229
64235
|
id: `date-cell-${t}-${e.column.id}`,
|
|
64230
64236
|
value: x.value || void 0,
|
|
64231
64237
|
handleOnChange: (J) => {
|
|
64232
|
-
const
|
|
64233
|
-
T((le) => ({ ...le, value:
|
|
64234
|
-
value:
|
|
64238
|
+
const re = J || "";
|
|
64239
|
+
T((le) => ({ ...le, value: re })), n(Da(re)), c && c(String(t), b, {
|
|
64240
|
+
value: re,
|
|
64235
64241
|
originalValue: e.value
|
|
64236
|
-
}), v(
|
|
64242
|
+
}), v(re), L(re);
|
|
64237
64243
|
},
|
|
64238
64244
|
showTime: q === "datetime",
|
|
64239
64245
|
dateFormat: q === "date" ? "MM/DD/YYYY" : void 0,
|
|
@@ -64244,21 +64250,21 @@ const Da = (e) => ({
|
|
|
64244
64250
|
);
|
|
64245
64251
|
case "currency": {
|
|
64246
64252
|
const J = h();
|
|
64247
|
-
return /* @__PURE__ */ A("div", { onMouseDown: (
|
|
64253
|
+
return /* @__PURE__ */ A("div", { onMouseDown: (re) => re.stopPropagation(), className: "z-[120] h-full w-full", children: /* @__PURE__ */ A(
|
|
64248
64254
|
tq,
|
|
64249
64255
|
{
|
|
64250
64256
|
id: g,
|
|
64251
64257
|
value: String(x.value ?? ""),
|
|
64252
|
-
onChange: (
|
|
64258
|
+
onChange: (re, le) => {
|
|
64253
64259
|
T((Ee) => ({
|
|
64254
|
-
value:
|
|
64260
|
+
value: re,
|
|
64255
64261
|
currencyCode: le || Ee.currencyCode
|
|
64256
|
-
})), n(Da(
|
|
64257
|
-
value:
|
|
64262
|
+
})), n(Da(re)), c && c(String(t), b, {
|
|
64263
|
+
value: re,
|
|
64258
64264
|
meta: { currency_code: le },
|
|
64259
64265
|
originalValue: e.value,
|
|
64260
64266
|
originalMeta: { currency_code: J }
|
|
64261
|
-
}), L(
|
|
64267
|
+
}), L(re), v(re, { currency_code: le });
|
|
64262
64268
|
},
|
|
64263
64269
|
currencyCode: x.currencyCode,
|
|
64264
64270
|
inputStyle: {
|
|
@@ -64284,8 +64290,8 @@ const Da = (e) => ({
|
|
|
64284
64290
|
ta.set(j, { start: J.target.selectionStart ?? 0, end: J.target.selectionEnd ?? 0 });
|
|
64285
64291
|
} catch {
|
|
64286
64292
|
}
|
|
64287
|
-
const
|
|
64288
|
-
T((le) => ({ ...le, value:
|
|
64293
|
+
const re = J.target.value;
|
|
64294
|
+
T((le) => ({ ...le, value: re })), F.current = { ...F.current, value: re }, vr = j, L(re), ee(re);
|
|
64289
64295
|
},
|
|
64290
64296
|
onBlur: () => {
|
|
64291
64297
|
ra = j, ta.delete(j), X(), B(), vr === j && (vr = null, v(F.current.value)), requestAnimationFrame(() => {
|
|
@@ -64313,18 +64319,18 @@ const Da = (e) => ({
|
|
|
64313
64319
|
return /* @__PURE__ */ A(
|
|
64314
64320
|
"div",
|
|
64315
64321
|
{
|
|
64316
|
-
onMouseDown: (
|
|
64322
|
+
onMouseDown: (re) => re.stopPropagation(),
|
|
64317
64323
|
className: "h-full w-full flex items-center px-2.5 bg-white dark:bg-black-800 rounded border-2 focus:outline-primary-600 border border-primary-600 dark:border-black-700 z-[120]",
|
|
64318
64324
|
children: /* @__PURE__ */ A(
|
|
64319
64325
|
ya,
|
|
64320
64326
|
{
|
|
64321
64327
|
id: `toggle-cell-${t}-${e.column.id}`,
|
|
64322
64328
|
isChecked: J,
|
|
64323
|
-
onChange: (
|
|
64324
|
-
T((le) => ({ ...le, value:
|
|
64325
|
-
value:
|
|
64329
|
+
onChange: (re) => {
|
|
64330
|
+
T((le) => ({ ...le, value: re })), n(Da(re)), c && c(String(t), b, {
|
|
64331
|
+
value: re,
|
|
64326
64332
|
originalValue: e.value
|
|
64327
|
-
}), v(
|
|
64333
|
+
}), v(re);
|
|
64328
64334
|
},
|
|
64329
64335
|
hideStatus: !1,
|
|
64330
64336
|
labelDirection: "right",
|
|
@@ -64344,8 +64350,8 @@ const Da = (e) => ({
|
|
|
64344
64350
|
defaultValue: String(x.value ?? ""),
|
|
64345
64351
|
onChange: (J) => {
|
|
64346
64352
|
ta.set(j, { start: J.target.selectionStart ?? 0, end: J.target.selectionEnd ?? 0 });
|
|
64347
|
-
const
|
|
64348
|
-
T((le) => ({ ...le, value:
|
|
64353
|
+
const re = J.target.value;
|
|
64354
|
+
T((le) => ({ ...le, value: re })), F.current = { ...F.current, value: re }, vr = j, k ? R(re) : L(re), ee(re);
|
|
64349
64355
|
},
|
|
64350
64356
|
onBlur: () => {
|
|
64351
64357
|
ra = j, ta.delete(j), X(), B(), vr === j && (vr = null, v(F.current.value)), requestAnimationFrame(() => {
|
|
@@ -64375,8 +64381,8 @@ const Da = (e) => ({
|
|
|
64375
64381
|
ta.set(j, { start: J.target.selectionStart ?? 0, end: J.target.selectionEnd ?? 0 });
|
|
64376
64382
|
} catch {
|
|
64377
64383
|
}
|
|
64378
|
-
const
|
|
64379
|
-
T((le) => ({ ...le, value:
|
|
64384
|
+
const re = J.target.value;
|
|
64385
|
+
T((le) => ({ ...le, value: re })), F.current = { ...F.current, value: re }, vr = j, k ? U(re) : L(re), ee(re);
|
|
64380
64386
|
},
|
|
64381
64387
|
onBlur: () => {
|
|
64382
64388
|
ra = j, ta.delete(j), X(), B(), vr === j && (vr = null, v(F.current.value)), requestAnimationFrame(() => {
|
|
@@ -64403,8 +64409,8 @@ const Da = (e) => ({
|
|
|
64403
64409
|
defaultValue: String(x.value ?? ""),
|
|
64404
64410
|
onChange: (J) => {
|
|
64405
64411
|
ta.set(j, { start: J.target.selectionStart ?? 0, end: J.target.selectionEnd ?? 0 });
|
|
64406
|
-
const
|
|
64407
|
-
T((le) => ({ ...le, value:
|
|
64412
|
+
const re = J.target.value;
|
|
64413
|
+
T((le) => ({ ...le, value: re })), F.current = { ...F.current, value: re }, vr = j, L(re), ee(re);
|
|
64408
64414
|
},
|
|
64409
64415
|
onBlur: () => {
|
|
64410
64416
|
ra = j, ta.delete(j), X(), B(), vr === j && (vr = null, v(F.current.value)), requestAnimationFrame(() => {
|
|
@@ -64512,9 +64518,9 @@ const s3 = (e) => {
|
|
|
64512
64518
|
allowInlineEdit: B,
|
|
64513
64519
|
fieldOperationLoading: Z,
|
|
64514
64520
|
pendingEdits: ie
|
|
64515
|
-
} = qt(Kr), q = Nr(), J = (e?.column?.key ? e?.row?.original?.__cellMetadata?.[e.column.key] : void 0)?.is_locked ?? e?.column?.is_locked,
|
|
64521
|
+
} = qt(Kr), q = Nr(), J = (e?.column?.key ? e?.row?.original?.__cellMetadata?.[e.column.key] : void 0)?.is_locked ?? e?.column?.is_locked, re = (e?.column?.key ? ie?.[t]?.[e.column.key]?.validationError : null) || L || null, le = v === e.column.key && e?.column?.canEdit && !J && !e?.column?.is_disabled, Ee = Z === `${t}-${e?.column?.id}`, { theme: xe } = rw(), Ne = xe === "dark", fe = ce(() => b(t), [b, t]), We = ce(() => b(null), [b]), we = q?.formatDuration, [Le, Je] = W(
|
|
64516
64522
|
e?.column?.dataType === "duration" && e?.value ? we ? we(e.value) : s3(e.value) : e.value
|
|
64517
|
-
), [ue, ke] = W(null), [Re, Te] = W(!1), [je, G] = W(!1), [
|
|
64523
|
+
), [ue, ke] = W(null), [Re, Te] = W(!1), [je, G] = W(!1), [te, pe] = W(!1), ve = Ae(null), Xe = Ae(), Qe = Ae(), { selectedColumnIds: nt = [] } = K || {}, ot = !Object.prototype.hasOwnProperty.call(e?.column?.meta ?? {}, "shouldHighlight") || e?.column?.meta?.shouldHighlight, Ge = ce(() => {
|
|
64518
64524
|
ve.current && Te(ve.current.scrollWidth > ve.current.clientWidth);
|
|
64519
64525
|
}, []), _e = ce((Ie) => {
|
|
64520
64526
|
Xe.current && clearTimeout(Xe.current), Ie ? G(!0) : Xe.current = setTimeout(() => G(!1), 200);
|
|
@@ -64590,7 +64596,7 @@ const s3 = (e) => {
|
|
|
64590
64596
|
"overflow-x-hidden overflow-y-visible": v !== e.column.key && At,
|
|
64591
64597
|
"overflow-hidden": v !== e.column.key && !At
|
|
64592
64598
|
},
|
|
64593
|
-
|
|
64599
|
+
re && !le ? "outline outline-2 outline-error-500 -outline-offset-2 z-[5]" : "",
|
|
64594
64600
|
`${qe || "bg-white dark:bg-black-800"}`
|
|
64595
64601
|
),
|
|
64596
64602
|
style: { minWidth: `${e.column.width}px`, maxWidth: `${e.column.width}px`, right: e?.column?.sticky ? `${r}px` : "0px", paddingLeft: _ > 0 && i === 0 ? `${_ * 16}px` : void 0 },
|
|
@@ -64652,7 +64658,7 @@ const s3 = (e) => {
|
|
|
64652
64658
|
placement: "top",
|
|
64653
64659
|
delayShow: !0,
|
|
64654
64660
|
hideTooltip: !!ue,
|
|
64655
|
-
open: Re && !ue && !At ?
|
|
64661
|
+
open: Re && !ue && !At ? te : void 0,
|
|
64656
64662
|
onOpenChange: Re && !ue && !At ? Se : void 0,
|
|
64657
64663
|
className: H("block w-full min-w-0", At ? "overflow-x-hidden overflow-y-visible" : "overflow-hidden"),
|
|
64658
64664
|
children: /* @__PURE__ */ A("div", { className: H("w-full h-full flex items-center px-4 min-w-0", At ? "overflow-x-hidden overflow-y-visible" : "overflow-hidden"), children: /* @__PURE__ */ A(
|
|
@@ -64675,7 +64681,7 @@ const s3 = (e) => {
|
|
|
64675
64681
|
}
|
|
64676
64682
|
) })
|
|
64677
64683
|
] }) }),
|
|
64678
|
-
|
|
64684
|
+
re && !le && /* @__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: re }) }) }),
|
|
64679
64685
|
Ee && !(v === e.column.key && e?.column?.canEdit && !J && !e?.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(ba, { className: "text-primary-600 dark:text-white", size: 8 }) })
|
|
64680
64686
|
]
|
|
64681
64687
|
},
|
|
@@ -64917,10 +64923,10 @@ const s3 = (e) => {
|
|
|
64917
64923
|
pendingEdits: j
|
|
64918
64924
|
} = qt(Kr), Q = Nr(), K = !!d, { activeInlineEdit: ee, setActiveInlineEdit: X } = qt(Kr), B = ee?.rowId === e.original.id ? ee?.columnKey : null, Z = !!B, ie = (Ze) => {
|
|
64919
64925
|
X?.(Ze === null ? null : { rowId: String(e.original.id), columnKey: Ze });
|
|
64920
|
-
}, [q, Y] = W(null), [J,
|
|
64926
|
+
}, [q, Y] = W(null), [J, re] = W(null), [le, Ee] = W(null), [xe, Ne] = W(!1), [fe, We] = W(!1), we = Ae(null);
|
|
64921
64927
|
ae(() => {
|
|
64922
|
-
const Ze = we.current,
|
|
64923
|
-
if (Ze && !
|
|
64928
|
+
const Ze = we.current, _t = B;
|
|
64929
|
+
if (Ze && !_t) {
|
|
64924
64930
|
const jt = j?.[e.original.id]?.[Ze];
|
|
64925
64931
|
if (jt) {
|
|
64926
64932
|
const yt = e.cells?.find((Yt) => Yt.column?.key === Ze);
|
|
@@ -64933,14 +64939,14 @@ const s3 = (e) => {
|
|
|
64933
64939
|
}
|
|
64934
64940
|
}
|
|
64935
64941
|
}
|
|
64936
|
-
we.current =
|
|
64942
|
+
we.current = _t ?? null;
|
|
64937
64943
|
}, [B, e.original.id, e.cells, j, L]), ae(() => {
|
|
64938
64944
|
if (T) {
|
|
64939
64945
|
const Ze = String(e?.original?.id);
|
|
64940
64946
|
Ee(T[Ze]?.[e?.cells[0].column.Header] || T[Ze]?.[0]);
|
|
64941
64947
|
}
|
|
64942
64948
|
}, [T, e?.original?.id, e?.cells]);
|
|
64943
|
-
const Le = xp({ id: e.original.id, data: { ...e.original }, disabled: !g }), Je = h8({ id: e.original.id, data: { ...e.original }, disabled: !!g }), { listeners: ue, transform: ke, setNodeRef: Re, isDragging: Te, attributes: je, active: G, over:
|
|
64949
|
+
const Le = xp({ id: e.original.id, data: { ...e.original }, disabled: !g }), Je = h8({ id: e.original.id, data: { ...e.original }, disabled: !!g }), { listeners: ue, transform: ke, setNodeRef: Re, isDragging: Te, attributes: je, active: G, over: te, ...pe } = g ? Le : Je, { setNodeRef: ve } = C3({
|
|
64944
64950
|
id: `table-file-dropzone-${e?.original?.id}`,
|
|
64945
64951
|
data: { type: "table-file-dropzone", folderId: e?.original?.id, isFolder: e?.original?.type === "folder" }
|
|
64946
64952
|
}), Xe = {
|
|
@@ -64948,8 +64954,8 @@ const s3 = (e) => {
|
|
|
64948
64954
|
transition: g ? pe.transition : void 0,
|
|
64949
64955
|
cursor: Te ? "grabbing" : "grab",
|
|
64950
64956
|
opacity: Te ? "0.5" : "1"
|
|
64951
|
-
}, Qe = () => !G || !
|
|
64952
|
-
|
|
64957
|
+
}, Qe = () => !G || !te || !g ? !1 : b?.checkOverEachItem ? b.checkOverEachItem(G, te) && !!te : G.data.current?.type !== te.data.current?.type && !!te, nt = (Ze) => {
|
|
64958
|
+
re(Ze.target.value);
|
|
64953
64959
|
}, ot = () => {
|
|
64954
64960
|
U || ie(null);
|
|
64955
64961
|
}, Ge = Ae(null), _e = ce(
|
|
@@ -64971,9 +64977,9 @@ const s3 = (e) => {
|
|
|
64971
64977
|
meta: Ze.meta || void 0
|
|
64972
64978
|
});
|
|
64973
64979
|
} else if (B) {
|
|
64974
|
-
const Ze = e.cells?.find((
|
|
64980
|
+
const Ze = e.cells?.find((_t) => _t.column?.key === B);
|
|
64975
64981
|
if (Ze) {
|
|
64976
|
-
const
|
|
64982
|
+
const _t = j?.[e.original.id]?.[B]?.value, jt = _t !== void 0 ? _t : Ze.value, yt = uA(jt, Ze.column);
|
|
64977
64983
|
if (!yt.isValid) {
|
|
64978
64984
|
Se.current?.showNotification?.("error", yt.error || "Validation failed");
|
|
64979
64985
|
return;
|
|
@@ -64981,14 +64987,14 @@ const s3 = (e) => {
|
|
|
64981
64987
|
}
|
|
64982
64988
|
}
|
|
64983
64989
|
O && O(String(e.original.id));
|
|
64984
|
-
}, [O, e.original, e.cells, B, L, j]), At = (Ze,
|
|
64990
|
+
}, [O, e.original, e.cells, B, L, j]), At = (Ze, _t) => {
|
|
64985
64991
|
const jt = { ...e.original }, yt = Ze !== void 0 ? Ze : J;
|
|
64986
|
-
B && yt !== void 0 && (jt[B] = yt, _ && _(jt, n, B, yt,
|
|
64987
|
-
}, Ie = Ae(null), Be = (Ze,
|
|
64992
|
+
B && yt !== void 0 && (jt[B] = yt, _ && _(jt, n, B, yt, _t), R && R(String(e.original.id), B)), ot();
|
|
64993
|
+
}, Ie = Ae(null), Be = (Ze, _t, jt, yt) => {
|
|
64988
64994
|
if (!D && (Ze?.stopPropagation(), B !== yt)) {
|
|
64989
64995
|
if (_) {
|
|
64990
64996
|
if (v?.includes(yt))
|
|
64991
|
-
ie(yt),
|
|
64997
|
+
ie(yt), re(String(e.original[yt]));
|
|
64992
64998
|
else {
|
|
64993
64999
|
const Yt = Q?.getSystemMessage?.("notAllowedInlineEdit") || "Inline Edit is not allowed for this column";
|
|
64994
65000
|
Q?.showNotification?.("error", Yt);
|
|
@@ -64996,7 +65002,7 @@ const s3 = (e) => {
|
|
|
64996
65002
|
return;
|
|
64997
65003
|
}
|
|
64998
65004
|
if (c)
|
|
64999
|
-
c(
|
|
65005
|
+
c(_t, jt, e.original, s?.map((Yt) => Yt.original) || []);
|
|
65000
65006
|
else if (!c && d) {
|
|
65001
65007
|
const Yt = e.original.id, xn = { target: { checked: !d.checkedIds.includes(Yt) } };
|
|
65002
65008
|
d.onItemCheck(xn, Yt);
|
|
@@ -65004,7 +65010,7 @@ const s3 = (e) => {
|
|
|
65004
65010
|
}
|
|
65005
65011
|
}, lt = async () => {
|
|
65006
65012
|
Ne(!0), S && await S(e?.original?.id, e?.original, !(l?.[e?.original?.id]?.isOpen ?? !1), e?.original?.__level || 0), Ne(!1);
|
|
65007
|
-
}, Vt = De(() => e.cells.filter((Ze) => Ze.column?.visible).map((Ze) => Ze.column?.width ?? 0).reduce((Ze,
|
|
65013
|
+
}, Vt = De(() => e.cells.filter((Ze) => Ze.column?.visible).map((Ze) => Ze.column?.width ?? 0).reduce((Ze, _t) => Ze + _t, 0), [e.cells]), rr = De(() => k?.draggingOver && k?.draggingOver === e?.original?.id, [k, e?.original?.id]), br = De(() => rr ? k?.dropPosition || "inside" : null, [rr, k?.dropPosition]), Lt = !!(rr && br === "inside"), Ye = e?.original?.__rowMetadata || e?.original?._meta, Br = q !== e?.original?.id, gr = !e?.original?.__isLoading, qr = !!(Ye?.__is_new || Ye?.__is_added || e?.original?.is_added || le?.is_added || Ye?.is_added || Ye?.is_new), En = !!(e?.original?.is_deleted || Ye?.__is_deleted || le?.is_deleted || Ye?.is_deleted), Rt = !!(e?.original?.is_modified || e?.original?.is_row_modified || Ye?.__is_modified || Ye?.__is_edited || le?.is_row_modified || Ye?.is_modified) && !qr, kt = H({
|
|
65008
65014
|
"bg-neutral-100 dark:bg-black-600": q === e?.original?.id && !Z,
|
|
65009
65015
|
"bg-primary-50 dark:bg-black-700": !e?.original?.is_read && x && !e?.original?.__isLoading && Br && !Z,
|
|
65010
65016
|
// 'bg-white dark:bg-black-700': cell.column.sticky && rowHovering !== id,
|
|
@@ -65025,7 +65031,7 @@ const s3 = (e) => {
|
|
|
65025
65031
|
`text-neutral-900 dark:text-white cursor-pointer min-w-full relative ${d?.selectionDisabledRowIds?.includes(e?.original?.id) ? "opacity-50" : ""} border-t`,
|
|
65026
65032
|
Te ? "z-40" : "",
|
|
65027
65033
|
Qe() ? "shadow-dnd-drop" : "",
|
|
65028
|
-
E &&
|
|
65034
|
+
E && te && te?.data?.current?.type === "table-file-dropzone" && te?.data?.current?.folderId === e?.original?.id && e?.original?.type === "folder" ? "bg-primary-50" : "",
|
|
65029
65035
|
e?.original?.isDefinedActionRow ? "bg-primary-50" : "",
|
|
65030
65036
|
Lt ? "z-50" : "",
|
|
65031
65037
|
kt || "bg-white dark:bg-black-800"
|
|
@@ -65186,7 +65192,7 @@ const s3 = (e) => {
|
|
|
65186
65192
|
return Array.isArray(we) ? we : [];
|
|
65187
65193
|
}
|
|
65188
65194
|
return [];
|
|
65189
|
-
}, [P, o.original, d]),
|
|
65195
|
+
}, [P, o.original, d]), re = o?.original?.__rowMetadata || o?.original?._meta, le = l !== o?.original?.id, Ee = !o?.original?.__isLoading, xe = !!(re?.__is_new || re?.__is_added || o?.original?.is_added || m?.is_added || re?.is_added || re?.is_new), Ne = !!(o?.original?.is_deleted || re?.__is_deleted || m?.is_deleted || re?.is_deleted), fe = !!(o?.original?.is_modified || o?.original?.is_row_modified || re?.__is_modified || re?.__is_edited || m?.is_row_modified || re?.is_deleted) && !xe, We = H({
|
|
65190
65196
|
"border-l-[3px] border-l-success-400 dark:border-l-success-500": xe && Ee && le && !N,
|
|
65191
65197
|
"border-l-[3px] border-l-error-400 dark:border-l-error-500": Ne && Ee && le && !N,
|
|
65192
65198
|
"border-l-[3px] border-l-warning-400 dark:border-l-warning-500": fe && Ee && le && !N
|
|
@@ -66314,7 +66320,7 @@ const s3 = (e) => {
|
|
|
66314
66320
|
multipleContexts: q,
|
|
66315
66321
|
withSortable: Y,
|
|
66316
66322
|
withDraggable: J,
|
|
66317
|
-
enableRootDrag:
|
|
66323
|
+
enableRootDrag: re,
|
|
66318
66324
|
pageSize: le = 10,
|
|
66319
66325
|
onCascadingRowExpand: Ee,
|
|
66320
66326
|
totalItems: xe,
|
|
@@ -66330,7 +66336,7 @@ const s3 = (e) => {
|
|
|
66330
66336
|
style: Te = {},
|
|
66331
66337
|
floatingBarConfig: je,
|
|
66332
66338
|
rowWrapper: G,
|
|
66333
|
-
rowLinkConfig:
|
|
66339
|
+
rowLinkConfig: te,
|
|
66334
66340
|
isCellClickDisabled: pe,
|
|
66335
66341
|
setHeaderOnParent: ve,
|
|
66336
66342
|
optimizeTable: Xe = !1,
|
|
@@ -66351,7 +66357,7 @@ const s3 = (e) => {
|
|
|
66351
66357
|
onPendingEditsChange: br,
|
|
66352
66358
|
onCancelPendingEdits: Lt
|
|
66353
66359
|
}) => {
|
|
66354
|
-
const Ye = Nr(), Br = !!t?.search, gr = r?.columnFilters?.length > 0, qr = Br || gr, En = !!g, Rt = Ye?.getTableView?.(e) ?? null, [kt, Ze] = W(Rt || null), [
|
|
66360
|
+
const Ye = Nr(), Br = !!t?.search, gr = r?.columnFilters?.length > 0, qr = Br || gr, En = !!g, Rt = Ye?.getTableView?.(e) ?? null, [kt, Ze] = W(Rt || null), [_t, jt] = W(!1), [yt, Yt] = W(!1), [xn, TA] = W(null), [Et, Sn] = W(o), CA = (p.length === 0 || !Et.length) && !E, [qa, Dr] = W(null), [ao, no] = W(!1), [oe, Pe] = W(null), [Ve, vt] = W(!1), [pt, Ht] = W(null), [Va, Wt] = W(null), [$t, wn] = W({}), [sa, ja] = W(null), [NA, Ao] = W(!1), [Lr, b0] = W(0), Xt = Ae(null), _r = Ae(null), [ka, kn] = W({ width: 0, height: 0 }), [Tn, Vr] = W(null), [Rr, g0] = W(null), [Oy, _0] = W(null), [v0, y0] = W(null), [io, Cn] = W({}), oo = Ae(!1), DA = Ae(!1), lo = Ae(kt);
|
|
66355
66361
|
lo.current = kt;
|
|
66356
66362
|
const E0 = Ae(Ye);
|
|
66357
66363
|
E0.current = Ye;
|
|
@@ -66359,7 +66365,7 @@ const s3 = (e) => {
|
|
|
66359
66365
|
x0.current = o;
|
|
66360
66366
|
const LA = Ae(r);
|
|
66361
66367
|
LA.current = r;
|
|
66362
|
-
const S0 = Ae(null), w0 = Ae(() => ({})), k0 = Ae(() => ({})), [
|
|
66368
|
+
const S0 = Ae(null), w0 = Ae(() => ({})), k0 = Ae(() => ({})), [gt, ua] = W({}), so = ce(
|
|
66363
66369
|
(de, he, ze) => {
|
|
66364
66370
|
ua((Ke) => {
|
|
66365
66371
|
const st = Ke[de]?.[he];
|
|
@@ -66376,7 +66382,7 @@ const s3 = (e) => {
|
|
|
66376
66382
|
});
|
|
66377
66383
|
},
|
|
66378
66384
|
[Et]
|
|
66379
|
-
), T0 = ce(() => Object.values(
|
|
66385
|
+
), T0 = ce(() => Object.values(gt).some((de) => Object.keys(de).length > 0), [gt]);
|
|
66380
66386
|
ae(() => {
|
|
66381
66387
|
rr && rr({ addPendingEdit: so, hasPendingEdits: T0 });
|
|
66382
66388
|
}, [rr, so, T0]);
|
|
@@ -66390,14 +66396,14 @@ const s3 = (e) => {
|
|
|
66390
66396
|
return Ke;
|
|
66391
66397
|
});
|
|
66392
66398
|
}, []), Iy = ce(
|
|
66393
|
-
(de, he) =>
|
|
66394
|
-
[
|
|
66399
|
+
(de, he) => gt[de]?.[he],
|
|
66400
|
+
[gt]
|
|
66395
66401
|
), My = ce(
|
|
66396
|
-
(de, he) => !!
|
|
66397
|
-
[
|
|
66402
|
+
(de, he) => !!gt[de]?.[he],
|
|
66403
|
+
[gt]
|
|
66398
66404
|
), C0 = ce(() => {
|
|
66399
|
-
Vt || (Lt && Object.keys(
|
|
66400
|
-
}, [Vt, Lt,
|
|
66405
|
+
Vt || (Lt && Object.keys(gt).length > 0 && Lt(gt), ua({}), Cn({}), Vr(null));
|
|
66406
|
+
}, [Vt, Lt, gt]), Wa = ce(
|
|
66401
66407
|
(de, he, ze) => {
|
|
66402
66408
|
setTimeout(() => {
|
|
66403
66409
|
Ye?.dispatchEvent?.("SCROLL_TO_TABLE_ROW", { rowIndex: ze });
|
|
@@ -66438,7 +66444,7 @@ const s3 = (e) => {
|
|
|
66438
66444
|
const he = de.has("Field required"), ze = de.size > (he ? 1 : 0);
|
|
66439
66445
|
return he && ze ? "Missing required field(s) and invalid format detected. Please review highlighted field(s)." : he ? "Missing required field(s). Please review highlighted field(s)." : "Invalid field value(s). Please review highlighted field(s).";
|
|
66440
66446
|
}, []), N0 = ce(() => {
|
|
66441
|
-
const { hasErrors: de, updatedEdits: he, firstError: ze, errorTypes: Ke } = Nn(
|
|
66447
|
+
const { hasErrors: de, updatedEdits: he, firstError: ze, errorTypes: Ke } = Nn(gt);
|
|
66442
66448
|
if (de) {
|
|
66443
66449
|
if (ua(he), Ye?.showNotification?.("error", RA(Ke)), ze) {
|
|
66444
66450
|
const dt = p.findIndex((Ot) => Ot.id === ze.rowId);
|
|
@@ -66447,7 +66453,7 @@ const s3 = (e) => {
|
|
|
66447
66453
|
return;
|
|
66448
66454
|
}
|
|
66449
66455
|
const st = [];
|
|
66450
|
-
Object.entries(
|
|
66456
|
+
Object.entries(gt).forEach(([dt, Ot]) => {
|
|
66451
66457
|
const xt = p.find((ar) => ar.id === dt);
|
|
66452
66458
|
if (xt) {
|
|
66453
66459
|
const ar = { ...xt }, Ca = {};
|
|
@@ -66456,10 +66462,10 @@ const s3 = (e) => {
|
|
|
66456
66462
|
}), st.push({ ...ar, __editedFields: Ca });
|
|
66457
66463
|
}
|
|
66458
66464
|
}), st.length > 0 && (ee ? ee(st) : K && K(null, null, null, null, null, { isBulk: !0, rows: st })), ua({}), Cn({}), Vr(null);
|
|
66459
|
-
}, [
|
|
66465
|
+
}, [gt, p, K, ee, Nn, RA, Wa, Ye]), Hy = ce(
|
|
66460
66466
|
(de) => {
|
|
66461
66467
|
if (Vt) return;
|
|
66462
|
-
const he =
|
|
66468
|
+
const he = gt[de];
|
|
66463
66469
|
he && Lt && Lt({ [de]: he }), ua((ze) => {
|
|
66464
66470
|
const Ke = { ...ze };
|
|
66465
66471
|
return delete Ke[de], Ke;
|
|
@@ -66470,10 +66476,10 @@ const s3 = (e) => {
|
|
|
66470
66476
|
}), Ke;
|
|
66471
66477
|
}), Vr(null);
|
|
66472
66478
|
},
|
|
66473
|
-
[Vt, Lt,
|
|
66479
|
+
[Vt, Lt, gt]
|
|
66474
66480
|
), Fy = ce(
|
|
66475
66481
|
(de) => {
|
|
66476
|
-
const he =
|
|
66482
|
+
const he = gt[de];
|
|
66477
66483
|
if (!he || Object.keys(he).length === 0) return;
|
|
66478
66484
|
const { hasErrors: ze, updatedEdits: Ke, firstError: st, errorTypes: dt } = Nn({ [de]: he });
|
|
66479
66485
|
if (ze) {
|
|
@@ -66500,27 +66506,27 @@ const s3 = (e) => {
|
|
|
66500
66506
|
}), Ft;
|
|
66501
66507
|
}), Vr(null);
|
|
66502
66508
|
},
|
|
66503
|
-
[
|
|
66504
|
-
), Xa = De(() => Object.values(
|
|
66509
|
+
[gt, p, K, ee, Nn, RA, Wa, Ye]
|
|
66510
|
+
), Xa = De(() => Object.values(gt).reduce((de, he) => de + Object.keys(he).length, 0), [gt]);
|
|
66505
66511
|
ae(() => {
|
|
66506
66512
|
br?.(Xa > 0, Xa);
|
|
66507
66513
|
}, [Xa, br]);
|
|
66508
66514
|
const Uy = De(() => {
|
|
66509
66515
|
const de = [];
|
|
66510
|
-
return Object.entries(
|
|
66516
|
+
return Object.entries(gt).forEach(([he, ze]) => {
|
|
66511
66517
|
const Ke = p.findIndex((st) => st.id === he);
|
|
66512
66518
|
Object.entries(ze).forEach(([st, dt]) => {
|
|
66513
66519
|
const Ot = Et.find((xt) => xt.key === st);
|
|
66514
66520
|
de.push({ rowId: he, columnKey: st, fieldName: Ot?.Header || Ot?.display_name || st, value: dt.value, originalValue: dt.originalValue, meta: dt.meta, originalMeta: dt.originalMeta, rowIndex: Ke });
|
|
66515
66521
|
});
|
|
66516
66522
|
}), de;
|
|
66517
|
-
}, [
|
|
66523
|
+
}, [gt, Et, p]), zy = De(() => {
|
|
66518
66524
|
const de = /* @__PURE__ */ new Map();
|
|
66519
|
-
return Object.entries(
|
|
66525
|
+
return Object.entries(gt).forEach(([he, ze]) => {
|
|
66520
66526
|
const Ke = p.findIndex((st) => st.id === he);
|
|
66521
66527
|
de.set(he, { rowId: he, rowIndex: Ke, editCount: Object.keys(ze).length });
|
|
66522
66528
|
}), Array.from(de.values()).sort((he, ze) => he.rowIndex - ze.rowIndex);
|
|
66523
|
-
}, [
|
|
66529
|
+
}, [gt, p]), By = ce((de) => g0(de), []), OA = ce(() => g0(null), []), qy = ce(
|
|
66524
66530
|
(de, he) => {
|
|
66525
66531
|
_0({ value: de, reference: he }), Rr?.onSelected && Rr.onSelected(de, he), OA();
|
|
66526
66532
|
},
|
|
@@ -66565,7 +66571,7 @@ const s3 = (e) => {
|
|
|
66565
66571
|
isCheckAllDisabled: g?.isCheckAllDisabled,
|
|
66566
66572
|
selectionDisabledRowIds: g?.selectionDisabledRowIds,
|
|
66567
66573
|
rawData: ue,
|
|
66568
|
-
onAllChecked:
|
|
66574
|
+
onAllChecked: vt,
|
|
66569
66575
|
setCheckedIds: g?.setCheckedIds,
|
|
66570
66576
|
checkboxMetadata: g?.checkboxMetadata
|
|
66571
66577
|
}), t6 = Ri(
|
|
@@ -66886,7 +66892,7 @@ const s3 = (e) => {
|
|
|
66886
66892
|
rawData: ue,
|
|
66887
66893
|
dragConfig: ke,
|
|
66888
66894
|
rowWrapper: G,
|
|
66889
|
-
rowLinkConfig:
|
|
66895
|
+
rowLinkConfig: te,
|
|
66890
66896
|
isCellClickDisabled: pe,
|
|
66891
66897
|
asyncRowOptionsFilter: r?.asyncRowOptionsFilter,
|
|
66892
66898
|
handleUpdateColumnWidth: d6,
|
|
@@ -66912,7 +66918,7 @@ const s3 = (e) => {
|
|
|
66912
66918
|
selectedCurrenciesMap: io,
|
|
66913
66919
|
setCurrencyForCell: Wy,
|
|
66914
66920
|
getCurrencyForCell: Xy,
|
|
66915
|
-
pendingEdits:
|
|
66921
|
+
pendingEdits: gt,
|
|
66916
66922
|
addPendingEdit: so,
|
|
66917
66923
|
removePendingEdit: Py,
|
|
66918
66924
|
getPendingEdit: Iy,
|
|
@@ -66990,10 +66996,10 @@ const s3 = (e) => {
|
|
|
66990
66996
|
}
|
|
66991
66997
|
) : null,
|
|
66992
66998
|
n?.showDivider ? /* @__PURE__ */ A("div", { className: "border-b pb-2 w-full dark:bg-black-800" }) : null,
|
|
66993
|
-
|
|
66999
|
+
_t || yt ? /* @__PURE__ */ A("div", { className: "flex justify-between items-center pb-4 dark:bg-black-800", children: /* @__PURE__ */ w("div", { className: "flex gap-2 items-center", children: [
|
|
66994
67000
|
yt && Ye?.renderSortItem ? Ye.renderSortItem({ sort: a?.columnSort, onRemoveSort: uo, onSort: a?.onSort, tableHeaders: Et, data: p }) : null,
|
|
66995
|
-
|
|
66996
|
-
|
|
67001
|
+
_t && yt && a?.columnSort?.field !== "" ? /* @__PURE__ */ A("div", { className: "h-8 w-[1px] flex-shrink-0 bg-neutral-200" }) : null,
|
|
67002
|
+
_t ? /* @__PURE__ */ w("div", { className: "flex gap-2 items-center", children: [
|
|
66997
67003
|
(gr || r?.onResetFilter) && Ye?.renderActiveFilters && Ye.renderActiveFilters({
|
|
66998
67004
|
filters: r?.columnFilters,
|
|
66999
67005
|
onRemoveFilter: c6,
|
|
@@ -67068,7 +67074,7 @@ const s3 = (e) => {
|
|
|
67068
67074
|
...Z ? { height: p?.length > 0 ? `${(p?.length + 1) * 41 + 4}px` : "350px" } : { height: Gy },
|
|
67069
67075
|
...Te
|
|
67070
67076
|
},
|
|
67071
|
-
children:
|
|
67077
|
+
children: re ? F0 : /* @__PURE__ */ w(Oi, { sensors: t6, onDragEnd: A6, onDragStart: n6, onDragCancel: i6, collisionDetection: b8, children: [
|
|
67072
67078
|
F0,
|
|
67073
67079
|
sa ? Sr(
|
|
67074
67080
|
/* @__PURE__ */ A(Ep, { adjustScale: !0, dropAnimation: r6, children: /* @__PURE__ */ A("table", { ...R0(), className: "w-full text-sm text-left text-neutral-500 dark:text-neutral-200 bg-white dark:bg-black-700 table-auto border-collapse", children: /* @__PURE__ */ w("tbody", { ...O0(), className: "bg-transparent divide-y divide-neutral-200", children: [
|