pixel-react 1.14.89 → 1.14.90
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/README.md +75 -75
- package/lib/_virtual/index10.js +2 -2
- package/lib/_virtual/index11.js +2 -2
- package/lib/_virtual/index12.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/assets/icons/lambda_icon.svg.js +1 -1
- package/lib/assets/icons/lambda_icon.svg.js.map +1 -1
- package/lib/assets/icons/sause_lab_icon.svg.js +1 -1
- package/lib/assets/icons/sause_lab_icon.svg.js.map +1 -1
- package/lib/assets/icons/spinner.svg.js +1 -1
- package/lib/assets/icons/spinner.svg.js.map +1 -1
- package/lib/components/Button/Button.js +2 -2
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/index.cjs +933 -1067
- package/lib/index.cjs.map +1 -1
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouType.js +8 -6
- package/lib/node_modules/libphonenumber-js/es6/AsYouType.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +4 -4
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js +4 -4
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js +28 -41
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js +17 -21
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js +1 -1
- package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/format.js +91 -50
- package/lib/node_modules/libphonenumber-js/es6/format.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +6 -39
- package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +10 -13
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +8 -10
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +5 -15
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +2 -2
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +8 -30
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +4 -4
- package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/isPossible.js +4 -4
- package/lib/node_modules/libphonenumber-js/es6/isPossible.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/metadata.js +1 -1
- package/lib/node_modules/libphonenumber-js/es6/metadata.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parse.js +7 -9
- package/lib/node_modules/libphonenumber-js/es6/parse.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +7 -7
- package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/metadata.min.json.js +11 -11
- package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
- package/lib/node_modules/prop-types/index.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +21 -33
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -41
- package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +2 -3
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +2 -3
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
- package/lib/node_modules/react-hook-form/dist/index.esm.js +38 -60
- package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/lib/node_modules/react-virtuoso/dist/index.js +397 -397
- package/lib/node_modules/react-virtuoso/dist/index.js.map +1 -1
- package/lib/node_modules/ua-parser-js/src/ua-parser.js +71 -85
- package/lib/node_modules/ua-parser-js/src/ua-parser.js.map +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/package.json +106 -106
@@ -69,7 +69,7 @@ function dn(t) {
|
|
69
69
|
function Fn(t, e) {
|
70
70
|
return t === e;
|
71
71
|
}
|
72
|
-
function
|
72
|
+
function Z(t = Fn) {
|
73
73
|
let e;
|
74
74
|
return (n) => (o) => {
|
75
75
|
t(e, o) || (e = o, n(o));
|
@@ -88,7 +88,7 @@ function Rt(t) {
|
|
88
88
|
e(t);
|
89
89
|
};
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function x(t, ...e) {
|
92
92
|
const n = go(...e);
|
93
93
|
return (o, r) => {
|
94
94
|
switch (o) {
|
@@ -151,7 +151,7 @@ function Io(t) {
|
|
151
151
|
}
|
152
152
|
};
|
153
153
|
}
|
154
|
-
function
|
154
|
+
function C(t) {
|
155
155
|
let e = t;
|
156
156
|
const n = $();
|
157
157
|
return (o, r) => {
|
@@ -170,7 +170,7 @@ function w(t) {
|
|
170
170
|
};
|
171
171
|
}
|
172
172
|
function ct(t, e) {
|
173
|
-
return ve(
|
173
|
+
return ve(C(e), (n) => O(t, n));
|
174
174
|
}
|
175
175
|
function $() {
|
176
176
|
const t = [];
|
@@ -234,7 +234,7 @@ function rt(...t) {
|
|
234
234
|
};
|
235
235
|
}
|
236
236
|
function V(t, e = Fn) {
|
237
|
-
return
|
237
|
+
return x(t, Z(e));
|
238
238
|
}
|
239
239
|
function Le(...t) {
|
240
240
|
return function(e, n) {
|
@@ -254,12 +254,12 @@ const To = {
|
|
254
254
|
2: "warn"
|
255
255
|
}, Co = () => typeof globalThis > "u" ? window : globalThis, Vt = U(
|
256
256
|
() => {
|
257
|
-
const t =
|
257
|
+
const t = C(
|
258
258
|
3
|
259
259
|
/* ERROR */
|
260
260
|
);
|
261
261
|
return {
|
262
|
-
log:
|
262
|
+
log: C((n, o, r = 1) => {
|
263
263
|
var i;
|
264
264
|
const s = (i = Co().VIRTUOSO_LOG_LEVEL) != null ? i : ot(t);
|
265
265
|
r >= s && console[To[r]](
|
@@ -297,21 +297,21 @@ function _e(t, e, n) {
|
|
297
297
|
function On(t, e, n, o, r, s, i, l, c) {
|
298
298
|
const a = React__default.useCallback(
|
299
299
|
(m) => {
|
300
|
-
const
|
301
|
-
let
|
302
|
-
for (; !
|
303
|
-
|
304
|
-
const I =
|
305
|
-
let
|
306
|
-
I && (
|
307
|
-
const v = i ? l ? i.scrollLeft : i.scrollTop : I ? l ?
|
300
|
+
const S = wo(m.children, e, l ? "offsetWidth" : "offsetHeight", r);
|
301
|
+
let g = m.parentElement;
|
302
|
+
for (; !g.dataset.virtuosoScroller; )
|
303
|
+
g = g.parentElement;
|
304
|
+
const I = g.lastElementChild.dataset.viewportType === "window";
|
305
|
+
let w;
|
306
|
+
I && (w = g.ownerDocument.defaultView);
|
307
|
+
const v = i ? l ? i.scrollLeft : i.scrollTop : I ? l ? w.scrollX || w.document.documentElement.scrollLeft : w.scrollY || w.document.documentElement.scrollTop : l ? g.scrollLeft : g.scrollTop, h = i ? l ? i.scrollWidth : i.scrollHeight : I ? l ? w.document.documentElement.scrollWidth : w.document.documentElement.scrollHeight : l ? g.scrollWidth : g.scrollHeight, p = i ? l ? i.offsetWidth : i.offsetHeight : I ? l ? w.innerWidth : w.innerHeight : l ? g.offsetWidth : g.offsetHeight;
|
308
308
|
o({
|
309
|
-
scrollHeight:
|
309
|
+
scrollHeight: h,
|
310
310
|
scrollTop: Math.max(v, 0),
|
311
311
|
viewportHeight: p
|
312
312
|
}), s == null || s(
|
313
313
|
l ? fn("column-gap", getComputedStyle(m).columnGap, r) : fn("row-gap", getComputedStyle(m).rowGap, r)
|
314
|
-
),
|
314
|
+
), S !== null && t(S);
|
315
315
|
},
|
316
316
|
[t, e, r, s, i, o, l]
|
317
317
|
);
|
@@ -329,8 +329,8 @@ function wo(t, e, n, o) {
|
|
329
329
|
const c = parseInt(l.dataset.index), a = parseFloat(l.dataset.knownSize), m = e(l, n);
|
330
330
|
if (m === 0 && o("Zero-sized element, this should not happen", { child: l }, mt.ERROR), m === a)
|
331
331
|
continue;
|
332
|
-
const
|
333
|
-
s.length === 0 ||
|
332
|
+
const S = s[s.length - 1];
|
333
|
+
s.length === 0 || S.size !== m || S.endIndex !== c - 1 ? s.push({ endIndex: c, size: m, startIndex: c }) : s[s.length - 1].endIndex++;
|
334
334
|
}
|
335
335
|
return s;
|
336
336
|
}
|
@@ -343,17 +343,17 @@ function Ne(t, e, n) {
|
|
343
343
|
if (!(c != null && c.offsetParent))
|
344
344
|
return;
|
345
345
|
const a = c.getBoundingClientRect(), m = a.width;
|
346
|
-
let
|
346
|
+
let S, g;
|
347
347
|
if (e) {
|
348
|
-
const I = e.getBoundingClientRect(),
|
349
|
-
|
348
|
+
const I = e.getBoundingClientRect(), w = a.top - I.top;
|
349
|
+
g = I.height - Math.max(0, w), S = w + e.scrollTop;
|
350
350
|
} else {
|
351
351
|
const I = i.current.ownerDocument.defaultView;
|
352
|
-
|
352
|
+
g = I.innerHeight - Math.max(0, a.top), S = a.top + I.scrollY;
|
353
353
|
}
|
354
354
|
o.current = {
|
355
|
-
offsetTop:
|
356
|
-
visibleHeight:
|
355
|
+
offsetTop: S,
|
356
|
+
visibleHeight: g,
|
357
357
|
visibleWidth: m
|
358
358
|
}, t(o.current);
|
359
359
|
},
|
@@ -382,17 +382,17 @@ function Ne(t, e, n) {
|
|
382
382
|
}
|
383
383
|
const at = U(
|
384
384
|
() => {
|
385
|
-
const t = $(), e = $(), n =
|
385
|
+
const t = $(), e = $(), n = C(0), o = $(), r = C(0), s = $(), i = $(), l = C(0), c = C(0), a = C(0), m = C(0), S = $(), g = $(), I = C(false), w = C(false), v = C(false);
|
386
386
|
return O(
|
387
|
-
|
387
|
+
x(
|
388
388
|
t,
|
389
|
-
E(({ scrollTop:
|
389
|
+
E(({ scrollTop: h }) => h)
|
390
390
|
),
|
391
391
|
e
|
392
392
|
), O(
|
393
|
-
|
393
|
+
x(
|
394
394
|
t,
|
395
|
-
E(({ scrollHeight:
|
395
|
+
E(({ scrollHeight: h }) => h)
|
396
396
|
),
|
397
397
|
i
|
398
398
|
), O(e, r), {
|
@@ -401,14 +401,14 @@ const at = U(
|
|
401
401
|
fixedHeaderHeight: c,
|
402
402
|
footerHeight: m,
|
403
403
|
headerHeight: l,
|
404
|
-
horizontalDirection:
|
405
|
-
scrollBy:
|
404
|
+
horizontalDirection: w,
|
405
|
+
scrollBy: g,
|
406
406
|
// input
|
407
407
|
scrollContainerState: t,
|
408
408
|
scrollHeight: i,
|
409
409
|
scrollingInProgress: I,
|
410
410
|
// signals
|
411
|
-
scrollTo:
|
411
|
+
scrollTo: S,
|
412
412
|
scrollTop: e,
|
413
413
|
skipAnimationFrameInResizeObserver: v,
|
414
414
|
smoothScrollTargetReached: o,
|
@@ -562,7 +562,7 @@ function se(t, e) {
|
|
562
562
|
return !!(t && t[0] === e[0] && t[1] === e[1]);
|
563
563
|
}
|
564
564
|
const De = U(
|
565
|
-
() => ({ recalcInProgress:
|
565
|
+
() => ({ recalcInProgress: C(false) }),
|
566
566
|
[],
|
567
567
|
{ singleton: true }
|
568
568
|
);
|
@@ -623,8 +623,8 @@ function bo(t, e) {
|
|
623
623
|
if (l.some(Lo(o)))
|
624
624
|
continue;
|
625
625
|
let c = false, a = false;
|
626
|
-
for (const { end: m, start:
|
627
|
-
c ? (r >=
|
626
|
+
for (const { end: m, start: S, value: g } of l)
|
627
|
+
c ? (r >= S || s === g) && (t = ze(t, S)) : (a = g !== s, c = true), m > r && r >= S && g !== s && (t = pt(t, r + 1, g));
|
628
628
|
a && (t = pt(t, i, s));
|
629
629
|
}
|
630
630
|
return [t, n];
|
@@ -666,20 +666,20 @@ function ko(t, [e, n, o, r]) {
|
|
666
666
|
const s = t.sizeTree;
|
667
667
|
let i = s, l = 0;
|
668
668
|
if (n.length > 0 && j(s) && e.length === 2) {
|
669
|
-
const
|
670
|
-
i = n.reduce((
|
669
|
+
const g = e[0].size, I = e[1].size;
|
670
|
+
i = n.reduce((w, v) => pt(pt(w, v, g), v + 1, I), i);
|
671
671
|
} else
|
672
672
|
[i, l] = bo(i, e);
|
673
673
|
if (i === s)
|
674
674
|
return t;
|
675
|
-
const { lastIndex: c, lastOffset: a, lastSize: m, offsetTree:
|
675
|
+
const { lastIndex: c, lastOffset: a, lastSize: m, offsetTree: S } = Ae(t.offsetTree, l, i, r);
|
676
676
|
return {
|
677
677
|
groupIndices: n,
|
678
|
-
groupOffsetTree: n.reduce((
|
678
|
+
groupOffsetTree: n.reduce((g, I) => pt(g, I, ie(I, S, r)), jt()),
|
679
679
|
lastIndex: c,
|
680
680
|
lastOffset: a,
|
681
681
|
lastSize: m,
|
682
|
-
offsetTree:
|
682
|
+
offsetTree: S,
|
683
683
|
sizeTree: i
|
684
684
|
};
|
685
685
|
}
|
@@ -704,12 +704,12 @@ function Ae(t, e, n, o) {
|
|
704
704
|
} else
|
705
705
|
r = [];
|
706
706
|
for (const { start: a, value: m } of ye(n, e, 1 / 0)) {
|
707
|
-
const
|
707
|
+
const S = a - s, g = S * i + l + S * o;
|
708
708
|
r.push({
|
709
709
|
index: a,
|
710
|
-
offset:
|
710
|
+
offset: g,
|
711
711
|
size: m
|
712
|
-
}), s = a, l =
|
712
|
+
}), s = a, l = g, i = m;
|
713
713
|
}
|
714
714
|
return {
|
715
715
|
lastIndex: s,
|
@@ -730,13 +730,13 @@ const zo = {
|
|
730
730
|
offsetWidth: "width"
|
731
731
|
}, Et = U(
|
732
732
|
([{ log: t }, { recalcInProgress: e }]) => {
|
733
|
-
const n = $(), o = $(), r = ct(o, 0), s = $(), i = $(), l =
|
734
|
-
|
735
|
-
|
736
|
-
),
|
737
|
-
|
733
|
+
const n = $(), o = $(), r = ct(o, 0), s = $(), i = $(), l = C(0), c = C([]), a = C(void 0), m = C(void 0), S = C((f, d) => vt(f, zo[d])), g = C(void 0), I = C(0), w = Ro(), v = ct(
|
734
|
+
x(n, N(c, t, I), bt(ko, w), Z()),
|
735
|
+
w
|
736
|
+
), h = ct(
|
737
|
+
x(
|
738
738
|
c,
|
739
|
-
|
739
|
+
Z(),
|
740
740
|
bt((f, d) => ({ current: d, prev: f.current }), {
|
741
741
|
current: [],
|
742
742
|
prev: []
|
@@ -746,7 +746,7 @@ const zo = {
|
|
746
746
|
[]
|
747
747
|
);
|
748
748
|
O(
|
749
|
-
|
749
|
+
x(
|
750
750
|
c,
|
751
751
|
A((f) => f.length > 0),
|
752
752
|
N(v, I),
|
@@ -761,7 +761,7 @@ const zo = {
|
|
761
761
|
),
|
762
762
|
v
|
763
763
|
), O(
|
764
|
-
|
764
|
+
x(
|
765
765
|
o,
|
766
766
|
N(v),
|
767
767
|
A(([f, { lastIndex: d }]) => f < d),
|
@@ -776,14 +776,14 @@ const zo = {
|
|
776
776
|
n
|
777
777
|
), O(a, m);
|
778
778
|
const p = ct(
|
779
|
-
|
779
|
+
x(
|
780
780
|
a,
|
781
781
|
E((f) => f === void 0)
|
782
782
|
),
|
783
783
|
true
|
784
784
|
);
|
785
785
|
O(
|
786
|
-
|
786
|
+
x(
|
787
787
|
m,
|
788
788
|
A((f) => f !== void 0 && j(ot(v).sizeTree)),
|
789
789
|
E((f) => [{ endIndex: 0, size: f, startIndex: 0 }])
|
@@ -791,7 +791,7 @@ const zo = {
|
|
791
791
|
n
|
792
792
|
);
|
793
793
|
const u = ht(
|
794
|
-
|
794
|
+
x(
|
795
795
|
n,
|
796
796
|
N(v),
|
797
797
|
bt(
|
@@ -799,13 +799,13 @@ const zo = {
|
|
799
799
|
changed: y !== f,
|
800
800
|
sizes: y
|
801
801
|
}),
|
802
|
-
{ changed: false, sizes:
|
802
|
+
{ changed: false, sizes: w }
|
803
803
|
),
|
804
804
|
E((f) => f.changed)
|
805
805
|
)
|
806
806
|
);
|
807
807
|
K(
|
808
|
-
|
808
|
+
x(
|
809
809
|
l,
|
810
810
|
bt(
|
811
811
|
(f, d) => ({ diff: f.prev - d, prev: d }),
|
@@ -818,11 +818,11 @@ const zo = {
|
|
818
818
|
if (f > 0)
|
819
819
|
G(e, true), G(s, f + pn(f, d));
|
820
820
|
else if (f < 0) {
|
821
|
-
const y = ot(
|
821
|
+
const y = ot(h);
|
822
822
|
y.length > 0 && (f -= pn(-f, y)), G(i, f);
|
823
823
|
}
|
824
824
|
}
|
825
|
-
), K(
|
825
|
+
), K(x(l, N(t)), ([f, d]) => {
|
826
826
|
f < 0 && d(
|
827
827
|
"`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
|
828
828
|
{ firstItemIndex: l },
|
@@ -831,7 +831,7 @@ const zo = {
|
|
831
831
|
});
|
832
832
|
const T = ht(s);
|
833
833
|
O(
|
834
|
-
|
834
|
+
x(
|
835
835
|
s,
|
836
836
|
N(v),
|
837
837
|
E(([f, d]) => {
|
@@ -840,30 +840,30 @@ const zo = {
|
|
840
840
|
const L = re(d.sizeTree, 0);
|
841
841
|
let z = 0, _ = 0;
|
842
842
|
for (; z < f; ) {
|
843
|
-
const F = d.groupIndices[_],
|
843
|
+
const F = d.groupIndices[_], Y = d.groupIndices.length === _ + 1 ? 1 / 0 : d.groupIndices[_ + 1] - F - 1;
|
844
844
|
B.push({
|
845
845
|
endIndex: F,
|
846
846
|
size: L,
|
847
847
|
startIndex: F
|
848
848
|
}), B.push({
|
849
|
-
endIndex: F + 1 +
|
849
|
+
endIndex: F + 1 + Y - 1,
|
850
850
|
size: k,
|
851
851
|
startIndex: F + 1
|
852
|
-
}), _++, z +=
|
852
|
+
}), _++, z += Y + 1;
|
853
853
|
}
|
854
854
|
const J = Gt(d.sizeTree);
|
855
855
|
return z !== f && J.shift(), J.reduce(
|
856
|
-
(F, { k:
|
856
|
+
(F, { k: Y, v: it }) => {
|
857
857
|
let dt = F.ranges;
|
858
858
|
return F.prevSize !== 0 && (dt = [
|
859
859
|
...F.ranges,
|
860
860
|
{
|
861
|
-
endIndex:
|
861
|
+
endIndex: Y + f - 1,
|
862
862
|
size: F.prevSize,
|
863
863
|
startIndex: F.prevIndex
|
864
864
|
}
|
865
865
|
]), {
|
866
|
-
prevIndex:
|
866
|
+
prevIndex: Y + f,
|
867
867
|
prevSize: it,
|
868
868
|
ranges: dt
|
869
869
|
};
|
@@ -892,7 +892,7 @@ const zo = {
|
|
892
892
|
n
|
893
893
|
);
|
894
894
|
const b = ht(
|
895
|
-
|
895
|
+
x(
|
896
896
|
i,
|
897
897
|
N(v, I),
|
898
898
|
E(([f, { offsetTree: d }, y]) => {
|
@@ -902,7 +902,7 @@ const zo = {
|
|
902
902
|
)
|
903
903
|
);
|
904
904
|
return O(
|
905
|
-
|
905
|
+
x(
|
906
906
|
i,
|
907
907
|
N(v, I),
|
908
908
|
E(([f, d, y]) => {
|
@@ -910,18 +910,18 @@ const zo = {
|
|
910
910
|
if (j(d.sizeTree))
|
911
911
|
return d;
|
912
912
|
let k = jt();
|
913
|
-
const L = ot(
|
913
|
+
const L = ot(h);
|
914
914
|
let z = 0, _ = 0, J = 0;
|
915
915
|
for (; z < -f; ) {
|
916
916
|
J = L[_];
|
917
917
|
const F = L[_ + 1] - J - 1;
|
918
918
|
_++, z += F + 1;
|
919
919
|
}
|
920
|
-
if (k = Gt(d.sizeTree).reduce((F, { k:
|
920
|
+
if (k = Gt(d.sizeTree).reduce((F, { k: Y, v: it }) => pt(F, Math.max(0, Y + f), it), k), z !== -f) {
|
921
921
|
const F = re(d.sizeTree, J);
|
922
922
|
k = pt(k, 0, F);
|
923
|
-
const
|
924
|
-
k = pt(k, 1,
|
923
|
+
const Y = wt(d.sizeTree, -f + 1)[1];
|
924
|
+
k = pt(k, 1, Y);
|
925
925
|
}
|
926
926
|
return {
|
927
927
|
...d,
|
@@ -942,13 +942,13 @@ const zo = {
|
|
942
942
|
), {
|
943
943
|
beforeUnshiftWith: T,
|
944
944
|
// input
|
945
|
-
data:
|
945
|
+
data: g,
|
946
946
|
defaultItemSize: m,
|
947
947
|
firstItemIndex: l,
|
948
948
|
fixedItemSize: a,
|
949
949
|
gap: I,
|
950
950
|
groupIndices: c,
|
951
|
-
itemSize:
|
951
|
+
itemSize: S,
|
952
952
|
listRefresh: u,
|
953
953
|
shiftWith: i,
|
954
954
|
shiftWithOffset: b,
|
@@ -975,25 +975,25 @@ function Vo(t) {
|
|
975
975
|
}
|
976
976
|
const Nn = U(
|
977
977
|
([{ groupIndices: t, sizes: e, totalCount: n }, { headerHeight: o, scrollTop: r }]) => {
|
978
|
-
const s = $(), i = $(), l = ht(
|
978
|
+
const s = $(), i = $(), l = ht(x(s, E(Vo)));
|
979
979
|
return O(
|
980
|
-
|
980
|
+
x(
|
981
981
|
l,
|
982
982
|
E((c) => c.totalCount)
|
983
983
|
),
|
984
984
|
n
|
985
985
|
), O(
|
986
|
-
|
986
|
+
x(
|
987
987
|
l,
|
988
988
|
E((c) => c.groupIndices)
|
989
989
|
),
|
990
990
|
t
|
991
991
|
), O(
|
992
|
-
|
992
|
+
x(
|
993
993
|
rt(r, e, o),
|
994
994
|
A(([c, a]) => Re(a)),
|
995
995
|
E(([c, a, m]) => wt(a.groupOffsetTree, Math.max(c - m, 0), "v")[0]),
|
996
|
-
|
996
|
+
Z(),
|
997
997
|
E((c) => [c])
|
998
998
|
),
|
999
999
|
i
|
@@ -1002,11 +1002,11 @@ const Nn = U(
|
|
1002
1002
|
X(Et, at)
|
1003
1003
|
), Pt = U(
|
1004
1004
|
([{ log: t }]) => {
|
1005
|
-
const e =
|
1006
|
-
|
1005
|
+
const e = C(false), n = ht(
|
1006
|
+
x(
|
1007
1007
|
e,
|
1008
1008
|
A((o) => o),
|
1009
|
-
|
1009
|
+
Z()
|
1010
1010
|
)
|
1011
1011
|
);
|
1012
1012
|
return K(e, (o) => {
|
@@ -1031,19 +1031,19 @@ const ce = U(
|
|
1031
1031
|
scrollingInProgress: c,
|
1032
1032
|
scrollTo: a,
|
1033
1033
|
smoothScrollTargetReached: m,
|
1034
|
-
viewportHeight:
|
1034
|
+
viewportHeight: S
|
1035
1035
|
},
|
1036
|
-
{ log:
|
1036
|
+
{ log: g }
|
1037
1037
|
]) => {
|
1038
|
-
const I = $(),
|
1039
|
-
let
|
1038
|
+
const I = $(), w = $(), v = C(0);
|
1039
|
+
let h = null, p = null, u = null;
|
1040
1040
|
function T() {
|
1041
|
-
|
1041
|
+
h && (h(), h = null), u && (u(), u = null), p && (clearTimeout(p), p = null), G(c, false);
|
1042
1042
|
}
|
1043
1043
|
return O(
|
1044
|
-
|
1044
|
+
x(
|
1045
1045
|
I,
|
1046
|
-
N(n,
|
1046
|
+
N(n, S, o, v, l, i, g),
|
1047
1047
|
N(t, s, r),
|
1048
1048
|
E(
|
1049
1049
|
([
|
@@ -1052,21 +1052,21 @@ const ce = U(
|
|
1052
1052
|
J,
|
1053
1053
|
nt
|
1054
1054
|
]) => {
|
1055
|
-
const F = Dn(b), { align:
|
1055
|
+
const F = Dn(b), { align: Y, behavior: it, offset: dt } = F, St = y - 1, ft = _n(F, f, St);
|
1056
1056
|
let ut = ie(ft, f.offsetTree, _) + k;
|
1057
|
-
|
1057
|
+
Y === "end" ? (ut += J + wt(f.sizeTree, ft)[1] - d + nt, ft === St && (ut += L)) : Y === "center" ? ut += (J + wt(f.sizeTree, ft)[1] - d + nt) / 2 : ut -= B, dt && (ut += dt);
|
1058
1058
|
const At = (xt) => {
|
1059
|
-
T(), xt ? (z("retrying to scroll to", { location: b }, mt.DEBUG), G(I, b)) : (G(
|
1059
|
+
T(), xt ? (z("retrying to scroll to", { location: b }, mt.DEBUG), G(I, b)) : (G(w, true), z("list did not change, scroll successful", {}, mt.DEBUG));
|
1060
1060
|
};
|
1061
1061
|
if (T(), it === "smooth") {
|
1062
1062
|
let xt = false;
|
1063
1063
|
u = K(e, (Xt) => {
|
1064
1064
|
xt = xt || Xt;
|
1065
|
-
}),
|
1065
|
+
}), h = Tt(m, () => {
|
1066
1066
|
At(xt);
|
1067
1067
|
});
|
1068
1068
|
} else
|
1069
|
-
|
1069
|
+
h = Tt(x(e, Ao(150)), At);
|
1070
1070
|
return p = setTimeout(() => {
|
1071
1071
|
T();
|
1072
1072
|
}, 1200), G(c, true), z("scrolling from index to", { behavior: it, index: ft, top: ut }, mt.DEBUG), { behavior: it, top: ut };
|
@@ -1075,7 +1075,7 @@ const ce = U(
|
|
1075
1075
|
),
|
1076
1076
|
a
|
1077
1077
|
), {
|
1078
|
-
scrollTargetReached:
|
1078
|
+
scrollTargetReached: w,
|
1079
1079
|
scrollToIndex: I,
|
1080
1080
|
topListHeight: v
|
1081
1081
|
};
|
@@ -1104,28 +1104,28 @@ function Ke(t, e) {
|
|
1104
1104
|
}
|
1105
1105
|
const ue = U(
|
1106
1106
|
([{ defaultItemSize: t, listRefresh: e, sizes: n }, { scrollTop: o }, { scrollTargetReached: r, scrollToIndex: s }, { didMount: i }]) => {
|
1107
|
-
const l =
|
1107
|
+
const l = C(true), c = C(0), a = C(true);
|
1108
1108
|
return O(
|
1109
|
-
|
1109
|
+
x(
|
1110
1110
|
i,
|
1111
1111
|
N(c),
|
1112
|
-
A(([m,
|
1112
|
+
A(([m, S]) => !!S),
|
1113
1113
|
Rt(false)
|
1114
1114
|
),
|
1115
1115
|
l
|
1116
1116
|
), O(
|
1117
|
-
|
1117
|
+
x(
|
1118
1118
|
i,
|
1119
1119
|
N(c),
|
1120
|
-
A(([m,
|
1120
|
+
A(([m, S]) => !!S),
|
1121
1121
|
Rt(false)
|
1122
1122
|
),
|
1123
1123
|
a
|
1124
1124
|
), K(
|
1125
|
-
|
1125
|
+
x(
|
1126
1126
|
rt(e, i),
|
1127
1127
|
N(l, n, t, a),
|
1128
|
-
A(([[, m],
|
1128
|
+
A(([[, m], S, { sizeTree: g }, I, w]) => m && (!j(g) || We(I)) && !S && !w),
|
1129
1129
|
N(c)
|
1130
1130
|
),
|
1131
1131
|
([, m]) => {
|
@@ -1159,26 +1159,26 @@ const le = "up", te = "down", Mo = "none", Wo = {
|
|
1159
1159
|
viewportHeight: 0
|
1160
1160
|
}
|
1161
1161
|
}, Go = 0, ae = U(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
|
1162
|
-
const i =
|
1163
|
-
|
1164
|
-
Le(
|
1165
|
-
|
1162
|
+
const i = C(false), l = C(true), c = $(), a = $(), m = C(4), S = C(Go), g = ct(
|
1163
|
+
x(
|
1164
|
+
Le(x(V(r), Dt(1), Rt(true)), x(V(r), Dt(1), Rt(false), dn(100))),
|
1165
|
+
Z()
|
1166
1166
|
),
|
1167
1167
|
false
|
1168
1168
|
), I = ct(
|
1169
|
-
|
1169
|
+
x(Le(x(n, Rt(true)), x(n, Rt(false), dn(200))), Z()),
|
1170
1170
|
false
|
1171
1171
|
);
|
1172
1172
|
O(
|
1173
|
-
|
1174
|
-
rt(V(r), V(
|
1173
|
+
x(
|
1174
|
+
rt(V(r), V(S)),
|
1175
1175
|
E(([u, T]) => u <= T),
|
1176
|
-
|
1176
|
+
Z()
|
1177
1177
|
),
|
1178
1178
|
l
|
1179
|
-
), O(
|
1180
|
-
const
|
1181
|
-
|
1179
|
+
), O(x(l, kt(50)), a);
|
1180
|
+
const w = ht(
|
1181
|
+
x(
|
1182
1182
|
rt(o, V(s), V(e), V(t), V(m)),
|
1183
1183
|
bt((u, [{ scrollHeight: T, scrollTop: b }, f, d, y, B]) => {
|
1184
1184
|
const k = b + f - T > -B, L = {
|
@@ -1202,10 +1202,10 @@ const le = "up", te = "down", Mo = "none", Wo = {
|
|
1202
1202
|
state: L
|
1203
1203
|
};
|
1204
1204
|
}, Wo),
|
1205
|
-
|
1205
|
+
Z((u, T) => u && u.atBottom === T.atBottom)
|
1206
1206
|
)
|
1207
1207
|
), v = ct(
|
1208
|
-
|
1208
|
+
x(
|
1209
1209
|
o,
|
1210
1210
|
bt(
|
1211
1211
|
(u, { scrollHeight: T, scrollTop: b, viewportHeight: f }) => {
|
@@ -1239,55 +1239,55 @@ const le = "up", te = "down", Mo = "none", Wo = {
|
|
1239
1239
|
0
|
1240
1240
|
);
|
1241
1241
|
O(
|
1242
|
-
|
1243
|
-
|
1242
|
+
x(
|
1243
|
+
w,
|
1244
1244
|
E((u) => u.atBottom)
|
1245
1245
|
),
|
1246
1246
|
i
|
1247
|
-
), O(
|
1248
|
-
const
|
1247
|
+
), O(x(i, kt(50)), c);
|
1248
|
+
const h = C(te);
|
1249
1249
|
O(
|
1250
|
-
|
1250
|
+
x(
|
1251
1251
|
o,
|
1252
1252
|
E(({ scrollTop: u }) => u),
|
1253
|
-
|
1253
|
+
Z(),
|
1254
1254
|
bt(
|
1255
1255
|
(u, T) => ot(I) ? { direction: u.direction, prevScrollTop: T } : { direction: T < u.prevScrollTop ? le : te, prevScrollTop: T },
|
1256
1256
|
{ direction: te, prevScrollTop: 0 }
|
1257
1257
|
),
|
1258
1258
|
E((u) => u.direction)
|
1259
1259
|
),
|
1260
|
-
|
1261
|
-
), O(
|
1262
|
-
const p =
|
1260
|
+
h
|
1261
|
+
), O(x(o, kt(50), Rt(Mo)), h);
|
1262
|
+
const p = C(0);
|
1263
1263
|
return O(
|
1264
|
-
|
1265
|
-
|
1264
|
+
x(
|
1265
|
+
g,
|
1266
1266
|
A((u) => !u),
|
1267
1267
|
Rt(0)
|
1268
1268
|
),
|
1269
1269
|
p
|
1270
1270
|
), O(
|
1271
|
-
|
1271
|
+
x(
|
1272
1272
|
r,
|
1273
1273
|
kt(100),
|
1274
|
-
N(
|
1274
|
+
N(g),
|
1275
1275
|
A(([u, T]) => !!T),
|
1276
1276
|
bt(([u, T], [b]) => [T, b], [0, 0]),
|
1277
1277
|
E(([u, T]) => T - u)
|
1278
1278
|
),
|
1279
1279
|
p
|
1280
1280
|
), {
|
1281
|
-
atBottomState:
|
1281
|
+
atBottomState: w,
|
1282
1282
|
atBottomStateChange: c,
|
1283
1283
|
atBottomThreshold: m,
|
1284
1284
|
atTopStateChange: a,
|
1285
|
-
atTopThreshold:
|
1285
|
+
atTopThreshold: S,
|
1286
1286
|
isAtBottom: i,
|
1287
1287
|
isAtTop: l,
|
1288
|
-
isScrolling:
|
1288
|
+
isScrolling: g,
|
1289
1289
|
lastJumpDueToItemResize: v,
|
1290
|
-
scrollDirection:
|
1290
|
+
scrollDirection: h,
|
1291
1291
|
scrollVelocity: p
|
1292
1292
|
};
|
1293
1293
|
}, X(at)), xe = "top", Te = "bottom", hn = "none";
|
@@ -1300,8 +1300,8 @@ function In(t, e) {
|
|
1300
1300
|
}
|
1301
1301
|
const je = U(
|
1302
1302
|
([{ deviation: t, fixedHeaderHeight: e, headerHeight: n, scrollTop: o, viewportHeight: r }]) => {
|
1303
|
-
const s = $(), i =
|
1304
|
-
|
1303
|
+
const s = $(), i = C(0), l = C(0), c = C(0), a = ct(
|
1304
|
+
x(
|
1305
1305
|
rt(
|
1306
1306
|
V(o),
|
1307
1307
|
V(r),
|
@@ -1316,26 +1316,26 @@ const je = U(
|
|
1316
1316
|
E(
|
1317
1317
|
([
|
1318
1318
|
m,
|
1319
|
-
|
1320
|
-
h,
|
1321
|
-
[I, C],
|
1322
|
-
v,
|
1319
|
+
S,
|
1323
1320
|
g,
|
1321
|
+
[I, w],
|
1322
|
+
v,
|
1323
|
+
h,
|
1324
1324
|
p,
|
1325
1325
|
u,
|
1326
1326
|
T
|
1327
1327
|
]) => {
|
1328
|
-
const b = m - u, f =
|
1328
|
+
const b = m - u, f = h + p, d = Math.max(g - b, 0);
|
1329
1329
|
let y = hn;
|
1330
1330
|
const B = In(T, xe), k = In(T, Te);
|
1331
|
-
return I -= u, I +=
|
1332
|
-
Math.max(b -
|
1333
|
-
b - d - p +
|
1331
|
+
return I -= u, I += g + p, w += g + p, w -= u, I > m + f - B && (y = le), w < m - d + S + k && (y = te), y !== hn ? [
|
1332
|
+
Math.max(b - g - gn(v, xe, y) - B, 0),
|
1333
|
+
b - d - p + S + gn(v, Te, y) + k
|
1334
1334
|
] : null;
|
1335
1335
|
}
|
1336
1336
|
),
|
1337
1337
|
A((m) => m != null),
|
1338
|
-
|
1338
|
+
Z(se)
|
1339
1339
|
),
|
1340
1340
|
[0, 0]
|
1341
1341
|
);
|
@@ -1381,16 +1381,16 @@ function Ie(t, e, n, o, r, s) {
|
|
1381
1381
|
const v = t[t.length - 1];
|
1382
1382
|
m = v.offset + v.size;
|
1383
1383
|
}
|
1384
|
-
const
|
1384
|
+
const S = n - i, g = l + S * c + (S - 1) * o, I = a, w = g - m;
|
1385
1385
|
return {
|
1386
1386
|
bottom: m,
|
1387
1387
|
firstItemIndex: s,
|
1388
1388
|
items: Sn(t, r, s),
|
1389
|
-
offsetBottom:
|
1389
|
+
offsetBottom: w,
|
1390
1390
|
offsetTop: a,
|
1391
1391
|
top: I,
|
1392
1392
|
topItems: Sn(e, r, s),
|
1393
|
-
topListHeight: e.reduce((v,
|
1393
|
+
topListHeight: e.reduce((v, h) => h.size + v, 0),
|
1394
1394
|
totalCount: n
|
1395
1395
|
};
|
1396
1396
|
}
|
@@ -1402,9 +1402,9 @@ function Un(t, e, n, o, r, s) {
|
|
1402
1402
|
break;
|
1403
1403
|
i++;
|
1404
1404
|
}
|
1405
|
-
const l = t + i, c = Ke(e, l), a = Array.from({ length: l }).map((m,
|
1406
|
-
data: s[
|
1407
|
-
index:
|
1405
|
+
const l = t + i, c = Ke(e, l), a = Array.from({ length: l }).map((m, S) => ({
|
1406
|
+
data: s[S + c],
|
1407
|
+
index: S + c,
|
1408
1408
|
offset: 0,
|
1409
1409
|
size: 0
|
1410
1410
|
}));
|
@@ -1442,18 +1442,18 @@ const $t = U(
|
|
1442
1442
|
s,
|
1443
1443
|
{ listBoundary: i, topListHeight: l, visibleRange: c },
|
1444
1444
|
{ initialTopMostItemIndex: a, scrolledToInitialItem: m },
|
1445
|
-
{ topListHeight:
|
1446
|
-
|
1445
|
+
{ topListHeight: S },
|
1446
|
+
g,
|
1447
1447
|
{ didMount: I },
|
1448
|
-
{ recalcInProgress:
|
1448
|
+
{ recalcInProgress: w }
|
1449
1449
|
]) => {
|
1450
|
-
const v =
|
1450
|
+
const v = C([]), h = C(0), p = $();
|
1451
1451
|
O(s.topItemsIndexes, v);
|
1452
1452
|
const u = ct(
|
1453
|
-
|
1453
|
+
x(
|
1454
1454
|
rt(
|
1455
1455
|
I,
|
1456
|
-
|
1456
|
+
w,
|
1457
1457
|
V(c, se),
|
1458
1458
|
V(r),
|
1459
1459
|
V(o),
|
@@ -1482,18 +1482,18 @@ const $t = U(
|
|
1482
1482
|
nt,
|
1483
1483
|
F
|
1484
1484
|
]) => {
|
1485
|
-
const
|
1485
|
+
const Y = k, { offsetTree: it, sizeTree: dt } = Y, St = ot(h);
|
1486
1486
|
if (B === 0)
|
1487
1487
|
return { ...Be, totalCount: B };
|
1488
1488
|
if (d === 0 && y === 0)
|
1489
1489
|
return St === 0 ? { ...Be, totalCount: B } : Un(St, L, k, J, nt, F || []);
|
1490
1490
|
if (j(dt))
|
1491
1491
|
return St > 0 ? null : Ie(
|
1492
|
-
_o(Ke(L, B),
|
1492
|
+
_o(Ke(L, B), Y, F),
|
1493
1493
|
[],
|
1494
1494
|
B,
|
1495
1495
|
nt,
|
1496
|
-
|
1496
|
+
Y,
|
1497
1497
|
J
|
1498
1498
|
);
|
1499
1499
|
const ft = [];
|
@@ -1507,7 +1507,7 @@ const $t = U(
|
|
1507
1507
|
}
|
1508
1508
|
}
|
1509
1509
|
if (!z)
|
1510
|
-
return Ie([], ft, B, nt,
|
1510
|
+
return Ie([], ft, B, nt, Y, J);
|
1511
1511
|
const ut = _.length > 0 ? _[_.length - 1] + 1 : 0, At = Bo(it, d, y, ut);
|
1512
1512
|
if (At.length === 0)
|
1513
1513
|
return null;
|
@@ -1527,61 +1527,61 @@ const $t = U(
|
|
1527
1527
|
Mt.push({ data: F == null ? void 0 : F[tt], index: tt, offset: R, size: Q }), R += Q + nt;
|
1528
1528
|
}
|
1529
1529
|
});
|
1530
|
-
return Ie(Xt, ft, B, nt,
|
1530
|
+
return Ie(Xt, ft, B, nt, Y, J);
|
1531
1531
|
}
|
1532
1532
|
),
|
1533
1533
|
//@ts-expect-error filter needs to be fixed
|
1534
1534
|
A((d) => d !== null),
|
1535
|
-
|
1535
|
+
Z()
|
1536
1536
|
),
|
1537
1537
|
Be
|
1538
1538
|
);
|
1539
1539
|
O(
|
1540
|
-
|
1540
|
+
x(
|
1541
1541
|
t,
|
1542
1542
|
A(We),
|
1543
1543
|
E((d) => d == null ? void 0 : d.length)
|
1544
1544
|
),
|
1545
1545
|
r
|
1546
1546
|
), O(
|
1547
|
-
|
1547
|
+
x(
|
1548
1548
|
u,
|
1549
1549
|
E((d) => d.topListHeight)
|
1550
1550
|
),
|
1551
|
-
|
1552
|
-
), O(
|
1553
|
-
|
1551
|
+
S
|
1552
|
+
), O(S, l), O(
|
1553
|
+
x(
|
1554
1554
|
u,
|
1555
1555
|
E((d) => [d.top, d.bottom])
|
1556
1556
|
),
|
1557
1557
|
i
|
1558
1558
|
), O(
|
1559
|
-
|
1559
|
+
x(
|
1560
1560
|
u,
|
1561
1561
|
E((d) => d.items)
|
1562
1562
|
),
|
1563
1563
|
p
|
1564
1564
|
);
|
1565
1565
|
const T = ht(
|
1566
|
-
|
1566
|
+
x(
|
1567
1567
|
u,
|
1568
1568
|
A(({ items: d }) => d.length > 0),
|
1569
1569
|
N(r, t),
|
1570
1570
|
A(([{ items: d }, y]) => d[d.length - 1].originalIndex === y - 1),
|
1571
1571
|
E(([, d, y]) => [d - 1, y]),
|
1572
|
-
|
1572
|
+
Z(se),
|
1573
1573
|
E(([d]) => d)
|
1574
1574
|
)
|
1575
1575
|
), b = ht(
|
1576
|
-
|
1576
|
+
x(
|
1577
1577
|
u,
|
1578
1578
|
kt(200),
|
1579
1579
|
A(({ items: d, topItems: y }) => d.length > 0 && d[0].originalIndex === y.length),
|
1580
1580
|
E(({ items: d }) => d[0].index),
|
1581
|
-
|
1581
|
+
Z()
|
1582
1582
|
)
|
1583
1583
|
), f = ht(
|
1584
|
-
|
1584
|
+
x(
|
1585
1585
|
u,
|
1586
1586
|
A(({ items: d }) => d.length > 0),
|
1587
1587
|
E(({ items: d }) => {
|
@@ -1595,10 +1595,10 @@ const $t = U(
|
|
1595
1595
|
startIndex: d[y].index
|
1596
1596
|
};
|
1597
1597
|
}),
|
1598
|
-
|
1598
|
+
Z(Mn)
|
1599
1599
|
)
|
1600
1600
|
);
|
1601
|
-
return { endReached: T, initialItemCount:
|
1601
|
+
return { endReached: T, initialItemCount: h, itemsRendered: p, listState: u, rangeChanged: f, startReached: b, topItemsIndexes: v, ...g };
|
1602
1602
|
},
|
1603
1603
|
X(
|
1604
1604
|
Et,
|
@@ -1614,9 +1614,9 @@ const $t = U(
|
|
1614
1614
|
), Kn = U(
|
1615
1615
|
([{ fixedFooterHeight: t, fixedHeaderHeight: e, footerHeight: n, headerHeight: o }, { listState: r }]) => {
|
1616
1616
|
const s = $(), i = ct(
|
1617
|
-
|
1617
|
+
x(
|
1618
1618
|
rt(n, t, o, e, r),
|
1619
|
-
E(([l, c, a, m,
|
1619
|
+
E(([l, c, a, m, S]) => l + c + a + m + S.offsetBottom + S.bottom)
|
1620
1620
|
),
|
1621
1621
|
0
|
1622
1622
|
);
|
@@ -1626,13 +1626,13 @@ const $t = U(
|
|
1626
1626
|
{ singleton: true }
|
1627
1627
|
), No = U(
|
1628
1628
|
([{ viewportHeight: t }, { totalListHeight: e }]) => {
|
1629
|
-
const n =
|
1630
|
-
|
1629
|
+
const n = C(false), o = ct(
|
1630
|
+
x(
|
1631
1631
|
rt(n, t, e),
|
1632
1632
|
A(([r]) => r),
|
1633
1633
|
E(([, r, s]) => Math.max(0, r - s)),
|
1634
1634
|
kt(0),
|
1635
|
-
|
1635
|
+
Z()
|
1636
1636
|
),
|
1637
1637
|
0
|
1638
1638
|
);
|
@@ -1641,7 +1641,7 @@ const $t = U(
|
|
1641
1641
|
X(at, Kn),
|
1642
1642
|
{ singleton: true }
|
1643
1643
|
), jn = U(() => ({
|
1644
|
-
context:
|
1644
|
+
context: C(null)
|
1645
1645
|
})), Do = ({
|
1646
1646
|
itemBottom: t,
|
1647
1647
|
itemTop: e,
|
@@ -1656,12 +1656,12 @@ const $t = U(
|
|
1656
1656
|
]) => {
|
1657
1657
|
const m = $();
|
1658
1658
|
return O(
|
1659
|
-
|
1659
|
+
x(
|
1660
1660
|
m,
|
1661
1661
|
N(e, c, n, s, r, o, l),
|
1662
1662
|
N(t),
|
1663
|
-
E(([[
|
1664
|
-
const { align: b, behavior: f, calculateViewLocation: d = Do, done: y, ...B } =
|
1663
|
+
E(([[S, g, I, w, v, h, p, u], T]) => {
|
1664
|
+
const { align: b, behavior: f, calculateViewLocation: d = Do, done: y, ...B } = S, k = _n(S, g, w - 1), L = ie(k, g.offsetTree, T) + v + h, z = L + wt(g.sizeTree, k)[1], _ = u + h, J = u + I - p, nt = d({
|
1665
1665
|
itemBottom: z,
|
1666
1666
|
itemTop: L,
|
1667
1667
|
locationParams: { align: b, behavior: f, ...B },
|
@@ -1669,7 +1669,7 @@ const $t = U(
|
|
1669
1669
|
viewportTop: _
|
1670
1670
|
});
|
1671
1671
|
return nt ? y && Tt(
|
1672
|
-
|
1672
|
+
x(
|
1673
1673
|
i,
|
1674
1674
|
A((F) => !F),
|
1675
1675
|
// skips the initial publish of false, and the cleanup call.
|
@@ -1679,7 +1679,7 @@ const $t = U(
|
|
1679
1679
|
y
|
1680
1680
|
) : y && y(), nt;
|
1681
1681
|
}),
|
1682
|
-
A((
|
1682
|
+
A((S) => S !== null)
|
1683
1683
|
),
|
1684
1684
|
a
|
1685
1685
|
), {
|
@@ -1700,12 +1700,12 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1700
1700
|
{ scrolledToInitialItem: l },
|
1701
1701
|
{ didMount: c, propsReady: a },
|
1702
1702
|
{ log: m },
|
1703
|
-
{ scrollingInProgress:
|
1704
|
-
{ context:
|
1703
|
+
{ scrollingInProgress: S },
|
1704
|
+
{ context: g },
|
1705
1705
|
{ scrollIntoView: I }
|
1706
1706
|
]) => {
|
1707
|
-
const
|
1708
|
-
let
|
1707
|
+
const w = C(false), v = $();
|
1708
|
+
let h = null;
|
1709
1709
|
function p(f) {
|
1710
1710
|
G(i, {
|
1711
1711
|
align: "end",
|
@@ -1714,9 +1714,9 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1714
1714
|
});
|
1715
1715
|
}
|
1716
1716
|
K(
|
1717
|
-
|
1718
|
-
rt(
|
1719
|
-
N(V(
|
1717
|
+
x(
|
1718
|
+
rt(x(V(e), Dt(1)), c),
|
1719
|
+
N(V(w), s, l, S),
|
1720
1720
|
E(([[f, d], y, B, k, L]) => {
|
1721
1721
|
let z = d && k, _ = "auto";
|
1722
1722
|
return z && (_ = $o(y, B || L), z = z && !!_), { followOutputBehavior: _, shouldFollow: z, totalCount: f };
|
@@ -1724,67 +1724,67 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1724
1724
|
A(({ shouldFollow: f }) => f)
|
1725
1725
|
),
|
1726
1726
|
({ followOutputBehavior: f, totalCount: d }) => {
|
1727
|
-
|
1727
|
+
h && (h(), h = null), ot(n) ? requestAnimationFrame(() => {
|
1728
1728
|
ot(m)("following output to ", { totalCount: d }, mt.DEBUG), p(f);
|
1729
|
-
}) :
|
1730
|
-
ot(m)("following output to ", { totalCount: d }, mt.DEBUG), p(f),
|
1729
|
+
}) : h = Tt(t, () => {
|
1730
|
+
ot(m)("following output to ", { totalCount: d }, mt.DEBUG), p(f), h = null;
|
1731
1731
|
});
|
1732
1732
|
}
|
1733
1733
|
);
|
1734
1734
|
function u(f) {
|
1735
1735
|
const d = Tt(r, (y) => {
|
1736
|
-
f && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && !
|
1736
|
+
f && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && !h && (ot(m)("scrolling to bottom due to increased size", {}, mt.DEBUG), p("auto"));
|
1737
1737
|
});
|
1738
1738
|
setTimeout(d, 100);
|
1739
1739
|
}
|
1740
1740
|
K(
|
1741
|
-
|
1742
|
-
rt(V(
|
1741
|
+
x(
|
1742
|
+
rt(V(w), e, a),
|
1743
1743
|
A(([f, , d]) => f && d),
|
1744
1744
|
bt(
|
1745
1745
|
({ value: f }, [, d]) => ({ refreshed: f === d, value: d }),
|
1746
1746
|
{ refreshed: false, value: 0 }
|
1747
1747
|
),
|
1748
1748
|
A(({ refreshed: f }) => f),
|
1749
|
-
N(
|
1749
|
+
N(w, e)
|
1750
1750
|
),
|
1751
1751
|
([, f]) => {
|
1752
1752
|
ot(l) && u(f !== false);
|
1753
1753
|
}
|
1754
1754
|
), K(v, () => {
|
1755
|
-
u(ot(
|
1756
|
-
}), K(rt(V(
|
1755
|
+
u(ot(w) !== false);
|
1756
|
+
}), K(rt(V(w), r), ([f, d]) => {
|
1757
1757
|
f && !d.atBottom && d.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && p("auto");
|
1758
1758
|
});
|
1759
|
-
const T =
|
1759
|
+
const T = C(null), b = $();
|
1760
1760
|
return O(
|
1761
1761
|
Le(
|
1762
|
-
|
1762
|
+
x(
|
1763
1763
|
V(o),
|
1764
1764
|
E((f) => {
|
1765
1765
|
var d;
|
1766
1766
|
return (d = f == null ? void 0 : f.length) != null ? d : 0;
|
1767
1767
|
})
|
1768
1768
|
),
|
1769
|
-
|
1769
|
+
x(V(e))
|
1770
1770
|
),
|
1771
1771
|
b
|
1772
1772
|
), K(
|
1773
|
-
|
1774
|
-
rt(
|
1775
|
-
N(V(T), l,
|
1773
|
+
x(
|
1774
|
+
rt(x(b, Dt(1)), c),
|
1775
|
+
N(V(T), l, S, g),
|
1776
1776
|
E(([[f, d], y, B, k, L]) => d && B && (y == null ? void 0 : y({ context: L, totalCount: f, scrollingInProgress: k }))),
|
1777
1777
|
A((f) => !!f),
|
1778
1778
|
kt(0)
|
1779
1779
|
),
|
1780
1780
|
(f) => {
|
1781
|
-
|
1781
|
+
h && (h(), h = null), ot(n) ? requestAnimationFrame(() => {
|
1782
1782
|
ot(m)("scrolling into view", {}), G(I, f);
|
1783
|
-
}) :
|
1784
|
-
ot(m)("scrolling into view", {}), G(I, f),
|
1783
|
+
}) : h = Tt(t, () => {
|
1784
|
+
ot(m)("scrolling into view", {}), G(I, f), h = null;
|
1785
1785
|
});
|
1786
1786
|
}
|
1787
|
-
), { autoscrollToBottom: v, followOutput:
|
1787
|
+
), { autoscrollToBottom: v, followOutput: w, scrollIntoViewOnChange: T };
|
1788
1788
|
},
|
1789
1789
|
X(
|
1790
1790
|
Et,
|
@@ -1799,12 +1799,12 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1799
1799
|
)
|
1800
1800
|
), Ko = U(
|
1801
1801
|
([{ data: t, firstItemIndex: e, gap: n, sizes: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: i }, { didMount: l }]) => (O(
|
1802
|
-
|
1802
|
+
x(
|
1803
1803
|
l,
|
1804
1804
|
N(s),
|
1805
1805
|
A(([, c]) => c !== 0),
|
1806
1806
|
N(r, o, e, n, t),
|
1807
|
-
E(([[, c], a, m,
|
1807
|
+
E(([[, c], a, m, S, g, I = []]) => Un(c, a, m, S, g, I))
|
1808
1808
|
),
|
1809
1809
|
i
|
1810
1810
|
), {}),
|
@@ -1812,9 +1812,9 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1812
1812
|
{ singleton: true }
|
1813
1813
|
), jo = U(
|
1814
1814
|
([{ didMount: t }, { scrollTo: e }, { listState: n }]) => {
|
1815
|
-
const o =
|
1815
|
+
const o = C(0);
|
1816
1816
|
return K(
|
1817
|
-
|
1817
|
+
x(
|
1818
1818
|
t,
|
1819
1819
|
N(o),
|
1820
1820
|
A(([, r]) => r !== 0),
|
@@ -1822,7 +1822,7 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1822
1822
|
),
|
1823
1823
|
(r) => {
|
1824
1824
|
Tt(
|
1825
|
-
|
1825
|
+
x(
|
1826
1826
|
n,
|
1827
1827
|
Dt(1),
|
1828
1828
|
A((s) => s.items.length > 1)
|
@@ -1842,9 +1842,9 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1842
1842
|
{ singleton: true }
|
1843
1843
|
), Yn = U(
|
1844
1844
|
([{ scrollVelocity: t }]) => {
|
1845
|
-
const e =
|
1845
|
+
const e = C(false), n = $(), o = C(false);
|
1846
1846
|
return O(
|
1847
|
-
|
1847
|
+
x(
|
1848
1848
|
t,
|
1849
1849
|
N(o, e, n),
|
1850
1850
|
A(([r, s]) => !!s),
|
@@ -1857,11 +1857,11 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1857
1857
|
return true;
|
1858
1858
|
return i;
|
1859
1859
|
}),
|
1860
|
-
|
1860
|
+
Z()
|
1861
1861
|
),
|
1862
1862
|
e
|
1863
1863
|
), K(
|
1864
|
-
|
1864
|
+
x(rt(e, t, n), N(o)),
|
1865
1865
|
([[r, s, i], l]) => {
|
1866
1866
|
r && l && l.change && l.change(s, i);
|
1867
1867
|
}
|
@@ -1870,9 +1870,9 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1870
1870
|
X(ae),
|
1871
1871
|
{ singleton: true }
|
1872
1872
|
), qe = U(([{ scrollContainerState: t, scrollTo: e }]) => {
|
1873
|
-
const n = $(), o = $(), r = $(), s =
|
1873
|
+
const n = $(), o = $(), r = $(), s = C(false), i = C(void 0);
|
1874
1874
|
return O(
|
1875
|
-
|
1875
|
+
x(
|
1876
1876
|
rt(n, o),
|
1877
1877
|
E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: m }]) => ({
|
1878
1878
|
scrollHeight: l,
|
@@ -1882,7 +1882,7 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1882
1882
|
),
|
1883
1883
|
t
|
1884
1884
|
), O(
|
1885
|
-
|
1885
|
+
x(
|
1886
1886
|
e,
|
1887
1887
|
N(o),
|
1888
1888
|
E(([l, { offsetTop: c }]) => ({
|
@@ -1909,22 +1909,22 @@ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
|
|
1909
1909
|
{ didMount: s },
|
1910
1910
|
{ useWindowScroll: i, windowScrollContainerState: l, windowViewportRect: c }
|
1911
1911
|
]) => {
|
1912
|
-
const a = $(), m =
|
1913
|
-
return O(l,
|
1914
|
-
|
1912
|
+
const a = $(), m = C(void 0), S = C(null), g = C(null);
|
1913
|
+
return O(l, S), O(c, g), K(
|
1914
|
+
x(
|
1915
1915
|
a,
|
1916
|
-
N(e, o, i,
|
1916
|
+
N(e, o, i, S, g, n)
|
1917
1917
|
),
|
1918
|
-
([I,
|
1919
|
-
const b = Fo(
|
1920
|
-
|
1918
|
+
([I, w, v, h, p, u, T]) => {
|
1919
|
+
const b = Fo(w.sizeTree);
|
1920
|
+
h && p !== null && u !== null && (v = p.scrollTop - u.offsetTop), v -= T, I({ ranges: b, scrollTop: v });
|
1921
1921
|
}
|
1922
|
-
), O(
|
1923
|
-
|
1922
|
+
), O(x(m, A(We), E(Yo)), r), O(
|
1923
|
+
x(
|
1924
1924
|
s,
|
1925
1925
|
N(m),
|
1926
1926
|
A(([, I]) => I !== void 0),
|
1927
|
-
|
1927
|
+
Z(),
|
1928
1928
|
E(([, I]) => I.ranges)
|
1929
1929
|
),
|
1930
1930
|
t
|
@@ -1939,9 +1939,9 @@ function Yo(t) {
|
|
1939
1939
|
return { align: "start", index: 0, offset: t.scrollTop };
|
1940
1940
|
}
|
1941
1941
|
const Zo = U(([{ topItemsIndexes: t }]) => {
|
1942
|
-
const e =
|
1942
|
+
const e = C(0);
|
1943
1943
|
return O(
|
1944
|
-
|
1944
|
+
x(
|
1945
1945
|
e,
|
1946
1946
|
A((n) => n >= 0),
|
1947
1947
|
E((n) => Array.from({ length: n }).map((o, r) => r))
|
@@ -1958,12 +1958,12 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
1958
1958
|
{ deviation: t, scrollBy: e, scrollingInProgress: n, scrollTop: o },
|
1959
1959
|
{ isAtBottom: r, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: l },
|
1960
1960
|
{ listState: c },
|
1961
|
-
{ beforeUnshiftWith: a, gap: m, shiftWithOffset:
|
1961
|
+
{ beforeUnshiftWith: a, gap: m, shiftWithOffset: S, sizes: g },
|
1962
1962
|
{ log: I },
|
1963
|
-
{ recalcInProgress:
|
1963
|
+
{ recalcInProgress: w }
|
1964
1964
|
]) => {
|
1965
1965
|
const v = ht(
|
1966
|
-
|
1966
|
+
x(
|
1967
1967
|
c,
|
1968
1968
|
N(i),
|
1969
1969
|
bt(
|
@@ -1975,34 +1975,34 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
1975
1975
|
[0, [], 0, 0]
|
1976
1976
|
),
|
1977
1977
|
A(([p]) => p !== 0),
|
1978
|
-
N(o, l, n, r, I,
|
1978
|
+
N(o, l, n, r, I, w),
|
1979
1979
|
A(([, p, u, T, , , b]) => !b && !T && p !== 0 && u === le),
|
1980
1980
|
E(([[p], , , , , u]) => (u("Upward scrolling compensation", { amount: p }, mt.DEBUG), p))
|
1981
1981
|
)
|
1982
1982
|
);
|
1983
|
-
function
|
1983
|
+
function h(p) {
|
1984
1984
|
p > 0 ? (G(e, { behavior: "auto", top: -p }), G(t, 0)) : (G(t, 0), G(e, { behavior: "auto", top: -p }));
|
1985
1985
|
}
|
1986
|
-
return K(
|
1987
|
-
T && Xo() ? G(t, u - p) :
|
1986
|
+
return K(x(v, N(t, s)), ([p, u, T]) => {
|
1987
|
+
T && Xo() ? G(t, u - p) : h(-p);
|
1988
1988
|
}), K(
|
1989
|
-
|
1990
|
-
rt(ct(s, false), t,
|
1989
|
+
x(
|
1990
|
+
rt(ct(s, false), t, w),
|
1991
1991
|
A(([p, u, T]) => !p && !T && u !== 0),
|
1992
1992
|
E(([p, u]) => u),
|
1993
1993
|
kt(1)
|
1994
1994
|
),
|
1995
|
-
|
1995
|
+
h
|
1996
1996
|
), O(
|
1997
|
-
|
1998
|
-
|
1997
|
+
x(
|
1998
|
+
S,
|
1999
1999
|
E((p) => ({ top: -p }))
|
2000
2000
|
),
|
2001
2001
|
e
|
2002
2002
|
), K(
|
2003
|
-
|
2003
|
+
x(
|
2004
2004
|
a,
|
2005
|
-
N(
|
2005
|
+
N(g, m),
|
2006
2006
|
E(([p, { groupIndices: u, lastSize: T, sizeTree: b }, f]) => {
|
2007
2007
|
function d(y) {
|
2008
2008
|
return y * (T + f);
|
@@ -2025,7 +2025,7 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
2025
2025
|
(p) => {
|
2026
2026
|
G(t, p), requestAnimationFrame(() => {
|
2027
2027
|
G(e, { top: p }), requestAnimationFrame(() => {
|
2028
|
-
G(t, 0), G(
|
2028
|
+
G(t, 0), G(w, false);
|
2029
2029
|
});
|
2030
2030
|
});
|
2031
2031
|
}
|
@@ -2085,11 +2085,11 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
2085
2085
|
sizes: c,
|
2086
2086
|
statefulTotalCount: a,
|
2087
2087
|
totalCount: m,
|
2088
|
-
trackItemSizes:
|
2088
|
+
trackItemSizes: S
|
2089
2089
|
},
|
2090
|
-
{ initialItemFinalLocationReached:
|
2090
|
+
{ initialItemFinalLocationReached: g, initialTopMostItemIndex: I, scrolledToInitialItem: w },
|
2091
2091
|
v,
|
2092
|
-
|
2092
|
+
h,
|
2093
2093
|
p,
|
2094
2094
|
{ listState: u, topItemsIndexes: T, ...b },
|
2095
2095
|
{ scrollToIndex: f },
|
@@ -2098,7 +2098,7 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
2098
2098
|
{ groupCounts: B },
|
2099
2099
|
k
|
2100
2100
|
]) => (O(b.rangeChanged, k.scrollSeekRangeChanged), O(
|
2101
|
-
|
2101
|
+
x(
|
2102
2102
|
k.windowViewportRect,
|
2103
2103
|
E((L) => L.visibleHeight)
|
2104
2104
|
),
|
@@ -2110,9 +2110,9 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
2110
2110
|
fixedItemHeight: o,
|
2111
2111
|
gap: r,
|
2112
2112
|
groupCounts: B,
|
2113
|
-
initialItemFinalLocationReached:
|
2113
|
+
initialItemFinalLocationReached: g,
|
2114
2114
|
initialTopMostItemIndex: I,
|
2115
|
-
scrolledToInitialItem:
|
2115
|
+
scrolledToInitialItem: w,
|
2116
2116
|
sizeRanges: l,
|
2117
2117
|
topItemCount: y,
|
2118
2118
|
topItemsIndexes: T,
|
@@ -2125,14 +2125,14 @@ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
2125
2125
|
scrollToIndex: f,
|
2126
2126
|
// output
|
2127
2127
|
statefulTotalCount: a,
|
2128
|
-
trackItemSizes:
|
2128
|
+
trackItemSizes: S,
|
2129
2129
|
// exported from stateFlagsSystem
|
2130
2130
|
...b,
|
2131
2131
|
// the bag of IO from featureGroup1System
|
2132
2132
|
...k,
|
2133
2133
|
...v,
|
2134
2134
|
sizes: c,
|
2135
|
-
...
|
2135
|
+
...h
|
2136
2136
|
}),
|
2137
2137
|
X(
|
2138
2138
|
Et,
|
@@ -2183,7 +2183,7 @@ function Ye(t, e, n) {
|
|
2183
2183
|
function m(p) {
|
2184
2184
|
return i.reduce((u, T) => (u[T] = Io(p[e.events[T]]), u), {});
|
2185
2185
|
}
|
2186
|
-
const
|
2186
|
+
const S = React__default.forwardRef((p, u) => {
|
2187
2187
|
const { children: T, ...b } = p, [f] = React__default.useState(() => ve(xo(t), (B) => {
|
2188
2188
|
c(B, b);
|
2189
2189
|
})), [d] = React__default.useState(an(m, f));
|
@@ -2198,7 +2198,7 @@ function Ye(t, e, n) {
|
|
2198
2198
|
}), React__default.useImperativeHandle(u, un(a(f)));
|
2199
2199
|
const y = n;
|
2200
2200
|
return /* @__PURE__ */ jsx(l.Provider, { value: f, children: n ? /* @__PURE__ */ jsx(y, { ...tr([...o, ...r, ...i], b), children: T }) : T });
|
2201
|
-
}),
|
2201
|
+
}), g = (p) => {
|
2202
2202
|
const u = React__default.useContext(l);
|
2203
2203
|
return React__default.useCallback(
|
2204
2204
|
(T) => {
|
@@ -2216,7 +2216,7 @@ function Ye(t, e, n) {
|
|
2216
2216
|
() => ot(T),
|
2217
2217
|
() => ot(T)
|
2218
2218
|
);
|
2219
|
-
},
|
2219
|
+
}, w = (p) => {
|
2220
2220
|
const T = React__default.useContext(l)[p], [b, f] = React__default.useState(an(ot, T));
|
2221
2221
|
return pe(
|
2222
2222
|
() => K(T, (d) => {
|
@@ -2224,15 +2224,15 @@ function Ye(t, e, n) {
|
|
2224
2224
|
}),
|
2225
2225
|
[T, b]
|
2226
2226
|
), b;
|
2227
|
-
}, v = React__default.version.startsWith("18") ? I :
|
2227
|
+
}, v = React__default.version.startsWith("18") ? I : w;
|
2228
2228
|
return {
|
2229
|
-
Component:
|
2229
|
+
Component: S,
|
2230
2230
|
useEmitter: (p, u) => {
|
2231
2231
|
const b = React__default.useContext(l)[p];
|
2232
2232
|
pe(() => K(b, u), [u, b]);
|
2233
2233
|
},
|
2234
2234
|
useEmitterValue: v,
|
2235
|
-
usePublisher:
|
2235
|
+
usePublisher: g
|
2236
2236
|
};
|
2237
2237
|
}
|
2238
2238
|
const be = React__default.createContext(void 0), Jn = React__default.createContext(void 0), Qn = typeof document < "u" ? React__default.useLayoutEffect : React__default.useEffect;
|
@@ -2244,54 +2244,54 @@ function er(t) {
|
|
2244
2244
|
}
|
2245
2245
|
function to(t, e, n, o = Yt, r, s) {
|
2246
2246
|
const i = React__default.useRef(null), l = React__default.useRef(null), c = React__default.useRef(null), a = React__default.useCallback(
|
2247
|
-
(
|
2248
|
-
let I,
|
2249
|
-
const
|
2250
|
-
if (er(
|
2251
|
-
const u = ke(
|
2252
|
-
v = s ? u.scrollX : u.scrollY, I = s ? u.document.documentElement.scrollWidth : u.document.documentElement.scrollHeight,
|
2247
|
+
(g) => {
|
2248
|
+
let I, w, v;
|
2249
|
+
const h = g.target;
|
2250
|
+
if (er(h) || ke(h)) {
|
2251
|
+
const u = ke(h) ? h : h.defaultView;
|
2252
|
+
v = s ? u.scrollX : u.scrollY, I = s ? u.document.documentElement.scrollWidth : u.document.documentElement.scrollHeight, w = s ? u.innerWidth : u.innerHeight;
|
2253
2253
|
} else
|
2254
|
-
v = s ?
|
2254
|
+
v = s ? h.scrollLeft : h.scrollTop, I = s ? h.scrollWidth : h.scrollHeight, w = s ? h.offsetWidth : h.offsetHeight;
|
2255
2255
|
const p = () => {
|
2256
2256
|
t({
|
2257
2257
|
scrollHeight: I,
|
2258
2258
|
scrollTop: Math.max(v, 0),
|
2259
|
-
viewportHeight:
|
2259
|
+
viewportHeight: w
|
2260
2260
|
});
|
2261
2261
|
};
|
2262
|
-
|
2262
|
+
g.suppressFlushSync ? p() : ReactDOM.flushSync(p), l.current !== null && (v === l.current || v <= 0 || v === I - w) && (l.current = null, e(true), c.current && (clearTimeout(c.current), c.current = null));
|
2263
2263
|
},
|
2264
2264
|
[t, e, s]
|
2265
2265
|
);
|
2266
2266
|
React__default.useEffect(() => {
|
2267
|
-
const
|
2268
|
-
return o(r || i.current), a({ suppressFlushSync: true, target:
|
2269
|
-
o(null),
|
2267
|
+
const g = r || i.current;
|
2268
|
+
return o(r || i.current), a({ suppressFlushSync: true, target: g }), g.addEventListener("scroll", a, { passive: true }), () => {
|
2269
|
+
o(null), g.removeEventListener("scroll", a);
|
2270
2270
|
};
|
2271
2271
|
}, [i, a, n, o, r]);
|
2272
|
-
function m(
|
2272
|
+
function m(g) {
|
2273
2273
|
const I = i.current;
|
2274
2274
|
if (!I || (s ? "offsetWidth" in I && I.offsetWidth === 0 : "offsetHeight" in I && I.offsetHeight === 0))
|
2275
2275
|
return;
|
2276
|
-
const
|
2277
|
-
let v,
|
2278
|
-
ke(I) ? (
|
2276
|
+
const w = g.behavior === "smooth";
|
2277
|
+
let v, h, p;
|
2278
|
+
ke(I) ? (h = Math.max(
|
2279
2279
|
vt(I.document.documentElement, s ? "width" : "height"),
|
2280
2280
|
s ? I.document.documentElement.scrollWidth : I.document.documentElement.scrollHeight
|
2281
|
-
), v = s ? I.innerWidth : I.innerHeight, p = s ? window.scrollX : window.scrollY) : (
|
2282
|
-
const u =
|
2283
|
-
if (
|
2284
|
-
t({ scrollHeight:
|
2281
|
+
), v = s ? I.innerWidth : I.innerHeight, p = s ? window.scrollX : window.scrollY) : (h = I[s ? "scrollWidth" : "scrollHeight"], v = vt(I, s ? "width" : "height"), p = I[s ? "scrollLeft" : "scrollTop"]);
|
2282
|
+
const u = h - v;
|
2283
|
+
if (g.top = Math.ceil(Math.max(Math.min(u, g.top), 0)), $n(v, h) || g.top === p) {
|
2284
|
+
t({ scrollHeight: h, scrollTop: p, viewportHeight: v }), w && e(true);
|
2285
2285
|
return;
|
2286
2286
|
}
|
2287
|
-
|
2287
|
+
w ? (l.current = g.top, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
|
2288
2288
|
c.current = null, l.current = null, e(true);
|
2289
|
-
}, 1e3)) : l.current = null, s && (
|
2289
|
+
}, 1e3)) : l.current = null, s && (g = { behavior: g.behavior, left: g.top }), I.scrollTo(g);
|
2290
2290
|
}
|
2291
|
-
function
|
2292
|
-
s && (
|
2291
|
+
function S(g) {
|
2292
|
+
s && (g = { behavior: g.behavior, left: g.top }), i.current.scrollBy(g);
|
2293
2293
|
}
|
2294
|
-
return { scrollByCallback:
|
2294
|
+
return { scrollByCallback: S, scrollerRef: i, scrollToCallback: m };
|
2295
2295
|
}
|
2296
2296
|
const Fe = "-webkit-sticky", Tn = "sticky", Ze = Zn(() => {
|
2297
2297
|
if (typeof document > "u")
|
@@ -2303,11 +2303,11 @@ function Xe(t) {
|
|
2303
2303
|
return t;
|
2304
2304
|
}
|
2305
2305
|
const nr = /* @__PURE__ */ U(() => {
|
2306
|
-
const t =
|
2307
|
-
|
2306
|
+
const t = C((l) => `Item ${l}`), e = C((l) => `Group ${l}`), n = C({}), o = C(Xe), r = C("div"), s = C(Yt), i = (l, c = null) => ct(
|
2307
|
+
x(
|
2308
2308
|
n,
|
2309
2309
|
E((a) => a[l]),
|
2310
|
-
|
2310
|
+
Z()
|
2311
2311
|
),
|
2312
2312
|
c
|
2313
2313
|
);
|
@@ -2332,15 +2332,15 @@ const nr = /* @__PURE__ */ U(() => {
|
|
2332
2332
|
([t, e]) => ({ ...t, ...e }),
|
2333
2333
|
X(Xn, nr)
|
2334
2334
|
), rr = ({ height: t }) => /* @__PURE__ */ jsx("div", { style: { height: t } }), sr = { overflowAnchor: "none", position: Ze(), zIndex: 1 }, eo = { overflowAnchor: "none" }, ir = { ...eo, display: "inline-block", height: "100%" }, Cn = /* @__PURE__ */ React__default.memo(function({ showTopList: e = false }) {
|
2335
|
-
const n = M("listState"), o = gt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = gt("windowScrollContainerState"), l = gt("scrollContainerState"), c = s || r ? i : l, a = M("itemContent"), m = M("context"),
|
2335
|
+
const n = M("listState"), o = gt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = gt("windowScrollContainerState"), l = gt("scrollContainerState"), c = s || r ? i : l, a = M("itemContent"), m = M("context"), S = M("groupContent"), g = M("trackItemSizes"), I = M("itemSize"), w = M("log"), v = gt("gap"), h = M("horizontalDirection"), { callbackRef: p } = On(
|
2336
2336
|
o,
|
2337
2337
|
I,
|
2338
|
-
|
2338
|
+
g,
|
2339
2339
|
e ? Yt : c,
|
2340
|
-
|
2340
|
+
w,
|
2341
2341
|
v,
|
2342
2342
|
s,
|
2343
|
-
|
2343
|
+
h,
|
2344
2344
|
M("skipAnimationFrameInResizeObserver")
|
2345
2345
|
), [u, T] = React__default.useState(0);
|
2346
2346
|
tn("deviation", (F) => {
|
@@ -2348,7 +2348,7 @@ const nr = /* @__PURE__ */ U(() => {
|
|
2348
2348
|
});
|
2349
2349
|
const b = M("EmptyPlaceholder"), f = M("ScrollSeekPlaceholder") || rr, d = M("ListComponent"), y = M("ItemComponent"), B = M("GroupComponent"), k = M("computeItemKey"), L = M("isSeeking"), z = M("groupIndices").length > 0, _ = M("alignToBottom"), J = M("initialItemFinalLocationReached"), nt = e ? {} : {
|
2350
2350
|
boxSizing: "border-box",
|
2351
|
-
...
|
2351
|
+
...h ? {
|
2352
2352
|
display: "inline-block",
|
2353
2353
|
height: "100%",
|
2354
2354
|
marginLeft: u !== 0 ? u : _ ? "auto" : 0,
|
@@ -2362,19 +2362,19 @@ const nr = /* @__PURE__ */ U(() => {
|
|
2362
2362
|
},
|
2363
2363
|
...J ? {} : { visibility: "hidden" }
|
2364
2364
|
};
|
2365
|
-
return !e && n.totalCount === 0 && b ? /* @__PURE__ */ jsx(b, { ...
|
2365
|
+
return !e && n.totalCount === 0 && b ? /* @__PURE__ */ jsx(b, { ...q(b, m) }) : /* @__PURE__ */ jsx(
|
2366
2366
|
d,
|
2367
2367
|
{
|
2368
|
-
...
|
2368
|
+
...q(d, m),
|
2369
2369
|
"data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
|
2370
2370
|
ref: p,
|
2371
2371
|
style: nt,
|
2372
2372
|
children: (e ? n.topItems : n.items).map((F) => {
|
2373
|
-
const
|
2373
|
+
const Y = F.originalIndex, it = k(Y + n.firstItemIndex, F.data, m);
|
2374
2374
|
return L ? /* @__PURE__ */ createElement(
|
2375
2375
|
f,
|
2376
2376
|
{
|
2377
|
-
...
|
2377
|
+
...q(f, m),
|
2378
2378
|
height: F.size,
|
2379
2379
|
index: F.index,
|
2380
2380
|
key: it,
|
@@ -2384,25 +2384,25 @@ const nr = /* @__PURE__ */ U(() => {
|
|
2384
2384
|
) : F.type === "group" ? /* @__PURE__ */ createElement(
|
2385
2385
|
B,
|
2386
2386
|
{
|
2387
|
-
...
|
2388
|
-
"data-index":
|
2387
|
+
...q(B, m),
|
2388
|
+
"data-index": Y,
|
2389
2389
|
"data-item-index": F.index,
|
2390
2390
|
"data-known-size": F.size,
|
2391
2391
|
key: it,
|
2392
2392
|
style: sr
|
2393
2393
|
},
|
2394
|
-
|
2394
|
+
S(F.index, m)
|
2395
2395
|
) : /* @__PURE__ */ createElement(
|
2396
2396
|
y,
|
2397
2397
|
{
|
2398
|
-
...
|
2398
|
+
...q(y, m),
|
2399
2399
|
...no(y, F.data),
|
2400
|
-
"data-index":
|
2400
|
+
"data-index": Y,
|
2401
2401
|
"data-item-group-index": F.groupIndex,
|
2402
2402
|
"data-item-index": F.index,
|
2403
2403
|
"data-known-size": F.size,
|
2404
2404
|
key: it,
|
2405
|
-
style:
|
2405
|
+
style: h ? ir : eo
|
2406
2406
|
},
|
2407
2407
|
z ? a(F.index, F.groupIndex, F.data, m) : a(F.index, F.data, m)
|
2408
2408
|
);
|
@@ -2431,7 +2431,7 @@ const nr = /* @__PURE__ */ U(() => {
|
|
2431
2431
|
width: "100%",
|
2432
2432
|
zIndex: 1
|
2433
2433
|
};
|
2434
|
-
function
|
2434
|
+
function q(t, e) {
|
2435
2435
|
if (typeof t != "string")
|
2436
2436
|
return { context: e };
|
2437
2437
|
}
|
@@ -2449,7 +2449,7 @@ const ar = /* @__PURE__ */ React__default.memo(function() {
|
|
2449
2449
|
true,
|
2450
2450
|
M("skipAnimationFrameInResizeObserver")
|
2451
2451
|
), s = M("context");
|
2452
|
-
return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...
|
2452
|
+
return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
|
2453
2453
|
}), dr = /* @__PURE__ */ React__default.memo(function() {
|
2454
2454
|
const e = M("FooterComponent"), n = gt("footerHeight"), o = M("HeaderFooterTag"), r = Ht(
|
2455
2455
|
React__default.useMemo(
|
@@ -2461,55 +2461,55 @@ const ar = /* @__PURE__ */ React__default.memo(function() {
|
|
2461
2461
|
true,
|
2462
2462
|
M("skipAnimationFrameInResizeObserver")
|
2463
2463
|
), s = M("context");
|
2464
|
-
return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...
|
2464
|
+
return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
|
2465
2465
|
});
|
2466
2466
|
function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
|
2467
|
-
return React__default.memo(function({ children: s, style: i,
|
2468
|
-
const
|
2469
|
-
|
2470
|
-
x,
|
2467
|
+
return React__default.memo(function({ children: s, style: i, ...l }) {
|
2468
|
+
const c = n("scrollContainerState"), a = e("ScrollerComponent"), m = n("smoothScrollTargetReached"), S = e("scrollerRef"), g = e("context"), I = e("horizontalDirection") || false, { scrollByCallback: w, scrollerRef: v, scrollToCallback: h } = to(
|
2469
|
+
c,
|
2471
2470
|
m,
|
2472
|
-
|
2471
|
+
a,
|
2472
|
+
S,
|
2473
2473
|
void 0,
|
2474
2474
|
I
|
2475
2475
|
);
|
2476
|
-
return t("scrollTo",
|
2477
|
-
|
2476
|
+
return t("scrollTo", h), t("scrollBy", w), /* @__PURE__ */ jsx(
|
2477
|
+
a,
|
2478
2478
|
{
|
2479
2479
|
"data-testid": "virtuoso-scroller",
|
2480
2480
|
"data-virtuoso-scroller": true,
|
2481
2481
|
ref: v,
|
2482
2482
|
style: { ...I ? cr : lr, ...i },
|
2483
2483
|
tabIndex: 0,
|
2484
|
-
...
|
2485
|
-
...
|
2484
|
+
...l,
|
2485
|
+
...q(a, g),
|
2486
2486
|
children: s
|
2487
2487
|
}
|
2488
2488
|
);
|
2489
2489
|
});
|
2490
2490
|
}
|
2491
2491
|
function Qe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
|
2492
|
-
return React__default.memo(function({ children: s, style: i,
|
2493
|
-
const
|
2494
|
-
|
2495
|
-
x,
|
2492
|
+
return React__default.memo(function({ children: s, style: i, ...l }) {
|
2493
|
+
const c = n("windowScrollContainerState"), a = e("ScrollerComponent"), m = n("smoothScrollTargetReached"), S = e("totalListHeight"), g = e("deviation"), I = e("customScrollParent"), w = e("context"), v = React__default.useRef(null), h = e("scrollerRef"), { scrollByCallback: p, scrollerRef: u, scrollToCallback: T } = to(
|
2494
|
+
c,
|
2496
2495
|
m,
|
2497
|
-
|
2498
|
-
|
2496
|
+
a,
|
2497
|
+
h,
|
2498
|
+
I
|
2499
2499
|
);
|
2500
2500
|
return Qn(() => {
|
2501
2501
|
var b;
|
2502
|
-
return u.current =
|
2502
|
+
return u.current = I || ((b = v.current) == null ? void 0 : b.ownerDocument.defaultView), () => {
|
2503
2503
|
u.current = null;
|
2504
2504
|
};
|
2505
|
-
}, [u,
|
2506
|
-
|
2505
|
+
}, [u, I]), t("windowScrollTo", T), t("scrollBy", p), /* @__PURE__ */ jsx(
|
2506
|
+
a,
|
2507
2507
|
{
|
2508
2508
|
ref: v,
|
2509
2509
|
"data-virtuoso-scroller": true,
|
2510
|
-
style: { position: "relative", ...i, ...
|
2511
|
-
...
|
2512
|
-
...
|
2510
|
+
style: { position: "relative", ...i, ...S !== 0 ? { height: S + g } : {} },
|
2511
|
+
...l,
|
2512
|
+
...q(a, w),
|
2513
2513
|
children: s
|
2514
2514
|
}
|
2515
2515
|
);
|
@@ -2534,12 +2534,12 @@ const fr = ({ children: t }) => {
|
|
2534
2534
|
}, [e, n, o]), /* @__PURE__ */ jsx("div", { "data-viewport-type": "window", ref: s, style: Zt(i), children: t });
|
2535
2535
|
}, pr = ({ children: t }) => {
|
2536
2536
|
const e = M("TopItemListComponent") || "div", n = M("headerHeight"), o = { ...ur, marginTop: `${n}px` }, r = M("context");
|
2537
|
-
return /* @__PURE__ */ jsx(e, { style: o, ...
|
2537
|
+
return /* @__PURE__ */ jsx(e, { style: o, ...q(e, r), children: t });
|
2538
2538
|
}, hr = /* @__PURE__ */ React__default.memo(function(e) {
|
2539
|
-
const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context");
|
2540
|
-
return /* @__PURE__ */ jsxs(
|
2539
|
+
const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context"), i = r || n ? Ir : gr, l = r || n ? mr : fr;
|
2540
|
+
return /* @__PURE__ */ jsxs(i, { ...e, ...q(i, s), children: [
|
2541
2541
|
o && /* @__PURE__ */ jsx(pr, { children: /* @__PURE__ */ jsx(Cn, { showTopList: true }) }),
|
2542
|
-
/* @__PURE__ */ jsxs(
|
2542
|
+
/* @__PURE__ */ jsxs(l, { children: [
|
2543
2543
|
/* @__PURE__ */ jsx(ar, {}),
|
2544
2544
|
/* @__PURE__ */ jsx(Cn, {}),
|
2545
2545
|
/* @__PURE__ */ jsx(dr, {})
|
@@ -2610,17 +2610,17 @@ const fr = ({ children: t }) => {
|
|
2610
2610
|
},
|
2611
2611
|
hr
|
2612
2612
|
), gr = /* @__PURE__ */ Je({ useEmitter: tn, useEmitterValue: M, usePublisher: gt }), Ir = /* @__PURE__ */ Qe({ useEmitter: tn, useEmitterValue: M, usePublisher: gt }), qr = oo, Sr = /* @__PURE__ */ U(() => {
|
2613
|
-
const t =
|
2613
|
+
const t = C((a) => /* @__PURE__ */ jsxs("td", { children: [
|
2614
2614
|
"Item $",
|
2615
2615
|
a
|
2616
|
-
] })), e =
|
2616
|
+
] })), e = C(null), n = C((a) => /* @__PURE__ */ jsxs("td", { colSpan: 1e3, children: [
|
2617
2617
|
"Group ",
|
2618
2618
|
a
|
2619
|
-
] })), o =
|
2620
|
-
|
2619
|
+
] })), o = C(null), r = C(null), s = C({}), i = C(Xe), l = C(Yt), c = (a, m = null) => ct(
|
2620
|
+
x(
|
2621
2621
|
s,
|
2622
|
-
E((
|
2623
|
-
|
2622
|
+
E((S) => S[a]),
|
2623
|
+
Z()
|
2624
2624
|
),
|
2625
2625
|
m
|
2626
2626
|
);
|
@@ -2682,17 +2682,17 @@ function Fr(t, e) {
|
|
2682
2682
|
const Or = /* @__PURE__ */ U(
|
2683
2683
|
([
|
2684
2684
|
{ increaseViewportBy: t, listBoundary: e, overscan: n, visibleRange: o },
|
2685
|
-
{ footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: m, viewportHeight:
|
2686
|
-
|
2685
|
+
{ footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: m, viewportHeight: S },
|
2686
|
+
g,
|
2687
2687
|
I,
|
2688
|
-
{ didMount:
|
2689
|
-
{ customScrollParent:
|
2688
|
+
{ didMount: w, propsReady: v },
|
2689
|
+
{ customScrollParent: h, useWindowScroll: p, windowScrollContainerState: u, windowScrollTo: T, windowViewportRect: b },
|
2690
2690
|
f
|
2691
2691
|
]) => {
|
2692
|
-
const d =
|
2692
|
+
const d = C(0), y = C(0), B = C(yn), k = C({ height: 0, width: 0 }), L = C({ height: 0, width: 0 }), z = $(), _ = $(), J = C(0), nt = C(null), F = C({ column: 0, row: 0 }), Y = $(), it = $(), dt = C(false), St = C(0), ft = C(true), ut = C(false), At = C(false);
|
2693
2693
|
K(
|
2694
|
-
|
2695
|
-
|
2694
|
+
x(
|
2695
|
+
w,
|
2696
2696
|
N(St),
|
2697
2697
|
A(([R, D]) => !!D)
|
2698
2698
|
),
|
@@ -2700,43 +2700,43 @@ const Or = /* @__PURE__ */ U(
|
|
2700
2700
|
G(ft, false);
|
2701
2701
|
}
|
2702
2702
|
), K(
|
2703
|
-
|
2704
|
-
rt(
|
2703
|
+
x(
|
2704
|
+
rt(w, ft, L, k, St, ut),
|
2705
2705
|
A(([R, D, Q, lt, , tt]) => R && !D && Q.height !== 0 && lt.height !== 0 && !tt)
|
2706
2706
|
),
|
2707
2707
|
([, , , , R]) => {
|
2708
2708
|
G(ut, true), Ue(1, () => {
|
2709
2709
|
G(z, R);
|
2710
|
-
}), Tt(
|
2710
|
+
}), Tt(x(a), () => {
|
2711
2711
|
G(e, [0, 0]), G(ft, true);
|
2712
2712
|
});
|
2713
2713
|
}
|
2714
2714
|
), O(
|
2715
|
-
|
2715
|
+
x(
|
2716
2716
|
it,
|
2717
2717
|
A((R) => R != null && R.scrollTop > 0),
|
2718
2718
|
Rt(0)
|
2719
2719
|
),
|
2720
2720
|
y
|
2721
2721
|
), K(
|
2722
|
-
|
2723
|
-
|
2722
|
+
x(
|
2723
|
+
w,
|
2724
2724
|
N(it),
|
2725
2725
|
A(([, R]) => R != null)
|
2726
2726
|
),
|
2727
2727
|
([, R]) => {
|
2728
|
-
R && (G(k, R.viewport), G(L, R.item), G(F, R.gap), R.scrollTop > 0 && (G(dt, true), Tt(
|
2728
|
+
R && (G(k, R.viewport), G(L, R.item), G(F, R.gap), R.scrollTop > 0 && (G(dt, true), Tt(x(a, Dt(1)), (D) => {
|
2729
2729
|
G(dt, false);
|
2730
2730
|
}), G(c, { top: R.scrollTop })));
|
2731
2731
|
}
|
2732
2732
|
), O(
|
2733
|
-
|
2733
|
+
x(
|
2734
2734
|
k,
|
2735
2735
|
E(({ height: R }) => R)
|
2736
2736
|
),
|
2737
|
-
|
2737
|
+
S
|
2738
2738
|
), O(
|
2739
|
-
|
2739
|
+
x(
|
2740
2740
|
rt(
|
2741
2741
|
V(k, he),
|
2742
2742
|
V(L, he),
|
@@ -2750,9 +2750,9 @@ const Or = /* @__PURE__ */ U(
|
|
2750
2750
|
viewport: R
|
2751
2751
|
}))
|
2752
2752
|
),
|
2753
|
-
|
2753
|
+
Y
|
2754
2754
|
), O(
|
2755
|
-
|
2755
|
+
x(
|
2756
2756
|
rt(
|
2757
2757
|
V(d),
|
2758
2758
|
o,
|
@@ -2796,27 +2796,27 @@ const Or = /* @__PURE__ */ U(
|
|
2796
2796
|
),
|
2797
2797
|
B
|
2798
2798
|
), O(
|
2799
|
-
|
2799
|
+
x(
|
2800
2800
|
nt,
|
2801
2801
|
A((R) => R !== null),
|
2802
2802
|
E((R) => R.length)
|
2803
2803
|
),
|
2804
2804
|
d
|
2805
2805
|
), O(
|
2806
|
-
|
2806
|
+
x(
|
2807
2807
|
rt(k, L, B, F),
|
2808
2808
|
A(([R, D, { items: Q }]) => Q.length > 0 && D.height !== 0 && R.height !== 0),
|
2809
2809
|
E(([R, D, { items: Q }, lt]) => {
|
2810
2810
|
const { bottom: tt, top: Ft } = En(R, lt, D, Q);
|
2811
2811
|
return [Ft, tt];
|
2812
2812
|
}),
|
2813
|
-
|
2813
|
+
Z(se)
|
2814
2814
|
),
|
2815
2815
|
e
|
2816
2816
|
);
|
2817
|
-
const xt =
|
2817
|
+
const xt = C(false);
|
2818
2818
|
O(
|
2819
|
-
|
2819
|
+
x(
|
2820
2820
|
a,
|
2821
2821
|
N(xt),
|
2822
2822
|
E(([R, D]) => D || R !== 0)
|
@@ -2824,7 +2824,7 @@ const Or = /* @__PURE__ */ U(
|
|
2824
2824
|
xt
|
2825
2825
|
);
|
2826
2826
|
const Xt = ht(
|
2827
|
-
|
2827
|
+
x(
|
2828
2828
|
rt(B, d),
|
2829
2829
|
A(([{ items: R }]) => R.length > 0),
|
2830
2830
|
N(xt),
|
@@ -2833,17 +2833,17 @@ const Or = /* @__PURE__ */ U(
|
|
2833
2833
|
return (Q || R.bottom > 0 && R.itemHeight > 0 && R.offsetBottom === 0 && R.items.length === D) && tt;
|
2834
2834
|
}),
|
2835
2835
|
E(([[, R]]) => R - 1),
|
2836
|
-
|
2836
|
+
Z()
|
2837
2837
|
)
|
2838
2838
|
), Mt = ht(
|
2839
|
-
|
2839
|
+
x(
|
2840
2840
|
V(B),
|
2841
2841
|
A(({ items: R }) => R.length > 0 && R[0].index === 0),
|
2842
2842
|
Rt(0),
|
2843
|
-
|
2843
|
+
Z()
|
2844
2844
|
)
|
2845
2845
|
), yt = ht(
|
2846
|
-
|
2846
|
+
x(
|
2847
2847
|
V(B),
|
2848
2848
|
N(dt),
|
2849
2849
|
A(([{ items: R }, D]) => R.length > 0 && !D),
|
@@ -2851,12 +2851,12 @@ const Or = /* @__PURE__ */ U(
|
|
2851
2851
|
endIndex: R[R.length - 1].index,
|
2852
2852
|
startIndex: R[0].index
|
2853
2853
|
})),
|
2854
|
-
|
2854
|
+
Z(Mn),
|
2855
2855
|
kt(0)
|
2856
2856
|
)
|
2857
2857
|
);
|
2858
2858
|
O(yt, I.scrollSeekRangeChanged), O(
|
2859
|
-
|
2859
|
+
x(
|
2860
2860
|
z,
|
2861
2861
|
N(k, L, d, F),
|
2862
2862
|
E(([R, D, Q, lt, tt]) => {
|
@@ -2870,20 +2870,20 @@ const Or = /* @__PURE__ */ U(
|
|
2870
2870
|
c
|
2871
2871
|
);
|
2872
2872
|
const Bt = ct(
|
2873
|
-
|
2873
|
+
x(
|
2874
2874
|
B,
|
2875
2875
|
E((R) => R.offsetBottom + R.bottom)
|
2876
2876
|
),
|
2877
2877
|
0
|
2878
2878
|
);
|
2879
2879
|
return O(
|
2880
|
-
|
2880
|
+
x(
|
2881
2881
|
b,
|
2882
2882
|
E((R) => ({ height: R.visibleHeight, width: R.visibleWidth }))
|
2883
2883
|
),
|
2884
2884
|
k
|
2885
2885
|
), {
|
2886
|
-
customScrollParent:
|
2886
|
+
customScrollParent: h,
|
2887
2887
|
// input
|
2888
2888
|
data: nt,
|
2889
2889
|
deviation: J,
|
@@ -2914,12 +2914,12 @@ const Or = /* @__PURE__ */ U(
|
|
2914
2914
|
horizontalDirection: At,
|
2915
2915
|
initialTopMostItemIndex: St,
|
2916
2916
|
totalListHeight: Bt,
|
2917
|
-
...
|
2917
|
+
...g,
|
2918
2918
|
endReached: Xt,
|
2919
2919
|
propsReady: v,
|
2920
2920
|
rangeChanged: yt,
|
2921
2921
|
startReached: Mt,
|
2922
|
-
stateChanged:
|
2922
|
+
stateChanged: Y,
|
2923
2923
|
stateRestoreInProgress: dt,
|
2924
2924
|
...f
|
2925
2925
|
};
|
@@ -2941,14 +2941,14 @@ function Me(t, e, n, o) {
|
|
2941
2941
|
return i > 0 ? i + e.row : i;
|
2942
2942
|
}
|
2943
2943
|
const Lr = /* @__PURE__ */ U(() => {
|
2944
|
-
const t =
|
2945
|
-
|
2944
|
+
const t = C((S) => `Item ${S}`), e = C({}), n = C(null), o = C("virtuoso-grid-item"), r = C("virtuoso-grid-list"), s = C(Xe), i = C("div"), l = C(Yt), c = (S, g = null) => ct(
|
2945
|
+
x(
|
2946
2946
|
e,
|
2947
|
-
E((I) => I[
|
2948
|
-
|
2947
|
+
E((I) => I[S]),
|
2948
|
+
Z()
|
2949
2949
|
),
|
2950
|
-
|
2951
|
-
), a =
|
2950
|
+
g
|
2951
|
+
), a = C(false), m = C(false);
|
2952
2952
|
return O(V(m), a), {
|
2953
2953
|
components: e,
|
2954
2954
|
computeItemKey: s,
|
@@ -2971,7 +2971,7 @@ const Lr = /* @__PURE__ */ U(() => {
|
|
2971
2971
|
([t, e]) => ({ ...t, ...e }),
|
2972
2972
|
X(Or, Lr)
|
2973
2973
|
), Vr = /* @__PURE__ */ React__default.memo(function() {
|
2974
|
-
const e = et("gridState"), n = et("listClassName"), o = et("itemClassName"), r = et("itemContent"), s = et("computeItemKey"), i = et("isSeeking"), l = It("scrollHeight"), c = et("ItemComponent"), a = et("ListComponent"), m = et("ScrollSeekPlaceholder"),
|
2974
|
+
const e = et("gridState"), n = et("listClassName"), o = et("itemClassName"), r = et("itemContent"), s = et("computeItemKey"), i = et("isSeeking"), l = It("scrollHeight"), c = et("ItemComponent"), a = et("ListComponent"), m = et("ScrollSeekPlaceholder"), S = et("context"), g = It("itemDimensions"), I = It("gap"), w = et("log"), v = et("stateRestoreInProgress"), h = It("reportReadyState"), p = Ht(
|
2975
2975
|
React__default.useMemo(
|
2976
2976
|
() => (u) => {
|
2977
2977
|
const T = u.parentElement.parentElement.scrollHeight;
|
@@ -2979,34 +2979,34 @@ const Lr = /* @__PURE__ */ U(() => {
|
|
2979
2979
|
const b = u.firstChild;
|
2980
2980
|
if (b) {
|
2981
2981
|
const { height: f, width: d } = b.getBoundingClientRect();
|
2982
|
-
|
2982
|
+
g({ height: f, width: d });
|
2983
2983
|
}
|
2984
2984
|
I({
|
2985
|
-
column: Bn("column-gap", getComputedStyle(u).columnGap,
|
2986
|
-
row: Bn("row-gap", getComputedStyle(u).rowGap,
|
2985
|
+
column: Bn("column-gap", getComputedStyle(u).columnGap, w),
|
2986
|
+
row: Bn("row-gap", getComputedStyle(u).rowGap, w)
|
2987
2987
|
});
|
2988
2988
|
},
|
2989
|
-
[l,
|
2989
|
+
[l, g, I, w]
|
2990
2990
|
),
|
2991
2991
|
true,
|
2992
2992
|
false
|
2993
2993
|
);
|
2994
2994
|
return Qn(() => {
|
2995
|
-
e.itemHeight > 0 && e.itemWidth > 0 &&
|
2995
|
+
e.itemHeight > 0 && e.itemWidth > 0 && h(true);
|
2996
2996
|
}, [e]), v ? null : /* @__PURE__ */ jsx(
|
2997
2997
|
a,
|
2998
2998
|
{
|
2999
2999
|
className: n,
|
3000
3000
|
ref: p,
|
3001
|
-
...
|
3001
|
+
...q(a, S),
|
3002
3002
|
"data-testid": "virtuoso-item-list",
|
3003
3003
|
style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
|
3004
3004
|
children: e.items.map((u) => {
|
3005
|
-
const T = s(u.index, u.data,
|
3005
|
+
const T = s(u.index, u.data, S);
|
3006
3006
|
return i ? /* @__PURE__ */ jsx(
|
3007
3007
|
m,
|
3008
3008
|
{
|
3009
|
-
...
|
3009
|
+
...q(m, S),
|
3010
3010
|
height: e.itemHeight,
|
3011
3011
|
index: u.index,
|
3012
3012
|
width: e.itemWidth
|
@@ -3015,12 +3015,12 @@ const Lr = /* @__PURE__ */ U(() => {
|
|
3015
3015
|
) : /* @__PURE__ */ createElement(
|
3016
3016
|
c,
|
3017
3017
|
{
|
3018
|
-
...
|
3018
|
+
...q(c, S),
|
3019
3019
|
className: o,
|
3020
3020
|
"data-index": u.index,
|
3021
3021
|
key: T
|
3022
3022
|
},
|
3023
|
-
r(u.index, u.data,
|
3023
|
+
r(u.index, u.data, S)
|
3024
3024
|
);
|
3025
3025
|
})
|
3026
3026
|
}
|
@@ -3036,7 +3036,7 @@ const Lr = /* @__PURE__ */ U(() => {
|
|
3036
3036
|
true,
|
3037
3037
|
false
|
3038
3038
|
), s = et("context");
|
3039
|
-
return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...
|
3039
|
+
return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
|
3040
3040
|
}), Ar = React__default.memo(function() {
|
3041
3041
|
const e = et("FooterComponent"), n = It("footerHeight"), o = et("headerFooterTag"), r = Ht(
|
3042
3042
|
React__default.useMemo(
|
@@ -3048,7 +3048,7 @@ const Lr = /* @__PURE__ */ U(() => {
|
|
3048
3048
|
true,
|
3049
3049
|
false
|
3050
3050
|
), s = et("context");
|
3051
|
-
return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...
|
3051
|
+
return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
|
3052
3052
|
}), Mr = ({ children: t }) => {
|
3053
3053
|
const e = React__default.useContext(Jn), n = It("itemDimensions"), o = It("viewportDimensions"), r = Ht(
|
3054
3054
|
React__default.useMemo(
|
@@ -3070,7 +3070,7 @@ const Lr = /* @__PURE__ */ U(() => {
|
|
3070
3070
|
}, [e, n, o]), /* @__PURE__ */ jsx("div", { ref: s, style: Zt(false), children: t });
|
3071
3071
|
}, Gr = /* @__PURE__ */ React__default.memo(function({ ...e }) {
|
3072
3072
|
const n = et("useWindowScroll"), o = et("customScrollParent"), r = o || n ? Dr : Nr, s = o || n ? Wr : Mr, i = et("context");
|
3073
|
-
return /* @__PURE__ */ jsx(r, { ...e, ...
|
3073
|
+
return /* @__PURE__ */ jsx(r, { ...e, ...q(r, i), children: /* @__PURE__ */ jsxs(s, { children: [
|
3074
3074
|
/* @__PURE__ */ jsx(Pr, {}),
|
3075
3075
|
/* @__PURE__ */ jsx(Vr, {}),
|
3076
3076
|
/* @__PURE__ */ jsx(Ar, {})
|