codeforlife 2.9.2 → 2.10.1

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.
Files changed (84) hide show
  1. package/dist/Countdown-7-Mzftzr.cjs +2 -0
  2. package/dist/{Countdown-CTNMDtaU.cjs.map → Countdown-7-Mzftzr.cjs.map} +1 -1
  3. package/dist/{Countdown-D4s4yfhB.js → Countdown-ZA68a09m.js} +4 -4
  4. package/dist/{Countdown-D4s4yfhB.js.map → Countdown-ZA68a09m.js.map} +1 -1
  5. package/dist/{Image-D5jC9UoX.js → Image-KHEjEELP.js} +2 -2
  6. package/dist/{Image-D5jC9UoX.js.map → Image-KHEjEELP.js.map} +1 -1
  7. package/dist/{LinkButton-COnDB_KU.js → LinkButton-Do07PnhU.js} +4 -4
  8. package/dist/LinkButton-Do07PnhU.js.map +1 -0
  9. package/dist/LinkButton-cfljqSBx.cjs +2 -0
  10. package/dist/LinkButton-cfljqSBx.cjs.map +1 -0
  11. package/dist/Navigate-Cu8Ge031.cjs +2 -0
  12. package/dist/Navigate-Cu8Ge031.cjs.map +1 -0
  13. package/dist/{Navigate-Baeudg5V.js → Navigate-DC6ag0th.js} +4 -4
  14. package/dist/Navigate-DC6ag0th.js.map +1 -0
  15. package/dist/api/endpoints/index.es.js +2 -2
  16. package/dist/api/index.es.js +3 -3
  17. package/dist/{api-Cbyt3rw0.js → api-CYqNqtN9.js} +2 -2
  18. package/dist/{api-Cbyt3rw0.js.map → api-CYqNqtN9.js.map} +1 -1
  19. package/dist/auth-C_aSIrwD.cjs +2 -0
  20. package/dist/auth-C_aSIrwD.cjs.map +1 -0
  21. package/dist/{auth-C9qgLRQ4.js → auth-CvJ5Mh6y.js} +17 -17
  22. package/dist/auth-CvJ5Mh6y.js.map +1 -0
  23. package/dist/components/form/index.es.js +1 -1
  24. package/dist/components/index.cjs.js +1 -10
  25. package/dist/components/index.cjs.js.map +1 -1
  26. package/dist/components/index.es.js +179 -256
  27. package/dist/components/index.es.js.map +1 -1
  28. package/dist/components/page/index.cjs.js +1 -1
  29. package/dist/components/page/index.es.js +1 -1
  30. package/dist/components/router/Navigate.d.ts +1 -1
  31. package/dist/components/router/index.cjs.js +1 -1
  32. package/dist/components/router/index.es.js +2 -2
  33. package/dist/components/table/index.es.js +1 -1
  34. package/dist/features/index.cjs.js +1 -1
  35. package/dist/features/index.cjs.js.map +1 -1
  36. package/dist/features/index.es.js +7 -7
  37. package/dist/hooks/index.cjs.js +1 -1
  38. package/dist/hooks/index.es.js +1 -1
  39. package/dist/hooks/router.d.ts +1 -1
  40. package/dist/{index-2W--_sNE.js → index-B3cd2A-G.js} +2 -2
  41. package/dist/{index-2W--_sNE.js.map → index-B3cd2A-G.js.map} +1 -1
  42. package/dist/{index-CkM7p7f8.js → index-Brh3Kbv6.js} +2 -2
  43. package/dist/{index-CkM7p7f8.js.map → index-Brh3Kbv6.js.map} +1 -1
  44. package/dist/{index-DALohJdb.js → index-DlQc68Q4.js} +6 -6
  45. package/dist/index-DlQc68Q4.js.map +1 -0
  46. package/dist/index-DsVpb45W.cjs +2 -0
  47. package/dist/index-DsVpb45W.cjs.map +1 -0
  48. package/dist/{index-Dqp7dpn3.js → index-DuVBQMst.js} +5 -5
  49. package/dist/{index-Dqp7dpn3.js.map → index-DuVBQMst.js.map} +1 -1
  50. package/dist/{jsx-runtime-Dpn_P65e.js → jsx-runtime-XvoU0p7t.js} +57 -57
  51. package/dist/{jsx-runtime-Dpn_P65e.js.map → jsx-runtime-XvoU0p7t.js.map} +1 -1
  52. package/dist/{schemas-DlOtf2vf.js → schemas-CDXuSjyI.js} +2 -2
  53. package/dist/{schemas-DlOtf2vf.js.map → schemas-CDXuSjyI.js.map} +1 -1
  54. package/dist/server.cjs.js +3 -3
  55. package/dist/server.cjs.js.map +1 -1
  56. package/dist/server.d.ts +12 -1
  57. package/dist/server.es.js +84 -56
  58. package/dist/server.es.js.map +1 -1
  59. package/dist/theme/components/index.es.js +1 -1
  60. package/dist/theme/index.es.js +2 -2
  61. package/dist/{urls-DtHr1d3H.js → urls-BY-za1bX.js} +2 -2
  62. package/dist/{urls-DtHr1d3H.js.map → urls-BY-za1bX.js.map} +1 -1
  63. package/dist/utils/api.es.js +2 -2
  64. package/dist/utils/router.cjs.js +1 -1
  65. package/dist/utils/router.cjs.js.map +1 -1
  66. package/dist/utils/router.d.ts +1 -1
  67. package/dist/utils/router.es.js +3 -3
  68. package/dist/utils/router.es.js.map +1 -1
  69. package/dist/utils/test.es.js +1 -1
  70. package/dist/utils/theme.es.js +2 -2
  71. package/package.json +8 -5
  72. package/dist/Countdown-CTNMDtaU.cjs +0 -2
  73. package/dist/LinkButton-C9y6XyQV.cjs +0 -2
  74. package/dist/LinkButton-C9y6XyQV.cjs.map +0 -1
  75. package/dist/LinkButton-COnDB_KU.js.map +0 -1
  76. package/dist/Navigate-Baeudg5V.js.map +0 -1
  77. package/dist/Navigate-D8_ubqaT.cjs +0 -2
  78. package/dist/Navigate-D8_ubqaT.cjs.map +0 -1
  79. package/dist/auth-C9qgLRQ4.js.map +0 -1
  80. package/dist/auth-DjC4nR_8.cjs +0 -2
  81. package/dist/auth-DjC4nR_8.cjs.map +0 -1
  82. package/dist/index-CiWln8tI.cjs +0 -2
  83. package/dist/index-CiWln8tI.cjs.map +0 -1
  84. package/dist/index-DALohJdb.js.map +0 -1
