@notificationapi/react 1.6.2 → 1.8.0
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/assets/Badge.js +4 -3
- package/dist/assets/Box.js +26 -24
- package/dist/assets/Button.js +20 -18
- package/dist/assets/ButtonBase.js +193 -185
- package/dist/assets/DefaultPropsProvider.js +416 -4199
- package/dist/assets/DefaultPropsProvider2.js +992 -0
- package/dist/assets/Divider.js +2 -1
- package/dist/assets/GlobalStyles.js +23 -0
- package/dist/assets/Grow.js +87 -92
- package/dist/assets/IconButton.js +8 -7
- package/dist/assets/List.js +12 -11
- package/dist/assets/Modal.js +18 -17
- package/dist/assets/Notification.js +787 -770
- package/dist/assets/Paper.js +6 -6
- package/dist/assets/Popover.js +38 -37
- package/dist/assets/Portal.js +38 -48
- package/dist/assets/Stack.js +32 -30
- package/dist/assets/Typography.js +84 -97
- package/dist/assets/createSvgIcon.js +25 -24
- package/dist/assets/createTheme.js +2828 -0
- package/dist/assets/dividerClasses.js +16 -15
- package/dist/assets/exactProp.js +13 -0
- package/dist/assets/index.js +19 -148
- package/dist/assets/index2.js +151 -0
- package/dist/assets/useTheme.js +6 -7
- package/dist/assets/{useTheme2.js → useThemeWithoutDefault.js} +63 -67
- package/dist/assets/utils.js +2 -2
- package/dist/components/Notifications/DefaultEmpty.d.ts +0 -1
- package/dist/components/Notifications/Inbox.d.ts +0 -1
- package/dist/components/Notifications/Inbox.js +592 -582
- package/dist/components/Notifications/InboxHeader.js +31 -30
- package/dist/components/Notifications/Notification.d.ts +0 -1
- package/dist/components/Notifications/Notification.js +4 -2
- package/dist/components/Notifications/NotificationCounter.d.ts +0 -1
- package/dist/components/Notifications/NotificationFeed.d.ts +0 -1
- package/dist/components/Notifications/NotificationFeed.js +40 -32
- package/dist/components/Notifications/NotificationLauncher.d.ts +0 -1
- package/dist/components/Notifications/NotificationLauncher.js +90 -64
- package/dist/components/Notifications/NotificationPopup.d.ts +0 -1
- package/dist/components/Notifications/NotificationPopup.js +76 -65
- package/dist/components/Notifications/UnreadBadge.d.ts +0 -1
- package/dist/components/Preferences/NotificationPreferencesInline.js +57 -39
- package/dist/components/Preferences/NotificationPreferencesPopup.js +111 -99
- package/dist/components/Preferences/PreferenceInput.d.ts +0 -1
- package/dist/components/Preferences/PreferenceInput.js +427 -414
- package/dist/components/Preferences/Preferences.js +329 -278
- package/dist/components/Preferences/channelUtils.d.ts +0 -1
- package/dist/components/Provider/context.d.ts +0 -1
- package/dist/components/Provider/index.d.ts +4 -2
- package/dist/components/Provider/index.js +986 -375
- package/dist/components/Slack/SlackConnect.js +8 -7
- package/dist/components/WebPush/WebPushOptInMessage.d.ts +0 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.js +6 -3
- package/dist/utils/theme.d.ts +17 -0
- package/dist/utils/theme.js +104 -0
- package/package.json +7 -3
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
import { jsx as j, jsxs as $e } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as d from "react";
|
|
3
3
|
import dr, { isValidElement as Qr, useRef as D, useEffect as en, useState as Ye, useContext as tn } from "react";
|
|
4
4
|
import { InboxHeader as Bt } from "./InboxHeader.js";
|
|
5
5
|
import { L as rn, N as Wt } from "../../assets/Notification.js";
|
|
6
6
|
import { Filter as Yt } from "./interface.js";
|
|
7
7
|
import { NotificationAPIContext as nn } from "../Provider/context.js";
|
|
8
8
|
import { DefaultEmptyComponent as on } from "./DefaultEmpty.js";
|
|
9
|
-
import { g as ze,
|
|
10
|
-
import { c as
|
|
9
|
+
import { g as ze, s as he, u as Je, c as _e, a as Qe, m as et, _ as Ct } from "../../assets/DefaultPropsProvider.js";
|
|
10
|
+
import { c as an, e as sn, B as cn, b as We, g as ln, j as un, k as fn, u as dn } from "../../assets/ButtonBase.js";
|
|
11
|
+
import { g as tt, P as c, a as we, e as xe, q as vn } from "../../assets/createTheme.js";
|
|
11
12
|
import { R as Gt, a as Ut } from "../../assets/utils.js";
|
|
13
|
+
import { getThemeColors as pn } from "../../utils/theme.js";
|
|
12
14
|
import { b as Ge, a as vr, i as Xt, L as Kt } from "../../assets/List.js";
|
|
13
|
-
import { u as
|
|
14
|
-
import { a as
|
|
15
|
+
import { u as hn } from "../../assets/resolveComponentProps.js";
|
|
16
|
+
import { a as mn } from "../../assets/dividerClasses.js";
|
|
15
17
|
import { i as Ae } from "../../assets/integerPropType.js";
|
|
16
|
-
import { u as
|
|
18
|
+
import { u as gn } from "../../assets/index.js";
|
|
17
19
|
import { c as qt } from "../../assets/createSimplePaletteValueFilter.js";
|
|
18
20
|
import { c as rt } from "../../assets/createSvgIcon.js";
|
|
19
|
-
function
|
|
20
|
-
return
|
|
21
|
+
function bn(e) {
|
|
22
|
+
return tt("MuiListItem", e);
|
|
21
23
|
}
|
|
22
24
|
ze("MuiListItem", ["root", "container", "dense", "alignItemsFlexStart", "divider", "gutters", "padding", "secondaryAction"]);
|
|
23
|
-
const
|
|
24
|
-
function
|
|
25
|
-
return
|
|
25
|
+
const yn = ze("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]);
|
|
26
|
+
function Sn(e) {
|
|
27
|
+
return tt("MuiListItemSecondaryAction", e);
|
|
26
28
|
}
|
|
27
29
|
ze("MuiListItemSecondaryAction", ["root", "disableGutters"]);
|
|
28
|
-
const
|
|
30
|
+
const Rn = (e) => {
|
|
29
31
|
const {
|
|
30
32
|
disableGutters: t,
|
|
31
33
|
classes: r
|
|
32
34
|
} = e;
|
|
33
|
-
return
|
|
35
|
+
return Qe({
|
|
34
36
|
root: ["root", t && "disableGutters"]
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
+
}, Sn, r);
|
|
38
|
+
}, En = he("div", {
|
|
37
39
|
name: "MuiListItemSecondaryAction",
|
|
38
40
|
slot: "Root",
|
|
39
41
|
overridesResolver: (e, t) => {
|
|
@@ -55,19 +57,19 @@ const yn = (e) => {
|
|
|
55
57
|
right: 0
|
|
56
58
|
}
|
|
57
59
|
}]
|
|
58
|
-
}), Ot = /* @__PURE__ */
|
|
59
|
-
const n =
|
|
60
|
+
}), Ot = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
61
|
+
const n = Je({
|
|
60
62
|
props: t,
|
|
61
63
|
name: "MuiListItemSecondaryAction"
|
|
62
64
|
}), {
|
|
63
65
|
className: o,
|
|
64
66
|
...i
|
|
65
|
-
} = n, a =
|
|
67
|
+
} = n, a = d.useContext(Ge), l = {
|
|
66
68
|
...n,
|
|
67
69
|
disableGutters: a.disableGutters
|
|
68
|
-
},
|
|
69
|
-
return /* @__PURE__ */ j(
|
|
70
|
-
className: _e(
|
|
70
|
+
}, u = Rn(l);
|
|
71
|
+
return /* @__PURE__ */ j(En, {
|
|
72
|
+
className: _e(u.root, o),
|
|
71
73
|
ownerState: l,
|
|
72
74
|
ref: r,
|
|
73
75
|
...i
|
|
@@ -96,12 +98,12 @@ process.env.NODE_ENV !== "production" && (Ot.propTypes = {
|
|
|
96
98
|
sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
|
|
97
99
|
});
|
|
98
100
|
Ot.muiName = "ListItemSecondaryAction";
|
|
99
|
-
const
|
|
101
|
+
const wn = (e, t) => {
|
|
100
102
|
const {
|
|
101
103
|
ownerState: r
|
|
102
104
|
} = e;
|
|
103
105
|
return [t.root, r.dense && t.dense, r.alignItems === "flex-start" && t.alignItemsFlexStart, r.divider && t.divider, !r.disableGutters && t.gutters, !r.disablePadding && t.padding, r.hasSecondaryAction && t.secondaryAction];
|
|
104
|
-
},
|
|
106
|
+
}, xn = (e) => {
|
|
105
107
|
const {
|
|
106
108
|
alignItems: t,
|
|
107
109
|
classes: r,
|
|
@@ -111,15 +113,15 @@ const Rn = (e, t) => {
|
|
|
111
113
|
divider: a,
|
|
112
114
|
hasSecondaryAction: l
|
|
113
115
|
} = e;
|
|
114
|
-
return
|
|
116
|
+
return Qe({
|
|
115
117
|
root: ["root", n && "dense", !o && "gutters", !i && "padding", a && "divider", t === "flex-start" && "alignItemsFlexStart", l && "secondaryAction"],
|
|
116
118
|
container: ["container"]
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
+
}, bn, r);
|
|
120
|
+
}, _n = he("div", {
|
|
119
121
|
name: "MuiListItem",
|
|
120
122
|
slot: "Root",
|
|
121
|
-
overridesResolver:
|
|
122
|
-
})(
|
|
123
|
+
overridesResolver: wn
|
|
124
|
+
})(et(({
|
|
123
125
|
theme: e
|
|
124
126
|
}) => ({
|
|
125
127
|
display: "flex",
|
|
@@ -168,7 +170,7 @@ const Rn = (e, t) => {
|
|
|
168
170
|
ownerState: t
|
|
169
171
|
}) => !!t.secondaryAction,
|
|
170
172
|
style: {
|
|
171
|
-
[`& > .${
|
|
173
|
+
[`& > .${yn.root}`]: {
|
|
172
174
|
paddingRight: 48
|
|
173
175
|
}
|
|
174
176
|
}
|
|
@@ -214,14 +216,14 @@ const Rn = (e, t) => {
|
|
|
214
216
|
paddingRight: 48
|
|
215
217
|
}
|
|
216
218
|
}]
|
|
217
|
-
}))),
|
|
219
|
+
}))), Cn = he("li", {
|
|
218
220
|
name: "MuiListItem",
|
|
219
221
|
slot: "Container",
|
|
220
222
|
overridesResolver: (e, t) => t.container
|
|
221
223
|
})({
|
|
222
224
|
position: "relative"
|
|
223
|
-
}), mt = /* @__PURE__ */
|
|
224
|
-
const n =
|
|
225
|
+
}), mt = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
226
|
+
const n = Je({
|
|
225
227
|
props: t,
|
|
226
228
|
name: "MuiListItem"
|
|
227
229
|
}), {
|
|
@@ -229,26 +231,26 @@ const Rn = (e, t) => {
|
|
|
229
231
|
children: i,
|
|
230
232
|
className: a,
|
|
231
233
|
component: l,
|
|
232
|
-
components:
|
|
234
|
+
components: u = {},
|
|
233
235
|
componentsProps: f = {},
|
|
234
236
|
ContainerComponent: m = "li",
|
|
235
237
|
ContainerProps: {
|
|
236
|
-
className:
|
|
238
|
+
className: v,
|
|
237
239
|
...y
|
|
238
240
|
} = {},
|
|
239
241
|
dense: g = !1,
|
|
240
242
|
disableGutters: b = !1,
|
|
241
243
|
disablePadding: p = !1,
|
|
242
244
|
divider: s = !1,
|
|
243
|
-
secondaryAction:
|
|
244
|
-
slotProps:
|
|
245
|
-
slots:
|
|
246
|
-
...
|
|
247
|
-
} = n,
|
|
248
|
-
dense: g ||
|
|
245
|
+
secondaryAction: x,
|
|
246
|
+
slotProps: S = {},
|
|
247
|
+
slots: P = {},
|
|
248
|
+
...h
|
|
249
|
+
} = n, R = d.useContext(Ge), L = d.useMemo(() => ({
|
|
250
|
+
dense: g || R.dense || !1,
|
|
249
251
|
alignItems: o,
|
|
250
252
|
disableGutters: b
|
|
251
|
-
}), [o,
|
|
253
|
+
}), [o, R.dense, g, b]), O = d.useRef(null), T = d.Children.toArray(i), _ = T.length && vr(T[T.length - 1], ["ListItemSecondaryAction"]), M = {
|
|
252
254
|
...n,
|
|
253
255
|
alignItems: o,
|
|
254
256
|
dense: L.dense,
|
|
@@ -256,16 +258,16 @@ const Rn = (e, t) => {
|
|
|
256
258
|
disablePadding: p,
|
|
257
259
|
divider: s,
|
|
258
260
|
hasSecondaryAction: _
|
|
259
|
-
}, F =
|
|
261
|
+
}, F = xn(M), Y = hn(O, r), B = P.root || u.Root || _n, $ = S.root || f.root || {}, G = {
|
|
260
262
|
className: _e(F.root, $.className, a),
|
|
261
|
-
...
|
|
263
|
+
...h
|
|
262
264
|
};
|
|
263
265
|
let k = l || "li";
|
|
264
266
|
return _ ? (k = !G.component && !l ? "div" : k, m === "li" && (k === "li" ? k = "div" : G.component === "li" && (G.component = "div")), /* @__PURE__ */ j(Ge.Provider, {
|
|
265
267
|
value: L,
|
|
266
|
-
children: /* @__PURE__ */ $e(
|
|
268
|
+
children: /* @__PURE__ */ $e(Cn, {
|
|
267
269
|
as: m,
|
|
268
|
-
className: _e(F.container,
|
|
270
|
+
className: _e(F.container, v),
|
|
269
271
|
ref: Y,
|
|
270
272
|
ownerState: M,
|
|
271
273
|
...y,
|
|
@@ -295,8 +297,8 @@ const Rn = (e, t) => {
|
|
|
295
297
|
}
|
|
296
298
|
},
|
|
297
299
|
...G,
|
|
298
|
-
children: [T,
|
|
299
|
-
children:
|
|
300
|
+
children: [T, x && /* @__PURE__ */ j(Ot, {
|
|
301
|
+
children: x
|
|
300
302
|
})]
|
|
301
303
|
})
|
|
302
304
|
});
|
|
@@ -315,8 +317,8 @@ process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
|
315
317
|
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
316
318
|
* be the last child.
|
|
317
319
|
*/
|
|
318
|
-
children:
|
|
319
|
-
const t =
|
|
320
|
+
children: an(c.node, (e) => {
|
|
321
|
+
const t = d.Children.toArray(e.children);
|
|
320
322
|
let r = -1;
|
|
321
323
|
for (let n = t.length - 1; n >= 0; n -= 1) {
|
|
322
324
|
const o = t[n];
|
|
@@ -364,7 +366,7 @@ process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
|
364
366
|
* @default 'li'
|
|
365
367
|
* @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
366
368
|
*/
|
|
367
|
-
ContainerComponent:
|
|
369
|
+
ContainerComponent: sn,
|
|
368
370
|
/**
|
|
369
371
|
* Props applied to the container component if used.
|
|
370
372
|
* @default {}
|
|
@@ -418,11 +420,11 @@ process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
|
418
420
|
*/
|
|
419
421
|
sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
|
|
420
422
|
});
|
|
421
|
-
function
|
|
422
|
-
return
|
|
423
|
+
function On(e) {
|
|
424
|
+
return tt("MuiPagination", e);
|
|
423
425
|
}
|
|
424
426
|
ze("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
425
|
-
function
|
|
427
|
+
function Pn(e = {}) {
|
|
426
428
|
const {
|
|
427
429
|
boundaryCount: t = 1,
|
|
428
430
|
componentName: r = "usePagination",
|
|
@@ -431,25 +433,25 @@ function Cn(e = {}) {
|
|
|
431
433
|
disabled: i = !1,
|
|
432
434
|
hideNextButton: a = !1,
|
|
433
435
|
hidePrevButton: l = !1,
|
|
434
|
-
onChange:
|
|
436
|
+
onChange: u,
|
|
435
437
|
page: f,
|
|
436
438
|
showFirstButton: m = !1,
|
|
437
|
-
showLastButton:
|
|
439
|
+
showLastButton: v = !1,
|
|
438
440
|
siblingCount: y = 1,
|
|
439
441
|
...g
|
|
440
|
-
} = e, [b, p] =
|
|
442
|
+
} = e, [b, p] = mn({
|
|
441
443
|
controlled: f,
|
|
442
444
|
default: o,
|
|
443
445
|
name: r,
|
|
444
446
|
state: "page"
|
|
445
447
|
}), s = (_, M) => {
|
|
446
|
-
f || p(M),
|
|
447
|
-
},
|
|
448
|
+
f || p(M), u && u(_, M);
|
|
449
|
+
}, x = (_, M) => {
|
|
448
450
|
const F = M - _ + 1;
|
|
449
451
|
return Array.from({
|
|
450
452
|
length: F
|
|
451
453
|
}, (Y, B) => _ + B);
|
|
452
|
-
},
|
|
454
|
+
}, S = x(1, Math.min(t, n)), P = x(Math.max(n - t + 1, t + 1), n), h = Math.max(
|
|
453
455
|
Math.min(
|
|
454
456
|
// Natural start
|
|
455
457
|
b - y,
|
|
@@ -458,7 +460,7 @@ function Cn(e = {}) {
|
|
|
458
460
|
),
|
|
459
461
|
// Greater than startPages
|
|
460
462
|
t + 2
|
|
461
|
-
),
|
|
463
|
+
), R = Math.min(
|
|
462
464
|
Math.max(
|
|
463
465
|
// Natural end
|
|
464
466
|
b + y,
|
|
@@ -470,19 +472,19 @@ function Cn(e = {}) {
|
|
|
470
472
|
), L = [
|
|
471
473
|
...m ? ["first"] : [],
|
|
472
474
|
...l ? [] : ["previous"],
|
|
473
|
-
...
|
|
475
|
+
...S,
|
|
474
476
|
// Start ellipsis
|
|
475
477
|
// eslint-disable-next-line no-nested-ternary
|
|
476
|
-
...
|
|
478
|
+
...h > t + 2 ? ["start-ellipsis"] : t + 1 < n - t ? [t + 1] : [],
|
|
477
479
|
// Sibling pages
|
|
478
|
-
...
|
|
480
|
+
...x(h, R),
|
|
479
481
|
// End ellipsis
|
|
480
482
|
// eslint-disable-next-line no-nested-ternary
|
|
481
|
-
...
|
|
482
|
-
...
|
|
483
|
+
...R < n - t - 1 ? ["end-ellipsis"] : n - t > t ? [n - t] : [],
|
|
484
|
+
...P,
|
|
483
485
|
...a ? [] : ["next"],
|
|
484
|
-
...
|
|
485
|
-
],
|
|
486
|
+
...v ? ["last"] : []
|
|
487
|
+
], O = (_) => {
|
|
486
488
|
switch (_) {
|
|
487
489
|
case "first":
|
|
488
490
|
return 1;
|
|
@@ -508,33 +510,33 @@ function Cn(e = {}) {
|
|
|
508
510
|
"aria-current": _ === b ? "page" : void 0
|
|
509
511
|
} : {
|
|
510
512
|
onClick: (M) => {
|
|
511
|
-
s(M,
|
|
513
|
+
s(M, O(_));
|
|
512
514
|
},
|
|
513
515
|
type: _,
|
|
514
|
-
page:
|
|
516
|
+
page: O(_),
|
|
515
517
|
selected: !1,
|
|
516
518
|
disabled: i || !_.includes("ellipsis") && (_ === "next" || _ === "last" ? b >= n : b <= 1)
|
|
517
519
|
}),
|
|
518
520
|
...g
|
|
519
521
|
};
|
|
520
522
|
}
|
|
521
|
-
function
|
|
522
|
-
return
|
|
523
|
+
function Mn(e) {
|
|
524
|
+
return tt("MuiPaginationItem", e);
|
|
523
525
|
}
|
|
524
|
-
const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]),
|
|
526
|
+
const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), Tn = rt(/* @__PURE__ */ j("path", {
|
|
525
527
|
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
526
|
-
}), "FirstPage"),
|
|
528
|
+
}), "FirstPage"), In = rt(/* @__PURE__ */ j("path", {
|
|
527
529
|
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
528
|
-
}), "LastPage"),
|
|
530
|
+
}), "LastPage"), Ln = rt(/* @__PURE__ */ j("path", {
|
|
529
531
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
530
|
-
}), "NavigateBefore"),
|
|
532
|
+
}), "NavigateBefore"), An = rt(/* @__PURE__ */ j("path", {
|
|
531
533
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
532
534
|
}), "NavigateNext"), pr = (e, t) => {
|
|
533
535
|
const {
|
|
534
536
|
ownerState: r
|
|
535
537
|
} = e;
|
|
536
538
|
return [t.root, t[r.variant], t[`size${xe(r.size)}`], r.variant === "text" && t[`text${xe(r.color)}`], r.variant === "outlined" && t[`outlined${xe(r.color)}`], r.shape === "rounded" && t.rounded, r.type === "page" && t.page, (r.type === "start-ellipsis" || r.type === "end-ellipsis") && t.ellipsis, (r.type === "previous" || r.type === "next") && t.previousNext, (r.type === "first" || r.type === "last") && t.firstLast];
|
|
537
|
-
},
|
|
539
|
+
}, Nn = (e) => {
|
|
538
540
|
const {
|
|
539
541
|
classes: t,
|
|
540
542
|
color: r,
|
|
@@ -543,9 +545,9 @@ const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
543
545
|
size: i,
|
|
544
546
|
shape: a,
|
|
545
547
|
type: l,
|
|
546
|
-
variant:
|
|
548
|
+
variant: u
|
|
547
549
|
} = e, f = {
|
|
548
|
-
root: ["root", `size${xe(i)}`,
|
|
550
|
+
root: ["root", `size${xe(i)}`, u, a, r !== "standard" && `color${xe(r)}`, r !== "standard" && `${u}${xe(r)}`, n && "disabled", o && "selected", {
|
|
549
551
|
page: "page",
|
|
550
552
|
first: "firstLast",
|
|
551
553
|
last: "firstLast",
|
|
@@ -556,12 +558,12 @@ const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
556
558
|
}[l]],
|
|
557
559
|
icon: ["icon"]
|
|
558
560
|
};
|
|
559
|
-
return
|
|
560
|
-
},
|
|
561
|
+
return Qe(f, Mn, t);
|
|
562
|
+
}, $n = he("div", {
|
|
561
563
|
name: "MuiPaginationItem",
|
|
562
564
|
slot: "Root",
|
|
563
565
|
overridesResolver: pr
|
|
564
|
-
})(
|
|
566
|
+
})(et(({
|
|
565
567
|
theme: e
|
|
566
568
|
}) => ({
|
|
567
569
|
...e.typography.body2,
|
|
@@ -597,11 +599,11 @@ const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
597
599
|
fontSize: e.typography.pxToRem(15)
|
|
598
600
|
}
|
|
599
601
|
}]
|
|
600
|
-
}))),
|
|
602
|
+
}))), zn = he(cn, {
|
|
601
603
|
name: "MuiPaginationItem",
|
|
602
604
|
slot: "Root",
|
|
603
605
|
overridesResolver: pr
|
|
604
|
-
})(
|
|
606
|
+
})(et(({
|
|
605
607
|
theme: e
|
|
606
608
|
}) => ({
|
|
607
609
|
...e.typography.body2,
|
|
@@ -747,11 +749,11 @@ const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
747
749
|
}
|
|
748
750
|
}
|
|
749
751
|
}))]
|
|
750
|
-
}))),
|
|
752
|
+
}))), Dn = he("div", {
|
|
751
753
|
name: "MuiPaginationItem",
|
|
752
754
|
slot: "Icon",
|
|
753
755
|
overridesResolver: (e, t) => t.icon
|
|
754
|
-
})(
|
|
756
|
+
})(et(({
|
|
755
757
|
theme: e
|
|
756
758
|
}) => ({
|
|
757
759
|
fontSize: e.typography.pxToRem(20),
|
|
@@ -771,8 +773,8 @@ const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
771
773
|
fontSize: e.typography.pxToRem(22)
|
|
772
774
|
}
|
|
773
775
|
}]
|
|
774
|
-
}))), hr = /* @__PURE__ */
|
|
775
|
-
const n =
|
|
776
|
+
}))), hr = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
777
|
+
const n = Je({
|
|
776
778
|
props: t,
|
|
777
779
|
name: "MuiPaginationItem"
|
|
778
780
|
}), {
|
|
@@ -780,26 +782,26 @@ const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
780
782
|
color: i = "standard",
|
|
781
783
|
component: a,
|
|
782
784
|
components: l = {},
|
|
783
|
-
disabled:
|
|
785
|
+
disabled: u = !1,
|
|
784
786
|
page: f,
|
|
785
787
|
selected: m = !1,
|
|
786
|
-
shape:
|
|
788
|
+
shape: v = "circular",
|
|
787
789
|
size: y = "medium",
|
|
788
790
|
slots: g = {},
|
|
789
791
|
slotProps: b = {},
|
|
790
792
|
type: p = "page",
|
|
791
793
|
variant: s = "text",
|
|
792
|
-
...
|
|
793
|
-
} = n,
|
|
794
|
+
...x
|
|
795
|
+
} = n, S = {
|
|
794
796
|
...n,
|
|
795
797
|
color: i,
|
|
796
|
-
disabled:
|
|
798
|
+
disabled: u,
|
|
797
799
|
selected: m,
|
|
798
|
-
shape:
|
|
800
|
+
shape: v,
|
|
799
801
|
size: y,
|
|
800
802
|
type: p,
|
|
801
803
|
variant: s
|
|
802
|
-
},
|
|
804
|
+
}, P = gn(), h = Nn(S), R = {
|
|
803
805
|
slots: {
|
|
804
806
|
previous: g.previous ?? l.previous,
|
|
805
807
|
next: g.next ?? l.next,
|
|
@@ -807,23 +809,23 @@ const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
807
809
|
last: g.last ?? l.last
|
|
808
810
|
},
|
|
809
811
|
slotProps: b
|
|
810
|
-
}, [L,
|
|
811
|
-
elementType:
|
|
812
|
-
externalForwardedProps:
|
|
813
|
-
ownerState:
|
|
812
|
+
}, [L, O] = We("previous", {
|
|
813
|
+
elementType: Ln,
|
|
814
|
+
externalForwardedProps: R,
|
|
815
|
+
ownerState: S
|
|
814
816
|
}), [T, _] = We("next", {
|
|
815
|
-
elementType:
|
|
816
|
-
externalForwardedProps:
|
|
817
|
-
ownerState:
|
|
817
|
+
elementType: An,
|
|
818
|
+
externalForwardedProps: R,
|
|
819
|
+
ownerState: S
|
|
818
820
|
}), [M, F] = We("first", {
|
|
819
|
-
elementType:
|
|
820
|
-
externalForwardedProps:
|
|
821
|
-
ownerState:
|
|
821
|
+
elementType: Tn,
|
|
822
|
+
externalForwardedProps: R,
|
|
823
|
+
ownerState: S
|
|
822
824
|
}), [Y, B] = We("last", {
|
|
823
|
-
elementType:
|
|
824
|
-
externalForwardedProps:
|
|
825
|
-
ownerState:
|
|
826
|
-
}), $ =
|
|
825
|
+
elementType: In,
|
|
826
|
+
externalForwardedProps: R,
|
|
827
|
+
ownerState: S
|
|
828
|
+
}), $ = P ? {
|
|
827
829
|
previous: "next",
|
|
828
830
|
next: "previous",
|
|
829
831
|
first: "last",
|
|
@@ -834,26 +836,26 @@ const Q = ze("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
834
836
|
first: M,
|
|
835
837
|
last: Y
|
|
836
838
|
}[$], k = {
|
|
837
|
-
previous:
|
|
839
|
+
previous: O,
|
|
838
840
|
next: _,
|
|
839
841
|
first: F,
|
|
840
842
|
last: B
|
|
841
843
|
}[$];
|
|
842
|
-
return p === "start-ellipsis" || p === "end-ellipsis" ? /* @__PURE__ */ j(
|
|
844
|
+
return p === "start-ellipsis" || p === "end-ellipsis" ? /* @__PURE__ */ j($n, {
|
|
843
845
|
ref: r,
|
|
844
|
-
ownerState:
|
|
845
|
-
className: _e(
|
|
846
|
+
ownerState: S,
|
|
847
|
+
className: _e(h.root, o),
|
|
846
848
|
children: "…"
|
|
847
|
-
}) : /* @__PURE__ */ $e(
|
|
849
|
+
}) : /* @__PURE__ */ $e(zn, {
|
|
848
850
|
ref: r,
|
|
849
|
-
ownerState:
|
|
851
|
+
ownerState: S,
|
|
850
852
|
component: a,
|
|
851
|
-
disabled:
|
|
852
|
-
className: _e(
|
|
853
|
-
...
|
|
854
|
-
children: [p === "page" && f, G ? /* @__PURE__ */ j(
|
|
853
|
+
disabled: u,
|
|
854
|
+
className: _e(h.root, o),
|
|
855
|
+
...x,
|
|
856
|
+
children: [p === "page" && f, G ? /* @__PURE__ */ j(Dn, {
|
|
855
857
|
...k,
|
|
856
|
-
className:
|
|
858
|
+
className: h.icon,
|
|
857
859
|
as: G
|
|
858
860
|
}) : null]
|
|
859
861
|
});
|
|
@@ -961,16 +963,16 @@ process.env.NODE_ENV !== "production" && (hr.propTypes = {
|
|
|
961
963
|
*/
|
|
962
964
|
variant: c.oneOfType([c.oneOf(["outlined", "text"]), c.string])
|
|
963
965
|
});
|
|
964
|
-
const
|
|
966
|
+
const kn = (e) => {
|
|
965
967
|
const {
|
|
966
968
|
classes: t,
|
|
967
969
|
variant: r
|
|
968
970
|
} = e;
|
|
969
|
-
return
|
|
971
|
+
return Qe({
|
|
970
972
|
root: ["root", r],
|
|
971
973
|
ul: ["ul"]
|
|
972
|
-
},
|
|
973
|
-
},
|
|
974
|
+
}, On, t);
|
|
975
|
+
}, jn = he("nav", {
|
|
974
976
|
name: "MuiPagination",
|
|
975
977
|
slot: "Root",
|
|
976
978
|
overridesResolver: (e, t) => {
|
|
@@ -979,7 +981,7 @@ const zn = (e) => {
|
|
|
979
981
|
} = e;
|
|
980
982
|
return [t.root, t[r.variant]];
|
|
981
983
|
}
|
|
982
|
-
})({}),
|
|
984
|
+
})({}), Fn = he("ul", {
|
|
983
985
|
name: "MuiPagination",
|
|
984
986
|
slot: "Ul",
|
|
985
987
|
overridesResolver: (e, t) => t.ul
|
|
@@ -991,11 +993,11 @@ const zn = (e) => {
|
|
|
991
993
|
margin: 0,
|
|
992
994
|
listStyle: "none"
|
|
993
995
|
});
|
|
994
|
-
function
|
|
996
|
+
function Hn(e, t, r) {
|
|
995
997
|
return e === "page" ? `${r ? "" : "Go to "}page ${t}` : `Go to ${e} page`;
|
|
996
998
|
}
|
|
997
|
-
const gt = /* @__PURE__ */
|
|
998
|
-
const n =
|
|
999
|
+
const gt = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
1000
|
+
const n = Je({
|
|
999
1001
|
props: t,
|
|
1000
1002
|
name: "MuiPagination"
|
|
1001
1003
|
}), {
|
|
@@ -1003,10 +1005,10 @@ const gt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
|
1003
1005
|
className: i,
|
|
1004
1006
|
color: a = "standard",
|
|
1005
1007
|
count: l = 1,
|
|
1006
|
-
defaultPage:
|
|
1008
|
+
defaultPage: u = 1,
|
|
1007
1009
|
disabled: f = !1,
|
|
1008
|
-
getItemAriaLabel: m =
|
|
1009
|
-
hideNextButton:
|
|
1010
|
+
getItemAriaLabel: m = Hn,
|
|
1011
|
+
hideNextButton: v = !1,
|
|
1010
1012
|
hidePrevButton: y = !1,
|
|
1011
1013
|
onChange: g,
|
|
1012
1014
|
page: b,
|
|
@@ -1014,15 +1016,15 @@ const gt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
|
1014
1016
|
...M
|
|
1015
1017
|
}),
|
|
1016
1018
|
shape: s = "circular",
|
|
1017
|
-
showFirstButton:
|
|
1018
|
-
showLastButton:
|
|
1019
|
-
siblingCount:
|
|
1020
|
-
size:
|
|
1021
|
-
variant:
|
|
1019
|
+
showFirstButton: x = !1,
|
|
1020
|
+
showLastButton: S = !1,
|
|
1021
|
+
siblingCount: P = 1,
|
|
1022
|
+
size: h = "medium",
|
|
1023
|
+
variant: R = "text",
|
|
1022
1024
|
...L
|
|
1023
1025
|
} = n, {
|
|
1024
|
-
items:
|
|
1025
|
-
} =
|
|
1026
|
+
items: O
|
|
1027
|
+
} = Pn({
|
|
1026
1028
|
...n,
|
|
1027
1029
|
componentName: "Pagination"
|
|
1028
1030
|
}), T = {
|
|
@@ -1030,36 +1032,36 @@ const gt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
|
1030
1032
|
boundaryCount: o,
|
|
1031
1033
|
color: a,
|
|
1032
1034
|
count: l,
|
|
1033
|
-
defaultPage:
|
|
1035
|
+
defaultPage: u,
|
|
1034
1036
|
disabled: f,
|
|
1035
1037
|
getItemAriaLabel: m,
|
|
1036
|
-
hideNextButton:
|
|
1038
|
+
hideNextButton: v,
|
|
1037
1039
|
hidePrevButton: y,
|
|
1038
1040
|
renderItem: p,
|
|
1039
1041
|
shape: s,
|
|
1040
|
-
showFirstButton:
|
|
1041
|
-
showLastButton:
|
|
1042
|
-
siblingCount:
|
|
1043
|
-
size:
|
|
1044
|
-
variant:
|
|
1045
|
-
}, _ =
|
|
1046
|
-
return /* @__PURE__ */ j(
|
|
1042
|
+
showFirstButton: x,
|
|
1043
|
+
showLastButton: S,
|
|
1044
|
+
siblingCount: P,
|
|
1045
|
+
size: h,
|
|
1046
|
+
variant: R
|
|
1047
|
+
}, _ = kn(T);
|
|
1048
|
+
return /* @__PURE__ */ j(jn, {
|
|
1047
1049
|
"aria-label": "pagination navigation",
|
|
1048
1050
|
className: _e(_.root, i),
|
|
1049
1051
|
ownerState: T,
|
|
1050
1052
|
ref: r,
|
|
1051
1053
|
...L,
|
|
1052
|
-
children: /* @__PURE__ */ j(
|
|
1054
|
+
children: /* @__PURE__ */ j(Fn, {
|
|
1053
1055
|
className: _.ul,
|
|
1054
1056
|
ownerState: T,
|
|
1055
|
-
children:
|
|
1057
|
+
children: O.map((M, F) => /* @__PURE__ */ j("li", {
|
|
1056
1058
|
children: p({
|
|
1057
1059
|
...M,
|
|
1058
1060
|
color: a,
|
|
1059
1061
|
"aria-label": m(M.type, M.page, M.selected),
|
|
1060
1062
|
shape: s,
|
|
1061
|
-
size:
|
|
1062
|
-
variant:
|
|
1063
|
+
size: h,
|
|
1064
|
+
variant: R
|
|
1063
1065
|
})
|
|
1064
1066
|
}, F))
|
|
1065
1067
|
})
|
|
@@ -1187,7 +1189,7 @@ function oe(e) {
|
|
|
1187
1189
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1188
1190
|
}, oe(e);
|
|
1189
1191
|
}
|
|
1190
|
-
function
|
|
1192
|
+
function Vn(e, t) {
|
|
1191
1193
|
if (oe(e) != "object" || !e) return e;
|
|
1192
1194
|
var r = e[Symbol.toPrimitive];
|
|
1193
1195
|
if (r !== void 0) {
|
|
@@ -1198,7 +1200,7 @@ function Fn(e, t) {
|
|
|
1198
1200
|
return (t === "string" ? String : Number)(e);
|
|
1199
1201
|
}
|
|
1200
1202
|
function mr(e) {
|
|
1201
|
-
var t =
|
|
1203
|
+
var t = Vn(e, "string");
|
|
1202
1204
|
return oe(t) == "symbol" ? t : t + "";
|
|
1203
1205
|
}
|
|
1204
1206
|
function ee(e, t, r) {
|
|
@@ -1230,23 +1232,23 @@ function q(e) {
|
|
|
1230
1232
|
}
|
|
1231
1233
|
return e;
|
|
1232
1234
|
}
|
|
1233
|
-
function
|
|
1235
|
+
function Bn(e) {
|
|
1234
1236
|
if (Array.isArray(e)) return e;
|
|
1235
1237
|
}
|
|
1236
|
-
function
|
|
1238
|
+
function Wn(e, t) {
|
|
1237
1239
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1238
1240
|
if (r != null) {
|
|
1239
|
-
var n, o, i, a, l = [],
|
|
1241
|
+
var n, o, i, a, l = [], u = !0, f = !1;
|
|
1240
1242
|
try {
|
|
1241
1243
|
if (i = (r = r.call(e)).next, t === 0) {
|
|
1242
1244
|
if (Object(r) !== r) return;
|
|
1243
|
-
|
|
1244
|
-
} else for (; !(
|
|
1245
|
+
u = !1;
|
|
1246
|
+
} else for (; !(u = (n = i.call(r)).done) && (l.push(n.value), l.length !== t); u = !0) ;
|
|
1245
1247
|
} catch (m) {
|
|
1246
1248
|
f = !0, o = m;
|
|
1247
1249
|
} finally {
|
|
1248
1250
|
try {
|
|
1249
|
-
if (!
|
|
1251
|
+
if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
|
|
1250
1252
|
} finally {
|
|
1251
1253
|
if (f) throw o;
|
|
1252
1254
|
}
|
|
@@ -1259,23 +1261,23 @@ function Jt(e, t) {
|
|
|
1259
1261
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1260
1262
|
return n;
|
|
1261
1263
|
}
|
|
1262
|
-
function
|
|
1264
|
+
function Yn(e, t) {
|
|
1263
1265
|
if (e) {
|
|
1264
1266
|
if (typeof e == "string") return Jt(e, t);
|
|
1265
1267
|
var r = {}.toString.call(e).slice(8, -1);
|
|
1266
1268
|
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Jt(e, t) : void 0;
|
|
1267
1269
|
}
|
|
1268
1270
|
}
|
|
1269
|
-
function
|
|
1271
|
+
function Gn() {
|
|
1270
1272
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1271
1273
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1272
1274
|
}
|
|
1273
1275
|
function K(e, t) {
|
|
1274
|
-
return
|
|
1276
|
+
return Bn(e) || Wn(e, t) || Yn(e, t) || Gn();
|
|
1275
1277
|
}
|
|
1276
|
-
function
|
|
1278
|
+
function Un(e, t) {
|
|
1277
1279
|
if (e == null) return {};
|
|
1278
|
-
var r, n, o =
|
|
1280
|
+
var r, n, o = ln(e, t);
|
|
1279
1281
|
if (Object.getOwnPropertySymbols) {
|
|
1280
1282
|
var i = Object.getOwnPropertySymbols(e);
|
|
1281
1283
|
for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
@@ -1318,15 +1320,15 @@ var gr = { exports: {} };
|
|
|
1318
1320
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
1319
1321
|
})();
|
|
1320
1322
|
})(gr);
|
|
1321
|
-
var
|
|
1322
|
-
const Xe = /* @__PURE__ */
|
|
1323
|
-
var
|
|
1323
|
+
var Xn = gr.exports;
|
|
1324
|
+
const Xe = /* @__PURE__ */ vn(Xn);
|
|
1325
|
+
var Kn = Symbol.for("react.element"), qn = Symbol.for("react.transitional.element"), Zn = Symbol.for("react.fragment");
|
|
1324
1326
|
function br(e) {
|
|
1325
1327
|
return (
|
|
1326
1328
|
// Base object type
|
|
1327
1329
|
e && oe(e) === "object" && // React Element type
|
|
1328
|
-
(e.$$typeof ===
|
|
1329
|
-
e.type ===
|
|
1330
|
+
(e.$$typeof === Kn || e.$$typeof === qn) && // React Fragment type
|
|
1331
|
+
e.type === Zn
|
|
1330
1332
|
);
|
|
1331
1333
|
}
|
|
1332
1334
|
function bt(e) {
|
|
@@ -1335,7 +1337,7 @@ function bt(e) {
|
|
|
1335
1337
|
n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(bt(n)) : br(n) && n.props ? r = r.concat(bt(n.props.children, t)) : r.push(n));
|
|
1336
1338
|
}), r;
|
|
1337
1339
|
}
|
|
1338
|
-
var yt = {}, Pt = [],
|
|
1340
|
+
var yt = {}, Pt = [], Jn = function(t) {
|
|
1339
1341
|
Pt.push(t);
|
|
1340
1342
|
};
|
|
1341
1343
|
function St(e, t) {
|
|
@@ -1346,7 +1348,7 @@ function St(e, t) {
|
|
|
1346
1348
|
r && console.error("Warning: ".concat(r));
|
|
1347
1349
|
}
|
|
1348
1350
|
}
|
|
1349
|
-
function
|
|
1351
|
+
function Qn(e, t) {
|
|
1350
1352
|
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
1351
1353
|
var r = Pt.reduce(function(n, o) {
|
|
1352
1354
|
return o(n ?? "", "note");
|
|
@@ -1354,7 +1356,7 @@ function Zn(e, t) {
|
|
|
1354
1356
|
r && console.warn("Note: ".concat(r));
|
|
1355
1357
|
}
|
|
1356
1358
|
}
|
|
1357
|
-
function
|
|
1359
|
+
function eo() {
|
|
1358
1360
|
yt = {};
|
|
1359
1361
|
}
|
|
1360
1362
|
function yr(e, t, r) {
|
|
@@ -1363,20 +1365,20 @@ function yr(e, t, r) {
|
|
|
1363
1365
|
function nt(e, t) {
|
|
1364
1366
|
yr(St, e, t);
|
|
1365
1367
|
}
|
|
1366
|
-
function
|
|
1367
|
-
yr(
|
|
1368
|
+
function to(e, t) {
|
|
1369
|
+
yr(Qn, e, t);
|
|
1368
1370
|
}
|
|
1369
|
-
nt.preMessage =
|
|
1370
|
-
nt.resetWarned =
|
|
1371
|
-
nt.noteOnce =
|
|
1371
|
+
nt.preMessage = Jn;
|
|
1372
|
+
nt.resetWarned = eo;
|
|
1373
|
+
nt.noteOnce = to;
|
|
1372
1374
|
function Qt(e) {
|
|
1373
1375
|
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
1374
1376
|
}
|
|
1375
|
-
function
|
|
1377
|
+
function ro(e) {
|
|
1376
1378
|
return e && oe(e) === "object" && Qt(e.nativeElement) ? e.nativeElement : Qt(e) ? e : null;
|
|
1377
1379
|
}
|
|
1378
1380
|
function Ue(e) {
|
|
1379
|
-
var t =
|
|
1381
|
+
var t = ro(e);
|
|
1380
1382
|
if (t)
|
|
1381
1383
|
return t;
|
|
1382
1384
|
if (e instanceof dr.Component) {
|
|
@@ -1396,15 +1398,15 @@ var Rt = { exports: {} }, A = {};
|
|
|
1396
1398
|
* LICENSE file in the root directory of this source tree.
|
|
1397
1399
|
*/
|
|
1398
1400
|
var er;
|
|
1399
|
-
function
|
|
1401
|
+
function no() {
|
|
1400
1402
|
if (er) return A;
|
|
1401
1403
|
er = 1;
|
|
1402
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.server_context"),
|
|
1404
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.server_context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), b;
|
|
1403
1405
|
b = Symbol.for("react.module.reference");
|
|
1404
1406
|
function p(s) {
|
|
1405
1407
|
if (typeof s == "object" && s !== null) {
|
|
1406
|
-
var
|
|
1407
|
-
switch (
|
|
1408
|
+
var x = s.$$typeof;
|
|
1409
|
+
switch (x) {
|
|
1408
1410
|
case e:
|
|
1409
1411
|
switch (s = s.type, s) {
|
|
1410
1412
|
case r:
|
|
@@ -1417,21 +1419,21 @@ function to() {
|
|
|
1417
1419
|
switch (s = s && s.$$typeof, s) {
|
|
1418
1420
|
case l:
|
|
1419
1421
|
case a:
|
|
1420
|
-
case
|
|
1422
|
+
case u:
|
|
1421
1423
|
case y:
|
|
1422
|
-
case
|
|
1424
|
+
case v:
|
|
1423
1425
|
case i:
|
|
1424
1426
|
return s;
|
|
1425
1427
|
default:
|
|
1426
|
-
return
|
|
1428
|
+
return x;
|
|
1427
1429
|
}
|
|
1428
1430
|
}
|
|
1429
1431
|
case t:
|
|
1430
|
-
return
|
|
1432
|
+
return x;
|
|
1431
1433
|
}
|
|
1432
1434
|
}
|
|
1433
1435
|
}
|
|
1434
|
-
return A.ContextConsumer = a, A.ContextProvider = i, A.Element = e, A.ForwardRef =
|
|
1436
|
+
return A.ContextConsumer = a, A.ContextProvider = i, A.Element = e, A.ForwardRef = u, A.Fragment = r, A.Lazy = y, A.Memo = v, A.Portal = t, A.Profiler = o, A.StrictMode = n, A.Suspense = f, A.SuspenseList = m, A.isAsyncMode = function() {
|
|
1435
1437
|
return !1;
|
|
1436
1438
|
}, A.isConcurrentMode = function() {
|
|
1437
1439
|
return !1;
|
|
@@ -1442,13 +1444,13 @@ function to() {
|
|
|
1442
1444
|
}, A.isElement = function(s) {
|
|
1443
1445
|
return typeof s == "object" && s !== null && s.$$typeof === e;
|
|
1444
1446
|
}, A.isForwardRef = function(s) {
|
|
1445
|
-
return p(s) ===
|
|
1447
|
+
return p(s) === u;
|
|
1446
1448
|
}, A.isFragment = function(s) {
|
|
1447
1449
|
return p(s) === r;
|
|
1448
1450
|
}, A.isLazy = function(s) {
|
|
1449
1451
|
return p(s) === y;
|
|
1450
1452
|
}, A.isMemo = function(s) {
|
|
1451
|
-
return p(s) ===
|
|
1453
|
+
return p(s) === v;
|
|
1452
1454
|
}, A.isPortal = function(s) {
|
|
1453
1455
|
return p(s) === t;
|
|
1454
1456
|
}, A.isProfiler = function(s) {
|
|
@@ -1460,7 +1462,7 @@ function to() {
|
|
|
1460
1462
|
}, A.isSuspenseList = function(s) {
|
|
1461
1463
|
return p(s) === m;
|
|
1462
1464
|
}, A.isValidElementType = function(s) {
|
|
1463
|
-
return typeof s == "string" || typeof s == "function" || s === r || s === o || s === n || s === f || s === m || s === g || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof ===
|
|
1465
|
+
return typeof s == "string" || typeof s == "function" || s === r || s === o || s === n || s === f || s === m || s === g || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof === v || s.$$typeof === i || s.$$typeof === a || s.$$typeof === u || s.$$typeof === b || s.getModuleId !== void 0);
|
|
1464
1466
|
}, A.typeOf = p, A;
|
|
1465
1467
|
}
|
|
1466
1468
|
var N = {};
|
|
@@ -1474,23 +1476,23 @@ var N = {};
|
|
|
1474
1476
|
* LICENSE file in the root directory of this source tree.
|
|
1475
1477
|
*/
|
|
1476
1478
|
var tr;
|
|
1477
|
-
function
|
|
1479
|
+
function oo() {
|
|
1478
1480
|
return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1479
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.server_context"),
|
|
1480
|
-
|
|
1481
|
-
function
|
|
1482
|
-
return !!(typeof
|
|
1481
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.server_context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), b = !1, p = !1, s = !1, x = !1, S = !1, P;
|
|
1482
|
+
P = Symbol.for("react.module.reference");
|
|
1483
|
+
function h(E) {
|
|
1484
|
+
return !!(typeof E == "string" || typeof E == "function" || E === r || E === o || S || E === n || E === f || E === m || x || E === g || b || p || s || typeof E == "object" && E !== null && (E.$$typeof === y || E.$$typeof === v || E.$$typeof === i || E.$$typeof === a || E.$$typeof === u || // This needs to include all possible module reference object
|
|
1483
1485
|
// types supported by any Flight configuration anywhere since
|
|
1484
1486
|
// we don't know which Flight build this will end up being used
|
|
1485
1487
|
// with.
|
|
1486
|
-
|
|
1488
|
+
E.$$typeof === P || E.getModuleId !== void 0));
|
|
1487
1489
|
}
|
|
1488
|
-
function
|
|
1489
|
-
if (typeof
|
|
1490
|
-
var le =
|
|
1490
|
+
function R(E) {
|
|
1491
|
+
if (typeof E == "object" && E !== null) {
|
|
1492
|
+
var le = E.$$typeof;
|
|
1491
1493
|
switch (le) {
|
|
1492
1494
|
case e:
|
|
1493
|
-
var ue =
|
|
1495
|
+
var ue = E.type;
|
|
1494
1496
|
switch (ue) {
|
|
1495
1497
|
case r:
|
|
1496
1498
|
case o:
|
|
@@ -1503,9 +1505,9 @@ function ro() {
|
|
|
1503
1505
|
switch (be) {
|
|
1504
1506
|
case l:
|
|
1505
1507
|
case a:
|
|
1506
|
-
case
|
|
1508
|
+
case u:
|
|
1507
1509
|
case y:
|
|
1508
|
-
case
|
|
1510
|
+
case v:
|
|
1509
1511
|
case i:
|
|
1510
1512
|
return be;
|
|
1511
1513
|
default:
|
|
@@ -1517,80 +1519,80 @@ function ro() {
|
|
|
1517
1519
|
}
|
|
1518
1520
|
}
|
|
1519
1521
|
}
|
|
1520
|
-
var L = a,
|
|
1521
|
-
function me(
|
|
1522
|
+
var L = a, O = i, T = e, _ = u, M = r, F = y, Y = v, B = t, $ = o, G = n, k = f, ae = m, Z = !1, W = !1;
|
|
1523
|
+
function me(E) {
|
|
1522
1524
|
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1523
1525
|
}
|
|
1524
|
-
function H(
|
|
1526
|
+
function H(E) {
|
|
1525
1527
|
return W || (W = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1526
1528
|
}
|
|
1527
|
-
function se(
|
|
1528
|
-
return
|
|
1529
|
+
function se(E) {
|
|
1530
|
+
return R(E) === a;
|
|
1529
1531
|
}
|
|
1530
|
-
function ve(
|
|
1531
|
-
return
|
|
1532
|
+
function ve(E) {
|
|
1533
|
+
return R(E) === i;
|
|
1532
1534
|
}
|
|
1533
|
-
function pe(
|
|
1534
|
-
return typeof
|
|
1535
|
+
function pe(E) {
|
|
1536
|
+
return typeof E == "object" && E !== null && E.$$typeof === e;
|
|
1535
1537
|
}
|
|
1536
|
-
function Se(
|
|
1537
|
-
return
|
|
1538
|
+
function Se(E) {
|
|
1539
|
+
return R(E) === u;
|
|
1538
1540
|
}
|
|
1539
|
-
function ge(
|
|
1540
|
-
return
|
|
1541
|
+
function ge(E) {
|
|
1542
|
+
return R(E) === r;
|
|
1541
1543
|
}
|
|
1542
|
-
function U(
|
|
1543
|
-
return
|
|
1544
|
+
function U(E) {
|
|
1545
|
+
return R(E) === y;
|
|
1544
1546
|
}
|
|
1545
|
-
function te(
|
|
1546
|
-
return
|
|
1547
|
+
function te(E) {
|
|
1548
|
+
return R(E) === v;
|
|
1547
1549
|
}
|
|
1548
|
-
function ie(
|
|
1549
|
-
return
|
|
1550
|
+
function ie(E) {
|
|
1551
|
+
return R(E) === t;
|
|
1550
1552
|
}
|
|
1551
|
-
function X(
|
|
1552
|
-
return
|
|
1553
|
+
function X(E) {
|
|
1554
|
+
return R(E) === o;
|
|
1553
1555
|
}
|
|
1554
|
-
function z(
|
|
1555
|
-
return
|
|
1556
|
+
function z(E) {
|
|
1557
|
+
return R(E) === n;
|
|
1556
1558
|
}
|
|
1557
|
-
function re(
|
|
1558
|
-
return
|
|
1559
|
+
function re(E) {
|
|
1560
|
+
return R(E) === f;
|
|
1559
1561
|
}
|
|
1560
|
-
function Re(
|
|
1561
|
-
return
|
|
1562
|
+
function Re(E) {
|
|
1563
|
+
return R(E) === m;
|
|
1562
1564
|
}
|
|
1563
|
-
N.ContextConsumer = L, N.ContextProvider =
|
|
1565
|
+
N.ContextConsumer = L, N.ContextProvider = O, N.Element = T, N.ForwardRef = _, N.Fragment = M, N.Lazy = F, N.Memo = Y, N.Portal = B, N.Profiler = $, N.StrictMode = G, N.Suspense = k, N.SuspenseList = ae, N.isAsyncMode = me, N.isConcurrentMode = H, N.isContextConsumer = se, N.isContextProvider = ve, N.isElement = pe, N.isForwardRef = Se, N.isFragment = ge, N.isLazy = U, N.isMemo = te, N.isPortal = ie, N.isProfiler = X, N.isStrictMode = z, N.isSuspense = re, N.isSuspenseList = Re, N.isValidElementType = h, N.typeOf = R;
|
|
1564
1566
|
}()), N;
|
|
1565
1567
|
}
|
|
1566
|
-
process.env.NODE_ENV === "production" ? Rt.exports =
|
|
1568
|
+
process.env.NODE_ENV === "production" ? Rt.exports = no() : Rt.exports = oo();
|
|
1567
1569
|
var ht = Rt.exports;
|
|
1568
|
-
function
|
|
1569
|
-
var n =
|
|
1570
|
+
function io(e, t, r) {
|
|
1571
|
+
var n = d.useRef({});
|
|
1570
1572
|
return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
|
|
1571
1573
|
}
|
|
1572
|
-
var
|
|
1574
|
+
var ao = function(t, r) {
|
|
1573
1575
|
typeof t == "function" ? t(r) : oe(t) === "object" && t && "current" in t && (t.current = r);
|
|
1574
|
-
},
|
|
1576
|
+
}, so = function() {
|
|
1575
1577
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
1576
1578
|
r[n] = arguments[n];
|
|
1577
1579
|
var o = r.filter(Boolean);
|
|
1578
1580
|
return o.length <= 1 ? o[0] : function(i) {
|
|
1579
1581
|
r.forEach(function(a) {
|
|
1580
|
-
|
|
1582
|
+
ao(a, i);
|
|
1581
1583
|
});
|
|
1582
1584
|
};
|
|
1583
|
-
},
|
|
1585
|
+
}, co = function() {
|
|
1584
1586
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
1585
1587
|
r[n] = arguments[n];
|
|
1586
|
-
return
|
|
1587
|
-
return
|
|
1588
|
+
return io(function() {
|
|
1589
|
+
return so.apply(void 0, r);
|
|
1588
1590
|
}, r, function(o, i) {
|
|
1589
1591
|
return o.length !== i.length || o.every(function(a, l) {
|
|
1590
1592
|
return a !== i[l];
|
|
1591
1593
|
});
|
|
1592
1594
|
});
|
|
1593
|
-
},
|
|
1595
|
+
}, lo = function(t) {
|
|
1594
1596
|
var r, n;
|
|
1595
1597
|
if (!t)
|
|
1596
1598
|
return !1;
|
|
@@ -1602,26 +1604,26 @@ var oo = function(t, r) {
|
|
|
1602
1604
|
function Sr(e) {
|
|
1603
1605
|
return /* @__PURE__ */ Qr(e) && !br(e);
|
|
1604
1606
|
}
|
|
1605
|
-
var
|
|
1607
|
+
var uo = function(t) {
|
|
1606
1608
|
if (t && Sr(t)) {
|
|
1607
1609
|
var r = t;
|
|
1608
1610
|
return r.props.propertyIsEnumerable("ref") ? r.props.ref : r.ref;
|
|
1609
1611
|
}
|
|
1610
1612
|
return null;
|
|
1611
|
-
}, Et = /* @__PURE__ */
|
|
1612
|
-
function
|
|
1613
|
-
var t = e.children, r = e.onBatchResize, n =
|
|
1613
|
+
}, Et = /* @__PURE__ */ d.createContext(null);
|
|
1614
|
+
function fo(e) {
|
|
1615
|
+
var t = e.children, r = e.onBatchResize, n = d.useRef(0), o = d.useRef([]), i = d.useContext(Et), a = d.useCallback(function(l, u, f) {
|
|
1614
1616
|
n.current += 1;
|
|
1615
1617
|
var m = n.current;
|
|
1616
1618
|
o.current.push({
|
|
1617
1619
|
size: l,
|
|
1618
|
-
element:
|
|
1620
|
+
element: u,
|
|
1619
1621
|
data: f
|
|
1620
1622
|
}), Promise.resolve().then(function() {
|
|
1621
1623
|
m === n.current && (r == null || r(o.current), o.current = []);
|
|
1622
|
-
}), i == null || i(l,
|
|
1624
|
+
}), i == null || i(l, u, f);
|
|
1623
1625
|
}, [r, i]);
|
|
1624
|
-
return /* @__PURE__ */
|
|
1626
|
+
return /* @__PURE__ */ d.createElement(Et.Provider, {
|
|
1625
1627
|
value: a
|
|
1626
1628
|
}, t);
|
|
1627
1629
|
}
|
|
@@ -1673,38 +1675,38 @@ var Rr = function() {
|
|
|
1673
1675
|
);
|
|
1674
1676
|
}(), wt = typeof window < "u" && typeof document < "u" && window.document === document, Ke = function() {
|
|
1675
1677
|
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
1676
|
-
}(),
|
|
1678
|
+
}(), vo = function() {
|
|
1677
1679
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Ke) : function(e) {
|
|
1678
1680
|
return setTimeout(function() {
|
|
1679
1681
|
return e(Date.now());
|
|
1680
1682
|
}, 1e3 / 60);
|
|
1681
1683
|
};
|
|
1682
|
-
}(),
|
|
1683
|
-
function
|
|
1684
|
+
}(), po = 2;
|
|
1685
|
+
function ho(e, t) {
|
|
1684
1686
|
var r = !1, n = !1, o = 0;
|
|
1685
1687
|
function i() {
|
|
1686
1688
|
r && (r = !1, e()), n && l();
|
|
1687
1689
|
}
|
|
1688
1690
|
function a() {
|
|
1689
|
-
|
|
1691
|
+
vo(i);
|
|
1690
1692
|
}
|
|
1691
1693
|
function l() {
|
|
1692
|
-
var
|
|
1694
|
+
var u = Date.now();
|
|
1693
1695
|
if (r) {
|
|
1694
|
-
if (
|
|
1696
|
+
if (u - o < po)
|
|
1695
1697
|
return;
|
|
1696
1698
|
n = !0;
|
|
1697
1699
|
} else
|
|
1698
1700
|
r = !0, n = !1, setTimeout(a, t);
|
|
1699
|
-
o =
|
|
1701
|
+
o = u;
|
|
1700
1702
|
}
|
|
1701
1703
|
return l;
|
|
1702
1704
|
}
|
|
1703
|
-
var
|
|
1705
|
+
var mo = 20, go = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], bo = typeof MutationObserver < "u", yo = (
|
|
1704
1706
|
/** @class */
|
|
1705
1707
|
function() {
|
|
1706
1708
|
function e() {
|
|
1707
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
1709
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = ho(this.refresh.bind(this), mo);
|
|
1708
1710
|
}
|
|
1709
1711
|
return e.prototype.addObserver = function(t) {
|
|
1710
1712
|
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
|
|
@@ -1722,7 +1724,7 @@ var po = 20, ho = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1722
1724
|
return r.broadcastActive();
|
|
1723
1725
|
}), t.length > 0;
|
|
1724
1726
|
}, e.prototype.connect_ = function() {
|
|
1725
|
-
!wt || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh),
|
|
1727
|
+
!wt || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), bo ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1726
1728
|
attributes: !0,
|
|
1727
1729
|
childList: !0,
|
|
1728
1730
|
characterData: !0,
|
|
@@ -1731,7 +1733,7 @@ var po = 20, ho = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1731
1733
|
}, e.prototype.disconnect_ = function() {
|
|
1732
1734
|
!wt || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
1733
1735
|
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
1734
|
-
var r = t.propertyName, n = r === void 0 ? "" : r, o =
|
|
1736
|
+
var r = t.propertyName, n = r === void 0 ? "" : r, o = go.some(function(i) {
|
|
1735
1737
|
return !!~n.indexOf(i);
|
|
1736
1738
|
});
|
|
1737
1739
|
o && this.refresh();
|
|
@@ -1765,42 +1767,42 @@ function rr(e) {
|
|
|
1765
1767
|
return n + qe(i);
|
|
1766
1768
|
}, 0);
|
|
1767
1769
|
}
|
|
1768
|
-
function
|
|
1770
|
+
function So(e) {
|
|
1769
1771
|
for (var t = ["top", "right", "bottom", "left"], r = {}, n = 0, o = t; n < o.length; n++) {
|
|
1770
1772
|
var i = o[n], a = e["padding-" + i];
|
|
1771
1773
|
r[i] = qe(a);
|
|
1772
1774
|
}
|
|
1773
1775
|
return r;
|
|
1774
1776
|
}
|
|
1775
|
-
function
|
|
1777
|
+
function Ro(e) {
|
|
1776
1778
|
var t = e.getBBox();
|
|
1777
1779
|
return ot(0, 0, t.width, t.height);
|
|
1778
1780
|
}
|
|
1779
|
-
function
|
|
1781
|
+
function Eo(e) {
|
|
1780
1782
|
var t = e.clientWidth, r = e.clientHeight;
|
|
1781
1783
|
if (!t && !r)
|
|
1782
1784
|
return wr;
|
|
1783
|
-
var n = Ce(e).getComputedStyle(e), o =
|
|
1784
|
-
if (n.boxSizing === "border-box" && (Math.round(l + i) !== t && (l -= rr(n, "left", "right") + i), Math.round(
|
|
1785
|
-
var f = Math.round(l + i) - t, m = Math.round(
|
|
1786
|
-
Math.abs(f) !== 1 && (l -= f), Math.abs(m) !== 1 && (
|
|
1785
|
+
var n = Ce(e).getComputedStyle(e), o = So(n), i = o.left + o.right, a = o.top + o.bottom, l = qe(n.width), u = qe(n.height);
|
|
1786
|
+
if (n.boxSizing === "border-box" && (Math.round(l + i) !== t && (l -= rr(n, "left", "right") + i), Math.round(u + a) !== r && (u -= rr(n, "top", "bottom") + a)), !xo(e)) {
|
|
1787
|
+
var f = Math.round(l + i) - t, m = Math.round(u + a) - r;
|
|
1788
|
+
Math.abs(f) !== 1 && (l -= f), Math.abs(m) !== 1 && (u -= m);
|
|
1787
1789
|
}
|
|
1788
|
-
return ot(o.left, o.top, l,
|
|
1790
|
+
return ot(o.left, o.top, l, u);
|
|
1789
1791
|
}
|
|
1790
|
-
var
|
|
1792
|
+
var wo = /* @__PURE__ */ function() {
|
|
1791
1793
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
1792
1794
|
return e instanceof Ce(e).SVGGraphicsElement;
|
|
1793
1795
|
} : function(e) {
|
|
1794
1796
|
return e instanceof Ce(e).SVGElement && typeof e.getBBox == "function";
|
|
1795
1797
|
};
|
|
1796
1798
|
}();
|
|
1797
|
-
function
|
|
1799
|
+
function xo(e) {
|
|
1798
1800
|
return e === Ce(e).document.documentElement;
|
|
1799
1801
|
}
|
|
1800
|
-
function
|
|
1801
|
-
return wt ?
|
|
1802
|
+
function _o(e) {
|
|
1803
|
+
return wt ? wo(e) ? Ro(e) : Eo(e) : wr;
|
|
1802
1804
|
}
|
|
1803
|
-
function
|
|
1805
|
+
function Co(e) {
|
|
1804
1806
|
var t = e.x, r = e.y, n = e.width, o = e.height, i = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, a = Object.create(i.prototype);
|
|
1805
1807
|
return Er(a, {
|
|
1806
1808
|
x: t,
|
|
@@ -1816,30 +1818,30 @@ function xo(e) {
|
|
|
1816
1818
|
function ot(e, t, r, n) {
|
|
1817
1819
|
return { x: e, y: t, width: r, height: n };
|
|
1818
1820
|
}
|
|
1819
|
-
var
|
|
1821
|
+
var Oo = (
|
|
1820
1822
|
/** @class */
|
|
1821
1823
|
function() {
|
|
1822
1824
|
function e(t) {
|
|
1823
1825
|
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = ot(0, 0, 0, 0), this.target = t;
|
|
1824
1826
|
}
|
|
1825
1827
|
return e.prototype.isActive = function() {
|
|
1826
|
-
var t =
|
|
1828
|
+
var t = _o(this.target);
|
|
1827
1829
|
return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
|
|
1828
1830
|
}, e.prototype.broadcastRect = function() {
|
|
1829
1831
|
var t = this.contentRect_;
|
|
1830
1832
|
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
|
|
1831
1833
|
}, e;
|
|
1832
1834
|
}()
|
|
1833
|
-
),
|
|
1835
|
+
), Po = (
|
|
1834
1836
|
/** @class */
|
|
1835
1837
|
/* @__PURE__ */ function() {
|
|
1836
1838
|
function e(t, r) {
|
|
1837
|
-
var n =
|
|
1839
|
+
var n = Co(r);
|
|
1838
1840
|
Er(this, { target: t, contentRect: n });
|
|
1839
1841
|
}
|
|
1840
1842
|
return e;
|
|
1841
1843
|
}()
|
|
1842
|
-
),
|
|
1844
|
+
), Mo = (
|
|
1843
1845
|
/** @class */
|
|
1844
1846
|
function() {
|
|
1845
1847
|
function e(t, r, n) {
|
|
@@ -1854,7 +1856,7 @@ var _o = (
|
|
|
1854
1856
|
if (!(t instanceof Ce(t).Element))
|
|
1855
1857
|
throw new TypeError('parameter 1 is not of type "Element".');
|
|
1856
1858
|
var r = this.observations_;
|
|
1857
|
-
r.has(t) || (r.set(t, new
|
|
1859
|
+
r.has(t) || (r.set(t, new Oo(t)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
1858
1860
|
}
|
|
1859
1861
|
}, e.prototype.unobserve = function(t) {
|
|
1860
1862
|
if (!arguments.length)
|
|
@@ -1875,7 +1877,7 @@ var _o = (
|
|
|
1875
1877
|
}, e.prototype.broadcastActive = function() {
|
|
1876
1878
|
if (this.hasActive()) {
|
|
1877
1879
|
var t = this.callbackCtx_, r = this.activeObservations_.map(function(n) {
|
|
1878
|
-
return new
|
|
1880
|
+
return new Po(n.target, n.broadcastRect());
|
|
1879
1881
|
});
|
|
1880
1882
|
this.callback_.call(t, r, t), this.clearActive();
|
|
1881
1883
|
}
|
|
@@ -1893,7 +1895,7 @@ var _o = (
|
|
|
1893
1895
|
throw new TypeError("Cannot call a class as a function.");
|
|
1894
1896
|
if (!arguments.length)
|
|
1895
1897
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
1896
|
-
var r =
|
|
1898
|
+
var r = yo.getInstance(), n = new Mo(t, r, this);
|
|
1897
1899
|
xr.set(this, n);
|
|
1898
1900
|
}
|
|
1899
1901
|
return e;
|
|
@@ -1909,7 +1911,7 @@ var _o = (
|
|
|
1909
1911
|
return (t = xr.get(this))[e].apply(t, arguments);
|
|
1910
1912
|
};
|
|
1911
1913
|
});
|
|
1912
|
-
var
|
|
1914
|
+
var To = function() {
|
|
1913
1915
|
return typeof Ke.ResizeObserver < "u" ? Ke.ResizeObserver : _r;
|
|
1914
1916
|
}(), de = /* @__PURE__ */ new Map();
|
|
1915
1917
|
function Cr(e) {
|
|
@@ -1920,30 +1922,30 @@ function Cr(e) {
|
|
|
1920
1922
|
});
|
|
1921
1923
|
});
|
|
1922
1924
|
}
|
|
1923
|
-
var Or = new
|
|
1925
|
+
var Or = new To(Cr);
|
|
1924
1926
|
process.env.NODE_ENV;
|
|
1925
1927
|
process.env.NODE_ENV;
|
|
1926
|
-
function
|
|
1928
|
+
function Io(e, t) {
|
|
1927
1929
|
de.has(e) || (de.set(e, /* @__PURE__ */ new Set()), Or.observe(e)), de.get(e).add(t);
|
|
1928
1930
|
}
|
|
1929
|
-
function
|
|
1931
|
+
function Lo(e, t) {
|
|
1930
1932
|
de.has(e) && (de.get(e).delete(t), de.get(e).size || (Or.unobserve(e), de.delete(e)));
|
|
1931
1933
|
}
|
|
1932
1934
|
function Pr(e, t) {
|
|
1933
1935
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
1934
1936
|
}
|
|
1935
|
-
function
|
|
1937
|
+
function Ao(e, t) {
|
|
1936
1938
|
for (var r = 0; r < t.length; r++) {
|
|
1937
1939
|
var n = t[r];
|
|
1938
1940
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, mr(n.key), n);
|
|
1939
1941
|
}
|
|
1940
1942
|
}
|
|
1941
1943
|
function Mr(e, t, r) {
|
|
1942
|
-
return t &&
|
|
1944
|
+
return t && Ao(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
1943
1945
|
writable: !1
|
|
1944
1946
|
}), e;
|
|
1945
1947
|
}
|
|
1946
|
-
function
|
|
1948
|
+
function No(e, t) {
|
|
1947
1949
|
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
1948
1950
|
e.prototype = Object.create(t && t.prototype, {
|
|
1949
1951
|
constructor: {
|
|
@@ -1953,7 +1955,7 @@ function Lo(e, t) {
|
|
|
1953
1955
|
}
|
|
1954
1956
|
}), Object.defineProperty(e, "prototype", {
|
|
1955
1957
|
writable: !1
|
|
1956
|
-
}), t &&
|
|
1958
|
+
}), t && un(e, t);
|
|
1957
1959
|
}
|
|
1958
1960
|
function Ze(e) {
|
|
1959
1961
|
return Ze = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
@@ -1970,12 +1972,12 @@ function Tr() {
|
|
|
1970
1972
|
return !!e;
|
|
1971
1973
|
})();
|
|
1972
1974
|
}
|
|
1973
|
-
function
|
|
1975
|
+
function $o(e, t) {
|
|
1974
1976
|
if (t && (oe(t) == "object" || typeof t == "function")) return t;
|
|
1975
1977
|
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1976
|
-
return
|
|
1978
|
+
return fn(e);
|
|
1977
1979
|
}
|
|
1978
|
-
function
|
|
1980
|
+
function zo(e) {
|
|
1979
1981
|
var t = Tr();
|
|
1980
1982
|
return function() {
|
|
1981
1983
|
var r, n = Ze(e);
|
|
@@ -1983,12 +1985,12 @@ function No(e) {
|
|
|
1983
1985
|
var o = Ze(this).constructor;
|
|
1984
1986
|
r = Reflect.construct(n, arguments, o);
|
|
1985
1987
|
} else r = n.apply(this, arguments);
|
|
1986
|
-
return
|
|
1988
|
+
return $o(this, r);
|
|
1987
1989
|
};
|
|
1988
1990
|
}
|
|
1989
|
-
var
|
|
1990
|
-
|
|
1991
|
-
var t =
|
|
1991
|
+
var Do = /* @__PURE__ */ function(e) {
|
|
1992
|
+
No(r, e);
|
|
1993
|
+
var t = zo(r);
|
|
1992
1994
|
function r() {
|
|
1993
1995
|
return Pr(this, r), t.apply(this, arguments);
|
|
1994
1996
|
}
|
|
@@ -1998,84 +2000,84 @@ var $o = /* @__PURE__ */ function(e) {
|
|
|
1998
2000
|
return this.props.children;
|
|
1999
2001
|
}
|
|
2000
2002
|
}]), r;
|
|
2001
|
-
}(
|
|
2002
|
-
function
|
|
2003
|
-
var r = e.children, n = e.disabled, o =
|
|
2003
|
+
}(d.Component);
|
|
2004
|
+
function ko(e, t) {
|
|
2005
|
+
var r = e.children, n = e.disabled, o = d.useRef(null), i = d.useRef(null), a = d.useContext(Et), l = typeof r == "function", u = l ? r(o) : r, f = d.useRef({
|
|
2004
2006
|
width: -1,
|
|
2005
2007
|
height: -1,
|
|
2006
2008
|
offsetWidth: -1,
|
|
2007
2009
|
offsetHeight: -1
|
|
2008
|
-
}), m = !l && /* @__PURE__ */
|
|
2009
|
-
var
|
|
2010
|
+
}), m = !l && /* @__PURE__ */ d.isValidElement(u) && lo(u), v = m ? uo(u) : null, y = co(v, o), g = function() {
|
|
2011
|
+
var x;
|
|
2010
2012
|
return Ue(o.current) || // Support `nativeElement` format
|
|
2011
|
-
(o.current && oe(o.current) === "object" ? Ue((
|
|
2013
|
+
(o.current && oe(o.current) === "object" ? Ue((x = o.current) === null || x === void 0 ? void 0 : x.nativeElement) : null) || Ue(i.current);
|
|
2012
2014
|
};
|
|
2013
|
-
|
|
2015
|
+
d.useImperativeHandle(t, function() {
|
|
2014
2016
|
return g();
|
|
2015
2017
|
});
|
|
2016
|
-
var b =
|
|
2018
|
+
var b = d.useRef(e);
|
|
2017
2019
|
b.current = e;
|
|
2018
|
-
var p =
|
|
2019
|
-
var
|
|
2020
|
-
if (f.current.width !== _ || f.current.height !== M || f.current.offsetWidth !==
|
|
2020
|
+
var p = d.useCallback(function(s) {
|
|
2021
|
+
var x = b.current, S = x.onResize, P = x.data, h = s.getBoundingClientRect(), R = h.width, L = h.height, O = s.offsetWidth, T = s.offsetHeight, _ = Math.floor(R), M = Math.floor(L);
|
|
2022
|
+
if (f.current.width !== _ || f.current.height !== M || f.current.offsetWidth !== O || f.current.offsetHeight !== T) {
|
|
2021
2023
|
var F = {
|
|
2022
2024
|
width: _,
|
|
2023
2025
|
height: M,
|
|
2024
|
-
offsetWidth:
|
|
2026
|
+
offsetWidth: O,
|
|
2025
2027
|
offsetHeight: T
|
|
2026
2028
|
};
|
|
2027
2029
|
f.current = F;
|
|
2028
|
-
var Y =
|
|
2030
|
+
var Y = O === Math.round(R) ? R : O, B = T === Math.round(L) ? L : T, $ = q(q({}, F), {}, {
|
|
2029
2031
|
offsetWidth: Y,
|
|
2030
2032
|
offsetHeight: B
|
|
2031
2033
|
});
|
|
2032
|
-
a == null || a($, s,
|
|
2033
|
-
|
|
2034
|
+
a == null || a($, s, P), S && Promise.resolve().then(function() {
|
|
2035
|
+
S($, s);
|
|
2034
2036
|
});
|
|
2035
2037
|
}
|
|
2036
2038
|
}, []);
|
|
2037
|
-
return
|
|
2039
|
+
return d.useEffect(function() {
|
|
2038
2040
|
var s = g();
|
|
2039
|
-
return s && !n &&
|
|
2040
|
-
return
|
|
2041
|
+
return s && !n && Io(s, p), function() {
|
|
2042
|
+
return Lo(s, p);
|
|
2041
2043
|
};
|
|
2042
|
-
}, [o.current, n]), /* @__PURE__ */
|
|
2044
|
+
}, [o.current, n]), /* @__PURE__ */ d.createElement(Do, {
|
|
2043
2045
|
ref: i
|
|
2044
|
-
}, m ? /* @__PURE__ */
|
|
2046
|
+
}, m ? /* @__PURE__ */ d.cloneElement(u, {
|
|
2045
2047
|
ref: y
|
|
2046
|
-
}) :
|
|
2048
|
+
}) : u);
|
|
2047
2049
|
}
|
|
2048
|
-
var Ir = /* @__PURE__ */
|
|
2050
|
+
var Ir = /* @__PURE__ */ d.forwardRef(ko);
|
|
2049
2051
|
process.env.NODE_ENV !== "production" && (Ir.displayName = "SingleObserver");
|
|
2050
|
-
var
|
|
2051
|
-
function
|
|
2052
|
+
var jo = "rc-observer-key";
|
|
2053
|
+
function Fo(e, t) {
|
|
2052
2054
|
var r = e.children, n = typeof r == "function" ? [r] : bt(r);
|
|
2053
2055
|
return process.env.NODE_ENV !== "production" && (n.length > 1 ? St(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : n.length === 0 && St(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), n.map(function(o, i) {
|
|
2054
|
-
var a = (o == null ? void 0 : o.key) || "".concat(
|
|
2055
|
-
return /* @__PURE__ */
|
|
2056
|
+
var a = (o == null ? void 0 : o.key) || "".concat(jo, "-").concat(i);
|
|
2057
|
+
return /* @__PURE__ */ d.createElement(Ir, Ct({}, e, {
|
|
2056
2058
|
key: a,
|
|
2057
2059
|
ref: i === 0 ? t : void 0
|
|
2058
2060
|
}), o);
|
|
2059
2061
|
});
|
|
2060
2062
|
}
|
|
2061
|
-
var it = /* @__PURE__ */
|
|
2063
|
+
var it = /* @__PURE__ */ d.forwardRef(Fo);
|
|
2062
2064
|
process.env.NODE_ENV !== "production" && (it.displayName = "ResizeObserver");
|
|
2063
|
-
it.Collection =
|
|
2065
|
+
it.Collection = fo;
|
|
2064
2066
|
function nr(e) {
|
|
2065
|
-
var t =
|
|
2067
|
+
var t = d.useRef();
|
|
2066
2068
|
t.current = e;
|
|
2067
|
-
var r =
|
|
2069
|
+
var r = d.useCallback(function() {
|
|
2068
2070
|
for (var n, o = arguments.length, i = new Array(o), a = 0; a < o; a++)
|
|
2069
2071
|
i[a] = arguments[a];
|
|
2070
2072
|
return (n = t.current) === null || n === void 0 ? void 0 : n.call.apply(n, [t].concat(i));
|
|
2071
2073
|
}, []);
|
|
2072
2074
|
return r;
|
|
2073
2075
|
}
|
|
2074
|
-
function
|
|
2076
|
+
function Ho() {
|
|
2075
2077
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2076
2078
|
}
|
|
2077
|
-
var or = process.env.NODE_ENV !== "test" &&
|
|
2078
|
-
var n =
|
|
2079
|
+
var or = process.env.NODE_ENV !== "test" && Ho() ? d.useLayoutEffect : d.useEffect, Ne = function(t, r) {
|
|
2080
|
+
var n = d.useRef(!0);
|
|
2079
2081
|
or(function() {
|
|
2080
2082
|
return t(n.current);
|
|
2081
2083
|
}, r), or(function() {
|
|
@@ -2083,49 +2085,49 @@ var or = process.env.NODE_ENV !== "test" && jo() ? v.useLayoutEffect : v.useEffe
|
|
|
2083
2085
|
n.current = !0;
|
|
2084
2086
|
};
|
|
2085
2087
|
}, []);
|
|
2086
|
-
}, Lr = /* @__PURE__ */
|
|
2087
|
-
var r = e.height, n = e.offsetY, o = e.offsetX, i = e.children, a = e.prefixCls, l = e.onInnerResize,
|
|
2088
|
+
}, Lr = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
2089
|
+
var r = e.height, n = e.offsetY, o = e.offsetX, i = e.children, a = e.prefixCls, l = e.onInnerResize, u = e.innerProps, f = e.rtl, m = e.extra, v = {}, y = {
|
|
2088
2090
|
display: "flex",
|
|
2089
2091
|
flexDirection: "column"
|
|
2090
2092
|
};
|
|
2091
|
-
return n !== void 0 && (
|
|
2093
|
+
return n !== void 0 && (v = {
|
|
2092
2094
|
height: r,
|
|
2093
2095
|
position: "relative",
|
|
2094
2096
|
overflow: "hidden"
|
|
2095
2097
|
}, y = q(q({}, y), {}, ee(ee(ee(ee(ee({
|
|
2096
2098
|
transform: "translateY(".concat(n, "px)")
|
|
2097
|
-
}, f ? "marginRight" : "marginLeft", -o), "position", "absolute"), "left", 0), "right", 0), "top", 0))), /* @__PURE__ */
|
|
2098
|
-
style:
|
|
2099
|
-
}, /* @__PURE__ */
|
|
2099
|
+
}, f ? "marginRight" : "marginLeft", -o), "position", "absolute"), "left", 0), "right", 0), "top", 0))), /* @__PURE__ */ d.createElement("div", {
|
|
2100
|
+
style: v
|
|
2101
|
+
}, /* @__PURE__ */ d.createElement(it, {
|
|
2100
2102
|
onResize: function(b) {
|
|
2101
2103
|
var p = b.offsetHeight;
|
|
2102
2104
|
p && l && l();
|
|
2103
2105
|
}
|
|
2104
|
-
}, /* @__PURE__ */
|
|
2106
|
+
}, /* @__PURE__ */ d.createElement("div", Ct({
|
|
2105
2107
|
style: y,
|
|
2106
2108
|
className: Xe(ee({}, "".concat(a, "-holder-inner"), a)),
|
|
2107
2109
|
ref: t
|
|
2108
|
-
},
|
|
2110
|
+
}, u), i, m)));
|
|
2109
2111
|
});
|
|
2110
2112
|
Lr.displayName = "Filler";
|
|
2111
|
-
function
|
|
2112
|
-
var t = e.children, r = e.setRef, n =
|
|
2113
|
+
function Vo(e) {
|
|
2114
|
+
var t = e.children, r = e.setRef, n = d.useCallback(function(o) {
|
|
2113
2115
|
r(o);
|
|
2114
2116
|
}, []);
|
|
2115
|
-
return /* @__PURE__ */
|
|
2117
|
+
return /* @__PURE__ */ d.cloneElement(t, {
|
|
2116
2118
|
ref: n
|
|
2117
2119
|
});
|
|
2118
2120
|
}
|
|
2119
|
-
function
|
|
2120
|
-
var
|
|
2121
|
+
function Bo(e, t, r, n, o, i, a, l) {
|
|
2122
|
+
var u = l.getKey;
|
|
2121
2123
|
return e.slice(t, r + 1).map(function(f, m) {
|
|
2122
|
-
var
|
|
2124
|
+
var v = t + m, y = a(f, v, {
|
|
2123
2125
|
style: {
|
|
2124
2126
|
width: n
|
|
2125
2127
|
},
|
|
2126
2128
|
offsetX: o
|
|
2127
|
-
}), g =
|
|
2128
|
-
return /* @__PURE__ */
|
|
2129
|
+
}), g = u(f);
|
|
2130
|
+
return /* @__PURE__ */ d.createElement(Vo, {
|
|
2129
2131
|
key: g,
|
|
2130
2132
|
setRef: function(p) {
|
|
2131
2133
|
return i(f, p);
|
|
@@ -2133,7 +2135,7 @@ function Ho(e, t, r, n, o, i, a, l) {
|
|
|
2133
2135
|
}, y);
|
|
2134
2136
|
});
|
|
2135
2137
|
}
|
|
2136
|
-
function
|
|
2138
|
+
function Wo(e, t, r) {
|
|
2137
2139
|
var n = e.length, o = t.length, i, a;
|
|
2138
2140
|
if (n === 0 && o === 0)
|
|
2139
2141
|
return null;
|
|
@@ -2141,13 +2143,13 @@ function Vo(e, t, r) {
|
|
|
2141
2143
|
var l = {
|
|
2142
2144
|
__EMPTY_ITEM__: !0
|
|
2143
2145
|
};
|
|
2144
|
-
function
|
|
2146
|
+
function u(b) {
|
|
2145
2147
|
return b !== void 0 ? r(b) : l;
|
|
2146
2148
|
}
|
|
2147
|
-
for (var f = null, m = Math.abs(n - o) !== 1,
|
|
2148
|
-
var y =
|
|
2149
|
+
for (var f = null, m = Math.abs(n - o) !== 1, v = 0; v < a.length; v += 1) {
|
|
2150
|
+
var y = u(i[v]), g = u(a[v]);
|
|
2149
2151
|
if (y !== g) {
|
|
2150
|
-
f =
|
|
2152
|
+
f = v, m = m || y !== u(a[v + 1]);
|
|
2151
2153
|
break;
|
|
2152
2154
|
}
|
|
2153
2155
|
}
|
|
@@ -2156,11 +2158,11 @@ function Vo(e, t, r) {
|
|
|
2156
2158
|
multiple: m
|
|
2157
2159
|
};
|
|
2158
2160
|
}
|
|
2159
|
-
function
|
|
2160
|
-
var n =
|
|
2161
|
-
return
|
|
2162
|
-
var
|
|
2163
|
-
(
|
|
2161
|
+
function Yo(e, t, r) {
|
|
2162
|
+
var n = d.useState(e), o = K(n, 2), i = o[0], a = o[1], l = d.useState(null), u = K(l, 2), f = u[0], m = u[1];
|
|
2163
|
+
return d.useEffect(function() {
|
|
2164
|
+
var v = Wo(i || [], e || [], t);
|
|
2165
|
+
(v == null ? void 0 : v.index) !== void 0 && m(e[v.index]), a(e);
|
|
2164
2166
|
}, [e]), [f];
|
|
2165
2167
|
}
|
|
2166
2168
|
var Ar = function(t) {
|
|
@@ -2214,62 +2216,62 @@ const zr = function(e, t, r, n) {
|
|
|
2214
2216
|
left: r,
|
|
2215
2217
|
right: n
|
|
2216
2218
|
});
|
|
2217
|
-
return l.current.top = e, l.current.bottom = t, l.current.left = r, l.current.right = n, function(
|
|
2218
|
-
var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1,
|
|
2219
|
+
return l.current.top = e, l.current.bottom = t, l.current.left = r, l.current.right = n, function(u, f) {
|
|
2220
|
+
var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, v = u ? (
|
|
2219
2221
|
// Pass origin wheel when on the left
|
|
2220
2222
|
f < 0 && l.current.left || // Pass origin wheel when on the right
|
|
2221
2223
|
f > 0 && l.current.right
|
|
2222
2224
|
) : f < 0 && l.current.top || // Pass origin wheel when on the bottom
|
|
2223
2225
|
f > 0 && l.current.bottom;
|
|
2224
|
-
return m &&
|
|
2226
|
+
return m && v ? (clearTimeout(i.current), o.current = !1) : (!v || o.current) && a(), !o.current && v;
|
|
2225
2227
|
};
|
|
2226
2228
|
};
|
|
2227
|
-
function
|
|
2228
|
-
var l = D(0),
|
|
2229
|
-
function y(
|
|
2230
|
-
if (ne.cancel(
|
|
2231
|
-
var
|
|
2232
|
-
if (!
|
|
2233
|
-
|
|
2229
|
+
function Go(e, t, r, n, o, i, a) {
|
|
2230
|
+
var l = D(0), u = D(null), f = D(null), m = D(!1), v = zr(t, r, n, o);
|
|
2231
|
+
function y(S, P) {
|
|
2232
|
+
if (ne.cancel(u.current), !v(!1, P)) {
|
|
2233
|
+
var h = S;
|
|
2234
|
+
if (!h._virtualHandled)
|
|
2235
|
+
h._virtualHandled = !0;
|
|
2234
2236
|
else
|
|
2235
2237
|
return;
|
|
2236
|
-
l.current +=
|
|
2237
|
-
var
|
|
2238
|
-
a(l.current *
|
|
2238
|
+
l.current += P, f.current = P, ar || h.preventDefault(), u.current = ne(function() {
|
|
2239
|
+
var R = m.current ? 10 : 1;
|
|
2240
|
+
a(l.current * R, !1), l.current = 0;
|
|
2239
2241
|
});
|
|
2240
2242
|
}
|
|
2241
2243
|
}
|
|
2242
|
-
function g(
|
|
2243
|
-
a(
|
|
2244
|
+
function g(S, P) {
|
|
2245
|
+
a(P, !0), ar || S.preventDefault();
|
|
2244
2246
|
}
|
|
2245
2247
|
var b = D(null), p = D(null);
|
|
2246
|
-
function s(
|
|
2248
|
+
function s(S) {
|
|
2247
2249
|
if (e) {
|
|
2248
2250
|
ne.cancel(p.current), p.current = ne(function() {
|
|
2249
2251
|
b.current = null;
|
|
2250
2252
|
}, 2);
|
|
2251
|
-
var
|
|
2252
|
-
(b.current === "sx" || !b.current &&
|
|
2253
|
-
var T = Math.abs(L), _ = Math.abs(
|
|
2254
|
-
b.current === null && (b.current = i && T > _ ? "x" : "y"), b.current === "y" ? y(
|
|
2253
|
+
var P = S.deltaX, h = S.deltaY, R = S.shiftKey, L = P, O = h;
|
|
2254
|
+
(b.current === "sx" || !b.current && R && h && !P) && (L = h, O = 0, b.current = "sx");
|
|
2255
|
+
var T = Math.abs(L), _ = Math.abs(O);
|
|
2256
|
+
b.current === null && (b.current = i && T > _ ? "x" : "y"), b.current === "y" ? y(S, O) : g(S, L);
|
|
2255
2257
|
}
|
|
2256
2258
|
}
|
|
2257
|
-
function
|
|
2258
|
-
e && (m.current =
|
|
2259
|
+
function x(S) {
|
|
2260
|
+
e && (m.current = S.detail === f.current);
|
|
2259
2261
|
}
|
|
2260
|
-
return [s,
|
|
2262
|
+
return [s, x];
|
|
2261
2263
|
}
|
|
2262
|
-
function
|
|
2263
|
-
var o =
|
|
2264
|
+
function Uo(e, t, r, n) {
|
|
2265
|
+
var o = d.useMemo(function() {
|
|
2264
2266
|
return [/* @__PURE__ */ new Map(), []];
|
|
2265
|
-
}, [e, r.id, n]), i = K(o, 2), a = i[0], l = i[1],
|
|
2266
|
-
var
|
|
2267
|
+
}, [e, r.id, n]), i = K(o, 2), a = i[0], l = i[1], u = function(m) {
|
|
2268
|
+
var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m, y = a.get(m), g = a.get(v);
|
|
2267
2269
|
if (y === void 0 || g === void 0)
|
|
2268
2270
|
for (var b = e.length, p = l.length; p < b; p += 1) {
|
|
2269
|
-
var s,
|
|
2270
|
-
a.set(
|
|
2271
|
-
var
|
|
2272
|
-
if (l[p] = (l[p - 1] || 0) +
|
|
2271
|
+
var s, x = e[p], S = t(x);
|
|
2272
|
+
a.set(S, p);
|
|
2273
|
+
var P = (s = r.get(S)) !== null && s !== void 0 ? s : n;
|
|
2274
|
+
if (l[p] = (l[p - 1] || 0) + P, S === m && (y = p), S === v && (g = p), y !== void 0 && g !== void 0)
|
|
2273
2275
|
break;
|
|
2274
2276
|
}
|
|
2275
2277
|
return {
|
|
@@ -2277,9 +2279,9 @@ function Yo(e, t, r, n) {
|
|
|
2277
2279
|
bottom: l[g]
|
|
2278
2280
|
};
|
|
2279
2281
|
};
|
|
2280
|
-
return
|
|
2282
|
+
return u;
|
|
2281
2283
|
}
|
|
2282
|
-
var
|
|
2284
|
+
var Xo = /* @__PURE__ */ function() {
|
|
2283
2285
|
function e() {
|
|
2284
2286
|
Pr(this, e), ee(this, "maps", void 0), ee(this, "id", 0), this.maps = /* @__PURE__ */ Object.create(null);
|
|
2285
2287
|
}
|
|
@@ -2299,19 +2301,19 @@ function sr(e) {
|
|
|
2299
2301
|
var t = parseFloat(e);
|
|
2300
2302
|
return isNaN(t) ? 0 : t;
|
|
2301
2303
|
}
|
|
2302
|
-
function
|
|
2303
|
-
var n =
|
|
2304
|
+
function Ko(e, t, r) {
|
|
2305
|
+
var n = d.useState(0), o = K(n, 2), i = o[0], a = o[1], l = D(/* @__PURE__ */ new Map()), u = D(new Xo()), f = D();
|
|
2304
2306
|
function m() {
|
|
2305
2307
|
ne.cancel(f.current);
|
|
2306
2308
|
}
|
|
2307
|
-
function
|
|
2309
|
+
function v() {
|
|
2308
2310
|
var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
2309
2311
|
m();
|
|
2310
2312
|
var b = function() {
|
|
2311
|
-
l.current.forEach(function(s,
|
|
2313
|
+
l.current.forEach(function(s, x) {
|
|
2312
2314
|
if (s && s.offsetParent) {
|
|
2313
|
-
var
|
|
2314
|
-
|
|
2315
|
+
var S = Ue(s), P = S.offsetHeight, h = getComputedStyle(S), R = h.marginTop, L = h.marginBottom, O = sr(R), T = sr(L), _ = P + O + T;
|
|
2316
|
+
u.current.get(x) !== _ && u.current.set(x, _);
|
|
2315
2317
|
}
|
|
2316
2318
|
}), a(function(s) {
|
|
2317
2319
|
return s + 1;
|
|
@@ -2321,42 +2323,42 @@ function Uo(e, t, r) {
|
|
|
2321
2323
|
}
|
|
2322
2324
|
function y(g, b) {
|
|
2323
2325
|
var p = e(g);
|
|
2324
|
-
l.current.get(p), b ? (l.current.set(p, b),
|
|
2326
|
+
l.current.get(p), b ? (l.current.set(p, b), v()) : l.current.delete(p);
|
|
2325
2327
|
}
|
|
2326
2328
|
return en(function() {
|
|
2327
2329
|
return m;
|
|
2328
|
-
}, []), [y,
|
|
2330
|
+
}, []), [y, v, u.current, i];
|
|
2329
2331
|
}
|
|
2330
2332
|
var cr = 14 / 15;
|
|
2331
|
-
function
|
|
2332
|
-
var n = D(!1), o = D(0), i = D(0), a = D(null), l = D(null),
|
|
2333
|
+
function qo(e, t, r) {
|
|
2334
|
+
var n = D(!1), o = D(0), i = D(0), a = D(null), l = D(null), u, f = function(g) {
|
|
2333
2335
|
if (n.current) {
|
|
2334
|
-
var b = Math.ceil(g.touches[0].pageX), p = Math.ceil(g.touches[0].pageY), s = o.current - b,
|
|
2335
|
-
|
|
2336
|
-
var
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
var
|
|
2340
|
-
(!r(
|
|
2336
|
+
var b = Math.ceil(g.touches[0].pageX), p = Math.ceil(g.touches[0].pageY), s = o.current - b, x = i.current - p, S = Math.abs(s) > Math.abs(x);
|
|
2337
|
+
S ? o.current = b : i.current = p;
|
|
2338
|
+
var P = r(S, S ? s : x, !1, g);
|
|
2339
|
+
P && g.preventDefault(), clearInterval(l.current), P && (l.current = setInterval(function() {
|
|
2340
|
+
S ? s *= cr : x *= cr;
|
|
2341
|
+
var h = Math.floor(S ? s : x);
|
|
2342
|
+
(!r(S, h, !0) || Math.abs(h) <= 0.1) && clearInterval(l.current);
|
|
2341
2343
|
}, 16));
|
|
2342
2344
|
}
|
|
2343
2345
|
}, m = function() {
|
|
2344
|
-
n.current = !1,
|
|
2345
|
-
},
|
|
2346
|
-
|
|
2346
|
+
n.current = !1, u();
|
|
2347
|
+
}, v = function(g) {
|
|
2348
|
+
u(), g.touches.length === 1 && !n.current && (n.current = !0, o.current = Math.ceil(g.touches[0].pageX), i.current = Math.ceil(g.touches[0].pageY), a.current = g.target, a.current.addEventListener("touchmove", f, {
|
|
2347
2349
|
passive: !1
|
|
2348
2350
|
}), a.current.addEventListener("touchend", m, {
|
|
2349
2351
|
passive: !0
|
|
2350
2352
|
}));
|
|
2351
2353
|
};
|
|
2352
|
-
|
|
2354
|
+
u = function() {
|
|
2353
2355
|
a.current && (a.current.removeEventListener("touchmove", f), a.current.removeEventListener("touchend", m));
|
|
2354
2356
|
}, Ne(function() {
|
|
2355
|
-
return e && t.current.addEventListener("touchstart",
|
|
2357
|
+
return e && t.current.addEventListener("touchstart", v, {
|
|
2356
2358
|
passive: !0
|
|
2357
2359
|
}), function() {
|
|
2358
2360
|
var y;
|
|
2359
|
-
(y = t.current) === null || y === void 0 || y.removeEventListener("touchstart",
|
|
2361
|
+
(y = t.current) === null || y === void 0 || y.removeEventListener("touchstart", v), u(), clearInterval(l.current);
|
|
2360
2362
|
};
|
|
2361
2363
|
}, [e]);
|
|
2362
2364
|
}
|
|
@@ -2367,13 +2369,13 @@ function xt(e, t) {
|
|
|
2367
2369
|
var r = "touches" in e ? e.touches[0] : e;
|
|
2368
2370
|
return r[t ? "pageX" : "pageY"] - window[t ? "scrollX" : "scrollY"];
|
|
2369
2371
|
}
|
|
2370
|
-
function
|
|
2371
|
-
|
|
2372
|
+
function Zo(e, t, r) {
|
|
2373
|
+
d.useEffect(function() {
|
|
2372
2374
|
var n = t.current;
|
|
2373
2375
|
if (e && n) {
|
|
2374
2376
|
var o = !1, i, a, l = function() {
|
|
2375
2377
|
ne.cancel(i);
|
|
2376
|
-
},
|
|
2378
|
+
}, u = function y() {
|
|
2377
2379
|
l(), i = ne(function() {
|
|
2378
2380
|
r(a), y();
|
|
2379
2381
|
});
|
|
@@ -2382,30 +2384,30 @@ function Ko(e, t, r) {
|
|
|
2382
2384
|
b._virtualHandled || (b._virtualHandled = !0, o = !0);
|
|
2383
2385
|
}, m = function() {
|
|
2384
2386
|
o = !1, l();
|
|
2385
|
-
},
|
|
2387
|
+
}, v = function(g) {
|
|
2386
2388
|
if (o) {
|
|
2387
|
-
var b = xt(g, !1), p = n.getBoundingClientRect(), s = p.top,
|
|
2389
|
+
var b = xt(g, !1), p = n.getBoundingClientRect(), s = p.top, x = p.bottom;
|
|
2388
2390
|
if (b <= s) {
|
|
2389
|
-
var
|
|
2390
|
-
a = -lr(
|
|
2391
|
-
} else if (b >=
|
|
2392
|
-
var
|
|
2393
|
-
a = lr(
|
|
2391
|
+
var S = s - b;
|
|
2392
|
+
a = -lr(S), u();
|
|
2393
|
+
} else if (b >= x) {
|
|
2394
|
+
var P = b - x;
|
|
2395
|
+
a = lr(P), u();
|
|
2394
2396
|
} else
|
|
2395
2397
|
l();
|
|
2396
2398
|
}
|
|
2397
2399
|
};
|
|
2398
|
-
return n.addEventListener("mousedown", f), n.ownerDocument.addEventListener("mouseup", m), n.ownerDocument.addEventListener("mousemove",
|
|
2399
|
-
n.removeEventListener("mousedown", f), n.ownerDocument.removeEventListener("mouseup", m), n.ownerDocument.removeEventListener("mousemove",
|
|
2400
|
+
return n.addEventListener("mousedown", f), n.ownerDocument.addEventListener("mouseup", m), n.ownerDocument.addEventListener("mousemove", v), function() {
|
|
2401
|
+
n.removeEventListener("mousedown", f), n.ownerDocument.removeEventListener("mouseup", m), n.ownerDocument.removeEventListener("mousemove", v), l();
|
|
2400
2402
|
};
|
|
2401
2403
|
}
|
|
2402
2404
|
}, [e]);
|
|
2403
2405
|
}
|
|
2404
2406
|
var ur = 10;
|
|
2405
|
-
function
|
|
2406
|
-
var
|
|
2407
|
+
function Jo(e, t, r, n, o, i, a, l) {
|
|
2408
|
+
var u = d.useRef(), f = d.useState(null), m = K(f, 2), v = m[0], y = m[1];
|
|
2407
2409
|
return Ne(function() {
|
|
2408
|
-
if (
|
|
2410
|
+
if (v && v.times < ur) {
|
|
2409
2411
|
if (!e.current) {
|
|
2410
2412
|
y(function(W) {
|
|
2411
2413
|
return q({}, W);
|
|
@@ -2413,95 +2415,95 @@ function qo(e, t, r, n, o, i, a, l) {
|
|
|
2413
2415
|
return;
|
|
2414
2416
|
}
|
|
2415
2417
|
i();
|
|
2416
|
-
var g =
|
|
2417
|
-
if (
|
|
2418
|
-
for (var
|
|
2418
|
+
var g = v.targetAlign, b = v.originAlign, p = v.index, s = v.offset, x = e.current.clientHeight, S = !1, P = g, h = null;
|
|
2419
|
+
if (x) {
|
|
2420
|
+
for (var R = g || b, L = 0, O = 0, T = 0, _ = Math.min(t.length - 1, p), M = 0; M <= _; M += 1) {
|
|
2419
2421
|
var F = o(t[M]);
|
|
2420
|
-
|
|
2422
|
+
O = L;
|
|
2421
2423
|
var Y = r.get(F);
|
|
2422
|
-
T =
|
|
2424
|
+
T = O + (Y === void 0 ? n : Y), L = T;
|
|
2423
2425
|
}
|
|
2424
|
-
for (var B =
|
|
2426
|
+
for (var B = R === "top" ? s : x - s, $ = _; $ >= 0; $ -= 1) {
|
|
2425
2427
|
var G = o(t[$]), k = r.get(G);
|
|
2426
2428
|
if (k === void 0) {
|
|
2427
|
-
|
|
2429
|
+
S = !0;
|
|
2428
2430
|
break;
|
|
2429
2431
|
}
|
|
2430
2432
|
if (B -= k, B <= 0)
|
|
2431
2433
|
break;
|
|
2432
2434
|
}
|
|
2433
|
-
switch (
|
|
2435
|
+
switch (R) {
|
|
2434
2436
|
case "top":
|
|
2435
|
-
|
|
2437
|
+
h = O - s;
|
|
2436
2438
|
break;
|
|
2437
2439
|
case "bottom":
|
|
2438
|
-
|
|
2440
|
+
h = T - x + s;
|
|
2439
2441
|
break;
|
|
2440
2442
|
default: {
|
|
2441
|
-
var ae = e.current.scrollTop, Z = ae +
|
|
2442
|
-
|
|
2443
|
+
var ae = e.current.scrollTop, Z = ae + x;
|
|
2444
|
+
O < ae ? P = "top" : T > Z && (P = "bottom");
|
|
2443
2445
|
}
|
|
2444
2446
|
}
|
|
2445
|
-
|
|
2447
|
+
h !== null && a(h), h !== v.lastTop && (S = !0);
|
|
2446
2448
|
}
|
|
2447
|
-
|
|
2448
|
-
times:
|
|
2449
|
-
targetAlign:
|
|
2450
|
-
lastTop:
|
|
2449
|
+
S && y(q(q({}, v), {}, {
|
|
2450
|
+
times: v.times + 1,
|
|
2451
|
+
targetAlign: P,
|
|
2452
|
+
lastTop: h
|
|
2451
2453
|
}));
|
|
2452
|
-
} else process.env.NODE_ENV !== "production" && (
|
|
2453
|
-
}, [
|
|
2454
|
+
} else process.env.NODE_ENV !== "production" && (v == null ? void 0 : v.times) === ur && nt(!1, "Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.");
|
|
2455
|
+
}, [v, e.current]), function(g) {
|
|
2454
2456
|
if (g == null) {
|
|
2455
2457
|
l();
|
|
2456
2458
|
return;
|
|
2457
2459
|
}
|
|
2458
|
-
if (ne.cancel(
|
|
2460
|
+
if (ne.cancel(u.current), typeof g == "number")
|
|
2459
2461
|
a(g);
|
|
2460
2462
|
else if (g && oe(g) === "object") {
|
|
2461
2463
|
var b, p = g.align;
|
|
2462
|
-
"index" in g ? b = g.index : b = t.findIndex(function(
|
|
2463
|
-
return o(
|
|
2464
|
+
"index" in g ? b = g.index : b = t.findIndex(function(S) {
|
|
2465
|
+
return o(S) === g.key;
|
|
2464
2466
|
});
|
|
2465
|
-
var s = g.offset,
|
|
2467
|
+
var s = g.offset, x = s === void 0 ? 0 : s;
|
|
2466
2468
|
y({
|
|
2467
2469
|
times: 0,
|
|
2468
2470
|
index: b,
|
|
2469
|
-
offset:
|
|
2471
|
+
offset: x,
|
|
2470
2472
|
originAlign: p
|
|
2471
2473
|
});
|
|
2472
2474
|
}
|
|
2473
2475
|
};
|
|
2474
2476
|
}
|
|
2475
|
-
var _t = /* @__PURE__ */
|
|
2476
|
-
var r = e.prefixCls, n = e.rtl, o = e.scrollOffset, i = e.scrollRange, a = e.onStartMove, l = e.onStopMove,
|
|
2477
|
+
var _t = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
2478
|
+
var r = e.prefixCls, n = e.rtl, o = e.scrollOffset, i = e.scrollRange, a = e.onStartMove, l = e.onStopMove, u = e.onScroll, f = e.horizontal, m = e.spinSize, v = e.containerSize, y = e.style, g = e.thumbStyle, b = d.useState(!1), p = K(b, 2), s = p[0], x = p[1], S = d.useState(null), P = K(S, 2), h = P[0], R = P[1], L = d.useState(null), O = K(L, 2), T = O[0], _ = O[1], M = !n, F = d.useRef(), Y = d.useRef(), B = d.useState(!1), $ = K(B, 2), G = $[0], k = $[1], ae = d.useRef(), Z = function() {
|
|
2477
2479
|
clearTimeout(ae.current), k(!0), ae.current = setTimeout(function() {
|
|
2478
2480
|
k(!1);
|
|
2479
2481
|
}, 3e3);
|
|
2480
|
-
}, W = i -
|
|
2482
|
+
}, W = i - v || 0, me = v - m || 0, H = d.useMemo(function() {
|
|
2481
2483
|
if (o === 0 || W === 0)
|
|
2482
2484
|
return 0;
|
|
2483
2485
|
var X = o / W;
|
|
2484
2486
|
return X * me;
|
|
2485
2487
|
}, [o, W, me]), se = function(z) {
|
|
2486
2488
|
z.stopPropagation(), z.preventDefault();
|
|
2487
|
-
}, ve =
|
|
2489
|
+
}, ve = d.useRef({
|
|
2488
2490
|
top: H,
|
|
2489
2491
|
dragging: s,
|
|
2490
|
-
pageY:
|
|
2492
|
+
pageY: h,
|
|
2491
2493
|
startTop: T
|
|
2492
2494
|
});
|
|
2493
2495
|
ve.current = {
|
|
2494
2496
|
top: H,
|
|
2495
2497
|
dragging: s,
|
|
2496
|
-
pageY:
|
|
2498
|
+
pageY: h,
|
|
2497
2499
|
startTop: T
|
|
2498
2500
|
};
|
|
2499
2501
|
var pe = function(z) {
|
|
2500
|
-
|
|
2502
|
+
x(!0), R(xt(z, f)), _(ve.current.top), a(), z.stopPropagation(), z.preventDefault();
|
|
2501
2503
|
};
|
|
2502
|
-
|
|
2503
|
-
var X = function(
|
|
2504
|
-
|
|
2504
|
+
d.useEffect(function() {
|
|
2505
|
+
var X = function(E) {
|
|
2506
|
+
E.preventDefault();
|
|
2505
2507
|
}, z = F.current, re = Y.current;
|
|
2506
2508
|
return z.addEventListener("touchstart", X, {
|
|
2507
2509
|
passive: !1
|
|
@@ -2511,25 +2513,25 @@ var _t = /* @__PURE__ */ v.forwardRef(function(e, t) {
|
|
|
2511
2513
|
z.removeEventListener("touchstart", X), re.removeEventListener("touchstart", pe);
|
|
2512
2514
|
};
|
|
2513
2515
|
}, []);
|
|
2514
|
-
var Se =
|
|
2516
|
+
var Se = d.useRef();
|
|
2515
2517
|
Se.current = W;
|
|
2516
|
-
var ge =
|
|
2517
|
-
ge.current = me,
|
|
2518
|
+
var ge = d.useRef();
|
|
2519
|
+
ge.current = me, d.useEffect(function() {
|
|
2518
2520
|
if (s) {
|
|
2519
|
-
var X, z = function(
|
|
2521
|
+
var X, z = function(E) {
|
|
2520
2522
|
var le = ve.current, ue = le.dragging, be = le.pageY, De = le.startTop;
|
|
2521
2523
|
ne.cancel(X);
|
|
2522
|
-
var ke = F.current.getBoundingClientRect(), ye =
|
|
2524
|
+
var ke = F.current.getBoundingClientRect(), ye = v / (f ? ke.width : ke.height);
|
|
2523
2525
|
if (ue) {
|
|
2524
|
-
var Oe = (xt(
|
|
2526
|
+
var Oe = (xt(E, f) - be) * ye, Pe = De;
|
|
2525
2527
|
!M && f ? Pe -= Oe : Pe += Oe;
|
|
2526
2528
|
var je = Se.current, Fe = ge.current, st = Fe ? Pe / Fe : 0, ce = Math.ceil(st * je);
|
|
2527
2529
|
ce = Math.max(ce, 0), ce = Math.min(ce, je), X = ne(function() {
|
|
2528
|
-
|
|
2530
|
+
u(ce, f);
|
|
2529
2531
|
});
|
|
2530
2532
|
}
|
|
2531
2533
|
}, re = function() {
|
|
2532
|
-
|
|
2534
|
+
x(!1), l();
|
|
2533
2535
|
};
|
|
2534
2536
|
return window.addEventListener("mousemove", z, {
|
|
2535
2537
|
passive: !0
|
|
@@ -2543,11 +2545,11 @@ var _t = /* @__PURE__ */ v.forwardRef(function(e, t) {
|
|
|
2543
2545
|
window.removeEventListener("mousemove", z), window.removeEventListener("touchmove", z), window.removeEventListener("mouseup", re), window.removeEventListener("touchend", re), ne.cancel(X);
|
|
2544
2546
|
};
|
|
2545
2547
|
}
|
|
2546
|
-
}, [s]),
|
|
2548
|
+
}, [s]), d.useEffect(function() {
|
|
2547
2549
|
return Z(), function() {
|
|
2548
2550
|
clearTimeout(ae.current);
|
|
2549
2551
|
};
|
|
2550
|
-
}, [o]),
|
|
2552
|
+
}, [o]), d.useImperativeHandle(t, function() {
|
|
2551
2553
|
return {
|
|
2552
2554
|
delayHidden: Z
|
|
2553
2555
|
};
|
|
@@ -2562,13 +2564,13 @@ var _t = /* @__PURE__ */ v.forwardRef(function(e, t) {
|
|
|
2562
2564
|
cursor: "pointer",
|
|
2563
2565
|
userSelect: "none"
|
|
2564
2566
|
};
|
|
2565
|
-
return f ? (te.height = 8, te.left = 0, te.right = 0, te.bottom = 0, ie.height = "100%", ie.width = m, M ? ie.left = H : ie.right = H) : (te.width = 8, te.top = 0, te.bottom = 0, M ? te.right = 0 : te.left = 0, ie.width = "100%", ie.height = m, ie.top = H), /* @__PURE__ */
|
|
2567
|
+
return f ? (te.height = 8, te.left = 0, te.right = 0, te.bottom = 0, ie.height = "100%", ie.width = m, M ? ie.left = H : ie.right = H) : (te.width = 8, te.top = 0, te.bottom = 0, M ? te.right = 0 : te.left = 0, ie.width = "100%", ie.height = m, ie.top = H), /* @__PURE__ */ d.createElement("div", {
|
|
2566
2568
|
ref: F,
|
|
2567
2569
|
className: Xe(U, ee(ee(ee({}, "".concat(U, "-horizontal"), f), "".concat(U, "-vertical"), !f), "".concat(U, "-visible"), G)),
|
|
2568
2570
|
style: q(q({}, te), y),
|
|
2569
2571
|
onMouseDown: se,
|
|
2570
2572
|
onMouseMove: Z
|
|
2571
|
-
}, /* @__PURE__ */
|
|
2573
|
+
}, /* @__PURE__ */ d.createElement("div", {
|
|
2572
2574
|
ref: Y,
|
|
2573
2575
|
className: Xe("".concat(U, "-thumb"), ee({}, "".concat(U, "-thumb-moving"), s)),
|
|
2574
2576
|
style: q(q({}, ie), g),
|
|
@@ -2576,23 +2578,23 @@ var _t = /* @__PURE__ */ v.forwardRef(function(e, t) {
|
|
|
2576
2578
|
}));
|
|
2577
2579
|
});
|
|
2578
2580
|
process.env.NODE_ENV !== "production" && (_t.displayName = "ScrollBar");
|
|
2579
|
-
var
|
|
2581
|
+
var Qo = 20;
|
|
2580
2582
|
function fr() {
|
|
2581
2583
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = e / t * e;
|
|
2582
|
-
return isNaN(r) && (r = 0), r = Math.max(r,
|
|
2584
|
+
return isNaN(r) && (r = 0), r = Math.max(r, Qo), Math.floor(r);
|
|
2583
2585
|
}
|
|
2584
|
-
var
|
|
2586
|
+
var ei = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles"], ti = [], ri = {
|
|
2585
2587
|
overflowY: "auto",
|
|
2586
2588
|
overflowAnchor: "none"
|
|
2587
2589
|
};
|
|
2588
|
-
function
|
|
2589
|
-
var r = e.prefixCls, n = r === void 0 ? "rc-virtual-list" : r, o = e.className, i = e.height, a = e.itemHeight, l = e.fullHeight,
|
|
2590
|
+
function ni(e, t) {
|
|
2591
|
+
var r = e.prefixCls, n = r === void 0 ? "rc-virtual-list" : r, o = e.className, i = e.height, a = e.itemHeight, l = e.fullHeight, u = l === void 0 ? !0 : l, f = e.style, m = e.data, v = e.children, y = e.itemKey, g = e.virtual, b = e.direction, p = e.scrollWidth, s = e.component, x = s === void 0 ? "div" : s, S = e.onScroll, P = e.onVirtualScroll, h = e.onVisibleChange, R = e.innerProps, L = e.extraRender, O = e.styles, T = Un(e, ei), _ = d.useCallback(function(C) {
|
|
2590
2592
|
return typeof y == "function" ? y(C) : C == null ? void 0 : C[y];
|
|
2591
|
-
}, [y]), M =
|
|
2592
|
-
return Object.values($.maps).reduce(function(C,
|
|
2593
|
-
return C +
|
|
2593
|
+
}, [y]), M = Ko(_), F = K(M, 4), Y = F[0], B = F[1], $ = F[2], G = F[3], k = !!(g !== !1 && i && a), ae = d.useMemo(function() {
|
|
2594
|
+
return Object.values($.maps).reduce(function(C, w) {
|
|
2595
|
+
return C + w;
|
|
2594
2596
|
}, 0);
|
|
2595
|
-
}, [$.id, $.maps]), Z = k && m && (Math.max(a * m.length, ae) > i || !!p), W = b === "rtl", me = Xe(n, ee({}, "".concat(n, "-rtl"), W), o), H = m ||
|
|
2597
|
+
}, [$.id, $.maps]), Z = k && m && (Math.max(a * m.length, ae) > i || !!p), W = b === "rtl", me = Xe(n, ee({}, "".concat(n, "-rtl"), W), o), H = m || ti, se = D(), ve = D(), pe = D(), Se = Ye(0), ge = K(Se, 2), U = ge[0], te = ge[1], ie = Ye(0), X = K(ie, 2), z = X[0], re = X[1], Re = Ye(!1), E = K(Re, 2), le = E[0], ue = E[1], be = function() {
|
|
2596
2598
|
ue(!0);
|
|
2597
2599
|
}, De = function() {
|
|
2598
2600
|
ue(!1);
|
|
@@ -2600,9 +2602,9 @@ function ti(e, t) {
|
|
|
2600
2602
|
getKey: _
|
|
2601
2603
|
};
|
|
2602
2604
|
function ye(C) {
|
|
2603
|
-
te(function(
|
|
2605
|
+
te(function(w) {
|
|
2604
2606
|
var I;
|
|
2605
|
-
typeof C == "function" ? I = C(
|
|
2607
|
+
typeof C == "function" ? I = C(w) : I = C;
|
|
2606
2608
|
var V = Br(I);
|
|
2607
2609
|
return se.current.scrollTop = V, V;
|
|
2608
2610
|
});
|
|
@@ -2610,9 +2612,9 @@ function ti(e, t) {
|
|
|
2610
2612
|
var Oe = D({
|
|
2611
2613
|
start: 0,
|
|
2612
2614
|
end: H.length
|
|
2613
|
-
}), Pe = D(), je =
|
|
2615
|
+
}), Pe = D(), je = Yo(H, _), Fe = K(je, 1), st = Fe[0];
|
|
2614
2616
|
Pe.current = st;
|
|
2615
|
-
var ce =
|
|
2617
|
+
var ce = d.useMemo(function() {
|
|
2616
2618
|
if (!k)
|
|
2617
2619
|
return {
|
|
2618
2620
|
scrollHeight: void 0,
|
|
@@ -2629,35 +2631,35 @@ function ti(e, t) {
|
|
|
2629
2631
|
offset: void 0
|
|
2630
2632
|
};
|
|
2631
2633
|
}
|
|
2632
|
-
for (var
|
|
2633
|
-
var Zr = H[Le], Jr = _(Zr), Vt = $.get(Jr), pt =
|
|
2634
|
-
pt >= U && I === void 0 && (I = Le, V =
|
|
2634
|
+
for (var w = 0, I, V, J, Ht = H.length, Le = 0; Le < Ht; Le += 1) {
|
|
2635
|
+
var Zr = H[Le], Jr = _(Zr), Vt = $.get(Jr), pt = w + (Vt === void 0 ? a : Vt);
|
|
2636
|
+
pt >= U && I === void 0 && (I = Le, V = w), pt > U + i && J === void 0 && (J = Le), w = pt;
|
|
2635
2637
|
}
|
|
2636
2638
|
return I === void 0 && (I = 0, V = 0, J = Math.ceil(i / a)), J === void 0 && (J = H.length - 1), J = Math.min(J + 1, H.length - 1), {
|
|
2637
|
-
scrollHeight:
|
|
2639
|
+
scrollHeight: w,
|
|
2638
2640
|
start: I,
|
|
2639
2641
|
end: J,
|
|
2640
2642
|
offset: V
|
|
2641
2643
|
};
|
|
2642
2644
|
}, [Z, k, U, H, G, i]), Ee = ce.scrollHeight, Me = ce.start, Te = ce.end, Mt = ce.offset;
|
|
2643
2645
|
Oe.current.start = Me, Oe.current.end = Te;
|
|
2644
|
-
var kr =
|
|
2646
|
+
var kr = d.useState({
|
|
2645
2647
|
width: 0,
|
|
2646
2648
|
height: i
|
|
2647
|
-
}), Tt = K(kr, 2), fe = Tt[0], jr = Tt[1], Fr = function(
|
|
2649
|
+
}), Tt = K(kr, 2), fe = Tt[0], jr = Tt[1], Fr = function(w) {
|
|
2648
2650
|
jr({
|
|
2649
|
-
width:
|
|
2650
|
-
height:
|
|
2651
|
+
width: w.offsetWidth,
|
|
2652
|
+
height: w.offsetHeight
|
|
2651
2653
|
});
|
|
2652
|
-
}, It = D(), Lt = D(), Hr =
|
|
2654
|
+
}, It = D(), Lt = D(), Hr = d.useMemo(function() {
|
|
2653
2655
|
return fr(fe.width, p);
|
|
2654
|
-
}, [fe.width, p]), Vr =
|
|
2656
|
+
}, [fe.width, p]), Vr = d.useMemo(function() {
|
|
2655
2657
|
return fr(fe.height, Ee);
|
|
2656
2658
|
}, [fe.height, Ee]), ct = Ee - i, lt = D(ct);
|
|
2657
2659
|
lt.current = ct;
|
|
2658
2660
|
function Br(C) {
|
|
2659
|
-
var
|
|
2660
|
-
return Number.isNaN(lt.current) || (
|
|
2661
|
+
var w = C;
|
|
2662
|
+
return Number.isNaN(lt.current) || (w = Math.min(w, lt.current)), w = Math.max(w, 0), w;
|
|
2661
2663
|
}
|
|
2662
2664
|
var He = U <= 0, Ve = U >= ct, At = z <= 0, Nt = z >= p, Wr = zr(He, Ve, At, Nt), ut = function() {
|
|
2663
2665
|
return {
|
|
@@ -2665,26 +2667,26 @@ function ti(e, t) {
|
|
|
2665
2667
|
y: U
|
|
2666
2668
|
};
|
|
2667
2669
|
}, ft = D(ut()), Be = nr(function(C) {
|
|
2668
|
-
if (
|
|
2669
|
-
var
|
|
2670
|
-
(ft.current.x !==
|
|
2670
|
+
if (P) {
|
|
2671
|
+
var w = q(q({}, ut()), C);
|
|
2672
|
+
(ft.current.x !== w.x || ft.current.y !== w.y) && (P(w), ft.current = w);
|
|
2671
2673
|
}
|
|
2672
2674
|
});
|
|
2673
|
-
function $t(C,
|
|
2675
|
+
function $t(C, w) {
|
|
2674
2676
|
var I = C;
|
|
2675
|
-
|
|
2677
|
+
w ? (Ut.flushSync(function() {
|
|
2676
2678
|
re(I);
|
|
2677
2679
|
}), Be()) : ye(I);
|
|
2678
2680
|
}
|
|
2679
2681
|
function Yr(C) {
|
|
2680
|
-
var
|
|
2681
|
-
|
|
2682
|
+
var w = C.currentTarget.scrollTop;
|
|
2683
|
+
w !== U && ye(w), S == null || S(C), Be();
|
|
2682
2684
|
}
|
|
2683
|
-
var dt = function(
|
|
2684
|
-
var I =
|
|
2685
|
+
var dt = function(w) {
|
|
2686
|
+
var I = w, V = p ? p - fe.width : 0;
|
|
2685
2687
|
return I = Math.max(I, 0), I = Math.min(I, V), I;
|
|
2686
|
-
}, Gr = nr(function(C,
|
|
2687
|
-
|
|
2688
|
+
}, Gr = nr(function(C, w) {
|
|
2689
|
+
w ? (Ut.flushSync(function() {
|
|
2688
2690
|
re(function(I) {
|
|
2689
2691
|
var V = I + (W ? -C : C);
|
|
2690
2692
|
return dt(V);
|
|
@@ -2693,33 +2695,33 @@ function ti(e, t) {
|
|
|
2693
2695
|
var V = I + C;
|
|
2694
2696
|
return V;
|
|
2695
2697
|
});
|
|
2696
|
-
}), Ur =
|
|
2697
|
-
|
|
2698
|
+
}), Ur = Go(k, He, Ve, At, Nt, !!p, Gr), zt = K(Ur, 2), vt = zt[0], Dt = zt[1];
|
|
2699
|
+
qo(k, se, function(C, w, I, V) {
|
|
2698
2700
|
var J = V;
|
|
2699
|
-
return Wr(C,
|
|
2701
|
+
return Wr(C, w, I) ? !1 : !J || !J._virtualHandled ? (J && (J._virtualHandled = !0), vt({
|
|
2700
2702
|
preventDefault: function() {
|
|
2701
2703
|
},
|
|
2702
|
-
deltaX: C ?
|
|
2703
|
-
deltaY: C ? 0 :
|
|
2704
|
+
deltaX: C ? w : 0,
|
|
2705
|
+
deltaY: C ? 0 : w
|
|
2704
2706
|
}), !0) : !1;
|
|
2705
|
-
}),
|
|
2706
|
-
ye(function(
|
|
2707
|
-
return
|
|
2707
|
+
}), Zo(Z, se, function(C) {
|
|
2708
|
+
ye(function(w) {
|
|
2709
|
+
return w + C;
|
|
2708
2710
|
});
|
|
2709
2711
|
}), Ne(function() {
|
|
2710
2712
|
function C(I) {
|
|
2711
2713
|
var V = He && I.detail < 0, J = Ve && I.detail > 0;
|
|
2712
2714
|
k && !V && !J && I.preventDefault();
|
|
2713
2715
|
}
|
|
2714
|
-
var
|
|
2715
|
-
return
|
|
2716
|
+
var w = se.current;
|
|
2717
|
+
return w.addEventListener("wheel", vt, {
|
|
2716
2718
|
passive: !1
|
|
2717
|
-
}),
|
|
2719
|
+
}), w.addEventListener("DOMMouseScroll", Dt, {
|
|
2718
2720
|
passive: !0
|
|
2719
|
-
}),
|
|
2721
|
+
}), w.addEventListener("MozMousePixelScroll", C, {
|
|
2720
2722
|
passive: !1
|
|
2721
2723
|
}), function() {
|
|
2722
|
-
|
|
2724
|
+
w.removeEventListener("wheel", vt), w.removeEventListener("DOMMouseScroll", Dt), w.removeEventListener("MozMousePixelScroll", C);
|
|
2723
2725
|
};
|
|
2724
2726
|
}, [k, He, Ve]), Ne(function() {
|
|
2725
2727
|
if (p) {
|
|
@@ -2730,29 +2732,29 @@ function ti(e, t) {
|
|
|
2730
2732
|
}
|
|
2731
2733
|
}, [fe.width, p]);
|
|
2732
2734
|
var kt = function() {
|
|
2733
|
-
var
|
|
2734
|
-
(
|
|
2735
|
-
}, jt =
|
|
2735
|
+
var w, I;
|
|
2736
|
+
(w = It.current) === null || w === void 0 || w.delayHidden(), (I = Lt.current) === null || I === void 0 || I.delayHidden();
|
|
2737
|
+
}, jt = Jo(se, H, $, a, _, function() {
|
|
2736
2738
|
return B(!0);
|
|
2737
2739
|
}, ye, kt);
|
|
2738
|
-
|
|
2740
|
+
d.useImperativeHandle(t, function() {
|
|
2739
2741
|
return {
|
|
2740
2742
|
nativeElement: pe.current,
|
|
2741
2743
|
getScrollInfo: ut,
|
|
2742
|
-
scrollTo: function(
|
|
2744
|
+
scrollTo: function(w) {
|
|
2743
2745
|
function I(V) {
|
|
2744
2746
|
return V && oe(V) === "object" && ("left" in V || "top" in V);
|
|
2745
2747
|
}
|
|
2746
|
-
I(
|
|
2748
|
+
I(w) ? (w.left !== void 0 && re(dt(w.left)), jt(w.top)) : jt(w);
|
|
2747
2749
|
}
|
|
2748
2750
|
};
|
|
2749
2751
|
}), Ne(function() {
|
|
2750
|
-
if (
|
|
2752
|
+
if (h) {
|
|
2751
2753
|
var C = H.slice(Me, Te + 1);
|
|
2752
|
-
|
|
2754
|
+
h(C, H);
|
|
2753
2755
|
}
|
|
2754
2756
|
}, [Me, Te, H]);
|
|
2755
|
-
var Xr =
|
|
2757
|
+
var Xr = Uo(H, _, $, a), Kr = L == null ? void 0 : L({
|
|
2756
2758
|
start: Me,
|
|
2757
2759
|
end: Te,
|
|
2758
2760
|
virtual: Z,
|
|
@@ -2760,24 +2762,24 @@ function ti(e, t) {
|
|
|
2760
2762
|
offsetY: Mt,
|
|
2761
2763
|
rtl: W,
|
|
2762
2764
|
getSize: Xr
|
|
2763
|
-
}), qr =
|
|
2764
|
-
i && (Ie = q(ee({},
|
|
2765
|
+
}), qr = Bo(H, Me, Te, p, z, Y, v, ke), Ie = null;
|
|
2766
|
+
i && (Ie = q(ee({}, u ? "height" : "maxHeight", i), ri), k && (Ie.overflowY = "hidden", p && (Ie.overflowX = "hidden"), le && (Ie.pointerEvents = "none")));
|
|
2765
2767
|
var Ft = {};
|
|
2766
|
-
return W && (Ft.dir = "rtl"), /* @__PURE__ */
|
|
2768
|
+
return W && (Ft.dir = "rtl"), /* @__PURE__ */ d.createElement("div", Ct({
|
|
2767
2769
|
ref: pe,
|
|
2768
2770
|
style: q(q({}, f), {}, {
|
|
2769
2771
|
position: "relative"
|
|
2770
2772
|
}),
|
|
2771
2773
|
className: me
|
|
2772
|
-
}, Ft, T), /* @__PURE__ */
|
|
2774
|
+
}, Ft, T), /* @__PURE__ */ d.createElement(it, {
|
|
2773
2775
|
onResize: Fr
|
|
2774
|
-
}, /* @__PURE__ */
|
|
2776
|
+
}, /* @__PURE__ */ d.createElement(x, {
|
|
2775
2777
|
className: "".concat(n, "-holder"),
|
|
2776
2778
|
style: Ie,
|
|
2777
2779
|
ref: se,
|
|
2778
2780
|
onScroll: Yr,
|
|
2779
2781
|
onMouseEnter: kt
|
|
2780
|
-
}, /* @__PURE__ */
|
|
2782
|
+
}, /* @__PURE__ */ d.createElement(Lr, {
|
|
2781
2783
|
prefixCls: n,
|
|
2782
2784
|
height: Ee,
|
|
2783
2785
|
offsetX: z,
|
|
@@ -2785,10 +2787,10 @@ function ti(e, t) {
|
|
|
2785
2787
|
scrollWidth: p,
|
|
2786
2788
|
onInnerResize: B,
|
|
2787
2789
|
ref: ve,
|
|
2788
|
-
innerProps:
|
|
2790
|
+
innerProps: R,
|
|
2789
2791
|
rtl: W,
|
|
2790
2792
|
extra: Kr
|
|
2791
|
-
}, qr))), Z && Ee > i && /* @__PURE__ */
|
|
2793
|
+
}, qr))), Z && Ee > i && /* @__PURE__ */ d.createElement(_t, {
|
|
2792
2794
|
ref: It,
|
|
2793
2795
|
prefixCls: n,
|
|
2794
2796
|
scrollOffset: U,
|
|
@@ -2799,9 +2801,9 @@ function ti(e, t) {
|
|
|
2799
2801
|
onStopMove: De,
|
|
2800
2802
|
spinSize: Vr,
|
|
2801
2803
|
containerSize: fe.height,
|
|
2802
|
-
style:
|
|
2803
|
-
thumbStyle:
|
|
2804
|
-
}), Z && p > fe.width && /* @__PURE__ */
|
|
2804
|
+
style: O == null ? void 0 : O.verticalScrollBar,
|
|
2805
|
+
thumbStyle: O == null ? void 0 : O.verticalScrollBarThumb
|
|
2806
|
+
}), Z && p > fe.width && /* @__PURE__ */ d.createElement(_t, {
|
|
2805
2807
|
ref: Lt,
|
|
2806
2808
|
prefixCls: n,
|
|
2807
2809
|
scrollOffset: z,
|
|
@@ -2813,71 +2815,75 @@ function ti(e, t) {
|
|
|
2813
2815
|
spinSize: Hr,
|
|
2814
2816
|
containerSize: fe.width,
|
|
2815
2817
|
horizontal: !0,
|
|
2816
|
-
style:
|
|
2817
|
-
thumbStyle:
|
|
2818
|
+
style: O == null ? void 0 : O.horizontalScrollBar,
|
|
2819
|
+
thumbStyle: O == null ? void 0 : O.horizontalScrollBarThumb
|
|
2818
2820
|
}));
|
|
2819
2821
|
}
|
|
2820
|
-
var Dr = /* @__PURE__ */
|
|
2822
|
+
var Dr = /* @__PURE__ */ d.forwardRef(ni);
|
|
2821
2823
|
Dr.displayName = "List";
|
|
2822
|
-
const
|
|
2823
|
-
var
|
|
2824
|
-
const [t, r] = Ye(1), n = tn(nn);
|
|
2824
|
+
const wi = (e) => {
|
|
2825
|
+
var b, p, s, x, S, P;
|
|
2826
|
+
const [t, r] = Ye(1), n = tn(nn), o = dn(), i = pn(o);
|
|
2825
2827
|
if (!n)
|
|
2826
2828
|
return null;
|
|
2827
|
-
const
|
|
2829
|
+
const a = (h) => e.filter === Yt.ALL || !e.filter ? h : e.filter === Yt.UNARCHIVED ? h.filter((R) => !R.archived) : h.filter(e.filter);
|
|
2828
2830
|
if (n.notifications === void 0) return null;
|
|
2829
|
-
const
|
|
2830
|
-
|
|
2831
|
-
var R,
|
|
2832
|
-
if ((
|
|
2833
|
-
const
|
|
2834
|
-
|
|
2831
|
+
const u = a(n.notifications).sort((h, R) => new Date(h.date).getTime() - new Date(R.date).getTime()), f = {}, m = new rn();
|
|
2832
|
+
u.forEach((h) => {
|
|
2833
|
+
var R, L;
|
|
2834
|
+
if ((L = (R = h.deliveryOptions) == null ? void 0 : R.instant) != null && L.batching) {
|
|
2835
|
+
const O = h.deliveryOptions.instant.batchingKey, T = O ? m.parseAndRenderSync(`{{${O}}}`, h) : "", _ = `${h.notificationId}-${T}`;
|
|
2836
|
+
f[_] ? f[_].push(h) : f[_] = [h];
|
|
2835
2837
|
} else {
|
|
2836
|
-
const
|
|
2837
|
-
|
|
2838
|
+
const O = h.id;
|
|
2839
|
+
f[O] = [h];
|
|
2838
2840
|
}
|
|
2839
2841
|
});
|
|
2840
|
-
const
|
|
2841
|
-
(
|
|
2842
|
-
),
|
|
2842
|
+
const v = Object.values(f).sort(
|
|
2843
|
+
(h, R) => new Date(R[R.length - 1].date).getTime() - new Date(h[h.length - 1].date).getTime()
|
|
2844
|
+
), y = e.empty ?? on, g = (h, R) => {
|
|
2843
2845
|
R >= Math.floor(n.notifications.length / e.pageSize) && n.loadNotifications(), r(R);
|
|
2844
2846
|
};
|
|
2845
2847
|
return /* @__PURE__ */ j("div", { children: e.pagination === "INFINITE_SCROLL" ? /* @__PURE__ */ $e(
|
|
2846
2848
|
Kt,
|
|
2847
2849
|
{
|
|
2850
|
+
sx: {
|
|
2851
|
+
backgroundColor: i.paper,
|
|
2852
|
+
color: i.text
|
|
2853
|
+
},
|
|
2848
2854
|
subheader: /* @__PURE__ */ j(
|
|
2849
2855
|
Bt,
|
|
2850
2856
|
{
|
|
2851
|
-
title: (
|
|
2852
|
-
button1ClickHandler: (
|
|
2853
|
-
button2ClickHandler: (
|
|
2857
|
+
title: (b = e.header) == null ? void 0 : b.title,
|
|
2858
|
+
button1ClickHandler: (p = e.header) == null ? void 0 : p.button1ClickHandler,
|
|
2859
|
+
button2ClickHandler: (s = e.header) == null ? void 0 : s.button2ClickHandler
|
|
2854
2860
|
}
|
|
2855
2861
|
),
|
|
2856
2862
|
children: [
|
|
2857
|
-
|
|
2863
|
+
v.length === 0 && y,
|
|
2858
2864
|
/* @__PURE__ */ j(
|
|
2859
2865
|
Dr,
|
|
2860
2866
|
{
|
|
2861
|
-
data:
|
|
2867
|
+
data: v,
|
|
2862
2868
|
height: e.maxHeight,
|
|
2863
2869
|
itemHeight: 47,
|
|
2864
|
-
itemKey: (
|
|
2865
|
-
onScroll: (
|
|
2870
|
+
itemKey: (h) => h[0].id,
|
|
2871
|
+
onScroll: (h) => {
|
|
2866
2872
|
Math.abs(
|
|
2867
|
-
|
|
2873
|
+
h.currentTarget.scrollHeight - h.currentTarget.scrollTop - e.maxHeight
|
|
2868
2874
|
) <= 1 && n.loadNotifications();
|
|
2869
2875
|
},
|
|
2870
|
-
children: (
|
|
2876
|
+
children: (h) => /* @__PURE__ */ j(mt, { style: { padding: 0 }, children: /* @__PURE__ */ j(
|
|
2871
2877
|
Wt,
|
|
2872
2878
|
{
|
|
2873
2879
|
markAsArchived: n.markAsArchived,
|
|
2874
|
-
notifications:
|
|
2880
|
+
notifications: h,
|
|
2875
2881
|
markAsClicked: n.markAsClicked,
|
|
2876
2882
|
renderer: e.notificationRenderer,
|
|
2877
2883
|
imageShape: e.imageShape,
|
|
2878
2884
|
newTab: e.newTab
|
|
2879
2885
|
}
|
|
2880
|
-
) },
|
|
2886
|
+
) }, h[0].id)
|
|
2881
2887
|
}
|
|
2882
2888
|
)
|
|
2883
2889
|
]
|
|
@@ -2885,47 +2891,51 @@ const yi = (e) => {
|
|
|
2885
2891
|
) : /* @__PURE__ */ $e(
|
|
2886
2892
|
Kt,
|
|
2887
2893
|
{
|
|
2894
|
+
sx: {
|
|
2895
|
+
backgroundColor: i.paper,
|
|
2896
|
+
color: i.text
|
|
2897
|
+
},
|
|
2888
2898
|
subheader: /* @__PURE__ */ j(
|
|
2889
2899
|
Bt,
|
|
2890
2900
|
{
|
|
2891
|
-
title: (
|
|
2892
|
-
button1ClickHandler: (
|
|
2893
|
-
button2ClickHandler: (
|
|
2901
|
+
title: (x = e.header) == null ? void 0 : x.title,
|
|
2902
|
+
button1ClickHandler: (S = e.header) == null ? void 0 : S.button1ClickHandler,
|
|
2903
|
+
button2ClickHandler: (P = e.header) == null ? void 0 : P.button2ClickHandler
|
|
2894
2904
|
}
|
|
2895
2905
|
),
|
|
2896
2906
|
children: [
|
|
2897
|
-
e.pagePosition === "top" &&
|
|
2907
|
+
e.pagePosition === "top" && v.length > 0 && /* @__PURE__ */ j(
|
|
2898
2908
|
gt,
|
|
2899
2909
|
{
|
|
2900
|
-
count: Math.ceil(
|
|
2910
|
+
count: Math.ceil(v.length / e.pageSize),
|
|
2901
2911
|
page: t,
|
|
2902
|
-
onChange:
|
|
2912
|
+
onChange: g
|
|
2903
2913
|
}
|
|
2904
2914
|
),
|
|
2905
|
-
|
|
2915
|
+
v.filter((h, R) => e.pagination === "PAGINATED" ? R >= (t - 1) * e.pageSize && R < t * e.pageSize : !0).map((h) => /* @__PURE__ */ j(mt, { style: { padding: 0 }, children: /* @__PURE__ */ j(
|
|
2906
2916
|
Wt,
|
|
2907
2917
|
{
|
|
2908
2918
|
markAsArchived: n.markAsArchived,
|
|
2909
|
-
notifications:
|
|
2919
|
+
notifications: h,
|
|
2910
2920
|
markAsClicked: n.markAsClicked,
|
|
2911
2921
|
renderer: e.notificationRenderer,
|
|
2912
2922
|
imageShape: e.imageShape,
|
|
2913
2923
|
newTab: e.newTab
|
|
2914
2924
|
}
|
|
2915
|
-
) },
|
|
2916
|
-
e.pagePosition === "bottom" &&
|
|
2925
|
+
) }, h[0].id)),
|
|
2926
|
+
e.pagePosition === "bottom" && v.length > 0 && /* @__PURE__ */ j(
|
|
2917
2927
|
gt,
|
|
2918
2928
|
{
|
|
2919
|
-
count: Math.ceil(
|
|
2929
|
+
count: Math.ceil(v.length / e.pageSize),
|
|
2920
2930
|
page: t,
|
|
2921
|
-
onChange:
|
|
2931
|
+
onChange: g
|
|
2922
2932
|
}
|
|
2923
2933
|
),
|
|
2924
|
-
|
|
2934
|
+
v.length === 0 && y
|
|
2925
2935
|
]
|
|
2926
2936
|
}
|
|
2927
2937
|
) });
|
|
2928
2938
|
};
|
|
2929
2939
|
export {
|
|
2930
|
-
|
|
2940
|
+
wi as Inbox
|
|
2931
2941
|
};
|