wcz-test 6.12.9 → 6.13.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.
@@ -0,0 +1,39 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useEventCallback, Dialog, DialogTitle, DialogContent, DialogActions, Button } from "@mui/material";
3
+ import { createContext, useContext } from "react";
4
+ import { useTranslation } from "react-i18next";
5
+ const DialogsContext = createContext({});
6
+ function AlertDialog({ open, payload, onClose }) {
7
+ const { t } = useTranslation();
8
+ return /* @__PURE__ */ jsxs(Dialog, { maxWidth: "xs", fullWidth: true, open, onClose: () => onClose(), disableRestoreFocus: true, children: [
9
+ /* @__PURE__ */ jsx(DialogTitle, { children: payload.title ?? t("Layout.Dialog.Alert") }),
10
+ /* @__PURE__ */ jsx(DialogContent, { children: payload.message }),
11
+ /* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(Button, { onClick: () => onClose(), autoFocus: true, children: t("Layout.Dialog.Confirm") }) })
12
+ ] });
13
+ }
14
+ function ConfirmDialog({ open, payload, onClose }) {
15
+ const { t } = useTranslation();
16
+ return /* @__PURE__ */ jsxs(Dialog, { maxWidth: "xs", fullWidth: true, open, onClose: () => onClose(false), disableRestoreFocus: true, children: [
17
+ /* @__PURE__ */ jsx(DialogTitle, { children: payload.title ?? t("Layout.Dialog.Confirm") }),
18
+ /* @__PURE__ */ jsx(DialogContent, { children: payload.message }),
19
+ /* @__PURE__ */ jsxs(DialogActions, { children: [
20
+ /* @__PURE__ */ jsx(Button, { onClick: () => onClose(false), children: payload.cancelText ?? t("Layout.Dialog.Cancel") }),
21
+ /* @__PURE__ */ jsx(Button, { onClick: () => onClose(true), autoFocus: true, children: t("Layout.Dialog.Confirm") })
22
+ ] })
23
+ ] });
24
+ }
25
+ function useDialogs() {
26
+ const { open, close } = useContext(DialogsContext);
27
+ const alert = useEventCallback(
28
+ (message, { ...options } = {}) => open(AlertDialog, { ...options, message })
29
+ );
30
+ const confirm = useEventCallback(
31
+ (message, { ...options } = {}) => open(ConfirmDialog, { ...options, message })
32
+ );
33
+ return { alert, confirm, open, close };
34
+ }
35
+ export {
36
+ DialogsContext as D,
37
+ useDialogs as u
38
+ };
39
+ //# sourceMappingURL=DialogsHooks-BlUsVlfv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogsHooks-BlUsVlfv.js","sources":["../src/contexts/DialogsContext.ts","../src/hooks/DialogsHooks.tsx"],"sourcesContent":["import { createContext } from \"react\";\r\nimport type { CloseDialog, OpenDialog } from \"../hooks/DialogsHooks\";\r\n\r\nexport interface DialogsContextValue {\r\n open: OpenDialog;\r\n close: CloseDialog;\r\n}\r\n\r\nexport const DialogsContext = createContext<DialogsContextValue>({} as DialogsContextValue);","import { Button, Dialog, DialogActions, DialogContent, DialogTitle, useEventCallback } from \"@mui/material\";\r\nimport { useContext } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { DialogsContext } from \"../contexts/DialogsContext\";\r\nimport type { ReactNode } from \"react\";\r\n\r\nexport interface OpenDialogOptions<TResult> {\r\n onClose?: (result: TResult) => Promise<void>;\r\n}\r\n\r\nexport interface AlertOptions {\r\n title?: ReactNode;\r\n}\r\n\r\nexport interface ConfirmOptions {\r\n title?: ReactNode;\r\n cancelText?: ReactNode;\r\n}\r\n\r\nexport interface DialogProps<TPayload = undefined, TResult = void> {\r\n payload: TPayload;\r\n open: boolean;\r\n onClose: (result: TResult) => Promise<void>;\r\n}\r\n\r\nexport type OpenAlertDialog = (message: ReactNode, options?: AlertOptions) => Promise<void>;\r\n\r\nexport type OpenConfirmDialog = (message: ReactNode, options?: ConfirmOptions) => Promise<boolean>;\r\n\r\nexport type DialogComponent<TPayload, TResult> = React.ComponentType<DialogProps<TPayload, TResult>>;\r\n\r\nexport interface OpenDialog {\r\n <TPayload extends undefined, TResult>(Component: DialogComponent<TPayload, TResult>, payload?: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;\r\n <TPayload, TResult>(Component: DialogComponent<TPayload, TResult>, payload: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;\r\n}\r\n\r\nexport type CloseDialog = <TResult>(dialog: Promise<TResult>, result: TResult) => Promise<TResult>;\r\n\r\nexport interface AlertDialogPayload extends AlertOptions {\r\n message: ReactNode;\r\n}\r\n\r\nexport type AlertDialogProps = DialogProps<AlertDialogPayload, void>\r\n\r\nexport function AlertDialog({ open, payload, onClose }: Readonly<AlertDialogProps>) {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <Dialog maxWidth=\"xs\" fullWidth open={open} onClose={() => onClose()} disableRestoreFocus>\r\n <DialogTitle>{payload.title ?? t(\"Layout.Dialog.Alert\")}</DialogTitle>\r\n <DialogContent>{payload.message}</DialogContent>\r\n <DialogActions>\r\n <Button onClick={() => onClose()} autoFocus>\r\n {t(\"Layout.Dialog.Confirm\")}\r\n </Button>\r\n </DialogActions>\r\n </Dialog>\r\n );\r\n}\r\n\r\nexport interface ConfirmDialogPayload extends ConfirmOptions {\r\n message: ReactNode;\r\n}\r\n\r\nexport type ConfirmDialogProps = DialogProps<ConfirmDialogPayload, boolean>\r\n\r\nexport function ConfirmDialog({ open, payload, onClose }: Readonly<ConfirmDialogProps>) {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <Dialog maxWidth=\"xs\" fullWidth open={open} onClose={() => onClose(false)} disableRestoreFocus>\r\n <DialogTitle>{payload.title ?? t(\"Layout.Dialog.Confirm\")}</DialogTitle>\r\n <DialogContent>{payload.message}</DialogContent>\r\n <DialogActions>\r\n <Button onClick={() => onClose(false)}>\r\n {payload.cancelText ?? t(\"Layout.Dialog.Cancel\")}\r\n </Button>\r\n <Button onClick={() => onClose(true)} autoFocus>\r\n {t(\"Layout.Dialog.Confirm\")}\r\n </Button>\r\n </DialogActions>\r\n </Dialog>\r\n );\r\n}\r\n\r\ninterface DialogHook {\r\n alert: OpenAlertDialog;\r\n confirm: OpenConfirmDialog;\r\n open: OpenDialog;\r\n close: CloseDialog;\r\n}\r\n\r\nexport function useDialogs(): DialogHook {\r\n const { open, close } = useContext(DialogsContext);\r\n\r\n const alert = useEventCallback<OpenAlertDialog>((message, { ...options } = {}) =>\r\n open(AlertDialog, { ...options, message }),\r\n );\r\n\r\n const confirm = useEventCallback<OpenConfirmDialog>((message, { ...options } = {}) =>\r\n open(ConfirmDialog, { ...options, message }),\r\n );\r\n\r\n return { alert, confirm, open, close };\r\n}\r\n"],"names":[],"mappings":";;;;AAQO,MAAM,iBAAiB,cAAmC,CAAA,CAAyB;ACoCnF,SAAS,YAAY,EAAE,MAAM,SAAS,WAAuC;AAChF,QAAM,EAAE,EAAA,IAAM,eAAA;AAEd,SACI,qBAAC,QAAA,EAAO,UAAS,MAAK,WAAS,MAAC,MAAY,SAAS,MAAM,QAAA,GAAW,qBAAmB,MACrF,UAAA;AAAA,IAAA,oBAAC,aAAA,EAAa,UAAA,QAAQ,SAAS,EAAE,qBAAqB,GAAE;AAAA,IACxD,oBAAC,eAAA,EAAe,UAAA,QAAQ,QAAA,CAAQ;AAAA,IAChC,oBAAC,eAAA,EACG,UAAA,oBAAC,QAAA,EAAO,SAAS,MAAM,QAAA,GAAW,WAAS,MACtC,UAAA,EAAE,uBAAuB,GAC9B,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;AAQO,SAAS,cAAc,EAAE,MAAM,SAAS,WAAyC;AACpF,QAAM,EAAE,EAAA,IAAM,eAAA;AAEd,SACI,qBAAC,QAAA,EAAO,UAAS,MAAK,WAAS,MAAC,MAAY,SAAS,MAAM,QAAQ,KAAK,GAAG,qBAAmB,MAC1F,UAAA;AAAA,IAAA,oBAAC,aAAA,EAAa,UAAA,QAAQ,SAAS,EAAE,uBAAuB,GAAE;AAAA,IAC1D,oBAAC,eAAA,EAAe,UAAA,QAAQ,QAAA,CAAQ;AAAA,yBAC/B,eAAA,EACG,UAAA;AAAA,MAAA,oBAAC,QAAA,EAAO,SAAS,MAAM,QAAQ,KAAK,GAC/B,UAAA,QAAQ,cAAc,EAAE,sBAAsB,EAAA,CACnD;AAAA,MACA,oBAAC,QAAA,EAAO,SAAS,MAAM,QAAQ,IAAI,GAAG,WAAS,MAC1C,UAAA,EAAE,uBAAuB,EAAA,CAC9B;AAAA,IAAA,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;AASO,SAAS,aAAyB;AACrC,QAAM,EAAE,MAAM,UAAU,WAAW,cAAc;AAEjD,QAAM,QAAQ;AAAA,IAAkC,CAAC,SAAS,EAAE,GAAG,YAAY,CAAA,MACvE,KAAK,aAAa,EAAE,GAAG,SAAS,SAAS;AAAA,EAAA;AAG7C,QAAM,UAAU;AAAA,IAAoC,CAAC,SAAS,EAAE,GAAG,YAAY,CAAA,MAC3E,KAAK,eAAe,EAAE,GAAG,SAAS,SAAS;AAAA,EAAA;AAG/C,SAAO,EAAE,OAAO,SAAS,MAAM,MAAA;AACnC;"}
@@ -1,15 +1,15 @@
1
- import { j as jsxRuntimeExports } from "./DialogsHooks-Bi8dZoyu.js";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { ListItemButton } from "@mui/material";
3
3
  import { createLink } from "@tanstack/react-router";
4
4
  import React from "react";
5
5
  const Component = React.forwardRef(function ButtonComponent(props, reference) {
6
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemButton, { ref: reference, component: "a", ...props });
6
+ return /* @__PURE__ */ jsx(ListItemButton, { ref: reference, component: "a", ...props });
7
7
  });
8
8
  const CreatedComponent = createLink(Component);
9
9
  const RouterListItemButton = (props) => {
10
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent, { ...props });
10
+ return /* @__PURE__ */ jsx(CreatedComponent, { ...props });
11
11
  };
12
12
  export {
13
13
  RouterListItemButton as R
14
14
  };
15
- //# sourceMappingURL=RouterListItemButton-CHS7rofI.js.map
15
+ //# sourceMappingURL=RouterListItemButton-Cx7rXEfm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouterListItemButton-CHS7rofI.js","sources":["../src/components/router/RouterListItemButton.tsx"],"sourcesContent":["import { ListItemButton } from \"@mui/material\";\r\nimport { createLink } from \"@tanstack/react-router\";\r\nimport React from \"react\";\r\nimport type { ListItemButtonProps } from \"@mui/material\";\r\nimport type { LinkComponent } from \"@tanstack/react-router\";\r\n\r\nconst Component = React.forwardRef<HTMLAnchorElement, ListItemButtonProps<\"a\">>(function ButtonComponent(props, reference) {\r\n return <ListItemButton ref={reference} component=\"a\" {...props} />;\r\n});\r\n\r\nconst CreatedComponent = createLink(Component);\r\n\r\nexport const RouterListItemButton: LinkComponent<typeof Component> = (props) => {\r\n return <CreatedComponent {...props} />;\r\n};\r\n"],"names":["jsx"],"mappings":";;;;AAMA,MAAM,YAAY,MAAM,WAAwD,SAAS,gBAAgB,OAAO,WAAW;AACvH,+CAAQ,gBAAA,EAAe,KAAK,WAAW,WAAU,KAAK,GAAG,OAAO;AACpE,CAAC;AAED,MAAM,mBAAmB,WAAW,SAAS;AAEtC,MAAM,uBAAwD,CAAC,UAAU;AAC5E,SAAOA,sCAAC,kBAAA,EAAkB,GAAG,MAAA,CAAO;AACxC;"}
1
+ {"version":3,"file":"RouterListItemButton-Cx7rXEfm.js","sources":["../src/components/router/RouterListItemButton.tsx"],"sourcesContent":["import { ListItemButton } from \"@mui/material\";\r\nimport { createLink } from \"@tanstack/react-router\";\r\nimport React from \"react\";\r\nimport type { ListItemButtonProps } from \"@mui/material\";\r\nimport type { LinkComponent } from \"@tanstack/react-router\";\r\n\r\nconst Component = React.forwardRef<HTMLAnchorElement, ListItemButtonProps<\"a\">>(function ButtonComponent(props, reference) {\r\n return <ListItemButton ref={reference} component=\"a\" {...props} />;\r\n});\r\n\r\nconst CreatedComponent = createLink(Component);\r\n\r\nexport const RouterListItemButton: LinkComponent<typeof Component> = (props) => {\r\n return <CreatedComponent {...props} />;\r\n};\r\n"],"names":[],"mappings":";;;;AAMA,MAAM,YAAY,MAAM,WAAwD,SAAS,gBAAgB,OAAO,WAAW;AACvH,6BAAQ,gBAAA,EAAe,KAAK,WAAW,WAAU,KAAK,GAAG,OAAO;AACpE,CAAC;AAED,MAAM,mBAAmB,WAAW,SAAS;AAEtC,MAAM,uBAAwD,CAAC,UAAU;AAC5E,SAAO,oBAAC,kBAAA,EAAkB,GAAG,MAAA,CAAO;AACxC;"}
@@ -0,0 +1,79 @@
1
+ import { createTheme, darken, lighten } from "@mui/material";
2
+ import { grey } from "@mui/material/colors";
3
+ import { enUS as enUS$2, csCZ as csCZ$2 } from "@mui/material/locale";
4
+ import { enUS, csCZ } from "@mui/x-data-grid/locales";
5
+ import { enUS as enUS$1, csCZ as csCZ$1 } from "@mui/x-date-pickers/locales";
6
+ import { useTranslation } from "react-i18next";
7
+ import { createAuthClient } from "better-auth/react";
8
+ import { c as clientEnv } from "./env-CoxTjaDr.js";
9
+ const WISTRON_PRIMARY_COLOR = "#00506E";
10
+ const WISTRON_SECONDARY_COLOR = "#64DC00";
11
+ const LOCALE_MAP = {
12
+ cs: [csCZ, csCZ$1, csCZ$2],
13
+ en: [enUS, enUS$1, enUS$2]
14
+ };
15
+ const useGetTheme = (theme) => {
16
+ const { i18n } = useTranslation();
17
+ return createTheme(
18
+ {
19
+ cssVariables: {
20
+ colorSchemeSelector: "data-mui-color-scheme"
21
+ },
22
+ colorSchemes: {
23
+ light: {
24
+ palette: {
25
+ primary: { main: WISTRON_PRIMARY_COLOR },
26
+ secondary: { main: WISTRON_SECONDARY_COLOR }
27
+ }
28
+ },
29
+ dark: {
30
+ palette: {
31
+ primary: { main: lighten(WISTRON_PRIMARY_COLOR, 0.5) },
32
+ secondary: { main: darken(WISTRON_SECONDARY_COLOR, 0.5) }
33
+ }
34
+ },
35
+ ...theme?.colorSchemes
36
+ },
37
+ components: {
38
+ MuiCssBaseline: {
39
+ styleOverrides: ({ palette }) => {
40
+ return {
41
+ body: {
42
+ "&::-webkit-scrollbar, & *::-webkit-scrollbar": {
43
+ width: "0.7em",
44
+ height: "0.7em"
45
+ },
46
+ "&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track": {
47
+ backgroundColor: palette.mode === "dark" ? grey[900] : grey[200],
48
+ borderRadius: "5px"
49
+ },
50
+ "&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
51
+ backgroundColor: palette.mode === "dark" ? grey[800] : grey[400],
52
+ borderRadius: "10px"
53
+ },
54
+ "&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": {
55
+ backgroundColor: palette.mode === "dark" ? grey[700] : grey[500]
56
+ },
57
+ "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": {
58
+ backgroundColor: "transparent"
59
+ }
60
+ }
61
+ };
62
+ }
63
+ },
64
+ ...theme?.components
65
+ }
66
+ },
67
+ ...LOCALE_MAP[i18n.language]
68
+ );
69
+ };
70
+ const authClient = createAuthClient({
71
+ baseURL: clientEnv.VITE_API_URL
72
+ });
73
+ export {
74
+ WISTRON_PRIMARY_COLOR as W,
75
+ authClient as a,
76
+ WISTRON_SECONDARY_COLOR as b,
77
+ useGetTheme as u
78
+ };
79
+ //# sourceMappingURL=auth-client-o9U0_qmf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-client-o9U0_qmf.js","sources":["../src/hooks/ThemeHook.ts","../src/lib/auth/auth-client.ts"],"sourcesContent":["import { createTheme, darken, lighten } from \"@mui/material\";\r\nimport { grey } from \"@mui/material/colors\";\r\nimport { csCZ, enUS } from \"@mui/material/locale\";\r\nimport { csCZ as dataGridCsCz, enUS as dataGridEnUs } from \"@mui/x-data-grid/locales\";\r\nimport { csCZ as datePickersCsCz, enUS as datePickersEnUs } from \"@mui/x-date-pickers/locales\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport type { CssVarsThemeOptions } from \"@mui/material\";\r\n\r\nexport const WISTRON_PRIMARY_COLOR = \"#00506E\";\r\nexport const WISTRON_SECONDARY_COLOR = \"#64DC00\";\r\n\r\nconst LOCALE_MAP = {\r\n cs: [dataGridCsCz, datePickersCsCz, csCZ],\r\n en: [dataGridEnUs, datePickersEnUs, enUS],\r\n} as const;\r\n\r\nexport const useGetTheme = (theme?: Pick<CssVarsThemeOptions, \"colorSchemes\" | \"components\">) => {\r\n const { i18n } = useTranslation();\r\n\r\n return createTheme(\r\n {\r\n cssVariables: {\r\n colorSchemeSelector: \"data-mui-color-scheme\"\r\n },\r\n colorSchemes: {\r\n light: {\r\n palette: {\r\n primary: { main: WISTRON_PRIMARY_COLOR },\r\n secondary: { main: WISTRON_SECONDARY_COLOR },\r\n },\r\n },\r\n dark: {\r\n palette: {\r\n primary: { main: lighten(WISTRON_PRIMARY_COLOR, 0.5) },\r\n secondary: { main: darken(WISTRON_SECONDARY_COLOR, 0.5) },\r\n },\r\n },\r\n ...theme?.colorSchemes\r\n },\r\n components: {\r\n MuiCssBaseline: {\r\n styleOverrides: ({ palette }) => {\r\n return {\r\n body: {\r\n \"&::-webkit-scrollbar, & *::-webkit-scrollbar\": {\r\n width: \"0.7em\",\r\n height: \"0.7em\",\r\n },\r\n \"&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track\": {\r\n backgroundColor:\r\n palette.mode === \"dark\" ? grey[900] : grey[200],\r\n borderRadius: \"5px\",\r\n },\r\n \"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb\": {\r\n backgroundColor:\r\n palette.mode === \"dark\" ? grey[800] : grey[400],\r\n borderRadius: \"10px\",\r\n },\r\n \"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover\":\r\n {\r\n backgroundColor:\r\n palette.mode === \"dark\" ? grey[700] : grey[500],\r\n },\r\n \"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner\": {\r\n backgroundColor: \"transparent\",\r\n },\r\n },\r\n };\r\n },\r\n },\r\n ...theme?.components\r\n },\r\n },\r\n ...LOCALE_MAP[i18n.language as keyof typeof LOCALE_MAP]\r\n );\r\n};\r\n","import { createAuthClient } from \"better-auth/react\";\r\nimport { clientEnv } from \"~/env\";\r\n\r\nexport const authClient = createAuthClient({\r\n baseURL: clientEnv.VITE_API_URL,\r\n});\r\n"],"names":["dataGridCsCz","datePickersCsCz","csCZ","dataGridEnUs","datePickersEnUs","enUS"],"mappings":";;;;;;;;AAQO,MAAM,wBAAwB;AAC9B,MAAM,0BAA0B;AAEvC,MAAM,aAAa;AAAA,EACf,IAAI,CAACA,MAAcC,QAAiBC,MAAI;AAAA,EACxC,IAAI,CAACC,MAAcC,QAAiBC,MAAI;AAC5C;AAEO,MAAM,cAAc,CAAC,UAAqE;AAC7F,QAAM,EAAE,KAAA,IAAS,eAAA;AAEjB,SAAO;AAAA,IACH;AAAA,MACI,cAAc;AAAA,QACV,qBAAqB;AAAA,MAAA;AAAA,MAEzB,cAAc;AAAA,QACV,OAAO;AAAA,UACH,SAAS;AAAA,YACL,SAAS,EAAE,MAAM,sBAAA;AAAA,YACjB,WAAW,EAAE,MAAM,wBAAA;AAAA,UAAwB;AAAA,QAC/C;AAAA,QAEJ,MAAM;AAAA,UACF,SAAS;AAAA,YACL,SAAS,EAAE,MAAM,QAAQ,uBAAuB,GAAG,EAAA;AAAA,YACnD,WAAW,EAAE,MAAM,OAAO,yBAAyB,GAAG,EAAA;AAAA,UAAE;AAAA,QAC5D;AAAA,QAEJ,GAAG,OAAO;AAAA,MAAA;AAAA,MAEd,YAAY;AAAA,QACR,gBAAgB;AAAA,UACZ,gBAAgB,CAAC,EAAE,cAAc;AAC7B,mBAAO;AAAA,cACH,MAAM;AAAA,gBACF,gDAAgD;AAAA,kBAC5C,OAAO;AAAA,kBACP,QAAQ;AAAA,gBAAA;AAAA,gBAEZ,4DAA4D;AAAA,kBACxD,iBACI,QAAQ,SAAS,SAAS,KAAK,GAAG,IAAI,KAAK,GAAG;AAAA,kBAClD,cAAc;AAAA,gBAAA;AAAA,gBAElB,4DAA4D;AAAA,kBACxD,iBACI,QAAQ,SAAS,SAAS,KAAK,GAAG,IAAI,KAAK,GAAG;AAAA,kBAClD,cAAc;AAAA,gBAAA;AAAA,gBAElB,wEACA;AAAA,kBACI,iBACI,QAAQ,SAAS,SAAS,KAAK,GAAG,IAAI,KAAK,GAAG;AAAA,gBAAA;AAAA,gBAEtD,8DAA8D;AAAA,kBAC1D,iBAAiB;AAAA,gBAAA;AAAA,cACrB;AAAA,YACJ;AAAA,UAER;AAAA,QAAA;AAAA,QAEJ,GAAG,OAAO;AAAA,MAAA;AAAA,IACd;AAAA,IAEJ,GAAG,WAAW,KAAK,QAAmC;AAAA,EAAA;AAE9D;ACxEO,MAAM,aAAa,iBAAiB;AAAA,EACvC,SAAS,UAAU;AACvB,CAAC;"}
package/dist/client.js CHANGED
@@ -1,4 +1,4 @@
1
- import { W, b, a } from "./auth-client-B6cIXYDV.js";
1
+ import { W, b, a } from "./auth-client-o9U0_qmf.js";
2
2
  import { P } from "./utils-JYv9O0GI.js";
