@lax-wp/design-system 0.13.15 → 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 -285
- 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",
|
|
@@ -4306,10 +4306,6 @@ const aA = (e, t) => {
|
|
|
4306
4306
|
const a = e.replace(/Z$|[+-]\d{2}:?\d{2}$/, "");
|
|
4307
4307
|
return new Date(a);
|
|
4308
4308
|
}
|
|
4309
|
-
if (/^\d{4}-\d{2}-\d{2}$/.test(e)) {
|
|
4310
|
-
const [a, n, i] = e.split("-").map(Number);
|
|
4311
|
-
return new Date(a, n - 1, i);
|
|
4312
|
-
}
|
|
4313
4309
|
let r = e;
|
|
4314
4310
|
return r.includes("+") && (r = r.split("+")[0]), !r.includes("Z") && !r.includes("GMT") && !r.includes("+") && (r += "Z"), new Date(r);
|
|
4315
4311
|
}, ia = (e, t = {}) => {
|
|
@@ -4325,7 +4321,7 @@ const aA = (e, t) => {
|
|
|
4325
4321
|
if (!e)
|
|
4326
4322
|
return o;
|
|
4327
4323
|
try {
|
|
4328
|
-
if (!
|
|
4324
|
+
if (!bt(e).isValid())
|
|
4329
4325
|
return o;
|
|
4330
4326
|
const u = f4(e.toString(), l);
|
|
4331
4327
|
if (Number.isNaN(u.getTime()))
|
|
@@ -4445,25 +4441,25 @@ const aA = (e, t) => {
|
|
|
4445
4441
|
inputEmphasis: ee = "default",
|
|
4446
4442
|
...X
|
|
4447
4443
|
}, B) => {
|
|
4448
|
-
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(
|
|
4449
4445
|
C || "USD"
|
|
4450
4446
|
), [we, Le] = W(!1), Je = (G) => {
|
|
4451
4447
|
if (F) {
|
|
4452
|
-
const
|
|
4448
|
+
const te = {
|
|
4453
4449
|
key: S,
|
|
4454
4450
|
value: rn(G, fe)
|
|
4455
4451
|
};
|
|
4456
|
-
F(
|
|
4452
|
+
F(te);
|
|
4457
4453
|
}
|
|
4458
4454
|
}, ue = (G) => {
|
|
4459
4455
|
if (G == null) return "";
|
|
4460
|
-
const
|
|
4461
|
-
return isNaN(
|
|
4456
|
+
const te = Number(G);
|
|
4457
|
+
return isNaN(te) ? G : te?.toLocaleString("en-US", {
|
|
4462
4458
|
minimumFractionDigits: 2,
|
|
4463
4459
|
maximumFractionDigits: 2
|
|
4464
4460
|
});
|
|
4465
4461
|
}, ke = (G) => {
|
|
4466
|
-
const
|
|
4462
|
+
const te = G.target.value, pe = te === "" || te === null || te === void 0 ? 0 : Number(te);
|
|
4467
4463
|
a(pe, fe);
|
|
4468
4464
|
const ve = document.getElementById(e);
|
|
4469
4465
|
if (ve && ve.setAttribute(
|
|
@@ -4487,9 +4483,9 @@ const aA = (e, t) => {
|
|
|
4487
4483
|
ve.dispatchEvent(Xe);
|
|
4488
4484
|
}
|
|
4489
4485
|
}, Re = () => {
|
|
4490
|
-
|
|
4486
|
+
re(!0);
|
|
4491
4487
|
}, Te = () => {
|
|
4492
|
-
|
|
4488
|
+
re(!1), (r == null || r === "") && ke({
|
|
4493
4489
|
target: { value: "0.00" }
|
|
4494
4490
|
}), P?.();
|
|
4495
4491
|
}, je = () => {
|
|
@@ -4502,8 +4498,8 @@ const aA = (e, t) => {
|
|
|
4502
4498
|
if (fe) {
|
|
4503
4499
|
const G = r === "" || r === null || r === void 0 ? 0 : Number(r);
|
|
4504
4500
|
C !== fe && a(G, fe);
|
|
4505
|
-
const
|
|
4506
|
-
if (
|
|
4501
|
+
const te = document.getElementById(e);
|
|
4502
|
+
if (te && (te.setAttribute(
|
|
4507
4503
|
"data-selected-value",
|
|
4508
4504
|
JSON.stringify({
|
|
4509
4505
|
value: G,
|
|
@@ -4521,24 +4517,24 @@ const aA = (e, t) => {
|
|
|
4521
4517
|
type: "change"
|
|
4522
4518
|
}
|
|
4523
4519
|
});
|
|
4524
|
-
|
|
4520
|
+
te.dispatchEvent(pe);
|
|
4525
4521
|
}
|
|
4526
4522
|
}
|
|
4527
4523
|
}, [fe]), ae(() => {
|
|
4528
4524
|
const G = Ff.filter(
|
|
4529
|
-
(
|
|
4530
|
-
).map((
|
|
4525
|
+
(te) => (te.value + " - " + te.label).toLowerCase().includes(xe.toLowerCase())
|
|
4526
|
+
).map((te) => ({
|
|
4531
4527
|
label: /* @__PURE__ */ A(
|
|
4532
4528
|
Ar,
|
|
4533
4529
|
{
|
|
4534
|
-
text: `${
|
|
4535
|
-
icon: aA(
|
|
4536
|
-
showTick: fe ===
|
|
4537
|
-
onClick: () => We(
|
|
4530
|
+
text: `${te.value} - ${te.label}`,
|
|
4531
|
+
icon: aA(te.value),
|
|
4532
|
+
showTick: fe === te.value,
|
|
4533
|
+
onClick: () => We(te.value),
|
|
4538
4534
|
className: "text-black-900 dark:text-white"
|
|
4539
4535
|
}
|
|
4540
4536
|
),
|
|
4541
|
-
key:
|
|
4537
|
+
key: te.value
|
|
4542
4538
|
}));
|
|
4543
4539
|
Ee(G);
|
|
4544
4540
|
}, [xe, fe]), ae(() => {
|
|
@@ -4722,7 +4718,7 @@ const aA = (e, t) => {
|
|
|
4722
4718
|
{
|
|
4723
4719
|
id: "search-bar-currency-input",
|
|
4724
4720
|
value: xe,
|
|
4725
|
-
onChange: (
|
|
4721
|
+
onChange: (te) => Ne(te),
|
|
4726
4722
|
className: "mb-2"
|
|
4727
4723
|
}
|
|
4728
4724
|
),
|
|
@@ -5073,7 +5069,7 @@ const { RangePicker: G0 } = Of, Y0 = {
|
|
|
5073
5069
|
labelExtra: E,
|
|
5074
5070
|
inputEmphasis: S = "default"
|
|
5075
5071
|
}) => {
|
|
5076
|
-
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 = () => {
|
|
5077
5073
|
I(!0), setTimeout(() => {
|
|
5078
5074
|
R.current && R.current.focus();
|
|
5079
5075
|
}, 0);
|
|
@@ -5081,11 +5077,11 @@ const { RangePicker: G0 } = Of, Y0 = {
|
|
|
5081
5077
|
_4("keydown", (q) => {
|
|
5082
5078
|
if (q.key === Y0.ENTER && document.activeElement instanceof HTMLInputElement) {
|
|
5083
5079
|
if (document?.activeElement?.id === Q) {
|
|
5084
|
-
const Y =
|
|
5080
|
+
const Y = bt(document?.activeElement?.value);
|
|
5085
5081
|
Y.isValid() && t([Y, j(i)]);
|
|
5086
5082
|
}
|
|
5087
5083
|
if (document?.activeElement?.id === K) {
|
|
5088
|
-
const Y =
|
|
5084
|
+
const Y = bt(document?.activeElement?.value);
|
|
5089
5085
|
Y.isValid() && t([j(n), Y]);
|
|
5090
5086
|
}
|
|
5091
5087
|
}
|
|
@@ -5101,8 +5097,8 @@ const { RangePicker: G0 } = Of, Y0 = {
|
|
|
5101
5097
|
q.preventDefault(), q.stopPropagation();
|
|
5102
5098
|
const J = q.target.closest("form");
|
|
5103
5099
|
if (J) {
|
|
5104
|
-
const
|
|
5105
|
-
|
|
5100
|
+
const re = J.querySelector('button[type="submit"]');
|
|
5101
|
+
re ? re.click() : J.requestSubmit();
|
|
5106
5102
|
}
|
|
5107
5103
|
}
|
|
5108
5104
|
}, [h, D, y, P]), Z = ce((q) => {
|
|
@@ -5216,10 +5212,10 @@ const { RangePicker: G0 } = Of, Y0 = {
|
|
|
5216
5212
|
] });
|
|
5217
5213
|
};
|
|
5218
5214
|
v4.displayName = "DateRange";
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5215
|
+
bt.extend(j9);
|
|
5216
|
+
bt.extend(q9);
|
|
5217
|
+
bt.extend(W9);
|
|
5218
|
+
bt.extend(V9);
|
|
5223
5219
|
const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "YYYY-MM-DDTHH:mm:ss", $0 = {
|
|
5224
5220
|
ENTER: "Enter"
|
|
5225
5221
|
}, I3 = [
|
|
@@ -5266,11 +5262,11 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5266
5262
|
if (!e) return null;
|
|
5267
5263
|
const r = t ? E4 : I3;
|
|
5268
5264
|
for (const n of r) {
|
|
5269
|
-
const i =
|
|
5265
|
+
const i = bt(e, n, !0);
|
|
5270
5266
|
if (i.isValid())
|
|
5271
5267
|
return i;
|
|
5272
5268
|
}
|
|
5273
|
-
const a =
|
|
5269
|
+
const a = bt(e);
|
|
5274
5270
|
return a.isValid() ? a : null;
|
|
5275
5271
|
}, J0 = (e, t) => {
|
|
5276
5272
|
const r = Ae(t);
|
|
@@ -5321,36 +5317,36 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5321
5317
|
formatDateForGTN: O,
|
|
5322
5318
|
...j
|
|
5323
5319
|
}, Q) => {
|
|
5324
|
-
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(
|
|
5325
5321
|
null
|
|
5326
5322
|
), [Ee, xe] = W(!1), Ne = p || (s ? yo : y4), fe = j?.id || `date-picker-${x4()}`, We = Ae(null), we = Ae(!1);
|
|
5327
5323
|
J0("paste", (G) => {
|
|
5328
|
-
document.activeElement?.id === fe && (G.preventDefault(), navigator.clipboard.readText().then((
|
|
5329
|
-
const pe = Ln(
|
|
5324
|
+
document.activeElement?.id === fe && (G.preventDefault(), navigator.clipboard.readText().then((te) => {
|
|
5325
|
+
const pe = Ln(te, s);
|
|
5330
5326
|
pe && Re(pe);
|
|
5331
5327
|
}));
|
|
5332
5328
|
}), J0("keydown", (G) => {
|
|
5333
5329
|
if (G.key === $0.ENTER && document.activeElement instanceof HTMLInputElement && document.activeElement.id === fe) {
|
|
5334
|
-
const
|
|
5335
|
-
|
|
5330
|
+
const te = Ln(document?.activeElement?.value, s);
|
|
5331
|
+
te && Re(te);
|
|
5336
5332
|
}
|
|
5337
5333
|
});
|
|
5338
5334
|
const Le = ce(
|
|
5339
5335
|
(G) => {
|
|
5340
5336
|
if (!F) return;
|
|
5341
|
-
let
|
|
5337
|
+
let te = G || "";
|
|
5342
5338
|
if (O && G)
|
|
5343
|
-
|
|
5339
|
+
te = O(G, {
|
|
5344
5340
|
skipTimezone: !0,
|
|
5345
5341
|
withTime: s
|
|
5346
5342
|
});
|
|
5347
5343
|
else if (G) {
|
|
5348
|
-
const ve =
|
|
5349
|
-
ve.isValid() && (
|
|
5344
|
+
const ve = bt(G);
|
|
5345
|
+
ve.isValid() && (te = ve.format(Ne));
|
|
5350
5346
|
}
|
|
5351
5347
|
F({
|
|
5352
5348
|
key: x,
|
|
5353
|
-
value:
|
|
5349
|
+
value: te
|
|
5354
5350
|
});
|
|
5355
5351
|
},
|
|
5356
5352
|
[F, x, O, s, Ne]
|
|
@@ -5362,8 +5358,8 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5362
5358
|
}, []), ue = ce(
|
|
5363
5359
|
(G) => {
|
|
5364
5360
|
if (!k) {
|
|
5365
|
-
const
|
|
5366
|
-
if (l(G ? G.format(
|
|
5361
|
+
const te = s ? Z0 : Q0;
|
|
5362
|
+
if (l(G ? G.format(te) : null), G) {
|
|
5367
5363
|
const pe = document.getElementById(fe);
|
|
5368
5364
|
if (pe) {
|
|
5369
5365
|
const ve = new CustomEvent("pilot-date-change", {
|
|
@@ -5381,9 +5377,9 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5381
5377
|
return;
|
|
5382
5378
|
}
|
|
5383
5379
|
if (G) {
|
|
5384
|
-
let
|
|
5385
|
-
if (s ?
|
|
5386
|
-
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);
|
|
5387
5383
|
const pe = document.getElementById(fe);
|
|
5388
5384
|
if (pe) {
|
|
5389
5385
|
const ve = new CustomEvent("pilot-date-change", {
|
|
@@ -5407,23 +5403,23 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5407
5403
|
if (!G) return null;
|
|
5408
5404
|
if (!k)
|
|
5409
5405
|
try {
|
|
5410
|
-
const
|
|
5411
|
-
if (
|
|
5412
|
-
return
|
|
5413
|
-
const pe =
|
|
5406
|
+
const te = bt(G);
|
|
5407
|
+
if (te.isValid())
|
|
5408
|
+
return te;
|
|
5409
|
+
const pe = bt(G, Ne);
|
|
5414
5410
|
return pe.isValid() ? pe : null;
|
|
5415
5411
|
} catch {
|
|
5416
5412
|
return null;
|
|
5417
5413
|
}
|
|
5418
5414
|
if (s) {
|
|
5419
|
-
const
|
|
5420
|
-
return
|
|
5415
|
+
const te = bt(G);
|
|
5416
|
+
return bt(te).isValid() ? te : null;
|
|
5421
5417
|
} else if (G?.toString()?.includes("Z")) {
|
|
5422
|
-
const
|
|
5423
|
-
return
|
|
5418
|
+
const te = bt.utc(G);
|
|
5419
|
+
return bt(te).isValid() ? te : null;
|
|
5424
5420
|
} else {
|
|
5425
|
-
const
|
|
5426
|
-
return
|
|
5421
|
+
const te = bt(G);
|
|
5422
|
+
return bt(te).isValid() ? te : null;
|
|
5427
5423
|
}
|
|
5428
5424
|
},
|
|
5429
5425
|
[k, Ne, s]
|
|
@@ -5431,7 +5427,7 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5431
5427
|
(G) => {
|
|
5432
5428
|
if (G?.isValid() || G === null) {
|
|
5433
5429
|
J(G);
|
|
5434
|
-
const
|
|
5430
|
+
const te = s ? Z0 : Q0, pe = k ? G?.toISOString() : G ? G.format(te) : "";
|
|
5435
5431
|
if (l(pe || null), G?.isValid()) {
|
|
5436
5432
|
const ve = document.getElementById(fe);
|
|
5437
5433
|
if (ve) {
|
|
@@ -5454,11 +5450,11 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5454
5450
|
ae(() => {
|
|
5455
5451
|
J(ke(t));
|
|
5456
5452
|
}, [t, ke]), ae(() => {
|
|
5457
|
-
|
|
5458
|
-
}, [
|
|
5453
|
+
re && le(null);
|
|
5454
|
+
}, [re]), ae(() => {
|
|
5459
5455
|
const G = document.getElementById(fe);
|
|
5460
5456
|
if (!G) return;
|
|
5461
|
-
const
|
|
5457
|
+
const te = (pe) => {
|
|
5462
5458
|
const { value: ve, type: Xe } = pe.detail;
|
|
5463
5459
|
if (Xe === "date-playback" && ve) {
|
|
5464
5460
|
const Qe = Ln(ve, s);
|
|
@@ -5484,21 +5480,21 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5484
5480
|
};
|
|
5485
5481
|
return G.addEventListener(
|
|
5486
5482
|
"pilot-date-playback",
|
|
5487
|
-
|
|
5483
|
+
te
|
|
5488
5484
|
), () => {
|
|
5489
5485
|
G.removeEventListener(
|
|
5490
5486
|
"pilot-date-playback",
|
|
5491
|
-
|
|
5487
|
+
te
|
|
5492
5488
|
);
|
|
5493
5489
|
};
|
|
5494
5490
|
}, [fe, Ne, ue, s]);
|
|
5495
5491
|
const Te = ce((G) => {
|
|
5496
5492
|
if (G.key === $0.ENTER && !Ee) {
|
|
5497
5493
|
G.preventDefault(), G.stopPropagation();
|
|
5498
|
-
const
|
|
5499
|
-
if (
|
|
5500
|
-
const pe =
|
|
5501
|
-
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();
|
|
5502
5498
|
}
|
|
5503
5499
|
}
|
|
5504
5500
|
}, [Ee]), je = ce((G) => {
|
|
@@ -5530,9 +5526,9 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5530
5526
|
onFocus: Je,
|
|
5531
5527
|
onOpenChange: je,
|
|
5532
5528
|
onBlur: (G) => {
|
|
5533
|
-
const
|
|
5534
|
-
if (
|
|
5535
|
-
const pe = Ln(
|
|
5529
|
+
const te = G.target.value;
|
|
5530
|
+
if (te) {
|
|
5531
|
+
const pe = Ln(te, s);
|
|
5536
5532
|
pe && Re(pe);
|
|
5537
5533
|
}
|
|
5538
5534
|
},
|
|
@@ -5673,9 +5669,9 @@ const y4 = "MM/DD/YYYY", yo = "MM/DD/YYYY - hh:mm A", Q0 = "YYYY-MM-DD", Z0 = "Y
|
|
|
5673
5669
|
J(G), ue(G), le(G?.toISOString() || null);
|
|
5674
5670
|
},
|
|
5675
5671
|
onBlur: (G) => {
|
|
5676
|
-
const
|
|
5677
|
-
if (
|
|
5678
|
-
const pe = Ln(
|
|
5672
|
+
const te = G.target.value;
|
|
5673
|
+
if (te) {
|
|
5674
|
+
const pe = Ln(te, s);
|
|
5679
5675
|
pe && (J(pe), ue(pe));
|
|
5680
5676
|
}
|
|
5681
5677
|
},
|
|
@@ -5840,7 +5836,7 @@ const w4 = it(
|
|
|
5840
5836
|
showDeprecatedFieldWarning: O,
|
|
5841
5837
|
DynamicDataModal: j
|
|
5842
5838
|
}, Q) => {
|
|
5843
|
-
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 = () => {
|
|
5844
5840
|
F?.(!ie), q(!ie);
|
|
5845
5841
|
}, le = (fe) => {
|
|
5846
5842
|
if (fe.keyCode === 9 || fe.key === "Enter") {
|
|
@@ -5992,7 +5988,7 @@ const w4 = it(
|
|
|
5992
5988
|
Gt,
|
|
5993
5989
|
{
|
|
5994
5990
|
id: "btn-dynamic-data-input-ai-outline-pic-center",
|
|
5995
|
-
onClick:
|
|
5991
|
+
onClick: re,
|
|
5996
5992
|
className: "absolute inset-y-0 right-8 flex items-center px-2 focus:border-transparent",
|
|
5997
5993
|
variant: "ghost",
|
|
5998
5994
|
disabled: k,
|
|
@@ -6023,7 +6019,7 @@ const w4 = it(
|
|
|
6023
6019
|
onSelect: (fe) => {
|
|
6024
6020
|
n(fe), Z(fe);
|
|
6025
6021
|
},
|
|
6026
|
-
onClose:
|
|
6022
|
+
onClose: re,
|
|
6027
6023
|
dataKey: d,
|
|
6028
6024
|
dataSource: u
|
|
6029
6025
|
}
|
|
@@ -8799,7 +8795,7 @@ const Pt = (e) => {
|
|
|
8799
8795
|
y,
|
|
8800
8796
|
Fe,
|
|
8801
8797
|
He
|
|
8802
|
-
], J = () => ["none", et, Fe, He],
|
|
8798
|
+
], J = () => ["none", et, Fe, He], re = () => ["none", et, Fe, He], le = () => [et, Fe, He], Ee = () => [Ga, "full", ...k()];
|
|
8803
8799
|
return {
|
|
8804
8800
|
cacheSize: 500,
|
|
8805
8801
|
theme: {
|
|
@@ -10774,28 +10770,28 @@ const Pt = (e) => {
|
|
|
10774
10770
|
* @see https://tailwindcss.com/docs/scale
|
|
10775
10771
|
*/
|
|
10776
10772
|
scale: [{
|
|
10777
|
-
scale:
|
|
10773
|
+
scale: re()
|
|
10778
10774
|
}],
|
|
10779
10775
|
/**
|
|
10780
10776
|
* Scale X
|
|
10781
10777
|
* @see https://tailwindcss.com/docs/scale
|
|
10782
10778
|
*/
|
|
10783
10779
|
"scale-x": [{
|
|
10784
|
-
"scale-x":
|
|
10780
|
+
"scale-x": re()
|
|
10785
10781
|
}],
|
|
10786
10782
|
/**
|
|
10787
10783
|
* Scale Y
|
|
10788
10784
|
* @see https://tailwindcss.com/docs/scale
|
|
10789
10785
|
*/
|
|
10790
10786
|
"scale-y": [{
|
|
10791
|
-
"scale-y":
|
|
10787
|
+
"scale-y": re()
|
|
10792
10788
|
}],
|
|
10793
10789
|
/**
|
|
10794
10790
|
* Scale Z
|
|
10795
10791
|
* @see https://tailwindcss.com/docs/scale
|
|
10796
10792
|
*/
|
|
10797
10793
|
"scale-z": [{
|
|
10798
|
-
"scale-z":
|
|
10794
|
+
"scale-z": re()
|
|
10799
10795
|
}],
|
|
10800
10796
|
/**
|
|
10801
10797
|
* Scale 3D
|
|
@@ -11279,19 +11275,19 @@ const xa = H(
|
|
|
11279
11275
|
ee?.active ? ee.exit() : ee.enter();
|
|
11280
11276
|
}, J = Ae(b);
|
|
11281
11277
|
J.current = b;
|
|
11282
|
-
const
|
|
11278
|
+
const re = ce(
|
|
11283
11279
|
async (ue, ke, Re) => {
|
|
11284
11280
|
if (!J.current) return;
|
|
11285
11281
|
const Te = ue.getModel();
|
|
11286
11282
|
if (!Te) return;
|
|
11287
|
-
const je = (
|
|
11288
|
-
startLineNumber:
|
|
11283
|
+
const je = (te, pe) => Te.getValueInRange({
|
|
11284
|
+
startLineNumber: te,
|
|
11289
11285
|
startColumn: 1,
|
|
11290
11286
|
endLineNumber: pe,
|
|
11291
11287
|
endColumn: Te.getLineMaxColumn(pe)
|
|
11292
|
-
}), G = (
|
|
11288
|
+
}), G = (te, pe, ve, Xe, Qe) => {
|
|
11293
11289
|
J.current({
|
|
11294
|
-
startLine:
|
|
11290
|
+
startLine: te,
|
|
11295
11291
|
endLine: pe,
|
|
11296
11292
|
text: ve,
|
|
11297
11293
|
kind: Xe,
|
|
@@ -11301,11 +11297,11 @@ const xa = H(
|
|
|
11301
11297
|
});
|
|
11302
11298
|
};
|
|
11303
11299
|
try {
|
|
11304
|
-
const
|
|
11300
|
+
const te = ue.getContribution(
|
|
11305
11301
|
"editor.contrib.folding"
|
|
11306
11302
|
);
|
|
11307
|
-
if (
|
|
11308
|
-
const nt = await
|
|
11303
|
+
if (te) {
|
|
11304
|
+
const nt = await te.getFoldingModel();
|
|
11309
11305
|
if (nt?.regions) {
|
|
11310
11306
|
const ot = nt.regions, Ge = Te.getLineCount(), _e = [];
|
|
11311
11307
|
for (let Se = 0; Se < ot.length; Se++) {
|
|
@@ -11373,7 +11369,7 @@ const xa = H(
|
|
|
11373
11369
|
}
|
|
11374
11370
|
const je = Te.range.startLineNumber, G = Te.range.startColumn;
|
|
11375
11371
|
ue.setPosition({ lineNumber: je, column: G }), ue.revealLineInCenter(je, 1);
|
|
11376
|
-
const
|
|
11372
|
+
const te = async () => {
|
|
11377
11373
|
try {
|
|
11378
11374
|
const pe = ue.getContribution(
|
|
11379
11375
|
"editor.contrib.folding"
|
|
@@ -11425,7 +11421,7 @@ const xa = H(
|
|
|
11425
11421
|
}
|
|
11426
11422
|
};
|
|
11427
11423
|
requestAnimationFrame(() => {
|
|
11428
|
-
|
|
11424
|
+
te();
|
|
11429
11425
|
});
|
|
11430
11426
|
}, [g, E]);
|
|
11431
11427
|
const le = (ue) => {
|
|
@@ -11453,7 +11449,7 @@ const xa = H(
|
|
|
11453
11449
|
J.current && ue.onMouseDown(() => {
|
|
11454
11450
|
requestAnimationFrame(() => {
|
|
11455
11451
|
const Re = ue.getPosition();
|
|
11456
|
-
Re &&
|
|
11452
|
+
Re && re(ue, Re.lineNumber, Re.column);
|
|
11457
11453
|
});
|
|
11458
11454
|
});
|
|
11459
11455
|
}, Ee = () => {
|
|
@@ -13732,8 +13728,8 @@ function jx(e) {
|
|
|
13732
13728
|
if (!(!i || !t || !r || !n)) {
|
|
13733
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();
|
|
13734
13730
|
dv(e, g, C, function(Q) {
|
|
13735
|
-
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,
|
|
13736
|
-
(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);
|
|
13737
13733
|
});
|
|
13738
13734
|
}
|
|
13739
13735
|
}
|
|
@@ -14979,7 +14975,7 @@ const UV = ({
|
|
|
14979
14975
|
copyOnHover: j = !1,
|
|
14980
14976
|
urlAlias: Q
|
|
14981
14977
|
}, K) => {
|
|
14982
|
-
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);
|
|
14983
14979
|
ae(() => () => {
|
|
14984
14980
|
Ee.current && clearTimeout(Ee.current);
|
|
14985
14981
|
}, []);
|
|
@@ -15013,9 +15009,9 @@ const UV = ({
|
|
|
15013
15009
|
]
|
|
15014
15010
|
}
|
|
15015
15011
|
);
|
|
15016
|
-
const
|
|
15017
|
-
return
|
|
15018
|
-
/* @__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) }),
|
|
15019
15015
|
ee ? "... " : " ",
|
|
15020
15016
|
We()
|
|
15021
15017
|
] });
|
|
@@ -15030,8 +15026,8 @@ const UV = ({
|
|
|
15030
15026
|
}).catch(() => {
|
|
15031
15027
|
});
|
|
15032
15028
|
}, ke = (G) => {
|
|
15033
|
-
const
|
|
15034
|
-
|
|
15029
|
+
const te = G.target.files?.[0];
|
|
15030
|
+
te && N && N(te), G.target.value = "";
|
|
15035
15031
|
}, Re = () => {
|
|
15036
15032
|
const G = typeof r == "string" && p4(r);
|
|
15037
15033
|
if (y && typeof r == "object")
|
|
@@ -15048,14 +15044,20 @@ const UV = ({
|
|
|
15048
15044
|
if (n?.toLowerCase() === "currency")
|
|
15049
15045
|
return rn(r, l?.currency_code) || "-";
|
|
15050
15046
|
if (n?.toLowerCase() === "datetime") {
|
|
15051
|
-
const
|
|
15052
|
-
return ia(
|
|
15047
|
+
const te = typeof r == "string" && r.includes("Z") ? r.replace(/\.000Z$/, "Z") : r;
|
|
15048
|
+
return ia(te, {
|
|
15053
15049
|
skipTimezone: !1,
|
|
15054
15050
|
withTime: !0
|
|
15055
15051
|
});
|
|
15056
15052
|
} else if (n?.toLowerCase() === "date" || G) {
|
|
15057
|
-
|
|
15058
|
-
|
|
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, {
|
|
15059
15061
|
skipTimezone: !0,
|
|
15060
15062
|
withTime: !1
|
|
15061
15063
|
});
|
|
@@ -15063,9 +15065,9 @@ const UV = ({
|
|
|
15063
15065
|
if (n?.toLowerCase() === "percentage")
|
|
15064
15066
|
return `${r}%`;
|
|
15065
15067
|
if (typeof r == "string" && r.length > Ne) {
|
|
15066
|
-
const
|
|
15068
|
+
const te = xe(r);
|
|
15067
15069
|
return /* @__PURE__ */ w("p", { children: [
|
|
15068
|
-
|
|
15070
|
+
te.slice(0, ee ? Ne : te.length),
|
|
15069
15071
|
ee ? "... " : " ",
|
|
15070
15072
|
We()
|
|
15071
15073
|
] });
|
|
@@ -15165,12 +15167,12 @@ const UV = ({
|
|
|
15165
15167
|
)
|
|
15166
15168
|
}
|
|
15167
15169
|
),
|
|
15168
|
-
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(
|
|
15169
15171
|
"button",
|
|
15170
15172
|
{
|
|
15171
15173
|
type: "button",
|
|
15172
15174
|
onClick: ue,
|
|
15173
|
-
"aria-label":
|
|
15175
|
+
"aria-label": re ? `Copied ${t ?? "value"}` : `Copy ${t ?? "value"}`,
|
|
15174
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",
|
|
15175
15177
|
children: /* @__PURE__ */ w("span", { className: "relative inline-flex h-4 w-4 items-center justify-center", children: [
|
|
15176
15178
|
/* @__PURE__ */ A(
|
|
@@ -15179,7 +15181,7 @@ const UV = ({
|
|
|
15179
15181
|
size: 16,
|
|
15180
15182
|
className: H(
|
|
15181
15183
|
"absolute inset-0 text-primary-600 dark:text-primary-500 transition-all duration-200 ease-out",
|
|
15182
|
-
|
|
15184
|
+
re ? "opacity-0 scale-50 rotate-[-90deg]" : "opacity-100 scale-100 rotate-0"
|
|
15183
15185
|
)
|
|
15184
15186
|
}
|
|
15185
15187
|
),
|
|
@@ -15189,7 +15191,7 @@ const UV = ({
|
|
|
15189
15191
|
size: 16,
|
|
15190
15192
|
className: H(
|
|
15191
15193
|
"absolute inset-0 text-primary-600 dark:text-primary-500 transition-all duration-200 ease-out",
|
|
15192
|
-
|
|
15194
|
+
re ? "opacity-100 scale-100 rotate-0" : "opacity-0 scale-50 rotate-90"
|
|
15193
15195
|
)
|
|
15194
15196
|
}
|
|
15195
15197
|
)
|
|
@@ -19270,11 +19272,11 @@ function zk(e) {
|
|
|
19270
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) : {
|
|
19271
19273
|
width: 0,
|
|
19272
19274
|
height: 0
|
|
19273
|
-
}, 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);
|
|
19274
19276
|
x[E] = We, I[E] = We - F;
|
|
19275
19277
|
}
|
|
19276
19278
|
if (l) {
|
|
19277
|
-
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);
|
|
19278
19280
|
x[S] = ve, I[S] = ve - ue;
|
|
19279
19281
|
}
|
|
19280
19282
|
t.modifiersData[a] = I;
|
|
@@ -23719,7 +23721,7 @@ const yC = ye.memo($v), EC = () => {
|
|
|
23719
23721
|
const q = B.slice(Z + 1).search(/\s/);
|
|
23720
23722
|
let Y;
|
|
23721
23723
|
q === -1 ? Y = B.length : Y = Z + 1 + q;
|
|
23722
|
-
const J = B.slice(0, Z),
|
|
23724
|
+
const J = B.slice(0, Z), re = B.slice(Y), le = `${J}{{${X}}}${re}`;
|
|
23723
23725
|
t(le), E(!1), x(""), setTimeout(() => {
|
|
23724
23726
|
y.current?.focus();
|
|
23725
23727
|
}, 0);
|
|
@@ -24332,9 +24334,9 @@ const Oo = (e) => {
|
|
|
24332
24334
|
linkConfig: R,
|
|
24333
24335
|
showTabOptions: U = !0
|
|
24334
24336
|
}) => {
|
|
24335
|
-
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(
|
|
24336
24338
|
Q ?? Jf
|
|
24337
|
-
), [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(
|
|
24338
24340
|
va(vp, { activationConstraint: { distance: 5 } }),
|
|
24339
24341
|
va(yp, { activationConstraint: { delay: 300, tolerance: 5 } })
|
|
24340
24342
|
), Ge = De(() => n && Object.fromEntries(
|
|
@@ -24367,7 +24369,7 @@ const Oo = (e) => {
|
|
|
24367
24369
|
), br = (oe) => oe.is_pinned ? 32 : 0, Lt = ce(
|
|
24368
24370
|
(oe) => {
|
|
24369
24371
|
if (!oe) return;
|
|
24370
|
-
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;
|
|
24371
24373
|
let Ht = 0, Va = 0, Wt = 0;
|
|
24372
24374
|
const $t = oe - (k?.width || 0) - Pe, wn = Xe.current, sa = wn < Oe.length, ja = Se.length > 0;
|
|
24373
24375
|
for (let Xt = 0; Xt < Oe.length; Xt++) {
|
|
@@ -24379,7 +24381,7 @@ const Oo = (e) => {
|
|
|
24379
24381
|
fontSize: "16px",
|
|
24380
24382
|
fontWeight: "600",
|
|
24381
24383
|
fontFamily: "Inter, system-ui, -apple-system, sans-serif"
|
|
24382
|
-
}), Vr = x ? br(_r) : 0, Rr = Tn + kn + pt +
|
|
24384
|
+
}), Vr = x ? br(_r) : 0, Rr = Tn + kn + pt + vt + Vr;
|
|
24383
24385
|
if (_r.name === r && (Va = Rr), Ht += Rr, $t > Ht + (sa || ja ? Ve : 0) + Xt * 25)
|
|
24384
24386
|
Wt = Xt + 1;
|
|
24385
24387
|
else
|
|
@@ -24397,7 +24399,7 @@ const Oo = (e) => {
|
|
|
24397
24399
|
fontSize: "16px",
|
|
24398
24400
|
fontWeight: "600",
|
|
24399
24401
|
fontFamily: "Inter, system-ui, -apple-system, sans-serif"
|
|
24400
|
-
}), Tn = x ? br(Xt) : 0, Vr = kn + ka + pt +
|
|
24402
|
+
}), Tn = x ? br(Xt) : 0, Vr = kn + ka + pt + vt + Tn;
|
|
24401
24403
|
$t >= Ht + Vr && (Wt += 1);
|
|
24402
24404
|
}
|
|
24403
24405
|
}
|
|
@@ -24436,12 +24438,12 @@ const Oo = (e) => {
|
|
|
24436
24438
|
[Br, Ye, R]
|
|
24437
24439
|
), qr = d || !!R, En = ce(
|
|
24438
24440
|
async (oe) => {
|
|
24439
|
-
const Pe = gr(oe), Ve = typeof window < "u" ? window.location.origin : "",
|
|
24440
|
-
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"), {
|
|
24441
24443
|
toastId: "Link copied to clipboard"
|
|
24442
24444
|
}), S?.(oe, pt);
|
|
24443
24445
|
},
|
|
24444
|
-
[gr,
|
|
24446
|
+
[gr, te, S]
|
|
24445
24447
|
), Rt = (oe) => {
|
|
24446
24448
|
if (B(!1), a?.(oe), R && F?.navigate) {
|
|
24447
24449
|
const Pe = Br(Ye(), oe);
|
|
@@ -24451,30 +24453,30 @@ const Oo = (e) => {
|
|
|
24451
24453
|
if (Oe.length <= 1) return;
|
|
24452
24454
|
const Pe = q.map(
|
|
24453
24455
|
(pt) => pt.name === oe ? { ...pt, is_hidden: !0 } : pt
|
|
24454
|
-
), Ve = Oe.findIndex((pt) => pt.name === oe),
|
|
24455
|
-
Rt(Oe[
|
|
24456
|
+
), Ve = Oe.findIndex((pt) => pt.name === oe), vt = Ve === 0 ? 1 : Ve - 1;
|
|
24457
|
+
Rt(Oe[vt].name), Vt(Pe);
|
|
24456
24458
|
}, Ze = (oe) => {
|
|
24457
24459
|
const Pe = q.map(
|
|
24458
24460
|
(Ve) => Ve.name === oe ? { ...Ve, is_hidden: !1 } : Ve
|
|
24459
24461
|
);
|
|
24460
24462
|
B(!1), Vt(Pe);
|
|
24461
|
-
},
|
|
24463
|
+
}, _t = (oe) => {
|
|
24462
24464
|
if (!x) return;
|
|
24463
24465
|
const Pe = q.map(
|
|
24464
24466
|
(Ve) => Ve.name === oe ? { ...Ve, is_pinned: !Ve.is_pinned } : Ve
|
|
24465
24467
|
);
|
|
24466
24468
|
Vt(Pe);
|
|
24467
24469
|
}, jt = (oe, Pe) => {
|
|
24468
|
-
const Ve = q.findIndex(({ name: pt }) => pt === oe),
|
|
24469
|
-
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));
|
|
24470
24472
|
}, yt = () => B(!X), Yt = (oe) => Ne(oe.active.id), xn = (oe) => {
|
|
24471
24473
|
const { active: Pe, over: Ve } = oe;
|
|
24472
24474
|
if (Ve?.id === "more-tabs") {
|
|
24473
24475
|
kt(Pe.id), Ne(null), Ee(null);
|
|
24474
24476
|
return;
|
|
24475
24477
|
}
|
|
24476
|
-
const
|
|
24477
|
-
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);
|
|
24478
24480
|
}, TA = () => {
|
|
24479
24481
|
Ne(null), Ee(null);
|
|
24480
24482
|
}, Et = (oe) => {
|
|
@@ -24489,7 +24491,7 @@ const Oo = (e) => {
|
|
|
24489
24491
|
Ar,
|
|
24490
24492
|
{
|
|
24491
24493
|
icon: /* @__PURE__ */ A(O9, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24492
|
-
text:
|
|
24494
|
+
text: te("Select Tab"),
|
|
24493
24495
|
className: "text-black-900 dark:text-white"
|
|
24494
24496
|
}
|
|
24495
24497
|
),
|
|
@@ -24501,7 +24503,7 @@ const Oo = (e) => {
|
|
|
24501
24503
|
Ar,
|
|
24502
24504
|
{
|
|
24503
24505
|
icon: /* @__PURE__ */ A(P9, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24504
|
-
text:
|
|
24506
|
+
text: te("Move Up"),
|
|
24505
24507
|
isDisabled: je,
|
|
24506
24508
|
className: "text-black-900 dark:text-white"
|
|
24507
24509
|
}
|
|
@@ -24515,7 +24517,7 @@ const Oo = (e) => {
|
|
|
24515
24517
|
Ar,
|
|
24516
24518
|
{
|
|
24517
24519
|
icon: /* @__PURE__ */ A(I9, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24518
|
-
text:
|
|
24520
|
+
text: te("Move Down"),
|
|
24519
24521
|
isDisabled: je,
|
|
24520
24522
|
className: "text-black-900 dark:text-white"
|
|
24521
24523
|
}
|
|
@@ -24529,7 +24531,7 @@ const Oo = (e) => {
|
|
|
24529
24531
|
Ar,
|
|
24530
24532
|
{
|
|
24531
24533
|
icon: /* @__PURE__ */ A(k3, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24532
|
-
text:
|
|
24534
|
+
text: te("Copy Link"),
|
|
24533
24535
|
className: "text-black-900 dark:text-white"
|
|
24534
24536
|
}
|
|
24535
24537
|
),
|
|
@@ -24541,7 +24543,7 @@ const Oo = (e) => {
|
|
|
24541
24543
|
Ar,
|
|
24542
24544
|
{
|
|
24543
24545
|
icon: /* @__PURE__ */ A(M9, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24544
|
-
text:
|
|
24546
|
+
text: te("Hide"),
|
|
24545
24547
|
className: "text-black-900 dark:text-white"
|
|
24546
24548
|
}
|
|
24547
24549
|
),
|
|
@@ -24553,7 +24555,7 @@ const Oo = (e) => {
|
|
|
24553
24555
|
Ar,
|
|
24554
24556
|
{
|
|
24555
24557
|
icon: /* @__PURE__ */ A(H9, { size: 18, className: "text-inherit dark:text-inherit" }),
|
|
24556
|
-
text:
|
|
24558
|
+
text: te("Unhide"),
|
|
24557
24559
|
className: "text-black-900 dark:text-white"
|
|
24558
24560
|
}
|
|
24559
24561
|
),
|
|
@@ -24565,13 +24567,13 @@ const Oo = (e) => {
|
|
|
24565
24567
|
Ar,
|
|
24566
24568
|
{
|
|
24567
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" }),
|
|
24568
|
-
text:
|
|
24570
|
+
text: te(pt ? "Unpin" : "Pin"),
|
|
24569
24571
|
className: "text-black-900 dark:text-white",
|
|
24570
24572
|
notVisible: !x
|
|
24571
24573
|
}
|
|
24572
24574
|
),
|
|
24573
24575
|
key: pt ? It.UNPIN : It.PIN,
|
|
24574
|
-
onClick: () =>
|
|
24576
|
+
onClick: () => _t(oe)
|
|
24575
24577
|
},
|
|
24576
24578
|
{
|
|
24577
24579
|
label: /* @__PURE__ */ A(
|
|
@@ -24579,7 +24581,7 @@ const Oo = (e) => {
|
|
|
24579
24581
|
{
|
|
24580
24582
|
className: "text-black-900 dark:text-white",
|
|
24581
24583
|
icon: /* @__PURE__ */ A(qf, {}),
|
|
24582
|
-
text:
|
|
24584
|
+
text: te("Edit"),
|
|
24583
24585
|
notVisible: !g
|
|
24584
24586
|
}
|
|
24585
24587
|
),
|
|
@@ -24592,7 +24594,7 @@ const Oo = (e) => {
|
|
|
24592
24594
|
{
|
|
24593
24595
|
className: "text-error-600 dark:text-error-600",
|
|
24594
24596
|
icon: /* @__PURE__ */ A(pA, { size: 18, className: "text-error-600 dark:text-error-600" }),
|
|
24595
|
-
text:
|
|
24597
|
+
text: te("Delete"),
|
|
24596
24598
|
notVisible: !E
|
|
24597
24599
|
}
|
|
24598
24600
|
),
|
|
@@ -24641,18 +24643,18 @@ const Oo = (e) => {
|
|
|
24641
24643
|
t.forEach((Pe) => {
|
|
24642
24644
|
oe.find((Ve) => Ve.name === Pe) || oe.push({ name: Pe, is_default: !1, is_hidden: !1, is_pinned: !1 });
|
|
24643
24645
|
}), oe = oe.filter(
|
|
24644
|
-
(Pe, Ve,
|
|
24646
|
+
(Pe, Ve, vt) => t.includes(Pe.name) && Ve === vt.findIndex((pt) => pt.name === Pe.name)
|
|
24645
24647
|
), Y(oe);
|
|
24646
24648
|
} else
|
|
24647
24649
|
Y(
|
|
24648
|
-
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))
|
|
24649
24651
|
);
|
|
24650
24652
|
}, [ao, no]), ae(() => {
|
|
24651
24653
|
Q && Le(Q);
|
|
24652
24654
|
}, [Q]), ae(() => {
|
|
24653
24655
|
if (!q.length) return;
|
|
24654
24656
|
const oe = [...q];
|
|
24655
|
-
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);
|
|
24656
24658
|
}, [q, G]), ae(() => {
|
|
24657
24659
|
Oo(X);
|
|
24658
24660
|
}, [X]), e === "switch" ? /* @__PURE__ */ A("div", { className: H("inline", l), children: /* @__PURE__ */ A(
|
|
@@ -24666,7 +24668,7 @@ const Oo = (e) => {
|
|
|
24666
24668
|
v ? "w-full" : "w-auto"
|
|
24667
24669
|
),
|
|
24668
24670
|
children: t.map((oe) => {
|
|
24669
|
-
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;
|
|
24670
24672
|
return /* @__PURE__ */ A("li", { role: "presentation", className: H("inline-flex", v ? "w-full" : "w-auto"), children: /* @__PURE__ */ A(
|
|
24671
24673
|
Yn,
|
|
24672
24674
|
{
|
|
@@ -24675,7 +24677,7 @@ const Oo = (e) => {
|
|
|
24675
24677
|
role: "tab",
|
|
24676
24678
|
ariaSelected: Pe,
|
|
24677
24679
|
tabIndex: 0,
|
|
24678
|
-
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,
|
|
24679
24681
|
iconsOnly: p,
|
|
24680
24682
|
classValue: H(
|
|
24681
24683
|
"relative py-0.5 border-gray-200",
|
|
@@ -24739,7 +24741,7 @@ const Oo = (e) => {
|
|
|
24739
24741
|
disabled: !s || je,
|
|
24740
24742
|
children: [
|
|
24741
24743
|
Oe.slice(0, Ie).map(({ name: oe, is_pinned: Pe }) => {
|
|
24742
|
-
const Ve = r === oe && !X,
|
|
24744
|
+
const Ve = r === oe && !X, vt = x && Pe;
|
|
24743
24745
|
return /* @__PURE__ */ A(
|
|
24744
24746
|
U1,
|
|
24745
24747
|
{
|
|
@@ -24777,7 +24779,7 @@ const Oo = (e) => {
|
|
|
24777
24779
|
children: /* @__PURE__ */ A(
|
|
24778
24780
|
Gt,
|
|
24779
24781
|
{
|
|
24780
|
-
tooltip:
|
|
24782
|
+
tooltip: te("More"),
|
|
24781
24783
|
variant: "ghost",
|
|
24782
24784
|
className: "!text-primary-500 hover:!bg-primary-100 dark:hover:!bg-primary-900",
|
|
24783
24785
|
children: /* @__PURE__ */ A(j0, { sx: { fontSize: 20 } })
|
|
@@ -24790,7 +24792,7 @@ const Oo = (e) => {
|
|
|
24790
24792
|
onClick: () => Rt(oe),
|
|
24791
24793
|
suffixRecord: Ge,
|
|
24792
24794
|
selectedId: nt,
|
|
24793
|
-
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
|
|
24794
24796
|
}
|
|
24795
24797
|
) }, oe)
|
|
24796
24798
|
},
|
|
@@ -24829,7 +24831,7 @@ const Oo = (e) => {
|
|
|
24829
24831
|
href: gr(r),
|
|
24830
24832
|
suffixRecord: Ge,
|
|
24831
24833
|
selectedId: nt,
|
|
24832
|
-
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
|
|
24833
24835
|
}
|
|
24834
24836
|
) }, r) }, r) : null,
|
|
24835
24837
|
(Z < Oe.length && !u || Se.length > 0) && lt > 0 ? /* @__PURE__ */ A(MC, { id: "more-tabs", children: /* @__PURE__ */ A(
|
|
@@ -33203,7 +33205,7 @@ function ZR(e, t) {
|
|
|
33203
33205
|
defaultCodeValue: q
|
|
33204
33206
|
});
|
|
33205
33207
|
Y.language === null && (Y.value = q);
|
|
33206
|
-
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);
|
|
33207
33209
|
return /* @__PURE__ */ ye.createElement(U, ie, /* @__PURE__ */ ye.createElement(O, p, !g && X, L({
|
|
33208
33210
|
rows: le,
|
|
33209
33211
|
stylesheet: u,
|
|
@@ -34203,11 +34205,11 @@ function _I() {
|
|
|
34203
34205
|
return (Z.position.indent || Z.position.start) && (Z.indent = Z.position.indent || [], Z.position = Z.position.start), Q(X, Z);
|
|
34204
34206
|
}
|
|
34205
34207
|
function Q(X, B) {
|
|
34206
|
-
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;
|
|
34207
34209
|
for (typeof Z == "string" && (Z = Z.charCodeAt(0)), Oe = lt(), Xe = J ? Vt : s, We--, fe++; ++We < fe; )
|
|
34208
|
-
if (
|
|
34210
|
+
if (te === c && (Le = Ne[we] || 1), te = X.charCodeAt(We), te === y) {
|
|
34209
34211
|
if (ve = X.charCodeAt(We + 1), ve === d || ve === c || ve === m || ve === p || ve === y || ve === v || ve !== ve || Z && ve === Z) {
|
|
34210
|
-
ue += l(
|
|
34212
|
+
ue += l(te), Le++;
|
|
34211
34213
|
continue;
|
|
34212
34214
|
}
|
|
34213
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)); )
|
|
@@ -34219,7 +34221,7 @@ function _I() {
|
|
|
34219
34221
|
X.slice(_e - 1, Be)
|
|
34220
34222
|
), Oe = At) : (G = X.slice(_e - 1, Be), ue += G, Le += G.length, We = Be - 1);
|
|
34221
34223
|
} else
|
|
34222
|
-
|
|
34224
|
+
te === 10 && (Je++, we++, Le = 0), te === te ? (ue += l(te), Le++) : rr();
|
|
34223
34225
|
return ke.join("");
|
|
34224
34226
|
function lt() {
|
|
34225
34227
|
return {
|
|
@@ -34233,7 +34235,7 @@ function _I() {
|
|
|
34233
34235
|
Ye.column += Lt, Ye.offset += Lt, J.call(Ee, O[br], Ye, br);
|
|
34234
34236
|
}
|
|
34235
34237
|
function rr() {
|
|
34236
|
-
ue && (ke.push(ue), q && q.call(
|
|
34238
|
+
ue && (ke.push(ue), q && q.call(re, ue, { start: Oe, end: lt() }), ue = "");
|
|
34237
34239
|
}
|
|
34238
34240
|
}
|
|
34239
34241
|
function K(X) {
|
|
@@ -34893,15 +34895,15 @@ function vI() {
|
|
|
34893
34895
|
K--, Q = b.slice(j, B), ee.index -= j;
|
|
34894
34896
|
} else if (ee = u(F, 0, Q, P), !ee)
|
|
34895
34897
|
continue;
|
|
34896
|
-
var ie = ee.index, q = ee[0], Y = Q.slice(0, ie), J = Q.slice(ie + q.length),
|
|
34897
|
-
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);
|
|
34898
34900
|
var le = O.prev;
|
|
34899
34901
|
Y && (le = m(g, le, Y), j += Y.length), p(g, le, K);
|
|
34900
34902
|
var Ee = new s(k, I ? l.tokenize(q, I) : q, R, q);
|
|
34901
34903
|
if (O = m(g, le, Ee), J && m(g, O, J), K > 1) {
|
|
34902
34904
|
var xe = {
|
|
34903
34905
|
cause: k + "," + N,
|
|
34904
|
-
reach:
|
|
34906
|
+
reach: re
|
|
34905
34907
|
};
|
|
34906
34908
|
d(b, g, E, O.prev, j, xe), T && xe.reach > T.reach && (T.reach = xe.reach);
|
|
34907
34909
|
}
|
|
@@ -55226,22 +55228,22 @@ const fz = ["edit", "preview"], pz = ({ className: e, size: t = 16 }) => /* @__P
|
|
|
55226
55228
|
showMinimalPreview: D = !1,
|
|
55227
55229
|
acceptAdvanceContent: I = !0
|
|
55228
55230
|
}, P) => {
|
|
55229
|
-
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 = "") => {
|
|
55230
55232
|
const le = P?.current || O.current;
|
|
55231
55233
|
if (!le) return;
|
|
55232
|
-
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);
|
|
55233
55235
|
a(We), setTimeout(() => {
|
|
55234
55236
|
const we = Ee + Y.length + (Ne ? Ne.length : 0);
|
|
55235
|
-
le.focus(), le.setSelectionRange(we, we + (Ne ? 0 :
|
|
55237
|
+
le.focus(), le.setSelectionRange(we, we + (Ne ? 0 : re.length));
|
|
55236
55238
|
}, 0);
|
|
55237
55239
|
}, ee = (Y) => {
|
|
55238
55240
|
const J = P?.current || O.current;
|
|
55239
55241
|
if (!J) return;
|
|
55240
|
-
const
|
|
55242
|
+
const re = J.selectionStart, le = J.selectionEnd, Ee = t.split(`
|
|
55241
55243
|
`);
|
|
55242
55244
|
let xe = 0, Ne = 0, fe = 0;
|
|
55243
55245
|
for (let we = 0; we < Ee.length; we++) {
|
|
55244
|
-
if (xe <=
|
|
55246
|
+
if (xe <= re && re <= xe + Ee[we].length + 1 && (Ne = we), xe <= le && le <= xe + Ee[we].length + 1) {
|
|
55245
55247
|
fe = we;
|
|
55246
55248
|
break;
|
|
55247
55249
|
}
|
|
@@ -64049,8 +64051,8 @@ const Da = (e) => ({
|
|
|
64049
64051
|
m
|
|
64050
64052
|
]
|
|
64051
64053
|
), h = () => {
|
|
64052
|
-
const q = e?.row?.original?.__rawData, Y = e?.column?.Header, J = e?.column?.key,
|
|
64053
|
-
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";
|
|
64054
64056
|
}, b = e.column.key || "", g = `${t}-${b}`, E = u?.(g), S = d?.(String(t), b), [x, T] = W({
|
|
64055
64057
|
value: S?.value !== void 0 ? S.value : e.value || "",
|
|
64056
64058
|
currencyCode: S?.meta?.currency_code || E || h()
|
|
@@ -64061,9 +64063,9 @@ const Da = (e) => ({
|
|
|
64061
64063
|
})(), D = d?.(String(t), b)?.validationError, I = k || N || D || null, P = Ae(null);
|
|
64062
64064
|
ae(() => {
|
|
64063
64065
|
if (r === b && P.current !== b) {
|
|
64064
|
-
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();
|
|
64065
64067
|
T({
|
|
64066
|
-
value:
|
|
64068
|
+
value: re,
|
|
64067
64069
|
currencyCode: le
|
|
64068
64070
|
});
|
|
64069
64071
|
}
|
|
@@ -64140,19 +64142,19 @@ const Da = (e) => ({
|
|
|
64140
64142
|
}
|
|
64141
64143
|
}, [e?.column?.type]), Z = ce(() => {
|
|
64142
64144
|
const q = e?.column?.type?.toLowerCase(), Y = F.current.value, J = F.current.currencyCode;
|
|
64143
|
-
let
|
|
64145
|
+
let re = !0;
|
|
64144
64146
|
switch (q) {
|
|
64145
64147
|
case "url":
|
|
64146
|
-
|
|
64148
|
+
re = R(String(Y ?? ""));
|
|
64147
64149
|
break;
|
|
64148
64150
|
case "e-mail":
|
|
64149
|
-
|
|
64151
|
+
re = U(String(Y ?? ""));
|
|
64150
64152
|
break;
|
|
64151
64153
|
default:
|
|
64152
|
-
|
|
64154
|
+
re = L(Y);
|
|
64153
64155
|
break;
|
|
64154
64156
|
}
|
|
64155
|
-
if (!
|
|
64157
|
+
if (!re)
|
|
64156
64158
|
return { isValid: !1 };
|
|
64157
64159
|
let le = null;
|
|
64158
64160
|
return q === "currency" && (le = { currency_code: u?.(g) || J }), {
|
|
@@ -64166,12 +64168,12 @@ const Da = (e) => ({
|
|
|
64166
64168
|
}, [i, Z, r, b]);
|
|
64167
64169
|
const ie = () => {
|
|
64168
64170
|
if (e?.column?.is_master_data && e?.column?.masterDataName && (e?.column?.masterDataColumnName || e?.column?.masterDataFormula)) {
|
|
64169
|
-
const J = d?.(String(t), b),
|
|
64171
|
+
const J = d?.(String(t), b), re = l?.value ?? J?.value ?? e.value;
|
|
64170
64172
|
return /* @__PURE__ */ A("div", { onMouseDown: (le) => le.stopPropagation(), className: "z-[120] h-full w-full", children: /* @__PURE__ */ A(
|
|
64171
64173
|
rq,
|
|
64172
64174
|
{
|
|
64173
64175
|
id: `master-data-cell-${t}-${e.column.id}`,
|
|
64174
|
-
value:
|
|
64176
|
+
value: re,
|
|
64175
64177
|
onChange: (le, Ee) => {
|
|
64176
64178
|
n(Da(le)), c && c(String(t), b, {
|
|
64177
64179
|
value: le,
|
|
@@ -64193,17 +64195,17 @@ const Da = (e) => ({
|
|
|
64193
64195
|
switch (q) {
|
|
64194
64196
|
case "choice": {
|
|
64195
64197
|
const J = Y?.choices ?? e?.column?.choices;
|
|
64196
|
-
return /* @__PURE__ */ A("div", { onMouseDown: (
|
|
64198
|
+
return /* @__PURE__ */ A("div", { onMouseDown: (re) => re.stopPropagation(), children: /* @__PURE__ */ A(
|
|
64197
64199
|
Mi,
|
|
64198
64200
|
{
|
|
64199
64201
|
id: `select-cell-${t}-${e.column.id}`,
|
|
64200
64202
|
value: x.value || null,
|
|
64201
|
-
selectOptions: J?.map((
|
|
64202
|
-
label:
|
|
64203
|
-
value:
|
|
64203
|
+
selectOptions: J?.map((re) => ({
|
|
64204
|
+
label: re,
|
|
64205
|
+
value: re
|
|
64204
64206
|
})) || [],
|
|
64205
|
-
onChange: (
|
|
64206
|
-
const le =
|
|
64207
|
+
onChange: (re) => {
|
|
64208
|
+
const le = re ? Array.isArray(re) ? re[0]?.value?.toString() || "" : re?.value?.toString() || "" : "";
|
|
64207
64209
|
T((Ee) => ({ ...Ee, value: le })), n(Da(le)), c && c(String(t), b, {
|
|
64208
64210
|
value: le,
|
|
64209
64211
|
originalValue: e.value
|
|
@@ -64233,11 +64235,11 @@ const Da = (e) => ({
|
|
|
64233
64235
|
id: `date-cell-${t}-${e.column.id}`,
|
|
64234
64236
|
value: x.value || void 0,
|
|
64235
64237
|
handleOnChange: (J) => {
|
|
64236
|
-
const
|
|
64237
|
-
T((le) => ({ ...le, value:
|
|
64238
|
-
value:
|
|
64238
|
+
const re = J || "";
|
|
64239
|
+
T((le) => ({ ...le, value: re })), n(Da(re)), c && c(String(t), b, {
|
|
64240
|
+
value: re,
|
|
64239
64241
|
originalValue: e.value
|
|
64240
|
-
}), v(
|
|
64242
|
+
}), v(re), L(re);
|
|
64241
64243
|
},
|
|
64242
64244
|
showTime: q === "datetime",
|
|
64243
64245
|
dateFormat: q === "date" ? "MM/DD/YYYY" : void 0,
|
|
@@ -64248,21 +64250,21 @@ const Da = (e) => ({
|
|
|
64248
64250
|
);
|
|
64249
64251
|
case "currency": {
|
|
64250
64252
|
const J = h();
|
|
64251
|
-
return /* @__PURE__ */ A("div", { onMouseDown: (
|
|
64253
|
+
return /* @__PURE__ */ A("div", { onMouseDown: (re) => re.stopPropagation(), className: "z-[120] h-full w-full", children: /* @__PURE__ */ A(
|
|
64252
64254
|
tq,
|
|
64253
64255
|
{
|
|
64254
64256
|
id: g,
|
|
64255
64257
|
value: String(x.value ?? ""),
|
|
64256
|
-
onChange: (
|
|
64258
|
+
onChange: (re, le) => {
|
|
64257
64259
|
T((Ee) => ({
|
|
64258
|
-
value:
|
|
64260
|
+
value: re,
|
|
64259
64261
|
currencyCode: le || Ee.currencyCode
|
|
64260
|
-
})), n(Da(
|
|
64261
|
-
value:
|
|
64262
|
+
})), n(Da(re)), c && c(String(t), b, {
|
|
64263
|
+
value: re,
|
|
64262
64264
|
meta: { currency_code: le },
|
|
64263
64265
|
originalValue: e.value,
|
|
64264
64266
|
originalMeta: { currency_code: J }
|
|
64265
|
-
}), L(
|
|
64267
|
+
}), L(re), v(re, { currency_code: le });
|
|
64266
64268
|
},
|
|
64267
64269
|
currencyCode: x.currencyCode,
|
|
64268
64270
|
inputStyle: {
|
|
@@ -64288,8 +64290,8 @@ const Da = (e) => ({
|
|
|
64288
64290
|
ta.set(j, { start: J.target.selectionStart ?? 0, end: J.target.selectionEnd ?? 0 });
|
|
64289
64291
|
} catch {
|
|
64290
64292
|
}
|
|
64291
|
-
const
|
|
64292
|
-
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);
|
|
64293
64295
|
},
|
|
64294
64296
|
onBlur: () => {
|
|
64295
64297
|
ra = j, ta.delete(j), X(), B(), vr === j && (vr = null, v(F.current.value)), requestAnimationFrame(() => {
|
|
@@ -64317,18 +64319,18 @@ const Da = (e) => ({
|
|
|
64317
64319
|
return /* @__PURE__ */ A(
|
|
64318
64320
|
"div",
|
|
64319
64321
|
{
|
|
64320
|
-
onMouseDown: (
|
|
64322
|
+
onMouseDown: (re) => re.stopPropagation(),
|
|
64321
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]",
|
|
64322
64324
|
children: /* @__PURE__ */ A(
|
|
64323
64325
|
ya,
|
|
64324
64326
|
{
|
|
64325
64327
|
id: `toggle-cell-${t}-${e.column.id}`,
|
|
64326
64328
|
isChecked: J,
|
|
64327
|
-
onChange: (
|
|
64328
|
-
T((le) => ({ ...le, value:
|
|
64329
|
-
value:
|
|
64329
|
+
onChange: (re) => {
|
|
64330
|
+
T((le) => ({ ...le, value: re })), n(Da(re)), c && c(String(t), b, {
|
|
64331
|
+
value: re,
|
|
64330
64332
|
originalValue: e.value
|
|
64331
|
-
}), v(
|
|
64333
|
+
}), v(re);
|
|
64332
64334
|
},
|
|
64333
64335
|
hideStatus: !1,
|
|
64334
64336
|
labelDirection: "right",
|
|
@@ -64348,8 +64350,8 @@ const Da = (e) => ({
|
|
|
64348
64350
|
defaultValue: String(x.value ?? ""),
|
|
64349
64351
|
onChange: (J) => {
|
|
64350
64352
|
ta.set(j, { start: J.target.selectionStart ?? 0, end: J.target.selectionEnd ?? 0 });
|
|
64351
|
-
const
|
|
64352
|
-
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);
|
|
64353
64355
|
},
|
|
64354
64356
|
onBlur: () => {
|
|
64355
64357
|
ra = j, ta.delete(j), X(), B(), vr === j && (vr = null, v(F.current.value)), requestAnimationFrame(() => {
|
|
@@ -64379,8 +64381,8 @@ const Da = (e) => ({
|
|
|
64379
64381
|
ta.set(j, { start: J.target.selectionStart ?? 0, end: J.target.selectionEnd ?? 0 });
|
|
64380
64382
|
} catch {
|
|
64381
64383
|
}
|
|
64382
|
-
const
|
|
64383
|
-
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);
|
|
64384
64386
|
},
|
|
64385
64387
|
onBlur: () => {
|
|
64386
64388
|
ra = j, ta.delete(j), X(), B(), vr === j && (vr = null, v(F.current.value)), requestAnimationFrame(() => {
|
|
@@ -64407,8 +64409,8 @@ const Da = (e) => ({
|
|
|
64407
64409
|
defaultValue: String(x.value ?? ""),
|
|
64408
64410
|
onChange: (J) => {
|
|
64409
64411
|
ta.set(j, { start: J.target.selectionStart ?? 0, end: J.target.selectionEnd ?? 0 });
|
|
64410
|
-
const
|
|
64411
|
-
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);
|
|
64412
64414
|
},
|
|
64413
64415
|
onBlur: () => {
|
|
64414
64416
|
ra = j, ta.delete(j), X(), B(), vr === j && (vr = null, v(F.current.value)), requestAnimationFrame(() => {
|
|
@@ -64516,9 +64518,9 @@ const s3 = (e) => {
|
|
|
64516
64518
|
allowInlineEdit: B,
|
|
64517
64519
|
fieldOperationLoading: Z,
|
|
64518
64520
|
pendingEdits: ie
|
|
64519
|
-
} = 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(
|
|
64520
64522
|
e?.column?.dataType === "duration" && e?.value ? we ? we(e.value) : s3(e.value) : e.value
|
|
64521
|
-
), [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(() => {
|
|
64522
64524
|
ve.current && Te(ve.current.scrollWidth > ve.current.clientWidth);
|
|
64523
64525
|
}, []), _e = ce((Ie) => {
|
|
64524
64526
|
Xe.current && clearTimeout(Xe.current), Ie ? G(!0) : Xe.current = setTimeout(() => G(!1), 200);
|
|
@@ -64594,7 +64596,7 @@ const s3 = (e) => {
|
|
|
64594
64596
|
"overflow-x-hidden overflow-y-visible": v !== e.column.key && At,
|
|
64595
64597
|
"overflow-hidden": v !== e.column.key && !At
|
|
64596
64598
|
},
|
|
64597
|
-
|
|
64599
|
+
re && !le ? "outline outline-2 outline-error-500 -outline-offset-2 z-[5]" : "",
|
|
64598
64600
|
`${qe || "bg-white dark:bg-black-800"}`
|
|
64599
64601
|
),
|
|
64600
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 },
|
|
@@ -64656,7 +64658,7 @@ const s3 = (e) => {
|
|
|
64656
64658
|
placement: "top",
|
|
64657
64659
|
delayShow: !0,
|
|
64658
64660
|
hideTooltip: !!ue,
|
|
64659
|
-
open: Re && !ue && !At ?
|
|
64661
|
+
open: Re && !ue && !At ? te : void 0,
|
|
64660
64662
|
onOpenChange: Re && !ue && !At ? Se : void 0,
|
|
64661
64663
|
className: H("block w-full min-w-0", At ? "overflow-x-hidden overflow-y-visible" : "overflow-hidden"),
|
|
64662
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(
|
|
@@ -64679,7 +64681,7 @@ const s3 = (e) => {
|
|
|
64679
64681
|
}
|
|
64680
64682
|
) })
|
|
64681
64683
|
] }) }),
|
|
64682
|
-
|
|
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 }) }) }),
|
|
64683
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 }) })
|
|
64684
64686
|
]
|
|
64685
64687
|
},
|
|
@@ -64921,10 +64923,10 @@ const s3 = (e) => {
|
|
|
64921
64923
|
pendingEdits: j
|
|
64922
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) => {
|
|
64923
64925
|
X?.(Ze === null ? null : { rowId: String(e.original.id), columnKey: Ze });
|
|
64924
|
-
}, [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);
|
|
64925
64927
|
ae(() => {
|
|
64926
|
-
const Ze = we.current,
|
|
64927
|
-
if (Ze && !
|
|
64928
|
+
const Ze = we.current, _t = B;
|
|
64929
|
+
if (Ze && !_t) {
|
|
64928
64930
|
const jt = j?.[e.original.id]?.[Ze];
|
|
64929
64931
|
if (jt) {
|
|
64930
64932
|
const yt = e.cells?.find((Yt) => Yt.column?.key === Ze);
|
|
@@ -64937,14 +64939,14 @@ const s3 = (e) => {
|
|
|
64937
64939
|
}
|
|
64938
64940
|
}
|
|
64939
64941
|
}
|
|
64940
|
-
we.current =
|
|
64942
|
+
we.current = _t ?? null;
|
|
64941
64943
|
}, [B, e.original.id, e.cells, j, L]), ae(() => {
|
|
64942
64944
|
if (T) {
|
|
64943
64945
|
const Ze = String(e?.original?.id);
|
|
64944
64946
|
Ee(T[Ze]?.[e?.cells[0].column.Header] || T[Ze]?.[0]);
|
|
64945
64947
|
}
|
|
64946
64948
|
}, [T, e?.original?.id, e?.cells]);
|
|
64947
|
-
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({
|
|
64948
64950
|
id: `table-file-dropzone-${e?.original?.id}`,
|
|
64949
64951
|
data: { type: "table-file-dropzone", folderId: e?.original?.id, isFolder: e?.original?.type === "folder" }
|
|
64950
64952
|
}), Xe = {
|
|
@@ -64952,8 +64954,8 @@ const s3 = (e) => {
|
|
|
64952
64954
|
transition: g ? pe.transition : void 0,
|
|
64953
64955
|
cursor: Te ? "grabbing" : "grab",
|
|
64954
64956
|
opacity: Te ? "0.5" : "1"
|
|
64955
|
-
}, Qe = () => !G || !
|
|
64956
|
-
|
|
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);
|
|
64957
64959
|
}, ot = () => {
|
|
64958
64960
|
U || ie(null);
|
|
64959
64961
|
}, Ge = Ae(null), _e = ce(
|
|
@@ -64975,9 +64977,9 @@ const s3 = (e) => {
|
|
|
64975
64977
|
meta: Ze.meta || void 0
|
|
64976
64978
|
});
|
|
64977
64979
|
} else if (B) {
|
|
64978
|
-
const Ze = e.cells?.find((
|
|
64980
|
+
const Ze = e.cells?.find((_t) => _t.column?.key === B);
|
|
64979
64981
|
if (Ze) {
|
|
64980
|
-
const
|
|
64982
|
+
const _t = j?.[e.original.id]?.[B]?.value, jt = _t !== void 0 ? _t : Ze.value, yt = uA(jt, Ze.column);
|
|
64981
64983
|
if (!yt.isValid) {
|
|
64982
64984
|
Se.current?.showNotification?.("error", yt.error || "Validation failed");
|
|
64983
64985
|
return;
|
|
@@ -64985,14 +64987,14 @@ const s3 = (e) => {
|
|
|
64985
64987
|
}
|
|
64986
64988
|
}
|
|
64987
64989
|
O && O(String(e.original.id));
|
|
64988
|
-
}, [O, e.original, e.cells, B, L, j]), At = (Ze,
|
|
64990
|
+
}, [O, e.original, e.cells, B, L, j]), At = (Ze, _t) => {
|
|
64989
64991
|
const jt = { ...e.original }, yt = Ze !== void 0 ? Ze : J;
|
|
64990
|
-
B && yt !== void 0 && (jt[B] = yt, _ && _(jt, n, B, yt,
|
|
64991
|
-
}, 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) => {
|
|
64992
64994
|
if (!D && (Ze?.stopPropagation(), B !== yt)) {
|
|
64993
64995
|
if (_) {
|
|
64994
64996
|
if (v?.includes(yt))
|
|
64995
|
-
ie(yt),
|
|
64997
|
+
ie(yt), re(String(e.original[yt]));
|
|
64996
64998
|
else {
|
|
64997
64999
|
const Yt = Q?.getSystemMessage?.("notAllowedInlineEdit") || "Inline Edit is not allowed for this column";
|
|
64998
65000
|
Q?.showNotification?.("error", Yt);
|
|
@@ -65000,7 +65002,7 @@ const s3 = (e) => {
|
|
|
65000
65002
|
return;
|
|
65001
65003
|
}
|
|
65002
65004
|
if (c)
|
|
65003
|
-
c(
|
|
65005
|
+
c(_t, jt, e.original, s?.map((Yt) => Yt.original) || []);
|
|
65004
65006
|
else if (!c && d) {
|
|
65005
65007
|
const Yt = e.original.id, xn = { target: { checked: !d.checkedIds.includes(Yt) } };
|
|
65006
65008
|
d.onItemCheck(xn, Yt);
|
|
@@ -65008,7 +65010,7 @@ const s3 = (e) => {
|
|
|
65008
65010
|
}
|
|
65009
65011
|
}, lt = async () => {
|
|
65010
65012
|
Ne(!0), S && await S(e?.original?.id, e?.original, !(l?.[e?.original?.id]?.isOpen ?? !1), e?.original?.__level || 0), Ne(!1);
|
|
65011
|
-
}, 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({
|
|
65012
65014
|
"bg-neutral-100 dark:bg-black-600": q === e?.original?.id && !Z,
|
|
65013
65015
|
"bg-primary-50 dark:bg-black-700": !e?.original?.is_read && x && !e?.original?.__isLoading && Br && !Z,
|
|
65014
65016
|
// 'bg-white dark:bg-black-700': cell.column.sticky && rowHovering !== id,
|
|
@@ -65029,7 +65031,7 @@ const s3 = (e) => {
|
|
|
65029
65031
|
`text-neutral-900 dark:text-white cursor-pointer min-w-full relative ${d?.selectionDisabledRowIds?.includes(e?.original?.id) ? "opacity-50" : ""} border-t`,
|
|
65030
65032
|
Te ? "z-40" : "",
|
|
65031
65033
|
Qe() ? "shadow-dnd-drop" : "",
|
|
65032
|
-
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" : "",
|
|
65033
65035
|
e?.original?.isDefinedActionRow ? "bg-primary-50" : "",
|
|
65034
65036
|
Lt ? "z-50" : "",
|
|
65035
65037
|
kt || "bg-white dark:bg-black-800"
|
|
@@ -65190,7 +65192,7 @@ const s3 = (e) => {
|
|
|
65190
65192
|
return Array.isArray(we) ? we : [];
|
|
65191
65193
|
}
|
|
65192
65194
|
return [];
|
|
65193
|
-
}, [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({
|
|
65194
65196
|
"border-l-[3px] border-l-success-400 dark:border-l-success-500": xe && Ee && le && !N,
|
|
65195
65197
|
"border-l-[3px] border-l-error-400 dark:border-l-error-500": Ne && Ee && le && !N,
|
|
65196
65198
|
"border-l-[3px] border-l-warning-400 dark:border-l-warning-500": fe && Ee && le && !N
|
|
@@ -66318,7 +66320,7 @@ const s3 = (e) => {
|
|
|
66318
66320
|
multipleContexts: q,
|
|
66319
66321
|
withSortable: Y,
|
|
66320
66322
|
withDraggable: J,
|
|
66321
|
-
enableRootDrag:
|
|
66323
|
+
enableRootDrag: re,
|
|
66322
66324
|
pageSize: le = 10,
|
|
66323
66325
|
onCascadingRowExpand: Ee,
|
|
66324
66326
|
totalItems: xe,
|
|
@@ -66334,7 +66336,7 @@ const s3 = (e) => {
|
|
|
66334
66336
|
style: Te = {},
|
|
66335
66337
|
floatingBarConfig: je,
|
|
66336
66338
|
rowWrapper: G,
|
|
66337
|
-
rowLinkConfig:
|
|
66339
|
+
rowLinkConfig: te,
|
|
66338
66340
|
isCellClickDisabled: pe,
|
|
66339
66341
|
setHeaderOnParent: ve,
|
|
66340
66342
|
optimizeTable: Xe = !1,
|
|
@@ -66355,7 +66357,7 @@ const s3 = (e) => {
|
|
|
66355
66357
|
onPendingEditsChange: br,
|
|
66356
66358
|
onCancelPendingEdits: Lt
|
|
66357
66359
|
}) => {
|
|
66358
|
-
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);
|
|
66359
66361
|
lo.current = kt;
|
|
66360
66362
|
const E0 = Ae(Ye);
|
|
66361
66363
|
E0.current = Ye;
|
|
@@ -66363,7 +66365,7 @@ const s3 = (e) => {
|
|
|
66363
66365
|
x0.current = o;
|
|
66364
66366
|
const LA = Ae(r);
|
|
66365
66367
|
LA.current = r;
|
|
66366
|
-
const S0 = Ae(null), w0 = Ae(() => ({})), k0 = Ae(() => ({})), [
|
|
66368
|
+
const S0 = Ae(null), w0 = Ae(() => ({})), k0 = Ae(() => ({})), [gt, ua] = W({}), so = ce(
|
|
66367
66369
|
(de, he, ze) => {
|
|
66368
66370
|
ua((Ke) => {
|
|
66369
66371
|
const st = Ke[de]?.[he];
|
|
@@ -66380,7 +66382,7 @@ const s3 = (e) => {
|
|
|
66380
66382
|
});
|
|
66381
66383
|
},
|
|
66382
66384
|
[Et]
|
|
66383
|
-
), T0 = ce(() => Object.values(
|
|
66385
|
+
), T0 = ce(() => Object.values(gt).some((de) => Object.keys(de).length > 0), [gt]);
|
|
66384
66386
|
ae(() => {
|
|
66385
66387
|
rr && rr({ addPendingEdit: so, hasPendingEdits: T0 });
|
|
66386
66388
|
}, [rr, so, T0]);
|
|
@@ -66394,14 +66396,14 @@ const s3 = (e) => {
|
|
|
66394
66396
|
return Ke;
|
|
66395
66397
|
});
|
|
66396
66398
|
}, []), Iy = ce(
|
|
66397
|
-
(de, he) =>
|
|
66398
|
-
[
|
|
66399
|
+
(de, he) => gt[de]?.[he],
|
|
66400
|
+
[gt]
|
|
66399
66401
|
), My = ce(
|
|
66400
|
-
(de, he) => !!
|
|
66401
|
-
[
|
|
66402
|
+
(de, he) => !!gt[de]?.[he],
|
|
66403
|
+
[gt]
|
|
66402
66404
|
), C0 = ce(() => {
|
|
66403
|
-
Vt || (Lt && Object.keys(
|
|
66404
|
-
}, [Vt, Lt,
|
|
66405
|
+
Vt || (Lt && Object.keys(gt).length > 0 && Lt(gt), ua({}), Cn({}), Vr(null));
|
|
66406
|
+
}, [Vt, Lt, gt]), Wa = ce(
|
|
66405
66407
|
(de, he, ze) => {
|
|
66406
66408
|
setTimeout(() => {
|
|
66407
66409
|
Ye?.dispatchEvent?.("SCROLL_TO_TABLE_ROW", { rowIndex: ze });
|
|
@@ -66442,7 +66444,7 @@ const s3 = (e) => {
|
|
|
66442
66444
|
const he = de.has("Field required"), ze = de.size > (he ? 1 : 0);
|
|
66443
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).";
|
|
66444
66446
|
}, []), N0 = ce(() => {
|
|
66445
|
-
const { hasErrors: de, updatedEdits: he, firstError: ze, errorTypes: Ke } = Nn(
|
|
66447
|
+
const { hasErrors: de, updatedEdits: he, firstError: ze, errorTypes: Ke } = Nn(gt);
|
|
66446
66448
|
if (de) {
|
|
66447
66449
|
if (ua(he), Ye?.showNotification?.("error", RA(Ke)), ze) {
|
|
66448
66450
|
const dt = p.findIndex((Ot) => Ot.id === ze.rowId);
|
|
@@ -66451,7 +66453,7 @@ const s3 = (e) => {
|
|
|
66451
66453
|
return;
|
|
66452
66454
|
}
|
|
66453
66455
|
const st = [];
|
|
66454
|
-
Object.entries(
|
|
66456
|
+
Object.entries(gt).forEach(([dt, Ot]) => {
|
|
66455
66457
|
const xt = p.find((ar) => ar.id === dt);
|
|
66456
66458
|
if (xt) {
|
|
66457
66459
|
const ar = { ...xt }, Ca = {};
|
|
@@ -66460,10 +66462,10 @@ const s3 = (e) => {
|
|
|
66460
66462
|
}), st.push({ ...ar, __editedFields: Ca });
|
|
66461
66463
|
}
|
|
66462
66464
|
}), st.length > 0 && (ee ? ee(st) : K && K(null, null, null, null, null, { isBulk: !0, rows: st })), ua({}), Cn({}), Vr(null);
|
|
66463
|
-
}, [
|
|
66465
|
+
}, [gt, p, K, ee, Nn, RA, Wa, Ye]), Hy = ce(
|
|
66464
66466
|
(de) => {
|
|
66465
66467
|
if (Vt) return;
|
|
66466
|
-
const he =
|
|
66468
|
+
const he = gt[de];
|
|
66467
66469
|
he && Lt && Lt({ [de]: he }), ua((ze) => {
|
|
66468
66470
|
const Ke = { ...ze };
|
|
66469
66471
|
return delete Ke[de], Ke;
|
|
@@ -66474,10 +66476,10 @@ const s3 = (e) => {
|
|
|
66474
66476
|
}), Ke;
|
|
66475
66477
|
}), Vr(null);
|
|
66476
66478
|
},
|
|
66477
|
-
[Vt, Lt,
|
|
66479
|
+
[Vt, Lt, gt]
|
|
66478
66480
|
), Fy = ce(
|
|
66479
66481
|
(de) => {
|
|
66480
|
-
const he =
|
|
66482
|
+
const he = gt[de];
|
|
66481
66483
|
if (!he || Object.keys(he).length === 0) return;
|
|
66482
66484
|
const { hasErrors: ze, updatedEdits: Ke, firstError: st, errorTypes: dt } = Nn({ [de]: he });
|
|
66483
66485
|
if (ze) {
|
|
@@ -66504,27 +66506,27 @@ const s3 = (e) => {
|
|
|
66504
66506
|
}), Ft;
|
|
66505
66507
|
}), Vr(null);
|
|
66506
66508
|
},
|
|
66507
|
-
[
|
|
66508
|
-
), 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]);
|
|
66509
66511
|
ae(() => {
|
|
66510
66512
|
br?.(Xa > 0, Xa);
|
|
66511
66513
|
}, [Xa, br]);
|
|
66512
66514
|
const Uy = De(() => {
|
|
66513
66515
|
const de = [];
|
|
66514
|
-
return Object.entries(
|
|
66516
|
+
return Object.entries(gt).forEach(([he, ze]) => {
|
|
66515
66517
|
const Ke = p.findIndex((st) => st.id === he);
|
|
66516
66518
|
Object.entries(ze).forEach(([st, dt]) => {
|
|
66517
66519
|
const Ot = Et.find((xt) => xt.key === st);
|
|
66518
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 });
|
|
66519
66521
|
});
|
|
66520
66522
|
}), de;
|
|
66521
|
-
}, [
|
|
66523
|
+
}, [gt, Et, p]), zy = De(() => {
|
|
66522
66524
|
const de = /* @__PURE__ */ new Map();
|
|
66523
|
-
return Object.entries(
|
|
66525
|
+
return Object.entries(gt).forEach(([he, ze]) => {
|
|
66524
66526
|
const Ke = p.findIndex((st) => st.id === he);
|
|
66525
66527
|
de.set(he, { rowId: he, rowIndex: Ke, editCount: Object.keys(ze).length });
|
|
66526
66528
|
}), Array.from(de.values()).sort((he, ze) => he.rowIndex - ze.rowIndex);
|
|
66527
|
-
}, [
|
|
66529
|
+
}, [gt, p]), By = ce((de) => g0(de), []), OA = ce(() => g0(null), []), qy = ce(
|
|
66528
66530
|
(de, he) => {
|
|
66529
66531
|
_0({ value: de, reference: he }), Rr?.onSelected && Rr.onSelected(de, he), OA();
|
|
66530
66532
|
},
|
|
@@ -66569,7 +66571,7 @@ const s3 = (e) => {
|
|
|
66569
66571
|
isCheckAllDisabled: g?.isCheckAllDisabled,
|
|
66570
66572
|
selectionDisabledRowIds: g?.selectionDisabledRowIds,
|
|
66571
66573
|
rawData: ue,
|
|
66572
|
-
onAllChecked:
|
|
66574
|
+
onAllChecked: vt,
|
|
66573
66575
|
setCheckedIds: g?.setCheckedIds,
|
|
66574
66576
|
checkboxMetadata: g?.checkboxMetadata
|
|
66575
66577
|
}), t6 = Ri(
|
|
@@ -66890,7 +66892,7 @@ const s3 = (e) => {
|
|
|
66890
66892
|
rawData: ue,
|
|
66891
66893
|
dragConfig: ke,
|
|
66892
66894
|
rowWrapper: G,
|
|
66893
|
-
rowLinkConfig:
|
|
66895
|
+
rowLinkConfig: te,
|
|
66894
66896
|
isCellClickDisabled: pe,
|
|
66895
66897
|
asyncRowOptionsFilter: r?.asyncRowOptionsFilter,
|
|
66896
66898
|
handleUpdateColumnWidth: d6,
|
|
@@ -66916,7 +66918,7 @@ const s3 = (e) => {
|
|
|
66916
66918
|
selectedCurrenciesMap: io,
|
|
66917
66919
|
setCurrencyForCell: Wy,
|
|
66918
66920
|
getCurrencyForCell: Xy,
|
|
66919
|
-
pendingEdits:
|
|
66921
|
+
pendingEdits: gt,
|
|
66920
66922
|
addPendingEdit: so,
|
|
66921
66923
|
removePendingEdit: Py,
|
|
66922
66924
|
getPendingEdit: Iy,
|
|
@@ -66994,10 +66996,10 @@ const s3 = (e) => {
|
|
|
66994
66996
|
}
|
|
66995
66997
|
) : null,
|
|
66996
66998
|
n?.showDivider ? /* @__PURE__ */ A("div", { className: "border-b pb-2 w-full dark:bg-black-800" }) : null,
|
|
66997
|
-
|
|
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: [
|
|
66998
67000
|
yt && Ye?.renderSortItem ? Ye.renderSortItem({ sort: a?.columnSort, onRemoveSort: uo, onSort: a?.onSort, tableHeaders: Et, data: p }) : null,
|
|
66999
|
-
|
|
67000
|
-
|
|
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: [
|
|
67001
67003
|
(gr || r?.onResetFilter) && Ye?.renderActiveFilters && Ye.renderActiveFilters({
|
|
67002
67004
|
filters: r?.columnFilters,
|
|
67003
67005
|
onRemoveFilter: c6,
|
|
@@ -67072,7 +67074,7 @@ const s3 = (e) => {
|
|
|
67072
67074
|
...Z ? { height: p?.length > 0 ? `${(p?.length + 1) * 41 + 4}px` : "350px" } : { height: Gy },
|
|
67073
67075
|
...Te
|
|
67074
67076
|
},
|
|
67075
|
-
children:
|
|
67077
|
+
children: re ? F0 : /* @__PURE__ */ w(Oi, { sensors: t6, onDragEnd: A6, onDragStart: n6, onDragCancel: i6, collisionDetection: b8, children: [
|
|
67076
67078
|
F0,
|
|
67077
67079
|
sa ? Sr(
|
|
67078
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: [
|