@notificationapi/react 1.4.1 → 1.5.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 +1 -1
- package/dist/assets/Box.js +13 -13
- package/dist/assets/Button.js +781 -0
- package/dist/assets/ButtonBase.js +409 -622
- package/dist/assets/DefaultPropsProvider.js +220 -215
- package/dist/assets/Divider.js +105 -154
- package/dist/assets/Grow.js +201 -0
- package/dist/assets/IconButton.js +1 -1
- package/dist/assets/List.js +142 -0
- package/dist/assets/Modal.js +1094 -0
- package/dist/assets/Notification.js +71 -71
- package/dist/assets/Paper.js +1 -1
- package/dist/assets/Popover.js +8 -6
- package/dist/assets/Portal.js +2 -2
- package/dist/assets/Stack.js +216 -0
- package/dist/assets/Typography.js +193 -117
- package/dist/assets/WebPushOptInMessage.js +40 -814
- package/dist/assets/createSvgIcon.js +5 -5
- package/dist/assets/dividerClasses.js +56 -0
- package/dist/assets/index.js +151 -0
- package/dist/assets/useTheme2.js +253 -11
- package/dist/assets/utils.js +4 -4
- package/dist/components/Notifications/Inbox.js +2927 -9
- package/dist/components/Notifications/InboxHeader.js +2146 -7
- package/dist/components/Notifications/NotificationFeed.js +13 -13
- package/dist/components/Notifications/NotificationLauncher.js +2 -2
- package/dist/components/Notifications/NotificationPopup.js +7 -7
- package/dist/components/Preferences/NotificationPreferencesPopup.js +608 -7
- package/dist/components/Preferences/PreferenceInput.js +1451 -6
- package/dist/components/Preferences/Preferences.js +368 -515
- package/dist/components/Preferences/index.js +1 -1
- package/dist/components/Provider/index.js +226 -202
- package/dist/components/Slack/SlackConnect.d.ts +12 -0
- package/dist/components/Slack/SlackConnect.js +4826 -0
- package/dist/components/Slack/index.d.ts +1 -0
- package/dist/components/Slack/index.js +4 -0
- package/dist/components/WebPush/WebPushOptInMessage.js +3 -2
- package/dist/main.d.ts +1 -0
- package/dist/main.js +5 -3
- package/package.json +4 -4
- package/dist/assets/Inbox.js +0 -3061
- package/dist/assets/InboxHeader.js +0 -2338
- package/dist/assets/NotificationPreferencesPopup.js +0 -1694
- package/dist/assets/PreferenceInput.js +0 -1657
package/dist/assets/Inbox.js
DELETED
|
@@ -1,3061 +0,0 @@
|
|
|
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
|
-
import { NotificationAPIContext as on } from "../components/Provider/context.js";
|
|
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 Ct } from "./DefaultPropsProvider.js";
|
|
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 Ut, r as Xt } from "./utils.js";
|
|
12
|
-
import { u as pn } from "./resolveComponentProps.js";
|
|
13
|
-
import { u as hn } from "./Divider.js";
|
|
14
|
-
import { i as ze } from "./integerPropType.js";
|
|
15
|
-
import { c as Kt } from "./createSimplePaletteValueFilter.js";
|
|
16
|
-
import { c as rt } from "./createSvgIcon.js";
|
|
17
|
-
function vr(e, t) {
|
|
18
|
-
var r, n, o;
|
|
19
|
-
return /* @__PURE__ */ v.isValidElement(e) && t.indexOf(
|
|
20
|
-
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
21
|
-
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
22
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
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
|
-
) !== -1;
|
|
25
|
-
}
|
|
26
|
-
function qt(e) {
|
|
27
|
-
return typeof e == "string";
|
|
28
|
-
}
|
|
29
|
-
const Oe = /* @__PURE__ */ v.createContext({});
|
|
30
|
-
process.env.NODE_ENV !== "production" && (Oe.displayName = "ListContext");
|
|
31
|
-
function mn(e) {
|
|
32
|
-
return je("MuiList", e);
|
|
33
|
-
}
|
|
34
|
-
Me("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
35
|
-
const gn = (e) => {
|
|
36
|
-
const {
|
|
37
|
-
classes: t,
|
|
38
|
-
disablePadding: r,
|
|
39
|
-
dense: n,
|
|
40
|
-
subheader: o
|
|
41
|
-
} = e;
|
|
42
|
-
return Fe({
|
|
43
|
-
root: ["root", !r && "padding", n && "dense", o && "subheader"]
|
|
44
|
-
}, mn, t);
|
|
45
|
-
}, bn = ve("ul", {
|
|
46
|
-
name: "MuiList",
|
|
47
|
-
slot: "Root",
|
|
48
|
-
overridesResolver: (e, t) => {
|
|
49
|
-
const {
|
|
50
|
-
ownerState: r
|
|
51
|
-
} = e;
|
|
52
|
-
return [t.root, !r.disablePadding && t.padding, r.dense && t.dense, r.subheader && t.subheader];
|
|
53
|
-
}
|
|
54
|
-
})({
|
|
55
|
-
listStyle: "none",
|
|
56
|
-
margin: 0,
|
|
57
|
-
padding: 0,
|
|
58
|
-
position: "relative",
|
|
59
|
-
variants: [{
|
|
60
|
-
props: ({
|
|
61
|
-
ownerState: e
|
|
62
|
-
}) => !e.disablePadding,
|
|
63
|
-
style: {
|
|
64
|
-
paddingTop: 8,
|
|
65
|
-
paddingBottom: 8
|
|
66
|
-
}
|
|
67
|
-
}, {
|
|
68
|
-
props: ({
|
|
69
|
-
ownerState: e
|
|
70
|
-
}) => e.subheader,
|
|
71
|
-
style: {
|
|
72
|
-
paddingTop: 0
|
|
73
|
-
}
|
|
74
|
-
}]
|
|
75
|
-
}), mt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
76
|
-
const n = ke({
|
|
77
|
-
props: t,
|
|
78
|
-
name: "MuiList"
|
|
79
|
-
}), {
|
|
80
|
-
children: o,
|
|
81
|
-
className: i,
|
|
82
|
-
component: s = "ul",
|
|
83
|
-
dense: l = !1,
|
|
84
|
-
disablePadding: d = !1,
|
|
85
|
-
subheader: f,
|
|
86
|
-
...m
|
|
87
|
-
} = n, h = v.useMemo(() => ({
|
|
88
|
-
dense: l
|
|
89
|
-
}), [l]), g = {
|
|
90
|
-
...n,
|
|
91
|
-
component: s,
|
|
92
|
-
dense: l,
|
|
93
|
-
disablePadding: d
|
|
94
|
-
}, b = gn(g);
|
|
95
|
-
return /* @__PURE__ */ D(Oe.Provider, {
|
|
96
|
-
value: h,
|
|
97
|
-
children: /* @__PURE__ */ Ce(bn, {
|
|
98
|
-
as: s,
|
|
99
|
-
className: Se(b.root, i),
|
|
100
|
-
ref: r,
|
|
101
|
-
ownerState: g,
|
|
102
|
-
...m,
|
|
103
|
-
children: [f, o]
|
|
104
|
-
})
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
108
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
109
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
110
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
111
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
112
|
-
/**
|
|
113
|
-
* The content of the component.
|
|
114
|
-
*/
|
|
115
|
-
children: a.node,
|
|
116
|
-
/**
|
|
117
|
-
* Override or extend the styles applied to the component.
|
|
118
|
-
*/
|
|
119
|
-
classes: a.object,
|
|
120
|
-
/**
|
|
121
|
-
* @ignore
|
|
122
|
-
*/
|
|
123
|
-
className: a.string,
|
|
124
|
-
/**
|
|
125
|
-
* The component used for the root node.
|
|
126
|
-
* Either a string to use a HTML element or a component.
|
|
127
|
-
*/
|
|
128
|
-
component: a.elementType,
|
|
129
|
-
/**
|
|
130
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used for
|
|
131
|
-
* the list and list items.
|
|
132
|
-
* The prop is available to descendant components as the `dense` context.
|
|
133
|
-
* @default false
|
|
134
|
-
*/
|
|
135
|
-
dense: a.bool,
|
|
136
|
-
/**
|
|
137
|
-
* If `true`, vertical padding is removed from the list.
|
|
138
|
-
* @default false
|
|
139
|
-
*/
|
|
140
|
-
disablePadding: a.bool,
|
|
141
|
-
/**
|
|
142
|
-
* The content of the subheader, normally `ListSubheader`.
|
|
143
|
-
*/
|
|
144
|
-
subheader: a.node,
|
|
145
|
-
/**
|
|
146
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
147
|
-
*/
|
|
148
|
-
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object])
|
|
149
|
-
});
|
|
150
|
-
function yn(e) {
|
|
151
|
-
return je("MuiListItem", e);
|
|
152
|
-
}
|
|
153
|
-
Me("MuiListItem", ["root", "container", "dense", "alignItemsFlexStart", "divider", "gutters", "padding", "secondaryAction"]);
|
|
154
|
-
const Sn = Me("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]);
|
|
155
|
-
function Rn(e) {
|
|
156
|
-
return je("MuiListItemSecondaryAction", e);
|
|
157
|
-
}
|
|
158
|
-
Me("MuiListItemSecondaryAction", ["root", "disableGutters"]);
|
|
159
|
-
const En = (e) => {
|
|
160
|
-
const {
|
|
161
|
-
disableGutters: t,
|
|
162
|
-
classes: r
|
|
163
|
-
} = e;
|
|
164
|
-
return Fe({
|
|
165
|
-
root: ["root", t && "disableGutters"]
|
|
166
|
-
}, Rn, r);
|
|
167
|
-
}, wn = ve("div", {
|
|
168
|
-
name: "MuiListItemSecondaryAction",
|
|
169
|
-
slot: "Root",
|
|
170
|
-
overridesResolver: (e, t) => {
|
|
171
|
-
const {
|
|
172
|
-
ownerState: r
|
|
173
|
-
} = e;
|
|
174
|
-
return [t.root, r.disableGutters && t.disableGutters];
|
|
175
|
-
}
|
|
176
|
-
})({
|
|
177
|
-
position: "absolute",
|
|
178
|
-
right: 16,
|
|
179
|
-
top: "50%",
|
|
180
|
-
transform: "translateY(-50%)",
|
|
181
|
-
variants: [{
|
|
182
|
-
props: ({
|
|
183
|
-
ownerState: e
|
|
184
|
-
}) => e.disableGutters,
|
|
185
|
-
style: {
|
|
186
|
-
right: 0
|
|
187
|
-
}
|
|
188
|
-
}]
|
|
189
|
-
}), Pt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
190
|
-
const n = ke({
|
|
191
|
-
props: t,
|
|
192
|
-
name: "MuiListItemSecondaryAction"
|
|
193
|
-
}), {
|
|
194
|
-
className: o,
|
|
195
|
-
...i
|
|
196
|
-
} = n, s = v.useContext(Oe), l = {
|
|
197
|
-
...n,
|
|
198
|
-
disableGutters: s.disableGutters
|
|
199
|
-
}, d = En(l);
|
|
200
|
-
return /* @__PURE__ */ D(wn, {
|
|
201
|
-
className: Se(d.root, o),
|
|
202
|
-
ownerState: l,
|
|
203
|
-
ref: r,
|
|
204
|
-
...i
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
process.env.NODE_ENV !== "production" && (Pt.propTypes = {
|
|
208
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
209
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
210
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
211
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
212
|
-
/**
|
|
213
|
-
* The content of the component, normally an `IconButton` or selection control.
|
|
214
|
-
*/
|
|
215
|
-
children: a.node,
|
|
216
|
-
/**
|
|
217
|
-
* Override or extend the styles applied to the component.
|
|
218
|
-
*/
|
|
219
|
-
classes: a.object,
|
|
220
|
-
/**
|
|
221
|
-
* @ignore
|
|
222
|
-
*/
|
|
223
|
-
className: a.string,
|
|
224
|
-
/**
|
|
225
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
226
|
-
*/
|
|
227
|
-
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object])
|
|
228
|
-
});
|
|
229
|
-
Pt.muiName = "ListItemSecondaryAction";
|
|
230
|
-
const xn = (e, t) => {
|
|
231
|
-
const {
|
|
232
|
-
ownerState: r
|
|
233
|
-
} = e;
|
|
234
|
-
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];
|
|
235
|
-
}, _n = (e) => {
|
|
236
|
-
const {
|
|
237
|
-
alignItems: t,
|
|
238
|
-
classes: r,
|
|
239
|
-
dense: n,
|
|
240
|
-
disableGutters: o,
|
|
241
|
-
disablePadding: i,
|
|
242
|
-
divider: s,
|
|
243
|
-
hasSecondaryAction: l
|
|
244
|
-
} = e;
|
|
245
|
-
return Fe({
|
|
246
|
-
root: ["root", n && "dense", !o && "gutters", !i && "padding", s && "divider", t === "flex-start" && "alignItemsFlexStart", l && "secondaryAction"],
|
|
247
|
-
container: ["container"]
|
|
248
|
-
}, yn, r);
|
|
249
|
-
}, On = ve("div", {
|
|
250
|
-
name: "MuiListItem",
|
|
251
|
-
slot: "Root",
|
|
252
|
-
overridesResolver: xn
|
|
253
|
-
})(tt(({
|
|
254
|
-
theme: e
|
|
255
|
-
}) => ({
|
|
256
|
-
display: "flex",
|
|
257
|
-
justifyContent: "flex-start",
|
|
258
|
-
alignItems: "center",
|
|
259
|
-
position: "relative",
|
|
260
|
-
textDecoration: "none",
|
|
261
|
-
width: "100%",
|
|
262
|
-
boxSizing: "border-box",
|
|
263
|
-
textAlign: "left",
|
|
264
|
-
variants: [{
|
|
265
|
-
props: ({
|
|
266
|
-
ownerState: t
|
|
267
|
-
}) => !t.disablePadding,
|
|
268
|
-
style: {
|
|
269
|
-
paddingTop: 8,
|
|
270
|
-
paddingBottom: 8
|
|
271
|
-
}
|
|
272
|
-
}, {
|
|
273
|
-
props: ({
|
|
274
|
-
ownerState: t
|
|
275
|
-
}) => !t.disablePadding && t.dense,
|
|
276
|
-
style: {
|
|
277
|
-
paddingTop: 4,
|
|
278
|
-
paddingBottom: 4
|
|
279
|
-
}
|
|
280
|
-
}, {
|
|
281
|
-
props: ({
|
|
282
|
-
ownerState: t
|
|
283
|
-
}) => !t.disablePadding && !t.disableGutters,
|
|
284
|
-
style: {
|
|
285
|
-
paddingLeft: 16,
|
|
286
|
-
paddingRight: 16
|
|
287
|
-
}
|
|
288
|
-
}, {
|
|
289
|
-
props: ({
|
|
290
|
-
ownerState: t
|
|
291
|
-
}) => !t.disablePadding && !!t.secondaryAction,
|
|
292
|
-
style: {
|
|
293
|
-
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
294
|
-
// is absolutely positioned.
|
|
295
|
-
paddingRight: 48
|
|
296
|
-
}
|
|
297
|
-
}, {
|
|
298
|
-
props: ({
|
|
299
|
-
ownerState: t
|
|
300
|
-
}) => !!t.secondaryAction,
|
|
301
|
-
style: {
|
|
302
|
-
[`& > .${Sn.root}`]: {
|
|
303
|
-
paddingRight: 48
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}, {
|
|
307
|
-
props: {
|
|
308
|
-
alignItems: "flex-start"
|
|
309
|
-
},
|
|
310
|
-
style: {
|
|
311
|
-
alignItems: "flex-start"
|
|
312
|
-
}
|
|
313
|
-
}, {
|
|
314
|
-
props: ({
|
|
315
|
-
ownerState: t
|
|
316
|
-
}) => t.divider,
|
|
317
|
-
style: {
|
|
318
|
-
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
319
|
-
backgroundClip: "padding-box"
|
|
320
|
-
}
|
|
321
|
-
}, {
|
|
322
|
-
props: ({
|
|
323
|
-
ownerState: t
|
|
324
|
-
}) => t.button,
|
|
325
|
-
style: {
|
|
326
|
-
transition: e.transitions.create("background-color", {
|
|
327
|
-
duration: e.transitions.duration.shortest
|
|
328
|
-
}),
|
|
329
|
-
"&:hover": {
|
|
330
|
-
textDecoration: "none",
|
|
331
|
-
backgroundColor: (e.vars || e).palette.action.hover,
|
|
332
|
-
// Reset on touch devices, it doesn't add specificity
|
|
333
|
-
"@media (hover: none)": {
|
|
334
|
-
backgroundColor: "transparent"
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}, {
|
|
339
|
-
props: ({
|
|
340
|
-
ownerState: t
|
|
341
|
-
}) => t.hasSecondaryAction,
|
|
342
|
-
style: {
|
|
343
|
-
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
344
|
-
// is absolutely positioned.
|
|
345
|
-
paddingRight: 48
|
|
346
|
-
}
|
|
347
|
-
}]
|
|
348
|
-
}))), Cn = ve("li", {
|
|
349
|
-
name: "MuiListItem",
|
|
350
|
-
slot: "Container",
|
|
351
|
-
overridesResolver: (e, t) => t.container
|
|
352
|
-
})({
|
|
353
|
-
position: "relative"
|
|
354
|
-
}), gt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
355
|
-
const n = ke({
|
|
356
|
-
props: t,
|
|
357
|
-
name: "MuiListItem"
|
|
358
|
-
}), {
|
|
359
|
-
alignItems: o = "center",
|
|
360
|
-
children: i,
|
|
361
|
-
className: s,
|
|
362
|
-
component: l,
|
|
363
|
-
components: d = {},
|
|
364
|
-
componentsProps: f = {},
|
|
365
|
-
ContainerComponent: m = "li",
|
|
366
|
-
ContainerProps: {
|
|
367
|
-
className: h,
|
|
368
|
-
...g
|
|
369
|
-
} = {},
|
|
370
|
-
dense: b = !1,
|
|
371
|
-
disableGutters: y = !1,
|
|
372
|
-
disablePadding: p = !1,
|
|
373
|
-
divider: c = !1,
|
|
374
|
-
secondaryAction: w,
|
|
375
|
-
slotProps: u = {},
|
|
376
|
-
slots: R = {},
|
|
377
|
-
...C
|
|
378
|
-
} = n, x = v.useContext(Oe), L = v.useMemo(() => ({
|
|
379
|
-
dense: b || x.dense || !1,
|
|
380
|
-
alignItems: o,
|
|
381
|
-
disableGutters: y
|
|
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
|
-
...n,
|
|
384
|
-
alignItems: o,
|
|
385
|
-
dense: L.dense,
|
|
386
|
-
disableGutters: y,
|
|
387
|
-
disablePadding: p,
|
|
388
|
-
divider: c,
|
|
389
|
-
hasSecondaryAction: _
|
|
390
|
-
}, F = _n(M), Y = pn(P, r), B = R.root || d.Root || On, $ = u.root || f.root || {}, G = {
|
|
391
|
-
className: Se(F.root, $.className, s),
|
|
392
|
-
...C
|
|
393
|
-
};
|
|
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
|
-
value: L,
|
|
397
|
-
children: /* @__PURE__ */ Ce(Cn, {
|
|
398
|
-
as: m,
|
|
399
|
-
className: Se(F.container, h),
|
|
400
|
-
ref: Y,
|
|
401
|
-
ownerState: M,
|
|
402
|
-
...g,
|
|
403
|
-
children: [/* @__PURE__ */ D(B, {
|
|
404
|
-
...$,
|
|
405
|
-
...!qt(B) && {
|
|
406
|
-
as: k,
|
|
407
|
-
ownerState: {
|
|
408
|
-
...M,
|
|
409
|
-
...$.ownerState
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
...G,
|
|
413
|
-
children: T
|
|
414
|
-
}), T.pop()]
|
|
415
|
-
})
|
|
416
|
-
})) : /* @__PURE__ */ D(Oe.Provider, {
|
|
417
|
-
value: L,
|
|
418
|
-
children: /* @__PURE__ */ Ce(B, {
|
|
419
|
-
...$,
|
|
420
|
-
as: k,
|
|
421
|
-
ref: Y,
|
|
422
|
-
...!qt(B) && {
|
|
423
|
-
ownerState: {
|
|
424
|
-
...M,
|
|
425
|
-
...$.ownerState
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
...G,
|
|
429
|
-
children: [T, w && /* @__PURE__ */ D(Pt, {
|
|
430
|
-
children: w
|
|
431
|
-
})]
|
|
432
|
-
})
|
|
433
|
-
});
|
|
434
|
-
});
|
|
435
|
-
process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
436
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
437
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
438
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
439
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
440
|
-
/**
|
|
441
|
-
* Defines the `align-items` style property.
|
|
442
|
-
* @default 'center'
|
|
443
|
-
*/
|
|
444
|
-
alignItems: a.oneOf(["center", "flex-start"]),
|
|
445
|
-
/**
|
|
446
|
-
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
447
|
-
* be the last child.
|
|
448
|
-
*/
|
|
449
|
-
children: cn(a.node, (e) => {
|
|
450
|
-
const t = v.Children.toArray(e.children);
|
|
451
|
-
let r = -1;
|
|
452
|
-
for (let n = t.length - 1; n >= 0; n -= 1) {
|
|
453
|
-
const o = t[n];
|
|
454
|
-
if (vr(o, ["ListItemSecondaryAction"])) {
|
|
455
|
-
r = n;
|
|
456
|
-
break;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
return r !== -1 && r !== t.length - 1 ? new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem.") : null;
|
|
460
|
-
}),
|
|
461
|
-
/**
|
|
462
|
-
* Override or extend the styles applied to the component.
|
|
463
|
-
*/
|
|
464
|
-
classes: a.object,
|
|
465
|
-
/**
|
|
466
|
-
* @ignore
|
|
467
|
-
*/
|
|
468
|
-
className: a.string,
|
|
469
|
-
/**
|
|
470
|
-
* The component used for the root node.
|
|
471
|
-
* Either a string to use a HTML element or a component.
|
|
472
|
-
*/
|
|
473
|
-
component: a.elementType,
|
|
474
|
-
/**
|
|
475
|
-
* The components used for each slot inside.
|
|
476
|
-
*
|
|
477
|
-
* @deprecated Use the `slots` 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.
|
|
478
|
-
* @default {}
|
|
479
|
-
*/
|
|
480
|
-
components: a.shape({
|
|
481
|
-
Root: a.elementType
|
|
482
|
-
}),
|
|
483
|
-
/**
|
|
484
|
-
* The extra props for the slot components.
|
|
485
|
-
* You can override the existing props or add new ones.
|
|
486
|
-
*
|
|
487
|
-
* @deprecated Use the `slotProps` 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.
|
|
488
|
-
* @default {}
|
|
489
|
-
*/
|
|
490
|
-
componentsProps: a.shape({
|
|
491
|
-
root: a.object
|
|
492
|
-
}),
|
|
493
|
-
/**
|
|
494
|
-
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
495
|
-
* @default 'li'
|
|
496
|
-
* @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.
|
|
497
|
-
*/
|
|
498
|
-
ContainerComponent: ln,
|
|
499
|
-
/**
|
|
500
|
-
* Props applied to the container component if used.
|
|
501
|
-
* @default {}
|
|
502
|
-
* @deprecated Use the `slotProps.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.
|
|
503
|
-
*/
|
|
504
|
-
ContainerProps: a.object,
|
|
505
|
-
/**
|
|
506
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
507
|
-
* The prop defaults to the value inherited from the parent List component.
|
|
508
|
-
* @default false
|
|
509
|
-
*/
|
|
510
|
-
dense: a.bool,
|
|
511
|
-
/**
|
|
512
|
-
* If `true`, the left and right padding is removed.
|
|
513
|
-
* @default false
|
|
514
|
-
*/
|
|
515
|
-
disableGutters: a.bool,
|
|
516
|
-
/**
|
|
517
|
-
* If `true`, all padding is removed.
|
|
518
|
-
* @default false
|
|
519
|
-
*/
|
|
520
|
-
disablePadding: a.bool,
|
|
521
|
-
/**
|
|
522
|
-
* If `true`, a 1px light border is added to the bottom of the list item.
|
|
523
|
-
* @default false
|
|
524
|
-
*/
|
|
525
|
-
divider: a.bool,
|
|
526
|
-
/**
|
|
527
|
-
* The element to display at the end of ListItem.
|
|
528
|
-
*/
|
|
529
|
-
secondaryAction: a.node,
|
|
530
|
-
/**
|
|
531
|
-
* The extra props for the slot components.
|
|
532
|
-
* You can override the existing props or add new ones.
|
|
533
|
-
*
|
|
534
|
-
* @default {}
|
|
535
|
-
*/
|
|
536
|
-
slotProps: a.shape({
|
|
537
|
-
root: a.object
|
|
538
|
-
}),
|
|
539
|
-
/**
|
|
540
|
-
* The components used for each slot inside.
|
|
541
|
-
*
|
|
542
|
-
* @default {}
|
|
543
|
-
*/
|
|
544
|
-
slots: a.shape({
|
|
545
|
-
root: a.elementType
|
|
546
|
-
}),
|
|
547
|
-
/**
|
|
548
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
549
|
-
*/
|
|
550
|
-
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object])
|
|
551
|
-
});
|
|
552
|
-
function Pn(e) {
|
|
553
|
-
return je("MuiPagination", e);
|
|
554
|
-
}
|
|
555
|
-
Me("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
556
|
-
function Mn(e = {}) {
|
|
557
|
-
const {
|
|
558
|
-
boundaryCount: t = 1,
|
|
559
|
-
componentName: r = "usePagination",
|
|
560
|
-
count: n = 1,
|
|
561
|
-
defaultPage: o = 1,
|
|
562
|
-
disabled: i = !1,
|
|
563
|
-
hideNextButton: s = !1,
|
|
564
|
-
hidePrevButton: l = !1,
|
|
565
|
-
onChange: d,
|
|
566
|
-
page: f,
|
|
567
|
-
showFirstButton: m = !1,
|
|
568
|
-
showLastButton: h = !1,
|
|
569
|
-
siblingCount: g = 1,
|
|
570
|
-
...b
|
|
571
|
-
} = e, [y, p] = hn({
|
|
572
|
-
controlled: f,
|
|
573
|
-
default: o,
|
|
574
|
-
name: r,
|
|
575
|
-
state: "page"
|
|
576
|
-
}), c = (_, M) => {
|
|
577
|
-
f || p(M), d && d(_, M);
|
|
578
|
-
}, w = (_, M) => {
|
|
579
|
-
const F = M - _ + 1;
|
|
580
|
-
return Array.from({
|
|
581
|
-
length: F
|
|
582
|
-
}, (Y, B) => _ + B);
|
|
583
|
-
}, u = w(1, Math.min(t, n)), R = w(Math.max(n - t + 1, t + 1), n), C = Math.max(
|
|
584
|
-
Math.min(
|
|
585
|
-
// Natural start
|
|
586
|
-
y - g,
|
|
587
|
-
// Lower boundary when page is high
|
|
588
|
-
n - t - g * 2 - 1
|
|
589
|
-
),
|
|
590
|
-
// Greater than startPages
|
|
591
|
-
t + 2
|
|
592
|
-
), x = Math.min(
|
|
593
|
-
Math.max(
|
|
594
|
-
// Natural end
|
|
595
|
-
y + g,
|
|
596
|
-
// Upper boundary when page is low
|
|
597
|
-
t + g * 2 + 2
|
|
598
|
-
),
|
|
599
|
-
// Less than endPages
|
|
600
|
-
n - t - 1
|
|
601
|
-
), L = [
|
|
602
|
-
...m ? ["first"] : [],
|
|
603
|
-
...l ? [] : ["previous"],
|
|
604
|
-
...u,
|
|
605
|
-
// Start ellipsis
|
|
606
|
-
// eslint-disable-next-line no-nested-ternary
|
|
607
|
-
...C > t + 2 ? ["start-ellipsis"] : t + 1 < n - t ? [t + 1] : [],
|
|
608
|
-
// Sibling pages
|
|
609
|
-
...w(C, x),
|
|
610
|
-
// End ellipsis
|
|
611
|
-
// eslint-disable-next-line no-nested-ternary
|
|
612
|
-
...x < n - t - 1 ? ["end-ellipsis"] : n - t > t ? [n - t] : [],
|
|
613
|
-
...R,
|
|
614
|
-
...s ? [] : ["next"],
|
|
615
|
-
...h ? ["last"] : []
|
|
616
|
-
], P = (_) => {
|
|
617
|
-
switch (_) {
|
|
618
|
-
case "first":
|
|
619
|
-
return 1;
|
|
620
|
-
case "previous":
|
|
621
|
-
return y - 1;
|
|
622
|
-
case "next":
|
|
623
|
-
return y + 1;
|
|
624
|
-
case "last":
|
|
625
|
-
return n;
|
|
626
|
-
default:
|
|
627
|
-
return null;
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
|
-
return {
|
|
631
|
-
items: L.map((_) => typeof _ == "number" ? {
|
|
632
|
-
onClick: (M) => {
|
|
633
|
-
c(M, _);
|
|
634
|
-
},
|
|
635
|
-
type: "page",
|
|
636
|
-
page: _,
|
|
637
|
-
selected: _ === y,
|
|
638
|
-
disabled: i,
|
|
639
|
-
"aria-current": _ === y ? "page" : void 0
|
|
640
|
-
} : {
|
|
641
|
-
onClick: (M) => {
|
|
642
|
-
c(M, P(_));
|
|
643
|
-
},
|
|
644
|
-
type: _,
|
|
645
|
-
page: P(_),
|
|
646
|
-
selected: !1,
|
|
647
|
-
disabled: i || !_.includes("ellipsis") && (_ === "next" || _ === "last" ? y >= n : y <= 1)
|
|
648
|
-
}),
|
|
649
|
-
...b
|
|
650
|
-
};
|
|
651
|
-
}
|
|
652
|
-
function Tn(e) {
|
|
653
|
-
return je("MuiPaginationItem", e);
|
|
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__ */ D("path", {
|
|
656
|
-
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
657
|
-
}), "FirstPage"), Ln = rt(/* @__PURE__ */ D("path", {
|
|
658
|
-
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
659
|
-
}), "LastPage"), Nn = rt(/* @__PURE__ */ D("path", {
|
|
660
|
-
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
661
|
-
}), "NavigateBefore"), An = rt(/* @__PURE__ */ D("path", {
|
|
662
|
-
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
663
|
-
}), "NavigateNext"), pr = (e, t) => {
|
|
664
|
-
const {
|
|
665
|
-
ownerState: r
|
|
666
|
-
} = e;
|
|
667
|
-
return [t.root, t[r.variant], t[`size${_e(r.size)}`], r.variant === "text" && t[`text${_e(r.color)}`], r.variant === "outlined" && t[`outlined${_e(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];
|
|
668
|
-
}, $n = (e) => {
|
|
669
|
-
const {
|
|
670
|
-
classes: t,
|
|
671
|
-
color: r,
|
|
672
|
-
disabled: n,
|
|
673
|
-
selected: o,
|
|
674
|
-
size: i,
|
|
675
|
-
shape: s,
|
|
676
|
-
type: l,
|
|
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
|
-
page: "page",
|
|
681
|
-
first: "firstLast",
|
|
682
|
-
last: "firstLast",
|
|
683
|
-
"start-ellipsis": "ellipsis",
|
|
684
|
-
"end-ellipsis": "ellipsis",
|
|
685
|
-
previous: "previousNext",
|
|
686
|
-
next: "previousNext"
|
|
687
|
-
}[l]],
|
|
688
|
-
icon: ["icon"]
|
|
689
|
-
};
|
|
690
|
-
return Fe(f, Tn, t);
|
|
691
|
-
}, zn = ve("div", {
|
|
692
|
-
name: "MuiPaginationItem",
|
|
693
|
-
slot: "Root",
|
|
694
|
-
overridesResolver: pr
|
|
695
|
-
})(tt(({
|
|
696
|
-
theme: e
|
|
697
|
-
}) => ({
|
|
698
|
-
...e.typography.body2,
|
|
699
|
-
borderRadius: 32 / 2,
|
|
700
|
-
textAlign: "center",
|
|
701
|
-
boxSizing: "border-box",
|
|
702
|
-
minWidth: 32,
|
|
703
|
-
padding: "0 6px",
|
|
704
|
-
margin: "0 3px",
|
|
705
|
-
color: (e.vars || e).palette.text.primary,
|
|
706
|
-
height: "auto",
|
|
707
|
-
[`&.${Q.disabled}`]: {
|
|
708
|
-
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
709
|
-
},
|
|
710
|
-
variants: [{
|
|
711
|
-
props: {
|
|
712
|
-
size: "small"
|
|
713
|
-
},
|
|
714
|
-
style: {
|
|
715
|
-
minWidth: 26,
|
|
716
|
-
borderRadius: 26 / 2,
|
|
717
|
-
margin: "0 1px",
|
|
718
|
-
padding: "0 4px"
|
|
719
|
-
}
|
|
720
|
-
}, {
|
|
721
|
-
props: {
|
|
722
|
-
size: "large"
|
|
723
|
-
},
|
|
724
|
-
style: {
|
|
725
|
-
minWidth: 40,
|
|
726
|
-
borderRadius: 40 / 2,
|
|
727
|
-
padding: "0 10px",
|
|
728
|
-
fontSize: e.typography.pxToRem(15)
|
|
729
|
-
}
|
|
730
|
-
}]
|
|
731
|
-
}))), Dn = ve(un, {
|
|
732
|
-
name: "MuiPaginationItem",
|
|
733
|
-
slot: "Root",
|
|
734
|
-
overridesResolver: pr
|
|
735
|
-
})(tt(({
|
|
736
|
-
theme: e
|
|
737
|
-
}) => ({
|
|
738
|
-
...e.typography.body2,
|
|
739
|
-
borderRadius: 32 / 2,
|
|
740
|
-
textAlign: "center",
|
|
741
|
-
boxSizing: "border-box",
|
|
742
|
-
minWidth: 32,
|
|
743
|
-
height: 32,
|
|
744
|
-
padding: "0 6px",
|
|
745
|
-
margin: "0 3px",
|
|
746
|
-
color: (e.vars || e).palette.text.primary,
|
|
747
|
-
[`&.${Q.focusVisible}`]: {
|
|
748
|
-
backgroundColor: (e.vars || e).palette.action.focus
|
|
749
|
-
},
|
|
750
|
-
[`&.${Q.disabled}`]: {
|
|
751
|
-
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
752
|
-
},
|
|
753
|
-
transition: e.transitions.create(["color", "background-color"], {
|
|
754
|
-
duration: e.transitions.duration.short
|
|
755
|
-
}),
|
|
756
|
-
"&:hover": {
|
|
757
|
-
backgroundColor: (e.vars || e).palette.action.hover,
|
|
758
|
-
// Reset on touch devices, it doesn't add specificity
|
|
759
|
-
"@media (hover: none)": {
|
|
760
|
-
backgroundColor: "transparent"
|
|
761
|
-
}
|
|
762
|
-
},
|
|
763
|
-
[`&.${Q.selected}`]: {
|
|
764
|
-
backgroundColor: (e.vars || e).palette.action.selected,
|
|
765
|
-
"&:hover": {
|
|
766
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : xe(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
767
|
-
// Reset on touch devices, it doesn't add specificity
|
|
768
|
-
"@media (hover: none)": {
|
|
769
|
-
backgroundColor: (e.vars || e).palette.action.selected
|
|
770
|
-
}
|
|
771
|
-
},
|
|
772
|
-
[`&.${Q.focusVisible}`]: {
|
|
773
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : xe(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
774
|
-
},
|
|
775
|
-
[`&.${Q.disabled}`]: {
|
|
776
|
-
opacity: 1,
|
|
777
|
-
color: (e.vars || e).palette.action.disabled,
|
|
778
|
-
backgroundColor: (e.vars || e).palette.action.selected
|
|
779
|
-
}
|
|
780
|
-
},
|
|
781
|
-
variants: [{
|
|
782
|
-
props: {
|
|
783
|
-
size: "small"
|
|
784
|
-
},
|
|
785
|
-
style: {
|
|
786
|
-
minWidth: 26,
|
|
787
|
-
height: 26,
|
|
788
|
-
borderRadius: 26 / 2,
|
|
789
|
-
margin: "0 1px",
|
|
790
|
-
padding: "0 4px"
|
|
791
|
-
}
|
|
792
|
-
}, {
|
|
793
|
-
props: {
|
|
794
|
-
size: "large"
|
|
795
|
-
},
|
|
796
|
-
style: {
|
|
797
|
-
minWidth: 40,
|
|
798
|
-
height: 40,
|
|
799
|
-
borderRadius: 40 / 2,
|
|
800
|
-
padding: "0 10px",
|
|
801
|
-
fontSize: e.typography.pxToRem(15)
|
|
802
|
-
}
|
|
803
|
-
}, {
|
|
804
|
-
props: {
|
|
805
|
-
shape: "rounded"
|
|
806
|
-
},
|
|
807
|
-
style: {
|
|
808
|
-
borderRadius: (e.vars || e).shape.borderRadius
|
|
809
|
-
}
|
|
810
|
-
}, {
|
|
811
|
-
props: {
|
|
812
|
-
variant: "outlined"
|
|
813
|
-
},
|
|
814
|
-
style: {
|
|
815
|
-
border: e.vars ? `1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${e.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
|
|
816
|
-
[`&.${Q.selected}`]: {
|
|
817
|
-
[`&.${Q.disabled}`]: {
|
|
818
|
-
borderColor: (e.vars || e).palette.action.disabledBackground,
|
|
819
|
-
color: (e.vars || e).palette.action.disabled
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
}, {
|
|
824
|
-
props: {
|
|
825
|
-
variant: "text"
|
|
826
|
-
},
|
|
827
|
-
style: {
|
|
828
|
-
[`&.${Q.selected}`]: {
|
|
829
|
-
[`&.${Q.disabled}`]: {
|
|
830
|
-
color: (e.vars || e).palette.action.disabled
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
}, ...Object.entries(e.palette).filter(Kt(["dark", "contrastText"])).map(([t]) => ({
|
|
835
|
-
props: {
|
|
836
|
-
variant: "text",
|
|
837
|
-
color: t
|
|
838
|
-
},
|
|
839
|
-
style: {
|
|
840
|
-
[`&.${Q.selected}`]: {
|
|
841
|
-
color: (e.vars || e).palette[t].contrastText,
|
|
842
|
-
backgroundColor: (e.vars || e).palette[t].main,
|
|
843
|
-
"&:hover": {
|
|
844
|
-
backgroundColor: (e.vars || e).palette[t].dark,
|
|
845
|
-
// Reset on touch devices, it doesn't add specificity
|
|
846
|
-
"@media (hover: none)": {
|
|
847
|
-
backgroundColor: (e.vars || e).palette[t].main
|
|
848
|
-
}
|
|
849
|
-
},
|
|
850
|
-
[`&.${Q.focusVisible}`]: {
|
|
851
|
-
backgroundColor: (e.vars || e).palette[t].dark
|
|
852
|
-
},
|
|
853
|
-
[`&.${Q.disabled}`]: {
|
|
854
|
-
color: (e.vars || e).palette.action.disabled
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
})), ...Object.entries(e.palette).filter(Kt(["light"])).map(([t]) => ({
|
|
859
|
-
props: {
|
|
860
|
-
variant: "outlined",
|
|
861
|
-
color: t
|
|
862
|
-
},
|
|
863
|
-
style: {
|
|
864
|
-
[`&.${Q.selected}`]: {
|
|
865
|
-
color: (e.vars || e).palette[t].main,
|
|
866
|
-
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[t].mainChannel} / 0.5)` : xe(e.palette[t].main, 0.5)}`,
|
|
867
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})` : xe(e.palette[t].main, e.palette.action.activatedOpacity),
|
|
868
|
-
"&:hover": {
|
|
869
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` : xe(e.palette[t].main, e.palette.action.activatedOpacity + e.palette.action.focusOpacity),
|
|
870
|
-
// Reset on touch devices, it doesn't add specificity
|
|
871
|
-
"@media (hover: none)": {
|
|
872
|
-
backgroundColor: "transparent"
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
[`&.${Q.focusVisible}`]: {
|
|
876
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` : xe(e.palette[t].main, e.palette.action.activatedOpacity + e.palette.action.focusOpacity)
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
}))]
|
|
881
|
-
}))), jn = ve("div", {
|
|
882
|
-
name: "MuiPaginationItem",
|
|
883
|
-
slot: "Icon",
|
|
884
|
-
overridesResolver: (e, t) => t.icon
|
|
885
|
-
})(tt(({
|
|
886
|
-
theme: e
|
|
887
|
-
}) => ({
|
|
888
|
-
fontSize: e.typography.pxToRem(20),
|
|
889
|
-
margin: "0 -8px",
|
|
890
|
-
variants: [{
|
|
891
|
-
props: {
|
|
892
|
-
size: "small"
|
|
893
|
-
},
|
|
894
|
-
style: {
|
|
895
|
-
fontSize: e.typography.pxToRem(18)
|
|
896
|
-
}
|
|
897
|
-
}, {
|
|
898
|
-
props: {
|
|
899
|
-
size: "large"
|
|
900
|
-
},
|
|
901
|
-
style: {
|
|
902
|
-
fontSize: e.typography.pxToRem(22)
|
|
903
|
-
}
|
|
904
|
-
}]
|
|
905
|
-
}))), hr = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
906
|
-
const n = ke({
|
|
907
|
-
props: t,
|
|
908
|
-
name: "MuiPaginationItem"
|
|
909
|
-
}), {
|
|
910
|
-
className: o,
|
|
911
|
-
color: i = "standard",
|
|
912
|
-
component: s,
|
|
913
|
-
components: l = {},
|
|
914
|
-
disabled: d = !1,
|
|
915
|
-
page: f,
|
|
916
|
-
selected: m = !1,
|
|
917
|
-
shape: h = "circular",
|
|
918
|
-
size: g = "medium",
|
|
919
|
-
slots: b = {},
|
|
920
|
-
slotProps: y = {},
|
|
921
|
-
type: p = "page",
|
|
922
|
-
variant: c = "text",
|
|
923
|
-
...w
|
|
924
|
-
} = n, u = {
|
|
925
|
-
...n,
|
|
926
|
-
color: i,
|
|
927
|
-
disabled: d,
|
|
928
|
-
selected: m,
|
|
929
|
-
shape: h,
|
|
930
|
-
size: g,
|
|
931
|
-
type: p,
|
|
932
|
-
variant: c
|
|
933
|
-
}, R = rn(), C = $n(u), x = {
|
|
934
|
-
slots: {
|
|
935
|
-
previous: b.previous ?? l.previous,
|
|
936
|
-
next: b.next ?? l.next,
|
|
937
|
-
first: b.first ?? l.first,
|
|
938
|
-
last: b.last ?? l.last
|
|
939
|
-
},
|
|
940
|
-
slotProps: y
|
|
941
|
-
}, [L, P] = Xe("previous", {
|
|
942
|
-
elementType: Nn,
|
|
943
|
-
externalForwardedProps: x,
|
|
944
|
-
ownerState: u
|
|
945
|
-
}), [T, _] = Xe("next", {
|
|
946
|
-
elementType: An,
|
|
947
|
-
externalForwardedProps: x,
|
|
948
|
-
ownerState: u
|
|
949
|
-
}), [M, F] = Xe("first", {
|
|
950
|
-
elementType: In,
|
|
951
|
-
externalForwardedProps: x,
|
|
952
|
-
ownerState: u
|
|
953
|
-
}), [Y, B] = Xe("last", {
|
|
954
|
-
elementType: Ln,
|
|
955
|
-
externalForwardedProps: x,
|
|
956
|
-
ownerState: u
|
|
957
|
-
}), $ = R ? {
|
|
958
|
-
previous: "next",
|
|
959
|
-
next: "previous",
|
|
960
|
-
first: "last",
|
|
961
|
-
last: "first"
|
|
962
|
-
}[p] : p, G = {
|
|
963
|
-
previous: L,
|
|
964
|
-
next: T,
|
|
965
|
-
first: M,
|
|
966
|
-
last: Y
|
|
967
|
-
}[$], k = {
|
|
968
|
-
previous: P,
|
|
969
|
-
next: _,
|
|
970
|
-
first: F,
|
|
971
|
-
last: B
|
|
972
|
-
}[$];
|
|
973
|
-
return p === "start-ellipsis" || p === "end-ellipsis" ? /* @__PURE__ */ D(zn, {
|
|
974
|
-
ref: r,
|
|
975
|
-
ownerState: u,
|
|
976
|
-
className: Se(C.root, o),
|
|
977
|
-
children: "…"
|
|
978
|
-
}) : /* @__PURE__ */ Ce(Dn, {
|
|
979
|
-
ref: r,
|
|
980
|
-
ownerState: u,
|
|
981
|
-
component: s,
|
|
982
|
-
disabled: d,
|
|
983
|
-
className: Se(C.root, o),
|
|
984
|
-
...w,
|
|
985
|
-
children: [p === "page" && f, G ? /* @__PURE__ */ D(jn, {
|
|
986
|
-
...k,
|
|
987
|
-
className: C.icon,
|
|
988
|
-
as: G
|
|
989
|
-
}) : null]
|
|
990
|
-
});
|
|
991
|
-
});
|
|
992
|
-
process.env.NODE_ENV !== "production" && (hr.propTypes = {
|
|
993
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
994
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
995
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
996
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
997
|
-
/**
|
|
998
|
-
* @ignore
|
|
999
|
-
*/
|
|
1000
|
-
children: a.node,
|
|
1001
|
-
/**
|
|
1002
|
-
* Override or extend the styles applied to the component.
|
|
1003
|
-
*/
|
|
1004
|
-
classes: a.object,
|
|
1005
|
-
/**
|
|
1006
|
-
* @ignore
|
|
1007
|
-
*/
|
|
1008
|
-
className: a.string,
|
|
1009
|
-
/**
|
|
1010
|
-
* The active color.
|
|
1011
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1012
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
1013
|
-
* @default 'standard'
|
|
1014
|
-
*/
|
|
1015
|
-
color: a.oneOfType([a.oneOf(["primary", "secondary", "standard"]), a.string]),
|
|
1016
|
-
/**
|
|
1017
|
-
* The component used for the root node.
|
|
1018
|
-
* Either a string to use a HTML element or a component.
|
|
1019
|
-
*/
|
|
1020
|
-
component: a.elementType,
|
|
1021
|
-
/**
|
|
1022
|
-
* The components used for each slot inside.
|
|
1023
|
-
*
|
|
1024
|
-
* This prop is an alias for the `slots` prop.
|
|
1025
|
-
* It's recommended to use the `slots` prop instead.
|
|
1026
|
-
*
|
|
1027
|
-
* @default {}
|
|
1028
|
-
* @deprecated use the `slots` 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.
|
|
1029
|
-
*/
|
|
1030
|
-
components: a.shape({
|
|
1031
|
-
first: a.elementType,
|
|
1032
|
-
last: a.elementType,
|
|
1033
|
-
next: a.elementType,
|
|
1034
|
-
previous: a.elementType
|
|
1035
|
-
}),
|
|
1036
|
-
/**
|
|
1037
|
-
* If `true`, the component is disabled.
|
|
1038
|
-
* @default false
|
|
1039
|
-
*/
|
|
1040
|
-
disabled: a.bool,
|
|
1041
|
-
/**
|
|
1042
|
-
* The current page number.
|
|
1043
|
-
*/
|
|
1044
|
-
page: a.node,
|
|
1045
|
-
/**
|
|
1046
|
-
* If `true` the pagination item is selected.
|
|
1047
|
-
* @default false
|
|
1048
|
-
*/
|
|
1049
|
-
selected: a.bool,
|
|
1050
|
-
/**
|
|
1051
|
-
* The shape of the pagination item.
|
|
1052
|
-
* @default 'circular'
|
|
1053
|
-
*/
|
|
1054
|
-
shape: a.oneOf(["circular", "rounded"]),
|
|
1055
|
-
/**
|
|
1056
|
-
* The size of the component.
|
|
1057
|
-
* @default 'medium'
|
|
1058
|
-
*/
|
|
1059
|
-
size: a.oneOfType([a.oneOf(["small", "medium", "large"]), a.string]),
|
|
1060
|
-
/**
|
|
1061
|
-
* The props used for each slot inside.
|
|
1062
|
-
* @default {}
|
|
1063
|
-
*/
|
|
1064
|
-
slotProps: a.shape({
|
|
1065
|
-
first: a.oneOfType([a.func, a.object]),
|
|
1066
|
-
last: a.oneOfType([a.func, a.object]),
|
|
1067
|
-
next: a.oneOfType([a.func, a.object]),
|
|
1068
|
-
previous: a.oneOfType([a.func, a.object])
|
|
1069
|
-
}),
|
|
1070
|
-
/**
|
|
1071
|
-
* The components used for each slot inside.
|
|
1072
|
-
* @default {}
|
|
1073
|
-
*/
|
|
1074
|
-
slots: a.shape({
|
|
1075
|
-
first: a.elementType,
|
|
1076
|
-
last: a.elementType,
|
|
1077
|
-
next: a.elementType,
|
|
1078
|
-
previous: a.elementType
|
|
1079
|
-
}),
|
|
1080
|
-
/**
|
|
1081
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1082
|
-
*/
|
|
1083
|
-
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
1084
|
-
/**
|
|
1085
|
-
* The type of pagination item.
|
|
1086
|
-
* @default 'page'
|
|
1087
|
-
*/
|
|
1088
|
-
type: a.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
|
|
1089
|
-
/**
|
|
1090
|
-
* The variant to use.
|
|
1091
|
-
* @default 'text'
|
|
1092
|
-
*/
|
|
1093
|
-
variant: a.oneOfType([a.oneOf(["outlined", "text"]), a.string])
|
|
1094
|
-
});
|
|
1095
|
-
const kn = (e) => {
|
|
1096
|
-
const {
|
|
1097
|
-
classes: t,
|
|
1098
|
-
variant: r
|
|
1099
|
-
} = e;
|
|
1100
|
-
return Fe({
|
|
1101
|
-
root: ["root", r],
|
|
1102
|
-
ul: ["ul"]
|
|
1103
|
-
}, Pn, t);
|
|
1104
|
-
}, Fn = ve("nav", {
|
|
1105
|
-
name: "MuiPagination",
|
|
1106
|
-
slot: "Root",
|
|
1107
|
-
overridesResolver: (e, t) => {
|
|
1108
|
-
const {
|
|
1109
|
-
ownerState: r
|
|
1110
|
-
} = e;
|
|
1111
|
-
return [t.root, t[r.variant]];
|
|
1112
|
-
}
|
|
1113
|
-
})({}), Hn = ve("ul", {
|
|
1114
|
-
name: "MuiPagination",
|
|
1115
|
-
slot: "Ul",
|
|
1116
|
-
overridesResolver: (e, t) => t.ul
|
|
1117
|
-
})({
|
|
1118
|
-
display: "flex",
|
|
1119
|
-
flexWrap: "wrap",
|
|
1120
|
-
alignItems: "center",
|
|
1121
|
-
padding: 0,
|
|
1122
|
-
margin: 0,
|
|
1123
|
-
listStyle: "none"
|
|
1124
|
-
});
|
|
1125
|
-
function Vn(e, t, r) {
|
|
1126
|
-
return e === "page" ? `${r ? "" : "Go to "}page ${t}` : `Go to ${e} page`;
|
|
1127
|
-
}
|
|
1128
|
-
const bt = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
1129
|
-
const n = ke({
|
|
1130
|
-
props: t,
|
|
1131
|
-
name: "MuiPagination"
|
|
1132
|
-
}), {
|
|
1133
|
-
boundaryCount: o = 1,
|
|
1134
|
-
className: i,
|
|
1135
|
-
color: s = "standard",
|
|
1136
|
-
count: l = 1,
|
|
1137
|
-
defaultPage: d = 1,
|
|
1138
|
-
disabled: f = !1,
|
|
1139
|
-
getItemAriaLabel: m = Vn,
|
|
1140
|
-
hideNextButton: h = !1,
|
|
1141
|
-
hidePrevButton: g = !1,
|
|
1142
|
-
onChange: b,
|
|
1143
|
-
page: y,
|
|
1144
|
-
renderItem: p = (M) => /* @__PURE__ */ D(hr, {
|
|
1145
|
-
...M
|
|
1146
|
-
}),
|
|
1147
|
-
shape: c = "circular",
|
|
1148
|
-
showFirstButton: w = !1,
|
|
1149
|
-
showLastButton: u = !1,
|
|
1150
|
-
siblingCount: R = 1,
|
|
1151
|
-
size: C = "medium",
|
|
1152
|
-
variant: x = "text",
|
|
1153
|
-
...L
|
|
1154
|
-
} = n, {
|
|
1155
|
-
items: P
|
|
1156
|
-
} = Mn({
|
|
1157
|
-
...n,
|
|
1158
|
-
componentName: "Pagination"
|
|
1159
|
-
}), T = {
|
|
1160
|
-
...n,
|
|
1161
|
-
boundaryCount: o,
|
|
1162
|
-
color: s,
|
|
1163
|
-
count: l,
|
|
1164
|
-
defaultPage: d,
|
|
1165
|
-
disabled: f,
|
|
1166
|
-
getItemAriaLabel: m,
|
|
1167
|
-
hideNextButton: h,
|
|
1168
|
-
hidePrevButton: g,
|
|
1169
|
-
renderItem: p,
|
|
1170
|
-
shape: c,
|
|
1171
|
-
showFirstButton: w,
|
|
1172
|
-
showLastButton: u,
|
|
1173
|
-
siblingCount: R,
|
|
1174
|
-
size: C,
|
|
1175
|
-
variant: x
|
|
1176
|
-
}, _ = kn(T);
|
|
1177
|
-
return /* @__PURE__ */ D(Fn, {
|
|
1178
|
-
"aria-label": "pagination navigation",
|
|
1179
|
-
className: Se(_.root, i),
|
|
1180
|
-
ownerState: T,
|
|
1181
|
-
ref: r,
|
|
1182
|
-
...L,
|
|
1183
|
-
children: /* @__PURE__ */ D(Hn, {
|
|
1184
|
-
className: _.ul,
|
|
1185
|
-
ownerState: T,
|
|
1186
|
-
children: P.map((M, F) => /* @__PURE__ */ D("li", {
|
|
1187
|
-
children: p({
|
|
1188
|
-
...M,
|
|
1189
|
-
color: s,
|
|
1190
|
-
"aria-label": m(M.type, M.page, M.selected),
|
|
1191
|
-
shape: c,
|
|
1192
|
-
size: C,
|
|
1193
|
-
variant: x
|
|
1194
|
-
})
|
|
1195
|
-
}, F))
|
|
1196
|
-
})
|
|
1197
|
-
});
|
|
1198
|
-
});
|
|
1199
|
-
process.env.NODE_ENV !== "production" && (bt.propTypes = {
|
|
1200
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1201
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1202
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1203
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1204
|
-
/**
|
|
1205
|
-
* Number of always visible pages at the beginning and end.
|
|
1206
|
-
* @default 1
|
|
1207
|
-
*/
|
|
1208
|
-
boundaryCount: ze,
|
|
1209
|
-
/**
|
|
1210
|
-
* Override or extend the styles applied to the component.
|
|
1211
|
-
*/
|
|
1212
|
-
classes: a.object,
|
|
1213
|
-
/**
|
|
1214
|
-
* @ignore
|
|
1215
|
-
*/
|
|
1216
|
-
className: a.string,
|
|
1217
|
-
/**
|
|
1218
|
-
* The active color.
|
|
1219
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1220
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
1221
|
-
* @default 'standard'
|
|
1222
|
-
*/
|
|
1223
|
-
color: a.oneOfType([a.oneOf(["primary", "secondary", "standard"]), a.string]),
|
|
1224
|
-
/**
|
|
1225
|
-
* The total number of pages.
|
|
1226
|
-
* @default 1
|
|
1227
|
-
*/
|
|
1228
|
-
count: ze,
|
|
1229
|
-
/**
|
|
1230
|
-
* The page selected by default when the component is uncontrolled.
|
|
1231
|
-
* @default 1
|
|
1232
|
-
*/
|
|
1233
|
-
defaultPage: ze,
|
|
1234
|
-
/**
|
|
1235
|
-
* If `true`, the component is disabled.
|
|
1236
|
-
* @default false
|
|
1237
|
-
*/
|
|
1238
|
-
disabled: a.bool,
|
|
1239
|
-
/**
|
|
1240
|
-
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
1241
|
-
* This is important for screen reader users.
|
|
1242
|
-
*
|
|
1243
|
-
* For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
|
|
1244
|
-
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
|
|
1245
|
-
* @param {number | null} page The page number to format.
|
|
1246
|
-
* @param {boolean} selected If true, the current page is selected.
|
|
1247
|
-
* @returns {string}
|
|
1248
|
-
*/
|
|
1249
|
-
getItemAriaLabel: a.func,
|
|
1250
|
-
/**
|
|
1251
|
-
* If `true`, hide the next-page button.
|
|
1252
|
-
* @default false
|
|
1253
|
-
*/
|
|
1254
|
-
hideNextButton: a.bool,
|
|
1255
|
-
/**
|
|
1256
|
-
* If `true`, hide the previous-page button.
|
|
1257
|
-
* @default false
|
|
1258
|
-
*/
|
|
1259
|
-
hidePrevButton: a.bool,
|
|
1260
|
-
/**
|
|
1261
|
-
* Callback fired when the page is changed.
|
|
1262
|
-
*
|
|
1263
|
-
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
1264
|
-
* @param {number} page The page selected.
|
|
1265
|
-
*/
|
|
1266
|
-
onChange: a.func,
|
|
1267
|
-
/**
|
|
1268
|
-
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
1269
|
-
*/
|
|
1270
|
-
page: ze,
|
|
1271
|
-
/**
|
|
1272
|
-
* Render the item.
|
|
1273
|
-
* @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
|
|
1274
|
-
* @returns {ReactNode}
|
|
1275
|
-
* @default (item) => <PaginationItem {...item} />
|
|
1276
|
-
*/
|
|
1277
|
-
renderItem: a.func,
|
|
1278
|
-
/**
|
|
1279
|
-
* The shape of the pagination items.
|
|
1280
|
-
* @default 'circular'
|
|
1281
|
-
*/
|
|
1282
|
-
shape: a.oneOf(["circular", "rounded"]),
|
|
1283
|
-
/**
|
|
1284
|
-
* If `true`, show the first-page button.
|
|
1285
|
-
* @default false
|
|
1286
|
-
*/
|
|
1287
|
-
showFirstButton: a.bool,
|
|
1288
|
-
/**
|
|
1289
|
-
* If `true`, show the last-page button.
|
|
1290
|
-
* @default false
|
|
1291
|
-
*/
|
|
1292
|
-
showLastButton: a.bool,
|
|
1293
|
-
/**
|
|
1294
|
-
* Number of always visible pages before and after the current page.
|
|
1295
|
-
* @default 1
|
|
1296
|
-
*/
|
|
1297
|
-
siblingCount: ze,
|
|
1298
|
-
/**
|
|
1299
|
-
* The size of the component.
|
|
1300
|
-
* @default 'medium'
|
|
1301
|
-
*/
|
|
1302
|
-
size: a.oneOfType([a.oneOf(["small", "medium", "large"]), a.string]),
|
|
1303
|
-
/**
|
|
1304
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1305
|
-
*/
|
|
1306
|
-
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
1307
|
-
/**
|
|
1308
|
-
* The variant to use.
|
|
1309
|
-
* @default 'text'
|
|
1310
|
-
*/
|
|
1311
|
-
variant: a.oneOfType([a.oneOf(["outlined", "text"]), a.string])
|
|
1312
|
-
});
|
|
1313
|
-
function oe(e) {
|
|
1314
|
-
"@babel/helpers - typeof";
|
|
1315
|
-
return oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1316
|
-
return typeof t;
|
|
1317
|
-
} : function(t) {
|
|
1318
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1319
|
-
}, oe(e);
|
|
1320
|
-
}
|
|
1321
|
-
function Bn(e, t) {
|
|
1322
|
-
if (oe(e) != "object" || !e) return e;
|
|
1323
|
-
var r = e[Symbol.toPrimitive];
|
|
1324
|
-
if (r !== void 0) {
|
|
1325
|
-
var n = r.call(e, t || "default");
|
|
1326
|
-
if (oe(n) != "object") return n;
|
|
1327
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1328
|
-
}
|
|
1329
|
-
return (t === "string" ? String : Number)(e);
|
|
1330
|
-
}
|
|
1331
|
-
function mr(e) {
|
|
1332
|
-
var t = Bn(e, "string");
|
|
1333
|
-
return oe(t) == "symbol" ? t : t + "";
|
|
1334
|
-
}
|
|
1335
|
-
function ee(e, t, r) {
|
|
1336
|
-
return (t = mr(t)) in e ? Object.defineProperty(e, t, {
|
|
1337
|
-
value: r,
|
|
1338
|
-
enumerable: !0,
|
|
1339
|
-
configurable: !0,
|
|
1340
|
-
writable: !0
|
|
1341
|
-
}) : e[t] = r, e;
|
|
1342
|
-
}
|
|
1343
|
-
function Zt(e, t) {
|
|
1344
|
-
var r = Object.keys(e);
|
|
1345
|
-
if (Object.getOwnPropertySymbols) {
|
|
1346
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
1347
|
-
t && (n = n.filter(function(o) {
|
|
1348
|
-
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
1349
|
-
})), r.push.apply(r, n);
|
|
1350
|
-
}
|
|
1351
|
-
return r;
|
|
1352
|
-
}
|
|
1353
|
-
function q(e) {
|
|
1354
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1355
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
1356
|
-
t % 2 ? Zt(Object(r), !0).forEach(function(n) {
|
|
1357
|
-
ee(e, n, r[n]);
|
|
1358
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Zt(Object(r)).forEach(function(n) {
|
|
1359
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
return e;
|
|
1363
|
-
}
|
|
1364
|
-
function Wn(e) {
|
|
1365
|
-
if (Array.isArray(e)) return e;
|
|
1366
|
-
}
|
|
1367
|
-
function Yn(e, t) {
|
|
1368
|
-
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1369
|
-
if (r != null) {
|
|
1370
|
-
var n, o, i, s, l = [], d = !0, f = !1;
|
|
1371
|
-
try {
|
|
1372
|
-
if (i = (r = r.call(e)).next, t === 0) {
|
|
1373
|
-
if (Object(r) !== r) return;
|
|
1374
|
-
d = !1;
|
|
1375
|
-
} else for (; !(d = (n = i.call(r)).done) && (l.push(n.value), l.length !== t); d = !0) ;
|
|
1376
|
-
} catch (m) {
|
|
1377
|
-
f = !0, o = m;
|
|
1378
|
-
} finally {
|
|
1379
|
-
try {
|
|
1380
|
-
if (!d && r.return != null && (s = r.return(), Object(s) !== s)) return;
|
|
1381
|
-
} finally {
|
|
1382
|
-
if (f) throw o;
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
return l;
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
function Jt(e, t) {
|
|
1389
|
-
(t == null || t > e.length) && (t = e.length);
|
|
1390
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1391
|
-
return n;
|
|
1392
|
-
}
|
|
1393
|
-
function Gn(e, t) {
|
|
1394
|
-
if (e) {
|
|
1395
|
-
if (typeof e == "string") return Jt(e, t);
|
|
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) ? Jt(e, t) : void 0;
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
function Un() {
|
|
1401
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1402
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1403
|
-
}
|
|
1404
|
-
function K(e, t) {
|
|
1405
|
-
return Wn(e) || Yn(e, t) || Gn(e, t) || Un();
|
|
1406
|
-
}
|
|
1407
|
-
function Xn(e, t) {
|
|
1408
|
-
if (e == null) return {};
|
|
1409
|
-
var r, n, o = fn(e, t);
|
|
1410
|
-
if (Object.getOwnPropertySymbols) {
|
|
1411
|
-
var i = Object.getOwnPropertySymbols(e);
|
|
1412
|
-
for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
1413
|
-
}
|
|
1414
|
-
return o;
|
|
1415
|
-
}
|
|
1416
|
-
var gr = { exports: {} };
|
|
1417
|
-
/*!
|
|
1418
|
-
Copyright (c) 2018 Jed Watson.
|
|
1419
|
-
Licensed under the MIT License (MIT), see
|
|
1420
|
-
http://jedwatson.github.io/classnames
|
|
1421
|
-
*/
|
|
1422
|
-
(function(e) {
|
|
1423
|
-
(function() {
|
|
1424
|
-
var t = {}.hasOwnProperty;
|
|
1425
|
-
function r() {
|
|
1426
|
-
for (var i = "", s = 0; s < arguments.length; s++) {
|
|
1427
|
-
var l = arguments[s];
|
|
1428
|
-
l && (i = o(i, n(l)));
|
|
1429
|
-
}
|
|
1430
|
-
return i;
|
|
1431
|
-
}
|
|
1432
|
-
function n(i) {
|
|
1433
|
-
if (typeof i == "string" || typeof i == "number")
|
|
1434
|
-
return i;
|
|
1435
|
-
if (typeof i != "object")
|
|
1436
|
-
return "";
|
|
1437
|
-
if (Array.isArray(i))
|
|
1438
|
-
return r.apply(null, i);
|
|
1439
|
-
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
|
|
1440
|
-
return i.toString();
|
|
1441
|
-
var s = "";
|
|
1442
|
-
for (var l in i)
|
|
1443
|
-
t.call(i, l) && i[l] && (s = o(s, l));
|
|
1444
|
-
return s;
|
|
1445
|
-
}
|
|
1446
|
-
function o(i, s) {
|
|
1447
|
-
return s ? i ? i + " " + s : i + s : i;
|
|
1448
|
-
}
|
|
1449
|
-
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
1450
|
-
})();
|
|
1451
|
-
})(gr);
|
|
1452
|
-
var Kn = gr.exports;
|
|
1453
|
-
const Ze = /* @__PURE__ */ sn(Kn);
|
|
1454
|
-
var qn = Symbol.for("react.element"), Zn = Symbol.for("react.transitional.element"), Jn = Symbol.for("react.fragment");
|
|
1455
|
-
function br(e) {
|
|
1456
|
-
return (
|
|
1457
|
-
// Base object type
|
|
1458
|
-
e && oe(e) === "object" && // React Element type
|
|
1459
|
-
(e.$$typeof === qn || e.$$typeof === Zn) && // React Fragment type
|
|
1460
|
-
e.type === Jn
|
|
1461
|
-
);
|
|
1462
|
-
}
|
|
1463
|
-
function yt(e) {
|
|
1464
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [];
|
|
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
|
-
}), r;
|
|
1468
|
-
}
|
|
1469
|
-
var St = {}, Mt = [], Qn = function(t) {
|
|
1470
|
-
Mt.push(t);
|
|
1471
|
-
};
|
|
1472
|
-
function Rt(e, t) {
|
|
1473
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
1474
|
-
var r = Mt.reduce(function(n, o) {
|
|
1475
|
-
return o(n ?? "", "warning");
|
|
1476
|
-
}, t);
|
|
1477
|
-
r && console.error("Warning: ".concat(r));
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
function eo(e, t) {
|
|
1481
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
1482
|
-
var r = Mt.reduce(function(n, o) {
|
|
1483
|
-
return o(n ?? "", "note");
|
|
1484
|
-
}, t);
|
|
1485
|
-
r && console.warn("Note: ".concat(r));
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
function to() {
|
|
1489
|
-
St = {};
|
|
1490
|
-
}
|
|
1491
|
-
function yr(e, t, r) {
|
|
1492
|
-
!t && !St[r] && (e(!1, r), St[r] = !0);
|
|
1493
|
-
}
|
|
1494
|
-
function nt(e, t) {
|
|
1495
|
-
yr(Rt, e, t);
|
|
1496
|
-
}
|
|
1497
|
-
function ro(e, t) {
|
|
1498
|
-
yr(eo, e, t);
|
|
1499
|
-
}
|
|
1500
|
-
nt.preMessage = Qn;
|
|
1501
|
-
nt.resetWarned = to;
|
|
1502
|
-
nt.noteOnce = ro;
|
|
1503
|
-
function Qt(e) {
|
|
1504
|
-
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
1505
|
-
}
|
|
1506
|
-
function no(e) {
|
|
1507
|
-
return e && oe(e) === "object" && Qt(e.nativeElement) ? e.nativeElement : Qt(e) ? e : null;
|
|
1508
|
-
}
|
|
1509
|
-
function qe(e) {
|
|
1510
|
-
var t = no(e);
|
|
1511
|
-
if (t)
|
|
1512
|
-
return t;
|
|
1513
|
-
if (e instanceof dr.Component) {
|
|
1514
|
-
var r;
|
|
1515
|
-
return (r = Ut.findDOMNode) === null || r === void 0 ? void 0 : r.call(Ut, e);
|
|
1516
|
-
}
|
|
1517
|
-
return null;
|
|
1518
|
-
}
|
|
1519
|
-
var Et = { exports: {} }, N = {};
|
|
1520
|
-
/**
|
|
1521
|
-
* @license React
|
|
1522
|
-
* react-is.production.min.js
|
|
1523
|
-
*
|
|
1524
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1525
|
-
*
|
|
1526
|
-
* This source code is licensed under the MIT license found in the
|
|
1527
|
-
* LICENSE file in the root directory of this source tree.
|
|
1528
|
-
*/
|
|
1529
|
-
var er;
|
|
1530
|
-
function oo() {
|
|
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
|
-
y = Symbol.for("react.module.reference");
|
|
1535
|
-
function p(c) {
|
|
1536
|
-
if (typeof c == "object" && c !== null) {
|
|
1537
|
-
var w = c.$$typeof;
|
|
1538
|
-
switch (w) {
|
|
1539
|
-
case e:
|
|
1540
|
-
switch (c = c.type, c) {
|
|
1541
|
-
case r:
|
|
1542
|
-
case o:
|
|
1543
|
-
case n:
|
|
1544
|
-
case f:
|
|
1545
|
-
case m:
|
|
1546
|
-
return c;
|
|
1547
|
-
default:
|
|
1548
|
-
switch (c = c && c.$$typeof, c) {
|
|
1549
|
-
case l:
|
|
1550
|
-
case s:
|
|
1551
|
-
case d:
|
|
1552
|
-
case g:
|
|
1553
|
-
case h:
|
|
1554
|
-
case i:
|
|
1555
|
-
return c;
|
|
1556
|
-
default:
|
|
1557
|
-
return w;
|
|
1558
|
-
}
|
|
1559
|
-
}
|
|
1560
|
-
case t:
|
|
1561
|
-
return w;
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
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
|
-
return !1;
|
|
1567
|
-
}, N.isConcurrentMode = function() {
|
|
1568
|
-
return !1;
|
|
1569
|
-
}, N.isContextConsumer = function(c) {
|
|
1570
|
-
return p(c) === s;
|
|
1571
|
-
}, N.isContextProvider = function(c) {
|
|
1572
|
-
return p(c) === i;
|
|
1573
|
-
}, N.isElement = function(c) {
|
|
1574
|
-
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
1575
|
-
}, N.isForwardRef = function(c) {
|
|
1576
|
-
return p(c) === d;
|
|
1577
|
-
}, N.isFragment = function(c) {
|
|
1578
|
-
return p(c) === r;
|
|
1579
|
-
}, N.isLazy = function(c) {
|
|
1580
|
-
return p(c) === g;
|
|
1581
|
-
}, N.isMemo = function(c) {
|
|
1582
|
-
return p(c) === h;
|
|
1583
|
-
}, N.isPortal = function(c) {
|
|
1584
|
-
return p(c) === t;
|
|
1585
|
-
}, N.isProfiler = function(c) {
|
|
1586
|
-
return p(c) === o;
|
|
1587
|
-
}, N.isStrictMode = function(c) {
|
|
1588
|
-
return p(c) === n;
|
|
1589
|
-
}, N.isSuspense = function(c) {
|
|
1590
|
-
return p(c) === f;
|
|
1591
|
-
}, N.isSuspenseList = function(c) {
|
|
1592
|
-
return p(c) === m;
|
|
1593
|
-
}, N.isValidElementType = function(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
|
-
}, N.typeOf = p, N;
|
|
1596
|
-
}
|
|
1597
|
-
var A = {};
|
|
1598
|
-
/**
|
|
1599
|
-
* @license React
|
|
1600
|
-
* react-is.development.js
|
|
1601
|
-
*
|
|
1602
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1603
|
-
*
|
|
1604
|
-
* This source code is licensed under the MIT license found in the
|
|
1605
|
-
* LICENSE file in the root directory of this source tree.
|
|
1606
|
-
*/
|
|
1607
|
-
var tr;
|
|
1608
|
-
function io() {
|
|
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
|
-
R = Symbol.for("react.module.reference");
|
|
1612
|
-
function C(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
|
-
// types supported by any Flight configuration anywhere since
|
|
1615
|
-
// we don't know which Flight build this will end up being used
|
|
1616
|
-
// with.
|
|
1617
|
-
S.$$typeof === R || S.getModuleId !== void 0));
|
|
1618
|
-
}
|
|
1619
|
-
function x(S) {
|
|
1620
|
-
if (typeof S == "object" && S !== null) {
|
|
1621
|
-
var le = S.$$typeof;
|
|
1622
|
-
switch (le) {
|
|
1623
|
-
case e:
|
|
1624
|
-
var ue = S.type;
|
|
1625
|
-
switch (ue) {
|
|
1626
|
-
case r:
|
|
1627
|
-
case o:
|
|
1628
|
-
case n:
|
|
1629
|
-
case f:
|
|
1630
|
-
case m:
|
|
1631
|
-
return ue;
|
|
1632
|
-
default:
|
|
1633
|
-
var be = ue && ue.$$typeof;
|
|
1634
|
-
switch (be) {
|
|
1635
|
-
case l:
|
|
1636
|
-
case s:
|
|
1637
|
-
case d:
|
|
1638
|
-
case g:
|
|
1639
|
-
case h:
|
|
1640
|
-
case i:
|
|
1641
|
-
return be;
|
|
1642
|
-
default:
|
|
1643
|
-
return le;
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
case t:
|
|
1647
|
-
return le;
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
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
|
-
function me(S) {
|
|
1653
|
-
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1654
|
-
}
|
|
1655
|
-
function H(S) {
|
|
1656
|
-
return W || (W = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
1657
|
-
}
|
|
1658
|
-
function se(S) {
|
|
1659
|
-
return x(S) === s;
|
|
1660
|
-
}
|
|
1661
|
-
function pe(S) {
|
|
1662
|
-
return x(S) === i;
|
|
1663
|
-
}
|
|
1664
|
-
function he(S) {
|
|
1665
|
-
return typeof S == "object" && S !== null && S.$$typeof === e;
|
|
1666
|
-
}
|
|
1667
|
-
function Re(S) {
|
|
1668
|
-
return x(S) === d;
|
|
1669
|
-
}
|
|
1670
|
-
function ge(S) {
|
|
1671
|
-
return x(S) === r;
|
|
1672
|
-
}
|
|
1673
|
-
function U(S) {
|
|
1674
|
-
return x(S) === g;
|
|
1675
|
-
}
|
|
1676
|
-
function te(S) {
|
|
1677
|
-
return x(S) === h;
|
|
1678
|
-
}
|
|
1679
|
-
function ie(S) {
|
|
1680
|
-
return x(S) === t;
|
|
1681
|
-
}
|
|
1682
|
-
function X(S) {
|
|
1683
|
-
return x(S) === o;
|
|
1684
|
-
}
|
|
1685
|
-
function z(S) {
|
|
1686
|
-
return x(S) === n;
|
|
1687
|
-
}
|
|
1688
|
-
function re(S) {
|
|
1689
|
-
return x(S) === f;
|
|
1690
|
-
}
|
|
1691
|
-
function Ee(S) {
|
|
1692
|
-
return x(S) === m;
|
|
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 = 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
|
-
}()), A;
|
|
1696
|
-
}
|
|
1697
|
-
process.env.NODE_ENV === "production" ? Et.exports = oo() : Et.exports = io();
|
|
1698
|
-
var ht = Et.exports;
|
|
1699
|
-
function ao(e, t, r) {
|
|
1700
|
-
var n = v.useRef({});
|
|
1701
|
-
return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
|
|
1702
|
-
}
|
|
1703
|
-
var so = function(t, r) {
|
|
1704
|
-
typeof t == "function" ? t(r) : oe(t) === "object" && t && "current" in t && (t.current = r);
|
|
1705
|
-
}, co = function() {
|
|
1706
|
-
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
1707
|
-
r[n] = arguments[n];
|
|
1708
|
-
var o = r.filter(Boolean);
|
|
1709
|
-
return o.length <= 1 ? o[0] : function(i) {
|
|
1710
|
-
r.forEach(function(s) {
|
|
1711
|
-
so(s, i);
|
|
1712
|
-
});
|
|
1713
|
-
};
|
|
1714
|
-
}, lo = function() {
|
|
1715
|
-
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
1716
|
-
r[n] = arguments[n];
|
|
1717
|
-
return ao(function() {
|
|
1718
|
-
return co.apply(void 0, r);
|
|
1719
|
-
}, r, function(o, i) {
|
|
1720
|
-
return o.length !== i.length || o.every(function(s, l) {
|
|
1721
|
-
return s !== i[l];
|
|
1722
|
-
});
|
|
1723
|
-
});
|
|
1724
|
-
}, uo = function(t) {
|
|
1725
|
-
var r, n;
|
|
1726
|
-
if (!t)
|
|
1727
|
-
return !1;
|
|
1728
|
-
if (Sr(t) && t.props.propertyIsEnumerable("ref"))
|
|
1729
|
-
return !0;
|
|
1730
|
-
var o = ht.isMemo(t) ? t.type.type : t.type;
|
|
1731
|
-
return !(typeof o == "function" && !((r = o.prototype) !== null && r !== void 0 && r.render) && o.$$typeof !== ht.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== ht.ForwardRef);
|
|
1732
|
-
};
|
|
1733
|
-
function Sr(e) {
|
|
1734
|
-
return /* @__PURE__ */ Qr(e) && !br(e);
|
|
1735
|
-
}
|
|
1736
|
-
var fo = function(t) {
|
|
1737
|
-
if (t && Sr(t)) {
|
|
1738
|
-
var r = t;
|
|
1739
|
-
return r.props.propertyIsEnumerable("ref") ? r.props.ref : r.ref;
|
|
1740
|
-
}
|
|
1741
|
-
return null;
|
|
1742
|
-
}, wt = /* @__PURE__ */ v.createContext(null);
|
|
1743
|
-
function vo(e) {
|
|
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
|
-
n.current += 1;
|
|
1746
|
-
var m = n.current;
|
|
1747
|
-
o.current.push({
|
|
1748
|
-
size: l,
|
|
1749
|
-
element: d,
|
|
1750
|
-
data: f
|
|
1751
|
-
}), Promise.resolve().then(function() {
|
|
1752
|
-
m === n.current && (r == null || r(o.current), o.current = []);
|
|
1753
|
-
}), i == null || i(l, d, f);
|
|
1754
|
-
}, [r, i]);
|
|
1755
|
-
return /* @__PURE__ */ v.createElement(wt.Provider, {
|
|
1756
|
-
value: s
|
|
1757
|
-
}, t);
|
|
1758
|
-
}
|
|
1759
|
-
var Rr = function() {
|
|
1760
|
-
if (typeof Map < "u")
|
|
1761
|
-
return Map;
|
|
1762
|
-
function e(t, r) {
|
|
1763
|
-
var n = -1;
|
|
1764
|
-
return t.some(function(o, i) {
|
|
1765
|
-
return o[0] === r ? (n = i, !0) : !1;
|
|
1766
|
-
}), n;
|
|
1767
|
-
}
|
|
1768
|
-
return (
|
|
1769
|
-
/** @class */
|
|
1770
|
-
function() {
|
|
1771
|
-
function t() {
|
|
1772
|
-
this.__entries__ = [];
|
|
1773
|
-
}
|
|
1774
|
-
return Object.defineProperty(t.prototype, "size", {
|
|
1775
|
-
/**
|
|
1776
|
-
* @returns {boolean}
|
|
1777
|
-
*/
|
|
1778
|
-
get: function() {
|
|
1779
|
-
return this.__entries__.length;
|
|
1780
|
-
},
|
|
1781
|
-
enumerable: !0,
|
|
1782
|
-
configurable: !0
|
|
1783
|
-
}), t.prototype.get = function(r) {
|
|
1784
|
-
var n = e(this.__entries__, r), o = this.__entries__[n];
|
|
1785
|
-
return o && o[1];
|
|
1786
|
-
}, t.prototype.set = function(r, n) {
|
|
1787
|
-
var o = e(this.__entries__, r);
|
|
1788
|
-
~o ? this.__entries__[o][1] = n : this.__entries__.push([r, n]);
|
|
1789
|
-
}, t.prototype.delete = function(r) {
|
|
1790
|
-
var n = this.__entries__, o = e(n, r);
|
|
1791
|
-
~o && n.splice(o, 1);
|
|
1792
|
-
}, t.prototype.has = function(r) {
|
|
1793
|
-
return !!~e(this.__entries__, r);
|
|
1794
|
-
}, t.prototype.clear = function() {
|
|
1795
|
-
this.__entries__.splice(0);
|
|
1796
|
-
}, t.prototype.forEach = function(r, n) {
|
|
1797
|
-
n === void 0 && (n = null);
|
|
1798
|
-
for (var o = 0, i = this.__entries__; o < i.length; o++) {
|
|
1799
|
-
var s = i[o];
|
|
1800
|
-
r.call(n, s[1], s[0]);
|
|
1801
|
-
}
|
|
1802
|
-
}, t;
|
|
1803
|
-
}()
|
|
1804
|
-
);
|
|
1805
|
-
}(), xt = typeof window < "u" && typeof document < "u" && window.document === document, Je = function() {
|
|
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
|
-
}(), po = function() {
|
|
1808
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Je) : function(e) {
|
|
1809
|
-
return setTimeout(function() {
|
|
1810
|
-
return e(Date.now());
|
|
1811
|
-
}, 1e3 / 60);
|
|
1812
|
-
};
|
|
1813
|
-
}(), ho = 2;
|
|
1814
|
-
function mo(e, t) {
|
|
1815
|
-
var r = !1, n = !1, o = 0;
|
|
1816
|
-
function i() {
|
|
1817
|
-
r && (r = !1, e()), n && l();
|
|
1818
|
-
}
|
|
1819
|
-
function s() {
|
|
1820
|
-
po(i);
|
|
1821
|
-
}
|
|
1822
|
-
function l() {
|
|
1823
|
-
var d = Date.now();
|
|
1824
|
-
if (r) {
|
|
1825
|
-
if (d - o < ho)
|
|
1826
|
-
return;
|
|
1827
|
-
n = !0;
|
|
1828
|
-
} else
|
|
1829
|
-
r = !0, n = !1, setTimeout(s, t);
|
|
1830
|
-
o = d;
|
|
1831
|
-
}
|
|
1832
|
-
return l;
|
|
1833
|
-
}
|
|
1834
|
-
var go = 20, bo = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], yo = typeof MutationObserver < "u", So = (
|
|
1835
|
-
/** @class */
|
|
1836
|
-
function() {
|
|
1837
|
-
function e() {
|
|
1838
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = mo(this.refresh.bind(this), go);
|
|
1839
|
-
}
|
|
1840
|
-
return e.prototype.addObserver = function(t) {
|
|
1841
|
-
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
|
|
1842
|
-
}, e.prototype.removeObserver = function(t) {
|
|
1843
|
-
var r = this.observers_, n = r.indexOf(t);
|
|
1844
|
-
~n && r.splice(n, 1), !r.length && this.connected_ && this.disconnect_();
|
|
1845
|
-
}, e.prototype.refresh = function() {
|
|
1846
|
-
var t = this.updateObservers_();
|
|
1847
|
-
t && this.refresh();
|
|
1848
|
-
}, e.prototype.updateObservers_ = function() {
|
|
1849
|
-
var t = this.observers_.filter(function(r) {
|
|
1850
|
-
return r.gatherActive(), r.hasActive();
|
|
1851
|
-
});
|
|
1852
|
-
return t.forEach(function(r) {
|
|
1853
|
-
return r.broadcastActive();
|
|
1854
|
-
}), t.length > 0;
|
|
1855
|
-
}, e.prototype.connect_ = function() {
|
|
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
|
-
attributes: !0,
|
|
1858
|
-
childList: !0,
|
|
1859
|
-
characterData: !0,
|
|
1860
|
-
subtree: !0
|
|
1861
|
-
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
1862
|
-
}, e.prototype.disconnect_ = function() {
|
|
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
|
-
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
1865
|
-
var r = t.propertyName, n = r === void 0 ? "" : r, o = bo.some(function(i) {
|
|
1866
|
-
return !!~n.indexOf(i);
|
|
1867
|
-
});
|
|
1868
|
-
o && this.refresh();
|
|
1869
|
-
}, e.getInstance = function() {
|
|
1870
|
-
return this.instance_ || (this.instance_ = new e()), this.instance_;
|
|
1871
|
-
}, e.instance_ = null, e;
|
|
1872
|
-
}()
|
|
1873
|
-
), Er = function(e, t) {
|
|
1874
|
-
for (var r = 0, n = Object.keys(t); r < n.length; r++) {
|
|
1875
|
-
var o = n[r];
|
|
1876
|
-
Object.defineProperty(e, o, {
|
|
1877
|
-
value: t[o],
|
|
1878
|
-
enumerable: !1,
|
|
1879
|
-
writable: !1,
|
|
1880
|
-
configurable: !0
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
return e;
|
|
1884
|
-
}, Pe = function(e) {
|
|
1885
|
-
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
1886
|
-
return t || Je;
|
|
1887
|
-
}, wr = ot(0, 0, 0, 0);
|
|
1888
|
-
function Qe(e) {
|
|
1889
|
-
return parseFloat(e) || 0;
|
|
1890
|
-
}
|
|
1891
|
-
function rr(e) {
|
|
1892
|
-
for (var t = [], r = 1; r < arguments.length; r++)
|
|
1893
|
-
t[r - 1] = arguments[r];
|
|
1894
|
-
return t.reduce(function(n, o) {
|
|
1895
|
-
var i = e["border-" + o + "-width"];
|
|
1896
|
-
return n + Qe(i);
|
|
1897
|
-
}, 0);
|
|
1898
|
-
}
|
|
1899
|
-
function Ro(e) {
|
|
1900
|
-
for (var t = ["top", "right", "bottom", "left"], r = {}, n = 0, o = t; n < o.length; n++) {
|
|
1901
|
-
var i = o[n], s = e["padding-" + i];
|
|
1902
|
-
r[i] = Qe(s);
|
|
1903
|
-
}
|
|
1904
|
-
return r;
|
|
1905
|
-
}
|
|
1906
|
-
function Eo(e) {
|
|
1907
|
-
var t = e.getBBox();
|
|
1908
|
-
return ot(0, 0, t.width, t.height);
|
|
1909
|
-
}
|
|
1910
|
-
function wo(e) {
|
|
1911
|
-
var t = e.clientWidth, r = e.clientHeight;
|
|
1912
|
-
if (!t && !r)
|
|
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), 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
|
-
}
|
|
1919
|
-
return ot(o.left, o.top, l, d);
|
|
1920
|
-
}
|
|
1921
|
-
var xo = /* @__PURE__ */ function() {
|
|
1922
|
-
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
1923
|
-
return e instanceof Pe(e).SVGGraphicsElement;
|
|
1924
|
-
} : function(e) {
|
|
1925
|
-
return e instanceof Pe(e).SVGElement && typeof e.getBBox == "function";
|
|
1926
|
-
};
|
|
1927
|
-
}();
|
|
1928
|
-
function _o(e) {
|
|
1929
|
-
return e === Pe(e).document.documentElement;
|
|
1930
|
-
}
|
|
1931
|
-
function Oo(e) {
|
|
1932
|
-
return xt ? xo(e) ? Eo(e) : wo(e) : wr;
|
|
1933
|
-
}
|
|
1934
|
-
function Co(e) {
|
|
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);
|
|
1936
|
-
return Er(s, {
|
|
1937
|
-
x: t,
|
|
1938
|
-
y: r,
|
|
1939
|
-
width: n,
|
|
1940
|
-
height: o,
|
|
1941
|
-
top: r,
|
|
1942
|
-
right: t + n,
|
|
1943
|
-
bottom: o + r,
|
|
1944
|
-
left: t
|
|
1945
|
-
}), s;
|
|
1946
|
-
}
|
|
1947
|
-
function ot(e, t, r, n) {
|
|
1948
|
-
return { x: e, y: t, width: r, height: n };
|
|
1949
|
-
}
|
|
1950
|
-
var Po = (
|
|
1951
|
-
/** @class */
|
|
1952
|
-
function() {
|
|
1953
|
-
function e(t) {
|
|
1954
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = ot(0, 0, 0, 0), this.target = t;
|
|
1955
|
-
}
|
|
1956
|
-
return e.prototype.isActive = function() {
|
|
1957
|
-
var t = Oo(this.target);
|
|
1958
|
-
return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
|
|
1959
|
-
}, e.prototype.broadcastRect = function() {
|
|
1960
|
-
var t = this.contentRect_;
|
|
1961
|
-
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
|
|
1962
|
-
}, e;
|
|
1963
|
-
}()
|
|
1964
|
-
), Mo = (
|
|
1965
|
-
/** @class */
|
|
1966
|
-
/* @__PURE__ */ function() {
|
|
1967
|
-
function e(t, r) {
|
|
1968
|
-
var n = Co(r);
|
|
1969
|
-
Er(this, { target: t, contentRect: n });
|
|
1970
|
-
}
|
|
1971
|
-
return e;
|
|
1972
|
-
}()
|
|
1973
|
-
), To = (
|
|
1974
|
-
/** @class */
|
|
1975
|
-
function() {
|
|
1976
|
-
function e(t, r, n) {
|
|
1977
|
-
if (this.activeObservations_ = [], this.observations_ = new Rr(), typeof t != "function")
|
|
1978
|
-
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
1979
|
-
this.callback_ = t, this.controller_ = r, this.callbackCtx_ = n;
|
|
1980
|
-
}
|
|
1981
|
-
return e.prototype.observe = function(t) {
|
|
1982
|
-
if (!arguments.length)
|
|
1983
|
-
throw new TypeError("1 argument required, but only 0 present.");
|
|
1984
|
-
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
1985
|
-
if (!(t instanceof Pe(t).Element))
|
|
1986
|
-
throw new TypeError('parameter 1 is not of type "Element".');
|
|
1987
|
-
var r = this.observations_;
|
|
1988
|
-
r.has(t) || (r.set(t, new Po(t)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
1989
|
-
}
|
|
1990
|
-
}, e.prototype.unobserve = function(t) {
|
|
1991
|
-
if (!arguments.length)
|
|
1992
|
-
throw new TypeError("1 argument required, but only 0 present.");
|
|
1993
|
-
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
1994
|
-
if (!(t instanceof Pe(t).Element))
|
|
1995
|
-
throw new TypeError('parameter 1 is not of type "Element".');
|
|
1996
|
-
var r = this.observations_;
|
|
1997
|
-
r.has(t) && (r.delete(t), r.size || this.controller_.removeObserver(this));
|
|
1998
|
-
}
|
|
1999
|
-
}, e.prototype.disconnect = function() {
|
|
2000
|
-
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
2001
|
-
}, e.prototype.gatherActive = function() {
|
|
2002
|
-
var t = this;
|
|
2003
|
-
this.clearActive(), this.observations_.forEach(function(r) {
|
|
2004
|
-
r.isActive() && t.activeObservations_.push(r);
|
|
2005
|
-
});
|
|
2006
|
-
}, e.prototype.broadcastActive = function() {
|
|
2007
|
-
if (this.hasActive()) {
|
|
2008
|
-
var t = this.callbackCtx_, r = this.activeObservations_.map(function(n) {
|
|
2009
|
-
return new Mo(n.target, n.broadcastRect());
|
|
2010
|
-
});
|
|
2011
|
-
this.callback_.call(t, r, t), this.clearActive();
|
|
2012
|
-
}
|
|
2013
|
-
}, e.prototype.clearActive = function() {
|
|
2014
|
-
this.activeObservations_.splice(0);
|
|
2015
|
-
}, e.prototype.hasActive = function() {
|
|
2016
|
-
return this.activeObservations_.length > 0;
|
|
2017
|
-
}, e;
|
|
2018
|
-
}()
|
|
2019
|
-
), xr = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Rr(), _r = (
|
|
2020
|
-
/** @class */
|
|
2021
|
-
/* @__PURE__ */ function() {
|
|
2022
|
-
function e(t) {
|
|
2023
|
-
if (!(this instanceof e))
|
|
2024
|
-
throw new TypeError("Cannot call a class as a function.");
|
|
2025
|
-
if (!arguments.length)
|
|
2026
|
-
throw new TypeError("1 argument required, but only 0 present.");
|
|
2027
|
-
var r = So.getInstance(), n = new To(t, r, this);
|
|
2028
|
-
xr.set(this, n);
|
|
2029
|
-
}
|
|
2030
|
-
return e;
|
|
2031
|
-
}()
|
|
2032
|
-
);
|
|
2033
|
-
[
|
|
2034
|
-
"observe",
|
|
2035
|
-
"unobserve",
|
|
2036
|
-
"disconnect"
|
|
2037
|
-
].forEach(function(e) {
|
|
2038
|
-
_r.prototype[e] = function() {
|
|
2039
|
-
var t;
|
|
2040
|
-
return (t = xr.get(this))[e].apply(t, arguments);
|
|
2041
|
-
};
|
|
2042
|
-
});
|
|
2043
|
-
var Io = function() {
|
|
2044
|
-
return typeof Je.ResizeObserver < "u" ? Je.ResizeObserver : _r;
|
|
2045
|
-
}(), de = /* @__PURE__ */ new Map();
|
|
2046
|
-
function Or(e) {
|
|
2047
|
-
e.forEach(function(t) {
|
|
2048
|
-
var r, n = t.target;
|
|
2049
|
-
(r = de.get(n)) === null || r === void 0 || r.forEach(function(o) {
|
|
2050
|
-
return o(n);
|
|
2051
|
-
});
|
|
2052
|
-
});
|
|
2053
|
-
}
|
|
2054
|
-
var Cr = new Io(Or);
|
|
2055
|
-
process.env.NODE_ENV;
|
|
2056
|
-
process.env.NODE_ENV;
|
|
2057
|
-
function Lo(e, t) {
|
|
2058
|
-
de.has(e) || (de.set(e, /* @__PURE__ */ new Set()), Cr.observe(e)), de.get(e).add(t);
|
|
2059
|
-
}
|
|
2060
|
-
function No(e, t) {
|
|
2061
|
-
de.has(e) && (de.get(e).delete(t), de.get(e).size || (Cr.unobserve(e), de.delete(e)));
|
|
2062
|
-
}
|
|
2063
|
-
function Pr(e, t) {
|
|
2064
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2065
|
-
}
|
|
2066
|
-
function Ao(e, t) {
|
|
2067
|
-
for (var r = 0; r < t.length; r++) {
|
|
2068
|
-
var n = t[r];
|
|
2069
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, mr(n.key), n);
|
|
2070
|
-
}
|
|
2071
|
-
}
|
|
2072
|
-
function Mr(e, t, r) {
|
|
2073
|
-
return t && Ao(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
2074
|
-
writable: !1
|
|
2075
|
-
}), e;
|
|
2076
|
-
}
|
|
2077
|
-
function $o(e, t) {
|
|
2078
|
-
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2079
|
-
e.prototype = Object.create(t && t.prototype, {
|
|
2080
|
-
constructor: {
|
|
2081
|
-
value: e,
|
|
2082
|
-
writable: !0,
|
|
2083
|
-
configurable: !0
|
|
2084
|
-
}
|
|
2085
|
-
}), Object.defineProperty(e, "prototype", {
|
|
2086
|
-
writable: !1
|
|
2087
|
-
}), t && dn(e, t);
|
|
2088
|
-
}
|
|
2089
|
-
function et(e) {
|
|
2090
|
-
return et = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
2091
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
2092
|
-
}, et(e);
|
|
2093
|
-
}
|
|
2094
|
-
function Tr() {
|
|
2095
|
-
try {
|
|
2096
|
-
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2097
|
-
}));
|
|
2098
|
-
} catch {
|
|
2099
|
-
}
|
|
2100
|
-
return (Tr = function() {
|
|
2101
|
-
return !!e;
|
|
2102
|
-
})();
|
|
2103
|
-
}
|
|
2104
|
-
function zo(e, t) {
|
|
2105
|
-
if (t && (oe(t) == "object" || typeof t == "function")) return t;
|
|
2106
|
-
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2107
|
-
return vn(e);
|
|
2108
|
-
}
|
|
2109
|
-
function Do(e) {
|
|
2110
|
-
var t = Tr();
|
|
2111
|
-
return function() {
|
|
2112
|
-
var r, n = et(e);
|
|
2113
|
-
if (t) {
|
|
2114
|
-
var o = et(this).constructor;
|
|
2115
|
-
r = Reflect.construct(n, arguments, o);
|
|
2116
|
-
} else r = n.apply(this, arguments);
|
|
2117
|
-
return zo(this, r);
|
|
2118
|
-
};
|
|
2119
|
-
}
|
|
2120
|
-
var jo = /* @__PURE__ */ function(e) {
|
|
2121
|
-
$o(r, e);
|
|
2122
|
-
var t = Do(r);
|
|
2123
|
-
function r() {
|
|
2124
|
-
return Pr(this, r), t.apply(this, arguments);
|
|
2125
|
-
}
|
|
2126
|
-
return Mr(r, [{
|
|
2127
|
-
key: "render",
|
|
2128
|
-
value: function() {
|
|
2129
|
-
return this.props.children;
|
|
2130
|
-
}
|
|
2131
|
-
}]), r;
|
|
2132
|
-
}(v.Component);
|
|
2133
|
-
function ko(e, t) {
|
|
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
|
-
width: -1,
|
|
2136
|
-
height: -1,
|
|
2137
|
-
offsetWidth: -1,
|
|
2138
|
-
offsetHeight: -1
|
|
2139
|
-
}), m = !l && /* @__PURE__ */ v.isValidElement(d) && uo(d), h = m ? fo(d) : null, g = lo(h, o), b = function() {
|
|
2140
|
-
var w;
|
|
2141
|
-
return qe(o.current) || // Support `nativeElement` format
|
|
2142
|
-
(o.current && oe(o.current) === "object" ? qe((w = o.current) === null || w === void 0 ? void 0 : w.nativeElement) : null) || qe(i.current);
|
|
2143
|
-
};
|
|
2144
|
-
v.useImperativeHandle(t, function() {
|
|
2145
|
-
return b();
|
|
2146
|
-
});
|
|
2147
|
-
var y = v.useRef(e);
|
|
2148
|
-
y.current = e;
|
|
2149
|
-
var p = v.useCallback(function(c) {
|
|
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 (f.current.width !== _ || f.current.height !== M || f.current.offsetWidth !== P || f.current.offsetHeight !== T) {
|
|
2152
|
-
var F = {
|
|
2153
|
-
width: _,
|
|
2154
|
-
height: M,
|
|
2155
|
-
offsetWidth: P,
|
|
2156
|
-
offsetHeight: T
|
|
2157
|
-
};
|
|
2158
|
-
f.current = F;
|
|
2159
|
-
var Y = P === Math.round(x) ? x : P, B = T === Math.round(L) ? L : T, $ = q(q({}, F), {}, {
|
|
2160
|
-
offsetWidth: Y,
|
|
2161
|
-
offsetHeight: B
|
|
2162
|
-
});
|
|
2163
|
-
s == null || s($, c, R), u && Promise.resolve().then(function() {
|
|
2164
|
-
u($, c);
|
|
2165
|
-
});
|
|
2166
|
-
}
|
|
2167
|
-
}, []);
|
|
2168
|
-
return v.useEffect(function() {
|
|
2169
|
-
var c = b();
|
|
2170
|
-
return c && !n && Lo(c, p), function() {
|
|
2171
|
-
return No(c, p);
|
|
2172
|
-
};
|
|
2173
|
-
}, [o.current, n]), /* @__PURE__ */ v.createElement(jo, {
|
|
2174
|
-
ref: i
|
|
2175
|
-
}, m ? /* @__PURE__ */ v.cloneElement(d, {
|
|
2176
|
-
ref: g
|
|
2177
|
-
}) : d);
|
|
2178
|
-
}
|
|
2179
|
-
var Ir = /* @__PURE__ */ v.forwardRef(ko);
|
|
2180
|
-
process.env.NODE_ENV !== "production" && (Ir.displayName = "SingleObserver");
|
|
2181
|
-
var Fo = "rc-observer-key";
|
|
2182
|
-
function Ho(e, t) {
|
|
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
|
-
var s = (o == null ? void 0 : o.key) || "".concat(Fo, "-").concat(i);
|
|
2186
|
-
return /* @__PURE__ */ v.createElement(Ir, Ct({}, e, {
|
|
2187
|
-
key: s,
|
|
2188
|
-
ref: i === 0 ? t : void 0
|
|
2189
|
-
}), o);
|
|
2190
|
-
});
|
|
2191
|
-
}
|
|
2192
|
-
var it = /* @__PURE__ */ v.forwardRef(Ho);
|
|
2193
|
-
process.env.NODE_ENV !== "production" && (it.displayName = "ResizeObserver");
|
|
2194
|
-
it.Collection = vo;
|
|
2195
|
-
function nr(e) {
|
|
2196
|
-
var t = v.useRef();
|
|
2197
|
-
t.current = e;
|
|
2198
|
-
var r = v.useCallback(function() {
|
|
2199
|
-
for (var n, o = arguments.length, i = new Array(o), s = 0; s < o; s++)
|
|
2200
|
-
i[s] = arguments[s];
|
|
2201
|
-
return (n = t.current) === null || n === void 0 ? void 0 : n.call.apply(n, [t].concat(i));
|
|
2202
|
-
}, []);
|
|
2203
|
-
return r;
|
|
2204
|
-
}
|
|
2205
|
-
function Vo() {
|
|
2206
|
-
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2207
|
-
}
|
|
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
|
-
return t(n.current);
|
|
2212
|
-
}, r), or(function() {
|
|
2213
|
-
return n.current = !1, function() {
|
|
2214
|
-
n.current = !0;
|
|
2215
|
-
};
|
|
2216
|
-
}, []);
|
|
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
|
-
display: "flex",
|
|
2220
|
-
flexDirection: "column"
|
|
2221
|
-
};
|
|
2222
|
-
return n !== void 0 && (h = {
|
|
2223
|
-
height: r,
|
|
2224
|
-
position: "relative",
|
|
2225
|
-
overflow: "hidden"
|
|
2226
|
-
}, g = q(q({}, g), {}, ee(ee(ee(ee(ee({
|
|
2227
|
-
transform: "translateY(".concat(n, "px)")
|
|
2228
|
-
}, f ? "marginRight" : "marginLeft", -o), "position", "absolute"), "left", 0), "right", 0), "top", 0))), /* @__PURE__ */ v.createElement("div", {
|
|
2229
|
-
style: h
|
|
2230
|
-
}, /* @__PURE__ */ v.createElement(it, {
|
|
2231
|
-
onResize: function(y) {
|
|
2232
|
-
var p = y.offsetHeight;
|
|
2233
|
-
p && l && l();
|
|
2234
|
-
}
|
|
2235
|
-
}, /* @__PURE__ */ v.createElement("div", Ct({
|
|
2236
|
-
style: g,
|
|
2237
|
-
className: Ze(ee({}, "".concat(s, "-holder-inner"), s)),
|
|
2238
|
-
ref: t
|
|
2239
|
-
}, d), i, m)));
|
|
2240
|
-
});
|
|
2241
|
-
Lr.displayName = "Filler";
|
|
2242
|
-
function Bo(e) {
|
|
2243
|
-
var t = e.children, r = e.setRef, n = v.useCallback(function(o) {
|
|
2244
|
-
r(o);
|
|
2245
|
-
}, []);
|
|
2246
|
-
return /* @__PURE__ */ v.cloneElement(t, {
|
|
2247
|
-
ref: n
|
|
2248
|
-
});
|
|
2249
|
-
}
|
|
2250
|
-
function Wo(e, t, r, n, o, i, s, l) {
|
|
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
|
-
style: {
|
|
2255
|
-
width: n
|
|
2256
|
-
},
|
|
2257
|
-
offsetX: o
|
|
2258
|
-
}), b = d(f);
|
|
2259
|
-
return /* @__PURE__ */ v.createElement(Bo, {
|
|
2260
|
-
key: b,
|
|
2261
|
-
setRef: function(p) {
|
|
2262
|
-
return i(f, p);
|
|
2263
|
-
}
|
|
2264
|
-
}, g);
|
|
2265
|
-
});
|
|
2266
|
-
}
|
|
2267
|
-
function Yo(e, t, r) {
|
|
2268
|
-
var n = e.length, o = t.length, i, s;
|
|
2269
|
-
if (n === 0 && o === 0)
|
|
2270
|
-
return null;
|
|
2271
|
-
n < o ? (i = e, s = t) : (i = t, s = e);
|
|
2272
|
-
var l = {
|
|
2273
|
-
__EMPTY_ITEM__: !0
|
|
2274
|
-
};
|
|
2275
|
-
function d(y) {
|
|
2276
|
-
return y !== void 0 ? r(y) : l;
|
|
2277
|
-
}
|
|
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
|
-
if (g !== b) {
|
|
2281
|
-
f = h, m = m || g !== d(s[h + 1]);
|
|
2282
|
-
break;
|
|
2283
|
-
}
|
|
2284
|
-
}
|
|
2285
|
-
return f === null ? null : {
|
|
2286
|
-
index: f,
|
|
2287
|
-
multiple: m
|
|
2288
|
-
};
|
|
2289
|
-
}
|
|
2290
|
-
function Go(e, t, r) {
|
|
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
|
-
var h = Yo(i || [], e || [], t);
|
|
2294
|
-
(h == null ? void 0 : h.index) !== void 0 && m(e[h.index]), s(e);
|
|
2295
|
-
}, [e]), [f];
|
|
2296
|
-
}
|
|
2297
|
-
var Nr = function(t) {
|
|
2298
|
-
return +setTimeout(t, 16);
|
|
2299
|
-
}, Ar = function(t) {
|
|
2300
|
-
return clearTimeout(t);
|
|
2301
|
-
};
|
|
2302
|
-
typeof window < "u" && "requestAnimationFrame" in window && (Nr = function(t) {
|
|
2303
|
-
return window.requestAnimationFrame(t);
|
|
2304
|
-
}, Ar = function(t) {
|
|
2305
|
-
return window.cancelAnimationFrame(t);
|
|
2306
|
-
});
|
|
2307
|
-
var ir = 0, at = /* @__PURE__ */ new Map();
|
|
2308
|
-
function $r(e) {
|
|
2309
|
-
at.delete(e);
|
|
2310
|
-
}
|
|
2311
|
-
var ne = function(t) {
|
|
2312
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
2313
|
-
ir += 1;
|
|
2314
|
-
var n = ir;
|
|
2315
|
-
function o(i) {
|
|
2316
|
-
if (i === 0)
|
|
2317
|
-
$r(n), t();
|
|
2318
|
-
else {
|
|
2319
|
-
var s = Nr(function() {
|
|
2320
|
-
o(i - 1);
|
|
2321
|
-
});
|
|
2322
|
-
at.set(n, s);
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
return o(r), n;
|
|
2326
|
-
};
|
|
2327
|
-
ne.cancel = function(e) {
|
|
2328
|
-
var t = at.get(e);
|
|
2329
|
-
return $r(e), Ar(t);
|
|
2330
|
-
};
|
|
2331
|
-
process.env.NODE_ENV !== "production" && (ne.ids = function() {
|
|
2332
|
-
return at;
|
|
2333
|
-
});
|
|
2334
|
-
var ar = (typeof navigator > "u" ? "undefined" : oe(navigator)) === "object" && /Firefox/i.test(navigator.userAgent);
|
|
2335
|
-
const zr = function(e, t, r, n) {
|
|
2336
|
-
var o = j(!1), i = j(null);
|
|
2337
|
-
function s() {
|
|
2338
|
-
clearTimeout(i.current), o.current = !0, i.current = setTimeout(function() {
|
|
2339
|
-
o.current = !1;
|
|
2340
|
-
}, 50);
|
|
2341
|
-
}
|
|
2342
|
-
var l = j({
|
|
2343
|
-
top: e,
|
|
2344
|
-
bottom: t,
|
|
2345
|
-
left: r,
|
|
2346
|
-
right: n
|
|
2347
|
-
});
|
|
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
|
-
// Pass origin wheel when on the left
|
|
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
|
-
return m && h ? (clearTimeout(i.current), o.current = !1) : (!h || o.current) && s(), !o.current && h;
|
|
2356
|
-
};
|
|
2357
|
-
};
|
|
2358
|
-
function Uo(e, t, r, n, o, i, s) {
|
|
2359
|
-
var l = j(0), d = j(null), f = j(null), m = j(!1), h = zr(t, r, n, o);
|
|
2360
|
-
function g(u, R) {
|
|
2361
|
-
if (ne.cancel(d.current), !h(!1, R)) {
|
|
2362
|
-
var C = u;
|
|
2363
|
-
if (!C._virtualHandled)
|
|
2364
|
-
C._virtualHandled = !0;
|
|
2365
|
-
else
|
|
2366
|
-
return;
|
|
2367
|
-
l.current += R, f.current = R, ar || C.preventDefault(), d.current = ne(function() {
|
|
2368
|
-
var x = m.current ? 10 : 1;
|
|
2369
|
-
s(l.current * x, !1), l.current = 0;
|
|
2370
|
-
});
|
|
2371
|
-
}
|
|
2372
|
-
}
|
|
2373
|
-
function b(u, R) {
|
|
2374
|
-
s(R, !0), ar || u.preventDefault();
|
|
2375
|
-
}
|
|
2376
|
-
var y = j(null), p = j(null);
|
|
2377
|
-
function c(u) {
|
|
2378
|
-
if (e) {
|
|
2379
|
-
ne.cancel(p.current), p.current = ne(function() {
|
|
2380
|
-
y.current = null;
|
|
2381
|
-
}, 2);
|
|
2382
|
-
var R = u.deltaX, C = u.deltaY, x = u.shiftKey, L = R, P = C;
|
|
2383
|
-
(y.current === "sx" || !y.current && x && C && !R) && (L = C, P = 0, y.current = "sx");
|
|
2384
|
-
var T = Math.abs(L), _ = Math.abs(P);
|
|
2385
|
-
y.current === null && (y.current = i && T > _ ? "x" : "y"), y.current === "y" ? g(u, P) : b(u, L);
|
|
2386
|
-
}
|
|
2387
|
-
}
|
|
2388
|
-
function w(u) {
|
|
2389
|
-
e && (m.current = u.detail === f.current);
|
|
2390
|
-
}
|
|
2391
|
-
return [c, w];
|
|
2392
|
-
}
|
|
2393
|
-
function Xo(e, t, r, n) {
|
|
2394
|
-
var o = v.useMemo(function() {
|
|
2395
|
-
return [/* @__PURE__ */ new Map(), []];
|
|
2396
|
-
}, [e, r.id, n]), i = K(o, 2), s = i[0], l = i[1], d = function(m) {
|
|
2397
|
-
var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m, g = s.get(m), b = s.get(h);
|
|
2398
|
-
if (g === void 0 || b === void 0)
|
|
2399
|
-
for (var y = e.length, p = l.length; p < y; p += 1) {
|
|
2400
|
-
var c, w = e[p], u = t(w);
|
|
2401
|
-
s.set(u, p);
|
|
2402
|
-
var R = (c = r.get(u)) !== null && c !== void 0 ? c : n;
|
|
2403
|
-
if (l[p] = (l[p - 1] || 0) + R, u === m && (g = p), u === h && (b = p), g !== void 0 && b !== void 0)
|
|
2404
|
-
break;
|
|
2405
|
-
}
|
|
2406
|
-
return {
|
|
2407
|
-
top: l[g - 1] || 0,
|
|
2408
|
-
bottom: l[b]
|
|
2409
|
-
};
|
|
2410
|
-
};
|
|
2411
|
-
return d;
|
|
2412
|
-
}
|
|
2413
|
-
var Ko = /* @__PURE__ */ function() {
|
|
2414
|
-
function e() {
|
|
2415
|
-
Pr(this, e), ee(this, "maps", void 0), ee(this, "id", 0), this.maps = /* @__PURE__ */ Object.create(null);
|
|
2416
|
-
}
|
|
2417
|
-
return Mr(e, [{
|
|
2418
|
-
key: "set",
|
|
2419
|
-
value: function(r, n) {
|
|
2420
|
-
this.maps[r] = n, this.id += 1;
|
|
2421
|
-
}
|
|
2422
|
-
}, {
|
|
2423
|
-
key: "get",
|
|
2424
|
-
value: function(r) {
|
|
2425
|
-
return this.maps[r];
|
|
2426
|
-
}
|
|
2427
|
-
}]), e;
|
|
2428
|
-
}();
|
|
2429
|
-
function sr(e) {
|
|
2430
|
-
var t = parseFloat(e);
|
|
2431
|
-
return isNaN(t) ? 0 : t;
|
|
2432
|
-
}
|
|
2433
|
-
function qo(e, t, r) {
|
|
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
|
-
function m() {
|
|
2436
|
-
ne.cancel(f.current);
|
|
2437
|
-
}
|
|
2438
|
-
function h() {
|
|
2439
|
-
var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
2440
|
-
m();
|
|
2441
|
-
var y = function() {
|
|
2442
|
-
l.current.forEach(function(c, w) {
|
|
2443
|
-
if (c && c.offsetParent) {
|
|
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
|
-
}
|
|
2447
|
-
}), s(function(c) {
|
|
2448
|
-
return c + 1;
|
|
2449
|
-
});
|
|
2450
|
-
};
|
|
2451
|
-
b ? y() : f.current = ne(y);
|
|
2452
|
-
}
|
|
2453
|
-
function g(b, y) {
|
|
2454
|
-
var p = e(b);
|
|
2455
|
-
l.current.get(p), y ? (l.current.set(p, y), h()) : l.current.delete(p);
|
|
2456
|
-
}
|
|
2457
|
-
return en(function() {
|
|
2458
|
-
return m;
|
|
2459
|
-
}, []), [g, h, d.current, i];
|
|
2460
|
-
}
|
|
2461
|
-
var cr = 14 / 15;
|
|
2462
|
-
function Zo(e, t, r) {
|
|
2463
|
-
var n = j(!1), o = j(0), i = j(0), s = j(null), l = j(null), d, f = function(b) {
|
|
2464
|
-
if (n.current) {
|
|
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
|
-
u ? o.current = y : i.current = p;
|
|
2467
|
-
var R = r(u, u ? c : w, !1, b);
|
|
2468
|
-
R && b.preventDefault(), clearInterval(l.current), R && (l.current = setInterval(function() {
|
|
2469
|
-
u ? c *= cr : w *= cr;
|
|
2470
|
-
var C = Math.floor(u ? c : w);
|
|
2471
|
-
(!r(u, C, !0) || Math.abs(C) <= 0.1) && clearInterval(l.current);
|
|
2472
|
-
}, 16));
|
|
2473
|
-
}
|
|
2474
|
-
}, m = function() {
|
|
2475
|
-
n.current = !1, d();
|
|
2476
|
-
}, h = function(b) {
|
|
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
|
-
passive: !1
|
|
2479
|
-
}), s.current.addEventListener("touchend", m, {
|
|
2480
|
-
passive: !0
|
|
2481
|
-
}));
|
|
2482
|
-
};
|
|
2483
|
-
d = function() {
|
|
2484
|
-
s.current && (s.current.removeEventListener("touchmove", f), s.current.removeEventListener("touchend", m));
|
|
2485
|
-
}, De(function() {
|
|
2486
|
-
return e && t.current.addEventListener("touchstart", h, {
|
|
2487
|
-
passive: !0
|
|
2488
|
-
}), function() {
|
|
2489
|
-
var g;
|
|
2490
|
-
(g = t.current) === null || g === void 0 || g.removeEventListener("touchstart", h), d(), clearInterval(l.current);
|
|
2491
|
-
};
|
|
2492
|
-
}, [e]);
|
|
2493
|
-
}
|
|
2494
|
-
function lr(e) {
|
|
2495
|
-
return Math.floor(Math.pow(e, 0.5));
|
|
2496
|
-
}
|
|
2497
|
-
function _t(e, t) {
|
|
2498
|
-
var r = "touches" in e ? e.touches[0] : e;
|
|
2499
|
-
return r[t ? "pageX" : "pageY"] - window[t ? "scrollX" : "scrollY"];
|
|
2500
|
-
}
|
|
2501
|
-
function Jo(e, t, r) {
|
|
2502
|
-
v.useEffect(function() {
|
|
2503
|
-
var n = t.current;
|
|
2504
|
-
if (e && n) {
|
|
2505
|
-
var o = !1, i, s, l = function() {
|
|
2506
|
-
ne.cancel(i);
|
|
2507
|
-
}, d = function g() {
|
|
2508
|
-
l(), i = ne(function() {
|
|
2509
|
-
r(s), g();
|
|
2510
|
-
});
|
|
2511
|
-
}, f = function(b) {
|
|
2512
|
-
var y = b;
|
|
2513
|
-
y._virtualHandled || (y._virtualHandled = !0, o = !0);
|
|
2514
|
-
}, m = function() {
|
|
2515
|
-
o = !1, l();
|
|
2516
|
-
}, h = function(b) {
|
|
2517
|
-
if (o) {
|
|
2518
|
-
var y = _t(b, !1), p = n.getBoundingClientRect(), c = p.top, w = p.bottom;
|
|
2519
|
-
if (y <= c) {
|
|
2520
|
-
var u = c - y;
|
|
2521
|
-
s = -lr(u), d();
|
|
2522
|
-
} else if (y >= w) {
|
|
2523
|
-
var R = y - w;
|
|
2524
|
-
s = lr(R), d();
|
|
2525
|
-
} else
|
|
2526
|
-
l();
|
|
2527
|
-
}
|
|
2528
|
-
};
|
|
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
|
-
};
|
|
2532
|
-
}
|
|
2533
|
-
}, [e]);
|
|
2534
|
-
}
|
|
2535
|
-
var ur = 10;
|
|
2536
|
-
function Qo(e, t, r, n, o, i, s, l) {
|
|
2537
|
-
var d = v.useRef(), f = v.useState(null), m = K(f, 2), h = m[0], g = m[1];
|
|
2538
|
-
return De(function() {
|
|
2539
|
-
if (h && h.times < ur) {
|
|
2540
|
-
if (!e.current) {
|
|
2541
|
-
g(function(W) {
|
|
2542
|
-
return q({}, W);
|
|
2543
|
-
});
|
|
2544
|
-
return;
|
|
2545
|
-
}
|
|
2546
|
-
i();
|
|
2547
|
-
var b = h.targetAlign, y = h.originAlign, p = h.index, c = h.offset, w = e.current.clientHeight, u = !1, R = b, C = null;
|
|
2548
|
-
if (w) {
|
|
2549
|
-
for (var x = b || y, L = 0, P = 0, T = 0, _ = Math.min(t.length - 1, p), M = 0; M <= _; M += 1) {
|
|
2550
|
-
var F = o(t[M]);
|
|
2551
|
-
P = L;
|
|
2552
|
-
var Y = r.get(F);
|
|
2553
|
-
T = P + (Y === void 0 ? n : Y), L = T;
|
|
2554
|
-
}
|
|
2555
|
-
for (var B = x === "top" ? c : w - c, $ = _; $ >= 0; $ -= 1) {
|
|
2556
|
-
var G = o(t[$]), k = r.get(G);
|
|
2557
|
-
if (k === void 0) {
|
|
2558
|
-
u = !0;
|
|
2559
|
-
break;
|
|
2560
|
-
}
|
|
2561
|
-
if (B -= k, B <= 0)
|
|
2562
|
-
break;
|
|
2563
|
-
}
|
|
2564
|
-
switch (x) {
|
|
2565
|
-
case "top":
|
|
2566
|
-
C = P - c;
|
|
2567
|
-
break;
|
|
2568
|
-
case "bottom":
|
|
2569
|
-
C = T - w + c;
|
|
2570
|
-
break;
|
|
2571
|
-
default: {
|
|
2572
|
-
var ae = e.current.scrollTop, Z = ae + w;
|
|
2573
|
-
P < ae ? R = "top" : T > Z && (R = "bottom");
|
|
2574
|
-
}
|
|
2575
|
-
}
|
|
2576
|
-
C !== null && s(C), C !== h.lastTop && (u = !0);
|
|
2577
|
-
}
|
|
2578
|
-
u && g(q(q({}, h), {}, {
|
|
2579
|
-
times: h.times + 1,
|
|
2580
|
-
targetAlign: R,
|
|
2581
|
-
lastTop: C
|
|
2582
|
-
}));
|
|
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
|
-
}, [h, e.current]), function(b) {
|
|
2585
|
-
if (b == null) {
|
|
2586
|
-
l();
|
|
2587
|
-
return;
|
|
2588
|
-
}
|
|
2589
|
-
if (ne.cancel(d.current), typeof b == "number")
|
|
2590
|
-
s(b);
|
|
2591
|
-
else if (b && oe(b) === "object") {
|
|
2592
|
-
var y, p = b.align;
|
|
2593
|
-
"index" in b ? y = b.index : y = t.findIndex(function(u) {
|
|
2594
|
-
return o(u) === b.key;
|
|
2595
|
-
});
|
|
2596
|
-
var c = b.offset, w = c === void 0 ? 0 : c;
|
|
2597
|
-
g({
|
|
2598
|
-
times: 0,
|
|
2599
|
-
index: y,
|
|
2600
|
-
offset: w,
|
|
2601
|
-
originAlign: p
|
|
2602
|
-
});
|
|
2603
|
-
}
|
|
2604
|
-
};
|
|
2605
|
-
}
|
|
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
|
-
}, 3e3);
|
|
2611
|
-
}, W = i - h || 0, me = h - m || 0, H = v.useMemo(function() {
|
|
2612
|
-
if (o === 0 || W === 0)
|
|
2613
|
-
return 0;
|
|
2614
|
-
var X = o / W;
|
|
2615
|
-
return X * me;
|
|
2616
|
-
}, [o, W, me]), se = function(z) {
|
|
2617
|
-
z.stopPropagation(), z.preventDefault();
|
|
2618
|
-
}, pe = v.useRef({
|
|
2619
|
-
top: H,
|
|
2620
|
-
dragging: c,
|
|
2621
|
-
pageY: C,
|
|
2622
|
-
startTop: T
|
|
2623
|
-
});
|
|
2624
|
-
pe.current = {
|
|
2625
|
-
top: H,
|
|
2626
|
-
dragging: c,
|
|
2627
|
-
pageY: C,
|
|
2628
|
-
startTop: T
|
|
2629
|
-
};
|
|
2630
|
-
var he = function(z) {
|
|
2631
|
-
w(!0), x(_t(z, f)), _(pe.current.top), s(), z.stopPropagation(), z.preventDefault();
|
|
2632
|
-
};
|
|
2633
|
-
v.useEffect(function() {
|
|
2634
|
-
var X = function(S) {
|
|
2635
|
-
S.preventDefault();
|
|
2636
|
-
}, z = F.current, re = Y.current;
|
|
2637
|
-
return z.addEventListener("touchstart", X, {
|
|
2638
|
-
passive: !1
|
|
2639
|
-
}), re.addEventListener("touchstart", he, {
|
|
2640
|
-
passive: !1
|
|
2641
|
-
}), function() {
|
|
2642
|
-
z.removeEventListener("touchstart", X), re.removeEventListener("touchstart", he);
|
|
2643
|
-
};
|
|
2644
|
-
}, []);
|
|
2645
|
-
var Re = v.useRef();
|
|
2646
|
-
Re.current = W;
|
|
2647
|
-
var ge = v.useRef();
|
|
2648
|
-
ge.current = me, v.useEffect(function() {
|
|
2649
|
-
if (c) {
|
|
2650
|
-
var X, z = function(S) {
|
|
2651
|
-
var le = pe.current, ue = le.dragging, be = le.pageY, He = le.startTop;
|
|
2652
|
-
ne.cancel(X);
|
|
2653
|
-
var Ve = F.current.getBoundingClientRect(), ye = h / (f ? Ve.width : Ve.height);
|
|
2654
|
-
if (ue) {
|
|
2655
|
-
var Te = (_t(S, f) - be) * ye, Ie = He;
|
|
2656
|
-
!M && f ? Ie -= Te : Ie += Te;
|
|
2657
|
-
var Be = Re.current, We = ge.current, st = We ? Ie / We : 0, ce = Math.ceil(st * Be);
|
|
2658
|
-
ce = Math.max(ce, 0), ce = Math.min(ce, Be), X = ne(function() {
|
|
2659
|
-
d(ce, f);
|
|
2660
|
-
});
|
|
2661
|
-
}
|
|
2662
|
-
}, re = function() {
|
|
2663
|
-
w(!1), l();
|
|
2664
|
-
};
|
|
2665
|
-
return window.addEventListener("mousemove", z, {
|
|
2666
|
-
passive: !0
|
|
2667
|
-
}), window.addEventListener("touchmove", z, {
|
|
2668
|
-
passive: !0
|
|
2669
|
-
}), window.addEventListener("mouseup", re, {
|
|
2670
|
-
passive: !0
|
|
2671
|
-
}), window.addEventListener("touchend", re, {
|
|
2672
|
-
passive: !0
|
|
2673
|
-
}), function() {
|
|
2674
|
-
window.removeEventListener("mousemove", z), window.removeEventListener("touchmove", z), window.removeEventListener("mouseup", re), window.removeEventListener("touchend", re), ne.cancel(X);
|
|
2675
|
-
};
|
|
2676
|
-
}
|
|
2677
|
-
}, [c]), v.useEffect(function() {
|
|
2678
|
-
return Z(), function() {
|
|
2679
|
-
clearTimeout(ae.current);
|
|
2680
|
-
};
|
|
2681
|
-
}, [o]), v.useImperativeHandle(t, function() {
|
|
2682
|
-
return {
|
|
2683
|
-
delayHidden: Z
|
|
2684
|
-
};
|
|
2685
|
-
});
|
|
2686
|
-
var U = "".concat(r, "-scrollbar"), te = {
|
|
2687
|
-
position: "absolute",
|
|
2688
|
-
visibility: G ? null : "hidden"
|
|
2689
|
-
}, ie = {
|
|
2690
|
-
position: "absolute",
|
|
2691
|
-
background: "rgba(0, 0, 0, 0.5)",
|
|
2692
|
-
borderRadius: 99,
|
|
2693
|
-
cursor: "pointer",
|
|
2694
|
-
userSelect: "none"
|
|
2695
|
-
};
|
|
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
|
-
ref: F,
|
|
2698
|
-
className: Ze(U, ee(ee(ee({}, "".concat(U, "-horizontal"), f), "".concat(U, "-vertical"), !f), "".concat(U, "-visible"), G)),
|
|
2699
|
-
style: q(q({}, te), g),
|
|
2700
|
-
onMouseDown: se,
|
|
2701
|
-
onMouseMove: Z
|
|
2702
|
-
}, /* @__PURE__ */ v.createElement("div", {
|
|
2703
|
-
ref: Y,
|
|
2704
|
-
className: Ze("".concat(U, "-thumb"), ee({}, "".concat(U, "-thumb-moving"), c)),
|
|
2705
|
-
style: q(q({}, ie), b),
|
|
2706
|
-
onMouseDown: he
|
|
2707
|
-
}));
|
|
2708
|
-
});
|
|
2709
|
-
process.env.NODE_ENV !== "production" && (Ot.displayName = "ScrollBar");
|
|
2710
|
-
var ei = 20;
|
|
2711
|
-
function fr() {
|
|
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
|
-
return isNaN(r) && (r = 0), r = Math.max(r, ei), Math.floor(r);
|
|
2714
|
-
}
|
|
2715
|
-
var ti = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles"], ri = [], ni = {
|
|
2716
|
-
overflowY: "auto",
|
|
2717
|
-
overflowAnchor: "none"
|
|
2718
|
-
};
|
|
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, 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
|
-
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], k = !!(b !== !1 && i && s), ae = v.useMemo(function() {
|
|
2723
|
-
return Object.values($.maps).reduce(function(O, E) {
|
|
2724
|
-
return O + E;
|
|
2725
|
-
}, 0);
|
|
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
|
-
ue(!0);
|
|
2728
|
-
}, He = function() {
|
|
2729
|
-
ue(!1);
|
|
2730
|
-
}, Ve = {
|
|
2731
|
-
getKey: _
|
|
2732
|
-
};
|
|
2733
|
-
function ye(O) {
|
|
2734
|
-
te(function(E) {
|
|
2735
|
-
var I;
|
|
2736
|
-
typeof O == "function" ? I = O(E) : I = O;
|
|
2737
|
-
var V = Br(I);
|
|
2738
|
-
return se.current.scrollTop = V, V;
|
|
2739
|
-
});
|
|
2740
|
-
}
|
|
2741
|
-
var Te = j({
|
|
2742
|
-
start: 0,
|
|
2743
|
-
end: H.length
|
|
2744
|
-
}), Ie = j(), Be = Go(H, _), We = K(Be, 1), st = We[0];
|
|
2745
|
-
Ie.current = st;
|
|
2746
|
-
var ce = v.useMemo(function() {
|
|
2747
|
-
if (!k)
|
|
2748
|
-
return {
|
|
2749
|
-
scrollHeight: void 0,
|
|
2750
|
-
start: 0,
|
|
2751
|
-
end: H.length - 1,
|
|
2752
|
-
offset: void 0
|
|
2753
|
-
};
|
|
2754
|
-
if (!Z) {
|
|
2755
|
-
var O;
|
|
2756
|
-
return {
|
|
2757
|
-
scrollHeight: ((O = pe.current) === null || O === void 0 ? void 0 : O.offsetHeight) || 0,
|
|
2758
|
-
start: 0,
|
|
2759
|
-
end: H.length - 1,
|
|
2760
|
-
offset: void 0
|
|
2761
|
-
};
|
|
2762
|
-
}
|
|
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
|
-
pt >= U && I === void 0 && (I = $e, V = E), pt > U + i && J === void 0 && (J = $e), E = pt;
|
|
2766
|
-
}
|
|
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), {
|
|
2768
|
-
scrollHeight: E,
|
|
2769
|
-
start: I,
|
|
2770
|
-
end: J,
|
|
2771
|
-
offset: V
|
|
2772
|
-
};
|
|
2773
|
-
}, [Z, k, U, H, G, i]), we = ce.scrollHeight, Le = ce.start, Ne = ce.end, Tt = ce.offset;
|
|
2774
|
-
Te.current.start = Le, Te.current.end = Ne;
|
|
2775
|
-
var jr = v.useState({
|
|
2776
|
-
width: 0,
|
|
2777
|
-
height: i
|
|
2778
|
-
}), It = K(jr, 2), fe = It[0], kr = It[1], Fr = function(E) {
|
|
2779
|
-
kr({
|
|
2780
|
-
width: E.offsetWidth,
|
|
2781
|
-
height: E.offsetHeight
|
|
2782
|
-
});
|
|
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
|
-
lt.current = ct;
|
|
2789
|
-
function Br(O) {
|
|
2790
|
-
var E = O;
|
|
2791
|
-
return Number.isNaN(lt.current) || (E = Math.min(E, lt.current)), E = Math.max(E, 0), E;
|
|
2792
|
-
}
|
|
2793
|
-
var Ye = U <= 0, Ge = U >= ct, At = z <= 0, $t = z >= p, Wr = zr(Ye, Ge, At, $t), ut = function() {
|
|
2794
|
-
return {
|
|
2795
|
-
x: W ? -z : z,
|
|
2796
|
-
y: U
|
|
2797
|
-
};
|
|
2798
|
-
}, ft = j(ut()), Ue = nr(function(O) {
|
|
2799
|
-
if (R) {
|
|
2800
|
-
var E = q(q({}, ut()), O);
|
|
2801
|
-
(ft.current.x !== E.x || ft.current.y !== E.y) && (R(E), ft.current = E);
|
|
2802
|
-
}
|
|
2803
|
-
});
|
|
2804
|
-
function zt(O, E) {
|
|
2805
|
-
var I = O;
|
|
2806
|
-
E ? (Xt.flushSync(function() {
|
|
2807
|
-
re(I);
|
|
2808
|
-
}), Ue()) : ye(I);
|
|
2809
|
-
}
|
|
2810
|
-
function Yr(O) {
|
|
2811
|
-
var E = O.currentTarget.scrollTop;
|
|
2812
|
-
E !== U && ye(E), u == null || u(O), Ue();
|
|
2813
|
-
}
|
|
2814
|
-
var dt = function(E) {
|
|
2815
|
-
var I = E, V = p ? p - fe.width : 0;
|
|
2816
|
-
return I = Math.max(I, 0), I = Math.min(I, V), I;
|
|
2817
|
-
}, Gr = nr(function(O, E) {
|
|
2818
|
-
E ? (Xt.flushSync(function() {
|
|
2819
|
-
re(function(I) {
|
|
2820
|
-
var V = I + (W ? -O : O);
|
|
2821
|
-
return dt(V);
|
|
2822
|
-
});
|
|
2823
|
-
}), Ue()) : ye(function(I) {
|
|
2824
|
-
var V = I + O;
|
|
2825
|
-
return V;
|
|
2826
|
-
});
|
|
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
|
-
var J = V;
|
|
2830
|
-
return Wr(O, E, I) ? !1 : !J || !J._virtualHandled ? (J && (J._virtualHandled = !0), vt({
|
|
2831
|
-
preventDefault: function() {
|
|
2832
|
-
},
|
|
2833
|
-
deltaX: O ? E : 0,
|
|
2834
|
-
deltaY: O ? 0 : E
|
|
2835
|
-
}), !0) : !1;
|
|
2836
|
-
}), Jo(Z, se, function(O) {
|
|
2837
|
-
ye(function(E) {
|
|
2838
|
-
return E + O;
|
|
2839
|
-
});
|
|
2840
|
-
}), De(function() {
|
|
2841
|
-
function O(I) {
|
|
2842
|
-
var V = Ye && I.detail < 0, J = Ge && I.detail > 0;
|
|
2843
|
-
k && !V && !J && I.preventDefault();
|
|
2844
|
-
}
|
|
2845
|
-
var E = se.current;
|
|
2846
|
-
return E.addEventListener("wheel", vt, {
|
|
2847
|
-
passive: !1
|
|
2848
|
-
}), E.addEventListener("DOMMouseScroll", jt, {
|
|
2849
|
-
passive: !0
|
|
2850
|
-
}), E.addEventListener("MozMousePixelScroll", O, {
|
|
2851
|
-
passive: !1
|
|
2852
|
-
}), function() {
|
|
2853
|
-
E.removeEventListener("wheel", vt), E.removeEventListener("DOMMouseScroll", jt), E.removeEventListener("MozMousePixelScroll", O);
|
|
2854
|
-
};
|
|
2855
|
-
}, [k, Ye, Ge]), De(function() {
|
|
2856
|
-
if (p) {
|
|
2857
|
-
var O = dt(z);
|
|
2858
|
-
re(O), Ue({
|
|
2859
|
-
x: O
|
|
2860
|
-
});
|
|
2861
|
-
}
|
|
2862
|
-
}, [fe.width, p]);
|
|
2863
|
-
var kt = function() {
|
|
2864
|
-
var E, I;
|
|
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
|
-
return B(!0);
|
|
2868
|
-
}, ye, kt);
|
|
2869
|
-
v.useImperativeHandle(t, function() {
|
|
2870
|
-
return {
|
|
2871
|
-
nativeElement: he.current,
|
|
2872
|
-
getScrollInfo: ut,
|
|
2873
|
-
scrollTo: function(E) {
|
|
2874
|
-
function I(V) {
|
|
2875
|
-
return V && oe(V) === "object" && ("left" in V || "top" in V);
|
|
2876
|
-
}
|
|
2877
|
-
I(E) ? (E.left !== void 0 && re(dt(E.left)), Ft(E.top)) : Ft(E);
|
|
2878
|
-
}
|
|
2879
|
-
};
|
|
2880
|
-
}), De(function() {
|
|
2881
|
-
if (C) {
|
|
2882
|
-
var O = H.slice(Le, Ne + 1);
|
|
2883
|
-
C(O, H);
|
|
2884
|
-
}
|
|
2885
|
-
}, [Le, Ne, H]);
|
|
2886
|
-
var Xr = Xo(H, _, $, s), Kr = L == null ? void 0 : L({
|
|
2887
|
-
start: Le,
|
|
2888
|
-
end: Ne,
|
|
2889
|
-
virtual: Z,
|
|
2890
|
-
offsetX: z,
|
|
2891
|
-
offsetY: Tt,
|
|
2892
|
-
rtl: W,
|
|
2893
|
-
getSize: Xr
|
|
2894
|
-
}), qr = Wo(H, Le, Ne, p, z, Y, h, Ve), Ae = null;
|
|
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
|
-
ref: he,
|
|
2899
|
-
style: q(q({}, f), {}, {
|
|
2900
|
-
position: "relative"
|
|
2901
|
-
}),
|
|
2902
|
-
className: me
|
|
2903
|
-
}, Ht, T), /* @__PURE__ */ v.createElement(it, {
|
|
2904
|
-
onResize: Fr
|
|
2905
|
-
}, /* @__PURE__ */ v.createElement(w, {
|
|
2906
|
-
className: "".concat(n, "-holder"),
|
|
2907
|
-
style: Ae,
|
|
2908
|
-
ref: se,
|
|
2909
|
-
onScroll: Yr,
|
|
2910
|
-
onMouseEnter: kt
|
|
2911
|
-
}, /* @__PURE__ */ v.createElement(Lr, {
|
|
2912
|
-
prefixCls: n,
|
|
2913
|
-
height: we,
|
|
2914
|
-
offsetX: z,
|
|
2915
|
-
offsetY: Tt,
|
|
2916
|
-
scrollWidth: p,
|
|
2917
|
-
onInnerResize: B,
|
|
2918
|
-
ref: pe,
|
|
2919
|
-
innerProps: x,
|
|
2920
|
-
rtl: W,
|
|
2921
|
-
extra: Kr
|
|
2922
|
-
}, qr))), Z && we > i && /* @__PURE__ */ v.createElement(Ot, {
|
|
2923
|
-
ref: Lt,
|
|
2924
|
-
prefixCls: n,
|
|
2925
|
-
scrollOffset: U,
|
|
2926
|
-
scrollRange: we,
|
|
2927
|
-
rtl: W,
|
|
2928
|
-
onScroll: zt,
|
|
2929
|
-
onStartMove: be,
|
|
2930
|
-
onStopMove: He,
|
|
2931
|
-
spinSize: Vr,
|
|
2932
|
-
containerSize: fe.height,
|
|
2933
|
-
style: P == null ? void 0 : P.verticalScrollBar,
|
|
2934
|
-
thumbStyle: P == null ? void 0 : P.verticalScrollBarThumb
|
|
2935
|
-
}), Z && p > fe.width && /* @__PURE__ */ v.createElement(Ot, {
|
|
2936
|
-
ref: Nt,
|
|
2937
|
-
prefixCls: n,
|
|
2938
|
-
scrollOffset: z,
|
|
2939
|
-
scrollRange: p,
|
|
2940
|
-
rtl: W,
|
|
2941
|
-
onScroll: zt,
|
|
2942
|
-
onStartMove: be,
|
|
2943
|
-
onStopMove: He,
|
|
2944
|
-
spinSize: Hr,
|
|
2945
|
-
containerSize: fe.width,
|
|
2946
|
-
horizontal: !0,
|
|
2947
|
-
style: P == null ? void 0 : P.horizontalScrollBar,
|
|
2948
|
-
thumbStyle: P == null ? void 0 : P.horizontalScrollBarThumb
|
|
2949
|
-
}));
|
|
2950
|
-
}
|
|
2951
|
-
var Dr = /* @__PURE__ */ v.forwardRef(oi);
|
|
2952
|
-
Dr.displayName = "List";
|
|
2953
|
-
const Si = (e) => {
|
|
2954
|
-
var g, b, y, p, c, w;
|
|
2955
|
-
const [t, r] = Ke(1), n = tn(on);
|
|
2956
|
-
if (!n)
|
|
2957
|
-
return null;
|
|
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
|
-
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 = {}, d = new nn();
|
|
2961
|
-
s.forEach((u) => {
|
|
2962
|
-
var R, C;
|
|
2963
|
-
if ((C = (R = u.deliveryOptions) == null ? void 0 : R.instant) != null && C.batching) {
|
|
2964
|
-
const x = u.deliveryOptions.instant.batchingKey, L = x ? d.parseAndRenderSync(`{{${x}}}`, u) : "", P = `${u.notificationId}-${L}`;
|
|
2965
|
-
l[P] ? l[P].push(u) : l[P] = [u];
|
|
2966
|
-
} else {
|
|
2967
|
-
const x = u.id;
|
|
2968
|
-
l[x] = [u];
|
|
2969
|
-
}
|
|
2970
|
-
});
|
|
2971
|
-
const f = Object.values(l).sort(
|
|
2972
|
-
(u, R) => new Date(R[R.length - 1].date).getTime() - new Date(u[u.length - 1].date).getTime()
|
|
2973
|
-
), m = e.empty ?? an, h = (u, R) => {
|
|
2974
|
-
R >= Math.floor(n.notifications.length / e.pageSize) && n.loadNotifications(), r(R);
|
|
2975
|
-
};
|
|
2976
|
-
return /* @__PURE__ */ D("div", { children: e.pagination === "INFINITE_SCROLL" ? /* @__PURE__ */ Ce(
|
|
2977
|
-
mt,
|
|
2978
|
-
{
|
|
2979
|
-
subheader: /* @__PURE__ */ D(
|
|
2980
|
-
Wt,
|
|
2981
|
-
{
|
|
2982
|
-
title: (g = e.header) == null ? void 0 : g.title,
|
|
2983
|
-
button1ClickHandler: (b = e.header) == null ? void 0 : b.button1ClickHandler,
|
|
2984
|
-
button2ClickHandler: (y = e.header) == null ? void 0 : y.button2ClickHandler
|
|
2985
|
-
}
|
|
2986
|
-
),
|
|
2987
|
-
children: [
|
|
2988
|
-
f.length === 0 && m,
|
|
2989
|
-
/* @__PURE__ */ D(
|
|
2990
|
-
Dr,
|
|
2991
|
-
{
|
|
2992
|
-
data: f,
|
|
2993
|
-
height: e.maxHeight,
|
|
2994
|
-
itemHeight: 47,
|
|
2995
|
-
itemKey: (u) => u[0].id,
|
|
2996
|
-
onScroll: (u) => {
|
|
2997
|
-
Math.abs(
|
|
2998
|
-
u.currentTarget.scrollHeight - u.currentTarget.scrollTop - e.maxHeight
|
|
2999
|
-
) <= 1 && n.loadNotifications();
|
|
3000
|
-
},
|
|
3001
|
-
children: (u) => /* @__PURE__ */ D(gt, { style: { padding: 0 }, children: /* @__PURE__ */ D(
|
|
3002
|
-
Yt,
|
|
3003
|
-
{
|
|
3004
|
-
markAsArchived: n.markAsArchived,
|
|
3005
|
-
notifications: u,
|
|
3006
|
-
markAsClicked: n.markAsClicked,
|
|
3007
|
-
renderer: e.notificationRenderer,
|
|
3008
|
-
imageShape: e.imageShape
|
|
3009
|
-
}
|
|
3010
|
-
) }, u[0].id)
|
|
3011
|
-
}
|
|
3012
|
-
)
|
|
3013
|
-
]
|
|
3014
|
-
}
|
|
3015
|
-
) : /* @__PURE__ */ Ce(
|
|
3016
|
-
mt,
|
|
3017
|
-
{
|
|
3018
|
-
subheader: /* @__PURE__ */ D(
|
|
3019
|
-
Wt,
|
|
3020
|
-
{
|
|
3021
|
-
title: (p = e.header) == null ? void 0 : p.title,
|
|
3022
|
-
button1ClickHandler: (c = e.header) == null ? void 0 : c.button1ClickHandler,
|
|
3023
|
-
button2ClickHandler: (w = e.header) == null ? void 0 : w.button2ClickHandler
|
|
3024
|
-
}
|
|
3025
|
-
),
|
|
3026
|
-
children: [
|
|
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,
|
|
3037
|
-
{
|
|
3038
|
-
markAsArchived: n.markAsArchived,
|
|
3039
|
-
notifications: u,
|
|
3040
|
-
markAsClicked: n.markAsClicked,
|
|
3041
|
-
renderer: e.notificationRenderer,
|
|
3042
|
-
imageShape: e.imageShape
|
|
3043
|
-
}
|
|
3044
|
-
) }, u[0].id)),
|
|
3045
|
-
e.pagePosition === "bottom" && f.length > 0 && /* @__PURE__ */ D(
|
|
3046
|
-
bt,
|
|
3047
|
-
{
|
|
3048
|
-
count: Math.ceil(f.length / e.pageSize),
|
|
3049
|
-
page: t,
|
|
3050
|
-
onChange: h
|
|
3051
|
-
}
|
|
3052
|
-
),
|
|
3053
|
-
f.length === 0 && m
|
|
3054
|
-
]
|
|
3055
|
-
}
|
|
3056
|
-
) });
|
|
3057
|
-
};
|
|
3058
|
-
export {
|
|
3059
|
-
Si as I,
|
|
3060
|
-
qt as i
|
|
3061
|
-
};
|