3
3
  export {
4
4
  P as Platform,
@@ -1,4 +1,4 @@
1
- import { j as jsxRuntimeExports, u as useDialogs } from "./DialogsHooks-Bi8dZoyu.js";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Typography, Stack, Box, useTheme, Paper, Menu, List, ListItemButton, ListItemIcon, ListItemText, ImageListItem, ImageListItemBar, IconButton, Tooltip, Dialog, Fab, Chip, Button, Link, Tab, Divider } from "@mui/material";
3
3
  import React, { useRef, useState, useEffectEvent, useEffect, createContext, useContext, Fragment } from "react";
4
4
  import CloudUpload from "@mui/icons-material/CloudUpload";
@@ -9,6 +9,7 @@ import { grey } from "@mui/material/colors";
9
9
  import { useInView } from "react-intersection-observer";
10
10
  import Delete from "@mui/icons-material/Delete";
11
11
  import FileDownload from "@mui/icons-material/FileDownload";
12
+ import { u as useDialogs } from "./DialogsHooks-BlUsVlfv.js";
12
13
  import { c as useDownloadFile, f as useDeleteFile, a as useGetFileThumbnail, d as useOpenFile, b as useGetFile, u as useGetFileMetas } from "./FileHooks-BbjesS5D.js";
13
14
  import AttachFile from "@mui/icons-material/AttachFile";
