1mpacto-react-ui 0.0.48 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/core.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +417 -406
- package/dist/index.mjs.map +1 -1
- package/dist/src/interfaces/components/Virtualization/TableVirtualization.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1691,7 +1691,7 @@ function d4() {
|
|
1691
1691
|
// with.
|
1692
1692
|
A.$$typeof === F || A.getModuleId !== void 0));
|
1693
1693
|
}
|
1694
|
-
function
|
1694
|
+
function S(A, Z, Q) {
|
1695
1695
|
var pe = A.displayName;
|
1696
1696
|
if (pe)
|
1697
1697
|
return pe;
|
@@ -1731,7 +1731,7 @@ function d4() {
|
|
1731
1731
|
var Q = A;
|
1732
1732
|
return k(Q._context) + ".Provider";
|
1733
1733
|
case s:
|
1734
|
-
return
|
1734
|
+
return S(A, A.render, "ForwardRef");
|
1735
1735
|
case f:
|
1736
1736
|
var pe = A.displayName || null;
|
1737
1737
|
return pe !== null ? pe : T(A.type) || "Memo";
|
@@ -1746,14 +1746,14 @@ function d4() {
|
|
1746
1746
|
}
|
1747
1747
|
return null;
|
1748
1748
|
}
|
1749
|
-
var R = Object.assign, V = 0, B,
|
1749
|
+
var R = Object.assign, V = 0, B, E, L, H, G, N, W;
|
1750
1750
|
function q() {
|
1751
1751
|
}
|
1752
1752
|
q.__reactDisabledLog = !0;
|
1753
1753
|
function ge() {
|
1754
1754
|
{
|
1755
1755
|
if (V === 0) {
|
1756
|
-
B = console.log,
|
1756
|
+
B = console.log, E = console.info, L = console.warn, H = console.error, G = console.group, N = console.groupCollapsed, W = console.groupEnd;
|
1757
1757
|
var A = {
|
1758
1758
|
configurable: !0,
|
1759
1759
|
enumerable: !0,
|
@@ -1786,7 +1786,7 @@ function d4() {
|
|
1786
1786
|
value: B
|
1787
1787
|
}),
|
1788
1788
|
info: R({}, A, {
|
1789
|
-
value:
|
1789
|
+
value: E
|
1790
1790
|
}),
|
1791
1791
|
warn: R({}, A, {
|
1792
1792
|
value: L
|
@@ -2326,7 +2326,7 @@ function m4(e) {
|
|
2326
2326
|
}, I = (x) => {
|
2327
2327
|
v = x == null ? [] : v.filter((F) => F !== x), C();
|
2328
2328
|
}, $ = (x) => {
|
2329
|
-
const { toastId: F, onOpen: _, updateId:
|
2329
|
+
const { toastId: F, onOpen: _, updateId: S, children: k } = x.props, T = S == null;
|
2330
2330
|
x.staleId && y.delete(x.staleId), y.set(F, x), v = [...v, x.props.toastId].filter((R) => R !== x.staleId), C(), g(kc(x, T ? "added" : "updated")), T && Vt(_) && _(ye(k) && k.props);
|
2331
2331
|
};
|
2332
2332
|
return { id: c, props: b, observe: (x) => (D.add(x), () => D.delete(x)), toggle: (x, F) => {
|
@@ -2341,22 +2341,22 @@ function m4(e) {
|
|
2341
2341
|
const M = q ? q !== c : c !== 1, j = y.has(ge) && Y == null;
|
2342
2342
|
return M || j;
|
2343
2343
|
})(F)) return;
|
2344
|
-
const { toastId: _, updateId:
|
2344
|
+
const { toastId: _, updateId: S, data: k, staleId: T, delay: R } = F, V = () => {
|
2345
2345
|
I(_);
|
2346
|
-
}, B =
|
2346
|
+
}, B = S == null;
|
2347
2347
|
B && m++;
|
2348
|
-
const
|
2348
|
+
const E = { ...b, style: b.toastStyle, key: d++, ...Object.fromEntries(Object.entries(F).filter((W) => {
|
2349
2349
|
let [q, ge] = W;
|
2350
2350
|
return ge != null;
|
2351
|
-
})), toastId: _, updateId:
|
2351
|
+
})), toastId: _, updateId: S, data: k, closeToast: V, isIn: !1, className: Xo(F.className || b.toastClassName), bodyClassName: Xo(F.bodyClassName || b.bodyClassName), progressClassName: Xo(F.progressClassName || b.progressClassName), autoClose: !F.isLoading && (L = F.autoClose, H = b.autoClose, L === !1 || Na(L) && L > 0 ? L : H), deleteToast() {
|
2352
2352
|
const W = y.get(_), { onClose: q, children: ge } = W.props;
|
2353
2353
|
Vt(q) && q(ye(ge) && ge.props), g(kc(W, "removed")), y.delete(_), m--, m < 0 && (m = 0), h.length > 0 ? $(h.shift()) : C();
|
2354
2354
|
} };
|
2355
2355
|
var L, H;
|
2356
|
-
|
2356
|
+
E.closeButton = b.closeButton, F.closeButton === !1 || gs(F.closeButton) ? E.closeButton = F.closeButton : F.closeButton === !0 && (E.closeButton = !gs(b.closeButton) || b.closeButton);
|
2357
2357
|
let G = x;
|
2358
|
-
ye(x) && !vr(x.type) ? G = Va(x, { closeToast: V, toastProps:
|
2359
|
-
const N = { content: G, props:
|
2358
|
+
ye(x) && !vr(x.type) ? G = Va(x, { closeToast: V, toastProps: E, data: k }) : Vt(x) && (G = x({ closeToast: V, toastProps: E, data: k }));
|
2359
|
+
const N = { content: G, props: E, staleId: T };
|
2360
2360
|
b.limit && b.limit > 0 && m > b.limit && B ? h.push(N) : Na(R) ? setTimeout(() => {
|
2361
2361
|
$(N);
|
2362
2362
|
}, R) : $(N);
|
@@ -2518,7 +2518,7 @@ const y4 = typeof window < "u" ? Fr : Re, So = (e) => {
|
|
2518
2518
|
}, spinner: function() {
|
2519
2519
|
return P.createElement("div", { className: "Toastify__spinner" });
|
2520
2520
|
} }, C4 = (e) => {
|
2521
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: a, playToast: o } = p4(e), { closeButton: i, children: u, autoClose: s, onClick: l, type: c, hideProgressBar: f, closeToast: g, transition: d, position: m, className: h, style: v, bodyClassName: p, bodyStyle: b, progressClassName: y, progressStyle: D, updateId: C, role: I, progress: $, rtl: x, toastId: F, deleteToast: _, isIn:
|
2521
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: a, playToast: o } = p4(e), { closeButton: i, children: u, autoClose: s, onClick: l, type: c, hideProgressBar: f, closeToast: g, transition: d, position: m, className: h, style: v, bodyClassName: p, bodyStyle: b, progressClassName: y, progressStyle: D, updateId: C, role: I, progress: $, rtl: x, toastId: F, deleteToast: _, isIn: S, isLoading: k, closeOnClick: T, theme: R } = e, V = In("Toastify__toast", `Toastify__toast-theme--${R}`, `Toastify__toast--${c}`, { "Toastify__toast--rtl": x }, { "Toastify__toast--close-on-click": T }), B = Vt(h) ? h({ rtl: x, position: m, type: c, defaultClassName: V }) : In(V, h), E = function(N) {
|
2522
2522
|
let { theme: W, type: q, isLoading: ge, icon: Y } = N, M = null;
|
2523
2523
|
const j = { theme: W, type: q };
|
2524
2524
|
return Y === !1 || (Vt(Y) ? M = Y({ ...j, isLoading: ge }) : ye(Y) ? M = Va(Y, j) : ge ? M = xu.spinner() : ((U) => U in xu)(q) && (M = xu[q](j))), M;
|
@@ -2529,7 +2529,7 @@ const y4 = typeof window < "u" ? Fr : Re, So = (e) => {
|
|
2529
2529
|
return P.createElement("button", { className: `Toastify__close-button Toastify__close-button--${q}`, type: "button", onClick: (Y) => {
|
2530
2530
|
Y.stopPropagation(), W(Y);
|
2531
2531
|
}, "aria-label": ge }, P.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, P.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
2532
|
-
}(H)), P.createElement(d, { isIn:
|
2532
|
+
}(H)), P.createElement(d, { isIn: S, done: _, position: m, preventExitTransition: n, nodeRef: r, playToast: o }, P.createElement("div", { id: F, onClick: l, "data-in": S, className: B, ...a, style: v, ref: r }, P.createElement("div", { ...S && { role: I }, className: Vt(p) ? p({ type: c }) : In("Toastify__toast-body", p), style: b }, E != null && P.createElement("div", { className: In("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !k }) }, E), P.createElement("div", null, u)), G, P.createElement(h4, { ...C && !L ? { key: `pb-${C}` } : {}, rtl: x, theme: R, delay: s, isRunning: t, isIn: S, closeToast: g, hide: f, type: c, style: D, className: y, controlledProgress: L, progress: $ || 0 })));
|
2533
2533
|
}, Yi = function(e, t) {
|
2534
2534
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
2535
2535
|
}, x4 = Xi(Yi("bounce", !0));
|
@@ -3109,31 +3109,31 @@ const Pt = {
|
|
3109
3109
|
lg: "1024px",
|
3110
3110
|
xl: "1280px",
|
3111
3111
|
"2xl": "1536px"
|
3112
|
-
}, D9 = () => /* @__PURE__ */ w.jsx("div", { className: "1ru-w-full 1ru-bg-red-900", children: "index" }), B4 = "
|
3113
|
-
"button-base": "_button-
|
3114
|
-
"button-xs": "_button-
|
3115
|
-
"button-s": "_button-
|
3116
|
-
"button-m": "_button-
|
3117
|
-
"button-l": "_button-
|
3118
|
-
"button-small": "_button-
|
3119
|
-
"button-reguler": "_button-
|
3120
|
-
"button-large": "_button-
|
3112
|
+
}, D9 = () => /* @__PURE__ */ w.jsx("div", { className: "1ru-w-full 1ru-bg-red-900", children: "index" }), B4 = "_loading_nnzz2_5", at = {
|
3113
|
+
"button-base": "_button-base_nnzz2_1",
|
3114
|
+
"button-xs": "_button-xs_nnzz2_1",
|
3115
|
+
"button-s": "_button-s_nnzz2_1",
|
3116
|
+
"button-m": "_button-m_nnzz2_1",
|
3117
|
+
"button-l": "_button-l_nnzz2_1",
|
3118
|
+
"button-small": "_button-small_nnzz2_1",
|
3119
|
+
"button-reguler": "_button-reguler_nnzz2_1",
|
3120
|
+
"button-large": "_button-large_nnzz2_1",
|
3121
3121
|
loading: B4,
|
3122
|
-
"button-disabled-laba-grey-06": "_button-disabled-laba-grey-
|
3123
|
-
"nude-gray-500": "_nude-gray-
|
3124
|
-
"nude-laba-blue-10": "_nude-laba-blue-
|
3125
|
-
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-
|
3126
|
-
"ghost-laba-blue-10": "_ghost-laba-blue-
|
3127
|
-
"filled-laba-blue-10": "_filled-laba-blue-
|
3128
|
-
"button-disabled-gray-100": "_button-disabled-gray-
|
3129
|
-
"tertiary-gray-500": "_tertiary-gray-
|
3130
|
-
"tertiary-red-300": "_tertiary-red-
|
3131
|
-
"tertiary-blue-700": "_tertiary-blue-
|
3132
|
-
"secondary-red-600": "_secondary-red-
|
3133
|
-
"secondary-blue-700": "_secondary-blue-
|
3134
|
-
"primary-blue-700": "_primary-blue-
|
3135
|
-
"icon-loading": "_icon-
|
3136
|
-
"1ru-spin": "_1ru-
|
3122
|
+
"button-disabled-laba-grey-06": "_button-disabled-laba-grey-06_nnzz2_13",
|
3123
|
+
"nude-gray-500": "_nude-gray-500_nnzz2_13",
|
3124
|
+
"nude-laba-blue-10": "_nude-laba-blue-10_nnzz2_13",
|
3125
|
+
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-bg_white_nnzz2_13",
|
3126
|
+
"ghost-laba-blue-10": "_ghost-laba-blue-10_nnzz2_13",
|
3127
|
+
"filled-laba-blue-10": "_filled-laba-blue-10_nnzz2_13",
|
3128
|
+
"button-disabled-gray-100": "_button-disabled-gray-100_nnzz2_13",
|
3129
|
+
"tertiary-gray-500": "_tertiary-gray-500_nnzz2_13",
|
3130
|
+
"tertiary-red-300": "_tertiary-red-300_nnzz2_13",
|
3131
|
+
"tertiary-blue-700": "_tertiary-blue-700_nnzz2_13",
|
3132
|
+
"secondary-red-600": "_secondary-red-600_nnzz2_13",
|
3133
|
+
"secondary-blue-700": "_secondary-blue-700_nnzz2_13",
|
3134
|
+
"primary-blue-700": "_primary-blue-700_nnzz2_13",
|
3135
|
+
"icon-loading": "_icon-loading_nnzz2_85",
|
3136
|
+
"1ru-spin": "_1ru-spin_nnzz2_1"
|
3137
3137
|
}, _4 = ({ className: e = "" }) => /* @__PURE__ */ w.jsx(
|
3138
3138
|
"svg",
|
3139
3139
|
{
|
@@ -3183,6 +3183,15 @@ const Pt = {
|
|
3183
3183
|
s: at["button-s"],
|
3184
3184
|
xs: at["button-xs"]
|
3185
3185
|
},
|
3186
|
+
loadingSize: {
|
3187
|
+
large: "1ru-size-6",
|
3188
|
+
reguler: "1ru-size-6",
|
3189
|
+
small: "1ru-size-6",
|
3190
|
+
l: "1ru-size-6",
|
3191
|
+
m: "1ru-size-5",
|
3192
|
+
s: "1ru-size-5",
|
3193
|
+
xs: "1ru-size-5"
|
3194
|
+
},
|
3186
3195
|
variants: {
|
3187
3196
|
"filled-laba-blue-10": at["filled-laba-blue-10"],
|
3188
3197
|
"ghost-laba-blue-10": at["ghost-laba-blue-10"],
|
@@ -3210,7 +3219,7 @@ const Pt = {
|
|
3210
3219
|
typeof a == "function" && a(),
|
3211
3220
|
ye(a) && a
|
3212
3221
|
] }),
|
3213
|
-
l && /* @__PURE__ */ w.jsx(_4, { className: s }),
|
3222
|
+
l && /* @__PURE__ */ w.jsx(_4, { className: `${g.loadingSize[n]} ${s}` }),
|
3214
3223
|
i,
|
3215
3224
|
!l && /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
3216
3225
|
typeof o == "function" && o(),
|
@@ -3896,20 +3905,20 @@ const xy = function(e) {
|
|
3896
3905
|
}
|
3897
3906
|
};
|
3898
3907
|
const $ = C.map((_) => {
|
3899
|
-
const
|
3900
|
-
return [_.placement,
|
3908
|
+
const S = Rn(_.placement);
|
3909
|
+
return [_.placement, S && c ? (
|
3901
3910
|
// Check along the mainAxis and main crossAxis side.
|
3902
3911
|
_.overflows.slice(0, 2).reduce((k, T) => k + T, 0)
|
3903
3912
|
) : (
|
3904
3913
|
// Check only the mainAxis.
|
3905
3914
|
_.overflows[0]
|
3906
3915
|
), _.overflows];
|
3907
|
-
}).sort((_,
|
3916
|
+
}).sort((_, S) => _[1] - S[1]), F = ((a = $.filter((_) => _[2].slice(
|
3908
3917
|
0,
|
3909
3918
|
// Aligned placements should not check their opposite crossAxis
|
3910
3919
|
// side.
|
3911
3920
|
Rn(_[0]) ? 2 : 3
|
3912
|
-
).every((
|
3921
|
+
).every((S) => S <= 0))[0]) == null ? void 0 : a[0]) || $[0][0];
|
3913
3922
|
return F !== u ? {
|
3914
3923
|
data: {
|
3915
3924
|
index: p + 1,
|
@@ -3957,8 +3966,8 @@ const xy = function(e) {
|
|
3957
3966
|
placement: a,
|
3958
3967
|
overflows: F
|
3959
3968
|
}], !F.every((R) => R <= 0)) {
|
3960
|
-
var
|
3961
|
-
const R = (((
|
3969
|
+
var S, k;
|
3970
|
+
const R = (((S = o.flip) == null ? void 0 : S.index) || 0) + 1, V = $[R];
|
3962
3971
|
if (V)
|
3963
3972
|
return {
|
3964
3973
|
data: {
|
@@ -3969,12 +3978,12 @@ const xy = function(e) {
|
|
3969
3978
|
placement: V
|
3970
3979
|
}
|
3971
3980
|
};
|
3972
|
-
let B = (k = _.filter((
|
3981
|
+
let B = (k = _.filter((E) => E.overflows[0] <= 0).sort((E, L) => E.overflows[1] - L.overflows[1])[0]) == null ? void 0 : k.placement;
|
3973
3982
|
if (!B)
|
3974
3983
|
switch (d) {
|
3975
3984
|
case "bestFit": {
|
3976
3985
|
var T;
|
3977
|
-
const
|
3986
|
+
const E = (T = _.filter((L) => {
|
3978
3987
|
if (I) {
|
3979
3988
|
const H = aa(L.placement);
|
3980
3989
|
return H === b || // Create a bias to the `y` side axis due to horizontal
|
@@ -3983,7 +3992,7 @@ const xy = function(e) {
|
|
3983
3992
|
}
|
3984
3993
|
return !0;
|
3985
3994
|
}).map((L) => [L.placement, L.overflows.filter((H) => H > 0).reduce((H, G) => H + G, 0)]).sort((L, H) => L[1] - H[1])[0]) == null ? void 0 : T[0];
|
3986
|
-
|
3995
|
+
E && (B = E);
|
3987
3996
|
break;
|
3988
3997
|
}
|
3989
3998
|
case "initialPlacement":
|
@@ -4528,19 +4537,19 @@ function Zy(e) {
|
|
4528
4537
|
isPositioned: !1
|
4529
4538
|
}), [g, d] = O.useState(r);
|
4530
4539
|
yi(g, r) || d(r);
|
4531
|
-
const [m, h] = O.useState(null), [v, p] = O.useState(null), b = O.useCallback((
|
4532
|
-
|
4533
|
-
}, []), y = O.useCallback((
|
4534
|
-
|
4535
|
-
}, []), D = o || m, C = i || v, I = O.useRef(null), $ = O.useRef(null), x = O.useRef(c), F = s != null, _ = Zc(s),
|
4540
|
+
const [m, h] = O.useState(null), [v, p] = O.useState(null), b = O.useCallback((E) => {
|
4541
|
+
E !== I.current && (I.current = E, h(E));
|
4542
|
+
}, []), y = O.useCallback((E) => {
|
4543
|
+
E !== $.current && ($.current = E, p(E));
|
4544
|
+
}, []), D = o || m, C = i || v, I = O.useRef(null), $ = O.useRef(null), x = O.useRef(c), F = s != null, _ = Zc(s), S = Zc(a), k = O.useCallback(() => {
|
4536
4545
|
if (!I.current || !$.current)
|
4537
4546
|
return;
|
4538
|
-
const
|
4547
|
+
const E = {
|
4539
4548
|
placement: t,
|
4540
4549
|
strategy: n,
|
4541
4550
|
middleware: g
|
4542
4551
|
};
|
4543
|
-
|
4552
|
+
S.current && (E.platform = S.current), zy(I.current, $.current, E).then((L) => {
|
4544
4553
|
const H = {
|
4545
4554
|
...L,
|
4546
4555
|
isPositioned: !0
|
@@ -4549,10 +4558,10 @@ function Zy(e) {
|
|
4549
4558
|
f(H);
|
4550
4559
|
}));
|
4551
4560
|
});
|
4552
|
-
}, [g, t, n,
|
4561
|
+
}, [g, t, n, S]);
|
4553
4562
|
Yo(() => {
|
4554
|
-
l === !1 && x.current.isPositioned && (x.current.isPositioned = !1, f((
|
4555
|
-
...
|
4563
|
+
l === !1 && x.current.isPositioned && (x.current.isPositioned = !1, f((E) => ({
|
4564
|
+
...E,
|
4556
4565
|
isPositioned: !1
|
4557
4566
|
})));
|
4558
4567
|
}, [l]);
|
@@ -4575,16 +4584,16 @@ function Zy(e) {
|
|
4575
4584
|
reference: D,
|
4576
4585
|
floating: C
|
4577
4586
|
}), [D, C]), B = O.useMemo(() => {
|
4578
|
-
const
|
4587
|
+
const E = {
|
4579
4588
|
position: n,
|
4580
4589
|
left: 0,
|
4581
4590
|
top: 0
|
4582
4591
|
};
|
4583
4592
|
if (!V.floating)
|
4584
|
-
return
|
4593
|
+
return E;
|
4585
4594
|
const L = zc(V.floating, c.x), H = zc(V.floating, c.y);
|
4586
4595
|
return u ? {
|
4587
|
-
...
|
4596
|
+
...E,
|
4588
4597
|
transform: "translate(" + L + "px, " + H + "px)",
|
4589
4598
|
...Tg(V.floating) >= 1.5 && {
|
4590
4599
|
willChange: "transform"
|
@@ -4981,7 +4990,7 @@ function h3(e) {
|
|
4981
4990
|
domReference: y,
|
4982
4991
|
floating: D
|
4983
4992
|
}
|
4984
|
-
} = t, C = typeof i == "number" && i < 0, I = z4(y) && C, $ = u3() ? o : !0, x = mr(a), F = mr(i), _ = mr(u),
|
4993
|
+
} = t, C = typeof i == "number" && i < 0, I = z4(y) && C, $ = u3() ? o : !0, x = mr(a), F = mr(i), _ = mr(u), S = ml(), k = Og(), T = O.useRef(null), R = O.useRef(null), V = O.useRef(!1), B = O.useRef(!1), E = O.useRef(-1), L = k != null, H = D == null ? void 0 : D.firstElementChild, G = (H == null ? void 0 : H.id) === b ? H : D, N = Gn(function(Y) {
|
4985
4994
|
return Y === void 0 && (Y = G), Y ? Ki(Y, Ha()) : [];
|
4986
4995
|
}), W = Gn((Y) => {
|
4987
4996
|
const M = N(Y);
|
@@ -5004,7 +5013,7 @@ function h3(e) {
|
|
5004
5013
|
if (r || !D) return;
|
5005
5014
|
function Y(M) {
|
5006
5015
|
const j = cr(M), K = N().indexOf(j);
|
5007
|
-
K !== -1 && (
|
5016
|
+
K !== -1 && (E.current = K);
|
5008
5017
|
}
|
5009
5018
|
return D.addEventListener("focusin", Y), () => {
|
5010
5019
|
D.removeEventListener("focusin", Y);
|
@@ -5019,16 +5028,16 @@ function h3(e) {
|
|
5019
5028
|
function M(j) {
|
5020
5029
|
const U = j.relatedTarget;
|
5021
5030
|
queueMicrotask(() => {
|
5022
|
-
const K = !(_t(y, U) || _t(D, U) || _t(U, D) || _t(k == null ? void 0 : k.portalNode, U) || U != null && U.hasAttribute(Ga("focus-guard")) ||
|
5031
|
+
const K = !(_t(y, U) || _t(D, U) || _t(U, D) || _t(k == null ? void 0 : k.portalNode, U) || U != null && U.hasAttribute(Ga("focus-guard")) || S && (Aa(S.nodesRef.current, m).find((ae) => {
|
5023
5032
|
var se, z;
|
5024
5033
|
return _t((se = ae.context) == null ? void 0 : se.elements.floating, U) || _t((z = ae.context) == null ? void 0 : z.elements.domReference, U);
|
5025
|
-
}) || i3(
|
5034
|
+
}) || i3(S.nodesRef.current, m).find((ae) => {
|
5026
5035
|
var se, z;
|
5027
5036
|
return ((se = ae.context) == null ? void 0 : se.elements.floating) === U || ((z = ae.context) == null ? void 0 : z.elements.domReference) === U;
|
5028
5037
|
})));
|
5029
5038
|
if (s && K && ur(Kt(G)) === Kt(G).body) {
|
5030
5039
|
ct(G) && (G == null || G.focus());
|
5031
|
-
const ae =
|
5040
|
+
const ae = E.current, se = N(), z = se[ae] || se[se.length - 1] || G;
|
5032
5041
|
ct(z) && z.focus();
|
5033
5042
|
}
|
5034
5043
|
(I || !l) && U && K && !B.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
@@ -5039,7 +5048,7 @@ function h3(e) {
|
|
5039
5048
|
return y.addEventListener("focusout", M), y.addEventListener("pointerdown", Y), D.addEventListener("focusout", M), () => {
|
5040
5049
|
y.removeEventListener("focusout", M), y.removeEventListener("pointerdown", Y), D.removeEventListener("focusout", M);
|
5041
5050
|
};
|
5042
|
-
}, [r, y, D, G, l, m,
|
5051
|
+
}, [r, y, D, G, l, m, S, k, h, f, s, N, I]), O.useEffect(() => {
|
5043
5052
|
var Y;
|
5044
5053
|
if (r) return;
|
5045
5054
|
const M = Array.from((k == null || (Y = k.portalNode) == null ? void 0 : Y.querySelectorAll("[" + Ga("portal") + "]")) || []);
|
@@ -5075,7 +5084,7 @@ function h3(e) {
|
|
5075
5084
|
}
|
5076
5085
|
return v.on("openchange", ae), () => {
|
5077
5086
|
v.off("openchange", ae);
|
5078
|
-
const se = ur(M), z = _t(D, se) ||
|
5087
|
+
const se = ur(M), z = _t(D, se) || S && Aa(S.nodesRef.current, m).some((ze) => {
|
5079
5088
|
var Ye;
|
5080
5089
|
return _t((Ye = ze.context) == null ? void 0 : Ye.elements.floating, se);
|
5081
5090
|
});
|
@@ -5094,7 +5103,7 @@ function h3(e) {
|
|
5094
5103
|
preventScroll: Y
|
5095
5104
|
});
|
5096
5105
|
};
|
5097
|
-
}, [r, D, G, _, p, d, v,
|
5106
|
+
}, [r, D, G, _, p, d, v, S, m]), Rt(() => {
|
5098
5107
|
if (!r && k)
|
5099
5108
|
return k.setFocusManagerState({
|
5100
5109
|
modal: l,
|
@@ -5109,7 +5118,7 @@ function h3(e) {
|
|
5109
5118
|
if (r || !G || typeof MutationObserver != "function" || C) return;
|
5110
5119
|
const Y = () => {
|
5111
5120
|
const j = G.getAttribute("tabindex"), U = N(), K = ur(Kt(D)), ae = U.indexOf(K);
|
5112
|
-
ae !== -1 && (
|
5121
|
+
ae !== -1 && (E.current = ae), x.current.includes("floating") || K !== d.domReference.current && U.length === 0 ? j !== "0" && G.setAttribute("tabindex", "0") : j !== "-1" && G.setAttribute("tabindex", "-1");
|
5113
5122
|
};
|
5114
5123
|
Y();
|
5115
5124
|
const M = new MutationObserver(Y);
|
@@ -5251,10 +5260,10 @@ function C3(e, t) {
|
|
5251
5260
|
var V;
|
5252
5261
|
if (!n || !i || !u || R.key !== "Escape")
|
5253
5262
|
return;
|
5254
|
-
const B = (V = o.current.floatingContext) == null ? void 0 : V.nodeId,
|
5255
|
-
if (!D && (R.stopPropagation(),
|
5263
|
+
const B = (V = o.current.floatingContext) == null ? void 0 : V.nodeId, E = h ? Aa(h.nodesRef.current, B) : [];
|
5264
|
+
if (!D && (R.stopPropagation(), E.length > 0)) {
|
5256
5265
|
let L = !0;
|
5257
|
-
if (
|
5266
|
+
if (E.forEach((H) => {
|
5258
5267
|
var G;
|
5259
5268
|
if ((G = H.context) != null && G.open && !H.context.dataRef.current.__escapeKeyBubbles) {
|
5260
5269
|
L = !1;
|
@@ -5267,16 +5276,16 @@ function C3(e, t) {
|
|
5267
5276
|
}), F = Gn((R) => {
|
5268
5277
|
var V;
|
5269
5278
|
const B = () => {
|
5270
|
-
var
|
5271
|
-
x(R), (
|
5279
|
+
var E;
|
5280
|
+
x(R), (E = cr(R)) == null || E.removeEventListener("keydown", B);
|
5272
5281
|
};
|
5273
5282
|
(V = cr(R)) == null || V.addEventListener("keydown", B);
|
5274
5283
|
}), _ = Gn((R) => {
|
5275
5284
|
var V;
|
5276
5285
|
const B = b.current;
|
5277
5286
|
b.current = !1;
|
5278
|
-
const
|
5279
|
-
if (y.current = !1, l === "click" &&
|
5287
|
+
const E = y.current;
|
5288
|
+
if (y.current = !1, l === "click" && E || B || typeof p == "function" && !p(R))
|
5280
5289
|
return;
|
5281
5290
|
const L = cr(R), H = "[" + Ga("inert") + "]", G = Kt(a.floating).querySelectorAll(H);
|
5282
5291
|
let N = Je(L) ? L : null;
|
@@ -5316,11 +5325,11 @@ function C3(e, t) {
|
|
5316
5325
|
return;
|
5317
5326
|
}
|
5318
5327
|
r(!1, R, "outside-press");
|
5319
|
-
}),
|
5328
|
+
}), S = Gn((R) => {
|
5320
5329
|
var V;
|
5321
5330
|
const B = () => {
|
5322
|
-
var
|
5323
|
-
_(R), (
|
5331
|
+
var E;
|
5332
|
+
_(R), (E = cr(R)) == null || E.removeEventListener(l, B);
|
5324
5333
|
};
|
5325
5334
|
(V = cr(R)) == null || V.addEventListener(l, B);
|
5326
5335
|
});
|
@@ -5328,25 +5337,25 @@ function C3(e, t) {
|
|
5328
5337
|
if (!n || !i)
|
5329
5338
|
return;
|
5330
5339
|
o.current.__escapeKeyBubbles = D, o.current.__outsidePressBubbles = C;
|
5331
|
-
function R(
|
5332
|
-
r(!1,
|
5340
|
+
function R(E) {
|
5341
|
+
r(!1, E, "ancestor-scroll");
|
5333
5342
|
}
|
5334
5343
|
const V = Kt(a.floating);
|
5335
|
-
u && V.addEventListener("keydown", I ? F : x, I), p && V.addEventListener(l, $ ?
|
5344
|
+
u && V.addEventListener("keydown", I ? F : x, I), p && V.addEventListener(l, $ ? S : _, $);
|
5336
5345
|
let B = [];
|
5337
|
-
return g && (Je(a.domReference) && (B = Zn(a.domReference)), Je(a.floating) && (B = B.concat(Zn(a.floating))), !Je(a.reference) && a.reference && a.reference.contextElement && (B = B.concat(Zn(a.reference.contextElement)))), B = B.filter((
|
5346
|
+
return g && (Je(a.domReference) && (B = Zn(a.domReference)), Je(a.floating) && (B = B.concat(Zn(a.floating))), !Je(a.reference) && a.reference && a.reference.contextElement && (B = B.concat(Zn(a.reference.contextElement)))), B = B.filter((E) => {
|
5338
5347
|
var L;
|
5339
|
-
return
|
5340
|
-
}), B.forEach((
|
5341
|
-
|
5348
|
+
return E !== ((L = V.defaultView) == null ? void 0 : L.visualViewport);
|
5349
|
+
}), B.forEach((E) => {
|
5350
|
+
E.addEventListener("scroll", R, {
|
5342
5351
|
passive: !0
|
5343
5352
|
});
|
5344
5353
|
}), () => {
|
5345
|
-
u && V.removeEventListener("keydown", I ? F : x, I), p && V.removeEventListener(l, $ ?
|
5346
|
-
|
5354
|
+
u && V.removeEventListener("keydown", I ? F : x, I), p && V.removeEventListener(l, $ ? S : _, $), B.forEach((E) => {
|
5355
|
+
E.removeEventListener("scroll", R);
|
5347
5356
|
});
|
5348
5357
|
};
|
5349
|
-
}, [o, a, u, p, l, n, r, g, i, D, C, x, I, F, _, $,
|
5358
|
+
}, [o, a, u, p, l, n, r, g, i, D, C, x, I, F, _, $, S]), O.useEffect(() => {
|
5350
5359
|
b.current = !1;
|
5351
5360
|
}, [p, l]);
|
5352
5361
|
const k = O.useMemo(() => ({
|
@@ -5715,17 +5724,17 @@ const F3 = "_popover_7cinv_1", A3 = {
|
|
5715
5724
|
],
|
5716
5725
|
whileElementsMounted: Ag,
|
5717
5726
|
...d
|
5718
|
-
}), D = b3(y), C = C3(y), I = E3(y), { getReferenceProps: $, getFloatingProps: x } = w3([D, C, I]), { styles: F, isMounted: _ } = R3(y),
|
5727
|
+
}), D = b3(y), C = C3(y), I = E3(y), { getReferenceProps: $, getFloatingProps: x } = w3([D, C, I]), { styles: F, isMounted: _ } = R3(y), S = (T) => {
|
5719
5728
|
p.setReference(T.currentTarget), v((R) => !R);
|
5720
5729
|
};
|
5721
5730
|
Re(() => {
|
5722
|
-
o && i ?
|
5731
|
+
o && i ? S({ currentTarget: i }) : o || v(!1);
|
5723
5732
|
}, [o, i]), Ib(
|
5724
5733
|
t,
|
5725
5734
|
() => ({
|
5726
5735
|
show: h,
|
5727
5736
|
setShow: v,
|
5728
|
-
handlerShow:
|
5737
|
+
handlerShow: S,
|
5729
5738
|
getReferenceProps: $
|
5730
5739
|
}),
|
5731
5740
|
[h]
|
@@ -6662,8 +6671,8 @@ const rm = {
|
|
6662
6671
|
var D, C;
|
6663
6672
|
const I = t.options.columnResizeDirection === "rtl" ? -1 : 1, $ = (b - ((D = y == null ? void 0 : y.startOffset) != null ? D : 0)) * I, x = Math.max($ / ((C = y == null ? void 0 : y.startSize) != null ? C : 0), -0.999999);
|
6664
6673
|
return y.columnSizingStart.forEach((F) => {
|
6665
|
-
let [_,
|
6666
|
-
l[_] = Math.round(Math.max(
|
6674
|
+
let [_, S] = F;
|
6675
|
+
l[_] = Math.round(Math.max(S + S * x, 0) * 100) / 100;
|
6667
6676
|
}), {
|
6668
6677
|
...y,
|
6669
6678
|
deltaOffset: $,
|
@@ -8802,7 +8811,7 @@ const zC = {
|
|
8802
8811
|
he((C) => C.length > 0),
|
8803
8812
|
De(h, d),
|
8804
8813
|
te(([C, I, $]) => {
|
8805
|
-
const x = C.reduce((F, _,
|
8814
|
+
const x = C.reduce((F, _, S) => kt(F, _, Xa(_, I.offsetTree, $) || S), Qr());
|
8806
8815
|
return {
|
8807
8816
|
...I,
|
8808
8817
|
groupIndices: C,
|
@@ -8889,8 +8898,8 @@ const zC = {
|
|
8889
8898
|
const $ = I.groupIndices.length > 0, x = [], F = I.lastSize;
|
8890
8899
|
if ($) {
|
8891
8900
|
const _ = Za(I.sizeTree, 0);
|
8892
|
-
let
|
8893
|
-
for (;
|
8901
|
+
let S = 0, k = 0;
|
8902
|
+
for (; S < C; ) {
|
8894
8903
|
const V = I.groupIndices[k], B = I.groupIndices.length === k + 1 ? 1 / 0 : I.groupIndices[k + 1] - V - 1;
|
8895
8904
|
x.push({
|
8896
8905
|
startIndex: V,
|
@@ -8900,11 +8909,11 @@ const zC = {
|
|
8900
8909
|
startIndex: V + 1,
|
8901
8910
|
endIndex: V + 1 + B - 1,
|
8902
8911
|
size: F
|
8903
|
-
}), k++,
|
8912
|
+
}), k++, S += B + 1;
|
8904
8913
|
}
|
8905
8914
|
const T = pr(I.sizeTree);
|
8906
|
-
return
|
8907
|
-
(V, { k: B, v:
|
8915
|
+
return S !== C && T.shift(), T.reduce(
|
8916
|
+
(V, { k: B, v: E }) => {
|
8908
8917
|
let L = V.ranges;
|
8909
8918
|
return V.prevSize !== 0 && (L = [
|
8910
8919
|
...V.ranges,
|
@@ -8916,7 +8925,7 @@ const zC = {
|
|
8916
8925
|
]), {
|
8917
8926
|
ranges: L,
|
8918
8927
|
prevIndex: B + C,
|
8919
|
-
prevSize:
|
8928
|
+
prevSize: E
|
8920
8929
|
};
|
8921
8930
|
},
|
8922
8931
|
{
|
@@ -8927,9 +8936,9 @@ const zC = {
|
|
8927
8936
|
).ranges;
|
8928
8937
|
}
|
8929
8938
|
return pr(I.sizeTree).reduce(
|
8930
|
-
(_, { k:
|
8931
|
-
ranges: [..._.ranges, { startIndex: _.prevIndex, endIndex:
|
8932
|
-
prevIndex:
|
8939
|
+
(_, { k: S, v: k }) => ({
|
8940
|
+
ranges: [..._.ranges, { startIndex: _.prevIndex, endIndex: S + C - 1, size: _.prevSize }],
|
8941
|
+
prevIndex: S + C,
|
8933
8942
|
prevSize: k
|
8934
8943
|
}),
|
8935
8944
|
{
|
@@ -8962,13 +8971,13 @@ const zC = {
|
|
8962
8971
|
return I;
|
8963
8972
|
let F = Qr();
|
8964
8973
|
const _ = vt(v);
|
8965
|
-
let
|
8966
|
-
for (;
|
8974
|
+
let S = 0, k = 0, T = 0;
|
8975
|
+
for (; S < -C; ) {
|
8967
8976
|
T = _[k];
|
8968
8977
|
const V = _[k + 1] - T - 1;
|
8969
|
-
k++,
|
8978
|
+
k++, S += V + 1;
|
8970
8979
|
}
|
8971
|
-
if (F = pr(I.sizeTree).reduce((V, { k: B, v:
|
8980
|
+
if (F = pr(I.sizeTree).reduce((V, { k: B, v: E }) => kt(V, Math.max(0, B + C), E), F), S !== -C) {
|
8972
8981
|
const V = Za(I.sizeTree, T);
|
8973
8982
|
F = kt(F, 0, V);
|
8974
8983
|
const B = an(I.sizeTree, -C + 1)[1];
|
@@ -8980,7 +8989,7 @@ const zC = {
|
|
8980
8989
|
...Ss(I.offsetTree, 0, F, $)
|
8981
8990
|
};
|
8982
8991
|
} else {
|
8983
|
-
const F = pr(I.sizeTree).reduce((_, { k:
|
8992
|
+
const F = pr(I.sizeTree).reduce((_, { k: S, v: k }) => kt(_, Math.max(0, S + C), k), Qr());
|
8984
8993
|
return {
|
8985
8994
|
...I,
|
8986
8995
|
sizeTree: F,
|
@@ -9046,18 +9055,18 @@ const po = Be(
|
|
9046
9055
|
De(r, c, f),
|
9047
9056
|
te(
|
9048
9057
|
([
|
9049
|
-
[D, C, I, $, x, F, _,
|
9058
|
+
[D, C, I, $, x, F, _, S],
|
9050
9059
|
k,
|
9051
9060
|
T,
|
9052
9061
|
R
|
9053
9062
|
]) => {
|
9054
|
-
const V = Pm(D), { align: B, behavior:
|
9063
|
+
const V = Pm(D), { align: B, behavior: E, offset: L } = V, H = $ - 1, G = Am(V, C, H);
|
9055
9064
|
let N = Xa(G, C.offsetTree, k) + F;
|
9056
9065
|
B === "end" ? (N += T + an(C.sizeTree, G)[1] - I + R, G === H && (N += _)) : B === "center" ? N += (T + an(C.sizeTree, G)[1] - I + R) / 2 : N -= x, L && (N += L);
|
9057
9066
|
const W = (q) => {
|
9058
|
-
y(), q ? (
|
9067
|
+
y(), q ? (S("retrying to scroll to", { location: D }, Ot.DEBUG), Ce(d, D)) : (Ce(m, !0), S("list did not change, scroll successful", {}, Ot.DEBUG));
|
9059
9068
|
};
|
9060
|
-
if (y(),
|
9069
|
+
if (y(), E === "smooth") {
|
9061
9070
|
let q = !1;
|
9062
9071
|
b = Ge(n, (ge) => {
|
9063
9072
|
q = q || ge;
|
@@ -9068,7 +9077,7 @@ const po = Be(
|
|
9068
9077
|
v = hn(X(n, XC(150)), W);
|
9069
9078
|
return p = setTimeout(() => {
|
9070
9079
|
y();
|
9071
|
-
}, 1200), Ce(a, !0),
|
9080
|
+
}, 1200), Ce(a, !0), S("scrolling from index to", { index: G, top: N, behavior: E }, Ot.DEBUG), { top: N, behavior: E };
|
9072
9081
|
}
|
9073
9082
|
)
|
9074
9083
|
),
|
@@ -9138,10 +9147,10 @@ const Ya = "up", Pa = "down", YC = "none", UC = {
|
|
9138
9147
|
scrollTopDelta: T
|
9139
9148
|
};
|
9140
9149
|
}
|
9141
|
-
let
|
9142
|
-
return _.scrollHeight > b.state.scrollHeight ?
|
9150
|
+
let S;
|
9151
|
+
return _.scrollHeight > b.state.scrollHeight ? S = "SIZE_INCREASED" : C < b.state.viewportHeight ? S = "VIEWPORT_HEIGHT_DECREASING" : y < b.state.scrollTop ? S = "SCROLLING_UPWARDS" : S = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
|
9143
9152
|
atBottom: !1,
|
9144
|
-
notAtBottomBecause:
|
9153
|
+
notAtBottomBecause: S,
|
9145
9154
|
state: _
|
9146
9155
|
};
|
9147
9156
|
}, UC),
|
@@ -9592,18 +9601,18 @@ const Tr = Be(
|
|
9592
9601
|
x,
|
9593
9602
|
F,
|
9594
9603
|
_,
|
9595
|
-
|
9604
|
+
S,
|
9596
9605
|
k,
|
9597
9606
|
T,
|
9598
9607
|
R,
|
9599
9608
|
V
|
9600
9609
|
]) => {
|
9601
|
-
const B = F, { sizeTree:
|
9610
|
+
const B = F, { sizeTree: E, offsetTree: L } = B, H = vt(v);
|
9602
9611
|
if (x === 0)
|
9603
9612
|
return { ..._u, totalCount: x };
|
9604
9613
|
if (I === 0 && $ === 0)
|
9605
9614
|
return H === 0 ? { ..._u, totalCount: x } : km(H, _, F, T, R, V || []);
|
9606
|
-
if (We(
|
9615
|
+
if (We(E))
|
9607
9616
|
return H > 0 ? null : Qo(
|
9608
9617
|
ex($l(_, x), B, V),
|
9609
9618
|
[],
|
@@ -9616,13 +9625,13 @@ const Tr = Be(
|
|
9616
9625
|
if (k.length > 0) {
|
9617
9626
|
const Y = k[0], M = k[k.length - 1];
|
9618
9627
|
let j = 0;
|
9619
|
-
for (const U of nu(
|
9628
|
+
for (const U of nu(E, Y, M)) {
|
9620
9629
|
const K = U.value, ae = Math.max(U.start, Y), se = Math.min(U.end, M);
|
9621
9630
|
for (let z = ae; z <= se; z++)
|
9622
9631
|
G.push({ index: z, size: K, offset: j, data: V && V[z] }), j += K;
|
9623
9632
|
}
|
9624
9633
|
}
|
9625
|
-
if (!
|
9634
|
+
if (!S)
|
9626
9635
|
return Qo([], G, x, R, B, T);
|
9627
9636
|
const N = k.length > 0 ? k[k.length - 1] + 1 : 0, W = GC(L, I, $, N);
|
9628
9637
|
if (W.length === 0)
|
@@ -9857,8 +9866,8 @@ const rx = Nm(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
9857
9866
|
let F = 0, _ = 0;
|
9858
9867
|
for (; F < p; ) {
|
9859
9868
|
F++, $ += x;
|
9860
|
-
let
|
9861
|
-
F +
|
9869
|
+
let S = y.length === _ + 1 ? 1 / 0 : y[_ + 1] - y[_] - 1;
|
9870
|
+
F + S > p && ($ -= x, S = p - F + 1), F += S, $ += I(S), _++;
|
9862
9871
|
}
|
9863
9872
|
return $;
|
9864
9873
|
}
|
@@ -9971,9 +9980,9 @@ const rx = Nm(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
9971
9980
|
De(e, a, t, o, i, u, r),
|
9972
9981
|
De(n),
|
9973
9982
|
te(([[f, g, d, m, h, v, p, b], y]) => {
|
9974
|
-
const { done: D, behavior: C, align: I, calculateViewLocation: $ = ux, ...x } = f, F = Am(f, g, m - 1), _ = Xa(F, g.offsetTree, y) + h + v,
|
9983
|
+
const { done: D, behavior: C, align: I, calculateViewLocation: $ = ux, ...x } = f, F = Am(f, g, m - 1), _ = Xa(F, g.offsetTree, y) + h + v, S = _ + an(g.sizeTree, F)[1], k = b + v, T = b + d - p, R = $({
|
9975
9984
|
itemTop: _,
|
9976
|
-
itemBottom:
|
9985
|
+
itemBottom: S,
|
9977
9986
|
viewportTop: k,
|
9978
9987
|
viewportBottom: T,
|
9979
9988
|
locationParams: { behavior: C, align: I, ...x }
|
@@ -10231,11 +10240,11 @@ const fx = /* @__PURE__ */ Be(() => {
|
|
10231
10240
|
_l("deviation", (R) => {
|
10232
10241
|
p !== R && b(R);
|
10233
10242
|
});
|
10234
|
-
const y = Ee("EmptyPlaceholder"), D = Ee("ScrollSeekPlaceholder") || mx, C = Ee("ListComponent"), I = Ee("ItemComponent"), $ = Ee("GroupComponent"), x = Ee("computeItemKey"), F = Ee("isSeeking"), _ = Ee("groupIndices").length > 0,
|
10243
|
+
const y = Ee("EmptyPlaceholder"), D = Ee("ScrollSeekPlaceholder") || mx, C = Ee("ListComponent"), I = Ee("ItemComponent"), $ = Ee("GroupComponent"), x = Ee("computeItemKey"), F = Ee("isSeeking"), _ = Ee("groupIndices").length > 0, S = Ee("alignToBottom"), k = Ee("initialItemFinalLocationReached"), T = t ? {} : {
|
10235
10244
|
boxSizing: "border-box",
|
10236
10245
|
paddingTop: n.offsetTop,
|
10237
10246
|
paddingBottom: n.offsetBottom,
|
10238
|
-
marginTop: p !== 0 ? p :
|
10247
|
+
marginTop: p !== 0 ? p : S ? "auto" : 0,
|
10239
10248
|
...k ? {} : { visibility: "hidden" }
|
10240
10249
|
};
|
10241
10250
|
return !t && n.totalCount === 0 && y ? P.createElement(y, Ke(y, c)) : P.createElement(
|
@@ -10482,7 +10491,7 @@ const Px = /* @__PURE__ */ Be(
|
|
10482
10491
|
{ windowViewportRect: h, useWindowScroll: v, customScrollParent: p, windowScrollContainerState: b, windowScrollTo: y },
|
10483
10492
|
D
|
10484
10493
|
]) => {
|
10485
|
-
const C = J(0), I = J(0), $ = J(xd), x = J({ height: 0, width: 0 }), F = J({ height: 0, width: 0 }), _ = Ae(),
|
10494
|
+
const C = J(0), I = J(0), $ = J(xd), x = J({ height: 0, width: 0 }), F = J({ height: 0, width: 0 }), _ = Ae(), S = Ae(), k = J(0), T = J(null), R = J({ row: 0, column: 0 }), V = Ae(), B = Ae(), E = J(!1), L = J(0), H = J(!0), G = J(!1);
|
10486
10495
|
Ge(
|
10487
10496
|
X(
|
10488
10497
|
m,
|
@@ -10518,8 +10527,8 @@ const Px = /* @__PURE__ */ Be(
|
|
10518
10527
|
he(([, M]) => M != null)
|
10519
10528
|
),
|
10520
10529
|
([, M]) => {
|
10521
|
-
M && (Ce(x, M.viewport), Ce(F, M == null ? void 0 : M.item), Ce(R, M.gap), M.scrollTop > 0 && (Ce(
|
10522
|
-
Ce(
|
10530
|
+
M && (Ce(x, M.viewport), Ce(F, M == null ? void 0 : M.item), Ce(R, M.gap), M.scrollTop > 0 && (Ce(E, !0), hn(X(r, ia(1)), (j) => {
|
10531
|
+
Ce(E, !1);
|
10523
10532
|
}), Ce(i, { top: M.scrollTop })));
|
10524
10533
|
}
|
10525
10534
|
), ue(
|
@@ -10554,7 +10563,7 @@ const Px = /* @__PURE__ */ Be(
|
|
10554
10563
|
be(x, Po),
|
10555
10564
|
be(T),
|
10556
10565
|
be(I),
|
10557
|
-
be(
|
10566
|
+
be(E),
|
10558
10567
|
be(H),
|
10559
10568
|
be(L)
|
10560
10569
|
),
|
@@ -10636,7 +10645,7 @@ const Px = /* @__PURE__ */ Be(
|
|
10636
10645
|
), ge = Nt(
|
10637
10646
|
X(
|
10638
10647
|
be($),
|
10639
|
-
De(
|
10648
|
+
De(E),
|
10640
10649
|
he(([{ items: M }, j]) => M.length > 0 && !j),
|
10641
10650
|
te(([{ items: M }]) => ({
|
10642
10651
|
startIndex: M[0].index,
|
@@ -10680,7 +10689,7 @@ const Px = /* @__PURE__ */ Be(
|
|
10680
10689
|
viewportDimensions: x,
|
10681
10690
|
itemDimensions: F,
|
10682
10691
|
scrollTop: r,
|
10683
|
-
scrollHeight:
|
10692
|
+
scrollHeight: S,
|
10684
10693
|
overscan: e,
|
10685
10694
|
scrollBy: o,
|
10686
10695
|
scrollTo: i,
|
@@ -10709,7 +10718,7 @@ const Px = /* @__PURE__ */ Be(
|
|
10709
10718
|
rangeChanged: ge,
|
10710
10719
|
stateChanged: V,
|
10711
10720
|
propsReady: d,
|
10712
|
-
stateRestoreInProgress:
|
10721
|
+
stateRestoreInProgress: E,
|
10713
10722
|
...D
|
10714
10723
|
};
|
10715
10724
|
},
|
@@ -10904,8 +10913,8 @@ const Wx = /* @__PURE__ */ Be(() => {
|
|
10904
10913
|
const v = Oe("EmptyPlaceholder"), p = Oe("ScrollSeekPlaceholder") || zx, b = Oe("FillerRow") || Zx, y = Oe("TableBodyComponent"), D = Oe("TableRowComponent"), C = Oe("computeItemKey"), I = Oe("isSeeking"), $ = Oe("paddingTopAddition"), x = Oe("firstItemIndex"), F = Oe("statefulTotalCount"), _ = Oe("context");
|
10905
10914
|
if (F === 0 && v)
|
10906
10915
|
return P.createElement(v, Ke(v, _));
|
10907
|
-
const
|
10908
|
-
const
|
10916
|
+
const S = t.offsetTop + $ + m, k = t.offsetBottom, T = S > 0 ? /* @__PURE__ */ P.createElement(b, { height: S, key: "padding-top", context: _ }) : null, R = k > 0 ? /* @__PURE__ */ P.createElement(b, { height: k, key: "padding-bottom", context: _ }) : null, V = t.items.map((B) => {
|
10917
|
+
const E = B.originalIndex, L = C(E + x, B.data, _);
|
10909
10918
|
return I ? P.createElement(p, {
|
10910
10919
|
...Ke(p, _),
|
10911
10920
|
key: L,
|
@@ -10918,7 +10927,7 @@ const Wx = /* @__PURE__ */ Be(() => {
|
|
10918
10927
|
...Ke(D, _),
|
10919
10928
|
...Hm(D, B.data),
|
10920
10929
|
key: L,
|
10921
|
-
"data-index":
|
10930
|
+
"data-index": E,
|
10922
10931
|
"data-known-size": B.size,
|
10923
10932
|
"data-item-index": B.index,
|
10924
10933
|
style: Xx
|
@@ -11047,45 +11056,46 @@ const Wx = /* @__PURE__ */ Be(() => {
|
|
11047
11056
|
accumulationHeight: b = 0,
|
11048
11057
|
delayTriggerCalculateHeight: y = 0,
|
11049
11058
|
increaseViewportBy: D = () => 0,
|
11050
|
-
context: C = {}
|
11051
|
-
|
11059
|
+
context: C = {},
|
11060
|
+
endReached: I
|
11061
|
+
} = e, [$, x] = re(0), F = () => {
|
11052
11062
|
if (i === "min-max") {
|
11053
|
-
const
|
11054
|
-
return { height: o > l ? s :
|
11063
|
+
const k = (o + 1) * u;
|
11064
|
+
return { height: o > l ? s : $ > k ? $ : k };
|
11055
11065
|
}
|
11056
|
-
return i === "container" ? { height:
|
11057
|
-
},
|
11058
|
-
var
|
11059
|
-
const
|
11060
|
-
let
|
11061
|
-
return d == null || d.forEach((
|
11062
|
-
var
|
11063
|
-
|
11064
|
-
}),
|
11065
|
-
},
|
11066
|
-
var
|
11066
|
+
return i === "container" ? { height: $ } : {};
|
11067
|
+
}, _ = (k) => {
|
11068
|
+
var V;
|
11069
|
+
const T = k.getAttribute("data-index");
|
11070
|
+
let R = ((V = k.getBoundingClientRect()) == null ? void 0 : V.height) || 0;
|
11071
|
+
return d == null || d.forEach((B) => {
|
11072
|
+
var E, L;
|
11073
|
+
R += ((L = (E = document.querySelector(`[${B}="${T}"]`)) == null ? void 0 : E.getBoundingClientRect()) == null ? void 0 : L.height) ?? 0;
|
11074
|
+
}), R;
|
11075
|
+
}, S = () => {
|
11076
|
+
var k;
|
11067
11077
|
if (v && i === "container") {
|
11068
|
-
const
|
11069
|
-
|
11078
|
+
const T = ((k = document == null ? void 0 : document.getElementById(v)) == null ? void 0 : k.offsetHeight) ?? 0;
|
11079
|
+
x(T - b);
|
11070
11080
|
}
|
11071
11081
|
};
|
11072
11082
|
return Re(() => {
|
11073
|
-
const
|
11074
|
-
return window == null || window.addEventListener("resize",
|
11075
|
-
clearTimeout(
|
11083
|
+
const k = setTimeout(S, y);
|
11084
|
+
return window == null || window.addEventListener("resize", S), window == null || window.addEventListener("load", S), () => {
|
11085
|
+
clearTimeout(k), window == null || window.removeEventListener("resize", S), window == null || window.removeEventListener("load", S);
|
11076
11086
|
};
|
11077
11087
|
}, [i, p]), /* @__PURE__ */ w.jsx("div", { className: `1ru-w-full ${n}`, children: /* @__PURE__ */ w.jsx(
|
11078
11088
|
t2,
|
11079
11089
|
{
|
11080
11090
|
context: C,
|
11081
11091
|
ref: t,
|
11082
|
-
overscan: typeof m == "function" ? m(i === "container" ?
|
11083
|
-
totalListHeightChanged: (
|
11084
|
-
style:
|
11092
|
+
overscan: typeof m == "function" ? m(i === "container" ? $ : s) : i === "container" ? $ : s,
|
11093
|
+
totalListHeightChanged: (k) => i === "min-max" ? x(k) : null,
|
11094
|
+
style: F(),
|
11085
11095
|
totalCount: o,
|
11086
11096
|
computeItemKey: r,
|
11087
11097
|
itemSize: $e(
|
11088
|
-
(
|
11098
|
+
(k) => g === "manual" ? a(k) : _(k),
|
11089
11099
|
[]
|
11090
11100
|
),
|
11091
11101
|
components: {
|
@@ -11095,8 +11105,9 @@ const Wx = /* @__PURE__ */ Be(() => {
|
|
11095
11105
|
...h
|
11096
11106
|
},
|
11097
11107
|
fixedHeaderContent: c,
|
11098
|
-
itemContent: (...
|
11099
|
-
|
11108
|
+
itemContent: (...k) => f(n2, ...k),
|
11109
|
+
endReached: I,
|
11110
|
+
increaseViewportBy: D(i === "container" ? $ : s)
|
11100
11111
|
}
|
11101
11112
|
) });
|
11102
11113
|
});
|
@@ -11390,29 +11401,29 @@ const u2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ w.jsx("table", {
|
|
11390
11401
|
endReached: C
|
11391
11402
|
} = e, [I, $] = re(0), x = () => {
|
11392
11403
|
if (i === "min-max") {
|
11393
|
-
const
|
11394
|
-
return { height: o > l ? s : I >
|
11404
|
+
const S = (o + 1) * u;
|
11405
|
+
return { height: o > l ? s : I > S ? I : S };
|
11395
11406
|
}
|
11396
11407
|
return i === "container" ? { height: I } : {};
|
11397
|
-
}, F = (
|
11408
|
+
}, F = (S) => {
|
11398
11409
|
var R;
|
11399
|
-
const k =
|
11400
|
-
let T = ((R =
|
11410
|
+
const k = S.getAttribute("data-index");
|
11411
|
+
let T = ((R = S.getBoundingClientRect()) == null ? void 0 : R.height) || 0;
|
11401
11412
|
return g == null || g.forEach((V) => {
|
11402
|
-
var B,
|
11403
|
-
T += ((
|
11413
|
+
var B, E;
|
11414
|
+
T += ((E = (B = document.querySelector(`[${V}="${k}"]`)) == null ? void 0 : B.getBoundingClientRect()) == null ? void 0 : E.height) ?? 0;
|
11404
11415
|
}), T;
|
11405
11416
|
}, _ = () => {
|
11406
|
-
var
|
11417
|
+
var S;
|
11407
11418
|
if (h && i === "container") {
|
11408
|
-
const k = ((
|
11419
|
+
const k = ((S = document == null ? void 0 : document.getElementById(h)) == null ? void 0 : S.offsetHeight) ?? 0;
|
11409
11420
|
$(k - p);
|
11410
11421
|
}
|
11411
11422
|
};
|
11412
11423
|
return Re(() => {
|
11413
|
-
const
|
11424
|
+
const S = setTimeout(_, b);
|
11414
11425
|
return window == null || window.addEventListener("resize", _), window == null || window.addEventListener("load", _), () => {
|
11415
|
-
clearTimeout(
|
11426
|
+
clearTimeout(S), window == null || window.removeEventListener("resize", _), window == null || window.removeEventListener("load", _);
|
11416
11427
|
};
|
11417
11428
|
}, [i, v]), /* @__PURE__ */ w.jsx("div", { className: `1ru-w-full ${n}`, children: /* @__PURE__ */ w.jsx(
|
11418
11429
|
Rx,
|
@@ -11420,15 +11431,15 @@ const u2 = ({ style: e, context: t, ...n }) => /* @__PURE__ */ w.jsx("table", {
|
|
11420
11431
|
context: D,
|
11421
11432
|
ref: t,
|
11422
11433
|
overscan: typeof d == "function" ? d(i === "container" ? I : s) : i === "container" ? I : s,
|
11423
|
-
totalListHeightChanged: (
|
11434
|
+
totalListHeightChanged: (S) => i === "min-max" ? $(S) : null,
|
11424
11435
|
style: x(),
|
11425
11436
|
totalCount: o,
|
11426
11437
|
computeItemKey: r,
|
11427
11438
|
itemSize: $e(
|
11428
|
-
(
|
11439
|
+
(S) => f === "manual" ? a(S) : F(S),
|
11429
11440
|
[]
|
11430
11441
|
),
|
11431
|
-
itemContent: (...
|
11442
|
+
itemContent: (...S) => c(l2, ...S),
|
11432
11443
|
components: {
|
11433
11444
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
11434
11445
|
// @ts-ignore
|
@@ -11711,7 +11722,7 @@ function _n(e, t) {
|
|
11711
11722
|
}
|
11712
11723
|
var C2 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
11713
11724
|
function x2(e) {
|
11714
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, a = r === void 0 ? !1 : r, o = e.defaultValue, i = o === void 0 ? null : o, u = e.inputValue, s = e.menuIsOpen, l = e.onChange, c = e.onInputChange, f = e.onMenuClose, g = e.onMenuOpen, d = e.value, m = _n(e, C2), h = re(u !== void 0 ? u : n), v = Fn(h, 2), p = v[0], b = v[1], y = re(s !== void 0 ? s : a), D = Fn(y, 2), C = D[0], I = D[1], $ = re(d !== void 0 ? d : i), x = Fn($, 2), F = x[0], _ = x[1],
|
11725
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, a = r === void 0 ? !1 : r, o = e.defaultValue, i = o === void 0 ? null : o, u = e.inputValue, s = e.menuIsOpen, l = e.onChange, c = e.onInputChange, f = e.onMenuClose, g = e.onMenuOpen, d = e.value, m = _n(e, C2), h = re(u !== void 0 ? u : n), v = Fn(h, 2), p = v[0], b = v[1], y = re(s !== void 0 ? s : a), D = Fn(y, 2), C = D[0], I = D[1], $ = re(d !== void 0 ? d : i), x = Fn($, 2), F = x[0], _ = x[1], S = $e(function(L, H) {
|
11715
11726
|
typeof l == "function" && l(L, H), _(L);
|
11716
11727
|
}, [l]), k = $e(function(L, H) {
|
11717
11728
|
var G;
|
@@ -11720,15 +11731,15 @@ function x2(e) {
|
|
11720
11731
|
typeof g == "function" && g(), I(!0);
|
11721
11732
|
}, [g]), R = $e(function() {
|
11722
11733
|
typeof f == "function" && f(), I(!1);
|
11723
|
-
}, [f]), V = u !== void 0 ? u : p, B = s !== void 0 ? s : C,
|
11734
|
+
}, [f]), V = u !== void 0 ? u : p, B = s !== void 0 ? s : C, E = d !== void 0 ? d : F;
|
11724
11735
|
return ce(ce({}, m), {}, {
|
11725
11736
|
inputValue: V,
|
11726
11737
|
menuIsOpen: B,
|
11727
|
-
onChange:
|
11738
|
+
onChange: S,
|
11728
11739
|
onInputChange: k,
|
11729
11740
|
onMenuClose: R,
|
11730
11741
|
onMenuOpen: T,
|
11731
|
-
value:
|
11742
|
+
value: E
|
11732
11743
|
});
|
11733
11744
|
}
|
11734
11745
|
function de() {
|
@@ -12553,7 +12564,7 @@ function f5() {
|
|
12553
12564
|
}
|
12554
12565
|
}
|
12555
12566
|
}
|
12556
|
-
var C = s, I = l, $ = u, x = i, F = t, _ = c,
|
12567
|
+
var C = s, I = l, $ = u, x = i, F = t, _ = c, S = r, k = m, T = d, R = n, V = o, B = a, E = f, L = !1;
|
12557
12568
|
function H(z) {
|
12558
12569
|
return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(z) || D(z) === s;
|
12559
12570
|
}
|
@@ -12593,7 +12604,7 @@ function f5() {
|
|
12593
12604
|
function se(z) {
|
12594
12605
|
return D(z) === f;
|
12595
12606
|
}
|
12596
|
-
Ve.AsyncMode = C, Ve.ConcurrentMode = I, Ve.ContextConsumer = $, Ve.ContextProvider = x, Ve.Element = F, Ve.ForwardRef = _, Ve.Fragment =
|
12607
|
+
Ve.AsyncMode = C, Ve.ConcurrentMode = I, Ve.ContextConsumer = $, Ve.ContextProvider = x, Ve.Element = F, Ve.ForwardRef = _, Ve.Fragment = S, Ve.Lazy = k, Ve.Memo = T, Ve.Portal = R, Ve.Profiler = V, Ve.StrictMode = B, Ve.Suspense = E, Ve.isAsyncMode = H, Ve.isConcurrentMode = G, Ve.isContextConsumer = N, Ve.isContextProvider = W, Ve.isElement = q, Ve.isForwardRef = ge, Ve.isFragment = Y, Ve.isLazy = M, Ve.isMemo = j, Ve.isPortal = U, Ve.isProfiler = K, Ve.isStrictMode = ae, Ve.isSuspense = se, Ve.isValidElementType = y, Ve.typeOf = D;
|
12597
12608
|
}()), Ve;
|
12598
12609
|
}
|
12599
12610
|
process.env.NODE_ENV === "production" ? Ps.exports = d5() : Ps.exports = f5();
|
@@ -13346,7 +13357,7 @@ function iD(e) {
|
|
13346
13357
|
maxHeight: t
|
13347
13358
|
};
|
13348
13359
|
if (!n || !n.offsetParent) return l;
|
13349
|
-
var c = s.getBoundingClientRect(), f = c.height, g = n.getBoundingClientRect(), d = g.bottom, m = g.height, h = g.top, v = n.offsetParent.getBoundingClientRect(), p = v.top, b = i ? window.innerHeight : Y5(s), y = g0(s), D = parseInt(getComputedStyle(n).marginBottom, 10), C = parseInt(getComputedStyle(n).marginTop, 10), I = p - C, $ = b - h, x = I + y, F = f - y - h, _ = d - b + y + D,
|
13360
|
+
var c = s.getBoundingClientRect(), f = c.height, g = n.getBoundingClientRect(), d = g.bottom, m = g.height, h = g.top, v = n.offsetParent.getBoundingClientRect(), p = v.top, b = i ? window.innerHeight : Y5(s), y = g0(s), D = parseInt(getComputedStyle(n).marginBottom, 10), C = parseInt(getComputedStyle(n).marginTop, 10), I = p - C, $ = b - h, x = I + y, F = f - y - h, _ = d - b + y + D, S = y + h - C, k = 160;
|
13350
13361
|
switch (a) {
|
13351
13362
|
case "auto":
|
13352
13363
|
case "bottom":
|
@@ -13388,13 +13399,13 @@ function iD(e) {
|
|
13388
13399
|
maxHeight: t
|
13389
13400
|
};
|
13390
13401
|
if (x >= m && !i)
|
13391
|
-
return o && Vo(s,
|
13402
|
+
return o && Vo(s, S, k), {
|
13392
13403
|
placement: "top",
|
13393
13404
|
maxHeight: t
|
13394
13405
|
};
|
13395
13406
|
if (!i && x >= r || i && I >= r) {
|
13396
13407
|
var B = t;
|
13397
|
-
return (!i && x >= r || i && I >= r) && (B = i ? I - C : x - C), o && Vo(s,
|
13408
|
+
return (!i && x >= r || i && I >= r) && (B = i ? I - C : x - C), o && Vo(s, S, k), {
|
13398
13409
|
placement: "top",
|
13399
13410
|
maxHeight: B
|
13400
13411
|
};
|
@@ -14125,9 +14136,9 @@ var ww = process.env.NODE_ENV === "production" ? {
|
|
14125
14136
|
}, [f]), F = xe(function() {
|
14126
14137
|
var V = "";
|
14127
14138
|
if (n && x.onChange) {
|
14128
|
-
var B = n.option,
|
14139
|
+
var B = n.option, E = n.options, L = n.removedValue, H = n.removedValues, G = n.value, N = function(U) {
|
14129
14140
|
return Array.isArray(U) ? null : U;
|
14130
|
-
}, W = L || B || N(G), q = W ? g(W) : "", ge =
|
14141
|
+
}, W = L || B || N(G), q = W ? g(W) : "", ge = E || H || void 0, Y = ge ? ge.map(g) : [], M = ce({
|
14131
14142
|
// multiSelected items are usually items that have already been selected
|
14132
14143
|
// or set by the user as a default value so we assume they are not disabled
|
14133
14144
|
isDisabled: W && h(W, u),
|
@@ -14138,13 +14149,13 @@ var ww = process.env.NODE_ENV === "production" ? {
|
|
14138
14149
|
}
|
14139
14150
|
return V;
|
14140
14151
|
}, [n, x, h, u, g]), _ = xe(function() {
|
14141
|
-
var V = "", B = r || a,
|
14152
|
+
var V = "", B = r || a, E = !!(r && u && u.includes(r));
|
14142
14153
|
if (B && x.onFocus) {
|
14143
14154
|
var L = {
|
14144
14155
|
focused: B,
|
14145
14156
|
label: g(B),
|
14146
14157
|
isDisabled: h(B, u),
|
14147
|
-
isSelected:
|
14158
|
+
isSelected: E,
|
14148
14159
|
options: o,
|
14149
14160
|
context: B === r ? "menu" : "value",
|
14150
14161
|
selectValue: u,
|
@@ -14153,7 +14164,7 @@ var ww = process.env.NODE_ENV === "production" ? {
|
|
14153
14164
|
V = x.onFocus(L);
|
14154
14165
|
}
|
14155
14166
|
return V;
|
14156
|
-
}, [r, a, g, h, x, o, u, c]),
|
14167
|
+
}, [r, a, g, h, x, o, u, c]), S = xe(function() {
|
14157
14168
|
var V = "";
|
14158
14169
|
if (p && b.length && !C && x.onFilter) {
|
14159
14170
|
var B = y({
|
@@ -14186,7 +14197,7 @@ var ww = process.env.NODE_ENV === "production" ? {
|
|
14186
14197
|
id: "aria-focused"
|
14187
14198
|
}, _), le("span", {
|
14188
14199
|
id: "aria-results"
|
14189
|
-
},
|
14200
|
+
}, S), le("span", {
|
14190
14201
|
id: "aria-guidance"
|
14191
14202
|
}, T));
|
14192
14203
|
return le(ui, null, le(Jd, {
|
@@ -15478,7 +15489,7 @@ var P0 = function(t) {
|
|
15478
15489
|
}), b);
|
15479
15490
|
if (v)
|
15480
15491
|
return D.map(function(x, F) {
|
15481
|
-
var _ = x === C,
|
15492
|
+
var _ = x === C, S = "".concat(a.getOptionLabel(x), "-").concat(a.getOptionValue(x));
|
15482
15493
|
return /* @__PURE__ */ O.createElement(i, de({}, g, {
|
15483
15494
|
components: {
|
15484
15495
|
Container: u,
|
@@ -15487,7 +15498,7 @@ var P0 = function(t) {
|
|
15487
15498
|
},
|
15488
15499
|
isFocused: _,
|
15489
15500
|
isDisabled: h,
|
15490
|
-
key:
|
15501
|
+
key: S,
|
15491
15502
|
index: F,
|
15492
15503
|
removeProps: {
|
15493
15504
|
onClick: function() {
|
@@ -15571,7 +15582,7 @@ var P0 = function(t) {
|
|
15571
15582
|
}, {
|
15572
15583
|
key: "renderMenu",
|
15573
15584
|
value: function() {
|
15574
|
-
var a = this, o = this.getComponents(), i = o.Group, u = o.GroupHeading, s = o.Menu, l = o.MenuList, c = o.MenuPortal, f = o.LoadingMessage, g = o.NoOptionsMessage, d = o.Option, m = this.commonProps, h = this.state.focusedOption, v = this.props, p = v.captureMenuScroll, b = v.inputValue, y = v.isLoading, D = v.loadingMessage, C = v.minMenuHeight, I = v.maxMenuHeight, $ = v.menuIsOpen, x = v.menuPlacement, F = v.menuPosition, _ = v.menuPortalTarget,
|
15585
|
+
var a = this, o = this.getComponents(), i = o.Group, u = o.GroupHeading, s = o.Menu, l = o.MenuList, c = o.MenuPortal, f = o.LoadingMessage, g = o.NoOptionsMessage, d = o.Option, m = this.commonProps, h = this.state.focusedOption, v = this.props, p = v.captureMenuScroll, b = v.inputValue, y = v.isLoading, D = v.loadingMessage, C = v.minMenuHeight, I = v.maxMenuHeight, $ = v.menuIsOpen, x = v.menuPlacement, F = v.menuPosition, _ = v.menuPortalTarget, S = v.menuShouldBlockScroll, k = v.menuShouldScrollIntoView, T = v.noOptionsMessage, R = v.onMenuScrollToTop, V = v.onMenuScrollToBottom;
|
15575
15586
|
if (!$) return null;
|
15576
15587
|
var B = function(q, ge) {
|
15577
15588
|
var Y = q.type, M = q.data, j = q.isDisabled, U = q.isSelected, K = q.label, ae = q.value, se = h === M, z = j ? void 0 : function() {
|
@@ -15600,9 +15611,9 @@ var P0 = function(t) {
|
|
15600
15611
|
isFocused: se,
|
15601
15612
|
innerRef: se ? a.getFocusedOptionRef : void 0
|
15602
15613
|
}), a.formatOptionLabel(q.data, "menu"));
|
15603
|
-
},
|
15614
|
+
}, E;
|
15604
15615
|
if (this.hasOptions())
|
15605
|
-
|
15616
|
+
E = this.getCategorizedOptions().map(function(W) {
|
15606
15617
|
if (W.type === "group") {
|
15607
15618
|
var q = W.data, ge = W.options, Y = W.index, M = "".concat(a.getElementId("group"), "-").concat(Y), j = "".concat(M, "-heading");
|
15608
15619
|
return /* @__PURE__ */ O.createElement(i, de({}, m, {
|
@@ -15626,13 +15637,13 @@ var P0 = function(t) {
|
|
15626
15637
|
inputValue: b
|
15627
15638
|
});
|
15628
15639
|
if (L === null) return null;
|
15629
|
-
|
15640
|
+
E = /* @__PURE__ */ O.createElement(f, m, L);
|
15630
15641
|
} else {
|
15631
15642
|
var H = T({
|
15632
15643
|
inputValue: b
|
15633
15644
|
});
|
15634
15645
|
if (H === null) return null;
|
15635
|
-
|
15646
|
+
E = /* @__PURE__ */ O.createElement(g, m, H);
|
15636
15647
|
}
|
15637
15648
|
var G = {
|
15638
15649
|
minMenuHeight: C,
|
@@ -15654,7 +15665,7 @@ var P0 = function(t) {
|
|
15654
15665
|
captureEnabled: p,
|
15655
15666
|
onTopArrive: R,
|
15656
15667
|
onBottomArrive: V,
|
15657
|
-
lockEnabled:
|
15668
|
+
lockEnabled: S
|
15658
15669
|
}, function(j) {
|
15659
15670
|
return /* @__PURE__ */ O.createElement(l, de({}, m, {
|
15660
15671
|
innerRef: function(K) {
|
@@ -15668,7 +15679,7 @@ var P0 = function(t) {
|
|
15668
15679
|
isLoading: y,
|
15669
15680
|
maxHeight: M,
|
15670
15681
|
focusedOption: h
|
15671
|
-
}),
|
15682
|
+
}), E);
|
15672
15683
|
}));
|
15673
15684
|
});
|
15674
15685
|
return _ || F === "fixed" ? /* @__PURE__ */ O.createElement(c, de({}, m, {
|
@@ -15782,15 +15793,15 @@ var P0 = function(t) {
|
|
15782
15793
|
var F = s != null && a !== i ? {
|
15783
15794
|
inputIsHidden: s,
|
15784
15795
|
inputIsHiddenAfterUpdate: void 0
|
15785
|
-
} : {}, _ = l,
|
15786
|
-
return c && !
|
15796
|
+
} : {}, _ = l, S = c && f;
|
15797
|
+
return c && !S && (_ = {
|
15787
15798
|
value: No(p, b, b[0] || null),
|
15788
15799
|
options: b,
|
15789
15800
|
action: "initial-input-focus"
|
15790
|
-
},
|
15801
|
+
}, S = !f), (l == null ? void 0 : l.action) === "initial-input-focus" && (_ = null), ce(ce(ce({}, y), F), {}, {
|
15791
15802
|
prevProps: a,
|
15792
15803
|
ariaSelection: _,
|
15793
|
-
prevWasFocused:
|
15804
|
+
prevWasFocused: S
|
15794
15805
|
});
|
15795
15806
|
}
|
15796
15807
|
}]), n;
|
@@ -15898,9 +15909,9 @@ const vI = P.forwardRef(
|
|
15898
15909
|
withSearch: x = !1,
|
15899
15910
|
floatingOptions: F = {},
|
15900
15911
|
offsetPopover: _ = 5,
|
15901
|
-
selectProps:
|
15912
|
+
selectProps: S = {},
|
15902
15913
|
...k
|
15903
|
-
} = e, T = P.useRef(null), R = P.useRef(null), [V, B] = P.useState(""), [
|
15914
|
+
} = e, T = P.useRef(null), R = P.useRef(null), [V, B] = P.useState(""), [E, L] = P.useState(!1), [H, G] = P.useState({}), [N, W] = P.useState(0), q = (K) => {
|
15904
15915
|
var ae;
|
15905
15916
|
(ae = R.current) == null || ae.setShow(K), L(K);
|
15906
15917
|
}, ge = () => {
|
@@ -15921,25 +15932,25 @@ const vI = P.forwardRef(
|
|
15921
15932
|
return bI(() => {
|
15922
15933
|
f && G(g);
|
15923
15934
|
}, [f, g]), P.useEffect(() => {
|
15924
|
-
|
15925
|
-
}, [
|
15935
|
+
E ? m() : E || (p(), B(""));
|
15936
|
+
}, [E]), P.useImperativeHandle(
|
15926
15937
|
t,
|
15927
15938
|
() => ({
|
15928
15939
|
selectValue: H,
|
15929
15940
|
setSelectValue: G,
|
15930
15941
|
handlerClose: M,
|
15931
15942
|
handlerShow: Y,
|
15932
|
-
show:
|
15943
|
+
show: E,
|
15933
15944
|
setShow: q
|
15934
15945
|
}),
|
15935
|
-
[
|
15946
|
+
[E]
|
15936
15947
|
), P.useEffect(() => (window.addEventListener("resize", U), window.addEventListener("load", U), () => {
|
15937
15948
|
window.removeEventListener("resize", U), window.removeEventListener("load", U);
|
15938
15949
|
}), [T]), /* @__PURE__ */ w.jsxs(
|
15939
15950
|
"div",
|
15940
15951
|
{
|
15941
15952
|
id: y,
|
15942
|
-
className: `${lf.container} ${o} ${
|
15953
|
+
className: `${lf.container} ${o} ${E ? `${i} open-popover` : null}`,
|
15943
15954
|
ref: T,
|
15944
15955
|
children: [
|
15945
15956
|
r({
|
@@ -15947,7 +15958,7 @@ const vI = P.forwardRef(
|
|
15947
15958
|
setSelectValue: G,
|
15948
15959
|
handlerClose: M,
|
15949
15960
|
handlerShow: Y,
|
15950
|
-
show:
|
15961
|
+
show: E,
|
15951
15962
|
setShow: q
|
15952
15963
|
}),
|
15953
15964
|
/* @__PURE__ */ w.jsx(
|
@@ -15989,7 +16000,7 @@ const vI = P.forwardRef(
|
|
15989
16000
|
noOptionsMessage: () => "Tidak ada data.",
|
15990
16001
|
onChange: j,
|
15991
16002
|
selectProps: {
|
15992
|
-
...
|
16003
|
+
...S,
|
15993
16004
|
setShowDropdown: q
|
15994
16005
|
},
|
15995
16006
|
...k
|
@@ -18107,16 +18118,16 @@ function dc(e) {
|
|
18107
18118
|
}), { addGlobalListener: v, removeAllGlobalListeners: p } = ME(), b = Dn((x, F) => {
|
18108
18119
|
let _ = h.current;
|
18109
18120
|
if (i || _.didFirePressStart) return !1;
|
18110
|
-
let
|
18121
|
+
let S = !0;
|
18111
18122
|
if (_.isTriggeringEvent = !0, r) {
|
18112
18123
|
let k = new jo("pressstart", F, x);
|
18113
|
-
r(k),
|
18124
|
+
r(k), S = k.shouldStopPropagation;
|
18114
18125
|
}
|
18115
|
-
return n && n(!0), _.isTriggeringEvent = !1, _.didFirePressStart = !0, m(!0),
|
18126
|
+
return n && n(!0), _.isTriggeringEvent = !1, _.didFirePressStart = !0, m(!0), S;
|
18116
18127
|
}), y = Dn((x, F, _ = !0) => {
|
18117
|
-
let
|
18118
|
-
if (!
|
18119
|
-
|
18128
|
+
let S = h.current;
|
18129
|
+
if (!S.didFirePressStart) return !1;
|
18130
|
+
S.ignoreClickAfterPress = !0, S.didFirePressStart = !1, S.isTriggeringEvent = !0;
|
18120
18131
|
let k = !0;
|
18121
18132
|
if (a) {
|
18122
18133
|
let T = new jo("pressend", F, x);
|
@@ -18126,14 +18137,14 @@ function dc(e) {
|
|
18126
18137
|
let T = new jo("press", F, x);
|
18127
18138
|
t(T), k && (k = T.shouldStopPropagation);
|
18128
18139
|
}
|
18129
|
-
return
|
18140
|
+
return S.isTriggeringEvent = !1, k;
|
18130
18141
|
}), D = Dn((x, F) => {
|
18131
18142
|
let _ = h.current;
|
18132
18143
|
if (i) return !1;
|
18133
18144
|
if (o) {
|
18134
18145
|
_.isTriggeringEvent = !0;
|
18135
|
-
let
|
18136
|
-
return o(
|
18146
|
+
let S = new jo("pressup", F, x);
|
18147
|
+
return o(S), _.isTriggeringEvent = !1, S.shouldStopPropagation;
|
18137
18148
|
}
|
18138
18149
|
return !0;
|
18139
18150
|
}), C = Dn((x) => {
|
@@ -18143,40 +18154,40 @@ function dc(e) {
|
|
18143
18154
|
l && C(x);
|
18144
18155
|
}), $ = xe(() => {
|
18145
18156
|
let x = h.current, F = {
|
18146
|
-
onKeyDown(
|
18147
|
-
if (es(
|
18157
|
+
onKeyDown(S) {
|
18158
|
+
if (es(S.nativeEvent, S.currentTarget) && S.currentTarget.contains(S.target)) {
|
18148
18159
|
var k;
|
18149
|
-
kf(
|
18160
|
+
kf(S.target, S.key) && S.preventDefault();
|
18150
18161
|
let T = !0;
|
18151
|
-
if (!x.isPressed && !
|
18152
|
-
x.target =
|
18153
|
-
let R =
|
18162
|
+
if (!x.isPressed && !S.repeat) {
|
18163
|
+
x.target = S.currentTarget, x.isPressed = !0, T = b(S, "keyboard");
|
18164
|
+
let R = S.currentTarget, V = (B) => {
|
18154
18165
|
es(B, R) && !B.repeat && R.contains(B.target) && x.target && D(Cn(x.target, B), "keyboard");
|
18155
18166
|
};
|
18156
|
-
v(bt(
|
18167
|
+
v(bt(S.currentTarget), "keyup", sp(V, _), !0);
|
18157
18168
|
}
|
18158
|
-
T &&
|
18159
|
-
} else
|
18169
|
+
T && S.stopPropagation(), S.metaKey && ao() && ((k = x.metaKeyEvents) === null || k === void 0 || k.set(S.key, S.nativeEvent));
|
18170
|
+
} else S.key === "Meta" && (x.metaKeyEvents = /* @__PURE__ */ new Map());
|
18160
18171
|
},
|
18161
|
-
onClick(
|
18162
|
-
if (!(
|
18172
|
+
onClick(S) {
|
18173
|
+
if (!(S && !S.currentTarget.contains(S.target)) && S && S.button === 0 && !x.isTriggeringEvent && !oo.isOpening) {
|
18163
18174
|
let k = !0;
|
18164
|
-
if (i &&
|
18165
|
-
!i && !s && zn(
|
18166
|
-
let T = b(
|
18175
|
+
if (i && S.preventDefault(), !x.ignoreClickAfterPress && !x.ignoreEmulatedMouseEvents && !x.isPressed && (x.pointerType === "virtual" || Ys(S.nativeEvent))) {
|
18176
|
+
!i && !s && zn(S.currentTarget);
|
18177
|
+
let T = b(S, "virtual"), R = D(S, "virtual"), V = y(S, "virtual");
|
18167
18178
|
k = T && R && V;
|
18168
18179
|
}
|
18169
|
-
x.ignoreEmulatedMouseEvents = !1, x.ignoreClickAfterPress = !1, k &&
|
18180
|
+
x.ignoreEmulatedMouseEvents = !1, x.ignoreClickAfterPress = !1, k && S.stopPropagation();
|
18170
18181
|
}
|
18171
18182
|
}
|
18172
|
-
}, _ = (
|
18183
|
+
}, _ = (S) => {
|
18173
18184
|
var k;
|
18174
|
-
if (x.isPressed && x.target && es(
|
18185
|
+
if (x.isPressed && x.target && es(S, x.target)) {
|
18175
18186
|
var T;
|
18176
|
-
kf(
|
18177
|
-
let V =
|
18178
|
-
y(Cn(x.target,
|
18179
|
-
} else if (
|
18187
|
+
kf(S.target, S.key) && S.preventDefault();
|
18188
|
+
let V = S.target;
|
18189
|
+
y(Cn(x.target, S), "keyboard", x.target.contains(V)), p(), S.key !== "Enter" && fc(x.target) && x.target.contains(V) && !S[Bf] && (S[Bf] = !0, oo(x.target, S, !1)), x.isPressed = !1, (T = x.metaKeyEvents) === null || T === void 0 || T.delete(S.key);
|
18190
|
+
} else if (S.key === "Meta" && (!((k = x.metaKeyEvents) === null || k === void 0) && k.size)) {
|
18180
18191
|
var R;
|
18181
18192
|
let V = x.metaKeyEvents;
|
18182
18193
|
x.metaKeyEvents = void 0;
|
@@ -18192,13 +18203,13 @@ function dc(e) {
|
|
18192
18203
|
}
|
18193
18204
|
ts(R.currentTarget) && R.preventDefault(), x.pointerType = R.pointerType;
|
18194
18205
|
let V = !0;
|
18195
|
-
x.isPressed || (x.isPressed = !0, x.isOverTarget = !0, x.activePointerId = R.pointerId, x.target = R.currentTarget, !i && !s && zn(R.currentTarget), c || Tf(x.target), V = b(R, x.pointerType), v(bt(R.currentTarget), "pointermove",
|
18206
|
+
x.isPressed || (x.isPressed = !0, x.isOverTarget = !0, x.activePointerId = R.pointerId, x.target = R.currentTarget, !i && !s && zn(R.currentTarget), c || Tf(x.target), V = b(R, x.pointerType), v(bt(R.currentTarget), "pointermove", S, !1), v(bt(R.currentTarget), "pointerup", k, !1), v(bt(R.currentTarget), "pointercancel", T, !1)), V && R.stopPropagation();
|
18196
18207
|
}, F.onMouseDown = (R) => {
|
18197
18208
|
R.currentTarget.contains(R.target) && R.button === 0 && (ts(R.currentTarget) && R.preventDefault(), R.stopPropagation());
|
18198
18209
|
}, F.onPointerUp = (R) => {
|
18199
18210
|
!R.currentTarget.contains(R.target) || x.pointerType === "virtual" || R.button === 0 && Hr(R, R.currentTarget) && D(R, x.pointerType || R.pointerType);
|
18200
18211
|
};
|
18201
|
-
let
|
18212
|
+
let S = (R) => {
|
18202
18213
|
R.pointerId === x.activePointerId && (x.target && Hr(R, x.target) ? !x.isOverTarget && x.pointerType != null && (x.isOverTarget = !0, b(Cn(x.target, R), x.pointerType)) : x.target && x.isOverTarget && x.pointerType != null && (x.isOverTarget = !1, y(Cn(x.target, R), x.pointerType, !1), I(R)));
|
18203
18214
|
}, k = (R) => {
|
18204
18215
|
R.pointerId === x.activePointerId && x.isPressed && R.button === 0 && x.target && (Hr(R, x.target) && x.pointerType != null ? y(Cn(x.target, R), x.pointerType) : x.isOverTarget && x.pointerType != null && y(Cn(x.target, R), x.pointerType, !1), x.isPressed = !1, x.isOverTarget = !1, x.activePointerId = null, x.pointerType = null, p(), c || Ho(x.target));
|
@@ -18215,7 +18226,7 @@ function dc(e) {
|
|
18215
18226
|
T.stopPropagation();
|
18216
18227
|
return;
|
18217
18228
|
}
|
18218
|
-
x.isPressed = !0, x.isOverTarget = !0, x.target = T.currentTarget, x.pointerType = Ys(T.nativeEvent) ? "virtual" : "mouse", !i && !s && zn(T.currentTarget), b(T, x.pointerType) && T.stopPropagation(), v(bt(T.currentTarget), "mouseup",
|
18229
|
+
x.isPressed = !0, x.isOverTarget = !0, x.target = T.currentTarget, x.pointerType = Ys(T.nativeEvent) ? "virtual" : "mouse", !i && !s && zn(T.currentTarget), b(T, x.pointerType) && T.stopPropagation(), v(bt(T.currentTarget), "mouseup", S, !1);
|
18219
18230
|
}, F.onMouseEnter = (T) => {
|
18220
18231
|
if (!T.currentTarget.contains(T.target)) return;
|
18221
18232
|
let R = !0;
|
@@ -18227,7 +18238,7 @@ function dc(e) {
|
|
18227
18238
|
}, F.onMouseUp = (T) => {
|
18228
18239
|
T.currentTarget.contains(T.target) && !x.ignoreEmulatedMouseEvents && T.button === 0 && D(T, x.pointerType || "mouse");
|
18229
18240
|
};
|
18230
|
-
let
|
18241
|
+
let S = (T) => {
|
18231
18242
|
if (T.button === 0) {
|
18232
18243
|
if (x.isPressed = !1, p(), x.ignoreEmulatedMouseEvents) {
|
18233
18244
|
x.ignoreEmulatedMouseEvents = !1;
|
@@ -19925,12 +19936,12 @@ function FS(e, t, n) {
|
|
19925
19936
|
r,
|
19926
19937
|
t.timeZone
|
19927
19938
|
]), h = xI(r, t.timeZone), v = xe(() => {
|
19928
|
-
let
|
19929
|
-
return "highlightedRange" in t && t.value && !t.anchorDate && (ot(r, t.value.start) || ot(r, t.value.end)) && (
|
19930
|
-
date:
|
19931
|
-
}) : l && (
|
19932
|
-
date:
|
19933
|
-
})), t.minValue && ot(r, t.minValue) ?
|
19939
|
+
let S = "";
|
19940
|
+
return "highlightedRange" in t && t.value && !t.anchorDate && (ot(r, t.value.start) || ot(r, t.value.end)) && (S = i + ", "), S += s.format(m), h ? S = u.format(l ? "todayDateSelected" : "todayDate", {
|
19941
|
+
date: S
|
19942
|
+
}) : l && (S = u.format("dateSelected", {
|
19943
|
+
date: S
|
19944
|
+
})), t.minValue && ot(r, t.minValue) ? S += ", " + u.format("minimumDate") : t.maxValue && ot(r, t.maxValue) && (S += ", " + u.format("maximumDate")), S;
|
19934
19945
|
}, [
|
19935
19946
|
s,
|
19936
19947
|
m,
|
@@ -19948,12 +19959,12 @@ function FS(e, t, n) {
|
|
19948
19959
|
shouldCancelOnPointerExit: "anchorDate" in t && !!t.anchorDate,
|
19949
19960
|
preventFocusOnPress: !0,
|
19950
19961
|
isDisabled: !g || t.isReadOnly,
|
19951
|
-
onPressStart(
|
19962
|
+
onPressStart(S) {
|
19952
19963
|
if (t.isReadOnly) {
|
19953
19964
|
t.setFocusedDate(r);
|
19954
19965
|
return;
|
19955
19966
|
}
|
19956
|
-
if ("highlightedRange" in t && !t.anchorDate && (
|
19967
|
+
if ("highlightedRange" in t && !t.anchorDate && (S.pointerType === "mouse" || S.pointerType === "touch")) {
|
19957
19968
|
if (t.highlightedRange && !d) {
|
19958
19969
|
if (ot(r, t.highlightedRange.start)) {
|
19959
19970
|
t.setAnchorDate(t.highlightedRange.end), t.setFocusedDate(r), t.setDragging(!0), D.current = !0;
|
@@ -19966,7 +19977,7 @@ function FS(e, t, n) {
|
|
19966
19977
|
let k = () => {
|
19967
19978
|
t.setDragging(!0), C.current = null, t.selectDate(r), t.setFocusedDate(r), y.current = !0;
|
19968
19979
|
};
|
19969
|
-
|
19980
|
+
S.pointerType === "touch" ? C.current = setTimeout(k, 200) : k();
|
19970
19981
|
}
|
19971
19982
|
},
|
19972
19983
|
onPressEnd() {
|
@@ -19975,13 +19986,13 @@ function FS(e, t, n) {
|
|
19975
19986
|
onPress() {
|
19976
19987
|
!("anchorDate" in t) && !t.isReadOnly && (t.selectDate(r), t.setFocusedDate(r));
|
19977
19988
|
},
|
19978
|
-
onPressUp(
|
19989
|
+
onPressUp(S) {
|
19979
19990
|
if (!t.isReadOnly && ("anchorDate" in t && C.current && (t.selectDate(r), t.setFocusedDate(r)), "anchorDate" in t))
|
19980
19991
|
if (D.current)
|
19981
19992
|
t.setAnchorDate(r);
|
19982
19993
|
else if (t.anchorDate && !y.current)
|
19983
19994
|
t.selectDate(r), t.setFocusedDate(r);
|
19984
|
-
else if (
|
19995
|
+
else if (S.pointerType === "keyboard" && !t.anchorDate) {
|
19985
19996
|
t.selectDate(r);
|
19986
19997
|
let k = r.add({
|
19987
19998
|
days: 1
|
@@ -19989,7 +20000,7 @@ function FS(e, t, n) {
|
|
19989
20000
|
t.isInvalid(k) && (k = r.subtract({
|
19990
20001
|
days: 1
|
19991
20002
|
})), t.isInvalid(k) || t.setFocusedDate(k);
|
19992
|
-
} else
|
20003
|
+
} else S.pointerType === "virtual" && (t.selectDate(r), t.setFocusedDate(r));
|
19993
20004
|
}
|
19994
20005
|
}), x = null;
|
19995
20006
|
a || (x = ot(r, t.focusedDate) ? 0 : -1), Re(() => {
|
@@ -20004,7 +20015,7 @@ function FS(e, t, n) {
|
|
20004
20015
|
day: "numeric",
|
20005
20016
|
timeZone: t.timeZone,
|
20006
20017
|
calendar: r.calendar.identifier
|
20007
|
-
}), _ = xe(() => F.formatToParts(m).find((
|
20018
|
+
}), _ = xe(() => F.formatToParts(m).find((S) => S.type === "day").value, [
|
20008
20019
|
F,
|
20009
20020
|
m
|
20010
20021
|
]);
|
@@ -20028,14 +20039,14 @@ function FS(e, t, n) {
|
|
20028
20039
|
d ? o : null,
|
20029
20040
|
b["aria-describedby"]
|
20030
20041
|
].filter(Boolean).join(" ") || void 0,
|
20031
|
-
onPointerEnter(
|
20032
|
-
"highlightDate" in t && (
|
20042
|
+
onPointerEnter(S) {
|
20043
|
+
"highlightDate" in t && (S.pointerType !== "touch" || t.isDragging) && g && t.highlightDate(r);
|
20033
20044
|
},
|
20034
|
-
onPointerDown(
|
20035
|
-
"releasePointerCapture" in
|
20045
|
+
onPointerDown(S) {
|
20046
|
+
"releasePointerCapture" in S.target && S.target.releasePointerCapture(S.pointerId);
|
20036
20047
|
},
|
20037
|
-
onContextMenu(
|
20038
|
-
|
20048
|
+
onContextMenu(S) {
|
20049
|
+
S.preventDefault();
|
20039
20050
|
}
|
20040
20051
|
}),
|
20041
20052
|
isPressed: $,
|
@@ -20982,7 +20993,7 @@ function LS(e, t, n) {
|
|
20982
20993
|
isReadOnly: e.isReadOnly,
|
20983
20994
|
isRequired: e.isRequired,
|
20984
20995
|
validationBehavior: e.validationBehavior
|
20985
|
-
}, _ = sc(e), { focusWithinProps:
|
20996
|
+
}, _ = sc(e), { focusWithinProps: S } = $p({
|
20986
20997
|
...e,
|
20987
20998
|
isDisabled: t.isOpen,
|
20988
20999
|
onBlurWithin: e.onBlur,
|
@@ -20990,7 +21001,7 @@ function LS(e, t, n) {
|
|
20990
21001
|
onFocusWithinChange: e.onFocusChange
|
20991
21002
|
}), k = fe(gr), T = fe(gr);
|
20992
21003
|
return {
|
20993
|
-
groupProps: Tt(_, I, c, p,
|
21004
|
+
groupProps: Tt(_, I, c, p, S, {
|
20994
21005
|
role: "group",
|
20995
21006
|
"aria-disabled": e.isDisabled || null,
|
20996
21007
|
"aria-describedby": $,
|
@@ -21150,30 +21161,30 @@ function u1(e) {
|
|
21150
21161
|
return rl(b, o, r, i, u);
|
21151
21162
|
}
|
21152
21163
|
}), [I, $] = re(e.autoFocus || !1), x = xe(() => {
|
21153
|
-
let
|
21164
|
+
let E = {
|
21154
21165
|
...o
|
21155
21166
|
};
|
21156
|
-
return
|
21167
|
+
return E.days ? E.days-- : E.days = -1, D.add(E);
|
21157
21168
|
}, [
|
21158
21169
|
D,
|
21159
21170
|
o
|
21160
21171
|
]), [F, _] = re(f.identifier);
|
21161
21172
|
if (f.identifier !== F) {
|
21162
|
-
let
|
21163
|
-
C(rl(
|
21173
|
+
let E = lt(b, f);
|
21174
|
+
C(rl(E, o, r, i, u)), y(E), _(f.identifier);
|
21164
21175
|
}
|
21165
21176
|
ra(b, i, u) ? y(On(b, i, u)) : b.compare(D) < 0 ? C(al(b, o, r, i, u)) : b.compare(x) > 0 && C(br(b, o, r, i, u));
|
21166
|
-
function E
|
21167
|
-
|
21177
|
+
function S(E) {
|
21178
|
+
E = On(E, i, u), y(E);
|
21168
21179
|
}
|
21169
|
-
function k(
|
21180
|
+
function k(E) {
|
21170
21181
|
if (!e.isDisabled && !e.isReadOnly) {
|
21171
|
-
if (
|
21182
|
+
if (E === null) {
|
21172
21183
|
d(null);
|
21173
21184
|
return;
|
21174
21185
|
}
|
21175
|
-
if (
|
21176
|
-
|
21186
|
+
if (E = On(E, i, u), E = i1(E, D, l), !E) return;
|
21187
|
+
E = lt(E, (g == null ? void 0 : g.calendar) || new Ht()), g && "hour" in g ? d(g.set(E)) : d(E);
|
21177
21188
|
}
|
21178
21189
|
}
|
21179
21190
|
let T = xe(() => m ? l && l(m) ? !0 : ra(m, i, u) : !1, [
|
@@ -21200,103 +21211,103 @@ function u1(e) {
|
|
21200
21211
|
timeZone: h,
|
21201
21212
|
validationState: V,
|
21202
21213
|
isValueInvalid: R,
|
21203
|
-
setFocusedDate(
|
21204
|
-
E
|
21214
|
+
setFocusedDate(E) {
|
21215
|
+
S(E), $(!0);
|
21205
21216
|
},
|
21206
21217
|
focusNextDay() {
|
21207
|
-
|
21218
|
+
S(b.add({
|
21208
21219
|
days: 1
|
21209
21220
|
}));
|
21210
21221
|
},
|
21211
21222
|
focusPreviousDay() {
|
21212
|
-
|
21223
|
+
S(b.subtract({
|
21213
21224
|
days: 1
|
21214
21225
|
}));
|
21215
21226
|
},
|
21216
21227
|
focusNextRow() {
|
21217
|
-
o.days ? this.focusNextPage() : (o.weeks || o.months || o.years) &&
|
21228
|
+
o.days ? this.focusNextPage() : (o.weeks || o.months || o.years) && S(b.add({
|
21218
21229
|
weeks: 1
|
21219
21230
|
}));
|
21220
21231
|
},
|
21221
21232
|
focusPreviousRow() {
|
21222
|
-
o.days ? this.focusPreviousPage() : (o.weeks || o.months || o.years) &&
|
21233
|
+
o.days ? this.focusPreviousPage() : (o.weeks || o.months || o.years) && S(b.subtract({
|
21223
21234
|
weeks: 1
|
21224
21235
|
}));
|
21225
21236
|
},
|
21226
21237
|
focusNextPage() {
|
21227
|
-
let
|
21228
|
-
y(On(b.add(B), i, u)), C(br(so(b,
|
21238
|
+
let E = D.add(B);
|
21239
|
+
y(On(b.add(B), i, u)), C(br(so(b, E, B, r, i, u), B, r));
|
21229
21240
|
},
|
21230
21241
|
focusPreviousPage() {
|
21231
|
-
let
|
21232
|
-
y(On(b.subtract(B), i, u)), C(br(so(b,
|
21242
|
+
let E = D.subtract(B);
|
21243
|
+
y(On(b.subtract(B), i, u)), C(br(so(b, E, B, r, i, u), B, r));
|
21233
21244
|
},
|
21234
21245
|
focusSectionStart() {
|
21235
|
-
o.days ?
|
21246
|
+
o.days ? S(D) : o.weeks ? S(eo(b, r)) : (o.months || o.years) && S(Co(b));
|
21236
21247
|
},
|
21237
21248
|
focusSectionEnd() {
|
21238
|
-
o.days ?
|
21249
|
+
o.days ? S(x) : o.weeks ? S(II(b, r)) : (o.months || o.years) && S(Ns(b));
|
21239
21250
|
},
|
21240
|
-
focusNextSection(
|
21241
|
-
if (!
|
21242
|
-
|
21251
|
+
focusNextSection(E) {
|
21252
|
+
if (!E && !o.days) {
|
21253
|
+
S(b.add(os(o)));
|
21243
21254
|
return;
|
21244
21255
|
}
|
21245
|
-
o.days ? this.focusNextPage() : o.weeks ?
|
21256
|
+
o.days ? this.focusNextPage() : o.weeks ? S(b.add({
|
21246
21257
|
months: 1
|
21247
|
-
})) : (o.months || o.years) &&
|
21258
|
+
})) : (o.months || o.years) && S(b.add({
|
21248
21259
|
years: 1
|
21249
21260
|
}));
|
21250
21261
|
},
|
21251
|
-
focusPreviousSection(
|
21252
|
-
if (!
|
21253
|
-
|
21262
|
+
focusPreviousSection(E) {
|
21263
|
+
if (!E && !o.days) {
|
21264
|
+
S(b.subtract(os(o)));
|
21254
21265
|
return;
|
21255
21266
|
}
|
21256
|
-
o.days ? this.focusPreviousPage() : o.weeks ?
|
21267
|
+
o.days ? this.focusPreviousPage() : o.weeks ? S(b.subtract({
|
21257
21268
|
months: 1
|
21258
|
-
})) : (o.months || o.years) &&
|
21269
|
+
})) : (o.months || o.years) && S(b.subtract({
|
21259
21270
|
years: 1
|
21260
21271
|
}));
|
21261
21272
|
},
|
21262
21273
|
selectFocusedDate() {
|
21263
21274
|
k(b);
|
21264
21275
|
},
|
21265
|
-
selectDate(
|
21266
|
-
k(
|
21276
|
+
selectDate(E) {
|
21277
|
+
k(E);
|
21267
21278
|
},
|
21268
21279
|
isFocused: I,
|
21269
21280
|
setFocused: $,
|
21270
|
-
isInvalid(
|
21271
|
-
return ra(
|
21281
|
+
isInvalid(E) {
|
21282
|
+
return ra(E, i, u);
|
21272
21283
|
},
|
21273
|
-
isSelected(
|
21274
|
-
return m != null && ot(
|
21284
|
+
isSelected(E) {
|
21285
|
+
return m != null && ot(E, m) && !this.isCellDisabled(E) && !this.isCellUnavailable(E);
|
21275
21286
|
},
|
21276
|
-
isCellFocused(
|
21277
|
-
return I && b && ot(
|
21287
|
+
isCellFocused(E) {
|
21288
|
+
return I && b && ot(E, b);
|
21278
21289
|
},
|
21279
|
-
isCellDisabled(
|
21280
|
-
return e.isDisabled ||
|
21290
|
+
isCellDisabled(E) {
|
21291
|
+
return e.isDisabled || E.compare(D) < 0 || E.compare(x) > 0 || this.isInvalid(E, i, u);
|
21281
21292
|
},
|
21282
|
-
isCellUnavailable(
|
21283
|
-
return e.isDateUnavailable && e.isDateUnavailable(
|
21293
|
+
isCellUnavailable(E) {
|
21294
|
+
return e.isDateUnavailable && e.isDateUnavailable(E);
|
21284
21295
|
},
|
21285
21296
|
isPreviousVisibleRangeInvalid() {
|
21286
|
-
let
|
21297
|
+
let E = D.subtract({
|
21287
21298
|
days: 1
|
21288
21299
|
});
|
21289
|
-
return ot(
|
21300
|
+
return ot(E, D) || this.isInvalid(E, i, u);
|
21290
21301
|
},
|
21291
21302
|
isNextVisibleRangeInvalid() {
|
21292
|
-
let
|
21303
|
+
let E = x.add({
|
21293
21304
|
days: 1
|
21294
21305
|
});
|
21295
|
-
return ot(
|
21306
|
+
return ot(E, x) || this.isInvalid(E, i, u);
|
21296
21307
|
},
|
21297
|
-
getDatesInWeek(
|
21308
|
+
getDatesInWeek(E, L = D) {
|
21298
21309
|
let H = L.add({
|
21299
|
-
weeks:
|
21310
|
+
weeks: E
|
21300
21311
|
}), G = [];
|
21301
21312
|
H = eo(H, r);
|
21302
21313
|
let N = du(H, r);
|
@@ -21346,26 +21357,26 @@ function GS(e) {
|
|
21346
21357
|
minValue: b,
|
21347
21358
|
maxValue: y,
|
21348
21359
|
selectionAlignment: m
|
21349
|
-
}), C = (
|
21350
|
-
|
21351
|
-
start: zf(
|
21352
|
-
end: zf(
|
21360
|
+
}), C = (E) => {
|
21361
|
+
E && e.isDateUnavailable && !e.allowsNonContiguousRanges ? (h.current = {
|
21362
|
+
start: zf(E, D, -1),
|
21363
|
+
end: zf(E, D, 1)
|
21353
21364
|
}, p(h.current)) : (h.current = null, p(null));
|
21354
21365
|
}, [I, $] = re(D.visibleRange);
|
21355
21366
|
(!Ms(D.visibleRange.start, I.start) || !Ms(D.visibleRange.end, I.end)) && (C(g), $(D.visibleRange));
|
21356
|
-
let x = (
|
21357
|
-
|
21358
|
-
}, F = g ? is(g, D.focusedDate) : c && is(c.start, c.end), _ = (
|
21359
|
-
if (!e.isReadOnly && (
|
21360
|
-
if (!g) x(
|
21367
|
+
let x = (E) => {
|
21368
|
+
E ? (d(E), C(E)) : (d(null), C(null));
|
21369
|
+
}, F = g ? is(g, D.focusedDate) : c && is(c.start, c.end), _ = (E) => {
|
21370
|
+
if (!e.isReadOnly && (E = On(E, b, y), E = i1(E, D.visibleRange.start, e.isDateUnavailable), !!E))
|
21371
|
+
if (!g) x(E);
|
21361
21372
|
else {
|
21362
|
-
let L = is(g,
|
21373
|
+
let L = is(g, E);
|
21363
21374
|
f({
|
21364
21375
|
start: jf(L.start, c == null ? void 0 : c.start),
|
21365
21376
|
end: jf(L.end, c == null ? void 0 : c.end)
|
21366
21377
|
}), x(null);
|
21367
21378
|
}
|
21368
|
-
}, [
|
21379
|
+
}, [S, k] = re(!1), { isDateUnavailable: T } = e, R = xe(() => !c || g ? !1 : T && (T(c.start) || T(c.end)) ? !0 : ra(c.start, u, s) || ra(c.end, u, s), [
|
21369
21380
|
T,
|
21370
21381
|
c,
|
21371
21382
|
g,
|
@@ -21385,17 +21396,17 @@ function GS(e) {
|
|
21385
21396
|
_(D.focusedDate);
|
21386
21397
|
},
|
21387
21398
|
selectDate: _,
|
21388
|
-
highlightDate(
|
21389
|
-
g && D.setFocusedDate(
|
21399
|
+
highlightDate(E) {
|
21400
|
+
g && D.setFocusedDate(E);
|
21390
21401
|
},
|
21391
|
-
isSelected(
|
21392
|
-
return F &&
|
21402
|
+
isSelected(E) {
|
21403
|
+
return F && E.compare(F.start) >= 0 && E.compare(F.end) <= 0 && !D.isCellDisabled(E) && !D.isCellUnavailable(E);
|
21393
21404
|
},
|
21394
|
-
isInvalid(
|
21405
|
+
isInvalid(E) {
|
21395
21406
|
var L, H;
|
21396
|
-
return D.isInvalid(
|
21407
|
+
return D.isInvalid(E) || ra(E, (L = h.current) === null || L === void 0 ? void 0 : L.start, (H = h.current) === null || H === void 0 ? void 0 : H.end);
|
21397
21408
|
},
|
21398
|
-
isDragging:
|
21409
|
+
isDragging: S,
|
21399
21410
|
setDragging: k
|
21400
21411
|
};
|
21401
21412
|
}
|
@@ -21843,17 +21854,17 @@ function YS(e) {
|
|
21843
21854
|
var m;
|
21844
21855
|
let h = (m = e.shouldCloseOnSelect) !== null && m !== void 0 ? m : !0, [v, p] = re(null), [b, y] = re(null);
|
21845
21856
|
s && s.start && s.end && (v = s, "hour" in s.start && (b = s));
|
21846
|
-
let D = (B,
|
21857
|
+
let D = (B, E) => {
|
21847
21858
|
l({
|
21848
|
-
start: "timeZone" in
|
21849
|
-
end: "timeZone" in
|
21859
|
+
start: "timeZone" in E.start ? E.start.set(Gt(B.start)) : Jn(B.start, E.start),
|
21860
|
+
end: "timeZone" in E.end ? E.end.set(Gt(B.end)) : Jn(B.end, E.end)
|
21850
21861
|
}), p(null), y(null), T.commitValidation();
|
21851
21862
|
}, C = (B) => {
|
21852
|
-
let
|
21853
|
-
d ?
|
21863
|
+
let E = typeof h == "function" ? h() : h;
|
21864
|
+
d ? E || B.start && B.end && (b != null && b.start) && (b != null && b.end) ? D(B, {
|
21854
21865
|
start: (b == null ? void 0 : b.start) || zo(e.placeholderValue),
|
21855
21866
|
end: (b == null ? void 0 : b.end) || zo(e.placeholderValue)
|
21856
|
-
}) : p(B) : B.start && B.end ? (l(B), T.commitValidation()) : p(B),
|
21867
|
+
}) : p(B) : B.start && B.end ? (l(B), T.commitValidation()) : p(B), E && r.setOpen(!1);
|
21857
21868
|
}, I = (B) => {
|
21858
21869
|
v != null && v.start && (v != null && v.end) && B.start && B.end ? D(v, B) : y(B);
|
21859
21870
|
}, $ = (s == null || (t = s.start) === null || t === void 0 ? void 0 : t.calendar.identifier) === "gregory" && s.start.era === "BC" || (s == null || (n = s.end) === null || n === void 0 ? void 0 : n.calendar.identifier) === "gregory" && s.end.era === "BC", x = xe(() => ({
|
@@ -21870,11 +21881,11 @@ function YS(e) {
|
|
21870
21881
|
g,
|
21871
21882
|
e.hideTimeZone,
|
21872
21883
|
$
|
21873
|
-
]), { minValue: F, maxValue: _, isDateUnavailable:
|
21884
|
+
]), { minValue: F, maxValue: _, isDateUnavailable: S } = e, k = xe(() => jS(s, F, _, S, x), [
|
21874
21885
|
s,
|
21875
21886
|
F,
|
21876
21887
|
_,
|
21877
|
-
|
21888
|
+
S,
|
21878
21889
|
x
|
21879
21890
|
]), T = TS({
|
21880
21891
|
...e,
|
@@ -21896,22 +21907,22 @@ function YS(e) {
|
|
21896
21907
|
timeRange: b,
|
21897
21908
|
granularity: f,
|
21898
21909
|
hasTime: d,
|
21899
|
-
setDate(B,
|
21910
|
+
setDate(B, E) {
|
21900
21911
|
C({
|
21901
21912
|
...v,
|
21902
|
-
[B]:
|
21913
|
+
[B]: E
|
21903
21914
|
});
|
21904
21915
|
},
|
21905
|
-
setTime(B,
|
21916
|
+
setTime(B, E) {
|
21906
21917
|
I({
|
21907
21918
|
...b,
|
21908
|
-
[B]:
|
21919
|
+
[B]: E
|
21909
21920
|
});
|
21910
21921
|
},
|
21911
|
-
setDateTime(B,
|
21922
|
+
setDateTime(B, E) {
|
21912
21923
|
l({
|
21913
21924
|
...s,
|
21914
|
-
[B]:
|
21925
|
+
[B]: E
|
21915
21926
|
});
|
21916
21927
|
},
|
21917
21928
|
setDateRange: C,
|
@@ -21925,9 +21936,9 @@ function YS(e) {
|
|
21925
21936
|
},
|
21926
21937
|
validationState: V,
|
21927
21938
|
isInvalid: R,
|
21928
|
-
formatValue(B,
|
21939
|
+
formatValue(B, E) {
|
21929
21940
|
if (!s || !s.start || !s.end) return null;
|
21930
|
-
let L = "timeZone" in s.start ? s.start.timeZone : void 0, H = e.granularity || (s.start && "minute" in s.start ? "minute" : "day"), G = "timeZone" in s.end ? s.end.timeZone : void 0, N = e.granularity || (s.end && "minute" in s.end ? "minute" : "day"), W = ol(
|
21941
|
+
let L = "timeZone" in s.start ? s.start.timeZone : void 0, H = e.granularity || (s.start && "minute" in s.start ? "minute" : "day"), G = "timeZone" in s.end ? s.end.timeZone : void 0, N = e.granularity || (s.end && "minute" in s.end ? "minute" : "day"), W = ol(E, {
|
21931
21942
|
granularity: H,
|
21932
21943
|
timeZone: L,
|
21933
21944
|
hideTimeZone: e.hideTimeZone,
|
@@ -21953,7 +21964,7 @@ function YS(e) {
|
|
21953
21964
|
}
|
21954
21965
|
M = Y;
|
21955
21966
|
} else {
|
21956
|
-
let j = ol(
|
21967
|
+
let j = ol(E, {
|
21957
21968
|
granularity: N,
|
21958
21969
|
timeZone: G,
|
21959
21970
|
hideTimeZone: e.hideTimeZone,
|
@@ -22328,10 +22339,10 @@ const US = "_selected_ekdpb_1", JS = "_disabled_ekdpb_39", KS = "_valid_ekdpb_62
|
|
22328
22339
|
floatingOptions: v = {},
|
22329
22340
|
offsetPopover: p = 5,
|
22330
22341
|
zIndexPopper: b = 0
|
22331
|
-
} = e, y = Kn(), { locale: D } = vn(), C = Zo(t), I = Zo(n), $ = P.useRef(null), [x, F] = P.useState(), [_,
|
22342
|
+
} = e, y = Kn(), { locale: D } = vn(), C = Zo(t), I = Zo(n), $ = P.useRef(null), [x, F] = P.useState(), [_, S] = P.useState(), k = (E) => {
|
22332
22343
|
var W;
|
22333
22344
|
const L = /* @__PURE__ */ new Date();
|
22334
|
-
let H =
|
22345
|
+
let H = E.toDate(Ir());
|
22335
22346
|
H.setHours(L.getHours(), L.getMinutes(), L.getSeconds());
|
22336
22347
|
const G = t ? new Date(t) : null, N = n ? new Date(n) : null;
|
22337
22348
|
if (o) {
|
@@ -22348,20 +22359,20 @@ const US = "_selected_ekdpb_1", JS = "_disabled_ekdpb_39", KS = "_valid_ekdpb_62
|
|
22348
22359
|
} else
|
22349
22360
|
G && y.format(H) === y.format(G) && G.getTime() >= H.getTime() ? H = new Date(G.setSeconds(G.getSeconds() + 1)) : N && y.format(H) === y.format(N) && N.getTime() <= H.getTime() && (H = new Date(N.setSeconds(N.getSeconds() - 1)));
|
22350
22361
|
typeof d == "function" && (d(H), (W = $.current) == null || W.setShow(!1));
|
22351
|
-
}, T = (
|
22352
|
-
F(
|
22353
|
-
}, R = (
|
22354
|
-
E
|
22355
|
-
}, V = (
|
22362
|
+
}, T = (E, L) => {
|
22363
|
+
F(E), (L ?? (!a && !o)) && k(E);
|
22364
|
+
}, R = (E) => {
|
22365
|
+
S(E);
|
22366
|
+
}, V = (E) => {
|
22356
22367
|
const L = new Date(r ?? /* @__PURE__ */ new Date());
|
22357
|
-
if (r &&
|
22358
|
-
const H =
|
22368
|
+
if (r && E) {
|
22369
|
+
const H = E.focusedDate.set({
|
22359
22370
|
month: L.getMonth() + 1,
|
22360
22371
|
year: L.getFullYear()
|
22361
22372
|
});
|
22362
|
-
|
22373
|
+
E.setFocusedDate(H);
|
22363
22374
|
}
|
22364
|
-
|
22375
|
+
S({
|
22365
22376
|
hour: L.getHours(),
|
22366
22377
|
minut: L.getMinutes(),
|
22367
22378
|
second: L.getSeconds()
|
@@ -22376,9 +22387,9 @@ const US = "_selected_ekdpb_1", JS = "_disabled_ekdpb_39", KS = "_valid_ekdpb_62
|
|
22376
22387
|
"div",
|
22377
22388
|
{
|
22378
22389
|
id: m,
|
22379
|
-
onClick: (
|
22390
|
+
onClick: (E) => {
|
22380
22391
|
var L;
|
22381
|
-
(L = $.current) == null || L.handlerShow(
|
22392
|
+
(L = $.current) == null || L.handlerShow(E), V();
|
22382
22393
|
},
|
22383
22394
|
className: u,
|
22384
22395
|
children: typeof s == "function" ? s(r) : r ? new Date(r).toDateString() : "Pilih Tanggal"
|
@@ -22534,7 +22545,7 @@ const US = "_selected_ekdpb_1", JS = "_disabled_ekdpb_39", KS = "_valid_ekdpb_62
|
|
22534
22545
|
startDate: N,
|
22535
22546
|
endDate: N
|
22536
22547
|
};
|
22537
|
-
},
|
22548
|
+
}, S = () => {
|
22538
22549
|
const N = /* @__PURE__ */ new Date();
|
22539
22550
|
N.setDate(N.getDate() - N.getDay());
|
22540
22551
|
const W = /* @__PURE__ */ new Date();
|
@@ -22574,7 +22585,7 @@ const US = "_selected_ekdpb_1", JS = "_disabled_ekdpb_39", KS = "_valid_ekdpb_62
|
|
22574
22585
|
startDate: W,
|
22575
22586
|
endDate: q
|
22576
22587
|
};
|
22577
|
-
},
|
22588
|
+
}, E = () => {
|
22578
22589
|
const N = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1), W = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 11, 31);
|
22579
22590
|
return {
|
22580
22591
|
startDate: N,
|
@@ -22592,7 +22603,7 @@ const US = "_selected_ekdpb_1", JS = "_disabled_ekdpb_39", KS = "_valid_ekdpb_62
|
|
22592
22603
|
W = _();
|
22593
22604
|
break;
|
22594
22605
|
case "thisWeek":
|
22595
|
-
W =
|
22606
|
+
W = S();
|
22596
22607
|
break;
|
22597
22608
|
case "thisMonth":
|
22598
22609
|
W = k();
|
@@ -22610,7 +22621,7 @@ const US = "_selected_ekdpb_1", JS = "_disabled_ekdpb_39", KS = "_valid_ekdpb_62
|
|
22610
22621
|
W = B();
|
22611
22622
|
break;
|
22612
22623
|
case "lastYear":
|
22613
|
-
W =
|
22624
|
+
W = E();
|
22614
22625
|
break;
|
22615
22626
|
}
|
22616
22627
|
W && L({ startDate: F(W.startDate, "start"), endDate: F(W.endDate, "end") });
|
@@ -23426,8 +23437,8 @@ const m$ = "_container_1q8xg_1", p$ = "_disabled_1q8xg_5", h$ = "_label_1q8xg_9"
|
|
23426
23437
|
}, [d, m] = re(null), [h, v] = re(null), [p, b] = re(""), [y, D] = re(), [C, I] = re(0), $ = () => {
|
23427
23438
|
var k;
|
23428
23439
|
let _ = 0;
|
23429
|
-
const
|
23430
|
-
(k =
|
23440
|
+
const S = document.getElementById("icon-company-sidebar");
|
23441
|
+
(k = S == null ? void 0 : S.childNodes) == null || k.forEach((T) => {
|
23431
23442
|
_ += T.getBoundingClientRect().width ?? 0;
|
23432
23443
|
}), D(_ + l + "px");
|
23433
23444
|
}, x = () => {
|
@@ -23871,9 +23882,9 @@ function ob(e) {
|
|
23871
23882
|
b === void 0 && (b = W$);
|
23872
23883
|
var y = e.isValidInputCharacter;
|
23873
23884
|
y === void 0 && (y = Rr);
|
23874
|
-
var D = e.isCharacterSame, C = bc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), I = ab(p, s, !!l, i, u, c), $ = I[0], x = $.formattedValue, F = $.numAsString, _ = I[1],
|
23885
|
+
var D = e.isCharacterSame, C = bc(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), I = ab(p, s, !!l, i, u, c), $ = I[0], x = $.formattedValue, F = $.numAsString, _ = I[1], S = fe(), k = fe({ formattedValue: x, numAsString: F }), T = function(ee, ne) {
|
23875
23886
|
k.current = { formattedValue: ee.formattedValue, numAsString: ee.value }, _(ee, ne);
|
23876
|
-
}, R = re(!1), V = R[0], B = R[1],
|
23887
|
+
}, R = re(!1), V = R[0], B = R[1], E = fe(null), L = fe({
|
23877
23888
|
setCaretTimeout: null,
|
23878
23889
|
focusTimeout: null
|
23879
23890
|
});
|
@@ -23915,16 +23926,16 @@ function ob(e) {
|
|
23915
23926
|
source: lo.props
|
23916
23927
|
});
|
23917
23928
|
}, [x, F]);
|
23918
|
-
var Y =
|
23929
|
+
var Y = E.current ? ss(E.current) : void 0, M = typeof window < "u" ? Fr : Re;
|
23919
23930
|
M(function() {
|
23920
|
-
var ee =
|
23931
|
+
var ee = E.current;
|
23921
23932
|
if (x !== k.current.formattedValue && ee) {
|
23922
23933
|
var ne = q(k.current.formattedValue, x, Y);
|
23923
23934
|
ee.value = x, N(ee, ne, x);
|
23924
23935
|
}
|
23925
23936
|
}, [x]);
|
23926
23937
|
var j = function(ee, ne, me) {
|
23927
|
-
var Me = ne.target, tt =
|
23938
|
+
var Me = ne.target, tt = S.current ? N$(S.current, Me.selectionEnd) : tb(x, ee), Se = Object.assign(Object.assign({}, tt), { lastValue: x }), we = u(ee, Se), wt = H(we);
|
23928
23939
|
if (we = u(wt, void 0), f && !f(G(wt, we))) {
|
23929
23940
|
var It = ne.target, Et = ss(It), Wt = q(ee, x, Et);
|
23930
23941
|
return It.value = x, N(It, Wt, x), !1;
|
@@ -23940,10 +23951,10 @@ function ob(e) {
|
|
23940
23951
|
}, U = function(ee, ne) {
|
23941
23952
|
ne === void 0 && (ne = 0);
|
23942
23953
|
var me = ee.selectionStart, Me = ee.selectionEnd;
|
23943
|
-
|
23954
|
+
S.current = { selectionStart: me, selectionEnd: Me + ne };
|
23944
23955
|
}, K = function(ee) {
|
23945
23956
|
var ne = ee.target, me = ne.value, Me = j(me, ee, lo.event);
|
23946
|
-
Me && g(ee),
|
23957
|
+
Me && g(ee), S.current = void 0;
|
23947
23958
|
}, ae = function(ee) {
|
23948
23959
|
var ne = ee.target, me = ee.key, Me = ne.selectionStart, tt = ne.selectionEnd, Se = ne.value;
|
23949
23960
|
Se === void 0 && (Se = "");
|
@@ -23976,14 +23987,14 @@ function ob(e) {
|
|
23976
23987
|
}, z = function(ee) {
|
23977
23988
|
ee.persist && ee.persist();
|
23978
23989
|
var ne = ee.target, me = ee.currentTarget;
|
23979
|
-
|
23990
|
+
E.current = ne, L.current.focusTimeout = setTimeout(function() {
|
23980
23991
|
var Me = ne.selectionStart, tt = ne.selectionEnd, Se = ne.value;
|
23981
23992
|
Se === void 0 && (Se = "");
|
23982
23993
|
var we = W(Se, Me);
|
23983
23994
|
we !== Me && !(Me === 0 && tt === Se.length) && N(ne, we, Se), h(Object.assign(Object.assign({}, ee), { currentTarget: me }));
|
23984
23995
|
}, 0);
|
23985
23996
|
}, et = function(ee) {
|
23986
|
-
|
23997
|
+
E.current = null, clearTimeout(L.current.focusTimeout), clearTimeout(L.current.setCaretTimeout), v(ee);
|
23987
23998
|
}, je = V && L$() ? "numeric" : void 0, ze = Object.assign({ inputMode: je }, C, {
|
23988
23999
|
type: t,
|
23989
24000
|
value: x,
|
@@ -24047,21 +24058,21 @@ function U$(e, t, n) {
|
|
24047
24058
|
var v = u === 0 ? "" : m;
|
24048
24059
|
e = e.substring(0, c) + v + e.substring(c + 1, e.length);
|
24049
24060
|
}
|
24050
|
-
var p = function(
|
24061
|
+
var p = function(E, L, H) {
|
24051
24062
|
var G = !1, N = !1;
|
24052
|
-
o.startsWith("-") ? G = !1 :
|
24063
|
+
o.startsWith("-") ? G = !1 : E.startsWith("--") ? (G = !1, N = !0) : i.startsWith("-") && E.length === i.length ? G = !1 : E[0] === "-" && (G = !0);
|
24053
24064
|
var W = G ? 1 : 0;
|
24054
|
-
return N && (W = 2), W && (
|
24065
|
+
return N && (W = 2), W && (E = E.substring(W), L -= W, H -= W), { value: E, start: L, end: H, hasNegation: G };
|
24055
24066
|
}, b = p(e, c, f), y = b.hasNegation;
|
24056
24067
|
r = b, e = r.value, c = r.start, f = r.end;
|
24057
24068
|
var D = p(t.lastValue, s.start, s.end), C = D.start, I = D.end, $ = D.value, x = e.substring(c, f);
|
24058
24069
|
e.length && $.length && (C > $.length - i.length || I < o.length) && !(x && i.startsWith(x)) && (e = $);
|
24059
24070
|
var F = 0;
|
24060
24071
|
e.startsWith(o) ? F += o.length : c < o.length && (F = c), e = e.substring(F), f -= F;
|
24061
|
-
var _ = e.length,
|
24062
|
-
e.endsWith(i) ? _ =
|
24072
|
+
var _ = e.length, S = e.length - i.length;
|
24073
|
+
e.endsWith(i) ? _ = S : (f > S || f > e.length - i.length) && (_ = f), e = e.substring(0, _), e = Z$(y ? "-" + e : e, a), e = (e.match(X$(m)) || []).join("");
|
24063
24074
|
var k = e.indexOf(m);
|
24064
|
-
e = e.replace(new RegExp(Q1(m), "g"), function(
|
24075
|
+
e = e.replace(new RegExp(Q1(m), "g"), function(E, L) {
|
24065
24076
|
return L === k ? "." : "";
|
24066
24077
|
});
|
24067
24078
|
var T = vc(e, a), R = T.beforeDecimal, V = T.afterDecimal, B = T.addNegation;
|
@@ -24105,14 +24116,14 @@ function Q$(e) {
|
|
24105
24116
|
l === void 0 && (l = "");
|
24106
24117
|
var c = e.defaultValue, f = e.value, g = e.valueIsNumericString, d = e.onValueChange, m = bc(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), h = hu(e), v = h.decimalSeparator, p = h.allowedDecimalSeparators, b = function(B) {
|
24107
24118
|
return qf(B, e);
|
24108
|
-
}, y = function(B,
|
24109
|
-
return U$(B,
|
24119
|
+
}, y = function(B, E) {
|
24120
|
+
return U$(B, E, e);
|
24110
24121
|
}, D = Cr(f) ? c : f, C = g ?? Y$(D, l, t);
|
24111
24122
|
Cr(f) ? Cr(c) || (C = C || typeof c == "number") : C = C || typeof f == "number";
|
24112
24123
|
var I = function(B) {
|
24113
24124
|
return K1(B) ? B : (typeof B == "number" && (B = eb(B)), C && typeof u == "number" ? Qf(B, u, !!s) : B);
|
24114
|
-
}, $ = ab(I(f), I(c), !!C, b, y, d), x = $[0], F = x.numAsString, _ = x.formattedValue,
|
24115
|
-
var
|
24125
|
+
}, $ = ab(I(f), I(c), !!C, b, y, d), x = $[0], F = x.numAsString, _ = x.formattedValue, S = $[1], k = function(B) {
|
24126
|
+
var E = B.target, L = B.key, H = E.selectionStart, G = E.selectionEnd, N = E.value;
|
24116
24127
|
if (N === void 0 && (N = ""), (L === "Backspace" || L === "Delete") && G < l.length) {
|
24117
24128
|
B.preventDefault();
|
24118
24129
|
return;
|
@@ -24121,17 +24132,17 @@ function Q$(e) {
|
|
24121
24132
|
a(B);
|
24122
24133
|
return;
|
24123
24134
|
}
|
24124
|
-
L === "Backspace" && N[0] === "-" && H === l.length + 1 && n && Hn(
|
24135
|
+
L === "Backspace" && N[0] === "-" && H === l.length + 1 && n && Hn(E, 1), u && s && (L === "Backspace" && N[H - 1] === v ? (Hn(E, H - 1), B.preventDefault()) : L === "Delete" && N[H] === v && B.preventDefault()), p != null && p.includes(L) && N[H] === v && Hn(E, H + 1);
|
24125
24136
|
var W = i === !0 ? "," : i;
|
24126
|
-
L === "Backspace" && N[H - 1] === W && Hn(
|
24137
|
+
L === "Backspace" && N[H - 1] === W && Hn(E, H - 1), L === "Delete" && N[H] === W && Hn(E, H + 1), a(B);
|
24127
24138
|
}, T = function(B) {
|
24128
|
-
var
|
24129
|
-
if (
|
24130
|
-
var L = qf(
|
24131
|
-
|
24139
|
+
var E = F;
|
24140
|
+
if (E.match(/\d/g) || (E = ""), r || (E = M$(E)), s && u && (E = Qf(E, u, s)), E !== F) {
|
24141
|
+
var L = qf(E, e);
|
24142
|
+
S({
|
24132
24143
|
formattedValue: L,
|
24133
|
-
value:
|
24134
|
-
floatValue: parseFloat(
|
24144
|
+
value: E,
|
24145
|
+
floatValue: parseFloat(E)
|
24135
24146
|
}, {
|
24136
24147
|
event: B,
|
24137
24148
|
source: lo.event
|
@@ -24141,7 +24152,7 @@ function Q$(e) {
|
|
24141
24152
|
}, R = function(B) {
|
24142
24153
|
return B === v ? !0 : Rr(B);
|
24143
24154
|
}, V = function(B) {
|
24144
|
-
var
|
24155
|
+
var E = B.currentValue, L = B.lastValue, H = B.formattedValue, G = B.currentValueIndex, N = B.formattedValueIndex, W = E[G], q = H[N], ge = tb(L, E), Y = ge.to;
|
24145
24156
|
return G >= Y.start && G < Y.end && p && p.includes(W) && q === v ? !0 : W === q;
|
24146
24157
|
};
|
24147
24158
|
return Object.assign(Object.assign({}, m), {
|
@@ -24149,7 +24160,7 @@ function Q$(e) {
|
|
24149
24160
|
valueIsNumericString: !1,
|
24150
24161
|
isValidInputCharacter: R,
|
24151
24162
|
isCharacterSame: V,
|
24152
|
-
onValueChange:
|
24163
|
+
onValueChange: S,
|
24153
24164
|
format: b,
|
24154
24165
|
removeFormatting: y,
|
24155
24166
|
getCaretBoundary: function(B) {
|
@@ -24350,7 +24361,7 @@ const L9 = ({ max: e, min: t, onChange: n, ...r }) => /* @__PURE__ */ w.jsx(
|
|
24350
24361
|
/* @__PURE__ */ w.jsx(
|
24351
24362
|
"input",
|
24352
24363
|
{
|
24353
|
-
accept:
|
24364
|
+
accept: c == null ? void 0 : c.join(", "),
|
24354
24365
|
ref: t,
|
24355
24366
|
hidden: !0,
|
24356
24367
|
type: "file",
|