@fileverse-dev/dsheet 1.0.88 → 1.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +194 -197
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as be from "react";
|
|
2
|
-
import z, { useEffect as Xt, useRef as Yt, useState as
|
|
2
|
+
import z, { useEffect as Xt, useRef as Yt, useState as Pt, useContext as ur, useMemo as Zr, useCallback as Bt, forwardRef as qs, createElement as Kt, createContext as Si, memo as J9, useLayoutEffect as Kl, useId as $9, Children as eQ, isValidElement as tQ, useInsertionEffect as pR, createRef as ef, Fragment as kp, Suspense as rQ, Component as vR, cloneElement as gR, useImperativeHandle as aQ } from "react";
|
|
3
3
|
import * as _p from "react-dom";
|
|
4
4
|
import nQ, { createPortal as iQ } from "react-dom";
|
|
5
5
|
var mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -728,7 +728,7 @@ const bR = /* @__PURE__ */ Vc(lQ), cQ = ({
|
|
|
728
728
|
`, document.head.appendChild(i)) : i && i.remove();
|
|
729
729
|
}, [t]);
|
|
730
730
|
}, lm = "animate-[pulse_2s_ease-in-out_infinite]", fQ = (e) => {
|
|
731
|
-
const [r, t] =
|
|
731
|
+
const [r, t] = Pt({ width: 0, height: 0 });
|
|
732
732
|
return Xt(() => {
|
|
733
733
|
const a = () => {
|
|
734
734
|
if (e.current) {
|
|
@@ -6657,7 +6657,7 @@ class bee extends ew {
|
|
|
6657
6657
|
}
|
|
6658
6658
|
}
|
|
6659
6659
|
const wee = (e, r = !0, t = !1) => {
|
|
6660
|
-
const a = Yt(null), n = Yt(null), [i, o] =
|
|
6660
|
+
const a = Yt(null), n = Yt(null), [i, o] = Pt("initializing"), c = Yt(!1), f = async () => {
|
|
6661
6661
|
a.current && (n.current && await n.current.destroy(), n.current = new bee(
|
|
6662
6662
|
e,
|
|
6663
6663
|
a.current
|
|
@@ -92208,14 +92208,14 @@ var jde = function(r, t) {
|
|
|
92208
92208
|
xlinkHref: "#".concat(o)
|
|
92209
92209
|
}));
|
|
92210
92210
|
}, Pde = function() {
|
|
92211
|
-
var r, t = ur(aa), a = t.context, n = t.setContext, i = t.refs, o = Yt(null), c = Yt(null), f =
|
|
92211
|
+
var r, t = ur(aa), a = t.context, n = t.setContext, i = t.refs, o = Yt(null), c = Yt(null), f = Pt({
|
|
92212
92212
|
col: -1,
|
|
92213
92213
|
col_pre: -1,
|
|
92214
92214
|
col_index: -1
|
|
92215
|
-
}), s = f[0], l = f[1], u =
|
|
92215
|
+
}), s = f[0], l = f[1], u = Pt(!1), d = u[0], h = u[1], p = Pt([]), m = p[0], v = p[1], g = Yt(!0), y = Lt(a, a.currentSheetId), b = y == null ? null : a.luckysheetfile[y], w = Zr(function() {
|
|
92216
92216
|
var R, O, N, L, I, C;
|
|
92217
92217
|
return ((R = b == null ? void 0 : b.frozen) === null || R === void 0 ? void 0 : R.type) === "column" || ((O = b == null ? void 0 : b.frozen) === null || O === void 0 ? void 0 : O.type) === "rangeColumn" || ((N = b == null ? void 0 : b.frozen) === null || N === void 0 ? void 0 : N.type) === "rangeBoth" || ((L = b == null ? void 0 : b.frozen) === null || L === void 0 ? void 0 : L.type) === "both" ? on(((C = (I = b == null ? void 0 : b.frozen) === null || I === void 0 ? void 0 : I.range) === null || C === void 0 ? void 0 : C.column_focus) || 0, a.visibledatacolumn)[1] - 2 + a.scrollLeft : a.scrollLeft;
|
|
92218
|
-
}, [a.visibledatacolumn, b == null ? void 0 : b.frozen, a.scrollLeft]), x =
|
|
92218
|
+
}, [a.visibledatacolumn, b == null ? void 0 : b.frozen, a.scrollLeft]), x = Bt(function(R) {
|
|
92219
92219
|
var O;
|
|
92220
92220
|
if (!a.luckysheet_cols_change_size) {
|
|
92221
92221
|
var N = R.pageX - o.current.getBoundingClientRect().left - window.scrollX, L = N + o.current.scrollLeft, I = (O = i.globalCache.freezen) === null || O === void 0 ? void 0 : O[a.currentSheetId], C = gl(I, L, 0, N, 0), k = C.x, E = C.inVerticalFreeze, A = fi(k, a.visibledatacolumn), T = A[0], j = A[1], H = A[2];
|
|
@@ -92230,23 +92230,23 @@ var jde = function(r, t) {
|
|
|
92230
92230
|
column: A
|
|
92231
92231
|
}]));
|
|
92232
92232
|
}
|
|
92233
|
-
}, [a, s.col_index, i.globalCache.freezen]), M =
|
|
92233
|
+
}, [a, s.col_index, i.globalCache.freezen]), M = Bt(function(R) {
|
|
92234
92234
|
var O = R.nativeEvent;
|
|
92235
92235
|
n(function(N) {
|
|
92236
92236
|
hde(N, i.globalCache, O, o.current, i.cellInput.current, i.fxInput.current);
|
|
92237
92237
|
});
|
|
92238
|
-
}, [i.globalCache, i.cellInput, i.fxInput, n]), S =
|
|
92238
|
+
}, [i.globalCache, i.cellInput, i.fxInput, n]), S = Bt(function() {
|
|
92239
92239
|
a.luckysheet_cols_change_size || l({
|
|
92240
92240
|
col: -1,
|
|
92241
92241
|
col_pre: -1,
|
|
92242
92242
|
col_index: -1
|
|
92243
92243
|
});
|
|
92244
|
-
}, [a.luckysheet_cols_change_size]), _ =
|
|
92244
|
+
}, [a.luckysheet_cols_change_size]), _ = Bt(function(R) {
|
|
92245
92245
|
var O = R.nativeEvent;
|
|
92246
92246
|
n(function(N) {
|
|
92247
92247
|
mde(N, i.globalCache, O, o.current, i.workbookContainer.current, i.cellArea.current);
|
|
92248
92248
|
}), R.stopPropagation();
|
|
92249
|
-
}, [i.cellArea, i.globalCache, i.workbookContainer, n]), D =
|
|
92249
|
+
}, [i.cellArea, i.globalCache, i.workbookContainer, n]), D = Bt(function(R) {
|
|
92250
92250
|
var O = R.nativeEvent;
|
|
92251
92251
|
n(function(N) {
|
|
92252
92252
|
vde(N, i.globalCache, O, o.current, i.workbookContainer.current, i.cellArea.current);
|
|
@@ -92356,14 +92356,14 @@ var jde = function(r, t) {
|
|
|
92356
92356
|
className: "luckysheet-grdblkpush"
|
|
92357
92357
|
}))));
|
|
92358
92358
|
}, Bde = function() {
|
|
92359
|
-
var r, t = ur(aa), a = t.context, n = t.setContext, i = t.settings, o = t.refs, c = Yt(null), f = Yt(null), s =
|
|
92359
|
+
var r, t = ur(aa), a = t.context, n = t.setContext, i = t.settings, o = t.refs, c = Yt(null), f = Yt(null), s = Pt({
|
|
92360
92360
|
row: -1,
|
|
92361
92361
|
row_pre: -1,
|
|
92362
92362
|
row_index: -1
|
|
92363
|
-
}), l = s[0], u = s[1], d =
|
|
92363
|
+
}), l = s[0], u = s[1], d = Pt(!1), h = d[0], p = d[1], m = Pt([]), v = m[0], g = m[1], y = Lt(a, a.currentSheetId), b = y == null ? null : a.luckysheetfile[y], w = Zr(function() {
|
|
92364
92364
|
var O, N, L, I, C, k;
|
|
92365
92365
|
return ((O = b == null ? void 0 : b.frozen) === null || O === void 0 ? void 0 : O.type) === "row" || ((N = b == null ? void 0 : b.frozen) === null || N === void 0 ? void 0 : N.type) === "rangeRow" || ((L = b == null ? void 0 : b.frozen) === null || L === void 0 ? void 0 : L.type) === "rangeBoth" || ((I = b == null ? void 0 : b.frozen) === null || I === void 0 ? void 0 : I.type) === "both" ? nn(((k = (C = b == null ? void 0 : b.frozen) === null || C === void 0 ? void 0 : C.range) === null || k === void 0 ? void 0 : k.row_focus) || 0, a.visibledatarow)[1] + a.scrollTop : a.scrollTop;
|
|
92366
|
-
}, [a.visibledatarow, b == null ? void 0 : b.frozen, a.scrollTop]), x =
|
|
92366
|
+
}, [a.visibledatarow, b == null ? void 0 : b.frozen, a.scrollTop]), x = Bt(function(O) {
|
|
92367
92367
|
var N;
|
|
92368
92368
|
if (!a.luckysheet_rows_change_size) {
|
|
92369
92369
|
var L = O.pageY - f.current.getBoundingClientRect().top - window.scrollY, I = L + f.current.scrollTop, C = (N = o.globalCache.freezen) === null || N === void 0 ? void 0 : N[a.currentSheetId], k = gl(C, 0, I, 0, L), E = k.y, A = k.inHorizontalFreeze, T = ci(E, a.visibledatarow), j = T[0], H = T[1], P = T[2];
|
|
@@ -92373,28 +92373,28 @@ var jde = function(r, t) {
|
|
|
92373
92373
|
row_index: P
|
|
92374
92374
|
}), p(A));
|
|
92375
92375
|
}
|
|
92376
|
-
}, [a.luckysheet_rows_change_size, a.visibledatarow, l.row, l.row_pre, o.globalCache.freezen, a.currentSheetId]), M =
|
|
92376
|
+
}, [a.luckysheet_rows_change_size, a.visibledatarow, l.row, l.row_pre, o.globalCache.freezen, a.currentSheetId]), M = Bt(function(O) {
|
|
92377
92377
|
var N = O.nativeEvent;
|
|
92378
92378
|
n(function(L) {
|
|
92379
92379
|
dde(L, o.globalCache, N, f.current, o.cellInput.current, o.fxInput.current);
|
|
92380
92380
|
});
|
|
92381
|
-
}, [o.globalCache, o.cellInput, o.fxInput, n]), S =
|
|
92381
|
+
}, [o.globalCache, o.cellInput, o.fxInput, n]), S = Bt(function() {
|
|
92382
92382
|
a.luckysheet_rows_change_size || u({
|
|
92383
92383
|
row: -1,
|
|
92384
92384
|
row_pre: -1,
|
|
92385
92385
|
row_index: -1
|
|
92386
92386
|
});
|
|
92387
|
-
}, [a.luckysheet_rows_change_size]), _ =
|
|
92387
|
+
}, [a.luckysheet_rows_change_size]), _ = Bt(function(O) {
|
|
92388
92388
|
var N = O.nativeEvent;
|
|
92389
92389
|
n(function(L) {
|
|
92390
92390
|
pde(L, o.globalCache, N, f.current, o.workbookContainer.current, o.cellArea.current);
|
|
92391
92391
|
}), O.stopPropagation();
|
|
92392
|
-
}, [o.cellArea, o.globalCache, o.workbookContainer, n]), D =
|
|
92392
|
+
}, [o.cellArea, o.globalCache, o.workbookContainer, n]), D = Bt(function(O) {
|
|
92393
92393
|
var N = O.nativeEvent;
|
|
92394
92394
|
n(function(L) {
|
|
92395
92395
|
gde(L, o.globalCache, N, f.current, o.workbookContainer.current, o.cellArea.current);
|
|
92396
92396
|
}), O.stopPropagation();
|
|
92397
|
-
}, [o.cellArea, o.globalCache, o.workbookContainer, n]), R =
|
|
92397
|
+
}, [o.cellArea, o.globalCache, o.workbookContainer, n]), R = Bt(function(O) {
|
|
92398
92398
|
var N = O.nativeEvent;
|
|
92399
92399
|
n(function(L) {
|
|
92400
92400
|
qI(L, i, N, o.workbookContainer.current, o.cellArea.current, "rowHeader");
|
|
@@ -92495,7 +92495,7 @@ var jde = function(r, t) {
|
|
|
92495
92495
|
}, [i]), Xt(function() {
|
|
92496
92496
|
o && n.current != null && (n.current.innerHTML = o);
|
|
92497
92497
|
}, [o]);
|
|
92498
|
-
var f =
|
|
92498
|
+
var f = Bt(function(d, h) {
|
|
92499
92499
|
var p;
|
|
92500
92500
|
n.current != null && (p = n.current.innerHTML), c && p !== a.current && c(p || "", h), a.current = p || "";
|
|
92501
92501
|
}, [n, c]), s = t.innerRef, l = t.onBlur, u = t.allowEdit;
|
|
@@ -123810,7 +123810,7 @@ function oft({ children: e, isPresent: r }) {
|
|
|
123810
123810
|
}, [r]), ce.jsx(ift, { isPresent: r, childRef: a, sizeRef: n, children: be.cloneElement(e, { ref: a }) });
|
|
123811
123811
|
}
|
|
123812
123812
|
const sft = ({ children: e, initial: r, isPresent: t, onExitComplete: a, custom: n, presenceAffectsLayout: i, mode: o }) => {
|
|
123813
|
-
const c = Bx(lft), f = $9(), s =
|
|
123813
|
+
const c = Bx(lft), f = $9(), s = Bt((u) => {
|
|
123814
123814
|
c.set(u, !0);
|
|
123815
123815
|
for (const d of c.values())
|
|
123816
123816
|
if (!d)
|
|
@@ -123849,7 +123849,7 @@ function FO(e = !0) {
|
|
|
123849
123849
|
Xt(() => {
|
|
123850
123850
|
e && n(i);
|
|
123851
123851
|
}, [e]);
|
|
123852
|
-
const o =
|
|
123852
|
+
const o = Bt(() => e && a && a(i), [i, a, e]);
|
|
123853
123853
|
return !t && a ? [!1, o] : [!0];
|
|
123854
123854
|
}
|
|
123855
123855
|
const k3 = (e) => e.key || "";
|
|
@@ -123860,7 +123860,7 @@ function YE(e) {
|
|
|
123860
123860
|
}), r;
|
|
123861
123861
|
}
|
|
123862
123862
|
const zx = typeof window < "u", zO = zx ? Kl : Xt, cft = ({ children: e, custom: r, initial: t = !0, onExitComplete: a, presenceAffectsLayout: n = !0, mode: i = "sync", propagate: o = !1 }) => {
|
|
123863
|
-
const [c, f] = FO(o), s = Zr(() => YE(e), [e]), l = o && !c ? [] : s.map(k3), u = Yt(!0), d = Yt(s), h = Bx(() => /* @__PURE__ */ new Map()), [p, m] =
|
|
123863
|
+
const [c, f] = FO(o), s = Zr(() => YE(e), [e]), l = o && !c ? [] : s.map(k3), u = Yt(!0), d = Yt(s), h = Bx(() => /* @__PURE__ */ new Map()), [p, m] = Pt(s), [v, g] = Pt(s);
|
|
123864
123864
|
zO(() => {
|
|
123865
123865
|
u.current = !1, d.current = s;
|
|
123866
123866
|
for (let w = 0; w < v.length; w++) {
|
|
@@ -124126,7 +124126,7 @@ function hd(e) {
|
|
|
124126
124126
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
124127
124127
|
}
|
|
124128
124128
|
function xft(e, r, t) {
|
|
124129
|
-
return
|
|
124129
|
+
return Bt(
|
|
124130
124130
|
(a) => {
|
|
124131
124131
|
a && e.onMount && e.onMount(a), r && (a ? r.mount(a) : r.unmount()), t && (typeof t == "function" ? t(a) : hd(t) && (t.current = a));
|
|
124132
124132
|
},
|
|
@@ -130781,7 +130781,7 @@ const c6 = z.forwardRef(
|
|
|
130781
130781
|
contentType: o = "icon",
|
|
130782
130782
|
...c
|
|
130783
130783
|
}, f) => {
|
|
130784
|
-
const [s, l] =
|
|
130784
|
+
const [s, l] = Pt(a), u = (d) => {
|
|
130785
130785
|
!i && l(d), !i && t(d);
|
|
130786
130786
|
};
|
|
130787
130787
|
return /* @__PURE__ */ ce.jsx(
|
|
@@ -131299,7 +131299,7 @@ function Hb(e, r) {
|
|
|
131299
131299
|
return typeof e == "function" ? e(r) : e && (e.current = r), e;
|
|
131300
131300
|
}
|
|
131301
131301
|
function Yht(e, r) {
|
|
131302
|
-
var t =
|
|
131302
|
+
var t = Pt(function() {
|
|
131303
131303
|
return {
|
|
131304
131304
|
// value
|
|
131305
131305
|
value: e,
|
|
@@ -134020,7 +134020,7 @@ const R3 = {
|
|
|
134020
134020
|
isAnimated: i = !1,
|
|
134021
134021
|
...o
|
|
134022
134022
|
}, c) => {
|
|
134023
|
-
const [f, s] =
|
|
134023
|
+
const [f, s] = Pt(e), [l, u] = Pt(
|
|
134024
134024
|
Object.keys(R3).findIndex(
|
|
134025
134025
|
(h) => R3[h] === e
|
|
134026
134026
|
)
|
|
@@ -135022,7 +135022,7 @@ qs(
|
|
|
135022
135022
|
)
|
|
135023
135023
|
);
|
|
135024
135024
|
const u3t = ({ content: e }) => {
|
|
135025
|
-
const [r, t] =
|
|
135025
|
+
const [r, t] = Pt(0), a = Yt(null);
|
|
135026
135026
|
return Xt(() => {
|
|
135027
135027
|
e && a.current ? t(a.current.scrollHeight) : t(0);
|
|
135028
135028
|
}, [e]), /* @__PURE__ */ ce.jsx(
|
|
@@ -152423,7 +152423,7 @@ function p5t(e) {
|
|
|
152423
152423
|
}, r);
|
|
152424
152424
|
}
|
|
152425
152425
|
function v5t(e) {
|
|
152426
|
-
var r, t =
|
|
152426
|
+
var r, t = Pt(function() {
|
|
152427
152427
|
return LS(e);
|
|
152428
152428
|
}), a = t[0], n = t[1];
|
|
152429
152429
|
return Xt(function() {
|
|
@@ -152568,7 +152568,7 @@ function I5t(e) {
|
|
|
152568
152568
|
}
|
|
152569
152569
|
function DS(e, r) {
|
|
152570
152570
|
r === void 0 && (r = 0);
|
|
152571
|
-
var t =
|
|
152571
|
+
var t = Pt(e), a = t[0], n = t[1], i = Yt(null);
|
|
152572
152572
|
function o(c) {
|
|
152573
152573
|
return new Promise(function(f) {
|
|
152574
152574
|
var s;
|
|
@@ -152610,7 +152610,7 @@ function P5t(e) {
|
|
|
152610
152610
|
}, [e]);
|
|
152611
152611
|
}
|
|
152612
152612
|
function B5t(e) {
|
|
152613
|
-
var r = e.children, t = tz(), a = b5t(), n = L5t(), i = Yt(_m), o = Yt(!1), c = Yt(!1), f = Yt(t), s = DS(Date.now(), 200), l = DS("", 100), u =
|
|
152613
|
+
var r = e.children, t = tz(), a = b5t(), n = L5t(), i = Yt(_m), o = Yt(!1), c = Yt(!1), f = Yt(t), s = DS(Date.now(), 200), l = DS("", 100), u = Pt(!1), d = Pt(a), h = Pt(null), p = Pt(/* @__PURE__ */ new Set()), m = Pt(null), v = Pt(n), g = Pt(!1), y = g[0], b = g[1];
|
|
152614
152614
|
return P5t(b), Kt(El.Provider, {
|
|
152615
152615
|
value: {
|
|
152616
152616
|
activeCategoryState: h,
|
|
@@ -152811,7 +152811,7 @@ function W5t(e, r) {
|
|
|
152811
152811
|
}
|
|
152812
152812
|
function G5t() {
|
|
152813
152813
|
var e = Al();
|
|
152814
|
-
return
|
|
152814
|
+
return Bt(function(r) {
|
|
152815
152815
|
requestAnimationFrame(function() {
|
|
152816
152816
|
e.current && (e.current.scrollTop = r);
|
|
152817
152817
|
});
|
|
@@ -152892,7 +152892,7 @@ function egt(e) {
|
|
|
152892
152892
|
return c;
|
|
152893
152893
|
}
|
|
152894
152894
|
function A0() {
|
|
152895
|
-
var e = U2(), r = e[0], t = e[1], a = av(), n = a[0], i = a[1], o =
|
|
152895
|
+
var e = U2(), r = e[0], t = e[1], a = av(), n = a[0], i = a[1], o = Bt(function() {
|
|
152896
152896
|
r && t(null), n && i(!1);
|
|
152897
152897
|
}, [r, n, t, i]);
|
|
152898
152898
|
return o;
|
|
@@ -152938,19 +152938,19 @@ function rgt() {
|
|
|
152938
152938
|
}
|
|
152939
152939
|
function S0() {
|
|
152940
152940
|
var e = eu();
|
|
152941
|
-
return
|
|
152941
|
+
return Bt(function() {
|
|
152942
152942
|
Hs(e.current);
|
|
152943
152943
|
}, [e]);
|
|
152944
152944
|
}
|
|
152945
152945
|
function agt() {
|
|
152946
152946
|
var e = r_();
|
|
152947
|
-
return
|
|
152947
|
+
return Bt(function() {
|
|
152948
152948
|
e.current && oz(e.current);
|
|
152949
152949
|
}, [e]);
|
|
152950
152950
|
}
|
|
152951
152951
|
function hz() {
|
|
152952
152952
|
var e = a_();
|
|
152953
|
-
return
|
|
152953
|
+
return Bt(function() {
|
|
152954
152954
|
e.current && oz(e.current);
|
|
152955
152955
|
}, [e]);
|
|
152956
152956
|
}
|
|
@@ -153251,13 +153251,13 @@ function ygt() {
|
|
|
153251
153251
|
}
|
|
153252
153252
|
function gz() {
|
|
153253
153253
|
var e = hz(), r = E6(), t = Al();
|
|
153254
|
-
return
|
|
153254
|
+
return Bt(function() {
|
|
153255
153255
|
return r ? L6(t.current) : e();
|
|
153256
153256
|
}, [t, e, r]);
|
|
153257
153257
|
}
|
|
153258
153258
|
function bgt() {
|
|
153259
153259
|
var e = S0(), r = hz(), t = E6();
|
|
153260
|
-
return
|
|
153260
|
+
return Bt(function() {
|
|
153261
153261
|
return t ? e() : r();
|
|
153262
153262
|
}, [e, t, r]);
|
|
153263
153263
|
}
|
|
@@ -153714,7 +153714,7 @@ function jz(e) {
|
|
|
153714
153714
|
return e.imgUrl !== void 0;
|
|
153715
153715
|
}
|
|
153716
153716
|
function qz(e, r) {
|
|
153717
|
-
var t = Yt(), a = pz(), n = F5t(), i = U2(), o = i[1], c = A0(), f = t_(), s = f[0], l = _5t(r), u = az(), d = u[1], h = E0(), p = M0(), m =
|
|
153717
|
+
var t = Yt(), a = pz(), n = F5t(), i = U2(), o = i[1], c = A0(), f = t_(), s = f[0], l = _5t(r), u = az(), d = u[1], h = E0(), p = M0(), m = Bt(function(y) {
|
|
153718
153718
|
if (!n.current) {
|
|
153719
153719
|
c();
|
|
153720
153720
|
var b = FS(y), w = b[0], x = b[1];
|
|
@@ -153723,14 +153723,14 @@ function qz(e, r) {
|
|
|
153723
153723
|
d(), Fgt(w, M), l(Hgt(w, M, p, h), y);
|
|
153724
153724
|
}
|
|
153725
153725
|
}
|
|
153726
|
-
}, [s, c, n, l, d, h, p]), v =
|
|
153726
|
+
}, [s, c, n, l, d, h, p]), v = Bt(function(y) {
|
|
153727
153727
|
var b;
|
|
153728
153728
|
t.current && clearTimeout(t.current);
|
|
153729
153729
|
var w = FS(y), x = w[0];
|
|
153730
153730
|
!x || !V2(x) || (t.current = (b = window) == null ? void 0 : b.setTimeout(function() {
|
|
153731
153731
|
n.current = !0, t.current = void 0, c(), a(y.target), o(x);
|
|
153732
153732
|
}, 500));
|
|
153733
|
-
}, [n, c, a, o]), g =
|
|
153733
|
+
}, [n, c, a, o]), g = Bt(function() {
|
|
153734
153734
|
t.current ? (clearTimeout(t.current), t.current = void 0) : n.current && requestAnimationFrame(function() {
|
|
153735
153735
|
n.current = !1;
|
|
153736
153736
|
});
|
|
@@ -154157,7 +154157,7 @@ var e7 = /* @__PURE__ */ tn.create({
|
|
|
154157
154157
|
}
|
|
154158
154158
|
}), t7 = !1;
|
|
154159
154159
|
function t4t() {
|
|
154160
|
-
var e =
|
|
154160
|
+
var e = Pt(t7), r = e[0], t = e[1];
|
|
154161
154161
|
return Xt(function() {
|
|
154162
154162
|
t(!0), t7 = !0;
|
|
154163
154163
|
}, []), r || t7;
|
|
@@ -154640,7 +154640,7 @@ function b4t() {
|
|
|
154640
154640
|
}, Kt(w4t, null), Kt(p4t, null), r ? Kt(y4t, null) : null) : null;
|
|
154641
154641
|
}
|
|
154642
154642
|
function w4t() {
|
|
154643
|
-
var e, r = JF(), t =
|
|
154643
|
+
var e, r = JF(), t = Pt(null), a = t[0], n = t[1], i = M0(), o = U2(), c = o[0], f = E0();
|
|
154644
154644
|
h4t(r.showPreview, n);
|
|
154645
154645
|
var s = m2((e = a == null ? void 0 : a.unified) != null ? e : a == null ? void 0 : a.originalUnified), l = s != null && a != null;
|
|
154646
154646
|
return Kt(u, null);
|
|
@@ -154818,7 +154818,7 @@ var US = {
|
|
|
154818
154818
|
".epr-auto-theme": /* @__PURE__ */ un({}, WS)
|
|
154819
154819
|
}));
|
|
154820
154820
|
function S4t() {
|
|
154821
|
-
var e =
|
|
154821
|
+
var e = Pt(null), r = e[0], t = e[1], a = _4t();
|
|
154822
154822
|
k4t(t);
|
|
154823
154823
|
var n = E6(), i = QF(), o = a_(), c = C4t();
|
|
154824
154824
|
return Kt("div", {
|
|
@@ -154977,7 +154977,7 @@ function B4t() {
|
|
|
154977
154977
|
}, Kt(F4t, null), r ? Kt(Fz, null) : null);
|
|
154978
154978
|
}
|
|
154979
154979
|
function F4t() {
|
|
154980
|
-
var e =
|
|
154980
|
+
var e = Pt(0), r = e[0], t = e[1], a = A0(), n = eu(), i = y5t(), o = w5t(), c = ogt(), f = c.statusSearchResults, s = c.searchTerm, l = c.onChange, u = n == null ? void 0 : n.current, d = u == null ? void 0 : u.value;
|
|
154981
154981
|
return Kt(I6, {
|
|
154982
154982
|
className: ua(h5.searchContainer)
|
|
154983
154983
|
}, Kt(I4t, {
|
|
@@ -155095,7 +155095,7 @@ function H4t(e) {
|
|
|
155095
155095
|
return Kt(H5t, null, Kt(j3t, null), Kt(p5t, Object.assign({}, e), Kt(V4t, null)));
|
|
155096
155096
|
}
|
|
155097
155097
|
function V4t() {
|
|
155098
|
-
var e = T6(), r = e[0], t = XF(), a =
|
|
155098
|
+
var e = T6(), r = e[0], t = XF(), a = Pt(!r), n = a[0], i = a[1], o = k5t();
|
|
155099
155099
|
return Xt(function() {
|
|
155100
155100
|
r && !t || n || i(!0);
|
|
155101
155101
|
}, [n, t, r]), o ? Kt(Tgt, null, Kt(Jgt, null), Kt(U4t, {
|
|
@@ -155138,7 +155138,7 @@ function Y4t(e) {
|
|
|
155138
155138
|
}
|
|
155139
155139
|
qs(
|
|
155140
155140
|
({ handleEmojiClick: e, handleAvatarInput: r, onRemove: t, className: a, ...n }, i) => {
|
|
155141
|
-
const [o, c] =
|
|
155141
|
+
const [o, c] = Pt("emojiPicker"), f = Yt(null), s = () => {
|
|
155142
155142
|
f.current && f.current.click();
|
|
155143
155143
|
};
|
|
155144
155144
|
return /* @__PURE__ */ ce.jsx("div", { ref: i, className: a, ...n, children: /* @__PURE__ */ ce.jsxs(
|
|
@@ -155643,7 +155643,7 @@ const b6t = be.forwardRef(({ className: e, align: r = "center", sideOffset: t =
|
|
|
155643
155643
|
));
|
|
155644
155644
|
b6t.displayName = OP.displayName;
|
|
155645
155645
|
const w6t = ({ duration: e, variant: r }) => {
|
|
155646
|
-
const [t, a] =
|
|
155646
|
+
const [t, a] = Pt(100);
|
|
155647
155647
|
return Xt(() => {
|
|
155648
155648
|
const n = Date.now(), i = setInterval(() => {
|
|
155649
155649
|
const o = Date.now() - n, c = Math.max(0, 100 - o / e * 100);
|
|
@@ -156172,13 +156172,13 @@ var R9 = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.CARD = "CARD", e))(R9 || {}
|
|
|
156172
156172
|
const V6t = ({
|
|
156173
156173
|
delay: e = 2e3
|
|
156174
156174
|
}) => {
|
|
156175
|
-
const [r, t] =
|
|
156175
|
+
const [r, t] = Pt(!1), [a, n] = Pt(!1), i = Yt(null), o = Bt(() => {
|
|
156176
156176
|
i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
156177
156177
|
t(!0), n(!0);
|
|
156178
156178
|
}, e);
|
|
156179
|
-
}, [e]), c =
|
|
156179
|
+
}, [e]), c = Bt(() => {
|
|
156180
156180
|
a || t(!1), i.current && clearTimeout(i.current), n(!1);
|
|
156181
|
-
}, [a]), f =
|
|
156181
|
+
}, [a]), f = Bt(() => t(!0), []), s = Bt(() => t(!1), []), l = Bt(() => o(), [o]), u = Bt(() => c(), [c]);
|
|
156182
156182
|
return {
|
|
156183
156183
|
onMouseEnter: f,
|
|
156184
156184
|
onMouseLeave: s,
|
|
@@ -156538,7 +156538,7 @@ If "derivatives": exchange name (e.g., "binance_futures").`,
|
|
|
156538
156538
|
return g.n !== "PNL";
|
|
156539
156539
|
}), s = i ? n.defaultCandidates.slice(0, 10) : c, l = i ? n.functionCandidates : n.functionCandidates.filter(function(g) {
|
|
156540
156540
|
return g.t !== 20;
|
|
156541
|
-
}), u = (t = n.luckysheet_select_save) === null || t === void 0 ? void 0 : t[0], d = Yt(null), h =
|
|
156541
|
+
}), u = (t = n.luckysheet_select_save) === null || t === void 0 ? void 0 : t[0], d = Yt(null), h = Pt(0), p = h[0], m = h[1], v = function() {
|
|
156542
156542
|
var y, b, w;
|
|
156543
156543
|
if (!(!(!((y = u == null ? void 0 : u.top) === null || y === void 0) && y.toString()) || !(!((b = u.height_move) === null || b === void 0) && b.toString()) || !d.current)) {
|
|
156544
156544
|
var x = 360, M = u.top + u.height_move, S = window.innerHeight - M, _ = x > S, D = (u == null ? void 0 : u.height_move) || 0, R = ((w = d.current) === null || w === void 0 ? void 0 : w.offsetHeight) || 0;
|
|
@@ -156759,13 +156759,13 @@ If "derivatives": exchange name (e.g., "binance_futures").`,
|
|
|
156759
156759
|
return e;
|
|
156760
156760
|
}, N9.apply(this, arguments);
|
|
156761
156761
|
}, G6t = function(r) {
|
|
156762
|
-
var t, a = ur(aa).context, n = (t = a.luckysheet_select_save) === null || t === void 0 ? void 0 : t[0], i = Vr(a).formulaMore, o = a.formulaCache.functionlistMap[a.functionHint], c =
|
|
156762
|
+
var t, a = ur(aa).context, n = (t = a.luckysheet_select_save) === null || t === void 0 ? void 0 : t[0], i = Vr(a).formulaMore, o = a.formulaCache.functionlistMap[a.functionHint], c = Pt(localStorage.getItem(o == null ? void 0 : o.API_KEY)), f = c[0], s = c[1], l = Pt(!f), u = l[0], d = l[1], h = Pt(!!localStorage.getItem(o == null ? void 0 : o.API_KEY)), p = h[0], m = h[1], v = Pt(!0), g = v[0], y = v[1];
|
|
156763
156763
|
Xt(function() {
|
|
156764
156764
|
o && (m(!!localStorage.getItem(o == null ? void 0 : o.API_KEY)), s(localStorage.getItem(o == null ? void 0 : o.API_KEY) || ""), d(!localStorage.getItem(o == null ? void 0 : o.API_KEY)));
|
|
156765
156765
|
}, [o]);
|
|
156766
156766
|
var b = {
|
|
156767
156767
|
ETHERSCAN_API_KEY: "Etherscan API key"
|
|
156768
|
-
}, w = Yt(null), x =
|
|
156768
|
+
}, w = Yt(null), x = Pt(0), M = x[0], S = x[1], _ = function() {
|
|
156769
156769
|
var R, O, N;
|
|
156770
156770
|
if (!(!(!((R = n == null ? void 0 : n.top) === null || R === void 0) && R.toString()) || !(!((O = n.height_move) === null || O === void 0) && O.toString()) || !w.current)) {
|
|
156771
156771
|
var L = 360, I = n.top + n.height_move, C = window.innerHeight - I, k = L > C, E = (n == null ? void 0 : n.height_move) || 0, A = ((N = w.current) === null || N === void 0 ? void 0 : N.offsetHeight) || 0;
|
|
@@ -157052,7 +157052,7 @@ var I9 = function() {
|
|
|
157052
157052
|
return e;
|
|
157053
157053
|
}, I9.apply(this, arguments);
|
|
157054
157054
|
}, Y6t = function() {
|
|
157055
|
-
var r, t, a, n, i, o, c = ur(aa), f = c.context, s = c.setContext, l = c.refs, u = Yt(null), d = Yt(null), h = Sg(f.luckysheetCellUpdate), p = Sg(f.currentSheetId), m =
|
|
157055
|
+
var r, t, a, n, i, o, c = ur(aa), f = c.context, s = c.setContext, l = c.refs, u = Yt(null), d = Yt(null), h = Sg(f.luckysheetCellUpdate), p = Sg(f.currentSheetId), m = Pt(!1), v = m[0], g = m[1], y = Pt(!1), b = y[0], w = y[1], x = Pt({
|
|
157056
157056
|
left: 0,
|
|
157057
157057
|
top: 0
|
|
157058
157058
|
}), M = x[0], S = x[1], _ = (r = f.luckysheet_select_save) === null || r === void 0 ? void 0 : r[0], D = _ == null ? void 0 : _.row_focus, R = _ == null ? void 0 : _.column_focus, O = Yt(""), N = Zr(function() {
|
|
@@ -157092,9 +157092,9 @@ var I9 = function() {
|
|
|
157092
157092
|
var F;
|
|
157093
157093
|
(!_ || !((F = f.rangeDialog) === null || F === void 0) && F.show || te.isEmpty(f.luckysheetCellUpdate)) && w(!1);
|
|
157094
157094
|
}, [_, (t = f.rangeDialog) === null || t === void 0 ? void 0 : t.show, f.luckysheetCellUpdate]);
|
|
157095
|
-
var L =
|
|
157095
|
+
var L = Bt(function() {
|
|
157096
157096
|
return document.querySelector(".luckysheet-formula-search-item-active");
|
|
157097
|
-
}, []), I =
|
|
157097
|
+
}, []), I = Bt(function(F) {
|
|
157098
157098
|
var V, Z = document.getElementById("luckysheet-rich-text-editor");
|
|
157099
157099
|
if (Z) {
|
|
157100
157100
|
Z.focus();
|
|
@@ -157113,20 +157113,20 @@ var I9 = function() {
|
|
|
157113
157113
|
ue.functionCandidates = [], ue.defaultCandidates = [], ue.functionHint = F;
|
|
157114
157114
|
});
|
|
157115
157115
|
}
|
|
157116
|
-
}, [s]), C =
|
|
157116
|
+
}, [s]), C = Bt(function() {
|
|
157117
157117
|
var F = L();
|
|
157118
157118
|
F && F.classList.remove("luckysheet-formula-search-item-active");
|
|
157119
|
-
}, [L]), k =
|
|
157119
|
+
}, [L]), k = Bt(function(F) {
|
|
157120
157120
|
var V, Z, ne = (Z = (V = L()) === null || V === void 0 ? void 0 : V.querySelector(".luckysheet-formula-search-func")) === null || Z === void 0 ? void 0 : Z.textContent;
|
|
157121
157121
|
ne && (I(ne), F.preventDefault(), F.stopPropagation());
|
|
157122
|
-
}, [L, I]), E =
|
|
157122
|
+
}, [L, I]), E = Bt(function(F) {
|
|
157123
157123
|
var V, Z;
|
|
157124
157124
|
if (!F.target.className.includes("sign-fortune")) {
|
|
157125
157125
|
O.current = u.current.innerText;
|
|
157126
157126
|
var ne = (Z = (V = L()) === null || V === void 0 ? void 0 : V.querySelector(".luckysheet-formula-search-func")) === null || Z === void 0 ? void 0 : Z.textContent;
|
|
157127
157127
|
ne && (I(ne), F.preventDefault(), F.stopPropagation());
|
|
157128
157128
|
}
|
|
157129
|
-
}, [L, I]), A =
|
|
157129
|
+
}, [L, I]), A = Bt(function(F) {
|
|
157130
157130
|
if (d.current = new KeyboardEvent(F.type, F.nativeEvent), O.current = u.current.innerText, F.key === "Escape" && f.luckysheetCellUpdate.length > 0)
|
|
157131
157131
|
s(function(ae) {
|
|
157132
157132
|
cl(ae), Ro(ae, "down", 0);
|
|
@@ -157157,7 +157157,7 @@ var I9 = function() {
|
|
|
157157
157157
|
}
|
|
157158
157158
|
F.preventDefault();
|
|
157159
157159
|
}
|
|
157160
|
-
}, [C, f.luckysheetCellUpdate.length, k, s, _]), T =
|
|
157160
|
+
}, [C, f.luckysheetCellUpdate.length, k, s, _]), T = Bt(function(F, V) {
|
|
157161
157161
|
var Z = d.current;
|
|
157162
157162
|
if (Z) {
|
|
157163
157163
|
var ne = Z.keyCode;
|
|
@@ -157165,9 +157165,9 @@ var I9 = function() {
|
|
|
157165
157165
|
(se.formulaCache.rangestart || se.formulaCache.rangedrag_column_start || se.formulaCache.rangedrag_row_start || Cs(se)) && V || oa(se, se.luckysheet_select_save) && $d(se, l.fxInput.current, l.cellInput.current, ne, O.current);
|
|
157166
157166
|
});
|
|
157167
157167
|
}
|
|
157168
|
-
}, [l.cellInput, l.fxInput, s]), j =
|
|
157168
|
+
}, [l.cellInput, l.fxInput, s]), j = Bt(function(F) {
|
|
157169
157169
|
te.isEmpty(f.luckysheetCellUpdate) && F.preventDefault();
|
|
157170
|
-
}, [f.luckysheetCellUpdate]), H = f.config || {}, P = H.rowReadOnly || {}, G = H.colReadOnly || {}, X = !((G[R] || P[D]) && f.allowEdit === !0), J =
|
|
157170
|
+
}, [f.luckysheetCellUpdate]), H = f.config || {}, P = H.rowReadOnly || {}, G = H.colReadOnly || {}, X = !((G[R] || P[D]) && f.allowEdit === !0), J = Bt(function() {
|
|
157171
157171
|
var F;
|
|
157172
157172
|
if (!_ || !((F = f.rangeDialog) === null || F === void 0) && F.show)
|
|
157173
157173
|
return {
|
|
@@ -157210,7 +157210,7 @@ var I9 = function() {
|
|
|
157210
157210
|
}
|
|
157211
157211
|
}
|
|
157212
157212
|
}, [_, (n = f.rangeDialog) === null || n === void 0 ? void 0 : n.show, f.luckysheetCellUpdate, b, f.scrollLeft, f.scrollTop, l.cellArea]);
|
|
157213
|
-
var B =
|
|
157213
|
+
var B = Bt(function() {
|
|
157214
157214
|
var F;
|
|
157215
157215
|
return !_ || !((F = f.rangeDialog) === null || F === void 0) && F.show ? {
|
|
157216
157216
|
display: "none"
|
|
@@ -157219,7 +157219,7 @@ var I9 = function() {
|
|
|
157219
157219
|
left: "0",
|
|
157220
157220
|
display: "block"
|
|
157221
157221
|
};
|
|
157222
|
-
}, [_, (i = f.rangeDialog) === null || i === void 0 ? void 0 : i.show]), Q =
|
|
157222
|
+
}, [_, (i = f.rangeDialog) === null || i === void 0 ? void 0 : i.show]), Q = Bt(function() {
|
|
157223
157223
|
if (!_) return "";
|
|
157224
157224
|
var F = _.row_focus || 0, V = _.column_focus || 0, Z = Xa(V), ne = F + 1;
|
|
157225
157225
|
return "".concat(Z).concat(ne);
|
|
@@ -157370,9 +157370,9 @@ var I9 = function() {
|
|
|
157370
157370
|
hideModal: function() {
|
|
157371
157371
|
}
|
|
157372
157372
|
}), X6t = function(r) {
|
|
157373
|
-
var t = r.children, a =
|
|
157373
|
+
var t = r.children, a = Pt(null), n = a[0], i = a[1], o = Bt(function(s) {
|
|
157374
157374
|
i(s);
|
|
157375
|
-
}, []), c =
|
|
157375
|
+
}, []), c = Bt(function() {
|
|
157376
157376
|
i(null);
|
|
157377
157377
|
}, []), f = Zr(function() {
|
|
157378
157378
|
return {
|
|
@@ -157400,7 +157400,7 @@ var I9 = function() {
|
|
|
157400
157400
|
}, n));
|
|
157401
157401
|
};
|
|
157402
157402
|
function L0() {
|
|
157403
|
-
var e = ur(v_), r = e.showModal, t = e.hideModal, a =
|
|
157403
|
+
var e = ur(v_), r = e.showModal, t = e.hideModal, a = Bt(function(n, i, o, c) {
|
|
157404
157404
|
i === void 0 && (i = "ok"), o === void 0 && (o = t), c === void 0 && (c = t), r(/* @__PURE__ */ z.createElement(Z6t, {
|
|
157405
157405
|
type: i,
|
|
157406
157406
|
onOk: o,
|
|
@@ -157413,19 +157413,19 @@ function L0() {
|
|
|
157413
157413
|
};
|
|
157414
157414
|
}
|
|
157415
157415
|
var K6t = function(r) {
|
|
157416
|
-
var t = r.getContainer, a = ur(aa), n = a.context, i = a.setContext, o = a.refs, c = Vr(n).findAndReplace, f =
|
|
157416
|
+
var t = r.getContainer, a = ur(aa), n = a.context, i = a.setContext, o = a.refs, c = Vr(n).findAndReplace, f = Pt(""), s = f[0], l = f[1], u = Pt(""), d = u[0], h = u[1], p = Pt([]), m = p[0], v = p[1], g = Pt(), y = g[0], b = g[1], w = L0().showAlert, x = Yt(null), M = Yt(null), S = Yt(null), _ = Pt({
|
|
157417
157417
|
regCheck: !1,
|
|
157418
157418
|
wordCheck: !1,
|
|
157419
157419
|
caseCheck: !1
|
|
157420
|
-
}), D = _[0], R = _[1], O =
|
|
157420
|
+
}), D = _[0], R = _[1], O = Bt(function() {
|
|
157421
157421
|
te.set(o.globalCache, "searchDialog.mouseEnter", !1), i(function(I) {
|
|
157422
157422
|
I.showSearch = !1, I.showReplace = !1;
|
|
157423
157423
|
});
|
|
157424
|
-
}, [o.globalCache, i]), N =
|
|
157424
|
+
}, [o.globalCache, i]), N = Bt(function(I, C) {
|
|
157425
157425
|
return R(Wl(function(k) {
|
|
157426
157426
|
te.set(k, I, C);
|
|
157427
157427
|
}));
|
|
157428
|
-
}, []), L =
|
|
157428
|
+
}, []), L = Bt(function(I) {
|
|
157429
157429
|
var C = I.getBoundingClientRect();
|
|
157430
157430
|
return {
|
|
157431
157431
|
left: (C.width - 500) / 2,
|
|
@@ -157654,9 +157654,9 @@ var K6t = function(r) {
|
|
|
157654
157654
|
return e;
|
|
157655
157655
|
}, Rg.apply(this, arguments);
|
|
157656
157656
|
}, Q6t = function(r) {
|
|
157657
|
-
var t = r.r, a = r.c, n = r.rc, i = r.originText, o = r.originType, c = r.originAddress, f = r.isEditing, s = r.position, l = ur(aa), u = l.context, d = l.setContext, h = l.refs, p =
|
|
157657
|
+
var t = r.r, a = r.c, n = r.rc, i = r.originText, o = r.originType, c = r.originAddress, f = r.isEditing, s = r.position, l = ur(aa), u = l.context, d = l.setContext, h = l.refs, p = Pt(i), m = p[0], v = p[1], g = Pt(c), y = g[0], b = g[1], w = Pt(o), x = w[0], M = w[1], S = Vr(u), _ = S.insertLink, D = S.linkTypeList, R = Qfe(u, x, y), O = Zr(function() {
|
|
157658
157658
|
return m.trim() ? x === "webpage" ? !y.trim() || !R.isValid : x === "sheet" ? !y.trim() : !1 : !0;
|
|
157659
|
-
}, [m, y, x, R.isValid]), N =
|
|
157659
|
+
}, [m, y, x, R.isValid]), N = Bt(function() {
|
|
157660
157660
|
te.set(h.globalCache, "linkCard.mouseEnter", !1), d(function(C) {
|
|
157661
157661
|
C.linkCard = void 0;
|
|
157662
157662
|
});
|
|
@@ -157684,7 +157684,7 @@ var K6t = function(r) {
|
|
|
157684
157684
|
return k.stopPropagation();
|
|
157685
157685
|
}
|
|
157686
157686
|
};
|
|
157687
|
-
}, [h.globalCache]), I =
|
|
157687
|
+
}, [h.globalCache]), I = Bt(function(C, k) {
|
|
157688
157688
|
return /* @__PURE__ */ z.createElement("div", {
|
|
157689
157689
|
className: "fortune-toolbar-button",
|
|
157690
157690
|
onClick: k,
|
|
@@ -157831,7 +157831,7 @@ var K6t = function(r) {
|
|
|
157831
157831
|
D != null && (_.luckysheet_filter_save = _.luckysheetfile[D].filter_select, _.filter = _.luckysheetfile[D].filter || {}, fx(_, _.luckysheet_filter_save, void 0));
|
|
157832
157832
|
});
|
|
157833
157833
|
}, [p, m, s, d, y]);
|
|
157834
|
-
var w =
|
|
157834
|
+
var w = Bt(function(_, D) {
|
|
157835
157835
|
u != null && s(function(R) {
|
|
157836
157836
|
var O, N;
|
|
157837
157837
|
((O = R.filterContextMenu) === null || O === void 0 ? void 0 : O.col) !== u.startCol + D && (R.filterContextMenu = {
|
|
@@ -158164,7 +158164,7 @@ var K6t = function(r) {
|
|
|
158164
158164
|
}));
|
|
158165
158165
|
};
|
|
158166
158166
|
function oc() {
|
|
158167
|
-
var e = ur(v_), r = e.showModal, t = e.hideModal, a =
|
|
158167
|
+
var e = ur(v_), r = e.showModal, t = e.hideModal, a = Bt(function(n, i, o, c, f, s, l) {
|
|
158168
158168
|
s === void 0 && (s = t), l === void 0 && (l = t), r(/* @__PURE__ */ z.createElement(sH, {
|
|
158169
158169
|
type: i,
|
|
158170
158170
|
onOk: s,
|
|
@@ -158245,11 +158245,11 @@ var tyt = `
|
|
|
158245
158245
|
};
|
|
158246
158246
|
lH();
|
|
158247
158247
|
var g_ = function() {
|
|
158248
|
-
var r, t, a, n, i, o, c, f, s, l, u, d, h, p = ur(aa), m = p.context, v = p.setContext, g = oc(), y = g.showDialog, b = g.hideDialog, w = Vr(m), x = w.dataVerification, M = w.button, S = w.generalDialog, _ =
|
|
158248
|
+
var r, t, a, n, i, o, c, f, s, l, u, d, h, p = ur(aa), m = p.context, v = p.setContext, g = oc(), y = g.showDialog, b = g.hideDialog, w = Vr(m), x = w.dataVerification, M = w.button, S = w.generalDialog, _ = Pt(["between", "notBetween", "equal", "notEqualTo", "earlierThan", "noEarlierThan", "laterThan", "noLaterThan"])[0], D = Bt(function(O, N) {
|
|
158249
158249
|
b(), v(function(L) {
|
|
158250
158250
|
L.rangeDialog.show = !0, L.rangeDialog.type = O, L.rangeDialog.rangeTxt = N;
|
|
158251
158251
|
});
|
|
158252
|
-
}, [b, v]), R =
|
|
158252
|
+
}, [b, v]), R = Bt(function(O) {
|
|
158253
158253
|
O === "confirm" ? v(function(N) {
|
|
158254
158254
|
var L, I, C, k = lfe(N, S, x);
|
|
158255
158255
|
if (k) {
|
|
@@ -158551,14 +158551,14 @@ function O9(e) {
|
|
|
158551
158551
|
}
|
|
158552
158552
|
lH();
|
|
158553
158553
|
var Ng = function(r) {
|
|
158554
|
-
var t = r.type, a = ur(aa), n = a.context, i = a.setContext, o = oc().hideDialog, c = Vr(n), f = c.conditionformat, s = c.button, l = c.protection, u = c.generalDialog, d =
|
|
158554
|
+
var t = r.type, a = ur(aa), n = a.context, i = a.setContext, o = oc().hideDialog, c = Vr(n), f = c.conditionformat, s = c.button, l = c.protection, u = c.generalDialog, d = Pt({
|
|
158555
158555
|
textColor: "#FFFFFF",
|
|
158556
158556
|
cellColor: "#D82E2A"
|
|
158557
|
-
}), h = d[0], p = d[1], m =
|
|
158557
|
+
}), h = d[0], p = d[1], m = Bt(function(y) {
|
|
158558
158558
|
o(), i(function(b) {
|
|
158559
158559
|
b.conditionRules.textColor.color = h.textColor, b.conditionRules.cellColor.color = h.cellColor, b.rangeDialog.show = !0, b.rangeDialog.type = y, b.rangeDialog.rangeTxt = b.conditionRules.rulesValue, b.rangeDialog.singleSelect = !1;
|
|
158560
158560
|
});
|
|
158561
|
-
}, [h.cellColor, h.textColor, o, i]), v =
|
|
158561
|
+
}, [h.cellColor, h.textColor, o, i]), v = Bt(function(y) {
|
|
158562
158562
|
y === "confirm" && i(function(b) {
|
|
158563
158563
|
b.conditionRules.textColor.color = h.textColor, b.conditionRules.cellColor.color = h.cellColor, efe(b, l, u, f, b.conditionRules);
|
|
158564
158564
|
}), i(function(b) {
|
|
@@ -158825,7 +158825,7 @@ var Ng = function(r) {
|
|
|
158825
158825
|
tabIndex: 0
|
|
158826
158826
|
}, s.apply)));
|
|
158827
158827
|
}, ryt = function() {
|
|
158828
|
-
var r = ur(aa), t = r.context, a = r.setContext, n = oc().showDialog, i = Vr(t), o = i.dataVerification, c = i.button, f = i.toolbar, s =
|
|
158828
|
+
var r = ur(aa), t = r.context, a = r.setContext, n = oc().showDialog, i = Vr(t), o = i.dataVerification, c = i.button, f = i.toolbar, s = Pt(O9(t)), l = s[0], u = s[1], d = Bt(function() {
|
|
158829
158829
|
if (a(function(m) {
|
|
158830
158830
|
m.rangeDialog.show = !1, m.rangeDialog.singleSelect = !1;
|
|
158831
158831
|
}), !!t.rangeDialog) {
|
|
@@ -158916,7 +158916,7 @@ function W2(e, r, t, a) {
|
|
|
158916
158916
|
}, t);
|
|
158917
158917
|
}
|
|
158918
158918
|
var ayt = function() {
|
|
158919
|
-
var r = ur(aa), t = r.context, a = r.setContext, n = Yt(null), i =
|
|
158919
|
+
var r = ur(aa), t = r.context, a = r.setContext, n = Yt(null), i = Pt([]), o = i[0], c = i[1], f = Pt(!1), s = f[0], l = f[1], u = Pt(), d = u[0], h = u[1], p = Pt([]), m = p[0], v = p[1], g = Bt(function() {
|
|
158920
158920
|
a(function(y) {
|
|
158921
158921
|
y.dataVerificationDropDownList = !1;
|
|
158922
158922
|
});
|
|
@@ -159110,7 +159110,7 @@ var ayt = function() {
|
|
|
159110
159110
|
return e;
|
|
159111
159111
|
}, j9.apply(this, arguments);
|
|
159112
159112
|
}, iyt = function() {
|
|
159113
|
-
var r, t, a, n, i, o, c, f, s, l, u, d, h = ur(aa), p = h.context, m = h.setContext, v = h.settings, g = h.refs, y = Vr(p), b = y.info, w = y.rightclick, x = oc().showDialog, M = Yt(null), S = Yt(null), _ = Yt(null), D = L0().showAlert, R =
|
|
159113
|
+
var r, t, a, n, i, o, c, f, s, l, u, d, h = ur(aa), p = h.context, m = h.setContext, v = h.settings, g = h.refs, y = Vr(p), b = y.info, w = y.rightclick, x = oc().showDialog, M = Yt(null), S = Yt(null), _ = Yt(null), D = L0().showAlert, R = Bt(function(G) {
|
|
159114
159114
|
var X = G.nativeEvent;
|
|
159115
159115
|
G.button !== 2 && m(function(J) {
|
|
159116
159116
|
var B;
|
|
@@ -159119,17 +159119,17 @@ var ayt = function() {
|
|
|
159119
159119
|
(Q = g.cellInput.current) === null || Q === void 0 || Q.focus();
|
|
159120
159120
|
});
|
|
159121
159121
|
});
|
|
159122
|
-
}, [m, g.globalCache, g.cellInput, g.cellArea, g.fxInput, g.canvas]), O =
|
|
159122
|
+
}, [m, g.globalCache, g.cellInput, g.cellArea, g.fxInput, g.canvas]), O = Bt(function(G) {
|
|
159123
159123
|
var X = G.nativeEvent;
|
|
159124
159124
|
m(function(J) {
|
|
159125
159125
|
qI(J, v, X, g.workbookContainer.current, g.cellArea.current, "cell");
|
|
159126
159126
|
});
|
|
159127
|
-
}, [g.workbookContainer, m, v, g.cellArea]), N =
|
|
159127
|
+
}, [g.workbookContainer, m, v, g.cellArea]), N = Bt(function(G) {
|
|
159128
159128
|
var X = G.nativeEvent;
|
|
159129
159129
|
m(function(J) {
|
|
159130
159130
|
lde(J, g.globalCache, v, X, g.cellArea.current);
|
|
159131
159131
|
});
|
|
159132
|
-
}, [g.cellArea, g.globalCache, m, v]), L =
|
|
159132
|
+
}, [g.cellArea, g.globalCache, m, v]), L = Bt(function() {
|
|
159133
159133
|
m(function(G) {
|
|
159134
159134
|
XN(G);
|
|
159135
159135
|
});
|
|
@@ -159140,17 +159140,17 @@ var ayt = function() {
|
|
|
159140
159140
|
Q5(V, X, J, B);
|
|
159141
159141
|
});
|
|
159142
159142
|
}, 800);
|
|
159143
|
-
}, [m]), C =
|
|
159143
|
+
}, [m]), C = Bt(function(G, X, J, B, Q, F) {
|
|
159144
159144
|
var V = Zfe(G, J, B, Q, F);
|
|
159145
159145
|
if (V != null) {
|
|
159146
159146
|
var Z = nI(G, V.r, V.c);
|
|
159147
159147
|
Z == null ? I(X, V.r, V.c, !1) : (Q5(G, V.r, V.c, !1), I(X, V.r, V.c, !1, !0));
|
|
159148
159148
|
}
|
|
159149
|
-
}, [I]), k =
|
|
159149
|
+
}, [I]), k = Bt(function(G) {
|
|
159150
159150
|
m(function(X) {
|
|
159151
159151
|
C(X, g.globalCache, G, M.current, g.scrollbarX.current, g.scrollbarY.current), fde(X, g.globalCache, G, g.cellInput.current, g.scrollbarX.current, g.scrollbarY.current, M.current, g.fxInput.current);
|
|
159152
159152
|
});
|
|
159153
|
-
}, [C, g.cellInput, g.fxInput, g.globalCache, g.scrollbarX, g.scrollbarY, m]), E =
|
|
159153
|
+
}, [C, g.cellInput, g.fxInput, g.globalCache, g.scrollbarX, g.scrollbarY, m]), E = Bt(function(G) {
|
|
159154
159154
|
m(function(X) {
|
|
159155
159155
|
try {
|
|
159156
159156
|
ude(X, g.globalCache, v, G, g.scrollbarX.current, g.scrollbarY.current, M.current, g.cellInput.current, g.fxInput.current);
|
|
@@ -159158,24 +159158,24 @@ var ayt = function() {
|
|
|
159158
159158
|
D(J.message);
|
|
159159
159159
|
}
|
|
159160
159160
|
});
|
|
159161
|
-
}, [g.cellInput, g.fxInput, g.globalCache, g.scrollbarX, g.scrollbarY, m, v, D]), A =
|
|
159161
|
+
}, [g.cellInput, g.fxInput, g.globalCache, g.scrollbarX, g.scrollbarY, m, v, D]), A = Bt(function(G) {
|
|
159162
159162
|
var X = y0e(G, p.zoomRatio);
|
|
159163
159163
|
X !== p.zoomRatio && m(function(J) {
|
|
159164
159164
|
J.zoomRatio = X, J.luckysheetfile[Lt(J, J.currentSheetId)].zoomRatio = X;
|
|
159165
159165
|
});
|
|
159166
|
-
}, [p.zoomRatio, m]), T =
|
|
159166
|
+
}, [p.zoomRatio, m]), T = Bt(function(G) {
|
|
159167
159167
|
var X = G.nativeEvent;
|
|
159168
159168
|
m(function(J) {
|
|
159169
159169
|
que(J, X, g.globalCache);
|
|
159170
159170
|
}), G.stopPropagation();
|
|
159171
|
-
}, [g.globalCache, m]), j =
|
|
159171
|
+
}, [g.globalCache, m]), j = Bt(function(G) {
|
|
159172
159172
|
var X = G.nativeEvent;
|
|
159173
159173
|
m(function(J) {
|
|
159174
159174
|
Pue(J, X, g.globalCache, g.scrollbarX.current, g.scrollbarY.current);
|
|
159175
159175
|
});
|
|
159176
|
-
}, [g.globalCache, g.scrollbarX, g.scrollbarY, m]), H =
|
|
159176
|
+
}, [g.globalCache, g.scrollbarX, g.scrollbarY, m]), H = Bt(function() {
|
|
159177
159177
|
Bue(g.globalCache);
|
|
159178
|
-
}, [g.globalCache]), P =
|
|
159178
|
+
}, [g.globalCache]), P = Bt(function() {
|
|
159179
159179
|
var G, X = ((G = S.current) === null || G === void 0 ? void 0 : G.value) || p.addDefaultRows.toString(), J = parseInt(X, 10);
|
|
159180
159180
|
if (!Number.isNaN(J) && !(J < 1)) {
|
|
159181
159181
|
var B = {
|
|
@@ -159658,7 +159658,7 @@ var ayt = function() {
|
|
|
159658
159658
|
}
|
|
159659
159659
|
}
|
|
159660
159660
|
}, [l, d.canvas, d.globalCache.freezen, u, i.id]);
|
|
159661
|
-
var p =
|
|
159661
|
+
var p = Bt(function(m) {
|
|
159662
159662
|
var v = document.getElementById("function-details"), g = document.getElementById("luckysheet-formula-search-c"), y = v == null ? void 0 : v.matches(":hover"), b = g == null ? void 0 : g.matches(":hover");
|
|
159663
159663
|
v && y || g && b || (u(function(w) {
|
|
159664
159664
|
ode(w, m, d.globalCache, d.scrollbarX.current, d.scrollbarY.current);
|
|
@@ -159711,7 +159711,7 @@ var ayt = function() {
|
|
|
159711
159711
|
}, Oi = function(r) {
|
|
159712
159712
|
var t = r.tooltip, a = r.onClick, n = r.text, i = r.iconId, o = r.showArrow, c = o === void 0 ? !0 : o, f = r.children, s = r.fillColor, l = {
|
|
159713
159713
|
userSelect: "none"
|
|
159714
|
-
}, u =
|
|
159714
|
+
}, u = Pt(!1), d = u[0], h = u[1], p = Yt(null), m = function(b) {
|
|
159715
159715
|
h(b);
|
|
159716
159716
|
}, v = Zr(function() {
|
|
159717
159717
|
return (i == null ? void 0 : i.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template", "font-color", "background", "currency"].includes(i);
|
|
@@ -159825,7 +159825,7 @@ var ayt = function() {
|
|
|
159825
159825
|
className: "fortuen-toolbar-text color-text-default text-body-sm"
|
|
159826
159826
|
}, n));
|
|
159827
159827
|
}, cH = function() {
|
|
159828
|
-
var r = ur(aa), t = r.context, a = r.setContext, n = Vr(t), i = n.splitText, o = n.button, c =
|
|
159828
|
+
var r = ur(aa), t = r.context, a = r.setContext, n = Vr(t), i = n.splitText, o = n.button, c = Pt(""), f = c[0], s = c[1], l = Pt(!1), u = l[0], d = l[1], h = Pt([]), p = h[0], m = h[1], v = Yt(null), g = oc(), y = g.showDialog, b = g.hideDialog, w = Bt(function() {
|
|
159829
159829
|
b();
|
|
159830
159830
|
var x = iE(f, t), M = t.luckysheet_select_save[0].row[0], S = t.luckysheet_select_save[0].column[0];
|
|
159831
159831
|
if (x[0].length !== 1) {
|
|
@@ -159946,19 +159946,19 @@ var ayt = function() {
|
|
|
159946
159946
|
tabIndex: 0
|
|
159947
159947
|
}, "Split")));
|
|
159948
159948
|
}, syt = function() {
|
|
159949
|
-
var r = ur(aa), t = r.context, a = r.setContext, n = oc(), i = n.showDialog, o = n.hideDialog, c = Vr(t), f = c.findAndReplace, s = c.button, l =
|
|
159949
|
+
var r = ur(aa), t = r.context, a = r.setContext, n = oc(), i = n.showDialog, o = n.hideDialog, c = Vr(t), f = c.findAndReplace, s = c.button, l = Pt("locationConstant"), u = l[0], d = l[1], h = Pt({
|
|
159950
159950
|
locationDate: !0,
|
|
159951
159951
|
locationDigital: !0,
|
|
159952
159952
|
locationString: !0,
|
|
159953
159953
|
locationBool: !0,
|
|
159954
159954
|
locationError: !0
|
|
159955
|
-
}), p = h[0], m = h[1], v =
|
|
159955
|
+
}), p = h[0], m = h[1], v = Pt({
|
|
159956
159956
|
locationDate: !0,
|
|
159957
159957
|
locationDigital: !0,
|
|
159958
159958
|
locationString: !0,
|
|
159959
159959
|
locationBool: !0,
|
|
159960
159960
|
locationError: !0
|
|
159961
|
-
}), g = v[0], y = v[1], b =
|
|
159961
|
+
}), g = v[0], y = v[1], b = Bt(function() {
|
|
159962
159962
|
var x, M, S, _, D, R;
|
|
159963
159963
|
if (u === "locationConstant") {
|
|
159964
159964
|
var O = oE(p), N = sE(t);
|
|
@@ -160007,7 +160007,7 @@ var ayt = function() {
|
|
|
160007
160007
|
j.length === 0 && i(f.locationTipNotFindCell, "ok");
|
|
160008
160008
|
});
|
|
160009
160009
|
}
|
|
160010
|
-
}, [u, p, t, f.locationTipNotFindCell, f.locationTiplessTwoColumn, f.locationTiplessTwoRow, g, a, i]), w =
|
|
160010
|
+
}, [u, p, t, f.locationTipNotFindCell, f.locationTiplessTwoColumn, f.locationTiplessTwoRow, g, a, i]), w = Bt(function(x) {
|
|
160011
160011
|
return u === x;
|
|
160012
160012
|
}, [u]);
|
|
160013
160013
|
return /* @__PURE__ */ z.createElement("div", {
|
|
@@ -160110,13 +160110,13 @@ var ayt = function() {
|
|
|
160110
160110
|
tabIndex: 0
|
|
160111
160111
|
}, s.cancel));
|
|
160112
160112
|
}, fH = function(r) {
|
|
160113
|
-
var t = r.items, a = r.setOpen, n = ur(aa), i = n.context, o = n.setContext, c = n.refs, f = oc().showDialog, s = Vr(i).conditionformat, l = Yt(null), u =
|
|
160113
|
+
var t = r.items, a = r.setOpen, n = ur(aa), i = n.context, o = n.setContext, c = n.refs, f = oc().showDialog, s = Vr(i).conditionformat, l = Yt(null), u = Bt(function(m, v) {
|
|
160114
160114
|
var g = v.getBoundingClientRect(), y = c.workbookContainer.current.getBoundingClientRect(), b = m.offsetWidth, w = y.right - g.right;
|
|
160115
160115
|
w < b ? m.style.right = "108%" : m.style.right = "-100%";
|
|
160116
|
-
}, [c.workbookContainer]), d =
|
|
160116
|
+
}, [c.workbookContainer]), d = Bt(function(m) {
|
|
160117
160117
|
var v = m.target, g = v.className === "fortune-toolbar-menu-line" ? v.parentElement : v, y = g.querySelector(".condition-format-sub-menu");
|
|
160118
160118
|
te.isNil(y) || (y.style.display = "block", l.current = y, u(y, g));
|
|
160119
|
-
}, [u]), h =
|
|
160119
|
+
}, [u]), h = Bt(function(m) {
|
|
160120
160120
|
var v = m.target;
|
|
160121
160121
|
if (v.className === "condition-format-sub-menu") {
|
|
160122
160122
|
v.style.display = "none", l.current = null;
|
|
@@ -160136,7 +160136,7 @@ var ayt = function() {
|
|
|
160136
160136
|
window.removeEventListener("resize", m);
|
|
160137
160137
|
};
|
|
160138
160138
|
}, [u]);
|
|
160139
|
-
var p =
|
|
160139
|
+
var p = Bt(function(m) {
|
|
160140
160140
|
return m === "-" ? /* @__PURE__ */ z.createElement(p5, {
|
|
160141
160141
|
key: m
|
|
160142
160142
|
}) : m === "highlightCellRules" ? /* @__PURE__ */ z.createElement(Wo, {
|
|
@@ -160376,7 +160376,7 @@ var ayt = function() {
|
|
|
160376
160376
|
}
|
|
160377
160377
|
}));
|
|
160378
160378
|
}, uyt = function(r) {
|
|
160379
|
-
var t, a, n = r.type, i = r.onCancel, o = ur(aa), c = o.context, f = o.setContext, s = o.refs.cellInput, l =
|
|
160379
|
+
var t, a, n = r.type, i = r.onCancel, o = ur(aa), c = o.context, f = o.setContext, s = o.refs.cellInput, l = Pt(2), u = l[0], d = l[1], h = Pt(0), p = h[0], m = h[1], v = Vr(c), g = v.button, y = v.format, b = v.currencyDetail, w = v.dateFmtList, x = oc().showDialog, M = Zr(function() {
|
|
160380
160380
|
return {
|
|
160381
160381
|
currency: b,
|
|
160382
160382
|
date: w,
|
|
@@ -160384,7 +160384,7 @@ var ayt = function() {
|
|
|
160384
160384
|
};
|
|
160385
160385
|
}, [b, w]), S = Zr(function() {
|
|
160386
160386
|
return M[n];
|
|
160387
|
-
}, [M, n]), _ =
|
|
160387
|
+
}, [M, n]), _ = Bt(function() {
|
|
160388
160388
|
if (u < 0 || u > 9) {
|
|
160389
160389
|
i(), x(y.tipDecimalPlaces, "ok");
|
|
160390
160390
|
return;
|
|
@@ -160400,7 +160400,7 @@ var ayt = function() {
|
|
|
160400
160400
|
}), i();
|
|
160401
160401
|
}
|
|
160402
160402
|
});
|
|
160403
|
-
}, [i, u, y.tipDecimalPlaces, p, f, x, S]), D =
|
|
160403
|
+
}, [i, u, y.tipDecimalPlaces, p, f, x, S]), D = Bt(function() {
|
|
160404
160404
|
f(function(R) {
|
|
160405
160405
|
cl(R), s.current && (s.current.innerHTML = "");
|
|
160406
160406
|
}), i();
|
|
@@ -160467,7 +160467,7 @@ var ayt = function() {
|
|
|
160467
160467
|
tabIndex: 0
|
|
160468
160468
|
}, g.confirm)));
|
|
160469
160469
|
}, dyt = function(r) {
|
|
160470
|
-
var t = r.isOpen, a = r.onClose, n = r.onSubmit, i = r.submitText, o = i === void 0 ? "Submit" : i, c = r.placeholder, f = c === void 0 ? "Enter a value..." : c, s =
|
|
160470
|
+
var t = r.isOpen, a = r.onClose, n = r.onSubmit, i = r.submitText, o = i === void 0 ? "Submit" : i, c = r.placeholder, f = c === void 0 ? "Enter a value..." : c, s = Pt(""), l = s[0], u = s[1], d = Pt(!1), h = d[0], p = d[1], m = Yt(null);
|
|
160471
160471
|
if (Xt(function() {
|
|
160472
160472
|
if (t && m.current) {
|
|
160473
160473
|
var y = setTimeout(function() {
|
|
@@ -161003,7 +161003,7 @@ var byt = function(e, r, t, a) {
|
|
|
161003
161003
|
return D.fa.includes(O.value);
|
|
161004
161004
|
});
|
|
161005
161005
|
return R ? R.value : null;
|
|
161006
|
-
}, [c]), s =
|
|
161006
|
+
}, [c]), s = Pt(a), l = s[0], u = s[1], d = Pt(!1), h = d[0], p = d[1], m = Bt(function(y) {
|
|
161007
161007
|
return byt(void 0, void 0, void 0, function() {
|
|
161008
161008
|
return wyt(this, function(b) {
|
|
161009
161009
|
switch (b.label) {
|
|
@@ -161019,13 +161019,13 @@ var byt = function(e, r, t, a) {
|
|
|
161019
161019
|
}
|
|
161020
161020
|
});
|
|
161021
161021
|
});
|
|
161022
|
-
}, [c, o, l]), v =
|
|
161022
|
+
}, [c, o, l]), v = Bt(function(y) {
|
|
161023
161023
|
u(y), pH({
|
|
161024
161024
|
context: c,
|
|
161025
161025
|
setContext: o,
|
|
161026
161026
|
decimals: y
|
|
161027
161027
|
});
|
|
161028
|
-
}, [c, o]), g =
|
|
161028
|
+
}, [c, o]), g = Bt(function(y) {
|
|
161029
161029
|
y.preventDefault(), y.stopPropagation(), c.allowEdit !== !1 && p(!h);
|
|
161030
161030
|
}, [h, c.allowEdit]);
|
|
161031
161031
|
return /* @__PURE__ */ z.createElement(w6, {
|
|
@@ -161281,15 +161281,15 @@ var byt = function(e, r, t, a) {
|
|
|
161281
161281
|
return "";
|
|
161282
161282
|
}
|
|
161283
161283
|
}, Cyt = function(r) {
|
|
161284
|
-
var t, a, n, i = r.setMoreItems, o = r.moreItemsOpen, c = r.onMoreToolbarItemsClose, f = r.moreToolbarItems, s = ur(aa), l = s.context, u = s.setContext, d = s.refs, h = s.settings, p = s.handleUndo, m = s.handleRedo, v = Yt(l), g = Yt(null), y =
|
|
161284
|
+
var t, a, n, i = r.setMoreItems, o = r.moreItemsOpen, c = r.onMoreToolbarItemsClose, f = r.moreToolbarItems, s = ur(aa), l = s.context, u = s.setContext, d = s.refs, h = s.settings, p = s.handleUndo, m = s.handleRedo, v = Yt(l), g = Yt(null), y = Pt(-1), b = y[0], w = y[1], x = Pt([]), M = x[0], S = x[1], _ = Pt(!1), D = _[0], R = _[1], O = Pt(window.innerWidth >= 1280), N = O[0], L = O[1], I = oc(), C = I.showDialog, k = I.hideDialog, E = (t = l.luckysheet_select_save) === null || t === void 0 ? void 0 : t[0], A = Ot(l);
|
|
161285
161285
|
v.current = l;
|
|
161286
|
-
var T = E == null ? void 0 : E.row_focus, j = E == null ? void 0 : E.column_focus, H = A && T != null && j != null ? (a = A == null ? void 0 : A[T]) === null || a === void 0 ? void 0 : a[j] : void 0, P = Vr(l), G = P.toolbar, X = P.merge, J = P.border, B = P.freezen, Q = P.defaultFmt, F = P.formula, V = P.sort, Z = P.align, ne = P.textWrap, se = P.rotation, he = P.screenshot, re = P.filter, ae = P.splitText, de = P.findAndReplace, oe = P.comment, ve = P.fontarray, ue = Vr(l).format, W = l.luckysheetTableContentHW[0], K = h.currency, ee = Q(K), le =
|
|
161286
|
+
var T = E == null ? void 0 : E.row_focus, j = E == null ? void 0 : E.column_focus, H = A && T != null && j != null ? (a = A == null ? void 0 : A[T]) === null || a === void 0 ? void 0 : a[j] : void 0, P = Vr(l), G = P.toolbar, X = P.merge, J = P.border, B = P.freezen, Q = P.defaultFmt, F = P.formula, V = P.sort, Z = P.align, ne = P.textWrap, se = P.rotation, he = P.screenshot, re = P.filter, ae = P.splitText, de = P.findAndReplace, oe = P.comment, ve = P.fontarray, ue = Vr(l).format, W = l.luckysheetTableContentHW[0], K = h.currency, ee = Q(K), le = Pt("#000000")[0], pe = Pt("1")[0], Me = Pt(""), Le = Me[0], Ie = Me[1], we = Pt(2), Ee = we[0], je = we[1], Ge = Pt("USD"), Fe = Ge[0], Be = Ge[1], qe = Bt(function(Ae, Je) {
|
|
161287
161287
|
var tt = Ae.target, Se = tt.className === "fortune-toolbar-menu-line" ? tt.parentElement : tt, We = Se.getBoundingClientRect(), xe = d.workbookContainer.current.getBoundingClientRect(), Pe = Se.querySelector(".".concat(Je));
|
|
161288
161288
|
if (!te.isNil(Pe)) {
|
|
161289
161289
|
var wt = window.getComputedStyle(Se), me = parseFloat(wt.getPropertyValue("padding-right").replace("px", ""));
|
|
161290
161290
|
xe.right - We.right < parseFloat(Pe.style.width.replace("px", "")) ? (Pe.style.display = "block", Pe.style.right = "".concat(We.width - me, "px")) : (Pe.style.display = "block", Pe.style.right = Je === "more-format" ? "".concat(-(parseFloat(Pe.style.width.replace("px", "")) + 0), "px") : "".concat(-(parseFloat(Pe.style.width.replace("px", "")) + me), "px"));
|
|
161291
161291
|
}
|
|
161292
|
-
}, [d.workbookContainer]), rt =
|
|
161292
|
+
}, [d.workbookContainer]), rt = Bt(function(Ae, Je) {
|
|
161293
161293
|
var tt = Ae.target;
|
|
161294
161294
|
if (tt.className === "".concat(Je)) {
|
|
161295
161295
|
tt.style.display = "none";
|
|
@@ -161336,7 +161336,7 @@ var byt = function(e, r, t, a) {
|
|
|
161336
161336
|
}
|
|
161337
161337
|
}
|
|
161338
161338
|
}, [M, i, h.toolbarItems.length, W, N]);
|
|
161339
|
-
var ke =
|
|
161339
|
+
var ke = Bt(function(Ae, Je) {
|
|
161340
161340
|
var tt, Se, We, xe, Pe, wt, me = G[Ae];
|
|
161341
161341
|
if (Ae === "|")
|
|
161342
161342
|
return /* @__PURE__ */ z.createElement(JS, {
|
|
@@ -162522,7 +162522,7 @@ var byt = function(e, r, t, a) {
|
|
|
162522
162522
|
"aria-autocomplete": "list"
|
|
162523
162523
|
}, t));
|
|
162524
162524
|
}, Myt = function() {
|
|
162525
|
-
var r, t = ur(aa), a = t.context, n = t.setContext, i = t.refs, o = Yt(null), c = Yt(null), f =
|
|
162525
|
+
var r, t = ur(aa), a = t.context, n = t.setContext, i = t.refs, o = Yt(null), c = Yt(null), f = Pt(!1), s = f[0], l = f[1], u = (r = a.luckysheet_select_save) === null || r === void 0 ? void 0 : r[0], d = Sg(u), h = Sg(a.currentSheetId), p = Yt("");
|
|
162526
162526
|
Xt(function() {
|
|
162527
162527
|
var b;
|
|
162528
162528
|
if (l($N(a)), !(te.isEqual(d, u) && a.currentSheetId === h)) {
|
|
@@ -162536,13 +162536,13 @@ var byt = function(e, r, t, a) {
|
|
|
162536
162536
|
i.fxInput.current.innerHTML = "";
|
|
162537
162537
|
}
|
|
162538
162538
|
}, [a.luckysheetfile, a.currentSheetId, a.luckysheet_select_save]);
|
|
162539
|
-
var m =
|
|
162539
|
+
var m = Bt(function() {
|
|
162540
162540
|
var b, w;
|
|
162541
162541
|
a.allowEdit !== !1 && ((w = (b = a.luckysheet_select_save) === null || b === void 0 ? void 0 : b.length) !== null && w !== void 0 ? w : 0) > 0 && !a.luckysheet_cell_selected_move && oa(a, a.luckysheet_select_save) && n(function(x) {
|
|
162542
162542
|
var M = x.luckysheet_select_save[x.luckysheet_select_save.length - 1], S = M.row_focus, _ = M.column_focus;
|
|
162543
162543
|
x.luckysheetCellUpdate = [S, _], i.globalCache.doNotFocus = !0;
|
|
162544
162544
|
});
|
|
162545
|
-
}, [a.config, a.luckysheet_select_save, a.luckysheetfile, a.currentSheetId, i.globalCache, n]), v =
|
|
162545
|
+
}, [a.config, a.luckysheet_select_save, a.luckysheetfile, a.currentSheetId, i.globalCache, n]), v = Bt(function(b) {
|
|
162546
162546
|
if (a.allowEdit !== !1) {
|
|
162547
162547
|
o.current = new KeyboardEvent(b.type, b.nativeEvent);
|
|
162548
162548
|
var w = b.key;
|
|
@@ -162574,7 +162574,7 @@ var byt = function(e, r, t, a) {
|
|
|
162574
162574
|
}
|
|
162575
162575
|
});
|
|
162576
162576
|
}
|
|
162577
|
-
}, [a.allowEdit, a.luckysheetCellUpdate.length, i.fxInput, n]), g =
|
|
162577
|
+
}, [a.allowEdit, a.luckysheetCellUpdate.length, i.fxInput, n]), g = Bt(function() {
|
|
162578
162578
|
var b = o.current;
|
|
162579
162579
|
if (b) {
|
|
162580
162580
|
var w = b.keyCode;
|
|
@@ -162616,7 +162616,7 @@ function Ryt(e, {
|
|
|
162616
162616
|
defaultValue: r = !1,
|
|
162617
162617
|
initializeWithValue: t = !0
|
|
162618
162618
|
} = {}) {
|
|
162619
|
-
const a = (c) => Lyt ? r : window.matchMedia(c).matches, [n, i] =
|
|
162619
|
+
const a = (c) => Lyt ? r : window.matchMedia(c).matches, [n, i] = Pt(() => t ? a(e) : r);
|
|
162620
162620
|
function o() {
|
|
162621
162621
|
i(a(e));
|
|
162622
162622
|
}
|
|
@@ -162628,7 +162628,7 @@ function Ryt(e, {
|
|
|
162628
162628
|
}, [e]), n;
|
|
162629
162629
|
}
|
|
162630
162630
|
var Dyt = function(r) {
|
|
162631
|
-
var t = r.sheet, a = r.isDropPlaceholder, n = ur(aa), i = n.context, o = n.setContext, c = n.refs, f =
|
|
162631
|
+
var t = r.sheet, a = r.isDropPlaceholder, n = ur(aa), i = n.context, o = n.setContext, c = n.refs, f = Pt(!1), s = f[0], l = f[1], u = Yt(null), d = Yt(null), h = Pt(!1), p = h[0], m = h[1], v = Pt("#c3c3c3"), g = v[0], y = v[1], b = L0().showAlert;
|
|
162632
162632
|
Xt(function() {
|
|
162633
162633
|
o(function(_) {
|
|
162634
162634
|
var D, R, O, N, L = i.sheetScrollRecord[_ == null ? void 0 : _.currentSheetId];
|
|
@@ -162651,7 +162651,7 @@ var Dyt = function(r) {
|
|
|
162651
162651
|
d.current.dataset.oldText = d.current.innerText;
|
|
162652
162652
|
}
|
|
162653
162653
|
}, [s]);
|
|
162654
|
-
var w =
|
|
162654
|
+
var w = Bt(function() {
|
|
162655
162655
|
o(function(_) {
|
|
162656
162656
|
try {
|
|
162657
162657
|
Wfe(_, d.current);
|
|
@@ -162659,12 +162659,12 @@ var Dyt = function(r) {
|
|
|
162659
162659
|
b(D.message);
|
|
162660
162660
|
}
|
|
162661
162661
|
}), l(!1);
|
|
162662
|
-
}, [o, b]), x =
|
|
162662
|
+
}, [o, b]), x = Bt(function(_) {
|
|
162663
162663
|
var D;
|
|
162664
162664
|
_.key === "Enter" && ((D = d.current) === null || D === void 0 || D.blur()), _.stopPropagation();
|
|
162665
|
-
}, []), M =
|
|
162665
|
+
}, []), M = Bt(function(_) {
|
|
162666
162666
|
i.allowEdit === !0 && _.dataTransfer.setData("sheetId", "".concat(t.id)), _.stopPropagation();
|
|
162667
|
-
}, [i.allowEdit, t.id]), S =
|
|
162667
|
+
}, [i.allowEdit, t.id]), S = Bt(function(_) {
|
|
162668
162668
|
if (i.allowEdit !== !1) {
|
|
162669
162669
|
var D = _.dataTransfer.getData("sheetId");
|
|
162670
162670
|
o(function(R) {
|
|
@@ -162805,11 +162805,11 @@ var Dyt = function(r) {
|
|
|
162805
162805
|
text: "400%",
|
|
162806
162806
|
value: 4
|
|
162807
162807
|
}], Iyt = function() {
|
|
162808
|
-
var r = ur(aa), t = r.context, a = r.setContext, n = Yt(null), i =
|
|
162808
|
+
var r = ur(aa), t = r.context, a = r.setContext, n = Yt(null), i = Pt(!1), o = i[0], c = i[1];
|
|
162809
162809
|
W2(n, function() {
|
|
162810
162810
|
c(!1);
|
|
162811
162811
|
}, []);
|
|
162812
|
-
var f =
|
|
162812
|
+
var f = Bt(function(s) {
|
|
162813
162813
|
s = parseFloat(s.toFixed(1)), !(s > w8 || s < x8) && a(function(l) {
|
|
162814
162814
|
var u = Lt(l, l.currentSheetId);
|
|
162815
162815
|
u != null && (l.luckysheetfile[u].zoomRatio = s, l.zoomRatio = s);
|
|
@@ -162865,7 +162865,7 @@ var Dyt = function(r) {
|
|
|
162865
162865
|
}, Oyt = function() {
|
|
162866
162866
|
var r = Ryt("(max-width: 780px)", {
|
|
162867
162867
|
defaultValue: !0
|
|
162868
|
-
}), t = ur(aa), a = t.context, n = t.setContext, i = t.settings, o = t.refs, c = Yt(null), f = Yt(null), s = Yt(null), l =
|
|
162868
|
+
}), t = ur(aa), a = t.context, n = t.setContext, i = t.settings, o = t.refs, c = Yt(null), f = Yt(null), s = Yt(null), l = Pt(!1), u = l[0], d = l[1], h = Pt(!0), p = h[0], m = h[1], v = 150, g = Bt(function(S) {
|
|
162869
162869
|
var _;
|
|
162870
162870
|
if (!(c.current == null || c.current.scrollLeft == null)) {
|
|
162871
162871
|
var D = c.current.scrollLeft;
|
|
@@ -162879,7 +162879,7 @@ var Dyt = function(r) {
|
|
|
162879
162879
|
var S = c.current;
|
|
162880
162880
|
S && d(S.scrollWidth - 2 > S.clientWidth);
|
|
162881
162881
|
}, [a.luckysheetfile]);
|
|
162882
|
-
var y =
|
|
162882
|
+
var y = Bt(function() {
|
|
162883
162883
|
return setTimeout(function() {
|
|
162884
162884
|
n(function(_) {
|
|
162885
162885
|
_.luckysheetCellUpdate.length > 0 && R1(_, _.luckysheetCellUpdate[0], _.luckysheetCellUpdate[1], o.cellInput.current), nx(_, i);
|
|
@@ -162889,7 +162889,7 @@ var Dyt = function(r) {
|
|
|
162889
162889
|
var S = c.current;
|
|
162890
162890
|
d(S.scrollWidth > S.clientWidth);
|
|
162891
162891
|
});
|
|
162892
|
-
}, [o.cellInput, n, i]), b =
|
|
162892
|
+
}, [o.cellInput, n, i]), b = Pt(!0), w = b[0], x = b[1], M = function() {
|
|
162893
162893
|
x(!1);
|
|
162894
162894
|
var _ = document.getElementById("corner-plus");
|
|
162895
162895
|
_ && (_.style.display = "block");
|
|
@@ -165151,7 +165151,7 @@ function k7t(e) {
|
|
|
165151
165151
|
function r(t) {
|
|
165152
165152
|
var a = t.children, n = t.content, i = t.visible, o = t.singleton, c = t.render, f = t.reference, s = t.disabled, l = s === void 0 ? !1 : s, u = t.ignoreAttributes, d = u === void 0 ? !0 : u;
|
|
165153
165153
|
t.__source, t.__self;
|
|
165154
|
-
var h = PH(t, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = i !== void 0, m = o !== void 0, v =
|
|
165154
|
+
var h = PH(t, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = i !== void 0, m = o !== void 0, v = Pt(!1), g = v[0], y = v[1], b = Pt({}), w = b[0], x = b[1], M = Pt(), S = M[0], _ = M[1], D = w7t(function() {
|
|
165155
165155
|
return {
|
|
165156
165156
|
container: xL(),
|
|
165157
165157
|
renders: 1
|
|
@@ -165270,7 +165270,7 @@ function V9(e) {
|
|
|
165270
165270
|
}, V9(e);
|
|
165271
165271
|
}
|
|
165272
165272
|
var C7t = function() {
|
|
165273
|
-
var r = ur(aa), t = r.context, a = r.setContext, n = L0().showAlert, i = Vr(t).button, o = oc().hideDialog, c =
|
|
165273
|
+
var r = ur(aa), t = r.context, a = r.setContext, n = L0().showAlert, i = Vr(t).button, o = oc().hideDialog, c = Pt("number"), f = c[0], s = c[1], l = Pt(100), u = l[0], d = l[1], h = function(m) {
|
|
165274
165274
|
var v = Ot(t), g = 100;
|
|
165275
165275
|
if (v)
|
|
165276
165276
|
for (var y = 0; y < v.length; y += 1) {
|
|
@@ -165485,7 +165485,7 @@ var C7t = function() {
|
|
|
165485
165485
|
};
|
|
165486
165486
|
}
|
|
165487
165487
|
}, E7t = function() {
|
|
165488
|
-
var r = oc().showDialog, t = Yt(null), a = ur(aa), n = a.context, i = a.setContext, o = a.settings, c = a.refs, f = n.contextMenu, s = L0().showAlert, l = Vr(n), u = l.rightclick, d = l.drag, h = l.generalDialog, p = l.info, m = l.toolbar, v = l.splitText, g =
|
|
165488
|
+
var r = oc().showDialog, t = Yt(null), a = ur(aa), n = a.context, i = a.setContext, o = a.settings, c = a.refs, f = n.contextMenu, s = L0().showAlert, l = Vr(n), u = l.rightclick, d = l.drag, h = l.generalDialog, p = l.info, m = l.toolbar, v = l.splitText, g = Bt(function(y, b) {
|
|
165489
165489
|
var w, x, M, S, _ = (w = n.luckysheet_select_save) === null || w === void 0 ? void 0 : w[0];
|
|
165490
165490
|
if (y === "|")
|
|
165491
165491
|
return /* @__PURE__ */ z.createElement(zH, {
|
|
@@ -168172,7 +168172,7 @@ var C7t = function() {
|
|
|
168172
168172
|
fill: "white"
|
|
168173
168173
|
}))))));
|
|
168174
168174
|
}, L7t = function(r) {
|
|
168175
|
-
var t = r.triggerParentUpdate, a = ur(aa), n = a.context, i = a.setContext, o =
|
|
168175
|
+
var t = r.triggerParentUpdate, a = ur(aa), n = a.context, i = a.setContext, o = Pt(n.luckysheetfile[Lt(n, n.currentSheetId)].color), c = o[0], f = o[1];
|
|
168176
168176
|
return Xt(function() {
|
|
168177
168177
|
i(function(s) {
|
|
168178
168178
|
if (s.allowEdit !== !1) {
|
|
@@ -168198,10 +168198,10 @@ var C7t = function() {
|
|
|
168198
168198
|
}
|
|
168199
168199
|
}));
|
|
168200
168200
|
}, R7t = function() {
|
|
168201
|
-
var r, t = ur(aa), a = t.context, n = t.setContext, i = t.settings, o = a.sheetTabContextMenu, c = o.x, f = o.y, s = o.sheet, l = o.onRename, u = Vr(a).sheetconfig, d =
|
|
168201
|
+
var r, t = ur(aa), a = t.context, n = t.setContext, i = t.settings, o = a.sheetTabContextMenu, c = o.x, f = o.y, s = o.sheet, l = o.onRename, u = Vr(a).sheetconfig, d = Pt({
|
|
168202
168202
|
x: -1,
|
|
168203
168203
|
y: -1
|
|
168204
|
-
}), h = d[0], p = d[1], m =
|
|
168204
|
+
}), h = d[0], p = d[1], m = Pt(!1), v = m[0], g = m[1], y = Pt(!1), b = y[0], w = y[1], x = L0(), M = x.showAlert, S = x.hideAlert, _ = Yt(null), D = Bt(function() {
|
|
168205
168205
|
n(function(C) {
|
|
168206
168206
|
C.sheetTabContextMenu = {};
|
|
168207
168207
|
});
|
|
@@ -168213,29 +168213,29 @@ var C7t = function() {
|
|
|
168213
168213
|
y: f - k.height
|
|
168214
168214
|
});
|
|
168215
168215
|
}, [c, f]), W2(_, D, [D]);
|
|
168216
|
-
var R =
|
|
168216
|
+
var R = Bt(function(C) {
|
|
168217
168217
|
a.allowEdit !== !1 && s && n(function(k) {
|
|
168218
168218
|
var E, A = -1;
|
|
168219
168219
|
te.sortBy(k.luckysheetfile, ["order"]).forEach(function(T, j) {
|
|
168220
168220
|
T.order = j, T.id === s.id && (A = j);
|
|
168221
168221
|
}), px(k, (E = {}, E[s.id] = A + C, E));
|
|
168222
168222
|
});
|
|
168223
|
-
}, [a.allowEdit, n, s]), O =
|
|
168223
|
+
}, [a.allowEdit, n, s]), O = Bt(function() {
|
|
168224
168224
|
a.allowEdit !== !1 && s && n(function(C) {
|
|
168225
168225
|
var k = C.luckysheetfile.filter(function(E) {
|
|
168226
168226
|
return te.isUndefined(E.hide) || (E == null ? void 0 : E.hide) !== 1;
|
|
168227
168227
|
});
|
|
168228
168228
|
k.length > 1 ? Bfe(C, s.id) : M(u.noMoreSheet, "ok");
|
|
168229
168229
|
});
|
|
168230
|
-
}, [a.allowEdit, n, s, M, u]), N =
|
|
168230
|
+
}, [a.allowEdit, n, s, M, u]), N = Bt(function() {
|
|
168231
168231
|
a.allowEdit !== !1 && s != null && s.id && n(function(C) {
|
|
168232
168232
|
Hfe(C, s.id);
|
|
168233
168233
|
}, {
|
|
168234
168234
|
addSheetOp: !0
|
|
168235
168235
|
});
|
|
168236
|
-
}, [a.allowEdit, n, s == null ? void 0 : s.id]), L =
|
|
168236
|
+
}, [a.allowEdit, n, s == null ? void 0 : s.id]), L = Bt(function(C) {
|
|
168237
168237
|
w(C);
|
|
168238
|
-
}, []), I =
|
|
168238
|
+
}, []), I = Bt(function() {
|
|
168239
168239
|
a.allowEdit !== !1 && s != null && s.id && n(function(C) {
|
|
168240
168240
|
te.forEach(C.luckysheetfile, function(k) {
|
|
168241
168241
|
k.status = s.id === k.id ? 1 : 0;
|
|
@@ -168619,7 +168619,7 @@ var jg = function() {
|
|
|
168619
168619
|
className: "count"
|
|
168620
168620
|
}, "".concat(t.rows.length))) : null;
|
|
168621
168621
|
}, HH = function(r) {
|
|
168622
|
-
var t = r.item, a = r.depth, n = a === void 0 ? 0 : a, i = r.initialExpand, o = r.onExpand, c = r.isChecked, f = r.onChange, s = r.isItemVisible, l =
|
|
168622
|
+
var t = r.item, a = r.depth, n = a === void 0 ? 0 : a, i = r.initialExpand, o = r.onExpand, c = r.isChecked, f = r.onChange, s = r.isItemVisible, l = Pt(i(t.key)), u = l[0], d = l[1], h = Zr(function() {
|
|
168623
168623
|
return c(t.key);
|
|
168624
168624
|
}, [c, t.key]);
|
|
168625
168625
|
return s(t) ? /* @__PURE__ */ z.createElement("div", {
|
|
@@ -168691,28 +168691,28 @@ var jg = function() {
|
|
|
168691
168691
|
endRow: null,
|
|
168692
168692
|
endCol: null,
|
|
168693
168693
|
col: null
|
|
168694
|
-
}, h = d.startRow, p = d.startCol, m = d.endRow, v = d.endCol, g = d.col, y = Vr(a).filter, b =
|
|
168694
|
+
}, h = d.startRow, p = d.startCol, m = d.endRow, v = d.endCol, g = d.col, y = Vr(a).filter, b = Pt({
|
|
168695
168695
|
dates: [],
|
|
168696
168696
|
dateRowMap: {},
|
|
168697
168697
|
values: [],
|
|
168698
168698
|
valueRowMap: {},
|
|
168699
168699
|
visibleRows: [],
|
|
168700
168700
|
flattenValues: []
|
|
168701
|
-
}), w = b[0], x = b[1], M =
|
|
168701
|
+
}), w = b[0], x = b[1], M = Pt([]), S = M[0], _ = M[1], D = Pt([]), R = D[0], O = D[1], N = Yt({}), L = Yt([]), I = Pt([]), C = I[0], k = I[1], E = Pt(""), A = E[0], T = E[1], j = Pt(), H = j[0], P = j[1], G = Pt({
|
|
168702
168702
|
bgColors: [],
|
|
168703
168703
|
fcColors: []
|
|
168704
|
-
}), X = G[0], J = G[1], B =
|
|
168704
|
+
}), X = G[0], J = G[1], B = Pt(!1), Q = B[0], F = B[1], V = L0().showAlert, Z = Yt(!1);
|
|
168705
168705
|
f.current = a;
|
|
168706
|
-
var ne =
|
|
168706
|
+
var ne = Bt(function() {
|
|
168707
168707
|
n(function(ue) {
|
|
168708
168708
|
ue.filterContextMenu = void 0;
|
|
168709
168709
|
});
|
|
168710
168710
|
}, [n]);
|
|
168711
168711
|
W2(c, ne, [ne]);
|
|
168712
|
-
var se =
|
|
168712
|
+
var se = Bt(function(ue) {
|
|
168713
168713
|
var W = N.current[ue];
|
|
168714
168714
|
return W ?? (N.current[ue] = !0, !0);
|
|
168715
|
-
}, []), he =
|
|
168715
|
+
}, []), he = Bt(function(ue, W) {
|
|
168716
168716
|
N.current[ue] = W;
|
|
168717
168717
|
}, []), re = Zr(function() {
|
|
168718
168718
|
return te.debounce(function(ue) {
|
|
@@ -168720,7 +168720,7 @@ var jg = function() {
|
|
|
168720
168720
|
return W.toLowerCase().indexOf(ue.toLowerCase()) > -1;
|
|
168721
168721
|
}));
|
|
168722
168722
|
}, 300);
|
|
168723
|
-
}, [w.flattenValues]), ae =
|
|
168723
|
+
}, [w.flattenValues]), ae = Bt(function(ue, W, K) {
|
|
168724
168724
|
J(Wl(function(ee) {
|
|
168725
168725
|
var le = te.find(te.get(ee, ue), function(pe) {
|
|
168726
168726
|
return pe.color === W;
|
|
@@ -168731,12 +168731,12 @@ var jg = function() {
|
|
|
168731
168731
|
return te.debounce(function() {
|
|
168732
168732
|
Z.current || F(!1);
|
|
168733
168733
|
}, 200);
|
|
168734
|
-
}, []), oe =
|
|
168734
|
+
}, []), oe = Bt(function(ue) {
|
|
168735
168735
|
g != null && n(function(W) {
|
|
168736
168736
|
var K = u0e(W, h, p, m, v, g, ue);
|
|
168737
168737
|
K != null && V(K);
|
|
168738
168738
|
});
|
|
168739
|
-
}, [g, n, h, p, m, v, V]), ve =
|
|
168739
|
+
}, [g, n, h, p, m, v, V]), ve = Bt(function(ue, W, K, ee) {
|
|
168740
168740
|
return K.length > 1 ? /* @__PURE__ */ z.createElement("div", {
|
|
168741
168741
|
key: ue
|
|
168742
168742
|
}, /* @__PURE__ */ z.createElement("div", {
|
|
@@ -169016,7 +169016,7 @@ var jg = function() {
|
|
|
169016
169016
|
tabIndex: 0
|
|
169017
169017
|
}, y.filterConfirm))));
|
|
169018
169018
|
}, O7t = function(r) {
|
|
169019
|
-
var t = r.style, a = r.sheet, n = ur(aa), i = n.context, o = n.setContext, c =
|
|
169019
|
+
var t = r.style, a = r.sheet, n = ur(aa), i = n.context, o = n.setContext, c = Bt(function() {
|
|
169020
169020
|
i.allowEdit !== !1 && a && o(function(f) {
|
|
169021
169021
|
Ffe(f, a.id);
|
|
169022
169022
|
});
|
|
@@ -169077,7 +169077,7 @@ var jg = function() {
|
|
|
169077
169077
|
sheet: t
|
|
169078
169078
|
}));
|
|
169079
169079
|
}, q7t = function() {
|
|
169080
|
-
var r = ur(aa), t = r.context, a = r.setContext, n = Yt(null), i =
|
|
169080
|
+
var r = ur(aa), t = r.context, a = r.setContext, n = Yt(null), i = Bt(function() {
|
|
169081
169081
|
a(function(o) {
|
|
169082
169082
|
o.showSheetList = !1;
|
|
169083
169083
|
});
|
|
@@ -169166,7 +169166,7 @@ var z7t = function(r) {
|
|
|
169166
169166
|
cellArea: p,
|
|
169167
169167
|
workbookContainer: m
|
|
169168
169168
|
};
|
|
169169
|
-
}, []), g =
|
|
169169
|
+
}, []), g = Pt(KN(v)), y = g[0], b = g[1], w = Vr(y).formula, x = Pt(null), M = x[0], S = x[1], _ = Pt({
|
|
169170
169170
|
numberC: 0,
|
|
169171
169171
|
count: 0,
|
|
169172
169172
|
sum: 0,
|
|
@@ -169183,7 +169183,7 @@ var z7t = function(r) {
|
|
|
169183
169183
|
R(se);
|
|
169184
169184
|
}
|
|
169185
169185
|
}, [y.luckysheet_select_save]);
|
|
169186
|
-
var N =
|
|
169186
|
+
var N = Bt(function(Z, ne, se) {
|
|
169187
169187
|
var he, re, ae = ne.celldata, de = ne.row, oe = ne.column, ve = te.maxBy(ae, "r"), ue = te.maxBy(ae, "c"), W = ((he = ve == null ? void 0 : ve.r) !== null && he !== void 0 ? he : 0) + 1, K = ((re = ue == null ? void 0 : ue.c) !== null && re !== void 0 ? re : 0) + 1;
|
|
169188
169188
|
if (de != null && oe != null && de > 0 && oe > 0 ? (W = Math.max(W, de), K = Math.max(K, oe)) : (W = Math.max(W, Z.defaultrowNum), K = Math.max(K, Z.defaultcolumnNum)), W && K) {
|
|
169189
169189
|
var ee = te.times(W, function() {
|
|
@@ -169198,7 +169198,7 @@ var z7t = function(r) {
|
|
|
169198
169198
|
}), ee;
|
|
169199
169199
|
}
|
|
169200
169200
|
return null;
|
|
169201
|
-
}, []), L =
|
|
169201
|
+
}, []), L = Bt(function(Z, ne, se, he) {
|
|
169202
169202
|
he === void 0 && (he = !1), n && n(T0e(Z, ne, se, he));
|
|
169203
169203
|
}, [n]);
|
|
169204
169204
|
function I(Z, ne) {
|
|
@@ -169241,7 +169241,7 @@ var z7t = function(r) {
|
|
|
169241
169241
|
});
|
|
169242
169242
|
return se;
|
|
169243
169243
|
}
|
|
169244
|
-
var k =
|
|
169244
|
+
var k = Bt(function(Z, ne) {
|
|
169245
169245
|
ne === void 0 && (ne = {}), b(function(se) {
|
|
169246
169246
|
var he, re, ae, de = Dde(se, H7t(Z, z7t)), oe = de[0], ve = de[1], ue = de[2];
|
|
169247
169247
|
if (ve.length > 0 && !ne.noHistory) {
|
|
@@ -169276,7 +169276,7 @@ var z7t = function(r) {
|
|
|
169276
169276
|
((re = (he = ve == null ? void 0 : ve[0]) === null || he === void 0 ? void 0 : he.value) === null || re === void 0 ? void 0 : re.length) < ((ae = se == null ? void 0 : se.luckysheetfile) === null || ae === void 0 ? void 0 : ae.length) && I(oe, se);
|
|
169277
169277
|
return oe;
|
|
169278
169278
|
});
|
|
169279
|
-
}, [L]), E =
|
|
169279
|
+
}, [L]), E = Bt(function() {
|
|
169280
169280
|
var Z = f.current.undoList.pop();
|
|
169281
169281
|
Z && b(function(ne) {
|
|
169282
169282
|
var se, he, re, ae, de;
|
|
@@ -169307,7 +169307,7 @@ var z7t = function(r) {
|
|
|
169307
169307
|
}
|
|
169308
169308
|
return L(ue, Z.inversePatches, W, !0), ue;
|
|
169309
169309
|
});
|
|
169310
|
-
}, [L]), A =
|
|
169310
|
+
}, [L]), A = Bt(function() {
|
|
169311
169311
|
var Z = f.current.redoList.pop();
|
|
169312
169312
|
Z && b(function(ne) {
|
|
169313
169313
|
var se = I8(ne, Z.patches);
|
|
@@ -169389,7 +169389,7 @@ var z7t = function(r) {
|
|
|
169389
169389
|
noHistory: !0
|
|
169390
169390
|
});
|
|
169391
169391
|
}, [y.currentSheetId, y.luckysheetfile.length, i, O.defaultRowHeight, O.defaultColWidth, O.column, O.row, O.defaultFontSize, O.devicePixelRatio, O.lang, O.allowEdit, O.hooks, O.generateSheetId, k, N, O.rowHeaderWidth, O.columnHeaderHeight, O.addRows, O.currency]);
|
|
169392
|
-
var j = navigator.platform.toUpperCase().includes("MAC"), H = !1, P, G = !1, X, J =
|
|
169392
|
+
var j = navigator.platform.toUpperCase().includes("MAC"), H = !1, P, G = !1, X, J = Bt(function(Z) {
|
|
169393
169393
|
var ne, se, he = r.current, re = he.getSelection, ae = he.getSheet, de = he.setSelection, oe = j && Z.ctrlKey && Z.altKey, ve = !j && Z.altKey;
|
|
169394
169394
|
if ((oe || ve) && Z.code === "KeyI") {
|
|
169395
169395
|
H = !0, clearTimeout(P), P = setTimeout(function() {
|
|
@@ -169482,7 +169482,7 @@ var z7t = function(r) {
|
|
|
169482
169482
|
k(function(rt) {
|
|
169483
169483
|
ide(rt, s.current, l.current, qe, f.current, E, A, u.current.getContext("2d"));
|
|
169484
169484
|
});
|
|
169485
|
-
}, [A, E, k]), B =
|
|
169485
|
+
}, [A, E, k]), B = Bt(function(Z) {
|
|
169486
169486
|
var ne;
|
|
169487
169487
|
if (s.current === document.activeElement || ((ne = document.activeElement) === null || ne === void 0 ? void 0 : ne.className) === "fortune-sheet-overlay") {
|
|
169488
169488
|
var se = Z.clipboardData;
|
|
@@ -169512,7 +169512,7 @@ var z7t = function(r) {
|
|
|
169512
169512
|
}
|
|
169513
169513
|
});
|
|
169514
169514
|
}
|
|
169515
|
-
}, [y, k]), Q =
|
|
169515
|
+
}, [y, k]), Q = Bt(function() {
|
|
169516
169516
|
S(null);
|
|
169517
169517
|
}, []);
|
|
169518
169518
|
Xt(function() {
|
|
@@ -169855,7 +169855,7 @@ const K7t = (e, r, t, a, n) => {
|
|
|
169855
169855
|
};
|
|
169856
169856
|
return delete c.data, c;
|
|
169857
169857
|
}), J7t = (e, r, t, a, n, i = !1, o, c, f, s, l) => {
|
|
169858
|
-
const [u, d] =
|
|
169858
|
+
const [u, d] = Pt([]), [h, p] = Pt(!1), m = Yt([]), v = Yt(!1), g = Yt(!1), y = Yt(!0), b = Yt(!1), w = Yt(null), x = Yt(!1);
|
|
169859
169859
|
Xt(() => {
|
|
169860
169860
|
if (!(!(n != null && n.length) || !e.current || !r))
|
|
169861
169861
|
try {
|
|
@@ -169924,7 +169924,7 @@ const K7t = (e, r, t, a, n) => {
|
|
|
169924
169924
|
S.unobserve(_), w.current !== null && window.clearTimeout(w.current);
|
|
169925
169925
|
};
|
|
169926
169926
|
}, [e, r]);
|
|
169927
|
-
const M =
|
|
169927
|
+
const M = Bt(
|
|
169928
169928
|
(S) => {
|
|
169929
169929
|
if (y.current) {
|
|
169930
169930
|
const _ = {};
|
|
@@ -173129,7 +173129,7 @@ class C8t extends wR {
|
|
|
173129
173129
|
}
|
|
173130
173130
|
}
|
|
173131
173131
|
const T8t = (e, r, t = "Anonymous", a = !0, n = "") => {
|
|
173132
|
-
const [i, o] =
|
|
173132
|
+
const [i, o] = Pt("disconnected"), [c, f] = Pt([]);
|
|
173133
173133
|
return Xt(() => {
|
|
173134
173134
|
if (!e || !r || !a)
|
|
173135
173135
|
return;
|
|
@@ -173176,14 +173176,14 @@ const T8t = (e, r, t = "Anonymous", a = !0, n = "") => {
|
|
|
173176
173176
|
isAuthorized: p,
|
|
173177
173177
|
editorStateRef: m
|
|
173178
173178
|
}) => {
|
|
173179
|
-
const [v, g] =
|
|
173179
|
+
const [v, g] = Pt(1), y = Yt(null), b = u || y, [w, x] = Pt({}), { ydocRef: M, persistenceRef: S, syncStatus: _, isSyncedRef: D, refreshIndexedDB: R } = wee(n, c, s);
|
|
173180
173180
|
Zr(() => {
|
|
173181
173181
|
m && (m.current = {
|
|
173182
173182
|
...m.current,
|
|
173183
173183
|
refreshIndexedDB: R
|
|
173184
173184
|
});
|
|
173185
173185
|
}, [m]);
|
|
173186
|
-
const O =
|
|
173186
|
+
const O = Bt(
|
|
173187
173187
|
(P) => {
|
|
173188
173188
|
if (l && M.current) {
|
|
173189
173189
|
const G = $$(
|
|
@@ -173411,23 +173411,16 @@ const T8t = (e, r, t = "Anonymous", a = !0, n = "") => {
|
|
|
173411
173411
|
handleImportSmartContract: e,
|
|
173412
173412
|
handleViewSmartContract: r
|
|
173413
173413
|
}) => {
|
|
173414
|
-
const { isAuthorized: t } = P6();
|
|
173415
|
-
return /* @__PURE__ */ $t.jsxs(w6, { children: [
|
|
173416
|
-
/* @__PURE__ */ $t.jsx(
|
|
173417
|
-
|
|
173414
|
+
const { isAuthorized: t } = P6(), [a, n] = Pt(!1);
|
|
173415
|
+
return /* @__PURE__ */ $t.jsxs(w6, { open: a, onOpenChange: n, children: [
|
|
173416
|
+
/* @__PURE__ */ $t.jsx(x6, { children: /* @__PURE__ */ $t.jsx("div", { role: "button", className: "p-2 rounded-lg bg-[#fef2ef]", children: /* @__PURE__ */ $t.jsx(
|
|
173417
|
+
ar,
|
|
173418
173418
|
{
|
|
173419
|
-
|
|
173420
|
-
|
|
173421
|
-
|
|
173422
|
-
ar,
|
|
173423
|
-
{
|
|
173424
|
-
name: "FileExport",
|
|
173425
|
-
size: "md",
|
|
173426
|
-
className: "cursor-pointer text-[#F95738]"
|
|
173427
|
-
}
|
|
173428
|
-
) })
|
|
173419
|
+
name: "FileExport",
|
|
173420
|
+
size: "md",
|
|
173421
|
+
className: "cursor-pointer text-[#F95738]"
|
|
173429
173422
|
}
|
|
173430
|
-
),
|
|
173423
|
+
) }) }),
|
|
173431
173424
|
/* @__PURE__ */ $t.jsx(
|
|
173432
173425
|
ev,
|
|
173433
173426
|
{
|
|
@@ -173442,17 +173435,17 @@ const T8t = (e, r, t = "Anonymous", a = !0, n = "") => {
|
|
|
173442
173435
|
"div",
|
|
173443
173436
|
{
|
|
173444
173437
|
onClick: () => {
|
|
173445
|
-
var
|
|
173446
|
-
(
|
|
173447
|
-
const
|
|
173448
|
-
|
|
173438
|
+
var o;
|
|
173439
|
+
(o = document.getElementById("triggerAuth")) == null || o.click();
|
|
173440
|
+
const i = new URL(window.location.href);
|
|
173441
|
+
i.searchParams.set("sc", "true"), window.history.replaceState({}, "", i.toString()), n(!1);
|
|
173449
173442
|
},
|
|
173450
|
-
style: { marginBottom: "8px", backgroundColor: "#F8F9FA" },
|
|
173451
173443
|
className: "w-full flex cursor-pointer rounded-md flex-col p-2",
|
|
173444
|
+
style: { marginBottom: "8px", backgroundColor: "#F8F9FA" },
|
|
173452
173445
|
children: [
|
|
173453
|
-
/* @__PURE__ */ $t.jsx("p", { className: "
|
|
173446
|
+
/* @__PURE__ */ $t.jsx("p", { className: "font-size-2xsm font-medium text-[12px] leading-[16px] color-text-default", children: "dSheets account required" }),
|
|
173454
173447
|
/* @__PURE__ */ $t.jsxs("p", { className: "text-helper-text-sm mt-1 color-text-secondary", children: [
|
|
173455
|
-
/* @__PURE__ */ $t.jsx("a", { className: "
|
|
173448
|
+
/* @__PURE__ */ $t.jsx("a", { className: "inline color-text-link", children: "Signup/Login " }),
|
|
173456
173449
|
" to be able to access smart contracts."
|
|
173457
173450
|
] })
|
|
173458
173451
|
]
|
|
@@ -173461,7 +173454,9 @@ const T8t = (e, r, t = "Anonymous", a = !0, n = "") => {
|
|
|
173461
173454
|
/* @__PURE__ */ $t.jsxs(
|
|
173462
173455
|
"button",
|
|
173463
173456
|
{
|
|
173464
|
-
onClick: () =>
|
|
173457
|
+
onClick: () => {
|
|
173458
|
+
t && (e(), n(!1));
|
|
173459
|
+
},
|
|
173465
173460
|
className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-start space-x-2 transition",
|
|
173466
173461
|
children: [
|
|
173467
173462
|
/* @__PURE__ */ $t.jsx(
|
|
@@ -173484,7 +173479,9 @@ const T8t = (e, r, t = "Anonymous", a = !0, n = "") => {
|
|
|
173484
173479
|
/* @__PURE__ */ $t.jsxs(
|
|
173485
173480
|
"button",
|
|
173486
173481
|
{
|
|
173487
|
-
onClick: () =>
|
|
173482
|
+
onClick: () => {
|
|
173483
|
+
t && (r(), n(!1));
|
|
173484
|
+
},
|
|
173488
173485
|
className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-start space-x-2 transition",
|
|
173489
173486
|
children: [
|
|
173490
173487
|
/* @__PURE__ */ $t.jsx(
|
|
@@ -221409,7 +221406,7 @@ const KMt = ({
|
|
|
221409
221406
|
dsheetId: a,
|
|
221410
221407
|
currentDataRef: n
|
|
221411
221408
|
}) => {
|
|
221412
|
-
const { updateDocumentTitle: i } = P6(), [o, c] =
|
|
221409
|
+
const { updateDocumentTitle: i } = P6(), [o, c] = Pt([]), [f, s] = Pt(null);
|
|
221413
221410
|
return Xt(() => {
|
|
221414
221411
|
var u;
|
|
221415
221412
|
e && e.current && o.length > 0 && s(((u = o[0].config) == null ? void 0 : u.merge) ?? null);
|
|
@@ -445177,7 +445174,7 @@ const KMt = ({
|
|
|
445177
445174
|
duration: t = 500,
|
|
445178
445175
|
transitionClasses: a
|
|
445179
445176
|
}) => {
|
|
445180
|
-
const [n, i] =
|
|
445177
|
+
const [n, i] = Pt(e), [o, c] = Pt(e);
|
|
445181
445178
|
return Xt(() => {
|
|
445182
445179
|
if (e)
|
|
445183
445180
|
c(!0), requestAnimationFrame(() => {
|
|
@@ -445362,7 +445359,7 @@ const KMt = ({
|
|
|
445362
445359
|
editorStateRef: I,
|
|
445363
445360
|
handleSmartContractQuery: C
|
|
445364
445361
|
}) => {
|
|
445365
|
-
const [k, E] =
|
|
445362
|
+
const [k, E] = Pt(!1);
|
|
445366
445363
|
return /* @__PURE__ */ $t.jsx(
|
|
445367
445364
|
M8t,
|
|
445368
445365
|
{
|