poro-editor 1.7.1 → 1.7.3
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/poro-editor.js +508 -557
- package/dist/poro-editor.js.map +1 -1
- package/dist/poro-editor.umd.cjs +20 -20
- package/dist/poro-editor.umd.cjs.map +1 -1
- package/package.json +2 -3
package/dist/poro-editor.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var IP = Object.defineProperty;
|
|
2
2
|
var TP = (e, t, n) => t in e ? IP(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var un = (e, t, n) => TP(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { jsx as P, jsxs as
|
|
4
|
+
import { jsx as P, jsxs as Xe, Fragment as Hr } from "react/jsx-runtime";
|
|
5
5
|
import * as g from "react";
|
|
6
|
-
import j, { createRef as RP, memo as PP, createElement as bd, createContext as Yo, version as Im, useContext as pt, useRef as de, useState as $e, useDebugValue as mE, useEffect as it, forwardRef as Cr, useLayoutEffect as Jv, useMemo as $n, isValidElement as gE, Children as AP, useCallback as
|
|
6
|
+
import j, { createRef as RP, memo as PP, createElement as bd, createContext as Yo, version as Im, useContext as pt, useRef as de, useState as $e, useDebugValue as mE, useEffect as it, forwardRef as Cr, useLayoutEffect as Jv, useMemo as $n, isValidElement as gE, Children as AP, useCallback as an, useImperativeHandle as Tc, cloneElement as _P, Component as vE } from "react";
|
|
7
7
|
import * as bE from "react-dom";
|
|
8
8
|
import Tm, { flushSync as Aa, createPortal as Hf, unstable_batchedUpdates as DP } from "react-dom";
|
|
9
9
|
function LP(e) {
|
|
@@ -13998,7 +13998,7 @@ var Hz = class extends j.Component {
|
|
|
13998
13998
|
}
|
|
13999
13999
|
render() {
|
|
14000
14000
|
const { editor: e, innerRef: t, ...n } = this.props;
|
|
14001
|
-
return /* @__PURE__ */
|
|
14001
|
+
return /* @__PURE__ */ Xe(Hr, { children: [
|
|
14002
14002
|
/* @__PURE__ */ P("div", { ref: Bz(t, this.editorContentRef), ...n }),
|
|
14003
14003
|
(e == null ? void 0 : e.contentComponent) && /* @__PURE__ */ P(jz, { contentComponent: e.contentComponent })
|
|
14004
14004
|
] });
|
|
@@ -21758,7 +21758,7 @@ function Yu(e) {
|
|
|
21758
21758
|
}
|
|
21759
21759
|
return null;
|
|
21760
21760
|
}
|
|
21761
|
-
var xu = { exports: {} },
|
|
21761
|
+
var xu = { exports: {} }, rn = {};
|
|
21762
21762
|
/**
|
|
21763
21763
|
* @license React
|
|
21764
21764
|
* react-is.production.min.js
|
|
@@ -21770,7 +21770,7 @@ var xu = { exports: {} }, on = {};
|
|
|
21770
21770
|
*/
|
|
21771
21771
|
var _S;
|
|
21772
21772
|
function p3() {
|
|
21773
|
-
if (_S) return
|
|
21773
|
+
if (_S) return rn;
|
|
21774
21774
|
_S = 1;
|
|
21775
21775
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), h;
|
|
21776
21776
|
h = Symbol.for("react.module.reference");
|
|
@@ -21804,41 +21804,41 @@ function p3() {
|
|
|
21804
21804
|
}
|
|
21805
21805
|
}
|
|
21806
21806
|
}
|
|
21807
|
-
return
|
|
21807
|
+
return rn.ContextConsumer = a, rn.ContextProvider = i, rn.Element = e, rn.ForwardRef = l, rn.Fragment = n, rn.Lazy = f, rn.Memo = d, rn.Portal = t, rn.Profiler = o, rn.StrictMode = r, rn.Suspense = c, rn.SuspenseList = u, rn.isAsyncMode = function() {
|
|
21808
21808
|
return !1;
|
|
21809
|
-
},
|
|
21809
|
+
}, rn.isConcurrentMode = function() {
|
|
21810
21810
|
return !1;
|
|
21811
|
-
},
|
|
21811
|
+
}, rn.isContextConsumer = function(m) {
|
|
21812
21812
|
return v(m) === a;
|
|
21813
|
-
},
|
|
21813
|
+
}, rn.isContextProvider = function(m) {
|
|
21814
21814
|
return v(m) === i;
|
|
21815
|
-
},
|
|
21815
|
+
}, rn.isElement = function(m) {
|
|
21816
21816
|
return typeof m == "object" && m !== null && m.$$typeof === e;
|
|
21817
|
-
},
|
|
21817
|
+
}, rn.isForwardRef = function(m) {
|
|
21818
21818
|
return v(m) === l;
|
|
21819
|
-
},
|
|
21819
|
+
}, rn.isFragment = function(m) {
|
|
21820
21820
|
return v(m) === n;
|
|
21821
|
-
},
|
|
21821
|
+
}, rn.isLazy = function(m) {
|
|
21822
21822
|
return v(m) === f;
|
|
21823
|
-
},
|
|
21823
|
+
}, rn.isMemo = function(m) {
|
|
21824
21824
|
return v(m) === d;
|
|
21825
|
-
},
|
|
21825
|
+
}, rn.isPortal = function(m) {
|
|
21826
21826
|
return v(m) === t;
|
|
21827
|
-
},
|
|
21827
|
+
}, rn.isProfiler = function(m) {
|
|
21828
21828
|
return v(m) === o;
|
|
21829
|
-
},
|
|
21829
|
+
}, rn.isStrictMode = function(m) {
|
|
21830
21830
|
return v(m) === r;
|
|
21831
|
-
},
|
|
21831
|
+
}, rn.isSuspense = function(m) {
|
|
21832
21832
|
return v(m) === c;
|
|
21833
|
-
},
|
|
21833
|
+
}, rn.isSuspenseList = function(m) {
|
|
21834
21834
|
return v(m) === u;
|
|
21835
|
-
},
|
|
21835
|
+
}, rn.isValidElementType = function(m) {
|
|
21836
21836
|
return typeof m == "string" || typeof m == "function" || m === n || m === o || m === r || m === c || m === u || m === p || typeof m == "object" && m !== null && (m.$$typeof === f || m.$$typeof === d || m.$$typeof === i || m.$$typeof === a || m.$$typeof === l || m.$$typeof === h || m.getModuleId !== void 0);
|
|
21837
|
-
},
|
|
21837
|
+
}, rn.typeOf = v, rn;
|
|
21838
21838
|
}
|
|
21839
|
-
var
|
|
21839
|
+
var on = {}, DS;
|
|
21840
21840
|
function h3() {
|
|
21841
|
-
if (DS) return
|
|
21841
|
+
if (DS) return on;
|
|
21842
21842
|
DS = 1;
|
|
21843
21843
|
var e = {};
|
|
21844
21844
|
/**
|
|
@@ -21935,8 +21935,8 @@ function h3() {
|
|
|
21935
21935
|
function oe(G) {
|
|
21936
21936
|
return w(G) === d;
|
|
21937
21937
|
}
|
|
21938
|
-
|
|
21939
|
-
})(),
|
|
21938
|
+
on.ContextConsumer = E, on.ContextProvider = $, on.Element = O, on.ForwardRef = k, on.Fragment = M, on.Lazy = I, on.Memo = R, on.Portal = N, on.Profiler = T, on.StrictMode = A, on.Suspense = _, on.SuspenseList = D, on.isAsyncMode = X, on.isConcurrentMode = q, on.isContextConsumer = L, on.isContextProvider = V, on.isElement = F, on.isForwardRef = U, on.isFragment = te, on.isLazy = J, on.isMemo = re, on.isPortal = ae, on.isProfiler = ne, on.isStrictMode = K, on.isSuspense = ie, on.isSuspenseList = oe, on.isValidElementType = S, on.typeOf = w;
|
|
21939
|
+
})(), on;
|
|
21940
21940
|
}
|
|
21941
21941
|
var LS;
|
|
21942
21942
|
function m3() {
|
|
@@ -22933,7 +22933,7 @@ var Ju = function(t) {
|
|
|
22933
22933
|
}), [i, s5(o, n, {
|
|
22934
22934
|
scope: r == null ? void 0 : r.scope
|
|
22935
22935
|
})];
|
|
22936
|
-
}, l5 = {}, qS = l5.NODE_ENV !== "test" && ir() ? g.useLayoutEffect : g.useEffect,
|
|
22936
|
+
}, l5 = {}, qS = l5.NODE_ENV !== "test" && ir() ? g.useLayoutEffect : g.useEffect, en = function(t, n) {
|
|
22937
22937
|
var r = g.useRef(!0);
|
|
22938
22938
|
qS(function() {
|
|
22939
22939
|
return t(r.current);
|
|
@@ -22943,12 +22943,12 @@ var Ju = function(t) {
|
|
|
22943
22943
|
};
|
|
22944
22944
|
}, []);
|
|
22945
22945
|
}, $s = function(t, n) {
|
|
22946
|
-
|
|
22946
|
+
en(function(r) {
|
|
22947
22947
|
if (!r)
|
|
22948
22948
|
return t();
|
|
22949
22949
|
}, n);
|
|
22950
22950
|
}, c5 = W({}, g), KS = c5.useInsertionEffect, u5 = function(t, n, r) {
|
|
22951
|
-
g.useMemo(t, r),
|
|
22951
|
+
g.useMemo(t, r), en(function() {
|
|
22952
22952
|
return n(!0);
|
|
22953
22953
|
}, r);
|
|
22954
22954
|
}, d5 = KS ? function(e, t, n) {
|
|
@@ -25671,7 +25671,7 @@ const Zi = {
|
|
|
25671
25671
|
}
|
|
25672
25672
|
})
|
|
25673
25673
|
}), {
|
|
25674
|
-
genStyleHooks:
|
|
25674
|
+
genStyleHooks: tn,
|
|
25675
25675
|
genComponentStyleHook: o4,
|
|
25676
25676
|
genSubStyleComponent: eM
|
|
25677
25677
|
} = JV({
|
|
@@ -26294,7 +26294,7 @@ const B4 = (e) => {
|
|
|
26294
26294
|
notification: Je,
|
|
26295
26295
|
tree: Ae,
|
|
26296
26296
|
colorPicker: Ne,
|
|
26297
|
-
datePicker:
|
|
26297
|
+
datePicker: Ke,
|
|
26298
26298
|
rangePicker: Te,
|
|
26299
26299
|
flex: Ve,
|
|
26300
26300
|
wave: _e,
|
|
@@ -26383,7 +26383,7 @@ const B4 = (e) => {
|
|
|
26383
26383
|
notification: Je,
|
|
26384
26384
|
tree: Ae,
|
|
26385
26385
|
colorPicker: Ne,
|
|
26386
|
-
datePicker:
|
|
26386
|
+
datePicker: Ke,
|
|
26387
26387
|
rangePicker: Te,
|
|
26388
26388
|
flex: Ve,
|
|
26389
26389
|
wave: _e,
|
|
@@ -26443,8 +26443,8 @@ const B4 = (e) => {
|
|
|
26443
26443
|
components: Ft,
|
|
26444
26444
|
cssVar: It
|
|
26445
26445
|
} = Ze, Xt = _4(Ze, ["algorithm", "token", "components", "cssVar"]), Kt = Ot && (!Array.isArray(Ot) || Ot.length > 0) ? Og(Ot) : WN, ln = {};
|
|
26446
|
-
Object.entries(Ft || {}).forEach(([Yt,
|
|
26447
|
-
const Ie = Object.assign({},
|
|
26446
|
+
Object.entries(Ft || {}).forEach(([Yt, nn]) => {
|
|
26447
|
+
const Ie = Object.assign({}, nn);
|
|
26448
26448
|
"algorithm" in Ie && (Ie.algorithm === !0 ? Ie.theme = Kt : (Array.isArray(Ie.algorithm) || typeof Ie.algorithm == "function") && (Ie.theme = Og(Ie.algorithm)), delete Ie.algorithm), ln[Yt] = Ie;
|
|
26449
26449
|
});
|
|
26450
26450
|
const Dn = Object.assign(Object.assign({}, xc), Nt);
|
|
@@ -26653,7 +26653,7 @@ function Y4() {
|
|
|
26653
26653
|
}
|
|
26654
26654
|
var J4 = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
26655
26655
|
SM(Us.primary);
|
|
26656
|
-
var
|
|
26656
|
+
var Sn = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
26657
26657
|
var n = e.className, r = e.icon, o = e.spin, i = e.rotate, a = e.tabIndex, s = e.onClick, l = e.twoToneColor, c = ft(e, J4), u = g.useContext(a0), d = u.prefixCls, f = d === void 0 ? "anticon" : d, p = u.rootClassName, h = Y(p, f, z(z({}, "".concat(f, "-").concat(r.name), !!r.name), "".concat(f, "-spin"), !!o || r.name === "loading"), n), v = a;
|
|
26658
26658
|
v === void 0 && s && (v = -1);
|
|
26659
26659
|
var m = i ? {
|
|
@@ -26675,39 +26675,39 @@ var xn = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
26675
26675
|
style: m
|
|
26676
26676
|
}));
|
|
26677
26677
|
});
|
|
26678
|
-
|
|
26679
|
-
|
|
26680
|
-
|
|
26678
|
+
Sn.displayName = "AntdIcon";
|
|
26679
|
+
Sn.getTwoToneColor = Y4;
|
|
26680
|
+
Sn.setTwoToneColor = SM;
|
|
26681
26681
|
var Q4 = {}, Z4 = function(t, n) {
|
|
26682
|
-
return /* @__PURE__ */ g.createElement(
|
|
26682
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
26683
26683
|
ref: n,
|
|
26684
26684
|
icon: F4
|
|
26685
26685
|
}));
|
|
26686
26686
|
}, gp = /* @__PURE__ */ g.forwardRef(Z4);
|
|
26687
26687
|
Q4.NODE_ENV !== "production" && (gp.displayName = "CheckCircleFilled");
|
|
26688
26688
|
var e6 = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" }, t6 = {}, n6 = function(t, n) {
|
|
26689
|
-
return /* @__PURE__ */ g.createElement(
|
|
26689
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
26690
26690
|
ref: n,
|
|
26691
26691
|
icon: e6
|
|
26692
26692
|
}));
|
|
26693
26693
|
}, nl = /* @__PURE__ */ g.forwardRef(n6);
|
|
26694
26694
|
t6.NODE_ENV !== "production" && (nl.displayName = "CloseCircleFilled");
|
|
26695
26695
|
var r6 = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, o6 = {}, i6 = function(t, n) {
|
|
26696
|
-
return /* @__PURE__ */ g.createElement(
|
|
26696
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
26697
26697
|
ref: n,
|
|
26698
26698
|
icon: r6
|
|
26699
26699
|
}));
|
|
26700
26700
|
}, ca = /* @__PURE__ */ g.forwardRef(i6);
|
|
26701
26701
|
o6.NODE_ENV !== "production" && (ca.displayName = "CloseOutlined");
|
|
26702
26702
|
var a6 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" }, s6 = {}, l6 = function(t, n) {
|
|
26703
|
-
return /* @__PURE__ */ g.createElement(
|
|
26703
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
26704
26704
|
ref: n,
|
|
26705
26705
|
icon: a6
|
|
26706
26706
|
}));
|
|
26707
26707
|
}, u0 = /* @__PURE__ */ g.forwardRef(l6);
|
|
26708
26708
|
s6.NODE_ENV !== "production" && (u0.displayName = "ExclamationCircleFilled");
|
|
26709
26709
|
var c6 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" }, u6 = {}, d6 = function(t, n) {
|
|
26710
|
-
return /* @__PURE__ */ g.createElement(
|
|
26710
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
26711
26711
|
ref: n,
|
|
26712
26712
|
icon: c6
|
|
26713
26713
|
}));
|
|
@@ -27246,7 +27246,7 @@ function O6() {
|
|
|
27246
27246
|
}, [x]), [E, b];
|
|
27247
27247
|
}
|
|
27248
27248
|
var k6 = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, N6 = {}, M6 = function(t, n) {
|
|
27249
|
-
return /* @__PURE__ */ g.createElement(
|
|
27249
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
27250
27250
|
ref: n,
|
|
27251
27251
|
icon: k6
|
|
27252
27252
|
}));
|
|
@@ -27495,7 +27495,7 @@ const Fc = (e, t) => {
|
|
|
27495
27495
|
zIndexPopup: e.zIndexPopupBase + f0 + 10,
|
|
27496
27496
|
contentBg: e.colorBgElevated,
|
|
27497
27497
|
contentPadding: `${(e.controlHeightLG - e.fontSize * e.lineHeight) / 2}px ${e.paddingSM}px`
|
|
27498
|
-
}), MM =
|
|
27498
|
+
}), MM = tn("Message", (e) => {
|
|
27499
27499
|
const t = Dt(e, {
|
|
27500
27500
|
height: 150
|
|
27501
27501
|
});
|
|
@@ -28292,7 +28292,7 @@ const Wr = (e) => {
|
|
|
28292
28292
|
}
|
|
28293
28293
|
}
|
|
28294
28294
|
};
|
|
28295
|
-
}, SW =
|
|
28295
|
+
}, SW = tn(["Space", "Compact"], (e) => [CW(e)], () => ({}), {
|
|
28296
28296
|
// Space component don't apply extra font style
|
|
28297
28297
|
// https://github.com/ant-design/ant-design/issues/40315
|
|
28298
28298
|
resetStyle: !1
|
|
@@ -29037,7 +29037,7 @@ let zr = /* @__PURE__ */ (function() {
|
|
|
29037
29037
|
}]);
|
|
29038
29038
|
})();
|
|
29039
29039
|
var UW = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, qW = {}, KW = function(t, n) {
|
|
29040
|
-
return /* @__PURE__ */ g.createElement(
|
|
29040
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
29041
29041
|
ref: n,
|
|
29042
29042
|
icon: UW
|
|
29043
29043
|
}));
|
|
@@ -29970,7 +29970,7 @@ const n8 = /* @__PURE__ */ g.forwardRef((e, t) => {
|
|
|
29970
29970
|
contentBg: e.colorBgContainer,
|
|
29971
29971
|
borderlessContentPadding: `${e.paddingXXS}px 16px ${e.padding}px`,
|
|
29972
29972
|
borderlessContentBg: "transparent"
|
|
29973
|
-
}), L8 =
|
|
29973
|
+
}), L8 = tn("Collapse", (e) => {
|
|
29974
29974
|
const t = Dt(e, {
|
|
29975
29975
|
collapseHeaderPaddingSM: `${Z(e.paddingXS)} ${Z(e.paddingSM)}`,
|
|
29976
29976
|
collapseHeaderPaddingLG: `${Z(e.padding)} ${Z(e.paddingLG)}`,
|
|
@@ -30617,7 +30617,7 @@ const z8 = Object.assign(YM, {
|
|
|
30617
30617
|
}
|
|
30618
30618
|
}
|
|
30619
30619
|
};
|
|
30620
|
-
}, n9 =
|
|
30620
|
+
}, n9 = tn("Button", (e) => {
|
|
30621
30621
|
const t = ZM(e);
|
|
30622
30622
|
return [
|
|
30623
30623
|
// Shared
|
|
@@ -30853,7 +30853,7 @@ const f9 = {
|
|
|
30853
30853
|
} = xr("button"), F = (n = $ ?? H) !== null && n !== void 0 ? n : !0, U = D("btn", i), [te, J, re] = n9(U), ae = pt(ao), ne = p ?? ae, K = pt(LM), ie = $n(() => d9(o), [o]), [oe, G] = $e(ie.loading), [Q, le] = $e(!1), se = de(null), ue = Si(t, se), pe = AP.count(m) === 1 && !b && !Iu(T), fe = de(!0);
|
|
30854
30854
|
j.useEffect(() => (fe.current = !1, () => {
|
|
30855
30855
|
fe.current = !0;
|
|
30856
|
-
}), []),
|
|
30856
|
+
}), []), en(() => {
|
|
30857
30857
|
let we = null;
|
|
30858
30858
|
ie.delay > 0 ? we = setTimeout(() => {
|
|
30859
30859
|
we = null, G(!0);
|
|
@@ -30892,7 +30892,7 @@ const f9 = {
|
|
|
30892
30892
|
}, Fe = Wr((we) => {
|
|
30893
30893
|
var ot, St;
|
|
30894
30894
|
return (St = (ot = d ?? Se) !== null && ot !== void 0 ? ot : K) !== null && St !== void 0 ? St : we;
|
|
30895
|
-
}), Je = Fe && (r = xe[Fe]) !== null && r !== void 0 ? r : "", Ae = oe ? "loading" : b, Ne = zn(k, ["navigate"]),
|
|
30895
|
+
}), Je = Fe && (r = xe[Fe]) !== null && r !== void 0 ? r : "", Ae = oe ? "loading" : b, Ne = zn(k, ["navigate"]), Ke = Y(U, J, re, {
|
|
30896
30896
|
[`${U}-${R}`]: R !== "default" && R,
|
|
30897
30897
|
// Compatible with versions earlier than 5.21.0
|
|
30898
30898
|
[`${U}-${M}`]: M,
|
|
@@ -30922,7 +30922,7 @@ const f9 = {
|
|
|
30922
30922
|
const ye = m || m === 0 ? NW(m, pe && F) : null;
|
|
30923
30923
|
if (Ne.href !== void 0)
|
|
30924
30924
|
return te(/* @__PURE__ */ j.createElement("a", Object.assign({}, Ne, {
|
|
30925
|
-
className: Y(
|
|
30925
|
+
className: Y(Ke, {
|
|
30926
30926
|
[`${U}-disabled`]: ne
|
|
30927
30927
|
}),
|
|
30928
30928
|
href: ne ? void 0 : Ne.href,
|
|
@@ -30934,7 +30934,7 @@ const f9 = {
|
|
|
30934
30934
|
}), ve, ye));
|
|
30935
30935
|
let We = /* @__PURE__ */ j.createElement("button", Object.assign({}, k, {
|
|
30936
30936
|
type: S,
|
|
30937
|
-
className:
|
|
30937
|
+
className: Ke,
|
|
30938
30938
|
style: Te,
|
|
30939
30939
|
onClick: ke,
|
|
30940
30940
|
disabled: ne,
|
|
@@ -31079,9 +31079,9 @@ function m9(e, t) {
|
|
|
31079
31079
|
var h;
|
|
31080
31080
|
(h = o.parentElement) === null || h === void 0 || h.removeChild(o), i.current = !1;
|
|
31081
31081
|
}
|
|
31082
|
-
return
|
|
31082
|
+
return en(function() {
|
|
31083
31083
|
return e ? a ? a(f) : f() : p(), p;
|
|
31084
|
-
}, [e]),
|
|
31084
|
+
}, [e]), en(function() {
|
|
31085
31085
|
c.length && (c.forEach(function(h) {
|
|
31086
31086
|
return h();
|
|
31087
31087
|
}), u(Gx));
|
|
@@ -31129,7 +31129,7 @@ function C9(e) {
|
|
|
31129
31129
|
var t = !!e, n = g.useState(function() {
|
|
31130
31130
|
return Xx += 1, "".concat(y9, "_").concat(Xx);
|
|
31131
31131
|
}), r = ee(n, 1), o = r[0];
|
|
31132
|
-
|
|
31132
|
+
en(function() {
|
|
31133
31133
|
if (t) {
|
|
31134
31134
|
var i = v9(document.body).width, a = b9();
|
|
31135
31135
|
fi(`
|
|
@@ -33853,7 +33853,7 @@ const N7 = ({
|
|
|
33853
33853
|
paragraphMarginTop: e.marginLG + e.marginXXS,
|
|
33854
33854
|
paragraphLiHeight: e.controlHeight / 2
|
|
33855
33855
|
};
|
|
33856
|
-
}, ol =
|
|
33856
|
+
}, ol = tn("Skeleton", (e) => {
|
|
33857
33857
|
const {
|
|
33858
33858
|
componentCls: t,
|
|
33859
33859
|
calc: n
|
|
@@ -34302,7 +34302,7 @@ const yI = (e) => {
|
|
|
34302
34302
|
}, gv = (e, t) => nU(e, t), rU = (e, t, n) => ({
|
|
34303
34303
|
[`@media (min-width: ${Z(t)})`]: Object.assign({}, gv(e, n))
|
|
34304
34304
|
}), oU = () => ({}), iU = () => ({});
|
|
34305
|
-
|
|
34305
|
+
tn("Grid", eU, oU);
|
|
34306
34306
|
const CI = (e) => ({
|
|
34307
34307
|
xs: e.screenXSMin,
|
|
34308
34308
|
sm: e.screenSMMin,
|
|
@@ -34311,7 +34311,7 @@ const CI = (e) => ({
|
|
|
34311
34311
|
xl: e.screenXLMin,
|
|
34312
34312
|
xxl: e.screenXXLMin
|
|
34313
34313
|
});
|
|
34314
|
-
|
|
34314
|
+
tn("Grid", (e) => {
|
|
34315
34315
|
const t = Dt(e, {
|
|
34316
34316
|
gridColumns: 24
|
|
34317
34317
|
// Row is divided into 24 parts in Grid
|
|
@@ -34598,7 +34598,7 @@ const aU = (e) => {
|
|
|
34598
34598
|
confirmBodyPadding: e.wireframe ? `${Z(e.padding * 2)} ${Z(e.padding * 2)} ${Z(e.paddingLG)}` : 0,
|
|
34599
34599
|
confirmIconMarginInlineEnd: e.wireframe ? e.margin : e.marginSM,
|
|
34600
34600
|
confirmBtnsMarginTop: e.wireframe ? e.marginLG : e.marginSM
|
|
34601
|
-
}), wI =
|
|
34601
|
+
}), wI = tn("Modal", (e) => {
|
|
34602
34602
|
const t = SI(e);
|
|
34603
34603
|
return [sU(t), lU(t), aU(t), Vc(t, "zoom"), cU(t)];
|
|
34604
34604
|
}, xI, {
|
|
@@ -35459,15 +35459,15 @@ function zU(e) {
|
|
|
35459
35459
|
function BU(e, t) {
|
|
35460
35460
|
var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, o = e.data, i = o === void 0 ? [] : o, a = e.renderItem, s = e.renderRawItem, l = e.itemKey, c = e.itemWidth, u = c === void 0 ? 10 : c, d = e.ssr, f = e.style, p = e.className, h = e.maxCount, v = e.renderRest, m = e.renderRawRest, b = e.prefix, y = e.suffix, C = e.component, x = C === void 0 ? "div" : C, S = e.itemComponent, w = e.onVisibleChange, E = ft(e, LU), $ = d === "full", O = RU(), k = ss(O, null), M = ee(k, 2), I = M[0], R = M[1], N = I || 0, T = ss(O, /* @__PURE__ */ new Map()), A = ee(T, 2), _ = A[0], D = A[1], B = ss(O, 0), H = ee(B, 2), X = H[0], q = H[1], L = ss(O, 0), V = ee(L, 2), F = V[0], U = V[1], te = ss(O, 0), J = ee(te, 2), re = J[0], ae = J[1], ne = ss(O, 0), K = ee(ne, 2), ie = K[0], oe = K[1], G = $e(null), Q = ee(G, 2), le = Q[0], se = Q[1], ue = $e(null), pe = ee(ue, 2), fe = pe[0], ke = pe[1], Se = g.useMemo(function() {
|
|
35461
35461
|
return fe === null && $ ? Number.MAX_SAFE_INTEGER : fe || 0;
|
|
35462
|
-
}, [fe, I]), ce = $e(!1), xe = ee(ce, 2), Fe = xe[0], Je = xe[1], Ae = "".concat(r, "-item"), Ne = Math.max(X, F),
|
|
35462
|
+
}, [fe, I]), ce = $e(!1), xe = ee(ce, 2), Fe = xe[0], Je = xe[1], Ae = "".concat(r, "-item"), Ne = Math.max(X, F), Ke = h === zI, Te = i.length && Ke, Ve = h === BI, _e = Te || typeof h == "number" && i.length > h, Me = $n(function() {
|
|
35463
35463
|
var be = i;
|
|
35464
35464
|
return Te ? I === null && $ ? be = i : be = i.slice(0, Math.min(i.length, N / u)) : typeof h == "number" && (be = i.slice(0, h)), be;
|
|
35465
35465
|
}, [i, u, I, h, Te]), Qe = $n(function() {
|
|
35466
35466
|
return Te ? i.slice(Se + 1) : i.slice(Me.length);
|
|
35467
|
-
}, [i, Me, Te, Se]), ve =
|
|
35467
|
+
}, [i, Me, Te, Se]), ve = an(function(be, me) {
|
|
35468
35468
|
var Ee;
|
|
35469
35469
|
return typeof l == "function" ? l(be) : (Ee = l && (be == null ? void 0 : be[l])) !== null && Ee !== void 0 ? Ee : me;
|
|
35470
|
-
}, [l]), ye =
|
|
35470
|
+
}, [l]), ye = an(a || function(be) {
|
|
35471
35471
|
return be;
|
|
35472
35472
|
}, [a]);
|
|
35473
35473
|
function We(be, me, Ee) {
|
|
@@ -35494,7 +35494,7 @@ function BU(e, t) {
|
|
|
35494
35494
|
function tt(be) {
|
|
35495
35495
|
return _.get(ve(Me[be], be));
|
|
35496
35496
|
}
|
|
35497
|
-
|
|
35497
|
+
en(function() {
|
|
35498
35498
|
if (N && typeof Ne == "number" && Me) {
|
|
35499
35499
|
var be = re + ie, me = Me.length, Ee = me - 1;
|
|
35500
35500
|
if (!me) {
|
|
@@ -35566,14 +35566,14 @@ function BU(e, t) {
|
|
|
35566
35566
|
style: f,
|
|
35567
35567
|
ref: t
|
|
35568
35568
|
}, E), b && /* @__PURE__ */ g.createElement(Ss, ge({}, Tt, {
|
|
35569
|
-
responsive:
|
|
35569
|
+
responsive: Ke,
|
|
35570
35570
|
responsiveDisabled: !Te,
|
|
35571
35571
|
order: -1,
|
|
35572
35572
|
className: "".concat(Ae, "-prefix"),
|
|
35573
35573
|
registerSize: De,
|
|
35574
35574
|
display: !0
|
|
35575
35575
|
}), b), Me.map($t), _e ? gt : null, y && /* @__PURE__ */ g.createElement(Ss, ge({}, Tt, {
|
|
35576
|
-
responsive:
|
|
35576
|
+
responsive: Ke,
|
|
35577
35577
|
responsiveDisabled: !Te,
|
|
35578
35578
|
order: Se,
|
|
35579
35579
|
className: "".concat(Ae, "-suffix"),
|
|
@@ -35581,7 +35581,7 @@ function BU(e, t) {
|
|
|
35581
35581
|
display: !0,
|
|
35582
35582
|
style: ct
|
|
35583
35583
|
}), y));
|
|
35584
|
-
return
|
|
35584
|
+
return Ke ? /* @__PURE__ */ g.createElement(ro, {
|
|
35585
35585
|
onResize: we,
|
|
35586
35586
|
disabled: !Te
|
|
35587
35587
|
}, ze) : ze;
|
|
@@ -35911,7 +35911,7 @@ var rq = {}, HI = /* @__PURE__ */ g.memo(function(e) {
|
|
|
35911
35911
|
rq.NODE_ENV !== "production" && (HI.displayName = "PopupContent");
|
|
35912
35912
|
var oq = {}, VI = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
35913
35913
|
var n = e.popup, r = e.className, o = e.prefixCls, i = e.style, a = e.target, s = e.onVisibleChanged, l = e.open, c = e.keepDom, u = e.fresh, d = e.onClick, f = e.mask, p = e.arrow, h = e.arrowPos, v = e.align, m = e.motion, b = e.maskMotion, y = e.forceRender, C = e.getPopupContainer, x = e.autoDestroy, S = e.portal, w = e.zIndex, E = e.onMouseEnter, $ = e.onMouseLeave, O = e.onPointerEnter, k = e.onPointerDownCapture, M = e.ready, I = e.offsetX, R = e.offsetY, N = e.offsetR, T = e.offsetB, A = e.onAlign, _ = e.onPrepare, D = e.stretch, B = e.targetWidth, H = e.targetHeight, X = typeof n == "function" ? n() : n, q = l || c, L = (C == null ? void 0 : C.length) > 0, V = g.useState(!C || !L), F = ee(V, 2), U = F[0], te = F[1];
|
|
35914
|
-
if (
|
|
35914
|
+
if (en(function() {
|
|
35915
35915
|
!U && L && a && te(!0);
|
|
35916
35916
|
}, [U, L, a]), !U)
|
|
35917
35917
|
return null;
|
|
@@ -36108,8 +36108,8 @@ function cq(e, t, n, r, o, i, a) {
|
|
|
36108
36108
|
var v = Vt(function() {
|
|
36109
36109
|
if (t && n && e) {
|
|
36110
36110
|
let qr = function(dl, Zo) {
|
|
36111
|
-
var wi = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : xe, fl = q.x + dl, nu = q.y + Zo, Jp = fl + oe, Qp = nu + ie, Zp = Math.max(fl, wi.left), st = Math.max(nu, wi.top), Et = Math.min(Jp, wi.right),
|
|
36112
|
-
return Math.max(0, (Et - Zp) * (
|
|
36111
|
+
var wi = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : xe, fl = q.x + dl, nu = q.y + Zo, Jp = fl + oe, Qp = nu + ie, Zp = Math.max(fl, wi.left), st = Math.max(nu, wi.top), Et = Math.min(Jp, wi.right), wn = Math.min(Qp, wi.bottom);
|
|
36112
|
+
return Math.max(0, (Et - Zp) * (wn - st));
|
|
36113
36113
|
}, Za = function() {
|
|
36114
36114
|
Kt = q.y + vt, ln = Kt + ie, Dn = q.x + at, Yt = Dn + oe;
|
|
36115
36115
|
};
|
|
@@ -36153,22 +36153,22 @@ function cq(e, t, n, r, o, i, a) {
|
|
|
36153
36153
|
var Ae = Oc(Math.round(oe / parseFloat(F) * 1e3) / 1e3), Ne = Oc(Math.round(ie / parseFloat(V) * 1e3) / 1e3);
|
|
36154
36154
|
if (Ae === 0 || Ne === 0 || gc(n) && !v0(n))
|
|
36155
36155
|
return;
|
|
36156
|
-
var
|
|
36156
|
+
var Ke = A.offset, Te = A.targetOffset, Ve = Ow(q, Ke), _e = ee(Ve, 2), Me = _e[0], Qe = _e[1], ve = Ow(D, Te), ye = ee(ve, 2), We = ye[0], we = ye[1];
|
|
36157
36157
|
D.x -= We, D.y -= we;
|
|
36158
36158
|
var ot = A.points || [], St = ee(ot, 2), De = St[0], Be = St[1], tt = kw(Be), He = kw(De), ct = ls(D, tt), Tt = ls(q, He), $t = W({}, A), at = ct.x - Tt.x + Me, vt = ct.y - Tt.y + Qe, gt = qr(at, vt), ze = qr(at, vt, ce), be = ls(D, ["t", "l"]), me = ls(q, ["t", "l"]), Ee = ls(D, ["b", "r"]), nt = ls(q, ["b", "r"]), Ze = A.overflow || {}, Ot = Ze.adjustX, Nt = Ze.adjustY, Ft = Ze.shiftX, It = Ze.shiftY, Xt = function(Zo) {
|
|
36159
36159
|
return typeof Zo == "boolean" ? Zo : Zo >= 0;
|
|
36160
36160
|
}, Kt, ln, Dn, Yt;
|
|
36161
36161
|
Za();
|
|
36162
|
-
var
|
|
36163
|
-
if (
|
|
36164
|
-
var
|
|
36165
|
-
Ie ?
|
|
36166
|
-
var Ue = qr(at,
|
|
36162
|
+
var nn = Xt(Nt), Ie = He[0] === tt[0];
|
|
36163
|
+
if (nn && He[0] === "t" && (ln > Fe.bottom || p.current.bt)) {
|
|
36164
|
+
var Ge = vt;
|
|
36165
|
+
Ie ? Ge -= ie - G : Ge = be.y - nt.y - Qe;
|
|
36166
|
+
var Ue = qr(at, Ge), Re = qr(at, Ge, ce);
|
|
36167
36167
|
// Of course use larger one
|
|
36168
36168
|
Ue > gt || Ue === gt && (!ke || // Choose recommend one
|
|
36169
|
-
Re >= ze) ? (p.current.bt = !0, vt =
|
|
36169
|
+
Re >= ze) ? (p.current.bt = !0, vt = Ge, Qe = -Qe, $t.points = [Oi(He, 0), Oi(tt, 0)]) : p.current.bt = !1;
|
|
36170
36170
|
}
|
|
36171
|
-
if (
|
|
36171
|
+
if (nn && He[0] === "b" && (Kt < Fe.top || p.current.tb)) {
|
|
36172
36172
|
var Le = vt;
|
|
36173
36173
|
Ie ? Le += ie - G : Le = Ee.y - me.y - Qe;
|
|
36174
36174
|
var Pe = qr(at, Le), et = qr(at, Le, ce);
|
|
@@ -36186,12 +36186,12 @@ function cq(e, t, n, r, o, i, a) {
|
|
|
36186
36186
|
Tn >= ze) ? (p.current.rl = !0, at = Pt, Me = -Me, $t.points = [Oi(He, 1), Oi(tt, 1)]) : p.current.rl = !1;
|
|
36187
36187
|
}
|
|
36188
36188
|
if (xt && He[1] === "r" && (Dn < Fe.left || p.current.lr)) {
|
|
36189
|
-
var
|
|
36190
|
-
kt ?
|
|
36191
|
-
var Nn = qr(
|
|
36189
|
+
var xn = at;
|
|
36190
|
+
kt ? xn += oe - Q : xn = Ee.x - me.x - Me;
|
|
36191
|
+
var Nn = qr(xn, vt), Gn = qr(xn, vt, ce);
|
|
36192
36192
|
// Of course use larger one
|
|
36193
36193
|
Nn > gt || Nn === gt && (!ke || // Choose recommend one
|
|
36194
|
-
Gn >= ze) ? (p.current.lr = !0, at =
|
|
36194
|
+
Gn >= ze) ? (p.current.lr = !0, at = xn, Me = -Me, $t.points = [Oi(He, 1), Oi(tt, 1)]) : p.current.lr = !1;
|
|
36195
36195
|
}
|
|
36196
36196
|
Za();
|
|
36197
36197
|
var Bn = Ft === !0 ? 0 : Ft;
|
|
@@ -36229,12 +36229,12 @@ function cq(e, t, n, r, o, i, a) {
|
|
|
36229
36229
|
});
|
|
36230
36230
|
});
|
|
36231
36231
|
};
|
|
36232
|
-
return
|
|
36232
|
+
return en(b, [r]), en(function() {
|
|
36233
36233
|
e || b();
|
|
36234
36234
|
}, [e]), [c.ready, c.offsetX, c.offsetY, c.offsetR, c.offsetB, c.arrowX, c.arrowY, c.scaleX, c.scaleY, c.align, m];
|
|
36235
36235
|
}
|
|
36236
36236
|
function uq(e, t, n, r, o) {
|
|
36237
|
-
|
|
36237
|
+
en(function() {
|
|
36238
36238
|
if (e && t && n) {
|
|
36239
36239
|
let d = function() {
|
|
36240
36240
|
r(), o();
|
|
@@ -36287,28 +36287,28 @@ var pq = {}, hq = ["prefixCls", "children", "action", "showAction", "hideAction"
|
|
|
36287
36287
|
function mq() {
|
|
36288
36288
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Op, t = /* @__PURE__ */ g.forwardRef(function(n, r) {
|
|
36289
36289
|
var o = n.prefixCls, i = o === void 0 ? "rc-trigger-popup" : o, a = n.children, s = n.action, l = s === void 0 ? "hover" : s, c = n.showAction, u = n.hideAction, d = n.popupVisible, f = n.defaultPopupVisible, p = n.onPopupVisibleChange, h = n.afterPopupVisibleChange, v = n.mouseEnterDelay, m = n.mouseLeaveDelay, b = m === void 0 ? 0.1 : m, y = n.focusDelay, C = n.blurDelay, x = n.mask, S = n.maskClosable, w = S === void 0 ? !0 : S, E = n.getPopupContainer, $ = n.forceRender, O = n.autoDestroy, k = n.destroyPopupOnHide, M = n.popup, I = n.popupClassName, R = n.popupStyle, N = n.popupPlacement, T = n.builtinPlacements, A = T === void 0 ? {} : T, _ = n.popupAlign, D = n.zIndex, B = n.stretch, H = n.getPopupClassNameFromAlign, X = n.fresh, q = n.alignPoint, L = n.onPopupClick, V = n.onPopupAlign, F = n.arrow, U = n.popupMotion, te = n.maskMotion, J = n.popupTransitionName, re = n.popupAnimation, ae = n.maskTransitionName, ne = n.maskAnimation, K = n.className, ie = n.getTriggerDOMNode, oe = ft(n, hq), G = O || k || !1, Q = g.useState(!1), le = ee(Q, 2), se = le[0], ue = le[1];
|
|
36290
|
-
|
|
36290
|
+
en(function() {
|
|
36291
36291
|
ue(Ip());
|
|
36292
36292
|
}, []);
|
|
36293
36293
|
var pe = g.useRef({}), fe = g.useContext(Sw), ke = g.useMemo(function() {
|
|
36294
36294
|
return {
|
|
36295
|
-
registerSubPopup: function(Et,
|
|
36296
|
-
pe.current[Et] =
|
|
36295
|
+
registerSubPopup: function(Et, wn) {
|
|
36296
|
+
pe.current[Et] = wn, fe == null || fe.registerSubPopup(Et, wn);
|
|
36297
36297
|
}
|
|
36298
36298
|
};
|
|
36299
36299
|
}, [fe]), Se = kp(), ce = g.useState(null), xe = ee(ce, 2), Fe = xe[0], Je = xe[1], Ae = g.useRef(null), Ne = Vt(function(st) {
|
|
36300
36300
|
Ae.current = st, gc(st) && Fe !== st && Je(st), fe == null || fe.registerSubPopup(Se, st);
|
|
36301
|
-
}),
|
|
36301
|
+
}), Ke = g.useState(null), Te = ee(Ke, 2), Ve = Te[0], _e = Te[1], Me = g.useRef(null), Qe = Vt(function(st) {
|
|
36302
36302
|
gc(st) && Ve !== st && (_e(st), Me.current = st);
|
|
36303
36303
|
}), ve = g.Children.only(a), ye = (ve == null ? void 0 : ve.props) || {}, We = {}, we = Vt(function(st) {
|
|
36304
|
-
var Et,
|
|
36305
|
-
return (qn == null ? void 0 : qn.contains(st)) || ((Et = bf(qn)) === null || Et === void 0 ? void 0 : Et.host) === st || st === qn || (Fe == null ? void 0 : Fe.contains(st)) || ((
|
|
36304
|
+
var Et, wn, qn = Ve;
|
|
36305
|
+
return (qn == null ? void 0 : qn.contains(st)) || ((Et = bf(qn)) === null || Et === void 0 ? void 0 : Et.host) === st || st === qn || (Fe == null ? void 0 : Fe.contains(st)) || ((wn = bf(Fe)) === null || wn === void 0 ? void 0 : wn.host) === st || st === Fe || Object.values(pe.current).some(function(Rn) {
|
|
36306
36306
|
return (Rn == null ? void 0 : Rn.contains(st)) || st === Rn;
|
|
36307
36307
|
});
|
|
36308
36308
|
}), ot = ww(i, U, re, J), St = ww(i, te, ne, ae), De = g.useState(f || !1), Be = ee(De, 2), tt = Be[0], He = Be[1], ct = d ?? tt, Tt = Vt(function(st) {
|
|
36309
36309
|
d === void 0 && He(st);
|
|
36310
36310
|
});
|
|
36311
|
-
|
|
36311
|
+
en(function() {
|
|
36312
36312
|
He(d || !1);
|
|
36313
36313
|
}, [d]);
|
|
36314
36314
|
var $t = g.useRef(ct);
|
|
@@ -36321,28 +36321,28 @@ function mq() {
|
|
|
36321
36321
|
}), gt = g.useRef(), ze = function() {
|
|
36322
36322
|
clearTimeout(gt.current);
|
|
36323
36323
|
}, be = function(Et) {
|
|
36324
|
-
var
|
|
36325
|
-
ze(),
|
|
36324
|
+
var wn = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
36325
|
+
ze(), wn === 0 ? vt(Et) : gt.current = setTimeout(function() {
|
|
36326
36326
|
vt(Et);
|
|
36327
|
-
},
|
|
36327
|
+
}, wn * 1e3);
|
|
36328
36328
|
};
|
|
36329
36329
|
g.useEffect(function() {
|
|
36330
36330
|
return ze;
|
|
36331
36331
|
}, []);
|
|
36332
36332
|
var me = g.useState(!1), Ee = ee(me, 2), nt = Ee[0], Ze = Ee[1];
|
|
36333
|
-
|
|
36333
|
+
en(function(st) {
|
|
36334
36334
|
(!st || ct) && Ze(!0);
|
|
36335
36335
|
}, [ct]);
|
|
36336
36336
|
var Ot = g.useState(null), Nt = ee(Ot, 2), Ft = Nt[0], It = Nt[1], Xt = g.useState(null), Kt = ee(Xt, 2), ln = Kt[0], Dn = Kt[1], Yt = function(Et) {
|
|
36337
36337
|
Dn([Et.clientX, Et.clientY]);
|
|
36338
|
-
},
|
|
36338
|
+
}, nn = cq(ct, Fe, q && ln !== null ? ln : Ve, N, A, _, V), Ie = ee(nn, 11), Ge = Ie[0], Ue = Ie[1], Re = Ie[2], Le = Ie[3], Pe = Ie[4], et = Ie[5], xt = Ie[6], kt = Ie[7], Pt = Ie[8], Jt = Ie[9], Tn = Ie[10], xn = aq(se, l, c, u), Nn = ee(xn, 2), Gn = Nn[0], Bn = Nn[1], pr = Gn.has("click"), wr = Bn.has("click") || Bn.has("contextMenu"), Ur = Vt(function() {
|
|
36339
36339
|
nt || Tn();
|
|
36340
36340
|
}), Po = function() {
|
|
36341
36341
|
$t.current && q && wr && be(!1);
|
|
36342
36342
|
};
|
|
36343
|
-
uq(ct, Ve, Fe, Ur, Po),
|
|
36343
|
+
uq(ct, Ve, Fe, Ur, Po), en(function() {
|
|
36344
36344
|
Ur();
|
|
36345
|
-
}, [ln, N]),
|
|
36345
|
+
}, [ln, N]), en(function() {
|
|
36346
36346
|
ct && !(A != null && A[N]) && Ur();
|
|
36347
36347
|
}, [JSON.stringify(_)]);
|
|
36348
36348
|
var Qo = g.useMemo(function() {
|
|
@@ -36372,13 +36372,13 @@ function mq() {
|
|
|
36372
36372
|
});
|
|
36373
36373
|
});
|
|
36374
36374
|
};
|
|
36375
|
-
|
|
36375
|
+
en(function() {
|
|
36376
36376
|
Ft && (Tn(), Ft(), It(null));
|
|
36377
36377
|
}, [Ft]);
|
|
36378
|
-
function Un(st, Et,
|
|
36378
|
+
function Un(st, Et, wn, qn) {
|
|
36379
36379
|
We[st] = function(Rn) {
|
|
36380
36380
|
var ru;
|
|
36381
|
-
qn == null || qn(Rn), be(Et,
|
|
36381
|
+
qn == null || qn(Rn), be(Et, wn);
|
|
36382
36382
|
for (var eh = arguments.length, Ey = new Array(eh > 1 ? eh - 1 : 0), ou = 1; ou < eh; ou++)
|
|
36383
36383
|
Ey[ou - 1] = arguments[ou];
|
|
36384
36384
|
(ru = ye[st]) === null || ru === void 0 || ru.call.apply(ru, [ye, Rn].concat(Ey));
|
|
@@ -36387,7 +36387,7 @@ function mq() {
|
|
|
36387
36387
|
(pr || wr) && (We.onClick = function(st) {
|
|
36388
36388
|
var Et;
|
|
36389
36389
|
$t.current && wr ? be(!1) : !$t.current && pr && (Yt(st), be(!0));
|
|
36390
|
-
for (var
|
|
36390
|
+
for (var wn = arguments.length, qn = new Array(wn > 1 ? wn - 1 : 0), Rn = 1; Rn < wn; Rn++)
|
|
36391
36391
|
qn[Rn - 1] = arguments[Rn];
|
|
36392
36392
|
(Et = ye.onClick) === null || Et === void 0 || Et.call.apply(Et, [ye, st].concat(qn));
|
|
36393
36393
|
});
|
|
@@ -36406,7 +36406,7 @@ function mq() {
|
|
|
36406
36406
|
}), Gn.has("focus") && Un("onFocus", !0, y), Bn.has("focus") && Un("onBlur", !1, C), Gn.has("contextMenu") && (We.onContextMenu = function(st) {
|
|
36407
36407
|
var Et;
|
|
36408
36408
|
$t.current && Bn.has("contextMenu") ? be(!1) : (Yt(st), be(!0)), st.preventDefault();
|
|
36409
|
-
for (var
|
|
36409
|
+
for (var wn = arguments.length, qn = new Array(wn > 1 ? wn - 1 : 0), Rn = 1; Rn < wn; Rn++)
|
|
36410
36410
|
qn[Rn - 1] = arguments[Rn];
|
|
36411
36411
|
(Et = ye.onContextMenu) === null || Et === void 0 || Et.call.apply(Et, [ye, st].concat(qn));
|
|
36412
36412
|
}), K && (We.className = Y(ye.className, K));
|
|
@@ -36415,7 +36415,7 @@ function mq() {
|
|
|
36415
36415
|
var wi = W(W({}, ye), We), fl = {}, nu = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
|
|
36416
36416
|
nu.forEach(function(st) {
|
|
36417
36417
|
oe[st] && (fl[st] = function() {
|
|
36418
|
-
for (var Et,
|
|
36418
|
+
for (var Et, wn = arguments.length, qn = new Array(wn), Rn = 0; Rn < wn; Rn++)
|
|
36419
36419
|
qn[Rn] = arguments[Rn];
|
|
36420
36420
|
(Et = wi[st]) === null || Et === void 0 || Et.call.apply(Et, [wi].concat(qn)), oe[st].apply(oe, qn);
|
|
36421
36421
|
});
|
|
@@ -36460,7 +36460,7 @@ function mq() {
|
|
|
36460
36460
|
align: Jt,
|
|
36461
36461
|
arrow: Zp,
|
|
36462
36462
|
arrowPos: Qp,
|
|
36463
|
-
ready:
|
|
36463
|
+
ready: Ge,
|
|
36464
36464
|
offsetX: Ue,
|
|
36465
36465
|
offsetY: Re,
|
|
36466
36466
|
offsetR: Le,
|
|
@@ -36653,7 +36653,7 @@ var wq = {}, Eq = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
36653
36653
|
g.useEffect(function() {
|
|
36654
36654
|
xe(Ip());
|
|
36655
36655
|
}, []);
|
|
36656
|
-
var Fe = g.useRef(null), Je = g.useRef(null), Ae = g.useRef(null), Ne = g.useRef(null),
|
|
36656
|
+
var Fe = g.useRef(null), Je = g.useRef(null), Ae = g.useRef(null), Ne = g.useRef(null), Ke = g.useRef(null), Te = g.useRef(!1), Ve = OU(), _e = ee(Ve, 3), Me = _e[0], Qe = _e[1], ve = _e[2];
|
|
36657
36657
|
g.useImperativeHandle(t, function() {
|
|
36658
36658
|
var Rt, rt;
|
|
36659
36659
|
return {
|
|
@@ -36661,7 +36661,7 @@ var wq = {}, Eq = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
36661
36661
|
blur: (rt = Ne.current) === null || rt === void 0 ? void 0 : rt.blur,
|
|
36662
36662
|
scrollTo: function(Mt) {
|
|
36663
36663
|
var zt;
|
|
36664
|
-
return (zt =
|
|
36664
|
+
return (zt = Ke.current) === null || zt === void 0 ? void 0 : zt.scrollTo(Mt);
|
|
36665
36665
|
},
|
|
36666
36666
|
nativeElement: Fe.current || Je.current
|
|
36667
36667
|
};
|
|
@@ -36673,7 +36673,7 @@ var wq = {}, Eq = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
36673
36673
|
var rt = (Rt = u[0]) === null || Rt === void 0 ? void 0 : Rt.value;
|
|
36674
36674
|
return typeof rt == "string" || typeof rt == "number" ? String(rt) : "";
|
|
36675
36675
|
}, [M, m, u]), We = m === "combobox" && typeof C == "function" && C() || null, we = typeof x == "function" && x(), ot = Si(Je, we == null || (n = we.props) === null || n === void 0 ? void 0 : n.ref), St = g.useState(!1), De = ee(St, 2), Be = De[0], tt = De[1];
|
|
36676
|
-
|
|
36676
|
+
en(function() {
|
|
36677
36677
|
tt(!0);
|
|
36678
36678
|
}, []);
|
|
36679
36679
|
var He = bn(!1, {
|
|
@@ -36728,7 +36728,7 @@ var wq = {}, Eq = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
36728
36728
|
$r[Or - 1] = arguments[Or];
|
|
36729
36729
|
if (at && (!zt || !Kt.current)) {
|
|
36730
36730
|
var Un;
|
|
36731
|
-
zt && (Kt.current = !0), (Un =
|
|
36731
|
+
zt && (Kt.current = !0), (Un = Ke.current) === null || Un === void 0 || Un.onKeyDown.apply(Un, [rt].concat($r));
|
|
36732
36732
|
}
|
|
36733
36733
|
Q == null || Q.apply(void 0, [rt].concat($r));
|
|
36734
36734
|
}, Dn = function(rt) {
|
|
@@ -36736,7 +36736,7 @@ var wq = {}, Eq = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
36736
36736
|
Mt[zt - 1] = arguments[zt];
|
|
36737
36737
|
if (at) {
|
|
36738
36738
|
var Ht;
|
|
36739
|
-
(Ht =
|
|
36739
|
+
(Ht = Ke.current) === null || Ht === void 0 || Ht.onKeyUp.apply(Ht, [rt].concat(Mt));
|
|
36740
36740
|
}
|
|
36741
36741
|
rt.key === "Enter" && (Kt.current = !1), G == null || G.apply(void 0, [rt].concat(Mt));
|
|
36742
36742
|
}, Yt = function(rt) {
|
|
@@ -36747,9 +36747,9 @@ var wq = {}, Eq = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
36747
36747
|
type: "remove",
|
|
36748
36748
|
values: [rt]
|
|
36749
36749
|
});
|
|
36750
|
-
},
|
|
36750
|
+
}, nn = function() {
|
|
36751
36751
|
Kt.current = !1;
|
|
36752
|
-
}, Ie = g.useRef(!1),
|
|
36752
|
+
}, Ie = g.useRef(!1), Ge = function() {
|
|
36753
36753
|
Qe(!0), b || (ie && !Ie.current && ie.apply(void 0, arguments), K.includes("focus") && ze(!0)), Ie.current = !0;
|
|
36754
36754
|
}, Ue = function() {
|
|
36755
36755
|
Te.current = !0, Qe(!1, function() {
|
|
@@ -36803,8 +36803,8 @@ var wq = {}, Eq = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
36803
36803
|
multiple: ue,
|
|
36804
36804
|
toggleOpen: ze
|
|
36805
36805
|
});
|
|
36806
|
-
}, [e, h, gt, at, r, pe, ue, ze]), Tn = !!D || y,
|
|
36807
|
-
Tn && (
|
|
36806
|
+
}, [e, h, gt, at, r, pe, ue, ze]), Tn = !!D || y, xn;
|
|
36807
|
+
Tn && (xn = /* @__PURE__ */ g.createElement(Tp, {
|
|
36808
36808
|
className: Y("".concat(o, "-arrow"), z({}, "".concat(o, "-arrow-loading"), y)),
|
|
36809
36809
|
customizeIcon: D,
|
|
36810
36810
|
customizeIconProps: {
|
|
@@ -36822,7 +36822,7 @@ var wq = {}, Eq = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
36822
36822
|
values: u
|
|
36823
36823
|
}), Ze("", !1, !1);
|
|
36824
36824
|
}, Gn = EU(o, Nn, u, A, B, b, ye, m), Bn = Gn.allowClear, pr = Gn.clearIcon, wr = /* @__PURE__ */ g.createElement(H, {
|
|
36825
|
-
ref:
|
|
36825
|
+
ref: Ke
|
|
36826
36826
|
}), Ur = Y(o, i, z(z(z(z(z(z(z(z(z(z({}, "".concat(o, "-focused"), Me), "".concat(o, "-multiple"), ue), "".concat(o, "-single"), !ue), "".concat(o, "-allow-clear"), A), "".concat(o, "-show-arrow"), Tn), "".concat(o, "-disabled"), b), "".concat(o, "-loading"), y), "".concat(o, "-open"), at), "".concat(o, "-customize-input"), We), "".concat(o, "-show-search"), pe)), Po = /* @__PURE__ */ g.createElement(UI, {
|
|
36827
36827
|
ref: Ae,
|
|
36828
36828
|
disabled: b,
|
|
@@ -36874,7 +36874,7 @@ var wq = {}, Eq = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
36874
36874
|
onSearchSubmit: Ot,
|
|
36875
36875
|
onRemove: Yt,
|
|
36876
36876
|
tokenWithEnter: be,
|
|
36877
|
-
onInputBlur:
|
|
36877
|
+
onInputBlur: nn
|
|
36878
36878
|
}))), Qo;
|
|
36879
36879
|
return we ? Qo = Po : Qo = /* @__PURE__ */ g.createElement("div", ge({
|
|
36880
36880
|
className: Ur
|
|
@@ -36883,12 +36883,12 @@ var wq = {}, Eq = ["id", "prefixCls", "className", "showSearch", "tagRender", "d
|
|
|
36883
36883
|
onMouseDown: Le,
|
|
36884
36884
|
onKeyDown: ln,
|
|
36885
36885
|
onKeyUp: Dn,
|
|
36886
|
-
onFocus:
|
|
36886
|
+
onFocus: Ge,
|
|
36887
36887
|
onBlur: Ue
|
|
36888
36888
|
}), /* @__PURE__ */ g.createElement(xq, {
|
|
36889
36889
|
visible: Me && !at,
|
|
36890
36890
|
values: u
|
|
36891
|
-
}), Po,
|
|
36891
|
+
}), Po, xn, Bn && pr), /* @__PURE__ */ g.createElement(_I.Provider, {
|
|
36892
36892
|
value: Jt
|
|
36893
36893
|
}, Qo);
|
|
36894
36894
|
});
|
|
@@ -37155,7 +37155,7 @@ function Aq(e, t, n) {
|
|
|
37155
37155
|
};
|
|
37156
37156
|
l = function() {
|
|
37157
37157
|
a.current && (a.current.removeEventListener("touchmove", c), a.current.removeEventListener("touchend", u));
|
|
37158
|
-
},
|
|
37158
|
+
}, en(function() {
|
|
37159
37159
|
return e && t.current.addEventListener("touchstart", d, {
|
|
37160
37160
|
passive: !0
|
|
37161
37161
|
}), function() {
|
|
@@ -37210,7 +37210,7 @@ function _q(e, t, n) {
|
|
|
37210
37210
|
var Dq = {}, Pw = 10;
|
|
37211
37211
|
function Lq(e, t, n, r, o, i, a, s) {
|
|
37212
37212
|
var l = g.useRef(), c = g.useState(null), u = ee(c, 2), d = u[0], f = u[1];
|
|
37213
|
-
return
|
|
37213
|
+
return en(function() {
|
|
37214
37214
|
if (d && d.times < Pw) {
|
|
37215
37215
|
if (!e.current) {
|
|
37216
37216
|
f(function(B) {
|
|
@@ -37411,8 +37411,8 @@ function Vq(e, t) {
|
|
|
37411
37411
|
var n = e.prefixCls, r = n === void 0 ? "rc-virtual-list" : n, o = e.className, i = e.height, a = e.itemHeight, s = e.fullHeight, l = s === void 0 ? !0 : s, c = e.style, u = e.data, d = e.children, f = e.itemKey, p = e.virtual, h = e.direction, v = e.scrollWidth, m = e.component, b = m === void 0 ? "div" : m, y = e.onScroll, C = e.onVirtualScroll, x = e.onVisibleChange, S = e.innerProps, w = e.extraRender, E = e.styles, $ = e.showScrollBar, O = $ === void 0 ? "optional" : $, k = ft(e, jq), M = g.useCallback(function(Ie) {
|
|
37412
37412
|
return typeof f == "function" ? f(Ie) : Ie == null ? void 0 : Ie[f];
|
|
37413
37413
|
}, [f]), I = Pq(M), R = ee(I, 4), N = R[0], T = R[1], A = R[2], _ = R[3], D = !!(p !== !1 && i && a), B = g.useMemo(function() {
|
|
37414
|
-
return Object.values(A.maps).reduce(function(Ie,
|
|
37415
|
-
return Ie +
|
|
37414
|
+
return Object.values(A.maps).reduce(function(Ie, Ge) {
|
|
37415
|
+
return Ie + Ge;
|
|
37416
37416
|
}, 0);
|
|
37417
37417
|
}, [A.id, A.maps]), H = D && u && (Math.max(a * u.length, B) > i || !!v), X = h === "rtl", q = Y(r, z({}, "".concat(r, "-rtl"), X), o), L = u || Fq, V = de(), F = de(), U = de(), te = $e(0), J = ee(te, 2), re = J[0], ae = J[1], ne = $e(0), K = ee(ne, 2), ie = K[0], oe = K[1], G = $e(!1), Q = ee(G, 2), le = Q[0], se = Q[1], ue = function() {
|
|
37418
37418
|
se(!0);
|
|
@@ -37422,9 +37422,9 @@ function Vq(e, t) {
|
|
|
37422
37422
|
getKey: M
|
|
37423
37423
|
};
|
|
37424
37424
|
function ke(Ie) {
|
|
37425
|
-
ae(function(
|
|
37425
|
+
ae(function(Ge) {
|
|
37426
37426
|
var Ue;
|
|
37427
|
-
typeof Ie == "function" ? Ue = Ie(
|
|
37427
|
+
typeof Ie == "function" ? Ue = Ie(Ge) : Ue = Ie;
|
|
37428
37428
|
var Re = tt(Ue);
|
|
37429
37429
|
return V.current.scrollTop = Re, Re;
|
|
37430
37430
|
});
|
|
@@ -37451,25 +37451,25 @@ function Vq(e, t) {
|
|
|
37451
37451
|
offset: void 0
|
|
37452
37452
|
};
|
|
37453
37453
|
}
|
|
37454
|
-
for (var
|
|
37455
|
-
var xt = L[et], kt = M(xt), Pt = A.get(kt), Jt =
|
|
37456
|
-
Jt >= re && Ue === void 0 && (Ue = et, Re =
|
|
37454
|
+
for (var Ge = 0, Ue, Re, Le, Pe = L.length, et = 0; et < Pe; et += 1) {
|
|
37455
|
+
var xt = L[et], kt = M(xt), Pt = A.get(kt), Jt = Ge + (Pt === void 0 ? a : Pt);
|
|
37456
|
+
Jt >= re && Ue === void 0 && (Ue = et, Re = Ge), Jt > re + i && Le === void 0 && (Le = et), Ge = Jt;
|
|
37457
37457
|
}
|
|
37458
37458
|
return Ue === void 0 && (Ue = 0, Re = 0, Le = Math.ceil(i / a)), Le === void 0 && (Le = L.length - 1), Le = Math.min(Le + 1, L.length - 1), {
|
|
37459
|
-
scrollHeight:
|
|
37459
|
+
scrollHeight: Ge,
|
|
37460
37460
|
start: Ue,
|
|
37461
37461
|
end: Le,
|
|
37462
37462
|
offset: Re
|
|
37463
37463
|
};
|
|
37464
|
-
}, [H, D, re, L, _, i]), Ne = Ae.scrollHeight,
|
|
37465
|
-
Se.current.start =
|
|
37464
|
+
}, [H, D, re, L, _, i]), Ne = Ae.scrollHeight, Ke = Ae.start, Te = Ae.end, Ve = Ae.offset;
|
|
37465
|
+
Se.current.start = Ke, Se.current.end = Te, g.useLayoutEffect(function() {
|
|
37466
37466
|
var Ie = A.getRecord();
|
|
37467
37467
|
if (Ie.size === 1) {
|
|
37468
|
-
var
|
|
37468
|
+
var Ge = Array.from(Ie.keys())[0], Ue = Ie.get(Ge), Re = L[Ke];
|
|
37469
37469
|
if (Re && Ue === void 0) {
|
|
37470
37470
|
var Le = M(Re);
|
|
37471
|
-
if (Le ===
|
|
37472
|
-
var Pe = A.get(
|
|
37471
|
+
if (Le === Ge) {
|
|
37472
|
+
var Pe = A.get(Ge), et = Pe - a;
|
|
37473
37473
|
ke(function(xt) {
|
|
37474
37474
|
return xt + et;
|
|
37475
37475
|
});
|
|
@@ -37481,10 +37481,10 @@ function Vq(e, t) {
|
|
|
37481
37481
|
var _e = g.useState({
|
|
37482
37482
|
width: 0,
|
|
37483
37483
|
height: i
|
|
37484
|
-
}), Me = ee(_e, 2), Qe = Me[0], ve = Me[1], ye = function(
|
|
37484
|
+
}), Me = ee(_e, 2), Qe = Me[0], ve = Me[1], ye = function(Ge) {
|
|
37485
37485
|
ve({
|
|
37486
|
-
width:
|
|
37487
|
-
height:
|
|
37486
|
+
width: Ge.offsetWidth,
|
|
37487
|
+
height: Ge.offsetHeight
|
|
37488
37488
|
});
|
|
37489
37489
|
}, We = de(), we = de(), ot = g.useMemo(function() {
|
|
37490
37490
|
return Aw(Qe.width, v);
|
|
@@ -37493,8 +37493,8 @@ function Vq(e, t) {
|
|
|
37493
37493
|
}, [Qe.height, Ne]), De = Ne - i, Be = de(De);
|
|
37494
37494
|
Be.current = De;
|
|
37495
37495
|
function tt(Ie) {
|
|
37496
|
-
var
|
|
37497
|
-
return Number.isNaN(Be.current) || (
|
|
37496
|
+
var Ge = Ie;
|
|
37497
|
+
return Number.isNaN(Be.current) || (Ge = Math.min(Ge, Be.current)), Ge = Math.max(Ge, 0), Ge;
|
|
37498
37498
|
}
|
|
37499
37499
|
var He = re <= 0, ct = re >= De, Tt = ie <= 0, $t = ie >= v, at = XI(He, ct, Tt, $t), vt = function() {
|
|
37500
37500
|
return {
|
|
@@ -37503,25 +37503,25 @@ function Vq(e, t) {
|
|
|
37503
37503
|
};
|
|
37504
37504
|
}, gt = de(vt()), ze = Vt(function(Ie) {
|
|
37505
37505
|
if (C) {
|
|
37506
|
-
var
|
|
37507
|
-
(gt.current.x !==
|
|
37506
|
+
var Ge = W(W({}, vt()), Ie);
|
|
37507
|
+
(gt.current.x !== Ge.x || gt.current.y !== Ge.y) && (C(Ge), gt.current = Ge);
|
|
37508
37508
|
}
|
|
37509
37509
|
});
|
|
37510
|
-
function be(Ie,
|
|
37510
|
+
function be(Ie, Ge) {
|
|
37511
37511
|
var Ue = Ie;
|
|
37512
|
-
|
|
37512
|
+
Ge ? (Aa(function() {
|
|
37513
37513
|
oe(Ue);
|
|
37514
37514
|
}), ze()) : ke(Ue);
|
|
37515
37515
|
}
|
|
37516
37516
|
function me(Ie) {
|
|
37517
|
-
var
|
|
37518
|
-
|
|
37517
|
+
var Ge = Ie.currentTarget.scrollTop;
|
|
37518
|
+
Ge !== re && ke(Ge), y == null || y(Ie), ze();
|
|
37519
37519
|
}
|
|
37520
|
-
var Ee = function(
|
|
37521
|
-
var Ue =
|
|
37520
|
+
var Ee = function(Ge) {
|
|
37521
|
+
var Ue = Ge, Re = v ? v - Qe.width : 0;
|
|
37522
37522
|
return Ue = Math.max(Ue, 0), Ue = Math.min(Ue, Re), Ue;
|
|
37523
|
-
}, nt = Vt(function(Ie,
|
|
37524
|
-
|
|
37523
|
+
}, nt = Vt(function(Ie, Ge) {
|
|
37524
|
+
Ge ? (Aa(function() {
|
|
37525
37525
|
oe(function(Ue) {
|
|
37526
37526
|
var Re = Ue + (X ? -Ie : Ie);
|
|
37527
37527
|
return Ee(Re);
|
|
@@ -37531,34 +37531,34 @@ function Vq(e, t) {
|
|
|
37531
37531
|
return Re;
|
|
37532
37532
|
});
|
|
37533
37533
|
}), Ze = Iq(D, He, ct, Tt, $t, !!v, nt), Ot = ee(Ze, 2), Nt = Ot[0], Ft = Ot[1];
|
|
37534
|
-
Aq(D, V, function(Ie,
|
|
37534
|
+
Aq(D, V, function(Ie, Ge, Ue, Re) {
|
|
37535
37535
|
var Le = Re;
|
|
37536
|
-
return at(Ie,
|
|
37536
|
+
return at(Ie, Ge, Ue) ? !1 : !Le || !Le._virtualHandled ? (Le && (Le._virtualHandled = !0), Nt({
|
|
37537
37537
|
preventDefault: function() {
|
|
37538
37538
|
},
|
|
37539
|
-
deltaX: Ie ?
|
|
37540
|
-
deltaY: Ie ? 0 :
|
|
37539
|
+
deltaX: Ie ? Ge : 0,
|
|
37540
|
+
deltaY: Ie ? 0 : Ge
|
|
37541
37541
|
}), !0) : !1;
|
|
37542
37542
|
}), _q(H, V, function(Ie) {
|
|
37543
|
-
ke(function(
|
|
37544
|
-
return
|
|
37543
|
+
ke(function(Ge) {
|
|
37544
|
+
return Ge + Ie;
|
|
37545
37545
|
});
|
|
37546
|
-
}),
|
|
37546
|
+
}), en(function() {
|
|
37547
37547
|
function Ie(Ue) {
|
|
37548
37548
|
var Re = He && Ue.detail < 0, Le = ct && Ue.detail > 0;
|
|
37549
37549
|
D && !Re && !Le && Ue.preventDefault();
|
|
37550
37550
|
}
|
|
37551
|
-
var
|
|
37552
|
-
return
|
|
37551
|
+
var Ge = V.current;
|
|
37552
|
+
return Ge.addEventListener("wheel", Nt, {
|
|
37553
37553
|
passive: !1
|
|
37554
|
-
}),
|
|
37554
|
+
}), Ge.addEventListener("DOMMouseScroll", Ft, {
|
|
37555
37555
|
passive: !0
|
|
37556
|
-
}),
|
|
37556
|
+
}), Ge.addEventListener("MozMousePixelScroll", Ie, {
|
|
37557
37557
|
passive: !1
|
|
37558
37558
|
}), function() {
|
|
37559
|
-
|
|
37559
|
+
Ge.removeEventListener("wheel", Nt), Ge.removeEventListener("DOMMouseScroll", Ft), Ge.removeEventListener("MozMousePixelScroll", Ie);
|
|
37560
37560
|
};
|
|
37561
|
-
}, [D, He, ct]),
|
|
37561
|
+
}, [D, He, ct]), en(function() {
|
|
37562
37562
|
if (v) {
|
|
37563
37563
|
var Ie = Ee(ie);
|
|
37564
37564
|
oe(Ie), ze({
|
|
@@ -37567,8 +37567,8 @@ function Vq(e, t) {
|
|
|
37567
37567
|
}
|
|
37568
37568
|
}, [Qe.width, v]);
|
|
37569
37569
|
var It = function() {
|
|
37570
|
-
var
|
|
37571
|
-
(
|
|
37570
|
+
var Ge, Ue;
|
|
37571
|
+
(Ge = We.current) === null || Ge === void 0 || Ge.delayHidden(), (Ue = we.current) === null || Ue === void 0 || Ue.delayHidden();
|
|
37572
37572
|
}, Xt = Lq(V, L, A, a, M, function() {
|
|
37573
37573
|
return T(!0);
|
|
37574
37574
|
}, ke, It);
|
|
@@ -37576,37 +37576,37 @@ function Vq(e, t) {
|
|
|
37576
37576
|
return {
|
|
37577
37577
|
nativeElement: U.current,
|
|
37578
37578
|
getScrollInfo: vt,
|
|
37579
|
-
scrollTo: function(
|
|
37579
|
+
scrollTo: function(Ge) {
|
|
37580
37580
|
function Ue(Re) {
|
|
37581
37581
|
return Re && Ye(Re) === "object" && ("left" in Re || "top" in Re);
|
|
37582
37582
|
}
|
|
37583
|
-
Ue(
|
|
37583
|
+
Ue(Ge) ? (Ge.left !== void 0 && oe(Ee(Ge.left)), Xt(Ge.top)) : Xt(Ge);
|
|
37584
37584
|
}
|
|
37585
37585
|
};
|
|
37586
|
-
}),
|
|
37586
|
+
}), en(function() {
|
|
37587
37587
|
if (x) {
|
|
37588
|
-
var Ie = L.slice(
|
|
37588
|
+
var Ie = L.slice(Ke, Te + 1);
|
|
37589
37589
|
x(Ie, L);
|
|
37590
37590
|
}
|
|
37591
|
-
}, [
|
|
37591
|
+
}, [Ke, Te, L]);
|
|
37592
37592
|
var Kt = Tq(L, M, A, a), ln = w == null ? void 0 : w({
|
|
37593
|
-
start:
|
|
37593
|
+
start: Ke,
|
|
37594
37594
|
end: Te,
|
|
37595
37595
|
virtual: H,
|
|
37596
37596
|
offsetX: ie,
|
|
37597
37597
|
offsetY: Ve,
|
|
37598
37598
|
rtl: X,
|
|
37599
37599
|
getSize: Kt
|
|
37600
|
-
}), Dn = kq(L,
|
|
37600
|
+
}), Dn = kq(L, Ke, Te, v, ie, N, d, fe), Yt = null;
|
|
37601
37601
|
i && (Yt = W(z({}, l ? "height" : "maxHeight", i), Hq), D && (Yt.overflowY = "hidden", v && (Yt.overflowX = "hidden"), le && (Yt.pointerEvents = "none")));
|
|
37602
|
-
var
|
|
37603
|
-
return X && (
|
|
37602
|
+
var nn = {};
|
|
37603
|
+
return X && (nn.dir = "rtl"), /* @__PURE__ */ g.createElement("div", ge({
|
|
37604
37604
|
ref: U,
|
|
37605
37605
|
style: W(W({}, c), {}, {
|
|
37606
37606
|
position: "relative"
|
|
37607
37607
|
}),
|
|
37608
37608
|
className: q
|
|
37609
|
-
},
|
|
37609
|
+
}, nn, k), /* @__PURE__ */ g.createElement(ro, {
|
|
37610
37610
|
onResize: ye
|
|
37611
37611
|
}, /* @__PURE__ */ g.createElement(b, {
|
|
37612
37612
|
className: "".concat(r, "-holder"),
|
|
@@ -37830,10 +37830,10 @@ var Kq = function(t, n) {
|
|
|
37830
37830
|
}
|
|
37831
37831
|
var fe = G.disabled, ke = G.title;
|
|
37832
37832
|
G.children;
|
|
37833
|
-
var Se = G.style, ce = G.className, xe = ft(G, qq), Fe = zn(xe, U), Je = _(le), Ae = fe || !Je && N, Ne = "".concat(M, "-option"),
|
|
37833
|
+
var Se = G.style, ce = G.className, xe = ft(G, qq), Fe = zn(xe, U), Je = _(le), Ae = fe || !Je && N, Ne = "".concat(M, "-option"), Ke = Y(M, Ne, ce, z(z(z(z({}, "".concat(Ne, "-grouped"), oe), "".concat(Ne, "-active"), X === K && !Ae), "".concat(Ne, "-disabled"), Ae), "".concat(Ne, "-selected"), Je)), Te = te(ne), Ve = !C || typeof C == "function" || Je, _e = typeof Te == "number" ? Te : Te || le, Me = _w(_e) ? _e.toString() : void 0;
|
|
37834
37834
|
return ke !== void 0 && (Me = ke), /* @__PURE__ */ g.createElement("div", ge({}, so(Fe), w ? {} : J(ne, K), {
|
|
37835
37835
|
"aria-selected": V(le),
|
|
37836
|
-
className:
|
|
37836
|
+
className: Ke,
|
|
37837
37837
|
title: Me,
|
|
37838
37838
|
onMouseMove: function() {
|
|
37839
37839
|
X === K || Ae || L(K);
|
|
@@ -38116,13 +38116,13 @@ var QI = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
38116
38116
|
var Ee = me.value;
|
|
38117
38117
|
be(Ee) || ze.push(Ae(Ee, me.label));
|
|
38118
38118
|
}), ze;
|
|
38119
|
-
}, [Ae, G, ie, ce, r]),
|
|
38120
|
-
return r !== "tags" || !ae ||
|
|
38119
|
+
}, [Ae, G, ie, ce, r]), Ke = Xq(Ne, te, ae, U, C), Te = g.useMemo(function() {
|
|
38120
|
+
return r !== "tags" || !ae || Ke.some(function(ze) {
|
|
38121
38121
|
return ze[C || "value"] === ae;
|
|
38122
|
-
}) ||
|
|
38122
|
+
}) || Ke.some(function(ze) {
|
|
38123
38123
|
return ze[te.value] === ae;
|
|
38124
|
-
}) ?
|
|
38125
|
-
}, [Ae, C, r,
|
|
38124
|
+
}) ? Ke : [Ae(ae)].concat(he(Ke));
|
|
38125
|
+
}, [Ae, C, r, Ke, ae, te]), Ve = function ze(be) {
|
|
38126
38126
|
var me = he(be).sort(function(Ee, nt) {
|
|
38127
38127
|
return y(Ee, nt, {
|
|
38128
38128
|
searchValue: ae
|
|
@@ -38164,12 +38164,12 @@ var QI = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
38164
38164
|
Be(be), a && r === "combobox" && ze !== null && nt === "keyboard" && we(String(ze));
|
|
38165
38165
|
}, [a, r]), ct = function(be, me, Ee) {
|
|
38166
38166
|
var nt = function() {
|
|
38167
|
-
var Yt,
|
|
38167
|
+
var Yt, nn = xe(be);
|
|
38168
38168
|
return [B ? {
|
|
38169
|
-
label:
|
|
38169
|
+
label: nn == null ? void 0 : nn[te.label],
|
|
38170
38170
|
value: be,
|
|
38171
|
-
key: (Yt =
|
|
38172
|
-
} : be, Cv(
|
|
38171
|
+
key: (Yt = nn == null ? void 0 : nn.key) !== null && Yt !== void 0 ? Yt : be
|
|
38172
|
+
} : be, Cv(nn)];
|
|
38173
38173
|
};
|
|
38174
38174
|
if (me && p) {
|
|
38175
38175
|
var Ze = nt(), Ot = ee(Ze, 2), Nt = Ot[0], Ft = Ot[1];
|
|
@@ -38416,7 +38416,7 @@ const dK = (e) => {
|
|
|
38416
38416
|
}
|
|
38417
38417
|
}
|
|
38418
38418
|
};
|
|
38419
|
-
}, fK =
|
|
38419
|
+
}, fK = tn("Empty", (e) => {
|
|
38420
38420
|
const {
|
|
38421
38421
|
componentCls: t,
|
|
38422
38422
|
controlHeightLG: n,
|
|
@@ -39576,7 +39576,7 @@ const EK = (e) => {
|
|
|
39576
39576
|
focusElCls: `${t}-focused`
|
|
39577
39577
|
})
|
|
39578
39578
|
];
|
|
39579
|
-
}, AK =
|
|
39579
|
+
}, AK = tn("Select", (e, {
|
|
39580
39580
|
rootPrefixCls: t
|
|
39581
39581
|
}) => {
|
|
39582
39582
|
const n = Dt(e, {
|
|
@@ -39593,21 +39593,21 @@ const EK = (e) => {
|
|
|
39593
39593
|
}
|
|
39594
39594
|
});
|
|
39595
39595
|
var _K = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" }, DK = {}, LK = function(t, n) {
|
|
39596
|
-
return /* @__PURE__ */ g.createElement(
|
|
39596
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
39597
39597
|
ref: n,
|
|
39598
39598
|
icon: _K
|
|
39599
39599
|
}));
|
|
39600
39600
|
}, z0 = /* @__PURE__ */ g.forwardRef(LK);
|
|
39601
39601
|
DK.NODE_ENV !== "production" && (z0.displayName = "CheckOutlined");
|
|
39602
39602
|
var zK = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, BK = {}, jK = function(t, n) {
|
|
39603
|
-
return /* @__PURE__ */ g.createElement(
|
|
39603
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
39604
39604
|
ref: n,
|
|
39605
39605
|
icon: zK
|
|
39606
39606
|
}));
|
|
39607
39607
|
}, B0 = /* @__PURE__ */ g.forwardRef(jK);
|
|
39608
39608
|
BK.NODE_ENV !== "production" && (B0.displayName = "DownOutlined");
|
|
39609
39609
|
var FK = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, HK = {}, VK = function(t, n) {
|
|
39610
|
-
return /* @__PURE__ */ g.createElement(
|
|
39610
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
39611
39611
|
ref: n,
|
|
39612
39612
|
icon: FK
|
|
39613
39613
|
}));
|
|
@@ -39734,7 +39734,7 @@ const sT = "SECRET_COMBOBOX_MODE_DO_NOT_USE", lT = (e, t) => {
|
|
|
39734
39734
|
} = e;
|
|
39735
39735
|
if (Ee !== "combobox")
|
|
39736
39736
|
return Ee === sT ? "combobox" : Ee;
|
|
39737
|
-
}, [e.mode]),
|
|
39737
|
+
}, [e.mode]), Ke = Ne === "multiple" || Ne === "tags", Te = KK(e.suffixIcon, e.showArrow), Ve = (n = E ?? w) !== null && n !== void 0 ? n : re, _e = ((r = X == null ? void 0 : X.popup) === null || r === void 0 ? void 0 : r.root) || ((o = ie.popup) === null || o === void 0 ? void 0 : o.root) || I, Me = qK(D || _), Qe = H || B, {
|
|
39738
39738
|
status: ve,
|
|
39739
39739
|
hasFeedback: ye,
|
|
39740
39740
|
isFormItemInput: We,
|
|
@@ -39750,7 +39750,7 @@ const sT = "SECRET_COMBOBOX_MODE_DO_NOT_USE", lT = (e, t) => {
|
|
|
39750
39750
|
removeIcon: tt,
|
|
39751
39751
|
clearIcon: He
|
|
39752
39752
|
} = UK(Object.assign(Object.assign({}, L), {
|
|
39753
|
-
multiple:
|
|
39753
|
+
multiple: Ke,
|
|
39754
39754
|
hasFeedback: ye,
|
|
39755
39755
|
feedbackIcon: we,
|
|
39756
39756
|
showSuffixIcon: Te,
|
|
@@ -39782,7 +39782,7 @@ const sT = "SECRET_COMBOBOX_MODE_DO_NOT_USE", lT = (e, t) => {
|
|
|
39782
39782
|
bordered: "variant"
|
|
39783
39783
|
}).forEach(([Ze, Ot]) => {
|
|
39784
39784
|
Ee.deprecated(!(Ze in e), Ze, Ot);
|
|
39785
|
-
}), tc.NODE_ENV !== "production" && Ee(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."), tc.NODE_ENV !== "production" && Ee(!(typeof T < "u" && !
|
|
39785
|
+
}), tc.NODE_ENV !== "production" && Ee(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."), tc.NODE_ENV !== "production" && Ee(!(typeof T < "u" && !Ke), "usage", "`maxCount` only works with mode `multiple` or `tags`");
|
|
39786
39786
|
}
|
|
39787
39787
|
const [me] = Fc("SelectLike", _e == null ? void 0 : _e.zIndex);
|
|
39788
39788
|
return Fe(/* @__PURE__ */ g.createElement(L0, Object.assign({
|
|
@@ -39813,8 +39813,8 @@ const sT = "SECRET_COMBOBOX_MODE_DO_NOT_USE", lT = (e, t) => {
|
|
|
39813
39813
|
dropdownStyle: Object.assign(Object.assign({}, _e), {
|
|
39814
39814
|
zIndex: me
|
|
39815
39815
|
}),
|
|
39816
|
-
maxCount:
|
|
39817
|
-
tagRender:
|
|
39816
|
+
maxCount: Ke ? T : void 0,
|
|
39817
|
+
tagRender: Ke ? N : void 0,
|
|
39818
39818
|
dropdownRender: Me,
|
|
39819
39819
|
onDropdownVisibleChange: Qe
|
|
39820
39820
|
})));
|
|
@@ -40412,7 +40412,7 @@ const aG = (e) => {
|
|
|
40412
40412
|
limitVerticalRadius: !0
|
|
40413
40413
|
})), H0(Dt(e, {
|
|
40414
40414
|
borderRadiusOuter: Math.min(e.borderRadiusOuter, 4)
|
|
40415
|
-
}))), dT = (e, t = !0) =>
|
|
40415
|
+
}))), dT = (e, t = !0) => tn("Tooltip", (r) => {
|
|
40416
40416
|
const {
|
|
40417
40417
|
borderRadius: o,
|
|
40418
40418
|
colorTextLightSolid: i,
|
|
@@ -40550,7 +40550,7 @@ const fG = /* @__PURE__ */ g.forwardRef((e, t) => {
|
|
|
40550
40550
|
!("open" in e) && !("visible" in e) && re && (le = !1);
|
|
40551
40551
|
const se = /* @__PURE__ */ g.isValidElement(c) && !xM(c) ? c : /* @__PURE__ */ g.createElement("span", null, c), ue = se.props, pe = !ue.className || typeof ue.className == "string" ? Y(ue.className, i || `${oe}-open`) : ue.className, [fe, ke, Se] = dT(oe, !Q), ce = fT(oe, s), xe = ce.arrowStyle, Fe = Y(M, {
|
|
40552
40552
|
[`${oe}-rtl`]: B === "rtl"
|
|
40553
|
-
}, ce.className, k, ke, Se, H, q.root, R == null ? void 0 : R.root), Je = Y(q.body, R == null ? void 0 : R.body), [Ae, Ne] = Fc("Tooltip", N.zIndex),
|
|
40553
|
+
}, ce.className, k, ke, Se, H, q.root, R == null ? void 0 : R.root), Je = Y(q.body, R == null ? void 0 : R.body), [Ae, Ne] = Fc("Tooltip", N.zIndex), Ke = /* @__PURE__ */ g.createElement(tG, Object.assign({}, N, {
|
|
40554
40554
|
zIndex: Ae,
|
|
40555
40555
|
showArrow: T,
|
|
40556
40556
|
placement: w,
|
|
@@ -40586,7 +40586,7 @@ const fG = /* @__PURE__ */ g.forwardRef((e, t) => {
|
|
|
40586
40586
|
}) : se);
|
|
40587
40587
|
return fe(/* @__PURE__ */ g.createElement(jc.Provider, {
|
|
40588
40588
|
value: Ne
|
|
40589
|
-
},
|
|
40589
|
+
}, Ke));
|
|
40590
40590
|
}), Bt = fG;
|
|
40591
40591
|
ld.NODE_ENV !== "production" && (Bt.displayName = "Tooltip");
|
|
40592
40592
|
Bt._InternalPanelDoNotUseOrYouWillBeFired = uG;
|
|
@@ -40723,7 +40723,7 @@ const pG = (e) => {
|
|
|
40723
40723
|
titleBorderBottom: i ? `${t}px ${c} ${u}` : "none",
|
|
40724
40724
|
innerContentPadding: i ? `${d}px ${v}px` : 0
|
|
40725
40725
|
});
|
|
40726
|
-
}, pT =
|
|
40726
|
+
}, pT = tn("Popover", (e) => {
|
|
40727
40727
|
const {
|
|
40728
40728
|
colorBgElevated: t,
|
|
40729
40729
|
colorText: n
|
|
@@ -40862,7 +40862,7 @@ const SG = /* @__PURE__ */ g.forwardRef((e, t) => {
|
|
|
40862
40862
|
na._InternalPanelDoNotUseOrYouWillBeFired = bG;
|
|
40863
40863
|
yG.NODE_ENV !== "production" && (na.displayName = "Popover");
|
|
40864
40864
|
var xG = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, wG = {}, EG = function(t, n) {
|
|
40865
|
-
return /* @__PURE__ */ g.createElement(
|
|
40865
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
40866
40866
|
ref: n,
|
|
40867
40867
|
icon: xG
|
|
40868
40868
|
}));
|
|
@@ -41207,7 +41207,7 @@ var HG = {}, q0 = "__RC_UTIL_PATH_SPLIT__", qw = function(t) {
|
|
|
41207
41207
|
function WG() {
|
|
41208
41208
|
var e = g.useState({}), t = ee(e, 2), n = t[1], r = de(/* @__PURE__ */ new Map()), o = de(/* @__PURE__ */ new Map()), i = g.useState([]), a = ee(i, 2), s = a[0], l = a[1], c = de(0), u = de(!1), d = function() {
|
|
41209
41209
|
u.current || n({});
|
|
41210
|
-
}, f =
|
|
41210
|
+
}, f = an(function(C, x) {
|
|
41211
41211
|
HG.NODE_ENV !== "production" && bt(!r.current.has(C), "Duplicated key '".concat(C, "' used in Menu by path [").concat(x.join(" > "), "]"));
|
|
41212
41212
|
var S = qw(x);
|
|
41213
41213
|
o.current.set(S, C), r.current.set(C, S), c.current += 1;
|
|
@@ -41215,15 +41215,15 @@ function WG() {
|
|
|
41215
41215
|
FG(function() {
|
|
41216
41216
|
w === c.current && d();
|
|
41217
41217
|
});
|
|
41218
|
-
}, []), p =
|
|
41218
|
+
}, []), p = an(function(C, x) {
|
|
41219
41219
|
var S = qw(x);
|
|
41220
41220
|
o.current.delete(S), r.current.delete(C);
|
|
41221
|
-
}, []), h =
|
|
41221
|
+
}, []), h = an(function(C) {
|
|
41222
41222
|
l(C);
|
|
41223
|
-
}, []), v =
|
|
41223
|
+
}, []), v = an(function(C, x) {
|
|
41224
41224
|
var S = r.current.get(C) || "", w = VG(S);
|
|
41225
41225
|
return x && s.includes(w[0]) && w.unshift(Nv), w;
|
|
41226
|
-
}, [s]), m =
|
|
41226
|
+
}, [s]), m = an(function(C, x) {
|
|
41227
41227
|
return C.filter(function(S) {
|
|
41228
41228
|
return S !== void 0;
|
|
41229
41229
|
}).some(function(S) {
|
|
@@ -41233,7 +41233,7 @@ function WG() {
|
|
|
41233
41233
|
}, [v]), b = function() {
|
|
41234
41234
|
var x = he(r.current.keys());
|
|
41235
41235
|
return s.length && x.push(Nv), x;
|
|
41236
|
-
}, y =
|
|
41236
|
+
}, y = an(function(C) {
|
|
41237
41237
|
var x = "".concat(r.current.get(C)).concat(q0), S = /* @__PURE__ */ new Set();
|
|
41238
41238
|
return he(o.current.keys()).forEach(function(w) {
|
|
41239
41239
|
w.startsWith(x) && S.add(o.current.get(w));
|
|
@@ -41596,7 +41596,7 @@ var kT = {}, uX = ["style", "className", "title", "eventKey", "warnKey", "disabl
|
|
|
41596
41596
|
O !== "inline" && D(i, ye);
|
|
41597
41597
|
}, Ne = function() {
|
|
41598
41598
|
B(i);
|
|
41599
|
-
},
|
|
41599
|
+
}, Ke = w && "".concat(w, "-popup"), Te = g.useMemo(function() {
|
|
41600
41600
|
return /* @__PURE__ */ g.createElement($T, {
|
|
41601
41601
|
icon: O !== "horizontal" ? ae : void 0,
|
|
41602
41602
|
props: W(W({}, e), {}, {
|
|
@@ -41617,7 +41617,7 @@ var kT = {}, uX = ["style", "className", "title", "eventKey", "warnKey", "disabl
|
|
|
41617
41617
|
"data-menu-id": I && w ? null : w,
|
|
41618
41618
|
"aria-expanded": K,
|
|
41619
41619
|
"aria-haspopup": !0,
|
|
41620
|
-
"aria-controls":
|
|
41620
|
+
"aria-controls": Ke,
|
|
41621
41621
|
"aria-disabled": U,
|
|
41622
41622
|
onClick: Fe,
|
|
41623
41623
|
onFocus: Ne
|
|
@@ -41637,7 +41637,7 @@ var kT = {}, uX = ["style", "className", "title", "eventKey", "warnKey", "disabl
|
|
|
41637
41637
|
mode: Me === "horizontal" ? "vertical" : Me
|
|
41638
41638
|
},
|
|
41639
41639
|
/* @__PURE__ */ g.createElement(K0, {
|
|
41640
|
-
id:
|
|
41640
|
+
id: Ke,
|
|
41641
41641
|
ref: J
|
|
41642
41642
|
}, c)
|
|
41643
41643
|
),
|
|
@@ -41655,7 +41655,7 @@ var kT = {}, uX = ["style", "className", "title", "eventKey", "warnKey", "disabl
|
|
|
41655
41655
|
onMouseEnter: ke,
|
|
41656
41656
|
onMouseLeave: Se
|
|
41657
41657
|
}), Ve, !I && /* @__PURE__ */ g.createElement(cX, {
|
|
41658
|
-
id:
|
|
41658
|
+
id: Ke,
|
|
41659
41659
|
open: K,
|
|
41660
41660
|
keyPath: V
|
|
41661
41661
|
}, c));
|
|
@@ -41762,7 +41762,7 @@ function Gw(e, t, n, r, o) {
|
|
|
41762
41762
|
var vX = {}, bX = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], pa = [], yX = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
41763
41763
|
var n, r = e, o = r.prefixCls, i = o === void 0 ? "rc-menu" : o, a = r.rootClassName, s = r.style, l = r.className, c = r.tabIndex, u = c === void 0 ? 0 : c, d = r.items, f = r.children, p = r.direction, h = r.id, v = r.mode, m = v === void 0 ? "vertical" : v, b = r.inlineCollapsed, y = r.disabled, C = r.disabledOverflow, x = r.subMenuOpenDelay, S = x === void 0 ? 0.1 : x, w = r.subMenuCloseDelay, E = w === void 0 ? 0.1 : w, $ = r.forceSubMenuRender, O = r.defaultOpenKeys, k = r.openKeys, M = r.activeKey, I = r.defaultActiveFirst, R = r.selectable, N = R === void 0 ? !0 : R, T = r.multiple, A = T === void 0 ? !1 : T, _ = r.defaultSelectedKeys, D = r.selectedKeys, B = r.onSelect, H = r.onDeselect, X = r.inlineIndent, q = X === void 0 ? 24 : X, L = r.motion, V = r.defaultMotions, F = r.triggerSubMenuAction, U = F === void 0 ? "hover" : F, te = r.builtinPlacements, J = r.itemIcon, re = r.expandIcon, ae = r.overflowedIndicator, ne = ae === void 0 ? "..." : ae, K = r.overflowedIndicatorPopupClassName, ie = r.getPopupContainer, oe = r.onClick, G = r.onOpenChange, Q = r.onKeyDown, le = r.openAnimation, se = r.openTransitionName, ue = r._internalRenderMenuItem, pe = r._internalRenderSubMenuItem, fe = r._internalComponents, ke = ft(r, bX), Se = g.useMemo(function() {
|
|
41764
41764
|
return [Gw(f, d, pa, fe, i), Gw(f, d, pa, {}, i)];
|
|
41765
|
-
}, [f, d, fe]), ce = ee(Se, 2), xe = ce[0], Fe = ce[1], Je = g.useState(!1), Ae = ee(Je, 2), Ne = Ae[0],
|
|
41765
|
+
}, [f, d, fe]), ce = ee(Se, 2), xe = ce[0], Fe = ce[1], Je = g.useState(!1), Ae = ee(Je, 2), Ne = Ae[0], Ke = Ae[1], Te = g.useRef(), Ve = KG(h), _e = p === "rtl";
|
|
41766
41766
|
vX.NODE_ENV !== "production" && bt(!le && !se, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
|
|
41767
41767
|
var Me = bn(O, {
|
|
41768
41768
|
value: k,
|
|
@@ -41789,7 +41789,7 @@ var vX = {}, bX = ["prefixCls", "rootClassName", "style", "className", "tabIndex
|
|
|
41789
41789
|
Be.current = !1;
|
|
41790
41790
|
};
|
|
41791
41791
|
}, []);
|
|
41792
|
-
var Xt = WG(), Kt = Xt.registerPath, ln = Xt.unregisterPath, Dn = Xt.refreshOverflowKeys, Yt = Xt.isSubPathKey,
|
|
41792
|
+
var Xt = WG(), Kt = Xt.registerPath, ln = Xt.unregisterPath, Dn = Xt.refreshOverflowKeys, Yt = Xt.isSubPathKey, nn = Xt.getKeyPath, Ie = Xt.getKeys, Ge = Xt.getSubPathKeys, Ue = g.useMemo(function() {
|
|
41793
41793
|
return {
|
|
41794
41794
|
registerPath: Kt,
|
|
41795
41795
|
unregisterPath: ln
|
|
@@ -41831,12 +41831,12 @@ var vX = {}, bX = ["prefixCls", "rootClassName", "style", "className", "tabIndex
|
|
|
41831
41831
|
postState: function(wt) {
|
|
41832
41832
|
return Array.isArray(wt) ? wt : wt == null ? pa : [wt];
|
|
41833
41833
|
}
|
|
41834
|
-
}), Tn = ee(Jt, 2),
|
|
41834
|
+
}), Tn = ee(Jt, 2), xn = Tn[0], Nn = Tn[1], Gn = function(wt) {
|
|
41835
41835
|
if (N) {
|
|
41836
|
-
var Mt = wt.key, zt =
|
|
41837
|
-
A ? zt ? Ht =
|
|
41836
|
+
var Mt = wt.key, zt = xn.includes(Mt), Ht;
|
|
41837
|
+
A ? zt ? Ht = xn.filter(function(Yn) {
|
|
41838
41838
|
return Yn !== Mt;
|
|
41839
|
-
}) : Ht = [].concat(he(
|
|
41839
|
+
}) : Ht = [].concat(he(xn), [Mt]) : Ht = [Mt], Nn(Ht);
|
|
41840
41840
|
var Xn = W(W({}, wt), {}, {
|
|
41841
41841
|
selectedKeys: Ht
|
|
41842
41842
|
});
|
|
@@ -41852,7 +41852,7 @@ var vX = {}, bX = ["prefixCls", "rootClassName", "style", "className", "tabIndex
|
|
|
41852
41852
|
if (wt)
|
|
41853
41853
|
Mt.push(rt);
|
|
41854
41854
|
else if (gt !== "inline") {
|
|
41855
|
-
var zt =
|
|
41855
|
+
var zt = Ge(rt);
|
|
41856
41856
|
Mt = Mt.filter(function(Ht) {
|
|
41857
41857
|
return !zt.has(Ht);
|
|
41858
41858
|
});
|
|
@@ -41861,9 +41861,9 @@ var vX = {}, bX = ["prefixCls", "rootClassName", "style", "className", "tabIndex
|
|
|
41861
41861
|
}), wr = function(wt, Mt) {
|
|
41862
41862
|
var zt = Mt ?? !ve.includes(wt);
|
|
41863
41863
|
pr(wt, zt);
|
|
41864
|
-
}, Ur = jG(gt, et, _e, Ve, Te, Ie,
|
|
41864
|
+
}, Ur = jG(gt, et, _e, Ve, Te, Ie, nn, xt, wr, Q);
|
|
41865
41865
|
g.useEffect(function() {
|
|
41866
|
-
|
|
41866
|
+
Ke(!0);
|
|
41867
41867
|
}, []);
|
|
41868
41868
|
var Po = g.useMemo(function() {
|
|
41869
41869
|
return {
|
|
@@ -41930,7 +41930,7 @@ var vX = {}, bX = ["prefixCls", "rootClassName", "style", "className", "tabIndex
|
|
|
41930
41930
|
activeKey: et,
|
|
41931
41931
|
onActive: kt,
|
|
41932
41932
|
onInactive: Pt,
|
|
41933
|
-
selectedKeys:
|
|
41933
|
+
selectedKeys: xn,
|
|
41934
41934
|
inlineIndent: q,
|
|
41935
41935
|
subMenuOpenDelay: S,
|
|
41936
41936
|
subMenuCloseDelay: E,
|
|
@@ -41958,7 +41958,7 @@ al.SubMenu = Jc;
|
|
|
41958
41958
|
al.ItemGroup = Dp;
|
|
41959
41959
|
al.Divider = X0;
|
|
41960
41960
|
var CX = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, SX = {}, xX = function(t, n) {
|
|
41961
|
-
return /* @__PURE__ */ g.createElement(
|
|
41961
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
41962
41962
|
ref: n,
|
|
41963
41963
|
icon: CX
|
|
41964
41964
|
}));
|
|
@@ -42073,7 +42073,7 @@ const wX = /* @__PURE__ */ g.createContext({
|
|
|
42073
42073
|
lightTriggerColor: o
|
|
42074
42074
|
};
|
|
42075
42075
|
}, IT = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
|
|
42076
|
-
|
|
42076
|
+
tn("Layout", EX, MT, {
|
|
42077
42077
|
deprecatedTokens: IT
|
|
42078
42078
|
});
|
|
42079
42079
|
const $X = (e) => {
|
|
@@ -42182,7 +42182,7 @@ const $X = (e) => {
|
|
|
42182
42182
|
}
|
|
42183
42183
|
}
|
|
42184
42184
|
};
|
|
42185
|
-
}, OX =
|
|
42185
|
+
}, OX = tn(["Layout", "Sider"], $X, MT, {
|
|
42186
42186
|
deprecatedTokens: IT
|
|
42187
42187
|
});
|
|
42188
42188
|
var kX = {}, NX = function(e, t) {
|
|
@@ -42287,7 +42287,7 @@ const Xw = {
|
|
|
42287
42287
|
});
|
|
42288
42288
|
kX.NODE_ENV !== "production" && (TX.displayName = "Sider");
|
|
42289
42289
|
var RX = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, PX = {}, AX = function(t, n) {
|
|
42290
|
-
return /* @__PURE__ */ g.createElement(
|
|
42290
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
42291
42291
|
ref: n,
|
|
42292
42292
|
icon: RX
|
|
42293
42293
|
}));
|
|
@@ -43278,7 +43278,7 @@ const Tf = /* @__PURE__ */ g.createContext(null), LX = /* @__PURE__ */ g.forward
|
|
|
43278
43278
|
// internal
|
|
43279
43279
|
itemWidth: M ? `calc(100% + ${I}px)` : `calc(100% - ${R * 2}px)`
|
|
43280
43280
|
};
|
|
43281
|
-
}, VX = (e, t = e, n = !0) =>
|
|
43281
|
+
}, VX = (e, t = e, n = !0) => tn("Menu", (o) => {
|
|
43282
43282
|
const {
|
|
43283
43283
|
colorBgElevated: i,
|
|
43284
43284
|
controlHeightLG: a,
|
|
@@ -43807,7 +43807,7 @@ const GX = (e) => {
|
|
|
43807
43807
|
}, Ap({
|
|
43808
43808
|
contentRadius: e.borderRadiusLG,
|
|
43809
43809
|
limitVerticalRadius: !0
|
|
43810
|
-
})), H0(e)), JX =
|
|
43810
|
+
})), H0(e)), JX = tn("Dropdown", (e) => {
|
|
43811
43811
|
const {
|
|
43812
43812
|
marginXXS: t,
|
|
43813
43813
|
sizePopupArrow: n,
|
|
@@ -44881,12 +44881,12 @@ const eu = (e) => {
|
|
|
44881
44881
|
}
|
|
44882
44882
|
}
|
|
44883
44883
|
};
|
|
44884
|
-
}, KT =
|
|
44884
|
+
}, KT = tn(["Input", "Shared"], (e) => {
|
|
44885
44885
|
const t = Dt(e, Zc(e));
|
|
44886
44886
|
return [tY(t), rY(t)];
|
|
44887
44887
|
}, eu, {
|
|
44888
44888
|
resetFont: !1
|
|
44889
|
-
}), GT =
|
|
44889
|
+
}), GT = tn(["Input", "Component"], (e) => {
|
|
44890
44890
|
const t = Dt(e, Zc(e));
|
|
44891
44891
|
return [
|
|
44892
44892
|
oY(t),
|
|
@@ -44901,7 +44901,7 @@ const eu = (e) => {
|
|
|
44901
44901
|
resetFont: !1
|
|
44902
44902
|
});
|
|
44903
44903
|
var sY = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, lY = {}, cY = function(t, n) {
|
|
44904
|
-
return /* @__PURE__ */ g.createElement(
|
|
44904
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
44905
44905
|
ref: n,
|
|
44906
44906
|
icon: sY
|
|
44907
44907
|
}));
|
|
@@ -45341,7 +45341,7 @@ var CY = function(t) {
|
|
|
45341
45341
|
});
|
|
45342
45342
|
}), _ = ee(A, 2), D = _[0], B = _[1], H = $e([0, 0]), X = ee(H, 2), q = X[0], L = X[1], V = $e([0, 0]), F = ee(V, 2), U = F[0], te = F[1], J = $e([0, 0]), re = ee(J, 2), ae = re[0], ne = re[1], K = $e([0, 0]), ie = ee(K, 2), oe = ie[0], G = ie[1], Q = hY(/* @__PURE__ */ new Map()), le = ee(Q, 2), se = le[0], ue = le[1], pe = dY(C, se, U[0]), fe = Au(q, M), ke = Au(U, M), Se = Au(ae, M), ce = Au(oe, M), xe = Math.floor(fe) < Math.floor(ke + Se), Fe = xe ? fe - ce : fe - Se, Je = "".concat(y, "-nav-operations-hidden"), Ae = 0, Ne = 0;
|
|
45343
45343
|
M && s ? (Ae = 0, Ne = Math.max(0, ke - Fe)) : (Ae = Math.min(0, Fe - ke), Ne = 0);
|
|
45344
|
-
function
|
|
45344
|
+
function Ke(Le) {
|
|
45345
45345
|
return Le < Ae ? Ae : Le > Ne ? Ne : Le;
|
|
45346
45346
|
}
|
|
45347
45347
|
var Te = de(null), Ve = $e(), _e = ee(Ve, 2), Me = _e[0], Qe = _e[1];
|
|
@@ -45354,7 +45354,7 @@ var CY = function(t) {
|
|
|
45354
45354
|
pY(E, function(Le, Pe) {
|
|
45355
45355
|
function et(xt, kt) {
|
|
45356
45356
|
xt(function(Pt) {
|
|
45357
|
-
var Jt =
|
|
45357
|
+
var Jt = Ke(Pt + kt);
|
|
45358
45358
|
return Jt;
|
|
45359
45359
|
});
|
|
45360
45360
|
}
|
|
@@ -45389,10 +45389,10 @@ var CY = function(t) {
|
|
|
45389
45389
|
};
|
|
45390
45390
|
if (M) {
|
|
45391
45391
|
var et = N;
|
|
45392
|
-
s ? Pe.right < N ? et = Pe.right : Pe.right + Pe.width > N + Fe && (et = Pe.right + Pe.width - Fe) : Pe.left < -N ? et = -Pe.left : Pe.left + Pe.width > -N + Fe && (et = -(Pe.left + Pe.width - Fe)), B(0), T(
|
|
45392
|
+
s ? Pe.right < N ? et = Pe.right : Pe.right + Pe.width > N + Fe && (et = Pe.right + Pe.width - Fe) : Pe.left < -N ? et = -Pe.left : Pe.left + Pe.width > -N + Fe && (et = -(Pe.left + Pe.width - Fe)), B(0), T(Ke(et));
|
|
45393
45393
|
} else {
|
|
45394
45394
|
var xt = D;
|
|
45395
|
-
Pe.top < -D ? xt = -Pe.top : Pe.top + Pe.height > -D + Fe && (xt = -(Pe.top + Pe.height - Fe)), T(0), B(
|
|
45395
|
+
Pe.top < -D ? xt = -Pe.top : Pe.top + Pe.height > -D + Fe && (xt = -(Pe.top + Pe.height - Fe)), T(0), B(Ke(xt));
|
|
45396
45396
|
}
|
|
45397
45397
|
}), Be = $e(), tt = ee(Be, 2), He = tt[0], ct = tt[1], Tt = $e(!1), $t = ee(Tt, 2), at = $t[0], vt = $t[1], gt = C.filter(function(Le) {
|
|
45398
45398
|
return !Le.disabled;
|
|
@@ -45498,7 +45498,7 @@ var CY = function(t) {
|
|
|
45498
45498
|
return C.forEach(function(kt) {
|
|
45499
45499
|
var Pt, Jt = kt.key, Tn = (Pt = $.current) === null || Pt === void 0 ? void 0 : Pt.querySelector('[data-node-key="'.concat(JT(Jt), '"]'));
|
|
45500
45500
|
if (Tn) {
|
|
45501
|
-
var
|
|
45501
|
+
var xn = SY(Tn, xt), Nn = ee(xn, 4), Gn = Nn[0], Bn = Nn[1], pr = Nn[2], wr = Nn[3];
|
|
45502
45502
|
et.set(Jt, {
|
|
45503
45503
|
width: Gn,
|
|
45504
45504
|
height: Bn,
|
|
@@ -45534,8 +45534,8 @@ var CY = function(t) {
|
|
|
45534
45534
|
}, [a, Ae, Ne, f1(Kt), f1(pe), M]), it(function() {
|
|
45535
45535
|
Nt();
|
|
45536
45536
|
}, [s]);
|
|
45537
|
-
var Yt = !!Xt.length,
|
|
45538
|
-
return M ? s ? (
|
|
45537
|
+
var Yt = !!Xt.length, nn = "".concat(y, "-nav-wrap"), Ie, Ge, Ue, Re;
|
|
45538
|
+
return M ? s ? (Ge = N > 0, Ie = N !== Ne) : (Ie = N < 0, Ge = N !== Ae) : (Ue = D < 0, Re = D !== Ae), /* @__PURE__ */ g.createElement(ro, {
|
|
45539
45539
|
onResize: Nt
|
|
45540
45540
|
}, /* @__PURE__ */ g.createElement("div", {
|
|
45541
45541
|
ref: Si(t, x),
|
|
@@ -45554,7 +45554,7 @@ var CY = function(t) {
|
|
|
45554
45554
|
}), /* @__PURE__ */ g.createElement(ro, {
|
|
45555
45555
|
onResize: Nt
|
|
45556
45556
|
}, /* @__PURE__ */ g.createElement("div", {
|
|
45557
|
-
className: Y(
|
|
45557
|
+
className: Y(nn, z(z(z(z({}, "".concat(nn, "-ping-left"), Ie), "".concat(nn, "-ping-right"), Ge), "".concat(nn, "-ping-top"), Ue), "".concat(nn, "-ping-bottom"), Re)),
|
|
45558
45558
|
ref: E
|
|
45559
45559
|
}, /* @__PURE__ */ g.createElement(ro, {
|
|
45560
45560
|
onResize: Nt
|
|
@@ -46677,7 +46677,7 @@ const LY = (e) => {
|
|
|
46677
46677
|
itemActiveColor: e.colorPrimaryActive,
|
|
46678
46678
|
cardGutter: e.marginXXS / 2
|
|
46679
46679
|
};
|
|
46680
|
-
}, qY =
|
|
46680
|
+
}, qY = tn("Tabs", (e) => {
|
|
46681
46681
|
const t = Dt(e, {
|
|
46682
46682
|
// `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
|
|
46683
46683
|
tabsCardPadding: e.cardPadding,
|
|
@@ -46974,7 +46974,7 @@ const QY = (e) => {
|
|
|
46974
46974
|
textPaddingInline: "1em",
|
|
46975
46975
|
orientationMargin: 0.05,
|
|
46976
46976
|
verticalMarginInline: e.marginXS
|
|
46977
|
-
}), tJ =
|
|
46977
|
+
}), tJ = tn("Divider", (e) => {
|
|
46978
46978
|
const t = Dt(e, {
|
|
46979
46979
|
dividerHorizontalWithTextGutterMargin: e.margin,
|
|
46980
46980
|
sizePaddingEdgeHorizontal: 0
|
|
@@ -47076,7 +47076,7 @@ function iJ(e) {
|
|
|
47076
47076
|
var A, _ = o(T), D = (A = n.current) === null || A === void 0 ? void 0 : A.querySelectorAll(".".concat(t, "-item"))[_];
|
|
47077
47077
|
return (D == null ? void 0 : D.offsetParent) && D;
|
|
47078
47078
|
}, b = g.useState(null), y = ee(b, 2), C = y[0], x = y[1], S = g.useState(null), w = ee(S, 2), E = w[0], $ = w[1];
|
|
47079
|
-
|
|
47079
|
+
en(function() {
|
|
47080
47080
|
if (h !== r) {
|
|
47081
47081
|
var N = m(h), T = m(r), A = m1(N, u), _ = m1(T, u);
|
|
47082
47082
|
v(r), x(A), $(_), N && T ? a() : s();
|
|
@@ -47457,7 +47457,7 @@ const fJ = Object.assign({
|
|
|
47457
47457
|
itemActiveBg: i,
|
|
47458
47458
|
itemSelectedColor: n
|
|
47459
47459
|
};
|
|
47460
|
-
}, mJ =
|
|
47460
|
+
}, mJ = tn("Segmented", (e) => {
|
|
47461
47461
|
const {
|
|
47462
47462
|
lineWidth: t,
|
|
47463
47463
|
calc: n
|
|
@@ -47545,7 +47545,7 @@ const aR = /* @__PURE__ */ j.createContext({}), sR = /* @__PURE__ */ j.createCon
|
|
|
47545
47545
|
});
|
|
47546
47546
|
}, cR = "hex", uR = "rgb", dR = "hsb";
|
|
47547
47547
|
var yJ = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, name: "up", theme: "outlined" }, CJ = {}, SJ = function(t, n) {
|
|
47548
|
-
return /* @__PURE__ */ g.createElement(
|
|
47548
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
47549
47549
|
ref: n,
|
|
47550
47550
|
icon: yJ
|
|
47551
47551
|
}));
|
|
@@ -48148,7 +48148,7 @@ function TJ(e, t) {
|
|
|
48148
48148
|
}
|
|
48149
48149
|
var RJ = function() {
|
|
48150
48150
|
var t = $e(!1), n = ee(t, 2), r = n[0], o = n[1];
|
|
48151
|
-
return
|
|
48151
|
+
return en(function() {
|
|
48152
48152
|
o(Ip());
|
|
48153
48153
|
}, []), r;
|
|
48154
48154
|
}, PJ = 200, AJ = 600;
|
|
@@ -48286,7 +48286,7 @@ var LJ = {}, zJ = ["prefixCls", "className", "style", "min", "max", "step", "def
|
|
|
48286
48286
|
return pe && !Be.lessEquals(pe) ? pe : fe && !fe.lessEquals(Be) ? fe : null;
|
|
48287
48287
|
}, Ne = function(Be) {
|
|
48288
48288
|
return !Ae(Be);
|
|
48289
|
-
},
|
|
48289
|
+
}, Ke = function(Be, tt) {
|
|
48290
48290
|
var He = Be, ct = Ne(He) || He.isEmpty();
|
|
48291
48291
|
if (!He.isEmpty() && !tt && (He = Ae(He) || He, ct = !0), !f && !d && ct) {
|
|
48292
48292
|
var Tt = He.toString(), $t = ne(Tt, tt);
|
|
@@ -48296,7 +48296,7 @@ var LJ = {}, zJ = ["prefixCls", "className", "style", "min", "max", "step", "def
|
|
|
48296
48296
|
}, Te = DJ(), Ve = function De(Be) {
|
|
48297
48297
|
if (Fe(), ie.current = Be, se(Be), !V.current) {
|
|
48298
48298
|
var tt = K(Be), He = po(tt);
|
|
48299
|
-
He.isNaN() ||
|
|
48299
|
+
He.isNaN() || Ke(He, !0);
|
|
48300
48300
|
}
|
|
48301
48301
|
k == null || k(Be), Te(function() {
|
|
48302
48302
|
var ct = Be;
|
|
@@ -48314,7 +48314,7 @@ var LJ = {}, zJ = ["prefixCls", "className", "style", "min", "max", "step", "def
|
|
|
48314
48314
|
L.current = !1;
|
|
48315
48315
|
var He = po(F.current ? C1(l) : l);
|
|
48316
48316
|
Be || (He = He.negate());
|
|
48317
|
-
var ct = (J || po(0)).add(He.toString()), Tt =
|
|
48317
|
+
var ct = (J || po(0)).add(He.toString()), Tt = Ke(ct, !1);
|
|
48318
48318
|
I == null || I(S1(x, Tt), {
|
|
48319
48319
|
offset: F.current ? C1(l) : l,
|
|
48320
48320
|
type: Be ? "up" : "down"
|
|
@@ -48322,7 +48322,7 @@ var LJ = {}, zJ = ["prefixCls", "className", "style", "min", "max", "step", "def
|
|
|
48322
48322
|
}
|
|
48323
48323
|
}, ye = function(Be) {
|
|
48324
48324
|
var tt = po(K(le)), He;
|
|
48325
|
-
tt.isNaN() ? He =
|
|
48325
|
+
tt.isNaN() ? He = Ke(J, Be) : He = Ke(tt, Be), u !== void 0 ? ue(J, !1) : He.isNaN() || ue(He, !1);
|
|
48326
48326
|
}, We = function() {
|
|
48327
48327
|
L.current = !0;
|
|
48328
48328
|
}, we = function(Be) {
|
|
@@ -48836,7 +48836,7 @@ const FJ = (e) => {
|
|
|
48836
48836
|
borderRadius: 0
|
|
48837
48837
|
}
|
|
48838
48838
|
};
|
|
48839
|
-
}, WJ =
|
|
48839
|
+
}, WJ = tn("InputNumber", (e) => {
|
|
48840
48840
|
const t = Dt(e, Zc(e));
|
|
48841
48841
|
return [
|
|
48842
48842
|
HJ(t),
|
|
@@ -49606,7 +49606,7 @@ function $1(e) {
|
|
|
49606
49606
|
}
|
|
49607
49607
|
function pQ(e, t, n, r, o, i, a, s, l, c, u) {
|
|
49608
49608
|
var d = g.useState(null), f = ee(d, 2), p = f[0], h = f[1], v = g.useState(-1), m = ee(v, 2), b = m[0], y = m[1], C = g.useState(!1), x = ee(C, 2), S = x[0], w = x[1], E = g.useState(n), $ = ee(E, 2), O = $[0], k = $[1], M = g.useState(n), I = ee(M, 2), R = I[0], N = I[1], T = g.useRef(null), A = g.useRef(null), _ = g.useRef(null), D = g.useContext(xR), B = D.onDragStart, H = D.onDragChange;
|
|
49609
|
-
|
|
49609
|
+
en(function() {
|
|
49610
49610
|
b === -1 && k(n);
|
|
49611
49611
|
}, [n, b]), g.useEffect(function() {
|
|
49612
49612
|
return function() {
|
|
@@ -49802,7 +49802,7 @@ var ER = {}, $R = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
49802
49802
|
return B ? D ? "ttb" : "btt" : D ? "rtl" : "ltr";
|
|
49803
49803
|
}, [D, B]), ke = gQ($), Se = ee(ke, 5), ce = Se[0], xe = Se[1], Fe = Se[2], Je = Se[3], Ae = Se[4], Ne = g.useMemo(function() {
|
|
49804
49804
|
return isFinite(b) ? b : 0;
|
|
49805
|
-
}, [b]),
|
|
49805
|
+
}, [b]), Ke = g.useMemo(function() {
|
|
49806
49806
|
return isFinite(C) ? C : 100;
|
|
49807
49807
|
}, [C]), Te = g.useMemo(function() {
|
|
49808
49808
|
return S !== null && S <= 0 ? 1 : S;
|
|
@@ -49820,7 +49820,7 @@ var ER = {}, $R = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
49820
49820
|
}).sort(function(Ue, Re) {
|
|
49821
49821
|
return Ue.value - Re.value;
|
|
49822
49822
|
});
|
|
49823
|
-
}, [J]), Me = hQ(Ne,
|
|
49823
|
+
}, [J]), Me = hQ(Ne, Ke, Te, _e, T, Ve), Qe = ee(Me, 2), ve = Qe[0], ye = Qe[1], We = bn(E, {
|
|
49824
49824
|
value: w
|
|
49825
49825
|
}), we = ee(We, 2), ot = we[0], St = we[1], De = g.useMemo(function() {
|
|
49826
49826
|
var Ue = ot == null ? [] : Array.isArray(ot) ? ot : [ot], Re = ee(Ue, 1), Le = Re[0], Pe = Le === void 0 ? Ne : Le, et = ot === null ? [] : [Pe];
|
|
@@ -49857,9 +49857,9 @@ var ER = {}, $R = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
49857
49857
|
var Pe = Math.max(0, Re - 1);
|
|
49858
49858
|
ue.current.hideHelp(), ue.current.focus(Pe);
|
|
49859
49859
|
}
|
|
49860
|
-
}, Tt = pQ(pe, fe, De, Ne,
|
|
49860
|
+
}, Tt = pQ(pe, fe, De, Ne, Ke, ve, tt, He, ye, xe, Je), $t = ee(Tt, 5), at = $t[0], vt = $t[1], gt = $t[2], ze = $t[3], be = $t[4], me = function(Re, Le) {
|
|
49861
49861
|
if (!u) {
|
|
49862
|
-
var Pe = he(De), et = 0, xt = 0, kt =
|
|
49862
|
+
var Pe = he(De), et = 0, xt = 0, kt = Ke - Ne;
|
|
49863
49863
|
De.forEach(function(Nn, Gn) {
|
|
49864
49864
|
var Bn = Math.abs(Re - Nn);
|
|
49865
49865
|
Bn <= kt && (kt = Bn, et = Gn), Nn < Re && (xt = Gn);
|
|
@@ -49868,20 +49868,20 @@ var ER = {}, $R = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
49868
49868
|
xe && kt !== 0 && (!Ae || De.length < Ae) ? (Pe.splice(xt + 1, 0, Re), Pt = xt + 1) : Pe[et] = Re, ce && !De.length && O === void 0 && Pe.push(Re);
|
|
49869
49869
|
var Jt = Be(Pe);
|
|
49870
49870
|
if (M == null || M(Jt), tt(Pe), Le) {
|
|
49871
|
-
var Tn,
|
|
49872
|
-
(Tn = document.activeElement) === null || Tn === void 0 || (
|
|
49871
|
+
var Tn, xn;
|
|
49872
|
+
(Tn = document.activeElement) === null || Tn === void 0 || (xn = Tn.blur) === null || xn === void 0 || xn.call(Tn), ue.current.focus(Pt), be(Le, Pt, Pe);
|
|
49873
49873
|
} else
|
|
49874
49874
|
I == null || I(Jt), bt(!I, "[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."), R == null || R(Jt);
|
|
49875
49875
|
}
|
|
49876
49876
|
}, Ee = function(Re) {
|
|
49877
49877
|
Re.preventDefault();
|
|
49878
|
-
var Le = pe.current.getBoundingClientRect(), Pe = Le.width, et = Le.height, xt = Le.left, kt = Le.top, Pt = Le.bottom, Jt = Le.right, Tn = Re.clientX,
|
|
49878
|
+
var Le = pe.current.getBoundingClientRect(), Pe = Le.width, et = Le.height, xt = Le.left, kt = Le.top, Pt = Le.bottom, Jt = Le.right, Tn = Re.clientX, xn = Re.clientY, Nn;
|
|
49879
49879
|
switch (fe) {
|
|
49880
49880
|
case "btt":
|
|
49881
|
-
Nn = (Pt -
|
|
49881
|
+
Nn = (Pt - xn) / et;
|
|
49882
49882
|
break;
|
|
49883
49883
|
case "ttb":
|
|
49884
|
-
Nn = (
|
|
49884
|
+
Nn = (xn - kt) / et;
|
|
49885
49885
|
break;
|
|
49886
49886
|
case "rtl":
|
|
49887
49887
|
Nn = (Jt - Tn) / Pe;
|
|
@@ -49889,7 +49889,7 @@ var ER = {}, $R = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
49889
49889
|
default:
|
|
49890
49890
|
Nn = (Tn - xt) / Pe;
|
|
49891
49891
|
}
|
|
49892
|
-
var Gn = Ne + Nn * (
|
|
49892
|
+
var Gn = Ne + Nn * (Ke - Ne);
|
|
49893
49893
|
me(ve(Gn), Re);
|
|
49894
49894
|
}, nt = g.useState(null), Ze = ee(nt, 2), Ot = Ze[0], Nt = Ze[1], Ft = function(Re, Le) {
|
|
49895
49895
|
if (!u) {
|
|
@@ -49921,7 +49921,7 @@ var ER = {}, $R = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
49921
49921
|
});
|
|
49922
49922
|
}, [ze]), Dn = g.useMemo(function() {
|
|
49923
49923
|
return ce ? [ln[0], ln[ln.length - 1]] : [Ne, ln[0]];
|
|
49924
|
-
}, [ln, ce, Ne]), Yt = ee(Dn, 2),
|
|
49924
|
+
}, [ln, ce, Ne]), Yt = ee(Dn, 2), nn = Yt[0], Ie = Yt[1];
|
|
49925
49925
|
g.useImperativeHandle(t, function() {
|
|
49926
49926
|
return {
|
|
49927
49927
|
focus: function() {
|
|
@@ -49935,16 +49935,16 @@ var ER = {}, $R = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
49935
49935
|
}), g.useEffect(function() {
|
|
49936
49936
|
p && ue.current.focus(0);
|
|
49937
49937
|
}, []);
|
|
49938
|
-
var
|
|
49938
|
+
var Ge = g.useMemo(function() {
|
|
49939
49939
|
return {
|
|
49940
49940
|
min: Ne,
|
|
49941
|
-
max:
|
|
49941
|
+
max: Ke,
|
|
49942
49942
|
direction: fe,
|
|
49943
49943
|
disabled: u,
|
|
49944
49944
|
keyboard: f,
|
|
49945
49945
|
step: Te,
|
|
49946
49946
|
included: X,
|
|
49947
|
-
includedStart:
|
|
49947
|
+
includedStart: nn,
|
|
49948
49948
|
includedEnd: Ie,
|
|
49949
49949
|
range: ce,
|
|
49950
49950
|
tabIndex: oe,
|
|
@@ -49955,9 +49955,9 @@ var ER = {}, $R = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
49955
49955
|
styles: s || {},
|
|
49956
49956
|
classNames: a || {}
|
|
49957
49957
|
};
|
|
49958
|
-
}, [Ne,
|
|
49958
|
+
}, [Ne, Ke, fe, u, f, Te, X, nn, Ie, ce, oe, G, Q, le, se, s, a]);
|
|
49959
49959
|
return /* @__PURE__ */ g.createElement(Ja.Provider, {
|
|
49960
|
-
value:
|
|
49960
|
+
value: Ge
|
|
49961
49961
|
}, /* @__PURE__ */ g.createElement("div", {
|
|
49962
49962
|
ref: pe,
|
|
49963
49963
|
className: Y(r, o, z(z(z(z({}, "".concat(r, "-disabled"), u), "".concat(r, "-vertical"), B), "".concat(r, "-horizontal"), !B), "".concat(r, "-with-marks"), _e.length)),
|
|
@@ -50319,7 +50319,7 @@ const bQ = (e) => {
|
|
|
50319
50319
|
dotActiveBorderColor: e.colorPrimaryBorder,
|
|
50320
50320
|
trackBgDisabled: e.colorBgContainerDisabled
|
|
50321
50321
|
};
|
|
50322
|
-
}, xQ =
|
|
50322
|
+
}, xQ = tn("Slider", (e) => {
|
|
50323
50323
|
const t = Dt(e, {
|
|
50324
50324
|
marginPart: e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),
|
|
50325
50325
|
marginFull: e.calc(e.controlSize).div(2).equal(),
|
|
@@ -50432,8 +50432,8 @@ const MR = /* @__PURE__ */ j.forwardRef((e, t) => {
|
|
|
50432
50432
|
var _e;
|
|
50433
50433
|
B(!1), (_e = b.onBlur) === null || _e === void 0 || _e.call(b, Ve), Ae("onBlur", Ve, !0);
|
|
50434
50434
|
}
|
|
50435
|
-
}),
|
|
50436
|
-
return se ?
|
|
50435
|
+
}), Ke = /* @__PURE__ */ j.cloneElement(ce, Ne), Te = (!!U || te) && J !== null;
|
|
50436
|
+
return se ? Ke : /* @__PURE__ */ j.createElement(Dv, Object.assign({}, H, {
|
|
50437
50437
|
prefixCls: C("tooltip", V ?? l),
|
|
50438
50438
|
title: J ? J(xe.value) : "",
|
|
50439
50439
|
value: xe.value,
|
|
@@ -50444,7 +50444,7 @@ const MR = /* @__PURE__ */ j.forwardRef((e, t) => {
|
|
|
50444
50444
|
root: `${ie}-tooltip`
|
|
50445
50445
|
},
|
|
50446
50446
|
getPopupContainer: L || d || O
|
|
50447
|
-
}),
|
|
50447
|
+
}), Ke);
|
|
50448
50448
|
}), pe = se ? (ce, xe) => {
|
|
50449
50449
|
const Fe = /* @__PURE__ */ j.cloneElement(ce, {
|
|
50450
50450
|
style: Object.assign(Object.assign({}, ce.props.style), {
|
|
@@ -50679,7 +50679,7 @@ const IQ = {
|
|
|
50679
50679
|
percent: 100,
|
|
50680
50680
|
color: new zr("")
|
|
50681
50681
|
}] : a.getColors(), [a]), v = !a.isGradient(), [m, b] = j.useState(a);
|
|
50682
|
-
|
|
50682
|
+
en(() => {
|
|
50683
50683
|
var N;
|
|
50684
50684
|
v || b((N = h[d]) === null || N === void 0 ? void 0 : N.color);
|
|
50685
50685
|
}, [v, h, f, d]);
|
|
@@ -50687,7 +50687,7 @@ const IQ = {
|
|
|
50687
50687
|
var N;
|
|
50688
50688
|
return v ? a : f ? m : (N = h[d]) === null || N === void 0 ? void 0 : N.color;
|
|
50689
50689
|
}, [h, a, d, v, m, f]), [C, x] = j.useState(y), [S, w] = kM(), E = C != null && C.equals(y) ? y : C;
|
|
50690
|
-
|
|
50690
|
+
en(() => {
|
|
50691
50691
|
x(y);
|
|
50692
50692
|
}, [S, y == null ? void 0 : y.toHexString()]);
|
|
50693
50693
|
const $ = (N, T) => {
|
|
@@ -51487,7 +51487,7 @@ const RR = (e, t) => ({
|
|
|
51487
51487
|
}, rl(e, {
|
|
51488
51488
|
focusElCls: `${n}-trigger-active`
|
|
51489
51489
|
})];
|
|
51490
|
-
}, VQ =
|
|
51490
|
+
}, VQ = tn("ColorPicker", (e) => {
|
|
51491
51491
|
const {
|
|
51492
51492
|
colorTextQuaternary: t,
|
|
51493
51493
|
marginSM: n
|
|
@@ -51586,9 +51586,9 @@ const Vp = (e) => {
|
|
|
51586
51586
|
} = xi(te, B), Fe = Wr((ye) => {
|
|
51587
51587
|
var We;
|
|
51588
51588
|
return (We = y ?? ce) !== null && We !== void 0 ? We : ye;
|
|
51589
|
-
}), Je = co(te), [Ae, Ne,
|
|
51589
|
+
}), Je = co(te), [Ae, Ne, Ke] = VQ(te, Je), Te = {
|
|
51590
51590
|
[`${te}-rtl`]: B
|
|
51591
|
-
}, Ve = Y(C,
|
|
51591
|
+
}, Ve = Y(C, Ke, Je, Te), _e = Y(Va(te, Se), {
|
|
51592
51592
|
[`${te}-sm`]: Fe === "small",
|
|
51593
51593
|
[`${te}-lg`]: Fe === "large"
|
|
51594
51594
|
}, xe, H == null ? void 0 : H.className, Ve, b, Ne), Me = Y(te, Ve);
|
|
@@ -51726,7 +51726,7 @@ const qQ = (e) => {
|
|
|
51726
51726
|
focus: !1
|
|
51727
51727
|
})]
|
|
51728
51728
|
};
|
|
51729
|
-
}, KQ =
|
|
51729
|
+
}, KQ = tn(["Space", "Addon"], (e) => [qQ(e)]);
|
|
51730
51730
|
var GQ = function(e, t) {
|
|
51731
51731
|
var n = {};
|
|
51732
51732
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -51836,7 +51836,7 @@ const XQ = /* @__PURE__ */ j.forwardRef((e, t) => {
|
|
|
51836
51836
|
}
|
|
51837
51837
|
}
|
|
51838
51838
|
};
|
|
51839
|
-
}, eZ =
|
|
51839
|
+
}, eZ = tn("Space", (e) => {
|
|
51840
51840
|
const t = Dt(e, {
|
|
51841
51841
|
spaceGapSmallSize: e.paddingXS,
|
|
51842
51842
|
spaceGapMiddleSize: e.padding,
|
|
@@ -51999,7 +51999,7 @@ AR.__ANT_BUTTON = !0;
|
|
|
51999
51999
|
const cl = Qc;
|
|
52000
52000
|
cl.Button = AR;
|
|
52001
52001
|
var iZ = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, aZ = {}, sZ = function(t, n) {
|
|
52002
|
-
return /* @__PURE__ */ g.createElement(
|
|
52002
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
52003
52003
|
ref: n,
|
|
52004
52004
|
icon: iZ
|
|
52005
52005
|
}));
|
|
@@ -52080,7 +52080,7 @@ const cZ = (e) => {
|
|
|
52080
52080
|
}
|
|
52081
52081
|
}
|
|
52082
52082
|
};
|
|
52083
|
-
}, dZ =
|
|
52083
|
+
}, dZ = tn(["Input", "OTP"], (e) => {
|
|
52084
52084
|
const t = Dt(e, Zc(e));
|
|
52085
52085
|
return uZ(t);
|
|
52086
52086
|
}, eu);
|
|
@@ -52273,7 +52273,7 @@ const mZ = (e) => {
|
|
|
52273
52273
|
}))));
|
|
52274
52274
|
});
|
|
52275
52275
|
var vZ = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" }, bZ = {}, yZ = function(t, n) {
|
|
52276
|
-
return /* @__PURE__ */ g.createElement(
|
|
52276
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
52277
52277
|
ref: n,
|
|
52278
52278
|
icon: vZ
|
|
52279
52279
|
}));
|
|
@@ -52504,9 +52504,9 @@ var IZ = {}, TZ = ["prefixCls", "defaultValue", "value", "autoSize", "onResize",
|
|
|
52504
52504
|
}, [a]), S = ee(x, 2), w = S[0], E = S[1], $ = !!a, O = g.useState(ym), k = ee(O, 2), M = k[0], I = k[1], R = g.useState(), N = ee(R, 2), T = N[0], A = N[1], _ = function() {
|
|
52505
52505
|
I(vm), IZ.NODE_ENV === "test" && (f == null || f());
|
|
52506
52506
|
};
|
|
52507
|
-
|
|
52507
|
+
en(function() {
|
|
52508
52508
|
$ && _();
|
|
52509
|
-
}, [i, w, E, $]),
|
|
52509
|
+
}, [i, w, E, $]), en(function() {
|
|
52510
52510
|
if (M === vm)
|
|
52511
52511
|
I(bm);
|
|
52512
52512
|
else if (M === bm) {
|
|
@@ -52587,15 +52587,15 @@ var IZ = {}, TZ = ["prefixCls", "defaultValue", "value", "autoSize", "onResize",
|
|
|
52587
52587
|
q(!1), a == null || a(Me);
|
|
52588
52588
|
}, Ae = function(Me) {
|
|
52589
52589
|
_(""), ne(), Rf(ae(), Me, s);
|
|
52590
|
-
}, Ne = f,
|
|
52591
|
-
Q.show && (Q.showFormatter ?
|
|
52590
|
+
}, Ne = f, Ke;
|
|
52591
|
+
Q.show && (Q.showFormatter ? Ke = Q.showFormatter({
|
|
52592
52592
|
value: D,
|
|
52593
52593
|
count: ue,
|
|
52594
52594
|
maxLength: le
|
|
52595
|
-
}) :
|
|
52595
|
+
}) : Ke = "".concat(ue).concat(se ? " / ".concat(le) : ""), Ne = /* @__PURE__ */ j.createElement(j.Fragment, null, Ne, /* @__PURE__ */ j.createElement("span", {
|
|
52596
52596
|
className: Y("".concat(h, "-data-count"), S == null ? void 0 : S.count),
|
|
52597
52597
|
style: w == null ? void 0 : w.count
|
|
52598
|
-
},
|
|
52598
|
+
}, Ke)));
|
|
52599
52599
|
var Te = function(Me) {
|
|
52600
52600
|
var Qe;
|
|
52601
52601
|
E == null || E(Me), (Qe = ae()) !== null && Qe !== void 0 && Qe.style.height && te(!0);
|
|
@@ -52618,7 +52618,7 @@ var IZ = {}, TZ = ["prefixCls", "defaultValue", "value", "autoSize", "onResize",
|
|
|
52618
52618
|
} : {}),
|
|
52619
52619
|
dataAttrs: {
|
|
52620
52620
|
affixWrapper: {
|
|
52621
|
-
"data-count": typeof
|
|
52621
|
+
"data-count": typeof Ke == "string" ? Ke : void 0
|
|
52622
52622
|
}
|
|
52623
52623
|
},
|
|
52624
52624
|
hidden: x,
|
|
@@ -52740,7 +52740,7 @@ const _Z = (e) => {
|
|
|
52740
52740
|
}
|
|
52741
52741
|
}
|
|
52742
52742
|
};
|
|
52743
|
-
}, DZ =
|
|
52743
|
+
}, DZ = tn(["Input", "TextArea"], (e) => {
|
|
52744
52744
|
const t = Dt(e, Zc(e));
|
|
52745
52745
|
return _Z(t);
|
|
52746
52746
|
}, eu, {
|
|
@@ -52893,7 +52893,7 @@ const Pf = 100, zR = Pf / 5, BR = Pf / 2 - zR / 2, Cm = BR * 2 * Math.PI, A1 = 5
|
|
|
52893
52893
|
prefixCls: t
|
|
52894
52894
|
}) => {
|
|
52895
52895
|
const n = `${t}-dot`, r = `${n}-holder`, o = `${r}-hidden`, [i, a] = g.useState(!1);
|
|
52896
|
-
|
|
52896
|
+
en(() => {
|
|
52897
52897
|
e !== 0 && a(!0);
|
|
52898
52898
|
}, [e !== 0]);
|
|
52899
52899
|
const s = Math.max(Math.min(e, 100), 0);
|
|
@@ -53218,7 +53218,7 @@ const VZ = new Lt("antSpinMove", {
|
|
|
53218
53218
|
dotSizeSM: t * 0.35,
|
|
53219
53219
|
dotSizeLG: n
|
|
53220
53220
|
};
|
|
53221
|
-
}, KZ =
|
|
53221
|
+
}, KZ = tn("Spin", (e) => {
|
|
53222
53222
|
const t = Dt(e, {
|
|
53223
53223
|
spinDotDefault: e.colorTextDescription
|
|
53224
53224
|
});
|
|
@@ -53485,9 +53485,9 @@ const oee = (e) => {
|
|
|
53485
53485
|
config: tee,
|
|
53486
53486
|
useMessage: J6,
|
|
53487
53487
|
_InternalPanelDoNotUseOrYouWillBeFired: H6
|
|
53488
|
-
},
|
|
53488
|
+
}, En = aee;
|
|
53489
53489
|
iee.forEach((e) => {
|
|
53490
|
-
|
|
53490
|
+
En[e] = (...t) => ree(e, t);
|
|
53491
53491
|
});
|
|
53492
53492
|
var see = function(e, t) {
|
|
53493
53493
|
var n = {};
|
|
@@ -54098,7 +54098,7 @@ const Cee = ({
|
|
|
54098
54098
|
// magic for capsule shape, should be a very large number
|
|
54099
54099
|
circleTextFontSize: "1em",
|
|
54100
54100
|
circleIconFontSize: `${e.fontSize / e.fontSizeSM}em`
|
|
54101
|
-
}), Iee =
|
|
54101
|
+
}), Iee = tn("Progress", (e) => {
|
|
54102
54102
|
const t = e.calc(e.marginXXS).div(2).equal(), n = Dt(e, {
|
|
54103
54103
|
progressStepMarginInlineEnd: t,
|
|
54104
54104
|
progressStepMinWidth: t,
|
|
@@ -54332,7 +54332,7 @@ const zee = ["normal", "exception", "active", "success"], UR = /* @__PURE__ */ g
|
|
|
54332
54332
|
});
|
|
54333
54333
|
md.NODE_ENV !== "production" && (UR.displayName = "Progress");
|
|
54334
54334
|
var Bee = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" }, jee = {}, Fee = function(t, n) {
|
|
54335
|
-
return /* @__PURE__ */ g.createElement(
|
|
54335
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
54336
54336
|
ref: n,
|
|
54337
54337
|
icon: Bee
|
|
54338
54338
|
}));
|
|
@@ -55345,7 +55345,7 @@ const Gee = (e) => {
|
|
|
55345
55345
|
}, tte = (e) => ({
|
|
55346
55346
|
actionsColor: e.colorIcon,
|
|
55347
55347
|
pictureCardSize: e.controlHeightLG * 2.55
|
|
55348
|
-
}), nte =
|
|
55348
|
+
}), nte = tn("Upload", (e) => {
|
|
55349
55349
|
const {
|
|
55350
55350
|
fontSizeHeading3: t,
|
|
55351
55351
|
fontHeight: n,
|
|
@@ -55362,14 +55362,14 @@ const Gee = (e) => {
|
|
|
55362
55362
|
var rte = { icon: function(t, n) {
|
|
55363
55363
|
return { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M534 352V136H232v752h560V394H576a42 42 0 01-42-42z", fill: n } }, { tag: "path", attrs: { d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z", fill: t } }] };
|
|
55364
55364
|
}, name: "file", theme: "twotone" }, ote = {}, ite = function(t, n) {
|
|
55365
|
-
return /* @__PURE__ */ g.createElement(
|
|
55365
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
55366
55366
|
ref: n,
|
|
55367
55367
|
icon: rte
|
|
55368
55368
|
}));
|
|
55369
55369
|
}, KR = /* @__PURE__ */ g.forwardRef(ite);
|
|
55370
55370
|
ote.NODE_ENV !== "production" && (KR.displayName = "FileTwoTone");
|
|
55371
55371
|
var ate = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z" } }] }, name: "paper-clip", theme: "outlined" }, ste = {}, lte = function(t, n) {
|
|
55372
|
-
return /* @__PURE__ */ g.createElement(
|
|
55372
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
55373
55373
|
ref: n,
|
|
55374
55374
|
icon: ate
|
|
55375
55375
|
}));
|
|
@@ -55378,7 +55378,7 @@ ste.NODE_ENV !== "production" && (GR.displayName = "PaperClipOutlined");
|
|
|
55378
55378
|
var cte = { icon: function(t, n) {
|
|
55379
55379
|
return { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z", fill: t } }, { tag: "path", attrs: { d: "M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z", fill: n } }, { tag: "path", attrs: { d: "M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z", fill: n } }, { tag: "path", attrs: { d: "M276 368a28 28 0 1056 0 28 28 0 10-56 0z", fill: n } }, { tag: "path", attrs: { d: "M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z", fill: t } }] };
|
|
55380
55380
|
}, name: "picture", theme: "twotone" }, ute = {}, dte = function(t, n) {
|
|
55381
|
-
return /* @__PURE__ */ g.createElement(
|
|
55381
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
55382
55382
|
ref: n,
|
|
55383
55383
|
icon: cte
|
|
55384
55384
|
}));
|
|
@@ -55452,7 +55452,7 @@ function mte(e) {
|
|
|
55452
55452
|
});
|
|
55453
55453
|
}
|
|
55454
55454
|
var gte = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, name: "download", theme: "outlined" }, vte = {}, bte = function(t, n) {
|
|
55455
|
-
return /* @__PURE__ */ g.createElement(
|
|
55455
|
+
return /* @__PURE__ */ g.createElement(Sn, ge({}, t, {
|
|
55456
55456
|
ref: n,
|
|
55457
55457
|
icon: gte
|
|
55458
55458
|
}));
|
|
@@ -55949,7 +55949,7 @@ const zl = `__LIST_IGNORE_${Date.now()}__`, wte = (e, t) => {
|
|
|
55949
55949
|
previewIcon: Je,
|
|
55950
55950
|
downloadIcon: Ae,
|
|
55951
55951
|
extra: Ne
|
|
55952
|
-
} = typeof a == "boolean" ? {} : a,
|
|
55952
|
+
} = typeof a == "boolean" ? {} : a, Ke = typeof Se > "u" ? !_ : Se, Te = (ve, ye) => a ? /* @__PURE__ */ g.createElement(QR, {
|
|
55953
55953
|
prefixCls: Q,
|
|
55954
55954
|
listType: s,
|
|
55955
55955
|
items: B,
|
|
@@ -55957,7 +55957,7 @@ const zl = `__LIST_IGNORE_${Date.now()}__`, wte = (e, t) => {
|
|
|
55957
55957
|
onPreview: l,
|
|
55958
55958
|
onDownload: c,
|
|
55959
55959
|
onRemove: ne,
|
|
55960
|
-
showRemoveIcon:
|
|
55960
|
+
showRemoveIcon: Ke,
|
|
55961
55961
|
showPreviewIcon: ce,
|
|
55962
55962
|
showDownloadIcon: xe,
|
|
55963
55963
|
removeIcon: Fe,
|
|
@@ -57271,14 +57271,14 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57271
57271
|
}
|
|
57272
57272
|
) }), Nne = ({ editor: e, children: t, t: n }) => {
|
|
57273
57273
|
var m, b, y, C;
|
|
57274
|
-
const [r, o] = $e(!1), { config: i } = pt(
|
|
57274
|
+
const [r, o] = $e(!1), { config: i } = pt(Cn) || {}, a = (i == null ? void 0 : i.theme) === "dark", s = ((m = i == null ? void 0 : i.variables) == null ? void 0 : m.items) || [], l = ((b = i == null ? void 0 : i.variables) == null ? void 0 : b.prefix) || "${", c = ((y = i == null ? void 0 : i.variables) == null ? void 0 : y.suffix) || "}", u = (x) => {
|
|
57275
57275
|
e.chain().focus().insertVariable({
|
|
57276
57276
|
id: x.id,
|
|
57277
57277
|
label: x.label
|
|
57278
57278
|
}).run(), o(!1);
|
|
57279
|
-
}, d = a ? "#374151" : "#ffffff", f = a ? "#4b5563" : "#e5e7eb", p = a ? "#f9fafb" : "#1f2937", h = a ? "#9ca3af" : "#6b7280", v = /* @__PURE__ */
|
|
57279
|
+
}, d = a ? "#374151" : "#ffffff", f = a ? "#4b5563" : "#e5e7eb", p = a ? "#f9fafb" : "#1f2937", h = a ? "#9ca3af" : "#6b7280", v = /* @__PURE__ */ Xe("div", { className: "variable-panel", style: { background: d }, children: [
|
|
57280
57280
|
/* @__PURE__ */ P("div", { className: "variable-panel-title", style: { color: p, borderBottomColor: f }, children: ((C = n == null ? void 0 : n.variable) == null ? void 0 : C.title) || "插入变量" }),
|
|
57281
|
-
/* @__PURE__ */ P("div", { className: "variable-panel-list", children: s.map((x) => /* @__PURE__ */
|
|
57281
|
+
/* @__PURE__ */ P("div", { className: "variable-panel-list", children: s.map((x) => /* @__PURE__ */ Xe(
|
|
57282
57282
|
"div",
|
|
57283
57283
|
{
|
|
57284
57284
|
className: "variable-panel-item",
|
|
@@ -57719,7 +57719,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57719
57719
|
z-index: 20;
|
|
57720
57720
|
}
|
|
57721
57721
|
`, Mne = ({ editor: e, children: t, t: n }) => {
|
|
57722
|
-
const [r, o] = $e(!1), { config: i } = pt(
|
|
57722
|
+
const [r, o] = $e(!1), { config: i } = pt(Cn), s = (() => {
|
|
57723
57723
|
if (!e) return {};
|
|
57724
57724
|
let c = "";
|
|
57725
57725
|
try {
|
|
@@ -57756,7 +57756,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57756
57756
|
children: /* @__PURE__ */ P("pre", { className: "source-code-content", children: s.text })
|
|
57757
57757
|
}
|
|
57758
57758
|
];
|
|
57759
|
-
return /* @__PURE__ */
|
|
57759
|
+
return /* @__PURE__ */ Xe(Hr, { children: [
|
|
57760
57760
|
/* @__PURE__ */ P("div", { onClick: () => o(!0), children: t }),
|
|
57761
57761
|
/* @__PURE__ */ P(
|
|
57762
57762
|
Tr,
|
|
@@ -57772,7 +57772,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57772
57772
|
)
|
|
57773
57773
|
] });
|
|
57774
57774
|
}, Ine = ({ editor: e, children: t, t: n }) => {
|
|
57775
|
-
const [r, o] = $e(!1), i = de(null), { config: a } = pt(
|
|
57775
|
+
const [r, o] = $e(!1), i = de(null), { config: a } = pt(Cn), s = () => {
|
|
57776
57776
|
if (!e) return "";
|
|
57777
57777
|
let c = e.getHTML();
|
|
57778
57778
|
return a != null && a.injectStyles && (c = `<style>${$a}</style>${c}`), c;
|
|
@@ -57785,7 +57785,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57785
57785
|
const f = i.current.querySelector(`[id="${d}"]`);
|
|
57786
57786
|
f && f.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
57787
57787
|
};
|
|
57788
|
-
return /* @__PURE__ */
|
|
57788
|
+
return /* @__PURE__ */ Xe(Hr, { children: [
|
|
57789
57789
|
/* @__PURE__ */ P("div", { onClick: () => o(!0), children: t }),
|
|
57790
57790
|
/* @__PURE__ */ P(
|
|
57791
57791
|
Tr,
|
|
@@ -57819,7 +57819,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57819
57819
|
background: "#1890ff",
|
|
57820
57820
|
borderColor: "#1890ff"
|
|
57821
57821
|
};
|
|
57822
|
-
return /* @__PURE__ */
|
|
57822
|
+
return /* @__PURE__ */ Xe("div", { className: "table-insert-grid", children: [
|
|
57823
57823
|
/* @__PURE__ */ P("div", { className: "table-grid-label", style: { color: t ? "#9ca3af" : "#6b7280" }, children: r.row > 0 && r.col > 0 ? `${r.row} × ${r.col}` : n.table.selectSize || "选择大小" }),
|
|
57824
57824
|
/* @__PURE__ */ P(
|
|
57825
57825
|
"div",
|
|
@@ -57839,7 +57839,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57839
57839
|
)
|
|
57840
57840
|
] });
|
|
57841
57841
|
}, Rne = ({ editor: e, children: t, t: n }) => {
|
|
57842
|
-
const [r, o] = $e(!1), { config: i } = pt(
|
|
57842
|
+
const [r, o] = $e(!1), { config: i } = pt(Cn) || {}, a = (i == null ? void 0 : i.theme) === "dark", s = (e == null ? void 0 : e.isActive("table")) || !1, l = (v, m) => {
|
|
57843
57843
|
e.chain().focus().insertTable({ rows: v, cols: m, withHeaderRow: !0 }).run(), o(!1);
|
|
57844
57844
|
}, c = ({ icon: v, title: m, onClick: b, disabled: y }) => /* @__PURE__ */ P(Bt, { title: m, mouseEnterDelay: 0.3, children: /* @__PURE__ */ P(
|
|
57845
57845
|
"button",
|
|
@@ -57850,12 +57850,12 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57850
57850
|
disabled: y,
|
|
57851
57851
|
children: /* @__PURE__ */ P(ut, { icon: v, size: 16 })
|
|
57852
57852
|
}
|
|
57853
|
-
) }), u = a ? "#374151" : "#ffffff", d = a ? "#4b5563" : "#e5e7eb", f = a ? "#9ca3af" : "#6b7280", p = /* @__PURE__ */
|
|
57853
|
+
) }), u = a ? "#374151" : "#ffffff", d = a ? "#4b5563" : "#e5e7eb", f = a ? "#9ca3af" : "#6b7280", p = /* @__PURE__ */ Xe("div", { className: "table-menu-panel", style: { background: u }, children: [
|
|
57854
57854
|
/* @__PURE__ */ P("div", { className: "table-menu-section-title", style: { color: f }, children: n.table.insertTable }),
|
|
57855
57855
|
/* @__PURE__ */ P(Tne, { onSelect: l, isDark: a, t: n })
|
|
57856
|
-
] }), h = /* @__PURE__ */
|
|
57856
|
+
] }), h = /* @__PURE__ */ Xe("div", { className: "table-menu-panel", style: { background: u }, children: [
|
|
57857
57857
|
/* @__PURE__ */ P("div", { className: "table-menu-section-title", style: { color: f }, children: n.table.rows }),
|
|
57858
|
-
/* @__PURE__ */
|
|
57858
|
+
/* @__PURE__ */ Xe("div", { className: "table-menu-actions", children: [
|
|
57859
57859
|
/* @__PURE__ */ P(
|
|
57860
57860
|
c,
|
|
57861
57861
|
{
|
|
@@ -57885,7 +57885,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57885
57885
|
)
|
|
57886
57886
|
] }),
|
|
57887
57887
|
/* @__PURE__ */ P("div", { className: "table-menu-section-title", style: { color: f }, children: n.table.cols }),
|
|
57888
|
-
/* @__PURE__ */
|
|
57888
|
+
/* @__PURE__ */ Xe("div", { className: "table-menu-actions", children: [
|
|
57889
57889
|
/* @__PURE__ */ P(
|
|
57890
57890
|
c,
|
|
57891
57891
|
{
|
|
@@ -57915,7 +57915,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57915
57915
|
)
|
|
57916
57916
|
] }),
|
|
57917
57917
|
/* @__PURE__ */ P("div", { className: "table-menu-section-title", style: { color: f }, children: n.table.cells || "单元格操作" }),
|
|
57918
|
-
/* @__PURE__ */
|
|
57918
|
+
/* @__PURE__ */ Xe("div", { className: "table-menu-actions", children: [
|
|
57919
57919
|
/* @__PURE__ */ P(
|
|
57920
57920
|
c,
|
|
57921
57921
|
{
|
|
@@ -57936,7 +57936,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
57936
57936
|
)
|
|
57937
57937
|
] }),
|
|
57938
57938
|
/* @__PURE__ */ P("div", { className: "table-menu-section-title", style: { color: f }, children: n.table.tableOps || "表格操作" }),
|
|
57939
|
-
/* @__PURE__ */
|
|
57939
|
+
/* @__PURE__ */ Xe("div", { className: "table-menu-actions", children: [
|
|
57940
57940
|
/* @__PURE__ */ P(
|
|
57941
57941
|
c,
|
|
57942
57942
|
{
|
|
@@ -58004,7 +58004,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58004
58004
|
children: /* @__PURE__ */ P(ut, { icon: e, size: 16 })
|
|
58005
58005
|
}
|
|
58006
58006
|
) }), Pne = ({ editor: e, children: t, t: n }) => {
|
|
58007
|
-
const [r, o] = $e(!1), i = de(null), { config: a } = pt(
|
|
58007
|
+
const [r, o] = $e(!1), i = de(null), { config: a } = pt(Cn) || {}, s = (a == null ? void 0 : a.theme) === "dark", l = s ? "#374151" : "#ffffff", c = s ? "#4b5563" : "#e5e7eb", u = s ? "#f9fafb" : "#1f2937", d = s ? "#9ca3af" : "#6b7280", f = s ? "#4b5563" : "#f3f4f6", p = "#1890ff", h = "#ffffff", v = aa({
|
|
58008
58008
|
editor: e,
|
|
58009
58009
|
selector: (b) => ({
|
|
58010
58010
|
textAlign: b.editor.getAttributes("paragraph").textAlign || "left"
|
|
@@ -58019,11 +58019,11 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58019
58019
|
const m = (b) => {
|
|
58020
58020
|
e.isActive({ textAlign: b }) ? e.chain().focus().unsetTextAlign().run() : e.chain().focus().setTextAlign(b).run();
|
|
58021
58021
|
};
|
|
58022
|
-
return /* @__PURE__ */
|
|
58022
|
+
return /* @__PURE__ */ Xe("div", { ref: i, className: "align-menu-wrapper", style: { display: "inline-flex" }, children: [
|
|
58023
58023
|
/* @__PURE__ */ P("div", { onClick: () => o(!r), children: t }),
|
|
58024
|
-
r && /* @__PURE__ */
|
|
58024
|
+
r && /* @__PURE__ */ Xe("div", { className: "align-menu-popup", style: { background: l, border: `1px solid ${c}` }, children: [
|
|
58025
58025
|
/* @__PURE__ */ P("div", { className: "align-menu-title", style: { color: d }, children: n.toolbar.align }),
|
|
58026
|
-
/* @__PURE__ */
|
|
58026
|
+
/* @__PURE__ */ Xe("div", { className: "align-menu-actions", children: [
|
|
58027
58027
|
/* @__PURE__ */ P(
|
|
58028
58028
|
zu,
|
|
58029
58029
|
{
|
|
@@ -58168,7 +58168,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58168
58168
|
return n.responseParser(s);
|
|
58169
58169
|
}, { Dragger: Dne } = ly, Lne = ({ editor: e, children: t, t: n }) => {
|
|
58170
58170
|
var b, y, C, x, S, w;
|
|
58171
|
-
const { config: r } = pt(
|
|
58171
|
+
const { config: r } = pt(Cn), [o, i] = $e(!1), [a, s] = $e(""), l = (r == null ? void 0 : r.theme) === "dark", c = (E, $ = {}) => {
|
|
58172
58172
|
e.chain().focus().insertImage({
|
|
58173
58173
|
src: E,
|
|
58174
58174
|
...$
|
|
@@ -58182,7 +58182,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58182
58182
|
}, d = () => {
|
|
58183
58183
|
var E;
|
|
58184
58184
|
if (!a.trim()) {
|
|
58185
|
-
|
|
58185
|
+
En.warning(((E = n == null ? void 0 : n.image) == null ? void 0 : E.urlPlaceholder) || "请输入图片地址");
|
|
58186
58186
|
return;
|
|
58187
58187
|
}
|
|
58188
58188
|
c(a.trim());
|
|
@@ -58196,7 +58196,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58196
58196
|
{
|
|
58197
58197
|
key: "upload",
|
|
58198
58198
|
label: ((b = n == null ? void 0 : n.image) == null ? void 0 : b.upload) || "本地上传",
|
|
58199
|
-
children: /* @__PURE__ */ P("div", { className: "image-menu-upload", children: /* @__PURE__ */
|
|
58199
|
+
children: /* @__PURE__ */ P("div", { className: "image-menu-upload", children: /* @__PURE__ */ Xe(Dne, { ...p, className: "image-menu-dragger", children: [
|
|
58200
58200
|
/* @__PURE__ */ P("p", { className: "ant-upload-drag-icon", children: /* @__PURE__ */ P(ut, { icon: "mdi:cloud-upload", size: 48 }) }),
|
|
58201
58201
|
/* @__PURE__ */ P("p", { className: "ant-upload-text", children: ((y = n == null ? void 0 : n.image) == null ? void 0 : y.uploadPlaceholder) || "点击或拖拽图片到此区域上传" }),
|
|
58202
58202
|
/* @__PURE__ */ P("p", { className: "ant-upload-hint", children: ((C = n == null ? void 0 : n.image) == null ? void 0 : C.uploadHint) || "支持 JPG、PNG、GIF 等格式" })
|
|
@@ -58205,7 +58205,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58205
58205
|
{
|
|
58206
58206
|
key: "url",
|
|
58207
58207
|
label: ((x = n == null ? void 0 : n.image) == null ? void 0 : x.url) || "网络图片",
|
|
58208
|
-
children: /* @__PURE__ */
|
|
58208
|
+
children: /* @__PURE__ */ Xe("div", { className: "image-menu-url", children: [
|
|
58209
58209
|
/* @__PURE__ */ P(
|
|
58210
58210
|
wo,
|
|
58211
58211
|
{
|
|
@@ -58246,7 +58246,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58246
58246
|
}
|
|
58247
58247
|
);
|
|
58248
58248
|
}, Lf = ({ editor: e, type: t, title: n }) => {
|
|
58249
|
-
const [r, o] = $e(null), [i, a] = $e(!1), { config: s } = pt(
|
|
58249
|
+
const [r, o] = $e(null), [i, a] = $e(!1), { config: s } = pt(Cn) || {}, l = (s == null ? void 0 : s.theme) === "dark", c = l ? "#374151" : "#ffffff", u = l ? "#4b5563" : "#f0f0f0", d = l ? "#f9fafb" : "#666666", f = t === "text", p = f ? e.getAttributes("textStyle").color : e.getAttributes("highlight").color;
|
|
58250
58250
|
it(() => {
|
|
58251
58251
|
o(p || null);
|
|
58252
58252
|
}, [p]);
|
|
@@ -58292,7 +58292,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58292
58292
|
background: c
|
|
58293
58293
|
}
|
|
58294
58294
|
},
|
|
58295
|
-
panelRender: (b) => /* @__PURE__ */
|
|
58295
|
+
panelRender: (b) => /* @__PURE__ */ Xe("div", { style: { minWidth: 200, background: c }, children: [
|
|
58296
58296
|
b,
|
|
58297
58297
|
/* @__PURE__ */ P("div", { style: { padding: "8px 0", borderTop: `1px solid ${u}` }, children: /* @__PURE__ */ P(
|
|
58298
58298
|
"button",
|
|
@@ -58311,7 +58311,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58311
58311
|
}
|
|
58312
58312
|
) })
|
|
58313
58313
|
] }),
|
|
58314
|
-
children: /* @__PURE__ */
|
|
58314
|
+
children: /* @__PURE__ */ Xe("button", { className: `button ${p ? "is-active" : ""}`, style: { position: "relative" }, children: [
|
|
58315
58315
|
/* @__PURE__ */ P(ut, { icon: f ? "mdi:format-color-text" : "mdi:format-color-highlight", size: 16 }),
|
|
58316
58316
|
p && /* @__PURE__ */ P(
|
|
58317
58317
|
"span",
|
|
@@ -58332,7 +58332,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58332
58332
|
}
|
|
58333
58333
|
) }) });
|
|
58334
58334
|
}, zne = [12, 14, 16, 18, 20, 24, 28, 32, 36, 48, 72], Bne = ({ editor: e, t }) => {
|
|
58335
|
-
const [n, r] = $e(!1), [o, i] = $e(16), a = de(null), { config: s } = pt(
|
|
58335
|
+
const [n, r] = $e(!1), [o, i] = $e(16), a = de(null), { config: s } = pt(Cn) || {}, l = (s == null ? void 0 : s.theme) === "dark", c = l ? "#374151" : "#ffffff", u = l ? "#4b5563" : "#e5e7eb", d = l ? "#f9fafb" : "#1f2937", f = "#1890ff", p = l ? "#ffffff" : "#1890ff";
|
|
58336
58336
|
it(() => {
|
|
58337
58337
|
const v = (m) => {
|
|
58338
58338
|
a.current && !a.current.contains(m.target) && r(!1);
|
|
@@ -58342,7 +58342,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58342
58342
|
const h = (v) => {
|
|
58343
58343
|
e.chain().focus().setMark("textStyle", { fontSize: `${v}px` }).run(), i(v), r(!1);
|
|
58344
58344
|
};
|
|
58345
|
-
return /* @__PURE__ */
|
|
58345
|
+
return /* @__PURE__ */ Xe("div", { ref: a, className: "font-size-selector-wrapper", style: { display: "inline-flex", position: "relative" }, children: [
|
|
58346
58346
|
/* @__PURE__ */ P(Bt, { title: t.toolbar.fontSize, mouseEnterDelay: 0.5, children: /* @__PURE__ */ P(
|
|
58347
58347
|
"button",
|
|
58348
58348
|
{
|
|
@@ -58397,7 +58397,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58397
58397
|
if (e === 6)
|
|
58398
58398
|
return /* @__PURE__ */ P(ut, { icon: "mdi:format-header-6", size: 16 });
|
|
58399
58399
|
}, jne = ({ editor: e, t }) => {
|
|
58400
|
-
const [n, r] = $e(!1), o = de(null), { config: i } = pt(
|
|
58400
|
+
const [n, r] = $e(!1), o = de(null), { config: i } = pt(Cn) || {}, a = (i == null ? void 0 : i.theme) === "dark", s = a ? "#374151" : "#ffffff", l = a ? "#4b5563" : "#e5e7eb", c = a ? "#f9fafb" : "#1f2937", u = "#1890ff", d = a ? "#ffffff" : "#1890ff", f = [
|
|
58401
58401
|
{ level: 1, label: t.toolbar.heading1 },
|
|
58402
58402
|
{ level: 2, label: t.toolbar.heading2 },
|
|
58403
58403
|
{ level: 3, label: t.toolbar.heading3 },
|
|
@@ -58426,7 +58426,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58426
58426
|
const h = (m) => {
|
|
58427
58427
|
m === 0 ? e.chain().focus().setParagraph().run() : e.chain().focus().toggleHeading({ level: m }).run(), r(!1);
|
|
58428
58428
|
}, v = f.find((m) => m.level === p.activeLevel) || f[6];
|
|
58429
|
-
return /* @__PURE__ */
|
|
58429
|
+
return /* @__PURE__ */ Xe("div", { ref: o, className: "heading-selector-wrapper", style: { display: "inline-flex", position: "relative" }, children: [
|
|
58430
58430
|
/* @__PURE__ */ P(Bt, { title: t.toolbar.heading, mouseEnterDelay: 0.5, children: /* @__PURE__ */ P(
|
|
58431
58431
|
"button",
|
|
58432
58432
|
{
|
|
@@ -58436,7 +58436,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58436
58436
|
children: /* @__PURE__ */ P(oE, { level: v.level })
|
|
58437
58437
|
}
|
|
58438
58438
|
) }),
|
|
58439
|
-
n && /* @__PURE__ */ P("div", { className: "heading-selector-popup", style: { background: s, border: `1px solid ${l}` }, children: f.map((m) => /* @__PURE__ */
|
|
58439
|
+
n && /* @__PURE__ */ P("div", { className: "heading-selector-popup", style: { background: s, border: `1px solid ${l}` }, children: f.map((m) => /* @__PURE__ */ Xe(
|
|
58440
58440
|
"button",
|
|
58441
58441
|
{
|
|
58442
58442
|
type: "button",
|
|
@@ -58461,7 +58461,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58461
58461
|
)) })
|
|
58462
58462
|
] });
|
|
58463
58463
|
}, pP = ({ editor: e, t }) => {
|
|
58464
|
-
const [n, r] = $e(!1), [o, i] = $e(""), a = de(null), { config: s } = pt(
|
|
58464
|
+
const [n, r] = $e(!1), [o, i] = $e(""), a = de(null), { config: s } = pt(Cn) || {}, l = (s == null ? void 0 : s.theme) === "dark", c = l ? "#374151" : "#ffffff", u = l ? "#4b5563" : "#e5e7eb", d = aa({
|
|
58465
58465
|
editor: e,
|
|
58466
58466
|
selector: (h) => ({
|
|
58467
58467
|
isLink: h.editor.isActive("link"),
|
|
@@ -58481,7 +58481,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58481
58481
|
}, p = () => {
|
|
58482
58482
|
e.chain().focus().unsetLink().run(), r(!1);
|
|
58483
58483
|
};
|
|
58484
|
-
return /* @__PURE__ */
|
|
58484
|
+
return /* @__PURE__ */ Xe("div", { ref: a, className: "link-button-wrapper", style: { display: "inline-flex", position: "relative" }, children: [
|
|
58485
58485
|
/* @__PURE__ */ P(Bt, { title: t.link.title, mouseEnterDelay: 0.5, children: /* @__PURE__ */ P(
|
|
58486
58486
|
"button",
|
|
58487
58487
|
{
|
|
@@ -58491,7 +58491,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58491
58491
|
children: /* @__PURE__ */ P(ut, { icon: "mdi:link", size: 16 })
|
|
58492
58492
|
}
|
|
58493
58493
|
) }),
|
|
58494
|
-
n && /* @__PURE__ */ P("div", { className: "link-button-popup", style: { background: c, border: `1px solid ${u}` }, children: /* @__PURE__ */
|
|
58494
|
+
n && /* @__PURE__ */ P("div", { className: "link-button-popup", style: { background: c, border: `1px solid ${u}` }, children: /* @__PURE__ */ Xe("div", { className: "link-input-wrapper", children: [
|
|
58495
58495
|
/* @__PURE__ */ P(
|
|
58496
58496
|
wo,
|
|
58497
58497
|
{
|
|
@@ -58575,7 +58575,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58575
58575
|
}
|
|
58576
58576
|
), qne = ({ categoryKey: e, categoryData: t, getLabel: n, insertEmoji: r, isDark: o, textColor: i }) => {
|
|
58577
58577
|
var a;
|
|
58578
|
-
return /* @__PURE__ */
|
|
58578
|
+
return /* @__PURE__ */ Xe("div", { style: { marginBottom: "8px" }, children: [
|
|
58579
58579
|
/* @__PURE__ */ P("div", { style: {
|
|
58580
58580
|
fontSize: "11px",
|
|
58581
58581
|
color: i,
|
|
@@ -58599,7 +58599,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58599
58599
|
] });
|
|
58600
58600
|
}, Kne = ({ editor: e, t }) => {
|
|
58601
58601
|
var b, y, C;
|
|
58602
|
-
const [n, r] = $e(!1), [o, i] = $e("grouped"), a = de(null), { config: s } = pt(
|
|
58602
|
+
const [n, r] = $e(!1), [o, i] = $e("grouped"), a = de(null), { config: s } = pt(Cn) || {}, l = (s == null ? void 0 : s.theme) === "dark", c = l ? "#374151" : "#ffffff", u = l ? "#4b5563" : "#e5e7eb", d = l ? "#f9fafb" : "#1f2937", f = "#1890ff", p = "#ffffff", h = [
|
|
58603
58603
|
{ key: "grouped", label: ((b = t == null ? void 0 : t.emoji) == null ? void 0 : b.grouped) || "Grouped" },
|
|
58604
58604
|
{ key: "classic", label: ((y = t == null ? void 0 : t.emoji) == null ? void 0 : y.classic) || "Classic" }
|
|
58605
58605
|
], v = (x) => {
|
|
@@ -58615,7 +58615,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58615
58615
|
const m = (x) => {
|
|
58616
58616
|
e.chain().focus().insertContent(x).run(), r(!1);
|
|
58617
58617
|
};
|
|
58618
|
-
return /* @__PURE__ */
|
|
58618
|
+
return /* @__PURE__ */ Xe("div", { ref: a, style: { display: "inline-flex", position: "relative" }, children: [
|
|
58619
58619
|
/* @__PURE__ */ P(Bt, { title: ((C = t == null ? void 0 : t.toolbar) == null ? void 0 : C.emoji) || "Insert Emoji", mouseEnterDelay: 0.5, children: /* @__PURE__ */ P(
|
|
58620
58620
|
"button",
|
|
58621
58621
|
{
|
|
@@ -58625,7 +58625,7 @@ const ut = ({ icon: e, size: t = 16, style: n, className: r, ...o }) => {
|
|
|
58625
58625
|
children: /* @__PURE__ */ P(ut, { icon: "mdi:emoticon-outline", size: 16 })
|
|
58626
58626
|
}
|
|
58627
58627
|
) }),
|
|
58628
|
-
n && /* @__PURE__ */
|
|
58628
|
+
n && /* @__PURE__ */ Xe("div", { style: {
|
|
58629
58629
|
position: "absolute",
|
|
58630
58630
|
top: "100%",
|
|
58631
58631
|
left: 0,
|
|
@@ -58892,7 +58892,7 @@ function hy() {
|
|
|
58892
58892
|
}
|
|
58893
58893
|
const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedText: r, t: o }) => {
|
|
58894
58894
|
var D, B, H, X, q, L, V, F, U, te, J, re, ae, ne;
|
|
58895
|
-
const { config: i } = pt(
|
|
58895
|
+
const { config: i } = pt(Cn) || {}, [a, s] = $e(""), [l, c] = $e(""), [u, d] = $e(!1), [f, p] = $e([]), [h, v] = $e("en"), m = de(null), b = de(null), y = (i == null ? void 0 : i.ai) || {}, C = (i == null ? void 0 : i.theme) === "dark", x = (i == null ? void 0 : i.locale) || "zh", S = C ? "#1f2937" : "#ffffff", w = C ? "#f9fafb" : "#1f2937", E = C ? "#374151" : "#e5e7eb", $ = C ? "#9ca3af" : "#6b7280", O = C ? "#374151" : "#f3f4f6", k = hy();
|
|
58896
58896
|
it(() => {
|
|
58897
58897
|
e && r && s(r);
|
|
58898
58898
|
}, [e, r]), it(() => {
|
|
@@ -58908,7 +58908,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
58908
58908
|
var oe, G;
|
|
58909
58909
|
const ie = a || r;
|
|
58910
58910
|
if (!ie) {
|
|
58911
|
-
|
|
58911
|
+
En.warning(((oe = o.ai) == null ? void 0 : oe.noText) || "Please enter or select some text");
|
|
58912
58912
|
return;
|
|
58913
58913
|
}
|
|
58914
58914
|
d(!0), p((Q) => [...Q, { role: "user", content: ie, action: K.id }]);
|
|
@@ -58925,7 +58925,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
58925
58925
|
} : void 0
|
|
58926
58926
|
}) : Q = await py(ie, K.id, y, x, { targetLang: h }), c(Q), p((le) => [...le, { role: "assistant", content: Q }]);
|
|
58927
58927
|
} catch (Q) {
|
|
58928
|
-
|
|
58928
|
+
En.error(Q.message || ((G = o.ai) == null ? void 0 : G.error) || "AI request failed"), p((le) => [...le, { role: "assistant", content: "", error: !0 }]);
|
|
58929
58929
|
} finally {
|
|
58930
58930
|
d(!1);
|
|
58931
58931
|
}
|
|
@@ -58957,7 +58957,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
58957
58957
|
}
|
|
58958
58958
|
c(oe), p((G) => [...G, { role: "assistant", content: oe }]);
|
|
58959
58959
|
} catch (oe) {
|
|
58960
|
-
|
|
58960
|
+
En.error(oe.message || ((ie = o.ai) == null ? void 0 : ie.error) || "AI request failed"), p((G) => [...G, { role: "assistant", content: "", error: !0 }]);
|
|
58961
58961
|
} finally {
|
|
58962
58962
|
d(!1);
|
|
58963
58963
|
}
|
|
@@ -59004,7 +59004,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59004
59004
|
onCancel: A,
|
|
59005
59005
|
footer: null,
|
|
59006
59006
|
width: 600,
|
|
59007
|
-
title: /* @__PURE__ */
|
|
59007
|
+
title: /* @__PURE__ */ Xe("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
59008
59008
|
/* @__PURE__ */ P(ut, { icon: "mdi:robot-outline", size: 20 }),
|
|
59009
59009
|
/* @__PURE__ */ P("span", { children: ((D = o.ai) == null ? void 0 : D.title) || "AI Assistant" })
|
|
59010
59010
|
] }),
|
|
@@ -59014,9 +59014,9 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59014
59014
|
body: { padding: 0 }
|
|
59015
59015
|
},
|
|
59016
59016
|
centered: !0,
|
|
59017
|
-
children: /* @__PURE__ */
|
|
59018
|
-
/* @__PURE__ */
|
|
59019
|
-
/* @__PURE__ */
|
|
59017
|
+
children: /* @__PURE__ */ Xe("div", { className: "ai-dialog-content", style: { background: S }, children: [
|
|
59018
|
+
/* @__PURE__ */ Xe("div", { className: "ai-quick-actions", style: { borderBottom: `1px solid ${E}` }, children: [
|
|
59019
|
+
/* @__PURE__ */ Xe("span", { style: { color: $, fontSize: 12, marginRight: 8 }, children: [
|
|
59020
59020
|
((B = o.ai) == null ? void 0 : B.quickActions) || "Quick Actions",
|
|
59021
59021
|
":"
|
|
59022
59022
|
] }),
|
|
@@ -59080,8 +59080,8 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59080
59080
|
}
|
|
59081
59081
|
) })
|
|
59082
59082
|
] }),
|
|
59083
|
-
/* @__PURE__ */
|
|
59084
|
-
f.length === 0 && !u && /* @__PURE__ */
|
|
59083
|
+
/* @__PURE__ */ Xe("div", { className: "ai-messages", style: { height: 300, overflow: "auto", padding: 16 }, children: [
|
|
59084
|
+
f.length === 0 && !u && /* @__PURE__ */ Xe("div", { style: { textAlign: "center", color: $, padding: 40 }, children: [
|
|
59085
59085
|
/* @__PURE__ */ P(ut, { icon: "mdi:robot-happy-outline", size: 48, style: { opacity: 0.5 } }),
|
|
59086
59086
|
/* @__PURE__ */ P("p", { style: { marginTop: 16 }, children: ((U = o.ai) == null ? void 0 : U.placeholder) || "Ask AI to help with your writing..." })
|
|
59087
59087
|
] }),
|
|
@@ -59096,7 +59096,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59096
59096
|
display: "flex",
|
|
59097
59097
|
justifyContent: K.role === "user" ? "flex-end" : "flex-start"
|
|
59098
59098
|
},
|
|
59099
|
-
children: /* @__PURE__ */
|
|
59099
|
+
children: /* @__PURE__ */ Xe(
|
|
59100
59100
|
"div",
|
|
59101
59101
|
{
|
|
59102
59102
|
style: {
|
|
@@ -59108,7 +59108,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59108
59108
|
wordBreak: "break-word"
|
|
59109
59109
|
},
|
|
59110
59110
|
children: [
|
|
59111
|
-
K.action && /* @__PURE__ */
|
|
59111
|
+
K.action && /* @__PURE__ */ Xe("div", { style: { fontSize: 11, opacity: 0.7, marginBottom: 4 }, children: [
|
|
59112
59112
|
/* @__PURE__ */ P(ut, { icon: ((oe = k.find((le) => le.id === K.action)) == null ? void 0 : oe.icon) || "mdi:star", size: 12 }),
|
|
59113
59113
|
" ",
|
|
59114
59114
|
((G = o.ai) == null ? void 0 : G[K.action]) || K.action
|
|
@@ -59124,7 +59124,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59124
59124
|
u && !l && /* @__PURE__ */ P("div", { style: { textAlign: "center", padding: 20 }, children: /* @__PURE__ */ P(ay, {}) }),
|
|
59125
59125
|
/* @__PURE__ */ P("div", { ref: m })
|
|
59126
59126
|
] }),
|
|
59127
|
-
/* @__PURE__ */
|
|
59127
|
+
/* @__PURE__ */ Xe("div", { className: "ai-input-area", style: { padding: 16, borderTop: `1px solid ${E}` }, children: [
|
|
59128
59128
|
/* @__PURE__ */ P("div", { style: { display: "flex", gap: 8 }, children: /* @__PURE__ */ P(
|
|
59129
59129
|
Xne,
|
|
59130
59130
|
{
|
|
@@ -59143,10 +59143,10 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59143
59143
|
}
|
|
59144
59144
|
}
|
|
59145
59145
|
) }),
|
|
59146
|
-
/* @__PURE__ */
|
|
59146
|
+
/* @__PURE__ */ Xe("div", { style: { display: "flex", justifyContent: "space-between", marginTop: 12 }, children: [
|
|
59147
59147
|
/* @__PURE__ */ P("div", { children: f.length > 0 && /* @__PURE__ */ P(Mn, { size: "small", onClick: T, style: { marginRight: 8 }, children: ((J = o.ai) == null ? void 0 : J.clear) || "Clear" }) }),
|
|
59148
|
-
/* @__PURE__ */
|
|
59149
|
-
l && /* @__PURE__ */
|
|
59148
|
+
/* @__PURE__ */ Xe("div", { style: { display: "flex", gap: 8 }, children: [
|
|
59149
|
+
l && /* @__PURE__ */ Xe(Hr, { children: [
|
|
59150
59150
|
/* @__PURE__ */ P(Mn, { type: "primary", onClick: R, children: ((re = o.ai) == null ? void 0 : re.apply) || "Apply" }),
|
|
59151
59151
|
/* @__PURE__ */ P(Mn, { onClick: N, children: ((ae = o.ai) == null ? void 0 : ae.replace) || "Replace" })
|
|
59152
59152
|
] }),
|
|
@@ -59159,7 +59159,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59159
59159
|
);
|
|
59160
59160
|
}, Yne = ({ editor: e, children: t, t: n }) => {
|
|
59161
59161
|
var y, C;
|
|
59162
|
-
const [r, o] = $e(!1), [i, a] = $e(""), { config: s } = pt(
|
|
59162
|
+
const [r, o] = $e(!1), [i, a] = $e(""), { config: s } = pt(Cn) || {}, l = (s == null ? void 0 : s.ai) || {}, c = (s == null ? void 0 : s.theme) === "dark", u = (s == null ? void 0 : s.locale) || "zh", d = hy(), f = c ? "#374151" : "#ffffff", p = c ? "#4b5563" : "#e5e7eb", h = () => {
|
|
59163
59163
|
if (!e) return "";
|
|
59164
59164
|
const { from: x, to: S } = e.state.selection;
|
|
59165
59165
|
return e.state.doc.textBetween(x, S, "");
|
|
@@ -59170,7 +59170,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59170
59170
|
var w, E;
|
|
59171
59171
|
const S = h();
|
|
59172
59172
|
if (!S) {
|
|
59173
|
-
|
|
59173
|
+
En.warning(((w = n.ai) == null ? void 0 : w.noSelection) || "Please select some text first");
|
|
59174
59174
|
return;
|
|
59175
59175
|
}
|
|
59176
59176
|
try {
|
|
@@ -59184,7 +59184,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59184
59184
|
const { from: O, to: k } = e.state.selection;
|
|
59185
59185
|
e.chain().focus().insertContentAt({ from: O, to: k }, $).run();
|
|
59186
59186
|
} catch ($) {
|
|
59187
|
-
|
|
59187
|
+
En.error($.message || ((E = n.ai) == null ? void 0 : E.error) || "AI request failed");
|
|
59188
59188
|
}
|
|
59189
59189
|
}, b = [
|
|
59190
59190
|
{
|
|
@@ -59208,7 +59208,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59208
59208
|
})
|
|
59209
59209
|
}
|
|
59210
59210
|
];
|
|
59211
|
-
return /* @__PURE__ */
|
|
59211
|
+
return /* @__PURE__ */ Xe(Hr, { children: [
|
|
59212
59212
|
/* @__PURE__ */ P(
|
|
59213
59213
|
cl,
|
|
59214
59214
|
{
|
|
@@ -59239,7 +59239,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59239
59239
|
)
|
|
59240
59240
|
] });
|
|
59241
59241
|
}, Jne = ({ editor: e, t }) => {
|
|
59242
|
-
const [n, r] = $e(!1), [o, i] = $e(null), a =
|
|
59242
|
+
const [n, r] = $e(!1), [o, i] = $e(null), a = an(() => {
|
|
59243
59243
|
if (!e) return;
|
|
59244
59244
|
const { from: c, to: u } = e.state.selection;
|
|
59245
59245
|
if (c === u)
|
|
@@ -59253,14 +59253,14 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59253
59253
|
});
|
|
59254
59254
|
});
|
|
59255
59255
|
}), d.length > 0 && (i(d), r(!0));
|
|
59256
|
-
}, [e]), s =
|
|
59256
|
+
}, [e]), s = an(() => {
|
|
59257
59257
|
if (!e || !o) return;
|
|
59258
59258
|
const { from: c, to: u } = e.state.selection;
|
|
59259
59259
|
c !== u && (e.chain().focus().unsetAllMarks().run(), o.forEach((d) => {
|
|
59260
59260
|
const f = e.schema.marks[d.type.name];
|
|
59261
59261
|
f && e.chain().focus().addMark(c, u, f.create(d.attrs)).run();
|
|
59262
59262
|
}), r(!1), i(null));
|
|
59263
|
-
}, [e, o]), l =
|
|
59263
|
+
}, [e, o]), l = an(() => {
|
|
59264
59264
|
n && o ? s() : a();
|
|
59265
59265
|
}, [n, o, a, s]);
|
|
59266
59266
|
return it(() => {
|
|
@@ -59289,7 +59289,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59289
59289
|
}
|
|
59290
59290
|
) });
|
|
59291
59291
|
}, Qne = ({ editor: e, children: t, t: n }) => {
|
|
59292
|
-
const { config: r } = pt(
|
|
59292
|
+
const { config: r } = pt(Cn), [o, i] = $e(null), a = an(() => {
|
|
59293
59293
|
let m = e.getHTML();
|
|
59294
59294
|
return r != null && r.injectStyles && (m = `<style>${$a}</style>${m}`), `
|
|
59295
59295
|
<!DOCTYPE html>
|
|
@@ -59316,39 +59316,39 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59316
59316
|
</div>
|
|
59317
59317
|
</body>
|
|
59318
59318
|
</html>`;
|
|
59319
|
-
}, [e, r]), s =
|
|
59319
|
+
}, [e, r]), s = an((m, b, y) => {
|
|
59320
59320
|
const C = new Blob([m], { type: y }), x = URL.createObjectURL(C), S = document.createElement("a");
|
|
59321
59321
|
S.href = x, S.download = b, document.body.appendChild(S), S.click(), document.body.removeChild(S), URL.revokeObjectURL(x);
|
|
59322
|
-
}, []), l =
|
|
59322
|
+
}, []), l = an(() => {
|
|
59323
59323
|
const m = a();
|
|
59324
|
-
s(m, "document.html", "text/html"),
|
|
59325
|
-
}, [a, s, n]), c =
|
|
59324
|
+
s(m, "document.html", "text/html"), En.success(n.export.success);
|
|
59325
|
+
}, [a, s, n]), c = an(() => {
|
|
59326
59326
|
let m = "";
|
|
59327
59327
|
try {
|
|
59328
59328
|
typeof e.getMarkdown == "function" ? m = e.getMarkdown() : e.markdown && typeof e.markdown.serialize == "function" && (m = e.markdown.serialize(e.getJSON()));
|
|
59329
59329
|
} catch (b) {
|
|
59330
59330
|
console.warn("Failed to get markdown:", b);
|
|
59331
59331
|
}
|
|
59332
|
-
s(m, "document.md", "text/markdown"),
|
|
59333
|
-
}, [e, s, n]), u =
|
|
59332
|
+
s(m, "document.md", "text/markdown"), En.success(n.export.success);
|
|
59333
|
+
}, [e, s, n]), u = an(() => {
|
|
59334
59334
|
const m = JSON.stringify(e.getJSON(), null, 2);
|
|
59335
|
-
s(m, "document.json", "application/json"),
|
|
59336
|
-
}, [e, s, n]), d =
|
|
59335
|
+
s(m, "document.json", "application/json"), En.success(n.export.success);
|
|
59336
|
+
}, [e, s, n]), d = an(() => {
|
|
59337
59337
|
const m = e.getText();
|
|
59338
|
-
s(m, "document.txt", "text/plain"),
|
|
59339
|
-
}, [e, s, n]), f =
|
|
59338
|
+
s(m, "document.txt", "text/plain"), En.success(n.export.success);
|
|
59339
|
+
}, [e, s, n]), f = an(async () => {
|
|
59340
59340
|
i("pdf");
|
|
59341
59341
|
try {
|
|
59342
59342
|
const m = a(), b = window.open("", "_blank");
|
|
59343
59343
|
b && (b.document.write(m), b.document.close(), b.onload = () => {
|
|
59344
59344
|
b.print();
|
|
59345
|
-
}),
|
|
59345
|
+
}), En.success(n.export.success);
|
|
59346
59346
|
} catch (m) {
|
|
59347
|
-
console.error("PDF export failed:", m),
|
|
59347
|
+
console.error("PDF export failed:", m), En.error(n.export.error);
|
|
59348
59348
|
} finally {
|
|
59349
59349
|
i(null);
|
|
59350
59350
|
}
|
|
59351
|
-
}, [a, n]), p =
|
|
59351
|
+
}, [a, n]), p = an(async () => {
|
|
59352
59352
|
i("word");
|
|
59353
59353
|
try {
|
|
59354
59354
|
let m = null;
|
|
@@ -59495,13 +59495,13 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59495
59495
|
</html>`, C = new Blob(["\uFEFF", y], { type: "application/vnd.openxmlformats-officedocument.wordprocessingml.document" }), x = URL.createObjectURL(C), S = document.createElement("a");
|
|
59496
59496
|
S.href = x, S.download = "document.docx", document.body.appendChild(S), S.click(), document.body.removeChild(S), URL.revokeObjectURL(x);
|
|
59497
59497
|
}
|
|
59498
|
-
|
|
59498
|
+
En.success(n.export.success);
|
|
59499
59499
|
} catch (m) {
|
|
59500
|
-
console.error("Word export failed:", m),
|
|
59500
|
+
console.error("Word export failed:", m), En.error(n.export.error);
|
|
59501
59501
|
} finally {
|
|
59502
59502
|
i(null);
|
|
59503
59503
|
}
|
|
59504
|
-
}, [e, n]), h =
|
|
59504
|
+
}, [e, n]), h = an(async () => {
|
|
59505
59505
|
i("image");
|
|
59506
59506
|
try {
|
|
59507
59507
|
const m = e.getHTML(), b = document.createElement("div");
|
|
@@ -59557,7 +59557,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59557
59557
|
});
|
|
59558
59558
|
document.body.removeChild(b);
|
|
59559
59559
|
const O = document.createElement("a");
|
|
59560
|
-
O.download = "document.png", O.href = $.toDataURL("image/png"), O.click(),
|
|
59560
|
+
O.download = "document.png", O.href = $.toDataURL("image/png"), O.click(), En.success(n.export.success);
|
|
59561
59561
|
} else {
|
|
59562
59562
|
const w = y.scrollHeight, E = y.scrollWidth;
|
|
59563
59563
|
document.body.removeChild(b);
|
|
@@ -59570,17 +59570,17 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59570
59570
|
</div>
|
|
59571
59571
|
</foreignObject>
|
|
59572
59572
|
</svg>`, O = new Blob([$], { type: "image/svg+xml" }), k = URL.createObjectURL(O), M = document.createElement("a");
|
|
59573
|
-
M.href = k, M.download = "document.svg", document.body.appendChild(M), M.click(), document.body.removeChild(M), URL.revokeObjectURL(k),
|
|
59573
|
+
M.href = k, M.download = "document.svg", document.body.appendChild(M), M.click(), document.body.removeChild(M), URL.revokeObjectURL(k), En.success(n.export.success);
|
|
59574
59574
|
}
|
|
59575
59575
|
} catch (m) {
|
|
59576
|
-
console.error("Image export failed:", m),
|
|
59576
|
+
console.error("Image export failed:", m), En.error(n.export.error);
|
|
59577
59577
|
} finally {
|
|
59578
59578
|
i(null);
|
|
59579
59579
|
}
|
|
59580
59580
|
}, [e, n]), v = [
|
|
59581
59581
|
{
|
|
59582
59582
|
key: "html",
|
|
59583
|
-
label: /* @__PURE__ */
|
|
59583
|
+
label: /* @__PURE__ */ Xe("div", { className: "export-menu-item", children: [
|
|
59584
59584
|
/* @__PURE__ */ P(ut, { icon: "mdi:language-html5", size: 16 }),
|
|
59585
59585
|
/* @__PURE__ */ P("span", { children: n.export.html })
|
|
59586
59586
|
] }),
|
|
@@ -59588,7 +59588,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59588
59588
|
},
|
|
59589
59589
|
{
|
|
59590
59590
|
key: "markdown",
|
|
59591
|
-
label: /* @__PURE__ */
|
|
59591
|
+
label: /* @__PURE__ */ Xe("div", { className: "export-menu-item", children: [
|
|
59592
59592
|
/* @__PURE__ */ P(ut, { icon: "mdi:language-markdown", size: 16 }),
|
|
59593
59593
|
/* @__PURE__ */ P("span", { children: n.export.markdown })
|
|
59594
59594
|
] }),
|
|
@@ -59596,7 +59596,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59596
59596
|
},
|
|
59597
59597
|
{
|
|
59598
59598
|
key: "json",
|
|
59599
|
-
label: /* @__PURE__ */
|
|
59599
|
+
label: /* @__PURE__ */ Xe("div", { className: "export-menu-item", children: [
|
|
59600
59600
|
/* @__PURE__ */ P(ut, { icon: "mdi:code-json", size: 16 }),
|
|
59601
59601
|
/* @__PURE__ */ P("span", { children: n.export.json })
|
|
59602
59602
|
] }),
|
|
@@ -59604,7 +59604,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59604
59604
|
},
|
|
59605
59605
|
{
|
|
59606
59606
|
key: "text",
|
|
59607
|
-
label: /* @__PURE__ */
|
|
59607
|
+
label: /* @__PURE__ */ Xe("div", { className: "export-menu-item", children: [
|
|
59608
59608
|
/* @__PURE__ */ P(ut, { icon: "mdi:file-document-outline", size: 16 }),
|
|
59609
59609
|
/* @__PURE__ */ P("span", { children: n.export.text })
|
|
59610
59610
|
] }),
|
|
@@ -59613,7 +59613,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59613
59613
|
{ type: "divider" },
|
|
59614
59614
|
{
|
|
59615
59615
|
key: "pdf",
|
|
59616
|
-
label: /* @__PURE__ */
|
|
59616
|
+
label: /* @__PURE__ */ Xe("div", { className: "export-menu-item", children: [
|
|
59617
59617
|
/* @__PURE__ */ P(ut, { icon: "mdi:file-pdf-box", size: 16 }),
|
|
59618
59618
|
/* @__PURE__ */ P("span", { children: o === "pdf" ? n.export.exporting : n.export.pdf })
|
|
59619
59619
|
] }),
|
|
@@ -59622,7 +59622,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59622
59622
|
},
|
|
59623
59623
|
{
|
|
59624
59624
|
key: "word",
|
|
59625
|
-
label: /* @__PURE__ */
|
|
59625
|
+
label: /* @__PURE__ */ Xe("div", { className: "export-menu-item", children: [
|
|
59626
59626
|
/* @__PURE__ */ P(ut, { icon: "mdi:file-word", size: 16 }),
|
|
59627
59627
|
/* @__PURE__ */ P("span", { children: o === "word" ? n.export.exporting : n.export.word })
|
|
59628
59628
|
] }),
|
|
@@ -59631,7 +59631,7 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59631
59631
|
},
|
|
59632
59632
|
{
|
|
59633
59633
|
key: "image",
|
|
59634
|
-
label: /* @__PURE__ */
|
|
59634
|
+
label: /* @__PURE__ */ Xe("div", { className: "export-menu-item", children: [
|
|
59635
59635
|
/* @__PURE__ */ P(ut, { icon: "mdi:image", size: 16 }),
|
|
59636
59636
|
/* @__PURE__ */ P("span", { children: o === "image" ? n.export.exporting : n.export.image })
|
|
59637
59637
|
] }),
|
|
@@ -59649,220 +59649,171 @@ const { TextArea: Xne } = wo, vP = ({ open: e, onClose: t, editor: n, selectedTe
|
|
|
59649
59649
|
}
|
|
59650
59650
|
);
|
|
59651
59651
|
}, Zne = ({ editor: e, children: t, t: n }) => {
|
|
59652
|
-
const r = de(null), o =
|
|
59653
|
-
const
|
|
59652
|
+
const r = de(null), o = an(async (p) => {
|
|
59653
|
+
const v = p.name.toLowerCase().split(".").pop();
|
|
59654
59654
|
try {
|
|
59655
|
-
let
|
|
59656
|
-
if (
|
|
59657
|
-
|
|
59658
|
-
else if (
|
|
59659
|
-
|
|
59660
|
-
else if (
|
|
59661
|
-
|
|
59662
|
-
else if (
|
|
59663
|
-
|
|
59664
|
-
else if (
|
|
59665
|
-
await d(
|
|
59666
|
-
else if (m === "pdf")
|
|
59667
|
-
await f(h);
|
|
59655
|
+
let m = "";
|
|
59656
|
+
if (v === "html" || v === "htm")
|
|
59657
|
+
m = await i(p), a(m);
|
|
59658
|
+
else if (v === "md" || v === "markdown")
|
|
59659
|
+
m = await i(p), s(m);
|
|
59660
|
+
else if (v === "txt")
|
|
59661
|
+
m = await i(p), c(m);
|
|
59662
|
+
else if (v === "json")
|
|
59663
|
+
m = await i(p), u(m);
|
|
59664
|
+
else if (v === "doc" || v === "docx")
|
|
59665
|
+
await d(p);
|
|
59668
59666
|
else {
|
|
59669
|
-
|
|
59667
|
+
En.error(n.import.unsupportedFormat);
|
|
59670
59668
|
return;
|
|
59671
59669
|
}
|
|
59672
|
-
|
|
59673
|
-
} catch (
|
|
59674
|
-
console.error("Import failed:",
|
|
59670
|
+
En.success(n.import.success);
|
|
59671
|
+
} catch (m) {
|
|
59672
|
+
console.error("Import failed:", m), En.error(n.import.error);
|
|
59675
59673
|
}
|
|
59676
|
-
}, [e, n]), i = (
|
|
59677
|
-
const
|
|
59678
|
-
|
|
59679
|
-
}), a =
|
|
59674
|
+
}, [e, n]), i = (p) => new Promise((h, v) => {
|
|
59675
|
+
const m = new FileReader();
|
|
59676
|
+
m.onload = (b) => h(b.target.result), m.onerror = v, m.readAsText(p);
|
|
59677
|
+
}), a = an((p) => {
|
|
59680
59678
|
if (!e) return;
|
|
59681
|
-
const
|
|
59682
|
-
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(
|
|
59683
|
-
}, [e]), s =
|
|
59679
|
+
const h = p.replace(/<head[\s\S]*?<\/head>/gi, "").replace(/<script[\s\S]*?<\/script>/gi, "").replace(/<style[\s\S]*?<\/style>/gi, "").replace(/<body[^>]*>/gi, "").replace(/<\/body>/gi, "").replace(/<html[^>]*>/gi, "").replace(/<\/html>/gi, "");
|
|
59680
|
+
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(h).run();
|
|
59681
|
+
}, [e]), s = an((p) => {
|
|
59684
59682
|
if (e)
|
|
59685
59683
|
try {
|
|
59686
59684
|
if (e.markdown && typeof e.markdown.parse == "function") {
|
|
59687
|
-
const
|
|
59688
|
-
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(
|
|
59685
|
+
const h = e.markdown.parse(p);
|
|
59686
|
+
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(h).run();
|
|
59689
59687
|
} else {
|
|
59690
|
-
const
|
|
59691
|
-
a(
|
|
59688
|
+
const h = l(p);
|
|
59689
|
+
a(h);
|
|
59692
59690
|
}
|
|
59693
|
-
} catch (
|
|
59694
|
-
console.warn("Markdown parse failed, using fallback:",
|
|
59695
|
-
const
|
|
59696
|
-
a(
|
|
59691
|
+
} catch (h) {
|
|
59692
|
+
console.warn("Markdown parse failed, using fallback:", h);
|
|
59693
|
+
const v = l(p);
|
|
59694
|
+
a(v);
|
|
59697
59695
|
}
|
|
59698
|
-
}, [e, a]), l = (
|
|
59696
|
+
}, [e, a]), l = (p) => p.replace(/^### (.*$)/gim, "<h3>$1</h3>").replace(/^## (.*$)/gim, "<h2>$1</h2>").replace(/^# (.*$)/gim, "<h1>$1</h1>").replace(/^\> (.*$)/gim, "<blockquote>$1</blockquote>").replace(/\*\*(.*)\*\*/gim, "<strong>$1</strong>").replace(/\*(.*)\*/gim, "<em>$1</em>").replace(/!\[(.*?)\]\((.*?)\)/gim, '<img alt="$1" src="$2" />').replace(/\[(.*?)\]\((.*?)\)/gim, '<a href="$2">$1</a>').replace(/\n$/gim, "<br />").replace(/^- (.*$)/gim, "<li>$1</li>").replace(/(<li>.*<\/li>)/s, "<ul>$1</ul>"), c = an((p) => {
|
|
59699
59697
|
if (!e) return;
|
|
59700
|
-
const
|
|
59701
|
-
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(
|
|
59702
|
-
}, [e]), u =
|
|
59698
|
+
const v = p.split(/\n\n+/).filter((m) => m.trim()).map((m) => `<p>${m.replace(/\n/g, "<br>")}</p>`).join("");
|
|
59699
|
+
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(v).run();
|
|
59700
|
+
}, [e]), u = an((p) => {
|
|
59703
59701
|
if (e)
|
|
59704
59702
|
try {
|
|
59705
|
-
const
|
|
59706
|
-
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(
|
|
59703
|
+
const h = JSON.parse(p);
|
|
59704
|
+
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(h).run();
|
|
59707
59705
|
} catch {
|
|
59708
59706
|
throw new Error("Invalid JSON format");
|
|
59709
59707
|
}
|
|
59710
|
-
}, [e]), d =
|
|
59708
|
+
}, [e]), d = an(async (p) => {
|
|
59711
59709
|
if (!e) return;
|
|
59712
|
-
const
|
|
59713
|
-
if (
|
|
59714
|
-
|
|
59710
|
+
const h = p.name.toLowerCase(), v = h.endsWith(".docx");
|
|
59711
|
+
if (h.endsWith(".doc") && !v) {
|
|
59712
|
+
En.warning(n.import.docNotSupported || "旧版 .doc 格式不支持,请将文件另存为 .docx 格式后导入");
|
|
59715
59713
|
return;
|
|
59716
59714
|
}
|
|
59717
59715
|
try {
|
|
59718
|
-
let
|
|
59716
|
+
let b = null;
|
|
59719
59717
|
try {
|
|
59720
|
-
const
|
|
59721
|
-
|
|
59718
|
+
const x = await import("mammoth");
|
|
59719
|
+
b = x.default || x;
|
|
59722
59720
|
} catch {
|
|
59723
|
-
|
|
59721
|
+
En.warning(n.import.mammothNotSupported || "Word 导入需要安装 mammoth 库");
|
|
59724
59722
|
return;
|
|
59725
59723
|
}
|
|
59726
|
-
const
|
|
59727
|
-
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(
|
|
59728
|
-
} catch (
|
|
59729
|
-
throw console.error("Word import failed:",
|
|
59724
|
+
const y = await p.arrayBuffer(), C = await b.convertToHtml({ arrayBuffer: y });
|
|
59725
|
+
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(C.value).run(), C.messages && C.messages.length > 0 && console.log("Word import warnings:", C.messages);
|
|
59726
|
+
} catch (b) {
|
|
59727
|
+
throw console.error("Word import failed:", b), b;
|
|
59730
59728
|
}
|
|
59731
|
-
}, [e, n]), f =
|
|
59732
|
-
var v;
|
|
59733
|
-
if (e)
|
|
59734
|
-
try {
|
|
59735
|
-
let m = null;
|
|
59736
|
-
try {
|
|
59737
|
-
const x = await import("pdfjs-dist");
|
|
59738
|
-
m = x.default || x, m.GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@${m.version}/build/pdf.worker.min.mjs`;
|
|
59739
|
-
} catch {
|
|
59740
|
-
Cn.warning(n.import.pdfNotSupported || "PDF import requires pdfjs-dist library");
|
|
59741
|
-
return;
|
|
59742
|
-
}
|
|
59743
|
-
const b = await h.arrayBuffer(), y = await m.getDocument({ data: b }).promise;
|
|
59744
|
-
let C = "";
|
|
59745
|
-
for (let x = 1; x <= y.numPages; x++) {
|
|
59746
|
-
const S = await y.getPage(x), w = await S.getTextContent(), E = S.getViewport({ scale: 1 });
|
|
59747
|
-
let $ = null, O = "", k = [];
|
|
59748
|
-
const M = w.items.sort((I, R) => {
|
|
59749
|
-
const N = R.transform[5] - I.transform[5];
|
|
59750
|
-
return Math.abs(N) > 5 ? N : I.transform[4] - R.transform[4];
|
|
59751
|
-
});
|
|
59752
|
-
for (const I of M) {
|
|
59753
|
-
if (I.str.trim() === "") continue;
|
|
59754
|
-
const R = I.transform[5], N = Math.abs(I.transform[0]) || 12;
|
|
59755
|
-
$ !== null && Math.abs(R - $) > N * 1.5 && (O.trim() && k.push({
|
|
59756
|
-
text: O.trim(),
|
|
59757
|
-
fontSize: N,
|
|
59758
|
-
y: $
|
|
59759
|
-
}), O = ""), O += (O ? " " : "") + I.str, $ = R;
|
|
59760
|
-
}
|
|
59761
|
-
O.trim() && k.push({
|
|
59762
|
-
text: O.trim(),
|
|
59763
|
-
fontSize: (v = M[M.length - 1]) != null && v.transform ? Math.abs(M[M.length - 1].transform[0]) : 12,
|
|
59764
|
-
y: $
|
|
59765
|
-
});
|
|
59766
|
-
for (const I of k) {
|
|
59767
|
-
let R = "p", N = "";
|
|
59768
|
-
I.fontSize >= 24 ? R = "h1" : I.fontSize >= 20 ? R = "h2" : I.fontSize >= 16 ? R = "h3" : I.fontSize >= 14 && (R = "h4");
|
|
59769
|
-
const T = I.text.replace(/\s+/g, " ").trim();
|
|
59770
|
-
T && (C += `<${R}>${T}</${R}>`);
|
|
59771
|
-
}
|
|
59772
|
-
x < y.numPages && (C += "<hr/>");
|
|
59773
|
-
}
|
|
59774
|
-
e.chain().focus().clearContent().run(), e.chain().focus().insertContent(C).run();
|
|
59775
|
-
} catch (m) {
|
|
59776
|
-
throw console.error("PDF import failed:", m), m;
|
|
59777
|
-
}
|
|
59778
|
-
}, [e, n]), p = [
|
|
59729
|
+
}, [e, n]), f = [
|
|
59779
59730
|
{
|
|
59780
59731
|
key: "html",
|
|
59781
|
-
label: /* @__PURE__ */
|
|
59732
|
+
label: /* @__PURE__ */ Xe("div", { className: "import-menu-item", children: [
|
|
59782
59733
|
/* @__PURE__ */ P(ut, { icon: "mdi:language-html5", size: 16 }),
|
|
59783
59734
|
/* @__PURE__ */ P("span", { children: n.import.html })
|
|
59784
59735
|
] }),
|
|
59785
59736
|
onClick: () => {
|
|
59786
|
-
var
|
|
59787
|
-
return (
|
|
59737
|
+
var p;
|
|
59738
|
+
return (p = r.current) == null ? void 0 : p.click();
|
|
59788
59739
|
}
|
|
59789
59740
|
},
|
|
59790
59741
|
{
|
|
59791
59742
|
key: "markdown",
|
|
59792
|
-
label: /* @__PURE__ */
|
|
59743
|
+
label: /* @__PURE__ */ Xe("div", { className: "import-menu-item", children: [
|
|
59793
59744
|
/* @__PURE__ */ P(ut, { icon: "mdi:language-markdown", size: 16 }),
|
|
59794
59745
|
/* @__PURE__ */ P("span", { children: n.import.markdown })
|
|
59795
59746
|
] }),
|
|
59796
59747
|
onClick: () => {
|
|
59797
|
-
var
|
|
59798
|
-
return (
|
|
59748
|
+
var p;
|
|
59749
|
+
return (p = r.current) == null ? void 0 : p.click();
|
|
59799
59750
|
}
|
|
59800
59751
|
},
|
|
59801
59752
|
{
|
|
59802
59753
|
key: "json",
|
|
59803
|
-
label: /* @__PURE__ */
|
|
59754
|
+
label: /* @__PURE__ */ Xe("div", { className: "import-menu-item", children: [
|
|
59804
59755
|
/* @__PURE__ */ P(ut, { icon: "mdi:code-json", size: 16 }),
|
|
59805
59756
|
/* @__PURE__ */ P("span", { children: n.import.json })
|
|
59806
59757
|
] }),
|
|
59807
59758
|
onClick: () => {
|
|
59808
|
-
var
|
|
59809
|
-
return (
|
|
59759
|
+
var p;
|
|
59760
|
+
return (p = r.current) == null ? void 0 : p.click();
|
|
59810
59761
|
}
|
|
59811
59762
|
},
|
|
59812
59763
|
{
|
|
59813
59764
|
key: "text",
|
|
59814
|
-
label: /* @__PURE__ */
|
|
59765
|
+
label: /* @__PURE__ */ Xe("div", { className: "import-menu-item", children: [
|
|
59815
59766
|
/* @__PURE__ */ P(ut, { icon: "mdi:file-document-outline", size: 16 }),
|
|
59816
59767
|
/* @__PURE__ */ P("span", { children: n.import.text })
|
|
59817
59768
|
] }),
|
|
59818
59769
|
onClick: () => {
|
|
59819
|
-
var
|
|
59820
|
-
return (
|
|
59770
|
+
var p;
|
|
59771
|
+
return (p = r.current) == null ? void 0 : p.click();
|
|
59821
59772
|
}
|
|
59822
59773
|
},
|
|
59823
59774
|
{ type: "divider" },
|
|
59824
59775
|
{
|
|
59825
59776
|
key: "word",
|
|
59826
|
-
label: /* @__PURE__ */
|
|
59777
|
+
label: /* @__PURE__ */ Xe("div", { className: "import-menu-item", children: [
|
|
59827
59778
|
/* @__PURE__ */ P(ut, { icon: "mdi:file-word", size: 16 }),
|
|
59828
59779
|
/* @__PURE__ */ P("span", { children: n.import.word })
|
|
59829
59780
|
] }),
|
|
59830
59781
|
onClick: () => {
|
|
59831
|
-
var
|
|
59832
|
-
return (
|
|
59833
|
-
}
|
|
59834
|
-
}
|
|
59835
|
-
|
|
59836
|
-
|
|
59837
|
-
|
|
59838
|
-
|
|
59839
|
-
|
|
59840
|
-
|
|
59841
|
-
|
|
59842
|
-
|
|
59843
|
-
|
|
59844
|
-
|
|
59845
|
-
}
|
|
59782
|
+
var p;
|
|
59783
|
+
return (p = r.current) == null ? void 0 : p.click();
|
|
59784
|
+
}
|
|
59785
|
+
}
|
|
59786
|
+
// PDF import disabled - requires Node.js >= 22
|
|
59787
|
+
// {
|
|
59788
|
+
// key: 'pdf',
|
|
59789
|
+
// label: (
|
|
59790
|
+
// <div className="import-menu-item">
|
|
59791
|
+
// <Icon icon="mdi:file-pdf-box" size={16} />
|
|
59792
|
+
// <span>{t.import.pdf}</span>
|
|
59793
|
+
// </div>
|
|
59794
|
+
// ),
|
|
59795
|
+
// onClick: () => fileInputRef.current?.click(),
|
|
59796
|
+
// },
|
|
59846
59797
|
];
|
|
59847
|
-
return /* @__PURE__ */
|
|
59798
|
+
return /* @__PURE__ */ Xe(Hr, { children: [
|
|
59848
59799
|
/* @__PURE__ */ P(
|
|
59849
59800
|
"input",
|
|
59850
59801
|
{
|
|
59851
59802
|
ref: r,
|
|
59852
59803
|
type: "file",
|
|
59853
|
-
accept: ".html,.htm,.md,.markdown,.txt,.json,.doc,.docx
|
|
59804
|
+
accept: ".html,.htm,.md,.markdown,.txt,.json,.doc,.docx",
|
|
59854
59805
|
style: { display: "none" },
|
|
59855
|
-
onChange: (
|
|
59856
|
-
var
|
|
59857
|
-
const
|
|
59858
|
-
|
|
59806
|
+
onChange: (p) => {
|
|
59807
|
+
var v;
|
|
59808
|
+
const h = (v = p.target.files) == null ? void 0 : v[0];
|
|
59809
|
+
h && o(h), p.target.value = "";
|
|
59859
59810
|
}
|
|
59860
59811
|
}
|
|
59861
59812
|
),
|
|
59862
59813
|
/* @__PURE__ */ P(
|
|
59863
59814
|
cl,
|
|
59864
59815
|
{
|
|
59865
|
-
menu: { items:
|
|
59816
|
+
menu: { items: f },
|
|
59866
59817
|
trigger: ["click"],
|
|
59867
59818
|
placement: "bottomLeft",
|
|
59868
59819
|
children: t
|
|
@@ -60112,7 +60063,7 @@ const tre = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), nre
|
|
|
60112
60063
|
return null;
|
|
60113
60064
|
}
|
|
60114
60065
|
}, rre = ({ editor: e, config: t }) => {
|
|
60115
|
-
const { t: n } = pt(
|
|
60066
|
+
const { t: n } = pt(Cn) || {}, r = aa({
|
|
60116
60067
|
editor: e,
|
|
60117
60068
|
selector: ere
|
|
60118
60069
|
});
|
|
@@ -62509,7 +62460,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
62509
62460
|
case "separator":
|
|
62510
62461
|
return /* @__PURE__ */ P(Coe, {}, `separator-${r}`);
|
|
62511
62462
|
case "heading":
|
|
62512
|
-
return /* @__PURE__ */
|
|
62463
|
+
return /* @__PURE__ */ Xe(j.Fragment, { children: [
|
|
62513
62464
|
/* @__PURE__ */ P(
|
|
62514
62465
|
pn,
|
|
62515
62466
|
{
|
|
@@ -62577,7 +62528,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
62577
62528
|
return null;
|
|
62578
62529
|
}
|
|
62579
62530
|
}, xoe = ({ editor: e, config: t }) => {
|
|
62580
|
-
const { t: n } = pt(
|
|
62531
|
+
const { t: n } = pt(Cn) || {}, r = aa({
|
|
62581
62532
|
editor: e,
|
|
62582
62533
|
selector: (o) => ({
|
|
62583
62534
|
isHeading1: o.editor.isActive("heading", { level: 1 }),
|
|
@@ -62591,7 +62542,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
62591
62542
|
return /* @__PURE__ */ P(Hr, { children: t.map((o, i) => Soe(o, e, r, i, n)) });
|
|
62592
62543
|
}, woe = ({ editor: e, t }) => {
|
|
62593
62544
|
var m, b;
|
|
62594
|
-
const [n, r] = $e(!1), [o, i] = $e(""), [a, s] = $e(!1), { config: l } = pt(
|
|
62545
|
+
const [n, r] = $e(!1), [o, i] = $e(""), [a, s] = $e(!1), { config: l } = pt(Cn) || {}, c = (l == null ? void 0 : l.ai) || {}, u = (l == null ? void 0 : l.locale) || "zh", d = hy(), f = () => {
|
|
62595
62546
|
if (!e) return "";
|
|
62596
62547
|
const { from: y, to: C } = e.state.selection;
|
|
62597
62548
|
return e.state.doc.textBetween(y, C, "");
|
|
@@ -62614,7 +62565,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
62614
62565
|
const { from: w, to: E } = e.state.selection;
|
|
62615
62566
|
e.chain().focus().insertContentAt({ from: w, to: E }, S).run();
|
|
62616
62567
|
} catch (S) {
|
|
62617
|
-
|
|
62568
|
+
En.error(S.message || ((x = t.ai) == null ? void 0 : x.error) || "AI request failed");
|
|
62618
62569
|
} finally {
|
|
62619
62570
|
s(!1);
|
|
62620
62571
|
}
|
|
@@ -62628,7 +62579,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
62628
62579
|
onClick: () => h(y)
|
|
62629
62580
|
};
|
|
62630
62581
|
});
|
|
62631
|
-
return /* @__PURE__ */
|
|
62582
|
+
return /* @__PURE__ */ Xe(Hr, { children: [
|
|
62632
62583
|
/* @__PURE__ */ P(
|
|
62633
62584
|
cl,
|
|
62634
62585
|
{
|
|
@@ -62738,7 +62689,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
62738
62689
|
return null;
|
|
62739
62690
|
}
|
|
62740
62691
|
}, Ooe = ({ editor: e, config: t }) => {
|
|
62741
|
-
const { t: n } = pt(
|
|
62692
|
+
const { t: n } = pt(Cn) || {}, r = aa({
|
|
62742
62693
|
editor: e,
|
|
62743
62694
|
selector: (o) => ({
|
|
62744
62695
|
isBold: o.editor.isActive("bold"),
|
|
@@ -62751,7 +62702,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
62751
62702
|
return /* @__PURE__ */ P(Hr, { children: t.map((o) => $oe(o, e, r, n)) });
|
|
62752
62703
|
}, koe = ({ editor: e, node: t, deleteNode: n, selected: r }) => {
|
|
62753
62704
|
var c, u, d;
|
|
62754
|
-
const { t: o } = pt(
|
|
62705
|
+
const { t: o } = pt(Cn) || {}, [i, a] = $e([]), s = de(null);
|
|
62755
62706
|
it(() => {
|
|
62756
62707
|
const f = () => {
|
|
62757
62708
|
const p = [], { doc: h } = e.state;
|
|
@@ -62772,7 +62723,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
62772
62723
|
e.commands.setTextSelection(f.pos), e.commands.focus();
|
|
62773
62724
|
}, 300));
|
|
62774
62725
|
};
|
|
62775
|
-
return /* @__PURE__ */
|
|
62726
|
+
return /* @__PURE__ */ Xe(
|
|
62776
62727
|
Pd,
|
|
62777
62728
|
{
|
|
62778
62729
|
ref: s,
|
|
@@ -62788,7 +62739,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
62788
62739
|
color: "#333"
|
|
62789
62740
|
},
|
|
62790
62741
|
children: [
|
|
62791
|
-
/* @__PURE__ */
|
|
62742
|
+
/* @__PURE__ */ Xe(
|
|
62792
62743
|
"div",
|
|
62793
62744
|
{
|
|
62794
62745
|
className: "outline-node-header",
|
|
@@ -63070,9 +63021,9 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63070
63021
|
children: /* @__PURE__ */ P(ut, { icon: e, size: 16 })
|
|
63071
63022
|
}
|
|
63072
63023
|
) }), Poe = ({ editor: e }) => {
|
|
63073
|
-
const { t } = pt(
|
|
63024
|
+
const { t } = pt(Cn) || {}, n = de(null), [r, o] = $e(!1), [i, a] = $e({ top: 0, left: 0 }), s = de(null), l = an(() => {
|
|
63074
63025
|
s.current && (s.current.classList.remove("table-selected"), s.current = null);
|
|
63075
|
-
}, []), c =
|
|
63026
|
+
}, []), c = an(() => {
|
|
63076
63027
|
if (!e || e.isDestroyed) return;
|
|
63077
63028
|
const { selection: u } = e.state;
|
|
63078
63029
|
let d = null;
|
|
@@ -63123,7 +63074,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63123
63074
|
return window.addEventListener("scroll", d, !0), e.view.dom.addEventListener("scroll", d), () => {
|
|
63124
63075
|
e.off("transaction", u), e.off("selectionUpdate", u), window.removeEventListener("scroll", d, !0), e.view.dom.removeEventListener("scroll", d), l();
|
|
63125
63076
|
};
|
|
63126
|
-
}, [e, c, r, l]), !e || !r ? null : /* @__PURE__ */
|
|
63077
|
+
}, [e, c, r, l]), !e || !r ? null : /* @__PURE__ */ Xe(
|
|
63127
63078
|
"div",
|
|
63128
63079
|
{
|
|
63129
63080
|
ref: n,
|
|
@@ -63156,7 +63107,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63156
63107
|
canDeleteTable: r.editor.can().deleteTable()
|
|
63157
63108
|
})
|
|
63158
63109
|
});
|
|
63159
|
-
return /* @__PURE__ */
|
|
63110
|
+
return /* @__PURE__ */ Xe(Hr, { children: [
|
|
63160
63111
|
/* @__PURE__ */ P(
|
|
63161
63112
|
_o,
|
|
63162
63113
|
{
|
|
@@ -63250,15 +63201,15 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63250
63201
|
}
|
|
63251
63202
|
)
|
|
63252
63203
|
] });
|
|
63253
|
-
}, _oe = ({ status: e, error: t, onRetry: n }) => e === "uploading" ? /* @__PURE__ */
|
|
63204
|
+
}, _oe = ({ status: e, error: t, onRetry: n }) => e === "uploading" ? /* @__PURE__ */ Xe("div", { className: "image-placeholder uploading", children: [
|
|
63254
63205
|
/* @__PURE__ */ P("div", { className: "image-placeholder-spinner" }),
|
|
63255
63206
|
/* @__PURE__ */ P("span", { className: "image-placeholder-text", children: "上传中..." })
|
|
63256
|
-
] }) : e === "error" ? /* @__PURE__ */
|
|
63207
|
+
] }) : e === "error" ? /* @__PURE__ */ Xe("div", { className: "image-placeholder error", onClick: n, children: [
|
|
63257
63208
|
/* @__PURE__ */ P(ut, { icon: "mdi:image-broken", size: 32 }),
|
|
63258
63209
|
/* @__PURE__ */ P("span", { className: "image-placeholder-text", children: t || "上传失败" }),
|
|
63259
63210
|
/* @__PURE__ */ P("span", { className: "image-placeholder-retry", children: "点击重试" })
|
|
63260
63211
|
] }) : null, Doe = ({ node: e, updateAttributes: t, deleteNode: n, selected: r, editor: o }) => {
|
|
63261
|
-
const { config: i } = pt(
|
|
63212
|
+
const { config: i } = pt(Cn) || {}, a = (i == null ? void 0 : i.upload) || {}, [s, l] = $e(e.attrs.status || "done"), [c, u] = $e(e.attrs.error || null), d = de(null), [f, p] = $e(!1), [h, v] = $e(null), m = de({ x: 0, y: 0, width: 0, height: 0, corner: "", aspectRatio: 1 }), [b, y] = $e({ width: 0, height: 0 }), C = an(async () => {
|
|
63262
63213
|
const T = e.attrs.file;
|
|
63263
63214
|
if (T) {
|
|
63264
63215
|
l("uploading"), u(null);
|
|
@@ -63368,7 +63319,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63368
63319
|
{ name: "sw", cursor: "nesw-resize", style: { bottom: -6, left: -6 } },
|
|
63369
63320
|
{ name: "se", cursor: "nwse-resize", style: { bottom: -6, right: -6 } }
|
|
63370
63321
|
];
|
|
63371
|
-
return s !== "done" ? /* @__PURE__ */ P(Pd, { className: "image-node-wrapper", style: M, ref: d, children: /* @__PURE__ */ P("div", { style: I, children: /* @__PURE__ */ P(_oe, { status: s, error: c, onRetry: x }) }) }) : /* @__PURE__ */ P(Pd, { className: "image-node-wrapper", style: M, ref: d, children: /* @__PURE__ */
|
|
63322
|
+
return s !== "done" ? /* @__PURE__ */ P(Pd, { className: "image-node-wrapper", style: M, ref: d, children: /* @__PURE__ */ P("div", { style: I, children: /* @__PURE__ */ P(_oe, { status: s, error: c, onRetry: x }) }) }) : /* @__PURE__ */ P(Pd, { className: "image-node-wrapper", style: M, ref: d, children: /* @__PURE__ */ Xe("div", { style: I, children: [
|
|
63372
63323
|
/* @__PURE__ */ P(
|
|
63373
63324
|
"img",
|
|
63374
63325
|
{
|
|
@@ -63533,7 +63484,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63533
63484
|
}
|
|
63534
63485
|
), Foe = ({ editor: e }) => {
|
|
63535
63486
|
var T, A, _, D, B, H, X, q, L, V, F, U, te, J, re, ae, ne, K, ie, oe, G;
|
|
63536
|
-
const { t } = pt(
|
|
63487
|
+
const { t } = pt(Cn) || {}, n = de(null), [r, o] = $e(!1), [i, a] = $e({ top: 0, left: 0 }), [s, l] = $e(""), [c, u] = $e(""), [d, f] = $e(""), [p, h] = $e({}), { config: v } = pt(Cn) || {}, m = (v == null ? void 0 : v.theme) === "dark", b = m ? "#374151" : "#ffffff", y = m ? "#4b5563" : "#e5e7eb", C = m ? "#f9fafb" : "#1f2937", x = m ? "#9ca3af" : "#6b7280", S = an(() => {
|
|
63537
63488
|
if (!e || e.isDestroyed) return;
|
|
63538
63489
|
const Q = document.querySelector(".nice-editor");
|
|
63539
63490
|
if (!Q) return;
|
|
@@ -63594,7 +63545,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63594
63545
|
{ label: ((A = t == null ? void 0 : t.image) == null ? void 0 : A.medium) || "中", width: "400px" },
|
|
63595
63546
|
{ label: ((_ = t == null ? void 0 : t.image) == null ? void 0 : _.large) || "大", width: "600px" },
|
|
63596
63547
|
{ label: ((D = t == null ? void 0 : t.image) == null ? void 0 : D.auto) || "自适应", width: "auto" }
|
|
63597
|
-
], I = /* @__PURE__ */
|
|
63548
|
+
], I = /* @__PURE__ */ Xe("div", { style: { padding: "8px 0", background: b }, children: [
|
|
63598
63549
|
/* @__PURE__ */ P("div", { style: { marginBottom: 8, fontSize: 12, color: x }, children: ((B = t == null ? void 0 : t.image) == null ? void 0 : B.altText) || "设置图片替代文本" }),
|
|
63599
63550
|
/* @__PURE__ */ P(
|
|
63600
63551
|
wo,
|
|
@@ -63607,12 +63558,12 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63607
63558
|
style: { width: 200 }
|
|
63608
63559
|
}
|
|
63609
63560
|
)
|
|
63610
|
-
] }), R = /* @__PURE__ */
|
|
63611
|
-
/* @__PURE__ */
|
|
63561
|
+
] }), R = /* @__PURE__ */ Xe("div", { style: { padding: "8px 0", background: b }, children: [
|
|
63562
|
+
/* @__PURE__ */ Xe("div", { style: { marginBottom: 8, fontSize: 12, color: x }, children: [
|
|
63612
63563
|
((X = t == null ? void 0 : t.image) == null ? void 0 : X.customSize) || "自定义尺寸",
|
|
63613
63564
|
" (px)"
|
|
63614
63565
|
] }),
|
|
63615
|
-
/* @__PURE__ */
|
|
63566
|
+
/* @__PURE__ */ Xe("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
63616
63567
|
/* @__PURE__ */ P(
|
|
63617
63568
|
wo,
|
|
63618
63569
|
{
|
|
@@ -63660,7 +63611,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63660
63611
|
padding: 12
|
|
63661
63612
|
}
|
|
63662
63613
|
};
|
|
63663
|
-
return /* @__PURE__ */
|
|
63614
|
+
return /* @__PURE__ */ Xe(
|
|
63664
63615
|
"div",
|
|
63665
63616
|
{
|
|
63666
63617
|
ref: n,
|
|
@@ -63674,8 +63625,8 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63674
63625
|
},
|
|
63675
63626
|
children: [
|
|
63676
63627
|
/* @__PURE__ */ P("div", { className: "image-toolbar-toggle", children: /* @__PURE__ */ P(ut, { icon: "mdi:image", size: 16 }) }),
|
|
63677
|
-
/* @__PURE__ */
|
|
63678
|
-
/* @__PURE__ */
|
|
63628
|
+
/* @__PURE__ */ Xe("div", { className: "image-toolbar-expanded", children: [
|
|
63629
|
+
/* @__PURE__ */ Xe("div", { className: "image-toolbar-section", children: [
|
|
63679
63630
|
/* @__PURE__ */ P("span", { className: "image-toolbar-label", children: ((F = t == null ? void 0 : t.image) == null ? void 0 : F.width) || "宽度" }),
|
|
63680
63631
|
/* @__PURE__ */ P("div", { className: "image-toolbar-sizes", children: M.map((Q) => /* @__PURE__ */ P(
|
|
63681
63632
|
joe,
|
|
@@ -63689,9 +63640,9 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63689
63640
|
)) })
|
|
63690
63641
|
] }),
|
|
63691
63642
|
/* @__PURE__ */ P("div", { className: "image-toolbar-divider" }),
|
|
63692
|
-
/* @__PURE__ */
|
|
63643
|
+
/* @__PURE__ */ Xe("div", { className: "image-toolbar-section", children: [
|
|
63693
63644
|
/* @__PURE__ */ P("span", { className: "image-toolbar-label", children: ((U = t == null ? void 0 : t.image) == null ? void 0 : U.align) || "对齐" }),
|
|
63694
|
-
/* @__PURE__ */
|
|
63645
|
+
/* @__PURE__ */ Xe("div", { className: "image-toolbar-floats", children: [
|
|
63695
63646
|
/* @__PURE__ */ P(
|
|
63696
63647
|
Ol,
|
|
63697
63648
|
{
|
|
@@ -63722,9 +63673,9 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63722
63673
|
] })
|
|
63723
63674
|
] }),
|
|
63724
63675
|
/* @__PURE__ */ P("div", { className: "image-toolbar-divider" }),
|
|
63725
|
-
/* @__PURE__ */
|
|
63676
|
+
/* @__PURE__ */ Xe("div", { className: "image-toolbar-section", children: [
|
|
63726
63677
|
/* @__PURE__ */ P("span", { className: "image-toolbar-label", children: ((ae = t == null ? void 0 : t.image) == null ? void 0 : ae.float) || "浮动" }),
|
|
63727
|
-
/* @__PURE__ */
|
|
63678
|
+
/* @__PURE__ */ Xe("div", { className: "image-toolbar-floats", children: [
|
|
63728
63679
|
/* @__PURE__ */ P(
|
|
63729
63680
|
Ol,
|
|
63730
63681
|
{
|
|
@@ -63763,7 +63714,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63763
63714
|
}
|
|
63764
63715
|
);
|
|
63765
63716
|
}, Hoe = () => {
|
|
63766
|
-
const { editor: e, config: t } = pt(
|
|
63717
|
+
const { editor: e, config: t } = pt(Cn) || {}, n = t == null ? void 0 : t.maxLength, r = t == null ? void 0 : t.showCharCount, [o, i] = $e(0);
|
|
63767
63718
|
if (it(() => {
|
|
63768
63719
|
if (!e) return;
|
|
63769
63720
|
const s = () => {
|
|
@@ -63777,9 +63728,9 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
63777
63728
|
}, [e]), !r && !n)
|
|
63778
63729
|
return null;
|
|
63779
63730
|
const a = n && o > n;
|
|
63780
|
-
return /* @__PURE__ */
|
|
63731
|
+
return /* @__PURE__ */ Xe("div", { className: `char-count-wrapper ${a ? "exceeded" : ""}`, children: [
|
|
63781
63732
|
/* @__PURE__ */ P("span", { className: "char-count-current", children: o }),
|
|
63782
|
-
n && /* @__PURE__ */
|
|
63733
|
+
n && /* @__PURE__ */ Xe(Hr, { children: [
|
|
63783
63734
|
/* @__PURE__ */ P("span", { className: "char-count-separator", children: "/" }),
|
|
63784
63735
|
/* @__PURE__ */ P("span", { className: "char-count-max", children: n })
|
|
63785
63736
|
] })
|
|
@@ -64474,7 +64425,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
64474
64425
|
readonly: !1,
|
|
64475
64426
|
variables: Qoe,
|
|
64476
64427
|
injectStyles: !1
|
|
64477
|
-
}, Mm = new gn("poroFloatingMenu"),
|
|
64428
|
+
}, Mm = new gn("poroFloatingMenu"), Cn = Yo(null), lie = ({ content: e = "<p>Ola!</p>", onChange: t, config: n }) => {
|
|
64478
64429
|
var s, l;
|
|
64479
64430
|
const r = $n(() => ({
|
|
64480
64431
|
menuBar: (n == null ? void 0 : n.menuBar) ?? uo.menuBar,
|
|
@@ -64595,7 +64546,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
64595
64546
|
};
|
|
64596
64547
|
}, [i]), it(() => {
|
|
64597
64548
|
i && i.setEditable(!r.readonly);
|
|
64598
|
-
}, [i, r.readonly]), i ? /* @__PURE__ */ P(
|
|
64549
|
+
}, [i, r.readonly]), i ? /* @__PURE__ */ P(Cn.Provider, { value: a, children: /* @__PURE__ */ Xe("div", { className: `nice-editor ${r.readonly ? "readonly" : ""}`, "data-theme": r.theme, children: [
|
|
64599
64550
|
!r.readonly && r.menuBar && r.menuBar.length > 0 && /* @__PURE__ */ P(rre, { editor: i, config: r.menuBar }),
|
|
64600
64551
|
/* @__PURE__ */ P(kO, { editor: i }),
|
|
64601
64552
|
!r.readonly && r.floatingMenu && r.floatingMenu.length > 0 && /* @__PURE__ */ P(sF, { editor: i, pluginKey: Mm, className: "floating-menu", tabIndex: -1, children: /* @__PURE__ */ P(xoe, { editor: i, config: r.floatingMenu, tabIndex: -1 }) }),
|
|
@@ -64618,7 +64569,7 @@ const Coe = () => /* @__PURE__ */ P("div", { className: "menu-separator" }), Soe
|
|
|
64618
64569
|
] }) }) : null;
|
|
64619
64570
|
};
|
|
64620
64571
|
export {
|
|
64621
|
-
|
|
64572
|
+
Cn as EditorContext,
|
|
64622
64573
|
lie as Tiptap,
|
|
64623
64574
|
lie as default
|
|
64624
64575
|
};
|