codeforlife 2.10.5 → 2.10.6
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/components/App.d.ts +1 -1
- package/dist/components/OrderedGrid.d.ts +10 -8
- package/dist/components/form/DatePickerField.d.ts +3 -3
- package/dist/components/form/index.cjs.js +1 -1
- package/dist/components/form/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.cjs.js.map +1 -1
- package/dist/components/index.es.js +101 -99
- package/dist/components/index.es.js.map +1 -1
- package/dist/index-CI5O_yH6.js +1189 -0
- package/dist/index-CI5O_yH6.js.map +1 -0
- package/dist/index-CXYppxE3.cjs +2 -0
- package/dist/index-CXYppxE3.cjs.map +1 -0
- package/dist/{index-VverRavP.js → index-D8Gc0IWi.js} +31 -32
- package/dist/index-D8Gc0IWi.js.map +1 -0
- package/dist/index-DCI-3m7f.cjs +5 -0
- package/dist/index-DCI-3m7f.cjs.map +1 -0
- package/dist/theme/components/MuiGrid.d.ts +3 -0
- package/dist/theme/components/_components.d.ts +1 -5
- 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.es.js +1 -1
- package/dist/theme/typography.d.ts +2 -2
- package/dist/utils/theme.cjs.js +1 -1
- package/dist/utils/theme.es.js +1 -1
- package/package.json +6 -6
- package/dist/index-C-3iPCa4.js +0 -1111
- package/dist/index-C-3iPCa4.js.map +0 -1
- package/dist/index-CIj5ef8a.cjs +0 -5
- package/dist/index-CIj5ef8a.cjs.map +0 -1
- package/dist/index-VverRavP.js.map +0 -1
- package/dist/index-ifedknoZ.cjs +0 -2
- package/dist/index-ifedknoZ.cjs.map +0 -1
- package/dist/theme/components/MuiGrid2.d.ts +0 -3
package/dist/components/App.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX, ReactNode } from 'react';
|
|
2
2
|
import { ProviderProps } from 'react-redux';
|
|
3
3
|
import { Action } from 'redux';
|
|
4
|
-
import { ThemeProviderProps } from '@mui/material
|
|
4
|
+
import { ThemeProviderProps } from '@mui/material';
|
|
5
5
|
export interface AppProps<A extends Action = Action, S = unknown> {
|
|
6
6
|
path?: string;
|
|
7
7
|
theme: ThemeProviderProps["theme"];
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { FC, ReactElement } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
interface ItemProps extends Omit<
|
|
2
|
+
import { GridProps } from '@mui/material';
|
|
3
|
+
interface ItemProps extends Omit<GridProps, "key" | "order" | "size" | "offset"> {
|
|
4
4
|
}
|
|
5
5
|
interface GlobalItemProps extends ItemProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
size: {
|
|
7
|
+
xs: number;
|
|
8
|
+
sm: number;
|
|
9
|
+
md: number;
|
|
10
|
+
lg: number;
|
|
11
|
+
xl: number;
|
|
12
|
+
};
|
|
11
13
|
}
|
|
12
14
|
export interface OrderedGridProps {
|
|
13
15
|
rows: Array<Array<{
|
|
14
16
|
element: ReactElement;
|
|
15
17
|
itemProps?: ItemProps;
|
|
16
18
|
}>>;
|
|
17
|
-
containerProps?: Omit<
|
|
19
|
+
containerProps?: Omit<GridProps, "container">;
|
|
18
20
|
globalItemProps: GlobalItemProps;
|
|
19
21
|
}
|
|
20
22
|
declare const OrderedGrid: FC<OrderedGridProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DatePickerProps
|
|
1
|
+
import { DatePickerProps } from '@mui/x-date-pickers';
|
|
2
2
|
import { ValidateOptions } from 'yup';
|
|
3
3
|
import { JSX } from 'react';
|
|
4
|
-
export interface DatePickerFieldProps<
|
|
4
|
+
export interface DatePickerFieldProps<TEnableAccessibleFieldDOMStructure extends boolean = true> extends Omit<DatePickerProps<TEnableAccessibleFieldDOMStructure>, "name" | "value" | "onChange" | "slotProps"> {
|
|
5
5
|
name: string;
|
|
6
6
|
required?: boolean;
|
|
7
7
|
validateOptions?: ValidateOptions;
|
|
8
8
|
}
|
|
9
|
-
declare const DatePickerField: <
|
|
9
|
+
declare const DatePickerField: <TEnableAccessibleFieldDOMStructure extends boolean = false>({ name, required, minDate, maxDate, validateOptions, ...otherDatePickerProps }: DatePickerFieldProps<TEnableAccessibleFieldDOMStructure>) => JSX.Element;
|
|
10
10
|
export default DatePickerField;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../index-DCI-3m7f.cjs");exports.ApiAutocompleteField=e.ApiAutocompleteField;exports.AutocompleteField=e.AutocompleteField;exports.CheckboxField=e.CheckboxField;exports.CountryField=e.CountryField;exports.DatePickerField=e.DatePickerField;exports.EmailField=e.EmailField;exports.FirstNameField=e.FirstNameField;exports.Form=e.Form;exports.OtpField=e.OtpField;exports.PasswordField=e.PasswordField;exports.RepeatField=e.RepeatField;exports.SubmitButton=e.SubmitButton;exports.TextField=e.TextField;exports.UkCountyField=e.UkCountyField;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as i, a as s, C as l, b as t, D as F, E as d, F as o, c as m, O as r, P as p, R as u, S as c, T as A, U as C } from "../../index-
|
|
1
|
+
import { A as i, a as s, C as l, b as t, D as F, E as d, F as o, c as m, O as r, P as p, R as u, S as c, T as A, U as C } from "../../index-CI5O_yH6.js";
|
|
2
2
|
export {
|
|
3
3
|
i as ApiAutocompleteField,
|
|
4
4
|
s as AutocompleteField,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../index-DCI-3m7f.cjs"),S=require("../index-CBPn0wyX.cjs"),R=require("../Navigate-C_sgy8Xs.cjs"),z=require("../LinkButton-BOPjG7_2.cjs"),_=require("../index-B6aNVvMr.cjs"),s=require("../jsx-runtime-Dszzpdy0.cjs"),L=require("react-router"),u=require("@mui/material"),j=require("react"),O=require("react-redux"),M=require("../Countdown-CyJ-01oU.cjs"),F=require("../auth-B7Vdot4N.cjs"),A=require("../utils/general.cjs.js"),T=require("@mui/icons-material"),U=require("../Image-CgYjq-tA.cjs"),q=require("../api-CaeeoZaI.cjs"),$=require("../api-DIgp_6Vr.cjs"),b=({path:e,routes:n,header:t=s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{}),footer:r=s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{}),headerExcludePaths:o=[],footerExcludePaths:i=[]})=>s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[!o.includes(e)&&t,s.jsxRuntimeExports.jsx(L.Routes,{children:n}),!i.includes(e)&&r]}),D=e=>{const{pathname:n}=F.useLocation();return s.jsxRuntimeExports.jsx(b,{path:n,...e})},G=({path:e,theme:n,store:t,maxIdleSeconds:r=3600,maxTotalSeconds:o=3600,...i})=>s.jsxRuntimeExports.jsxs(u.ThemeProvider,{theme:n,children:[s.jsxRuntimeExports.jsx(u.CssBaseline,{}),s.jsxRuntimeExports.jsx(O.Provider,{store:t,children:e!==void 0?s.jsxRuntimeExports.jsx(L.StaticRouter,{location:e,children:s.jsxRuntimeExports.jsx(b,{path:e,...i})}):s.jsxRuntimeExports.jsx(L.BrowserRouter,{children:s.jsxRuntimeExports.jsx(D,{...i})})})]}),N=({open:e=!1,onClick:n,...t})=>{const[r,o]=j.useState(e);return j.useEffect(()=>{o(e)},[e]),s.jsxRuntimeExports.jsx(u.Tooltip,{open:r,onMouseOver:()=>{r||o(!0)},onMouseLeave:()=>{o(!1)},onClick:A.wrap({after:()=>{o(!r)}},n),...t})},V=({content:e,children:n=s.jsxRuntimeExports.jsx(T.ContentCopy,{}),...t})=>s.jsxRuntimeExports.jsx(u.IconButton,{"data-testid":"copy-icon-button",onClick:()=>{navigator.clipboard.writeText(e)},...t,children:n}),Y=({children:e="Download",endIcon:n=s.jsxRuntimeExports.jsx(T.Download,{}),file:t,...r})=>{let o,i;if("mimeType"in t){const{text:x,mimeType:l,name:c,charset:m="utf-8"}=t;let{extension:d}=t;d||(d="."+{plain:"txt",csv:"csv"}[l]),i={download:c+d,href:`data:text/${l};charset=${m},${encodeURIComponent(x)}`}}else o=URL.createObjectURL(t),i={href:o};return j.useEffect(()=>()=>{o&&URL.revokeObjectURL(o)},[o]),s.jsxRuntimeExports.jsx(u.Button,{endIcon:n,...r,...i,children:e})},P=({containerProps:e,toolbarProps:n,elevation:t=4,children:r,...o})=>{const i=u.useScrollTrigger({disableHysteresis:!0,threshold:0});return j.cloneElement(s.jsxRuntimeExports.jsx(u.AppBar,{elevation:t,...o,children:s.jsxRuntimeExports.jsx(u.Container,{...e,children:s.jsxRuntimeExports.jsx(u.Toolbar,{...n,children:r})})}),{position:i?"fixed":"sticky"})},H=({children:e,inputProps:n,...t})=>s.jsxRuntimeExports.jsxs(u.Button,{component:"label",...t,children:[e,s.jsxRuntimeExports.jsx("input",{type:"file",hidden:!0,...n})]}),I=({styleType:e,listProps:n={},pl:t=4,children:r})=>{const{sx:o,...i}=n,x={display:"list-item"};return s.jsxRuntimeExports.jsx(u.List,{sx:{listStyleType:e,pl:t,".MuiListItem-root":x,".MuiListItemText-root":x,...o},...i,children:r})},J=({rows:e,containerProps:n={},globalItemProps:t})=>{const r=Number(n.columns??12),o=l=>Math.floor(r/l),i=(l,c,m)=>Math.floor(c/o(m))*e.length+l,x=(l,c)=>{const m=e[0].length%o(c);return m!==0&&l===e[0].length-1?(r-m*c)/2:0};return s.jsxRuntimeExports.jsx(u.Grid,{container:!0,...n,children:e.map((l,c)=>l.map(({element:m,itemProps:d={}},a)=>s.jsxRuntimeExports.jsx(u.Grid,{order:{xs:i(c,a,t.size.xs),sm:i(c,a,t.size.sm),md:i(c,a,t.size.md),lg:i(c,a,t.size.lg),xl:i(c,a,t.size.xl)},offset:{xs:x(a,t.size.xs),sm:x(a,t.size.sm),md:x(a,t.size.md),lg:x(a,t.size.lg),xl:x(a,t.size.xl)},...t,...d,children:m},`${c}-${a}`)))})},K=({elementId:e,options:n,...t})=>s.jsxRuntimeExports.jsx(u.Link,{...t,onClick:()=>{document.getElementById(e)?.scrollIntoView(n)}}),Q=({children:e,useLazyListQuery:n,preferCacheValue:t,filters:r,page:o=0,rowsPerPage:i=50,rowsPerPageOptions:x=[50,100,150],stackProps:l,onRowsPerPageChange:c,onPageChange:m,...d})=>{const[a,k]=n(),[{limit:E,page:v,offset:f},y]=$.usePagination({page:o,limit:i});j.useEffect(()=>{a({limit:E,offset:f,...r},t)},[a,E,f,...Object.values(r||{}),t]);const{count:B,max_limit:h}=k.data||{};return h&&(x=x.filter(p=>p<=h)),s.jsxRuntimeExports.jsxs(u.Stack,{...l,children:[q.handleResultState(k,({data:p})=>e(p,{limit:E,page:v,offset:f,count:B,maxLimit:h})),s.jsxRuntimeExports.jsx(u.TablePagination,{component:"div",count:B??0,rowsPerPage:E,onRowsPerPageChange:p=>{y({limit:parseInt(p.target.value),page:0}),c&&c(p)},page:v,onPageChange:(p,g)=>{y(({limit:w})=>({limit:w,page:g})),m&&m(p,g)},rowsPerPageOptions:x.sort((p,g)=>p-g),...d})]})},W=({src:e,style:n={},...t})=>s.jsxRuntimeExports.jsx(u.Box,{component:"iframe",width:"100%",src:e,title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen",style:{border:"0px",aspectRatio:"16 / 9",...n},...t});exports.forms=C.index;exports.pages=S.index;exports.Link=R.Link;exports.LinkIconButton=R.LinkIconButton;exports.LinkListItem=R.LinkListItem;exports.LinkTab=R.LinkTab;exports.Navigate=R.Navigate;exports.LinkButton=z.LinkButton;exports.tables=_.index;exports.Countdown=M.Countdown;exports.Image=U.Image;exports.SyncError=q.SyncError;exports.App=G;exports.ClickableTooltip=N;exports.CopyIconButton=V;exports.DownloadFileButton=Y;exports.ElevatedAppBar=P;exports.InputFileButton=H;exports.ItemizedList=I;exports.OrderedGrid=J;exports.ScrollIntoViewLink=K;exports.TablePagination=Q;exports.YouTubeVideo=W;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../src/components/App.tsx","../../src/components/ClickableTooltip.tsx","../../src/components/CopyIconButton.tsx","../../src/components/DownloadFileButton.tsx","../../src/components/ElevatedAppBar.tsx","../../src/components/InputFileButton.tsx","../../src/components/ItemizedList.tsx","../../src/components/OrderedGrid.tsx","../../src/components/ScrollIntoViewLink.tsx","../../src/components/TablePagination.tsx","../../src/components/YouTubeVideo.tsx"],"sourcesContent":["import { BrowserRouter, Routes as RouterRoutes } from \"react-router\"\nimport { CssBaseline, ThemeProvider } from \"@mui/material\"\nimport { type FC, type JSX, type ReactNode } from \"react\"\nimport { Provider, type ProviderProps } from \"react-redux\"\nimport { type Action } from \"redux\"\nimport { StaticRouter } from \"react-router\"\nimport { type ThemeProviderProps } from \"@mui/material/styles/ThemeProvider\"\n\nimport \"./App.css\"\nimport { useLocation } from \"../hooks\"\n// import { InactiveDialog, ScreenTimeDialog } from \"../features\"\n// import { useCountdown, useEventListener } from \"../hooks\"\n// import \"../scripts\"\n// import {\n// configureFreshworksWidget,\n// toggleOneTrustInfoDisplay,\n// } from \"../utils/window\"\n\nexport interface AppProps<A extends Action = Action, S = unknown> {\n path?: string\n theme: ThemeProviderProps[\"theme\"]\n store: ProviderProps<A, S>[\"store\"]\n routes: ReactNode\n header?: ReactNode\n footer?: ReactNode\n headerExcludePaths?: string[]\n footerExcludePaths?: string[]\n maxIdleSeconds?: number\n maxTotalSeconds?: number\n}\n\ntype BaseRoutesProps = Pick<\n AppProps,\n \"routes\" | \"header\" | \"footer\" | \"headerExcludePaths\" | \"footerExcludePaths\"\n>\n\nconst Routes: FC<BaseRoutesProps & { path: string }> = ({\n path,\n routes,\n header = <></>, // TODO: \"header = <Header />\"\n footer = <></>, // TODO: \"footer = <Footer />\"\n headerExcludePaths = [],\n footerExcludePaths = [],\n}) => (\n <>\n {!headerExcludePaths.includes(path) && header}\n <RouterRoutes>{routes}</RouterRoutes>\n {!footerExcludePaths.includes(path) && footer}\n </>\n)\n\nconst BrowserRoutes: FC<BaseRoutesProps> = props => {\n const { pathname } = useLocation()\n\n return <Routes path={pathname} {...props} />\n}\n\nconst App = <A extends Action = Action, S = unknown>({\n path,\n theme,\n store,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n maxIdleSeconds = 60 * 60,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n maxTotalSeconds = 60 * 60,\n ...routesProps\n}: AppProps<A, S>): JSX.Element => {\n // TODO: cannot use document during SSR\n // const root = document.getElementById(\"root\") as HTMLElement\n\n // const [idleSeconds, setIdleSeconds] = useCountdown(maxIdleSeconds)\n // const [totalSeconds, setTotalSeconds] = useCountdown(maxTotalSeconds)\n // const resetIdleSeconds = useCallback(() => {\n // setIdleSeconds(maxIdleSeconds)\n // }, [setIdleSeconds, maxIdleSeconds])\n\n // const isIdle = idleSeconds === 0\n // const tooMuchScreenTime = totalSeconds === 0\n\n // useEventListener(root, \"mousemove\", resetIdleSeconds)\n // useEventListener(root, \"keypress\", resetIdleSeconds)\n\n // React.useEffect(() => {\n // configureFreshworksWidget(\"hide\")\n // }, [])\n\n // if (import.meta.env.PROD) {\n // toggleOneTrustInfoDisplay()\n // }\n\n return (\n <ThemeProvider theme={theme}>\n <CssBaseline />\n <Provider store={store}>\n {/* <InactiveDialog open={isIdle} onClose={resetIdleSeconds} />\n <ScreenTimeDialog\n open={!isIdle && tooMuchScreenTime}\n onClose={() => {\n setTotalSeconds(maxTotalSeconds)\n }}\n /> */}\n {\n // https://github.com/remix-run/react-router/tree/main/examples/ssr\n path !== undefined ? (\n <StaticRouter location={path}>\n <Routes path={path} {...routesProps} />\n </StaticRouter>\n ) : (\n <BrowserRouter>\n <BrowserRoutes {...routesProps} />\n </BrowserRouter>\n )\n }\n </Provider>\n </ThemeProvider>\n )\n}\n\nexport default App\n\n// TODO: figure out what to do with this\n// function useOneTrustScripts(): void {\n// const oneTrustEventTypes = [\n// useExternalScript({\n// props: {\n// src: \"https://cdn-ukwest.onetrust.com/consent/5da42396-cb12-4493-8d04-5179033cfbad/OtAutoBlock.js\",\n// type: \"text/javascript\",\n// },\n// eventTypes: [\"load\", \"error\"],\n// }),\n// useExternalScript({\n// props: {\n// src: \"https://cdn-ukwest.onetrust.com/scripttemplates/otSDKStub.js\",\n// type: \"text/javascript\",\n// charset: \"UTF-8\",\n// },\n// attrs: {\n// \"data-domain-script\": \"5da42396-cb12-4493-8d04-5179033cfbad\",\n// },\n// eventTypes: [\"load\", \"error\"],\n// }),\n// useExternalScript({\n// props: {\n// src: \"https://cdn-ukwest.onetrust.com/scripttemplates/202302.1.0/otBannerSdk.js\",\n// async: true,\n// type: \"text/javascript\",\n// },\n// eventTypes: [\"load\", \"error\"],\n// }),\n// ]\n// if (oneTrustEventTypes.some(t => t === \"error\")) {\n// alert(\"OneTrust failed to load!\")\n// }\n// }\n","import { Tooltip, type TooltipProps } from \"@mui/material\"\nimport React from \"react\"\n\nimport { wrap } from \"../utils/general\"\n\nexport interface ClickableTooltipProps extends TooltipProps {}\n\nconst ClickableTooltip: React.FC<ClickableTooltipProps> = ({\n open = false,\n onClick,\n ...otherTooltipProps\n}) => {\n const [_open, _setOpen] = React.useState(open)\n\n React.useEffect(() => {\n _setOpen(open)\n }, [open])\n\n return (\n <Tooltip\n open={_open}\n onMouseOver={() => {\n if (!_open) {\n _setOpen(true)\n }\n }}\n onMouseLeave={() => {\n _setOpen(false)\n }}\n onClick={wrap(\n {\n after: () => {\n _setOpen(!_open)\n },\n },\n onClick,\n )}\n {...otherTooltipProps}\n />\n )\n}\n\nexport default ClickableTooltip\n","import { IconButton, type IconButtonProps } from \"@mui/material\"\nimport { ContentCopy as ContentCopyIcon } from \"@mui/icons-material\"\nimport type { FC } from \"react\"\n\nexport interface CopyIconButtonProps extends Omit<IconButtonProps, \"onClick\"> {\n content: string\n}\n\nconst CopyIconButton: FC<CopyIconButtonProps> = ({\n content,\n children = <ContentCopyIcon />,\n ...otherIconButtonProps\n}) => {\n return (\n <IconButton\n data-testid=\"copy-icon-button\"\n onClick={() => {\n void navigator.clipboard.writeText(content)\n }}\n {...otherIconButtonProps}\n >\n {children}\n </IconButton>\n )\n}\n\nexport default CopyIconButton\n","import { Button, type ButtonProps } from \"@mui/material\"\nimport { type FC, useEffect } from \"react\"\nimport { Download as DownloadIcon } from \"@mui/icons-material\"\n\nexport type DownloadFileButtonProps = ButtonProps & {\n file:\n | Blob\n | MediaSource\n | {\n text: string\n mimeType: \"plain\" | \"csv\"\n name: string\n charset?: string\n extension?: string\n }\n}\n\nconst DownloadFileButton: FC<DownloadFileButtonProps> = ({\n children = \"Download\",\n endIcon = <DownloadIcon />,\n file,\n ...otherButtonProps\n}) => {\n let url: undefined | string = undefined\n let anchorProps: undefined | { download?: string; href: string } = undefined\n if (\"mimeType\" in file) {\n const { text, mimeType, name, charset = \"utf-8\" } = file\n let { extension } = file\n\n if (!extension) extension = \".\" + { plain: \"txt\", csv: \"csv\" }[mimeType]\n\n anchorProps = {\n download: name + extension,\n href: `data:text/${mimeType};charset=${charset},${encodeURIComponent(text)}`,\n }\n } else {\n url = URL.createObjectURL(file)\n\n anchorProps = { href: url }\n }\n\n useEffect(() => {\n return () => {\n if (url) URL.revokeObjectURL(url)\n }\n }, [url])\n\n return (\n <Button endIcon={endIcon} {...otherButtonProps} {...anchorProps}>\n {children}\n </Button>\n )\n}\n\nexport default DownloadFileButton\n","import {\n AppBar,\n type AppBarProps,\n Container,\n type ContainerProps,\n Toolbar,\n type ToolbarProps,\n useScrollTrigger,\n} from \"@mui/material\"\nimport { type FC, cloneElement } from \"react\"\n\nexport interface ElevatedAppBarProps extends Omit<AppBarProps, \"position\"> {\n containerProps: ContainerProps\n toolbarProps?: ToolbarProps\n}\n\nconst ElevatedAppBar: FC<ElevatedAppBarProps> = ({\n containerProps,\n toolbarProps,\n elevation = 4,\n children,\n ...otherProps\n}) => {\n const trigger = useScrollTrigger({\n disableHysteresis: true,\n threshold: 0,\n })\n\n return cloneElement(\n <AppBar elevation={elevation} {...otherProps}>\n <Container {...containerProps}>\n <Toolbar {...toolbarProps}>{children}</Toolbar>\n </Container>\n </AppBar>,\n {\n position: trigger ? \"fixed\" : \"sticky\",\n },\n )\n}\n\nexport default ElevatedAppBar\n","import { Button, type ButtonProps } from \"@mui/material\"\nimport {\n type DetailedHTMLProps,\n type FC,\n type InputHTMLAttributes,\n} from \"react\"\n\nexport interface InputFileButtonProps\n extends Omit<ButtonProps<\"label\">, \"component\"> {\n inputProps?: Omit<\n DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,\n \"type\" | \"hidden\"\n >\n}\n\nconst InputFileButton: FC<InputFileButtonProps> = ({\n children,\n inputProps,\n ...otherButtonProps\n}) => (\n <Button component=\"label\" {...otherButtonProps}>\n {children}\n <input type=\"file\" hidden {...inputProps} />\n </Button>\n)\n\nexport default InputFileButton\n","import { type FC, type ReactElement } from \"react\"\nimport {\n List,\n type ListItem,\n type ListItemText,\n type ListProps,\n} from \"@mui/material\"\n\ntype ListItemElement =\n | ReactElement<typeof ListItem | typeof ListItemText>\n | string\n\nexport interface ItemizedListProps {\n styleType:\n | \"unset\"\n | \"initial\"\n | \"inherit\"\n | \"upper-roman\"\n | \"upper-latin\"\n | \"upper-alpha\"\n | \"square\"\n | \"none\"\n | \"lower-roman\"\n | \"lower-latin\"\n | \"lower-greek\"\n | \"lower-alpha\"\n | \"georgian\"\n | \"disc\"\n | \"decimal-leading-zero\"\n | \"decimal\"\n | \"armenian\"\n | \"circle\"\n listProps?: ListProps\n pl?: number\n children: ListItemElement | ListItemElement[]\n}\n\nconst ItemizedList: FC<ItemizedListProps> = ({\n styleType,\n listProps = {},\n pl = 4,\n children,\n}) => {\n const { sx, ...otherProps } = listProps\n const listItemProps = { display: \"list-item\" }\n\n return (\n <List\n sx={{\n listStyleType: styleType,\n pl,\n \".MuiListItem-root\": listItemProps,\n \".MuiListItemText-root\": listItemProps,\n ...sx,\n }}\n {...otherProps}\n >\n {children}\n </List>\n )\n}\n\nexport default ItemizedList\n","import { type FC, type ReactElement } from \"react\"\nimport { Unstable_Grid2 as Grid, type Grid2Props } from \"@mui/material\"\n\ninterface ItemProps\n extends Omit<\n Grid2Props,\n | \"key\"\n | \"order\"\n | \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"xsOffset\"\n | \"smOffset\"\n | \"mdOffset\"\n | \"lgOffset\"\n | \"xlOffset\"\n > {}\n\ninterface GlobalItemProps extends ItemProps {\n xs: number\n sm: number\n md: number\n lg: number\n xl: number\n}\n\nexport interface OrderedGridProps {\n rows: Array<\n Array<{\n element: ReactElement\n itemProps?: ItemProps\n }>\n >\n containerProps?: Omit<Grid2Props, \"container\">\n globalItemProps: GlobalItemProps\n}\n\nconst OrderedGrid: FC<OrderedGridProps> = ({\n rows,\n containerProps = {},\n globalItemProps,\n}) => {\n const columns = Number(containerProps.columns ?? 12)\n\n const getItemsPerRow = (size: number): number => Math.floor(columns / size)\n\n const getOrder = (\n rowIndex: number,\n itemIndex: number,\n size: number,\n ): number =>\n Math.floor(itemIndex / getItemsPerRow(size)) * rows.length + rowIndex\n\n const getOffset = (itemIndex: number, size: number): number => {\n const itemsOnLastRow = rows[0].length % getItemsPerRow(size)\n return itemsOnLastRow !== 0 && itemIndex === rows[0].length - 1\n ? (columns - itemsOnLastRow * size) / 2\n : 0\n }\n\n return (\n <Grid container {...containerProps}>\n {rows.map((row, rowIndex) =>\n row.map(({ element, itemProps = {} }, itemIndex) => (\n <Grid\n key={`${rowIndex}-${itemIndex}`}\n order={{\n xs: getOrder(rowIndex, itemIndex, globalItemProps.xs),\n sm: getOrder(rowIndex, itemIndex, globalItemProps.sm),\n md: getOrder(rowIndex, itemIndex, globalItemProps.md),\n lg: getOrder(rowIndex, itemIndex, globalItemProps.lg),\n xl: getOrder(rowIndex, itemIndex, globalItemProps.xl),\n }}\n xsOffset={getOffset(itemIndex, globalItemProps.xs)}\n smOffset={getOffset(itemIndex, globalItemProps.sm)}\n mdOffset={getOffset(itemIndex, globalItemProps.md)}\n lgOffset={getOffset(itemIndex, globalItemProps.lg)}\n xlOffset={getOffset(itemIndex, globalItemProps.xl)}\n {...globalItemProps}\n {...itemProps}\n >\n {element}\n </Grid>\n )),\n )}\n </Grid>\n )\n}\n\nexport default OrderedGrid\n","import { Link, type LinkProps } from \"@mui/material\"\nimport { type FC } from \"react\"\nexport interface ScrollIntoViewLinkProps extends Omit<LinkProps, \"onClick\"> {\n elementId: string\n options?: ScrollIntoViewOptions\n}\n\nconst ScrollIntoViewLink: FC<ScrollIntoViewLinkProps> = ({\n elementId,\n options,\n ...linkProps\n}) => (\n <Link\n {...linkProps}\n onClick={() => {\n const element = document.getElementById(elementId)\n element?.scrollIntoView(options)\n }}\n />\n)\n\nexport default ScrollIntoViewLink\n","import {\n type ElementType,\n type JSX,\n type JSXElementConstructor,\n type ReactNode,\n useEffect,\n} from \"react\"\nimport {\n TablePagination as MuiTablePagination,\n type TablePaginationProps as MuiTablePaginationProps,\n Stack,\n type StackProps,\n type TablePaginationBaseProps,\n} from \"@mui/material\"\nimport type { TypedUseLazyQuery } from \"@reduxjs/toolkit/query/react\"\n\nimport { type ListArg, type ListResult, handleResultState } from \"../utils/api\"\nimport { type Pagination, usePagination } from \"../hooks/api\"\n\nexport type TablePaginationProps<\n QueryArg extends ListArg,\n ResultType extends ListResult<any>,\n RootComponent extends\n ElementType = JSXElementConstructor<TablePaginationBaseProps>,\n AdditionalProps = {},\n> = Omit<\n MuiTablePaginationProps<RootComponent, AdditionalProps>,\n | \"component\"\n | \"count\"\n | \"rowsPerPage\"\n | \"onRowsPerPageChange\"\n | \"rowsPerPageOptions\"\n | \"page\"\n | \"onPageChange\"\n> &\n Partial<\n Pick<\n MuiTablePaginationProps<RootComponent, AdditionalProps>,\n \"onRowsPerPageChange\" | \"onPageChange\"\n >\n > & {\n children: (\n data: ResultType[\"data\"],\n pagination: Pagination & { count?: number; maxLimit?: number },\n ) => ReactNode\n useLazyListQuery: TypedUseLazyQuery<ResultType, QueryArg, any>\n preferCacheValue?: boolean\n filters?: Omit<QueryArg, \"limit\" | \"offset\">\n rowsPerPageOptions?: number[]\n stackProps?: StackProps\n page?: number\n rowsPerPage?: number\n }\n\nconst TablePagination = <\n QueryArg extends ListArg,\n ResultType extends ListResult<any>,\n RootComponent extends\n ElementType = JSXElementConstructor<TablePaginationBaseProps>,\n AdditionalProps = {},\n>({\n children,\n useLazyListQuery,\n preferCacheValue,\n filters,\n page: initialPage = 0,\n rowsPerPage: initialLimit = 50,\n rowsPerPageOptions = [50, 100, 150],\n stackProps,\n onRowsPerPageChange,\n onPageChange,\n ...tablePaginationProps\n}: TablePaginationProps<\n QueryArg,\n ResultType,\n RootComponent,\n AdditionalProps\n>): JSX.Element => {\n const [trigger, result] = useLazyListQuery()\n const [{ limit, page, offset }, setPagination] = usePagination({\n page: initialPage,\n limit: initialLimit,\n })\n\n useEffect(\n () => {\n void trigger({ limit, offset, ...filters } as QueryArg, preferCacheValue)\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n trigger,\n limit,\n offset,\n // eslint-disable-next-line react-hooks/exhaustive-deps,@typescript-eslint/no-unsafe-assignment\n ...Object.values(filters || {}),\n preferCacheValue,\n ],\n )\n\n const { count, max_limit } = result.data || {}\n\n if (max_limit) {\n rowsPerPageOptions = rowsPerPageOptions.filter(\n option => option <= max_limit,\n )\n }\n\n return (\n <Stack {...stackProps}>\n {handleResultState(result, ({ data }) =>\n children(data, {\n limit,\n page,\n offset,\n count,\n maxLimit: max_limit,\n }),\n )}\n <MuiTablePagination\n component=\"div\"\n count={count ?? 0}\n rowsPerPage={limit}\n onRowsPerPageChange={event => {\n setPagination({ limit: parseInt(event.target.value), page: 0 })\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n if (onRowsPerPageChange) onRowsPerPageChange(event)\n }}\n page={page}\n onPageChange={(event, page) => {\n setPagination(({ limit }) => ({ limit, page }))\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n if (onPageChange) onPageChange(event, page)\n }}\n // ascending order\n rowsPerPageOptions={rowsPerPageOptions.sort((a, b) => a - b)}\n {...tablePaginationProps}\n />\n </Stack>\n )\n}\n\nexport default TablePagination\n","import { Box, type BoxProps } from \"@mui/material\"\nimport { type FC } from \"react\"\n\nexport interface YouTubeVideoProps extends Omit<BoxProps, \"component\"> {\n src: string\n}\n\nconst YouTubeVideo: FC<YouTubeVideoProps> = ({\n src,\n style = {},\n ...otherProps\n}) => {\n return (\n <Box\n component=\"iframe\"\n width=\"100%\"\n src={src}\n title=\"YouTube video player\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen\"\n style={{ border: \"0px\", aspectRatio: \"16 / 9\", ...style }}\n {...otherProps}\n />\n )\n}\n\nexport default YouTubeVideo\n"],"names":["Routes","path","routes","header","jsx","Fragment","footer","headerExcludePaths","footerExcludePaths","jsxs","RouterRoutes","BrowserRoutes","props","pathname","useLocation","App","theme","store","maxIdleSeconds","maxTotalSeconds","routesProps","ThemeProvider","CssBaseline","Provider","StaticRouter","BrowserRouter","ClickableTooltip","open","onClick","otherTooltipProps","_open","_setOpen","React","Tooltip","wrap","CopyIconButton","content","children","ContentCopyIcon","otherIconButtonProps","IconButton","DownloadFileButton","endIcon","DownloadIcon","file","otherButtonProps","url","anchorProps","text","mimeType","name","charset","extension","useEffect","Button","ElevatedAppBar","containerProps","toolbarProps","elevation","otherProps","trigger","useScrollTrigger","cloneElement","AppBar","Container","Toolbar","InputFileButton","inputProps","ItemizedList","styleType","listProps","pl","sx","listItemProps","List","OrderedGrid","rows","globalItemProps","columns","getItemsPerRow","size","getOrder","rowIndex","itemIndex","getOffset","itemsOnLastRow","Grid","row","element","itemProps","ScrollIntoViewLink","elementId","options","linkProps","Link","TablePagination","useLazyListQuery","preferCacheValue","filters","initialPage","initialLimit","rowsPerPageOptions","stackProps","onRowsPerPageChange","onPageChange","tablePaginationProps","result","limit","page","offset","setPagination","usePagination","count","max_limit","option","Stack","handleResultState","data","MuiTablePagination","event","a","b","YouTubeVideo","src","style","Box"],"mappings":"2oBAoCMA,EAAiD,CAAC,CACtD,KAAAC,EACA,OAAAC,EACA,OAAAC,EAASC,EAAAA,kBAAAA,IAAAC,EAAAA,kBAAAA,SAAA,EAAE,EACX,OAAAC,EAASF,EAAAA,kBAAAA,IAAAC,EAAAA,kBAAAA,SAAA,EAAE,EACX,mBAAAE,EAAqB,CAAA,EACrB,mBAAAC,EAAqB,CAAA,CACvB,IACEC,EAAAA,kBAAAA,KAAAJ,6BAAA,CACG,SAAA,CAAA,CAACE,EAAmB,SAASN,CAAI,GAAKE,EACvCC,EAAAA,kBAAAA,IAACM,EAAAA,QAAc,SAAAR,CAAA,CAAO,EACrB,CAACM,EAAmB,SAASP,CAAI,GAAKK,CAAA,EACzC,EAGIK,EAAqCC,GAAS,CAClD,KAAM,CAAE,SAAAC,CAAA,EAAaC,cAAA,EAErB,OAAOV,EAAAA,kBAAAA,IAACJ,EAAA,CAAO,KAAMa,EAAW,GAAGD,EAAO,CAC5C,EAEMG,EAAM,CAAyC,CACnD,KAAAd,EACA,MAAAe,EACA,MAAAC,EAEA,eAAAC,EAAiB,KAEjB,gBAAAC,EAAkB,KAClB,GAAGC,CACL,IAyBIX,yBAACY,EAAAA,eAAc,MAAAL,EACb,SAAA,CAAAZ,EAAAA,kBAAAA,IAACkB,EAAAA,YAAA,EAAY,EACblB,EAAAA,kBAAAA,IAACmB,EAAAA,SAAA,CAAS,MAAAN,EAUN,aAAS,OACPb,EAAAA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AAA,CAAO,GAAGb,EACR,SAAA,CAAAc,EAAAA,kBAAkBV,EAAQ,CAAC,CAAE,KAAAW,CAAA,IAC5BhF,EAASgF,EAAM,CACb,MAAAV,EACA,KAAAC,EACA,OAAAC,EACA,MAAAG,EACA,SAAUC,CAAA,CACX,CAAA,EAEH7G,EAAAA,kBAAAA,IAACkH,EAAAA,gBAAA,CACC,UAAU,MACV,MAAON,GAAS,EAChB,YAAaL,EACb,oBAAqBY,GAAS,CAC5BT,EAAc,CAAE,MAAO,SAASS,EAAM,OAAO,KAAK,EAAG,KAAM,EAAG,EAE1DhB,KAAyCgB,CAAK,CACpD,EACA,KAAAX,EACA,aAAc,CAACW,EAAOX,IAAS,CAC7BE,EAAc,CAAC,CAAE,MAAAH,CAAAA,KAAa,CAAE,MAAAA,EAAO,KAAAC,CAAAA,EAAO,EAE1CJ,GAAcA,EAAae,EAAOX,CAAI,CAC5C,EAEA,mBAAoBP,EAAmB,KAAK,CAACmB,EAAGC,IAAMD,EAAIC,CAAC,EAC1D,GAAGhB,CAAA,CAAA,CACN,EACF,CAEJ,ECpIMiB,EAAsC,CAAC,CAC3C,IAAAC,EACA,MAAAC,EAAQ,CAAA,EACR,GAAGjE,CACL,IAEIvD,EAAAA,kBAAAA,IAACyH,EAAAA,IAAA,CACC,UAAU,SACV,MAAM,OACN,IAAAF,EACA,MAAM,uBACN,MAAM,kHACN,MAAO,CAAE,OAAQ,MAAO,YAAa,SAAU,GAAGC,CAAA,EACjD,GAAGjE,CAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../src/components/App.tsx","../../src/components/ClickableTooltip.tsx","../../src/components/CopyIconButton.tsx","../../src/components/DownloadFileButton.tsx","../../src/components/ElevatedAppBar.tsx","../../src/components/InputFileButton.tsx","../../src/components/ItemizedList.tsx","../../src/components/OrderedGrid.tsx","../../src/components/ScrollIntoViewLink.tsx","../../src/components/TablePagination.tsx","../../src/components/YouTubeVideo.tsx"],"sourcesContent":["import { BrowserRouter, Routes as RouterRoutes } from \"react-router\"\nimport { CssBaseline, ThemeProvider } from \"@mui/material\"\nimport { type FC, type JSX, type ReactNode } from \"react\"\nimport { Provider, type ProviderProps } from \"react-redux\"\nimport { type Action } from \"redux\"\nimport { StaticRouter } from \"react-router\"\nimport { type ThemeProviderProps } from \"@mui/material\"\n\nimport \"./App.css\"\nimport { useLocation } from \"../hooks\"\n// import { InactiveDialog, ScreenTimeDialog } from \"../features\"\n// import { useCountdown, useEventListener } from \"../hooks\"\n// import \"../scripts\"\n// import {\n// configureFreshworksWidget,\n// toggleOneTrustInfoDisplay,\n// } from \"../utils/window\"\n\nexport interface AppProps<A extends Action = Action, S = unknown> {\n path?: string\n theme: ThemeProviderProps[\"theme\"]\n store: ProviderProps<A, S>[\"store\"]\n routes: ReactNode\n header?: ReactNode\n footer?: ReactNode\n headerExcludePaths?: string[]\n footerExcludePaths?: string[]\n maxIdleSeconds?: number\n maxTotalSeconds?: number\n}\n\ntype BaseRoutesProps = Pick<\n AppProps,\n \"routes\" | \"header\" | \"footer\" | \"headerExcludePaths\" | \"footerExcludePaths\"\n>\n\nconst Routes: FC<BaseRoutesProps & { path: string }> = ({\n path,\n routes,\n header = <></>, // TODO: \"header = <Header />\"\n footer = <></>, // TODO: \"footer = <Footer />\"\n headerExcludePaths = [],\n footerExcludePaths = [],\n}) => (\n <>\n {!headerExcludePaths.includes(path) && header}\n <RouterRoutes>{routes}</RouterRoutes>\n {!footerExcludePaths.includes(path) && footer}\n </>\n)\n\nconst BrowserRoutes: FC<BaseRoutesProps> = props => {\n const { pathname } = useLocation()\n\n return <Routes path={pathname} {...props} />\n}\n\nconst App = <A extends Action = Action, S = unknown>({\n path,\n theme,\n store,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n maxIdleSeconds = 60 * 60,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n maxTotalSeconds = 60 * 60,\n ...routesProps\n}: AppProps<A, S>): JSX.Element => {\n // TODO: cannot use document during SSR\n // const root = document.getElementById(\"root\") as HTMLElement\n\n // const [idleSeconds, setIdleSeconds] = useCountdown(maxIdleSeconds)\n // const [totalSeconds, setTotalSeconds] = useCountdown(maxTotalSeconds)\n // const resetIdleSeconds = useCallback(() => {\n // setIdleSeconds(maxIdleSeconds)\n // }, [setIdleSeconds, maxIdleSeconds])\n\n // const isIdle = idleSeconds === 0\n // const tooMuchScreenTime = totalSeconds === 0\n\n // useEventListener(root, \"mousemove\", resetIdleSeconds)\n // useEventListener(root, \"keypress\", resetIdleSeconds)\n\n // React.useEffect(() => {\n // configureFreshworksWidget(\"hide\")\n // }, [])\n\n // if (import.meta.env.PROD) {\n // toggleOneTrustInfoDisplay()\n // }\n\n return (\n <ThemeProvider theme={theme}>\n <CssBaseline />\n <Provider store={store}>\n {/* <InactiveDialog open={isIdle} onClose={resetIdleSeconds} />\n <ScreenTimeDialog\n open={!isIdle && tooMuchScreenTime}\n onClose={() => {\n setTotalSeconds(maxTotalSeconds)\n }}\n /> */}\n {\n // https://github.com/remix-run/react-router/tree/main/examples/ssr\n path !== undefined ? (\n <StaticRouter location={path}>\n <Routes path={path} {...routesProps} />\n </StaticRouter>\n ) : (\n <BrowserRouter>\n <BrowserRoutes {...routesProps} />\n </BrowserRouter>\n )\n }\n </Provider>\n </ThemeProvider>\n )\n}\n\nexport default App\n\n// TODO: figure out what to do with this\n// function useOneTrustScripts(): void {\n// const oneTrustEventTypes = [\n// useExternalScript({\n// props: {\n// src: \"https://cdn-ukwest.onetrust.com/consent/5da42396-cb12-4493-8d04-5179033cfbad/OtAutoBlock.js\",\n// type: \"text/javascript\",\n// },\n// eventTypes: [\"load\", \"error\"],\n// }),\n// useExternalScript({\n// props: {\n// src: \"https://cdn-ukwest.onetrust.com/scripttemplates/otSDKStub.js\",\n// type: \"text/javascript\",\n// charset: \"UTF-8\",\n// },\n// attrs: {\n// \"data-domain-script\": \"5da42396-cb12-4493-8d04-5179033cfbad\",\n// },\n// eventTypes: [\"load\", \"error\"],\n// }),\n// useExternalScript({\n// props: {\n// src: \"https://cdn-ukwest.onetrust.com/scripttemplates/202302.1.0/otBannerSdk.js\",\n// async: true,\n// type: \"text/javascript\",\n// },\n// eventTypes: [\"load\", \"error\"],\n// }),\n// ]\n// if (oneTrustEventTypes.some(t => t === \"error\")) {\n// alert(\"OneTrust failed to load!\")\n// }\n// }\n","import { Tooltip, type TooltipProps } from \"@mui/material\"\nimport React from \"react\"\n\nimport { wrap } from \"../utils/general\"\n\nexport interface ClickableTooltipProps extends TooltipProps {}\n\nconst ClickableTooltip: React.FC<ClickableTooltipProps> = ({\n open = false,\n onClick,\n ...otherTooltipProps\n}) => {\n const [_open, _setOpen] = React.useState(open)\n\n React.useEffect(() => {\n _setOpen(open)\n }, [open])\n\n return (\n <Tooltip\n open={_open}\n onMouseOver={() => {\n if (!_open) {\n _setOpen(true)\n }\n }}\n onMouseLeave={() => {\n _setOpen(false)\n }}\n onClick={wrap(\n {\n after: () => {\n _setOpen(!_open)\n },\n },\n onClick,\n )}\n {...otherTooltipProps}\n />\n )\n}\n\nexport default ClickableTooltip\n","import { IconButton, type IconButtonProps } from \"@mui/material\"\nimport { ContentCopy as ContentCopyIcon } from \"@mui/icons-material\"\nimport type { FC } from \"react\"\n\nexport interface CopyIconButtonProps extends Omit<IconButtonProps, \"onClick\"> {\n content: string\n}\n\nconst CopyIconButton: FC<CopyIconButtonProps> = ({\n content,\n children = <ContentCopyIcon />,\n ...otherIconButtonProps\n}) => {\n return (\n <IconButton\n data-testid=\"copy-icon-button\"\n onClick={() => {\n void navigator.clipboard.writeText(content)\n }}\n {...otherIconButtonProps}\n >\n {children}\n </IconButton>\n )\n}\n\nexport default CopyIconButton\n","import { Button, type ButtonProps } from \"@mui/material\"\nimport { type FC, useEffect } from \"react\"\nimport { Download as DownloadIcon } from \"@mui/icons-material\"\n\nexport type DownloadFileButtonProps = ButtonProps & {\n file:\n | Blob\n | MediaSource\n | {\n text: string\n mimeType: \"plain\" | \"csv\"\n name: string\n charset?: string\n extension?: string\n }\n}\n\nconst DownloadFileButton: FC<DownloadFileButtonProps> = ({\n children = \"Download\",\n endIcon = <DownloadIcon />,\n file,\n ...otherButtonProps\n}) => {\n let url: undefined | string = undefined\n let anchorProps: undefined | { download?: string; href: string } = undefined\n if (\"mimeType\" in file) {\n const { text, mimeType, name, charset = \"utf-8\" } = file\n let { extension } = file\n\n if (!extension) extension = \".\" + { plain: \"txt\", csv: \"csv\" }[mimeType]\n\n anchorProps = {\n download: name + extension,\n href: `data:text/${mimeType};charset=${charset},${encodeURIComponent(text)}`,\n }\n } else {\n url = URL.createObjectURL(file)\n\n anchorProps = { href: url }\n }\n\n useEffect(() => {\n return () => {\n if (url) URL.revokeObjectURL(url)\n }\n }, [url])\n\n return (\n <Button endIcon={endIcon} {...otherButtonProps} {...anchorProps}>\n {children}\n </Button>\n )\n}\n\nexport default DownloadFileButton\n","import {\n AppBar,\n type AppBarProps,\n Container,\n type ContainerProps,\n Toolbar,\n type ToolbarProps,\n useScrollTrigger,\n} from \"@mui/material\"\nimport { type FC, cloneElement } from \"react\"\n\nexport interface ElevatedAppBarProps extends Omit<AppBarProps, \"position\"> {\n containerProps: ContainerProps\n toolbarProps?: ToolbarProps\n}\n\nconst ElevatedAppBar: FC<ElevatedAppBarProps> = ({\n containerProps,\n toolbarProps,\n elevation = 4,\n children,\n ...otherProps\n}) => {\n const trigger = useScrollTrigger({\n disableHysteresis: true,\n threshold: 0,\n })\n\n return cloneElement(\n <AppBar elevation={elevation} {...otherProps}>\n <Container {...containerProps}>\n <Toolbar {...toolbarProps}>{children}</Toolbar>\n </Container>\n </AppBar>,\n {\n position: trigger ? \"fixed\" : \"sticky\",\n },\n )\n}\n\nexport default ElevatedAppBar\n","import { Button, type ButtonProps } from \"@mui/material\"\nimport {\n type DetailedHTMLProps,\n type FC,\n type InputHTMLAttributes,\n} from \"react\"\n\nexport interface InputFileButtonProps\n extends Omit<ButtonProps<\"label\">, \"component\"> {\n inputProps?: Omit<\n DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,\n \"type\" | \"hidden\"\n >\n}\n\nconst InputFileButton: FC<InputFileButtonProps> = ({\n children,\n inputProps,\n ...otherButtonProps\n}) => (\n <Button component=\"label\" {...otherButtonProps}>\n {children}\n <input type=\"file\" hidden {...inputProps} />\n </Button>\n)\n\nexport default InputFileButton\n","import { type FC, type ReactElement } from \"react\"\nimport {\n List,\n type ListItem,\n type ListItemText,\n type ListProps,\n} from \"@mui/material\"\n\ntype ListItemElement =\n | ReactElement<typeof ListItem | typeof ListItemText>\n | string\n\nexport interface ItemizedListProps {\n styleType:\n | \"unset\"\n | \"initial\"\n | \"inherit\"\n | \"upper-roman\"\n | \"upper-latin\"\n | \"upper-alpha\"\n | \"square\"\n | \"none\"\n | \"lower-roman\"\n | \"lower-latin\"\n | \"lower-greek\"\n | \"lower-alpha\"\n | \"georgian\"\n | \"disc\"\n | \"decimal-leading-zero\"\n | \"decimal\"\n | \"armenian\"\n | \"circle\"\n listProps?: ListProps\n pl?: number\n children: ListItemElement | ListItemElement[]\n}\n\nconst ItemizedList: FC<ItemizedListProps> = ({\n styleType,\n listProps = {},\n pl = 4,\n children,\n}) => {\n const { sx, ...otherProps } = listProps\n const listItemProps = { display: \"list-item\" }\n\n return (\n <List\n sx={{\n listStyleType: styleType,\n pl,\n \".MuiListItem-root\": listItemProps,\n \".MuiListItemText-root\": listItemProps,\n ...sx,\n }}\n {...otherProps}\n >\n {children}\n </List>\n )\n}\n\nexport default ItemizedList\n","import { type FC, type ReactElement } from \"react\"\nimport { Grid, type GridProps } from \"@mui/material\"\n\ninterface ItemProps\n extends Omit<GridProps, \"key\" | \"order\" | \"size\" | \"offset\"> {}\n\ninterface GlobalItemProps extends ItemProps {\n size: {\n xs: number\n sm: number\n md: number\n lg: number\n xl: number\n }\n}\n\nexport interface OrderedGridProps {\n rows: Array<\n Array<{\n element: ReactElement\n itemProps?: ItemProps\n }>\n >\n containerProps?: Omit<GridProps, \"container\">\n globalItemProps: GlobalItemProps\n}\n\nconst OrderedGrid: FC<OrderedGridProps> = ({\n rows,\n containerProps = {},\n globalItemProps,\n}) => {\n const columns = Number(containerProps.columns ?? 12)\n\n const getItemsPerRow = (size: number): number => Math.floor(columns / size)\n\n const getOrder = (\n rowIndex: number,\n itemIndex: number,\n size: number,\n ): number =>\n Math.floor(itemIndex / getItemsPerRow(size)) * rows.length + rowIndex\n\n const getOffset = (itemIndex: number, size: number): number => {\n const itemsOnLastRow = rows[0].length % getItemsPerRow(size)\n return itemsOnLastRow !== 0 && itemIndex === rows[0].length - 1\n ? (columns - itemsOnLastRow * size) / 2\n : 0\n }\n\n return (\n <Grid container {...containerProps}>\n {rows.map((row, rowIndex) =>\n row.map(({ element, itemProps = {} }, itemIndex) => (\n <Grid\n key={`${rowIndex}-${itemIndex}`}\n order={{\n xs: getOrder(rowIndex, itemIndex, globalItemProps.size.xs),\n sm: getOrder(rowIndex, itemIndex, globalItemProps.size.sm),\n md: getOrder(rowIndex, itemIndex, globalItemProps.size.md),\n lg: getOrder(rowIndex, itemIndex, globalItemProps.size.lg),\n xl: getOrder(rowIndex, itemIndex, globalItemProps.size.xl),\n }}\n offset={{\n xs: getOffset(itemIndex, globalItemProps.size.xs),\n sm: getOffset(itemIndex, globalItemProps.size.sm),\n md: getOffset(itemIndex, globalItemProps.size.md),\n lg: getOffset(itemIndex, globalItemProps.size.lg),\n xl: getOffset(itemIndex, globalItemProps.size.xl),\n }}\n {...globalItemProps}\n {...itemProps}\n >\n {element}\n </Grid>\n )),\n )}\n </Grid>\n )\n}\n\nexport default OrderedGrid\n","import { Link, type LinkProps } from \"@mui/material\"\nimport { type FC } from \"react\"\nexport interface ScrollIntoViewLinkProps extends Omit<LinkProps, \"onClick\"> {\n elementId: string\n options?: ScrollIntoViewOptions\n}\n\nconst ScrollIntoViewLink: FC<ScrollIntoViewLinkProps> = ({\n elementId,\n options,\n ...linkProps\n}) => (\n <Link\n {...linkProps}\n onClick={() => {\n const element = document.getElementById(elementId)\n element?.scrollIntoView(options)\n }}\n />\n)\n\nexport default ScrollIntoViewLink\n","import {\n type ElementType,\n type JSX,\n type JSXElementConstructor,\n type ReactNode,\n useEffect,\n} from \"react\"\nimport {\n TablePagination as MuiTablePagination,\n type TablePaginationProps as MuiTablePaginationProps,\n Stack,\n type StackProps,\n type TablePaginationBaseProps,\n} from \"@mui/material\"\nimport type { TypedUseLazyQuery } from \"@reduxjs/toolkit/query/react\"\n\nimport { type ListArg, type ListResult, handleResultState } from \"../utils/api\"\nimport { type Pagination, usePagination } from \"../hooks/api\"\n\nexport type TablePaginationProps<\n QueryArg extends ListArg,\n ResultType extends ListResult<any>,\n RootComponent extends\n ElementType = JSXElementConstructor<TablePaginationBaseProps>,\n AdditionalProps = {},\n> = Omit<\n MuiTablePaginationProps<RootComponent, AdditionalProps>,\n | \"component\"\n | \"count\"\n | \"rowsPerPage\"\n | \"onRowsPerPageChange\"\n | \"rowsPerPageOptions\"\n | \"page\"\n | \"onPageChange\"\n> &\n Partial<\n Pick<\n MuiTablePaginationProps<RootComponent, AdditionalProps>,\n \"onRowsPerPageChange\" | \"onPageChange\"\n >\n > & {\n children: (\n data: ResultType[\"data\"],\n pagination: Pagination & { count?: number; maxLimit?: number },\n ) => ReactNode\n useLazyListQuery: TypedUseLazyQuery<ResultType, QueryArg, any>\n preferCacheValue?: boolean\n filters?: Omit<QueryArg, \"limit\" | \"offset\">\n rowsPerPageOptions?: number[]\n stackProps?: StackProps\n page?: number\n rowsPerPage?: number\n }\n\nconst TablePagination = <\n QueryArg extends ListArg,\n ResultType extends ListResult<any>,\n RootComponent extends\n ElementType = JSXElementConstructor<TablePaginationBaseProps>,\n AdditionalProps = {},\n>({\n children,\n useLazyListQuery,\n preferCacheValue,\n filters,\n page: initialPage = 0,\n rowsPerPage: initialLimit = 50,\n rowsPerPageOptions = [50, 100, 150],\n stackProps,\n onRowsPerPageChange,\n onPageChange,\n ...tablePaginationProps\n}: TablePaginationProps<\n QueryArg,\n ResultType,\n RootComponent,\n AdditionalProps\n>): JSX.Element => {\n const [trigger, result] = useLazyListQuery()\n const [{ limit, page, offset }, setPagination] = usePagination({\n page: initialPage,\n limit: initialLimit,\n })\n\n useEffect(\n () => {\n void trigger({ limit, offset, ...filters } as QueryArg, preferCacheValue)\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n trigger,\n limit,\n offset,\n // eslint-disable-next-line react-hooks/exhaustive-deps,@typescript-eslint/no-unsafe-assignment\n ...Object.values(filters || {}),\n preferCacheValue,\n ],\n )\n\n const { count, max_limit } = result.data || {}\n\n if (max_limit) {\n rowsPerPageOptions = rowsPerPageOptions.filter(\n option => option <= max_limit,\n )\n }\n\n return (\n <Stack {...stackProps}>\n {handleResultState(result, ({ data }) =>\n children(data, {\n limit,\n page,\n offset,\n count,\n maxLimit: max_limit,\n }),\n )}\n <MuiTablePagination\n component=\"div\"\n count={count ?? 0}\n rowsPerPage={limit}\n onRowsPerPageChange={event => {\n setPagination({ limit: parseInt(event.target.value), page: 0 })\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n if (onRowsPerPageChange) onRowsPerPageChange(event)\n }}\n page={page}\n onPageChange={(event, page) => {\n setPagination(({ limit }) => ({ limit, page }))\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n if (onPageChange) onPageChange(event, page)\n }}\n // ascending order\n rowsPerPageOptions={rowsPerPageOptions.sort((a, b) => a - b)}\n {...tablePaginationProps}\n />\n </Stack>\n )\n}\n\nexport default TablePagination\n","import { Box, type BoxProps } from \"@mui/material\"\nimport { type FC } from \"react\"\n\nexport interface YouTubeVideoProps extends Omit<BoxProps, \"component\"> {\n src: string\n}\n\nconst YouTubeVideo: FC<YouTubeVideoProps> = ({\n src,\n style = {},\n ...otherProps\n}) => {\n return (\n <Box\n component=\"iframe\"\n width=\"100%\"\n src={src}\n title=\"YouTube video player\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen\"\n style={{ border: \"0px\", aspectRatio: \"16 / 9\", ...style }}\n {...otherProps}\n />\n )\n}\n\nexport default YouTubeVideo\n"],"names":["Routes","path","routes","header","jsx","Fragment","footer","headerExcludePaths","footerExcludePaths","jsxs","RouterRoutes","BrowserRoutes","props","pathname","useLocation","App","theme","store","maxIdleSeconds","maxTotalSeconds","routesProps","ThemeProvider","CssBaseline","Provider","StaticRouter","BrowserRouter","ClickableTooltip","open","onClick","otherTooltipProps","_open","_setOpen","React","Tooltip","wrap","CopyIconButton","content","children","ContentCopyIcon","otherIconButtonProps","IconButton","DownloadFileButton","endIcon","DownloadIcon","file","otherButtonProps","url","anchorProps","text","mimeType","name","charset","extension","useEffect","Button","ElevatedAppBar","containerProps","toolbarProps","elevation","otherProps","trigger","useScrollTrigger","cloneElement","AppBar","Container","Toolbar","InputFileButton","inputProps","ItemizedList","styleType","listProps","pl","sx","listItemProps","List","OrderedGrid","rows","globalItemProps","columns","getItemsPerRow","size","getOrder","rowIndex","itemIndex","getOffset","itemsOnLastRow","Grid","row","element","itemProps","ScrollIntoViewLink","elementId","options","linkProps","Link","TablePagination","useLazyListQuery","preferCacheValue","filters","initialPage","initialLimit","rowsPerPageOptions","stackProps","onRowsPerPageChange","onPageChange","tablePaginationProps","result","limit","page","offset","setPagination","usePagination","count","max_limit","option","Stack","handleResultState","data","MuiTablePagination","event","a","b","YouTubeVideo","src","style","Box"],"mappings":"2oBAoCMA,EAAiD,CAAC,CACtD,KAAAC,EACA,OAAAC,EACA,OAAAC,EAASC,EAAAA,kBAAAA,IAAAC,EAAAA,kBAAAA,SAAA,EAAE,EACX,OAAAC,EAASF,EAAAA,kBAAAA,IAAAC,EAAAA,kBAAAA,SAAA,EAAE,EACX,mBAAAE,EAAqB,CAAA,EACrB,mBAAAC,EAAqB,CAAA,CACvB,IACEC,EAAAA,kBAAAA,KAAAJ,6BAAA,CACG,SAAA,CAAA,CAACE,EAAmB,SAASN,CAAI,GAAKE,EACvCC,EAAAA,kBAAAA,IAACM,EAA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EAC1D,GAAGhB,CAAA,CAAA,CACN,EACF,CAEJ,ECpIMiB,EAAsC,CAAC,CAC3C,IAAAC,EACA,MAAAC,EAAQ,CAAA,EACR,GAAGjE,CACL,IAEIvD,EAAAA,kBAAAA,IAACyH,EAAAA,IAAA,CACC,UAAU,SACV,MAAM,OACN,IAAAF,EACA,MAAM,uBACN,MAAM,kHACN,MAAO,CAAE,OAAQ,MAAO,YAAa,SAAU,GAAGC,CAAA,EACjD,GAAGjE,CAAA,CAAA"}
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { i as Rt } from "../index-
|
|
1
|
+
import { i as Rt } from "../index-CI5O_yH6.js";
|
|
2
2
|
import { i as kt } from "../index-DcmDxIXA.js";
|
|
3
|
-
import { L as
|
|
4
|
-
import { L as
|
|
5
|
-
import { i as
|
|
3
|
+
import { L as bt, a as Ct, b as St, c as wt, N as zt } from "../Navigate-SL_oMjPc.js";
|
|
4
|
+
import { L as Et } from "../LinkButton-Bk50AHHg.js";
|
|
5
|
+
import { i as Mt } from "../index-Dfo744Sb.js";
|
|
6
6
|
import { j as o } from "../jsx-runtime-C7wFtzyj.js";
|
|
7
|
-
import { StaticRouter as
|
|
8
|
-
import { ThemeProvider as
|
|
9
|
-
import T, { useEffect as B, cloneElement as
|
|
10
|
-
import { Provider as
|
|
11
|
-
import { C as
|
|
12
|
-
import { f as
|
|
7
|
+
import { StaticRouter as S, BrowserRouter as w, Routes as z } from "react-router";
|
|
8
|
+
import { ThemeProvider as O, CssBaseline as E, Tooltip as $, IconButton as M, Button as k, useScrollTrigger as F, AppBar as U, Container as A, Toolbar as D, List as N, Grid as R, Link as _, Stack as G, TablePagination as V, Box as Y } from "@mui/material";
|
|
9
|
+
import T, { useEffect as B, cloneElement as H } from "react";
|
|
10
|
+
import { Provider as P } from "react-redux";
|
|
11
|
+
import { C as Ut } from "../Countdown-BTyB1rrK.js";
|
|
12
|
+
import { f as q } from "../auth-CQ1InCxP.js";
|
|
13
13
|
import { wrap as J } from "../utils/general.es.js";
|
|
14
14
|
import { ContentCopy as K, Download as Q } from "@mui/icons-material";
|
|
15
15
|
import { I as Dt } from "../Image-C-f2ChBh.js";
|
|
16
16
|
import { h as W } from "../api-BvUiTeR7.js";
|
|
17
|
-
import { S as
|
|
17
|
+
import { S as _t } from "../api-BvUiTeR7.js";
|
|
18
18
|
import { u as X } from "../api-Cs4Y-WeI.js";
|
|
19
|
-
const
|
|
19
|
+
const b = ({
|
|
20
20
|
path: e,
|
|
21
21
|
routes: s,
|
|
22
22
|
header: t = /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
23
23
|
// TODO: "header = <Header />"
|
|
24
|
-
footer:
|
|
24
|
+
footer: n = /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
25
25
|
// TODO: "footer = <Footer />"
|
|
26
26
|
headerExcludePaths: r = [],
|
|
27
|
-
footerExcludePaths:
|
|
27
|
+
footerExcludePaths: i = []
|
|
28
28
|
}) => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
29
29
|
!r.includes(e) && t,
|
|
30
|
-
/* @__PURE__ */ o.jsx(
|
|
31
|
-
!
|
|
30
|
+
/* @__PURE__ */ o.jsx(z, { children: s }),
|
|
31
|
+
!i.includes(e) && n
|
|
32
32
|
] }), Z = (e) => {
|
|
33
|
-
const { pathname: s } =
|
|
34
|
-
return /* @__PURE__ */ o.jsx(
|
|
33
|
+
const { pathname: s } = q();
|
|
34
|
+
return /* @__PURE__ */ o.jsx(b, { path: s, ...e });
|
|
35
35
|
}, lt = ({
|
|
36
36
|
path: e,
|
|
37
37
|
theme: s,
|
|
38
38
|
store: t,
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
40
|
-
maxIdleSeconds:
|
|
40
|
+
maxIdleSeconds: n = 3600,
|
|
41
41
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
42
42
|
maxTotalSeconds: r = 3600,
|
|
43
|
-
...
|
|
44
|
-
}) => /* @__PURE__ */ o.jsxs(
|
|
45
|
-
/* @__PURE__ */ o.jsx(
|
|
46
|
-
/* @__PURE__ */ o.jsx(
|
|
43
|
+
...i
|
|
44
|
+
}) => /* @__PURE__ */ o.jsxs(O, { theme: s, children: [
|
|
45
|
+
/* @__PURE__ */ o.jsx(E, {}),
|
|
46
|
+
/* @__PURE__ */ o.jsx(P, {
|
|
47
47
|
store: t,
|
|
48
48
|
// https://github.com/remix-run/react-router/tree/main/examples/ssr
|
|
49
|
-
children: e !== void 0 ? /* @__PURE__ */ o.jsx(
|
|
49
|
+
children: e !== void 0 ? /* @__PURE__ */ o.jsx(S, { location: e, children: /* @__PURE__ */ o.jsx(b, { path: e, ...i }) }) : /* @__PURE__ */ o.jsx(w, { children: /* @__PURE__ */ o.jsx(Z, { ...i }) })
|
|
50
50
|
})
|
|
51
51
|
] }), mt = ({
|
|
52
52
|
open: e = !1,
|
|
53
53
|
onClick: s,
|
|
54
54
|
...t
|
|
55
55
|
}) => {
|
|
56
|
-
const [
|
|
56
|
+
const [n, r] = T.useState(e);
|
|
57
57
|
return T.useEffect(() => {
|
|
58
58
|
r(e);
|
|
59
59
|
}, [e]), /* @__PURE__ */ o.jsx(
|
|
60
|
-
|
|
60
|
+
$,
|
|
61
61
|
{
|
|
62
|
-
open:
|
|
62
|
+
open: n,
|
|
63
63
|
onMouseOver: () => {
|
|
64
|
-
|
|
64
|
+
n || r(!0);
|
|
65
65
|
},
|
|
66
66
|
onMouseLeave: () => {
|
|
67
67
|
r(!1);
|
|
@@ -69,7 +69,7 @@ const O = ({
|
|
|
69
69
|
onClick: J(
|
|
70
70
|
{
|
|
71
71
|
after: () => {
|
|
72
|
-
r(!
|
|
72
|
+
r(!n);
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
s
|
|
@@ -82,7 +82,7 @@ const O = ({
|
|
|
82
82
|
children: s = /* @__PURE__ */ o.jsx(K, {}),
|
|
83
83
|
...t
|
|
84
84
|
}) => /* @__PURE__ */ o.jsx(
|
|
85
|
-
|
|
85
|
+
M,
|
|
86
86
|
{
|
|
87
87
|
"data-testid": "copy-icon-button",
|
|
88
88
|
onClick: () => {
|
|
@@ -91,56 +91,56 @@ const O = ({
|
|
|
91
91
|
...t,
|
|
92
92
|
children: s
|
|
93
93
|
}
|
|
94
|
-
),
|
|
94
|
+
), pt = ({
|
|
95
95
|
children: e = "Download",
|
|
96
96
|
endIcon: s = /* @__PURE__ */ o.jsx(Q, {}),
|
|
97
97
|
file: t,
|
|
98
|
-
...
|
|
98
|
+
...n
|
|
99
99
|
}) => {
|
|
100
|
-
let r,
|
|
100
|
+
let r, i;
|
|
101
101
|
if ("mimeType" in t) {
|
|
102
102
|
const { text: c, mimeType: m, name: a, charset: u = "utf-8" } = t;
|
|
103
|
-
let { extension:
|
|
104
|
-
|
|
105
|
-
download: a +
|
|
103
|
+
let { extension: d } = t;
|
|
104
|
+
d || (d = "." + { plain: "txt", csv: "csv" }[m]), i = {
|
|
105
|
+
download: a + d,
|
|
106
106
|
href: `data:text/${m};charset=${u},${encodeURIComponent(c)}`
|
|
107
107
|
};
|
|
108
108
|
} else
|
|
109
|
-
r = URL.createObjectURL(t),
|
|
109
|
+
r = URL.createObjectURL(t), i = { href: r };
|
|
110
110
|
return B(() => () => {
|
|
111
111
|
r && URL.revokeObjectURL(r);
|
|
112
|
-
}, [r]), /* @__PURE__ */ o.jsx(k, { endIcon: s, ...
|
|
113
|
-
},
|
|
112
|
+
}, [r]), /* @__PURE__ */ o.jsx(k, { endIcon: s, ...n, ...i, children: e });
|
|
113
|
+
}, dt = ({
|
|
114
114
|
containerProps: e,
|
|
115
115
|
toolbarProps: s,
|
|
116
116
|
elevation: t = 4,
|
|
117
|
-
children:
|
|
117
|
+
children: n,
|
|
118
118
|
...r
|
|
119
119
|
}) => {
|
|
120
|
-
const
|
|
120
|
+
const i = F({
|
|
121
121
|
disableHysteresis: !0,
|
|
122
122
|
threshold: 0
|
|
123
123
|
});
|
|
124
|
-
return
|
|
125
|
-
/* @__PURE__ */ o.jsx(
|
|
124
|
+
return H(
|
|
125
|
+
/* @__PURE__ */ o.jsx(U, { elevation: t, ...r, children: /* @__PURE__ */ o.jsx(A, { ...e, children: /* @__PURE__ */ o.jsx(D, { ...s, children: n }) }) }),
|
|
126
126
|
{
|
|
127
|
-
position:
|
|
127
|
+
position: i ? "fixed" : "sticky"
|
|
128
128
|
}
|
|
129
129
|
);
|
|
130
|
-
},
|
|
130
|
+
}, xt = ({
|
|
131
131
|
children: e,
|
|
132
132
|
inputProps: s,
|
|
133
133
|
...t
|
|
134
134
|
}) => /* @__PURE__ */ o.jsxs(k, { component: "label", ...t, children: [
|
|
135
135
|
e,
|
|
136
136
|
/* @__PURE__ */ o.jsx("input", { type: "file", hidden: !0, ...s })
|
|
137
|
-
] }),
|
|
137
|
+
] }), ft = ({
|
|
138
138
|
styleType: e,
|
|
139
139
|
listProps: s = {},
|
|
140
140
|
pl: t = 4,
|
|
141
|
-
children:
|
|
141
|
+
children: n
|
|
142
142
|
}) => {
|
|
143
|
-
const { sx: r, ...
|
|
143
|
+
const { sx: r, ...i } = s, c = { display: "list-item" };
|
|
144
144
|
return /* @__PURE__ */ o.jsx(
|
|
145
145
|
N,
|
|
146
146
|
{
|
|
@@ -151,8 +151,8 @@ const O = ({
|
|
|
151
151
|
".MuiListItemText-root": c,
|
|
152
152
|
...r
|
|
153
153
|
},
|
|
154
|
-
...
|
|
155
|
-
children:
|
|
154
|
+
...i,
|
|
155
|
+
children: n
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
158
|
}, jt = ({
|
|
@@ -160,28 +160,30 @@ const O = ({
|
|
|
160
160
|
containerProps: s = {},
|
|
161
161
|
globalItemProps: t
|
|
162
162
|
}) => {
|
|
163
|
-
const
|
|
163
|
+
const n = Number(s.columns ?? 12), r = (m) => Math.floor(n / m), i = (m, a, u) => Math.floor(a / r(u)) * e.length + m, c = (m, a) => {
|
|
164
164
|
const u = e[0].length % r(a);
|
|
165
|
-
return u !== 0 && m === e[0].length - 1 ? (
|
|
165
|
+
return u !== 0 && m === e[0].length - 1 ? (n - u * a) / 2 : 0;
|
|
166
166
|
};
|
|
167
167
|
return /* @__PURE__ */ o.jsx(R, { container: !0, ...s, children: e.map(
|
|
168
|
-
(m, a) => m.map(({ element: u, itemProps:
|
|
168
|
+
(m, a) => m.map(({ element: u, itemProps: d = {} }, l) => /* @__PURE__ */ o.jsx(
|
|
169
169
|
R,
|
|
170
170
|
{
|
|
171
171
|
order: {
|
|
172
|
-
xs:
|
|
173
|
-
sm:
|
|
174
|
-
md:
|
|
175
|
-
lg:
|
|
176
|
-
xl:
|
|
172
|
+
xs: i(a, l, t.size.xs),
|
|
173
|
+
sm: i(a, l, t.size.sm),
|
|
174
|
+
md: i(a, l, t.size.md),
|
|
175
|
+
lg: i(a, l, t.size.lg),
|
|
176
|
+
xl: i(a, l, t.size.xl)
|
|
177
|
+
},
|
|
178
|
+
offset: {
|
|
179
|
+
xs: c(l, t.size.xs),
|
|
180
|
+
sm: c(l, t.size.sm),
|
|
181
|
+
md: c(l, t.size.md),
|
|
182
|
+
lg: c(l, t.size.lg),
|
|
183
|
+
xl: c(l, t.size.xl)
|
|
177
184
|
},
|
|
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),
|
|
183
185
|
...t,
|
|
184
|
-
...
|
|
186
|
+
...d,
|
|
185
187
|
children: u
|
|
186
188
|
},
|
|
187
189
|
`${a}-${l}`
|
|
@@ -192,7 +194,7 @@ const O = ({
|
|
|
192
194
|
options: s,
|
|
193
195
|
...t
|
|
194
196
|
}) => /* @__PURE__ */ o.jsx(
|
|
195
|
-
|
|
197
|
+
_,
|
|
196
198
|
{
|
|
197
199
|
...t,
|
|
198
200
|
onClick: () => {
|
|
@@ -203,41 +205,41 @@ const O = ({
|
|
|
203
205
|
children: e,
|
|
204
206
|
useLazyListQuery: s,
|
|
205
207
|
preferCacheValue: t,
|
|
206
|
-
filters:
|
|
208
|
+
filters: n,
|
|
207
209
|
page: r = 0,
|
|
208
|
-
rowsPerPage:
|
|
210
|
+
rowsPerPage: i = 50,
|
|
209
211
|
rowsPerPageOptions: c = [50, 100, 150],
|
|
210
212
|
stackProps: m,
|
|
211
213
|
onRowsPerPageChange: a,
|
|
212
214
|
onPageChange: u,
|
|
213
|
-
...
|
|
215
|
+
...d
|
|
214
216
|
}) => {
|
|
215
|
-
const [l, g] = s(), [{ limit:
|
|
217
|
+
const [l, g] = s(), [{ limit: x, page: L, offset: j }, v] = X({
|
|
216
218
|
page: r,
|
|
217
|
-
limit:
|
|
219
|
+
limit: i
|
|
218
220
|
});
|
|
219
221
|
B(
|
|
220
222
|
() => {
|
|
221
|
-
l({ limit:
|
|
223
|
+
l({ limit: x, offset: j, ...n }, t);
|
|
222
224
|
},
|
|
223
225
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
224
226
|
[
|
|
225
227
|
l,
|
|
226
|
-
|
|
228
|
+
x,
|
|
227
229
|
j,
|
|
228
230
|
// eslint-disable-next-line react-hooks/exhaustive-deps,@typescript-eslint/no-unsafe-assignment
|
|
229
|
-
...Object.values(
|
|
231
|
+
...Object.values(n || {}),
|
|
230
232
|
t
|
|
231
233
|
]
|
|
232
234
|
);
|
|
233
235
|
const { count: y, max_limit: h } = g.data || {};
|
|
234
236
|
return h && (c = c.filter(
|
|
235
|
-
(
|
|
236
|
-
)), /* @__PURE__ */ o.jsxs(
|
|
237
|
+
(p) => p <= h
|
|
238
|
+
)), /* @__PURE__ */ o.jsxs(G, { ...m, children: [
|
|
237
239
|
W(
|
|
238
240
|
g,
|
|
239
|
-
({ data:
|
|
240
|
-
limit:
|
|
241
|
+
({ data: p }) => e(p, {
|
|
242
|
+
limit: x,
|
|
241
243
|
page: L,
|
|
242
244
|
offset: j,
|
|
243
245
|
count: y,
|
|
@@ -245,20 +247,20 @@ const O = ({
|
|
|
245
247
|
})
|
|
246
248
|
),
|
|
247
249
|
/* @__PURE__ */ o.jsx(
|
|
248
|
-
|
|
250
|
+
V,
|
|
249
251
|
{
|
|
250
252
|
component: "div",
|
|
251
253
|
count: y ?? 0,
|
|
252
|
-
rowsPerPage:
|
|
253
|
-
onRowsPerPageChange: (
|
|
254
|
-
v({ limit: parseInt(
|
|
254
|
+
rowsPerPage: x,
|
|
255
|
+
onRowsPerPageChange: (p) => {
|
|
256
|
+
v({ limit: parseInt(p.target.value), page: 0 }), a && a(p);
|
|
255
257
|
},
|
|
256
258
|
page: L,
|
|
257
|
-
onPageChange: (
|
|
258
|
-
v(({ limit:
|
|
259
|
+
onPageChange: (p, f) => {
|
|
260
|
+
v(({ limit: C }) => ({ limit: C, page: f })), u && u(p, f);
|
|
259
261
|
},
|
|
260
|
-
rowsPerPageOptions: c.sort((
|
|
261
|
-
...
|
|
262
|
+
rowsPerPageOptions: c.sort((p, f) => p - f),
|
|
263
|
+
...d
|
|
262
264
|
}
|
|
263
265
|
)
|
|
264
266
|
] });
|
|
@@ -267,7 +269,7 @@ const O = ({
|
|
|
267
269
|
style: s = {},
|
|
268
270
|
...t
|
|
269
271
|
}) => /* @__PURE__ */ o.jsx(
|
|
270
|
-
|
|
272
|
+
Y,
|
|
271
273
|
{
|
|
272
274
|
component: "iframe",
|
|
273
275
|
width: "100%",
|
|
@@ -282,25 +284,25 @@ export {
|
|
|
282
284
|
lt as App,
|
|
283
285
|
mt as ClickableTooltip,
|
|
284
286
|
ut as CopyIconButton,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
287
|
+
Ut as Countdown,
|
|
288
|
+
pt as DownloadFileButton,
|
|
289
|
+
dt as ElevatedAppBar,
|
|
288
290
|
Dt as Image,
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
291
|
+
xt as InputFileButton,
|
|
292
|
+
ft as ItemizedList,
|
|
293
|
+
bt as Link,
|
|
294
|
+
Et as LinkButton,
|
|
295
|
+
Ct as LinkIconButton,
|
|
296
|
+
St as LinkListItem,
|
|
297
|
+
wt as LinkTab,
|
|
298
|
+
zt as Navigate,
|
|
297
299
|
jt as OrderedGrid,
|
|
298
300
|
ht as ScrollIntoViewLink,
|
|
299
|
-
|
|
301
|
+
_t as SyncError,
|
|
300
302
|
gt as TablePagination,
|
|
301
303
|
Lt as YouTubeVideo,
|
|
302
304
|
Rt as forms,
|
|
303
305
|
kt as pages,
|
|
304
|
-
|
|
306
|
+
Mt as tables
|
|
305
307
|
};
|
|
306
308
|
//# sourceMappingURL=index.es.js.map
|