@amateescu/portal-ui-components 0.0.7-beta3 → 0.0.7-beta4

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.
@@ -1,132 +1,376 @@
1
- import { jsx as b, jsxs as Y } from "react/jsx-runtime";
2
- import { _, a as l } from "../../index-kNWC7pFF.js";
3
- import * as D from "react";
4
- import { g as G, a as S, u as w, c as T, b as q, s as A, d as W, m as B, P as o } from "../../generateUtilityClasses-BzhjuzcK.js";
5
- import { u as Z, c as H, a as aa, L as U, F, i as M, G as ta } from "../../GridPagination-DrNedBid.js";
6
- import { B as oa } from "../../ButtonBase-CHdm_9Jj.js";
7
- function ea(a) {
8
- return G("MuiPagination", a);
1
+ import { jsxs as Q, jsx as b } from "react/jsx-runtime";
2
+ import { GridPagination as ne } from "@mui/x-data-grid";
3
+ import { _ as w, a as f } from "../../index-kNWC7pFF.js";
4
+ import * as m from "react";
5
+ import { P as t, g as U, a as D, u as F, c as O, b as W, s as B, f as V, e as S } from "../../generateUtilityClasses-DHfaG5wY.js";
6
+ import { B as ae } from "../../ButtonBase-BGF0RYEt.js";
7
+ function ie({
8
+ controlled: e,
9
+ default: o,
10
+ name: n,
11
+ state: a = "value"
12
+ }) {
13
+ const {
14
+ current: i
15
+ } = m.useRef(e !== void 0), [l, u] = m.useState(o), s = i ? e : l;
16
+ if (process.env.NODE_ENV !== "production") {
17
+ m.useEffect(() => {
18
+ i !== (e !== void 0) && console.error([`MUI: A component is changing the ${i ? "" : "un"}controlled ${a} state of ${n} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
19
+ `));
20
+ }, [a, n, e]);
21
+ const {
22
+ current: c
23
+ } = m.useRef(o);
24
+ m.useEffect(() => {
25
+ !i && !Object.is(c, o) && console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
26
+ `));
27
+ }, [JSON.stringify(o)]);
28
+ }
29
+ const g = m.useCallback((c) => {
30
+ i || u(c);
31
+ }, []);
32
+ return [s, g];
33
+ }
34
+ function re(e) {
35
+ const o = typeof e;
36
+ switch (o) {
37
+ case "number":
38
+ return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
39
+ case "object":
40
+ return e === null ? "null" : e.constructor.name;
41
+ default:
42
+ return o;
43
+ }
44
+ }
45
+ function se(e) {
46
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
47
+ }
48
+ const le = Number.isInteger || se;
49
+ function X(e, o, n, a) {
50
+ const i = e[o];
51
+ if (i == null || !le(i)) {
52
+ const l = re(i);
53
+ return new RangeError(`Invalid ${a} \`${o}\` of type \`${l}\` supplied to \`${n}\`, expected \`integer\`.`);
54
+ }
55
+ return null;
56
+ }
57
+ function Y(e, o, ...n) {
58
+ return e[o] === void 0 ? null : X(e, o, ...n);
9
59
  }
10
- S("MuiPagination", ["root", "ul", "outlined", "text"]);
11
- const na = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
12
- function sa(a = {}) {
60
+ function j() {
61
+ return null;
62
+ }
63
+ Y.isRequired = X;
64
+ j.isRequired = j;
65
+ const L = process.env.NODE_ENV === "production" ? j : Y, ce = /* @__PURE__ */ m.createContext();
66
+ process.env.NODE_ENV !== "production" && (t.node, t.bool);
67
+ const de = () => {
68
+ const e = m.useContext(ce);
69
+ return e ?? !1;
70
+ };
71
+ function pe(e) {
72
+ return U("MuiSvgIcon", e);
73
+ }
74
+ D("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
75
+ const ue = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], ge = (e) => {
13
76
  const {
14
- boundaryCount: t = 1,
15
- componentName: e = "usePagination",
16
- count: n = 1,
17
- defaultPage: c = 1,
18
- disabled: p = !1,
77
+ color: o,
78
+ fontSize: n,
79
+ classes: a
80
+ } = e, i = {
81
+ root: ["root", o !== "inherit" && `color${O(o)}`, `fontSize${O(n)}`]
82
+ };
83
+ return W(i, pe, a);
84
+ }, fe = B("svg", {
85
+ name: "MuiSvgIcon",
86
+ slot: "Root",
87
+ overridesResolver: (e, o) => {
88
+ const {
89
+ ownerState: n
90
+ } = e;
91
+ return [o.root, n.color !== "inherit" && o[`color${O(n.color)}`], o[`fontSize${O(n.fontSize)}`]];
92
+ }
93
+ })(({
94
+ theme: e,
95
+ ownerState: o
96
+ }) => {
97
+ var n, a, i, l, u, s, g, c, y, x, v, d, r;
98
+ return {
99
+ userSelect: "none",
100
+ width: "1em",
101
+ height: "1em",
102
+ display: "inline-block",
103
+ // the <svg> will define the property that has `currentColor`
104
+ // for example heroicons uses fill="none" and stroke="currentColor"
105
+ fill: o.hasSvgAsChild ? void 0 : "currentColor",
106
+ flexShrink: 0,
107
+ transition: (n = e.transitions) == null || (a = n.create) == null ? void 0 : a.call(n, "fill", {
108
+ duration: (i = e.transitions) == null || (i = i.duration) == null ? void 0 : i.shorter
109
+ }),
110
+ fontSize: {
111
+ inherit: "inherit",
112
+ small: ((l = e.typography) == null || (u = l.pxToRem) == null ? void 0 : u.call(l, 20)) || "1.25rem",
113
+ medium: ((s = e.typography) == null || (g = s.pxToRem) == null ? void 0 : g.call(s, 24)) || "1.5rem",
114
+ large: ((c = e.typography) == null || (y = c.pxToRem) == null ? void 0 : y.call(c, 35)) || "2.1875rem"
115
+ }[o.fontSize],
116
+ // TODO v5 deprecate, v6 remove for sx
117
+ color: (x = (v = (e.vars || e).palette) == null || (v = v[o.color]) == null ? void 0 : v.main) != null ? x : {
118
+ action: (d = (e.vars || e).palette) == null || (d = d.action) == null ? void 0 : d.active,
119
+ disabled: (r = (e.vars || e).palette) == null || (r = r.action) == null ? void 0 : r.disabled,
120
+ inherit: void 0
121
+ }[o.color]
122
+ };
123
+ }), E = /* @__PURE__ */ m.forwardRef(function(o, n) {
124
+ const a = F({
125
+ props: o,
126
+ name: "MuiSvgIcon"
127
+ }), {
128
+ children: i,
129
+ className: l,
130
+ color: u = "inherit",
131
+ component: s = "svg",
132
+ fontSize: g = "medium",
133
+ htmlColor: c,
134
+ inheritViewBox: y = !1,
135
+ titleAccess: x,
136
+ viewBox: v = "0 0 24 24"
137
+ } = a, d = w(a, ue), r = /* @__PURE__ */ m.isValidElement(i) && i.type === "svg", P = f({}, a, {
138
+ color: u,
139
+ component: s,
140
+ fontSize: g,
141
+ instanceFontSize: o.fontSize,
142
+ inheritViewBox: y,
143
+ viewBox: v,
144
+ hasSvgAsChild: r
145
+ }), N = {};
146
+ y || (N.viewBox = v);
147
+ const h = ge(P);
148
+ return /* @__PURE__ */ Q(fe, f({
149
+ as: s,
150
+ className: V(h.root, l),
151
+ focusable: "false",
152
+ color: c,
153
+ "aria-hidden": x ? void 0 : !0,
154
+ role: x ? "img" : void 0,
155
+ ref: n
156
+ }, N, d, r && i.props, {
157
+ ownerState: P,
158
+ children: [r ? i.props.children : i, x ? /* @__PURE__ */ b("title", {
159
+ children: x
160
+ }) : null]
161
+ }));
162
+ });
163
+ process.env.NODE_ENV !== "production" && (E.propTypes = {
164
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
165
+ // │ These PropTypes are generated from the TypeScript type definitions. │
166
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
167
+ // └─────────────────────────────────────────────────────────────────────┘
168
+ /**
169
+ * Node passed into the SVG element.
170
+ */
171
+ children: t.node,
172
+ /**
173
+ * Override or extend the styles applied to the component.
174
+ */
175
+ classes: t.object,
176
+ /**
177
+ * @ignore
178
+ */
179
+ className: t.string,
180
+ /**
181
+ * The color of the component.
182
+ * It supports both default and custom theme colors, which can be added as shown in the
183
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
184
+ * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
185
+ * @default 'inherit'
186
+ */
187
+ color: t.oneOfType([t.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
188
+ /**
189
+ * The component used for the root node.
190
+ * Either a string to use a HTML element or a component.
191
+ */
192
+ component: t.elementType,
193
+ /**
194
+ * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
195
+ * @default 'medium'
196
+ */
197
+ fontSize: t.oneOfType([t.oneOf(["inherit", "large", "medium", "small"]), t.string]),
198
+ /**
199
+ * Applies a color attribute to the SVG element.
200
+ */
201
+ htmlColor: t.string,
202
+ /**
203
+ * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
204
+ * prop will be ignored.
205
+ * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
206
+ * `component`'s viewBox to the root node.
207
+ * @default false
208
+ */
209
+ inheritViewBox: t.bool,
210
+ /**
211
+ * The shape-rendering attribute. The behavior of the different options is described on the
212
+ * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
213
+ * If you are having issues with blurry icons you should investigate this prop.
214
+ */
215
+ shapeRendering: t.string,
216
+ /**
217
+ * The system prop that allows defining system overrides as well as additional CSS styles.
218
+ */
219
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
220
+ /**
221
+ * Provides a human-readable title for the element that contains it.
222
+ * https://www.w3.org/TR/SVG-access/#Equivalent
223
+ */
224
+ titleAccess: t.string,
225
+ /**
226
+ * Allows you to redefine what the coordinates without units mean inside an SVG element.
227
+ * For example, if the SVG element is 500 (width) by 200 (height),
228
+ * and you pass viewBox="0 0 50 20",
229
+ * this means that the coordinates inside the SVG will go from the top left corner (0,0)
230
+ * to bottom right (50,20) and each unit will be worth 10px.
231
+ * @default '0 0 24 24'
232
+ */
233
+ viewBox: t.string
234
+ });
235
+ E.muiName = "SvgIcon";
236
+ function A(e, o) {
237
+ function n(a, i) {
238
+ return /* @__PURE__ */ b(E, f({
239
+ "data-testid": `${o}Icon`,
240
+ ref: i
241
+ }, a, {
242
+ children: e
243
+ }));
244
+ }
245
+ return process.env.NODE_ENV !== "production" && (n.displayName = `${o}Icon`), n.muiName = E.muiName, /* @__PURE__ */ m.memo(/* @__PURE__ */ m.forwardRef(n));
246
+ }
247
+ function ve(e) {
248
+ return U("MuiPagination", e);
249
+ }
250
+ D("MuiPagination", ["root", "ul", "outlined", "text"]);
251
+ const be = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
252
+ function ye(e = {}) {
253
+ const {
254
+ boundaryCount: o = 1,
255
+ componentName: n = "usePagination",
256
+ count: a = 1,
257
+ defaultPage: i = 1,
258
+ disabled: l = !1,
19
259
  hideNextButton: u = !1,
20
- hidePrevButton: r = !1,
260
+ hidePrevButton: s = !1,
21
261
  onChange: g,
22
- page: f,
23
- showFirstButton: C = !1,
24
- showLastButton: I = !1,
25
- siblingCount: P = 1
26
- } = a, d = _(a, na), [i, k] = Z({
27
- controlled: f,
28
- default: c,
29
- name: e,
262
+ page: c,
263
+ showFirstButton: y = !1,
264
+ showLastButton: x = !1,
265
+ siblingCount: v = 1
266
+ } = e, d = w(e, be), [r, P] = ie({
267
+ controlled: c,
268
+ default: i,
269
+ name: n,
30
270
  state: "page"
31
- }), N = (s, O) => {
32
- f || k(O), g && g(s, O);
33
- }, y = (s, O) => {
34
- const Q = O - s + 1;
271
+ }), N = (p, I) => {
272
+ c || P(I), g && g(p, I);
273
+ }, h = (p, I) => {
274
+ const oe = I - p + 1;
35
275
  return Array.from({
36
- length: Q
37
- }, (xa, X) => s + X);
38
- }, z = y(1, Math.min(t, n)), x = y(Math.max(n - t + 1, t + 1), n), R = Math.max(
276
+ length: oe
277
+ }, (Se, te) => p + te);
278
+ }, R = h(1, Math.min(o, a)), C = h(Math.max(a - o + 1, o + 1), a), M = Math.max(
39
279
  Math.min(
40
280
  // Natural start
41
- i - P,
281
+ r - v,
42
282
  // Lower boundary when page is high
43
- n - t - P * 2 - 1
283
+ a - o - v * 2 - 1
44
284
  ),
45
285
  // Greater than startPages
46
- t + 2
47
- ), $ = Math.min(
286
+ o + 2
287
+ ), T = Math.min(
48
288
  Math.max(
49
289
  // Natural end
50
- i + P,
290
+ r + v,
51
291
  // Upper boundary when page is low
52
- t + P * 2 + 2
292
+ o + v * 2 + 2
53
293
  ),
54
294
  // Less than endPages
55
- x.length > 0 ? x[0] - 2 : n - 1
56
- ), h = [
57
- ...C ? ["first"] : [],
58
- ...r ? [] : ["previous"],
59
- ...z,
295
+ C.length > 0 ? C[0] - 2 : a - 1
296
+ ), _ = [
297
+ ...y ? ["first"] : [],
298
+ ...s ? [] : ["previous"],
299
+ ...R,
60
300
  // Start ellipsis
61
301
  // eslint-disable-next-line no-nested-ternary
62
- ...R > t + 2 ? ["start-ellipsis"] : t + 1 < n - t ? [t + 1] : [],
302
+ ...M > o + 2 ? ["start-ellipsis"] : o + 1 < a - o ? [o + 1] : [],
63
303
  // Sibling pages
64
- ...y(R, $),
304
+ ...h(M, T),
65
305
  // End ellipsis
66
306
  // eslint-disable-next-line no-nested-ternary
67
- ...$ < n - t - 1 ? ["end-ellipsis"] : n - t > t ? [n - t] : [],
68
- ...x,
307
+ ...T < a - o - 1 ? ["end-ellipsis"] : a - o > o ? [a - o] : [],
308
+ ...C,
69
309
  ...u ? [] : ["next"],
70
- ...I ? ["last"] : []
71
- ], L = (s) => {
72
- switch (s) {
310
+ ...x ? ["last"] : []
311
+ ], k = (p) => {
312
+ switch (p) {
73
313
  case "first":
74
314
  return 1;
75
315
  case "previous":
76
- return i - 1;
316
+ return r - 1;
77
317
  case "next":
78
- return i + 1;
318
+ return r + 1;
79
319
  case "last":
80
- return n;
320
+ return a;
81
321
  default:
82
322
  return null;
83
323
  }
84
- }, m = h.map((s) => typeof s == "number" ? {
85
- onClick: (O) => {
86
- N(O, s);
324
+ }, z = _.map((p) => typeof p == "number" ? {
325
+ onClick: (I) => {
326
+ N(I, p);
87
327
  },
88
328
  type: "page",
89
- page: s,
90
- selected: s === i,
91
- disabled: p,
92
- "aria-current": s === i ? "true" : void 0
329
+ page: p,
330
+ selected: p === r,
331
+ disabled: l,
332
+ "aria-current": p === r ? "true" : void 0
93
333
  } : {
94
- onClick: (O) => {
95
- N(O, L(s));
334
+ onClick: (I) => {
335
+ N(I, k(p));
96
336
  },
97
- type: s,
98
- page: L(s),
337
+ type: p,
338
+ page: k(p),
99
339
  selected: !1,
100
- disabled: p || s.indexOf("ellipsis") === -1 && (s === "next" || s === "last" ? i >= n : i <= 1)
340
+ disabled: l || p.indexOf("ellipsis") === -1 && (p === "next" || p === "last" ? r >= a : r <= 1)
101
341
  });
102
- return l({
103
- items: m
342
+ return f({
343
+ items: z
104
344
  }, d);
105
345
  }
106
- function ia(a) {
107
- return G("MuiPaginationItem", a);
346
+ function me(e) {
347
+ return U("MuiPaginationItem", e);
108
348
  }
109
- const v = S("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), V = H(/* @__PURE__ */ b("path", {
349
+ const $ = D("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), q = A(/* @__PURE__ */ b("path", {
350
+ d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
351
+ }), "FirstPage"), H = A(/* @__PURE__ */ b("path", {
352
+ d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
353
+ }), "LastPage"), J = A(/* @__PURE__ */ b("path", {
110
354
  d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
111
- }), "NavigateBefore"), E = H(/* @__PURE__ */ b("path", {
355
+ }), "NavigateBefore"), K = A(/* @__PURE__ */ b("path", {
112
356
  d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
113
- }), "NavigateNext"), ra = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], J = (a, t) => {
357
+ }), "NavigateNext"), xe = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], Z = (e, o) => {
114
358
  const {
115
- ownerState: e
116
- } = a;
117
- return [t.root, t[e.variant], t[`size${T(e.size)}`], e.variant === "text" && t[`text${T(e.color)}`], e.variant === "outlined" && t[`outlined${T(e.color)}`], e.shape === "rounded" && t.rounded, e.type === "page" && t.page, (e.type === "start-ellipsis" || e.type === "end-ellipsis") && t.ellipsis, (e.type === "previous" || e.type === "next") && t.previousNext, (e.type === "first" || e.type === "last") && t.firstLast];
118
- }, la = (a) => {
359
+ ownerState: n
360
+ } = e;
361
+ return [o.root, o[n.variant], o[`size${O(n.size)}`], n.variant === "text" && o[`text${O(n.color)}`], n.variant === "outlined" && o[`outlined${O(n.color)}`], n.shape === "rounded" && o.rounded, n.type === "page" && o.page, (n.type === "start-ellipsis" || n.type === "end-ellipsis") && o.ellipsis, (n.type === "previous" || n.type === "next") && o.previousNext, (n.type === "first" || n.type === "last") && o.firstLast];
362
+ }, he = (e) => {
119
363
  const {
120
- classes: t,
121
- color: e,
122
- disabled: n,
123
- selected: c,
124
- size: p,
364
+ classes: o,
365
+ color: n,
366
+ disabled: a,
367
+ selected: i,
368
+ size: l,
125
369
  shape: u,
126
- type: r,
370
+ type: s,
127
371
  variant: g
128
- } = a, f = {
129
- root: ["root", `size${T(p)}`, g, u, e !== "standard" && `color${T(e)}`, e !== "standard" && `${g}${T(e)}`, n && "disabled", c && "selected", {
372
+ } = e, c = {
373
+ root: ["root", `size${O(l)}`, g, u, n !== "standard" && `color${O(n)}`, n !== "standard" && `${g}${O(n)}`, a && "disabled", i && "selected", {
130
374
  page: "page",
131
375
  first: "firstLast",
132
376
  last: "firstLast",
@@ -134,47 +378,47 @@ const v = S("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
134
378
  "end-ellipsis": "ellipsis",
135
379
  previous: "previousNext",
136
380
  next: "previousNext"
137
- }[r]],
381
+ }[s]],
138
382
  icon: ["icon"]
139
383
  };
140
- return q(f, ia, t);
141
- }, ca = A("div", {
384
+ return W(c, me, o);
385
+ }, $e = B("div", {
142
386
  name: "MuiPaginationItem",
143
387
  slot: "Root",
144
- overridesResolver: J
388
+ overridesResolver: Z
145
389
  })(({
146
- theme: a,
147
- ownerState: t
148
- }) => l({}, a.typography.body2, {
390
+ theme: e,
391
+ ownerState: o
392
+ }) => f({}, e.typography.body2, {
149
393
  borderRadius: 32 / 2,
150
394
  textAlign: "center",
151
395
  boxSizing: "border-box",
152
396
  minWidth: 32,
153
397
  padding: "0 6px",
154
398
  margin: "0 3px",
155
- color: (a.vars || a).palette.text.primary,
399
+ color: (e.vars || e).palette.text.primary,
156
400
  height: "auto",
157
- [`&.${v.disabled}`]: {
158
- opacity: (a.vars || a).palette.action.disabledOpacity
401
+ [`&.${$.disabled}`]: {
402
+ opacity: (e.vars || e).palette.action.disabledOpacity
159
403
  }
160
- }, t.size === "small" && {
404
+ }, o.size === "small" && {
161
405
  minWidth: 26,
162
406
  borderRadius: 26 / 2,
163
407
  margin: "0 1px",
164
408
  padding: "0 4px"
165
- }, t.size === "large" && {
409
+ }, o.size === "large" && {
166
410
  minWidth: 40,
167
411
  borderRadius: 40 / 2,
168
412
  padding: "0 10px",
169
- fontSize: a.typography.pxToRem(15)
170
- })), pa = A(oa, {
413
+ fontSize: e.typography.pxToRem(15)
414
+ })), Ce = B(ae, {
171
415
  name: "MuiPaginationItem",
172
416
  slot: "Root",
173
- overridesResolver: J
417
+ overridesResolver: Z
174
418
  })(({
175
- theme: a,
176
- ownerState: t
177
- }) => l({}, a.typography.body2, {
419
+ theme: e,
420
+ ownerState: o
421
+ }) => f({}, e.typography.body2, {
178
422
  borderRadius: 32 / 2,
179
423
  textAlign: "center",
180
424
  boxSizing: "border-box",
@@ -182,169 +426,169 @@ const v = S("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
182
426
  height: 32,
183
427
  padding: "0 6px",
184
428
  margin: "0 3px",
185
- color: (a.vars || a).palette.text.primary,
186
- [`&.${v.focusVisible}`]: {
187
- backgroundColor: (a.vars || a).palette.action.focus
429
+ color: (e.vars || e).palette.text.primary,
430
+ [`&.${$.focusVisible}`]: {
431
+ backgroundColor: (e.vars || e).palette.action.focus
188
432
  },
189
- [`&.${v.disabled}`]: {
190
- opacity: (a.vars || a).palette.action.disabledOpacity
433
+ [`&.${$.disabled}`]: {
434
+ opacity: (e.vars || e).palette.action.disabledOpacity
191
435
  },
192
- transition: a.transitions.create(["color", "background-color"], {
193
- duration: a.transitions.duration.short
436
+ transition: e.transitions.create(["color", "background-color"], {
437
+ duration: e.transitions.duration.short
194
438
  }),
195
439
  "&:hover": {
196
- backgroundColor: (a.vars || a).palette.action.hover,
440
+ backgroundColor: (e.vars || e).palette.action.hover,
197
441
  // Reset on touch devices, it doesn't add specificity
198
442
  "@media (hover: none)": {
199
443
  backgroundColor: "transparent"
200
444
  }
201
445
  },
202
- [`&.${v.selected}`]: {
203
- backgroundColor: (a.vars || a).palette.action.selected,
446
+ [`&.${$.selected}`]: {
447
+ backgroundColor: (e.vars || e).palette.action.selected,
204
448
  "&:hover": {
205
- backgroundColor: a.vars ? `rgba(${a.vars.palette.action.selectedChannel} / calc(${a.vars.palette.action.selectedOpacity} + ${a.vars.palette.action.hoverOpacity}))` : B(a.palette.action.selected, a.palette.action.selectedOpacity + a.palette.action.hoverOpacity),
449
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : S(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
206
450
  // Reset on touch devices, it doesn't add specificity
207
451
  "@media (hover: none)": {
208
- backgroundColor: (a.vars || a).palette.action.selected
452
+ backgroundColor: (e.vars || e).palette.action.selected
209
453
  }
210
454
  },
211
- [`&.${v.focusVisible}`]: {
212
- backgroundColor: a.vars ? `rgba(${a.vars.palette.action.selectedChannel} / calc(${a.vars.palette.action.selectedOpacity} + ${a.vars.palette.action.focusOpacity}))` : B(a.palette.action.selected, a.palette.action.selectedOpacity + a.palette.action.focusOpacity)
455
+ [`&.${$.focusVisible}`]: {
456
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : S(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
213
457
  },
214
- [`&.${v.disabled}`]: {
458
+ [`&.${$.disabled}`]: {
215
459
  opacity: 1,
216
- color: (a.vars || a).palette.action.disabled,
217
- backgroundColor: (a.vars || a).palette.action.selected
460
+ color: (e.vars || e).palette.action.disabled,
461
+ backgroundColor: (e.vars || e).palette.action.selected
218
462
  }
219
463
  }
220
- }, t.size === "small" && {
464
+ }, o.size === "small" && {
221
465
  minWidth: 26,
222
466
  height: 26,
223
467
  borderRadius: 26 / 2,
224
468
  margin: "0 1px",
225
469
  padding: "0 4px"
226
- }, t.size === "large" && {
470
+ }, o.size === "large" && {
227
471
  minWidth: 40,
228
472
  height: 40,
229
473
  borderRadius: 40 / 2,
230
474
  padding: "0 10px",
231
- fontSize: a.typography.pxToRem(15)
232
- }, t.shape === "rounded" && {
233
- borderRadius: (a.vars || a).shape.borderRadius
475
+ fontSize: e.typography.pxToRem(15)
476
+ }, o.shape === "rounded" && {
477
+ borderRadius: (e.vars || e).shape.borderRadius
234
478
  }), ({
235
- theme: a,
236
- ownerState: t
237
- }) => l({}, t.variant === "text" && {
238
- [`&.${v.selected}`]: l({}, t.color !== "standard" && {
239
- color: (a.vars || a).palette[t.color].contrastText,
240
- backgroundColor: (a.vars || a).palette[t.color].main,
479
+ theme: e,
480
+ ownerState: o
481
+ }) => f({}, o.variant === "text" && {
482
+ [`&.${$.selected}`]: f({}, o.color !== "standard" && {
483
+ color: (e.vars || e).palette[o.color].contrastText,
484
+ backgroundColor: (e.vars || e).palette[o.color].main,
241
485
  "&:hover": {
242
- backgroundColor: (a.vars || a).palette[t.color].dark,
486
+ backgroundColor: (e.vars || e).palette[o.color].dark,
243
487
  // Reset on touch devices, it doesn't add specificity
244
488
  "@media (hover: none)": {
245
- backgroundColor: (a.vars || a).palette[t.color].main
489
+ backgroundColor: (e.vars || e).palette[o.color].main
246
490
  }
247
491
  },
248
- [`&.${v.focusVisible}`]: {
249
- backgroundColor: (a.vars || a).palette[t.color].dark
492
+ [`&.${$.focusVisible}`]: {
493
+ backgroundColor: (e.vars || e).palette[o.color].dark
250
494
  }
251
495
  }, {
252
- [`&.${v.disabled}`]: {
253
- color: (a.vars || a).palette.action.disabled
496
+ [`&.${$.disabled}`]: {
497
+ color: (e.vars || e).palette.action.disabled
254
498
  }
255
499
  })
256
- }, t.variant === "outlined" && {
257
- border: a.vars ? `1px solid rgba(${a.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${a.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
258
- [`&.${v.selected}`]: l({}, t.color !== "standard" && {
259
- color: (a.vars || a).palette[t.color].main,
260
- border: `1px solid ${a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / 0.5)` : B(a.palette[t.color].main, 0.5)}`,
261
- backgroundColor: a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / ${a.vars.palette.action.activatedOpacity})` : B(a.palette[t.color].main, a.palette.action.activatedOpacity),
500
+ }, o.variant === "outlined" && {
501
+ 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)"}`,
502
+ [`&.${$.selected}`]: f({}, o.color !== "standard" && {
503
+ color: (e.vars || e).palette[o.color].main,
504
+ border: `1px solid ${e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / 0.5)` : S(e.palette[o.color].main, 0.5)}`,
505
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})` : S(e.palette[o.color].main, e.palette.action.activatedOpacity),
262
506
  "&:hover": {
263
- backgroundColor: a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / calc(${a.vars.palette.action.activatedOpacity} + ${a.vars.palette.action.focusOpacity}))` : B(a.palette[t.color].main, a.palette.action.activatedOpacity + a.palette.action.focusOpacity),
507
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` : S(e.palette[o.color].main, e.palette.action.activatedOpacity + e.palette.action.focusOpacity),
264
508
  // Reset on touch devices, it doesn't add specificity
265
509
  "@media (hover: none)": {
266
510
  backgroundColor: "transparent"
267
511
  }
268
512
  },
269
- [`&.${v.focusVisible}`]: {
270
- backgroundColor: a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / calc(${a.vars.palette.action.activatedOpacity} + ${a.vars.palette.action.focusOpacity}))` : B(a.palette[t.color].main, a.palette.action.activatedOpacity + a.palette.action.focusOpacity)
513
+ [`&.${$.focusVisible}`]: {
514
+ backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` : S(e.palette[o.color].main, e.palette.action.activatedOpacity + e.palette.action.focusOpacity)
271
515
  }
272
516
  }, {
273
- [`&.${v.disabled}`]: {
274
- borderColor: (a.vars || a).palette.action.disabledBackground,
275
- color: (a.vars || a).palette.action.disabled
517
+ [`&.${$.disabled}`]: {
518
+ borderColor: (e.vars || e).palette.action.disabledBackground,
519
+ color: (e.vars || e).palette.action.disabled
276
520
  }
277
521
  })
278
- })), da = A("div", {
522
+ })), Oe = B("div", {
279
523
  name: "MuiPaginationItem",
280
524
  slot: "Icon",
281
- overridesResolver: (a, t) => t.icon
525
+ overridesResolver: (e, o) => o.icon
282
526
  })(({
283
- theme: a,
284
- ownerState: t
285
- }) => l({
286
- fontSize: a.typography.pxToRem(20),
527
+ theme: e,
528
+ ownerState: o
529
+ }) => f({
530
+ fontSize: e.typography.pxToRem(20),
287
531
  margin: "0 -8px"
288
- }, t.size === "small" && {
289
- fontSize: a.typography.pxToRem(18)
290
- }, t.size === "large" && {
291
- fontSize: a.typography.pxToRem(22)
292
- })), j = /* @__PURE__ */ D.forwardRef(function(t, e) {
293
- const n = w({
294
- props: t,
532
+ }, o.size === "small" && {
533
+ fontSize: e.typography.pxToRem(18)
534
+ }, o.size === "large" && {
535
+ fontSize: e.typography.pxToRem(22)
536
+ })), G = /* @__PURE__ */ m.forwardRef(function(o, n) {
537
+ const a = F({
538
+ props: o,
295
539
  name: "MuiPaginationItem"
296
540
  }), {
297
- className: c,
298
- color: p = "standard",
541
+ className: i,
542
+ color: l = "standard",
299
543
  component: u,
300
- components: r = {},
544
+ components: s = {},
301
545
  disabled: g = !1,
302
- page: f,
303
- selected: C = !1,
304
- shape: I = "circular",
305
- size: P = "medium",
546
+ page: c,
547
+ selected: y = !1,
548
+ shape: x = "circular",
549
+ size: v = "medium",
306
550
  slots: d = {},
307
- type: i = "page",
308
- variant: k = "text"
309
- } = n, N = _(n, ra), y = l({}, n, {
310
- color: p,
551
+ type: r = "page",
552
+ variant: P = "text"
553
+ } = a, N = w(a, xe), h = f({}, a, {
554
+ color: l,
311
555
  disabled: g,
312
- selected: C,
313
- shape: I,
314
- size: P,
315
- type: i,
316
- variant: k
317
- }), z = aa(), x = la(y), $ = (z ? {
318
- previous: d.next || r.next || E,
319
- next: d.previous || r.previous || V,
320
- last: d.first || r.first || F,
321
- first: d.last || r.last || U
556
+ selected: y,
557
+ shape: x,
558
+ size: v,
559
+ type: r,
560
+ variant: P
561
+ }), R = de(), C = he(h), T = (R ? {
562
+ previous: d.next || s.next || K,
563
+ next: d.previous || s.previous || J,
564
+ last: d.first || s.first || q,
565
+ first: d.last || s.last || H
322
566
  } : {
323
- previous: d.previous || r.previous || V,
324
- next: d.next || r.next || E,
325
- first: d.first || r.first || F,
326
- last: d.last || r.last || U
327
- })[i];
328
- return i === "start-ellipsis" || i === "end-ellipsis" ? /* @__PURE__ */ b(ca, {
329
- ref: e,
330
- ownerState: y,
331
- className: W(x.root, c),
567
+ previous: d.previous || s.previous || J,
568
+ next: d.next || s.next || K,
569
+ first: d.first || s.first || q,
570
+ last: d.last || s.last || H
571
+ })[r];
572
+ return r === "start-ellipsis" || r === "end-ellipsis" ? /* @__PURE__ */ b($e, {
573
+ ref: n,
574
+ ownerState: h,
575
+ className: V(C.root, i),
332
576
  children: "…"
333
- }) : /* @__PURE__ */ Y(pa, l({
334
- ref: e,
335
- ownerState: y,
577
+ }) : /* @__PURE__ */ Q(Ce, f({
578
+ ref: n,
579
+ ownerState: h,
336
580
  component: u,
337
581
  disabled: g,
338
- className: W(x.root, c)
582
+ className: V(C.root, i)
339
583
  }, N, {
340
- children: [i === "page" && f, $ ? /* @__PURE__ */ b(da, {
341
- as: $,
342
- ownerState: y,
343
- className: x.icon
584
+ children: [r === "page" && c, T ? /* @__PURE__ */ b(Oe, {
585
+ as: T,
586
+ ownerState: h,
587
+ className: C.icon
344
588
  }) : null]
345
589
  }));
346
590
  });
347
- process.env.NODE_ENV !== "production" && (j.propTypes = {
591
+ process.env.NODE_ENV !== "production" && (G.propTypes = {
348
592
  // ┌────────────────────────────── Warning ──────────────────────────────┐
349
593
  // │ These PropTypes are generated from the TypeScript type definitions. │
350
594
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -352,27 +596,27 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
352
596
  /**
353
597
  * @ignore
354
598
  */
355
- children: o.node,
599
+ children: t.node,
356
600
  /**
357
601
  * Override or extend the styles applied to the component.
358
602
  */
359
- classes: o.object,
603
+ classes: t.object,
360
604
  /**
361
605
  * @ignore
362
606
  */
363
- className: o.string,
607
+ className: t.string,
364
608
  /**
365
609
  * The active color.
366
610
  * It supports both default and custom theme colors, which can be added as shown in the
367
611
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
368
612
  * @default 'standard'
369
613
  */
370
- color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
614
+ color: t.oneOfType([t.oneOf(["primary", "secondary", "standard"]), t.string]),
371
615
  /**
372
616
  * The component used for the root node.
373
617
  * Either a string to use a HTML element or a component.
374
618
  */
375
- component: o.elementType,
619
+ component: t.elementType,
376
620
  /**
377
621
  * The components used for each slot inside.
378
622
  *
@@ -381,36 +625,36 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
381
625
  *
382
626
  * @default {}
383
627
  */
384
- components: o.shape({
385
- first: o.elementType,
386
- last: o.elementType,
387
- next: o.elementType,
388
- previous: o.elementType
628
+ components: t.shape({
629
+ first: t.elementType,
630
+ last: t.elementType,
631
+ next: t.elementType,
632
+ previous: t.elementType
389
633
  }),
390
634
  /**
391
635
  * If `true`, the component is disabled.
392
636
  * @default false
393
637
  */
394
- disabled: o.bool,
638
+ disabled: t.bool,
395
639
  /**
396
640
  * The current page number.
397
641
  */
398
- page: o.node,
642
+ page: t.node,
399
643
  /**
400
644
  * If `true` the pagination item is selected.
401
645
  * @default false
402
646
  */
403
- selected: o.bool,
647
+ selected: t.bool,
404
648
  /**
405
649
  * The shape of the pagination item.
406
650
  * @default 'circular'
407
651
  */
408
- shape: o.oneOf(["circular", "rounded"]),
652
+ shape: t.oneOf(["circular", "rounded"]),
409
653
  /**
410
654
  * The size of the component.
411
655
  * @default 'medium'
412
656
  */
413
- size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
657
+ size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
414
658
  /**
415
659
  * The components used for each slot inside.
416
660
  *
@@ -418,49 +662,49 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
418
662
  *
419
663
  * @default {}
420
664
  */
421
- slots: o.shape({
422
- first: o.elementType,
423
- last: o.elementType,
424
- next: o.elementType,
425
- previous: o.elementType
665
+ slots: t.shape({
666
+ first: t.elementType,
667
+ last: t.elementType,
668
+ next: t.elementType,
669
+ previous: t.elementType
426
670
  }),
427
671
  /**
428
672
  * The system prop that allows defining system overrides as well as additional CSS styles.
429
673
  */
430
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
674
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
431
675
  /**
432
676
  * The type of pagination item.
433
677
  * @default 'page'
434
678
  */
435
- type: o.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
679
+ type: t.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
436
680
  /**
437
681
  * The variant to use.
438
682
  * @default 'text'
439
683
  */
440
- variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
684
+ variant: t.oneOfType([t.oneOf(["outlined", "text"]), t.string])
441
685
  });
442
- const ua = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], ga = (a) => {
686
+ const Ne = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], Pe = (e) => {
443
687
  const {
444
- classes: t,
445
- variant: e
446
- } = a;
447
- return q({
448
- root: ["root", e],
688
+ classes: o,
689
+ variant: n
690
+ } = e;
691
+ return W({
692
+ root: ["root", n],
449
693
  ul: ["ul"]
450
- }, ea, t);
451
- }, fa = A("nav", {
694
+ }, ve, o);
695
+ }, ze = B("nav", {
452
696
  name: "MuiPagination",
453
697
  slot: "Root",
454
- overridesResolver: (a, t) => {
698
+ overridesResolver: (e, o) => {
455
699
  const {
456
- ownerState: e
457
- } = a;
458
- return [t.root, t[e.variant]];
700
+ ownerState: n
701
+ } = e;
702
+ return [o.root, o[n.variant]];
459
703
  }
460
- })({}), va = A("ul", {
704
+ })({}), Ie = B("ul", {
461
705
  name: "MuiPagination",
462
706
  slot: "Ul",
463
- overridesResolver: (a, t) => t.ul
707
+ overridesResolver: (e, o) => o.ul
464
708
  })({
465
709
  display: "flex",
466
710
  flexWrap: "wrap",
@@ -469,73 +713,73 @@ const ua = ["boundaryCount", "className", "color", "count", "defaultPage", "disa
469
713
  margin: 0,
470
714
  listStyle: "none"
471
715
  });
472
- function ba(a, t, e) {
473
- return a === "page" ? `${e ? "" : "Go to "}page ${t}` : `Go to ${a} page`;
716
+ function Te(e, o, n) {
717
+ return e === "page" ? `${n ? "" : "Go to "}page ${o}` : `Go to ${e} page`;
474
718
  }
475
- const K = /* @__PURE__ */ D.forwardRef(function(t, e) {
476
- const n = w({
477
- props: t,
719
+ const ee = /* @__PURE__ */ m.forwardRef(function(o, n) {
720
+ const a = F({
721
+ props: o,
478
722
  name: "MuiPagination"
479
723
  }), {
480
- boundaryCount: c = 1,
481
- className: p,
724
+ boundaryCount: i = 1,
725
+ className: l,
482
726
  color: u = "standard",
483
- count: r = 1,
727
+ count: s = 1,
484
728
  defaultPage: g = 1,
485
- disabled: f = !1,
486
- getItemAriaLabel: C = ba,
487
- hideNextButton: I = !1,
488
- hidePrevButton: P = !1,
489
- renderItem: d = (m) => /* @__PURE__ */ b(j, l({}, m)),
490
- shape: i = "circular",
491
- showFirstButton: k = !1,
729
+ disabled: c = !1,
730
+ getItemAriaLabel: y = Te,
731
+ hideNextButton: x = !1,
732
+ hidePrevButton: v = !1,
733
+ renderItem: d = (z) => /* @__PURE__ */ b(G, f({}, z)),
734
+ shape: r = "circular",
735
+ showFirstButton: P = !1,
492
736
  showLastButton: N = !1,
493
- siblingCount: y = 1,
494
- size: z = "medium",
495
- variant: x = "text"
496
- } = n, R = _(n, ua), {
497
- items: $
498
- } = sa(l({}, n, {
737
+ siblingCount: h = 1,
738
+ size: R = "medium",
739
+ variant: C = "text"
740
+ } = a, M = w(a, Ne), {
741
+ items: T
742
+ } = ye(f({}, a, {
499
743
  componentName: "Pagination"
500
- })), h = l({}, n, {
501
- boundaryCount: c,
744
+ })), _ = f({}, a, {
745
+ boundaryCount: i,
502
746
  color: u,
503
- count: r,
747
+ count: s,
504
748
  defaultPage: g,
505
- disabled: f,
506
- getItemAriaLabel: C,
507
- hideNextButton: I,
508
- hidePrevButton: P,
749
+ disabled: c,
750
+ getItemAriaLabel: y,
751
+ hideNextButton: x,
752
+ hidePrevButton: v,
509
753
  renderItem: d,
510
- shape: i,
511
- showFirstButton: k,
754
+ shape: r,
755
+ showFirstButton: P,
512
756
  showLastButton: N,
513
- siblingCount: y,
514
- size: z,
515
- variant: x
516
- }), L = ga(h);
517
- return /* @__PURE__ */ b(fa, l({
757
+ siblingCount: h,
758
+ size: R,
759
+ variant: C
760
+ }), k = Pe(_);
761
+ return /* @__PURE__ */ b(ze, f({
518
762
  "aria-label": "pagination navigation",
519
- className: W(L.root, p),
520
- ownerState: h,
521
- ref: e
522
- }, R, {
523
- children: /* @__PURE__ */ b(va, {
524
- className: L.ul,
525
- ownerState: h,
526
- children: $.map((m, s) => /* @__PURE__ */ b("li", {
527
- children: d(l({}, m, {
763
+ className: V(k.root, l),
764
+ ownerState: _,
765
+ ref: n
766
+ }, M, {
767
+ children: /* @__PURE__ */ b(Ie, {
768
+ className: k.ul,
769
+ ownerState: _,
770
+ children: T.map((z, p) => /* @__PURE__ */ b("li", {
771
+ children: d(f({}, z, {
528
772
  color: u,
529
- "aria-label": C(m.type, m.page, m.selected),
530
- shape: i,
531
- size: z,
532
- variant: x
773
+ "aria-label": y(z.type, z.page, z.selected),
774
+ shape: r,
775
+ size: R,
776
+ variant: C
533
777
  }))
534
- }, s))
778
+ }, p))
535
779
  })
536
780
  }));
537
781
  });
538
- process.env.NODE_ENV !== "production" && (K.propTypes = {
782
+ process.env.NODE_ENV !== "production" && (ee.propTypes = {
539
783
  // ┌────────────────────────────── Warning ──────────────────────────────┐
540
784
  // │ These PropTypes are generated from the TypeScript type definitions. │
541
785
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -544,37 +788,37 @@ process.env.NODE_ENV !== "production" && (K.propTypes = {
544
788
  * Number of always visible pages at the beginning and end.
545
789
  * @default 1
546
790
  */
547
- boundaryCount: M,
791
+ boundaryCount: L,
548
792
  /**
549
793
  * Override or extend the styles applied to the component.
550
794
  */
551
- classes: o.object,
795
+ classes: t.object,
552
796
  /**
553
797
  * @ignore
554
798
  */
555
- className: o.string,
799
+ className: t.string,
556
800
  /**
557
801
  * The active color.
558
802
  * It supports both default and custom theme colors, which can be added as shown in the
559
803
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
560
804
  * @default 'standard'
561
805
  */
562
- color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
806
+ color: t.oneOfType([t.oneOf(["primary", "secondary", "standard"]), t.string]),
563
807
  /**
564
808
  * The total number of pages.
565
809
  * @default 1
566
810
  */
567
- count: M,
811
+ count: L,
568
812
  /**
569
813
  * The page selected by default when the component is uncontrolled.
570
814
  * @default 1
571
815
  */
572
- defaultPage: M,
816
+ defaultPage: L,
573
817
  /**
574
818
  * If `true`, the component is disabled.
575
819
  * @default false
576
820
  */
577
- disabled: o.bool,
821
+ disabled: t.bool,
578
822
  /**
579
823
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
580
824
  * This is important for screen reader users.
@@ -585,99 +829,99 @@ process.env.NODE_ENV !== "production" && (K.propTypes = {
585
829
  * @param {bool} selected If true, the current page is selected.
586
830
  * @returns {string}
587
831
  */
588
- getItemAriaLabel: o.func,
832
+ getItemAriaLabel: t.func,
589
833
  /**
590
834
  * If `true`, hide the next-page button.
591
835
  * @default false
592
836
  */
593
- hideNextButton: o.bool,
837
+ hideNextButton: t.bool,
594
838
  /**
595
839
  * If `true`, hide the previous-page button.
596
840
  * @default false
597
841
  */
598
- hidePrevButton: o.bool,
842
+ hidePrevButton: t.bool,
599
843
  /**
600
844
  * Callback fired when the page is changed.
601
845
  *
602
846
  * @param {React.ChangeEvent<unknown>} event The event source of the callback.
603
847
  * @param {number} page The page selected.
604
848
  */
605
- onChange: o.func,
849
+ onChange: t.func,
606
850
  /**
607
851
  * The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
608
852
  */
609
- page: M,
853
+ page: L,
610
854
  /**
611
855
  * Render the item.
612
856
  * @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
613
857
  * @returns {ReactNode}
614
858
  * @default (item) => <PaginationItem {...item} />
615
859
  */
616
- renderItem: o.func,
860
+ renderItem: t.func,
617
861
  /**
618
862
  * The shape of the pagination items.
619
863
  * @default 'circular'
620
864
  */
621
- shape: o.oneOf(["circular", "rounded"]),
865
+ shape: t.oneOf(["circular", "rounded"]),
622
866
  /**
623
867
  * If `true`, show the first-page button.
624
868
  * @default false
625
869
  */
626
- showFirstButton: o.bool,
870
+ showFirstButton: t.bool,
627
871
  /**
628
872
  * If `true`, show the last-page button.
629
873
  * @default false
630
874
  */
631
- showLastButton: o.bool,
875
+ showLastButton: t.bool,
632
876
  /**
633
877
  * Number of always visible pages before and after the current page.
634
878
  * @default 1
635
879
  */
636
- siblingCount: M,
880
+ siblingCount: L,
637
881
  /**
638
882
  * The size of the component.
639
883
  * @default 'medium'
640
884
  */
641
- size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
885
+ size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
642
886
  /**
643
887
  * The system prop that allows defining system overrides as well as additional CSS styles.
644
888
  */
645
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
889
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
646
890
  /**
647
891
  * The variant to use.
648
892
  * @default 'text'
649
893
  */
650
- variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
894
+ variant: t.oneOfType([t.oneOf(["outlined", "text"]), t.string])
651
895
  });
652
- function ya({
653
- isRtl: a,
654
- pageCount: t,
655
- arrowFirstIcon: e,
656
- arrowLastIcon: n,
657
- nextIcon: c,
658
- previousIcon: p,
896
+ function Re({
897
+ isRtl: e,
898
+ pageCount: o,
899
+ arrowFirstIcon: n,
900
+ arrowLastIcon: a,
901
+ nextIcon: i,
902
+ previousIcon: l,
659
903
  page: u,
660
- onPageChange: r,
904
+ onPageChange: s,
661
905
  className: g
662
906
  }) {
663
907
  return /* @__PURE__ */ b(
664
- K,
908
+ ee,
665
909
  {
666
910
  showFirstButton: !0,
667
911
  showLastButton: !0,
668
912
  className: g,
669
- count: t,
913
+ count: o,
670
914
  page: u + 1,
671
- onChange: (f, C) => {
672
- r(f, C - 1);
915
+ onChange: (c, y) => {
916
+ s(c, y - 1);
673
917
  },
674
918
  boundaryCount: 0,
675
919
  siblingCount: 1,
676
- renderItem: (f) => /* @__PURE__ */ b(
677
- j,
920
+ renderItem: (c) => /* @__PURE__ */ b(
921
+ G,
678
922
  {
679
- slots: { previous: a ? c : p, next: a ? p : c, first: a ? n : e, last: a ? e : n },
680
- ...f
923
+ slots: { previous: e ? i : l, next: e ? l : i, first: e ? a : n, last: e ? n : a },
924
+ ...c
681
925
  }
682
926
  ),
683
927
  sx: {
@@ -696,9 +940,9 @@ function ya({
696
940
  }
697
941
  );
698
942
  }
699
- function Na({ isRtl: a, pageCount: t, arrowFirstIcon: e, arrowLastIcon: n, nextIcon: c, previousIcon: p }) {
700
- return /* @__PURE__ */ b(ta, { ActionsComponent: (u) => /* @__PURE__ */ b(ya, { isRtl: a, pageCount: t, arrowFirstIcon: e, arrowLastIcon: n, nextIcon: c, previousIcon: p, ...u }) });
943
+ function Ve({ isRtl: e, pageCount: o, arrowFirstIcon: n, arrowLastIcon: a, nextIcon: i, previousIcon: l }) {
944
+ return /* @__PURE__ */ b(ne, { ActionsComponent: (u) => /* @__PURE__ */ b(Re, { isRtl: e, pageCount: o, arrowFirstIcon: n, arrowLastIcon: a, nextIcon: i, previousIcon: l, ...u }) });
701
945
  }
702
946
  export {
703
- Na as CustomPagination
947
+ Ve as CustomPagination
704
948
  };