1mpacto-react-ui 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as
|
2
|
-
import k, { forwardRef as Ft, isValidElement as Ce, useLayoutEffect as qa, useEffect as
|
1
|
+
import * as N from "react";
|
2
|
+
import k, { forwardRef as Ft, isValidElement as Ce, useLayoutEffect as qa, useEffect as Ee, useRef as be, useState as te, useImperativeHandle as Pf, useCallback as Re, cloneElement as Bf, createElement as Gs, useMemo as ye, useContext as $n, createContext as Tf, Component as Jb, Fragment as Yo } from "react";
|
3
3
|
import * as Vf from "react-dom";
|
4
4
|
import Kb, { createPortal as Hs } from "react-dom";
|
5
5
|
function tn(e) {
|
@@ -1981,7 +1981,7 @@ function M1() {
|
|
1981
1981
|
function V(F) {
|
1982
1982
|
return F.displayName || "Context";
|
1983
1983
|
}
|
1984
|
-
function
|
1984
|
+
function P(F) {
|
1985
1985
|
if (F == null)
|
1986
1986
|
return null;
|
1987
1987
|
if (typeof F.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof F == "function")
|
@@ -2014,11 +2014,11 @@ function M1() {
|
|
2014
2014
|
return E(F, F.render, "ForwardRef");
|
2015
2015
|
case f:
|
2016
2016
|
var ge = F.displayName || null;
|
2017
|
-
return ge !== null ? ge :
|
2017
|
+
return ge !== null ? ge : P(F.type) || "Memo";
|
2018
2018
|
case g: {
|
2019
2019
|
var Ve = F, Ge = Ve._payload, Fe = Ve._init;
|
2020
2020
|
try {
|
2021
|
-
return
|
2021
|
+
return P(Fe(Ge));
|
2022
2022
|
} catch {
|
2023
2023
|
return null;
|
2024
2024
|
}
|
@@ -2026,14 +2026,14 @@ function M1() {
|
|
2026
2026
|
}
|
2027
2027
|
return null;
|
2028
2028
|
}
|
2029
|
-
var $ = Object.assign, M = 0,
|
2029
|
+
var $ = Object.assign, M = 0, A, S, L, G, H, O, W;
|
2030
2030
|
function ie() {
|
2031
2031
|
}
|
2032
2032
|
ie.__reactDisabledLog = !0;
|
2033
|
-
function
|
2033
|
+
function Se() {
|
2034
2034
|
{
|
2035
2035
|
if (M === 0) {
|
2036
|
-
|
2036
|
+
A = console.log, S = console.info, L = console.warn, G = console.error, H = console.group, O = console.groupCollapsed, W = console.groupEnd;
|
2037
2037
|
var F = {
|
2038
2038
|
configurable: !0,
|
2039
2039
|
enumerable: !0,
|
@@ -2053,7 +2053,7 @@ function M1() {
|
|
2053
2053
|
M++;
|
2054
2054
|
}
|
2055
2055
|
}
|
2056
|
-
function
|
2056
|
+
function U() {
|
2057
2057
|
{
|
2058
2058
|
if (M--, M === 0) {
|
2059
2059
|
var F = {
|
@@ -2063,7 +2063,7 @@ function M1() {
|
|
2063
2063
|
};
|
2064
2064
|
Object.defineProperties(console, {
|
2065
2065
|
log: $({}, F, {
|
2066
|
-
value:
|
2066
|
+
value: A
|
2067
2067
|
}),
|
2068
2068
|
info: $({}, F, {
|
2069
2069
|
value: S
|
@@ -2072,10 +2072,10 @@ function M1() {
|
|
2072
2072
|
value: L
|
2073
2073
|
}),
|
2074
2074
|
error: $({}, F, {
|
2075
|
-
value:
|
2075
|
+
value: G
|
2076
2076
|
}),
|
2077
2077
|
group: $({}, F, {
|
2078
|
-
value:
|
2078
|
+
value: H
|
2079
2079
|
}),
|
2080
2080
|
groupCollapsed: $({}, F, {
|
2081
2081
|
value: O
|
@@ -2088,7 +2088,7 @@ function M1() {
|
|
2088
2088
|
M < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
2089
2089
|
}
|
2090
2090
|
}
|
2091
|
-
var
|
2091
|
+
var _ = p.ReactCurrentDispatcher, j;
|
2092
2092
|
function Y(F, Z, K) {
|
2093
2093
|
{
|
2094
2094
|
if (j === void 0)
|
@@ -2120,7 +2120,7 @@ function M1() {
|
|
2120
2120
|
var Ve = Error.prepareStackTrace;
|
2121
2121
|
Error.prepareStackTrace = void 0;
|
2122
2122
|
var Ge;
|
2123
|
-
Ge =
|
2123
|
+
Ge = _.current, _.current = null, Se();
|
2124
2124
|
try {
|
2125
2125
|
if (Z) {
|
2126
2126
|
var Fe = function() {
|
@@ -2155,17 +2155,17 @@ function M1() {
|
|
2155
2155
|
}
|
2156
2156
|
} catch (It) {
|
2157
2157
|
if (It && ge && typeof It.stack == "string") {
|
2158
|
-
for (var
|
2158
|
+
for (var we = It.stack.split(`
|
2159
2159
|
`), yt = ge.stack.split(`
|
2160
|
-
`), tt =
|
2160
|
+
`), tt = we.length - 1, nt = yt.length - 1; tt >= 1 && nt >= 0 && we[tt] !== yt[nt]; )
|
2161
2161
|
nt--;
|
2162
2162
|
for (; tt >= 1 && nt >= 0; tt--, nt--)
|
2163
|
-
if (
|
2163
|
+
if (we[tt] !== yt[nt]) {
|
2164
2164
|
if (tt !== 1 || nt !== 1)
|
2165
2165
|
do
|
2166
|
-
if (tt--, nt--, nt < 0 ||
|
2166
|
+
if (tt--, nt--, nt < 0 || we[tt] !== yt[nt]) {
|
2167
2167
|
var Lt = `
|
2168
|
-
` +
|
2168
|
+
` + we[tt].replace(" at new ", " at ");
|
2169
2169
|
return F.displayName && Lt.includes("<anonymous>") && (Lt = Lt.replace("<anonymous>", F.displayName)), typeof F == "function" && fe.set(F, Lt), Lt;
|
2170
2170
|
}
|
2171
2171
|
while (tt >= 1 && nt >= 0);
|
@@ -2173,7 +2173,7 @@ function M1() {
|
|
2173
2173
|
}
|
2174
2174
|
}
|
2175
2175
|
} finally {
|
2176
|
-
ne = !1,
|
2176
|
+
ne = !1, _.current = Ge, U(), Error.prepareStackTrace = Ve;
|
2177
2177
|
}
|
2178
2178
|
var Fr = F ? F.displayName || F.name : "", Kn = Fr ? Y(Fr) : "";
|
2179
2179
|
return typeof F == "function" && fe.set(F, Kn), Kn;
|
@@ -2227,17 +2227,17 @@ function M1() {
|
|
2227
2227
|
var Ge = Function.call.bind(Xe);
|
2228
2228
|
for (var Fe in F)
|
2229
2229
|
if (Ge(F, Fe)) {
|
2230
|
-
var
|
2230
|
+
var we = void 0;
|
2231
2231
|
try {
|
2232
2232
|
if (typeof F[Fe] != "function") {
|
2233
2233
|
var yt = Error((ge || "React class") + ": " + K + " type `" + Fe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof F[Fe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
2234
2234
|
throw yt.name = "Invariant Violation", yt;
|
2235
2235
|
}
|
2236
|
-
|
2236
|
+
we = F[Fe](Z, Fe, ge, K, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
2237
2237
|
} catch (tt) {
|
2238
|
-
|
2238
|
+
we = tt;
|
2239
2239
|
}
|
2240
|
-
|
2240
|
+
we && !(we instanceof Error) && (de(Ve), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ge || "React class", K, Fe, typeof we), de(null)), we instanceof Error && !(we.message in Q) && (Q[we.message] = !0, de(Ve), b("Failed %s type: %s", K, we.message), de(null));
|
2241
2241
|
}
|
2242
2242
|
}
|
2243
2243
|
}
|
@@ -2290,8 +2290,8 @@ function M1() {
|
|
2290
2290
|
}
|
2291
2291
|
function kb(F, Z) {
|
2292
2292
|
if (typeof F.ref == "string" && Ot.current && Z && Ot.current.stateNode !== Z) {
|
2293
|
-
var K =
|
2294
|
-
sa[K] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
2293
|
+
var K = P(Ot.current.type);
|
2294
|
+
sa[K] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(Ot.current.type), F.ref), sa[K] = !0);
|
2295
2295
|
}
|
2296
2296
|
}
|
2297
2297
|
function _b(F, Z) {
|
@@ -2317,7 +2317,7 @@ function M1() {
|
|
2317
2317
|
}
|
2318
2318
|
}
|
2319
2319
|
var Nb = function(F, Z, K, ge, Ve, Ge, Fe) {
|
2320
|
-
var
|
2320
|
+
var we = {
|
2321
2321
|
// This tag allows us to uniquely identify this as a React Element
|
2322
2322
|
$$typeof: t,
|
2323
2323
|
// Built-in properties that belong on the element
|
@@ -2328,27 +2328,27 @@ function M1() {
|
|
2328
2328
|
// Record the component responsible for creating this element.
|
2329
2329
|
_owner: Ge
|
2330
2330
|
};
|
2331
|
-
return
|
2331
|
+
return we._store = {}, Object.defineProperty(we._store, "validated", {
|
2332
2332
|
configurable: !1,
|
2333
2333
|
enumerable: !1,
|
2334
2334
|
writable: !0,
|
2335
2335
|
value: !1
|
2336
|
-
}), Object.defineProperty(
|
2336
|
+
}), Object.defineProperty(we, "_self", {
|
2337
2337
|
configurable: !1,
|
2338
2338
|
enumerable: !1,
|
2339
2339
|
writable: !1,
|
2340
2340
|
value: ge
|
2341
|
-
}), Object.defineProperty(
|
2341
|
+
}), Object.defineProperty(we, "_source", {
|
2342
2342
|
configurable: !1,
|
2343
2343
|
enumerable: !1,
|
2344
2344
|
writable: !1,
|
2345
2345
|
value: Ve
|
2346
|
-
}), Object.freeze && (Object.freeze(
|
2346
|
+
}), Object.freeze && (Object.freeze(we.props), Object.freeze(we)), we;
|
2347
2347
|
};
|
2348
2348
|
function Ob(F, Z, K, ge, Ve) {
|
2349
2349
|
{
|
2350
|
-
var Ge, Fe = {},
|
2351
|
-
K !== void 0 && (wt(K),
|
2350
|
+
var Ge, Fe = {}, we = null, yt = null;
|
2351
|
+
K !== void 0 && (wt(K), we = "" + K), Vb(Z) && (wt(Z.key), we = "" + Z.key), Tb(Z) && (yt = Z.ref, kb(Z, Ve));
|
2352
2352
|
for (Ge in Z)
|
2353
2353
|
Xe.call(Z, Ge) && !ql.hasOwnProperty(Ge) && (Fe[Ge] = Z[Ge]);
|
2354
2354
|
if (F && F.defaultProps) {
|
@@ -2356,11 +2356,11 @@ function M1() {
|
|
2356
2356
|
for (Ge in tt)
|
2357
2357
|
Fe[Ge] === void 0 && (Fe[Ge] = tt[Ge]);
|
2358
2358
|
}
|
2359
|
-
if (
|
2359
|
+
if (we || yt) {
|
2360
2360
|
var nt = typeof F == "function" ? F.displayName || F.name || "Unknown" : F;
|
2361
|
-
|
2361
|
+
we && _b(Fe, nt), yt && Mb(Fe, nt);
|
2362
2362
|
}
|
2363
|
-
return Nb(F,
|
2363
|
+
return Nb(F, we, yt, Ve, ge, Ot.current, Fe);
|
2364
2364
|
}
|
2365
2365
|
}
|
2366
2366
|
var tu = p.ReactCurrentOwner, ec = p.ReactDebugCurrentFrame;
|
@@ -2379,7 +2379,7 @@ function M1() {
|
|
2379
2379
|
function tc() {
|
2380
2380
|
{
|
2381
2381
|
if (tu.current) {
|
2382
|
-
var F =
|
2382
|
+
var F = P(tu.current.type);
|
2383
2383
|
if (F)
|
2384
2384
|
return `
|
2385
2385
|
|
@@ -2414,7 +2414,7 @@ Check the top-level render call using <` + K + ">.");
|
|
2414
2414
|
return;
|
2415
2415
|
nc[K] = !0;
|
2416
2416
|
var ge = "";
|
2417
|
-
F && F._owner && F._owner !== tu.current && (ge = " It was passed a child from " +
|
2417
|
+
F && F._owner && F._owner !== tu.current && (ge = " It was passed a child from " + P(F._owner.type) + "."), Rr(F), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', K, ge), Rr(null);
|
2418
2418
|
}
|
2419
2419
|
}
|
2420
2420
|
function ac(F, Z) {
|
@@ -2451,11 +2451,11 @@ Check the top-level render call using <` + K + ">.");
|
|
2451
2451
|
else
|
2452
2452
|
return;
|
2453
2453
|
if (K) {
|
2454
|
-
var ge =
|
2454
|
+
var ge = P(Z);
|
2455
2455
|
Me(K, F.props, "prop", ge, F);
|
2456
2456
|
} else if (Z.PropTypes !== void 0 && !nu) {
|
2457
2457
|
nu = !0;
|
2458
|
-
var Ve =
|
2458
|
+
var Ve = P(Z);
|
2459
2459
|
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ve || "Unknown");
|
2460
2460
|
}
|
2461
2461
|
typeof Z.getDefaultProps == "function" && !Z.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
@@ -2478,12 +2478,12 @@ Check the top-level render call using <` + K + ">.");
|
|
2478
2478
|
{
|
2479
2479
|
var Fe = T(F);
|
2480
2480
|
if (!Fe) {
|
2481
|
-
var
|
2482
|
-
(F === void 0 || typeof F == "object" && F !== null && Object.keys(F).length === 0) && (
|
2481
|
+
var we = "";
|
2482
|
+
(F === void 0 || typeof F == "object" && F !== null && Object.keys(F).length === 0) && (we += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
2483
2483
|
var yt = Lb();
|
2484
|
-
yt ?
|
2484
|
+
yt ? we += yt : we += tc();
|
2485
2485
|
var tt;
|
2486
|
-
F === null ? tt = "null" : $e(F) ? tt = "array" : F !== void 0 && F.$$typeof === t ? (tt = "<" + (
|
2486
|
+
F === null ? tt = "null" : $e(F) ? tt = "array" : F !== void 0 && F.$$typeof === t ? (tt = "<" + (P(F.type) || "Unknown") + " />", we = " Did you accidentally export a JSX literal instead of a component?") : tt = typeof F, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", tt, we);
|
2487
2487
|
}
|
2488
2488
|
var nt = Ob(F, Z, K, Ve, Ge);
|
2489
2489
|
if (nt == null)
|
@@ -2502,7 +2502,7 @@ Check the top-level render call using <` + K + ">.");
|
|
2502
2502
|
ac(Lt, F);
|
2503
2503
|
}
|
2504
2504
|
if (Xe.call(Z, "key")) {
|
2505
|
-
var Kn =
|
2505
|
+
var Kn = P(F), It = Object.keys(Z).filter(function(Ub) {
|
2506
2506
|
return Ub !== "key";
|
2507
2507
|
}), au = It.length > 0 ? "{key: someKey, " + It.join(": ..., ") + ": ...}" : "{key: someKey}";
|
2508
2508
|
if (!oc[Kn + au]) {
|
@@ -3276,7 +3276,7 @@ const I4 = function(e) {
|
|
3276
3276
|
const E = wn(T.placement);
|
3277
3277
|
return [T.placement, E && c ? (
|
3278
3278
|
// Check along the mainAxis and main crossAxis side.
|
3279
|
-
T.overflows.slice(0, 2).reduce((V,
|
3279
|
+
T.overflows.slice(0, 2).reduce((V, P) => V + P, 0)
|
3280
3280
|
) : (
|
3281
3281
|
// Check only the mainAxis.
|
3282
3282
|
T.overflows[0]
|
@@ -3346,31 +3346,31 @@ const I4 = function(e) {
|
|
3346
3346
|
placement: M
|
3347
3347
|
}
|
3348
3348
|
};
|
3349
|
-
let
|
3350
|
-
if (!
|
3349
|
+
let A = (V = T.filter((S) => S.overflows[0] <= 0).sort((S, L) => S.overflows[1] - L.overflows[1])[0]) == null ? void 0 : V.placement;
|
3350
|
+
if (!A)
|
3351
3351
|
switch (d) {
|
3352
3352
|
case "bestFit": {
|
3353
|
-
var
|
3354
|
-
const S = (
|
3353
|
+
var P;
|
3354
|
+
const S = (P = T.filter((L) => {
|
3355
3355
|
if (w) {
|
3356
|
-
const
|
3357
|
-
return
|
3356
|
+
const G = Kr(L.placement);
|
3357
|
+
return G === b || // Create a bias to the `y` side axis due to horizontal
|
3358
3358
|
// reading directions favoring greater width.
|
3359
|
-
|
3359
|
+
G === "y";
|
3360
3360
|
}
|
3361
3361
|
return !0;
|
3362
|
-
}).map((L) => [L.placement, L.overflows.filter((
|
3363
|
-
S && (
|
3362
|
+
}).map((L) => [L.placement, L.overflows.filter((G) => G > 0).reduce((G, H) => G + H, 0)]).sort((L, G) => L[1] - G[1])[0]) == null ? void 0 : P[0];
|
3363
|
+
S && (A = S);
|
3364
3364
|
break;
|
3365
3365
|
}
|
3366
3366
|
case "initialPlacement":
|
3367
|
-
|
3367
|
+
A = u;
|
3368
3368
|
break;
|
3369
3369
|
}
|
3370
|
-
if (a !==
|
3370
|
+
if (a !== A)
|
3371
3371
|
return {
|
3372
3372
|
reset: {
|
3373
|
-
placement:
|
3373
|
+
placement: A
|
3374
3374
|
}
|
3375
3375
|
};
|
3376
3376
|
}
|
@@ -3838,7 +3838,7 @@ const j4 = $4, z4 = I4, Z4 = R4, X4 = E4, Y4 = (e, t, n) => {
|
|
3838
3838
|
platform: o
|
3839
3839
|
});
|
3840
3840
|
};
|
3841
|
-
var ko = typeof document < "u" ? qa :
|
3841
|
+
var ko = typeof document < "u" ? qa : Ee;
|
3842
3842
|
function ai(e, t) {
|
3843
3843
|
if (e === t)
|
3844
3844
|
return !0;
|
@@ -3877,7 +3877,7 @@ function wc(e, t) {
|
|
3877
3877
|
return Math.round(t * n) / n;
|
3878
3878
|
}
|
3879
3879
|
function Ic(e) {
|
3880
|
-
const t =
|
3880
|
+
const t = N.useRef(e);
|
3881
3881
|
return ko(() => {
|
3882
3882
|
t.current = e;
|
3883
3883
|
}), t;
|
@@ -3896,20 +3896,20 @@ function U4(e) {
|
|
3896
3896
|
transform: u = !0,
|
3897
3897
|
whileElementsMounted: s,
|
3898
3898
|
open: l
|
3899
|
-
} = e, [c, f] =
|
3899
|
+
} = e, [c, f] = N.useState({
|
3900
3900
|
x: 0,
|
3901
3901
|
y: 0,
|
3902
3902
|
strategy: n,
|
3903
3903
|
placement: t,
|
3904
3904
|
middlewareData: {},
|
3905
3905
|
isPositioned: !1
|
3906
|
-
}), [g, d] =
|
3906
|
+
}), [g, d] = N.useState(r);
|
3907
3907
|
ai(g, r) || d(r);
|
3908
|
-
const [m, h] =
|
3908
|
+
const [m, h] = N.useState(null), [v, p] = N.useState(null), b = N.useCallback((S) => {
|
3909
3909
|
S !== w.current && (w.current = S, h(S));
|
3910
|
-
}, []), y =
|
3910
|
+
}, []), y = N.useCallback((S) => {
|
3911
3911
|
S !== R.current && (R.current = S, p(S));
|
3912
|
-
}, []), D = o || m, x = i || v, w =
|
3912
|
+
}, []), D = o || m, x = i || v, w = N.useRef(null), R = N.useRef(null), C = N.useRef(c), B = s != null, T = Ic(s), E = Ic(a), V = N.useCallback(() => {
|
3913
3913
|
if (!w.current || !R.current)
|
3914
3914
|
return;
|
3915
3915
|
const S = {
|
@@ -3918,12 +3918,12 @@ function U4(e) {
|
|
3918
3918
|
middleware: g
|
3919
3919
|
};
|
3920
3920
|
E.current && (S.platform = E.current), Y4(w.current, R.current, S).then((L) => {
|
3921
|
-
const
|
3921
|
+
const G = {
|
3922
3922
|
...L,
|
3923
3923
|
isPositioned: !0
|
3924
3924
|
};
|
3925
|
-
|
3926
|
-
f(
|
3925
|
+
P.current && !ai(C.current, G) && (C.current = G, Vf.flushSync(() => {
|
3926
|
+
f(G);
|
3927
3927
|
}));
|
3928
3928
|
});
|
3929
3929
|
}, [g, t, n, E]);
|
@@ -3933,9 +3933,9 @@ function U4(e) {
|
|
3933
3933
|
isPositioned: !1
|
3934
3934
|
})));
|
3935
3935
|
}, [l]);
|
3936
|
-
const
|
3937
|
-
ko(() => (
|
3938
|
-
|
3936
|
+
const P = N.useRef(!1);
|
3937
|
+
ko(() => (P.current = !0, () => {
|
3938
|
+
P.current = !1;
|
3939
3939
|
}), []), ko(() => {
|
3940
3940
|
if (D && (w.current = D), x && (R.current = x), D && x) {
|
3941
3941
|
if (T.current)
|
@@ -3943,15 +3943,15 @@ function U4(e) {
|
|
3943
3943
|
V();
|
3944
3944
|
}
|
3945
3945
|
}, [D, x, V, T, B]);
|
3946
|
-
const $ =
|
3946
|
+
const $ = N.useMemo(() => ({
|
3947
3947
|
reference: w,
|
3948
3948
|
floating: R,
|
3949
3949
|
setReference: b,
|
3950
3950
|
setFloating: y
|
3951
|
-
}), [b, y]), M =
|
3951
|
+
}), [b, y]), M = N.useMemo(() => ({
|
3952
3952
|
reference: D,
|
3953
3953
|
floating: x
|
3954
|
-
}), [D, x]),
|
3954
|
+
}), [D, x]), A = N.useMemo(() => {
|
3955
3955
|
const S = {
|
3956
3956
|
position: n,
|
3957
3957
|
left: 0,
|
@@ -3959,26 +3959,26 @@ function U4(e) {
|
|
3959
3959
|
};
|
3960
3960
|
if (!M.floating)
|
3961
3961
|
return S;
|
3962
|
-
const L = wc(M.floating, c.x),
|
3962
|
+
const L = wc(M.floating, c.x), G = wc(M.floating, c.y);
|
3963
3963
|
return u ? {
|
3964
3964
|
...S,
|
3965
|
-
transform: "translate(" + L + "px, " +
|
3965
|
+
transform: "translate(" + L + "px, " + G + "px)",
|
3966
3966
|
...ag(M.floating) >= 1.5 && {
|
3967
3967
|
willChange: "transform"
|
3968
3968
|
}
|
3969
3969
|
} : {
|
3970
3970
|
position: n,
|
3971
3971
|
left: L,
|
3972
|
-
top:
|
3972
|
+
top: G
|
3973
3973
|
};
|
3974
3974
|
}, [n, u, M.floating, c.x, c.y]);
|
3975
|
-
return
|
3975
|
+
return N.useMemo(() => ({
|
3976
3976
|
...c,
|
3977
3977
|
update: V,
|
3978
3978
|
refs: $,
|
3979
3979
|
elements: M,
|
3980
|
-
floatingStyles:
|
3981
|
-
}), [c, V, $, M,
|
3980
|
+
floatingStyles: A
|
3981
|
+
}), [c, V, $, M, A]);
|
3982
3982
|
}
|
3983
3983
|
const J4 = (e, t) => ({
|
3984
3984
|
...j4(e),
|
@@ -3993,16 +3993,16 @@ const J4 = (e, t) => ({
|
|
3993
3993
|
...z4(e),
|
3994
3994
|
options: [e, t]
|
3995
3995
|
}), og = {
|
3996
|
-
...
|
3996
|
+
...N
|
3997
3997
|
}, ey = og.useInsertionEffect, ty = ey || ((e) => e());
|
3998
3998
|
function _n(e) {
|
3999
|
-
const t =
|
3999
|
+
const t = N.useRef(() => {
|
4000
4000
|
if (process.env.NODE_ENV !== "production")
|
4001
4001
|
throw new Error("Cannot call an event handler while rendering.");
|
4002
4002
|
});
|
4003
4003
|
return ty(() => {
|
4004
4004
|
t.current = e;
|
4005
|
-
}),
|
4005
|
+
}), N.useCallback(function() {
|
4006
4006
|
for (var n = arguments.length, r = new Array(n), a = 0; a < n; a++)
|
4007
4007
|
r[a] = arguments[a];
|
4008
4008
|
return t.current == null ? void 0 : t.current(...r);
|
@@ -4022,7 +4022,7 @@ function Qn(e, t) {
|
|
4022
4022
|
});
|
4023
4023
|
a ? o() : Ec = requestAnimationFrame(o);
|
4024
4024
|
}
|
4025
|
-
var Et = typeof document < "u" ? qa :
|
4025
|
+
var Et = typeof document < "u" ? qa : Ee;
|
4026
4026
|
function oi() {
|
4027
4027
|
return oi = Object.assign ? Object.assign.bind() : function(e) {
|
4028
4028
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -4040,10 +4040,10 @@ const $c = () => (
|
|
4040
4040
|
"floating-ui-" + Math.random().toString(36).slice(2, 6) + ny++
|
4041
4041
|
);
|
4042
4042
|
function ry() {
|
4043
|
-
const [e, t] =
|
4043
|
+
const [e, t] = N.useState(() => Sc ? $c() : void 0);
|
4044
4044
|
return Et(() => {
|
4045
4045
|
e == null && t($c());
|
4046
|
-
}, []),
|
4046
|
+
}, []), N.useEffect(() => {
|
4047
4047
|
Sc = !0;
|
4048
4048
|
}, []), e;
|
4049
4049
|
}
|
@@ -4075,10 +4075,10 @@ function iy() {
|
|
4075
4075
|
}
|
4076
4076
|
};
|
4077
4077
|
}
|
4078
|
-
const uy = /* @__PURE__ */
|
4078
|
+
const uy = /* @__PURE__ */ N.createContext(null), sy = /* @__PURE__ */ N.createContext(null), ig = () => {
|
4079
4079
|
var e;
|
4080
|
-
return ((e =
|
4081
|
-
}, Ys = () =>
|
4080
|
+
return ((e = N.useContext(uy)) == null ? void 0 : e.id) || null;
|
4081
|
+
}, Ys = () => N.useContext(sy);
|
4082
4082
|
function Aa(e) {
|
4083
4083
|
return "data-floating-ui-" + e;
|
4084
4084
|
}
|
@@ -4203,8 +4203,8 @@ let py;
|
|
4203
4203
|
function Fc(e) {
|
4204
4204
|
e.key === "Tab" && (e.target, clearTimeout(py));
|
4205
4205
|
}
|
4206
|
-
const ii = /* @__PURE__ */
|
4207
|
-
const [r, a] =
|
4206
|
+
const ii = /* @__PURE__ */ N.forwardRef(function(t, n) {
|
4207
|
+
const [r, a] = N.useState();
|
4208
4208
|
Et(() => (W1() && a("button"), document.addEventListener("keydown", Fc), () => {
|
4209
4209
|
document.removeEventListener("keydown", Fc);
|
4210
4210
|
}), []);
|
@@ -4217,14 +4217,14 @@ const ii = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
4217
4217
|
[Aa("focus-guard")]: "",
|
4218
4218
|
style: Us
|
4219
4219
|
};
|
4220
|
-
return /* @__PURE__ */
|
4221
|
-
}), dg = /* @__PURE__ */
|
4220
|
+
return /* @__PURE__ */ N.createElement("span", oi({}, t, o));
|
4221
|
+
}), dg = /* @__PURE__ */ N.createContext(null), Ac = /* @__PURE__ */ Aa("portal");
|
4222
4222
|
function hy(e) {
|
4223
4223
|
e === void 0 && (e = {});
|
4224
4224
|
const {
|
4225
4225
|
id: t,
|
4226
4226
|
root: n
|
4227
|
-
} = e, r = Xs(), a = fg(), [o, i] =
|
4227
|
+
} = e, r = Xs(), a = fg(), [o, i] = N.useState(null), u = N.useRef(null);
|
4228
4228
|
return Et(() => () => {
|
4229
4229
|
o == null || o.remove(), queueMicrotask(() => {
|
4230
4230
|
u.current = null;
|
@@ -4254,14 +4254,14 @@ function by(e) {
|
|
4254
4254
|
} = e, o = hy({
|
4255
4255
|
id: n,
|
4256
4256
|
root: r
|
4257
|
-
}), [i, u] =
|
4257
|
+
}), [i, u] = N.useState(null), s = N.useRef(null), l = N.useRef(null), c = N.useRef(null), f = N.useRef(null), g = (
|
4258
4258
|
// The FocusManager and therefore floating element are currently open/
|
4259
4259
|
// rendered.
|
4260
4260
|
!!i && // Guards are only for non-modal focus management.
|
4261
4261
|
!i.modal && // Don't render if unmount is transitioning.
|
4262
4262
|
i.open && a && !!(r || o)
|
4263
4263
|
);
|
4264
|
-
return
|
4264
|
+
return N.useEffect(() => {
|
4265
4265
|
if (!o || !a || i != null && i.modal)
|
4266
4266
|
return;
|
4267
4267
|
function d(m) {
|
@@ -4270,8 +4270,8 @@ function by(e) {
|
|
4270
4270
|
return o.addEventListener("focusin", d, !0), o.addEventListener("focusout", d, !0), () => {
|
4271
4271
|
o.removeEventListener("focusin", d, !0), o.removeEventListener("focusout", d, !0);
|
4272
4272
|
};
|
4273
|
-
}, [o, a, i == null ? void 0 : i.modal]), /* @__PURE__ */
|
4274
|
-
value:
|
4273
|
+
}, [o, a, i == null ? void 0 : i.modal]), /* @__PURE__ */ N.createElement(dg.Provider, {
|
4274
|
+
value: N.useMemo(() => ({
|
4275
4275
|
preserveTabOrder: a,
|
4276
4276
|
beforeOutsideRef: s,
|
4277
4277
|
afterOutsideRef: l,
|
@@ -4280,7 +4280,7 @@ function by(e) {
|
|
4280
4280
|
portalNode: o,
|
4281
4281
|
setFocusManagerState: u
|
4282
4282
|
}), [a, o])
|
4283
|
-
}, g && o && /* @__PURE__ */
|
4283
|
+
}, g && o && /* @__PURE__ */ N.createElement(ii, {
|
4284
4284
|
"data-type": "outside",
|
4285
4285
|
ref: s,
|
4286
4286
|
onFocus: (d) => {
|
@@ -4292,10 +4292,10 @@ function by(e) {
|
|
4292
4292
|
h == null || h.focus();
|
4293
4293
|
}
|
4294
4294
|
}
|
4295
|
-
}), g && o && /* @__PURE__ */
|
4295
|
+
}), g && o && /* @__PURE__ */ N.createElement("span", {
|
4296
4296
|
"aria-owns": o.id,
|
4297
4297
|
style: Us
|
4298
|
-
}), o && /* @__PURE__ */ Vf.createPortal(t, o), g && o && /* @__PURE__ */
|
4298
|
+
}), o && /* @__PURE__ */ Vf.createPortal(t, o), g && o && /* @__PURE__ */ N.createElement(ii, {
|
4299
4299
|
"data-type": "outside",
|
4300
4300
|
ref: l,
|
4301
4301
|
onFocus: (d) => {
|
@@ -4309,7 +4309,7 @@ function by(e) {
|
|
4309
4309
|
}
|
4310
4310
|
}));
|
4311
4311
|
}
|
4312
|
-
const fg = () =>
|
4312
|
+
const fg = () => N.useContext(dg), Pc = 20;
|
4313
4313
|
let rr = [];
|
4314
4314
|
function lu(e) {
|
4315
4315
|
rr = rr.filter((n) => n.isConnected);
|
@@ -4325,8 +4325,8 @@ function lu(e) {
|
|
4325
4325
|
function Bc() {
|
4326
4326
|
return rr.slice().reverse().find((e) => e.isConnected);
|
4327
4327
|
}
|
4328
|
-
const vy = /* @__PURE__ */
|
4329
|
-
return /* @__PURE__ */
|
4328
|
+
const vy = /* @__PURE__ */ N.forwardRef(function(t, n) {
|
4329
|
+
return /* @__PURE__ */ N.createElement("button", oi({}, t, {
|
4330
4330
|
type: "button",
|
4331
4331
|
ref: n,
|
4332
4332
|
tabIndex: -1,
|
@@ -4358,42 +4358,42 @@ function yy(e) {
|
|
4358
4358
|
domReference: y,
|
4359
4359
|
floating: D
|
4360
4360
|
}
|
4361
|
-
} = t, x = typeof i == "number" && i < 0, w = Y1(y) && x, R = cy() ? o : !0, C = lr(a), B = lr(i), T = lr(u), E = Ys(), V = fg(),
|
4362
|
-
return
|
4363
|
-
}), W = _n((
|
4364
|
-
const
|
4365
|
-
return C.current.map((j) => y && j === "reference" ? y :
|
4361
|
+
} = t, x = typeof i == "number" && i < 0, w = Y1(y) && x, R = cy() ? o : !0, C = lr(a), B = lr(i), T = lr(u), E = Ys(), V = fg(), P = N.useRef(null), $ = N.useRef(null), M = N.useRef(!1), A = N.useRef(!1), S = N.useRef(-1), L = V != null, G = D == null ? void 0 : D.firstElementChild, H = (G == null ? void 0 : G.id) === b ? G : D, O = _n(function(U) {
|
4362
|
+
return U === void 0 && (U = H), U ? ki(U, Pa()) : [];
|
4363
|
+
}), W = _n((U) => {
|
4364
|
+
const _ = O(U);
|
4365
|
+
return C.current.map((j) => y && j === "reference" ? y : H && j === "floating" ? H : _).filter(Boolean).flat();
|
4366
4366
|
});
|
4367
|
-
|
4367
|
+
N.useEffect(() => {
|
4368
4368
|
if (r || !l) return;
|
4369
|
-
function
|
4369
|
+
function U(j) {
|
4370
4370
|
if (j.key === "Tab") {
|
4371
|
-
Pt(
|
4371
|
+
Pt(H, nr(Xt(H))) && O().length === 0 && !w && iu(j);
|
4372
4372
|
const Y = W(), ne = or(j);
|
4373
|
-
C.current[0] === "reference" && ne === y && (iu(j), j.shiftKey ? Qn(Y[Y.length - 1]) : Qn(Y[1])), C.current[1] === "floating" && ne ===
|
4373
|
+
C.current[0] === "reference" && ne === y && (iu(j), j.shiftKey ? Qn(Y[Y.length - 1]) : Qn(Y[1])), C.current[1] === "floating" && ne === H && j.shiftKey && (iu(j), Qn(Y[0]));
|
4374
4374
|
}
|
4375
4375
|
}
|
4376
|
-
const
|
4377
|
-
return
|
4378
|
-
|
4376
|
+
const _ = Xt(H);
|
4377
|
+
return _.addEventListener("keydown", U), () => {
|
4378
|
+
_.removeEventListener("keydown", U);
|
4379
4379
|
};
|
4380
|
-
}, [r, y,
|
4380
|
+
}, [r, y, H, l, C, w, O, W]), N.useEffect(() => {
|
4381
4381
|
if (r || !D) return;
|
4382
|
-
function
|
4383
|
-
const j = or(
|
4382
|
+
function U(_) {
|
4383
|
+
const j = or(_), ne = O().indexOf(j);
|
4384
4384
|
ne !== -1 && (S.current = ne);
|
4385
4385
|
}
|
4386
|
-
return D.addEventListener("focusin",
|
4387
|
-
D.removeEventListener("focusin",
|
4386
|
+
return D.addEventListener("focusin", U), () => {
|
4387
|
+
D.removeEventListener("focusin", U);
|
4388
4388
|
};
|
4389
|
-
}, [r, D, O]),
|
4389
|
+
}, [r, D, O]), N.useEffect(() => {
|
4390
4390
|
if (r || !f) return;
|
4391
|
-
function
|
4392
|
-
|
4393
|
-
|
4391
|
+
function U() {
|
4392
|
+
A.current = !0, setTimeout(() => {
|
4393
|
+
A.current = !1;
|
4394
4394
|
});
|
4395
4395
|
}
|
4396
|
-
function
|
4396
|
+
function _(j) {
|
4397
4397
|
const Y = j.relatedTarget;
|
4398
4398
|
queueMicrotask(() => {
|
4399
4399
|
const ne = !(Pt(y, Y) || Pt(D, Y) || Pt(Y, D) || Pt(V == null ? void 0 : V.portalNode, Y) || Y != null && Y.hasAttribute(Aa("focus-guard")) || E && (Da(E.nodesRef.current, m).find((fe) => {
|
@@ -4403,42 +4403,42 @@ function yy(e) {
|
|
4403
4403
|
var ce, z;
|
4404
4404
|
return ((ce = fe.context) == null ? void 0 : ce.elements.floating) === Y || ((z = fe.context) == null ? void 0 : z.elements.domReference) === Y;
|
4405
4405
|
})));
|
4406
|
-
if (s && ne && nr(Xt(
|
4407
|
-
ut(
|
4408
|
-
const fe = S.current, ce = O(), z = ce[fe] || ce[ce.length - 1] ||
|
4406
|
+
if (s && ne && nr(Xt(H)) === Xt(H).body) {
|
4407
|
+
ut(H) && (H == null || H.focus());
|
4408
|
+
const fe = S.current, ce = O(), z = ce[fe] || ce[ce.length - 1] || H;
|
4409
4409
|
ut(z) && z.focus();
|
4410
4410
|
}
|
4411
|
-
(w || !l) && Y && ne && !
|
4411
|
+
(w || !l) && Y && ne && !A.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
4412
4412
|
Y !== Bc() && (M.current = !0, h(!1, j));
|
4413
4413
|
});
|
4414
4414
|
}
|
4415
4415
|
if (D && ut(y))
|
4416
|
-
return y.addEventListener("focusout",
|
4417
|
-
y.removeEventListener("focusout",
|
4416
|
+
return y.addEventListener("focusout", _), y.addEventListener("pointerdown", U), D.addEventListener("focusout", _), () => {
|
4417
|
+
y.removeEventListener("focusout", _), y.removeEventListener("pointerdown", U), D.removeEventListener("focusout", _);
|
4418
4418
|
};
|
4419
|
-
}, [r, y, D,
|
4420
|
-
var
|
4419
|
+
}, [r, y, D, H, l, m, E, V, h, f, s, O, w]), N.useEffect(() => {
|
4420
|
+
var U;
|
4421
4421
|
if (r) return;
|
4422
|
-
const
|
4422
|
+
const _ = Array.from((V == null || (U = V.portalNode) == null ? void 0 : U.querySelectorAll("[" + Aa("portal") + "]")) || []);
|
4423
4423
|
if (D) {
|
4424
|
-
const j = [D, ...
|
4424
|
+
const j = [D, ..._, P.current, $.current, C.current.includes("reference") || w ? y : null].filter((ne) => ne != null), Y = l || w ? Rc(j, R, !R) : Rc(j);
|
4425
4425
|
return () => {
|
4426
4426
|
Y();
|
4427
4427
|
};
|
4428
4428
|
}
|
4429
4429
|
}, [r, y, D, l, C, V, w, R]), Et(() => {
|
4430
|
-
if (r || !ut(
|
4431
|
-
const
|
4430
|
+
if (r || !ut(H)) return;
|
4431
|
+
const U = Xt(H), _ = nr(U);
|
4432
4432
|
queueMicrotask(() => {
|
4433
|
-
const j = W(
|
4433
|
+
const j = W(H), Y = B.current, ne = (typeof Y == "number" ? j[Y] : Y.current) || H, fe = Pt(H, _);
|
4434
4434
|
!x && !fe && g && Qn(ne, {
|
4435
|
-
preventScroll: ne ===
|
4435
|
+
preventScroll: ne === H
|
4436
4436
|
});
|
4437
4437
|
});
|
4438
|
-
}, [r, g,
|
4439
|
-
if (r || !
|
4440
|
-
let
|
4441
|
-
const
|
4438
|
+
}, [r, g, H, x, W, B]), Et(() => {
|
4439
|
+
if (r || !H) return;
|
4440
|
+
let U = !1;
|
4441
|
+
const _ = Xt(H), j = nr(_);
|
4442
4442
|
let ne = p.current.openEvent;
|
4443
4443
|
lu(j);
|
4444
4444
|
function fe(ce) {
|
@@ -4448,11 +4448,11 @@ function yy(e) {
|
|
4448
4448
|
event: We,
|
4449
4449
|
nested: je
|
4450
4450
|
} = ce;
|
4451
|
-
z && (ne = We), qe === "escape-key" && d.domReference.current && lu(d.domReference.current), qe === "hover" && We.type === "mouseleave" && (M.current = !0), qe === "outside-press" && (je ? (M.current = !1,
|
4451
|
+
z && (ne = We), qe === "escape-key" && d.domReference.current && lu(d.domReference.current), qe === "hover" && We.type === "mouseleave" && (M.current = !0), qe === "outside-press" && (je ? (M.current = !1, U = !0) : M.current = !(G1(We) || H1(We)));
|
4452
4452
|
}
|
4453
4453
|
return v.on("openchange", fe), () => {
|
4454
4454
|
v.off("openchange", fe);
|
4455
|
-
const ce = nr(
|
4455
|
+
const ce = nr(_), z = Pt(D, ce) || E && Da(E.nodesRef.current, m).some((je) => {
|
4456
4456
|
var Xe;
|
4457
4457
|
return Pt((Xe = je.context) == null ? void 0 : Xe.elements.floating, ce);
|
4458
4458
|
});
|
@@ -4462,16 +4462,16 @@ function yy(e) {
|
|
4462
4462
|
T.current && !M.current && ut(We) && // If the focus moved somewhere else after mount, avoid returning focus
|
4463
4463
|
// since it likely entered a different element which should be
|
4464
4464
|
// respected: https://github.com/floating-ui/floating-ui/issues/2607
|
4465
|
-
(!(We !== ce && ce !==
|
4465
|
+
(!(We !== ce && ce !== _.body) || z) && Qn(We, {
|
4466
4466
|
// When dismissing nested floating elements, by the time the rAF has
|
4467
4467
|
// executed, the menus will all have been unmounted. When they try
|
4468
4468
|
// to get focused, the calls get ignored — leaving the root
|
4469
4469
|
// reference focused as desired.
|
4470
4470
|
cancelPrevious: !1,
|
4471
|
-
preventScroll:
|
4471
|
+
preventScroll: U
|
4472
4472
|
});
|
4473
4473
|
};
|
4474
|
-
}, [r, D,
|
4474
|
+
}, [r, D, H, T, p, d, v, E, m]), Et(() => {
|
4475
4475
|
if (!r && V)
|
4476
4476
|
return V.setFocusManagerState({
|
4477
4477
|
modal: l,
|
@@ -4483,57 +4483,57 @@ function yy(e) {
|
|
4483
4483
|
V.setFocusManagerState(null);
|
4484
4484
|
};
|
4485
4485
|
}, [r, V, l, g, h, d, f]), Et(() => {
|
4486
|
-
if (r || !
|
4487
|
-
const
|
4488
|
-
const j =
|
4489
|
-
fe !== -1 && (S.current = fe), C.current.includes("floating") || ne !== d.domReference.current && Y.length === 0 ? j !== "0" &&
|
4486
|
+
if (r || !H || typeof MutationObserver != "function" || x) return;
|
4487
|
+
const U = () => {
|
4488
|
+
const j = H.getAttribute("tabindex"), Y = O(), ne = nr(Xt(D)), fe = Y.indexOf(ne);
|
4489
|
+
fe !== -1 && (S.current = fe), C.current.includes("floating") || ne !== d.domReference.current && Y.length === 0 ? j !== "0" && H.setAttribute("tabindex", "0") : j !== "-1" && H.setAttribute("tabindex", "-1");
|
4490
4490
|
};
|
4491
|
-
|
4492
|
-
const
|
4493
|
-
return
|
4491
|
+
U();
|
4492
|
+
const _ = new MutationObserver(U);
|
4493
|
+
return _.observe(H, {
|
4494
4494
|
childList: !0,
|
4495
4495
|
subtree: !0,
|
4496
4496
|
attributes: !0
|
4497
4497
|
}), () => {
|
4498
|
-
|
4498
|
+
_.disconnect();
|
4499
4499
|
};
|
4500
|
-
}, [r, D,
|
4501
|
-
function ie(
|
4502
|
-
return r || !c || !l ? null : /* @__PURE__ */
|
4503
|
-
ref:
|
4504
|
-
onClick: (
|
4500
|
+
}, [r, D, H, d, C, O, x]);
|
4501
|
+
function ie(U) {
|
4502
|
+
return r || !c || !l ? null : /* @__PURE__ */ N.createElement(vy, {
|
4503
|
+
ref: U === "start" ? P : $,
|
4504
|
+
onClick: (_) => h(!1, _.nativeEvent)
|
4505
4505
|
}, typeof c == "string" ? c : "Dismiss");
|
4506
4506
|
}
|
4507
|
-
const
|
4508
|
-
return /* @__PURE__ */
|
4507
|
+
const Se = !r && R && (l ? !w : !0) && (L || l);
|
4508
|
+
return /* @__PURE__ */ N.createElement(N.Fragment, null, Se && /* @__PURE__ */ N.createElement(ii, {
|
4509
4509
|
"data-type": "inside",
|
4510
4510
|
ref: V == null ? void 0 : V.beforeInsideRef,
|
4511
|
-
onFocus: (
|
4511
|
+
onFocus: (U) => {
|
4512
4512
|
if (l) {
|
4513
4513
|
const j = W();
|
4514
4514
|
Qn(a[0] === "reference" ? j[0] : j[j.length - 1]);
|
4515
4515
|
} else if (V != null && V.preserveTabOrder && V.portalNode)
|
4516
|
-
if (M.current = !1, wa(
|
4516
|
+
if (M.current = !1, wa(U, V.portalNode)) {
|
4517
4517
|
const j = lg() || y;
|
4518
4518
|
j == null || j.focus();
|
4519
4519
|
} else {
|
4520
|
-
var
|
4521
|
-
(
|
4520
|
+
var _;
|
4521
|
+
(_ = V.beforeOutsideRef.current) == null || _.focus();
|
4522
4522
|
}
|
4523
4523
|
}
|
4524
|
-
}), !w && ie("start"), n, ie("end"),
|
4524
|
+
}), !w && ie("start"), n, ie("end"), Se && /* @__PURE__ */ N.createElement(ii, {
|
4525
4525
|
"data-type": "inside",
|
4526
4526
|
ref: V == null ? void 0 : V.afterInsideRef,
|
4527
|
-
onFocus: (
|
4527
|
+
onFocus: (U) => {
|
4528
4528
|
if (l)
|
4529
4529
|
Qn(W()[0]);
|
4530
4530
|
else if (V != null && V.preserveTabOrder && V.portalNode)
|
4531
|
-
if (f && (M.current = !0), wa(
|
4531
|
+
if (f && (M.current = !0), wa(U, V.portalNode)) {
|
4532
4532
|
const j = cg() || y;
|
4533
4533
|
j == null || j.focus();
|
4534
4534
|
} else {
|
4535
|
-
var
|
4536
|
-
(
|
4535
|
+
var _;
|
4536
|
+
(_ = V.afterOutsideRef.current) == null || _.focus();
|
4537
4537
|
}
|
4538
4538
|
}
|
4539
4539
|
}));
|
@@ -4559,7 +4559,7 @@ function xy(e, t) {
|
|
4559
4559
|
toggle: s = !0,
|
4560
4560
|
ignoreMouse: l = !1,
|
4561
4561
|
keyboardHandlers: c = !0
|
4562
|
-
} = t, f =
|
4562
|
+
} = t, f = N.useRef(), g = N.useRef(!1), d = N.useMemo(() => ({
|
4563
4563
|
onPointerDown(m) {
|
4564
4564
|
f.current = m.pointerType;
|
4565
4565
|
},
|
@@ -4582,7 +4582,7 @@ function xy(e, t) {
|
|
4582
4582
|
m.defaultPrevented || !c || Tc(m) || Vc(o) || m.key === " " && g.current && (g.current = !1, r(!(n && s), m.nativeEvent, "click"));
|
4583
4583
|
}
|
4584
4584
|
}), [a, o, u, l, c, r, n, s]);
|
4585
|
-
return
|
4585
|
+
return N.useMemo(() => i ? {
|
4586
4586
|
reference: d
|
4587
4587
|
} : {}, [i, d]);
|
4588
4588
|
}
|
@@ -4618,7 +4618,7 @@ function wy(e, t) {
|
|
4618
4618
|
ancestorScroll: g = !1,
|
4619
4619
|
bubbles: d,
|
4620
4620
|
capture: m
|
4621
|
-
} = t, h = Ys(), v = _n(typeof s == "function" ? s : () => !1), p = typeof s == "function" ? v : s, b =
|
4621
|
+
} = t, h = Ys(), v = _n(typeof s == "function" ? s : () => !1), p = typeof s == "function" ? v : s, b = N.useRef(!1), y = N.useRef(!1), {
|
4622
4622
|
escapeKey: D,
|
4623
4623
|
outsidePress: x
|
4624
4624
|
} = kc(d), {
|
@@ -4628,12 +4628,12 @@ function wy(e, t) {
|
|
4628
4628
|
var M;
|
4629
4629
|
if (!n || !i || !u || $.key !== "Escape")
|
4630
4630
|
return;
|
4631
|
-
const
|
4631
|
+
const A = (M = o.current.floatingContext) == null ? void 0 : M.nodeId, S = h ? Da(h.nodesRef.current, A) : [];
|
4632
4632
|
if (!D && ($.stopPropagation(), S.length > 0)) {
|
4633
4633
|
let L = !0;
|
4634
|
-
if (S.forEach((
|
4635
|
-
var
|
4636
|
-
if ((
|
4634
|
+
if (S.forEach((G) => {
|
4635
|
+
var H;
|
4636
|
+
if ((H = G.context) != null && H.open && !G.context.dataRef.current.__escapeKeyBubbles) {
|
4637
4637
|
L = !1;
|
4638
4638
|
return;
|
4639
4639
|
}
|
@@ -4643,65 +4643,65 @@ function wy(e, t) {
|
|
4643
4643
|
r(!1, z1($) ? $.nativeEvent : $, "escape-key");
|
4644
4644
|
}), B = _n(($) => {
|
4645
4645
|
var M;
|
4646
|
-
const
|
4646
|
+
const A = () => {
|
4647
4647
|
var S;
|
4648
|
-
C($), (S = or($)) == null || S.removeEventListener("keydown",
|
4648
|
+
C($), (S = or($)) == null || S.removeEventListener("keydown", A);
|
4649
4649
|
};
|
4650
|
-
(M = or($)) == null || M.addEventListener("keydown",
|
4650
|
+
(M = or($)) == null || M.addEventListener("keydown", A);
|
4651
4651
|
}), T = _n(($) => {
|
4652
4652
|
var M;
|
4653
|
-
const
|
4653
|
+
const A = b.current;
|
4654
4654
|
b.current = !1;
|
4655
4655
|
const S = y.current;
|
4656
|
-
if (y.current = !1, l === "click" && S ||
|
4656
|
+
if (y.current = !1, l === "click" && S || A || typeof p == "function" && !p($))
|
4657
4657
|
return;
|
4658
|
-
const L = or($),
|
4658
|
+
const L = or($), G = "[" + Aa("inert") + "]", H = Xt(a.floating).querySelectorAll(G);
|
4659
4659
|
let O = Ue(L) ? L : null;
|
4660
4660
|
for (; O && !Hn(O); ) {
|
4661
|
-
const
|
4662
|
-
if (Hn(
|
4661
|
+
const U = En(O);
|
4662
|
+
if (Hn(U) || !Ue(U))
|
4663
4663
|
break;
|
4664
|
-
O =
|
4664
|
+
O = U;
|
4665
4665
|
}
|
4666
|
-
if (
|
4666
|
+
if (H.length && Ue(L) && !Z1(L) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
4667
4667
|
!Pt(L, a.floating) && // If the target root element contains none of the markers, then the
|
4668
4668
|
// element was injected after the floating element rendered.
|
4669
|
-
Array.from(
|
4669
|
+
Array.from(H).every((U) => !Pt(O, U)))
|
4670
4670
|
return;
|
4671
|
-
if (ut(L) &&
|
4672
|
-
const
|
4673
|
-
let j =
|
4674
|
-
if (
|
4671
|
+
if (ut(L) && P) {
|
4672
|
+
const U = L.clientWidth > 0 && L.scrollWidth > L.clientWidth, _ = L.clientHeight > 0 && L.scrollHeight > L.clientHeight;
|
4673
|
+
let j = _ && $.offsetX > L.clientWidth;
|
4674
|
+
if (_ && zt(L).direction === "rtl" && (j = $.offsetX <= L.offsetWidth - L.clientWidth), j || U && $.offsetY > L.clientHeight)
|
4675
4675
|
return;
|
4676
4676
|
}
|
4677
|
-
const W = (M = o.current.floatingContext) == null ? void 0 : M.nodeId, ie = h && Da(h.nodesRef.current, W).some((
|
4678
|
-
var
|
4679
|
-
return ou($, (
|
4677
|
+
const W = (M = o.current.floatingContext) == null ? void 0 : M.nodeId, ie = h && Da(h.nodesRef.current, W).some((U) => {
|
4678
|
+
var _;
|
4679
|
+
return ou($, (_ = U.context) == null ? void 0 : _.elements.floating);
|
4680
4680
|
});
|
4681
4681
|
if (ou($, a.floating) || ou($, a.domReference) || ie)
|
4682
4682
|
return;
|
4683
|
-
const
|
4684
|
-
if (
|
4685
|
-
let
|
4686
|
-
if (
|
4683
|
+
const Se = h ? Da(h.nodesRef.current, W) : [];
|
4684
|
+
if (Se.length > 0) {
|
4685
|
+
let U = !0;
|
4686
|
+
if (Se.forEach((_) => {
|
4687
4687
|
var j;
|
4688
|
-
if ((j =
|
4689
|
-
|
4688
|
+
if ((j = _.context) != null && j.open && !_.context.dataRef.current.__outsidePressBubbles) {
|
4689
|
+
U = !1;
|
4690
4690
|
return;
|
4691
4691
|
}
|
4692
|
-
}), !
|
4692
|
+
}), !U)
|
4693
4693
|
return;
|
4694
4694
|
}
|
4695
4695
|
r(!1, $, "outside-press");
|
4696
4696
|
}), E = _n(($) => {
|
4697
4697
|
var M;
|
4698
|
-
const
|
4698
|
+
const A = () => {
|
4699
4699
|
var S;
|
4700
|
-
T($), (S = or($)) == null || S.removeEventListener(l,
|
4700
|
+
T($), (S = or($)) == null || S.removeEventListener(l, A);
|
4701
4701
|
};
|
4702
|
-
(M = or($)) == null || M.addEventListener(l,
|
4702
|
+
(M = or($)) == null || M.addEventListener(l, A);
|
4703
4703
|
});
|
4704
|
-
|
4704
|
+
N.useEffect(() => {
|
4705
4705
|
if (!n || !i)
|
4706
4706
|
return;
|
4707
4707
|
o.current.__escapeKeyBubbles = D, o.current.__outsidePressBubbles = x;
|
@@ -4710,28 +4710,28 @@ function wy(e, t) {
|
|
4710
4710
|
}
|
4711
4711
|
const M = Xt(a.floating);
|
4712
4712
|
u && M.addEventListener("keydown", w ? B : C, w), p && M.addEventListener(l, R ? E : T, R);
|
4713
|
-
let
|
4714
|
-
return g && (Ue(a.domReference) && (
|
4713
|
+
let A = [];
|
4714
|
+
return g && (Ue(a.domReference) && (A = Gn(a.domReference)), Ue(a.floating) && (A = A.concat(Gn(a.floating))), !Ue(a.reference) && a.reference && a.reference.contextElement && (A = A.concat(Gn(a.reference.contextElement)))), A = A.filter((S) => {
|
4715
4715
|
var L;
|
4716
4716
|
return S !== ((L = M.defaultView) == null ? void 0 : L.visualViewport);
|
4717
|
-
}),
|
4717
|
+
}), A.forEach((S) => {
|
4718
4718
|
S.addEventListener("scroll", $, {
|
4719
4719
|
passive: !0
|
4720
4720
|
});
|
4721
4721
|
}), () => {
|
4722
|
-
u && M.removeEventListener("keydown", w ? B : C, w), p && M.removeEventListener(l, R ? E : T, R),
|
4722
|
+
u && M.removeEventListener("keydown", w ? B : C, w), p && M.removeEventListener(l, R ? E : T, R), A.forEach((S) => {
|
4723
4723
|
S.removeEventListener("scroll", $);
|
4724
4724
|
});
|
4725
4725
|
};
|
4726
|
-
}, [o, a, u, p, l, n, r, g, i, D, x, C, w, B, T, R, E]),
|
4726
|
+
}, [o, a, u, p, l, n, r, g, i, D, x, C, w, B, T, R, E]), N.useEffect(() => {
|
4727
4727
|
b.current = !1;
|
4728
4728
|
}, [p, l]);
|
4729
|
-
const V =
|
4729
|
+
const V = N.useMemo(() => ({
|
4730
4730
|
onKeyDown: C,
|
4731
4731
|
[Cy[f]]: ($) => {
|
4732
4732
|
c && r(!1, $.nativeEvent, "reference-press");
|
4733
4733
|
}
|
4734
|
-
}), [C, r, c, f]),
|
4734
|
+
}), [C, r, c, f]), P = N.useMemo(() => ({
|
4735
4735
|
onKeyDown: C,
|
4736
4736
|
onMouseDown() {
|
4737
4737
|
y.current = !0;
|
@@ -4743,36 +4743,36 @@ function wy(e, t) {
|
|
4743
4743
|
b.current = !0;
|
4744
4744
|
}
|
4745
4745
|
}), [C, l]);
|
4746
|
-
return
|
4746
|
+
return N.useMemo(() => i ? {
|
4747
4747
|
reference: V,
|
4748
|
-
floating:
|
4749
|
-
} : {}, [i, V,
|
4748
|
+
floating: P
|
4749
|
+
} : {}, [i, V, P]);
|
4750
4750
|
}
|
4751
4751
|
function Iy(e) {
|
4752
4752
|
const {
|
4753
4753
|
open: t = !1,
|
4754
4754
|
onOpenChange: n,
|
4755
4755
|
elements: r
|
4756
|
-
} = e, a = Xs(), o =
|
4756
|
+
} = e, a = Xs(), o = N.useRef({}), [i] = N.useState(() => iy()), u = ig() != null;
|
4757
4757
|
if (process.env.NODE_ENV !== "production") {
|
4758
4758
|
const d = r.reference;
|
4759
4759
|
d && !Ue(d) && oy("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
4760
4760
|
}
|
4761
|
-
const [s, l] =
|
4761
|
+
const [s, l] = N.useState(r.reference), c = _n((d, m, h) => {
|
4762
4762
|
o.current.openEvent = d ? m : void 0, i.emit("openchange", {
|
4763
4763
|
open: d,
|
4764
4764
|
event: m,
|
4765
4765
|
reason: h,
|
4766
4766
|
nested: u
|
4767
4767
|
}), n == null || n(d, m, h);
|
4768
|
-
}), f =
|
4768
|
+
}), f = N.useMemo(() => ({
|
4769
4769
|
setPositionReference: l
|
4770
|
-
}), []), g =
|
4770
|
+
}), []), g = N.useMemo(() => ({
|
4771
4771
|
reference: s || r.reference || null,
|
4772
4772
|
floating: r.floating || null,
|
4773
4773
|
domReference: r.reference
|
4774
4774
|
}), [s, r.reference, r.floating]);
|
4775
|
-
return
|
4775
|
+
return N.useMemo(() => ({
|
4776
4776
|
dataRef: o,
|
4777
4777
|
open: t,
|
4778
4778
|
onOpenChange: c,
|
@@ -4793,7 +4793,7 @@ function Ey(e) {
|
|
4793
4793
|
floating: null,
|
4794
4794
|
...e.elements
|
4795
4795
|
}
|
4796
|
-
}), r = e.rootContext || n, a = r.elements, [o, i] =
|
4796
|
+
}), r = e.rootContext || n, a = r.elements, [o, i] = N.useState(null), [u, s] = N.useState(null), c = (a == null ? void 0 : a.reference) || o, f = N.useRef(null), g = Ys();
|
4797
4797
|
Et(() => {
|
4798
4798
|
c && (f.current = c);
|
4799
4799
|
}, [c]);
|
@@ -4805,26 +4805,26 @@ function Ey(e) {
|
|
4805
4805
|
reference: u
|
4806
4806
|
}
|
4807
4807
|
}
|
4808
|
-
}), m =
|
4808
|
+
}), m = N.useCallback((y) => {
|
4809
4809
|
const D = Ue(y) ? {
|
4810
4810
|
getBoundingClientRect: () => y.getBoundingClientRect(),
|
4811
4811
|
contextElement: y
|
4812
4812
|
} : y;
|
4813
4813
|
s(D), d.refs.setReference(D);
|
4814
|
-
}, [d.refs]), h =
|
4814
|
+
}, [d.refs]), h = N.useCallback((y) => {
|
4815
4815
|
(Ue(y) || y === null) && (f.current = y, i(y)), (Ue(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
4816
4816
|
// `null` to support `positionReference` + an unstable `reference`
|
4817
4817
|
// callback ref.
|
4818
4818
|
y !== null && !Ue(y)) && d.refs.setReference(y);
|
4819
|
-
}, [d.refs]), v =
|
4819
|
+
}, [d.refs]), v = N.useMemo(() => ({
|
4820
4820
|
...d.refs,
|
4821
4821
|
setReference: h,
|
4822
4822
|
setPositionReference: m,
|
4823
4823
|
domReference: f
|
4824
|
-
}), [d.refs, h, m]), p =
|
4824
|
+
}), [d.refs, h, m]), p = N.useMemo(() => ({
|
4825
4825
|
...d.elements,
|
4826
4826
|
domReference: c
|
4827
|
-
}), [d.elements, c]), b =
|
4827
|
+
}), [d.elements, c]), b = N.useMemo(() => ({
|
4828
4828
|
...d,
|
4829
4829
|
...r,
|
4830
4830
|
refs: v,
|
@@ -4835,7 +4835,7 @@ function Ey(e) {
|
|
4835
4835
|
r.dataRef.current.floatingContext = b;
|
4836
4836
|
const y = g == null ? void 0 : g.nodesRef.current.find((D) => D.id === t);
|
4837
4837
|
y && (y.context = b);
|
4838
|
-
}),
|
4838
|
+
}), N.useMemo(() => ({
|
4839
4839
|
...d,
|
4840
4840
|
context: b,
|
4841
4841
|
refs: v,
|
@@ -4881,20 +4881,20 @@ function cu(e, t, n) {
|
|
4881
4881
|
}
|
4882
4882
|
function Sy(e) {
|
4883
4883
|
e === void 0 && (e = []);
|
4884
|
-
const t = e.map((u) => u == null ? void 0 : u.reference), n = e.map((u) => u == null ? void 0 : u.floating), r = e.map((u) => u == null ? void 0 : u.item), a =
|
4884
|
+
const t = e.map((u) => u == null ? void 0 : u.reference), n = e.map((u) => u == null ? void 0 : u.floating), r = e.map((u) => u == null ? void 0 : u.item), a = N.useCallback(
|
4885
4885
|
(u) => cu(u, e, "reference"),
|
4886
4886
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4887
4887
|
t
|
4888
|
-
), o =
|
4888
|
+
), o = N.useCallback(
|
4889
4889
|
(u) => cu(u, e, "floating"),
|
4890
4890
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4891
4891
|
n
|
4892
|
-
), i =
|
4892
|
+
), i = N.useCallback(
|
4893
4893
|
(u) => cu(u, e, "item"),
|
4894
4894
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4895
4895
|
r
|
4896
4896
|
);
|
4897
|
-
return
|
4897
|
+
return N.useMemo(() => ({
|
4898
4898
|
getReferenceProps: a,
|
4899
4899
|
getFloatingProps: o,
|
4900
4900
|
getItemProps: i
|
@@ -4910,7 +4910,7 @@ function Ry(e, t) {
|
|
4910
4910
|
} = e, {
|
4911
4911
|
enabled: o = !0,
|
4912
4912
|
role: i = "dialog"
|
4913
|
-
} = t, u = (n = $y.get(i)) != null ? n : i, s = Xs(), c = ig() != null, f =
|
4913
|
+
} = t, u = (n = $y.get(i)) != null ? n : i, s = Xs(), c = ig() != null, f = N.useMemo(() => u === "tooltip" || i === "label" ? {
|
4914
4914
|
["aria-" + (i === "label" ? "labelledby" : "describedby")]: r ? a : void 0
|
4915
4915
|
} : {
|
4916
4916
|
"aria-expanded": r ? "true" : "false",
|
@@ -4931,7 +4931,7 @@ function Ry(e, t) {
|
|
4931
4931
|
...i === "combobox" && {
|
4932
4932
|
"aria-autocomplete": "list"
|
4933
4933
|
}
|
4934
|
-
}, [u, a, c, r, s, i]), g =
|
4934
|
+
}, [u, a, c, r, s, i]), g = N.useMemo(() => {
|
4935
4935
|
const m = {
|
4936
4936
|
id: a,
|
4937
4937
|
...u && {
|
@@ -4944,7 +4944,7 @@ function Ry(e, t) {
|
|
4944
4944
|
"aria-labelledby": s
|
4945
4945
|
}
|
4946
4946
|
};
|
4947
|
-
}, [u, a, s, i]), d =
|
4947
|
+
}, [u, a, s, i]), d = N.useCallback((m) => {
|
4948
4948
|
let {
|
4949
4949
|
active: h,
|
4950
4950
|
selected: v
|
@@ -4971,7 +4971,7 @@ function Ry(e, t) {
|
|
4971
4971
|
}
|
4972
4972
|
return {};
|
4973
4973
|
}, [a, i]);
|
4974
|
-
return
|
4974
|
+
return N.useMemo(() => o ? {
|
4975
4975
|
reference: f,
|
4976
4976
|
floating: g,
|
4977
4977
|
item: d
|
@@ -4982,8 +4982,8 @@ function Br(e, t) {
|
|
4982
4982
|
return typeof e == "function" ? e(t) : e;
|
4983
4983
|
}
|
4984
4984
|
function Fy(e, t) {
|
4985
|
-
const [n, r] =
|
4986
|
-
return e && !n && r(!0),
|
4985
|
+
const [n, r] = N.useState(e);
|
4986
|
+
return e && !n && r(!0), N.useEffect(() => {
|
4987
4987
|
if (!e && n) {
|
4988
4988
|
const a = setTimeout(() => r(!1), t);
|
4989
4989
|
return () => clearTimeout(a);
|
@@ -4999,7 +4999,7 @@ function Ay(e, t) {
|
|
4999
4999
|
}
|
5000
5000
|
} = e, {
|
5001
5001
|
duration: a = 250
|
5002
|
-
} = t, i = (typeof a == "number" ? a : a.close) || 0, [u, s] =
|
5002
|
+
} = t, i = (typeof a == "number" ? a : a.close) || 0, [u, s] = N.useState("unmounted"), l = Fy(n, i);
|
5003
5003
|
return !l && u === "close" && s("unmounted"), Et(() => {
|
5004
5004
|
if (r) {
|
5005
5005
|
if (n) {
|
@@ -5028,10 +5028,10 @@ function Py(e, t) {
|
|
5028
5028
|
close: a,
|
5029
5029
|
common: o,
|
5030
5030
|
duration: i = 250
|
5031
|
-
} = t, u = e.placement, s = u.split("-")[0], l =
|
5031
|
+
} = t, u = e.placement, s = u.split("-")[0], l = N.useMemo(() => ({
|
5032
5032
|
side: s,
|
5033
5033
|
placement: u
|
5034
|
-
}), [s, u]), c = typeof i == "number", f = (c ? i : i.open) || 0, g = (c ? i : i.close) || 0, [d, m] =
|
5034
|
+
}), [s, u]), c = typeof i == "number", f = (c ? i : i.open) || 0, g = (c ? i : i.close) || 0, [d, m] = N.useState(() => ({
|
5035
5035
|
...Br(o, l),
|
5036
5036
|
...Br(n, l)
|
5037
5037
|
})), {
|
@@ -5092,10 +5092,10 @@ const By = "_popover_7cinv_1", Ty = {
|
|
5092
5092
|
],
|
5093
5093
|
whileElementsMounted: rg,
|
5094
5094
|
...d
|
5095
|
-
}), D = xy(y), x = wy(y), w = Ry(y), { getReferenceProps: R, getFloatingProps: C } = Sy([D, x, w]), { styles: B, isMounted: T } = Py(y), E = (
|
5096
|
-
p.setReference(
|
5095
|
+
}), D = xy(y), x = wy(y), w = Ry(y), { getReferenceProps: R, getFloatingProps: C } = Sy([D, x, w]), { styles: B, isMounted: T } = Py(y), E = (P) => {
|
5096
|
+
p.setReference(P.currentTarget), v(($) => !$);
|
5097
5097
|
};
|
5098
|
-
|
5098
|
+
Ee(() => {
|
5099
5099
|
o && i ? E({ currentTarget: i }) : o || v(!1);
|
5100
5100
|
}, [o, i]), Pf(
|
5101
5101
|
t,
|
@@ -5108,8 +5108,8 @@ const By = "_popover_7cinv_1", Ty = {
|
|
5108
5108
|
[h]
|
5109
5109
|
);
|
5110
5110
|
const V = () => {
|
5111
|
-
let
|
5112
|
-
return f && (
|
5111
|
+
let P = { ...b, ...B, ...g };
|
5112
|
+
return f && (P = { ...P, width: f }), (c ?? c === 0) && (P = { ...P, zIndex: c }), P;
|
5113
5113
|
};
|
5114
5114
|
return /* @__PURE__ */ I.jsx(I.Fragment, { children: T && h && /* @__PURE__ */ I.jsx(by, { children: /* @__PURE__ */ I.jsx(yy, { context: y, modal: !1, children: /* @__PURE__ */ I.jsx(
|
5115
5115
|
"div",
|
@@ -7252,7 +7252,7 @@ function y3() {
|
|
7252
7252
|
* @license MIT
|
7253
7253
|
*/
|
7254
7254
|
function Ba(e, t) {
|
7255
|
-
return e ? x3(e) ? /* @__PURE__ */
|
7255
|
+
return e ? x3(e) ? /* @__PURE__ */ N.createElement(e, t) : e : null;
|
7256
7256
|
}
|
7257
7257
|
function x3(e) {
|
7258
7258
|
return C3(e) || typeof e == "function" || D3(e);
|
@@ -7275,9 +7275,9 @@ function w3(e) {
|
|
7275
7275
|
// noop
|
7276
7276
|
renderFallbackValue: null,
|
7277
7277
|
...e
|
7278
|
-
}, [n] =
|
7278
|
+
}, [n] = N.useState(() => ({
|
7279
7279
|
current: Hg(t)
|
7280
|
-
})), [r, a] =
|
7280
|
+
})), [r, a] = N.useState(() => n.current.initialState);
|
7281
7281
|
return n.current.setOptions((o) => ({
|
7282
7282
|
...o,
|
7283
7283
|
...e,
|
@@ -7425,7 +7425,7 @@ function Ae() {
|
|
7425
7425
|
}
|
7426
7426
|
};
|
7427
7427
|
}
|
7428
|
-
function
|
7428
|
+
function J(e) {
|
7429
7429
|
let t = e;
|
7430
7430
|
const n = Ae();
|
7431
7431
|
return (r, a) => {
|
@@ -7461,7 +7461,7 @@ function Vt(e) {
|
|
7461
7461
|
return Oi(Ae(), (t) => oe(e, t));
|
7462
7462
|
}
|
7463
7463
|
function vt(e, t) {
|
7464
|
-
return Oi(
|
7464
|
+
return Oi(J(t), (n) => oe(e, n));
|
7465
7465
|
}
|
7466
7466
|
function R3(...e) {
|
7467
7467
|
return (t) => e.reduceRight(I3, t);
|
@@ -7682,12 +7682,12 @@ const V3 = {
|
|
7682
7682
|
3: "error"
|
7683
7683
|
}, k3 = () => typeof globalThis > "u" ? window : globalThis, Un = Te(
|
7684
7684
|
() => {
|
7685
|
-
const e =
|
7685
|
+
const e = J(
|
7686
7686
|
3
|
7687
7687
|
/* ERROR */
|
7688
7688
|
);
|
7689
7689
|
return {
|
7690
|
-
log:
|
7690
|
+
log: J((n, r, a = 1) => {
|
7691
7691
|
var o;
|
7692
7692
|
const i = (o = k3().VIRTUOSO_LOG_LEVEL) != null ? o : bt(e);
|
7693
7693
|
a >= i && console[V3[a]](
|
@@ -7811,7 +7811,7 @@ function Ug(e, t, n, r = wr, a) {
|
|
7811
7811
|
}
|
7812
7812
|
const xt = Te(
|
7813
7813
|
() => {
|
7814
|
-
const e = Ae(), t = Ae(), n =
|
7814
|
+
const e = Ae(), t = Ae(), n = J(0), r = Ae(), a = J(0), o = Ae(), i = Ae(), u = J(0), s = J(0), l = J(0), c = J(0), f = Ae(), g = Ae(), d = J(!1);
|
7815
7815
|
return oe(
|
7816
7816
|
X(
|
7817
7817
|
e,
|
@@ -8009,7 +8009,7 @@ function O3(e, t, n, r) {
|
|
8009
8009
|
return e.slice(a, o + 1);
|
8010
8010
|
}
|
8011
8011
|
const al = Te(
|
8012
|
-
() => ({ recalcInProgress:
|
8012
|
+
() => ({ recalcInProgress: J(!1) }),
|
8013
8013
|
[],
|
8014
8014
|
{ singleton: !0 }
|
8015
8015
|
);
|
@@ -8149,7 +8149,7 @@ const U3 = {
|
|
8149
8149
|
offsetWidth: "width"
|
8150
8150
|
}, pn = Te(
|
8151
8151
|
([{ log: e }, { recalcInProgress: t }]) => {
|
8152
|
-
const n = Ae(), r = Ae(), a = vt(r, 0), o = Ae(), i = Ae(), u =
|
8152
|
+
const n = Ae(), r = Ae(), a = vt(r, 0), o = Ae(), i = Ae(), u = J(0), s = J([]), l = J(void 0), c = J(void 0), f = J((x, w) => qt(x, U3[w])), g = J(void 0), d = J(0), m = H3(), h = vt(
|
8153
8153
|
X(n, xe(s, e, d), cn(Z3, m), ze()),
|
8154
8154
|
m
|
8155
8155
|
), v = vt(
|
@@ -8259,31 +8259,31 @@ const U3 = {
|
|
8259
8259
|
const T = ka(w.sizeTree, 0);
|
8260
8260
|
let E = 0, V = 0;
|
8261
8261
|
for (; E < x; ) {
|
8262
|
-
const M = w.groupIndices[V],
|
8262
|
+
const M = w.groupIndices[V], A = w.groupIndices.length === V + 1 ? 1 / 0 : w.groupIndices[V + 1] - M - 1;
|
8263
8263
|
C.push({
|
8264
8264
|
startIndex: M,
|
8265
8265
|
endIndex: M,
|
8266
8266
|
size: T
|
8267
8267
|
}), C.push({
|
8268
8268
|
startIndex: M + 1,
|
8269
|
-
endIndex: M + 1 +
|
8269
|
+
endIndex: M + 1 + A - 1,
|
8270
8270
|
size: B
|
8271
|
-
}), V++, E +=
|
8271
|
+
}), V++, E += A + 1;
|
8272
8272
|
}
|
8273
|
-
const
|
8274
|
-
return E !== x &&
|
8275
|
-
(M, { k:
|
8273
|
+
const P = cr(w.sizeTree);
|
8274
|
+
return E !== x && P.shift(), P.reduce(
|
8275
|
+
(M, { k: A, v: S }) => {
|
8276
8276
|
let L = M.ranges;
|
8277
8277
|
return M.prevSize !== 0 && (L = [
|
8278
8278
|
...M.ranges,
|
8279
8279
|
{
|
8280
8280
|
startIndex: M.prevIndex,
|
8281
|
-
endIndex:
|
8281
|
+
endIndex: A + x - 1,
|
8282
8282
|
size: M.prevSize
|
8283
8283
|
}
|
8284
8284
|
]), {
|
8285
8285
|
ranges: L,
|
8286
|
-
prevIndex:
|
8286
|
+
prevIndex: A + x,
|
8287
8287
|
prevSize: S
|
8288
8288
|
};
|
8289
8289
|
},
|
@@ -8330,17 +8330,17 @@ const U3 = {
|
|
8330
8330
|
return w;
|
8331
8331
|
let B = zr();
|
8332
8332
|
const T = bt(v);
|
8333
|
-
let E = 0, V = 0,
|
8333
|
+
let E = 0, V = 0, P = 0;
|
8334
8334
|
for (; E < -x; ) {
|
8335
|
-
|
8336
|
-
const M = T[V + 1] -
|
8335
|
+
P = T[V];
|
8336
|
+
const M = T[V + 1] - P - 1;
|
8337
8337
|
V++, E += M + 1;
|
8338
8338
|
}
|
8339
|
-
if (B = cr(w.sizeTree).reduce((M, { k:
|
8340
|
-
const M = ka(w.sizeTree,
|
8339
|
+
if (B = cr(w.sizeTree).reduce((M, { k: A, v: S }) => Bt(M, Math.max(0, A + x), S), B), E !== -x) {
|
8340
|
+
const M = ka(w.sizeTree, P);
|
8341
8341
|
B = Bt(B, 0, M);
|
8342
|
-
const
|
8343
|
-
B = Bt(B, 1,
|
8342
|
+
const A = en(w.sizeTree, -x + 1)[1];
|
8343
|
+
B = Bt(B, 1, A);
|
8344
8344
|
}
|
8345
8345
|
return {
|
8346
8346
|
...w,
|
@@ -8402,7 +8402,7 @@ const ao = Te(
|
|
8402
8402
|
},
|
8403
8403
|
{ log: g }
|
8404
8404
|
]) => {
|
8405
|
-
const d = Ae(), m = Ae(), h =
|
8405
|
+
const d = Ae(), m = Ae(), h = J(0);
|
8406
8406
|
let v = null, p = null, b = null;
|
8407
8407
|
function y() {
|
8408
8408
|
v && (v(), v = null), b && (b(), b = null), p && (clearTimeout(p), p = null), ve(a, !1);
|
@@ -8416,19 +8416,19 @@ const ao = Te(
|
|
8416
8416
|
([
|
8417
8417
|
[D, x, w, R, C, B, T, E],
|
8418
8418
|
V,
|
8419
|
-
|
8419
|
+
P,
|
8420
8420
|
$
|
8421
8421
|
]) => {
|
8422
|
-
const M = am(D), { align:
|
8423
|
-
let O = _a(
|
8424
|
-
|
8422
|
+
const M = am(D), { align: A, behavior: S, offset: L } = M, G = R - 1, H = nm(M, x, G);
|
8423
|
+
let O = _a(H, x.offsetTree, V) + B;
|
8424
|
+
A === "end" ? (O += P + en(x.sizeTree, H)[1] - w + $, H === G && (O += T)) : A === "center" ? O += (P + en(x.sizeTree, H)[1] - w + $) / 2 : O -= C, L && (O += L);
|
8425
8425
|
const W = (ie) => {
|
8426
8426
|
y(), ie ? (E("retrying to scroll to", { location: D }, kt.DEBUG), ve(d, D)) : (ve(m, !0), E("list did not change, scroll successful", {}, kt.DEBUG));
|
8427
8427
|
};
|
8428
8428
|
if (y(), S === "smooth") {
|
8429
8429
|
let ie = !1;
|
8430
|
-
b = Le(n, (
|
8431
|
-
ie = ie ||
|
8430
|
+
b = Le(n, (Se) => {
|
8431
|
+
ie = ie || Se;
|
8432
8432
|
}), v = fn(u, () => {
|
8433
8433
|
W(ie);
|
8434
8434
|
});
|
@@ -8436,7 +8436,7 @@ const ao = Te(
|
|
8436
8436
|
v = fn(X(n, K3(150)), W);
|
8437
8437
|
return p = setTimeout(() => {
|
8438
8438
|
y();
|
8439
|
-
}, 1200), ve(a, !0), E("scrolling from index to", { index:
|
8439
|
+
}, 1200), ve(a, !0), E("scrolling from index to", { index: H, top: O, behavior: S }, kt.DEBUG), { top: O, behavior: S };
|
8440
8440
|
}
|
8441
8441
|
)
|
8442
8442
|
),
|
@@ -8470,7 +8470,7 @@ const Ma = "up", Ia = "down", Q3 = "none", q3 = {
|
|
8470
8470
|
scrollHeight: 0
|
8471
8471
|
}
|
8472
8472
|
}, ex = 0, oo = Te(([{ scrollContainerState: e, scrollTop: t, viewportHeight: n, headerHeight: r, footerHeight: a, scrollBy: o }]) => {
|
8473
|
-
const i =
|
8473
|
+
const i = J(!1), u = J(!0), s = Ae(), l = Ae(), c = J(4), f = J(ex), g = vt(
|
8474
8474
|
X(
|
8475
8475
|
Wc(X(pe(t), qr(1), on(!0)), X(pe(t), qr(1), on(!1), Hc(100))),
|
8476
8476
|
ze()
|
@@ -8498,12 +8498,12 @@ const Ma = "up", Ia = "down", Q3 = "none", q3 = {
|
|
8498
8498
|
scrollHeight: D
|
8499
8499
|
};
|
8500
8500
|
if (B) {
|
8501
|
-
let V,
|
8502
|
-
return y > b.state.scrollTop ? (V = "SCROLLED_DOWN",
|
8501
|
+
let V, P;
|
8502
|
+
return y > b.state.scrollTop ? (V = "SCROLLED_DOWN", P = b.state.scrollTop - y) : (V = "SIZE_DECREASED", P = b.state.scrollTop - y || b.scrollTopDelta), {
|
8503
8503
|
atBottom: !0,
|
8504
8504
|
state: T,
|
8505
8505
|
atBottomBecause: V,
|
8506
|
-
scrollTopDelta:
|
8506
|
+
scrollTopDelta: P
|
8507
8507
|
};
|
8508
8508
|
}
|
8509
8509
|
let E;
|
@@ -8556,7 +8556,7 @@ const Ma = "up", Ia = "down", Q3 = "none", q3 = {
|
|
8556
8556
|
),
|
8557
8557
|
i
|
8558
8558
|
), oe(X(i, Nn(50)), s);
|
8559
|
-
const v =
|
8559
|
+
const v = J(Ia);
|
8560
8560
|
oe(
|
8561
8561
|
X(
|
8562
8562
|
e,
|
@@ -8570,7 +8570,7 @@ const Ma = "up", Ia = "down", Q3 = "none", q3 = {
|
|
8570
8570
|
),
|
8571
8571
|
v
|
8572
8572
|
), oe(X(e, Nn(50), on(Q3)), v);
|
8573
|
-
const p =
|
8573
|
+
const p = J(0);
|
8574
8574
|
return oe(
|
8575
8575
|
X(
|
8576
8576
|
g,
|
@@ -8604,7 +8604,7 @@ const Ma = "up", Ia = "down", Q3 = "none", q3 = {
|
|
8604
8604
|
};
|
8605
8605
|
}, Ze(xt)), Jn = Te(
|
8606
8606
|
([{ log: e }]) => {
|
8607
|
-
const t =
|
8607
|
+
const t = J(!1), n = Vt(
|
8608
8608
|
X(
|
8609
8609
|
t,
|
8610
8610
|
me((r) => r),
|
@@ -8627,7 +8627,7 @@ function ul(e, t) {
|
|
8627
8627
|
}
|
8628
8628
|
const io = Te(
|
8629
8629
|
([{ sizes: e, listRefresh: t, defaultItemSize: n }, { scrollTop: r }, { scrollToIndex: a, scrollTargetReached: o }, { didMount: i }]) => {
|
8630
|
-
const u =
|
8630
|
+
const u = J(!0), s = J(0), l = J(!0);
|
8631
8631
|
return oe(
|
8632
8632
|
X(
|
8633
8633
|
i,
|
@@ -8682,7 +8682,7 @@ const tx = (e, t) => typeof e == "function" ? Zc(e(t)) : t && Zc(e), nx = Te(
|
|
8682
8682
|
{ log: s },
|
8683
8683
|
{ scrollingInProgress: l }
|
8684
8684
|
]) => {
|
8685
|
-
const c =
|
8685
|
+
const c = J(!1), f = Ae();
|
8686
8686
|
let g = null;
|
8687
8687
|
function d(h) {
|
8688
8688
|
ve(a, {
|
@@ -8784,7 +8784,7 @@ function Uc(e, t) {
|
|
8784
8784
|
}
|
8785
8785
|
const sl = Te(
|
8786
8786
|
([{ scrollTop: e, viewportHeight: t, deviation: n, headerHeight: r, fixedHeaderHeight: a }]) => {
|
8787
|
-
const o = Ae(), i =
|
8787
|
+
const o = Ae(), i = J(0), u = J(0), s = J(0), l = vt(
|
8788
8788
|
X(
|
8789
8789
|
st(
|
8790
8790
|
pe(e),
|
@@ -8931,7 +8931,7 @@ const Ir = Te(
|
|
8931
8931
|
{ didMount: d },
|
8932
8932
|
{ recalcInProgress: m }
|
8933
8933
|
]) => {
|
8934
|
-
const h =
|
8934
|
+
const h = J([]), v = J(0), p = Ae();
|
8935
8935
|
oe(o.topItemsIndexes, h);
|
8936
8936
|
const b = vt(
|
8937
8937
|
X(
|
@@ -8962,56 +8962,56 @@ const Ir = Te(
|
|
8962
8962
|
T,
|
8963
8963
|
E,
|
8964
8964
|
V,
|
8965
|
-
|
8965
|
+
P,
|
8966
8966
|
$,
|
8967
8967
|
M
|
8968
8968
|
]) => {
|
8969
|
-
const
|
8969
|
+
const A = B, { sizeTree: S, offsetTree: L } = A, G = bt(v);
|
8970
8970
|
if (C === 0)
|
8971
8971
|
return { ...bu, totalCount: C };
|
8972
8972
|
if (w === 0 && R === 0)
|
8973
|
-
return
|
8973
|
+
return G === 0 ? { ...bu, totalCount: C } : um(G, T, B, P, $, M || []);
|
8974
8974
|
if (He(S))
|
8975
|
-
return
|
8976
|
-
ax(ul(T, C),
|
8975
|
+
return G > 0 ? null : Oo(
|
8976
|
+
ax(ul(T, C), A, M),
|
8977
8977
|
[],
|
8978
8978
|
C,
|
8979
8979
|
$,
|
8980
|
-
|
8981
|
-
|
8980
|
+
A,
|
8981
|
+
P
|
8982
8982
|
);
|
8983
|
-
const
|
8983
|
+
const H = [];
|
8984
8984
|
if (V.length > 0) {
|
8985
|
-
const
|
8985
|
+
const U = V[0], _ = V[V.length - 1];
|
8986
8986
|
let j = 0;
|
8987
|
-
for (const Y of Li(S,
|
8988
|
-
const ne = Y.value, fe = Math.max(Y.start,
|
8987
|
+
for (const Y of Li(S, U, _)) {
|
8988
|
+
const ne = Y.value, fe = Math.max(Y.start, U), ce = Math.min(Y.end, _);
|
8989
8989
|
for (let z = fe; z <= ce; z++)
|
8990
|
-
|
8990
|
+
H.push({ index: z, size: ne, offset: j, data: M && M[z] }), j += ne;
|
8991
8991
|
}
|
8992
8992
|
}
|
8993
8993
|
if (!E)
|
8994
|
-
return Oo([],
|
8994
|
+
return Oo([], H, C, $, A, P);
|
8995
8995
|
const O = V.length > 0 ? V[V.length - 1] + 1 : 0, W = z3(L, w, R, O);
|
8996
8996
|
if (W.length === 0)
|
8997
8997
|
return null;
|
8998
|
-
const ie = C - 1,
|
8999
|
-
for (const
|
9000
|
-
const j =
|
9001
|
-
let Y = j.offset, ne =
|
8998
|
+
const ie = C - 1, Se = Oi([], (U) => {
|
8999
|
+
for (const _ of W) {
|
9000
|
+
const j = _.value;
|
9001
|
+
let Y = j.offset, ne = _.start;
|
9002
9002
|
const fe = j.size;
|
9003
9003
|
if (j.offset < w) {
|
9004
9004
|
ne += Math.floor((w - j.offset + $) / (fe + $));
|
9005
|
-
const z = ne -
|
9005
|
+
const z = ne - _.start;
|
9006
9006
|
Y += z * fe + z * $;
|
9007
9007
|
}
|
9008
9008
|
ne < O && (Y += (O - ne) * fe, ne = O);
|
9009
|
-
const ce = Math.min(
|
9009
|
+
const ce = Math.min(_.end, ie);
|
9010
9010
|
for (let z = ne; z <= ce && !(Y >= R); z++)
|
9011
|
-
|
9011
|
+
U.push({ index: z, size: fe, offset: Y, data: M && M[z] }), Y += fe + $;
|
9012
9012
|
}
|
9013
9013
|
});
|
9014
|
-
return Oo(
|
9014
|
+
return Oo(Se, H, C, $, A, P);
|
9015
9015
|
}
|
9016
9016
|
),
|
9017
9017
|
//@ts-expect-error filter needs to be fixed
|
@@ -9110,7 +9110,7 @@ const Ir = Te(
|
|
9110
9110
|
{ singleton: !0 }
|
9111
9111
|
), sm = Te(
|
9112
9112
|
([{ scrollVelocity: e }]) => {
|
9113
|
-
const t =
|
9113
|
+
const t = J(!1), n = Ae(), r = J(!1);
|
9114
9114
|
return oe(
|
9115
9115
|
X(
|
9116
9116
|
e,
|
@@ -9136,7 +9136,7 @@ const Ir = Te(
|
|
9136
9136
|
Ze(oo),
|
9137
9137
|
{ singleton: !0 }
|
9138
9138
|
), ix = Te(([{ topItemsIndexes: e }]) => {
|
9139
|
-
const t =
|
9139
|
+
const t = J(0);
|
9140
9140
|
return oe(
|
9141
9141
|
X(
|
9142
9142
|
t,
|
@@ -9244,7 +9244,7 @@ const ux = cm(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
9244
9244
|
Ze(xt, oo, Ir, pn, Un, al)
|
9245
9245
|
), lx = Te(
|
9246
9246
|
([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
9247
|
-
const r =
|
9247
|
+
const r = J(0);
|
9248
9248
|
return Le(
|
9249
9249
|
X(
|
9250
9250
|
e,
|
@@ -9274,7 +9274,7 @@ const ux = cm(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
9274
9274
|
{ singleton: !0 }
|
9275
9275
|
), cx = Te(
|
9276
9276
|
([{ viewportHeight: e }, { totalListHeight: t }]) => {
|
9277
|
-
const n =
|
9277
|
+
const n = J(!1), r = vt(
|
9278
9278
|
X(
|
9279
9279
|
st(n, e, t),
|
9280
9280
|
me(([a]) => a),
|
@@ -9289,7 +9289,7 @@ const ux = cm(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
9289
9289
|
Ze(xt, lm),
|
9290
9290
|
{ singleton: !0 }
|
9291
9291
|
), ll = Te(([{ scrollTo: e, scrollContainerState: t }]) => {
|
9292
|
-
const n = Ae(), r = Ae(), a = Ae(), o =
|
9292
|
+
const n = Ae(), r = Ae(), a = Ae(), o = J(!1), i = J(void 0);
|
9293
9293
|
return oe(
|
9294
9294
|
X(
|
9295
9295
|
st(n, r),
|
@@ -9339,11 +9339,11 @@ const ux = cm(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
9339
9339
|
xe(e, a, t, o, i, u, r),
|
9340
9340
|
xe(n),
|
9341
9341
|
q(([[f, g, d, m, h, v, p, b], y]) => {
|
9342
|
-
const { done: D, behavior: x, align: w, calculateViewLocation: R = dx, ...C } = f, B = nm(f, g, m - 1), T = _a(B, g.offsetTree, y) + h + v, E = T + en(g.sizeTree, B)[1], V = b + v,
|
9342
|
+
const { done: D, behavior: x, align: w, calculateViewLocation: R = dx, ...C } = f, B = nm(f, g, m - 1), T = _a(B, g.offsetTree, y) + h + v, E = T + en(g.sizeTree, B)[1], V = b + v, P = b + d - p, $ = R({
|
9343
9343
|
itemTop: T,
|
9344
9344
|
itemBottom: E,
|
9345
9345
|
viewportTop: V,
|
9346
|
-
viewportBottom:
|
9346
|
+
viewportBottom: P,
|
9347
9347
|
locationParams: { behavior: x, align: w, ...C }
|
9348
9348
|
});
|
9349
9349
|
return $ ? D && fn(
|
@@ -9374,7 +9374,7 @@ const ux = cm(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
9374
9374
|
{ didMount: a },
|
9375
9375
|
{ useWindowScroll: o, windowScrollContainerState: i, windowViewportRect: u }
|
9376
9376
|
]) => {
|
9377
|
-
const s = Ae(), l =
|
9377
|
+
const s = Ae(), l = J(void 0), c = J(null), f = J(null);
|
9378
9378
|
return oe(i, c), oe(u, f), Le(
|
9379
9379
|
X(s, xe(e, n, o, c, f)),
|
9380
9380
|
([g, d, m, h, v, p]) => {
|
@@ -9560,7 +9560,7 @@ function dl(e) {
|
|
9560
9560
|
return e;
|
9561
9561
|
}
|
9562
9562
|
const hx = /* @__PURE__ */ Te(() => {
|
9563
|
-
const e =
|
9563
|
+
const e = J((s) => `Item ${s}`), t = J(null), n = J((s) => `Group ${s}`), r = J({}), a = J(dl), o = J("div"), i = J(wr), u = (s, l = null) => vt(
|
9564
9564
|
X(
|
9565
9565
|
r,
|
9566
9566
|
q((c) => c[s]),
|
@@ -9587,7 +9587,7 @@ const hx = /* @__PURE__ */ Te(() => {
|
|
9587
9587
|
ScrollSeekPlaceholder: u("ScrollSeekPlaceholder")
|
9588
9588
|
};
|
9589
9589
|
}), bx = /* @__PURE__ */ Te(([e, t]) => ({ ...e, ...t }), Ze(dm, hx)), vx = ({ height: e }) => /* @__PURE__ */ k.createElement("div", { style: { height: e } }), yx = { position: fm(), zIndex: 1, overflowAnchor: "none" }, xx = { overflowAnchor: "none" }, Qc = /* @__PURE__ */ k.memo(function({ showTopList: t = !1 }) {
|
9590
|
-
const n =
|
9590
|
+
const n = Ie("listState"), r = jt("sizeRanges"), a = Ie("useWindowScroll"), o = Ie("customScrollParent"), i = jt("windowScrollContainerState"), u = jt("scrollContainerState"), s = o || a ? i : u, l = Ie("itemContent"), c = Ie("context"), f = Ie("groupContent"), g = Ie("trackItemSizes"), d = Ie("itemSize"), m = Ie("log"), h = jt("gap"), { callbackRef: v } = Xg(
|
9591
9591
|
r,
|
9592
9592
|
d,
|
9593
9593
|
g,
|
@@ -9599,7 +9599,7 @@ const hx = /* @__PURE__ */ Te(() => {
|
|
9599
9599
|
ml("deviation", ($) => {
|
9600
9600
|
p !== $ && b($);
|
9601
9601
|
});
|
9602
|
-
const y =
|
9602
|
+
const y = Ie("EmptyPlaceholder"), D = Ie("ScrollSeekPlaceholder") || vx, x = Ie("ListComponent"), w = Ie("ItemComponent"), R = Ie("GroupComponent"), C = Ie("computeItemKey"), B = Ie("isSeeking"), T = Ie("groupIndices").length > 0, E = Ie("alignToBottom"), V = Ie("initialItemFinalLocationReached"), P = t ? {} : {
|
9603
9603
|
boxSizing: "border-box",
|
9604
9604
|
paddingTop: n.offsetTop,
|
9605
9605
|
paddingBottom: n.offsetBottom,
|
@@ -9611,14 +9611,14 @@ const hx = /* @__PURE__ */ Te(() => {
|
|
9611
9611
|
{
|
9612
9612
|
...Je(x, c),
|
9613
9613
|
ref: v,
|
9614
|
-
style:
|
9614
|
+
style: P,
|
9615
9615
|
"data-testid": t ? "virtuoso-top-item-list" : "virtuoso-item-list"
|
9616
9616
|
},
|
9617
9617
|
(t ? n.topItems : n.items).map(($) => {
|
9618
|
-
const M = $.originalIndex,
|
9618
|
+
const M = $.originalIndex, A = C(M + n.firstItemIndex, $.data, c);
|
9619
9619
|
return B ? k.createElement(D, {
|
9620
9620
|
...Je(D, c),
|
9621
|
-
key:
|
9621
|
+
key: A,
|
9622
9622
|
index: $.index,
|
9623
9623
|
height: $.size,
|
9624
9624
|
type: $.type || "item",
|
@@ -9627,7 +9627,7 @@ const hx = /* @__PURE__ */ Te(() => {
|
|
9627
9627
|
R,
|
9628
9628
|
{
|
9629
9629
|
...Je(R, c),
|
9630
|
-
key:
|
9630
|
+
key: A,
|
9631
9631
|
"data-index": M,
|
9632
9632
|
"data-known-size": $.size,
|
9633
9633
|
"data-item-index": $.index,
|
@@ -9639,7 +9639,7 @@ const hx = /* @__PURE__ */ Te(() => {
|
|
9639
9639
|
{
|
9640
9640
|
...Je(w, c),
|
9641
9641
|
...mm(w, $.data),
|
9642
|
-
key:
|
9642
|
+
key: A,
|
9643
9643
|
"data-index": M,
|
9644
9644
|
"data-known-size": $.size,
|
9645
9645
|
"data-item-index": $.index,
|
@@ -9676,10 +9676,10 @@ function mm(e, t) {
|
|
9676
9676
|
return { item: typeof e == "string" ? void 0 : t };
|
9677
9677
|
}
|
9678
9678
|
const wx = /* @__PURE__ */ k.memo(function() {
|
9679
|
-
const t =
|
9679
|
+
const t = Ie("HeaderComponent"), n = jt("headerHeight"), r = Ie("headerFooterTag"), a = gn((i) => n(qt(i, "height"))), o = Ie("context");
|
9680
9680
|
return t ? k.createElement(r, { ref: a }, k.createElement(t, Je(t, o))) : null;
|
9681
9681
|
}), Ix = /* @__PURE__ */ k.memo(function() {
|
9682
|
-
const t =
|
9682
|
+
const t = Ie("FooterComponent"), n = jt("footerHeight"), r = Ie("headerFooterTag"), a = gn((i) => n(qt(i, "height"))), o = Ie("context");
|
9683
9683
|
return t ? k.createElement(r, { ref: a }, k.createElement(t, Je(t, o))) : null;
|
9684
9684
|
});
|
9685
9685
|
function fl({ usePublisher: e, useEmitter: t, useEmitterValue: n }) {
|
@@ -9729,25 +9729,25 @@ function gl({ usePublisher: e, useEmitter: t, useEmitterValue: n }) {
|
|
9729
9729
|
});
|
9730
9730
|
}
|
9731
9731
|
const Ex = ({ children: e }) => {
|
9732
|
-
const t = k.useContext(Hi), n = jt("viewportHeight"), r = jt("fixedItemHeight"), a =
|
9732
|
+
const t = k.useContext(Hi), n = jt("viewportHeight"), r = jt("fixedItemHeight"), a = Ie("alignToBottom"), o = gn(Ta(n, (i) => qt(i, "height")));
|
9733
9733
|
return k.useEffect(() => {
|
9734
9734
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
9735
9735
|
}, [t, n, r]), /* @__PURE__ */ k.createElement("div", { style: oa(a), ref: o, "data-viewport-type": "element" }, e);
|
9736
9736
|
}, Sx = ({ children: e }) => {
|
9737
|
-
const t = k.useContext(Hi), n = jt("windowViewportRect"), r = jt("fixedItemHeight"), a =
|
9737
|
+
const t = k.useContext(Hi), n = jt("windowViewportRect"), r = jt("fixedItemHeight"), a = Ie("customScrollParent"), o = cl(n, a), i = Ie("alignToBottom");
|
9738
9738
|
return k.useEffect(() => {
|
9739
9739
|
t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
9740
9740
|
}, [t, n, r]), /* @__PURE__ */ k.createElement("div", { ref: o, style: oa(i), "data-viewport-type": "window" }, e);
|
9741
9741
|
}, $x = ({ children: e }) => {
|
9742
|
-
const t =
|
9742
|
+
const t = Ie("TopItemListComponent") || "div", n = Ie("headerHeight"), r = { ...Dx, marginTop: `${n}px` }, a = Ie("context");
|
9743
9743
|
return k.createElement(t, { style: r, ...Je(t, a) }, e);
|
9744
9744
|
}, Rx = /* @__PURE__ */ k.memo(function(t) {
|
9745
|
-
const n =
|
9745
|
+
const n = Ie("useWindowScroll"), r = Ie("topItemsIndexes").length > 0, a = Ie("customScrollParent"), o = a || n ? Px : Ax, i = a || n ? Sx : Ex;
|
9746
9746
|
return /* @__PURE__ */ k.createElement(o, { ...t }, r && /* @__PURE__ */ k.createElement($x, null, /* @__PURE__ */ k.createElement(Qc, { showTopList: !0 })), /* @__PURE__ */ k.createElement(i, null, /* @__PURE__ */ k.createElement(wx, null), /* @__PURE__ */ k.createElement(Qc, null), /* @__PURE__ */ k.createElement(Ix, null)));
|
9747
9747
|
}), {
|
9748
9748
|
Component: Fx,
|
9749
9749
|
usePublisher: jt,
|
9750
|
-
useEmitterValue:
|
9750
|
+
useEmitterValue: Ie,
|
9751
9751
|
useEmitter: ml
|
9752
9752
|
} = /* @__PURE__ */ nl(
|
9753
9753
|
bx,
|
@@ -9805,7 +9805,7 @@ const Ex = ({ children: e }) => {
|
|
9805
9805
|
}
|
9806
9806
|
},
|
9807
9807
|
Rx
|
9808
|
-
), Ax = /* @__PURE__ */ fl({ usePublisher: jt, useEmitterValue:
|
9808
|
+
), Ax = /* @__PURE__ */ fl({ usePublisher: jt, useEmitterValue: Ie, useEmitter: ml }), Px = /* @__PURE__ */ gl({ usePublisher: jt, useEmitterValue: Ie, useEmitter: ml }), Bx = Fx, qc = {
|
9809
9809
|
items: [],
|
9810
9810
|
offsetBottom: 0,
|
9811
9811
|
offsetTop: 0,
|
@@ -9850,50 +9850,50 @@ const _x = /* @__PURE__ */ Te(
|
|
9850
9850
|
{ windowViewportRect: h, useWindowScroll: v, customScrollParent: p, windowScrollContainerState: b, windowScrollTo: y },
|
9851
9851
|
D
|
9852
9852
|
]) => {
|
9853
|
-
const x =
|
9853
|
+
const x = J(0), w = J(0), R = J(qc), C = J({ height: 0, width: 0 }), B = J({ height: 0, width: 0 }), T = Ae(), E = Ae(), V = J(0), P = J(null), $ = J({ row: 0, column: 0 }), M = Ae(), A = Ae(), S = J(!1), L = J(0), G = J(!0), H = J(!1);
|
9854
9854
|
Le(
|
9855
9855
|
X(
|
9856
9856
|
m,
|
9857
9857
|
xe(L),
|
9858
|
-
me(([
|
9858
|
+
me(([_, j]) => !!j)
|
9859
9859
|
),
|
9860
9860
|
() => {
|
9861
|
-
ve(
|
9861
|
+
ve(G, !1), ve(w, 0);
|
9862
9862
|
}
|
9863
9863
|
), Le(
|
9864
9864
|
X(
|
9865
|
-
st(m,
|
9866
|
-
me(([
|
9865
|
+
st(m, G, B, C, L, H),
|
9866
|
+
me(([_, j, Y, ne, , fe]) => _ && !j && Y.height !== 0 && ne.height !== 0 && !fe)
|
9867
9867
|
),
|
9868
|
-
([, , , ,
|
9869
|
-
ve(
|
9870
|
-
ve(T,
|
9868
|
+
([, , , , _]) => {
|
9869
|
+
ve(H, !0), il(1, () => {
|
9870
|
+
ve(T, _);
|
9871
9871
|
}), fn(X(r), () => {
|
9872
|
-
ve(n, [0, 0]), ve(
|
9872
|
+
ve(n, [0, 0]), ve(G, !0);
|
9873
9873
|
});
|
9874
9874
|
}
|
9875
9875
|
), oe(
|
9876
9876
|
X(
|
9877
|
-
|
9878
|
-
me((
|
9877
|
+
A,
|
9878
|
+
me((_) => _ != null && _.scrollTop > 0),
|
9879
9879
|
on(0)
|
9880
9880
|
),
|
9881
9881
|
w
|
9882
9882
|
), Le(
|
9883
9883
|
X(
|
9884
9884
|
m,
|
9885
|
-
xe(
|
9886
|
-
me(([,
|
9885
|
+
xe(A),
|
9886
|
+
me(([, _]) => _ != null)
|
9887
9887
|
),
|
9888
|
-
([,
|
9889
|
-
|
9888
|
+
([, _]) => {
|
9889
|
+
_ && (ve(C, _.viewport), ve(B, _ == null ? void 0 : _.item), ve($, _.gap), _.scrollTop > 0 && (ve(S, !0), fn(X(r, qr(1)), (j) => {
|
9890
9890
|
ve(S, !1);
|
9891
|
-
}), ve(i, { top:
|
9891
|
+
}), ve(i, { top: _.scrollTop })));
|
9892
9892
|
}
|
9893
9893
|
), oe(
|
9894
9894
|
X(
|
9895
9895
|
C,
|
9896
|
-
q(({ height:
|
9896
|
+
q(({ height: _ }) => _)
|
9897
9897
|
),
|
9898
9898
|
a
|
9899
9899
|
), oe(
|
@@ -9901,11 +9901,11 @@ const _x = /* @__PURE__ */ Te(
|
|
9901
9901
|
st(
|
9902
9902
|
pe(C, xo),
|
9903
9903
|
pe(B, xo),
|
9904
|
-
pe($, (
|
9904
|
+
pe($, (_, j) => _ && _.column === j.column && _.row === j.row),
|
9905
9905
|
pe(r)
|
9906
9906
|
),
|
9907
|
-
q(([
|
9908
|
-
viewport:
|
9907
|
+
q(([_, j, Y, ne]) => ({
|
9908
|
+
viewport: _,
|
9909
9909
|
item: j,
|
9910
9910
|
gap: Y,
|
9911
9911
|
scrollTop: ne
|
@@ -9920,16 +9920,16 @@ const _x = /* @__PURE__ */ Te(
|
|
9920
9920
|
pe($, kx),
|
9921
9921
|
pe(B, xo),
|
9922
9922
|
pe(C, xo),
|
9923
|
-
pe(
|
9923
|
+
pe(P),
|
9924
9924
|
pe(w),
|
9925
9925
|
pe(S),
|
9926
|
-
pe(
|
9926
|
+
pe(G),
|
9927
9927
|
pe(L)
|
9928
9928
|
),
|
9929
|
-
me(([, , , , , , ,
|
9929
|
+
me(([, , , , , , , _]) => !_),
|
9930
9930
|
q(
|
9931
9931
|
([
|
9932
|
-
|
9932
|
+
_,
|
9933
9933
|
[j, Y],
|
9934
9934
|
ne,
|
9935
9935
|
fe,
|
@@ -9941,16 +9941,16 @@ const _x = /* @__PURE__ */ Te(
|
|
9941
9941
|
je
|
9942
9942
|
]) => {
|
9943
9943
|
const { row: Xe, column: Q } = ne, { height: ee, width: de } = fe, { width: Me } = ce;
|
9944
|
-
if (qe === 0 && (
|
9944
|
+
if (qe === 0 && (_ === 0 || Me === 0))
|
9945
9945
|
return qc;
|
9946
9946
|
if (de === 0) {
|
9947
|
-
const $r = ul(je,
|
9947
|
+
const $r = ul(je, _), sa = $r === 0 ? Math.max(qe - 1, 0) : $r;
|
9948
9948
|
return Vx(nd($r, sa, z));
|
9949
9949
|
}
|
9950
9950
|
const et = pm(Me, de, Q);
|
9951
9951
|
let $e, De;
|
9952
|
-
We ? j === 0 && Y === 0 && qe > 0 ? ($e = 0, De = qe - 1) : ($e = et * fi((j + Xe) / (ee + Xe)), De = et * td((Y + Xe) / (ee + Xe)) - 1, De = yu(
|
9953
|
-
const Ct = nd($e, De, z), { top: Dt, bottom: wt } = rd(ce, ne, fe, Ct), Ot = td(
|
9952
|
+
We ? j === 0 && Y === 0 && qe > 0 ? ($e = 0, De = qe - 1) : ($e = et * fi((j + Xe) / (ee + Xe)), De = et * td((Y + Xe) / (ee + Xe)) - 1, De = yu(_ - 1, Ea(De, et - 1)), $e = yu(De, Ea(0, $e))) : ($e = 0, De = -1);
|
9953
|
+
const Ct = nd($e, De, z), { top: Dt, bottom: wt } = rd(ce, ne, fe, Ct), Ot = td(_ / et), mo = Ot * ee + (Ot - 1) * Xe - wt;
|
9954
9954
|
return { items: Ct, offsetTop: Dt, offsetBottom: mo, top: Dt, bottom: wt, itemHeight: ee, itemWidth: de };
|
9955
9955
|
}
|
9956
9956
|
)
|
@@ -9958,68 +9958,68 @@ const _x = /* @__PURE__ */ Te(
|
|
9958
9958
|
R
|
9959
9959
|
), oe(
|
9960
9960
|
X(
|
9961
|
-
|
9962
|
-
me((
|
9963
|
-
q((
|
9961
|
+
P,
|
9962
|
+
me((_) => _ !== null),
|
9963
|
+
q((_) => _.length)
|
9964
9964
|
),
|
9965
9965
|
x
|
9966
9966
|
), oe(
|
9967
9967
|
X(
|
9968
9968
|
st(C, B, R, $),
|
9969
|
-
me(([
|
9970
|
-
q(([
|
9971
|
-
const { top: fe, bottom: ce } = rd(
|
9969
|
+
me(([_, j, { items: Y }]) => Y.length > 0 && j.height !== 0 && _.height !== 0),
|
9970
|
+
q(([_, j, { items: Y }, ne]) => {
|
9971
|
+
const { top: fe, bottom: ce } = rd(_, ne, j, Y);
|
9972
9972
|
return [fe, ce];
|
9973
9973
|
}),
|
9974
9974
|
ze(Na)
|
9975
9975
|
),
|
9976
9976
|
n
|
9977
9977
|
);
|
9978
|
-
const O =
|
9978
|
+
const O = J(!1);
|
9979
9979
|
oe(
|
9980
9980
|
X(
|
9981
9981
|
r,
|
9982
9982
|
xe(O),
|
9983
|
-
q(([
|
9983
|
+
q(([_, j]) => j || _ !== 0)
|
9984
9984
|
),
|
9985
9985
|
O
|
9986
9986
|
);
|
9987
9987
|
const W = Vt(
|
9988
9988
|
X(
|
9989
9989
|
pe(R),
|
9990
|
-
me(({ items:
|
9990
|
+
me(({ items: _ }) => _.length > 0),
|
9991
9991
|
xe(x, O),
|
9992
|
-
me(([{ items:
|
9993
|
-
q(([,
|
9992
|
+
me(([{ items: _ }, j, Y]) => Y && _[_.length - 1].index === j - 1),
|
9993
|
+
q(([, _]) => _ - 1),
|
9994
9994
|
ze()
|
9995
9995
|
)
|
9996
9996
|
), ie = Vt(
|
9997
9997
|
X(
|
9998
9998
|
pe(R),
|
9999
|
-
me(({ items:
|
9999
|
+
me(({ items: _ }) => _.length > 0 && _[0].index === 0),
|
10000
10000
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
10001
10001
|
on(0),
|
10002
10002
|
ze()
|
10003
10003
|
)
|
10004
|
-
),
|
10004
|
+
), Se = Vt(
|
10005
10005
|
X(
|
10006
10006
|
pe(R),
|
10007
10007
|
xe(S),
|
10008
|
-
me(([{ items:
|
10009
|
-
q(([{ items:
|
10010
|
-
startIndex:
|
10011
|
-
endIndex:
|
10008
|
+
me(([{ items: _ }, j]) => _.length > 0 && !j),
|
10009
|
+
q(([{ items: _ }]) => ({
|
10010
|
+
startIndex: _[0].index,
|
10011
|
+
endIndex: _[_.length - 1].index
|
10012
10012
|
})),
|
10013
10013
|
ze(im),
|
10014
10014
|
Nn(0)
|
10015
10015
|
)
|
10016
10016
|
);
|
10017
|
-
oe(
|
10017
|
+
oe(Se, g.scrollSeekRangeChanged), oe(
|
10018
10018
|
X(
|
10019
10019
|
T,
|
10020
10020
|
xe(C, B, x, $),
|
10021
|
-
q(([
|
10022
|
-
const ce = am(
|
10021
|
+
q(([_, j, Y, ne, fe]) => {
|
10022
|
+
const ce = am(_), { align: z, behavior: qe, offset: We } = ce;
|
10023
10023
|
let je = ce.index;
|
10024
10024
|
je === "LAST" && (je = ne - 1), je = Ea(0, je, yu(ne - 1, je));
|
10025
10025
|
let Xe = us(j, fe, Y, je);
|
@@ -10028,22 +10028,22 @@ const _x = /* @__PURE__ */ Te(
|
|
10028
10028
|
),
|
10029
10029
|
i
|
10030
10030
|
);
|
10031
|
-
const
|
10031
|
+
const U = vt(
|
10032
10032
|
X(
|
10033
10033
|
R,
|
10034
|
-
q((
|
10034
|
+
q((_) => _.offsetBottom + _.bottom)
|
10035
10035
|
),
|
10036
10036
|
0
|
10037
10037
|
);
|
10038
10038
|
return oe(
|
10039
10039
|
X(
|
10040
10040
|
h,
|
10041
|
-
q((
|
10041
|
+
q((_) => ({ width: _.visibleWidth, height: _.visibleHeight }))
|
10042
10042
|
),
|
10043
10043
|
C
|
10044
10044
|
), {
|
10045
10045
|
// input
|
10046
|
-
data:
|
10046
|
+
data: P,
|
10047
10047
|
totalCount: x,
|
10048
10048
|
viewportDimensions: C,
|
10049
10049
|
itemDimensions: B,
|
@@ -10065,16 +10065,16 @@ const _x = /* @__PURE__ */ Te(
|
|
10065
10065
|
headerHeight: c,
|
10066
10066
|
initialItemCount: w,
|
10067
10067
|
gap: $,
|
10068
|
-
restoreStateFrom:
|
10068
|
+
restoreStateFrom: A,
|
10069
10069
|
...g,
|
10070
10070
|
initialTopMostItemIndex: L,
|
10071
10071
|
// output
|
10072
10072
|
gridState: R,
|
10073
|
-
totalListHeight:
|
10073
|
+
totalListHeight: U,
|
10074
10074
|
...f,
|
10075
10075
|
startReached: ie,
|
10076
10076
|
endReached: W,
|
10077
|
-
rangeChanged:
|
10077
|
+
rangeChanged: Se,
|
10078
10078
|
stateChanged: M,
|
10079
10079
|
propsReady: d,
|
10080
10080
|
stateRestoreInProgress: S,
|
@@ -10098,7 +10098,7 @@ function pm(e, t, n) {
|
|
10098
10098
|
return Ea(1, fi((e + n) / (fi(t) + n)));
|
10099
10099
|
}
|
10100
10100
|
const Mx = /* @__PURE__ */ Te(() => {
|
10101
|
-
const e =
|
10101
|
+
const e = J((l) => `Item ${l}`), t = J({}), n = J(null), r = J("virtuoso-grid-item"), a = J("virtuoso-grid-list"), o = J(dl), i = J("div"), u = J(wr), s = (l, c = null) => vt(
|
10102
10102
|
X(
|
10103
10103
|
t,
|
10104
10104
|
q((f) => f[l]),
|
@@ -10230,7 +10230,7 @@ function ad(e, t, n) {
|
|
10230
10230
|
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, kt.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
10231
10231
|
}
|
10232
10232
|
const Xx = /* @__PURE__ */ Te(() => {
|
10233
|
-
const e =
|
10233
|
+
const e = J((s) => /* @__PURE__ */ k.createElement("td", null, "Item $", s)), t = J(null), n = J(null), r = J(null), a = J({}), o = J(dl), i = J(wr), u = (s, l = null) => vt(
|
10234
10234
|
X(
|
10235
10235
|
a,
|
10236
10236
|
q((c) => c[s]),
|
@@ -10266,38 +10266,38 @@ const Xx = /* @__PURE__ */ Te(() => {
|
|
10266
10266
|
void 0,
|
10267
10267
|
a
|
10268
10268
|
), [m, h] = k.useState(0);
|
10269
|
-
pl("deviation", (
|
10270
|
-
m !==
|
10269
|
+
pl("deviation", (A) => {
|
10270
|
+
m !== A && (d.current.style.marginTop = `${A}px`, h(A));
|
10271
10271
|
});
|
10272
10272
|
const v = Ne("EmptyPlaceholder"), p = Ne("ScrollSeekPlaceholder") || Ux, b = Ne("FillerRow") || Jx, y = Ne("TableBodyComponent"), D = Ne("TableRowComponent"), x = Ne("computeItemKey"), w = Ne("isSeeking"), R = Ne("paddingTopAddition"), C = Ne("firstItemIndex"), B = Ne("statefulTotalCount"), T = Ne("context");
|
10273
10273
|
if (B === 0 && v)
|
10274
10274
|
return k.createElement(v, Je(v, T));
|
10275
|
-
const E = t.offsetTop + R + m, V = t.offsetBottom,
|
10276
|
-
const S =
|
10275
|
+
const E = t.offsetTop + R + m, V = t.offsetBottom, P = E > 0 ? /* @__PURE__ */ k.createElement(b, { height: E, key: "padding-top", context: T }) : null, $ = V > 0 ? /* @__PURE__ */ k.createElement(b, { height: V, key: "padding-bottom", context: T }) : null, M = t.items.map((A) => {
|
10276
|
+
const S = A.originalIndex, L = x(S + C, A.data, T);
|
10277
10277
|
return w ? k.createElement(p, {
|
10278
10278
|
...Je(p, T),
|
10279
10279
|
key: L,
|
10280
|
-
index:
|
10281
|
-
height:
|
10282
|
-
type:
|
10280
|
+
index: A.index,
|
10281
|
+
height: A.size,
|
10282
|
+
type: A.type || "item"
|
10283
10283
|
}) : k.createElement(
|
10284
10284
|
D,
|
10285
10285
|
{
|
10286
10286
|
...Je(D, T),
|
10287
|
-
...mm(D,
|
10287
|
+
...mm(D, A.data),
|
10288
10288
|
key: L,
|
10289
10289
|
"data-index": S,
|
10290
|
-
"data-known-size":
|
10291
|
-
"data-item-index":
|
10290
|
+
"data-known-size": A.size,
|
10291
|
+
"data-item-index": A.index,
|
10292
10292
|
style: Kx
|
10293
10293
|
},
|
10294
|
-
s(
|
10294
|
+
s(A.index, A.data, T)
|
10295
10295
|
);
|
10296
10296
|
});
|
10297
10297
|
return k.createElement(
|
10298
10298
|
y,
|
10299
10299
|
{ ref: g, "data-testid": "virtuoso-item-list", ...Je(y, T) },
|
10300
|
-
[
|
10300
|
+
[P, ...M, $]
|
10301
10301
|
);
|
10302
10302
|
}), qx = ({ children: e }) => {
|
10303
10303
|
const t = k.useContext(Hi), n = Qt("viewportHeight"), r = Qt("fixedItemHeight"), a = gn(Ta(n, (o) => qt(o, "height")));
|
@@ -10425,11 +10425,11 @@ const Xx = /* @__PURE__ */ Te(() => {
|
|
10425
10425
|
}, B = (E) => {
|
10426
10426
|
var $;
|
10427
10427
|
const V = E.getAttribute("data-index");
|
10428
|
-
let
|
10428
|
+
let P = (($ = E.getBoundingClientRect()) == null ? void 0 : $.height) || 0;
|
10429
10429
|
return d == null || d.forEach((M) => {
|
10430
|
-
var
|
10431
|
-
|
10432
|
-
}),
|
10430
|
+
var A, S;
|
10431
|
+
P += ((S = (A = document.querySelector(`[${M}="${V}"]`)) == null ? void 0 : A.getBoundingClientRect()) == null ? void 0 : S.height) ?? 0;
|
10432
|
+
}), P;
|
10433
10433
|
}, T = () => {
|
10434
10434
|
var E;
|
10435
10435
|
if (v && i === "container") {
|
@@ -10437,7 +10437,7 @@ const Xx = /* @__PURE__ */ Te(() => {
|
|
10437
10437
|
R(V - b);
|
10438
10438
|
}
|
10439
10439
|
};
|
10440
|
-
return
|
10440
|
+
return Ee(() => {
|
10441
10441
|
const E = setTimeout(T, y);
|
10442
10442
|
return window == null || window.addEventListener("resize", T), window == null || window.addEventListener("load", T), () => {
|
10443
10443
|
clearTimeout(E), window == null || window.removeEventListener("resize", T), window == null || window.removeEventListener("load", T);
|
@@ -10679,7 +10679,7 @@ const dC = ({ style: e, context: t, ...n }) => /* @__PURE__ */ I.jsx("table", {
|
|
10679
10679
|
componentSortDESC: m,
|
10680
10680
|
scrollTop: h = !1
|
10681
10681
|
}) => {
|
10682
|
-
|
10682
|
+
Ee(() => {
|
10683
10683
|
!r && typeof e.toggleAllRowsExpanded == "function" && e.toggleAllRowsExpanded();
|
10684
10684
|
}, [r, e]);
|
10685
10685
|
const v = () => {
|
@@ -10692,7 +10692,7 @@ const dC = ({ style: e, context: t, ...n }) => /* @__PURE__ */ I.jsx("table", {
|
|
10692
10692
|
}
|
10693
10693
|
return c;
|
10694
10694
|
};
|
10695
|
-
return
|
10695
|
+
return Ee(() => {
|
10696
10696
|
if (h) {
|
10697
10697
|
const p = document.getElementById("1ru-table");
|
10698
10698
|
p && (p.scrollLeft = 1e26);
|
@@ -10765,11 +10765,11 @@ const dC = ({ style: e, context: t, ...n }) => /* @__PURE__ */ I.jsx("table", {
|
|
10765
10765
|
}, B = (E) => {
|
10766
10766
|
var $;
|
10767
10767
|
const V = E.getAttribute("data-index");
|
10768
|
-
let
|
10768
|
+
let P = (($ = E.getBoundingClientRect()) == null ? void 0 : $.height) || 0;
|
10769
10769
|
return g == null || g.forEach((M) => {
|
10770
|
-
var
|
10771
|
-
|
10772
|
-
}),
|
10770
|
+
var A, S;
|
10771
|
+
P += ((S = (A = document.querySelector(`[${M}="${V}"]`)) == null ? void 0 : A.getBoundingClientRect()) == null ? void 0 : S.height) ?? 0;
|
10772
|
+
}), P;
|
10773
10773
|
}, T = () => {
|
10774
10774
|
var E;
|
10775
10775
|
if (h && i === "container") {
|
@@ -10777,7 +10777,7 @@ const dC = ({ style: e, context: t, ...n }) => /* @__PURE__ */ I.jsx("table", {
|
|
10777
10777
|
R(V - p);
|
10778
10778
|
}
|
10779
10779
|
};
|
10780
|
-
return
|
10780
|
+
return Ee(() => {
|
10781
10781
|
const E = setTimeout(T, b);
|
10782
10782
|
return window == null || window.addEventListener("resize", T), window == null || window.addEventListener("load", T), () => {
|
10783
10783
|
clearTimeout(E), window == null || window.removeEventListener("resize", T), window == null || window.removeEventListener("load", T);
|
@@ -10832,13 +10832,13 @@ const hC = "_tabs_wpw6e_1", bC = "_ripple_wpw6e_12", vC = "_active_wpw6e_17", Tn
|
|
10832
10832
|
}, v = (p) => {
|
10833
10833
|
typeof o == "function" && o(p);
|
10834
10834
|
};
|
10835
|
-
return
|
10835
|
+
return Ee(() => {
|
10836
10836
|
function p() {
|
10837
10837
|
const b = i.current[l];
|
10838
10838
|
m((b == null ? void 0 : b.offsetLeft) ?? 0), g((b == null ? void 0 : b.clientWidth) ?? 0);
|
10839
10839
|
}
|
10840
10840
|
return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
|
10841
|
-
}, [l]),
|
10841
|
+
}, [l]), Ee(() => {
|
10842
10842
|
const p = u.findIndex((b) => b.id === (s == null ? void 0 : s[n]) || b.id === t);
|
10843
10843
|
if ((s != null && s[n] || t) && p >= 0) {
|
10844
10844
|
c(p);
|
@@ -11079,23 +11079,23 @@ function Fn(e, t) {
|
|
11079
11079
|
}
|
11080
11080
|
var IC = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
11081
11081
|
function EC(e) {
|
11082
|
-
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 = Fn(e, IC), h = te(u !== void 0 ? u : n), v = In(h, 2), p = v[0], b = v[1], y = te(s !== void 0 ? s : a), D = In(y, 2), x = D[0], w = D[1], R = te(d !== void 0 ? d : i), C = In(R, 2), B = C[0], T = C[1], E = Re(function(L,
|
11083
|
-
typeof l == "function" && l(L,
|
11084
|
-
}, [l]), V = Re(function(L,
|
11085
|
-
var
|
11086
|
-
typeof c == "function" && (
|
11087
|
-
}, [c]),
|
11082
|
+
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 = Fn(e, IC), h = te(u !== void 0 ? u : n), v = In(h, 2), p = v[0], b = v[1], y = te(s !== void 0 ? s : a), D = In(y, 2), x = D[0], w = D[1], R = te(d !== void 0 ? d : i), C = In(R, 2), B = C[0], T = C[1], E = Re(function(L, G) {
|
11083
|
+
typeof l == "function" && l(L, G), T(L);
|
11084
|
+
}, [l]), V = Re(function(L, G) {
|
11085
|
+
var H;
|
11086
|
+
typeof c == "function" && (H = c(L, G)), b(H !== void 0 ? H : L);
|
11087
|
+
}, [c]), P = Re(function() {
|
11088
11088
|
typeof g == "function" && g(), w(!0);
|
11089
11089
|
}, [g]), $ = Re(function() {
|
11090
11090
|
typeof f == "function" && f(), w(!1);
|
11091
|
-
}, [f]), M = u !== void 0 ? u : p,
|
11091
|
+
}, [f]), M = u !== void 0 ? u : p, A = s !== void 0 ? s : x, S = d !== void 0 ? d : B;
|
11092
11092
|
return se(se({}, m), {}, {
|
11093
11093
|
inputValue: M,
|
11094
|
-
menuIsOpen:
|
11094
|
+
menuIsOpen: A,
|
11095
11095
|
onChange: E,
|
11096
11096
|
onInputChange: V,
|
11097
11097
|
onMenuClose: $,
|
11098
|
-
onMenuOpen:
|
11098
|
+
onMenuOpen: P,
|
11099
11099
|
value: S
|
11100
11100
|
});
|
11101
11101
|
}
|
@@ -11921,11 +11921,11 @@ function hD() {
|
|
11921
11921
|
}
|
11922
11922
|
}
|
11923
11923
|
}
|
11924
|
-
var x = s, w = l, R = u, C = i, B = t, T = c, E = r, V = m,
|
11925
|
-
function H(z) {
|
11926
|
-
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;
|
11927
|
-
}
|
11924
|
+
var x = s, w = l, R = u, C = i, B = t, T = c, E = r, V = m, P = d, $ = n, M = o, A = a, S = f, L = !1;
|
11928
11925
|
function G(z) {
|
11926
|
+
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.")), H(z) || D(z) === s;
|
11927
|
+
}
|
11928
|
+
function H(z) {
|
11929
11929
|
return D(z) === l;
|
11930
11930
|
}
|
11931
11931
|
function O(z) {
|
@@ -11937,13 +11937,13 @@ function hD() {
|
|
11937
11937
|
function ie(z) {
|
11938
11938
|
return typeof z == "object" && z !== null && z.$$typeof === t;
|
11939
11939
|
}
|
11940
|
-
function
|
11940
|
+
function Se(z) {
|
11941
11941
|
return D(z) === c;
|
11942
11942
|
}
|
11943
|
-
function
|
11943
|
+
function U(z) {
|
11944
11944
|
return D(z) === r;
|
11945
11945
|
}
|
11946
|
-
function
|
11946
|
+
function _(z) {
|
11947
11947
|
return D(z) === m;
|
11948
11948
|
}
|
11949
11949
|
function j(z) {
|
@@ -11961,7 +11961,7 @@ function hD() {
|
|
11961
11961
|
function ce(z) {
|
11962
11962
|
return D(z) === f;
|
11963
11963
|
}
|
11964
|
-
_e.AsyncMode = x, _e.ConcurrentMode = w, _e.ContextConsumer = R, _e.ContextProvider = C, _e.Element = B, _e.ForwardRef = T, _e.Fragment = E, _e.Lazy = V, _e.Memo =
|
11964
|
+
_e.AsyncMode = x, _e.ConcurrentMode = w, _e.ContextConsumer = R, _e.ContextProvider = C, _e.Element = B, _e.ForwardRef = T, _e.Fragment = E, _e.Lazy = V, _e.Memo = P, _e.Portal = $, _e.Profiler = M, _e.StrictMode = A, _e.Suspense = S, _e.isAsyncMode = G, _e.isConcurrentMode = H, _e.isContextConsumer = O, _e.isContextProvider = W, _e.isElement = ie, _e.isForwardRef = Se, _e.isFragment = U, _e.isLazy = _, _e.isMemo = j, _e.isPortal = Y, _e.isProfiler = ne, _e.isStrictMode = fe, _e.isSuspense = ce, _e.isValidElementType = y, _e.typeOf = D;
|
11965
11965
|
}()), _e;
|
11966
11966
|
}
|
11967
11967
|
process.env.NODE_ENV === "production" ? fs.exports = pD() : fs.exports = hD();
|
@@ -12245,7 +12245,7 @@ var Yt, Ha = function(t, n, r) {
|
|
12245
12245
|
};
|
12246
12246
|
}, BD = function(t) {
|
12247
12247
|
return t();
|
12248
|
-
}, km =
|
12248
|
+
}, km = N.useInsertionEffect ? N.useInsertionEffect : !1, _m = km || BD, bd = km || N.useLayoutEffect, Il = {}.hasOwnProperty, El = /* @__PURE__ */ N.createContext(
|
12249
12249
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
12250
12250
|
// because this module is primarily intended for the browser and node
|
12251
12251
|
// but it's also required in react native and similar environments sometimes
|
@@ -12263,7 +12263,7 @@ var Sl = function(t) {
|
|
12263
12263
|
var a = $n(El);
|
12264
12264
|
return t(n, a, r);
|
12265
12265
|
});
|
12266
|
-
}, Zi = /* @__PURE__ */
|
12266
|
+
}, Zi = /* @__PURE__ */ N.createContext({});
|
12267
12267
|
process.env.NODE_ENV !== "production" && (Zi.displayName = "EmotionThemeContext");
|
12268
12268
|
var vd = function(t) {
|
12269
12269
|
var n = t.split(".");
|
@@ -12305,7 +12305,7 @@ var vd = function(t) {
|
|
12305
12305
|
typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
|
12306
12306
|
var a = e[gs], o = [r], i = "";
|
12307
12307
|
typeof e.className == "string" ? i = Pm(t.registered, o, e.className) : e.className != null && (i = e.className + " ");
|
12308
|
-
var u = Ha(o, void 0,
|
12308
|
+
var u = Ha(o, void 0, N.useContext(Zi));
|
12309
12309
|
if (process.env.NODE_ENV !== "production" && u.name.indexOf("-") === -1) {
|
12310
12310
|
var s = e[ms];
|
12311
12311
|
s && (u = Ha([u, "label:" + s + ";"]));
|
@@ -12314,11 +12314,11 @@ var vd = function(t) {
|
|
12314
12314
|
var l = {};
|
12315
12315
|
for (var c in e)
|
12316
12316
|
Il.call(e, c) && c !== "css" && c !== gs && (process.env.NODE_ENV === "production" || c !== ms) && (l[c] = e[c]);
|
12317
|
-
return l.ref = n, l.className = i, /* @__PURE__ */
|
12317
|
+
return l.ref = n, l.className = i, /* @__PURE__ */ N.createElement(N.Fragment, null, /* @__PURE__ */ N.createElement(ND, {
|
12318
12318
|
cache: t,
|
12319
12319
|
serialized: u,
|
12320
12320
|
isStringTag: typeof a == "string"
|
12321
|
-
}), /* @__PURE__ */
|
12321
|
+
}), /* @__PURE__ */ N.createElement(a, l));
|
12322
12322
|
});
|
12323
12323
|
process.env.NODE_ENV !== "production" && (Mm.displayName = "EmotionCssPropInternal");
|
12324
12324
|
var OD = Mm, LD = {
|
@@ -12454,19 +12454,19 @@ var OD = Mm, LD = {
|
|
12454
12454
|
}, ue = function(t, n) {
|
12455
12455
|
var r = arguments;
|
12456
12456
|
if (n == null || !Il.call(n, "css"))
|
12457
|
-
return
|
12457
|
+
return N.createElement.apply(void 0, r);
|
12458
12458
|
var a = r.length, o = new Array(a);
|
12459
12459
|
o[0] = OD, o[1] = MD(t, n);
|
12460
12460
|
for (var i = 2; i < a; i++)
|
12461
12461
|
o[i] = r[i];
|
12462
|
-
return
|
12462
|
+
return N.createElement.apply(null, o);
|
12463
12463
|
}, yd = !1, GD = /* @__PURE__ */ Sl(function(e, t) {
|
12464
12464
|
process.env.NODE_ENV !== "production" && !yd && // check for className as well since the user is
|
12465
12465
|
// probably using the custom createElement which
|
12466
12466
|
// means it will be turned into a className prop
|
12467
12467
|
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
12468
12468
|
(e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), yd = !0);
|
12469
|
-
var n = e.styles, r = Ha([n], void 0,
|
12469
|
+
var n = e.styles, r = Ha([n], void 0, N.useContext(Zi)), a = N.useRef();
|
12470
12470
|
return bd(function() {
|
12471
12471
|
var o = t.key + "-global", i = new t.sheet.constructor({
|
12472
12472
|
key: o,
|
@@ -12559,9 +12559,9 @@ var zD = function(t) {
|
|
12559
12559
|
}, i = {
|
12560
12560
|
css: a,
|
12561
12561
|
cx: o,
|
12562
|
-
theme:
|
12562
|
+
theme: N.useContext(Zi)
|
12563
12563
|
}, u = e.children(i);
|
12564
|
-
return n = !0, /* @__PURE__ */
|
12564
|
+
return n = !0, /* @__PURE__ */ N.createElement(N.Fragment, null, /* @__PURE__ */ N.createElement(zD, {
|
12565
12565
|
cache: t,
|
12566
12566
|
serializedArr: r
|
12567
12567
|
}), u);
|
@@ -12730,10 +12730,10 @@ function cw(e) {
|
|
12730
12730
|
};
|
12731
12731
|
if (!i && B >= r || i && R >= r) {
|
12732
12732
|
o && Io(s, T, V);
|
12733
|
-
var
|
12733
|
+
var P = i ? R - D : B - D;
|
12734
12734
|
return {
|
12735
12735
|
placement: "bottom",
|
12736
|
-
maxHeight:
|
12736
|
+
maxHeight: P
|
12737
12737
|
};
|
12738
12738
|
}
|
12739
12739
|
if (a === "auto" || i) {
|
@@ -12761,10 +12761,10 @@ function cw(e) {
|
|
12761
12761
|
maxHeight: t
|
12762
12762
|
};
|
12763
12763
|
if (!i && C >= r || i && w >= r) {
|
12764
|
-
var
|
12765
|
-
return (!i && C >= r || i && w >= r) && (
|
12764
|
+
var A = t;
|
12765
|
+
return (!i && C >= r || i && w >= r) && (A = i ? w - x : C - x), o && Io(s, E, V), {
|
12766
12766
|
placement: "top",
|
12767
|
-
maxHeight:
|
12767
|
+
maxHeight: A
|
12768
12768
|
};
|
12769
12769
|
}
|
12770
12770
|
return {
|
@@ -13493,28 +13493,28 @@ var $I = process.env.NODE_ENV === "production" ? {
|
|
13493
13493
|
}, [f]), B = ye(function() {
|
13494
13494
|
var M = "";
|
13495
13495
|
if (n && C.onChange) {
|
13496
|
-
var
|
13496
|
+
var A = n.option, S = n.options, L = n.removedValue, G = n.removedValues, H = n.value, O = function(Y) {
|
13497
13497
|
return Array.isArray(Y) ? null : Y;
|
13498
|
-
}, W = L ||
|
13498
|
+
}, W = L || A || O(H), ie = W ? g(W) : "", Se = S || G || void 0, U = Se ? Se.map(g) : [], _ = se({
|
13499
13499
|
// multiSelected items are usually items that have already been selected
|
13500
13500
|
// or set by the user as a default value so we assume they are not disabled
|
13501
13501
|
isDisabled: W && h(W, u),
|
13502
13502
|
label: ie,
|
13503
|
-
labels:
|
13503
|
+
labels: U
|
13504
13504
|
}, n);
|
13505
|
-
M = C.onChange(
|
13505
|
+
M = C.onChange(_);
|
13506
13506
|
}
|
13507
13507
|
return M;
|
13508
13508
|
}, [n, C, h, u, g]), T = ye(function() {
|
13509
|
-
var M = "",
|
13510
|
-
if (
|
13509
|
+
var M = "", A = r || a, S = !!(r && u && u.includes(r));
|
13510
|
+
if (A && C.onFocus) {
|
13511
13511
|
var L = {
|
13512
|
-
focused:
|
13513
|
-
label: g(
|
13514
|
-
isDisabled: h(
|
13512
|
+
focused: A,
|
13513
|
+
label: g(A),
|
13514
|
+
isDisabled: h(A, u),
|
13515
13515
|
isSelected: S,
|
13516
13516
|
options: o,
|
13517
|
-
context:
|
13517
|
+
context: A === r ? "menu" : "value",
|
13518
13518
|
selectValue: u,
|
13519
13519
|
isAppleDevice: c
|
13520
13520
|
};
|
@@ -13524,22 +13524,22 @@ var $I = process.env.NODE_ENV === "production" ? {
|
|
13524
13524
|
}, [r, a, g, h, C, o, u, c]), E = ye(function() {
|
13525
13525
|
var M = "";
|
13526
13526
|
if (p && b.length && !x && C.onFilter) {
|
13527
|
-
var
|
13527
|
+
var A = y({
|
13528
13528
|
count: o.length
|
13529
13529
|
});
|
13530
13530
|
M = C.onFilter({
|
13531
13531
|
inputValue: d,
|
13532
|
-
resultsMessage:
|
13532
|
+
resultsMessage: A
|
13533
13533
|
});
|
13534
13534
|
}
|
13535
13535
|
return M;
|
13536
|
-
}, [o, d, p, C, b, y, x]), V = (n == null ? void 0 : n.action) === "initial-input-focus",
|
13536
|
+
}, [o, d, p, C, b, y, x]), V = (n == null ? void 0 : n.action) === "initial-input-focus", P = ye(function() {
|
13537
13537
|
var M = "";
|
13538
13538
|
if (C.guidance) {
|
13539
|
-
var
|
13539
|
+
var A = a ? "value" : p ? "menu" : "input";
|
13540
13540
|
M = C.guidance({
|
13541
13541
|
"aria-label": w,
|
13542
|
-
context:
|
13542
|
+
context: A,
|
13543
13543
|
isDisabled: r && h(r, u),
|
13544
13544
|
isMulti: m,
|
13545
13545
|
isSearchable: v,
|
@@ -13556,7 +13556,7 @@ var $I = process.env.NODE_ENV === "production" ? {
|
|
13556
13556
|
id: "aria-results"
|
13557
13557
|
}, E), ue("span", {
|
13558
13558
|
id: "aria-guidance"
|
13559
|
-
},
|
13559
|
+
}, P));
|
13560
13560
|
return ue(Yo, null, ue(Rd, {
|
13561
13561
|
id: l
|
13562
13562
|
}, V && $), ue(Rd, {
|
@@ -13898,7 +13898,7 @@ function OI(e) {
|
|
13898
13898
|
}, [d, g, f]), h = Re(function(v) {
|
13899
13899
|
v && (v.removeEventListener("wheel", f, !1), v.removeEventListener("touchstart", g, !1), v.removeEventListener("touchmove", d, !1));
|
13900
13900
|
}, [d, g, f]);
|
13901
|
-
return
|
13901
|
+
return Ee(function() {
|
13902
13902
|
if (t) {
|
13903
13903
|
var v = l.current;
|
13904
13904
|
return m(v), function() {
|
@@ -13958,7 +13958,7 @@ function LI(e) {
|
|
13958
13958
|
}), l && kd() && (l.removeEventListener("touchmove", Bd, Tr), s && (s.removeEventListener("touchstart", Vd, Tr), s.removeEventListener("touchmove", Td, Tr)));
|
13959
13959
|
}
|
13960
13960
|
}, [r]);
|
13961
|
-
return
|
13961
|
+
return Ee(function() {
|
13962
13962
|
if (t) {
|
13963
13963
|
var s = o.current;
|
13964
13964
|
return i(s), function() {
|
@@ -14801,7 +14801,7 @@ var ap = function(t) {
|
|
14801
14801
|
} : {
|
14802
14802
|
"aria-describedby": this.getElementId("placeholder")
|
14803
14803
|
});
|
14804
|
-
return i ? /* @__PURE__ */
|
14804
|
+
return i ? /* @__PURE__ */ N.createElement(m, le({}, b, {
|
14805
14805
|
autoCapitalize: "none",
|
14806
14806
|
autoComplete: "off",
|
14807
14807
|
autoCorrect: "off",
|
@@ -14817,7 +14817,7 @@ var ap = function(t) {
|
|
14817
14817
|
form: c,
|
14818
14818
|
type: "text",
|
14819
14819
|
value: s
|
14820
|
-
}, D)) : /* @__PURE__ */
|
14820
|
+
}, D)) : /* @__PURE__ */ N.createElement(MI, le({
|
14821
14821
|
id: y,
|
14822
14822
|
innerRef: this.getInputRef,
|
14823
14823
|
onBlur: this.onInputBlur,
|
@@ -14836,7 +14836,7 @@ var ap = function(t) {
|
|
14836
14836
|
value: function() {
|
14837
14837
|
var a = this, o = this.getComponents(), i = o.MultiValue, u = o.MultiValueContainer, s = o.MultiValueLabel, l = o.MultiValueRemove, c = o.SingleValue, f = o.Placeholder, g = this.commonProps, d = this.props, m = d.controlShouldRenderValue, h = d.isDisabled, v = d.isMulti, p = d.inputValue, b = d.placeholder, y = this.state, D = y.selectValue, x = y.focusedValue, w = y.isFocused;
|
14838
14838
|
if (!this.hasValue() || !m)
|
14839
|
-
return p ? null : /* @__PURE__ */
|
14839
|
+
return p ? null : /* @__PURE__ */ N.createElement(f, le({}, g, {
|
14840
14840
|
key: "placeholder",
|
14841
14841
|
isDisabled: h,
|
14842
14842
|
isFocused: w,
|
@@ -14847,7 +14847,7 @@ var ap = function(t) {
|
|
14847
14847
|
if (v)
|
14848
14848
|
return D.map(function(C, B) {
|
14849
14849
|
var T = C === x, E = "".concat(a.getOptionLabel(C), "-").concat(a.getOptionValue(C));
|
14850
|
-
return /* @__PURE__ */
|
14850
|
+
return /* @__PURE__ */ N.createElement(i, le({}, g, {
|
14851
14851
|
components: {
|
14852
14852
|
Container: u,
|
14853
14853
|
Label: s,
|
@@ -14864,8 +14864,8 @@ var ap = function(t) {
|
|
14864
14864
|
onTouchEnd: function() {
|
14865
14865
|
return a.removeValue(C);
|
14866
14866
|
},
|
14867
|
-
onMouseDown: function(
|
14868
|
-
|
14867
|
+
onMouseDown: function(P) {
|
14868
|
+
P.preventDefault();
|
14869
14869
|
}
|
14870
14870
|
},
|
14871
14871
|
data: C
|
@@ -14874,7 +14874,7 @@ var ap = function(t) {
|
|
14874
14874
|
if (p)
|
14875
14875
|
return null;
|
14876
14876
|
var R = D[0];
|
14877
|
-
return /* @__PURE__ */
|
14877
|
+
return /* @__PURE__ */ N.createElement(c, le({}, g, {
|
14878
14878
|
data: R,
|
14879
14879
|
isDisabled: h
|
14880
14880
|
}), this.formatOptionLabel(R, "value"));
|
@@ -14890,7 +14890,7 @@ var ap = function(t) {
|
|
14890
14890
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
14891
14891
|
"aria-hidden": "true"
|
14892
14892
|
};
|
14893
|
-
return /* @__PURE__ */
|
14893
|
+
return /* @__PURE__ */ N.createElement(o, le({}, i, {
|
14894
14894
|
innerProps: f,
|
14895
14895
|
isFocused: c
|
14896
14896
|
}));
|
@@ -14903,7 +14903,7 @@ var ap = function(t) {
|
|
14903
14903
|
var f = {
|
14904
14904
|
"aria-hidden": "true"
|
14905
14905
|
};
|
14906
|
-
return /* @__PURE__ */
|
14906
|
+
return /* @__PURE__ */ N.createElement(o, le({}, i, {
|
14907
14907
|
innerProps: f,
|
14908
14908
|
isDisabled: s,
|
14909
14909
|
isFocused: c
|
@@ -14915,7 +14915,7 @@ var ap = function(t) {
|
|
14915
14915
|
var a = this.getComponents(), o = a.DropdownIndicator, i = a.IndicatorSeparator;
|
14916
14916
|
if (!o || !i) return null;
|
14917
14917
|
var u = this.commonProps, s = this.props.isDisabled, l = this.state.isFocused;
|
14918
|
-
return /* @__PURE__ */
|
14918
|
+
return /* @__PURE__ */ N.createElement(i, le({}, u, {
|
14919
14919
|
isDisabled: s,
|
14920
14920
|
isFocused: l
|
14921
14921
|
}));
|
@@ -14930,7 +14930,7 @@ var ap = function(t) {
|
|
14930
14930
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
14931
14931
|
"aria-hidden": "true"
|
14932
14932
|
};
|
14933
|
-
return /* @__PURE__ */
|
14933
|
+
return /* @__PURE__ */ N.createElement(o, le({}, i, {
|
14934
14934
|
innerProps: l,
|
14935
14935
|
isDisabled: u,
|
14936
14936
|
isFocused: s
|
@@ -14939,14 +14939,14 @@ var ap = function(t) {
|
|
14939
14939
|
}, {
|
14940
14940
|
key: "renderMenu",
|
14941
14941
|
value: function() {
|
14942
|
-
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, x = v.minMenuHeight, w = v.maxMenuHeight, R = v.menuIsOpen, C = v.menuPlacement, B = v.menuPosition, T = v.menuPortalTarget, E = v.menuShouldBlockScroll, V = v.menuShouldScrollIntoView,
|
14942
|
+
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, x = v.minMenuHeight, w = v.maxMenuHeight, R = v.menuIsOpen, C = v.menuPlacement, B = v.menuPosition, T = v.menuPortalTarget, E = v.menuShouldBlockScroll, V = v.menuShouldScrollIntoView, P = v.noOptionsMessage, $ = v.onMenuScrollToTop, M = v.onMenuScrollToBottom;
|
14943
14943
|
if (!R) return null;
|
14944
|
-
var
|
14945
|
-
var
|
14946
|
-
return a.onOptionHover(
|
14944
|
+
var A = function(ie, Se) {
|
14945
|
+
var U = ie.type, _ = ie.data, j = ie.isDisabled, Y = ie.isSelected, ne = ie.label, fe = ie.value, ce = h === _, z = j ? void 0 : function() {
|
14946
|
+
return a.onOptionHover(_);
|
14947
14947
|
}, qe = j ? void 0 : function() {
|
14948
|
-
return a.selectOption(
|
14949
|
-
}, We = "".concat(a.getElementId("option"), "-").concat(
|
14948
|
+
return a.selectOption(_);
|
14949
|
+
}, We = "".concat(a.getElementId("option"), "-").concat(Se), je = {
|
14950
14950
|
id: We,
|
14951
14951
|
onClick: qe,
|
14952
14952
|
onMouseMove: z,
|
@@ -14956,14 +14956,14 @@ var ap = function(t) {
|
|
14956
14956
|
"aria-selected": a.isAppleDevice ? void 0 : Y
|
14957
14957
|
// is not supported on Apple devices
|
14958
14958
|
};
|
14959
|
-
return /* @__PURE__ */
|
14959
|
+
return /* @__PURE__ */ N.createElement(d, le({}, m, {
|
14960
14960
|
innerProps: je,
|
14961
|
-
data:
|
14961
|
+
data: _,
|
14962
14962
|
isDisabled: j,
|
14963
14963
|
isSelected: Y,
|
14964
14964
|
key: We,
|
14965
14965
|
label: ne,
|
14966
|
-
type:
|
14966
|
+
type: U,
|
14967
14967
|
value: fe,
|
14968
14968
|
isFocused: ce,
|
14969
14969
|
innerRef: ce ? a.getFocusedOptionRef : void 0
|
@@ -14972,11 +14972,11 @@ var ap = function(t) {
|
|
14972
14972
|
if (this.hasOptions())
|
14973
14973
|
S = this.getCategorizedOptions().map(function(W) {
|
14974
14974
|
if (W.type === "group") {
|
14975
|
-
var ie = W.data,
|
14976
|
-
return /* @__PURE__ */
|
14977
|
-
key:
|
14975
|
+
var ie = W.data, Se = W.options, U = W.index, _ = "".concat(a.getElementId("group"), "-").concat(U), j = "".concat(_, "-heading");
|
14976
|
+
return /* @__PURE__ */ N.createElement(i, le({}, m, {
|
14977
|
+
key: _,
|
14978
14978
|
data: ie,
|
14979
|
-
options:
|
14979
|
+
options: Se,
|
14980
14980
|
Heading: u,
|
14981
14981
|
headingProps: {
|
14982
14982
|
id: j,
|
@@ -14984,47 +14984,47 @@ var ap = function(t) {
|
|
14984
14984
|
},
|
14985
14985
|
label: a.formatGroupLabel(W.data)
|
14986
14986
|
}), W.options.map(function(Y) {
|
14987
|
-
return
|
14987
|
+
return A(Y, "".concat(U, "-").concat(Y.index));
|
14988
14988
|
}));
|
14989
14989
|
} else if (W.type === "option")
|
14990
|
-
return
|
14990
|
+
return A(W, "".concat(W.index));
|
14991
14991
|
});
|
14992
14992
|
else if (y) {
|
14993
14993
|
var L = D({
|
14994
14994
|
inputValue: b
|
14995
14995
|
});
|
14996
14996
|
if (L === null) return null;
|
14997
|
-
S = /* @__PURE__ */
|
14997
|
+
S = /* @__PURE__ */ N.createElement(f, m, L);
|
14998
14998
|
} else {
|
14999
|
-
var
|
14999
|
+
var G = P({
|
15000
15000
|
inputValue: b
|
15001
15001
|
});
|
15002
|
-
if (
|
15003
|
-
S = /* @__PURE__ */
|
15002
|
+
if (G === null) return null;
|
15003
|
+
S = /* @__PURE__ */ N.createElement(g, m, G);
|
15004
15004
|
}
|
15005
|
-
var
|
15005
|
+
var H = {
|
15006
15006
|
minMenuHeight: x,
|
15007
15007
|
maxMenuHeight: w,
|
15008
15008
|
menuPlacement: C,
|
15009
15009
|
menuPosition: B,
|
15010
15010
|
menuShouldScrollIntoView: V
|
15011
|
-
}, O = /* @__PURE__ */
|
15012
|
-
var ie = W.ref,
|
15013
|
-
return /* @__PURE__ */
|
15011
|
+
}, O = /* @__PURE__ */ N.createElement(gw, le({}, m, H), function(W) {
|
15012
|
+
var ie = W.ref, Se = W.placerProps, U = Se.placement, _ = Se.maxHeight;
|
15013
|
+
return /* @__PURE__ */ N.createElement(s, le({}, m, H, {
|
15014
15014
|
innerRef: ie,
|
15015
15015
|
innerProps: {
|
15016
15016
|
onMouseDown: a.onMenuMouseDown,
|
15017
15017
|
onMouseMove: a.onMenuMouseMove
|
15018
15018
|
},
|
15019
15019
|
isLoading: y,
|
15020
|
-
placement:
|
15021
|
-
}), /* @__PURE__ */
|
15020
|
+
placement: U
|
15021
|
+
}), /* @__PURE__ */ N.createElement(jI, {
|
15022
15022
|
captureEnabled: p,
|
15023
15023
|
onTopArrive: $,
|
15024
15024
|
onBottomArrive: M,
|
15025
15025
|
lockEnabled: E
|
15026
15026
|
}, function(j) {
|
15027
|
-
return /* @__PURE__ */
|
15027
|
+
return /* @__PURE__ */ N.createElement(l, le({}, m, {
|
15028
15028
|
innerRef: function(ne) {
|
15029
15029
|
a.getMenuListRef(ne), j(ne);
|
15030
15030
|
},
|
@@ -15034,12 +15034,12 @@ var ap = function(t) {
|
|
15034
15034
|
id: a.getElementId("listbox")
|
15035
15035
|
},
|
15036
15036
|
isLoading: y,
|
15037
|
-
maxHeight:
|
15037
|
+
maxHeight: _,
|
15038
15038
|
focusedOption: h
|
15039
15039
|
}), S);
|
15040
15040
|
}));
|
15041
15041
|
});
|
15042
|
-
return T || B === "fixed" ? /* @__PURE__ */
|
15042
|
+
return T || B === "fixed" ? /* @__PURE__ */ N.createElement(c, le({}, m, {
|
15043
15043
|
appendTo: T,
|
15044
15044
|
controlElement: this.controlRef,
|
15045
15045
|
menuPlacement: C,
|
@@ -15051,7 +15051,7 @@ var ap = function(t) {
|
|
15051
15051
|
value: function() {
|
15052
15052
|
var a = this, o = this.props, i = o.delimiter, u = o.isDisabled, s = o.isMulti, l = o.name, c = o.required, f = this.state.selectValue;
|
15053
15053
|
if (c && !this.hasValue() && !u)
|
15054
|
-
return /* @__PURE__ */
|
15054
|
+
return /* @__PURE__ */ N.createElement(YI, {
|
15055
15055
|
name: l,
|
15056
15056
|
onFocus: this.onValueInputFocus
|
15057
15057
|
});
|
@@ -15061,29 +15061,29 @@ var ap = function(t) {
|
|
15061
15061
|
var g = f.map(function(h) {
|
15062
15062
|
return a.getOptionValue(h);
|
15063
15063
|
}).join(i);
|
15064
|
-
return /* @__PURE__ */
|
15064
|
+
return /* @__PURE__ */ N.createElement("input", {
|
15065
15065
|
name: l,
|
15066
15066
|
type: "hidden",
|
15067
15067
|
value: g
|
15068
15068
|
});
|
15069
15069
|
} else {
|
15070
15070
|
var d = f.length > 0 ? f.map(function(h, v) {
|
15071
|
-
return /* @__PURE__ */
|
15071
|
+
return /* @__PURE__ */ N.createElement("input", {
|
15072
15072
|
key: "i-".concat(v),
|
15073
15073
|
name: l,
|
15074
15074
|
type: "hidden",
|
15075
15075
|
value: a.getOptionValue(h)
|
15076
15076
|
});
|
15077
|
-
}) : /* @__PURE__ */
|
15077
|
+
}) : /* @__PURE__ */ N.createElement("input", {
|
15078
15078
|
name: l,
|
15079
15079
|
type: "hidden",
|
15080
15080
|
value: ""
|
15081
15081
|
});
|
15082
|
-
return /* @__PURE__ */
|
15082
|
+
return /* @__PURE__ */ N.createElement("div", null, d);
|
15083
15083
|
}
|
15084
15084
|
else {
|
15085
15085
|
var m = f[0] ? this.getOptionValue(f[0]) : "";
|
15086
|
-
return /* @__PURE__ */
|
15086
|
+
return /* @__PURE__ */ N.createElement("input", {
|
15087
15087
|
name: l,
|
15088
15088
|
type: "hidden",
|
15089
15089
|
value: m
|
@@ -15094,7 +15094,7 @@ var ap = function(t) {
|
|
15094
15094
|
key: "renderLiveRegion",
|
15095
15095
|
value: function() {
|
15096
15096
|
var a = this.commonProps, o = this.state, i = o.ariaSelection, u = o.focusedOption, s = o.focusedValue, l = o.isFocused, c = o.selectValue, f = this.getFocusableOptions();
|
15097
|
-
return /* @__PURE__ */
|
15097
|
+
return /* @__PURE__ */ N.createElement(PI, le({}, a, {
|
15098
15098
|
id: this.getElementId("live-region"),
|
15099
15099
|
ariaSelection: i,
|
15100
15100
|
focusedOption: u,
|
@@ -15109,7 +15109,7 @@ var ap = function(t) {
|
|
15109
15109
|
key: "render",
|
15110
15110
|
value: function() {
|
15111
15111
|
var a = this.getComponents(), o = a.Control, i = a.IndicatorsContainer, u = a.SelectContainer, s = a.ValueContainer, l = this.props, c = l.className, f = l.id, g = l.isDisabled, d = l.menuIsOpen, m = this.state.isFocused, h = this.commonProps = this.getCommonProps();
|
15112
|
-
return /* @__PURE__ */
|
15112
|
+
return /* @__PURE__ */ N.createElement(u, le({}, h, {
|
15113
15113
|
className: c,
|
15114
15114
|
innerProps: {
|
15115
15115
|
id: f,
|
@@ -15117,7 +15117,7 @@ var ap = function(t) {
|
|
15117
15117
|
},
|
15118
15118
|
isDisabled: g,
|
15119
15119
|
isFocused: m
|
15120
|
-
}), this.renderLiveRegion(), /* @__PURE__ */
|
15120
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ N.createElement(o, le({}, h, {
|
15121
15121
|
innerRef: this.getControlRef,
|
15122
15122
|
innerProps: {
|
15123
15123
|
onMouseDown: this.onControlMouseDown,
|
@@ -15126,9 +15126,9 @@ var ap = function(t) {
|
|
15126
15126
|
isDisabled: g,
|
15127
15127
|
isFocused: m,
|
15128
15128
|
menuIsOpen: d
|
15129
|
-
}), /* @__PURE__ */
|
15129
|
+
}), /* @__PURE__ */ N.createElement(s, le({}, h, {
|
15130
15130
|
isDisabled: g
|
15131
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */
|
15131
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ N.createElement(i, le({}, h, {
|
15132
15132
|
isDisabled: g
|
15133
15133
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
15134
15134
|
}
|
@@ -15166,7 +15166,7 @@ var ap = function(t) {
|
|
15166
15166
|
op.defaultProps = lE;
|
15167
15167
|
var mE = /* @__PURE__ */ Ft(function(e, t) {
|
15168
15168
|
var n = EC(e);
|
15169
|
-
return /* @__PURE__ */
|
15169
|
+
return /* @__PURE__ */ N.createElement(op, le({
|
15170
15170
|
ref: t
|
15171
15171
|
}, n));
|
15172
15172
|
}), pE = mE;
|
@@ -15258,69 +15258,70 @@ const hE = "_container_10l1t_1", bE = "_error_10l1t_4", Ld = {
|
|
15258
15258
|
floatingOptions: B = {},
|
15259
15259
|
offsetPopover: T = 5,
|
15260
15260
|
...E
|
15261
|
-
} = e, V = be(null),
|
15262
|
-
|
15263
|
-
|
15264
|
-
|
15265
|
-
|
15266
|
-
|
15267
|
-
},
|
15268
|
-
|
15261
|
+
} = e, V = be(null), P = be(null), [$, M] = te(""), [A, S] = te(!1), [L, G] = te({}), [H, O] = te(0), W = (_) => {
|
15262
|
+
var j;
|
15263
|
+
(j = P.current) == null || j.handlerShow(_), O(V.current.offsetWidth), S((Y) => !Y);
|
15264
|
+
}, ie = () => {
|
15265
|
+
var _;
|
15266
|
+
h && ((_ = P.current) == null || _.setShow(!1)), M("");
|
15267
|
+
}, Se = (_, j) => {
|
15268
|
+
d && S(!1), G(_), typeof c == "function" && c(_, j);
|
15269
|
+
}, U = () => {
|
15270
|
+
V.current && O(V.current.offsetWidth);
|
15269
15271
|
};
|
15270
|
-
return
|
15272
|
+
return Ee(() => {
|
15271
15273
|
f && G(g);
|
15272
|
-
}, [f, g]),
|
15273
|
-
|
15274
|
-
}, [
|
15274
|
+
}, [f, g]), Ee(() => {
|
15275
|
+
A ? m() : A || p();
|
15276
|
+
}, [A]), Pf(
|
15275
15277
|
t,
|
15276
15278
|
() => ({
|
15277
|
-
selectValue:
|
15279
|
+
selectValue: L,
|
15278
15280
|
setSelectValue: G,
|
15279
|
-
handlerClose:
|
15280
|
-
handlerShow:
|
15281
|
-
show:
|
15282
|
-
setShow:
|
15281
|
+
handlerClose: ie,
|
15282
|
+
handlerShow: W,
|
15283
|
+
show: A,
|
15284
|
+
setShow: S
|
15283
15285
|
}),
|
15284
|
-
[
|
15285
|
-
),
|
15286
|
-
window.removeEventListener("resize",
|
15286
|
+
[A]
|
15287
|
+
), Ee(() => (window.addEventListener("resize", U), window.addEventListener("load", U), () => {
|
15288
|
+
window.removeEventListener("resize", U), window.removeEventListener("load", U);
|
15287
15289
|
}), [V]), /* @__PURE__ */ I.jsxs(
|
15288
15290
|
"div",
|
15289
15291
|
{
|
15290
15292
|
id: y,
|
15291
|
-
className: `${Ld.container} ${o} ${
|
15293
|
+
className: `${Ld.container} ${o} ${A ? `${i} open-popover` : null}`,
|
15292
15294
|
ref: V,
|
15293
15295
|
children: [
|
15294
15296
|
r({
|
15295
|
-
selectValue:
|
15297
|
+
selectValue: L,
|
15296
15298
|
setSelectValue: G,
|
15297
|
-
handlerClose:
|
15298
|
-
handlerShow:
|
15299
|
-
show:
|
15300
|
-
setShow:
|
15299
|
+
handlerClose: ie,
|
15300
|
+
handlerShow: W,
|
15301
|
+
show: A,
|
15302
|
+
setShow: S
|
15301
15303
|
}),
|
15302
15304
|
/* @__PURE__ */ I.jsx(
|
15303
15305
|
_i,
|
15304
15306
|
{
|
15307
|
+
ref: P,
|
15305
15308
|
offset: T,
|
15306
15309
|
useAutoPlacement: x,
|
15307
15310
|
flipOptions: w,
|
15308
15311
|
autoPlacementOptions: R,
|
15309
|
-
isShow: S,
|
15310
|
-
anchorEl: M,
|
15311
15312
|
zIndex: b,
|
15312
15313
|
styleInnerPopover: v,
|
15313
15314
|
id: D,
|
15314
|
-
width: n ??
|
15315
|
+
width: n ?? H,
|
15315
15316
|
className: u,
|
15316
15317
|
floatingOptions: B,
|
15317
15318
|
children: /* @__PURE__ */ I.jsx(
|
15318
15319
|
pE,
|
15319
15320
|
{
|
15320
15321
|
className: "1ru-w-full",
|
15321
|
-
inputValue:
|
15322
|
-
onInputChange: (
|
15323
|
-
|
15322
|
+
inputValue: $,
|
15323
|
+
onInputChange: (_, { action: j }) => {
|
15324
|
+
j === "input-change" && M(_);
|
15324
15325
|
},
|
15325
15326
|
openMenuOnFocus: !0,
|
15326
15327
|
autoFocus: !0,
|
@@ -15336,7 +15337,7 @@ const hE = "_container_10l1t_1", bE = "_error_10l1t_4", Ld = {
|
|
15336
15337
|
tabSelectsValue: !1,
|
15337
15338
|
styles: C ? vE : yE,
|
15338
15339
|
noOptionsMessage: () => "Tidak ada data.",
|
15339
|
-
onChange:
|
15340
|
+
onChange: Se,
|
15340
15341
|
...E
|
15341
15342
|
}
|
15342
15343
|
)
|
@@ -16954,7 +16955,7 @@ function na(e) {
|
|
16954
16955
|
};
|
16955
16956
|
}, [
|
16956
16957
|
a
|
16957
|
-
]),
|
16958
|
+
]), Ee(() => {
|
16958
16959
|
let i = r.current;
|
16959
16960
|
i && (r.current = null, n(i));
|
16960
16961
|
}), a;
|
@@ -17187,7 +17188,7 @@ function L2() {
|
|
17187
17188
|
}, [
|
17188
17189
|
n
|
17189
17190
|
]);
|
17190
|
-
return
|
17191
|
+
return Ee(() => r, [
|
17191
17192
|
r
|
17192
17193
|
]), {
|
17193
17194
|
addGlobalListener: t,
|
@@ -17210,9 +17211,9 @@ function jl(e, t) {
|
|
17210
17211
|
}
|
17211
17212
|
function uf(e, t) {
|
17212
17213
|
const n = be(!0), r = be(null);
|
17213
|
-
|
17214
|
+
Ee(() => (n.current = !0, () => {
|
17214
17215
|
n.current = !1;
|
17215
|
-
}), []),
|
17216
|
+
}), []), Ee(() => {
|
17216
17217
|
n.current ? n.current = !1 : (!r.current || t.some((a, o) => !Object.is(a, r[o]))) && e(), r.current = t;
|
17217
17218
|
}, t);
|
17218
17219
|
}
|
@@ -17268,7 +17269,7 @@ function Gp(e) {
|
|
17268
17269
|
}
|
17269
17270
|
function _u(e, t, n, r) {
|
17270
17271
|
let a = vn(n), o = n == null;
|
17271
|
-
|
17272
|
+
Ee(() => {
|
17272
17273
|
if (o || !e.current) return;
|
17273
17274
|
let i = e.current;
|
17274
17275
|
return i.addEventListener(t, a, r), () => {
|
@@ -17335,7 +17336,7 @@ function Hp(e, t) {
|
|
17335
17336
|
}
|
17336
17337
|
function Ua(e, t, n) {
|
17337
17338
|
let [r, a] = te(e || t), o = be(e !== void 0), i = e !== void 0;
|
17338
|
-
|
17339
|
+
Ee(() => {
|
17339
17340
|
let l = o.current;
|
17340
17341
|
l !== i && console.warn(`WARN: A component changed from ${l ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}.`), o.current = i;
|
17341
17342
|
}, [
|
@@ -17477,12 +17478,12 @@ function zl(e) {
|
|
17477
17478
|
E.ignoreClickAfterPress = !0, E.didFirePressStart = !1, E.isTriggeringEvent = !0;
|
17478
17479
|
let V = !0;
|
17479
17480
|
if (a) {
|
17480
|
-
let
|
17481
|
-
a(
|
17481
|
+
let P = new Bo("pressend", B, C);
|
17482
|
+
a(P), V = P.shouldStopPropagation;
|
17482
17483
|
}
|
17483
17484
|
if (n && n(!1), m(!1), t && T && !i) {
|
17484
|
-
let
|
17485
|
-
t(
|
17485
|
+
let P = new Bo("press", B, C);
|
17486
|
+
t(P), V && (V = P.shouldStopPropagation);
|
17486
17487
|
}
|
17487
17488
|
return E.isTriggeringEvent = !1, V;
|
17488
17489
|
}), D = vn((C, B) => {
|
@@ -17505,15 +17506,15 @@ function zl(e) {
|
|
17505
17506
|
if (Mu(E.nativeEvent, E.currentTarget) && E.currentTarget.contains(E.target)) {
|
17506
17507
|
var V;
|
17507
17508
|
gf(E.target, E.key) && E.preventDefault();
|
17508
|
-
let
|
17509
|
+
let P = !0;
|
17509
17510
|
if (!C.isPressed && !E.repeat) {
|
17510
|
-
C.target = E.currentTarget, C.isPressed = !0,
|
17511
|
-
let $ = E.currentTarget, M = (
|
17512
|
-
Mu(
|
17511
|
+
C.target = E.currentTarget, C.isPressed = !0, P = b(E, "keyboard");
|
17512
|
+
let $ = E.currentTarget, M = (A) => {
|
17513
|
+
Mu(A, $) && !A.repeat && $.contains(A.target) && C.target && D(hn(C.target, A), "keyboard");
|
17513
17514
|
};
|
17514
17515
|
v(ht(E.currentTarget), "keyup", Vp(M, T), !0);
|
17515
17516
|
}
|
17516
|
-
|
17517
|
+
P && E.stopPropagation(), E.metaKey && Xa() && ((V = C.metaKeyEvents) === null || V === void 0 || V.set(E.key, E.nativeEvent));
|
17517
17518
|
} else E.key === "Meta" && (C.metaKeyEvents = /* @__PURE__ */ new Map());
|
17518
17519
|
},
|
17519
17520
|
onClick(E) {
|
@@ -17521,8 +17522,8 @@ function zl(e) {
|
|
17521
17522
|
let V = !0;
|
17522
17523
|
if (i && E.preventDefault(), !C.ignoreClickAfterPress && !C.ignoreEmulatedMouseEvents && !C.isPressed && (C.pointerType === "virtual" || Rs(E.nativeEvent))) {
|
17523
17524
|
!i && !s && Ln(E.currentTarget);
|
17524
|
-
let
|
17525
|
-
V =
|
17525
|
+
let P = b(E, "virtual"), $ = D(E, "virtual"), M = y(E, "virtual");
|
17526
|
+
V = P && $ && M;
|
17526
17527
|
}
|
17527
17528
|
C.ignoreEmulatedMouseEvents = !1, C.ignoreClickAfterPress = !1, V && E.stopPropagation();
|
17528
17529
|
}
|
@@ -17530,15 +17531,15 @@ function zl(e) {
|
|
17530
17531
|
}, T = (E) => {
|
17531
17532
|
var V;
|
17532
17533
|
if (C.isPressed && C.target && Mu(E, C.target)) {
|
17533
|
-
var
|
17534
|
+
var P;
|
17534
17535
|
gf(E.target, E.key) && E.preventDefault();
|
17535
17536
|
let M = E.target;
|
17536
|
-
y(hn(C.target, E), "keyboard", C.target.contains(M)), p(), E.key !== "Enter" && Zl(C.target) && C.target.contains(M) && !E[df] && (E[df] = !0, Ya(C.target, E, !1)), C.isPressed = !1, (
|
17537
|
+
y(hn(C.target, E), "keyboard", C.target.contains(M)), p(), E.key !== "Enter" && Zl(C.target) && C.target.contains(M) && !E[df] && (E[df] = !0, Ya(C.target, E, !1)), C.isPressed = !1, (P = C.metaKeyEvents) === null || P === void 0 || P.delete(E.key);
|
17537
17538
|
} else if (E.key === "Meta" && (!((V = C.metaKeyEvents) === null || V === void 0) && V.size)) {
|
17538
17539
|
var $;
|
17539
17540
|
let M = C.metaKeyEvents;
|
17540
17541
|
C.metaKeyEvents = void 0;
|
17541
|
-
for (let
|
17542
|
+
for (let A of M.values()) ($ = C.target) === null || $ === void 0 || $.dispatchEvent(new KeyboardEvent("keyup", A));
|
17542
17543
|
}
|
17543
17544
|
};
|
17544
17545
|
if (typeof PointerEvent < "u") {
|
@@ -17550,7 +17551,7 @@ function zl(e) {
|
|
17550
17551
|
}
|
17551
17552
|
Nu($.currentTarget) && $.preventDefault(), C.pointerType = $.pointerType;
|
17552
17553
|
let M = !0;
|
17553
|
-
C.isPressed || (C.isPressed = !0, C.isOverTarget = !0, C.activePointerId = $.pointerId, C.target = $.currentTarget, !i && !s && Ln($.currentTarget), c || lf(C.target), M = b($, C.pointerType), v(ht($.currentTarget), "pointermove", E, !1), v(ht($.currentTarget), "pointerup", V, !1), v(ht($.currentTarget), "pointercancel",
|
17554
|
+
C.isPressed || (C.isPressed = !0, C.isOverTarget = !0, C.activePointerId = $.pointerId, C.target = $.currentTarget, !i && !s && Ln($.currentTarget), c || lf(C.target), M = b($, C.pointerType), v(ht($.currentTarget), "pointermove", E, !1), v(ht($.currentTarget), "pointerup", V, !1), v(ht($.currentTarget), "pointercancel", P, !1)), M && $.stopPropagation();
|
17554
17555
|
}, B.onMouseDown = ($) => {
|
17555
17556
|
$.currentTarget.contains($.target) && $.button === 0 && (Nu($.currentTarget) && $.preventDefault(), $.stopPropagation());
|
17556
17557
|
}, B.onPointerUp = ($) => {
|
@@ -17560,66 +17561,66 @@ function zl(e) {
|
|
17560
17561
|
$.pointerId === C.activePointerId && (C.target && kr($, C.target) ? !C.isOverTarget && C.pointerType != null && (C.isOverTarget = !0, b(hn(C.target, $), C.pointerType)) : C.target && C.isOverTarget && C.pointerType != null && (C.isOverTarget = !1, y(hn(C.target, $), C.pointerType, !1), w($)));
|
17561
17562
|
}, V = ($) => {
|
17562
17563
|
$.pointerId === C.activePointerId && C.isPressed && $.button === 0 && C.target && (kr($, C.target) && C.pointerType != null ? y(hn(C.target, $), C.pointerType) : C.isOverTarget && C.pointerType != null && y(hn(C.target, $), C.pointerType, !1), C.isPressed = !1, C.isOverTarget = !1, C.activePointerId = null, C.pointerType = null, p(), c || Ao(C.target));
|
17563
|
-
},
|
17564
|
+
}, P = ($) => {
|
17564
17565
|
x($);
|
17565
17566
|
};
|
17566
17567
|
B.onDragStart = ($) => {
|
17567
17568
|
$.currentTarget.contains($.target) && x($);
|
17568
17569
|
};
|
17569
17570
|
} else {
|
17570
|
-
B.onMouseDown = (
|
17571
|
-
if (
|
17572
|
-
if (Nu(
|
17573
|
-
|
17571
|
+
B.onMouseDown = (P) => {
|
17572
|
+
if (P.button !== 0 || !P.currentTarget.contains(P.target)) return;
|
17573
|
+
if (Nu(P.currentTarget) && P.preventDefault(), C.ignoreEmulatedMouseEvents) {
|
17574
|
+
P.stopPropagation();
|
17574
17575
|
return;
|
17575
17576
|
}
|
17576
|
-
C.isPressed = !0, C.isOverTarget = !0, C.target =
|
17577
|
-
}, B.onMouseEnter = (
|
17578
|
-
if (!
|
17577
|
+
C.isPressed = !0, C.isOverTarget = !0, C.target = P.currentTarget, C.pointerType = Rs(P.nativeEvent) ? "virtual" : "mouse", !i && !s && Ln(P.currentTarget), b(P, C.pointerType) && P.stopPropagation(), v(ht(P.currentTarget), "mouseup", E, !1);
|
17578
|
+
}, B.onMouseEnter = (P) => {
|
17579
|
+
if (!P.currentTarget.contains(P.target)) return;
|
17579
17580
|
let $ = !0;
|
17580
|
-
C.isPressed && !C.ignoreEmulatedMouseEvents && C.pointerType != null && (C.isOverTarget = !0, $ = b(
|
17581
|
-
}, B.onMouseLeave = (
|
17582
|
-
if (!
|
17581
|
+
C.isPressed && !C.ignoreEmulatedMouseEvents && C.pointerType != null && (C.isOverTarget = !0, $ = b(P, C.pointerType)), $ && P.stopPropagation();
|
17582
|
+
}, B.onMouseLeave = (P) => {
|
17583
|
+
if (!P.currentTarget.contains(P.target)) return;
|
17583
17584
|
let $ = !0;
|
17584
|
-
C.isPressed && !C.ignoreEmulatedMouseEvents && C.pointerType != null && (C.isOverTarget = !1, $ = y(
|
17585
|
-
}, B.onMouseUp = (
|
17586
|
-
|
17585
|
+
C.isPressed && !C.ignoreEmulatedMouseEvents && C.pointerType != null && (C.isOverTarget = !1, $ = y(P, C.pointerType, !1), w(P)), $ && P.stopPropagation();
|
17586
|
+
}, B.onMouseUp = (P) => {
|
17587
|
+
P.currentTarget.contains(P.target) && !C.ignoreEmulatedMouseEvents && P.button === 0 && D(P, C.pointerType || "mouse");
|
17587
17588
|
};
|
17588
|
-
let E = (
|
17589
|
-
if (
|
17589
|
+
let E = (P) => {
|
17590
|
+
if (P.button === 0) {
|
17590
17591
|
if (C.isPressed = !1, p(), C.ignoreEmulatedMouseEvents) {
|
17591
17592
|
C.ignoreEmulatedMouseEvents = !1;
|
17592
17593
|
return;
|
17593
17594
|
}
|
17594
|
-
C.target && kr(
|
17595
|
+
C.target && kr(P, C.target) && C.pointerType != null ? y(hn(C.target, P), C.pointerType) : C.target && C.isOverTarget && C.pointerType != null && y(hn(C.target, P), C.pointerType, !1), C.isOverTarget = !1;
|
17595
17596
|
}
|
17596
17597
|
};
|
17597
|
-
B.onTouchStart = (
|
17598
|
-
if (!
|
17599
|
-
let $ = K2(
|
17598
|
+
B.onTouchStart = (P) => {
|
17599
|
+
if (!P.currentTarget.contains(P.target)) return;
|
17600
|
+
let $ = K2(P.nativeEvent);
|
17600
17601
|
if (!$) return;
|
17601
|
-
C.activePointerId = $.identifier, C.ignoreEmulatedMouseEvents = !0, C.isOverTarget = !0, C.isPressed = !0, C.target =
|
17602
|
-
}, B.onTouchMove = (
|
17603
|
-
if (!
|
17602
|
+
C.activePointerId = $.identifier, C.ignoreEmulatedMouseEvents = !0, C.isOverTarget = !0, C.isPressed = !0, C.target = P.currentTarget, C.pointerType = "touch", !i && !s && Ln(P.currentTarget), c || lf(C.target), b(P, C.pointerType) && P.stopPropagation(), v(Ut(P.currentTarget), "scroll", V, !0);
|
17603
|
+
}, B.onTouchMove = (P) => {
|
17604
|
+
if (!P.currentTarget.contains(P.target)) return;
|
17604
17605
|
if (!C.isPressed) {
|
17605
|
-
|
17606
|
+
P.stopPropagation();
|
17606
17607
|
return;
|
17607
17608
|
}
|
17608
|
-
let $ = ff(
|
17609
|
-
$ && kr($,
|
17610
|
-
}, B.onTouchEnd = (
|
17611
|
-
if (!
|
17609
|
+
let $ = ff(P.nativeEvent, C.activePointerId), M = !0;
|
17610
|
+
$ && kr($, P.currentTarget) ? !C.isOverTarget && C.pointerType != null && (C.isOverTarget = !0, M = b(P, C.pointerType)) : C.isOverTarget && C.pointerType != null && (C.isOverTarget = !1, M = y(P, C.pointerType, !1), w(P)), M && P.stopPropagation();
|
17611
|
+
}, B.onTouchEnd = (P) => {
|
17612
|
+
if (!P.currentTarget.contains(P.target)) return;
|
17612
17613
|
if (!C.isPressed) {
|
17613
|
-
|
17614
|
+
P.stopPropagation();
|
17614
17615
|
return;
|
17615
17616
|
}
|
17616
|
-
let $ = ff(
|
17617
|
-
$ && kr($,
|
17618
|
-
}, B.onTouchCancel = (
|
17619
|
-
|
17617
|
+
let $ = ff(P.nativeEvent, C.activePointerId), M = !0;
|
17618
|
+
$ && kr($, P.currentTarget) && C.pointerType != null ? (D(P, C.pointerType), M = y(P, C.pointerType)) : C.isOverTarget && C.pointerType != null && (M = y(P, C.pointerType, !1)), M && P.stopPropagation(), C.isPressed = !1, C.activePointerId = null, C.isOverTarget = !1, C.ignoreEmulatedMouseEvents = !0, C.target && !c && Ao(C.target), p();
|
17619
|
+
}, B.onTouchCancel = (P) => {
|
17620
|
+
P.currentTarget.contains(P.target) && (P.stopPropagation(), C.isPressed && x(P));
|
17620
17621
|
};
|
17621
|
-
let V = (
|
17622
|
-
C.isPressed &&
|
17622
|
+
let V = (P) => {
|
17623
|
+
C.isPressed && P.target.contains(C.target) && x({
|
17623
17624
|
currentTarget: C.target,
|
17624
17625
|
shiftKey: !1,
|
17625
17626
|
ctrlKey: !1,
|
@@ -17627,8 +17628,8 @@ function zl(e) {
|
|
17627
17628
|
altKey: !1
|
17628
17629
|
});
|
17629
17630
|
};
|
17630
|
-
B.onDragStart = (
|
17631
|
-
|
17631
|
+
B.onDragStart = (P) => {
|
17632
|
+
P.currentTarget.contains(P.target) && x(P);
|
17632
17633
|
};
|
17633
17634
|
}
|
17634
17635
|
return B;
|
@@ -17644,7 +17645,7 @@ function zl(e) {
|
|
17644
17645
|
b,
|
17645
17646
|
D
|
17646
17647
|
]);
|
17647
|
-
return
|
17648
|
+
return Ee(() => () => {
|
17648
17649
|
var C;
|
17649
17650
|
c || Ao((C = h.current.target) !== null && C !== void 0 ? C : void 0);
|
17650
17651
|
}, [
|
@@ -17881,7 +17882,7 @@ function i5(e, t, n) {
|
|
17881
17882
|
return e = e || (n == null ? void 0 : n.target) instanceof a && !o5.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof o || (n == null ? void 0 : n.target) instanceof i && (n == null ? void 0 : n.target.isContentEditable), !(e && t === "keyboard" && n instanceof u && !n5[n.key]);
|
17882
17883
|
}
|
17883
17884
|
function u5(e, t, n) {
|
17884
|
-
Bs(),
|
17885
|
+
Bs(), Ee(() => {
|
17885
17886
|
let r = (a, o) => {
|
17886
17887
|
i5(!!(n != null && n.isTextInput), a, o) && e(Qp());
|
17887
17888
|
};
|
@@ -18169,7 +18170,7 @@ function m5(e) {
|
|
18169
18170
|
}
|
18170
18171
|
function p5(e, t) {
|
18171
18172
|
let { focusProps: n } = Xp(e), { keyboardProps: r } = s5(e), a = Rt(n, r), o = m5(t), i = e.isDisabled ? {} : o, u = be(e.autoFocus);
|
18172
|
-
return
|
18173
|
+
return Ee(() => {
|
18173
18174
|
u.current && t.current && th(t.current), u.current = !1;
|
18174
18175
|
}, [
|
18175
18176
|
t
|
@@ -18243,7 +18244,7 @@ function hf() {
|
|
18243
18244
|
}
|
18244
18245
|
function sh() {
|
18245
18246
|
let e = Tp(), [t, n] = te(Ts);
|
18246
|
-
return
|
18247
|
+
return Ee(() => (Ca.size === 0 && window.addEventListener("languagechange", hf), Ca.add(n), () => {
|
18247
18248
|
Ca.delete(n), Ca.size === 0 && window.removeEventListener("languagechange", hf);
|
18248
18249
|
}), []), e ? {
|
18249
18250
|
locale: "en-US",
|
@@ -19350,7 +19351,7 @@ function B5(e, t, n) {
|
|
19350
19351
|
} else E.pointerType === "virtual" && (t.selectDate(r), t.setFocusedDate(r));
|
19351
19352
|
}
|
19352
19353
|
}), C = null;
|
19353
|
-
a || (C = rt(r, t.focusedDate) ? 0 : -1),
|
19354
|
+
a || (C = rt(r, t.focusedDate) ? 0 : -1), Ee(() => {
|
19354
19355
|
c && n.current && (Ln(n.current), qp() !== "pointer" && document.activeElement === n.current && z2(n.current, {
|
19355
19356
|
containingElement: G2(n.current)
|
19356
19357
|
}));
|
@@ -19466,7 +19467,7 @@ function k5(e) {
|
|
19466
19467
|
let T = l || o || p.current;
|
19467
19468
|
Gu(T, D.current) || (D.current = T, y(T));
|
19468
19469
|
}, [w, R] = te(!1);
|
19469
|
-
return
|
19470
|
+
return Ee(x), {
|
19470
19471
|
realtimeValidation: s || v || l || o || sr,
|
19471
19472
|
displayValidation: u === "native" ? s || v || b : s || v || l || o || b,
|
19472
19473
|
updateValidation(T) {
|
@@ -20346,7 +20347,7 @@ function W5(e, t, n) {
|
|
20346
20347
|
onBlurWithin: e.onBlur,
|
20347
20348
|
onFocusWithin: e.onFocus,
|
20348
20349
|
onFocusWithinChange: e.onFocusChange
|
20349
|
-
}), V = be(sr),
|
20350
|
+
}), V = be(sr), P = be(sr);
|
20350
20351
|
return {
|
20351
20352
|
groupProps: Rt(T, w, c, p, E, {
|
20352
20353
|
role: "group",
|
@@ -20391,7 +20392,7 @@ function W5(e, t, n) {
|
|
20391
20392
|
realtimeValidation: t.realtimeValidation,
|
20392
20393
|
displayValidation: t.displayValidation,
|
20393
20394
|
updateValidation($) {
|
20394
|
-
V.current = $, t.updateValidation(Fi($,
|
20395
|
+
V.current = $, t.updateValidation(Fi($, P.current));
|
20395
20396
|
},
|
20396
20397
|
resetValidation: t.resetValidation,
|
20397
20398
|
commitValidation: t.commitValidation
|
@@ -20407,7 +20408,7 @@ function W5(e, t, n) {
|
|
20407
20408
|
realtimeValidation: t.realtimeValidation,
|
20408
20409
|
displayValidation: t.displayValidation,
|
20409
20410
|
updateValidation($) {
|
20410
|
-
|
20411
|
+
P.current = $, t.updateValidation(Fi(V.current, $));
|
20411
20412
|
},
|
20412
20413
|
resetValidation: t.resetValidation,
|
20413
20414
|
commitValidation: t.commitValidation
|
@@ -20534,12 +20535,12 @@ function V0(e) {
|
|
20534
20535
|
S = it(S, (g == null ? void 0 : g.calendar) || new Nt()), g && "hour" in g ? d(g.set(S)) : d(S);
|
20535
20536
|
}
|
20536
20537
|
}
|
20537
|
-
let
|
20538
|
+
let P = ye(() => m ? l && l(m) ? !0 : Jr(m, i, u) : !1, [
|
20538
20539
|
m,
|
20539
20540
|
l,
|
20540
20541
|
i,
|
20541
20542
|
u
|
20542
|
-
]), $ = e.isInvalid || e.validationState === "invalid" ||
|
20543
|
+
]), $ = e.isInvalid || e.validationState === "invalid" || P, M = $ ? "invalid" : null, A = ye(() => c === "visible" ? o : Hu(o), [
|
20543
20544
|
c,
|
20544
20545
|
o
|
20545
20546
|
]);
|
@@ -20582,12 +20583,12 @@ function V0(e) {
|
|
20582
20583
|
}));
|
20583
20584
|
},
|
20584
20585
|
focusNextPage() {
|
20585
|
-
let S = D.add(
|
20586
|
-
y(Vn(b.add(
|
20586
|
+
let S = D.add(A);
|
20587
|
+
y(Vn(b.add(A), i, u)), x(fr(Ka(b, S, A, r, i, u), A, r));
|
20587
20588
|
},
|
20588
20589
|
focusPreviousPage() {
|
20589
|
-
let S = D.subtract(
|
20590
|
-
y(Vn(b.subtract(
|
20590
|
+
let S = D.subtract(A);
|
20591
|
+
y(Vn(b.subtract(A), i, u)), x(fr(Ka(b, S, A, r, i, u), A, r));
|
20591
20592
|
},
|
20592
20593
|
focusSectionStart() {
|
20593
20594
|
o.days ? E(D) : o.weeks ? E(Wa(b, r)) : (o.months || o.years) && E(lo(b));
|
@@ -20653,22 +20654,22 @@ function V0(e) {
|
|
20653
20654
|
return rt(S, C) || this.isInvalid(S, i, u);
|
20654
20655
|
},
|
20655
20656
|
getDatesInWeek(S, L = D) {
|
20656
|
-
let
|
20657
|
+
let G = L.add({
|
20657
20658
|
weeks: S
|
20658
|
-
}),
|
20659
|
-
|
20660
|
-
let O = Ui(
|
20661
|
-
for (let W = 0; W < O; W++)
|
20662
|
-
for (;
|
20663
|
-
|
20664
|
-
let W =
|
20659
|
+
}), H = [];
|
20660
|
+
G = Wa(G, r);
|
20661
|
+
let O = Ui(G, r);
|
20662
|
+
for (let W = 0; W < O; W++) H.push(null);
|
20663
|
+
for (; H.length < 7; ) {
|
20664
|
+
H.push(G);
|
20665
|
+
let W = G.add({
|
20665
20666
|
days: 1
|
20666
20667
|
});
|
20667
|
-
if (rt(
|
20668
|
-
|
20668
|
+
if (rt(G, W)) break;
|
20669
|
+
G = W;
|
20669
20670
|
}
|
20670
|
-
for (;
|
20671
|
-
return
|
20671
|
+
for (; H.length < 7; ) H.push(null);
|
20672
|
+
return H;
|
20672
20673
|
}
|
20673
20674
|
};
|
20674
20675
|
}
|
@@ -20723,8 +20724,8 @@ function j5(e) {
|
|
20723
20724
|
end: Df(L.end, c == null ? void 0 : c.end)
|
20724
20725
|
}), C(null);
|
20725
20726
|
}
|
20726
|
-
}, [E, V] = te(!1), { isDateUnavailable:
|
20727
|
-
|
20727
|
+
}, [E, V] = te(!1), { isDateUnavailable: P } = e, $ = ye(() => !c || g ? !1 : P && (P(c.start) || P(c.end)) ? !0 : Jr(c.start, u, s) || Jr(c.end, u, s), [
|
20728
|
+
P,
|
20728
20729
|
c,
|
20729
20730
|
g,
|
20730
20731
|
u,
|
@@ -20750,8 +20751,8 @@ function j5(e) {
|
|
20750
20751
|
return B && S.compare(B.start) >= 0 && S.compare(B.end) <= 0 && !D.isCellDisabled(S) && !D.isCellUnavailable(S);
|
20751
20752
|
},
|
20752
20753
|
isInvalid(S) {
|
20753
|
-
var L,
|
20754
|
-
return D.isInvalid(S) || Jr(S, (L = h.current) === null || L === void 0 ? void 0 : L.start, (
|
20754
|
+
var L, G;
|
20755
|
+
return D.isInvalid(S) || Jr(S, (L = h.current) === null || L === void 0 ? void 0 : L.start, (G = h.current) === null || G === void 0 ? void 0 : G.end);
|
20755
20756
|
},
|
20756
20757
|
isDragging: E,
|
20757
20758
|
setDragging: V
|
@@ -21192,28 +21193,28 @@ function K5(e) {
|
|
21192
21193
|
start: null,
|
21193
21194
|
end: null
|
21194
21195
|
}, u(i));
|
21195
|
-
let s = a || i, l = (
|
21196
|
-
u(
|
21196
|
+
let s = a || i, l = (A) => {
|
21197
|
+
u(A || {
|
21197
21198
|
start: null,
|
21198
21199
|
end: null
|
21199
|
-
}),
|
21200
|
+
}), A != null && A.start && A.end ? o(A) : o(null);
|
21200
21201
|
}, c = (s == null ? void 0 : s.start) || (s == null ? void 0 : s.end) || e.placeholderValue, [f, g] = J5(c, e.granularity), d = f === "hour" || f === "minute" || f === "second";
|
21201
21202
|
var m;
|
21202
21203
|
let h = (m = e.shouldCloseOnSelect) !== null && m !== void 0 ? m : !0, [v, p] = te(null), [b, y] = te(null);
|
21203
21204
|
s && s.start && s.end && (v = s, "hour" in s.start && (b = s));
|
21204
|
-
let D = (
|
21205
|
+
let D = (A, S) => {
|
21205
21206
|
l({
|
21206
|
-
start: "timeZone" in S.start ? S.start.set(Mt(
|
21207
|
-
end: "timeZone" in S.end ? S.end.set(Mt(
|
21208
|
-
}), p(null), y(null),
|
21209
|
-
}, x = (
|
21207
|
+
start: "timeZone" in S.start ? S.start.set(Mt(A.start)) : zn(A.start, S.start),
|
21208
|
+
end: "timeZone" in S.end ? S.end.set(Mt(A.end)) : zn(A.end, S.end)
|
21209
|
+
}), p(null), y(null), P.commitValidation();
|
21210
|
+
}, x = (A) => {
|
21210
21211
|
let S = typeof h == "function" ? h() : h;
|
21211
|
-
d ? S ||
|
21212
|
+
d ? S || A.start && A.end && (b != null && b.start) && (b != null && b.end) ? D(A, {
|
21212
21213
|
start: (b == null ? void 0 : b.start) || To(e.placeholderValue),
|
21213
21214
|
end: (b == null ? void 0 : b.end) || To(e.placeholderValue)
|
21214
|
-
}) : p(
|
21215
|
-
}, w = (
|
21216
|
-
v != null && v.start && (v != null && v.end) &&
|
21215
|
+
}) : p(A) : A.start && A.end ? (l(A), P.commitValidation()) : p(A), S && r.setOpen(!1);
|
21216
|
+
}, w = (A) => {
|
21217
|
+
v != null && v.start && (v != null && v.end) && A.start && A.end ? D(v, A) : y(A);
|
21217
21218
|
}, R = (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", C = ye(() => ({
|
21218
21219
|
granularity: f,
|
21219
21220
|
timeZone: g,
|
@@ -21234,7 +21235,7 @@ function K5(e) {
|
|
21234
21235
|
T,
|
21235
21236
|
E,
|
21236
21237
|
C
|
21237
|
-
]),
|
21238
|
+
]), P = V5({
|
21238
21239
|
...e,
|
21239
21240
|
value: a,
|
21240
21241
|
name: ye(() => [
|
@@ -21245,56 +21246,56 @@ function K5(e) {
|
|
21245
21246
|
e.endName
|
21246
21247
|
]),
|
21247
21248
|
builtinValidation: V
|
21248
|
-
}), $ =
|
21249
|
+
}), $ = P.displayValidation.isInvalid, M = e.validationState || ($ ? "invalid" : null);
|
21249
21250
|
return {
|
21250
|
-
...
|
21251
|
+
...P,
|
21251
21252
|
value: s,
|
21252
21253
|
setValue: l,
|
21253
21254
|
dateRange: v,
|
21254
21255
|
timeRange: b,
|
21255
21256
|
granularity: f,
|
21256
21257
|
hasTime: d,
|
21257
|
-
setDate(
|
21258
|
+
setDate(A, S) {
|
21258
21259
|
x({
|
21259
21260
|
...v,
|
21260
|
-
[
|
21261
|
+
[A]: S
|
21261
21262
|
});
|
21262
21263
|
},
|
21263
|
-
setTime(
|
21264
|
+
setTime(A, S) {
|
21264
21265
|
w({
|
21265
21266
|
...b,
|
21266
|
-
[
|
21267
|
+
[A]: S
|
21267
21268
|
});
|
21268
21269
|
},
|
21269
|
-
setDateTime(
|
21270
|
+
setDateTime(A, S) {
|
21270
21271
|
l({
|
21271
21272
|
...s,
|
21272
|
-
[
|
21273
|
+
[A]: S
|
21273
21274
|
});
|
21274
21275
|
},
|
21275
21276
|
setDateRange: x,
|
21276
21277
|
setTimeRange: w,
|
21277
21278
|
...r,
|
21278
|
-
setOpen(
|
21279
|
-
!
|
21279
|
+
setOpen(A) {
|
21280
|
+
!A && !(s != null && s.start && (s != null && s.end)) && (v != null && v.start) && (v != null && v.end) && d && D(v, {
|
21280
21281
|
start: (b == null ? void 0 : b.start) || To(e.placeholderValue),
|
21281
21282
|
end: (b == null ? void 0 : b.end) || To(e.placeholderValue)
|
21282
|
-
}), r.setOpen(
|
21283
|
+
}), r.setOpen(A);
|
21283
21284
|
},
|
21284
21285
|
validationState: M,
|
21285
21286
|
isInvalid: $,
|
21286
|
-
formatValue(
|
21287
|
+
formatValue(A, S) {
|
21287
21288
|
if (!s || !s.start || !s.end) return null;
|
21288
|
-
let L = "timeZone" in s.start ? s.start.timeZone : void 0,
|
21289
|
-
granularity:
|
21289
|
+
let L = "timeZone" in s.start ? s.start.timeZone : void 0, G = e.granularity || (s.start && "minute" in s.start ? "minute" : "day"), H = "timeZone" in s.end ? s.end.timeZone : void 0, O = e.granularity || (s.end && "minute" in s.end ? "minute" : "day"), W = Os(S, {
|
21290
|
+
granularity: G,
|
21290
21291
|
timeZone: L,
|
21291
21292
|
hideTimeZone: e.hideTimeZone,
|
21292
21293
|
hourCycle: e.hourCycle,
|
21293
21294
|
showEra: s.start.calendar.identifier === "gregory" && s.start.era === "BC" || s.end.calendar.identifier === "gregory" && s.end.era === "BC"
|
21294
|
-
}), ie = s.start.toDate(L || "UTC"),
|
21295
|
-
if (L ===
|
21295
|
+
}), ie = s.start.toDate(L || "UTC"), Se = s.end.toDate(H || "UTC"), U = new Za(A, W), _;
|
21296
|
+
if (L === H && G === O && s.start.compare(s.end) !== 0) {
|
21296
21297
|
try {
|
21297
|
-
let j =
|
21298
|
+
let j = U.formatRangeToParts(ie, Se), Y = -1;
|
21298
21299
|
for (let ce = 0; ce < j.length; ce++) {
|
21299
21300
|
let z = j[ce];
|
21300
21301
|
if (z.source === "shared" && z.type === "literal") Y = ce;
|
@@ -21309,19 +21310,19 @@ function K5(e) {
|
|
21309
21310
|
};
|
21310
21311
|
} catch {
|
21311
21312
|
}
|
21312
|
-
|
21313
|
+
_ = U;
|
21313
21314
|
} else {
|
21314
21315
|
let j = Os(S, {
|
21315
21316
|
granularity: O,
|
21316
|
-
timeZone:
|
21317
|
+
timeZone: H,
|
21317
21318
|
hideTimeZone: e.hideTimeZone,
|
21318
21319
|
hourCycle: e.hourCycle
|
21319
21320
|
});
|
21320
|
-
|
21321
|
+
_ = new Za(A, j);
|
21321
21322
|
}
|
21322
21323
|
return {
|
21323
|
-
start:
|
21324
|
-
end:
|
21324
|
+
start: U.format(ie),
|
21325
|
+
end: _.format(Se)
|
21325
21326
|
};
|
21326
21327
|
}
|
21327
21328
|
};
|
@@ -21689,43 +21690,43 @@ const Q5 = "_selected_ekdpb_1", q5 = "_disabled_ekdpb_39", eS = "_valid_ekdpb_62
|
|
21689
21690
|
} = e, y = Zn(), { locale: D } = mn(), x = Vo(t), w = Vo(n), R = k.useRef(null), [C, B] = k.useState(), [T, E] = k.useState(), V = (S) => {
|
21690
21691
|
var W;
|
21691
21692
|
const L = /* @__PURE__ */ new Date();
|
21692
|
-
let
|
21693
|
-
|
21694
|
-
const
|
21693
|
+
let G = S.toDate(vr());
|
21694
|
+
G.setHours(L.getHours(), L.getMinutes(), L.getSeconds());
|
21695
|
+
const H = t ? new Date(t) : null, O = n ? new Date(n) : null;
|
21695
21696
|
if (o) {
|
21696
|
-
if (
|
21697
|
-
if (
|
21697
|
+
if (G = new Date(new Date(G).setHours((T == null ? void 0 : T.hour) ?? 0, T == null ? void 0 : T.minut, T == null ? void 0 : T.second)), H && (H == null ? void 0 : H.toDateString()) === new Date(G).toDateString() && (H == null ? void 0 : H.toTimeString()) >= (G == null ? void 0 : G.toTimeString())) {
|
21698
|
+
if (H && (H.getHours() > G.getHours() || H.getHours() === G.getHours() && H.getMinutes() > G.getMinutes()))
|
21698
21699
|
return;
|
21699
|
-
|
21700
|
+
G = new Date(H.setSeconds(H.getSeconds() + 1));
|
21700
21701
|
}
|
21701
|
-
if (O && (O == null ? void 0 : O.toDateString()) === new Date(
|
21702
|
-
if (O && (O.getHours() <
|
21702
|
+
if (O && (O == null ? void 0 : O.toDateString()) === new Date(G).toDateString() && (O == null ? void 0 : O.toTimeString()) < (G == null ? void 0 : G.toTimeString())) {
|
21703
|
+
if (O && (O.getHours() < G.getHours() || O.getHours() === G.getHours() && O.getMinutes() < G.getMinutes()))
|
21703
21704
|
return;
|
21704
|
-
|
21705
|
+
G = new Date(O.setSeconds(O.getSeconds() - 1));
|
21705
21706
|
}
|
21706
21707
|
} else
|
21707
|
-
|
21708
|
-
typeof d == "function" && (d(
|
21709
|
-
},
|
21708
|
+
H && y.format(G) === y.format(H) && H.getTime() >= G.getTime() ? G = new Date(H.setSeconds(H.getSeconds() + 1)) : O && y.format(G) === y.format(O) && O.getTime() <= G.getTime() && (G = new Date(O.setSeconds(O.getSeconds() - 1)));
|
21709
|
+
typeof d == "function" && (d(G), (W = R.current) == null || W.setShow(!1));
|
21710
|
+
}, P = (S, L) => {
|
21710
21711
|
B(S), (L ?? (!a && !o)) && V(S);
|
21711
21712
|
}, $ = (S) => {
|
21712
21713
|
E(S);
|
21713
21714
|
}, M = (S) => {
|
21714
21715
|
const L = new Date(r ?? /* @__PURE__ */ new Date());
|
21715
21716
|
if (r && S) {
|
21716
|
-
const
|
21717
|
+
const G = S.focusedDate.set({
|
21717
21718
|
month: L.getMonth() + 1,
|
21718
21719
|
year: L.getFullYear()
|
21719
21720
|
});
|
21720
|
-
S.setFocusedDate(
|
21721
|
+
S.setFocusedDate(G);
|
21721
21722
|
}
|
21722
21723
|
E({
|
21723
21724
|
hour: L.getHours(),
|
21724
21725
|
minut: L.getMinutes(),
|
21725
21726
|
second: L.getSeconds()
|
21726
21727
|
}), B(Vo(r));
|
21727
|
-
},
|
21728
|
-
C &&
|
21728
|
+
}, A = () => {
|
21729
|
+
C && P(C, !0);
|
21729
21730
|
};
|
21730
21731
|
return k.useEffect(() => {
|
21731
21732
|
M();
|
@@ -21766,9 +21767,9 @@ const Q5 = "_selected_ekdpb_1", q5 = "_disabled_ekdpb_39", eS = "_valid_ekdpb_62
|
|
21766
21767
|
nextIcon: g,
|
21767
21768
|
createCalendar: Ki,
|
21768
21769
|
defaultValue: Vo(r),
|
21769
|
-
onChange:
|
21770
|
+
onChange: P,
|
21770
21771
|
handlerReset: M,
|
21771
|
-
handlerSubmit:
|
21772
|
+
handlerSubmit: A,
|
21772
21773
|
handlerChangeTime: $,
|
21773
21774
|
withConfirm: a,
|
21774
21775
|
isCustomTime: o
|
@@ -21906,7 +21907,7 @@ const Q5 = "_selected_ekdpb_1", q5 = "_disabled_ekdpb_39", eS = "_valid_ekdpb_62
|
|
21906
21907
|
startDate: W,
|
21907
21908
|
endDate: ie
|
21908
21909
|
};
|
21909
|
-
},
|
21910
|
+
}, P = () => {
|
21910
21911
|
const O = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), W = new Date((/* @__PURE__ */ new Date()).getFullYear(), 11, 31);
|
21911
21912
|
return {
|
21912
21913
|
startDate: O,
|
@@ -21926,7 +21927,7 @@ const Q5 = "_selected_ekdpb_1", q5 = "_disabled_ekdpb_39", eS = "_valid_ekdpb_62
|
|
21926
21927
|
startDate: O,
|
21927
21928
|
endDate: W
|
21928
21929
|
};
|
21929
|
-
},
|
21930
|
+
}, A = () => {
|
21930
21931
|
const O = /* @__PURE__ */ new Date(), W = new Date(O.getFullYear(), O.getMonth() - 1, 1), ie = new Date(O.getFullYear(), O.getMonth(), 0);
|
21931
21932
|
return {
|
21932
21933
|
startDate: W,
|
@@ -21941,7 +21942,7 @@ const Q5 = "_selected_ekdpb_1", q5 = "_disabled_ekdpb_39", eS = "_valid_ekdpb_62
|
|
21941
21942
|
}, L = (O) => {
|
21942
21943
|
var W;
|
21943
21944
|
C(O), typeof c == "function" && ((W = b.current) == null || W.setShow(!1), c(O));
|
21944
|
-
},
|
21945
|
+
}, G = (O) => {
|
21945
21946
|
D(O);
|
21946
21947
|
let W;
|
21947
21948
|
if (O.key !== "custom") {
|
@@ -21956,7 +21957,7 @@ const Q5 = "_selected_ekdpb_1", q5 = "_disabled_ekdpb_39", eS = "_valid_ekdpb_62
|
|
21956
21957
|
W = V();
|
21957
21958
|
break;
|
21958
21959
|
case "thisYear":
|
21959
|
-
W =
|
21960
|
+
W = P();
|
21960
21961
|
break;
|
21961
21962
|
case "yesterday":
|
21962
21963
|
W = $();
|
@@ -21965,7 +21966,7 @@ const Q5 = "_selected_ekdpb_1", q5 = "_disabled_ekdpb_39", eS = "_valid_ekdpb_62
|
|
21965
21966
|
W = M();
|
21966
21967
|
break;
|
21967
21968
|
case "lastMonth":
|
21968
|
-
W =
|
21969
|
+
W = A();
|
21969
21970
|
break;
|
21970
21971
|
case "lastYear":
|
21971
21972
|
W = S();
|
@@ -21973,21 +21974,21 @@ const Q5 = "_selected_ekdpb_1", q5 = "_disabled_ekdpb_39", eS = "_valid_ekdpb_62
|
|
21973
21974
|
}
|
21974
21975
|
W && L({ startDate: B(W.startDate, "start"), endDate: B(W.endDate, "end") });
|
21975
21976
|
}
|
21976
|
-
},
|
21977
|
+
}, H = () => {
|
21977
21978
|
e && C(e);
|
21978
21979
|
};
|
21979
21980
|
return k.useEffect(() => {
|
21980
|
-
|
21981
|
+
H();
|
21981
21982
|
}, [JSON.stringify(e)]), k.useEffect(() => {
|
21982
21983
|
const O = (s ?? p).find((W) => W.key === v);
|
21983
|
-
v && O && (
|
21984
|
+
v && O && (G(O), w(O));
|
21984
21985
|
}, []), /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
21985
21986
|
/* @__PURE__ */ I.jsxs(
|
21986
21987
|
"div",
|
21987
21988
|
{
|
21988
21989
|
onClick: (O) => {
|
21989
21990
|
var W;
|
21990
|
-
(W = b.current) == null || W.handlerShow(O),
|
21991
|
+
(W = b.current) == null || W.handlerShow(O), H();
|
21991
21992
|
},
|
21992
21993
|
className: i,
|
21993
21994
|
id: g,
|
@@ -22010,7 +22011,7 @@ const Q5 = "_selected_ekdpb_1", q5 = "_disabled_ekdpb_39", eS = "_valid_ekdpb_62
|
|
22010
22011
|
"div",
|
22011
22012
|
{
|
22012
22013
|
className: `${he["button-filter-date"]} hover:1ru-bg-laba-blue-01 ${(y == null ? void 0 : y.key) === O.key ? "1ru-text-laba-blue-10" : ""}`,
|
22013
|
-
onClick: () =>
|
22014
|
+
onClick: () => G(O),
|
22014
22015
|
children: O.value
|
22015
22016
|
},
|
22016
22017
|
O.key
|
@@ -22780,8 +22781,8 @@ const bS = "_container_1q8xg_1", vS = "_disabled_1q8xg_5", yS = "_label_1q8xg_9"
|
|
22780
22781
|
var V;
|
22781
22782
|
let T = 0;
|
22782
22783
|
const E = document.getElementById("icon-company-sidebar");
|
22783
|
-
(V = E == null ? void 0 : E.childNodes) == null || V.forEach((
|
22784
|
-
T +=
|
22784
|
+
(V = E == null ? void 0 : E.childNodes) == null || V.forEach((P) => {
|
22785
|
+
T += P.getBoundingClientRect().width ?? 0;
|
22785
22786
|
}), D(T + l + "px");
|
22786
22787
|
}, C = () => {
|
22787
22788
|
w(window.innerWidth);
|
@@ -22790,13 +22791,13 @@ const bS = "_container_1q8xg_1", vS = "_disabled_1q8xg_5", yS = "_label_1q8xg_9"
|
|
22790
22791
|
R();
|
22791
22792
|
}, 100);
|
22792
22793
|
};
|
22793
|
-
return
|
22794
|
+
return Ee(() => {
|
22794
22795
|
x >= 768 ? (m(!0), setTimeout(() => {
|
22795
22796
|
R();
|
22796
22797
|
}, 100)) : (m(!1), D("auto"));
|
22797
|
-
}, [x]),
|
22798
|
+
}, [x]), Ee(() => {
|
22798
22799
|
typeof d == "boolean" && v(d);
|
22799
|
-
}, [d]),
|
22800
|
+
}, [d]), Ee(() => (n && n.split("/").length > 1 && b(n + "/"), R(), C(), window.addEventListener("resize", C), () => window.removeEventListener("resize", C)), []), /* @__PURE__ */ I.jsxs("div", { className: Zt.container, ...f, children: [
|
22800
22801
|
/* @__PURE__ */ I.jsxs(
|
22801
22802
|
"div",
|
22802
22803
|
{
|
@@ -22922,7 +22923,7 @@ const bS = "_container_1q8xg_1", vS = "_disabled_1q8xg_5", yS = "_label_1q8xg_9"
|
|
22922
22923
|
/* @__PURE__ */ I.jsx("div", { className: `${ar["right-content"]} ${n ?? ""}`, children: e })
|
22923
22924
|
] }), P$ = Object.assign(TS, { TimelineContent: VS }), B$ = ({ children: e, onChange: t }) => {
|
22924
22925
|
const [n, r] = te({}), [a, o] = te({}), i = (c, f) => c.map((g) => g[f]).join(","), u = (c, f) => c.map((g) => g[f]);
|
22925
|
-
|
22926
|
+
Ee(() => {
|
22926
22927
|
typeof t == "function" && t(n, a);
|
22927
22928
|
}, [n, a]);
|
22928
22929
|
const s = (c, f, g, d) => {
|
@@ -23197,18 +23198,18 @@ function Bb(e) {
|
|
23197
23198
|
b === void 0 && (b = ZS);
|
23198
23199
|
var y = e.isValidInputCharacter;
|
23199
23200
|
y === void 0 && (y = Dr);
|
23200
|
-
var D = e.isCharacterSame, x = Kl(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), w = Pb(p, s, !!l, i, u, c), R = w[0], C = R.formattedValue, B = R.numAsString, T = w[1], E = be(), V = be({ formattedValue: C, numAsString: B }),
|
23201
|
+
var D = e.isCharacterSame, x = Kl(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), w = Pb(p, s, !!l, i, u, c), R = w[0], C = R.formattedValue, B = R.numAsString, T = w[1], E = be(), V = be({ formattedValue: C, numAsString: B }), P = function(Q, ee) {
|
23201
23202
|
V.current = { formattedValue: Q.formattedValue, numAsString: Q.value }, T(Q, ee);
|
23202
|
-
}, $ = te(!1), M = $[0],
|
23203
|
+
}, $ = te(!1), M = $[0], A = $[1], S = be(null), L = be({
|
23203
23204
|
setCaretTimeout: null,
|
23204
23205
|
focusTimeout: null
|
23205
23206
|
});
|
23206
|
-
|
23207
|
-
return
|
23207
|
+
Ee(function() {
|
23208
|
+
return A(!0), function() {
|
23208
23209
|
clearTimeout(L.current.setCaretTimeout), clearTimeout(L.current.focusTimeout);
|
23209
23210
|
};
|
23210
23211
|
}, []);
|
23211
|
-
var
|
23212
|
+
var G = i, H = function(Q, ee) {
|
23212
23213
|
var de = parseFloat(ee);
|
23213
23214
|
return {
|
23214
23215
|
formattedValue: Q,
|
@@ -23224,7 +23225,7 @@ function Bb(e) {
|
|
23224
23225
|
}, ie = function(Q, ee, de) {
|
23225
23226
|
var Me = b(ee), et = zS(ee, C, Q, de, Me, y, D);
|
23226
23227
|
return et = Pi(ee, et, Me), et;
|
23227
|
-
},
|
23228
|
+
}, Se = function(Q) {
|
23228
23229
|
var ee = Q.formattedValue;
|
23229
23230
|
ee === void 0 && (ee = "");
|
23230
23231
|
var de = Q.input, Me = Q.source, et = Q.event, $e = Q.numAsString, De;
|
@@ -23232,30 +23233,30 @@ function Bb(e) {
|
|
23232
23233
|
var Ct = Q.inputValue || de.value, Dt = zu(de);
|
23233
23234
|
de.value = ee, De = ie(Ct, ee, Dt), De !== void 0 && O(de, De, ee);
|
23234
23235
|
}
|
23235
|
-
ee !== C &&
|
23236
|
+
ee !== C && P(H(ee, $e), { event: et, source: Me });
|
23236
23237
|
};
|
23237
|
-
|
23238
|
+
Ee(function() {
|
23238
23239
|
var Q = V.current, ee = Q.formattedValue, de = Q.numAsString;
|
23239
|
-
(C !== ee || B !== de) &&
|
23240
|
+
(C !== ee || B !== de) && P(H(C, B), {
|
23240
23241
|
event: void 0,
|
23241
23242
|
source: Qa.props
|
23242
23243
|
});
|
23243
23244
|
}, [C, B]);
|
23244
|
-
var
|
23245
|
-
|
23245
|
+
var U = S.current ? zu(S.current) : void 0, _ = typeof window < "u" ? qa : Ee;
|
23246
|
+
_(function() {
|
23246
23247
|
var Q = S.current;
|
23247
23248
|
if (C !== V.current.formattedValue && Q) {
|
23248
|
-
var ee = ie(V.current.formattedValue, C,
|
23249
|
+
var ee = ie(V.current.formattedValue, C, U);
|
23249
23250
|
Q.value = C, O(Q, ee, C);
|
23250
23251
|
}
|
23251
23252
|
}, [C]);
|
23252
23253
|
var j = function(Q, ee, de) {
|
23253
|
-
var Me = ee.target, et = E.current ? GS(E.current, Me.selectionEnd) : Rb(C, Q), $e = Object.assign(Object.assign({}, et), { lastValue: C }), De = u(Q, $e), Ct =
|
23254
|
-
if (De = u(Ct, void 0), f && !f(
|
23254
|
+
var Me = ee.target, et = E.current ? GS(E.current, Me.selectionEnd) : Rb(C, Q), $e = Object.assign(Object.assign({}, et), { lastValue: C }), De = u(Q, $e), Ct = G(De);
|
23255
|
+
if (De = u(Ct, void 0), f && !f(H(Ct, De))) {
|
23255
23256
|
var Dt = ee.target, wt = zu(Dt), Ot = ie(Q, C, wt);
|
23256
23257
|
return Dt.value = C, O(Dt, Ot, C), !1;
|
23257
23258
|
}
|
23258
|
-
return
|
23259
|
+
return Se({
|
23259
23260
|
formattedValue: Ct,
|
23260
23261
|
numAsString: De,
|
23261
23262
|
inputValue: Q,
|
@@ -23373,11 +23374,11 @@ function QS(e, t, n) {
|
|
23373
23374
|
var v = u === 0 ? "" : m;
|
23374
23375
|
e = e.substring(0, c) + v + e.substring(c + 1, e.length);
|
23375
23376
|
}
|
23376
|
-
var p = function(S, L,
|
23377
|
-
var
|
23378
|
-
o.startsWith("-") ?
|
23379
|
-
var W =
|
23380
|
-
return O && (W = 2), W && (S = S.substring(W), L -= W,
|
23377
|
+
var p = function(S, L, G) {
|
23378
|
+
var H = !1, O = !1;
|
23379
|
+
o.startsWith("-") ? H = !1 : S.startsWith("--") ? (H = !1, O = !0) : i.startsWith("-") && S.length === i.length ? H = !1 : S[0] === "-" && (H = !0);
|
23380
|
+
var W = H ? 1 : 0;
|
23381
|
+
return O && (W = 2), W && (S = S.substring(W), L -= W, G -= W), { value: S, start: L, end: G, hasNegation: H };
|
23381
23382
|
}, b = p(e, c, f), y = b.hasNegation;
|
23382
23383
|
r = b, e = r.value, c = r.start, f = r.end;
|
23383
23384
|
var D = p(t.lastValue, s.start, s.end), x = D.start, w = D.end, R = D.value, C = e.substring(c, f);
|
@@ -23390,8 +23391,8 @@ function QS(e, t, n) {
|
|
23390
23391
|
e = e.replace(new RegExp(Eb(m), "g"), function(S, L) {
|
23391
23392
|
return L === V ? "." : "";
|
23392
23393
|
});
|
23393
|
-
var
|
23394
|
-
return l.end - l.start < s.end - s.start && $ === "" && h && !parseFloat(M) && (e =
|
23394
|
+
var P = Ql(e, a), $ = P.beforeDecimal, M = P.afterDecimal, A = P.addNegation;
|
23395
|
+
return l.end - l.start < s.end - s.start && $ === "" && h && !parseFloat(M) && (e = A ? "-" : ""), e;
|
23395
23396
|
}
|
23396
23397
|
function qS(e, t) {
|
23397
23398
|
var n = t.prefix;
|
@@ -23429,28 +23430,28 @@ function t$(e) {
|
|
23429
23430
|
o === void 0 && (o = yn);
|
23430
23431
|
var i = e.thousandSeparator, u = e.decimalScale, s = e.fixedDecimalScale, l = e.prefix;
|
23431
23432
|
l === void 0 && (l = "");
|
23432
|
-
var c = e.defaultValue, f = e.value, g = e.valueIsNumericString, d = e.onValueChange, m = Kl(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), h = eu(e), v = h.decimalSeparator, p = h.allowedDecimalSeparators, b = function(
|
23433
|
-
return Af(
|
23434
|
-
}, y = function(
|
23435
|
-
return QS(
|
23433
|
+
var c = e.defaultValue, f = e.value, g = e.valueIsNumericString, d = e.onValueChange, m = Kl(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), h = eu(e), v = h.decimalSeparator, p = h.allowedDecimalSeparators, b = function(A) {
|
23434
|
+
return Af(A, e);
|
23435
|
+
}, y = function(A, S) {
|
23436
|
+
return QS(A, S, e);
|
23436
23437
|
}, D = mr(f) ? c : f, x = g ?? KS(D, l, t);
|
23437
23438
|
mr(f) ? mr(c) || (x = x || typeof c == "number") : x = x || typeof f == "number";
|
23438
|
-
var w = function(
|
23439
|
-
return Ib(
|
23440
|
-
}, R = Pb(w(f), w(c), !!x, b, y, d), C = R[0], B = C.numAsString, T = C.formattedValue, E = R[1], V = function(
|
23441
|
-
var S =
|
23442
|
-
if (O === void 0 && (O = ""), (L === "Backspace" || L === "Delete") &&
|
23443
|
-
|
23439
|
+
var w = function(A) {
|
23440
|
+
return Ib(A) ? A : (typeof A == "number" && (A = $b(A)), x && typeof u == "number" ? Ff(A, u, !!s) : A);
|
23441
|
+
}, R = Pb(w(f), w(c), !!x, b, y, d), C = R[0], B = C.numAsString, T = C.formattedValue, E = R[1], V = function(A) {
|
23442
|
+
var S = A.target, L = A.key, G = S.selectionStart, H = S.selectionEnd, O = S.value;
|
23443
|
+
if (O === void 0 && (O = ""), (L === "Backspace" || L === "Delete") && H < l.length) {
|
23444
|
+
A.preventDefault();
|
23444
23445
|
return;
|
23445
23446
|
}
|
23446
|
-
if (
|
23447
|
-
a(
|
23447
|
+
if (G !== H) {
|
23448
|
+
a(A);
|
23448
23449
|
return;
|
23449
23450
|
}
|
23450
|
-
L === "Backspace" && O[0] === "-" &&
|
23451
|
+
L === "Backspace" && O[0] === "-" && G === l.length + 1 && n && Mn(S, 1), u && s && (L === "Backspace" && O[G - 1] === v ? (Mn(S, G - 1), A.preventDefault()) : L === "Delete" && O[G] === v && A.preventDefault()), p != null && p.includes(L) && O[G] === v && Mn(S, G + 1);
|
23451
23452
|
var W = i === !0 ? "," : i;
|
23452
|
-
L === "Backspace" && O[
|
23453
|
-
},
|
23453
|
+
L === "Backspace" && O[G - 1] === W && Mn(S, G - 1), L === "Delete" && O[G] === W && Mn(S, G + 1), a(A);
|
23454
|
+
}, P = function(A) {
|
23454
23455
|
var S = B;
|
23455
23456
|
if (S.match(/\d/g) || (S = ""), r || (S = LS(S)), s && u && (S = Ff(S, u, s)), S !== B) {
|
23456
23457
|
var L = Af(S, e);
|
@@ -23459,16 +23460,16 @@ function t$(e) {
|
|
23459
23460
|
value: S,
|
23460
23461
|
floatValue: parseFloat(S)
|
23461
23462
|
}, {
|
23462
|
-
event:
|
23463
|
+
event: A,
|
23463
23464
|
source: Qa.event
|
23464
23465
|
});
|
23465
23466
|
}
|
23466
|
-
o(
|
23467
|
-
}, $ = function(
|
23468
|
-
return
|
23469
|
-
}, M = function(
|
23470
|
-
var S =
|
23471
|
-
return
|
23467
|
+
o(A);
|
23468
|
+
}, $ = function(A) {
|
23469
|
+
return A === v ? !0 : Dr(A);
|
23470
|
+
}, M = function(A) {
|
23471
|
+
var S = A.currentValue, L = A.lastValue, G = A.formattedValue, H = A.currentValueIndex, O = A.formattedValueIndex, W = S[H], ie = G[O], Se = Rb(L, S), U = Se.to;
|
23472
|
+
return H >= U.start && H < U.end && p && p.includes(W) && ie === v ? !0 : W === ie;
|
23472
23473
|
};
|
23473
23474
|
return Object.assign(Object.assign({}, m), {
|
23474
23475
|
value: T,
|
@@ -23478,11 +23479,11 @@ function t$(e) {
|
|
23478
23479
|
onValueChange: E,
|
23479
23480
|
format: b,
|
23480
23481
|
removeFormatting: y,
|
23481
|
-
getCaretBoundary: function(
|
23482
|
-
return qS(
|
23482
|
+
getCaretBoundary: function(A) {
|
23483
|
+
return qS(A, e);
|
23483
23484
|
},
|
23484
23485
|
onKeyDown: V,
|
23485
|
-
onBlur:
|
23486
|
+
onBlur: P
|
23486
23487
|
});
|
23487
23488
|
}
|
23488
23489
|
function n$(e) {
|
@@ -23624,7 +23625,7 @@ const V$ = ({ max: e, min: t, onChange: n, ...r }) => /* @__PURE__ */ I.jsx(
|
|
23624
23625
|
containerId: t = "portal-root"
|
23625
23626
|
}) => {
|
23626
23627
|
const [n, r] = te(null);
|
23627
|
-
return
|
23628
|
+
return Ee(() => {
|
23628
23629
|
let a = document.getElementById(t);
|
23629
23630
|
return a || (a = document.createElement("div"), a.id = t, document.body.appendChild(a)), r(a), () => {
|
23630
23631
|
a && !document.getElementById(t) && document.body.removeChild(a);
|
@@ -23633,7 +23634,7 @@ const V$ = ({ max: e, min: t, onChange: n, ...r }) => /* @__PURE__ */ I.jsx(
|
|
23633
23634
|
};
|
23634
23635
|
function _$(e, t = null) {
|
23635
23636
|
const [n, r] = te(!1);
|
23636
|
-
return
|
23637
|
+
return Ee(() => {
|
23637
23638
|
let a = null, o = null;
|
23638
23639
|
const i = () => {
|
23639
23640
|
const u = a instanceof HTMLElement ? a.getBoundingClientRect().width : window.innerWidth, s = window.matchMedia(e.replace("WIDTH", u.toString()));
|
@@ -23652,7 +23653,7 @@ function _$(e, t = null) {
|
|
23652
23653
|
}
|
23653
23654
|
const M$ = (e) => {
|
23654
23655
|
const [t, n] = te(e.hours * 3600), [r, a] = te(e.running ?? !1);
|
23655
|
-
return
|
23656
|
+
return Ee(() => {
|
23656
23657
|
let s;
|
23657
23658
|
return r && (s = setInterval(() => {
|
23658
23659
|
n((l) => l - 1);
|