14
15
  import Image from "@mui/icons-material/Image";
@@ -17,7 +18,7 @@ import Close from "@mui/icons-material/Close";
17
18
  import Edit from "@mui/icons-material/Edit";
18
19
  import { createLink } from "@tanstack/react-router";
19
20
  import { GridActionsCellItem } from "@mui/x-data-grid-premium";
20
- import { R } from "./RouterListItemButton-CHS7rofI.js";
21
+ import { R } from "./RouterListItemButton-Cx7rXEfm.js";
21
22
  const TypographyWithIcon = ({ startIcon, endIcon, children, sx, ...props }) => {
22
23
  const iconSx = {
23
24
  display: "inline-flex",
@@ -29,7 +30,7 @@ const TypographyWithIcon = ({ startIcon, endIcon, children, sx, ...props }) => {
29
30
  display: "block"
30
31
  }
31
32
  };
32
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
33
+ return /* @__PURE__ */ jsxs(
33
34
  Typography,
34
35
  {
35
36
  component: "span",
@@ -42,9 +43,9 @@ const TypographyWithIcon = ({ startIcon, endIcon, children, sx, ...props }) => {
42
43
  gap: 1,
43
44
  ...props,
44
45
  children: [
45
- startIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { component: "span", sx: iconSx, children: startIcon }),
46
- /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { component: "span", sx: { display: "inline", lineHeight: "inherit" }, children }),
47
- endIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { component: "span", sx: iconSx, children: endIcon })
46
+ startIcon && /* @__PURE__ */ jsx(Stack, { component: "span", sx: iconSx, children: startIcon }),
47
+ /* @__PURE__ */ jsx(Stack, { component: "span", sx: { display: "inline", lineHeight: "inherit" }, children }),
48
+ endIcon && /* @__PURE__ */ jsx(Stack, { component: "span", sx: iconSx, children: endIcon })
48
49
  ]
49
50
  }
