cecomponent 1.0.48 → 1.0.49
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/ce-component-lib.css +1 -1
- package/dist/ce-component-lib.js +7 -7
- package/dist/ce-component-lib.mjs +464 -433
- package/package.json +1 -1
|
@@ -155,7 +155,7 @@ function requireReactJsxRuntime_development() {
|
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
156
|
)), M = this.props.ref, M !== void 0 ? M : null;
|
|
157
157
|
}
|
|
158
|
-
function f(M, D, P, H, O, z, Z,
|
|
158
|
+
function f(M, D, P, H, O, z, Z, oe) {
|
|
159
159
|
return P = z.ref, M = {
|
|
160
160
|
$$typeof: x,
|
|
161
161
|
type: M,
|
|
@@ -184,10 +184,10 @@ function requireReactJsxRuntime_development() {
|
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
186
186
|
writable: !0,
|
|
187
|
-
value:
|
|
187
|
+
value: oe
|
|
188
188
|
}), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M;
|
|
189
189
|
}
|
|
190
|
-
function c(M, D, P, H, O, z, Z,
|
|
190
|
+
function c(M, D, P, H, O, z, Z, oe) {
|
|
191
191
|
var ue = D.children;
|
|
192
192
|
if (ue !== void 0)
|
|
193
193
|
if (H)
|
|
@@ -234,7 +234,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
234
234
|
s(),
|
|
235
235
|
P,
|
|
236
236
|
Z,
|
|
237
|
-
|
|
237
|
+
oe
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
function m(M) {
|
|
@@ -6192,18 +6192,18 @@ function requireLottie() {
|
|
|
6192
6192
|
function u(A, k, M) {
|
|
6193
6193
|
return !M && M !== 0 && (M = 1), A === 1 && k === 1 && M === 1 ? this : this._t(A, 0, 0, 0, 0, k, 0, 0, 0, 0, M, 0, 0, 0, 0, 1);
|
|
6194
6194
|
}
|
|
6195
|
-
function x(A, k, M, D, P, H, O, z, Z,
|
|
6196
|
-
return this.props[0] = A, this.props[1] = k, this.props[2] = M, this.props[3] = D, this.props[4] = P, this.props[5] = H, this.props[6] = O, this.props[7] = z, this.props[8] = Z, this.props[9] =
|
|
6195
|
+
function x(A, k, M, D, P, H, O, z, Z, oe, ue, xe, fe, _e, Ee, we) {
|
|
6196
|
+
return this.props[0] = A, this.props[1] = k, this.props[2] = M, this.props[3] = D, this.props[4] = P, this.props[5] = H, this.props[6] = O, this.props[7] = z, this.props[8] = Z, this.props[9] = oe, this.props[10] = ue, this.props[11] = xe, this.props[12] = fe, this.props[13] = _e, this.props[14] = Ee, this.props[15] = we, this;
|
|
6197
6197
|
}
|
|
6198
6198
|
function d(A, k, M) {
|
|
6199
6199
|
return M = M || 0, A !== 0 || k !== 0 || M !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, A, k, M, 1) : this;
|
|
6200
6200
|
}
|
|
6201
|
-
function p(A, k, M, D, P, H, O, z, Z,
|
|
6201
|
+
function p(A, k, M, D, P, H, O, z, Z, oe, ue, xe, fe, _e, Ee, we) {
|
|
6202
6202
|
var he = this.props;
|
|
6203
|
-
if (A === 1 && k === 0 && M === 0 && D === 0 && P === 0 && H === 1 && O === 0 && z === 0 && Z === 0 &&
|
|
6203
|
+
if (A === 1 && k === 0 && M === 0 && D === 0 && P === 0 && H === 1 && O === 0 && z === 0 && Z === 0 && oe === 0 && ue === 1 && xe === 0)
|
|
6204
6204
|
return he[12] = he[12] * A + he[15] * fe, he[13] = he[13] * H + he[15] * _e, he[14] = he[14] * ue + he[15] * Ee, he[15] *= we, this._identityCalculated = !1, this;
|
|
6205
|
-
var
|
|
6206
|
-
return he[0] =
|
|
6205
|
+
var Pe = he[0], Ae = he[1], me = he[2], be = he[3], Me = he[4], Re = he[5], Fe = he[6], Be = he[7], Ne = he[8], ke = he[9], Oe = he[10], De = he[11], He = he[12], $e = he[13], ze = he[14], Ge = he[15];
|
|
6206
|
+
return he[0] = Pe * A + Ae * P + me * Z + be * fe, he[1] = Pe * k + Ae * H + me * oe + be * _e, he[2] = Pe * M + Ae * O + me * ue + be * Ee, he[3] = Pe * D + Ae * z + me * xe + be * we, he[4] = Me * A + Re * P + Fe * Z + Be * fe, he[5] = Me * k + Re * H + Fe * oe + Be * _e, he[6] = Me * M + Re * O + Fe * ue + Be * Ee, he[7] = Me * D + Re * z + Fe * xe + Be * we, he[8] = Ne * A + ke * P + Oe * Z + De * fe, he[9] = Ne * k + ke * H + Oe * oe + De * _e, he[10] = Ne * M + ke * O + Oe * ue + De * Ee, he[11] = Ne * D + ke * z + Oe * xe + De * we, he[12] = He * A + $e * P + ze * Z + Ge * fe, he[13] = He * k + $e * H + ze * oe + Ge * _e, he[14] = He * M + $e * O + ze * ue + Ge * Ee, he[15] = He * D + $e * z + ze * xe + Ge * we, this._identityCalculated = !1, this;
|
|
6207
6207
|
}
|
|
6208
6208
|
function E(A) {
|
|
6209
6209
|
var k = A.props;
|
|
@@ -6266,8 +6266,8 @@ function requireLottie() {
|
|
|
6266
6266
|
if (this.isIdentity())
|
|
6267
6267
|
D[0] = A[0], D[1] = A[1], D[2] = k[0], D[3] = k[1], D[4] = M[0], D[5] = M[1];
|
|
6268
6268
|
else {
|
|
6269
|
-
var P = this.props[0], H = this.props[1], O = this.props[4], z = this.props[5], Z = this.props[12],
|
|
6270
|
-
D[0] = A[0] * P + A[1] * O + Z, D[1] = A[0] * H + A[1] * z +
|
|
6269
|
+
var P = this.props[0], H = this.props[1], O = this.props[4], z = this.props[5], Z = this.props[12], oe = this.props[13];
|
|
6270
|
+
D[0] = A[0] * P + A[1] * O + Z, D[1] = A[0] * H + A[1] * z + oe, D[2] = k[0] * P + k[1] * O + Z, D[3] = k[0] * H + k[1] * z + oe, D[4] = M[0] * P + M[1] * O + Z, D[5] = M[0] * H + M[1] * z + oe;
|
|
6271
6271
|
}
|
|
6272
6272
|
return D;
|
|
6273
6273
|
}
|
|
@@ -7194,8 +7194,8 @@ function requireLottie() {
|
|
|
7194
7194
|
for (H = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), O = 0; O < H.length; O += 1)
|
|
7195
7195
|
A[k].fPath === H[O].src && (P = !1);
|
|
7196
7196
|
if (P) {
|
|
7197
|
-
var
|
|
7198
|
-
|
|
7197
|
+
var oe = createTag("link");
|
|
7198
|
+
oe.setAttribute("f-forigin", A[k].fOrigin), oe.setAttribute("f-origin", A[k].origin), oe.setAttribute("rel", "stylesheet"), oe.setAttribute("href", A[k].fPath), j.appendChild(oe);
|
|
7199
7199
|
}
|
|
7200
7200
|
}
|
|
7201
7201
|
A[k].helper = p(A[k], j), A[k].cache = {}, this.fonts.push(A[k]);
|
|
@@ -8698,25 +8698,25 @@ function requireLottie() {
|
|
|
8698
8698
|
m = u.length, l = 0, f = 0;
|
|
8699
8699
|
var ie = e.finalSize * 1.2 * 0.714, Y = !0, I, j, A, k, M;
|
|
8700
8700
|
k = i.length;
|
|
8701
|
-
var D, P = -1, H, O, z, Z = d,
|
|
8701
|
+
var D, P = -1, H, O, z, Z = d, oe = g, ue = _, xe = -1, fe, _e, Ee, we, he, Pe, Ae, me, be = "", Me = this.defaultPropsArray, Re;
|
|
8702
8702
|
if (e.j === 2 || e.j === 1) {
|
|
8703
|
-
var
|
|
8703
|
+
var Fe = 0, Be = 0, Ne = e.j === 2 ? -0.5 : -1, ke = 0, Oe = !0;
|
|
8704
8704
|
for (c = 0; c < m; c += 1)
|
|
8705
8705
|
if (u[c].n) {
|
|
8706
|
-
for (
|
|
8707
|
-
u[ke].animatorJustifyOffset =
|
|
8708
|
-
|
|
8706
|
+
for (Fe && (Fe += Be); ke < c; )
|
|
8707
|
+
u[ke].animatorJustifyOffset = Fe, ke += 1;
|
|
8708
|
+
Fe = 0, Oe = !0;
|
|
8709
8709
|
} else {
|
|
8710
8710
|
for (A = 0; A < k; A += 1)
|
|
8711
|
-
I = i[A].a, I.t.propType && (Oe && e.j === 2 && (Be += I.t.v * Ne), j = i[A].s, D = j.getMult(u[c].anIndexes[A], s.a[A].s.totalChars), D.length ?
|
|
8711
|
+
I = i[A].a, I.t.propType && (Oe && e.j === 2 && (Be += I.t.v * Ne), j = i[A].s, D = j.getMult(u[c].anIndexes[A], s.a[A].s.totalChars), D.length ? Fe += I.t.v * D[0] * Ne : Fe += I.t.v * D * Ne);
|
|
8712
8712
|
Oe = !1;
|
|
8713
8713
|
}
|
|
8714
|
-
for (
|
|
8715
|
-
u[ke].animatorJustifyOffset =
|
|
8714
|
+
for (Fe && (Fe += Be); ke < c; )
|
|
8715
|
+
u[ke].animatorJustifyOffset = Fe, ke += 1;
|
|
8716
8716
|
}
|
|
8717
8717
|
for (c = 0; c < m; c += 1) {
|
|
8718
8718
|
if (n.reset(), fe = 1, u[c].n)
|
|
8719
|
-
l = 0, f += e.yOffset, f += Y ? 1 : 0, d = Z, Y = !1, this._hasMaskedPath && (g =
|
|
8719
|
+
l = 0, f += e.yOffset, f += Y ? 1 : 0, d = Z, Y = !1, this._hasMaskedPath && (g = oe, _ = ue, C = T[g].points, S = C[_ - 1], p = C[_], b = p.partialLength, E = 0), be = "", me = "", Pe = "", Re = "", Me = this.defaultPropsArray;
|
|
8720
8720
|
else {
|
|
8721
8721
|
if (this._hasMaskedPath) {
|
|
8722
8722
|
if (xe !== u[c].line) {
|
|
@@ -8758,7 +8758,7 @@ function requireLottie() {
|
|
|
8758
8758
|
}
|
|
8759
8759
|
for (A = 0; A < k; A += 1)
|
|
8760
8760
|
I = i[A].a, I.p.propType && (j = i[A].s, D = j.getMult(u[c].anIndexes[A], s.a[A].s.totalChars), this._hasMaskedPath ? D.length ? n.translate(0, I.p.v[1] * D[0], -I.p.v[2] * D[1]) : n.translate(0, I.p.v[1] * D, -I.p.v[2] * D) : D.length ? n.translate(I.p.v[0] * D[0], I.p.v[1] * D[1], -I.p.v[2] * D[2]) : n.translate(I.p.v[0] * D, I.p.v[1] * D, -I.p.v[2] * D));
|
|
8761
|
-
if (e.strokeWidthAnim && (
|
|
8761
|
+
if (e.strokeWidthAnim && (Pe = Ee < 0 ? 0 : Ee), e.strokeColorAnim && (Ae = "rgb(" + Math.round(_e[0] * 255) + "," + Math.round(_e[1] * 255) + "," + Math.round(_e[2] * 255) + ")"), e.fillColorAnim && e.fc && (me = "rgb(" + Math.round(we[0] * 255) + "," + Math.round(we[1] * 255) + "," + Math.round(we[2] * 255) + ")"), this._hasMaskedPath) {
|
|
8762
8762
|
if (n.translate(0, -e.ls), n.translate(0, r[1] * ie * 0.01 + f, 0), this._pathData.p.v) {
|
|
8763
8763
|
X = (p.point[1] - S.point[1]) / (p.point[0] - S.point[0]);
|
|
8764
8764
|
var He = Math.atan(X) * 180 / Math.PI;
|
|
@@ -8778,7 +8778,7 @@ function requireLottie() {
|
|
|
8778
8778
|
}
|
|
8779
8779
|
a === "html" ? be = n.toCSS() : a === "svg" ? be = n.to2dCSS() : Me = [n.props[0], n.props[1], n.props[2], n.props[3], n.props[4], n.props[5], n.props[6], n.props[7], n.props[8], n.props[9], n.props[10], n.props[11], n.props[12], n.props[13], n.props[14], n.props[15]], Re = fe;
|
|
8780
8780
|
}
|
|
8781
|
-
o <= c ? (M = new LetterProps(Re,
|
|
8781
|
+
o <= c ? (M = new LetterProps(Re, Pe, Ae, me, be, Me), this.renderedLetters.push(M), o += 1, this.lettersChangedFlag = !0) : (M = this.renderedLetters[c], this.lettersChangedFlag = M.update(Re, Pe, Ae, me, be, Me) || this.lettersChangedFlag);
|
|
8782
8782
|
}
|
|
8783
8783
|
}
|
|
8784
8784
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -13902,10 +13902,10 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13902
13902
|
E(Q, G, Te, B, te);
|
|
13903
13903
|
var K = _(Te, ee, te, B);
|
|
13904
13904
|
K[ee].name = "!Directory", U > 0 && se !== J && (K[se].name = "!MiniFAT"), K[te[0]].name = "!FAT", K.fat_addrs = te, K.ssz = B;
|
|
13905
|
-
var ne = {},
|
|
13906
|
-
g(ee, K, Te,
|
|
13905
|
+
var ne = {}, le = [], ae = [], ve = [];
|
|
13906
|
+
g(ee, K, Te, le, U, ne, ae, se), d(ae, ve, le), le.shift();
|
|
13907
13907
|
var Se = {
|
|
13908
|
-
FileIndex:
|
|
13908
|
+
FileIndex: ae,
|
|
13909
13909
|
FullPaths: ve
|
|
13910
13910
|
};
|
|
13911
13911
|
return V && V.raw && (Se.raw = { header: de, sectors: Te }), Se;
|
|
@@ -14119,8 +14119,8 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14119
14119
|
ne > 0 && (ne < 4096 ? pe += ne + 63 >> 6 : ye += ne + 511 >> 9);
|
|
14120
14120
|
}
|
|
14121
14121
|
}
|
|
14122
|
-
for (var
|
|
14123
|
-
var Le = [1, Ie, Ce, ve,
|
|
14122
|
+
for (var le = ge.FullPaths.length + 3 >> 2, ae = pe + 7 >> 3, ve = pe + 127 >> 7, Se = ae + ye + le + ve, Ce = Se + 127 >> 7, Ie = Ce <= 109 ? 0 : Math.ceil((Ce - 109) / 127); Se + Ce + Ie + 127 >> 7 > Ce; ) Ie = ++Ce <= 109 ? 0 : Math.ceil((Ce - 109) / 127);
|
|
14123
|
+
var Le = [1, Ie, Ce, ve, le, ye, pe, 0];
|
|
14124
14124
|
return ge.FileIndex[0].size = pe << 6, Le[7] = (ge.FileIndex[0].start = Le[0] + Le[1] + Le[2] + Le[3] + Le[4] + Le[5]) + (Le[6] + 7 >> 3), Le;
|
|
14125
14125
|
}(F), U = new_buf(B[7] << 9), G = 0, ee = 0;
|
|
14126
14126
|
{
|
|
@@ -14258,7 +14258,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14258
14258
|
function O(F) {
|
|
14259
14259
|
return D ? D.deflateRawSync(F) : Ge(F);
|
|
14260
14260
|
}
|
|
14261
|
-
var z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Z = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258],
|
|
14261
|
+
var z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Z = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258], oe = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
|
|
14262
14262
|
function ue(F) {
|
|
14263
14263
|
var V = (F << 1 | F << 11) & 139536 | (F << 5 | F << 15) & 558144;
|
|
14264
14264
|
return (V >> 16 | V >> 8 | V) & 255;
|
|
@@ -14276,7 +14276,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14276
14276
|
var N = V & 7, B = V >>> 3;
|
|
14277
14277
|
return (F[B] | (N <= 5 ? 0 : F[B + 1] << 8)) >>> N & 7;
|
|
14278
14278
|
}
|
|
14279
|
-
function
|
|
14279
|
+
function Pe(F, V) {
|
|
14280
14280
|
var N = V & 7, B = V >>> 3;
|
|
14281
14281
|
return (F[B] | (N <= 4 ? 0 : F[B + 1] << 8)) >>> N & 15;
|
|
14282
14282
|
}
|
|
@@ -14300,7 +14300,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14300
14300
|
var B = V & 7, U = V >>> 3;
|
|
14301
14301
|
return N = (N & 1) << B, F[U] |= N, V + 1;
|
|
14302
14302
|
}
|
|
14303
|
-
function
|
|
14303
|
+
function Fe(F, V, N) {
|
|
14304
14304
|
var B = V & 7, U = V >>> 3;
|
|
14305
14305
|
return N <<= B, F[U] |= N & 255, N >>>= 8, F[U + 1] = N, V + 8;
|
|
14306
14306
|
}
|
|
@@ -14348,8 +14348,8 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14348
14348
|
}
|
|
14349
14349
|
var De = xe ? new Uint16Array(512) : ke(512), He = xe ? new Uint16Array(32) : ke(32);
|
|
14350
14350
|
if (!xe) {
|
|
14351
|
-
for (var
|
|
14352
|
-
for (
|
|
14351
|
+
for (var $e = 0; $e < 512; ++$e) De[$e] = 0;
|
|
14352
|
+
for ($e = 0; $e < 32; ++$e) He[$e] = 0;
|
|
14353
14353
|
}
|
|
14354
14354
|
(function() {
|
|
14355
14355
|
for (var F = [], V = 0; V < 32; V++) F.push(5);
|
|
@@ -14362,8 +14362,8 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14362
14362
|
Oe(N, De, 288);
|
|
14363
14363
|
})();
|
|
14364
14364
|
var ze = /* @__PURE__ */ function() {
|
|
14365
|
-
for (var V = xe ? new Uint8Array(32768) : [], N = 0, B = 0; N <
|
|
14366
|
-
for (; B <
|
|
14365
|
+
for (var V = xe ? new Uint8Array(32768) : [], N = 0, B = 0; N < oe.length - 1; ++N)
|
|
14366
|
+
for (; B < oe[N + 1]; ++B) V[B] = N;
|
|
14367
14367
|
for (; B < 32768; ++B) V[B] = 29;
|
|
14368
14368
|
var U = xe ? new Uint8Array(259) : [];
|
|
14369
14369
|
for (N = 0, B = 0; N < Z.length - 1; ++N)
|
|
@@ -14394,18 +14394,18 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14394
14394
|
if ((ye = ce[ge]) && (ye |= re & -32768, ye > re && (ye -= 32768), ye < re))
|
|
14395
14395
|
for (; se[ye + Te] == se[re + Te] && Te < 250; ) ++Te;
|
|
14396
14396
|
if (Te > 2) {
|
|
14397
|
-
pe = U[Te], pe <= 22 ? te =
|
|
14397
|
+
pe = U[Te], pe <= 22 ? te = Fe(Q, te, fe[pe + 1] >> 1) - 1 : (Fe(Q, te, 3), te += 5, Fe(Q, te, fe[pe - 23] >> 5), te += 3);
|
|
14398
14398
|
var K = pe < 8 ? 0 : pe - 4 >> 2;
|
|
14399
|
-
K > 0 && (Be(Q, te, Te - Z[pe]), te += K), pe = V[re - ye], te =
|
|
14399
|
+
K > 0 && (Be(Q, te, Te - Z[pe]), te += K), pe = V[re - ye], te = Fe(Q, te, fe[pe] >> 3), te -= 3;
|
|
14400
14400
|
var ne = pe < 4 ? 0 : pe - 2 >> 1;
|
|
14401
|
-
ne > 0 && (Be(Q, te, re - ye -
|
|
14402
|
-
for (var
|
|
14401
|
+
ne > 0 && (Be(Q, te, re - ye - oe[pe]), te += ne);
|
|
14402
|
+
for (var le = 0; le < Te; ++le)
|
|
14403
14403
|
ce[ge] = re & 32767, ge = (ge << 5 ^ se[re]) & 32767, ++re;
|
|
14404
14404
|
de -= Te - 1;
|
|
14405
14405
|
} else
|
|
14406
|
-
pe <= 143 ? pe = pe + 48 : te = Re(Q, te, 1), te =
|
|
14406
|
+
pe <= 143 ? pe = pe + 48 : te = Re(Q, te, 1), te = Fe(Q, te, fe[pe]), ce[ge] = re & 32767, ++re;
|
|
14407
14407
|
}
|
|
14408
|
-
te =
|
|
14408
|
+
te = Fe(Q, te, 0) - 1;
|
|
14409
14409
|
}
|
|
14410
14410
|
return Q.l = (te + 7) / 8 | 0, Q.l;
|
|
14411
14411
|
}
|
|
@@ -14417,13 +14417,13 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14417
14417
|
var V = new_buf(50 + Math.floor(F.length * 1.1)), N = ze(F, V);
|
|
14418
14418
|
return V.slice(0, N);
|
|
14419
14419
|
}
|
|
14420
|
-
var Ye = xe ? new Uint16Array(32768) : ke(32768),
|
|
14420
|
+
var Ye = xe ? new Uint16Array(32768) : ke(32768), je = xe ? new Uint16Array(32768) : ke(32768), Xe = xe ? new Uint16Array(128) : ke(128), Ke = 1, it = 1;
|
|
14421
14421
|
function et(F, V) {
|
|
14422
14422
|
var N = Ae(F, V) + 257;
|
|
14423
14423
|
V += 5;
|
|
14424
14424
|
var B = Ae(F, V) + 1;
|
|
14425
14425
|
V += 5;
|
|
14426
|
-
var U =
|
|
14426
|
+
var U = Pe(F, V) + 4;
|
|
14427
14427
|
V += 4;
|
|
14428
14428
|
for (var G = 0, ee = xe ? new Uint8Array(19) : ke(19), se = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], Q = 1, te = xe ? new Uint8Array(8) : ke(8), re = xe ? new Uint8Array(8) : ke(8), ce = ee.length, de = 0; de < U; ++de)
|
|
14429
14429
|
ee[z[de]] = G = he(F, V), Q < G && (Q = G), te[G]++, V += 3;
|
|
@@ -14455,7 +14455,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14455
14455
|
var K = Te.slice(0, N), ne = Te.slice(N);
|
|
14456
14456
|
for (de = N; de < 286; ++de) K[de] = 0;
|
|
14457
14457
|
for (de = B; de < 30; ++de) ne[de] = 0;
|
|
14458
|
-
return Ke = Oe(K, Ye, 286), it = Oe(ne,
|
|
14458
|
+
return Ke = Oe(K, Ye, 286), it = Oe(ne, je, 30), V;
|
|
14459
14459
|
}
|
|
14460
14460
|
function qe(F, V) {
|
|
14461
14461
|
if (F[0] == 3 && !(F[1] & 3))
|
|
@@ -14481,8 +14481,8 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14481
14481
|
var de = ce < 8 ? 0 : ce - 4 >> 2;
|
|
14482
14482
|
de > 5 && (de = 0);
|
|
14483
14483
|
var ge = G + Z[ce];
|
|
14484
|
-
de > 0 && (ge += be(F, N, de), N += de), re = be(F, N, Q), ce = B >>> 1 == 1 ? He[re] :
|
|
14485
|
-
var pe = ce < 4 ? 0 : ce - 2 >> 1, ye =
|
|
14484
|
+
de > 0 && (ge += be(F, N, de), N += de), re = be(F, N, Q), ce = B >>> 1 == 1 ? He[re] : je[re], N += ce & 15, ce >>>= 4;
|
|
14485
|
+
var pe = ce < 4 ? 0 : ce - 2 >> 1, ye = oe[ce];
|
|
14486
14486
|
for (pe > 0 && (ye += be(F, N, pe), N += pe), !V && ee < ge && (U = Ne(U, ge + 100), ee = U.length); G < ge; )
|
|
14487
14487
|
U[G] = U[G - ye], ++G;
|
|
14488
14488
|
}
|
|
@@ -14569,12 +14569,12 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14569
14569
|
pe.content,
|
|
14570
14570
|
0
|
|
14571
14571
|
);
|
|
14572
|
-
var
|
|
14573
|
-
ee == 8 && (
|
|
14572
|
+
var le = pe.content;
|
|
14573
|
+
ee == 8 && (le = O(le)), G = new_buf(30), G.write_shift(4, 67324752), G.write_shift(2, 20), G.write_shift(2, se), G.write_shift(2, ee), pe.mt ? n(G, pe.mt) : G.write_shift(4, 0), G.write_shift(-4, ye[ce]), G.write_shift(4, le.length), G.write_shift(
|
|
14574
14574
|
4,
|
|
14575
14575
|
/*::(*/
|
|
14576
14576
|
pe.content.length
|
|
14577
|
-
), G.write_shift(2, ne.length), G.write_shift(2, 0), re += G.length, B.push(G), re += ne.length, B.push(ne), re +=
|
|
14577
|
+
), G.write_shift(2, ne.length), G.write_shift(2, 0), re += G.length, B.push(G), re += ne.length, B.push(ne), re += le.length, B.push(le), G = new_buf(46), G.write_shift(4, 33639248), G.write_shift(2, 0), G.write_shift(2, 20), G.write_shift(2, se), G.write_shift(2, ee), G.write_shift(4, 0), G.write_shift(-4, ye[ce]), G.write_shift(4, le.length), G.write_shift(
|
|
14578
14578
|
4,
|
|
14579
14579
|
/*::(*/
|
|
14580
14580
|
pe.content.length
|
|
@@ -14582,7 +14582,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14582
14582
|
}
|
|
14583
14583
|
return G = new_buf(22), G.write_shift(4, 101010256), G.write_shift(2, 0), G.write_shift(2, 0), G.write_shift(2, ce), G.write_shift(2, ce), G.write_shift(4, Te), G.write_shift(4, re), G.write_shift(2, 0), bconcat([bconcat(B), bconcat(U), G]);
|
|
14584
14584
|
}
|
|
14585
|
-
var
|
|
14585
|
+
var Ve = {
|
|
14586
14586
|
htm: "text/html",
|
|
14587
14587
|
xml: "text/xml",
|
|
14588
14588
|
gif: "image/gif",
|
|
@@ -14595,7 +14595,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14595
14595
|
function tt(F, V) {
|
|
14596
14596
|
if (F.ctype) return F.ctype;
|
|
14597
14597
|
var N = F.name || "", B = N.match(/\.([^\.]+)$/);
|
|
14598
|
-
return B &&
|
|
14598
|
+
return B && Ve[B[1]] || V && (B = (N = V).match(/[\.\\]([^\.\\])+$/), B && Ve[B[1]]) ? Ve[B[1]] : "application/octet-stream";
|
|
14599
14599
|
}
|
|
14600
14600
|
function Je(F) {
|
|
14601
14601
|
for (var V = Base64_encode(F), N = [], B = 0; B < V.length; B += 76) N.push(V.slice(B, B + 76));
|
|
@@ -17910,8 +17910,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17910
17910
|
if (P) {
|
|
17911
17911
|
prep_blob(P, P.l || 0);
|
|
17912
17912
|
for (var z = O.Enum || M; P.l < P.length; ) {
|
|
17913
|
-
var Z = P.read_shift(2),
|
|
17914
|
-
if (P.l = xe, H(fe,
|
|
17913
|
+
var Z = P.read_shift(2), oe = z[Z] || z[65535], ue = P.read_shift(2), xe = P.l + ue, fe = oe.f && oe.f(P, ue, O);
|
|
17914
|
+
if (P.l = xe, H(fe, oe, Z)) return;
|
|
17915
17915
|
}
|
|
17916
17916
|
}
|
|
17917
17917
|
}
|
|
@@ -17929,7 +17929,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17929
17929
|
}
|
|
17930
17930
|
function r(P, H) {
|
|
17931
17931
|
if (!P) return P;
|
|
17932
|
-
var O = H || {}, z = O.dense ? [] : {}, Z = "Sheet1",
|
|
17932
|
+
var O = H || {}, z = O.dense ? [] : {}, Z = "Sheet1", oe = "", ue = 0, xe = {}, fe = [], _e = [], Ee = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, we = O.sheetRows || 0;
|
|
17933
17933
|
if (P[2] == 0 && (P[3] == 8 || P[3] == 9) && P.length >= 16 && P[14] == 5 && P[15] === 108)
|
|
17934
17934
|
throw new Error("Unsupported Works 3 for Mac file");
|
|
17935
17935
|
if (P[2] == 2)
|
|
@@ -17943,11 +17943,11 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17943
17943
|
break;
|
|
17944
17944
|
/* RANGE */
|
|
17945
17945
|
case 204:
|
|
17946
|
-
me && (
|
|
17946
|
+
me && (oe = me);
|
|
17947
17947
|
break;
|
|
17948
17948
|
/* SHEETNAMECS */
|
|
17949
17949
|
case 222:
|
|
17950
|
-
|
|
17950
|
+
oe = me;
|
|
17951
17951
|
break;
|
|
17952
17952
|
/* SHEETNAMELP */
|
|
17953
17953
|
case 15:
|
|
@@ -17960,7 +17960,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
17960
17960
|
case 14:
|
|
17961
17961
|
/* NUMBER */
|
|
17962
17962
|
case 16:
|
|
17963
|
-
Me == 14 && (me[2] & 112) == 112 && (me[2] & 15) > 1 && (me[2] & 15) < 15 && (me[1].z = O.dateNF || table_fmt[14], O.cellDates && (me[1].t = "d", me[1].v = numdate(me[1].v))), O.qpro && me[3] > ue && (z["!ref"] = encode_range(Ee), xe[Z] = z, fe.push(Z), z = O.dense ? [] : {}, Ee = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, ue = me[3], Z =
|
|
17963
|
+
Me == 14 && (me[2] & 112) == 112 && (me[2] & 15) > 1 && (me[2] & 15) < 15 && (me[1].z = O.dateNF || table_fmt[14], O.cellDates && (me[1].t = "d", me[1].v = numdate(me[1].v))), O.qpro && me[3] > ue && (z["!ref"] = encode_range(Ee), xe[Z] = z, fe.push(Z), z = O.dense ? [] : {}, Ee = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, ue = me[3], Z = oe || "Sheet" + (ue + 1), oe = "");
|
|
17964
17964
|
var Re = O.dense ? (z[me[0].r] || [])[me[0].c] : z[encode_cell(me[0])];
|
|
17965
17965
|
if (Re) {
|
|
17966
17966
|
Re.t = me[1].t, Re.v = me[1].v, me[1].z != null && (Re.z = me[1].z), me[1].f != null && (Re.f = me[1].f);
|
|
@@ -18003,25 +18003,25 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18003
18003
|
}
|
|
18004
18004
|
}, O);
|
|
18005
18005
|
else throw new Error("Unrecognized LOTUS BOF " + P[2]);
|
|
18006
|
-
if (z["!ref"] = encode_range(Ee), xe[
|
|
18007
|
-
for (var he = {},
|
|
18008
|
-
return { SheetNames:
|
|
18006
|
+
if (z["!ref"] = encode_range(Ee), xe[oe || Z] = z, fe.push(oe || Z), !_e.length) return { SheetNames: fe, Sheets: xe };
|
|
18007
|
+
for (var he = {}, Pe = [], Ae = 0; Ae < _e.length; ++Ae) xe[fe[Ae]] ? (Pe.push(_e[Ae] || fe[Ae]), he[_e[Ae]] = xe[_e[Ae]] || xe[fe[Ae]]) : (Pe.push(_e[Ae]), he[_e[Ae]] = { "!ref": "A1" });
|
|
18008
|
+
return { SheetNames: Pe, Sheets: he };
|
|
18009
18009
|
}
|
|
18010
18010
|
function i(P, H) {
|
|
18011
18011
|
var O = H || {};
|
|
18012
18012
|
if (+O.codepage >= 0 && set_cp(+O.codepage), O.type == "string") throw new Error("Cannot write WK1 to JS string");
|
|
18013
|
-
var z = buf_array(), Z = safe_decode_range(P["!ref"]),
|
|
18013
|
+
var z = buf_array(), Z = safe_decode_range(P["!ref"]), oe = Array.isArray(P), ue = [];
|
|
18014
18014
|
write_biff_rec(z, 0, n(1030)), write_biff_rec(z, 6, l(Z));
|
|
18015
18015
|
for (var xe = Math.min(Z.e.r, 8191), fe = Z.s.r; fe <= xe; ++fe)
|
|
18016
18016
|
for (var _e = encode_row(fe), Ee = Z.s.c; Ee <= Z.e.c; ++Ee) {
|
|
18017
18017
|
fe === Z.s.r && (ue[Ee] = encode_col(Ee));
|
|
18018
|
-
var we = ue[Ee] + _e, he =
|
|
18018
|
+
var we = ue[Ee] + _e, he = oe ? (P[fe] || [])[Ee] : P[we];
|
|
18019
18019
|
if (!(!he || he.t == "z"))
|
|
18020
18020
|
if (he.t == "n")
|
|
18021
18021
|
(he.v | 0) == he.v && he.v >= -32768 && he.v <= 32767 ? write_biff_rec(z, 13, x(fe, Ee, he.v)) : write_biff_rec(z, 14, p(fe, Ee, he.v));
|
|
18022
18022
|
else {
|
|
18023
|
-
var
|
|
18024
|
-
write_biff_rec(z, 15, m(fe, Ee,
|
|
18023
|
+
var Pe = format_cell(he);
|
|
18024
|
+
write_biff_rec(z, 15, m(fe, Ee, Pe.slice(0, 239)));
|
|
18025
18025
|
}
|
|
18026
18026
|
}
|
|
18027
18027
|
return write_biff_rec(z, 1), z.end();
|
|
@@ -18031,15 +18031,15 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18031
18031
|
if (+O.codepage >= 0 && set_cp(+O.codepage), O.type == "string") throw new Error("Cannot write WK3 to JS string");
|
|
18032
18032
|
var z = buf_array();
|
|
18033
18033
|
write_biff_rec(z, 0, a(P));
|
|
18034
|
-
for (var Z = 0,
|
|
18034
|
+
for (var Z = 0, oe = 0; Z < P.SheetNames.length; ++Z) (P.Sheets[P.SheetNames[Z]] || {})["!ref"] && write_biff_rec(z, 27, k(P.SheetNames[Z], oe++));
|
|
18035
18035
|
var ue = 0;
|
|
18036
18036
|
for (Z = 0; Z < P.SheetNames.length; ++Z) {
|
|
18037
18037
|
var xe = P.Sheets[P.SheetNames[Z]];
|
|
18038
18038
|
if (!(!xe || !xe["!ref"])) {
|
|
18039
18039
|
for (var fe = safe_decode_range(xe["!ref"]), _e = Array.isArray(xe), Ee = [], we = Math.min(fe.e.r, 8191), he = fe.s.r; he <= we; ++he)
|
|
18040
|
-
for (var
|
|
18040
|
+
for (var Pe = encode_row(he), Ae = fe.s.c; Ae <= fe.e.c; ++Ae) {
|
|
18041
18041
|
he === fe.s.r && (Ee[Ae] = encode_col(Ae));
|
|
18042
|
-
var me = Ee[Ae] +
|
|
18042
|
+
var me = Ee[Ae] + Pe, be = _e ? (xe[he] || [])[Ae] : xe[me];
|
|
18043
18043
|
if (!(!be || be.t == "z"))
|
|
18044
18044
|
if (be.t == "n")
|
|
18045
18045
|
write_biff_rec(z, 23, X(he, Ae, ue, be.v));
|
|
@@ -18060,8 +18060,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18060
18060
|
function a(P) {
|
|
18061
18061
|
var H = new_buf(26);
|
|
18062
18062
|
H.write_shift(2, 4096), H.write_shift(2, 4), H.write_shift(4, 0);
|
|
18063
|
-
for (var O = 0, z = 0, Z = 0,
|
|
18064
|
-
var ue = P.SheetNames[
|
|
18063
|
+
for (var O = 0, z = 0, Z = 0, oe = 0; oe < P.SheetNames.length; ++oe) {
|
|
18064
|
+
var ue = P.SheetNames[oe], xe = P.Sheets[ue];
|
|
18065
18065
|
if (!(!xe || !xe["!ref"])) {
|
|
18066
18066
|
++Z;
|
|
18067
18067
|
var fe = decode_range(xe["!ref"]);
|
|
@@ -18086,8 +18086,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18086
18086
|
var z = P.l + H, Z = f(P, H, O);
|
|
18087
18087
|
if (Z[1].t = "s", O.vers == 20768) {
|
|
18088
18088
|
P.l++;
|
|
18089
|
-
var
|
|
18090
|
-
return Z[1].v = P.read_shift(
|
|
18089
|
+
var oe = P.read_shift(1);
|
|
18090
|
+
return Z[1].v = P.read_shift(oe, "utf8"), Z;
|
|
18091
18091
|
}
|
|
18092
18092
|
return O.qpro && P.l++, Z[1].v = P.read_shift(z - P.l, "cstr"), Z;
|
|
18093
18093
|
}
|
|
@@ -18095,8 +18095,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18095
18095
|
var z = new_buf(7 + O.length);
|
|
18096
18096
|
z.write_shift(1, 255), z.write_shift(2, H), z.write_shift(2, P), z.write_shift(1, 39);
|
|
18097
18097
|
for (var Z = 0; Z < z.length; ++Z) {
|
|
18098
|
-
var
|
|
18099
|
-
z.write_shift(1,
|
|
18098
|
+
var oe = O.charCodeAt(Z);
|
|
18099
|
+
z.write_shift(1, oe >= 128 ? 95 : oe);
|
|
18100
18100
|
}
|
|
18101
18101
|
return z.write_shift(1, 0), z;
|
|
18102
18102
|
}
|
|
@@ -18120,8 +18120,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18120
18120
|
var z = P.l + H, Z = f(P, H, O);
|
|
18121
18121
|
if (Z[1].v = P.read_shift(8, "f"), O.qpro) P.l = z;
|
|
18122
18122
|
else {
|
|
18123
|
-
var
|
|
18124
|
-
S(P.slice(P.l, P.l +
|
|
18123
|
+
var oe = P.read_shift(2);
|
|
18124
|
+
S(P.slice(P.l, P.l + oe), Z), P.l += oe;
|
|
18125
18125
|
}
|
|
18126
18126
|
return Z;
|
|
18127
18127
|
}
|
|
@@ -18179,19 +18179,19 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18179
18179
|
];
|
|
18180
18180
|
function S(P, H) {
|
|
18181
18181
|
prep_blob(P, 0);
|
|
18182
|
-
for (var O = [], z = 0, Z = "",
|
|
18182
|
+
for (var O = [], z = 0, Z = "", oe = "", ue = "", xe = ""; P.l < P.length; ) {
|
|
18183
18183
|
var fe = P[P.l++];
|
|
18184
18184
|
switch (fe) {
|
|
18185
18185
|
case 0:
|
|
18186
18186
|
O.push(P.read_shift(8, "f"));
|
|
18187
18187
|
break;
|
|
18188
18188
|
case 1:
|
|
18189
|
-
|
|
18189
|
+
oe = y(H[0].c, P.read_shift(2), !0), Z = y(H[0].r, P.read_shift(2), !1), O.push(oe + Z);
|
|
18190
18190
|
break;
|
|
18191
18191
|
case 2:
|
|
18192
18192
|
{
|
|
18193
18193
|
var _e = y(H[0].c, P.read_shift(2), !0), Ee = y(H[0].r, P.read_shift(2), !1);
|
|
18194
|
-
|
|
18194
|
+
oe = y(H[0].c, P.read_shift(2), !0), Z = y(H[0].r, P.read_shift(2), !1), O.push(_e + Ee + ":" + oe + Z);
|
|
18195
18195
|
}
|
|
18196
18196
|
break;
|
|
18197
18197
|
case 3:
|
|
@@ -18251,8 +18251,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18251
18251
|
function b(P, H, O, z) {
|
|
18252
18252
|
var Z = new_buf(6 + z.length);
|
|
18253
18253
|
Z.write_shift(2, P), Z.write_shift(1, O), Z.write_shift(1, H), Z.write_shift(1, 39);
|
|
18254
|
-
for (var
|
|
18255
|
-
var ue = z.charCodeAt(
|
|
18254
|
+
for (var oe = 0; oe < z.length; ++oe) {
|
|
18255
|
+
var ue = z.charCodeAt(oe);
|
|
18256
18256
|
Z.write_shift(1, ue >= 128 ? 95 : ue);
|
|
18257
18257
|
}
|
|
18258
18258
|
return Z.write_shift(1, 0), Z;
|
|
@@ -18291,18 +18291,18 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
18291
18291
|
return O[1].v = z, O;
|
|
18292
18292
|
}
|
|
18293
18293
|
function L(P, H) {
|
|
18294
|
-
var O = C(P), z = P.read_shift(4), Z = P.read_shift(4),
|
|
18295
|
-
if (
|
|
18294
|
+
var O = C(P), z = P.read_shift(4), Z = P.read_shift(4), oe = P.read_shift(2);
|
|
18295
|
+
if (oe == 65535)
|
|
18296
18296
|
return z === 0 && Z === 3221225472 ? (O[1].t = "e", O[1].v = 15) : z === 0 && Z === 3489660928 ? (O[1].t = "e", O[1].v = 42) : O[1].v = 0, O;
|
|
18297
|
-
var ue =
|
|
18298
|
-
return
|
|
18297
|
+
var ue = oe & 32768;
|
|
18298
|
+
return oe = (oe & 32767) - 16446, O[1].v = (1 - ue * 2) * (Z * Math.pow(2, oe + 32) + z * Math.pow(2, oe)), O;
|
|
18299
18299
|
}
|
|
18300
18300
|
function X(P, H, O, z) {
|
|
18301
18301
|
var Z = new_buf(14);
|
|
18302
18302
|
if (Z.write_shift(2, P), Z.write_shift(1, O), Z.write_shift(1, H), z == 0)
|
|
18303
18303
|
return Z.write_shift(4, 0), Z.write_shift(4, 0), Z.write_shift(2, 65535), Z;
|
|
18304
|
-
var
|
|
18305
|
-
return z < 0 && (
|
|
18304
|
+
var oe = 0, ue = 0, xe = 0, fe = 0;
|
|
18305
|
+
return z < 0 && (oe = 1, z = -z), ue = Math.log2(z) | 0, z /= Math.pow(2, ue - 31), fe = z >>> 0, (fe & 2147483648) == 0 && (z /= 2, ++ue, fe = z >>> 0), z -= fe, fe |= 2147483648, fe >>>= 0, z *= Math.pow(2, 32), xe = z >>> 0, Z.write_shift(4, xe), Z.write_shift(4, fe), ue += 16383 + (oe ? 32768 : 0), Z.write_shift(2, ue), Z;
|
|
18306
18306
|
}
|
|
18307
18307
|
function q(P, H) {
|
|
18308
18308
|
var O = L(P);
|
|
@@ -27486,7 +27486,7 @@ function write_numbers_iwa(e, t) {
|
|
|
27486
27486
|
}).forEach(function(H) {
|
|
27487
27487
|
var O = H[0], z = H[1];
|
|
27488
27488
|
if (O.type == 2 && O.name.match(/\.iwa/)) {
|
|
27489
|
-
var Z = O.content,
|
|
27489
|
+
var Z = O.content, oe = decompress_iwa_file(Z), ue = parse_iwa_file(oe);
|
|
27490
27490
|
ue.forEach(function(xe) {
|
|
27491
27491
|
l.push(xe.id), o[xe.id] = { deps: [], location: z, type: varint_to_i32(xe.messages[0].meta[1][0].data) };
|
|
27492
27492
|
});
|
|
@@ -27506,7 +27506,7 @@ function write_numbers_iwa(e, t) {
|
|
|
27506
27506
|
if (H[1], !!O.name.match(/\.iwa/)) {
|
|
27507
27507
|
var z = parse_iwa_file(decompress_iwa_file(O.content));
|
|
27508
27508
|
z.forEach(function(Z) {
|
|
27509
|
-
Z.messages.forEach(function(
|
|
27509
|
+
Z.messages.forEach(function(oe) {
|
|
27510
27510
|
c.forEach(function(ue) {
|
|
27511
27511
|
Z.messages.some(function(xe) {
|
|
27512
27512
|
return varint_to_i32(xe.meta[1][0].data) != 11006 && u8contains(xe.data, ue[1]);
|
|
@@ -27577,8 +27577,8 @@ function write_numbers_iwa(e, t) {
|
|
|
27577
27577
|
var I = parse_TSP_Reference(X[4][0].data);
|
|
27578
27578
|
(function() {
|
|
27579
27579
|
for (var H = CFB.find(f, o[I].location), O = parse_iwa_file(decompress_iwa_file(H.content)), z, Z = 0; Z < O.length; ++Z) {
|
|
27580
|
-
var
|
|
27581
|
-
|
|
27580
|
+
var oe = O[Z];
|
|
27581
|
+
oe.id == I && (z = oe);
|
|
27582
27582
|
}
|
|
27583
27583
|
var ue = parse_shallow(z.messages[0].data);
|
|
27584
27584
|
{
|
|
@@ -27601,8 +27601,8 @@ function write_numbers_iwa(e, t) {
|
|
|
27601
27601
|
var M = parse_TSP_Reference(k[2][0].data);
|
|
27602
27602
|
(function() {
|
|
27603
27603
|
for (var H = CFB.find(f, o[M].location), O = parse_iwa_file(decompress_iwa_file(H.content)), z, Z = 0; Z < O.length; ++Z) {
|
|
27604
|
-
var
|
|
27605
|
-
|
|
27604
|
+
var oe = O[Z];
|
|
27605
|
+
oe.id == M && (z = oe);
|
|
27606
27606
|
}
|
|
27607
27607
|
var ue = parse_shallow(z.messages[0].data);
|
|
27608
27608
|
{
|
|
@@ -28286,40 +28286,40 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28286
28286
|
}) => {
|
|
28287
28287
|
const [M, D] = useState(
|
|
28288
28288
|
{}
|
|
28289
|
-
), [P, H] = useState(!1), [O, z] = useState([]), [Z,
|
|
28289
|
+
), [P, H] = useState(!1), [O, z] = useState([]), [Z, oe] = useState([]), [ue, xe] = useState(!1), [fe, _e] = useState(/* @__PURE__ */ new Set()), [Ee, we] = useState(null), [he, Pe] = useState(!1), [Ae, me] = useState(""), [be, Me] = useState("contains"), [Re, Fe] = useState(""), [Be, Ne] = useState(0), [ke, Oe] = useState(
|
|
28290
28290
|
T ?? 10
|
|
28291
|
-
), [De, He] = useState(/* @__PURE__ */ new Set()), [
|
|
28291
|
+
), [De, He] = useState(/* @__PURE__ */ new Set()), [$e, ze] = useState(""), [Ge, Ye] = useState(!1), [je, Xe] = useState(/* @__PURE__ */ new Set()), Ke = useRef(null), it = useRef(null), et = useRef(null), [qe, st] = useState(/* @__PURE__ */ new Set()), [Ue, nt] = useState([]), [lt, ft] = useState(!1), [Ve, tt] = useState(null), [Je, at] = useState(!1), ht = () => at(!0), ct = () => at(!1), [ut, We] = useState(!0);
|
|
28292
28292
|
useEffect(() => {
|
|
28293
28293
|
if (t && Array.isArray(t)) {
|
|
28294
28294
|
let K = [...t];
|
|
28295
28295
|
if (A) {
|
|
28296
|
-
const { column: ne, direction:
|
|
28297
|
-
K.sort((
|
|
28298
|
-
if (
|
|
28296
|
+
const { column: ne, direction: le } = A;
|
|
28297
|
+
K.sort((ae, ve) => {
|
|
28298
|
+
if (ae[ne] == null) return 1;
|
|
28299
28299
|
if (ve[ne] == null) return -1;
|
|
28300
|
-
if (
|
|
28300
|
+
if (ae[ne] === ve[ne]) return 0;
|
|
28301
28301
|
const Se = (Le) => {
|
|
28302
28302
|
if (typeof Le != "string") return null;
|
|
28303
28303
|
const Qe = Le.match(/\d+/);
|
|
28304
28304
|
return Qe ? parseInt(Qe[0], 10) : null;
|
|
28305
|
-
}, Ce = Se(
|
|
28305
|
+
}, Ce = Se(ae[ne]), Ie = Se(ve[ne]);
|
|
28306
28306
|
if (Ce !== null && Ie !== null)
|
|
28307
|
-
return
|
|
28307
|
+
return le === "asc" ? Ce - Ie : Ie - Ce;
|
|
28308
28308
|
if (Ce !== null || Ie !== null)
|
|
28309
28309
|
return Ce !== null ? -1 : 1;
|
|
28310
28310
|
{
|
|
28311
|
-
const Le = String(
|
|
28312
|
-
return
|
|
28311
|
+
const Le = String(ae[ne] || "").toLowerCase(), Qe = String(ve[ne] || "").toLowerCase();
|
|
28312
|
+
return le === "asc" ? Le.localeCompare(Qe) : Qe.localeCompare(Le);
|
|
28313
28313
|
}
|
|
28314
28314
|
}), tt(A);
|
|
28315
28315
|
}
|
|
28316
|
-
if (z(K),
|
|
28317
|
-
const ne = {},
|
|
28318
|
-
K.forEach((
|
|
28319
|
-
const Se =
|
|
28320
|
-
for (const Ce of
|
|
28321
|
-
if (
|
|
28322
|
-
ne[Se] = { columnId: Ce, rowData:
|
|
28316
|
+
if (z(K), oe(K), We(!1), o) {
|
|
28317
|
+
const ne = {}, le = Array.isArray(o) ? o : [o];
|
|
28318
|
+
K.forEach((ae, ve) => {
|
|
28319
|
+
const Se = ae.id ?? `__row_${ve}`;
|
|
28320
|
+
for (const Ce of le)
|
|
28321
|
+
if (ae[Ce] === !0) {
|
|
28322
|
+
ne[Se] = { columnId: Ce, rowData: ae };
|
|
28323
28323
|
break;
|
|
28324
28324
|
}
|
|
28325
28325
|
}), Ze(ne);
|
|
@@ -28328,33 +28328,31 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28328
28328
|
We(!0);
|
|
28329
28329
|
}, [t, A, o]), useEffect(() => {
|
|
28330
28330
|
if (O.length > 0) {
|
|
28331
|
-
const K = Object.keys(O[0]), ne = K.map((
|
|
28332
|
-
const
|
|
28331
|
+
const K = Object.keys(O[0]), ne = K.map((le) => {
|
|
28332
|
+
const ae = r == null ? void 0 : r.find((ve) => ve.id === le);
|
|
28333
28333
|
return {
|
|
28334
|
-
id:
|
|
28335
|
-
label: (
|
|
28336
|
-
tooltip:
|
|
28337
|
-
shouldDisplay: (
|
|
28338
|
-
shouldVisible: (
|
|
28334
|
+
id: le,
|
|
28335
|
+
label: (ae == null ? void 0 : ae.label) || le.charAt(0).toUpperCase() + le.slice(1),
|
|
28336
|
+
tooltip: ae == null ? void 0 : ae.tooltip,
|
|
28337
|
+
shouldDisplay: (ae == null ? void 0 : ae.shouldDisplay) ?? !0,
|
|
28338
|
+
shouldVisible: (ae == null ? void 0 : ae.shouldVisible) ?? !0
|
|
28339
28339
|
};
|
|
28340
28340
|
});
|
|
28341
28341
|
if (nt(ne), !lt) {
|
|
28342
|
-
const
|
|
28343
|
-
Xe(new Set(
|
|
28342
|
+
const le = (r == null ? void 0 : r.filter((ae) => ae.shouldDisplay !== !1).map((ae) => ae.id)) || K;
|
|
28343
|
+
Xe(new Set(le)), ft(!0);
|
|
28344
28344
|
}
|
|
28345
28345
|
}
|
|
28346
28346
|
}, [O, r]);
|
|
28347
28347
|
const [pt, Ze] = useState({}), dt = ({
|
|
28348
28348
|
rowIndex: K,
|
|
28349
28349
|
columnId: ne,
|
|
28350
|
-
rowData:
|
|
28350
|
+
rowData: le
|
|
28351
28351
|
}) => {
|
|
28352
|
-
const
|
|
28353
|
-
...
|
|
28354
|
-
...Object.fromEntries(
|
|
28355
|
-
|
|
28356
|
-
)
|
|
28357
|
-
}, Se = oe.id ?? `__row_${K}`;
|
|
28352
|
+
const ae = Array.isArray(o) ? o : [o], ve = {
|
|
28353
|
+
...le,
|
|
28354
|
+
...Object.fromEntries(ae.map((Ie) => [Ie, Ie === ne]))
|
|
28355
|
+
}, Se = le.id ?? `__row_${K}`;
|
|
28358
28356
|
Ze((Ie) => ({
|
|
28359
28357
|
...Ie,
|
|
28360
28358
|
[Se]: { columnId: ne, rowData: ve }
|
|
@@ -28362,79 +28360,79 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28362
28360
|
const Ce = O.map((Ie, Le) => (Ie.id ?? `__row_${Le}`) === Se ? {
|
|
28363
28361
|
...Ie,
|
|
28364
28362
|
...Object.fromEntries(
|
|
28365
|
-
|
|
28363
|
+
ae.map((ot) => [ot, ot === ne])
|
|
28366
28364
|
)
|
|
28367
28365
|
} : {
|
|
28368
28366
|
...Ie,
|
|
28369
|
-
...Object.fromEntries(
|
|
28367
|
+
...Object.fromEntries(ae.map((ot) => [ot, !1]))
|
|
28370
28368
|
});
|
|
28371
|
-
z(Ce),
|
|
28369
|
+
z(Ce), oe(Ce), k && k({ fullData: Ce, updatedRow: ve });
|
|
28372
28370
|
}, xt = (K) => {
|
|
28373
|
-
var
|
|
28374
|
-
const ne = O.findIndex((ve) => ve === K),
|
|
28375
|
-
return ((
|
|
28371
|
+
var ae;
|
|
28372
|
+
const ne = O.findIndex((ve) => ve === K), le = K.id ?? `__row_${ne}`;
|
|
28373
|
+
return ((ae = pt[le]) == null ? void 0 : ae.columnId) || "";
|
|
28376
28374
|
}, rt = useMemo(() => {
|
|
28377
28375
|
const K = Be * ke, ne = K + ke;
|
|
28378
28376
|
return O.slice(K, ne);
|
|
28379
28377
|
}, [O, Be, ke]), F = (K) => {
|
|
28380
|
-
const ne = new Set(
|
|
28378
|
+
const ne = new Set(je);
|
|
28381
28379
|
ne.has(K) ? ne.size > 1 && ne.delete(K) : ne.add(K), Xe(ne);
|
|
28382
28380
|
}, V = (K, ne = null) => {
|
|
28383
|
-
const
|
|
28384
|
-
|
|
28385
|
-
ve.startsWith(`${K}`) &&
|
|
28386
|
-
}),
|
|
28381
|
+
const le = ne ? `${K}-${ne}` : `${K}`, ae = new Set(De);
|
|
28382
|
+
ae.has(le) ? ae.delete(le) : (Array.from(ae).forEach((ve) => {
|
|
28383
|
+
ve.startsWith(`${K}`) && ae.delete(ve);
|
|
28384
|
+
}), ae.add(le)), He(ae);
|
|
28387
28385
|
}, N = (K) => {
|
|
28388
28386
|
we(Ee === K ? null : K);
|
|
28389
28387
|
}, B = (K) => {
|
|
28390
28388
|
if (Z.length === 0) return;
|
|
28391
28389
|
let ne = "asc";
|
|
28392
|
-
|
|
28393
|
-
const
|
|
28394
|
-
z(
|
|
28390
|
+
Ve && Ve.column === K && (ne = Ve.direction === "asc" ? "desc" : "asc");
|
|
28391
|
+
const le = [...Z].sort((ae, ve) => ae[K] == null ? 1 : ve[K] == null ? -1 : ae[K] === ve[K] ? 0 : ne === "asc" ? ae[K] > ve[K] ? 1 : -1 : ae[K] < ve[K] ? 1 : -1);
|
|
28392
|
+
z(le), tt({ column: K, direction: ne });
|
|
28395
28393
|
}, U = () => {
|
|
28396
28394
|
let K = [];
|
|
28397
28395
|
K = Z;
|
|
28398
|
-
const ne = K.filter((
|
|
28396
|
+
const ne = K.filter((le) => {
|
|
28399
28397
|
var ve;
|
|
28400
|
-
const
|
|
28401
|
-
return be === "contains" ?
|
|
28398
|
+
const ae = ((ve = le[Ae]) == null ? void 0 : ve.toLowerCase().toString()) || "";
|
|
28399
|
+
return be === "contains" ? ae.includes(Re.toLowerCase()) : be === "equals" ? ae === Re : be === "startsWith" ? ae.startsWith(Re) : be === "endsWith" ? ae.endsWith(Re) : be === "does not contain" ? !ae.includes(Re) : be === "does not equal" ? ae !== Re : be === "is empty" ? ae.trim() === "" : be === "is not empty" ? ae.trim() !== "" : be === "is any of" ? Re.split(",").map((Se) => Se.trim()).includes(ae) : !0;
|
|
28402
28400
|
});
|
|
28403
|
-
z(ne),
|
|
28401
|
+
z(ne), Pe(!1), Fe(""), me("");
|
|
28404
28402
|
}, G = (K, ne) => {
|
|
28405
|
-
let
|
|
28406
|
-
|
|
28407
|
-
const
|
|
28403
|
+
let le = [];
|
|
28404
|
+
le = Z;
|
|
28405
|
+
const ae = le.filter((ve) => {
|
|
28408
28406
|
var Ce;
|
|
28409
28407
|
const Se = ((Ce = ve[K]) == null ? void 0 : Ce.toLowerCase().toString()) || "";
|
|
28410
28408
|
return be === "contains" ? Se.includes(ne.toLowerCase()) : be === "equals" ? Se === ne : be === "startsWith" ? Se.startsWith(ne) : be === "endsWith" ? Se.endsWith(ne) : be === "does not contain" ? !Se.includes(ne) : be === "does not equal" ? Se !== ne : be === "is empty" ? Se.trim() === "" : be === "is not empty" ? Se.trim() !== "" : be === "is any of" ? ne.split(",").map((Ie) => Ie.trim()).includes(Se) : !0;
|
|
28411
28409
|
});
|
|
28412
|
-
z(
|
|
28410
|
+
z(ae), Pe(!1);
|
|
28413
28411
|
}, ee = (K) => {
|
|
28414
28412
|
K.key === "Enter" && G();
|
|
28415
28413
|
};
|
|
28416
28414
|
useEscapeKey(() => {
|
|
28417
|
-
we(null),
|
|
28415
|
+
we(null), Pe(!1);
|
|
28418
28416
|
});
|
|
28419
28417
|
const se = (K, ne = "") => {
|
|
28420
|
-
const
|
|
28418
|
+
const le = (ae) => {
|
|
28421
28419
|
const ve = new Set(qe);
|
|
28422
|
-
ve.has(
|
|
28420
|
+
ve.has(ae) ? ve.delete(ae) : ve.add(ae), st(ve);
|
|
28423
28421
|
};
|
|
28424
28422
|
if (Array.isArray(K)) {
|
|
28425
|
-
const
|
|
28423
|
+
const ae = Array.from(
|
|
28426
28424
|
new Set(
|
|
28427
28425
|
K.reduce((ve, Se) => typeof Se == "object" && Se !== null ? [...ve, ...Object.keys(Se)] : ve, [])
|
|
28428
28426
|
)
|
|
28429
28427
|
);
|
|
28430
28428
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "expanded-section", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nested-table", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { children: [
|
|
28431
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("thead", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children:
|
|
28432
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: K.map((ve, Se) => /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children:
|
|
28429
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("thead", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: ae.map((ve) => /* @__PURE__ */ jsxRuntimeExports.jsx("th", { children: ve.charAt(0).toUpperCase() + ve.slice(1) }, ve)) }) }),
|
|
28430
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: K.map((ve, Se) => /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: ae.map((Ce) => /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: typeof ve[Ce] == "object" && ve[Ce] !== null ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
28433
28431
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28434
28432
|
"button",
|
|
28435
28433
|
{
|
|
28436
28434
|
className: "toggle-button",
|
|
28437
|
-
onClick: () =>
|
|
28435
|
+
onClick: () => le(`${ne}-${Se}-${Ce}`),
|
|
28438
28436
|
children: qe.has(`${ne}-${Se}-${Ce}`) ? "▼" : "▶"
|
|
28439
28437
|
}
|
|
28440
28438
|
),
|
|
@@ -28450,31 +28448,31 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28450
28448
|
/* @__PURE__ */ jsxRuntimeExports.jsx("th", { className: "table-header-cell", children: "Property" }),
|
|
28451
28449
|
/* @__PURE__ */ jsxRuntimeExports.jsx("th", { className: "table-header-cell", children: "Value" })
|
|
28452
28450
|
] }) }),
|
|
28453
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: Object.entries(K).map(([
|
|
28454
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "table-cell", children: /* @__PURE__ */ jsxRuntimeExports.jsx("strong", { children:
|
|
28451
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: Object.entries(K).map(([ae, ve]) => /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
|
28452
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "table-cell", children: /* @__PURE__ */ jsxRuntimeExports.jsx("strong", { children: ae }) }),
|
|
28455
28453
|
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "table-cell", children: typeof ve == "object" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
28456
28454
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28457
28455
|
"button",
|
|
28458
28456
|
{
|
|
28459
28457
|
className: "toggle-button",
|
|
28460
|
-
onClick: () =>
|
|
28461
|
-
children: qe.has(`${ne}-${
|
|
28458
|
+
onClick: () => le(`${ne}-${ae}`),
|
|
28459
|
+
children: qe.has(`${ne}-${ae}`) ? "▼" : "▶"
|
|
28462
28460
|
}
|
|
28463
28461
|
),
|
|
28464
|
-
qe.has(`${ne}-${
|
|
28462
|
+
qe.has(`${ne}-${ae}`) && se(ve, `${ne}-${ae}`)
|
|
28465
28463
|
] }) : String(ve) })
|
|
28466
|
-
] }, `${ne}-${
|
|
28464
|
+
] }, `${ne}-${ae}`)) })
|
|
28467
28465
|
] }) });
|
|
28468
28466
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: String(K) });
|
|
28469
28467
|
}, Q = (K) => {
|
|
28470
28468
|
if (K) {
|
|
28471
|
-
const ne = K.getBoundingClientRect(),
|
|
28472
|
-
|
|
28469
|
+
const ne = K.getBoundingClientRect(), le = ne.right > window.innerWidth, ae = ne.left < 0;
|
|
28470
|
+
le ? (K.classList.add("adjust-left"), K.classList.remove("adjust-right")) : ae ? (K.classList.add("adjust-right"), K.classList.remove("adjust-left")) : (K.classList.remove("adjust-left"), K.classList.remove("adjust-right"));
|
|
28473
28471
|
}
|
|
28474
28472
|
};
|
|
28475
28473
|
useEffect(() => {
|
|
28476
28474
|
const K = (ne) => {
|
|
28477
|
-
he && Ke.current && !Ke.current.contains(ne.target) &&
|
|
28475
|
+
he && Ke.current && !Ke.current.contains(ne.target) && Pe(!1);
|
|
28478
28476
|
};
|
|
28479
28477
|
return document.addEventListener("mousedown", K), () => {
|
|
28480
28478
|
document.removeEventListener("mousedown", K);
|
|
@@ -28489,8 +28487,8 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28489
28487
|
}, [Ge]);
|
|
28490
28488
|
const te = (K, ne) => {
|
|
28491
28489
|
K.preventDefault();
|
|
28492
|
-
const
|
|
28493
|
-
const Ie = Math.max(100,
|
|
28490
|
+
const le = K.pageX, ae = M[ne] || 150, ve = (Ce) => {
|
|
28491
|
+
const Ie = Math.max(100, ae + (Ce.pageX - le));
|
|
28494
28492
|
D((Le) => ({
|
|
28495
28493
|
...Le,
|
|
28496
28494
|
[ne]: Ie
|
|
@@ -28500,27 +28498,44 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28500
28498
|
};
|
|
28501
28499
|
document.addEventListener("mousemove", ve), document.addEventListener("mouseup", Se);
|
|
28502
28500
|
}, re = (K, ne) => {
|
|
28503
|
-
var
|
|
28504
|
-
const
|
|
28505
|
-
return b != null && b.includes(K) ? R != null && R[K] ? R[K].includes(
|
|
28501
|
+
var ae;
|
|
28502
|
+
const le = String(ne);
|
|
28503
|
+
return b != null && b.includes(K) ? R != null && R[K] ? R[K].includes(le) : !0 : !!((ae = R == null ? void 0 : R._global_) != null && ae.includes(le));
|
|
28506
28504
|
}, ce = (K, ne) => {
|
|
28507
28505
|
re(ne, K[ne]) && L && L(K);
|
|
28508
28506
|
}, de = rt.some(
|
|
28509
|
-
(K) => Array.from(
|
|
28507
|
+
(K) => Array.from(je).some(
|
|
28510
28508
|
(ne) => Array.isArray(K[ne]) && K[ne].length > 0 && K[ne].some(
|
|
28511
|
-
(
|
|
28509
|
+
(le) => typeof le == "object" && le !== null
|
|
28512
28510
|
)
|
|
28513
28511
|
)
|
|
28514
28512
|
), ge = () => {
|
|
28515
|
-
const K = Ue.filter((ve) =>
|
|
28513
|
+
const K = Ue.filter((ve) => je.has(ve.id)), ne = Z.map(
|
|
28516
28514
|
(ve) => K.reduce(
|
|
28517
28515
|
(Se, Ce) => (Se[Ce.label || Ce.id] = ve[Ce.id], Se),
|
|
28518
28516
|
{}
|
|
28519
28517
|
)
|
|
28520
|
-
),
|
|
28521
|
-
utils.book_append_sheet(
|
|
28518
|
+
), le = utils.json_to_sheet(ne), ae = utils.book_new();
|
|
28519
|
+
utils.book_append_sheet(ae, le, "Data"), writeFileSync(ae, "data-grid-export.xlsx");
|
|
28522
28520
|
}, pe = () => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "table-container", children: [
|
|
28523
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "table-scroll-container", children: /* @__PURE__ */ jsxRuntimeExports.
|
|
28521
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "table-scroll-container", children: je.size === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28522
|
+
"div",
|
|
28523
|
+
{
|
|
28524
|
+
style: {
|
|
28525
|
+
width: "100%",
|
|
28526
|
+
height: "200px",
|
|
28527
|
+
display: "flex",
|
|
28528
|
+
alignItems: "center",
|
|
28529
|
+
justifyContent: "center",
|
|
28530
|
+
color: "#888",
|
|
28531
|
+
fontSize: "1.2em",
|
|
28532
|
+
background: "#fafafa",
|
|
28533
|
+
border: "1px solid #eee",
|
|
28534
|
+
borderRadius: "8px"
|
|
28535
|
+
},
|
|
28536
|
+
children: "Please select at least one column to show data"
|
|
28537
|
+
}
|
|
28538
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28524
28539
|
"table",
|
|
28525
28540
|
{
|
|
28526
28541
|
className: "custom-table",
|
|
@@ -28537,7 +28552,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28537
28552
|
onChange: (K) => {
|
|
28538
28553
|
if (K) {
|
|
28539
28554
|
const ne = new Set(
|
|
28540
|
-
O.map((
|
|
28555
|
+
O.map((le, ae) => ae)
|
|
28541
28556
|
);
|
|
28542
28557
|
_e(ne);
|
|
28543
28558
|
} else
|
|
@@ -28546,93 +28561,96 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28546
28561
|
}
|
|
28547
28562
|
) }),
|
|
28548
28563
|
Ue.map(
|
|
28549
|
-
(K) =>
|
|
28550
|
-
|
|
28551
|
-
|
|
28552
|
-
|
|
28553
|
-
|
|
28554
|
-
|
|
28555
|
-
|
|
28556
|
-
|
|
28557
|
-
|
|
28558
|
-
|
|
28559
|
-
|
|
28560
|
-
|
|
28561
|
-
|
|
28562
|
-
|
|
28563
|
-
|
|
28564
|
-
|
|
28565
|
-
|
|
28566
|
-
|
|
28567
|
-
|
|
28568
|
-
|
|
28569
|
-
|
|
28570
|
-
|
|
28571
|
-
|
|
28572
|
-
] }),
|
|
28573
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "column-actions", children: [
|
|
28574
|
-
I && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28575
|
-
"img",
|
|
28576
|
-
{
|
|
28577
|
-
src: SortIcon,
|
|
28578
|
-
alt: "Sort",
|
|
28579
|
-
title: "Sort",
|
|
28580
|
-
width: 20,
|
|
28581
|
-
height: 20,
|
|
28582
|
-
onClick: () => B(K.id),
|
|
28583
|
-
style: {
|
|
28584
|
-
cursor: "pointer",
|
|
28585
|
-
transition: "transform 0.2s ease-in-out",
|
|
28586
|
-
transform: (je == null ? void 0 : je.column) === K.id ? je.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)" : "none",
|
|
28587
|
-
filter: (je == null ? void 0 : je.column) === K.id ? "brightness(0.6)" : "none"
|
|
28564
|
+
(K) => (
|
|
28565
|
+
//column.shouldDisplay !== false &&
|
|
28566
|
+
je.has(K.id) && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28567
|
+
"th",
|
|
28568
|
+
{
|
|
28569
|
+
className: "table-header-cell",
|
|
28570
|
+
style: {
|
|
28571
|
+
width: M[K.id] ? `${M[K.id]}px` : "150px",
|
|
28572
|
+
minWidth: "80px",
|
|
28573
|
+
maxWidth: "600px"
|
|
28574
|
+
},
|
|
28575
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "column-header", children: [
|
|
28576
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "column-label-with-info", children: [
|
|
28577
|
+
K.label,
|
|
28578
|
+
K.tooltip && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28579
|
+
"img",
|
|
28580
|
+
{
|
|
28581
|
+
src: InfoIcon,
|
|
28582
|
+
alt: "info",
|
|
28583
|
+
title: K.tooltip,
|
|
28584
|
+
width: 14,
|
|
28585
|
+
height: 14,
|
|
28586
|
+
className: "info-icon"
|
|
28588
28587
|
}
|
|
28589
|
-
|
|
28590
|
-
),
|
|
28591
|
-
|
|
28588
|
+
)
|
|
28589
|
+
] }),
|
|
28590
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "column-actions", children: [
|
|
28591
|
+
I && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28592
|
+
"img",
|
|
28593
|
+
{
|
|
28594
|
+
src: SortIcon,
|
|
28595
|
+
alt: "Sort",
|
|
28596
|
+
title: "Sort",
|
|
28597
|
+
width: 14,
|
|
28598
|
+
height: 14,
|
|
28599
|
+
onClick: () => B(K.id),
|
|
28600
|
+
style: {
|
|
28601
|
+
cursor: "pointer",
|
|
28602
|
+
transition: "transform 0.2s ease-in-out",
|
|
28603
|
+
transform: (Ve == null ? void 0 : Ve.column) === K.id ? Ve.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)" : "none",
|
|
28604
|
+
filter: (Ve == null ? void 0 : Ve.column) === K.id ? "brightness(0.6)" : "none"
|
|
28605
|
+
}
|
|
28606
|
+
}
|
|
28607
|
+
),
|
|
28608
|
+
j && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28609
|
+
"div",
|
|
28610
|
+
{
|
|
28611
|
+
className: "dropdown-container",
|
|
28612
|
+
ref: it,
|
|
28613
|
+
children: [
|
|
28614
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28615
|
+
"span",
|
|
28616
|
+
{
|
|
28617
|
+
className: "dropdown-trigger",
|
|
28618
|
+
onClick: () => N(K.id),
|
|
28619
|
+
children: "⋮"
|
|
28620
|
+
}
|
|
28621
|
+
),
|
|
28622
|
+
Ee === K.id && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28623
|
+
"div",
|
|
28624
|
+
{
|
|
28625
|
+
className: "dropdown-menu",
|
|
28626
|
+
ref: (ne) => Q(ne),
|
|
28627
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28628
|
+
"button",
|
|
28629
|
+
{
|
|
28630
|
+
className: "dropdown-item",
|
|
28631
|
+
onClick: () => {
|
|
28632
|
+
me(K.id), Pe(!0), we(null);
|
|
28633
|
+
},
|
|
28634
|
+
children: "Filter"
|
|
28635
|
+
}
|
|
28636
|
+
)
|
|
28637
|
+
}
|
|
28638
|
+
)
|
|
28639
|
+
]
|
|
28640
|
+
}
|
|
28641
|
+
)
|
|
28642
|
+
] }),
|
|
28643
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28592
28644
|
"div",
|
|
28593
28645
|
{
|
|
28594
|
-
className: "
|
|
28595
|
-
|
|
28596
|
-
children: [
|
|
28597
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28598
|
-
"span",
|
|
28599
|
-
{
|
|
28600
|
-
className: "dropdown-trigger",
|
|
28601
|
-
onClick: () => N(K.id),
|
|
28602
|
-
children: "⋮"
|
|
28603
|
-
}
|
|
28604
|
-
),
|
|
28605
|
-
Ee === K.id && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28606
|
-
"div",
|
|
28607
|
-
{
|
|
28608
|
-
className: "dropdown-menu",
|
|
28609
|
-
ref: (ne) => Q(ne),
|
|
28610
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28611
|
-
"button",
|
|
28612
|
-
{
|
|
28613
|
-
className: "dropdown-item",
|
|
28614
|
-
onClick: () => {
|
|
28615
|
-
me(K.id), Fe(!0), we(null);
|
|
28616
|
-
},
|
|
28617
|
-
children: "Filter"
|
|
28618
|
-
}
|
|
28619
|
-
)
|
|
28620
|
-
}
|
|
28621
|
-
)
|
|
28622
|
-
]
|
|
28646
|
+
className: "column-resizer",
|
|
28647
|
+
onMouseDown: (ne) => te(ne, K.id)
|
|
28623
28648
|
}
|
|
28624
28649
|
)
|
|
28625
|
-
] })
|
|
28626
|
-
|
|
28627
|
-
|
|
28628
|
-
|
|
28629
|
-
className: "column-resizer",
|
|
28630
|
-
onMouseDown: (ne) => te(ne, K.id)
|
|
28631
|
-
}
|
|
28632
|
-
)
|
|
28633
|
-
] })
|
|
28634
|
-
},
|
|
28635
|
-
K.id
|
|
28650
|
+
] })
|
|
28651
|
+
},
|
|
28652
|
+
K.id
|
|
28653
|
+
)
|
|
28636
28654
|
)
|
|
28637
28655
|
),
|
|
28638
28656
|
(c || x || d || u || m || f) && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -28651,39 +28669,42 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28651
28669
|
de && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
|
|
28652
28670
|
i && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
|
|
28653
28671
|
Ue.map(
|
|
28654
|
-
(K) =>
|
|
28655
|
-
|
|
28656
|
-
|
|
28657
|
-
|
|
28658
|
-
|
|
28659
|
-
|
|
28660
|
-
|
|
28661
|
-
|
|
28662
|
-
|
|
28663
|
-
|
|
28664
|
-
|
|
28665
|
-
|
|
28666
|
-
|
|
28667
|
-
|
|
28668
|
-
|
|
28669
|
-
|
|
28670
|
-
|
|
28671
|
-
|
|
28672
|
-
|
|
28673
|
-
|
|
28674
|
-
|
|
28675
|
-
|
|
28676
|
-
|
|
28677
|
-
|
|
28678
|
-
|
|
28679
|
-
|
|
28680
|
-
|
|
28681
|
-
|
|
28682
|
-
|
|
28683
|
-
|
|
28684
|
-
|
|
28685
|
-
|
|
28686
|
-
|
|
28672
|
+
(K) => (
|
|
28673
|
+
//column.shouldDisplay !== false &&
|
|
28674
|
+
je.has(K.id) && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28675
|
+
"td",
|
|
28676
|
+
{
|
|
28677
|
+
style: { position: "relative" },
|
|
28678
|
+
children: [
|
|
28679
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28680
|
+
"input",
|
|
28681
|
+
{
|
|
28682
|
+
type: "text",
|
|
28683
|
+
placeholder: `Search ${K.label}`,
|
|
28684
|
+
value: Ae === K.id ? Re : "",
|
|
28685
|
+
onChange: (ne) => {
|
|
28686
|
+
const le = ne.target.value;
|
|
28687
|
+
Fe(le), me(K.id), G(K.id, le);
|
|
28688
|
+
},
|
|
28689
|
+
className: "filter-input-with-clear",
|
|
28690
|
+
style: { paddingRight: "28px" }
|
|
28691
|
+
}
|
|
28692
|
+
),
|
|
28693
|
+
Ae === K.id && Re && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28694
|
+
"span",
|
|
28695
|
+
{
|
|
28696
|
+
className: "filter-clear-icon-inside",
|
|
28697
|
+
onClick: () => {
|
|
28698
|
+
Fe(""), me(K.id), G(K.id, "");
|
|
28699
|
+
},
|
|
28700
|
+
title: "Clear",
|
|
28701
|
+
children: "×"
|
|
28702
|
+
}
|
|
28703
|
+
)
|
|
28704
|
+
]
|
|
28705
|
+
},
|
|
28706
|
+
`filter-${K.id}`
|
|
28707
|
+
)
|
|
28687
28708
|
)
|
|
28688
28709
|
),
|
|
28689
28710
|
(c || x || d || u || m || f) && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {})
|
|
@@ -28695,9 +28716,9 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28695
28716
|
{
|
|
28696
28717
|
className: ne % 2 === 0 ? "table-row-even" : "table-row-odd",
|
|
28697
28718
|
children: [
|
|
28698
|
-
de && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "expand-column", children: Array.from(
|
|
28699
|
-
(
|
|
28700
|
-
(
|
|
28719
|
+
de && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "expand-column", children: Array.from(je).some(
|
|
28720
|
+
(le) => Array.isArray(K[le]) && K[le].length > 0 && K[le].some(
|
|
28721
|
+
(ae) => typeof ae == "object" && ae !== null
|
|
28701
28722
|
)
|
|
28702
28723
|
) && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28703
28724
|
"button",
|
|
@@ -28705,7 +28726,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28705
28726
|
className: "expand-button",
|
|
28706
28727
|
onClick: () => V(ne),
|
|
28707
28728
|
children: Array.from(De).some(
|
|
28708
|
-
(
|
|
28729
|
+
(le) => le.startsWith(`${ne}`)
|
|
28709
28730
|
) ? "▼" : "▶"
|
|
28710
28731
|
}
|
|
28711
28732
|
) }),
|
|
@@ -28714,9 +28735,9 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28714
28735
|
{
|
|
28715
28736
|
label: "",
|
|
28716
28737
|
checked: fe.has(ne),
|
|
28717
|
-
onChange: (
|
|
28718
|
-
const
|
|
28719
|
-
|
|
28738
|
+
onChange: (le) => {
|
|
28739
|
+
const ae = new Set(fe);
|
|
28740
|
+
le ? ae.add(ne) : ae.delete(ne), _e(ae);
|
|
28720
28741
|
}
|
|
28721
28742
|
}
|
|
28722
28743
|
) }),
|
|
@@ -28734,127 +28755,137 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28734
28755
|
}
|
|
28735
28756
|
) }) }),
|
|
28736
28757
|
Ue.map(
|
|
28737
|
-
(
|
|
28738
|
-
|
|
28739
|
-
|
|
28740
|
-
|
|
28741
|
-
|
|
28742
|
-
|
|
28743
|
-
|
|
28744
|
-
|
|
28745
|
-
|
|
28746
|
-
|
|
28747
|
-
re(
|
|
28758
|
+
(le) => (
|
|
28759
|
+
//column.shouldDisplay !== false &&
|
|
28760
|
+
je.has(le.id) && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28761
|
+
"td",
|
|
28762
|
+
{
|
|
28763
|
+
style: {
|
|
28764
|
+
width: M[le.id] ? `${M[le.id]}px` : "150px",
|
|
28765
|
+
minWidth: "80px",
|
|
28766
|
+
maxWidth: "600px"
|
|
28767
|
+
},
|
|
28768
|
+
className: `table-cell ${re(le.id, K[le.id]) ? "ce-clickable-cell" : ""}`,
|
|
28769
|
+
onClick: () => {
|
|
28770
|
+
re(le.id, K[le.id]) ? ce(K, le.id) : Array.isArray(K[le.id]) && K[le.id].length > 0 && V(ne, le.id);
|
|
28771
|
+
},
|
|
28772
|
+
children: (Array.isArray(o) ? o.includes(le.id) : o === le.id) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "radio-center-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28773
|
+
CERadioButton,
|
|
28774
|
+
{
|
|
28775
|
+
label: "",
|
|
28776
|
+
value: le.id,
|
|
28777
|
+
checked: xt(K) === le.id,
|
|
28778
|
+
onChange: () => dt({
|
|
28779
|
+
rowIndex: ne,
|
|
28780
|
+
// keep if needed elsewhere, but not used in radio map
|
|
28781
|
+
columnId: le.id,
|
|
28782
|
+
rowData: K
|
|
28783
|
+
})
|
|
28784
|
+
}
|
|
28785
|
+
) }) : Array.isArray(K[le.id]) ? `${K[le.id].length}` : typeof K[le.id] == "object" && K[le.id] !== null ? Object.entries(K[le.id]).map(([ae, ve]) => `${ae}: ${ve}`).join(", ") : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28786
|
+
CETruncatedTextWithTooltip,
|
|
28787
|
+
{
|
|
28788
|
+
text: String(K[le.id] ?? "")
|
|
28789
|
+
}
|
|
28790
|
+
)
|
|
28748
28791
|
},
|
|
28749
|
-
|
|
28750
|
-
|
|
28751
|
-
{
|
|
28752
|
-
label: "",
|
|
28753
|
-
value: oe.id,
|
|
28754
|
-
checked: xt(K) === oe.id,
|
|
28755
|
-
onChange: () => dt({
|
|
28756
|
-
rowIndex: ne,
|
|
28757
|
-
// keep if needed elsewhere, but not used in radio map
|
|
28758
|
-
columnId: oe.id,
|
|
28759
|
-
rowData: K
|
|
28760
|
-
})
|
|
28761
|
-
}
|
|
28762
|
-
) }) : Array.isArray(K[oe.id]) ? `${K[oe.id].length}` : typeof K[oe.id] == "object" && K[oe.id] !== null ? Object.entries(K[oe.id]).map(([le, ve]) => `${le}: ${ve}`).join(", ") : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28763
|
-
CETruncatedTextWithTooltip,
|
|
28764
|
-
{
|
|
28765
|
-
text: String(K[oe.id] ?? "")
|
|
28766
|
-
}
|
|
28767
|
-
)
|
|
28768
|
-
},
|
|
28769
|
-
oe.id
|
|
28792
|
+
le.id
|
|
28793
|
+
)
|
|
28770
28794
|
)
|
|
28771
28795
|
),
|
|
28772
|
-
(c || x || d || u || m || f) && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28773
|
-
"
|
|
28796
|
+
(c || x || d || u || m || f) && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28797
|
+
"td",
|
|
28774
28798
|
{
|
|
28775
|
-
|
|
28776
|
-
|
|
28777
|
-
|
|
28778
|
-
|
|
28779
|
-
|
|
28780
|
-
|
|
28781
|
-
|
|
28782
|
-
|
|
28783
|
-
|
|
28784
|
-
|
|
28785
|
-
|
|
28786
|
-
|
|
28787
|
-
|
|
28788
|
-
|
|
28789
|
-
|
|
28790
|
-
|
|
28791
|
-
|
|
28792
|
-
|
|
28793
|
-
|
|
28794
|
-
|
|
28795
|
-
|
|
28796
|
-
|
|
28797
|
-
|
|
28798
|
-
|
|
28799
|
-
|
|
28800
|
-
|
|
28801
|
-
|
|
28802
|
-
|
|
28803
|
-
|
|
28804
|
-
|
|
28805
|
-
|
|
28806
|
-
|
|
28807
|
-
|
|
28808
|
-
|
|
28809
|
-
|
|
28810
|
-
|
|
28811
|
-
|
|
28812
|
-
|
|
28813
|
-
|
|
28814
|
-
|
|
28815
|
-
|
|
28816
|
-
|
|
28817
|
-
|
|
28818
|
-
|
|
28819
|
-
|
|
28820
|
-
|
|
28821
|
-
|
|
28822
|
-
|
|
28823
|
-
|
|
28824
|
-
|
|
28825
|
-
|
|
28826
|
-
|
|
28827
|
-
|
|
28828
|
-
|
|
28829
|
-
|
|
28830
|
-
|
|
28831
|
-
|
|
28832
|
-
|
|
28833
|
-
|
|
28834
|
-
|
|
28835
|
-
|
|
28836
|
-
|
|
28837
|
-
|
|
28838
|
-
|
|
28839
|
-
|
|
28840
|
-
|
|
28841
|
-
|
|
28842
|
-
|
|
28843
|
-
|
|
28844
|
-
|
|
28845
|
-
|
|
28846
|
-
|
|
28847
|
-
|
|
28848
|
-
|
|
28849
|
-
|
|
28799
|
+
className: "table-cell",
|
|
28800
|
+
style: { textAlign: "center" },
|
|
28801
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28802
|
+
"div",
|
|
28803
|
+
{
|
|
28804
|
+
style: {
|
|
28805
|
+
display: "flex",
|
|
28806
|
+
justifyContent: "center",
|
|
28807
|
+
gap: "8px",
|
|
28808
|
+
flexWrap: "wrap"
|
|
28809
|
+
},
|
|
28810
|
+
children: [
|
|
28811
|
+
c && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28812
|
+
"img",
|
|
28813
|
+
{
|
|
28814
|
+
src: Edit,
|
|
28815
|
+
alt: "Edit",
|
|
28816
|
+
title: "Edit",
|
|
28817
|
+
width: 20,
|
|
28818
|
+
height: 20,
|
|
28819
|
+
style: { cursor: "pointer" },
|
|
28820
|
+
onClick: E
|
|
28821
|
+
}
|
|
28822
|
+
),
|
|
28823
|
+
x && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28824
|
+
"img",
|
|
28825
|
+
{
|
|
28826
|
+
src: Reassign,
|
|
28827
|
+
alt: "Reassign",
|
|
28828
|
+
width: 20,
|
|
28829
|
+
height: 20,
|
|
28830
|
+
style: { cursor: "pointer" },
|
|
28831
|
+
onClick: S
|
|
28832
|
+
}
|
|
28833
|
+
),
|
|
28834
|
+
d && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28835
|
+
"img",
|
|
28836
|
+
{
|
|
28837
|
+
src: Cancel,
|
|
28838
|
+
alt: "Cancel",
|
|
28839
|
+
width: 20,
|
|
28840
|
+
height: 20,
|
|
28841
|
+
style: { cursor: "pointer" },
|
|
28842
|
+
onClick: C
|
|
28843
|
+
}
|
|
28844
|
+
),
|
|
28845
|
+
u && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28846
|
+
"img",
|
|
28847
|
+
{
|
|
28848
|
+
src: Approve,
|
|
28849
|
+
alt: "Approve",
|
|
28850
|
+
width: 20,
|
|
28851
|
+
height: 20,
|
|
28852
|
+
style: { cursor: "pointer" },
|
|
28853
|
+
onClick: g
|
|
28854
|
+
}
|
|
28855
|
+
),
|
|
28856
|
+
m && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28857
|
+
"img",
|
|
28858
|
+
{
|
|
28859
|
+
src: Delete,
|
|
28860
|
+
alt: "Delete",
|
|
28861
|
+
width: 20,
|
|
28862
|
+
height: 20,
|
|
28863
|
+
style: { cursor: "pointer" },
|
|
28864
|
+
onClick: _
|
|
28865
|
+
}
|
|
28866
|
+
),
|
|
28867
|
+
f && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28868
|
+
"img",
|
|
28869
|
+
{
|
|
28870
|
+
src: Add,
|
|
28871
|
+
alt: "Add",
|
|
28872
|
+
width: 20,
|
|
28873
|
+
height: 20,
|
|
28874
|
+
style: { cursor: "pointer" },
|
|
28875
|
+
onClick: y
|
|
28876
|
+
}
|
|
28877
|
+
)
|
|
28878
|
+
]
|
|
28879
|
+
}
|
|
28880
|
+
)
|
|
28850
28881
|
}
|
|
28851
|
-
)
|
|
28882
|
+
)
|
|
28852
28883
|
]
|
|
28853
28884
|
}
|
|
28854
28885
|
),
|
|
28855
|
-
Array.from(De).map((
|
|
28856
|
-
const [
|
|
28857
|
-
if (Number(
|
|
28886
|
+
Array.from(De).map((le) => {
|
|
28887
|
+
const [ae, ve] = le.split("-");
|
|
28888
|
+
if (Number(ae) === ne) {
|
|
28858
28889
|
const Se = ve ? { [ve]: K[ve] } : Object.keys(K).filter(
|
|
28859
28890
|
(Ce) => Array.isArray(K[Ce]) || typeof K[Ce] == "object"
|
|
28860
28891
|
).reduce(
|
|
@@ -28864,7 +28895,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28864
28895
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { className: "expanded-row", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28865
28896
|
"td",
|
|
28866
28897
|
{
|
|
28867
|
-
colSpan:
|
|
28898
|
+
colSpan: je.size + 2,
|
|
28868
28899
|
className: "expanded-cell",
|
|
28869
28900
|
children: Object.entries(Se).map(
|
|
28870
28901
|
([Ce, Ie], Le) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -28895,7 +28926,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28895
28926
|
)
|
|
28896
28927
|
)
|
|
28897
28928
|
}
|
|
28898
|
-
) }, `expanded-${
|
|
28929
|
+
) }, `expanded-${le}`);
|
|
28899
28930
|
}
|
|
28900
28931
|
return null;
|
|
28901
28932
|
})
|
|
@@ -28946,7 +28977,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28946
28977
|
CEButton,
|
|
28947
28978
|
{
|
|
28948
28979
|
className: "close-button-close",
|
|
28949
|
-
onClick: () =>
|
|
28980
|
+
onClick: () => Pe(!1),
|
|
28950
28981
|
children: "×"
|
|
28951
28982
|
}
|
|
28952
28983
|
),
|
|
@@ -28989,7 +29020,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28989
29020
|
{
|
|
28990
29021
|
type: "text",
|
|
28991
29022
|
value: Re,
|
|
28992
|
-
onChange: (K) =>
|
|
29023
|
+
onChange: (K) => Fe(K.target.value),
|
|
28993
29024
|
placeholder: "Enter filter value",
|
|
28994
29025
|
title: "Filter value"
|
|
28995
29026
|
}
|
|
@@ -29000,15 +29031,15 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29000
29031
|
}
|
|
29001
29032
|
) })
|
|
29002
29033
|
] }), ye = () => {
|
|
29003
|
-
const K = Ue.filter((ve) =>
|
|
29034
|
+
const K = Ue.filter((ve) => je.has(ve.id)), ne = rt.map(
|
|
29004
29035
|
(ve) => Object.fromEntries(
|
|
29005
29036
|
K.map((Se) => [Se.label || Se.id, ve[Se.id]])
|
|
29006
29037
|
)
|
|
29007
|
-
),
|
|
29008
|
-
utils.book_append_sheet(
|
|
29038
|
+
), le = utils.json_to_sheet(ne), ae = utils.book_new();
|
|
29039
|
+
utils.book_append_sheet(ae, le, "Data"), writeFileSync(ae, "data-grid-export.xls");
|
|
29009
29040
|
}, Te = () => {
|
|
29010
29041
|
X ? (We(!0), Promise.resolve(X()).finally(() => We(!1))) : (We(!0), setTimeout(() => {
|
|
29011
|
-
z(t),
|
|
29042
|
+
z(t), oe(t), Ne(0), ze(""), Fe(""), me(""), tt(null), We(!1);
|
|
29012
29043
|
}, 300));
|
|
29013
29044
|
};
|
|
29014
29045
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -29032,7 +29063,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29032
29063
|
onClick: () => xe((K) => !K)
|
|
29033
29064
|
}
|
|
29034
29065
|
),
|
|
29035
|
-
|
|
29066
|
+
$e && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29036
29067
|
"button",
|
|
29037
29068
|
{
|
|
29038
29069
|
className: "search-cancel-button",
|
|
@@ -29116,7 +29147,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29116
29147
|
CECheckBox,
|
|
29117
29148
|
{
|
|
29118
29149
|
label: "Select All",
|
|
29119
|
-
checked:
|
|
29150
|
+
checked: je.size === Ue.length,
|
|
29120
29151
|
onChange: (K) => {
|
|
29121
29152
|
Xe(K ? new Set(Ue.map((ne) => ne.id)) : /* @__PURE__ */ new Set());
|
|
29122
29153
|
}
|
|
@@ -29126,7 +29157,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29126
29157
|
CECheckBox,
|
|
29127
29158
|
{
|
|
29128
29159
|
label: K.label ?? K.id,
|
|
29129
|
-
checked:
|
|
29160
|
+
checked: je.has(K.id),
|
|
29130
29161
|
onChange: () => F(K.id)
|
|
29131
29162
|
}
|
|
29132
29163
|
) }, K.id))
|
|
@@ -29231,21 +29262,21 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29231
29262
|
const D = new Date(M, a.getMonth(), 1);
|
|
29232
29263
|
o(D), R(String(M)), f(!1);
|
|
29233
29264
|
}, A = () => {
|
|
29234
|
-
const M = new Date(a.getFullYear(), a.getMonth(), 1), D = new Date(a.getFullYear(), a.getMonth() + 1, 0), P = M.getDay(), H = D.getDate(), O = /* @__PURE__ */ new Date(), z = (
|
|
29235
|
-
O.getDate() ===
|
|
29236
|
-
for (let
|
|
29237
|
-
Z.push(/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "dp-day empty" }, `empty-${
|
|
29238
|
-
for (let
|
|
29239
|
-
const ue = (s == null ? void 0 : s.getDate()) ===
|
|
29265
|
+
const M = new Date(a.getFullYear(), a.getMonth(), 1), D = new Date(a.getFullYear(), a.getMonth() + 1, 0), P = M.getDay(), H = D.getDate(), O = /* @__PURE__ */ new Date(), z = (oe) => !s && // Only highlight today if no date is selected
|
|
29266
|
+
O.getDate() === oe && O.getMonth() === a.getMonth() && O.getFullYear() === a.getFullYear(), Z = [];
|
|
29267
|
+
for (let oe = 0; oe < P; oe++)
|
|
29268
|
+
Z.push(/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "dp-day empty" }, `empty-${oe}`));
|
|
29269
|
+
for (let oe = 1; oe <= H; oe++) {
|
|
29270
|
+
const ue = (s == null ? void 0 : s.getDate()) === oe && (s == null ? void 0 : s.getMonth()) === a.getMonth() && (s == null ? void 0 : s.getFullYear()) === a.getFullYear();
|
|
29240
29271
|
Z.push(
|
|
29241
29272
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29242
29273
|
"div",
|
|
29243
29274
|
{
|
|
29244
|
-
className: `dp-day ${ue ? "selected" : ""} ${z(
|
|
29245
|
-
onClick: () => J(
|
|
29246
|
-
children:
|
|
29275
|
+
className: `dp-day ${ue ? "selected" : ""} ${z(oe) ? "today" : ""}`,
|
|
29276
|
+
onClick: () => J(oe),
|
|
29277
|
+
children: oe
|
|
29247
29278
|
},
|
|
29248
|
-
|
|
29279
|
+
oe
|
|
29249
29280
|
)
|
|
29250
29281
|
);
|
|
29251
29282
|
}
|