@@ -1,383 +1,306 @@
1
- import { i as Me } from "../index-Dqp7dpn3.js";
2
- import { i as Ne } from "../index-DALohJdb.js";
3
- import { L as Ae, a as Fe, b as De, c as Ge, N as He } from "../Navigate-Baeudg5V.js";
4
- import { L as Je } from "../LinkButton-COnDB_KU.js";
5
- import { i as Ve } from "../index-2W--_sNE.js";
6
- import { j as o } from "../jsx-runtime-Dpn_P65e.js";
7
- import { parsePath as U, Router as $, createPath as k, BrowserRouter as M, Routes as _ } from "react-router-dom";
8
- import { ThemeProvider as N, CssBaseline as Y, Tooltip as A, IconButton as F, Button as E, useScrollTrigger as D, AppBar as G, Container as H, Toolbar as z, List as J, Unstable_Grid2 as b, Link as P, Stack as V, TablePagination as q, Box as X } from "@mui/material";
9
- import * as K from "react";
10
- import R, { useEffect as S, cloneElement as Q } from "react";
11
- import { Provider as W } from "react-redux";
12
- import { C as Xe } from "../Countdown-D4s4yfhB.js";
13
- import { f as Z } from "../auth-C9qgLRQ4.js";
14
- import { wrap as I } from "../utils/general.es.js";
15
- import { ContentCopy as ee, Download as te } from "@mui/icons-material";
16
- import { I as Qe } from "../Image-D5jC9UoX.js";
17
- import { h as re } from "../api-Cbyt3rw0.js";
18
- import { S as Ze } from "../api-Cbyt3rw0.js";
19
- import { u as oe } from "../api-Cs4Y-WeI.js";
20
- /**
21
- * @remix-run/router v1.23.0
22
- *
23
- * Copyright (c) Remix Software Inc.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE.md file in the root directory of this source tree.
27
- *
28
- * @license MIT
29
- */
30
- var v;
31
- (function(e) {
32
- e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
33
- })(v || (v = {}));
34
- var T;
35
- (function(e) {
36
- e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
37
- })(T || (T = {}));
38
- const O = ["post", "put", "patch", "delete"];
39
- new Set(O);
40
- const se = ["get", ...O];
41
- new Set(se);
42
- function ne({
43
- basename: e,
44
- children: r,
45
- location: t = "/",
46
- future: a
47
- }) {
48
- typeof t == "string" && (t = U(t));
49
- let s = v.Pop, n = {
50
- pathname: t.pathname || "/",
51
- search: t.search || "",
52
- hash: t.hash || "",
53
- state: t.state != null ? t.state : null,
54
- key: t.key || "default"
55
- }, i = ae();
56
- return /* @__PURE__ */ K.createElement($, {
57
- basename: e,
58
- children: r,
59
- location: n,
60
- navigationType: s,
61
- navigator: i,
62
- future: a,
63
- static: !0
64
- });
65
- }
66
- function ae() {
67
- return {
68
- createHref: ie,
69
- encodeLocation: ce,
70
- push(e) {
71
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
72
- },
73
- replace(e) {
74
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
75
- },
76
- go(e) {
77
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
78
- },
79
- back() {
80
- throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
81
- },
82
- forward() {
83
- throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
84
- }
85
- };
86
- }
87
- function ie(e) {
88
- return typeof e == "string" ? e : k(e);
89
- }
90
- function ce(e) {
91
- let r = typeof e == "string" ? e : k(e);
92
- r = r.replace(/ $/, "%20");
93
- let t = ue.test(r) ? new URL(r) : new URL(r, "http://localhost");
94
- return {
95
- pathname: t.pathname,
96
- search: t.search,
97
- hash: t.hash
98
- };
99
- }
100
- const ue = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, B = ({
1
+ import { i as Rt } from "../index-DuVBQMst.js";
2
+ import { i as kt } from "../index-DlQc68Q4.js";
3
+ import { L as Ot, a as bt, b as Ct, c as St, N as wt } from "../Navigate-DC6ag0th.js";
4
+ import { L as $t } from "../LinkButton-Do07PnhU.js";
5
+ import { i as Ut } from "../index-B3cd2A-G.js";
6
+ import { j as o } from "../jsx-runtime-XvoU0p7t.js";
7
+ import { StaticRouter as C, BrowserRouter as S, Routes as w } from "react-router";
8
+ import { ThemeProvider as E, CssBaseline as $, Tooltip as M, IconButton as U, Button as k, useScrollTrigger as F, AppBar as _, Container as A, Toolbar as D, List as N, Unstable_Grid2 as R, Link as G, Stack as V, TablePagination as Y, Box as H } from "@mui/material";
9
+ import T, { useEffect as B, cloneElement as P } from "react";
10
+ import { Provider as q } from "react-redux";
11
+ import { C as _t } from "../Countdown-ZA68a09m.js";
12
+ import { f as z } from "../auth-CvJ5Mh6y.js";
13
+ import { wrap as J } from "../utils/general.es.js";
14
+ import { ContentCopy as K, Download as Q } from "@mui/icons-material";
15
+ import { I as Dt } from "../Image-KHEjEELP.js";
16
+ import { h as W } from "../api-CYqNqtN9.js";
17
+ import { S as Gt } from "../api-CYqNqtN9.js";
18
+ import { u as X } from "../api-Cs4Y-WeI.js";
19
+ const O = ({
101
20
  path: e,
102
- routes: r,
21
+ routes: s,
103
22
  header: t = /* @__PURE__ */ o.jsx(o.Fragment, {}),
104
23
  // TODO: "header = <Header />"
105
- footer: a = /* @__PURE__ */ o.jsx(o.Fragment, {}),
24
+ footer: i = /* @__PURE__ */ o.jsx(o.Fragment, {}),
106
25
  // TODO: "footer = <Footer />"
107
- headerExcludePaths: s = [],
26
+ headerExcludePaths: r = [],
108
27
  footerExcludePaths: n = []
109
28
  }) => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
110
- !s.includes(e) && t,
111
- /* @__PURE__ */ o.jsx(_, { children: r }),
112
- !n.includes(e) && a
113
- ] }), le = (e) => {
114
- const { pathname: r } = Z();
115
- return /* @__PURE__ */ o.jsx(B, { path: r, ...e });
116
- }, ye = ({
29
+ !r.includes(e) && t,
30
+ /* @__PURE__ */ o.jsx(w, { children: s }),
31
+ !n.includes(e) && i
32
+ ] }), Z = (e) => {
33
+ const { pathname: s } = z();
34
+ return /* @__PURE__ */ o.jsx(O, { path: s, ...e });
35
+ }, lt = ({
117
36
  path: e,
118
- theme: r,
37
+ theme: s,
119
38
  store: t,
120
39
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
121
- maxIdleSeconds: a = 3600,
40
+ maxIdleSeconds: i = 3600,
122
41
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
123
- maxTotalSeconds: s = 3600,
42
+ maxTotalSeconds: r = 3600,
124
43
  ...n
125
- }) => /* @__PURE__ */ o.jsxs(N, { theme: r, children: [
126
- /* @__PURE__ */ o.jsx(Y, {}),
127
- /* @__PURE__ */ o.jsx(W, { store: t, children: typeof window > "u" ? /* @__PURE__ */ o.jsx(ne, { location: e, children: /* @__PURE__ */ o.jsx(B, { path: e, ...n }) }) : /* @__PURE__ */ o.jsx(M, { children: /* @__PURE__ */ o.jsx(le, { ...n }) }) })
128
- ] }), Le = ({
44
+ }) => /* @__PURE__ */ o.jsxs(E, { theme: s, children: [
45
+ /* @__PURE__ */ o.jsx($, {}),
46
+ /* @__PURE__ */ o.jsx(q, {
47
+ store: t,
48
+ // https://github.com/remix-run/react-router/tree/main/examples/ssr
49
+ children: e !== void 0 ? /* @__PURE__ */ o.jsx(C, { location: e, children: /* @__PURE__ */ o.jsx(O, { path: e, ...n }) }) : /* @__PURE__ */ o.jsx(S, { children: /* @__PURE__ */ o.jsx(Z, { ...n }) })
50
+ })
51
+ ] }), mt = ({
129
52
  open: e = !1,
130
- onClick: r,
53
+ onClick: s,
131
54
  ...t
132
55
  }) => {
133
- const [a, s] = R.useState(e);
134
- return R.useEffect(() => {
135
- s(e);
56
+ const [i, r] = T.useState(e);
57
+ return T.useEffect(() => {
58
+ r(e);
136
59
  }, [e]), /* @__PURE__ */ o.jsx(
137
- A,
60
+ M,
138
61
  {
139
- open: a,
62
+ open: i,
140
63
  onMouseOver: () => {
141
- a || s(!0);
64
+ i || r(!0);
142
65
  },
143
66
  onMouseLeave: () => {
144
- s(!1);
67
+ r(!1);
145
68
  },
146
- onClick: I(
69
+ onClick: J(
147
70
  {
148
71
  after: () => {
149
- s(!a);
72
+ r(!i);
150
73
  }
151
74
  },
152
- r
75
+ s
153
76
  ),
154
77
  ...t
155
78
  }
156
79
  );
157
- }, be = ({
80
+ }, ut = ({
158
81
  content: e,
159
- children: r = /* @__PURE__ */ o.jsx(ee, {}),
82
+ children: s = /* @__PURE__ */ o.jsx(K, {}),
160
83
  ...t
161
84
  }) => /* @__PURE__ */ o.jsx(
162
- F,
85
+ U,
163
86
  {
164
87
  "data-testid": "copy-icon-button",
165
88
  onClick: () => {
166
89
  navigator.clipboard.writeText(e);
167
90
  },
168
91
  ...t,
169
- children: r
92
+ children: s
170
93
  }
171
- ), Re = ({
94
+ ), ft = ({
172
95
  children: e = "Download",
173
- endIcon: r = /* @__PURE__ */ o.jsx(te, {}),
96
+ endIcon: s = /* @__PURE__ */ o.jsx(Q, {}),
174
97
  file: t,
175
- ...a
98
+ ...i
176
99
  }) => {
177
- let s, n;
100
+ let r, n;
178
101
  if ("mimeType" in t) {
179
- const { text: i, mimeType: l, name: c, charset: d = "utf-8" } = t;
180
- let { extension: f } = t;
181
- f || (f = "." + { plain: "txt", csv: "csv" }[l]), n = {
182
- download: c + f,
183
- href: `data:text/${l};charset=${d},${encodeURIComponent(i)}`
102
+ const { text: c, mimeType: m, name: a, charset: u = "utf-8" } = t;
103
+ let { extension: p } = t;
104
+ p || (p = "." + { plain: "txt", csv: "csv" }[m]), n = {
105
+ download: a + p,
106
+ href: `data:text/${m};charset=${u},${encodeURIComponent(c)}`
184
107
  };
185
108
  } else
186
- s = URL.createObjectURL(t), n = { href: s };
187
- return S(() => () => {
188
- s && URL.revokeObjectURL(s);
189
- }, [s]), /* @__PURE__ */ o.jsx(E, { endIcon: r, ...a, ...n, children: e });
190
- }, Te = ({
109
+ r = URL.createObjectURL(t), n = { href: r };
110
+ return B(() => () => {
111
+ r && URL.revokeObjectURL(r);
112
+ }, [r]), /* @__PURE__ */ o.jsx(k, { endIcon: s, ...i, ...n, children: e });
113
+ }, pt = ({
191
114
  containerProps: e,
192
- toolbarProps: r,
115
+ toolbarProps: s,
193
116
  elevation: t = 4,
194
- children: a,
195
- ...s
117
+ children: i,
118
+ ...r
196
119
  }) => {
197
- const n = D({
120
+ const n = F({
198
121
  disableHysteresis: !0,
199
122
  threshold: 0
200
123
  });
201
- return Q(
202
- /* @__PURE__ */ o.jsx(G, { elevation: t, ...s, children: /* @__PURE__ */ o.jsx(H, { ...e, children: /* @__PURE__ */ o.jsx(z, { ...r, children: a }) }) }),
124
+ return P(
125
+ /* @__PURE__ */ o.jsx(_, { elevation: t, ...r, children: /* @__PURE__ */ o.jsx(A, { ...e, children: /* @__PURE__ */ o.jsx(D, { ...s, children: i }) }) }),
203
126
  {
204
127
  position: n ? "fixed" : "sticky"
205
128
  }
206
129
  );
207
- }, ke = ({
130
+ }, dt = ({
208
131
  children: e,
209
- inputProps: r,
132
+ inputProps: s,
210
133
  ...t
211
- }) => /* @__PURE__ */ o.jsxs(E, { component: "label", ...t, children: [
134
+ }) => /* @__PURE__ */ o.jsxs(k, { component: "label", ...t, children: [
212
135
  e,
213
- /* @__PURE__ */ o.jsx("input", { type: "file", hidden: !0, ...r })
214
- ] }), Ee = ({
136
+ /* @__PURE__ */ o.jsx("input", { type: "file", hidden: !0, ...s })
137
+ ] }), xt = ({
215
138
  styleType: e,
216
- listProps: r = {},
139
+ listProps: s = {},
217
140
  pl: t = 4,
218
- children: a
141
+ children: i
219
142
  }) => {
220
- const { sx: s, ...n } = r, i = { display: "list-item" };
143
+ const { sx: r, ...n } = s, c = { display: "list-item" };
221
144
  return /* @__PURE__ */ o.jsx(
222
- J,
145
+ N,
223
146
  {
224
147
  sx: {
225
148
  listStyleType: e,
226
149
  pl: t,
227
- ".MuiListItem-root": i,
228
- ".MuiListItemText-root": i,
229
- ...s
150
+ ".MuiListItem-root": c,
151
+ ".MuiListItemText-root": c,
152
+ ...r
230
153
  },
231
154
  ...n,
232
- children: a
155
+ children: i
233
156
  }
234
157
  );
235
- }, Se = ({
158
+ }, jt = ({
236
159
  rows: e,
237
- containerProps: r = {},
160
+ containerProps: s = {},
238
161
  globalItemProps: t
239
162
  }) => {
240
- const a = Number(r.columns ?? 12), s = (l) => Math.floor(a / l), n = (l, c, d) => Math.floor(c / s(d)) * e.length + l, i = (l, c) => {
241
- const d = e[0].length % s(c);
242
- return d !== 0 && l === e[0].length - 1 ? (a - d * c) / 2 : 0;
163
+ const i = Number(s.columns ?? 12), r = (m) => Math.floor(i / m), n = (m, a, u) => Math.floor(a / r(u)) * e.length + m, c = (m, a) => {
164
+ const u = e[0].length % r(a);
165
+ return u !== 0 && m === e[0].length - 1 ? (i - u * a) / 2 : 0;
243
166
  };
244
- return /* @__PURE__ */ o.jsx(b, { container: !0, ...r, children: e.map(
245
- (l, c) => l.map(({ element: d, itemProps: f = {} }, u) => /* @__PURE__ */ o.jsx(
246
- b,
167
+ return /* @__PURE__ */ o.jsx(R, { container: !0, ...s, children: e.map(
168
+ (m, a) => m.map(({ element: u, itemProps: p = {} }, l) => /* @__PURE__ */ o.jsx(
169
+ R,
247
170
  {
248
171
  order: {
249
- xs: n(c, u, t.xs),
250
- sm: n(c, u, t.sm),
251
- md: n(c, u, t.md),
252
- lg: n(c, u, t.lg),
253
- xl: n(c, u, t.xl)
172
+ xs: n(a, l, t.xs),
173
+ sm: n(a, l, t.sm),
174
+ md: n(a, l, t.md),
175
+ lg: n(a, l, t.lg),
176
+ xl: n(a, l, t.xl)
254
177
  },
255
- xsOffset: i(u, t.xs),
256
- smOffset: i(u, t.sm),
257
- mdOffset: i(u, t.md),
258
- lgOffset: i(u, t.lg),
259
- xlOffset: i(u, t.xl),
178
+ xsOffset: c(l, t.xs),
179
+ smOffset: c(l, t.sm),
180
+ mdOffset: c(l, t.md),
181
+ lgOffset: c(l, t.lg),
182
+ xlOffset: c(l, t.xl),
260
183
  ...t,
261
- ...f,
262
- children: d
184
+ ...p,
185
+ children: u
263
186
  },
264
- `${c}-${u}`
187
+ `${a}-${l}`
265
188
  ))
266
189
  ) });
267
- }, Oe = ({
190
+ }, ht = ({
268
191
  elementId: e,
269
- options: r,
192
+ options: s,
270
193
  ...t
271
194
  }) => /* @__PURE__ */ o.jsx(
272
- P,
195
+ G,
273
196
  {
274
197
  ...t,
275
198
  onClick: () => {
276
- document.getElementById(e)?.scrollIntoView(r);
199
+ document.getElementById(e)?.scrollIntoView(s);
277
200
  }
278
201
  }
279
- ), Be = ({
202
+ ), gt = ({
280
203
  children: e,
281
- useLazyListQuery: r,
204
+ useLazyListQuery: s,
282
205
  preferCacheValue: t,
283
- filters: a,
284
- page: s = 0,
206
+ filters: i,
207
+ page: r = 0,
285
208
  rowsPerPage: n = 50,
286
- rowsPerPageOptions: i = [50, 100, 150],
287
- stackProps: l,
288
- onRowsPerPageChange: c,
289
- onPageChange: d,
290
- ...f
209
+ rowsPerPageOptions: c = [50, 100, 150],
210
+ stackProps: m,
211
+ onRowsPerPageChange: a,
212
+ onPageChange: u,
213
+ ...p
291
214
  }) => {
292
- const [u, w] = r(), [{ limit: h, page: j, offset: g }, y] = oe({
293
- page: s,
215
+ const [l, g] = s(), [{ limit: d, page: L, offset: j }, v] = X({
216
+ page: r,
294
217
  limit: n
295
218
  });
296
- S(
219
+ B(
297
220
  () => {
298
- u({ limit: h, offset: g, ...a }, t);
221
+ l({ limit: d, offset: j, ...i }, t);
299
222
  },
300
223
  // eslint-disable-next-line react-hooks/exhaustive-deps
301
224
  [
302
- u,
303
- h,
304
- g,
225
+ l,
226
+ d,
227
+ j,
305
228
  // eslint-disable-next-line react-hooks/exhaustive-deps,@typescript-eslint/no-unsafe-assignment
306
- ...Object.values(a || {}),
229
+ ...Object.values(i || {}),
307
230
  t
308
231
  ]
309
232
  );
310
- const { count: L, max_limit: x } = w.data || {};
311
- return x && (i = i.filter(
312
- (m) => m <= x
313
- )), /* @__PURE__ */ o.jsxs(V, { ...l, children: [
314
- re(
315
- w,
316
- ({ data: m }) => e(m, {
317
- limit: h,
318
- page: j,
319
- offset: g,
320
- count: L,
321
- maxLimit: x
233
+ const { count: y, max_limit: h } = g.data || {};
234
+ return h && (c = c.filter(
235
+ (f) => f <= h
236
+ )), /* @__PURE__ */ o.jsxs(V, { ...m, children: [
237
+ W(
238
+ g,
239
+ ({ data: f }) => e(f, {
240
+ limit: d,
241
+ page: L,
242
+ offset: j,
243
+ count: y,
244
+ maxLimit: h
322
245
  })
323
246
  ),
324
247
  /* @__PURE__ */ o.jsx(
325
- q,
248
+ Y,
326
249
  {
327
250
  component: "div",
328
- count: L ?? 0,
329
- rowsPerPage: h,
330
- onRowsPerPageChange: (m) => {
331
- y({ limit: parseInt(m.target.value), page: 0 }), c && c(m);
251
+ count: y ?? 0,
252
+ rowsPerPage: d,
253
+ onRowsPerPageChange: (f) => {
254
+ v({ limit: parseInt(f.target.value), page: 0 }), a && a(f);
332
255
  },
333
- page: j,
334
- onPageChange: (m, p) => {
335
- y(({ limit: C }) => ({ limit: C, page: p })), d && d(m, p);
256
+ page: L,
257
+ onPageChange: (f, x) => {
258
+ v(({ limit: b }) => ({ limit: b, page: x })), u && u(f, x);
336
259
  },
337
- rowsPerPageOptions: i.sort((m, p) => m - p),
338
- ...f
260
+ rowsPerPageOptions: c.sort((f, x) => f - x),
261
+ ...p
339
262
  }
340
263
  )
341
264
  ] });
342
- }, Ce = ({
265
+ }, Lt = ({
343
266
  src: e,
344
- style: r = {},
267
+ style: s = {},
345
268
  ...t
346
269
  }) => /* @__PURE__ */ o.jsx(
347
- X,
270
+ H,
348
271
  {
349
272
  component: "iframe",
350
273
  width: "100%",
351
274
  src: e,
352
275
  title: "YouTube video player",
353
276
  allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen",
354
- style: { border: "0px", aspectRatio: "16 / 9", ...r },
277
+ style: { border: "0px", aspectRatio: "16 / 9", ...s },
355
278
  ...t
356
279
  }
357
280
  );
358
281
  export {
359
- ye as App,
360
- Le as ClickableTooltip,
361
- be as CopyIconButton,
362
- Xe as Countdown,
363
- Re as DownloadFileButton,
364
- Te as ElevatedAppBar,
365
- Qe as Image,
366
- ke as InputFileButton,
367
- Ee as ItemizedList,
368
- Ae as Link,
369
- Je as LinkButton,
370
- Fe as LinkIconButton,
371
- De as LinkListItem,
372
- Ge as LinkTab,
373
- He as Navigate,
374
- Se as OrderedGrid,
375
- Oe as ScrollIntoViewLink,
376
- Ze as SyncError,
377
- Be as TablePagination,
378
- Ce as YouTubeVideo,
379
- Me as forms,
380
- Ne as pages,
381
- Ve as tables
282
+ lt as App,
283
+ mt as ClickableTooltip,
284
+ ut as CopyIconButton,
285
+ _t as Countdown,
286
+ ft as DownloadFileButton,
287
+ pt as ElevatedAppBar,
288
+ Dt as Image,
289
+ dt as InputFileButton,
290
+ xt as ItemizedList,
291
+ Ot as Link,
292
+ $t as LinkButton,
293
+ bt as LinkIconButton,
294
+ Ct as LinkListItem,
295
+ St as LinkTab,
296
+ wt as Navigate,
297
+ jt as OrderedGrid,
298
+ ht as ScrollIntoViewLink,
299
+ Gt as SyncError,
300
+ gt as TablePagination,
301
+ Lt as YouTubeVideo,
302
+ Rt as forms,
303
+ kt as pages,
304
+ Ut as tables
382
305
  };
383
306
  //# sourceMappingURL=index.es.js.map