ados-rcm 1.1.360 → 1.1.361
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +237 -237
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
var d4 = Object.defineProperty;
|
3
3
|
var h4 = (r, e, t) => e in r ? d4(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
4
4
|
var ot = (r, e, t) => h4(r, typeof e != "symbol" ? e + "" : e, t);
|
5
|
-
import An, { useMemo as
|
5
|
+
import An, { useMemo as ve, useState as Ht, useRef as wr, useCallback as pe, useEffect as Ut, Suspense as j_, createElement as p4, createRef as F_, Fragment as Wu } from "react";
|
6
6
|
import $s from "react-dom";
|
7
7
|
var Si = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
8
8
|
function al(r) {
|
@@ -380,17 +380,17 @@ function v4() {
|
|
380
380
|
}
|
381
381
|
function wt(J) {
|
382
382
|
try {
|
383
|
-
return
|
383
|
+
return ye(J), !1;
|
384
384
|
} catch {
|
385
385
|
return !0;
|
386
386
|
}
|
387
387
|
}
|
388
|
-
function
|
388
|
+
function ye(J) {
|
389
389
|
return "" + J;
|
390
390
|
}
|
391
391
|
function Ve(J) {
|
392
392
|
if (wt(J))
|
393
|
-
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ut(J)),
|
393
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ut(J)), ye(J);
|
394
394
|
}
|
395
395
|
var st = b.ReactCurrentOwner, gt = {
|
396
396
|
key: !0,
|
@@ -663,7 +663,7 @@ function _4() {
|
|
663
663
|
["partial", B],
|
664
664
|
["partialRight", V],
|
665
665
|
["rearg", ce]
|
666
|
-
], Ee = "[object Arguments]", nt = "[object Array]", pt = "[object AsyncFunction]", Xe = "[object Boolean]", Ke = "[object Date]", Pe = "[object DOMException]", ke = "[object Error]", Re = "[object Function]", je = "[object GeneratorFunction]", Ie = "[object Map]", Je = "[object Number]", ft = "[object Null]", Ct = "[object Object]", St = "[object Promise]", vt = "[object Proxy]", Dt = "[object RegExp]", Tt = "[object Set]", ct = "[object String]", ut = "[object Symbol]", wt = "[object Undefined]",
|
666
|
+
], Ee = "[object Arguments]", nt = "[object Array]", pt = "[object AsyncFunction]", Xe = "[object Boolean]", Ke = "[object Date]", Pe = "[object DOMException]", ke = "[object Error]", Re = "[object Function]", je = "[object GeneratorFunction]", Ie = "[object Map]", Je = "[object Number]", ft = "[object Null]", Ct = "[object Object]", St = "[object Promise]", vt = "[object Proxy]", Dt = "[object RegExp]", Tt = "[object Set]", ct = "[object String]", ut = "[object Symbol]", wt = "[object Undefined]", ye = "[object WeakMap]", Ve = "[object WeakSet]", st = "[object ArrayBuffer]", gt = "[object DataView]", yt = "[object Float32Array]", Fe = "[object Float64Array]", bt = "[object Int8Array]", Ot = "[object Int16Array]", dr = "[object Int32Array]", Mr = "[object Uint8Array]", nr = "[object Uint8ClampedArray]", de = "[object Uint16Array]", Q = "[object Uint32Array]", qe = /\b__p \+= '';/g, et = /\b(__p \+=) '' \+/g, Rt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, mt = /&(?:amp|lt|gt|quot|#39);/g, At = /[&<>"']/g, Kt = RegExp(mt.source), Bt = RegExp(At.source), lr = /<%-([\s\S]+?)%>/g, gr = /<%([\s\S]+?)%>/g, Lr = /<%=([\s\S]+?)%>/g, hr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Cr = /^\w*$/, Zr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, at = /[\\^$.*+?()[\]{}|]/g, Lt = RegExp(at.source), xt = /^\s+/, Qe = /\s/, jt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, J = /\{\n\/\* \[wrapped with (.+)\] \*/, He = /,? & /, ht = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Mt = /[()=,{}\[\]\/\s]/, rr = /\\(\\)?/g, Xt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Pt = /\w*$/, Jt = /^[-+]0x[0-9a-f]+$/i, Nr = /^0b[01]+$/i, cr = /^\[object .+?Constructor\]$/, pr = /^0o[0-7]+$/i, Vr = /^(?:0|[1-9]\d*)$/, yr = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Xn = /($^)/, En = /['\n\r\u2028\u2029\\]/g, jn = "\\ud800-\\udfff", en = "\\u0300-\\u036f", Jn = "\\ufe20-\\ufe2f", Ln = "\\u20d0-\\u20ff", Qn = en + Jn + Ln, ei = "\\u2700-\\u27bf", ln = "a-z\\xdf-\\xf6\\xf8-\\xff", Fn = "\\xac\\xb1\\xd7\\xf7", Rn = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", vi = "\\u2000-\\u206f", wi = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Ci = "A-Z\\xc0-\\xd6\\xd8-\\xde", Dn = "\\ufe0e\\ufe0f", kn = Fn + Rn + vi + wi, hn = "['’]", ti = "[" + jn + "]", cn = "[" + kn + "]", mn = "[" + Qn + "]", x = "\\d+", N = "[" + ei + "]", U = "[" + ln + "]", K = "[^" + jn + kn + x + ei + ln + Ci + "]", Ae = "\\ud83c[\\udffb-\\udfff]", _e = "(?:" + mn + "|" + Ae + ")", Oe = "[^" + jn + "]", tt = "(?:\\ud83c[\\udde6-\\uddff]){2}", Et = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ft = "[" + Ci + "]", Nt = "\\u200d", xr = "(?:" + U + "|" + K + ")", Jr = "(?:" + Ft + "|" + K + ")", _n = "(?:" + hn + "(?:d|ll|m|re|s|t|ve))?", xn = "(?:" + hn + "(?:D|LL|M|RE|S|T|VE))?", fi = _e + "?", Hn = "[" + Dn + "]?", Ai = "(?:" + Nt + "(?:" + [Oe, tt, Et].join("|") + ")" + Hn + fi + ")*", tn = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", yi = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", zn = Hn + fi + Ai, ri = "(?:" + [N, tt, Et].join("|") + ")" + zn, So = "(?:" + [Oe + mn + "?", mn, tt, Et, ti].join("|") + ")", oo = RegExp(hn, "g"), so = RegExp(mn, "g"), On = RegExp(Ae + "(?=" + Ae + ")|" + So + zn, "g"), wo = RegExp([
|
667
667
|
Ft + "?" + U + "+" + _n + "(?=" + [cn, Ft, "$"].join("|") + ")",
|
668
668
|
Jr + "+" + xn + "(?=" + [cn, Ft + xr, "$"].join("|") + ")",
|
669
669
|
Ft + "?" + xr + "+" + _n,
|
@@ -704,9 +704,9 @@ function _4() {
|
|
704
704
|
"parseInt",
|
705
705
|
"setTimeout"
|
706
706
|
], jr = -1, Ar = {};
|
707
|
-
Ar[yt] = Ar[Fe] = Ar[bt] = Ar[Ot] = Ar[dr] = Ar[Mr] = Ar[nr] = Ar[de] = Ar[Q] = !0, Ar[Ee] = Ar[nt] = Ar[st] = Ar[Xe] = Ar[gt] = Ar[Ke] = Ar[ke] = Ar[Re] = Ar[Ie] = Ar[Je] = Ar[Ct] = Ar[Dt] = Ar[Tt] = Ar[ct] = Ar[
|
707
|
+
Ar[yt] = Ar[Fe] = Ar[bt] = Ar[Ot] = Ar[dr] = Ar[Mr] = Ar[nr] = Ar[de] = Ar[Q] = !0, Ar[Ee] = Ar[nt] = Ar[st] = Ar[Xe] = Ar[gt] = Ar[Ke] = Ar[ke] = Ar[Re] = Ar[Ie] = Ar[Je] = Ar[Ct] = Ar[Dt] = Ar[Tt] = Ar[ct] = Ar[ye] = !1;
|
708
708
|
var Dr = {};
|
709
|
-
Dr[Ee] = Dr[nt] = Dr[st] = Dr[gt] = Dr[Xe] = Dr[Ke] = Dr[yt] = Dr[Fe] = Dr[bt] = Dr[Ot] = Dr[dr] = Dr[Ie] = Dr[Je] = Dr[Ct] = Dr[Dt] = Dr[Tt] = Dr[ct] = Dr[ut] = Dr[Mr] = Dr[nr] = Dr[de] = Dr[Q] = !0, Dr[ke] = Dr[Re] = Dr[
|
709
|
+
Dr[Ee] = Dr[nt] = Dr[st] = Dr[gt] = Dr[Xe] = Dr[Ke] = Dr[yt] = Dr[Fe] = Dr[bt] = Dr[Ot] = Dr[dr] = Dr[Ie] = Dr[Je] = Dr[Ct] = Dr[Dt] = Dr[Tt] = Dr[ct] = Dr[ut] = Dr[Mr] = Dr[nr] = Dr[de] = Dr[Q] = !0, Dr[ke] = Dr[Re] = Dr[ye] = !1;
|
710
710
|
var R = {
|
711
711
|
// Latin-1 Supplement block.
|
712
712
|
À: "A",
|
@@ -2621,7 +2621,7 @@ function _4() {
|
|
2621
2621
|
Ti(a, Ih(o)), o = xs(o);
|
2622
2622
|
return a;
|
2623
2623
|
} : Zh, zi = Bn;
|
2624
|
-
(ao && zi(new ao(new ArrayBuffer(1))) != gt || Qo && zi(new Qo()) != Ie || aa && zi(aa.resolve()) != St || lo && zi(new lo()) != Tt || Oo && zi(new Oo()) !=
|
2624
|
+
(ao && zi(new ao(new ArrayBuffer(1))) != gt || Qo && zi(new Qo()) != Ie || aa && zi(aa.resolve()) != St || lo && zi(new lo()) != Tt || Oo && zi(new Oo()) != ye) && (zi = function(o) {
|
2625
2625
|
var a = Bn(o), p = a == Ct ? o.constructor : t, E = p ? qc(p) : "";
|
2626
2626
|
if (E)
|
2627
2627
|
switch (E) {
|
@@ -2634,7 +2634,7 @@ function _4() {
|
|
2634
2634
|
case uu:
|
2635
2635
|
return Tt;
|
2636
2636
|
case ca:
|
2637
|
-
return
|
2637
|
+
return ye;
|
2638
2638
|
}
|
2639
2639
|
return a;
|
2640
2640
|
});
|
@@ -3640,7 +3640,7 @@ function _4() {
|
|
3640
3640
|
return o === t;
|
3641
3641
|
}
|
3642
3642
|
function gC(o) {
|
3643
|
-
return qn(o) && zi(o) ==
|
3643
|
+
return qn(o) && zi(o) == ye;
|
3644
3644
|
}
|
3645
3645
|
function mC(o) {
|
3646
3646
|
return qn(o) && Bn(o) == Ve;
|
@@ -4462,12 +4462,12 @@ const ze = {
|
|
4462
4462
|
strokeLinecap: "round",
|
4463
4463
|
strokeLinejoin: "round"
|
4464
4464
|
}), Ur = (r) => {
|
4465
|
-
const { icon: e, svgRef: t, ...n } = r, i =
|
4465
|
+
const { icon: e, svgRef: t, ...n } = r, i = ve(() => um[e], [e]);
|
4466
4466
|
return /* @__PURE__ */ v.jsx(i, { ...n });
|
4467
4467
|
}, ON = (r) => {
|
4468
4468
|
const e = er.keys(r);
|
4469
4469
|
return (n) => {
|
4470
|
-
const { icon: i, svgRef: l, ...u } = n, h =
|
4470
|
+
const { icon: i, svgRef: l, ...u } = n, h = ve(() => e.includes(i) ? r[i] : um[i], [i]);
|
4471
4471
|
return /* @__PURE__ */ v.jsx(h, { ...u });
|
4472
4472
|
};
|
4473
4473
|
}, um = Object.freeze({
|
@@ -5405,7 +5405,7 @@ const nA = "_Tooltip_3l8se_1", iA = "_Arrow_3l8se_17", qv = {
|
|
5405
5405
|
}, [t, _, u]), Ut(() => {
|
5406
5406
|
_();
|
5407
5407
|
}, [e, _]);
|
5408
|
-
const S =
|
5408
|
+
const S = ve(() => {
|
5409
5409
|
switch (typeof e) {
|
5410
5410
|
case "boolean":
|
5411
5411
|
return !0;
|
@@ -5486,7 +5486,7 @@ const aA = "_ABase_xbi52_1", lA = "_UseDimming_xbi52_6", cA = "_Dimmer_xbi52_6",
|
|
5486
5486
|
tooltipDelay: g = 0,
|
5487
5487
|
tooltipDirection: m = Fi.S,
|
5488
5488
|
...L
|
5489
|
-
} = r, T = wr(null), w =
|
5489
|
+
} = r, T = wr(null), w = ve(() => t ?? T, [t]), _ = ve(() => typeof n == "string" && n !== "" ? n : u !== void 0 ? u : "", [n, u]), S = ve(() => n || i || l, [n, i, l]), D = ve(
|
5490
5490
|
() => n !== void 0 || i !== void 0 || l !== void 0,
|
5491
5491
|
[n, i, l]
|
5492
5492
|
);
|
@@ -5526,7 +5526,7 @@ const aA = "_ABase_xbi52_1", lA = "_UseDimming_xbi52_6", cA = "_Dimmer_xbi52_6",
|
|
5526
5526
|
AIconButton: bA,
|
5527
5527
|
AThemeButton: _A
|
5528
5528
|
}, PN = ["Primary", "Secondary", "Alter", "Raw"], io = (r) => {
|
5529
|
-
const { type: e = "Primary", onClick: t, noInteractive: n, ...i } = r, l =
|
5529
|
+
const { type: e = "Primary", onClick: t, noInteractive: n, ...i } = r, l = ve(
|
5530
5530
|
() => i.isDisabled || i.isLoading,
|
5531
5531
|
[i.isDisabled, i.isLoading]
|
5532
5532
|
), u = pe(
|
@@ -5560,12 +5560,12 @@ const aA = "_ABase_xbi52_1", lA = "_UseDimming_xbi52_6", cA = "_Dimmer_xbi52_6",
|
|
5560
5560
|
tooltip: h,
|
5561
5561
|
className: g,
|
5562
5562
|
...m
|
5563
|
-
} = r, L =
|
5563
|
+
} = r, L = ve(() => l || u, [l, u]), T = pe(
|
5564
5564
|
(_) => {
|
5565
5565
|
L || i == null || i(_);
|
5566
5566
|
},
|
5567
5567
|
[L, i]
|
5568
|
-
), w =
|
5568
|
+
), w = ve(() => $_.includes(e) ? /* @__PURE__ */ v.jsx(Ur, { icon: e, size: t }) : e, [e, t]);
|
5569
5569
|
return /* @__PURE__ */ v.jsx(
|
5570
5570
|
Xr,
|
5571
5571
|
{
|
@@ -5582,7 +5582,7 @@ const aA = "_ABase_xbi52_1", lA = "_UseDimming_xbi52_6", cA = "_Dimmer_xbi52_6",
|
|
5582
5582
|
function bn(r, e) {
|
5583
5583
|
r !== void 0 && r.length === 1 && (e = r[0]);
|
5584
5584
|
const t = Ht(e);
|
5585
|
-
return
|
5585
|
+
return ve(() => r === void 0 || r.length === 1 ? t : r, [t, r]);
|
5586
5586
|
}
|
5587
5587
|
const xA = {
|
5588
5588
|
Ok: "Ok",
|
@@ -5697,7 +5697,7 @@ const NN = (r, e) => {
|
|
5697
5697
|
HelperText: NA,
|
5698
5698
|
Error: "_Error_16uyn_38"
|
5699
5699
|
}, jN = ["Default", "Error"], Vu = (r) => {
|
5700
|
-
const { wrapProps: e, errorMessage: t, helperText: n, wrapType: i = "Default", label: l, labelProps: u, children: h } = r, g = wr(null), [m, L] = Ht({ height: 0 }), T = wr(null), [w, _] =
|
5700
|
+
const { wrapProps: e, errorMessage: t, helperText: n, wrapType: i = "Default", label: l, labelProps: u, children: h } = r, g = wr(null), [m, L] = Ht({ height: 0 }), T = wr(null), [w, _] = ve(() => {
|
5701
5701
|
let D = n, A = i;
|
5702
5702
|
if (Array.isArray(t)) {
|
5703
5703
|
const b = t.filter(Boolean);
|
@@ -5715,7 +5715,7 @@ const NN = (r, e) => {
|
|
5715
5715
|
L({ height: D.height, marginTop: D.height === 0 ? 0 : 6 });
|
5716
5716
|
}
|
5717
5717
|
}, [w]);
|
5718
|
-
const S =
|
5718
|
+
const S = ve(() => {
|
5719
5719
|
switch (typeof (u == null ? void 0 : u.prefix)) {
|
5720
5720
|
case "string":
|
5721
5721
|
return /* @__PURE__ */ v.jsx(Ur, { width: "1rem", height: "1rem", icon: u.prefix });
|
@@ -6759,7 +6759,7 @@ const Pr = {
|
|
6759
6759
|
DividerInner: V5,
|
6760
6760
|
IsClicked: G5
|
6761
6761
|
}, mi = (r) => /* @__PURE__ */ v.jsx(Xr, { ...r, className: ze.clsx(Uo.ARowFrame, r.className), children: r.children }), Z5 = (r) => /* @__PURE__ */ v.jsx("div", { ...r, className: ze.clsx(Uo.AColFrame, r.className), children: r.children }), Vc = (r) => {
|
6762
|
-
const { tooltip: e, children: t, abaseRef: n, isDisabled: i, className: l, noOverflowTooltip: u, ...h } = r, g = wr(null), m =
|
6762
|
+
const { tooltip: e, children: t, abaseRef: n, isDisabled: i, className: l, noOverflowTooltip: u, ...h } = r, g = wr(null), m = ve(() => n ?? g, [n]), [L, T] = Ht(!1), w = pe(() => T(!0), []), _ = pe(() => T(!1), []);
|
6763
6763
|
Ut(() => {
|
6764
6764
|
const D = m.current;
|
6765
6765
|
if (D)
|
@@ -6767,7 +6767,7 @@ const Pr = {
|
|
6767
6767
|
D.removeEventListener("mouseenter", w), D.removeEventListener("mouseleave", _);
|
6768
6768
|
};
|
6769
6769
|
}, [m, w, _]);
|
6770
|
-
const S =
|
6770
|
+
const S = ve(() => i ? "" : u || !L || !m.current ? e : m.current.scrollWidth > m.current.clientWidth ? t : e, [m, i, t, e, u, L]);
|
6771
6771
|
return /* @__PURE__ */ v.jsx(
|
6772
6772
|
Xr,
|
6773
6773
|
{
|
@@ -6797,10 +6797,10 @@ const Pr = {
|
|
6797
6797
|
dividerInnerClassName: T,
|
6798
6798
|
dividerInnerStyle: w,
|
6799
6799
|
..._
|
6800
|
-
} = r, S =
|
6800
|
+
} = r, S = ve(() => {
|
6801
6801
|
let re;
|
6802
6802
|
return typeof l == "object" && Array.isArray(l) ? re = l : re = [l], re = re.filter((ne) => ne != null && ne !== !1), re;
|
6803
|
-
}, [l]), [D, A] = Ht(e === void 0 ? n : Kh[e] ?? n), b =
|
6803
|
+
}, [l]), [D, A] = Ht(e === void 0 ? n : Kh[e] ?? n), b = ve(() => typeof i == "number" ? Array(S.length).fill(i + (L ?? 0)) : i.map((re) => re + (L ?? 0)), [i, S.length, L]), [k, O] = Ht(), q = ve(() => k !== void 0 ? k : D, [k, D]), B = wr(null), V = wr({ x: 0, y: 0 }), [Z, ce] = Ht(), ee = pe(
|
6804
6804
|
(re, ne) => {
|
6805
6805
|
if (B.current === null) return;
|
6806
6806
|
const le = B.current;
|
@@ -6817,7 +6817,7 @@ const Pr = {
|
|
6817
6817
|
[D, e, t, b]
|
6818
6818
|
), [ue, M] = Ht(!1), te = pe(() => {
|
6819
6819
|
A(n), e !== void 0 && (Kh[e] = n), M(!0);
|
6820
|
-
}, [n, e]), Y =
|
6820
|
+
}, [n, e]), Y = ve(() => S.map((re, ne) => {
|
6821
6821
|
const le = q[ne], me = le - (ne === 0 ? 0 : q[ne - 1]), se = ne === 0, xe = ne === S.length - 1, ge = {
|
6822
6822
|
...u,
|
6823
6823
|
...K5(t, me, xe)
|
@@ -7187,7 +7187,7 @@ const Vt = {
|
|
7187
7187
|
wrapType: q,
|
7188
7188
|
labelProps: B,
|
7189
7189
|
...V
|
7190
|
-
} = r, Z =
|
7190
|
+
} = r, Z = ve(() => w6(t) ? "Error" : n, [t, n]), ce = ve(() => Z === "ReadOnly" ? !0 : u, [Z, u]), ee = ve(
|
7191
7191
|
() => V.isDisabled || V.isLoading,
|
7192
7192
|
[V.isDisabled, V.isLoading]
|
7193
7193
|
), [ue, M] = bn(l, ""), te = pe(
|
@@ -7290,7 +7290,7 @@ const C6 = "_ASelect_spf0a_1", A6 = "_Arrow_spf0a_14", T6 = "_Primary_spf0a_23",
|
|
7290
7290
|
maxShowRows: m = 6,
|
7291
7291
|
arrowProps: L,
|
7292
7292
|
...T
|
7293
|
-
} = r, w = wr(null), _ =
|
7293
|
+
} = r, w = wr(null), _ = ve(() => T.abaseRef ?? w, [T.abaseRef]), S = wr(null), [D, A] = bn(t, e[0]), [b, k] = Ht(!1), [O, q] = Ht(!1), B = pe(() => q(!1), []), V = pe(() => {
|
7294
7294
|
T.isDisabled || T.isLoading || e.length < 1 || (q(!0), setTimeout(() => k(!0), 0), setTimeout(() => Xh(S, _, e, g, m), 0));
|
7295
7295
|
}, [_, T.isDisabled, T.isLoading, e, g, m]), Z = pe(() => {
|
7296
7296
|
k(!1), q(!0), l == null || l();
|
@@ -7335,7 +7335,7 @@ const C6 = "_ASelect_spf0a_1", A6 = "_Arrow_spf0a_14", T6 = "_Primary_spf0a_23",
|
|
7335
7335
|
!le || !ne || !me || !le.contains(ne) && !me.contains(ne) && Z();
|
7336
7336
|
},
|
7337
7337
|
[_, Z]
|
7338
|
-
), te =
|
7338
|
+
), te = ve(
|
7339
7339
|
() => T.isDisabled || T.isLoading || e.length < 1,
|
7340
7340
|
[T.isDisabled, T.isLoading, e]
|
7341
7341
|
);
|
@@ -7508,7 +7508,7 @@ const F6 = (r) => {
|
|
7508
7508
|
resources: A,
|
7509
7509
|
onClick: b,
|
7510
7510
|
...k
|
7511
|
-
} = r, O =
|
7511
|
+
} = r, O = ve(() => ({ ...yn.ADateRangePicker, ...A }), [A]), q = ve(() => S ?? O["Select DateRange"], [S, O]), [B, V] = ve(() => {
|
7512
7512
|
let Q, qe;
|
7513
7513
|
if (u && (Q = Vt.makeSDate(u)), h && (qe = Vt.makeEDate(h)), Q && qe && Vt["<"](qe, Q)) {
|
7514
7514
|
console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");
|
@@ -7549,10 +7549,10 @@ const F6 = (r) => {
|
|
7549
7549
|
[Y]
|
7550
7550
|
), ge = pe(() => {
|
7551
7551
|
le(void 0), re(void 0), ce("sD");
|
7552
|
-
}, [ce, re]), [we, De] = Ht(Vv(ee, B, V)), Ne =
|
7552
|
+
}, [ce, re]), [we, De] = Ht(Vv(ee, B, V)), Ne = ve(
|
7553
7553
|
() => Q_(we.year, B, V, L),
|
7554
7554
|
[we.year, B, V, L]
|
7555
|
-
), Ge =
|
7555
|
+
), Ge = ve(() => th(we.year, B, V), [B, V, we.year]), Ee = pe(
|
7556
7556
|
(Q) => {
|
7557
7557
|
if (!Ne.includes(Q)) return;
|
7558
7558
|
const qe = { month: we.month, year: Q }, et = th(qe.year, B, V);
|
@@ -7564,11 +7564,11 @@ const F6 = (r) => {
|
|
7564
7564
|
Ge.includes(Q) && De({ month: Q, year: we.year });
|
7565
7565
|
},
|
7566
7566
|
[Ge, we.year]
|
7567
|
-
), pt =
|
7567
|
+
), pt = ve(() => V ? new Date(we.year, we.month + 1, 1) > V : !1, [we, V]), Xe = pe(() => {
|
7568
7568
|
if (pt || Ge.length < 1) return;
|
7569
7569
|
const Q = we.month + 1;
|
7570
7570
|
Q > 11 ? De({ month: Ge[0], year: we.year + 1 }) : De({ month: Q, year: we.year });
|
7571
|
-
}, [pt, Ge, we]), Ke =
|
7571
|
+
}, [pt, Ge, we]), Ke = ve(() => B ? new Date(we.year, we.month, 0) < B : !1, [we, B]), Pe = pe(() => {
|
7572
7572
|
if (Ke || Ge.length < 1) return;
|
7573
7573
|
const Q = we.month - 1;
|
7574
7574
|
Q < Ge[0] ? De({ month: Ge[Ge.length - 1], year: we.year - 1 }) : De({ month: Q, year: we.year });
|
@@ -7594,7 +7594,7 @@ const F6 = (r) => {
|
|
7594
7594
|
[ue, M, ee, B, V]
|
7595
7595
|
), Ct = pe(() => {
|
7596
7596
|
ee && (Re(Vt.toString(ee.sDate)), Je(Vt.toString(ee.eDate)));
|
7597
|
-
}, [ee]), St =
|
7597
|
+
}, [ee]), St = ve(() => {
|
7598
7598
|
const { month: Q, year: qe } = we, et = new Date(qe, Q, 1), Rt = new Date(qe, Q + 1, 0), mt = [];
|
7599
7599
|
for (let Kt = 0; Kt < et.getDay(); Kt++) {
|
7600
7600
|
const lr = new Date(qe, Q, 0).getDate() - et.getDay() + Kt + 1, gr = new Date(qe, Q - 1, lr), Lr = B && B > gr || V && V < gr, hr = ee ? Vt.be(ee.sDate, gr, ee.eDate) : !1, Cr = ne && ee && Vt.be(ee.sDate, gr, ne);
|
@@ -7631,14 +7631,14 @@ const F6 = (r) => {
|
|
7631
7631
|
);
|
7632
7632
|
return At;
|
7633
7633
|
}, [we, ne, ee, B, V, me, se, xe]), vt = wr(null), Dt = pe(() => {
|
7634
|
-
vt && U_(vt,
|
7635
|
-
}, [vt, l]), [Tt, ct] = Ht(!1), [ut, wt] = Ht(!1),
|
7634
|
+
vt && U_(vt, ye, l);
|
7635
|
+
}, [vt, l]), [Tt, ct] = Ht(!1), [ut, wt] = Ht(!1), ye = wr(null), Ve = pe(() => {
|
7636
7636
|
g || m || (ct(!0), setTimeout(() => wt(!0), 0), setTimeout(() => Dt(), 0), De(Vv(ee, B, V)));
|
7637
7637
|
}, [g, m, ee, Dt, B, V]), st = pe(() => {
|
7638
7638
|
g || m || (ct(!0), wt(!1));
|
7639
|
-
}, [g, m]), gt =
|
7639
|
+
}, [g, m]), gt = ve(() => ut ? st : Ve, [ut, Ve, st]), yt = pe(() => ct(!1), []), Fe = pe(
|
7640
7640
|
(Q) => {
|
7641
|
-
const qe = document.getElementById("root"), et = Q.target, Rt =
|
7641
|
+
const qe = document.getElementById("root"), et = Q.target, Rt = ye.current, mt = vt.current;
|
7642
7642
|
!qe || !Rt || !et || !mt || !Rt.contains(et) && qe.contains(et) && !mt.contains(et) && st();
|
7643
7643
|
},
|
7644
7644
|
[st]
|
@@ -7674,8 +7674,8 @@ const F6 = (r) => {
|
|
7674
7674
|
Ut(() => {
|
7675
7675
|
if (!ut) return;
|
7676
7676
|
const Q = new IntersectionObserver(Ot, { threshold: 0 });
|
7677
|
-
return
|
7678
|
-
}, [
|
7677
|
+
return ye.current && Q.observe(ye.current), () => Q.disconnect();
|
7678
|
+
}, [ye, ut, Ot]), Ut(() => {
|
7679
7679
|
i && (i.current = { open: Ve, close: st, toggle: gt });
|
7680
7680
|
}, [i, Ve, st, gt]), Ut(() => {
|
7681
7681
|
if (!ee) return;
|
@@ -7695,7 +7695,7 @@ const F6 = (r) => {
|
|
7695
7695
|
M(void 0), st(), Q.stopPropagation();
|
7696
7696
|
},
|
7697
7697
|
[M, st]
|
7698
|
-
), nr = pe(() => ee ? /* @__PURE__ */ v.jsx(Wo, { style: { scale: "0.8" }, type: "Raw", icon: "Close", onClick: Mr }) : null, [ee, Mr]), de =
|
7698
|
+
), nr = pe(() => ee ? /* @__PURE__ */ v.jsx(Wo, { style: { scale: "0.8" }, type: "Raw", icon: "Close", onClick: Mr }) : null, [ee, Mr]), de = ve(() => ee ? `${Vt.toString(ee.sDate)} ~ ${Vt.toString(ee.eDate)}` : /* @__PURE__ */ v.jsx("span", { className: zr.Placeholder, children: q }), [ee, q]);
|
7699
7699
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
7700
7700
|
/* @__PURE__ */ v.jsxs(
|
7701
7701
|
Xr,
|
@@ -7728,7 +7728,7 @@ const F6 = (r) => {
|
|
7728
7728
|
onTransitionEnd: yt,
|
7729
7729
|
onMouseLeave: ge,
|
7730
7730
|
style: { opacity: +ut, visibility: ut ? "visible" : "hidden" },
|
7731
|
-
ref:
|
7731
|
+
ref: ye,
|
7732
7732
|
children: [
|
7733
7733
|
/* @__PURE__ */ v.jsxs("div", { className: zr.StringInputContainer, children: [
|
7734
7734
|
/* @__PURE__ */ v.jsxs(mi, { children: [
|
@@ -7866,52 +7866,52 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
7866
7866
|
noClearButton: S,
|
7867
7867
|
onClick: D,
|
7868
7868
|
...A
|
7869
|
-
} = r, b =
|
7870
|
-
let
|
7871
|
-
return u && (
|
7869
|
+
} = r, b = ve(() => ({ ...yn.ADatePicker, ..._ }), [_]), k = ve(() => L ?? b["Select Date"], [L, b]), [O, q] = ve(() => {
|
7870
|
+
let ye, Ve;
|
7871
|
+
return u && (ye = Vt.makeSDate(u)), h && (Ve = Vt.makeEDate(h)), ye && Ve && Vt["<"](Ve, ye) ? (console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."), [Vt.makeSDate(Ve), Vt.makeEDate(ye)]) : [ye, Ve];
|
7872
7872
|
}, [u, h]), [B, V] = bn(n, null), [Z, ce] = Ht(B ? Vt.toString(B) : ""), [ee, ue] = Ht(() => {
|
7873
|
-
const
|
7874
|
-
return O &&
|
7873
|
+
const ye = B ?? /* @__PURE__ */ new Date();
|
7874
|
+
return O && ye < O ? O.getMonth() : q && ye > q ? q.getMonth() : (ye ?? /* @__PURE__ */ new Date()).getMonth();
|
7875
7875
|
}), [M, te] = Ht(() => {
|
7876
|
-
const
|
7877
|
-
return O &&
|
7876
|
+
const ye = B ?? /* @__PURE__ */ new Date();
|
7877
|
+
return O && ye < O ? O.getFullYear() : q && ye > q ? q.getFullYear() : (ye ?? /* @__PURE__ */ new Date()).getFullYear();
|
7878
7878
|
}), Y = pe(
|
7879
|
-
(
|
7880
|
-
te(
|
7881
|
-
const Ve = th(
|
7879
|
+
(ye) => {
|
7880
|
+
te(ye);
|
7881
|
+
const Ve = th(ye, O, q);
|
7882
7882
|
Ve.includes(ee) || (ee < Ve[0] ? ue(Ve[0]) : ee > Ve[Ve.length - 1] && ue(Ve[Ve.length - 1]));
|
7883
7883
|
},
|
7884
7884
|
[O, q, ee]
|
7885
7885
|
), re = pe(
|
7886
|
-
(
|
7887
|
-
if (
|
7888
|
-
let Ve = Vt.toDate(
|
7886
|
+
(ye) => {
|
7887
|
+
if (ye.length > 10 || (ce(ye), ye.length < 10) || !V) return;
|
7888
|
+
let Ve = Vt.toDate(ye);
|
7889
7889
|
Ve && (O && Ve < O && (Ve = O), q && Ve > q && (Ve = q), V(Ve), te(Ve.getFullYear()), ue(Ve.getMonth()));
|
7890
7890
|
},
|
7891
7891
|
[V, O, q]
|
7892
7892
|
), ne = pe(
|
7893
|
-
(
|
7894
|
-
const Ve = M +
|
7893
|
+
(ye) => {
|
7894
|
+
const Ve = M + ye;
|
7895
7895
|
Ve < 0 || te(Ve);
|
7896
7896
|
},
|
7897
7897
|
[M]
|
7898
7898
|
), le = pe(
|
7899
|
-
(
|
7900
|
-
const Ve = ee +
|
7899
|
+
(ye) => {
|
7900
|
+
const Ve = ee + ye;
|
7901
7901
|
Ve < 0 ? (ue(11), ne(-1)) : Ve > 11 ? (ue(0), ne(1)) : ue(Ve);
|
7902
7902
|
},
|
7903
7903
|
[ee, ne]
|
7904
7904
|
), me = pe(
|
7905
|
-
(
|
7906
|
-
V && (
|
7905
|
+
(ye) => {
|
7906
|
+
V && (ye === void 0 ? (V(void 0), ce("")) : (V(ye), ce(Vt.toString(ye))));
|
7907
7907
|
},
|
7908
7908
|
[V]
|
7909
|
-
), se =
|
7910
|
-
const
|
7911
|
-
return O &&
|
7912
|
-
}, [M, ee, O]), xe =
|
7913
|
-
const
|
7914
|
-
return q &&
|
7909
|
+
), se = ve(() => {
|
7910
|
+
const ye = new Date(M, ee, 0);
|
7911
|
+
return O && ye < O;
|
7912
|
+
}, [M, ee, O]), xe = ve(() => {
|
7913
|
+
const ye = new Date(M, ee + 1, 1);
|
7914
|
+
return q && ye > q;
|
7915
7915
|
}, [M, ee, q]), ge = pe(() => {
|
7916
7916
|
se || le(-1);
|
7917
7917
|
}, [le, se]), we = pe(() => {
|
@@ -7919,14 +7919,14 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
7919
7919
|
}, [le, xe]), [De, Ne] = Ht(null), Ge = pe(() => {
|
7920
7920
|
V && Ne(null);
|
7921
7921
|
}, [V]), Ee = pe(
|
7922
|
-
(
|
7923
|
-
V && Ne(
|
7922
|
+
(ye) => {
|
7923
|
+
V && Ne(ye);
|
7924
7924
|
},
|
7925
7925
|
[V]
|
7926
|
-
), nt =
|
7927
|
-
const
|
7928
|
-
for (let yt = 0; yt <
|
7929
|
-
const bt = new Date(M, ee, 0).getDate() -
|
7926
|
+
), nt = ve(() => {
|
7927
|
+
const ye = new Date(M, ee, 1), Ve = new Date(M, ee + 1, 0), st = [];
|
7928
|
+
for (let yt = 0; yt < ye.getDay(); yt++) {
|
7929
|
+
const bt = new Date(M, ee, 0).getDate() - ye.getDay() + yt + 1, Ot = new Date(M, ee - 1, bt), dr = O && O > Ot || q && q < Ot, Mr = B && Vt.eq(Ot, B), nr = De && Vt.eq(Ot, De);
|
7930
7930
|
st.push({ day: bt, isSelected: Mr, date: Ot, isDisabled: dr, isHovered: nr, isCurrentMonth: !1 });
|
7931
7931
|
}
|
7932
7932
|
for (let yt = 1; yt <= Ve.getDate(); yt++) {
|
@@ -7963,17 +7963,17 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
7963
7963
|
pt && U_(pt, je, l);
|
7964
7964
|
}, [pt, l]), [Ke, Pe] = Ht(!1), [ke, Re] = Ht(!1), je = wr(null), Ie = pe(() => {
|
7965
7965
|
g || m || (Pe(!0), setTimeout(() => Re(!0), 0), setTimeout(() => Xe(), 0), ce(B ? Vt.toString(B) : ""), ue(() => {
|
7966
|
-
const
|
7967
|
-
return O &&
|
7966
|
+
const ye = B ?? /* @__PURE__ */ new Date();
|
7967
|
+
return O && ye < O ? O.getMonth() : q && ye > q ? q.getMonth() : ye.getMonth();
|
7968
7968
|
}), te(() => {
|
7969
|
-
const
|
7970
|
-
return O &&
|
7969
|
+
const ye = B ?? /* @__PURE__ */ new Date();
|
7970
|
+
return O && ye < O ? O.getFullYear() : q && ye > q ? q.getFullYear() : ye.getFullYear();
|
7971
7971
|
}));
|
7972
7972
|
}, [g, m, B, Xe, O, q]), Je = pe(() => {
|
7973
7973
|
g || m || (Pe(!0), Re(!1));
|
7974
|
-
}, [g, m]), ft =
|
7975
|
-
(
|
7976
|
-
const Ve = document.getElementById("root"), st =
|
7974
|
+
}, [g, m]), ft = ve(() => ke ? Je : Ie, [ke, Ie, Je]), Ct = pe(() => Pe(!1), []), St = pe(
|
7975
|
+
(ye) => {
|
7976
|
+
const Ve = document.getElementById("root"), st = ye.target, gt = je.current, yt = pt.current;
|
7977
7977
|
!Ve || !gt || !st || !yt || !gt.contains(st) && Ve.contains(st) && !yt.contains(st) && Je();
|
7978
7978
|
},
|
7979
7979
|
[Je]
|
@@ -7987,12 +7987,12 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
7987
7987
|
}, [Xe]);
|
7988
7988
|
Ut(() => {
|
7989
7989
|
if (!ke || !(pt != null && pt.current)) return;
|
7990
|
-
const
|
7991
|
-
let Ve =
|
7990
|
+
const ye = pt.current;
|
7991
|
+
let Ve = ye.parentElement;
|
7992
7992
|
for (; Ve; )
|
7993
7993
|
Ve.addEventListener("scroll", vt), Ve = Ve.parentElement;
|
7994
7994
|
return () => {
|
7995
|
-
let st =
|
7995
|
+
let st = ye.parentElement;
|
7996
7996
|
for (; st; )
|
7997
7997
|
st.removeEventListener("scroll", vt), st = st.parentElement;
|
7998
7998
|
};
|
@@ -8001,29 +8001,29 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8001
8001
|
return window.addEventListener("resize", vt), () => window.removeEventListener("resize", vt);
|
8002
8002
|
}, [ke, vt]);
|
8003
8003
|
const Dt = pe(
|
8004
|
-
(
|
8005
|
-
|
8004
|
+
(ye) => {
|
8005
|
+
ye[0].intersectionRatio === 0 && Je();
|
8006
8006
|
},
|
8007
8007
|
[Je]
|
8008
8008
|
);
|
8009
8009
|
Ut(() => {
|
8010
8010
|
if (!ke) return;
|
8011
|
-
const
|
8012
|
-
return je.current &&
|
8011
|
+
const ye = new IntersectionObserver(Dt, { threshold: 0 });
|
8012
|
+
return je.current && ye.observe(je.current), () => ye.disconnect();
|
8013
8013
|
}, [je, ke, Dt]), Ut(() => {
|
8014
8014
|
i && (i.current = { open: Ie, close: Je, toggle: ft });
|
8015
8015
|
}, [i, Ie, Je, ft]);
|
8016
8016
|
const Tt = pe(
|
8017
|
-
(
|
8018
|
-
D == null || D(
|
8017
|
+
(ye) => {
|
8018
|
+
D == null || D(ye), ft();
|
8019
8019
|
},
|
8020
8020
|
[D, ft]
|
8021
8021
|
), ct = pe(
|
8022
|
-
(
|
8023
|
-
me(void 0), Je(),
|
8022
|
+
(ye) => {
|
8023
|
+
me(void 0), Je(), ye.stopPropagation();
|
8024
8024
|
},
|
8025
8025
|
[me, Je]
|
8026
|
-
), ut = pe(() => B ? /* @__PURE__ */ v.jsx(Wo, { style: { scale: "0.8" }, type: "Raw", icon: "Close", onClick: ct }) : null, [B, ct]), wt =
|
8026
|
+
), ut = pe(() => B ? /* @__PURE__ */ v.jsx(Wo, { style: { scale: "0.8" }, type: "Raw", icon: "Close", onClick: ct }) : null, [B, ct]), wt = ve(() => B ? Vt.toString(B) : /* @__PURE__ */ v.jsx("span", { className: an.Placeholder, children: k }), [B, k]);
|
8027
8027
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
8028
8028
|
/* @__PURE__ */ v.jsxs(
|
8029
8029
|
Xr,
|
@@ -8079,8 +8079,8 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8079
8079
|
useSelect: [ee, ue],
|
8080
8080
|
className: an.Select,
|
8081
8081
|
options: th(M, O, q),
|
8082
|
-
OptionRenderer: (
|
8083
|
-
SelectedRenderer: (
|
8082
|
+
OptionRenderer: (ye) => b.months(ye.option),
|
8083
|
+
SelectedRenderer: (ye) => b.months(ye.selectedOption)
|
8084
8084
|
}
|
8085
8085
|
),
|
8086
8086
|
/* @__PURE__ */ v.jsx(Tn, { w: 8 }),
|
@@ -8098,7 +8098,7 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8098
8098
|
] }),
|
8099
8099
|
/* @__PURE__ */ v.jsx(Tn, { h: 10 }),
|
8100
8100
|
/* @__PURE__ */ v.jsxs("div", { className: an.Calendar, children: [
|
8101
|
-
/* @__PURE__ */ v.jsx("div", { className: an.Week, children: [0, 1, 2, 3, 4, 5, 6].map((
|
8101
|
+
/* @__PURE__ */ v.jsx("div", { className: an.Week, children: [0, 1, 2, 3, 4, 5, 6].map((ye) => /* @__PURE__ */ v.jsx("div", { className: ze.clsx(an.WeekDay, an.Cell), children: b.weekDays(ye) }, ye)) }),
|
8102
8102
|
nt
|
8103
8103
|
] })
|
8104
8104
|
] })
|
@@ -8146,7 +8146,7 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8146
8146
|
okButtonClassName: ue,
|
8147
8147
|
cancelButtonClassName: M,
|
8148
8148
|
resources: te
|
8149
|
-
} = r, Y =
|
8149
|
+
} = r, Y = ve(() => ({ ...yn.ADialog, ...te }), [te]), [re, ne] = Ht(0);
|
8150
8150
|
Ut(() => ne(1), []);
|
8151
8151
|
const le = pe(() => {
|
8152
8152
|
ne(0);
|
@@ -8271,7 +8271,7 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8271
8271
|
buttonNoInteractive: w,
|
8272
8272
|
okButtonClassName: _,
|
8273
8273
|
cancelButtonClassName: S
|
8274
|
-
} = r, D =
|
8274
|
+
} = r, D = ve(() => ({
|
8275
8275
|
onClick: t,
|
8276
8276
|
isDisabled: l,
|
8277
8277
|
isLoading: u,
|
@@ -8279,7 +8279,7 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8279
8279
|
style: m,
|
8280
8280
|
noInteractive: w,
|
8281
8281
|
className: ze.clsx(Sa.Button, _)
|
8282
|
-
}), [t, l, u, i.Ok, m, w, _]), A =
|
8282
|
+
}), [t, l, u, i.Ok, m, w, _]), A = ve(() => ({
|
8283
8283
|
type: "Secondary",
|
8284
8284
|
onClick: n,
|
8285
8285
|
isDisabled: h,
|
@@ -8314,12 +8314,12 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8314
8314
|
] })
|
8315
8315
|
] }, e);
|
8316
8316
|
}, ij = (r) => {
|
8317
|
-
const e =
|
8317
|
+
const e = ve(() => Math.random().toFixed(32), []), t = ve(() => {
|
8318
8318
|
const _ = {};
|
8319
8319
|
return r.forEach((S) => {
|
8320
8320
|
_[S] = S + e;
|
8321
8321
|
}), _;
|
8322
|
-
}, [r, e]), n =
|
8322
|
+
}, [r, e]), n = ve(() => [], []), i = ve(() => (n.length = 0, n.push(...r), n), [n, r]), [l, u] = Ht([]), h = wr(
|
8323
8323
|
(() => {
|
8324
8324
|
const _ = {};
|
8325
8325
|
return i.forEach((S) => {
|
@@ -8329,14 +8329,14 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8329
8329
|
} };
|
8330
8330
|
}), _;
|
8331
8331
|
})()
|
8332
|
-
), g =
|
8332
|
+
), g = ve(() => {
|
8333
8333
|
const _ = {};
|
8334
8334
|
return i.forEach((S) => {
|
8335
8335
|
_[S] = (D) => {
|
8336
8336
|
u((A) => !D && A.includes(S) ? A.filter((b) => b !== S) : D && !A.includes(S) ? [...A, S] : A);
|
8337
8337
|
};
|
8338
8338
|
}), _;
|
8339
|
-
}, [i]), m =
|
8339
|
+
}, [i]), m = ve(() => {
|
8340
8340
|
const _ = {};
|
8341
8341
|
return i.forEach((S) => {
|
8342
8342
|
const A = [l.includes(S), g[S]], b = (k) => {
|
@@ -8344,13 +8344,13 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8344
8344
|
};
|
8345
8345
|
_[S] = { useIsOpen: A, setAction: b };
|
8346
8346
|
}), _;
|
8347
|
-
}, [l, g, i]), L =
|
8347
|
+
}, [l, g, i]), L = ve(() => {
|
8348
8348
|
const _ = {};
|
8349
8349
|
return i.forEach((S) => {
|
8350
8350
|
const D = () => h.current[S].open(), A = () => h.current[S].close(), b = () => h.current[S].ok(), k = () => h.current[S].cancel();
|
8351
8351
|
_[S] = { open: D, close: A, ok: b, cancel: k };
|
8352
8352
|
}), _;
|
8353
|
-
}, [i]), T =
|
8353
|
+
}, [i]), T = ve(() => ({}), []), w = ve(() => (i.forEach((_) => {
|
8354
8354
|
T[_] = {
|
8355
8355
|
state: m[_],
|
8356
8356
|
action: L[_]
|
@@ -8366,7 +8366,7 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8366
8366
|
Hs.length = 0, Hs.push(...D);
|
8367
8367
|
}), [w, t]), w;
|
8368
8368
|
}, oj = () => {
|
8369
|
-
const r =
|
8369
|
+
const r = ve(() => Math.random().toFixed(32), []), [e, t] = Ht(!1), n = wr({
|
8370
8370
|
open: () => t(!0),
|
8371
8371
|
close: () => {
|
8372
8372
|
},
|
@@ -8374,17 +8374,17 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8374
8374
|
},
|
8375
8375
|
cancel: () => {
|
8376
8376
|
}
|
8377
|
-
}), i =
|
8377
|
+
}), i = ve(() => ({
|
8378
8378
|
useIsOpen: [e, t],
|
8379
8379
|
setAction: (g) => {
|
8380
8380
|
n.current = { ...n.current, ...g };
|
8381
8381
|
}
|
8382
|
-
}), [e]), l =
|
8382
|
+
}), [e]), l = ve(() => ({
|
8383
8383
|
open: () => n.current.open(),
|
8384
8384
|
close: () => n.current.close(),
|
8385
8385
|
ok: () => n.current.ok(),
|
8386
8386
|
cancel: () => n.current.cancel()
|
8387
|
-
}), []), u =
|
8387
|
+
}), []), u = ve(() => ({}), []), h = ve(() => (u.state = i, u.action = l, u), [u, i, l]);
|
8388
8388
|
return Ut(() => {
|
8389
8389
|
const g = Hs.find((m) => m.id === r);
|
8390
8390
|
return g ? g.core = h : Hs.push({ id: r, core: h }), () => {
|
@@ -8393,7 +8393,7 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8393
8393
|
};
|
8394
8394
|
}, [r, h]), h;
|
8395
8395
|
}, UT = (r) => {
|
8396
|
-
const { dlgCore: e, children: t } = r, [n, i] =
|
8396
|
+
const { dlgCore: e, children: t } = r, [n, i] = ve(() => e.state.useIsOpen, [e.state.useIsOpen]);
|
8397
8397
|
return Ut(() => () => i == null ? void 0 : i(!1), [i]), /* @__PURE__ */ v.jsx(j_, { children: n && t });
|
8398
8398
|
}, sj = (r) => (e) => {
|
8399
8399
|
const { dlgCore: t } = e;
|
@@ -8420,7 +8420,7 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8420
8420
|
isLoading: g,
|
8421
8421
|
className: m,
|
8422
8422
|
...L
|
8423
|
-
} = r, T =
|
8423
|
+
} = r, T = ve(() => ({ ...yn.AFileBox, ...n }), [n]), w = wr(null), _ = wr(null), [S, D] = bn(e, null), [A, b] = Ht(!1), k = ve(
|
8424
8424
|
() => i.split(",").map((M) => M.trim()).filter((M) => M.length > 0 && M.startsWith(".")),
|
8425
8425
|
[i]
|
8426
8426
|
), O = pe(
|
@@ -8456,7 +8456,7 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8456
8456
|
[h, g]
|
8457
8457
|
), ce = pe((M) => {
|
8458
8458
|
M.target === w.current && M.relatedTarget.contains(w.current.parentElement) && (M.preventDefault(), b(!1));
|
8459
|
-
}, []), ee = pe((M) => M.preventDefault(), []), ue =
|
8459
|
+
}, []), ee = pe((M) => M.preventDefault(), []), ue = ve(() => A ? /* @__PURE__ */ v.jsxs(Z5, { className: ze.clsx(Wd.Dropping, "NoSelect", "Headline2"), children: [
|
8460
8460
|
/* @__PURE__ */ v.jsx(Ur, { icon: "FileDownload" }),
|
8461
8461
|
" ",
|
8462
8462
|
T["drop file to select"]
|
@@ -8515,10 +8515,10 @@ const Td = (r) => /* @__PURE__ */ v.jsx(io, { className: ze.clsx(zr.ChoiceButton
|
|
8515
8515
|
onPaperClick: h,
|
8516
8516
|
position: g = td.ES,
|
8517
8517
|
width: m = 137
|
8518
|
-
} = r, L =
|
8518
|
+
} = r, L = ve(() => ({
|
8519
8519
|
content: JT,
|
8520
8520
|
...t
|
8521
|
-
}), [t]), T =
|
8521
|
+
}), [t]), T = ve(() => {
|
8522
8522
|
const M = {};
|
8523
8523
|
return er.keys(e).forEach((te) => {
|
8524
8524
|
const Y = e[te], re = {
|
@@ -8646,7 +8646,7 @@ const eE = {
|
|
8646
8646
|
canAsterisk: h = !1,
|
8647
8647
|
onFocus: g,
|
8648
8648
|
...m
|
8649
|
-
} = r, L =
|
8649
|
+
} = r, L = ve(() => i !== void 0 && n !== void 0 ? Math.max(`${i}`.length + 1, `${n}`.length + 1) : tE, [n, i]), [T, w] = bn(l, ""), _ = pe(
|
8650
8650
|
(b) => {
|
8651
8651
|
if (w)
|
8652
8652
|
if (h && b.startsWith("*")) w("*");
|
@@ -8670,7 +8670,7 @@ const eE = {
|
|
8670
8670
|
(k = S.current) == null || k.blur(), u == null || u(b);
|
8671
8671
|
},
|
8672
8672
|
[u]
|
8673
|
-
), A =
|
8673
|
+
), A = ve(() => n === void 0 && i === void 0 ? e ?? "number" : `${n ?? ""}~${i ?? ""}`, [n, i, e]);
|
8674
8674
|
return /* @__PURE__ */ v.jsx(
|
8675
8675
|
Gc,
|
8676
8676
|
{
|
@@ -8692,11 +8692,11 @@ const eE = {
|
|
8692
8692
|
Label: iE,
|
8693
8693
|
Content: oE
|
8694
8694
|
}, uj = (r) => {
|
8695
|
-
const { defs: e, defaultDef: t, item: n, rowHeight: i, labelWidth: l, noBorder: u, style: h, ...g } = r, m = u ? "" : "var(--AListView_border-thin)", L = u ? "" : "var(--AListView_border-thick)", T =
|
8695
|
+
const { defs: e, defaultDef: t, item: n, rowHeight: i, labelWidth: l, noBorder: u, style: h, ...g } = r, m = u ? "" : "var(--AListView_border-thin)", L = u ? "" : "var(--AListView_border-thick)", T = ve(() => ({
|
8696
8696
|
content: aE,
|
8697
8697
|
label: sE,
|
8698
8698
|
...t
|
8699
|
-
}), [t]), w =
|
8699
|
+
}), [t]), w = ve(() => {
|
8700
8700
|
const _ = {};
|
8701
8701
|
return er.keys(e).forEach((S) => {
|
8702
8702
|
const D = e[S], A = {
|
@@ -8806,7 +8806,7 @@ const eE = {
|
|
8806
8806
|
maxShowRows: m = 6,
|
8807
8807
|
arrowProps: L,
|
8808
8808
|
...T
|
8809
|
-
} = r, w = wr(null), _ =
|
8809
|
+
} = r, w = wr(null), _ = ve(() => T.abaseRef ?? w, [T.abaseRef]), S = wr(null), [D, A] = bn(t, []), [b, k] = Ht(!1), [O, q] = Ht(!1), B = pe(() => q(!1), []), V = pe(() => {
|
8810
8810
|
T.isDisabled || T.isLoading || e.length < 1 || (q(!0), setTimeout(() => k(!0), 0), setTimeout(() => Jh(S, _, e, g, m), 0));
|
8811
8811
|
}, [_, T.isDisabled, T.isLoading, e, g, m]), Z = pe(() => {
|
8812
8812
|
k(!1), q(!0), l == null || l();
|
@@ -8851,7 +8851,7 @@ const eE = {
|
|
8851
8851
|
!le || !ne || !me || !le.contains(ne) && !me.contains(ne) && Z();
|
8852
8852
|
},
|
8853
8853
|
[_, Z]
|
8854
|
-
), te =
|
8854
|
+
), te = ve(
|
8855
8855
|
() => T.isDisabled || T.isLoading || e.length < 1,
|
8856
8856
|
[T.isDisabled, T.isLoading, e]
|
8857
8857
|
);
|
@@ -8962,7 +8962,7 @@ const PE = (r) => {
|
|
8962
8962
|
}, hj = (r) => {
|
8963
8963
|
const { useSelect: e, steps: t, StepRenderer: n = Yv, ContentRenderer: i = Yv } = r;
|
8964
8964
|
if (t.length === 0) throw new Error("steps should have at least one element");
|
8965
|
-
const l = wr(null), [u, h] = bn(e, t[0]), g = pe((L) => h == null ? void 0 : h(L), [h]), m =
|
8965
|
+
const l = wr(null), [u, h] = bn(e, t[0]), g = pe((L) => h == null ? void 0 : h(L), [h]), m = ve(() => t.indexOf(u), [u, t]);
|
8966
8966
|
return Ut(() => {
|
8967
8967
|
m < 0 && g(t[0]);
|
8968
8968
|
}, [m, t, g]), /* @__PURE__ */ v.jsxs("div", { className: ro.Container, children: [
|
@@ -9010,10 +9010,10 @@ const PE = (r) => {
|
|
9010
9010
|
underline: T
|
9011
9011
|
} = r;
|
9012
9012
|
if (e.length === 0) throw new Error("options should have at least one element");
|
9013
|
-
const w =
|
9013
|
+
const w = ve(() => e.findIndex((se) => !(n != null && n(se))), [e, n]), _ = i === "Tertiary" ? 2 : 0, S = i === "Secondary" ? 8 : 0, D = ve(() => _ + S, [_, S]), A = i === "Tertiary" ? 2 : 0, b = ve(
|
9014
9014
|
() => (S - _ - A - A) / e.length,
|
9015
9015
|
[e.length, _, S, A]
|
9016
|
-
), [k, O] = bn(t, e[w]), q = wr([]), B = pe((se) => O == null ? void 0 : O(se), [O]), V =
|
9016
|
+
), [k, O] = bn(t, e[w]), q = wr([]), B = pe((se) => O == null ? void 0 : O(se), [O]), V = ve(() => typeof h == "number" ? h + "px" : h, [h]), Z = ve(() => e.indexOf(k), [e, k]), ce = ve(() => `calc(${100 / e.length}% + ${b}px)`, [e.length, b]), ee = ve(() => V || `calc(${ce} - ${D}px)`, [ce, D, V]), [ue, M] = Ht(0), [te, Y] = Ht(0), [re, ne] = Ht(ee), le = ve(() => {
|
9017
9017
|
let se;
|
9018
9018
|
switch (V) {
|
9019
9019
|
case void 0:
|
@@ -9027,7 +9027,7 @@ const PE = (r) => {
|
|
9027
9027
|
break;
|
9028
9028
|
}
|
9029
9029
|
return `calc(${se} + ${A}px)`;
|
9030
|
-
}, [V, A, ce, Z, ue, D]), me =
|
9030
|
+
}, [V, A, ce, Z, ue, D]), me = ve(() => {
|
9031
9031
|
switch (V) {
|
9032
9032
|
case void 0:
|
9033
9033
|
return;
|
@@ -9323,7 +9323,7 @@ const y8 = "_BodyHeader_43b3m_1", b8 = "_TRow_43b3m_7", _8 = "_OverflowSpace_43b
|
|
9323
9323
|
RowRenderer: D = q8,
|
9324
9324
|
isRowRendered: A,
|
9325
9325
|
resources: b
|
9326
|
-
} = r, [k, O] =
|
9326
|
+
} = r, [k, O] = ve(() => i ?? [], [i]), q = pe(
|
9327
9327
|
(Ie) => {
|
9328
9328
|
l || !O || !k || h != null && h(Ie) || (u ? k.some((Je) => t(Je, Ie)) ? O(k.filter((Je) => !t(Je, Ie))) : O([...k, Ie]) : O([Ie]));
|
9329
9329
|
},
|
@@ -9350,19 +9350,19 @@ const y8 = "_BodyHeader_43b3m_1", b8 = "_TRow_43b3m_7", _8 = "_OverflowSpace_43b
|
|
9350
9350
|
const { row: Ie } = ce;
|
9351
9351
|
Ie != null && re(Ie.clientHeight);
|
9352
9352
|
}, [ce, Y]);
|
9353
|
-
const ne =
|
9353
|
+
const ne = ve(() => {
|
9354
9354
|
const { elem: Ie } = ce;
|
9355
9355
|
return Ie ? Math.floor(Ie.clientHeight / Y) : 0;
|
9356
|
-
}, [ce, Y]), le =
|
9356
|
+
}, [ce, Y]), le = ve(() => S || (T.length <= ne ? ne : T.length), [ne, S, T]), me = ve(() => {
|
9357
9357
|
if (S !== void 0)
|
9358
9358
|
return S * Y;
|
9359
|
-
}, [S, Y]), se =
|
9359
|
+
}, [S, Y]), se = ve(() => me, [me]), xe = ve(() => {
|
9360
9360
|
const { elem: Ie } = ce;
|
9361
9361
|
return Ie ? Ie.getBoundingClientRect().height / Y < T.length : !1;
|
9362
|
-
}, [ce, Y, T.length]), [ge, we] = Ht(), De =
|
9362
|
+
}, [ce, Y, T.length]), [ge, we] = Ht(), De = ve(() => {
|
9363
9363
|
const { elem: Ie } = ce;
|
9364
9364
|
return !ge || !Ie ? "100%" : Ie.clientHeight + (A ? 0 : 50);
|
9365
|
-
}, [ge, A, ce]), Ne = wr(null), [Ge, Ee] = Ht({}), nt = wr({ x: 0, y: 0 }), pt = wr({}), Xe =
|
9365
|
+
}, [ge, A, ce]), Ne = wr(null), [Ge, Ee] = Ht({}), nt = wr({ x: 0, y: 0 }), pt = wr({}), Xe = ve(() => er.keys(Ge), [Ge]), Ke = pe(
|
9366
9366
|
(Ie, Je) => {
|
9367
9367
|
const ft = Ne.current;
|
9368
9368
|
if (!ft) return;
|
@@ -9391,20 +9391,20 @@ const y8 = "_BodyHeader_43b3m_1", b8 = "_TRow_43b3m_7", _8 = "_OverflowSpace_43b
|
|
9391
9391
|
[e]
|
9392
9392
|
), Pe = pe(() => {
|
9393
9393
|
we(void 0), Ee({});
|
9394
|
-
}, []), ke =
|
9394
|
+
}, []), ke = ve(() => {
|
9395
9395
|
if (Xe.length === 0) {
|
9396
9396
|
const ft = {}, Ct = er.keys(e);
|
9397
9397
|
for (let St = 0; St < Ct.length; St++) {
|
9398
|
-
const vt = Ct[St], Dt = e[vt], Tt = Pr.getContent(Dt.colSpan, { defKey: vt, def: Dt }), ct = Dt.width ?? 80, ut = Dt.minWidth ?? Jl, wt = Dt.maxWidth,
|
9398
|
+
const vt = Ct[St], Dt = e[vt], Tt = Pr.getContent(Dt.colSpan, { defKey: vt, def: Dt }), ct = Dt.width ?? 80, ut = Dt.minWidth ?? Jl, wt = Dt.maxWidth, ye = {
|
9399
9399
|
width: ct,
|
9400
9400
|
minWidth: ut,
|
9401
9401
|
maxWidth: wt,
|
9402
9402
|
flexGrow: Tt ?? 1
|
9403
9403
|
};
|
9404
|
-
if (ft[vt] =
|
9404
|
+
if (ft[vt] = ye, Tt !== void 0) {
|
9405
9405
|
for (let Ve = 1; Ve < Math.min(Tt, Ct.length - St); Ve++) {
|
9406
9406
|
const st = e[Ct[St + Ve]], gt = st.width ?? 80, yt = st.minWidth ?? Jl, Fe = st.maxWidth;
|
9407
|
-
|
9407
|
+
ye.width += gt, ye.minWidth += yt, ye.maxWidth !== void 0 && (Fe !== void 0 ? ye.maxWidth += Fe : ye.maxWidth = void 0);
|
9408
9408
|
}
|
9409
9409
|
St += Tt - 1;
|
9410
9410
|
}
|
@@ -9424,14 +9424,14 @@ const y8 = "_BodyHeader_43b3m_1", b8 = "_TRow_43b3m_7", _8 = "_OverflowSpace_43b
|
|
9424
9424
|
};
|
9425
9425
|
if (Ie[Ct] = ut, Dt !== void 0) {
|
9426
9426
|
for (let wt = 1; wt < Math.min(Dt, Je.length - ft); wt++) {
|
9427
|
-
const
|
9427
|
+
const ye = e[Je[ft + wt]], Ve = Ge[Je[ft + wt]], st = ye.minWidth ?? Jl, gt = ye.maxWidth;
|
9428
9428
|
ut.width += Ve, ut.minWidth += st, ut.maxWidth !== void 0 && (gt !== void 0 ? ut.maxWidth += gt : ut.maxWidth = void 0);
|
9429
9429
|
}
|
9430
9430
|
ft += Dt - 1;
|
9431
9431
|
}
|
9432
9432
|
}
|
9433
9433
|
return Ie;
|
9434
|
-
}, [e, Xe, Ge]), Re = wr(null), je =
|
9434
|
+
}, [e, Xe, Ge]), Re = wr(null), je = ve(() => Yl.getSingleFilterValue(g), [g]);
|
9435
9435
|
return Ut(() => {
|
9436
9436
|
ue.current && ue.current.scrollTo({ top: 0 });
|
9437
9437
|
}, [L.page]), Ut(() => {
|
@@ -9457,7 +9457,7 @@ const y8 = "_BodyHeader_43b3m_1", b8 = "_TRow_43b3m_7", _8 = "_OverflowSpace_43b
|
|
9457
9457
|
...Pr.getContent(ft.hStyle, { defKey: Ie, def: ft })
|
9458
9458
|
};
|
9459
9459
|
Xe.includes(Ie) && (ut.width = Ge[Ie]);
|
9460
|
-
const wt = ft.isSortable,
|
9460
|
+
const wt = ft.isSortable, ye = (B == null ? void 0 : B.defKey) === Ie, Ve = B == null ? void 0 : B.isAsc;
|
9461
9461
|
return /* @__PURE__ */ v.jsxs(Wu, { children: [
|
9462
9462
|
/* @__PURE__ */ v.jsxs(
|
9463
9463
|
"div",
|
@@ -9467,7 +9467,7 @@ const y8 = "_BodyHeader_43b3m_1", b8 = "_TRow_43b3m_7", _8 = "_OverflowSpace_43b
|
|
9467
9467
|
className: ze.clsx(wn.TH, "Label1", wt ? "IsClickable" : "NoSelect"),
|
9468
9468
|
children: [
|
9469
9469
|
/* @__PURE__ */ v.jsx(Vc, { className: wn.Content, children: Ct ?? St }),
|
9470
|
-
wt && /* @__PURE__ */ v.jsx(Ur, { icon:
|
9470
|
+
wt && /* @__PURE__ */ v.jsx(Ur, { icon: ye ? Ve ? "SortUp" : "SortDown" : "SortBoth", style: { width: 16, height: 16 } })
|
9471
9471
|
]
|
9472
9472
|
}
|
9473
9473
|
),
|
@@ -9521,12 +9521,12 @@ const y8 = "_BodyHeader_43b3m_1", b8 = "_TRow_43b3m_7", _8 = "_OverflowSpace_43b
|
|
9521
9521
|
const ft = Pr.getContent(n, { item: Ie }), Ct = O && !l, St = k == null ? void 0 : k.some((ct) => t(ct, Ie)), vt = k && (h == null ? void 0 : h(Ie)), Dt = typeof vt == "string" ? vt : void 0, Tt = { ...Ie };
|
9522
9522
|
return A && er.keys(e).forEach((ct) => {
|
9523
9523
|
const ut = e[ct], wt = Pr.getContent(ut.content, { defKey: ct, def: ut, item: Ie });
|
9524
|
-
let
|
9524
|
+
let ye = !1;
|
9525
9525
|
if (je && !w) {
|
9526
9526
|
const Ve = Pr.getContent(ut.asText, { defKey: ct, def: ut, item: Ie });
|
9527
|
-
Ve !== void 0 ?
|
9527
|
+
Ve !== void 0 ? ye = Ve.toString().toLowerCase().includes(je.toLowerCase()) : ["string", "number"].includes(typeof wt) && wt !== void 0 && wt !== null && (ye = wt.toString().toLowerCase().includes(je.toLowerCase()));
|
9528
9528
|
}
|
9529
|
-
Tt[ct] = /* @__PURE__ */ v.jsx("span", { className: ze.clsx(
|
9529
|
+
Tt[ct] = /* @__PURE__ */ v.jsx("span", { className: ze.clsx(ye && wn.IsRowMarked), children: Tt[ct] });
|
9530
9530
|
}), /* @__PURE__ */ v.jsx(
|
9531
9531
|
Xr,
|
9532
9532
|
{
|
@@ -9570,7 +9570,7 @@ const y8 = "_BodyHeader_43b3m_1", b8 = "_TRow_43b3m_7", _8 = "_OverflowSpace_43b
|
|
9570
9570
|
)
|
9571
9571
|
] });
|
9572
9572
|
}, F8 = (r) => {
|
9573
|
-
const { showRows: e, itemsLength: t, resources: n, isRowRendered: i, rowHeight: l } = r, u =
|
9573
|
+
const { showRows: e, itemsLength: t, resources: n, isRowRendered: i, rowHeight: l } = r, u = ve(() => t === 0 ? e : e - t, [e, t]);
|
9574
9574
|
return Array.from({ length: u }, (h, g) => /* @__PURE__ */ v.jsx(
|
9575
9575
|
"div",
|
9576
9576
|
{
|
@@ -9642,7 +9642,7 @@ const q8 = (r) => {
|
|
9642
9642
|
IsSelected: $8,
|
9643
9643
|
IsDisabled: U8
|
9644
9644
|
}, W8 = (r) => {
|
9645
|
-
const { pages: e, rangedPages: t, pageF: n, pagination: i } = r, l =
|
9645
|
+
const { pages: e, rangedPages: t, pageF: n, pagination: i } = r, l = ve(() => e[e.length - 1], [e]);
|
9646
9646
|
return /* @__PURE__ */ v.jsxs(mi, { className: Ns.ATableFooter, children: [
|
9647
9647
|
/* @__PURE__ */ v.jsx(
|
9648
9648
|
Ur,
|
@@ -9701,14 +9701,14 @@ const q8 = (r) => {
|
|
9701
9701
|
Rotate: nR,
|
9702
9702
|
rotate: iR
|
9703
9703
|
}, oR = (r) => {
|
9704
|
-
const { defs: e, useFilteration: t, hasToggleFilteration: n, filterF: i, isRowRendered: l, isFilterSort: u, resources: h } = r, [g, m] = Ht([]), [L, T] =
|
9704
|
+
const { defs: e, useFilteration: t, hasToggleFilteration: n, filterF: i, isRowRendered: l, isFilterSort: u, resources: h } = r, [g, m] = Ht([]), [L, T] = ve(() => t, [t]), w = pe(
|
9705
9705
|
(se, xe, ge) => {
|
9706
9706
|
if (!T) return;
|
9707
9707
|
const we = { ...L };
|
9708
9708
|
se.value = xe, T(we), m((De) => De.map((Ne, Ge) => Ge === (ge ? ge + 1 : 0) ? "" : Ne));
|
9709
9709
|
},
|
9710
9710
|
[L, T]
|
9711
|
-
), _ =
|
9711
|
+
), _ = ve(() => {
|
9712
9712
|
let se = [];
|
9713
9713
|
const xe = er.keys(L);
|
9714
9714
|
for (const ge of xe)
|
@@ -9718,11 +9718,11 @@ const q8 = (r) => {
|
|
9718
9718
|
filter: L[ge]
|
9719
9719
|
});
|
9720
9720
|
return se;
|
9721
|
-
}, [L, e]), S =
|
9721
|
+
}, [L, e]), S = ve(() => _.length > 0 ? _[0] : null, [_]), D = ve(() => g.length > 0 ? g[0] : "", [g]), A = ve(() => _.length > 1 ? _.slice(1) : [], [_]), b = ve(() => g.length > 1 ? g.slice(1) : [], [g]), k = ve(() => A.length > 0, [A]), [O, q] = Ht(!1), [B, V] = Ht(!1), Z = wr(null), ce = pe(() => {
|
9722
9722
|
q(!0), setTimeout(() => V(!0), 0);
|
9723
9723
|
}, []), ee = pe(() => {
|
9724
9724
|
V(!1), q(!0);
|
9725
|
-
}, []), ue =
|
9725
|
+
}, []), ue = ve(() => B ? ee : ce, [B, ce, ee]), M = pe(() => q(!1), []), te = pe(
|
9726
9726
|
(se) => {
|
9727
9727
|
const xe = document.getElementById("root"), ge = se.target, we = Z.current;
|
9728
9728
|
!xe || !we || !ge || !we.contains(ge) && xe.contains(ge) && ee();
|
@@ -9738,7 +9738,7 @@ const q8 = (r) => {
|
|
9738
9738
|
(xe, ge) => xe.filter.type === "String" && xe.filter.validation ? xe.filter.validation(xe.filter.value || "") : xe.filter.type === "Date" && xe.filter.validation || xe.filter.type === "DateRange" && xe.filter.validation ? xe.filter.validation(xe.filter.value) : g[ge]
|
9739
9739
|
);
|
9740
9740
|
m(se), se.every((xe) => !xe) && i.apply();
|
9741
|
-
}, [g, i, _]), re =
|
9741
|
+
}, [g, i, _]), re = ve(() => ({ open: ce, close: ee, toggle: ue, validate: Y }), [ce, ee, ue, Y]), ne = pe(() => i.clear(), [i]), le = pe(() => Y(), [Y]), me = pe(
|
9742
9742
|
(se) => {
|
9743
9743
|
se.key === "Enter" ? (Y(), se.stopPropagation()) : se.key === "Escape" && (V(!1), se.currentTarget.focus(), se.currentTarget.blur(), se.stopPropagation());
|
9744
9744
|
},
|
@@ -10120,15 +10120,15 @@ const q8 = (r) => {
|
|
10120
10120
|
TopRightAddon: w,
|
10121
10121
|
useSortation: _,
|
10122
10122
|
resources: S = yn.ATable
|
10123
|
-
} = r, [D] =
|
10123
|
+
} = r, [D] = ve(() => i || [], [i]), A = ve(() => L ? S["Searched n items"](n) : S["Total n items"](n), [S, L, n]), [b] = l, [k, O] = _, [q, B] = Ht(!1), V = ve(() => {
|
10124
10124
|
const ne = er.values(b).filter((se) => se.type === "DateRange"), le = er.keys(b).filter((se) => ne.includes(b[se])), me = er.keys(e).filter((se) => e[se].isSortable);
|
10125
10125
|
return le.length > 0 ? (le.length > 1 && B(!0), me.map((xe) => le.includes(xe) ? [xe + "_Asc", xe + "_Desc"] : xe).flat()) : me;
|
10126
|
-
}, [e, b]), Z =
|
10126
|
+
}, [e, b]), Z = ve(() => r.isRowRendered && V.length > 0, [V.length, r.isRowRendered]), ce = pe(
|
10127
10127
|
(ne, le) => {
|
10128
10128
|
O && (k == null ? void 0 : k.defKey) === ne && (k.isAsc === !0 ? O({ defKey: ne, isAsc: !1, sortF: le }) : O({ defKey: ne, isAsc: !0, sortF: le }));
|
10129
10129
|
},
|
10130
10130
|
[k, O]
|
10131
|
-
), ee = wr(), [ue, M] = Ht(), [te, Y] = Ht(k ? k.defKey : V[0]), re =
|
10131
|
+
), ee = wr(), [ue, M] = Ht(), [te, Y] = Ht(k ? k.defKey : V[0]), re = ve(() => {
|
10132
10132
|
if (!ue) return {};
|
10133
10133
|
const ne = e[ue];
|
10134
10134
|
return {
|
@@ -10290,13 +10290,13 @@ const q8 = (r) => {
|
|
10290
10290
|
actionRef: re,
|
10291
10291
|
RowRenderer: ne,
|
10292
10292
|
resources: le
|
10293
|
-
} = r, me =
|
10293
|
+
} = r, me = ve(() => ({ ...yn.ATable, ...le }), [le]), se = pe(
|
10294
10294
|
(Qe, jt) => t !== void 0 ? Array.isArray(t) ? t.every((J) => nl.isEqual(Qe[J], jt[J])) : nl.isEqual(Qe[t], jt[t]) : nl.isEqual(Qe, jt),
|
10295
10295
|
[t]
|
10296
|
-
), xe =
|
10296
|
+
), xe = ve(() => ({
|
10297
10297
|
content: pR,
|
10298
10298
|
...n
|
10299
|
-
}), [n]), ge =
|
10299
|
+
}), [n]), ge = ve(() => {
|
10300
10300
|
const Qe = {};
|
10301
10301
|
return er.keys(e).forEach((jt) => {
|
10302
10302
|
const J = e[jt], He = {
|
@@ -10310,15 +10310,15 @@ const q8 = (r) => {
|
|
10310
10310
|
}), [Ne, Ge] = bn(nl.cloneDeep(k), void 0), [Ee, nt] = Ht(
|
10311
10311
|
!1
|
10312
10312
|
//toggleFilteration !== undefined
|
10313
|
-
), [pt, Xe] =
|
10313
|
+
), [pt, Xe] = ve(() => Ee && Ne ? [Ne, Ge] : [we, De], [we, Ee, De, Ge, Ne]), [Ke, Pe] = Ht(pt), ke = ve(() => _ ? Yl.applyFilteration(_, ge, Ke) : [], [_, ge, Ke]), Re = ve(() => {
|
10314
10314
|
for (const Qe in Ke) {
|
10315
10315
|
const jt = Ke[Qe];
|
10316
10316
|
if (jt.value !== void 0 && jt.value !== null && jt.value !== "") return !0;
|
10317
10317
|
}
|
10318
10318
|
return !1;
|
10319
|
-
}, [Ke]), [je, Ie] = bn(q, void 0), Je =
|
10319
|
+
}, [Ke]), [je, Ie] = bn(q, void 0), Je = ve(() => Yl.applySortation(ke, ge, je), [ke, ge, je]), ft = ve(() => {
|
10320
10320
|
if (D !== void 0) return Yl.applySortation(D, ge, je);
|
10321
|
-
}, [D, ge, je]), [Ct, St] = bn(O, { page: 1, pageSize: 50, pageRange: 10 }), vt =
|
10321
|
+
}, [D, ge, je]), [Ct, St] = bn(O, { page: 1, pageSize: 50, pageRange: 10 }), vt = ve(() => ({ pageSize: 50, page: 1, pageRange: 10, ...Ct }), [Ct]), { pagedItems: Dt, totalCount: Tt, pagination: ct } = ve(() => {
|
10322
10322
|
const Qe = { ...vt };
|
10323
10323
|
if (ft !== void 0) {
|
10324
10324
|
let jt = A ?? ft.length;
|
@@ -10328,16 +10328,16 @@ const q8 = (r) => {
|
|
10328
10328
|
const jt = A ?? Je.length, J = Yl.getPages(jt, Qe.pageSize);
|
10329
10329
|
return Qe.page > J.length ? Qe.page = J.length : Qe.page < 1 && (Qe.page = 1), { pagedItems: Yl.applyPagination(Je, Qe.page, Qe.pageSize), totalCount: jt, pagination: Qe };
|
10330
10330
|
} else return { pagedItems: [], totalCount: A ?? 0, pagination: vt };
|
10331
|
-
}, [_, ft, A, vt, Je]), { pages: ut, rangedPages: wt } =
|
10331
|
+
}, [_, ft, A, vt, Je]), { pages: ut, rangedPages: wt } = ve(
|
10332
10332
|
() => Yl.getRangedPages(ct.page, Tt, ct.pageSize, ct.pageRange),
|
10333
10333
|
[Tt, ct.pageSize, ct.page, ct.pageRange]
|
10334
|
-
), [
|
10335
|
-
() => Dt.filter((Qe) =>
|
10336
|
-
[Dt,
|
10337
|
-
), gt =
|
10338
|
-
!
|
10334
|
+
), [ye, Ve] = ve(() => g ?? [], [g]), st = ve(
|
10335
|
+
() => Dt.filter((Qe) => ye == null ? void 0 : ye.some((jt) => se(jt, Qe))),
|
10336
|
+
[Dt, ye, se]
|
10337
|
+
), gt = ve(() => Dt.filter((Qe) => !(m != null && m(Qe))), [Dt, m]), yt = ve(() => gt.length > 0 && gt.every((Qe) => st.some((jt) => se(jt, Qe))), [st, gt, se]), Fe = ve(() => yt ? !1 : gt.some((Qe) => st.some((jt) => se(jt, Qe))), [st, gt, yt, se]), bt = pe(() => {
|
10338
|
+
!ye || !Ve || T || Ve(yt || Fe ? ye.filter((Qe) => !gt.some((jt) => se(jt, Qe))) : [...ye, ...gt]);
|
10339
10339
|
}, [
|
10340
|
-
|
10340
|
+
ye,
|
10341
10341
|
Ve,
|
10342
10342
|
yt,
|
10343
10343
|
Fe,
|
@@ -10346,18 +10346,18 @@ const q8 = (r) => {
|
|
10346
10346
|
se
|
10347
10347
|
]), Ot = pe(
|
10348
10348
|
(Qe) => {
|
10349
|
-
!
|
10349
|
+
!ye || !Ve || T || (ye.some((jt) => se(jt, Qe)) ? Ve(ye.filter((jt) => !se(jt, Qe))) : Ve([...ye, Qe]));
|
10350
10350
|
},
|
10351
|
-
[
|
10351
|
+
[ye, Ve, T, se]
|
10352
10352
|
);
|
10353
10353
|
Ut(() => {
|
10354
|
-
if (!Ve || !
|
10355
|
-
|
10356
|
-
}, [m,
|
10357
|
-
const dr =
|
10358
|
-
hContent:
|
10354
|
+
if (!Ve || !ye || !m) return;
|
10355
|
+
ye.filter((jt) => m(jt)).length > 0 && Ve(ye.filter((jt) => !m(jt)));
|
10356
|
+
}, [m, ye, Ve]);
|
10357
|
+
const dr = ve(() => ({
|
10358
|
+
hContent: ye && /* @__PURE__ */ v.jsx(Gf, { useCheck: [yt, bt], isIndeterminate: Fe }),
|
10359
10359
|
content: (Qe) => {
|
10360
|
-
const { item: jt } = Qe, J = m == null ? void 0 : m(jt), He = typeof J == "string" ? J : void 0, ht =
|
10360
|
+
const { item: jt } = Qe, J = m == null ? void 0 : m(jt), He = typeof J == "string" ? J : void 0, ht = ye == null ? void 0 : ye.some((Mt) => se(Mt, jt));
|
10361
10361
|
return /* @__PURE__ */ v.jsx(
|
10362
10362
|
Gf,
|
10363
10363
|
{
|
@@ -10372,14 +10372,14 @@ const q8 = (r) => {
|
|
10372
10372
|
minWidth: 32,
|
10373
10373
|
maxWidth: 32
|
10374
10374
|
}), [
|
10375
|
-
|
10375
|
+
ye,
|
10376
10376
|
yt,
|
10377
10377
|
Fe,
|
10378
10378
|
se,
|
10379
10379
|
bt,
|
10380
10380
|
m,
|
10381
10381
|
Ot
|
10382
|
-
]), Mr =
|
10382
|
+
]), Mr = ve(() => g ? { checkDef: dr, ...ge } : ge, [ge, dr, g]), [nr, de] = Ht(!1), Q = ve(() => L ?? nr, [L, nr]), qe = pe(
|
10383
10383
|
async (Qe) => {
|
10384
10384
|
S && (de(!0), await S(Qe), de(!1)), St == null || St(Qe.pagination), Ie == null || Ie(Qe.sortation), Pe(Qe.filteration);
|
10385
10385
|
},
|
@@ -10424,7 +10424,7 @@ const q8 = (r) => {
|
|
10424
10424
|
At(1);
|
10425
10425
|
}, [At]), gr = pe(() => {
|
10426
10426
|
At(ut[ut.length - 1]);
|
10427
|
-
}, [At, ut]), Lr =
|
10427
|
+
}, [At, ut]), Lr = ve(
|
10428
10428
|
() => ({ move: At, movePrev: Kt, moveNext: Bt, moveFirst: lr, moveLast: gr }),
|
10429
10429
|
[At, Kt, Bt, lr, gr]
|
10430
10430
|
), hr = pe(() => {
|
@@ -10434,11 +10434,11 @@ const q8 = (r) => {
|
|
10434
10434
|
nt(!Ee);
|
10435
10435
|
}, [Ee]), Zr = pe(() => {
|
10436
10436
|
Ee && Ne ? Ge == null || Ge(Kv(Ne)) : Xe == null || Xe(Kv(we));
|
10437
|
-
}, [Ee, Ne, Ge, we, Xe]), at =
|
10437
|
+
}, [Ee, Ne, Ge, we, Xe]), at = ve(() => ({ apply: hr, toggle: Cr, clear: Zr }), [hr, Cr, Zr]);
|
10438
10438
|
s8(() => {
|
10439
10439
|
M || qe({ entireItems: _, filteration: pt, pagination: ct, sortation: je });
|
10440
10440
|
});
|
10441
|
-
const Lt =
|
10441
|
+
const Lt = ve(() => er.map(ge, ([jt]) => ge[jt].minWidth ?? Jl).reduce((jt, J) => jt + J, 0), [ge]), xt = ve(() => ne !== void 0, [ne]);
|
10442
10442
|
return /* @__PURE__ */ v.jsxs(Xr, { className: m8.ATable, isDisabled: T, style: { minWidth: Lt }, children: [
|
10443
10443
|
!V && /* @__PURE__ */ v.jsx(
|
10444
10444
|
hR,
|
@@ -10446,7 +10446,7 @@ const q8 = (r) => {
|
|
10446
10446
|
defs: ge,
|
10447
10447
|
title: w,
|
10448
10448
|
totalCount: Tt,
|
10449
|
-
useCheck: g &&
|
10449
|
+
useCheck: g && ye ? [ye, Ve] : void 0,
|
10450
10450
|
useFilteration: [pt, Rt],
|
10451
10451
|
useSortation: [je, mt],
|
10452
10452
|
isRowRendered: xt,
|
@@ -10499,7 +10499,7 @@ function Kv(r) {
|
|
10499
10499
|
const gR = "_AText_1asz6_1", mR = {
|
10500
10500
|
AText: gR
|
10501
10501
|
}, vR = (r) => {
|
10502
|
-
const { text: e, styled: t, style: n } = r, i =
|
10502
|
+
const { text: e, styled: t, style: n } = r, i = ve(() => {
|
10503
10503
|
if (e) if (t) if (n) {
|
10504
10504
|
if (t === !0)
|
10505
10505
|
return n === "bold" ? /* @__PURE__ */ v.jsx("b", { children: e }) : /* @__PURE__ */ v.jsx("span", { style: n, children: e });
|
@@ -10557,7 +10557,7 @@ const yR = "_Base_1g8so_9", bR = "_ATextArea_1g8so_13", _R = "_Primary_1g8so_36"
|
|
10557
10557
|
wrapType: A,
|
10558
10558
|
labelProps: b,
|
10559
10559
|
...k
|
10560
|
-
} = r, O =
|
10560
|
+
} = r, O = ve(() => CR(t) ? "Error" : n, [t, n]), q = ve(() => O === "ReadOnly" ? !0 : h, [O, h]), B = ve(
|
10561
10561
|
() => k.isDisabled || k.isLoading,
|
10562
10562
|
[k.isDisabled, k.isLoading]
|
10563
10563
|
), [V, Z] = bn(l, ""), ce = pe(
|
@@ -12752,7 +12752,7 @@ function N2() {
|
|
12752
12752
|
var St = Array.prototype, vt = Function.prototype, Dt = Object.prototype, Tt = Ne["__core-js_shared__"], ct = function() {
|
12753
12753
|
var R = /[^.]+$/.exec(Tt && Tt.keys && Tt.keys.IE_PROTO || "");
|
12754
12754
|
return R ? "Symbol(src)_1." + R : "";
|
12755
|
-
}(), ut = vt.toString, wt = Dt.hasOwnProperty,
|
12755
|
+
}(), ut = vt.toString, wt = Dt.hasOwnProperty, ye = Dt.toString, Ve = RegExp(
|
12756
12756
|
"^" + ut.call(wt).replace(le, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
12757
12757
|
), st = nt ? Ne.Buffer : void 0, gt = Ne.Symbol, yt = Ne.Uint8Array, Fe = ft(Object.getPrototypeOf, Object), bt = Object.create, Ot = Dt.propertyIsEnumerable, dr = St.splice, Mr = Object.getOwnPropertySymbols, nr = st ? st.isBuffer : void 0, de = ft(Object.keys, Object), Q = Et(Ne, "DataView"), qe = Et(Ne, "Map"), et = Et(Ne, "Promise"), Rt = Et(Ne, "Set"), mt = Et(Ne, "WeakMap"), At = Et(Object, "create"), Kt = tn(Q), Bt = tn(qe), lr = tn(et), gr = tn(Rt), Lr = tn(mt), hr = gt ? gt.prototype : void 0, Cr = hr ? hr.valueOf : void 0;
|
12758
12758
|
function Zr(R) {
|
@@ -12929,7 +12929,7 @@ function N2() {
|
|
12929
12929
|
return So(R) ? Me : Pe(Me, ae(R));
|
12930
12930
|
}
|
12931
12931
|
function wi(R) {
|
12932
|
-
return
|
12932
|
+
return ye.call(R);
|
12933
12933
|
}
|
12934
12934
|
function Ci(R) {
|
12935
12935
|
if (!ii(R) || Hn(R))
|
@@ -13008,7 +13008,7 @@ function N2() {
|
|
13008
13008
|
}
|
13009
13009
|
var Ft = Mr ? ft(Mr, Object) : Ar, Nt = wi;
|
13010
13010
|
(Q && Nt(new Q(new ArrayBuffer(1))) != V || qe && Nt(new qe()) != w || et && Nt(et.resolve()) != D || Rt && Nt(new Rt()) != b || mt && Nt(new mt()) != q) && (Nt = function(R) {
|
13011
|
-
var W =
|
13011
|
+
var W = ye.call(R), ae = W == S ? R.constructor : void 0, Me = ae ? tn(ae) : void 0;
|
13012
13012
|
if (Me)
|
13013
13013
|
switch (Me) {
|
13014
13014
|
case Kt:
|
@@ -13098,7 +13098,7 @@ function N2() {
|
|
13098
13098
|
return R === W || R !== R && W !== W;
|
13099
13099
|
}
|
13100
13100
|
function ri(R) {
|
13101
|
-
return so(R) && wt.call(R, "callee") && (!Ot.call(R, "callee") ||
|
13101
|
+
return so(R) && wt.call(R, "callee") && (!Ot.call(R, "callee") || ye.call(R) == l);
|
13102
13102
|
}
|
13103
13103
|
var So = Array.isArray;
|
13104
13104
|
function oo(R) {
|
@@ -13109,7 +13109,7 @@ function N2() {
|
|
13109
13109
|
}
|
13110
13110
|
var On = nr || Dr;
|
13111
13111
|
function wo(R) {
|
13112
|
-
var W = ii(R) ?
|
13112
|
+
var W = ii(R) ? ye.call(R) : "";
|
13113
13113
|
return W == L || W == T;
|
13114
13114
|
}
|
13115
13115
|
function ni(R) {
|
@@ -13198,12 +13198,12 @@ function j2() {
|
|
13198
13198
|
ae[++W] = Me;
|
13199
13199
|
}), ae;
|
13200
13200
|
}
|
13201
|
-
var
|
13201
|
+
var ye = Array.prototype, Ve = Function.prototype, st = Object.prototype, gt = Xe["__core-js_shared__"], yt = Ve.toString, Fe = st.hasOwnProperty, bt = function() {
|
13202
13202
|
var R = /[^.]+$/.exec(gt && gt.keys && gt.keys.IE_PROTO || "");
|
13203
13203
|
return R ? "Symbol(src)_1." + R : "";
|
13204
13204
|
}(), Ot = st.toString, dr = RegExp(
|
13205
13205
|
"^" + yt.call(Fe).replace(De, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
13206
|
-
), Mr = ke ? Xe.Buffer : void 0, nr = Xe.Symbol, de = Xe.Uint8Array, Q = st.propertyIsEnumerable, qe =
|
13206
|
+
), Mr = ke ? Xe.Buffer : void 0, nr = Xe.Symbol, de = Xe.Uint8Array, Q = st.propertyIsEnumerable, qe = ye.splice, et = nr ? nr.toStringTag : void 0, Rt = Object.getOwnPropertySymbols, mt = Mr ? Mr.isBuffer : void 0, At = ut(Object.keys, Object), Kt = Ft(Xe, "DataView"), Bt = Ft(Xe, "Map"), lr = Ft(Xe, "Promise"), gr = Ft(Xe, "Set"), Lr = Ft(Xe, "WeakMap"), hr = Ft(Object, "create"), Cr = tn(Kt), Zr = tn(Bt), at = tn(lr), Lt = tn(gr), xt = tn(Lr), Qe = nr ? nr.prototype : void 0, jt = Qe ? Qe.valueOf : void 0;
|
13207
13207
|
function J(R) {
|
13208
13208
|
var W = -1, ae = R == null ? 0 : R.length;
|
13209
13209
|
for (this.clear(); ++W < ae; ) {
|
@@ -19688,9 +19688,9 @@ function SO() {
|
|
19688
19688
|
function wt(x) {
|
19689
19689
|
x.context._currentValue2 = x.parentValue, x = x.parent, x !== null && wt(x);
|
19690
19690
|
}
|
19691
|
-
function
|
19691
|
+
function ye(x) {
|
19692
19692
|
var N = x.parent;
|
19693
|
-
N !== null &&
|
19693
|
+
N !== null && ye(N), x.context._currentValue2 = x.value;
|
19694
19694
|
}
|
19695
19695
|
function Ve(x, N) {
|
19696
19696
|
if (x.context._currentValue2 = x.parentValue, x = x.parent, x === null) throw Error(e(402));
|
@@ -19703,7 +19703,7 @@ function SO() {
|
|
19703
19703
|
}
|
19704
19704
|
function gt(x) {
|
19705
19705
|
var N = ct;
|
19706
|
-
N !== x && (N === null ?
|
19706
|
+
N !== x && (N === null ? ye(x) : x === null ? wt(N) : N.depth === x.depth ? ut(N, x) : N.depth > x.depth ? Ve(N, x) : st(N, x), ct = x);
|
19707
19707
|
}
|
19708
19708
|
var yt = { isMounted: function() {
|
19709
19709
|
return !1;
|
@@ -20625,7 +20625,7 @@ function wO() {
|
|
20625
20625
|
return P;
|
20626
20626
|
}
|
20627
20627
|
var wt = m("<!DOCTYPE html>");
|
20628
|
-
function
|
20628
|
+
function ye(C, P, H, X, Te) {
|
20629
20629
|
switch (P) {
|
20630
20630
|
case "select":
|
20631
20631
|
C.push(ut("select"));
|
@@ -21184,7 +21184,7 @@ function wO() {
|
|
21184
21184
|
} else Wn(C, P, Te);
|
21185
21185
|
}
|
21186
21186
|
else if (typeof H == "string") {
|
21187
|
-
switch (Te = P.blockedSegment, Ce =
|
21187
|
+
switch (Te = P.blockedSegment, Ce = ye(Te.chunks, H, X, C.responseState, Te.formatContext), Te.lastPushedText = !1, $e = Te.formatContext, Te.formatContext = we($e, H, X), Ti(C, P, Ce), Te.formatContext = $e, H) {
|
21188
21188
|
case "area":
|
21189
21189
|
case "base":
|
21190
21190
|
case "br":
|
@@ -22715,7 +22715,7 @@ function CO() {
|
|
22715
22715
|
}, ut = function() {
|
22716
22716
|
};
|
22717
22717
|
{
|
22718
|
-
var wt = {},
|
22718
|
+
var wt = {}, ye = /^on./, Ve = /^on[^A-Z]/, st = new RegExp("^(aria)-[" + re + "]*$"), gt = new RegExp("^(aria)[A-Z][" + re + "]*$");
|
22719
22719
|
ut = function(s, c, d, y) {
|
22720
22720
|
if (B.call(wt, c) && wt[c])
|
22721
22721
|
return !0;
|
@@ -22729,9 +22729,9 @@ function CO() {
|
|
22729
22729
|
var ie = $.hasOwnProperty(I) ? $[I] : null;
|
22730
22730
|
if (ie != null)
|
22731
22731
|
return i("Invalid event handler property `%s`. Did you mean `%s`?", c, ie), wt[c] = !0, !0;
|
22732
|
-
if (
|
22732
|
+
if (ye.test(c))
|
22733
22733
|
return i("Unknown event handler property `%s`. It will be ignored.", c), wt[c] = !0, !0;
|
22734
|
-
} else if (
|
22734
|
+
} else if (ye.test(c))
|
22735
22735
|
return Ve.test(c) && i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", c), wt[c] = !0, !0;
|
22736
22736
|
if (st.test(c) || gt.test(c))
|
22737
22737
|
return !0;
|
@@ -25841,7 +25841,7 @@ function AO() {
|
|
25841
25841
|
ft(f, s) || ct(f, s);
|
25842
25842
|
}
|
25843
25843
|
var wt = !1;
|
25844
|
-
function
|
25844
|
+
function ye(f, s) {
|
25845
25845
|
{
|
25846
25846
|
if (f !== "input" && f !== "textarea" && f !== "select")
|
25847
25847
|
return;
|
@@ -26969,7 +26969,7 @@ function AO() {
|
|
26969
26969
|
}
|
26970
26970
|
var zt = b("<!DOCTYPE html>");
|
26971
26971
|
function mr(f, s, c, d, y) {
|
26972
|
-
switch (ut(s, c),
|
26972
|
+
switch (ut(s, c), ye(s, c), Mr(s, c, null), !c.suppressContentEditableWarning && c.contentEditable && c.children != null && i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."), y.insertionMode !== Jn && y.insertionMode !== Ln && s.indexOf("-") === -1 && typeof c.is != "string" && s.toLowerCase() !== s && i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", s), s) {
|
26973
26973
|
// Special tags
|
26974
26974
|
case "select":
|
26975
26975
|
return So(f, c, d);
|
@@ -30642,23 +30642,23 @@ const nM = [
|
|
30642
30642
|
toolbarSize: B = "Med",
|
30643
30643
|
readOnly: V,
|
30644
30644
|
...Z
|
30645
|
-
} = r, ce =
|
30646
|
-
(
|
30645
|
+
} = r, ce = ve(() => n === "ReadOnly" || V, [n, V]), ee = ve(() => O ? 20 : 0, [O]), [ue, M] = Ht(B === "Med" ? 40 : 50), te = ve(() => ce ? 0 : ue, [ce, ue]), [Y, re] = ve(() => [20, 6], []), ne = ve(() => u ? Y + re : 0, [u, Y, re]), [le, me] = Ht(O), [se, xe] = Ht(!1), [ge, we] = Ht(!1), De = wr(null), Ne = wr(0), Ge = wr(0), Ee = ve(() => _ ? 23 : 0, [_]), nt = pe(
|
30646
|
+
(ye) => {
|
30647
30647
|
if (!se || !O) return;
|
30648
|
-
const Ve =
|
30648
|
+
const Ve = ye.clientY - Ge.current, st = Math.min(q, Math.max(O, Ne.current + Ve));
|
30649
30649
|
me(st);
|
30650
30650
|
},
|
30651
30651
|
[O, se, q]
|
30652
30652
|
), pt = pe(() => {
|
30653
30653
|
xe(!1), we(!1), window.removeEventListener("mousemove", nt), window.removeEventListener("mouseup", pt);
|
30654
30654
|
}, [nt]), Xe = pe(
|
30655
|
-
(
|
30655
|
+
(ye) => {
|
30656
30656
|
if (!le) return;
|
30657
|
-
if (
|
30657
|
+
if (ye.detail === 2) {
|
30658
30658
|
me(O);
|
30659
30659
|
return;
|
30660
30660
|
}
|
30661
|
-
xe(!0), we(!0), Ne.current = le, Ge.current =
|
30661
|
+
xe(!0), we(!0), Ne.current = le, Ge.current = ye.clientY;
|
30662
30662
|
const Ve = (gt) => {
|
30663
30663
|
if (!O) return;
|
30664
30664
|
const yt = gt.clientY - Ge.current, Fe = Math.min(q, Math.max(O, Ne.current + yt));
|
@@ -30669,7 +30669,7 @@ const nM = [
|
|
30669
30669
|
window.addEventListener("mousemove", Ve), window.addEventListener("mouseup", st);
|
30670
30670
|
},
|
30671
30671
|
[O, le, q]
|
30672
|
-
), Ke =
|
30672
|
+
), Ke = ve(() => {
|
30673
30673
|
if (O) {
|
30674
30674
|
if (le)
|
30675
30675
|
switch (n) {
|
@@ -30681,7 +30681,7 @@ const nM = [
|
|
30681
30681
|
return le + te + ne;
|
30682
30682
|
}
|
30683
30683
|
} else return;
|
30684
|
-
}, [O, le, n, te, ne]), Pe =
|
30684
|
+
}, [O, le, n, te, ne]), Pe = ve(() => {
|
30685
30685
|
if (!(!k || k <= te + ne))
|
30686
30686
|
switch (n) {
|
30687
30687
|
case "ReadOnly":
|
@@ -30691,21 +30691,21 @@ const nM = [
|
|
30691
30691
|
default:
|
30692
30692
|
return k - te - ne;
|
30693
30693
|
}
|
30694
|
-
}, [n, te, ne, k]), ke =
|
30694
|
+
}, [n, te, ne, k]), ke = ve(() => oM(t) ? "Error" : n, [t, n]), [Re, je] = bn(l, ""), [Ie, Je] = bn(u, !1), [ft, Ct] = Ht(() => {
|
30695
30695
|
if (!Re) return new Wt();
|
30696
30696
|
try {
|
30697
|
-
const
|
30698
|
-
return
|
30699
|
-
} catch (
|
30700
|
-
return console.warn("Error parsing HTML content:",
|
30697
|
+
const ye = document.createElement("div");
|
30698
|
+
return ye.innerHTML = Re, new Ue(ye, { readOnly: !0 }).getContents();
|
30699
|
+
} catch (ye) {
|
30700
|
+
return console.warn("Error parsing HTML content:", ye), new Wt();
|
30701
30701
|
}
|
30702
|
-
}), St =
|
30702
|
+
}), St = ve(() => Math.floor(5e4 * 0.68234) * 3, []), vt = pe((ye) => ye.ops ? ye.ops.reduce((Ve, st) => {
|
30703
30703
|
if (typeof st.insert == "string") {
|
30704
30704
|
const gt = st.insert.replace(/\n/g, "");
|
30705
30705
|
return Ve + gt.split("").reduce((yt, Fe) => yt + (Fe.charCodeAt(0) <= 127 ? 1 : 3), 0);
|
30706
30706
|
}
|
30707
30707
|
return typeof st.insert == "object" && st.insert.image ? Ve + st.insert.image.length : Ve;
|
30708
|
-
}, 0) : 0, []), Dt =
|
30708
|
+
}, 0) : 0, []), Dt = ve(
|
30709
30709
|
() => ({
|
30710
30710
|
clipboard: { matchVisual: !1 },
|
30711
30711
|
imageCompress: {
|
@@ -30729,17 +30729,17 @@ const nM = [
|
|
30729
30729
|
container: iM,
|
30730
30730
|
handlers: {
|
30731
30731
|
divider: function() {
|
30732
|
-
const
|
30732
|
+
const ye = this.quill, Ve = ye.getSelection(!0), st = ye.getModule("table"), gt = st && (() => {
|
30733
30733
|
try {
|
30734
30734
|
return !!st.getTable(Ve)[0];
|
30735
30735
|
} catch {
|
30736
30736
|
return !1;
|
30737
30737
|
}
|
30738
30738
|
})();
|
30739
|
-
gt ||
|
30739
|
+
gt || ye.insertText(Ve.index, `
|
30740
30740
|
`, Ue.sources.USER);
|
30741
30741
|
const yt = gt ? 0 : 1;
|
30742
|
-
|
30742
|
+
ye.insertEmbed(Ve.index + yt, "divider", !0, Ue.sources.USER), ye.setSelection(Ve.index + yt + 1, 0, Ue.sources.SILENT);
|
30743
30743
|
}
|
30744
30744
|
}
|
30745
30745
|
}
|
@@ -30747,7 +30747,7 @@ const nM = [
|
|
30747
30747
|
}),
|
30748
30748
|
[ce]
|
30749
30749
|
), Tt = pe(
|
30750
|
-
(
|
30750
|
+
(ye, Ve, st, gt) => {
|
30751
30751
|
var Ot;
|
30752
30752
|
if (!je || st !== "user") return;
|
30753
30753
|
const yt = gt.getContents(), Fe = gt.getHTML(), bt = ((Ot = yt.ops) == null ? void 0 : Ot.length) === 1 && yt.ops[0].insert === `
|
@@ -30759,10 +30759,10 @@ const nM = [
|
|
30759
30759
|
je(bt ? "" : Fe), Ct(yt);
|
30760
30760
|
},
|
30761
30761
|
[vt, St, Je, je]
|
30762
|
-
), ct =
|
30763
|
-
(
|
30764
|
-
if (!
|
30765
|
-
const Ve =
|
30762
|
+
), ct = ve(() => B === "Med" ? 8 : 12.5, [B]), ut = pe(
|
30763
|
+
(ye) => {
|
30764
|
+
if (!ye) return;
|
30765
|
+
const Ve = ye.getEditor();
|
30766
30766
|
if (!Ve) return;
|
30767
30767
|
const st = [], gt = {
|
30768
30768
|
input: (nr) => {
|
@@ -30810,8 +30810,8 @@ const nM = [
|
|
30810
30810
|
},
|
30811
30811
|
[ct]
|
30812
30812
|
), wt = pe(
|
30813
|
-
(
|
30814
|
-
i && (typeof i == "function" ? i(
|
30813
|
+
(ye) => {
|
30814
|
+
i && (typeof i == "function" ? i(ye) : i.current = ye), ye && ut(ye);
|
30815
30815
|
},
|
30816
30816
|
[i, ut]
|
30817
30817
|
);
|
@@ -31082,7 +31082,7 @@ const Xl = {
|
|
31082
31082
|
searchItemStyle: re,
|
31083
31083
|
searchItemClassName: ne,
|
31084
31084
|
height: le
|
31085
|
-
} = r, { children: me } =
|
31085
|
+
} = r, { children: me } = ve(() => t, [t]), [se, xe] = ve(() => g, [g]), [ge, we] = ve(() => m, [m]), [De, Ne] = ve(() => L, [L]), Ge = ve(() => i ? i(t) : !1, [i, t]), Ee = ve(() => !n || l ? l : n(t), [n, l, t]), nt = ve(() => se.some((Fe) => e(Fe, t)), [se, e, t]), pt = ve(() => !me || me.length < 1 ? "noChild" : nt ? "expanded" : "collapsed", [me, nt]), Xe = ve(() => {
|
31086
31086
|
const Fe = D[pt];
|
31087
31087
|
return $_.includes(Fe) ? /* @__PURE__ */ v.jsx(Ur, { style: { width: A, height: A }, icon: Fe }) : Fe;
|
31088
31088
|
}, [D, A, pt]), Ke = pe(
|
@@ -31090,9 +31090,9 @@ const Xl = {
|
|
31090
31090
|
!xe || pt === "noChild" || (xe(nt ? se.filter((bt) => !e(bt, t)) : [...se, t]), Fe.stopPropagation());
|
31091
31091
|
},
|
31092
31092
|
[xe, se, nt, t, e, pt]
|
31093
|
-
), Pe =
|
31093
|
+
), Pe = ve(() => ge.some((Fe) => e(Fe, t)), [ge, e, t]), ke = pe(() => {
|
31094
31094
|
!we || Ee || (we(b ? Pe ? ge.filter((Fe) => !e(Fe, t)) : [...ge, t] : [t]), De && Ne && De.items.some((Fe) => e(Fe, t)) && Ne({ ...De, item: t }));
|
31095
|
-
}, [b, Ee, Pe, De, Ne, we, e, ge, t]), Re =
|
31095
|
+
}, [b, Ee, Pe, De, Ne, we, e, ge, t]), Re = ve(() => De == null ? void 0 : De.items.some((Fe) => e(Fe, t)), [De, e, t]), je = ve(
|
31096
31096
|
() => Re && (De == null ? void 0 : De.item) && e(De.item, t),
|
31097
31097
|
[Re, De, e, t]
|
31098
31098
|
), Ie = An.useRef(null);
|
@@ -31107,7 +31107,7 @@ const Xl = {
|
|
31107
31107
|
}
|
31108
31108
|
}, 10);
|
31109
31109
|
}, [M, je]);
|
31110
|
-
const [Je, ft] = Ht(!1), Ct = pe(() => !Ee && ft(!0), [Ee]), St = pe(() => !Ee && ft(!1), [Ee]), vt =
|
31110
|
+
const [Je, ft] = Ht(!1), Ct = pe(() => !Ee && ft(!0), [Ee]), St = pe(() => !Ee && ft(!1), [Ee]), vt = ve(() => Xl.map(t, (Fe) => Fe).filter((Fe) => !(n != null && n(Fe)) && !(i != null && i(Fe))), [n, i, t]), Dt = ve(() => !S || !b ? !1 : Pe && vt.some((Fe) => ge.some((bt) => e(Fe, bt))) && vt.some((Fe) => !ge.some((bt) => e(Fe, bt))), [S, b, Pe, vt, e, ge]), Tt = ve(() => S ? b ? vt.every((Fe) => ge.some((bt) => e(Fe, bt))) : ge.some((Fe) => e(Fe, t)) : !1, [S, b, vt, t, e, ge]), ct = pe(() => {
|
31111
31111
|
if (!(!we || Ee))
|
31112
31112
|
if (b)
|
31113
31113
|
if (Pe) {
|
@@ -31138,7 +31138,7 @@ const Xl = {
|
|
31138
31138
|
Ee || ct(), Fe.stopPropagation();
|
31139
31139
|
},
|
31140
31140
|
[Ee, ct]
|
31141
|
-
), wt =
|
31141
|
+
), wt = ve(() => {
|
31142
31142
|
if (!S || !b || Ee) return "";
|
31143
31143
|
if (Pe) {
|
31144
31144
|
const bt = ge.filter(
|
@@ -31161,7 +31161,7 @@ const Xl = {
|
|
31161
31161
|
vt,
|
31162
31162
|
e,
|
31163
31163
|
ge
|
31164
|
-
]),
|
31164
|
+
]), ye = ve(() => Pr.getContent(ee, r), [ee, r]), Ve = ve(() => Pr.getContent(te, r), [r, te]), st = ve(() => Pr.getContent(Y, r), [r, Y]), gt = ve(() => Pr.getContent(ne, r), [r, ne]), yt = ve(() => Pr.getContent(re, r), [r, re]);
|
31165
31165
|
return /* @__PURE__ */ v.jsxs(An.Fragment, { children: [
|
31166
31166
|
/* @__PURE__ */ v.jsxs(
|
31167
31167
|
Xr,
|
@@ -31275,7 +31275,7 @@ const Xl = {
|
|
31275
31275
|
height: le
|
31276
31276
|
}
|
31277
31277
|
) }),
|
31278
|
-
|
31278
|
+
ye && /* @__PURE__ */ v.jsx("div", { className: gn.RightSticky, children: ye })
|
31279
31279
|
]
|
31280
31280
|
}
|
31281
31281
|
),
|
@@ -31392,7 +31392,7 @@ const Xl = {
|
|
31392
31392
|
n(D);
|
31393
31393
|
},
|
31394
31394
|
[n]
|
31395
|
-
), S =
|
31395
|
+
), S = ve(() => h || g ? -1 : void 0, [h, g]);
|
31396
31396
|
return /* @__PURE__ */ v.jsx(
|
31397
31397
|
Gc,
|
31398
31398
|
{
|
@@ -31421,7 +31421,7 @@ const Xl = {
|
|
31421
31421
|
}
|
31422
31422
|
);
|
31423
31423
|
}, HM = (r) => {
|
31424
|
-
const { isEqual: e, searchResult: t, searchUp: n, searchDown: i, searchEnter: l, resources: u } = r, h =
|
31424
|
+
const { isEqual: e, searchResult: t, searchUp: n, searchDown: i, searchEnter: l, resources: u } = r, h = ve(() => !t || t.items.length < 1 ? 0 : t.items.findIndex((S) => t.item && e(S, t.item)) + 1, [t, e]), g = ve(() => !t || t.items.length < 1 ? 0 : t.items.length, [t]), m = ve(() => h < 2, [h]), L = ve(() => h >= g, [h, g]), T = pe(
|
31425
31425
|
(S) => {
|
31426
31426
|
S.stopPropagation(), !m && n();
|
31427
31427
|
},
|
@@ -31498,10 +31498,10 @@ const Xl = {
|
|
31498
31498
|
searchItemStyle: xe,
|
31499
31499
|
height: ge = 40,
|
31500
31500
|
...we
|
31501
|
-
} = r, De =
|
31501
|
+
} = r, De = ve(() => ({ ...yn.ATree, ...ue }), [ue]), Ne = pe(
|
31502
31502
|
(at, Lt) => e !== void 0 ? Array.isArray(e) ? e.every((xt) => nl.isEqual(at[xt], Lt[xt])) : nl.isEqual(at[e], Lt[e]) : nl.isEqual(at, Lt),
|
31503
31503
|
[e]
|
31504
|
-
), Ge = An.useRef(null), [Ee, nt] = bn(i, []), pt =
|
31504
|
+
), Ge = An.useRef(null), [Ee, nt] = bn(i, []), pt = ve(() => Xl.map(Ee, (at) => at), [Ee]), [Xe, Ke] = bn(l, []), [Pe, ke] = bn(u, []), [Re, je] = bn(h, void 0), Ie = pe(
|
31505
31505
|
(at) => {
|
31506
31506
|
if (O || !Ke || Xe.some((Qe) => Ne(Qe, at))) return;
|
31507
31507
|
const Lt = [];
|
@@ -31591,7 +31591,7 @@ const Xl = {
|
|
31591
31591
|
Ne,
|
31592
31592
|
Ct,
|
31593
31593
|
n
|
31594
|
-
]), [ut, wt] = Ht(!1),
|
31594
|
+
]), [ut, wt] = Ht(!1), ye = pe(() => wt(!0), []), Ve = pe(() => wt(!1), []), st = ve(() => n ? Xl.map(Ee, (at) => at).filter((at) => !n(at)) : t ? Xl.map(Ee, (at) => at).filter((at) => !t(at)) : Xl.map(Ee, (at) => at), [n, t, Ee]), gt = ve(() => !g || !w ? !1 : Pe.length > 0 && st.length > Pe.length, [g, w, Pe, st]), yt = ve(() => !g || !w ? !1 : Pe.length > 0 && st.length === Pe.length, [g, w, Pe, st]), Fe = pe(() => {
|
31595
31595
|
if (!ke || !w || O) return;
|
31596
31596
|
const at = Pe.filter(
|
31597
31597
|
(Lt) => !(n != null && n(Lt)) && !(t != null && t(Lt)) && st.some((xt) => Ne(xt, Lt))
|
@@ -31604,7 +31604,7 @@ const Xl = {
|
|
31604
31604
|
);
|
31605
31605
|
Lt.length > 0 && ke([...Pe, ...Lt]);
|
31606
31606
|
}
|
31607
|
-
}, [w, O, n, t, ke, Pe, st, Ne]), bt =
|
31607
|
+
}, [w, O, n, t, ke, Pe, st, Ne]), bt = ve(() => {
|
31608
31608
|
if (!g || !w || O) return "";
|
31609
31609
|
const at = Pe.filter(
|
31610
31610
|
(Lt) => !(n != null && n(Lt)) && !(t != null && t(Lt)) && st.some((xt) => Ne(xt, Lt))
|
@@ -31699,7 +31699,7 @@ const Xl = {
|
|
31699
31699
|
className: gn.CheckBox,
|
31700
31700
|
useCheck: [+yt, () => Fe()],
|
31701
31701
|
isIndeterminate: gt,
|
31702
|
-
onMouseOver:
|
31702
|
+
onMouseOver: ye,
|
31703
31703
|
onMouseOut: Ve,
|
31704
31704
|
isDisabled: O,
|
31705
31705
|
tooltip: bt
|
@@ -31927,7 +31927,7 @@ function Ch() {
|
|
31927
31927
|
}
|
31928
31928
|
if (ct(Q))
|
31929
31929
|
return Fe("WeakMap");
|
31930
|
-
if (
|
31930
|
+
if (ye(Q))
|
31931
31931
|
return Fe("WeakSet");
|
31932
31932
|
if (ut(Q))
|
31933
31933
|
return Fe("WeakRef");
|
@@ -32079,7 +32079,7 @@ function Ch() {
|
|
32079
32079
|
}
|
32080
32080
|
return !1;
|
32081
32081
|
}
|
32082
|
-
function
|
32082
|
+
function ye(de) {
|
32083
32083
|
if (!T || !de || typeof de != "object")
|
32084
32084
|
return !1;
|
32085
32085
|
try {
|