@cagatayfdn/flora-components 0.0.151 → 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-Bhla7aGx.js → ErrorLogModal-BuEoLLI7.js} +708 -700
- 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.d.mts +0 -1
- package/dist/index.d.ts +0 -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
|
@@ -4,7 +4,7 @@ import { c as wt } from "./index-BHf7G3IG.js";
|
|
|
4
4
|
import "./hooks/useAauth.js";
|
|
5
5
|
import Wo from "./hooks/useNiceModal.js";
|
|
6
6
|
import "./components/Drawer/Provider.js";
|
|
7
|
-
import
|
|
7
|
+
import ye from "./components/Icon/index.js";
|
|
8
8
|
import { N as No } from "./index-H7XbDVmH.js";
|
|
9
9
|
import "./assets/images/500_error_2x.gif";
|
|
10
10
|
import et, { t as pt } from "./locales/i18n.js";
|
|
@@ -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) {
|
|
@@ -79,11 +79,11 @@ function On(e, t) {
|
|
|
79
79
|
function se(...e) {
|
|
80
80
|
return e;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return e(
|
|
82
|
+
function Q(e, t) {
|
|
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
|
|
95
|
+
return Q(e, Nn(t, Rt));
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
const o = e(
|
|
97
|
+
function Me(e, t) {
|
|
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,8 +137,8 @@ function x(e, ...t) {
|
|
|
137
137
|
case nt:
|
|
138
138
|
Kt(e);
|
|
139
139
|
return;
|
|
140
|
-
case
|
|
141
|
-
return
|
|
140
|
+
case Ge:
|
|
141
|
+
return Q(e, o(r));
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
}
|
|
@@ -160,13 +160,13 @@ 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;
|
|
167
167
|
return e.forEach((i, s) => {
|
|
168
168
|
const l = Math.pow(2, s);
|
|
169
|
-
|
|
169
|
+
Q(i, (c) => {
|
|
170
170
|
const a = o;
|
|
171
171
|
o = o | l, t[s] = c, a !== r && o === r && n && (n(), n = null);
|
|
172
172
|
});
|
|
@@ -185,8 +185,8 @@ function Dn(e) {
|
|
|
185
185
|
const n = () => t == null ? void 0 : t();
|
|
186
186
|
return function(r, i) {
|
|
187
187
|
switch (r) {
|
|
188
|
-
case
|
|
189
|
-
return i ? o === i ? void 0 : (n(), o = i, t =
|
|
188
|
+
case Ge:
|
|
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;
|
|
192
192
|
return;
|
|
@@ -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);
|
|
@@ -234,10 +234,10 @@ function U() {
|
|
|
234
234
|
}
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
return
|
|
237
|
+
function He(e) {
|
|
238
|
+
return _t(U(), (t) => M(e, t));
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function ee(e, t = [], { singleton: o } = { singleton: !0 }) {
|
|
241
241
|
return {
|
|
242
242
|
constructor: e,
|
|
243
243
|
dependencies: t,
|
|
@@ -246,7 +246,7 @@ function Q(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);
|
|
@@ -255,14 +255,14 @@ function Gn(e) {
|
|
|
255
255
|
};
|
|
256
256
|
return o(e);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function ue(...e) {
|
|
259
259
|
const t = U(), o = new Array(e.length);
|
|
260
260
|
let n = 0;
|
|
261
261
|
const r = Math.pow(2, e.length) - 1;
|
|
262
262
|
return e.forEach((i, s) => {
|
|
263
263
|
const l = Math.pow(2, s);
|
|
264
|
-
|
|
265
|
-
o[s] = c, n = n | l, n === r &&
|
|
264
|
+
Q(i, (c) => {
|
|
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 ae(...e) {
|
|
|
270
270
|
Kt(t);
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
|
-
case
|
|
274
|
-
return n === r && s(o),
|
|
273
|
+
case Ge:
|
|
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,18 +283,18 @@ function Dt(...e) {
|
|
|
283
283
|
switch (t) {
|
|
284
284
|
case nt:
|
|
285
285
|
return;
|
|
286
|
-
case
|
|
287
|
-
return An(...e.map((n) =>
|
|
286
|
+
case Ge:
|
|
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",
|
|
296
296
|
2: "warn"
|
|
297
|
-
}, $n = () => typeof globalThis > "u" ? window : globalThis, $e =
|
|
297
|
+
}, $n = () => typeof globalThis > "u" ? window : globalThis, $e = ee(
|
|
298
298
|
() => {
|
|
299
299
|
const e = H(
|
|
300
300
|
3
|
|
@@ -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",
|
|
@@ -422,7 +422,7 @@ function Vo(e, t, o) {
|
|
|
422
422
|
}
|
|
423
423
|
}, [l, t, s]), i;
|
|
424
424
|
}
|
|
425
|
-
const xe =
|
|
425
|
+
const xe = ee(
|
|
426
426
|
() => {
|
|
427
427
|
const e = U(), t = U(), o = H(0), n = U(), r = H(0), i = U(), s = U(), l = H(0), c = H(0), a = H(0), h = H(0), w = U(), g = U(), v = H(!1), S = H(!1), k = H(!1);
|
|
428
428
|
return M(
|
|
@@ -462,7 +462,7 @@ const xe = Q(
|
|
|
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 [];
|
|
@@ -481,19 +481,19 @@ function ct(e, t) {
|
|
|
481
481
|
if (!ne(e))
|
|
482
482
|
return t === e.k ? e.v : t < e.k ? ct(e.l, t) : ct(e.r, t);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function We(e, t, o = "k") {
|
|
485
485
|
if (ne(e))
|
|
486
486
|
return [-1 / 0, void 0];
|
|
487
487
|
if (Number(e[o]) === t)
|
|
488
488
|
return [e.k, e.v];
|
|
489
489
|
if (Number(e[o]) < t) {
|
|
490
|
-
const n =
|
|
490
|
+
const n = We(e.r, t, o);
|
|
491
491
|
return n[0] === -1 / 0 ? [e.k, e.v] : n;
|
|
492
492
|
}
|
|
493
|
-
return
|
|
493
|
+
return We(e.l, t, o);
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
return ne(e) ? qo(t, o, 1) : t === e.k ?
|
|
495
|
+
function be(e, t, o) {
|
|
496
|
+
return ne(e) ? qo(t, o, 1) : t === e.k ? me(e, { k: t, v: o }) : t < e.k ? To(me(e, { l: be(e.l, t, o) })) : To(me(e, { r: be(e.r, t, o) }));
|
|
497
497
|
}
|
|
498
498
|
function ot() {
|
|
499
499
|
return lt;
|
|
@@ -501,8 +501,8 @@ function ot() {
|
|
|
501
501
|
function Et(e, t, o) {
|
|
502
502
|
if (ne(e))
|
|
503
503
|
return [];
|
|
504
|
-
const n =
|
|
505
|
-
return Kn(
|
|
504
|
+
const n = We(e, t)[0];
|
|
505
|
+
return Kn(Ft(e, n, o));
|
|
506
506
|
}
|
|
507
507
|
function Vt(e, t) {
|
|
508
508
|
if (ne(e))
|
|
@@ -515,20 +515,20 @@ function Vt(e, t) {
|
|
|
515
515
|
return n;
|
|
516
516
|
{
|
|
517
517
|
const [i, s] = $o(n);
|
|
518
|
-
return Ct(
|
|
518
|
+
return Ct(me(e, { k: i, l: Go(n), v: s }));
|
|
519
519
|
}
|
|
520
520
|
} else
|
|
521
|
-
return t < o ? Ct(
|
|
521
|
+
return t < o ? Ct(me(e, { l: Vt(n, t) })) : Ct(me(e, { r: Vt(r, t) }));
|
|
522
522
|
}
|
|
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;
|
|
@@ -536,12 +536,12 @@ function Ct(e) {
|
|
|
536
536
|
return e;
|
|
537
537
|
if (o > n.lvl + 1) {
|
|
538
538
|
if (Mt(t))
|
|
539
|
-
return Uo(
|
|
539
|
+
return Uo(me(e, { lvl: o - 1 }));
|
|
540
540
|
if (!ne(t) && !ne(t.r))
|
|
541
|
-
return
|
|
542
|
-
l:
|
|
541
|
+
return me(t.r, {
|
|
542
|
+
l: me(t, { r: t.r.l }),
|
|
543
543
|
lvl: o,
|
|
544
|
-
r:
|
|
544
|
+
r: me(e, {
|
|
545
545
|
l: t.r.r,
|
|
546
546
|
lvl: o - 1
|
|
547
547
|
})
|
|
@@ -549,22 +549,22 @@ 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
|
-
return
|
|
556
|
-
l:
|
|
555
|
+
return me(r, {
|
|
556
|
+
l: me(e, {
|
|
557
557
|
lvl: o - 1,
|
|
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");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function me(e, t) {
|
|
568
568
|
return qo(
|
|
569
569
|
t.k !== void 0 ? t.k : e.k,
|
|
570
570
|
t.v !== void 0 ? t.v : e.v,
|
|
@@ -573,8 +573,8 @@ function de(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(
|
|
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
|
-
return !ne(t) && t.lvl === e.lvl ?
|
|
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
|
-
return !ne(o) && !ne(o.r) && o.lvl === t && o.r.lvl === t ?
|
|
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);
|
|
@@ -605,7 +605,7 @@ function Ko(e, t) {
|
|
|
605
605
|
function at(e, t) {
|
|
606
606
|
return !!(e && e[0] === t[0] && e[1] === t[1]);
|
|
607
607
|
}
|
|
608
|
-
const Xt =
|
|
608
|
+
const Xt = ee(
|
|
609
609
|
() => ({ recalcInProgress: H(!1) }),
|
|
610
610
|
[],
|
|
611
611
|
{ singleton: !0 }
|
|
@@ -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) {
|
|
@@ -660,7 +660,7 @@ function Zn(e, t) {
|
|
|
660
660
|
for (const n of t) {
|
|
661
661
|
const { endIndex: r, size: i, startIndex: s } = n;
|
|
662
662
|
if (o = Math.min(o, s), ne(e)) {
|
|
663
|
-
e =
|
|
663
|
+
e = be(e, 0, i);
|
|
664
664
|
continue;
|
|
665
665
|
}
|
|
666
666
|
const l = Et(e, s - 1, r + 1);
|
|
@@ -668,8 +668,8 @@ function Zn(e, t) {
|
|
|
668
668
|
continue;
|
|
669
669
|
let c = !1, a = !1;
|
|
670
670
|
for (const { end: h, start: w, value: g } of l)
|
|
671
|
-
c ? (r >= w || i === g) && (e = Vt(e, w)) : (a = g !== i, c = !0), h > r && r >= w && g !== i && (e =
|
|
672
|
-
a && (e =
|
|
671
|
+
c ? (r >= w || i === g) && (e = Vt(e, w)) : (a = g !== i, c = !0), h > r && r >= w && g !== i && (e = be(e, r + 1, g));
|
|
672
|
+
a && (e = be(e, s, i));
|
|
673
673
|
}
|
|
674
674
|
return [e, o];
|
|
675
675
|
}
|
|
@@ -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);
|
|
@@ -711,7 +711,7 @@ function tr(e, [t, o, n, r]) {
|
|
|
711
711
|
let s = i, l = 0;
|
|
712
712
|
if (o.length > 0 && ne(i) && t.length === 2) {
|
|
713
713
|
const g = t[0].size, v = t[1].size;
|
|
714
|
-
s = o.reduce((S, k) =>
|
|
714
|
+
s = o.reduce((S, k) => be(be(S, k, g), k + 1, v), s);
|
|
715
715
|
} else
|
|
716
716
|
[s, l] = Zn(s, t);
|
|
717
717
|
if (s === i)
|
|
@@ -719,7 +719,7 @@ function tr(e, [t, o, n, r]) {
|
|
|
719
719
|
const { lastIndex: c, lastOffset: a, lastSize: h, offsetTree: w } = $t(e.offsetTree, l, s, r);
|
|
720
720
|
return {
|
|
721
721
|
groupIndices: o,
|
|
722
|
-
groupOffsetTree: o.reduce((g, v) =>
|
|
722
|
+
groupOffsetTree: o.reduce((g, v) => be(g, v, ut(v, w, r)), ot()),
|
|
723
723
|
lastIndex: c,
|
|
724
724
|
lastOffset: a,
|
|
725
725
|
lastSize: h,
|
|
@@ -743,8 +743,8 @@ function $t(e, t, o, n) {
|
|
|
743
743
|
let r = e, i = 0, s = 0, l = 0, c = 0;
|
|
744
744
|
if (t !== 0) {
|
|
745
745
|
c = yt(r, t - 1, Zt), l = r[c].offset;
|
|
746
|
-
const a =
|
|
747
|
-
i = a[0], s = a[1], r.length && r[c].size ===
|
|
746
|
+
const a = We(o, t - 1);
|
|
747
|
+
i = a[0], s = a[1], r.length && r[c].size === We(o, t)[1] && (c -= 1), r = r.slice(0, c + 1);
|
|
748
748
|
} else
|
|
749
749
|
r = [];
|
|
750
750
|
for (const { start: a, value: h } of Et(o, t, 1 / 0)) {
|
|
@@ -772,10 +772,10 @@ function rr(e) {
|
|
|
772
772
|
const ir = {
|
|
773
773
|
offsetHeight: "height",
|
|
774
774
|
offsetWidth: "width"
|
|
775
|
-
}, Oe =
|
|
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,15 +829,15 @@ 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
|
|
836
836
|
);
|
|
837
|
-
const d =
|
|
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,
|
|
@@ -848,7 +848,7 @@ const ir = {
|
|
|
848
848
|
E((m) => m.changed)
|
|
849
849
|
)
|
|
850
850
|
);
|
|
851
|
-
|
|
851
|
+
Q(
|
|
852
852
|
x(
|
|
853
853
|
l,
|
|
854
854
|
Ae(
|
|
@@ -860,70 +860,70 @@ 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
|
-
),
|
|
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 },
|
|
873
873
|
Ie.ERROR
|
|
874
874
|
);
|
|
875
875
|
});
|
|
876
|
-
const b =
|
|
876
|
+
const b = He(i);
|
|
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
|
-
const
|
|
899
|
-
return
|
|
900
|
-
(B, { k:
|
|
898
|
+
const te = Ke(u.sizeTree);
|
|
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:
|
|
911
|
-
prevSize:
|
|
910
|
+
prevIndex: Y + m,
|
|
911
|
+
prevSize: X,
|
|
912
912
|
ranges: ve
|
|
913
913
|
};
|
|
914
914
|
},
|
|
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
|
|
962
|
-
|
|
960
|
+
$ = j[A];
|
|
961
|
+
const te = j[A + 1] - $ - 1;
|
|
962
|
+
A++, z += te + 1;
|
|
963
963
|
}
|
|
964
|
-
if (
|
|
965
|
-
const
|
|
966
|
-
|
|
967
|
-
const B =
|
|
968
|
-
|
|
964
|
+
if (R = Ke(u.sizeTree).reduce((te, { k: B, v: Y }) => be(te, Math.max(0, B + m), Y), R), z !== -m) {
|
|
965
|
+
const te = ct(u.sizeTree, $);
|
|
966
|
+
R = be(R, 0, te);
|
|
967
|
+
const B = We(u.sizeTree, -m + 1)[1];
|
|
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,
|
|
@@ -1017,9 +1017,9 @@ function sr(e) {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
);
|
|
1019
1019
|
}
|
|
1020
|
-
const Jo =
|
|
1020
|
+
const Jo = ee(
|
|
1021
1021
|
([{ groupIndices: e, sizes: t, totalCount: o }, { headerHeight: n, scrollTop: r }]) => {
|
|
1022
|
-
const i = U(), s = U(), l =
|
|
1022
|
+
const i = U(), s = U(), l = He(x(i, E(sr)));
|
|
1023
1023
|
return M(
|
|
1024
1024
|
x(
|
|
1025
1025
|
l,
|
|
@@ -1034,9 +1034,9 @@ const Jo = Q(
|
|
|
1034
1034
|
e
|
|
1035
1035
|
), M(
|
|
1036
1036
|
x(
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
E(([c, a, h]) =>
|
|
1037
|
+
ue(r, t, n),
|
|
1038
|
+
D(([c, a]) => zt(a)),
|
|
1039
|
+
E(([c, a, h]) => We(a.groupOffsetTree, Math.max(c - h, 0), "v")[0]),
|
|
1040
1040
|
ie(),
|
|
1041
1041
|
E((c) => [c])
|
|
1042
1042
|
),
|
|
@@ -1044,16 +1044,16 @@ const Jo = Q(
|
|
|
1044
1044
|
), { groupCounts: i, topItemsIndexes: s };
|
|
1045
1045
|
},
|
|
1046
1046
|
se(Oe, xe)
|
|
1047
|
-
), qe =
|
|
1047
|
+
), qe = ee(
|
|
1048
1048
|
([{ log: e }]) => {
|
|
1049
|
-
const t = H(!1), o =
|
|
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
|
);
|
|
1056
|
-
return
|
|
1056
|
+
return Q(t, (n) => {
|
|
1057
1057
|
n && ce(e)("props updated", {}, Ie.DEBUG);
|
|
1058
1058
|
}), { didMount: o, propsReady: t };
|
|
1059
1059
|
},
|
|
@@ -1064,7 +1064,7 @@ function Qo(e) {
|
|
|
1064
1064
|
const t = typeof e == "number" ? { index: e } : e;
|
|
1065
1065
|
return t.align || (t.align = "start"), (!t.behavior || !lr) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
|
|
1066
1066
|
}
|
|
1067
|
-
const ft =
|
|
1067
|
+
const ft = ee(
|
|
1068
1068
|
([
|
|
1069
1069
|
{ gap: e, listRefresh: t, sizes: o, totalCount: n },
|
|
1070
1070
|
{
|
|
@@ -1082,38 +1082,38 @@ const ft = Q(
|
|
|
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
|
|
1100
|
-
let
|
|
1101
|
-
|
|
1102
|
-
const
|
|
1103
|
-
b(), Ce ? (
|
|
1099
|
+
const Y = Qo(_), { align: X, behavior: ve, offset: Te } = Y, we = y - 1, he = Zo(Y, m, we);
|
|
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 -= R, Te && (fe += Te);
|
|
1102
|
+
const Le = (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;
|
|
1107
|
-
d =
|
|
1107
|
+
d = Q(t, (Ve) => {
|
|
1108
1108
|
Ce = Ce || Ve;
|
|
1109
|
-
}), p =
|
|
1110
|
-
|
|
1109
|
+
}), p = Me(h, () => {
|
|
1110
|
+
Le(Ce);
|
|
1111
1111
|
});
|
|
1112
1112
|
} else
|
|
1113
|
-
p =
|
|
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
|
),
|
|
@@ -1146,39 +1146,39 @@ function Qt(e, t) {
|
|
|
1146
1146
|
const o = t - 1;
|
|
1147
1147
|
return typeof e == "number" ? e : e.index === "LAST" ? o : e.index;
|
|
1148
1148
|
}
|
|
1149
|
-
const ht =
|
|
1149
|
+
const ht = ee(
|
|
1150
1150
|
([{ defaultItemSize: e, listRefresh: t, sizes: o }, { scrollTop: n }, { scrollTargetReached: r, scrollToIndex: i }, { didMount: s }]) => {
|
|
1151
1151
|
const l = H(!0), c = H(0), a = H(!0);
|
|
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
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1170
|
+
ue(t, s),
|
|
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
|
-
|
|
1177
|
-
|
|
1176
|
+
Me(r, () => {
|
|
1177
|
+
F(a, !0);
|
|
1178
1178
|
}), Jt(4, () => {
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
}),
|
|
1179
|
+
Me(n, () => {
|
|
1180
|
+
F(l, !0);
|
|
1181
|
+
}), F(i, h);
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
1184
|
), {
|
|
@@ -1202,10 +1202,10 @@ const dt = "up", it = "down", ar = "none", ur = {
|
|
|
1202
1202
|
scrollTop: 0,
|
|
1203
1203
|
viewportHeight: 0
|
|
1204
1204
|
}
|
|
1205
|
-
}, dr = 0, gt =
|
|
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,34 +1215,34 @@ const dt = "up", it = "down", ar = "none", ur = {
|
|
|
1215
1215
|
);
|
|
1216
1216
|
M(
|
|
1217
1217
|
x(
|
|
1218
|
-
|
|
1218
|
+
ue(O(r), O(w)),
|
|
1219
1219
|
E(([d, b]) => d <= b),
|
|
1220
1220
|
ie()
|
|
1221
1221
|
),
|
|
1222
1222
|
l
|
|
1223
1223
|
), M(x(l, De(50)), a);
|
|
1224
|
-
const S =
|
|
1224
|
+
const S = He(
|
|
1225
1225
|
x(
|
|
1226
|
-
|
|
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
|
-
let $,
|
|
1235
|
-
return
|
|
1234
|
+
let $, te;
|
|
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
|
-
scrollTopDelta:
|
|
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
|
|
@@ -1342,20 +1342,20 @@ function yo(e, t) {
|
|
|
1342
1342
|
var o;
|
|
1343
1343
|
return typeof e == "number" ? e : (o = e[t]) != null ? o : 0;
|
|
1344
1344
|
}
|
|
1345
|
-
const eo =
|
|
1345
|
+
const eo = ee(
|
|
1346
1346
|
([{ deviation: e, fixedHeaderHeight: t, headerHeight: o, scrollTop: n, viewportHeight: r }]) => {
|
|
1347
1347
|
const i = U(), s = H(0), l = H(0), c = H(0), a = pe(
|
|
1348
1348
|
x(
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1349
|
+
ue(
|
|
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 = Q(
|
|
|
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]
|
|
@@ -1400,7 +1400,7 @@ function mr(e, t, o) {
|
|
|
1400
1400
|
if (zt(t)) {
|
|
1401
1401
|
const n = Xo(e, t);
|
|
1402
1402
|
return [
|
|
1403
|
-
{ index:
|
|
1403
|
+
{ index: We(t.groupOffsetTree, n)[0], offset: 0, size: 0 },
|
|
1404
1404
|
{ data: o == null ? void 0 : o[0], index: n, offset: 0, size: 0 }
|
|
1405
1405
|
];
|
|
1406
1406
|
}
|
|
@@ -1480,7 +1480,7 @@ function bo(e, t, o) {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
return i;
|
|
1482
1482
|
}
|
|
1483
|
-
const Ze =
|
|
1483
|
+
const Ze = ee(
|
|
1484
1484
|
([
|
|
1485
1485
|
{ data: e, firstItemIndex: t, gap: o, sizes: n, totalCount: r },
|
|
1486
1486
|
i,
|
|
@@ -1495,21 +1495,21 @@ const Ze = Q(
|
|
|
1495
1495
|
M(i.topItemsIndexes, k);
|
|
1496
1496
|
const d = pe(
|
|
1497
1497
|
x(
|
|
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,65 +1517,65 @@ const Ze = Q(
|
|
|
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
|
-
const
|
|
1530
|
-
if (
|
|
1531
|
-
return { ...Wt, totalCount:
|
|
1529
|
+
const X = j, { offsetTree: ve, sizeTree: Te } = X, we = ce(p);
|
|
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
|
-
|
|
1541
|
-
|
|
1540
|
+
X,
|
|
1541
|
+
te
|
|
1542
1542
|
);
|
|
1543
|
-
const
|
|
1543
|
+
const he = [];
|
|
1544
1544
|
if ($.length > 0) {
|
|
1545
|
-
const
|
|
1546
|
-
let
|
|
1547
|
-
for (const T of Et(Te,
|
|
1548
|
-
const
|
|
1549
|
-
for (let C =
|
|
1550
|
-
|
|
1545
|
+
const je = $[0], ke = $[$.length - 1];
|
|
1546
|
+
let Re = 0;
|
|
1547
|
+
for (const T of Et(Te, je, ke)) {
|
|
1548
|
+
const P = T.value, oe = Math.max(T.start, je), de = Math.min(T.end, ke);
|
|
1549
|
+
for (let C = oe; C <= de; C++)
|
|
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([],
|
|
1555
|
-
const
|
|
1556
|
-
if (
|
|
1553
|
+
if (!A)
|
|
1554
|
+
return St([], he, R, B, X, te);
|
|
1555
|
+
const fe = $.length > 0 ? $[$.length - 1] + 1 : 0, Le = er(ve, u, y, fe);
|
|
1556
|
+
if (Le.length === 0)
|
|
1557
1557
|
return null;
|
|
1558
|
-
const Ce =
|
|
1559
|
-
for (const
|
|
1560
|
-
const
|
|
1561
|
-
let T =
|
|
1562
|
-
const
|
|
1563
|
-
if (
|
|
1564
|
-
|
|
1565
|
-
const C =
|
|
1566
|
-
T += C *
|
|
1558
|
+
const Ce = R - 1, Ve = _t([], (je) => {
|
|
1559
|
+
for (const ke of Le) {
|
|
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
|
+
T += C * oe + C * B;
|
|
1567
1567
|
}
|
|
1568
|
-
|
|
1569
|
-
const
|
|
1570
|
-
for (let C =
|
|
1571
|
-
|
|
1568
|
+
P < fe && (T += (fe - P) * oe, P = fe);
|
|
1569
|
+
const de = Math.min(ke.end, Ce);
|
|
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,
|
|
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 = Q(
|
|
|
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
|
|
@@ -1606,43 +1606,43 @@ const Ze = Q(
|
|
|
1606
1606
|
),
|
|
1607
1607
|
f
|
|
1608
1608
|
);
|
|
1609
|
-
const b =
|
|
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
|
-
), m =
|
|
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,
|
|
@@ -1655,25 +1655,25 @@ const Ze = Q(
|
|
|
1655
1655
|
Xt
|
|
1656
1656
|
),
|
|
1657
1657
|
{ singleton: !0 }
|
|
1658
|
-
), on =
|
|
1658
|
+
), on = ee(
|
|
1659
1659
|
([{ fixedFooterHeight: e, fixedHeaderHeight: t, footerHeight: o, headerHeight: n }, { listState: r }]) => {
|
|
1660
1660
|
const i = U(), s = pe(
|
|
1661
1661
|
x(
|
|
1662
|
-
|
|
1662
|
+
ue(o, e, n, t, r),
|
|
1663
1663
|
E(([l, c, a, h, w]) => l + c + a + h + w.offsetBottom + w.bottom)
|
|
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 }
|
|
1671
|
-
), fr =
|
|
1671
|
+
), fr = ee(
|
|
1672
1672
|
([{ viewportHeight: e }, { totalListHeight: t }]) => {
|
|
1673
1673
|
const o = H(!1), n = pe(
|
|
1674
1674
|
x(
|
|
1675
|
-
|
|
1676
|
-
|
|
1675
|
+
ue(o, e, t),
|
|
1676
|
+
D(([r]) => r),
|
|
1677
1677
|
E(([, r, i]) => Math.max(0, r - i)),
|
|
1678
1678
|
De(0),
|
|
1679
1679
|
ie()
|
|
@@ -1684,7 +1684,7 @@ const Ze = Q(
|
|
|
1684
1684
|
},
|
|
1685
1685
|
se(xe, on),
|
|
1686
1686
|
{ singleton: !0 }
|
|
1687
|
-
), nn =
|
|
1687
|
+
), nn = ee(() => ({
|
|
1688
1688
|
context: H(null)
|
|
1689
1689
|
})), hr = ({
|
|
1690
1690
|
itemBottom: e,
|
|
@@ -1692,7 +1692,7 @@ const Ze = Q(
|
|
|
1692
1692
|
locationParams: { align: o, behavior: n, ...r },
|
|
1693
1693
|
viewportBottom: i,
|
|
1694
1694
|
viewportTop: s
|
|
1695
|
-
}) => t < s ? { ...r, align: o ?? "start", behavior: n } : e > i ? { ...r, align: o ?? "end", behavior: n } : null, rn =
|
|
1695
|
+
}) => t < s ? { ...r, align: o ?? "start", behavior: n } : e > i ? { ...r, align: o ?? "end", behavior: n } : null, rn = ee(
|
|
1696
1696
|
([
|
|
1697
1697
|
{ gap: e, sizes: t, totalCount: o },
|
|
1698
1698
|
{ fixedFooterHeight: n, fixedHeaderHeight: r, headerHeight: i, scrollingInProgress: s, scrollTop: l, viewportHeight: c },
|
|
@@ -1702,20 +1702,20 @@ const Ze = Q(
|
|
|
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:
|
|
1712
|
-
viewportBottom:
|
|
1711
|
+
locationParams: { align: _, behavior: m, ...R },
|
|
1712
|
+
viewportBottom: te,
|
|
1713
1713
|
viewportTop: $
|
|
1714
1714
|
});
|
|
1715
|
-
return B ? y &&
|
|
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 = Q(
|
|
|
1723
1723
|
y
|
|
1724
1724
|
) : y && y(), B;
|
|
1725
1725
|
}),
|
|
1726
|
-
|
|
1726
|
+
D((w) => w !== null)
|
|
1727
1727
|
),
|
|
1728
1728
|
a
|
|
1729
1729
|
), {
|
|
@@ -1736,7 +1736,7 @@ const Ze = Q(
|
|
|
1736
1736
|
function Ho(e) {
|
|
1737
1737
|
return e ? e === "smooth" ? "smooth" : "auto" : !1;
|
|
1738
1738
|
}
|
|
1739
|
-
const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr =
|
|
1739
|
+
const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
|
|
1740
1740
|
([
|
|
1741
1741
|
{ listRefresh: e, totalCount: t, fixedItemSize: o, data: n },
|
|
1742
1742
|
{ atBottomState: r, isAtBottom: i },
|
|
@@ -1751,81 +1751,81 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
|
|
|
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"
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
|
-
|
|
1760
|
+
Q(
|
|
1761
1761
|
x(
|
|
1762
|
-
|
|
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(() => {
|
|
1772
1772
|
ce(h)("following output to ", { totalCount: u }, Ie.DEBUG), f(m);
|
|
1773
|
-
}) : p =
|
|
1773
|
+
}) : p = Me(e, () => {
|
|
1774
1774
|
ce(h)("following output to ", { totalCount: u }, Ie.DEBUG), f(m), p = null;
|
|
1775
1775
|
});
|
|
1776
1776
|
}
|
|
1777
1777
|
);
|
|
1778
1778
|
function d(m) {
|
|
1779
|
-
const u =
|
|
1779
|
+
const u = Me(r, (y) => {
|
|
1780
1780
|
m && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && !p && (ce(h)("scrolling to bottom due to increased size", {}, Ie.DEBUG), f("auto"));
|
|
1781
1781
|
});
|
|
1782
1782
|
setTimeout(u, 100);
|
|
1783
1783
|
}
|
|
1784
|
-
|
|
1784
|
+
Q(
|
|
1785
1785
|
x(
|
|
1786
|
-
|
|
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
|
-
}),
|
|
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
|
-
|
|
1816
|
-
),
|
|
1815
|
+
_
|
|
1816
|
+
), Q(
|
|
1817
1817
|
x(
|
|
1818
|
-
|
|
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", {}),
|
|
1827
|
-
}) : p =
|
|
1828
|
-
ce(h)("scrolling into view", {}),
|
|
1826
|
+
ce(h)("scrolling into view", {}), F(v, m);
|
|
1827
|
+
}) : p = Me(e, () => {
|
|
1828
|
+
ce(h)("scrolling into view", {}), F(v, m), p = null;
|
|
1829
1829
|
});
|
|
1830
1830
|
}
|
|
1831
1831
|
), { autoscrollToBottom: k, followOutput: S, scrollIntoViewOnChange: b };
|
|
@@ -1841,39 +1841,39 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
|
|
|
1841
1841
|
nn,
|
|
1842
1842
|
rn
|
|
1843
1843
|
)
|
|
1844
|
-
), xr =
|
|
1844
|
+
), xr = 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
|
|
1854
1854
|
), {}),
|
|
1855
1855
|
se(Oe, ht, Ze, qe),
|
|
1856
1856
|
{ singleton: !0 }
|
|
1857
|
-
), vr =
|
|
1857
|
+
), vr = ee(
|
|
1858
1858
|
([{ didMount: e }, { scrollTo: t }, { listState: o }]) => {
|
|
1859
1859
|
const n = H(0);
|
|
1860
|
-
return
|
|
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) => {
|
|
1868
|
-
|
|
1868
|
+
Me(
|
|
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
|
);
|
|
@@ -1884,14 +1884,14 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
|
|
|
1884
1884
|
},
|
|
1885
1885
|
se(qe, xe, Ze),
|
|
1886
1886
|
{ singleton: !0 }
|
|
1887
|
-
), sn =
|
|
1887
|
+
), sn = ee(
|
|
1888
1888
|
([{ scrollVelocity: e }]) => {
|
|
1889
1889
|
const t = H(!1), o = U(), n = H(!1);
|
|
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) {
|
|
@@ -1904,8 +1904,8 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
|
|
|
1904
1904
|
ie()
|
|
1905
1905
|
),
|
|
1906
1906
|
t
|
|
1907
|
-
),
|
|
1908
|
-
x(
|
|
1907
|
+
), Q(
|
|
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
|
}
|
|
@@ -1913,11 +1913,11 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
|
|
|
1913
1913
|
},
|
|
1914
1914
|
se(gt),
|
|
1915
1915
|
{ singleton: !0 }
|
|
1916
|
-
), to =
|
|
1916
|
+
), to = ee(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
1917
1917
|
const o = U(), n = U(), r = U(), i = H(!1), s = H(void 0);
|
|
1918
1918
|
return M(
|
|
1919
1919
|
x(
|
|
1920
|
-
|
|
1920
|
+
ue(o, n),
|
|
1921
1921
|
E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: h }]) => ({
|
|
1922
1922
|
scrollHeight: l,
|
|
1923
1923
|
scrollTop: Math.max(0, c - h),
|
|
@@ -1928,7 +1928,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
|
|
|
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
|
|
@@ -1945,7 +1945,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
|
|
|
1945
1945
|
windowScrollTo: r,
|
|
1946
1946
|
windowViewportRect: n
|
|
1947
1947
|
};
|
|
1948
|
-
}, se(xe)), Ir =
|
|
1948
|
+
}, se(xe)), Ir = ee(
|
|
1949
1949
|
([
|
|
1950
1950
|
{ sizeRanges: e, sizes: t },
|
|
1951
1951
|
{ headerHeight: o, scrollTop: n },
|
|
@@ -1954,20 +1954,20 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
|
|
|
1954
1954
|
{ useWindowScroll: s, windowScrollContainerState: l, windowViewportRect: c }
|
|
1955
1955
|
]) => {
|
|
1956
1956
|
const a = U(), h = H(void 0), w = H(null), g = H(null);
|
|
1957
|
-
return M(l, w), M(c, g),
|
|
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
|
),
|
|
@@ -1982,12 +1982,12 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = Q(
|
|
|
1982
1982
|
function Tr(e) {
|
|
1983
1983
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
1984
1984
|
}
|
|
1985
|
-
const wr =
|
|
1985
|
+
const wr = ee(([{ topItemsIndexes: e }]) => {
|
|
1986
1986
|
const t = H(0);
|
|
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
|
|
@@ -1997,7 +1997,7 @@ function ln(e) {
|
|
|
1997
1997
|
let t = !1, o;
|
|
1998
1998
|
return () => (t || (t = !0, o = e()), o);
|
|
1999
1999
|
}
|
|
2000
|
-
const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Sr =
|
|
2000
|
+
const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Sr = ee(
|
|
2001
2001
|
([
|
|
2002
2002
|
{ deviation: e, scrollBy: t, scrollingInProgress: o, scrollTop: n },
|
|
2003
2003
|
{ isAtBottom: r, isScrolling: i, lastJumpDueToItemResize: s, scrollDirection: l },
|
|
@@ -2006,33 +2006,33 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2006
2006
|
{ log: v },
|
|
2007
2007
|
{ recalcInProgress: S }
|
|
2008
2008
|
]) => {
|
|
2009
|
-
const k =
|
|
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
|
|
2031
|
-
b && Cr() ?
|
|
2032
|
-
}),
|
|
2030
|
+
return Q(x(k, G(e, i)), ([f, d, b]) => {
|
|
2031
|
+
b && Cr() ? F(e, d - f) : p(-f);
|
|
2032
|
+
}), Q(
|
|
2033
2033
|
x(
|
|
2034
|
-
|
|
2035
|
-
|
|
2034
|
+
ue(pe(i, !1), e, S),
|
|
2035
|
+
D(([f, d, b]) => !f && !b && d !== 0),
|
|
2036
2036
|
E(([f, d]) => d),
|
|
2037
2037
|
De(1)
|
|
2038
2038
|
),
|
|
@@ -2043,11 +2043,11 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2043
2043
|
E((f) => ({ top: -f }))
|
|
2044
2044
|
),
|
|
2045
2045
|
t
|
|
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,28 +2055,28 @@ 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
|
}
|
|
2076
2076
|
), { deviation: e };
|
|
2077
2077
|
},
|
|
2078
2078
|
se(xe, gt, Ze, Oe, $e, Xt)
|
|
2079
|
-
), yr =
|
|
2079
|
+
), yr = ee(
|
|
2080
2080
|
([
|
|
2081
2081
|
e,
|
|
2082
2082
|
t,
|
|
@@ -2115,7 +2115,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2115
2115
|
$e,
|
|
2116
2116
|
nn
|
|
2117
2117
|
)
|
|
2118
|
-
), br =
|
|
2118
|
+
), br = ee(
|
|
2119
2119
|
([
|
|
2120
2120
|
{
|
|
2121
2121
|
data: e,
|
|
@@ -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,53 +2206,53 @@ 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
|
-
y in b &&
|
|
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
|
);
|
|
2253
2253
|
}, v = (p) => {
|
|
2254
2254
|
const f = L.useContext(l)[p], d = L.useCallback(
|
|
2255
|
-
(b) =>
|
|
2255
|
+
(b) => Q(f, b),
|
|
2256
2256
|
[f]
|
|
2257
2257
|
);
|
|
2258
2258
|
return L.useSyncExternalStore(
|
|
@@ -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
|
-
() =>
|
|
2267
|
-
|
|
2266
|
+
() => Q(f, (_) => {
|
|
2267
|
+
_ !== d && b(po(_));
|
|
2268
2268
|
}),
|
|
2269
2269
|
[f, d]
|
|
2270
2270
|
), d;
|
|
@@ -2273,7 +2273,7 @@ function cn(e, t, o) {
|
|
|
2273
2273
|
Component: w,
|
|
2274
2274
|
useEmitter: (p, f) => {
|
|
2275
2275
|
const d = L.useContext(l)[p];
|
|
2276
|
-
vt(() =>
|
|
2276
|
+
vt(() => Q(d, f), [f, d]);
|
|
2277
2277
|
},
|
|
2278
2278
|
useEmitterValue: k,
|
|
2279
2279
|
usePublisher: g
|
|
@@ -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,11 +2372,11 @@ const _r = /* @__PURE__ */ Q(() => {
|
|
|
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%" },
|
|
2379
|
-
const t = V("listState"), o =
|
|
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
|
+
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,
|
|
2382
2382
|
w,
|
|
@@ -2390,62 +2390,62 @@ const _r = /* @__PURE__ */ Q(() => {
|
|
|
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
|
},
|
|
2407
2407
|
...$ ? {} : { visibility: "hidden" }
|
|
2408
2408
|
};
|
|
2409
|
-
return !e && t.totalCount === 0 && b ? /* @__PURE__ */ I.jsx(b, { ...
|
|
2409
|
+
return !e && t.totalCount === 0 && b ? /* @__PURE__ */ I.jsx(b, { ...ge(b, a) }) : /* @__PURE__ */ I.jsx(
|
|
2410
2410
|
m,
|
|
2411
2411
|
{
|
|
2412
|
-
...
|
|
2412
|
+
...ge(m, a),
|
|
2413
2413
|
"data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
|
|
2414
2414
|
ref: p,
|
|
2415
|
-
style:
|
|
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
|
-
...
|
|
2421
|
+
...ge(_, a),
|
|
2422
2422
|
height: B.size,
|
|
2423
2423
|
index: B.index,
|
|
2424
|
-
key:
|
|
2424
|
+
key: X,
|
|
2425
2425
|
type: B.type || "item",
|
|
2426
2426
|
...B.type === "group" ? {} : { groupIndex: B.groupIndex }
|
|
2427
2427
|
}
|
|
2428
2428
|
) : B.type === "group" ? /* @__PURE__ */ Tt(
|
|
2429
2429
|
y,
|
|
2430
2430
|
{
|
|
2431
|
-
...
|
|
2432
|
-
"data-index":
|
|
2431
|
+
...ge(y, a),
|
|
2432
|
+
"data-index": Y,
|
|
2433
2433
|
"data-item-index": B.index,
|
|
2434
2434
|
"data-known-size": B.size,
|
|
2435
|
-
key:
|
|
2435
|
+
key: X,
|
|
2436
2436
|
style: zr
|
|
2437
2437
|
},
|
|
2438
2438
|
h(B.index, a)
|
|
2439
2439
|
) : /* @__PURE__ */ Tt(
|
|
2440
2440
|
u,
|
|
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,
|
|
2448
|
-
key:
|
|
2448
|
+
key: X,
|
|
2449
2449
|
style: k ? Br : hn
|
|
2450
2450
|
},
|
|
2451
2451
|
z ? c(B.index, B.groupIndex, B.data, a) : c(B.index, B.data, a)
|
|
@@ -2475,7 +2475,7 @@ const _r = /* @__PURE__ */ Q(() => {
|
|
|
2475
2475
|
width: "100%",
|
|
2476
2476
|
zIndex: 1
|
|
2477
2477
|
};
|
|
2478
|
-
function
|
|
2478
|
+
function ge(e, t) {
|
|
2479
2479
|
if (typeof e != "string")
|
|
2480
2480
|
return { context: t };
|
|
2481
2481
|
}
|
|
@@ -2483,29 +2483,29 @@ function Wr(e, t) {
|
|
|
2483
2483
|
return { item: typeof e == "string" ? void 0 : t };
|
|
2484
2484
|
}
|
|
2485
2485
|
const Nr = /* @__PURE__ */ L.memo(function() {
|
|
2486
|
-
const e = V("HeaderComponent"), t =
|
|
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
|
),
|
|
2493
2493
|
!0,
|
|
2494
2494
|
V("skipAnimationFrameInResizeObserver")
|
|
2495
2495
|
), r = V("context");
|
|
2496
|
-
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...
|
|
2496
|
+
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
|
|
2497
2497
|
}), Ar = /* @__PURE__ */ L.memo(function() {
|
|
2498
|
-
const e = V("FooterComponent"), t =
|
|
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
|
),
|
|
2505
2505
|
!0,
|
|
2506
2506
|
V("skipAnimationFrameInResizeObserver")
|
|
2507
2507
|
), r = V("context");
|
|
2508
|
-
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...
|
|
2508
|
+
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
|
|
2509
2509
|
});
|
|
2510
2510
|
function gn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
2511
2511
|
return L.memo(function({ children: n, style: r, context: i, ...s }) {
|
|
@@ -2526,7 +2526,7 @@ function gn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
|
2526
2526
|
style: { ...w ? jr : Lr, ...r },
|
|
2527
2527
|
tabIndex: 0,
|
|
2528
2528
|
...s,
|
|
2529
|
-
...
|
|
2529
|
+
...ge(c, i),
|
|
2530
2530
|
children: n
|
|
2531
2531
|
}
|
|
2532
2532
|
);
|
|
@@ -2553,22 +2553,22 @@ function pn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
|
2553
2553
|
"data-virtuoso-scroller": !0,
|
|
2554
2554
|
style: { position: "relative", ...r, ...h !== 0 ? { height: h + w } : {} },
|
|
2555
2555
|
...s,
|
|
2556
|
-
...
|
|
2556
|
+
...ge(c, i),
|
|
2557
2557
|
children: n
|
|
2558
2558
|
}
|
|
2559
2559
|
);
|
|
2560
2560
|
});
|
|
2561
2561
|
}
|
|
2562
2562
|
const Or = ({ children: e }) => {
|
|
2563
|
-
const t = L.useContext(an), o =
|
|
2564
|
-
() => Po(o, (c) =>
|
|
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) => Fe(c, i ? "width" : "height")),
|
|
2565
2565
|
[o, i]
|
|
2566
2566
|
), l = Xe(s, !0, V("skipAnimationFrameInResizeObserver"));
|
|
2567
2567
|
return L.useEffect(() => {
|
|
2568
2568
|
t && (o(t.viewportHeight), n(t.itemHeight));
|
|
2569
2569
|
}, [t, o, n]), /* @__PURE__ */ I.jsx("div", { "data-viewport-type": "element", ref: l, style: Bt(r), children: e });
|
|
2570
2570
|
}, Pr = ({ children: e }) => {
|
|
2571
|
-
const t = L.useContext(an), o =
|
|
2571
|
+
const t = L.useContext(an), o = ze("windowViewportRect"), n = ze("fixedItemHeight"), r = V("customScrollParent"), i = Vo(
|
|
2572
2572
|
o,
|
|
2573
2573
|
r,
|
|
2574
2574
|
V("skipAnimationFrameInResizeObserver")
|
|
@@ -2578,24 +2578,24 @@ const Or = ({ children: e }) => {
|
|
|
2578
2578
|
}, [t, o, n]), /* @__PURE__ */ I.jsx("div", { "data-viewport-type": "window", ref: i, style: Bt(s), children: e });
|
|
2579
2579
|
}, Dr = ({ children: e }) => {
|
|
2580
2580
|
const t = V("TopItemListComponent") || "div", o = V("headerHeight"), n = { ...Mr, marginTop: `${o}px` }, r = V("context");
|
|
2581
|
-
return /* @__PURE__ */ I.jsx(t, { style: n, ...
|
|
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
|
-
usePublisher:
|
|
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: [],
|
|
@@ -2687,55 +2687,55 @@ function It(e, t) {
|
|
|
2687
2687
|
function Yr(e, t) {
|
|
2688
2688
|
return e && e.column === t.column && e.row === t.row;
|
|
2689
2689
|
}
|
|
2690
|
-
const Xr = /* @__PURE__ */
|
|
2690
|
+
const Xr = /* @__PURE__ */ ee(
|
|
2691
2691
|
([
|
|
2692
2692
|
{ increaseViewportBy: e, listBoundary: t, overscan: o, visibleRange: n },
|
|
2693
2693
|
{ footerHeight: r, headerHeight: i, scrollBy: s, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: h, viewportHeight: w },
|
|
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),
|
|
2701
|
-
|
|
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
|
+
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
|
-
|
|
2713
|
-
|
|
2712
|
+
ue(S, he, z, j, we, fe),
|
|
2713
|
+
D(([T, P, oe, de, , C]) => T && !P && oe.height !== 0 && de.height !== 0 && !C)
|
|
2714
2714
|
),
|
|
2715
2715
|
([, , , , T]) => {
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
}),
|
|
2719
|
-
|
|
2716
|
+
F(fe, !0), Jt(1, () => {
|
|
2717
|
+
F(A, T);
|
|
2718
|
+
}), Me(x(a), () => {
|
|
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(
|
|
@@ -2745,77 +2745,77 @@ const Xr = /* @__PURE__ */ Q(
|
|
|
2745
2745
|
w
|
|
2746
2746
|
), M(
|
|
2747
2747
|
x(
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2748
|
+
ue(
|
|
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,
|
|
2755
|
-
gap:
|
|
2756
|
-
item:
|
|
2757
|
-
scrollTop:
|
|
2754
|
+
E(([T, P, oe, de]) => ({
|
|
2755
|
+
gap: oe,
|
|
2756
|
+
item: P,
|
|
2757
|
+
scrollTop: de,
|
|
2758
2758
|
viewport: T
|
|
2759
2759
|
}))
|
|
2760
2760
|
),
|
|
2761
|
-
|
|
2761
|
+
X
|
|
2762
2762
|
), M(
|
|
2763
2763
|
x(
|
|
2764
|
-
|
|
2765
|
-
|
|
2764
|
+
ue(
|
|
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
|
-
[
|
|
2781
|
-
|
|
2780
|
+
[P, oe],
|
|
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: Z, row:
|
|
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(
|
|
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
|
|
2797
|
+
const Ee = xn(_e, Pe, Z);
|
|
2798
2798
|
let Je, Ue;
|
|
2799
|
-
q ?
|
|
2800
|
-
const ro = Bo(Je, Ue,
|
|
2801
|
-
return { bottom: io, itemHeight:
|
|
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
|
+
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
|
-
|
|
2816
|
-
|
|
2817
|
-
E(([T,
|
|
2818
|
-
const { bottom: C, top: W } = Lo(T,
|
|
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__ */ Q(
|
|
|
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
|
-
const Ve =
|
|
2834
|
+
const Ve = He(
|
|
2835
2835
|
x(
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
const
|
|
2841
|
-
return (
|
|
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
|
|
@@ -2863,30 +2863,30 @@ const Xr = /* @__PURE__ */ Q(
|
|
|
2863
2863
|
De(0)
|
|
2864
2864
|
)
|
|
2865
2865
|
);
|
|
2866
|
-
M(
|
|
2866
|
+
M(ke, v.scrollSeekRangeChanged), M(
|
|
2867
2867
|
x(
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
E(([T,
|
|
2871
|
-
const W = Qo(T), { align:
|
|
2872
|
-
let
|
|
2873
|
-
|
|
2874
|
-
let Z = qt(
|
|
2875
|
-
return
|
|
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
|
+
let J = W.index;
|
|
2873
|
+
J === "LAST" && (J = de - 1), J = st(0, J, Ot(de - 1, J));
|
|
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
|
|
@@ -2894,9 +2894,9 @@ const Xr = /* @__PURE__ */ Q(
|
|
|
2894
2894
|
customScrollParent: p,
|
|
2895
2895
|
// input
|
|
2896
2896
|
data: B,
|
|
2897
|
-
deviation:
|
|
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__ */ Q(
|
|
|
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,19 +2915,19 @@ const Xr = /* @__PURE__ */ Q(
|
|
|
2915
2915
|
viewportDimensions: j,
|
|
2916
2916
|
windowScrollContainerState: d,
|
|
2917
2917
|
windowScrollTo: b,
|
|
2918
|
-
windowViewportRect:
|
|
2918
|
+
windowViewportRect: _,
|
|
2919
2919
|
...v,
|
|
2920
2920
|
// output
|
|
2921
|
-
gridState:
|
|
2922
|
-
horizontalDirection:
|
|
2921
|
+
gridState: R,
|
|
2922
|
+
horizontalDirection: Le,
|
|
2923
2923
|
initialTopMostItemIndex: we,
|
|
2924
|
-
totalListHeight:
|
|
2924
|
+
totalListHeight: Re,
|
|
2925
2925
|
...g,
|
|
2926
2926
|
endReached: Ve,
|
|
2927
2927
|
propsReady: k,
|
|
2928
|
-
rangeChanged:
|
|
2929
|
-
startReached:
|
|
2930
|
-
stateChanged:
|
|
2928
|
+
rangeChanged: ke,
|
|
2929
|
+
startReached: je,
|
|
2930
|
+
stateChanged: X,
|
|
2931
2931
|
stateRestoreInProgress: Te,
|
|
2932
2932
|
...m
|
|
2933
2933
|
};
|
|
@@ -2948,7 +2948,7 @@ function qt(e, t, o, n) {
|
|
|
2948
2948
|
const r = xn(e.width, o.width, t.column), i = kt(n / r), s = i * o.height + st(0, i - 1) * t.row;
|
|
2949
2949
|
return s > 0 ? s + t.row : s;
|
|
2950
2950
|
}
|
|
2951
|
-
const Zr = /* @__PURE__ */
|
|
2951
|
+
const Zr = /* @__PURE__ */ ee(() => {
|
|
2952
2952
|
const e = H((w) => `Item ${w}`), t = H({}), o = H(null), n = H("virtuoso-grid-item"), r = H("virtuoso-grid-list"), i = H(fn), s = H("div"), l = H(mt), c = (w, g = null) => pe(
|
|
2953
2953
|
x(
|
|
2954
2954
|
t,
|
|
@@ -2957,7 +2957,7 @@ const Zr = /* @__PURE__ */ Q(() => {
|
|
|
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,
|
|
@@ -2975,19 +2975,19 @@ const Zr = /* @__PURE__ */ Q(() => {
|
|
|
2975
2975
|
scrollerRef: l,
|
|
2976
2976
|
ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
|
|
2977
2977
|
};
|
|
2978
|
-
}), Jr = /* @__PURE__ */
|
|
2978
|
+
}), Jr = /* @__PURE__ */ ee(
|
|
2979
2979
|
([e, t]) => ({ ...e, ...t }),
|
|
2980
2980
|
se(Xr, Zr)
|
|
2981
2981
|
), Qr = /* @__PURE__ */ L.memo(function() {
|
|
2982
|
-
const e = re("gridState"), t = re("listClassName"), o = re("itemClassName"), n = re("itemContent"), r = re("computeItemKey"), i = re("isSeeking"), s =
|
|
2982
|
+
const e = re("gridState"), t = re("listClassName"), o = re("itemClassName"), n = re("itemContent"), r = re("computeItemKey"), i = re("isSeeking"), s = Be("scrollHeight"), l = re("ItemComponent"), c = re("ListComponent"), a = re("ScrollSeekPlaceholder"), h = re("context"), w = Be("itemDimensions"), g = Be("gap"), v = re("log"), S = re("stateRestoreInProgress"), k = Be("reportReadyState"), p = Xe(
|
|
2983
2983
|
L.useMemo(
|
|
2984
2984
|
() => (f) => {
|
|
2985
2985
|
const d = f.parentElement.parentElement.scrollHeight;
|
|
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),
|
|
@@ -3006,7 +3006,7 @@ const Zr = /* @__PURE__ */ Q(() => {
|
|
|
3006
3006
|
{
|
|
3007
3007
|
className: t,
|
|
3008
3008
|
ref: p,
|
|
3009
|
-
...
|
|
3009
|
+
...ge(c, h),
|
|
3010
3010
|
"data-testid": "virtuoso-item-list",
|
|
3011
3011
|
style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
|
|
3012
3012
|
children: e.items.map((f) => {
|
|
@@ -3014,7 +3014,7 @@ const Zr = /* @__PURE__ */ Q(() => {
|
|
|
3014
3014
|
return i ? /* @__PURE__ */ I.jsx(
|
|
3015
3015
|
a,
|
|
3016
3016
|
{
|
|
3017
|
-
...
|
|
3017
|
+
...ge(a, h),
|
|
3018
3018
|
height: e.itemHeight,
|
|
3019
3019
|
index: f.index,
|
|
3020
3020
|
width: e.itemWidth
|
|
@@ -3023,7 +3023,7 @@ const Zr = /* @__PURE__ */ Q(() => {
|
|
|
3023
3023
|
) : /* @__PURE__ */ Tt(
|
|
3024
3024
|
l,
|
|
3025
3025
|
{
|
|
3026
|
-
...
|
|
3026
|
+
...ge(l, h),
|
|
3027
3027
|
className: o,
|
|
3028
3028
|
"data-index": f.index,
|
|
3029
3029
|
key: d
|
|
@@ -3034,31 +3034,31 @@ const Zr = /* @__PURE__ */ Q(() => {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
);
|
|
3036
3036
|
}), ei = L.memo(function() {
|
|
3037
|
-
const e = re("HeaderComponent"), t =
|
|
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
|
),
|
|
3044
3044
|
!0,
|
|
3045
3045
|
!1
|
|
3046
3046
|
), r = re("context");
|
|
3047
|
-
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...
|
|
3047
|
+
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
|
|
3048
3048
|
}), ti = L.memo(function() {
|
|
3049
|
-
const e = re("FooterComponent"), t =
|
|
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
|
),
|
|
3056
3056
|
!0,
|
|
3057
3057
|
!1
|
|
3058
3058
|
), r = re("context");
|
|
3059
|
-
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...
|
|
3059
|
+
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
|
|
3060
3060
|
}), oi = ({ children: e }) => {
|
|
3061
|
-
const t = L.useContext(un), o =
|
|
3061
|
+
const t = L.useContext(un), o = Be("itemDimensions"), n = Be("viewportDimensions"), r = Xe(
|
|
3062
3062
|
L.useMemo(
|
|
3063
3063
|
() => (i) => {
|
|
3064
3064
|
n(i.getBoundingClientRect());
|
|
@@ -3072,13 +3072,13 @@ const Zr = /* @__PURE__ */ Q(() => {
|
|
|
3072
3072
|
t && (n({ height: t.viewportHeight, width: t.viewportWidth }), o({ height: t.itemHeight, width: t.itemWidth }));
|
|
3073
3073
|
}, [t, n, o]), /* @__PURE__ */ I.jsx("div", { ref: r, style: Bt(!1), children: e });
|
|
3074
3074
|
}, ni = ({ children: e }) => {
|
|
3075
|
-
const t = L.useContext(un), o =
|
|
3075
|
+
const t = L.useContext(un), o = Be("windowViewportRect"), n = Be("itemDimensions"), r = re("customScrollParent"), i = Vo(o, r, !1);
|
|
3076
3076
|
return L.useEffect(() => {
|
|
3077
3077
|
t && (n({ height: t.itemHeight, width: t.itemWidth }), o({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
3078
3078
|
}, [t, o, n]), /* @__PURE__ */ I.jsx("div", { ref: i, style: Bt(!1), children: e });
|
|
3079
3079
|
}, ri = /* @__PURE__ */ L.memo(function({ ...e }) {
|
|
3080
3080
|
const t = re("useWindowScroll"), o = re("customScrollParent"), n = o || t ? si : ii, r = o || t ? ni : oi, i = re("context");
|
|
3081
|
-
return /* @__PURE__ */ I.jsx(n, { ...e, ...
|
|
3081
|
+
return /* @__PURE__ */ I.jsx(n, { ...e, ...ge(n, i), children: /* @__PURE__ */ I.jsxs(r, { children: [
|
|
3082
3082
|
/* @__PURE__ */ I.jsx(ei, {}),
|
|
3083
3083
|
/* @__PURE__ */ I.jsx(Qr, {}),
|
|
3084
3084
|
/* @__PURE__ */ I.jsx(ti, {})
|
|
@@ -3087,7 +3087,7 @@ const Zr = /* @__PURE__ */ Q(() => {
|
|
|
3087
3087
|
Component: ws,
|
|
3088
3088
|
useEmitter: vn,
|
|
3089
3089
|
useEmitterValue: re,
|
|
3090
|
-
usePublisher:
|
|
3090
|
+
usePublisher: Be
|
|
3091
3091
|
} = /* @__PURE__ */ cn(
|
|
3092
3092
|
Jr,
|
|
3093
3093
|
{
|
|
@@ -3129,11 +3129,11 @@ const Zr = /* @__PURE__ */ Q(() => {
|
|
|
3129
3129
|
}
|
|
3130
3130
|
},
|
|
3131
3131
|
ri
|
|
3132
|
-
), ii = /* @__PURE__ */ gn({ useEmitter: vn, useEmitterValue: re, usePublisher:
|
|
3132
|
+
), ii = /* @__PURE__ */ gn({ useEmitter: vn, useEmitterValue: re, usePublisher: Be }), si = /* @__PURE__ */ pn({ useEmitter: vn, useEmitterValue: re, usePublisher: Be });
|
|
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,78 +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(), [
|
|
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) => {
|
|
3210
3210
|
const q = {
|
|
3211
3211
|
applications: [W || i[0].value],
|
|
3212
3212
|
scroll_mode: C || void 0
|
|
3213
3213
|
};
|
|
3214
|
-
w({ projectPk: o, appPk: r, applications: q.applications, scroll_mode: q.scroll_mode, withoutPermission: v }).then(
|
|
3215
|
-
(
|
|
3216
|
-
|
|
3217
|
-
|
|
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(
|
|
3215
|
+
(J) => {
|
|
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();
|
|
3218
3219
|
return;
|
|
3219
3220
|
}
|
|
3220
|
-
|
|
3221
|
+
K && K();
|
|
3221
3222
|
}
|
|
3222
3223
|
);
|
|
3223
3224
|
};
|
|
3224
|
-
function
|
|
3225
|
+
function te(C) {
|
|
3225
3226
|
let W = 0;
|
|
3226
|
-
const
|
|
3227
|
-
return C.forEach((
|
|
3228
|
-
const
|
|
3229
|
-
W +=
|
|
3230
|
-
}), { 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 };
|
|
3231
3232
|
}
|
|
3232
|
-
const B = bn($, n * 1e3),
|
|
3233
|
+
const B = bn($, n * 1e3), Y = Lt(), X = Lt(B), ve = (C, W, K, N) => {
|
|
3233
3234
|
if (!W || W.length < 1)
|
|
3234
3235
|
return C;
|
|
3235
3236
|
let q = C;
|
|
3236
|
-
if (
|
|
3237
|
-
if (
|
|
3237
|
+
if (N.group)
|
|
3238
|
+
if (N.regex) {
|
|
3238
3239
|
let Z;
|
|
3239
3240
|
try {
|
|
3240
3241
|
Z = new RegExp(
|
|
3241
3242
|
W,
|
|
3242
|
-
|
|
3243
|
+
N.caseSensitive ? "g" : "gi"
|
|
3243
3244
|
);
|
|
3244
3245
|
} catch {
|
|
3245
3246
|
return C;
|
|
3246
3247
|
}
|
|
3247
|
-
q = C.filter((
|
|
3248
|
+
q = C.filter((ae) => Z.test(ae.message));
|
|
3248
3249
|
} else
|
|
3249
|
-
|
|
3250
|
+
N.caseSensitive ? q = C.filter(
|
|
3250
3251
|
(Z) => Z.message.includes(W)
|
|
3251
3252
|
) : q = C.filter(
|
|
3252
3253
|
(Z) => Z.message.toLocaleLowerCase().includes(W.toLocaleLowerCase())
|
|
3253
3254
|
);
|
|
3254
|
-
return q.map((Z,
|
|
3255
|
+
return q.map((Z, ae) => ({
|
|
3255
3256
|
...Z,
|
|
3256
|
-
message: Te(Z.message, W,
|
|
3257
|
+
message: Te(Z.message, W, N, ae) + `
|
|
3257
3258
|
`
|
|
3258
3259
|
}));
|
|
3259
|
-
}, Te = (C, W,
|
|
3260
|
+
}, Te = (C, W, K, N) => {
|
|
3260
3261
|
if (!W)
|
|
3261
3262
|
return C;
|
|
3262
3263
|
try {
|
|
3263
|
-
if (
|
|
3264
|
+
if (K.regex) {
|
|
3264
3265
|
let q;
|
|
3265
|
-
const
|
|
3266
|
-
return
|
|
3266
|
+
const J = W.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
3267
|
+
return J ? q = new RegExp(J[1], J[2]) : q = new RegExp(
|
|
3267
3268
|
W,
|
|
3268
|
-
|
|
3269
|
+
K.caseSensitive ? "g" : "gi"
|
|
3269
3270
|
), C.replace(
|
|
3270
3271
|
q,
|
|
3271
|
-
(Z) => `<mark data-mark-index="${
|
|
3272
|
+
(Z) => `<mark data-mark-index="${N}">${Z}</mark>`
|
|
3272
3273
|
);
|
|
3273
3274
|
} else {
|
|
3274
|
-
if (
|
|
3275
|
-
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>`);
|
|
3276
3277
|
{
|
|
3277
3278
|
const q = new RegExp(W, "gi");
|
|
3278
3279
|
return C.replace(
|
|
3279
3280
|
q,
|
|
3280
|
-
(
|
|
3281
|
+
(J) => `<mark data-mark-index="${N}">${J}</mark>`
|
|
3281
3282
|
);
|
|
3282
3283
|
}
|
|
3283
3284
|
}
|
|
@@ -3286,105 +3287,105 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3286
3287
|
}
|
|
3287
3288
|
}, we = () => {
|
|
3288
3289
|
m("");
|
|
3289
|
-
},
|
|
3290
|
+
}, he = () => {
|
|
3290
3291
|
f(!p);
|
|
3291
|
-
},
|
|
3292
|
+
}, fe = () => {
|
|
3292
3293
|
let C = "";
|
|
3293
3294
|
z.forEach((W) => {
|
|
3294
3295
|
C += W.message;
|
|
3295
|
-
}),
|
|
3296
|
-
type:
|
|
3296
|
+
}), _n({
|
|
3297
|
+
type: Rn.SUCCESS,
|
|
3297
3298
|
message: pt("text.copied"),
|
|
3298
3299
|
closeTime: 3e3
|
|
3299
3300
|
}), navigator.clipboard.writeText(C);
|
|
3300
|
-
},
|
|
3301
|
+
}, Le = (C, W) => {
|
|
3301
3302
|
C.currentTarget.classList.toggle(le.activeIcon), y({
|
|
3302
3303
|
...u,
|
|
3303
3304
|
[W]: !(u != null && u[W])
|
|
3304
3305
|
});
|
|
3305
3306
|
}, Ce = (C) => {
|
|
3306
|
-
var W,
|
|
3307
|
-
b(C), clearTimeout(
|
|
3308
|
-
var
|
|
3309
|
-
(
|
|
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" });
|
|
3310
3311
|
}, 300)();
|
|
3311
3312
|
}, Ve = (C) => {
|
|
3312
3313
|
C.classList.add(le.selectedMark);
|
|
3313
|
-
},
|
|
3314
|
+
}, je = (C) => {
|
|
3314
3315
|
Array.from(C).forEach(
|
|
3315
3316
|
(W) => W.classList.remove(le.selectedMark)
|
|
3316
3317
|
);
|
|
3317
|
-
},
|
|
3318
|
-
var
|
|
3319
|
-
let
|
|
3320
|
-
|
|
3318
|
+
}, ke = (C, W, K) => {
|
|
3319
|
+
var J;
|
|
3320
|
+
let N = C - 1;
|
|
3321
|
+
N < 1 && (N = W), j(N);
|
|
3321
3322
|
let q = 0;
|
|
3322
|
-
for (const Z in
|
|
3323
|
-
const
|
|
3324
|
-
if (q +
|
|
3325
|
-
const
|
|
3326
|
-
(
|
|
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) });
|
|
3327
3328
|
const Pe = document.querySelector(
|
|
3328
3329
|
`[data-index="${Number(Z) + 1}"]`
|
|
3329
3330
|
);
|
|
3330
3331
|
if (Pe) {
|
|
3331
3332
|
const _e = Pe.getElementsByTagName("mark");
|
|
3332
|
-
|
|
3333
|
+
je(_e);
|
|
3333
3334
|
}
|
|
3334
3335
|
jt(() => {
|
|
3335
3336
|
const _e = document.querySelector(
|
|
3336
3337
|
`[data-index="${Z}"]`
|
|
3337
3338
|
);
|
|
3338
3339
|
if (_e) {
|
|
3339
|
-
const
|
|
3340
|
-
|
|
3340
|
+
const Ee = _e.getElementsByTagName("mark");
|
|
3341
|
+
Ee[Se] && (je(Ee), Ve(Ee[Se]));
|
|
3341
3342
|
}
|
|
3342
3343
|
}, 300)();
|
|
3343
3344
|
break;
|
|
3344
3345
|
} else
|
|
3345
|
-
q +=
|
|
3346
|
+
q += ae.length;
|
|
3346
3347
|
}
|
|
3347
|
-
},
|
|
3348
|
-
var
|
|
3349
|
-
let
|
|
3350
|
-
|
|
3348
|
+
}, Re = (C, W, K) => {
|
|
3349
|
+
var J;
|
|
3350
|
+
let N = C + 1;
|
|
3351
|
+
N > W && (N = 1), j(N);
|
|
3351
3352
|
let q = 0;
|
|
3352
|
-
for (const Z in
|
|
3353
|
-
const
|
|
3354
|
-
if (q +
|
|
3355
|
-
const
|
|
3356
|
-
(
|
|
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) });
|
|
3357
3358
|
const Pe = document.querySelector(
|
|
3358
3359
|
`[data-index="${Number(Z) - 1}"]`
|
|
3359
3360
|
);
|
|
3360
3361
|
if (Pe) {
|
|
3361
3362
|
const _e = Pe.getElementsByTagName("mark");
|
|
3362
|
-
|
|
3363
|
+
je(_e);
|
|
3363
3364
|
}
|
|
3364
3365
|
jt(() => {
|
|
3365
3366
|
const _e = document.querySelector(
|
|
3366
3367
|
`[data-index="${Z}"]`
|
|
3367
3368
|
);
|
|
3368
3369
|
if (_e) {
|
|
3369
|
-
const
|
|
3370
|
-
|
|
3370
|
+
const Ee = _e.getElementsByTagName("mark");
|
|
3371
|
+
Ee[Se] && (je(Ee), Ve(Ee[Se]));
|
|
3371
3372
|
}
|
|
3372
3373
|
}, 300)();
|
|
3373
3374
|
break;
|
|
3374
3375
|
} else
|
|
3375
|
-
q +=
|
|
3376
|
+
q += ae.length;
|
|
3376
3377
|
}
|
|
3377
|
-
}, T = ve(z,
|
|
3378
|
+
}, T = ve(z, _, X, {
|
|
3378
3379
|
regex: u == null ? void 0 : u.regex,
|
|
3379
3380
|
caseSensitive: u == null ? void 0 : u.caseSensitive,
|
|
3380
3381
|
group: u == null ? void 0 : u.group
|
|
3381
|
-
}),
|
|
3382
|
-
C.key === "Enter" &&
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3382
|
+
}), P = te(T), oe = (C) => {
|
|
3383
|
+
C.key === "Enter" && Re(
|
|
3384
|
+
R,
|
|
3385
|
+
P.total,
|
|
3386
|
+
P.filteredLogs
|
|
3386
3387
|
);
|
|
3387
|
-
},
|
|
3388
|
+
}, de = (C, W) => /* @__PURE__ */ I.jsx(
|
|
3388
3389
|
"div",
|
|
3389
3390
|
{
|
|
3390
3391
|
"data-index": C,
|
|
@@ -3392,13 +3393,20 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3392
3393
|
}
|
|
3393
3394
|
);
|
|
3394
3395
|
return ao(() => {
|
|
3395
|
-
var
|
|
3396
|
-
|
|
3397
|
-
|
|
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();
|
|
3398
3406
|
};
|
|
3399
|
-
}, []), ao(() => (window.removeEventListener("keydown",
|
|
3400
|
-
window.removeEventListener("keydown",
|
|
3401
|
-
}), [
|
|
3407
|
+
}, []), ao(() => (window.removeEventListener("keydown", oe), window.addEventListener("keydown", oe), () => {
|
|
3408
|
+
window.removeEventListener("keydown", oe);
|
|
3409
|
+
}), [R, P.total, P.filteredLogs]), /* @__PURE__ */ I.jsx(
|
|
3402
3410
|
Ao,
|
|
3403
3411
|
{
|
|
3404
3412
|
visible: !0,
|
|
@@ -3420,10 +3428,10 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3420
3428
|
onClick: () => {
|
|
3421
3429
|
t && t(), k();
|
|
3422
3430
|
},
|
|
3423
|
-
children: /* @__PURE__ */ I.jsx(
|
|
3431
|
+
children: /* @__PURE__ */ I.jsx(ye, { name: "close-window" })
|
|
3424
3432
|
}
|
|
3425
3433
|
),
|
|
3426
|
-
/* @__PURE__ */ I.jsx("div", { className: le.iosIcon, onClick:
|
|
3434
|
+
/* @__PURE__ */ I.jsx("div", { className: le.iosIcon, onClick: he, children: /* @__PURE__ */ I.jsx(ye, { name: "expand-window" }) })
|
|
3427
3435
|
] }),
|
|
3428
3436
|
/* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(
|
|
3429
3437
|
Hn,
|
|
@@ -3449,76 +3457,76 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3449
3457
|
type: "text",
|
|
3450
3458
|
placeholder: pt("placeholder.search"),
|
|
3451
3459
|
isFormGroup: !1,
|
|
3452
|
-
value:
|
|
3460
|
+
value: _,
|
|
3453
3461
|
className: le.logInput,
|
|
3454
3462
|
prefixClickable: !0,
|
|
3455
3463
|
suffixClickable: !0,
|
|
3456
3464
|
onChange: (C) => {
|
|
3457
3465
|
var W;
|
|
3458
|
-
m(C.target.value), C.target.value.length > 1 && ((W =
|
|
3466
|
+
m(C.target.value), C.target.value.length > 1 && ((W = X.current) == null || W.stopInterval()), j(0);
|
|
3459
3467
|
},
|
|
3460
3468
|
prefix: /* @__PURE__ */ I.jsxs("div", { className: le.iconGroup, children: [
|
|
3461
3469
|
/* @__PURE__ */ I.jsx(
|
|
3462
|
-
|
|
3470
|
+
ye,
|
|
3463
3471
|
{
|
|
3464
3472
|
name: "group",
|
|
3465
3473
|
onClick: (C) => {
|
|
3466
|
-
|
|
3474
|
+
Le(C, "group");
|
|
3467
3475
|
}
|
|
3468
3476
|
}
|
|
3469
3477
|
),
|
|
3470
3478
|
/* @__PURE__ */ I.jsx(
|
|
3471
|
-
|
|
3479
|
+
ye,
|
|
3472
3480
|
{
|
|
3473
3481
|
name: "case-sensitive",
|
|
3474
3482
|
onClick: (C) => {
|
|
3475
|
-
|
|
3483
|
+
Le(C, "caseSensitive");
|
|
3476
3484
|
}
|
|
3477
3485
|
}
|
|
3478
3486
|
),
|
|
3479
3487
|
/* @__PURE__ */ I.jsx(
|
|
3480
|
-
|
|
3488
|
+
ye,
|
|
3481
3489
|
{
|
|
3482
3490
|
name: "regex",
|
|
3483
3491
|
onClick: (C) => {
|
|
3484
|
-
|
|
3492
|
+
Le(C, "regex");
|
|
3485
3493
|
}
|
|
3486
3494
|
}
|
|
3487
3495
|
)
|
|
3488
3496
|
] }),
|
|
3489
|
-
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" }) })
|
|
3490
3498
|
}
|
|
3491
3499
|
),
|
|
3492
3500
|
/* @__PURE__ */ I.jsxs("div", { className: le.searchResult, children: [
|
|
3493
|
-
|
|
3501
|
+
_.length > 0 ? R : 0,
|
|
3494
3502
|
/* @__PURE__ */ I.jsxs("span", { children: [
|
|
3495
3503
|
"/",
|
|
3496
|
-
|
|
3504
|
+
_.length > 0 ? P.total : 0
|
|
3497
3505
|
] })
|
|
3498
3506
|
] }),
|
|
3499
3507
|
/* @__PURE__ */ I.jsxs("div", { className: le.chevronIcons, children: [
|
|
3500
3508
|
/* @__PURE__ */ I.jsx(
|
|
3501
|
-
|
|
3509
|
+
ye,
|
|
3502
3510
|
{
|
|
3503
3511
|
name: "chevron-left",
|
|
3504
3512
|
onClick: () => {
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3513
|
+
Re(
|
|
3514
|
+
R,
|
|
3515
|
+
P.total,
|
|
3516
|
+
P.filteredLogs
|
|
3509
3517
|
);
|
|
3510
3518
|
}
|
|
3511
3519
|
}
|
|
3512
3520
|
),
|
|
3513
3521
|
/* @__PURE__ */ I.jsx(
|
|
3514
|
-
|
|
3522
|
+
ye,
|
|
3515
3523
|
{
|
|
3516
3524
|
name: "chevron-left",
|
|
3517
3525
|
onClick: () => {
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3526
|
+
ke(
|
|
3527
|
+
R,
|
|
3528
|
+
P.total,
|
|
3529
|
+
P.filteredLogs
|
|
3522
3530
|
);
|
|
3523
3531
|
}
|
|
3524
3532
|
}
|
|
@@ -3549,7 +3557,7 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3549
3557
|
!0
|
|
3550
3558
|
);
|
|
3551
3559
|
},
|
|
3552
|
-
children: /* @__PURE__ */ I.jsx(
|
|
3560
|
+
children: /* @__PURE__ */ I.jsx(ye, { name: tt.Download })
|
|
3553
3561
|
}
|
|
3554
3562
|
),
|
|
3555
3563
|
/* @__PURE__ */ I.jsx(
|
|
@@ -3559,8 +3567,8 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3559
3567
|
className: wt(le.copyIconBtn, {
|
|
3560
3568
|
[le.copyIconBtn__disabled]: z.length === 0
|
|
3561
3569
|
}),
|
|
3562
|
-
onClick:
|
|
3563
|
-
children: /* @__PURE__ */ I.jsx(
|
|
3570
|
+
onClick: fe,
|
|
3571
|
+
children: /* @__PURE__ */ I.jsx(ye, { name: tt.Copy })
|
|
3564
3572
|
}
|
|
3565
3573
|
)
|
|
3566
3574
|
] }) })
|
|
@@ -3576,56 +3584,56 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3576
3584
|
data: T,
|
|
3577
3585
|
initialTopMostItemIndex: T.length - 1 || 0,
|
|
3578
3586
|
totalCount: T.length,
|
|
3579
|
-
itemContent:
|
|
3587
|
+
itemContent: de,
|
|
3580
3588
|
onScroll: (C) => {
|
|
3581
|
-
C.currentTarget.scrollHeight - C.currentTarget.scrollTop <= C.currentTarget.clientHeight + Mo ||
|
|
3589
|
+
C.currentTarget.scrollHeight - C.currentTarget.scrollTop <= C.currentTarget.clientHeight + Mo || X.current.stopInterval();
|
|
3582
3590
|
},
|
|
3583
3591
|
atTopThreshold: zi,
|
|
3584
3592
|
atTopStateChange: (C) => {
|
|
3585
|
-
var
|
|
3586
|
-
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)
|
|
3587
3595
|
return;
|
|
3588
|
-
const W = () => T.length - a < 30 || a === 0 ? 10 : a,
|
|
3596
|
+
const W = () => T.length - a < 30 || a === 0 ? 10 : a, K = () => {
|
|
3589
3597
|
var q;
|
|
3590
3598
|
(q = S.current) == null || q.scrollToIndex({
|
|
3591
3599
|
index: W()
|
|
3592
3600
|
});
|
|
3593
3601
|
};
|
|
3594
|
-
C && !
|
|
3602
|
+
C && !A && ((N = X.current) == null || N.fetch(
|
|
3595
3603
|
"older",
|
|
3596
3604
|
d,
|
|
3597
|
-
|
|
3605
|
+
K
|
|
3598
3606
|
));
|
|
3599
3607
|
},
|
|
3600
3608
|
atBottomThreshold: Mo,
|
|
3601
3609
|
atBottomStateChange: (C) => {
|
|
3602
|
-
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)
|
|
3603
3611
|
return;
|
|
3604
3612
|
const W = () => {
|
|
3605
|
-
var
|
|
3606
|
-
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({
|
|
3607
3615
|
index: T.length - 50
|
|
3608
3616
|
}), c < l) {
|
|
3609
|
-
|
|
3617
|
+
X.current.stopInterval(), console.log(
|
|
3610
3618
|
"onNewerSuccess minLineLimit",
|
|
3611
3619
|
c,
|
|
3612
3620
|
l
|
|
3613
3621
|
), (q = S.current) == null || q.scrollToIndex({
|
|
3614
3622
|
index: T.length - 1
|
|
3615
|
-
}),
|
|
3623
|
+
}), X.current.startInterval("newer", d);
|
|
3616
3624
|
return;
|
|
3617
3625
|
}
|
|
3618
|
-
},
|
|
3619
|
-
var
|
|
3620
|
-
console.log("Error fetching newer logs"),
|
|
3626
|
+
}, K = () => {
|
|
3627
|
+
var N;
|
|
3628
|
+
console.log("Error fetching newer logs"), X.current.stopInterval(), (N = S.current) == null || N.scrollToIndex({
|
|
3621
3629
|
index: T.length - 10
|
|
3622
|
-
}),
|
|
3630
|
+
}), X.current.startInterval("newer", d);
|
|
3623
3631
|
};
|
|
3624
|
-
C &&
|
|
3632
|
+
C && X.current.fetch(
|
|
3625
3633
|
"newer",
|
|
3626
3634
|
d,
|
|
3627
3635
|
W,
|
|
3628
|
-
|
|
3636
|
+
K
|
|
3629
3637
|
);
|
|
3630
3638
|
}
|
|
3631
3639
|
}
|
|
@@ -3658,10 +3666,10 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
|
|
|
3658
3666
|
onClick: () => {
|
|
3659
3667
|
l && l(), s();
|
|
3660
3668
|
},
|
|
3661
|
-
children: /* @__PURE__ */ I.jsx(
|
|
3669
|
+
children: /* @__PURE__ */ I.jsx(ye, { name: "close-window" })
|
|
3662
3670
|
}
|
|
3663
3671
|
),
|
|
3664
|
-
/* @__PURE__ */ I.jsx("div", { className: rt.iosIcon, onClick: c, children: /* @__PURE__ */ I.jsx(
|
|
3672
|
+
/* @__PURE__ */ I.jsx("div", { className: rt.iosIcon, onClick: c, children: /* @__PURE__ */ I.jsx(ye, { name: "expand-window" }) })
|
|
3665
3673
|
] }) }),
|
|
3666
3674
|
/* @__PURE__ */ I.jsx("div", { children: n("title.error_log") })
|
|
3667
3675
|
] }),
|