@cagatayfdn/flora-components 0.0.152 → 0.0.153
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/{ErrorLogModal-DRAqVZsy.js → ErrorLogModal-BuEoLLI7.js} +496 -491
- package/dist/components/ErrorLogModal/ErrorLogModal.js +1 -1
- package/dist/components/RealtimeLogModal/RealtimeLogModal.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/main.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/table.js +1 -1
- package/package.json +1 -1
|
@@ -33,9 +33,9 @@ import { S as Hn } from "./Select-nhp2PiJK.js";
|
|
|
33
33
|
import kn from "./components/StatusTag/StatusTag.js";
|
|
34
34
|
import "./components/Switch/Switch.js";
|
|
35
35
|
import "./components/Textarea/Textarea.js";
|
|
36
|
-
import { AppearanceButton as ho, NotificationAppearanceType as
|
|
36
|
+
import { AppearanceButton as ho, NotificationAppearanceType as Rn } from "./enums/appearance.js";
|
|
37
37
|
import go from "./components/Button/Button.js";
|
|
38
|
-
import { Notification as
|
|
38
|
+
import { Notification as _n } from "./components/Notification/Notification.js";
|
|
39
39
|
import './ReactToastify.css';import './ErrorLogModal.css';/* empty css */
|
|
40
40
|
import { u as En } from "./useTranslation-CnCPcxVj.js";
|
|
41
41
|
import { T as zn } from "./Trans-B4ILpbwK.js";
|
|
@@ -44,7 +44,7 @@ const Bn = "_realTimeLogModalStyle_ew0yg_1", Ln = "_modalLeft_ew0yg_30", jn = "_
|
|
|
44
44
|
modalLeft: Ln,
|
|
45
45
|
buttonGroup: jn,
|
|
46
46
|
iosIcon: Mn
|
|
47
|
-
},
|
|
47
|
+
}, Rt = 0, Ge = 1, nt = 2, Oo = 4;
|
|
48
48
|
function po(e) {
|
|
49
49
|
return () => e;
|
|
50
50
|
}
|
|
@@ -70,7 +70,7 @@ function An(...e) {
|
|
|
70
70
|
}
|
|
71
71
|
function mt() {
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function _t(e, t) {
|
|
74
74
|
return t(e), e;
|
|
75
75
|
}
|
|
76
76
|
function On(e, t) {
|
|
@@ -80,10 +80,10 @@ function se(...e) {
|
|
|
80
80
|
return e;
|
|
81
81
|
}
|
|
82
82
|
function Q(e, t) {
|
|
83
|
-
return e(
|
|
83
|
+
return e(Ge, t);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
e(
|
|
85
|
+
function F(e, t) {
|
|
86
|
+
e(Rt, t);
|
|
87
87
|
}
|
|
88
88
|
function Kt(e) {
|
|
89
89
|
e(nt);
|
|
@@ -92,10 +92,10 @@ function ce(e) {
|
|
|
92
92
|
return e(Oo);
|
|
93
93
|
}
|
|
94
94
|
function M(e, t) {
|
|
95
|
-
return Q(e, Nn(t,
|
|
95
|
+
return Q(e, Nn(t, Rt));
|
|
96
96
|
}
|
|
97
97
|
function Me(e, t) {
|
|
98
|
-
const o = e(
|
|
98
|
+
const o = e(Ge, (n) => {
|
|
99
99
|
o(), t(n);
|
|
100
100
|
});
|
|
101
101
|
return o;
|
|
@@ -117,7 +117,7 @@ function ie(e = Do) {
|
|
|
117
117
|
e(t, n) || (t = n, o(n));
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function D(e) {
|
|
121
121
|
return (t) => (o) => {
|
|
122
122
|
e(o) && t(o);
|
|
123
123
|
};
|
|
@@ -137,7 +137,7 @@ function x(e, ...t) {
|
|
|
137
137
|
case nt:
|
|
138
138
|
Kt(e);
|
|
139
139
|
return;
|
|
140
|
-
case
|
|
140
|
+
case Ge:
|
|
141
141
|
return Q(e, o(r));
|
|
142
142
|
}
|
|
143
143
|
};
|
|
@@ -160,7 +160,7 @@ function De(e) {
|
|
|
160
160
|
}, e));
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function G(...e) {
|
|
164
164
|
const t = new Array(e.length);
|
|
165
165
|
let o = 0, n = null;
|
|
166
166
|
const r = Math.pow(2, e.length) - 1;
|
|
@@ -185,7 +185,7 @@ function Dn(e) {
|
|
|
185
185
|
const n = () => t == null ? void 0 : t();
|
|
186
186
|
return function(r, i) {
|
|
187
187
|
switch (r) {
|
|
188
|
-
case
|
|
188
|
+
case Ge:
|
|
189
189
|
return i ? o === i ? void 0 : (n(), o = i, t = Q(e, i), t) : (n(), mt);
|
|
190
190
|
case nt:
|
|
191
191
|
n(), o = null;
|
|
@@ -198,10 +198,10 @@ function H(e) {
|
|
|
198
198
|
const o = U();
|
|
199
199
|
return (n, r) => {
|
|
200
200
|
switch (n) {
|
|
201
|
-
case
|
|
201
|
+
case Rt:
|
|
202
202
|
t = r;
|
|
203
203
|
break;
|
|
204
|
-
case
|
|
204
|
+
case Ge: {
|
|
205
205
|
r(t);
|
|
206
206
|
break;
|
|
207
207
|
}
|
|
@@ -212,13 +212,13 @@ function H(e) {
|
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
function pe(e, t) {
|
|
215
|
-
return
|
|
215
|
+
return _t(H(t), (o) => M(e, o));
|
|
216
216
|
}
|
|
217
217
|
function U() {
|
|
218
218
|
const e = [];
|
|
219
219
|
return (t, o) => {
|
|
220
220
|
switch (t) {
|
|
221
|
-
case
|
|
221
|
+
case Rt:
|
|
222
222
|
e.slice().forEach((n) => {
|
|
223
223
|
n(o);
|
|
224
224
|
});
|
|
@@ -226,7 +226,7 @@ function U() {
|
|
|
226
226
|
case nt:
|
|
227
227
|
e.splice(0, e.length);
|
|
228
228
|
return;
|
|
229
|
-
case
|
|
229
|
+
case Ge:
|
|
230
230
|
return e.push(o), () => {
|
|
231
231
|
const n = e.indexOf(o);
|
|
232
232
|
n > -1 && e.splice(n, 1);
|
|
@@ -235,7 +235,7 @@ function U() {
|
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
function He(e) {
|
|
238
|
-
return
|
|
238
|
+
return _t(U(), (t) => M(e, t));
|
|
239
239
|
}
|
|
240
240
|
function ee(e, t = [], { singleton: o } = { singleton: !0 }) {
|
|
241
241
|
return {
|
|
@@ -246,7 +246,7 @@ function ee(e, t = [], { singleton: o } = { singleton: !0 }) {
|
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
248
|
const Vn = () => Symbol();
|
|
249
|
-
function
|
|
249
|
+
function Fn(e) {
|
|
250
250
|
const t = /* @__PURE__ */ new Map(), o = ({ constructor: n, dependencies: r, id: i, singleton: s }) => {
|
|
251
251
|
if (s && t.has(i))
|
|
252
252
|
return t.get(i);
|
|
@@ -262,7 +262,7 @@ function ue(...e) {
|
|
|
262
262
|
return e.forEach((i, s) => {
|
|
263
263
|
const l = Math.pow(2, s);
|
|
264
264
|
Q(i, (c) => {
|
|
265
|
-
o[s] = c, n = n | l, n === r &&
|
|
265
|
+
o[s] = c, n = n | l, n === r && F(t, o);
|
|
266
266
|
});
|
|
267
267
|
}), function(i, s) {
|
|
268
268
|
switch (i) {
|
|
@@ -270,12 +270,12 @@ function ue(...e) {
|
|
|
270
270
|
Kt(t);
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
|
-
case
|
|
273
|
+
case Ge:
|
|
274
274
|
return n === r && s(o), Q(t, s);
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function O(e, t = Do) {
|
|
279
279
|
return x(e, ie(t));
|
|
280
280
|
}
|
|
281
281
|
function Dt(...e) {
|
|
@@ -283,13 +283,13 @@ function Dt(...e) {
|
|
|
283
283
|
switch (t) {
|
|
284
284
|
case nt:
|
|
285
285
|
return;
|
|
286
|
-
case
|
|
286
|
+
case Ge:
|
|
287
287
|
return An(...e.map((n) => Q(n, o)));
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
var Ie = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Ie || {});
|
|
292
|
-
const
|
|
292
|
+
const Gn = {
|
|
293
293
|
0: "debug",
|
|
294
294
|
3: "error",
|
|
295
295
|
1: "log",
|
|
@@ -304,7 +304,7 @@ const Fn = {
|
|
|
304
304
|
log: H((t, o, n = 1) => {
|
|
305
305
|
var r;
|
|
306
306
|
const i = (r = $n().VIRTUOSO_LOG_LEVEL) != null ? r : ce(e);
|
|
307
|
-
n >= i && console[
|
|
307
|
+
n >= i && console[Gn[n]](
|
|
308
308
|
"%creact-virtuoso: %c%s %o",
|
|
309
309
|
"color: #0253b3; font-weight: bold",
|
|
310
310
|
"color: initial",
|
|
@@ -462,7 +462,7 @@ const xe = ee(
|
|
|
462
462
|
[],
|
|
463
463
|
{ singleton: !0 }
|
|
464
464
|
), lt = { lvl: 0 };
|
|
465
|
-
function
|
|
465
|
+
function Fo(e, t) {
|
|
466
466
|
const o = e.length;
|
|
467
467
|
if (o === 0)
|
|
468
468
|
return [];
|
|
@@ -502,7 +502,7 @@ function Et(e, t, o) {
|
|
|
502
502
|
if (ne(e))
|
|
503
503
|
return [];
|
|
504
504
|
const n = We(e, t)[0];
|
|
505
|
-
return Kn(
|
|
505
|
+
return Kn(Ft(e, n, o));
|
|
506
506
|
}
|
|
507
507
|
function Vt(e, t) {
|
|
508
508
|
if (ne(e))
|
|
@@ -515,7 +515,7 @@ function Vt(e, t) {
|
|
|
515
515
|
return n;
|
|
516
516
|
{
|
|
517
517
|
const [i, s] = $o(n);
|
|
518
|
-
return Ct(me(e, { k: i, l:
|
|
518
|
+
return Ct(me(e, { k: i, l: Go(n), v: s }));
|
|
519
519
|
}
|
|
520
520
|
} else
|
|
521
521
|
return t < o ? Ct(me(e, { l: Vt(n, t) })) : Ct(me(e, { r: Vt(r, t) }));
|
|
@@ -523,12 +523,12 @@ function Vt(e, t) {
|
|
|
523
523
|
function Ke(e) {
|
|
524
524
|
return ne(e) ? [] : [...Ke(e.l), { k: e.k, v: e.v }, ...Ke(e.r)];
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Ft(e, t, o) {
|
|
527
527
|
if (ne(e))
|
|
528
528
|
return [];
|
|
529
529
|
const { k: n, l: r, r: i, v: s } = e;
|
|
530
530
|
let l = [];
|
|
531
|
-
return n > t && (l = l.concat(
|
|
531
|
+
return n > t && (l = l.concat(Ft(r, t, o))), n >= t && n <= o && l.push({ k: n, v: s }), n <= o && (l = l.concat(Ft(i, t, o))), l;
|
|
532
532
|
}
|
|
533
533
|
function Ct(e) {
|
|
534
534
|
const { l: t, lvl: o, r: n } = e;
|
|
@@ -549,7 +549,7 @@ function Ct(e) {
|
|
|
549
549
|
throw new Error("Unexpected empty nodes");
|
|
550
550
|
} else {
|
|
551
551
|
if (Mt(e))
|
|
552
|
-
return
|
|
552
|
+
return Gt(me(e, { lvl: o - 1 }));
|
|
553
553
|
if (!ne(n) && !ne(n.l)) {
|
|
554
554
|
const r = n.l, i = Mt(r) ? n.lvl - 1 : n.lvl;
|
|
555
555
|
return me(r, {
|
|
@@ -558,7 +558,7 @@ function Ct(e) {
|
|
|
558
558
|
r: r.l
|
|
559
559
|
}),
|
|
560
560
|
lvl: r.lvl + 1,
|
|
561
|
-
r:
|
|
561
|
+
r: Gt(me(n, { l: r.r, lvl: i }))
|
|
562
562
|
});
|
|
563
563
|
} else
|
|
564
564
|
throw new Error("Unexpected empty nodes");
|
|
@@ -573,8 +573,8 @@ function me(e, t) {
|
|
|
573
573
|
t.r !== void 0 ? t.r : e.r
|
|
574
574
|
);
|
|
575
575
|
}
|
|
576
|
-
function
|
|
577
|
-
return ne(e.r) ? e.l : Ct(me(e, { r:
|
|
576
|
+
function Go(e) {
|
|
577
|
+
return ne(e.r) ? e.l : Ct(me(e, { r: Go(e.r) }));
|
|
578
578
|
}
|
|
579
579
|
function Mt(e) {
|
|
580
580
|
return ne(e) || e.lvl > e.r.lvl;
|
|
@@ -586,18 +586,18 @@ function qo(e, t, o, n = lt, r = lt) {
|
|
|
586
586
|
return { k: e, l: n, lvl: o, r, v: t };
|
|
587
587
|
}
|
|
588
588
|
function To(e) {
|
|
589
|
-
return
|
|
589
|
+
return Gt(Uo(e));
|
|
590
590
|
}
|
|
591
591
|
function Uo(e) {
|
|
592
592
|
const { l: t } = e;
|
|
593
593
|
return !ne(t) && t.lvl === e.lvl ? me(t, { r: me(e, { l: t.r }) }) : e;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Gt(e) {
|
|
596
596
|
const { lvl: t, r: o } = e;
|
|
597
597
|
return !ne(o) && !ne(o.r) && o.lvl === t && o.r.lvl === t ? me(o, { l: me(e, { r: o.l }), lvl: t + 1 }) : e;
|
|
598
598
|
}
|
|
599
599
|
function Kn(e) {
|
|
600
|
-
return
|
|
600
|
+
return Fo(e, ({ k: t, v: o }) => ({ index: t, value: o }));
|
|
601
601
|
}
|
|
602
602
|
function Ko(e, t) {
|
|
603
603
|
return !!(e && e.startIndex === t.startIndex && e.endIndex === t.endIndex);
|
|
@@ -635,7 +635,7 @@ function Yn(e, t, o, n) {
|
|
|
635
635
|
const r = yt(e, t, n), i = yt(e, o, n, r);
|
|
636
636
|
return e.slice(r, i + 1);
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Fe(e, t) {
|
|
639
639
|
return Math.round(e.getBoundingClientRect()[t]);
|
|
640
640
|
}
|
|
641
641
|
function zt(e) {
|
|
@@ -703,7 +703,7 @@ function Zo(e, t, o) {
|
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
function er(e, t, o, n = 0) {
|
|
706
|
-
return n > 0 && (t = Math.max(t, Yo(e, n, Zt).offset)),
|
|
706
|
+
return n > 0 && (t = Math.max(t, Yo(e, n, Zt).offset)), Fo(Yn(e, t, o, Qn), nr);
|
|
707
707
|
}
|
|
708
708
|
function tr(e, [t, o, n, r]) {
|
|
709
709
|
t.length > 0 && n("received item sizes", t, Ie.DEBUG);
|
|
@@ -774,8 +774,8 @@ const ir = {
|
|
|
774
774
|
offsetWidth: "width"
|
|
775
775
|
}, Oe = ee(
|
|
776
776
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
777
|
-
const o = U(), n = U(), r = pe(n, 0), i = U(), s = U(), l = H(0), c = H([]), a = H(void 0), h = H(void 0), w = H((m, u) =>
|
|
778
|
-
x(o,
|
|
777
|
+
const o = U(), n = U(), r = pe(n, 0), i = U(), s = U(), l = H(0), c = H([]), a = H(void 0), h = H(void 0), w = H((m, u) => Fe(m, ir[u])), g = H(void 0), v = H(0), S = Xn(), k = pe(
|
|
778
|
+
x(o, G(c, e, v), Ae(tr, S), ie()),
|
|
779
779
|
S
|
|
780
780
|
), p = pe(
|
|
781
781
|
x(
|
|
@@ -792,14 +792,14 @@ const ir = {
|
|
|
792
792
|
M(
|
|
793
793
|
x(
|
|
794
794
|
c,
|
|
795
|
-
|
|
796
|
-
|
|
795
|
+
D((m) => m.length > 0),
|
|
796
|
+
G(k, v),
|
|
797
797
|
E(([m, u, y]) => {
|
|
798
|
-
const
|
|
798
|
+
const R = m.reduce((j, z, A) => be(j, z, ut(z, u.offsetTree, y) || A), ot());
|
|
799
799
|
return {
|
|
800
800
|
...u,
|
|
801
801
|
groupIndices: m,
|
|
802
|
-
groupOffsetTree:
|
|
802
|
+
groupOffsetTree: R
|
|
803
803
|
};
|
|
804
804
|
})
|
|
805
805
|
),
|
|
@@ -807,8 +807,8 @@ const ir = {
|
|
|
807
807
|
), M(
|
|
808
808
|
x(
|
|
809
809
|
n,
|
|
810
|
-
|
|
811
|
-
|
|
810
|
+
G(k),
|
|
811
|
+
D(([m, { lastIndex: u }]) => m < u),
|
|
812
812
|
E(([m, { lastIndex: u, lastSize: y }]) => [
|
|
813
813
|
{
|
|
814
814
|
endIndex: u,
|
|
@@ -829,7 +829,7 @@ const ir = {
|
|
|
829
829
|
M(
|
|
830
830
|
x(
|
|
831
831
|
h,
|
|
832
|
-
|
|
832
|
+
D((m) => m !== void 0 && ne(ce(k).sizeTree)),
|
|
833
833
|
E((m) => [{ endIndex: 0, size: m, startIndex: 0 }])
|
|
834
834
|
),
|
|
835
835
|
o
|
|
@@ -837,7 +837,7 @@ const ir = {
|
|
|
837
837
|
const d = He(
|
|
838
838
|
x(
|
|
839
839
|
o,
|
|
840
|
-
|
|
840
|
+
G(k),
|
|
841
841
|
Ae(
|
|
842
842
|
({ sizes: m }, [u, y]) => ({
|
|
843
843
|
changed: y !== m,
|
|
@@ -860,13 +860,13 @@ const ir = {
|
|
|
860
860
|
(m) => {
|
|
861
861
|
const { groupIndices: u } = ce(k);
|
|
862
862
|
if (m > 0)
|
|
863
|
-
|
|
863
|
+
F(t, !0), F(i, m + wo(m, u));
|
|
864
864
|
else if (m < 0) {
|
|
865
865
|
const y = ce(p);
|
|
866
|
-
y.length > 0 && (m -= wo(-m, y)),
|
|
866
|
+
y.length > 0 && (m -= wo(-m, y)), F(s, m);
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
|
-
), Q(x(l,
|
|
869
|
+
), Q(x(l, G(e)), ([m, u]) => {
|
|
870
870
|
m < 0 && u(
|
|
871
871
|
"`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
|
|
872
872
|
{ firstItemIndex: l },
|
|
@@ -877,37 +877,37 @@ const ir = {
|
|
|
877
877
|
M(
|
|
878
878
|
x(
|
|
879
879
|
i,
|
|
880
|
-
|
|
880
|
+
G(k),
|
|
881
881
|
E(([m, u]) => {
|
|
882
|
-
const y = u.groupIndices.length > 0,
|
|
882
|
+
const y = u.groupIndices.length > 0, R = [], j = u.lastSize;
|
|
883
883
|
if (y) {
|
|
884
884
|
const z = ct(u.sizeTree, 0);
|
|
885
|
-
let
|
|
886
|
-
for (;
|
|
887
|
-
const B = u.groupIndices[$],
|
|
888
|
-
|
|
885
|
+
let A = 0, $ = 0;
|
|
886
|
+
for (; A < m; ) {
|
|
887
|
+
const B = u.groupIndices[$], Y = u.groupIndices.length === $ + 1 ? 1 / 0 : u.groupIndices[$ + 1] - B - 1;
|
|
888
|
+
R.push({
|
|
889
889
|
endIndex: B,
|
|
890
890
|
size: z,
|
|
891
891
|
startIndex: B
|
|
892
|
-
}),
|
|
893
|
-
endIndex: B + 1 +
|
|
892
|
+
}), R.push({
|
|
893
|
+
endIndex: B + 1 + Y - 1,
|
|
894
894
|
size: j,
|
|
895
895
|
startIndex: B + 1
|
|
896
|
-
}), $++,
|
|
896
|
+
}), $++, A += Y + 1;
|
|
897
897
|
}
|
|
898
898
|
const te = Ke(u.sizeTree);
|
|
899
|
-
return
|
|
900
|
-
(B, { k:
|
|
899
|
+
return A !== m && te.shift(), te.reduce(
|
|
900
|
+
(B, { k: Y, v: X }) => {
|
|
901
901
|
let ve = B.ranges;
|
|
902
902
|
return B.prevSize !== 0 && (ve = [
|
|
903
903
|
...B.ranges,
|
|
904
904
|
{
|
|
905
|
-
endIndex:
|
|
905
|
+
endIndex: Y + m - 1,
|
|
906
906
|
size: B.prevSize,
|
|
907
907
|
startIndex: B.prevIndex
|
|
908
908
|
}
|
|
909
909
|
]), {
|
|
910
|
-
prevIndex:
|
|
910
|
+
prevIndex: Y + m,
|
|
911
911
|
prevSize: X,
|
|
912
912
|
ranges: ve
|
|
913
913
|
};
|
|
@@ -915,15 +915,15 @@ const ir = {
|
|
|
915
915
|
{
|
|
916
916
|
prevIndex: m,
|
|
917
917
|
prevSize: 0,
|
|
918
|
-
ranges:
|
|
918
|
+
ranges: R
|
|
919
919
|
}
|
|
920
920
|
).ranges;
|
|
921
921
|
}
|
|
922
922
|
return Ke(u.sizeTree).reduce(
|
|
923
|
-
(z, { k:
|
|
924
|
-
prevIndex:
|
|
923
|
+
(z, { k: A, v: $ }) => ({
|
|
924
|
+
prevIndex: A + m,
|
|
925
925
|
prevSize: $,
|
|
926
|
-
ranges: [...z.ranges, { endIndex:
|
|
926
|
+
ranges: [...z.ranges, { endIndex: A + m - 1, size: z.prevSize, startIndex: z.prevIndex }]
|
|
927
927
|
}),
|
|
928
928
|
{
|
|
929
929
|
prevIndex: 0,
|
|
@@ -935,49 +935,49 @@ const ir = {
|
|
|
935
935
|
),
|
|
936
936
|
o
|
|
937
937
|
);
|
|
938
|
-
const
|
|
938
|
+
const _ = He(
|
|
939
939
|
x(
|
|
940
940
|
s,
|
|
941
|
-
|
|
941
|
+
G(k, v),
|
|
942
942
|
E(([m, { offsetTree: u }, y]) => {
|
|
943
|
-
const
|
|
944
|
-
return ut(
|
|
943
|
+
const R = -m;
|
|
944
|
+
return ut(R, u, y);
|
|
945
945
|
})
|
|
946
946
|
)
|
|
947
947
|
);
|
|
948
948
|
return M(
|
|
949
949
|
x(
|
|
950
950
|
s,
|
|
951
|
-
|
|
951
|
+
G(k, v),
|
|
952
952
|
E(([m, u, y]) => {
|
|
953
953
|
if (u.groupIndices.length > 0) {
|
|
954
954
|
if (ne(u.sizeTree))
|
|
955
955
|
return u;
|
|
956
|
-
let
|
|
956
|
+
let R = ot();
|
|
957
957
|
const j = ce(p);
|
|
958
|
-
let z = 0,
|
|
958
|
+
let z = 0, A = 0, $ = 0;
|
|
959
959
|
for (; z < -m; ) {
|
|
960
|
-
$ = j[
|
|
961
|
-
const te = j[
|
|
962
|
-
|
|
960
|
+
$ = j[A];
|
|
961
|
+
const te = j[A + 1] - $ - 1;
|
|
962
|
+
A++, z += te + 1;
|
|
963
963
|
}
|
|
964
|
-
if (
|
|
964
|
+
if (R = Ke(u.sizeTree).reduce((te, { k: B, v: Y }) => be(te, Math.max(0, B + m), Y), R), z !== -m) {
|
|
965
965
|
const te = ct(u.sizeTree, $);
|
|
966
|
-
|
|
966
|
+
R = be(R, 0, te);
|
|
967
967
|
const B = We(u.sizeTree, -m + 1)[1];
|
|
968
|
-
|
|
968
|
+
R = be(R, 1, B);
|
|
969
969
|
}
|
|
970
970
|
return {
|
|
971
971
|
...u,
|
|
972
|
-
sizeTree:
|
|
973
|
-
...$t(u.offsetTree, 0,
|
|
972
|
+
sizeTree: R,
|
|
973
|
+
...$t(u.offsetTree, 0, R, y)
|
|
974
974
|
};
|
|
975
975
|
} else {
|
|
976
|
-
const
|
|
976
|
+
const R = Ke(u.sizeTree).reduce((j, { k: z, v: A }) => be(j, Math.max(0, z + m), A), ot());
|
|
977
977
|
return {
|
|
978
978
|
...u,
|
|
979
|
-
sizeTree:
|
|
980
|
-
...$t(u.offsetTree, 0,
|
|
979
|
+
sizeTree: R,
|
|
980
|
+
...$t(u.offsetTree, 0, R, y)
|
|
981
981
|
};
|
|
982
982
|
}
|
|
983
983
|
})
|
|
@@ -995,7 +995,7 @@ const ir = {
|
|
|
995
995
|
itemSize: w,
|
|
996
996
|
listRefresh: d,
|
|
997
997
|
shiftWith: s,
|
|
998
|
-
shiftWithOffset:
|
|
998
|
+
shiftWithOffset: _,
|
|
999
999
|
sizeRanges: o,
|
|
1000
1000
|
// output
|
|
1001
1001
|
sizes: k,
|
|
@@ -1035,7 +1035,7 @@ const Jo = ee(
|
|
|
1035
1035
|
), M(
|
|
1036
1036
|
x(
|
|
1037
1037
|
ue(r, t, n),
|
|
1038
|
-
|
|
1038
|
+
D(([c, a]) => zt(a)),
|
|
1039
1039
|
E(([c, a, h]) => We(a.groupOffsetTree, Math.max(c - h, 0), "v")[0]),
|
|
1040
1040
|
ie(),
|
|
1041
1041
|
E((c) => [c])
|
|
@@ -1049,7 +1049,7 @@ const Jo = ee(
|
|
|
1049
1049
|
const t = H(!1), o = He(
|
|
1050
1050
|
x(
|
|
1051
1051
|
t,
|
|
1052
|
-
|
|
1052
|
+
D((n) => n),
|
|
1053
1053
|
ie()
|
|
1054
1054
|
)
|
|
1055
1055
|
);
|
|
@@ -1082,25 +1082,25 @@ const ft = ee(
|
|
|
1082
1082
|
const v = U(), S = U(), k = H(0);
|
|
1083
1083
|
let p = null, f = null, d = null;
|
|
1084
1084
|
function b() {
|
|
1085
|
-
p && (p(), p = null), d && (d(), d = null), f && (clearTimeout(f), f = null),
|
|
1085
|
+
p && (p(), p = null), d && (d(), d = null), f && (clearTimeout(f), f = null), F(c, !1);
|
|
1086
1086
|
}
|
|
1087
1087
|
return M(
|
|
1088
1088
|
x(
|
|
1089
1089
|
v,
|
|
1090
|
-
|
|
1091
|
-
|
|
1090
|
+
G(o, w, n, k, l, s, g),
|
|
1091
|
+
G(e, i, r),
|
|
1092
1092
|
E(
|
|
1093
1093
|
([
|
|
1094
|
-
[
|
|
1094
|
+
[_, m, u, y, R, j, z, A],
|
|
1095
1095
|
$,
|
|
1096
1096
|
te,
|
|
1097
1097
|
B
|
|
1098
1098
|
]) => {
|
|
1099
|
-
const
|
|
1099
|
+
const Y = Qo(_), { align: X, behavior: ve, offset: Te } = Y, we = y - 1, he = Zo(Y, m, we);
|
|
1100
1100
|
let fe = ut(he, m.offsetTree, $) + j;
|
|
1101
|
-
X === "end" ? (fe += te + We(m.sizeTree, he)[1] - u + B, he === we && (fe += z)) : X === "center" ? fe += (te + We(m.sizeTree, he)[1] - u + B) / 2 : fe -=
|
|
1101
|
+
X === "end" ? (fe += te + We(m.sizeTree, he)[1] - u + B, he === we && (fe += z)) : X === "center" ? fe += (te + We(m.sizeTree, he)[1] - u + B) / 2 : fe -= R, Te && (fe += Te);
|
|
1102
1102
|
const Le = (Ce) => {
|
|
1103
|
-
b(), Ce ? (
|
|
1103
|
+
b(), Ce ? (A("retrying to scroll to", { location: _ }, Ie.DEBUG), F(v, _)) : (F(S, !0), A("list did not change, scroll successful", {}, Ie.DEBUG));
|
|
1104
1104
|
};
|
|
1105
1105
|
if (b(), ve === "smooth") {
|
|
1106
1106
|
let Ce = !1;
|
|
@@ -1113,7 +1113,7 @@ const ft = ee(
|
|
|
1113
1113
|
p = Me(x(t, cr(150)), Le);
|
|
1114
1114
|
return f = setTimeout(() => {
|
|
1115
1115
|
b();
|
|
1116
|
-
}, 1200),
|
|
1116
|
+
}, 1200), F(c, !0), A("scrolling from index to", { behavior: ve, index: he, top: fe }, Ie.DEBUG), { behavior: ve, top: fe };
|
|
1117
1117
|
}
|
|
1118
1118
|
)
|
|
1119
1119
|
),
|
|
@@ -1152,33 +1152,33 @@ const ht = ee(
|
|
|
1152
1152
|
return M(
|
|
1153
1153
|
x(
|
|
1154
1154
|
s,
|
|
1155
|
-
|
|
1156
|
-
|
|
1155
|
+
G(c),
|
|
1156
|
+
D(([h, w]) => !!w),
|
|
1157
1157
|
Ne(!1)
|
|
1158
1158
|
),
|
|
1159
1159
|
l
|
|
1160
1160
|
), M(
|
|
1161
1161
|
x(
|
|
1162
1162
|
s,
|
|
1163
|
-
|
|
1164
|
-
|
|
1163
|
+
G(c),
|
|
1164
|
+
D(([h, w]) => !!w),
|
|
1165
1165
|
Ne(!1)
|
|
1166
1166
|
),
|
|
1167
1167
|
a
|
|
1168
1168
|
), Q(
|
|
1169
1169
|
x(
|
|
1170
1170
|
ue(t, s),
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1171
|
+
G(l, o, e, a),
|
|
1172
|
+
D(([[, h], w, { sizeTree: g }, v, S]) => h && (!ne(g) || Ut(v)) && !w && !S),
|
|
1173
|
+
G(c)
|
|
1174
1174
|
),
|
|
1175
1175
|
([, h]) => {
|
|
1176
1176
|
Me(r, () => {
|
|
1177
|
-
|
|
1177
|
+
F(a, !0);
|
|
1178
1178
|
}), Jt(4, () => {
|
|
1179
1179
|
Me(n, () => {
|
|
1180
|
-
|
|
1181
|
-
}),
|
|
1180
|
+
F(l, !0);
|
|
1181
|
+
}), F(i, h);
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
1184
|
), {
|
|
@@ -1205,7 +1205,7 @@ const dt = "up", it = "down", ar = "none", ur = {
|
|
|
1205
1205
|
}, dr = 0, gt = ee(([{ footerHeight: e, headerHeight: t, scrollBy: o, scrollContainerState: n, scrollTop: r, viewportHeight: i }]) => {
|
|
1206
1206
|
const s = H(!1), l = H(!0), c = U(), a = U(), h = H(4), w = H(dr), g = pe(
|
|
1207
1207
|
x(
|
|
1208
|
-
Dt(x(
|
|
1208
|
+
Dt(x(O(r), Ye(1), Ne(!0)), x(O(r), Ye(1), Ne(!1), vo(100))),
|
|
1209
1209
|
ie()
|
|
1210
1210
|
),
|
|
1211
1211
|
!1
|
|
@@ -1215,7 +1215,7 @@ const dt = "up", it = "down", ar = "none", ur = {
|
|
|
1215
1215
|
);
|
|
1216
1216
|
M(
|
|
1217
1217
|
x(
|
|
1218
|
-
ue(
|
|
1218
|
+
ue(O(r), O(w)),
|
|
1219
1219
|
E(([d, b]) => d <= b),
|
|
1220
1220
|
ie()
|
|
1221
1221
|
),
|
|
@@ -1223,26 +1223,26 @@ const dt = "up", it = "down", ar = "none", ur = {
|
|
|
1223
1223
|
), M(x(l, De(50)), a);
|
|
1224
1224
|
const S = He(
|
|
1225
1225
|
x(
|
|
1226
|
-
ue(n,
|
|
1227
|
-
Ae((d, [{ scrollHeight: b, scrollTop:
|
|
1228
|
-
const j =
|
|
1226
|
+
ue(n, O(i), O(t), O(e), O(h)),
|
|
1227
|
+
Ae((d, [{ scrollHeight: b, scrollTop: _ }, m, u, y, R]) => {
|
|
1228
|
+
const j = _ + m - b > -R, z = {
|
|
1229
1229
|
scrollHeight: b,
|
|
1230
|
-
scrollTop:
|
|
1230
|
+
scrollTop: _,
|
|
1231
1231
|
viewportHeight: m
|
|
1232
1232
|
};
|
|
1233
1233
|
if (j) {
|
|
1234
1234
|
let $, te;
|
|
1235
|
-
return
|
|
1235
|
+
return _ > d.state.scrollTop ? ($ = "SCROLLED_DOWN", te = d.state.scrollTop - _) : ($ = "SIZE_DECREASED", te = d.state.scrollTop - _ || d.scrollTopDelta), {
|
|
1236
1236
|
atBottom: !0,
|
|
1237
1237
|
atBottomBecause: $,
|
|
1238
1238
|
scrollTopDelta: te,
|
|
1239
1239
|
state: z
|
|
1240
1240
|
};
|
|
1241
1241
|
}
|
|
1242
|
-
let
|
|
1243
|
-
return z.scrollHeight > d.state.scrollHeight ?
|
|
1242
|
+
let A;
|
|
1243
|
+
return z.scrollHeight > d.state.scrollHeight ? A = "SIZE_INCREASED" : m < d.state.viewportHeight ? A = "VIEWPORT_HEIGHT_DECREASING" : _ < d.state.scrollTop ? A = "SCROLLING_UPWARDS" : A = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
|
|
1244
1244
|
atBottom: !1,
|
|
1245
|
-
notAtBottomBecause:
|
|
1245
|
+
notAtBottomBecause: A,
|
|
1246
1246
|
state: z
|
|
1247
1247
|
};
|
|
1248
1248
|
}, ur),
|
|
@@ -1252,32 +1252,32 @@ const dt = "up", it = "down", ar = "none", ur = {
|
|
|
1252
1252
|
x(
|
|
1253
1253
|
n,
|
|
1254
1254
|
Ae(
|
|
1255
|
-
(d, { scrollHeight: b, scrollTop:
|
|
1255
|
+
(d, { scrollHeight: b, scrollTop: _, viewportHeight: m }) => {
|
|
1256
1256
|
if (en(d.scrollHeight, b))
|
|
1257
1257
|
return {
|
|
1258
1258
|
changed: !1,
|
|
1259
1259
|
jump: 0,
|
|
1260
1260
|
scrollHeight: b,
|
|
1261
|
-
scrollTop:
|
|
1261
|
+
scrollTop: _
|
|
1262
1262
|
};
|
|
1263
1263
|
{
|
|
1264
|
-
const u = b - (
|
|
1265
|
-
return d.scrollTop !==
|
|
1264
|
+
const u = b - (_ + m) < 1;
|
|
1265
|
+
return d.scrollTop !== _ && u ? {
|
|
1266
1266
|
changed: !0,
|
|
1267
|
-
jump: d.scrollTop -
|
|
1267
|
+
jump: d.scrollTop - _,
|
|
1268
1268
|
scrollHeight: b,
|
|
1269
|
-
scrollTop:
|
|
1269
|
+
scrollTop: _
|
|
1270
1270
|
} : {
|
|
1271
1271
|
changed: !0,
|
|
1272
1272
|
jump: 0,
|
|
1273
1273
|
scrollHeight: b,
|
|
1274
|
-
scrollTop:
|
|
1274
|
+
scrollTop: _
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
1277
|
},
|
|
1278
1278
|
{ changed: !1, jump: 0, scrollHeight: 0, scrollTop: 0 }
|
|
1279
1279
|
),
|
|
1280
|
-
|
|
1280
|
+
D((d) => d.changed),
|
|
1281
1281
|
E((d) => d.jump)
|
|
1282
1282
|
),
|
|
1283
1283
|
0
|
|
@@ -1307,7 +1307,7 @@ const dt = "up", it = "down", ar = "none", ur = {
|
|
|
1307
1307
|
return M(
|
|
1308
1308
|
x(
|
|
1309
1309
|
g,
|
|
1310
|
-
|
|
1310
|
+
D((d) => !d),
|
|
1311
1311
|
Ne(0)
|
|
1312
1312
|
),
|
|
1313
1313
|
f
|
|
@@ -1315,9 +1315,9 @@ const dt = "up", it = "down", ar = "none", ur = {
|
|
|
1315
1315
|
x(
|
|
1316
1316
|
r,
|
|
1317
1317
|
De(100),
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
Ae(([d, b], [
|
|
1318
|
+
G(g),
|
|
1319
|
+
D(([d, b]) => !!b),
|
|
1320
|
+
Ae(([d, b], [_]) => [b, _], [0, 0]),
|
|
1321
1321
|
E(([d, b]) => b - d)
|
|
1322
1322
|
),
|
|
1323
1323
|
f
|
|
@@ -1347,15 +1347,15 @@ const eo = ee(
|
|
|
1347
1347
|
const i = U(), s = H(0), l = H(0), c = H(0), a = pe(
|
|
1348
1348
|
x(
|
|
1349
1349
|
ue(
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1350
|
+
O(n),
|
|
1351
|
+
O(r),
|
|
1352
|
+
O(o),
|
|
1353
|
+
O(i, at),
|
|
1354
|
+
O(c),
|
|
1355
|
+
O(s),
|
|
1356
|
+
O(t),
|
|
1357
|
+
O(e),
|
|
1358
|
+
O(l)
|
|
1359
1359
|
),
|
|
1360
1360
|
E(
|
|
1361
1361
|
([
|
|
@@ -1369,16 +1369,16 @@ const eo = ee(
|
|
|
1369
1369
|
d,
|
|
1370
1370
|
b
|
|
1371
1371
|
]) => {
|
|
1372
|
-
const
|
|
1372
|
+
const _ = h - d, m = p + f, u = Math.max(g - _, 0);
|
|
1373
1373
|
let y = Co;
|
|
1374
|
-
const
|
|
1375
|
-
return v -= d, v += g + f, S += g + f, S -= d, v > h + m -
|
|
1376
|
-
Math.max(
|
|
1377
|
-
|
|
1374
|
+
const R = yo(b, bt), j = yo(b, Ht);
|
|
1375
|
+
return v -= d, v += g + f, S += g + f, S -= d, v > h + m - R && (y = dt), S < h - u + w + j && (y = it), y !== Co ? [
|
|
1376
|
+
Math.max(_ - g - So(k, bt, y) - R, 0),
|
|
1377
|
+
_ - u - f + w + So(k, Ht, y) + j
|
|
1378
1378
|
] : null;
|
|
1379
1379
|
}
|
|
1380
1380
|
),
|
|
1381
|
-
|
|
1381
|
+
D((h) => h != null),
|
|
1382
1382
|
ie(at)
|
|
1383
1383
|
),
|
|
1384
1384
|
[0, 0]
|
|
@@ -1498,18 +1498,18 @@ const Ze = ee(
|
|
|
1498
1498
|
ue(
|
|
1499
1499
|
v,
|
|
1500
1500
|
S,
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1501
|
+
O(c, at),
|
|
1502
|
+
O(r),
|
|
1503
|
+
O(n),
|
|
1504
|
+
O(a),
|
|
1505
1505
|
h,
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1506
|
+
O(k),
|
|
1507
|
+
O(t),
|
|
1508
|
+
O(o),
|
|
1509
1509
|
e
|
|
1510
1510
|
),
|
|
1511
|
-
|
|
1512
|
-
const z = j && j.length !==
|
|
1511
|
+
D(([u, y, , R, , , , , , , j]) => {
|
|
1512
|
+
const z = j && j.length !== R;
|
|
1513
1513
|
return u && !y && !z;
|
|
1514
1514
|
}),
|
|
1515
1515
|
E(
|
|
@@ -1517,25 +1517,25 @@ const Ze = ee(
|
|
|
1517
1517
|
,
|
|
1518
1518
|
,
|
|
1519
1519
|
[u, y],
|
|
1520
|
-
|
|
1520
|
+
R,
|
|
1521
1521
|
j,
|
|
1522
1522
|
z,
|
|
1523
|
-
|
|
1523
|
+
A,
|
|
1524
1524
|
$,
|
|
1525
1525
|
te,
|
|
1526
1526
|
B,
|
|
1527
|
-
|
|
1527
|
+
Y
|
|
1528
1528
|
]) => {
|
|
1529
1529
|
const X = j, { offsetTree: ve, sizeTree: Te } = X, we = ce(p);
|
|
1530
|
-
if (
|
|
1531
|
-
return { ...Wt, totalCount:
|
|
1530
|
+
if (R === 0)
|
|
1531
|
+
return { ...Wt, totalCount: R };
|
|
1532
1532
|
if (u === 0 && y === 0)
|
|
1533
|
-
return we === 0 ? { ...Wt, totalCount:
|
|
1533
|
+
return we === 0 ? { ...Wt, totalCount: R } : tn(we, z, j, te, B, Y || []);
|
|
1534
1534
|
if (ne(Te))
|
|
1535
1535
|
return we > 0 ? null : St(
|
|
1536
|
-
mr(Qt(z,
|
|
1536
|
+
mr(Qt(z, R), X, Y),
|
|
1537
1537
|
[],
|
|
1538
|
-
|
|
1538
|
+
R,
|
|
1539
1539
|
B,
|
|
1540
1540
|
X,
|
|
1541
1541
|
te
|
|
@@ -1543,39 +1543,39 @@ const Ze = ee(
|
|
|
1543
1543
|
const he = [];
|
|
1544
1544
|
if ($.length > 0) {
|
|
1545
1545
|
const je = $[0], ke = $[$.length - 1];
|
|
1546
|
-
let
|
|
1546
|
+
let Re = 0;
|
|
1547
1547
|
for (const T of Et(Te, je, ke)) {
|
|
1548
|
-
const
|
|
1548
|
+
const P = T.value, oe = Math.max(T.start, je), de = Math.min(T.end, ke);
|
|
1549
1549
|
for (let C = oe; C <= de; C++)
|
|
1550
|
-
he.push({ data:
|
|
1550
|
+
he.push({ data: Y == null ? void 0 : Y[C], index: C, offset: Re, size: P }), Re += P;
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
|
-
if (!
|
|
1554
|
-
return St([], he,
|
|
1553
|
+
if (!A)
|
|
1554
|
+
return St([], he, R, B, X, te);
|
|
1555
1555
|
const fe = $.length > 0 ? $[$.length - 1] + 1 : 0, Le = er(ve, u, y, fe);
|
|
1556
1556
|
if (Le.length === 0)
|
|
1557
1557
|
return null;
|
|
1558
|
-
const Ce =
|
|
1558
|
+
const Ce = R - 1, Ve = _t([], (je) => {
|
|
1559
1559
|
for (const ke of Le) {
|
|
1560
|
-
const
|
|
1561
|
-
let T =
|
|
1562
|
-
const oe =
|
|
1563
|
-
if (
|
|
1564
|
-
|
|
1565
|
-
const C =
|
|
1560
|
+
const Re = ke.value;
|
|
1561
|
+
let T = Re.offset, P = ke.start;
|
|
1562
|
+
const oe = Re.size;
|
|
1563
|
+
if (Re.offset < u) {
|
|
1564
|
+
P += Math.floor((u - Re.offset + B) / (oe + B));
|
|
1565
|
+
const C = P - ke.start;
|
|
1566
1566
|
T += C * oe + C * B;
|
|
1567
1567
|
}
|
|
1568
|
-
|
|
1568
|
+
P < fe && (T += (fe - P) * oe, P = fe);
|
|
1569
1569
|
const de = Math.min(ke.end, Ce);
|
|
1570
|
-
for (let C =
|
|
1571
|
-
je.push({ data:
|
|
1570
|
+
for (let C = P; C <= de && !(T >= y); C++)
|
|
1571
|
+
je.push({ data: Y == null ? void 0 : Y[C], index: C, offset: T, size: oe }), T += oe + B;
|
|
1572
1572
|
}
|
|
1573
1573
|
});
|
|
1574
|
-
return St(Ve, he,
|
|
1574
|
+
return St(Ve, he, R, B, X, te);
|
|
1575
1575
|
}
|
|
1576
1576
|
),
|
|
1577
1577
|
//@ts-expect-error filter needs to be fixed
|
|
1578
|
-
|
|
1578
|
+
D((u) => u !== null),
|
|
1579
1579
|
ie()
|
|
1580
1580
|
),
|
|
1581
1581
|
Wt
|
|
@@ -1583,7 +1583,7 @@ const Ze = ee(
|
|
|
1583
1583
|
M(
|
|
1584
1584
|
x(
|
|
1585
1585
|
e,
|
|
1586
|
-
|
|
1586
|
+
D(Ut),
|
|
1587
1587
|
E((u) => u == null ? void 0 : u.length)
|
|
1588
1588
|
),
|
|
1589
1589
|
r
|
|
@@ -1609,40 +1609,40 @@ const Ze = ee(
|
|
|
1609
1609
|
const b = He(
|
|
1610
1610
|
x(
|
|
1611
1611
|
d,
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1612
|
+
D(({ items: u }) => u.length > 0),
|
|
1613
|
+
G(r, e),
|
|
1614
|
+
D(([{ items: u }, y]) => u[u.length - 1].originalIndex === y - 1),
|
|
1615
1615
|
E(([, u, y]) => [u - 1, y]),
|
|
1616
1616
|
ie(at),
|
|
1617
1617
|
E(([u]) => u)
|
|
1618
1618
|
)
|
|
1619
|
-
),
|
|
1619
|
+
), _ = He(
|
|
1620
1620
|
x(
|
|
1621
1621
|
d,
|
|
1622
1622
|
De(200),
|
|
1623
|
-
|
|
1623
|
+
D(({ items: u, topItems: y }) => u.length > 0 && u[0].originalIndex === y.length),
|
|
1624
1624
|
E(({ items: u }) => u[0].index),
|
|
1625
1625
|
ie()
|
|
1626
1626
|
)
|
|
1627
1627
|
), m = He(
|
|
1628
1628
|
x(
|
|
1629
1629
|
d,
|
|
1630
|
-
|
|
1630
|
+
D(({ items: u }) => u.length > 0),
|
|
1631
1631
|
E(({ items: u }) => {
|
|
1632
|
-
let y = 0,
|
|
1633
|
-
for (; u[y].type === "group" && y <
|
|
1632
|
+
let y = 0, R = u.length - 1;
|
|
1633
|
+
for (; u[y].type === "group" && y < R; )
|
|
1634
1634
|
y++;
|
|
1635
|
-
for (; u[
|
|
1636
|
-
|
|
1635
|
+
for (; u[R].type === "group" && R > y; )
|
|
1636
|
+
R--;
|
|
1637
1637
|
return {
|
|
1638
|
-
endIndex: u[
|
|
1638
|
+
endIndex: u[R].index,
|
|
1639
1639
|
startIndex: u[y].index
|
|
1640
1640
|
};
|
|
1641
1641
|
}),
|
|
1642
1642
|
ie(Ko)
|
|
1643
1643
|
)
|
|
1644
1644
|
);
|
|
1645
|
-
return { endReached: b, initialItemCount: p, itemsRendered: f, listState: d, rangeChanged: m, startReached:
|
|
1645
|
+
return { endReached: b, initialItemCount: p, itemsRendered: f, listState: d, rangeChanged: m, startReached: _, topItemsIndexes: k, ...g };
|
|
1646
1646
|
},
|
|
1647
1647
|
se(
|
|
1648
1648
|
Oe,
|
|
@@ -1664,7 +1664,7 @@ const Ze = ee(
|
|
|
1664
1664
|
),
|
|
1665
1665
|
0
|
|
1666
1666
|
);
|
|
1667
|
-
return M(
|
|
1667
|
+
return M(O(s), i), { totalListHeight: s, totalListHeightChanged: i };
|
|
1668
1668
|
},
|
|
1669
1669
|
se(xe, Ze),
|
|
1670
1670
|
{ singleton: !0 }
|
|
@@ -1673,7 +1673,7 @@ const Ze = ee(
|
|
|
1673
1673
|
const o = H(!1), n = pe(
|
|
1674
1674
|
x(
|
|
1675
1675
|
ue(o, e, t),
|
|
1676
|
-
|
|
1676
|
+
D(([r]) => r),
|
|
1677
1677
|
E(([, r, i]) => Math.max(0, r - i)),
|
|
1678
1678
|
De(0),
|
|
1679
1679
|
ie()
|
|
@@ -1702,20 +1702,20 @@ const Ze = ee(
|
|
|
1702
1702
|
return M(
|
|
1703
1703
|
x(
|
|
1704
1704
|
h,
|
|
1705
|
-
|
|
1706
|
-
|
|
1705
|
+
G(t, c, o, i, r, n, l),
|
|
1706
|
+
G(e),
|
|
1707
1707
|
E(([[w, g, v, S, k, p, f, d], b]) => {
|
|
1708
|
-
const { align:
|
|
1709
|
-
itemBottom:
|
|
1708
|
+
const { align: _, behavior: m, calculateViewLocation: u = hr, done: y, ...R } = w, j = Zo(w, g, S - 1), z = ut(j, g.offsetTree, b) + k + p, A = z + We(g.sizeTree, j)[1], $ = d + p, te = d + v - f, B = u({
|
|
1709
|
+
itemBottom: A,
|
|
1710
1710
|
itemTop: z,
|
|
1711
|
-
locationParams: { align:
|
|
1711
|
+
locationParams: { align: _, behavior: m, ...R },
|
|
1712
1712
|
viewportBottom: te,
|
|
1713
1713
|
viewportTop: $
|
|
1714
1714
|
});
|
|
1715
1715
|
return B ? y && Me(
|
|
1716
1716
|
x(
|
|
1717
1717
|
s,
|
|
1718
|
-
|
|
1718
|
+
D((Y) => !Y),
|
|
1719
1719
|
// skips the initial publish of false, and the cleanup call.
|
|
1720
1720
|
// but if scrollingInProgress is true, we skip the initial publish.
|
|
1721
1721
|
Ye(ce(s) ? 1 : 2)
|
|
@@ -1723,7 +1723,7 @@ const Ze = ee(
|
|
|
1723
1723
|
y
|
|
1724
1724
|
) : y && y(), B;
|
|
1725
1725
|
}),
|
|
1726
|
-
|
|
1726
|
+
D((w) => w !== null)
|
|
1727
1727
|
),
|
|
1728
1728
|
a
|
|
1729
1729
|
), {
|
|
@@ -1751,7 +1751,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
|
1751
1751
|
const S = H(!1), k = U();
|
|
1752
1752
|
let p = null;
|
|
1753
1753
|
function f(m) {
|
|
1754
|
-
|
|
1754
|
+
F(s, {
|
|
1755
1755
|
align: "end",
|
|
1756
1756
|
behavior: m,
|
|
1757
1757
|
index: "LAST"
|
|
@@ -1759,13 +1759,13 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
|
1759
1759
|
}
|
|
1760
1760
|
Q(
|
|
1761
1761
|
x(
|
|
1762
|
-
ue(x(
|
|
1763
|
-
|
|
1764
|
-
E(([[m, u], y,
|
|
1765
|
-
let
|
|
1766
|
-
return
|
|
1762
|
+
ue(x(O(t), Ye(1)), c),
|
|
1763
|
+
G(O(S), i, l, w),
|
|
1764
|
+
E(([[m, u], y, R, j, z]) => {
|
|
1765
|
+
let A = u && j, $ = "auto";
|
|
1766
|
+
return A && ($ = gr(y, R || z), A = A && !!$), { followOutputBehavior: $, shouldFollow: A, totalCount: m };
|
|
1767
1767
|
}),
|
|
1768
|
-
|
|
1768
|
+
D(({ shouldFollow: m }) => m)
|
|
1769
1769
|
),
|
|
1770
1770
|
({ followOutputBehavior: m, totalCount: u }) => {
|
|
1771
1771
|
p && (p(), p = null), ce(o) ? requestAnimationFrame(() => {
|
|
@@ -1783,49 +1783,49 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
|
1783
1783
|
}
|
|
1784
1784
|
Q(
|
|
1785
1785
|
x(
|
|
1786
|
-
ue(
|
|
1787
|
-
|
|
1786
|
+
ue(O(S), t, a),
|
|
1787
|
+
D(([m, , u]) => m && u),
|
|
1788
1788
|
Ae(
|
|
1789
1789
|
({ value: m }, [, u]) => ({ refreshed: m === u, value: u }),
|
|
1790
1790
|
{ refreshed: !1, value: 0 }
|
|
1791
1791
|
),
|
|
1792
|
-
|
|
1793
|
-
|
|
1792
|
+
D(({ refreshed: m }) => m),
|
|
1793
|
+
G(S, t)
|
|
1794
1794
|
),
|
|
1795
1795
|
([, m]) => {
|
|
1796
1796
|
ce(l) && d(m !== !1);
|
|
1797
1797
|
}
|
|
1798
1798
|
), Q(k, () => {
|
|
1799
1799
|
d(ce(S) !== !1);
|
|
1800
|
-
}), Q(ue(
|
|
1800
|
+
}), Q(ue(O(S), r), ([m, u]) => {
|
|
1801
1801
|
m && !u.atBottom && u.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && f("auto");
|
|
1802
1802
|
});
|
|
1803
|
-
const b = H(null),
|
|
1803
|
+
const b = H(null), _ = U();
|
|
1804
1804
|
return M(
|
|
1805
1805
|
Dt(
|
|
1806
1806
|
x(
|
|
1807
|
-
|
|
1807
|
+
O(n),
|
|
1808
1808
|
E((m) => {
|
|
1809
1809
|
var u;
|
|
1810
1810
|
return (u = m == null ? void 0 : m.length) != null ? u : 0;
|
|
1811
1811
|
})
|
|
1812
1812
|
),
|
|
1813
|
-
x(
|
|
1813
|
+
x(O(t))
|
|
1814
1814
|
),
|
|
1815
|
-
|
|
1815
|
+
_
|
|
1816
1816
|
), Q(
|
|
1817
1817
|
x(
|
|
1818
|
-
ue(x(
|
|
1819
|
-
|
|
1820
|
-
E(([[m, u], y,
|
|
1821
|
-
|
|
1818
|
+
ue(x(_, Ye(1)), c),
|
|
1819
|
+
G(O(b), l, w, g),
|
|
1820
|
+
E(([[m, u], y, R, j, z]) => u && R && (y == null ? void 0 : y({ context: z, totalCount: m, scrollingInProgress: j }))),
|
|
1821
|
+
D((m) => !!m),
|
|
1822
1822
|
De(0)
|
|
1823
1823
|
),
|
|
1824
1824
|
(m) => {
|
|
1825
1825
|
p && (p(), p = null), ce(o) ? requestAnimationFrame(() => {
|
|
1826
|
-
ce(h)("scrolling into view", {}),
|
|
1826
|
+
ce(h)("scrolling into view", {}), F(v, m);
|
|
1827
1827
|
}) : p = Me(e, () => {
|
|
1828
|
-
ce(h)("scrolling into view", {}),
|
|
1828
|
+
ce(h)("scrolling into view", {}), F(v, m), p = null;
|
|
1829
1829
|
});
|
|
1830
1830
|
}
|
|
1831
1831
|
), { autoscrollToBottom: k, followOutput: S, scrollIntoViewOnChange: b };
|
|
@@ -1845,9 +1845,9 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
|
1845
1845
|
([{ data: e, firstItemIndex: t, gap: o, sizes: n }, { initialTopMostItemIndex: r }, { initialItemCount: i, listState: s }, { didMount: l }]) => (M(
|
|
1846
1846
|
x(
|
|
1847
1847
|
l,
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1848
|
+
G(i),
|
|
1849
|
+
D(([, c]) => c !== 0),
|
|
1850
|
+
G(r, n, t, o, e),
|
|
1851
1851
|
E(([[, c], a, h, w, g, v = []]) => tn(c, a, h, w, g, v))
|
|
1852
1852
|
),
|
|
1853
1853
|
s
|
|
@@ -1860,8 +1860,8 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
|
1860
1860
|
return Q(
|
|
1861
1861
|
x(
|
|
1862
1862
|
e,
|
|
1863
|
-
|
|
1864
|
-
|
|
1863
|
+
G(n),
|
|
1864
|
+
D(([, r]) => r !== 0),
|
|
1865
1865
|
E(([, r]) => ({ top: r }))
|
|
1866
1866
|
),
|
|
1867
1867
|
(r) => {
|
|
@@ -1869,11 +1869,11 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
|
1869
1869
|
x(
|
|
1870
1870
|
o,
|
|
1871
1871
|
Ye(1),
|
|
1872
|
-
|
|
1872
|
+
D((i) => i.items.length > 1)
|
|
1873
1873
|
),
|
|
1874
1874
|
() => {
|
|
1875
1875
|
requestAnimationFrame(() => {
|
|
1876
|
-
|
|
1876
|
+
F(t, r);
|
|
1877
1877
|
});
|
|
1878
1878
|
}
|
|
1879
1879
|
);
|
|
@@ -1890,8 +1890,8 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
|
1890
1890
|
return M(
|
|
1891
1891
|
x(
|
|
1892
1892
|
e,
|
|
1893
|
-
|
|
1894
|
-
|
|
1893
|
+
G(n, t, o),
|
|
1894
|
+
D(([r, i]) => !!i),
|
|
1895
1895
|
E(([r, i, s, l]) => {
|
|
1896
1896
|
const { enter: c, exit: a } = i;
|
|
1897
1897
|
if (s) {
|
|
@@ -1905,7 +1905,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
|
1905
1905
|
),
|
|
1906
1906
|
t
|
|
1907
1907
|
), Q(
|
|
1908
|
-
x(ue(t, e, o),
|
|
1908
|
+
x(ue(t, e, o), G(n)),
|
|
1909
1909
|
([[r, i, s], l]) => {
|
|
1910
1910
|
r && l && l.change && l.change(i, s);
|
|
1911
1911
|
}
|
|
@@ -1928,7 +1928,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
|
1928
1928
|
), M(
|
|
1929
1929
|
x(
|
|
1930
1930
|
t,
|
|
1931
|
-
|
|
1931
|
+
G(n),
|
|
1932
1932
|
E(([l, { offsetTop: c }]) => ({
|
|
1933
1933
|
...l,
|
|
1934
1934
|
top: l.top + c
|
|
@@ -1957,17 +1957,17 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
|
1957
1957
|
return M(l, w), M(c, g), Q(
|
|
1958
1958
|
x(
|
|
1959
1959
|
a,
|
|
1960
|
-
|
|
1960
|
+
G(t, n, s, w, g, o)
|
|
1961
1961
|
),
|
|
1962
1962
|
([v, S, k, p, f, d, b]) => {
|
|
1963
|
-
const
|
|
1964
|
-
p && f !== null && d !== null && (k = f.scrollTop - d.offsetTop), k -= b, v({ ranges:
|
|
1963
|
+
const _ = or(S.sizeTree);
|
|
1964
|
+
p && f !== null && d !== null && (k = f.scrollTop - d.offsetTop), k -= b, v({ ranges: _, scrollTop: k });
|
|
1965
1965
|
}
|
|
1966
|
-
), M(x(h,
|
|
1966
|
+
), M(x(h, D(Ut), E(Tr)), r), M(
|
|
1967
1967
|
x(
|
|
1968
1968
|
i,
|
|
1969
|
-
|
|
1970
|
-
|
|
1969
|
+
G(h),
|
|
1970
|
+
D(([, v]) => v !== void 0),
|
|
1971
1971
|
ie(),
|
|
1972
1972
|
E(([, v]) => v.ranges)
|
|
1973
1973
|
),
|
|
@@ -1987,7 +1987,7 @@ const wr = ee(([{ topItemsIndexes: e }]) => {
|
|
|
1987
1987
|
return M(
|
|
1988
1988
|
x(
|
|
1989
1989
|
t,
|
|
1990
|
-
|
|
1990
|
+
D((o) => o >= 0),
|
|
1991
1991
|
E((o) => Array.from({ length: o }).map((n, r) => r))
|
|
1992
1992
|
),
|
|
1993
1993
|
e
|
|
@@ -2009,30 +2009,30 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2009
2009
|
const k = He(
|
|
2010
2010
|
x(
|
|
2011
2011
|
c,
|
|
2012
|
-
|
|
2012
|
+
G(s),
|
|
2013
2013
|
Ae(
|
|
2014
|
-
([, f, d, b], [{ bottom:
|
|
2015
|
-
const j =
|
|
2014
|
+
([, f, d, b], [{ bottom: _, items: m, offsetBottom: u, totalCount: y }, R]) => {
|
|
2015
|
+
const j = _ + u;
|
|
2016
2016
|
let z = 0;
|
|
2017
|
-
return d === y && f.length > 0 && m.length > 0 && (m[0].originalIndex === 0 && f[0].originalIndex === 0 || (z = j - b, z !== 0 && (z +=
|
|
2017
|
+
return d === y && f.length > 0 && m.length > 0 && (m[0].originalIndex === 0 && f[0].originalIndex === 0 || (z = j - b, z !== 0 && (z += R))), [z, m, y, j];
|
|
2018
2018
|
},
|
|
2019
2019
|
[0, [], 0, 0]
|
|
2020
2020
|
),
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2021
|
+
D(([f]) => f !== 0),
|
|
2022
|
+
G(n, l, o, r, v, S),
|
|
2023
|
+
D(([, f, d, b, , , _]) => !_ && !b && f !== 0 && d === dt),
|
|
2024
2024
|
E(([[f], , , , , d]) => (d("Upward scrolling compensation", { amount: f }, Ie.DEBUG), f))
|
|
2025
2025
|
)
|
|
2026
2026
|
);
|
|
2027
2027
|
function p(f) {
|
|
2028
|
-
f > 0 ? (
|
|
2028
|
+
f > 0 ? (F(t, { behavior: "auto", top: -f }), F(e, 0)) : (F(e, 0), F(t, { behavior: "auto", top: -f }));
|
|
2029
2029
|
}
|
|
2030
|
-
return Q(x(k,
|
|
2031
|
-
b && Cr() ?
|
|
2030
|
+
return Q(x(k, G(e, i)), ([f, d, b]) => {
|
|
2031
|
+
b && Cr() ? F(e, d - f) : p(-f);
|
|
2032
2032
|
}), Q(
|
|
2033
2033
|
x(
|
|
2034
2034
|
ue(pe(i, !1), e, S),
|
|
2035
|
-
|
|
2035
|
+
D(([f, d, b]) => !f && !b && d !== 0),
|
|
2036
2036
|
E(([f, d]) => d),
|
|
2037
2037
|
De(1)
|
|
2038
2038
|
),
|
|
@@ -2046,8 +2046,8 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2046
2046
|
), Q(
|
|
2047
2047
|
x(
|
|
2048
2048
|
a,
|
|
2049
|
-
|
|
2050
|
-
E(([f, { groupIndices: d, lastSize: b, sizeTree:
|
|
2049
|
+
G(g, h),
|
|
2050
|
+
E(([f, { groupIndices: d, lastSize: b, sizeTree: _ }, m]) => {
|
|
2051
2051
|
function u(y) {
|
|
2052
2052
|
return y * (b + m);
|
|
2053
2053
|
}
|
|
@@ -2055,21 +2055,21 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2055
2055
|
return u(f);
|
|
2056
2056
|
{
|
|
2057
2057
|
let y = 0;
|
|
2058
|
-
const
|
|
2058
|
+
const R = ct(_, 0);
|
|
2059
2059
|
let j = 0, z = 0;
|
|
2060
2060
|
for (; j < f; ) {
|
|
2061
|
-
j++, y +=
|
|
2062
|
-
let
|
|
2063
|
-
j +
|
|
2061
|
+
j++, y += R;
|
|
2062
|
+
let A = d.length === z + 1 ? 1 / 0 : d[z + 1] - d[z] - 1;
|
|
2063
|
+
j + A > f && (y -= R, A = f - j + 1), j += A, y += u(A), z++;
|
|
2064
2064
|
}
|
|
2065
2065
|
return y;
|
|
2066
2066
|
}
|
|
2067
2067
|
})
|
|
2068
2068
|
),
|
|
2069
2069
|
(f) => {
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2070
|
+
F(e, f), requestAnimationFrame(() => {
|
|
2071
|
+
F(t, { top: f }), requestAnimationFrame(() => {
|
|
2072
|
+
F(e, 0), F(S, !1);
|
|
2073
2073
|
});
|
|
2074
2074
|
});
|
|
2075
2075
|
}
|
|
@@ -2135,13 +2135,13 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2135
2135
|
k,
|
|
2136
2136
|
p,
|
|
2137
2137
|
f,
|
|
2138
|
-
{ listState: d, topItemsIndexes: b, ...
|
|
2138
|
+
{ listState: d, topItemsIndexes: b, ..._ },
|
|
2139
2139
|
{ scrollToIndex: m },
|
|
2140
2140
|
u,
|
|
2141
2141
|
{ topItemCount: y },
|
|
2142
|
-
{ groupCounts:
|
|
2142
|
+
{ groupCounts: R },
|
|
2143
2143
|
j
|
|
2144
|
-
]) => (M(
|
|
2144
|
+
]) => (M(_.rangeChanged, j.scrollSeekRangeChanged), M(
|
|
2145
2145
|
x(
|
|
2146
2146
|
j.windowViewportRect,
|
|
2147
2147
|
E((z) => z.visibleHeight)
|
|
@@ -2153,7 +2153,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2153
2153
|
firstItemIndex: o,
|
|
2154
2154
|
fixedItemHeight: n,
|
|
2155
2155
|
gap: r,
|
|
2156
|
-
groupCounts:
|
|
2156
|
+
groupCounts: R,
|
|
2157
2157
|
initialItemFinalLocationReached: g,
|
|
2158
2158
|
initialTopMostItemIndex: v,
|
|
2159
2159
|
scrolledToInitialItem: S,
|
|
@@ -2171,7 +2171,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2171
2171
|
statefulTotalCount: a,
|
|
2172
2172
|
trackItemSizes: w,
|
|
2173
2173
|
// exported from stateFlagsSystem
|
|
2174
|
-
...
|
|
2174
|
+
..._,
|
|
2175
2175
|
// the bag of IO from featureGroup1System
|
|
2176
2176
|
...j,
|
|
2177
2177
|
...k,
|
|
@@ -2206,47 +2206,47 @@ const vt = typeof document < "u" ? L.useLayoutEffect : L.useEffect;
|
|
|
2206
2206
|
function cn(e, t, o) {
|
|
2207
2207
|
const n = Object.keys(t.required || {}), r = Object.keys(t.optional || {}), i = Object.keys(t.methods || {}), s = Object.keys(t.events || {}), l = L.createContext({});
|
|
2208
2208
|
function c(p, f) {
|
|
2209
|
-
p.propsReady &&
|
|
2209
|
+
p.propsReady && F(p.propsReady, !1);
|
|
2210
2210
|
for (const d of n) {
|
|
2211
2211
|
const b = p[t.required[d]];
|
|
2212
|
-
|
|
2212
|
+
F(b, f[d]);
|
|
2213
2213
|
}
|
|
2214
2214
|
for (const d of r)
|
|
2215
2215
|
if (d in f) {
|
|
2216
2216
|
const b = p[t.optional[d]];
|
|
2217
|
-
|
|
2217
|
+
F(b, f[d]);
|
|
2218
2218
|
}
|
|
2219
|
-
p.propsReady &&
|
|
2219
|
+
p.propsReady && F(p.propsReady, !0);
|
|
2220
2220
|
}
|
|
2221
2221
|
function a(p) {
|
|
2222
2222
|
return i.reduce((f, d) => (f[d] = (b) => {
|
|
2223
|
-
const
|
|
2224
|
-
|
|
2223
|
+
const _ = p[t.methods[d]];
|
|
2224
|
+
F(_, b);
|
|
2225
2225
|
}, f), {});
|
|
2226
2226
|
}
|
|
2227
2227
|
function h(p) {
|
|
2228
2228
|
return s.reduce((f, d) => (f[d] = Dn(p[t.events[d]]), f), {});
|
|
2229
2229
|
}
|
|
2230
2230
|
const w = L.forwardRef((p, f) => {
|
|
2231
|
-
const { children: d, ...b } = p, [
|
|
2231
|
+
const { children: d, ...b } = p, [_] = L.useState(() => _t(Fn(e), (y) => {
|
|
2232
2232
|
c(y, b);
|
|
2233
|
-
})), [m] = L.useState(xo(h,
|
|
2233
|
+
})), [m] = L.useState(xo(h, _));
|
|
2234
2234
|
vt(() => {
|
|
2235
2235
|
for (const y of s)
|
|
2236
2236
|
y in b && Q(m[y], b[y]);
|
|
2237
2237
|
return () => {
|
|
2238
2238
|
Object.values(m).map(Kt);
|
|
2239
2239
|
};
|
|
2240
|
-
}, [b, m,
|
|
2241
|
-
c(
|
|
2242
|
-
}), L.useImperativeHandle(f, po(a(
|
|
2240
|
+
}, [b, m, _]), vt(() => {
|
|
2241
|
+
c(_, b);
|
|
2242
|
+
}), L.useImperativeHandle(f, po(a(_)));
|
|
2243
2243
|
const u = o;
|
|
2244
|
-
return /* @__PURE__ */ I.jsx(l.Provider, { value:
|
|
2244
|
+
return /* @__PURE__ */ I.jsx(l.Provider, { value: _, children: o ? /* @__PURE__ */ I.jsx(u, { ...Hr([...n, ...r, ...s], b), children: d }) : d });
|
|
2245
2245
|
}), g = (p) => {
|
|
2246
2246
|
const f = L.useContext(l);
|
|
2247
2247
|
return L.useCallback(
|
|
2248
2248
|
(d) => {
|
|
2249
|
-
|
|
2249
|
+
F(f[p], d);
|
|
2250
2250
|
},
|
|
2251
2251
|
[f, p]
|
|
2252
2252
|
);
|
|
@@ -2263,8 +2263,8 @@ function cn(e, t, o) {
|
|
|
2263
2263
|
}, S = (p) => {
|
|
2264
2264
|
const f = L.useContext(l)[p], [d, b] = L.useState(xo(ce, f));
|
|
2265
2265
|
return vt(
|
|
2266
|
-
() => Q(f, (
|
|
2267
|
-
|
|
2266
|
+
() => Q(f, (_) => {
|
|
2267
|
+
_ !== d && b(po(_));
|
|
2268
2268
|
}),
|
|
2269
2269
|
[f, d]
|
|
2270
2270
|
), d;
|
|
@@ -2320,9 +2320,9 @@ function mn(e, t, o, n = mt, r, i) {
|
|
|
2320
2320
|
const S = g.behavior === "smooth";
|
|
2321
2321
|
let k, p, f;
|
|
2322
2322
|
Nt(v) ? (p = Math.max(
|
|
2323
|
-
|
|
2323
|
+
Fe(v.document.documentElement, i ? "width" : "height"),
|
|
2324
2324
|
i ? v.document.documentElement.scrollWidth : v.document.documentElement.scrollHeight
|
|
2325
|
-
), k = i ? v.innerWidth : v.innerHeight, f = i ? window.scrollX : window.scrollY) : (p = v[i ? "scrollWidth" : "scrollHeight"], k =
|
|
2325
|
+
), k = i ? v.innerWidth : v.innerHeight, f = i ? window.scrollX : window.scrollY) : (p = v[i ? "scrollWidth" : "scrollHeight"], k = Fe(v, i ? "width" : "height"), f = v[i ? "scrollLeft" : "scrollTop"]);
|
|
2326
2326
|
const d = p - k;
|
|
2327
2327
|
if (g.top = Math.ceil(Math.max(Math.min(d, g.top), 0)), en(k, p) || g.top === f) {
|
|
2328
2328
|
e({ scrollHeight: p, scrollTop: f, viewportHeight: k }), S && t(!0);
|
|
@@ -2346,7 +2346,7 @@ const At = "-webkit-sticky", ko = "sticky", oo = ln(() => {
|
|
|
2346
2346
|
function fn(e) {
|
|
2347
2347
|
return e;
|
|
2348
2348
|
}
|
|
2349
|
-
const
|
|
2349
|
+
const Rr = /* @__PURE__ */ ee(() => {
|
|
2350
2350
|
const e = H((l) => `Item ${l}`), t = H((l) => `Group ${l}`), o = H({}), n = H(fn), r = H("div"), i = H(mt), s = (l, c = null) => pe(
|
|
2351
2351
|
x(
|
|
2352
2352
|
o,
|
|
@@ -2372,10 +2372,10 @@ const _r = /* @__PURE__ */ ee(() => {
|
|
|
2372
2372
|
ScrollSeekPlaceholder: s("ScrollSeekPlaceholder"),
|
|
2373
2373
|
TopItemListComponent: s("TopItemList")
|
|
2374
2374
|
};
|
|
2375
|
-
}),
|
|
2375
|
+
}), _r = /* @__PURE__ */ ee(
|
|
2376
2376
|
([e, t]) => ({ ...e, ...t }),
|
|
2377
|
-
se(br,
|
|
2378
|
-
), Er = ({ height: e }) => /* @__PURE__ */ I.jsx("div", { style: { height: e } }), zr = { overflowAnchor: "none", position: oo(), zIndex: 1 }, hn = { overflowAnchor: "none" }, Br = { ...hn, display: "inline-block", height: "100%" },
|
|
2377
|
+
se(br, Rr)
|
|
2378
|
+
), Er = ({ height: e }) => /* @__PURE__ */ I.jsx("div", { style: { height: e } }), zr = { overflowAnchor: "none", position: oo(), zIndex: 1 }, hn = { overflowAnchor: "none" }, Br = { ...hn, display: "inline-block", height: "100%" }, Ro = /* @__PURE__ */ L.memo(function({ showTopList: e = !1 }) {
|
|
2379
2379
|
const t = V("listState"), o = ze("sizeRanges"), n = V("useWindowScroll"), r = V("customScrollParent"), i = ze("windowScrollContainerState"), s = ze("scrollContainerState"), l = r || n ? i : s, c = V("itemContent"), a = V("context"), h = V("groupContent"), w = V("trackItemSizes"), g = V("itemSize"), v = V("log"), S = ze("gap"), k = V("horizontalDirection"), { callbackRef: p } = qn(
|
|
2380
2380
|
o,
|
|
2381
2381
|
g,
|
|
@@ -2390,17 +2390,17 @@ const _r = /* @__PURE__ */ ee(() => {
|
|
|
2390
2390
|
no("deviation", (B) => {
|
|
2391
2391
|
f !== B && d(B);
|
|
2392
2392
|
});
|
|
2393
|
-
const b = V("EmptyPlaceholder"),
|
|
2393
|
+
const b = V("EmptyPlaceholder"), _ = V("ScrollSeekPlaceholder") || Er, m = V("ListComponent"), u = V("ItemComponent"), y = V("GroupComponent"), R = V("computeItemKey"), j = V("isSeeking"), z = V("groupIndices").length > 0, A = V("alignToBottom"), $ = V("initialItemFinalLocationReached"), te = e ? {} : {
|
|
2394
2394
|
boxSizing: "border-box",
|
|
2395
2395
|
...k ? {
|
|
2396
2396
|
display: "inline-block",
|
|
2397
2397
|
height: "100%",
|
|
2398
|
-
marginLeft: f !== 0 ? f :
|
|
2398
|
+
marginLeft: f !== 0 ? f : A ? "auto" : 0,
|
|
2399
2399
|
paddingLeft: t.offsetTop,
|
|
2400
2400
|
paddingRight: t.offsetBottom,
|
|
2401
2401
|
whiteSpace: "nowrap"
|
|
2402
2402
|
} : {
|
|
2403
|
-
marginTop: f !== 0 ? f :
|
|
2403
|
+
marginTop: f !== 0 ? f : A ? "auto" : 0,
|
|
2404
2404
|
paddingBottom: t.offsetBottom,
|
|
2405
2405
|
paddingTop: t.offsetTop
|
|
2406
2406
|
},
|
|
@@ -2414,11 +2414,11 @@ const _r = /* @__PURE__ */ ee(() => {
|
|
|
2414
2414
|
ref: p,
|
|
2415
2415
|
style: te,
|
|
2416
2416
|
children: (e ? t.topItems : t.items).map((B) => {
|
|
2417
|
-
const
|
|
2417
|
+
const Y = B.originalIndex, X = R(Y + t.firstItemIndex, B.data, a);
|
|
2418
2418
|
return j ? /* @__PURE__ */ Tt(
|
|
2419
|
-
|
|
2419
|
+
_,
|
|
2420
2420
|
{
|
|
2421
|
-
...ge(
|
|
2421
|
+
...ge(_, a),
|
|
2422
2422
|
height: B.size,
|
|
2423
2423
|
index: B.index,
|
|
2424
2424
|
key: X,
|
|
@@ -2429,7 +2429,7 @@ const _r = /* @__PURE__ */ ee(() => {
|
|
|
2429
2429
|
y,
|
|
2430
2430
|
{
|
|
2431
2431
|
...ge(y, a),
|
|
2432
|
-
"data-index":
|
|
2432
|
+
"data-index": Y,
|
|
2433
2433
|
"data-item-index": B.index,
|
|
2434
2434
|
"data-known-size": B.size,
|
|
2435
2435
|
key: X,
|
|
@@ -2441,7 +2441,7 @@ const _r = /* @__PURE__ */ ee(() => {
|
|
|
2441
2441
|
{
|
|
2442
2442
|
...ge(u, a),
|
|
2443
2443
|
...Wr(u, B.data),
|
|
2444
|
-
"data-index":
|
|
2444
|
+
"data-index": Y,
|
|
2445
2445
|
"data-item-group-index": B.groupIndex,
|
|
2446
2446
|
"data-item-index": B.index,
|
|
2447
2447
|
"data-known-size": B.size,
|
|
@@ -2486,7 +2486,7 @@ const Nr = /* @__PURE__ */ L.memo(function() {
|
|
|
2486
2486
|
const e = V("HeaderComponent"), t = ze("headerHeight"), o = V("HeaderFooterTag"), n = Xe(
|
|
2487
2487
|
L.useMemo(
|
|
2488
2488
|
() => (i) => {
|
|
2489
|
-
t(
|
|
2489
|
+
t(Fe(i, "height"));
|
|
2490
2490
|
},
|
|
2491
2491
|
[t]
|
|
2492
2492
|
),
|
|
@@ -2498,7 +2498,7 @@ const Nr = /* @__PURE__ */ L.memo(function() {
|
|
|
2498
2498
|
const e = V("FooterComponent"), t = ze("footerHeight"), o = V("HeaderFooterTag"), n = Xe(
|
|
2499
2499
|
L.useMemo(
|
|
2500
2500
|
() => (i) => {
|
|
2501
|
-
t(
|
|
2501
|
+
t(Fe(i, "height"));
|
|
2502
2502
|
},
|
|
2503
2503
|
[t]
|
|
2504
2504
|
),
|
|
@@ -2561,7 +2561,7 @@ function pn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
|
2561
2561
|
}
|
|
2562
2562
|
const Or = ({ children: e }) => {
|
|
2563
2563
|
const t = L.useContext(an), o = ze("viewportHeight"), n = ze("fixedItemHeight"), r = V("alignToBottom"), i = V("horizontalDirection"), s = L.useMemo(
|
|
2564
|
-
() => Po(o, (c) =>
|
|
2564
|
+
() => Po(o, (c) => Fe(c, i ? "width" : "height")),
|
|
2565
2565
|
[o, i]
|
|
2566
2566
|
), l = Xe(s, !0, V("skipAnimationFrameInResizeObserver"));
|
|
2567
2567
|
return L.useEffect(() => {
|
|
@@ -2581,21 +2581,21 @@ const Or = ({ children: e }) => {
|
|
|
2581
2581
|
return /* @__PURE__ */ I.jsx(t, { style: n, ...ge(t, r), children: e });
|
|
2582
2582
|
}, Vr = /* @__PURE__ */ L.memo(function(e) {
|
|
2583
2583
|
const t = V("useWindowScroll"), o = V("topItemsIndexes").length > 0, n = V("customScrollParent"), r = V("context");
|
|
2584
|
-
return /* @__PURE__ */ I.jsxs(n || t ? $r :
|
|
2585
|
-
o && /* @__PURE__ */ I.jsx(Dr, { children: /* @__PURE__ */ I.jsx(
|
|
2584
|
+
return /* @__PURE__ */ I.jsxs(n || t ? $r : Gr, { ...e, context: r, children: [
|
|
2585
|
+
o && /* @__PURE__ */ I.jsx(Dr, { children: /* @__PURE__ */ I.jsx(Ro, { showTopList: !0 }) }),
|
|
2586
2586
|
/* @__PURE__ */ I.jsxs(n || t ? Pr : Or, { children: [
|
|
2587
2587
|
/* @__PURE__ */ I.jsx(Nr, {}),
|
|
2588
|
-
/* @__PURE__ */ I.jsx(
|
|
2588
|
+
/* @__PURE__ */ I.jsx(Ro, {}),
|
|
2589
2589
|
/* @__PURE__ */ I.jsx(Ar, {})
|
|
2590
2590
|
] })
|
|
2591
2591
|
] });
|
|
2592
2592
|
}), {
|
|
2593
|
-
Component:
|
|
2593
|
+
Component: Fr,
|
|
2594
2594
|
useEmitter: no,
|
|
2595
2595
|
useEmitterValue: V,
|
|
2596
2596
|
usePublisher: ze
|
|
2597
2597
|
} = /* @__PURE__ */ cn(
|
|
2598
|
-
|
|
2598
|
+
_r,
|
|
2599
2599
|
{
|
|
2600
2600
|
required: {},
|
|
2601
2601
|
optional: {
|
|
@@ -2653,9 +2653,9 @@ const Or = ({ children: e }) => {
|
|
|
2653
2653
|
}
|
|
2654
2654
|
},
|
|
2655
2655
|
Vr
|
|
2656
|
-
),
|
|
2656
|
+
), Gr = /* @__PURE__ */ gn({ useEmitter: no, useEmitterValue: V, usePublisher: ze }), $r = /* @__PURE__ */ pn({ useEmitter: no, useEmitterValue: V, usePublisher: ze }), qr = Fr;
|
|
2657
2657
|
oo();
|
|
2658
|
-
const
|
|
2658
|
+
const _o = {
|
|
2659
2659
|
bottom: 0,
|
|
2660
2660
|
itemHeight: 0,
|
|
2661
2661
|
items: [],
|
|
@@ -2694,48 +2694,48 @@ const Xr = /* @__PURE__ */ ee(
|
|
|
2694
2694
|
g,
|
|
2695
2695
|
v,
|
|
2696
2696
|
{ didMount: S, propsReady: k },
|
|
2697
|
-
{ customScrollParent: p, useWindowScroll: f, windowScrollContainerState: d, windowScrollTo: b, windowViewportRect:
|
|
2697
|
+
{ customScrollParent: p, useWindowScroll: f, windowScrollContainerState: d, windowScrollTo: b, windowViewportRect: _ },
|
|
2698
2698
|
m
|
|
2699
2699
|
]) => {
|
|
2700
|
-
const u = H(0), y = H(0),
|
|
2700
|
+
const u = H(0), y = H(0), R = H(_o), j = H({ height: 0, width: 0 }), z = H({ height: 0, width: 0 }), A = U(), $ = U(), te = H(0), B = H(null), Y = H({ column: 0, row: 0 }), X = U(), ve = U(), Te = H(!1), we = H(0), he = H(!0), fe = H(!1), Le = H(!1);
|
|
2701
2701
|
Q(
|
|
2702
2702
|
x(
|
|
2703
2703
|
S,
|
|
2704
|
-
|
|
2705
|
-
|
|
2704
|
+
G(we),
|
|
2705
|
+
D(([T, P]) => !!P)
|
|
2706
2706
|
),
|
|
2707
2707
|
() => {
|
|
2708
|
-
|
|
2708
|
+
F(he, !1);
|
|
2709
2709
|
}
|
|
2710
2710
|
), Q(
|
|
2711
2711
|
x(
|
|
2712
2712
|
ue(S, he, z, j, we, fe),
|
|
2713
|
-
|
|
2713
|
+
D(([T, P, oe, de, , C]) => T && !P && oe.height !== 0 && de.height !== 0 && !C)
|
|
2714
2714
|
),
|
|
2715
2715
|
([, , , , T]) => {
|
|
2716
|
-
|
|
2717
|
-
|
|
2716
|
+
F(fe, !0), Jt(1, () => {
|
|
2717
|
+
F(A, T);
|
|
2718
2718
|
}), Me(x(a), () => {
|
|
2719
|
-
|
|
2719
|
+
F(t, [0, 0]), F(he, !0);
|
|
2720
2720
|
});
|
|
2721
2721
|
}
|
|
2722
2722
|
), M(
|
|
2723
2723
|
x(
|
|
2724
2724
|
ve,
|
|
2725
|
-
|
|
2725
|
+
D((T) => T != null && T.scrollTop > 0),
|
|
2726
2726
|
Ne(0)
|
|
2727
2727
|
),
|
|
2728
2728
|
y
|
|
2729
2729
|
), Q(
|
|
2730
2730
|
x(
|
|
2731
2731
|
S,
|
|
2732
|
-
|
|
2733
|
-
|
|
2732
|
+
G(ve),
|
|
2733
|
+
D(([, T]) => T != null)
|
|
2734
2734
|
),
|
|
2735
2735
|
([, T]) => {
|
|
2736
|
-
T && (
|
|
2737
|
-
|
|
2738
|
-
}),
|
|
2736
|
+
T && (F(j, T.viewport), F(z, T.item), F(Y, T.gap), T.scrollTop > 0 && (F(Te, !0), Me(x(a, Ye(1)), (P) => {
|
|
2737
|
+
F(Te, !1);
|
|
2738
|
+
}), F(c, { top: T.scrollTop })));
|
|
2739
2739
|
}
|
|
2740
2740
|
), M(
|
|
2741
2741
|
x(
|
|
@@ -2746,14 +2746,14 @@ const Xr = /* @__PURE__ */ ee(
|
|
|
2746
2746
|
), M(
|
|
2747
2747
|
x(
|
|
2748
2748
|
ue(
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2749
|
+
O(j, It),
|
|
2750
|
+
O(z, It),
|
|
2751
|
+
O(Y, (T, P) => T && T.column === P.column && T.row === P.row),
|
|
2752
|
+
O(a)
|
|
2753
2753
|
),
|
|
2754
|
-
E(([T,
|
|
2754
|
+
E(([T, P, oe, de]) => ({
|
|
2755
2755
|
gap: oe,
|
|
2756
|
-
item:
|
|
2756
|
+
item: P,
|
|
2757
2757
|
scrollTop: de,
|
|
2758
2758
|
viewport: T
|
|
2759
2759
|
}))
|
|
@@ -2762,60 +2762,60 @@ const Xr = /* @__PURE__ */ ee(
|
|
|
2762
2762
|
), M(
|
|
2763
2763
|
x(
|
|
2764
2764
|
ue(
|
|
2765
|
-
|
|
2765
|
+
O(u),
|
|
2766
2766
|
n,
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2767
|
+
O(Y, Yr),
|
|
2768
|
+
O(z, It),
|
|
2769
|
+
O(j, It),
|
|
2770
|
+
O(B),
|
|
2771
|
+
O(y),
|
|
2772
|
+
O(Te),
|
|
2773
|
+
O(he),
|
|
2774
|
+
O(we)
|
|
2775
2775
|
),
|
|
2776
|
-
|
|
2776
|
+
D(([, , , , , , , T]) => !T),
|
|
2777
2777
|
E(
|
|
2778
2778
|
([
|
|
2779
2779
|
T,
|
|
2780
|
-
[
|
|
2780
|
+
[P, oe],
|
|
2781
2781
|
de,
|
|
2782
2782
|
C,
|
|
2783
2783
|
W,
|
|
2784
|
-
|
|
2785
|
-
|
|
2784
|
+
K,
|
|
2785
|
+
N,
|
|
2786
2786
|
,
|
|
2787
2787
|
q,
|
|
2788
2788
|
J
|
|
2789
2789
|
]) => {
|
|
2790
|
-
const { column:
|
|
2791
|
-
if (
|
|
2792
|
-
return
|
|
2790
|
+
const { column: Z, row: ae } = de, { height: Se, width: Pe } = C, { width: _e } = W;
|
|
2791
|
+
if (N === 0 && (T === 0 || _e === 0))
|
|
2792
|
+
return _o;
|
|
2793
2793
|
if (Pe === 0) {
|
|
2794
|
-
const co = Qt(J, T), Tn = co + Math.max(
|
|
2795
|
-
return Kr(Bo(co, Tn,
|
|
2794
|
+
const co = Qt(J, T), Tn = co + Math.max(N - 1, 0);
|
|
2795
|
+
return Kr(Bo(co, Tn, K));
|
|
2796
2796
|
}
|
|
2797
|
-
const Ee = xn(
|
|
2797
|
+
const Ee = xn(_e, Pe, Z);
|
|
2798
2798
|
let Je, Ue;
|
|
2799
|
-
q ?
|
|
2800
|
-
const ro = Bo(Je, Ue,
|
|
2799
|
+
q ? P === 0 && oe === 0 && N > 0 ? (Je = 0, Ue = N - 1) : (Je = Ee * kt((P + ae) / (Se + ae)), Ue = Ee * Eo((oe + ae) / (Se + ae)) - 1, Ue = Ot(T - 1, st(Ue, Ee - 1)), Je = Ot(Ue, st(0, Je))) : (Je = 0, Ue = -1);
|
|
2800
|
+
const ro = Bo(Je, Ue, K), { bottom: io, top: so } = Lo(W, de, C, ro), lo = Eo(T / Ee), In = lo * Se + (lo - 1) * ae - io;
|
|
2801
2801
|
return { bottom: io, itemHeight: Se, items: ro, itemWidth: Pe, offsetBottom: In, offsetTop: so, top: so };
|
|
2802
2802
|
}
|
|
2803
2803
|
)
|
|
2804
2804
|
),
|
|
2805
|
-
|
|
2805
|
+
R
|
|
2806
2806
|
), M(
|
|
2807
2807
|
x(
|
|
2808
2808
|
B,
|
|
2809
|
-
|
|
2809
|
+
D((T) => T !== null),
|
|
2810
2810
|
E((T) => T.length)
|
|
2811
2811
|
),
|
|
2812
2812
|
u
|
|
2813
2813
|
), M(
|
|
2814
2814
|
x(
|
|
2815
|
-
ue(j, z,
|
|
2816
|
-
|
|
2817
|
-
E(([T,
|
|
2818
|
-
const { bottom: C, top: W } = Lo(T, de,
|
|
2815
|
+
ue(j, z, R, Y),
|
|
2816
|
+
D(([T, P, { items: oe }]) => oe.length > 0 && P.height !== 0 && T.height !== 0),
|
|
2817
|
+
E(([T, P, { items: oe }, de]) => {
|
|
2818
|
+
const { bottom: C, top: W } = Lo(T, de, P, oe);
|
|
2819
2819
|
return [W, C];
|
|
2820
2820
|
}),
|
|
2821
2821
|
ie(at)
|
|
@@ -2826,35 +2826,35 @@ const Xr = /* @__PURE__ */ ee(
|
|
|
2826
2826
|
M(
|
|
2827
2827
|
x(
|
|
2828
2828
|
a,
|
|
2829
|
-
|
|
2830
|
-
E(([T,
|
|
2829
|
+
G(Ce),
|
|
2830
|
+
E(([T, P]) => P || T !== 0)
|
|
2831
2831
|
),
|
|
2832
2832
|
Ce
|
|
2833
2833
|
);
|
|
2834
2834
|
const Ve = He(
|
|
2835
2835
|
x(
|
|
2836
|
-
ue(
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
const de = T.items[T.items.length - 1].index ===
|
|
2841
|
-
return (oe || T.bottom > 0 && T.itemHeight > 0 && T.offsetBottom === 0 && T.items.length ===
|
|
2836
|
+
ue(R, u),
|
|
2837
|
+
D(([{ items: T }]) => T.length > 0),
|
|
2838
|
+
G(Ce),
|
|
2839
|
+
D(([[T, P], oe]) => {
|
|
2840
|
+
const de = T.items[T.items.length - 1].index === P - 1;
|
|
2841
|
+
return (oe || T.bottom > 0 && T.itemHeight > 0 && T.offsetBottom === 0 && T.items.length === P) && de;
|
|
2842
2842
|
}),
|
|
2843
2843
|
E(([[, T]]) => T - 1),
|
|
2844
2844
|
ie()
|
|
2845
2845
|
)
|
|
2846
2846
|
), je = He(
|
|
2847
2847
|
x(
|
|
2848
|
-
|
|
2849
|
-
|
|
2848
|
+
O(R),
|
|
2849
|
+
D(({ items: T }) => T.length > 0 && T[0].index === 0),
|
|
2850
2850
|
Ne(0),
|
|
2851
2851
|
ie()
|
|
2852
2852
|
)
|
|
2853
2853
|
), ke = He(
|
|
2854
2854
|
x(
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2855
|
+
O(R),
|
|
2856
|
+
G(Te),
|
|
2857
|
+
D(([{ items: T }, P]) => T.length > 0 && !P),
|
|
2858
2858
|
E(([{ items: T }]) => ({
|
|
2859
2859
|
endIndex: T[T.length - 1].index,
|
|
2860
2860
|
startIndex: T[0].index
|
|
@@ -2865,28 +2865,28 @@ const Xr = /* @__PURE__ */ ee(
|
|
|
2865
2865
|
);
|
|
2866
2866
|
M(ke, v.scrollSeekRangeChanged), M(
|
|
2867
2867
|
x(
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
E(([T,
|
|
2871
|
-
const W = Qo(T), { align:
|
|
2868
|
+
A,
|
|
2869
|
+
G(j, z, u, Y),
|
|
2870
|
+
E(([T, P, oe, de, C]) => {
|
|
2871
|
+
const W = Qo(T), { align: K, behavior: N, offset: q } = W;
|
|
2872
2872
|
let J = W.index;
|
|
2873
2873
|
J === "LAST" && (J = de - 1), J = st(0, J, Ot(de - 1, J));
|
|
2874
|
-
let
|
|
2875
|
-
return
|
|
2874
|
+
let Z = qt(P, C, oe, J);
|
|
2875
|
+
return K === "end" ? Z = zo(Z - P.height + oe.height) : K === "center" && (Z = zo(Z - P.height / 2 + oe.height / 2)), q && (Z += q), { behavior: N, top: Z };
|
|
2876
2876
|
})
|
|
2877
2877
|
),
|
|
2878
2878
|
c
|
|
2879
2879
|
);
|
|
2880
|
-
const
|
|
2880
|
+
const Re = pe(
|
|
2881
2881
|
x(
|
|
2882
|
-
|
|
2882
|
+
R,
|
|
2883
2883
|
E((T) => T.offsetBottom + T.bottom)
|
|
2884
2884
|
),
|
|
2885
2885
|
0
|
|
2886
2886
|
);
|
|
2887
2887
|
return M(
|
|
2888
2888
|
x(
|
|
2889
|
-
|
|
2889
|
+
_,
|
|
2890
2890
|
E((T) => ({ height: T.visibleHeight, width: T.visibleWidth }))
|
|
2891
2891
|
),
|
|
2892
2892
|
j
|
|
@@ -2896,7 +2896,7 @@ const Xr = /* @__PURE__ */ ee(
|
|
|
2896
2896
|
data: B,
|
|
2897
2897
|
deviation: te,
|
|
2898
2898
|
footerHeight: r,
|
|
2899
|
-
gap:
|
|
2899
|
+
gap: Y,
|
|
2900
2900
|
headerHeight: i,
|
|
2901
2901
|
increaseViewportBy: e,
|
|
2902
2902
|
initialItemCount: y,
|
|
@@ -2907,7 +2907,7 @@ const Xr = /* @__PURE__ */ ee(
|
|
|
2907
2907
|
scrollContainerState: l,
|
|
2908
2908
|
scrollHeight: $,
|
|
2909
2909
|
scrollTo: c,
|
|
2910
|
-
scrollToIndex:
|
|
2910
|
+
scrollToIndex: A,
|
|
2911
2911
|
scrollTop: a,
|
|
2912
2912
|
smoothScrollTargetReached: h,
|
|
2913
2913
|
totalCount: u,
|
|
@@ -2915,13 +2915,13 @@ const Xr = /* @__PURE__ */ ee(
|
|
|
2915
2915
|
viewportDimensions: j,
|
|
2916
2916
|
windowScrollContainerState: d,
|
|
2917
2917
|
windowScrollTo: b,
|
|
2918
|
-
windowViewportRect:
|
|
2918
|
+
windowViewportRect: _,
|
|
2919
2919
|
...v,
|
|
2920
2920
|
// output
|
|
2921
|
-
gridState:
|
|
2921
|
+
gridState: R,
|
|
2922
2922
|
horizontalDirection: Le,
|
|
2923
2923
|
initialTopMostItemIndex: we,
|
|
2924
|
-
totalListHeight:
|
|
2924
|
+
totalListHeight: Re,
|
|
2925
2925
|
...g,
|
|
2926
2926
|
endReached: Ve,
|
|
2927
2927
|
propsReady: k,
|
|
@@ -2957,7 +2957,7 @@ const Zr = /* @__PURE__ */ ee(() => {
|
|
|
2957
2957
|
),
|
|
2958
2958
|
g
|
|
2959
2959
|
), a = H(!1), h = H(!1);
|
|
2960
|
-
return M(
|
|
2960
|
+
return M(O(h), a), {
|
|
2961
2961
|
components: t,
|
|
2962
2962
|
computeItemKey: i,
|
|
2963
2963
|
context: o,
|
|
@@ -2986,8 +2986,8 @@ const Zr = /* @__PURE__ */ ee(() => {
|
|
|
2986
2986
|
s(d);
|
|
2987
2987
|
const b = f.firstChild;
|
|
2988
2988
|
if (b) {
|
|
2989
|
-
const { height:
|
|
2990
|
-
w({ height:
|
|
2989
|
+
const { height: _, width: m } = b.getBoundingClientRect();
|
|
2990
|
+
w({ height: _, width: m });
|
|
2991
2991
|
}
|
|
2992
2992
|
g({
|
|
2993
2993
|
column: jo("column-gap", getComputedStyle(f).columnGap, v),
|
|
@@ -3037,7 +3037,7 @@ const Zr = /* @__PURE__ */ ee(() => {
|
|
|
3037
3037
|
const e = re("HeaderComponent"), t = Be("headerHeight"), o = re("headerFooterTag"), n = Xe(
|
|
3038
3038
|
L.useMemo(
|
|
3039
3039
|
() => (i) => {
|
|
3040
|
-
t(
|
|
3040
|
+
t(Fe(i, "height"));
|
|
3041
3041
|
},
|
|
3042
3042
|
[t]
|
|
3043
3043
|
),
|
|
@@ -3049,7 +3049,7 @@ const Zr = /* @__PURE__ */ ee(() => {
|
|
|
3049
3049
|
const e = re("FooterComponent"), t = Be("footerHeight"), o = re("headerFooterTag"), n = Xe(
|
|
3050
3050
|
L.useMemo(
|
|
3051
3051
|
() => (i) => {
|
|
3052
|
-
t(
|
|
3052
|
+
t(Fe(i, "height"));
|
|
3053
3053
|
},
|
|
3054
3054
|
[t]
|
|
3055
3055
|
),
|
|
@@ -3133,7 +3133,7 @@ const Zr = /* @__PURE__ */ ee(() => {
|
|
|
3133
3133
|
function jo(e, t, o) {
|
|
3134
3134
|
return t !== "normal" && !(t != null && t.endsWith("px")) && o(`${e} was not resolved to pixel value correctly`, t, Ie.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
3135
3135
|
}
|
|
3136
|
-
const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai = "_modalHeader_1f0fd_18", ui = "_modalLeft_1f0fd_38", di = "_buttonGroup_1f0fd_45", mi = "_iosIcon_1f0fd_56", fi = "_modalLoader_1f0fd_86", hi = "_dash_1f0fd_90", gi = "_searchWrapper_1f0fd_95", pi = "_chevronIcons_1f0fd_101", xi = "_logInput_1f0fd_123", vi = "_searchResult_1f0fd_130", Ii = "_loadingWrap_1f0fd_140", Ti = "_modalRight_1f0fd_151", wi = "_inputsWrapper_1f0fd_155", Ci = "_search_1f0fd_95", Si = "_cliCommand_1f0fd_172", yi = "_buttonsWrapper_1f0fd_198", bi = "_downloadIconBtn_1f0fd_204", Hi = "_downloadIconBtn__disabled_1f0fd_228", ki = "_copyIconBtn_1f0fd_238",
|
|
3136
|
+
const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai = "_modalHeader_1f0fd_18", ui = "_modalLeft_1f0fd_38", di = "_buttonGroup_1f0fd_45", mi = "_iosIcon_1f0fd_56", fi = "_modalLoader_1f0fd_86", hi = "_dash_1f0fd_90", gi = "_searchWrapper_1f0fd_95", pi = "_chevronIcons_1f0fd_101", xi = "_logInput_1f0fd_123", vi = "_searchResult_1f0fd_130", Ii = "_loadingWrap_1f0fd_140", Ti = "_modalRight_1f0fd_151", wi = "_inputsWrapper_1f0fd_155", Ci = "_search_1f0fd_95", Si = "_cliCommand_1f0fd_172", yi = "_buttonsWrapper_1f0fd_198", bi = "_downloadIconBtn_1f0fd_204", Hi = "_downloadIconBtn__disabled_1f0fd_228", ki = "_copyIconBtn_1f0fd_238", Ri = "_copyIconBtn__disabled_1f0fd_262", _i = "_iconGroup_1f0fd_272", Ei = "_activeIcon_1f0fd_284", le = {
|
|
3137
3137
|
realTimeLogModalStyle: li,
|
|
3138
3138
|
customHeader: ci,
|
|
3139
3139
|
modalHeader: ai,
|
|
@@ -3155,8 +3155,8 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3155
3155
|
downloadIconBtn: bi,
|
|
3156
3156
|
downloadIconBtn__disabled: Hi,
|
|
3157
3157
|
copyIconBtn: ki,
|
|
3158
|
-
copyIconBtn__disabled:
|
|
3159
|
-
iconGroup:
|
|
3158
|
+
copyIconBtn__disabled: Ri,
|
|
3159
|
+
iconGroup: _i,
|
|
3160
3160
|
activeIcon: Ei
|
|
3161
3161
|
}, Cs = {
|
|
3162
3162
|
status: (e) => ({
|
|
@@ -3206,81 +3206,79 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3206
3206
|
onFetchLogs: w,
|
|
3207
3207
|
onClearLogs: g,
|
|
3208
3208
|
withoutPermission: v
|
|
3209
|
-
} = e, S = Lt(null), [, k] = Wo(e.id), [p, f] = Qe(!1), [d, b] = Qe(), [
|
|
3210
|
-
console.log("isFirstRequestisFirstRequest", N);
|
|
3211
|
-
const $ = (C, W, Z, D) => {
|
|
3209
|
+
} = e, S = Lt(null), [, k] = Wo(e.id), [p, f] = Qe(!1), [d, b] = Qe(), [_, m] = Qe(""), [u, y] = Qe(), [R, j] = Qe(0), z = s || [], A = c === void 0, $ = (C, W, K, N) => {
|
|
3212
3210
|
const q = {
|
|
3213
3211
|
applications: [W || i[0].value],
|
|
3214
3212
|
scroll_mode: C || void 0
|
|
3215
3213
|
};
|
|
3216
|
-
w({ projectPk: o, appPk: r, applications: q.applications, scroll_mode: q.scroll_mode, withoutPermission: v }).then(
|
|
3214
|
+
console.group("getLogs called with params:"), console.log("direction", C), console.log("selectedApp", W), console.log("onSuccess", K), console.log("onError", N), console.log("body", q), console.groupEnd(), w({ projectPk: o, appPk: r, applications: q.applications, scroll_mode: q.scroll_mode, withoutPermission: v }).then(
|
|
3217
3215
|
(J) => {
|
|
3218
|
-
var
|
|
3219
|
-
if (
|
|
3220
|
-
|
|
3216
|
+
var Z, ae, Se;
|
|
3217
|
+
if (J && ((Se = (ae = (Z = Object == null ? void 0 : Object.prototype) == null ? void 0 : Z.hasOwnProperty) == null ? void 0 : ae.call) != null && Se.call(ae, J, "error"))) {
|
|
3218
|
+
console.log("onError", J, N), N && N();
|
|
3221
3219
|
return;
|
|
3222
3220
|
}
|
|
3223
|
-
|
|
3221
|
+
K && K();
|
|
3224
3222
|
}
|
|
3225
3223
|
);
|
|
3226
3224
|
};
|
|
3227
3225
|
function te(C) {
|
|
3228
3226
|
let W = 0;
|
|
3229
|
-
const
|
|
3230
|
-
return C.forEach((
|
|
3231
|
-
const J =
|
|
3232
|
-
W += J ? J.length : 0, J && (
|
|
3233
|
-
}), { total: W, filteredLogs:
|
|
3227
|
+
const K = {};
|
|
3228
|
+
return C.forEach((N, q) => {
|
|
3229
|
+
const J = N.message.match(/<mark\b[^>]*>/g);
|
|
3230
|
+
W += J ? J.length : 0, J && (K[q] = J);
|
|
3231
|
+
}), { total: W, filteredLogs: K };
|
|
3234
3232
|
}
|
|
3235
|
-
const B = bn($, n * 1e3),
|
|
3233
|
+
const B = bn($, n * 1e3), Y = Lt(), X = Lt(B), ve = (C, W, K, N) => {
|
|
3236
3234
|
if (!W || W.length < 1)
|
|
3237
3235
|
return C;
|
|
3238
3236
|
let q = C;
|
|
3239
|
-
if (
|
|
3240
|
-
if (
|
|
3241
|
-
let
|
|
3237
|
+
if (N.group)
|
|
3238
|
+
if (N.regex) {
|
|
3239
|
+
let Z;
|
|
3242
3240
|
try {
|
|
3243
|
-
|
|
3241
|
+
Z = new RegExp(
|
|
3244
3242
|
W,
|
|
3245
|
-
|
|
3243
|
+
N.caseSensitive ? "g" : "gi"
|
|
3246
3244
|
);
|
|
3247
3245
|
} catch {
|
|
3248
3246
|
return C;
|
|
3249
3247
|
}
|
|
3250
|
-
q = C.filter((ae) =>
|
|
3248
|
+
q = C.filter((ae) => Z.test(ae.message));
|
|
3251
3249
|
} else
|
|
3252
|
-
|
|
3253
|
-
(
|
|
3250
|
+
N.caseSensitive ? q = C.filter(
|
|
3251
|
+
(Z) => Z.message.includes(W)
|
|
3254
3252
|
) : q = C.filter(
|
|
3255
|
-
(
|
|
3253
|
+
(Z) => Z.message.toLocaleLowerCase().includes(W.toLocaleLowerCase())
|
|
3256
3254
|
);
|
|
3257
|
-
return q.map((
|
|
3258
|
-
...
|
|
3259
|
-
message: Te(
|
|
3255
|
+
return q.map((Z, ae) => ({
|
|
3256
|
+
...Z,
|
|
3257
|
+
message: Te(Z.message, W, N, ae) + `
|
|
3260
3258
|
`
|
|
3261
3259
|
}));
|
|
3262
|
-
}, Te = (C, W,
|
|
3260
|
+
}, Te = (C, W, K, N) => {
|
|
3263
3261
|
if (!W)
|
|
3264
3262
|
return C;
|
|
3265
3263
|
try {
|
|
3266
|
-
if (
|
|
3264
|
+
if (K.regex) {
|
|
3267
3265
|
let q;
|
|
3268
3266
|
const J = W.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
3269
3267
|
return J ? q = new RegExp(J[1], J[2]) : q = new RegExp(
|
|
3270
3268
|
W,
|
|
3271
|
-
|
|
3269
|
+
K.caseSensitive ? "g" : "gi"
|
|
3272
3270
|
), C.replace(
|
|
3273
3271
|
q,
|
|
3274
|
-
(
|
|
3272
|
+
(Z) => `<mark data-mark-index="${N}">${Z}</mark>`
|
|
3275
3273
|
);
|
|
3276
3274
|
} else {
|
|
3277
|
-
if (
|
|
3278
|
-
return C.split(W).join(`<mark data-mark-index="${
|
|
3275
|
+
if (K.caseSensitive)
|
|
3276
|
+
return C.split(W).join(`<mark data-mark-index="${N}">${W}</mark>`);
|
|
3279
3277
|
{
|
|
3280
3278
|
const q = new RegExp(W, "gi");
|
|
3281
3279
|
return C.replace(
|
|
3282
3280
|
q,
|
|
3283
|
-
(J) => `<mark data-mark-index="${
|
|
3281
|
+
(J) => `<mark data-mark-index="${N}">${J}</mark>`
|
|
3284
3282
|
);
|
|
3285
3283
|
}
|
|
3286
3284
|
}
|
|
@@ -3295,8 +3293,8 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3295
3293
|
let C = "";
|
|
3296
3294
|
z.forEach((W) => {
|
|
3297
3295
|
C += W.message;
|
|
3298
|
-
}),
|
|
3299
|
-
type:
|
|
3296
|
+
}), _n({
|
|
3297
|
+
type: Rn.SUCCESS,
|
|
3300
3298
|
message: pt("text.copied"),
|
|
3301
3299
|
closeTime: 3e3
|
|
3302
3300
|
}), navigator.clipboard.writeText(C);
|
|
@@ -3306,10 +3304,10 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3306
3304
|
[W]: !(u != null && u[W])
|
|
3307
3305
|
});
|
|
3308
3306
|
}, Ce = (C) => {
|
|
3309
|
-
var W,
|
|
3310
|
-
b(C), clearTimeout(
|
|
3311
|
-
var
|
|
3312
|
-
(
|
|
3307
|
+
var W, K;
|
|
3308
|
+
b(C), clearTimeout(Y.current), (W = X.current) == null || W.stopInterval(), (K = X.current) == null || K.fetch(void 0, C), jt(() => {
|
|
3309
|
+
var N;
|
|
3310
|
+
(N = S.current) == null || N.scrollToIndex({ index: "LAST" });
|
|
3313
3311
|
}, 300)();
|
|
3314
3312
|
}, Ve = (C) => {
|
|
3315
3313
|
C.classList.add(le.selectedMark);
|
|
@@ -3317,29 +3315,29 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3317
3315
|
Array.from(C).forEach(
|
|
3318
3316
|
(W) => W.classList.remove(le.selectedMark)
|
|
3319
3317
|
);
|
|
3320
|
-
}, ke = (C, W,
|
|
3318
|
+
}, ke = (C, W, K) => {
|
|
3321
3319
|
var J;
|
|
3322
|
-
let
|
|
3323
|
-
|
|
3320
|
+
let N = C - 1;
|
|
3321
|
+
N < 1 && (N = W), j(N);
|
|
3324
3322
|
let q = 0;
|
|
3325
|
-
for (const
|
|
3326
|
-
const ae = Z
|
|
3327
|
-
if (q + ae.length >=
|
|
3328
|
-
const Se =
|
|
3329
|
-
(J = S.current) == null || J.scrollToIndex({ index: Number(
|
|
3323
|
+
for (const Z in K) {
|
|
3324
|
+
const ae = K[Z];
|
|
3325
|
+
if (q + ae.length >= N) {
|
|
3326
|
+
const Se = N - q - 1;
|
|
3327
|
+
(J = S.current) == null || J.scrollToIndex({ index: Number(Z) });
|
|
3330
3328
|
const Pe = document.querySelector(
|
|
3331
|
-
`[data-index="${Number(
|
|
3329
|
+
`[data-index="${Number(Z) + 1}"]`
|
|
3332
3330
|
);
|
|
3333
3331
|
if (Pe) {
|
|
3334
|
-
const
|
|
3335
|
-
je(
|
|
3332
|
+
const _e = Pe.getElementsByTagName("mark");
|
|
3333
|
+
je(_e);
|
|
3336
3334
|
}
|
|
3337
3335
|
jt(() => {
|
|
3338
|
-
const
|
|
3339
|
-
`[data-index="${
|
|
3336
|
+
const _e = document.querySelector(
|
|
3337
|
+
`[data-index="${Z}"]`
|
|
3340
3338
|
);
|
|
3341
|
-
if (
|
|
3342
|
-
const Ee =
|
|
3339
|
+
if (_e) {
|
|
3340
|
+
const Ee = _e.getElementsByTagName("mark");
|
|
3343
3341
|
Ee[Se] && (je(Ee), Ve(Ee[Se]));
|
|
3344
3342
|
}
|
|
3345
3343
|
}, 300)();
|
|
@@ -3347,29 +3345,29 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3347
3345
|
} else
|
|
3348
3346
|
q += ae.length;
|
|
3349
3347
|
}
|
|
3350
|
-
},
|
|
3348
|
+
}, Re = (C, W, K) => {
|
|
3351
3349
|
var J;
|
|
3352
|
-
let
|
|
3353
|
-
|
|
3350
|
+
let N = C + 1;
|
|
3351
|
+
N > W && (N = 1), j(N);
|
|
3354
3352
|
let q = 0;
|
|
3355
|
-
for (const
|
|
3356
|
-
const ae = Z
|
|
3357
|
-
if (q + ae.length >=
|
|
3358
|
-
const Se =
|
|
3359
|
-
(J = S.current) == null || J.scrollToIndex({ index: Number(
|
|
3353
|
+
for (const Z in K) {
|
|
3354
|
+
const ae = K[Z];
|
|
3355
|
+
if (q + ae.length >= N) {
|
|
3356
|
+
const Se = N - q - 1;
|
|
3357
|
+
(J = S.current) == null || J.scrollToIndex({ index: Number(Z) });
|
|
3360
3358
|
const Pe = document.querySelector(
|
|
3361
|
-
`[data-index="${Number(
|
|
3359
|
+
`[data-index="${Number(Z) - 1}"]`
|
|
3362
3360
|
);
|
|
3363
3361
|
if (Pe) {
|
|
3364
|
-
const
|
|
3365
|
-
je(
|
|
3362
|
+
const _e = Pe.getElementsByTagName("mark");
|
|
3363
|
+
je(_e);
|
|
3366
3364
|
}
|
|
3367
3365
|
jt(() => {
|
|
3368
|
-
const
|
|
3369
|
-
`[data-index="${
|
|
3366
|
+
const _e = document.querySelector(
|
|
3367
|
+
`[data-index="${Z}"]`
|
|
3370
3368
|
);
|
|
3371
|
-
if (
|
|
3372
|
-
const Ee =
|
|
3369
|
+
if (_e) {
|
|
3370
|
+
const Ee = _e.getElementsByTagName("mark");
|
|
3373
3371
|
Ee[Se] && (je(Ee), Ve(Ee[Se]));
|
|
3374
3372
|
}
|
|
3375
3373
|
}, 300)();
|
|
@@ -3377,15 +3375,15 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3377
3375
|
} else
|
|
3378
3376
|
q += ae.length;
|
|
3379
3377
|
}
|
|
3380
|
-
}, T = ve(z,
|
|
3378
|
+
}, T = ve(z, _, X, {
|
|
3381
3379
|
regex: u == null ? void 0 : u.regex,
|
|
3382
3380
|
caseSensitive: u == null ? void 0 : u.caseSensitive,
|
|
3383
3381
|
group: u == null ? void 0 : u.group
|
|
3384
|
-
}),
|
|
3385
|
-
C.key === "Enter" &&
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3382
|
+
}), P = te(T), oe = (C) => {
|
|
3383
|
+
C.key === "Enter" && Re(
|
|
3384
|
+
R,
|
|
3385
|
+
P.total,
|
|
3386
|
+
P.filteredLogs
|
|
3389
3387
|
);
|
|
3390
3388
|
}, de = (C, W) => /* @__PURE__ */ I.jsx(
|
|
3391
3389
|
"div",
|
|
@@ -3395,13 +3393,20 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3395
3393
|
}
|
|
3396
3394
|
);
|
|
3397
3395
|
return ao(() => {
|
|
3398
|
-
var
|
|
3399
|
-
|
|
3400
|
-
|
|
3396
|
+
var K;
|
|
3397
|
+
const C = () => {
|
|
3398
|
+
var N;
|
|
3399
|
+
console.log("onSuccessFirstRequest"), (N = X.current) == null || N.startInterval("newer", d);
|
|
3400
|
+
}, W = () => {
|
|
3401
|
+
var N;
|
|
3402
|
+
console.log("onErrorFirstRequest"), (N = X.current) == null || N.startInterval(void 0, d);
|
|
3403
|
+
};
|
|
3404
|
+
return (K = X.current) == null || K.fetch(void 0, d, C, W), () => {
|
|
3405
|
+
clearTimeout(Y.current), X.current.stopInterval(), g();
|
|
3401
3406
|
};
|
|
3402
3407
|
}, []), ao(() => (window.removeEventListener("keydown", oe), window.addEventListener("keydown", oe), () => {
|
|
3403
3408
|
window.removeEventListener("keydown", oe);
|
|
3404
|
-
}), [
|
|
3409
|
+
}), [R, P.total, P.filteredLogs]), /* @__PURE__ */ I.jsx(
|
|
3405
3410
|
Ao,
|
|
3406
3411
|
{
|
|
3407
3412
|
visible: !0,
|
|
@@ -3452,7 +3457,7 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3452
3457
|
type: "text",
|
|
3453
3458
|
placeholder: pt("placeholder.search"),
|
|
3454
3459
|
isFormGroup: !1,
|
|
3455
|
-
value:
|
|
3460
|
+
value: _,
|
|
3456
3461
|
className: le.logInput,
|
|
3457
3462
|
prefixClickable: !0,
|
|
3458
3463
|
suffixClickable: !0,
|
|
@@ -3489,14 +3494,14 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3489
3494
|
}
|
|
3490
3495
|
)
|
|
3491
3496
|
] }),
|
|
3492
|
-
suffix:
|
|
3497
|
+
suffix: _.length > 0 ? /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(ye, { onClick: we, name: "close" }) }) : /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(ye, { name: "search" }) })
|
|
3493
3498
|
}
|
|
3494
3499
|
),
|
|
3495
3500
|
/* @__PURE__ */ I.jsxs("div", { className: le.searchResult, children: [
|
|
3496
|
-
|
|
3501
|
+
_.length > 0 ? R : 0,
|
|
3497
3502
|
/* @__PURE__ */ I.jsxs("span", { children: [
|
|
3498
3503
|
"/",
|
|
3499
|
-
|
|
3504
|
+
_.length > 0 ? P.total : 0
|
|
3500
3505
|
] })
|
|
3501
3506
|
] }),
|
|
3502
3507
|
/* @__PURE__ */ I.jsxs("div", { className: le.chevronIcons, children: [
|
|
@@ -3505,10 +3510,10 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3505
3510
|
{
|
|
3506
3511
|
name: "chevron-left",
|
|
3507
3512
|
onClick: () => {
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3513
|
+
Re(
|
|
3514
|
+
R,
|
|
3515
|
+
P.total,
|
|
3516
|
+
P.filteredLogs
|
|
3512
3517
|
);
|
|
3513
3518
|
}
|
|
3514
3519
|
}
|
|
@@ -3519,9 +3524,9 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3519
3524
|
name: "chevron-left",
|
|
3520
3525
|
onClick: () => {
|
|
3521
3526
|
ke(
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3527
|
+
R,
|
|
3528
|
+
P.total,
|
|
3529
|
+
P.filteredLogs
|
|
3525
3530
|
);
|
|
3526
3531
|
}
|
|
3527
3532
|
}
|
|
@@ -3585,28 +3590,28 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3585
3590
|
},
|
|
3586
3591
|
atTopThreshold: zi,
|
|
3587
3592
|
atTopStateChange: (C) => {
|
|
3588
|
-
var
|
|
3589
|
-
if (console.log("atTop, filteredLogs.length, responseCount, minLineLimit, atTop", T.length, c, l, C),
|
|
3593
|
+
var N;
|
|
3594
|
+
if (console.log("atTop, filteredLogs.length, responseCount, minLineLimit, atTop", T.length, c, l, C), _.length > 0 || A)
|
|
3590
3595
|
return;
|
|
3591
|
-
const W = () => T.length - a < 30 || a === 0 ? 10 : a,
|
|
3596
|
+
const W = () => T.length - a < 30 || a === 0 ? 10 : a, K = () => {
|
|
3592
3597
|
var q;
|
|
3593
3598
|
(q = S.current) == null || q.scrollToIndex({
|
|
3594
3599
|
index: W()
|
|
3595
3600
|
});
|
|
3596
3601
|
};
|
|
3597
|
-
C && !
|
|
3602
|
+
C && !A && ((N = X.current) == null || N.fetch(
|
|
3598
3603
|
"older",
|
|
3599
3604
|
d,
|
|
3600
|
-
|
|
3605
|
+
K
|
|
3601
3606
|
));
|
|
3602
3607
|
},
|
|
3603
3608
|
atBottomThreshold: Mo,
|
|
3604
3609
|
atBottomStateChange: (C) => {
|
|
3605
|
-
if (console.log("atBottom, filteredLogs.length, responseCount, minLineLimit, atBottom", T.length, c, l, C), T.length <= 0 ||
|
|
3610
|
+
if (console.log("atBottom, filteredLogs.length, responseCount, minLineLimit, atBottom", T.length, c, l, C), T.length <= 0 || _.length > 0 || A)
|
|
3606
3611
|
return;
|
|
3607
3612
|
const W = () => {
|
|
3608
|
-
var
|
|
3609
|
-
if (console.log("onNewerSuccess ,first", T.length), (
|
|
3613
|
+
var N, q;
|
|
3614
|
+
if (console.log("onNewerSuccess ,first", T.length), (N = S.current) == null || N.scrollToIndex({
|
|
3610
3615
|
index: T.length - 50
|
|
3611
3616
|
}), c < l) {
|
|
3612
3617
|
X.current.stopInterval(), console.log(
|
|
@@ -3618,9 +3623,9 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3618
3623
|
}), X.current.startInterval("newer", d);
|
|
3619
3624
|
return;
|
|
3620
3625
|
}
|
|
3621
|
-
},
|
|
3622
|
-
var
|
|
3623
|
-
console.log("Error fetching newer logs"), X.current.stopInterval(), (
|
|
3626
|
+
}, K = () => {
|
|
3627
|
+
var N;
|
|
3628
|
+
console.log("Error fetching newer logs"), X.current.stopInterval(), (N = S.current) == null || N.scrollToIndex({
|
|
3624
3629
|
index: T.length - 10
|
|
3625
3630
|
}), X.current.startInterval("newer", d);
|
|
3626
3631
|
};
|
|
@@ -3628,7 +3633,7 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3628
3633
|
"newer",
|
|
3629
3634
|
d,
|
|
3630
3635
|
W,
|
|
3631
|
-
|
|
3636
|
+
K
|
|
3632
3637
|
);
|
|
3633
3638
|
}
|
|
3634
3639
|
}
|