50
51
  );
@@ -72,7 +73,7 @@ const Fullscreen = ({ children, sx, ...props }) => {
72
73
  ro.disconnect();
73
74
  };
74
75
  }, []);
75
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
76
+ return /* @__PURE__ */ jsx(
76
77
  Box,
77
78
  {
78
79
  ref: reference,
@@ -113,10 +114,10 @@ const Dropzone = ({ sx, ...props }) => {
113
114
  ...isDragAccept ? { borderColor: theme.palette.success.main } : {},
114
115
  ...isDragReject ? { borderColor: theme.palette.error.main } : {}
115
116
  };
116
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Paper, { variant: "outlined", ...getRootProps({ style }), sx, children: [
117
- /* @__PURE__ */ jsxRuntimeExports.jsx("input", { ...getInputProps(), style: { display: "none" } }),
118
- /* @__PURE__ */ jsxRuntimeExports.jsx(CloudUpload, {}),
119
- /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { children: t("Layout.File.DragSomeFilesHereOrClickToSelectThem") })
117
+ return /* @__PURE__ */ jsxs(Paper, { variant: "outlined", ...getRootProps({ style }), sx, children: [
118
+ /* @__PURE__ */ jsx("input", { ...getInputProps(), style: { display: "none" } }),
119
+ /* @__PURE__ */ jsx(CloudUpload, {}),
120
+ /* @__PURE__ */ jsx(Typography, { children: t("Layout.File.DragSomeFilesHereOrClickToSelectThem") })
120
121
  ] });
121
122
  };
122
123
  const FileContext = createContext(null);
@@ -150,7 +151,7 @@ const ActionsMenu = ({ meta, menu, setMenu }) => {
150
151
  onDelete({ remainingFileMetas, deletedFileMeta: meta });
151
152
  }
152
153
  };
153
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
154
+ return /* @__PURE__ */ jsx(
154
155
  Menu,
155
156
  {
156
157
  open: menu !== null,
@@ -158,14 +159,14 @@ const ActionsMenu = ({ meta, menu, setMenu }) => {
158
159
  anchorReference: "anchorPosition",
159
160
  variant: "menu",
160
161
  anchorPosition: menu === null ? void 0 : { top: menu.mouseY, left: menu.mouseX },
161
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(List, { disablePadding: true, children: [
162
- actions?.download !== false && /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: handleOnDownload, disabled: isDownloading, children: [
163
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(FileDownload, {}) }),
164
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { children: t("Layout.File.Download") })
162
+ children: /* @__PURE__ */ jsxs(List, { disablePadding: true, children: [
163
+ actions?.download !== false && /* @__PURE__ */ jsxs(ListItemButton, { onClick: handleOnDownload, disabled: isDownloading, children: [
164
+ /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(FileDownload, {}) }),
165
+ /* @__PURE__ */ jsx(ListItemText, { children: t("Layout.File.Download") })
165
166
  ] }),
166
- actions?.delete !== false && /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: handleOnDelete, disabled: isDeleting, children: [
167
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Delete, {}) }),
168
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { children: t("Layout.File.Delete") })
167
+ actions?.delete !== false && /* @__PURE__ */ jsxs(ListItemButton, { onClick: handleOnDelete, disabled: isDeleting, children: [
168
+ /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Delete, {}) }),
169
+ /* @__PURE__ */ jsx(ListItemText, { children: t("Layout.File.Delete") })
169
170
  ] })
