@lax-wp/design-system 0.5.23 → 0.5.25
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.es.js +97 -103
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n, jsxs as w, Fragment as vA } from "react/jsx-runtime";
|
|
2
2
|
import { AnimatePresence as BA, motion as kA } from "framer-motion";
|
|
3
3
|
import lA, { forwardRef as xA, useRef as iA, useState as E, useEffect as $, useMemo as cA, createElement as ba, useCallback as pA, createContext as Kt, useContext as Qe, useLayoutEffect as ga, useImperativeHandle as xa, Suspense as si, Fragment as di, memo as ya } from "react";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { Tooltip as
|
|
4
|
+
import { useTranslation as NA } from "react-i18next";
|
|
5
|
+
import { Tooltip as MA, Select as ci, Skeleton as wr, Checkbox as wa, Dropdown as Ve, DatePicker as Pr, Modal as ui, Upload as Pa, Popover as fi, Drawer as pi } from "antd";
|
|
6
6
|
import * as Yt from "@mui/icons-material";
|
|
7
7
|
import { BoltOutlined as ne, NoteAddOutlined as pe, CloseRounded as Qr, TableChartRounded as Ca, ChevronLeftRounded as hi, ChevronRightRounded as mi, OpenInFull as vi, DescriptionRounded as bi, ArrowUpwardRounded as gi, ArrowDownwardRounded as xi, Timer as yi, DoDisturbRounded as wi, Pending as Pi, PlayArrowRounded as Ci, RemoveCircleOutline as ki, SearchRounded as mn, KeyboardArrowUpRounded as Hi, KeyboardArrowDownRounded as Di, AddRounded as Si, RemoveRounded as Ni, ZoomOutMapRounded as Li, ChevronLeft as zi, Lock as Mi, Close as Ti, GroupsOutlined as Xi, Numbers as Oi, LocalOfferOutlined as Ui, SubjectOutlined as Vi, Schedule as qi, AttachMoney as Fi, MailOutline as Wi, CalendarMonth as Ei, FormatListBulleted as ji, Rule as Qi, VpnKeyOffOutlined as Ri, VisibilityOutlined as Ki, VisibilityOffOutlined as Yi } from "@mui/icons-material";
|
|
8
8
|
import Zi, { createPortal as Se } from "react-dom";
|
|
@@ -150,7 +150,7 @@ const q = /* @__PURE__ */ Ne(Yl), G = ({
|
|
|
150
150
|
return /* @__PURE__ */ n("div", { className: f, onClick: r, style: l, children: A });
|
|
151
151
|
};
|
|
152
152
|
G.displayName = "Typography";
|
|
153
|
-
const Zl = ({ isConditional: A }) => /* @__PURE__ */ n("span", { className: `${A ? "text-yellow-500" : "text-red-500"}`, children: "*" }),
|
|
153
|
+
const Zl = ({ isConditional: A }) => /* @__PURE__ */ n("span", { className: `${A ? "text-yellow-500" : "text-red-500"}`, children: "*" }), LA = ({ label: A, required: e, isRequiredConditional: t }) => /* @__PURE__ */ w(
|
|
154
154
|
G,
|
|
155
155
|
{
|
|
156
156
|
variant: "medium",
|
|
@@ -230,7 +230,7 @@ const Zl = ({ isConditional: A }) => /* @__PURE__ */ n("span", { className: `${A
|
|
|
230
230
|
{
|
|
231
231
|
htmlFor: k,
|
|
232
232
|
className: "mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",
|
|
233
|
-
children: /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center justify-between w-full", children: /* @__PURE__ */ n("div", { className: "inline-flex flex-wrap items-center gap-1", children: /* @__PURE__ */ n(
|
|
233
|
+
children: /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center justify-between w-full", children: /* @__PURE__ */ n("div", { className: "inline-flex flex-wrap items-center gap-1", children: /* @__PURE__ */ n(LA, { label: u || "", required: d || !1 }) }) })
|
|
234
234
|
}
|
|
235
235
|
) : null,
|
|
236
236
|
/* @__PURE__ */ w("div", { className: "relative input-field", children: [
|
|
@@ -640,22 +640,24 @@ const me = {
|
|
|
640
640
|
// Custom classes
|
|
641
641
|
r
|
|
642
642
|
),
|
|
643
|
+
style: { maxWidth: "100%" },
|
|
643
644
|
onMouseDown: o,
|
|
644
645
|
onClick: a,
|
|
645
646
|
onKeyDown: m,
|
|
646
647
|
"aria-label": p || `Tag: ${A}`,
|
|
647
648
|
role: "button",
|
|
648
649
|
tabIndex: a || f ? 0 : void 0,
|
|
649
|
-
children: /* @__PURE__ */ w("div", { className: "flex items-center gap-0.5
|
|
650
|
+
children: /* @__PURE__ */ w("div", { className: "flex items-center gap-0.5 min-w-0 overflow-hidden", style: { maxWidth: "100%" }, children: [
|
|
650
651
|
s,
|
|
651
652
|
i ? /* @__PURE__ */ n(
|
|
652
653
|
"p",
|
|
653
654
|
{
|
|
654
655
|
title: A,
|
|
655
|
-
className: `text-${t} ${a || f ? "cursor-pointer" : ""}`,
|
|
656
|
+
className: `text-${t} ${a || f ? "cursor-pointer" : ""} overflow-hidden whitespace-nowrap text-ellipsis`,
|
|
657
|
+
style: { maxWidth: "100%" },
|
|
656
658
|
children: A.length > i ? `${A.slice(0, i)}...` : A
|
|
657
659
|
}
|
|
658
|
-
) : /* @__PURE__ */ n("p", { className: `text-${t}`, children: A }),
|
|
660
|
+
) : /* @__PURE__ */ n("p", { className: `text-${t} overflow-hidden whitespace-nowrap text-ellipsis`, style: { maxWidth: "100%" }, children: A }),
|
|
659
661
|
f && /* @__PURE__ */ n(
|
|
660
662
|
"input",
|
|
661
663
|
{
|
|
@@ -1024,7 +1026,7 @@ const YA = ({ labels: A = [] }) => {
|
|
|
1024
1026
|
onAddGTNToDocument: X,
|
|
1025
1027
|
...T
|
|
1026
1028
|
}, U) => {
|
|
1027
|
-
const { t: N } =
|
|
1029
|
+
const { t: N } = NA(), [V, F] = E(!1), [j, Q] = E(!1), R = (W) => {
|
|
1028
1030
|
X && X({
|
|
1029
1031
|
key: H,
|
|
1030
1032
|
value: W
|
|
@@ -1067,8 +1069,8 @@ const YA = ({ labels: A = [] }) => {
|
|
|
1067
1069
|
className: `mb-1 text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${h ? "" : "capitalize"} ${P || "!uppercse"}`,
|
|
1068
1070
|
children: /* @__PURE__ */ w("div", { className: "flex flex-wrap items-center justify-between w-full", children: [
|
|
1069
1071
|
/* @__PURE__ */ w("div", { className: "inline-flex flex-wrap items-center gap-1", children: [
|
|
1070
|
-
/* @__PURE__ */ n(
|
|
1071
|
-
x?.length > 0 && x !== T.value && /* @__PURE__ */ n(
|
|
1072
|
+
/* @__PURE__ */ n(LA, { label: e || "", required: o || !1, isRequiredConditional: i || !1 }),
|
|
1073
|
+
x?.length > 0 && x !== T.value && /* @__PURE__ */ n(MA, { placement: "top", title: x, children: /* @__PURE__ */ n(
|
|
1072
1074
|
"button",
|
|
1073
1075
|
{
|
|
1074
1076
|
className: "cursor-pointer",
|
|
@@ -1095,7 +1097,7 @@ const YA = ({ labels: A = [] }) => {
|
|
|
1095
1097
|
),
|
|
1096
1098
|
m && /* @__PURE__ */ n(ae, {}),
|
|
1097
1099
|
/* @__PURE__ */ n(YA, { labels: s }),
|
|
1098
|
-
b && /* @__PURE__ */ n(
|
|
1100
|
+
b && /* @__PURE__ */ n(MA, { placement: "top", title: b, children: /* @__PURE__ */ n("div", { className: "cursor-pointer", children: /* @__PURE__ */ n(KA, {}) }) })
|
|
1099
1101
|
] }),
|
|
1100
1102
|
y && j && X ? /* @__PURE__ */ n(
|
|
1101
1103
|
"button",
|
|
@@ -1104,7 +1106,7 @@ const YA = ({ labels: A = [] }) => {
|
|
|
1104
1106
|
className: "cursor-pointer",
|
|
1105
1107
|
onClick: () => R(T?.value),
|
|
1106
1108
|
type: "button",
|
|
1107
|
-
children: /* @__PURE__ */ n(
|
|
1109
|
+
children: /* @__PURE__ */ n(MA, { placement: "top", title: N("Add to document"), children: /* @__PURE__ */ n(
|
|
1108
1110
|
pe,
|
|
1109
1111
|
{
|
|
1110
1112
|
className: "text-primary-600",
|
|
@@ -1271,7 +1273,7 @@ const U9 = xA(
|
|
|
1271
1273
|
capitalize: !p
|
|
1272
1274
|
}
|
|
1273
1275
|
),
|
|
1274
|
-
children: /* @__PURE__ */ n(
|
|
1276
|
+
children: /* @__PURE__ */ n(LA, { label: A || "", required: s || !1 })
|
|
1275
1277
|
}
|
|
1276
1278
|
),
|
|
1277
1279
|
/* @__PURE__ */ n(
|
|
@@ -1394,7 +1396,7 @@ const U9 = xA(
|
|
|
1394
1396
|
onAddGTNToDocument: L,
|
|
1395
1397
|
...z
|
|
1396
1398
|
}, O) => {
|
|
1397
|
-
const { t: X } =
|
|
1399
|
+
const { t: X } = NA(), [T, U] = E(!1), N = () => {
|
|
1398
1400
|
L && L({
|
|
1399
1401
|
key: v,
|
|
1400
1402
|
value: t || ""
|
|
@@ -1421,7 +1423,7 @@ const U9 = xA(
|
|
|
1421
1423
|
className: `mb-1 text-xs font-medium text-gray-600 dark:text-black-300 inline-flex items-center gap-1 ${g ? "" : "capitalize"} ${S || ""}`,
|
|
1422
1424
|
children: /* @__PURE__ */ w("div", { className: "w-full flex items-center justify-between flex-wrap", children: [
|
|
1423
1425
|
/* @__PURE__ */ w("div", { className: "inline-flex items-center gap-1 flex-wrap", children: [
|
|
1424
|
-
/* @__PURE__ */ n(
|
|
1426
|
+
/* @__PURE__ */ n(LA, { label: A || "", required: l || !1, isRequiredConditional: s || !1 }),
|
|
1425
1427
|
M && /* @__PURE__ */ n(
|
|
1426
1428
|
ne,
|
|
1427
1429
|
{
|
|
@@ -1434,7 +1436,7 @@ const U9 = xA(
|
|
|
1434
1436
|
),
|
|
1435
1437
|
x && /* @__PURE__ */ n(ae, {}),
|
|
1436
1438
|
/* @__PURE__ */ n(YA, { labels: c || [] }),
|
|
1437
|
-
b && /* @__PURE__ */ n(
|
|
1439
|
+
b && /* @__PURE__ */ n(MA, { placement: "top", title: b, children: /* @__PURE__ */ n(
|
|
1438
1440
|
"div",
|
|
1439
1441
|
{
|
|
1440
1442
|
className: "cursor-pointer",
|
|
@@ -1454,7 +1456,7 @@ const U9 = xA(
|
|
|
1454
1456
|
className: "cursor-pointer",
|
|
1455
1457
|
onClick: N,
|
|
1456
1458
|
type: "button",
|
|
1457
|
-
children: /* @__PURE__ */ n(
|
|
1459
|
+
children: /* @__PURE__ */ n(MA, { placement: "top", title: X("Add to document"), children: /* @__PURE__ */ n(
|
|
1458
1460
|
pe,
|
|
1459
1461
|
{
|
|
1460
1462
|
className: "text-primary-600",
|
|
@@ -1625,7 +1627,7 @@ const QA = ({
|
|
|
1625
1627
|
MasterDataModal: U,
|
|
1626
1628
|
parseMasterDataFormula: N
|
|
1627
1629
|
}, V) => {
|
|
1628
|
-
const { t: F } =
|
|
1630
|
+
const { t: F } = NA(), [j, Q] = E(!1), [R, W] = E(null), [I, _] = E(!1), [K, tA] = E(""), [Z, Y] = E(null), eA = iA(null), dA = V || eA;
|
|
1629
1631
|
$(() => {
|
|
1630
1632
|
W(r);
|
|
1631
1633
|
}, [b]), $(() => {
|
|
@@ -1648,7 +1650,7 @@ const QA = ({
|
|
|
1648
1650
|
key: y,
|
|
1649
1651
|
value: bA
|
|
1650
1652
|
});
|
|
1651
|
-
},
|
|
1653
|
+
}, zA = () => {
|
|
1652
1654
|
const bA = "border h-[32px] text-sm rounded-lg block w-full p-2.5 font-inter font-medium", XA = o ? "border-red-300" : L && C?.color ? `border-${C?.color}-300` : "border-gray-300 dark:border-black-600", le = "placeholder:text-neutral-900 dark:placeholder:text-black-400", Le = `${L && C?.color ? `bg-${C?.color}-50` : "bg-gray-200 dark:bg-black-600 "} ${h || "text-neutral-900 dark:text-black-200"}`;
|
|
1653
1655
|
return `${bA} ${XA} ${Le} ${le}`;
|
|
1654
1656
|
}, VA = () => R !== null ? R : u && N ? N(u, M) : r;
|
|
@@ -1674,7 +1676,7 @@ const QA = ({
|
|
|
1674
1676
|
className: `text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${x ? "" : "capitalize"} ${m || ""}`,
|
|
1675
1677
|
children: /* @__PURE__ */ w("div", { className: "w-full flex items-center justify-between flex-wrap", children: [
|
|
1676
1678
|
/* @__PURE__ */ w("div", { className: "inline-flex items-center gap-1 flex-wrap", children: [
|
|
1677
|
-
/* @__PURE__ */ n(
|
|
1679
|
+
/* @__PURE__ */ n(LA, { label: e || "", required: l || !1, isRequiredConditional: s || !1 }),
|
|
1678
1680
|
P && /* @__PURE__ */ n(
|
|
1679
1681
|
ne,
|
|
1680
1682
|
{
|
|
@@ -1703,7 +1705,7 @@ const QA = ({
|
|
|
1703
1705
|
className: "cursor-pointer",
|
|
1704
1706
|
onClick: () => uA(r?.toString() || ""),
|
|
1705
1707
|
type: "button",
|
|
1706
|
-
children: /* @__PURE__ */ n(
|
|
1708
|
+
children: /* @__PURE__ */ n(MA, { placement: "top", title: F("Add to document"), children: /* @__PURE__ */ n(
|
|
1707
1709
|
pe,
|
|
1708
1710
|
{
|
|
1709
1711
|
sx: {
|
|
@@ -1725,7 +1727,7 @@ const QA = ({
|
|
|
1725
1727
|
ref: dA,
|
|
1726
1728
|
required: l,
|
|
1727
1729
|
placeholder: t,
|
|
1728
|
-
className:
|
|
1730
|
+
className: zA(),
|
|
1729
1731
|
onChange: (bA) => {
|
|
1730
1732
|
a(bA.target.value, Z), W(bA.target?.value);
|
|
1731
1733
|
},
|
|
@@ -1911,7 +1913,7 @@ const ls = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
|
|
|
1911
1913
|
isLiveField: j = !1,
|
|
1912
1914
|
...Q
|
|
1913
1915
|
}, R) => {
|
|
1914
|
-
const { t: W } =
|
|
1916
|
+
const { t: W } = NA(), [I, _] = E(!1), K = iA(null), [tA, Z] = E(!1), [Y, eA] = E(""), dA = () => {
|
|
1915
1917
|
if (V) {
|
|
1916
1918
|
let oA = "";
|
|
1917
1919
|
sA == null ? oA = "" : typeof sA == "string" || typeof sA == "number" ? oA = String(sA) : Array.isArray(sA) ? oA = sA.map((mA) => typeof mA == "object" && mA !== null && "value" in mA ? mA.value : mA).join(", ") : typeof sA == "object" && "value" in sA && (oA = String(sA.value)), V({
|
|
@@ -1950,7 +1952,7 @@ const ls = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
|
|
|
1950
1952
|
options: a,
|
|
1951
1953
|
value: e,
|
|
1952
1954
|
defaultValue: Q?.defaultValue
|
|
1953
|
-
}), uA = cA(() => J.length > 0 || sA != null, [J, sA]),
|
|
1955
|
+
}), uA = cA(() => J.length > 0 || sA != null, [J, sA]), zA = cA(() => {
|
|
1954
1956
|
if (!t || t !== "multiple" || J.length === 0) return !1;
|
|
1955
1957
|
const oA = Array.isArray(sA) ? sA : [];
|
|
1956
1958
|
return J.map((mA) => mA.value).every(
|
|
@@ -1959,7 +1961,7 @@ const ls = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
|
|
|
1959
1961
|
)
|
|
1960
1962
|
);
|
|
1961
1963
|
}, [sA, J, t]), VA = () => {
|
|
1962
|
-
!t || t !== "multiple" || !b || b(
|
|
1964
|
+
!t || t !== "multiple" || !b || b(zA ? [] : J);
|
|
1963
1965
|
}, bA = pA((oA) => {
|
|
1964
1966
|
if (!oA) return;
|
|
1965
1967
|
const gA = new Event("submit", { bubbles: !0, cancelable: !0 });
|
|
@@ -2027,7 +2029,7 @@ const ls = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
|
|
|
2027
2029
|
className: `text-xs font-medium text-gray-600 dark:text-black-300 inline-flex items-center gap-1 ${d ? "" : "capitalize"} ${L || ""}`,
|
|
2028
2030
|
children: /* @__PURE__ */ w("div", { className: "w-full flex items-center justify-between flex-wrap", children: [
|
|
2029
2031
|
/* @__PURE__ */ w("div", { className: "inline-flex items-center gap-1 flex-wrap", children: [
|
|
2030
|
-
/* @__PURE__ */ n(
|
|
2032
|
+
/* @__PURE__ */ n(LA, { label: A || "", required: o || !1, isRequiredConditional: F || !1 }),
|
|
2031
2033
|
j && /* @__PURE__ */ n(
|
|
2032
2034
|
ne,
|
|
2033
2035
|
{
|
|
@@ -2040,7 +2042,7 @@ const ls = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
|
|
|
2040
2042
|
),
|
|
2041
2043
|
u && /* @__PURE__ */ n(ae, {}),
|
|
2042
2044
|
/* @__PURE__ */ n(YA, { labels: i }),
|
|
2043
|
-
c && /* @__PURE__ */ n(
|
|
2045
|
+
c && /* @__PURE__ */ n(hA, { placement: "top", title: c, children: /* @__PURE__ */ n(
|
|
2044
2046
|
"div",
|
|
2045
2047
|
{
|
|
2046
2048
|
className: "cursor-pointer",
|
|
@@ -2060,7 +2062,7 @@ const ls = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
|
|
|
2060
2062
|
className: "cursor-pointer",
|
|
2061
2063
|
onClick: dA,
|
|
2062
2064
|
type: "button",
|
|
2063
|
-
children: /* @__PURE__ */ n(
|
|
2065
|
+
children: /* @__PURE__ */ n(hA, { placement: "top", title: W("Add to document"), children: /* @__PURE__ */ n(pe, { className: "text-primary-600", sx: { fontSize: 16 } }) })
|
|
2064
2066
|
}
|
|
2065
2067
|
) : null
|
|
2066
2068
|
] })
|
|
@@ -2100,7 +2102,7 @@ const ls = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
|
|
|
2100
2102
|
options: J,
|
|
2101
2103
|
searchValue: Y,
|
|
2102
2104
|
handleSelectAll: VA,
|
|
2103
|
-
isAllSelected:
|
|
2105
|
+
isAllSelected: zA,
|
|
2104
2106
|
menu: oA,
|
|
2105
2107
|
isLoading: m,
|
|
2106
2108
|
hasExistingData: uA,
|
|
@@ -2147,18 +2149,10 @@ const ls = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
|
|
|
2147
2149
|
onClear: () => b && b(t === "tags" || t === "multiple" ? [] : null),
|
|
2148
2150
|
maxTagCount: t === "tags" && M ? void 0 : "responsive",
|
|
2149
2151
|
maxTagPlaceholder: (oA) => /* @__PURE__ */ n(
|
|
2150
|
-
|
|
2152
|
+
hA,
|
|
2151
2153
|
{
|
|
2152
|
-
|
|
2153
|
-
root: {
|
|
2154
|
-
zIndex: 5002
|
|
2155
|
-
}
|
|
2156
|
-
},
|
|
2157
|
-
trigger: "hover",
|
|
2154
|
+
placement: "top",
|
|
2158
2155
|
title: oA.length > 3 ? oA.slice(0, 3).map(({ label: gA }) => gA).join(", ") + "..." : oA.map(({ label: gA }) => gA).join(", "),
|
|
2159
|
-
overlayStyle: {
|
|
2160
|
-
pointerEvents: "none"
|
|
2161
|
-
},
|
|
2162
2156
|
children: /* @__PURE__ */ w("span", { children: [
|
|
2163
2157
|
"+",
|
|
2164
2158
|
oA.length,
|
|
@@ -2700,9 +2694,9 @@ const Br = () => {
|
|
|
2700
2694
|
htmlFor: "text",
|
|
2701
2695
|
className: `mb-1 ${m ? "text-black-300" : "text-neutral-600"} inline-flex items-center gap-1 ${b ? "" : "capitalize"}`,
|
|
2702
2696
|
children: [
|
|
2703
|
-
/* @__PURE__ */ n(
|
|
2697
|
+
/* @__PURE__ */ n(LA, { label: e || "", required: c || !1 }),
|
|
2704
2698
|
/* @__PURE__ */ n(YA, { labels: p }),
|
|
2705
|
-
f && /* @__PURE__ */ n(
|
|
2699
|
+
f && /* @__PURE__ */ n(MA, { placement: "top", title: f, children: /* @__PURE__ */ n("div", { className: "cursor-pointer", children: /* @__PURE__ */ n(KA, {}) }) })
|
|
2706
2700
|
]
|
|
2707
2701
|
}
|
|
2708
2702
|
),
|
|
@@ -2998,7 +2992,7 @@ const Jr = ({
|
|
|
2998
2992
|
),
|
|
2999
2993
|
id: A,
|
|
3000
2994
|
children: [
|
|
3001
|
-
i || !e ? null : /* @__PURE__ */ n(
|
|
2995
|
+
i || !e ? null : /* @__PURE__ */ n(LA, { label: e || "", required: s || !1 }),
|
|
3002
2996
|
/* @__PURE__ */ n(
|
|
3003
2997
|
Ji,
|
|
3004
2998
|
{
|
|
@@ -3441,7 +3435,7 @@ const Ta = ({
|
|
|
3441
3435
|
hideSearchIcon: g,
|
|
3442
3436
|
allowAStarSearch: x = !1,
|
|
3443
3437
|
...h
|
|
3444
|
-
} = A, { t: v } =
|
|
3438
|
+
} = A, { t: v } = NA(), [m, y] = E(!1), [H, S] = E("search"), M = iA(null), { searchCount: P, searchPointer: k, setSearchPointer: D } = b || {}, C = () => {
|
|
3445
3439
|
y(!0), S(c || t || v("Search"));
|
|
3446
3440
|
const z = u || M;
|
|
3447
3441
|
z.current && z.current.focus();
|
|
@@ -3598,7 +3592,7 @@ const ws = (A, e, t, r = "medium") => {
|
|
|
3598
3592
|
renderGTNAddButton: C,
|
|
3599
3593
|
onAddGTNToDocument: L
|
|
3600
3594
|
}, z) => {
|
|
3601
|
-
const { t: O } =
|
|
3595
|
+
const { t: O } = NA(), X = s === $e.TOP, T = s === $e.LEFT, U = s === $e.RIGHT, [N, V] = E(!1), F = () => {
|
|
3602
3596
|
L && L({
|
|
3603
3597
|
key: v,
|
|
3604
3598
|
value: e ? "Yes" : "No"
|
|
@@ -3629,7 +3623,7 @@ const ws = (A, e, t, r = "medium") => {
|
|
|
3629
3623
|
y
|
|
3630
3624
|
),
|
|
3631
3625
|
children: [
|
|
3632
|
-
/* @__PURE__ */ n(
|
|
3626
|
+
/* @__PURE__ */ n(LA, { label: a || "", required: o || !1, isRequiredConditional: i || !1 }),
|
|
3633
3627
|
H && /* @__PURE__ */ n(ne, { sx: { fontSize: 16, color: "var(--color-primary-600)", rotate: "15deg" } }),
|
|
3634
3628
|
f && /* @__PURE__ */ n(ae, {}),
|
|
3635
3629
|
/* @__PURE__ */ n(YA, { labels: u || [] }),
|
|
@@ -3644,7 +3638,7 @@ const ws = (A, e, t, r = "medium") => {
|
|
|
3644
3638
|
className: "cursor-pointer",
|
|
3645
3639
|
onClick: F,
|
|
3646
3640
|
type: "button",
|
|
3647
|
-
children: /* @__PURE__ */ n(
|
|
3641
|
+
children: /* @__PURE__ */ n(MA, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ n(pe, { className: "text-primary-600", sx: { fontSize: 16 } }) })
|
|
3648
3642
|
}
|
|
3649
3643
|
) : null
|
|
3650
3644
|
] }),
|
|
@@ -4089,7 +4083,7 @@ const Cr = (A, e) => {
|
|
|
4089
4083
|
RiskDetailsCard: X,
|
|
4090
4084
|
...T
|
|
4091
4085
|
}, U) => {
|
|
4092
|
-
const { t: N } =
|
|
4086
|
+
const { t: N } = NA(), [V, F] = E(!1), [j, Q] = E([]), [R, W] = E(""), [I, _] = E(
|
|
4093
4087
|
y || "USD"
|
|
4094
4088
|
), [K, tA] = E(!1), Z = (B) => {
|
|
4095
4089
|
L && L({
|
|
@@ -4106,14 +4100,14 @@ const Cr = (A, e) => {
|
|
|
4106
4100
|
}, eA = (B) => {
|
|
4107
4101
|
const J = B.target.value, uA = J === "" || J === null || J === void 0 ? 0 : Number(J);
|
|
4108
4102
|
r(uA, I);
|
|
4109
|
-
const
|
|
4110
|
-
if (
|
|
4103
|
+
const zA = document.getElementById(A);
|
|
4104
|
+
if (zA && zA.setAttribute(
|
|
4111
4105
|
"data-selected-value",
|
|
4112
4106
|
JSON.stringify({
|
|
4113
4107
|
value: uA,
|
|
4114
4108
|
currency_code: I
|
|
4115
4109
|
})
|
|
4116
|
-
),
|
|
4110
|
+
), zA && (D || C)) {
|
|
4117
4111
|
const VA = new CustomEvent("pilot-change", {
|
|
4118
4112
|
bubbles: !0,
|
|
4119
4113
|
detail: {
|
|
@@ -4125,7 +4119,7 @@ const Cr = (A, e) => {
|
|
|
4125
4119
|
type: "change"
|
|
4126
4120
|
}
|
|
4127
4121
|
});
|
|
4128
|
-
|
|
4122
|
+
zA.dispatchEvent(VA);
|
|
4129
4123
|
}
|
|
4130
4124
|
}, dA = () => {
|
|
4131
4125
|
F(!0);
|
|
@@ -4232,7 +4226,7 @@ const Cr = (A, e) => {
|
|
|
4232
4226
|
className: `mb-1 text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${d ? "" : "uppercase"} ${S || ""}`,
|
|
4233
4227
|
children: /* @__PURE__ */ w("div", { className: "w-full flex items-center justify-between flex-wrap", children: [
|
|
4234
4228
|
/* @__PURE__ */ w("div", { className: "inline-flex items-center gap-1 flex-wrap", children: [
|
|
4235
|
-
/* @__PURE__ */ n(
|
|
4229
|
+
/* @__PURE__ */ n(LA, { label: e || "", required: i || !1, isRequiredConditional: l || !1 }),
|
|
4236
4230
|
M && /* @__PURE__ */ n(
|
|
4237
4231
|
ne,
|
|
4238
4232
|
{
|
|
@@ -4254,7 +4248,7 @@ const Cr = (A, e) => {
|
|
|
4254
4248
|
className: "cursor-pointer",
|
|
4255
4249
|
onClick: () => Z(Y(t)),
|
|
4256
4250
|
type: "button",
|
|
4257
|
-
children: /* @__PURE__ */ n(
|
|
4251
|
+
children: /* @__PURE__ */ n(MA, { placement: "top", title: N("Add to document"), children: /* @__PURE__ */ n(
|
|
4258
4252
|
pe,
|
|
4259
4253
|
{
|
|
4260
4254
|
className: "text-primary-600",
|
|
@@ -5015,7 +5009,7 @@ const CA = /* @__PURE__ */ Ne(Ts), { RangePicker: Pn } = Pr, Xs = {
|
|
|
5015
5009
|
}
|
|
5016
5010
|
)
|
|
5017
5011
|
] }) : /* @__PURE__ */ w("div", { id: s, className: q("flex flex-col", l), children: [
|
|
5018
|
-
/* @__PURE__ */ n(
|
|
5012
|
+
/* @__PURE__ */ n(LA, { label: r || "", required: t || !1 }),
|
|
5019
5013
|
/* @__PURE__ */ n(
|
|
5020
5014
|
Pn,
|
|
5021
5015
|
{
|
|
@@ -5151,8 +5145,8 @@ function qs() {
|
|
|
5151
5145
|
if (["x", "X"].indexOf(N) > -1) return new Date((N === "X" ? 1e3 : 1) * U);
|
|
5152
5146
|
var j = g(N)(U), Q = j.year, R = j.month, W = j.day, I = j.hours, _ = j.minutes, K = j.seconds, tA = j.milliseconds, Z = j.zone, Y = j.week, eA = /* @__PURE__ */ new Date(), dA = W || (Q || R ? 1 : eA.getDate()), sA = Q || eA.getFullYear(), HA = 0;
|
|
5153
5147
|
Q && !R || (HA = R > 0 ? R - 1 : eA.getMonth());
|
|
5154
|
-
var B, J = I || 0, uA = _ || 0,
|
|
5155
|
-
return Z ? new Date(Date.UTC(sA, HA, dA, J, uA,
|
|
5148
|
+
var B, J = I || 0, uA = _ || 0, zA = K || 0, VA = tA || 0;
|
|
5149
|
+
return Z ? new Date(Date.UTC(sA, HA, dA, J, uA, zA, VA + 60 * Z.offset * 1e3)) : V ? new Date(Date.UTC(sA, HA, dA, J, uA, zA, VA)) : (B = new Date(sA, HA, dA, J, uA, zA, VA), Y && (B = F(B).week(Y).toDate()), B);
|
|
5156
5150
|
} catch {
|
|
5157
5151
|
return /* @__PURE__ */ new Date("");
|
|
5158
5152
|
}
|
|
@@ -5447,7 +5441,7 @@ const _s = "MM/DD/YYYY", ir = "MM/DD/YYYY - hh:mm A", Nn = "YYYY-MM-DD", Ln = "Y
|
|
|
5447
5441
|
formatDateForGTN: C,
|
|
5448
5442
|
...L
|
|
5449
5443
|
}, z) => {
|
|
5450
|
-
const { t: O } =
|
|
5444
|
+
const { t: O } = NA(), [X, T] = E(!1), [U, N] = E(null), [V, F] = E(
|
|
5451
5445
|
null
|
|
5452
5446
|
), j = p || (s ? ir : _s), Q = L?.id || `date-picker-${t1()}`, R = iA(null);
|
|
5453
5447
|
zn("paste", (Z) => {
|
|
@@ -5662,7 +5656,7 @@ const _s = "MM/DD/YYYY", ir = "MM/DD/YYYY - hh:mm A", Nn = "YYYY-MM-DD", Ln = "Y
|
|
|
5662
5656
|
className: `mb-1 text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${f ? "" : "capitalize"} ${H || ""}`,
|
|
5663
5657
|
children: /* @__PURE__ */ w("div", { className: "w-full flex items-center justify-between flex-wrap", children: [
|
|
5664
5658
|
/* @__PURE__ */ w("div", { className: "inline-flex items-center gap-1 flex-wrap", children: [
|
|
5665
|
-
/* @__PURE__ */ n(
|
|
5659
|
+
/* @__PURE__ */ n(LA, { label: A || "", required: t || !1, isRequiredConditional: r || !1 }),
|
|
5666
5660
|
S && /* @__PURE__ */ n(
|
|
5667
5661
|
ne,
|
|
5668
5662
|
{
|
|
@@ -5684,7 +5678,7 @@ const _s = "MM/DD/YYYY", ir = "MM/DD/YYYY - hh:mm A", Nn = "YYYY-MM-DD", Ln = "Y
|
|
|
5684
5678
|
className: "cursor-pointer",
|
|
5685
5679
|
onClick: () => W(e),
|
|
5686
5680
|
type: "button",
|
|
5687
|
-
children: /* @__PURE__ */ n(
|
|
5681
|
+
children: /* @__PURE__ */ n(MA, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ n(
|
|
5688
5682
|
pe,
|
|
5689
5683
|
{
|
|
5690
5684
|
className: "text-primary-600",
|
|
@@ -5786,7 +5780,7 @@ const n1 = ({
|
|
|
5786
5780
|
htmlFor: A,
|
|
5787
5781
|
className: "block mb-1 text-xs font-medium leading-[18px] text-neutral-600 dark:text-black-300 font-inter capitalize",
|
|
5788
5782
|
children: [
|
|
5789
|
-
/* @__PURE__ */ n(
|
|
5783
|
+
/* @__PURE__ */ n(LA, { label: e || "", required: a || !1 }),
|
|
5790
5784
|
/* @__PURE__ */ n(YA, { labels: i })
|
|
5791
5785
|
]
|
|
5792
5786
|
}
|
|
@@ -5872,7 +5866,7 @@ const a1 = xA(
|
|
|
5872
5866
|
showDeprecatedFieldWarning: z,
|
|
5873
5867
|
DynamicDataModal: O
|
|
5874
5868
|
}, X) => {
|
|
5875
|
-
const { t: T } =
|
|
5869
|
+
const { t: T } = NA(), [U, N] = E(!1), [V, F] = E(r), [j, Q] = E(!1), R = iA(null), W = X || R, I = () => {
|
|
5876
5870
|
L?.(!j), Q(!j);
|
|
5877
5871
|
}, _ = (Y) => {
|
|
5878
5872
|
if (Y.keyCode === 9 || Y.key === "Enter") {
|
|
@@ -5914,7 +5908,7 @@ const a1 = xA(
|
|
|
5914
5908
|
className: `text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${p ? "" : "capitalize"} ${v || ""}`,
|
|
5915
5909
|
children: /* @__PURE__ */ w("div", { className: "w-full flex items-center justify-between flex-wrap", children: [
|
|
5916
5910
|
/* @__PURE__ */ w("div", { className: "inline-flex items-center gap-1 flex-wrap", children: [
|
|
5917
|
-
/* @__PURE__ */ n(
|
|
5911
|
+
/* @__PURE__ */ n(LA, { label: e || "", required: l || !1, isRequiredConditional: s || !1 }),
|
|
5918
5912
|
y && /* @__PURE__ */ n(
|
|
5919
5913
|
ne,
|
|
5920
5914
|
{
|
|
@@ -5936,7 +5930,7 @@ const a1 = xA(
|
|
|
5936
5930
|
className: "cursor-pointer",
|
|
5937
5931
|
onClick: () => tA(r?.toString() || ""),
|
|
5938
5932
|
type: "button",
|
|
5939
|
-
children: /* @__PURE__ */ n(
|
|
5933
|
+
children: /* @__PURE__ */ n(MA, { placement: "top", title: T("Add to document"), children: /* @__PURE__ */ n(
|
|
5940
5934
|
pe,
|
|
5941
5935
|
{
|
|
5942
5936
|
sx: {
|
|
@@ -7317,7 +7311,7 @@ const aA = {
|
|
|
7317
7311
|
selectedItemsCount: o,
|
|
7318
7312
|
deleteConfig: i,
|
|
7319
7313
|
showActionBg: l
|
|
7320
|
-
} = A, { t: s } =
|
|
7314
|
+
} = A, { t: s } = NA(), [c, d] = E(!1), [u, f] = E(!0), p = iA(null), b = iA(null);
|
|
7321
7315
|
$(() => {
|
|
7322
7316
|
const h = new ResizeObserver(() => {
|
|
7323
7317
|
if (p.current && b.current) {
|
|
@@ -8165,7 +8159,7 @@ const C1 = () => /* @__PURE__ */ n("svg", { width: "16", height: "16", viewBox:
|
|
|
8165
8159
|
try {
|
|
8166
8160
|
const B = new Blob([A], { type: dA(i)?.type }), J = URL.createObjectURL(B), uA = document.createElement("a");
|
|
8167
8161
|
uA.href = J;
|
|
8168
|
-
const
|
|
8162
|
+
const zA = dA(i)?.extension || "txt", VA = sA(zA, "txt");
|
|
8169
8163
|
uA.download = sA(`code_${Date.now()}.${VA}`, `code_${Date.now()}.${VA}`), document.body.appendChild(uA), uA.click(), document.body.removeChild(uA), URL.revokeObjectURL(J);
|
|
8170
8164
|
} catch (B) {
|
|
8171
8165
|
const J = B;
|
|
@@ -8388,7 +8382,7 @@ const C1 = () => /* @__PURE__ */ n("svg", { width: "16", height: "16", viewBox:
|
|
|
8388
8382
|
htmlFor: "text",
|
|
8389
8383
|
className: `mb-1 text-black-300 dark:text-black-300 inline-flex items-center gap-1 flex-wrap ${l ? "" : "capitalize"}`,
|
|
8390
8384
|
children: [
|
|
8391
|
-
/* @__PURE__ */ n(
|
|
8385
|
+
/* @__PURE__ */ n(LA, { label: t || "", required: c || !1 }),
|
|
8392
8386
|
h && /* @__PURE__ */ n(ae, {}),
|
|
8393
8387
|
/* @__PURE__ */ n(YA, { labels: u }),
|
|
8394
8388
|
b && /* @__PURE__ */ n(hA, { placement: "top", title: b, children: /* @__PURE__ */ n("div", { className: "cursor-pointer", children: /* @__PURE__ */ n(KA, {}) }) })
|
|
@@ -8490,7 +8484,7 @@ const Z1 = xA(
|
|
|
8490
8484
|
placeholder: X,
|
|
8491
8485
|
...T
|
|
8492
8486
|
}, U) => {
|
|
8493
|
-
const { t: N } =
|
|
8487
|
+
const { t: N } = NA(), [V, F] = E(!1), j = (Q) => {
|
|
8494
8488
|
C && C({
|
|
8495
8489
|
key: H,
|
|
8496
8490
|
value: Q
|
|
@@ -8543,7 +8537,7 @@ const Z1 = xA(
|
|
|
8543
8537
|
className: `mb-1 text-xs font-medium text-gray-600 dark:text-neutral-300 inline-flex items-center gap-1 ${g ? "" : "uppercase"} ${P || ""}`,
|
|
8544
8538
|
children: /* @__PURE__ */ w("div", { className: "w-full flex items-center justify-between flex-wrap", children: [
|
|
8545
8539
|
/* @__PURE__ */ w("div", { className: "inline-flex items-center gap-1 flex-wrap dark:text-black-300", children: [
|
|
8546
|
-
/* @__PURE__ */ n(
|
|
8540
|
+
/* @__PURE__ */ n(LA, { label: e || "", required: c || !1, isRequiredConditional: d || !1 }),
|
|
8547
8541
|
k && /* @__PURE__ */ n(
|
|
8548
8542
|
ne,
|
|
8549
8543
|
{
|
|
@@ -8565,7 +8559,7 @@ const Z1 = xA(
|
|
|
8565
8559
|
className: "cursor-pointer",
|
|
8566
8560
|
onClick: () => j(t?.toString()),
|
|
8567
8561
|
type: "button",
|
|
8568
|
-
children: /* @__PURE__ */ n(
|
|
8562
|
+
children: /* @__PURE__ */ n(MA, { placement: "top", title: N("Add to document"), children: /* @__PURE__ */ n(
|
|
8569
8563
|
pe,
|
|
8570
8564
|
{
|
|
8571
8565
|
className: "text-primary-600",
|
|
@@ -8589,7 +8583,7 @@ const Z1 = xA(
|
|
|
8589
8583
|
disabled: i,
|
|
8590
8584
|
min: s,
|
|
8591
8585
|
max: l,
|
|
8592
|
-
className: `border ${a ? "border-red-300" : z && L?.color ? `border-${L.color}-300` : "border-gray-300"} ${u} h-[32px] text-gray-900 dark:bg-black-600 dark:text-neutral-200 text-sm rounded-lg focus:ring-
|
|
8586
|
+
className: `border ${a ? "border-red-300" : z && L?.color ? `border-${L.color}-300` : "border-gray-300"} ${u} h-[32px] text-gray-900 dark:bg-black-600 dark:text-neutral-200 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 block w-full p-2.5 font-inter font-medium
|
|
8593
8587
|
disabled:bg-neutral-50 dark:disabled:!bg-black-800 dark:disabled:placeholder:!text-black-400
|
|
8594
8588
|
${z && L?.color && `bg-${L.color}-50`}
|
|
8595
8589
|
${p || ""}
|
|
@@ -9067,7 +9061,7 @@ const Q9 = ({
|
|
|
9067
9061
|
height: 240,
|
|
9068
9062
|
children: ({ columnIndex: l, rowIndex: s, style: c }) => {
|
|
9069
9063
|
const d = s * 5 + l, u = o?.[d];
|
|
9070
|
-
return u ? /* @__PURE__ */ n("div", { style: { ...c, padding: "4px" }, children: /* @__PURE__ */ n(
|
|
9064
|
+
return u ? /* @__PURE__ */ n("div", { style: { ...c, padding: "4px" }, children: /* @__PURE__ */ n(MA, { title: _1(u), children: /* @__PURE__ */ n(
|
|
9071
9065
|
ul,
|
|
9072
9066
|
{
|
|
9073
9067
|
className: q(
|
|
@@ -9124,7 +9118,7 @@ const Q9 = ({
|
|
|
9124
9118
|
onOpenChange: s,
|
|
9125
9119
|
content: /* @__PURE__ */ n(A0, { onChange: e, selectedIcon: A, setOpen: s }),
|
|
9126
9120
|
children: /* @__PURE__ */ w("div", { className: "flex flex-col gap-1", children: [
|
|
9127
|
-
t ? /* @__PURE__ */ n(
|
|
9121
|
+
t ? /* @__PURE__ */ n(LA, { label: t || "", required: r || !1 }) : null,
|
|
9128
9122
|
/* @__PURE__ */ w(
|
|
9129
9123
|
"button",
|
|
9130
9124
|
{
|
|
@@ -10967,7 +10961,7 @@ const t6 = Qa, r6 = ({ icon: A, title: e, description: t, variant: r, className:
|
|
|
10967
10961
|
onSelectResult: p,
|
|
10968
10962
|
isLoading: b,
|
|
10969
10963
|
...g
|
|
10970
|
-
} = A, { t: x } =
|
|
10964
|
+
} = A, { t: x } = NA(), [h, v] = E(t?.slice(0, 0)), [m, y] = E(0), [H, S] = E(!1), [M, P] = E("search"), [k, D] = E(!0), C = iA(null);
|
|
10971
10965
|
M0(a, f || C);
|
|
10972
10966
|
const L = s ? (l || 0) + 1 : 0;
|
|
10973
10967
|
$(() => {
|
|
@@ -15382,14 +15376,14 @@ const Vc = ({
|
|
|
15382
15376
|
}
|
|
15383
15377
|
);
|
|
15384
15378
|
return l?.link ? /* @__PURE__ */ n(
|
|
15385
|
-
|
|
15379
|
+
MA,
|
|
15386
15380
|
{
|
|
15387
15381
|
title: a[s] ? l?.title : "",
|
|
15388
15382
|
placement: "bottom",
|
|
15389
15383
|
children: /* @__PURE__ */ n(ka, { to: l.link, className: "block truncate", children: d })
|
|
15390
15384
|
}
|
|
15391
15385
|
) : /* @__PURE__ */ n(
|
|
15392
|
-
|
|
15386
|
+
MA,
|
|
15393
15387
|
{
|
|
15394
15388
|
title: a[s] ? l?.title : "",
|
|
15395
15389
|
placement: "bottom",
|
|
@@ -15466,7 +15460,7 @@ const ce = {
|
|
|
15466
15460
|
DEFAULT_VARIANT: ko,
|
|
15467
15461
|
VARIANTS: ce
|
|
15468
15462
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
15469
|
-
var
|
|
15463
|
+
var SA = /* @__PURE__ */ ((A) => (A.row = "row", A.column = "column", A))(SA || {});
|
|
15470
15464
|
const In = (A, e) => {
|
|
15471
15465
|
let t = "0px", r;
|
|
15472
15466
|
const a = () => A.reduce((o, i) => (o += typeof i == "number" ? i + "px " : i + " ", o), "");
|
|
@@ -15523,7 +15517,7 @@ const In = (A, e) => {
|
|
|
15523
15517
|
`skeleton__${l}-${u}`
|
|
15524
15518
|
)
|
|
15525
15519
|
), o = (i, l) => {
|
|
15526
|
-
const s = l || "1", c = i.gridGap || Po, d = i.hasOwnProperty("children"), u = i.hasOwnProperty("skeletons"), f = i.repeatCount || Co, p = d ? pr(i.children, f) : [], b = i.direction ===
|
|
15520
|
+
const s = l || "1", c = i.gridGap || Po, d = i.hasOwnProperty("children"), u = i.hasOwnProperty("skeletons"), f = i.repeatCount || Co, p = d ? pr(i.children, f) : [], b = i.direction === SA.row ? Ec(
|
|
15527
15521
|
(d ? p : pr(i.skeletons, f)).map(
|
|
15528
15522
|
({ w: x = Xt }) => ({
|
|
15529
15523
|
w: x
|
|
@@ -15967,7 +15961,7 @@ const In = (A, e) => {
|
|
|
15967
15961
|
}, u6 = lA.memo($c), _c = ({ count: A = 3 }) => {
|
|
15968
15962
|
const e = cA(
|
|
15969
15963
|
() => ({
|
|
15970
|
-
direction:
|
|
15964
|
+
direction: SA.column,
|
|
15971
15965
|
repeatCount: A,
|
|
15972
15966
|
withOpacity: !0,
|
|
15973
15967
|
gridGap: 0,
|
|
@@ -15979,7 +15973,7 @@ const In = (A, e) => {
|
|
|
15979
15973
|
{
|
|
15980
15974
|
w: "100%",
|
|
15981
15975
|
h: "auto",
|
|
15982
|
-
direction:
|
|
15976
|
+
direction: SA.row,
|
|
15983
15977
|
className: "p-3",
|
|
15984
15978
|
children: [
|
|
15985
15979
|
{
|
|
@@ -16019,7 +16013,7 @@ const In = (A, e) => {
|
|
|
16019
16013
|
`, t2 = ({ width: A = "480px" }) => {
|
|
16020
16014
|
const e = cA(
|
|
16021
16015
|
() => ({
|
|
16022
|
-
direction:
|
|
16016
|
+
direction: SA.column,
|
|
16023
16017
|
repeatCount: 1,
|
|
16024
16018
|
withOpacity: !0,
|
|
16025
16019
|
gridGap: 16,
|
|
@@ -16029,7 +16023,7 @@ const In = (A, e) => {
|
|
|
16029
16023
|
// Title and date section
|
|
16030
16024
|
w: "100%",
|
|
16031
16025
|
h: "auto",
|
|
16032
|
-
direction:
|
|
16026
|
+
direction: SA.column,
|
|
16033
16027
|
gridGap: 8,
|
|
16034
16028
|
children: [
|
|
16035
16029
|
{
|
|
@@ -16054,7 +16048,7 @@ const In = (A, e) => {
|
|
|
16054
16048
|
// Description section
|
|
16055
16049
|
w: "100%",
|
|
16056
16050
|
h: "auto",
|
|
16057
|
-
direction:
|
|
16051
|
+
direction: SA.column,
|
|
16058
16052
|
gridGap: 8,
|
|
16059
16053
|
children: [
|
|
16060
16054
|
{
|
|
@@ -16079,7 +16073,7 @@ const In = (A, e) => {
|
|
|
16079
16073
|
// Status and priority section
|
|
16080
16074
|
w: "100%",
|
|
16081
16075
|
h: "auto",
|
|
16082
|
-
direction:
|
|
16076
|
+
direction: SA.column,
|
|
16083
16077
|
gridGap: 12,
|
|
16084
16078
|
children: [
|
|
16085
16079
|
{
|
|
@@ -16102,7 +16096,7 @@ const In = (A, e) => {
|
|
|
16102
16096
|
}, p6 = lA.memo(t2), r2 = ({ count: A = 3 }) => {
|
|
16103
16097
|
const e = cA(
|
|
16104
16098
|
() => ({
|
|
16105
|
-
direction:
|
|
16099
|
+
direction: SA.column,
|
|
16106
16100
|
repeatCount: A,
|
|
16107
16101
|
withOpacity: !0,
|
|
16108
16102
|
gridGap: 16,
|
|
@@ -16116,14 +16110,14 @@ const In = (A, e) => {
|
|
|
16116
16110
|
{
|
|
16117
16111
|
w: "100%",
|
|
16118
16112
|
h: "auto",
|
|
16119
|
-
direction:
|
|
16113
|
+
direction: SA.row,
|
|
16120
16114
|
className: "mb-3",
|
|
16121
16115
|
children: [
|
|
16122
16116
|
{
|
|
16123
16117
|
// Title section with icon
|
|
16124
16118
|
w: "70%",
|
|
16125
16119
|
h: "auto",
|
|
16126
|
-
direction:
|
|
16120
|
+
direction: SA.row,
|
|
16127
16121
|
children: [
|
|
16128
16122
|
{
|
|
16129
16123
|
w: "24px",
|
|
@@ -16143,7 +16137,7 @@ const In = (A, e) => {
|
|
|
16143
16137
|
// Action buttons
|
|
16144
16138
|
w: "30%",
|
|
16145
16139
|
h: "auto",
|
|
16146
|
-
direction:
|
|
16140
|
+
direction: SA.row,
|
|
16147
16141
|
children: [
|
|
16148
16142
|
{
|
|
16149
16143
|
w: "32px",
|
|
@@ -16175,13 +16169,13 @@ const In = (A, e) => {
|
|
|
16175
16169
|
{
|
|
16176
16170
|
w: "100%",
|
|
16177
16171
|
h: "auto",
|
|
16178
|
-
direction:
|
|
16172
|
+
direction: SA.row,
|
|
16179
16173
|
children: [
|
|
16180
16174
|
{
|
|
16181
16175
|
// User info section
|
|
16182
16176
|
w: "60%",
|
|
16183
16177
|
h: "auto",
|
|
16184
|
-
direction:
|
|
16178
|
+
direction: SA.row,
|
|
16185
16179
|
children: [
|
|
16186
16180
|
{
|
|
16187
16181
|
w: "32px",
|
|
@@ -16201,7 +16195,7 @@ const In = (A, e) => {
|
|
|
16201
16195
|
// Date
|
|
16202
16196
|
w: "40%",
|
|
16203
16197
|
h: "auto",
|
|
16204
|
-
direction:
|
|
16198
|
+
direction: SA.row,
|
|
16205
16199
|
skeletons: [{ w: "120px", h: "16px", r: "4px", margin: [4, 0, 0, 0] }],
|
|
16206
16200
|
className: "animate-pulse"
|
|
16207
16201
|
}
|
|
@@ -16217,7 +16211,7 @@ const In = (A, e) => {
|
|
|
16217
16211
|
}, h6 = lA.memo(r2), n2 = 5, m6 = () => {
|
|
16218
16212
|
const A = cA(
|
|
16219
16213
|
() => ({
|
|
16220
|
-
direction:
|
|
16214
|
+
direction: SA.column,
|
|
16221
16215
|
repeatCount: n2,
|
|
16222
16216
|
gridGap: 8,
|
|
16223
16217
|
withOpacity: !0,
|
|
@@ -16225,7 +16219,7 @@ const In = (A, e) => {
|
|
|
16225
16219
|
children: [
|
|
16226
16220
|
{
|
|
16227
16221
|
className: "border rounded-lg w-full border-l-[6px] border-neutral-200 dark:border-black-700 px-4.5 py-3",
|
|
16228
|
-
direction:
|
|
16222
|
+
direction: SA.row,
|
|
16229
16223
|
gridGap: 12,
|
|
16230
16224
|
alignItems: "center",
|
|
16231
16225
|
children: [
|
|
@@ -16235,7 +16229,7 @@ const In = (A, e) => {
|
|
|
16235
16229
|
},
|
|
16236
16230
|
{
|
|
16237
16231
|
w: "calc(100% - 50px)",
|
|
16238
|
-
direction:
|
|
16232
|
+
direction: SA.column,
|
|
16239
16233
|
gridGap: 4,
|
|
16240
16234
|
skeletons: [
|
|
16241
16235
|
{ w: "75%", h: "16px", r: "4px", margin: [0, 0, 4, 0] },
|
|
@@ -16829,7 +16823,7 @@ const In = (A, e) => {
|
|
|
16829
16823
|
className: c = "",
|
|
16830
16824
|
onClick: d = il
|
|
16831
16825
|
}) => {
|
|
16832
|
-
const { t: u } =
|
|
16826
|
+
const { t: u } = NA(), f = s, p = /* @__PURE__ */ w(di, { children: [
|
|
16833
16827
|
A && A,
|
|
16834
16828
|
u(r),
|
|
16835
16829
|
e && e
|
|
@@ -16916,7 +16910,7 @@ const Ho = ({
|
|
|
16916
16910
|
[a, t, r, i, e]
|
|
16917
16911
|
);
|
|
16918
16912
|
return /* @__PURE__ */ n("div", { className: s, children: b ? /* @__PURE__ */ n(
|
|
16919
|
-
|
|
16913
|
+
MA,
|
|
16920
16914
|
{
|
|
16921
16915
|
title: g,
|
|
16922
16916
|
placement: l,
|
|
@@ -18255,7 +18249,7 @@ function mu(A) {
|
|
|
18255
18249
|
S[y] = J, L[y] = J - U;
|
|
18256
18250
|
}
|
|
18257
18251
|
if (l) {
|
|
18258
|
-
var uA,
|
|
18252
|
+
var uA, zA = y === "x" ? FA : WA, VA = y === "x" ? JA : $A, bA = S[H], XA = H === "y" ? "height" : "width", le = bA + x[zA], Le = bA - x[VA], oA = [FA, WA].indexOf(h) !== -1, gA = (uA = C?.[H]) != null ? uA : 0, mA = oA ? le : bA - M[XA] - P[XA] - gA + D.altAxis, PA = oA ? bA + M[XA] + P[XA] - gA - D.altAxis : Le, ze = p && oA ? W2(mA, bA, PA) : _e(p ? mA : le, bA, p ? PA : Le);
|
|
18259
18253
|
S[H] = ze, L[H] = ze - bA;
|
|
18260
18254
|
}
|
|
18261
18255
|
e.modifiersData[r] = L;
|
|
@@ -19300,7 +19294,7 @@ const _u = ({ fill: A = "currentColor", size: e = 20, ...t }) => /* @__PURE__ */
|
|
|
19300
19294
|
setFileData: S,
|
|
19301
19295
|
fileData: M
|
|
19302
19296
|
}) => {
|
|
19303
|
-
const [P, k] = E(null), [D, C] = E([]), [L, z] = E("#d9d9d9"), [O, X] = E(!1), [T, U] = E(null), { t: N } =
|
|
19297
|
+
const [P, k] = E(null), [D, C] = E([]), [L, z] = E("#d9d9d9"), [O, X] = E(!1), [T, U] = E(null), { t: N } = NA(), V = async () => {
|
|
19304
19298
|
if (!m || !Te) {
|
|
19305
19299
|
console.warn("FileUploadDragger: File server upload requires fileUploadService, buildQueryParams, and getToken");
|
|
19306
19300
|
return;
|
|
@@ -21835,7 +21829,7 @@ function H3() {
|
|
|
21835
21829
|
}
|
|
21836
21830
|
var D3 = H3();
|
|
21837
21831
|
const S3 = /* @__PURE__ */ Ne(D3), N3 = (A) => {
|
|
21838
|
-
const { value: e, onOptionChange: t, onSaveOption: r, onDeleteAll: a, required: o, errorMessage: i, hasChoices: l } = A, { t: s } =
|
|
21832
|
+
const { value: e, onOptionChange: t, onSaveOption: r, onDeleteAll: a, required: o, errorMessage: i, hasChoices: l } = A, { t: s } = NA(), [c, d] = E(!1);
|
|
21839
21833
|
return /* @__PURE__ */ w(vA, { children: [
|
|
21840
21834
|
/* @__PURE__ */ w("header", { className: "flex items-end w-full gap-3", children: [
|
|
21841
21835
|
/* @__PURE__ */ n("div", { className: "w-full", children: /* @__PURE__ */ n(
|
|
@@ -22322,14 +22316,14 @@ const j3 = ut(
|
|
|
22322
22316
|
);
|
|
22323
22317
|
Ko.displayName = "GridItemHandle";
|
|
22324
22318
|
const B3 = lA.memo(Ko), J3 = () => {
|
|
22325
|
-
const { t: A } =
|
|
22319
|
+
const { t: A } = NA();
|
|
22326
22320
|
return /* @__PURE__ */ w("div", { className: "flex flex-col items-center text-center", children: [
|
|
22327
22321
|
/* @__PURE__ */ n("span", { className: "text-[#98A2B3] bg-[#F2F4F7] h-[48px] w-[48px] flex items-center justify-center rounded-lg", children: /* @__PURE__ */ n(G3, {}) }),
|
|
22328
22322
|
/* @__PURE__ */ n("p", { className: "font-semibold mt-2 text-neutral-900 dark:text-white", children: A("No additional versions available") }),
|
|
22329
22323
|
/* @__PURE__ */ n("p", { className: "text-sm text-[#98A2B3]", children: A("There are no additional versions available for comparison") })
|
|
22330
22324
|
] });
|
|
22331
22325
|
}, $3 = ({ item: A }) => {
|
|
22332
|
-
const { hideLayoutItem: e, layout: t, layoutHeader: r, layoutContent: a } = Qe(Ar), { t: o } =
|
|
22326
|
+
const { hideLayoutItem: e, layout: t, layoutHeader: r, layoutContent: a } = Qe(Ar), { t: o } = NA(), { isDragging: i, attributes: l, listeners: s, setNodeRef: c, transform: d, transition: u, isOver: f, setActivatorNodeRef: p, over: b, active: g } = Xl({
|
|
22333
22327
|
id: A.id
|
|
22334
22328
|
}), x = {
|
|
22335
22329
|
transform: ql.Transform.toString(d),
|
|
@@ -22401,7 +22395,7 @@ const B3 = lA.memo(Ko), J3 = () => {
|
|
|
22401
22395
|
onNavigateBack: A,
|
|
22402
22396
|
tabsComponent: e
|
|
22403
22397
|
}) => {
|
|
22404
|
-
const { setLayout: t, title: r, layout: a, returnUrl: o, onReturn: i, headerTabConfig: l } = Qe(Ar), { t: s } =
|
|
22398
|
+
const { setLayout: t, title: r, layout: a, returnUrl: o, onReturn: i, headerTabConfig: l } = Qe(Ar), { t: s } = NA(), c = () => {
|
|
22405
22399
|
i ? i() : o && A && A(o?.toString() || "/home");
|
|
22406
22400
|
};
|
|
22407
22401
|
return /* @__PURE__ */ w("div", { className: "flex flex-wrap items-center justify-between p-4 border-y border-y-[#EAECF0] bg-[#F9FAFB] dark:bg-black-800 gap-2 flex-col sm:flex-row", children: [
|
|
@@ -22682,7 +22676,7 @@ const B3 = lA.memo(Ko), J3 = () => {
|
|
|
22682
22676
|
}, []), Q = cA(() => k ? A : i5(A), [A, k]);
|
|
22683
22677
|
return /* @__PURE__ */ w("div", { className: "w-full", children: [
|
|
22684
22678
|
a && /* @__PURE__ */ w("div", { className: "text-xs font-medium text-gray-600 inline-flex items-center gap-1 font-inter text-left whitespace-nowrap flex-wrap", children: [
|
|
22685
|
-
/* @__PURE__ */ n(
|
|
22679
|
+
/* @__PURE__ */ n(LA, { label: a || "", required: i || !1 }),
|
|
22686
22680
|
l && /* @__PURE__ */ n(hA, { placement: "top", title: l, children: /* @__PURE__ */ n("div", { className: "cursor-pointer", children: /* @__PURE__ */ n(KA, {}) }) })
|
|
22687
22681
|
] }),
|
|
22688
22682
|
/* @__PURE__ */ w("div", { className: "relative", ref: g, children: [
|
|
@@ -26064,7 +26058,7 @@ export {
|
|
|
26064
26058
|
m0 as ResizableSidebar,
|
|
26065
26059
|
Gr as SHORTCUT_KEY_MAP,
|
|
26066
26060
|
a6 as SKELETON_CONSTANTS,
|
|
26067
|
-
|
|
26061
|
+
SA as SKELETON_DIRECTION,
|
|
26068
26062
|
ys as SearchBar,
|
|
26069
26063
|
Ma as SelectField,
|
|
26070
26064
|
Hs as ShortcutKbd,
|