Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

187 lines
5.3 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 7e519410fdb8d8cd.424e721e83.js
* Module id: 820748
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(462214);
e.i(358379), e.i(7284);
var i = e.i(479324),
a = e.i(593307),
r = e.i(422676),
n = e.i(38020),
o = e.i(601763),
s = e.i(706336),
l = e.i(718883),
d = e.i(709046),
u = e.i(6783),
c = e.i(855698),
h = e.i(264589),
m = e.i(938202),
p = e.i(620428),
v = e.i(507263),
b = e.i(505681),
g = e.i(450943),
f = e.i(124859),
E = e.i(51357);
let w = { siblings: 1, boundaries: 1 },
y = (0, m.createVarsResolver)(
(e, { size: t, radius: i, color: a, autoContrast: r }) => ({
root: {
"--pagination-control-radius":
void 0 === i ? void 0 : (0, c.getRadius)(i),
"--pagination-control-size": (0, c.getSize)(
t,
"pagination-control-size",
),
"--pagination-control-fz": (0, c.getFontSize)(t),
"--pagination-active-bg": a ? (0, p.getThemeColor)(a, e) : void 0,
"--pagination-active-color": (0, b.getAutoContrastValue)(r, e)
? (0, v.getContrastColor)({ color: a, theme: e, autoContrast: r })
: void 0,
},
}),
),
x = (0, a.factory)((e, a) => {
let r = (0, i.useProps)("PaginationRoot", w, e),
{
classNames: o,
className: s,
style: l,
styles: d,
unstyled: c,
vars: m,
total: p,
value: v,
defaultValue: b,
onChange: x,
disabled: A,
siblings: k,
boundaries: I,
color: C,
radius: T,
onNextPage: M,
onPreviousPage: _,
onFirstPage: S,
onLastPage: L,
getItemProps: R,
autoContrast: D,
attributes: N,
...P
} = r,
j = (0, g.useStyles)({
name: "Pagination",
classes: n.default,
props: r,
className: s,
style: l,
classNames: o,
styles: d,
unstyled: c,
attributes: N,
vars: m,
varsResolver: y,
}),
{
range: O,
setPage: U,
next: H,
previous: V,
active: W,
first: $,
last: B,
} = (0, u.usePagination)({
page: v,
initialPage: b,
onChange: x,
total: p,
siblings: k,
boundaries: I,
}),
F = (0, h.createEventHandler)(M, H),
z = (0, h.createEventHandler)(_, V),
G = (0, h.createEventHandler)(S, $),
q = (0, h.createEventHandler)(L, B);
return (0, t.jsx)(E.PaginationProvider, {
value: {
total: p,
range: O,
active: W,
disabled: A,
getItemProps: R,
onChange: U,
onNext: F,
onPrevious: z,
onFirst: G,
onLast: q,
getStyles: j,
},
children: (0, t.jsx)(f.Box, { ref: a, ...j("root"), ...P }),
});
});
(x.classes = n.default), (x.displayName = "@mantine/core/PaginationRoot");
let A = {
withControls: !0,
withPages: !0,
siblings: 1,
boundaries: 1,
gap: 8,
},
k = (0, a.factory)((e, a) => {
let {
withEdges: n,
withControls: o,
getControlProps: s,
nextIcon: u,
previousIcon: c,
lastIcon: h,
firstIcon: m,
dotsIcon: p,
total: v,
gap: b,
hideWithOnePage: g,
withPages: f,
...E
} = (0, i.useProps)("Pagination", A, e);
return v <= 0 || (g && 1 === v)
? null
: (0, t.jsx)(x, {
ref: a,
total: v,
...E,
children: (0, t.jsxs)(r.Group, {
gap: b,
children: [
n &&
(0, t.jsx)(l.PaginationFirst, { icon: m, ...s?.("first") }),
o &&
(0, t.jsx)(l.PaginationPrevious, {
icon: c,
...s?.("previous"),
}),
f && (0, t.jsx)(d.PaginationItems, { dotsIcon: p }),
o &&
(0, t.jsx)(l.PaginationNext, { icon: u, ...s?.("next") }),
n &&
(0, t.jsx)(l.PaginationLast, { icon: h, ...s?.("last") }),
],
}),
});
});
(k.classes = n.default),
(k.displayName = "@mantine/core/Pagination"),
(k.Root = x),
(k.Control = o.PaginationControl),
(k.Dots = s.PaginationDots),
(k.First = l.PaginationFirst),
(k.Last = l.PaginationLast),
(k.Next = l.PaginationNext),
(k.Previous = l.PaginationPrevious),
(k.Items = d.PaginationItems),
e.s(["Pagination", () => k], 820748);
};
export default moduleFactory;