170
171
  ] })
171
172
  }
@@ -174,7 +175,7 @@ const ActionsMenu = ({ meta, menu, setMenu }) => {
174
175
  const IMAGE_SIZE = 150;
175
176
  const FileViewerGrid = ({ sx, size, itemBar }) => {
176
177
  const { fileMetas } = useFile();
177
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { direction: "row", spacing: 1, sx: { overflow: "auto", ...sx }, children: fileMetas.map((fileMeta) => /* @__PURE__ */ jsxRuntimeExports.jsx(
178
+ return /* @__PURE__ */ jsx(Stack, { direction: "row", spacing: 1, sx: { overflow: "auto", ...sx }, children: fileMetas.map((fileMeta) => /* @__PURE__ */ jsx(
178
179
  GridFileViewerItem,
179
180
  {
180
181
  meta: fileMeta,
@@ -217,9 +218,9 @@ const GridFileViewerItem = ({ meta, size, itemBar }) => {
217
218
  }
218
219
  }
219
220
  };
220
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
221
- /* @__PURE__ */ jsxRuntimeExports.jsxs(ImageListItem, { sx: { width: size ?? IMAGE_SIZE, height: size ?? IMAGE_SIZE }, onMouseEnter: handleOnMouseEnter, onMouseLeave: handleOnMouseLeave, ref, children: [
222
- /* @__PURE__ */ jsxRuntimeExports.jsx(
221
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
222
+ /* @__PURE__ */ jsxs(ImageListItem, { sx: { width: size ?? IMAGE_SIZE, height: size ?? IMAGE_SIZE }, onMouseEnter: handleOnMouseEnter, onMouseLeave: handleOnMouseLeave, ref, children: [
223
+ /* @__PURE__ */ jsx(
223
224
  Box,
224
225
  {
225
226
  component: "img",
@@ -230,21 +231,21 @@ const GridFileViewerItem = ({ meta, size, itemBar }) => {
230
231
  sx: { cursor: "pointer", objectFit: "contain", width: size ?? IMAGE_SIZE, height: size ?? IMAGE_SIZE }
231
232
  }
232
233
  ),
233
- itemBar !== "hidden" && showItemBar && /* @__PURE__ */ jsxRuntimeExports.jsx(
234
+ itemBar !== "hidden" && showItemBar && /* @__PURE__ */ jsx(
234
235
  ImageListItemBar,
235
236
  {
236
- title: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: meta.fileName, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { children: meta.fileName }) }),
237
- actionIcon: (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { sx: { color: grey[100] }, onClick: openMenu, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MoreVert, {}) })
237
+ title: /* @__PURE__ */ jsx(Tooltip, { title: meta.fileName, children: /* @__PURE__ */ jsx(Box, { children: meta.fileName }) }),
238
+ actionIcon: (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx(IconButton, { sx: { color: grey[100] }, onClick: openMenu, children: /* @__PURE__ */ jsx(MoreVert, {}) })
238
239
  }
239
240
  )
240
241
  ] }),
241
- (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsxRuntimeExports.jsx(ActionsMenu, { meta, menu, setMenu })
242
+ (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx(ActionsMenu, { meta, menu, setMenu })
242
243
  ] });
243
244
  };
244
245
  const FileViewerList = ({ sx }) => {
245
246
  const { fileMetas } = useFile();
246
- return /* @__PURE__ */ jsxRuntimeExports.jsx(List, { dense: true, sx, children: fileMetas.map(
247
- (fileMeta) => /* @__PURE__ */ jsxRuntimeExports.jsx(
247
+ return /* @__PURE__ */ jsx(List, { dense: true, sx, children: fileMetas.map(
248
+ (fileMeta) => /* @__PURE__ */ jsx(
248
249
  ListFileViewerItem,
249
250
  {
250
251
  meta: fileMeta
@@ -281,23 +282,23 @@ const ListFileViewerItem = ({ meta }) => {
281
282
  const icon = () => {
282
283
  switch (meta.mediaType) {
283
284
  case "image": {
284
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Image, {});
285
+ return /* @__PURE__ */ jsx(Image, {});
285
286
  }
286
287
  case "video": {
287
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SmartDisplay, {});
288
+ return /* @__PURE__ */ jsx(SmartDisplay, {});
288
289
  }
289
290
  default: {
290
- return /* @__PURE__ */ jsxRuntimeExports.jsx(AttachFile, {});
291
+ return /* @__PURE__ */ jsx(AttachFile, {});
291
292
  }
292
293
  }
293
294
  };
294
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
295
- /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick, children: [
296
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: icon() }),
297
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { primary: `${meta.fileName}.${meta.fileExtension}` }),
298
- (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { edge: "end", onClick: openMenu, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MoreVert, {}) })
295
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
296
+ /* @__PURE__ */ jsxs(ListItemButton, { onClick, children: [
297
+ /* @__PURE__ */ jsx(ListItemIcon, { children: icon() }),
298
+ /* @__PURE__ */ jsx(ListItemText, { primary: `${meta.fileName}.${meta.fileExtension}` }),
299
+ (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx(IconButton, { edge: "end", onClick: openMenu, children: /* @__PURE__ */ jsx(MoreVert, {}) })
299
300
  ] }, meta.id),
300
- (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsxRuntimeExports.jsx(ActionsMenu, { meta, menu, setMenu })
301
+ (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx(ActionsMenu, { meta, menu, setMenu })
301
302
  ] });
302
303
  };
303
304
  const ImageViewer = ({ metaId }) => {
@@ -342,9 +343,9 @@ const ImageViewer = ({ metaId }) => {
342
343
  };
343
344
  const onClose = () => setImageId("");
344
345
  if (!metaId) return null;
345
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Dialog, { open: true, onClose, maxWidth: "xl", children: [
346
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { component: "img", src: source, alt: metaId, sx: { maxWidth: "100vw", maxHeight: { xs: "calc(100vh - 56px)", sm: "calc(100vh - 64px)" } } }),
347
- /* @__PURE__ */ jsxRuntimeExports.jsx(Fab, { size: "medium", onClick: onClose, sx: { position: "fixed", top: 8, right: 8 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Close, {}) })
346
+ return /* @__PURE__ */ jsxs(Dialog, { open: true, onClose, maxWidth: "xl", children: [
347
+ /* @__PURE__ */ jsx(Box, { component: "img", src: source, alt: metaId, sx: { maxWidth: "100vw", maxHeight: { xs: "calc(100vh - 56px)", sm: "calc(100vh - 64px)" } } }),
348
+ /* @__PURE__ */ jsx(Fab, { size: "medium", onClick: onClose, sx: { position: "fixed", top: 8, right: 8 }, children: /* @__PURE__ */ jsx(Close, {}) })
348
349
  ] });
349
350
  };
350
351
  const FileViewer = ({ subId, onDelete, actions, children }) => {
@@ -352,9 +353,9 @@ const FileViewer = ({ subId, onDelete, actions, children }) => {
352
353
  const [imageId, setImageId] = useState("");
353
354
  const components = { Grid: FileViewerGrid, List: FileViewerList };
354
355
  if (fileMetas.length === 0) return null;
355
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(FileContext.Provider, { value: { fileMetas, onDelete, actions, setImageId }, children: [
356
+ return /* @__PURE__ */ jsxs(FileContext.Provider, { value: { fileMetas, onDelete, actions, setImageId }, children: [
356
357
  children(components),
357
- /* @__PURE__ */ jsxRuntimeExports.jsx(ImageViewer, { metaId: imageId })
358
+ /* @__PURE__ */ jsx(ImageViewer, { metaId: imageId })
358
359
  ] });
359
360
  };
360
361
  const isArray = (value) => Array.isArray(value);
@@ -365,64 +366,64 @@ const ChipInputCell = ({ params, slotProps, getLabel }) => {
365
366
  return value;
366
367
  };
367
368
  if (isArray(params.value))
368
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { direction: "row", alignItems: "center", gap: 1, sx: { overflowX: "auto", height: "100%", width: params.colDef.computedWidth }, children: params.value.map(
369
- (value, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, { label: getLabelValue(value), ...slotProps }, `${index + 1}-chip-input-cell`)
369
+ return /* @__PURE__ */ jsx(Stack, { direction: "row", alignItems: "center", gap: 1, sx: { overflowX: "auto", height: "100%", width: params.colDef.computedWidth }, children: params.value.map(
370
+ (value, index) => /* @__PURE__ */ jsx(Chip, { label: getLabelValue(value), ...slotProps }, `${index + 1}-chip-input-cell`)
370
371
  ) });
371
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, { label: getLabelValue(params.value), ...slotProps });
372
+ return /* @__PURE__ */ jsx(Chip, { label: getLabelValue(params.value), ...slotProps });
372
373
  };
373
374
  const EditableColumnHeader = ({ colDef }) => {
374
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyWithIcon, { endIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(Edit, { color: "disabled", fontSize: "small" }), variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: colDef.headerName });
375
+ return /* @__PURE__ */ jsx(TypographyWithIcon, { endIcon: /* @__PURE__ */ jsx(Edit, { color: "disabled", fontSize: "small" }), variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: colDef.headerName });
375
376
  };
376
377
  const Component$4 = React.forwardRef(function ButtonComponent(props, reference) {
377
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { ref: reference, component: "a", ...props });
378
+ return /* @__PURE__ */ jsx(Button, { ref: reference, component: "a", ...props });
378
379
  });
379
380
  const CreatedComponent$4 = createLink(Component$4);
380
381
  const RouterButton = (props) => {
381
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent$4, { ...props });
382
+ return /* @__PURE__ */ jsx(CreatedComponent$4, { ...props });
382
383
  };
383
384
  const Component$3 = React.forwardRef(
384
385
  function GridActionsCellItemComponent(props, reference) {
385
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCellItem, { ref: reference, component: "a", ...props });
386
+ return /* @__PURE__ */ jsx(GridActionsCellItem, { ref: reference, component: "a", ...props });
386
387
  }
387
388
  );
388
389
  const CreatedComponent$3 = createLink(Component$3);
389
390
  const RouterGridActionsCellItem = (props) => {
390
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent$3, { ...props });
391
+ return /* @__PURE__ */ jsx(CreatedComponent$3, { ...props });
391
392
  };
392
393
  const Component$2 = React.forwardRef(function IconButtonComponent(props, reference) {
393
- return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { ref: reference, component: "a", ...props });
394
+ return /* @__PURE__ */ jsx(IconButton, { ref: reference, component: "a", ...props });
394
395
  });
395
396
  const CreatedComponent$2 = createLink(Component$2);
396
397
  const RouterIconButton = (props) => {
397
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent$2, { ...props });
398
+ return /* @__PURE__ */ jsx(CreatedComponent$2, { ...props });
398
399
  };
399
400
  const Component$1 = React.forwardRef(function LinkComponent(props, reference) {
400
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { ref: reference, ...props });
401
+ return /* @__PURE__ */ jsx(Link, { ref: reference, ...props });
401
402
  });
402
403
  const CreatedComponent$1 = createLink(Component$1);
403
404
  const RouterLink = (props) => {
404
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent$1, { ...props });
405
+ return /* @__PURE__ */ jsx(CreatedComponent$1, { ...props });
405
406
  };
406
407
  const Component = React.forwardRef(function TabComponent(props, reference) {
407
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Tab, { ref: reference, component: "a", ...props });
408
+ return /* @__PURE__ */ jsx(Tab, { ref: reference, component: "a", ...props });
408
409
  });
409
410
  const CreatedComponent = createLink(Component);
410
411
  const RouterTab = (props) => {
411
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent, { ...props });
412
+ return /* @__PURE__ */ jsx(CreatedComponent, { ...props });
412
413
  };
413
414
  function RouterNotFound() {
414
415
  const { t } = useTranslation();
415
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", alignItems: "center", mb: 4, children: [
416
- /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: "404" }),
417
- /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
418
- /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h5", component: "span", children: t("Layout.ThisPageCouldNotBeFound") })
416
+ return /* @__PURE__ */ jsx(Box, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ jsxs(Box, { display: "flex", alignItems: "center", mb: 4, children: [
417
+ /* @__PURE__ */ jsx(Typography, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: "404" }),
418
+ /* @__PURE__ */ jsx(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
419
+ /* @__PURE__ */ jsx(Typography, { variant: "h5", component: "span", children: t("Layout.ThisPageCouldNotBeFound") })
419
420
  ] }) });
420
421
  }
421
422
  const RouterError = ({ error }) => {
422
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", alignItems: "center", mb: 4, children: [
423
- /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: error.name || "500" }),
424
- /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
425
- /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h5", component: "span", children: error.message })
423
+ return /* @__PURE__ */ jsx(Box, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ jsxs(Box, { display: "flex", alignItems: "center", mb: 4, children: [
424
+ /* @__PURE__ */ jsx(Typography, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: error.name || "500" }),
425
+ /* @__PURE__ */ jsx(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
426
+ /* @__PURE__ */ jsx(Typography, { variant: "h5", component: "span", children: error.message })
426
427
  ] }) });
427
428
  };
428
429
  export {