bi-components-library 1.2.78 → 1.2.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +88 -90
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as G, jsxs as
|
|
1
|
+
import { jsx as G, jsxs as me, Fragment as Ul } from "react/jsx-runtime";
|
|
2
2
|
import Ie, { useState as ie, useRef as Z, useMemo as wt, useCallback as ue, useEffect as ne, useLayoutEffect as Xe, forwardRef as zu, createContext as Vu } from "react";
|
|
3
3
|
import { Button as Yt, Card as Er, Modal as Oc, Table as yr, Flex as mi, Spin as Gu, Empty as Dc, Select as tl, Form as ml, Input as Tr, Space as Pc, Cascader as Mc, Popover as Rc, Tooltip as Bc, Image as Qn, DatePicker as Fc, message as Hc, Dropdown as $c, Progress as Uc, Pagination as qc, theme as zc } from "antd";
|
|
4
4
|
import { createFromIconfontCN as Vc, LeftOutlined as Gc, SearchOutlined as Yc, ReloadOutlined as Wc, CloseCircleFilled as jc, InfoCircleOutlined as Kc, SendOutlined as Xc, PauseCircleOutlined as Qc, PlayCircleOutlined as Jc } from "@ant-design/icons";
|
|
@@ -150,7 +150,7 @@ const ad = ({
|
|
|
150
150
|
showDefaultFooter: e = !0,
|
|
151
151
|
...t
|
|
152
152
|
}) => {
|
|
153
|
-
const a = t.footer !== void 0 ? t.footer : e ? (l, { OkBtn: n, CancelBtn: r }) => /* @__PURE__ */
|
|
153
|
+
const a = t.footer !== void 0 ? t.footer : e ? (l, { OkBtn: n, CancelBtn: r }) => /* @__PURE__ */ me(Ul, { children: [
|
|
154
154
|
/* @__PURE__ */ G(n, {}),
|
|
155
155
|
/* @__PURE__ */ G(r, {})
|
|
156
156
|
] }) : null;
|
|
@@ -361,7 +361,7 @@ const id = ({
|
|
|
361
361
|
emptyChildren: l,
|
|
362
362
|
loadingText: n,
|
|
363
363
|
emptyImage: r
|
|
364
|
-
}) => e ? /* @__PURE__ */
|
|
364
|
+
}) => e ? /* @__PURE__ */ me(
|
|
365
365
|
mi,
|
|
366
366
|
{
|
|
367
367
|
className: `pt-10 w-full ${a || ""}`,
|
|
@@ -612,8 +612,8 @@ const { Option: od } = tl, cd = ({
|
|
|
612
612
|
return ne(() => {
|
|
613
613
|
const _ = Object.keys(s).length > 0;
|
|
614
614
|
(u && !N.current || _) && (A(), N.current = !0);
|
|
615
|
-
}, [u, s, A]), /* @__PURE__ */
|
|
616
|
-
l && a.length > 0 && /* @__PURE__ */ G(Er, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */
|
|
615
|
+
}, [u, s, A]), /* @__PURE__ */ me("div", { children: [
|
|
616
|
+
l && a.length > 0 && /* @__PURE__ */ G(Er, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ me(
|
|
617
617
|
ml,
|
|
618
618
|
{
|
|
619
619
|
form: C,
|
|
@@ -636,7 +636,7 @@ const { Option: od } = tl, cd = ({
|
|
|
636
636
|
children: _.options?.map((T) => /* @__PURE__ */ G(od, { value: T.value, children: T.label }, T.value))
|
|
637
637
|
}
|
|
638
638
|
) }, _.key)),
|
|
639
|
-
/* @__PURE__ */ G(ml.Item, { children: /* @__PURE__ */
|
|
639
|
+
/* @__PURE__ */ G(ml.Item, { children: /* @__PURE__ */ me(Pc, { children: [
|
|
640
640
|
/* @__PURE__ */ G(Yt, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ G(Yc, {}), children: "查询" }),
|
|
641
641
|
/* @__PURE__ */ G(Yt, { onClick: I, children: "重置" }),
|
|
642
642
|
n && /* @__PURE__ */ G(Yt, { icon: /* @__PURE__ */ G(Wc, {}), onClick: R, children: "刷新" })
|
|
@@ -1277,7 +1277,7 @@ const yd = ({ host: e, onChange: t }) => {
|
|
|
1277
1277
|
x.key === "Enter" && !r && x.preventDefault();
|
|
1278
1278
|
};
|
|
1279
1279
|
return Pt(
|
|
1280
|
-
/* @__PURE__ */
|
|
1280
|
+
/* @__PURE__ */ me(
|
|
1281
1281
|
"div",
|
|
1282
1282
|
{
|
|
1283
1283
|
className: `rte-variable-v2-wrapper ${E ? "rte-variable-v2-with-icon" : ""}`,
|
|
@@ -1825,7 +1825,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1825
1825
|
overflow: { adjustX: !1, adjustY: !1 }
|
|
1826
1826
|
}),
|
|
1827
1827
|
[m, v]
|
|
1828
|
-
), D = /* @__PURE__ */ G("div", { className: "rte-report-dropdown-panel", onMouseDown: (q) => q.preventDefault(), children: c ? /* @__PURE__ */ G("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ G(Gu, { size: "small" }) }) : h ? /* @__PURE__ */
|
|
1828
|
+
), D = /* @__PURE__ */ G("div", { className: "rte-report-dropdown-panel", onMouseDown: (q) => q.preventDefault(), children: c ? /* @__PURE__ */ G("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ G(Gu, { size: "small" }) }) : h ? /* @__PURE__ */ me(Ul, { children: [
|
|
1829
1829
|
h.tabs.length > 1 && /* @__PURE__ */ G("div", { className: "rte-report-dropdown-tab-outer", children: /* @__PURE__ */ G("div", { className: "rte-report-dropdown-tab-inner", children: h.tabs.map((q) => /* @__PURE__ */ G(
|
|
1830
1830
|
"div",
|
|
1831
1831
|
{
|
|
@@ -1835,9 +1835,9 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1835
1835
|
},
|
|
1836
1836
|
q.key
|
|
1837
1837
|
)) }) }),
|
|
1838
|
-
/* @__PURE__ */ G("div", { className: "rte-report-dropdown-list", onScroll: z, children: !B || $.length === 0 ? /* @__PURE__ */
|
|
1838
|
+
/* @__PURE__ */ G("div", { className: "rte-report-dropdown-list", onScroll: z, children: !B || $.length === 0 ? /* @__PURE__ */ me("div", { className: "rte-report-dropdown-empty", children: [
|
|
1839
1839
|
/* @__PURE__ */ G("img", { className: "rte-report-dropdown-empty-img", src: kd, alt: "" }),
|
|
1840
|
-
/* @__PURE__ */
|
|
1840
|
+
/* @__PURE__ */ me("div", { className: "rte-report-dropdown-empty-text", children: [
|
|
1841
1841
|
/* @__PURE__ */ G("span", { className: "rte-report-dropdown-empty-label", children: I ? "未找到匹配的报告" : "暂无生成的报告" }),
|
|
1842
1842
|
B?.agentType != null && l && /* @__PURE__ */ G(
|
|
1843
1843
|
"span",
|
|
@@ -1850,7 +1850,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1850
1850
|
}
|
|
1851
1851
|
)
|
|
1852
1852
|
] })
|
|
1853
|
-
] }) : $.map((q, K) => /* @__PURE__ */
|
|
1853
|
+
] }) : $.map((q, K) => /* @__PURE__ */ me(
|
|
1854
1854
|
"div",
|
|
1855
1855
|
{
|
|
1856
1856
|
className: "rte-report-dropdown-item",
|
|
@@ -1864,7 +1864,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1864
1864
|
children: q.name
|
|
1865
1865
|
}
|
|
1866
1866
|
),
|
|
1867
|
-
/* @__PURE__ */
|
|
1867
|
+
/* @__PURE__ */ me(
|
|
1868
1868
|
"span",
|
|
1869
1869
|
{
|
|
1870
1870
|
className: "rte-report-dropdown-item-action",
|
|
@@ -15198,7 +15198,7 @@ function q0(e, t) {
|
|
|
15198
15198
|
components: n,
|
|
15199
15199
|
ignoreInvalidStyle: !0,
|
|
15200
15200
|
jsx: G,
|
|
15201
|
-
jsxs:
|
|
15201
|
+
jsxs: me,
|
|
15202
15202
|
passKeys: !0,
|
|
15203
15203
|
passNode: !0
|
|
15204
15204
|
});
|
|
@@ -22922,7 +22922,7 @@ const Wn = {
|
|
|
22922
22922
|
if (k <= 0)
|
|
22923
22923
|
return { node: $.title, steps: !1 };
|
|
22924
22924
|
const z = Math.min(Math.max(v, 0), k - 1), V = Array.isArray($.stepDescriptions) && $.stepDescriptions[z] || "", D = ($.disclaimer || "").trim(), q = Array.isArray($.images) ? $.images[z] : void 0, K = typeof q == "string" ? x.current.get(q) : void 0;
|
|
22925
|
-
return { node: /* @__PURE__ */
|
|
22925
|
+
return { node: /* @__PURE__ */ me(
|
|
22926
22926
|
"div",
|
|
22927
22927
|
{
|
|
22928
22928
|
className: "rte-steps-tooltip",
|
|
@@ -22935,9 +22935,9 @@ const Wn = {
|
|
|
22935
22935
|
Y.preventDefault(), Y.stopPropagation();
|
|
22936
22936
|
},
|
|
22937
22937
|
children: [
|
|
22938
|
-
/* @__PURE__ */
|
|
22938
|
+
/* @__PURE__ */ me("div", { className: "rte-steps-tooltip-header", children: [
|
|
22939
22939
|
/* @__PURE__ */ G("div", { className: "rte-steps-tooltip-title", children: $.title }),
|
|
22940
|
-
/* @__PURE__ */
|
|
22940
|
+
/* @__PURE__ */ me("div", { className: "rte-steps-tooltip-step-badge", children: [
|
|
22941
22941
|
"步骤 ",
|
|
22942
22942
|
z + 1,
|
|
22943
22943
|
"/",
|
|
@@ -23024,7 +23024,7 @@ const Wn = {
|
|
|
23024
23024
|
children: V
|
|
23025
23025
|
}
|
|
23026
23026
|
) }) }),
|
|
23027
|
-
D ? /* @__PURE__ */
|
|
23027
|
+
D ? /* @__PURE__ */ me("div", { className: "rte-steps-tooltip-disclaimer", children: [
|
|
23028
23028
|
/* @__PURE__ */ G("span", { className: "rte-steps-tooltip-disclaimer-icon", children: "⚠" }),
|
|
23029
23029
|
/* @__PURE__ */ G("div", { className: "rte-steps-tooltip-disclaimer-text", children: /* @__PURE__ */ G(
|
|
23030
23030
|
Dn,
|
|
@@ -30436,16 +30436,16 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30436
30436
|
if (!X.target.files || X.target.files.length === 0) return;
|
|
30437
30437
|
const ce = 10 * 1024 * 1024, se = 50 * 1024 * 1024, ge = (oe) => oe.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(oe.name || ""), Ee = Array.from(X.target.files).filter((oe) => ge(oe) && oe.size > ce ? (V.error("图片大小不能超过 10MB"), !1) : !0);
|
|
30438
30438
|
Et((oe) => {
|
|
30439
|
-
const pe = oe.reduce((Ne, De) => Ne + De.size, 0),
|
|
30439
|
+
const pe = oe.reduce((Ne, De) => Ne + De.size, 0), be = [];
|
|
30440
30440
|
let Se = pe;
|
|
30441
30441
|
for (const Ne of Ee) {
|
|
30442
30442
|
if (Se + Ne.size > se) {
|
|
30443
30443
|
V.error("文件总大小不能超过 50MB");
|
|
30444
30444
|
break;
|
|
30445
30445
|
}
|
|
30446
|
-
|
|
30446
|
+
be.push(Ne), Se += Ne.size;
|
|
30447
30447
|
}
|
|
30448
|
-
return
|
|
30448
|
+
return be.length > 0 ? [...oe, ...be] : oe;
|
|
30449
30449
|
}), X.target.value = "", setTimeout(ga, 0);
|
|
30450
30450
|
}, [V, ga]), Ko = ue((X) => {
|
|
30451
30451
|
Et((ce) => ce.filter((se, ge) => ge !== X)), setTimeout(ga, 0);
|
|
@@ -30588,11 +30588,11 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30588
30588
|
const pe = tn.current?.key === oe;
|
|
30589
30589
|
if (ln.current && (pe || !X.contains(Ee)))
|
|
30590
30590
|
return;
|
|
30591
|
-
const
|
|
30591
|
+
const be = X.contains(Ee) ? Ee : X.querySelector(
|
|
30592
30592
|
`[data-type="variable"][data-key="${oe}"]`
|
|
30593
30593
|
);
|
|
30594
|
-
if (!
|
|
30595
|
-
const Se = (
|
|
30594
|
+
if (!be || be.getAttribute("data-report-url")) return;
|
|
30595
|
+
const Se = (be.innerText || "").replace(/[\u200B\n]/g, "").trim(), Ne = be.dataset.multiKey, ze = (Ne ? Oe.find((ct) => Ge(ct.type) && ct.key === Ne) : void 0)?.type === "multi-variable-select" ? "multi-variable-select" : "multi-variable";
|
|
30596
30596
|
ni(oe, Se, ze);
|
|
30597
30597
|
};
|
|
30598
30598
|
return X.addEventListener("focusout", ce), () => X.removeEventListener("focusout", ce);
|
|
@@ -30626,8 +30626,8 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30626
30626
|
$t.current[X] = { name: ce, url: se };
|
|
30627
30627
|
const pe = oe.querySelector(".rte-report-dropdown-host");
|
|
30628
30628
|
pe && (pe.style.display = "", pe.style.visibility = "", pe.classList.remove("hidden"), pe.classList.add("rte-report-dropdown-host-quiet"));
|
|
30629
|
-
const
|
|
30630
|
-
pe &&
|
|
30629
|
+
const be = [document.createTextNode(ce)];
|
|
30630
|
+
pe && be.push(pe), oe.classList.remove("show-placeholder", "rte-variable-with-icon"), oe.classList.add("rte-report-name-chip"), oe.setAttribute("data-report-url", se), oe.setAttribute("data-report-name", ce), oe.contentEditable = "false", oe.replaceChildren(...be), Jn(oe), document.dispatchEvent(
|
|
30631
30631
|
new CustomEvent("rte-report-dropdown-force-close", {
|
|
30632
30632
|
detail: { key: X }
|
|
30633
30633
|
})
|
|
@@ -30659,24 +30659,24 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30659
30659
|
if (!L || !Oe || Oe.length === 0) return;
|
|
30660
30660
|
const X = Oe.filter((pe) => pe.type === "upload" && pe.key);
|
|
30661
30661
|
if (X.length === 0) return;
|
|
30662
|
-
const ce = {}, se = (pe,
|
|
30663
|
-
|
|
30662
|
+
const ce = {}, se = (pe, be) => {
|
|
30663
|
+
be && (be instanceof File ? ce[pe] = be : typeof be == "string" && be.trim() && (ce[pe] = be.trim()));
|
|
30664
30664
|
};
|
|
30665
30665
|
for (const pe of X) {
|
|
30666
|
-
const
|
|
30667
|
-
if (un.current.has(
|
|
30668
|
-
const Se = L[
|
|
30666
|
+
const be = pe.key;
|
|
30667
|
+
if (un.current.has(be)) continue;
|
|
30668
|
+
const Se = L[be], Ne = typeof pe.maxCount == "number" && pe.maxCount > 1;
|
|
30669
30669
|
if (Array.isArray(Se) && Se.length > 0) {
|
|
30670
|
-
Ne ? Se.forEach((De, ze) => se(`${
|
|
30670
|
+
Ne ? Se.forEach((De, ze) => se(`${be}-${ze}`, De)) : se(be, Se[0]);
|
|
30671
30671
|
continue;
|
|
30672
30672
|
}
|
|
30673
30673
|
if (Se && !Array.isArray(Se)) {
|
|
30674
|
-
se(
|
|
30674
|
+
se(be, Se);
|
|
30675
30675
|
continue;
|
|
30676
30676
|
}
|
|
30677
30677
|
if (Ne)
|
|
30678
30678
|
for (let De = 0; De < pe.maxCount; De++) {
|
|
30679
|
-
const ze = `${
|
|
30679
|
+
const ze = `${be}-${De}`, ct = L[ze];
|
|
30680
30680
|
if (!ct) break;
|
|
30681
30681
|
se(ze, ct);
|
|
30682
30682
|
}
|
|
@@ -30685,7 +30685,7 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30685
30685
|
for (const pe of X)
|
|
30686
30686
|
L[pe.key] !== void 0 && un.current.add(pe.key);
|
|
30687
30687
|
Bt((pe) => {
|
|
30688
|
-
const
|
|
30688
|
+
const be = { ...pe };
|
|
30689
30689
|
let Se = !1;
|
|
30690
30690
|
for (const Ne of X) {
|
|
30691
30691
|
const De = Ne.key;
|
|
@@ -30693,19 +30693,19 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30693
30693
|
if (typeof Ne.maxCount == "number" && Ne.maxCount > 1)
|
|
30694
30694
|
for (let ct = 0; ct < Ne.maxCount; ct++) {
|
|
30695
30695
|
const dn = `${De}-${ct}`;
|
|
30696
|
-
!ce[dn] && pe[dn] && (
|
|
30696
|
+
!ce[dn] && pe[dn] && (be[dn] = null, Se = !0);
|
|
30697
30697
|
}
|
|
30698
30698
|
}
|
|
30699
30699
|
for (const [Ne, De] of Object.entries(ce))
|
|
30700
|
-
pe[Ne] !== De && (
|
|
30701
|
-
return Se ?
|
|
30700
|
+
pe[Ne] !== De && (be[Ne] = De, Se = !0);
|
|
30701
|
+
return Se ? be : pe;
|
|
30702
30702
|
});
|
|
30703
30703
|
const ge = Object.entries(ce).filter(
|
|
30704
30704
|
([, pe]) => typeof pe == "string"
|
|
30705
30705
|
);
|
|
30706
30706
|
if (ge.length === 0) return;
|
|
30707
30707
|
const Ee = async (pe) => {
|
|
30708
|
-
const
|
|
30708
|
+
const be = pe.split("/").pop()?.split("?")[0] || "file", Se = decodeURIComponent(be), Ne = async (De) => {
|
|
30709
30709
|
const ze = await De.blob();
|
|
30710
30710
|
return new File([ze], Se, { type: ze.type || "application/octet-stream" });
|
|
30711
30711
|
};
|
|
@@ -30718,19 +30718,19 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30718
30718
|
};
|
|
30719
30719
|
let oe = !1;
|
|
30720
30720
|
return Promise.all(
|
|
30721
|
-
ge.map(async ([pe,
|
|
30722
|
-
const Se = await Ee(
|
|
30721
|
+
ge.map(async ([pe, be]) => {
|
|
30722
|
+
const Se = await Ee(be);
|
|
30723
30723
|
return Se ? { key: pe, file: Se } : null;
|
|
30724
30724
|
})
|
|
30725
30725
|
).then((pe) => {
|
|
30726
30726
|
if (oe) return;
|
|
30727
|
-
const
|
|
30727
|
+
const be = {};
|
|
30728
30728
|
for (const Se of pe)
|
|
30729
|
-
Se && (
|
|
30730
|
-
Object.keys(
|
|
30729
|
+
Se && (be[Se.key] = Se.file);
|
|
30730
|
+
Object.keys(be).length > 0 && Bt((Se) => {
|
|
30731
30731
|
const Ne = { ...Se };
|
|
30732
30732
|
let De = !1;
|
|
30733
|
-
for (const [ze, ct] of Object.entries(
|
|
30733
|
+
for (const [ze, ct] of Object.entries(be))
|
|
30734
30734
|
typeof Ne[ze] == "string" && (Ne[ze] = ct, De = !0);
|
|
30735
30735
|
return De ? Ne : Se;
|
|
30736
30736
|
});
|
|
@@ -30738,29 +30738,27 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30738
30738
|
oe = !0;
|
|
30739
30739
|
};
|
|
30740
30740
|
}, [L, Oe]);
|
|
30741
|
-
const Aa = Z(/* @__PURE__ */ new
|
|
30742
|
-
ui.current !== si && (ui.current = si, Aa.current = /* @__PURE__ */ new
|
|
30741
|
+
const Aa = Z(/* @__PURE__ */ new Map()), ui = Z(""), si = ((e || []).find((X) => X.type === "tag")?.text || "") + "||" + (e || []).filter((X) => X.key && X.type !== "report-module" && X.type !== "markdown-module").map((X) => `${X.type}:${X.key}`).join("|");
|
|
30742
|
+
ui.current !== si && (ui.current = si, Aa.current = /* @__PURE__ */ new Map()), ne(() => {
|
|
30743
30743
|
if (!L || !e || e.length === 0) return;
|
|
30744
30744
|
const X = e.filter((se) => se.type === "report-url" && se.key), ce = e.filter((se) => se.type === "multi-variable-select" && se.key);
|
|
30745
30745
|
if (!(X.length === 0 && ce.length === 0)) {
|
|
30746
30746
|
for (const se of X) {
|
|
30747
|
-
const ge = se.key;
|
|
30748
|
-
if (Aa.current.has(ge)) continue;
|
|
30749
|
-
const Ee = L[ge] ?? L[`${ge}__url`];
|
|
30747
|
+
const ge = se.key, Ee = L[ge] ?? L[`${ge}__url`];
|
|
30750
30748
|
if (!Ee || typeof Ee == "string" && !Ee.trim()) continue;
|
|
30751
30749
|
const oe = Array.isArray(Ee) ? Ee[0] : String(Ee);
|
|
30752
|
-
oe && (Aa.current.
|
|
30750
|
+
oe && Aa.current.get(ge) !== oe && (Aa.current.set(ge, oe), setTimeout(() => {
|
|
30753
30751
|
_t.current(ge, oe);
|
|
30754
30752
|
}, 100));
|
|
30755
30753
|
}
|
|
30756
30754
|
for (const se of ce) {
|
|
30757
30755
|
const ge = se.key, Ee = L[ge];
|
|
30758
30756
|
!Array.isArray(Ee) || Ee.length === 0 || Ee.forEach((oe, pe) => {
|
|
30759
|
-
const
|
|
30760
|
-
if (!
|
|
30757
|
+
const be = typeof oe == "string" ? oe.trim() : "";
|
|
30758
|
+
if (!be) return;
|
|
30761
30759
|
const Se = `${ge}_${pe}`;
|
|
30762
|
-
Aa.current.
|
|
30763
|
-
_t.current(Se,
|
|
30760
|
+
Aa.current.get(Se) !== be && (Aa.current.set(Se, be), setTimeout(() => {
|
|
30761
|
+
_t.current(Se, be);
|
|
30764
30762
|
}, 100));
|
|
30765
30763
|
});
|
|
30766
30764
|
}
|
|
@@ -30971,7 +30969,7 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30971
30969
|
transition: Ic,
|
|
30972
30970
|
willChange: "max-height"
|
|
30973
30971
|
}, bi = e.find((X) => X.type === "tag"), zt = bi?.text ? i.find((X) => X.label === bi.text) : void 0;
|
|
30974
|
-
return /* @__PURE__ */
|
|
30972
|
+
return /* @__PURE__ */ me(
|
|
30975
30973
|
"div",
|
|
30976
30974
|
{
|
|
30977
30975
|
className: `rich-text-editor ${ye ? "rte-editor-selected" : ""}`,
|
|
@@ -30982,7 +30980,7 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30982
30980
|
onFocusCapture: jr,
|
|
30983
30981
|
children: [
|
|
30984
30982
|
D,
|
|
30985
|
-
/* @__PURE__ */
|
|
30983
|
+
/* @__PURE__ */ me(
|
|
30986
30984
|
"div",
|
|
30987
30985
|
{
|
|
30988
30986
|
className: "rich-text-editor-content",
|
|
@@ -30996,20 +30994,20 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
30996
30994
|
se.appendChild(document.createElement("br")), se.focus();
|
|
30997
30995
|
const pe = document.createRange();
|
|
30998
30996
|
pe.setStart(se, 0), pe.collapse(!0);
|
|
30999
|
-
const
|
|
31000
|
-
|
|
30997
|
+
const be = window.getSelection();
|
|
30998
|
+
be?.removeAllRanges(), be?.addRange(pe);
|
|
31001
30999
|
return;
|
|
31002
31000
|
}
|
|
31003
31001
|
const Ee = window.getSelection(), oe = !!Ee && Ee.rangeCount > 0 && se.contains(Ee.anchorNode);
|
|
31004
31002
|
if (se.focus(), !oe) {
|
|
31005
31003
|
const pe = document.createRange();
|
|
31006
31004
|
pe.selectNodeContents(se), pe.collapse(!1);
|
|
31007
|
-
const
|
|
31008
|
-
|
|
31005
|
+
const be = window.getSelection();
|
|
31006
|
+
be?.removeAllRanges(), be?.addRange(pe);
|
|
31009
31007
|
}
|
|
31010
31008
|
},
|
|
31011
31009
|
children: [
|
|
31012
|
-
nt.length > 0 && /* @__PURE__ */
|
|
31010
|
+
nt.length > 0 && /* @__PURE__ */ me("div", { className: "rte-footer-files-wrapper", children: [
|
|
31013
31011
|
Tt.showLeft && /* @__PURE__ */ G("div", { className: "rte-footer-files-mask rte-footer-files-mask-left", children: /* @__PURE__ */ G("span", { className: "rte-footer-files-arrow rte-footer-files-arrow-left", onClick: Qo, children: /* @__PURE__ */ G("svg", { style: { width: "16px", height: "16px", transform: "rotate(180deg)" }, "aria-hidden": "true", children: /* @__PURE__ */ G("use", { xlinkHref: "#icon-fanhuijiantou" }) }) }) }),
|
|
31014
31012
|
/* @__PURE__ */ G(
|
|
31015
31013
|
"div",
|
|
@@ -31019,7 +31017,7 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
31019
31017
|
onScroll: ga,
|
|
31020
31018
|
children: nt.map((X, ce) => {
|
|
31021
31019
|
const se = X.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(X.name || ""), ge = X.size < 1024 ? `${X.size}B` : X.size < 1024 * 1024 ? `${Math.round(X.size / 1024)}KB` : `${(X.size / (1024 * 1024)).toFixed(1)}MB`, Ee = se ? URL.createObjectURL(X) : "";
|
|
31022
|
-
return /* @__PURE__ */
|
|
31020
|
+
return /* @__PURE__ */ me(
|
|
31023
31021
|
"div",
|
|
31024
31022
|
{
|
|
31025
31023
|
className: "rte-footer-file-chip",
|
|
@@ -31048,7 +31046,7 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
31048
31046
|
const oe = (X.name || "").split(".").pop()?.toLowerCase() || "";
|
|
31049
31047
|
return ["xls", "xla", "xlb", "xlc", "xlm", "xlsx", "xlt", "xlw", "csv", "tsv", "iif"].includes(oe) ? "icon-a-xlsxcsv" : ["doc", "docx", "dot", "odt", "rtf", "wiz"].includes(oe) ? "icon-docx" : ["ppt", "pptx", "pot", "ppa", "pps", "pwz"].includes(oe) ? "icon-ppt" : ["txt", "asm", "bat", "c", "cc", "conf", "cpp", "css", "cxx", "def", "dic", "eml", "h", "hh", "in", "js", "ksh", "php", "pkl", "rb", "tar", "tex", "ts", "xml"].includes(oe) ? "icon-txt" : oe === "pdf" ? "icon-pdf" : ["html", "htm", "json", "ics", "ifb"].includes(oe) ? "icon-a-htmljson" : oe === "md" ? "icon-md" : "icon-lianjie";
|
|
31050
31048
|
})()}` }) }) }),
|
|
31051
|
-
/* @__PURE__ */
|
|
31049
|
+
/* @__PURE__ */ me("div", { className: "rte-footer-file-info", children: [
|
|
31052
31050
|
/* @__PURE__ */ G("span", { className: "rte-footer-file-name", title: X.name, children: X.name }),
|
|
31053
31051
|
/* @__PURE__ */ G("span", { className: "rte-footer-file-size", children: ge })
|
|
31054
31052
|
] }),
|
|
@@ -31083,7 +31081,7 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
31083
31081
|
),
|
|
31084
31082
|
Tt.showRight && /* @__PURE__ */ G("div", { className: "rte-footer-files-mask rte-footer-files-mask-right", children: /* @__PURE__ */ G("span", { className: "rte-footer-files-arrow rte-footer-files-arrow-right", onClick: Xo, children: /* @__PURE__ */ G("svg", { style: { width: "16px", height: "16px" }, "aria-hidden": "true", children: /* @__PURE__ */ G("use", { xlinkHref: "#icon-fanhuijiantou" }) }) }) })
|
|
31085
31083
|
] }),
|
|
31086
|
-
/* @__PURE__ */
|
|
31084
|
+
/* @__PURE__ */ me(
|
|
31087
31085
|
"div",
|
|
31088
31086
|
{
|
|
31089
31087
|
ref: Q,
|
|
@@ -31141,8 +31139,8 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
31141
31139
|
]
|
|
31142
31140
|
}
|
|
31143
31141
|
),
|
|
31144
|
-
/* @__PURE__ */
|
|
31145
|
-
/* @__PURE__ */
|
|
31142
|
+
/* @__PURE__ */ me("div", { className: "rich-text-editor-footer", children: [
|
|
31143
|
+
/* @__PURE__ */ me("div", { className: "rich-text-editor-footer-left", children: [
|
|
31146
31144
|
/* @__PURE__ */ G("div", { className: "rich-text-editor-brand", children: f !== "hideAgent" && /* @__PURE__ */ G(
|
|
31147
31145
|
$c,
|
|
31148
31146
|
{
|
|
@@ -31151,7 +31149,7 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
31151
31149
|
selectedKeys: zt ? [String(zt.key)] : [],
|
|
31152
31150
|
items: i.filter((X) => X.isShowNew !== 1).map((X) => ({
|
|
31153
31151
|
key: X.key,
|
|
31154
|
-
label: /* @__PURE__ */
|
|
31152
|
+
label: /* @__PURE__ */ me("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
31155
31153
|
X.icon && /* @__PURE__ */ G("i", { className: X.icon }),
|
|
31156
31154
|
/* @__PURE__ */ G("span", { children: X.label })
|
|
31157
31155
|
] }),
|
|
@@ -31163,13 +31161,13 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
31163
31161
|
trigger: ["click"],
|
|
31164
31162
|
disabled: l || a,
|
|
31165
31163
|
overlayClassName: "rte-agent-dropdown",
|
|
31166
|
-
children: /* @__PURE__ */
|
|
31164
|
+
children: /* @__PURE__ */ me("div", { className: "rte-agent-badge", style: { cursor: i.length > 0 ? "pointer" : "default" }, children: [
|
|
31167
31165
|
/* @__PURE__ */ G("i", { className: "iconfont icon-zhinengti", style: { fontSize: "16px" } }),
|
|
31168
31166
|
/* @__PURE__ */ G("span", { className: "rte-agent-text", children: "智能体" })
|
|
31169
31167
|
] })
|
|
31170
31168
|
}
|
|
31171
31169
|
) }),
|
|
31172
|
-
!e.find((X) => X.type === "tag") && /* @__PURE__ */
|
|
31170
|
+
!e.find((X) => X.type === "tag") && /* @__PURE__ */ me(Ul, { children: [
|
|
31173
31171
|
/* @__PURE__ */ G(
|
|
31174
31172
|
"div",
|
|
31175
31173
|
{
|
|
@@ -31192,14 +31190,14 @@ const { RangePicker: aT } = Fc, lT = ({ host: e, onChange: t }) => {
|
|
|
31192
31190
|
)
|
|
31193
31191
|
] })
|
|
31194
31192
|
] }),
|
|
31195
|
-
/* @__PURE__ */
|
|
31196
|
-
/* @__PURE__ */
|
|
31193
|
+
/* @__PURE__ */ me("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
31194
|
+
/* @__PURE__ */ me("div", { className: "rte-brand-badge", children: [
|
|
31197
31195
|
/* @__PURE__ */ G("div", { className: "rte-brand-badge", children: /* @__PURE__ */ G("img", { src: "https://oospublic.sealseek.cn/file/website/ball.png", alt: "" }) }),
|
|
31198
31196
|
/* @__PURE__ */ G("span", { className: "rte-brand-text", style: { marginLeft: "4px" }, children: "SealSeek 2.0" })
|
|
31199
31197
|
] }),
|
|
31200
|
-
!zt || zt.points === void 0 || zt.points === null ? null : /* @__PURE__ */
|
|
31198
|
+
!zt || zt.points === void 0 || zt.points === null ? null : /* @__PURE__ */ me("div", { className: "rte-points-badge", style: { position: "relative" }, children: [
|
|
31201
31199
|
/* @__PURE__ */ G("i", { className: "iconfont icon-jifen", style: { marginRight: "4px", fontSize: "16px" } }),
|
|
31202
|
-
/* @__PURE__ */
|
|
31200
|
+
/* @__PURE__ */ me("span", { style: { fontSize: "16px", lineHeight: "22px" }, children: [
|
|
31203
31201
|
"-",
|
|
31204
31202
|
String(zt.points)
|
|
31205
31203
|
] }),
|
|
@@ -31282,9 +31280,9 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31282
31280
|
onLoadNextPage: r,
|
|
31283
31281
|
onStartAutoLoad: i,
|
|
31284
31282
|
onStopLoad: u
|
|
31285
|
-
}) => e && a ? /* @__PURE__ */
|
|
31283
|
+
}) => e && a ? /* @__PURE__ */ me("div", { className: "auto_load_progress", children: [
|
|
31286
31284
|
l || /* @__PURE__ */ G("img", { src: qu, alt: "自动加载", width: 14, height: 14 }),
|
|
31287
|
-
/* @__PURE__ */
|
|
31285
|
+
/* @__PURE__ */ me("span", { children: [
|
|
31288
31286
|
"正在加载第",
|
|
31289
31287
|
a.currentPage,
|
|
31290
31288
|
"/",
|
|
@@ -31300,7 +31298,7 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31300
31298
|
}
|
|
31301
31299
|
),
|
|
31302
31300
|
/* @__PURE__ */ G("span", { onClick: u, className: "auto_load_stop_btn", children: "停止加载" })
|
|
31303
|
-
] }) : /* @__PURE__ */
|
|
31301
|
+
] }) : /* @__PURE__ */ me("div", { className: "auto_load_container", children: [
|
|
31304
31302
|
/* @__PURE__ */ G(
|
|
31305
31303
|
"div",
|
|
31306
31304
|
{
|
|
@@ -31312,7 +31310,7 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31312
31310
|
children: "加载下一页"
|
|
31313
31311
|
}
|
|
31314
31312
|
),
|
|
31315
|
-
/* @__PURE__ */
|
|
31313
|
+
/* @__PURE__ */ me(
|
|
31316
31314
|
"div",
|
|
31317
31315
|
{
|
|
31318
31316
|
className: "right_control_wrap",
|
|
@@ -31320,7 +31318,7 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31320
31318
|
backgroundColor: e ? "#f5f5f5" : "#2563eb"
|
|
31321
31319
|
},
|
|
31322
31320
|
children: [
|
|
31323
|
-
/* @__PURE__ */
|
|
31321
|
+
/* @__PURE__ */ me(
|
|
31324
31322
|
"div",
|
|
31325
31323
|
{
|
|
31326
31324
|
className: "auto_load_btn",
|
|
@@ -31364,9 +31362,9 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31364
31362
|
{ length: y },
|
|
31365
31363
|
(b, C) => C + 1
|
|
31366
31364
|
).filter((b) => !n.includes(b)).slice(0, h);
|
|
31367
|
-
return /* @__PURE__ */
|
|
31368
|
-
/* @__PURE__ */
|
|
31369
|
-
/* @__PURE__ */
|
|
31365
|
+
return /* @__PURE__ */ me("div", { className: "pagination_footer", children: [
|
|
31366
|
+
/* @__PURE__ */ me("div", { className: "pagination_leftWrap", children: [
|
|
31367
|
+
/* @__PURE__ */ me("span", { className: "pagination_total", children: [
|
|
31370
31368
|
/* @__PURE__ */ G(
|
|
31371
31369
|
Kc,
|
|
31372
31370
|
{
|
|
@@ -31409,7 +31407,7 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31409
31407
|
showTotal: () => "",
|
|
31410
31408
|
itemRender: (m, b, C) => {
|
|
31411
31409
|
const x = n.includes(m);
|
|
31412
|
-
return b === "prev" || b === "next" || b === "jump-prev" || b === "jump-next" ? /* @__PURE__ */ G("div", { className: "pageBox", children: C }) : /* @__PURE__ */
|
|
31410
|
+
return b === "prev" || b === "next" || b === "jump-prev" || b === "jump-next" ? /* @__PURE__ */ G("div", { className: "pageBox", children: C }) : /* @__PURE__ */ me(
|
|
31413
31411
|
"div",
|
|
31414
31412
|
{
|
|
31415
31413
|
className: "pageBox",
|
|
@@ -31451,7 +31449,7 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31451
31449
|
},
|
|
31452
31450
|
[o, c, s]
|
|
31453
31451
|
);
|
|
31454
|
-
return /* @__PURE__ */
|
|
31452
|
+
return /* @__PURE__ */ me("div", { className: "flex flex-col", children: [
|
|
31455
31453
|
/* @__PURE__ */ G(
|
|
31456
31454
|
yr,
|
|
31457
31455
|
{
|
|
@@ -31635,7 +31633,7 @@ const cT = ({
|
|
|
31635
31633
|
g.current && window.clearTimeout(g.current), m.current && window.clearTimeout(m.current);
|
|
31636
31634
|
}), [o, f, l, e.length, A]), ne(() => {
|
|
31637
31635
|
!d && l && e.length > 0 && !f && A();
|
|
31638
|
-
}, [o, d, l, e.length, f, A]), /* @__PURE__ */
|
|
31636
|
+
}, [o, d, l, e.length, f, A]), /* @__PURE__ */ me("div", { style: { position: "relative" }, children: [
|
|
31639
31637
|
/* @__PURE__ */ G(
|
|
31640
31638
|
Tr,
|
|
31641
31639
|
{
|
|
@@ -31659,7 +31657,7 @@ const cT = ({
|
|
|
31659
31657
|
}
|
|
31660
31658
|
}
|
|
31661
31659
|
),
|
|
31662
|
-
!f && !n && u && /* @__PURE__ */
|
|
31660
|
+
!f && !n && u && /* @__PURE__ */ me(
|
|
31663
31661
|
"div",
|
|
31664
31662
|
{
|
|
31665
31663
|
style: {
|
|
@@ -31830,8 +31828,8 @@ const dT = ({
|
|
|
31830
31828
|
}, q = (Y) => {
|
|
31831
31829
|
(Y.ctrlKey || Y.metaKey) && Y.key === "Enter" && (Y.preventDefault(), D()), f.onKeyDown?.(Y);
|
|
31832
31830
|
}, K = r ? n : w, Q = c || !K.trim() || (u ? K.length > u : !1);
|
|
31833
|
-
return /* @__PURE__ */
|
|
31834
|
-
/* @__PURE__ */
|
|
31831
|
+
return /* @__PURE__ */ me("div", { style: { position: "relative", ...h }, children: [
|
|
31832
|
+
/* @__PURE__ */ me("div", { style: { position: "relative" }, children: [
|
|
31835
31833
|
/* @__PURE__ */ G(
|
|
31836
31834
|
"textarea",
|
|
31837
31835
|
{
|
|
@@ -31869,7 +31867,7 @@ const dT = ({
|
|
|
31869
31867
|
...f
|
|
31870
31868
|
}
|
|
31871
31869
|
),
|
|
31872
|
-
!C && !K && y && /* @__PURE__ */
|
|
31870
|
+
!C && !K && y && /* @__PURE__ */ me(
|
|
31873
31871
|
"div",
|
|
31874
31872
|
{
|
|
31875
31873
|
style: {
|
|
@@ -31939,7 +31937,7 @@ const dT = ({
|
|
|
31939
31937
|
}
|
|
31940
31938
|
)
|
|
31941
31939
|
] }),
|
|
31942
|
-
s && /* @__PURE__ */
|
|
31940
|
+
s && /* @__PURE__ */ me(
|
|
31943
31941
|
"div",
|
|
31944
31942
|
{
|
|
31945
31943
|
style: {
|
|
@@ -32109,7 +32107,7 @@ const Wo = ({
|
|
|
32109
32107
|
onMouseEnter: L,
|
|
32110
32108
|
onMouseLeave: I,
|
|
32111
32109
|
onClick: O,
|
|
32112
|
-
children: /* @__PURE__ */
|
|
32110
|
+
children: /* @__PURE__ */ me("div", { className: "video-card-container", children: [
|
|
32113
32111
|
/* @__PURE__ */ G(
|
|
32114
32112
|
"video",
|
|
32115
32113
|
{
|