@cagatayfdn/flora-components 0.0.149 → 0.0.150
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/{RealtimeLogModal-gZOv7y-z.js → ErrorLogModal-DhlD9tNj.js} +1353 -1291
- package/dist/ErrorLogModal.css +1 -1
- package/dist/ReactToastify.css +1 -1
- package/dist/components/ErrorLogModal/ErrorLogModal.js +18 -52
- package/dist/components/RealtimeLogModal/RealtimeLogModal.js +1 -1
- package/dist/components/index.js +98 -97
- package/dist/index.d.mts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +146 -145
- 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
- package/dist/RealtimeLogModal.css +0 -1
|
@@ -1,68 +1,79 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import j, { createElement as
|
|
3
|
-
import
|
|
4
|
-
import { d as Bt } from "./helper-1SQ9SI45.js";
|
|
5
|
-
import { c as Lt } from "./index-BHf7G3IG.js";
|
|
6
|
-
import co from "./utils/date.js";
|
|
7
|
-
import { startFetcher as pn } from "./utils/fetcher.js";
|
|
8
|
-
import Je, { t as gt } from "./locales/i18n.js";
|
|
9
|
-
import "./utils/yup.js";
|
|
10
|
-
import { N as xn } from "./index-H7XbDVmH.js";
|
|
1
|
+
import { j as I } from "./jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import j, { createElement as Tt, useRef as Lt, useState as Je, useEffect as ao } from "react";
|
|
3
|
+
import { c as wt } from "./index-BHf7G3IG.js";
|
|
11
4
|
import "./hooks/useAauth.js";
|
|
5
|
+
import Wo from "./hooks/useNiceModal.js";
|
|
6
|
+
import "./components/Drawer/Provider.js";
|
|
7
|
+
import be from "./components/Icon/index.js";
|
|
8
|
+
import { N as Ao } from "./index-H7XbDVmH.js";
|
|
12
9
|
import "./assets/images/500_error_2x.gif";
|
|
13
|
-
import {
|
|
10
|
+
import Qe, { t as pt } from "./locales/i18n.js";
|
|
14
11
|
import "./components/Tooltip/Tooltip.js";
|
|
15
12
|
import "./react-toastify.esm-BUWNP7Nm.js";
|
|
16
|
-
import
|
|
13
|
+
import uo from "./utils/date.js";
|
|
14
|
+
import Cn from "./components/Input/Input.js";
|
|
15
|
+
import Sn from "./components/ScrollContainer/ScrollContainer.js";
|
|
17
16
|
import "./components/Charts/index.js";
|
|
18
17
|
import "./components/Checkbox/Checkbox.js";
|
|
19
18
|
import "./components/Confirm/Confirm.js";
|
|
20
19
|
import "./components/Datepicker/Datepicker.js";
|
|
21
|
-
import "./components/
|
|
20
|
+
import mo from "./components/Divider/Divider.js";
|
|
22
21
|
import "./components/FileUpload/FileUpload.js";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import
|
|
22
|
+
import Oo from "./components/Modal/Modal.js";
|
|
23
|
+
import fo from "./components/Grid/Column.js";
|
|
24
|
+
import yn from "./components/Grid/Row.js";
|
|
25
|
+
import Pt from "./components/InfoDate/InfoDate.js";
|
|
26
|
+
import bn from "react-dom";
|
|
27
|
+
import { d as jt } from "./helper-1SQ9SI45.js";
|
|
28
|
+
import { startFetcher as Hn } from "./utils/fetcher.js";
|
|
29
|
+
import "./utils/yup.js";
|
|
30
|
+
import { FloraIcons as et } from "./assets/icons/flora-icons.js";
|
|
31
|
+
import xt from "./components/IconBox/IconBox.js";
|
|
32
|
+
import { S as _n } from "./Select-nhp2PiJK.js";
|
|
33
|
+
import kn from "./components/StatusTag/StatusTag.js";
|
|
33
34
|
import "./components/Switch/Switch.js";
|
|
34
35
|
import "./components/Textarea/Textarea.js";
|
|
35
|
-
import
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
import { AppearanceButton as ho, NotificationAppearanceType as En } from "./enums/appearance.js";
|
|
37
|
+
import go from "./components/Button/Button.js";
|
|
38
|
+
import { Notification as Rn } from "./components/Notification/Notification.js";
|
|
39
|
+
import './ReactToastify.css';import './ErrorLogModal.css';/* empty css */
|
|
40
|
+
import { u as zn } from "./useTranslation-CnCPcxVj.js";
|
|
41
|
+
import { T as Bn } from "./Trans-B4ILpbwK.js";
|
|
42
|
+
const Ln = "_realTimeLogModalStyle_ew0yg_1", jn = "_modalLeft_ew0yg_30", Mn = "_buttonGroup_ew0yg_37", Nn = "_iosIcon_ew0yg_48", nt = {
|
|
43
|
+
realTimeLogModalStyle: Ln,
|
|
44
|
+
modalLeft: jn,
|
|
45
|
+
buttonGroup: Mn,
|
|
46
|
+
iosIcon: Nn
|
|
47
|
+
}, kt = 0, Ge = 1, ot = 2, Po = 4;
|
|
48
|
+
function po(e) {
|
|
38
49
|
return () => e;
|
|
39
50
|
}
|
|
40
|
-
function
|
|
51
|
+
function Wn(e) {
|
|
41
52
|
e();
|
|
42
53
|
}
|
|
43
|
-
function
|
|
54
|
+
function Do(e, t) {
|
|
44
55
|
return (o) => e(t(o));
|
|
45
56
|
}
|
|
46
|
-
function
|
|
57
|
+
function xo(e, t) {
|
|
47
58
|
return () => e(t);
|
|
48
59
|
}
|
|
49
|
-
function
|
|
60
|
+
function An(e, t) {
|
|
50
61
|
return (o) => e(t, o);
|
|
51
62
|
}
|
|
52
|
-
function
|
|
63
|
+
function Ut(e) {
|
|
53
64
|
return e !== void 0;
|
|
54
65
|
}
|
|
55
|
-
function
|
|
66
|
+
function On(...e) {
|
|
56
67
|
return () => {
|
|
57
|
-
e.map(
|
|
68
|
+
e.map(Wn);
|
|
58
69
|
};
|
|
59
70
|
}
|
|
60
|
-
function
|
|
71
|
+
function dt() {
|
|
61
72
|
}
|
|
62
|
-
function
|
|
73
|
+
function Et(e, t) {
|
|
63
74
|
return t(e), e;
|
|
64
75
|
}
|
|
65
|
-
function
|
|
76
|
+
function Pn(e, t) {
|
|
66
77
|
return t(e);
|
|
67
78
|
}
|
|
68
79
|
function ie(...e) {
|
|
@@ -72,24 +83,24 @@ function Z(e, t) {
|
|
|
72
83
|
return e(Ge, t);
|
|
73
84
|
}
|
|
74
85
|
function F(e, t) {
|
|
75
|
-
e(
|
|
86
|
+
e(kt, t);
|
|
76
87
|
}
|
|
77
|
-
function
|
|
78
|
-
e(
|
|
88
|
+
function Kt(e) {
|
|
89
|
+
e(ot);
|
|
79
90
|
}
|
|
80
91
|
function le(e) {
|
|
81
|
-
return e(
|
|
92
|
+
return e(Po);
|
|
82
93
|
}
|
|
83
|
-
function
|
|
84
|
-
return Z(e,
|
|
94
|
+
function N(e, t) {
|
|
95
|
+
return Z(e, An(t, kt));
|
|
85
96
|
}
|
|
86
|
-
function
|
|
97
|
+
function ze(e, t) {
|
|
87
98
|
const o = e(Ge, (n) => {
|
|
88
99
|
o(), t(n);
|
|
89
100
|
});
|
|
90
101
|
return o;
|
|
91
102
|
}
|
|
92
|
-
function
|
|
103
|
+
function vo(e) {
|
|
93
104
|
let t, o;
|
|
94
105
|
return (n) => (r) => {
|
|
95
106
|
t = r, o && clearTimeout(o), o = setTimeout(() => {
|
|
@@ -97,41 +108,41 @@ function ho(e) {
|
|
|
97
108
|
}, e);
|
|
98
109
|
};
|
|
99
110
|
}
|
|
100
|
-
function
|
|
111
|
+
function Vo(e, t) {
|
|
101
112
|
return e === t;
|
|
102
113
|
}
|
|
103
|
-
function re(e =
|
|
114
|
+
function re(e = Vo) {
|
|
104
115
|
let t;
|
|
105
116
|
return (o) => (n) => {
|
|
106
117
|
e(t, n) || (t = n, o(n));
|
|
107
118
|
};
|
|
108
119
|
}
|
|
109
|
-
function
|
|
120
|
+
function O(e) {
|
|
110
121
|
return (t) => (o) => {
|
|
111
122
|
e(o) && t(o);
|
|
112
123
|
};
|
|
113
124
|
}
|
|
114
|
-
function
|
|
115
|
-
return (t) =>
|
|
125
|
+
function R(e) {
|
|
126
|
+
return (t) => Do(t, e);
|
|
116
127
|
}
|
|
117
|
-
function
|
|
128
|
+
function Ne(e) {
|
|
118
129
|
return (t) => () => {
|
|
119
130
|
t(e);
|
|
120
131
|
};
|
|
121
132
|
}
|
|
122
133
|
function v(e, ...t) {
|
|
123
|
-
const o =
|
|
134
|
+
const o = Dn(...t);
|
|
124
135
|
return (n, r) => {
|
|
125
136
|
switch (n) {
|
|
126
|
-
case
|
|
127
|
-
|
|
137
|
+
case ot:
|
|
138
|
+
Kt(e);
|
|
128
139
|
return;
|
|
129
140
|
case Ge:
|
|
130
141
|
return Z(e, o(r));
|
|
131
142
|
}
|
|
132
143
|
};
|
|
133
144
|
}
|
|
134
|
-
function
|
|
145
|
+
function We(e, t) {
|
|
135
146
|
return (o) => (n) => {
|
|
136
147
|
o(t = e(t, n));
|
|
137
148
|
};
|
|
@@ -156,8 +167,8 @@ function $(...e) {
|
|
|
156
167
|
return e.forEach((i, s) => {
|
|
157
168
|
const l = Math.pow(2, s);
|
|
158
169
|
Z(i, (c) => {
|
|
159
|
-
const
|
|
160
|
-
o = o | l, t[s] = c,
|
|
170
|
+
const a = o;
|
|
171
|
+
o = o | l, t[s] = c, a !== r && o === r && n && (n(), n = null);
|
|
161
172
|
});
|
|
162
173
|
}), (i) => (s) => {
|
|
163
174
|
const l = () => {
|
|
@@ -166,53 +177,53 @@ function $(...e) {
|
|
|
166
177
|
o === r ? l() : n = l;
|
|
167
178
|
};
|
|
168
179
|
}
|
|
169
|
-
function
|
|
170
|
-
return (t) => e.reduceRight(
|
|
180
|
+
function Dn(...e) {
|
|
181
|
+
return (t) => e.reduceRight(Pn, t);
|
|
171
182
|
}
|
|
172
|
-
function
|
|
183
|
+
function Vn(e) {
|
|
173
184
|
let t, o;
|
|
174
185
|
const n = () => t == null ? void 0 : t();
|
|
175
186
|
return function(r, i) {
|
|
176
187
|
switch (r) {
|
|
177
188
|
case Ge:
|
|
178
|
-
return i ? o === i ? void 0 : (n(), o = i, t = Z(e, i), t) : (n(),
|
|
179
|
-
case
|
|
189
|
+
return i ? o === i ? void 0 : (n(), o = i, t = Z(e, i), t) : (n(), dt);
|
|
190
|
+
case ot:
|
|
180
191
|
n(), o = null;
|
|
181
192
|
return;
|
|
182
193
|
}
|
|
183
194
|
};
|
|
184
195
|
}
|
|
185
|
-
function
|
|
196
|
+
function H(e) {
|
|
186
197
|
let t = e;
|
|
187
198
|
const o = K();
|
|
188
199
|
return (n, r) => {
|
|
189
200
|
switch (n) {
|
|
190
|
-
case
|
|
201
|
+
case kt:
|
|
191
202
|
t = r;
|
|
192
203
|
break;
|
|
193
204
|
case Ge: {
|
|
194
205
|
r(t);
|
|
195
206
|
break;
|
|
196
207
|
}
|
|
197
|
-
case
|
|
208
|
+
case Po:
|
|
198
209
|
return t;
|
|
199
210
|
}
|
|
200
211
|
return o(n, r);
|
|
201
212
|
};
|
|
202
213
|
}
|
|
203
214
|
function pe(e, t) {
|
|
204
|
-
return
|
|
215
|
+
return Et(H(t), (o) => N(e, o));
|
|
205
216
|
}
|
|
206
217
|
function K() {
|
|
207
218
|
const e = [];
|
|
208
219
|
return (t, o) => {
|
|
209
220
|
switch (t) {
|
|
210
|
-
case
|
|
221
|
+
case kt:
|
|
211
222
|
e.slice().forEach((n) => {
|
|
212
223
|
n(o);
|
|
213
224
|
});
|
|
214
225
|
return;
|
|
215
|
-
case
|
|
226
|
+
case ot:
|
|
216
227
|
e.splice(0, e.length);
|
|
217
228
|
return;
|
|
218
229
|
case Ge:
|
|
@@ -223,19 +234,19 @@ function K() {
|
|
|
223
234
|
}
|
|
224
235
|
};
|
|
225
236
|
}
|
|
226
|
-
function
|
|
227
|
-
return
|
|
237
|
+
function _e(e) {
|
|
238
|
+
return Et(K(), (t) => N(e, t));
|
|
228
239
|
}
|
|
229
240
|
function J(e, t = [], { singleton: o } = { singleton: !0 }) {
|
|
230
241
|
return {
|
|
231
242
|
constructor: e,
|
|
232
243
|
dependencies: t,
|
|
233
|
-
id:
|
|
244
|
+
id: Gn(),
|
|
234
245
|
singleton: o
|
|
235
246
|
};
|
|
236
247
|
}
|
|
237
|
-
const
|
|
238
|
-
function
|
|
248
|
+
const Gn = () => Symbol();
|
|
249
|
+
function Fn(e) {
|
|
239
250
|
const t = /* @__PURE__ */ new Map(), o = ({ constructor: n, dependencies: r, id: i, singleton: s }) => {
|
|
240
251
|
if (s && t.has(i))
|
|
241
252
|
return t.get(i);
|
|
@@ -255,8 +266,8 @@ function ae(...e) {
|
|
|
255
266
|
});
|
|
256
267
|
}), function(i, s) {
|
|
257
268
|
switch (i) {
|
|
258
|
-
case
|
|
259
|
-
|
|
269
|
+
case ot: {
|
|
270
|
+
Kt(t);
|
|
260
271
|
return;
|
|
261
272
|
}
|
|
262
273
|
case Ge:
|
|
@@ -264,36 +275,36 @@ function ae(...e) {
|
|
|
264
275
|
}
|
|
265
276
|
};
|
|
266
277
|
}
|
|
267
|
-
function
|
|
278
|
+
function W(e, t = Vo) {
|
|
268
279
|
return v(e, re(t));
|
|
269
280
|
}
|
|
270
|
-
function
|
|
281
|
+
function Dt(...e) {
|
|
271
282
|
return function(t, o) {
|
|
272
283
|
switch (t) {
|
|
273
|
-
case
|
|
284
|
+
case ot:
|
|
274
285
|
return;
|
|
275
286
|
case Ge:
|
|
276
|
-
return
|
|
287
|
+
return On(...e.map((n) => Z(n, o)));
|
|
277
288
|
}
|
|
278
289
|
};
|
|
279
290
|
}
|
|
280
291
|
var Te = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Te || {});
|
|
281
|
-
const
|
|
292
|
+
const $n = {
|
|
282
293
|
0: "debug",
|
|
283
294
|
3: "error",
|
|
284
295
|
1: "log",
|
|
285
296
|
2: "warn"
|
|
286
|
-
},
|
|
297
|
+
}, qn = () => typeof globalThis > "u" ? window : globalThis, Fe = J(
|
|
287
298
|
() => {
|
|
288
|
-
const e =
|
|
299
|
+
const e = H(
|
|
289
300
|
3
|
|
290
301
|
/* ERROR */
|
|
291
302
|
);
|
|
292
303
|
return {
|
|
293
|
-
log:
|
|
304
|
+
log: H((t, o, n = 1) => {
|
|
294
305
|
var r;
|
|
295
|
-
const i = (r =
|
|
296
|
-
n >= i && console[
|
|
306
|
+
const i = (r = qn().VIRTUOSO_LOG_LEVEL) != null ? r : le(e);
|
|
307
|
+
n >= i && console[$n[n]](
|
|
297
308
|
"%creact-virtuoso: %c%s %o",
|
|
298
309
|
"color: #0253b3; font-weight: bold",
|
|
299
310
|
"color: initial",
|
|
@@ -308,9 +319,9 @@ const jn = {
|
|
|
308
319
|
{ singleton: !0 }
|
|
309
320
|
);
|
|
310
321
|
function Ye(e, t, o) {
|
|
311
|
-
return
|
|
322
|
+
return Yt(e, t, o).callbackRef;
|
|
312
323
|
}
|
|
313
|
-
function
|
|
324
|
+
function Yt(e, t, o) {
|
|
314
325
|
const n = j.useRef(null);
|
|
315
326
|
let r = (s) => {
|
|
316
327
|
};
|
|
@@ -325,30 +336,30 @@ function Ut(e, t, o) {
|
|
|
325
336
|
s && t ? (i == null || i.observe(s), n.current = s) : (n.current && (i == null || i.unobserve(n.current)), n.current = null);
|
|
326
337
|
}, { callbackRef: r, ref: n };
|
|
327
338
|
}
|
|
328
|
-
function
|
|
329
|
-
const
|
|
339
|
+
function Un(e, t, o, n, r, i, s, l, c) {
|
|
340
|
+
const a = j.useCallback(
|
|
330
341
|
(h) => {
|
|
331
|
-
const
|
|
342
|
+
const w = Kn(h.children, t, l ? "offsetWidth" : "offsetHeight", r);
|
|
332
343
|
let g = h.parentElement;
|
|
333
344
|
for (; !g.dataset.virtuosoScroller; )
|
|
334
345
|
g = g.parentElement;
|
|
335
346
|
const p = g.lastElementChild.dataset.viewportType === "window";
|
|
336
|
-
let
|
|
337
|
-
p && (
|
|
338
|
-
const
|
|
347
|
+
let _;
|
|
348
|
+
p && (_ = g.ownerDocument.defaultView);
|
|
349
|
+
const b = s ? l ? s.scrollLeft : s.scrollTop : p ? l ? _.scrollX || _.document.documentElement.scrollLeft : _.scrollY || _.document.documentElement.scrollTop : l ? g.scrollLeft : g.scrollTop, x = s ? l ? s.scrollWidth : s.scrollHeight : p ? l ? _.document.documentElement.scrollWidth : _.document.documentElement.scrollHeight : l ? g.scrollWidth : g.scrollHeight, f = s ? l ? s.offsetWidth : s.offsetHeight : p ? l ? _.innerWidth : _.innerHeight : l ? g.offsetWidth : g.offsetHeight;
|
|
339
350
|
n({
|
|
340
351
|
scrollHeight: x,
|
|
341
|
-
scrollTop: Math.max(
|
|
352
|
+
scrollTop: Math.max(b, 0),
|
|
342
353
|
viewportHeight: f
|
|
343
354
|
}), i == null || i(
|
|
344
|
-
l ?
|
|
345
|
-
),
|
|
355
|
+
l ? Io("column-gap", getComputedStyle(h).columnGap, r) : Io("row-gap", getComputedStyle(h).rowGap, r)
|
|
356
|
+
), w !== null && e(w);
|
|
346
357
|
},
|
|
347
358
|
[e, t, r, i, s, n, l]
|
|
348
359
|
);
|
|
349
|
-
return
|
|
360
|
+
return Yt(a, o, c);
|
|
350
361
|
}
|
|
351
|
-
function
|
|
362
|
+
function Kn(e, t, o, n) {
|
|
352
363
|
const r = e.length;
|
|
353
364
|
if (r === 0)
|
|
354
365
|
return null;
|
|
@@ -357,91 +368,91 @@ function An(e, t, o, n) {
|
|
|
357
368
|
const l = e.item(s);
|
|
358
369
|
if (l.dataset.index === void 0)
|
|
359
370
|
continue;
|
|
360
|
-
const c = parseInt(l.dataset.index),
|
|
361
|
-
if (h === 0 && n("Zero-sized element, this should not happen", { child: l }, Te.ERROR), h ===
|
|
371
|
+
const c = parseInt(l.dataset.index), a = parseFloat(l.dataset.knownSize), h = t(l, o);
|
|
372
|
+
if (h === 0 && n("Zero-sized element, this should not happen", { child: l }, Te.ERROR), h === a)
|
|
362
373
|
continue;
|
|
363
|
-
const
|
|
364
|
-
i.length === 0 ||
|
|
374
|
+
const w = i[i.length - 1];
|
|
375
|
+
i.length === 0 || w.size !== h || w.endIndex !== c - 1 ? i.push({ endIndex: c, size: h, startIndex: c }) : i[i.length - 1].endIndex++;
|
|
365
376
|
}
|
|
366
377
|
return i;
|
|
367
378
|
}
|
|
368
|
-
function
|
|
379
|
+
function Io(e, t, o) {
|
|
369
380
|
return t !== "normal" && !(t != null && t.endsWith("px")) && o(`${e} was not resolved to pixel value correctly`, t, Te.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
370
381
|
}
|
|
371
|
-
function
|
|
382
|
+
function Go(e, t, o) {
|
|
372
383
|
const n = j.useRef(null), r = j.useCallback(
|
|
373
384
|
(c) => {
|
|
374
385
|
if (!(c != null && c.offsetParent))
|
|
375
386
|
return;
|
|
376
|
-
const
|
|
377
|
-
let
|
|
387
|
+
const a = c.getBoundingClientRect(), h = a.width;
|
|
388
|
+
let w, g;
|
|
378
389
|
if (t) {
|
|
379
|
-
const p = t.getBoundingClientRect(),
|
|
380
|
-
g = p.height - Math.max(0,
|
|
390
|
+
const p = t.getBoundingClientRect(), _ = a.top - p.top;
|
|
391
|
+
g = p.height - Math.max(0, _), w = _ + t.scrollTop;
|
|
381
392
|
} else {
|
|
382
393
|
const p = s.current.ownerDocument.defaultView;
|
|
383
|
-
g = p.innerHeight - Math.max(0,
|
|
394
|
+
g = p.innerHeight - Math.max(0, a.top), w = a.top + p.scrollY;
|
|
384
395
|
}
|
|
385
396
|
n.current = {
|
|
386
|
-
offsetTop:
|
|
397
|
+
offsetTop: w,
|
|
387
398
|
visibleHeight: g,
|
|
388
399
|
visibleWidth: h
|
|
389
400
|
}, e(n.current);
|
|
390
401
|
},
|
|
391
402
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
392
403
|
[e, t]
|
|
393
|
-
), { callbackRef: i, ref: s } =
|
|
404
|
+
), { callbackRef: i, ref: s } = Yt(r, !0, o), l = j.useCallback(() => {
|
|
394
405
|
r(s.current);
|
|
395
406
|
}, [r, s]);
|
|
396
407
|
return j.useEffect(() => {
|
|
397
408
|
var c;
|
|
398
409
|
if (t) {
|
|
399
410
|
t.addEventListener("scroll", l);
|
|
400
|
-
const
|
|
411
|
+
const a = new ResizeObserver(() => {
|
|
401
412
|
requestAnimationFrame(l);
|
|
402
413
|
});
|
|
403
|
-
return
|
|
404
|
-
t.removeEventListener("scroll", l),
|
|
414
|
+
return a.observe(t), () => {
|
|
415
|
+
t.removeEventListener("scroll", l), a.unobserve(t);
|
|
405
416
|
};
|
|
406
417
|
} else {
|
|
407
|
-
const
|
|
408
|
-
return
|
|
409
|
-
|
|
418
|
+
const a = (c = s.current) == null ? void 0 : c.ownerDocument.defaultView;
|
|
419
|
+
return a == null || a.addEventListener("scroll", l), a == null || a.addEventListener("resize", l), () => {
|
|
420
|
+
a == null || a.removeEventListener("scroll", l), a == null || a.removeEventListener("resize", l);
|
|
410
421
|
};
|
|
411
422
|
}
|
|
412
423
|
}, [l, t, s]), i;
|
|
413
424
|
}
|
|
414
425
|
const xe = J(
|
|
415
426
|
() => {
|
|
416
|
-
const e = K(), t = K(), o =
|
|
417
|
-
return
|
|
427
|
+
const e = K(), t = K(), o = H(0), n = K(), r = H(0), i = K(), s = K(), l = H(0), c = H(0), a = H(0), h = H(0), w = K(), g = K(), p = H(!1), _ = H(!1), b = H(!1);
|
|
428
|
+
return N(
|
|
418
429
|
v(
|
|
419
430
|
e,
|
|
420
|
-
|
|
431
|
+
R(({ scrollTop: x }) => x)
|
|
421
432
|
),
|
|
422
433
|
t
|
|
423
|
-
),
|
|
434
|
+
), N(
|
|
424
435
|
v(
|
|
425
436
|
e,
|
|
426
|
-
|
|
437
|
+
R(({ scrollHeight: x }) => x)
|
|
427
438
|
),
|
|
428
439
|
s
|
|
429
|
-
),
|
|
440
|
+
), N(t, r), {
|
|
430
441
|
deviation: o,
|
|
431
|
-
fixedFooterHeight:
|
|
442
|
+
fixedFooterHeight: a,
|
|
432
443
|
fixedHeaderHeight: c,
|
|
433
444
|
footerHeight: h,
|
|
434
445
|
headerHeight: l,
|
|
435
|
-
horizontalDirection:
|
|
446
|
+
horizontalDirection: _,
|
|
436
447
|
scrollBy: g,
|
|
437
448
|
// input
|
|
438
449
|
scrollContainerState: e,
|
|
439
450
|
scrollHeight: s,
|
|
440
451
|
scrollingInProgress: p,
|
|
441
452
|
// signals
|
|
442
|
-
scrollTo:
|
|
453
|
+
scrollTo: w,
|
|
443
454
|
scrollTop: t,
|
|
444
|
-
skipAnimationFrameInResizeObserver:
|
|
455
|
+
skipAnimationFrameInResizeObserver: b,
|
|
445
456
|
smoothScrollTargetReached: n,
|
|
446
457
|
// state
|
|
447
458
|
statefulScrollTop: r,
|
|
@@ -450,8 +461,8 @@ const xe = J(
|
|
|
450
461
|
},
|
|
451
462
|
[],
|
|
452
463
|
{ singleton: !0 }
|
|
453
|
-
),
|
|
454
|
-
function
|
|
464
|
+
), st = { lvl: 0 };
|
|
465
|
+
function Fo(e, t) {
|
|
455
466
|
const o = e.length;
|
|
456
467
|
if (o === 0)
|
|
457
468
|
return [];
|
|
@@ -464,11 +475,11 @@ function Ao(e, t) {
|
|
|
464
475
|
return i.push({ end: 1 / 0, start: n, value: r }), i;
|
|
465
476
|
}
|
|
466
477
|
function ee(e) {
|
|
467
|
-
return e ===
|
|
478
|
+
return e === st;
|
|
468
479
|
}
|
|
469
|
-
function
|
|
480
|
+
function lt(e, t) {
|
|
470
481
|
if (!ee(e))
|
|
471
|
-
return t === e.k ? e.v : t < e.k ?
|
|
482
|
+
return t === e.k ? e.v : t < e.k ? lt(e.l, t) : lt(e.r, t);
|
|
472
483
|
}
|
|
473
484
|
function Be(e, t, o = "k") {
|
|
474
485
|
if (ee(e))
|
|
@@ -481,21 +492,21 @@ function Be(e, t, o = "k") {
|
|
|
481
492
|
}
|
|
482
493
|
return Be(e.l, t, o);
|
|
483
494
|
}
|
|
484
|
-
function
|
|
485
|
-
return ee(e) ?
|
|
495
|
+
function He(e, t, o) {
|
|
496
|
+
return ee(e) ? Uo(t, o, 1) : t === e.k ? me(e, { k: t, v: o }) : t < e.k ? To(me(e, { l: He(e.l, t, o) })) : To(me(e, { r: He(e.r, t, o) }));
|
|
486
497
|
}
|
|
487
|
-
function
|
|
488
|
-
return
|
|
498
|
+
function tt() {
|
|
499
|
+
return st;
|
|
489
500
|
}
|
|
490
501
|
function Rt(e, t, o) {
|
|
491
502
|
if (ee(e))
|
|
492
503
|
return [];
|
|
493
504
|
const n = Be(e, t)[0];
|
|
494
|
-
return
|
|
505
|
+
return Yn(Gt(e, n, o));
|
|
495
506
|
}
|
|
496
|
-
function
|
|
507
|
+
function Vt(e, t) {
|
|
497
508
|
if (ee(e))
|
|
498
|
-
return
|
|
509
|
+
return st;
|
|
499
510
|
const { k: o, l: n, r } = e;
|
|
500
511
|
if (t === o) {
|
|
501
512
|
if (ee(n))
|
|
@@ -503,29 +514,29 @@ function Pt(e, t) {
|
|
|
503
514
|
if (ee(r))
|
|
504
515
|
return n;
|
|
505
516
|
{
|
|
506
|
-
const [i, s] =
|
|
507
|
-
return
|
|
517
|
+
const [i, s] = qo(n);
|
|
518
|
+
return Ct(me(e, { k: i, l: $o(n), v: s }));
|
|
508
519
|
}
|
|
509
520
|
} else
|
|
510
|
-
return t < o ?
|
|
521
|
+
return t < o ? Ct(me(e, { l: Vt(n, t) })) : Ct(me(e, { r: Vt(r, t) }));
|
|
511
522
|
}
|
|
512
523
|
function Ue(e) {
|
|
513
524
|
return ee(e) ? [] : [...Ue(e.l), { k: e.k, v: e.v }, ...Ue(e.r)];
|
|
514
525
|
}
|
|
515
|
-
function
|
|
526
|
+
function Gt(e, t, o) {
|
|
516
527
|
if (ee(e))
|
|
517
528
|
return [];
|
|
518
529
|
const { k: n, l: r, r: i, v: s } = e;
|
|
519
530
|
let l = [];
|
|
520
|
-
return n > t && (l = l.concat(
|
|
531
|
+
return n > t && (l = l.concat(Gt(r, t, o))), n >= t && n <= o && l.push({ k: n, v: s }), n <= o && (l = l.concat(Gt(i, t, o))), l;
|
|
521
532
|
}
|
|
522
|
-
function
|
|
533
|
+
function Ct(e) {
|
|
523
534
|
const { l: t, lvl: o, r: n } = e;
|
|
524
535
|
if (n.lvl >= o - 1 && t.lvl >= o - 1)
|
|
525
536
|
return e;
|
|
526
537
|
if (o > n.lvl + 1) {
|
|
527
|
-
if (
|
|
528
|
-
return
|
|
538
|
+
if (Mt(t))
|
|
539
|
+
return Ko(me(e, { lvl: o - 1 }));
|
|
529
540
|
if (!ee(t) && !ee(t.r))
|
|
530
541
|
return me(t.r, {
|
|
531
542
|
l: me(t, { r: t.r.l }),
|
|
@@ -537,24 +548,24 @@ function Tt(e) {
|
|
|
537
548
|
});
|
|
538
549
|
throw new Error("Unexpected empty nodes");
|
|
539
550
|
} else {
|
|
540
|
-
if (
|
|
541
|
-
return
|
|
551
|
+
if (Mt(e))
|
|
552
|
+
return Ft(me(e, { lvl: o - 1 }));
|
|
542
553
|
if (!ee(n) && !ee(n.l)) {
|
|
543
|
-
const r = n.l, i =
|
|
554
|
+
const r = n.l, i = Mt(r) ? n.lvl - 1 : n.lvl;
|
|
544
555
|
return me(r, {
|
|
545
556
|
l: me(e, {
|
|
546
557
|
lvl: o - 1,
|
|
547
558
|
r: r.l
|
|
548
559
|
}),
|
|
549
560
|
lvl: r.lvl + 1,
|
|
550
|
-
r:
|
|
561
|
+
r: Ft(me(n, { l: r.r, lvl: i }))
|
|
551
562
|
});
|
|
552
563
|
} else
|
|
553
564
|
throw new Error("Unexpected empty nodes");
|
|
554
565
|
}
|
|
555
566
|
}
|
|
556
567
|
function me(e, t) {
|
|
557
|
-
return
|
|
568
|
+
return Uo(
|
|
558
569
|
t.k !== void 0 ? t.k : e.k,
|
|
559
570
|
t.v !== void 0 ? t.v : e.v,
|
|
560
571
|
t.lvl !== void 0 ? t.lvl : e.lvl,
|
|
@@ -562,47 +573,47 @@ function me(e, t) {
|
|
|
562
573
|
t.r !== void 0 ? t.r : e.r
|
|
563
574
|
);
|
|
564
575
|
}
|
|
565
|
-
function
|
|
566
|
-
return ee(e.r) ? e.l :
|
|
576
|
+
function $o(e) {
|
|
577
|
+
return ee(e.r) ? e.l : Ct(me(e, { r: $o(e.r) }));
|
|
567
578
|
}
|
|
568
|
-
function
|
|
579
|
+
function Mt(e) {
|
|
569
580
|
return ee(e) || e.lvl > e.r.lvl;
|
|
570
581
|
}
|
|
571
|
-
function
|
|
572
|
-
return ee(e.r) ? [e.k, e.v] :
|
|
582
|
+
function qo(e) {
|
|
583
|
+
return ee(e.r) ? [e.k, e.v] : qo(e.r);
|
|
573
584
|
}
|
|
574
|
-
function
|
|
585
|
+
function Uo(e, t, o, n = st, r = st) {
|
|
575
586
|
return { k: e, l: n, lvl: o, r, v: t };
|
|
576
587
|
}
|
|
577
|
-
function
|
|
578
|
-
return
|
|
588
|
+
function To(e) {
|
|
589
|
+
return Ft(Ko(e));
|
|
579
590
|
}
|
|
580
|
-
function
|
|
591
|
+
function Ko(e) {
|
|
581
592
|
const { l: t } = e;
|
|
582
593
|
return !ee(t) && t.lvl === e.lvl ? me(t, { r: me(e, { l: t.r }) }) : e;
|
|
583
594
|
}
|
|
584
|
-
function
|
|
595
|
+
function Ft(e) {
|
|
585
596
|
const { lvl: t, r: o } = e;
|
|
586
597
|
return !ee(o) && !ee(o.r) && o.lvl === t && o.r.lvl === t ? me(o, { l: me(e, { r: o.l }), lvl: t + 1 }) : e;
|
|
587
598
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
599
|
+
function Yn(e) {
|
|
600
|
+
return Fo(e, ({ k: t, v: o }) => ({ index: t, value: o }));
|
|
590
601
|
}
|
|
591
|
-
function
|
|
602
|
+
function Yo(e, t) {
|
|
592
603
|
return !!(e && e.startIndex === t.startIndex && e.endIndex === t.endIndex);
|
|
593
604
|
}
|
|
594
|
-
function
|
|
605
|
+
function ct(e, t) {
|
|
595
606
|
return !!(e && e[0] === t[0] && e[1] === t[1]);
|
|
596
607
|
}
|
|
597
|
-
const
|
|
598
|
-
() => ({ recalcInProgress:
|
|
608
|
+
const Xt = J(
|
|
609
|
+
() => ({ recalcInProgress: H(!1) }),
|
|
599
610
|
[],
|
|
600
611
|
{ singleton: !0 }
|
|
601
612
|
);
|
|
602
|
-
function
|
|
603
|
-
return e[
|
|
613
|
+
function Xo(e, t, o) {
|
|
614
|
+
return e[yt(e, t, o)];
|
|
604
615
|
}
|
|
605
|
-
function
|
|
616
|
+
function yt(e, t, o, n = 0) {
|
|
606
617
|
let r = e.length - 1;
|
|
607
618
|
for (; n <= r; ) {
|
|
608
619
|
const i = Math.floor((n + r) / 2), s = e[i], l = o(s, t);
|
|
@@ -620,129 +631,129 @@ function Ct(e, t, o, n = 0) {
|
|
|
620
631
|
}
|
|
621
632
|
throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
|
|
622
633
|
}
|
|
623
|
-
function
|
|
624
|
-
const r =
|
|
634
|
+
function Xn(e, t, o, n) {
|
|
635
|
+
const r = yt(e, t, n), i = yt(e, o, n, r);
|
|
625
636
|
return e.slice(r, i + 1);
|
|
626
637
|
}
|
|
627
638
|
function Ve(e, t) {
|
|
628
639
|
return Math.round(e.getBoundingClientRect()[t]);
|
|
629
640
|
}
|
|
630
|
-
function
|
|
641
|
+
function zt(e) {
|
|
631
642
|
return !ee(e.groupOffsetTree);
|
|
632
643
|
}
|
|
633
|
-
function
|
|
644
|
+
function Zt({ index: e }, t) {
|
|
634
645
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
635
646
|
}
|
|
636
|
-
function
|
|
647
|
+
function Zn() {
|
|
637
648
|
return {
|
|
638
649
|
groupIndices: [],
|
|
639
|
-
groupOffsetTree:
|
|
650
|
+
groupOffsetTree: tt(),
|
|
640
651
|
lastIndex: 0,
|
|
641
652
|
lastOffset: 0,
|
|
642
653
|
lastSize: 0,
|
|
643
654
|
offsetTree: [],
|
|
644
|
-
sizeTree:
|
|
655
|
+
sizeTree: tt()
|
|
645
656
|
};
|
|
646
657
|
}
|
|
647
|
-
function
|
|
658
|
+
function Jn(e, t) {
|
|
648
659
|
let o = ee(e) ? 0 : 1 / 0;
|
|
649
660
|
for (const n of t) {
|
|
650
661
|
const { endIndex: r, size: i, startIndex: s } = n;
|
|
651
662
|
if (o = Math.min(o, s), ee(e)) {
|
|
652
|
-
e =
|
|
663
|
+
e = He(e, 0, i);
|
|
653
664
|
continue;
|
|
654
665
|
}
|
|
655
666
|
const l = Rt(e, s - 1, r + 1);
|
|
656
|
-
if (l.some(
|
|
667
|
+
if (l.some(ir(n)))
|
|
657
668
|
continue;
|
|
658
|
-
let c = !1,
|
|
659
|
-
for (const { end: h, start:
|
|
660
|
-
c ? (r >=
|
|
661
|
-
|
|
669
|
+
let c = !1, a = !1;
|
|
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 = He(e, r + 1, g));
|
|
672
|
+
a && (e = He(e, s, i));
|
|
662
673
|
}
|
|
663
674
|
return [e, o];
|
|
664
675
|
}
|
|
665
|
-
function
|
|
676
|
+
function Qn(e) {
|
|
666
677
|
return typeof e.groupIndex < "u";
|
|
667
678
|
}
|
|
668
|
-
function
|
|
679
|
+
function er({ offset: e }, t) {
|
|
669
680
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
670
681
|
}
|
|
671
|
-
function
|
|
682
|
+
function at(e, t, o) {
|
|
672
683
|
if (t.length === 0)
|
|
673
684
|
return 0;
|
|
674
|
-
const { index: n, offset: r, size: i } =
|
|
685
|
+
const { index: n, offset: r, size: i } = Xo(t, e, Zt), s = e - n, l = i * s + (s - 1) * o + r;
|
|
675
686
|
return l > 0 ? l + o : l;
|
|
676
687
|
}
|
|
677
|
-
function
|
|
678
|
-
if (!
|
|
688
|
+
function Zo(e, t) {
|
|
689
|
+
if (!zt(t))
|
|
679
690
|
return e;
|
|
680
691
|
let o = 0;
|
|
681
692
|
for (; t.groupIndices[o] <= e + o; )
|
|
682
693
|
o++;
|
|
683
694
|
return e + o;
|
|
684
695
|
}
|
|
685
|
-
function
|
|
686
|
-
if (
|
|
696
|
+
function Jo(e, t, o) {
|
|
697
|
+
if (Qn(e))
|
|
687
698
|
return t.groupIndices[e.groupIndex] + 1;
|
|
688
699
|
{
|
|
689
700
|
const n = e.index === "LAST" ? o : e.index;
|
|
690
|
-
let r =
|
|
701
|
+
let r = Zo(n, t);
|
|
691
702
|
return r = Math.max(0, r, Math.min(o, r)), r;
|
|
692
703
|
}
|
|
693
704
|
}
|
|
694
|
-
function
|
|
695
|
-
return n > 0 && (t = Math.max(t,
|
|
705
|
+
function tr(e, t, o, n = 0) {
|
|
706
|
+
return n > 0 && (t = Math.max(t, Xo(e, n, Zt).offset)), Fo(Xn(e, t, o, er), rr);
|
|
696
707
|
}
|
|
697
|
-
function
|
|
708
|
+
function or(e, [t, o, n, r]) {
|
|
698
709
|
t.length > 0 && n("received item sizes", t, Te.DEBUG);
|
|
699
710
|
const i = e.sizeTree;
|
|
700
711
|
let s = i, l = 0;
|
|
701
712
|
if (o.length > 0 && ee(i) && t.length === 2) {
|
|
702
713
|
const g = t[0].size, p = t[1].size;
|
|
703
|
-
s = o.reduce((
|
|
714
|
+
s = o.reduce((_, b) => He(He(_, b, g), b + 1, p), s);
|
|
704
715
|
} else
|
|
705
|
-
[s, l] =
|
|
716
|
+
[s, l] = Jn(s, t);
|
|
706
717
|
if (s === i)
|
|
707
718
|
return e;
|
|
708
|
-
const { lastIndex: c, lastOffset:
|
|
719
|
+
const { lastIndex: c, lastOffset: a, lastSize: h, offsetTree: w } = $t(e.offsetTree, l, s, r);
|
|
709
720
|
return {
|
|
710
721
|
groupIndices: o,
|
|
711
|
-
groupOffsetTree: o.reduce((g, p) =>
|
|
722
|
+
groupOffsetTree: o.reduce((g, p) => He(g, p, at(p, w, r)), tt()),
|
|
712
723
|
lastIndex: c,
|
|
713
|
-
lastOffset:
|
|
724
|
+
lastOffset: a,
|
|
714
725
|
lastSize: h,
|
|
715
|
-
offsetTree:
|
|
726
|
+
offsetTree: w,
|
|
716
727
|
sizeTree: s
|
|
717
728
|
};
|
|
718
729
|
}
|
|
719
|
-
function
|
|
730
|
+
function nr(e) {
|
|
720
731
|
return Ue(e).map(({ k: t, v: o }, n, r) => {
|
|
721
732
|
const i = r[n + 1];
|
|
722
733
|
return { endIndex: i ? i.k - 1 : 1 / 0, size: o, startIndex: t };
|
|
723
734
|
});
|
|
724
735
|
}
|
|
725
|
-
function
|
|
736
|
+
function wo(e, t) {
|
|
726
737
|
let o = 0, n = 0;
|
|
727
738
|
for (; o < e; )
|
|
728
739
|
o += t[n + 1] - t[n] - 1, n++;
|
|
729
740
|
return n - (o === e ? 0 : 1);
|
|
730
741
|
}
|
|
731
|
-
function
|
|
742
|
+
function $t(e, t, o, n) {
|
|
732
743
|
let r = e, i = 0, s = 0, l = 0, c = 0;
|
|
733
744
|
if (t !== 0) {
|
|
734
|
-
c =
|
|
735
|
-
const
|
|
736
|
-
i =
|
|
745
|
+
c = yt(r, t - 1, Zt), l = r[c].offset;
|
|
746
|
+
const a = Be(o, t - 1);
|
|
747
|
+
i = a[0], s = a[1], r.length && r[c].size === Be(o, t)[1] && (c -= 1), r = r.slice(0, c + 1);
|
|
737
748
|
} else
|
|
738
749
|
r = [];
|
|
739
|
-
for (const { start:
|
|
740
|
-
const
|
|
750
|
+
for (const { start: a, value: h } of Rt(o, t, 1 / 0)) {
|
|
751
|
+
const w = a - i, g = w * s + l + w * n;
|
|
741
752
|
r.push({
|
|
742
|
-
index:
|
|
753
|
+
index: a,
|
|
743
754
|
offset: g,
|
|
744
755
|
size: h
|
|
745
|
-
}), i =
|
|
756
|
+
}), i = a, l = g, s = h;
|
|
746
757
|
}
|
|
747
758
|
return {
|
|
748
759
|
lastIndex: i,
|
|
@@ -751,168 +762,168 @@ function Gt(e, t, o, n) {
|
|
|
751
762
|
offsetTree: r
|
|
752
763
|
};
|
|
753
764
|
}
|
|
754
|
-
function
|
|
765
|
+
function rr(e) {
|
|
755
766
|
return { index: e.index, value: e };
|
|
756
767
|
}
|
|
757
|
-
function
|
|
768
|
+
function ir(e) {
|
|
758
769
|
const { endIndex: t, size: o, startIndex: n } = e;
|
|
759
770
|
return (r) => r.start === n && (r.end === t || r.end === 1 / 0) && r.value === o;
|
|
760
771
|
}
|
|
761
|
-
const
|
|
772
|
+
const sr = {
|
|
762
773
|
offsetHeight: "height",
|
|
763
774
|
offsetWidth: "width"
|
|
764
|
-
},
|
|
775
|
+
}, Ae = J(
|
|
765
776
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
766
|
-
const o = K(), n = K(), r = pe(n, 0), i = K(), s = K(), l =
|
|
767
|
-
v(o, $(c, e, p),
|
|
768
|
-
|
|
777
|
+
const o = K(), n = K(), r = pe(n, 0), i = K(), s = K(), l = H(0), c = H([]), a = H(void 0), h = H(void 0), w = H((u, d) => Ve(u, sr[d])), g = H(void 0), p = H(0), _ = Zn(), b = pe(
|
|
778
|
+
v(o, $(c, e, p), We(or, _), re()),
|
|
779
|
+
_
|
|
769
780
|
), x = pe(
|
|
770
781
|
v(
|
|
771
782
|
c,
|
|
772
783
|
re(),
|
|
773
|
-
|
|
784
|
+
We((u, d) => ({ current: d, prev: u.current }), {
|
|
774
785
|
current: [],
|
|
775
786
|
prev: []
|
|
776
787
|
}),
|
|
777
|
-
|
|
788
|
+
R(({ prev: u }) => u)
|
|
778
789
|
),
|
|
779
790
|
[]
|
|
780
791
|
);
|
|
781
|
-
|
|
792
|
+
N(
|
|
782
793
|
v(
|
|
783
794
|
c,
|
|
784
|
-
|
|
785
|
-
$(
|
|
786
|
-
|
|
787
|
-
const
|
|
795
|
+
O((u) => u.length > 0),
|
|
796
|
+
$(b, p),
|
|
797
|
+
R(([u, d, C]) => {
|
|
798
|
+
const k = u.reduce((B, M, A) => He(B, M, at(M, d.offsetTree, C) || A), tt());
|
|
788
799
|
return {
|
|
789
800
|
...d,
|
|
790
|
-
groupIndices:
|
|
791
|
-
groupOffsetTree:
|
|
801
|
+
groupIndices: u,
|
|
802
|
+
groupOffsetTree: k
|
|
792
803
|
};
|
|
793
804
|
})
|
|
794
805
|
),
|
|
795
|
-
|
|
796
|
-
),
|
|
806
|
+
b
|
|
807
|
+
), N(
|
|
797
808
|
v(
|
|
798
809
|
n,
|
|
799
|
-
$(
|
|
800
|
-
|
|
801
|
-
|
|
810
|
+
$(b),
|
|
811
|
+
O(([u, { lastIndex: d }]) => u < d),
|
|
812
|
+
R(([u, { lastIndex: d, lastSize: C }]) => [
|
|
802
813
|
{
|
|
803
814
|
endIndex: d,
|
|
804
|
-
size:
|
|
805
|
-
startIndex:
|
|
815
|
+
size: C,
|
|
816
|
+
startIndex: u
|
|
806
817
|
}
|
|
807
818
|
])
|
|
808
819
|
),
|
|
809
820
|
o
|
|
810
|
-
),
|
|
821
|
+
), N(a, h);
|
|
811
822
|
const f = pe(
|
|
812
823
|
v(
|
|
813
|
-
|
|
814
|
-
|
|
824
|
+
a,
|
|
825
|
+
R((u) => u === void 0)
|
|
815
826
|
),
|
|
816
827
|
!0
|
|
817
828
|
);
|
|
818
|
-
|
|
829
|
+
N(
|
|
819
830
|
v(
|
|
820
831
|
h,
|
|
821
|
-
|
|
822
|
-
|
|
832
|
+
O((u) => u !== void 0 && ee(le(b).sizeTree)),
|
|
833
|
+
R((u) => [{ endIndex: 0, size: u, startIndex: 0 }])
|
|
823
834
|
),
|
|
824
835
|
o
|
|
825
836
|
);
|
|
826
|
-
const m =
|
|
837
|
+
const m = _e(
|
|
827
838
|
v(
|
|
828
839
|
o,
|
|
829
|
-
$(
|
|
830
|
-
|
|
831
|
-
({ sizes:
|
|
832
|
-
changed:
|
|
833
|
-
sizes:
|
|
840
|
+
$(b),
|
|
841
|
+
We(
|
|
842
|
+
({ sizes: u }, [d, C]) => ({
|
|
843
|
+
changed: C !== u,
|
|
844
|
+
sizes: C
|
|
834
845
|
}),
|
|
835
|
-
{ changed: !1, sizes:
|
|
846
|
+
{ changed: !1, sizes: _ }
|
|
836
847
|
),
|
|
837
|
-
|
|
848
|
+
R((u) => u.changed)
|
|
838
849
|
)
|
|
839
850
|
);
|
|
840
851
|
Z(
|
|
841
852
|
v(
|
|
842
853
|
l,
|
|
843
|
-
|
|
844
|
-
(
|
|
854
|
+
We(
|
|
855
|
+
(u, d) => ({ diff: u.prev - d, prev: d }),
|
|
845
856
|
{ diff: 0, prev: 0 }
|
|
846
857
|
),
|
|
847
|
-
|
|
858
|
+
R((u) => u.diff)
|
|
848
859
|
),
|
|
849
|
-
(
|
|
850
|
-
const { groupIndices: d } = le(
|
|
851
|
-
if (
|
|
852
|
-
F(t, !0), F(i,
|
|
853
|
-
else if (
|
|
854
|
-
const
|
|
855
|
-
|
|
860
|
+
(u) => {
|
|
861
|
+
const { groupIndices: d } = le(b);
|
|
862
|
+
if (u > 0)
|
|
863
|
+
F(t, !0), F(i, u + wo(u, d));
|
|
864
|
+
else if (u < 0) {
|
|
865
|
+
const C = le(x);
|
|
866
|
+
C.length > 0 && (u -= wo(-u, C)), F(s, u);
|
|
856
867
|
}
|
|
857
868
|
}
|
|
858
|
-
), Z(v(l, $(e)), ([
|
|
859
|
-
|
|
869
|
+
), Z(v(l, $(e)), ([u, d]) => {
|
|
870
|
+
u < 0 && d(
|
|
860
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",
|
|
861
872
|
{ firstItemIndex: l },
|
|
862
873
|
Te.ERROR
|
|
863
874
|
);
|
|
864
875
|
});
|
|
865
|
-
const
|
|
866
|
-
|
|
876
|
+
const S = _e(i);
|
|
877
|
+
N(
|
|
867
878
|
v(
|
|
868
879
|
i,
|
|
869
|
-
$(
|
|
870
|
-
|
|
871
|
-
const
|
|
872
|
-
if (
|
|
873
|
-
const M =
|
|
874
|
-
let
|
|
875
|
-
for (;
|
|
880
|
+
$(b),
|
|
881
|
+
R(([u, d]) => {
|
|
882
|
+
const C = d.groupIndices.length > 0, k = [], B = d.lastSize;
|
|
883
|
+
if (C) {
|
|
884
|
+
const M = lt(d.sizeTree, 0);
|
|
885
|
+
let A = 0, U = 0;
|
|
886
|
+
for (; A < u; ) {
|
|
876
887
|
const L = d.groupIndices[U], P = d.groupIndices.length === U + 1 ? 1 / 0 : d.groupIndices[U + 1] - L - 1;
|
|
877
|
-
|
|
888
|
+
k.push({
|
|
878
889
|
endIndex: L,
|
|
879
890
|
size: M,
|
|
880
891
|
startIndex: L
|
|
881
|
-
}),
|
|
892
|
+
}), k.push({
|
|
882
893
|
endIndex: L + 1 + P - 1,
|
|
883
894
|
size: B,
|
|
884
895
|
startIndex: L + 1
|
|
885
|
-
}), U++,
|
|
896
|
+
}), U++, A += P + 1;
|
|
886
897
|
}
|
|
887
898
|
const Q = Ue(d.sizeTree);
|
|
888
|
-
return
|
|
899
|
+
return A !== u && Q.shift(), Q.reduce(
|
|
889
900
|
(L, { k: P, v: ue }) => {
|
|
890
901
|
let ve = L.ranges;
|
|
891
902
|
return L.prevSize !== 0 && (ve = [
|
|
892
903
|
...L.ranges,
|
|
893
904
|
{
|
|
894
|
-
endIndex: P +
|
|
905
|
+
endIndex: P + u - 1,
|
|
895
906
|
size: L.prevSize,
|
|
896
907
|
startIndex: L.prevIndex
|
|
897
908
|
}
|
|
898
909
|
]), {
|
|
899
|
-
prevIndex: P +
|
|
910
|
+
prevIndex: P + u,
|
|
900
911
|
prevSize: ue,
|
|
901
912
|
ranges: ve
|
|
902
913
|
};
|
|
903
914
|
},
|
|
904
915
|
{
|
|
905
|
-
prevIndex:
|
|
916
|
+
prevIndex: u,
|
|
906
917
|
prevSize: 0,
|
|
907
|
-
ranges:
|
|
918
|
+
ranges: k
|
|
908
919
|
}
|
|
909
920
|
).ranges;
|
|
910
921
|
}
|
|
911
922
|
return Ue(d.sizeTree).reduce(
|
|
912
|
-
(M, { k:
|
|
913
|
-
prevIndex:
|
|
923
|
+
(M, { k: A, v: U }) => ({
|
|
924
|
+
prevIndex: A + u,
|
|
914
925
|
prevSize: U,
|
|
915
|
-
ranges: [...M.ranges, { endIndex:
|
|
926
|
+
ranges: [...M.ranges, { endIndex: A + u - 1, size: M.prevSize, startIndex: M.prevIndex }]
|
|
916
927
|
}),
|
|
917
928
|
{
|
|
918
929
|
prevIndex: 0,
|
|
@@ -924,80 +935,80 @@ const Yn = {
|
|
|
924
935
|
),
|
|
925
936
|
o
|
|
926
937
|
);
|
|
927
|
-
const
|
|
938
|
+
const z = _e(
|
|
928
939
|
v(
|
|
929
940
|
s,
|
|
930
|
-
$(
|
|
931
|
-
|
|
932
|
-
const
|
|
933
|
-
return
|
|
941
|
+
$(b, p),
|
|
942
|
+
R(([u, { offsetTree: d }, C]) => {
|
|
943
|
+
const k = -u;
|
|
944
|
+
return at(k, d, C);
|
|
934
945
|
})
|
|
935
946
|
)
|
|
936
947
|
);
|
|
937
|
-
return
|
|
948
|
+
return N(
|
|
938
949
|
v(
|
|
939
950
|
s,
|
|
940
|
-
$(
|
|
941
|
-
|
|
951
|
+
$(b, p),
|
|
952
|
+
R(([u, d, C]) => {
|
|
942
953
|
if (d.groupIndices.length > 0) {
|
|
943
954
|
if (ee(d.sizeTree))
|
|
944
955
|
return d;
|
|
945
|
-
let
|
|
956
|
+
let k = tt();
|
|
946
957
|
const B = le(x);
|
|
947
|
-
let M = 0,
|
|
948
|
-
for (; M < -
|
|
949
|
-
U = B[
|
|
950
|
-
const Q = B[
|
|
951
|
-
|
|
958
|
+
let M = 0, A = 0, U = 0;
|
|
959
|
+
for (; M < -u; ) {
|
|
960
|
+
U = B[A];
|
|
961
|
+
const Q = B[A + 1] - U - 1;
|
|
962
|
+
A++, M += Q + 1;
|
|
952
963
|
}
|
|
953
|
-
if (
|
|
954
|
-
const Q =
|
|
955
|
-
|
|
956
|
-
const L = Be(d.sizeTree, -
|
|
957
|
-
|
|
964
|
+
if (k = Ue(d.sizeTree).reduce((Q, { k: L, v: P }) => He(Q, Math.max(0, L + u), P), k), M !== -u) {
|
|
965
|
+
const Q = lt(d.sizeTree, U);
|
|
966
|
+
k = He(k, 0, Q);
|
|
967
|
+
const L = Be(d.sizeTree, -u + 1)[1];
|
|
968
|
+
k = He(k, 1, L);
|
|
958
969
|
}
|
|
959
970
|
return {
|
|
960
971
|
...d,
|
|
961
|
-
sizeTree:
|
|
962
|
-
|
|
972
|
+
sizeTree: k,
|
|
973
|
+
...$t(d.offsetTree, 0, k, C)
|
|
963
974
|
};
|
|
964
975
|
} else {
|
|
965
|
-
const
|
|
976
|
+
const k = Ue(d.sizeTree).reduce((B, { k: M, v: A }) => He(B, Math.max(0, M + u), A), tt());
|
|
966
977
|
return {
|
|
967
978
|
...d,
|
|
968
|
-
sizeTree:
|
|
969
|
-
|
|
979
|
+
sizeTree: k,
|
|
980
|
+
...$t(d.offsetTree, 0, k, C)
|
|
970
981
|
};
|
|
971
982
|
}
|
|
972
983
|
})
|
|
973
984
|
),
|
|
974
|
-
|
|
985
|
+
b
|
|
975
986
|
), {
|
|
976
|
-
beforeUnshiftWith:
|
|
987
|
+
beforeUnshiftWith: S,
|
|
977
988
|
// input
|
|
978
989
|
data: g,
|
|
979
990
|
defaultItemSize: h,
|
|
980
991
|
firstItemIndex: l,
|
|
981
|
-
fixedItemSize:
|
|
992
|
+
fixedItemSize: a,
|
|
982
993
|
gap: p,
|
|
983
994
|
groupIndices: c,
|
|
984
|
-
itemSize:
|
|
995
|
+
itemSize: w,
|
|
985
996
|
listRefresh: m,
|
|
986
997
|
shiftWith: s,
|
|
987
|
-
shiftWithOffset:
|
|
998
|
+
shiftWithOffset: z,
|
|
988
999
|
sizeRanges: o,
|
|
989
1000
|
// output
|
|
990
|
-
sizes:
|
|
1001
|
+
sizes: b,
|
|
991
1002
|
statefulTotalCount: r,
|
|
992
1003
|
totalCount: n,
|
|
993
1004
|
trackItemSizes: f,
|
|
994
1005
|
unshiftWith: i
|
|
995
1006
|
};
|
|
996
1007
|
},
|
|
997
|
-
ie(Fe,
|
|
1008
|
+
ie(Fe, Xt),
|
|
998
1009
|
{ singleton: !0 }
|
|
999
1010
|
);
|
|
1000
|
-
function
|
|
1011
|
+
function lr(e) {
|
|
1001
1012
|
return e.reduce(
|
|
1002
1013
|
(t, o) => (t.groupIndices.push(t.totalCount), t.totalCount += o + 1, t),
|
|
1003
1014
|
{
|
|
@@ -1006,39 +1017,39 @@ function Xn(e) {
|
|
|
1006
1017
|
}
|
|
1007
1018
|
);
|
|
1008
1019
|
}
|
|
1009
|
-
const
|
|
1020
|
+
const Qo = J(
|
|
1010
1021
|
([{ groupIndices: e, sizes: t, totalCount: o }, { headerHeight: n, scrollTop: r }]) => {
|
|
1011
|
-
const i = K(), s = K(), l =
|
|
1012
|
-
return
|
|
1022
|
+
const i = K(), s = K(), l = _e(v(i, R(lr)));
|
|
1023
|
+
return N(
|
|
1013
1024
|
v(
|
|
1014
1025
|
l,
|
|
1015
|
-
|
|
1026
|
+
R((c) => c.totalCount)
|
|
1016
1027
|
),
|
|
1017
1028
|
o
|
|
1018
|
-
),
|
|
1029
|
+
), N(
|
|
1019
1030
|
v(
|
|
1020
1031
|
l,
|
|
1021
|
-
|
|
1032
|
+
R((c) => c.groupIndices)
|
|
1022
1033
|
),
|
|
1023
1034
|
e
|
|
1024
|
-
),
|
|
1035
|
+
), N(
|
|
1025
1036
|
v(
|
|
1026
1037
|
ae(r, t, n),
|
|
1027
|
-
|
|
1028
|
-
|
|
1038
|
+
O(([c, a]) => zt(a)),
|
|
1039
|
+
R(([c, a, h]) => Be(a.groupOffsetTree, Math.max(c - h, 0), "v")[0]),
|
|
1029
1040
|
re(),
|
|
1030
|
-
|
|
1041
|
+
R((c) => [c])
|
|
1031
1042
|
),
|
|
1032
1043
|
s
|
|
1033
1044
|
), { groupCounts: i, topItemsIndexes: s };
|
|
1034
1045
|
},
|
|
1035
|
-
ie(
|
|
1046
|
+
ie(Ae, xe)
|
|
1036
1047
|
), $e = J(
|
|
1037
1048
|
([{ log: e }]) => {
|
|
1038
|
-
const t =
|
|
1049
|
+
const t = H(!1), o = _e(
|
|
1039
1050
|
v(
|
|
1040
1051
|
t,
|
|
1041
|
-
|
|
1052
|
+
O((n) => n),
|
|
1042
1053
|
re()
|
|
1043
1054
|
)
|
|
1044
1055
|
);
|
|
@@ -1048,12 +1059,12 @@ const qo = J(
|
|
|
1048
1059
|
},
|
|
1049
1060
|
ie(Fe),
|
|
1050
1061
|
{ singleton: !0 }
|
|
1051
|
-
),
|
|
1052
|
-
function
|
|
1062
|
+
), cr = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
|
|
1063
|
+
function en(e) {
|
|
1053
1064
|
const t = typeof e == "number" ? { index: e } : e;
|
|
1054
|
-
return t.align || (t.align = "start"), (!t.behavior || !
|
|
1065
|
+
return t.align || (t.align = "start"), (!t.behavior || !cr) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
|
|
1055
1066
|
}
|
|
1056
|
-
const
|
|
1067
|
+
const mt = J(
|
|
1057
1068
|
([
|
|
1058
1069
|
{ gap: e, listRefresh: t, sizes: o, totalCount: n },
|
|
1059
1070
|
{
|
|
@@ -1062,61 +1073,61 @@ const dt = J(
|
|
|
1062
1073
|
footerHeight: s,
|
|
1063
1074
|
headerHeight: l,
|
|
1064
1075
|
scrollingInProgress: c,
|
|
1065
|
-
scrollTo:
|
|
1076
|
+
scrollTo: a,
|
|
1066
1077
|
smoothScrollTargetReached: h,
|
|
1067
|
-
viewportHeight:
|
|
1078
|
+
viewportHeight: w
|
|
1068
1079
|
},
|
|
1069
1080
|
{ log: g }
|
|
1070
1081
|
]) => {
|
|
1071
|
-
const p = K(),
|
|
1082
|
+
const p = K(), _ = K(), b = H(0);
|
|
1072
1083
|
let x = null, f = null, m = null;
|
|
1073
|
-
function
|
|
1084
|
+
function S() {
|
|
1074
1085
|
x && (x(), x = null), m && (m(), m = null), f && (clearTimeout(f), f = null), F(c, !1);
|
|
1075
1086
|
}
|
|
1076
|
-
return
|
|
1087
|
+
return N(
|
|
1077
1088
|
v(
|
|
1078
1089
|
p,
|
|
1079
|
-
$(o,
|
|
1090
|
+
$(o, w, n, b, l, s, g),
|
|
1080
1091
|
$(e, i, r),
|
|
1081
|
-
|
|
1092
|
+
R(
|
|
1082
1093
|
([
|
|
1083
|
-
[
|
|
1094
|
+
[z, u, d, C, k, B, M, A],
|
|
1084
1095
|
U,
|
|
1085
1096
|
Q,
|
|
1086
1097
|
L
|
|
1087
1098
|
]) => {
|
|
1088
|
-
const P =
|
|
1089
|
-
let de =
|
|
1090
|
-
ue === "end" ? (de += Q + Be(
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1099
|
+
const P = en(z), { align: ue, behavior: ve, offset: we } = P, Ce = C - 1, he = Jo(P, u, Ce);
|
|
1100
|
+
let de = at(he, u.offsetTree, U) + B;
|
|
1101
|
+
ue === "end" ? (de += Q + Be(u.sizeTree, he)[1] - d + L, he === Ce && (de += M)) : ue === "center" ? de += (Q + Be(u.sizeTree, he)[1] - d + L) / 2 : de -= k, we && (de += we);
|
|
1102
|
+
const Oe = (Ie) => {
|
|
1103
|
+
S(), Ie ? (A("retrying to scroll to", { location: z }, Te.DEBUG), F(p, z)) : (F(_, !0), A("list did not change, scroll successful", {}, Te.DEBUG));
|
|
1093
1104
|
};
|
|
1094
|
-
if (
|
|
1105
|
+
if (S(), ve === "smooth") {
|
|
1095
1106
|
let Ie = !1;
|
|
1096
1107
|
m = Z(t, (Le) => {
|
|
1097
1108
|
Ie = Ie || Le;
|
|
1098
|
-
}), x =
|
|
1099
|
-
|
|
1109
|
+
}), x = ze(h, () => {
|
|
1110
|
+
Oe(Ie);
|
|
1100
1111
|
});
|
|
1101
1112
|
} else
|
|
1102
|
-
x =
|
|
1113
|
+
x = ze(v(t, ar(150)), Oe);
|
|
1103
1114
|
return f = setTimeout(() => {
|
|
1104
|
-
|
|
1105
|
-
}, 1200), F(c, !0),
|
|
1115
|
+
S();
|
|
1116
|
+
}, 1200), F(c, !0), A("scrolling from index to", { behavior: ve, index: he, top: de }, Te.DEBUG), { behavior: ve, top: de };
|
|
1106
1117
|
}
|
|
1107
1118
|
)
|
|
1108
1119
|
),
|
|
1109
|
-
|
|
1120
|
+
a
|
|
1110
1121
|
), {
|
|
1111
|
-
scrollTargetReached:
|
|
1122
|
+
scrollTargetReached: _,
|
|
1112
1123
|
scrollToIndex: p,
|
|
1113
|
-
topListHeight:
|
|
1124
|
+
topListHeight: b
|
|
1114
1125
|
};
|
|
1115
1126
|
},
|
|
1116
|
-
ie(
|
|
1127
|
+
ie(Ae, xe, Fe),
|
|
1117
1128
|
{ singleton: !0 }
|
|
1118
1129
|
);
|
|
1119
|
-
function
|
|
1130
|
+
function ar(e) {
|
|
1120
1131
|
return (t) => {
|
|
1121
1132
|
const o = setTimeout(() => {
|
|
1122
1133
|
t(!1);
|
|
@@ -1126,63 +1137,63 @@ function Jn(e) {
|
|
|
1126
1137
|
};
|
|
1127
1138
|
};
|
|
1128
1139
|
}
|
|
1129
|
-
function
|
|
1140
|
+
function Jt(e, t) {
|
|
1130
1141
|
e == 0 ? t() : requestAnimationFrame(() => {
|
|
1131
|
-
|
|
1142
|
+
Jt(e - 1, t);
|
|
1132
1143
|
});
|
|
1133
1144
|
}
|
|
1134
|
-
function
|
|
1145
|
+
function Qt(e, t) {
|
|
1135
1146
|
const o = t - 1;
|
|
1136
1147
|
return typeof e == "number" ? e : e.index === "LAST" ? o : e.index;
|
|
1137
1148
|
}
|
|
1138
|
-
const
|
|
1149
|
+
const ft = J(
|
|
1139
1150
|
([{ defaultItemSize: e, listRefresh: t, sizes: o }, { scrollTop: n }, { scrollTargetReached: r, scrollToIndex: i }, { didMount: s }]) => {
|
|
1140
|
-
const l =
|
|
1141
|
-
return
|
|
1151
|
+
const l = H(!0), c = H(0), a = H(!0);
|
|
1152
|
+
return N(
|
|
1142
1153
|
v(
|
|
1143
1154
|
s,
|
|
1144
1155
|
$(c),
|
|
1145
|
-
|
|
1146
|
-
|
|
1156
|
+
O(([h, w]) => !!w),
|
|
1157
|
+
Ne(!1)
|
|
1147
1158
|
),
|
|
1148
1159
|
l
|
|
1149
|
-
),
|
|
1160
|
+
), N(
|
|
1150
1161
|
v(
|
|
1151
1162
|
s,
|
|
1152
1163
|
$(c),
|
|
1153
|
-
|
|
1154
|
-
|
|
1164
|
+
O(([h, w]) => !!w),
|
|
1165
|
+
Ne(!1)
|
|
1155
1166
|
),
|
|
1156
|
-
|
|
1167
|
+
a
|
|
1157
1168
|
), Z(
|
|
1158
1169
|
v(
|
|
1159
1170
|
ae(t, s),
|
|
1160
|
-
$(l, o, e,
|
|
1161
|
-
|
|
1171
|
+
$(l, o, e, a),
|
|
1172
|
+
O(([[, h], w, { sizeTree: g }, p, _]) => h && (!ee(g) || Ut(p)) && !w && !_),
|
|
1162
1173
|
$(c)
|
|
1163
1174
|
),
|
|
1164
1175
|
([, h]) => {
|
|
1165
|
-
|
|
1166
|
-
F(
|
|
1167
|
-
}),
|
|
1168
|
-
|
|
1176
|
+
ze(r, () => {
|
|
1177
|
+
F(a, !0);
|
|
1178
|
+
}), Jt(4, () => {
|
|
1179
|
+
ze(n, () => {
|
|
1169
1180
|
F(l, !0);
|
|
1170
1181
|
}), F(i, h);
|
|
1171
1182
|
});
|
|
1172
1183
|
}
|
|
1173
1184
|
), {
|
|
1174
|
-
initialItemFinalLocationReached:
|
|
1185
|
+
initialItemFinalLocationReached: a,
|
|
1175
1186
|
initialTopMostItemIndex: c,
|
|
1176
1187
|
scrolledToInitialItem: l
|
|
1177
1188
|
};
|
|
1178
1189
|
},
|
|
1179
|
-
ie(
|
|
1190
|
+
ie(Ae, xe, mt, $e),
|
|
1180
1191
|
{ singleton: !0 }
|
|
1181
1192
|
);
|
|
1182
|
-
function
|
|
1193
|
+
function tn(e, t) {
|
|
1183
1194
|
return Math.abs(e - t) < 1.01;
|
|
1184
1195
|
}
|
|
1185
|
-
const
|
|
1196
|
+
const ut = "up", rt = "down", ur = "none", dr = {
|
|
1186
1197
|
atBottom: !1,
|
|
1187
1198
|
notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
|
|
1188
1199
|
state: {
|
|
@@ -1191,184 +1202,184 @@ const at = "up", nt = "down", Qn = "none", er = {
|
|
|
1191
1202
|
scrollTop: 0,
|
|
1192
1203
|
viewportHeight: 0
|
|
1193
1204
|
}
|
|
1194
|
-
},
|
|
1195
|
-
const s =
|
|
1205
|
+
}, mr = 0, ht = J(([{ footerHeight: e, headerHeight: t, scrollBy: o, scrollContainerState: n, scrollTop: r, viewportHeight: i }]) => {
|
|
1206
|
+
const s = H(!1), l = H(!0), c = K(), a = K(), h = H(4), w = H(mr), g = pe(
|
|
1196
1207
|
v(
|
|
1197
|
-
|
|
1208
|
+
Dt(v(W(r), Ke(1), Ne(!0)), v(W(r), Ke(1), Ne(!1), vo(100))),
|
|
1198
1209
|
re()
|
|
1199
1210
|
),
|
|
1200
1211
|
!1
|
|
1201
1212
|
), p = pe(
|
|
1202
|
-
v(
|
|
1213
|
+
v(Dt(v(o, Ne(!0)), v(o, Ne(!1), vo(200))), re()),
|
|
1203
1214
|
!1
|
|
1204
1215
|
);
|
|
1205
|
-
|
|
1216
|
+
N(
|
|
1206
1217
|
v(
|
|
1207
|
-
ae(
|
|
1208
|
-
|
|
1218
|
+
ae(W(r), W(w)),
|
|
1219
|
+
R(([m, S]) => m <= S),
|
|
1209
1220
|
re()
|
|
1210
1221
|
),
|
|
1211
1222
|
l
|
|
1212
|
-
),
|
|
1213
|
-
const
|
|
1223
|
+
), N(v(l, Pe(50)), a);
|
|
1224
|
+
const _ = _e(
|
|
1214
1225
|
v(
|
|
1215
|
-
ae(n,
|
|
1216
|
-
|
|
1217
|
-
const B =
|
|
1218
|
-
scrollHeight:
|
|
1219
|
-
scrollTop:
|
|
1220
|
-
viewportHeight:
|
|
1226
|
+
ae(n, W(i), W(t), W(e), W(h)),
|
|
1227
|
+
We((m, [{ scrollHeight: S, scrollTop: z }, u, d, C, k]) => {
|
|
1228
|
+
const B = z + u - S > -k, M = {
|
|
1229
|
+
scrollHeight: S,
|
|
1230
|
+
scrollTop: z,
|
|
1231
|
+
viewportHeight: u
|
|
1221
1232
|
};
|
|
1222
1233
|
if (B) {
|
|
1223
1234
|
let U, Q;
|
|
1224
|
-
return
|
|
1235
|
+
return z > m.state.scrollTop ? (U = "SCROLLED_DOWN", Q = m.state.scrollTop - z) : (U = "SIZE_DECREASED", Q = m.state.scrollTop - z || m.scrollTopDelta), {
|
|
1225
1236
|
atBottom: !0,
|
|
1226
1237
|
atBottomBecause: U,
|
|
1227
1238
|
scrollTopDelta: Q,
|
|
1228
1239
|
state: M
|
|
1229
1240
|
};
|
|
1230
1241
|
}
|
|
1231
|
-
let
|
|
1232
|
-
return M.scrollHeight > m.state.scrollHeight ?
|
|
1242
|
+
let A;
|
|
1243
|
+
return M.scrollHeight > m.state.scrollHeight ? A = "SIZE_INCREASED" : u < m.state.viewportHeight ? A = "VIEWPORT_HEIGHT_DECREASING" : z < m.state.scrollTop ? A = "SCROLLING_UPWARDS" : A = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
|
|
1233
1244
|
atBottom: !1,
|
|
1234
|
-
notAtBottomBecause:
|
|
1245
|
+
notAtBottomBecause: A,
|
|
1235
1246
|
state: M
|
|
1236
1247
|
};
|
|
1237
|
-
},
|
|
1238
|
-
re((m,
|
|
1248
|
+
}, dr),
|
|
1249
|
+
re((m, S) => m && m.atBottom === S.atBottom)
|
|
1239
1250
|
)
|
|
1240
|
-
),
|
|
1251
|
+
), b = pe(
|
|
1241
1252
|
v(
|
|
1242
1253
|
n,
|
|
1243
|
-
|
|
1244
|
-
(m, { scrollHeight:
|
|
1245
|
-
if (
|
|
1254
|
+
We(
|
|
1255
|
+
(m, { scrollHeight: S, scrollTop: z, viewportHeight: u }) => {
|
|
1256
|
+
if (tn(m.scrollHeight, S))
|
|
1246
1257
|
return {
|
|
1247
1258
|
changed: !1,
|
|
1248
1259
|
jump: 0,
|
|
1249
|
-
scrollHeight:
|
|
1250
|
-
scrollTop:
|
|
1260
|
+
scrollHeight: S,
|
|
1261
|
+
scrollTop: z
|
|
1251
1262
|
};
|
|
1252
1263
|
{
|
|
1253
|
-
const d =
|
|
1254
|
-
return m.scrollTop !==
|
|
1264
|
+
const d = S - (z + u) < 1;
|
|
1265
|
+
return m.scrollTop !== z && d ? {
|
|
1255
1266
|
changed: !0,
|
|
1256
|
-
jump: m.scrollTop -
|
|
1257
|
-
scrollHeight:
|
|
1258
|
-
scrollTop:
|
|
1267
|
+
jump: m.scrollTop - z,
|
|
1268
|
+
scrollHeight: S,
|
|
1269
|
+
scrollTop: z
|
|
1259
1270
|
} : {
|
|
1260
1271
|
changed: !0,
|
|
1261
1272
|
jump: 0,
|
|
1262
|
-
scrollHeight:
|
|
1263
|
-
scrollTop:
|
|
1273
|
+
scrollHeight: S,
|
|
1274
|
+
scrollTop: z
|
|
1264
1275
|
};
|
|
1265
1276
|
}
|
|
1266
1277
|
},
|
|
1267
1278
|
{ changed: !1, jump: 0, scrollHeight: 0, scrollTop: 0 }
|
|
1268
1279
|
),
|
|
1269
|
-
|
|
1270
|
-
|
|
1280
|
+
O((m) => m.changed),
|
|
1281
|
+
R((m) => m.jump)
|
|
1271
1282
|
),
|
|
1272
1283
|
0
|
|
1273
1284
|
);
|
|
1274
|
-
|
|
1285
|
+
N(
|
|
1275
1286
|
v(
|
|
1276
|
-
|
|
1277
|
-
|
|
1287
|
+
_,
|
|
1288
|
+
R((m) => m.atBottom)
|
|
1278
1289
|
),
|
|
1279
1290
|
s
|
|
1280
|
-
),
|
|
1281
|
-
const x =
|
|
1282
|
-
|
|
1291
|
+
), N(v(s, Pe(50)), c);
|
|
1292
|
+
const x = H(rt);
|
|
1293
|
+
N(
|
|
1283
1294
|
v(
|
|
1284
1295
|
n,
|
|
1285
|
-
|
|
1296
|
+
R(({ scrollTop: m }) => m),
|
|
1286
1297
|
re(),
|
|
1287
|
-
|
|
1288
|
-
(m,
|
|
1289
|
-
{ direction:
|
|
1298
|
+
We(
|
|
1299
|
+
(m, S) => le(p) ? { direction: m.direction, prevScrollTop: S } : { direction: S < m.prevScrollTop ? ut : rt, prevScrollTop: S },
|
|
1300
|
+
{ direction: rt, prevScrollTop: 0 }
|
|
1290
1301
|
),
|
|
1291
|
-
|
|
1302
|
+
R((m) => m.direction)
|
|
1292
1303
|
),
|
|
1293
1304
|
x
|
|
1294
|
-
),
|
|
1295
|
-
const f =
|
|
1296
|
-
return
|
|
1305
|
+
), N(v(n, Pe(50), Ne(ur)), x);
|
|
1306
|
+
const f = H(0);
|
|
1307
|
+
return N(
|
|
1297
1308
|
v(
|
|
1298
1309
|
g,
|
|
1299
|
-
|
|
1300
|
-
|
|
1310
|
+
O((m) => !m),
|
|
1311
|
+
Ne(0)
|
|
1301
1312
|
),
|
|
1302
1313
|
f
|
|
1303
|
-
),
|
|
1314
|
+
), N(
|
|
1304
1315
|
v(
|
|
1305
1316
|
r,
|
|
1306
1317
|
Pe(100),
|
|
1307
1318
|
$(g),
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1319
|
+
O(([m, S]) => !!S),
|
|
1320
|
+
We(([m, S], [z]) => [S, z], [0, 0]),
|
|
1321
|
+
R(([m, S]) => S - m)
|
|
1311
1322
|
),
|
|
1312
1323
|
f
|
|
1313
1324
|
), {
|
|
1314
|
-
atBottomState:
|
|
1325
|
+
atBottomState: _,
|
|
1315
1326
|
atBottomStateChange: c,
|
|
1316
1327
|
atBottomThreshold: h,
|
|
1317
|
-
atTopStateChange:
|
|
1318
|
-
atTopThreshold:
|
|
1328
|
+
atTopStateChange: a,
|
|
1329
|
+
atTopThreshold: w,
|
|
1319
1330
|
isAtBottom: s,
|
|
1320
1331
|
isAtTop: l,
|
|
1321
1332
|
isScrolling: g,
|
|
1322
|
-
lastJumpDueToItemResize:
|
|
1333
|
+
lastJumpDueToItemResize: b,
|
|
1323
1334
|
scrollDirection: x,
|
|
1324
1335
|
scrollVelocity: f
|
|
1325
1336
|
};
|
|
1326
|
-
}, ie(xe)),
|
|
1327
|
-
function
|
|
1328
|
-
return typeof e == "number" ? o ===
|
|
1337
|
+
}, ie(xe)), bt = "top", Ht = "bottom", Co = "none";
|
|
1338
|
+
function So(e, t, o) {
|
|
1339
|
+
return typeof e == "number" ? o === ut && t === bt || o === rt && t === Ht ? e : 0 : o === ut ? t === bt ? e.main : e.reverse : t === Ht ? e.main : e.reverse;
|
|
1329
1340
|
}
|
|
1330
|
-
function
|
|
1341
|
+
function yo(e, t) {
|
|
1331
1342
|
var o;
|
|
1332
1343
|
return typeof e == "number" ? e : (o = e[t]) != null ? o : 0;
|
|
1333
1344
|
}
|
|
1334
|
-
const
|
|
1345
|
+
const eo = J(
|
|
1335
1346
|
([{ deviation: e, fixedHeaderHeight: t, headerHeight: o, scrollTop: n, viewportHeight: r }]) => {
|
|
1336
|
-
const i = K(), s =
|
|
1347
|
+
const i = K(), s = H(0), l = H(0), c = H(0), a = pe(
|
|
1337
1348
|
v(
|
|
1338
1349
|
ae(
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1350
|
+
W(n),
|
|
1351
|
+
W(r),
|
|
1352
|
+
W(o),
|
|
1353
|
+
W(i, ct),
|
|
1354
|
+
W(c),
|
|
1355
|
+
W(s),
|
|
1356
|
+
W(t),
|
|
1357
|
+
W(e),
|
|
1358
|
+
W(l)
|
|
1348
1359
|
),
|
|
1349
|
-
|
|
1360
|
+
R(
|
|
1350
1361
|
([
|
|
1351
1362
|
h,
|
|
1352
|
-
|
|
1363
|
+
w,
|
|
1353
1364
|
g,
|
|
1354
|
-
[p,
|
|
1355
|
-
|
|
1365
|
+
[p, _],
|
|
1366
|
+
b,
|
|
1356
1367
|
x,
|
|
1357
1368
|
f,
|
|
1358
1369
|
m,
|
|
1359
|
-
|
|
1370
|
+
S
|
|
1360
1371
|
]) => {
|
|
1361
|
-
const
|
|
1362
|
-
let
|
|
1363
|
-
const
|
|
1364
|
-
return p -= m, p += g + f,
|
|
1365
|
-
Math.max(
|
|
1366
|
-
|
|
1372
|
+
const z = h - m, u = x + f, d = Math.max(g - z, 0);
|
|
1373
|
+
let C = Co;
|
|
1374
|
+
const k = yo(S, bt), B = yo(S, Ht);
|
|
1375
|
+
return p -= m, p += g + f, _ += g + f, _ -= m, p > h + u - k && (C = ut), _ < h - d + w + B && (C = rt), C !== Co ? [
|
|
1376
|
+
Math.max(z - g - So(b, bt, C) - k, 0),
|
|
1377
|
+
z - d - f + w + So(b, Ht, C) + B
|
|
1367
1378
|
] : null;
|
|
1368
1379
|
}
|
|
1369
1380
|
),
|
|
1370
|
-
|
|
1371
|
-
re(
|
|
1381
|
+
O((h) => h != null),
|
|
1382
|
+
re(ct)
|
|
1372
1383
|
),
|
|
1373
1384
|
[0, 0]
|
|
1374
1385
|
);
|
|
@@ -1379,15 +1390,15 @@ const Jt = J(
|
|
|
1379
1390
|
overscan: c,
|
|
1380
1391
|
topListHeight: s,
|
|
1381
1392
|
// output
|
|
1382
|
-
visibleRange:
|
|
1393
|
+
visibleRange: a
|
|
1383
1394
|
};
|
|
1384
1395
|
},
|
|
1385
1396
|
ie(xe),
|
|
1386
1397
|
{ singleton: !0 }
|
|
1387
1398
|
);
|
|
1388
|
-
function
|
|
1389
|
-
if (
|
|
1390
|
-
const n =
|
|
1399
|
+
function fr(e, t, o) {
|
|
1400
|
+
if (zt(t)) {
|
|
1401
|
+
const n = Zo(e, t);
|
|
1391
1402
|
return [
|
|
1392
1403
|
{ index: Be(t.groupOffsetTree, n)[0], offset: 0, size: 0 },
|
|
1393
1404
|
{ data: o == null ? void 0 : o[0], index: n, offset: 0, size: 0 }
|
|
@@ -1395,7 +1406,7 @@ function or(e, t, o) {
|
|
|
1395
1406
|
}
|
|
1396
1407
|
return [{ data: o == null ? void 0 : o[0], index: e, offset: 0, size: 0 }];
|
|
1397
1408
|
}
|
|
1398
|
-
const
|
|
1409
|
+
const Nt = {
|
|
1399
1410
|
bottom: 0,
|
|
1400
1411
|
firstItemIndex: 0,
|
|
1401
1412
|
items: [],
|
|
@@ -1406,28 +1417,28 @@ const Mt = {
|
|
|
1406
1417
|
topListHeight: 0,
|
|
1407
1418
|
totalCount: 0
|
|
1408
1419
|
};
|
|
1409
|
-
function
|
|
1420
|
+
function St(e, t, o, n, r, i) {
|
|
1410
1421
|
const { lastIndex: s, lastOffset: l, lastSize: c } = r;
|
|
1411
|
-
let
|
|
1422
|
+
let a = 0, h = 0;
|
|
1412
1423
|
if (e.length > 0) {
|
|
1413
|
-
|
|
1414
|
-
const
|
|
1415
|
-
h =
|
|
1424
|
+
a = e[0].offset;
|
|
1425
|
+
const b = e[e.length - 1];
|
|
1426
|
+
h = b.offset + b.size;
|
|
1416
1427
|
}
|
|
1417
|
-
const
|
|
1428
|
+
const w = o - s, g = l + w * c + (w - 1) * n, p = a, _ = g - h;
|
|
1418
1429
|
return {
|
|
1419
1430
|
bottom: h,
|
|
1420
1431
|
firstItemIndex: i,
|
|
1421
|
-
items:
|
|
1422
|
-
offsetBottom:
|
|
1423
|
-
offsetTop:
|
|
1432
|
+
items: bo(e, r, i),
|
|
1433
|
+
offsetBottom: _,
|
|
1434
|
+
offsetTop: a,
|
|
1424
1435
|
top: p,
|
|
1425
|
-
topItems:
|
|
1426
|
-
topListHeight: t.reduce((
|
|
1436
|
+
topItems: bo(t, r, i),
|
|
1437
|
+
topListHeight: t.reduce((b, x) => x.size + b, 0),
|
|
1427
1438
|
totalCount: o
|
|
1428
1439
|
};
|
|
1429
1440
|
}
|
|
1430
|
-
function
|
|
1441
|
+
function on(e, t, o, n, r, i) {
|
|
1431
1442
|
let s = 0;
|
|
1432
1443
|
if (o.groupIndices.length > 0)
|
|
1433
1444
|
for (const h of o.groupIndices) {
|
|
@@ -1435,36 +1446,36 @@ function Yo(e, t, o, n, r, i) {
|
|
|
1435
1446
|
break;
|
|
1436
1447
|
s++;
|
|
1437
1448
|
}
|
|
1438
|
-
const l = e + s, c =
|
|
1439
|
-
data: i[
|
|
1440
|
-
index:
|
|
1449
|
+
const l = e + s, c = Qt(t, l), a = Array.from({ length: l }).map((h, w) => ({
|
|
1450
|
+
data: i[w + c],
|
|
1451
|
+
index: w + c,
|
|
1441
1452
|
offset: 0,
|
|
1442
1453
|
size: 0
|
|
1443
1454
|
}));
|
|
1444
|
-
return
|
|
1455
|
+
return St(a, [], l, r, o, n);
|
|
1445
1456
|
}
|
|
1446
|
-
function
|
|
1457
|
+
function bo(e, t, o) {
|
|
1447
1458
|
if (e.length === 0)
|
|
1448
1459
|
return [];
|
|
1449
|
-
if (!
|
|
1450
|
-
return e.map((
|
|
1460
|
+
if (!zt(t))
|
|
1461
|
+
return e.map((a) => ({ ...a, index: a.index + o, originalIndex: a.index }));
|
|
1451
1462
|
const n = e[0].index, r = e[e.length - 1].index, i = [], s = Rt(t.groupOffsetTree, n, r);
|
|
1452
1463
|
let l, c = 0;
|
|
1453
|
-
for (const
|
|
1454
|
-
(!l || l.end <
|
|
1464
|
+
for (const a of e) {
|
|
1465
|
+
(!l || l.end < a.index) && (l = s.shift(), c = t.groupIndices.indexOf(l.start));
|
|
1455
1466
|
let h;
|
|
1456
|
-
|
|
1467
|
+
a.index === l.start ? h = {
|
|
1457
1468
|
index: c,
|
|
1458
1469
|
type: "group"
|
|
1459
1470
|
} : h = {
|
|
1460
1471
|
groupIndex: c,
|
|
1461
|
-
index:
|
|
1472
|
+
index: a.index - (c + 1) + o
|
|
1462
1473
|
}, i.push({
|
|
1463
1474
|
...h,
|
|
1464
|
-
data:
|
|
1465
|
-
offset:
|
|
1466
|
-
originalIndex:
|
|
1467
|
-
size:
|
|
1475
|
+
data: a.data,
|
|
1476
|
+
offset: a.offset,
|
|
1477
|
+
originalIndex: a.index,
|
|
1478
|
+
size: a.size
|
|
1468
1479
|
});
|
|
1469
1480
|
}
|
|
1470
1481
|
return i;
|
|
@@ -1474,57 +1485,57 @@ const Xe = J(
|
|
|
1474
1485
|
{ data: e, firstItemIndex: t, gap: o, sizes: n, totalCount: r },
|
|
1475
1486
|
i,
|
|
1476
1487
|
{ listBoundary: s, topListHeight: l, visibleRange: c },
|
|
1477
|
-
{ initialTopMostItemIndex:
|
|
1478
|
-
{ topListHeight:
|
|
1488
|
+
{ initialTopMostItemIndex: a, scrolledToInitialItem: h },
|
|
1489
|
+
{ topListHeight: w },
|
|
1479
1490
|
g,
|
|
1480
1491
|
{ didMount: p },
|
|
1481
|
-
{ recalcInProgress:
|
|
1492
|
+
{ recalcInProgress: _ }
|
|
1482
1493
|
]) => {
|
|
1483
|
-
const
|
|
1484
|
-
|
|
1494
|
+
const b = H([]), x = H(0), f = K();
|
|
1495
|
+
N(i.topItemsIndexes, b);
|
|
1485
1496
|
const m = pe(
|
|
1486
1497
|
v(
|
|
1487
1498
|
ae(
|
|
1488
1499
|
p,
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1500
|
+
_,
|
|
1501
|
+
W(c, ct),
|
|
1502
|
+
W(r),
|
|
1503
|
+
W(n),
|
|
1504
|
+
W(a),
|
|
1494
1505
|
h,
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1506
|
+
W(b),
|
|
1507
|
+
W(t),
|
|
1508
|
+
W(o),
|
|
1498
1509
|
e
|
|
1499
1510
|
),
|
|
1500
|
-
|
|
1501
|
-
const M = B && B.length !==
|
|
1502
|
-
return d && !
|
|
1511
|
+
O(([d, C, , k, , , , , , , B]) => {
|
|
1512
|
+
const M = B && B.length !== k;
|
|
1513
|
+
return d && !C && !M;
|
|
1503
1514
|
}),
|
|
1504
|
-
|
|
1515
|
+
R(
|
|
1505
1516
|
([
|
|
1506
1517
|
,
|
|
1507
1518
|
,
|
|
1508
|
-
[d,
|
|
1509
|
-
|
|
1519
|
+
[d, C],
|
|
1520
|
+
k,
|
|
1510
1521
|
B,
|
|
1511
1522
|
M,
|
|
1512
|
-
|
|
1523
|
+
A,
|
|
1513
1524
|
U,
|
|
1514
1525
|
Q,
|
|
1515
1526
|
L,
|
|
1516
1527
|
P
|
|
1517
1528
|
]) => {
|
|
1518
1529
|
const ue = B, { offsetTree: ve, sizeTree: we } = ue, Ce = le(x);
|
|
1519
|
-
if (
|
|
1520
|
-
return { ...
|
|
1521
|
-
if (d === 0 &&
|
|
1522
|
-
return Ce === 0 ? { ...
|
|
1530
|
+
if (k === 0)
|
|
1531
|
+
return { ...Nt, totalCount: k };
|
|
1532
|
+
if (d === 0 && C === 0)
|
|
1533
|
+
return Ce === 0 ? { ...Nt, totalCount: k } : on(Ce, M, B, Q, L, P || []);
|
|
1523
1534
|
if (ee(we))
|
|
1524
|
-
return Ce > 0 ? null :
|
|
1525
|
-
|
|
1535
|
+
return Ce > 0 ? null : St(
|
|
1536
|
+
fr(Qt(M, k), ue, P),
|
|
1526
1537
|
[],
|
|
1527
|
-
|
|
1538
|
+
k,
|
|
1528
1539
|
L,
|
|
1529
1540
|
ue,
|
|
1530
1541
|
Q
|
|
@@ -1533,137 +1544,137 @@ const Xe = J(
|
|
|
1533
1544
|
if (U.length > 0) {
|
|
1534
1545
|
const De = U[0], Se = U[U.length - 1];
|
|
1535
1546
|
let ce = 0;
|
|
1536
|
-
for (const
|
|
1537
|
-
const G =
|
|
1538
|
-
for (let E = te; E <=
|
|
1547
|
+
for (const T of Rt(we, De, Se)) {
|
|
1548
|
+
const G = T.value, te = Math.max(T.start, De), y = Math.min(T.end, Se);
|
|
1549
|
+
for (let E = te; E <= y; E++)
|
|
1539
1550
|
he.push({ data: P == null ? void 0 : P[E], index: E, offset: ce, size: G }), ce += G;
|
|
1540
1551
|
}
|
|
1541
1552
|
}
|
|
1542
|
-
if (!
|
|
1543
|
-
return
|
|
1544
|
-
const de = U.length > 0 ? U[U.length - 1] + 1 : 0,
|
|
1545
|
-
if (
|
|
1553
|
+
if (!A)
|
|
1554
|
+
return St([], he, k, L, ue, Q);
|
|
1555
|
+
const de = U.length > 0 ? U[U.length - 1] + 1 : 0, Oe = tr(ve, d, C, de);
|
|
1556
|
+
if (Oe.length === 0)
|
|
1546
1557
|
return null;
|
|
1547
|
-
const Ie =
|
|
1548
|
-
for (const Se of
|
|
1558
|
+
const Ie = k - 1, Le = Et([], (De) => {
|
|
1559
|
+
for (const Se of Oe) {
|
|
1549
1560
|
const ce = Se.value;
|
|
1550
|
-
let
|
|
1561
|
+
let T = ce.offset, G = Se.start;
|
|
1551
1562
|
const te = ce.size;
|
|
1552
1563
|
if (ce.offset < d) {
|
|
1553
1564
|
G += Math.floor((d - ce.offset + L) / (te + L));
|
|
1554
1565
|
const E = G - Se.start;
|
|
1555
|
-
|
|
1566
|
+
T += E * te + E * L;
|
|
1556
1567
|
}
|
|
1557
|
-
G < de && (
|
|
1558
|
-
const
|
|
1559
|
-
for (let E = G; E <=
|
|
1560
|
-
De.push({ data: P == null ? void 0 : P[E], index: E, offset:
|
|
1568
|
+
G < de && (T += (de - G) * te, G = de);
|
|
1569
|
+
const y = Math.min(Se.end, Ie);
|
|
1570
|
+
for (let E = G; E <= y && !(T >= C); E++)
|
|
1571
|
+
De.push({ data: P == null ? void 0 : P[E], index: E, offset: T, size: te }), T += te + L;
|
|
1561
1572
|
}
|
|
1562
1573
|
});
|
|
1563
|
-
return
|
|
1574
|
+
return St(Le, he, k, L, ue, Q);
|
|
1564
1575
|
}
|
|
1565
1576
|
),
|
|
1566
1577
|
//@ts-expect-error filter needs to be fixed
|
|
1567
|
-
|
|
1578
|
+
O((d) => d !== null),
|
|
1568
1579
|
re()
|
|
1569
1580
|
),
|
|
1570
|
-
|
|
1581
|
+
Nt
|
|
1571
1582
|
);
|
|
1572
|
-
|
|
1583
|
+
N(
|
|
1573
1584
|
v(
|
|
1574
1585
|
e,
|
|
1575
|
-
|
|
1576
|
-
|
|
1586
|
+
O(Ut),
|
|
1587
|
+
R((d) => d == null ? void 0 : d.length)
|
|
1577
1588
|
),
|
|
1578
1589
|
r
|
|
1579
|
-
),
|
|
1590
|
+
), N(
|
|
1580
1591
|
v(
|
|
1581
1592
|
m,
|
|
1582
|
-
|
|
1593
|
+
R((d) => d.topListHeight)
|
|
1583
1594
|
),
|
|
1584
|
-
|
|
1585
|
-
),
|
|
1595
|
+
w
|
|
1596
|
+
), N(w, l), N(
|
|
1586
1597
|
v(
|
|
1587
1598
|
m,
|
|
1588
|
-
|
|
1599
|
+
R((d) => [d.top, d.bottom])
|
|
1589
1600
|
),
|
|
1590
1601
|
s
|
|
1591
|
-
),
|
|
1602
|
+
), N(
|
|
1592
1603
|
v(
|
|
1593
1604
|
m,
|
|
1594
|
-
|
|
1605
|
+
R((d) => d.items)
|
|
1595
1606
|
),
|
|
1596
1607
|
f
|
|
1597
1608
|
);
|
|
1598
|
-
const
|
|
1609
|
+
const S = _e(
|
|
1599
1610
|
v(
|
|
1600
1611
|
m,
|
|
1601
|
-
|
|
1612
|
+
O(({ items: d }) => d.length > 0),
|
|
1602
1613
|
$(r, e),
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
re(
|
|
1606
|
-
|
|
1614
|
+
O(([{ items: d }, C]) => d[d.length - 1].originalIndex === C - 1),
|
|
1615
|
+
R(([, d, C]) => [d - 1, C]),
|
|
1616
|
+
re(ct),
|
|
1617
|
+
R(([d]) => d)
|
|
1607
1618
|
)
|
|
1608
|
-
),
|
|
1619
|
+
), z = _e(
|
|
1609
1620
|
v(
|
|
1610
1621
|
m,
|
|
1611
1622
|
Pe(200),
|
|
1612
|
-
|
|
1613
|
-
|
|
1623
|
+
O(({ items: d, topItems: C }) => d.length > 0 && d[0].originalIndex === C.length),
|
|
1624
|
+
R(({ items: d }) => d[0].index),
|
|
1614
1625
|
re()
|
|
1615
1626
|
)
|
|
1616
|
-
),
|
|
1627
|
+
), u = _e(
|
|
1617
1628
|
v(
|
|
1618
1629
|
m,
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
let
|
|
1622
|
-
for (; d[
|
|
1623
|
-
|
|
1624
|
-
for (; d[
|
|
1625
|
-
|
|
1630
|
+
O(({ items: d }) => d.length > 0),
|
|
1631
|
+
R(({ items: d }) => {
|
|
1632
|
+
let C = 0, k = d.length - 1;
|
|
1633
|
+
for (; d[C].type === "group" && C < k; )
|
|
1634
|
+
C++;
|
|
1635
|
+
for (; d[k].type === "group" && k > C; )
|
|
1636
|
+
k--;
|
|
1626
1637
|
return {
|
|
1627
|
-
endIndex: d[
|
|
1628
|
-
startIndex: d[
|
|
1638
|
+
endIndex: d[k].index,
|
|
1639
|
+
startIndex: d[C].index
|
|
1629
1640
|
};
|
|
1630
1641
|
}),
|
|
1631
|
-
re(
|
|
1642
|
+
re(Yo)
|
|
1632
1643
|
)
|
|
1633
1644
|
);
|
|
1634
|
-
return { endReached:
|
|
1645
|
+
return { endReached: S, initialItemCount: x, itemsRendered: f, listState: m, rangeChanged: u, startReached: z, topItemsIndexes: b, ...g };
|
|
1635
1646
|
},
|
|
1636
1647
|
ie(
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
mt,
|
|
1641
|
-
dt,
|
|
1648
|
+
Ae,
|
|
1649
|
+
Qo,
|
|
1650
|
+
eo,
|
|
1642
1651
|
ft,
|
|
1652
|
+
mt,
|
|
1653
|
+
ht,
|
|
1643
1654
|
$e,
|
|
1644
|
-
|
|
1655
|
+
Xt
|
|
1645
1656
|
),
|
|
1646
1657
|
{ singleton: !0 }
|
|
1647
|
-
),
|
|
1658
|
+
), nn = J(
|
|
1648
1659
|
([{ fixedFooterHeight: e, fixedHeaderHeight: t, footerHeight: o, headerHeight: n }, { listState: r }]) => {
|
|
1649
1660
|
const i = K(), s = pe(
|
|
1650
1661
|
v(
|
|
1651
1662
|
ae(o, e, n, t, r),
|
|
1652
|
-
|
|
1663
|
+
R(([l, c, a, h, w]) => l + c + a + h + w.offsetBottom + w.bottom)
|
|
1653
1664
|
),
|
|
1654
1665
|
0
|
|
1655
1666
|
);
|
|
1656
|
-
return W(
|
|
1667
|
+
return N(W(s), i), { totalListHeight: s, totalListHeightChanged: i };
|
|
1657
1668
|
},
|
|
1658
1669
|
ie(xe, Xe),
|
|
1659
1670
|
{ singleton: !0 }
|
|
1660
|
-
),
|
|
1671
|
+
), hr = J(
|
|
1661
1672
|
([{ viewportHeight: e }, { totalListHeight: t }]) => {
|
|
1662
|
-
const o =
|
|
1673
|
+
const o = H(!1), n = pe(
|
|
1663
1674
|
v(
|
|
1664
1675
|
ae(o, e, t),
|
|
1665
|
-
|
|
1666
|
-
|
|
1676
|
+
O(([r]) => r),
|
|
1677
|
+
R(([, r, i]) => Math.max(0, r - i)),
|
|
1667
1678
|
Pe(0),
|
|
1668
1679
|
re()
|
|
1669
1680
|
),
|
|
@@ -1671,194 +1682,194 @@ const Xe = J(
|
|
|
1671
1682
|
);
|
|
1672
1683
|
return { alignToBottom: o, paddingTopAddition: n };
|
|
1673
1684
|
},
|
|
1674
|
-
ie(xe,
|
|
1685
|
+
ie(xe, nn),
|
|
1675
1686
|
{ singleton: !0 }
|
|
1676
|
-
),
|
|
1677
|
-
context:
|
|
1678
|
-
})),
|
|
1687
|
+
), rn = J(() => ({
|
|
1688
|
+
context: H(null)
|
|
1689
|
+
})), gr = ({
|
|
1679
1690
|
itemBottom: e,
|
|
1680
1691
|
itemTop: t,
|
|
1681
1692
|
locationParams: { align: o, behavior: n, ...r },
|
|
1682
1693
|
viewportBottom: i,
|
|
1683
1694
|
viewportTop: s
|
|
1684
|
-
}) => t < s ? { ...r, align: o ?? "start", behavior: n } : e > i ? { ...r, align: o ?? "end", behavior: n } : null,
|
|
1695
|
+
}) => t < s ? { ...r, align: o ?? "start", behavior: n } : e > i ? { ...r, align: o ?? "end", behavior: n } : null, sn = J(
|
|
1685
1696
|
([
|
|
1686
1697
|
{ gap: e, sizes: t, totalCount: o },
|
|
1687
1698
|
{ fixedFooterHeight: n, fixedHeaderHeight: r, headerHeight: i, scrollingInProgress: s, scrollTop: l, viewportHeight: c },
|
|
1688
|
-
{ scrollToIndex:
|
|
1699
|
+
{ scrollToIndex: a }
|
|
1689
1700
|
]) => {
|
|
1690
1701
|
const h = K();
|
|
1691
|
-
return
|
|
1702
|
+
return N(
|
|
1692
1703
|
v(
|
|
1693
1704
|
h,
|
|
1694
1705
|
$(t, c, o, i, r, n, l),
|
|
1695
1706
|
$(e),
|
|
1696
|
-
|
|
1697
|
-
const { align:
|
|
1698
|
-
itemBottom:
|
|
1707
|
+
R(([[w, g, p, _, b, x, f, m], S]) => {
|
|
1708
|
+
const { align: z, behavior: u, calculateViewLocation: d = gr, done: C, ...k } = w, B = Jo(w, g, _ - 1), M = at(B, g.offsetTree, S) + b + x, A = M + Be(g.sizeTree, B)[1], U = m + x, Q = m + p - f, L = d({
|
|
1709
|
+
itemBottom: A,
|
|
1699
1710
|
itemTop: M,
|
|
1700
|
-
locationParams: { align:
|
|
1711
|
+
locationParams: { align: z, behavior: u, ...k },
|
|
1701
1712
|
viewportBottom: Q,
|
|
1702
1713
|
viewportTop: U
|
|
1703
1714
|
});
|
|
1704
|
-
return L ?
|
|
1715
|
+
return L ? C && ze(
|
|
1705
1716
|
v(
|
|
1706
1717
|
s,
|
|
1707
|
-
|
|
1718
|
+
O((P) => !P),
|
|
1708
1719
|
// skips the initial publish of false, and the cleanup call.
|
|
1709
1720
|
// but if scrollingInProgress is true, we skip the initial publish.
|
|
1710
1721
|
Ke(le(s) ? 1 : 2)
|
|
1711
1722
|
),
|
|
1712
|
-
|
|
1713
|
-
) :
|
|
1723
|
+
C
|
|
1724
|
+
) : C && C(), L;
|
|
1714
1725
|
}),
|
|
1715
|
-
|
|
1726
|
+
O((w) => w !== null)
|
|
1716
1727
|
),
|
|
1717
|
-
|
|
1728
|
+
a
|
|
1718
1729
|
), {
|
|
1719
1730
|
scrollIntoView: h
|
|
1720
1731
|
};
|
|
1721
1732
|
},
|
|
1722
|
-
ie(
|
|
1733
|
+
ie(Ae, xe, mt, Xe, Fe),
|
|
1723
1734
|
{ singleton: !0 }
|
|
1724
1735
|
);
|
|
1725
|
-
function
|
|
1736
|
+
function Ho(e) {
|
|
1726
1737
|
return e ? e === "smooth" ? "smooth" : "auto" : !1;
|
|
1727
1738
|
}
|
|
1728
|
-
const
|
|
1739
|
+
const pr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), xr = J(
|
|
1729
1740
|
([
|
|
1730
1741
|
{ listRefresh: e, totalCount: t, fixedItemSize: o, data: n },
|
|
1731
1742
|
{ atBottomState: r, isAtBottom: i },
|
|
1732
1743
|
{ scrollToIndex: s },
|
|
1733
1744
|
{ scrolledToInitialItem: l },
|
|
1734
|
-
{ didMount: c, propsReady:
|
|
1745
|
+
{ didMount: c, propsReady: a },
|
|
1735
1746
|
{ log: h },
|
|
1736
|
-
{ scrollingInProgress:
|
|
1747
|
+
{ scrollingInProgress: w },
|
|
1737
1748
|
{ context: g },
|
|
1738
1749
|
{ scrollIntoView: p }
|
|
1739
1750
|
]) => {
|
|
1740
|
-
const
|
|
1751
|
+
const _ = H(!1), b = K();
|
|
1741
1752
|
let x = null;
|
|
1742
|
-
function f(
|
|
1753
|
+
function f(u) {
|
|
1743
1754
|
F(s, {
|
|
1744
1755
|
align: "end",
|
|
1745
|
-
behavior:
|
|
1756
|
+
behavior: u,
|
|
1746
1757
|
index: "LAST"
|
|
1747
1758
|
});
|
|
1748
1759
|
}
|
|
1749
1760
|
Z(
|
|
1750
1761
|
v(
|
|
1751
|
-
ae(v(
|
|
1752
|
-
$(
|
|
1753
|
-
|
|
1754
|
-
let
|
|
1755
|
-
return
|
|
1762
|
+
ae(v(W(t), Ke(1)), c),
|
|
1763
|
+
$(W(_), i, l, w),
|
|
1764
|
+
R(([[u, d], C, k, B, M]) => {
|
|
1765
|
+
let A = d && B, U = "auto";
|
|
1766
|
+
return A && (U = pr(C, k || M), A = A && !!U), { followOutputBehavior: U, shouldFollow: A, totalCount: u };
|
|
1756
1767
|
}),
|
|
1757
|
-
|
|
1768
|
+
O(({ shouldFollow: u }) => u)
|
|
1758
1769
|
),
|
|
1759
|
-
({ followOutputBehavior:
|
|
1770
|
+
({ followOutputBehavior: u, totalCount: d }) => {
|
|
1760
1771
|
x && (x(), x = null), le(o) ? requestAnimationFrame(() => {
|
|
1761
|
-
le(h)("following output to ", { totalCount: d }, Te.DEBUG), f(
|
|
1762
|
-
}) : x =
|
|
1763
|
-
le(h)("following output to ", { totalCount: d }, Te.DEBUG), f(
|
|
1772
|
+
le(h)("following output to ", { totalCount: d }, Te.DEBUG), f(u);
|
|
1773
|
+
}) : x = ze(e, () => {
|
|
1774
|
+
le(h)("following output to ", { totalCount: d }, Te.DEBUG), f(u), x = null;
|
|
1764
1775
|
});
|
|
1765
1776
|
}
|
|
1766
1777
|
);
|
|
1767
|
-
function m(
|
|
1768
|
-
const d =
|
|
1769
|
-
|
|
1778
|
+
function m(u) {
|
|
1779
|
+
const d = ze(r, (C) => {
|
|
1780
|
+
u && !C.atBottom && C.notAtBottomBecause === "SIZE_INCREASED" && !x && (le(h)("scrolling to bottom due to increased size", {}, Te.DEBUG), f("auto"));
|
|
1770
1781
|
});
|
|
1771
1782
|
setTimeout(d, 100);
|
|
1772
1783
|
}
|
|
1773
1784
|
Z(
|
|
1774
1785
|
v(
|
|
1775
|
-
ae(
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
({ value:
|
|
1786
|
+
ae(W(_), t, a),
|
|
1787
|
+
O(([u, , d]) => u && d),
|
|
1788
|
+
We(
|
|
1789
|
+
({ value: u }, [, d]) => ({ refreshed: u === d, value: d }),
|
|
1779
1790
|
{ refreshed: !1, value: 0 }
|
|
1780
1791
|
),
|
|
1781
|
-
|
|
1782
|
-
$(
|
|
1792
|
+
O(({ refreshed: u }) => u),
|
|
1793
|
+
$(_, t)
|
|
1783
1794
|
),
|
|
1784
|
-
([,
|
|
1785
|
-
le(l) && m(
|
|
1795
|
+
([, u]) => {
|
|
1796
|
+
le(l) && m(u !== !1);
|
|
1786
1797
|
}
|
|
1787
|
-
), Z(
|
|
1788
|
-
m(le(
|
|
1789
|
-
}), Z(ae(
|
|
1790
|
-
|
|
1798
|
+
), Z(b, () => {
|
|
1799
|
+
m(le(_) !== !1);
|
|
1800
|
+
}), Z(ae(W(_), r), ([u, d]) => {
|
|
1801
|
+
u && !d.atBottom && d.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && f("auto");
|
|
1791
1802
|
});
|
|
1792
|
-
const
|
|
1793
|
-
return
|
|
1794
|
-
|
|
1803
|
+
const S = H(null), z = K();
|
|
1804
|
+
return N(
|
|
1805
|
+
Dt(
|
|
1795
1806
|
v(
|
|
1796
|
-
|
|
1797
|
-
|
|
1807
|
+
W(n),
|
|
1808
|
+
R((u) => {
|
|
1798
1809
|
var d;
|
|
1799
|
-
return (d =
|
|
1810
|
+
return (d = u == null ? void 0 : u.length) != null ? d : 0;
|
|
1800
1811
|
})
|
|
1801
1812
|
),
|
|
1802
|
-
v(
|
|
1813
|
+
v(W(t))
|
|
1803
1814
|
),
|
|
1804
|
-
|
|
1815
|
+
z
|
|
1805
1816
|
), Z(
|
|
1806
1817
|
v(
|
|
1807
|
-
ae(v(
|
|
1808
|
-
$(
|
|
1809
|
-
|
|
1810
|
-
|
|
1818
|
+
ae(v(z, Ke(1)), c),
|
|
1819
|
+
$(W(S), l, w, g),
|
|
1820
|
+
R(([[u, d], C, k, B, M]) => d && k && (C == null ? void 0 : C({ context: M, totalCount: u, scrollingInProgress: B }))),
|
|
1821
|
+
O((u) => !!u),
|
|
1811
1822
|
Pe(0)
|
|
1812
1823
|
),
|
|
1813
|
-
(
|
|
1824
|
+
(u) => {
|
|
1814
1825
|
x && (x(), x = null), le(o) ? requestAnimationFrame(() => {
|
|
1815
|
-
le(h)("scrolling into view", {}), F(p,
|
|
1816
|
-
}) : x =
|
|
1817
|
-
le(h)("scrolling into view", {}), F(p,
|
|
1826
|
+
le(h)("scrolling into view", {}), F(p, u);
|
|
1827
|
+
}) : x = ze(e, () => {
|
|
1828
|
+
le(h)("scrolling into view", {}), F(p, u), x = null;
|
|
1818
1829
|
});
|
|
1819
1830
|
}
|
|
1820
|
-
), { autoscrollToBottom:
|
|
1831
|
+
), { autoscrollToBottom: b, followOutput: _, scrollIntoViewOnChange: S };
|
|
1821
1832
|
},
|
|
1822
1833
|
ie(
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
dt,
|
|
1834
|
+
Ae,
|
|
1835
|
+
ht,
|
|
1826
1836
|
mt,
|
|
1837
|
+
ft,
|
|
1827
1838
|
$e,
|
|
1828
1839
|
Fe,
|
|
1829
1840
|
xe,
|
|
1830
|
-
|
|
1831
|
-
|
|
1841
|
+
rn,
|
|
1842
|
+
sn
|
|
1832
1843
|
)
|
|
1833
|
-
),
|
|
1834
|
-
([{ data: e, firstItemIndex: t, gap: o, sizes: n }, { initialTopMostItemIndex: r }, { initialItemCount: i, listState: s }, { didMount: l }]) => (
|
|
1844
|
+
), vr = J(
|
|
1845
|
+
([{ data: e, firstItemIndex: t, gap: o, sizes: n }, { initialTopMostItemIndex: r }, { initialItemCount: i, listState: s }, { didMount: l }]) => (N(
|
|
1835
1846
|
v(
|
|
1836
1847
|
l,
|
|
1837
1848
|
$(i),
|
|
1838
|
-
|
|
1849
|
+
O(([, c]) => c !== 0),
|
|
1839
1850
|
$(r, n, t, o, e),
|
|
1840
|
-
|
|
1851
|
+
R(([[, c], a, h, w, g, p = []]) => on(c, a, h, w, g, p))
|
|
1841
1852
|
),
|
|
1842
1853
|
s
|
|
1843
1854
|
), {}),
|
|
1844
|
-
ie(
|
|
1855
|
+
ie(Ae, ft, Xe, $e),
|
|
1845
1856
|
{ singleton: !0 }
|
|
1846
|
-
),
|
|
1857
|
+
), Ir = J(
|
|
1847
1858
|
([{ didMount: e }, { scrollTo: t }, { listState: o }]) => {
|
|
1848
|
-
const n =
|
|
1859
|
+
const n = H(0);
|
|
1849
1860
|
return Z(
|
|
1850
1861
|
v(
|
|
1851
1862
|
e,
|
|
1852
1863
|
$(n),
|
|
1853
|
-
|
|
1854
|
-
|
|
1864
|
+
O(([, r]) => r !== 0),
|
|
1865
|
+
R(([, r]) => ({ top: r }))
|
|
1855
1866
|
),
|
|
1856
1867
|
(r) => {
|
|
1857
|
-
|
|
1868
|
+
ze(
|
|
1858
1869
|
v(
|
|
1859
1870
|
o,
|
|
1860
1871
|
Ke(1),
|
|
1861
|
-
|
|
1872
|
+
O((i) => i.items.length > 1)
|
|
1862
1873
|
),
|
|
1863
1874
|
() => {
|
|
1864
1875
|
requestAnimationFrame(() => {
|
|
@@ -1873,18 +1884,18 @@ const ir = (e, t) => typeof e == "function" ? Co(e(t)) : t && Co(e), sr = J(
|
|
|
1873
1884
|
},
|
|
1874
1885
|
ie($e, xe, Xe),
|
|
1875
1886
|
{ singleton: !0 }
|
|
1876
|
-
),
|
|
1887
|
+
), ln = J(
|
|
1877
1888
|
([{ scrollVelocity: e }]) => {
|
|
1878
|
-
const t =
|
|
1879
|
-
return
|
|
1889
|
+
const t = H(!1), o = K(), n = H(!1);
|
|
1890
|
+
return N(
|
|
1880
1891
|
v(
|
|
1881
1892
|
e,
|
|
1882
1893
|
$(n, t, o),
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
const { enter: c, exit:
|
|
1894
|
+
O(([r, i]) => !!i),
|
|
1895
|
+
R(([r, i, s, l]) => {
|
|
1896
|
+
const { enter: c, exit: a } = i;
|
|
1886
1897
|
if (s) {
|
|
1887
|
-
if (
|
|
1898
|
+
if (a(r, l))
|
|
1888
1899
|
return !1;
|
|
1889
1900
|
} else if (c(r, l))
|
|
1890
1901
|
return !0;
|
|
@@ -1900,25 +1911,25 @@ const ir = (e, t) => typeof e == "function" ? Co(e(t)) : t && Co(e), sr = J(
|
|
|
1900
1911
|
}
|
|
1901
1912
|
), { isSeeking: t, scrollSeekConfiguration: n, scrollSeekRangeChanged: o, scrollVelocity: e };
|
|
1902
1913
|
},
|
|
1903
|
-
ie(
|
|
1914
|
+
ie(ht),
|
|
1904
1915
|
{ singleton: !0 }
|
|
1905
|
-
),
|
|
1906
|
-
const o = K(), n = K(), r = K(), i =
|
|
1907
|
-
return
|
|
1916
|
+
), to = J(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
1917
|
+
const o = K(), n = K(), r = K(), i = H(!1), s = H(void 0);
|
|
1918
|
+
return N(
|
|
1908
1919
|
v(
|
|
1909
1920
|
ae(o, n),
|
|
1910
|
-
|
|
1921
|
+
R(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: h }]) => ({
|
|
1911
1922
|
scrollHeight: l,
|
|
1912
1923
|
scrollTop: Math.max(0, c - h),
|
|
1913
|
-
viewportHeight:
|
|
1924
|
+
viewportHeight: a
|
|
1914
1925
|
}))
|
|
1915
1926
|
),
|
|
1916
1927
|
e
|
|
1917
|
-
),
|
|
1928
|
+
), N(
|
|
1918
1929
|
v(
|
|
1919
1930
|
t,
|
|
1920
1931
|
$(n),
|
|
1921
|
-
|
|
1932
|
+
R(([l, { offsetTop: c }]) => ({
|
|
1922
1933
|
...l,
|
|
1923
1934
|
top: l.top + c
|
|
1924
1935
|
}))
|
|
@@ -1934,7 +1945,7 @@ const ir = (e, t) => typeof e == "function" ? Co(e(t)) : t && Co(e), sr = J(
|
|
|
1934
1945
|
windowScrollTo: r,
|
|
1935
1946
|
windowViewportRect: n
|
|
1936
1947
|
};
|
|
1937
|
-
}, ie(xe)),
|
|
1948
|
+
}, ie(xe)), Tr = J(
|
|
1938
1949
|
([
|
|
1939
1950
|
{ sizeRanges: e, sizes: t },
|
|
1940
1951
|
{ headerHeight: o, scrollTop: n },
|
|
@@ -1942,130 +1953,130 @@ const ir = (e, t) => typeof e == "function" ? Co(e(t)) : t && Co(e), sr = J(
|
|
|
1942
1953
|
{ didMount: i },
|
|
1943
1954
|
{ useWindowScroll: s, windowScrollContainerState: l, windowViewportRect: c }
|
|
1944
1955
|
]) => {
|
|
1945
|
-
const
|
|
1946
|
-
return
|
|
1956
|
+
const a = K(), h = H(void 0), w = H(null), g = H(null);
|
|
1957
|
+
return N(l, w), N(c, g), Z(
|
|
1947
1958
|
v(
|
|
1948
|
-
|
|
1949
|
-
$(t, n, s,
|
|
1959
|
+
a,
|
|
1960
|
+
$(t, n, s, w, g, o)
|
|
1950
1961
|
),
|
|
1951
|
-
([p,
|
|
1952
|
-
const
|
|
1953
|
-
x && f !== null && m !== null && (
|
|
1962
|
+
([p, _, b, x, f, m, S]) => {
|
|
1963
|
+
const z = nr(_.sizeTree);
|
|
1964
|
+
x && f !== null && m !== null && (b = f.scrollTop - m.offsetTop), b -= S, p({ ranges: z, scrollTop: b });
|
|
1954
1965
|
}
|
|
1955
|
-
),
|
|
1966
|
+
), N(v(h, O(Ut), R(wr)), r), N(
|
|
1956
1967
|
v(
|
|
1957
1968
|
i,
|
|
1958
1969
|
$(h),
|
|
1959
|
-
|
|
1970
|
+
O(([, p]) => p !== void 0),
|
|
1960
1971
|
re(),
|
|
1961
|
-
|
|
1972
|
+
R(([, p]) => p.ranges)
|
|
1962
1973
|
),
|
|
1963
1974
|
e
|
|
1964
1975
|
), {
|
|
1965
|
-
getState:
|
|
1976
|
+
getState: a,
|
|
1966
1977
|
restoreStateFrom: h
|
|
1967
1978
|
};
|
|
1968
1979
|
},
|
|
1969
|
-
ie(
|
|
1980
|
+
ie(Ae, xe, ft, $e, to)
|
|
1970
1981
|
);
|
|
1971
|
-
function
|
|
1982
|
+
function wr(e) {
|
|
1972
1983
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
1973
1984
|
}
|
|
1974
|
-
const
|
|
1975
|
-
const t =
|
|
1976
|
-
return
|
|
1985
|
+
const Cr = J(([{ topItemsIndexes: e }]) => {
|
|
1986
|
+
const t = H(0);
|
|
1987
|
+
return N(
|
|
1977
1988
|
v(
|
|
1978
1989
|
t,
|
|
1979
|
-
|
|
1980
|
-
|
|
1990
|
+
O((o) => o >= 0),
|
|
1991
|
+
R((o) => Array.from({ length: o }).map((n, r) => r))
|
|
1981
1992
|
),
|
|
1982
1993
|
e
|
|
1983
1994
|
), { topItemCount: t };
|
|
1984
1995
|
}, ie(Xe));
|
|
1985
|
-
function
|
|
1996
|
+
function cn(e) {
|
|
1986
1997
|
let t = !1, o;
|
|
1987
1998
|
return () => (t || (t = !0, o = e()), o);
|
|
1988
1999
|
}
|
|
1989
|
-
const
|
|
2000
|
+
const Sr = cn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), yr = J(
|
|
1990
2001
|
([
|
|
1991
2002
|
{ deviation: e, scrollBy: t, scrollingInProgress: o, scrollTop: n },
|
|
1992
2003
|
{ isAtBottom: r, isScrolling: i, lastJumpDueToItemResize: s, scrollDirection: l },
|
|
1993
2004
|
{ listState: c },
|
|
1994
|
-
{ beforeUnshiftWith:
|
|
2005
|
+
{ beforeUnshiftWith: a, gap: h, shiftWithOffset: w, sizes: g },
|
|
1995
2006
|
{ log: p },
|
|
1996
|
-
{ recalcInProgress:
|
|
2007
|
+
{ recalcInProgress: _ }
|
|
1997
2008
|
]) => {
|
|
1998
|
-
const
|
|
2009
|
+
const b = _e(
|
|
1999
2010
|
v(
|
|
2000
2011
|
c,
|
|
2001
2012
|
$(s),
|
|
2002
|
-
|
|
2003
|
-
([, f, m,
|
|
2004
|
-
const B =
|
|
2013
|
+
We(
|
|
2014
|
+
([, f, m, S], [{ bottom: z, items: u, offsetBottom: d, totalCount: C }, k]) => {
|
|
2015
|
+
const B = z + d;
|
|
2005
2016
|
let M = 0;
|
|
2006
|
-
return m ===
|
|
2017
|
+
return m === C && f.length > 0 && u.length > 0 && (u[0].originalIndex === 0 && f[0].originalIndex === 0 || (M = B - S, M !== 0 && (M += k))), [M, u, C, B];
|
|
2007
2018
|
},
|
|
2008
2019
|
[0, [], 0, 0]
|
|
2009
2020
|
),
|
|
2010
|
-
|
|
2011
|
-
$(n, l, o, r, p,
|
|
2012
|
-
|
|
2013
|
-
|
|
2021
|
+
O(([f]) => f !== 0),
|
|
2022
|
+
$(n, l, o, r, p, _),
|
|
2023
|
+
O(([, f, m, S, , , z]) => !z && !S && f !== 0 && m === ut),
|
|
2024
|
+
R(([[f], , , , , m]) => (m("Upward scrolling compensation", { amount: f }, Te.DEBUG), f))
|
|
2014
2025
|
)
|
|
2015
2026
|
);
|
|
2016
2027
|
function x(f) {
|
|
2017
2028
|
f > 0 ? (F(t, { behavior: "auto", top: -f }), F(e, 0)) : (F(e, 0), F(t, { behavior: "auto", top: -f }));
|
|
2018
2029
|
}
|
|
2019
|
-
return Z(v(
|
|
2020
|
-
|
|
2030
|
+
return Z(v(b, $(e, i)), ([f, m, S]) => {
|
|
2031
|
+
S && Sr() ? F(e, m - f) : x(-f);
|
|
2021
2032
|
}), Z(
|
|
2022
2033
|
v(
|
|
2023
|
-
ae(pe(i, !1), e,
|
|
2024
|
-
|
|
2025
|
-
|
|
2034
|
+
ae(pe(i, !1), e, _),
|
|
2035
|
+
O(([f, m, S]) => !f && !S && m !== 0),
|
|
2036
|
+
R(([f, m]) => m),
|
|
2026
2037
|
Pe(1)
|
|
2027
2038
|
),
|
|
2028
2039
|
x
|
|
2029
|
-
),
|
|
2040
|
+
), N(
|
|
2030
2041
|
v(
|
|
2031
|
-
|
|
2032
|
-
|
|
2042
|
+
w,
|
|
2043
|
+
R((f) => ({ top: -f }))
|
|
2033
2044
|
),
|
|
2034
2045
|
t
|
|
2035
2046
|
), Z(
|
|
2036
2047
|
v(
|
|
2037
|
-
|
|
2048
|
+
a,
|
|
2038
2049
|
$(g, h),
|
|
2039
|
-
|
|
2040
|
-
function d(
|
|
2041
|
-
return
|
|
2050
|
+
R(([f, { groupIndices: m, lastSize: S, sizeTree: z }, u]) => {
|
|
2051
|
+
function d(C) {
|
|
2052
|
+
return C * (S + u);
|
|
2042
2053
|
}
|
|
2043
2054
|
if (m.length === 0)
|
|
2044
2055
|
return d(f);
|
|
2045
2056
|
{
|
|
2046
|
-
let
|
|
2047
|
-
const
|
|
2057
|
+
let C = 0;
|
|
2058
|
+
const k = lt(z, 0);
|
|
2048
2059
|
let B = 0, M = 0;
|
|
2049
2060
|
for (; B < f; ) {
|
|
2050
|
-
B++,
|
|
2051
|
-
let
|
|
2052
|
-
B +
|
|
2061
|
+
B++, C += k;
|
|
2062
|
+
let A = m.length === M + 1 ? 1 / 0 : m[M + 1] - m[M] - 1;
|
|
2063
|
+
B + A > f && (C -= k, A = f - B + 1), B += A, C += d(A), M++;
|
|
2053
2064
|
}
|
|
2054
|
-
return
|
|
2065
|
+
return C;
|
|
2055
2066
|
}
|
|
2056
2067
|
})
|
|
2057
2068
|
),
|
|
2058
2069
|
(f) => {
|
|
2059
2070
|
F(e, f), requestAnimationFrame(() => {
|
|
2060
2071
|
F(t, { top: f }), requestAnimationFrame(() => {
|
|
2061
|
-
F(e, 0), F(
|
|
2072
|
+
F(e, 0), F(_, !1);
|
|
2062
2073
|
});
|
|
2063
2074
|
});
|
|
2064
2075
|
}
|
|
2065
2076
|
), { deviation: e };
|
|
2066
2077
|
},
|
|
2067
|
-
ie(xe,
|
|
2068
|
-
),
|
|
2078
|
+
ie(xe, ht, Xe, Ae, Fe, Xt)
|
|
2079
|
+
), br = J(
|
|
2069
2080
|
([
|
|
2070
2081
|
e,
|
|
2071
2082
|
t,
|
|
@@ -2076,7 +2087,7 @@ const mr = en(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2076
2087
|
s,
|
|
2077
2088
|
l,
|
|
2078
2089
|
c,
|
|
2079
|
-
|
|
2090
|
+
a,
|
|
2080
2091
|
h
|
|
2081
2092
|
]) => ({
|
|
2082
2093
|
...e,
|
|
@@ -2088,23 +2099,23 @@ const mr = en(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2088
2099
|
...s,
|
|
2089
2100
|
...l,
|
|
2090
2101
|
...c,
|
|
2091
|
-
...
|
|
2102
|
+
...a,
|
|
2092
2103
|
...h
|
|
2093
2104
|
}),
|
|
2094
2105
|
ie(
|
|
2095
|
-
|
|
2096
|
-
|
|
2106
|
+
eo,
|
|
2107
|
+
vr,
|
|
2097
2108
|
$e,
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2109
|
+
ln,
|
|
2110
|
+
nn,
|
|
2111
|
+
Ir,
|
|
2112
|
+
hr,
|
|
2113
|
+
to,
|
|
2114
|
+
sn,
|
|
2104
2115
|
Fe,
|
|
2105
|
-
|
|
2116
|
+
rn
|
|
2106
2117
|
)
|
|
2107
|
-
),
|
|
2118
|
+
), Hr = J(
|
|
2108
2119
|
([
|
|
2109
2120
|
{
|
|
2110
2121
|
data: e,
|
|
@@ -2116,72 +2127,72 @@ const mr = en(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2116
2127
|
itemSize: s,
|
|
2117
2128
|
sizeRanges: l,
|
|
2118
2129
|
sizes: c,
|
|
2119
|
-
statefulTotalCount:
|
|
2130
|
+
statefulTotalCount: a,
|
|
2120
2131
|
totalCount: h,
|
|
2121
|
-
trackItemSizes:
|
|
2132
|
+
trackItemSizes: w
|
|
2122
2133
|
},
|
|
2123
|
-
{ initialItemFinalLocationReached: g, initialTopMostItemIndex: p, scrolledToInitialItem:
|
|
2124
|
-
|
|
2134
|
+
{ initialItemFinalLocationReached: g, initialTopMostItemIndex: p, scrolledToInitialItem: _ },
|
|
2135
|
+
b,
|
|
2125
2136
|
x,
|
|
2126
2137
|
f,
|
|
2127
|
-
{ listState: m, topItemsIndexes:
|
|
2128
|
-
{ scrollToIndex:
|
|
2138
|
+
{ listState: m, topItemsIndexes: S, ...z },
|
|
2139
|
+
{ scrollToIndex: u },
|
|
2129
2140
|
d,
|
|
2130
|
-
{ topItemCount:
|
|
2131
|
-
{ groupCounts:
|
|
2141
|
+
{ topItemCount: C },
|
|
2142
|
+
{ groupCounts: k },
|
|
2132
2143
|
B
|
|
2133
|
-
]) => (
|
|
2144
|
+
]) => (N(z.rangeChanged, B.scrollSeekRangeChanged), N(
|
|
2134
2145
|
v(
|
|
2135
2146
|
B.windowViewportRect,
|
|
2136
|
-
|
|
2147
|
+
R((M) => M.visibleHeight)
|
|
2137
2148
|
),
|
|
2138
|
-
|
|
2149
|
+
b.viewportHeight
|
|
2139
2150
|
), {
|
|
2140
2151
|
data: e,
|
|
2141
2152
|
defaultItemHeight: t,
|
|
2142
2153
|
firstItemIndex: o,
|
|
2143
2154
|
fixedItemHeight: n,
|
|
2144
2155
|
gap: r,
|
|
2145
|
-
groupCounts:
|
|
2156
|
+
groupCounts: k,
|
|
2146
2157
|
initialItemFinalLocationReached: g,
|
|
2147
2158
|
initialTopMostItemIndex: p,
|
|
2148
|
-
scrolledToInitialItem:
|
|
2159
|
+
scrolledToInitialItem: _,
|
|
2149
2160
|
sizeRanges: l,
|
|
2150
|
-
topItemCount:
|
|
2151
|
-
topItemsIndexes:
|
|
2161
|
+
topItemCount: C,
|
|
2162
|
+
topItemsIndexes: S,
|
|
2152
2163
|
// input
|
|
2153
2164
|
totalCount: h,
|
|
2154
2165
|
...f,
|
|
2155
2166
|
groupIndices: i,
|
|
2156
2167
|
itemSize: s,
|
|
2157
2168
|
listState: m,
|
|
2158
|
-
scrollToIndex:
|
|
2169
|
+
scrollToIndex: u,
|
|
2159
2170
|
// output
|
|
2160
|
-
statefulTotalCount:
|
|
2161
|
-
trackItemSizes:
|
|
2171
|
+
statefulTotalCount: a,
|
|
2172
|
+
trackItemSizes: w,
|
|
2162
2173
|
// exported from stateFlagsSystem
|
|
2163
|
-
...
|
|
2174
|
+
...z,
|
|
2164
2175
|
// the bag of IO from featureGroup1System
|
|
2165
2176
|
...B,
|
|
2166
|
-
...
|
|
2177
|
+
...b,
|
|
2167
2178
|
sizes: c,
|
|
2168
2179
|
...x
|
|
2169
2180
|
}),
|
|
2170
2181
|
ie(
|
|
2171
|
-
|
|
2172
|
-
|
|
2182
|
+
Ae,
|
|
2183
|
+
ft,
|
|
2173
2184
|
xe,
|
|
2174
|
-
|
|
2175
|
-
|
|
2185
|
+
Tr,
|
|
2186
|
+
xr,
|
|
2176
2187
|
Xe,
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2188
|
+
mt,
|
|
2189
|
+
yr,
|
|
2190
|
+
Cr,
|
|
2191
|
+
Qo,
|
|
2192
|
+
br
|
|
2182
2193
|
)
|
|
2183
2194
|
);
|
|
2184
|
-
function
|
|
2195
|
+
function _r(e, t) {
|
|
2185
2196
|
const o = {}, n = {};
|
|
2186
2197
|
let r = 0;
|
|
2187
2198
|
const i = e.length;
|
|
@@ -2191,46 +2202,46 @@ function pr(e, t) {
|
|
|
2191
2202
|
Object.hasOwn(n, s) || (o[s] = t[s]);
|
|
2192
2203
|
return o;
|
|
2193
2204
|
}
|
|
2194
|
-
const
|
|
2195
|
-
function
|
|
2205
|
+
const vt = typeof document < "u" ? j.useLayoutEffect : j.useEffect;
|
|
2206
|
+
function an(e, t, o) {
|
|
2196
2207
|
const n = Object.keys(t.required || {}), r = Object.keys(t.optional || {}), i = Object.keys(t.methods || {}), s = Object.keys(t.events || {}), l = j.createContext({});
|
|
2197
2208
|
function c(x, f) {
|
|
2198
2209
|
x.propsReady && F(x.propsReady, !1);
|
|
2199
2210
|
for (const m of n) {
|
|
2200
|
-
const
|
|
2201
|
-
F(
|
|
2211
|
+
const S = x[t.required[m]];
|
|
2212
|
+
F(S, f[m]);
|
|
2202
2213
|
}
|
|
2203
2214
|
for (const m of r)
|
|
2204
2215
|
if (m in f) {
|
|
2205
|
-
const
|
|
2206
|
-
F(
|
|
2216
|
+
const S = x[t.optional[m]];
|
|
2217
|
+
F(S, f[m]);
|
|
2207
2218
|
}
|
|
2208
2219
|
x.propsReady && F(x.propsReady, !0);
|
|
2209
2220
|
}
|
|
2210
|
-
function
|
|
2211
|
-
return i.reduce((f, m) => (f[m] = (
|
|
2212
|
-
const
|
|
2213
|
-
F(
|
|
2221
|
+
function a(x) {
|
|
2222
|
+
return i.reduce((f, m) => (f[m] = (S) => {
|
|
2223
|
+
const z = x[t.methods[m]];
|
|
2224
|
+
F(z, S);
|
|
2214
2225
|
}, f), {});
|
|
2215
2226
|
}
|
|
2216
2227
|
function h(x) {
|
|
2217
|
-
return s.reduce((f, m) => (f[m] =
|
|
2228
|
+
return s.reduce((f, m) => (f[m] = Vn(x[t.events[m]]), f), {});
|
|
2218
2229
|
}
|
|
2219
|
-
const
|
|
2220
|
-
const { children: m, ...
|
|
2221
|
-
c(
|
|
2222
|
-
})), [
|
|
2223
|
-
|
|
2224
|
-
for (const
|
|
2225
|
-
|
|
2230
|
+
const w = j.forwardRef((x, f) => {
|
|
2231
|
+
const { children: m, ...S } = x, [z] = j.useState(() => Et(Fn(e), (C) => {
|
|
2232
|
+
c(C, S);
|
|
2233
|
+
})), [u] = j.useState(xo(h, z));
|
|
2234
|
+
vt(() => {
|
|
2235
|
+
for (const C of s)
|
|
2236
|
+
C in S && Z(u[C], S[C]);
|
|
2226
2237
|
return () => {
|
|
2227
|
-
Object.values(
|
|
2238
|
+
Object.values(u).map(Kt);
|
|
2228
2239
|
};
|
|
2229
|
-
}, [
|
|
2230
|
-
c(
|
|
2231
|
-
}), j.useImperativeHandle(f,
|
|
2240
|
+
}, [S, u, z]), vt(() => {
|
|
2241
|
+
c(z, S);
|
|
2242
|
+
}), j.useImperativeHandle(f, po(a(z)));
|
|
2232
2243
|
const d = o;
|
|
2233
|
-
return /* @__PURE__ */
|
|
2244
|
+
return /* @__PURE__ */ I.jsx(l.Provider, { value: z, children: o ? /* @__PURE__ */ I.jsx(d, { ..._r([...n, ...r, ...s], S), children: m }) : m });
|
|
2234
2245
|
}), g = (x) => {
|
|
2235
2246
|
const f = j.useContext(l);
|
|
2236
2247
|
return j.useCallback(
|
|
@@ -2241,7 +2252,7 @@ function tn(e, t, o) {
|
|
|
2241
2252
|
);
|
|
2242
2253
|
}, p = (x) => {
|
|
2243
2254
|
const f = j.useContext(l)[x], m = j.useCallback(
|
|
2244
|
-
(
|
|
2255
|
+
(S) => Z(f, S),
|
|
2245
2256
|
[f]
|
|
2246
2257
|
);
|
|
2247
2258
|
return j.useSyncExternalStore(
|
|
@@ -2249,97 +2260,97 @@ function tn(e, t, o) {
|
|
|
2249
2260
|
() => le(f),
|
|
2250
2261
|
() => le(f)
|
|
2251
2262
|
);
|
|
2252
|
-
},
|
|
2253
|
-
const f = j.useContext(l)[x], [m,
|
|
2254
|
-
return
|
|
2255
|
-
() => Z(f, (
|
|
2256
|
-
|
|
2263
|
+
}, _ = (x) => {
|
|
2264
|
+
const f = j.useContext(l)[x], [m, S] = j.useState(xo(le, f));
|
|
2265
|
+
return vt(
|
|
2266
|
+
() => Z(f, (z) => {
|
|
2267
|
+
z !== m && S(po(z));
|
|
2257
2268
|
}),
|
|
2258
2269
|
[f, m]
|
|
2259
2270
|
), m;
|
|
2260
|
-
},
|
|
2271
|
+
}, b = j.version.startsWith("18") ? p : _;
|
|
2261
2272
|
return {
|
|
2262
|
-
Component:
|
|
2273
|
+
Component: w,
|
|
2263
2274
|
useEmitter: (x, f) => {
|
|
2264
2275
|
const m = j.useContext(l)[x];
|
|
2265
|
-
|
|
2276
|
+
vt(() => Z(m, f), [f, m]);
|
|
2266
2277
|
},
|
|
2267
|
-
useEmitterValue:
|
|
2278
|
+
useEmitterValue: b,
|
|
2268
2279
|
usePublisher: g
|
|
2269
2280
|
};
|
|
2270
2281
|
}
|
|
2271
|
-
const
|
|
2282
|
+
const un = j.createContext(void 0), dn = j.createContext(void 0), mn = typeof document < "u" ? j.useLayoutEffect : j.useEffect;
|
|
2272
2283
|
function Wt(e) {
|
|
2273
2284
|
return "self" in e;
|
|
2274
2285
|
}
|
|
2275
|
-
function
|
|
2286
|
+
function kr(e) {
|
|
2276
2287
|
return "body" in e;
|
|
2277
2288
|
}
|
|
2278
|
-
function
|
|
2279
|
-
const s = j.useRef(null), l = j.useRef(null), c = j.useRef(null),
|
|
2289
|
+
function fn(e, t, o, n = dt, r, i) {
|
|
2290
|
+
const s = j.useRef(null), l = j.useRef(null), c = j.useRef(null), a = j.useCallback(
|
|
2280
2291
|
(g) => {
|
|
2281
|
-
let p,
|
|
2292
|
+
let p, _, b;
|
|
2282
2293
|
const x = g.target;
|
|
2283
|
-
if (
|
|
2294
|
+
if (kr(x) || Wt(x)) {
|
|
2284
2295
|
const m = Wt(x) ? x : x.defaultView;
|
|
2285
|
-
|
|
2296
|
+
b = i ? m.scrollX : m.scrollY, p = i ? m.document.documentElement.scrollWidth : m.document.documentElement.scrollHeight, _ = i ? m.innerWidth : m.innerHeight;
|
|
2286
2297
|
} else
|
|
2287
|
-
|
|
2298
|
+
b = i ? x.scrollLeft : x.scrollTop, p = i ? x.scrollWidth : x.scrollHeight, _ = i ? x.offsetWidth : x.offsetHeight;
|
|
2288
2299
|
const f = () => {
|
|
2289
2300
|
e({
|
|
2290
2301
|
scrollHeight: p,
|
|
2291
|
-
scrollTop: Math.max(
|
|
2292
|
-
viewportHeight:
|
|
2302
|
+
scrollTop: Math.max(b, 0),
|
|
2303
|
+
viewportHeight: _
|
|
2293
2304
|
});
|
|
2294
2305
|
};
|
|
2295
|
-
g.suppressFlushSync ? f() :
|
|
2306
|
+
g.suppressFlushSync ? f() : bn.flushSync(f), l.current !== null && (b === l.current || b <= 0 || b === p - _) && (l.current = null, t(!0), c.current && (clearTimeout(c.current), c.current = null));
|
|
2296
2307
|
},
|
|
2297
2308
|
[e, t, i]
|
|
2298
2309
|
);
|
|
2299
2310
|
j.useEffect(() => {
|
|
2300
2311
|
const g = r || s.current;
|
|
2301
|
-
return n(r || s.current),
|
|
2302
|
-
n(null), g.removeEventListener("scroll",
|
|
2312
|
+
return n(r || s.current), a({ suppressFlushSync: !0, target: g }), g.addEventListener("scroll", a, { passive: !0 }), () => {
|
|
2313
|
+
n(null), g.removeEventListener("scroll", a);
|
|
2303
2314
|
};
|
|
2304
|
-
}, [s,
|
|
2315
|
+
}, [s, a, o, n, r]);
|
|
2305
2316
|
function h(g) {
|
|
2306
2317
|
const p = s.current;
|
|
2307
2318
|
if (!p || (i ? "offsetWidth" in p && p.offsetWidth === 0 : "offsetHeight" in p && p.offsetHeight === 0))
|
|
2308
2319
|
return;
|
|
2309
|
-
const
|
|
2310
|
-
let
|
|
2320
|
+
const _ = g.behavior === "smooth";
|
|
2321
|
+
let b, x, f;
|
|
2311
2322
|
Wt(p) ? (x = Math.max(
|
|
2312
2323
|
Ve(p.document.documentElement, i ? "width" : "height"),
|
|
2313
2324
|
i ? p.document.documentElement.scrollWidth : p.document.documentElement.scrollHeight
|
|
2314
|
-
),
|
|
2315
|
-
const m = x -
|
|
2316
|
-
if (g.top = Math.ceil(Math.max(Math.min(m, g.top), 0)),
|
|
2317
|
-
e({ scrollHeight: x, scrollTop: f, viewportHeight:
|
|
2325
|
+
), b = i ? p.innerWidth : p.innerHeight, f = i ? window.scrollX : window.scrollY) : (x = p[i ? "scrollWidth" : "scrollHeight"], b = Ve(p, i ? "width" : "height"), f = p[i ? "scrollLeft" : "scrollTop"]);
|
|
2326
|
+
const m = x - b;
|
|
2327
|
+
if (g.top = Math.ceil(Math.max(Math.min(m, g.top), 0)), tn(b, x) || g.top === f) {
|
|
2328
|
+
e({ scrollHeight: x, scrollTop: f, viewportHeight: b }), _ && t(!0);
|
|
2318
2329
|
return;
|
|
2319
2330
|
}
|
|
2320
|
-
|
|
2331
|
+
_ ? (l.current = g.top, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
|
|
2321
2332
|
c.current = null, l.current = null, t(!0);
|
|
2322
2333
|
}, 1e3)) : l.current = null, i && (g = { behavior: g.behavior, left: g.top }), p.scrollTo(g);
|
|
2323
2334
|
}
|
|
2324
|
-
function
|
|
2335
|
+
function w(g) {
|
|
2325
2336
|
i && (g = { behavior: g.behavior, left: g.top }), s.current.scrollBy(g);
|
|
2326
2337
|
}
|
|
2327
|
-
return { scrollByCallback:
|
|
2338
|
+
return { scrollByCallback: w, scrollerRef: s, scrollToCallback: h };
|
|
2328
2339
|
}
|
|
2329
|
-
const At = "-webkit-sticky",
|
|
2340
|
+
const At = "-webkit-sticky", _o = "sticky", oo = cn(() => {
|
|
2330
2341
|
if (typeof document > "u")
|
|
2331
|
-
return
|
|
2342
|
+
return _o;
|
|
2332
2343
|
const e = document.createElement("div");
|
|
2333
|
-
return e.style.position = At, e.style.position === At ? At :
|
|
2344
|
+
return e.style.position = At, e.style.position === At ? At : _o;
|
|
2334
2345
|
});
|
|
2335
|
-
function
|
|
2346
|
+
function hn(e) {
|
|
2336
2347
|
return e;
|
|
2337
2348
|
}
|
|
2338
|
-
const
|
|
2339
|
-
const e =
|
|
2349
|
+
const Er = /* @__PURE__ */ J(() => {
|
|
2350
|
+
const e = H((l) => `Item ${l}`), t = H((l) => `Group ${l}`), o = H({}), n = H(hn), r = H("div"), i = H(dt), s = (l, c = null) => pe(
|
|
2340
2351
|
v(
|
|
2341
2352
|
o,
|
|
2342
|
-
|
|
2353
|
+
R((a) => a[l]),
|
|
2343
2354
|
re()
|
|
2344
2355
|
),
|
|
2345
2356
|
c
|
|
@@ -2361,105 +2372,105 @@ const vr = /* @__PURE__ */ J(() => {
|
|
|
2361
2372
|
ScrollSeekPlaceholder: s("ScrollSeekPlaceholder"),
|
|
2362
2373
|
TopItemListComponent: s("TopItemList")
|
|
2363
2374
|
};
|
|
2364
|
-
}),
|
|
2375
|
+
}), Rr = /* @__PURE__ */ J(
|
|
2365
2376
|
([e, t]) => ({ ...e, ...t }),
|
|
2366
|
-
ie(
|
|
2367
|
-
),
|
|
2368
|
-
const t = V("listState"), o = ke("sizeRanges"), n = V("useWindowScroll"), r = V("customScrollParent"), i = ke("windowScrollContainerState"), s = ke("scrollContainerState"), l = r || n ? i : s, c = V("itemContent"),
|
|
2377
|
+
ie(Hr, Er)
|
|
2378
|
+
), zr = ({ height: e }) => /* @__PURE__ */ I.jsx("div", { style: { height: e } }), Br = { overflowAnchor: "none", position: oo(), zIndex: 1 }, gn = { overflowAnchor: "none" }, Lr = { ...gn, display: "inline-block", height: "100%" }, ko = /* @__PURE__ */ j.memo(function({ showTopList: e = !1 }) {
|
|
2379
|
+
const t = V("listState"), o = ke("sizeRanges"), n = V("useWindowScroll"), r = V("customScrollParent"), i = ke("windowScrollContainerState"), s = ke("scrollContainerState"), l = r || n ? i : s, c = V("itemContent"), a = V("context"), h = V("groupContent"), w = V("trackItemSizes"), g = V("itemSize"), p = V("log"), _ = ke("gap"), b = V("horizontalDirection"), { callbackRef: x } = Un(
|
|
2369
2380
|
o,
|
|
2370
2381
|
g,
|
|
2371
|
-
|
|
2372
|
-
e ?
|
|
2382
|
+
w,
|
|
2383
|
+
e ? dt : l,
|
|
2373
2384
|
p,
|
|
2374
|
-
|
|
2385
|
+
_,
|
|
2375
2386
|
r,
|
|
2376
|
-
|
|
2387
|
+
b,
|
|
2377
2388
|
V("skipAnimationFrameInResizeObserver")
|
|
2378
2389
|
), [f, m] = j.useState(0);
|
|
2379
|
-
|
|
2390
|
+
no("deviation", (L) => {
|
|
2380
2391
|
f !== L && m(L);
|
|
2381
2392
|
});
|
|
2382
|
-
const
|
|
2393
|
+
const S = V("EmptyPlaceholder"), z = V("ScrollSeekPlaceholder") || zr, u = V("ListComponent"), d = V("ItemComponent"), C = V("GroupComponent"), k = V("computeItemKey"), B = V("isSeeking"), M = V("groupIndices").length > 0, A = V("alignToBottom"), U = V("initialItemFinalLocationReached"), Q = e ? {} : {
|
|
2383
2394
|
boxSizing: "border-box",
|
|
2384
|
-
...
|
|
2395
|
+
...b ? {
|
|
2385
2396
|
display: "inline-block",
|
|
2386
2397
|
height: "100%",
|
|
2387
|
-
marginLeft: f !== 0 ? f :
|
|
2398
|
+
marginLeft: f !== 0 ? f : A ? "auto" : 0,
|
|
2388
2399
|
paddingLeft: t.offsetTop,
|
|
2389
2400
|
paddingRight: t.offsetBottom,
|
|
2390
2401
|
whiteSpace: "nowrap"
|
|
2391
2402
|
} : {
|
|
2392
|
-
marginTop: f !== 0 ? f :
|
|
2403
|
+
marginTop: f !== 0 ? f : A ? "auto" : 0,
|
|
2393
2404
|
paddingBottom: t.offsetBottom,
|
|
2394
2405
|
paddingTop: t.offsetTop
|
|
2395
2406
|
},
|
|
2396
2407
|
...U ? {} : { visibility: "hidden" }
|
|
2397
2408
|
};
|
|
2398
|
-
return !e && t.totalCount === 0 &&
|
|
2399
|
-
|
|
2409
|
+
return !e && t.totalCount === 0 && S ? /* @__PURE__ */ I.jsx(S, { ...ge(S, a) }) : /* @__PURE__ */ I.jsx(
|
|
2410
|
+
u,
|
|
2400
2411
|
{
|
|
2401
|
-
...ge(
|
|
2412
|
+
...ge(u, a),
|
|
2402
2413
|
"data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
|
|
2403
2414
|
ref: x,
|
|
2404
2415
|
style: Q,
|
|
2405
2416
|
children: (e ? t.topItems : t.items).map((L) => {
|
|
2406
|
-
const P = L.originalIndex, ue =
|
|
2407
|
-
return B ? /* @__PURE__ */
|
|
2408
|
-
|
|
2417
|
+
const P = L.originalIndex, ue = k(P + t.firstItemIndex, L.data, a);
|
|
2418
|
+
return B ? /* @__PURE__ */ Tt(
|
|
2419
|
+
z,
|
|
2409
2420
|
{
|
|
2410
|
-
...ge(
|
|
2421
|
+
...ge(z, a),
|
|
2411
2422
|
height: L.size,
|
|
2412
2423
|
index: L.index,
|
|
2413
2424
|
key: ue,
|
|
2414
2425
|
type: L.type || "item",
|
|
2415
2426
|
...L.type === "group" ? {} : { groupIndex: L.groupIndex }
|
|
2416
2427
|
}
|
|
2417
|
-
) : L.type === "group" ? /* @__PURE__ */
|
|
2418
|
-
|
|
2428
|
+
) : L.type === "group" ? /* @__PURE__ */ Tt(
|
|
2429
|
+
C,
|
|
2419
2430
|
{
|
|
2420
|
-
...ge(
|
|
2431
|
+
...ge(C, a),
|
|
2421
2432
|
"data-index": P,
|
|
2422
2433
|
"data-item-index": L.index,
|
|
2423
2434
|
"data-known-size": L.size,
|
|
2424
2435
|
key: ue,
|
|
2425
|
-
style:
|
|
2436
|
+
style: Br
|
|
2426
2437
|
},
|
|
2427
|
-
h(L.index,
|
|
2428
|
-
) : /* @__PURE__ */
|
|
2438
|
+
h(L.index, a)
|
|
2439
|
+
) : /* @__PURE__ */ Tt(
|
|
2429
2440
|
d,
|
|
2430
2441
|
{
|
|
2431
|
-
...ge(d,
|
|
2432
|
-
...
|
|
2442
|
+
...ge(d, a),
|
|
2443
|
+
...Wr(d, L.data),
|
|
2433
2444
|
"data-index": P,
|
|
2434
2445
|
"data-item-group-index": L.groupIndex,
|
|
2435
2446
|
"data-item-index": L.index,
|
|
2436
2447
|
"data-known-size": L.size,
|
|
2437
2448
|
key: ue,
|
|
2438
|
-
style:
|
|
2449
|
+
style: b ? Lr : gn
|
|
2439
2450
|
},
|
|
2440
|
-
M ? c(L.index, L.groupIndex, L.data,
|
|
2451
|
+
M ? c(L.index, L.groupIndex, L.data, a) : c(L.index, L.data, a)
|
|
2441
2452
|
);
|
|
2442
2453
|
})
|
|
2443
2454
|
}
|
|
2444
2455
|
);
|
|
2445
|
-
}),
|
|
2456
|
+
}), jr = {
|
|
2446
2457
|
height: "100%",
|
|
2447
2458
|
outline: "none",
|
|
2448
2459
|
overflowY: "auto",
|
|
2449
2460
|
position: "relative",
|
|
2450
2461
|
WebkitOverflowScrolling: "touch"
|
|
2451
|
-
},
|
|
2462
|
+
}, Mr = {
|
|
2452
2463
|
outline: "none",
|
|
2453
2464
|
overflowX: "auto",
|
|
2454
2465
|
position: "relative"
|
|
2455
|
-
},
|
|
2466
|
+
}, Bt = (e) => ({
|
|
2456
2467
|
height: "100%",
|
|
2457
2468
|
position: "absolute",
|
|
2458
2469
|
top: 0,
|
|
2459
2470
|
width: "100%",
|
|
2460
2471
|
...e ? { display: "flex", flexDirection: "column" } : {}
|
|
2461
|
-
}),
|
|
2462
|
-
position:
|
|
2472
|
+
}), Nr = {
|
|
2473
|
+
position: oo(),
|
|
2463
2474
|
top: 0,
|
|
2464
2475
|
width: "100%",
|
|
2465
2476
|
zIndex: 1
|
|
@@ -2468,10 +2479,10 @@ function ge(e, t) {
|
|
|
2468
2479
|
if (typeof e != "string")
|
|
2469
2480
|
return { context: t };
|
|
2470
2481
|
}
|
|
2471
|
-
function
|
|
2482
|
+
function Wr(e, t) {
|
|
2472
2483
|
return { item: typeof e == "string" ? void 0 : t };
|
|
2473
2484
|
}
|
|
2474
|
-
const
|
|
2485
|
+
const Ar = /* @__PURE__ */ j.memo(function() {
|
|
2475
2486
|
const e = V("HeaderComponent"), t = ke("headerHeight"), o = V("HeaderFooterTag"), n = Ye(
|
|
2476
2487
|
j.useMemo(
|
|
2477
2488
|
() => (i) => {
|
|
@@ -2482,8 +2493,8 @@ const kr = /* @__PURE__ */ j.memo(function() {
|
|
|
2482
2493
|
!0,
|
|
2483
2494
|
V("skipAnimationFrameInResizeObserver")
|
|
2484
2495
|
), r = V("context");
|
|
2485
|
-
return e ? /* @__PURE__ */
|
|
2486
|
-
}),
|
|
2496
|
+
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
|
|
2497
|
+
}), Or = /* @__PURE__ */ j.memo(function() {
|
|
2487
2498
|
const e = V("FooterComponent"), t = ke("footerHeight"), o = V("HeaderFooterTag"), n = Ye(
|
|
2488
2499
|
j.useMemo(
|
|
2489
2500
|
() => (i) => {
|
|
@@ -2494,25 +2505,25 @@ const kr = /* @__PURE__ */ j.memo(function() {
|
|
|
2494
2505
|
!0,
|
|
2495
2506
|
V("skipAnimationFrameInResizeObserver")
|
|
2496
2507
|
), r = V("context");
|
|
2497
|
-
return e ? /* @__PURE__ */
|
|
2508
|
+
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
|
|
2498
2509
|
});
|
|
2499
|
-
function
|
|
2510
|
+
function pn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
2500
2511
|
return j.memo(function({ children: n, style: r, context: i, ...s }) {
|
|
2501
|
-
const l = o("scrollContainerState"), c = t("ScrollerComponent"),
|
|
2512
|
+
const l = o("scrollContainerState"), c = t("ScrollerComponent"), a = o("smoothScrollTargetReached"), h = t("scrollerRef"), w = t("horizontalDirection") || !1, { scrollByCallback: g, scrollerRef: p, scrollToCallback: _ } = fn(
|
|
2502
2513
|
l,
|
|
2503
|
-
|
|
2514
|
+
a,
|
|
2504
2515
|
c,
|
|
2505
2516
|
h,
|
|
2506
2517
|
void 0,
|
|
2507
|
-
|
|
2518
|
+
w
|
|
2508
2519
|
);
|
|
2509
|
-
return e("scrollTo",
|
|
2520
|
+
return e("scrollTo", _), e("scrollBy", g), /* @__PURE__ */ I.jsx(
|
|
2510
2521
|
c,
|
|
2511
2522
|
{
|
|
2512
2523
|
"data-testid": "virtuoso-scroller",
|
|
2513
2524
|
"data-virtuoso-scroller": !0,
|
|
2514
2525
|
ref: p,
|
|
2515
|
-
style: { ...
|
|
2526
|
+
style: { ...w ? Mr : jr, ...r },
|
|
2516
2527
|
tabIndex: 0,
|
|
2517
2528
|
...s,
|
|
2518
2529
|
...ge(c, i),
|
|
@@ -2521,26 +2532,26 @@ function an({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
|
2521
2532
|
);
|
|
2522
2533
|
});
|
|
2523
2534
|
}
|
|
2524
|
-
function
|
|
2535
|
+
function xn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
2525
2536
|
return j.memo(function({ children: n, style: r, context: i, ...s }) {
|
|
2526
|
-
const l = o("windowScrollContainerState"), c = t("ScrollerComponent"),
|
|
2537
|
+
const l = o("windowScrollContainerState"), c = t("ScrollerComponent"), a = o("smoothScrollTargetReached"), h = t("totalListHeight"), w = t("deviation"), g = t("customScrollParent"), p = j.useRef(null), _ = t("scrollerRef"), { scrollByCallback: b, scrollerRef: x, scrollToCallback: f } = fn(
|
|
2527
2538
|
l,
|
|
2528
|
-
|
|
2539
|
+
a,
|
|
2529
2540
|
c,
|
|
2530
|
-
|
|
2541
|
+
_,
|
|
2531
2542
|
g
|
|
2532
2543
|
);
|
|
2533
|
-
return
|
|
2544
|
+
return mn(() => {
|
|
2534
2545
|
var m;
|
|
2535
2546
|
return x.current = g || ((m = p.current) == null ? void 0 : m.ownerDocument.defaultView), () => {
|
|
2536
2547
|
x.current = null;
|
|
2537
2548
|
};
|
|
2538
|
-
}, [x, g]), e("windowScrollTo", f), e("scrollBy",
|
|
2549
|
+
}, [x, g]), e("windowScrollTo", f), e("scrollBy", b), /* @__PURE__ */ I.jsx(
|
|
2539
2550
|
c,
|
|
2540
2551
|
{
|
|
2541
2552
|
ref: p,
|
|
2542
2553
|
"data-virtuoso-scroller": !0,
|
|
2543
|
-
style: { position: "relative", ...r, ...h !== 0 ? { height: h +
|
|
2554
|
+
style: { position: "relative", ...r, ...h !== 0 ? { height: h + w } : {} },
|
|
2544
2555
|
...s,
|
|
2545
2556
|
...ge(c, i),
|
|
2546
2557
|
children: n
|
|
@@ -2548,43 +2559,43 @@ function un({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
|
2548
2559
|
);
|
|
2549
2560
|
});
|
|
2550
2561
|
}
|
|
2551
|
-
const
|
|
2552
|
-
const t = j.useContext(
|
|
2553
|
-
() =>
|
|
2562
|
+
const Pr = ({ children: e }) => {
|
|
2563
|
+
const t = j.useContext(un), o = ke("viewportHeight"), n = ke("fixedItemHeight"), r = V("alignToBottom"), i = V("horizontalDirection"), s = j.useMemo(
|
|
2564
|
+
() => Do(o, (c) => Ve(c, i ? "width" : "height")),
|
|
2554
2565
|
[o, i]
|
|
2555
2566
|
), l = Ye(s, !0, V("skipAnimationFrameInResizeObserver"));
|
|
2556
2567
|
return j.useEffect(() => {
|
|
2557
2568
|
t && (o(t.viewportHeight), n(t.itemHeight));
|
|
2558
|
-
}, [t, o, n]), /* @__PURE__ */
|
|
2559
|
-
},
|
|
2560
|
-
const t = j.useContext(
|
|
2569
|
+
}, [t, o, n]), /* @__PURE__ */ I.jsx("div", { "data-viewport-type": "element", ref: l, style: Bt(r), children: e });
|
|
2570
|
+
}, Dr = ({ children: e }) => {
|
|
2571
|
+
const t = j.useContext(un), o = ke("windowViewportRect"), n = ke("fixedItemHeight"), r = V("customScrollParent"), i = Go(
|
|
2561
2572
|
o,
|
|
2562
2573
|
r,
|
|
2563
2574
|
V("skipAnimationFrameInResizeObserver")
|
|
2564
2575
|
), s = V("alignToBottom");
|
|
2565
2576
|
return j.useEffect(() => {
|
|
2566
2577
|
t && (n(t.itemHeight), o({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
|
2567
|
-
}, [t, o, n]), /* @__PURE__ */
|
|
2568
|
-
},
|
|
2569
|
-
const t = V("TopItemListComponent") || "div", o = V("headerHeight"), n = { ...
|
|
2570
|
-
return /* @__PURE__ */
|
|
2571
|
-
},
|
|
2578
|
+
}, [t, o, n]), /* @__PURE__ */ I.jsx("div", { "data-viewport-type": "window", ref: i, style: Bt(s), children: e });
|
|
2579
|
+
}, Vr = ({ children: e }) => {
|
|
2580
|
+
const t = V("TopItemListComponent") || "div", o = V("headerHeight"), n = { ...Nr, marginTop: `${o}px` }, r = V("context");
|
|
2581
|
+
return /* @__PURE__ */ I.jsx(t, { style: n, ...ge(t, r), children: e });
|
|
2582
|
+
}, Gr = /* @__PURE__ */ j.memo(function(e) {
|
|
2572
2583
|
const t = V("useWindowScroll"), o = V("topItemsIndexes").length > 0, n = V("customScrollParent"), r = V("context");
|
|
2573
|
-
return /* @__PURE__ */
|
|
2574
|
-
o && /* @__PURE__ */
|
|
2575
|
-
/* @__PURE__ */
|
|
2576
|
-
/* @__PURE__ */
|
|
2577
|
-
/* @__PURE__ */
|
|
2578
|
-
/* @__PURE__ */
|
|
2584
|
+
return /* @__PURE__ */ I.jsxs(n || t ? qr : $r, { ...e, context: r, children: [
|
|
2585
|
+
o && /* @__PURE__ */ I.jsx(Vr, { children: /* @__PURE__ */ I.jsx(ko, { showTopList: !0 }) }),
|
|
2586
|
+
/* @__PURE__ */ I.jsxs(n || t ? Dr : Pr, { children: [
|
|
2587
|
+
/* @__PURE__ */ I.jsx(Ar, {}),
|
|
2588
|
+
/* @__PURE__ */ I.jsx(ko, {}),
|
|
2589
|
+
/* @__PURE__ */ I.jsx(Or, {})
|
|
2579
2590
|
] })
|
|
2580
2591
|
] });
|
|
2581
2592
|
}), {
|
|
2582
|
-
Component:
|
|
2583
|
-
useEmitter:
|
|
2593
|
+
Component: Fr,
|
|
2594
|
+
useEmitter: no,
|
|
2584
2595
|
useEmitterValue: V,
|
|
2585
2596
|
usePublisher: ke
|
|
2586
|
-
} = /* @__PURE__ */
|
|
2587
|
-
|
|
2597
|
+
} = /* @__PURE__ */ an(
|
|
2598
|
+
Rr,
|
|
2588
2599
|
{
|
|
2589
2600
|
required: {},
|
|
2590
2601
|
optional: {
|
|
@@ -2641,10 +2652,10 @@ const Er = ({ children: e }) => {
|
|
|
2641
2652
|
groupIndices: "groupIndices"
|
|
2642
2653
|
}
|
|
2643
2654
|
},
|
|
2644
|
-
|
|
2645
|
-
),
|
|
2646
|
-
|
|
2647
|
-
const
|
|
2655
|
+
Gr
|
|
2656
|
+
), $r = /* @__PURE__ */ pn({ useEmitter: no, useEmitterValue: V, usePublisher: ke }), qr = /* @__PURE__ */ xn({ useEmitter: no, useEmitterValue: V, usePublisher: ke }), Ur = Fr;
|
|
2657
|
+
oo();
|
|
2658
|
+
const Eo = {
|
|
2648
2659
|
bottom: 0,
|
|
2649
2660
|
itemHeight: 0,
|
|
2650
2661
|
items: [],
|
|
@@ -2652,7 +2663,7 @@ const bo = {
|
|
|
2652
2663
|
offsetBottom: 0,
|
|
2653
2664
|
offsetTop: 0,
|
|
2654
2665
|
top: 0
|
|
2655
|
-
},
|
|
2666
|
+
}, Kr = {
|
|
2656
2667
|
bottom: 0,
|
|
2657
2668
|
itemHeight: 0,
|
|
2658
2669
|
items: [{ index: 0 }],
|
|
@@ -2660,114 +2671,114 @@ const bo = {
|
|
|
2660
2671
|
offsetBottom: 0,
|
|
2661
2672
|
offsetTop: 0,
|
|
2662
2673
|
top: 0
|
|
2663
|
-
}, { ceil:
|
|
2664
|
-
function
|
|
2674
|
+
}, { ceil: Ro, floor: _t, max: it, min: Ot, round: zo } = Math;
|
|
2675
|
+
function Bo(e, t, o) {
|
|
2665
2676
|
return Array.from({ length: t - e + 1 }).map((n, r) => ({ data: o === null ? null : o[r + e], index: r + e }));
|
|
2666
2677
|
}
|
|
2667
|
-
function
|
|
2678
|
+
function Yr(e) {
|
|
2668
2679
|
return {
|
|
2669
|
-
...
|
|
2680
|
+
...Kr,
|
|
2670
2681
|
items: e
|
|
2671
2682
|
};
|
|
2672
2683
|
}
|
|
2673
|
-
function
|
|
2684
|
+
function It(e, t) {
|
|
2674
2685
|
return e && e.width === t.width && e.height === t.height;
|
|
2675
2686
|
}
|
|
2676
|
-
function
|
|
2687
|
+
function Xr(e, t) {
|
|
2677
2688
|
return e && e.column === t.column && e.row === t.row;
|
|
2678
2689
|
}
|
|
2679
|
-
const
|
|
2690
|
+
const Zr = /* @__PURE__ */ J(
|
|
2680
2691
|
([
|
|
2681
2692
|
{ increaseViewportBy: e, listBoundary: t, overscan: o, visibleRange: n },
|
|
2682
|
-
{ footerHeight: r, headerHeight: i, scrollBy: s, scrollContainerState: l, scrollTo: c, scrollTop:
|
|
2693
|
+
{ footerHeight: r, headerHeight: i, scrollBy: s, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: h, viewportHeight: w },
|
|
2683
2694
|
g,
|
|
2684
2695
|
p,
|
|
2685
|
-
{ didMount:
|
|
2686
|
-
{ customScrollParent: x, useWindowScroll: f, windowScrollContainerState: m, windowScrollTo:
|
|
2687
|
-
|
|
2696
|
+
{ didMount: _, propsReady: b },
|
|
2697
|
+
{ customScrollParent: x, useWindowScroll: f, windowScrollContainerState: m, windowScrollTo: S, windowViewportRect: z },
|
|
2698
|
+
u
|
|
2688
2699
|
]) => {
|
|
2689
|
-
const d =
|
|
2700
|
+
const d = H(0), C = H(0), k = H(Eo), B = H({ height: 0, width: 0 }), M = H({ height: 0, width: 0 }), A = K(), U = K(), Q = H(0), L = H(null), P = H({ column: 0, row: 0 }), ue = K(), ve = K(), we = H(!1), Ce = H(0), he = H(!0), de = H(!1), Oe = H(!1);
|
|
2690
2701
|
Z(
|
|
2691
2702
|
v(
|
|
2692
|
-
|
|
2703
|
+
_,
|
|
2693
2704
|
$(Ce),
|
|
2694
|
-
|
|
2705
|
+
O(([T, G]) => !!G)
|
|
2695
2706
|
),
|
|
2696
2707
|
() => {
|
|
2697
2708
|
F(he, !1);
|
|
2698
2709
|
}
|
|
2699
2710
|
), Z(
|
|
2700
2711
|
v(
|
|
2701
|
-
ae(
|
|
2702
|
-
|
|
2712
|
+
ae(_, he, M, B, Ce, de),
|
|
2713
|
+
O(([T, G, te, y, , E]) => T && !G && te.height !== 0 && y.height !== 0 && !E)
|
|
2703
2714
|
),
|
|
2704
|
-
([, , , ,
|
|
2705
|
-
F(de, !0),
|
|
2706
|
-
F(
|
|
2707
|
-
}),
|
|
2715
|
+
([, , , , T]) => {
|
|
2716
|
+
F(de, !0), Jt(1, () => {
|
|
2717
|
+
F(A, T);
|
|
2718
|
+
}), ze(v(a), () => {
|
|
2708
2719
|
F(t, [0, 0]), F(he, !0);
|
|
2709
2720
|
});
|
|
2710
2721
|
}
|
|
2711
|
-
),
|
|
2722
|
+
), N(
|
|
2712
2723
|
v(
|
|
2713
2724
|
ve,
|
|
2714
|
-
|
|
2715
|
-
|
|
2725
|
+
O((T) => T != null && T.scrollTop > 0),
|
|
2726
|
+
Ne(0)
|
|
2716
2727
|
),
|
|
2717
|
-
|
|
2728
|
+
C
|
|
2718
2729
|
), Z(
|
|
2719
2730
|
v(
|
|
2720
|
-
|
|
2731
|
+
_,
|
|
2721
2732
|
$(ve),
|
|
2722
|
-
|
|
2733
|
+
O(([, T]) => T != null)
|
|
2723
2734
|
),
|
|
2724
|
-
([,
|
|
2725
|
-
|
|
2735
|
+
([, T]) => {
|
|
2736
|
+
T && (F(B, T.viewport), F(M, T.item), F(P, T.gap), T.scrollTop > 0 && (F(we, !0), ze(v(a, Ke(1)), (G) => {
|
|
2726
2737
|
F(we, !1);
|
|
2727
|
-
}), F(c, { top:
|
|
2738
|
+
}), F(c, { top: T.scrollTop })));
|
|
2728
2739
|
}
|
|
2729
|
-
),
|
|
2740
|
+
), N(
|
|
2730
2741
|
v(
|
|
2731
2742
|
B,
|
|
2732
|
-
|
|
2743
|
+
R(({ height: T }) => T)
|
|
2733
2744
|
),
|
|
2734
|
-
|
|
2735
|
-
),
|
|
2745
|
+
w
|
|
2746
|
+
), N(
|
|
2736
2747
|
v(
|
|
2737
2748
|
ae(
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2749
|
+
W(B, It),
|
|
2750
|
+
W(M, It),
|
|
2751
|
+
W(P, (T, G) => T && T.column === G.column && T.row === G.row),
|
|
2752
|
+
W(a)
|
|
2742
2753
|
),
|
|
2743
|
-
|
|
2754
|
+
R(([T, G, te, y]) => ({
|
|
2744
2755
|
gap: te,
|
|
2745
2756
|
item: G,
|
|
2746
|
-
scrollTop:
|
|
2747
|
-
viewport:
|
|
2757
|
+
scrollTop: y,
|
|
2758
|
+
viewport: T
|
|
2748
2759
|
}))
|
|
2749
2760
|
),
|
|
2750
2761
|
ue
|
|
2751
|
-
),
|
|
2762
|
+
), N(
|
|
2752
2763
|
v(
|
|
2753
2764
|
ae(
|
|
2754
|
-
|
|
2765
|
+
W(d),
|
|
2755
2766
|
n,
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2767
|
+
W(P, Xr),
|
|
2768
|
+
W(M, It),
|
|
2769
|
+
W(B, It),
|
|
2770
|
+
W(L),
|
|
2771
|
+
W(C),
|
|
2772
|
+
W(we),
|
|
2773
|
+
W(he),
|
|
2774
|
+
W(Ce)
|
|
2764
2775
|
),
|
|
2765
|
-
|
|
2766
|
-
|
|
2776
|
+
O(([, , , , , , , T]) => !T),
|
|
2777
|
+
R(
|
|
2767
2778
|
([
|
|
2768
|
-
|
|
2779
|
+
T,
|
|
2769
2780
|
[G, te],
|
|
2770
|
-
|
|
2781
|
+
y,
|
|
2771
2782
|
E,
|
|
2772
2783
|
Y,
|
|
2773
2784
|
D,
|
|
@@ -2776,107 +2787,107 @@ const Pr = /* @__PURE__ */ J(
|
|
|
2776
2787
|
oe,
|
|
2777
2788
|
X
|
|
2778
2789
|
]) => {
|
|
2779
|
-
const { column: fe, row:
|
|
2780
|
-
if (q === 0 && (
|
|
2781
|
-
return
|
|
2790
|
+
const { column: fe, row: Re } = y, { height: je, width: ye } = E, { width: Me } = Y;
|
|
2791
|
+
if (q === 0 && (T === 0 || Me === 0))
|
|
2792
|
+
return Eo;
|
|
2782
2793
|
if (ye === 0) {
|
|
2783
|
-
const
|
|
2784
|
-
return
|
|
2794
|
+
const co = Qt(X, T), wn = co + Math.max(q - 1, 0);
|
|
2795
|
+
return Yr(Bo(co, wn, D));
|
|
2785
2796
|
}
|
|
2786
|
-
const
|
|
2797
|
+
const gt = vn(Me, ye, fe);
|
|
2787
2798
|
let Ze, qe;
|
|
2788
|
-
oe ? G === 0 && te === 0 && q > 0 ? (Ze = 0, qe = q - 1) : (Ze =
|
|
2789
|
-
const
|
|
2790
|
-
return { bottom:
|
|
2799
|
+
oe ? G === 0 && te === 0 && q > 0 ? (Ze = 0, qe = q - 1) : (Ze = gt * _t((G + Re) / (je + Re)), qe = gt * Ro((te + Re) / (je + Re)) - 1, qe = Ot(T - 1, it(qe, gt - 1)), Ze = Ot(qe, it(0, Ze))) : (Ze = 0, qe = -1);
|
|
2800
|
+
const ro = Bo(Ze, qe, D), { bottom: io, top: so } = Lo(Y, y, E, ro), lo = Ro(T / gt), Tn = lo * je + (lo - 1) * Re - io;
|
|
2801
|
+
return { bottom: io, itemHeight: je, items: ro, itemWidth: ye, offsetBottom: Tn, offsetTop: so, top: so };
|
|
2791
2802
|
}
|
|
2792
2803
|
)
|
|
2793
2804
|
),
|
|
2794
|
-
|
|
2795
|
-
),
|
|
2805
|
+
k
|
|
2806
|
+
), N(
|
|
2796
2807
|
v(
|
|
2797
2808
|
L,
|
|
2798
|
-
|
|
2799
|
-
|
|
2809
|
+
O((T) => T !== null),
|
|
2810
|
+
R((T) => T.length)
|
|
2800
2811
|
),
|
|
2801
2812
|
d
|
|
2802
|
-
),
|
|
2813
|
+
), N(
|
|
2803
2814
|
v(
|
|
2804
|
-
ae(B, M,
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
const { bottom: E, top: Y } =
|
|
2815
|
+
ae(B, M, k, P),
|
|
2816
|
+
O(([T, G, { items: te }]) => te.length > 0 && G.height !== 0 && T.height !== 0),
|
|
2817
|
+
R(([T, G, { items: te }, y]) => {
|
|
2818
|
+
const { bottom: E, top: Y } = Lo(T, y, G, te);
|
|
2808
2819
|
return [Y, E];
|
|
2809
2820
|
}),
|
|
2810
|
-
re(
|
|
2821
|
+
re(ct)
|
|
2811
2822
|
),
|
|
2812
2823
|
t
|
|
2813
2824
|
);
|
|
2814
|
-
const Ie =
|
|
2815
|
-
|
|
2825
|
+
const Ie = H(!1);
|
|
2826
|
+
N(
|
|
2816
2827
|
v(
|
|
2817
|
-
|
|
2828
|
+
a,
|
|
2818
2829
|
$(Ie),
|
|
2819
|
-
|
|
2830
|
+
R(([T, G]) => G || T !== 0)
|
|
2820
2831
|
),
|
|
2821
2832
|
Ie
|
|
2822
2833
|
);
|
|
2823
|
-
const Le =
|
|
2834
|
+
const Le = _e(
|
|
2824
2835
|
v(
|
|
2825
|
-
ae(
|
|
2826
|
-
|
|
2836
|
+
ae(k, d),
|
|
2837
|
+
O(([{ items: T }]) => T.length > 0),
|
|
2827
2838
|
$(Ie),
|
|
2828
|
-
|
|
2829
|
-
const
|
|
2830
|
-
return (te ||
|
|
2839
|
+
O(([[T, G], te]) => {
|
|
2840
|
+
const y = T.items[T.items.length - 1].index === G - 1;
|
|
2841
|
+
return (te || T.bottom > 0 && T.itemHeight > 0 && T.offsetBottom === 0 && T.items.length === G) && y;
|
|
2831
2842
|
}),
|
|
2832
|
-
|
|
2843
|
+
R(([[, T]]) => T - 1),
|
|
2833
2844
|
re()
|
|
2834
2845
|
)
|
|
2835
|
-
), De =
|
|
2846
|
+
), De = _e(
|
|
2836
2847
|
v(
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2848
|
+
W(k),
|
|
2849
|
+
O(({ items: T }) => T.length > 0 && T[0].index === 0),
|
|
2850
|
+
Ne(0),
|
|
2840
2851
|
re()
|
|
2841
2852
|
)
|
|
2842
|
-
), Se =
|
|
2853
|
+
), Se = _e(
|
|
2843
2854
|
v(
|
|
2844
|
-
|
|
2855
|
+
W(k),
|
|
2845
2856
|
$(we),
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
endIndex:
|
|
2849
|
-
startIndex:
|
|
2857
|
+
O(([{ items: T }, G]) => T.length > 0 && !G),
|
|
2858
|
+
R(([{ items: T }]) => ({
|
|
2859
|
+
endIndex: T[T.length - 1].index,
|
|
2860
|
+
startIndex: T[0].index
|
|
2850
2861
|
})),
|
|
2851
|
-
re(
|
|
2862
|
+
re(Yo),
|
|
2852
2863
|
Pe(0)
|
|
2853
2864
|
)
|
|
2854
2865
|
);
|
|
2855
|
-
|
|
2866
|
+
N(Se, p.scrollSeekRangeChanged), N(
|
|
2856
2867
|
v(
|
|
2857
|
-
|
|
2868
|
+
A,
|
|
2858
2869
|
$(B, M, d, P),
|
|
2859
|
-
|
|
2860
|
-
const Y =
|
|
2870
|
+
R(([T, G, te, y, E]) => {
|
|
2871
|
+
const Y = en(T), { align: D, behavior: q, offset: oe } = Y;
|
|
2861
2872
|
let X = Y.index;
|
|
2862
|
-
X === "LAST" && (X =
|
|
2863
|
-
let fe =
|
|
2864
|
-
return D === "end" ? fe =
|
|
2873
|
+
X === "LAST" && (X = y - 1), X = it(0, X, Ot(y - 1, X));
|
|
2874
|
+
let fe = qt(G, E, te, X);
|
|
2875
|
+
return D === "end" ? fe = zo(fe - G.height + te.height) : D === "center" && (fe = zo(fe - G.height / 2 + te.height / 2)), oe && (fe += oe), { behavior: q, top: fe };
|
|
2865
2876
|
})
|
|
2866
2877
|
),
|
|
2867
2878
|
c
|
|
2868
2879
|
);
|
|
2869
2880
|
const ce = pe(
|
|
2870
2881
|
v(
|
|
2871
|
-
|
|
2872
|
-
|
|
2882
|
+
k,
|
|
2883
|
+
R((T) => T.offsetBottom + T.bottom)
|
|
2873
2884
|
),
|
|
2874
2885
|
0
|
|
2875
2886
|
);
|
|
2876
|
-
return
|
|
2887
|
+
return N(
|
|
2877
2888
|
v(
|
|
2878
|
-
|
|
2879
|
-
|
|
2889
|
+
z,
|
|
2890
|
+
R((T) => ({ height: T.visibleHeight, width: T.visibleWidth }))
|
|
2880
2891
|
),
|
|
2881
2892
|
B
|
|
2882
2893
|
), {
|
|
@@ -2888,7 +2899,7 @@ const Pr = /* @__PURE__ */ J(
|
|
|
2888
2899
|
gap: P,
|
|
2889
2900
|
headerHeight: i,
|
|
2890
2901
|
increaseViewportBy: e,
|
|
2891
|
-
initialItemCount:
|
|
2902
|
+
initialItemCount: C,
|
|
2892
2903
|
itemDimensions: M,
|
|
2893
2904
|
overscan: o,
|
|
2894
2905
|
restoreStateFrom: ve,
|
|
@@ -2896,57 +2907,57 @@ const Pr = /* @__PURE__ */ J(
|
|
|
2896
2907
|
scrollContainerState: l,
|
|
2897
2908
|
scrollHeight: U,
|
|
2898
2909
|
scrollTo: c,
|
|
2899
|
-
scrollToIndex:
|
|
2900
|
-
scrollTop:
|
|
2910
|
+
scrollToIndex: A,
|
|
2911
|
+
scrollTop: a,
|
|
2901
2912
|
smoothScrollTargetReached: h,
|
|
2902
2913
|
totalCount: d,
|
|
2903
2914
|
useWindowScroll: f,
|
|
2904
2915
|
viewportDimensions: B,
|
|
2905
2916
|
windowScrollContainerState: m,
|
|
2906
|
-
windowScrollTo:
|
|
2907
|
-
windowViewportRect:
|
|
2917
|
+
windowScrollTo: S,
|
|
2918
|
+
windowViewportRect: z,
|
|
2908
2919
|
...p,
|
|
2909
2920
|
// output
|
|
2910
|
-
gridState:
|
|
2911
|
-
horizontalDirection:
|
|
2921
|
+
gridState: k,
|
|
2922
|
+
horizontalDirection: Oe,
|
|
2912
2923
|
initialTopMostItemIndex: Ce,
|
|
2913
2924
|
totalListHeight: ce,
|
|
2914
2925
|
...g,
|
|
2915
2926
|
endReached: Le,
|
|
2916
|
-
propsReady:
|
|
2927
|
+
propsReady: b,
|
|
2917
2928
|
rangeChanged: Se,
|
|
2918
2929
|
startReached: De,
|
|
2919
2930
|
stateChanged: ue,
|
|
2920
2931
|
stateRestoreInProgress: we,
|
|
2921
|
-
...
|
|
2932
|
+
...u
|
|
2922
2933
|
};
|
|
2923
2934
|
},
|
|
2924
|
-
ie(
|
|
2935
|
+
ie(eo, xe, ht, ln, $e, to, Fe)
|
|
2925
2936
|
);
|
|
2926
|
-
function
|
|
2927
|
-
return
|
|
2937
|
+
function vn(e, t, o) {
|
|
2938
|
+
return it(1, _t((e + o) / (_t(t) + o)));
|
|
2928
2939
|
}
|
|
2929
|
-
function
|
|
2940
|
+
function Lo(e, t, o, n) {
|
|
2930
2941
|
const { height: r } = o;
|
|
2931
2942
|
if (r === void 0 || n.length === 0)
|
|
2932
2943
|
return { bottom: 0, top: 0 };
|
|
2933
|
-
const i =
|
|
2934
|
-
return { bottom:
|
|
2944
|
+
const i = qt(e, t, o, n[0].index);
|
|
2945
|
+
return { bottom: qt(e, t, o, n[n.length - 1].index) + r, top: i };
|
|
2935
2946
|
}
|
|
2936
|
-
function
|
|
2937
|
-
const r =
|
|
2947
|
+
function qt(e, t, o, n) {
|
|
2948
|
+
const r = vn(e.width, o.width, t.column), i = _t(n / r), s = i * o.height + it(0, i - 1) * t.row;
|
|
2938
2949
|
return s > 0 ? s + t.row : s;
|
|
2939
2950
|
}
|
|
2940
|
-
const
|
|
2941
|
-
const e =
|
|
2951
|
+
const Jr = /* @__PURE__ */ J(() => {
|
|
2952
|
+
const e = H((w) => `Item ${w}`), t = H({}), o = H(null), n = H("virtuoso-grid-item"), r = H("virtuoso-grid-list"), i = H(hn), s = H("div"), l = H(dt), c = (w, g = null) => pe(
|
|
2942
2953
|
v(
|
|
2943
2954
|
t,
|
|
2944
|
-
|
|
2955
|
+
R((p) => p[w]),
|
|
2945
2956
|
re()
|
|
2946
2957
|
),
|
|
2947
2958
|
g
|
|
2948
|
-
),
|
|
2949
|
-
return W(
|
|
2959
|
+
), a = H(!1), h = H(!1);
|
|
2960
|
+
return N(W(h), a), {
|
|
2950
2961
|
components: t,
|
|
2951
2962
|
computeItemKey: i,
|
|
2952
2963
|
context: o,
|
|
@@ -2958,39 +2969,39 @@ const Dr = /* @__PURE__ */ J(() => {
|
|
|
2958
2969
|
itemContent: e,
|
|
2959
2970
|
listClassName: r,
|
|
2960
2971
|
ListComponent: c("List", "div"),
|
|
2961
|
-
readyStateChanged:
|
|
2972
|
+
readyStateChanged: a,
|
|
2962
2973
|
reportReadyState: h,
|
|
2963
2974
|
ScrollerComponent: c("Scroller", "div"),
|
|
2964
2975
|
scrollerRef: l,
|
|
2965
2976
|
ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
|
|
2966
2977
|
};
|
|
2967
|
-
}),
|
|
2978
|
+
}), Qr = /* @__PURE__ */ J(
|
|
2968
2979
|
([e, t]) => ({ ...e, ...t }),
|
|
2969
|
-
ie(
|
|
2970
|
-
),
|
|
2971
|
-
const e = ne("gridState"), t = ne("listClassName"), o = ne("itemClassName"), n = ne("itemContent"), r = ne("computeItemKey"), i = ne("isSeeking"), s =
|
|
2980
|
+
ie(Zr, Jr)
|
|
2981
|
+
), ei = /* @__PURE__ */ j.memo(function() {
|
|
2982
|
+
const e = ne("gridState"), t = ne("listClassName"), o = ne("itemClassName"), n = ne("itemContent"), r = ne("computeItemKey"), i = ne("isSeeking"), s = Ee("scrollHeight"), l = ne("ItemComponent"), c = ne("ListComponent"), a = ne("ScrollSeekPlaceholder"), h = ne("context"), w = Ee("itemDimensions"), g = Ee("gap"), p = ne("log"), _ = ne("stateRestoreInProgress"), b = Ee("reportReadyState"), x = Ye(
|
|
2972
2983
|
j.useMemo(
|
|
2973
2984
|
() => (f) => {
|
|
2974
2985
|
const m = f.parentElement.parentElement.scrollHeight;
|
|
2975
2986
|
s(m);
|
|
2976
|
-
const
|
|
2977
|
-
if (
|
|
2978
|
-
const { height:
|
|
2979
|
-
|
|
2987
|
+
const S = f.firstChild;
|
|
2988
|
+
if (S) {
|
|
2989
|
+
const { height: z, width: u } = S.getBoundingClientRect();
|
|
2990
|
+
w({ height: z, width: u });
|
|
2980
2991
|
}
|
|
2981
2992
|
g({
|
|
2982
|
-
column:
|
|
2983
|
-
row:
|
|
2993
|
+
column: jo("column-gap", getComputedStyle(f).columnGap, p),
|
|
2994
|
+
row: jo("row-gap", getComputedStyle(f).rowGap, p)
|
|
2984
2995
|
});
|
|
2985
2996
|
},
|
|
2986
|
-
[s,
|
|
2997
|
+
[s, w, g, p]
|
|
2987
2998
|
),
|
|
2988
2999
|
!0,
|
|
2989
3000
|
!1
|
|
2990
3001
|
);
|
|
2991
|
-
return
|
|
2992
|
-
e.itemHeight > 0 && e.itemWidth > 0 &&
|
|
2993
|
-
}, [e]),
|
|
3002
|
+
return mn(() => {
|
|
3003
|
+
e.itemHeight > 0 && e.itemWidth > 0 && b(!0);
|
|
3004
|
+
}, [e]), _ ? null : /* @__PURE__ */ I.jsx(
|
|
2994
3005
|
c,
|
|
2995
3006
|
{
|
|
2996
3007
|
className: t,
|
|
@@ -3000,16 +3011,16 @@ const Dr = /* @__PURE__ */ J(() => {
|
|
|
3000
3011
|
style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
|
|
3001
3012
|
children: e.items.map((f) => {
|
|
3002
3013
|
const m = r(f.index, f.data, h);
|
|
3003
|
-
return i ? /* @__PURE__ */
|
|
3004
|
-
|
|
3014
|
+
return i ? /* @__PURE__ */ I.jsx(
|
|
3015
|
+
a,
|
|
3005
3016
|
{
|
|
3006
|
-
...ge(
|
|
3017
|
+
...ge(a, h),
|
|
3007
3018
|
height: e.itemHeight,
|
|
3008
3019
|
index: f.index,
|
|
3009
3020
|
width: e.itemWidth
|
|
3010
3021
|
},
|
|
3011
3022
|
m
|
|
3012
|
-
) : /* @__PURE__ */
|
|
3023
|
+
) : /* @__PURE__ */ Tt(
|
|
3013
3024
|
l,
|
|
3014
3025
|
{
|
|
3015
3026
|
...ge(l, h),
|
|
@@ -3022,8 +3033,8 @@ const Dr = /* @__PURE__ */ J(() => {
|
|
|
3022
3033
|
})
|
|
3023
3034
|
}
|
|
3024
3035
|
);
|
|
3025
|
-
}),
|
|
3026
|
-
const e = ne("HeaderComponent"), t =
|
|
3036
|
+
}), ti = j.memo(function() {
|
|
3037
|
+
const e = ne("HeaderComponent"), t = Ee("headerHeight"), o = ne("headerFooterTag"), n = Ye(
|
|
3027
3038
|
j.useMemo(
|
|
3028
3039
|
() => (i) => {
|
|
3029
3040
|
t(Ve(i, "height"));
|
|
@@ -3033,9 +3044,9 @@ const Dr = /* @__PURE__ */ J(() => {
|
|
|
3033
3044
|
!0,
|
|
3034
3045
|
!1
|
|
3035
3046
|
), r = ne("context");
|
|
3036
|
-
return e ? /* @__PURE__ */
|
|
3037
|
-
}),
|
|
3038
|
-
const e = ne("FooterComponent"), t =
|
|
3047
|
+
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
|
|
3048
|
+
}), oi = j.memo(function() {
|
|
3049
|
+
const e = ne("FooterComponent"), t = Ee("footerHeight"), o = ne("headerFooterTag"), n = Ye(
|
|
3039
3050
|
j.useMemo(
|
|
3040
3051
|
() => (i) => {
|
|
3041
3052
|
t(Ve(i, "height"));
|
|
@@ -3045,9 +3056,9 @@ const Dr = /* @__PURE__ */ J(() => {
|
|
|
3045
3056
|
!0,
|
|
3046
3057
|
!1
|
|
3047
3058
|
), r = ne("context");
|
|
3048
|
-
return e ? /* @__PURE__ */
|
|
3049
|
-
}),
|
|
3050
|
-
const t = j.useContext(
|
|
3059
|
+
return e ? /* @__PURE__ */ I.jsx(o, { ref: n, children: /* @__PURE__ */ I.jsx(e, { ...ge(e, r) }) }) : null;
|
|
3060
|
+
}), ni = ({ children: e }) => {
|
|
3061
|
+
const t = j.useContext(dn), o = Ee("itemDimensions"), n = Ee("viewportDimensions"), r = Ye(
|
|
3051
3062
|
j.useMemo(
|
|
3052
3063
|
() => (i) => {
|
|
3053
3064
|
n(i.getBoundingClientRect());
|
|
@@ -3059,26 +3070,26 @@ const Dr = /* @__PURE__ */ J(() => {
|
|
|
3059
3070
|
);
|
|
3060
3071
|
return j.useEffect(() => {
|
|
3061
3072
|
t && (n({ height: t.viewportHeight, width: t.viewportWidth }), o({ height: t.itemHeight, width: t.itemWidth }));
|
|
3062
|
-
}, [t, n, o]), /* @__PURE__ */
|
|
3063
|
-
},
|
|
3064
|
-
const t = j.useContext(
|
|
3073
|
+
}, [t, n, o]), /* @__PURE__ */ I.jsx("div", { ref: r, style: Bt(!1), children: e });
|
|
3074
|
+
}, ri = ({ children: e }) => {
|
|
3075
|
+
const t = j.useContext(dn), o = Ee("windowViewportRect"), n = Ee("itemDimensions"), r = ne("customScrollParent"), i = Go(o, r, !1);
|
|
3065
3076
|
return j.useEffect(() => {
|
|
3066
3077
|
t && (n({ height: t.itemHeight, width: t.itemWidth }), o({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
3067
|
-
}, [t, o, n]), /* @__PURE__ */
|
|
3068
|
-
},
|
|
3069
|
-
const t = ne("useWindowScroll"), o = ne("customScrollParent"), n = o || t ?
|
|
3070
|
-
return /* @__PURE__ */
|
|
3071
|
-
/* @__PURE__ */
|
|
3072
|
-
/* @__PURE__ */
|
|
3073
|
-
/* @__PURE__ */
|
|
3078
|
+
}, [t, o, n]), /* @__PURE__ */ I.jsx("div", { ref: i, style: Bt(!1), children: e });
|
|
3079
|
+
}, ii = /* @__PURE__ */ j.memo(function({ ...e }) {
|
|
3080
|
+
const t = ne("useWindowScroll"), o = ne("customScrollParent"), n = o || t ? li : si, r = o || t ? ri : ni, i = ne("context");
|
|
3081
|
+
return /* @__PURE__ */ I.jsx(n, { ...e, ...ge(n, i), children: /* @__PURE__ */ I.jsxs(r, { children: [
|
|
3082
|
+
/* @__PURE__ */ I.jsx(ti, {}),
|
|
3083
|
+
/* @__PURE__ */ I.jsx(ei, {}),
|
|
3084
|
+
/* @__PURE__ */ I.jsx(oi, {})
|
|
3074
3085
|
] }) });
|
|
3075
3086
|
}), {
|
|
3076
|
-
Component:
|
|
3077
|
-
useEmitter:
|
|
3087
|
+
Component: Ss,
|
|
3088
|
+
useEmitter: In,
|
|
3078
3089
|
useEmitterValue: ne,
|
|
3079
|
-
usePublisher:
|
|
3080
|
-
} = /* @__PURE__ */
|
|
3081
|
-
|
|
3090
|
+
usePublisher: Ee
|
|
3091
|
+
} = /* @__PURE__ */ an(
|
|
3092
|
+
Qr,
|
|
3082
3093
|
{
|
|
3083
3094
|
optional: {
|
|
3084
3095
|
context: "context",
|
|
@@ -3117,74 +3128,74 @@ const Dr = /* @__PURE__ */ J(() => {
|
|
|
3117
3128
|
readyStateChanged: "readyStateChanged"
|
|
3118
3129
|
}
|
|
3119
3130
|
},
|
|
3120
|
-
|
|
3121
|
-
),
|
|
3122
|
-
function
|
|
3131
|
+
ii
|
|
3132
|
+
), si = /* @__PURE__ */ pn({ useEmitter: In, useEmitterValue: ne, usePublisher: Ee }), li = /* @__PURE__ */ xn({ useEmitter: In, useEmitterValue: ne, usePublisher: Ee });
|
|
3133
|
+
function jo(e, t, o) {
|
|
3123
3134
|
return t !== "normal" && !(t != null && t.endsWith("px")) && o(`${e} was not resolved to pixel value correctly`, t, Te.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
3124
3135
|
}
|
|
3125
|
-
const
|
|
3126
|
-
realTimeLogModalStyle:
|
|
3127
|
-
customHeader:
|
|
3128
|
-
modalHeader:
|
|
3129
|
-
modalLeft:
|
|
3130
|
-
buttonGroup:
|
|
3131
|
-
iosIcon:
|
|
3132
|
-
modalLoader:
|
|
3133
|
-
dash:
|
|
3134
|
-
searchWrapper:
|
|
3135
|
-
chevronIcons:
|
|
3136
|
-
logInput:
|
|
3137
|
-
searchResult:
|
|
3138
|
-
loadingWrap:
|
|
3139
|
-
modalRight:
|
|
3140
|
-
inputsWrapper:
|
|
3141
|
-
search:
|
|
3142
|
-
cliCommand:
|
|
3143
|
-
buttonsWrapper:
|
|
3144
|
-
downloadIconBtn:
|
|
3145
|
-
downloadIconBtn__disabled:
|
|
3146
|
-
copyIconBtn:
|
|
3147
|
-
copyIconBtn__disabled:
|
|
3148
|
-
iconGroup:
|
|
3149
|
-
activeIcon:
|
|
3150
|
-
},
|
|
3136
|
+
const ci = "_realTimeLogModalStyle_1f0fd_2", ai = "_customHeader_1f0fd_10", ui = "_modalHeader_1f0fd_18", di = "_modalLeft_1f0fd_38", mi = "_buttonGroup_1f0fd_45", fi = "_iosIcon_1f0fd_56", hi = "_modalLoader_1f0fd_86", gi = "_dash_1f0fd_90", pi = "_searchWrapper_1f0fd_95", xi = "_chevronIcons_1f0fd_101", vi = "_logInput_1f0fd_123", Ii = "_searchResult_1f0fd_130", Ti = "_loadingWrap_1f0fd_140", wi = "_modalRight_1f0fd_151", Ci = "_inputsWrapper_1f0fd_155", Si = "_search_1f0fd_95", yi = "_cliCommand_1f0fd_172", bi = "_buttonsWrapper_1f0fd_198", Hi = "_downloadIconBtn_1f0fd_204", _i = "_downloadIconBtn__disabled_1f0fd_228", ki = "_copyIconBtn_1f0fd_238", Ei = "_copyIconBtn__disabled_1f0fd_262", Ri = "_iconGroup_1f0fd_272", zi = "_activeIcon_1f0fd_284", se = {
|
|
3137
|
+
realTimeLogModalStyle: ci,
|
|
3138
|
+
customHeader: ai,
|
|
3139
|
+
modalHeader: ui,
|
|
3140
|
+
modalLeft: di,
|
|
3141
|
+
buttonGroup: mi,
|
|
3142
|
+
iosIcon: fi,
|
|
3143
|
+
modalLoader: hi,
|
|
3144
|
+
dash: gi,
|
|
3145
|
+
searchWrapper: pi,
|
|
3146
|
+
chevronIcons: xi,
|
|
3147
|
+
logInput: vi,
|
|
3148
|
+
searchResult: Ii,
|
|
3149
|
+
loadingWrap: Ti,
|
|
3150
|
+
modalRight: wi,
|
|
3151
|
+
inputsWrapper: Ci,
|
|
3152
|
+
search: Si,
|
|
3153
|
+
cliCommand: yi,
|
|
3154
|
+
buttonsWrapper: bi,
|
|
3155
|
+
downloadIconBtn: Hi,
|
|
3156
|
+
downloadIconBtn__disabled: _i,
|
|
3157
|
+
copyIconBtn: ki,
|
|
3158
|
+
copyIconBtn__disabled: Ei,
|
|
3159
|
+
iconGroup: Ri,
|
|
3160
|
+
activeIcon: zi
|
|
3161
|
+
}, ys = {
|
|
3151
3162
|
status: (e) => ({
|
|
3152
|
-
title:
|
|
3163
|
+
title: Qe.t("label.status"),
|
|
3153
3164
|
dataIndex: "status",
|
|
3154
3165
|
className: "capitalize",
|
|
3155
|
-
render: (t) => /* @__PURE__ */
|
|
3166
|
+
render: (t) => /* @__PURE__ */ I.jsx(kn, { status: e[t], text: t })
|
|
3156
3167
|
}),
|
|
3157
3168
|
dateCreated: {
|
|
3158
|
-
title:
|
|
3169
|
+
title: Qe.t("label.date_created"),
|
|
3159
3170
|
dataIndex: "created_date",
|
|
3160
|
-
render: (e) => /* @__PURE__ */
|
|
3171
|
+
render: (e) => /* @__PURE__ */ I.jsx(Pt, { date: e })
|
|
3161
3172
|
}
|
|
3162
|
-
},
|
|
3173
|
+
}, bs = {
|
|
3163
3174
|
edit: (e, t) => ({
|
|
3164
|
-
title:
|
|
3175
|
+
title: Qe.t("label.edit"),
|
|
3165
3176
|
dataIndex: e,
|
|
3166
|
-
render: (o, n) => /* @__PURE__ */
|
|
3177
|
+
render: (o, n) => /* @__PURE__ */ I.jsx(xt, { icon: et.Edit, onClick: () => t(o, n) })
|
|
3167
3178
|
}),
|
|
3168
3179
|
delete: (e, t) => ({
|
|
3169
|
-
title:
|
|
3180
|
+
title: Qe.t("label.delete"),
|
|
3170
3181
|
dataIndex: e,
|
|
3171
|
-
render: (o, n) => /* @__PURE__ */
|
|
3182
|
+
render: (o, n) => /* @__PURE__ */ I.jsx(xt, { icon: et.Trash, onClick: () => t(o, n) })
|
|
3172
3183
|
}),
|
|
3173
3184
|
download: (e, t) => ({
|
|
3174
|
-
title:
|
|
3185
|
+
title: Qe.t("label.export"),
|
|
3175
3186
|
dataIndex: e,
|
|
3176
|
-
render: (o, n) => /* @__PURE__ */
|
|
3187
|
+
render: (o, n) => /* @__PURE__ */ I.jsx(xt, { icon: et.Download, onClick: () => t(o, n) })
|
|
3177
3188
|
}),
|
|
3178
3189
|
detail: (e, t) => ({
|
|
3179
|
-
title:
|
|
3190
|
+
title: Qe.t("label.detail"),
|
|
3180
3191
|
dataIndex: e,
|
|
3181
|
-
render: (o, n) => /* @__PURE__ */
|
|
3192
|
+
render: (o, n) => /* @__PURE__ */ I.jsx(xt, { icon: et.Link, onClick: () => t(o, n) })
|
|
3182
3193
|
})
|
|
3183
3194
|
};
|
|
3184
|
-
var
|
|
3185
|
-
const
|
|
3186
|
-
|
|
3187
|
-
),
|
|
3195
|
+
var Bi = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
3196
|
+
const Mo = Number(
|
|
3197
|
+
Bi.VITE_APP_LOKI_REALTIME_LOG_RESPONSE_MIN_LINE_LIMIT
|
|
3198
|
+
), No = 200, Li = 100, ji = (e) => {
|
|
3188
3199
|
const {
|
|
3189
3200
|
onClose: t,
|
|
3190
3201
|
projectPk: o,
|
|
@@ -3194,14 +3205,14 @@ const _o = Number(
|
|
|
3194
3205
|
logs: s,
|
|
3195
3206
|
responseCount: l,
|
|
3196
3207
|
lastLogIndex: c = 0,
|
|
3197
|
-
download:
|
|
3208
|
+
download: a,
|
|
3198
3209
|
onFetchLogs: h,
|
|
3199
|
-
onClearLogs:
|
|
3210
|
+
onClearLogs: w,
|
|
3200
3211
|
withoutPermission: g
|
|
3201
|
-
} = e, p =
|
|
3212
|
+
} = e, p = Lt(null), [, _] = Wo(e.id), [b, x] = Je(!1), [f, m] = Je(), [S, z] = Je(""), [u, d] = Je(), [C, k] = Je(0), B = s || [], M = l === void 0, A = (y, E, Y, D) => {
|
|
3202
3213
|
const q = {
|
|
3203
3214
|
applications: [E || i[0].value],
|
|
3204
|
-
scroll_mode:
|
|
3215
|
+
scroll_mode: y || void 0
|
|
3205
3216
|
};
|
|
3206
3217
|
h({ projectPk: o, appPk: r, applications: q.applications, scroll_mode: q.scroll_mode, withoutPermission: g }).then(
|
|
3207
3218
|
(oe) => {
|
|
@@ -3213,18 +3224,18 @@ const _o = Number(
|
|
|
3213
3224
|
}
|
|
3214
3225
|
);
|
|
3215
3226
|
};
|
|
3216
|
-
function U(
|
|
3227
|
+
function U(y) {
|
|
3217
3228
|
let E = 0;
|
|
3218
3229
|
const Y = {};
|
|
3219
|
-
return
|
|
3230
|
+
return y.forEach((D, q) => {
|
|
3220
3231
|
const oe = D.message.match(/<mark\b[^>]*>/g);
|
|
3221
3232
|
E += oe ? oe.length : 0, oe && (Y[q] = oe);
|
|
3222
3233
|
}), { total: E, filteredLogs: Y };
|
|
3223
3234
|
}
|
|
3224
|
-
const Q =
|
|
3235
|
+
const Q = Hn(A, n * 1e3), L = Lt(), P = Lt(Q), ue = (y, E, Y, D) => {
|
|
3225
3236
|
if (!E || E.length < 1)
|
|
3226
|
-
return
|
|
3227
|
-
let q =
|
|
3237
|
+
return y;
|
|
3238
|
+
let q = y;
|
|
3228
3239
|
if (D.group)
|
|
3229
3240
|
if (D.regex) {
|
|
3230
3241
|
let X;
|
|
@@ -3234,13 +3245,13 @@ const _o = Number(
|
|
|
3234
3245
|
D.caseSensitive ? "g" : "gi"
|
|
3235
3246
|
);
|
|
3236
3247
|
} catch {
|
|
3237
|
-
return
|
|
3248
|
+
return y;
|
|
3238
3249
|
}
|
|
3239
|
-
q =
|
|
3250
|
+
q = y.filter((fe) => X.test(fe.message));
|
|
3240
3251
|
} else
|
|
3241
|
-
D.caseSensitive ? q =
|
|
3252
|
+
D.caseSensitive ? q = y.filter(
|
|
3242
3253
|
(X) => X.message.includes(E)
|
|
3243
|
-
) : q =
|
|
3254
|
+
) : q = y.filter(
|
|
3244
3255
|
(X) => X.message.toLocaleLowerCase().includes(E.toLocaleLowerCase())
|
|
3245
3256
|
);
|
|
3246
3257
|
return q.map((X, fe) => ({
|
|
@@ -3248,9 +3259,9 @@ const _o = Number(
|
|
|
3248
3259
|
message: ve(X.message, E, D, fe) + `
|
|
3249
3260
|
`
|
|
3250
3261
|
}));
|
|
3251
|
-
}, ve = (
|
|
3262
|
+
}, ve = (y, E, Y, D) => {
|
|
3252
3263
|
if (!E)
|
|
3253
|
-
return
|
|
3264
|
+
return y;
|
|
3254
3265
|
try {
|
|
3255
3266
|
if (Y.regex) {
|
|
3256
3267
|
let q;
|
|
@@ -3258,63 +3269,63 @@ const _o = Number(
|
|
|
3258
3269
|
return oe ? q = new RegExp(oe[1], oe[2]) : q = new RegExp(
|
|
3259
3270
|
E,
|
|
3260
3271
|
Y.caseSensitive ? "g" : "gi"
|
|
3261
|
-
),
|
|
3272
|
+
), y.replace(
|
|
3262
3273
|
q,
|
|
3263
3274
|
(X) => `<mark data-mark-index="${D}">${X}</mark>`
|
|
3264
3275
|
);
|
|
3265
3276
|
} else {
|
|
3266
3277
|
if (Y.caseSensitive)
|
|
3267
|
-
return
|
|
3278
|
+
return y.split(E).join(`<mark data-mark-index="${D}">${E}</mark>`);
|
|
3268
3279
|
{
|
|
3269
3280
|
const q = new RegExp(E, "gi");
|
|
3270
|
-
return
|
|
3281
|
+
return y.replace(
|
|
3271
3282
|
q,
|
|
3272
3283
|
(oe) => `<mark data-mark-index="${D}">${oe}</mark>`
|
|
3273
3284
|
);
|
|
3274
3285
|
}
|
|
3275
3286
|
}
|
|
3276
3287
|
} catch {
|
|
3277
|
-
return
|
|
3288
|
+
return y;
|
|
3278
3289
|
}
|
|
3279
3290
|
}, we = () => {
|
|
3280
|
-
|
|
3291
|
+
z("");
|
|
3281
3292
|
}, Ce = () => {
|
|
3282
|
-
x(!
|
|
3293
|
+
x(!b);
|
|
3283
3294
|
}, he = () => {
|
|
3284
|
-
let
|
|
3295
|
+
let y = "";
|
|
3285
3296
|
B.forEach((E) => {
|
|
3286
|
-
|
|
3287
|
-
}),
|
|
3288
|
-
type:
|
|
3289
|
-
message:
|
|
3297
|
+
y += E.message;
|
|
3298
|
+
}), Rn({
|
|
3299
|
+
type: En.SUCCESS,
|
|
3300
|
+
message: pt("text.copied"),
|
|
3290
3301
|
closeTime: 3e3
|
|
3291
|
-
}), navigator.clipboard.writeText(
|
|
3292
|
-
}, de = (
|
|
3293
|
-
|
|
3294
|
-
...
|
|
3295
|
-
[E]: !(
|
|
3302
|
+
}), navigator.clipboard.writeText(y);
|
|
3303
|
+
}, de = (y, E) => {
|
|
3304
|
+
y.currentTarget.classList.toggle(se.activeIcon), d({
|
|
3305
|
+
...u,
|
|
3306
|
+
[E]: !(u != null && u[E])
|
|
3296
3307
|
});
|
|
3297
|
-
},
|
|
3308
|
+
}, Oe = (y) => {
|
|
3298
3309
|
var E, Y;
|
|
3299
|
-
m(
|
|
3310
|
+
m(y), clearTimeout(L.current), (E = P.current) == null || E.stopInterval(), (Y = P.current) == null || Y.fetch(void 0, y), jt(() => {
|
|
3300
3311
|
var D;
|
|
3301
3312
|
(D = p.current) == null || D.scrollToIndex({ index: "LAST" });
|
|
3302
3313
|
}, 300)();
|
|
3303
|
-
}, Ie = (
|
|
3304
|
-
|
|
3305
|
-
}, Le = (
|
|
3306
|
-
Array.from(
|
|
3314
|
+
}, Ie = (y) => {
|
|
3315
|
+
y.classList.add(se.selectedMark);
|
|
3316
|
+
}, Le = (y) => {
|
|
3317
|
+
Array.from(y).forEach(
|
|
3307
3318
|
(E) => E.classList.remove(se.selectedMark)
|
|
3308
3319
|
);
|
|
3309
|
-
}, De = (
|
|
3320
|
+
}, De = (y, E, Y) => {
|
|
3310
3321
|
var oe;
|
|
3311
|
-
let D =
|
|
3312
|
-
D < 1 && (D = E),
|
|
3322
|
+
let D = y - 1;
|
|
3323
|
+
D < 1 && (D = E), k(D);
|
|
3313
3324
|
let q = 0;
|
|
3314
3325
|
for (const X in Y) {
|
|
3315
3326
|
const fe = Y[X];
|
|
3316
3327
|
if (q + fe.length >= D) {
|
|
3317
|
-
const
|
|
3328
|
+
const Re = D - q - 1;
|
|
3318
3329
|
(oe = p.current) == null || oe.scrollToIndex({ index: Number(X) });
|
|
3319
3330
|
const je = document.querySelector(
|
|
3320
3331
|
`[data-index="${Number(X) + 1}"]`
|
|
@@ -3323,28 +3334,28 @@ const _o = Number(
|
|
|
3323
3334
|
const ye = je.getElementsByTagName("mark");
|
|
3324
3335
|
Le(ye);
|
|
3325
3336
|
}
|
|
3326
|
-
|
|
3337
|
+
jt(() => {
|
|
3327
3338
|
const ye = document.querySelector(
|
|
3328
3339
|
`[data-index="${X}"]`
|
|
3329
3340
|
);
|
|
3330
3341
|
if (ye) {
|
|
3331
3342
|
const Me = ye.getElementsByTagName("mark");
|
|
3332
|
-
Me[
|
|
3343
|
+
Me[Re] && (Le(Me), Ie(Me[Re]));
|
|
3333
3344
|
}
|
|
3334
3345
|
}, 300)();
|
|
3335
3346
|
break;
|
|
3336
3347
|
} else
|
|
3337
3348
|
q += fe.length;
|
|
3338
3349
|
}
|
|
3339
|
-
}, Se = (
|
|
3350
|
+
}, Se = (y, E, Y) => {
|
|
3340
3351
|
var oe;
|
|
3341
|
-
let D =
|
|
3342
|
-
D > E && (D = 1),
|
|
3352
|
+
let D = y + 1;
|
|
3353
|
+
D > E && (D = 1), k(D);
|
|
3343
3354
|
let q = 0;
|
|
3344
3355
|
for (const X in Y) {
|
|
3345
3356
|
const fe = Y[X];
|
|
3346
3357
|
if (q + fe.length >= D) {
|
|
3347
|
-
const
|
|
3358
|
+
const Re = D - q - 1;
|
|
3348
3359
|
(oe = p.current) == null || oe.scrollToIndex({ index: Number(X) });
|
|
3349
3360
|
const je = document.querySelector(
|
|
3350
3361
|
`[data-index="${Number(X) - 1}"]`
|
|
@@ -3353,72 +3364,72 @@ const _o = Number(
|
|
|
3353
3364
|
const ye = je.getElementsByTagName("mark");
|
|
3354
3365
|
Le(ye);
|
|
3355
3366
|
}
|
|
3356
|
-
|
|
3367
|
+
jt(() => {
|
|
3357
3368
|
const ye = document.querySelector(
|
|
3358
3369
|
`[data-index="${X}"]`
|
|
3359
3370
|
);
|
|
3360
3371
|
if (ye) {
|
|
3361
3372
|
const Me = ye.getElementsByTagName("mark");
|
|
3362
|
-
Me[
|
|
3373
|
+
Me[Re] && (Le(Me), Ie(Me[Re]));
|
|
3363
3374
|
}
|
|
3364
3375
|
}, 300)();
|
|
3365
3376
|
break;
|
|
3366
3377
|
} else
|
|
3367
3378
|
q += fe.length;
|
|
3368
3379
|
}
|
|
3369
|
-
}, ce = ue(B,
|
|
3370
|
-
regex:
|
|
3371
|
-
caseSensitive:
|
|
3372
|
-
group:
|
|
3373
|
-
}),
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3380
|
+
}, ce = ue(B, S, P, {
|
|
3381
|
+
regex: u == null ? void 0 : u.regex,
|
|
3382
|
+
caseSensitive: u == null ? void 0 : u.caseSensitive,
|
|
3383
|
+
group: u == null ? void 0 : u.group
|
|
3384
|
+
}), T = U(ce), G = (y) => {
|
|
3385
|
+
y.key === "Enter" && Se(
|
|
3386
|
+
C,
|
|
3387
|
+
T.total,
|
|
3388
|
+
T.filteredLogs
|
|
3378
3389
|
);
|
|
3379
|
-
}, te = (
|
|
3390
|
+
}, te = (y, E) => /* @__PURE__ */ I.jsx(
|
|
3380
3391
|
"div",
|
|
3381
3392
|
{
|
|
3382
|
-
"data-index":
|
|
3393
|
+
"data-index": y,
|
|
3383
3394
|
dangerouslySetInnerHTML: { __html: E.message }
|
|
3384
3395
|
}
|
|
3385
3396
|
);
|
|
3386
|
-
return
|
|
3387
|
-
var
|
|
3388
|
-
return (
|
|
3389
|
-
clearTimeout(L.current), P.current.stopInterval(),
|
|
3397
|
+
return ao(() => {
|
|
3398
|
+
var y, E;
|
|
3399
|
+
return (y = P.current) == null || y.fetch(void 0, f), (E = P.current) == null || E.startInterval("newer", f), () => {
|
|
3400
|
+
clearTimeout(L.current), P.current.stopInterval(), w();
|
|
3390
3401
|
};
|
|
3391
|
-
}, []),
|
|
3402
|
+
}, []), ao(() => (window.removeEventListener("keydown", G), window.addEventListener("keydown", G), () => {
|
|
3392
3403
|
window.removeEventListener("keydown", G);
|
|
3393
|
-
}), [
|
|
3394
|
-
|
|
3404
|
+
}), [C, T.total, T.filteredLogs]), /* @__PURE__ */ I.jsx(
|
|
3405
|
+
Oo,
|
|
3395
3406
|
{
|
|
3396
3407
|
visible: !0,
|
|
3397
3408
|
showClose: !1,
|
|
3398
3409
|
onClose: () => {
|
|
3399
3410
|
},
|
|
3400
|
-
className:
|
|
3401
|
-
"w-[90%]!": !
|
|
3402
|
-
"w-full! h-full!":
|
|
3411
|
+
className: wt(se.realTimeLogModalStyle, {
|
|
3412
|
+
"w-[90%]!": !b,
|
|
3413
|
+
"w-full! h-full!": b
|
|
3403
3414
|
}),
|
|
3404
3415
|
headerClass: se.customHeader,
|
|
3405
|
-
header: /* @__PURE__ */
|
|
3406
|
-
/* @__PURE__ */
|
|
3407
|
-
/* @__PURE__ */
|
|
3408
|
-
/* @__PURE__ */
|
|
3416
|
+
header: /* @__PURE__ */ I.jsxs("div", { className: se.modalHeader, children: [
|
|
3417
|
+
/* @__PURE__ */ I.jsxs("div", { className: se.modalLeft, children: [
|
|
3418
|
+
/* @__PURE__ */ I.jsxs("div", { className: se.buttonGroup, children: [
|
|
3419
|
+
/* @__PURE__ */ I.jsx(
|
|
3409
3420
|
"div",
|
|
3410
3421
|
{
|
|
3411
3422
|
className: se.iosIcon,
|
|
3412
3423
|
onClick: () => {
|
|
3413
|
-
t && t(),
|
|
3424
|
+
t && t(), _();
|
|
3414
3425
|
},
|
|
3415
|
-
children: /* @__PURE__ */
|
|
3426
|
+
children: /* @__PURE__ */ I.jsx(be, { name: "close-window" })
|
|
3416
3427
|
}
|
|
3417
3428
|
),
|
|
3418
|
-
/* @__PURE__ */
|
|
3429
|
+
/* @__PURE__ */ I.jsx("div", { className: se.iosIcon, onClick: Ce, children: /* @__PURE__ */ I.jsx(be, { name: "expand-window" }) })
|
|
3419
3430
|
] }),
|
|
3420
|
-
/* @__PURE__ */
|
|
3421
|
-
|
|
3431
|
+
/* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(
|
|
3432
|
+
_n,
|
|
3422
3433
|
{
|
|
3423
3434
|
name: "logTypeSelect",
|
|
3424
3435
|
style: { height: 39 },
|
|
@@ -3426,91 +3437,91 @@ const _o = Number(
|
|
|
3426
3437
|
value: f,
|
|
3427
3438
|
items: i,
|
|
3428
3439
|
searchable: !1,
|
|
3429
|
-
placeholder: `${
|
|
3430
|
-
itemPrefix: `${
|
|
3431
|
-
onChange: (
|
|
3432
|
-
|
|
3440
|
+
placeholder: `${pt("placeholder.selected_log_type")}: ${i[0].label}`,
|
|
3441
|
+
itemPrefix: `${pt("placeholder.selected_log_type")}: `,
|
|
3442
|
+
onChange: (y) => {
|
|
3443
|
+
Oe(y);
|
|
3433
3444
|
}
|
|
3434
3445
|
}
|
|
3435
3446
|
) }),
|
|
3436
|
-
/* @__PURE__ */
|
|
3437
|
-
/* @__PURE__ */
|
|
3438
|
-
|
|
3447
|
+
/* @__PURE__ */ I.jsxs("div", { className: se.searchWrapper, children: [
|
|
3448
|
+
/* @__PURE__ */ I.jsx(
|
|
3449
|
+
Cn,
|
|
3439
3450
|
{
|
|
3440
3451
|
name: "logSearch",
|
|
3441
3452
|
type: "text",
|
|
3442
|
-
placeholder:
|
|
3453
|
+
placeholder: pt("placeholder.search"),
|
|
3443
3454
|
isFormGroup: !1,
|
|
3444
|
-
value:
|
|
3455
|
+
value: S,
|
|
3445
3456
|
className: se.logInput,
|
|
3446
3457
|
prefixClickable: !0,
|
|
3447
3458
|
suffixClickable: !0,
|
|
3448
|
-
onChange: (
|
|
3459
|
+
onChange: (y) => {
|
|
3449
3460
|
var E;
|
|
3450
|
-
|
|
3461
|
+
z(y.target.value), y.target.value.length > 1 && ((E = P.current) == null || E.stopInterval()), k(0);
|
|
3451
3462
|
},
|
|
3452
|
-
prefix: /* @__PURE__ */
|
|
3453
|
-
/* @__PURE__ */
|
|
3454
|
-
|
|
3463
|
+
prefix: /* @__PURE__ */ I.jsxs("div", { className: se.iconGroup, children: [
|
|
3464
|
+
/* @__PURE__ */ I.jsx(
|
|
3465
|
+
be,
|
|
3455
3466
|
{
|
|
3456
3467
|
name: "group",
|
|
3457
|
-
onClick: (
|
|
3458
|
-
de(
|
|
3468
|
+
onClick: (y) => {
|
|
3469
|
+
de(y, "group");
|
|
3459
3470
|
}
|
|
3460
3471
|
}
|
|
3461
3472
|
),
|
|
3462
|
-
/* @__PURE__ */
|
|
3463
|
-
|
|
3473
|
+
/* @__PURE__ */ I.jsx(
|
|
3474
|
+
be,
|
|
3464
3475
|
{
|
|
3465
3476
|
name: "case-sensitive",
|
|
3466
|
-
onClick: (
|
|
3467
|
-
de(
|
|
3477
|
+
onClick: (y) => {
|
|
3478
|
+
de(y, "caseSensitive");
|
|
3468
3479
|
}
|
|
3469
3480
|
}
|
|
3470
3481
|
),
|
|
3471
|
-
/* @__PURE__ */
|
|
3472
|
-
|
|
3482
|
+
/* @__PURE__ */ I.jsx(
|
|
3483
|
+
be,
|
|
3473
3484
|
{
|
|
3474
3485
|
name: "regex",
|
|
3475
|
-
onClick: (
|
|
3476
|
-
de(
|
|
3486
|
+
onClick: (y) => {
|
|
3487
|
+
de(y, "regex");
|
|
3477
3488
|
}
|
|
3478
3489
|
}
|
|
3479
3490
|
)
|
|
3480
3491
|
] }),
|
|
3481
|
-
suffix:
|
|
3492
|
+
suffix: S.length > 0 ? /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(be, { onClick: we, name: "close" }) }) : /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(be, { name: "search" }) })
|
|
3482
3493
|
}
|
|
3483
3494
|
),
|
|
3484
|
-
/* @__PURE__ */
|
|
3485
|
-
|
|
3486
|
-
/* @__PURE__ */
|
|
3495
|
+
/* @__PURE__ */ I.jsxs("div", { className: se.searchResult, children: [
|
|
3496
|
+
S.length > 0 ? C : 0,
|
|
3497
|
+
/* @__PURE__ */ I.jsxs("span", { children: [
|
|
3487
3498
|
"/",
|
|
3488
|
-
|
|
3499
|
+
S.length > 0 ? T.total : 0
|
|
3489
3500
|
] })
|
|
3490
3501
|
] }),
|
|
3491
|
-
/* @__PURE__ */
|
|
3492
|
-
/* @__PURE__ */
|
|
3493
|
-
|
|
3502
|
+
/* @__PURE__ */ I.jsxs("div", { className: se.chevronIcons, children: [
|
|
3503
|
+
/* @__PURE__ */ I.jsx(
|
|
3504
|
+
be,
|
|
3494
3505
|
{
|
|
3495
3506
|
name: "chevron-left",
|
|
3496
3507
|
onClick: () => {
|
|
3497
3508
|
Se(
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3509
|
+
C,
|
|
3510
|
+
T.total,
|
|
3511
|
+
T.filteredLogs
|
|
3501
3512
|
);
|
|
3502
3513
|
}
|
|
3503
3514
|
}
|
|
3504
3515
|
),
|
|
3505
|
-
/* @__PURE__ */
|
|
3506
|
-
|
|
3516
|
+
/* @__PURE__ */ I.jsx(
|
|
3517
|
+
be,
|
|
3507
3518
|
{
|
|
3508
3519
|
name: "chevron-left",
|
|
3509
3520
|
onClick: () => {
|
|
3510
3521
|
De(
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3522
|
+
C,
|
|
3523
|
+
T.total,
|
|
3524
|
+
T.filteredLogs
|
|
3514
3525
|
);
|
|
3515
3526
|
}
|
|
3516
3527
|
}
|
|
@@ -3518,64 +3529,64 @@ const _o = Number(
|
|
|
3518
3529
|
] })
|
|
3519
3530
|
] })
|
|
3520
3531
|
] }),
|
|
3521
|
-
/* @__PURE__ */
|
|
3522
|
-
/* @__PURE__ */
|
|
3523
|
-
|
|
3532
|
+
/* @__PURE__ */ I.jsx("div", { className: se.modalRight, children: /* @__PURE__ */ I.jsxs("div", { className: se.buttonsWrapper, children: [
|
|
3533
|
+
/* @__PURE__ */ I.jsx(
|
|
3534
|
+
go,
|
|
3524
3535
|
{
|
|
3525
|
-
appearance:
|
|
3526
|
-
className:
|
|
3536
|
+
appearance: ho.PRIMARY,
|
|
3537
|
+
className: wt(se.downloadIconBtn, {
|
|
3527
3538
|
[se.downloadIconBtn__disabled]: B.length === 0
|
|
3528
3539
|
}),
|
|
3529
3540
|
onClick: () => {
|
|
3530
|
-
var
|
|
3531
|
-
return
|
|
3541
|
+
var y;
|
|
3542
|
+
return a(
|
|
3532
3543
|
{
|
|
3533
3544
|
applications: [
|
|
3534
3545
|
f || i[0].value
|
|
3535
3546
|
],
|
|
3536
|
-
start_datetime:
|
|
3537
|
-
(
|
|
3547
|
+
start_datetime: uo(
|
|
3548
|
+
(y = B == null ? void 0 : B[0]) == null ? void 0 : y.log_timestamp
|
|
3538
3549
|
).format(),
|
|
3539
|
-
end_datetime:
|
|
3550
|
+
end_datetime: uo().format()
|
|
3540
3551
|
},
|
|
3541
3552
|
!0
|
|
3542
3553
|
);
|
|
3543
3554
|
},
|
|
3544
|
-
children: /* @__PURE__ */
|
|
3555
|
+
children: /* @__PURE__ */ I.jsx(be, { name: et.Download })
|
|
3545
3556
|
}
|
|
3546
3557
|
),
|
|
3547
|
-
/* @__PURE__ */
|
|
3548
|
-
|
|
3558
|
+
/* @__PURE__ */ I.jsx(
|
|
3559
|
+
go,
|
|
3549
3560
|
{
|
|
3550
|
-
appearance:
|
|
3551
|
-
className:
|
|
3561
|
+
appearance: ho.PRIMARY,
|
|
3562
|
+
className: wt(se.copyIconBtn, {
|
|
3552
3563
|
[se.copyIconBtn__disabled]: B.length === 0
|
|
3553
3564
|
}),
|
|
3554
3565
|
onClick: he,
|
|
3555
|
-
children: /* @__PURE__ */
|
|
3566
|
+
children: /* @__PURE__ */ I.jsx(be, { name: et.Copy })
|
|
3556
3567
|
}
|
|
3557
3568
|
)
|
|
3558
3569
|
] }) })
|
|
3559
3570
|
] }),
|
|
3560
|
-
children: /* @__PURE__ */
|
|
3561
|
-
|
|
3571
|
+
children: /* @__PURE__ */ I.jsx(
|
|
3572
|
+
Ur,
|
|
3562
3573
|
{
|
|
3563
3574
|
ref: p,
|
|
3564
3575
|
style: {
|
|
3565
3576
|
overflow: "auto",
|
|
3566
|
-
height:
|
|
3577
|
+
height: b ? "100%" : "500px"
|
|
3567
3578
|
},
|
|
3568
3579
|
data: ce,
|
|
3569
3580
|
initialTopMostItemIndex: ce.length - 1 || 0,
|
|
3570
3581
|
totalCount: ce.length,
|
|
3571
3582
|
itemContent: te,
|
|
3572
|
-
onScroll: (
|
|
3573
|
-
|
|
3583
|
+
onScroll: (y) => {
|
|
3584
|
+
y.currentTarget.scrollHeight - y.currentTarget.scrollTop <= y.currentTarget.clientHeight + No || P.current.stopInterval();
|
|
3574
3585
|
},
|
|
3575
|
-
atTopThreshold:
|
|
3576
|
-
atTopStateChange: (
|
|
3586
|
+
atTopThreshold: Li,
|
|
3587
|
+
atTopStateChange: (y) => {
|
|
3577
3588
|
var D;
|
|
3578
|
-
if (
|
|
3589
|
+
if (S.length > 0 || M)
|
|
3579
3590
|
return;
|
|
3580
3591
|
const E = () => ce.length - c < 30 || c === 0 ? 10 : c, Y = () => {
|
|
3581
3592
|
var q;
|
|
@@ -3583,25 +3594,25 @@ const _o = Number(
|
|
|
3583
3594
|
index: E()
|
|
3584
3595
|
});
|
|
3585
3596
|
};
|
|
3586
|
-
|
|
3597
|
+
y && !M && ((D = P.current) == null || D.fetch(
|
|
3587
3598
|
"older",
|
|
3588
3599
|
f,
|
|
3589
3600
|
Y
|
|
3590
3601
|
));
|
|
3591
3602
|
},
|
|
3592
|
-
atBottomThreshold:
|
|
3593
|
-
atBottomStateChange: (
|
|
3594
|
-
if (ce.length <= 0 ||
|
|
3603
|
+
atBottomThreshold: No,
|
|
3604
|
+
atBottomStateChange: (y) => {
|
|
3605
|
+
if (ce.length <= 0 || S.length > 0 || M)
|
|
3595
3606
|
return;
|
|
3596
3607
|
const E = () => {
|
|
3597
3608
|
var D, q;
|
|
3598
3609
|
if (console.log("onNewerSuccess ,first", ce.length), (D = p.current) == null || D.scrollToIndex({
|
|
3599
3610
|
index: ce.length - 50
|
|
3600
|
-
}), l <
|
|
3611
|
+
}), l < Mo) {
|
|
3601
3612
|
P.current.stopInterval(), console.log(
|
|
3602
3613
|
"onNewerSuccess minLineLimit",
|
|
3603
3614
|
l,
|
|
3604
|
-
|
|
3615
|
+
Mo
|
|
3605
3616
|
), (q = p.current) == null || q.scrollToIndex({
|
|
3606
3617
|
index: ce.length - 1
|
|
3607
3618
|
}), P.current.startInterval("newer", f);
|
|
@@ -3613,7 +3624,7 @@ const _o = Number(
|
|
|
3613
3624
|
index: ce.length - 10
|
|
3614
3625
|
}), P.current.startInterval("newer", f);
|
|
3615
3626
|
};
|
|
3616
|
-
|
|
3627
|
+
y && P.current.fetch(
|
|
3617
3628
|
"newer",
|
|
3618
3629
|
f,
|
|
3619
3630
|
E,
|
|
@@ -3624,9 +3635,60 @@ const _o = Number(
|
|
|
3624
3635
|
)
|
|
3625
3636
|
}
|
|
3626
3637
|
);
|
|
3627
|
-
},
|
|
3638
|
+
}, Hs = Ao.create(ji), Mi = ({ id: e, onClose: t, errors: o }) => {
|
|
3639
|
+
const { t: n } = zn(), [r, i] = Je(!1), [, s] = Wo(e), l = () => {
|
|
3640
|
+
s(), t && t();
|
|
3641
|
+
}, c = () => {
|
|
3642
|
+
i(!r);
|
|
3643
|
+
};
|
|
3644
|
+
return /* @__PURE__ */ I.jsx(
|
|
3645
|
+
Oo,
|
|
3646
|
+
{
|
|
3647
|
+
onClose: () => {
|
|
3648
|
+
},
|
|
3649
|
+
showClose: !1,
|
|
3650
|
+
headerClass: "bg-gray-57 p-0! border-b border-b-dark-47! h-[90px] w-full",
|
|
3651
|
+
className: wt(nt.realTimeLogModalStyle, {
|
|
3652
|
+
"w-[90%]!": !r,
|
|
3653
|
+
"w-full! h-full!": r
|
|
3654
|
+
}),
|
|
3655
|
+
header: /* @__PURE__ */ I.jsxs("div", { className: "flex items-center pr-[30px] w-full h-full", children: [
|
|
3656
|
+
/* @__PURE__ */ I.jsx("div", { className: nt.modalLeft, children: /* @__PURE__ */ I.jsxs("div", { className: nt.buttonGroup, children: [
|
|
3657
|
+
/* @__PURE__ */ I.jsx(
|
|
3658
|
+
"div",
|
|
3659
|
+
{
|
|
3660
|
+
className: nt.iosIcon,
|
|
3661
|
+
onClick: () => {
|
|
3662
|
+
l && l(), s();
|
|
3663
|
+
},
|
|
3664
|
+
children: /* @__PURE__ */ I.jsx(be, { name: "close-window" })
|
|
3665
|
+
}
|
|
3666
|
+
),
|
|
3667
|
+
/* @__PURE__ */ I.jsx("div", { className: nt.iosIcon, onClick: c, children: /* @__PURE__ */ I.jsx(be, { name: "expand-window" }) })
|
|
3668
|
+
] }) }),
|
|
3669
|
+
/* @__PURE__ */ I.jsx("div", { children: n("title.error_log") })
|
|
3670
|
+
] }),
|
|
3671
|
+
children: /* @__PURE__ */ I.jsx(Sn, { children: o && o.length > 0 ? o.map((a) => /* @__PURE__ */ I.jsxs("div", { className: "container-fluid", children: [
|
|
3672
|
+
/* @__PURE__ */ I.jsxs(yn, { children: [
|
|
3673
|
+
/* @__PURE__ */ I.jsxs(fo, { children: [
|
|
3674
|
+
/* @__PURE__ */ I.jsx("b", { children: `${n("label.created_date")}:` }),
|
|
3675
|
+
/* @__PURE__ */ I.jsx(Pt, { date: a == null ? void 0 : a.created_date })
|
|
3676
|
+
] }),
|
|
3677
|
+
/* @__PURE__ */ I.jsxs(fo, { children: [
|
|
3678
|
+
/* @__PURE__ */ I.jsx("b", { children: `${n("label.date_updated")}:` }),
|
|
3679
|
+
/* @__PURE__ */ I.jsx(Pt, { date: a == null ? void 0 : a.update_date })
|
|
3680
|
+
] })
|
|
3681
|
+
] }),
|
|
3682
|
+
/* @__PURE__ */ I.jsx(mo, { className: "mt-4 mb-4" }),
|
|
3683
|
+
/* @__PURE__ */ I.jsx("p", { className: "whitespace-pre-line", children: a == null ? void 0 : a.log_data }),
|
|
3684
|
+
/* @__PURE__ */ I.jsx(mo, { className: "mt-4 mb-4" })
|
|
3685
|
+
] }, a == null ? void 0 : a.id)) : /* @__PURE__ */ I.jsx(Bn, { i18nKey: "text.not_found", values: { dataname: "Log" } }) })
|
|
3686
|
+
}
|
|
3687
|
+
);
|
|
3688
|
+
}, _s = Ao.create(Mi);
|
|
3628
3689
|
export {
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3690
|
+
_s as E,
|
|
3691
|
+
Hs as R,
|
|
3692
|
+
bs as T,
|
|
3693
|
+
ys as a
|
|
3632
3694
|
};
|