wcz-test 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1038,9 +1038,32 @@ var TypographyWithIcon = ({ startIcon, endIcon, children, sx, gutterBottom, ...p
1038
1038
  ] });
1039
1039
  };
1040
1040
 
1041
+ // src/index.ts
1042
+ import { PageHeader } from "@toolpad/core/PageContainer";
1043
+
1044
+ // src/components/core/PageContainer.tsx
1045
+ import { Container } from "@mui/material";
1046
+ import { jsx as jsx2 } from "react/jsx-runtime";
1047
+ var PageContainer = (props) => {
1048
+ return /* @__PURE__ */ jsx2(
1049
+ Container,
1050
+ {
1051
+ sx: {
1052
+ display: "flex",
1053
+ flexDirection: "column",
1054
+ height: "100vh",
1055
+ my: 1,
1056
+ ...props.sx
1057
+ },
1058
+ ...props,
1059
+ children: props.children
1060
+ }
1061
+ );
1062
+ };
1063
+
1041
1064
  // src/components/data-grid/ChipInputCell.tsx
1042
1065
  import { Chip, Stack as Stack2 } from "@mui/material";
1043
- import { jsx as jsx2 } from "react/jsx-runtime";
1066
+ import { jsx as jsx3 } from "react/jsx-runtime";
1044
1067
  var isArray = (value) => Array.isArray(value);
