@fileverse-dev/dsheet 4.0.5 → 4.0.6
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/{executeStringFunction-B6fhDKyN.js → executeStringFunction-CxsiamWG.js} +6421 -6339
- package/dist/formula.js +1 -1
- package/dist/{index-BqGOKo9u.js → index-CQUhZB3J.js} +405 -405
- package/dist/index.es.js +2 -2
- package/dist/sheet-engine/core/modules/format.d.ts +5 -1
- package/dist/{use-xlsx-import-impl-Bddlxx23.js → use-xlsx-import-impl-DNTnmzDN.js} +4 -4
- package/dist/{xlsx-defined-names-DsWdNZw-.js → xlsx-defined-names-BHxDk83p.js} +2 -2
- package/dist/{xlsx-export-impl-DJiXCevi.js → xlsx-export-impl-r3bDoVjv.js} +4 -4
- package/dist/{xlsx-hyperlink-inline-CTg4_gg1.js → xlsx-hyperlink-inline-B5IR_SOR.js} +2 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var DW = Object.defineProperty;
|
|
|
2
2
|
var PW = (e, t, l) => t in e ? DW(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
3
|
var He = (e, t, l) => PW(e, typeof t != "symbol" ? t + "" : t, l);
|
|
4
4
|
import vt, { useRef as Ye, useContext as mt, useState as Xe, useMemo as st, useEffect as Ve, useCallback as ge, useLayoutEffect as yl, forwardRef as tm, createElement as Nr, useSyncExternalStore as QW, useImperativeHandle as AW, createContext as lm, memo as qW } from "react";
|
|
5
|
-
import { g as Uc, a as Ne, d as Qt, r as At, h as uo, j as zt, k as Md, i as di, l as Ee, m as ja, n as Tr, o as yZ, p as ti, q as jd, s as is, S as zd, t as qo, v as _W, u as im, w as $W, x as Xi, y as eX, z as Ni, A as Ht, B as Kn, C as nm, D as Mc, E as tX, F as jc, G as lX, H as Vt, I as Ut, J as pZ, K as ll, L as un, M as iX, N as za, O as Ql, P as Bi, Q as Ll, R as qt, T as vi, U as qh, V as sm, W as nX, X as zc, Y as ds, Z as mn, _ as _h, $ as Jn, a0 as sX, a1 as GZ, a2 as Oc, a3 as Oa, a4 as WZ, a5 as Ji, a6 as cX, a7 as rs, a8 as oX, a9 as Ti, aa as Zl, ab as pl, ac as fs, ad as _o, ae as aX, af as ri, ag as cm, ah as om, ai as dX, aj as XZ, ak as gZ, al as fZ, am as VZ, an as xZ, ao as $o, ap as Kr, aq as YZ, ar as SZ, as as ea, at as LZ, au as RZ, av as rX, aw as Vs, ax as CZ, ay as wZ, az as JZ, aA as HZ, aB as BZ, aC as vZ, aD as uX, aE as kZ, aF as FZ, aG as NZ, aH as TZ, aI as mX, aJ as KZ, aK as UZ, aL as am, aM as us, aN as ms, aO as MZ, aP as dm, aQ as jZ, aR as zZ, aS as OZ, aT as EZ, aU as hX, aV as Ea, aW as bX, aX as DZ, aY as Da, aZ as Ui, a_ as mo, a$ as ZX, b0 as rm, b1 as ns, b2 as $i, b3 as IX, b4 as yX, b5 as Ic, b6 as pX, b7 as GX, b8 as Od, b9 as um, ba as WX, bb as XX, bc as gX, bd as fX, be as VX, bf as Pa, bg as Pl, bh as Rl, bi as il, bj as hs, bk as mm, bl as yc, bm as tl, bn as xX, bo as Qa, bp as bs, bq as hm, br as Dl, bs as Aa, bt as hn, bu as qa, bv as ta, bw as Un, bx as YX, by as bm, bz as Zm, bA as Im, bB as SX, bC as Sn, bD as jl, bE as _a, bF as LX, bG as $a, bH as PZ, bI as Gi, bJ as Hn, bK as _n, bL as la, bM as RX, bN as CX, bO as xl, bP as wX, bQ as pc, bR as JX, bS as Ki, bT as Mn, bU as ed, bV as hl, bW as $t, bX as Ec, bY as Dc, bZ as QZ, b_ as AZ, b$ as Ln, c0 as td, c1 as HX, c2 as BX, c3 as vX, c4 as kX, c5 as FX, c6 as NX, c7 as TX, c8 as KX, c9 as UX, ca as ia, cb as Kl, cc as MX, cd as qZ, ce as _Z, cf as jX, cg as zX, ch as $Z, ci as $n, cj as Ur, ck as OX, cl as eI, cm as tI, cn as EX, co as lI, cp as ym, cq as iI, cr as nI, cs as DX, ct as ld, cu as sI, cv as pm, cw as cI, cx as oI, cy as aI, cz as dI, cA as rI, cB as Gm, cC as id, cD as uI, cE as Ol, cF as Wm, cG as Xm, cH as PX, cI as mI, cJ as hI, cK as cn, cL as ki, cM as nd, cN as QX, cO as bI, cP as on, cQ as an, cR as ko, cS as AX, cT as na, cU as qX, cV as ZI, cW as II, cX as _X, cY as sa, cZ as gm, c_ as yI, c$ as $X, d0 as pI, d1 as GI, d2 as WI, d3 as eg, d4 as tg, d5 as XI, d6 as Mr, d7 as gI, d8 as fI, d9 as lg, da as ig, db as VI, dc as ng, dd as sg, de as jr, df as sd, dg as zr, dh as xI, di as es, dj as cg, dk as og, dl as YI, dm as SI, dn as LI, dp as RI, dq as CI, dr as gi, ds as ag, dt as dg, du as wI, dv as JI, dw as HI, dx as fm, dy as BI, dz as rg, dA as ug, dB as ca, dC as vI, dD as mg, dE as hg, dF as bg, dG as kI, dH as Or, dI as FI, dJ as wi, dK as NI, dL as TI, dM as KI, dN as Zg, dO as Er, dP as Gc, dQ as Ig, dR as UI, dS as MI, dT as Dr, dU as yg, dV as Pr, dW as pg, dX as oa, dY as Vm, dZ as xm, d_ as Ym, d$ as Qr, e0 as jI, e1 as zI, e2 as OI, e3 as Gg, e4 as Wg, e5 as Xg, e6 as gg, e7 as fg, e8 as Wc, e9 as Xc, ea as ts, eb as EI, ec as Vg, ed as DI, ee as PI, ef as Ar, eg as QI, eh as AI, ei as xg, ej as qI, ek as _I, el as $I, em as ey, c as en, en as Yg, eo as Sg, ep as Lg, eq as Rg, er as Cg, es as Ed, et as wg, eu as Jg, ev as Hg, ew as Bg, ex as vg, ey as kg, ez as Fg, e as Sm, f as cd, eA as Ng, eB as Tg, eC as $h, eD as eb, eE as tb, eF as lb, eG as Kg, eH as Ug, eI as ib } from "./executeStringFunction-
|
|
5
|
+
import { g as Uc, a as Ne, d as Qt, r as At, h as uo, j as zt, k as Md, i as di, l as Ee, m as ja, n as Tr, o as yZ, p as ti, q as jd, s as is, S as zd, t as qo, v as _W, u as im, w as $W, x as Xi, y as eX, z as Ni, A as Ht, B as Kn, C as nm, D as Mc, E as tX, F as jc, G as lX, H as Vt, I as Ut, J as pZ, K as ll, L as un, M as iX, N as za, O as Ql, P as Bi, Q as Ll, R as qt, T as vi, U as qh, V as sm, W as nX, X as zc, Y as ds, Z as mn, _ as _h, $ as Jn, a0 as sX, a1 as GZ, a2 as Oc, a3 as Oa, a4 as WZ, a5 as Ji, a6 as cX, a7 as rs, a8 as oX, a9 as Ti, aa as Zl, ab as pl, ac as fs, ad as _o, ae as aX, af as ri, ag as cm, ah as om, ai as dX, aj as XZ, ak as gZ, al as fZ, am as VZ, an as xZ, ao as $o, ap as Kr, aq as YZ, ar as SZ, as as ea, at as LZ, au as RZ, av as rX, aw as Vs, ax as CZ, ay as wZ, az as JZ, aA as HZ, aB as BZ, aC as vZ, aD as uX, aE as kZ, aF as FZ, aG as NZ, aH as TZ, aI as mX, aJ as KZ, aK as UZ, aL as am, aM as us, aN as ms, aO as MZ, aP as dm, aQ as jZ, aR as zZ, aS as OZ, aT as EZ, aU as hX, aV as Ea, aW as bX, aX as DZ, aY as Da, aZ as Ui, a_ as mo, a$ as ZX, b0 as rm, b1 as ns, b2 as $i, b3 as IX, b4 as yX, b5 as Ic, b6 as pX, b7 as GX, b8 as Od, b9 as um, ba as WX, bb as XX, bc as gX, bd as fX, be as VX, bf as Pa, bg as Pl, bh as Rl, bi as il, bj as hs, bk as mm, bl as yc, bm as tl, bn as xX, bo as Qa, bp as bs, bq as hm, br as Dl, bs as Aa, bt as hn, bu as qa, bv as ta, bw as Un, bx as YX, by as bm, bz as Zm, bA as Im, bB as SX, bC as Sn, bD as jl, bE as _a, bF as LX, bG as $a, bH as PZ, bI as Gi, bJ as Hn, bK as _n, bL as la, bM as RX, bN as CX, bO as xl, bP as wX, bQ as pc, bR as JX, bS as Ki, bT as Mn, bU as ed, bV as hl, bW as $t, bX as Ec, bY as Dc, bZ as QZ, b_ as AZ, b$ as Ln, c0 as td, c1 as HX, c2 as BX, c3 as vX, c4 as kX, c5 as FX, c6 as NX, c7 as TX, c8 as KX, c9 as UX, ca as ia, cb as Kl, cc as MX, cd as qZ, ce as _Z, cf as jX, cg as zX, ch as $Z, ci as $n, cj as Ur, ck as OX, cl as eI, cm as tI, cn as EX, co as lI, cp as ym, cq as iI, cr as nI, cs as DX, ct as ld, cu as sI, cv as pm, cw as cI, cx as oI, cy as aI, cz as dI, cA as rI, cB as Gm, cC as id, cD as uI, cE as Ol, cF as Wm, cG as Xm, cH as PX, cI as mI, cJ as hI, cK as cn, cL as ki, cM as nd, cN as QX, cO as bI, cP as on, cQ as an, cR as ko, cS as AX, cT as na, cU as qX, cV as ZI, cW as II, cX as _X, cY as sa, cZ as gm, c_ as yI, c$ as $X, d0 as pI, d1 as GI, d2 as WI, d3 as eg, d4 as tg, d5 as XI, d6 as Mr, d7 as gI, d8 as fI, d9 as lg, da as ig, db as VI, dc as ng, dd as sg, de as jr, df as sd, dg as zr, dh as xI, di as es, dj as cg, dk as og, dl as YI, dm as SI, dn as LI, dp as RI, dq as CI, dr as gi, ds as ag, dt as dg, du as wI, dv as JI, dw as HI, dx as fm, dy as BI, dz as rg, dA as ug, dB as ca, dC as vI, dD as mg, dE as hg, dF as bg, dG as kI, dH as Or, dI as FI, dJ as wi, dK as NI, dL as TI, dM as KI, dN as Zg, dO as Er, dP as Gc, dQ as Ig, dR as UI, dS as MI, dT as Dr, dU as yg, dV as Pr, dW as pg, dX as oa, dY as Vm, dZ as xm, d_ as Ym, d$ as Qr, e0 as jI, e1 as zI, e2 as OI, e3 as Gg, e4 as Wg, e5 as Xg, e6 as gg, e7 as fg, e8 as Wc, e9 as Xc, ea as ts, eb as EI, ec as Vg, ed as DI, ee as PI, ef as Ar, eg as QI, eh as AI, ei as xg, ej as qI, ek as _I, el as $I, em as ey, c as en, en as Yg, eo as Sg, ep as Lg, eq as Rg, er as Cg, es as Ed, et as wg, eu as Jg, ev as Hg, ew as Bg, ex as vg, ey as kg, ez as Fg, e as Sm, f as cd, eA as Ng, eB as Tg, eC as $h, eD as eb, eE as tb, eF as lb, eG as Kg, eH as Ug, eI as ib } from "./executeStringFunction-CxsiamWG.js";
|
|
6
6
|
import * as Be from "yjs";
|
|
7
7
|
import { p as qr, E as ty, C as Dd, a as nb, D as ly, H as Mg, b as jg, T as zg } from "./constants-CRFfbkoQ.js";
|
|
8
8
|
import { t as ai, f as ii, s as Og, u as Eg, m as Dg } from "./persistence-utils-DsM_MOB1.js";
|
|
@@ -60,25 +60,25 @@ function Rf() {
|
|
|
60
60
|
function V(me) {
|
|
61
61
|
if (me === null || typeof me != "object")
|
|
62
62
|
return null;
|
|
63
|
-
var
|
|
64
|
-
return typeof
|
|
63
|
+
var Ce = Z && me[Z] || me[y];
|
|
64
|
+
return typeof Ce == "function" ? Ce : null;
|
|
65
65
|
}
|
|
66
66
|
var Y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
67
67
|
function I(me) {
|
|
68
68
|
{
|
|
69
|
-
for (var
|
|
69
|
+
for (var Ce = arguments.length, Ae = new Array(Ce > 1 ? Ce - 1 : 0), lt = 1; lt < Ce; lt++)
|
|
70
70
|
Ae[lt - 1] = arguments[lt];
|
|
71
71
|
G("error", me, Ae);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function G(me,
|
|
74
|
+
function G(me, Ce, Ae) {
|
|
75
75
|
{
|
|
76
76
|
var lt = Y.ReactDebugCurrentFrame, it = lt.getStackAddendum();
|
|
77
|
-
it !== "" && (
|
|
77
|
+
it !== "" && (Ce += "%s", Ae = Ae.concat([it]));
|
|
78
78
|
var rt = Ae.map(function(Wt) {
|
|
79
79
|
return String(Wt);
|
|
80
80
|
});
|
|
81
|
-
rt.unshift("Warning: " +
|
|
81
|
+
rt.unshift("Warning: " + Ce), Function.prototype.apply.call(console[me], console, rt);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
var p = !1, W = !1, f = !1, S = !1, X = !1, K;
|
|
@@ -90,11 +90,11 @@ function Rf() {
|
|
|
90
90
|
// with.
|
|
91
91
|
me.$$typeof === K || me.getModuleId !== void 0));
|
|
92
92
|
}
|
|
93
|
-
function U(me,
|
|
93
|
+
function U(me, Ce, Ae) {
|
|
94
94
|
var lt = me.displayName;
|
|
95
95
|
if (lt)
|
|
96
96
|
return lt;
|
|
97
|
-
var it =
|
|
97
|
+
var it = Ce.displayName || Ce.name || "";
|
|
98
98
|
return it !== "" ? Ae + "(" + it + ")" : Ae;
|
|
99
99
|
}
|
|
100
100
|
function M(me) {
|
|
@@ -124,8 +124,8 @@ function Rf() {
|
|
|
124
124
|
if (typeof me == "object")
|
|
125
125
|
switch (me.$$typeof) {
|
|
126
126
|
case o:
|
|
127
|
-
var
|
|
128
|
-
return M(
|
|
127
|
+
var Ce = me;
|
|
128
|
+
return M(Ce) + ".Consumer";
|
|
129
129
|
case a:
|
|
130
130
|
var Ae = me;
|
|
131
131
|
return M(Ae._context) + ".Provider";
|
|
@@ -208,7 +208,7 @@ function Rf() {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
var $ = Y.ReactCurrentDispatcher, F;
|
|
211
|
-
function O(me,
|
|
211
|
+
function O(me, Ce, Ae) {
|
|
212
212
|
{
|
|
213
213
|
if (F === void 0)
|
|
214
214
|
try {
|
|
@@ -226,7 +226,7 @@ function Rf() {
|
|
|
226
226
|
var k = typeof WeakMap == "function" ? WeakMap : Map;
|
|
227
227
|
L = new k();
|
|
228
228
|
}
|
|
229
|
-
function ne(me,
|
|
229
|
+
function ne(me, Ce) {
|
|
230
230
|
if (!me || z)
|
|
231
231
|
return "";
|
|
232
232
|
{
|
|
@@ -241,7 +241,7 @@ function Rf() {
|
|
|
241
241
|
var rt;
|
|
242
242
|
rt = $.current, $.current = null, le();
|
|
243
243
|
try {
|
|
244
|
-
if (
|
|
244
|
+
if (Ce) {
|
|
245
245
|
var Wt = function() {
|
|
246
246
|
throw Error();
|
|
247
247
|
};
|
|
@@ -297,14 +297,14 @@ function Rf() {
|
|
|
297
297
|
var Li = me ? me.displayName || me.name : "", Zi = Li ? O(Li) : "";
|
|
298
298
|
return typeof me == "function" && L.set(me, Zi), Zi;
|
|
299
299
|
}
|
|
300
|
-
function se(me,
|
|
300
|
+
function se(me, Ce, Ae) {
|
|
301
301
|
return ne(me, !1);
|
|
302
302
|
}
|
|
303
303
|
function te(me) {
|
|
304
|
-
var
|
|
305
|
-
return !!(
|
|
304
|
+
var Ce = me.prototype;
|
|
305
|
+
return !!(Ce && Ce.isReactComponent);
|
|
306
306
|
}
|
|
307
|
-
function Ze(me,
|
|
307
|
+
function Ze(me, Ce, Ae) {
|
|
308
308
|
if (me == null)
|
|
309
309
|
return "";
|
|
310
310
|
if (typeof me == "function")
|
|
@@ -322,11 +322,11 @@ function Rf() {
|
|
|
322
322
|
case d:
|
|
323
323
|
return se(me.render);
|
|
324
324
|
case m:
|
|
325
|
-
return Ze(me.type,
|
|
325
|
+
return Ze(me.type, Ce, Ae);
|
|
326
326
|
case h: {
|
|
327
327
|
var lt = me, it = lt._payload, rt = lt._init;
|
|
328
328
|
try {
|
|
329
|
-
return Ze(rt(it),
|
|
329
|
+
return Ze(rt(it), Ce, Ae);
|
|
330
330
|
} catch {
|
|
331
331
|
}
|
|
332
332
|
}
|
|
@@ -336,12 +336,12 @@ function Rf() {
|
|
|
336
336
|
var D = Object.prototype.hasOwnProperty, de = {}, ae = Y.ReactDebugCurrentFrame;
|
|
337
337
|
function ye(me) {
|
|
338
338
|
if (me) {
|
|
339
|
-
var
|
|
339
|
+
var Ce = me._owner, Ae = Ze(me.type, me._source, Ce ? Ce.type : null);
|
|
340
340
|
ae.setExtraStackFrame(Ae);
|
|
341
341
|
} else
|
|
342
342
|
ae.setExtraStackFrame(null);
|
|
343
343
|
}
|
|
344
|
-
function Q(me,
|
|
344
|
+
function Q(me, Ce, Ae, lt, it) {
|
|
345
345
|
{
|
|
346
346
|
var rt = Function.call.bind(D);
|
|
347
347
|
for (var Wt in me)
|
|
@@ -352,7 +352,7 @@ function Rf() {
|
|
|
352
352
|
var Et = Error((lt || "React class") + ": " + Ae + " type `" + Wt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof me[Wt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
353
353
|
throw Et.name = "Invariant Violation", Et;
|
|
354
354
|
}
|
|
355
|
-
It = me[Wt](
|
|
355
|
+
It = me[Wt](Ce, Wt, lt, Ae, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
356
356
|
} catch (Mt) {
|
|
357
357
|
It = Mt;
|
|
358
358
|
}
|
|
@@ -366,7 +366,7 @@ function Rf() {
|
|
|
366
366
|
}
|
|
367
367
|
function ie(me) {
|
|
368
368
|
{
|
|
369
|
-
var
|
|
369
|
+
var Ce = typeof Symbol == "function" && Symbol.toStringTag, Ae = Ce && me[Symbol.toStringTag] || me.constructor.name || "Object";
|
|
370
370
|
return Ae;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
@@ -392,27 +392,27 @@ function Rf() {
|
|
|
392
392
|
}, ee, ce;
|
|
393
393
|
function re(me) {
|
|
394
394
|
if (D.call(me, "ref")) {
|
|
395
|
-
var
|
|
396
|
-
if (
|
|
395
|
+
var Ce = Object.getOwnPropertyDescriptor(me, "ref").get;
|
|
396
|
+
if (Ce && Ce.isReactWarning)
|
|
397
397
|
return !1;
|
|
398
398
|
}
|
|
399
399
|
return me.ref !== void 0;
|
|
400
400
|
}
|
|
401
401
|
function Ie(me) {
|
|
402
402
|
if (D.call(me, "key")) {
|
|
403
|
-
var
|
|
404
|
-
if (
|
|
403
|
+
var Ce = Object.getOwnPropertyDescriptor(me, "key").get;
|
|
404
|
+
if (Ce && Ce.isReactWarning)
|
|
405
405
|
return !1;
|
|
406
406
|
}
|
|
407
407
|
return me.key !== void 0;
|
|
408
408
|
}
|
|
409
|
-
function pe(me,
|
|
409
|
+
function pe(me, Ce) {
|
|
410
410
|
typeof me.ref == "string" && C.current;
|
|
411
411
|
}
|
|
412
|
-
function We(me,
|
|
412
|
+
function We(me, Ce) {
|
|
413
413
|
{
|
|
414
414
|
var Ae = function() {
|
|
415
|
-
ee || (ee = !0, I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
415
|
+
ee || (ee = !0, I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ce));
|
|
416
416
|
};
|
|
417
417
|
Ae.isReactWarning = !0, Object.defineProperty(me, "key", {
|
|
418
418
|
get: Ae,
|
|
@@ -420,10 +420,10 @@ function Rf() {
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
function Se(me,
|
|
423
|
+
function Se(me, Ce) {
|
|
424
424
|
{
|
|
425
425
|
var Ae = function() {
|
|
426
|
-
ce || (ce = !0, I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
426
|
+
ce || (ce = !0, I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ce));
|
|
427
427
|
};
|
|
428
428
|
Ae.isReactWarning = !0, Object.defineProperty(me, "ref", {
|
|
429
429
|
get: Ae,
|
|
@@ -431,13 +431,13 @@ function Rf() {
|
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
var xe = function(me,
|
|
434
|
+
var xe = function(me, Ce, Ae, lt, it, rt, Wt) {
|
|
435
435
|
var It = {
|
|
436
436
|
// This tag allows us to uniquely identify this as a React Element
|
|
437
437
|
$$typeof: t,
|
|
438
438
|
// Built-in properties that belong on the element
|
|
439
439
|
type: me,
|
|
440
|
-
key:
|
|
440
|
+
key: Ce,
|
|
441
441
|
ref: Ae,
|
|
442
442
|
props: Wt,
|
|
443
443
|
// Record the component responsible for creating this element.
|
|
@@ -460,12 +460,12 @@ function Rf() {
|
|
|
460
460
|
value: it
|
|
461
461
|
}), Object.freeze && (Object.freeze(It.props), Object.freeze(It)), It;
|
|
462
462
|
};
|
|
463
|
-
function fe(me,
|
|
463
|
+
function fe(me, Ce, Ae, lt, it) {
|
|
464
464
|
{
|
|
465
465
|
var rt, Wt = {}, It = null, Et = null;
|
|
466
|
-
Ae !== void 0 && (H(Ae), It = "" + Ae), Ie(
|
|
467
|
-
for (rt in
|
|
468
|
-
D.call(
|
|
466
|
+
Ae !== void 0 && (H(Ae), It = "" + Ae), Ie(Ce) && (H(Ce.key), It = "" + Ce.key), re(Ce) && (Et = Ce.ref, pe(Ce, it));
|
|
467
|
+
for (rt in Ce)
|
|
468
|
+
D.call(Ce, rt) && !P.hasOwnProperty(rt) && (Wt[rt] = Ce[rt]);
|
|
469
469
|
if (me && me.defaultProps) {
|
|
470
470
|
var Mt = me.defaultProps;
|
|
471
471
|
for (rt in Mt)
|
|
@@ -479,15 +479,15 @@ function Rf() {
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
var Le = Y.ReactCurrentOwner, ke = Y.ReactDebugCurrentFrame;
|
|
482
|
-
function
|
|
482
|
+
function Re(me) {
|
|
483
483
|
if (me) {
|
|
484
|
-
var
|
|
484
|
+
var Ce = me._owner, Ae = Ze(me.type, me._source, Ce ? Ce.type : null);
|
|
485
485
|
ke.setExtraStackFrame(Ae);
|
|
486
486
|
} else
|
|
487
487
|
ke.setExtraStackFrame(null);
|
|
488
488
|
}
|
|
489
|
-
var
|
|
490
|
-
|
|
489
|
+
var Fe;
|
|
490
|
+
Fe = !1;
|
|
491
491
|
function Je(me) {
|
|
492
492
|
return typeof me == "object" && me !== null && me.$$typeof === t;
|
|
493
493
|
}
|
|
@@ -509,37 +509,37 @@ Check the render method of \`` + me + "`.";
|
|
|
509
509
|
var Me = {};
|
|
510
510
|
function Qe(me) {
|
|
511
511
|
{
|
|
512
|
-
var
|
|
513
|
-
if (!
|
|
512
|
+
var Ce = we();
|
|
513
|
+
if (!Ce) {
|
|
514
514
|
var Ae = typeof me == "string" ? me : me.displayName || me.name;
|
|
515
|
-
Ae && (
|
|
515
|
+
Ae && (Ce = `
|
|
516
516
|
|
|
517
517
|
Check the top-level render call using <` + Ae + ">.");
|
|
518
518
|
}
|
|
519
|
-
return
|
|
519
|
+
return Ce;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function je(me,
|
|
522
|
+
function je(me, Ce) {
|
|
523
523
|
{
|
|
524
524
|
if (!me._store || me._store.validated || me.key != null)
|
|
525
525
|
return;
|
|
526
526
|
me._store.validated = !0;
|
|
527
|
-
var Ae = Qe(
|
|
527
|
+
var Ae = Qe(Ce);
|
|
528
528
|
if (Me[Ae])
|
|
529
529
|
return;
|
|
530
530
|
Me[Ae] = !0;
|
|
531
531
|
var lt = "";
|
|
532
|
-
me && me._owner && me._owner !== Le.current && (lt = " It was passed a child from " + g(me._owner.type) + "."),
|
|
532
|
+
me && me._owner && me._owner !== Le.current && (lt = " It was passed a child from " + g(me._owner.type) + "."), Re(me), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Ae, lt), Re(null);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function et(me,
|
|
535
|
+
function et(me, Ce) {
|
|
536
536
|
{
|
|
537
537
|
if (typeof me != "object")
|
|
538
538
|
return;
|
|
539
539
|
if (be(me))
|
|
540
540
|
for (var Ae = 0; Ae < me.length; Ae++) {
|
|
541
541
|
var lt = me[Ae];
|
|
542
|
-
Je(lt) && je(lt,
|
|
542
|
+
Je(lt) && je(lt, Ce);
|
|
543
543
|
}
|
|
544
544
|
else if (Je(me))
|
|
545
545
|
me._store && (me._store.validated = !0);
|
|
@@ -547,49 +547,49 @@ Check the top-level render call using <` + Ae + ">.");
|
|
|
547
547
|
var it = V(me);
|
|
548
548
|
if (typeof it == "function" && it !== me.entries)
|
|
549
549
|
for (var rt = it.call(me), Wt; !(Wt = rt.next()).done; )
|
|
550
|
-
Je(Wt.value) && je(Wt.value,
|
|
550
|
+
Je(Wt.value) && je(Wt.value, Ce);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
function qe(me) {
|
|
555
555
|
{
|
|
556
|
-
var
|
|
557
|
-
if (
|
|
556
|
+
var Ce = me.type;
|
|
557
|
+
if (Ce == null || typeof Ce == "string")
|
|
558
558
|
return;
|
|
559
559
|
var Ae;
|
|
560
|
-
if (typeof
|
|
561
|
-
Ae =
|
|
562
|
-
else if (typeof
|
|
560
|
+
if (typeof Ce == "function")
|
|
561
|
+
Ae = Ce.propTypes;
|
|
562
|
+
else if (typeof Ce == "object" && (Ce.$$typeof === d || // Note: Memo only checks outer props here.
|
|
563
563
|
// Inner props are checked in the reconciler.
|
|
564
|
-
|
|
565
|
-
Ae =
|
|
564
|
+
Ce.$$typeof === m))
|
|
565
|
+
Ae = Ce.propTypes;
|
|
566
566
|
else
|
|
567
567
|
return;
|
|
568
568
|
if (Ae) {
|
|
569
|
-
var lt = g(
|
|
569
|
+
var lt = g(Ce);
|
|
570
570
|
Q(Ae, me.props, "prop", lt, me);
|
|
571
|
-
} else if (
|
|
572
|
-
|
|
573
|
-
var it = g(
|
|
571
|
+
} else if (Ce.PropTypes !== void 0 && !Fe) {
|
|
572
|
+
Fe = !0;
|
|
573
|
+
var it = g(Ce);
|
|
574
574
|
I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", it || "Unknown");
|
|
575
575
|
}
|
|
576
|
-
typeof
|
|
576
|
+
typeof Ce.getDefaultProps == "function" && !Ce.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
function tt(me) {
|
|
580
580
|
{
|
|
581
|
-
for (var
|
|
582
|
-
var lt =
|
|
581
|
+
for (var Ce = Object.keys(me.props), Ae = 0; Ae < Ce.length; Ae++) {
|
|
582
|
+
var lt = Ce[Ae];
|
|
583
583
|
if (lt !== "children" && lt !== "key") {
|
|
584
|
-
|
|
584
|
+
Re(me), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", lt), Re(null);
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
me.ref !== null && (
|
|
588
|
+
me.ref !== null && (Re(me), I("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
var Zt = {};
|
|
592
|
-
function Gt(me,
|
|
592
|
+
function Gt(me, Ce, Ae, lt, it, rt) {
|
|
593
593
|
{
|
|
594
594
|
var Wt = j(me);
|
|
595
595
|
if (!Wt) {
|
|
@@ -600,11 +600,11 @@ Check the top-level render call using <` + Ae + ">.");
|
|
|
600
600
|
var Mt;
|
|
601
601
|
me === null ? Mt = "null" : be(me) ? Mt = "array" : me !== void 0 && me.$$typeof === t ? (Mt = "<" + (g(me.type) || "Unknown") + " />", It = " Did you accidentally export a JSX literal instead of a component?") : Mt = typeof me, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Mt, It);
|
|
602
602
|
}
|
|
603
|
-
var jt = fe(me,
|
|
603
|
+
var jt = fe(me, Ce, Ae, it, rt);
|
|
604
604
|
if (jt == null)
|
|
605
605
|
return jt;
|
|
606
606
|
if (Wt) {
|
|
607
|
-
var Yl =
|
|
607
|
+
var Yl = Ce.children;
|
|
608
608
|
if (Yl !== void 0)
|
|
609
609
|
if (lt)
|
|
610
610
|
if (be(Yl)) {
|
|
@@ -616,8 +616,8 @@ Check the top-level render call using <` + Ae + ">.");
|
|
|
616
616
|
else
|
|
617
617
|
et(Yl, me);
|
|
618
618
|
}
|
|
619
|
-
if (D.call(
|
|
620
|
-
var Zi = g(me), Gl = Object.keys(
|
|
619
|
+
if (D.call(Ce, "key")) {
|
|
620
|
+
var Zi = g(me), Gl = Object.keys(Ce).filter(function(ro) {
|
|
621
621
|
return ro !== "key";
|
|
622
622
|
}), On = Gl.length > 0 ? "{key: someKey, " + Gl.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
623
623
|
if (!Zt[Zi + On]) {
|
|
@@ -633,11 +633,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
633
633
|
return me === i ? tt(jt) : qe(jt), jt;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
function Pe(me,
|
|
637
|
-
return Gt(me,
|
|
636
|
+
function Pe(me, Ce, Ae) {
|
|
637
|
+
return Gt(me, Ce, Ae, !0);
|
|
638
638
|
}
|
|
639
|
-
function Te(me,
|
|
640
|
-
return Gt(me,
|
|
639
|
+
function Te(me, Ce, Ae) {
|
|
640
|
+
return Gt(me, Ce, Ae, !1);
|
|
641
641
|
}
|
|
642
642
|
var De = Te, Ke = Pe;
|
|
643
643
|
Ks.Fragment = i, Ks.jsx = De, Ks.jsxs = Ke;
|
|
@@ -1615,13 +1615,13 @@ class Cm {
|
|
|
1615
1615
|
for (let We = 0; We < (oe == null ? void 0 : oe.length); We += 1) {
|
|
1616
1616
|
const Se = re, xe = Ie + We * (ee + pe);
|
|
1617
1617
|
let fe;
|
|
1618
|
-
if (be == null || be.forEach((
|
|
1619
|
-
|
|
1618
|
+
if (be == null || be.forEach((Re, Fe) => {
|
|
1619
|
+
Re === oe[We] && (fe = `rgba(${he == null ? void 0 : he[Fe]}, 1)`);
|
|
1620
1620
|
}), d.beginPath(), d.fillStyle = fe || "rgba(232, 235, 236, 1)", d.roundRect(Se, xe, P, ee, ce), d.fill(), d.closePath(), We === 0) {
|
|
1621
|
-
const
|
|
1622
|
-
d.beginPath(), d.fillStyle = "rgba(0, 0, 0, 1)", d.moveTo(Je, we), d.lineTo(Je +
|
|
1623
|
-
Je +
|
|
1624
|
-
we +
|
|
1621
|
+
const Re = 7 * this.sheetCtx.zoomRatio, Fe = 4 * this.sheetCtx.zoomRatio, Je = Se - 2 + P - Re - 2 * this.sheetCtx.zoomRatio, we = xe + (ee - Fe) / 2;
|
|
1622
|
+
d.beginPath(), d.fillStyle = "rgba(0, 0, 0, 1)", d.moveTo(Je, we), d.lineTo(Je + Re, we), d.lineTo(
|
|
1623
|
+
Je + Re / 2,
|
|
1624
|
+
we + Fe
|
|
1625
1625
|
), d.closePath(), d.fill();
|
|
1626
1626
|
}
|
|
1627
1627
|
const Le = oe[We], ke = ((f == null ? void 0 : f.fs) ?? 13) * this.sheetCtx.zoomRatio;
|
|
@@ -8790,24 +8790,24 @@ function VV(e, t, l = !1) {
|
|
|
8790
8790
|
}
|
|
8791
8791
|
let fe = !1;
|
|
8792
8792
|
if (!_.isNil(xe) && !_.isNil(xe.f)) {
|
|
8793
|
-
let ke = xe.f,
|
|
8794
|
-
const
|
|
8793
|
+
let ke = xe.f, Re = !1;
|
|
8794
|
+
const Fe = d + (pe - A), Je = r + (Se - le);
|
|
8795
8795
|
try {
|
|
8796
8796
|
ke = Sp(
|
|
8797
8797
|
xe.f,
|
|
8798
8798
|
Je,
|
|
8799
|
-
|
|
8799
|
+
Fe,
|
|
8800
8800
|
Se,
|
|
8801
8801
|
pe
|
|
8802
8802
|
);
|
|
8803
8803
|
} catch (we) {
|
|
8804
|
-
|
|
8804
|
+
Re = !0, xe.error = {
|
|
8805
8805
|
row_column: `${pe}_${Se}`,
|
|
8806
8806
|
title: "Error",
|
|
8807
8807
|
message: (we == null ? void 0 : we.message) || "Failed to adjust cell reference"
|
|
8808
8808
|
}, xe.m = "#ERROR", xe.f = we == null ? void 0 : we.formula, delete xe.ct, delete xe.v, delete xe.tb, delete xe.ht;
|
|
8809
8809
|
}
|
|
8810
|
-
if (!
|
|
8810
|
+
if (!Re) {
|
|
8811
8811
|
const we = zc(
|
|
8812
8812
|
e,
|
|
8813
8813
|
ke,
|
|
@@ -8900,15 +8900,15 @@ function VV(e, t, l = !1) {
|
|
|
8900
8900
|
e.luckysheetfile[re].hyperlink || (e.luckysheetfile[re].hyperlink = {});
|
|
8901
8901
|
const We = e.luckysheetfile[re].hyperlink, Se = y === 1 && V === 1, xe = Se ? `${d}_${r}` : null, fe = Se && Ie ? Ie[xe] : null, Le = Se && pe ? (H = pe[d]) == null ? void 0 : H[r] : null;
|
|
8902
8902
|
for (let ke = 1; ke <= K; ke += 1)
|
|
8903
|
-
for (let
|
|
8904
|
-
const
|
|
8905
|
-
for (let Me =
|
|
8903
|
+
for (let Re = 1; Re <= j; Re += 1) {
|
|
8904
|
+
const Fe = I + (ke - 1) * y, Je = p + (Re - 1) * V, we = I + ke * y, Ue = p + Re * V;
|
|
8905
|
+
for (let Me = Fe; Me < we; Me += 1)
|
|
8906
8906
|
for (let Qe = Je; Qe < Ue; Qe += 1) {
|
|
8907
8907
|
let je;
|
|
8908
8908
|
if (Se && fe)
|
|
8909
8909
|
je = fe;
|
|
8910
8910
|
else {
|
|
8911
|
-
const tt = d + (Me -
|
|
8911
|
+
const tt = d + (Me - Fe), Zt = r + (Qe - Je);
|
|
8912
8912
|
je = Ie == null ? void 0 : Ie[`${tt}_${Zt}`];
|
|
8913
8913
|
}
|
|
8914
8914
|
if (!je) continue;
|
|
@@ -8926,7 +8926,7 @@ function VV(e, t, l = !1) {
|
|
|
8926
8926
|
if (Se && Le)
|
|
8927
8927
|
tt = Le;
|
|
8928
8928
|
else {
|
|
8929
|
-
const Zt = d + (Me -
|
|
8929
|
+
const Zt = d + (Me - Fe), Gt = r + (Qe - Je);
|
|
8930
8930
|
tt = (P = pe == null ? void 0 : pe[Zt]) == null ? void 0 : P[Gt];
|
|
8931
8931
|
}
|
|
8932
8932
|
qe.hl = { r: Me, c: Qe, id: e.currentSheetId }, tt ? (tt.fc && (qe.fc = tt.fc), tt.un !== void 0 && (qe.un = tt.un)) : (qe.fc = qe.fc || "rgb(0, 0, 255)", qe.un = qe.un !== void 0 ? qe.un : 1);
|
|
@@ -9924,13 +9924,13 @@ const KV = (e, t) => {
|
|
|
9924
9924
|
return;
|
|
9925
9925
|
const O = F - $ + 1, z = Array.from(
|
|
9926
9926
|
{ length: O },
|
|
9927
|
-
(
|
|
9927
|
+
(Re, Fe) => $ + Fe
|
|
9928
9928
|
);
|
|
9929
9929
|
let L = v;
|
|
9930
9930
|
L > F + 1 && (L -= O), L < 0 && (L = 0), L > le - O && (L = le - O);
|
|
9931
9931
|
const k = Array.from(
|
|
9932
9932
|
{ length: O },
|
|
9933
|
-
(
|
|
9933
|
+
(Re, Fe) => L + Fe
|
|
9934
9934
|
), ne = Math.min($, L), se = Math.max($, L) + O - 1;
|
|
9935
9935
|
m.current = z, h.current = k;
|
|
9936
9936
|
const te = A.length, Ze = qI(
|
|
@@ -9941,22 +9941,22 @@ const KV = (e, t) => {
|
|
|
9941
9941
|
se,
|
|
9942
9942
|
w.celldata
|
|
9943
9943
|
);
|
|
9944
|
-
for (let
|
|
9945
|
-
const
|
|
9946
|
-
if (!
|
|
9947
|
-
const Je =
|
|
9948
|
-
|
|
9944
|
+
for (let Re = 0; Re < A.length; Re += 1) {
|
|
9945
|
+
const Fe = A[Re];
|
|
9946
|
+
if (!Fe || $ >= Fe.length) continue;
|
|
9947
|
+
const Je = Fe.splice($, O);
|
|
9948
|
+
Fe.splice(L, 0, ...Je);
|
|
9949
9949
|
}
|
|
9950
9950
|
w.data = A, Ti(N, w.data);
|
|
9951
9951
|
const D = Ee(N), de = (() => {
|
|
9952
9952
|
var je;
|
|
9953
|
-
const
|
|
9953
|
+
const Re = ((je = A[0]) == null ? void 0 : je.length) ?? 0, Fe = Array.from({ length: Re }, (et, qe) => qe), Je = $, we = O;
|
|
9954
9954
|
if (we <= 0) return {};
|
|
9955
|
-
const Ue =
|
|
9955
|
+
const Ue = Fe.splice(Je, we);
|
|
9956
9956
|
let Me = L;
|
|
9957
|
-
Me < 0 && (Me = 0), Me >
|
|
9957
|
+
Me < 0 && (Me = 0), Me > Fe.length && (Me = Fe.length), Fe.splice(Me, 0, ...Ue);
|
|
9958
9958
|
const Qe = {};
|
|
9959
|
-
return
|
|
9959
|
+
return Fe.forEach((et, qe) => {
|
|
9960
9960
|
Qe[et] = qe;
|
|
9961
9961
|
}), Qe;
|
|
9962
9962
|
})(), ae = (re = w.config) == null ? void 0 : re.cellFormatRanges, ye = _I(
|
|
@@ -9975,22 +9975,22 @@ const KV = (e, t) => {
|
|
|
9975
9975
|
value: ue ?? [],
|
|
9976
9976
|
type: "update"
|
|
9977
9977
|
})), be.length > 0 && ((We = (pe = N.hooks) == null ? void 0 : pe.updateCellYdoc) == null || We.call(pe, be)), w.config) {
|
|
9978
|
-
const
|
|
9979
|
-
if (!
|
|
9978
|
+
const Re = (Fe) => {
|
|
9979
|
+
if (!Fe) return Fe;
|
|
9980
9980
|
const Je = {};
|
|
9981
|
-
return Object.keys(
|
|
9981
|
+
return Object.keys(Fe).forEach((we) => {
|
|
9982
9982
|
const Ue = parseInt(we, 10);
|
|
9983
9983
|
if (!Number.isFinite(Ue)) return;
|
|
9984
9984
|
const Me = de[Ue] != null ? de[Ue] : Ue;
|
|
9985
|
-
Je[Me] =
|
|
9985
|
+
Je[Me] = Fe[we];
|
|
9986
9986
|
}), Je;
|
|
9987
9987
|
};
|
|
9988
|
-
w.config.columnlen =
|
|
9988
|
+
w.config.columnlen = Re(w.config.columnlen), w.config.customWidth = Re(
|
|
9989
9989
|
w.config.customWidth
|
|
9990
9990
|
), N.config.columnlen = w.config.columnlen, N.config.customWidth = w.config.customWidth;
|
|
9991
9991
|
}
|
|
9992
9992
|
if (Array.isArray(w.luckysheet_conditionformat_save)) {
|
|
9993
|
-
const
|
|
9993
|
+
const Re = (Fe) => {
|
|
9994
9994
|
const Je = (Ue) => {
|
|
9995
9995
|
if (!Array.isArray(Ue) || Ue.length !== 2) return null;
|
|
9996
9996
|
const Me = Number(Ue[0]), Qe = Number(Ue[1]);
|
|
@@ -10009,7 +10009,7 @@ const KV = (e, t) => {
|
|
|
10009
10009
|
}
|
|
10010
10010
|
return Me.push([Qe, je]), Me;
|
|
10011
10011
|
};
|
|
10012
|
-
return
|
|
10012
|
+
return Fe.map((Ue) => {
|
|
10013
10013
|
const Me = Array.isArray(Ue == null ? void 0 : Ue.cellrange) ? Ue.cellrange : [], Qe = [];
|
|
10014
10014
|
return Me.forEach((je) => {
|
|
10015
10015
|
const et = Je(je == null ? void 0 : je.row), qe = Je(je == null ? void 0 : je.column);
|
|
@@ -10034,12 +10034,12 @@ const KV = (e, t) => {
|
|
|
10034
10034
|
};
|
|
10035
10035
|
});
|
|
10036
10036
|
};
|
|
10037
|
-
w.luckysheet_conditionformat_save =
|
|
10037
|
+
w.luckysheet_conditionformat_save = Re(
|
|
10038
10038
|
w.luckysheet_conditionformat_save
|
|
10039
10039
|
);
|
|
10040
10040
|
}
|
|
10041
10041
|
if (Array.isArray(w.luckysheet_alternateformat_save)) {
|
|
10042
|
-
const
|
|
10042
|
+
const Re = (Fe) => {
|
|
10043
10043
|
const Je = (Me) => {
|
|
10044
10044
|
if (!Array.isArray(Me) || Me.length !== 2) return null;
|
|
10045
10045
|
const Qe = Number(Me[0]), je = Number(Me[1]);
|
|
@@ -10058,7 +10058,7 @@ const KV = (e, t) => {
|
|
|
10058
10058
|
}
|
|
10059
10059
|
return Qe.push([je, et]), Qe;
|
|
10060
10060
|
}, Ue = [];
|
|
10061
|
-
return
|
|
10061
|
+
return Fe.forEach((Me) => {
|
|
10062
10062
|
var Te, De;
|
|
10063
10063
|
const Qe = Je((Te = Me == null ? void 0 : Me.cellrange) == null ? void 0 : Te.row), je = Je((De = Me == null ? void 0 : Me.cellrange) == null ? void 0 : De.column);
|
|
10064
10064
|
if (!Qe || !je) {
|
|
@@ -10085,16 +10085,16 @@ const KV = (e, t) => {
|
|
|
10085
10085
|
});
|
|
10086
10086
|
}), Ue;
|
|
10087
10087
|
};
|
|
10088
|
-
w.luckysheet_alternateformat_save =
|
|
10088
|
+
w.luckysheet_alternateformat_save = Re(
|
|
10089
10089
|
w.luckysheet_alternateformat_save
|
|
10090
10090
|
);
|
|
10091
10091
|
}
|
|
10092
|
-
if (D == null || D.forEach((
|
|
10093
|
-
|
|
10094
|
-
if (
|
|
10092
|
+
if (D == null || D.forEach((Re) => {
|
|
10093
|
+
Re.forEach((Fe) => {
|
|
10094
|
+
if (Fe && Fe.f) {
|
|
10095
10095
|
const Je = w.name || "";
|
|
10096
|
-
|
|
10097
|
-
|
|
10096
|
+
Fe.f = Gc(
|
|
10097
|
+
Fe.f,
|
|
10098
10098
|
Je,
|
|
10099
10099
|
Je,
|
|
10100
10100
|
{ colMap: de }
|
|
@@ -10102,7 +10102,7 @@ const KV = (e, t) => {
|
|
|
10102
10102
|
}
|
|
10103
10103
|
});
|
|
10104
10104
|
}), w.dataVerification) {
|
|
10105
|
-
const
|
|
10105
|
+
const Re = {}, Fe = (Je) => typeof Je != "string" || !/[A-Za-z]+\d/.test(Je) ? Je : Gc(
|
|
10106
10106
|
Je,
|
|
10107
10107
|
w.name || "",
|
|
10108
10108
|
w.name || "",
|
|
@@ -10113,46 +10113,46 @@ const KV = (e, t) => {
|
|
|
10113
10113
|
const we = (et = w.dataVerification) == null ? void 0 : et[Je], Ue = Je.split("_");
|
|
10114
10114
|
if (Ue.length !== 2) return;
|
|
10115
10115
|
const Me = parseInt(Ue[1], 10), Qe = de[Me] != null ? de[Me] : Me, je = we && { ...we };
|
|
10116
|
-
je && (je.value1 =
|
|
10117
|
-
}), w.dataVerification =
|
|
10116
|
+
je && (je.value1 = Fe(je.value1), je.value2 = Fe(je.value2), je.rangeTxt = Fe(je.rangeTxt)), Re[`${Ue[0]}_${Qe}`] = je;
|
|
10117
|
+
}), w.dataVerification = Re;
|
|
10118
10118
|
}
|
|
10119
10119
|
if (w.hyperlink) {
|
|
10120
|
-
const
|
|
10121
|
-
Object.keys(w.hyperlink).forEach((
|
|
10120
|
+
const Re = {};
|
|
10121
|
+
Object.keys(w.hyperlink).forEach((Fe) => {
|
|
10122
10122
|
var je;
|
|
10123
|
-
const Je = (je = w.hyperlink) == null ? void 0 : je[
|
|
10123
|
+
const Je = (je = w.hyperlink) == null ? void 0 : je[Fe];
|
|
10124
10124
|
if (!Je) return;
|
|
10125
|
-
const we =
|
|
10125
|
+
const we = Fe.split("_");
|
|
10126
10126
|
if (we.length !== 2) return;
|
|
10127
10127
|
const Ue = we[0], Me = parseInt(we[1], 10), Qe = de[Me] != null ? de[Me] : Me;
|
|
10128
|
-
|
|
10129
|
-
}), w.hyperlink =
|
|
10128
|
+
Re[`${Ue}_${Qe}`] = Je;
|
|
10129
|
+
}), w.hyperlink = Re;
|
|
10130
10130
|
}
|
|
10131
10131
|
const ie = ((Se = A[0]) == null ? void 0 : Se.length) ?? 0;
|
|
10132
|
-
for (let
|
|
10133
|
-
const
|
|
10134
|
-
if (
|
|
10132
|
+
for (let Re = 0; Re < A.length; Re += 1) {
|
|
10133
|
+
const Fe = A[Re];
|
|
10134
|
+
if (Fe)
|
|
10135
10135
|
for (let Je = ne; Je <= se && Je < ie; Je += 1) {
|
|
10136
|
-
const we =
|
|
10136
|
+
const we = Fe[Je];
|
|
10137
10137
|
if (!we) continue;
|
|
10138
|
-
!!((xe = w.hyperlink) != null && xe[`${
|
|
10138
|
+
!!((xe = w.hyperlink) != null && xe[`${Re}_${Je}`]) ? we.hl = { r: Re, c: Je, id: o.currentSheetId } : we.hl && delete we.hl;
|
|
10139
10139
|
}
|
|
10140
10140
|
}
|
|
10141
10141
|
N.commentBoxes = [], N.hoveredCommentBox = void 0, N.editingCommentBox = void 0;
|
|
10142
10142
|
const he = [];
|
|
10143
|
-
for (let
|
|
10144
|
-
const
|
|
10145
|
-
if (
|
|
10146
|
-
for (let Je = 0; Je <
|
|
10147
|
-
(fe =
|
|
10143
|
+
for (let Re = 0; Re < A.length; Re += 1) {
|
|
10144
|
+
const Fe = A[Re];
|
|
10145
|
+
if (Fe)
|
|
10146
|
+
for (let Je = 0; Je < Fe.length; Je += 1)
|
|
10147
|
+
(fe = Fe[Je]) != null && fe.f && he.push({ r: Re, c: Je, id: o.currentSheetId });
|
|
10148
10148
|
}
|
|
10149
10149
|
w.calcChain = he;
|
|
10150
10150
|
const oe = [];
|
|
10151
|
-
for (let
|
|
10152
|
-
const
|
|
10153
|
-
if (
|
|
10154
|
-
for (let Je = 0; Je <
|
|
10155
|
-
(Le =
|
|
10151
|
+
for (let Re = 0; Re < A.length; Re += 1) {
|
|
10152
|
+
const Fe = A[Re];
|
|
10153
|
+
if (Fe)
|
|
10154
|
+
for (let Je = 0; Je < Fe.length; Je += 1)
|
|
10155
|
+
(Le = Fe[Je]) != null && Le.f && oe.push({ r: Re, c: Je, i: o.currentSheetId });
|
|
10156
10156
|
}
|
|
10157
10157
|
oe.length > 0 && (N.formulaCache.depsByCell = /* @__PURE__ */ new Map(), N.formulaCache.revDepsByCell = /* @__PURE__ */ new Map(), N.formulaCache.execFunctionExist = oe, nd(
|
|
10158
10158
|
N,
|
|
@@ -10802,7 +10802,7 @@ const KV = (e, t) => {
|
|
|
10802
10802
|
g.pageY
|
|
10803
10803
|
), T = ((E = (B = (x = o.luckysheet_select_save) == null ? void 0 : x[0]) == null ? void 0 : B.row) == null ? void 0 : E[0]) || 0, J = Ne(o, o.currentSheetId);
|
|
10804
10804
|
J != null && T >= 0 && Number.isFinite(v) && v >= 0 && d((N) => {
|
|
10805
|
-
var P, ee, ce, re, Ie, pe, We, Se, xe, fe, Le, ke,
|
|
10805
|
+
var P, ee, ce, re, Ie, pe, We, Se, xe, fe, Le, ke, Re, Fe;
|
|
10806
10806
|
const w = N.luckysheetfile[J];
|
|
10807
10807
|
if (!(w != null && w.data)) return;
|
|
10808
10808
|
const A = w.data;
|
|
@@ -10901,11 +10901,11 @@ const KV = (e, t) => {
|
|
|
10901
10901
|
return;
|
|
10902
10902
|
}
|
|
10903
10903
|
const Ke = [];
|
|
10904
|
-
for (let
|
|
10905
|
-
Ke.push(de[
|
|
10906
|
-
Ke.sort((
|
|
10904
|
+
for (let Ce = Gt; Ce <= Pe; Ce += 1)
|
|
10905
|
+
Ke.push(de[Ce] != null ? de[Ce] : Ce);
|
|
10906
|
+
Ke.sort((Ce, Ae) => Ce - Ae), Me(Ke).forEach(([Ce, Ae]) => {
|
|
10907
10907
|
et.push({
|
|
10908
|
-
row: [
|
|
10908
|
+
row: [Ce, Ae],
|
|
10909
10909
|
column: [Te, De]
|
|
10910
10910
|
});
|
|
10911
10911
|
});
|
|
@@ -10952,14 +10952,14 @@ const KV = (e, t) => {
|
|
|
10952
10952
|
return;
|
|
10953
10953
|
}
|
|
10954
10954
|
const Te = [];
|
|
10955
|
-
for (let
|
|
10956
|
-
Te.push(de[
|
|
10957
|
-
Te.sort((
|
|
10955
|
+
for (let Ce = tt; Ce <= Zt; Ce += 1)
|
|
10956
|
+
Te.push(de[Ce] != null ? de[Ce] : Ce);
|
|
10957
|
+
Te.sort((Ce, Ae) => Ce - Ae), Me(Te).forEach(([Ce, Ae]) => {
|
|
10958
10958
|
Qe.push({
|
|
10959
10959
|
...je,
|
|
10960
10960
|
cellrange: {
|
|
10961
10961
|
...je.cellrange || {},
|
|
10962
|
-
row: [
|
|
10962
|
+
row: [Ce, Ae],
|
|
10963
10963
|
column: [Gt, Pe]
|
|
10964
10964
|
}
|
|
10965
10965
|
});
|
|
@@ -11056,10 +11056,10 @@ const KV = (e, t) => {
|
|
|
11056
11056
|
k,
|
|
11057
11057
|
ne,
|
|
11058
11058
|
0,
|
|
11059
|
-
Math.max(0, (((
|
|
11059
|
+
Math.max(0, (((Re = A[0]) == null ? void 0 : Re.length) ?? 1) - 1),
|
|
11060
11060
|
te
|
|
11061
11061
|
);
|
|
11062
|
-
const H = ((
|
|
11062
|
+
const H = ((Fe = D == null ? void 0 : D[0]) == null ? void 0 : Fe.length) || 0, C = Math.max(0, H - 1);
|
|
11063
11063
|
Al(
|
|
11064
11064
|
N,
|
|
11065
11065
|
[
|
|
@@ -14336,8 +14336,8 @@ function o9(e, t, l) {
|
|
|
14336
14336
|
]);
|
|
14337
14337
|
}
|
|
14338
14338
|
const a9 = () => {
|
|
14339
|
-
var
|
|
14340
|
-
const { context: e, setContext: t, refs: l } = mt(yt), i = Ye(null), n = Ye(null), c = Ia(e.luckysheetCellUpdate), a = Ia(e.currentSheetId), [o, d] = Xe(!1), [u, r] = Xe(!1), [m, h] = Xe(""), [b, Z] = Xe(""), [y, V] = Xe(!1), Y = Ye(null), [I, G] = Xe({ left: 0, top: 0 }), p = (
|
|
14339
|
+
var Ce, Ae, lt, it, rt, Wt, It, Et, Mt, jt, Yl, Li, Zi, Gl, On, ao, ro, Qh, Ah;
|
|
14340
|
+
const { context: e, setContext: t, refs: l } = mt(yt), i = Ye(null), n = Ye(null), c = Ia(e.luckysheetCellUpdate), a = Ia(e.currentSheetId), [o, d] = Xe(!1), [u, r] = Xe(!1), [m, h] = Xe(""), [b, Z] = Xe(""), [y, V] = Xe(!1), Y = Ye(null), [I, G] = Xe({ left: 0, top: 0 }), p = (Ce = e.luckysheet_select_save) == null ? void 0 : Ce[0], [W, f] = Xe(
|
|
14341
14341
|
{}
|
|
14342
14342
|
), [S, X] = Xe(0), [K, j] = Xe(!1), U = localStorage.getItem("formulaMore") === "true", [M, g] = Xe(!U), [R, x] = Xe(!1), B = Ye(null), [E, v] = Xe(0), [T, J] = Xe(!1), N = p == null ? void 0 : p.row_focus, w = p == null ? void 0 : p.column_focus, A = o9(
|
|
14343
14343
|
e,
|
|
@@ -14367,8 +14367,8 @@ const a9 = () => {
|
|
|
14367
14367
|
), be = () => {
|
|
14368
14368
|
const Ge = i.current;
|
|
14369
14369
|
if (!Ge) return;
|
|
14370
|
-
const
|
|
14371
|
-
(!
|
|
14370
|
+
const ve = Ge.textContent;
|
|
14371
|
+
(!ve || ve === te) && (Ge.innerHTML = te, po(Ge));
|
|
14372
14372
|
}, ie = () => {
|
|
14373
14373
|
localStorage.setItem("formulaMore", String(M)), g(!M);
|
|
14374
14374
|
};
|
|
@@ -14383,8 +14383,8 @@ const a9 = () => {
|
|
|
14383
14383
|
const he = ge(
|
|
14384
14384
|
(Ge) => {
|
|
14385
14385
|
if (!le) return;
|
|
14386
|
-
const
|
|
14387
|
-
(
|
|
14386
|
+
const ve = B.current;
|
|
14387
|
+
(ve == null ? void 0 : ve.cellKey) === le && Math.abs(ve.top - Ge) < 1 || (B.current = {
|
|
14388
14388
|
cellKey: le,
|
|
14389
14389
|
top: Ge
|
|
14390
14390
|
});
|
|
@@ -14398,7 +14398,7 @@ const a9 = () => {
|
|
|
14398
14398
|
).querySelectorAll("span"), _e = Oe[Oe.length - 1];
|
|
14399
14399
|
return _e == null ? void 0 : _e.innerText;
|
|
14400
14400
|
}, H = st(() => {
|
|
14401
|
-
var Ge,
|
|
14401
|
+
var Ge, ve;
|
|
14402
14402
|
if (W && e.luckysheetCellUpdate.length > 0) {
|
|
14403
14403
|
const Oe = Ee(e);
|
|
14404
14404
|
if (!Oe) return {};
|
|
@@ -14418,7 +14418,7 @@ const a9 = () => {
|
|
|
14418
14418
|
color: void 0,
|
|
14419
14419
|
borderBottom: void 0,
|
|
14420
14420
|
textDecoration: void 0
|
|
14421
|
-
}), ((
|
|
14421
|
+
}), ((ve = $e == null ? void 0 : $e.ct) == null ? void 0 : ve.t) === "d" && (_e == null ? void 0 : _e.textAlign) == null && !K && (_e = { ..._e, textAlign: "right" }), K && (_e = { ..._e, textAlign: "left" }), _e;
|
|
14422
14422
|
}
|
|
14423
14423
|
return {};
|
|
14424
14424
|
}, [
|
|
@@ -14430,7 +14430,7 @@ const a9 = () => {
|
|
|
14430
14430
|
K
|
|
14431
14431
|
]);
|
|
14432
14432
|
yl(() => {
|
|
14433
|
-
var Ge,
|
|
14433
|
+
var Ge, ve, Oe, _e, $e, Xt;
|
|
14434
14434
|
if (e.allowEdit || t((Yt) => {
|
|
14435
14435
|
const at = Ee(Yt);
|
|
14436
14436
|
if (!_.isNil(at) && Yt.forceFormulaRef) {
|
|
@@ -14447,7 +14447,7 @@ const a9 = () => {
|
|
|
14447
14447
|
), delete l.globalCache.doNotFocus;
|
|
14448
14448
|
return;
|
|
14449
14449
|
}
|
|
14450
|
-
const Ct = Ee(e), ft = (Ge = Ct == null ? void 0 : Ct[N]) == null ? void 0 : Ge[w], nl = ft != null && ft.f && typeof (ft == null ? void 0 : ft._formulaEditHtml) == "string" ? ft._formulaEditHtml : "", wt = (_e = (Oe = (
|
|
14450
|
+
const Ct = Ee(e), ft = (Ge = Ct == null ? void 0 : Ct[N]) == null ? void 0 : Ge[w], nl = ft != null && ft.f && typeof (ft == null ? void 0 : ft._formulaEditHtml) == "string" ? ft._formulaEditHtml : "", wt = (_e = (Oe = (ve = ft == null ? void 0 : ft.ct) == null ? void 0 : ve.s) == null ? void 0 : Oe[0]) == null ? void 0 : _e.v, Ft = !!(ft != null && ft.f) && typeof wt == "string" && /[\r\n]/.test(wt), Pt = typeof nl == "string" && nl.length > 0 && !/<br\s*\/?>/i.test(nl), ul = Ft && Pt, ct = (($e = ft == null ? void 0 : ft.ct) == null ? void 0 : $e.t) === "inlineStr" && Array.isArray(ft.ct.s) && ft.ct.s.some(
|
|
14451
14451
|
(ml) => {
|
|
14452
14452
|
var Wl, Ri;
|
|
14453
14453
|
return !!((Wl = ml == null ? void 0 : ml.link) != null && Wl.linkType) && !!((Ri = ml == null ? void 0 : ml.link) != null && Ri.linkAddress);
|
|
@@ -14492,7 +14492,7 @@ const a9 = () => {
|
|
|
14492
14492
|
if (_.isEmpty(e.luckysheetCellUpdate) || !l.cellInput.current)
|
|
14493
14493
|
return;
|
|
14494
14494
|
P.current = null;
|
|
14495
|
-
const Ge = l.cellInput.current,
|
|
14495
|
+
const Ge = l.cellInput.current, ve = () => {
|
|
14496
14496
|
var nl;
|
|
14497
14497
|
ee.current = 0;
|
|
14498
14498
|
const _e = C.current, $e = l.cellInput.current;
|
|
@@ -14533,7 +14533,7 @@ const a9 = () => {
|
|
|
14533
14533
|
Ge,
|
|
14534
14534
|
l.globalCache
|
|
14535
14535
|
), ee.current && cancelAnimationFrame(ee.current), ee.current = requestAnimationFrame(
|
|
14536
|
-
|
|
14536
|
+
ve
|
|
14537
14537
|
);
|
|
14538
14538
|
};
|
|
14539
14539
|
return document.addEventListener("selectionchange", Oe), Oe(), () => {
|
|
@@ -14565,16 +14565,16 @@ const a9 = () => {
|
|
|
14565
14565
|
}, [(it = e.rangeDialog) == null ? void 0 : it.show, e.luckysheetCellUpdate]), Ve(() => {
|
|
14566
14566
|
if (!e.formulaCache.refocusFormulaEditorAfterSheetSwitch || e.luckysheetCellUpdate.length === 0 || tl(e) === "fx") return;
|
|
14567
14567
|
const Ge = l.cellInput.current;
|
|
14568
|
-
Ge && (t((
|
|
14569
|
-
|
|
14568
|
+
Ge && (t((ve) => {
|
|
14569
|
+
ve.formulaCache.refocusFormulaEditorAfterSheetSwitch = !1;
|
|
14570
14570
|
}), requestAnimationFrame(() => {
|
|
14571
14571
|
var Oe;
|
|
14572
14572
|
Ge.focus({ preventScroll: !0 });
|
|
14573
|
-
const
|
|
14573
|
+
const ve = Ge.querySelector(
|
|
14574
14574
|
"span.fortune-formula-functionrange-cell"
|
|
14575
14575
|
);
|
|
14576
|
-
if (
|
|
14577
|
-
const _e = window.getSelection(), $e =
|
|
14576
|
+
if (ve) {
|
|
14577
|
+
const _e = window.getSelection(), $e = ve.firstChild && ve.firstChild.nodeType === Node.TEXT_NODE ? ve.firstChild : null;
|
|
14578
14578
|
if (_e && $e) {
|
|
14579
14579
|
const Xt = document.createRange();
|
|
14580
14580
|
Xt.setStart(
|
|
@@ -14603,15 +14603,15 @@ const a9 = () => {
|
|
|
14603
14603
|
[]
|
|
14604
14604
|
), re = ge(
|
|
14605
14605
|
(Ge) => {
|
|
14606
|
-
const
|
|
14607
|
-
if (!
|
|
14606
|
+
const ve = i.current;
|
|
14607
|
+
if (!ve) return;
|
|
14608
14608
|
const Oe = document.getElementById(
|
|
14609
14609
|
"luckysheet-functionbox-cell"
|
|
14610
14610
|
), { text: _e, caretOffset: $e } = oh(
|
|
14611
|
-
|
|
14611
|
+
ve,
|
|
14612
14612
|
Ge
|
|
14613
14613
|
), Xt = ki(_e), Yt = Q(Xt), at = ue(Yt) ? Mn(Yt) : cn(Yt);
|
|
14614
|
-
|
|
14614
|
+
ve.innerHTML = at, Oe && (Oe.innerHTML = at), Xd(ve, $e), x(ss(ve)), t((pt) => {
|
|
14615
14615
|
pt.functionCandidates = [], pt.defaultCandidates = [], pt.functionHint = (Ge || "").toUpperCase();
|
|
14616
14616
|
});
|
|
14617
14617
|
},
|
|
@@ -14622,10 +14622,10 @@ const a9 = () => {
|
|
|
14622
14622
|
}, [ce]), pe = ge(
|
|
14623
14623
|
(Ge) => {
|
|
14624
14624
|
var _e, $e;
|
|
14625
|
-
const
|
|
14625
|
+
const ve = ($e = (_e = ce()) == null ? void 0 : _e.querySelector(
|
|
14626
14626
|
".luckysheet-formula-search-func"
|
|
14627
14627
|
)) == null ? void 0 : $e.textContent, Oe = oe();
|
|
14628
|
-
|
|
14628
|
+
ve && !Iu(Oe) && (re(ve), Ge.preventDefault(), Ge.stopPropagation());
|
|
14629
14629
|
},
|
|
14630
14630
|
[ce, re]
|
|
14631
14631
|
), We = ge(
|
|
@@ -14633,34 +14633,34 @@ const a9 = () => {
|
|
|
14633
14633
|
var _e, $e;
|
|
14634
14634
|
if ($.current || !i.current || Ge.target.className.includes("sign-fortune")) return;
|
|
14635
14635
|
z.current = i.current.innerText;
|
|
14636
|
-
const
|
|
14636
|
+
const ve = ($e = (_e = ce()) == null ? void 0 : _e.querySelector(
|
|
14637
14637
|
".luckysheet-formula-search-func"
|
|
14638
14638
|
)) == null ? void 0 : $e.textContent, Oe = oe();
|
|
14639
|
-
|
|
14639
|
+
ve && !Iu(Oe) && (re(ve), Ge.preventDefault(), Ge.stopPropagation());
|
|
14640
14640
|
},
|
|
14641
14641
|
[ce, re]
|
|
14642
14642
|
), Se = (Ge) => {
|
|
14643
14643
|
Ge.stopPropagation(), Ge.preventDefault();
|
|
14644
14644
|
}, xe = st(() => {
|
|
14645
14645
|
var Oe, _e, $e, Xt;
|
|
14646
|
-
const Ge = e.formulaCache.func_selectedrange,
|
|
14646
|
+
const Ge = e.formulaCache.func_selectedrange, ve = e.formulaCache.formulaKeyboardRefSync === !0;
|
|
14647
14647
|
return Ge ? [
|
|
14648
|
-
|
|
14648
|
+
ve ? "1" : "0",
|
|
14649
14649
|
(Oe = Ge.row) == null ? void 0 : Oe[0],
|
|
14650
14650
|
(_e = Ge.row) == null ? void 0 : _e[1],
|
|
14651
14651
|
($e = Ge.column) == null ? void 0 : $e[0],
|
|
14652
14652
|
(Xt = Ge.column) == null ? void 0 : Xt[1],
|
|
14653
14653
|
Ge.left_move,
|
|
14654
14654
|
Ge.top_move
|
|
14655
|
-
].join(":") :
|
|
14655
|
+
].join(":") : ve ? "kb" : "";
|
|
14656
14656
|
}, [
|
|
14657
14657
|
e.formulaCache.func_selectedrange,
|
|
14658
14658
|
e.formulaCache.formulaKeyboardRefSync
|
|
14659
14659
|
]);
|
|
14660
14660
|
Ve(() => {
|
|
14661
|
-
var
|
|
14661
|
+
var ve;
|
|
14662
14662
|
const Ge = l.cellInput.current;
|
|
14663
|
-
!((
|
|
14663
|
+
!((ve = e.luckysheet_select_save) != null && ve[0]) || !Ge || t((Oe) => {
|
|
14664
14664
|
var ft, nl, wt, Ft;
|
|
14665
14665
|
const _e = (ft = Oe.luckysheet_select_save) == null ? void 0 : ft[Oe.luckysheet_select_save.length - 1];
|
|
14666
14666
|
if (!_e || tl(Oe) === "fx")
|
|
@@ -14721,7 +14721,7 @@ const a9 = () => {
|
|
|
14721
14721
|
const fe = ge(
|
|
14722
14722
|
(Ge) => {
|
|
14723
14723
|
var ft, nl, wt, Ft, Pt, ul;
|
|
14724
|
-
const
|
|
14724
|
+
const ve = () => {
|
|
14725
14725
|
var Wl, Ri, Fs, Ns;
|
|
14726
14726
|
const ct = i.current;
|
|
14727
14727
|
if (!ct) return !1;
|
|
@@ -14774,7 +14774,7 @@ const a9 = () => {
|
|
|
14774
14774
|
const Ri = document.createRange();
|
|
14775
14775
|
return Ri.setStart(Dt, 1), Ri.collapse(!0), dt.removeAllRanges(), dt.addRange(Ri), !0;
|
|
14776
14776
|
};
|
|
14777
|
-
!Ge.metaKey && !Ge.ctrlKey && !Ge.altKey && Ge.key.length === 1 &&
|
|
14777
|
+
!Ge.metaKey && !Ge.ctrlKey && !Ge.altKey && Ge.key.length === 1 && ve(), t((ct) => {
|
|
14778
14778
|
Dl(ct, "cell");
|
|
14779
14779
|
}), n.current = new KeyboardEvent(Ge.type, Ge.nativeEvent), ya(Ge.nativeEvent) || ne(), !Ge.metaKey && !Ge.ctrlKey && !Ge.altKey && (Ge.key.length === 1 || Ge.key === "Backspace" || Ge.key === "Delete" || Ge.key === "Enter" || Ge.key === "Tab") && requestAnimationFrame(() => {
|
|
14780
14780
|
requestAnimationFrame(() => {
|
|
@@ -14924,7 +14924,7 @@ const a9 = () => {
|
|
|
14924
14924
|
Ge.preventDefault(), de.current("commit", {
|
|
14925
14925
|
preserveCaret: !0,
|
|
14926
14926
|
deferCaretRestore: !1
|
|
14927
|
-
}),
|
|
14927
|
+
}), ve(), Oe() || (document.execCommand("insertHTML", !1, `
|
|
14928
14928
|
`), document.execCommand("delete", !1)), Ge.stopPropagation();
|
|
14929
14929
|
else {
|
|
14930
14930
|
if ((Ge.ctrlKey || Ge.metaKey) && !Ge.shiftKey)
|
|
@@ -14985,8 +14985,8 @@ const a9 = () => {
|
|
|
14985
14985
|
]
|
|
14986
14986
|
);
|
|
14987
14987
|
ge((Ge) => {
|
|
14988
|
-
const
|
|
14989
|
-
if (
|
|
14988
|
+
const ve = Ge.nativeEvent;
|
|
14989
|
+
if (ve != null && ve.isComposing || !ve || ve.inputType !== "insertText" || !ve.data) return;
|
|
14990
14990
|
const Oe = i.current;
|
|
14991
14991
|
if (!Oe) return;
|
|
14992
14992
|
const _e = window.getSelection();
|
|
@@ -15018,19 +15018,19 @@ const a9 = () => {
|
|
|
15018
15018
|
}, []);
|
|
15019
15019
|
const Le = () => {
|
|
15020
15020
|
var $e, Xt, Yt, at;
|
|
15021
|
-
const Ge = ($e = document.getElementsByClassName("fx-search")) == null ? void 0 : $e[0],
|
|
15022
|
-
Ge && (Ge.style.display = "none"),
|
|
15021
|
+
const Ge = ($e = document.getElementsByClassName("fx-search")) == null ? void 0 : $e[0], ve = (Xt = document.getElementsByClassName("cell-search")) == null ? void 0 : Xt[0];
|
|
15022
|
+
Ge && (Ge.style.display = "none"), ve && (ve.style.display = "block");
|
|
15023
15023
|
const Oe = (Yt = document.getElementsByClassName("fx-hint")) == null ? void 0 : Yt[0], _e = (at = document.getElementsByClassName("cell-hint")) == null ? void 0 : at[0];
|
|
15024
15024
|
Oe && (Oe.style.display = "none"), _e && (_e.style.display = "block");
|
|
15025
15025
|
}, ke = ge(
|
|
15026
|
-
(Ge = "space",
|
|
15026
|
+
(Ge = "space", ve) => {
|
|
15027
15027
|
const Oe = i.current;
|
|
15028
15028
|
if (!Oe) return;
|
|
15029
15029
|
const _e = Oe.innerText ?? "";
|
|
15030
15030
|
if (_e.trimStart().startsWith("=")) return;
|
|
15031
15031
|
const $e = _e.replace(/\r\n/g, `
|
|
15032
15032
|
`).replace(/\r/g, `
|
|
15033
|
-
`), Xt = (
|
|
15033
|
+
`), Xt = (ve == null ? void 0 : ve.preserveCaret) !== !1, Yt = (ve == null ? void 0 : ve.deferCaretRestore) !== !1, at = [], pt = window.getSelection();
|
|
15034
15034
|
if (pt != null && pt.rangeCount && pt.focusNode && Oe.contains(pt.focusNode)) {
|
|
15035
15035
|
const Ft = pt.getRangeAt(0);
|
|
15036
15036
|
if (Ft.collapsed) {
|
|
@@ -15100,8 +15100,8 @@ const a9 = () => {
|
|
|
15100
15100
|
[]
|
|
15101
15101
|
);
|
|
15102
15102
|
de.current = ke;
|
|
15103
|
-
const
|
|
15104
|
-
(Ge,
|
|
15103
|
+
const Re = ge(
|
|
15104
|
+
(Ge, ve) => {
|
|
15105
15105
|
var Xt, Yt;
|
|
15106
15106
|
if (e.isFlvReadOnly) return;
|
|
15107
15107
|
Le(), (Yt = (Xt = i.current) == null ? void 0 : Xt.innerText) == null || Yt.trim();
|
|
@@ -15119,7 +15119,7 @@ const a9 = () => {
|
|
|
15119
15119
|
}
|
|
15120
15120
|
const _e = n.current;
|
|
15121
15121
|
if (!_e) {
|
|
15122
|
-
|
|
15122
|
+
ve && de.current("commit");
|
|
15123
15123
|
const at = l.cellInput.current;
|
|
15124
15124
|
at && ue(at.innerText ?? at.textContent ?? "") && t(
|
|
15125
15125
|
(pt) => {
|
|
@@ -15134,7 +15134,7 @@ const a9 = () => {
|
|
|
15134
15134
|
const $e = _e.keyCode;
|
|
15135
15135
|
$e && ((!($e >= 112 && $e <= 123 || $e <= 46 || $e === 144 || $e === 108 || _e.ctrlKey || _e.altKey || _e.shiftKey && ($e === 37 || $e === 38 || $e === 39 || $e === 40)) || $e === 8 || $e === 32 || $e === 46 || _e.ctrlKey && $e === 86) && t(
|
|
15136
15136
|
(at) => {
|
|
15137
|
-
if ((at.formulaCache.rangestart || at.formulaCache.rangedrag_column_start || at.formulaCache.rangedrag_row_start || xl(at)) &&
|
|
15137
|
+
if ((at.formulaCache.rangestart || at.formulaCache.rangedrag_column_start || at.formulaCache.rangedrag_row_start || xl(at)) && ve || !Ht(at, at.luckysheet_select_save))
|
|
15138
15138
|
return;
|
|
15139
15139
|
hn(
|
|
15140
15140
|
at,
|
|
@@ -15160,10 +15160,10 @@ const a9 = () => {
|
|
|
15160
15160
|
se,
|
|
15161
15161
|
ke
|
|
15162
15162
|
]
|
|
15163
|
-
),
|
|
15163
|
+
), Fe = ge(
|
|
15164
15164
|
(Ge) => {
|
|
15165
|
-
const
|
|
15166
|
-
Ge.preventDefault(), !_.isEmpty(e.luckysheetCellUpdate) && document.execCommand("insertText", !1,
|
|
15165
|
+
const ve = Ge.clipboardData.getData("text/plain");
|
|
15166
|
+
Ge.preventDefault(), !_.isEmpty(e.luckysheetCellUpdate) && document.execCommand("insertText", !1, ve);
|
|
15167
15167
|
},
|
|
15168
15168
|
[e.luckysheetCellUpdate]
|
|
15169
15169
|
), Je = ge(
|
|
@@ -15171,7 +15171,7 @@ const a9 = () => {
|
|
|
15171
15171
|
var _e;
|
|
15172
15172
|
if (_.isEmpty(e.luckysheetCellUpdate)) return;
|
|
15173
15173
|
Ge.preventDefault();
|
|
15174
|
-
const
|
|
15174
|
+
const ve = window.getSelection(), Oe = ve && !ve.isCollapsed ? ve.toString() : Ge.currentTarget.innerText;
|
|
15175
15175
|
(_e = navigator.clipboard) == null || _e.writeText(Oe).catch(() => {
|
|
15176
15176
|
});
|
|
15177
15177
|
},
|
|
@@ -15182,8 +15182,8 @@ const a9 = () => {
|
|
|
15182
15182
|
Oe.linkCard = void 0;
|
|
15183
15183
|
}), !Qe || o || e.luckysheetCellUpdate.length === 0)
|
|
15184
15184
|
return;
|
|
15185
|
-
const
|
|
15186
|
-
|
|
15185
|
+
const ve = l.cellInput.current;
|
|
15186
|
+
ve && (ve.contains(Ge.target) || (Ge.preventDefault(), ve.focus({ preventScroll: !0 }), po(ve), t((Oe) => {
|
|
15187
15187
|
Dl(Oe, "cell");
|
|
15188
15188
|
})));
|
|
15189
15189
|
},
|
|
@@ -15214,7 +15214,7 @@ const a9 = () => {
|
|
|
15214
15214
|
zIndex: _.isEmpty(e.luckysheetCellUpdate) ? -1 : 14,
|
|
15215
15215
|
display: "block"
|
|
15216
15216
|
};
|
|
15217
|
-
const
|
|
15217
|
+
const ve = Ge.getBoundingClientRect(), Oe = ve.left + (p.left || 0) - e.scrollLeft, _e = ve.top + (p.top || 0) - e.scrollTop;
|
|
15218
15218
|
return {
|
|
15219
15219
|
left: Oe,
|
|
15220
15220
|
top: _e,
|
|
@@ -15235,9 +15235,9 @@ const a9 = () => {
|
|
|
15235
15235
|
Ve(() => {
|
|
15236
15236
|
var Ge;
|
|
15237
15237
|
if (p && !((Ge = e.rangeDialog) != null && Ge.show) && !u && !_.isEmpty(e.luckysheetCellUpdate)) {
|
|
15238
|
-
const
|
|
15239
|
-
if (
|
|
15240
|
-
const Oe =
|
|
15238
|
+
const ve = l.cellArea.current;
|
|
15239
|
+
if (ve) {
|
|
15240
|
+
const Oe = ve.getBoundingClientRect(), _e = Oe.left + (p.left || 0) - e.scrollLeft, $e = Oe.top + (p.top || 0) - e.scrollTop;
|
|
15241
15241
|
G({ left: _e, top: $e }), r(!0);
|
|
15242
15242
|
}
|
|
15243
15243
|
}
|
|
@@ -15259,11 +15259,11 @@ const a9 = () => {
|
|
|
15259
15259
|
const $e = p.row_focus || 0, Xt = p.column_focus || 0;
|
|
15260
15260
|
return `${di(Xt)}${$e + 1}`;
|
|
15261
15261
|
}
|
|
15262
|
-
const [Ge,
|
|
15262
|
+
const [Ge, ve] = e.luckysheetCellUpdate, Oe = `${di(ve)}${Ge + 1}`, _e = e.formulaCache.rangetosheet;
|
|
15263
15263
|
return _e && _e !== e.currentSheetId && ri(
|
|
15264
15264
|
e,
|
|
15265
15265
|
_e,
|
|
15266
|
-
{ row: [Ge, Ge], column: [
|
|
15266
|
+
{ row: [Ge, Ge], column: [ve, ve] },
|
|
15267
15267
|
e.currentSheetId
|
|
15268
15268
|
) || Oe;
|
|
15269
15269
|
}, [
|
|
@@ -15301,16 +15301,16 @@ const a9 = () => {
|
|
|
15301
15301
|
c,
|
|
15302
15302
|
Zt
|
|
15303
15303
|
]), Ve(() => {
|
|
15304
|
-
const Ge = (
|
|
15305
|
-
|
|
15304
|
+
const Ge = (ve) => {
|
|
15305
|
+
ve.key === "F10" && (ve.preventDefault(), ie());
|
|
15306
15306
|
};
|
|
15307
15307
|
return window.addEventListener("keydown", Ge), () => {
|
|
15308
15308
|
window.removeEventListener("keydown", Ge);
|
|
15309
15309
|
};
|
|
15310
15310
|
}, [M]), yl(() => {
|
|
15311
15311
|
var at;
|
|
15312
|
-
const Ge = e.linkCard,
|
|
15313
|
-
if (!(Ge != null && Ge.applyToSelection) || !(Ge != null && Ge.selectionOffsets) || !
|
|
15312
|
+
const Ge = e.linkCard, ve = ((at = e.luckysheetCellUpdate) == null ? void 0 : at.length) === 2 && Ge && e.luckysheetCellUpdate[0] === Ge.r && e.luckysheetCellUpdate[1] === Ge.c;
|
|
15313
|
+
if (!(Ge != null && Ge.applyToSelection) || !(Ge != null && Ge.selectionOffsets) || !ve || !i.current || !Ze.current) {
|
|
15314
15314
|
ye([]);
|
|
15315
15315
|
return;
|
|
15316
15316
|
}
|
|
@@ -15329,8 +15329,8 @@ const a9 = () => {
|
|
|
15329
15329
|
e.luckysheetCellUpdate
|
|
15330
15330
|
]), Ve(() => {
|
|
15331
15331
|
if (!(((c == null ? void 0 : c.length) ?? 0) === 0 && e.luckysheetCellUpdate.length === 2)) return;
|
|
15332
|
-
const [
|
|
15333
|
-
!_e || _e.isEditing || _e.r !==
|
|
15332
|
+
const [ve, Oe] = e.luckysheetCellUpdate, _e = e.linkCard;
|
|
15333
|
+
!_e || _e.isEditing || _e.r !== ve || _e.c !== Oe || t(($e) => {
|
|
15334
15334
|
$e.linkCard && !$e.linkCard.isEditing && ($e.linkCard = void 0);
|
|
15335
15335
|
});
|
|
15336
15336
|
}, [
|
|
@@ -15340,8 +15340,8 @@ const a9 = () => {
|
|
|
15340
15340
|
t
|
|
15341
15341
|
]), yl(() => {
|
|
15342
15342
|
var at;
|
|
15343
|
-
const Ge = e.linkCard,
|
|
15344
|
-
if (!(Ge != null && Ge.isEditing) || !(Ge != null && Ge.applyToSelection) || !(Ge != null && Ge.selectionOffsets) || !
|
|
15343
|
+
const Ge = e.linkCard, ve = ((at = e.luckysheetCellUpdate) == null ? void 0 : at.length) === 2 && Ge && e.luckysheetCellUpdate[0] === Ge.r && e.luckysheetCellUpdate[1] === Ge.c;
|
|
15344
|
+
if (!(Ge != null && Ge.isEditing) || !(Ge != null && Ge.applyToSelection) || !(Ge != null && Ge.selectionOffsets) || !ve || !i.current) {
|
|
15345
15345
|
D.current = null;
|
|
15346
15346
|
return;
|
|
15347
15347
|
}
|
|
@@ -15382,8 +15382,8 @@ const a9 = () => {
|
|
|
15382
15382
|
J(!1);
|
|
15383
15383
|
return;
|
|
15384
15384
|
}
|
|
15385
|
-
const
|
|
15386
|
-
J(
|
|
15385
|
+
const ve = e9(i.current);
|
|
15386
|
+
J(ve + Tb > Ge);
|
|
15387
15387
|
}, [
|
|
15388
15388
|
E,
|
|
15389
15389
|
e.luckysheetCellUpdate.length,
|
|
@@ -15395,15 +15395,15 @@ const a9 = () => {
|
|
|
15395
15395
|
return b !== Ge && Z(Ge), Zt ? Ge : m || Ge;
|
|
15396
15396
|
}, Pe = ge(() => {
|
|
15397
15397
|
const Ge = i.current;
|
|
15398
|
-
Ge && t((
|
|
15399
|
-
if (
|
|
15398
|
+
Ge && t((ve) => {
|
|
15399
|
+
if (ve.luckysheetCellUpdate.length === 0 || tl(ve) !== "cell" || !Ht(ve, ve.luckysheet_select_save)) return;
|
|
15400
15400
|
const Oe = Ge.innerText ?? "";
|
|
15401
15401
|
if (ue(Oe)) {
|
|
15402
|
-
if (
|
|
15403
|
-
$t(
|
|
15402
|
+
if (ve.formulaCache.rangestart || ve.formulaCache.rangedrag_column_start || ve.formulaCache.rangedrag_row_start) {
|
|
15403
|
+
$t(ve, Ge);
|
|
15404
15404
|
return;
|
|
15405
15405
|
}
|
|
15406
|
-
|
|
15406
|
+
ve.formulaCache.selectingRangeIndex = -1, hl(ve, Ge.innerHTML), $t(ve, Ge);
|
|
15407
15407
|
}
|
|
15408
15408
|
});
|
|
15409
15409
|
}, [t]);
|
|
@@ -15414,11 +15414,11 @@ const a9 = () => {
|
|
|
15414
15414
|
);
|
|
15415
15415
|
const Te = ge(() => {
|
|
15416
15416
|
var _e, $e;
|
|
15417
|
-
const
|
|
15417
|
+
const ve = Q(
|
|
15418
15418
|
((_e = i == null ? void 0 : i.current) == null ? void 0 : _e.innerText) || ""
|
|
15419
15419
|
).trimStart();
|
|
15420
|
-
if (!ue(
|
|
15421
|
-
const Oe =
|
|
15420
|
+
if (!ue(ve)) return null;
|
|
15421
|
+
const Oe = ve.match(/^=([A-Za-z_][A-Za-z0-9_]*)\s*\(/);
|
|
15422
15422
|
if (Oe)
|
|
15423
15423
|
return Oe[1].toUpperCase();
|
|
15424
15424
|
if (i != null && i.current) {
|
|
@@ -15431,9 +15431,9 @@ const a9 = () => {
|
|
|
15431
15431
|
return null;
|
|
15432
15432
|
}, []), De = eG(i.current) ?? e.functionHint ?? Te(), Ke = De ? e.formulaCache.functionlistMap[De] : null, me = e.luckysheetCellUpdate.length > 0 && tl(e) === "cell";
|
|
15433
15433
|
return Ve(() => {
|
|
15434
|
-
var
|
|
15434
|
+
var ve;
|
|
15435
15435
|
if (!me) return;
|
|
15436
|
-
const Ge = (((
|
|
15436
|
+
const Ge = (((ve = i.current) == null ? void 0 : ve.innerText) || "").replace(/\u200b/g, "");
|
|
15437
15437
|
/=|\(|[A-Za-z]/.test(Ge);
|
|
15438
15438
|
}, [
|
|
15439
15439
|
me,
|
|
@@ -15449,8 +15449,8 @@ const a9 = () => {
|
|
|
15449
15449
|
id: "luckysheet-input-box",
|
|
15450
15450
|
style: et(),
|
|
15451
15451
|
onMouseDown: (Ge) => {
|
|
15452
|
-
Ge.stopPropagation(), e.linkCard && t((
|
|
15453
|
-
|
|
15452
|
+
Ge.stopPropagation(), e.linkCard && t((ve) => {
|
|
15453
|
+
ve.linkCard = void 0;
|
|
15454
15454
|
});
|
|
15455
15455
|
},
|
|
15456
15456
|
onMouseUp: (Ge) => Ge.stopPropagation(),
|
|
@@ -15483,8 +15483,8 @@ const a9 = () => {
|
|
|
15483
15483
|
onMouseDown: () => {
|
|
15484
15484
|
e.luckysheetCellUpdate.length === 0 && (l.globalCache.doNotUpdateCell = !0);
|
|
15485
15485
|
const Ge = i.current;
|
|
15486
|
-
Ge == null || Ge.focus({ preventScroll: !0 }), t((
|
|
15487
|
-
Dl(
|
|
15486
|
+
Ge == null || Ge.focus({ preventScroll: !0 }), t((ve) => {
|
|
15487
|
+
Dl(ve, "cell");
|
|
15488
15488
|
});
|
|
15489
15489
|
},
|
|
15490
15490
|
onCompositionStart: () => {
|
|
@@ -15498,25 +15498,25 @@ const a9 = () => {
|
|
|
15498
15498
|
$.current = !0;
|
|
15499
15499
|
return;
|
|
15500
15500
|
}
|
|
15501
|
-
be(), $.current = !1, v((
|
|
15501
|
+
be(), $.current = !1, v((ve) => ve + 1);
|
|
15502
15502
|
},
|
|
15503
15503
|
onMouseUp: () => {
|
|
15504
|
-
if (Le(), t((
|
|
15505
|
-
Dl(
|
|
15504
|
+
if (Le(), t((ve) => {
|
|
15505
|
+
Dl(ve, "cell");
|
|
15506
15506
|
}), x(
|
|
15507
15507
|
ss((i == null ? void 0 : i.current) ?? null)
|
|
15508
15508
|
), !$.current) {
|
|
15509
|
-
const
|
|
15509
|
+
const ve = cs(
|
|
15510
15510
|
i == null ? void 0 : i.current
|
|
15511
15511
|
);
|
|
15512
|
-
X(
|
|
15512
|
+
X(ve);
|
|
15513
15513
|
}
|
|
15514
15514
|
const Ge = i.current;
|
|
15515
|
-
Ge && t((
|
|
15515
|
+
Ge && t((ve) => {
|
|
15516
15516
|
var $e;
|
|
15517
|
-
if (
|
|
15517
|
+
if (ve.formulaCache.rangeSelectionActive !== !0) return;
|
|
15518
15518
|
const Oe = _a(Ge) !== null, _e = $a(Ge);
|
|
15519
|
-
(Oe || !_e) && (bs(
|
|
15519
|
+
(Oe || !_e) && (bs(ve), ($e = Ge.innerText) != null && $e.trim().startsWith("=") && (hl(ve, Ge.innerHTML), $t(ve, Ge)));
|
|
15520
15520
|
});
|
|
15521
15521
|
},
|
|
15522
15522
|
innerRef: (Ge) => {
|
|
@@ -15532,9 +15532,9 @@ const a9 = () => {
|
|
|
15532
15532
|
color: "inherit"
|
|
15533
15533
|
},
|
|
15534
15534
|
"aria-autocomplete": "list",
|
|
15535
|
-
onChange:
|
|
15535
|
+
onChange: Re,
|
|
15536
15536
|
onKeyDown: fe,
|
|
15537
|
-
onPaste:
|
|
15537
|
+
onPaste: Fe,
|
|
15538
15538
|
onCopy: Je,
|
|
15539
15539
|
onContextMenu: (Ge) => Ge.stopPropagation(),
|
|
15540
15540
|
allowEdit: Qe && !o && !e.isFlvReadOnly
|
|
@@ -15553,7 +15553,7 @@ const a9 = () => {
|
|
|
15553
15553
|
bottom: 0,
|
|
15554
15554
|
pointerEvents: "none"
|
|
15555
15555
|
},
|
|
15556
|
-
children: ae.map((Ge,
|
|
15556
|
+
children: ae.map((Ge, ve) => /* @__PURE__ */ s.jsx(
|
|
15557
15557
|
"div",
|
|
15558
15558
|
{
|
|
15559
15559
|
style: {
|
|
@@ -15565,7 +15565,7 @@ const a9 = () => {
|
|
|
15565
15565
|
backgroundColor: "rgba(0, 123, 255, 0.25)"
|
|
15566
15566
|
}
|
|
15567
15567
|
},
|
|
15568
|
-
|
|
15568
|
+
ve
|
|
15569
15569
|
))
|
|
15570
15570
|
}
|
|
15571
15571
|
)
|
|
@@ -15581,11 +15581,11 @@ const a9 = () => {
|
|
|
15581
15581
|
onTopComputed: he,
|
|
15582
15582
|
onMouseMove: (Ge) => {
|
|
15583
15583
|
if (document.getElementById("luckysheet-formula-search-c")) {
|
|
15584
|
-
const
|
|
15584
|
+
const ve = Ge.target.closest(
|
|
15585
15585
|
".luckysheet-formula-search-item"
|
|
15586
15586
|
);
|
|
15587
|
-
if (!
|
|
15588
|
-
Ie(),
|
|
15587
|
+
if (!ve) return;
|
|
15588
|
+
Ie(), ve.classList.add(
|
|
15589
15589
|
"luckysheet-formula-search-item-active"
|
|
15590
15590
|
);
|
|
15591
15591
|
}
|
|
@@ -22219,14 +22219,14 @@ const e3 = () => {
|
|
|
22219
22219
|
if (C === "|")
|
|
22220
22220
|
return /* @__PURE__ */ s.jsx(Pb, {}, P);
|
|
22221
22221
|
if (["font-color", "background"].includes(C)) {
|
|
22222
|
-
const fe = g != null ? wi(g, "fc") : "#000000", Le = g != null ? wi(g, "bg") : void 0, ke = (
|
|
22222
|
+
const fe = g != null ? wi(g, "fc") : "#000000", Le = g != null ? wi(g, "bg") : void 0, ke = (Re) => {
|
|
22223
22223
|
c(
|
|
22224
|
-
(
|
|
22225
|
-
|
|
22224
|
+
(Fe) => (C === "font-color" ? SI : YI)(
|
|
22225
|
+
Fe,
|
|
22226
22226
|
a.cellInput.current,
|
|
22227
|
-
|
|
22227
|
+
Re
|
|
22228
22228
|
)
|
|
22229
|
-
), C === "font-color" ? a.globalCache.recentTextColor =
|
|
22229
|
+
), C === "font-color" ? a.globalCache.recentTextColor = Re : a.globalCache.recentBackgroundColor = Re;
|
|
22230
22230
|
};
|
|
22231
22231
|
return /* @__PURE__ */ s.jsxs("div", { style: { position: "relative" }, children: [
|
|
22232
22232
|
/* @__PURE__ */ s.jsx(
|
|
@@ -22253,17 +22253,17 @@ const e3 = () => {
|
|
|
22253
22253
|
showArrow: !1,
|
|
22254
22254
|
fillColor: C === "font-color" ? fe : void 0,
|
|
22255
22255
|
onClick: () => {
|
|
22256
|
-
const
|
|
22257
|
-
|
|
22256
|
+
const Re = C === "font-color" ? fe : Le;
|
|
22257
|
+
Re && ke(Re);
|
|
22258
22258
|
},
|
|
22259
|
-
children: (
|
|
22259
|
+
children: (Re) => /* @__PURE__ */ s.jsx(
|
|
22260
22260
|
Gu,
|
|
22261
22261
|
{
|
|
22262
|
-
onCustomPick: (
|
|
22263
|
-
ke(
|
|
22262
|
+
onCustomPick: (Fe) => {
|
|
22263
|
+
ke(Fe), Re(!1);
|
|
22264
22264
|
},
|
|
22265
|
-
onColorPick: (
|
|
22266
|
-
ke(
|
|
22265
|
+
onColorPick: (Fe) => {
|
|
22266
|
+
ke(Fe), Re(!1);
|
|
22267
22267
|
}
|
|
22268
22268
|
}
|
|
22269
22269
|
)
|
|
@@ -22274,10 +22274,10 @@ const e3 = () => {
|
|
|
22274
22274
|
if (C === "format") {
|
|
22275
22275
|
let fe = te[0].text;
|
|
22276
22276
|
if (g) {
|
|
22277
|
-
const Le = wi(g, "ct"), ke = _.find(te, (
|
|
22277
|
+
const Le = wi(g, "ct"), ke = _.find(te, (Re) => Re.value === (Le == null ? void 0 : Le.fa));
|
|
22278
22278
|
if ((Le == null ? void 0 : Le.fa) != null) {
|
|
22279
|
-
const
|
|
22280
|
-
Le.t === "d" ? fe =
|
|
22279
|
+
const Re = /[hH]:/.test(Le.fa);
|
|
22280
|
+
Le.t === "d" ? fe = Re ? "Date time" : "Date" : Le.t === "g" && Le.fa === "General" ? fe = te[0].text : ke != null ? fe = ke.text : Le.fa.includes("%") ? fe = Le.fa === "0%" ? te[0].text : "Percent" : vI(Le.fa) ? fe = Re ? "Date time" : "Date" : BI(
|
|
22281
22281
|
Le.fa,
|
|
22282
22282
|
Vt(n).currencyDetail
|
|
22283
22283
|
) ? fe = te[0].text : Le.t === "n" || Le.fa.includes("#,##0") || Le.fa === "0" || Le.fa === "0.00" ? fe = "Number" : fe = te[0].text;
|
|
@@ -22292,9 +22292,9 @@ const e3 = () => {
|
|
|
22292
22292
|
children: (Le) => /* @__PURE__ */ s.jsx($l, { children: te.map(
|
|
22293
22293
|
({
|
|
22294
22294
|
text: ke,
|
|
22295
|
-
value:
|
|
22296
|
-
example:
|
|
22297
|
-
}, Je) =>
|
|
22295
|
+
value: Re,
|
|
22296
|
+
example: Fe
|
|
22297
|
+
}, Je) => Re === "split" ? /* @__PURE__ */ s.jsx(v9, {}, Je) : Re === "fmtOtherSelf" ? /* @__PURE__ */ s.jsx(
|
|
22298
22298
|
zl,
|
|
22299
22299
|
{
|
|
22300
22300
|
onClick: () => {
|
|
@@ -22324,7 +22324,7 @@ const e3 = () => {
|
|
|
22324
22324
|
)
|
|
22325
22325
|
] })
|
|
22326
22326
|
},
|
|
22327
|
-
|
|
22327
|
+
Re
|
|
22328
22328
|
) : /* @__PURE__ */ s.jsx(
|
|
22329
22329
|
zl,
|
|
22330
22330
|
{
|
|
@@ -22336,7 +22336,7 @@ const e3 = () => {
|
|
|
22336
22336
|
a.cellInput.current,
|
|
22337
22337
|
Ue,
|
|
22338
22338
|
"ct",
|
|
22339
|
-
|
|
22339
|
+
Re
|
|
22340
22340
|
);
|
|
22341
22341
|
});
|
|
22342
22342
|
},
|
|
@@ -22350,12 +22350,12 @@ const e3 = () => {
|
|
|
22350
22350
|
fe === ke ? /* @__PURE__ */ s.jsx(ze, { name: "Check", className: "w-4 h-4" }) : /* @__PURE__ */ s.jsx("span", { className: "w-4 h-4" }),
|
|
22351
22351
|
/* @__PURE__ */ s.jsx("div", { children: ke })
|
|
22352
22352
|
] }),
|
|
22353
|
-
/* @__PURE__ */ s.jsx("div", { className: "fortune-toolbar-subtext", children:
|
|
22353
|
+
/* @__PURE__ */ s.jsx("div", { className: "fortune-toolbar-subtext", children: Fe })
|
|
22354
22354
|
]
|
|
22355
22355
|
}
|
|
22356
22356
|
)
|
|
22357
22357
|
},
|
|
22358
|
-
|
|
22358
|
+
Re
|
|
22359
22359
|
)
|
|
22360
22360
|
) })
|
|
22361
22361
|
},
|
|
@@ -22368,10 +22368,10 @@ const e3 = () => {
|
|
|
22368
22368
|
zl,
|
|
22369
22369
|
{
|
|
22370
22370
|
onClick: () => {
|
|
22371
|
-
c((
|
|
22371
|
+
c((Re) => {
|
|
22372
22372
|
fe = ke;
|
|
22373
|
-
const
|
|
22374
|
-
|
|
22373
|
+
const Fe = Ee(Re);
|
|
22374
|
+
Fe && $i(Re, a.cellInput.current, Fe, "ff", ke);
|
|
22375
22375
|
}), Le(!1);
|
|
22376
22376
|
},
|
|
22377
22377
|
children: ke
|
|
@@ -22478,17 +22478,17 @@ const e3 = () => {
|
|
|
22478
22478
|
gap: 4
|
|
22479
22479
|
},
|
|
22480
22480
|
children: fe.map(({ title: ke }) => {
|
|
22481
|
-
var
|
|
22481
|
+
var Re;
|
|
22482
22482
|
return /* @__PURE__ */ s.jsx(
|
|
22483
22483
|
xt,
|
|
22484
22484
|
{
|
|
22485
|
-
isActive: ((
|
|
22485
|
+
isActive: ((Re = _.find(fe, (Fe) => `${Fe.value}` == `${g == null ? void 0 : g.ht}`)) == null ? void 0 : Re.title) === ke,
|
|
22486
22486
|
icon: os(ke),
|
|
22487
22487
|
variant: "ghost",
|
|
22488
22488
|
onClick: () => {
|
|
22489
|
-
c((
|
|
22489
|
+
c((Fe) => {
|
|
22490
22490
|
xI(
|
|
22491
|
-
|
|
22491
|
+
Fe,
|
|
22492
22492
|
a.cellInput.current,
|
|
22493
22493
|
ke.replace("align-", "")
|
|
22494
22494
|
);
|
|
@@ -22541,17 +22541,17 @@ const e3 = () => {
|
|
|
22541
22541
|
gap: 4
|
|
22542
22542
|
},
|
|
22543
22543
|
children: fe.map(({ title: ke }) => {
|
|
22544
|
-
var
|
|
22544
|
+
var Re;
|
|
22545
22545
|
return /* @__PURE__ */ s.jsx(
|
|
22546
22546
|
xt,
|
|
22547
22547
|
{
|
|
22548
|
-
isActive: ((
|
|
22548
|
+
isActive: ((Re = _.find(fe, (Fe) => `${Fe.value}` == `${g == null ? void 0 : g.vt}`)) == null ? void 0 : Re.title) === ke,
|
|
22549
22549
|
icon: os(ke),
|
|
22550
22550
|
variant: "ghost",
|
|
22551
22551
|
onClick: () => {
|
|
22552
|
-
c((
|
|
22552
|
+
c((Fe) => {
|
|
22553
22553
|
RI(
|
|
22554
|
-
|
|
22554
|
+
Fe,
|
|
22555
22555
|
a.cellInput.current,
|
|
22556
22556
|
ke.replace("align-", "")
|
|
22557
22557
|
);
|
|
@@ -22691,7 +22691,7 @@ const e3 = () => {
|
|
|
22691
22691
|
iconId: "locationCondition",
|
|
22692
22692
|
tooltip: F.location,
|
|
22693
22693
|
showArrow: !1,
|
|
22694
|
-
children: (Le) => /* @__PURE__ */ s.jsx($l, { children: fe.map(({ text: ke, value:
|
|
22694
|
+
children: (Le) => /* @__PURE__ */ s.jsx($l, { children: fe.map(({ text: ke, value: Re }) => /* @__PURE__ */ s.jsx(
|
|
22695
22695
|
zl,
|
|
22696
22696
|
{
|
|
22697
22697
|
onClick: () => {
|
|
@@ -22700,16 +22700,16 @@ const e3 = () => {
|
|
|
22700
22700
|
W(E.noSelectionError, "ok");
|
|
22701
22701
|
return;
|
|
22702
22702
|
}
|
|
22703
|
-
const
|
|
22703
|
+
const Fe = n.luckysheet_select_save[0];
|
|
22704
22704
|
let Je, we = [];
|
|
22705
|
-
if (((Ue = n.luckysheet_select_save) == null ? void 0 : Ue.length) === 0 || ((Me = n.luckysheet_select_save) == null ? void 0 : Me.length) === 1 &&
|
|
22705
|
+
if (((Ue = n.luckysheet_select_save) == null ? void 0 : Ue.length) === 0 || ((Me = n.luckysheet_select_save) == null ? void 0 : Me.length) === 1 && Fe.row[0] === Fe.row[1] && Fe.column[0] === Fe.column[1] ? Je = [
|
|
22706
22706
|
{
|
|
22707
22707
|
row: [0, j.length - 1],
|
|
22708
22708
|
column: [0, j[0].length - 1]
|
|
22709
22709
|
}
|
|
22710
|
-
] : Je = _.assignIn([], n.luckysheet_select_save),
|
|
22710
|
+
] : Je = _.assignIn([], n.luckysheet_select_save), Re === "location")
|
|
22711
22711
|
W(/* @__PURE__ */ s.jsx(N9, {}));
|
|
22712
|
-
else if (
|
|
22712
|
+
else if (Re === "locationFormula")
|
|
22713
22713
|
c((tt) => {
|
|
22714
22714
|
we = wl(
|
|
22715
22715
|
Je,
|
|
@@ -22718,7 +22718,7 @@ const e3 = () => {
|
|
|
22718
22718
|
tt
|
|
22719
22719
|
);
|
|
22720
22720
|
});
|
|
22721
|
-
else if (
|
|
22721
|
+
else if (Re === "locationDate")
|
|
22722
22722
|
c((tt) => {
|
|
22723
22723
|
we = wl(
|
|
22724
22724
|
Je,
|
|
@@ -22727,7 +22727,7 @@ const e3 = () => {
|
|
|
22727
22727
|
tt
|
|
22728
22728
|
);
|
|
22729
22729
|
});
|
|
22730
|
-
else if (
|
|
22730
|
+
else if (Re === "locationDigital")
|
|
22731
22731
|
c((tt) => {
|
|
22732
22732
|
we = wl(
|
|
22733
22733
|
Je,
|
|
@@ -22736,7 +22736,7 @@ const e3 = () => {
|
|
|
22736
22736
|
tt
|
|
22737
22737
|
);
|
|
22738
22738
|
});
|
|
22739
|
-
else if (
|
|
22739
|
+
else if (Re === "locationString")
|
|
22740
22740
|
c((tt) => {
|
|
22741
22741
|
we = wl(
|
|
22742
22742
|
Je,
|
|
@@ -22745,7 +22745,7 @@ const e3 = () => {
|
|
|
22745
22745
|
tt
|
|
22746
22746
|
);
|
|
22747
22747
|
});
|
|
22748
|
-
else if (
|
|
22748
|
+
else if (Re === "locationError")
|
|
22749
22749
|
c((tt) => {
|
|
22750
22750
|
we = wl(
|
|
22751
22751
|
Je,
|
|
@@ -22754,7 +22754,7 @@ const e3 = () => {
|
|
|
22754
22754
|
tt
|
|
22755
22755
|
);
|
|
22756
22756
|
});
|
|
22757
|
-
else if (
|
|
22757
|
+
else if (Re === "locationCondition")
|
|
22758
22758
|
c((tt) => {
|
|
22759
22759
|
we = wl(
|
|
22760
22760
|
Je,
|
|
@@ -22763,7 +22763,7 @@ const e3 = () => {
|
|
|
22763
22763
|
tt
|
|
22764
22764
|
);
|
|
22765
22765
|
});
|
|
22766
|
-
else if (
|
|
22766
|
+
else if (Re === "locationRowSpan") {
|
|
22767
22767
|
if (((Qe = n.luckysheet_select_save) == null ? void 0 : Qe.length) === 0 || ((je = n.luckysheet_select_save) == null ? void 0 : je.length) === 1 && n.luckysheet_select_save[0].row[0] === n.luckysheet_select_save[0].row[1]) {
|
|
22768
22768
|
W(
|
|
22769
22769
|
F.locationTiplessTwoRow,
|
|
@@ -22779,7 +22779,7 @@ const e3 = () => {
|
|
|
22779
22779
|
tt
|
|
22780
22780
|
);
|
|
22781
22781
|
});
|
|
22782
|
-
} else if (
|
|
22782
|
+
} else if (Re === "locationColumnSpan") {
|
|
22783
22783
|
if (((et = n.luckysheet_select_save) == null ? void 0 : et.length) === 0 || ((qe = n.luckysheet_select_save) == null ? void 0 : qe.length) === 1 && n.luckysheet_select_save[0].column[0] === n.luckysheet_select_save[0].column[1]) {
|
|
22784
22784
|
W(
|
|
22785
22785
|
F.locationTiplessTwoColumn,
|
|
@@ -22796,11 +22796,11 @@ const e3 = () => {
|
|
|
22796
22796
|
);
|
|
22797
22797
|
});
|
|
22798
22798
|
}
|
|
22799
|
-
we.length === 0 &&
|
|
22799
|
+
we.length === 0 && Re !== "location" && W(F.locationTipNotFindCell, "ok"), Le(!1);
|
|
22800
22800
|
},
|
|
22801
22801
|
children: /* @__PURE__ */ s.jsx("div", { className: "fortune-toolbar-menu-line", children: ke })
|
|
22802
22802
|
},
|
|
22803
|
-
|
|
22803
|
+
Re
|
|
22804
22804
|
)) })
|
|
22805
22805
|
},
|
|
22806
22806
|
C
|
|
@@ -22833,8 +22833,8 @@ const e3 = () => {
|
|
|
22833
22833
|
const fe = (pe = n.luckysheet_select_save) == null ? void 0 : pe[n.luckysheet_select_save.length - 1];
|
|
22834
22834
|
let Le = fe == null ? void 0 : fe.row_focus, ke = fe == null ? void 0 : fe.column_focus;
|
|
22835
22835
|
fe ? (Le == null && ([Le] = fe.row), ke == null && ([ke] = fe.column)) : (Le = 0, ke = 0);
|
|
22836
|
-
let
|
|
22837
|
-
return ((Se = (We = j == null ? void 0 : j[Le]) == null ? void 0 : We[ke]) == null ? void 0 : Se.ps) != null ?
|
|
22836
|
+
let Re;
|
|
22837
|
+
return ((Se = (We = j == null ? void 0 : j[Le]) == null ? void 0 : We[ke]) == null ? void 0 : Se.ps) != null ? Re = [
|
|
22838
22838
|
{ key: "edit", text: O.edit, onClick: wm },
|
|
22839
22839
|
{ key: "delete", text: O.delete, onClick: my },
|
|
22840
22840
|
{
|
|
@@ -22847,7 +22847,7 @@ const e3 = () => {
|
|
|
22847
22847
|
text: O.showAll,
|
|
22848
22848
|
onClick: tu
|
|
22849
22849
|
}
|
|
22850
|
-
] :
|
|
22850
|
+
] : Re = [
|
|
22851
22851
|
{ key: "new", text: O.insert, onClick: ad },
|
|
22852
22852
|
{
|
|
22853
22853
|
key: "showOrHideAll",
|
|
@@ -22872,7 +22872,7 @@ const e3 = () => {
|
|
|
22872
22872
|
)
|
|
22873
22873
|
},
|
|
22874
22874
|
C
|
|
22875
|
-
) : /* @__PURE__ */ s.jsx(Il, { iconId: C, tooltip: ee, showArrow: !1, children: (
|
|
22875
|
+
) : /* @__PURE__ */ s.jsx(Il, { iconId: C, tooltip: ee, showArrow: !1, children: (Fe) => /* @__PURE__ */ s.jsx($l, { children: Re.map(({ key: Je, text: we, onClick: Ue }) => /* @__PURE__ */ s.jsx(
|
|
22876
22876
|
zl,
|
|
22877
22877
|
{
|
|
22878
22878
|
onClick: () => {
|
|
@@ -22883,7 +22883,7 @@ const e3 = () => {
|
|
|
22883
22883
|
Le,
|
|
22884
22884
|
ke
|
|
22885
22885
|
)
|
|
22886
|
-
),
|
|
22886
|
+
), Fe(!1);
|
|
22887
22887
|
},
|
|
22888
22888
|
children: we
|
|
22889
22889
|
},
|
|
@@ -22931,25 +22931,25 @@ const e3 = () => {
|
|
|
22931
22931
|
}), X();
|
|
22932
22932
|
});
|
|
22933
22933
|
},
|
|
22934
|
-
children: (Le) => /* @__PURE__ */ s.jsx($l, { children: fe.map(({ text: ke, value:
|
|
22934
|
+
children: (Le) => /* @__PURE__ */ s.jsx($l, { children: fe.map(({ text: ke, value: Re, icon: Fe }) => /* @__PURE__ */ s.jsx(
|
|
22935
22935
|
zl,
|
|
22936
22936
|
{
|
|
22937
22937
|
onClick: () => {
|
|
22938
|
-
if (
|
|
22938
|
+
if (Re === "merge-cancel")
|
|
22939
22939
|
c((Je) => {
|
|
22940
|
-
es(Je,
|
|
22940
|
+
es(Je, Re);
|
|
22941
22941
|
}), Le(!1);
|
|
22942
22942
|
else {
|
|
22943
22943
|
if (Le(!1), !Or(n)) {
|
|
22944
22944
|
c((we) => {
|
|
22945
|
-
es(we,
|
|
22945
|
+
es(we, Re);
|
|
22946
22946
|
});
|
|
22947
22947
|
return;
|
|
22948
22948
|
}
|
|
22949
22949
|
const Je = L.confirmMerge;
|
|
22950
22950
|
S(Je, "yesno", () => {
|
|
22951
22951
|
c((we) => {
|
|
22952
|
-
es(we,
|
|
22952
|
+
es(we, Re);
|
|
22953
22953
|
}), X();
|
|
22954
22954
|
});
|
|
22955
22955
|
}
|
|
@@ -22959,13 +22959,13 @@ const e3 = () => {
|
|
|
22959
22959
|
{
|
|
22960
22960
|
style: { display: "flex", alignItems: "center", gap: 6 },
|
|
22961
22961
|
children: [
|
|
22962
|
-
/* @__PURE__ */ s.jsx(ze, { name:
|
|
22962
|
+
/* @__PURE__ */ s.jsx(ze, { name: Fe, width: 16, height: 16 }),
|
|
22963
22963
|
ke
|
|
22964
22964
|
]
|
|
22965
22965
|
}
|
|
22966
22966
|
)
|
|
22967
22967
|
},
|
|
22968
|
-
|
|
22968
|
+
Re
|
|
22969
22969
|
)) })
|
|
22970
22970
|
},
|
|
22971
22971
|
C
|
|
@@ -23038,16 +23038,16 @@ const e3 = () => {
|
|
|
23038
23038
|
onClick: () => c((Le) => {
|
|
23039
23039
|
ns(Le, "border-all", Ze, D);
|
|
23040
23040
|
}),
|
|
23041
|
-
children: (Le) => /* @__PURE__ */ s.jsx("div", { className: "fortune-toolbar-select fortune-border-grid", children: fe.map(({ value: ke, icon:
|
|
23041
|
+
children: (Le) => /* @__PURE__ */ s.jsx("div", { className: "fortune-toolbar-select fortune-border-grid", children: fe.map(({ value: ke, icon: Re }) => /* @__PURE__ */ s.jsx(
|
|
23042
23042
|
"div",
|
|
23043
23043
|
{
|
|
23044
23044
|
className: "fortune-border-grid-item",
|
|
23045
23045
|
onClick: () => {
|
|
23046
|
-
c((
|
|
23047
|
-
ns(
|
|
23046
|
+
c((Fe) => {
|
|
23047
|
+
ns(Fe, ke, Ze, D);
|
|
23048
23048
|
}), Le(!1);
|
|
23049
23049
|
},
|
|
23050
|
-
children: /* @__PURE__ */ s.jsx(ze, { name:
|
|
23050
|
+
children: /* @__PURE__ */ s.jsx(ze, { name: Re, width: 16, height: 16 })
|
|
23051
23051
|
},
|
|
23052
23052
|
ke
|
|
23053
23053
|
)) })
|
|
@@ -23083,20 +23083,20 @@ const e3 = () => {
|
|
|
23083
23083
|
onClick: () => c((Le) => {
|
|
23084
23084
|
zr(Le, "freeze-row-col");
|
|
23085
23085
|
}),
|
|
23086
|
-
children: (Le) => /* @__PURE__ */ s.jsx($l, { children: fe.map(({ text: ke, value:
|
|
23086
|
+
children: (Le) => /* @__PURE__ */ s.jsx($l, { children: fe.map(({ text: ke, value: Re }) => /* @__PURE__ */ s.jsx(
|
|
23087
23087
|
zl,
|
|
23088
23088
|
{
|
|
23089
23089
|
onClick: () => {
|
|
23090
|
-
c((
|
|
23091
|
-
zr(
|
|
23090
|
+
c((Fe) => {
|
|
23091
|
+
zr(Fe, Re);
|
|
23092
23092
|
}), Le(!1);
|
|
23093
23093
|
},
|
|
23094
23094
|
children: /* @__PURE__ */ s.jsxs("div", { className: "fortune-toolbar-menu-line", children: [
|
|
23095
23095
|
ke,
|
|
23096
|
-
/* @__PURE__ */ s.jsx(_t, { name:
|
|
23096
|
+
/* @__PURE__ */ s.jsx(_t, { name: Re, width: 16, height: 16 })
|
|
23097
23097
|
] })
|
|
23098
23098
|
},
|
|
23099
|
-
|
|
23099
|
+
Re
|
|
23100
23100
|
)) })
|
|
23101
23101
|
},
|
|
23102
23102
|
C
|
|
@@ -23138,11 +23138,11 @@ const e3 = () => {
|
|
|
23138
23138
|
justifyContent: "center",
|
|
23139
23139
|
gap: 4
|
|
23140
23140
|
},
|
|
23141
|
-
children: fe.map(({ iconId:
|
|
23141
|
+
children: fe.map(({ iconId: Re, value: Fe }) => /* @__PURE__ */ s.jsx(
|
|
23142
23142
|
xt,
|
|
23143
23143
|
{
|
|
23144
|
-
isActive: Le.value ===
|
|
23145
|
-
icon: os(
|
|
23144
|
+
isActive: Le.value === Fe,
|
|
23145
|
+
icon: os(Re),
|
|
23146
23146
|
variant: "ghost",
|
|
23147
23147
|
onClick: () => {
|
|
23148
23148
|
c((Je) => {
|
|
@@ -23152,14 +23152,14 @@ const e3 = () => {
|
|
|
23152
23152
|
a.cellInput.current,
|
|
23153
23153
|
we,
|
|
23154
23154
|
"tb",
|
|
23155
|
-
|
|
23155
|
+
Fe,
|
|
23156
23156
|
a.canvas.current.getContext("2d")
|
|
23157
23157
|
);
|
|
23158
23158
|
}), ke(!1);
|
|
23159
23159
|
},
|
|
23160
23160
|
tabIndex: 0
|
|
23161
23161
|
},
|
|
23162
|
-
|
|
23162
|
+
Fe
|
|
23163
23163
|
))
|
|
23164
23164
|
}
|
|
23165
23165
|
)
|
|
@@ -23203,7 +23203,7 @@ const e3 = () => {
|
|
|
23203
23203
|
iconId: Le.iconId,
|
|
23204
23204
|
tooltip: R.textRotate,
|
|
23205
23205
|
showArrow: !1,
|
|
23206
|
-
children: (ke) => /* @__PURE__ */ s.jsx($l, { children: fe.map(({ text:
|
|
23206
|
+
children: (ke) => /* @__PURE__ */ s.jsx($l, { children: fe.map(({ text: Re, iconId: Fe, value: Je }) => /* @__PURE__ */ s.jsx(
|
|
23207
23207
|
zl,
|
|
23208
23208
|
{
|
|
23209
23209
|
onClick: () => {
|
|
@@ -23219,8 +23219,8 @@ const e3 = () => {
|
|
|
23219
23219
|
}), ke(!1);
|
|
23220
23220
|
},
|
|
23221
23221
|
children: /* @__PURE__ */ s.jsxs("div", { className: "fortune-toolbar-menu-line", children: [
|
|
23222
|
-
|
|
23223
|
-
/* @__PURE__ */ s.jsx(_t, { name:
|
|
23222
|
+
Re,
|
|
23223
|
+
/* @__PURE__ */ s.jsx(_t, { name: Fe, width: 16, height: 16 })
|
|
23224
23224
|
] })
|
|
23225
23225
|
},
|
|
23226
23226
|
Je
|
|
@@ -23249,8 +23249,8 @@ const e3 = () => {
|
|
|
23249
23249
|
C
|
|
23250
23250
|
);
|
|
23251
23251
|
if (C === "filter") {
|
|
23252
|
-
const fe = !_.isEmpty(n.luckysheet_filter_save) || n.filterOptions != null, Le = n.allowEdit === !1 || n.isFlvReadOnly, ke = Le ? fe && n.viewerFilterVisible !== !1 : fe,
|
|
23253
|
-
return /* @__PURE__ */ s.jsx(al, { text:
|
|
23252
|
+
const fe = !_.isEmpty(n.luckysheet_filter_save) || n.filterOptions != null, Le = n.allowEdit === !1 || n.isFlvReadOnly, ke = Le ? fe && n.viewerFilterVisible !== !1 : fe, Re = R.sortAndFilter, Fe = Le ? !fe : !1;
|
|
23253
|
+
return /* @__PURE__ */ s.jsx(al, { text: Re, position: "bottom", children: /* @__PURE__ */ s.jsx(
|
|
23254
23254
|
"div",
|
|
23255
23255
|
{
|
|
23256
23256
|
className: "fortune-toolbar-item fortune-toolbar-button fortune-toolbar-button__cta fortune-toolbar-button--filter",
|
|
@@ -23258,9 +23258,9 @@ const e3 = () => {
|
|
|
23258
23258
|
"data-testid": "toolbar-cta-filter",
|
|
23259
23259
|
tabIndex: 0,
|
|
23260
23260
|
role: "button",
|
|
23261
|
-
style:
|
|
23261
|
+
style: Fe ? { pointerEvents: "none", opacity: 0.45 } : {},
|
|
23262
23262
|
onClick: () => {
|
|
23263
|
-
|
|
23263
|
+
Fe || c((Je) => {
|
|
23264
23264
|
if (Le) {
|
|
23265
23265
|
My(Je);
|
|
23266
23266
|
return;
|
|
@@ -23292,7 +23292,7 @@ const e3 = () => {
|
|
|
23292
23292
|
width: 20,
|
|
23293
23293
|
height: 20,
|
|
23294
23294
|
style: {
|
|
23295
|
-
...
|
|
23295
|
+
...Fe ? { opacity: 0.3 } : {},
|
|
23296
23296
|
width: "100%",
|
|
23297
23297
|
height: "100%"
|
|
23298
23298
|
}
|
|
@@ -23321,7 +23321,7 @@ const e3 = () => {
|
|
|
23321
23321
|
{
|
|
23322
23322
|
iconId: C,
|
|
23323
23323
|
tooltip: ee,
|
|
23324
|
-
disabled:
|
|
23324
|
+
disabled: !!ce,
|
|
23325
23325
|
selected: (xe = PI(C)) == null ? void 0 : xe(g),
|
|
23326
23326
|
onMouseDown: (fe) => {
|
|
23327
23327
|
if (C === "link") {
|
|
@@ -23343,8 +23343,8 @@ const e3 = () => {
|
|
|
23343
23343
|
return;
|
|
23344
23344
|
}
|
|
23345
23345
|
c((ke) => {
|
|
23346
|
-
var
|
|
23347
|
-
(
|
|
23346
|
+
var Re;
|
|
23347
|
+
(Re = DI(C)) == null || Re(
|
|
23348
23348
|
ke,
|
|
23349
23349
|
a.cellInput.current,
|
|
23350
23350
|
a.globalCache
|
|
@@ -33496,8 +33496,8 @@ const lx = vt.forwardRef(
|
|
|
33496
33496
|
const xe = H[3], fe = ((We = P == null ? void 0 : P.data) == null ? void 0 : We[xe]) ?? [], Le = ((Se = ee == null ? void 0 : ee.data) == null ? void 0 : Se[xe]) ?? [];
|
|
33497
33497
|
if (fe === Le) return;
|
|
33498
33498
|
const ke = Math.max(fe.length ?? 0, Le.length ?? 0);
|
|
33499
|
-
for (let
|
|
33500
|
-
fe[
|
|
33499
|
+
for (let Re = 0; Re < ke; Re += 1)
|
|
33500
|
+
fe[Re] !== Le[Re] && (_.isEqual(fe[Re] ?? null, Le[Re] ?? null) || ie(ce, xe, Re));
|
|
33501
33501
|
return;
|
|
33502
33502
|
}
|
|
33503
33503
|
if (H.length === 3) {
|
|
@@ -33506,14 +33506,14 @@ const lx = vt.forwardRef(
|
|
|
33506
33506
|
`[Yjs] undo/redo whole-matrix diff on large sheet (${Le} rows)`
|
|
33507
33507
|
);
|
|
33508
33508
|
for (let ke = 0; ke < Le; ke += 1) {
|
|
33509
|
-
const
|
|
33510
|
-
if (
|
|
33509
|
+
const Re = (fe == null ? void 0 : fe[ke]) ?? [], Fe = (xe == null ? void 0 : xe[ke]) ?? [];
|
|
33510
|
+
if (Re === Fe) continue;
|
|
33511
33511
|
const Je = Math.max(
|
|
33512
|
-
|
|
33513
|
-
|
|
33512
|
+
Re.length ?? 0,
|
|
33513
|
+
Fe.length ?? 0
|
|
33514
33514
|
);
|
|
33515
33515
|
for (let we = 0; we < Je; we += 1)
|
|
33516
|
-
|
|
33516
|
+
Re[we] !== Fe[we] && (_.isEqual(Re[we] ?? null, Fe[we] ?? null) || ie(ce, ke, we));
|
|
33517
33517
|
}
|
|
33518
33518
|
}
|
|
33519
33519
|
return;
|
|
@@ -34281,7 +34281,7 @@ const lx = vt.forwardRef(
|
|
|
34281
34281
|
if (D) return;
|
|
34282
34282
|
R(
|
|
34283
34283
|
(xe) => {
|
|
34284
|
-
var ke,
|
|
34284
|
+
var ke, Re, Fe, Je;
|
|
34285
34285
|
const fe = xe.formulaAsyncEval;
|
|
34286
34286
|
if (!fe || fe.nextIndex !== he) return;
|
|
34287
34287
|
nI(
|
|
@@ -34298,11 +34298,11 @@ const lx = vt.forwardRef(
|
|
|
34298
34298
|
lastChunkMs: Le,
|
|
34299
34299
|
lastChunkSize: ce.length,
|
|
34300
34300
|
completedChunks: (((ke = fe.debug) == null ? void 0 : ke.completedChunks) ?? 0) + 1,
|
|
34301
|
-
fallbackChunks: ((
|
|
34301
|
+
fallbackChunks: ((Re = fe.debug) == null ? void 0 : Re.fallbackChunks) ?? 0,
|
|
34302
34302
|
workerAvailable: !0,
|
|
34303
34303
|
unsafeFormulaCount: re,
|
|
34304
34304
|
workerFormulaCount: ce.length,
|
|
34305
|
-
totalWorkerFormulas: (((
|
|
34305
|
+
totalWorkerFormulas: (((Fe = fe.debug) == null ? void 0 : Fe.totalWorkerFormulas) ?? 0) + ce.length,
|
|
34306
34306
|
totalMainThreadFormulas: ((Je = fe.debug) == null ? void 0 : Je.totalMainThreadFormulas) ?? 0,
|
|
34307
34307
|
lastError: null
|
|
34308
34308
|
}, ye(xe);
|
|
@@ -34315,7 +34315,7 @@ const lx = vt.forwardRef(
|
|
|
34315
34315
|
const Se = We instanceof Error ? We.message : String(We);
|
|
34316
34316
|
R(
|
|
34317
34317
|
(xe) => {
|
|
34318
|
-
var
|
|
34318
|
+
var Re, Fe, Je, we;
|
|
34319
34319
|
const fe = xe.formulaAsyncEval;
|
|
34320
34320
|
if (!fe || fe.nextIndex !== he) return;
|
|
34321
34321
|
const Le = Math.min(
|
|
@@ -34332,8 +34332,8 @@ const lx = vt.forwardRef(
|
|
|
34332
34332
|
mode: "fallback",
|
|
34333
34333
|
lastChunkMs: ke,
|
|
34334
34334
|
lastChunkSize: Le,
|
|
34335
|
-
completedChunks: (((
|
|
34336
|
-
fallbackChunks: (((
|
|
34335
|
+
completedChunks: (((Re = fe.debug) == null ? void 0 : Re.completedChunks) ?? 0) + 1,
|
|
34336
|
+
fallbackChunks: (((Fe = fe.debug) == null ? void 0 : Fe.fallbackChunks) ?? 0) + 1,
|
|
34337
34337
|
workerAvailable: !1,
|
|
34338
34338
|
unsafeFormulaCount: re,
|
|
34339
34339
|
workerFormulaCount: 0,
|
|
@@ -34348,7 +34348,7 @@ const lx = vt.forwardRef(
|
|
|
34348
34348
|
else
|
|
34349
34349
|
ae = 0, R(
|
|
34350
34350
|
(We) => {
|
|
34351
|
-
var fe, Le, ke,
|
|
34351
|
+
var fe, Le, ke, Re;
|
|
34352
34352
|
const Se = We.formulaAsyncEval;
|
|
34353
34353
|
if (!Se || Se.nextIndex !== he) return;
|
|
34354
34354
|
Pr(
|
|
@@ -34367,7 +34367,7 @@ const lx = vt.forwardRef(
|
|
|
34367
34367
|
unsafeFormulaCount: re,
|
|
34368
34368
|
workerFormulaCount: 0,
|
|
34369
34369
|
totalWorkerFormulas: ((ke = Se.debug) == null ? void 0 : ke.totalWorkerFormulas) ?? 0,
|
|
34370
|
-
totalMainThreadFormulas: (((
|
|
34370
|
+
totalMainThreadFormulas: (((Re = Se.debug) == null ? void 0 : Re.totalMainThreadFormulas) ?? 0) + ce.length,
|
|
34371
34371
|
lastError: oe && re > 0 ? `${re} formula(s) in this chunk require the main formula engine` : null
|
|
34372
34372
|
}, ye(We);
|
|
34373
34373
|
},
|
|
@@ -39105,8 +39105,8 @@ var qG = {};
|
|
|
39105
39105
|
F[L] = O[L] - z[L];
|
|
39106
39106
|
}
|
|
39107
39107
|
function S(F, O, z) {
|
|
39108
|
-
let L, k, ne = 0, se = 0, te = 0, Ze = 0, D = 0, de = 0, ae = 0, ye = 0, Q = 0, ue = 0, be = 0, ie = 0, he = 0, oe = 0, H = 0, C = 0, P = 0, ee = 0, ce = 0, re = 0, Ie = 0, pe = 0, We = 0, Se = 0, xe = 0, fe = 0, Le = 0, ke = 0,
|
|
39109
|
-
L = O[0], ne += L * we, se += L * Ue, te += L * Me, Ze += L * Qe, D += L * je, de += L * et, ae += L * qe, ye += L * tt, Q += L * Zt, ue += L * Gt, be += L * Pe, ie += L * Te, he += L * De, oe += L * Ke, H += L * me, C += L *
|
|
39108
|
+
let L, k, ne = 0, se = 0, te = 0, Ze = 0, D = 0, de = 0, ae = 0, ye = 0, Q = 0, ue = 0, be = 0, ie = 0, he = 0, oe = 0, H = 0, C = 0, P = 0, ee = 0, ce = 0, re = 0, Ie = 0, pe = 0, We = 0, Se = 0, xe = 0, fe = 0, Le = 0, ke = 0, Re = 0, Fe = 0, Je = 0, we = z[0], Ue = z[1], Me = z[2], Qe = z[3], je = z[4], et = z[5], qe = z[6], tt = z[7], Zt = z[8], Gt = z[9], Pe = z[10], Te = z[11], De = z[12], Ke = z[13], me = z[14], Ce = z[15];
|
|
39109
|
+
L = O[0], ne += L * we, se += L * Ue, te += L * Me, Ze += L * Qe, D += L * je, de += L * et, ae += L * qe, ye += L * tt, Q += L * Zt, ue += L * Gt, be += L * Pe, ie += L * Te, he += L * De, oe += L * Ke, H += L * me, C += L * Ce, L = O[1], se += L * we, te += L * Ue, Ze += L * Me, D += L * Qe, de += L * je, ae += L * et, ye += L * qe, Q += L * tt, ue += L * Zt, be += L * Gt, ie += L * Pe, he += L * Te, oe += L * De, H += L * Ke, C += L * me, P += L * Ce, L = O[2], te += L * we, Ze += L * Ue, D += L * Me, de += L * Qe, ae += L * je, ye += L * et, Q += L * qe, ue += L * tt, be += L * Zt, ie += L * Gt, he += L * Pe, oe += L * Te, H += L * De, C += L * Ke, P += L * me, ee += L * Ce, L = O[3], Ze += L * we, D += L * Ue, de += L * Me, ae += L * Qe, ye += L * je, Q += L * et, ue += L * qe, be += L * tt, ie += L * Zt, he += L * Gt, oe += L * Pe, H += L * Te, C += L * De, P += L * Ke, ee += L * me, ce += L * Ce, L = O[4], D += L * we, de += L * Ue, ae += L * Me, ye += L * Qe, Q += L * je, ue += L * et, be += L * qe, ie += L * tt, he += L * Zt, oe += L * Gt, H += L * Pe, C += L * Te, P += L * De, ee += L * Ke, ce += L * me, re += L * Ce, L = O[5], de += L * we, ae += L * Ue, ye += L * Me, Q += L * Qe, ue += L * je, be += L * et, ie += L * qe, he += L * tt, oe += L * Zt, H += L * Gt, C += L * Pe, P += L * Te, ee += L * De, ce += L * Ke, re += L * me, Ie += L * Ce, L = O[6], ae += L * we, ye += L * Ue, Q += L * Me, ue += L * Qe, be += L * je, ie += L * et, he += L * qe, oe += L * tt, H += L * Zt, C += L * Gt, P += L * Pe, ee += L * Te, ce += L * De, re += L * Ke, Ie += L * me, pe += L * Ce, L = O[7], ye += L * we, Q += L * Ue, ue += L * Me, be += L * Qe, ie += L * je, he += L * et, oe += L * qe, H += L * tt, C += L * Zt, P += L * Gt, ee += L * Pe, ce += L * Te, re += L * De, Ie += L * Ke, pe += L * me, We += L * Ce, L = O[8], Q += L * we, ue += L * Ue, be += L * Me, ie += L * Qe, he += L * je, oe += L * et, H += L * qe, C += L * tt, P += L * Zt, ee += L * Gt, ce += L * Pe, re += L * Te, Ie += L * De, pe += L * Ke, We += L * me, Se += L * Ce, L = O[9], ue += L * we, be += L * Ue, ie += L * Me, he += L * Qe, oe += L * je, H += L * et, C += L * qe, P += L * tt, ee += L * Zt, ce += L * Gt, re += L * Pe, Ie += L * Te, pe += L * De, We += L * Ke, Se += L * me, xe += L * Ce, L = O[10], be += L * we, ie += L * Ue, he += L * Me, oe += L * Qe, H += L * je, C += L * et, P += L * qe, ee += L * tt, ce += L * Zt, re += L * Gt, Ie += L * Pe, pe += L * Te, We += L * De, Se += L * Ke, xe += L * me, fe += L * Ce, L = O[11], ie += L * we, he += L * Ue, oe += L * Me, H += L * Qe, C += L * je, P += L * et, ee += L * qe, ce += L * tt, re += L * Zt, Ie += L * Gt, pe += L * Pe, We += L * Te, Se += L * De, xe += L * Ke, fe += L * me, Le += L * Ce, L = O[12], he += L * we, oe += L * Ue, H += L * Me, C += L * Qe, P += L * je, ee += L * et, ce += L * qe, re += L * tt, Ie += L * Zt, pe += L * Gt, We += L * Pe, Se += L * Te, xe += L * De, fe += L * Ke, Le += L * me, ke += L * Ce, L = O[13], oe += L * we, H += L * Ue, C += L * Me, P += L * Qe, ee += L * je, ce += L * et, re += L * qe, Ie += L * tt, pe += L * Zt, We += L * Gt, Se += L * Pe, xe += L * Te, fe += L * De, Le += L * Ke, ke += L * me, Re += L * Ce, L = O[14], H += L * we, C += L * Ue, P += L * Me, ee += L * Qe, ce += L * je, re += L * et, Ie += L * qe, pe += L * tt, We += L * Zt, Se += L * Gt, xe += L * Pe, fe += L * Te, Le += L * De, ke += L * Ke, Re += L * me, Fe += L * Ce, L = O[15], C += L * we, P += L * Ue, ee += L * Me, ce += L * Qe, re += L * je, Ie += L * et, pe += L * qe, We += L * tt, Se += L * Zt, xe += L * Gt, fe += L * Pe, Le += L * Te, ke += L * De, Re += L * Ke, Fe += L * me, Je += L * Ce, ne += 38 * P, se += 38 * ee, te += 38 * ce, Ze += 38 * re, D += 38 * Ie, de += 38 * pe, ae += 38 * We, ye += 38 * Se, Q += 38 * xe, ue += 38 * fe, be += 38 * Le, ie += 38 * ke, he += 38 * Re, oe += 38 * Fe, H += 38 * Je, k = 1, L = ne + k + 65535, k = Math.floor(L / 65536), ne = L - k * 65536, L = se + k + 65535, k = Math.floor(L / 65536), se = L - k * 65536, L = te + k + 65535, k = Math.floor(L / 65536), te = L - k * 65536, L = Ze + k + 65535, k = Math.floor(L / 65536), Ze = L - k * 65536, L = D + k + 65535, k = Math.floor(L / 65536), D = L - k * 65536, L = de + k + 65535, k = Math.floor(L / 65536), de = L - k * 65536, L = ae + k + 65535, k = Math.floor(L / 65536), ae = L - k * 65536, L = ye + k + 65535, k = Math.floor(L / 65536), ye = L - k * 65536, L = Q + k + 65535, k = Math.floor(L / 65536), Q = L - k * 65536, L = ue + k + 65535, k = Math.floor(L / 65536), ue = L - k * 65536, L = be + k + 65535, k = Math.floor(L / 65536), be = L - k * 65536, L = ie + k + 65535, k = Math.floor(L / 65536), ie = L - k * 65536, L = he + k + 65535, k = Math.floor(L / 65536), he = L - k * 65536, L = oe + k + 65535, k = Math.floor(L / 65536), oe = L - k * 65536, L = H + k + 65535, k = Math.floor(L / 65536), H = L - k * 65536, L = C + k + 65535, k = Math.floor(L / 65536), C = L - k * 65536, ne += k - 1 + 37 * (k - 1), k = 1, L = ne + k + 65535, k = Math.floor(L / 65536), ne = L - k * 65536, L = se + k + 65535, k = Math.floor(L / 65536), se = L - k * 65536, L = te + k + 65535, k = Math.floor(L / 65536), te = L - k * 65536, L = Ze + k + 65535, k = Math.floor(L / 65536), Ze = L - k * 65536, L = D + k + 65535, k = Math.floor(L / 65536), D = L - k * 65536, L = de + k + 65535, k = Math.floor(L / 65536), de = L - k * 65536, L = ae + k + 65535, k = Math.floor(L / 65536), ae = L - k * 65536, L = ye + k + 65535, k = Math.floor(L / 65536), ye = L - k * 65536, L = Q + k + 65535, k = Math.floor(L / 65536), Q = L - k * 65536, L = ue + k + 65535, k = Math.floor(L / 65536), ue = L - k * 65536, L = be + k + 65535, k = Math.floor(L / 65536), be = L - k * 65536, L = ie + k + 65535, k = Math.floor(L / 65536), ie = L - k * 65536, L = he + k + 65535, k = Math.floor(L / 65536), he = L - k * 65536, L = oe + k + 65535, k = Math.floor(L / 65536), oe = L - k * 65536, L = H + k + 65535, k = Math.floor(L / 65536), H = L - k * 65536, L = C + k + 65535, k = Math.floor(L / 65536), C = L - k * 65536, ne += k - 1 + 37 * (k - 1), F[0] = ne, F[1] = se, F[2] = te, F[3] = Ze, F[4] = D, F[5] = de, F[6] = ae, F[7] = ye, F[8] = Q, F[9] = ue, F[10] = be, F[11] = ie, F[12] = he, F[13] = oe, F[14] = H, F[15] = C;
|
|
39110
39110
|
}
|
|
39111
39111
|
function X(F, O) {
|
|
39112
39112
|
S(F, O, O);
|
|
@@ -39637,13 +39637,13 @@ var n2 = { exports: {} };
|
|
|
39637
39637
|
return new h(this.value * this.value);
|
|
39638
39638
|
};
|
|
39639
39639
|
function B(H, C) {
|
|
39640
|
-
var P = H.length, ee = C.length, ce = i, re = Y(C.length), Ie = C[ee - 1], pe = Math.ceil(ce / (2 * Ie)), We = j(H, pe), Se = j(C, pe), xe, fe, Le, ke,
|
|
39640
|
+
var P = H.length, ee = C.length, ce = i, re = Y(C.length), Ie = C[ee - 1], pe = Math.ceil(ce / (2 * Ie)), We = j(H, pe), Se = j(C, pe), xe, fe, Le, ke, Re, Fe, Je;
|
|
39641
39641
|
for (We.length <= P && We.push(0), Se.push(0), Ie = Se[ee - 1], fe = P - ee; fe >= 0; fe--) {
|
|
39642
|
-
for (xe = ce - 1, We[fe + ee] !== Ie && (xe = Math.floor((We[fe + ee] * ce + We[fe + ee - 1]) / Ie)), Le = 0, ke = 0,
|
|
39643
|
-
Le += xe * Se[
|
|
39642
|
+
for (xe = ce - 1, We[fe + ee] !== Ie && (xe = Math.floor((We[fe + ee] * ce + We[fe + ee - 1]) / Ie)), Le = 0, ke = 0, Fe = Se.length, Re = 0; Re < Fe; Re++)
|
|
39643
|
+
Le += xe * Se[Re], Je = Math.floor(Le / ce), ke += We[fe + Re] - (Le - Je * ce), Le = Je, ke < 0 ? (We[fe + Re] = ke + ce, ke = -1) : (We[fe + Re] = ke, ke = 0);
|
|
39644
39644
|
for (; ke !== 0; ) {
|
|
39645
|
-
for (xe -= 1, Le = 0,
|
|
39646
|
-
Le += We[fe +
|
|
39645
|
+
for (xe -= 1, Le = 0, Re = 0; Re < Fe; Re++)
|
|
39646
|
+
Le += We[fe + Re] - ce + Se[Re], Le < 0 ? (We[fe + Re] = Le + ce, Le = 0) : (We[fe + Re] = Le, Le = 1);
|
|
39647
39647
|
ke += Le;
|
|
39648
39648
|
}
|
|
39649
39649
|
re[fe] = xe;
|
|
@@ -47369,14 +47369,14 @@ const pF = ({
|
|
|
47369
47369
|
ie = !0;
|
|
47370
47370
|
continue;
|
|
47371
47371
|
}
|
|
47372
|
-
const Ke = De.get("id"), me = Te[1],
|
|
47373
|
-
if (!Ke || !(
|
|
47372
|
+
const Ke = De.get("id"), me = Te[1], Ce = De.get(me);
|
|
47373
|
+
if (!Ke || !(Ce instanceof Be.Map)) {
|
|
47374
47374
|
ie = !0;
|
|
47375
47375
|
continue;
|
|
47376
47376
|
}
|
|
47377
47377
|
H(
|
|
47378
47378
|
`${Ke}:${me}`,
|
|
47379
|
-
{ sheetId: Ke, field: me, map:
|
|
47379
|
+
{ sheetId: Ke, field: me, map: Ce },
|
|
47380
47380
|
Pe
|
|
47381
47381
|
);
|
|
47382
47382
|
} else if (Te.length === 2 && Te[1] === "luckysheet_conditionformat_save" && typeof Te[0] == "number") {
|
|
@@ -47421,25 +47421,25 @@ const pF = ({
|
|
|
47421
47421
|
if (Ke.length > 0 && Ke.every(
|
|
47422
47422
|
(me) => q.has(me) || $.has(me) || F.has(me) || O.has(me) || me === "luckysheet_conditionformat_save" || me === "config"
|
|
47423
47423
|
)) {
|
|
47424
|
-
if (Ke.some((
|
|
47424
|
+
if (Ke.some((Ce) => Ce === "color" || Ce === "hide")) {
|
|
47425
47425
|
ie = !0;
|
|
47426
47426
|
continue;
|
|
47427
47427
|
}
|
|
47428
47428
|
const me = De.get("id");
|
|
47429
47429
|
if (me) {
|
|
47430
|
-
const
|
|
47430
|
+
const Ce = Ke.filter(
|
|
47431
47431
|
(it) => q.has(it)
|
|
47432
47432
|
), Ae = Ke.filter(
|
|
47433
47433
|
(it) => $.has(it)
|
|
47434
47434
|
), lt = Ke.filter(
|
|
47435
47435
|
(it) => F.has(it) || O.has(it)
|
|
47436
47436
|
);
|
|
47437
|
-
if (
|
|
47437
|
+
if (Ce.length > 0) {
|
|
47438
47438
|
const it = Q.get(me);
|
|
47439
47439
|
Q.set(me, {
|
|
47440
47440
|
sheetId: me,
|
|
47441
47441
|
sheetMap: De,
|
|
47442
|
-
changedKeys: it ? [...it.changedKeys, ...
|
|
47442
|
+
changedKeys: it ? [...it.changedKeys, ...Ce] : Ce
|
|
47443
47443
|
});
|
|
47444
47444
|
}
|
|
47445
47445
|
if (Ae.length > 0) {
|
|
@@ -47488,9 +47488,9 @@ const pF = ({
|
|
|
47488
47488
|
}
|
|
47489
47489
|
}
|
|
47490
47490
|
if (Ke.length > 0 && Ke.every((me) => z.has(me))) {
|
|
47491
|
-
const me = De.get("id"),
|
|
47492
|
-
if (
|
|
47493
|
-
(lt) => no(De.get(lt),
|
|
47491
|
+
const me = De.get("id"), Ce = (et = (je = (Qe = (Me = l.current) == null ? void 0 : Me.getWorkbookContext) == null ? void 0 : Qe.call(Me)) == null ? void 0 : je.luckysheetfile) == null ? void 0 : et.find((Ae) => Ae.id === me);
|
|
47492
|
+
if (Ce && Ke.every(
|
|
47493
|
+
(lt) => no(De.get(lt), Ce[lt])
|
|
47494
47494
|
))
|
|
47495
47495
|
continue;
|
|
47496
47496
|
ie = !0;
|
|
@@ -47525,22 +47525,22 @@ const pF = ({
|
|
|
47525
47525
|
var Te, De, Ke, me;
|
|
47526
47526
|
const Pe = (((me = (Ke = (De = (Te = l.current) == null ? void 0 : Te.getWorkbookContext) == null ? void 0 : De.call(Te)) == null ? void 0 : Ke.luckysheetCellUpdate) == null ? void 0 : me.length) ?? 0) > 0;
|
|
47527
47527
|
try {
|
|
47528
|
-
const
|
|
47528
|
+
const Ce = pi(A);
|
|
47529
47529
|
Ai(
|
|
47530
|
-
|
|
47530
|
+
Ce,
|
|
47531
47531
|
B.current,
|
|
47532
47532
|
E.current
|
|
47533
|
-
), S.current =
|
|
47534
|
-
} catch (
|
|
47533
|
+
), S.current = Ce, J(Ce);
|
|
47534
|
+
} catch (Ce) {
|
|
47535
47535
|
console.error(
|
|
47536
47536
|
"[DSheet] ySheetArrayToPlain after ydoc observe failed",
|
|
47537
|
-
|
|
47537
|
+
Ce
|
|
47538
47538
|
);
|
|
47539
47539
|
}
|
|
47540
|
-
!Pe && i && i((
|
|
47540
|
+
!Pe && i && i((Ce) => Ce + 1), R.current = !1, g.current = null, P1(j);
|
|
47541
47541
|
}, 50);
|
|
47542
47542
|
}, pe = ie || re || R.current || P > le || !l.current, We = () => {
|
|
47543
|
-
var De, Ke, me,
|
|
47543
|
+
var De, Ke, me, Ce;
|
|
47544
47544
|
const Pe = {};
|
|
47545
47545
|
let Te = !1;
|
|
47546
47546
|
for (const {
|
|
@@ -47565,7 +47565,7 @@ const pF = ({
|
|
|
47565
47565
|
}
|
|
47566
47566
|
if (Te)
|
|
47567
47567
|
try {
|
|
47568
|
-
(
|
|
47568
|
+
(Ce = (me = l.current) == null ? void 0 : me.setSheetOrder) == null || Ce.call(me, Pe);
|
|
47569
47569
|
} catch (Ae) {
|
|
47570
47570
|
console.warn(
|
|
47571
47571
|
"[DSheet] Skipped remote sheet order apply — workbook not ready",
|
|
@@ -47576,12 +47576,12 @@ const pF = ({
|
|
|
47576
47576
|
var Pe, Te, De, Ke;
|
|
47577
47577
|
for (const {
|
|
47578
47578
|
sheetId: me,
|
|
47579
|
-
sheetMap:
|
|
47579
|
+
sheetMap: Ce,
|
|
47580
47580
|
changedKeys: Ae
|
|
47581
47581
|
} of ue.values())
|
|
47582
47582
|
try {
|
|
47583
47583
|
if (Ae.has("images")) {
|
|
47584
|
-
const lt =
|
|
47584
|
+
const lt = Ce.get("images");
|
|
47585
47585
|
(Te = (Pe = l.current) == null ? void 0 : Pe.setSheetImages) == null || Te.call(
|
|
47586
47586
|
Pe,
|
|
47587
47587
|
Array.isArray(lt) ? lt : [],
|
|
@@ -47589,7 +47589,7 @@ const pF = ({
|
|
|
47589
47589
|
);
|
|
47590
47590
|
}
|
|
47591
47591
|
if (Ae.has("iframes")) {
|
|
47592
|
-
const lt =
|
|
47592
|
+
const lt = Ce.get("iframes");
|
|
47593
47593
|
(Ke = (De = l.current) == null ? void 0 : De.setSheetIframes) == null || Ke.call(
|
|
47594
47594
|
De,
|
|
47595
47595
|
Array.isArray(lt) ? lt : [],
|
|
@@ -47644,17 +47644,17 @@ const pF = ({
|
|
|
47644
47644
|
{ sheetId: De, error: me }
|
|
47645
47645
|
);
|
|
47646
47646
|
}
|
|
47647
|
-
},
|
|
47647
|
+
}, Re = () => {
|
|
47648
47648
|
var Pe, Te;
|
|
47649
47649
|
for (const {
|
|
47650
47650
|
sheetId: De,
|
|
47651
47651
|
field: Ke,
|
|
47652
47652
|
map: me,
|
|
47653
|
-
changedKeys:
|
|
47653
|
+
changedKeys: Ce
|
|
47654
47654
|
} of de.values())
|
|
47655
47655
|
try {
|
|
47656
47656
|
const Ae = {}, lt = [];
|
|
47657
|
-
|
|
47657
|
+
Ce.forEach(({ action: it }, rt) => {
|
|
47658
47658
|
it === "delete" ? lt.push(rt) : Ae[rt] = me.get(rt);
|
|
47659
47659
|
}), (Te = (Pe = l.current) == null ? void 0 : Pe.patchSheetMapField) == null || Te.call(
|
|
47660
47660
|
Pe,
|
|
@@ -47669,7 +47669,7 @@ const pF = ({
|
|
|
47669
47669
|
{ sheetId: De, field: Ke, error: Ae }
|
|
47670
47670
|
);
|
|
47671
47671
|
}
|
|
47672
|
-
},
|
|
47672
|
+
}, Fe = () => {
|
|
47673
47673
|
var Pe, Te;
|
|
47674
47674
|
for (const {
|
|
47675
47675
|
sheetId: De,
|
|
@@ -47677,17 +47677,17 @@ const pF = ({
|
|
|
47677
47677
|
changedKeys: me
|
|
47678
47678
|
} of ae.values())
|
|
47679
47679
|
try {
|
|
47680
|
-
const
|
|
47680
|
+
const Ce = {}, Ae = [];
|
|
47681
47681
|
me.forEach(({ action: lt }, it) => {
|
|
47682
|
-
lt === "delete" ? Ae.push(it) :
|
|
47683
|
-
}), (Te = (Pe = l.current) == null ? void 0 : Pe.setSheetConfigFields) == null || Te.call(Pe,
|
|
47682
|
+
lt === "delete" ? Ae.push(it) : Ce[it] = Ke.get(it);
|
|
47683
|
+
}), (Te = (Pe = l.current) == null ? void 0 : Pe.setSheetConfigFields) == null || Te.call(Pe, Ce, {
|
|
47684
47684
|
id: De,
|
|
47685
47685
|
deleteKeys: Ae
|
|
47686
47686
|
});
|
|
47687
|
-
} catch (
|
|
47687
|
+
} catch (Ce) {
|
|
47688
47688
|
console.warn(
|
|
47689
47689
|
"[DSheet] Skipped remote config apply — workbook not ready",
|
|
47690
|
-
{ sheetId: De, error:
|
|
47690
|
+
{ sheetId: De, error: Ce }
|
|
47691
47691
|
);
|
|
47692
47692
|
}
|
|
47693
47693
|
}, Je = () => {
|
|
@@ -47729,13 +47729,13 @@ const pF = ({
|
|
|
47729
47729
|
Array.isArray(me.celldata) || (me.celldata = me.celldata ? Object.values(
|
|
47730
47730
|
me.celldata
|
|
47731
47731
|
) : []);
|
|
47732
|
-
const
|
|
47732
|
+
const Ce = me.celldata;
|
|
47733
47733
|
Ke.forEach(({ action: Ae }, lt) => {
|
|
47734
|
-
const it = lt.lastIndexOf("_"), rt = parseInt(lt.slice(0, it), 10), Wt = parseInt(lt.slice(it + 1), 10), It =
|
|
47734
|
+
const it = lt.lastIndexOf("_"), rt = parseInt(lt.slice(0, it), 10), Wt = parseInt(lt.slice(it + 1), 10), It = Ce.findIndex(
|
|
47735
47735
|
(jt) => jt.r === rt && jt.c === Wt
|
|
47736
47736
|
);
|
|
47737
47737
|
if (Ae === "delete") {
|
|
47738
|
-
It >= 0 &&
|
|
47738
|
+
It >= 0 && Ce.splice(It, 1);
|
|
47739
47739
|
return;
|
|
47740
47740
|
}
|
|
47741
47741
|
const Et = De.get(lt), Mt = {
|
|
@@ -47743,7 +47743,7 @@ const pF = ({
|
|
|
47743
47743
|
c: Wt,
|
|
47744
47744
|
v: (Et == null ? void 0 : Et.v) ?? null
|
|
47745
47745
|
};
|
|
47746
|
-
It >= 0 ?
|
|
47746
|
+
It >= 0 ? Ce[It] = Mt : Ce.push(Mt);
|
|
47747
47747
|
});
|
|
47748
47748
|
}
|
|
47749
47749
|
};
|
|
@@ -47753,25 +47753,25 @@ const pF = ({
|
|
|
47753
47753
|
return;
|
|
47754
47754
|
}
|
|
47755
47755
|
uF(j, () => {
|
|
47756
|
-
Q.size > 0 && We(), ue.size > 0 && Se(), Ze.size > 0 && xe(), D.size > 0 && ke(), de.size > 0 &&
|
|
47756
|
+
Q.size > 0 && We(), ue.size > 0 && Se(), Ze.size > 0 && xe(), D.size > 0 && ke(), de.size > 0 && Re(), ye.size > 0 && Je();
|
|
47757
47757
|
const Pe = Array.from(
|
|
47758
47758
|
ae.values()
|
|
47759
47759
|
).some(({ changedKeys: Te }) => Te.has("cellFormatRanges"));
|
|
47760
47760
|
if (P === 0 && (Q.size > 0 || ue.size > 0 || Ze.size > 0 || D.size > 0 || de.size > 0 || ae.size > 0 || ye.size > 0)) {
|
|
47761
|
-
ae.size > 0 &&
|
|
47761
|
+
ae.size > 0 && Fe(), Pe && we();
|
|
47762
47762
|
return;
|
|
47763
47763
|
}
|
|
47764
47764
|
for (const { sheetId: Te, celldataMap: De, changedKeys: Ke } of te)
|
|
47765
|
-
Ke.forEach(({ action: me },
|
|
47765
|
+
Ke.forEach(({ action: me }, Ce) => {
|
|
47766
47766
|
var rt, Wt;
|
|
47767
|
-
const Ae =
|
|
47767
|
+
const Ae = Ce.lastIndexOf("_"), lt = parseInt(Ce.slice(0, Ae), 10), it = parseInt(Ce.slice(Ae + 1), 10);
|
|
47768
47768
|
try {
|
|
47769
47769
|
if (me === "delete")
|
|
47770
47770
|
(rt = l.current) == null || rt.applyRemoteCellValue(lt, it, null, {
|
|
47771
47771
|
id: Te
|
|
47772
47772
|
});
|
|
47773
47773
|
else {
|
|
47774
|
-
const It = De.get(
|
|
47774
|
+
const It = De.get(Ce), Et = (It == null ? void 0 : It.v) ?? null;
|
|
47775
47775
|
(Wt = l.current) == null || Wt.applyRemoteCellValue(
|
|
47776
47776
|
lt,
|
|
47777
47777
|
it,
|
|
@@ -47788,7 +47788,7 @@ const pF = ({
|
|
|
47788
47788
|
);
|
|
47789
47789
|
}
|
|
47790
47790
|
});
|
|
47791
|
-
ae.size > 0 &&
|
|
47791
|
+
ae.size > 0 && Fe(), P > 0 && (Pe ? we() : Ue());
|
|
47792
47792
|
});
|
|
47793
47793
|
} catch (Pe) {
|
|
47794
47794
|
console.error(
|
|
@@ -48525,7 +48525,7 @@ const BW = lm(void 0), _F = ({
|
|
|
48525
48525
|
},
|
|
48526
48526
|
[]
|
|
48527
48527
|
), T = ge(
|
|
48528
|
-
(xe, fe, Le, ke,
|
|
48528
|
+
(xe, fe, Le, ke, Re, Fe) => {
|
|
48529
48529
|
g((Je) => {
|
|
48530
48530
|
const we = { ...Je }, Ue = we == null ? void 0 : we[ke];
|
|
48531
48531
|
let Me;
|
|
@@ -48533,14 +48533,14 @@ const BW = lm(void 0), _F = ({
|
|
|
48533
48533
|
Ue,
|
|
48534
48534
|
xe,
|
|
48535
48535
|
fe,
|
|
48536
|
-
|
|
48537
|
-
|
|
48536
|
+
Re,
|
|
48537
|
+
Fe
|
|
48538
48538
|
) : Me = XF(
|
|
48539
48539
|
Ue,
|
|
48540
48540
|
xe,
|
|
48541
48541
|
fe,
|
|
48542
|
-
|
|
48543
|
-
|
|
48542
|
+
Re,
|
|
48543
|
+
Fe
|
|
48544
48544
|
), Me !== Ue && (we[ke] = Me), JSON.stringify(we) !== JSON.stringify(Je) ? we : Je;
|
|
48545
48545
|
});
|
|
48546
48546
|
},
|
|
@@ -50644,7 +50644,7 @@ const BN = ({
|
|
|
50644
50644
|
}, Y.readAsText(b);
|
|
50645
50645
|
});
|
|
50646
50646
|
}, tZ = async (e, t, l, i) => {
|
|
50647
|
-
const { handleExportToXLSX: n } = await import("./xlsx-export-impl-
|
|
50647
|
+
const { handleExportToXLSX: n } = await import("./xlsx-export-impl-r3bDoVjv.js");
|
|
50648
50648
|
return n(e, t, l, i);
|
|
50649
50649
|
}, Hr = (e) => {
|
|
50650
50650
|
sy({
|
|
@@ -50736,7 +50736,7 @@ const BN = ({
|
|
|
50736
50736
|
const [o, d] = Xe(!1);
|
|
50737
50737
|
return { handleXLSXUpload: ge(
|
|
50738
50738
|
async (r, m, h) => {
|
|
50739
|
-
const { runXlsxFileUpload: b } = await import("./use-xlsx-import-impl-
|
|
50739
|
+
const { runXlsxFileUpload: b } = await import("./use-xlsx-import-impl-DNTnmzDN.js");
|
|
50740
50740
|
return b(
|
|
50741
50741
|
{
|
|
50742
50742
|
sheetEditorRef: e,
|
|
@@ -51992,7 +51992,7 @@ const bT = ({
|
|
|
51992
51992
|
col: re,
|
|
51993
51993
|
sheetId: xe,
|
|
51994
51994
|
comment: Le,
|
|
51995
|
-
onSendComment: (ke,
|
|
51995
|
+
onSendComment: (ke, Re) => We.onSendComment(fe, Re),
|
|
51996
51996
|
onAction: We.onCommentAction,
|
|
51997
51997
|
ownerAddress: We.ownerAddress,
|
|
51998
51998
|
currentUserAddress: We.currentUserAddress,
|
|
@@ -55672,7 +55672,7 @@ async function tU(e, t) {
|
|
|
55672
55672
|
{ suppressUiWarnings: !0 }
|
|
55673
55673
|
);
|
|
55674
55674
|
else {
|
|
55675
|
-
const { runXlsxFileUpload: m } = await import("./use-xlsx-import-impl-
|
|
55675
|
+
const { runXlsxFileUpload: m } = await import("./use-xlsx-import-impl-DNTnmzDN.js");
|
|
55676
55676
|
await m(
|
|
55677
55677
|
{
|
|
55678
55678
|
sheetEditorRef: a,
|