codeforlife 2.9.1 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Countdown-7-Mzftzr.cjs +2 -0
- package/dist/{Countdown-zY3nMzmi.cjs.map → Countdown-7-Mzftzr.cjs.map} +1 -1
- package/dist/{Countdown-DFI1RljW.js → Countdown-ZA68a09m.js} +5 -5
- package/dist/{Countdown-DFI1RljW.js.map → Countdown-ZA68a09m.js.map} +1 -1
- package/dist/{Image-D5jC9UoX.js → Image-KHEjEELP.js} +2 -2
- package/dist/{Image-D5jC9UoX.js.map → Image-KHEjEELP.js.map} +1 -1
- package/dist/LinkButton-Do07PnhU.js +12 -0
- package/dist/LinkButton-Do07PnhU.js.map +1 -0
- package/dist/LinkButton-cfljqSBx.cjs +2 -0
- package/dist/LinkButton-cfljqSBx.cjs.map +1 -0
- package/dist/Navigate-Cu8Ge031.cjs +2 -0
- package/dist/Navigate-Cu8Ge031.cjs.map +1 -0
- package/dist/{Navigate-Dq47aqC8.js → Navigate-DC6ag0th.js} +5 -5
- package/dist/Navigate-DC6ag0th.js.map +1 -0
- package/dist/api/endpoints/index.es.js +2 -2
- package/dist/api/index.es.js +3 -3
- package/dist/{api-Cbyt3rw0.js → api-CYqNqtN9.js} +2 -2
- package/dist/{api-Cbyt3rw0.js.map → api-CYqNqtN9.js.map} +1 -1
- package/dist/auth-C_aSIrwD.cjs +2 -0
- package/dist/auth-C_aSIrwD.cjs.map +1 -0
- package/dist/{auth-BPfUPjmM.js → auth-CvJ5Mh6y.js} +18 -18
- package/dist/auth-CvJ5Mh6y.js.map +1 -0
- package/dist/components/form/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -10
- package/dist/components/index.cjs.js.map +1 -1
- package/dist/components/index.es.js +179 -256
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/page/index.cjs.js +1 -1
- package/dist/components/page/index.es.js +1 -1
- package/dist/components/router/Navigate.d.ts +1 -1
- package/dist/components/router/index.cjs.js +1 -1
- package/dist/components/router/index.es.js +2 -2
- package/dist/components/table/index.es.js +1 -1
- package/dist/features/index.cjs.js +1 -1
- package/dist/features/index.cjs.js.map +1 -1
- package/dist/features/index.es.js +8 -8
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +1 -1
- package/dist/hooks/router.d.ts +1 -1
- package/dist/{index-2W--_sNE.js → index-B3cd2A-G.js} +2 -2
- package/dist/{index-2W--_sNE.js.map → index-B3cd2A-G.js.map} +1 -1
- package/dist/{index-CNtOlJ49.js → index-Brh3Kbv6.js} +3 -3
- package/dist/{index-CNtOlJ49.js.map → index-Brh3Kbv6.js.map} +1 -1
- package/dist/{index-B_Zy_zwA.cjs → index-DZ7ETsOg.cjs} +2 -2
- package/dist/{index-B_Zy_zwA.cjs.map → index-DZ7ETsOg.cjs.map} +1 -1
- package/dist/{index-DkM_cG3a.js → index-DlQc68Q4.js} +7 -7
- package/dist/index-DlQc68Q4.js.map +1 -0
- package/dist/index-DsVpb45W.cjs +2 -0
- package/dist/index-DsVpb45W.cjs.map +1 -0
- package/dist/{index-Dqp7dpn3.js → index-DuVBQMst.js} +5 -5
- package/dist/{index-Dqp7dpn3.js.map → index-DuVBQMst.js.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -4
- package/dist/index.es.js.map +1 -1
- package/dist/{jsx-runtime-Dpn_P65e.js → jsx-runtime-XvoU0p7t.js} +57 -57
- package/dist/{jsx-runtime-Dpn_P65e.js.map → jsx-runtime-XvoU0p7t.js.map} +1 -1
- package/dist/palette-BnIdHKDE.cjs +2 -0
- package/dist/{palette-CE2mKYse.cjs.map → palette-BnIdHKDE.cjs.map} +1 -1
- package/dist/palette-CYwuLBW7.js +77 -0
- package/dist/{palette-C_L0akN_.js.map → palette-CYwuLBW7.js.map} +1 -1
- package/dist/{schemas-DlOtf2vf.js → schemas-CDXuSjyI.js} +2 -2
- package/dist/{schemas-DlOtf2vf.js.map → schemas-CDXuSjyI.js.map} +1 -1
- package/dist/server.cjs.js +3 -3
- package/dist/server.cjs.js.map +1 -1
- package/dist/server.d.ts +12 -1
- package/dist/server.es.js +84 -56
- package/dist/server.es.js.map +1 -1
- package/dist/theme/components/index.cjs.js +1 -1
- package/dist/theme/components/index.es.js +1 -1
- package/dist/theme/index.cjs.js +1 -1
- package/dist/theme/index.cjs.js.map +1 -1
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.es.js +27 -25
- package/dist/theme/index.es.js.map +1 -1
- package/dist/{urls-DtHr1d3H.js → urls-BY-za1bX.js} +2 -2
- package/dist/{urls-DtHr1d3H.js.map → urls-BY-za1bX.js.map} +1 -1
- package/dist/utils/api.es.js +2 -2
- package/dist/utils/router.cjs.js +1 -1
- package/dist/utils/router.cjs.js.map +1 -1
- package/dist/utils/router.d.ts +1 -1
- package/dist/utils/router.es.js +4 -4
- package/dist/utils/router.es.js.map +1 -1
- package/dist/utils/test.es.js +1 -1
- package/dist/utils/theme.cjs.js +1 -1
- package/dist/utils/theme.es.js +2 -2
- package/package.json +3 -3
- package/dist/Countdown-zY3nMzmi.cjs +0 -2
- package/dist/LinkButton-BYFkvL_O.cjs +0 -2
- package/dist/LinkButton-BYFkvL_O.cjs.map +0 -1
- package/dist/LinkButton-oK0RThqn.js +0 -12
- package/dist/LinkButton-oK0RThqn.js.map +0 -1
- package/dist/Navigate-Dq47aqC8.js.map +0 -1
- package/dist/Navigate-dQocLhzN.cjs +0 -2
- package/dist/Navigate-dQocLhzN.cjs.map +0 -1
- package/dist/auth-BPfUPjmM.js.map +0 -1
- package/dist/auth-Vf1MgMci.cjs +0 -2
- package/dist/auth-Vf1MgMci.cjs.map +0 -1
- package/dist/index-BgsynEGX.cjs +0 -2
- package/dist/index-BgsynEGX.cjs.map +0 -1
- package/dist/index-DkM_cG3a.js.map +0 -1
- package/dist/palette-CE2mKYse.cjs +0 -2
- package/dist/palette-C_L0akN_.js +0 -43
|
@@ -1,383 +1,306 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import { i as
|
|
3
|
-
import { L as
|
|
4
|
-
import { L as
|
|
5
|
-
import { i as
|
|
6
|
-
import { j as o } from "../jsx-runtime-
|
|
7
|
-
import {
|
|
8
|
-
import { ThemeProvider as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
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:
|
|
21
|
+
routes: s,
|
|
103
22
|
header: t = /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
104
23
|
// TODO: "header = <Header />"
|
|
105
|
-
footer:
|
|
24
|
+
footer: i = /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
106
25
|
// TODO: "footer = <Footer />"
|
|
107
|
-
headerExcludePaths:
|
|
26
|
+
headerExcludePaths: r = [],
|
|
108
27
|
footerExcludePaths: n = []
|
|
109
28
|
}) => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
110
|
-
!
|
|
111
|
-
/* @__PURE__ */ o.jsx(
|
|
112
|
-
!n.includes(e) &&
|
|
113
|
-
] }),
|
|
114
|
-
const { pathname:
|
|
115
|
-
return /* @__PURE__ */ o.jsx(
|
|
116
|
-
},
|
|
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:
|
|
37
|
+
theme: s,
|
|
119
38
|
store: t,
|
|
120
39
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
121
|
-
maxIdleSeconds:
|
|
40
|
+
maxIdleSeconds: i = 3600,
|
|
122
41
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
123
|
-
maxTotalSeconds:
|
|
42
|
+
maxTotalSeconds: r = 3600,
|
|
124
43
|
...n
|
|
125
|
-
}) => /* @__PURE__ */ o.jsxs(
|
|
126
|
-
/* @__PURE__ */ o.jsx(
|
|
127
|
-
/* @__PURE__ */ o.jsx(
|
|
128
|
-
|
|
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:
|
|
53
|
+
onClick: s,
|
|
131
54
|
...t
|
|
132
55
|
}) => {
|
|
133
|
-
const [
|
|
134
|
-
return
|
|
135
|
-
|
|
56
|
+
const [i, r] = T.useState(e);
|
|
57
|
+
return T.useEffect(() => {
|
|
58
|
+
r(e);
|
|
136
59
|
}, [e]), /* @__PURE__ */ o.jsx(
|
|
137
|
-
|
|
60
|
+
M,
|
|
138
61
|
{
|
|
139
|
-
open:
|
|
62
|
+
open: i,
|
|
140
63
|
onMouseOver: () => {
|
|
141
|
-
|
|
64
|
+
i || r(!0);
|
|
142
65
|
},
|
|
143
66
|
onMouseLeave: () => {
|
|
144
|
-
|
|
67
|
+
r(!1);
|
|
145
68
|
},
|
|
146
|
-
onClick:
|
|
69
|
+
onClick: J(
|
|
147
70
|
{
|
|
148
71
|
after: () => {
|
|
149
|
-
|
|
72
|
+
r(!i);
|
|
150
73
|
}
|
|
151
74
|
},
|
|
152
|
-
|
|
75
|
+
s
|
|
153
76
|
),
|
|
154
77
|
...t
|
|
155
78
|
}
|
|
156
79
|
);
|
|
157
|
-
},
|
|
80
|
+
}, ut = ({
|
|
158
81
|
content: e,
|
|
159
|
-
children:
|
|
82
|
+
children: s = /* @__PURE__ */ o.jsx(K, {}),
|
|
160
83
|
...t
|
|
161
84
|
}) => /* @__PURE__ */ o.jsx(
|
|
162
|
-
|
|
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:
|
|
92
|
+
children: s
|
|
170
93
|
}
|
|
171
|
-
),
|
|
94
|
+
), ft = ({
|
|
172
95
|
children: e = "Download",
|
|
173
|
-
endIcon:
|
|
96
|
+
endIcon: s = /* @__PURE__ */ o.jsx(Q, {}),
|
|
174
97
|
file: t,
|
|
175
|
-
...
|
|
98
|
+
...i
|
|
176
99
|
}) => {
|
|
177
|
-
let
|
|
100
|
+
let r, n;
|
|
178
101
|
if ("mimeType" in t) {
|
|
179
|
-
const { text:
|
|
180
|
-
let { extension:
|
|
181
|
-
|
|
182
|
-
download:
|
|
183
|
-
href: `data:text/${
|
|
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
|
-
|
|
187
|
-
return
|
|
188
|
-
|
|
189
|
-
}, [
|
|
190
|
-
},
|
|
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:
|
|
115
|
+
toolbarProps: s,
|
|
193
116
|
elevation: t = 4,
|
|
194
|
-
children:
|
|
195
|
-
...
|
|
117
|
+
children: i,
|
|
118
|
+
...r
|
|
196
119
|
}) => {
|
|
197
|
-
const n =
|
|
120
|
+
const n = F({
|
|
198
121
|
disableHysteresis: !0,
|
|
199
122
|
threshold: 0
|
|
200
123
|
});
|
|
201
|
-
return
|
|
202
|
-
/* @__PURE__ */ o.jsx(
|
|
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
|
-
},
|
|
130
|
+
}, dt = ({
|
|
208
131
|
children: e,
|
|
209
|
-
inputProps:
|
|
132
|
+
inputProps: s,
|
|
210
133
|
...t
|
|
211
|
-
}) => /* @__PURE__ */ o.jsxs(
|
|
134
|
+
}) => /* @__PURE__ */ o.jsxs(k, { component: "label", ...t, children: [
|
|
212
135
|
e,
|
|
213
|
-
/* @__PURE__ */ o.jsx("input", { type: "file", hidden: !0, ...
|
|
214
|
-
] }),
|
|
136
|
+
/* @__PURE__ */ o.jsx("input", { type: "file", hidden: !0, ...s })
|
|
137
|
+
] }), xt = ({
|
|
215
138
|
styleType: e,
|
|
216
|
-
listProps:
|
|
139
|
+
listProps: s = {},
|
|
217
140
|
pl: t = 4,
|
|
218
|
-
children:
|
|
141
|
+
children: i
|
|
219
142
|
}) => {
|
|
220
|
-
const { sx:
|
|
143
|
+
const { sx: r, ...n } = s, c = { display: "list-item" };
|
|
221
144
|
return /* @__PURE__ */ o.jsx(
|
|
222
|
-
|
|
145
|
+
N,
|
|
223
146
|
{
|
|
224
147
|
sx: {
|
|
225
148
|
listStyleType: e,
|
|
226
149
|
pl: t,
|
|
227
|
-
".MuiListItem-root":
|
|
228
|
-
".MuiListItemText-root":
|
|
229
|
-
...
|
|
150
|
+
".MuiListItem-root": c,
|
|
151
|
+
".MuiListItemText-root": c,
|
|
152
|
+
...r
|
|
230
153
|
},
|
|
231
154
|
...n,
|
|
232
|
-
children:
|
|
155
|
+
children: i
|
|
233
156
|
}
|
|
234
157
|
);
|
|
235
|
-
},
|
|
158
|
+
}, jt = ({
|
|
236
159
|
rows: e,
|
|
237
|
-
containerProps:
|
|
160
|
+
containerProps: s = {},
|
|
238
161
|
globalItemProps: t
|
|
239
162
|
}) => {
|
|
240
|
-
const
|
|
241
|
-
const
|
|
242
|
-
return
|
|
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(
|
|
245
|
-
(
|
|
246
|
-
|
|
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(
|
|
250
|
-
sm: n(
|
|
251
|
-
md: n(
|
|
252
|
-
lg: n(
|
|
253
|
-
xl: n(
|
|
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:
|
|
256
|
-
smOffset:
|
|
257
|
-
mdOffset:
|
|
258
|
-
lgOffset:
|
|
259
|
-
xlOffset:
|
|
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
|
-
...
|
|
262
|
-
children:
|
|
184
|
+
...p,
|
|
185
|
+
children: u
|
|
263
186
|
},
|
|
264
|
-
`${
|
|
187
|
+
`${a}-${l}`
|
|
265
188
|
))
|
|
266
189
|
) });
|
|
267
|
-
},
|
|
190
|
+
}, ht = ({
|
|
268
191
|
elementId: e,
|
|
269
|
-
options:
|
|
192
|
+
options: s,
|
|
270
193
|
...t
|
|
271
194
|
}) => /* @__PURE__ */ o.jsx(
|
|
272
|
-
|
|
195
|
+
G,
|
|
273
196
|
{
|
|
274
197
|
...t,
|
|
275
198
|
onClick: () => {
|
|
276
|
-
document.getElementById(e)?.scrollIntoView(
|
|
199
|
+
document.getElementById(e)?.scrollIntoView(s);
|
|
277
200
|
}
|
|
278
201
|
}
|
|
279
|
-
),
|
|
202
|
+
), gt = ({
|
|
280
203
|
children: e,
|
|
281
|
-
useLazyListQuery:
|
|
204
|
+
useLazyListQuery: s,
|
|
282
205
|
preferCacheValue: t,
|
|
283
|
-
filters:
|
|
284
|
-
page:
|
|
206
|
+
filters: i,
|
|
207
|
+
page: r = 0,
|
|
285
208
|
rowsPerPage: n = 50,
|
|
286
|
-
rowsPerPageOptions:
|
|
287
|
-
stackProps:
|
|
288
|
-
onRowsPerPageChange:
|
|
289
|
-
onPageChange:
|
|
290
|
-
...
|
|
209
|
+
rowsPerPageOptions: c = [50, 100, 150],
|
|
210
|
+
stackProps: m,
|
|
211
|
+
onRowsPerPageChange: a,
|
|
212
|
+
onPageChange: u,
|
|
213
|
+
...p
|
|
291
214
|
}) => {
|
|
292
|
-
const [
|
|
293
|
-
page:
|
|
215
|
+
const [l, g] = s(), [{ limit: d, page: L, offset: j }, v] = X({
|
|
216
|
+
page: r,
|
|
294
217
|
limit: n
|
|
295
218
|
});
|
|
296
|
-
|
|
219
|
+
B(
|
|
297
220
|
() => {
|
|
298
|
-
|
|
221
|
+
l({ limit: d, offset: j, ...i }, t);
|
|
299
222
|
},
|
|
300
223
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
301
224
|
[
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
225
|
+
l,
|
|
226
|
+
d,
|
|
227
|
+
j,
|
|
305
228
|
// eslint-disable-next-line react-hooks/exhaustive-deps,@typescript-eslint/no-unsafe-assignment
|
|
306
|
-
...Object.values(
|
|
229
|
+
...Object.values(i || {}),
|
|
307
230
|
t
|
|
308
231
|
]
|
|
309
232
|
);
|
|
310
|
-
const { count:
|
|
311
|
-
return
|
|
312
|
-
(
|
|
313
|
-
)), /* @__PURE__ */ o.jsxs(V, { ...
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
({ data:
|
|
317
|
-
limit:
|
|
318
|
-
page:
|
|
319
|
-
offset:
|
|
320
|
-
count:
|
|
321
|
-
maxLimit:
|
|
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
|
-
|
|
248
|
+
Y,
|
|
326
249
|
{
|
|
327
250
|
component: "div",
|
|
328
|
-
count:
|
|
329
|
-
rowsPerPage:
|
|
330
|
-
onRowsPerPageChange: (
|
|
331
|
-
|
|
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:
|
|
334
|
-
onPageChange: (
|
|
335
|
-
|
|
256
|
+
page: L,
|
|
257
|
+
onPageChange: (f, x) => {
|
|
258
|
+
v(({ limit: b }) => ({ limit: b, page: x })), u && u(f, x);
|
|
336
259
|
},
|
|
337
|
-
rowsPerPageOptions:
|
|
338
|
-
...
|
|
260
|
+
rowsPerPageOptions: c.sort((f, x) => f - x),
|
|
261
|
+
...p
|
|
339
262
|
}
|
|
340
263
|
)
|
|
341
264
|
] });
|
|
342
|
-
},
|
|
265
|
+
}, Lt = ({
|
|
343
266
|
src: e,
|
|
344
|
-
style:
|
|
267
|
+
style: s = {},
|
|
345
268
|
...t
|
|
346
269
|
}) => /* @__PURE__ */ o.jsx(
|
|
347
|
-
|
|
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", ...
|
|
277
|
+
style: { border: "0px", aspectRatio: "16 / 9", ...s },
|
|
355
278
|
...t
|
|
356
279
|
}
|
|
357
280
|
);
|
|
358
281
|
export {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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
|