@factorialco/f0-react 1.319.2 → 1.320.0
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/experimental.d.ts +5 -5
- package/dist/experimental.js +1008 -995
- package/dist/f0.d.ts +5 -5
- package/dist/f0.js +2 -2
- package/dist/{hooks-CyB5Juwa.js → hooks-DfJTw7RN.js} +16041 -15989
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/styles.css +1 -1
- package/package.json +5 -5
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bV as Nm, bW as Mc, bX as aT, bY as lT, bZ as Om, b_ as Ny, b$ as Cs, aB as Xu, c0 as _s, c1 as Yu, c2 as ho, c3 as kf, aF as Ni, c4 as Qa, c5 as Fm, c6 as cT, e as ms, c7 as Nc, c8 as fT, c9 as dT, ca as uT, cb as hT, cc as Dm, cd as Oy, ce as Fy, cf as pT, cg as mT, ch as gT, d as oa, ci as Im, cj as wf, ck as vT, cl as Dy, cm as Rm, cn as Pm, co as yT, cp as xT, cq as Qu, cr as Iy, aO as kT, cs as Bm, ct as wT, cu as bf, cv as bT, cw as CT, cx as _T, cy as ST, cz as ET, cA as gh, cB as LT, cC as TT, cD as AT, m as ye, cE as Ry, cF as MT, cG as Cf, l as Ha, cH as Oc, z as l1, cI as Py, x as Qf, cJ as NT, n as vh, cK as OT, q as FT, r as ed, i as DT, H as IT, J as RT, t as Yg, cL as PT, G as Qg, cM as BT, N as HT, cN as By, cO as Hy, cP as $T, cQ as VT, cR as zT, D as $y, cS as e5, cT as td, cU as jT, cV as Hm, cW as Vy, cX as zp, c as D, a as Oi, b as Ge, cY as zy, cZ as jy, c_ as Wy, c$ as Uy, d0 as qy, aq as $t, d1 as Gy, A as ut, F as Ve, d2 as Ky, d3 as Zy, B as Gt, d4 as Jy, d5 as Xy, aG as Ee, S as ge, d6 as yr, d7 as WT, d8 as UT, d9 as e0, da as Yy, C as qT, bx as GT, db as Li, aA as Uo, g as hn, dc as $m, dd as Qy, de as KT, df as Fc, dg as ZT, dh as JT, di as XT, dj as YT, bR as bl, dk as gs, bk as rs, dl as QT, bg as eA, dm as c1, dn as tA, f as aa, dp as qo, dq as e7, dr as nA, ds as t5, dt as el, du as Vm, dv as _f, dw as f1, dx as iA, dy as t7, dz as rA, dA as zm, dB as Dc, dC as Ti, dD as sA, dE as oA, dF as Rs, dG as yh, dH as aA, dI as ec, dJ as Ta, dK as lA, dL as n7, dM as cA, dN as fA, dO as dA, dP as uA, O as Yn, w as rn, U as hA, Z as pA, _ as mA, a0 as gA, a5 as n5, a6 as i5, a7 as vA, a8 as yA, dQ as xA, dR as xh, dS as $a, dT as jm, dU as kA, dV as wA, dW as bA, be as CA, dX as _A, bS as Sf, bd as d1, dY as jp, dZ as i7, h as Fi, d_ as t0, b8 as vs, d$ as SA, e0 as EA, e1 as r7, b6 as pr, as as Zi, e2 as LA, e3 as s7, e4 as o7, e5 as Cl, e6 as Wm, bl as Ic, e7 as TA, e8 as a7, e9 as AA, ea as MA, ao as Um, ap as qm, ar as Gm, eb as l7, ec as NA, ed as OA, ee as FA, ef as DA, eg as c7, aK as IA, eh as RA, ei as Wp, ej as f7, b3 as u1, ek as PA, el as BA, em as HA, en as $A, eo as VA, b0 as Up, ay as d7, bU as zA, bT as jA, ep as u7, az as to, eq as WA, er as UA, br as n0, b4 as Km, aZ as Ef, es as h7, b7 as qA, a$ as p7, aX as m7, et as i0, eu as GA, ev as g7, ew as KA, a_ as _l, b1 as v7, aM as ZA, ex as JA, bz as XA, bA as YA, bH as r0, bF as Zm, aI as s0, ey as o0, ez as a0, aJ as l0, eA as Jm, bG as y7, bc as Xm, eB as QA, bL as eM, eC as qp, eD as tM, eE as h1, eF as nM, bB as p1, bM as iM, eG as rM, bK as x7, eH as sM, bJ as oM, bI as aM, eI as lM, eJ as cM, eK as Ym, eL as fM, eM as dM, eN as uM, eO as hM, eP as pM, eQ as mM, eR as gM, eS as vM, u as k7, bn as yM, bE as xM, aC as kM, aD as wM, eT as bM, aE as CM, eU as _M, eV as SM, b2 as EM, eW as Lf, eX as Qm, b9 as e3, eY as t3, eZ as Tf, e_ as LM, e$ as w7, f0 as TM, f1 as AM, bN as b7, f2 as C7, bp as _7, f3 as MM, f4 as NM, f5 as OM, aL as FM, aa as DM, ab as IM, ad as RM, ae as PM, af as BM, ac as HM, f6 as r5, f7 as $M, f8 as VM, K as zM, f9 as S7, fa as jM } from "./hooks-
|
|
2
|
-
import { aN as t3e, fc as n3e, fb as i3e, fh as r3e, fi as s3e, fe as o3e, fd as a3e, fg as l3e, b5 as c3e, bf as f3e, ff as d3e, bm as u3e } from "./hooks-
|
|
1
|
+
import { bV as Nm, bW as Mc, bX as aT, bY as lT, bZ as Om, b_ as Ny, b$ as Cs, aB as Xu, c0 as _s, c1 as Yu, c2 as ho, c3 as kf, aF as Ni, c4 as Qa, c5 as Fm, c6 as cT, e as ms, c7 as Nc, c8 as fT, c9 as dT, ca as uT, cb as hT, cc as Dm, cd as Oy, ce as Fy, cf as pT, cg as mT, ch as gT, d as oa, ci as Im, cj as wf, ck as vT, cl as Dy, cm as Rm, cn as Pm, co as yT, cp as xT, cq as Qu, cr as Iy, aO as kT, cs as Bm, ct as wT, cu as bf, cv as bT, cw as CT, cx as _T, cy as ST, cz as ET, cA as gh, cB as LT, cC as TT, cD as AT, m as ye, cE as Ry, cF as MT, cG as Cf, l as Ha, cH as Oc, z as l1, cI as Py, x as Qf, cJ as NT, n as vh, cK as OT, q as FT, r as ed, i as DT, H as IT, J as RT, t as Yg, cL as PT, G as Qg, cM as BT, N as HT, cN as By, cO as Hy, cP as $T, cQ as VT, cR as zT, D as $y, cS as e5, cT as td, cU as jT, cV as Hm, cW as Vy, cX as zp, c as D, a as Oi, b as Ge, cY as zy, cZ as jy, c_ as Wy, c$ as Uy, d0 as qy, aq as $t, d1 as Gy, A as ut, F as Ve, d2 as Ky, d3 as Zy, B as Gt, d4 as Jy, d5 as Xy, aG as Ee, S as ge, d6 as yr, d7 as WT, d8 as UT, d9 as e0, da as Yy, C as qT, bx as GT, db as Li, aA as Uo, g as hn, dc as $m, dd as Qy, de as KT, df as Fc, dg as ZT, dh as JT, di as XT, dj as YT, bR as bl, dk as gs, bk as rs, dl as QT, bg as eA, dm as c1, dn as tA, f as aa, dp as qo, dq as e7, dr as nA, ds as t5, dt as el, du as Vm, dv as _f, dw as f1, dx as iA, dy as t7, dz as rA, dA as zm, dB as Dc, dC as Ti, dD as sA, dE as oA, dF as Rs, dG as yh, dH as aA, dI as ec, dJ as Ta, dK as lA, dL as n7, dM as cA, dN as fA, dO as dA, dP as uA, O as Yn, w as rn, U as hA, Z as pA, _ as mA, a0 as gA, a5 as n5, a6 as i5, a7 as vA, a8 as yA, dQ as xA, dR as xh, dS as $a, dT as jm, dU as kA, dV as wA, dW as bA, be as CA, dX as _A, bS as Sf, bd as d1, dY as jp, dZ as i7, h as Fi, d_ as t0, b8 as vs, d$ as SA, e0 as EA, e1 as r7, b6 as pr, as as Zi, e2 as LA, e3 as s7, e4 as o7, e5 as Cl, e6 as Wm, bl as Ic, e7 as TA, e8 as a7, e9 as AA, ea as MA, ao as Um, ap as qm, ar as Gm, eb as l7, ec as NA, ed as OA, ee as FA, ef as DA, eg as c7, aK as IA, eh as RA, ei as Wp, ej as f7, b3 as u1, ek as PA, el as BA, em as HA, en as $A, eo as VA, b0 as Up, ay as d7, bU as zA, bT as jA, ep as u7, az as to, eq as WA, er as UA, br as n0, b4 as Km, aZ as Ef, es as h7, b7 as qA, a$ as p7, aX as m7, et as i0, eu as GA, ev as g7, ew as KA, a_ as _l, b1 as v7, aM as ZA, ex as JA, bz as XA, bA as YA, bH as r0, bF as Zm, aI as s0, ey as o0, ez as a0, aJ as l0, eA as Jm, bG as y7, bc as Xm, eB as QA, bL as eM, eC as qp, eD as tM, eE as h1, eF as nM, bB as p1, bM as iM, eG as rM, bK as x7, eH as sM, bJ as oM, bI as aM, eI as lM, eJ as cM, eK as Ym, eL as fM, eM as dM, eN as uM, eO as hM, eP as pM, eQ as mM, eR as gM, eS as vM, u as k7, bn as yM, bE as xM, aC as kM, aD as wM, eT as bM, aE as CM, eU as _M, eV as SM, b2 as EM, eW as Lf, eX as Qm, b9 as e3, eY as t3, eZ as Tf, e_ as LM, e$ as w7, f0 as TM, f1 as AM, bN as b7, f2 as C7, bp as _7, f3 as MM, f4 as NM, f5 as OM, aL as FM, aa as DM, ab as IM, ad as RM, ae as PM, af as BM, ac as HM, f6 as r5, f7 as $M, f8 as VM, K as zM, f9 as S7, fa as jM } from "./hooks-DfJTw7RN.js";
|
|
2
|
+
import { aN as t3e, fc as n3e, fb as i3e, fh as r3e, fi as s3e, fe as o3e, fd as a3e, fg as l3e, b5 as c3e, bf as f3e, ff as d3e, bm as u3e } from "./hooks-DfJTw7RN.js";
|
|
3
3
|
import { jsxs as x, jsx as f, Fragment as Je } from "react/jsx-runtime";
|
|
4
4
|
import * as st from "react";
|
|
5
5
|
import ve, { forwardRef as V, useContext as vi, useState as J, useEffect as Le, createContext as yi, useRef as _e, PureComponent as WM, useTransition as UM, useLayoutEffect as la, useCallback as Qe, useMemo as we, useId as Sl, memo as Af, Fragment as Rr, isValidElement as E7, cloneElement as n3, createElement as Gp, useDebugValue as L7, createRef as qM, version as s5, useImperativeHandle as c0, Children as T7 } from "react";
|
|
@@ -5488,31 +5488,31 @@ const zP = Oi({
|
|
|
5488
5488
|
})
|
|
5489
5489
|
});
|
|
5490
5490
|
}, L3 = V(jP), xx = yi(null), WP = 15, UP = ({ children: t, enabled: e, agent: n, initialMessage: i, welcomeScreenSuggestions: r = [], onThumbsDown: s, onThumbsUp: o, ...a }) => {
|
|
5491
|
-
const [l, c] = J(e), [d, u] = J(!1), [h, p] = J(!0), [m, g] = J(n), [v, y] = J(r), b = Ge(), [k, w] = J([b.t("ai.inputPlaceholder")]), [_, C] = J(WP), [
|
|
5492
|
-
g(
|
|
5493
|
-
}, T = (
|
|
5494
|
-
|
|
5495
|
-
}, I = (
|
|
5496
|
-
L.current =
|
|
5491
|
+
const [l, c] = J(e), [d, u] = J(!1), [h, p] = J(!0), [m, g] = J(n), [v, y] = J(r), b = Ge(), [k, w] = J([b.t("ai.inputPlaceholder")]), [_, C] = J(WP), [S, M] = J(i), E = _e(null), L = _e(null), N = (K) => {
|
|
5492
|
+
g(K);
|
|
5493
|
+
}, T = (K) => {
|
|
5494
|
+
E.current = K;
|
|
5495
|
+
}, I = (K) => {
|
|
5496
|
+
L.current = K;
|
|
5497
5497
|
}, U = () => {
|
|
5498
|
-
|
|
5499
|
-
},
|
|
5498
|
+
E.current && E.current();
|
|
5499
|
+
}, q = (K) => {
|
|
5500
5500
|
if (!L.current)
|
|
5501
5501
|
return;
|
|
5502
5502
|
d || u(!0);
|
|
5503
|
-
const re = typeof
|
|
5503
|
+
const re = typeof K == "string" ? {
|
|
5504
5504
|
id: A7(),
|
|
5505
5505
|
role: "user",
|
|
5506
|
-
content:
|
|
5507
|
-
} :
|
|
5506
|
+
content: K
|
|
5507
|
+
} : K;
|
|
5508
5508
|
L.current?.(re);
|
|
5509
5509
|
};
|
|
5510
5510
|
return Le(() => {
|
|
5511
5511
|
c(e);
|
|
5512
5512
|
}, [e]), Le(() => {
|
|
5513
5513
|
if (!d) {
|
|
5514
|
-
const
|
|
5515
|
-
p(!
|
|
5514
|
+
const K = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
5515
|
+
p(!K);
|
|
5516
5516
|
}
|
|
5517
5517
|
}, [d]), f(xx.Provider, {
|
|
5518
5518
|
value: {
|
|
@@ -5527,7 +5527,7 @@ const zP = Oi({
|
|
|
5527
5527
|
tmp_setAgent: N,
|
|
5528
5528
|
setAutoClearMinutes: C,
|
|
5529
5529
|
autoClearMinutes: l ? _ : null,
|
|
5530
|
-
initialMessage:
|
|
5530
|
+
initialMessage: S,
|
|
5531
5531
|
setInitialMessage: M,
|
|
5532
5532
|
welcomeScreenSuggestions: v,
|
|
5533
5533
|
setWelcomeScreenSuggestions: y,
|
|
@@ -5537,7 +5537,7 @@ const zP = Oi({
|
|
|
5537
5537
|
setClearFunction: T,
|
|
5538
5538
|
placeholders: k,
|
|
5539
5539
|
setPlaceholders: w,
|
|
5540
|
-
sendMessage:
|
|
5540
|
+
sendMessage: q,
|
|
5541
5541
|
setSendMessageFunction: I
|
|
5542
5542
|
},
|
|
5543
5543
|
children: t
|
|
@@ -7897,31 +7897,31 @@ function QB(t, e, n, i) {
|
|
|
7897
7897
|
r[o].t = "t", r[o].v = e2(e, n);
|
|
7898
7898
|
break;
|
|
7899
7899
|
}
|
|
7900
|
-
var _ = "", C,
|
|
7900
|
+
var _ = "", C, S;
|
|
7901
7901
|
if (k.length > 0) {
|
|
7902
|
-
k.charCodeAt(0) == 40 ? (C = e < 0 && k.charCodeAt(0) === 45 ? -e : e,
|
|
7902
|
+
k.charCodeAt(0) == 40 ? (C = e < 0 && k.charCodeAt(0) === 45 ? -e : e, S = ls("n", k, C)) : (C = e < 0 && i > 1 ? -e : e, S = ls("n", k, C), C < 0 && r[0] && r[0].t == "t" && (S = S.substr(1), r[0].v = "-" + r[0].v)), w = S.length - 1;
|
|
7903
7903
|
var M = r.length;
|
|
7904
7904
|
for (o = 0; o < r.length; ++o) if (r[o] != null && r[o].t != "t" && r[o].v.indexOf(".") > -1) {
|
|
7905
7905
|
M = o;
|
|
7906
7906
|
break;
|
|
7907
7907
|
}
|
|
7908
|
-
var
|
|
7909
|
-
if (M === r.length &&
|
|
7908
|
+
var E = r.length;
|
|
7909
|
+
if (M === r.length && S.indexOf("E") === -1) {
|
|
7910
7910
|
for (o = r.length - 1; o >= 0; --o)
|
|
7911
|
-
r[o] == null || "n?".indexOf(r[o].t) === -1 || (w >= r[o].v.length - 1 ? (w -= r[o].v.length, r[o].v =
|
|
7912
|
-
w >= 0 &&
|
|
7913
|
-
} else if (M !== r.length &&
|
|
7914
|
-
for (w =
|
|
7911
|
+
r[o] == null || "n?".indexOf(r[o].t) === -1 || (w >= r[o].v.length - 1 ? (w -= r[o].v.length, r[o].v = S.substr(w + 1, r[o].v.length)) : w < 0 ? r[o].v = "" : (r[o].v = S.substr(0, w + 1), w = -1), r[o].t = "t", E = o);
|
|
7912
|
+
w >= 0 && E < r.length && (r[E].v = S.substr(0, w + 1) + r[E].v);
|
|
7913
|
+
} else if (M !== r.length && S.indexOf("E") === -1) {
|
|
7914
|
+
for (w = S.indexOf(".") - 1, o = M; o >= 0; --o)
|
|
7915
7915
|
if (!(r[o] == null || "n?".indexOf(r[o].t) === -1)) {
|
|
7916
7916
|
for (d = r[o].v.indexOf(".") > -1 && o === M ? r[o].v.indexOf(".") - 1 : r[o].v.length - 1, _ = r[o].v.substr(d + 1); d >= 0; --d)
|
|
7917
|
-
w >= 0 && (r[o].v.charAt(d) === "0" || r[o].v.charAt(d) === "#") && (_ =
|
|
7918
|
-
r[o].v = _, r[o].t = "t",
|
|
7917
|
+
w >= 0 && (r[o].v.charAt(d) === "0" || r[o].v.charAt(d) === "#") && (_ = S.charAt(w--) + _);
|
|
7918
|
+
r[o].v = _, r[o].t = "t", E = o;
|
|
7919
7919
|
}
|
|
7920
|
-
for (w >= 0 &&
|
|
7920
|
+
for (w >= 0 && E < r.length && (r[E].v = S.substr(0, w + 1) + r[E].v), w = S.indexOf(".") + 1, o = M; o < r.length; ++o)
|
|
7921
7921
|
if (!(r[o] == null || "n?(".indexOf(r[o].t) === -1 && o !== M)) {
|
|
7922
7922
|
for (d = r[o].v.indexOf(".") > -1 && o === M ? r[o].v.indexOf(".") + 1 : 0, _ = r[o].v.substr(0, d); d < r[o].v.length; ++d)
|
|
7923
|
-
w <
|
|
7924
|
-
r[o].v = _, r[o].t = "t",
|
|
7923
|
+
w < S.length && (_ += S.charAt(w++));
|
|
7924
|
+
r[o].v = _, r[o].t = "t", E = o;
|
|
7925
7925
|
}
|
|
7926
7926
|
}
|
|
7927
7927
|
}
|
|
@@ -8059,34 +8059,34 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8059
8059
|
var t = {};
|
|
8060
8060
|
t.version = "1.2.0";
|
|
8061
8061
|
function e() {
|
|
8062
|
-
for (var
|
|
8063
|
-
|
|
8062
|
+
for (var S = 0, M = new Array(256), E = 0; E != 256; ++E)
|
|
8063
|
+
S = E, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, S = S & 1 ? -306674912 ^ S >>> 1 : S >>> 1, M[E] = S;
|
|
8064
8064
|
return typeof Int32Array < "u" ? new Int32Array(M) : M;
|
|
8065
8065
|
}
|
|
8066
8066
|
var n = e();
|
|
8067
|
-
function i(
|
|
8068
|
-
var M = 0,
|
|
8069
|
-
for (L = 0; L != 256; ++L) N[L] =
|
|
8067
|
+
function i(S) {
|
|
8068
|
+
var M = 0, E = 0, L = 0, N = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
|
|
8069
|
+
for (L = 0; L != 256; ++L) N[L] = S[L];
|
|
8070
8070
|
for (L = 0; L != 256; ++L)
|
|
8071
|
-
for (
|
|
8071
|
+
for (E = S[L], M = 256 + L; M < 4096; M += 256) E = N[M] = E >>> 8 ^ S[E & 255];
|
|
8072
8072
|
var T = [];
|
|
8073
8073
|
for (L = 1; L != 16; ++L) T[L - 1] = typeof Int32Array < "u" ? N.subarray(L * 256, L * 256 + 256) : N.slice(L * 256, L * 256 + 256);
|
|
8074
8074
|
return T;
|
|
8075
8075
|
}
|
|
8076
8076
|
var r = i(n), s = r[0], o = r[1], a = r[2], l = r[3], c = r[4], d = r[5], u = r[6], h = r[7], p = r[8], m = r[9], g = r[10], v = r[11], y = r[12], b = r[13], k = r[14];
|
|
8077
|
-
function w(
|
|
8078
|
-
for (var
|
|
8079
|
-
return ~
|
|
8077
|
+
function w(S, M) {
|
|
8078
|
+
for (var E = M ^ -1, L = 0, N = S.length; L < N; ) E = E >>> 8 ^ n[(E ^ S.charCodeAt(L++)) & 255];
|
|
8079
|
+
return ~E;
|
|
8080
8080
|
}
|
|
8081
|
-
function _(
|
|
8082
|
-
for (var
|
|
8083
|
-
for (L += 15; N < L; )
|
|
8084
|
-
return ~
|
|
8081
|
+
function _(S, M) {
|
|
8082
|
+
for (var E = M ^ -1, L = S.length - 15, N = 0; N < L; ) E = k[S[N++] ^ E & 255] ^ b[S[N++] ^ E >> 8 & 255] ^ y[S[N++] ^ E >> 16 & 255] ^ v[S[N++] ^ E >>> 24] ^ g[S[N++]] ^ m[S[N++]] ^ p[S[N++]] ^ h[S[N++]] ^ u[S[N++]] ^ d[S[N++]] ^ c[S[N++]] ^ l[S[N++]] ^ a[S[N++]] ^ o[S[N++]] ^ s[S[N++]] ^ n[S[N++]];
|
|
8083
|
+
for (L += 15; N < L; ) E = E >>> 8 ^ n[(E ^ S[N++]) & 255];
|
|
8084
|
+
return ~E;
|
|
8085
8085
|
}
|
|
8086
|
-
function C(
|
|
8087
|
-
for (var
|
|
8088
|
-
T =
|
|
8089
|
-
return ~
|
|
8086
|
+
function C(S, M) {
|
|
8087
|
+
for (var E = M ^ -1, L = 0, N = S.length, T = 0, I = 0; L < N; )
|
|
8088
|
+
T = S.charCodeAt(L++), T < 128 ? E = E >>> 8 ^ n[(E ^ T) & 255] : T < 2048 ? (E = E >>> 8 ^ n[(E ^ (192 | T >> 6 & 31)) & 255], E = E >>> 8 ^ n[(E ^ (128 | T & 63)) & 255]) : T >= 55296 && T < 57344 ? (T = (T & 1023) + 64, I = S.charCodeAt(L++) & 1023, E = E >>> 8 ^ n[(E ^ (240 | T >> 8 & 7)) & 255], E = E >>> 8 ^ n[(E ^ (128 | T >> 2 & 63)) & 255], E = E >>> 8 ^ n[(E ^ (128 | I >> 6 & 15 | (T & 3) << 4)) & 255], E = E >>> 8 ^ n[(E ^ (128 | I & 63)) & 255]) : (E = E >>> 8 ^ n[(E ^ (224 | T >> 12 & 15)) & 255], E = E >>> 8 ^ n[(E ^ (128 | T >> 6 & 63)) & 255], E = E >>> 8 ^ n[(E ^ (128 | T & 63)) & 255]);
|
|
8089
|
+
return ~E;
|
|
8090
8090
|
}
|
|
8091
8091
|
return t.table = n, t.bstr = w, t.buf = _, t.str = C, t;
|
|
8092
8092
|
})(), Nt = /* @__PURE__ */ (function() {
|
|
@@ -8321,7 +8321,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8321
8321
|
R
|
|
8322
8322
|
);
|
|
8323
8323
|
}
|
|
8324
|
-
function
|
|
8324
|
+
function S(A, R) {
|
|
8325
8325
|
var O = R || {}, F = O.root || "Root Entry";
|
|
8326
8326
|
if (A.FullPaths || (A.FullPaths = []), A.FileIndex || (A.FileIndex = []), A.FullPaths.length !== A.FileIndex.length) throw new Error("inconsistent CFB structure");
|
|
8327
8327
|
A.FullPaths.length === 0 && (A.FullPaths[0] = F + "/", A.FileIndex[0] = { name: F, type: 5 }), O.CLSID && (A.FileIndex[0].clsid = O.CLSID), M(A);
|
|
@@ -8330,11 +8330,11 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8330
8330
|
var R = "Sh33tJ5";
|
|
8331
8331
|
if (!Nt.find(A, "/" + R)) {
|
|
8332
8332
|
var O = oe(4);
|
|
8333
|
-
O[0] = 55, O[1] = O[3] = 50, O[2] = 54, A.FileIndex.push({ name: R, type: 2, content: O, size: 4, L: 69, R: 69, C: 69 }), A.FullPaths.push(A.FullPaths[0] + R),
|
|
8333
|
+
O[0] = 55, O[1] = O[3] = 50, O[2] = 54, A.FileIndex.push({ name: R, type: 2, content: O, size: 4, L: 69, R: 69, C: 69 }), A.FullPaths.push(A.FullPaths[0] + R), E(A);
|
|
8334
8334
|
}
|
|
8335
8335
|
}
|
|
8336
|
-
function
|
|
8337
|
-
|
|
8336
|
+
function E(A, R) {
|
|
8337
|
+
S(A);
|
|
8338
8338
|
for (var O = !1, F = !1, B = A.FullPaths.length - 1; B >= 0; --B) {
|
|
8339
8339
|
var z = A.FileIndex[B];
|
|
8340
8340
|
switch (z.type) {
|
|
@@ -8360,7 +8360,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8360
8360
|
F = Q[ne], F || (te.push([ne, {
|
|
8361
8361
|
name: r(ne).replace("/", ""),
|
|
8362
8362
|
type: 1,
|
|
8363
|
-
clsid:
|
|
8363
|
+
clsid: K,
|
|
8364
8364
|
ct: ee,
|
|
8365
8365
|
mt: ee,
|
|
8366
8366
|
content: null
|
|
@@ -8372,7 +8372,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8372
8372
|
A.FullPaths[B] = te[B][0], A.FileIndex[B] = te[B][1];
|
|
8373
8373
|
for (B = 0; B < te.length; ++B) {
|
|
8374
8374
|
var be = A.FileIndex[B], Pe = A.FullPaths[B];
|
|
8375
|
-
if (be.name = r(Pe).replace("/", ""), be.L = be.R = be.C = -(be.color = 1), be.size = be.content ? be.content.length : 0, be.start = 0, be.clsid = be.clsid ||
|
|
8375
|
+
if (be.name = r(Pe).replace("/", ""), be.L = be.R = be.C = -(be.color = 1), be.size = be.content ? be.content.length : 0, be.start = 0, be.clsid = be.clsid || K, B === 0)
|
|
8376
8376
|
be.C = te.length > 1 ? 1 : -1, be.size = 0, be.type = 5;
|
|
8377
8377
|
else if (Pe.slice(-1) == "/") {
|
|
8378
8378
|
for (ce = B + 1; ce < te.length && i(A.FullPaths[ce]) != Pe; ++ce) ;
|
|
@@ -8386,7 +8386,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8386
8386
|
function L(A, R) {
|
|
8387
8387
|
var O = R || {};
|
|
8388
8388
|
if (O.fileType == "mad") return nT(A, O);
|
|
8389
|
-
if (
|
|
8389
|
+
if (E(A), O.fileType === "zip")
|
|
8390
8390
|
return ht(A, O);
|
|
8391
8391
|
var F = (function(We) {
|
|
8392
8392
|
for (var Me = 0, $e = 0, rt = 0; rt < We.FileIndex.length; ++rt) {
|
|
@@ -8401,7 +8401,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8401
8401
|
return We.FileIndex[0].size = Me << 6, Ur[7] = (We.FileIndex[0].start = Ur[0] + Ur[1] + Ur[2] + Ur[3] + Ur[4] + Ur[5]) + (Ur[6] + 7 >> 3), Ur;
|
|
8402
8402
|
})(A), B = oe(F[7] << 9), z = 0, ee = 0;
|
|
8403
8403
|
{
|
|
8404
|
-
for (z = 0; z < 8; ++z) B.write_shift(1,
|
|
8404
|
+
for (z = 0; z < 8; ++z) B.write_shift(1, q[z]);
|
|
8405
8405
|
for (z = 0; z < 8; ++z) B.write_shift(2, 0);
|
|
8406
8406
|
for (B.write_shift(2, 62), B.write_shift(2, 3), B.write_shift(2, 65534), B.write_shift(2, 9), B.write_shift(2, 6), z = 0; z < 3; ++z) B.write_shift(2, 0);
|
|
8407
8407
|
for (B.write_shift(4, 0), B.write_shift(4, F[2]), B.write_shift(4, F[0] + F[1] + F[2] + F[3] - 1), B.write_shift(4, 0), B.write_shift(4, 4096), B.write_shift(4, F[3] ? F[0] + F[1] + F[2] - 1 : I), B.write_shift(4, F[3]), B.write_shift(-4, F[1] ? F[0] - 1 : I), B.write_shift(4, F[1]), z = 0; z < 109; ++z) B.write_shift(-4, z < F[2] ? F[1] + z : -1);
|
|
@@ -8475,7 +8475,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8475
8475
|
if ((ce ? O[ee].replace(id, "!") : O[ee]).replace(oc, "") == z || (ce ? F[ee].replace(id, "!") : F[ee]).replace(oc, "") == z) return A.FileIndex[ee];
|
|
8476
8476
|
return null;
|
|
8477
8477
|
}
|
|
8478
|
-
var T = 64, I = -2, U = "d0cf11e0a1b11ae1",
|
|
8478
|
+
var T = 64, I = -2, U = "d0cf11e0a1b11ae1", q = [208, 207, 17, 224, 161, 177, 26, 225], K = "00000000000000000000000000000000", re = {
|
|
8479
8479
|
/* 2.1 Compund File Sector Numbers and Types */
|
|
8480
8480
|
MAXREGSECT: -6,
|
|
8481
8481
|
DIFSECT: -4,
|
|
@@ -8487,7 +8487,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8487
8487
|
HEADER_MINOR_VERSION: "3e00",
|
|
8488
8488
|
MAXREGSID: -6,
|
|
8489
8489
|
NOSTREAM: -1,
|
|
8490
|
-
HEADER_CLSID:
|
|
8490
|
+
HEADER_CLSID: K,
|
|
8491
8491
|
/* 2.6.1 Compound File Directory Entry */
|
|
8492
8492
|
EntryTypes: ["unknown", "storage", "stream", "lockbytes", "property", "root"]
|
|
8493
8493
|
};
|
|
@@ -8527,7 +8527,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8527
8527
|
console.error("cannot use native zlib: " + (F.message || F));
|
|
8528
8528
|
}
|
|
8529
8529
|
}
|
|
8530
|
-
function
|
|
8530
|
+
function G(A, R) {
|
|
8531
8531
|
if (!me) return it(A, R);
|
|
8532
8532
|
var O = me.InflateRaw, F = new O(), B = F._processChunk(A.slice(A.l), F._finishFlushFlag);
|
|
8533
8533
|
return A.l += F.bytesRead, B;
|
|
@@ -8569,7 +8569,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8569
8569
|
var F = R & 7, B = R >>> 3, z = (1 << O) - 1, ee = A[B] >>> F;
|
|
8570
8570
|
return O < 8 - F || (ee |= A[B + 1] << 8 - F, O < 16 - F) || (ee |= A[B + 2] << 16 - F, O < 24 - F) || (ee |= A[B + 3] << 24 - F), ee & z;
|
|
8571
8571
|
}
|
|
8572
|
-
function
|
|
8572
|
+
function Z(A, R, O) {
|
|
8573
8573
|
var F = R & 7, B = R >>> 3;
|
|
8574
8574
|
return F <= 5 ? A[B] |= (O & 7) << F : (A[B] |= O << F & 255, A[B + 1] = (O & 7) >> 8 - F), R + 3;
|
|
8575
8575
|
}
|
|
@@ -8659,11 +8659,11 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8659
8659
|
Math.min(65535, ce.length - ne)
|
|
8660
8660
|
);
|
|
8661
8661
|
if (Pe < 10) {
|
|
8662
|
-
for (te =
|
|
8662
|
+
for (te = Z(Q, te, +(ne + Pe == ce.length)), te & 7 && (te += 8 - (te & 7)), Q.l = te / 8 | 0, Q.write_shift(2, Pe), Q.write_shift(2, ~Pe & 65535); Pe-- > 0; ) Q[Q.l++] = ce[ne++];
|
|
8663
8663
|
te = Q.l * 8;
|
|
8664
8664
|
continue;
|
|
8665
8665
|
}
|
|
8666
|
-
te =
|
|
8666
|
+
te = Z(Q, te, +(ne + Pe == ce.length) + 2);
|
|
8667
8667
|
for (var We = 0; Pe-- > 0; ) {
|
|
8668
8668
|
var Me = ce[ne];
|
|
8669
8669
|
We = (We << 5 ^ Me) & 32767;
|
|
@@ -8786,7 +8786,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8786
8786
|
FileIndex: F,
|
|
8787
8787
|
FullPaths: B
|
|
8788
8788
|
};
|
|
8789
|
-
|
|
8789
|
+
S(z, { root: R.root });
|
|
8790
8790
|
for (var ee = O.length - 4; (O[ee] != 80 || O[ee + 1] != 75 || O[ee + 2] != 5 || O[ee + 3] != 6) && ee >= 0; ) --ee;
|
|
8791
8791
|
O.l = ee + 4, O.l += 4;
|
|
8792
8792
|
var ce = O.read_shift(2);
|
|
@@ -8824,7 +8824,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8824
8824
|
var rt = A.slice(A.l, A.l + te);
|
|
8825
8825
|
switch (ee) {
|
|
8826
8826
|
case 8:
|
|
8827
|
-
rt =
|
|
8827
|
+
rt = G(A, ne);
|
|
8828
8828
|
break;
|
|
8829
8829
|
case 0:
|
|
8830
8830
|
break;
|
|
@@ -8958,7 +8958,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8958
8958
|
FileIndex: Q,
|
|
8959
8959
|
FullPaths: te
|
|
8960
8960
|
};
|
|
8961
|
-
|
|
8961
|
+
S(ne);
|
|
8962
8962
|
var be, Pe = 0;
|
|
8963
8963
|
for (B = 0; B < F.length; ++B) {
|
|
8964
8964
|
var We = F[B];
|
|
@@ -8992,11 +8992,11 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
8992
8992
|
}
|
|
8993
8993
|
function iT(A) {
|
|
8994
8994
|
var R = {};
|
|
8995
|
-
return
|
|
8995
|
+
return S(R, A), R;
|
|
8996
8996
|
}
|
|
8997
8997
|
function ph(A, R, O, F) {
|
|
8998
8998
|
var B = F && F.unsafe;
|
|
8999
|
-
B ||
|
|
8999
|
+
B || S(A);
|
|
9000
9000
|
var z = !B && Nt.find(A, R);
|
|
9001
9001
|
if (!z) {
|
|
9002
9002
|
var ee = A.FullPaths[0];
|
|
@@ -9005,7 +9005,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
9005
9005
|
return z.content = O, z.size = O ? O.length : 0, F && (F.CLSID && (z.clsid = F.CLSID), F.mt && (z.mt = F.mt), F.ct && (z.ct = F.ct)), z;
|
|
9006
9006
|
}
|
|
9007
9007
|
function rT(A, R) {
|
|
9008
|
-
|
|
9008
|
+
S(A);
|
|
9009
9009
|
var O = Nt.find(A, R);
|
|
9010
9010
|
if (O) {
|
|
9011
9011
|
for (var F = 0; F < A.FileIndex.length; ++F) if (A.FileIndex[F] == O)
|
|
@@ -9014,7 +9014,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
9014
9014
|
return !1;
|
|
9015
9015
|
}
|
|
9016
9016
|
function sT(A, R, O) {
|
|
9017
|
-
|
|
9017
|
+
S(A);
|
|
9018
9018
|
var F = Nt.find(A, R);
|
|
9019
9019
|
if (F) {
|
|
9020
9020
|
for (var B = 0; B < A.FileIndex.length; ++B) if (A.FileIndex[B] == F)
|
|
@@ -9023,7 +9023,7 @@ var iH = /* @__PURE__ */ (function() {
|
|
|
9023
9023
|
return !1;
|
|
9024
9024
|
}
|
|
9025
9025
|
function oT(A) {
|
|
9026
|
-
|
|
9026
|
+
E(A, !0);
|
|
9027
9027
|
}
|
|
9028
9028
|
return e.find = N, e.read = C, e.parse = d, e.write = ke, e.writeFile = xe, e.utils = {
|
|
9029
9029
|
cfb_new: iT,
|
|
@@ -11346,40 +11346,40 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11346
11346
|
}
|
|
11347
11347
|
if (d[d.l] !== 13 && (d.l = v - 1), d.read_shift(1) !== 13) throw new Error("DBF Terminator not found " + d.l + " " + d[d.l]);
|
|
11348
11348
|
d.l = v;
|
|
11349
|
-
var
|
|
11349
|
+
var S = 0, M = 0;
|
|
11350
11350
|
for (c[0] = [], M = 0; M != k.length; ++M) c[0][M] = k[M].name;
|
|
11351
11351
|
for (; g-- > 0; ) {
|
|
11352
11352
|
if (d[d.l] === 42) {
|
|
11353
11353
|
d.l += y;
|
|
11354
11354
|
continue;
|
|
11355
11355
|
}
|
|
11356
|
-
for (++d.l, c[++
|
|
11357
|
-
var
|
|
11358
|
-
d.l += k[M].len, wi(
|
|
11359
|
-
var L = w1.utils.decode(b,
|
|
11356
|
+
for (++d.l, c[++S] = [], M = 0, M = 0; M != k.length; ++M) {
|
|
11357
|
+
var E = d.slice(d.l, d.l + k[M].len);
|
|
11358
|
+
d.l += k[M].len, wi(E, 0);
|
|
11359
|
+
var L = w1.utils.decode(b, E);
|
|
11360
11360
|
switch (k[M].type) {
|
|
11361
11361
|
case "C":
|
|
11362
|
-
L.trim().length && (c[
|
|
11362
|
+
L.trim().length && (c[S][M] = L.replace(/\s+$/, ""));
|
|
11363
11363
|
break;
|
|
11364
11364
|
case "D":
|
|
11365
|
-
L.length === 8 ? c[
|
|
11365
|
+
L.length === 8 ? c[S][M] = new Date(+L.slice(0, 4), +L.slice(4, 6) - 1, +L.slice(6, 8)) : c[S][M] = L;
|
|
11366
11366
|
break;
|
|
11367
11367
|
case "F":
|
|
11368
|
-
c[
|
|
11368
|
+
c[S][M] = parseFloat(L.trim());
|
|
11369
11369
|
break;
|
|
11370
11370
|
case "+":
|
|
11371
11371
|
case "I":
|
|
11372
|
-
c[
|
|
11372
|
+
c[S][M] = m ? E.read_shift(-4, "i") ^ 2147483648 : E.read_shift(4, "i");
|
|
11373
11373
|
break;
|
|
11374
11374
|
case "L":
|
|
11375
11375
|
switch (L.trim().toUpperCase()) {
|
|
11376
11376
|
case "Y":
|
|
11377
11377
|
case "T":
|
|
11378
|
-
c[
|
|
11378
|
+
c[S][M] = !0;
|
|
11379
11379
|
break;
|
|
11380
11380
|
case "N":
|
|
11381
11381
|
case "F":
|
|
11382
|
-
c[
|
|
11382
|
+
c[S][M] = !1;
|
|
11383
11383
|
break;
|
|
11384
11384
|
case "":
|
|
11385
11385
|
case "?":
|
|
@@ -11390,32 +11390,32 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11390
11390
|
break;
|
|
11391
11391
|
case "M":
|
|
11392
11392
|
if (!h) throw new Error("DBF Unexpected MEMO for type " + u.toString(16));
|
|
11393
|
-
c[
|
|
11393
|
+
c[S][M] = "##MEMO##" + (m ? parseInt(L.trim(), 10) : E.read_shift(4));
|
|
11394
11394
|
break;
|
|
11395
11395
|
case "N":
|
|
11396
|
-
L = L.replace(/\u0000/g, "").trim(), L && L != "." && (c[
|
|
11396
|
+
L = L.replace(/\u0000/g, "").trim(), L && L != "." && (c[S][M] = +L || 0);
|
|
11397
11397
|
break;
|
|
11398
11398
|
case "@":
|
|
11399
|
-
c[
|
|
11399
|
+
c[S][M] = new Date(E.read_shift(-8, "f") - 621356832e5);
|
|
11400
11400
|
break;
|
|
11401
11401
|
case "T":
|
|
11402
|
-
c[
|
|
11402
|
+
c[S][M] = new Date((E.read_shift(4) - 2440588) * 864e5 + E.read_shift(4));
|
|
11403
11403
|
break;
|
|
11404
11404
|
case "Y":
|
|
11405
|
-
c[
|
|
11405
|
+
c[S][M] = E.read_shift(4, "i") / 1e4 + E.read_shift(4, "i") / 1e4 * Math.pow(2, 32);
|
|
11406
11406
|
break;
|
|
11407
11407
|
case "O":
|
|
11408
|
-
c[
|
|
11408
|
+
c[S][M] = -E.read_shift(-8, "f");
|
|
11409
11409
|
break;
|
|
11410
11410
|
case "B":
|
|
11411
11411
|
if (p && k[M].len == 8) {
|
|
11412
|
-
c[
|
|
11412
|
+
c[S][M] = E.read_shift(8, "f");
|
|
11413
11413
|
break;
|
|
11414
11414
|
}
|
|
11415
11415
|
/* falls through */
|
|
11416
11416
|
case "G":
|
|
11417
11417
|
case "P":
|
|
11418
|
-
|
|
11418
|
+
E.l += k[M].len;
|
|
11419
11419
|
break;
|
|
11420
11420
|
case "0":
|
|
11421
11421
|
if (k[M].name === "_NullFlags") break;
|
|
@@ -11470,7 +11470,7 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11470
11470
|
}
|
|
11471
11471
|
var k = Vt(a["!ref"]), w = [], _ = [], C = [];
|
|
11472
11472
|
for (g = 0; g <= k.e.c - k.s.c; ++g) {
|
|
11473
|
-
var
|
|
11473
|
+
var S = "", M = "", E = 0, L = [];
|
|
11474
11474
|
for (v = 0; v < p.length; ++v)
|
|
11475
11475
|
p[v][g] != null && L.push(p[v][g]);
|
|
11476
11476
|
if (L.length == 0 || h[g] == null) {
|
|
@@ -11495,9 +11495,9 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11495
11495
|
default:
|
|
11496
11496
|
M = "C";
|
|
11497
11497
|
}
|
|
11498
|
-
|
|
11498
|
+
E = Math.max(E, String(L[v]).length), S = S && S != M ? "C" : M;
|
|
11499
11499
|
}
|
|
11500
|
-
|
|
11500
|
+
E > 250 && (E = 250), M = ((m[g] || {}).DBF || {}).type, M == "C" && m[g].DBF.len > E && (E = m[g].DBF.len), S == "B" && M == "N" && (S = "N", C[g] = m[g].DBF.dec, E = m[g].DBF.len), _[g] = S == "C" || M == "N" ? E : s[S] || 0, b += _[g], w[g] = S;
|
|
11501
11501
|
}
|
|
11502
11502
|
var N = d.next(32);
|
|
11503
11503
|
for (N.write_shift(4, 318902576), N.write_shift(4, p.length), N.write_shift(2, 296 + 32 * y), N.write_shift(2, b), g = 0; g < 4; ++g) N.write_shift(4, 0);
|
|
@@ -11513,27 +11513,27 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11513
11513
|
var U = d.next(264);
|
|
11514
11514
|
for (U.write_shift(4, 13), g = 0; g < 65; ++g) U.write_shift(4, 0);
|
|
11515
11515
|
for (g = 0; g < p.length; ++g) {
|
|
11516
|
-
var
|
|
11517
|
-
for (
|
|
11516
|
+
var q = d.next(b);
|
|
11517
|
+
for (q.write_shift(1, 0), v = 0; v < h.length; ++v)
|
|
11518
11518
|
if (h[v] != null)
|
|
11519
11519
|
switch (w[v]) {
|
|
11520
11520
|
case "L":
|
|
11521
|
-
|
|
11521
|
+
q.write_shift(1, p[g][v] == null ? 63 : p[g][v] ? 84 : 70);
|
|
11522
11522
|
break;
|
|
11523
11523
|
case "B":
|
|
11524
|
-
|
|
11524
|
+
q.write_shift(8, p[g][v] || 0, "f");
|
|
11525
11525
|
break;
|
|
11526
11526
|
case "N":
|
|
11527
|
-
var
|
|
11528
|
-
for (typeof p[g][v] == "number" && (
|
|
11529
|
-
|
|
11527
|
+
var K = "0";
|
|
11528
|
+
for (typeof p[g][v] == "number" && (K = p[g][v].toFixed(C[v] || 0)), y = 0; y < _[v] - K.length; ++y) q.write_shift(1, 32);
|
|
11529
|
+
q.write_shift(1, K, "sbcs");
|
|
11530
11530
|
break;
|
|
11531
11531
|
case "D":
|
|
11532
|
-
p[g][v] ? (
|
|
11532
|
+
p[g][v] ? (q.write_shift(4, ("0000" + p[g][v].getFullYear()).slice(-4), "sbcs"), q.write_shift(2, ("00" + (p[g][v].getMonth() + 1)).slice(-2), "sbcs"), q.write_shift(2, ("00" + p[g][v].getDate()).slice(-2), "sbcs")) : q.write_shift(8, "00000000", "sbcs");
|
|
11533
11533
|
break;
|
|
11534
11534
|
case "C":
|
|
11535
11535
|
var re = String(p[g][v] != null ? p[g][v] : "").slice(0, _[v]);
|
|
11536
|
-
for (
|
|
11536
|
+
for (q.write_shift(1, re, "sbcs"), y = 0; y < _[v] - re.length; ++y) q.write_shift(1, 32);
|
|
11537
11537
|
break;
|
|
11538
11538
|
}
|
|
11539
11539
|
}
|
|
@@ -11662,12 +11662,12 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11662
11662
|
throw new Error("Unrecognized type " + p.type);
|
|
11663
11663
|
}
|
|
11664
11664
|
function s(h, p) {
|
|
11665
|
-
var m = h.split(/[\n\r]+/), g = -1, v = -1, y = 0, b = 0, k = [], w = [], _ = null, C = {},
|
|
11665
|
+
var m = h.split(/[\n\r]+/), g = -1, v = -1, y = 0, b = 0, k = [], w = [], _ = null, C = {}, S = [], M = [], E = [], L = 0, N;
|
|
11666
11666
|
for (+p.codepage >= 0 && Bc(+p.codepage); y !== m.length; ++y) {
|
|
11667
11667
|
L = 0;
|
|
11668
11668
|
var T = m[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, i).replace(e, n), I = T.replace(/;;/g, "\0").split(";").map(function(P) {
|
|
11669
11669
|
return P.replace(/\u0000/g, ";");
|
|
11670
|
-
}), U = I[0],
|
|
11670
|
+
}), U = I[0], q;
|
|
11671
11671
|
if (T.length > 0) switch (U) {
|
|
11672
11672
|
case "ID":
|
|
11673
11673
|
break;
|
|
@@ -11688,7 +11688,7 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11688
11688
|
I[1].charAt(0) == "P" && w.push(T.slice(3).replace(/;;/g, ";"));
|
|
11689
11689
|
break;
|
|
11690
11690
|
case "C":
|
|
11691
|
-
var
|
|
11691
|
+
var K = !1, re = !1, xe = !1, Te = !1, ke = -1, me = -1;
|
|
11692
11692
|
for (b = 1; b < I.length; ++b) switch (I[b].charAt(0)) {
|
|
11693
11693
|
case "A":
|
|
11694
11694
|
break;
|
|
@@ -11700,7 +11700,7 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11700
11700
|
for (g = parseInt(I[b].slice(1)) - 1, re || (v = 0), N = k.length; N <= g; ++N) k[N] = [];
|
|
11701
11701
|
break;
|
|
11702
11702
|
case "K":
|
|
11703
|
-
|
|
11703
|
+
q = I[b].slice(1), q.charAt(0) === '"' ? q = q.slice(1, q.length - 1) : q === "TRUE" ? q = !0 : q === "FALSE" ? q = !1 : isNaN(cs(q)) ? isNaN($c(q).getDate()) || (q = Jn(q)) : (q = cs(q), _ !== null && Wx(_) && (q = Kx(q))), K = !0;
|
|
11704
11704
|
break;
|
|
11705
11705
|
case "E":
|
|
11706
11706
|
Te = !0;
|
|
@@ -11722,11 +11722,11 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11722
11722
|
default:
|
|
11723
11723
|
if (p && p.WTF) throw new Error("SYLK bad record " + T);
|
|
11724
11724
|
}
|
|
11725
|
-
if (
|
|
11725
|
+
if (K && (k[g][v] && k[g][v].length == 2 ? k[g][v][0] = q : k[g][v] = q, _ = null), xe) {
|
|
11726
11726
|
if (Te) throw new Error("SYLK shared formula cannot have own formula");
|
|
11727
|
-
var
|
|
11728
|
-
if (!
|
|
11729
|
-
k[g][v][1] = RV(
|
|
11727
|
+
var G = ke > -1 && k[ke][me];
|
|
11728
|
+
if (!G || !G[1]) throw new Error("SYLK shared formula cannot find base");
|
|
11729
|
+
k[g][v][1] = RV(G[1], { r: g - ke, c: v - me });
|
|
11730
11730
|
}
|
|
11731
11731
|
break;
|
|
11732
11732
|
case "F":
|
|
@@ -11760,14 +11760,14 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11760
11760
|
break;
|
|
11761
11761
|
/* font */
|
|
11762
11762
|
case "W":
|
|
11763
|
-
for (
|
|
11764
|
-
L = parseInt(
|
|
11763
|
+
for (E = I[b].slice(1).split(" "), N = parseInt(E[0], 10); N <= parseInt(E[1], 10); ++N)
|
|
11764
|
+
L = parseInt(E[2], 10), M[N - 1] = L === 0 ? { hidden: !0 } : { wch: L }, J3(M[N - 1]);
|
|
11765
11765
|
break;
|
|
11766
11766
|
case "C":
|
|
11767
11767
|
v = parseInt(I[b].slice(1)) - 1, M[v] || (M[v] = {});
|
|
11768
11768
|
break;
|
|
11769
11769
|
case "R":
|
|
11770
|
-
g = parseInt(I[b].slice(1)) - 1,
|
|
11770
|
+
g = parseInt(I[b].slice(1)) - 1, S[g] || (S[g] = {}), L > 0 ? (S[g].hpt = L, S[g].hpx = Ik(L)) : L === 0 && (S[g].hidden = !0);
|
|
11771
11771
|
break;
|
|
11772
11772
|
default:
|
|
11773
11773
|
if (p && p.WTF) throw new Error("SYLK bad record " + T);
|
|
@@ -11778,7 +11778,7 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
11778
11778
|
if (p && p.WTF) throw new Error("SYLK bad record " + T);
|
|
11779
11779
|
}
|
|
11780
11780
|
}
|
|
11781
|
-
return
|
|
11781
|
+
return S.length > 0 && (C["!rows"] = S), M.length > 0 && (C["!cols"] = M), p && p.sheetRows && (k = k.slice(0, p.sheetRows)), [k, C];
|
|
11782
11782
|
}
|
|
11783
11783
|
function o(h, p) {
|
|
11784
11784
|
var m = r(h, p), g = m[0], v = m[1], y = Ml(g, p);
|
|
@@ -12079,10 +12079,10 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12079
12079
|
function s(d, u) {
|
|
12080
12080
|
var h = u || {}, p = "", m = h.dense ? [] : {}, g = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
|
|
12081
12081
|
d.slice(0, 4) == "sep=" ? d.charCodeAt(5) == 13 && d.charCodeAt(6) == 10 ? (p = d.charAt(4), d = d.slice(7)) : d.charCodeAt(5) == 13 || d.charCodeAt(5) == 10 ? (p = d.charAt(4), d = d.slice(6)) : p = r(d.slice(0, 1024)) : h && h.FS ? p = h.FS : p = r(d.slice(0, 1024));
|
|
12082
|
-
var v = 0, y = 0, b = 0, k = 0, w = 0, _ = p.charCodeAt(0), C = !1,
|
|
12082
|
+
var v = 0, y = 0, b = 0, k = 0, w = 0, _ = p.charCodeAt(0), C = !1, S = 0, M = d.charCodeAt(0);
|
|
12083
12083
|
d = d.replace(/\r\n/mg, `
|
|
12084
12084
|
`);
|
|
12085
|
-
var
|
|
12085
|
+
var E = h.dateNF != null ? tH(h.dateNF) : null;
|
|
12086
12086
|
function L() {
|
|
12087
12087
|
var N = d.slice(k, w), T = {};
|
|
12088
12088
|
if (N.charAt(0) == '"' && N.charAt(N.length - 1) == '"' && (N = N.slice(1, -1).replace(/""/g, '"')), N.length === 0) T.t = "z";
|
|
@@ -12098,16 +12098,16 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12098
12098
|
T.t = "b", T.v = !1;
|
|
12099
12099
|
else if (!isNaN(b = cs(N)))
|
|
12100
12100
|
T.t = "n", h.cellText !== !1 && (T.w = N), T.v = b;
|
|
12101
|
-
else if (!isNaN($c(N).getDate()) ||
|
|
12101
|
+
else if (!isNaN($c(N).getDate()) || E && N.match(E)) {
|
|
12102
12102
|
T.z = h.dateNF || Yt[14];
|
|
12103
12103
|
var I = 0;
|
|
12104
|
-
|
|
12104
|
+
E && N.match(E) && (N = nH(N, h.dateNF, N.match(E) || []), I = 1), h.cellDates ? (T.t = "d", T.v = Jn(N, I)) : (T.t = "n", T.v = pi(Jn(N, I))), h.cellText !== !1 && (T.w = io(T.z, T.v instanceof Date ? pi(T.v) : T.v)), h.cellNF || delete T.z;
|
|
12105
12105
|
} else
|
|
12106
12106
|
T.t = "s", T.v = N;
|
|
12107
|
-
if (T.t == "z" || (h.dense ? (m[v] || (m[v] = []), m[v][y] = T) : m[At({ c: y, r: v })] = T), k = w + 1, M = d.charCodeAt(k), g.e.c < y && (g.e.c = y), g.e.r < v && (g.e.r = v),
|
|
12107
|
+
if (T.t == "z" || (h.dense ? (m[v] || (m[v] = []), m[v][y] = T) : m[At({ c: y, r: v })] = T), k = w + 1, M = d.charCodeAt(k), g.e.c < y && (g.e.c = y), g.e.r < v && (g.e.r = v), S == _) ++y;
|
|
12108
12108
|
else if (y = 0, ++v, h.sheetRows && h.sheetRows <= v) return !0;
|
|
12109
12109
|
}
|
|
12110
|
-
e: for (; w < d.length; ++w) switch (
|
|
12110
|
+
e: for (; w < d.length; ++w) switch (S = d.charCodeAt(w)) {
|
|
12111
12111
|
case 34:
|
|
12112
12112
|
M === 34 && (C = !C);
|
|
12113
12113
|
break;
|
|
@@ -12170,35 +12170,35 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12170
12170
|
from_sheet: c
|
|
12171
12171
|
};
|
|
12172
12172
|
})(), e6 = /* @__PURE__ */ (function() {
|
|
12173
|
-
function t(H,
|
|
12173
|
+
function t(H, G, W) {
|
|
12174
12174
|
if (H) {
|
|
12175
12175
|
wi(H, H.l || 0);
|
|
12176
12176
|
for (var P = W.Enum || ke; H.l < H.length; ) {
|
|
12177
12177
|
var X = H.read_shift(2), Y = P[X] || P[65535], ae = H.read_shift(2), he = H.l + ae, le = Y.f && Y.f(H, ae, W);
|
|
12178
|
-
if (H.l = he,
|
|
12178
|
+
if (H.l = he, G(le, Y, X)) return;
|
|
12179
12179
|
}
|
|
12180
12180
|
}
|
|
12181
12181
|
}
|
|
12182
|
-
function e(H,
|
|
12183
|
-
switch (
|
|
12182
|
+
function e(H, G) {
|
|
12183
|
+
switch (G.type) {
|
|
12184
12184
|
case "base64":
|
|
12185
|
-
return n(sr(xs(H)),
|
|
12185
|
+
return n(sr(xs(H)), G);
|
|
12186
12186
|
case "binary":
|
|
12187
|
-
return n(sr(H),
|
|
12187
|
+
return n(sr(H), G);
|
|
12188
12188
|
case "buffer":
|
|
12189
12189
|
case "array":
|
|
12190
|
-
return n(H,
|
|
12190
|
+
return n(H, G);
|
|
12191
12191
|
}
|
|
12192
|
-
throw "Unsupported type " +
|
|
12192
|
+
throw "Unsupported type " + G.type;
|
|
12193
12193
|
}
|
|
12194
|
-
function n(H,
|
|
12194
|
+
function n(H, G) {
|
|
12195
12195
|
if (!H) return H;
|
|
12196
|
-
var W =
|
|
12196
|
+
var W = G || {}, P = W.dense ? [] : {}, X = "Sheet1", Y = "", ae = 0, he = {}, le = [], Ie = [], je = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, tt = W.sheetRows || 0;
|
|
12197
12197
|
if (H[2] == 0 && (H[3] == 8 || H[3] == 9) && H.length >= 16 && H[14] == 5 && H[15] === 108)
|
|
12198
12198
|
throw new Error("Unsupported Works 3 for Mac file");
|
|
12199
12199
|
if (H[2] == 2)
|
|
12200
|
-
W.Enum = ke, t(H, function(De, j,
|
|
12201
|
-
switch (
|
|
12200
|
+
W.Enum = ke, t(H, function(De, j, Z) {
|
|
12201
|
+
switch (Z) {
|
|
12202
12202
|
case 0:
|
|
12203
12203
|
W.vers = De, De >= 4096 && (W.qpro = !0);
|
|
12204
12204
|
break;
|
|
@@ -12224,7 +12224,7 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12224
12224
|
case 14:
|
|
12225
12225
|
/* NUMBER */
|
|
12226
12226
|
case 16:
|
|
12227
|
-
|
|
12227
|
+
Z == 14 && (De[2] & 112) == 112 && (De[2] & 15) > 1 && (De[2] & 15) < 15 && (De[1].z = W.dateNF || Yt[14], W.cellDates && (De[1].t = "d", De[1].v = Kx(De[1].v))), W.qpro && De[3] > ae && (P["!ref"] = ln(je), he[X] = P, le.push(X), P = W.dense ? [] : {}, je = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, ae = De[3], X = Y || "Sheet" + (ae + 1), Y = "");
|
|
12228
12228
|
var ie = W.dense ? (P[De[0].r] || [])[De[0].c] : P[At(De[0])];
|
|
12229
12229
|
if (ie) {
|
|
12230
12230
|
ie.t = De[1].t, ie.v = De[1].v, De[1].z != null && (ie.z = De[1].z), De[1].f != null && (ie.f = De[1].f);
|
|
@@ -12235,8 +12235,8 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12235
12235
|
}
|
|
12236
12236
|
}, W);
|
|
12237
12237
|
else if (H[2] == 26 || H[2] == 14)
|
|
12238
|
-
W.Enum = me, H[2] == 14 && (W.qpro = !0, H.l = 0), t(H, function(De, j,
|
|
12239
|
-
switch (
|
|
12238
|
+
W.Enum = me, H[2] == 14 && (W.qpro = !0, H.l = 0), t(H, function(De, j, Z) {
|
|
12239
|
+
switch (Z) {
|
|
12240
12240
|
case 204:
|
|
12241
12241
|
X = De;
|
|
12242
12242
|
break;
|
|
@@ -12271,8 +12271,8 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12271
12271
|
for (var Be = {}, mt = [], nt = 0; nt < Ie.length; ++nt) he[le[nt]] ? (mt.push(Ie[nt] || le[nt]), Be[Ie[nt]] = he[Ie[nt]] || he[le[nt]]) : (mt.push(Ie[nt]), Be[Ie[nt]] = { "!ref": "A1" });
|
|
12272
12272
|
return { SheetNames: mt, Sheets: Be };
|
|
12273
12273
|
}
|
|
12274
|
-
function i(H,
|
|
12275
|
-
var W =
|
|
12274
|
+
function i(H, G) {
|
|
12275
|
+
var W = G || {};
|
|
12276
12276
|
if (+W.codepage >= 0 && Bc(+W.codepage), W.type == "string") throw new Error("Cannot write WK1 to JS string");
|
|
12277
12277
|
var P = li(), X = Vt(H["!ref"]), Y = Array.isArray(H), ae = [];
|
|
12278
12278
|
Oe(P, 0, s(1030)), Oe(P, 6, l(X));
|
|
@@ -12290,8 +12290,8 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12290
12290
|
}
|
|
12291
12291
|
return Oe(P, 1), P.end();
|
|
12292
12292
|
}
|
|
12293
|
-
function r(H,
|
|
12294
|
-
var W =
|
|
12293
|
+
function r(H, G) {
|
|
12294
|
+
var W = G || {};
|
|
12295
12295
|
if (+W.codepage >= 0 && Bc(+W.codepage), W.type == "string") throw new Error("Cannot write WK3 to JS string");
|
|
12296
12296
|
var P = li();
|
|
12297
12297
|
Oe(P, 0, o(H));
|
|
@@ -12308,8 +12308,8 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12308
12308
|
if (j.t == "n")
|
|
12309
12309
|
Oe(P, 23, L(Be, nt, ae, j.v));
|
|
12310
12310
|
else {
|
|
12311
|
-
var
|
|
12312
|
-
Oe(P, 22,
|
|
12311
|
+
var Z = ks(j);
|
|
12312
|
+
Oe(P, 22, S(Be, nt, ae, Z.slice(0, 239)));
|
|
12313
12313
|
}
|
|
12314
12314
|
}
|
|
12315
12315
|
++ae;
|
|
@@ -12318,12 +12318,12 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12318
12318
|
return Oe(P, 1), P.end();
|
|
12319
12319
|
}
|
|
12320
12320
|
function s(H) {
|
|
12321
|
-
var
|
|
12322
|
-
return
|
|
12321
|
+
var G = oe(2);
|
|
12322
|
+
return G.write_shift(2, H), G;
|
|
12323
12323
|
}
|
|
12324
12324
|
function o(H) {
|
|
12325
|
-
var
|
|
12326
|
-
|
|
12325
|
+
var G = oe(26);
|
|
12326
|
+
G.write_shift(2, 4096), G.write_shift(2, 4), G.write_shift(4, 0);
|
|
12327
12327
|
for (var W = 0, P = 0, X = 0, Y = 0; Y < H.SheetNames.length; ++Y) {
|
|
12328
12328
|
var ae = H.SheetNames[Y], he = H.Sheets[ae];
|
|
12329
12329
|
if (!(!he || !he["!ref"])) {
|
|
@@ -12332,22 +12332,22 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12332
12332
|
W < le.e.r && (W = le.e.r), P < le.e.c && (P = le.e.c);
|
|
12333
12333
|
}
|
|
12334
12334
|
}
|
|
12335
|
-
return W > 8191 && (W = 8191),
|
|
12335
|
+
return W > 8191 && (W = 8191), G.write_shift(2, W), G.write_shift(1, X), G.write_shift(1, P), G.write_shift(2, 0), G.write_shift(2, 0), G.write_shift(1, 1), G.write_shift(1, 2), G.write_shift(4, 0), G.write_shift(4, 0), G;
|
|
12336
12336
|
}
|
|
12337
|
-
function a(H,
|
|
12337
|
+
function a(H, G, W) {
|
|
12338
12338
|
var P = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
|
|
12339
|
-
return
|
|
12339
|
+
return G == 8 && W.qpro ? (P.s.c = H.read_shift(1), H.l++, P.s.r = H.read_shift(2), P.e.c = H.read_shift(1), H.l++, P.e.r = H.read_shift(2), P) : (P.s.c = H.read_shift(2), P.s.r = H.read_shift(2), G == 12 && W.qpro && (H.l += 2), P.e.c = H.read_shift(2), P.e.r = H.read_shift(2), G == 12 && W.qpro && (H.l += 2), P.s.c == 65535 && (P.s.c = P.e.c = P.s.r = P.e.r = 0), P);
|
|
12340
12340
|
}
|
|
12341
12341
|
function l(H) {
|
|
12342
|
-
var
|
|
12343
|
-
return
|
|
12342
|
+
var G = oe(8);
|
|
12343
|
+
return G.write_shift(2, H.s.c), G.write_shift(2, H.s.r), G.write_shift(2, H.e.c), G.write_shift(2, H.e.r), G;
|
|
12344
12344
|
}
|
|
12345
|
-
function c(H,
|
|
12345
|
+
function c(H, G, W) {
|
|
12346
12346
|
var P = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0, 0];
|
|
12347
12347
|
return W.qpro && W.vers != 20768 ? (P[0].c = H.read_shift(1), P[3] = H.read_shift(1), P[0].r = H.read_shift(2), H.l += 2) : (P[2] = H.read_shift(1), P[0].c = H.read_shift(2), P[0].r = H.read_shift(2)), P;
|
|
12348
12348
|
}
|
|
12349
|
-
function d(H,
|
|
12350
|
-
var P = H.l +
|
|
12349
|
+
function d(H, G, W) {
|
|
12350
|
+
var P = H.l + G, X = c(H, G, W);
|
|
12351
12351
|
if (X[1].t = "s", W.vers == 20768) {
|
|
12352
12352
|
H.l++;
|
|
12353
12353
|
var Y = H.read_shift(1);
|
|
@@ -12355,33 +12355,33 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12355
12355
|
}
|
|
12356
12356
|
return W.qpro && H.l++, X[1].v = H.read_shift(P - H.l, "cstr"), X;
|
|
12357
12357
|
}
|
|
12358
|
-
function u(H,
|
|
12358
|
+
function u(H, G, W) {
|
|
12359
12359
|
var P = oe(7 + W.length);
|
|
12360
|
-
P.write_shift(1, 255), P.write_shift(2,
|
|
12360
|
+
P.write_shift(1, 255), P.write_shift(2, G), P.write_shift(2, H), P.write_shift(1, 39);
|
|
12361
12361
|
for (var X = 0; X < P.length; ++X) {
|
|
12362
12362
|
var Y = W.charCodeAt(X);
|
|
12363
12363
|
P.write_shift(1, Y >= 128 ? 95 : Y);
|
|
12364
12364
|
}
|
|
12365
12365
|
return P.write_shift(1, 0), P;
|
|
12366
12366
|
}
|
|
12367
|
-
function h(H,
|
|
12368
|
-
var P = c(H,
|
|
12367
|
+
function h(H, G, W) {
|
|
12368
|
+
var P = c(H, G, W);
|
|
12369
12369
|
return P[1].v = H.read_shift(2, "i"), P;
|
|
12370
12370
|
}
|
|
12371
|
-
function p(H,
|
|
12371
|
+
function p(H, G, W) {
|
|
12372
12372
|
var P = oe(7);
|
|
12373
|
-
return P.write_shift(1, 255), P.write_shift(2,
|
|
12373
|
+
return P.write_shift(1, 255), P.write_shift(2, G), P.write_shift(2, H), P.write_shift(2, W, "i"), P;
|
|
12374
12374
|
}
|
|
12375
|
-
function m(H,
|
|
12376
|
-
var P = c(H,
|
|
12375
|
+
function m(H, G, W) {
|
|
12376
|
+
var P = c(H, G, W);
|
|
12377
12377
|
return P[1].v = H.read_shift(8, "f"), P;
|
|
12378
12378
|
}
|
|
12379
|
-
function g(H,
|
|
12379
|
+
function g(H, G, W) {
|
|
12380
12380
|
var P = oe(13);
|
|
12381
|
-
return P.write_shift(1, 255), P.write_shift(2,
|
|
12381
|
+
return P.write_shift(1, 255), P.write_shift(2, G), P.write_shift(2, H), P.write_shift(8, W, "f"), P;
|
|
12382
12382
|
}
|
|
12383
|
-
function v(H,
|
|
12384
|
-
var P = H.l +
|
|
12383
|
+
function v(H, G, W) {
|
|
12384
|
+
var P = H.l + G, X = c(H, G, W);
|
|
12385
12385
|
if (X[1].v = H.read_shift(8, "f"), W.qpro) H.l = P;
|
|
12386
12386
|
else {
|
|
12387
12387
|
var Y = H.read_shift(2);
|
|
@@ -12389,9 +12389,9 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12389
12389
|
}
|
|
12390
12390
|
return X;
|
|
12391
12391
|
}
|
|
12392
|
-
function y(H,
|
|
12393
|
-
var P =
|
|
12394
|
-
return
|
|
12392
|
+
function y(H, G, W) {
|
|
12393
|
+
var P = G & 32768;
|
|
12394
|
+
return G &= -32769, G = (P ? H : 0) + (G >= 8192 ? G - 16384 : G), (P ? "" : "$") + (W ? Vn(G) : Fn(G));
|
|
12395
12395
|
}
|
|
12396
12396
|
var b = {
|
|
12397
12397
|
51: ["FALSE", 0],
|
|
@@ -12441,7 +12441,7 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12441
12441
|
""
|
|
12442
12442
|
// eslint-disable-line no-mixed-spaces-and-tabs
|
|
12443
12443
|
];
|
|
12444
|
-
function w(H,
|
|
12444
|
+
function w(H, G) {
|
|
12445
12445
|
wi(H, 0);
|
|
12446
12446
|
for (var W = [], P = 0, X = "", Y = "", ae = "", he = ""; H.l < H.length; ) {
|
|
12447
12447
|
var le = H[H.l++];
|
|
@@ -12450,12 +12450,12 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12450
12450
|
W.push(H.read_shift(8, "f"));
|
|
12451
12451
|
break;
|
|
12452
12452
|
case 1:
|
|
12453
|
-
Y = y(
|
|
12453
|
+
Y = y(G[0].c, H.read_shift(2), !0), X = y(G[0].r, H.read_shift(2), !1), W.push(Y + X);
|
|
12454
12454
|
break;
|
|
12455
12455
|
case 2:
|
|
12456
12456
|
{
|
|
12457
|
-
var Ie = y(
|
|
12458
|
-
Y = y(
|
|
12457
|
+
var Ie = y(G[0].c, H.read_shift(2), !0), je = y(G[0].r, H.read_shift(2), !1);
|
|
12458
|
+
Y = y(G[0].c, H.read_shift(2), !0), X = y(G[0].r, H.read_shift(2), !1), W.push(Ie + je + ":" + Y + X);
|
|
12459
12459
|
}
|
|
12460
12460
|
break;
|
|
12461
12461
|
case 3:
|
|
@@ -12502,26 +12502,26 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12502
12502
|
} else return le <= 7 ? console.error("WK1 invalid opcode " + le.toString(16)) : le <= 24 ? console.error("WK1 unsupported op " + le.toString(16)) : le <= 30 ? console.error("WK1 invalid opcode " + le.toString(16)) : le <= 115 ? console.error("WK1 unsupported function opcode " + le.toString(16)) : console.error("WK1 unrecognized opcode " + le.toString(16));
|
|
12503
12503
|
}
|
|
12504
12504
|
}
|
|
12505
|
-
W.length == 1 ?
|
|
12505
|
+
W.length == 1 ? G[1].f = "" + W[0] : console.error("WK1 bad formula parse |" + W.join("|") + "|");
|
|
12506
12506
|
}
|
|
12507
12507
|
function _(H) {
|
|
12508
|
-
var
|
|
12509
|
-
return
|
|
12508
|
+
var G = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0];
|
|
12509
|
+
return G[0].r = H.read_shift(2), G[3] = H[H.l++], G[0].c = H[H.l++], G;
|
|
12510
12510
|
}
|
|
12511
|
-
function C(H,
|
|
12511
|
+
function C(H, G) {
|
|
12512
12512
|
var W = _(H);
|
|
12513
|
-
return W[1].t = "s", W[1].v = H.read_shift(
|
|
12513
|
+
return W[1].t = "s", W[1].v = H.read_shift(G - 4, "cstr"), W;
|
|
12514
12514
|
}
|
|
12515
|
-
function
|
|
12515
|
+
function S(H, G, W, P) {
|
|
12516
12516
|
var X = oe(6 + P.length);
|
|
12517
|
-
X.write_shift(2, H), X.write_shift(1, W), X.write_shift(1,
|
|
12517
|
+
X.write_shift(2, H), X.write_shift(1, W), X.write_shift(1, G), X.write_shift(1, 39);
|
|
12518
12518
|
for (var Y = 0; Y < P.length; ++Y) {
|
|
12519
12519
|
var ae = P.charCodeAt(Y);
|
|
12520
12520
|
X.write_shift(1, ae >= 128 ? 95 : ae);
|
|
12521
12521
|
}
|
|
12522
12522
|
return X.write_shift(1, 0), X;
|
|
12523
12523
|
}
|
|
12524
|
-
function M(H,
|
|
12524
|
+
function M(H, G) {
|
|
12525
12525
|
var W = _(H);
|
|
12526
12526
|
W[1].v = H.read_shift(2);
|
|
12527
12527
|
var P = W[1].v >> 1;
|
|
@@ -12554,55 +12554,55 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12554
12554
|
}
|
|
12555
12555
|
return W[1].v = P, W;
|
|
12556
12556
|
}
|
|
12557
|
-
function
|
|
12557
|
+
function E(H, G) {
|
|
12558
12558
|
var W = _(H), P = H.read_shift(4), X = H.read_shift(4), Y = H.read_shift(2);
|
|
12559
12559
|
if (Y == 65535)
|
|
12560
12560
|
return P === 0 && X === 3221225472 ? (W[1].t = "e", W[1].v = 15) : P === 0 && X === 3489660928 ? (W[1].t = "e", W[1].v = 42) : W[1].v = 0, W;
|
|
12561
12561
|
var ae = Y & 32768;
|
|
12562
12562
|
return Y = (Y & 32767) - 16446, W[1].v = (1 - ae * 2) * (X * Math.pow(2, Y + 32) + P * Math.pow(2, Y)), W;
|
|
12563
12563
|
}
|
|
12564
|
-
function L(H,
|
|
12564
|
+
function L(H, G, W, P) {
|
|
12565
12565
|
var X = oe(14);
|
|
12566
|
-
if (X.write_shift(2, H), X.write_shift(1, W), X.write_shift(1,
|
|
12566
|
+
if (X.write_shift(2, H), X.write_shift(1, W), X.write_shift(1, G), P == 0)
|
|
12567
12567
|
return X.write_shift(4, 0), X.write_shift(4, 0), X.write_shift(2, 65535), X;
|
|
12568
12568
|
var Y = 0, ae = 0, he = 0, le = 0;
|
|
12569
12569
|
return P < 0 && (Y = 1, P = -P), ae = Math.log2(P) | 0, P /= Math.pow(2, ae - 31), le = P >>> 0, (le & 2147483648) == 0 && (P /= 2, ++ae, le = P >>> 0), P -= le, le |= 2147483648, le >>>= 0, P *= Math.pow(2, 32), he = P >>> 0, X.write_shift(4, he), X.write_shift(4, le), ae += 16383 + (Y ? 32768 : 0), X.write_shift(2, ae), X;
|
|
12570
12570
|
}
|
|
12571
|
-
function N(H,
|
|
12572
|
-
var W =
|
|
12573
|
-
return H.l +=
|
|
12571
|
+
function N(H, G) {
|
|
12572
|
+
var W = E(H);
|
|
12573
|
+
return H.l += G - 14, W;
|
|
12574
12574
|
}
|
|
12575
|
-
function T(H,
|
|
12575
|
+
function T(H, G) {
|
|
12576
12576
|
var W = _(H), P = H.read_shift(4);
|
|
12577
12577
|
return W[1].v = P >> 6, W;
|
|
12578
12578
|
}
|
|
12579
|
-
function I(H,
|
|
12579
|
+
function I(H, G) {
|
|
12580
12580
|
var W = _(H), P = H.read_shift(8, "f");
|
|
12581
12581
|
return W[1].v = P, W;
|
|
12582
12582
|
}
|
|
12583
|
-
function U(H,
|
|
12583
|
+
function U(H, G) {
|
|
12584
12584
|
var W = I(H);
|
|
12585
|
-
return H.l +=
|
|
12585
|
+
return H.l += G - 10, W;
|
|
12586
12586
|
}
|
|
12587
|
-
function
|
|
12588
|
-
return H[H.l +
|
|
12587
|
+
function q(H, G) {
|
|
12588
|
+
return H[H.l + G - 1] == 0 ? H.read_shift(G, "cstr") : "";
|
|
12589
12589
|
}
|
|
12590
|
-
function
|
|
12590
|
+
function K(H, G) {
|
|
12591
12591
|
var W = H[H.l++];
|
|
12592
|
-
W >
|
|
12592
|
+
W > G - 1 && (W = G - 1);
|
|
12593
12593
|
for (var P = ""; P.length < W; ) P += String.fromCharCode(H[H.l++]);
|
|
12594
12594
|
return P;
|
|
12595
12595
|
}
|
|
12596
|
-
function re(H,
|
|
12597
|
-
if (!(!W.qpro ||
|
|
12596
|
+
function re(H, G, W) {
|
|
12597
|
+
if (!(!W.qpro || G < 21)) {
|
|
12598
12598
|
var P = H.read_shift(1);
|
|
12599
12599
|
H.l += 17, H.l += 1, H.l += 2;
|
|
12600
|
-
var X = H.read_shift(
|
|
12600
|
+
var X = H.read_shift(G - 21, "cstr");
|
|
12601
12601
|
return [P, X];
|
|
12602
12602
|
}
|
|
12603
12603
|
}
|
|
12604
|
-
function xe(H,
|
|
12605
|
-
for (var W = {}, P = H.l +
|
|
12604
|
+
function xe(H, G) {
|
|
12605
|
+
for (var W = {}, P = H.l + G; H.l < P; ) {
|
|
12606
12606
|
var X = H.read_shift(2);
|
|
12607
12607
|
if (X == 14e3) {
|
|
12608
12608
|
for (W[X] = [0, ""], W[X][0] = H.read_shift(2); H[H.l]; )
|
|
@@ -12612,9 +12612,9 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12612
12612
|
}
|
|
12613
12613
|
return W;
|
|
12614
12614
|
}
|
|
12615
|
-
function Te(H,
|
|
12615
|
+
function Te(H, G) {
|
|
12616
12616
|
var W = oe(5 + H.length);
|
|
12617
|
-
W.write_shift(2, 14e3), W.write_shift(2,
|
|
12617
|
+
W.write_shift(2, 14e3), W.write_shift(2, G);
|
|
12618
12618
|
for (var P = 0; P < H.length; ++P) {
|
|
12619
12619
|
var X = H.charCodeAt(P);
|
|
12620
12620
|
W[W.l++] = X > 127 ? 95 : X;
|
|
@@ -12745,9 +12745,9 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12745
12745
|
/*::[*/
|
|
12746
12746
|
105: { n: "MRANGES??" },
|
|
12747
12747
|
/*::[*/
|
|
12748
|
-
204: { n: "SHEETNAMECS", f:
|
|
12748
|
+
204: { n: "SHEETNAMECS", f: q },
|
|
12749
12749
|
/*::[*/
|
|
12750
|
-
222: { n: "SHEETNAMELP", f:
|
|
12750
|
+
222: { n: "SHEETNAMELP", f: K },
|
|
12751
12751
|
/*::[*/
|
|
12752
12752
|
65535: { n: "" }
|
|
12753
12753
|
}, me = {
|
|
@@ -12798,7 +12798,7 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12798
12798
|
/*::[*/
|
|
12799
12799
|
22: { n: "LABEL16", f: C },
|
|
12800
12800
|
/*::[*/
|
|
12801
|
-
23: { n: "NUMBER17", f:
|
|
12801
|
+
23: { n: "NUMBER17", f: E },
|
|
12802
12802
|
/*::[*/
|
|
12803
12803
|
24: { n: "NUMBER18", f: M },
|
|
12804
12804
|
/*::[*/
|
|
@@ -12874,7 +12874,7 @@ var R$ = /* @__PURE__ */ (function() {
|
|
|
12874
12874
|
/*::[*/
|
|
12875
12875
|
201: { n: "??" },
|
|
12876
12876
|
/*::[*/
|
|
12877
|
-
204: { n: "SHEETNAMECS", f:
|
|
12877
|
+
204: { n: "SHEETNAMECS", f: q },
|
|
12878
12878
|
/*::[*/
|
|
12879
12879
|
205: { n: "??" },
|
|
12880
12880
|
/*::[*/
|
|
@@ -14445,21 +14445,21 @@ function nl(t, e, n, i, r) {
|
|
|
14445
14445
|
break;
|
|
14446
14446
|
case "PtgName":
|
|
14447
14447
|
h = k[1][2];
|
|
14448
|
-
var
|
|
14448
|
+
var S = (i.names || [])[h - 1] || (i[0] || [])[h], M = S ? S.Name : "SH33TJSNAME" + String(h);
|
|
14449
14449
|
M && M.slice(0, 6) == "_xlfn." && !r.xlfn && (M = M.slice(6)), a.push(M);
|
|
14450
14450
|
break;
|
|
14451
14451
|
case "PtgNameX":
|
|
14452
|
-
var
|
|
14452
|
+
var E = k[1][1];
|
|
14453
14453
|
h = k[1][2];
|
|
14454
14454
|
var L;
|
|
14455
14455
|
if (r.biff <= 5)
|
|
14456
|
-
|
|
14456
|
+
E < 0 && (E = -E), i[E] && (L = i[E][h]);
|
|
14457
14457
|
else {
|
|
14458
14458
|
var N = "";
|
|
14459
|
-
if (((i[
|
|
14459
|
+
if (((i[E] || [])[0] || [])[0] == 14849 || (((i[E] || [])[0] || [])[0] == 1025 ? i[E][h] && i[E][h].itab > 0 && (N = i.SheetNames[i[E][h].itab - 1] + "!") : N = i.SheetNames[h - 1] + "!"), i[E] && i[E][h]) N += i[E][h].Name;
|
|
14460
14460
|
else if (i[0] && i[0][h]) N += i[0][h].Name;
|
|
14461
14461
|
else {
|
|
14462
|
-
var T = (Kk(i,
|
|
14462
|
+
var T = (Kk(i, E, r) || "").split(";;");
|
|
14463
14463
|
T[h - 1] ? N = T[h - 1] : N += "SH33TJSERRX";
|
|
14464
14464
|
}
|
|
14465
14465
|
a.push(N);
|
|
@@ -14502,15 +14502,15 @@ function nl(t, e, n, i, r) {
|
|
|
14502
14502
|
break;
|
|
14503
14503
|
case "PtgExp":
|
|
14504
14504
|
d = { c: k[1][1], r: k[1][0] };
|
|
14505
|
-
var
|
|
14505
|
+
var q = { c: n.c, r: n.r };
|
|
14506
14506
|
if (i.sharedf[At(d)]) {
|
|
14507
|
-
var
|
|
14508
|
-
a.push(nl(
|
|
14507
|
+
var K = i.sharedf[At(d)];
|
|
14508
|
+
a.push(nl(K, o, q, i, r));
|
|
14509
14509
|
} else {
|
|
14510
14510
|
var re = !1;
|
|
14511
14511
|
for (l = 0; l != i.arrayf.length; ++l)
|
|
14512
14512
|
if (c = i.arrayf[l], !(d.c < c[0].s.c || d.c > c[0].e.c) && !(d.r < c[0].s.r || d.r > c[0].e.r)) {
|
|
14513
|
-
a.push(nl(c[1], o,
|
|
14513
|
+
a.push(nl(c[1], o, q, i, r)), re = !0;
|
|
14514
14514
|
break;
|
|
14515
14515
|
}
|
|
14516
14516
|
re || a.push(
|
|
@@ -21212,14 +21212,14 @@ function rw(t, e, n) {
|
|
|
21212
21212
|
for (v = y = 0; v < _.length; ++v) {
|
|
21213
21213
|
var C = _[v];
|
|
21214
21214
|
if (!(i.display && o6(C))) {
|
|
21215
|
-
var
|
|
21215
|
+
var S = C.hasAttribute("data-v") ? C.getAttribute("data-v") : C.hasAttribute("v") ? C.getAttribute("v") : mH(C.innerHTML), M = C.getAttribute("data-z") || C.getAttribute("z");
|
|
21216
21216
|
for (h = 0; h < u.length; ++h) {
|
|
21217
|
-
var
|
|
21218
|
-
|
|
21217
|
+
var E = u[h];
|
|
21218
|
+
E.s.c == y + s && E.s.r < g + r && g + r <= E.e.r && (y = E.e.c + 1 - s, h = -1);
|
|
21219
21219
|
}
|
|
21220
21220
|
k = +C.getAttribute("colspan") || 1, ((b = +C.getAttribute("rowspan") || 1) > 1 || k > 1) && u.push({ s: { r: g + r, c: y + s }, e: { r: g + r + (b || 1) - 1, c: y + s + (k || 1) - 1 } });
|
|
21221
|
-
var L = { t: "s", v:
|
|
21222
|
-
|
|
21221
|
+
var L = { t: "s", v: S }, N = C.getAttribute("data-t") || C.getAttribute("t") || "";
|
|
21222
|
+
S != null && (S.length == 0 ? L.t = N || "z" : i.raw || S.trim().length == 0 || N == "s" || (S === "TRUE" ? L = { t: "b", v: !0 } : S === "FALSE" ? L = { t: "b", v: !1 } : isNaN(cs(S)) ? isNaN($c(S).getDate()) || (L = { t: "d", v: Jn(S) }, i.cellDates || (L = { t: "n", v: pi(L.v) }), L.z = i.dateNF || Yt[14]) : L = { t: "n", v: cs(S) })), L.z === void 0 && M != null && (L.z = M);
|
|
21223
21223
|
var T = "", I = C.getElementsByTagName("A");
|
|
21224
21224
|
if (I && I.length) for (var U = 0; U < I.length && !(I[U].hasAttribute("href") && (T = I[U].getAttribute("href"), T.charAt(0) != "#")); ++U) ;
|
|
21225
21225
|
T && T.charAt(0) != "#" && (L.l = { Target: T }), i.dense ? (t[g + r] || (t[g + r] = []), t[g + r][y + s] = L) : t[At({ c: y + s, r: g + r })] = L, c.e.c < y + s && (c.e.c = y + s), y += k;
|
|
@@ -21331,12 +21331,12 @@ var $U = /* @__PURE__ */ (function() {
|
|
|
21331
21331
|
l.push(e);
|
|
21332
21332
|
continue;
|
|
21333
21333
|
}
|
|
21334
|
-
var
|
|
21334
|
+
var S = t(k);
|
|
21335
21335
|
if (_.l && _.l.Target) {
|
|
21336
21336
|
var M = _.l.Target;
|
|
21337
|
-
M = M.charAt(0) == "#" ? "#" + aj(M.slice(1)) : M, M.charAt(0) != "#" && !M.match(/^\w+:/) && (M = "../" + M),
|
|
21337
|
+
M = M.charAt(0) == "#" ? "#" + aj(M.slice(1)) : M, M.charAt(0) != "#" && !M.match(/^\w+:/) && (M = "../" + M), S = Ne("text:a", S, { "xlink:href": M.replace(/&/g, "&") });
|
|
21338
21338
|
}
|
|
21339
|
-
l.push(" " + Ne("table:table-cell", Ne("text:p",
|
|
21339
|
+
l.push(" " + Ne("table:table-cell", Ne("text:p", S, {}), b) + `
|
|
21340
21340
|
`);
|
|
21341
21341
|
}
|
|
21342
21342
|
l.push(` </table:table-row>
|
|
@@ -21727,35 +21727,35 @@ function qU(t, e) {
|
|
|
21727
21727
|
var r = !1;
|
|
21728
21728
|
i.e.c > 9 && (r = !0, i.e.c = 9), i.e.r > 49 && (r = !0, i.e.r = 49), r && console.error("The Numbers writer is currently limited to ".concat(ln(i)));
|
|
21729
21729
|
var s = D1(n, { range: i, header: 1 }), o = ["~Sh33tJ5~"];
|
|
21730
|
-
s.forEach(function(
|
|
21731
|
-
return
|
|
21730
|
+
s.forEach(function(G) {
|
|
21731
|
+
return G.forEach(function(W) {
|
|
21732
21732
|
typeof W == "string" && o.push(W);
|
|
21733
21733
|
});
|
|
21734
21734
|
});
|
|
21735
21735
|
var a = {}, l = [], c = Nt.read(e.numbers, { type: "base64" });
|
|
21736
|
-
c.FileIndex.map(function(
|
|
21737
|
-
return [
|
|
21738
|
-
}).forEach(function(
|
|
21739
|
-
var W =
|
|
21736
|
+
c.FileIndex.map(function(G, W) {
|
|
21737
|
+
return [G, c.FullPaths[W]];
|
|
21738
|
+
}).forEach(function(G) {
|
|
21739
|
+
var W = G[0], P = G[1];
|
|
21740
21740
|
if (W.type == 2 && W.name.match(/\.iwa/)) {
|
|
21741
21741
|
var X = W.content, Y = rr(X), ae = ir(Y);
|
|
21742
21742
|
ae.forEach(function(he) {
|
|
21743
21743
|
l.push(he.id), a[he.id] = { deps: [], location: P, type: Wa(he.messages[0].meta[1][0].data) };
|
|
21744
21744
|
});
|
|
21745
21745
|
}
|
|
21746
|
-
}), l.sort(function(
|
|
21747
|
-
return
|
|
21746
|
+
}), l.sort(function(G, W) {
|
|
21747
|
+
return G - W;
|
|
21748
21748
|
});
|
|
21749
|
-
var d = l.filter(function(
|
|
21750
|
-
return
|
|
21751
|
-
}).map(function(
|
|
21752
|
-
return [
|
|
21749
|
+
var d = l.filter(function(G) {
|
|
21750
|
+
return G > 1;
|
|
21751
|
+
}).map(function(G) {
|
|
21752
|
+
return [G, Et(G)];
|
|
21753
21753
|
});
|
|
21754
|
-
c.FileIndex.map(function(
|
|
21755
|
-
return [
|
|
21756
|
-
}).forEach(function(
|
|
21757
|
-
var W =
|
|
21758
|
-
if (
|
|
21754
|
+
c.FileIndex.map(function(G, W) {
|
|
21755
|
+
return [G, c.FullPaths[W]];
|
|
21756
|
+
}).forEach(function(G) {
|
|
21757
|
+
var W = G[0];
|
|
21758
|
+
if (G[1], !!W.name.match(/\.iwa/)) {
|
|
21759
21759
|
var P = ir(rr(W.content));
|
|
21760
21760
|
P.forEach(function(X) {
|
|
21761
21761
|
X.messages.forEach(function(Y) {
|
|
@@ -21790,13 +21790,13 @@ function qU(t, e) {
|
|
|
21790
21790
|
throw "Bad ColumnRowUIDMapArchive";
|
|
21791
21791
|
var C = un(w[_].messages[0].data);
|
|
21792
21792
|
C[1] = [], C[2] = [], C[3] = [];
|
|
21793
|
-
for (var
|
|
21793
|
+
for (var S = 0; S <= i.e.c; ++S) {
|
|
21794
21794
|
var M = [];
|
|
21795
|
-
M[1] = M[2] = [{ type: 0, data: Et(
|
|
21795
|
+
M[1] = M[2] = [{ type: 0, data: Et(S + 420690) }], C[1].push({ type: 2, data: Sn(M) }), C[2].push({ type: 0, data: Et(S) }), C[3].push({ type: 0, data: Et(S) });
|
|
21796
21796
|
}
|
|
21797
21797
|
C[4] = [], C[5] = [], C[6] = [];
|
|
21798
|
-
for (var
|
|
21799
|
-
M = [], M[1] = M[2] = [{ type: 0, data: Et(
|
|
21798
|
+
for (var E = 0; E <= i.e.r; ++E)
|
|
21799
|
+
M = [], M[1] = M[2] = [{ type: 0, data: Et(E + 726270) }], C[4].push({ type: 2, data: Sn(M) }), C[5].push({ type: 0, data: Et(E) }), C[6].push({ type: 0, data: Et(E) });
|
|
21800
21800
|
w[_].messages[0].data = Sn(C);
|
|
21801
21801
|
}
|
|
21802
21802
|
k.content = ba(wa(w)), k.size = k.content.length, delete y[46];
|
|
@@ -21809,28 +21809,28 @@ function qU(t, e) {
|
|
|
21809
21809
|
if (w[0].id != T)
|
|
21810
21810
|
throw "Bad HeaderStorageBucket";
|
|
21811
21811
|
var I = un(w[0].messages[0].data);
|
|
21812
|
-
for (
|
|
21812
|
+
for (E = 0; E < s.length; ++E) {
|
|
21813
21813
|
var U = un(I[2][0].data);
|
|
21814
|
-
U[1][0].data = Et(
|
|
21814
|
+
U[1][0].data = Et(E), U[4][0].data = Et(s[E].length), I[2][E] = { type: I[2][0].type, data: Sn(U) };
|
|
21815
21815
|
}
|
|
21816
21816
|
w[0].messages[0].data = Sn(I);
|
|
21817
21817
|
}
|
|
21818
21818
|
k.content = ba(wa(w)), k.size = k.content.length;
|
|
21819
|
-
var
|
|
21820
|
-
k = Nt.find(c, a[
|
|
21819
|
+
var q = As(L[2][0].data);
|
|
21820
|
+
k = Nt.find(c, a[q].location), w = ir(rr(k.content));
|
|
21821
21821
|
{
|
|
21822
|
-
if (w[0].id !=
|
|
21822
|
+
if (w[0].id != q)
|
|
21823
21823
|
throw "Bad HeaderStorageBucket";
|
|
21824
|
-
for (I = un(w[0].messages[0].data),
|
|
21825
|
-
U = un(I[2][0].data), U[1][0].data = Et(
|
|
21824
|
+
for (I = un(w[0].messages[0].data), S = 0; S <= i.e.c; ++S)
|
|
21825
|
+
U = un(I[2][0].data), U[1][0].data = Et(S), U[4][0].data = Et(i.e.r + 1), I[2][S] = { type: I[2][0].type, data: Sn(U) };
|
|
21826
21826
|
w[0].messages[0].data = Sn(I);
|
|
21827
21827
|
}
|
|
21828
21828
|
k.content = ba(wa(w)), k.size = k.content.length;
|
|
21829
|
-
var
|
|
21829
|
+
var K = As(L[4][0].data);
|
|
21830
21830
|
(function() {
|
|
21831
|
-
for (var
|
|
21831
|
+
for (var G = Nt.find(c, a[K].location), W = ir(rr(G.content)), P, X = 0; X < W.length; ++X) {
|
|
21832
21832
|
var Y = W[X];
|
|
21833
|
-
Y.id ==
|
|
21833
|
+
Y.id == K && (P = Y);
|
|
21834
21834
|
}
|
|
21835
21835
|
var ae = un(P.messages[0].data);
|
|
21836
21836
|
{
|
|
@@ -21842,7 +21842,7 @@ function qU(t, e) {
|
|
|
21842
21842
|
}
|
|
21843
21843
|
P.messages[0].data = Sn(ae);
|
|
21844
21844
|
var le = wa(W), Ie = ba(le);
|
|
21845
|
-
|
|
21845
|
+
G.content = Ie, G.size = G.content.length;
|
|
21846
21846
|
})();
|
|
21847
21847
|
var re = un(L[3][0].data);
|
|
21848
21848
|
{
|
|
@@ -21852,7 +21852,7 @@ function qU(t, e) {
|
|
|
21852
21852
|
{
|
|
21853
21853
|
var ke = As(Te[2][0].data);
|
|
21854
21854
|
(function() {
|
|
21855
|
-
for (var
|
|
21855
|
+
for (var G = Nt.find(c, a[ke].location), W = ir(rr(G.content)), P, X = 0; X < W.length; ++X) {
|
|
21856
21856
|
var Y = W[X];
|
|
21857
21857
|
Y.id == ke && (P = Y);
|
|
21858
21858
|
}
|
|
@@ -21869,7 +21869,7 @@ function qU(t, e) {
|
|
|
21869
21869
|
}
|
|
21870
21870
|
P.messages[0].data = Sn(ae);
|
|
21871
21871
|
var tt = wa(W), Be = ba(tt);
|
|
21872
|
-
|
|
21872
|
+
G.content = Be, G.size = G.content.length;
|
|
21873
21873
|
})();
|
|
21874
21874
|
}
|
|
21875
21875
|
xe.data = Sn(Te);
|
|
@@ -23110,39 +23110,39 @@ const $q = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
|
|
|
23110
23110
|
...t
|
|
23111
23111
|
})
|
|
23112
23112
|
}), zq = ({ inProgress: t, children: e, RenderMessage: n, AssistantMessage: i, UserMessage: r, ImageRenderer: s, onRegenerate: o, onCopy: a, markdownTagRenderers: l }) => {
|
|
23113
|
-
const c = _e(null), { messages: d, interrupt: u } = El(), { threadId: h } = GM(), { close: p, currentReaction: m, currentMessage: g, isOpen: v } = hw(), y = Ge(), { greeting: b, initialMessage: k, welcomeScreenSuggestions: w, onThumbsUp: _, onThumbsDown: C } = Vr(),
|
|
23114
|
-
ref:
|
|
23113
|
+
const c = _e(null), { messages: d, interrupt: u } = El(), { threadId: h } = GM(), { close: p, currentReaction: m, currentMessage: g, isOpen: v } = hw(), y = Ge(), { greeting: b, initialMessage: k, welcomeScreenSuggestions: w, onThumbsUp: _, onThumbsDown: C } = Vr(), S = we(() => jq(k || y.ai.defaultInitialMessage), [k, y.ai.defaultInitialMessage]), M = d.length == 0 && (b || S.length > 0), { messagesContainerRef: E, messagesEndRef: L, showScrollToBottom: N, scrollToBottom: T } = Wq(), { height: I = 0 } = c1({
|
|
23114
|
+
ref: E,
|
|
23115
23115
|
box: "border-box"
|
|
23116
23116
|
}), U = we(() => Uq(d), [d]);
|
|
23117
23117
|
return x(Je, {
|
|
23118
23118
|
children: [x(ye.div, {
|
|
23119
23119
|
layout: !0,
|
|
23120
23120
|
className: D("scrollbar-macos relative isolate flex flex-1 flex-col px-4 pt-3", "overflow-y-scroll"),
|
|
23121
|
-
ref:
|
|
23121
|
+
ref: E,
|
|
23122
23122
|
children: [x(ye.div, {
|
|
23123
23123
|
layout: "position",
|
|
23124
23124
|
ref: c,
|
|
23125
23125
|
className: M ? "flex flex-1 pb-3" : "flex flex-col gap-8",
|
|
23126
23126
|
children: [M && f($q, {
|
|
23127
23127
|
greeting: b,
|
|
23128
|
-
initialMessages:
|
|
23128
|
+
initialMessages: S,
|
|
23129
23129
|
suggestions: w
|
|
23130
|
-
}), U.map((
|
|
23131
|
-
const re =
|
|
23130
|
+
}), U.map((q, K) => {
|
|
23131
|
+
const re = K === U.length - 1;
|
|
23132
23132
|
return f("div", {
|
|
23133
23133
|
className: "flex flex-col items-start justify-start gap-2",
|
|
23134
23134
|
style: {
|
|
23135
23135
|
minHeight: re ? I * 0.8 : void 0
|
|
23136
23136
|
},
|
|
23137
|
-
children:
|
|
23138
|
-
const ke =
|
|
23137
|
+
children: q.map((xe, Te) => {
|
|
23138
|
+
const ke = K === U.length - 1 && Te === q.length - 1;
|
|
23139
23139
|
return Array.isArray(xe) && !ke ? f(Pq, {
|
|
23140
23140
|
messages: xe,
|
|
23141
23141
|
isActive: !1,
|
|
23142
23142
|
inProgress: t,
|
|
23143
23143
|
RenderMessage: n,
|
|
23144
23144
|
AssistantMessage: i
|
|
23145
|
-
}, `${
|
|
23145
|
+
}, `${K}-${Te}`) : f(n, {
|
|
23146
23146
|
message: Array.isArray(xe) ? xe[xe.length - 1] : xe,
|
|
23147
23147
|
inProgress: t,
|
|
23148
23148
|
index: Te,
|
|
@@ -23153,9 +23153,9 @@ const $q = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
|
|
|
23153
23153
|
onRegenerate: o,
|
|
23154
23154
|
onCopy: a,
|
|
23155
23155
|
markdownTagRenderers: l
|
|
23156
|
-
}, `${
|
|
23156
|
+
}, `${K}-${Te}`);
|
|
23157
23157
|
})
|
|
23158
|
-
}, `turn-${
|
|
23158
|
+
}, `turn-${K}`);
|
|
23159
23159
|
}), u]
|
|
23160
23160
|
}), f("footer", {
|
|
23161
23161
|
className: "copilotKitMessagesFooter",
|
|
@@ -23192,14 +23192,14 @@ const $q = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
|
|
|
23192
23192
|
})
|
|
23193
23193
|
})]
|
|
23194
23194
|
}), v && f(Rq, {
|
|
23195
|
-
onSubmit: (
|
|
23196
|
-
(m === "like" ? _ : C)?.(
|
|
23195
|
+
onSubmit: (q, K) => {
|
|
23196
|
+
(m === "like" ? _ : C)?.(q, {
|
|
23197
23197
|
threadId: h,
|
|
23198
|
-
feedback:
|
|
23198
|
+
feedback: K
|
|
23199
23199
|
}), p();
|
|
23200
23200
|
},
|
|
23201
|
-
onClose: (
|
|
23202
|
-
(m === "like" ? _ : C)?.(
|
|
23201
|
+
onClose: (q) => {
|
|
23202
|
+
(m === "like" ? _ : C)?.(q, {
|
|
23203
23203
|
threadId: h,
|
|
23204
23204
|
feedback: ""
|
|
23205
23205
|
}), p();
|
|
@@ -25474,15 +25474,15 @@ function hZ(t, e, n) {
|
|
|
25474
25474
|
return n(L);
|
|
25475
25475
|
}
|
|
25476
25476
|
function C(L) {
|
|
25477
|
-
return t.enter("tableRow"),
|
|
25477
|
+
return t.enter("tableRow"), S(L);
|
|
25478
25478
|
}
|
|
25479
|
-
function
|
|
25480
|
-
return L === 124 ? (t.enter("tableCellDivider"), t.consume(L), t.exit("tableCellDivider"),
|
|
25479
|
+
function S(L) {
|
|
25480
|
+
return L === 124 ? (t.enter("tableCellDivider"), t.consume(L), t.exit("tableCellDivider"), S) : L === null || ec(L) ? (t.exit("tableRow"), e(L)) : Ta(L) ? Rs(t, S, "whitespace")(L) : (t.enter("data"), M(L));
|
|
25481
25481
|
}
|
|
25482
25482
|
function M(L) {
|
|
25483
|
-
return L === null || L === 124 || Ti(L) ? (t.exit("data"),
|
|
25483
|
+
return L === null || L === 124 || Ti(L) ? (t.exit("data"), S(L)) : (t.consume(L), L === 92 ? E : M);
|
|
25484
25484
|
}
|
|
25485
|
-
function
|
|
25485
|
+
function E(L) {
|
|
25486
25486
|
return L === 92 || L === 124 ? (t.consume(L), M) : M(L);
|
|
25487
25487
|
}
|
|
25488
25488
|
}
|
|
@@ -25968,7 +25968,7 @@ function RZ({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
|
|
|
25968
25968
|
}
|
|
25969
25969
|
} : C;
|
|
25970
25970
|
if (C.type === "section") {
|
|
25971
|
-
const
|
|
25971
|
+
const S = C.section.questions?.map((M) => M.id === w ? {
|
|
25972
25972
|
...M,
|
|
25973
25973
|
...k
|
|
25974
25974
|
} : M);
|
|
@@ -25976,7 +25976,7 @@ function RZ({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
|
|
|
25976
25976
|
...C,
|
|
25977
25977
|
section: {
|
|
25978
25978
|
...C.section,
|
|
25979
|
-
questions:
|
|
25979
|
+
questions: S
|
|
25980
25980
|
}
|
|
25981
25981
|
};
|
|
25982
25982
|
}
|
|
@@ -25998,26 +25998,26 @@ function RZ({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
|
|
|
25998
25998
|
_.push(k), r(_);
|
|
25999
25999
|
return;
|
|
26000
26000
|
}
|
|
26001
|
-
((
|
|
26002
|
-
_.forEach((M,
|
|
26003
|
-
M.type === "section" && M.section.id ===
|
|
26001
|
+
((S) => {
|
|
26002
|
+
_.forEach((M, E) => {
|
|
26003
|
+
M.type === "section" && M.section.id === S && _.splice(E + 1, 0, k), M.type === "question" && M.question.id === S && _.splice(E + 1, 0, k);
|
|
26004
26004
|
});
|
|
26005
|
-
})(w), k.type === "question" && _.length === t.length && _.forEach((
|
|
26006
|
-
if (
|
|
26005
|
+
})(w), k.type === "question" && _.length === t.length && _.forEach((S, M) => {
|
|
26006
|
+
if (S.type !== "section")
|
|
26007
26007
|
return;
|
|
26008
|
-
const
|
|
26009
|
-
|
|
26010
|
-
L.id === w &&
|
|
26008
|
+
const E = [...S.section.questions ?? []];
|
|
26009
|
+
E?.forEach((L, N) => {
|
|
26010
|
+
L.id === w && E.splice(N + 1, 0, k.question);
|
|
26011
26011
|
}), _.splice(M, 1, {
|
|
26012
|
-
...
|
|
26012
|
+
...S,
|
|
26013
26013
|
section: {
|
|
26014
|
-
...
|
|
26015
|
-
questions:
|
|
26014
|
+
...S.section,
|
|
26015
|
+
questions: E
|
|
26016
26016
|
}
|
|
26017
26017
|
});
|
|
26018
26018
|
}), r(_);
|
|
26019
26019
|
}, [t, r]), d = Qe(({ type: k, afterId: w }) => {
|
|
26020
|
-
const _ = dd(k === "section" ? "section" : "question"), C = IZ(s),
|
|
26020
|
+
const _ = dd(k === "section" ? "section" : "question"), C = IZ(s), S = k === "section" ? {
|
|
26021
26021
|
type: "section",
|
|
26022
26022
|
section: {
|
|
26023
26023
|
id: _,
|
|
@@ -26043,11 +26043,11 @@ function RZ({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
|
|
|
26043
26043
|
}
|
|
26044
26044
|
};
|
|
26045
26045
|
c({
|
|
26046
|
-
element:
|
|
26046
|
+
element: S,
|
|
26047
26047
|
afterId: w
|
|
26048
26048
|
});
|
|
26049
26049
|
}, [c, s]), u = ({ elementId: k }) => {
|
|
26050
|
-
const _ = x6(t.map((
|
|
26050
|
+
const _ = x6(t.map((S) => S.type === "section" ? [S, ...S.section.questions ?? []] : [S.question])).find((S) => S.type === "section" ? S.section.id === k : S.id === k);
|
|
26051
26051
|
let C;
|
|
26052
26052
|
_ && (C = _.type === "section" ? {
|
|
26053
26053
|
..._,
|
|
@@ -26339,7 +26339,7 @@ const b6 = {
|
|
|
26339
26339
|
type: o,
|
|
26340
26340
|
description: I.target.value
|
|
26341
26341
|
});
|
|
26342
|
-
},
|
|
26342
|
+
}, S = (I) => {
|
|
26343
26343
|
l?.({
|
|
26344
26344
|
type: I,
|
|
26345
26345
|
afterId: t
|
|
@@ -26349,15 +26349,15 @@ const b6 = {
|
|
|
26349
26349
|
type: "section",
|
|
26350
26350
|
afterId: t
|
|
26351
26351
|
});
|
|
26352
|
-
},
|
|
26352
|
+
}, E = l4(), L = [...m ? [] : [{
|
|
26353
26353
|
label: w("coCreationForm.questionTypes.section"),
|
|
26354
26354
|
icon: r3,
|
|
26355
26355
|
onClick: M
|
|
26356
26356
|
}, {
|
|
26357
26357
|
type: "separator"
|
|
26358
|
-
}], ...
|
|
26358
|
+
}], ...E.map((I) => ({
|
|
26359
26359
|
...I,
|
|
26360
|
-
onClick: () =>
|
|
26360
|
+
onClick: () => S(I.questionType)
|
|
26361
26361
|
}))], N = d(t), T = !c || p;
|
|
26362
26362
|
return x("div", {
|
|
26363
26363
|
className: D("group/question relative flex w-full flex-col gap-4 rounded-xl border border-solid border-f1-border-secondary bg-f1-background px-3 py-4", !k && "hover:border-f1-border-hover"),
|
|
@@ -26564,14 +26564,14 @@ const b6 = {
|
|
|
26564
26564
|
});
|
|
26565
26565
|
}, C = () => {
|
|
26566
26566
|
h(!0), p(c);
|
|
26567
|
-
},
|
|
26567
|
+
}, S = () => {
|
|
26568
26568
|
h(!1), p(null);
|
|
26569
|
-
}, M = u ? v : o,
|
|
26569
|
+
}, M = u ? v : o, E = !!o && !l;
|
|
26570
26570
|
return f(ca, {
|
|
26571
26571
|
value: e,
|
|
26572
26572
|
onDragStart: C,
|
|
26573
|
-
onDragEnd:
|
|
26574
|
-
dragListener:
|
|
26573
|
+
onDragEnd: S,
|
|
26574
|
+
dragListener: E,
|
|
26575
26575
|
layout: "position",
|
|
26576
26576
|
as: "div",
|
|
26577
26577
|
children: x("div", {
|
|
@@ -26588,7 +26588,7 @@ const b6 = {
|
|
|
26588
26588
|
hideLabel: !0
|
|
26589
26589
|
})
|
|
26590
26590
|
}), f("div", {
|
|
26591
|
-
className: D("hidden scale-75 cursor-grab",
|
|
26591
|
+
className: D("hidden scale-75 cursor-grab", E && "active:cursor-grabbing", M && "group-hover:block", u && "cursor-grabbing", !E && "cursor-not-allowed"),
|
|
26592
26592
|
children: f("div", {
|
|
26593
26593
|
className: "flex aspect-square w-6 scale-90 items-center justify-center",
|
|
26594
26594
|
children: f($a, {
|
|
@@ -27592,7 +27592,7 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27592
27592
|
className: "cursor-pointer text-f1-icon-secondary"
|
|
27593
27593
|
})]
|
|
27594
27594
|
});
|
|
27595
|
-
}, Rh = 384, Ph = 36, uJ = 37, _6 = 1, S6 = 200, E6 = '[data-avatarname-navigator-element="true"]', hJ = ({ groupView: t, entities: e, groups: n, selectedGroup: i, search: r, onSelect: s, onRemove: o, onSubItemRemove: a, onSubItemSelect: l, onClear: c, onSelectAll: d, onSearch: u, selectedEntities: h = [], onGroupChange: p, onToggleExpand: m, searchPlaceholder: g, selectAllLabel: v, clearLabel: y, notFoundTitle: b, notFoundSubtitle: k, className: w, actions: _, onCreate: C, onCreateLabel:
|
|
27595
|
+
}, Rh = 384, Ph = 36, uJ = 37, _6 = 1, S6 = 200, E6 = '[data-avatarname-navigator-element="true"]', hJ = ({ groupView: t, entities: e, groups: n, selectedGroup: i, search: r, onSelect: s, onRemove: o, onSubItemRemove: a, onSubItemSelect: l, onClear: c, onSelectAll: d, onSearch: u, selectedEntities: h = [], onGroupChange: p, onToggleExpand: m, searchPlaceholder: g, selectAllLabel: v, clearLabel: y, notFoundTitle: b, notFoundSubtitle: k, className: w, actions: _, onCreate: C, onCreateLabel: S, singleSelector: M = !1, loading: E = !1, disabled: L = !1, hiddenAvatar: N = !1 }) => {
|
|
27596
27596
|
const T = ve.useRef(null), I = we(() => t ? e.reduce((Y, ae) => Y + (ae.subItems?.length ?? 0), 0) : e.length, [e, t]), U = Qe(() => {
|
|
27597
27597
|
setTimeout(() => {
|
|
27598
27598
|
T.current?.scrollTo({
|
|
@@ -27601,7 +27601,7 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27601
27601
|
}, _6), setTimeout(() => {
|
|
27602
27602
|
Array.from(document.querySelectorAll(E6))[0]?.focus();
|
|
27603
27603
|
}, S6);
|
|
27604
|
-
}, []),
|
|
27604
|
+
}, []), q = Qe(() => {
|
|
27605
27605
|
setTimeout(() => {
|
|
27606
27606
|
T.current?.scrollTo({
|
|
27607
27607
|
top: T.current?.scrollHeight
|
|
@@ -27610,8 +27610,8 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27610
27610
|
const Y = Array.from(document.querySelectorAll(E6));
|
|
27611
27611
|
Y[Y.length - 1]?.focus();
|
|
27612
27612
|
}, S6);
|
|
27613
|
-
}, []),
|
|
27614
|
-
const ae =
|
|
27613
|
+
}, []), K = we(() => new Map(h.map((Y) => [Y.id, Y])), [h]), re = Qe((Y) => {
|
|
27614
|
+
const ae = K.get(Y.id);
|
|
27615
27615
|
if (!t)
|
|
27616
27616
|
return {
|
|
27617
27617
|
selected: !!ae,
|
|
@@ -27622,13 +27622,13 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27622
27622
|
selected: le,
|
|
27623
27623
|
partialSelected: Ie
|
|
27624
27624
|
};
|
|
27625
|
-
}, [t,
|
|
27625
|
+
}, [t, K]), xe = Qe((Y) => {
|
|
27626
27626
|
if (Y.index === 0 && C)
|
|
27627
27627
|
return f(C6, {
|
|
27628
|
-
label:
|
|
27628
|
+
label: S ?? "",
|
|
27629
27629
|
onCreate: () => C?.(r),
|
|
27630
27630
|
goToFirst: U,
|
|
27631
|
-
goToLast:
|
|
27631
|
+
goToLast: q
|
|
27632
27632
|
});
|
|
27633
27633
|
const ae = C ? Y.index - 1 : Y.index, he = e[ae], { selected: le, partialSelected: Ie } = re(he);
|
|
27634
27634
|
return f(Hd, {
|
|
@@ -27644,11 +27644,11 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27644
27644
|
showGroupIcon: pJ(n, i),
|
|
27645
27645
|
singleSelector: M,
|
|
27646
27646
|
goToFirst: U,
|
|
27647
|
-
goToLast:
|
|
27647
|
+
goToLast: q,
|
|
27648
27648
|
disabled: L,
|
|
27649
27649
|
hiddenAvatar: N
|
|
27650
27650
|
}, he.id);
|
|
27651
|
-
}, [C,
|
|
27651
|
+
}, [C, S, L, e, re, U, q, t, n, N, o, s, m, r, i, M]), Te = we(() => t ? e.flatMap((Y) => {
|
|
27652
27652
|
const ae = ud(h ?? [], Y.id);
|
|
27653
27653
|
return [{
|
|
27654
27654
|
parent: null,
|
|
@@ -27678,10 +27678,10 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27678
27678
|
})), [t, e, h]), ke = Qe((Y) => {
|
|
27679
27679
|
if (Y.index === 0 && C)
|
|
27680
27680
|
return f(C6, {
|
|
27681
|
-
label:
|
|
27681
|
+
label: S ?? "",
|
|
27682
27682
|
onCreate: () => C?.(r),
|
|
27683
27683
|
goToFirst: U,
|
|
27684
|
-
goToLast:
|
|
27684
|
+
goToLast: q
|
|
27685
27685
|
});
|
|
27686
27686
|
const ae = C ? Y.index - 1 : Y.index, he = Te[ae].parent, le = Te[ae].subItem;
|
|
27687
27687
|
if (!he) {
|
|
@@ -27706,7 +27706,7 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27706
27706
|
showGroupIcon: n.find((De) => De.value === i)?.groupType === "team",
|
|
27707
27707
|
singleSelector: M,
|
|
27708
27708
|
goToFirst: U,
|
|
27709
|
-
goToLast:
|
|
27709
|
+
goToLast: q,
|
|
27710
27710
|
hideLine: ae === Te.length - 1,
|
|
27711
27711
|
disabled: L,
|
|
27712
27712
|
hiddenAvatar: N
|
|
@@ -27736,18 +27736,18 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27736
27736
|
partialSelected: !1,
|
|
27737
27737
|
singleSelector: M,
|
|
27738
27738
|
goToFirst: U,
|
|
27739
|
-
goToLast:
|
|
27739
|
+
goToLast: q,
|
|
27740
27740
|
isChild: !0,
|
|
27741
27741
|
hiddenAvatar: N
|
|
27742
27742
|
});
|
|
27743
|
-
}, [Te, h, r, M, U,
|
|
27743
|
+
}, [Te, h, r, M, U, q, s, o, n, L, m, i, l, a, N, C, S]), [me, H] = we(() => {
|
|
27744
27744
|
if (!e.length)
|
|
27745
27745
|
return [!1, !1];
|
|
27746
27746
|
let Y = 0, ae = 0;
|
|
27747
27747
|
if (!t)
|
|
27748
|
-
Y = e.length, ae = e.reduce((Ie, { id: je }) => Ie + (
|
|
27748
|
+
Y = e.length, ae = e.reduce((Ie, { id: je }) => Ie + (K.has(je) ? 1 : 0), 0);
|
|
27749
27749
|
else {
|
|
27750
|
-
const Ie = new Set([...
|
|
27750
|
+
const Ie = new Set([...K.values()].flatMap((je) => je.subItems?.map((tt) => tt.subId) ?? []));
|
|
27751
27751
|
e.forEach((je) => {
|
|
27752
27752
|
const tt = je.subItems ?? [];
|
|
27753
27753
|
Y += tt.length, ae += tt.filter((Be) => Ie.has(Be.subId)).length;
|
|
@@ -27755,11 +27755,11 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27755
27755
|
}
|
|
27756
27756
|
const he = Y > 0 && ae === Y, le = ae > 0;
|
|
27757
27757
|
return [he, le];
|
|
27758
|
-
}, [e,
|
|
27758
|
+
}, [e, K, t]), G = Te.length, W = !M && (v || y), P = _ && _.length > 0, X = !E && (!M && W || P);
|
|
27759
27759
|
return x("div", {
|
|
27760
|
-
className: D("flex w-full flex-col rounded-l-xl border-0", M ||
|
|
27760
|
+
className: D("flex w-full flex-col rounded-l-xl border-0", M || E ? "rounded-r-xl" : "", w),
|
|
27761
27761
|
children: [x("header", {
|
|
27762
|
-
className: D("flex h-[48px] justify-between gap-2 rounded-tl-xl border-0 border-b-[1px] border-r-[1px] border-solid border-f1-border-secondary bg-f1-background/30 p-2 backdrop-blur-2xl", M ||
|
|
27762
|
+
className: D("flex h-[48px] justify-between gap-2 rounded-tl-xl border-0 border-b-[1px] border-r-[1px] border-solid border-f1-border-secondary bg-f1-background/30 p-2 backdrop-blur-2xl", M || E ? "rounded-t-xl border-r-0" : ""),
|
|
27763
27763
|
children: [f("div", {
|
|
27764
27764
|
className: "flex-1",
|
|
27765
27765
|
children: f(dJ, {
|
|
@@ -27767,14 +27767,14 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27767
27767
|
onSearch: u,
|
|
27768
27768
|
searchPlaceholder: g,
|
|
27769
27769
|
goToFirst: U,
|
|
27770
|
-
goToLast:
|
|
27770
|
+
goToLast: q
|
|
27771
27771
|
})
|
|
27772
27772
|
}), n && n.length > 1 && f("div", {
|
|
27773
27773
|
className: "flex-1",
|
|
27774
27774
|
children: f(Ic, {
|
|
27775
27775
|
label: "Group",
|
|
27776
27776
|
hideLabel: !0,
|
|
27777
|
-
disabled:
|
|
27777
|
+
disabled: E,
|
|
27778
27778
|
onChange: p,
|
|
27779
27779
|
options: n,
|
|
27780
27780
|
value: i,
|
|
@@ -27783,10 +27783,10 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27783
27783
|
})]
|
|
27784
27784
|
}), x("section", {
|
|
27785
27785
|
className: D("flex-grow-1 flex h-96 flex-col justify-start gap-1 border-0 border-r-[1px] border-solid border-f1-border-secondary bg-f1-background", X ? "" : "rounded-b-xl border-r-0"),
|
|
27786
|
-
children: [
|
|
27786
|
+
children: [E && f("div", {
|
|
27787
27787
|
className: "flex h-full w-full flex-row items-center justify-center",
|
|
27788
27788
|
children: f(qo, {})
|
|
27789
|
-
}), !
|
|
27789
|
+
}), !E && !I && x("div", {
|
|
27790
27790
|
className: "absolute flex w-full flex-col items-center justify-center gap-0.5 p-5",
|
|
27791
27791
|
style: {
|
|
27792
27792
|
height: Rh
|
|
@@ -27798,11 +27798,11 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27798
27798
|
className: "text-center text-f1-foreground-secondary",
|
|
27799
27799
|
children: k
|
|
27800
27800
|
})]
|
|
27801
|
-
}), !
|
|
27801
|
+
}), !E && (!!I || C) && f("div", {
|
|
27802
27802
|
className: "h-full",
|
|
27803
27803
|
children: t ? f(R1, {
|
|
27804
27804
|
height: Rh,
|
|
27805
|
-
itemCount:
|
|
27805
|
+
itemCount: G + (C ? 1 : 0),
|
|
27806
27806
|
itemSize: (Y) => {
|
|
27807
27807
|
if (Y === 0 && C) return Ph;
|
|
27808
27808
|
const ae = C ? Y - 1 : Y;
|
|
@@ -27942,9 +27942,9 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27942
27942
|
})]
|
|
27943
27943
|
});
|
|
27944
27944
|
}, yJ = ({ placeholder: t, selected: e, selectedEntities: n, disabled: i = !1, hiddenAvatar: r = !1, label: s, labelIcon: o, icon: a, error: l, status: c, hint: d, onClickContent: u, hideLabel: h = !1, maxLength: p, loading: m = !1, required: g = !1, readonly: v = !1, append: y, size: b = "sm", open: k }) => {
|
|
27945
|
-
const w = we(() => n.some((M) => M.subItems && M.subItems.length > 0), [n]), _ = we(() => w ? n.flatMap((M) => (M.subItems ?? []).map((
|
|
27945
|
+
const w = we(() => n.some((M) => M.subItems && M.subItems.length > 0), [n]), _ = we(() => w ? n.flatMap((M) => (M.subItems ?? []).map((E) => ({
|
|
27946
27946
|
parent: M,
|
|
27947
|
-
subItem:
|
|
27947
|
+
subItem: E
|
|
27948
27948
|
}))) : n.map((M) => ({
|
|
27949
27949
|
parent: null,
|
|
27950
27950
|
subItem: {
|
|
@@ -27952,7 +27952,7 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27952
27952
|
subName: M.name,
|
|
27953
27953
|
subAvatar: M.avatar
|
|
27954
27954
|
}
|
|
27955
|
-
})), [w, n]), C = _.length === 0 ? void 0 : _.length === 1 ? _[0].subItem.subName : _.length + " " + e,
|
|
27955
|
+
})), [w, n]), C = _.length === 0 ? void 0 : _.length === 1 ? _[0].subItem.subName : _.length + " " + e, S = _.length === 1 ? _[0].subItem.subName : void 0;
|
|
27956
27956
|
return f(i7, {
|
|
27957
27957
|
onClickContent: u,
|
|
27958
27958
|
role: "combobox",
|
|
@@ -27973,9 +27973,9 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
27973
27973
|
required: g,
|
|
27974
27974
|
readonly: v,
|
|
27975
27975
|
size: b,
|
|
27976
|
-
avatar: r || !
|
|
27976
|
+
avatar: r || !S ? void 0 : {
|
|
27977
27977
|
type: "person",
|
|
27978
|
-
firstName:
|
|
27978
|
+
firstName: S,
|
|
27979
27979
|
lastName: "",
|
|
27980
27980
|
src: _[0].subItem.subAvatar
|
|
27981
27981
|
},
|
|
@@ -28008,24 +28008,24 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28008
28008
|
t.onSelect(C), n(!1);
|
|
28009
28009
|
return;
|
|
28010
28010
|
}
|
|
28011
|
-
const
|
|
28011
|
+
const S = t.selectedEntities ?? [], M = r.find((I) => I.id === C.id);
|
|
28012
28012
|
if (!M)
|
|
28013
28013
|
return;
|
|
28014
|
-
const
|
|
28014
|
+
const E = new Set((M.subItems ?? []).map((I) => I.subId)), L = /* @__PURE__ */ new Set([M.id]);
|
|
28015
28015
|
r.forEach((I) => {
|
|
28016
|
-
I.id !== M.id && (I.subItems ?? []).some((
|
|
28016
|
+
I.id !== M.id && (I.subItems ?? []).some((q) => E.has(q.subId)) && L.add(I.id);
|
|
28017
28017
|
});
|
|
28018
|
-
const N = [...
|
|
28018
|
+
const N = [...S];
|
|
28019
28019
|
function T(I) {
|
|
28020
|
-
const U = N.findIndex((
|
|
28020
|
+
const U = N.findIndex((q) => q.id === I.id);
|
|
28021
28021
|
U >= 0 ? N[U] = I : N.push(I);
|
|
28022
28022
|
}
|
|
28023
28023
|
L.forEach((I) => {
|
|
28024
28024
|
const U = r.find((re) => re.id === I);
|
|
28025
28025
|
if (!U) return;
|
|
28026
|
-
const
|
|
28027
|
-
if (
|
|
28028
|
-
const re = N[
|
|
28026
|
+
const q = U.subItems?.filter((re) => E.has(re.subId)) ?? [], K = N.findIndex((re) => re.id === I);
|
|
28027
|
+
if (K >= 0) {
|
|
28028
|
+
const re = N[K].subItems ?? [], xe = new Set(re.map((ke) => ke.subId)), Te = [...re, ...q.filter((ke) => !xe.has(ke.subId))];
|
|
28029
28029
|
T({
|
|
28030
28030
|
...U,
|
|
28031
28031
|
subItems: Te
|
|
@@ -28033,30 +28033,30 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28033
28033
|
} else
|
|
28034
28034
|
T({
|
|
28035
28035
|
...U,
|
|
28036
|
-
subItems:
|
|
28036
|
+
subItems: q
|
|
28037
28037
|
});
|
|
28038
28038
|
}), t.onSelect(N);
|
|
28039
28039
|
}
|
|
28040
|
-
function h(C,
|
|
28040
|
+
function h(C, S) {
|
|
28041
28041
|
if (t.singleSelector)
|
|
28042
28042
|
t.onSelect({
|
|
28043
28043
|
...C,
|
|
28044
28044
|
subItems: [{
|
|
28045
|
-
...
|
|
28045
|
+
...S
|
|
28046
28046
|
}]
|
|
28047
28047
|
}), n(!1);
|
|
28048
28048
|
else {
|
|
28049
|
-
const M = t.selectedEntities ?? [],
|
|
28050
|
-
|
|
28051
|
-
T.subItems?.some((U) => U.subId ===
|
|
28049
|
+
const M = t.selectedEntities ?? [], E = new Set(M.map((T) => T.id)), L = new Map(M.map((T) => [T.id, T.subItems ?? []]));
|
|
28050
|
+
E.add(C.id), t.entities.forEach((T) => {
|
|
28051
|
+
T.subItems?.some((U) => U.subId === S.subId) && E.add(T.id);
|
|
28052
28052
|
});
|
|
28053
28053
|
const N = [];
|
|
28054
28054
|
t.entities.forEach((T) => {
|
|
28055
|
-
if (
|
|
28055
|
+
if (E.has(T.id)) {
|
|
28056
28056
|
let U = [...L.get(T.id) ?? []];
|
|
28057
|
-
T.subItems?.some((re) => re.subId ===
|
|
28058
|
-
const
|
|
28059
|
-
U = U.filter((re) =>
|
|
28057
|
+
T.subItems?.some((re) => re.subId === S.subId) && (U.some((xe) => xe.subId === S.subId) || U.push(S));
|
|
28058
|
+
const K = new Set((T.subItems ?? []).map((re) => re.subId));
|
|
28059
|
+
U = U.filter((re) => K.has(re.subId)), N.push({
|
|
28060
28060
|
...T,
|
|
28061
28061
|
subItems: U
|
|
28062
28062
|
});
|
|
@@ -28069,32 +28069,32 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28069
28069
|
t.onSelect(null);
|
|
28070
28070
|
return;
|
|
28071
28071
|
}
|
|
28072
|
-
let
|
|
28072
|
+
let S = [];
|
|
28073
28073
|
const M = t.selectedEntities ?? [];
|
|
28074
28074
|
if (d) {
|
|
28075
|
-
const
|
|
28076
|
-
if (!
|
|
28075
|
+
const E = r.find((N) => N.id === C.id);
|
|
28076
|
+
if (!E)
|
|
28077
28077
|
return;
|
|
28078
|
-
const L = new Set((
|
|
28078
|
+
const L = new Set((E.subItems ?? []).map((N) => N.subId));
|
|
28079
28079
|
for (const N of M) {
|
|
28080
28080
|
const T = (N.subItems ?? []).filter((I) => !L.has(I.subId));
|
|
28081
|
-
T.length > 0 &&
|
|
28081
|
+
T.length > 0 && S.push({
|
|
28082
28082
|
...N,
|
|
28083
28083
|
subItems: T
|
|
28084
28084
|
});
|
|
28085
28085
|
}
|
|
28086
28086
|
} else
|
|
28087
|
-
|
|
28088
|
-
t.onSelect(
|
|
28087
|
+
S = (M ?? []).filter((E) => E.id !== C.id);
|
|
28088
|
+
t.onSelect(S);
|
|
28089
28089
|
}
|
|
28090
|
-
function m(C,
|
|
28090
|
+
function m(C, S) {
|
|
28091
28091
|
if (t.singleSelector) {
|
|
28092
28092
|
t.onSelect(null);
|
|
28093
28093
|
return;
|
|
28094
28094
|
}
|
|
28095
|
-
const M = t.selectedEntities ?? [],
|
|
28095
|
+
const M = t.selectedEntities ?? [], E = S.subId, L = [];
|
|
28096
28096
|
for (const N of M) {
|
|
28097
|
-
const T = N.subItems?.filter((I) => I.subId !==
|
|
28097
|
+
const T = N.subItems?.filter((I) => I.subId !== E) ?? [];
|
|
28098
28098
|
T.length > 0 && L.push({
|
|
28099
28099
|
...N,
|
|
28100
28100
|
subItems: T
|
|
@@ -28108,41 +28108,41 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28108
28108
|
return;
|
|
28109
28109
|
}
|
|
28110
28110
|
const C = t.selectedEntities ?? [];
|
|
28111
|
-
let
|
|
28111
|
+
let S = [];
|
|
28112
28112
|
if (d) {
|
|
28113
|
-
const M = new Set(r.flatMap((
|
|
28114
|
-
for (const
|
|
28115
|
-
const L = (
|
|
28116
|
-
L.length > 0 &&
|
|
28117
|
-
...
|
|
28113
|
+
const M = new Set(r.flatMap((E) => (E.subItems ?? []).map((L) => L.subId)));
|
|
28114
|
+
for (const E of C) {
|
|
28115
|
+
const L = (E.subItems ?? []).filter((N) => !M.has(N.subId));
|
|
28116
|
+
L.length > 0 && S.push({
|
|
28117
|
+
...E,
|
|
28118
28118
|
subItems: L
|
|
28119
28119
|
});
|
|
28120
28120
|
}
|
|
28121
28121
|
} else {
|
|
28122
|
-
const M = new Set(r.map((
|
|
28123
|
-
|
|
28122
|
+
const M = new Set(r.map((E) => E.id));
|
|
28123
|
+
S = (C ?? []).filter((E) => !M.has(E.id));
|
|
28124
28124
|
}
|
|
28125
|
-
t.onSelect(
|
|
28125
|
+
t.onSelect(S);
|
|
28126
28126
|
}
|
|
28127
28127
|
function v() {
|
|
28128
28128
|
const C = [...t.selectedEntities ?? []];
|
|
28129
|
-
r.forEach((
|
|
28130
|
-
const M = C.find((
|
|
28129
|
+
r.forEach((S) => {
|
|
28130
|
+
const M = C.find((E) => E.id === S.id);
|
|
28131
28131
|
if (!M)
|
|
28132
28132
|
C.push({
|
|
28133
|
-
...
|
|
28134
|
-
subItems:
|
|
28133
|
+
...S,
|
|
28134
|
+
subItems: S.subItems || []
|
|
28135
28135
|
});
|
|
28136
28136
|
else {
|
|
28137
|
-
const
|
|
28138
|
-
M.subItems =
|
|
28137
|
+
const E = Array.from(/* @__PURE__ */ new Set([...M.subItems ?? [], ...S.subItems ?? []]));
|
|
28138
|
+
M.subItems = E;
|
|
28139
28139
|
}
|
|
28140
28140
|
}), t.singleSelector || t.onSelect(C);
|
|
28141
28141
|
}
|
|
28142
28142
|
const y = (C) => {
|
|
28143
28143
|
a(C), c(C);
|
|
28144
|
-
}, b = (C,
|
|
28145
|
-
t.onItemExpandedChange(C.id,
|
|
28144
|
+
}, b = (C, S) => {
|
|
28145
|
+
t.onItemExpandedChange(C.id, S), s(r.map((M) => M.id === C.id ? {
|
|
28146
28146
|
...M,
|
|
28147
28147
|
expanded: !C.expanded
|
|
28148
28148
|
} : M));
|
|
@@ -28153,27 +28153,27 @@ const C6 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28153
28153
|
return;
|
|
28154
28154
|
}
|
|
28155
28155
|
if (d && !t.applySearchToGroup) {
|
|
28156
|
-
const
|
|
28157
|
-
const
|
|
28156
|
+
const S = t.entities.map((M) => {
|
|
28157
|
+
const E = xJ(M, l), L = M.subItems?.map((N) => ({
|
|
28158
28158
|
...N,
|
|
28159
28159
|
score: P1(l, N.subSearchKeys ?? [N.subName])
|
|
28160
28160
|
})).filter((N) => N.score < 1 / 0).sort((N, T) => N.score - T.score);
|
|
28161
28161
|
return {
|
|
28162
28162
|
...M,
|
|
28163
|
-
score:
|
|
28163
|
+
score: E,
|
|
28164
28164
|
expanded: M.expanded ?? (L?.length ?? 0) > 0,
|
|
28165
28165
|
subItems: L
|
|
28166
28166
|
};
|
|
28167
|
-
}).filter((M) => M.score < 1 / 0).sort((M,
|
|
28168
|
-
s(
|
|
28167
|
+
}).filter((M) => M.score < 1 / 0).sort((M, E) => M.score - E.score);
|
|
28168
|
+
s(S);
|
|
28169
28169
|
} else {
|
|
28170
|
-
const C = t.entities.map((
|
|
28171
|
-
const M = P1(l,
|
|
28170
|
+
const C = t.entities.map((S) => {
|
|
28171
|
+
const M = P1(l, S.searchKeys ?? [S.name]);
|
|
28172
28172
|
return {
|
|
28173
|
-
...
|
|
28173
|
+
...S,
|
|
28174
28174
|
score: M
|
|
28175
28175
|
};
|
|
28176
|
-
}).filter((
|
|
28176
|
+
}).filter((S) => S.score < 1 / 0).sort((S, M) => S.score - M.score);
|
|
28177
28177
|
s(C);
|
|
28178
28178
|
}
|
|
28179
28179
|
}, [l, t.entities, t.applySearchToGroup, d, s]);
|
|
@@ -28789,16 +28789,16 @@ var Ca = (t) => nn(t) && !V1(t) ? t : {
|
|
|
28789
28789
|
return {};
|
|
28790
28790
|
const k = a ? a[0] : o, w = (T) => {
|
|
28791
28791
|
r && k.reportValidity && (k.setCustomValidity(zi(T) ? "" : T || ""), k.reportValidity());
|
|
28792
|
-
}, _ = {}, C = p4(o),
|
|
28792
|
+
}, _ = {}, C = p4(o), S = Hf(o), M = C || S, E = (v || h4(o)) && en(o.value) && en(b) || $1(o) && o.value === "" || b === "" || Array.isArray(b) && !b.length, L = ub.bind(null, g, i, _), N = (T, I, U, q = qr.maxLength, K = qr.minLength) => {
|
|
28793
28793
|
const re = T ? I : U;
|
|
28794
28794
|
_[g] = {
|
|
28795
|
-
type: T ?
|
|
28795
|
+
type: T ? q : K,
|
|
28796
28796
|
message: re,
|
|
28797
28797
|
ref: o,
|
|
28798
|
-
...L(T ?
|
|
28798
|
+
...L(T ? q : K, re)
|
|
28799
28799
|
};
|
|
28800
28800
|
};
|
|
28801
|
-
if (s ? !Array.isArray(b) || !b.length : l && (!M && (
|
|
28801
|
+
if (s ? !Array.isArray(b) || !b.length : l && (!M && (E || Zn(b)) || zi(b) && !b || S && !hb(a).isValid || C && !pb(a).isValid)) {
|
|
28802
28802
|
const { value: T, message: I } = $d(l) ? { value: !!l, message: l } : Ca(l);
|
|
28803
28803
|
if (T && (_[g] = {
|
|
28804
28804
|
type: qr.required,
|
|
@@ -28808,25 +28808,25 @@ var Ca = (t) => nn(t) && !V1(t) ? t : {
|
|
|
28808
28808
|
}, !i))
|
|
28809
28809
|
return w(I), _;
|
|
28810
28810
|
}
|
|
28811
|
-
if (!
|
|
28811
|
+
if (!E && (!Zn(u) || !Zn(h))) {
|
|
28812
28812
|
let T, I;
|
|
28813
|
-
const U = Ca(h),
|
|
28813
|
+
const U = Ca(h), q = Ca(u);
|
|
28814
28814
|
if (!Zn(b) && !isNaN(b)) {
|
|
28815
|
-
const
|
|
28816
|
-
Zn(U.value) || (T =
|
|
28815
|
+
const K = o.valueAsNumber || b && +b;
|
|
28816
|
+
Zn(U.value) || (T = K > U.value), Zn(q.value) || (I = K < q.value);
|
|
28817
28817
|
} else {
|
|
28818
|
-
const
|
|
28819
|
-
Nr(U.value) && b && (T = xe ? re(b) > re(U.value) : Te ? b > U.value :
|
|
28818
|
+
const K = o.valueAsDate || new Date(b), re = (ke) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + ke), xe = o.type == "time", Te = o.type == "week";
|
|
28819
|
+
Nr(U.value) && b && (T = xe ? re(b) > re(U.value) : Te ? b > U.value : K > new Date(U.value)), Nr(q.value) && b && (I = xe ? re(b) < re(q.value) : Te ? b < q.value : K < new Date(q.value));
|
|
28820
28820
|
}
|
|
28821
|
-
if ((T || I) && (N(!!T, U.message,
|
|
28821
|
+
if ((T || I) && (N(!!T, U.message, q.message, qr.max, qr.min), !i))
|
|
28822
28822
|
return w(_[g].message), _;
|
|
28823
28823
|
}
|
|
28824
|
-
if ((c || d) && !
|
|
28825
|
-
const T = Ca(c), I = Ca(d), U = !Zn(T.value) && b.length > +T.value,
|
|
28826
|
-
if ((U ||
|
|
28824
|
+
if ((c || d) && !E && (Nr(b) || s && Array.isArray(b))) {
|
|
28825
|
+
const T = Ca(c), I = Ca(d), U = !Zn(T.value) && b.length > +T.value, q = !Zn(I.value) && b.length < +I.value;
|
|
28826
|
+
if ((U || q) && (N(U, T.message, I.message), !i))
|
|
28827
28827
|
return w(_[g].message), _;
|
|
28828
28828
|
}
|
|
28829
|
-
if (p && !
|
|
28829
|
+
if (p && !E && Nr(b)) {
|
|
28830
28830
|
const { value: T, message: I } = Ca(p);
|
|
28831
28831
|
if (V1(T) && !b.match(T) && (_[g] = {
|
|
28832
28832
|
type: qr.pattern,
|
|
@@ -29031,23 +29031,23 @@ function zJ(t = {}) {
|
|
|
29031
29031
|
values: Bh(),
|
|
29032
29032
|
array: Bh(),
|
|
29033
29033
|
state: Bh()
|
|
29034
|
-
}, h = O6(e.mode), p = O6(e.reValidateMode), m = e.criteriaMode === or.all, g = (j) => (
|
|
29035
|
-
clearTimeout(c), c = setTimeout(j,
|
|
29034
|
+
}, h = O6(e.mode), p = O6(e.reValidateMode), m = e.criteriaMode === or.all, g = (j) => (Z) => {
|
|
29035
|
+
clearTimeout(c), c = setTimeout(j, Z);
|
|
29036
29036
|
}, v = async (j) => {
|
|
29037
29037
|
if (!e.disabled && (d.isValid || j)) {
|
|
29038
|
-
const
|
|
29039
|
-
|
|
29040
|
-
isValid:
|
|
29038
|
+
const Z = e.resolver ? si((await M()).errors) : await L(i, !0);
|
|
29039
|
+
Z !== n.isValid && u.state.next({
|
|
29040
|
+
isValid: Z
|
|
29041
29041
|
});
|
|
29042
29042
|
}
|
|
29043
|
-
}, y = (j,
|
|
29043
|
+
}, y = (j, Z) => {
|
|
29044
29044
|
!e.disabled && (d.isValidating || d.validatingFields) && ((j || Array.from(a.mount)).forEach((ie) => {
|
|
29045
|
-
ie && (
|
|
29045
|
+
ie && (Z ? wt(n.validatingFields, ie, Z) : dn(n.validatingFields, ie));
|
|
29046
29046
|
}), u.state.next({
|
|
29047
29047
|
validatingFields: n.validatingFields,
|
|
29048
29048
|
isValidating: !si(n.validatingFields)
|
|
29049
29049
|
}));
|
|
29050
|
-
}, b = (j,
|
|
29050
|
+
}, b = (j, Z = [], ie, Se, Ae = !0, pe = !0) => {
|
|
29051
29051
|
if (Se && ie && !e.disabled) {
|
|
29052
29052
|
if (o.action = !0, pe && Array.isArray(Re(i, j))) {
|
|
29053
29053
|
const He = ie(Re(i, j), Se.argA, Se.argB);
|
|
@@ -29063,15 +29063,15 @@ function zJ(t = {}) {
|
|
|
29063
29063
|
}
|
|
29064
29064
|
d.dirtyFields && (n.dirtyFields = Kl(r, s)), u.state.next({
|
|
29065
29065
|
name: j,
|
|
29066
|
-
isDirty: T(j,
|
|
29066
|
+
isDirty: T(j, Z),
|
|
29067
29067
|
dirtyFields: n.dirtyFields,
|
|
29068
29068
|
errors: n.errors,
|
|
29069
29069
|
isValid: n.isValid
|
|
29070
29070
|
});
|
|
29071
29071
|
} else
|
|
29072
|
-
wt(s, j,
|
|
29073
|
-
}, k = (j,
|
|
29074
|
-
wt(n.errors, j,
|
|
29072
|
+
wt(s, j, Z);
|
|
29073
|
+
}, k = (j, Z) => {
|
|
29074
|
+
wt(n.errors, j, Z), u.state.next({
|
|
29075
29075
|
errors: n.errors
|
|
29076
29076
|
});
|
|
29077
29077
|
}, w = (j) => {
|
|
@@ -29079,13 +29079,13 @@ function zJ(t = {}) {
|
|
|
29079
29079
|
errors: n.errors,
|
|
29080
29080
|
isValid: !1
|
|
29081
29081
|
});
|
|
29082
|
-
}, _ = (j,
|
|
29082
|
+
}, _ = (j, Z, ie, Se) => {
|
|
29083
29083
|
const Ae = Re(i, j);
|
|
29084
29084
|
if (Ae) {
|
|
29085
29085
|
const pe = Re(s, j, en(ie) ? Re(r, j) : ie);
|
|
29086
|
-
en(pe) || Se && Se.defaultChecked ||
|
|
29086
|
+
en(pe) || Se && Se.defaultChecked || Z ? wt(s, j, Z ? pe : $h(Ae._f)) : q(j, pe), o.mount && v();
|
|
29087
29087
|
}
|
|
29088
|
-
}, C = (j,
|
|
29088
|
+
}, C = (j, Z, ie, Se, Ae) => {
|
|
29089
29089
|
let pe = !1, He = !1;
|
|
29090
29090
|
const Ze = {
|
|
29091
29091
|
name: j
|
|
@@ -29094,7 +29094,7 @@ function zJ(t = {}) {
|
|
|
29094
29094
|
const Ct = !!(Re(i, j) && Re(i, j)._f && Re(i, j)._f.disabled);
|
|
29095
29095
|
if (!ie || Se) {
|
|
29096
29096
|
d.isDirty && (He = n.isDirty, n.isDirty = Ze.isDirty = T(), pe = He !== Ze.isDirty);
|
|
29097
|
-
const _t = Ct || Ps(Re(r, j),
|
|
29097
|
+
const _t = Ct || Ps(Re(r, j), Z);
|
|
29098
29098
|
He = !!(!Ct && Re(n.dirtyFields, j)), _t || Ct ? dn(n.dirtyFields, j) : wt(n.dirtyFields, j, !0), Ze.dirtyFields = n.dirtyFields, pe = pe || d.dirtyFields && He !== !_t;
|
|
29099
29099
|
}
|
|
29100
29100
|
if (ie) {
|
|
@@ -29104,12 +29104,12 @@ function zJ(t = {}) {
|
|
|
29104
29104
|
pe && Ae && u.state.next(Ze);
|
|
29105
29105
|
}
|
|
29106
29106
|
return pe ? Ze : {};
|
|
29107
|
-
},
|
|
29108
|
-
const Ae = Re(n.errors, j), pe = d.isValid && zi(
|
|
29107
|
+
}, S = (j, Z, ie, Se) => {
|
|
29108
|
+
const Ae = Re(n.errors, j), pe = d.isValid && zi(Z) && n.isValid !== Z;
|
|
29109
29109
|
if (e.delayError && ie ? (l = g(() => k(j, ie)), l(e.delayError)) : (clearTimeout(c), l = null, ie ? wt(n.errors, j, ie) : dn(n.errors, j)), (ie ? !Ps(Ae, ie) : Ae) || !si(Se) || pe) {
|
|
29110
29110
|
const He = {
|
|
29111
29111
|
...Se,
|
|
29112
|
-
...pe && zi(
|
|
29112
|
+
...pe && zi(Z) ? { isValid: Z } : {},
|
|
29113
29113
|
errors: n.errors,
|
|
29114
29114
|
name: j
|
|
29115
29115
|
};
|
|
@@ -29120,19 +29120,19 @@ function zJ(t = {}) {
|
|
|
29120
29120
|
}
|
|
29121
29121
|
}, M = async (j) => {
|
|
29122
29122
|
y(j, !0);
|
|
29123
|
-
const
|
|
29124
|
-
return y(j),
|
|
29125
|
-
},
|
|
29126
|
-
const { errors:
|
|
29123
|
+
const Z = await e.resolver(s, e.context, RJ(j || a.mount, i, e.criteriaMode, e.shouldUseNativeValidation));
|
|
29124
|
+
return y(j), Z;
|
|
29125
|
+
}, E = async (j) => {
|
|
29126
|
+
const { errors: Z } = await M(j);
|
|
29127
29127
|
if (j)
|
|
29128
29128
|
for (const ie of j) {
|
|
29129
|
-
const Se = Re(
|
|
29129
|
+
const Se = Re(Z, ie);
|
|
29130
29130
|
Se ? wt(n.errors, ie, Se) : dn(n.errors, ie);
|
|
29131
29131
|
}
|
|
29132
29132
|
else
|
|
29133
|
-
n.errors =
|
|
29134
|
-
return
|
|
29135
|
-
}, L = async (j,
|
|
29133
|
+
n.errors = Z;
|
|
29134
|
+
return Z;
|
|
29135
|
+
}, L = async (j, Z, ie = {
|
|
29136
29136
|
valid: !0
|
|
29137
29137
|
}) => {
|
|
29138
29138
|
for (const Se in j) {
|
|
@@ -29142,41 +29142,41 @@ function zJ(t = {}) {
|
|
|
29142
29142
|
if (pe) {
|
|
29143
29143
|
const Ze = a.array.has(pe.name), Ct = Ae._f && PJ(Ae._f);
|
|
29144
29144
|
Ct && d.validatingFields && y([Se], !0);
|
|
29145
|
-
const _t = await B6(Ae, a.disabled, s, m, e.shouldUseNativeValidation && !
|
|
29146
|
-
if (Ct && d.validatingFields && y([Se]), _t[pe.name] && (ie.valid = !1,
|
|
29145
|
+
const _t = await B6(Ae, a.disabled, s, m, e.shouldUseNativeValidation && !Z, Ze);
|
|
29146
|
+
if (Ct && d.validatingFields && y([Se]), _t[pe.name] && (ie.valid = !1, Z))
|
|
29147
29147
|
break;
|
|
29148
|
-
!
|
|
29148
|
+
!Z && (Re(_t, pe.name) ? Ze ? OJ(n.errors, _t, pe.name) : wt(n.errors, pe.name, _t[pe.name]) : dn(n.errors, pe.name));
|
|
29149
29149
|
}
|
|
29150
|
-
!si(He) && await L(He,
|
|
29150
|
+
!si(He) && await L(He, Z, ie);
|
|
29151
29151
|
}
|
|
29152
29152
|
}
|
|
29153
29153
|
return ie.valid;
|
|
29154
29154
|
}, N = () => {
|
|
29155
29155
|
for (const j of a.unMount) {
|
|
29156
|
-
const
|
|
29157
|
-
|
|
29156
|
+
const Z = Re(i, j);
|
|
29157
|
+
Z && (Z._f.refs ? Z._f.refs.every((ie) => !Hh(ie)) : !Hh(Z._f.ref)) && X(j);
|
|
29158
29158
|
}
|
|
29159
29159
|
a.unMount = /* @__PURE__ */ new Set();
|
|
29160
|
-
}, T = (j,
|
|
29161
|
-
...o.mount ? s : en(
|
|
29162
|
-
}, ie,
|
|
29160
|
+
}, T = (j, Z) => !e.disabled && (j && Z && wt(s, j, Z), !Ps(me(), r)), I = (j, Z, ie) => db(j, a, {
|
|
29161
|
+
...o.mount ? s : en(Z) ? r : Nr(j) ? { [j]: Z } : Z
|
|
29162
|
+
}, ie, Z), U = (j) => _0(Re(o.mount ? s : r, j, e.shouldUnregister ? Re(r, j, []) : [])), q = (j, Z, ie = {}) => {
|
|
29163
29163
|
const Se = Re(i, j);
|
|
29164
|
-
let Ae =
|
|
29164
|
+
let Ae = Z;
|
|
29165
29165
|
if (Se) {
|
|
29166
29166
|
const pe = Se._f;
|
|
29167
|
-
pe && (!pe.disabled && wt(s, j, yb(
|
|
29167
|
+
pe && (!pe.disabled && wt(s, j, yb(Z, pe)), Ae = $1(pe.ref) && Zn(Z) ? "" : Z, mb(pe.ref) ? [...pe.ref.options].forEach((He) => He.selected = Ae.includes(He.value)) : pe.refs ? Hf(pe.ref) ? pe.refs.length > 1 ? pe.refs.forEach((He) => (!He.defaultChecked || !He.disabled) && (He.checked = Array.isArray(Ae) ? !!Ae.find((Ze) => Ze === He.value) : Ae === He.value)) : pe.refs[0] && (pe.refs[0].checked = !!Ae) : pe.refs.forEach((He) => He.checked = He.value === Ae) : h4(pe.ref) ? pe.ref.value = "" : (pe.ref.value = Ae, pe.ref.type || u.values.next({
|
|
29168
29168
|
name: j,
|
|
29169
29169
|
values: { ...s }
|
|
29170
29170
|
})));
|
|
29171
29171
|
}
|
|
29172
29172
|
(ie.shouldDirty || ie.shouldTouch) && C(j, Ae, ie.shouldTouch, ie.shouldDirty, !0), ie.shouldValidate && ke(j);
|
|
29173
|
-
},
|
|
29174
|
-
for (const Se in
|
|
29175
|
-
const Ae =
|
|
29176
|
-
(a.array.has(j) || nn(Ae) || He && !He._f) && !No(Ae) ?
|
|
29173
|
+
}, K = (j, Z, ie) => {
|
|
29174
|
+
for (const Se in Z) {
|
|
29175
|
+
const Ae = Z[Se], pe = `${j}.${Se}`, He = Re(i, pe);
|
|
29176
|
+
(a.array.has(j) || nn(Ae) || He && !He._f) && !No(Ae) ? K(pe, Ae, ie) : q(pe, Ae, ie);
|
|
29177
29177
|
}
|
|
29178
|
-
}, re = (j,
|
|
29179
|
-
const Se = Re(i, j), Ae = a.array.has(j), pe = ri(
|
|
29178
|
+
}, re = (j, Z, ie = {}) => {
|
|
29179
|
+
const Se = Re(i, j), Ae = a.array.has(j), pe = ri(Z);
|
|
29180
29180
|
wt(s, j, pe), Ae ? (u.array.next({
|
|
29181
29181
|
name: j,
|
|
29182
29182
|
values: { ...s }
|
|
@@ -29184,15 +29184,15 @@ function zJ(t = {}) {
|
|
|
29184
29184
|
name: j,
|
|
29185
29185
|
dirtyFields: Kl(r, s),
|
|
29186
29186
|
isDirty: T(j, pe)
|
|
29187
|
-
})) : Se && !Se._f && !Zn(pe) ?
|
|
29187
|
+
})) : Se && !Se._f && !Zn(pe) ? K(j, pe, ie) : q(j, pe, ie), F6(j, a) && u.state.next({ ...n }), u.values.next({
|
|
29188
29188
|
name: o.mount ? j : void 0,
|
|
29189
29189
|
values: { ...s }
|
|
29190
29190
|
});
|
|
29191
29191
|
}, xe = async (j) => {
|
|
29192
29192
|
o.mount = !0;
|
|
29193
|
-
const
|
|
29194
|
-
let ie =
|
|
29195
|
-
const Ae = Re(i, ie), pe = () =>
|
|
29193
|
+
const Z = j.target;
|
|
29194
|
+
let ie = Z.name, Se = !0;
|
|
29195
|
+
const Ae = Re(i, ie), pe = () => Z.type ? $h(Ae._f) : rb(j), He = (Ze) => {
|
|
29196
29196
|
Se = Number.isNaN(Ze) || No(Ze) && isNaN(Ze.getTime()) || Ps(Ze, Re(s, ie, Ze));
|
|
29197
29197
|
};
|
|
29198
29198
|
if (Ae) {
|
|
@@ -29214,16 +29214,16 @@ function zJ(t = {}) {
|
|
|
29214
29214
|
}
|
|
29215
29215
|
} else
|
|
29216
29216
|
y([ie], !0), Ze = (await B6(Ae, a.disabled, s, m, e.shouldUseNativeValidation))[ie], y([ie]), He(_t), Se && (Ze ? Ct = !1 : d.isValid && (Ct = await L(i, !0)));
|
|
29217
|
-
Se && (Ae._f.deps && ke(Ae._f.deps),
|
|
29217
|
+
Se && (Ae._f.deps && ke(Ae._f.deps), S(ie, Ct, Ze, nr));
|
|
29218
29218
|
}
|
|
29219
|
-
}, Te = (j,
|
|
29220
|
-
if (Re(n.errors,
|
|
29219
|
+
}, Te = (j, Z) => {
|
|
29220
|
+
if (Re(n.errors, Z) && j.focus)
|
|
29221
29221
|
return j.focus(), 1;
|
|
29222
|
-
}, ke = async (j,
|
|
29222
|
+
}, ke = async (j, Z = {}) => {
|
|
29223
29223
|
let ie, Se;
|
|
29224
29224
|
const Ae = uc(j);
|
|
29225
29225
|
if (e.resolver) {
|
|
29226
|
-
const pe = await
|
|
29226
|
+
const pe = await E(en(j) ? j : Ae);
|
|
29227
29227
|
ie = si(pe), Se = j ? !Ae.some((He) => Re(pe, He)) : ie;
|
|
29228
29228
|
} else j ? (Se = (await Promise.all(Ae.map(async (pe) => {
|
|
29229
29229
|
const He = Re(i, pe);
|
|
@@ -29233,77 +29233,77 @@ function zJ(t = {}) {
|
|
|
29233
29233
|
...!Nr(j) || d.isValid && ie !== n.isValid ? {} : { name: j },
|
|
29234
29234
|
...e.resolver || !j ? { isValid: ie } : {},
|
|
29235
29235
|
errors: n.errors
|
|
29236
|
-
}),
|
|
29236
|
+
}), Z.shouldFocus && !Se && hc(i, Te, j ? Ae : a.mount), Se;
|
|
29237
29237
|
}, me = (j) => {
|
|
29238
|
-
const
|
|
29238
|
+
const Z = {
|
|
29239
29239
|
...o.mount ? s : r
|
|
29240
29240
|
};
|
|
29241
|
-
return en(j) ?
|
|
29242
|
-
}, H = (j,
|
|
29243
|
-
invalid: !!Re((
|
|
29244
|
-
isDirty: !!Re((
|
|
29245
|
-
error: Re((
|
|
29241
|
+
return en(j) ? Z : Nr(j) ? Re(Z, j) : j.map((ie) => Re(Z, ie));
|
|
29242
|
+
}, H = (j, Z) => ({
|
|
29243
|
+
invalid: !!Re((Z || n).errors, j),
|
|
29244
|
+
isDirty: !!Re((Z || n).dirtyFields, j),
|
|
29245
|
+
error: Re((Z || n).errors, j),
|
|
29246
29246
|
isValidating: !!Re(n.validatingFields, j),
|
|
29247
|
-
isTouched: !!Re((
|
|
29248
|
-
}),
|
|
29249
|
-
j && uc(j).forEach((
|
|
29247
|
+
isTouched: !!Re((Z || n).touchedFields, j)
|
|
29248
|
+
}), G = (j) => {
|
|
29249
|
+
j && uc(j).forEach((Z) => dn(n.errors, Z)), u.state.next({
|
|
29250
29250
|
errors: j ? n.errors : {}
|
|
29251
29251
|
});
|
|
29252
|
-
}, W = (j,
|
|
29252
|
+
}, W = (j, Z, ie) => {
|
|
29253
29253
|
const Se = (Re(i, j, { _f: {} })._f || {}).ref, Ae = Re(n.errors, j) || {}, { ref: pe, message: He, type: Ze, ...Ct } = Ae;
|
|
29254
29254
|
wt(n.errors, j, {
|
|
29255
29255
|
...Ct,
|
|
29256
|
-
...
|
|
29256
|
+
...Z,
|
|
29257
29257
|
ref: Se
|
|
29258
29258
|
}), u.state.next({
|
|
29259
29259
|
name: j,
|
|
29260
29260
|
errors: n.errors,
|
|
29261
29261
|
isValid: !1
|
|
29262
29262
|
}), ie && ie.shouldFocus && Se && Se.focus && Se.focus();
|
|
29263
|
-
}, P = (j,
|
|
29264
|
-
next: (ie) => j(I(void 0,
|
|
29265
|
-
}) : I(j,
|
|
29263
|
+
}, P = (j, Z) => Mr(j) ? u.values.subscribe({
|
|
29264
|
+
next: (ie) => j(I(void 0, Z), ie)
|
|
29265
|
+
}) : I(j, Z, !0), X = (j, Z = {}) => {
|
|
29266
29266
|
for (const ie of j ? uc(j) : a.mount)
|
|
29267
|
-
a.mount.delete(ie), a.array.delete(ie),
|
|
29267
|
+
a.mount.delete(ie), a.array.delete(ie), Z.keepValue || (dn(i, ie), dn(s, ie)), !Z.keepError && dn(n.errors, ie), !Z.keepDirty && dn(n.dirtyFields, ie), !Z.keepTouched && dn(n.touchedFields, ie), !Z.keepIsValidating && dn(n.validatingFields, ie), !e.shouldUnregister && !Z.keepDefaultValue && dn(r, ie);
|
|
29268
29268
|
u.values.next({
|
|
29269
29269
|
values: { ...s }
|
|
29270
29270
|
}), u.state.next({
|
|
29271
29271
|
...n,
|
|
29272
|
-
...
|
|
29273
|
-
}), !
|
|
29274
|
-
}, Y = ({ disabled: j, name:
|
|
29275
|
-
(zi(j) && o.mount || j || a.disabled.has(
|
|
29276
|
-
}, ae = (j,
|
|
29272
|
+
...Z.keepDirty ? { isDirty: T() } : {}
|
|
29273
|
+
}), !Z.keepIsValid && v();
|
|
29274
|
+
}, Y = ({ disabled: j, name: Z, field: ie, fields: Se }) => {
|
|
29275
|
+
(zi(j) && o.mount || j || a.disabled.has(Z)) && (j ? a.disabled.add(Z) : a.disabled.delete(Z), C(Z, $h(ie ? ie._f : Re(Se, Z)._f), !1, !1, !0));
|
|
29276
|
+
}, ae = (j, Z = {}) => {
|
|
29277
29277
|
let ie = Re(i, j);
|
|
29278
|
-
const Se = zi(
|
|
29278
|
+
const Se = zi(Z.disabled) || zi(e.disabled);
|
|
29279
29279
|
return wt(i, j, {
|
|
29280
29280
|
...ie || {},
|
|
29281
29281
|
_f: {
|
|
29282
29282
|
...ie && ie._f ? ie._f : { ref: { name: j } },
|
|
29283
29283
|
name: j,
|
|
29284
29284
|
mount: !0,
|
|
29285
|
-
...
|
|
29285
|
+
...Z
|
|
29286
29286
|
}
|
|
29287
29287
|
}), a.mount.add(j), ie ? Y({
|
|
29288
29288
|
field: ie,
|
|
29289
|
-
disabled: zi(
|
|
29289
|
+
disabled: zi(Z.disabled) ? Z.disabled : e.disabled,
|
|
29290
29290
|
name: j
|
|
29291
|
-
}) : _(j, !0,
|
|
29292
|
-
...Se ? { disabled:
|
|
29291
|
+
}) : _(j, !0, Z.value), {
|
|
29292
|
+
...Se ? { disabled: Z.disabled || e.disabled } : {},
|
|
29293
29293
|
...e.progressive ? {
|
|
29294
|
-
required: !!
|
|
29295
|
-
min: Zl(
|
|
29296
|
-
max: Zl(
|
|
29297
|
-
minLength: Zl(
|
|
29298
|
-
maxLength: Zl(
|
|
29299
|
-
pattern: Zl(
|
|
29294
|
+
required: !!Z.required,
|
|
29295
|
+
min: Zl(Z.min),
|
|
29296
|
+
max: Zl(Z.max),
|
|
29297
|
+
minLength: Zl(Z.minLength),
|
|
29298
|
+
maxLength: Zl(Z.maxLength),
|
|
29299
|
+
pattern: Zl(Z.pattern)
|
|
29300
29300
|
} : {},
|
|
29301
29301
|
name: j,
|
|
29302
29302
|
onChange: xe,
|
|
29303
29303
|
onBlur: xe,
|
|
29304
29304
|
ref: (Ae) => {
|
|
29305
29305
|
if (Ae) {
|
|
29306
|
-
ae(j,
|
|
29306
|
+
ae(j, Z), ie = Re(i, j);
|
|
29307
29307
|
const pe = en(Ae.value) && Ae.querySelectorAll && Ae.querySelectorAll("input,select,textarea")[0] || Ae, He = IJ(pe), Ze = ie._f.refs || [];
|
|
29308
29308
|
if (He ? Ze.find((Ct) => Ct === pe) : pe === ie._f.ref)
|
|
29309
29309
|
return;
|
|
@@ -29321,17 +29321,17 @@ function zJ(t = {}) {
|
|
|
29321
29321
|
}
|
|
29322
29322
|
}), _(j, !1, void 0, pe);
|
|
29323
29323
|
} else
|
|
29324
|
-
ie = Re(i, j, {}), ie._f && (ie._f.mount = !1), (e.shouldUnregister ||
|
|
29324
|
+
ie = Re(i, j, {}), ie._f && (ie._f.mount = !1), (e.shouldUnregister || Z.shouldUnregister) && !(sb(a.array, j) && o.action) && a.unMount.add(j);
|
|
29325
29325
|
}
|
|
29326
29326
|
};
|
|
29327
29327
|
}, he = () => e.shouldFocusError && hc(i, Te, a.mount), le = (j) => {
|
|
29328
|
-
zi(j) && (u.state.next({ disabled: j }), hc(i, (
|
|
29328
|
+
zi(j) && (u.state.next({ disabled: j }), hc(i, (Z, ie) => {
|
|
29329
29329
|
const Se = Re(i, ie);
|
|
29330
|
-
Se && (
|
|
29330
|
+
Se && (Z.disabled = Se._f.disabled || j, Array.isArray(Se._f.refs) && Se._f.refs.forEach((Ae) => {
|
|
29331
29331
|
Ae.disabled = Se._f.disabled || j;
|
|
29332
29332
|
}));
|
|
29333
29333
|
}, 0, !1));
|
|
29334
|
-
}, Ie = (j,
|
|
29334
|
+
}, Ie = (j, Z) => async (ie) => {
|
|
29335
29335
|
let Se;
|
|
29336
29336
|
ie && (ie.preventDefault && ie.preventDefault(), ie.persist && ie.persist());
|
|
29337
29337
|
let Ae = ri(s);
|
|
@@ -29355,7 +29355,7 @@ function zJ(t = {}) {
|
|
|
29355
29355
|
Se = pe;
|
|
29356
29356
|
}
|
|
29357
29357
|
} else
|
|
29358
|
-
|
|
29358
|
+
Z && await Z({ ...n.errors }, ie), he(), setTimeout(he);
|
|
29359
29359
|
if (u.state.next({
|
|
29360
29360
|
isSubmitted: !0,
|
|
29361
29361
|
isSubmitting: !1,
|
|
@@ -29364,12 +29364,12 @@ function zJ(t = {}) {
|
|
|
29364
29364
|
errors: n.errors
|
|
29365
29365
|
}), Se)
|
|
29366
29366
|
throw Se;
|
|
29367
|
-
}, je = (j,
|
|
29368
|
-
Re(i, j) && (en(
|
|
29369
|
-
}, tt = (j,
|
|
29367
|
+
}, je = (j, Z = {}) => {
|
|
29368
|
+
Re(i, j) && (en(Z.defaultValue) ? re(j, ri(Re(r, j))) : (re(j, Z.defaultValue), wt(r, j, ri(Z.defaultValue))), Z.keepTouched || dn(n.touchedFields, j), Z.keepDirty || (dn(n.dirtyFields, j), n.isDirty = Z.defaultValue ? T(j, ri(Re(r, j))) : T()), Z.keepError || (dn(n.errors, j), d.isValid && v()), u.state.next({ ...n }));
|
|
29369
|
+
}, tt = (j, Z = {}) => {
|
|
29370
29370
|
const ie = j ? ri(j) : r, Se = ri(ie), Ae = si(j), pe = Ae ? r : Se;
|
|
29371
|
-
if (
|
|
29372
|
-
if (
|
|
29371
|
+
if (Z.keepDefaultValues || (r = ie), !Z.keepValues) {
|
|
29372
|
+
if (Z.keepDirtyValues) {
|
|
29373
29373
|
const He = /* @__PURE__ */ new Set([
|
|
29374
29374
|
...a.mount,
|
|
29375
29375
|
...Object.keys(Kl(r, s))
|
|
@@ -29393,31 +29393,31 @@ function zJ(t = {}) {
|
|
|
29393
29393
|
}
|
|
29394
29394
|
i = {};
|
|
29395
29395
|
}
|
|
29396
|
-
s = e.shouldUnregister ?
|
|
29396
|
+
s = e.shouldUnregister ? Z.keepDefaultValues ? ri(r) : {} : ri(pe), u.array.next({
|
|
29397
29397
|
values: { ...pe }
|
|
29398
29398
|
}), u.values.next({
|
|
29399
29399
|
values: { ...pe }
|
|
29400
29400
|
});
|
|
29401
29401
|
}
|
|
29402
29402
|
a = {
|
|
29403
|
-
mount:
|
|
29403
|
+
mount: Z.keepDirtyValues ? a.mount : /* @__PURE__ */ new Set(),
|
|
29404
29404
|
unMount: /* @__PURE__ */ new Set(),
|
|
29405
29405
|
array: /* @__PURE__ */ new Set(),
|
|
29406
29406
|
disabled: /* @__PURE__ */ new Set(),
|
|
29407
29407
|
watch: /* @__PURE__ */ new Set(),
|
|
29408
29408
|
watchAll: !1,
|
|
29409
29409
|
focus: ""
|
|
29410
|
-
}, o.mount = !d.isValid || !!
|
|
29411
|
-
submitCount:
|
|
29412
|
-
isDirty: Ae ? !1 :
|
|
29413
|
-
isSubmitted:
|
|
29414
|
-
dirtyFields: Ae ? {} :
|
|
29415
|
-
touchedFields:
|
|
29416
|
-
errors:
|
|
29417
|
-
isSubmitSuccessful:
|
|
29410
|
+
}, o.mount = !d.isValid || !!Z.keepIsValid || !!Z.keepDirtyValues, o.watch = !!e.shouldUnregister, u.state.next({
|
|
29411
|
+
submitCount: Z.keepSubmitCount ? n.submitCount : 0,
|
|
29412
|
+
isDirty: Ae ? !1 : Z.keepDirty ? n.isDirty : !!(Z.keepDefaultValues && !Ps(j, r)),
|
|
29413
|
+
isSubmitted: Z.keepIsSubmitted ? n.isSubmitted : !1,
|
|
29414
|
+
dirtyFields: Ae ? {} : Z.keepDirtyValues ? Z.keepDefaultValues && s ? Kl(r, s) : n.dirtyFields : Z.keepDefaultValues && j ? Kl(r, j) : Z.keepDirty ? n.dirtyFields : {},
|
|
29415
|
+
touchedFields: Z.keepTouched ? n.touchedFields : {},
|
|
29416
|
+
errors: Z.keepErrors ? n.errors : {},
|
|
29417
|
+
isSubmitSuccessful: Z.keepIsSubmitSuccessful ? n.isSubmitSuccessful : !1,
|
|
29418
29418
|
isSubmitting: !1
|
|
29419
29419
|
});
|
|
29420
|
-
}, Be = (j,
|
|
29420
|
+
}, Be = (j, Z) => tt(Mr(j) ? j(s) : j, Z);
|
|
29421
29421
|
return {
|
|
29422
29422
|
control: {
|
|
29423
29423
|
register: ae,
|
|
@@ -29494,14 +29494,14 @@ function zJ(t = {}) {
|
|
|
29494
29494
|
getValues: me,
|
|
29495
29495
|
reset: Be,
|
|
29496
29496
|
resetField: je,
|
|
29497
|
-
clearErrors:
|
|
29497
|
+
clearErrors: G,
|
|
29498
29498
|
unregister: X,
|
|
29499
29499
|
setError: W,
|
|
29500
|
-
setFocus: (j,
|
|
29500
|
+
setFocus: (j, Z = {}) => {
|
|
29501
29501
|
const ie = Re(i, j), Se = ie && ie._f;
|
|
29502
29502
|
if (Se) {
|
|
29503
29503
|
const Ae = Se.refs ? Se.refs[0] : Se.ref;
|
|
29504
|
-
Ae.focus && (Ae.focus(),
|
|
29504
|
+
Ae.focus && (Ae.focus(), Z.shouldSelect && Mr(Ae.select) && Ae.select());
|
|
29505
29505
|
}
|
|
29506
29506
|
},
|
|
29507
29507
|
getFieldState: H
|
|
@@ -34748,8 +34748,8 @@ function hv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
|
|
|
34748
34748
|
compact: !0,
|
|
34749
34749
|
size: "sm",
|
|
34750
34750
|
variant: "ghost",
|
|
34751
|
-
onClick: (
|
|
34752
|
-
|
|
34751
|
+
onClick: (S) => {
|
|
34752
|
+
S.stopPropagation(), o?.(t.id);
|
|
34753
34753
|
},
|
|
34754
34754
|
label: p.actions.toggle,
|
|
34755
34755
|
hideLabel: !0,
|
|
@@ -34787,8 +34787,8 @@ function hv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
|
|
|
34787
34787
|
className: "flex flex-shrink-0 items-center justify-center",
|
|
34788
34788
|
children: f("div", {
|
|
34789
34789
|
className: "flex flex-shrink-0 cursor-grab items-center justify-center text-f1-icon active:cursor-grabbing",
|
|
34790
|
-
onPointerDown: (
|
|
34791
|
-
|
|
34790
|
+
onPointerDown: (S) => {
|
|
34791
|
+
S.preventDefault(), S.stopPropagation(), a?.start(S);
|
|
34792
34792
|
},
|
|
34793
34793
|
"aria-label": "Drag to reorder",
|
|
34794
34794
|
children: f(Ve, {
|
|
@@ -34842,7 +34842,7 @@ function hv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
|
|
|
34842
34842
|
duration: 0.15,
|
|
34843
34843
|
ease: [0.25, 0.1, 0.25, 1]
|
|
34844
34844
|
},
|
|
34845
|
-
onClick: (
|
|
34845
|
+
onClick: (S) => S.stopPropagation(),
|
|
34846
34846
|
className: "relative flex h-[24px] w-[24px] flex-shrink-0 items-center justify-center",
|
|
34847
34847
|
children: f(ut, {
|
|
34848
34848
|
mode: "wait",
|
|
@@ -35075,26 +35075,26 @@ function Z1(t, e, n, i, r, s, o, a, l) {
|
|
|
35075
35075
|
}, t.id);
|
|
35076
35076
|
}
|
|
35077
35077
|
function WY({ title: t, items: e, className: n, activeItem: i, collapsible: r = !1, sortable: s = !1, showSearchBox: o = !1, searchPlaceholder: a, onReorder: l, hideChildrenCounter: c = !1 }) {
|
|
35078
|
-
const d = Ge(), [u, h] = J(""), p = (
|
|
35079
|
-
h(
|
|
35078
|
+
const d = Ge(), [u, h] = J(""), p = (E) => {
|
|
35079
|
+
h(E);
|
|
35080
35080
|
}, m = we(() => mv(e, u), [e, u]), [g, v] = J(jY(e, i)), [y, b] = J(e);
|
|
35081
35081
|
Le(() => {
|
|
35082
35082
|
b(e);
|
|
35083
35083
|
}, [e]);
|
|
35084
|
-
const k = _e(null), w = Qe((
|
|
35084
|
+
const k = _e(null), w = Qe((E) => E.map((L) => ({
|
|
35085
35085
|
id: L.id,
|
|
35086
35086
|
...L.children && {
|
|
35087
35087
|
children: w(L.children)
|
|
35088
35088
|
}
|
|
35089
|
-
})), []), _ = Qe((
|
|
35089
|
+
})), []), _ = Qe((E) => {
|
|
35090
35090
|
v((L) => {
|
|
35091
35091
|
const N = new Set(L);
|
|
35092
|
-
return N.has(
|
|
35092
|
+
return N.has(E) ? N.delete(E) : N.add(E), N;
|
|
35093
35093
|
});
|
|
35094
|
-
}, [v]), C = Qe((
|
|
35095
|
-
b(
|
|
35096
|
-
}, [l, w]),
|
|
35097
|
-
const N = (I) => I.map((U) => U.id ===
|
|
35094
|
+
}, [v]), C = Qe((E) => {
|
|
35095
|
+
b(E), l && l(w(E));
|
|
35096
|
+
}, [l, w]), S = Qe((E, L) => {
|
|
35097
|
+
const N = (I) => I.map((U) => U.id === E ? L : U.children ? {
|
|
35098
35098
|
...U,
|
|
35099
35099
|
children: N(U.children)
|
|
35100
35100
|
} : U), T = N(y);
|
|
@@ -35131,8 +35131,8 @@ function WY({ title: t, items: e, className: n, activeItem: i, collapsible: r =
|
|
|
35131
35131
|
axis: "y",
|
|
35132
35132
|
className: "flex flex-col gap-0.5",
|
|
35133
35133
|
dragConstraints: k,
|
|
35134
|
-
children: M.map((
|
|
35135
|
-
}) : m.map((
|
|
35134
|
+
children: M.map((E) => Z1(E, s, 0, i, r, c, g, _, S))
|
|
35135
|
+
}) : m.map((E) => Z1(E, s, 0, i, r, c, g, _, S))
|
|
35136
35136
|
})
|
|
35137
35137
|
})]
|
|
35138
35138
|
});
|
|
@@ -35486,13 +35486,13 @@ const QY = ({ item: t, active: e }) => x("div", {
|
|
|
35486
35486
|
icon: po,
|
|
35487
35487
|
critical: !0
|
|
35488
35488
|
}), T;
|
|
35489
|
-
}, [_, k, w, c, o, r, i, t]),
|
|
35489
|
+
}, [_, k, w, c, o, r, i, t]), S = () => {
|
|
35490
35490
|
u(!0), b(!1), p(t.href || null), v.current = !0;
|
|
35491
35491
|
}, M = () => {
|
|
35492
35492
|
u(!1), p(null), a(), setTimeout(() => {
|
|
35493
35493
|
v.current = !1;
|
|
35494
35494
|
}, 0);
|
|
35495
|
-
},
|
|
35495
|
+
}, E = d && h === t.href, L = we(() => D("group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing", l && "touch-none", g ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary", y && "bg-f1-background-secondary", E && "bg-f1-background-secondary"), [g, y, E, l]), N = we(() => x(Je, {
|
|
35496
35496
|
children: [f("div", {
|
|
35497
35497
|
className: "flex w-full items-center justify-between px-1.5 py-1.5",
|
|
35498
35498
|
children: f(iQ, {
|
|
@@ -35501,7 +35501,7 @@ const QY = ({ item: t, active: e }) => x("div", {
|
|
|
35501
35501
|
onClick: t.onClick,
|
|
35502
35502
|
href: t.href,
|
|
35503
35503
|
exactMatch: t.exactMatch,
|
|
35504
|
-
className: D("flex w-[calc(100%-24px-2px)] items-center gap-1.5 no-underline",
|
|
35504
|
+
className: D("flex w-[calc(100%-24px-2px)] items-center gap-1.5 no-underline", E && "pointer-events-none"),
|
|
35505
35505
|
draggable: !1,
|
|
35506
35506
|
children: [t.type === "icon" ? f(Ve, {
|
|
35507
35507
|
icon: t.icon,
|
|
@@ -35520,7 +35520,7 @@ const QY = ({ item: t, active: e }) => x("div", {
|
|
|
35520
35520
|
})
|
|
35521
35521
|
})
|
|
35522
35522
|
}), f("div", {
|
|
35523
|
-
className: D("absolute inset-y-1 right-1 z-10 flex h-6 w-6 items-center justify-center rounded-sm opacity-0 transition-opacity duration-100 hover:bg-f1-background-secondary group-hover:opacity-100", y && "bg-f1-background-secondary opacity-100",
|
|
35523
|
+
className: D("absolute inset-y-1 right-1 z-10 flex h-6 w-6 items-center justify-center rounded-sm opacity-0 transition-opacity duration-100 hover:bg-f1-background-secondary group-hover:opacity-100", y && "bg-f1-background-secondary opacity-100", E && "opacity-100"),
|
|
35524
35524
|
children: f(hn, {
|
|
35525
35525
|
open: y,
|
|
35526
35526
|
onOpenChange: b,
|
|
@@ -35535,13 +35535,13 @@ const QY = ({ item: t, active: e }) => x("div", {
|
|
|
35535
35535
|
})
|
|
35536
35536
|
})
|
|
35537
35537
|
})]
|
|
35538
|
-
}), [t, g, y,
|
|
35538
|
+
}), [t, g, y, E, C, e]);
|
|
35539
35539
|
return l ? f(ca, {
|
|
35540
35540
|
value: t,
|
|
35541
35541
|
drag: "y",
|
|
35542
35542
|
dragConstraints: n,
|
|
35543
35543
|
dragElastic: 0.1,
|
|
35544
|
-
onDragStart:
|
|
35544
|
+
onDragStart: S,
|
|
35545
35545
|
onDragEnd: M,
|
|
35546
35546
|
className: L,
|
|
35547
35547
|
whileDrag: {
|
|
@@ -35714,15 +35714,15 @@ function nQ({ nonSortableItems: t, sortableItems: e, setSortableItems: n, contai
|
|
|
35714
35714
|
const k = (U) => {
|
|
35715
35715
|
y(U);
|
|
35716
35716
|
}, w = Qe((U) => {
|
|
35717
|
-
const
|
|
35718
|
-
y(
|
|
35719
|
-
}, [v, a]), _ = Qe((U,
|
|
35720
|
-
if (
|
|
35721
|
-
const
|
|
35722
|
-
|
|
35723
|
-
}, [v, a]), [C,
|
|
35717
|
+
const q = v.filter((K) => K.href !== U.href);
|
|
35718
|
+
y(q), a?.(q);
|
|
35719
|
+
}, [v, a]), _ = Qe((U, q) => {
|
|
35720
|
+
if (q < 0 || q >= v.length) return;
|
|
35721
|
+
const K = [...v], [re] = K.splice(U, 1);
|
|
35722
|
+
K.splice(q, 0, re), y(K), a?.(K);
|
|
35723
|
+
}, [v, a]), [C, S] = J(!1), M = _e(null);
|
|
35724
35724
|
Le(() => {
|
|
35725
|
-
e.length > 0 && !C && (n([...e]),
|
|
35725
|
+
e.length > 0 && !C && (n([...e]), S(!0));
|
|
35726
35726
|
}, [e, n, C]), Le(() => {
|
|
35727
35727
|
const U = () => {
|
|
35728
35728
|
M.current !== null && window.clearTimeout(M.current), M.current = window.setTimeout(() => {
|
|
@@ -35733,13 +35733,13 @@ function nQ({ nonSortableItems: t, sortableItems: e, setSortableItems: n, contai
|
|
|
35733
35733
|
window.removeEventListener("resize", U), M.current !== null && window.clearTimeout(M.current);
|
|
35734
35734
|
};
|
|
35735
35735
|
}, [i, e, l]);
|
|
35736
|
-
const
|
|
35736
|
+
const E = "flex flex-col gap-0.5", L = we(() => v.reduce((U, q, K) => (q.label in U || (U[q.label] = []), U[q.label].push(K), U), {}), [v]), N = we(() => b && v.map((U, q) => f(tQ, {
|
|
35737
35737
|
isSortable: !c,
|
|
35738
35738
|
tooltip: (L[U.label] ?? []).length > 1 ? U.tooltip : void 0,
|
|
35739
35739
|
item: U,
|
|
35740
35740
|
dragConstraints: g,
|
|
35741
35741
|
onRemove: w,
|
|
35742
|
-
index:
|
|
35742
|
+
index: q,
|
|
35743
35743
|
total: v.length,
|
|
35744
35744
|
onMove: _,
|
|
35745
35745
|
onReorderFinish: () => {
|
|
@@ -35757,10 +35757,10 @@ function nQ({ nonSortableItems: t, sortableItems: e, setSortableItems: n, contai
|
|
|
35757
35757
|
className: D("relative", u && "cursor-grabbing [&_*]:cursor-grabbing"),
|
|
35758
35758
|
children: [h && f("div", {
|
|
35759
35759
|
className: "flex w-full flex-col gap-3 bg-transparent px-3",
|
|
35760
|
-
children: t.filter((U) => U.isRoot).map((U,
|
|
35760
|
+
children: t.filter((U) => U.isRoot).map((U, q) => f(Gh, {
|
|
35761
35761
|
category: U,
|
|
35762
35762
|
onCollapse: r
|
|
35763
|
-
}, `fixed-${
|
|
35763
|
+
}, `fixed-${q}`))
|
|
35764
35764
|
}), b && f("div", {
|
|
35765
35765
|
className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3",
|
|
35766
35766
|
children: f(hC, {
|
|
@@ -35768,23 +35768,23 @@ function nQ({ nonSortableItems: t, sortableItems: e, setSortableItems: n, contai
|
|
|
35768
35768
|
children: f("div", {
|
|
35769
35769
|
ref: g,
|
|
35770
35770
|
children: c ? f("div", {
|
|
35771
|
-
className:
|
|
35771
|
+
className: E,
|
|
35772
35772
|
children: N
|
|
35773
35773
|
}) : f(no, {
|
|
35774
35774
|
axis: "y",
|
|
35775
35775
|
values: v,
|
|
35776
35776
|
onReorder: k,
|
|
35777
|
-
className:
|
|
35777
|
+
className: E,
|
|
35778
35778
|
children: N
|
|
35779
35779
|
})
|
|
35780
35780
|
})
|
|
35781
35781
|
})
|
|
35782
35782
|
}), p && f("div", {
|
|
35783
35783
|
className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3",
|
|
35784
|
-
children: t.filter((U) => !U.isRoot).map((U,
|
|
35784
|
+
children: t.filter((U) => !U.isRoot).map((U, q) => f(Gh, {
|
|
35785
35785
|
category: U,
|
|
35786
35786
|
onCollapse: r
|
|
35787
|
-
}, `fixed-${
|
|
35787
|
+
}, `fixed-${q}`))
|
|
35788
35788
|
}), m && f("div", {
|
|
35789
35789
|
className: D("mt-3 flex w-full flex-col gap-3 bg-transparent px-3 [&_li]:list-none"),
|
|
35790
35790
|
ref: i,
|
|
@@ -36701,10 +36701,10 @@ const w4 = ({ paginationInfo: t, setPage: e, className: n }) => {
|
|
|
36701
36701
|
return f(kC, {
|
|
36702
36702
|
tmpFullWidth: p,
|
|
36703
36703
|
children: e.map((y, b) => {
|
|
36704
|
-
const k = t.selectable ? t.selectable(y) : void 0, w = t.itemUrl ? t.itemUrl(y) : void 0, _ = t.itemOnClick ? t.itemOnClick(y) : void 0, C = (t.itemActions ? t.itemActions(y) || [] : []).filter((T) => T.type !== "separator"),
|
|
36704
|
+
const k = t.selectable ? t.selectable(y) : void 0, w = t.itemUrl ? t.itemUrl(y) : void 0, _ = t.itemOnClick ? t.itemOnClick(y) : void 0, C = (t.itemActions ? t.itemActions(y) || [] : []).filter((T) => T.type !== "separator"), S = (C.filter((T) => T.type === "other" || !T.type) || []).map((T) => ({
|
|
36705
36705
|
...T,
|
|
36706
36706
|
type: "item"
|
|
36707
|
-
})), M = C.find((T) => T.type === "primary") || void 0,
|
|
36707
|
+
})), M = C.find((T) => T.type === "primary") || void 0, E = C.filter((T) => T.type === "secondary") || [], L = !!t.selectable && k !== void 0, N = m(y, r);
|
|
36708
36708
|
return f(ye.div, {
|
|
36709
36709
|
layout: !0,
|
|
36710
36710
|
initial: "hidden",
|
|
@@ -36726,9 +36726,9 @@ const w4 = ({ paginationInfo: t, setPage: e, className: n }) => {
|
|
|
36726
36726
|
blurredBackground: u,
|
|
36727
36727
|
selected: L && n.has(k),
|
|
36728
36728
|
onSelect: (T) => i(y, T),
|
|
36729
|
-
secondaryActions:
|
|
36729
|
+
secondaryActions: E,
|
|
36730
36730
|
primaryAction: M,
|
|
36731
|
-
otherActions:
|
|
36731
|
+
otherActions: S,
|
|
36732
36732
|
onClick: _,
|
|
36733
36733
|
link: w,
|
|
36734
36734
|
compact: h || !1,
|
|
@@ -36772,7 +36772,7 @@ const w4 = ({ paginationInfo: t, setPage: e, className: n }) => {
|
|
|
36772
36772
|
onSelectItems: d,
|
|
36773
36773
|
selectionMode: "multi",
|
|
36774
36774
|
selectedState: c.defaultSelectedItems
|
|
36775
|
-
}),
|
|
36775
|
+
}), S = c.grouping?.collapsible, M = c.grouping?.defaultOpenGroups, { openGroups: E, setGroupOpen: L } = Zm(g?.type === "grouped" ? g.groups : [], M);
|
|
36776
36776
|
return x("div", {
|
|
36777
36777
|
className: "flex h-full min-h-0 flex-1 flex-col gap-4",
|
|
36778
36778
|
children: [f("div", {
|
|
@@ -36807,14 +36807,14 @@ const w4 = ({ paginationInfo: t, setPage: e, className: n }) => {
|
|
|
36807
36807
|
label: N.label,
|
|
36808
36808
|
itemCount: N.itemCount,
|
|
36809
36809
|
onOpenChange: (T) => L(N.key, T),
|
|
36810
|
-
open:
|
|
36810
|
+
open: E[N.key],
|
|
36811
36811
|
selectable: !!c.selectable,
|
|
36812
|
-
showOpenChange:
|
|
36812
|
+
showOpenChange: S,
|
|
36813
36813
|
select: w[N.key]?.checked ? !0 : w[N.key]?.indeterminate ? "indeterminate" : !1,
|
|
36814
36814
|
onSelectChange: (T) => C(N, T),
|
|
36815
36815
|
className: "px-4 pb-2 pt-4"
|
|
36816
36816
|
}), f(ut, {
|
|
36817
|
-
children: (!
|
|
36817
|
+
children: (!S || E[N.key]) && f(Cv, {
|
|
36818
36818
|
source: c,
|
|
36819
36819
|
items: N.records,
|
|
36820
36820
|
selectedItems: k,
|
|
@@ -37357,7 +37357,7 @@ function YQ(t) {
|
|
|
37357
37357
|
};
|
|
37358
37358
|
}
|
|
37359
37359
|
function QQ({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
37360
|
-
const r = _e(null), s = _e(null), o = _e(null), [a, l] = J(!1), [c, d] = J(null), u = !!(t && e), h = _e(null), p = _e(null), m = _e(null), g = _e(0), v = _e(null), [y, b] = J(!1), [k, w] = J(null), [_, C] = J(null), [
|
|
37360
|
+
const r = _e(null), s = _e(null), o = _e(null), [a, l] = J(!1), [c, d] = J(null), u = !!(t && e), h = _e(null), p = _e(null), m = _e(null), g = _e(0), v = _e(null), [y, b] = J(!1), [k, w] = J(null), [_, C] = J(null), [S, M] = J(!1), [E, L] = J(-1);
|
|
37361
37361
|
return iM(u ? {
|
|
37362
37362
|
ref: r,
|
|
37363
37363
|
id: t,
|
|
@@ -37366,12 +37366,12 @@ function QQ({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
37366
37366
|
const N = () => {
|
|
37367
37367
|
const T = performance.now(), I = v.current ?? T, U = (T - I) / 1e3;
|
|
37368
37368
|
v.current = T;
|
|
37369
|
-
const
|
|
37369
|
+
const q = p.current;
|
|
37370
37370
|
if (!y || g.current === 0) {
|
|
37371
37371
|
m.current != null && (window.cancelAnimationFrame(m.current), m.current = null), v.current = null;
|
|
37372
37372
|
return;
|
|
37373
37373
|
}
|
|
37374
|
-
|
|
37374
|
+
q && (q.scrollTop += g.current * U), m.current = window.requestAnimationFrame(N);
|
|
37375
37375
|
};
|
|
37376
37376
|
return m.current == null && y && g.current !== 0 && (v.current = null, m.current = window.requestAnimationFrame(N)), () => {
|
|
37377
37377
|
m.current != null && (window.cancelAnimationFrame(m.current), m.current = null), v.current = null, g.current = 0;
|
|
@@ -37382,8 +37382,8 @@ function QQ({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
37382
37382
|
m.current == null && g.current !== 0 && (v.current = null, m.current = window.requestAnimationFrame(() => {
|
|
37383
37383
|
const I = performance.now();
|
|
37384
37384
|
v.current = I, m.current = window.requestAnimationFrame(function U() {
|
|
37385
|
-
const
|
|
37386
|
-
v.current =
|
|
37385
|
+
const q = v.current ?? performance.now(), K = performance.now(), re = (K - q) / 1e3;
|
|
37386
|
+
v.current = K;
|
|
37387
37387
|
const xe = p.current;
|
|
37388
37388
|
if (!y || g.current === 0) {
|
|
37389
37389
|
m.current != null && (window.cancelAnimationFrame(m.current), m.current = null);
|
|
@@ -37395,18 +37395,18 @@ function QQ({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
37395
37395
|
}, T = (I) => KQ(t, I);
|
|
37396
37396
|
return rM({
|
|
37397
37397
|
onDropTargetChange: ({ location: I, source: U }) => {
|
|
37398
|
-
const
|
|
37398
|
+
const q = I.current.dropTargets.some((me) => {
|
|
37399
37399
|
const H = me.data;
|
|
37400
37400
|
return H.type === "list-droppable" && H.id === t;
|
|
37401
37401
|
});
|
|
37402
|
-
l(
|
|
37403
|
-
const
|
|
37404
|
-
if (
|
|
37402
|
+
l(q);
|
|
37403
|
+
const K = String(U.data.id), xe = String(U.data.data?.laneId ?? "") || String(I.initial.dropTargets.find((me) => me.data.type === "list-droppable")?.data?.id ?? ""), Te = String(xe) === String(t), ke = i.items.findIndex((me, H) => String(i.getKey(me, H)) === K);
|
|
37404
|
+
if (q && Te ? L(ke) : (!q || !Te) && L(-1), q && y && i.items.length === 0 ? (M(!0), w(null), C(null)) : q && y && i.items.length > 0 && M(!1), q && y) {
|
|
37405
37405
|
const me = p.current || r.current;
|
|
37406
37406
|
if (me) {
|
|
37407
|
-
const H = me.getBoundingClientRect(),
|
|
37408
|
-
if (typeof
|
|
37409
|
-
const P = H.top + H.height / 2, X =
|
|
37407
|
+
const H = me.getBoundingClientRect(), G = I.current.input?.clientY, W = I.current.input?.clientX;
|
|
37408
|
+
if (typeof G == "number" && typeof W == "number") {
|
|
37409
|
+
const P = H.top + H.height / 2, X = G - P, Y = 24, ae = 300, he = H.height / 2;
|
|
37410
37410
|
let le = 0;
|
|
37411
37411
|
if (Math.abs(X) > Y) {
|
|
37412
37412
|
const tt = Math.min(Math.abs(X) - Y, he) / he;
|
|
@@ -37421,8 +37421,8 @@ function QQ({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
37421
37421
|
if (tt.length > 0) {
|
|
37422
37422
|
let Be = -1, mt = Number.POSITIVE_INFINITY, nt = "top";
|
|
37423
37423
|
for (const j of tt) {
|
|
37424
|
-
const
|
|
37425
|
-
pe < mt && (mt = pe, Be = ie, nt =
|
|
37424
|
+
const Z = j.getAttribute("data-index"), ie = Z ? Number(Z) : -1, Se = j.getBoundingClientRect(), Ae = Se.top + Se.height / 2, pe = Math.abs(G - Ae);
|
|
37425
|
+
pe < mt && (mt = pe, Be = ie, nt = G < Ae ? "top" : "bottom");
|
|
37426
37426
|
}
|
|
37427
37427
|
Te && ke >= 0 && (Be === ke && nt === "top" || Be === ke && nt === "bottom" || Be === ke - 1 && nt === "bottom" || Be === ke + 1 && nt === "top") ? (w(null), C(null)) : (w(Be >= 0 ? Be : null), C(Be >= 0 ? nt : null));
|
|
37428
37428
|
}
|
|
@@ -37431,25 +37431,25 @@ function QQ({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
37431
37431
|
}
|
|
37432
37432
|
}
|
|
37433
37433
|
} else
|
|
37434
|
-
g.current = 0,
|
|
37434
|
+
g.current = 0, q || (w(null), C(null), M(!1), L(-1));
|
|
37435
37435
|
},
|
|
37436
37436
|
onDrop: async ({ location: I, source: U }) => {
|
|
37437
37437
|
l(!1), M(!1);
|
|
37438
|
-
const
|
|
37438
|
+
const q = String(U.data.id);
|
|
37439
37439
|
U.data.data;
|
|
37440
|
-
const
|
|
37441
|
-
if (!Te &&
|
|
37440
|
+
const K = i.items.findIndex((W, P) => String(i.getKey(W, P)) === q), xe = String(U.data.data?.laneId ?? "") || String(I.initial.dropTargets.find((W) => W.data.type === "list-droppable")?.data?.id ?? ""), Te = String(xe) !== String(t);
|
|
37441
|
+
if (!Te && K >= 0) {
|
|
37442
37442
|
const W = I.current.dropTargets.find((P) => P.data.type === "list-card-target");
|
|
37443
37443
|
if (W) {
|
|
37444
37444
|
const P = W.data.index, X = W.data.closestEdge;
|
|
37445
37445
|
if (P !== void 0 && X) {
|
|
37446
37446
|
let Y = !1;
|
|
37447
|
-
if ((P ===
|
|
37447
|
+
if ((P === K || P === K - 1 && X === "bottom" || P === K + 1 && X === "top") && (Y = !0), Y)
|
|
37448
37448
|
return;
|
|
37449
37449
|
}
|
|
37450
37450
|
}
|
|
37451
37451
|
}
|
|
37452
|
-
if (!Te && k !== null && _ !== null && (k ===
|
|
37452
|
+
if (!Te && k !== null && _ !== null && (k === K && _ === "top" || k === K && _ === "bottom" || k === K - 1 && _ === "bottom" || k === K + 1 && _ === "top")) {
|
|
37453
37453
|
w(null), C(null);
|
|
37454
37454
|
return;
|
|
37455
37455
|
}
|
|
@@ -37459,41 +37459,41 @@ function QQ({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
37459
37459
|
}))
|
|
37460
37460
|
return;
|
|
37461
37461
|
let me = null;
|
|
37462
|
-
const { type: H, cardTarget:
|
|
37463
|
-
if (Te ?
|
|
37464
|
-
cardTarget:
|
|
37462
|
+
const { type: H, cardTarget: G } = T(I.current.dropTargets);
|
|
37463
|
+
if (Te ? G && G.data ? me = XQ({
|
|
37464
|
+
cardTarget: G,
|
|
37465
37465
|
fromLaneId: xe,
|
|
37466
37466
|
toLaneId: t,
|
|
37467
|
-
sourceId:
|
|
37467
|
+
sourceId: q
|
|
37468
37468
|
}) : k !== null && _ ? me = {
|
|
37469
37469
|
fromLaneId: xe,
|
|
37470
37470
|
toLaneId: t,
|
|
37471
|
-
sourceId:
|
|
37471
|
+
sourceId: q,
|
|
37472
37472
|
indexOfTarget: k,
|
|
37473
37473
|
position: _ === "bottom" ? "below" : "above"
|
|
37474
37474
|
} : me = YQ({
|
|
37475
37475
|
fromLaneId: xe,
|
|
37476
37476
|
toLaneId: t,
|
|
37477
|
-
sourceId:
|
|
37478
|
-
}) : H === "sameLaneOverCard" &&
|
|
37479
|
-
cardTarget:
|
|
37477
|
+
sourceId: q
|
|
37478
|
+
}) : H === "sameLaneOverCard" && G && G.data ? me = ZQ({
|
|
37479
|
+
cardTarget: G,
|
|
37480
37480
|
fromLaneId: xe,
|
|
37481
37481
|
toLaneId: t,
|
|
37482
|
-
sourceId:
|
|
37482
|
+
sourceId: q
|
|
37483
37483
|
}) : k !== null && _ ? me = {
|
|
37484
37484
|
fromLaneId: xe,
|
|
37485
37485
|
toLaneId: t,
|
|
37486
|
-
sourceId:
|
|
37486
|
+
sourceId: q,
|
|
37487
37487
|
indexOfTarget: k,
|
|
37488
37488
|
position: _ === "bottom" ? "below" : "above"
|
|
37489
37489
|
} : me = JQ({
|
|
37490
37490
|
fromLaneId: xe,
|
|
37491
37491
|
toLaneId: t,
|
|
37492
|
-
sourceId:
|
|
37492
|
+
sourceId: q
|
|
37493
37493
|
}), !!me) {
|
|
37494
37494
|
if (!Te && me.indexOfTarget !== void 0) {
|
|
37495
37495
|
const W = me.indexOfTarget, P = me.position;
|
|
37496
|
-
if (W ===
|
|
37496
|
+
if (W === K && P === "above" || W === K && P === "below" || W === K - 1 && P === "below" || W === K + 1 && P === "above")
|
|
37497
37497
|
return;
|
|
37498
37498
|
}
|
|
37499
37499
|
await n?.(me), w(null), C(null);
|
|
@@ -37529,28 +37529,28 @@ function QQ({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
37529
37529
|
const N = o.current, T = s.current;
|
|
37530
37530
|
if (!N || !T) return;
|
|
37531
37531
|
let I = null, U = null;
|
|
37532
|
-
const
|
|
37532
|
+
const q = () => {
|
|
37533
37533
|
const Te = T.parentElement?.parentElement;
|
|
37534
37534
|
if (!Te) return;
|
|
37535
37535
|
const ke = Te.offsetHeight, me = T.style.height;
|
|
37536
37536
|
T.style.height = "auto", N.offsetHeight;
|
|
37537
37537
|
const H = N.scrollHeight;
|
|
37538
37538
|
T.style.height = me;
|
|
37539
|
-
let
|
|
37540
|
-
ke < 100 ?
|
|
37539
|
+
let G;
|
|
37540
|
+
ke < 100 ? G = Math.max(H, 400) : G = Math.min(H, ke), (U === null || Math.abs(G - U) > 1) && (U = G, d(G));
|
|
37541
37541
|
};
|
|
37542
|
-
|
|
37543
|
-
const
|
|
37542
|
+
q();
|
|
37543
|
+
const K = () => {
|
|
37544
37544
|
I !== null && cancelAnimationFrame(I), I = requestAnimationFrame(() => {
|
|
37545
|
-
|
|
37545
|
+
q(), I = null;
|
|
37546
37546
|
});
|
|
37547
|
-
}, re = new ResizeObserver(
|
|
37547
|
+
}, re = new ResizeObserver(K);
|
|
37548
37548
|
re.observe(N);
|
|
37549
37549
|
const xe = T.parentElement?.parentElement;
|
|
37550
37550
|
return xe && re.observe(xe), () => {
|
|
37551
37551
|
I !== null && cancelAnimationFrame(I), re.disconnect();
|
|
37552
37552
|
};
|
|
37553
|
-
}, [i.items.length, i.loading,
|
|
37553
|
+
}, [i.items.length, i.loading, S]), f("div", {
|
|
37554
37554
|
ref: s,
|
|
37555
37555
|
className: "relative rounded",
|
|
37556
37556
|
style: {
|
|
@@ -37571,14 +37571,14 @@ function QQ({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
37571
37571
|
className: "flex h-full flex-col",
|
|
37572
37572
|
children: f(GQ, {
|
|
37573
37573
|
...i,
|
|
37574
|
-
dropPlaceholderIndex:
|
|
37574
|
+
dropPlaceholderIndex: S && i.items.length === 0 ? 0 : void 0,
|
|
37575
37575
|
renderCard: (N, T) => {
|
|
37576
37576
|
const I = i.renderCard(N, T);
|
|
37577
37577
|
if (E7(I)) {
|
|
37578
|
-
const U = T === k ? _ : null,
|
|
37579
|
-
return
|
|
37578
|
+
const U = T === k ? _ : null, q = [];
|
|
37579
|
+
return E >= 0 && (T === E ? q.push("top", "bottom") : T === E - 1 ? q.push("bottom") : T === E + 1 && q.push("top")), n3(I, {
|
|
37580
37580
|
forcedEdge: U,
|
|
37581
|
-
disabledEdges:
|
|
37581
|
+
disabledEdges: q
|
|
37582
37582
|
});
|
|
37583
37583
|
}
|
|
37584
37584
|
return I;
|
|
@@ -37591,7 +37591,7 @@ function QQ({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
37591
37591
|
function _v(t) {
|
|
37592
37592
|
const { lanes: e, renderCard: n, getKey: i, className: r, dnd: s, loading: o, onCreate: a } = t, [l, c] = J(() => e), d = _e(""), u = _e(null);
|
|
37593
37593
|
Le(() => {
|
|
37594
|
-
const C = e.map((
|
|
37594
|
+
const C = e.map((S) => `${S.id}:[${S.items.map((M, E) => i(M, E, S.id)).join(",")}]`).join("|");
|
|
37595
37595
|
if (u.current !== null)
|
|
37596
37596
|
if (C === u.current)
|
|
37597
37597
|
u.current = null, d.current = C, c(e);
|
|
@@ -37612,101 +37612,101 @@ function _v(t) {
|
|
|
37612
37612
|
return;
|
|
37613
37613
|
}
|
|
37614
37614
|
I.scrollLeft += b.current * T, y.current = window.requestAnimationFrame(C);
|
|
37615
|
-
},
|
|
37615
|
+
}, S = (L) => {
|
|
37616
37616
|
b.current = L, y.current == null && (k.current = null, y.current = window.requestAnimationFrame(C));
|
|
37617
37617
|
}, M = () => {
|
|
37618
37618
|
b.current = 0, y.current != null && (window.cancelAnimationFrame(y.current), y.current = null), k.current = null;
|
|
37619
|
-
},
|
|
37620
|
-
return m.current &&
|
|
37619
|
+
}, E = [];
|
|
37620
|
+
return m.current && E.push(qp({
|
|
37621
37621
|
element: m.current,
|
|
37622
37622
|
getData: () => ({
|
|
37623
37623
|
type: "board-scroll-edge",
|
|
37624
37624
|
edge: "left"
|
|
37625
37625
|
}),
|
|
37626
|
-
onDragEnter: () =>
|
|
37627
|
-
onDrag: () =>
|
|
37626
|
+
onDragEnter: () => S(-400),
|
|
37627
|
+
onDrag: () => S(-400),
|
|
37628
37628
|
onDragLeave: () => M(),
|
|
37629
37629
|
onDrop: () => M()
|
|
37630
|
-
})), g.current &&
|
|
37630
|
+
})), g.current && E.push(qp({
|
|
37631
37631
|
element: g.current,
|
|
37632
37632
|
getData: () => ({
|
|
37633
37633
|
type: "board-scroll-edge",
|
|
37634
37634
|
edge: "right"
|
|
37635
37635
|
}),
|
|
37636
|
-
onDragEnter: () =>
|
|
37637
|
-
onDrag: () =>
|
|
37636
|
+
onDragEnter: () => S(400),
|
|
37637
|
+
onDrag: () => S(400),
|
|
37638
37638
|
onDragLeave: () => M(),
|
|
37639
37639
|
onDrop: () => M()
|
|
37640
37640
|
})), () => {
|
|
37641
|
-
|
|
37641
|
+
E.forEach((L) => L()), M();
|
|
37642
37642
|
};
|
|
37643
37643
|
}, [h]);
|
|
37644
|
-
const w = (C,
|
|
37645
|
-
const M = l.find((
|
|
37646
|
-
return M ? M.items.findIndex((
|
|
37644
|
+
const w = (C, S) => {
|
|
37645
|
+
const M = l.find((E) => E.id === C);
|
|
37646
|
+
return M ? M.items.findIndex((E, L) => String(i(E, L, C)) === String(S)) : -1;
|
|
37647
37647
|
}, _ = async (C) => {
|
|
37648
|
-
const { fromLaneId:
|
|
37649
|
-
let I = T.findIndex((me) => me.id ===
|
|
37648
|
+
const { fromLaneId: S, toLaneId: M, sourceId: E, indexOfTarget: L, position: N } = C, T = l;
|
|
37649
|
+
let I = T.findIndex((me) => me.id === S);
|
|
37650
37650
|
const U = T.findIndex((me) => me.id === M);
|
|
37651
37651
|
if (U === -1) return Promise.reject(new Error("Lane not found"));
|
|
37652
|
-
let
|
|
37653
|
-
if (I !== -1 && (
|
|
37652
|
+
let q = -1;
|
|
37653
|
+
if (I !== -1 && (q = T[I].items.findIndex((me, H) => String(i(me, H, S)) === String(E))), q === -1)
|
|
37654
37654
|
for (let me = 0; me < T.length; me++) {
|
|
37655
|
-
const H = T[me].id,
|
|
37656
|
-
if (
|
|
37657
|
-
I = me,
|
|
37655
|
+
const H = T[me].id, G = T[me].items.findIndex((W, P) => String(i(W, P, H)) === String(E));
|
|
37656
|
+
if (G !== -1) {
|
|
37657
|
+
I = me, q = G;
|
|
37658
37658
|
break;
|
|
37659
37659
|
}
|
|
37660
37660
|
}
|
|
37661
|
-
if (I === -1 ||
|
|
37661
|
+
if (I === -1 || q === -1)
|
|
37662
37662
|
return Promise.resolve(void 0);
|
|
37663
|
-
const
|
|
37663
|
+
const K = T[I].items[q];
|
|
37664
37664
|
let re = 0;
|
|
37665
37665
|
L == null ? re = 0 : re = L + (N === "below" ? 1 : 0);
|
|
37666
|
-
const xe =
|
|
37666
|
+
const xe = S === M, Te = T.map((me, H) => {
|
|
37667
37667
|
if (H === I && xe) {
|
|
37668
|
-
const
|
|
37669
|
-
|
|
37670
|
-
const W =
|
|
37671
|
-
return
|
|
37668
|
+
const G = [...me.items];
|
|
37669
|
+
G.splice(q, 1);
|
|
37670
|
+
const W = q < re ? re - 1 : re;
|
|
37671
|
+
return G.splice(W, 0, K), {
|
|
37672
37672
|
...me,
|
|
37673
|
-
items:
|
|
37673
|
+
items: G
|
|
37674
37674
|
};
|
|
37675
37675
|
}
|
|
37676
37676
|
if (H === I) {
|
|
37677
|
-
const
|
|
37678
|
-
|
|
37677
|
+
const G = [...me.items];
|
|
37678
|
+
G.splice(q, 1);
|
|
37679
37679
|
const W = typeof me.total == "number" && !xe ? Math.max(0, me.total - 1) : me.total;
|
|
37680
37680
|
return {
|
|
37681
37681
|
...me,
|
|
37682
|
-
items:
|
|
37682
|
+
items: G,
|
|
37683
37683
|
total: W
|
|
37684
37684
|
};
|
|
37685
37685
|
}
|
|
37686
37686
|
if (H === U) {
|
|
37687
|
-
const
|
|
37688
|
-
|
|
37687
|
+
const G = [...me.items], W = Math.max(0, Math.min(re, G.length));
|
|
37688
|
+
G.splice(W, 0, K);
|
|
37689
37689
|
const P = typeof me.total == "number" && !xe ? me.total + 1 : me.total;
|
|
37690
37690
|
return {
|
|
37691
37691
|
...me,
|
|
37692
|
-
items:
|
|
37692
|
+
items: G,
|
|
37693
37693
|
total: P
|
|
37694
37694
|
};
|
|
37695
37695
|
}
|
|
37696
37696
|
return me;
|
|
37697
37697
|
});
|
|
37698
37698
|
c(Te);
|
|
37699
|
-
const ke = Te.map((me) => `${me.id}:[${me.items.map((H,
|
|
37699
|
+
const ke = Te.map((me) => `${me.id}:[${me.items.map((H, G) => i(H, G, me.id)).join(",")}]`).join("|");
|
|
37700
37700
|
u.current = ke, d.current = ke;
|
|
37701
37701
|
try {
|
|
37702
|
-
const me = L == null ? null : T[U].items[L], H = await s?.onMove?.(
|
|
37702
|
+
const me = L == null ? null : T[U].items[L], H = await s?.onMove?.(S, M, K, me ? {
|
|
37703
37703
|
record: me,
|
|
37704
37704
|
position: N ?? "above"
|
|
37705
37705
|
} : null);
|
|
37706
|
-
return H && c((
|
|
37707
|
-
const W =
|
|
37706
|
+
return H && c((G) => {
|
|
37707
|
+
const W = G.map((X) => {
|
|
37708
37708
|
if (X.id !== M) return X;
|
|
37709
|
-
const Y = [...X.items], ae = Y.findIndex((he, le) => String(i(he, le, M)) === String(
|
|
37709
|
+
const Y = [...X.items], ae = Y.findIndex((he, le) => String(i(he, le, M)) === String(E));
|
|
37710
37710
|
return ae !== -1 && Y.splice(ae, 1, H), {
|
|
37711
37711
|
...X,
|
|
37712
37712
|
items: Y
|
|
@@ -37725,18 +37725,18 @@ function _v(t) {
|
|
|
37725
37725
|
viewportRef: v,
|
|
37726
37726
|
children: f("div", {
|
|
37727
37727
|
className: "relative mb-2 flex h-full items-start gap-2",
|
|
37728
|
-
children: l.map((C,
|
|
37728
|
+
children: l.map((C, S) => {
|
|
37729
37729
|
const M = C.total ?? C.items.length;
|
|
37730
37730
|
return f("div", {
|
|
37731
37731
|
className: "relative shrink-0",
|
|
37732
37732
|
children: f(QQ, {
|
|
37733
37733
|
id: C.id,
|
|
37734
|
-
getLaneResourceIndexById: C.id ? (
|
|
37734
|
+
getLaneResourceIndexById: C.id ? (E) => w(C.id, E) : void 0,
|
|
37735
37735
|
onMove: _,
|
|
37736
37736
|
title: C.title,
|
|
37737
37737
|
items: C.items,
|
|
37738
|
-
getKey: (
|
|
37739
|
-
renderCard: (
|
|
37738
|
+
getKey: (E, L) => i(E, L, C.id),
|
|
37739
|
+
renderCard: (E, L) => n(E, L, M, C.id),
|
|
37740
37740
|
emptyState: C.emptyState,
|
|
37741
37741
|
loading: o || C.loading,
|
|
37742
37742
|
variant: C.variant,
|
|
@@ -37747,7 +37747,7 @@ function _v(t) {
|
|
|
37747
37747
|
onPrimaryAction: a && C.id ? () => a(C.id) : void 0,
|
|
37748
37748
|
onFooterAction: a && C.id ? () => a(C.id) : void 0
|
|
37749
37749
|
})
|
|
37750
|
-
}, C.id ?? String(
|
|
37750
|
+
}, C.id ?? String(S));
|
|
37751
37751
|
})
|
|
37752
37752
|
})
|
|
37753
37753
|
}), f("div", {
|
|
@@ -37770,25 +37770,25 @@ const eee = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
37770
37770
|
const [m] = J(() => /* @__PURE__ */ Symbol("kanban-visualization")), g = a.idProvider, v = we(() => JSON.stringify(Object.values(h).map((T) => T.data)), [h]), y = we(() => t.map((T) => ({
|
|
37771
37771
|
...T,
|
|
37772
37772
|
items: h[T.id]?.data?.records || []
|
|
37773
|
-
})), [v]), b = (T) => T.map(({ icon: I, tooltip: U, property:
|
|
37774
|
-
property:
|
|
37773
|
+
})), [v]), b = (T) => T.map(({ icon: I, tooltip: U, property: q }) => q.type === "file" ? {
|
|
37774
|
+
property: q
|
|
37775
37775
|
} : {
|
|
37776
37776
|
icon: I,
|
|
37777
37777
|
tooltip: U,
|
|
37778
|
-
property:
|
|
37778
|
+
property: q
|
|
37779
37779
|
}), k = (T) => !!(T && T.type === "infinite-scroll"), w = {
|
|
37780
37780
|
lanes: y.map((T) => {
|
|
37781
|
-
const I = h[T.id], U = I?.paginationInfo?.total,
|
|
37781
|
+
const I = h[T.id], U = I?.paginationInfo?.total, q = k(I?.paginationInfo) && I?.paginationInfo?.hasMore;
|
|
37782
37782
|
return {
|
|
37783
37783
|
id: T.id,
|
|
37784
37784
|
title: T.title,
|
|
37785
37785
|
items: T.items,
|
|
37786
37786
|
variant: T.variant,
|
|
37787
37787
|
total: U,
|
|
37788
|
-
hasMore:
|
|
37788
|
+
hasMore: q,
|
|
37789
37789
|
loading: I?.isLoading || !1,
|
|
37790
37790
|
loadingMore: I?.isLoadingMore || !1,
|
|
37791
|
-
fetchMore:
|
|
37791
|
+
fetchMore: q ? () => I.loadMore() : void 0
|
|
37792
37792
|
};
|
|
37793
37793
|
}),
|
|
37794
37794
|
loading: Object.values(h).some((T) => T.isInitialLoading),
|
|
@@ -37797,22 +37797,22 @@ const eee = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
37797
37797
|
const U = T?.id;
|
|
37798
37798
|
return U != null ? String(U) : String(I);
|
|
37799
37799
|
},
|
|
37800
|
-
renderCard: (T, I, U,
|
|
37801
|
-
const
|
|
37800
|
+
renderCard: (T, I, U, q) => {
|
|
37801
|
+
const K = String(g ? g(T, I) : T?.id ?? I), re = a.selectable ? a.selectable(T) : T.id, xe = N && q ? N.get(q) : void 0, Te = (typeof re == "string" || typeof re == "number") && xe && xe?.selectedItems.has(re), ke = a.itemUrl ? a.itemUrl(T) : void 0, me = a.itemOnClick ? a.itemOnClick(T) : void 0;
|
|
37802
37802
|
return f(UQ, {
|
|
37803
37803
|
drag: {
|
|
37804
|
-
id:
|
|
37804
|
+
id: K,
|
|
37805
37805
|
type: "list-card",
|
|
37806
37806
|
data: {
|
|
37807
37807
|
...T,
|
|
37808
|
-
laneId:
|
|
37808
|
+
laneId: q
|
|
37809
37809
|
}
|
|
37810
37810
|
},
|
|
37811
37811
|
id: String(T.id),
|
|
37812
37812
|
index: I,
|
|
37813
37813
|
total: U,
|
|
37814
|
-
laneId:
|
|
37815
|
-
showIndicator:
|
|
37814
|
+
laneId: q,
|
|
37815
|
+
showIndicator: S,
|
|
37816
37816
|
title: e ? e(T) : String(I),
|
|
37817
37817
|
description: n ? n(T) : void 0,
|
|
37818
37818
|
avatar: i ? i(T) : void 0,
|
|
@@ -37827,15 +37827,15 @@ const eee = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
37827
37827
|
},
|
|
37828
37828
|
onClick: me,
|
|
37829
37829
|
link: ke
|
|
37830
|
-
},
|
|
37830
|
+
}, K);
|
|
37831
37831
|
},
|
|
37832
37832
|
onCreate: o
|
|
37833
37833
|
}, _ = we(() => {
|
|
37834
37834
|
const T = Object.values(h);
|
|
37835
37835
|
if (T.length !== 0)
|
|
37836
37836
|
return T.reduce((I, U) => {
|
|
37837
|
-
const
|
|
37838
|
-
return I + (typeof
|
|
37837
|
+
const q = U.paginationInfo?.total ?? U.data.records.length;
|
|
37838
|
+
return I + (typeof q == "number" ? q : 0);
|
|
37839
37839
|
}, 0);
|
|
37840
37840
|
}, [h]), C = we(() => {
|
|
37841
37841
|
const T = Object.values(h);
|
|
@@ -37850,13 +37850,13 @@ const eee = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
37850
37850
|
data: Object.values(h).flatMap((T) => T.data.records)
|
|
37851
37851
|
});
|
|
37852
37852
|
}, [_, C]);
|
|
37853
|
-
const
|
|
37853
|
+
const S = a.currentSortings === null, M = we(() => {
|
|
37854
37854
|
const T = /* @__PURE__ */ new Map();
|
|
37855
37855
|
return y.forEach((I) => {
|
|
37856
37856
|
const U = /* @__PURE__ */ new Map();
|
|
37857
|
-
I.items.forEach((
|
|
37858
|
-
const re = g ? g(
|
|
37859
|
-
U.set(xe,
|
|
37857
|
+
I.items.forEach((q, K) => {
|
|
37858
|
+
const re = g ? g(q, K) : q?.id ?? K, xe = String(re);
|
|
37859
|
+
U.set(xe, K);
|
|
37860
37860
|
}), T.set(I.id, U);
|
|
37861
37861
|
}), T;
|
|
37862
37862
|
}, [y, g]);
|
|
@@ -37864,11 +37864,11 @@ const eee = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
37864
37864
|
instanceId: m,
|
|
37865
37865
|
getIndexById: (T, I) => {
|
|
37866
37866
|
const U = M.get(T)?.get(I) ?? -1;
|
|
37867
|
-
return
|
|
37867
|
+
return S ? U : -1;
|
|
37868
37868
|
},
|
|
37869
37869
|
onMove: s
|
|
37870
37870
|
};
|
|
37871
|
-
const
|
|
37871
|
+
const E = we(() => t.map((T) => ({
|
|
37872
37872
|
id: T.id,
|
|
37873
37873
|
data: h[T.id]?.data || {
|
|
37874
37874
|
type: "flat",
|
|
@@ -37876,7 +37876,7 @@ const eee = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
37876
37876
|
groups: []
|
|
37877
37877
|
},
|
|
37878
37878
|
paginationInfo: h[T.id]?.paginationInfo || null
|
|
37879
|
-
})), [t, h]), { lanesSelectProvider: L, lanesUseSelectable: N } = OQ(
|
|
37879
|
+
})), [t, h]), { lanesSelectProvider: L, lanesUseSelectable: N } = OQ(E, a, (T, I) => {
|
|
37880
37880
|
l?.(T, I);
|
|
37881
37881
|
});
|
|
37882
37882
|
return x(Je, {
|
|
@@ -38177,8 +38177,8 @@ const eee = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
38177
38177
|
}, `skeleton-item-${o}`))
|
|
38178
38178
|
}), see = ({ fields: t, itemDefinition: e, source: n, onSelectItems: i, onLoadData: r, onLoadError: s, tmpFullWidth: o }) => {
|
|
38179
38179
|
const { data: a, paginationInfo: l, setPage: c, isInitialLoading: d, isLoadingMore: u, loadMore: h } = A0(n, {
|
|
38180
|
-
onError: (
|
|
38181
|
-
s(
|
|
38180
|
+
onError: (E) => {
|
|
38181
|
+
s(E);
|
|
38182
38182
|
}
|
|
38183
38183
|
});
|
|
38184
38184
|
Le(() => {
|
|
@@ -38208,8 +38208,8 @@ const eee = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
38208
38208
|
count: 30,
|
|
38209
38209
|
isInitialLoading: !0
|
|
38210
38210
|
});
|
|
38211
|
-
n.sortings || t.forEach((
|
|
38212
|
-
|
|
38211
|
+
n.sortings || t.forEach((E) => {
|
|
38212
|
+
E.sorting && console.warn("Sorting is defined on a property but no sortings are provided in the data source");
|
|
38213
38213
|
});
|
|
38214
38214
|
const M = d || p && n.dataAdapter.paginationType === "pages";
|
|
38215
38215
|
return x("div", {
|
|
@@ -38220,22 +38220,22 @@ const eee = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
38220
38220
|
"aria-busy": M ? "true" : void 0,
|
|
38221
38221
|
children: x("div", {
|
|
38222
38222
|
className: "min-h-0 flex-1 overflow-auto pb-3",
|
|
38223
|
-
children: [a.type === "grouped" && a.groups.map((
|
|
38224
|
-
const N =
|
|
38223
|
+
children: [a.type === "grouped" && a.groups.map((E, L) => {
|
|
38224
|
+
const N = E.itemCount;
|
|
38225
38225
|
return x("div", {
|
|
38226
38226
|
className: "flex flex-col gap-0 pt-2 first:pt-0",
|
|
38227
38227
|
children: [f(Jm, {
|
|
38228
38228
|
className: "cursor-pointer select-none rounded-md px-3.5 py-3 transition-colors hover:bg-f1-background-hover",
|
|
38229
38229
|
selectable: !!n.selectable,
|
|
38230
|
-
select: v[
|
|
38231
|
-
onSelectChange: (T) => b(
|
|
38230
|
+
select: v[E.key]?.checked ? !0 : v[E.key]?.indeterminate ? "indeterminate" : !1,
|
|
38231
|
+
onSelectChange: (T) => b(E, T),
|
|
38232
38232
|
showOpenChange: k,
|
|
38233
|
-
label:
|
|
38233
|
+
label: E.label,
|
|
38234
38234
|
itemCount: N,
|
|
38235
|
-
open: _[
|
|
38236
|
-
onOpenChange: (T) => C(
|
|
38237
|
-
}, `group-header-${
|
|
38238
|
-
children: (!k || _[
|
|
38235
|
+
open: _[E.key],
|
|
38236
|
+
onOpenChange: (T) => C(E.key, T)
|
|
38237
|
+
}, `group-header-${E.key}`), f(ut, {
|
|
38238
|
+
children: (!k || _[E.key]) && f(ye.div, {
|
|
38239
38239
|
initial: {
|
|
38240
38240
|
height: 0,
|
|
38241
38241
|
opacity: 0
|
|
@@ -38255,16 +38255,16 @@ const eee = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
38255
38255
|
className: "mt-0.5",
|
|
38256
38256
|
children: f(Ev, {
|
|
38257
38257
|
source: n,
|
|
38258
|
-
items:
|
|
38258
|
+
items: E.records,
|
|
38259
38259
|
selectedItems: g,
|
|
38260
38260
|
handleSelectItemChange: y,
|
|
38261
38261
|
fields: t,
|
|
38262
38262
|
itemDefinition: e,
|
|
38263
38263
|
isLoadingMore: u && L === a.groups.length - 1
|
|
38264
|
-
}, `list-group-${
|
|
38264
|
+
}, `list-group-${E.key}`)
|
|
38265
38265
|
})
|
|
38266
38266
|
})]
|
|
38267
|
-
}, `group-header-${
|
|
38267
|
+
}, `group-header-${E.key}`);
|
|
38268
38268
|
}), a?.type === "flat" && f(Ev, {
|
|
38269
38269
|
source: n,
|
|
38270
38270
|
items: a.records,
|
|
@@ -38737,13 +38737,13 @@ function Tr({ children: t, href: e, onClick: n, width: i = "auto", firstCell: r
|
|
|
38737
38737
|
})
|
|
38738
38738
|
}), n && f("button", {
|
|
38739
38739
|
type: "button",
|
|
38740
|
-
onClick: (
|
|
38741
|
-
|
|
38740
|
+
onClick: (S) => {
|
|
38741
|
+
S.stopPropagation(), n();
|
|
38742
38742
|
},
|
|
38743
38743
|
className: "table-cell-action-button absolute inset-0 !z-0 block",
|
|
38744
38744
|
tabIndex: r ? void 0 : -1,
|
|
38745
|
-
onKeyDown: (
|
|
38746
|
-
(
|
|
38745
|
+
onKeyDown: (S) => {
|
|
38746
|
+
(S.key === "Enter" || S.key === " ") && (S.preventDefault(), n());
|
|
38747
38747
|
},
|
|
38748
38748
|
children: f("span", {
|
|
38749
38749
|
className: "sr-only",
|
|
@@ -39098,16 +39098,16 @@ const UC = (t, e, n) => {
|
|
|
39098
39098
|
onLoadMoreChildren: t.onLoadMoreChildren
|
|
39099
39099
|
}
|
|
39100
39100
|
});
|
|
39101
|
-
}, Hee = V(Bee), $ee = 5, Vee = ({ rowRef: t, rowIndex: e, source: n, item: i, columns: r, frozenColumnsLeft: s, nestedRowProps: o, groupIndex: a, onCheckedChange: l, selectedItems: c, checkColumnWidth: d, tableWithChildren: u },
|
|
39102
|
-
const
|
|
39101
|
+
}, Hee = V(Bee), $ee = 5, Vee = ({ rowRef: t, rowIndex: e, source: n, item: i, columns: r, frozenColumnsLeft: s, nestedRowProps: o, groupIndex: a, onCheckedChange: l, selectedItems: c, checkColumnWidth: d, tableWithChildren: u, shouldHideBorder: h }, p) => {
|
|
39102
|
+
const m = _e(null), g = t?.current;
|
|
39103
39103
|
la(() => {
|
|
39104
|
-
if (
|
|
39105
|
-
const
|
|
39106
|
-
|
|
39104
|
+
if (m.current && g) {
|
|
39105
|
+
const b = t.current.getBoundingClientRect().height;
|
|
39106
|
+
m.current.style.height = `${b}px`;
|
|
39107
39107
|
}
|
|
39108
|
-
}, [
|
|
39109
|
-
const
|
|
39110
|
-
|
|
39108
|
+
}, [g, t]);
|
|
39109
|
+
const v = o?.depth ?? 0, y = (b) => {
|
|
39110
|
+
m.current = b, typeof p == "function" && p(b);
|
|
39111
39111
|
};
|
|
39112
39112
|
return f(sl, {
|
|
39113
39113
|
source: {
|
|
@@ -39118,16 +39118,16 @@ const UC = (t, e, n) => {
|
|
|
39118
39118
|
index: e,
|
|
39119
39119
|
frozenColumnsLeft: s,
|
|
39120
39120
|
columns: r,
|
|
39121
|
-
noBorder: !
|
|
39121
|
+
noBorder: h ?? !1,
|
|
39122
39122
|
groupIndex: a,
|
|
39123
39123
|
onCheckedChange: l,
|
|
39124
39124
|
selectedItems: c,
|
|
39125
39125
|
checkColumnWidth: d,
|
|
39126
39126
|
loading: !0,
|
|
39127
|
-
ref:
|
|
39127
|
+
ref: y,
|
|
39128
39128
|
nestedRowProps: {
|
|
39129
39129
|
...o,
|
|
39130
|
-
depth: o?.parentHasChildren ?
|
|
39130
|
+
depth: o?.parentHasChildren ? v + 1 : v,
|
|
39131
39131
|
hasLoadedChildren: !1,
|
|
39132
39132
|
expanded: !1
|
|
39133
39133
|
},
|
|
@@ -39137,84 +39137,96 @@ const UC = (t, e, n) => {
|
|
|
39137
39137
|
const i = e.source.childrenCount?.({
|
|
39138
39138
|
item: e.item,
|
|
39139
39139
|
pagination: e.paginationInfo
|
|
39140
|
-
}), r = e.paginationInfo ? e.paginationInfo.total ? Math.min(e.paginationInfo.perPage, e.paginationInfo.total - e.paginationInfo.currentPage * e.paginationInfo.perPage) : e.paginationInfo.perPage : void 0;
|
|
39140
|
+
}), r = e.paginationInfo ? e.paginationInfo.total ? Math.min(e.paginationInfo.perPage, e.paginationInfo.total - e.paginationInfo.currentPage * e.paginationInfo.perPage) : e.paginationInfo.perPage : void 0, s = i ?? r ?? $ee;
|
|
39141
39141
|
return f(Je, {
|
|
39142
39142
|
children: Array.from({
|
|
39143
|
-
length:
|
|
39144
|
-
}).map((o, a) =>
|
|
39145
|
-
|
|
39146
|
-
|
|
39147
|
-
|
|
39148
|
-
|
|
39149
|
-
|
|
39143
|
+
length: s
|
|
39144
|
+
}).map((o, a) => {
|
|
39145
|
+
const c = !(a === s - 1) || e.shouldHideBorder;
|
|
39146
|
+
return f(zee, {
|
|
39147
|
+
ref: n,
|
|
39148
|
+
rowRef: t,
|
|
39149
|
+
rowIndex: a,
|
|
39150
|
+
...e,
|
|
39151
|
+
shouldHideBorder: c
|
|
39152
|
+
}, `row-loading-${a}`);
|
|
39153
|
+
})
|
|
39150
39154
|
});
|
|
39151
39155
|
}, Wee = V(jee), Uee = (t, e) => {
|
|
39152
39156
|
const [n, i] = J(!1), r = _e(null), s = `${t.nestedRowProps?.depth ?? 0}-${"id" in t.item ? t.item.id : t.index}`, { children: o, loadChildren: a, isLoading: l, childrenType: c, paginationInfo: d } = Pee({
|
|
39153
39157
|
rowId: s,
|
|
39154
39158
|
item: t.item,
|
|
39155
39159
|
source: t.source
|
|
39156
|
-
}), u = n && l, h = n, p = n && d?.hasMore, { calculatedHeight: m, setFirstChildRef: g, setLastChildRef: v } = Fee(c, !!p), y = Qe((
|
|
39157
|
-
r.current =
|
|
39160
|
+
}), u = n && l, h = n, p = n && d?.hasMore, { calculatedHeight: m, setFirstChildRef: g, setLastChildRef: v } = Fee(c, !!p), y = Qe((S) => {
|
|
39161
|
+
r.current = S, typeof e == "function" && e(S);
|
|
39158
39162
|
}, [e]), b = () => {
|
|
39159
|
-
const
|
|
39160
|
-
i(
|
|
39163
|
+
const S = !n;
|
|
39164
|
+
i(S), S && !o.length && a();
|
|
39161
39165
|
}, k = {
|
|
39162
39166
|
depth: t.nestedRowProps?.depth ?? 0,
|
|
39163
39167
|
expanded: n,
|
|
39164
39168
|
onExpand: b,
|
|
39165
39169
|
nestedVariant: c,
|
|
39166
39170
|
connectorHeight: m
|
|
39167
|
-
};
|
|
39171
|
+
}, w = (t.nestedRowProps?.depth ?? 0) === 0, _ = (t.nestedRowProps?.isLastChild || w) ?? !1;
|
|
39168
39172
|
return x(Je, {
|
|
39169
39173
|
children: [f(sl, {
|
|
39170
39174
|
...t,
|
|
39171
|
-
noBorder: n ||
|
|
39175
|
+
noBorder: n || !_,
|
|
39172
39176
|
ref: y,
|
|
39173
39177
|
nestedRowProps: {
|
|
39174
39178
|
...k,
|
|
39175
39179
|
parentHasChildren: t.nestedRowProps?.parentHasChildren ?? o.length > 0,
|
|
39176
|
-
hasLoadedChildren: !1
|
|
39180
|
+
hasLoadedChildren: !1,
|
|
39181
|
+
isLastChild: _
|
|
39177
39182
|
},
|
|
39178
39183
|
tableWithChildren: t.tableWithChildren
|
|
39179
|
-
}), h && o.map((
|
|
39180
|
-
const
|
|
39181
|
-
if (
|
|
39182
|
-
return (
|
|
39183
|
-
g(
|
|
39184
|
+
}), h && o.map((S, M) => {
|
|
39185
|
+
const E = S, L = t.source.itemsWithChildren?.(E), N = M === 0, T = M === o.length - 1, I = (t.nestedRowProps?.depth ?? 0) + 1, U = () => {
|
|
39186
|
+
if (N)
|
|
39187
|
+
return (K) => {
|
|
39188
|
+
g(K);
|
|
39184
39189
|
};
|
|
39185
|
-
if (
|
|
39186
|
-
return (
|
|
39187
|
-
v(
|
|
39190
|
+
if (T && !p)
|
|
39191
|
+
return (K) => {
|
|
39192
|
+
v(K);
|
|
39188
39193
|
};
|
|
39189
|
-
};
|
|
39190
|
-
|
|
39191
|
-
|
|
39192
|
-
|
|
39193
|
-
|
|
39194
|
-
|
|
39195
|
-
|
|
39196
|
-
|
|
39197
|
-
|
|
39198
|
-
|
|
39199
|
-
|
|
39200
|
-
|
|
39201
|
-
|
|
39202
|
-
|
|
39203
|
-
|
|
39204
|
-
|
|
39205
|
-
|
|
39206
|
-
|
|
39207
|
-
|
|
39208
|
-
|
|
39209
|
-
|
|
39210
|
-
|
|
39211
|
-
|
|
39212
|
-
|
|
39213
|
-
|
|
39214
|
-
|
|
39215
|
-
|
|
39216
|
-
|
|
39217
|
-
|
|
39194
|
+
}, q = T && _ && !p;
|
|
39195
|
+
if (L)
|
|
39196
|
+
return Gp(GC, {
|
|
39197
|
+
...t,
|
|
39198
|
+
key: `nested-row-${t.groupIndex}-${S.id}-${t.index}-${M}`,
|
|
39199
|
+
index: M,
|
|
39200
|
+
item: E,
|
|
39201
|
+
tableWithChildren: t.tableWithChildren,
|
|
39202
|
+
ref: U(),
|
|
39203
|
+
nestedRowProps: {
|
|
39204
|
+
...t.nestedRowProps,
|
|
39205
|
+
parentHasChildren: !0,
|
|
39206
|
+
depth: I,
|
|
39207
|
+
isLastChild: q
|
|
39208
|
+
}
|
|
39209
|
+
});
|
|
39210
|
+
{
|
|
39211
|
+
const K = !q;
|
|
39212
|
+
return Gp(sl, {
|
|
39213
|
+
...t,
|
|
39214
|
+
key: `row-${t.groupIndex}-${t.index}-${M}`,
|
|
39215
|
+
index: M,
|
|
39216
|
+
item: E,
|
|
39217
|
+
noBorder: K,
|
|
39218
|
+
ref: U(),
|
|
39219
|
+
nestedRowProps: {
|
|
39220
|
+
...t.nestedRowProps,
|
|
39221
|
+
depth: (t.nestedRowProps?.depth ?? 0) + 1,
|
|
39222
|
+
parentHasChildren: !0,
|
|
39223
|
+
nestedVariant: c,
|
|
39224
|
+
onExpand: b,
|
|
39225
|
+
isLastChild: q
|
|
39226
|
+
},
|
|
39227
|
+
tableWithChildren: t.tableWithChildren
|
|
39228
|
+
});
|
|
39229
|
+
}
|
|
39218
39230
|
}), u && f(Wee, {
|
|
39219
39231
|
...t,
|
|
39220
39232
|
rowRef: r,
|
|
@@ -39223,7 +39235,8 @@ const UC = (t, e, n) => {
|
|
|
39223
39235
|
parentHasChildren: o.length > 0
|
|
39224
39236
|
},
|
|
39225
39237
|
paginationInfo: d,
|
|
39226
|
-
ref: v
|
|
39238
|
+
ref: v,
|
|
39239
|
+
shouldHideBorder: !_
|
|
39227
39240
|
}), p && !l && f(Hee, {
|
|
39228
39241
|
...t,
|
|
39229
39242
|
rowRef: r,
|
|
@@ -39245,7 +39258,7 @@ const UC = (t, e, n) => {
|
|
|
39245
39258
|
...t,
|
|
39246
39259
|
ref: e
|
|
39247
39260
|
}), Nv = V(Uee), GC = V(qee), Gee = ({ source: t, item: e, onCheckedChange: n, selectedItems: i, columns: r, frozenColumnsLeft: s, checkColumnWidth: o, index: a, groupIndex: l, noBorder: c = !1, loading: d = !1, nestedRowProps: u, tableWithChildren: h }, p) => {
|
|
39248
|
-
const m = t.itemUrl ? t.itemUrl(e) : void 0, g = t.itemOnClick ? t.itemOnClick(e) : void 0, v = t.selectable ? t.selectable(e) : void 0, y = !!t.itemsWithChildren?.(e), b = Ge(), k = (T, I) => LC(T, I, "table", b), w = `table-row-${l}-${a}`, { getStickyPosition: _ } = UC(s, r, !!t.selectable), { primaryItemActions: C, dropdownItemActions:
|
|
39261
|
+
const m = t.itemUrl ? t.itemUrl(e) : void 0, g = t.itemOnClick ? t.itemOnClick(e) : void 0, v = t.selectable ? t.selectable(e) : void 0, y = !!t.itemsWithChildren?.(e), b = Ge(), k = (T, I) => LC(T, I, "table", b), w = `table-row-${l}-${a}`, { getStickyPosition: _ } = UC(s, r, !!t.selectable), { primaryItemActions: C, dropdownItemActions: S, mobileDropdownItemActions: M, handleDropDownOpenChange: E, dropDownOpen: L } = EC({
|
|
39249
39262
|
source: t,
|
|
39250
39263
|
item: e
|
|
39251
39264
|
}), N = u?.hasLoadedChildren === void 0 || u?.hasLoadedChildren;
|
|
@@ -39302,8 +39315,8 @@ const UC = (t, e, n) => {
|
|
|
39302
39315
|
dropDownOpen: L,
|
|
39303
39316
|
children: f(_C, {
|
|
39304
39317
|
primaryItemActions: C,
|
|
39305
|
-
dropdownItemActions:
|
|
39306
|
-
handleDropDownOpenChange:
|
|
39318
|
+
dropdownItemActions: S,
|
|
39319
|
+
handleDropDownOpenChange: E
|
|
39307
39320
|
})
|
|
39308
39321
|
})
|
|
39309
39322
|
}), f(Tr, {
|
|
@@ -39316,7 +39329,7 @@ const UC = (t, e, n) => {
|
|
|
39316
39329
|
loading: d,
|
|
39317
39330
|
children: f(CC, {
|
|
39318
39331
|
items: M,
|
|
39319
|
-
onOpenChange:
|
|
39332
|
+
onOpenChange: E
|
|
39320
39333
|
})
|
|
39321
39334
|
}, `table-cell-${l}-${a}-actions`)]
|
|
39322
39335
|
})]
|
|
@@ -39336,7 +39349,7 @@ const UC = (t, e, n) => {
|
|
|
39336
39349
|
data: h.records
|
|
39337
39350
|
});
|
|
39338
39351
|
}, [p?.total, h.records]);
|
|
39339
|
-
const
|
|
39352
|
+
const S = we(() => n, [n]), { selectedItems: M, allSelectedStatus: E, groupAllSelectedStatus: L, handleSelectItemChange: N, handleSelectAll: T, handleSelectGroupChange: I } = r0({
|
|
39340
39353
|
data: h,
|
|
39341
39354
|
paginationInfo: p,
|
|
39342
39355
|
source: e,
|
|
@@ -39347,10 +39360,10 @@ const UC = (t, e, n) => {
|
|
|
39347
39360
|
data: b,
|
|
39348
39361
|
sticky: !0,
|
|
39349
39362
|
label: e.summaries?.label
|
|
39350
|
-
}, [b, e.summaries]),
|
|
39363
|
+
}, [b, e.summaries]), q = (P, X, Y) => {
|
|
39351
39364
|
if (!(!P || !X))
|
|
39352
39365
|
return Y === null ? "none" : Y.field === P ? Y.order : "none";
|
|
39353
|
-
},
|
|
39366
|
+
}, K = (P) => {
|
|
39354
39367
|
w(() => !k || k.field !== P ? {
|
|
39355
39368
|
field: P,
|
|
39356
39369
|
order: "asc"
|
|
@@ -39358,7 +39371,7 @@ const UC = (t, e, n) => {
|
|
|
39358
39371
|
field: P,
|
|
39359
39372
|
order: "desc"
|
|
39360
39373
|
} : null);
|
|
39361
|
-
}, re = e.grouping?.collapsible, xe = e.grouping?.defaultOpenGroups, { openGroups: Te, setGroupOpen: ke } = Zm(h?.type === "grouped" ? h.groups : [], xe), me = u.length + (e.itemActions ? 1 : 0) + (e.selectable ? 1 : 0), { getStickyPosition: H, checkColumnWidth:
|
|
39374
|
+
}, re = e.grouping?.collapsible, xe = e.grouping?.defaultOpenGroups, { openGroups: Te, setGroupOpen: ke } = Zm(h?.type === "grouped" ? h.groups : [], xe), me = u.length + (e.itemActions ? 1 : 0) + (e.selectable ? 1 : 0), { getStickyPosition: H, checkColumnWidth: G } = UC(S, u, !!e.selectable), W = h?.records.some((P) => e.itemsWithChildren?.(P));
|
|
39362
39375
|
return g ? f(Tv.Skeleton, {
|
|
39363
39376
|
columns: me
|
|
39364
39377
|
}) : (e.sortings || u.forEach((P) => {
|
|
@@ -39371,7 +39384,7 @@ const UC = (t, e, n) => {
|
|
|
39371
39384
|
sticky: !0,
|
|
39372
39385
|
children: x(Us, {
|
|
39373
39386
|
children: [e.selectable && f(qd, {
|
|
39374
|
-
width:
|
|
39387
|
+
width: G,
|
|
39375
39388
|
sticky: {
|
|
39376
39389
|
left: 0
|
|
39377
39390
|
},
|
|
@@ -39379,8 +39392,8 @@ const UC = (t, e, n) => {
|
|
|
39379
39392
|
children: f("div", {
|
|
39380
39393
|
className: "flex w-full items-center justify-end",
|
|
39381
39394
|
children: f(d1, {
|
|
39382
|
-
checked:
|
|
39383
|
-
indeterminate:
|
|
39395
|
+
checked: E.selectedCount > 0 || E.checked,
|
|
39396
|
+
indeterminate: E.indeterminate || E.selectedCount > 0 && !E.checked,
|
|
39384
39397
|
onCheckedChange: T,
|
|
39385
39398
|
title: l.actions.selectAll,
|
|
39386
39399
|
hideLabel: !0,
|
|
@@ -39388,14 +39401,14 @@ const UC = (t, e, n) => {
|
|
|
39388
39401
|
})
|
|
39389
39402
|
})
|
|
39390
39403
|
}), u.map(({ sorting: P, label: X, ...Y }, ae) => f(qd, {
|
|
39391
|
-
sortState:
|
|
39404
|
+
sortState: q(P, e.sortings, k),
|
|
39392
39405
|
width: Y.width,
|
|
39393
39406
|
align: Y.align,
|
|
39394
39407
|
sticky: H(ae),
|
|
39395
39408
|
...Y,
|
|
39396
39409
|
hidden: !1,
|
|
39397
39410
|
onSortClick: P ? () => {
|
|
39398
|
-
P &&
|
|
39411
|
+
P && K(P);
|
|
39399
39412
|
} : void 0,
|
|
39400
39413
|
children: X
|
|
39401
39414
|
}, `table-head-${ae}`)), e.itemActions && x(Je, {
|
|
@@ -39420,7 +39433,7 @@ const UC = (t, e, n) => {
|
|
|
39420
39433
|
sticky: {
|
|
39421
39434
|
left: 0
|
|
39422
39435
|
},
|
|
39423
|
-
colSpan: (
|
|
39436
|
+
colSpan: (S || 1) + (e.selectable ? 1 : 0),
|
|
39424
39437
|
children: f(Jm, {
|
|
39425
39438
|
className: "px-3",
|
|
39426
39439
|
selectable: !!e.selectable,
|
|
@@ -39433,7 +39446,7 @@ const UC = (t, e, n) => {
|
|
|
39433
39446
|
onOpenChange: (ae) => ke(P.key, ae)
|
|
39434
39447
|
})
|
|
39435
39448
|
}), f(Tr, {
|
|
39436
|
-
colSpan: u.length - (
|
|
39449
|
+
colSpan: u.length - (S || 1) + (e.selectable ? 1 : 0),
|
|
39437
39450
|
children: " "
|
|
39438
39451
|
})]
|
|
39439
39452
|
}, `group-header-${P.key}`), f(ut, {
|
|
@@ -39451,8 +39464,8 @@ const UC = (t, e, n) => {
|
|
|
39451
39464
|
onCheckedChange: (le) => N(ae, le),
|
|
39452
39465
|
selectedItems: M,
|
|
39453
39466
|
columns: u,
|
|
39454
|
-
frozenColumnsLeft:
|
|
39455
|
-
checkColumnWidth:
|
|
39467
|
+
frozenColumnsLeft: S,
|
|
39468
|
+
checkColumnWidth: G
|
|
39456
39469
|
}, `row-${X}-${he}`))
|
|
39457
39470
|
}, `group-animate-${X}`)]
|
|
39458
39471
|
}, `group-${P.key}`);
|
|
@@ -39464,8 +39477,8 @@ const UC = (t, e, n) => {
|
|
|
39464
39477
|
onCheckedChange: (Y) => N(P, Y),
|
|
39465
39478
|
selectedItems: M,
|
|
39466
39479
|
columns: u,
|
|
39467
|
-
frozenColumnsLeft:
|
|
39468
|
-
checkColumnWidth:
|
|
39480
|
+
frozenColumnsLeft: S,
|
|
39481
|
+
checkColumnWidth: G,
|
|
39469
39482
|
tableWithChildren: W
|
|
39470
39483
|
}, `row-${X}`)), p?.type === "infinite-scroll" && v && Array.from({
|
|
39471
39484
|
length: 5
|
|
@@ -39489,7 +39502,7 @@ const UC = (t, e, n) => {
|
|
|
39489
39502
|
children: x(Us, {
|
|
39490
39503
|
className: D(U.sticky && "sticky bottom-0 z-10 bg-f1-background shadow-[0_-1px_0_0_var(--f1-border-secondary)] hover:bg-f1-background", "font-medium"),
|
|
39491
39504
|
children: [e.selectable && f(Tr, {
|
|
39492
|
-
width:
|
|
39505
|
+
width: G,
|
|
39493
39506
|
sticky: {
|
|
39494
39507
|
left: 0
|
|
39495
39508
|
},
|
|
@@ -39697,9 +39710,9 @@ const UC = (t, e, n) => {
|
|
|
39697
39710
|
}, "visualization-settings"), [b]), w = we(() => Qee(b), [b]), _ = we(() => {
|
|
39698
39711
|
const M = t[e]?.type;
|
|
39699
39712
|
if (!M) return "-";
|
|
39700
|
-
const
|
|
39701
|
-
return c.collections.visualizations.settings.replace("{{visualizationName}}",
|
|
39702
|
-
}, [e]), C = N0(),
|
|
39713
|
+
const E = c.collections.visualizations[M] ?? "-";
|
|
39714
|
+
return c.collections.visualizations.settings.replace("{{visualizationName}}", E);
|
|
39715
|
+
}, [e]), C = N0(), S = () => {
|
|
39703
39716
|
Object.values(zf).forEach((M) => {
|
|
39704
39717
|
M.settings.resetHandler?.(C);
|
|
39705
39718
|
});
|
|
@@ -39758,7 +39771,7 @@ const UC = (t, e, n) => {
|
|
|
39758
39771
|
variant: "ghost",
|
|
39759
39772
|
icon: b3,
|
|
39760
39773
|
label: c.collections.visualizations.reset,
|
|
39761
|
-
onClick:
|
|
39774
|
+
onClick: S
|
|
39762
39775
|
})
|
|
39763
39776
|
}, "reset")].filter(Boolean)
|
|
39764
39777
|
})]
|
|
@@ -39768,10 +39781,10 @@ const UC = (t, e, n) => {
|
|
|
39768
39781
|
const p = Ge(), m = we(() => {
|
|
39769
39782
|
if (!t || !t.value)
|
|
39770
39783
|
return [p.date.selectDate];
|
|
39771
|
-
const
|
|
39772
|
-
return [t.value, Array.isArray(e) ? e[0] : e].filter((
|
|
39773
|
-
}, [t, p, e]), g = we(() => Object.values(m).join(" ⸱ "), [m]), v = (
|
|
39774
|
-
|
|
39784
|
+
const S = Ym[t.granularity];
|
|
39785
|
+
return [t.value, Array.isArray(e) ? e[0] : e].filter((E) => E !== void 0).sort((E, L) => E?.from.getTime() - L?.from.getTime()).map((E) => S.toString(E, p, "long"));
|
|
39786
|
+
}, [t, p, e]), g = we(() => Object.values(m).join(" ⸱ "), [m]), v = (S) => {
|
|
39787
|
+
S && n?.(S);
|
|
39775
39788
|
}, y = we(() => {
|
|
39776
39789
|
if (u.minDate)
|
|
39777
39790
|
return c?.toRange(u.minDate)?.from;
|
|
@@ -39781,25 +39794,25 @@ const UC = (t, e, n) => {
|
|
|
39781
39794
|
}, [u.maxDate, c]), [k, w] = J(null);
|
|
39782
39795
|
Le(() => {
|
|
39783
39796
|
w(c?.toRange(/* @__PURE__ */ new Date()) ?? null);
|
|
39784
|
-
const
|
|
39785
|
-
const
|
|
39786
|
-
|
|
39797
|
+
const S = () => {
|
|
39798
|
+
const E = c?.toRange(/* @__PURE__ */ new Date()) ?? null;
|
|
39799
|
+
E && fM(E.from, y) && dM(E.to || E.from, b) ? w(E) : w(null);
|
|
39787
39800
|
}, M = setInterval(() => {
|
|
39788
|
-
|
|
39801
|
+
S();
|
|
39789
39802
|
}, 6e4);
|
|
39790
|
-
return
|
|
39803
|
+
return S(), () => clearInterval(M);
|
|
39791
39804
|
}, [c, y, b]);
|
|
39792
39805
|
const _ = t?.value ? c?.getPrevNext(t?.value, {
|
|
39793
39806
|
min: y,
|
|
39794
39807
|
max: b
|
|
39795
39808
|
}) : void 0, C = () => {
|
|
39796
|
-
const
|
|
39797
|
-
|
|
39809
|
+
const S = c?.toRange(/* @__PURE__ */ new Date());
|
|
39810
|
+
S && n?.(S);
|
|
39798
39811
|
};
|
|
39799
39812
|
return x("div", {
|
|
39800
39813
|
ref: h,
|
|
39801
39814
|
className: D("inline-flex cursor-auto appearance-none gap-1 rounded-md border-0 bg-f1-background px-1 ring-1 ring-inset ring-f1-border transition-all placeholder:text-f1-foreground-tertiary hover:ring-f1-border-hover", "[%>*] py-1", $t("focus:ring-f1-border-hover"), i && "cursor-not-allowed bg-f1-background-secondary opacity-50", r && "ring-f1-border-critical-bold", s),
|
|
39802
|
-
onClick: (
|
|
39815
|
+
onClick: (S) => S.stopPropagation(),
|
|
39803
39816
|
children: [x("div", {
|
|
39804
39817
|
className: D("flex flex-1 gap-1", l ? "justify-between" : "justify-center"),
|
|
39805
39818
|
children: [l && f(Ee, {
|
|
@@ -40043,13 +40056,13 @@ const rte = (t) => "date" in t, ste = {
|
|
|
40043
40056
|
storageReady: r
|
|
40044
40057
|
};
|
|
40045
40058
|
}, fte = ({ source: t, visualizations: e, onSelectItems: n, onBulkAction: i, onStateChange: r, emptyStates: s, fullHeight: o, storage: a, id: l, tmpFullWidth: c }) => {
|
|
40046
|
-
const { filters: d, currentFilters: u, setCurrentFilters: h, presets: p, presetsLoading: m, currentNavigationFilters: g, navigationFilters: v, setCurrentNavigationFilters: y, search: b, currentSearch: k, setCurrentSearch: w, isLoading: _, primaryActions: C, secondaryActions:
|
|
40059
|
+
const { filters: d, currentFilters: u, setCurrentFilters: h, presets: p, presetsLoading: m, currentNavigationFilters: g, navigationFilters: v, setCurrentNavigationFilters: y, search: b, currentSearch: k, setCurrentSearch: w, isLoading: _, primaryActions: C, secondaryActions: S, totalItemSummary: M, currentGrouping: E, setCurrentGrouping: L, grouping: N, currentSortings: T, setCurrentSortings: I, sortings: U } = t, [q, K] = J(0), re = _e(T), { emitSortingChange: xe } = vM({
|
|
40047
40060
|
defaultSorting: re.current
|
|
40048
40061
|
});
|
|
40049
40062
|
Le(() => {
|
|
40050
40063
|
xe(T);
|
|
40051
40064
|
}, [xe, T]);
|
|
40052
|
-
const Te = we(() => dQ(C), [C]), ke = we(() => gQ(mQ(
|
|
40065
|
+
const Te = we(() => dQ(C), [C]), ke = we(() => gQ(mQ(S)), [S]), me = we(() => Math.min(S && "expanded" in S && S.expanded || 0, uQ), [S]), H = we(() => ke[0]?.items.slice(0, me) || [], [ke, me]), G = we(() => [{
|
|
40053
40066
|
...ke[0],
|
|
40054
40067
|
items: ke[0]?.items.slice(me) || []
|
|
40055
40068
|
}, ...ke.slice(1)].filter((ht) => ht.items.length > 0), [ke, me]), W = Te?.length > 0 || ke?.length > 0, [P, X] = J(void 0), Y = h7(), [ae, he] = J(void 0), le = Qe((ht) => {
|
|
@@ -40093,7 +40106,7 @@ const rte = (t) => "date" in t, ste = {
|
|
|
40093
40106
|
}) : "warningMessage" in Pt && he({
|
|
40094
40107
|
warningMessage: Pt.warningMessage
|
|
40095
40108
|
}));
|
|
40096
|
-
}, [
|
|
40109
|
+
}, [Z, ie] = J(void 0), [Se, Ae] = J(!0), pe = we(() => [b?.enabled, e.length > 1].some(Boolean), [b, e]), { emptyState: He, setEmptyStateType: Ze } = bQ(s, {
|
|
40097
40110
|
retry: () => {
|
|
40098
40111
|
Ze(!1), h({
|
|
40099
40112
|
...u
|
|
@@ -40113,7 +40126,7 @@ const rte = (t) => "date" in t, ste = {
|
|
|
40113
40126
|
Le(() => {
|
|
40114
40127
|
Ze(!1);
|
|
40115
40128
|
}, [u, k, g, t.dataAdapter]);
|
|
40116
|
-
const tr = we(() => De !== void 0, [De]), nr = De === void 0 ? null :
|
|
40129
|
+
const tr = we(() => De !== void 0, [De]), nr = De === void 0 ? null : Z !== void 0 ? De(Z) : null, { settings: wr, setSettings: Wr } = N0(), { storageReady: se } = cte(l, typeof a == "object" ? a?.features ?? ["*"] : ["*"], {
|
|
40117
40130
|
settings: {
|
|
40118
40131
|
value: wr,
|
|
40119
40132
|
setValue: Wr
|
|
@@ -40123,7 +40136,7 @@ const rte = (t) => "date" in t, ste = {
|
|
|
40123
40136
|
setValue: I
|
|
40124
40137
|
},
|
|
40125
40138
|
grouping: {
|
|
40126
|
-
value:
|
|
40139
|
+
value: E,
|
|
40127
40140
|
setValue: L
|
|
40128
40141
|
},
|
|
40129
40142
|
navigationFilters: {
|
|
@@ -40131,8 +40144,8 @@ const rte = (t) => "date" in t, ste = {
|
|
|
40131
40144
|
setValue: y
|
|
40132
40145
|
},
|
|
40133
40146
|
visualization: {
|
|
40134
|
-
value:
|
|
40135
|
-
setValue:
|
|
40147
|
+
value: q,
|
|
40148
|
+
setValue: K
|
|
40136
40149
|
},
|
|
40137
40150
|
search: {
|
|
40138
40151
|
value: k,
|
|
@@ -40150,13 +40163,13 @@ const rte = (t) => "date" in t, ste = {
|
|
|
40150
40163
|
r?.({
|
|
40151
40164
|
filters: u,
|
|
40152
40165
|
sortings: T,
|
|
40153
|
-
visualization:
|
|
40154
|
-
grouping:
|
|
40166
|
+
visualization: q,
|
|
40167
|
+
grouping: E,
|
|
40155
40168
|
search: k,
|
|
40156
40169
|
navigationFilters: g,
|
|
40157
40170
|
settings: wr
|
|
40158
40171
|
});
|
|
40159
|
-
}, [u, k, g, T,
|
|
40172
|
+
}, [u, k, g, T, q, E, wr]);
|
|
40160
40173
|
const Xe = we(() => {
|
|
40161
40174
|
const ht = N ? Object.keys(N.groupBy).length + (N.mandatory ? 1 : 0) : 0, St = Object.values(e).find((_n) => _n.type === "table"), Pt = !!St && (!!St.options?.allowColumnHiding || !!St.options?.allowColumnReordering);
|
|
40162
40175
|
return e && e.length > 1 || ht > 0 && !N?.hideSelector || U && Object.keys(U).length > 0 || Pt;
|
|
@@ -40211,10 +40224,10 @@ const rte = (t) => "date" in t, ste = {
|
|
|
40211
40224
|
value: k
|
|
40212
40225
|
}), Xe && f(tte, {
|
|
40213
40226
|
visualizations: e,
|
|
40214
|
-
currentVisualization:
|
|
40215
|
-
onVisualizationChange:
|
|
40227
|
+
currentVisualization: q,
|
|
40228
|
+
onVisualizationChange: K,
|
|
40216
40229
|
grouping: N,
|
|
40217
|
-
currentGrouping:
|
|
40230
|
+
currentGrouping: E,
|
|
40218
40231
|
onGroupingChange: L,
|
|
40219
40232
|
sortings: U,
|
|
40220
40233
|
currentSortings: T,
|
|
@@ -40225,7 +40238,7 @@ const rte = (t) => "date" in t, ste = {
|
|
|
40225
40238
|
}), f(kQ, {
|
|
40226
40239
|
primaryActions: Te,
|
|
40227
40240
|
secondaryActions: H,
|
|
40228
|
-
otherActions:
|
|
40241
|
+
otherActions: G
|
|
40229
40242
|
})]
|
|
40230
40243
|
}), Rt === "bottom" && f(Ov, {
|
|
40231
40244
|
navigationFilters: v,
|
|
@@ -40237,7 +40250,7 @@ const rte = (t) => "date" in t, ste = {
|
|
|
40237
40250
|
}), f("div", {
|
|
40238
40251
|
className: D(He && "hidden", o && "h-full min-h-0 flex-1"),
|
|
40239
40252
|
children: f(Zee, {
|
|
40240
|
-
visualization: e[
|
|
40253
|
+
visualization: e[q],
|
|
40241
40254
|
source: t,
|
|
40242
40255
|
onSelectItems: j,
|
|
40243
40256
|
onLoadData: _t,
|
|
@@ -48704,12 +48717,12 @@ const Oie = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|d
|
|
|
48704
48717
|
function Fie(t, e, n, i, r) {
|
|
48705
48718
|
let s = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
|
|
48706
48719
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
48707
|
-
let
|
|
48720
|
+
let E = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, L = F4(t, E);
|
|
48708
48721
|
if (L && !t.state.selection.eq(L)) {
|
|
48709
48722
|
if (Hn && ss && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (T) => T(t, To(13, "Enter"))))
|
|
48710
48723
|
return;
|
|
48711
48724
|
let N = t.state.tr.setSelection(L);
|
|
48712
|
-
|
|
48725
|
+
E == "pointer" ? N.setMeta("pointer", !0) : E == "key" && N.scrollIntoView(), s && N.setMeta("composition", s), t.dispatch(N);
|
|
48713
48726
|
}
|
|
48714
48727
|
return;
|
|
48715
48728
|
}
|
|
@@ -48718,7 +48731,7 @@ function Fie(t, e, n, i, r) {
|
|
|
48718
48731
|
let l = t.state.selection, c = Mie(t, e, n), d = t.state.doc, u = d.slice(c.from, c.to), h, p;
|
|
48719
48732
|
t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (h = t.state.selection.to, p = "end") : (h = t.state.selection.from, p = "start"), t.input.lastKeyCode = null;
|
|
48720
48733
|
let m = Rie(u.content, c.doc.content, c.from, h, p);
|
|
48721
|
-
if (m && t.input.domChangeCount++, (cl && t.input.lastIOSEnter > Date.now() - 225 || ss) && r.some((
|
|
48734
|
+
if (m && t.input.domChangeCount++, (cl && t.input.lastIOSEnter > Date.now() - 225 || ss) && r.some((E) => E.nodeType == 1 && !Oie.test(E.nodeName)) && (!m || m.endA >= m.endB) && t.someProp("handleKeyDown", (E) => E(t, To(13, "Enter")))) {
|
|
48722
48735
|
t.input.lastIOSEnter = 0;
|
|
48723
48736
|
return;
|
|
48724
48737
|
}
|
|
@@ -48727,9 +48740,9 @@ function Fie(t, e, n, i, r) {
|
|
|
48727
48740
|
m = { start: l.from, endA: l.to, endB: l.to };
|
|
48728
48741
|
else {
|
|
48729
48742
|
if (c.sel) {
|
|
48730
|
-
let
|
|
48731
|
-
if (
|
|
48732
|
-
let L = t.state.tr.setSelection(
|
|
48743
|
+
let E = E9(t, t.state.doc, c.sel);
|
|
48744
|
+
if (E && !E.eq(t.state.selection)) {
|
|
48745
|
+
let L = t.state.tr.setSelection(E);
|
|
48733
48746
|
s && L.setMeta("composition", s), t.dispatch(L);
|
|
48734
48747
|
}
|
|
48735
48748
|
}
|
|
@@ -48737,40 +48750,40 @@ function Fie(t, e, n, i, r) {
|
|
|
48737
48750
|
}
|
|
48738
48751
|
t.state.selection.from < t.state.selection.to && m.start == m.endB && t.state.selection instanceof Ke && (m.start > t.state.selection.from && m.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? m.start = t.state.selection.from : m.endA < t.state.selection.to && m.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (m.endB += t.state.selection.to - m.endA, m.endA = t.state.selection.to)), fi && Ys <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > c.from && c.doc.textBetween(m.start - c.from - 1, m.start - c.from + 1) == " " && (m.start--, m.endA--, m.endB--);
|
|
48739
48752
|
let g = c.doc.resolveNoCache(m.start - c.from), v = c.doc.resolveNoCache(m.endB - c.from), y = d.resolve(m.start), b = g.sameParent(v) && g.parent.inlineContent && y.end() >= m.endA, k;
|
|
48740
|
-
if ((cl && t.input.lastIOSEnter > Date.now() - 225 && (!b || r.some((
|
|
48753
|
+
if ((cl && t.input.lastIOSEnter > Date.now() - 225 && (!b || r.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !b && g.pos < c.doc.content.size && !g.sameParent(v) && (k = Ye.findFrom(c.doc.resolve(g.pos + 1), 1, !0)) && k.head == v.pos) && t.someProp("handleKeyDown", (E) => E(t, To(13, "Enter")))) {
|
|
48741
48754
|
t.input.lastIOSEnter = 0;
|
|
48742
48755
|
return;
|
|
48743
48756
|
}
|
|
48744
|
-
if (t.state.selection.anchor > m.start && Iie(d, m.start, m.endA, g, v) && t.someProp("handleKeyDown", (
|
|
48757
|
+
if (t.state.selection.anchor > m.start && Iie(d, m.start, m.endA, g, v) && t.someProp("handleKeyDown", (E) => E(t, To(8, "Backspace")))) {
|
|
48745
48758
|
ss && Hn && t.domObserver.suppressSelectionUpdates();
|
|
48746
48759
|
return;
|
|
48747
48760
|
}
|
|
48748
48761
|
Hn && m.endB == m.start && (t.input.lastChromeDelete = Date.now()), ss && !b && g.start() != v.start() && v.parentOffset == 0 && g.depth == v.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == m.endA && (m.endB -= 2, v = c.doc.resolveNoCache(m.endB - c.from), setTimeout(() => {
|
|
48749
|
-
t.someProp("handleKeyDown", function(
|
|
48750
|
-
return
|
|
48762
|
+
t.someProp("handleKeyDown", function(E) {
|
|
48763
|
+
return E(t, To(13, "Enter"));
|
|
48751
48764
|
});
|
|
48752
48765
|
}, 20));
|
|
48753
|
-
let w = m.start, _ = m.endA, C,
|
|
48766
|
+
let w = m.start, _ = m.endA, C, S, M;
|
|
48754
48767
|
if (b) {
|
|
48755
48768
|
if (g.pos == v.pos)
|
|
48756
|
-
fi && Ys <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => us(t), 20)), C = t.state.tr.delete(w, _),
|
|
48769
|
+
fi && Ys <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => us(t), 20)), C = t.state.tr.delete(w, _), S = d.resolve(m.start).marksAcross(d.resolve(m.endA));
|
|
48757
48770
|
else if (
|
|
48758
48771
|
// Adding or removing a mark
|
|
48759
48772
|
m.endA == m.endB && (M = Die(g.parent.content.cut(g.parentOffset, v.parentOffset), y.parent.content.cut(y.parentOffset, m.endA - y.start())))
|
|
48760
48773
|
)
|
|
48761
48774
|
C = t.state.tr, M.type == "add" ? C.addMark(w, _, M.mark) : C.removeMark(w, _, M.mark);
|
|
48762
48775
|
else if (g.parent.child(g.index()).isText && g.index() == v.index() - (v.textOffset ? 0 : 1)) {
|
|
48763
|
-
let
|
|
48764
|
-
if (t.someProp("handleTextInput", (L) => L(t, w, _,
|
|
48776
|
+
let E = g.parent.textBetween(g.parentOffset, v.parentOffset);
|
|
48777
|
+
if (t.someProp("handleTextInput", (L) => L(t, w, _, E)))
|
|
48765
48778
|
return;
|
|
48766
|
-
C = t.state.tr.insertText(
|
|
48779
|
+
C = t.state.tr.insertText(E, w, _);
|
|
48767
48780
|
}
|
|
48768
48781
|
}
|
|
48769
48782
|
if (C || (C = t.state.tr.replace(w, _, c.doc.slice(m.start - c.from, m.endB - c.from))), c.sel) {
|
|
48770
|
-
let
|
|
48771
|
-
|
|
48783
|
+
let E = E9(t, C.doc, c.sel);
|
|
48784
|
+
E && !(Hn && t.composing && E.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (E.head == w || E.head == C.mapping.map(_) - 1) || fi && E.empty && E.head == w) && C.setSelection(E);
|
|
48772
48785
|
}
|
|
48773
|
-
|
|
48786
|
+
S && C.ensureMarks(S), s && C.setMeta("composition", s), t.dispatch(C.scrollIntoView());
|
|
48774
48787
|
}
|
|
48775
48788
|
function E9(t, e, n) {
|
|
48776
48789
|
return Math.max(n.anchor, n.head) > e.content.size ? null : D4(t, e.resolve(n.anchor), e.resolve(n.head));
|
|
@@ -50394,7 +50407,7 @@ function _re(t) {
|
|
|
50394
50407
|
const w = g + k.index + 1, _ = w + k[0].length, C = {
|
|
50395
50408
|
from: n.tr.mapping.map(w),
|
|
50396
50409
|
to: n.tr.mapping.map(_)
|
|
50397
|
-
},
|
|
50410
|
+
}, S = s.handler({
|
|
50398
50411
|
state: n,
|
|
50399
50412
|
range: C,
|
|
50400
50413
|
match: k,
|
|
@@ -50404,7 +50417,7 @@ function _re(t) {
|
|
|
50404
50417
|
pasteEvent: o,
|
|
50405
50418
|
dropEvent: a
|
|
50406
50419
|
});
|
|
50407
|
-
u.push(
|
|
50420
|
+
u.push(S);
|
|
50408
50421
|
});
|
|
50409
50422
|
}), u.every((p) => p !== null);
|
|
50410
50423
|
}
|
|
@@ -50487,12 +50500,12 @@ function Ere(t) {
|
|
|
50487
50500
|
if (b) {
|
|
50488
50501
|
let { text: _ } = y;
|
|
50489
50502
|
typeof _ == "string" ? _ = _ : _ = G4(fe.from(_), p.schema);
|
|
50490
|
-
const { from: C } = y,
|
|
50503
|
+
const { from: C } = y, S = C + _.length, M = Sre(_);
|
|
50491
50504
|
return l({
|
|
50492
50505
|
rule: d,
|
|
50493
50506
|
state: p,
|
|
50494
50507
|
from: C,
|
|
50495
|
-
to: { b:
|
|
50508
|
+
to: { b: S },
|
|
50496
50509
|
pasteEvt: M
|
|
50497
50510
|
});
|
|
50498
50511
|
}
|
|
@@ -51515,12 +51528,12 @@ const Fse = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: i, edi
|
|
|
51515
51528
|
y = y.append(fe.from(a.createAndFill(null, _) || void 0));
|
|
51516
51529
|
const C = l.before(l.depth - (b - 1));
|
|
51517
51530
|
n.replace(C, l.after(-k), new Fe(y, 4 - b, 0));
|
|
51518
|
-
let
|
|
51519
|
-
n.doc.nodesBetween(C, n.doc.content.size, (M,
|
|
51520
|
-
if (
|
|
51531
|
+
let S = -1;
|
|
51532
|
+
n.doc.nodesBetween(C, n.doc.content.size, (M, E) => {
|
|
51533
|
+
if (S > -1)
|
|
51521
51534
|
return !1;
|
|
51522
|
-
M.isTextblock && M.content.size === 0 && (
|
|
51523
|
-
}),
|
|
51535
|
+
M.isTextblock && M.content.size === 0 && (S = E + 1);
|
|
51536
|
+
}), S > -1 && n.setSelection(Ke.near(n.doc.resolve(S))), n.scrollIntoView();
|
|
51524
51537
|
}
|
|
51525
51538
|
return !0;
|
|
51526
51539
|
}
|
|
@@ -51576,8 +51589,8 @@ const Fse = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: i, edi
|
|
|
51576
51589
|
return l().command(() => (s.setNodeMarkup(_.pos, p), !0)).command(() => dp(s, p)).command(() => up(s, p)).run();
|
|
51577
51590
|
}
|
|
51578
51591
|
return !n || !w || !a ? l().command(() => d().wrapInList(p, i) ? !0 : c.clearNodes()).wrapInList(p, i).command(() => dp(s, p)).command(() => up(s, p)).run() : l().command(() => {
|
|
51579
|
-
const C = d().wrapInList(p, i),
|
|
51580
|
-
return s.ensureMarks(
|
|
51592
|
+
const C = d().wrapInList(p, i), S = w.filter((M) => h.includes(M.type.name));
|
|
51593
|
+
return s.ensureMarks(S), C ? !0 : c.clearNodes();
|
|
51581
51594
|
}).wrapInList(p, i).command(() => dp(s, p)).command(() => up(s, p)).run();
|
|
51582
51595
|
}, Rse = (t, e = {}, n = {}) => ({ state: i, commands: r }) => {
|
|
51583
51596
|
const { extendEmptyMarkRange: s = !1 } = n, o = yo(t, i.schema);
|
|
@@ -52902,8 +52915,8 @@ var Coe = function(e, n) {
|
|
|
52902
52915
|
function _oe(t) {
|
|
52903
52916
|
var e, n = t.state, i = t.name, r = t.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, a = Dr(n.placement), l = tg(a), c = [ui, Yi].indexOf(a) >= 0, d = c ? "height" : "width";
|
|
52904
52917
|
if (!(!s || !o)) {
|
|
52905
|
-
var u = Coe(r.padding, n), h = eg(s), p = l === "y" ? di : ui, m = l === "y" ? Xi : Yi, g = n.rects.reference[d] + n.rects.reference[l] - o[l] - n.rects.popper[d], v = o[l] - n.rects.reference[l], y = Kf(s), b = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, k = g / 2 - v / 2, w = u[p], _ = b - h[d] - u[m], C = b / 2 - h[d] / 2 + k,
|
|
52906
|
-
n.modifiersData[i] = (e = {}, e[M] =
|
|
52918
|
+
var u = Coe(r.padding, n), h = eg(s), p = l === "y" ? di : ui, m = l === "y" ? Xi : Yi, g = n.rects.reference[d] + n.rects.reference[l] - o[l] - n.rects.popper[d], v = o[l] - n.rects.reference[l], y = Kf(s), b = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, k = g / 2 - v / 2, w = u[p], _ = b - h[d] - u[m], C = b / 2 - h[d] / 2 + k, S = kc(w, C, _), M = l;
|
|
52919
|
+
n.modifiersData[i] = (e = {}, e[M] = S, e.centerOffset = S - C, e);
|
|
52907
52920
|
}
|
|
52908
52921
|
}
|
|
52909
52922
|
function Soe(t) {
|
|
@@ -52946,14 +52959,14 @@ function j9(t) {
|
|
|
52946
52959
|
p = v.x, g = v.y;
|
|
52947
52960
|
var y = o.hasOwnProperty("x"), b = o.hasOwnProperty("y"), k = ui, w = di, _ = window;
|
|
52948
52961
|
if (c) {
|
|
52949
|
-
var C = Kf(n),
|
|
52950
|
-
if (C === Mi(n) && (C = xo(n), ws(C).position !== "static" && a === "absolute" && (
|
|
52962
|
+
var C = Kf(n), S = "clientHeight", M = "clientWidth";
|
|
52963
|
+
if (C === Mi(n) && (C = xo(n), ws(C).position !== "static" && a === "absolute" && (S = "scrollHeight", M = "scrollWidth")), C = C, r === di || (r === ui || r === Yi) && s === nf) {
|
|
52951
52964
|
w = Xi;
|
|
52952
|
-
var
|
|
52965
|
+
var E = u && C === _ && _.visualViewport ? _.visualViewport.height : (
|
|
52953
52966
|
// $FlowFixMe[prop-missing]
|
|
52954
|
-
C[
|
|
52967
|
+
C[S]
|
|
52955
52968
|
);
|
|
52956
|
-
g -=
|
|
52969
|
+
g -= E - i.height, g *= l ? 1 : -1;
|
|
52957
52970
|
}
|
|
52958
52971
|
if (r === ui || (r === di || r === Xi) && s === nf) {
|
|
52959
52972
|
k = Yi;
|
|
@@ -53177,21 +53190,21 @@ function qS(t) {
|
|
|
53177
53190
|
}
|
|
53178
53191
|
function rf(t, e) {
|
|
53179
53192
|
e === void 0 && (e = {});
|
|
53180
|
-
var n = e, i = n.placement, r = i === void 0 ? t.placement : i, s = n.strategy, o = s === void 0 ? t.strategy : s, a = n.boundary, l = a === void 0 ? ooe : a, c = n.rootBoundary, d = c === void 0 ? PS : c, u = n.elementContext, h = u === void 0 ? Xl : u, p = n.altBoundary, m = p === void 0 ? !1 : p, g = n.padding, v = g === void 0 ? 0 : g, y = jS(typeof v != "number" ? v : WS(v, Gf)), b = h === Xl ? aoe : Xl, k = t.rects.popper, w = t.elements[m ? b : h], _ = Hoe(ea(w) ? w : w.contextElement || xo(t.elements.popper), l, d, o), C = pl(t.elements.reference),
|
|
53193
|
+
var n = e, i = n.placement, r = i === void 0 ? t.placement : i, s = n.strategy, o = s === void 0 ? t.strategy : s, a = n.boundary, l = a === void 0 ? ooe : a, c = n.rootBoundary, d = c === void 0 ? PS : c, u = n.elementContext, h = u === void 0 ? Xl : u, p = n.altBoundary, m = p === void 0 ? !1 : p, g = n.padding, v = g === void 0 ? 0 : g, y = jS(typeof v != "number" ? v : WS(v, Gf)), b = h === Xl ? aoe : Xl, k = t.rects.popper, w = t.elements[m ? b : h], _ = Hoe(ea(w) ? w : w.contextElement || xo(t.elements.popper), l, d, o), C = pl(t.elements.reference), S = qS({
|
|
53181
53194
|
reference: C,
|
|
53182
53195
|
element: k,
|
|
53183
53196
|
placement: r
|
|
53184
|
-
}), M = j2(Object.assign({}, k,
|
|
53185
|
-
top: _.top -
|
|
53186
|
-
bottom:
|
|
53187
|
-
left: _.left -
|
|
53188
|
-
right:
|
|
53197
|
+
}), M = j2(Object.assign({}, k, S)), E = h === Xl ? M : C, L = {
|
|
53198
|
+
top: _.top - E.top + y.top,
|
|
53199
|
+
bottom: E.bottom - _.bottom + y.bottom,
|
|
53200
|
+
left: _.left - E.left + y.left,
|
|
53201
|
+
right: E.right - _.right + y.right
|
|
53189
53202
|
}, N = t.modifiersData.offset;
|
|
53190
53203
|
if (h === Xl && N) {
|
|
53191
53204
|
var T = N[r];
|
|
53192
53205
|
Object.keys(L).forEach(function(I) {
|
|
53193
|
-
var U = [Yi, Xi].indexOf(I) >= 0 ? 1 : -1,
|
|
53194
|
-
L[I] += T[
|
|
53206
|
+
var U = [Yi, Xi].indexOf(I) >= 0 ? 1 : -1, q = [di, Xi].indexOf(I) >= 0 ? "y" : "x";
|
|
53207
|
+
L[I] += T[q] * U;
|
|
53195
53208
|
});
|
|
53196
53209
|
}
|
|
53197
53210
|
return L;
|
|
@@ -53234,40 +53247,40 @@ function zoe(t) {
|
|
|
53234
53247
|
flipVariations: m,
|
|
53235
53248
|
allowedAutoPlacements: g
|
|
53236
53249
|
}) : P);
|
|
53237
|
-
}, []), _ = e.rects.reference, C = e.rects.popper,
|
|
53238
|
-
var N = w[L], T = Dr(N), I = ml(N) === ul, U = [di, Xi].indexOf(T) >= 0,
|
|
53250
|
+
}, []), _ = e.rects.reference, C = e.rects.popper, S = /* @__PURE__ */ new Map(), M = !0, E = w[0], L = 0; L < w.length; L++) {
|
|
53251
|
+
var N = w[L], T = Dr(N), I = ml(N) === ul, U = [di, Xi].indexOf(T) >= 0, q = U ? "width" : "height", K = rf(e, {
|
|
53239
53252
|
placement: N,
|
|
53240
53253
|
boundary: d,
|
|
53241
53254
|
rootBoundary: u,
|
|
53242
53255
|
altBoundary: h,
|
|
53243
53256
|
padding: c
|
|
53244
53257
|
}), re = U ? I ? Yi : ui : I ? Xi : di;
|
|
53245
|
-
_[
|
|
53258
|
+
_[q] > C[q] && (re = Xd(re));
|
|
53246
53259
|
var xe = Xd(re), Te = [];
|
|
53247
|
-
if (s && Te.push(
|
|
53260
|
+
if (s && Te.push(K[T] <= 0), a && Te.push(K[re] <= 0, K[xe] <= 0), Te.every(function(W) {
|
|
53248
53261
|
return W;
|
|
53249
53262
|
})) {
|
|
53250
|
-
|
|
53263
|
+
E = N, M = !1;
|
|
53251
53264
|
break;
|
|
53252
53265
|
}
|
|
53253
|
-
|
|
53266
|
+
S.set(N, Te);
|
|
53254
53267
|
}
|
|
53255
53268
|
if (M)
|
|
53256
53269
|
for (var ke = m ? 3 : 1, me = function(P) {
|
|
53257
53270
|
var X = w.find(function(Y) {
|
|
53258
|
-
var ae =
|
|
53271
|
+
var ae = S.get(Y);
|
|
53259
53272
|
if (ae)
|
|
53260
53273
|
return ae.slice(0, P).every(function(he) {
|
|
53261
53274
|
return he;
|
|
53262
53275
|
});
|
|
53263
53276
|
});
|
|
53264
53277
|
if (X)
|
|
53265
|
-
return
|
|
53278
|
+
return E = X, "break";
|
|
53266
53279
|
}, H = ke; H > 0; H--) {
|
|
53267
|
-
var
|
|
53268
|
-
if (
|
|
53280
|
+
var G = me(H);
|
|
53281
|
+
if (G === "break") break;
|
|
53269
53282
|
}
|
|
53270
|
-
e.placement !==
|
|
53283
|
+
e.placement !== E && (e.modifiersData[i]._skip = !0, e.placement = E, e.reset = !0);
|
|
53271
53284
|
}
|
|
53272
53285
|
}
|
|
53273
53286
|
const joe = {
|
|
@@ -53368,28 +53381,28 @@ function Yoe(t) {
|
|
|
53368
53381
|
rootBoundary: c,
|
|
53369
53382
|
padding: u,
|
|
53370
53383
|
altBoundary: d
|
|
53371
|
-
}), y = Dr(e.placement), b = ml(e.placement), k = !b, w = tg(y), _ = Xoe(w), C = e.modifiersData.popperOffsets,
|
|
53384
|
+
}), y = Dr(e.placement), b = ml(e.placement), k = !b, w = tg(y), _ = Xoe(w), C = e.modifiersData.popperOffsets, S = e.rects.reference, M = e.rects.popper, E = typeof g == "function" ? g(Object.assign({}, e.rects, {
|
|
53372
53385
|
placement: e.placement
|
|
53373
|
-
})) : g, L = typeof
|
|
53374
|
-
mainAxis:
|
|
53375
|
-
altAxis:
|
|
53386
|
+
})) : g, L = typeof E == "number" ? {
|
|
53387
|
+
mainAxis: E,
|
|
53388
|
+
altAxis: E
|
|
53376
53389
|
} : Object.assign({
|
|
53377
53390
|
mainAxis: 0,
|
|
53378
53391
|
altAxis: 0
|
|
53379
|
-
},
|
|
53392
|
+
}, E), N = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, T = {
|
|
53380
53393
|
x: 0,
|
|
53381
53394
|
y: 0
|
|
53382
53395
|
};
|
|
53383
53396
|
if (C) {
|
|
53384
53397
|
if (s) {
|
|
53385
|
-
var I, U = w === "y" ? di : ui,
|
|
53398
|
+
var I, U = w === "y" ? di : ui, q = w === "y" ? Xi : Yi, K = w === "y" ? "height" : "width", re = C[w], xe = re + v[U], Te = re - v[q], ke = p ? -M[K] / 2 : 0, me = b === ul ? S[K] : M[K], H = b === ul ? -M[K] : -S[K], G = e.elements.arrow, W = p && G ? eg(G) : {
|
|
53386
53399
|
width: 0,
|
|
53387
53400
|
height: 0
|
|
53388
|
-
}, P = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : zS(), X = P[U], Y = P[
|
|
53401
|
+
}, P = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : zS(), X = P[U], Y = P[q], ae = kc(0, S[K], W[K]), he = k ? S[K] / 2 - ke - ae - X - L.mainAxis : me - ae - X - L.mainAxis, le = k ? -S[K] / 2 + ke + ae + Y + L.mainAxis : H + ae + Y + L.mainAxis, Ie = e.elements.arrow && Kf(e.elements.arrow), je = Ie ? w === "y" ? Ie.clientTop || 0 : Ie.clientLeft || 0 : 0, tt = (I = N?.[w]) != null ? I : 0, Be = re + he - tt - je, mt = re + le - tt, nt = kc(p ? cu(xe, Be) : xe, re, p ? Vo(Te, mt) : Te);
|
|
53389
53402
|
C[w] = nt, T[w] = nt - re;
|
|
53390
53403
|
}
|
|
53391
53404
|
if (a) {
|
|
53392
|
-
var De, j = w === "x" ? di : ui,
|
|
53405
|
+
var De, j = w === "x" ? di : ui, Z = w === "x" ? Xi : Yi, ie = C[_], Se = _ === "y" ? "height" : "width", Ae = ie + v[j], pe = ie - v[Z], He = [di, ui].indexOf(y) !== -1, Ze = (De = N?.[_]) != null ? De : 0, Ct = He ? Ae : ie - S[Se] - M[Se] - Ze + L.altAxis, _t = He ? ie + S[Se] + M[Se] - Ze - L.altAxis : pe, Wt = p && He ? boe(Ct, ie, _t) : kc(p ? Ct : Ae, ie, p ? _t : pe);
|
|
53393
53406
|
C[_] = Wt, T[_] = Wt - ie;
|
|
53394
53407
|
}
|
|
53395
53408
|
e.modifiersData[i] = T;
|
|
@@ -53542,11 +53555,11 @@ function lae(t) {
|
|
|
53542
53555
|
d.reset = !1, w = -1;
|
|
53543
53556
|
continue;
|
|
53544
53557
|
}
|
|
53545
|
-
var _ = d.orderedModifiers[w], C = _.fn,
|
|
53558
|
+
var _ = d.orderedModifiers[w], C = _.fn, S = _.options, M = S === void 0 ? {} : S, E = _.name;
|
|
53546
53559
|
typeof C == "function" && (d = C({
|
|
53547
53560
|
state: d,
|
|
53548
53561
|
options: M,
|
|
53549
|
-
name:
|
|
53562
|
+
name: E,
|
|
53550
53563
|
instance: p
|
|
53551
53564
|
}) || d);
|
|
53552
53565
|
}
|
|
@@ -53991,11 +54004,11 @@ function Bae(t, e) {
|
|
|
53991
54004
|
};
|
|
53992
54005
|
if (!n.render)
|
|
53993
54006
|
return process.env.NODE_ENV !== "production" && W2(!0, "render() function has not been supplied."), w;
|
|
53994
|
-
var _ = n.render(w), C = _.popper,
|
|
54007
|
+
var _ = n.render(w), C = _.popper, S = _.onUpdate;
|
|
53995
54008
|
C.setAttribute("data-tippy-root", ""), C.id = "tippy-" + w.id, w.popper = C, t._tippy = w, C._tippy = w;
|
|
53996
54009
|
var M = b.map(function(se) {
|
|
53997
54010
|
return se.fn(w);
|
|
53998
|
-
}),
|
|
54011
|
+
}), E = t.hasAttribute("aria-expanded");
|
|
53999
54012
|
return Ie(), ke(), re(), xe("onCreate", [w]), n.showOnCreate && Ae(), C.addEventListener("mouseenter", function() {
|
|
54000
54013
|
w.props.interactive && w.state.isVisible && w.clearDelayTimeouts();
|
|
54001
54014
|
}), C.addEventListener("mouseleave", function() {
|
|
@@ -54019,10 +54032,10 @@ function Bae(t, e) {
|
|
|
54019
54032
|
var se = I().parentNode;
|
|
54020
54033
|
return se ? bae(se) : document;
|
|
54021
54034
|
}
|
|
54022
|
-
function
|
|
54035
|
+
function q() {
|
|
54023
54036
|
return q2(C);
|
|
54024
54037
|
}
|
|
54025
|
-
function
|
|
54038
|
+
function K(se) {
|
|
54026
54039
|
return w.state.isMounted && !w.state.isVisible || Ar.isTouch || d && d.type === "focus" ? 0 : hp(w.props.delay, se ? 0 : 1, Si.delay);
|
|
54027
54040
|
}
|
|
54028
54041
|
function re(se) {
|
|
@@ -54052,7 +54065,7 @@ function Bae(t, e) {
|
|
|
54052
54065
|
}
|
|
54053
54066
|
}
|
|
54054
54067
|
function ke() {
|
|
54055
|
-
if (!(
|
|
54068
|
+
if (!(E || !w.props.aria.expanded)) {
|
|
54056
54069
|
var se = Da(w.props.triggerTarget || t);
|
|
54057
54070
|
se.forEach(function(ze) {
|
|
54058
54071
|
w.props.interactive ? ze.setAttribute("aria-expanded", w.state.isVisible && ze === I() ? "true" : "false") : ze.removeAttribute("aria-expanded");
|
|
@@ -54081,7 +54094,7 @@ function Bae(t, e) {
|
|
|
54081
54094
|
}
|
|
54082
54095
|
}
|
|
54083
54096
|
}
|
|
54084
|
-
function
|
|
54097
|
+
function G() {
|
|
54085
54098
|
l = !0;
|
|
54086
54099
|
}
|
|
54087
54100
|
function W() {
|
|
@@ -54089,11 +54102,11 @@ function Bae(t, e) {
|
|
|
54089
54102
|
}
|
|
54090
54103
|
function P() {
|
|
54091
54104
|
var se = U();
|
|
54092
|
-
se.addEventListener("mousedown", H, !0), se.addEventListener("touchend", H, So), se.addEventListener("touchstart", W, So), se.addEventListener("touchmove",
|
|
54105
|
+
se.addEventListener("mousedown", H, !0), se.addEventListener("touchend", H, So), se.addEventListener("touchstart", W, So), se.addEventListener("touchmove", G, So);
|
|
54093
54106
|
}
|
|
54094
54107
|
function X() {
|
|
54095
54108
|
var se = U();
|
|
54096
|
-
se.removeEventListener("mousedown", H, !0), se.removeEventListener("touchend", H, So), se.removeEventListener("touchstart", W, So), se.removeEventListener("touchmove",
|
|
54109
|
+
se.removeEventListener("mousedown", H, !0), se.removeEventListener("touchend", H, So), se.removeEventListener("touchstart", W, So), se.removeEventListener("touchmove", G, So);
|
|
54097
54110
|
}
|
|
54098
54111
|
function Y(se, ze) {
|
|
54099
54112
|
he(se, function() {
|
|
@@ -54104,7 +54117,7 @@ function Bae(t, e) {
|
|
|
54104
54117
|
he(se, ze);
|
|
54105
54118
|
}
|
|
54106
54119
|
function he(se, ze) {
|
|
54107
|
-
var Xe =
|
|
54120
|
+
var Xe = q().box;
|
|
54108
54121
|
function dt(it) {
|
|
54109
54122
|
it.target === Xe && (mp(Xe, "remove", dt), ze());
|
|
54110
54123
|
}
|
|
@@ -54190,7 +54203,7 @@ function Bae(t, e) {
|
|
|
54190
54203
|
return Ar.isTouch ? N() !== se.type.indexOf("touch") >= 0 : !1;
|
|
54191
54204
|
}
|
|
54192
54205
|
function j() {
|
|
54193
|
-
|
|
54206
|
+
Z();
|
|
54194
54207
|
var se = w.props, ze = se.popperOptions, Xe = se.placement, dt = se.offset, it = se.getReferenceClientRect, Rt = se.moveTransition, Cn = T() ? q2(C).arrow : null, br = it ? {
|
|
54195
54208
|
getBoundingClientRect: it,
|
|
54196
54209
|
contextElement: it.contextElement || I()
|
|
@@ -54202,7 +54215,7 @@ function Bae(t, e) {
|
|
|
54202
54215
|
fn: function(_n) {
|
|
54203
54216
|
var ni = _n.state;
|
|
54204
54217
|
if (T()) {
|
|
54205
|
-
var wo =
|
|
54218
|
+
var wo = q(), zl = wo.box;
|
|
54206
54219
|
["placement", "reference-hidden", "escaped"].forEach(function(ya) {
|
|
54207
54220
|
ya === "placement" ? zl.setAttribute("data-placement", ni.placement) : ni.attributes.popper["data-popper-" + ya] ? zl.setAttribute("data-" + ya, "") : zl.removeAttribute("data-" + ya);
|
|
54208
54221
|
}), ni.attributes.popper = {};
|
|
@@ -54246,7 +54259,7 @@ function Bae(t, e) {
|
|
|
54246
54259
|
modifiers: St
|
|
54247
54260
|
}));
|
|
54248
54261
|
}
|
|
54249
|
-
function
|
|
54262
|
+
function Z() {
|
|
54250
54263
|
w.popperInstance && (w.popperInstance.destroy(), w.popperInstance = null);
|
|
54251
54264
|
}
|
|
54252
54265
|
function ie() {
|
|
@@ -54264,7 +54277,7 @@ function Bae(t, e) {
|
|
|
54264
54277
|
}
|
|
54265
54278
|
function Ae(se) {
|
|
54266
54279
|
w.clearDelayTimeouts(), se && xe("onTrigger", [w, se]), P();
|
|
54267
|
-
var ze =
|
|
54280
|
+
var ze = K(!0), Xe = L(), dt = Xe[0], it = Xe[1];
|
|
54268
54281
|
Ar.isTouch && dt === "hold" && it && (ze = it), ze ? i = setTimeout(function() {
|
|
54269
54282
|
w.show();
|
|
54270
54283
|
}, ze) : w.show();
|
|
@@ -54275,7 +54288,7 @@ function Bae(t, e) {
|
|
|
54275
54288
|
return;
|
|
54276
54289
|
}
|
|
54277
54290
|
if (!(w.props.trigger.indexOf("mouseenter") >= 0 && w.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(se.type) >= 0 && o)) {
|
|
54278
|
-
var ze =
|
|
54291
|
+
var ze = K(!1);
|
|
54279
54292
|
ze ? r = setTimeout(function() {
|
|
54280
54293
|
w.state.isVisible && w.hide();
|
|
54281
54294
|
}, ze) : s = requestAnimationFrame(function() {
|
|
@@ -54300,7 +54313,7 @@ function Bae(t, e) {
|
|
|
54300
54313
|
}));
|
|
54301
54314
|
w.props = Xe, Ie(), ze.interactiveDebounce !== Xe.interactiveDebounce && (me(), m = J9(Be, Xe.interactiveDebounce)), ze.triggerTarget && !Xe.triggerTarget ? Da(ze.triggerTarget).forEach(function(dt) {
|
|
54302
54315
|
dt.removeAttribute("aria-expanded");
|
|
54303
|
-
}) : Xe.triggerTarget && t.removeAttribute("aria-expanded"), ke(), re(),
|
|
54316
|
+
}) : Xe.triggerTarget && t.removeAttribute("aria-expanded"), ke(), re(), S && S(ze, Xe), w.popperInstance && (j(), Se().forEach(function(dt) {
|
|
54304
54317
|
requestAnimationFrame(dt._tippy.popperInstance.forceUpdate);
|
|
54305
54318
|
})), xe("onAfterUpdate", [w, se]);
|
|
54306
54319
|
}
|
|
@@ -54315,14 +54328,14 @@ function Bae(t, e) {
|
|
|
54315
54328
|
var se = w.state.isVisible, ze = w.state.isDestroyed, Xe = !w.state.isEnabled, dt = Ar.isTouch && !w.props.touch, it = hp(w.props.duration, 0, Si.duration);
|
|
54316
54329
|
if (!(se || ze || Xe || dt) && !I().hasAttribute("disabled") && (xe("onShow", [w], !1), w.props.onShow(w) !== !1)) {
|
|
54317
54330
|
if (w.state.isVisible = !0, T() && (C.style.visibility = "visible"), re(), P(), w.state.isMounted || (C.style.transition = "none"), T()) {
|
|
54318
|
-
var Rt =
|
|
54331
|
+
var Rt = q(), Cn = Rt.box, br = Rt.content;
|
|
54319
54332
|
pp([Cn, br], 0);
|
|
54320
54333
|
}
|
|
54321
54334
|
h = function() {
|
|
54322
54335
|
var St;
|
|
54323
54336
|
if (!(!w.state.isVisible || c)) {
|
|
54324
54337
|
if (c = !0, C.offsetHeight, C.style.transition = w.props.moveTransition, T() && w.props.animation) {
|
|
54325
|
-
var Pt =
|
|
54338
|
+
var Pt = q(), _n = Pt.box, ni = Pt.content;
|
|
54326
54339
|
pp([_n, ni], it), Q9([_n, ni], "visible");
|
|
54327
54340
|
}
|
|
54328
54341
|
Te(), ke(), X9(gp, w), (St = w.popperInstance) == null || St.forceUpdate(), xe("onMount", [w]), w.props.animation && T() && ae(it, function() {
|
|
@@ -54337,7 +54350,7 @@ function Bae(t, e) {
|
|
|
54337
54350
|
var se = !w.state.isVisible, ze = w.state.isDestroyed, Xe = !w.state.isEnabled, dt = hp(w.props.duration, 1, Si.duration);
|
|
54338
54351
|
if (!(se || ze || Xe) && (xe("onHide", [w], !1), w.props.onHide(w) !== !1)) {
|
|
54339
54352
|
if (w.state.isVisible = !1, w.state.isShown = !1, c = !1, o = !1, T() && (C.style.visibility = "hidden"), me(), X(), re(!0), T()) {
|
|
54340
|
-
var it =
|
|
54353
|
+
var it = q(), Rt = it.box, Cn = it.content;
|
|
54341
54354
|
w.props.animation && (pp([Rt, Cn], dt), Q9([Rt, Cn], "hidden"));
|
|
54342
54355
|
}
|
|
54343
54356
|
Te(), ke(), w.props.animation ? T() && Y(dt, w.unmount) : w.unmount();
|
|
@@ -54347,7 +54360,7 @@ function Bae(t, e) {
|
|
|
54347
54360
|
process.env.NODE_ENV !== "production" && ts(w.state.isDestroyed, Ea("hideWithInteractivity")), U().addEventListener("mousemove", m), X9(_d, m), m(se);
|
|
54348
54361
|
}
|
|
54349
54362
|
function wr() {
|
|
54350
|
-
process.env.NODE_ENV !== "production" && ts(w.state.isDestroyed, Ea("unmount")), w.state.isVisible && w.hide(), w.state.isMounted && (
|
|
54363
|
+
process.env.NODE_ENV !== "production" && ts(w.state.isDestroyed, Ea("unmount")), w.state.isVisible && w.hide(), w.state.isMounted && (Z(), Se().forEach(function(se) {
|
|
54351
54364
|
se._tippy.unmount();
|
|
54352
54365
|
}), C.parentNode && C.parentNode.removeChild(C), gp = gp.filter(function(se) {
|
|
54353
54366
|
return se !== w;
|
|
@@ -54451,8 +54464,8 @@ class Hae {
|
|
|
54451
54464
|
if (RS(m.selection)) {
|
|
54452
54465
|
let C = a.nodeDOM(k);
|
|
54453
54466
|
if (C) {
|
|
54454
|
-
const
|
|
54455
|
-
if (
|
|
54467
|
+
const S = C.dataset.nodeViewWrapper ? C : C.querySelector("[data-node-view-wrapper]");
|
|
54468
|
+
if (S && (C = S.firstChild), C)
|
|
54456
54469
|
return C.getBoundingClientRect();
|
|
54457
54470
|
}
|
|
54458
54471
|
}
|
|
@@ -54578,10 +54591,10 @@ function zae() {
|
|
|
54578
54591
|
}
|
|
54579
54592
|
function i(k, w, _) {
|
|
54580
54593
|
{
|
|
54581
|
-
var C = e.ReactDebugCurrentFrame,
|
|
54582
|
-
|
|
54583
|
-
var M = _.map(function(
|
|
54584
|
-
return String(
|
|
54594
|
+
var C = e.ReactDebugCurrentFrame, S = C.getStackAddendum();
|
|
54595
|
+
S !== "" && (w += "%s", _ = _.concat([S]));
|
|
54596
|
+
var M = _.map(function(E) {
|
|
54597
|
+
return String(E);
|
|
54585
54598
|
});
|
|
54586
54599
|
M.unshift("Warning: " + w), Function.prototype.apply.call(console[k], console, M);
|
|
54587
54600
|
}
|
|
@@ -54594,26 +54607,26 @@ function zae() {
|
|
|
54594
54607
|
d || t.startTransition !== void 0 && (d = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
54595
54608
|
var C = w();
|
|
54596
54609
|
if (!u) {
|
|
54597
|
-
var
|
|
54598
|
-
s(C,
|
|
54610
|
+
var S = w();
|
|
54611
|
+
s(C, S) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), u = !0);
|
|
54599
54612
|
}
|
|
54600
54613
|
var M = o({
|
|
54601
54614
|
inst: {
|
|
54602
54615
|
value: C,
|
|
54603
54616
|
getSnapshot: w
|
|
54604
54617
|
}
|
|
54605
|
-
}),
|
|
54618
|
+
}), E = M[0].inst, L = M[1];
|
|
54606
54619
|
return l(function() {
|
|
54607
|
-
|
|
54608
|
-
inst:
|
|
54620
|
+
E.value = C, E.getSnapshot = w, p(E) && L({
|
|
54621
|
+
inst: E
|
|
54609
54622
|
});
|
|
54610
54623
|
}, [k, C, w]), a(function() {
|
|
54611
|
-
p(
|
|
54612
|
-
inst:
|
|
54624
|
+
p(E) && L({
|
|
54625
|
+
inst: E
|
|
54613
54626
|
});
|
|
54614
54627
|
var N = function() {
|
|
54615
|
-
p(
|
|
54616
|
-
inst:
|
|
54628
|
+
p(E) && L({
|
|
54629
|
+
inst: E
|
|
54617
54630
|
});
|
|
54618
54631
|
};
|
|
54619
54632
|
return k(N);
|
|
@@ -54803,14 +54816,14 @@ function Jae() {
|
|
|
54803
54816
|
function y(C) {
|
|
54804
54817
|
if (!b) {
|
|
54805
54818
|
if (b = !0, k = C, C = h(C), p !== void 0 && g.hasValue) {
|
|
54806
|
-
var
|
|
54807
|
-
if (p(
|
|
54819
|
+
var S = g.value;
|
|
54820
|
+
if (p(S, C)) return w = S;
|
|
54808
54821
|
}
|
|
54809
54822
|
return w = C;
|
|
54810
54823
|
}
|
|
54811
|
-
if (
|
|
54824
|
+
if (S = w, i(k, C)) return S;
|
|
54812
54825
|
var M = h(C);
|
|
54813
|
-
return p !== void 0 && p(
|
|
54826
|
+
return p !== void 0 && p(S, M) ? S : (k = C, w = M);
|
|
54814
54827
|
}
|
|
54815
54828
|
var b = !1, k, w, _ = u === void 0 ? null : u;
|
|
54816
54829
|
return [function() {
|
|
@@ -54842,26 +54855,26 @@ function Xae() {
|
|
|
54842
54855
|
value: null
|
|
54843
54856
|
}, g.current = v) : v = g.current;
|
|
54844
54857
|
var y = a(function() {
|
|
54845
|
-
var _ = !1, C,
|
|
54858
|
+
var _ = !1, C, S, M = function(T) {
|
|
54846
54859
|
if (!_) {
|
|
54847
54860
|
_ = !0, C = T;
|
|
54848
54861
|
var I = p(T);
|
|
54849
54862
|
if (m !== void 0 && v.hasValue) {
|
|
54850
54863
|
var U = v.value;
|
|
54851
54864
|
if (m(U, I))
|
|
54852
|
-
return
|
|
54865
|
+
return S = U, U;
|
|
54853
54866
|
}
|
|
54854
|
-
return
|
|
54867
|
+
return S = I, I;
|
|
54855
54868
|
}
|
|
54856
|
-
var
|
|
54857
|
-
if (i(
|
|
54858
|
-
return
|
|
54869
|
+
var q = C, K = S;
|
|
54870
|
+
if (i(q, T))
|
|
54871
|
+
return K;
|
|
54859
54872
|
var re = p(T);
|
|
54860
|
-
return m !== void 0 && m(
|
|
54861
|
-
},
|
|
54873
|
+
return m !== void 0 && m(K, re) ? K : (C = T, S = re, re);
|
|
54874
|
+
}, E = h === void 0 ? null : h, L = function() {
|
|
54862
54875
|
return M(u());
|
|
54863
|
-
}, N =
|
|
54864
|
-
return M(
|
|
54876
|
+
}, N = E === null ? void 0 : function() {
|
|
54877
|
+
return M(E());
|
|
54865
54878
|
};
|
|
54866
54879
|
return [L, N];
|
|
54867
54880
|
}, [u, h, p, m]), b = y[0], k = y[1], w = r(d, b, k);
|
|
@@ -56709,10 +56722,10 @@ const du = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Qle = (t, e,
|
|
|
56709
56722
|
return !1;
|
|
56710
56723
|
const { tr: _ } = e, C = r.after(-2);
|
|
56711
56724
|
_.replaceWith(C, C, w);
|
|
56712
|
-
const
|
|
56725
|
+
const S = _.doc.resolve(C), M = Ye.near(S, 1);
|
|
56713
56726
|
_.setSelection(M);
|
|
56714
|
-
const
|
|
56715
|
-
return _.delete(
|
|
56727
|
+
const E = g, L = g + m.nodeSize;
|
|
56728
|
+
return _.delete(E, L), _.scrollIntoView(), n.dispatch(_), !0;
|
|
56716
56729
|
}
|
|
56717
56730
|
};
|
|
56718
56731
|
}
|
|
@@ -57334,8 +57347,8 @@ function pce({
|
|
|
57334
57347
|
ot(k, t.numeric, w);
|
|
57335
57348
|
const _ = Ii(Td), C = Ii();
|
|
57336
57349
|
ot(_, e, _), ot(_, n, C), ot(C, e, _), ot(C, n, C), Ce(b, Lr, _), Ce(w, Lr, _);
|
|
57337
|
-
const
|
|
57338
|
-
ot(a, t.domain, o), Ce(a, Er, y), Ce(a, Hi, v), ot(l, t.domain, o), Ce(l, Er, y), Ce(l, Hi, v), ot(
|
|
57350
|
+
const S = Ce(a, $s), M = Ce(l, $s), E = Ce(M, Lr), L = Ce(E, Lr);
|
|
57351
|
+
ot(a, t.domain, o), Ce(a, Er, y), Ce(a, Hi, v), ot(l, t.domain, o), Ce(l, Er, y), Ce(l, Hi, v), ot(S, t.domain, _), Ce(S, Lr, _), Ce(S, Lc, _), ot(L, t.domain, _), ot(L, e, _), Ce(L, Lr, _);
|
|
57339
57352
|
const N = [
|
|
57340
57353
|
[_c, Sc],
|
|
57341
57354
|
// {}
|
|
@@ -57355,12 +57368,12 @@ function pce({
|
|
|
57355
57368
|
// <>
|
|
57356
57369
|
];
|
|
57357
57370
|
for (let T = 0; T < N.length; T++) {
|
|
57358
|
-
const [I, U] = N[T],
|
|
57359
|
-
Ce(C, I,
|
|
57360
|
-
const
|
|
57361
|
-
ot(
|
|
57371
|
+
const [I, U] = N[T], q = Ce(_, I);
|
|
57372
|
+
Ce(C, I, q), Ce(q, U, _);
|
|
57373
|
+
const K = Ii(Td);
|
|
57374
|
+
ot(q, e, K);
|
|
57362
57375
|
const re = Ii();
|
|
57363
|
-
ot(
|
|
57376
|
+
ot(q, n), ot(K, e, K), ot(K, n, re), ot(re, e, K), ot(re, n, re), Ce(K, U, _), Ce(re, U, _);
|
|
57364
57377
|
}
|
|
57365
57378
|
return Ce(r, af, b), Ce(r, gg, hce), {
|
|
57366
57379
|
start: r,
|
|
@@ -59051,8 +59064,8 @@ function xfe(t) {
|
|
|
59051
59064
|
});
|
|
59052
59065
|
const C = b && b[_];
|
|
59053
59066
|
if (C) {
|
|
59054
|
-
const
|
|
59055
|
-
M == null || M != C && o[
|
|
59067
|
+
const S = (w + _) % e * 2, M = o[S];
|
|
59068
|
+
M == null || M != C && o[S + 1] == 1 ? (o[S] = C, o[S + 1] = 1) : M == C && o[S + 1]++;
|
|
59056
59069
|
}
|
|
59057
59070
|
}
|
|
59058
59071
|
}
|
|
@@ -61175,11 +61188,11 @@ function BE({ pluginKey: t = Pde, editor: e, char: n = "@", allowSpaces: i = !1,
|
|
|
61175
61188
|
view() {
|
|
61176
61189
|
return {
|
|
61177
61190
|
update: async (y, b) => {
|
|
61178
|
-
var k, w, _, C,
|
|
61179
|
-
const L = (k = this.key) === null || k === void 0 ? void 0 : k.getState(b), N = (w = this.key) === null || w === void 0 ? void 0 : w.getState(y.state), T = L.active && N.active && L.range.from !== N.range.from, I = !L.active && N.active, U = L.active && !N.active,
|
|
61180
|
-
if (!
|
|
61191
|
+
var k, w, _, C, S, M, E;
|
|
61192
|
+
const L = (k = this.key) === null || k === void 0 ? void 0 : k.getState(b), N = (w = this.key) === null || w === void 0 ? void 0 : w.getState(y.state), T = L.active && N.active && L.range.from !== N.range.from, I = !L.active && N.active, U = L.active && !N.active, q = !I && !U && L.query !== N.query, K = I || T && q, re = q || T, xe = U || T && q;
|
|
61193
|
+
if (!K && !re && !xe)
|
|
61181
61194
|
return;
|
|
61182
|
-
const Te = xe && !
|
|
61195
|
+
const Te = xe && !K ? L : N, ke = y.dom.querySelector(`[data-decoration-id="${Te.decorationId}"]`);
|
|
61183
61196
|
m = {
|
|
61184
61197
|
editor: e,
|
|
61185
61198
|
range: Te.range,
|
|
@@ -61196,13 +61209,13 @@ function BE({ pluginKey: t = Pde, editor: e, char: n = "@", allowSpaces: i = !1,
|
|
|
61196
61209
|
// this can be used for building popups without a DOM node
|
|
61197
61210
|
clientRect: ke ? () => {
|
|
61198
61211
|
var me;
|
|
61199
|
-
const { decorationId: H } = (me = this.key) === null || me === void 0 ? void 0 : me.getState(e.state),
|
|
61200
|
-
return
|
|
61212
|
+
const { decorationId: H } = (me = this.key) === null || me === void 0 ? void 0 : me.getState(e.state), G = y.dom.querySelector(`[data-decoration-id="${H}"]`);
|
|
61213
|
+
return G?.getBoundingClientRect() || null;
|
|
61201
61214
|
} : null
|
|
61202
|
-
},
|
|
61215
|
+
}, K && ((_ = g?.onBeforeStart) === null || _ === void 0 || _.call(g, m)), re && ((C = g?.onBeforeUpdate) === null || C === void 0 || C.call(g, m)), (re || K) && (m.items = await d({
|
|
61203
61216
|
editor: e,
|
|
61204
61217
|
query: Te.query
|
|
61205
|
-
})), xe && ((
|
|
61218
|
+
})), xe && ((S = g?.onExit) === null || S === void 0 || S.call(g, m)), re && ((M = g?.onUpdate) === null || M === void 0 || M.call(g, m)), K && ((E = g?.onStart) === null || E === void 0 || E.call(g, m));
|
|
61206
61219
|
},
|
|
61207
61220
|
destroy: () => {
|
|
61208
61221
|
var y;
|
|
@@ -61226,16 +61239,16 @@ function BE({ pluginKey: t = Pde, editor: e, char: n = "@", allowSpaces: i = !1,
|
|
|
61226
61239
|
},
|
|
61227
61240
|
// Apply changes to the plugin state from a view transaction.
|
|
61228
61241
|
apply(y, b, k, w) {
|
|
61229
|
-
const { isEditable: _ } = e, { composing: C } = e.view, { selection:
|
|
61242
|
+
const { isEditable: _ } = e, { composing: C } = e.view, { selection: S } = y, { empty: M, from: E } = S, L = { ...b };
|
|
61230
61243
|
if (L.composing = C, _ && (M || e.view.composing)) {
|
|
61231
|
-
(
|
|
61244
|
+
(E < b.range.from || E > b.range.to) && !C && !b.composing && (L.active = !1);
|
|
61232
61245
|
const N = p({
|
|
61233
61246
|
char: n,
|
|
61234
61247
|
allowSpaces: i,
|
|
61235
61248
|
allowToIncludeChar: r,
|
|
61236
61249
|
allowedPrefixes: s,
|
|
61237
61250
|
startOfLine: o,
|
|
61238
|
-
$position:
|
|
61251
|
+
$position: S.$from
|
|
61239
61252
|
}), T = `id_${Math.floor(Math.random() * 4294967295)}`;
|
|
61240
61253
|
N && h({
|
|
61241
61254
|
editor: e,
|
|
@@ -70273,7 +70286,7 @@ const Fhe = (t) => {
|
|
|
70273
70286
|
}, r))]
|
|
70274
70287
|
})]
|
|
70275
70288
|
}), Eme = V(function({ onChange: e, placeholder: n, initialEditorState: i, readonly: r = !1, labels: s, aiBlockConfig: o, onTitleChange: a, actions: l, secondaryActions: c, metadata: d, withPadding: u = !0, showBubbleMenu: h = !1 }, p) {
|
|
70276
|
-
const { toolbarLabels: m, slashCommandGroupLabels: g, aiBlockLabels: v, moodTrackerLabels: y, liveCompanionLabels: b, transcriptLabels: k } = s, w = _e(null), _ = _e(null), C = Sl(), [
|
|
70289
|
+
const { toolbarLabels: m, slashCommandGroupLabels: g, aiBlockLabels: v, moodTrackerLabels: y, liveCompanionLabels: b, transcriptLabels: k } = s, w = _e(null), _ = _e(null), C = Sl(), [S] = J(() => i?.content || ""), [M, E] = J(i?.title || "");
|
|
70277
70290
|
Le(() => {
|
|
70278
70291
|
a && a(M);
|
|
70279
70292
|
}, [M, a]);
|
|
@@ -70288,14 +70301,14 @@ const Fhe = (t) => {
|
|
|
70288
70301
|
labels: v,
|
|
70289
70302
|
placeholder: n
|
|
70290
70303
|
} : void 0, v, y, b, k),
|
|
70291
|
-
content:
|
|
70292
|
-
onUpdate: ({ editor:
|
|
70293
|
-
e(
|
|
70304
|
+
content: S,
|
|
70305
|
+
onUpdate: ({ editor: K }) => {
|
|
70306
|
+
e(K.isEmpty ? {
|
|
70294
70307
|
json: null,
|
|
70295
70308
|
html: null
|
|
70296
70309
|
} : {
|
|
70297
|
-
json:
|
|
70298
|
-
html:
|
|
70310
|
+
json: K.getJSON(),
|
|
70311
|
+
html: K.getHTML()
|
|
70299
70312
|
});
|
|
70300
70313
|
},
|
|
70301
70314
|
editable: !r
|
|
@@ -70303,10 +70316,10 @@ const Fhe = (t) => {
|
|
|
70303
70316
|
c0(p, () => ({
|
|
70304
70317
|
clear: () => L?.commands.clearContent(),
|
|
70305
70318
|
focus: () => L?.commands.focus(),
|
|
70306
|
-
setContent: (
|
|
70319
|
+
setContent: (K) => L?.commands.setContent(K),
|
|
70307
70320
|
insertAIBlock: () => {
|
|
70308
70321
|
if (!L || !o) return;
|
|
70309
|
-
const
|
|
70322
|
+
const K = v ? {
|
|
70310
70323
|
...o,
|
|
70311
70324
|
labels: v
|
|
70312
70325
|
} : void 0;
|
|
@@ -70317,14 +70330,14 @@ const Fhe = (t) => {
|
|
|
70317
70330
|
content: null,
|
|
70318
70331
|
selectedAction: void 0
|
|
70319
70332
|
},
|
|
70320
|
-
config:
|
|
70333
|
+
config: K,
|
|
70321
70334
|
isCollapsed: !1
|
|
70322
70335
|
}
|
|
70323
70336
|
}, {
|
|
70324
70337
|
type: "paragraph"
|
|
70325
70338
|
}]).run();
|
|
70326
70339
|
},
|
|
70327
|
-
insertTranscript: (
|
|
70340
|
+
insertTranscript: (K, re, xe) => {
|
|
70328
70341
|
if (!L) return;
|
|
70329
70342
|
const Te = k ? {
|
|
70330
70343
|
labels: k
|
|
@@ -70333,7 +70346,7 @@ const Fhe = (t) => {
|
|
|
70333
70346
|
type: "transcript",
|
|
70334
70347
|
attrs: {
|
|
70335
70348
|
data: {
|
|
70336
|
-
title:
|
|
70349
|
+
title: K,
|
|
70337
70350
|
users: re,
|
|
70338
70351
|
messages: xe
|
|
70339
70352
|
},
|
|
@@ -70344,21 +70357,21 @@ const Fhe = (t) => {
|
|
|
70344
70357
|
type: "paragraph"
|
|
70345
70358
|
}]).run();
|
|
70346
70359
|
},
|
|
70347
|
-
pushContent: (
|
|
70348
|
-
L && L.chain().focus().insertContentAt(L.state.doc.content.size,
|
|
70360
|
+
pushContent: (K) => {
|
|
70361
|
+
L && L.chain().focus().insertContentAt(L.state.doc.content.size, K).run();
|
|
70349
70362
|
}
|
|
70350
70363
|
}));
|
|
70351
70364
|
const N = we(() => ({
|
|
70352
70365
|
offset: [0, 5]
|
|
70353
|
-
}), []), T = Qe(({ node:
|
|
70354
|
-
_.current =
|
|
70366
|
+
}), []), T = Qe(({ node: K, pos: re }) => {
|
|
70367
|
+
_.current = K ? {
|
|
70355
70368
|
pos: re,
|
|
70356
|
-
nodeSize:
|
|
70369
|
+
nodeSize: K.nodeSize
|
|
70357
70370
|
} : null;
|
|
70358
70371
|
}, []), I = Qe(() => {
|
|
70359
|
-
const
|
|
70360
|
-
if (!
|
|
70361
|
-
const { pos: re, nodeSize: xe } =
|
|
70372
|
+
const K = _.current;
|
|
70373
|
+
if (!K || !L) return;
|
|
70374
|
+
const { pos: re, nodeSize: xe } = K, Te = L.state.doc.nodeAt(re);
|
|
70362
70375
|
if (Te && Te.content.size === 0)
|
|
70363
70376
|
L.chain().focus().setTextSelection(re + 1).insertContent("/").run();
|
|
70364
70377
|
else {
|
|
@@ -70367,7 +70380,7 @@ const Fhe = (t) => {
|
|
|
70367
70380
|
type: "paragraph"
|
|
70368
70381
|
}).setTextSelection(ke + 1).insertContent("/").run();
|
|
70369
70382
|
}
|
|
70370
|
-
}, [L]), U = l && l.length > 0 || d && d.length > 0 || c && c.length > 0,
|
|
70383
|
+
}, [L]), U = l && l.length > 0 || d && d.length > 0 || c && c.length > 0, q = a || M;
|
|
70371
70384
|
return L ? x("div", {
|
|
70372
70385
|
className: "relative flex h-full w-full flex-col",
|
|
70373
70386
|
ref: w,
|
|
@@ -70387,12 +70400,12 @@ const Fhe = (t) => {
|
|
|
70387
70400
|
})
|
|
70388
70401
|
}), x(Zi, {
|
|
70389
70402
|
className: "h-full gap-6",
|
|
70390
|
-
children: [
|
|
70403
|
+
children: [q && f("div", {
|
|
70391
70404
|
className: `mx-auto flex w-full max-w-[824px] flex-col pb-4 pt-5 transition-all duration-300 ${u ? "px-14" : "pl-12"}`,
|
|
70392
70405
|
children: f("input", {
|
|
70393
70406
|
disabled: !a || r,
|
|
70394
70407
|
value: M,
|
|
70395
|
-
onChange: (
|
|
70408
|
+
onChange: (K) => E(K.target.value),
|
|
70396
70409
|
placeholder: s.titlePlaceholder || "",
|
|
70397
70410
|
className: "notes-text-editor-title text-[39px] font-semibold tracking-[-0.78px] text-f1-foreground placeholder-f1-foreground-tertiary"
|
|
70398
70411
|
})
|
|
@@ -70996,16 +71009,16 @@ const Fhe = (t) => {
|
|
|
70996
71009
|
const [v, y] = J(!1), b = _e(null), [k, w] = J(0);
|
|
70997
71010
|
Le(() => {
|
|
70998
71011
|
b.current && w(b.current.offsetWidth);
|
|
70999
|
-
const
|
|
71012
|
+
const E = () => {
|
|
71000
71013
|
b.current && w(b.current.offsetWidth);
|
|
71001
71014
|
};
|
|
71002
|
-
return window.addEventListener("resize",
|
|
71015
|
+
return window.addEventListener("resize", E), () => window.removeEventListener("resize", E);
|
|
71003
71016
|
}, []);
|
|
71004
|
-
const _ = k < 500, C = (
|
|
71005
|
-
|
|
71006
|
-
},
|
|
71007
|
-
onClick: (
|
|
71008
|
-
|
|
71017
|
+
const _ = k < 500, C = (E) => {
|
|
71018
|
+
E.preventDefault(), r?.current ? r.current.click() : document.getElementById("rich-text-editor-upload-button")?.click();
|
|
71019
|
+
}, S = () => f(Ee, {
|
|
71020
|
+
onClick: (E) => {
|
|
71021
|
+
E?.preventDefault(), p(!0);
|
|
71009
71022
|
},
|
|
71010
71023
|
variant: "outline",
|
|
71011
71024
|
size: "md",
|
|
@@ -71081,10 +71094,10 @@ const Fhe = (t) => {
|
|
|
71081
71094
|
delay: m ? 0 : 0.2,
|
|
71082
71095
|
ease: "easeInOut"
|
|
71083
71096
|
},
|
|
71084
|
-
children: [
|
|
71097
|
+
children: [S(), M()]
|
|
71085
71098
|
}), c && x("div", {
|
|
71086
71099
|
className: "flex items-center gap-2",
|
|
71087
|
-
children: [!m &&
|
|
71100
|
+
children: [!m && S(), M()]
|
|
71088
71101
|
})]
|
|
71089
71102
|
}), f(Xhe, {
|
|
71090
71103
|
primaryAction: i,
|
|
@@ -71243,7 +71256,7 @@ const spe = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
71243
71256
|
if (!t) return null;
|
|
71244
71257
|
t.commands.setContent(e);
|
|
71245
71258
|
}, upe = V(function({ mentionsConfig: e, enhanceConfig: n, filesConfig: i, secondaryAction: r, primaryAction: s, maxCharacters: o, initialEditorState: a, onChange: l, placeholder: c, toolbarLabels: d, title: u, errorConfig: h, height: p = "auto", plainHtmlMode: m = !1, fullScreenMode: g = !0 }, v) {
|
|
71246
|
-
const y = Sl(), b = _e(null), k = _e(null), w = _e(null), [_, C] = J(!1), [
|
|
71259
|
+
const y = Sl(), b = _e(null), k = _e(null), w = _e(null), [_, C] = J(!1), [S, M] = J(!0), [E, L] = J(!1), [N, T] = J(!1), [I, U] = J(!1), [q, K] = J(!1), [re, xe] = J(null), [Te, ke] = J(!1), [me, H] = J(null), [G, W] = J(a?.files || []), [P, X] = J(e?.users || []), [Y, ae] = J({
|
|
71247
71260
|
html: a?.content || "",
|
|
71248
71261
|
json: null
|
|
71249
71262
|
});
|
|
@@ -71258,15 +71271,15 @@ const spe = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
71258
71271
|
heightThreshold: Be
|
|
71259
71272
|
});
|
|
71260
71273
|
}, [p, N]), Le(() => {
|
|
71261
|
-
if (
|
|
71274
|
+
if (E && w.current) {
|
|
71262
71275
|
const Be = w.current.getBoundingClientRect().height;
|
|
71263
|
-
|
|
71276
|
+
K(Be < 64);
|
|
71264
71277
|
} else
|
|
71265
|
-
|
|
71266
|
-
}, [
|
|
71278
|
+
K(!1);
|
|
71279
|
+
}, [E]);
|
|
71267
71280
|
const he = () => {
|
|
71268
71281
|
T((Be) => !Be);
|
|
71269
|
-
}, le = !!(I ||
|
|
71282
|
+
}, le = !!(I || E || re), Ie = ag({
|
|
71270
71283
|
extensions: spe({
|
|
71271
71284
|
mentionsConfig: e,
|
|
71272
71285
|
mentionSuggestions: P,
|
|
@@ -71345,9 +71358,9 @@ const spe = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
71345
71358
|
className: D("w-full overflow-hidden", N && "max-w-4xl"),
|
|
71346
71359
|
initial: !1,
|
|
71347
71360
|
animate: {
|
|
71348
|
-
minHeight:
|
|
71349
|
-
opacity:
|
|
71350
|
-
scale:
|
|
71361
|
+
minHeight: q ? "4rem" : "auto",
|
|
71362
|
+
opacity: q ? 0.8 : 1,
|
|
71363
|
+
scale: q ? 0.98 : 1
|
|
71351
71364
|
},
|
|
71352
71365
|
transition: {
|
|
71353
71366
|
duration: 0.4,
|
|
@@ -71358,7 +71371,7 @@ const spe = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
71358
71371
|
})
|
|
71359
71372
|
})
|
|
71360
71373
|
}), f(ut, {
|
|
71361
|
-
children:
|
|
71374
|
+
children: E && f(ye.div, {
|
|
71362
71375
|
initial: {
|
|
71363
71376
|
opacity: 0,
|
|
71364
71377
|
scale: 0.95
|
|
@@ -71422,7 +71435,7 @@ const spe = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
71422
71435
|
})
|
|
71423
71436
|
})]
|
|
71424
71437
|
}), x("div", {
|
|
71425
|
-
className: D("relative z-40 rounded-b-lg bg-f1-background px-3", _ && !
|
|
71438
|
+
className: D("relative z-40 rounded-b-lg bg-f1-background px-3", _ && !S && "shadow-editor-tools"),
|
|
71426
71439
|
children: [f(ut, {
|
|
71427
71440
|
children: (I || re) && x(ye.div, {
|
|
71428
71441
|
initial: {
|
|
@@ -71460,7 +71473,7 @@ const spe = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
71460
71473
|
})]
|
|
71461
71474
|
}, "accordion")
|
|
71462
71475
|
}), f(jhe, {
|
|
71463
|
-
files:
|
|
71476
|
+
files: G,
|
|
71464
71477
|
disabled: le,
|
|
71465
71478
|
filesConfig: i,
|
|
71466
71479
|
setFiles: W,
|
|
@@ -71472,7 +71485,7 @@ const spe = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
71472
71485
|
primaryAction: s,
|
|
71473
71486
|
fileInputRef: b,
|
|
71474
71487
|
canUseFiles: !!i,
|
|
71475
|
-
isLoadingEnhance:
|
|
71488
|
+
isLoadingEnhance: E,
|
|
71476
71489
|
disableButtons: le,
|
|
71477
71490
|
enhanceConfig: n,
|
|
71478
71491
|
isFullscreen: N,
|
|
@@ -72560,27 +72573,27 @@ function Gpe({ text: t, placeholder: e, icon: n, onClick: i }) {
|
|
|
72560
72573
|
});
|
|
72561
72574
|
}
|
|
72562
72575
|
function Vme({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: i, locationId: r, locations: s, canShowLocation: o = !0, locationSelectorDisabled: a = !1, onClockIn: l, onClockOut: c, onBreak: d, breakTypes: u, onChangeBreakTypeId: h, canShowBreakButton: p = !0, canSeeGraph: m = !0, canSeeRemainingTime: g = !0, onChangeLocationId: v, canShowProject: y = !0, projectSelectorElement: b, breakTypeName: k }) {
|
|
72563
|
-
const { status: w, statusText: _, subtitle: C, statusColor:
|
|
72576
|
+
const { status: w, statusText: _, subtitle: C, statusColor: S } = zpe({
|
|
72564
72577
|
data: n,
|
|
72565
72578
|
labels: i,
|
|
72566
72579
|
trackedMinutes: t,
|
|
72567
72580
|
remainingMinutes: e,
|
|
72568
72581
|
canSeeRemainingTime: g
|
|
72569
|
-
}), M = w === "clocked-out",
|
|
72582
|
+
}), M = w === "clocked-out", E = u?.map((ke) => ({
|
|
72570
72583
|
value: ke.id,
|
|
72571
72584
|
label: ke.duration ? `${ke.name} · ${ke.duration}` : ke.name,
|
|
72572
72585
|
description: ke.description,
|
|
72573
72586
|
tag: ke.isPaid ? i.paid : i.unpaid
|
|
72574
72587
|
})) ?? [], [L, N] = J(!1), T = () => {
|
|
72575
|
-
if (
|
|
72588
|
+
if (E.length > 1)
|
|
72576
72589
|
L || N(!0);
|
|
72577
72590
|
else {
|
|
72578
|
-
const ke =
|
|
72591
|
+
const ke = E?.[0]?.value;
|
|
72579
72592
|
d?.(ke);
|
|
72580
72593
|
}
|
|
72581
72594
|
}, I = (ke) => {
|
|
72582
72595
|
h?.(ke), N(!1), d?.(ke);
|
|
72583
|
-
}, U = M && s.length && !a && o,
|
|
72596
|
+
}, U = M && s.length && !a && o, q = s.find((ke) => ke.id === r), K = s.map((ke) => ({
|
|
72584
72597
|
value: ke.id,
|
|
72585
72598
|
label: ke.name,
|
|
72586
72599
|
icon: ke.icon
|
|
@@ -72605,7 +72618,7 @@ function Vme({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: i,
|
|
|
72605
72618
|
children: [f(ye.div, {
|
|
72606
72619
|
className: "absolute inset-0 rounded-full opacity-20",
|
|
72607
72620
|
style: {
|
|
72608
|
-
backgroundColor:
|
|
72621
|
+
backgroundColor: S
|
|
72609
72622
|
},
|
|
72610
72623
|
initial: {
|
|
72611
72624
|
scale: 0.5,
|
|
@@ -72623,7 +72636,7 @@ function Vme({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: i,
|
|
|
72623
72636
|
}), f("div", {
|
|
72624
72637
|
className: "absolute inset-[3px] rounded-full",
|
|
72625
72638
|
style: {
|
|
72626
|
-
backgroundColor:
|
|
72639
|
+
backgroundColor: S
|
|
72627
72640
|
}
|
|
72628
72641
|
})]
|
|
72629
72642
|
})]
|
|
@@ -72642,11 +72655,11 @@ function Vme({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: i,
|
|
|
72642
72655
|
})
|
|
72643
72656
|
}), w === "clocked-in" && x(Je, {
|
|
72644
72657
|
children: [p && f(Je, {
|
|
72645
|
-
children:
|
|
72658
|
+
children: E.length > 1 && h ? f(Ic, {
|
|
72646
72659
|
label: i.break,
|
|
72647
72660
|
hideLabel: !0,
|
|
72648
72661
|
value: "",
|
|
72649
|
-
options:
|
|
72662
|
+
options: E,
|
|
72650
72663
|
onChange: I,
|
|
72651
72664
|
open: L,
|
|
72652
72665
|
onOpenChange: N,
|
|
@@ -72699,7 +72712,7 @@ function Vme({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: i,
|
|
|
72699
72712
|
label: i.selectLocation,
|
|
72700
72713
|
hideLabel: !0,
|
|
72701
72714
|
value: r,
|
|
72702
|
-
options:
|
|
72715
|
+
options: K,
|
|
72703
72716
|
onChange: v,
|
|
72704
72717
|
open: xe,
|
|
72705
72718
|
onOpenChange: Te,
|
|
@@ -72707,17 +72720,17 @@ function Vme({ trackedMinutes: t, remainingMinutes: e, data: n = [], labels: i,
|
|
|
72707
72720
|
children: f("div", {
|
|
72708
72721
|
"aria-label": "Select location",
|
|
72709
72722
|
children: f(Gpe, {
|
|
72710
|
-
text:
|
|
72723
|
+
text: q?.name,
|
|
72711
72724
|
placeholder: i.selectLocation,
|
|
72712
|
-
icon:
|
|
72725
|
+
icon: q?.icon
|
|
72713
72726
|
})
|
|
72714
72727
|
})
|
|
72715
72728
|
}), y && b]
|
|
72716
72729
|
}) : x(Je, {
|
|
72717
|
-
children: [o &&
|
|
72730
|
+
children: [o && q && f(Je, {
|
|
72718
72731
|
children: f(to, {
|
|
72719
|
-
text:
|
|
72720
|
-
icon:
|
|
72732
|
+
text: q.name,
|
|
72733
|
+
icon: q.icon
|
|
72721
72734
|
})
|
|
72722
72735
|
}), y && b, re && k && f(to, {
|
|
72723
72736
|
text: k
|