@notificationapi/react 1.0.1 → 1.0.3
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/Inbox.js +359 -349
- package/dist/assets/Notification.js +2 -1
- package/dist/components/Notifications/Inbox.d.ts +1 -0
- package/dist/components/Notifications/Notification.d.ts +1 -0
- package/dist/components/Notifications/NotificationFeed.d.ts +1 -0
- package/dist/components/Notifications/NotificationFeed.js +24 -22
- package/dist/components/Notifications/NotificationLauncher.js +36 -30
- package/dist/components/Notifications/NotificationPopup.d.ts +6 -0
- package/dist/components/Notifications/NotificationPopup.js +53 -45
- package/dist/components/Notifications/UnreadBadge.d.ts +2 -0
- package/dist/components/Notifications/UnreadBadge.js +15 -10
- package/package.json +2 -2
package/dist/assets/Inbox.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { u as rn, I as
|
|
5
|
-
import { L as nn, N as
|
|
6
|
-
import { Filter as
|
|
1
|
+
import { jsx as D, jsxs as Ce } from "react/jsx-runtime";
|
|
2
|
+
import * as v from "react";
|
|
3
|
+
import dr, { isValidElement as Qr, useRef as j, useEffect as en, useState as Ke, useContext as tn } from "react";
|
|
4
|
+
import { u as rn, I as Wt } from "./InboxHeader.js";
|
|
5
|
+
import { L as nn, N as Yt } from "./Notification.js";
|
|
6
|
+
import { Filter as Gt } from "../components/Notifications/interface.js";
|
|
7
7
|
import { NotificationAPIContext as on } from "../components/Provider/context.js";
|
|
8
8
|
import { DefaultEmptyComponent as an } from "../components/Notifications/DefaultEmpty.js";
|
|
9
|
-
import { g as Me, a as je, s as ve, u as ke, c as Se, P as a, f as Fe, m as tt, b as xe, h as _e, q as sn, _ as
|
|
9
|
+
import { g as Me, a as je, s as ve, u as ke, c as Se, P as a, f as Fe, m as tt, b as xe, h as _e, q as sn, _ as Ct } from "./DefaultPropsProvider.js";
|
|
10
10
|
import { c as cn, e as ln, B as un, u as Xe, b as fn, h as dn, j as vn } from "./ButtonBase.js";
|
|
11
|
-
import { R as
|
|
11
|
+
import { R as Ut, r as Xt } from "./utils.js";
|
|
12
12
|
import { u as pn } from "./resolveComponentProps.js";
|
|
13
13
|
import { u as hn } from "./Divider.js";
|
|
14
14
|
import { i as ze } from "./integerPropType.js";
|
|
15
|
-
import { c as
|
|
15
|
+
import { c as Kt } from "./createSimplePaletteValueFilter.js";
|
|
16
16
|
import { c as rt } from "./createSvgIcon.js";
|
|
17
|
-
function
|
|
17
|
+
function vr(e, t) {
|
|
18
18
|
var r, n, o;
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ v.isValidElement(e) && t.indexOf(
|
|
20
20
|
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
21
21
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
22
22
|
// eslint-disable-next-line no-underscore-dangle
|
|
23
23
|
e.type.muiName ?? ((o = (n = (r = e.type) == null ? void 0 : r._payload) == null ? void 0 : n.value) == null ? void 0 : o.muiName)
|
|
24
24
|
) !== -1;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function qt(e) {
|
|
27
27
|
return typeof e == "string";
|
|
28
28
|
}
|
|
29
|
-
const Oe = /* @__PURE__ */
|
|
29
|
+
const Oe = /* @__PURE__ */ v.createContext({});
|
|
30
30
|
process.env.NODE_ENV !== "production" && (Oe.displayName = "ListContext");
|
|
31
31
|
function mn(e) {
|
|
32
32
|
return je("MuiList", e);
|
|
@@ -72,7 +72,7 @@ const gn = (e) => {
|
|
|
72
72
|
paddingTop: 0
|
|
73
73
|
}
|
|
74
74
|
}]
|
|
75
|
-
}), mt = /* @__PURE__ */
|
|
75
|
+
}), mt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
76
76
|
const n = ke({
|
|
77
77
|
props: t,
|
|
78
78
|
name: "MuiList"
|
|
@@ -81,18 +81,18 @@ const gn = (e) => {
|
|
|
81
81
|
className: i,
|
|
82
82
|
component: s = "ul",
|
|
83
83
|
dense: l = !1,
|
|
84
|
-
disablePadding:
|
|
85
|
-
subheader:
|
|
84
|
+
disablePadding: d = !1,
|
|
85
|
+
subheader: f,
|
|
86
86
|
...m
|
|
87
|
-
} = n, h =
|
|
87
|
+
} = n, h = v.useMemo(() => ({
|
|
88
88
|
dense: l
|
|
89
89
|
}), [l]), g = {
|
|
90
90
|
...n,
|
|
91
91
|
component: s,
|
|
92
92
|
dense: l,
|
|
93
|
-
disablePadding:
|
|
93
|
+
disablePadding: d
|
|
94
94
|
}, b = gn(g);
|
|
95
|
-
return /* @__PURE__ */
|
|
95
|
+
return /* @__PURE__ */ D(Oe.Provider, {
|
|
96
96
|
value: h,
|
|
97
97
|
children: /* @__PURE__ */ Ce(bn, {
|
|
98
98
|
as: s,
|
|
@@ -100,7 +100,7 @@ const gn = (e) => {
|
|
|
100
100
|
ref: r,
|
|
101
101
|
ownerState: g,
|
|
102
102
|
...m,
|
|
103
|
-
children: [
|
|
103
|
+
children: [f, o]
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
});
|
|
@@ -186,25 +186,25 @@ const En = (e) => {
|
|
|
186
186
|
right: 0
|
|
187
187
|
}
|
|
188
188
|
}]
|
|
189
|
-
}),
|
|
189
|
+
}), Pt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
190
190
|
const n = ke({
|
|
191
191
|
props: t,
|
|
192
192
|
name: "MuiListItemSecondaryAction"
|
|
193
193
|
}), {
|
|
194
194
|
className: o,
|
|
195
195
|
...i
|
|
196
|
-
} = n, s =
|
|
196
|
+
} = n, s = v.useContext(Oe), l = {
|
|
197
197
|
...n,
|
|
198
198
|
disableGutters: s.disableGutters
|
|
199
|
-
},
|
|
200
|
-
return /* @__PURE__ */
|
|
201
|
-
className: Se(
|
|
199
|
+
}, d = En(l);
|
|
200
|
+
return /* @__PURE__ */ D(wn, {
|
|
201
|
+
className: Se(d.root, o),
|
|
202
202
|
ownerState: l,
|
|
203
203
|
ref: r,
|
|
204
204
|
...i
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
|
-
process.env.NODE_ENV !== "production" && (
|
|
207
|
+
process.env.NODE_ENV !== "production" && (Pt.propTypes = {
|
|
208
208
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
209
209
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
210
210
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -226,7 +226,7 @@ process.env.NODE_ENV !== "production" && (Ct.propTypes = {
|
|
|
226
226
|
*/
|
|
227
227
|
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object])
|
|
228
228
|
});
|
|
229
|
-
|
|
229
|
+
Pt.muiName = "ListItemSecondaryAction";
|
|
230
230
|
const xn = (e, t) => {
|
|
231
231
|
const {
|
|
232
232
|
ownerState: r
|
|
@@ -351,7 +351,7 @@ const xn = (e, t) => {
|
|
|
351
351
|
overridesResolver: (e, t) => t.container
|
|
352
352
|
})({
|
|
353
353
|
position: "relative"
|
|
354
|
-
}), gt = /* @__PURE__ */
|
|
354
|
+
}), gt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
355
355
|
const n = ke({
|
|
356
356
|
props: t,
|
|
357
357
|
name: "MuiListItem"
|
|
@@ -360,8 +360,8 @@ const xn = (e, t) => {
|
|
|
360
360
|
children: i,
|
|
361
361
|
className: s,
|
|
362
362
|
component: l,
|
|
363
|
-
components:
|
|
364
|
-
componentsProps:
|
|
363
|
+
components: d = {},
|
|
364
|
+
componentsProps: f = {},
|
|
365
365
|
ContainerComponent: m = "li",
|
|
366
366
|
ContainerProps: {
|
|
367
367
|
className: h,
|
|
@@ -375,11 +375,11 @@ const xn = (e, t) => {
|
|
|
375
375
|
slotProps: u = {},
|
|
376
376
|
slots: R = {},
|
|
377
377
|
...C
|
|
378
|
-
} = n, x =
|
|
378
|
+
} = n, x = v.useContext(Oe), L = v.useMemo(() => ({
|
|
379
379
|
dense: b || x.dense || !1,
|
|
380
380
|
alignItems: o,
|
|
381
381
|
disableGutters: y
|
|
382
|
-
}), [o, x.dense, b, y]), P =
|
|
382
|
+
}), [o, x.dense, b, y]), P = v.useRef(null), T = v.Children.toArray(i), _ = T.length && vr(T[T.length - 1], ["ListItemSecondaryAction"]), M = {
|
|
383
383
|
...n,
|
|
384
384
|
alignItems: o,
|
|
385
385
|
dense: L.dense,
|
|
@@ -387,12 +387,12 @@ const xn = (e, t) => {
|
|
|
387
387
|
disablePadding: p,
|
|
388
388
|
divider: c,
|
|
389
389
|
hasSecondaryAction: _
|
|
390
|
-
}, F = _n(M), Y = pn(P, r), B = R.root ||
|
|
390
|
+
}, F = _n(M), Y = pn(P, r), B = R.root || d.Root || On, $ = u.root || f.root || {}, G = {
|
|
391
391
|
className: Se(F.root, $.className, s),
|
|
392
392
|
...C
|
|
393
393
|
};
|
|
394
|
-
let
|
|
395
|
-
return _ ? (
|
|
394
|
+
let k = l || "li";
|
|
395
|
+
return _ ? (k = !G.component && !l ? "div" : k, m === "li" && (k === "li" ? k = "div" : G.component === "li" && (G.component = "div")), /* @__PURE__ */ D(Oe.Provider, {
|
|
396
396
|
value: L,
|
|
397
397
|
children: /* @__PURE__ */ Ce(Cn, {
|
|
398
398
|
as: m,
|
|
@@ -400,10 +400,10 @@ const xn = (e, t) => {
|
|
|
400
400
|
ref: Y,
|
|
401
401
|
ownerState: M,
|
|
402
402
|
...g,
|
|
403
|
-
children: [/* @__PURE__ */
|
|
403
|
+
children: [/* @__PURE__ */ D(B, {
|
|
404
404
|
...$,
|
|
405
|
-
...!
|
|
406
|
-
as:
|
|
405
|
+
...!qt(B) && {
|
|
406
|
+
as: k,
|
|
407
407
|
ownerState: {
|
|
408
408
|
...M,
|
|
409
409
|
...$.ownerState
|
|
@@ -413,20 +413,20 @@ const xn = (e, t) => {
|
|
|
413
413
|
children: T
|
|
414
414
|
}), T.pop()]
|
|
415
415
|
})
|
|
416
|
-
})) : /* @__PURE__ */
|
|
416
|
+
})) : /* @__PURE__ */ D(Oe.Provider, {
|
|
417
417
|
value: L,
|
|
418
418
|
children: /* @__PURE__ */ Ce(B, {
|
|
419
419
|
...$,
|
|
420
|
-
as:
|
|
420
|
+
as: k,
|
|
421
421
|
ref: Y,
|
|
422
|
-
...!
|
|
422
|
+
...!qt(B) && {
|
|
423
423
|
ownerState: {
|
|
424
424
|
...M,
|
|
425
425
|
...$.ownerState
|
|
426
426
|
}
|
|
427
427
|
},
|
|
428
428
|
...G,
|
|
429
|
-
children: [T, w && /* @__PURE__ */
|
|
429
|
+
children: [T, w && /* @__PURE__ */ D(Pt, {
|
|
430
430
|
children: w
|
|
431
431
|
})]
|
|
432
432
|
})
|
|
@@ -447,11 +447,11 @@ process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
|
447
447
|
* be the last child.
|
|
448
448
|
*/
|
|
449
449
|
children: cn(a.node, (e) => {
|
|
450
|
-
const t =
|
|
450
|
+
const t = v.Children.toArray(e.children);
|
|
451
451
|
let r = -1;
|
|
452
452
|
for (let n = t.length - 1; n >= 0; n -= 1) {
|
|
453
453
|
const o = t[n];
|
|
454
|
-
if (
|
|
454
|
+
if (vr(o, ["ListItemSecondaryAction"])) {
|
|
455
455
|
r = n;
|
|
456
456
|
break;
|
|
457
457
|
}
|
|
@@ -562,19 +562,19 @@ function Mn(e = {}) {
|
|
|
562
562
|
disabled: i = !1,
|
|
563
563
|
hideNextButton: s = !1,
|
|
564
564
|
hidePrevButton: l = !1,
|
|
565
|
-
onChange:
|
|
566
|
-
page:
|
|
565
|
+
onChange: d,
|
|
566
|
+
page: f,
|
|
567
567
|
showFirstButton: m = !1,
|
|
568
568
|
showLastButton: h = !1,
|
|
569
569
|
siblingCount: g = 1,
|
|
570
570
|
...b
|
|
571
571
|
} = e, [y, p] = hn({
|
|
572
|
-
controlled:
|
|
572
|
+
controlled: f,
|
|
573
573
|
default: o,
|
|
574
574
|
name: r,
|
|
575
575
|
state: "page"
|
|
576
576
|
}), c = (_, M) => {
|
|
577
|
-
|
|
577
|
+
f || p(M), d && d(_, M);
|
|
578
578
|
}, w = (_, M) => {
|
|
579
579
|
const F = M - _ + 1;
|
|
580
580
|
return Array.from({
|
|
@@ -652,15 +652,15 @@ function Mn(e = {}) {
|
|
|
652
652
|
function Tn(e) {
|
|
653
653
|
return je("MuiPaginationItem", e);
|
|
654
654
|
}
|
|
655
|
-
const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), In = rt(/* @__PURE__ */
|
|
655
|
+
const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), In = rt(/* @__PURE__ */ D("path", {
|
|
656
656
|
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
657
|
-
}), "FirstPage"), Ln = rt(/* @__PURE__ */
|
|
657
|
+
}), "FirstPage"), Ln = rt(/* @__PURE__ */ D("path", {
|
|
658
658
|
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
659
|
-
}), "LastPage"), Nn = rt(/* @__PURE__ */
|
|
659
|
+
}), "LastPage"), Nn = rt(/* @__PURE__ */ D("path", {
|
|
660
660
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
661
|
-
}), "NavigateBefore"), An = rt(/* @__PURE__ */
|
|
661
|
+
}), "NavigateBefore"), An = rt(/* @__PURE__ */ D("path", {
|
|
662
662
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
663
|
-
}), "NavigateNext"),
|
|
663
|
+
}), "NavigateNext"), pr = (e, t) => {
|
|
664
664
|
const {
|
|
665
665
|
ownerState: r
|
|
666
666
|
} = e;
|
|
@@ -674,9 +674,9 @@ const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
674
674
|
size: i,
|
|
675
675
|
shape: s,
|
|
676
676
|
type: l,
|
|
677
|
-
variant:
|
|
678
|
-
} = e,
|
|
679
|
-
root: ["root", `size${_e(i)}`,
|
|
677
|
+
variant: d
|
|
678
|
+
} = e, f = {
|
|
679
|
+
root: ["root", `size${_e(i)}`, d, s, r !== "standard" && `color${_e(r)}`, r !== "standard" && `${d}${_e(r)}`, n && "disabled", o && "selected", {
|
|
680
680
|
page: "page",
|
|
681
681
|
first: "firstLast",
|
|
682
682
|
last: "firstLast",
|
|
@@ -687,11 +687,11 @@ const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
687
687
|
}[l]],
|
|
688
688
|
icon: ["icon"]
|
|
689
689
|
};
|
|
690
|
-
return Fe(
|
|
690
|
+
return Fe(f, Tn, t);
|
|
691
691
|
}, zn = ve("div", {
|
|
692
692
|
name: "MuiPaginationItem",
|
|
693
693
|
slot: "Root",
|
|
694
|
-
overridesResolver:
|
|
694
|
+
overridesResolver: pr
|
|
695
695
|
})(tt(({
|
|
696
696
|
theme: e
|
|
697
697
|
}) => ({
|
|
@@ -731,7 +731,7 @@ const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
731
731
|
}))), Dn = ve(un, {
|
|
732
732
|
name: "MuiPaginationItem",
|
|
733
733
|
slot: "Root",
|
|
734
|
-
overridesResolver:
|
|
734
|
+
overridesResolver: pr
|
|
735
735
|
})(tt(({
|
|
736
736
|
theme: e
|
|
737
737
|
}) => ({
|
|
@@ -831,7 +831,7 @@ const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
}, ...Object.entries(e.palette).filter(
|
|
834
|
+
}, ...Object.entries(e.palette).filter(Kt(["dark", "contrastText"])).map(([t]) => ({
|
|
835
835
|
props: {
|
|
836
836
|
variant: "text",
|
|
837
837
|
color: t
|
|
@@ -855,7 +855,7 @@ const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
|
-
})), ...Object.entries(e.palette).filter(
|
|
858
|
+
})), ...Object.entries(e.palette).filter(Kt(["light"])).map(([t]) => ({
|
|
859
859
|
props: {
|
|
860
860
|
variant: "outlined",
|
|
861
861
|
color: t
|
|
@@ -902,7 +902,7 @@ const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
902
902
|
fontSize: e.typography.pxToRem(22)
|
|
903
903
|
}
|
|
904
904
|
}]
|
|
905
|
-
}))),
|
|
905
|
+
}))), hr = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
906
906
|
const n = ke({
|
|
907
907
|
props: t,
|
|
908
908
|
name: "MuiPaginationItem"
|
|
@@ -911,8 +911,8 @@ const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
911
911
|
color: i = "standard",
|
|
912
912
|
component: s,
|
|
913
913
|
components: l = {},
|
|
914
|
-
disabled:
|
|
915
|
-
page:
|
|
914
|
+
disabled: d = !1,
|
|
915
|
+
page: f,
|
|
916
916
|
selected: m = !1,
|
|
917
917
|
shape: h = "circular",
|
|
918
918
|
size: g = "medium",
|
|
@@ -924,7 +924,7 @@ const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
924
924
|
} = n, u = {
|
|
925
925
|
...n,
|
|
926
926
|
color: i,
|
|
927
|
-
disabled:
|
|
927
|
+
disabled: d,
|
|
928
928
|
selected: m,
|
|
929
929
|
shape: h,
|
|
930
930
|
size: g,
|
|
@@ -964,13 +964,13 @@ const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
964
964
|
next: T,
|
|
965
965
|
first: M,
|
|
966
966
|
last: Y
|
|
967
|
-
}[$],
|
|
967
|
+
}[$], k = {
|
|
968
968
|
previous: P,
|
|
969
969
|
next: _,
|
|
970
970
|
first: F,
|
|
971
971
|
last: B
|
|
972
972
|
}[$];
|
|
973
|
-
return p === "start-ellipsis" || p === "end-ellipsis" ? /* @__PURE__ */
|
|
973
|
+
return p === "start-ellipsis" || p === "end-ellipsis" ? /* @__PURE__ */ D(zn, {
|
|
974
974
|
ref: r,
|
|
975
975
|
ownerState: u,
|
|
976
976
|
className: Se(C.root, o),
|
|
@@ -979,17 +979,17 @@ const Q = Me("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
979
979
|
ref: r,
|
|
980
980
|
ownerState: u,
|
|
981
981
|
component: s,
|
|
982
|
-
disabled:
|
|
982
|
+
disabled: d,
|
|
983
983
|
className: Se(C.root, o),
|
|
984
984
|
...w,
|
|
985
|
-
children: [p === "page" &&
|
|
986
|
-
...
|
|
985
|
+
children: [p === "page" && f, G ? /* @__PURE__ */ D(jn, {
|
|
986
|
+
...k,
|
|
987
987
|
className: C.icon,
|
|
988
988
|
as: G
|
|
989
989
|
}) : null]
|
|
990
990
|
});
|
|
991
991
|
});
|
|
992
|
-
process.env.NODE_ENV !== "production" && (
|
|
992
|
+
process.env.NODE_ENV !== "production" && (hr.propTypes = {
|
|
993
993
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
994
994
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
995
995
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1125,7 +1125,7 @@ const kn = (e) => {
|
|
|
1125
1125
|
function Vn(e, t, r) {
|
|
1126
1126
|
return e === "page" ? `${r ? "" : "Go to "}page ${t}` : `Go to ${e} page`;
|
|
1127
1127
|
}
|
|
1128
|
-
const
|
|
1128
|
+
const bt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
1129
1129
|
const n = ke({
|
|
1130
1130
|
props: t,
|
|
1131
1131
|
name: "MuiPagination"
|
|
@@ -1134,14 +1134,14 @@ const hr = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
|
1134
1134
|
className: i,
|
|
1135
1135
|
color: s = "standard",
|
|
1136
1136
|
count: l = 1,
|
|
1137
|
-
defaultPage:
|
|
1138
|
-
disabled:
|
|
1137
|
+
defaultPage: d = 1,
|
|
1138
|
+
disabled: f = !1,
|
|
1139
1139
|
getItemAriaLabel: m = Vn,
|
|
1140
1140
|
hideNextButton: h = !1,
|
|
1141
1141
|
hidePrevButton: g = !1,
|
|
1142
1142
|
onChange: b,
|
|
1143
1143
|
page: y,
|
|
1144
|
-
renderItem: p = (M) => /* @__PURE__ */
|
|
1144
|
+
renderItem: p = (M) => /* @__PURE__ */ D(hr, {
|
|
1145
1145
|
...M
|
|
1146
1146
|
}),
|
|
1147
1147
|
shape: c = "circular",
|
|
@@ -1161,8 +1161,8 @@ const hr = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
|
1161
1161
|
boundaryCount: o,
|
|
1162
1162
|
color: s,
|
|
1163
1163
|
count: l,
|
|
1164
|
-
defaultPage:
|
|
1165
|
-
disabled:
|
|
1164
|
+
defaultPage: d,
|
|
1165
|
+
disabled: f,
|
|
1166
1166
|
getItemAriaLabel: m,
|
|
1167
1167
|
hideNextButton: h,
|
|
1168
1168
|
hidePrevButton: g,
|
|
@@ -1174,16 +1174,16 @@ const hr = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
|
1174
1174
|
size: C,
|
|
1175
1175
|
variant: x
|
|
1176
1176
|
}, _ = kn(T);
|
|
1177
|
-
return /* @__PURE__ */
|
|
1177
|
+
return /* @__PURE__ */ D(Fn, {
|
|
1178
1178
|
"aria-label": "pagination navigation",
|
|
1179
1179
|
className: Se(_.root, i),
|
|
1180
1180
|
ownerState: T,
|
|
1181
1181
|
ref: r,
|
|
1182
1182
|
...L,
|
|
1183
|
-
children: /* @__PURE__ */
|
|
1183
|
+
children: /* @__PURE__ */ D(Hn, {
|
|
1184
1184
|
className: _.ul,
|
|
1185
1185
|
ownerState: T,
|
|
1186
|
-
children: P.map((M, F) => /* @__PURE__ */
|
|
1186
|
+
children: P.map((M, F) => /* @__PURE__ */ D("li", {
|
|
1187
1187
|
children: p({
|
|
1188
1188
|
...M,
|
|
1189
1189
|
color: s,
|
|
@@ -1196,7 +1196,7 @@ const hr = /* @__PURE__ */ d.forwardRef(function(t, r) {
|
|
|
1196
1196
|
})
|
|
1197
1197
|
});
|
|
1198
1198
|
});
|
|
1199
|
-
process.env.NODE_ENV !== "production" && (
|
|
1199
|
+
process.env.NODE_ENV !== "production" && (bt.propTypes = {
|
|
1200
1200
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1201
1201
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1202
1202
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1340,7 +1340,7 @@ function ee(e, t, r) {
|
|
|
1340
1340
|
writable: !0
|
|
1341
1341
|
}) : e[t] = r, e;
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function Zt(e, t) {
|
|
1344
1344
|
var r = Object.keys(e);
|
|
1345
1345
|
if (Object.getOwnPropertySymbols) {
|
|
1346
1346
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -1353,9 +1353,9 @@ function qt(e, t) {
|
|
|
1353
1353
|
function q(e) {
|
|
1354
1354
|
for (var t = 1; t < arguments.length; t++) {
|
|
1355
1355
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
1356
|
-
t % 2 ?
|
|
1356
|
+
t % 2 ? Zt(Object(r), !0).forEach(function(n) {
|
|
1357
1357
|
ee(e, n, r[n]);
|
|
1358
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
1358
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Zt(Object(r)).forEach(function(n) {
|
|
1359
1359
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
@@ -1367,34 +1367,34 @@ function Wn(e) {
|
|
|
1367
1367
|
function Yn(e, t) {
|
|
1368
1368
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1369
1369
|
if (r != null) {
|
|
1370
|
-
var n, o, i, s, l = [],
|
|
1370
|
+
var n, o, i, s, l = [], d = !0, f = !1;
|
|
1371
1371
|
try {
|
|
1372
1372
|
if (i = (r = r.call(e)).next, t === 0) {
|
|
1373
1373
|
if (Object(r) !== r) return;
|
|
1374
|
-
|
|
1375
|
-
} else for (; !(
|
|
1374
|
+
d = !1;
|
|
1375
|
+
} else for (; !(d = (n = i.call(r)).done) && (l.push(n.value), l.length !== t); d = !0) ;
|
|
1376
1376
|
} catch (m) {
|
|
1377
|
-
|
|
1377
|
+
f = !0, o = m;
|
|
1378
1378
|
} finally {
|
|
1379
1379
|
try {
|
|
1380
|
-
if (!
|
|
1380
|
+
if (!d && r.return != null && (s = r.return(), Object(s) !== s)) return;
|
|
1381
1381
|
} finally {
|
|
1382
|
-
if (
|
|
1382
|
+
if (f) throw o;
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
1385
|
return l;
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function Jt(e, t) {
|
|
1389
1389
|
(t == null || t > e.length) && (t = e.length);
|
|
1390
1390
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1391
1391
|
return n;
|
|
1392
1392
|
}
|
|
1393
1393
|
function Gn(e, t) {
|
|
1394
1394
|
if (e) {
|
|
1395
|
-
if (typeof e == "string") return
|
|
1395
|
+
if (typeof e == "string") return Jt(e, t);
|
|
1396
1396
|
var r = {}.toString.call(e).slice(8, -1);
|
|
1397
|
-
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) ?
|
|
1397
|
+
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;
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
function Un() {
|
|
@@ -1460,18 +1460,18 @@ function br(e) {
|
|
|
1460
1460
|
e.type === Jn
|
|
1461
1461
|
);
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function yt(e) {
|
|
1464
1464
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [];
|
|
1465
|
-
return
|
|
1466
|
-
n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(
|
|
1465
|
+
return dr.Children.forEach(e, function(n) {
|
|
1466
|
+
n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(yt(n)) : br(n) && n.props ? r = r.concat(yt(n.props.children, t)) : r.push(n));
|
|
1467
1467
|
}), r;
|
|
1468
1468
|
}
|
|
1469
|
-
var
|
|
1470
|
-
|
|
1469
|
+
var St = {}, Mt = [], Qn = function(t) {
|
|
1470
|
+
Mt.push(t);
|
|
1471
1471
|
};
|
|
1472
|
-
function
|
|
1472
|
+
function Rt(e, t) {
|
|
1473
1473
|
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
1474
|
-
var r =
|
|
1474
|
+
var r = Mt.reduce(function(n, o) {
|
|
1475
1475
|
return o(n ?? "", "warning");
|
|
1476
1476
|
}, t);
|
|
1477
1477
|
r && console.error("Warning: ".concat(r));
|
|
@@ -1479,20 +1479,20 @@ function St(e, t) {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
function eo(e, t) {
|
|
1481
1481
|
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
1482
|
-
var r =
|
|
1482
|
+
var r = Mt.reduce(function(n, o) {
|
|
1483
1483
|
return o(n ?? "", "note");
|
|
1484
1484
|
}, t);
|
|
1485
1485
|
r && console.warn("Note: ".concat(r));
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
1488
|
function to() {
|
|
1489
|
-
|
|
1489
|
+
St = {};
|
|
1490
1490
|
}
|
|
1491
1491
|
function yr(e, t, r) {
|
|
1492
|
-
!t && !
|
|
1492
|
+
!t && !St[r] && (e(!1, r), St[r] = !0);
|
|
1493
1493
|
}
|
|
1494
1494
|
function nt(e, t) {
|
|
1495
|
-
yr(
|
|
1495
|
+
yr(Rt, e, t);
|
|
1496
1496
|
}
|
|
1497
1497
|
function ro(e, t) {
|
|
1498
1498
|
yr(eo, e, t);
|
|
@@ -1500,23 +1500,23 @@ function ro(e, t) {
|
|
|
1500
1500
|
nt.preMessage = Qn;
|
|
1501
1501
|
nt.resetWarned = to;
|
|
1502
1502
|
nt.noteOnce = ro;
|
|
1503
|
-
function
|
|
1503
|
+
function Qt(e) {
|
|
1504
1504
|
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
1505
1505
|
}
|
|
1506
1506
|
function no(e) {
|
|
1507
|
-
return e && oe(e) === "object" &&
|
|
1507
|
+
return e && oe(e) === "object" && Qt(e.nativeElement) ? e.nativeElement : Qt(e) ? e : null;
|
|
1508
1508
|
}
|
|
1509
1509
|
function qe(e) {
|
|
1510
1510
|
var t = no(e);
|
|
1511
1511
|
if (t)
|
|
1512
1512
|
return t;
|
|
1513
|
-
if (e instanceof
|
|
1513
|
+
if (e instanceof dr.Component) {
|
|
1514
1514
|
var r;
|
|
1515
|
-
return (r =
|
|
1515
|
+
return (r = Ut.findDOMNode) === null || r === void 0 ? void 0 : r.call(Ut, e);
|
|
1516
1516
|
}
|
|
1517
1517
|
return null;
|
|
1518
1518
|
}
|
|
1519
|
-
var
|
|
1519
|
+
var Et = { exports: {} }, N = {};
|
|
1520
1520
|
/**
|
|
1521
1521
|
* @license React
|
|
1522
1522
|
* react-is.production.min.js
|
|
@@ -1526,11 +1526,11 @@ var Rt = { exports: {} }, N = {};
|
|
|
1526
1526
|
* This source code is licensed under the MIT license found in the
|
|
1527
1527
|
* LICENSE file in the root directory of this source tree.
|
|
1528
1528
|
*/
|
|
1529
|
-
var
|
|
1529
|
+
var er;
|
|
1530
1530
|
function oo() {
|
|
1531
|
-
if (
|
|
1532
|
-
|
|
1533
|
-
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"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"),
|
|
1531
|
+
if (er) return N;
|
|
1532
|
+
er = 1;
|
|
1533
|
+
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"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), y;
|
|
1534
1534
|
y = Symbol.for("react.module.reference");
|
|
1535
1535
|
function p(c) {
|
|
1536
1536
|
if (typeof c == "object" && c !== null) {
|
|
@@ -1541,14 +1541,14 @@ function oo() {
|
|
|
1541
1541
|
case r:
|
|
1542
1542
|
case o:
|
|
1543
1543
|
case n:
|
|
1544
|
-
case
|
|
1544
|
+
case f:
|
|
1545
1545
|
case m:
|
|
1546
1546
|
return c;
|
|
1547
1547
|
default:
|
|
1548
1548
|
switch (c = c && c.$$typeof, c) {
|
|
1549
1549
|
case l:
|
|
1550
1550
|
case s:
|
|
1551
|
-
case
|
|
1551
|
+
case d:
|
|
1552
1552
|
case g:
|
|
1553
1553
|
case h:
|
|
1554
1554
|
case i:
|
|
@@ -1562,7 +1562,7 @@ function oo() {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
1564
|
}
|
|
1565
|
-
return N.ContextConsumer = s, N.ContextProvider = i, N.Element = e, N.ForwardRef =
|
|
1565
|
+
return N.ContextConsumer = s, N.ContextProvider = i, N.Element = e, N.ForwardRef = d, N.Fragment = r, N.Lazy = g, N.Memo = h, N.Portal = t, N.Profiler = o, N.StrictMode = n, N.Suspense = f, N.SuspenseList = m, N.isAsyncMode = function() {
|
|
1566
1566
|
return !1;
|
|
1567
1567
|
}, N.isConcurrentMode = function() {
|
|
1568
1568
|
return !1;
|
|
@@ -1573,7 +1573,7 @@ function oo() {
|
|
|
1573
1573
|
}, N.isElement = function(c) {
|
|
1574
1574
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
1575
1575
|
}, N.isForwardRef = function(c) {
|
|
1576
|
-
return p(c) ===
|
|
1576
|
+
return p(c) === d;
|
|
1577
1577
|
}, N.isFragment = function(c) {
|
|
1578
1578
|
return p(c) === r;
|
|
1579
1579
|
}, N.isLazy = function(c) {
|
|
@@ -1587,11 +1587,11 @@ function oo() {
|
|
|
1587
1587
|
}, N.isStrictMode = function(c) {
|
|
1588
1588
|
return p(c) === n;
|
|
1589
1589
|
}, N.isSuspense = function(c) {
|
|
1590
|
-
return p(c) ===
|
|
1590
|
+
return p(c) === f;
|
|
1591
1591
|
}, N.isSuspenseList = function(c) {
|
|
1592
1592
|
return p(c) === m;
|
|
1593
1593
|
}, N.isValidElementType = function(c) {
|
|
1594
|
-
return typeof c == "string" || typeof c == "function" || c === r || c === o || c === n || c ===
|
|
1594
|
+
return typeof c == "string" || typeof c == "function" || c === r || c === o || c === n || c === f || c === m || c === b || typeof c == "object" && c !== null && (c.$$typeof === g || c.$$typeof === h || c.$$typeof === i || c.$$typeof === s || c.$$typeof === d || c.$$typeof === y || c.getModuleId !== void 0);
|
|
1595
1595
|
}, N.typeOf = p, N;
|
|
1596
1596
|
}
|
|
1597
1597
|
var A = {};
|
|
@@ -1604,13 +1604,13 @@ var A = {};
|
|
|
1604
1604
|
* This source code is licensed under the MIT license found in the
|
|
1605
1605
|
* LICENSE file in the root directory of this source tree.
|
|
1606
1606
|
*/
|
|
1607
|
-
var
|
|
1607
|
+
var tr;
|
|
1608
1608
|
function io() {
|
|
1609
|
-
return
|
|
1610
|
-
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"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"),
|
|
1609
|
+
return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1610
|
+
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"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), y = !1, p = !1, c = !1, w = !1, u = !1, R;
|
|
1611
1611
|
R = Symbol.for("react.module.reference");
|
|
1612
1612
|
function C(S) {
|
|
1613
|
-
return !!(typeof S == "string" || typeof S == "function" || S === r || S === o || u || S === n || S ===
|
|
1613
|
+
return !!(typeof S == "string" || typeof S == "function" || S === r || S === o || u || S === n || S === f || S === m || w || S === b || y || p || c || typeof S == "object" && S !== null && (S.$$typeof === g || S.$$typeof === h || S.$$typeof === i || S.$$typeof === s || S.$$typeof === d || // This needs to include all possible module reference object
|
|
1614
1614
|
// types supported by any Flight configuration anywhere since
|
|
1615
1615
|
// we don't know which Flight build this will end up being used
|
|
1616
1616
|
// with.
|
|
@@ -1626,7 +1626,7 @@ function io() {
|
|
|
1626
1626
|
case r:
|
|
1627
1627
|
case o:
|
|
1628
1628
|
case n:
|
|
1629
|
-
case
|
|
1629
|
+
case f:
|
|
1630
1630
|
case m:
|
|
1631
1631
|
return ue;
|
|
1632
1632
|
default:
|
|
@@ -1634,7 +1634,7 @@ function io() {
|
|
|
1634
1634
|
switch (be) {
|
|
1635
1635
|
case l:
|
|
1636
1636
|
case s:
|
|
1637
|
-
case
|
|
1637
|
+
case d:
|
|
1638
1638
|
case g:
|
|
1639
1639
|
case h:
|
|
1640
1640
|
case i:
|
|
@@ -1648,7 +1648,7 @@ function io() {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
}
|
|
1650
1650
|
}
|
|
1651
|
-
var L = s, P = i, T = e, _ =
|
|
1651
|
+
var L = s, P = i, T = e, _ = d, M = r, F = g, Y = h, B = t, $ = o, G = n, k = f, ae = m, Z = !1, W = !1;
|
|
1652
1652
|
function me(S) {
|
|
1653
1653
|
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1654
1654
|
}
|
|
@@ -1665,7 +1665,7 @@ function io() {
|
|
|
1665
1665
|
return typeof S == "object" && S !== null && S.$$typeof === e;
|
|
1666
1666
|
}
|
|
1667
1667
|
function Re(S) {
|
|
1668
|
-
return x(S) ===
|
|
1668
|
+
return x(S) === d;
|
|
1669
1669
|
}
|
|
1670
1670
|
function ge(S) {
|
|
1671
1671
|
return x(S) === r;
|
|
@@ -1686,18 +1686,18 @@ function io() {
|
|
|
1686
1686
|
return x(S) === n;
|
|
1687
1687
|
}
|
|
1688
1688
|
function re(S) {
|
|
1689
|
-
return x(S) ===
|
|
1689
|
+
return x(S) === f;
|
|
1690
1690
|
}
|
|
1691
1691
|
function Ee(S) {
|
|
1692
1692
|
return x(S) === m;
|
|
1693
1693
|
}
|
|
1694
|
-
A.ContextConsumer = L, A.ContextProvider = P, A.Element = T, A.ForwardRef = _, A.Fragment = M, A.Lazy = F, A.Memo = Y, A.Portal = B, A.Profiler = $, A.StrictMode = G, A.Suspense =
|
|
1694
|
+
A.ContextConsumer = L, A.ContextProvider = P, A.Element = T, A.ForwardRef = _, A.Fragment = M, A.Lazy = F, A.Memo = Y, A.Portal = B, A.Profiler = $, A.StrictMode = G, A.Suspense = k, A.SuspenseList = ae, A.isAsyncMode = me, A.isConcurrentMode = H, A.isContextConsumer = se, A.isContextProvider = pe, A.isElement = he, A.isForwardRef = Re, A.isFragment = ge, A.isLazy = U, A.isMemo = te, A.isPortal = ie, A.isProfiler = X, A.isStrictMode = z, A.isSuspense = re, A.isSuspenseList = Ee, A.isValidElementType = C, A.typeOf = x;
|
|
1695
1695
|
}()), A;
|
|
1696
1696
|
}
|
|
1697
|
-
process.env.NODE_ENV === "production" ?
|
|
1698
|
-
var ht =
|
|
1697
|
+
process.env.NODE_ENV === "production" ? Et.exports = oo() : Et.exports = io();
|
|
1698
|
+
var ht = Et.exports;
|
|
1699
1699
|
function ao(e, t, r) {
|
|
1700
|
-
var n =
|
|
1700
|
+
var n = v.useRef({});
|
|
1701
1701
|
return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
|
|
1702
1702
|
}
|
|
1703
1703
|
var so = function(t, r) {
|
|
@@ -1739,20 +1739,20 @@ var fo = function(t) {
|
|
|
1739
1739
|
return r.props.propertyIsEnumerable("ref") ? r.props.ref : r.ref;
|
|
1740
1740
|
}
|
|
1741
1741
|
return null;
|
|
1742
|
-
},
|
|
1742
|
+
}, wt = /* @__PURE__ */ v.createContext(null);
|
|
1743
1743
|
function vo(e) {
|
|
1744
|
-
var t = e.children, r = e.onBatchResize, n =
|
|
1744
|
+
var t = e.children, r = e.onBatchResize, n = v.useRef(0), o = v.useRef([]), i = v.useContext(wt), s = v.useCallback(function(l, d, f) {
|
|
1745
1745
|
n.current += 1;
|
|
1746
1746
|
var m = n.current;
|
|
1747
1747
|
o.current.push({
|
|
1748
1748
|
size: l,
|
|
1749
|
-
element:
|
|
1750
|
-
data:
|
|
1749
|
+
element: d,
|
|
1750
|
+
data: f
|
|
1751
1751
|
}), Promise.resolve().then(function() {
|
|
1752
1752
|
m === n.current && (r == null || r(o.current), o.current = []);
|
|
1753
|
-
}), i == null || i(l,
|
|
1753
|
+
}), i == null || i(l, d, f);
|
|
1754
1754
|
}, [r, i]);
|
|
1755
|
-
return /* @__PURE__ */
|
|
1755
|
+
return /* @__PURE__ */ v.createElement(wt.Provider, {
|
|
1756
1756
|
value: s
|
|
1757
1757
|
}, t);
|
|
1758
1758
|
}
|
|
@@ -1802,7 +1802,7 @@ var Rr = function() {
|
|
|
1802
1802
|
}, t;
|
|
1803
1803
|
}()
|
|
1804
1804
|
);
|
|
1805
|
-
}(),
|
|
1805
|
+
}(), xt = typeof window < "u" && typeof document < "u" && window.document === document, Je = function() {
|
|
1806
1806
|
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")();
|
|
1807
1807
|
}(), po = function() {
|
|
1808
1808
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Je) : function(e) {
|
|
@@ -1820,14 +1820,14 @@ function mo(e, t) {
|
|
|
1820
1820
|
po(i);
|
|
1821
1821
|
}
|
|
1822
1822
|
function l() {
|
|
1823
|
-
var
|
|
1823
|
+
var d = Date.now();
|
|
1824
1824
|
if (r) {
|
|
1825
|
-
if (
|
|
1825
|
+
if (d - o < ho)
|
|
1826
1826
|
return;
|
|
1827
1827
|
n = !0;
|
|
1828
1828
|
} else
|
|
1829
1829
|
r = !0, n = !1, setTimeout(s, t);
|
|
1830
|
-
o =
|
|
1830
|
+
o = d;
|
|
1831
1831
|
}
|
|
1832
1832
|
return l;
|
|
1833
1833
|
}
|
|
@@ -1853,14 +1853,14 @@ var go = 20, bo = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1853
1853
|
return r.broadcastActive();
|
|
1854
1854
|
}), t.length > 0;
|
|
1855
1855
|
}, e.prototype.connect_ = function() {
|
|
1856
|
-
!
|
|
1856
|
+
!xt || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), yo ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1857
1857
|
attributes: !0,
|
|
1858
1858
|
childList: !0,
|
|
1859
1859
|
characterData: !0,
|
|
1860
1860
|
subtree: !0
|
|
1861
1861
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
1862
1862
|
}, e.prototype.disconnect_ = function() {
|
|
1863
|
-
!
|
|
1863
|
+
!xt || !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);
|
|
1864
1864
|
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
1865
1865
|
var r = t.propertyName, n = r === void 0 ? "" : r, o = bo.some(function(i) {
|
|
1866
1866
|
return !!~n.indexOf(i);
|
|
@@ -1888,7 +1888,7 @@ var go = 20, bo = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1888
1888
|
function Qe(e) {
|
|
1889
1889
|
return parseFloat(e) || 0;
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function rr(e) {
|
|
1892
1892
|
for (var t = [], r = 1; r < arguments.length; r++)
|
|
1893
1893
|
t[r - 1] = arguments[r];
|
|
1894
1894
|
return t.reduce(function(n, o) {
|
|
@@ -1911,12 +1911,12 @@ function wo(e) {
|
|
|
1911
1911
|
var t = e.clientWidth, r = e.clientHeight;
|
|
1912
1912
|
if (!t && !r)
|
|
1913
1913
|
return wr;
|
|
1914
|
-
var n = Pe(e).getComputedStyle(e), o = Ro(n), i = o.left + o.right, s = o.top + o.bottom, l = Qe(n.width),
|
|
1915
|
-
if (n.boxSizing === "border-box" && (Math.round(l + i) !== t && (l -=
|
|
1916
|
-
var
|
|
1917
|
-
Math.abs(
|
|
1914
|
+
var n = Pe(e).getComputedStyle(e), o = Ro(n), i = o.left + o.right, s = o.top + o.bottom, l = Qe(n.width), d = Qe(n.height);
|
|
1915
|
+
if (n.boxSizing === "border-box" && (Math.round(l + i) !== t && (l -= rr(n, "left", "right") + i), Math.round(d + s) !== r && (d -= rr(n, "top", "bottom") + s)), !_o(e)) {
|
|
1916
|
+
var f = Math.round(l + i) - t, m = Math.round(d + s) - r;
|
|
1917
|
+
Math.abs(f) !== 1 && (l -= f), Math.abs(m) !== 1 && (d -= m);
|
|
1918
1918
|
}
|
|
1919
|
-
return ot(o.left, o.top, l,
|
|
1919
|
+
return ot(o.left, o.top, l, d);
|
|
1920
1920
|
}
|
|
1921
1921
|
var xo = /* @__PURE__ */ function() {
|
|
1922
1922
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
@@ -1929,7 +1929,7 @@ function _o(e) {
|
|
|
1929
1929
|
return e === Pe(e).document.documentElement;
|
|
1930
1930
|
}
|
|
1931
1931
|
function Oo(e) {
|
|
1932
|
-
return
|
|
1932
|
+
return xt ? xo(e) ? Eo(e) : wo(e) : wr;
|
|
1933
1933
|
}
|
|
1934
1934
|
function Co(e) {
|
|
1935
1935
|
var t = e.x, r = e.y, n = e.width, o = e.height, i = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(i.prototype);
|
|
@@ -2129,33 +2129,33 @@ var jo = /* @__PURE__ */ function(e) {
|
|
|
2129
2129
|
return this.props.children;
|
|
2130
2130
|
}
|
|
2131
2131
|
}]), r;
|
|
2132
|
-
}(
|
|
2132
|
+
}(v.Component);
|
|
2133
2133
|
function ko(e, t) {
|
|
2134
|
-
var r = e.children, n = e.disabled, o =
|
|
2134
|
+
var r = e.children, n = e.disabled, o = v.useRef(null), i = v.useRef(null), s = v.useContext(wt), l = typeof r == "function", d = l ? r(o) : r, f = v.useRef({
|
|
2135
2135
|
width: -1,
|
|
2136
2136
|
height: -1,
|
|
2137
2137
|
offsetWidth: -1,
|
|
2138
2138
|
offsetHeight: -1
|
|
2139
|
-
}), m = !l && /* @__PURE__ */
|
|
2139
|
+
}), m = !l && /* @__PURE__ */ v.isValidElement(d) && uo(d), h = m ? fo(d) : null, g = lo(h, o), b = function() {
|
|
2140
2140
|
var w;
|
|
2141
2141
|
return qe(o.current) || // Support `nativeElement` format
|
|
2142
2142
|
(o.current && oe(o.current) === "object" ? qe((w = o.current) === null || w === void 0 ? void 0 : w.nativeElement) : null) || qe(i.current);
|
|
2143
2143
|
};
|
|
2144
|
-
|
|
2144
|
+
v.useImperativeHandle(t, function() {
|
|
2145
2145
|
return b();
|
|
2146
2146
|
});
|
|
2147
|
-
var y =
|
|
2147
|
+
var y = v.useRef(e);
|
|
2148
2148
|
y.current = e;
|
|
2149
|
-
var p =
|
|
2149
|
+
var p = v.useCallback(function(c) {
|
|
2150
2150
|
var w = y.current, u = w.onResize, R = w.data, C = c.getBoundingClientRect(), x = C.width, L = C.height, P = c.offsetWidth, T = c.offsetHeight, _ = Math.floor(x), M = Math.floor(L);
|
|
2151
|
-
if (
|
|
2151
|
+
if (f.current.width !== _ || f.current.height !== M || f.current.offsetWidth !== P || f.current.offsetHeight !== T) {
|
|
2152
2152
|
var F = {
|
|
2153
2153
|
width: _,
|
|
2154
2154
|
height: M,
|
|
2155
2155
|
offsetWidth: P,
|
|
2156
2156
|
offsetHeight: T
|
|
2157
2157
|
};
|
|
2158
|
-
|
|
2158
|
+
f.current = F;
|
|
2159
2159
|
var Y = P === Math.round(x) ? x : P, B = T === Math.round(L) ? L : T, $ = q(q({}, F), {}, {
|
|
2160
2160
|
offsetWidth: Y,
|
|
2161
2161
|
offsetHeight: B
|
|
@@ -2165,37 +2165,37 @@ function ko(e, t) {
|
|
|
2165
2165
|
});
|
|
2166
2166
|
}
|
|
2167
2167
|
}, []);
|
|
2168
|
-
return
|
|
2168
|
+
return v.useEffect(function() {
|
|
2169
2169
|
var c = b();
|
|
2170
2170
|
return c && !n && Lo(c, p), function() {
|
|
2171
2171
|
return No(c, p);
|
|
2172
2172
|
};
|
|
2173
|
-
}, [o.current, n]), /* @__PURE__ */
|
|
2173
|
+
}, [o.current, n]), /* @__PURE__ */ v.createElement(jo, {
|
|
2174
2174
|
ref: i
|
|
2175
|
-
}, m ? /* @__PURE__ */
|
|
2175
|
+
}, m ? /* @__PURE__ */ v.cloneElement(d, {
|
|
2176
2176
|
ref: g
|
|
2177
|
-
}) :
|
|
2177
|
+
}) : d);
|
|
2178
2178
|
}
|
|
2179
|
-
var Ir = /* @__PURE__ */
|
|
2179
|
+
var Ir = /* @__PURE__ */ v.forwardRef(ko);
|
|
2180
2180
|
process.env.NODE_ENV !== "production" && (Ir.displayName = "SingleObserver");
|
|
2181
2181
|
var Fo = "rc-observer-key";
|
|
2182
2182
|
function Ho(e, t) {
|
|
2183
|
-
var r = e.children, n = typeof r == "function" ? [r] :
|
|
2184
|
-
return process.env.NODE_ENV !== "production" && (n.length > 1 ?
|
|
2183
|
+
var r = e.children, n = typeof r == "function" ? [r] : yt(r);
|
|
2184
|
+
return process.env.NODE_ENV !== "production" && (n.length > 1 ? Rt(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : n.length === 0 && Rt(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), n.map(function(o, i) {
|
|
2185
2185
|
var s = (o == null ? void 0 : o.key) || "".concat(Fo, "-").concat(i);
|
|
2186
|
-
return /* @__PURE__ */
|
|
2186
|
+
return /* @__PURE__ */ v.createElement(Ir, Ct({}, e, {
|
|
2187
2187
|
key: s,
|
|
2188
2188
|
ref: i === 0 ? t : void 0
|
|
2189
2189
|
}), o);
|
|
2190
2190
|
});
|
|
2191
2191
|
}
|
|
2192
|
-
var it = /* @__PURE__ */
|
|
2192
|
+
var it = /* @__PURE__ */ v.forwardRef(Ho);
|
|
2193
2193
|
process.env.NODE_ENV !== "production" && (it.displayName = "ResizeObserver");
|
|
2194
2194
|
it.Collection = vo;
|
|
2195
|
-
function
|
|
2196
|
-
var t =
|
|
2195
|
+
function nr(e) {
|
|
2196
|
+
var t = v.useRef();
|
|
2197
2197
|
t.current = e;
|
|
2198
|
-
var r =
|
|
2198
|
+
var r = v.useCallback(function() {
|
|
2199
2199
|
for (var n, o = arguments.length, i = new Array(o), s = 0; s < o; s++)
|
|
2200
2200
|
i[s] = arguments[s];
|
|
2201
2201
|
return (n = t.current) === null || n === void 0 ? void 0 : n.call.apply(n, [t].concat(i));
|
|
@@ -2205,17 +2205,17 @@ function rr(e) {
|
|
|
2205
2205
|
function Vo() {
|
|
2206
2206
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2207
2207
|
}
|
|
2208
|
-
var
|
|
2209
|
-
var n =
|
|
2210
|
-
|
|
2208
|
+
var or = process.env.NODE_ENV !== "test" && Vo() ? v.useLayoutEffect : v.useEffect, De = function(t, r) {
|
|
2209
|
+
var n = v.useRef(!0);
|
|
2210
|
+
or(function() {
|
|
2211
2211
|
return t(n.current);
|
|
2212
|
-
}, r),
|
|
2212
|
+
}, r), or(function() {
|
|
2213
2213
|
return n.current = !1, function() {
|
|
2214
2214
|
n.current = !0;
|
|
2215
2215
|
};
|
|
2216
2216
|
}, []);
|
|
2217
|
-
}, Lr = /* @__PURE__ */
|
|
2218
|
-
var r = e.height, n = e.offsetY, o = e.offsetX, i = e.children, s = e.prefixCls, l = e.onInnerResize,
|
|
2217
|
+
}, Lr = /* @__PURE__ */ v.forwardRef(function(e, t) {
|
|
2218
|
+
var r = e.height, n = e.offsetY, o = e.offsetX, i = e.children, s = e.prefixCls, l = e.onInnerResize, d = e.innerProps, f = e.rtl, m = e.extra, h = {}, g = {
|
|
2219
2219
|
display: "flex",
|
|
2220
2220
|
flexDirection: "column"
|
|
2221
2221
|
};
|
|
@@ -2225,41 +2225,41 @@ var nr = process.env.NODE_ENV !== "test" && Vo() ? d.useLayoutEffect : d.useEffe
|
|
|
2225
2225
|
overflow: "hidden"
|
|
2226
2226
|
}, g = q(q({}, g), {}, ee(ee(ee(ee(ee({
|
|
2227
2227
|
transform: "translateY(".concat(n, "px)")
|
|
2228
|
-
},
|
|
2228
|
+
}, f ? "marginRight" : "marginLeft", -o), "position", "absolute"), "left", 0), "right", 0), "top", 0))), /* @__PURE__ */ v.createElement("div", {
|
|
2229
2229
|
style: h
|
|
2230
|
-
}, /* @__PURE__ */
|
|
2230
|
+
}, /* @__PURE__ */ v.createElement(it, {
|
|
2231
2231
|
onResize: function(y) {
|
|
2232
2232
|
var p = y.offsetHeight;
|
|
2233
2233
|
p && l && l();
|
|
2234
2234
|
}
|
|
2235
|
-
}, /* @__PURE__ */
|
|
2235
|
+
}, /* @__PURE__ */ v.createElement("div", Ct({
|
|
2236
2236
|
style: g,
|
|
2237
2237
|
className: Ze(ee({}, "".concat(s, "-holder-inner"), s)),
|
|
2238
2238
|
ref: t
|
|
2239
|
-
},
|
|
2239
|
+
}, d), i, m)));
|
|
2240
2240
|
});
|
|
2241
2241
|
Lr.displayName = "Filler";
|
|
2242
2242
|
function Bo(e) {
|
|
2243
|
-
var t = e.children, r = e.setRef, n =
|
|
2243
|
+
var t = e.children, r = e.setRef, n = v.useCallback(function(o) {
|
|
2244
2244
|
r(o);
|
|
2245
2245
|
}, []);
|
|
2246
|
-
return /* @__PURE__ */
|
|
2246
|
+
return /* @__PURE__ */ v.cloneElement(t, {
|
|
2247
2247
|
ref: n
|
|
2248
2248
|
});
|
|
2249
2249
|
}
|
|
2250
2250
|
function Wo(e, t, r, n, o, i, s, l) {
|
|
2251
|
-
var
|
|
2252
|
-
return e.slice(t, r + 1).map(function(
|
|
2253
|
-
var h = t + m, g = s(
|
|
2251
|
+
var d = l.getKey;
|
|
2252
|
+
return e.slice(t, r + 1).map(function(f, m) {
|
|
2253
|
+
var h = t + m, g = s(f, h, {
|
|
2254
2254
|
style: {
|
|
2255
2255
|
width: n
|
|
2256
2256
|
},
|
|
2257
2257
|
offsetX: o
|
|
2258
|
-
}), b = f
|
|
2259
|
-
return /* @__PURE__ */
|
|
2258
|
+
}), b = d(f);
|
|
2259
|
+
return /* @__PURE__ */ v.createElement(Bo, {
|
|
2260
2260
|
key: b,
|
|
2261
2261
|
setRef: function(p) {
|
|
2262
|
-
return i(
|
|
2262
|
+
return i(f, p);
|
|
2263
2263
|
}
|
|
2264
2264
|
}, g);
|
|
2265
2265
|
});
|
|
@@ -2272,27 +2272,27 @@ function Yo(e, t, r) {
|
|
|
2272
2272
|
var l = {
|
|
2273
2273
|
__EMPTY_ITEM__: !0
|
|
2274
2274
|
};
|
|
2275
|
-
function
|
|
2275
|
+
function d(y) {
|
|
2276
2276
|
return y !== void 0 ? r(y) : l;
|
|
2277
2277
|
}
|
|
2278
|
-
for (var
|
|
2279
|
-
var g =
|
|
2278
|
+
for (var f = null, m = Math.abs(n - o) !== 1, h = 0; h < s.length; h += 1) {
|
|
2279
|
+
var g = d(i[h]), b = d(s[h]);
|
|
2280
2280
|
if (g !== b) {
|
|
2281
|
-
|
|
2281
|
+
f = h, m = m || g !== d(s[h + 1]);
|
|
2282
2282
|
break;
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
|
-
return
|
|
2286
|
-
index:
|
|
2285
|
+
return f === null ? null : {
|
|
2286
|
+
index: f,
|
|
2287
2287
|
multiple: m
|
|
2288
2288
|
};
|
|
2289
2289
|
}
|
|
2290
2290
|
function Go(e, t, r) {
|
|
2291
|
-
var n =
|
|
2292
|
-
return
|
|
2291
|
+
var n = v.useState(e), o = K(n, 2), i = o[0], s = o[1], l = v.useState(null), d = K(l, 2), f = d[0], m = d[1];
|
|
2292
|
+
return v.useEffect(function() {
|
|
2293
2293
|
var h = Yo(i || [], e || [], t);
|
|
2294
2294
|
(h == null ? void 0 : h.index) !== void 0 && m(e[h.index]), s(e);
|
|
2295
|
-
}, [e]), [
|
|
2295
|
+
}, [e]), [f];
|
|
2296
2296
|
}
|
|
2297
2297
|
var Nr = function(t) {
|
|
2298
2298
|
return +setTimeout(t, 16);
|
|
@@ -2304,14 +2304,14 @@ typeof window < "u" && "requestAnimationFrame" in window && (Nr = function(t) {
|
|
|
2304
2304
|
}, Ar = function(t) {
|
|
2305
2305
|
return window.cancelAnimationFrame(t);
|
|
2306
2306
|
});
|
|
2307
|
-
var
|
|
2307
|
+
var ir = 0, at = /* @__PURE__ */ new Map();
|
|
2308
2308
|
function $r(e) {
|
|
2309
2309
|
at.delete(e);
|
|
2310
2310
|
}
|
|
2311
2311
|
var ne = function(t) {
|
|
2312
2312
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
2313
|
-
|
|
2314
|
-
var n =
|
|
2313
|
+
ir += 1;
|
|
2314
|
+
var n = ir;
|
|
2315
2315
|
function o(i) {
|
|
2316
2316
|
if (i === 0)
|
|
2317
2317
|
$r(n), t();
|
|
@@ -2331,49 +2331,49 @@ ne.cancel = function(e) {
|
|
|
2331
2331
|
process.env.NODE_ENV !== "production" && (ne.ids = function() {
|
|
2332
2332
|
return at;
|
|
2333
2333
|
});
|
|
2334
|
-
var
|
|
2334
|
+
var ar = (typeof navigator > "u" ? "undefined" : oe(navigator)) === "object" && /Firefox/i.test(navigator.userAgent);
|
|
2335
2335
|
const zr = function(e, t, r, n) {
|
|
2336
|
-
var o =
|
|
2336
|
+
var o = j(!1), i = j(null);
|
|
2337
2337
|
function s() {
|
|
2338
2338
|
clearTimeout(i.current), o.current = !0, i.current = setTimeout(function() {
|
|
2339
2339
|
o.current = !1;
|
|
2340
2340
|
}, 50);
|
|
2341
2341
|
}
|
|
2342
|
-
var l =
|
|
2342
|
+
var l = j({
|
|
2343
2343
|
top: e,
|
|
2344
2344
|
bottom: t,
|
|
2345
2345
|
left: r,
|
|
2346
2346
|
right: n
|
|
2347
2347
|
});
|
|
2348
|
-
return l.current.top = e, l.current.bottom = t, l.current.left = r, l.current.right = n, function(
|
|
2349
|
-
var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, h =
|
|
2348
|
+
return l.current.top = e, l.current.bottom = t, l.current.left = r, l.current.right = n, function(d, f) {
|
|
2349
|
+
var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, h = d ? (
|
|
2350
2350
|
// Pass origin wheel when on the left
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
) :
|
|
2354
|
-
|
|
2351
|
+
f < 0 && l.current.left || // Pass origin wheel when on the right
|
|
2352
|
+
f > 0 && l.current.right
|
|
2353
|
+
) : f < 0 && l.current.top || // Pass origin wheel when on the bottom
|
|
2354
|
+
f > 0 && l.current.bottom;
|
|
2355
2355
|
return m && h ? (clearTimeout(i.current), o.current = !1) : (!h || o.current) && s(), !o.current && h;
|
|
2356
2356
|
};
|
|
2357
2357
|
};
|
|
2358
2358
|
function Uo(e, t, r, n, o, i, s) {
|
|
2359
|
-
var l =
|
|
2359
|
+
var l = j(0), d = j(null), f = j(null), m = j(!1), h = zr(t, r, n, o);
|
|
2360
2360
|
function g(u, R) {
|
|
2361
|
-
if (ne.cancel(
|
|
2361
|
+
if (ne.cancel(d.current), !h(!1, R)) {
|
|
2362
2362
|
var C = u;
|
|
2363
2363
|
if (!C._virtualHandled)
|
|
2364
2364
|
C._virtualHandled = !0;
|
|
2365
2365
|
else
|
|
2366
2366
|
return;
|
|
2367
|
-
l.current += R,
|
|
2367
|
+
l.current += R, f.current = R, ar || C.preventDefault(), d.current = ne(function() {
|
|
2368
2368
|
var x = m.current ? 10 : 1;
|
|
2369
2369
|
s(l.current * x, !1), l.current = 0;
|
|
2370
2370
|
});
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
2373
|
function b(u, R) {
|
|
2374
|
-
s(R, !0),
|
|
2374
|
+
s(R, !0), ar || u.preventDefault();
|
|
2375
2375
|
}
|
|
2376
|
-
var y =
|
|
2376
|
+
var y = j(null), p = j(null);
|
|
2377
2377
|
function c(u) {
|
|
2378
2378
|
if (e) {
|
|
2379
2379
|
ne.cancel(p.current), p.current = ne(function() {
|
|
@@ -2386,14 +2386,14 @@ function Uo(e, t, r, n, o, i, s) {
|
|
|
2386
2386
|
}
|
|
2387
2387
|
}
|
|
2388
2388
|
function w(u) {
|
|
2389
|
-
e && (m.current = u.detail ===
|
|
2389
|
+
e && (m.current = u.detail === f.current);
|
|
2390
2390
|
}
|
|
2391
2391
|
return [c, w];
|
|
2392
2392
|
}
|
|
2393
2393
|
function Xo(e, t, r, n) {
|
|
2394
|
-
var o =
|
|
2394
|
+
var o = v.useMemo(function() {
|
|
2395
2395
|
return [/* @__PURE__ */ new Map(), []];
|
|
2396
|
-
}, [e, r.id, n]), i = K(o, 2), s = i[0], l = i[1],
|
|
2396
|
+
}, [e, r.id, n]), i = K(o, 2), s = i[0], l = i[1], d = function(m) {
|
|
2397
2397
|
var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m, g = s.get(m), b = s.get(h);
|
|
2398
2398
|
if (g === void 0 || b === void 0)
|
|
2399
2399
|
for (var y = e.length, p = l.length; p < y; p += 1) {
|
|
@@ -2408,7 +2408,7 @@ function Xo(e, t, r, n) {
|
|
|
2408
2408
|
bottom: l[b]
|
|
2409
2409
|
};
|
|
2410
2410
|
};
|
|
2411
|
-
return
|
|
2411
|
+
return d;
|
|
2412
2412
|
}
|
|
2413
2413
|
var Ko = /* @__PURE__ */ function() {
|
|
2414
2414
|
function e() {
|
|
@@ -2426,14 +2426,14 @@ var Ko = /* @__PURE__ */ function() {
|
|
|
2426
2426
|
}
|
|
2427
2427
|
}]), e;
|
|
2428
2428
|
}();
|
|
2429
|
-
function
|
|
2429
|
+
function sr(e) {
|
|
2430
2430
|
var t = parseFloat(e);
|
|
2431
2431
|
return isNaN(t) ? 0 : t;
|
|
2432
2432
|
}
|
|
2433
2433
|
function qo(e, t, r) {
|
|
2434
|
-
var n =
|
|
2434
|
+
var n = v.useState(0), o = K(n, 2), i = o[0], s = o[1], l = j(/* @__PURE__ */ new Map()), d = j(new Ko()), f = j();
|
|
2435
2435
|
function m() {
|
|
2436
|
-
ne.cancel(
|
|
2436
|
+
ne.cancel(f.current);
|
|
2437
2437
|
}
|
|
2438
2438
|
function h() {
|
|
2439
2439
|
var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
@@ -2441,14 +2441,14 @@ function qo(e, t, r) {
|
|
|
2441
2441
|
var y = function() {
|
|
2442
2442
|
l.current.forEach(function(c, w) {
|
|
2443
2443
|
if (c && c.offsetParent) {
|
|
2444
|
-
var u = qe(c), R = u.offsetHeight, C = getComputedStyle(u), x = C.marginTop, L = C.marginBottom, P =
|
|
2445
|
-
|
|
2444
|
+
var u = qe(c), R = u.offsetHeight, C = getComputedStyle(u), x = C.marginTop, L = C.marginBottom, P = sr(x), T = sr(L), _ = R + P + T;
|
|
2445
|
+
d.current.get(w) !== _ && d.current.set(w, _);
|
|
2446
2446
|
}
|
|
2447
2447
|
}), s(function(c) {
|
|
2448
2448
|
return c + 1;
|
|
2449
2449
|
});
|
|
2450
2450
|
};
|
|
2451
|
-
b ? y() :
|
|
2451
|
+
b ? y() : f.current = ne(y);
|
|
2452
2452
|
}
|
|
2453
2453
|
function g(b, y) {
|
|
2454
2454
|
var p = e(b);
|
|
@@ -2456,87 +2456,87 @@ function qo(e, t, r) {
|
|
|
2456
2456
|
}
|
|
2457
2457
|
return en(function() {
|
|
2458
2458
|
return m;
|
|
2459
|
-
}, []), [g, h,
|
|
2459
|
+
}, []), [g, h, d.current, i];
|
|
2460
2460
|
}
|
|
2461
|
-
var
|
|
2461
|
+
var cr = 14 / 15;
|
|
2462
2462
|
function Zo(e, t, r) {
|
|
2463
|
-
var n =
|
|
2463
|
+
var n = j(!1), o = j(0), i = j(0), s = j(null), l = j(null), d, f = function(b) {
|
|
2464
2464
|
if (n.current) {
|
|
2465
2465
|
var y = Math.ceil(b.touches[0].pageX), p = Math.ceil(b.touches[0].pageY), c = o.current - y, w = i.current - p, u = Math.abs(c) > Math.abs(w);
|
|
2466
2466
|
u ? o.current = y : i.current = p;
|
|
2467
2467
|
var R = r(u, u ? c : w, !1, b);
|
|
2468
2468
|
R && b.preventDefault(), clearInterval(l.current), R && (l.current = setInterval(function() {
|
|
2469
|
-
u ? c *=
|
|
2469
|
+
u ? c *= cr : w *= cr;
|
|
2470
2470
|
var C = Math.floor(u ? c : w);
|
|
2471
2471
|
(!r(u, C, !0) || Math.abs(C) <= 0.1) && clearInterval(l.current);
|
|
2472
2472
|
}, 16));
|
|
2473
2473
|
}
|
|
2474
2474
|
}, m = function() {
|
|
2475
|
-
n.current = !1,
|
|
2475
|
+
n.current = !1, d();
|
|
2476
2476
|
}, h = function(b) {
|
|
2477
|
-
|
|
2477
|
+
d(), b.touches.length === 1 && !n.current && (n.current = !0, o.current = Math.ceil(b.touches[0].pageX), i.current = Math.ceil(b.touches[0].pageY), s.current = b.target, s.current.addEventListener("touchmove", f, {
|
|
2478
2478
|
passive: !1
|
|
2479
2479
|
}), s.current.addEventListener("touchend", m, {
|
|
2480
2480
|
passive: !0
|
|
2481
2481
|
}));
|
|
2482
2482
|
};
|
|
2483
|
-
|
|
2484
|
-
s.current && (s.current.removeEventListener("touchmove",
|
|
2483
|
+
d = function() {
|
|
2484
|
+
s.current && (s.current.removeEventListener("touchmove", f), s.current.removeEventListener("touchend", m));
|
|
2485
2485
|
}, De(function() {
|
|
2486
2486
|
return e && t.current.addEventListener("touchstart", h, {
|
|
2487
2487
|
passive: !0
|
|
2488
2488
|
}), function() {
|
|
2489
2489
|
var g;
|
|
2490
|
-
(g = t.current) === null || g === void 0 || g.removeEventListener("touchstart", h),
|
|
2490
|
+
(g = t.current) === null || g === void 0 || g.removeEventListener("touchstart", h), d(), clearInterval(l.current);
|
|
2491
2491
|
};
|
|
2492
2492
|
}, [e]);
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2494
|
+
function lr(e) {
|
|
2495
2495
|
return Math.floor(Math.pow(e, 0.5));
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function _t(e, t) {
|
|
2498
2498
|
var r = "touches" in e ? e.touches[0] : e;
|
|
2499
2499
|
return r[t ? "pageX" : "pageY"] - window[t ? "scrollX" : "scrollY"];
|
|
2500
2500
|
}
|
|
2501
2501
|
function Jo(e, t, r) {
|
|
2502
|
-
|
|
2502
|
+
v.useEffect(function() {
|
|
2503
2503
|
var n = t.current;
|
|
2504
2504
|
if (e && n) {
|
|
2505
2505
|
var o = !1, i, s, l = function() {
|
|
2506
2506
|
ne.cancel(i);
|
|
2507
|
-
},
|
|
2507
|
+
}, d = function g() {
|
|
2508
2508
|
l(), i = ne(function() {
|
|
2509
2509
|
r(s), g();
|
|
2510
2510
|
});
|
|
2511
|
-
},
|
|
2511
|
+
}, f = function(b) {
|
|
2512
2512
|
var y = b;
|
|
2513
2513
|
y._virtualHandled || (y._virtualHandled = !0, o = !0);
|
|
2514
2514
|
}, m = function() {
|
|
2515
2515
|
o = !1, l();
|
|
2516
2516
|
}, h = function(b) {
|
|
2517
2517
|
if (o) {
|
|
2518
|
-
var y =
|
|
2518
|
+
var y = _t(b, !1), p = n.getBoundingClientRect(), c = p.top, w = p.bottom;
|
|
2519
2519
|
if (y <= c) {
|
|
2520
2520
|
var u = c - y;
|
|
2521
|
-
s = -
|
|
2521
|
+
s = -lr(u), d();
|
|
2522
2522
|
} else if (y >= w) {
|
|
2523
2523
|
var R = y - w;
|
|
2524
|
-
s =
|
|
2524
|
+
s = lr(R), d();
|
|
2525
2525
|
} else
|
|
2526
2526
|
l();
|
|
2527
2527
|
}
|
|
2528
2528
|
};
|
|
2529
|
-
return n.addEventListener("mousedown",
|
|
2530
|
-
n.removeEventListener("mousedown",
|
|
2529
|
+
return n.addEventListener("mousedown", f), n.ownerDocument.addEventListener("mouseup", m), n.ownerDocument.addEventListener("mousemove", h), function() {
|
|
2530
|
+
n.removeEventListener("mousedown", f), n.ownerDocument.removeEventListener("mouseup", m), n.ownerDocument.removeEventListener("mousemove", h), l();
|
|
2531
2531
|
};
|
|
2532
2532
|
}
|
|
2533
2533
|
}, [e]);
|
|
2534
2534
|
}
|
|
2535
|
-
var
|
|
2535
|
+
var ur = 10;
|
|
2536
2536
|
function Qo(e, t, r, n, o, i, s, l) {
|
|
2537
|
-
var
|
|
2537
|
+
var d = v.useRef(), f = v.useState(null), m = K(f, 2), h = m[0], g = m[1];
|
|
2538
2538
|
return De(function() {
|
|
2539
|
-
if (h && h.times <
|
|
2539
|
+
if (h && h.times < ur) {
|
|
2540
2540
|
if (!e.current) {
|
|
2541
2541
|
g(function(W) {
|
|
2542
2542
|
return q({}, W);
|
|
@@ -2553,12 +2553,12 @@ function Qo(e, t, r, n, o, i, s, l) {
|
|
|
2553
2553
|
T = P + (Y === void 0 ? n : Y), L = T;
|
|
2554
2554
|
}
|
|
2555
2555
|
for (var B = x === "top" ? c : w - c, $ = _; $ >= 0; $ -= 1) {
|
|
2556
|
-
var G = o(t[$]),
|
|
2557
|
-
if (
|
|
2556
|
+
var G = o(t[$]), k = r.get(G);
|
|
2557
|
+
if (k === void 0) {
|
|
2558
2558
|
u = !0;
|
|
2559
2559
|
break;
|
|
2560
2560
|
}
|
|
2561
|
-
if (B -=
|
|
2561
|
+
if (B -= k, B <= 0)
|
|
2562
2562
|
break;
|
|
2563
2563
|
}
|
|
2564
2564
|
switch (x) {
|
|
@@ -2580,13 +2580,13 @@ function Qo(e, t, r, n, o, i, s, l) {
|
|
|
2580
2580
|
targetAlign: R,
|
|
2581
2581
|
lastTop: C
|
|
2582
2582
|
}));
|
|
2583
|
-
} else process.env.NODE_ENV !== "production" && (h == null ? void 0 : h.times) ===
|
|
2583
|
+
} else process.env.NODE_ENV !== "production" && (h == null ? void 0 : h.times) === ur && nt(!1, "Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.");
|
|
2584
2584
|
}, [h, e.current]), function(b) {
|
|
2585
2585
|
if (b == null) {
|
|
2586
2586
|
l();
|
|
2587
2587
|
return;
|
|
2588
2588
|
}
|
|
2589
|
-
if (ne.cancel(
|
|
2589
|
+
if (ne.cancel(d.current), typeof b == "number")
|
|
2590
2590
|
s(b);
|
|
2591
2591
|
else if (b && oe(b) === "object") {
|
|
2592
2592
|
var y, p = b.align;
|
|
@@ -2603,19 +2603,19 @@ function Qo(e, t, r, n, o, i, s, l) {
|
|
|
2603
2603
|
}
|
|
2604
2604
|
};
|
|
2605
2605
|
}
|
|
2606
|
-
var
|
|
2607
|
-
var r = e.prefixCls, n = e.rtl, o = e.scrollOffset, i = e.scrollRange, s = e.onStartMove, l = e.onStopMove,
|
|
2608
|
-
clearTimeout(ae.current),
|
|
2609
|
-
|
|
2606
|
+
var Ot = /* @__PURE__ */ v.forwardRef(function(e, t) {
|
|
2607
|
+
var r = e.prefixCls, n = e.rtl, o = e.scrollOffset, i = e.scrollRange, s = e.onStartMove, l = e.onStopMove, d = e.onScroll, f = e.horizontal, m = e.spinSize, h = e.containerSize, g = e.style, b = e.thumbStyle, y = v.useState(!1), p = K(y, 2), c = p[0], w = p[1], u = v.useState(null), R = K(u, 2), C = R[0], x = R[1], L = v.useState(null), P = K(L, 2), T = P[0], _ = P[1], M = !n, F = v.useRef(), Y = v.useRef(), B = v.useState(!1), $ = K(B, 2), G = $[0], k = $[1], ae = v.useRef(), Z = function() {
|
|
2608
|
+
clearTimeout(ae.current), k(!0), ae.current = setTimeout(function() {
|
|
2609
|
+
k(!1);
|
|
2610
2610
|
}, 3e3);
|
|
2611
|
-
}, W = i - h || 0, me = h - m || 0, H =
|
|
2611
|
+
}, W = i - h || 0, me = h - m || 0, H = v.useMemo(function() {
|
|
2612
2612
|
if (o === 0 || W === 0)
|
|
2613
2613
|
return 0;
|
|
2614
2614
|
var X = o / W;
|
|
2615
2615
|
return X * me;
|
|
2616
2616
|
}, [o, W, me]), se = function(z) {
|
|
2617
2617
|
z.stopPropagation(), z.preventDefault();
|
|
2618
|
-
}, pe =
|
|
2618
|
+
}, pe = v.useRef({
|
|
2619
2619
|
top: H,
|
|
2620
2620
|
dragging: c,
|
|
2621
2621
|
pageY: C,
|
|
@@ -2628,9 +2628,9 @@ var _t = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
|
2628
2628
|
startTop: T
|
|
2629
2629
|
};
|
|
2630
2630
|
var he = function(z) {
|
|
2631
|
-
w(!0), x(
|
|
2631
|
+
w(!0), x(_t(z, f)), _(pe.current.top), s(), z.stopPropagation(), z.preventDefault();
|
|
2632
2632
|
};
|
|
2633
|
-
|
|
2633
|
+
v.useEffect(function() {
|
|
2634
2634
|
var X = function(S) {
|
|
2635
2635
|
S.preventDefault();
|
|
2636
2636
|
}, z = F.current, re = Y.current;
|
|
@@ -2642,21 +2642,21 @@ var _t = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
|
2642
2642
|
z.removeEventListener("touchstart", X), re.removeEventListener("touchstart", he);
|
|
2643
2643
|
};
|
|
2644
2644
|
}, []);
|
|
2645
|
-
var Re =
|
|
2645
|
+
var Re = v.useRef();
|
|
2646
2646
|
Re.current = W;
|
|
2647
|
-
var ge =
|
|
2648
|
-
ge.current = me,
|
|
2647
|
+
var ge = v.useRef();
|
|
2648
|
+
ge.current = me, v.useEffect(function() {
|
|
2649
2649
|
if (c) {
|
|
2650
2650
|
var X, z = function(S) {
|
|
2651
2651
|
var le = pe.current, ue = le.dragging, be = le.pageY, He = le.startTop;
|
|
2652
2652
|
ne.cancel(X);
|
|
2653
|
-
var Ve = F.current.getBoundingClientRect(), ye = h / (
|
|
2653
|
+
var Ve = F.current.getBoundingClientRect(), ye = h / (f ? Ve.width : Ve.height);
|
|
2654
2654
|
if (ue) {
|
|
2655
|
-
var Te = (
|
|
2656
|
-
!M &&
|
|
2655
|
+
var Te = (_t(S, f) - be) * ye, Ie = He;
|
|
2656
|
+
!M && f ? Ie -= Te : Ie += Te;
|
|
2657
2657
|
var Be = Re.current, We = ge.current, st = We ? Ie / We : 0, ce = Math.ceil(st * Be);
|
|
2658
2658
|
ce = Math.max(ce, 0), ce = Math.min(ce, Be), X = ne(function() {
|
|
2659
|
-
|
|
2659
|
+
d(ce, f);
|
|
2660
2660
|
});
|
|
2661
2661
|
}
|
|
2662
2662
|
}, re = function() {
|
|
@@ -2674,11 +2674,11 @@ var _t = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
|
2674
2674
|
window.removeEventListener("mousemove", z), window.removeEventListener("touchmove", z), window.removeEventListener("mouseup", re), window.removeEventListener("touchend", re), ne.cancel(X);
|
|
2675
2675
|
};
|
|
2676
2676
|
}
|
|
2677
|
-
}, [c]),
|
|
2677
|
+
}, [c]), v.useEffect(function() {
|
|
2678
2678
|
return Z(), function() {
|
|
2679
2679
|
clearTimeout(ae.current);
|
|
2680
2680
|
};
|
|
2681
|
-
}, [o]),
|
|
2681
|
+
}, [o]), v.useImperativeHandle(t, function() {
|
|
2682
2682
|
return {
|
|
2683
2683
|
delayHidden: Z
|
|
2684
2684
|
};
|
|
@@ -2693,22 +2693,22 @@ var _t = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
|
2693
2693
|
cursor: "pointer",
|
|
2694
2694
|
userSelect: "none"
|
|
2695
2695
|
};
|
|
2696
|
-
return
|
|
2696
|
+
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__ */ v.createElement("div", {
|
|
2697
2697
|
ref: F,
|
|
2698
|
-
className: Ze(U, ee(ee(ee({}, "".concat(U, "-horizontal"),
|
|
2698
|
+
className: Ze(U, ee(ee(ee({}, "".concat(U, "-horizontal"), f), "".concat(U, "-vertical"), !f), "".concat(U, "-visible"), G)),
|
|
2699
2699
|
style: q(q({}, te), g),
|
|
2700
2700
|
onMouseDown: se,
|
|
2701
2701
|
onMouseMove: Z
|
|
2702
|
-
}, /* @__PURE__ */
|
|
2702
|
+
}, /* @__PURE__ */ v.createElement("div", {
|
|
2703
2703
|
ref: Y,
|
|
2704
2704
|
className: Ze("".concat(U, "-thumb"), ee({}, "".concat(U, "-thumb-moving"), c)),
|
|
2705
2705
|
style: q(q({}, ie), b),
|
|
2706
2706
|
onMouseDown: he
|
|
2707
2707
|
}));
|
|
2708
2708
|
});
|
|
2709
|
-
process.env.NODE_ENV !== "production" && (
|
|
2709
|
+
process.env.NODE_ENV !== "production" && (Ot.displayName = "ScrollBar");
|
|
2710
2710
|
var ei = 20;
|
|
2711
|
-
function
|
|
2711
|
+
function fr() {
|
|
2712
2712
|
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;
|
|
2713
2713
|
return isNaN(r) && (r = 0), r = Math.max(r, ei), Math.floor(r);
|
|
2714
2714
|
}
|
|
@@ -2717,13 +2717,13 @@ var ti = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style
|
|
|
2717
2717
|
overflowAnchor: "none"
|
|
2718
2718
|
};
|
|
2719
2719
|
function oi(e, t) {
|
|
2720
|
-
var r = e.prefixCls, n = r === void 0 ? "rc-virtual-list" : r, o = e.className, i = e.height, s = e.itemHeight, l = e.fullHeight,
|
|
2720
|
+
var r = e.prefixCls, n = r === void 0 ? "rc-virtual-list" : r, o = e.className, i = e.height, s = e.itemHeight, l = e.fullHeight, d = l === void 0 ? !0 : l, f = e.style, m = e.data, h = e.children, g = e.itemKey, b = e.virtual, y = e.direction, p = e.scrollWidth, c = e.component, w = c === void 0 ? "div" : c, u = e.onScroll, R = e.onVirtualScroll, C = e.onVisibleChange, x = e.innerProps, L = e.extraRender, P = e.styles, T = Xn(e, ti), _ = v.useCallback(function(O) {
|
|
2721
2721
|
return typeof g == "function" ? g(O) : O == null ? void 0 : O[g];
|
|
2722
|
-
}, [g]), M = qo(_), F = K(M, 4), Y = F[0], B = F[1], $ = F[2], G = F[3],
|
|
2722
|
+
}, [g]), M = qo(_), F = K(M, 4), Y = F[0], B = F[1], $ = F[2], G = F[3], k = !!(b !== !1 && i && s), ae = v.useMemo(function() {
|
|
2723
2723
|
return Object.values($.maps).reduce(function(O, E) {
|
|
2724
2724
|
return O + E;
|
|
2725
2725
|
}, 0);
|
|
2726
|
-
}, [$.id, $.maps]), Z =
|
|
2726
|
+
}, [$.id, $.maps]), Z = k && m && (Math.max(s * m.length, ae) > i || !!p), W = y === "rtl", me = Ze(n, ee({}, "".concat(n, "-rtl"), W), o), H = m || ri, se = j(), pe = j(), he = j(), Re = Ke(0), ge = K(Re, 2), U = ge[0], te = ge[1], ie = Ke(0), X = K(ie, 2), z = X[0], re = X[1], Ee = Ke(!1), S = K(Ee, 2), le = S[0], ue = S[1], be = function() {
|
|
2727
2727
|
ue(!0);
|
|
2728
2728
|
}, He = function() {
|
|
2729
2729
|
ue(!1);
|
|
@@ -2738,13 +2738,13 @@ function oi(e, t) {
|
|
|
2738
2738
|
return se.current.scrollTop = V, V;
|
|
2739
2739
|
});
|
|
2740
2740
|
}
|
|
2741
|
-
var Te =
|
|
2741
|
+
var Te = j({
|
|
2742
2742
|
start: 0,
|
|
2743
2743
|
end: H.length
|
|
2744
|
-
}), Ie =
|
|
2744
|
+
}), Ie = j(), Be = Go(H, _), We = K(Be, 1), st = We[0];
|
|
2745
2745
|
Ie.current = st;
|
|
2746
|
-
var ce =
|
|
2747
|
-
if (!
|
|
2746
|
+
var ce = v.useMemo(function() {
|
|
2747
|
+
if (!k)
|
|
2748
2748
|
return {
|
|
2749
2749
|
scrollHeight: void 0,
|
|
2750
2750
|
start: 0,
|
|
@@ -2760,8 +2760,8 @@ function oi(e, t) {
|
|
|
2760
2760
|
offset: void 0
|
|
2761
2761
|
};
|
|
2762
2762
|
}
|
|
2763
|
-
for (var E = 0, I, V, J,
|
|
2764
|
-
var Zr = H[$e], Jr = _(Zr),
|
|
2763
|
+
for (var E = 0, I, V, J, Vt = H.length, $e = 0; $e < Vt; $e += 1) {
|
|
2764
|
+
var Zr = H[$e], Jr = _(Zr), Bt = $.get(Jr), pt = E + (Bt === void 0 ? s : Bt);
|
|
2765
2765
|
pt >= U && I === void 0 && (I = $e, V = E), pt > U + i && J === void 0 && (J = $e), E = pt;
|
|
2766
2766
|
}
|
|
2767
2767
|
return I === void 0 && (I = 0, V = 0, J = Math.ceil(i / s)), J === void 0 && (J = H.length - 1), J = Math.min(J + 1, H.length - 1), {
|
|
@@ -2770,40 +2770,40 @@ function oi(e, t) {
|
|
|
2770
2770
|
end: J,
|
|
2771
2771
|
offset: V
|
|
2772
2772
|
};
|
|
2773
|
-
}, [Z,
|
|
2773
|
+
}, [Z, k, U, H, G, i]), we = ce.scrollHeight, Le = ce.start, Ne = ce.end, Tt = ce.offset;
|
|
2774
2774
|
Te.current.start = Le, Te.current.end = Ne;
|
|
2775
|
-
var jr =
|
|
2775
|
+
var jr = v.useState({
|
|
2776
2776
|
width: 0,
|
|
2777
2777
|
height: i
|
|
2778
|
-
}),
|
|
2778
|
+
}), It = K(jr, 2), fe = It[0], kr = It[1], Fr = function(E) {
|
|
2779
2779
|
kr({
|
|
2780
2780
|
width: E.offsetWidth,
|
|
2781
2781
|
height: E.offsetHeight
|
|
2782
2782
|
});
|
|
2783
|
-
},
|
|
2784
|
-
return
|
|
2785
|
-
}, [fe.width, p]), Vr =
|
|
2786
|
-
return
|
|
2787
|
-
}, [fe.height, we]), ct = we - i, lt =
|
|
2783
|
+
}, Lt = j(), Nt = j(), Hr = v.useMemo(function() {
|
|
2784
|
+
return fr(fe.width, p);
|
|
2785
|
+
}, [fe.width, p]), Vr = v.useMemo(function() {
|
|
2786
|
+
return fr(fe.height, we);
|
|
2787
|
+
}, [fe.height, we]), ct = we - i, lt = j(ct);
|
|
2788
2788
|
lt.current = ct;
|
|
2789
2789
|
function Br(O) {
|
|
2790
2790
|
var E = O;
|
|
2791
2791
|
return Number.isNaN(lt.current) || (E = Math.min(E, lt.current)), E = Math.max(E, 0), E;
|
|
2792
2792
|
}
|
|
2793
|
-
var Ye = U <= 0, Ge = U >= ct,
|
|
2793
|
+
var Ye = U <= 0, Ge = U >= ct, At = z <= 0, $t = z >= p, Wr = zr(Ye, Ge, At, $t), ut = function() {
|
|
2794
2794
|
return {
|
|
2795
2795
|
x: W ? -z : z,
|
|
2796
2796
|
y: U
|
|
2797
2797
|
};
|
|
2798
|
-
}, ft =
|
|
2798
|
+
}, ft = j(ut()), Ue = nr(function(O) {
|
|
2799
2799
|
if (R) {
|
|
2800
2800
|
var E = q(q({}, ut()), O);
|
|
2801
2801
|
(ft.current.x !== E.x || ft.current.y !== E.y) && (R(E), ft.current = E);
|
|
2802
2802
|
}
|
|
2803
2803
|
});
|
|
2804
|
-
function
|
|
2804
|
+
function zt(O, E) {
|
|
2805
2805
|
var I = O;
|
|
2806
|
-
E ? (
|
|
2806
|
+
E ? (Xt.flushSync(function() {
|
|
2807
2807
|
re(I);
|
|
2808
2808
|
}), Ue()) : ye(I);
|
|
2809
2809
|
}
|
|
@@ -2814,8 +2814,8 @@ function oi(e, t) {
|
|
|
2814
2814
|
var dt = function(E) {
|
|
2815
2815
|
var I = E, V = p ? p - fe.width : 0;
|
|
2816
2816
|
return I = Math.max(I, 0), I = Math.min(I, V), I;
|
|
2817
|
-
}, Gr =
|
|
2818
|
-
E ? (
|
|
2817
|
+
}, Gr = nr(function(O, E) {
|
|
2818
|
+
E ? (Xt.flushSync(function() {
|
|
2819
2819
|
re(function(I) {
|
|
2820
2820
|
var V = I + (W ? -O : O);
|
|
2821
2821
|
return dt(V);
|
|
@@ -2824,8 +2824,8 @@ function oi(e, t) {
|
|
|
2824
2824
|
var V = I + O;
|
|
2825
2825
|
return V;
|
|
2826
2826
|
});
|
|
2827
|
-
}), Ur = Uo(
|
|
2828
|
-
Zo(
|
|
2827
|
+
}), Ur = Uo(k, Ye, Ge, At, $t, !!p, Gr), Dt = K(Ur, 2), vt = Dt[0], jt = Dt[1];
|
|
2828
|
+
Zo(k, se, function(O, E, I, V) {
|
|
2829
2829
|
var J = V;
|
|
2830
2830
|
return Wr(O, E, I) ? !1 : !J || !J._virtualHandled ? (J && (J._virtualHandled = !0), vt({
|
|
2831
2831
|
preventDefault: function() {
|
|
@@ -2840,19 +2840,19 @@ function oi(e, t) {
|
|
|
2840
2840
|
}), De(function() {
|
|
2841
2841
|
function O(I) {
|
|
2842
2842
|
var V = Ye && I.detail < 0, J = Ge && I.detail > 0;
|
|
2843
|
-
|
|
2843
|
+
k && !V && !J && I.preventDefault();
|
|
2844
2844
|
}
|
|
2845
2845
|
var E = se.current;
|
|
2846
2846
|
return E.addEventListener("wheel", vt, {
|
|
2847
2847
|
passive: !1
|
|
2848
|
-
}), E.addEventListener("DOMMouseScroll",
|
|
2848
|
+
}), E.addEventListener("DOMMouseScroll", jt, {
|
|
2849
2849
|
passive: !0
|
|
2850
2850
|
}), E.addEventListener("MozMousePixelScroll", O, {
|
|
2851
2851
|
passive: !1
|
|
2852
2852
|
}), function() {
|
|
2853
|
-
E.removeEventListener("wheel", vt), E.removeEventListener("DOMMouseScroll",
|
|
2853
|
+
E.removeEventListener("wheel", vt), E.removeEventListener("DOMMouseScroll", jt), E.removeEventListener("MozMousePixelScroll", O);
|
|
2854
2854
|
};
|
|
2855
|
-
}, [
|
|
2855
|
+
}, [k, Ye, Ge]), De(function() {
|
|
2856
2856
|
if (p) {
|
|
2857
2857
|
var O = dt(z);
|
|
2858
2858
|
re(O), Ue({
|
|
@@ -2860,13 +2860,13 @@ function oi(e, t) {
|
|
|
2860
2860
|
});
|
|
2861
2861
|
}
|
|
2862
2862
|
}, [fe.width, p]);
|
|
2863
|
-
var
|
|
2863
|
+
var kt = function() {
|
|
2864
2864
|
var E, I;
|
|
2865
|
-
(E =
|
|
2866
|
-
},
|
|
2865
|
+
(E = Lt.current) === null || E === void 0 || E.delayHidden(), (I = Nt.current) === null || I === void 0 || I.delayHidden();
|
|
2866
|
+
}, Ft = Qo(se, H, $, s, _, function() {
|
|
2867
2867
|
return B(!0);
|
|
2868
|
-
}, ye,
|
|
2869
|
-
|
|
2868
|
+
}, ye, kt);
|
|
2869
|
+
v.useImperativeHandle(t, function() {
|
|
2870
2870
|
return {
|
|
2871
2871
|
nativeElement: he.current,
|
|
2872
2872
|
getScrollInfo: ut,
|
|
@@ -2874,7 +2874,7 @@ function oi(e, t) {
|
|
|
2874
2874
|
function I(V) {
|
|
2875
2875
|
return V && oe(V) === "object" && ("left" in V || "top" in V);
|
|
2876
2876
|
}
|
|
2877
|
-
I(E) ? (E.left !== void 0 && re(dt(E.left)),
|
|
2877
|
+
I(E) ? (E.left !== void 0 && re(dt(E.left)), Ft(E.top)) : Ft(E);
|
|
2878
2878
|
}
|
|
2879
2879
|
};
|
|
2880
2880
|
}), De(function() {
|
|
@@ -2888,57 +2888,57 @@ function oi(e, t) {
|
|
|
2888
2888
|
end: Ne,
|
|
2889
2889
|
virtual: Z,
|
|
2890
2890
|
offsetX: z,
|
|
2891
|
-
offsetY:
|
|
2891
|
+
offsetY: Tt,
|
|
2892
2892
|
rtl: W,
|
|
2893
2893
|
getSize: Xr
|
|
2894
2894
|
}), qr = Wo(H, Le, Ne, p, z, Y, h, Ve), Ae = null;
|
|
2895
|
-
i && (Ae = q(ee({},
|
|
2896
|
-
var
|
|
2897
|
-
return W && (
|
|
2895
|
+
i && (Ae = q(ee({}, d ? "height" : "maxHeight", i), ni), k && (Ae.overflowY = "hidden", p && (Ae.overflowX = "hidden"), le && (Ae.pointerEvents = "none")));
|
|
2896
|
+
var Ht = {};
|
|
2897
|
+
return W && (Ht.dir = "rtl"), /* @__PURE__ */ v.createElement("div", Ct({
|
|
2898
2898
|
ref: he,
|
|
2899
|
-
style: q(q({},
|
|
2899
|
+
style: q(q({}, f), {}, {
|
|
2900
2900
|
position: "relative"
|
|
2901
2901
|
}),
|
|
2902
2902
|
className: me
|
|
2903
|
-
},
|
|
2903
|
+
}, Ht, T), /* @__PURE__ */ v.createElement(it, {
|
|
2904
2904
|
onResize: Fr
|
|
2905
|
-
}, /* @__PURE__ */
|
|
2905
|
+
}, /* @__PURE__ */ v.createElement(w, {
|
|
2906
2906
|
className: "".concat(n, "-holder"),
|
|
2907
2907
|
style: Ae,
|
|
2908
2908
|
ref: se,
|
|
2909
2909
|
onScroll: Yr,
|
|
2910
|
-
onMouseEnter:
|
|
2911
|
-
}, /* @__PURE__ */
|
|
2910
|
+
onMouseEnter: kt
|
|
2911
|
+
}, /* @__PURE__ */ v.createElement(Lr, {
|
|
2912
2912
|
prefixCls: n,
|
|
2913
2913
|
height: we,
|
|
2914
2914
|
offsetX: z,
|
|
2915
|
-
offsetY:
|
|
2915
|
+
offsetY: Tt,
|
|
2916
2916
|
scrollWidth: p,
|
|
2917
2917
|
onInnerResize: B,
|
|
2918
2918
|
ref: pe,
|
|
2919
2919
|
innerProps: x,
|
|
2920
2920
|
rtl: W,
|
|
2921
2921
|
extra: Kr
|
|
2922
|
-
}, qr))), Z && we > i && /* @__PURE__ */
|
|
2923
|
-
ref:
|
|
2922
|
+
}, qr))), Z && we > i && /* @__PURE__ */ v.createElement(Ot, {
|
|
2923
|
+
ref: Lt,
|
|
2924
2924
|
prefixCls: n,
|
|
2925
2925
|
scrollOffset: U,
|
|
2926
2926
|
scrollRange: we,
|
|
2927
2927
|
rtl: W,
|
|
2928
|
-
onScroll:
|
|
2928
|
+
onScroll: zt,
|
|
2929
2929
|
onStartMove: be,
|
|
2930
2930
|
onStopMove: He,
|
|
2931
2931
|
spinSize: Vr,
|
|
2932
2932
|
containerSize: fe.height,
|
|
2933
2933
|
style: P == null ? void 0 : P.verticalScrollBar,
|
|
2934
2934
|
thumbStyle: P == null ? void 0 : P.verticalScrollBarThumb
|
|
2935
|
-
}), Z && p > fe.width && /* @__PURE__ */
|
|
2936
|
-
ref:
|
|
2935
|
+
}), Z && p > fe.width && /* @__PURE__ */ v.createElement(Ot, {
|
|
2936
|
+
ref: Nt,
|
|
2937
2937
|
prefixCls: n,
|
|
2938
2938
|
scrollOffset: z,
|
|
2939
2939
|
scrollRange: p,
|
|
2940
2940
|
rtl: W,
|
|
2941
|
-
onScroll:
|
|
2941
|
+
onScroll: zt,
|
|
2942
2942
|
onStartMove: be,
|
|
2943
2943
|
onStopMove: He,
|
|
2944
2944
|
spinSize: Hr,
|
|
@@ -2948,36 +2948,36 @@ function oi(e, t) {
|
|
|
2948
2948
|
thumbStyle: P == null ? void 0 : P.horizontalScrollBarThumb
|
|
2949
2949
|
}));
|
|
2950
2950
|
}
|
|
2951
|
-
var Dr = /* @__PURE__ */
|
|
2951
|
+
var Dr = /* @__PURE__ */ v.forwardRef(oi);
|
|
2952
2952
|
Dr.displayName = "List";
|
|
2953
2953
|
const Si = (e) => {
|
|
2954
2954
|
var g, b, y, p, c, w;
|
|
2955
2955
|
const [t, r] = Ke(1), n = tn(on);
|
|
2956
2956
|
if (!n)
|
|
2957
2957
|
return null;
|
|
2958
|
-
const o = (u) => e.filter ===
|
|
2958
|
+
const o = (u) => e.filter === Gt.ALL || !e.filter ? u : e.filter === Gt.UNARCHIVED ? u.filter((R) => !R.archived) : u.filter(e.filter);
|
|
2959
2959
|
if (n.notifications === void 0) return null;
|
|
2960
|
-
const s = o(n.notifications).sort((u, R) => new Date(u.date).getTime() - new Date(R.date).getTime()), l = {},
|
|
2960
|
+
const s = o(n.notifications).sort((u, R) => new Date(u.date).getTime() - new Date(R.date).getTime()), l = {}, d = new nn();
|
|
2961
2961
|
s.forEach((u) => {
|
|
2962
2962
|
var R, C;
|
|
2963
2963
|
if ((C = (R = u.deliveryOptions) == null ? void 0 : R.instant) != null && C.batching) {
|
|
2964
|
-
const x = u.deliveryOptions.instant.batchingKey, L = x ?
|
|
2964
|
+
const x = u.deliveryOptions.instant.batchingKey, L = x ? d.parseAndRenderSync(`{{${x}}}`, u) : "", P = `${u.notificationId}-${L}`;
|
|
2965
2965
|
l[P] ? l[P].push(u) : l[P] = [u];
|
|
2966
2966
|
} else {
|
|
2967
2967
|
const x = u.id;
|
|
2968
2968
|
l[x] = [u];
|
|
2969
2969
|
}
|
|
2970
2970
|
});
|
|
2971
|
-
const
|
|
2971
|
+
const f = Object.values(l).sort(
|
|
2972
2972
|
(u, R) => new Date(R[R.length - 1].date).getTime() - new Date(u[u.length - 1].date).getTime()
|
|
2973
2973
|
), m = e.empty ?? an, h = (u, R) => {
|
|
2974
2974
|
R >= Math.floor(n.notifications.length / e.pageSize) && n.loadNotifications(), r(R);
|
|
2975
2975
|
};
|
|
2976
|
-
return /* @__PURE__ */
|
|
2976
|
+
return /* @__PURE__ */ D("div", { children: e.pagination === "INFINITE_SCROLL" ? /* @__PURE__ */ Ce(
|
|
2977
2977
|
mt,
|
|
2978
2978
|
{
|
|
2979
|
-
subheader: /* @__PURE__ */
|
|
2980
|
-
|
|
2979
|
+
subheader: /* @__PURE__ */ D(
|
|
2980
|
+
Wt,
|
|
2981
2981
|
{
|
|
2982
2982
|
title: (g = e.header) == null ? void 0 : g.title,
|
|
2983
2983
|
button1ClickHandler: (b = e.header) == null ? void 0 : b.button1ClickHandler,
|
|
@@ -2985,11 +2985,11 @@ const Si = (e) => {
|
|
|
2985
2985
|
}
|
|
2986
2986
|
),
|
|
2987
2987
|
children: [
|
|
2988
|
-
|
|
2989
|
-
/* @__PURE__ */
|
|
2988
|
+
f.length === 0 && m,
|
|
2989
|
+
/* @__PURE__ */ D(
|
|
2990
2990
|
Dr,
|
|
2991
2991
|
{
|
|
2992
|
-
data:
|
|
2992
|
+
data: f,
|
|
2993
2993
|
height: e.maxHeight,
|
|
2994
2994
|
itemHeight: 47,
|
|
2995
2995
|
itemKey: (u) => u[0].id,
|
|
@@ -2998,13 +2998,14 @@ const Si = (e) => {
|
|
|
2998
2998
|
u.currentTarget.scrollHeight - u.currentTarget.scrollTop - e.maxHeight
|
|
2999
2999
|
) <= 1 && n.loadNotifications();
|
|
3000
3000
|
},
|
|
3001
|
-
children: (u) => /* @__PURE__ */
|
|
3002
|
-
|
|
3001
|
+
children: (u) => /* @__PURE__ */ D(gt, { style: { padding: 0 }, children: /* @__PURE__ */ D(
|
|
3002
|
+
Yt,
|
|
3003
3003
|
{
|
|
3004
3004
|
markAsArchived: n.markAsArchived,
|
|
3005
3005
|
notifications: u,
|
|
3006
3006
|
markAsClicked: n.markAsClicked,
|
|
3007
|
-
renderer: e.notificationRenderer
|
|
3007
|
+
renderer: e.notificationRenderer,
|
|
3008
|
+
imageShape: e.imageShape
|
|
3008
3009
|
}
|
|
3009
3010
|
) }, u[0].id)
|
|
3010
3011
|
}
|
|
@@ -3014,8 +3015,8 @@ const Si = (e) => {
|
|
|
3014
3015
|
) : /* @__PURE__ */ Ce(
|
|
3015
3016
|
mt,
|
|
3016
3017
|
{
|
|
3017
|
-
subheader: /* @__PURE__ */
|
|
3018
|
-
|
|
3018
|
+
subheader: /* @__PURE__ */ D(
|
|
3019
|
+
Wt,
|
|
3019
3020
|
{
|
|
3020
3021
|
title: (p = e.header) == null ? void 0 : p.title,
|
|
3021
3022
|
button1ClickHandler: (c = e.header) == null ? void 0 : c.button1ClickHandler,
|
|
@@ -3023,29 +3024,38 @@ const Si = (e) => {
|
|
|
3023
3024
|
}
|
|
3024
3025
|
),
|
|
3025
3026
|
children: [
|
|
3026
|
-
|
|
3027
|
-
|
|
3027
|
+
e.pagePosition === "top" && f.length > 0 && /* @__PURE__ */ D(
|
|
3028
|
+
bt,
|
|
3029
|
+
{
|
|
3030
|
+
count: Math.ceil(f.length / e.pageSize),
|
|
3031
|
+
page: t,
|
|
3032
|
+
onChange: h
|
|
3033
|
+
}
|
|
3034
|
+
),
|
|
3035
|
+
f.filter((u, R) => e.pagination === "PAGINATED" ? R >= (t - 1) * e.pageSize && R < t * e.pageSize : !0).map((u) => /* @__PURE__ */ D(gt, { style: { padding: 0 }, children: /* @__PURE__ */ D(
|
|
3036
|
+
Yt,
|
|
3028
3037
|
{
|
|
3029
3038
|
markAsArchived: n.markAsArchived,
|
|
3030
3039
|
notifications: u,
|
|
3031
3040
|
markAsClicked: n.markAsClicked,
|
|
3032
|
-
renderer: e.notificationRenderer
|
|
3041
|
+
renderer: e.notificationRenderer,
|
|
3042
|
+
imageShape: e.imageShape
|
|
3033
3043
|
}
|
|
3034
3044
|
) }, u[0].id)),
|
|
3035
|
-
|
|
3036
|
-
|
|
3045
|
+
e.pagePosition === "bottom" && f.length > 0 && /* @__PURE__ */ D(
|
|
3046
|
+
bt,
|
|
3037
3047
|
{
|
|
3038
|
-
count: Math.ceil(
|
|
3048
|
+
count: Math.ceil(f.length / e.pageSize),
|
|
3039
3049
|
page: t,
|
|
3040
3050
|
onChange: h
|
|
3041
3051
|
}
|
|
3042
3052
|
),
|
|
3043
|
-
|
|
3053
|
+
f.length === 0 && m
|
|
3044
3054
|
]
|
|
3045
3055
|
}
|
|
3046
3056
|
) });
|
|
3047
3057
|
};
|
|
3048
3058
|
export {
|
|
3049
3059
|
Si as I,
|
|
3050
|
-
|
|
3060
|
+
qt as i
|
|
3051
3061
|
};
|