@amateescu/portal-ui-components 0.0.32-beta1 → 0.0.33

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,83 +1,83 @@
1
- import { jsx as l, jsxs as ot } from "react/jsx-runtime";
2
- import * as d from "react";
1
+ import { jsx as s, jsxs as ot } from "react/jsx-runtime";
2
+ import * as p from "react";
3
3
  import { GridPagination as nt } from "@mui/x-data-grid";
4
4
  import { g as Q, a as X, u as Y, s as R, c as A, b as T, d as Z, m as F, i as S, e as _, P as e } from "../../createSimplePaletteValueFilter-evt-Xthj.js";
5
- import { u as st, a as rt, b as j, i as B } from "../../useSlot-Baxtq84W.js";
5
+ import { u as rt, a as st, b as j, i as B } from "../../useSlot-Baxtq84W.js";
6
6
  import { c as E } from "../../createSvgIcon-CgFXfzFk.js";
7
7
  import { B as it } from "../../ButtonBase-DUKuDCWw.js";
8
- const H = (t) => /* @__PURE__ */ d.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ d.createElement("path", { id: "vector", d: "M17.5 5L10.5 12L17.5 19M7.5 5L7.5 19", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), q = (t) => /* @__PURE__ */ d.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ d.createElement("path", { id: "vector", d: "M7.5 4.99998L14.5 12L7.5 19M17.5 4.99998L17.5 19", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), J = (t) => /* @__PURE__ */ d.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), K = (t) => /* @__PURE__ */ d.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
8
+ const H = (t) => /* @__PURE__ */ p.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ p.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ p.createElement("path", { id: "vector", d: "M17.5 5L10.5 12L17.5 19M7.5 5L7.5 19", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), q = (t) => /* @__PURE__ */ p.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ p.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ p.createElement("path", { id: "vector", d: "M7.5 4.99998L14.5 12L7.5 19M17.5 4.99998L17.5 19", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), J = (t) => /* @__PURE__ */ p.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ p.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), K = (t) => /* @__PURE__ */ p.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ p.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
9
9
  function lt(t) {
10
10
  return Q("MuiPagination", t);
11
11
  }
12
12
  X("MuiPagination", ["root", "ul", "outlined", "text"]);
13
- function pt(t = {}) {
13
+ function ct(t = {}) {
14
14
  const {
15
15
  boundaryCount: a = 1,
16
16
  componentName: o = "usePagination",
17
17
  count: n = 1,
18
- defaultPage: f = 1,
19
- disabled: x = !1,
20
- hideNextButton: p = !1,
21
- hidePrevButton: c = !1,
18
+ defaultPage: v = 1,
19
+ disabled: c = !1,
20
+ hideNextButton: f = !1,
21
+ hidePrevButton: y = !1,
22
22
  onChange: b,
23
23
  page: P,
24
- showFirstButton: $ = !1,
24
+ showFirstButton: L = !1,
25
25
  showLastButton: z = !1,
26
26
  siblingCount: C = 1,
27
27
  ...w
28
- } = t, [u, g] = st({
28
+ } = t, [d, u] = rt({
29
29
  controlled: P,
30
- default: f,
30
+ default: v,
31
31
  name: o,
32
32
  state: "page"
33
- }), O = (s, r) => {
34
- P || g(r), b && b(s, r);
35
- }, h = (s, r) => {
36
- const I = r - s + 1;
33
+ }), O = (r, i) => {
34
+ P || u(i), b && b(r, i);
35
+ }, $ = (r, i) => {
36
+ const I = i - r + 1;
37
37
  return Array.from({
38
38
  length: I
39
- }, (V, W) => s + W);
40
- }, v = h(1, Math.min(a, n)), M = h(Math.max(n - a + 1, a + 1), n), m = Math.max(
39
+ }, (V, W) => r + W);
40
+ }, g = $(1, Math.min(a, n)), M = $(Math.max(n - a + 1, a + 1), n), m = Math.max(
41
41
  Math.min(
42
42
  // Natural start
43
- u - C,
43
+ d - C,
44
44
  // Lower boundary when page is high
45
45
  n - a - C * 2 - 1
46
46
  ),
47
47
  // Greater than startPages
48
48
  a + 2
49
- ), y = Math.min(
49
+ ), x = Math.min(
50
50
  Math.max(
51
51
  // Natural end
52
- u + C,
52
+ d + C,
53
53
  // Upper boundary when page is low
54
54
  a + C * 2 + 2
55
55
  ),
56
56
  // Less than endPages
57
57
  n - a - 1
58
58
  ), N = [
59
- ...$ ? ["first"] : [],
60
- ...c ? [] : ["previous"],
61
- ...v,
59
+ ...L ? ["first"] : [],
60
+ ...y ? [] : ["previous"],
61
+ ...g,
62
62
  // Start ellipsis
63
63
  // eslint-disable-next-line no-nested-ternary
64
64
  ...m > a + 2 ? ["start-ellipsis"] : a + 1 < n - a ? [a + 1] : [],
65
65
  // Sibling pages
66
- ...h(m, y),
66
+ ...$(m, x),
67
67
  // End ellipsis
68
68
  // eslint-disable-next-line no-nested-ternary
69
- ...y < n - a - 1 ? ["end-ellipsis"] : n - a > a ? [n - a] : [],
69
+ ...x < n - a - 1 ? ["end-ellipsis"] : n - a > a ? [n - a] : [],
70
70
  ...M,
71
- ...p ? [] : ["next"],
71
+ ...f ? [] : ["next"],
72
72
  ...z ? ["last"] : []
73
- ], L = (s) => {
74
- switch (s) {
73
+ ], h = (r) => {
74
+ switch (r) {
75
75
  case "first":
76
76
  return 1;
77
77
  case "previous":
78
- return u - 1;
78
+ return d - 1;
79
79
  case "next":
80
- return u + 1;
80
+ return d + 1;
81
81
  case "last":
82
82
  return n;
83
83
  default:
@@ -85,37 +85,37 @@ function pt(t = {}) {
85
85
  }
86
86
  };
87
87
  return {
88
- items: N.map((s) => typeof s == "number" ? {
89
- onClick: (r) => {
90
- O(r, s);
88
+ items: N.map((r) => typeof r == "number" ? {
89
+ onClick: (i) => {
90
+ O(i, r);
91
91
  },
92
92
  type: "page",
93
- page: s,
94
- selected: s === u,
95
- disabled: x,
96
- "aria-current": s === u ? "page" : void 0
93
+ page: r,
94
+ selected: r === d,
95
+ disabled: c,
96
+ "aria-current": r === d ? "page" : void 0
97
97
  } : {
98
- onClick: (r) => {
99
- O(r, L(s));
98
+ onClick: (i) => {
99
+ O(i, h(r));
100
100
  },
101
- type: s,
102
- page: L(s),
101
+ type: r,
102
+ page: h(r),
103
103
  selected: !1,
104
- disabled: x || !s.includes("ellipsis") && (s === "next" || s === "last" ? u >= n : u <= 1)
104
+ disabled: c || !r.includes("ellipsis") && (r === "next" || r === "last" ? d >= n : d <= 1)
105
105
  }),
106
106
  ...w
107
107
  };
108
108
  }
109
- function ct(t) {
109
+ function pt(t) {
110
110
  return Q("MuiPaginationItem", t);
111
111
  }
112
- const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), dt = E(/* @__PURE__ */ l("path", {
112
+ const l = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), dt = E(/* @__PURE__ */ s("path", {
113
113
  d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
114
- }), "FirstPage"), ut = E(/* @__PURE__ */ l("path", {
114
+ }), "FirstPage"), ut = E(/* @__PURE__ */ s("path", {
115
115
  d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
116
- }), "LastPage"), gt = E(/* @__PURE__ */ l("path", {
116
+ }), "LastPage"), gt = E(/* @__PURE__ */ s("path", {
117
117
  d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
118
- }), "NavigateBefore"), vt = E(/* @__PURE__ */ l("path", {
118
+ }), "NavigateBefore"), vt = E(/* @__PURE__ */ s("path", {
119
119
  d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
120
120
  }), "NavigateNext"), tt = (t, a) => {
121
121
  const {
@@ -127,13 +127,13 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
127
127
  classes: a,
128
128
  color: o,
129
129
  disabled: n,
130
- selected: f,
131
- size: x,
132
- shape: p,
133
- type: c,
130
+ selected: v,
131
+ size: c,
132
+ shape: f,
133
+ type: y,
134
134
  variant: b
135
135
  } = t, P = {
136
- root: ["root", `size${T(x)}`, b, p, o !== "standard" && `color${T(o)}`, o !== "standard" && `${b}${T(o)}`, n && "disabled", f && "selected", {
136
+ root: ["root", `size${T(c)}`, b, f, o !== "standard" && `color${T(o)}`, o !== "standard" && `${b}${T(o)}`, n && "disabled", v && "selected", {
137
137
  page: "page",
138
138
  first: "firstLast",
139
139
  last: "firstLast",
@@ -141,11 +141,11 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
141
141
  "end-ellipsis": "ellipsis",
142
142
  previous: "previousNext",
143
143
  next: "previousNext"
144
- }[c]],
144
+ }[y]],
145
145
  icon: ["icon"]
146
146
  };
147
- return Z(P, ct, a);
148
- }, bt = R("div", {
147
+ return Z(P, pt, a);
148
+ }, yt = R("div", {
149
149
  name: "MuiPaginationItem",
150
150
  slot: "Root",
151
151
  overridesResolver: tt
@@ -161,7 +161,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
161
161
  margin: "0 3px",
162
162
  color: (t.vars || t).palette.text.primary,
163
163
  height: "auto",
164
- [`&.${i.disabled}`]: {
164
+ [`&.${l.disabled}`]: {
165
165
  opacity: (t.vars || t).palette.action.disabledOpacity
166
166
  },
167
167
  variants: [{
@@ -185,7 +185,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
185
185
  fontSize: t.typography.pxToRem(15)
186
186
  }
187
187
  }]
188
- }))), yt = R(it, {
188
+ }))), bt = R(it, {
189
189
  name: "MuiPaginationItem",
190
190
  slot: "Root",
191
191
  overridesResolver: tt
@@ -201,10 +201,10 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
201
201
  padding: "0 6px",
202
202
  margin: "0 3px",
203
203
  color: (t.vars || t).palette.text.primary,
204
- [`&.${i.focusVisible}`]: {
204
+ [`&.${l.focusVisible}`]: {
205
205
  backgroundColor: (t.vars || t).palette.action.focus
206
206
  },
207
- [`&.${i.disabled}`]: {
207
+ [`&.${l.disabled}`]: {
208
208
  opacity: (t.vars || t).palette.action.disabledOpacity
209
209
  },
210
210
  transition: t.transitions.create(["color", "background-color"], {
@@ -217,7 +217,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
217
217
  backgroundColor: "transparent"
218
218
  }
219
219
  },
220
- [`&.${i.selected}`]: {
220
+ [`&.${l.selected}`]: {
221
221
  backgroundColor: (t.vars || t).palette.action.selected,
222
222
  "&:hover": {
223
223
  backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : S(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
@@ -226,10 +226,10 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
226
226
  backgroundColor: (t.vars || t).palette.action.selected
227
227
  }
228
228
  },
229
- [`&.${i.focusVisible}`]: {
229
+ [`&.${l.focusVisible}`]: {
230
230
  backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
231
231
  },
232
- [`&.${i.disabled}`]: {
232
+ [`&.${l.disabled}`]: {
233
233
  opacity: 1,
234
234
  color: (t.vars || t).palette.action.disabled,
235
235
  backgroundColor: (t.vars || t).palette.action.selected
@@ -270,8 +270,8 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
270
270
  },
271
271
  style: {
272
272
  border: t.vars ? `1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
273
- [`&.${i.selected}`]: {
274
- [`&.${i.disabled}`]: {
273
+ [`&.${l.selected}`]: {
274
+ [`&.${l.disabled}`]: {
275
275
  borderColor: (t.vars || t).palette.action.disabledBackground,
276
276
  color: (t.vars || t).palette.action.disabled
277
277
  }
@@ -282,8 +282,8 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
282
282
  variant: "text"
283
283
  },
284
284
  style: {
285
- [`&.${i.selected}`]: {
286
- [`&.${i.disabled}`]: {
285
+ [`&.${l.selected}`]: {
286
+ [`&.${l.disabled}`]: {
287
287
  color: (t.vars || t).palette.action.disabled
288
288
  }
289
289
  }
@@ -294,7 +294,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
294
294
  color: a
295
295
  },
296
296
  style: {
297
- [`&.${i.selected}`]: {
297
+ [`&.${l.selected}`]: {
298
298
  color: (t.vars || t).palette[a].contrastText,
299
299
  backgroundColor: (t.vars || t).palette[a].main,
300
300
  "&:hover": {
@@ -304,10 +304,10 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
304
304
  backgroundColor: (t.vars || t).palette[a].main
305
305
  }
306
306
  },
307
- [`&.${i.focusVisible}`]: {
307
+ [`&.${l.focusVisible}`]: {
308
308
  backgroundColor: (t.vars || t).palette[a].dark
309
309
  },
310
- [`&.${i.disabled}`]: {
310
+ [`&.${l.disabled}`]: {
311
311
  color: (t.vars || t).palette.action.disabled
312
312
  }
313
313
  }
@@ -318,7 +318,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
318
318
  color: a
319
319
  },
320
320
  style: {
321
- [`&.${i.selected}`]: {
321
+ [`&.${l.selected}`]: {
322
322
  color: (t.vars || t).palette[a].main,
323
323
  border: `1px solid ${t.vars ? `rgba(${t.vars.palette[a].mainChannel} / 0.5)` : S(t.palette[a].main, 0.5)}`,
324
324
  backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.activatedOpacity})` : S(t.palette[a].main, t.palette.action.activatedOpacity),
@@ -329,7 +329,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
329
329
  backgroundColor: "transparent"
330
330
  }
331
331
  },
332
- [`&.${i.focusVisible}`]: {
332
+ [`&.${l.focusVisible}`]: {
333
333
  backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette[a].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity)
334
334
  }
335
335
  }
@@ -358,87 +358,87 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
358
358
  fontSize: t.typography.pxToRem(22)
359
359
  }
360
360
  }]
361
- }))), U = /* @__PURE__ */ d.forwardRef(function(a, o) {
361
+ }))), U = /* @__PURE__ */ p.forwardRef(function(a, o) {
362
362
  const n = Y({
363
363
  props: a,
364
364
  name: "MuiPaginationItem"
365
365
  }), {
366
- className: f,
367
- color: x = "standard",
368
- component: p,
369
- components: c = {},
366
+ className: v,
367
+ color: c = "standard",
368
+ component: f,
369
+ components: y = {},
370
370
  disabled: b = !1,
371
371
  page: P,
372
- selected: $ = !1,
372
+ selected: L = !1,
373
373
  shape: z = "circular",
374
374
  size: C = "medium",
375
375
  slots: w = {},
376
- slotProps: u = {},
377
- type: g = "page",
376
+ slotProps: d = {},
377
+ type: u = "page",
378
378
  variant: O = "text",
379
- ...h
380
- } = n, v = {
379
+ ...$
380
+ } = n, g = {
381
381
  ...n,
382
- color: x,
382
+ color: c,
383
383
  disabled: b,
384
- selected: $,
384
+ selected: L,
385
385
  shape: z,
386
386
  size: C,
387
- type: g,
387
+ type: u,
388
388
  variant: O
389
- }, M = rt(), m = ft(v), y = {
389
+ }, M = st(), m = ft(g), x = {
390
390
  slots: {
391
- previous: w.previous ?? c.previous,
392
- next: w.next ?? c.next,
393
- first: w.first ?? c.first,
394
- last: w.last ?? c.last
391
+ previous: w.previous ?? y.previous,
392
+ next: w.next ?? y.next,
393
+ first: w.first ?? y.first,
394
+ last: w.last ?? y.last
395
395
  },
396
- slotProps: u
397
- }, [N, L] = j("previous", {
396
+ slotProps: d
397
+ }, [N, h] = j("previous", {
398
398
  elementType: gt,
399
- externalForwardedProps: y,
400
- ownerState: v
401
- }), [k, s] = j("next", {
399
+ externalForwardedProps: x,
400
+ ownerState: g
401
+ }), [k, r] = j("next", {
402
402
  elementType: vt,
403
- externalForwardedProps: y,
404
- ownerState: v
405
- }), [r, I] = j("first", {
403
+ externalForwardedProps: x,
404
+ ownerState: g
405
+ }), [i, I] = j("first", {
406
406
  elementType: dt,
407
- externalForwardedProps: y,
408
- ownerState: v
407
+ externalForwardedProps: x,
408
+ ownerState: g
409
409
  }), [V, W] = j("last", {
410
410
  elementType: ut,
411
- externalForwardedProps: y,
412
- ownerState: v
411
+ externalForwardedProps: x,
412
+ ownerState: g
413
413
  }), D = M ? {
414
414
  previous: "next",
415
415
  next: "previous",
416
416
  first: "last",
417
417
  last: "first"
418
- }[g] : g, G = {
418
+ }[u] : u, G = {
419
419
  previous: N,
420
420
  next: k,
421
- first: r,
421
+ first: i,
422
422
  last: V
423
423
  }[D], at = {
424
- previous: L,
425
- next: s,
424
+ previous: h,
425
+ next: r,
426
426
  first: I,
427
427
  last: W
428
428
  }[D];
429
- return g === "start-ellipsis" || g === "end-ellipsis" ? /* @__PURE__ */ l(bt, {
429
+ return u === "start-ellipsis" || u === "end-ellipsis" ? /* @__PURE__ */ s(yt, {
430
430
  ref: o,
431
- ownerState: v,
432
- className: A(m.root, f),
431
+ ownerState: g,
432
+ className: A(m.root, v),
433
433
  children: "…"
434
- }) : /* @__PURE__ */ ot(yt, {
434
+ }) : /* @__PURE__ */ ot(bt, {
435
435
  ref: o,
436
- ownerState: v,
437
- component: p,
436
+ ownerState: g,
437
+ component: f,
438
438
  disabled: b,
439
- className: A(m.root, f),
440
- ...h,
441
- children: [g === "page" && P, G ? /* @__PURE__ */ l(xt, {
439
+ className: A(m.root, v),
440
+ ...$,
441
+ children: [u === "page" && P, G ? /* @__PURE__ */ s(xt, {
442
442
  ...at,
443
443
  className: m.icon,
444
444
  as: G
@@ -580,72 +580,72 @@ const mt = (t) => {
580
580
  function wt(t, a, o) {
581
581
  return t === "page" ? `${o ? "" : "Go to "}page ${a}` : `Go to ${t} page`;
582
582
  }
583
- const et = /* @__PURE__ */ d.forwardRef(function(a, o) {
583
+ const et = /* @__PURE__ */ p.forwardRef(function(a, o) {
584
584
  const n = Y({
585
585
  props: a,
586
586
  name: "MuiPagination"
587
587
  }), {
588
- boundaryCount: f = 1,
589
- className: x,
590
- color: p = "standard",
591
- count: c = 1,
588
+ boundaryCount: v = 1,
589
+ className: c,
590
+ color: f = "standard",
591
+ count: y = 1,
592
592
  defaultPage: b = 1,
593
593
  disabled: P = !1,
594
- getItemAriaLabel: $ = wt,
594
+ getItemAriaLabel: L = wt,
595
595
  hideNextButton: z = !1,
596
596
  hidePrevButton: C = !1,
597
597
  onChange: w,
598
- page: u,
599
- renderItem: g = (r) => /* @__PURE__ */ l(U, {
600
- ...r
598
+ page: d,
599
+ renderItem: u = (i) => /* @__PURE__ */ s(U, {
600
+ ...i
601
601
  }),
602
602
  shape: O = "circular",
603
- showFirstButton: h = !1,
604
- showLastButton: v = !1,
603
+ showFirstButton: $ = !1,
604
+ showLastButton: g = !1,
605
605
  siblingCount: M = 1,
606
606
  size: m = "medium",
607
- variant: y = "text",
607
+ variant: x = "text",
608
608
  ...N
609
609
  } = n, {
610
- items: L
611
- } = pt({
610
+ items: h
611
+ } = ct({
612
612
  ...n,
613
613
  componentName: "Pagination"
614
614
  }), k = {
615
615
  ...n,
616
- boundaryCount: f,
617
- color: p,
618
- count: c,
616
+ boundaryCount: v,
617
+ color: f,
618
+ count: y,
619
619
  defaultPage: b,
620
620
  disabled: P,
621
- getItemAriaLabel: $,
621
+ getItemAriaLabel: L,
622
622
  hideNextButton: z,
623
623
  hidePrevButton: C,
624
- renderItem: g,
624
+ renderItem: u,
625
625
  shape: O,
626
- showFirstButton: h,
627
- showLastButton: v,
626
+ showFirstButton: $,
627
+ showLastButton: g,
628
628
  siblingCount: M,
629
629
  size: m,
630
- variant: y
631
- }, s = mt(k);
632
- return /* @__PURE__ */ l(Pt, {
630
+ variant: x
631
+ }, r = mt(k);
632
+ return /* @__PURE__ */ s(Pt, {
633
633
  "aria-label": "pagination navigation",
634
- className: A(s.root, x),
634
+ className: A(r.root, c),
635
635
  ownerState: k,
636
636
  ref: o,
637
637
  ...N,
638
- children: /* @__PURE__ */ l(Ct, {
639
- className: s.ul,
638
+ children: /* @__PURE__ */ s(Ct, {
639
+ className: r.ul,
640
640
  ownerState: k,
641
- children: L.map((r, I) => /* @__PURE__ */ l("li", {
642
- children: g({
643
- ...r,
644
- color: p,
645
- "aria-label": $(r.type, r.page, r.selected),
641
+ children: h.map((i, I) => /* @__PURE__ */ s("li", {
642
+ children: u({
643
+ ...i,
644
+ color: f,
645
+ "aria-label": L(i.type, i.page, i.selected),
646
646
  shape: O,
647
647
  size: m,
648
- variant: y
648
+ variant: x
649
649
  })
650
650
  }, I))
651
651
  })
@@ -770,26 +770,31 @@ function Ot({
770
770
  pageCount: a,
771
771
  page: o,
772
772
  onPageChange: n,
773
- className: f
773
+ className: v
774
774
  }) {
775
- return localStorage.getItem("theme") === "portal-theme" ? import("../../portal-theme-BarSJQdA.js") : import("../../theme-94RKb7HE.js"), /* @__PURE__ */ l(
775
+ return /* @__PURE__ */ s(
776
776
  et,
777
777
  {
778
778
  showFirstButton: !0,
779
779
  showLastButton: !0,
780
- className: f,
780
+ className: v,
781
781
  count: a,
782
782
  page: o + 1,
783
- onChange: (p, c) => {
784
- n(p, c - 1);
783
+ onChange: (c, f) => {
784
+ n(c, f - 1);
785
785
  },
786
786
  boundaryCount: 0,
787
787
  siblingCount: 1,
788
- renderItem: (p) => /* @__PURE__ */ l(
788
+ renderItem: (c) => /* @__PURE__ */ s(
789
789
  U,
790
790
  {
791
- slots: { previous: t ? J : K, next: t ? K : J, first: t ? q : H, last: t ? H : q },
792
- ...p
791
+ slots: {
792
+ previous: () => t ? /* @__PURE__ */ s(J, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(K, { color: "var(--color-primary)" }),
793
+ next: () => t ? /* @__PURE__ */ s(K, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(J, { color: "var(--color-primary)" }),
794
+ first: () => t ? /* @__PURE__ */ s(q, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(H, { color: "var(--color-primary)" }),
795
+ last: () => t ? /* @__PURE__ */ s(H, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(q, { color: "var(--color-primary)" })
796
+ },
797
+ ...c
793
798
  }
794
799
  ),
795
800
  sx: {
@@ -809,7 +814,7 @@ function Ot({
809
814
  );
810
815
  }
811
816
  function zt({ isRtl: t, pageCount: a }) {
812
- return /* @__PURE__ */ l(nt, { ActionsComponent: (o) => /* @__PURE__ */ l(Ot, { isRtl: t, pageCount: a, ...o }) });
817
+ return /* @__PURE__ */ s(nt, { ActionsComponent: (o) => /* @__PURE__ */ s(Ot, { isRtl: t, pageCount: a, ...o }) });
813
818
  }
814
819
  export {
815
820
  zt as CustomPagination,
@@ -1,23 +1,22 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { useState as i } from "react";
3
- import { M as m } from "../../index-Dz00OoV7.js";
4
- import '../../assets/ErrorModal.css';const p = "_flexRowCenter_1wx1z_85", x = "_text18_1wx1z_99", d = "_content_1wx1z_103", t = {
5
- flexRowCenter: p,
2
+ import { useState as h } from "react";
3
+ import { M as p } from "../../index-Dz00OoV7.js";
4
+ import '../../assets/ErrorModal.css';const d = "_flexRowCenter_ufgj5_1", x = "_text18_ufgj5_15", f = "_content_ufgj5_19", t = {
5
+ flexRowCenter: d,
6
6
  text18: x,
7
- content: d
8
- }, _ = ({ error: o, resetErrorBoundary: n, title: r, tryAgain: l, cancel: c }) => {
9
- localStorage.getItem("theme") === "portal-theme" ? import("../../portal-theme-BarSJQdA.js") : import("../../theme-94RKb7HE.js");
10
- const [s, a] = i(!0), h = () => {
7
+ content: f
8
+ }, C = ({ error: o, resetErrorBoundary: n, title: r, tryAgain: l, cancel: c }) => {
9
+ const [s, a] = h(!0), i = () => {
11
10
  a(!1);
12
11
  };
13
12
  return /* @__PURE__ */ e(
14
- m,
13
+ p,
15
14
  {
16
15
  title: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("p", { className: t.text18, children: r }) }),
17
16
  centered: !0,
18
17
  open: s,
19
18
  onOk: n,
20
- onCancel: h,
19
+ onCancel: i,
21
20
  closeIcon: !0,
22
21
  okText: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("span", { children: l }) }),
23
22
  okButtonProps: {
@@ -37,5 +36,5 @@ import '../../assets/ErrorModal.css';const p = "_flexRowCenter_1wx1z_85", x = "_
37
36
  );
38
37
  };
39
38
  export {
40
- _ as ErrorModal
39
+ C as ErrorModal
41
40
  };