1045
1068
  var ChipInputCell = ({ params, slotProps, getLabel }) => {
1046
1069
  if (!params.value) return null;
@@ -1049,103 +1072,100 @@ var ChipInputCell = ({ params, slotProps, getLabel }) => {
1049
1072
  return value;
1050
1073
  };
1051
1074
  if (isArray(params.value))
1052
- return /* @__PURE__ */ jsx2(Stack2, { direction: "row", alignItems: "center", gap: 1, sx: { overflowX: "auto", height: "100%", width: params.colDef.computedWidth }, children: params.value.map(
1053
- (value, index) => /* @__PURE__ */ jsx2(Chip, { label: getLabelValue(value), ...slotProps }, `${index + 1}-chip-input-cell`)
1075
+ return /* @__PURE__ */ jsx3(Stack2, { direction: "row", alignItems: "center", gap: 1, sx: { overflowX: "auto", height: "100%", width: params.colDef.computedWidth }, children: params.value.map(
1076
+ (value, index) => /* @__PURE__ */ jsx3(Chip, { label: getLabelValue(value), ...slotProps }, `${index + 1}-chip-input-cell`)
1054
1077
  ) });
1055
- return /* @__PURE__ */ jsx2(Chip, { label: getLabelValue(params.value), ...slotProps });
1078
+ return /* @__PURE__ */ jsx3(Chip, { label: getLabelValue(params.value), ...slotProps });
1056
1079
  };
1057
1080
 
1058
1081
  // src/components/data-grid/EditableColumnHeader.tsx
1059
1082
  import { Edit } from "@mui/icons-material";
1060
- import { jsx as jsx3 } from "react/jsx-runtime";
1083
+ import { jsx as jsx4 } from "react/jsx-runtime";
1061
1084
  var EditableColumnHeader = ({ colDef }) => {
1062
- return /* @__PURE__ */ jsx3(TypographyWithIcon, { endIcon: /* @__PURE__ */ jsx3(Edit, { color: "disabled", fontSize: "small" }), variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: colDef.headerName });
1085
+ return /* @__PURE__ */ jsx4(TypographyWithIcon, { endIcon: /* @__PURE__ */ jsx4(Edit, { color: "disabled", fontSize: "small" }), variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: colDef.headerName });
1063
1086
  };
1064
1087
 
1065
1088
  // src/components/router/RouterButton.tsx
1066
1089
  import { Button } from "@mui/material";
1067
1090
  import { createLink } from "@tanstack/react-router";
1068
1091
  import React from "react";
1069
- import { jsx as jsx4 } from "react/jsx-runtime";
1070
- var Component = React.forwardRef((props, ref) => /* @__PURE__ */ jsx4(Button, { ref, component: "a", ...props }));
1092
+ import { jsx as jsx5 } from "react/jsx-runtime";
1093
+ var Component = React.forwardRef((props, ref) => /* @__PURE__ */ jsx5(Button, { ref, component: "a", ...props }));
1071
1094
  var CreatedComponent = createLink(Component);
1072
1095
  var RouterButton = (props) => {
1073
- return /* @__PURE__ */ jsx4(CreatedComponent, { preload: "intent", ...props });
1096
+ return /* @__PURE__ */ jsx5(CreatedComponent, { preload: "intent", ...props });
1074
1097
  };
1075
1098
 
1076
1099
  // src/components/router/RouterGridActionsCellItem.tsx
1077
1100
  import { GridActionsCellItem } from "@mui/x-data-grid-premium";
1078
1101
  import { createLink as createLink2 } from "@tanstack/react-router";
1079
1102
  import React2 from "react";
1080
- import { jsx as jsx5 } from "react/jsx-runtime";
1103
+ import { jsx as jsx6 } from "react/jsx-runtime";
1081
1104
  var Component2 = React2.forwardRef(
1082
- (props, ref) => /* @__PURE__ */ jsx5(GridActionsCellItem, { ref, component: "a", ...props })
1105
+ (props, ref) => /* @__PURE__ */ jsx6(GridActionsCellItem, { ref, component: "a", ...props })
1083
1106
  );
1084
1107
  var CreatedComponent2 = createLink2(Component2);
1085
1108
  var RouterGridActionsCellItem = (props) => {
1086
- return /* @__PURE__ */ jsx5(CreatedComponent2, { preload: "intent", ...props });
1109
+ return /* @__PURE__ */ jsx6(CreatedComponent2, { preload: "intent", ...props });
1087
1110
  };
1088
1111
 
1089
1112
  // src/components/router/RouterIconButton.tsx
1090
1113
  import { IconButton } from "@mui/material";
1091
1114
  import { createLink as createLink3 } from "@tanstack/react-router";
1092
1115
  import React3 from "react";
1093
- import { jsx as jsx6 } from "react/jsx-runtime";
1094
- var Component3 = React3.forwardRef((props, ref) => /* @__PURE__ */ jsx6(IconButton, { ref, component: "a", ...props }));
1116
+ import { jsx as jsx7 } from "react/jsx-runtime";
1117
+ var Component3 = React3.forwardRef((props, ref) => /* @__PURE__ */ jsx7(IconButton, { ref, component: "a", ...props }));
1095
1118
  var CreatedComponent3 = createLink3(Component3);
1096
1119
  var RouterIconButton = (props) => {
1097
- return /* @__PURE__ */ jsx6(CreatedComponent3, { preload: "intent", ...props });
1120
+ return /* @__PURE__ */ jsx7(CreatedComponent3, { preload: "intent", ...props });
1098
1121
  };
1099
1122
 
1100
1123
  // src/components/router/RouterLink.tsx
1101
1124
  import { Link } from "@mui/material";
1102
1125
  import { createLink as createLink4 } from "@tanstack/react-router";
1103
1126
  import React4 from "react";
1104
- import { jsx as jsx7 } from "react/jsx-runtime";
1105
- var Component4 = React4.forwardRef((props, ref) => /* @__PURE__ */ jsx7(Link, { ref, ...props }));
1127
+ import { jsx as jsx8 } from "react/jsx-runtime";
1128
+ var Component4 = React4.forwardRef((props, ref) => /* @__PURE__ */ jsx8(Link, { ref, ...props }));
1106
1129
  var CreatedComponent4 = createLink4(Component4);
1107
1130
  var RouterLink = (props) => {
1108
- return /* @__PURE__ */ jsx7(CreatedComponent4, { preload: "intent", ...props });
1131
+ return /* @__PURE__ */ jsx8(CreatedComponent4, { preload: "intent", ...props });
1109
1132
  };
1110
1133
 
1111
1134
  // src/components/router/RouterTab.tsx
1112
1135
  import { Tab } from "@mui/material";
1113
1136
  import { createLink as createLink5 } from "@tanstack/react-router";
1114
1137
  import React5 from "react";
1115
- import { jsx as jsx8 } from "react/jsx-runtime";
1116
- var Component5 = React5.forwardRef((props, ref) => /* @__PURE__ */ jsx8(Tab, { ref, component: "a", ...props }));
1138
+ import { jsx as jsx9 } from "react/jsx-runtime";
1139
+ var Component5 = React5.forwardRef((props, ref) => /* @__PURE__ */ jsx9(Tab, { ref, component: "a", ...props }));
1117
1140
  var CreatedComponent5 = createLink5(Component5);
1118
1141
  var RouterTab = (props) => {
1119
- return /* @__PURE__ */ jsx8(CreatedComponent5, { preload: "intent", ...props });
1142
+ return /* @__PURE__ */ jsx9(CreatedComponent5, { preload: "intent", ...props });
1120
1143
  };
1121
1144
 
1122
1145
  // src/components/router/RouterNotFound.tsx
1123
1146
  import { Box, Divider, Typography as Typography2 } from "@mui/material";
1124
1147
  import { useTranslation } from "react-i18next";
1125
- import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
1148
+ import { jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
1126
1149
  function RouterNotFound() {
1127
1150
  const { t } = useTranslation();
1128
- return /* @__PURE__ */ jsx9(Box, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ jsxs2(Box, { display: "flex", alignItems: "center", mb: 4, children: [
1129
- /* @__PURE__ */ jsx9(Typography2, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: "404" }),
1130
- /* @__PURE__ */ jsx9(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
1131
- /* @__PURE__ */ jsx9(Typography2, { variant: "h5", component: "span", children: t("Layout.ThisPageCouldNotBeFound") })
1151
+ return /* @__PURE__ */ jsx10(Box, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ jsxs2(Box, { display: "flex", alignItems: "center", mb: 4, children: [
1152
+ /* @__PURE__ */ jsx10(Typography2, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: "404" }),
1153
+ /* @__PURE__ */ jsx10(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
1154
+ /* @__PURE__ */ jsx10(Typography2, { variant: "h5", component: "span", children: t("Layout.ThisPageCouldNotBeFound") })
1132
1155
  ] }) });
1133
1156
  }
1134
1157
 
1135
1158
  // src/components/router/RouterError.tsx
1136
1159
  import { Box as Box2, Divider as Divider2, Typography as Typography3 } from "@mui/material";
1137
- import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
1160
+ import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
1138
1161
  var RouterError = ({ error }) => {
1139
- return /* @__PURE__ */ jsx10(Box2, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ jsxs3(Box2, { display: "flex", alignItems: "center", mb: 4, children: [
1140
- /* @__PURE__ */ jsx10(Typography3, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: "500" }),
1141
- /* @__PURE__ */ jsx10(Divider2, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
1142
- /* @__PURE__ */ jsx10(Typography3, { variant: "h5", component: "span", children: error.message })
1162
+ return /* @__PURE__ */ jsx11(Box2, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ jsxs3(Box2, { display: "flex", alignItems: "center", mb: 4, children: [
1163
+ /* @__PURE__ */ jsx11(Typography3, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: "500" }),
1164
+ /* @__PURE__ */ jsx11(Divider2, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
1165
+ /* @__PURE__ */ jsx11(Typography3, { variant: "h5", component: "span", children: error.message })
1143
1166
  ] }) });
1144
1167
  };
1145
1168
 
1146
- // src/index.ts
1147
- import { PageContainer, PageHeader } from "@toolpad/core/PageContainer";
1148
-
1149
1169
  // src/providers/LayoutProvider.tsx
1150
1170
  import { LinearProgress, useMediaQuery } from "@mui/material";
1151
1171
 
@@ -1178,9 +1198,7 @@ import { useThemeProps } from "@mui/material/styles";
1178
1198
  import { jsx as _jsx } from "react/jsx-runtime";
1179
1199
  var _excluded = ["localeText"];
1180
1200
  var MuiPickersAdapterContext = /* @__PURE__ */ React6.createContext(null);
1181
- if (process.env.NODE_ENV !== "production") {
1182
- MuiPickersAdapterContext.displayName = "MuiPickersAdapterContext";
1183
- }
1201
+ if (process.env.NODE_ENV !== "production") MuiPickersAdapterContext.displayName = "MuiPickersAdapterContext";
1184
1202
  var LocalizationProvider = function LocalizationProvider2(inProps) {
1185
1203
  const {
1186
1204
  localeText: inLocaleText
@@ -1246,6 +1264,7 @@ var LocalizationProvider = function LocalizationProvider2(inProps) {
1246
1264
  children
1247
1265
  });
1248
1266
  };
1267
+ if (process.env.NODE_ENV !== "production") LocalizationProvider.displayName = "LocalizationProvider";
1249
1268
  process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
1250
1269
  // ----------------------------- Warning --------------------------------
1251
1270
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1826,12 +1845,12 @@ var LayoutContext = createContext2({});
1826
1845
  var useLayout = () => useContext2(LayoutContext);
1827
1846
 
1828
1847
  // src/components/core/AppTitle.tsx
1829
- import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
1848
+ import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
1830
1849
  var AppTitle = () => {
1831
1850
  const { appTitle } = useLayout();
1832
1851
  return /* @__PURE__ */ jsxs4(Stack3, { direction: "row", alignItems: "center", spacing: 2, children: [
1833
- /* @__PURE__ */ jsx11("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
1834
- /* @__PURE__ */ jsx11(Typography4, { variant: "h6", children: appTitle })
1852
+ /* @__PURE__ */ jsx12("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
1853
+ /* @__PURE__ */ jsx12(Typography4, { variant: "h6", children: appTitle })
1835
1854
  ] });
1836
1855
  };
1837
1856
 
@@ -1840,12 +1859,12 @@ import { Close } from "@mui/icons-material";
1840
1859
  import { Fade, Grid, IconButton as IconButton2, Paper, Typography as Typography5 } from "@mui/material";
1841
1860
  import { useState } from "react";
1842
1861
  import { useTranslation as useTranslation2 } from "react-i18next";
1843
- import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
1862
+ import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
1844
1863
  var DevelopmentBanner = ({ hasNavigationRoutes }) => {
1845
1864
  const { t } = useTranslation2();
1846
1865
  const [bannerOpen, setBannerOpen] = useState(true);
1847
1866
  const closeBanner = () => setBannerOpen(false);
1848
- return /* @__PURE__ */ jsx12(Fade, { appear: false, in: bannerOpen, children: /* @__PURE__ */ jsx12(Paper, { square: true, elevation: 3, tabIndex: -1, sx: {
1867
+ return /* @__PURE__ */ jsx13(Fade, { appear: false, in: bannerOpen, children: /* @__PURE__ */ jsx13(Paper, { square: true, elevation: 3, tabIndex: -1, sx: {
1849
1868
  position: "fixed",
1850
1869
  bottom: 0,
1851
1870
  left: { xs: 0, sm: hasNavigationRoutes ? 83.3 : 0 },
@@ -1856,10 +1875,10 @@ var DevelopmentBanner = ({ hasNavigationRoutes }) => {
1856
1875
  borderTopWidth: 1
1857
1876
  }, children: /* @__PURE__ */ jsxs5(Grid, { container: true, justifyContent: "space-between", alignItems: "center", children: [
1858
1877
  /* @__PURE__ */ jsxs5(Grid, { size: 10, children: [
1859
- /* @__PURE__ */ jsx12(Typography5, { fontWeight: "bold", children: t("Layout.DevelopmentDialogTitle") }),
1860
- /* @__PURE__ */ jsx12(Typography5, { variant: "body2", children: t("Layout.DevelopmentDialogContent") })
1878
+ /* @__PURE__ */ jsx13(Typography5, { fontWeight: "bold", children: t("Layout.DevelopmentDialogTitle") }),
1879
+ /* @__PURE__ */ jsx13(Typography5, { variant: "body2", children: t("Layout.DevelopmentDialogContent") })
1861
1880
  ] }),
1862
- /* @__PURE__ */ jsx12(Grid, { size: 2, sx: { p: 1, textAlign: "right" }, children: /* @__PURE__ */ jsx12(IconButton2, { size: "small", onClick: closeBanner, children: /* @__PURE__ */ jsx12(Close, {}) }) })
1881
+ /* @__PURE__ */ jsx13(Grid, { size: 2, sx: { p: 1, textAlign: "right" }, children: /* @__PURE__ */ jsx13(IconButton2, { size: "small", onClick: closeBanner, children: /* @__PURE__ */ jsx13(Close, {}) }) })
1863
1882
  ] }) }) });
1864
1883
  };
1865
1884
 
@@ -1868,7 +1887,7 @@ import { AccountCircle, ArrowBack, Brightness4, ChevronRight, DarkMode, LightMod
1868
1887
  import { Avatar, Box as Box3, IconButton as IconButton3, List, ListItem, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Menu, Typography as Typography6, useColorScheme } from "@mui/material";
1869
1888
  import { Fragment, useState as useState2 } from "react";
1870
1889
  import { useTranslation as useTranslation3 } from "react-i18next";
1871
- import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
1890
+ import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
1872
1891
  var user = {
1873
1892
  name: "Dalibor Homola",
1874
1893
  employeeId: "C2503017",
@@ -1915,60 +1934,60 @@ var ToolbarAccount = () => {
1915
1934
  const login2 = () => user.login();
1916
1935
  const logout2 = () => user.logout();
1917
1936
  const changeTab = (newTab) => () => setTab(newTab);
1918
- const settings = /* @__PURE__ */ jsxs6(List, { component: "nav", subheader: /* @__PURE__ */ jsx13(ListSubheader, { sx: { backgroundColor: "transparent" }, children: t("Layout.Settings") }), children: [
1937
+ const settings = /* @__PURE__ */ jsxs6(List, { component: "nav", subheader: /* @__PURE__ */ jsx14(ListSubheader, { sx: { backgroundColor: "transparent" }, children: t("Layout.Settings") }), children: [
1919
1938
  /* @__PURE__ */ jsxs6(ListItemButton, { onClick: changeTab("theme"), sx: { py: 0.3 }, children: [
1920
- /* @__PURE__ */ jsx13(ListItemIcon, { children: /* @__PURE__ */ jsx13(Brightness4, {}) }),
1921
- /* @__PURE__ */ jsx13(ListItemText, { primary: t("Layout.Appearance"), secondary: getModeText() }),
1922
- /* @__PURE__ */ jsx13(ChevronRight, {})
1939
+ /* @__PURE__ */ jsx14(ListItemIcon, { children: /* @__PURE__ */ jsx14(Brightness4, {}) }),
1940
+ /* @__PURE__ */ jsx14(ListItemText, { primary: t("Layout.Appearance"), secondary: getModeText() }),
1941
+ /* @__PURE__ */ jsx14(ChevronRight, {})
1923
1942
  ] }),
1924
1943
  /* @__PURE__ */ jsxs6(ListItemButton, { onClick: changeTab("language"), sx: { py: 0.3 }, children: [
1925
- /* @__PURE__ */ jsx13(ListItemIcon, { children: /* @__PURE__ */ jsx13(Translate, {}) }),
1926
- /* @__PURE__ */ jsx13(ListItemText, { primary: t("Layout.Language"), secondary: i18n2.resolvedLanguage === "en" ? "English" : "\u010Ce\u0161tina" }),
1927
- /* @__PURE__ */ jsx13(ChevronRight, {})
1944
+ /* @__PURE__ */ jsx14(ListItemIcon, { children: /* @__PURE__ */ jsx14(Translate, {}) }),
1945
+ /* @__PURE__ */ jsx14(ListItemText, { primary: t("Layout.Language"), secondary: i18n2.resolvedLanguage === "en" ? "English" : "\u010Ce\u0161tina" }),
1946
+ /* @__PURE__ */ jsx14(ChevronRight, {})
1928
1947
  ] })
1929
1948
  ] });
1930
1949
  const theme = /* @__PURE__ */ jsxs6(List, { subheader: /* @__PURE__ */ jsxs6(ListSubheader, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
1931
- /* @__PURE__ */ jsx13(IconButton3, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ jsx13(ArrowBack, { fontSize: "small" }) }),
1950
+ /* @__PURE__ */ jsx14(IconButton3, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ jsx14(ArrowBack, { fontSize: "small" }) }),
1932
1951
  " ",
1933
1952
  t("Layout.Appearance")
1934
1953
  ] }), children: [
1935
1954
  /* @__PURE__ */ jsxs6(ListItemButton, { onClick: changeMode("light"), disabled: mode === "light", children: [
1936
- /* @__PURE__ */ jsx13(ListItemIcon, { children: /* @__PURE__ */ jsx13(LightMode, {}) }),
1937
- /* @__PURE__ */ jsx13(ListItemText, { primary: t("Layout.Light") })
1955
+ /* @__PURE__ */ jsx14(ListItemIcon, { children: /* @__PURE__ */ jsx14(LightMode, {}) }),
1956
+ /* @__PURE__ */ jsx14(ListItemText, { primary: t("Layout.Light") })
1938
1957
  ] }),
1939
1958
  /* @__PURE__ */ jsxs6(ListItemButton, { onClick: changeMode("dark"), disabled: mode === "dark", children: [
1940
- /* @__PURE__ */ jsx13(ListItemIcon, { children: /* @__PURE__ */ jsx13(DarkMode, {}) }),
1941
- /* @__PURE__ */ jsx13(ListItemText, { primary: t("Layout.Dark") })
1959
+ /* @__PURE__ */ jsx14(ListItemIcon, { children: /* @__PURE__ */ jsx14(DarkMode, {}) }),
1960
+ /* @__PURE__ */ jsx14(ListItemText, { primary: t("Layout.Dark") })
1942
1961
  ] }),
1943
1962
  /* @__PURE__ */ jsxs6(ListItemButton, { onClick: changeMode("system"), disabled: mode === "system", children: [
1944
- /* @__PURE__ */ jsx13(ListItemIcon, { children: /* @__PURE__ */ jsx13(SettingsBrightness, {}) }),
1945
- /* @__PURE__ */ jsx13(ListItemText, { primary: t("Layout.System") })
1963
+ /* @__PURE__ */ jsx14(ListItemIcon, { children: /* @__PURE__ */ jsx14(SettingsBrightness, {}) }),
1964
+ /* @__PURE__ */ jsx14(ListItemText, { primary: t("Layout.System") })
1946
1965
  ] })
1947
1966
  ] });
1948
1967
  const language = /* @__PURE__ */ jsxs6(List, { subheader: /* @__PURE__ */ jsxs6(ListSubheader, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
1949
- /* @__PURE__ */ jsx13(IconButton3, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ jsx13(ArrowBack, { fontSize: "small" }) }),
1968
+ /* @__PURE__ */ jsx14(IconButton3, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ jsx14(ArrowBack, { fontSize: "small" }) }),
1950
1969
  " ",
1951
1970
  t("Layout.Language")
1952
1971
  ] }), children: [
1953
- /* @__PURE__ */ jsx13(ListItemButton, { onClick: changeLanguage("en"), disabled: i18n2.resolvedLanguage === "en", children: /* @__PURE__ */ jsx13(ListItemText, { primary: "English" }) }),
1954
- /* @__PURE__ */ jsx13(ListItemButton, { onClick: changeLanguage("cs"), disabled: i18n2.resolvedLanguage === "cs", children: /* @__PURE__ */ jsx13(ListItemText, { primary: "\u010Ce\u0161tina" }) })
1972
+ /* @__PURE__ */ jsx14(ListItemButton, { onClick: changeLanguage("en"), disabled: i18n2.resolvedLanguage === "en", children: /* @__PURE__ */ jsx14(ListItemText, { primary: "English" }) }),
1973
+ /* @__PURE__ */ jsx14(ListItemButton, { onClick: changeLanguage("cs"), disabled: i18n2.resolvedLanguage === "cs", children: /* @__PURE__ */ jsx14(ListItemText, { primary: "\u010Ce\u0161tina" }) })
1955
1974
  ] });
1956
1975
  return /* @__PURE__ */ jsxs6(Fragment, { children: [
1957
- /* @__PURE__ */ jsx13(IconButton3, { size: "small", onClick: openMenu, children: user.name ? /* @__PURE__ */ jsx13(Avatar, { sx: { width: { xs: 32, sm: 40 }, height: { xs: 32, sm: 40 }, bgcolor: "primary.main" }, children: /* @__PURE__ */ jsx13(Typography6, { variant: "subtitle2", sx: { fontWeight: "bold", lineHeight: 0 }, children: usernameInitials() }) }) : /* @__PURE__ */ jsx13(AccountCircle, {}) }),
1958
- /* @__PURE__ */ jsx13(Menu, { anchorEl, open, onClose: closeMenu, children: /* @__PURE__ */ jsxs6(Box3, { sx: { width: 240 }, children: [
1959
- /* @__PURE__ */ jsx13(List, { children: user.name ? /* @__PURE__ */ jsxs6(Fragment, { children: [
1960
- /* @__PURE__ */ jsx13(ListItem, { children: /* @__PURE__ */ jsx13(ListItemText, { primary: user.name, secondary: /* @__PURE__ */ jsxs6("span", { children: [
1961
- /* @__PURE__ */ jsx13("span", { children: user.employeeId }),
1962
- /* @__PURE__ */ jsx13("br", {}),
1963
- /* @__PURE__ */ jsx13("span", { children: user.department })
1976
+ /* @__PURE__ */ jsx14(IconButton3, { size: "small", onClick: openMenu, children: user.name ? /* @__PURE__ */ jsx14(Avatar, { sx: { width: { xs: 32, sm: 40 }, height: { xs: 32, sm: 40 }, bgcolor: "primary.main" }, children: /* @__PURE__ */ jsx14(Typography6, { variant: "subtitle2", sx: { fontWeight: "bold", lineHeight: 0 }, children: usernameInitials() }) }) : /* @__PURE__ */ jsx14(AccountCircle, {}) }),
1977
+ /* @__PURE__ */ jsx14(Menu, { anchorEl, open, onClose: closeMenu, children: /* @__PURE__ */ jsxs6(Box3, { sx: { width: 240 }, children: [
1978
+ /* @__PURE__ */ jsx14(List, { children: user.name ? /* @__PURE__ */ jsxs6(Fragment, { children: [
1979
+ /* @__PURE__ */ jsx14(ListItem, { children: /* @__PURE__ */ jsx14(ListItemText, { primary: user.name, secondary: /* @__PURE__ */ jsxs6("span", { children: [
1980
+ /* @__PURE__ */ jsx14("span", { children: user.employeeId }),
1981
+ /* @__PURE__ */ jsx14("br", {}),
1982
+ /* @__PURE__ */ jsx14("span", { children: user.department })
1964
1983
  ] }) }) }),
1965
1984
  /* @__PURE__ */ jsxs6(ListItemButton, { onClick: logout2, children: [
1966
- /* @__PURE__ */ jsx13(ListItemIcon, { children: /* @__PURE__ */ jsx13(Logout, { color: "error" }) }),
1967
- /* @__PURE__ */ jsx13(ListItemText, { primary: t("Layout.Logout") })
1985
+ /* @__PURE__ */ jsx14(ListItemIcon, { children: /* @__PURE__ */ jsx14(Logout, { color: "error" }) }),
1986
+ /* @__PURE__ */ jsx14(ListItemText, { primary: t("Layout.Logout") })
1968
1987
  ] })
1969
1988
  ] }) : /* @__PURE__ */ jsxs6(ListItemButton, { onClick: login2, children: [
1970
- /* @__PURE__ */ jsx13(ListItemIcon, { children: /* @__PURE__ */ jsx13(Login, { color: "success" }) }),
1971
- /* @__PURE__ */ jsx13(ListItemText, { primary: t("Layout.LogIn") })
1989
+ /* @__PURE__ */ jsx14(ListItemIcon, { children: /* @__PURE__ */ jsx14(Login, { color: "success" }) }),
1990
+ /* @__PURE__ */ jsx14(ListItemText, { primary: t("Layout.LogIn") })
1972
1991
  ] }) }),
1973
1992
  tab === "settings" && settings,
1974
1993
  tab === "theme" && theme,
@@ -1992,12 +2011,9 @@ import axios from "axios";
1992
2011
  // src/services/UserService.ts
1993
2012
  import Keycloak from "keycloak-js";
1994
2013
  var keycloakConfig = {
1995
- url: import.meta.env.VITE_KEYCLOAK_URL,
1996
- realm: import.meta.env.VITE_KEYCLOAK_REALM,
1997
- clientId: import.meta.env.VITE_KEYCLOAK_CLIENT_ID,
1998
- idpHint: import.meta.env.VITE_KEYCLOAK_IDP_HINT,
1999
- confidentialClientId: import.meta.env.VITE_KEYCLOAK_CONFIDENTIAL_CLIENT_ID,
2000
- confidentialClientSecret: import.meta.env.VITE_KEYCLOAK_CONFIDENTIAL_CLIENT_SECRET
2014
+ url: "https://keycloak.example.com/auth",
2015
+ realm: "example-realm",
2016
+ clientId: "example-client"
2001
2017
  };
2002
2018
  var _kc = new Keycloak({
2003
2019
  url: keycloakConfig.url,
@@ -2163,10 +2179,7 @@ var useGetTheme = (theme) => {
2163
2179
  MuiTableContainer: {
2164
2180
  styleOverrides: {
2165
2181
  root: ({ theme: theme2 }) => ({
2166
- height: "calc(100vh - 56px)",
2167
- [theme2.breakpoints.up("sm")]: {
2168
- height: "calc(100vh - 64px)"
2169
- },
2182
+ flexGrow: 1,
2170
2183
  "& .MuiDataGrid-cell--editing": {
2171
2184
  "& .MuiInputBase-root": {
2172
2185
  height: "100%"
@@ -2193,6 +2206,11 @@ var useGetTheme = (theme) => {
2193
2206
  fullWidth: true
2194
2207
  }
2195
2208
  },
2209
+ MuiContainer: {
2210
+ defaultProps: {
2211
+ maxWidth: false
2212
+ }
2213
+ },
2196
2214
  ...theme?.components
2197
2215
  }
2198
2216
  },
@@ -2206,10 +2224,10 @@ var useGetTheme = (theme) => {
2206
2224
  import { useLocation, useNavigate, useSearch, Link as TanstackRouterLink } from "@tanstack/react-router";
2207
2225
  import { AppProvider } from "@toolpad/core/AppProvider";
2208
2226
  import { useCallback, useMemo as useMemo2, forwardRef } from "react";
2209
- import { jsx as jsx14 } from "react/jsx-runtime";
2227
+ import { jsx as jsx15 } from "react/jsx-runtime";
2210
2228
  var Link2 = forwardRef((props, ref) => {
2211
2229
  const { href, history, ...rest } = props;
2212
- return /* @__PURE__ */ jsx14(TanstackRouterLink, { ref, to: href, replace: history === "replace", ...rest });
2230
+ return /* @__PURE__ */ jsx15(TanstackRouterLink, { ref, to: href, replace: history === "replace", ...rest });
2213
2231
  });
2214
2232
  var TanstackRouterAppProvider = (props) => {
2215
2233
  const { pathname } = useLocation();
@@ -2222,11 +2240,11 @@ var TanstackRouterAppProvider = (props) => {
2222
2240
  [_navigate]
2223
2241
  );
2224
2242
  const router = useMemo2(() => ({ pathname, searchParams: new URLSearchParams(searchParams), navigate, Link: Link2 }), [pathname, searchParams, navigate]);
2225
- return /* @__PURE__ */ jsx14(AppProvider, { router, ...props });
2243
+ return /* @__PURE__ */ jsx15(AppProvider, { router, ...props });
2226
2244
  };
2227
2245
 
2228
2246
  // src/providers/LayoutProvider.tsx
2229
- import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
2247
+ import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
2230
2248
  i18n.use(HttpBackend).use(LanguageDetector).use(initReactI18next).init({
2231
2249
  fallbackLng: "en",
2232
2250
  interpolation: {
@@ -2248,11 +2266,11 @@ var LayoutProvider = (props) => {
2248
2266
  const appTitle = rootRouterState.meta?.find((meta) => meta?.title)?.title;
2249
2267
  if (!appTitle)
2250
2268
  throw new Error("Title is not defined in the RootRoute head.");
2251
- return /* @__PURE__ */ jsx15(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: i18n2.resolvedLanguage, children: /* @__PURE__ */ jsx15(TanstackRouterAppProvider, { navigation, theme, localeText: {
2269
+ return /* @__PURE__ */ jsx16(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: i18n2.resolvedLanguage, children: /* @__PURE__ */ jsx16(TanstackRouterAppProvider, { navigation, theme, localeText: {
2252
2270
  confirm: t("Layout.Confirm"),
2253
2271
  cancel: t("Layout.Cancel"),
2254
2272
  alert: t("Layout.Alert")
2255
- }, children: /* @__PURE__ */ jsx15(NotificationsProvider, { slotProps: { snackbar: { anchorOrigin: { vertical: isLargeScreen ? "top" : "bottom", horizontal: "center" } } }, children: /* @__PURE__ */ jsx15(LayoutContext.Provider, { value: { appTitle }, children: /* @__PURE__ */ jsxs7(
2273
+ }, children: /* @__PURE__ */ jsx16(NotificationsProvider, { slotProps: { snackbar: { anchorOrigin: { vertical: isLargeScreen ? "top" : "bottom", horizontal: "center" } } }, children: /* @__PURE__ */ jsx16(LayoutContext.Provider, { value: { appTitle }, children: /* @__PURE__ */ jsxs7(
2256
2274
  DashboardLayout,
2257
2275
  {
2258
2276
  defaultSidebarCollapsed: true,
@@ -2264,8 +2282,8 @@ var LayoutProvider = (props) => {
2264
2282
  },
2265
2283
  children: [
2266
2284
  props.children,
2267
- /* @__PURE__ */ jsx15(DevelopmentBanner, { hasNavigationRoutes: !!navigation.length }),
2268
- (isFetching || isMutating) && /* @__PURE__ */ jsx15(LinearProgress, { sx: { position: "fixed", top: { xs: 56, sm: 64 }, left: 0, right: 0 } })
2285
+ /* @__PURE__ */ jsx16(DevelopmentBanner, { hasNavigationRoutes: !!navigation.length }),
2286
+ (isFetching || isMutating) && /* @__PURE__ */ jsx16(LinearProgress, { sx: { position: "fixed", top: { xs: 56, sm: 64 }, left: 0, right: 0 } })
2269
2287
  ]
2270
2288
  }
2271
2289
  ) }) }) }) });
@@ -2290,11 +2308,11 @@ var getFieldStatus = (field) => {
2290
2308
  };
2291
2309
 
2292
2310
  // src/components/form/FormAutocomplete.tsx
2293
- import { jsx as jsx16 } from "react/jsx-runtime";
2311
+ import { jsx as jsx17 } from "react/jsx-runtime";
2294
2312
  var FormAutocomplete = ({ textFieldProps, ...autocompleteProps }) => {
2295
2313
  const field = useFieldContext();
2296
2314
  const { isTouched, hasError, helperText } = getFieldStatus(field);
2297
- return /* @__PURE__ */ jsx16(
2315
+ return /* @__PURE__ */ jsx17(
2298
2316
  Autocomplete,
2299
2317
  {
2300
2318
  value: field.state.value,
@@ -2303,7 +2321,7 @@ var FormAutocomplete = ({ textFieldProps, ...autocompleteProps }) => {
2303
2321
  onBlur: field.handleBlur,
2304
2322
  "aria-label": field.name,
2305
2323
  ...autocompleteProps,
2306
- renderInput: (params) => /* @__PURE__ */ jsx16(
2324
+ renderInput: (params) => /* @__PURE__ */ jsx17(
2307
2325
  TextField,
2308
2326
  {
2309
2327
  ...params,
@@ -2319,15 +2337,15 @@ var FormAutocomplete = ({ textFieldProps, ...autocompleteProps }) => {
2319
2337
 
2320
2338
  // src/components/form/FormCheckbox.tsx
2321
2339
  import { Checkbox, FormControl, FormControlLabel, FormHelperText } from "@mui/material";
2322
- import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
2340
+ import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
2323
2341
  var FormCheckbox = (props) => {
2324
2342
  const field = useFieldContext();
2325
2343
  const { isTouched, hasError, helperText } = getFieldStatus(field);
2326
2344
  return /* @__PURE__ */ jsxs8(FormControl, { component: "fieldset", children: [
2327
- /* @__PURE__ */ jsx17(
2345
+ /* @__PURE__ */ jsx18(
2328
2346
  FormControlLabel,
2329
2347
  {
2330
- control: /* @__PURE__ */ jsx17(
2348
+ control: /* @__PURE__ */ jsx18(
2331
2349
  Checkbox,
2332
2350
  {
2333
2351
  name: field.name,
@@ -2341,18 +2359,18 @@ var FormCheckbox = (props) => {
2341
2359
  label: props.label ?? ""
2342
2360
  }
2343
2361
  ),
2344
- isTouched && hasError && /* @__PURE__ */ jsx17(FormHelperText, { error: hasError, children: helperText })
2362
+ isTouched && hasError && /* @__PURE__ */ jsx18(FormHelperText, { error: hasError, children: helperText })
2345
2363
  ] });
2346
2364
  };
2347
2365
 
2348
2366
  // src/components/form/FormDatePicker.tsx
2349
2367
  import { DatePicker } from "@mui/x-date-pickers-pro";
2350
2368
  import dayjs from "dayjs";
2351
- import { jsx as jsx18 } from "react/jsx-runtime";
2369
+ import { jsx as jsx19 } from "react/jsx-runtime";
2352
2370
  var FormDatePicker = (props) => {
2353
2371
  const field = useFieldContext();
2354
2372
  const { isTouched, hasError, helperText } = getFieldStatus(field);
2355
- return /* @__PURE__ */ jsx18(
2373
+ return /* @__PURE__ */ jsx19(
2356
2374
  DatePicker,
2357
2375
  {
2358
2376
  name: field.name,
@@ -2376,11 +2394,11 @@ var FormDatePicker = (props) => {
2376
2394
  // src/components/form/FormDateTimePicker.tsx
2377
2395
  import { DateTimePicker } from "@mui/x-date-pickers-pro";
2378
2396
  import dayjs2 from "dayjs";
2379
- import { jsx as jsx19 } from "react/jsx-runtime";
2397
+ import { jsx as jsx20 } from "react/jsx-runtime";
2380
2398
  var FormDateTimePicker = (props) => {
2381
2399
  const field = useFieldContext();
2382
2400
  const { isTouched, hasError, helperText } = getFieldStatus(field);
2383
- return /* @__PURE__ */ jsx19(
2401
+ return /* @__PURE__ */ jsx20(
2384
2402
  DateTimePicker,
2385
2403
  {
2386
2404
  name: field.name,
@@ -2404,11 +2422,11 @@ var FormDateTimePicker = (props) => {
2404
2422
  // src/components/form/FormNumberField.tsx
2405
2423
  import { TextField as TextField2 } from "@mui/material";
2406
2424
  import { NumericFormat } from "react-number-format";
2407
- import { jsx as jsx20 } from "react/jsx-runtime";
2425
+ import { jsx as jsx21 } from "react/jsx-runtime";
2408
2426
  var FormNumberField = ({ options, ...props }) => {
2409
2427
  const field = useFieldContext();
2410
2428
  const { isTouched, hasError, helperText } = getFieldStatus(field);
2411
- return /* @__PURE__ */ jsx20(
2429
+ return /* @__PURE__ */ jsx21(
2412
2430
  NumericFormat,
2413
2431
  {
2414
2432
  customInput: TextField2,
@@ -2427,13 +2445,13 @@ var FormNumberField = ({ options, ...props }) => {
2427
2445
 
2428
2446
  // src/components/form/FormRadioGroup.tsx
2429
2447
  import { FormControl as FormControl2, FormControlLabel as FormControlLabel2, FormHelperText as FormHelperText2, FormLabel, Radio, RadioGroup } from "@mui/material";
2430
- import { jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
2448
+ import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
2431
2449
  var FormRadioGroup = ({ label, options, ...props }) => {
2432
2450
  const field = useFieldContext();
2433
2451
  const { isTouched, hasError, helperText } = getFieldStatus(field);
2434
2452
  return /* @__PURE__ */ jsxs9(FormControl2, { component: "fieldset", children: [
2435
- label && /* @__PURE__ */ jsx21(FormLabel, { component: "legend", children: label }),
2436
- /* @__PURE__ */ jsx21(
2453
+ label && /* @__PURE__ */ jsx22(FormLabel, { component: "legend", children: label }),
2454
+ /* @__PURE__ */ jsx22(
2437
2455
  RadioGroup,
2438
2456
  {
2439
2457
  name: field.name,
@@ -2442,30 +2460,30 @@ var FormRadioGroup = ({ label, options, ...props }) => {
2442
2460
  onBlur: field.handleBlur,
2443
2461
  "aria-label": field.name,
2444
2462
  ...props,
2445
- children: options.map((option) => /* @__PURE__ */ jsx21(
2463
+ children: options.map((option) => /* @__PURE__ */ jsx22(
2446
2464
  FormControlLabel2,
2447
2465
  {
2448
2466
  value: option.value,
2449
- control: /* @__PURE__ */ jsx21(Radio, {}),
2467
+ control: /* @__PURE__ */ jsx22(Radio, {}),
2450
2468
  label: option.label
2451
2469
  },
2452
2470
  option.value
2453
2471
  ))
2454
2472
  }
2455
2473
  ),
2456
- isTouched && hasError && /* @__PURE__ */ jsx21(FormHelperText2, { error: hasError, children: helperText })
2474
+ isTouched && hasError && /* @__PURE__ */ jsx22(FormHelperText2, { error: hasError, children: helperText })
2457
2475
  ] });
2458
2476
  };
2459
2477
 
2460
2478
  // src/components/form/FormSlider.tsx
2461
2479
  import { FormControl as FormControl3, FormHelperText as FormHelperText3, FormLabel as FormLabel2, Slider } from "@mui/material";
2462
- import { jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
2480
+ import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
2463
2481
  var FormSlider = ({ label, ...props }) => {
2464
2482
  const field = useFieldContext();
2465
2483
  const { isTouched, hasError, helperText } = getFieldStatus(field);
2466
2484
  return /* @__PURE__ */ jsxs10(FormControl3, { component: "fieldset", children: [
2467
- label && /* @__PURE__ */ jsx22(FormLabel2, { children: label }),
2468
- /* @__PURE__ */ jsx22(
2485
+ label && /* @__PURE__ */ jsx23(FormLabel2, { children: label }),
2486
+ /* @__PURE__ */ jsx23(
2469
2487
  Slider,
2470
2488
  {
2471
2489
  name: field.name,
@@ -2476,13 +2494,13 @@ var FormSlider = ({ label, ...props }) => {
2476
2494
  ...props
2477
2495
  }
2478
2496
  ),
2479
- isTouched && hasError && /* @__PURE__ */ jsx22(FormHelperText3, { error: hasError, children: helperText })
2497
+ isTouched && hasError && /* @__PURE__ */ jsx23(FormHelperText3, { error: hasError, children: helperText })
2480
2498
  ] });
2481
2499
  };
2482
2500
 
2483
2501
  // src/components/form/FormSubmitButton.tsx
2484
2502
  import { Button as Button2 } from "@mui/material";
2485
- import { jsx as jsx23 } from "react/jsx-runtime";
2503
+ import { jsx as jsx24 } from "react/jsx-runtime";
2486
2504
  var FormSubmitButton = (props) => {
2487
2505
  const form = useFormContext();
2488
2506
  const handleClick = (e) => {
@@ -2490,7 +2508,7 @@ var FormSubmitButton = (props) => {
2490
2508
  e.stopPropagation();
2491
2509
  form.handleSubmit();
2492
2510
  };
2493
- return /* @__PURE__ */ jsx23(form.Subscribe, { selector: (state) => [state.canSubmit, state.isSubmitting], children: ([canSubmit, isSubmitting]) => /* @__PURE__ */ jsx23(
2511
+ return /* @__PURE__ */ jsx24(form.Subscribe, { selector: (state) => [state.canSubmit, state.isSubmitting], children: ([canSubmit, isSubmitting]) => /* @__PURE__ */ jsx24(
2494
2512
  Button2,
2495
2513
  {
2496
2514
  loading: isSubmitting,
@@ -2505,15 +2523,15 @@ var FormSubmitButton = (props) => {
2505
2523
 
2506
2524
  // src/components/form/FormSwitch.tsx
2507
2525
  import { FormControl as FormControl4, FormControlLabel as FormControlLabel3, FormHelperText as FormHelperText4, Switch } from "@mui/material";
2508
- import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
2526
+ import { jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
2509
2527
  var FormSwitch = (props) => {
2510
2528
  const field = useFieldContext();
2511
2529
  const { isTouched, hasError, helperText } = getFieldStatus(field);
2512
2530
  return /* @__PURE__ */ jsxs11(FormControl4, { component: "fieldset", children: [
2513
- /* @__PURE__ */ jsx24(
2531
+ /* @__PURE__ */ jsx25(
2514
2532
  FormControlLabel3,
2515
2533
  {
2516
- control: /* @__PURE__ */ jsx24(
2534
+ control: /* @__PURE__ */ jsx25(
2517
2535
  Switch,
2518
2536
  {
2519
2537
  name: field.name,
@@ -2527,17 +2545,17 @@ var FormSwitch = (props) => {
2527
2545
  label: props.label ?? ""
2528
2546
  }
2529
2547
  ),
2530
- isTouched && hasError && /* @__PURE__ */ jsx24(FormHelperText4, { error: hasError, children: helperText })
2548
+ isTouched && hasError && /* @__PURE__ */ jsx25(FormHelperText4, { error: hasError, children: helperText })
2531
2549
  ] });
2532
2550
  };
2533
2551
 
2534
2552
  // src/components/form/FormTextField.tsx
2535
2553
  import { TextField as TextField3 } from "@mui/material";
2536
- import { jsx as jsx25 } from "react/jsx-runtime";
2554
+ import { jsx as jsx26 } from "react/jsx-runtime";
2537
2555
  var FormTextField = (props) => {
2538
2556
  const field = useFieldContext();
2539
2557
  const { isTouched, hasError, helperText } = getFieldStatus(field);
2540
- return /* @__PURE__ */ jsx25(
2558
+ return /* @__PURE__ */ jsx26(
2541
2559
  TextField3,
2542
2560
  {
2543
2561
  name: field.name,
@@ -2658,7 +2676,9 @@ var useOpenFile = (options) => {
2658
2676
  method: "GET",
2659
2677
  responseType: "blob"
2660
2678
  }),
2661
- onSuccess: (data) => window.open(URL.createObjectURL(data))
2679
+ onSuccess: (data) => {
2680
+ window.open(URL.createObjectURL(data));
2681
+ }
2662
2682
  });
2663
2683
  };
2664
2684
  var useUpdateFileMeta = (options) => {