@lax-wp/design-system 0.11.32 → 0.11.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data-display/label-value/LabelValue.d.ts +24 -7
- package/dist/components/forms/base-input-field/BaseInputField.d.ts +15 -4
- package/dist/components/forms/currency-input/CurrencyInputField.d.ts +16 -5
- package/dist/components/forms/date-time-field/DateTimeField.d.ts +16 -5
- package/dist/components/forms/dynamic-data-input/DynamicDataInput.d.ts +16 -5
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.d.ts +16 -5
- package/dist/components/forms/master-data-input/MasterDataInputField.d.ts +16 -5
- package/dist/components/forms/percentage-input/PercentageInputField.d.ts +16 -5
- package/dist/components/forms/select-field/SelectField.d.ts +16 -5
- package/dist/components/forms/text-area-field/TextAreaField.d.ts +16 -5
- package/dist/components/forms/toggle/Toggle.d.ts +16 -5
- package/dist/index.cjs.js +16 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +279 -270
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as A, jsxs as T, Fragment as st } from "react/jsx-runtime";
|
|
|
2
2
|
import { AnimatePresence as Dr, motion as lt } from "framer-motion";
|
|
3
3
|
import ke, { forwardRef as dt, useRef as ae, useState as X, useEffect as re, useMemo as Re, createElement as Qu, useCallback as ue, memo as Al, createContext as Co, useContext as dr, useLayoutEffect as ul, useImperativeHandle as xb, Suspense as xC, Fragment as hS } from "react";
|
|
4
4
|
import { useTranslation as Kt } from "react-i18next";
|
|
5
|
-
import { Tooltip as tr, Select as SC, Skeleton as j1, Checkbox as mS, Dropdown as
|
|
5
|
+
import { Tooltip as tr, Select as SC, Skeleton as j1, Checkbox as mS, Dropdown as Tn, DatePicker as Q1, Modal as EC, Upload as gS, Popover as cl, Drawer as wC } from "antd";
|
|
6
6
|
import { Link as Sb, useLocation as kC } from "react-router-dom";
|
|
7
7
|
import * as Gu from "@mui/icons-material";
|
|
8
8
|
import { BoltOutlined as bn, NoteAddOutlined as Ni, CloseRounded as No, TableChartRounded as Eb, CancelRounded as TC, ChevronLeftRounded as OC, ChevronRightRounded as CC, OpenInFull as bS, DescriptionRounded as NC, ArrowUpwardRounded as _S, ArrowDownwardRounded as yS, Timer as DC, DoDisturbRounded as RC, Pending as PC, PlayArrowRounded as LC, RemoveCircleOutline as IC, SearchRounded as G1, KeyboardArrowUpRounded as MC, KeyboardArrowDownRounded as vS, AddRounded as xS, RemoveRounded as HC, ZoomOutMapRounded as FC, ChevronLeft as UC, Lock as zC, Close as BC, GroupsOutlined as qC, Numbers as VC, LocalOfferOutlined as WC, SubjectOutlined as XC, Schedule as jC, AttachMoney as QC, MailOutline as GC, CalendarMonth as YC, FormatListBulleted as SS, Rule as KC, VpnKeyOffOutlined as ZC, VisibilityOutlined as wb, VisibilityOffOutlined as ES, Search as $C, SwapVertOutlined as JC, TagOutlined as eN, RemoveRedEyeOutlined as tN, LockOutlined as M3, LockOpenRounded as rN, Tune as nN, FormatListBulletedOutlined as iN, FormatBold as aN, FormatItalic as oN, FormatUnderlined as sN, FormatListNumbered as lN, Edit as AN, OpenInNewRounded as uN, EditNoteOutlined as cN, CheckRounded as dN, SubdirectoryArrowLeftRounded as H3, FilterListRounded as fN, EditRounded as pN, DeleteOutlineRounded as hN, ArrowDownward as mN, ArrowUpward as gN, VpnKeyRounded as F3, KeyboardArrowDown as bN, RemoveOutlined as _N, DragIndicator as yN } from "@mui/icons-material";
|
|
@@ -14,7 +14,7 @@ import * as dl from "country-flag-icons/react/1x1";
|
|
|
14
14
|
import { formatDistanceToNow as EN, format as wN } from "date-fns";
|
|
15
15
|
import { utcToZonedTime as kN } from "date-fns-tz";
|
|
16
16
|
import Ht from "dayjs";
|
|
17
|
-
import { kn as Yc, lZ as U3, Mz as Wi, aiv as
|
|
17
|
+
import { kn as Yc, lZ as U3, Mz as Wi, aiv as xn, nH as TN, EF as ON, y2 as CN, r8 as NN, tE as DN, JH as RN, JB as wS, Uz as PN, Q5 as LN, tS as Tb, uQ as IN, m1 as MN, Wj as Gl, dS as HN, ed as FN, du as UN, ox as zN, afT as BN, afU as qN, adQ as VN, JE as WN, Mj as XN, U as jN, wr as QN, JF as GN } from "./icons.generated-DE0oGfz4.js";
|
|
18
18
|
import YN from "dayjs/plugin/customParseFormat";
|
|
19
19
|
import KN from "dayjs/plugin/localeData";
|
|
20
20
|
import ZN from "dayjs/plugin/utc";
|
|
@@ -622,7 +622,7 @@ const nn = ({ labels: t = [] }) => {
|
|
|
622
622
|
fill: r
|
|
623
623
|
}
|
|
624
624
|
)
|
|
625
|
-
] }),
|
|
625
|
+
] }), Cn = ({
|
|
626
626
|
position: t = "top",
|
|
627
627
|
title: e = "AI Extracted Field",
|
|
628
628
|
onClick: r
|
|
@@ -649,7 +649,7 @@ const nn = ({ labels: t = [] }) => {
|
|
|
649
649
|
case "high":
|
|
650
650
|
return "bg-success-100";
|
|
651
651
|
}
|
|
652
|
-
},
|
|
652
|
+
}, Nn = (t) => {
|
|
653
653
|
switch (t) {
|
|
654
654
|
case "low":
|
|
655
655
|
return "var(--color-error-600, #DC6803)";
|
|
@@ -658,7 +658,7 @@ const nn = ({ labels: t = [] }) => {
|
|
|
658
658
|
case "high":
|
|
659
659
|
return "var(--color-success-600, #039855)";
|
|
660
660
|
}
|
|
661
|
-
},
|
|
661
|
+
}, Dn = (t) => {
|
|
662
662
|
switch (t) {
|
|
663
663
|
case "low":
|
|
664
664
|
return "var(--color-error-300, #F97066)";
|
|
@@ -782,7 +782,7 @@ const nn = ({ labels: t = [] }) => {
|
|
|
782
782
|
isRiskAnalysisOpen: I = !1,
|
|
783
783
|
RiskDetailsCard: M,
|
|
784
784
|
onAddGTNToDocument: B,
|
|
785
|
-
|
|
785
|
+
sourceMeta: W = [],
|
|
786
786
|
inputEmphasis: Q = "default",
|
|
787
787
|
onConfidenceScoreClick: te,
|
|
788
788
|
...j
|
|
@@ -856,7 +856,7 @@ const nn = ({ labels: t = [] }) => {
|
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
),
|
|
859
|
-
x && !Wt(E) && /* @__PURE__ */ A(
|
|
859
|
+
x && !Wt(E) && /* @__PURE__ */ A(Cn, {}),
|
|
860
860
|
/* @__PURE__ */ A(nn, { labels: u }),
|
|
861
861
|
m && /* @__PURE__ */ A(tr, { placement: "top", title: m, children: /* @__PURE__ */ A("div", { className: "cursor-pointer", children: /* @__PURE__ */ A(rn, {}) }) }),
|
|
862
862
|
r
|
|
@@ -881,8 +881,8 @@ const nn = ({ labels: t = [] }) => {
|
|
|
881
881
|
_n,
|
|
882
882
|
{
|
|
883
883
|
size: 12,
|
|
884
|
-
fill:
|
|
885
|
-
fillSecondary:
|
|
884
|
+
fill: Nn(w),
|
|
885
|
+
fillSecondary: Dn(w)
|
|
886
886
|
}
|
|
887
887
|
),
|
|
888
888
|
/* @__PURE__ */ T(
|
|
@@ -1208,7 +1208,7 @@ const Tue = dt(
|
|
|
1208
1208
|
confidenceScore: g,
|
|
1209
1209
|
confidenceType: _ = "high",
|
|
1210
1210
|
confidenceTooltip: v,
|
|
1211
|
-
|
|
1211
|
+
sourceMeta: x = [],
|
|
1212
1212
|
onConfidenceScoreClick: S,
|
|
1213
1213
|
isGTN: E = !1,
|
|
1214
1214
|
gtnName: w = "",
|
|
@@ -1272,7 +1272,7 @@ const Tue = dt(
|
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
),
|
|
1275
|
-
y && !Wt(g) && /* @__PURE__ */ A(
|
|
1275
|
+
y && !Wt(g) && /* @__PURE__ */ A(Cn, {}),
|
|
1276
1276
|
/* @__PURE__ */ A(nn, { labels: u || [] }),
|
|
1277
1277
|
h && /* @__PURE__ */ A(tr, { placement: "top", title: h, children: /* @__PURE__ */ A(
|
|
1278
1278
|
"div",
|
|
@@ -1308,8 +1308,8 @@ const Tue = dt(
|
|
|
1308
1308
|
_n,
|
|
1309
1309
|
{
|
|
1310
1310
|
size: 12,
|
|
1311
|
-
fill:
|
|
1312
|
-
fillSecondary:
|
|
1311
|
+
fill: Nn(_),
|
|
1312
|
+
fillSecondary: Dn(_)
|
|
1313
1313
|
}
|
|
1314
1314
|
),
|
|
1315
1315
|
/* @__PURE__ */ T("span", { className: U("text-xs font-medium leading-4", si(_)), children: [
|
|
@@ -1492,7 +1492,7 @@ const mr = ({
|
|
|
1492
1492
|
confidenceScore: E,
|
|
1493
1493
|
confidenceType: w = "high",
|
|
1494
1494
|
confidenceTooltip: k,
|
|
1495
|
-
|
|
1495
|
+
sourceMeta: O = [],
|
|
1496
1496
|
onConfidenceScoreClick: C,
|
|
1497
1497
|
disabled: N = !1,
|
|
1498
1498
|
reference: P = {},
|
|
@@ -1574,7 +1574,7 @@ const mr = ({
|
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
1576
|
),
|
|
1577
|
-
S && !Wt(E) && /* @__PURE__ */ A(
|
|
1577
|
+
S && !Wt(E) && /* @__PURE__ */ A(Cn, {}),
|
|
1578
1578
|
/* @__PURE__ */ A(nn, { labels: p }),
|
|
1579
1579
|
m && /* @__PURE__ */ A(
|
|
1580
1580
|
Le,
|
|
@@ -1606,8 +1606,8 @@ const mr = ({
|
|
|
1606
1606
|
_n,
|
|
1607
1607
|
{
|
|
1608
1608
|
size: 12,
|
|
1609
|
-
fill:
|
|
1610
|
-
fillSecondary:
|
|
1609
|
+
fill: Nn(w),
|
|
1610
|
+
fillSecondary: Dn(w)
|
|
1611
1611
|
}
|
|
1612
1612
|
),
|
|
1613
1613
|
/* @__PURE__ */ T("span", { className: U("text-xs font-medium leading-4", si(w)), children: [
|
|
@@ -1835,7 +1835,7 @@ const $D = (t) => Array.isArray(t) ? t.map(
|
|
|
1835
1835
|
confidenceScore: f,
|
|
1836
1836
|
confidenceType: p = "high",
|
|
1837
1837
|
confidenceTooltip: h,
|
|
1838
|
-
|
|
1838
|
+
sourceMeta: m = [],
|
|
1839
1839
|
onConfidenceScoreClick: y,
|
|
1840
1840
|
isGTN: g = !1,
|
|
1841
1841
|
gtnName: _ = null,
|
|
@@ -2036,7 +2036,7 @@ const $D = (t) => Array.isArray(t) ? t.map(
|
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
2038
|
),
|
|
2039
|
-
d && !Wt(f) && /* @__PURE__ */ A(
|
|
2039
|
+
d && !Wt(f) && /* @__PURE__ */ A(Cn, {}),
|
|
2040
2040
|
/* @__PURE__ */ A(nn, { labels: o }),
|
|
2041
2041
|
u && /* @__PURE__ */ A(Le, { placement: "top", title: u, children: /* @__PURE__ */ A(
|
|
2042
2042
|
"div",
|
|
@@ -2072,8 +2072,8 @@ const $D = (t) => Array.isArray(t) ? t.map(
|
|
|
2072
2072
|
_n,
|
|
2073
2073
|
{
|
|
2074
2074
|
size: 12,
|
|
2075
|
-
fill:
|
|
2076
|
-
fillSecondary:
|
|
2075
|
+
fill: Nn(p),
|
|
2076
|
+
fillSecondary: Dn(p)
|
|
2077
2077
|
}
|
|
2078
2078
|
),
|
|
2079
2079
|
/* @__PURE__ */ T("span", { className: U("text-xs font-medium leading-4", si(p)), children: [
|
|
@@ -3727,7 +3727,7 @@ const AR = (t, e, r, n = "medium") => {
|
|
|
3727
3727
|
confidenceScore: p,
|
|
3728
3728
|
confidenceType: h = "high",
|
|
3729
3729
|
confidenceTooltip: m,
|
|
3730
|
-
|
|
3730
|
+
sourceMeta: y = [],
|
|
3731
3731
|
onConfidenceScoreClick: g,
|
|
3732
3732
|
tooltip: _ = "",
|
|
3733
3733
|
className: v = "",
|
|
@@ -3779,7 +3779,7 @@ const AR = (t, e, r, n = "medium") => {
|
|
|
3779
3779
|
children: [
|
|
3780
3780
|
/* @__PURE__ */ A(Zt, { label: i || "", required: a || !1, isRequiredConditional: o || !1 }),
|
|
3781
3781
|
C && /* @__PURE__ */ A(bn, { sx: { fontSize: 16, color: "var(--color-primary-600)", rotate: "15deg" } }),
|
|
3782
|
-
f && !Wt(p) && /* @__PURE__ */ A(
|
|
3782
|
+
f && !Wt(p) && /* @__PURE__ */ A(Cn, {}),
|
|
3783
3783
|
/* @__PURE__ */ A(nn, { labels: d || [] }),
|
|
3784
3784
|
_ && /* @__PURE__ */ A(Le, { placement: "top", title: _, children: /* @__PURE__ */ A("div", { className: "cursor-pointer", children: /* @__PURE__ */ A(rn, {}) }) })
|
|
3785
3785
|
]
|
|
@@ -3806,8 +3806,8 @@ const AR = (t, e, r, n = "medium") => {
|
|
|
3806
3806
|
_n,
|
|
3807
3807
|
{
|
|
3808
3808
|
size: 12,
|
|
3809
|
-
fill:
|
|
3810
|
-
fillSecondary:
|
|
3809
|
+
fill: Nn(h),
|
|
3810
|
+
fillSecondary: Dn(h)
|
|
3811
3811
|
}
|
|
3812
3812
|
),
|
|
3813
3813
|
/* @__PURE__ */ T("span", { className: U("text-xs font-medium leading-4", si(h)), children: [
|
|
@@ -4377,7 +4377,7 @@ const Is = (t, e) => {
|
|
|
4377
4377
|
confidenceScore: m,
|
|
4378
4378
|
confidenceType: y = "high",
|
|
4379
4379
|
confidenceTooltip: g,
|
|
4380
|
-
|
|
4380
|
+
sourceMeta: _ = [],
|
|
4381
4381
|
onConfidenceScoreClick: v,
|
|
4382
4382
|
isGTN: x = !1,
|
|
4383
4383
|
gtnName: S = null,
|
|
@@ -4555,7 +4555,7 @@ const Is = (t, e) => {
|
|
|
4555
4555
|
}
|
|
4556
4556
|
}
|
|
4557
4557
|
),
|
|
4558
|
-
h && !Wt(m) && /* @__PURE__ */ A(
|
|
4558
|
+
h && !Wt(m) && /* @__PURE__ */ A(Cn, {}),
|
|
4559
4559
|
/* @__PURE__ */ A(nn, { labels: l }),
|
|
4560
4560
|
d && /* @__PURE__ */ A(Le, { placement: "top", title: d, children: /* @__PURE__ */ A("div", { className: "cursor-pointer", children: /* @__PURE__ */ A(rn, {}) }) })
|
|
4561
4561
|
] }),
|
|
@@ -4580,8 +4580,8 @@ const Is = (t, e) => {
|
|
|
4580
4580
|
_n,
|
|
4581
4581
|
{
|
|
4582
4582
|
size: 12,
|
|
4583
|
-
fill:
|
|
4584
|
-
fillSecondary:
|
|
4583
|
+
fill: Nn(y),
|
|
4584
|
+
fillSecondary: Dn(y)
|
|
4585
4585
|
}
|
|
4586
4586
|
),
|
|
4587
4587
|
/* @__PURE__ */ T("span", { className: U("text-xs font-medium leading-4", si(y)), children: [
|
|
@@ -4644,7 +4644,7 @@ const Is = (t, e) => {
|
|
|
4644
4644
|
{
|
|
4645
4645
|
className: `absolute inset-y-0 right-2 flex items-center z-[1000px] h-full cursor-pointer dark:text-black-200 ${E ? "cursor-pointer" : ""}`,
|
|
4646
4646
|
children: E ? /* @__PURE__ */ A(
|
|
4647
|
-
|
|
4647
|
+
Tn,
|
|
4648
4648
|
{
|
|
4649
4649
|
menu: {
|
|
4650
4650
|
items: [
|
|
@@ -5234,7 +5234,7 @@ const wR = "MM/DD/YYYY", Jc = "MM/DD/YYYY - hh:mm A", j3 = "YYYY-MM-DD", Q3 = "Y
|
|
|
5234
5234
|
confidenceScore: y,
|
|
5235
5235
|
confidenceType: g = "high",
|
|
5236
5236
|
confidenceTooltip: _,
|
|
5237
|
-
|
|
5237
|
+
sourceMeta: v = [],
|
|
5238
5238
|
onConfidenceScoreClick: x,
|
|
5239
5239
|
isGTN: S = !1,
|
|
5240
5240
|
gtnName: E = null,
|
|
@@ -5499,7 +5499,7 @@ const wR = "MM/DD/YYYY", Jc = "MM/DD/YYYY - hh:mm A", j3 = "YYYY-MM-DD", Q3 = "Y
|
|
|
5499
5499
|
}
|
|
5500
5500
|
}
|
|
5501
5501
|
),
|
|
5502
|
-
m && !Wt(y) && /* @__PURE__ */ A(
|
|
5502
|
+
m && !Wt(y) && /* @__PURE__ */ A(Cn, {}),
|
|
5503
5503
|
/* @__PURE__ */ A(nn, { labels: u }),
|
|
5504
5504
|
h && /* @__PURE__ */ A(Le, { placement: "top", title: h, children: /* @__PURE__ */ A("div", { className: "cursor-pointer", children: /* @__PURE__ */ A(rn, {}) }) })
|
|
5505
5505
|
] }),
|
|
@@ -5524,8 +5524,8 @@ const wR = "MM/DD/YYYY", Jc = "MM/DD/YYYY - hh:mm A", j3 = "YYYY-MM-DD", Q3 = "Y
|
|
|
5524
5524
|
_n,
|
|
5525
5525
|
{
|
|
5526
5526
|
size: 12,
|
|
5527
|
-
fill:
|
|
5528
|
-
fillSecondary:
|
|
5527
|
+
fill: Nn(g),
|
|
5528
|
+
fillSecondary: Dn(g)
|
|
5529
5529
|
}
|
|
5530
5530
|
),
|
|
5531
5531
|
/* @__PURE__ */ T("span", { className: U("text-xs font-medium leading-4", si(g)), children: [
|
|
@@ -5725,7 +5725,7 @@ const CR = dt(
|
|
|
5725
5725
|
confidenceScore: _,
|
|
5726
5726
|
confidenceType: v = "high",
|
|
5727
5727
|
confidenceTooltip: x,
|
|
5728
|
-
|
|
5728
|
+
sourceMeta: S = [],
|
|
5729
5729
|
onConfidenceScoreClick: E,
|
|
5730
5730
|
labelClassName: w,
|
|
5731
5731
|
disabled: k = !1,
|
|
@@ -5794,7 +5794,7 @@ const CR = dt(
|
|
|
5794
5794
|
}
|
|
5795
5795
|
}
|
|
5796
5796
|
),
|
|
5797
|
-
g && !Wt(_) && /* @__PURE__ */ A(
|
|
5797
|
+
g && !Wt(_) && /* @__PURE__ */ A(Cn, {}),
|
|
5798
5798
|
/* @__PURE__ */ A(nn, { labels: d }),
|
|
5799
5799
|
f && /* @__PURE__ */ A(Le, { placement: "top", title: f, children: /* @__PURE__ */ A("div", { className: "cursor-pointer", children: /* @__PURE__ */ A(rn, {}) }) })
|
|
5800
5800
|
] }),
|
|
@@ -5819,8 +5819,8 @@ const CR = dt(
|
|
|
5819
5819
|
_n,
|
|
5820
5820
|
{
|
|
5821
5821
|
size: 12,
|
|
5822
|
-
fill:
|
|
5823
|
-
fillSecondary:
|
|
5822
|
+
fill: Nn(v),
|
|
5823
|
+
fillSecondary: Dn(v)
|
|
5824
5824
|
}
|
|
5825
5825
|
),
|
|
5826
5826
|
/* @__PURE__ */ T("span", { className: U("text-xs font-medium leading-4", si(v)), children: [
|
|
@@ -6128,7 +6128,7 @@ const wt = dt(({
|
|
|
6128
6128
|
D
|
|
6129
6129
|
)) }) : null,
|
|
6130
6130
|
f?.length ? /* @__PURE__ */ A("div", { onClick: (L) => L.stopPropagation(), children: /* @__PURE__ */ A(
|
|
6131
|
-
|
|
6131
|
+
Tn,
|
|
6132
6132
|
{
|
|
6133
6133
|
menu: {
|
|
6134
6134
|
items: f
|
|
@@ -6178,7 +6178,7 @@ const NR = (t = {}) => {
|
|
|
6178
6178
|
l && clearTimeout(l);
|
|
6179
6179
|
};
|
|
6180
6180
|
}, [e, r, n, i]), a;
|
|
6181
|
-
},
|
|
6181
|
+
}, Rn = (t) => {
|
|
6182
6182
|
const {
|
|
6183
6183
|
open: e,
|
|
6184
6184
|
children: r,
|
|
@@ -7697,7 +7697,7 @@ const jS = Co(null), zP = jS.Provider, pl = () => {
|
|
|
7697
7697
|
] }),
|
|
7698
7698
|
[e, i, a, o, s, l]
|
|
7699
7699
|
);
|
|
7700
|
-
return t ? /* @__PURE__ */ A(
|
|
7700
|
+
return t ? /* @__PURE__ */ A(Rn, { title: n, open: t, footer: u, onCancel: e, zIndex: 9999, children: /* @__PURE__ */ A("div", { className: "my-5", children: /* @__PURE__ */ A("div", { className: "text-neutral-400 font-inter text-base", children: r }) }) }) : null;
|
|
7701
7701
|
}, ZP = ({
|
|
7702
7702
|
size: t = 24,
|
|
7703
7703
|
fill: e = "currentColor",
|
|
@@ -7849,7 +7849,7 @@ const jS = Co(null), zP = jS.Provider, pl = () => {
|
|
|
7849
7849
|
children: [
|
|
7850
7850
|
i.map(
|
|
7851
7851
|
(g, _) => g.visible !== !1 && /* @__PURE__ */ A("div", { children: g.type === "dropdown" ? /* @__PURE__ */ A(
|
|
7852
|
-
|
|
7852
|
+
Tn,
|
|
7853
7853
|
{
|
|
7854
7854
|
menu: {
|
|
7855
7855
|
items: g.dropdownItems
|
|
@@ -7964,7 +7964,7 @@ const jS = Co(null), zP = jS.Provider, pl = () => {
|
|
|
7964
7964
|
className: "minw-[150px] p-1.5 flex items-center",
|
|
7965
7965
|
children: [
|
|
7966
7966
|
/* @__PURE__ */ A(
|
|
7967
|
-
|
|
7967
|
+
Tn,
|
|
7968
7968
|
{
|
|
7969
7969
|
menu: {
|
|
7970
7970
|
items: y
|
|
@@ -8114,7 +8114,7 @@ const eL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8114
8114
|
}, [u, a]);
|
|
8115
8115
|
const y = () => s === null && a.value === Be.NULL ? null : !s && s !== 0 && s !== !1 ? iL(a.value) : a.value === Be.NUMBER ? Number(s) : s;
|
|
8116
8116
|
return /* @__PURE__ */ A(
|
|
8117
|
-
|
|
8117
|
+
Rn,
|
|
8118
8118
|
{
|
|
8119
8119
|
open: t,
|
|
8120
8120
|
onCancel: m,
|
|
@@ -8735,7 +8735,7 @@ const eL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8735
8735
|
return /* @__PURE__ */ A(TS, { handle: te, className: "h-full", children: /* @__PURE__ */ T(
|
|
8736
8736
|
"div",
|
|
8737
8737
|
{
|
|
8738
|
-
className:
|
|
8738
|
+
className: xn(
|
|
8739
8739
|
"relative border border-neutral-200 dark:border-neutral-700 rounded-lg h-full overflow-hidden",
|
|
8740
8740
|
m
|
|
8741
8741
|
),
|
|
@@ -8937,7 +8937,7 @@ const eL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8937
8937
|
}, d = (p) => {
|
|
8938
8938
|
l(p);
|
|
8939
8939
|
};
|
|
8940
|
-
return /* @__PURE__ */ A(
|
|
8940
|
+
return /* @__PURE__ */ A(Rn, { asForm: !0, title: i, open: t, onCancel: u, width: o, className: "no-body-padding-modal", footer: /* @__PURE__ */ A("div", { className: "flex justify-end mt-4", children: /* @__PURE__ */ A(wt, { id: "btn-dynamic-data-modal-save", status: "primary", onClick: c, type: "submit", children: a }) }, "submit"), children: /* @__PURE__ */ A("div", { className: "h-[calc(100vh-400px)] overflow-y-auto bg-neutral-50 dark:bg-black-800 px-6", children: /* @__PURE__ */ A("div", { className: "py-5 w-full overflow-x-auto", children: /* @__PURE__ */ A("div", { className: "border rounded-lg", children: /* @__PURE__ */ A(hL, { height: "420px", value: s, onChange: (p) => d(p), isEditMode: !0 }) }) }) }) });
|
|
8941
8941
|
}, J1 = ({
|
|
8942
8942
|
fill: t = "currentColor",
|
|
8943
8943
|
size: e = 20,
|
|
@@ -8982,7 +8982,7 @@ const eL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
8982
8982
|
confidenceScore: _,
|
|
8983
8983
|
confidenceType: v = "high",
|
|
8984
8984
|
confidenceTooltip: x,
|
|
8985
|
-
|
|
8985
|
+
sourceMeta: S = [],
|
|
8986
8986
|
onConfidenceScoreClick: E,
|
|
8987
8987
|
disabled: w = !1,
|
|
8988
8988
|
...k
|
|
@@ -9036,7 +9036,7 @@ const eL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
9036
9036
|
className: `mb-1 text-black-300 dark:text-black-300 inline-flex items-center gap-1 flex-wrap ${s ? "" : "capitalize"}`,
|
|
9037
9037
|
children: [
|
|
9038
9038
|
/* @__PURE__ */ A(Zt, { label: r || "", required: u || !1 }),
|
|
9039
|
-
g && !Wt(_) && /* @__PURE__ */ A(
|
|
9039
|
+
g && !Wt(_) && /* @__PURE__ */ A(Cn, {}),
|
|
9040
9040
|
/* @__PURE__ */ A(nn, { labels: d }),
|
|
9041
9041
|
h && /* @__PURE__ */ A(Le, { placement: "top", title: h, children: /* @__PURE__ */ A("div", { className: "cursor-pointer", children: /* @__PURE__ */ A(rn, {}) }) }),
|
|
9042
9042
|
Wt(_) && v ? /* @__PURE__ */ A(
|
|
@@ -9059,8 +9059,8 @@ const eL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
|
|
|
9059
9059
|
_n,
|
|
9060
9060
|
{
|
|
9061
9061
|
size: 12,
|
|
9062
|
-
fill:
|
|
9063
|
-
fillSecondary:
|
|
9062
|
+
fill: Nn(v),
|
|
9063
|
+
fillSecondary: Dn(v)
|
|
9064
9064
|
}
|
|
9065
9065
|
),
|
|
9066
9066
|
/* @__PURE__ */ T("span", { className: U("text-xs font-medium leading-4", si(v)), children: [
|
|
@@ -9159,7 +9159,7 @@ const bL = dt(
|
|
|
9159
9159
|
confidenceScore: x,
|
|
9160
9160
|
confidenceType: S = "high",
|
|
9161
9161
|
confidenceTooltip: E,
|
|
9162
|
-
|
|
9162
|
+
sourceMeta: w = [],
|
|
9163
9163
|
onConfidenceScoreClick: k,
|
|
9164
9164
|
isGTN: O = !1,
|
|
9165
9165
|
gtnName: C = null,
|
|
@@ -9239,7 +9239,7 @@ const bL = dt(
|
|
|
9239
9239
|
}
|
|
9240
9240
|
}
|
|
9241
9241
|
),
|
|
9242
|
-
v && !Wt(x) && /* @__PURE__ */ A(
|
|
9242
|
+
v && !Wt(x) && /* @__PURE__ */ A(Cn, {}),
|
|
9243
9243
|
/* @__PURE__ */ A(nn, { labels: f }),
|
|
9244
9244
|
y && /* @__PURE__ */ A(Le, { placement: "top", title: y, children: /* @__PURE__ */ A("div", { className: "cursor-pointer", children: /* @__PURE__ */ A(rn, {}) }) })
|
|
9245
9245
|
] }),
|
|
@@ -9264,8 +9264,8 @@ const bL = dt(
|
|
|
9264
9264
|
_n,
|
|
9265
9265
|
{
|
|
9266
9266
|
size: 12,
|
|
9267
|
-
fill:
|
|
9268
|
-
fillSecondary:
|
|
9267
|
+
fill: Nn(S),
|
|
9268
|
+
fillSecondary: Dn(S)
|
|
9269
9269
|
}
|
|
9270
9270
|
),
|
|
9271
9271
|
/* @__PURE__ */ T("span", { className: U("text-xs font-medium leading-4", si(S)), children: [
|
|
@@ -9585,7 +9585,7 @@ const Lue = ({
|
|
|
9585
9585
|
)
|
|
9586
9586
|
] }) }),
|
|
9587
9587
|
/* @__PURE__ */ A(
|
|
9588
|
-
|
|
9588
|
+
Rn,
|
|
9589
9589
|
{
|
|
9590
9590
|
open: m,
|
|
9591
9591
|
onCancel: () => y(!1),
|
|
@@ -10131,7 +10131,7 @@ const Vb = ({
|
|
|
10131
10131
|
) : null;
|
|
10132
10132
|
};
|
|
10133
10133
|
Vb.displayName = "Drawer";
|
|
10134
|
-
const Hue = ({ children: t, showAsModal: e, ...r }) => e ? /* @__PURE__ */ A(
|
|
10134
|
+
const Hue = ({ children: t, showAsModal: e, ...r }) => e ? /* @__PURE__ */ A(Rn, { onCancel: r.onClose, ...r, children: t }) : /* @__PURE__ */ A(Vb, { ...r, children: t });
|
|
10135
10135
|
function DL(t) {
|
|
10136
10136
|
const [e, r] = X(void 0), n = ae(null);
|
|
10137
10137
|
return re(() => {
|
|
@@ -10357,9 +10357,9 @@ const Fue = ({
|
|
|
10357
10357
|
isLiveField: g = !1,
|
|
10358
10358
|
isAiExtracted: _ = !1,
|
|
10359
10359
|
confidenceScore: v,
|
|
10360
|
-
confidenceType: x,
|
|
10360
|
+
confidenceType: x = "high",
|
|
10361
10361
|
confidenceTooltip: S,
|
|
10362
|
-
|
|
10362
|
+
sourceMeta: E = [],
|
|
10363
10363
|
onConfidenceScoreClick: w,
|
|
10364
10364
|
deltaChange: k,
|
|
10365
10365
|
theme: O = "light",
|
|
@@ -10500,14 +10500,14 @@ const Fue = ({
|
|
|
10500
10500
|
_n,
|
|
10501
10501
|
{
|
|
10502
10502
|
size: 12,
|
|
10503
|
-
fill:
|
|
10504
|
-
fillSecondary:
|
|
10503
|
+
fill: Nn(x),
|
|
10504
|
+
fillSecondary: Dn(x)
|
|
10505
10505
|
}
|
|
10506
10506
|
)
|
|
10507
10507
|
}
|
|
10508
10508
|
)
|
|
10509
10509
|
}
|
|
10510
|
-
) : /* @__PURE__ */ A(
|
|
10510
|
+
) : /* @__PURE__ */ A(Cn, { onClick: () => M?.(Ee()) })),
|
|
10511
10511
|
o && /* @__PURE__ */ A(
|
|
10512
10512
|
Le,
|
|
10513
10513
|
{
|
|
@@ -13447,7 +13447,7 @@ ft.changeFilter = d7;
|
|
|
13447
13447
|
ft.transactionFilter = f7;
|
|
13448
13448
|
ft.transactionExtender = p7;
|
|
13449
13449
|
tc.reconfigure = /* @__PURE__ */ tt.define();
|
|
13450
|
-
function
|
|
13450
|
+
function Pn(t, e, r = {}) {
|
|
13451
13451
|
let n = {};
|
|
13452
13452
|
for (let i of t)
|
|
13453
13453
|
for (let a of Object.keys(i)) {
|
|
@@ -14318,7 +14318,7 @@ function TI(t) {
|
|
|
14318
14318
|
}
|
|
14319
14319
|
return e;
|
|
14320
14320
|
}
|
|
14321
|
-
class
|
|
14321
|
+
class Ln {
|
|
14322
14322
|
/**
|
|
14323
14323
|
Compare this instance to another instance of the same type.
|
|
14324
14324
|
(TypeScript can't express this, but only instances of the same
|
|
@@ -14808,15 +14808,15 @@ function T7(t, e) {
|
|
|
14808
14808
|
return null;
|
|
14809
14809
|
}
|
|
14810
14810
|
}
|
|
14811
|
-
class
|
|
14811
|
+
class wn {
|
|
14812
14812
|
constructor(e, r, n = !0) {
|
|
14813
14813
|
this.node = e, this.offset = r, this.precise = n;
|
|
14814
14814
|
}
|
|
14815
14815
|
static before(e, r) {
|
|
14816
|
-
return new
|
|
14816
|
+
return new wn(e.parentNode, $i(e), r);
|
|
14817
14817
|
}
|
|
14818
14818
|
static after(e, r) {
|
|
14819
|
-
return new
|
|
14819
|
+
return new wn(e.parentNode, $i(e) + 1, r);
|
|
14820
14820
|
}
|
|
14821
14821
|
}
|
|
14822
14822
|
var yt = /* @__PURE__ */ function(t) {
|
|
@@ -14829,7 +14829,7 @@ function O7(t) {
|
|
|
14829
14829
|
e.push(1 << +t[r]);
|
|
14830
14830
|
return e;
|
|
14831
14831
|
}
|
|
14832
|
-
const II = /* @__PURE__ */ O7("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), MI = /* @__PURE__ */ O7("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), yg = /* @__PURE__ */ Object.create(null),
|
|
14832
|
+
const II = /* @__PURE__ */ O7("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), MI = /* @__PURE__ */ O7("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), yg = /* @__PURE__ */ Object.create(null), zn = [];
|
|
14833
14833
|
for (let t of ["()", "[]", "{}"]) {
|
|
14834
14834
|
let e = /* @__PURE__ */ t.charCodeAt(0), r = /* @__PURE__ */ t.charCodeAt(1);
|
|
14835
14835
|
yg[e] = r, yg[r] = -e;
|
|
@@ -14924,29 +14924,29 @@ function UI(t, e, r, n, i) {
|
|
|
14924
14924
|
if (p = yg[f = t.charCodeAt(d)])
|
|
14925
14925
|
if (p < 0) {
|
|
14926
14926
|
for (let m = s - 3; m >= 0; m -= 3)
|
|
14927
|
-
if (
|
|
14928
|
-
let y =
|
|
14929
|
-
g && (_t[d] = _t[
|
|
14927
|
+
if (zn[m + 1] == -p) {
|
|
14928
|
+
let y = zn[m + 2], g = y & 2 ? i : y & 4 ? y & 1 ? a : i : 0;
|
|
14929
|
+
g && (_t[d] = _t[zn[m]] = g), s = m;
|
|
14930
14930
|
break;
|
|
14931
14931
|
}
|
|
14932
14932
|
} else {
|
|
14933
|
-
if (
|
|
14933
|
+
if (zn.length == 189)
|
|
14934
14934
|
break;
|
|
14935
|
-
|
|
14935
|
+
zn[s++] = d, zn[s++] = f, zn[s++] = l;
|
|
14936
14936
|
}
|
|
14937
14937
|
else if ((h = _t[d]) == 2 || h == 1) {
|
|
14938
14938
|
let m = h == i;
|
|
14939
14939
|
l = m ? 0 : 1;
|
|
14940
14940
|
for (let y = s - 3; y >= 0; y -= 3) {
|
|
14941
|
-
let g =
|
|
14941
|
+
let g = zn[y + 2];
|
|
14942
14942
|
if (g & 2)
|
|
14943
14943
|
break;
|
|
14944
14944
|
if (m)
|
|
14945
|
-
|
|
14945
|
+
zn[y + 2] |= 2;
|
|
14946
14946
|
else {
|
|
14947
14947
|
if (g & 4)
|
|
14948
14948
|
break;
|
|
14949
|
-
|
|
14949
|
+
zn[y + 2] |= 4;
|
|
14950
14950
|
}
|
|
14951
14951
|
}
|
|
14952
14952
|
}
|
|
@@ -15439,7 +15439,7 @@ class Yt {
|
|
|
15439
15439
|
}
|
|
15440
15440
|
domPosFor(e, r) {
|
|
15441
15441
|
let n = $i(this.dom), i = this.length ? e > 0 : r > 0;
|
|
15442
|
-
return new
|
|
15442
|
+
return new wn(this.parent.dom, n + (i ? 1 : 0), e == 0 || e == this.length);
|
|
15443
15443
|
}
|
|
15444
15444
|
markDirty(e) {
|
|
15445
15445
|
this.flags &= -3, e && (this.flags |= 4), this.parent && this.parent.flags & 2 && this.parent.markDirty(!1);
|
|
@@ -15611,15 +15611,15 @@ class bo extends ic {
|
|
|
15611
15611
|
if (n) {
|
|
15612
15612
|
let { tile: i, offset: a } = n;
|
|
15613
15613
|
if (this.dom.contains(i.dom))
|
|
15614
|
-
return i.isText() ? new
|
|
15614
|
+
return i.isText() ? new wn(i.dom, Math.min(i.dom.nodeValue.length, a)) : i.domPosFor(a, i.flags & 16 ? 1 : i.flags & 32 ? -1 : r);
|
|
15615
15615
|
let o = n.tile.parent, s = !1;
|
|
15616
15616
|
for (let l of o.children) {
|
|
15617
15617
|
if (s)
|
|
15618
|
-
return new
|
|
15618
|
+
return new wn(l.dom, 0);
|
|
15619
15619
|
l == n.tile && (s = !0);
|
|
15620
15620
|
}
|
|
15621
15621
|
}
|
|
15622
|
-
return new
|
|
15622
|
+
return new wn(this.dom, 0);
|
|
15623
15623
|
}
|
|
15624
15624
|
}
|
|
15625
15625
|
function jI(t) {
|
|
@@ -16175,7 +16175,7 @@ function Ad(t) {
|
|
|
16175
16175
|
let e = Yt.get(t);
|
|
16176
16176
|
return e && e.setDOM(t.cloneNode()), t;
|
|
16177
16177
|
}
|
|
16178
|
-
class _o extends
|
|
16178
|
+
class _o extends Ln {
|
|
16179
16179
|
constructor(e) {
|
|
16180
16180
|
super(), this.tag = e;
|
|
16181
16181
|
}
|
|
@@ -16194,7 +16194,7 @@ class _o extends Pn {
|
|
|
16194
16194
|
}
|
|
16195
16195
|
_o.inline = /* @__PURE__ */ new _o("span");
|
|
16196
16196
|
_o.block = /* @__PURE__ */ new _o("div");
|
|
16197
|
-
const ud = /* @__PURE__ */ new class extends
|
|
16197
|
+
const ud = /* @__PURE__ */ new class extends Ln {
|
|
16198
16198
|
toDOM() {
|
|
16199
16199
|
return document.createElement("br");
|
|
16200
16200
|
}
|
|
@@ -16266,7 +16266,7 @@ class S_ {
|
|
|
16266
16266
|
let l = this.view.state.selection.main, u, c;
|
|
16267
16267
|
if (l.empty ? c = u = this.inlineDOMNearPos(l.anchor, l.assoc || 1) : (c = this.inlineDOMNearPos(l.head, l.head == l.from ? 1 : -1), u = this.inlineDOMNearPos(l.anchor, l.anchor == l.from ? 1 : -1)), Ie.gecko && l.empty && !this.hasComposition && nM(u)) {
|
|
16268
16268
|
let f = document.createTextNode("");
|
|
16269
|
-
this.view.observer.ignore(() => u.node.insertBefore(f, u.node.childNodes[u.offset] || null)), u = c = new
|
|
16269
|
+
this.view.observer.ignore(() => u.node.insertBefore(f, u.node.childNodes[u.offset] || null)), u = c = new wn(f, 0), s = !0;
|
|
16270
16270
|
}
|
|
16271
16271
|
let d = this.view.observer.selectionRange;
|
|
16272
16272
|
(s || !d.focusNode || (!ys(u.node, u.offset, d.anchorNode, d.anchorOffset) || !ys(c.node, c.offset, d.focusNode, d.focusOffset)) && !this.suppressWidgetCursorChange(d, l)) && (this.view.observer.ignore(() => {
|
|
@@ -16277,7 +16277,7 @@ class S_ {
|
|
|
16277
16277
|
let p = aM(u.node, u.offset);
|
|
16278
16278
|
if (p && p != 3) {
|
|
16279
16279
|
let h = (p == 1 ? k7 : T7)(u.node, u.offset);
|
|
16280
|
-
h && (u = new
|
|
16280
|
+
h && (u = new wn(h.node, h.offset));
|
|
16281
16281
|
}
|
|
16282
16282
|
}
|
|
16283
16283
|
f.collapse(u.node, u.offset), l.bidiLevel != null && f.caretBidiLevel !== void 0 && (f.caretBidiLevel = l.bidiLevel);
|
|
@@ -16292,7 +16292,7 @@ class S_ {
|
|
|
16292
16292
|
l.anchor > l.head && ([u, c] = [c, u]), p.setEnd(c.node, c.offset), p.setStart(u.node, u.offset), f.removeAllRanges(), f.addRange(p);
|
|
16293
16293
|
}
|
|
16294
16294
|
o && this.view.root.activeElement == n && (n.blur(), i && i.focus());
|
|
16295
|
-
}), this.view.observer.setSelectionRange(u, c)), this.impreciseAnchor = u.precise ? null : new
|
|
16295
|
+
}), this.view.observer.setSelectionRange(u, c)), this.impreciseAnchor = u.precise ? null : new wn(d.anchorNode, d.anchorOffset), this.impreciseHead = c.precise ? null : new wn(d.focusNode, d.focusOffset);
|
|
16296
16296
|
}
|
|
16297
16297
|
// If a zero-length widget is inserted next to the cursor during
|
|
16298
16298
|
// composition, avoid moving it across it and disrupting the
|
|
@@ -16624,7 +16624,7 @@ function cM(t, e) {
|
|
|
16624
16624
|
n < e.to && i > e.from && (r = !0);
|
|
16625
16625
|
}), r;
|
|
16626
16626
|
}
|
|
16627
|
-
class cd extends
|
|
16627
|
+
class cd extends Ln {
|
|
16628
16628
|
constructor(e) {
|
|
16629
16629
|
super(), this.height = e;
|
|
16630
16630
|
}
|
|
@@ -17270,8 +17270,8 @@ function kM(t) {
|
|
|
17270
17270
|
l && r(s).observers.push(k_(n.value, l));
|
|
17271
17271
|
}
|
|
17272
17272
|
}
|
|
17273
|
-
for (let n in
|
|
17274
|
-
r(n).handlers.push(
|
|
17273
|
+
for (let n in On)
|
|
17274
|
+
r(n).handlers.push(On[n]);
|
|
17275
17275
|
for (let n in hn)
|
|
17276
17276
|
r(n).observers.push(hn[n]);
|
|
17277
17277
|
return e;
|
|
@@ -17367,7 +17367,7 @@ function PM(t, e) {
|
|
|
17367
17367
|
return !1;
|
|
17368
17368
|
return !0;
|
|
17369
17369
|
}
|
|
17370
|
-
const
|
|
17370
|
+
const On = /* @__PURE__ */ Object.create(null), hn = /* @__PURE__ */ Object.create(null), tE = Ie.ie && Ie.ie_version < 15 || Ie.ios && Ie.webkit_version < 604;
|
|
17371
17371
|
function LM(t) {
|
|
17372
17372
|
let e = t.dom.parentNode;
|
|
17373
17373
|
if (!e)
|
|
@@ -17413,14 +17413,14 @@ function rE(t, e) {
|
|
|
17413
17413
|
hn.scroll = (t) => {
|
|
17414
17414
|
t.inputState.lastScrollTop = t.scrollDOM.scrollTop, t.inputState.lastScrollLeft = t.scrollDOM.scrollLeft;
|
|
17415
17415
|
};
|
|
17416
|
-
|
|
17416
|
+
On.keydown = (t, e) => (t.inputState.setSelectionOrigin("select"), e.keyCode == 27 && t.inputState.tabFocusMode != 0 && (t.inputState.tabFocusMode = Date.now() + 2e3), !1);
|
|
17417
17417
|
hn.touchstart = (t, e) => {
|
|
17418
17418
|
t.inputState.lastTouchTime = Date.now(), t.inputState.setSelectionOrigin("select.pointer");
|
|
17419
17419
|
};
|
|
17420
17420
|
hn.touchmove = (t) => {
|
|
17421
17421
|
t.inputState.setSelectionOrigin("select.pointer");
|
|
17422
17422
|
};
|
|
17423
|
-
|
|
17423
|
+
On.mousedown = (t, e) => {
|
|
17424
17424
|
if (t.observer.flush(), t.inputState.lastTouchTime > Date.now() - 2e3)
|
|
17425
17425
|
return !1;
|
|
17426
17426
|
let r = null;
|
|
@@ -17483,7 +17483,7 @@ function HM(t, e) {
|
|
|
17483
17483
|
}
|
|
17484
17484
|
return null;
|
|
17485
17485
|
}
|
|
17486
|
-
|
|
17486
|
+
On.dragstart = (t, e) => {
|
|
17487
17487
|
let { selection: { main: r } } = t.state;
|
|
17488
17488
|
if (e.target.draggable) {
|
|
17489
17489
|
let i = t.docView.tile.nearest(e.target);
|
|
@@ -17495,7 +17495,7 @@ Tn.dragstart = (t, e) => {
|
|
|
17495
17495
|
let { inputState: n } = t;
|
|
17496
17496
|
return n.mouseSelection && (n.mouseSelection.dragging = !0), n.draggedContent = r, e.dataTransfer && (e.dataTransfer.setData("Text", oc(t.state, Jb, t.state.sliceDoc(r.from, r.to))), e.dataTransfer.effectAllowed = "copyMove"), !1;
|
|
17497
17497
|
};
|
|
17498
|
-
|
|
17498
|
+
On.dragend = (t) => (t.inputState.draggedContent = null, !1);
|
|
17499
17499
|
function D_(t, e, r, n) {
|
|
17500
17500
|
if (r = oc(t.state, $b, r), !r)
|
|
17501
17501
|
return;
|
|
@@ -17506,7 +17506,7 @@ function D_(t, e, r, n) {
|
|
|
17506
17506
|
userEvent: o ? "move.drop" : "input.drop"
|
|
17507
17507
|
}), t.inputState.draggedContent = null;
|
|
17508
17508
|
}
|
|
17509
|
-
|
|
17509
|
+
On.drop = (t, e) => {
|
|
17510
17510
|
if (!e.dataTransfer)
|
|
17511
17511
|
return !1;
|
|
17512
17512
|
if (t.state.readOnly)
|
|
@@ -17530,7 +17530,7 @@ Tn.drop = (t, e) => {
|
|
|
17530
17530
|
}
|
|
17531
17531
|
return !1;
|
|
17532
17532
|
};
|
|
17533
|
-
|
|
17533
|
+
On.paste = (t, e) => {
|
|
17534
17534
|
if (t.state.readOnly)
|
|
17535
17535
|
return !0;
|
|
17536
17536
|
t.observer.flush();
|
|
@@ -17561,7 +17561,7 @@ function UM(t) {
|
|
|
17561
17561
|
return { text: oc(t, Jb, e.join(t.lineBreak)), ranges: r, linewise: n };
|
|
17562
17562
|
}
|
|
17563
17563
|
let Tg = null;
|
|
17564
|
-
|
|
17564
|
+
On.copy = On.cut = (t, e) => {
|
|
17565
17565
|
if (!bs(t.contentDOM, t.observer.selectionRange))
|
|
17566
17566
|
return !1;
|
|
17567
17567
|
let { text: r, ranges: n, linewise: i } = UM(t.state);
|
|
@@ -17610,7 +17610,7 @@ hn.compositionend = (t) => {
|
|
|
17610
17610
|
hn.contextmenu = (t) => {
|
|
17611
17611
|
t.inputState.lastContextMenu = Date.now();
|
|
17612
17612
|
};
|
|
17613
|
-
|
|
17613
|
+
On.beforeinput = (t, e) => {
|
|
17614
17614
|
var r, n;
|
|
17615
17615
|
if ((e.inputType == "insertText" || e.inputType == "insertCompositionText") && (t.inputState.insertingText = e.data, t.inputState.insertingTextAt = Date.now()), e.inputType == "insertReplacementText" && t.observer.editContext) {
|
|
17616
17616
|
let a = (r = e.dataTransfer) === null || r === void 0 ? void 0 : r.getData("text/plain"), o = e.getTargetRanges();
|
|
@@ -17685,7 +17685,7 @@ class qM {
|
|
|
17685
17685
|
return this.index < this.heights.length;
|
|
17686
17686
|
}
|
|
17687
17687
|
}
|
|
17688
|
-
class
|
|
17688
|
+
class En {
|
|
17689
17689
|
/**
|
|
17690
17690
|
@internal
|
|
17691
17691
|
*/
|
|
@@ -17730,7 +17730,7 @@ class Sn {
|
|
|
17730
17730
|
*/
|
|
17731
17731
|
join(e) {
|
|
17732
17732
|
let r = (Array.isArray(this._content) ? this._content : [this]).concat(Array.isArray(e._content) ? e._content : [e]);
|
|
17733
|
-
return new
|
|
17733
|
+
return new En(this.from, this.length + e.length, this.top, this.height + e.height, r);
|
|
17734
17734
|
}
|
|
17735
17735
|
}
|
|
17736
17736
|
var Et = /* @__PURE__ */ function(t) {
|
|
@@ -17817,10 +17817,10 @@ class sE extends Rr {
|
|
|
17817
17817
|
super(e, r), this.deco = n, this.spaceAbove = 0;
|
|
17818
17818
|
}
|
|
17819
17819
|
mainBlock(e, r) {
|
|
17820
|
-
return new
|
|
17820
|
+
return new En(r, this.length, e + this.spaceAbove, this.height - this.spaceAbove, this.deco || 0);
|
|
17821
17821
|
}
|
|
17822
17822
|
blockAt(e, r, n, i) {
|
|
17823
|
-
return this.spaceAbove && e < n + this.spaceAbove ? new
|
|
17823
|
+
return this.spaceAbove && e < n + this.spaceAbove ? new En(i, 0, n, this.spaceAbove, VM) : this.mainBlock(n, i);
|
|
17824
17824
|
}
|
|
17825
17825
|
lineAt(e, r, n, i, a) {
|
|
17826
17826
|
let o = this.mainBlock(i, a);
|
|
@@ -17845,7 +17845,7 @@ class Zr extends sE {
|
|
|
17845
17845
|
super(e, r, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0, this.spaceAbove = n;
|
|
17846
17846
|
}
|
|
17847
17847
|
mainBlock(e, r) {
|
|
17848
|
-
return new
|
|
17848
|
+
return new En(r, this.length, e + this.spaceAbove, this.height - this.spaceAbove, this.breaks);
|
|
17849
17849
|
}
|
|
17850
17850
|
replace(e, r, n) {
|
|
17851
17851
|
let i = n[0];
|
|
@@ -17875,10 +17875,10 @@ class fr extends Rr {
|
|
|
17875
17875
|
let { firstLine: a, lastLine: o, perLine: s, perChar: l } = this.heightMetrics(r, i);
|
|
17876
17876
|
if (r.lineWrapping) {
|
|
17877
17877
|
let u = i + (e < r.lineHeight ? 0 : Math.round(Math.max(0, Math.min(1, (e - n) / this.height)) * this.length)), c = r.doc.lineAt(u), d = s + c.length * l, f = Math.max(n, e - d / 2);
|
|
17878
|
-
return new
|
|
17878
|
+
return new En(c.from, c.length, f, d, 0);
|
|
17879
17879
|
} else {
|
|
17880
17880
|
let u = Math.max(0, Math.min(o - a, Math.floor((e - n) / s))), { from: c, length: d } = r.doc.line(a + u);
|
|
17881
|
-
return new
|
|
17881
|
+
return new En(c, d, n + s * u, s, 0);
|
|
17882
17882
|
}
|
|
17883
17883
|
}
|
|
17884
17884
|
lineAt(e, r, n, i, a) {
|
|
@@ -17886,10 +17886,10 @@ class fr extends Rr {
|
|
|
17886
17886
|
return this.blockAt(e, n, i, a);
|
|
17887
17887
|
if (r == Et.ByPosNoHeight) {
|
|
17888
17888
|
let { from: p, to: h } = n.doc.lineAt(e);
|
|
17889
|
-
return new
|
|
17889
|
+
return new En(p, h - p, 0, 0, 0);
|
|
17890
17890
|
}
|
|
17891
17891
|
let { firstLine: o, perLine: s, perChar: l } = this.heightMetrics(n, a), u = n.doc.lineAt(e), c = s + u.length * l, d = u.number - o, f = i + s * d + l * (u.from - a - d);
|
|
17892
|
-
return new
|
|
17892
|
+
return new En(u.from, u.length, Math.max(i, Math.min(f, i + this.height - c)), c, 0);
|
|
17893
17893
|
}
|
|
17894
17894
|
forEachLine(e, r, n, i, a, o) {
|
|
17895
17895
|
e = Math.max(e, a), r = Math.min(r, a + this.length);
|
|
@@ -17901,7 +17901,7 @@ class fr extends Rr {
|
|
|
17901
17901
|
d += l * h + u * (e - a - h);
|
|
17902
17902
|
}
|
|
17903
17903
|
let p = l + u * f.length;
|
|
17904
|
-
o(new
|
|
17904
|
+
o(new En(f.from, f.length, d, p, 0)), d += p, c = f.to + 1;
|
|
17905
17905
|
}
|
|
17906
17906
|
}
|
|
17907
17907
|
replace(e, r, n) {
|
|
@@ -18152,7 +18152,7 @@ class fd {
|
|
|
18152
18152
|
}).range(this.from, this.to);
|
|
18153
18153
|
}
|
|
18154
18154
|
}
|
|
18155
|
-
class ZM extends
|
|
18155
|
+
class ZM extends Ln {
|
|
18156
18156
|
constructor(e, r) {
|
|
18157
18157
|
super(), this.size = e, this.vertical = r;
|
|
18158
18158
|
}
|
|
@@ -18499,7 +18499,7 @@ function ds(t, e) {
|
|
|
18499
18499
|
if (e.scale == 1)
|
|
18500
18500
|
return t;
|
|
18501
18501
|
let r = e.toDOM(t.top), n = e.toDOM(t.bottom);
|
|
18502
|
-
return new
|
|
18502
|
+
return new En(t.from, t.length, r, n - r, Array.isArray(t._content) ? t._content.map((i) => ds(i, e)) : t._content);
|
|
18503
18503
|
}
|
|
18504
18504
|
const oA = /* @__PURE__ */ Pe.define({ combine: (t) => t.join(" ") }), Og = /* @__PURE__ */ Pe.define({ combine: (t) => t.indexOf(!0) > -1 }), Cg = /* @__PURE__ */ Ki.newName(), lE = /* @__PURE__ */ Ki.newName(), AE = /* @__PURE__ */ Ki.newName(), uE = { "&light": "." + lE, "&dark": "." + AE };
|
|
18505
18505
|
function Ng(t, e, r) {
|
|
@@ -20211,7 +20211,7 @@ function pE(t) {
|
|
|
20211
20211
|
}
|
|
20212
20212
|
const Ws = /* @__PURE__ */ Pe.define({
|
|
20213
20213
|
combine(t) {
|
|
20214
|
-
return
|
|
20214
|
+
return Pn(t, {
|
|
20215
20215
|
cursorBlinkRate: 1200,
|
|
20216
20216
|
drawRangeCursor: !0
|
|
20217
20217
|
}, {
|
|
@@ -20467,7 +20467,7 @@ function wH() {
|
|
|
20467
20467
|
}
|
|
20468
20468
|
const FA = /* @__PURE__ */ Pe.define({
|
|
20469
20469
|
combine(t) {
|
|
20470
|
-
let e =
|
|
20470
|
+
let e = Pn(t, {
|
|
20471
20471
|
render: null,
|
|
20472
20472
|
specialChars: SH,
|
|
20473
20473
|
addSpecialChars: null
|
|
@@ -20512,7 +20512,7 @@ const OH = "•";
|
|
|
20512
20512
|
function CH(t) {
|
|
20513
20513
|
return t >= 32 ? OH : t == 10 ? "" : String.fromCharCode(9216 + t);
|
|
20514
20514
|
}
|
|
20515
|
-
class NH extends
|
|
20515
|
+
class NH extends Ln {
|
|
20516
20516
|
constructor(e, r) {
|
|
20517
20517
|
super(), this.options = e, this.code = r;
|
|
20518
20518
|
}
|
|
@@ -20530,7 +20530,7 @@ class NH extends Pn {
|
|
|
20530
20530
|
return !1;
|
|
20531
20531
|
}
|
|
20532
20532
|
}
|
|
20533
|
-
class DH extends
|
|
20533
|
+
class DH extends Ln {
|
|
20534
20534
|
constructor(e) {
|
|
20535
20535
|
super(), this.width = e;
|
|
20536
20536
|
}
|
|
@@ -20566,7 +20566,7 @@ const PH = /* @__PURE__ */ Xe.line({ class: "cm-activeLine" }), LH = /* @__PURE_
|
|
|
20566
20566
|
}, {
|
|
20567
20567
|
decorations: (t) => t.decorations
|
|
20568
20568
|
});
|
|
20569
|
-
class IH extends
|
|
20569
|
+
class IH extends Ln {
|
|
20570
20570
|
constructor(e) {
|
|
20571
20571
|
super(), this.content = e;
|
|
20572
20572
|
}
|
|
@@ -21560,7 +21560,7 @@ function aF(t, e) {
|
|
|
21560
21560
|
}
|
|
21561
21561
|
const oF = /* @__PURE__ */ Pe.define(), sF = /* @__PURE__ */ Pe.define(), Ja = /* @__PURE__ */ Pe.define({
|
|
21562
21562
|
combine(t) {
|
|
21563
|
-
return
|
|
21563
|
+
return Pn(t, { formatNumber: String, domEventHandlers: {} }, {
|
|
21564
21564
|
domEventHandlers(e, r) {
|
|
21565
21565
|
let n = Object.assign({}, e);
|
|
21566
21566
|
for (let i in r) {
|
|
@@ -23284,7 +23284,7 @@ function OF(t) {
|
|
|
23284
23284
|
e = e.next;
|
|
23285
23285
|
return e || null;
|
|
23286
23286
|
}
|
|
23287
|
-
const Te = sn.define, dA = Te(), Hi = Te(), oy = Te(Hi), sy = Te(Hi), Fi = Te(), fA = Te(Fi), vd = Te(Fi),
|
|
23287
|
+
const Te = sn.define, dA = Te(), Hi = Te(), oy = Te(Hi), sy = Te(Hi), Fi = Te(), fA = Te(Fi), vd = Te(Fi), Vn = Te(), ua = Te(Vn), Bn = Te(), qn = Te(), Hg = Te(), Zo = Te(Hg), pA = Te(), Z = {
|
|
23288
23288
|
/**
|
|
23289
23289
|
A comment.
|
|
23290
23290
|
*/
|
|
@@ -23397,85 +23397,85 @@ const Te = sn.define, dA = Te(), Hi = Te(), oy = Te(Hi), sy = Te(Hi), Fi = Te(),
|
|
|
23397
23397
|
/**
|
|
23398
23398
|
A language keyword.
|
|
23399
23399
|
*/
|
|
23400
|
-
keyword:
|
|
23400
|
+
keyword: Bn,
|
|
23401
23401
|
/**
|
|
23402
23402
|
The [keyword](#highlight.tags.keyword) for the self or this
|
|
23403
23403
|
object.
|
|
23404
23404
|
*/
|
|
23405
|
-
self: Te(
|
|
23405
|
+
self: Te(Bn),
|
|
23406
23406
|
/**
|
|
23407
23407
|
The [keyword](#highlight.tags.keyword) for null.
|
|
23408
23408
|
*/
|
|
23409
|
-
null: Te(
|
|
23409
|
+
null: Te(Bn),
|
|
23410
23410
|
/**
|
|
23411
23411
|
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
23412
23412
|
*/
|
|
23413
|
-
atom: Te(
|
|
23413
|
+
atom: Te(Bn),
|
|
23414
23414
|
/**
|
|
23415
23415
|
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
23416
23416
|
*/
|
|
23417
|
-
unit: Te(
|
|
23417
|
+
unit: Te(Bn),
|
|
23418
23418
|
/**
|
|
23419
23419
|
A modifier [keyword](#highlight.tags.keyword).
|
|
23420
23420
|
*/
|
|
23421
|
-
modifier: Te(
|
|
23421
|
+
modifier: Te(Bn),
|
|
23422
23422
|
/**
|
|
23423
23423
|
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
23424
23424
|
*/
|
|
23425
|
-
operatorKeyword: Te(
|
|
23425
|
+
operatorKeyword: Te(Bn),
|
|
23426
23426
|
/**
|
|
23427
23427
|
A control-flow related [keyword](#highlight.tags.keyword).
|
|
23428
23428
|
*/
|
|
23429
|
-
controlKeyword: Te(
|
|
23429
|
+
controlKeyword: Te(Bn),
|
|
23430
23430
|
/**
|
|
23431
23431
|
A [keyword](#highlight.tags.keyword) that defines something.
|
|
23432
23432
|
*/
|
|
23433
|
-
definitionKeyword: Te(
|
|
23433
|
+
definitionKeyword: Te(Bn),
|
|
23434
23434
|
/**
|
|
23435
23435
|
A [keyword](#highlight.tags.keyword) related to defining or
|
|
23436
23436
|
interfacing with modules.
|
|
23437
23437
|
*/
|
|
23438
|
-
moduleKeyword: Te(
|
|
23438
|
+
moduleKeyword: Te(Bn),
|
|
23439
23439
|
/**
|
|
23440
23440
|
An operator.
|
|
23441
23441
|
*/
|
|
23442
|
-
operator:
|
|
23442
|
+
operator: qn,
|
|
23443
23443
|
/**
|
|
23444
23444
|
An [operator](#highlight.tags.operator) that dereferences something.
|
|
23445
23445
|
*/
|
|
23446
|
-
derefOperator: Te(
|
|
23446
|
+
derefOperator: Te(qn),
|
|
23447
23447
|
/**
|
|
23448
23448
|
Arithmetic-related [operator](#highlight.tags.operator).
|
|
23449
23449
|
*/
|
|
23450
|
-
arithmeticOperator: Te(
|
|
23450
|
+
arithmeticOperator: Te(qn),
|
|
23451
23451
|
/**
|
|
23452
23452
|
Logical [operator](#highlight.tags.operator).
|
|
23453
23453
|
*/
|
|
23454
|
-
logicOperator: Te(
|
|
23454
|
+
logicOperator: Te(qn),
|
|
23455
23455
|
/**
|
|
23456
23456
|
Bit [operator](#highlight.tags.operator).
|
|
23457
23457
|
*/
|
|
23458
|
-
bitwiseOperator: Te(
|
|
23458
|
+
bitwiseOperator: Te(qn),
|
|
23459
23459
|
/**
|
|
23460
23460
|
Comparison [operator](#highlight.tags.operator).
|
|
23461
23461
|
*/
|
|
23462
|
-
compareOperator: Te(
|
|
23462
|
+
compareOperator: Te(qn),
|
|
23463
23463
|
/**
|
|
23464
23464
|
[Operator](#highlight.tags.operator) that updates its operand.
|
|
23465
23465
|
*/
|
|
23466
|
-
updateOperator: Te(
|
|
23466
|
+
updateOperator: Te(qn),
|
|
23467
23467
|
/**
|
|
23468
23468
|
[Operator](#highlight.tags.operator) that defines something.
|
|
23469
23469
|
*/
|
|
23470
|
-
definitionOperator: Te(
|
|
23470
|
+
definitionOperator: Te(qn),
|
|
23471
23471
|
/**
|
|
23472
23472
|
Type-related [operator](#highlight.tags.operator).
|
|
23473
23473
|
*/
|
|
23474
|
-
typeOperator: Te(
|
|
23474
|
+
typeOperator: Te(qn),
|
|
23475
23475
|
/**
|
|
23476
23476
|
Control-flow [operator](#highlight.tags.operator).
|
|
23477
23477
|
*/
|
|
23478
|
-
controlOperator: Te(
|
|
23478
|
+
controlOperator: Te(qn),
|
|
23479
23479
|
/**
|
|
23480
23480
|
Program or markup punctuation.
|
|
23481
23481
|
*/
|
|
@@ -23512,7 +23512,7 @@ const Te = sn.define, dA = Te(), Hi = Te(), oy = Te(Hi), sy = Te(Hi), Fi = Te(),
|
|
|
23512
23512
|
/**
|
|
23513
23513
|
Content, for example plain text in XML or markup documents.
|
|
23514
23514
|
*/
|
|
23515
|
-
content:
|
|
23515
|
+
content: Vn,
|
|
23516
23516
|
/**
|
|
23517
23517
|
[Content](#highlight.tags.content) that represents a heading.
|
|
23518
23518
|
*/
|
|
@@ -23544,37 +23544,37 @@ const Te = sn.define, dA = Te(), Hi = Te(), oy = Te(Hi), sy = Te(Hi), Fi = Te(),
|
|
|
23544
23544
|
/**
|
|
23545
23545
|
A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
|
|
23546
23546
|
*/
|
|
23547
|
-
contentSeparator: Te(
|
|
23547
|
+
contentSeparator: Te(Vn),
|
|
23548
23548
|
/**
|
|
23549
23549
|
[Content](#highlight.tags.content) that represents a list.
|
|
23550
23550
|
*/
|
|
23551
|
-
list: Te(
|
|
23551
|
+
list: Te(Vn),
|
|
23552
23552
|
/**
|
|
23553
23553
|
[Content](#highlight.tags.content) that represents a quote.
|
|
23554
23554
|
*/
|
|
23555
|
-
quote: Te(
|
|
23555
|
+
quote: Te(Vn),
|
|
23556
23556
|
/**
|
|
23557
23557
|
[Content](#highlight.tags.content) that is emphasized.
|
|
23558
23558
|
*/
|
|
23559
|
-
emphasis: Te(
|
|
23559
|
+
emphasis: Te(Vn),
|
|
23560
23560
|
/**
|
|
23561
23561
|
[Content](#highlight.tags.content) that is styled strong.
|
|
23562
23562
|
*/
|
|
23563
|
-
strong: Te(
|
|
23563
|
+
strong: Te(Vn),
|
|
23564
23564
|
/**
|
|
23565
23565
|
[Content](#highlight.tags.content) that is part of a link.
|
|
23566
23566
|
*/
|
|
23567
|
-
link: Te(
|
|
23567
|
+
link: Te(Vn),
|
|
23568
23568
|
/**
|
|
23569
23569
|
[Content](#highlight.tags.content) that is styled as code or
|
|
23570
23570
|
monospace.
|
|
23571
23571
|
*/
|
|
23572
|
-
monospace: Te(
|
|
23572
|
+
monospace: Te(Vn),
|
|
23573
23573
|
/**
|
|
23574
23574
|
[Content](#highlight.tags.content) that has a strike-through
|
|
23575
23575
|
style.
|
|
23576
23576
|
*/
|
|
23577
|
-
strikethrough: Te(
|
|
23577
|
+
strikethrough: Te(Vn),
|
|
23578
23578
|
/**
|
|
23579
23579
|
Inserted text in a change-tracking format.
|
|
23580
23580
|
*/
|
|
@@ -23694,7 +23694,7 @@ function CF(t) {
|
|
|
23694
23694
|
});
|
|
23695
23695
|
}
|
|
23696
23696
|
const NF = /* @__PURE__ */ new ct();
|
|
23697
|
-
class
|
|
23697
|
+
class kn {
|
|
23698
23698
|
/**
|
|
23699
23699
|
Construct a language object. If you need to invoke this
|
|
23700
23700
|
directly, first define a data facet with
|
|
@@ -23776,7 +23776,7 @@ class wn {
|
|
|
23776
23776
|
return !0;
|
|
23777
23777
|
}
|
|
23778
23778
|
}
|
|
23779
|
-
|
|
23779
|
+
kn.setState = /* @__PURE__ */ tt.define();
|
|
23780
23780
|
function ly(t, e, r) {
|
|
23781
23781
|
let n = t.facet(ea), i = rr(t).topNode;
|
|
23782
23782
|
if (!n || n.allowsNesting)
|
|
@@ -23784,7 +23784,7 @@ function ly(t, e, r) {
|
|
|
23784
23784
|
a.type.isTop && (i = a);
|
|
23785
23785
|
return i;
|
|
23786
23786
|
}
|
|
23787
|
-
class Gs extends
|
|
23787
|
+
class Gs extends kn {
|
|
23788
23788
|
constructor(e, r, n) {
|
|
23789
23789
|
super(e, r, [], n), this.parser = r;
|
|
23790
23790
|
}
|
|
@@ -23809,7 +23809,7 @@ class Gs extends wn {
|
|
|
23809
23809
|
}
|
|
23810
23810
|
}
|
|
23811
23811
|
function rr(t) {
|
|
23812
|
-
let e = t.field(
|
|
23812
|
+
let e = t.field(kn.state, !1);
|
|
23813
23813
|
return e ? e.tree : Vt.empty;
|
|
23814
23814
|
}
|
|
23815
23815
|
class DF {
|
|
@@ -24006,11 +24006,11 @@ class vo {
|
|
|
24006
24006
|
return n.work(20, r) || n.takeTree(), new vo(n);
|
|
24007
24007
|
}
|
|
24008
24008
|
}
|
|
24009
|
-
|
|
24009
|
+
kn.state = /* @__PURE__ */ nr.define({
|
|
24010
24010
|
create: vo.init,
|
|
24011
24011
|
update(t, e) {
|
|
24012
24012
|
for (let r of e.effects)
|
|
24013
|
-
if (r.is(
|
|
24013
|
+
if (r.is(kn.setState))
|
|
24014
24014
|
return r.value;
|
|
24015
24015
|
return e.startState.facet(ea) != e.state.facet(ea) ? vo.init(e.state) : t.apply(e);
|
|
24016
24016
|
}
|
|
@@ -24041,13 +24041,13 @@ const Sd = typeof navigator < "u" && (!((xd = navigator.scheduling) === null ||
|
|
|
24041
24041
|
this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
|
|
24042
24042
|
}
|
|
24043
24043
|
update(e) {
|
|
24044
|
-
let r = this.view.state.field(
|
|
24044
|
+
let r = this.view.state.field(kn.state).context;
|
|
24045
24045
|
(r.updateViewport(e.view.viewport) || this.view.viewport.to > r.treeLen) && this.scheduleWork(), (e.docChanged || e.selectionSet) && (this.view.hasFocus && (this.chunkBudget += 50), this.scheduleWork()), this.checkAsyncSchedule(r);
|
|
24046
24046
|
}
|
|
24047
24047
|
scheduleWork() {
|
|
24048
24048
|
if (this.working)
|
|
24049
24049
|
return;
|
|
24050
|
-
let { state: e } = this.view, r = e.field(
|
|
24050
|
+
let { state: e } = this.view, r = e.field(kn.state);
|
|
24051
24051
|
(r.tree != r.context.tree || !r.context.isDone(e.doc.length)) && (this.working = RE(this.work));
|
|
24052
24052
|
}
|
|
24053
24053
|
work(e) {
|
|
@@ -24055,14 +24055,14 @@ const Sd = typeof navigator < "u" && (!((xd = navigator.scheduling) === null ||
|
|
|
24055
24055
|
let r = Date.now();
|
|
24056
24056
|
if (this.chunkEnd < r && (this.chunkEnd < 0 || this.view.hasFocus) && (this.chunkEnd = r + 3e4, this.chunkBudget = 3e3), this.chunkBudget <= 0)
|
|
24057
24057
|
return;
|
|
24058
|
-
let { state: n, viewport: { to: i } } = this.view, a = n.field(
|
|
24058
|
+
let { state: n, viewport: { to: i } } = this.view, a = n.field(kn.state);
|
|
24059
24059
|
if (a.tree == a.context.tree && a.context.isDone(
|
|
24060
24060
|
i + 1e5
|
|
24061
24061
|
/* Work.MaxParseAhead */
|
|
24062
24062
|
))
|
|
24063
24063
|
return;
|
|
24064
24064
|
let o = Date.now() + Math.min(this.chunkBudget, 100, e && !Sd ? Math.max(25, e.timeRemaining() - 5) : 1e9), s = a.context.treeLen < i && n.doc.length > i + 1e3, l = a.context.work(() => Sd && Sd() || Date.now() > o, i + (s ? 0 : 1e5));
|
|
24065
|
-
this.chunkBudget -= Date.now() - r, (l || this.chunkBudget <= 0) && (a.context.takeTree(), this.view.dispatch({ effects:
|
|
24065
|
+
this.chunkBudget -= Date.now() - r, (l || this.chunkBudget <= 0) && (a.context.takeTree(), this.view.dispatch({ effects: kn.setState.of(new vo(a.context)) })), this.chunkBudget > 0 && !(l && !s) && this.scheduleWork(), this.checkAsyncSchedule(a.context);
|
|
24066
24066
|
}
|
|
24067
24067
|
checkAsyncSchedule(e) {
|
|
24068
24068
|
e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((r) => Nr(this.view.state, r)).then(() => this.workScheduled--), e.scheduleOn = null);
|
|
@@ -24082,7 +24082,7 @@ const Sd = typeof navigator < "u" && (!((xd = navigator.scheduling) === null ||
|
|
|
24082
24082
|
return t.length ? t[0] : null;
|
|
24083
24083
|
},
|
|
24084
24084
|
enables: (t) => [
|
|
24085
|
-
|
|
24085
|
+
kn.state,
|
|
24086
24086
|
RF,
|
|
24087
24087
|
Oe.contentAttributes.compute([t], (e) => {
|
|
24088
24088
|
let r = e.facet(t);
|
|
@@ -24515,7 +24515,7 @@ const GF = (t) => {
|
|
|
24515
24515
|
placeholderText: "…"
|
|
24516
24516
|
}, BE = /* @__PURE__ */ Pe.define({
|
|
24517
24517
|
combine(t) {
|
|
24518
|
-
return
|
|
24518
|
+
return Pn(t, ZF);
|
|
24519
24519
|
}
|
|
24520
24520
|
});
|
|
24521
24521
|
function qE(t) {
|
|
@@ -24531,12 +24531,12 @@ function VE(t, e) {
|
|
|
24531
24531
|
let a = document.createElement("span");
|
|
24532
24532
|
return a.textContent = n.placeholderText, a.setAttribute("aria-label", r.phrase("folded code")), a.title = r.phrase("unfold"), a.className = "cm-foldPlaceholder", a.onclick = i, a;
|
|
24533
24533
|
}
|
|
24534
|
-
const dy = /* @__PURE__ */ Xe.replace({ widget: /* @__PURE__ */ new class extends
|
|
24534
|
+
const dy = /* @__PURE__ */ Xe.replace({ widget: /* @__PURE__ */ new class extends Ln {
|
|
24535
24535
|
toDOM(t) {
|
|
24536
24536
|
return VE(t, null);
|
|
24537
24537
|
}
|
|
24538
24538
|
}() });
|
|
24539
|
-
class $F extends
|
|
24539
|
+
class $F extends Ln {
|
|
24540
24540
|
constructor(e) {
|
|
24541
24541
|
super(), this.value = e;
|
|
24542
24542
|
}
|
|
@@ -24636,7 +24636,7 @@ class Sl {
|
|
|
24636
24636
|
return (n || (n = /* @__PURE__ */ Object.create(null)))["." + l] = s, l;
|
|
24637
24637
|
}
|
|
24638
24638
|
const a = typeof r.all == "string" ? r.all : r.all ? i(r.all) : void 0, o = r.scope;
|
|
24639
|
-
this.scope = o instanceof
|
|
24639
|
+
this.scope = o instanceof kn ? (s) => s.prop(eo) == o.data : o ? (s) => s == o : void 0, this.style = DE(e.map((s) => ({
|
|
24640
24640
|
tag: s.tag,
|
|
24641
24641
|
class: s.class || i(Object.assign({}, s, { tag: null }))
|
|
24642
24642
|
})), {
|
|
@@ -24779,7 +24779,7 @@ const nU = /* @__PURE__ */ ia.high(/* @__PURE__ */ It.fromClass(rU, {
|
|
|
24779
24779
|
"&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
|
|
24780
24780
|
}), jE = 1e4, QE = "()[]{}", GE = /* @__PURE__ */ Pe.define({
|
|
24781
24781
|
combine(t) {
|
|
24782
|
-
return
|
|
24782
|
+
return Pn(t, {
|
|
24783
24783
|
afterCursor: !0,
|
|
24784
24784
|
brackets: QE,
|
|
24785
24785
|
maxScanDistance: jE,
|
|
@@ -25055,7 +25055,7 @@ function EU(t, e, r = e.selection.ranges) {
|
|
|
25055
25055
|
}
|
|
25056
25056
|
const Bg = /* @__PURE__ */ li.define(), wU = /* @__PURE__ */ li.define(), kU = /* @__PURE__ */ Pe.define(), KE = /* @__PURE__ */ Pe.define({
|
|
25057
25057
|
combine(t) {
|
|
25058
|
-
return
|
|
25058
|
+
return Pn(t, {
|
|
25059
25059
|
minDepth: 100,
|
|
25060
25060
|
newGroupDelay: 500,
|
|
25061
25061
|
joinToEvent: (e, r) => r
|
|
@@ -25256,25 +25256,25 @@ const MU = [
|
|
|
25256
25256
|
function Ro(t, e) {
|
|
25257
25257
|
return fe.create(t.ranges.map(e), t.mainIndex);
|
|
25258
25258
|
}
|
|
25259
|
-
function
|
|
25259
|
+
function In(t, e) {
|
|
25260
25260
|
return t.update({ selection: e, scrollIntoView: !0, userEvent: "select" });
|
|
25261
25261
|
}
|
|
25262
|
-
function
|
|
25262
|
+
function Mn({ state: t, dispatch: e }, r) {
|
|
25263
25263
|
let n = Ro(t.selection, r);
|
|
25264
|
-
return n.eq(t.selection, !0) ? !1 : (e(
|
|
25264
|
+
return n.eq(t.selection, !0) ? !1 : (e(In(t, n)), !0);
|
|
25265
25265
|
}
|
|
25266
25266
|
function dc(t, e) {
|
|
25267
25267
|
return fe.cursor(e ? t.to : t.from);
|
|
25268
25268
|
}
|
|
25269
25269
|
function tw(t, e) {
|
|
25270
|
-
return
|
|
25270
|
+
return Mn(t, (r) => r.empty ? t.moveByChar(r, e) : dc(r, e));
|
|
25271
25271
|
}
|
|
25272
25272
|
function Sr(t) {
|
|
25273
25273
|
return t.textDirectionAt(t.state.selection.main.head) == yt.LTR;
|
|
25274
25274
|
}
|
|
25275
25275
|
const rw = (t) => tw(t, !Sr(t)), nw = (t) => tw(t, Sr(t));
|
|
25276
25276
|
function iw(t, e) {
|
|
25277
|
-
return
|
|
25277
|
+
return Mn(t, (r) => r.empty ? t.moveByGroup(r, e) : dc(r, e));
|
|
25278
25278
|
}
|
|
25279
25279
|
const HU = (t) => iw(t, !Sr(t)), FU = (t) => iw(t, Sr(t));
|
|
25280
25280
|
function UU(t, e, r) {
|
|
@@ -25294,9 +25294,9 @@ function fc(t, e, r) {
|
|
|
25294
25294
|
let a = n.type.prop(i), o, s;
|
|
25295
25295
|
return a && (o = r ? Kn(t, n.from, 1) : Kn(t, n.to, -1)) && o.matched ? s = r ? o.end.to : o.end.from : s = r ? n.to : n.from, fe.cursor(s, r ? -1 : 1);
|
|
25296
25296
|
}
|
|
25297
|
-
const zU = (t) =>
|
|
25297
|
+
const zU = (t) => Mn(t, (e) => fc(t.state, e, !Sr(t))), BU = (t) => Mn(t, (e) => fc(t.state, e, Sr(t)));
|
|
25298
25298
|
function aw(t, e) {
|
|
25299
|
-
return
|
|
25299
|
+
return Mn(t, (r) => {
|
|
25300
25300
|
if (!r.empty)
|
|
25301
25301
|
return dc(r, e);
|
|
25302
25302
|
let n = t.moveVertically(r, e);
|
|
@@ -25330,7 +25330,7 @@ function Aw(t, e) {
|
|
|
25330
25330
|
let o = t.coordsAtPos(n.selection.main.head), s = t.scrollDOM.getBoundingClientRect(), l = s.top + r.marginTop, u = s.bottom - r.marginBottom;
|
|
25331
25331
|
o && o.top > l && o.bottom < u && (a = Oe.scrollIntoView(i.main.head, { y: "start", yMargin: o.top - l }));
|
|
25332
25332
|
}
|
|
25333
|
-
return t.dispatch(
|
|
25333
|
+
return t.dispatch(In(n, i), { effects: a }), !0;
|
|
25334
25334
|
}
|
|
25335
25335
|
const gy = (t) => Aw(t, !1), Vg = (t) => Aw(t, !0);
|
|
25336
25336
|
function aa(t, e, r) {
|
|
@@ -25341,7 +25341,7 @@ function aa(t, e, r) {
|
|
|
25341
25341
|
}
|
|
25342
25342
|
return i;
|
|
25343
25343
|
}
|
|
25344
|
-
const qU = (t) =>
|
|
25344
|
+
const qU = (t) => Mn(t, (e) => aa(t, e, !0)), VU = (t) => Mn(t, (e) => aa(t, e, !1)), WU = (t) => Mn(t, (e) => aa(t, e, !Sr(t))), XU = (t) => Mn(t, (e) => aa(t, e, Sr(t))), jU = (t) => Mn(t, (e) => fe.cursor(t.lineBlockAt(e.head).from, 1)), QU = (t) => Mn(t, (e) => fe.cursor(t.lineBlockAt(e.head).to, -1));
|
|
25345
25345
|
function GU(t, e, r) {
|
|
25346
25346
|
let n = !1, i = Ro(t.selection, (a) => {
|
|
25347
25347
|
let o = Kn(t, a.head, -1) || Kn(t, a.head, 1) || a.head > 0 && Kn(t, a.head - 1, 1) || a.head < t.doc.length && Kn(t, a.head + 1, -1);
|
|
@@ -25351,7 +25351,7 @@ function GU(t, e, r) {
|
|
|
25351
25351
|
let s = o.start.from == a.head ? o.end.to : o.end.from;
|
|
25352
25352
|
return fe.cursor(s);
|
|
25353
25353
|
});
|
|
25354
|
-
return n ? (e(
|
|
25354
|
+
return n ? (e(In(t, i)), !0) : !1;
|
|
25355
25355
|
}
|
|
25356
25356
|
const YU = ({ state: t, dispatch: e }) => GU(t, e);
|
|
25357
25357
|
function yn(t, e) {
|
|
@@ -25359,7 +25359,7 @@ function yn(t, e) {
|
|
|
25359
25359
|
let i = e(n);
|
|
25360
25360
|
return fe.range(n.anchor, i.head, i.goalColumn, i.bidiLevel || void 0);
|
|
25361
25361
|
});
|
|
25362
|
-
return r.eq(t.state.selection) ? !1 : (t.dispatch(
|
|
25362
|
+
return r.eq(t.state.selection) ? !1 : (t.dispatch(In(t.state, r)), !0);
|
|
25363
25363
|
}
|
|
25364
25364
|
function uw(t, e) {
|
|
25365
25365
|
return yn(t, (r) => t.moveByChar(r, e));
|
|
@@ -25376,7 +25376,7 @@ const hw = (t) => pw(t, !1), mw = (t) => pw(t, !0);
|
|
|
25376
25376
|
function gw(t, e) {
|
|
25377
25377
|
return yn(t, (r) => t.moveVertically(r, e, lw(t).height));
|
|
25378
25378
|
}
|
|
25379
|
-
const by = (t) => gw(t, !1), _y = (t) => gw(t, !0), ez = (t) => yn(t, (e) => aa(t, e, !0)), tz = (t) => yn(t, (e) => aa(t, e, !1)), rz = (t) => yn(t, (e) => aa(t, e, !Sr(t))), nz = (t) => yn(t, (e) => aa(t, e, Sr(t))), iz = (t) => yn(t, (e) => fe.cursor(t.lineBlockAt(e.head).from)), az = (t) => yn(t, (e) => fe.cursor(t.lineBlockAt(e.head).to)), yy = ({ state: t, dispatch: e }) => (e(
|
|
25379
|
+
const by = (t) => gw(t, !1), _y = (t) => gw(t, !0), ez = (t) => yn(t, (e) => aa(t, e, !0)), tz = (t) => yn(t, (e) => aa(t, e, !1)), rz = (t) => yn(t, (e) => aa(t, e, !Sr(t))), nz = (t) => yn(t, (e) => aa(t, e, Sr(t))), iz = (t) => yn(t, (e) => fe.cursor(t.lineBlockAt(e.head).from)), az = (t) => yn(t, (e) => fe.cursor(t.lineBlockAt(e.head).to)), yy = ({ state: t, dispatch: e }) => (e(In(t, { anchor: 0 })), !0), vy = ({ state: t, dispatch: e }) => (e(In(t, { anchor: t.doc.length })), !0), xy = ({ state: t, dispatch: e }) => (e(In(t, { anchor: t.selection.main.anchor, head: 0 })), !0), Sy = ({ state: t, dispatch: e }) => (e(In(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), oz = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), sz = ({ state: t, dispatch: e }) => {
|
|
25380
25380
|
let r = pc(t).map(({ from: n, to: i }) => fe.range(n, Math.min(i + 1, t.doc.length)));
|
|
25381
25381
|
return e(t.update({ selection: fe.create(r), userEvent: "select" })), !0;
|
|
25382
25382
|
}, lz = ({ state: t, dispatch: e }) => {
|
|
@@ -25393,7 +25393,7 @@ const by = (t) => gw(t, !1), _y = (t) => gw(t, !0), ez = (t) => yn(t, (e) => aa(
|
|
|
25393
25393
|
}
|
|
25394
25394
|
return n;
|
|
25395
25395
|
});
|
|
25396
|
-
return r.eq(t.selection) ? !1 : (e(
|
|
25396
|
+
return r.eq(t.selection) ? !1 : (e(In(t, r)), !0);
|
|
25397
25397
|
};
|
|
25398
25398
|
function bw(t, e) {
|
|
25399
25399
|
let { state: r } = t, n = r.selection, i = r.selection.ranges.slice();
|
|
@@ -25412,11 +25412,11 @@ function bw(t, e) {
|
|
|
25412
25412
|
}
|
|
25413
25413
|
}
|
|
25414
25414
|
}
|
|
25415
|
-
return i.length == n.ranges.length ? !1 : (t.dispatch(
|
|
25415
|
+
return i.length == n.ranges.length ? !1 : (t.dispatch(In(r, fe.create(i, i.length - 1))), !0);
|
|
25416
25416
|
}
|
|
25417
25417
|
const Az = (t) => bw(t, !1), uz = (t) => bw(t, !0), cz = ({ state: t, dispatch: e }) => {
|
|
25418
25418
|
let r = t.selection, n = null;
|
|
25419
|
-
return r.ranges.length > 1 ? n = fe.create([r.main]) : r.main.empty || (n = fe.create([fe.cursor(r.main.head)])), n ? (e(
|
|
25419
|
+
return r.ranges.length > 1 ? n = fe.create([r.main]) : r.main.empty || (n = fe.create([fe.cursor(r.main.head)])), n ? (e(In(t, n)), !0) : !1;
|
|
25420
25420
|
};
|
|
25421
25421
|
function El(t, e) {
|
|
25422
25422
|
if (t.state.readOnly)
|
|
@@ -25901,7 +25901,7 @@ const Rz = (t) => {
|
|
|
25901
25901
|
wholeWords: !1
|
|
25902
25902
|
}, Lz = /* @__PURE__ */ Pe.define({
|
|
25903
25903
|
combine(t) {
|
|
25904
|
-
return
|
|
25904
|
+
return Pn(t, Pz, {
|
|
25905
25905
|
highlightWordAroundCursor: (e, r) => e || r,
|
|
25906
25906
|
minSelectionLength: Math.min,
|
|
25907
25907
|
maxMatches: Math.min
|
|
@@ -25999,7 +25999,7 @@ const Vz = ({ state: t, dispatch: e }) => {
|
|
|
25999
25999
|
})), !0) : !1;
|
|
26000
26000
|
}, Po = /* @__PURE__ */ Pe.define({
|
|
26001
26001
|
combine(t) {
|
|
26002
|
-
return
|
|
26002
|
+
return Pn(t, {
|
|
26003
26003
|
top: !1,
|
|
26004
26004
|
caseSensitive: !1,
|
|
26005
26005
|
literal: !1,
|
|
@@ -26717,7 +26717,7 @@ class cB {
|
|
|
26717
26717
|
}
|
|
26718
26718
|
const Ar = /* @__PURE__ */ Pe.define({
|
|
26719
26719
|
combine(t) {
|
|
26720
|
-
return
|
|
26720
|
+
return Pn(t, {
|
|
26721
26721
|
activateOnTyping: !0,
|
|
26722
26722
|
activateOnCompletion: () => !1,
|
|
26723
26723
|
activateOnTypingDelay: 100,
|
|
@@ -27536,7 +27536,7 @@ class O2 {
|
|
|
27536
27536
|
return new O2(n, i);
|
|
27537
27537
|
}
|
|
27538
27538
|
}
|
|
27539
|
-
let PB = /* @__PURE__ */ Xe.widget({ widget: /* @__PURE__ */ new class extends
|
|
27539
|
+
let PB = /* @__PURE__ */ Xe.widget({ widget: /* @__PURE__ */ new class extends Ln {
|
|
27540
27540
|
toDOM() {
|
|
27541
27541
|
let t = document.createElement("span");
|
|
27542
27542
|
return t.className = "cm-snippetFieldPosition", t;
|
|
@@ -28062,7 +28062,7 @@ const $n = /* @__PURE__ */ Pe.define({
|
|
|
28062
28062
|
combine(t) {
|
|
28063
28063
|
return {
|
|
28064
28064
|
sources: t.map((e) => e.source).filter((e) => e != null),
|
|
28065
|
-
...
|
|
28065
|
+
...Pn(t.map((e) => e.config), {
|
|
28066
28066
|
delay: 750,
|
|
28067
28067
|
markerFilter: null,
|
|
28068
28068
|
tooltipFilter: null,
|
|
@@ -28128,7 +28128,7 @@ function ek(t, e, r) {
|
|
|
28128
28128
|
}, d);
|
|
28129
28129
|
}), e.source && bt("div", { class: "cm-diagnosticSource" }, e.source));
|
|
28130
28130
|
}
|
|
28131
|
-
class uq extends
|
|
28131
|
+
class uq extends Ln {
|
|
28132
28132
|
constructor(e) {
|
|
28133
28133
|
super(), this.sev = e;
|
|
28134
28134
|
}
|
|
@@ -28486,7 +28486,7 @@ const mq = /* @__PURE__ */ xE({
|
|
|
28486
28486
|
cq
|
|
28487
28487
|
], gc = /* @__PURE__ */ Pe.define({
|
|
28488
28488
|
combine(t) {
|
|
28489
|
-
return
|
|
28489
|
+
return Pn(t, {
|
|
28490
28490
|
hoverTime: 300,
|
|
28491
28491
|
markerFilter: null,
|
|
28492
28492
|
tooltipFilter: null
|
|
@@ -31182,7 +31182,7 @@ const CW = ({
|
|
|
31182
31182
|
return /* @__PURE__ */ A(TS, { handle: F, className: "h-full", children: /* @__PURE__ */ T(
|
|
31183
31183
|
"div",
|
|
31184
31184
|
{
|
|
31185
|
-
className:
|
|
31185
|
+
className: xn(
|
|
31186
31186
|
"relative border border-neutral-200 dark:border-neutral-700 rounded-lg h-full overflow-hidden",
|
|
31187
31187
|
d
|
|
31188
31188
|
),
|
|
@@ -31471,7 +31471,7 @@ const Wue = ({
|
|
|
31471
31471
|
}
|
|
31472
31472
|
) })
|
|
31473
31473
|
}
|
|
31474
|
-
), jue = ({ title: t, visible: e, onClose: r, content: n }) => /* @__PURE__ */ T(
|
|
31474
|
+
), jue = ({ title: t, visible: e, onClose: r, content: n }) => /* @__PURE__ */ T(Rn, { title: null, open: e, footer: null, onCancel: r, zIndex: 9999, showCloseButton: !1, width: 400, children: [
|
|
31475
31475
|
/* @__PURE__ */ T("div", { children: [
|
|
31476
31476
|
/* @__PURE__ */ A("div", { className: "flex justify-center", children: /* @__PURE__ */ A("div", { className: "flex w-[48px] h-[48px] justify-center items-center gap-2 rounded-lg border border-[#54A4EC] shadow-[0_0_4px_2px_rgba(198,225,249,0.20)_inset]", children: /* @__PURE__ */ A(DW, {}) }) }),
|
|
31477
31477
|
/* @__PURE__ */ A(oe, { size: "medium", variant: "semibold", className: "text-center mt-3", children: t }),
|
|
@@ -31506,12 +31506,12 @@ const Wue = ({
|
|
|
31506
31506
|
] }),
|
|
31507
31507
|
[i, n, r, a, l, u, c]
|
|
31508
31508
|
);
|
|
31509
|
-
return t ? /* @__PURE__ */ A(
|
|
31509
|
+
return t ? /* @__PURE__ */ A(Rn, { title: o, open: t, footer: d, onCancel: e, zIndex: 9999, children: /* @__PURE__ */ A("div", { className: "my-5", children: /* @__PURE__ */ A("div", { className: "text-neutral-400 font-inter text-base", children: s }) }) }) : null;
|
|
31510
31510
|
}, Yue = ({ visible: t, onClose: e, content: r = "", title: n = "Error", okText: i = "OK" }) => {
|
|
31511
31511
|
const a = () => {
|
|
31512
31512
|
e();
|
|
31513
31513
|
};
|
|
31514
|
-
return /* @__PURE__ */ A(
|
|
31514
|
+
return /* @__PURE__ */ A(Rn, { asForm: !0, title: n, open: t, onCancel: a, footer: /* @__PURE__ */ A("div", { className: "flex justify-end", children: /* @__PURE__ */ A(wt, { id: "btn-error-modal-submit-ok", status: "primary", onClick: a, type: "submit", children: i }) }), children: /* @__PURE__ */ A("div", { className: "text-neutral-400 text-base font-inter", children: r }) });
|
|
31515
31515
|
}, Kue = ({
|
|
31516
31516
|
visible: t,
|
|
31517
31517
|
onClose: e,
|
|
@@ -31582,7 +31582,7 @@ const Wue = ({
|
|
|
31582
31582
|
}, E = () => {
|
|
31583
31583
|
p || e();
|
|
31584
31584
|
};
|
|
31585
|
-
return /* @__PURE__ */ A(
|
|
31585
|
+
return /* @__PURE__ */ A(Rn, { asForm: !0, title: u, open: t, onCancel: E, footer: /* @__PURE__ */ T("div", { className: "flex justify-end gap-2 sm:mt-0 mt-20", children: [
|
|
31586
31586
|
/* @__PURE__ */ A(
|
|
31587
31587
|
wt,
|
|
31588
31588
|
{
|
|
@@ -31935,7 +31935,7 @@ const _k = 500, HW = ({
|
|
|
31935
31935
|
/* @__PURE__ */ T(
|
|
31936
31936
|
"div",
|
|
31937
31937
|
{
|
|
31938
|
-
className:
|
|
31938
|
+
className: xn(
|
|
31939
31939
|
"relative h-[calc(100vh-56px)] overflow-y-auto flex flex-col bg-primary-800 dark:bg-black-800",
|
|
31940
31940
|
`ease-in-out duration-${_k}`,
|
|
31941
31941
|
a
|
|
@@ -31951,7 +31951,7 @@ const _k = 500, HW = ({
|
|
|
31951
31951
|
/* @__PURE__ */ A(
|
|
31952
31952
|
"div",
|
|
31953
31953
|
{
|
|
31954
|
-
className:
|
|
31954
|
+
className: xn(
|
|
31955
31955
|
"flex-1 overflow-y-auto overflow-x-hidden bg-gray-50 dark:bg-black-700",
|
|
31956
31956
|
i ? "p-0" : "p-4",
|
|
31957
31957
|
d ? "rounded-tl-none" : "!rounded-tl-xl",
|
|
@@ -32457,13 +32457,13 @@ var dn = function(t, e) {
|
|
|
32457
32457
|
easeInOutQuint: nX
|
|
32458
32458
|
}, vk = function(t) {
|
|
32459
32459
|
typeof t == "number" && cancelAnimationFrame(t);
|
|
32460
|
-
},
|
|
32460
|
+
}, Sn = function(t) {
|
|
32461
32461
|
t.mounted && (vk(t.animation), t.animate = !1, t.animation = null, t.velocity = null);
|
|
32462
32462
|
};
|
|
32463
32463
|
function xk(t, e, r, n) {
|
|
32464
32464
|
if (t.mounted) {
|
|
32465
32465
|
var i = (/* @__PURE__ */ new Date()).getTime(), a = 1;
|
|
32466
|
-
|
|
32466
|
+
Sn(t), t.animation = function() {
|
|
32467
32467
|
if (!t.mounted)
|
|
32468
32468
|
return vk(t.animation);
|
|
32469
32469
|
var o = (/* @__PURE__ */ new Date()).getTime() - i, s = o / r, l = yk[e], u = l(s);
|
|
@@ -32631,7 +32631,7 @@ function mX(t) {
|
|
|
32631
32631
|
}
|
|
32632
32632
|
function hv(t, e) {
|
|
32633
32633
|
var r = t.transformState.scale;
|
|
32634
|
-
|
|
32634
|
+
Sn(t), xa(t, r), window.TouchEvent !== void 0 && e instanceof TouchEvent ? lX(t, e) : sX(t, e);
|
|
32635
32635
|
}
|
|
32636
32636
|
function M2(t, e) {
|
|
32637
32637
|
var r = t.transformState.scale, n = t.setup, i = n.minScale, a = n.alignmentAnimation, o = a.disabled, s = a.sizeX, l = a.sizeY, u = a.animationTime, c = a.animationType, d = o || r < i || !s && !l;
|
|
@@ -32849,7 +32849,7 @@ var yX = function(t) {
|
|
|
32849
32849
|
};
|
|
32850
32850
|
}, wX = function(t) {
|
|
32851
32851
|
return function(e, r, n, i) {
|
|
32852
|
-
n === void 0 && (n = 600), i === void 0 && (i = "easeOut"),
|
|
32852
|
+
n === void 0 && (n = 600), i === void 0 && (i = "easeOut"), Sn(t);
|
|
32853
32853
|
var a = t.wrapperComponent, o = typeof e == "string" ? document.getElementById(e) : e;
|
|
32854
32854
|
if (a && o && a.contains(o)) {
|
|
32855
32855
|
var s = _X(t, o, r);
|
|
@@ -32972,7 +32972,7 @@ var RX = function(t, e, r, n, i) {
|
|
|
32972
32972
|
return Ol(dn(f, 2), o, a, u, !c && !l);
|
|
32973
32973
|
}, FX = 160, UX = 100, zX = function(t, e) {
|
|
32974
32974
|
var r = t.props, n = r.onWheelStart, i = r.onZoomStart;
|
|
32975
|
-
t.wheelStopEventTimer || (
|
|
32975
|
+
t.wheelStopEventTimer || (Sn(t), Dt(St(t), e, n), Dt(St(t), e, i));
|
|
32976
32976
|
}, BX = function(t, e) {
|
|
32977
32977
|
var r = t.props, n = r.onWheel, i = r.onZoom, a = t.contentComponent, o = t.setup, s = t.transformState, l = s.scale, u = o.limitToBounds, c = o.centerZoomedOut, d = o.zoomAnimation, f = o.wheel, p = o.disablePadding, h = o.smooth, m = d.size, y = d.disabled, g = f.step, _ = f.smoothStep;
|
|
32978
32978
|
if (!a)
|
|
@@ -33001,7 +33001,7 @@ var RX = function(t, e, r, n, i) {
|
|
|
33001
33001
|
var r = Dk(e);
|
|
33002
33002
|
t.pinchStartDistance = r, t.lastDistance = r, t.pinchStartScale = t.transformState.scale, t.isPanning = !1;
|
|
33003
33003
|
var n = Rk(e);
|
|
33004
|
-
t.pinchLastCenterX = n.x, t.pinchLastCenterY = n.y,
|
|
33004
|
+
t.pinchLastCenterX = n.x, t.pinchLastCenterY = n.y, Sn(t);
|
|
33005
33005
|
}, WX = function(t, e) {
|
|
33006
33006
|
var r = t.contentComponent, n = t.pinchStartDistance, i = t.wrapperComponent, a = t.transformState.scale, o = t.setup, s = o.limitToBounds, l = o.centerZoomedOut, u = o.zoomAnimation, c = o.alignmentAnimation, d = u.disabled, f = u.size;
|
|
33007
33007
|
if (!(n === null || !r)) {
|
|
@@ -33073,7 +33073,7 @@ var YX = function(t, e) {
|
|
|
33073
33073
|
(i = r.wrapperComponent) === null || i === void 0 || i.addEventListener("wheel", r.onWheelPanning, a), s?.addEventListener("mousedown", r.onPanningStart, a), s?.addEventListener("mousemove", r.onPanning, a), s?.addEventListener("mouseup", r.onPanningStop, a), o?.addEventListener("mouseleave", r.clearPanning, a), s?.addEventListener("keyup", r.setKeyUnPressed, a), s?.addEventListener("keydown", r.setKeyPressed, a);
|
|
33074
33074
|
}, this.cleanupWindowEvents = function() {
|
|
33075
33075
|
var n, i, a = Wd(), o = (n = r.wrapperComponent) === null || n === void 0 ? void 0 : n.ownerDocument, s = o?.defaultView;
|
|
33076
|
-
s?.removeEventListener("mousedown", r.onPanningStart, a), s?.removeEventListener("mousemove", r.onPanning, a), s?.removeEventListener("mouseup", r.onPanningStop, a), o?.removeEventListener("mouseleave", r.clearPanning, a), s?.removeEventListener("keyup", r.setKeyUnPressed, a), s?.removeEventListener("keydown", r.setKeyPressed, a), document.removeEventListener("mouseleave", r.clearPanning, a),
|
|
33076
|
+
s?.removeEventListener("mousedown", r.onPanningStart, a), s?.removeEventListener("mousemove", r.onPanning, a), s?.removeEventListener("mouseup", r.onPanningStop, a), o?.removeEventListener("mouseleave", r.clearPanning, a), s?.removeEventListener("keyup", r.setKeyUnPressed, a), s?.removeEventListener("keydown", r.setKeyPressed, a), document.removeEventListener("mouseleave", r.clearPanning, a), Sn(r), (i = r.observer) === null || i === void 0 || i.disconnect();
|
|
33077
33077
|
}, this.handleInitializeWrapperEvents = function(n) {
|
|
33078
33078
|
var i = Wd();
|
|
33079
33079
|
n.addEventListener("wheel", r.onWheelZoom, i), n.addEventListener("dblclick", r.onDoubleClick, i), n.addEventListener("touchstart", r.onTouchPanningStart, i), n.addEventListener("touchmove", r.onTouchPanning, i), n.addEventListener("touchend", r.onTouchPanningStop, i);
|
|
@@ -33094,7 +33094,7 @@ var YX = function(t, e) {
|
|
|
33094
33094
|
var u = i.offsetWidth, c = i.offsetHeight;
|
|
33095
33095
|
(u > 0 || c > 0) && (a = !0, r.setCenter());
|
|
33096
33096
|
} else
|
|
33097
|
-
|
|
33097
|
+
Sn(r), xa(r, r.transformState.scale), M2(r, 0);
|
|
33098
33098
|
}), r.observer.observe(n), r.observer.observe(i);
|
|
33099
33099
|
}, this.onWheelZoom = function(n) {
|
|
33100
33100
|
var i = r.setup.disabled;
|
|
@@ -33118,7 +33118,7 @@ var YX = function(t, e) {
|
|
|
33118
33118
|
var o = dv(r, n);
|
|
33119
33119
|
if (o) {
|
|
33120
33120
|
var s = r.isPressingKeys(r.setup.panning.activationKeys);
|
|
33121
|
-
s && (n.button === 0 && !r.setup.panning.allowLeftClickPan || n.button === 1 && !r.setup.panning.allowMiddleClickPan || n.button === 2 && !r.setup.panning.allowRightClickPan || (n.preventDefault(), n.stopPropagation(),
|
|
33121
|
+
s && (n.button === 0 && !r.setup.panning.allowLeftClickPan || n.button === 1 && !r.setup.panning.allowMiddleClickPan || n.button === 2 && !r.setup.panning.allowRightClickPan || (n.preventDefault(), n.stopPropagation(), Sn(r), hv(r, n), Dt(St(r), n, a)));
|
|
33122
33122
|
}
|
|
33123
33123
|
}
|
|
33124
33124
|
}, this.onPanning = function(n) {
|
|
@@ -33137,7 +33137,7 @@ var YX = function(t, e) {
|
|
|
33137
33137
|
var i = r.setup.disabled, a = r.props, o = a.onPinchingStart, s = a.onZoomStart;
|
|
33138
33138
|
if (!i) {
|
|
33139
33139
|
var l = LX(r, n);
|
|
33140
|
-
l && (VX(r, n),
|
|
33140
|
+
l && (VX(r, n), Sn(r), Dt(St(r), n, o), Dt(St(r), n, s));
|
|
33141
33141
|
}
|
|
33142
33142
|
}, this.onPinch = function(n) {
|
|
33143
33143
|
var i = r.setup.disabled, a = r.props, o = a.onPinching, s = a.onZoom;
|
|
@@ -33155,9 +33155,9 @@ var YX = function(t, e) {
|
|
|
33155
33155
|
if (o) {
|
|
33156
33156
|
var s = r.lastTouch && +/* @__PURE__ */ new Date() - r.lastTouch < 200 && n.touches.length === 1;
|
|
33157
33157
|
if (!s) {
|
|
33158
|
-
r.lastTouch = +/* @__PURE__ */ new Date(),
|
|
33158
|
+
r.lastTouch = +/* @__PURE__ */ new Date(), Sn(r);
|
|
33159
33159
|
var l = n.touches, u = l.length === 1, c = l.length === 2;
|
|
33160
|
-
u && (
|
|
33160
|
+
u && (Sn(r), hv(r, n), Dt(St(r), n, a)), c && r.onPinchStart(n);
|
|
33161
33161
|
}
|
|
33162
33162
|
}
|
|
33163
33163
|
}
|
|
@@ -33644,7 +33644,7 @@ const yv = (t, e) => {
|
|
|
33644
33644
|
"div",
|
|
33645
33645
|
{
|
|
33646
33646
|
"data-key": l,
|
|
33647
|
-
className:
|
|
33647
|
+
className: xn("grid", o.className),
|
|
33648
33648
|
style: {
|
|
33649
33649
|
gap: u,
|
|
33650
33650
|
margin: yv(o.margin || []).margin,
|
|
@@ -35344,7 +35344,7 @@ const Hj = ({
|
|
|
35344
35344
|
return /* @__PURE__ */ T("div", { className: `w-full flex ${a}`, ref: c, children: [
|
|
35345
35345
|
p > 0 ? /* @__PURE__ */ T("div", { className: `flex ${r === "parallel" ? "flex-col" : ""}`, children: [
|
|
35346
35346
|
i ? /* @__PURE__ */ A(
|
|
35347
|
-
|
|
35347
|
+
Tn,
|
|
35348
35348
|
{
|
|
35349
35349
|
menu: {
|
|
35350
35350
|
items: t.slice(0, p).map((k, O) => ({
|
|
@@ -35385,7 +35385,7 @@ const Hj = ({
|
|
|
35385
35385
|
/* @__PURE__ */ A("div", { className: "w-full flex flex-wrap gap-3 ", children: t?.map((k, O) => p <= O && O < m ? w(k, O) : null) }),
|
|
35386
35386
|
t.length - m > 0 ? /* @__PURE__ */ T("div", { className: "flex flex-col", children: [
|
|
35387
35387
|
i ? /* @__PURE__ */ A(
|
|
35388
|
-
|
|
35388
|
+
Tn,
|
|
35389
35389
|
{
|
|
35390
35390
|
menu: {
|
|
35391
35391
|
items: t.slice(m, t?.length).map((k, O) => ({
|
|
@@ -35450,7 +35450,7 @@ const Vk = ({
|
|
|
35450
35450
|
t || f(l);
|
|
35451
35451
|
}, [l, t]), /* @__PURE__ */ T(st, { children: [
|
|
35452
35452
|
/* @__PURE__ */ A(
|
|
35453
|
-
|
|
35453
|
+
Rn,
|
|
35454
35454
|
{
|
|
35455
35455
|
asForm: !0,
|
|
35456
35456
|
width: s,
|
|
@@ -41462,11 +41462,11 @@ const Gd = (t) => {
|
|
|
41462
41462
|
Se(le), N?.(le), L && I?.persistTabSettings && I.persistTabSettings({ tab_type: L, tab_options: le });
|
|
41463
41463
|
},
|
|
41464
41464
|
[N, L, I]
|
|
41465
|
-
),
|
|
41465
|
+
), Fn = (le) => le.is_pinned ? 32 : 0, ir = ue(
|
|
41466
41466
|
(le) => {
|
|
41467
41467
|
if (!le) return;
|
|
41468
41468
|
const He = l ? 30 : 0, Ge = qe ? 190 : 84, Tt = o === "sm" ? 4 : 8, Ot = 32;
|
|
41469
|
-
let _r = 0,
|
|
41469
|
+
let _r = 0, Un = 0, yr = 0;
|
|
41470
41470
|
const kr = le - (k?.width || 0) - He, qo = ye.current, Pi = qo < Ke.length, Ul = ot.length > 0;
|
|
41471
41471
|
for (let Tr = 0; Tr < Ke.length; Tr++) {
|
|
41472
41472
|
const Or = Ke[Tr], Qr = i?.[Or.name] ? String(i?.[Or.name]) : "", za = qe && Qr ? Me(Qr, {
|
|
@@ -41477,8 +41477,8 @@ const Gd = (t) => {
|
|
|
41477
41477
|
fontSize: "16px",
|
|
41478
41478
|
fontWeight: "600",
|
|
41479
41479
|
fontFamily: "Inter, system-ui, -apple-system, sans-serif"
|
|
41480
|
-
}), Ba = E ?
|
|
41481
|
-
if (Or.name === r && (
|
|
41480
|
+
}), Ba = E ? Fn(Or) : 0, Wo = Vo + za + Ot + Tt + Ba;
|
|
41481
|
+
if (Or.name === r && (Un = Wo), _r += Wo, kr > _r + (Pi || Ul ? Ge : 0) + Tr * 25)
|
|
41482
41482
|
yr = Tr + 1;
|
|
41483
41483
|
else
|
|
41484
41484
|
break;
|
|
@@ -41495,12 +41495,12 @@ const Gd = (t) => {
|
|
|
41495
41495
|
fontSize: "16px",
|
|
41496
41496
|
fontWeight: "600",
|
|
41497
41497
|
fontFamily: "Inter, system-ui, -apple-system, sans-serif"
|
|
41498
|
-
}), Vo = E ?
|
|
41498
|
+
}), Vo = E ? Fn(Tr) : 0, Ba = za + Qr + Ot + Tt + Vo;
|
|
41499
41499
|
kr >= _r + Ba && (yr += 1);
|
|
41500
41500
|
}
|
|
41501
41501
|
}
|
|
41502
41502
|
const Bl = u ? Ke.length : yr;
|
|
41503
|
-
Ke.findIndex((Tr) => Tr.name === r) >= Bl && (_r +=
|
|
41503
|
+
Ke.findIndex((Tr) => Tr.name === r) >= Bl && (_r += Un, kr < _r + (Pi || Ul ? Ge : 0) && (yr = Math.max(yr - 1, 0))), yr !== qo && ie(yr);
|
|
41504
41504
|
},
|
|
41505
41505
|
[
|
|
41506
41506
|
Ke,
|
|
@@ -41697,9 +41697,9 @@ const Gd = (t) => {
|
|
|
41697
41697
|
key: Jt.DELETE,
|
|
41698
41698
|
onClick: () => x?.(le)
|
|
41699
41699
|
}
|
|
41700
|
-
],
|
|
41700
|
+
], Un = [Jt.HIDE, Jt.UNHIDE], yr = [Jt.SELECT, Jt.MOVE_LEFT, Jt.MOVE_RIGHT, Jt.UNHIDE];
|
|
41701
41701
|
return _r.filter(
|
|
41702
|
-
(kr) => He ? kr.key === Jt.UNHIDE : Ge ? !
|
|
41702
|
+
(kr) => He ? kr.key === Jt.UNHIDE : Ge ? !Un.includes(kr.key) : !yr.includes(kr.key)
|
|
41703
41703
|
).filter((kr) => Ft ? !0 : kr.key !== Jt.COPY_LINK).filter((kr) => Ke.length === 1 ? kr.key !== Jt.HIDE : !0);
|
|
41704
41704
|
}, Ri = (le, He) => ({
|
|
41705
41705
|
classValue: {
|
|
@@ -41860,7 +41860,7 @@ const Gd = (t) => {
|
|
|
41860
41860
|
textClassValue: Ri("textClassValue", Ge),
|
|
41861
41861
|
isSelected: Ge,
|
|
41862
41862
|
tabOptions: Ge && l ? /* @__PURE__ */ A(
|
|
41863
|
-
|
|
41863
|
+
Tn,
|
|
41864
41864
|
{
|
|
41865
41865
|
menu: {
|
|
41866
41866
|
items: Bo(le),
|
|
@@ -41908,7 +41908,7 @@ const Gd = (t) => {
|
|
|
41908
41908
|
textClassValue: Ri("textClassValue", !0),
|
|
41909
41909
|
isSelected: !0,
|
|
41910
41910
|
tabOptions: l ? /* @__PURE__ */ A(
|
|
41911
|
-
|
|
41911
|
+
Tn,
|
|
41912
41912
|
{
|
|
41913
41913
|
menu: {
|
|
41914
41914
|
items: Bo(r),
|
|
@@ -41931,7 +41931,7 @@ const Gd = (t) => {
|
|
|
41931
41931
|
}
|
|
41932
41932
|
) }, r) }, r) : null,
|
|
41933
41933
|
(K < Ke.length && !u || ot.length > 0) && Ye > 0 ? /* @__PURE__ */ A(MY, { id: "more-tabs", children: /* @__PURE__ */ A(
|
|
41934
|
-
|
|
41934
|
+
Tn,
|
|
41935
41935
|
{
|
|
41936
41936
|
overlayStyle: {
|
|
41937
41937
|
maxHeight: "calc(100vh - 350px)",
|
|
@@ -46709,11 +46709,11 @@ class iZ {
|
|
|
46709
46709
|
}
|
|
46710
46710
|
}
|
|
46711
46711
|
const Kd = 3;
|
|
46712
|
-
var
|
|
46712
|
+
var Wn;
|
|
46713
46713
|
(function(t) {
|
|
46714
46714
|
t[t.Marker = 0] = "Marker", t[t.Element = 1] = "Element";
|
|
46715
|
-
})(
|
|
46716
|
-
const n5 = { type:
|
|
46715
|
+
})(Wn || (Wn = {}));
|
|
46716
|
+
const n5 = { type: Wn.Marker };
|
|
46717
46717
|
class aZ {
|
|
46718
46718
|
constructor(e) {
|
|
46719
46719
|
this.treeAdapter = e, this.entries = [], this.bookmark = null;
|
|
@@ -46725,7 +46725,7 @@ class aZ {
|
|
|
46725
46725
|
const n = [], i = r.length, a = this.treeAdapter.getTagName(e), o = this.treeAdapter.getNamespaceURI(e);
|
|
46726
46726
|
for (let s = 0; s < this.entries.length; s++) {
|
|
46727
46727
|
const l = this.entries[s];
|
|
46728
|
-
if (l.type ===
|
|
46728
|
+
if (l.type === Wn.Marker)
|
|
46729
46729
|
break;
|
|
46730
46730
|
const { element: u } = l;
|
|
46731
46731
|
if (this.treeAdapter.getTagName(u) === a && this.treeAdapter.getNamespaceURI(u) === o) {
|
|
@@ -46754,7 +46754,7 @@ class aZ {
|
|
|
46754
46754
|
}
|
|
46755
46755
|
pushElement(e, r) {
|
|
46756
46756
|
this._ensureNoahArkCondition(e), this.entries.unshift({
|
|
46757
|
-
type:
|
|
46757
|
+
type: Wn.Element,
|
|
46758
46758
|
element: e,
|
|
46759
46759
|
token: r
|
|
46760
46760
|
});
|
|
@@ -46762,7 +46762,7 @@ class aZ {
|
|
|
46762
46762
|
insertElementAfterBookmark(e, r) {
|
|
46763
46763
|
const n = this.entries.indexOf(this.bookmark);
|
|
46764
46764
|
this.entries.splice(n, 0, {
|
|
46765
|
-
type:
|
|
46765
|
+
type: Wn.Element,
|
|
46766
46766
|
element: e,
|
|
46767
46767
|
token: r
|
|
46768
46768
|
});
|
|
@@ -46782,11 +46782,11 @@ class aZ {
|
|
|
46782
46782
|
}
|
|
46783
46783
|
//Search
|
|
46784
46784
|
getElementEntryInScopeWithTagName(e) {
|
|
46785
|
-
const r = this.entries.find((n) => n.type ===
|
|
46786
|
-
return r && r.type ===
|
|
46785
|
+
const r = this.entries.find((n) => n.type === Wn.Marker || this.treeAdapter.getTagName(n.element) === e);
|
|
46786
|
+
return r && r.type === Wn.Element ? r : null;
|
|
46787
46787
|
}
|
|
46788
46788
|
getElementEntry(e) {
|
|
46789
|
-
return this.entries.find((r) => r.type ===
|
|
46789
|
+
return this.entries.find((r) => r.type === Wn.Element && r.element === e);
|
|
46790
46790
|
}
|
|
46791
46791
|
}
|
|
46792
46792
|
const Mi = {
|
|
@@ -47522,7 +47522,7 @@ class s5 {
|
|
|
47522
47522
|
_reconstructActiveFormattingElements() {
|
|
47523
47523
|
const e = this.activeFormattingElements.entries.length;
|
|
47524
47524
|
if (e) {
|
|
47525
|
-
const r = this.activeFormattingElements.entries.findIndex((i) => i.type ===
|
|
47525
|
+
const r = this.activeFormattingElements.entries.findIndex((i) => i.type === Wn.Marker || this.openElements.contains(i.element)), n = r === -1 ? e - 1 : r - 1;
|
|
47526
47526
|
for (let i = n; i >= 0; i--) {
|
|
47527
47527
|
const a = this.activeFormattingElements.entries[i];
|
|
47528
47528
|
this._insertElement(a.token, this.treeAdapter.getNamespaceURI(a.element)), a.element = this.openElements.current;
|
|
@@ -47875,7 +47875,7 @@ class s5 {
|
|
|
47875
47875
|
break;
|
|
47876
47876
|
}
|
|
47877
47877
|
case V.IN_HEAD: {
|
|
47878
|
-
|
|
47878
|
+
Hn(this, e);
|
|
47879
47879
|
break;
|
|
47880
47880
|
}
|
|
47881
47881
|
case V.IN_HEAD_NO_SCRIPT: {
|
|
@@ -48272,7 +48272,7 @@ function zZ(t, e) {
|
|
|
48272
48272
|
function Cs(t, e) {
|
|
48273
48273
|
t._insertFakeElement(J.HEAD, b.HEAD), t.headElement = t.openElements.current, t.insertionMode = V.IN_HEAD, t._processToken(e);
|
|
48274
48274
|
}
|
|
48275
|
-
function
|
|
48275
|
+
function Hn(t, e) {
|
|
48276
48276
|
switch (e.tagID) {
|
|
48277
48277
|
case b.HTML: {
|
|
48278
48278
|
wr(t, e);
|
|
@@ -48354,7 +48354,7 @@ function qZ(t, e) {
|
|
|
48354
48354
|
case b.META:
|
|
48355
48355
|
case b.NOFRAMES:
|
|
48356
48356
|
case b.STYLE: {
|
|
48357
|
-
|
|
48357
|
+
Hn(t, e);
|
|
48358
48358
|
break;
|
|
48359
48359
|
}
|
|
48360
48360
|
case b.NOSCRIPT: {
|
|
@@ -48407,7 +48407,7 @@ function WZ(t, e) {
|
|
|
48407
48407
|
case b.STYLE:
|
|
48408
48408
|
case b.TEMPLATE:
|
|
48409
48409
|
case b.TITLE: {
|
|
48410
|
-
t._err(e, se.abandonedHeadElementChild), t.openElements.push(t.headElement, b.HEAD),
|
|
48410
|
+
t._err(e, se.abandonedHeadElementChild), t.openElements.push(t.headElement, b.HEAD), Hn(t, e), t.openElements.remove(t.headElement);
|
|
48411
48411
|
break;
|
|
48412
48412
|
}
|
|
48413
48413
|
case b.HEAD: {
|
|
@@ -48696,7 +48696,7 @@ function wr(t, e) {
|
|
|
48696
48696
|
case b.BGSOUND:
|
|
48697
48697
|
case b.BASEFONT:
|
|
48698
48698
|
case b.TEMPLATE: {
|
|
48699
|
-
|
|
48699
|
+
Hn(t, e);
|
|
48700
48700
|
break;
|
|
48701
48701
|
}
|
|
48702
48702
|
case b.BODY: {
|
|
@@ -49003,7 +49003,7 @@ function Oo(t, e) {
|
|
|
49003
49003
|
case b.STYLE:
|
|
49004
49004
|
case b.SCRIPT:
|
|
49005
49005
|
case b.TEMPLATE: {
|
|
49006
|
-
|
|
49006
|
+
Hn(t, e);
|
|
49007
49007
|
break;
|
|
49008
49008
|
}
|
|
49009
49009
|
case b.COL: {
|
|
@@ -49125,7 +49125,7 @@ function n3(t, e) {
|
|
|
49125
49125
|
break;
|
|
49126
49126
|
}
|
|
49127
49127
|
case b.TEMPLATE: {
|
|
49128
|
-
|
|
49128
|
+
Hn(t, e);
|
|
49129
49129
|
break;
|
|
49130
49130
|
}
|
|
49131
49131
|
default:
|
|
@@ -49307,7 +49307,7 @@ function XT(t, e) {
|
|
|
49307
49307
|
}
|
|
49308
49308
|
case b.SCRIPT:
|
|
49309
49309
|
case b.TEMPLATE: {
|
|
49310
|
-
|
|
49310
|
+
Hn(t, e);
|
|
49311
49311
|
break;
|
|
49312
49312
|
}
|
|
49313
49313
|
}
|
|
@@ -49353,7 +49353,7 @@ function Q$(t, e) {
|
|
|
49353
49353
|
case b.STYLE:
|
|
49354
49354
|
case b.TEMPLATE:
|
|
49355
49355
|
case b.TITLE: {
|
|
49356
|
-
|
|
49356
|
+
Hn(t, e);
|
|
49357
49357
|
break;
|
|
49358
49358
|
}
|
|
49359
49359
|
// Re-process the token in the appropriate mode
|
|
@@ -49420,7 +49420,7 @@ function K$(t, e) {
|
|
|
49420
49420
|
break;
|
|
49421
49421
|
}
|
|
49422
49422
|
case b.NOFRAMES: {
|
|
49423
|
-
|
|
49423
|
+
Hn(t, e);
|
|
49424
49424
|
break;
|
|
49425
49425
|
}
|
|
49426
49426
|
}
|
|
@@ -49435,7 +49435,7 @@ function $$(t, e) {
|
|
|
49435
49435
|
break;
|
|
49436
49436
|
}
|
|
49437
49437
|
case b.NOFRAMES: {
|
|
49438
|
-
|
|
49438
|
+
Hn(t, e);
|
|
49439
49439
|
break;
|
|
49440
49440
|
}
|
|
49441
49441
|
}
|
|
@@ -49456,7 +49456,7 @@ function tJ(t, e) {
|
|
|
49456
49456
|
break;
|
|
49457
49457
|
}
|
|
49458
49458
|
case b.NOFRAMES: {
|
|
49459
|
-
|
|
49459
|
+
Hn(t, e);
|
|
49460
49460
|
break;
|
|
49461
49461
|
}
|
|
49462
49462
|
}
|
|
@@ -51292,14 +51292,14 @@ function _re() {
|
|
|
51292
51292
|
}
|
|
51293
51293
|
for (ot = _e + 1, pt = ot, Ye = ot, Fe === _ ? (Ye = ++pt, Fe = j.charCodeAt(Ye), Fe === v || Fe === x ? (it = w, Ye = ++pt) : it = k) : it = E, Ce = "", Ze = "", rt = "", Ke = C[it], Ye--; ++Ye < me && (Fe = j.charCodeAt(Ye), !!Ke(Fe)); )
|
|
51294
51294
|
rt += s(Fe), it === E && o.call(t, rt) && (Ce = rt, Ze = t[rt]);
|
|
51295
|
-
Je = j.charCodeAt(Ye) === m, Je && (Ye++, qe = it === E ? a(rt) : !1, qe && (Ce = rt, Ze = qe)), $e = 1 + Ye - ot, !Je && !ie || (rt ? it === E ? (Je && !Ze ? ye(D, 1) : (Ce !== rt && (Ye = pt + Ce.length, $e = 1 + Ye - pt, Je = !1), Je || (Me = Ce ? N : R, q.attribute ? (Fe = j.charCodeAt(Ye), Fe === g ? (ye(Me, $e), Ze = null) : i(Fe) ? Ze = null : ye(Me, $e)) : ye(Me, $e))), Ne = Ze) : (Je || ye(P, $e), Ne = parseInt(rt, O[it]), Q(Ne) ? (ye(I, $e), Ne = s(S)) : Ne in e ? (ye(F, $e), Ne = e[Ne]) : (Ue = "", te(Ne) && ye(F, $e), Ne > 65535 && (Ne -= 65536, Ue += s(Ne >>> 10 | 55296), Ne = 56320 | Ne & 1023), Ne = Ue + s(Ne))) : it !== E && ye(L, $e)), Ne ? (
|
|
51295
|
+
Je = j.charCodeAt(Ye) === m, Je && (Ye++, qe = it === E ? a(rt) : !1, qe && (Ce = rt, Ze = qe)), $e = 1 + Ye - ot, !Je && !ie || (rt ? it === E ? (Je && !Ze ? ye(D, 1) : (Ce !== rt && (Ye = pt + Ce.length, $e = 1 + Ye - pt, Je = !1), Je || (Me = Ce ? N : R, q.attribute ? (Fe = j.charCodeAt(Ye), Fe === g ? (ye(Me, $e), Ze = null) : i(Fe) ? Ze = null : ye(Me, $e)) : ye(Me, $e))), Ne = Ze) : (Je || ye(P, $e), Ne = parseInt(rt, O[it]), Q(Ne) ? (ye(I, $e), Ne = s(S)) : Ne in e ? (ye(F, $e), Ne = e[Ne]) : (Ue = "", te(Ne) && ye(F, $e), Ne > 65535 && (Ne -= 65536, Ue += s(Ne >>> 10 | 55296), Ne = 56320 | Ne & 1023), Ne = Ue + s(Ne))) : it !== E && ye(L, $e)), Ne ? (Fn(), mt = et(), _e = Ye - 1, Se += Ye - ot + 1, Ae.push(Ne), je = et(), je.offset++, $ && $.call(
|
|
51296
51296
|
pe,
|
|
51297
51297
|
Ne,
|
|
51298
51298
|
{ start: mt, end: je },
|
|
51299
51299
|
j.slice(ot - 1, Ye)
|
|
51300
51300
|
), mt = je) : (rt = j.slice(ot - 1, Ye), Y += rt, Se += rt.length, _e = Ye - 1);
|
|
51301
51301
|
} else
|
|
51302
|
-
We === 10 && (ce++, we++, Se = 0), We === We ? (Y += s(We), Se++) :
|
|
51302
|
+
We === 10 && (ce++, we++, Se = 0), We === We ? (Y += s(We), Se++) : Fn();
|
|
51303
51303
|
return Ae.join("");
|
|
51304
51304
|
function et() {
|
|
51305
51305
|
return {
|
|
@@ -51312,7 +51312,7 @@ function _re() {
|
|
|
51312
51312
|
var kt = et();
|
|
51313
51313
|
kt.column += an, kt.offset += an, ne.call(ze, M[ir], kt, ir);
|
|
51314
51314
|
}
|
|
51315
|
-
function
|
|
51315
|
+
function Fn() {
|
|
51316
51316
|
Y && (Ae.push(Y), G && G.call(ee, Y, { start: mt, end: et() }), Y = "");
|
|
51317
51317
|
}
|
|
51318
51318
|
}
|
|
@@ -72655,7 +72655,7 @@ const fse = ["edit", "preview"], pse = ({ className: t, size: e = 16 }) => /* @_
|
|
|
72655
72655
|
) }) })
|
|
72656
72656
|
] }),
|
|
72657
72657
|
/* @__PURE__ */ A(
|
|
72658
|
-
|
|
72658
|
+
Rn,
|
|
72659
72659
|
{
|
|
72660
72660
|
open: F,
|
|
72661
72661
|
onCancel: () => I(!1),
|
|
@@ -81893,7 +81893,7 @@ const lS = (t) => {
|
|
|
81893
81893
|
/* @__PURE__ */ A("div", { className: "cursor-pointer hover:bg-neutral-100 dark:hover:bg-black-600 rounded p-0.5", onClick: () => !D && x?.(), children: /* @__PURE__ */ A(No, { sx: { height: 20, width: 20, color: "#667085" } }) }),
|
|
81894
81894
|
/* @__PURE__ */ A("div", { className: "cursor-pointer hover:bg-neutral-100 dark:hover:bg-black-600 rounded p-0.5", onClick: () => !D && v?.(), children: /* @__PURE__ */ A(dN, { sx: { height: 20, width: 20, color: "var(--color-primary-600)" } }) })
|
|
81895
81895
|
] }) : e ? /* @__PURE__ */ A(st, { children: N === h ? /* @__PURE__ */ A(fAe, {}) : S ? /* @__PURE__ */ A(Le, { title: R, children: /* @__PURE__ */ A("span", { children: /* @__PURE__ */ A(cv, { disabled: !0 }) }) }) : /* @__PURE__ */ A(
|
|
81896
|
-
|
|
81896
|
+
Tn,
|
|
81897
81897
|
{
|
|
81898
81898
|
menu: { items: F ? [{ label: te, key: "loading" }] : M },
|
|
81899
81899
|
trigger: ["click"],
|
|
@@ -82031,7 +82031,7 @@ const lS = (t) => {
|
|
|
82031
82031
|
"bg-success-50 dark:bg-success-900": (t?.original?.is_added || pe?.is_added) && !t?.original?.__isLoading && G !== t?.original?.id && !K,
|
|
82032
82032
|
"bg-primary-50 dark:bg-primary-900": K,
|
|
82033
82033
|
[Ls[t?.original?.__rowBgStatus]]: t?.original?.__rowBgStatus && !K
|
|
82034
|
-
}),
|
|
82034
|
+
}), Fn = Re(() => t.cells.filter((Qe) => Qe.column?.visible).map((Qe) => Qe.column?.width ?? 0).reduce((Qe, Ft) => Qe + Ft, 0), [t.cells]), ir = Re(() => k?.draggingOver && k?.draggingOver === t?.original?.id, [k, t?.original?.id]), an = Re(() => ir ? k?.dropPosition || "inside" : null, [ir, k?.dropPosition]), kt = !!(ir && an === "inside");
|
|
82035
82035
|
return /* @__PURE__ */ Qu(
|
|
82036
82036
|
"tr",
|
|
82037
82037
|
{
|
|
@@ -82067,7 +82067,7 @@ const lS = (t) => {
|
|
|
82067
82067
|
onClick: t?.original?.onClick,
|
|
82068
82068
|
rowHovering: G || "",
|
|
82069
82069
|
isRoot: t?.original?.isRoot,
|
|
82070
|
-
totalWidth:
|
|
82070
|
+
totalWidth: Fn,
|
|
82071
82071
|
row: t.original,
|
|
82072
82072
|
uploadCell: t?.original?.uploadCell,
|
|
82073
82073
|
disabled: t?.original?.disabled,
|
|
@@ -83360,7 +83360,7 @@ const lS = (t) => {
|
|
|
83360
83360
|
onPendingEditsChange: $e,
|
|
83361
83361
|
onCancelPendingEdits: Ye
|
|
83362
83362
|
}) => {
|
|
83363
|
-
const et = vn(), Di = !!e?.search,
|
|
83363
|
+
const et = vn(), Di = !!e?.search, Fn = r?.columnFilters?.length > 0, ir = Di || Fn, an = !!m, kt = et?.getTableView?.(t) ?? null, [Qe, Ft] = X(kt || null), [br, Ct] = X(!1), [ar, Ma] = X(!1), [Ha, Uo] = X(null), [Mt, zo] = X(o), Hl = (u.length === 0 || !Mt.length) && !y, [Fl, Fa] = X(null), [Hc, Fc] = X(!1), [Bo, Ri] = X(null), [Uc, zc] = X(!1), [le, He] = X(null), [Ge, Tt] = X(null), [Ot, _r] = X({}), [Un, yr] = X(null), [kr, qo] = X(!1), [Pi, Ul] = X(0), Ua = ae(null), zl = ae(null), [Bl, m3] = X({ width: 0, height: 0 }), [Tr, Or] = X(null), [Qr, za] = X(null), [Vo, Ba] = X(null), [Wo, g3] = X(null), [Bc, Xo] = X({}), qc = ae(!1), Vc = ae(Qe);
|
|
83364
83364
|
Vc.current = Qe;
|
|
83365
83365
|
const b3 = ae(et);
|
|
83366
83366
|
b3.current = et;
|
|
@@ -83941,7 +83941,7 @@ const lS = (t) => {
|
|
|
83941
83941
|
ar && et?.renderSortItem ? et.renderSortItem({ sort: n?.columnSort, onRemoveSort: Xc, onSort: n?.onSort, tableHeaders: Mt, data: u }) : null,
|
|
83942
83942
|
br && ar && n?.columnSort?.field !== "" ? /* @__PURE__ */ A("div", { className: "h-8 w-[1px] flex-shrink-0 bg-neutral-200" }) : null,
|
|
83943
83943
|
br ? /* @__PURE__ */ T("div", { className: "flex gap-2 items-center", children: [
|
|
83944
|
-
(
|
|
83944
|
+
(Fn || r?.onResetFilter) && et?.renderActiveFilters && et.renderActiveFilters({
|
|
83945
83945
|
filters: r?.columnFilters,
|
|
83946
83946
|
onRemoveFilter: r?.onRemoveFilter,
|
|
83947
83947
|
onClearFilter: r?.onClearFilter,
|
|
@@ -83990,10 +83990,10 @@ const lS = (t) => {
|
|
|
83990
83990
|
},
|
|
83991
83991
|
children: ie ? L3 : /* @__PURE__ */ T(Ku, { sensors: AC, onDragEnd: fC, onDragStart: dC, onDragCancel: pC, collisionDetection: yD, children: [
|
|
83992
83992
|
L3,
|
|
83993
|
-
|
|
83993
|
+
Un ? pn(
|
|
83994
83994
|
/* @__PURE__ */ A(Nb, { adjustScale: !0, dropAnimation: uC, children: /* @__PURE__ */ A("table", { ...O3(), 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__ */ T("tbody", { ...C3(), className: "bg-transparent divide-y divide-neutral-200", children: [
|
|
83995
|
-
void N3(
|
|
83996
|
-
/* @__PURE__ */ A(zO, { row:
|
|
83995
|
+
void N3(Un),
|
|
83996
|
+
/* @__PURE__ */ A(zO, { row: Un, index: la?.findIndex((de) => de.id === Un.original.id) }, Un.original.id)
|
|
83997
83997
|
] }) }) }),
|
|
83998
83998
|
document.getElementById("full-screen-container") || document.body
|
|
83999
83999
|
) : null
|
|
@@ -84097,13 +84097,13 @@ const BO = ({
|
|
|
84097
84097
|
}
|
|
84098
84098
|
const h = String(t.key ?? "");
|
|
84099
84099
|
s || (t.onClick?.({ key: h, domEvent: p }), e?.({ key: h, keyPath: [h], domEvent: p }));
|
|
84100
|
-
}, c =
|
|
84100
|
+
}, c = xn(
|
|
84101
84101
|
"flex items-center justify-between rounded-[4px] cursor-pointer select-none w-full transition-colors duration-100",
|
|
84102
84102
|
r ? "pl-9 pr-1 py-2 min-h-[36px]" : "px-1 py-0.5",
|
|
84103
84103
|
!l && "overflow-hidden",
|
|
84104
84104
|
t.disabled ? "opacity-50 cursor-not-allowed" : "",
|
|
84105
84105
|
t.className
|
|
84106
|
-
), d =
|
|
84106
|
+
), d = xn(
|
|
84107
84107
|
"flex items-center justify-between gap-3 rounded-[4px] cursor-pointer select-none w-full transition-colors duration-100",
|
|
84108
84108
|
r ? "pl-9 pr-1 py-2 min-h-[36px]" : "px-3 py-2",
|
|
84109
84109
|
t.disabled ? "opacity-50 cursor-not-allowed" : "",
|
|
@@ -84115,7 +84115,7 @@ const BO = ({
|
|
|
84115
84115
|
/* @__PURE__ */ A(
|
|
84116
84116
|
"span",
|
|
84117
84117
|
{
|
|
84118
|
-
className:
|
|
84118
|
+
className: xn(
|
|
84119
84119
|
"flex-none flex items-center justify-center",
|
|
84120
84120
|
r ? "size-4" : "size-5"
|
|
84121
84121
|
),
|
|
@@ -84125,7 +84125,7 @@ const BO = ({
|
|
|
84125
84125
|
/* @__PURE__ */ A(
|
|
84126
84126
|
"span",
|
|
84127
84127
|
{
|
|
84128
|
-
className:
|
|
84128
|
+
className: xn(
|
|
84129
84129
|
"text-sm font-medium leading-5 whitespace-nowrap",
|
|
84130
84130
|
t.danger ? "text-error-600" : "text-neutral-900 dark:text-neutral-100"
|
|
84131
84131
|
),
|
|
@@ -84137,7 +84137,7 @@ const BO = ({
|
|
|
84137
84137
|
QN,
|
|
84138
84138
|
{
|
|
84139
84139
|
size: 20,
|
|
84140
|
-
className:
|
|
84140
|
+
className: xn(
|
|
84141
84141
|
"flex-none text-neutral-500 dark:text-neutral-400 transition-transform duration-200",
|
|
84142
84142
|
n ? "rotate-180" : "rotate-0"
|
|
84143
84143
|
)
|
|
@@ -84168,18 +84168,27 @@ const BO = ({
|
|
|
84168
84168
|
}
|
|
84169
84169
|
) : /* @__PURE__ */ T("div", { children: [
|
|
84170
84170
|
f,
|
|
84171
|
-
o &&
|
|
84172
|
-
|
|
84173
|
-
|
|
84174
|
-
|
|
84175
|
-
|
|
84176
|
-
|
|
84177
|
-
|
|
84178
|
-
|
|
84179
|
-
|
|
84180
|
-
|
|
84181
|
-
|
|
84182
|
-
|
|
84171
|
+
o && /* @__PURE__ */ A(
|
|
84172
|
+
"div",
|
|
84173
|
+
{
|
|
84174
|
+
className: xn(
|
|
84175
|
+
"grid transition-[grid-template-rows] duration-200 ease-in-out",
|
|
84176
|
+
n ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
84177
|
+
),
|
|
84178
|
+
children: /* @__PURE__ */ A("div", { className: "overflow-hidden", children: /* @__PURE__ */ T("div", { className: "relative", children: [
|
|
84179
|
+
/* @__PURE__ */ A("div", { className: "absolute left-[19px] top-0 h-[calc(100%-4px)] w-px bg-neutral-200 dark:bg-black-600" }),
|
|
84180
|
+
/* @__PURE__ */ A("div", { className: "flex flex-col gap-0.5", children: t.children?.map((p, h) => !p || !yb(p) ? null : /* @__PURE__ */ A(
|
|
84181
|
+
vb,
|
|
84182
|
+
{
|
|
84183
|
+
item: p,
|
|
84184
|
+
onItemClick: e,
|
|
84185
|
+
isChild: !0
|
|
84186
|
+
},
|
|
84187
|
+
p.key ?? h
|
|
84188
|
+
)) })
|
|
84189
|
+
] }) })
|
|
84190
|
+
}
|
|
84191
|
+
)
|
|
84183
84192
|
] });
|
|
84184
84193
|
}, jce = ({
|
|
84185
84194
|
children: t,
|
|
@@ -84200,7 +84209,7 @@ const BO = ({
|
|
|
84200
84209
|
[e?.items, e?.onClick, r]
|
|
84201
84210
|
);
|
|
84202
84211
|
return /* @__PURE__ */ A(
|
|
84203
|
-
|
|
84212
|
+
Tn,
|
|
84204
84213
|
{
|
|
84205
84214
|
...n,
|
|
84206
84215
|
popupRender: i,
|
|
@@ -84333,7 +84342,7 @@ export {
|
|
|
84333
84342
|
mb as MarkdownPreview,
|
|
84334
84343
|
ZD as MasterDataInputField,
|
|
84335
84344
|
Lue as MdInput,
|
|
84336
|
-
|
|
84345
|
+
Rn as Modal,
|
|
84337
84346
|
Iue as MultiFileUpload,
|
|
84338
84347
|
oT as NameInitialLogo,
|
|
84339
84348
|
GS as NestedJsonGrid,
|