@natoora-libs/core 0.1.16 → 0.1.17

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.
@@ -2781,7 +2781,7 @@ var RoundButton = ({
2781
2781
  onClick(e);
2782
2782
  }
2783
2783
  };
2784
- const Button15 = /* @__PURE__ */ jsx63(
2784
+ const Button16 = /* @__PURE__ */ jsx63(
2785
2785
  Fab,
2786
2786
  {
2787
2787
  className: cx(
@@ -2805,7 +2805,7 @@ var RoundButton = ({
2805
2805
  children: icon ? iconComponentMap[icon] : children || ""
2806
2806
  }
2807
2807
  );
2808
- return tooltip ? /* @__PURE__ */ jsx63(Tooltip2, { title: tooltip, children: Button15 }) : Button15;
2808
+ return tooltip ? /* @__PURE__ */ jsx63(Tooltip2, { title: tooltip, children: Button16 }) : Button16;
2809
2809
  };
2810
2810
  var RoundButton_default = RoundButton;
2811
2811
 
@@ -6615,7 +6615,8 @@ import {
6615
6615
  TableContainer,
6616
6616
  Skeleton as Skeleton2,
6617
6617
  TableRow as TableRow4,
6618
- TableCell as TableCell4
6618
+ TableCell as TableCell4,
6619
+ CircularProgress as CircularProgress5
6619
6620
  } from "@mui/material";
6620
6621
  import { makeStyles as makeStyles47 } from "tss-react/mui";
6621
6622
 
@@ -6768,8 +6769,52 @@ import TableBody from "@mui/material/TableBody";
6768
6769
  import TableCell2 from "@mui/material/TableCell";
6769
6770
  import TableRow2 from "@mui/material/TableRow";
6770
6771
  import Typography26 from "@mui/material/Typography";
6771
- import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
6772
- var TableDesktopNoColumnsMessage = () => /* @__PURE__ */ jsx109(TableBody, { children: /* @__PURE__ */ jsx109(TableRow2, { children: /* @__PURE__ */ jsxs74(
6772
+
6773
+ // src/components/Buttons/IconButton/IconButton.tsx
6774
+ import { Button as Button13 } from "@mui/material";
6775
+ import { jsxs as jsxs74 } from "react/jsx-runtime";
6776
+ var IconButton4 = ({ icon, sx, ...props }) => {
6777
+ return /* @__PURE__ */ jsxs74(
6778
+ Button13,
6779
+ {
6780
+ ...props,
6781
+ sx: {
6782
+ display: "flex",
6783
+ gap: 1,
6784
+ alignItems: "center",
6785
+ justifyContent: "center",
6786
+ borderRadius: 100,
6787
+ ...sx
6788
+ },
6789
+ children: [
6790
+ icon,
6791
+ props.children
6792
+ ]
6793
+ }
6794
+ );
6795
+ };
6796
+ var IconButton_default = IconButton4;
6797
+
6798
+ // src/components/icons/IconTableEdit.tsx
6799
+ import { jsx as jsx109 } from "react/jsx-runtime";
6800
+ var SvgIconTableEdit = (props) => /* @__PURE__ */ jsx109(
6801
+ "svg",
6802
+ {
6803
+ xmlns: "http://www.w3.org/2000/svg",
6804
+ width: "24",
6805
+ height: "24",
6806
+ viewBox: "0 0 24 24",
6807
+ ...props,
6808
+ children: /* @__PURE__ */ jsx109("path", { d: "M21.7 13.35L20.7 14.35L18.65 12.3L19.65 11.3C19.86 11.08 20.21 11.08 20.42 11.3L21.7 12.58C21.92 12.79 21.92 13.14 21.7 13.35ZM12 18.94L18.07 12.88L20.12 14.93L14.06 21H12V18.94ZM4 2H18C18.5304 2 19.0391 2.21071 19.4142 2.58579C19.7893 2.96086 20 3.46957 20 4V8.17L16.17 12H12V16.17L10.17 18H4C3.46957 18 2.96086 17.7893 2.58579 17.4142C2.21071 17.0391 2 16.5304 2 16V4C2 3.46957 2.21071 2.96086 2.58579 2.58579C2.96086 2.21071 3.46957 2 4 2ZM4 6V10H10V6H4ZM12 6V10H18V6H12ZM4 12V16H10V12H4Z" })
6809
+ }
6810
+ );
6811
+ var IconTableEdit_default = SvgIconTableEdit;
6812
+
6813
+ // src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
6814
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
6815
+ var TableDesktopNoColumnsMessage = ({
6816
+ handleClickOnNoColumnsMessageAction
6817
+ }) => /* @__PURE__ */ jsx110(TableBody, { children: /* @__PURE__ */ jsx110(TableRow2, { children: /* @__PURE__ */ jsxs75(
6773
6818
  TableCell2,
6774
6819
  {
6775
6820
  sx: {
@@ -6782,12 +6827,36 @@ var TableDesktopNoColumnsMessage = () => /* @__PURE__ */ jsx109(TableBody, { chi
6782
6827
  alignItems: "center"
6783
6828
  },
6784
6829
  children: [
6785
- /* @__PURE__ */ jsx109(Typography26, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
6786
- /* @__PURE__ */ jsxs74(Typography26, { variant: "subtitle1", align: "center", color: "textSecondary", children: [
6787
- "Use the column selector on the right to choose which fields",
6788
- /* @__PURE__ */ jsx109("br", {}),
6789
- "you want to display in the table"
6790
- ] })
6830
+ /* @__PURE__ */ jsx110(Typography26, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
6831
+ /* @__PURE__ */ jsx110(Typography26, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
6832
+ /* @__PURE__ */ jsxs75(
6833
+ Typography26,
6834
+ {
6835
+ variant: "subtitle1",
6836
+ align: "center",
6837
+ color: "textSecondary",
6838
+ sx: {
6839
+ backgroundColor: colors.neutral200,
6840
+ padding: 1,
6841
+ borderRadius: 1
6842
+ },
6843
+ children: [
6844
+ "Tips: ",
6845
+ /* @__PURE__ */ jsx110(Typography26, { component: "strong", children: "Save as default" }),
6846
+ " to keep these columns for future views"
6847
+ ]
6848
+ }
6849
+ ),
6850
+ /* @__PURE__ */ jsx110(
6851
+ IconButton_default,
6852
+ {
6853
+ icon: /* @__PURE__ */ jsx110(IconTableEdit_default, { fill: colors.white }),
6854
+ variant: "contained",
6855
+ color: "primary",
6856
+ onClick: handleClickOnNoColumnsMessageAction,
6857
+ children: "OPEN MENU"
6858
+ }
6859
+ )
6791
6860
  ]
6792
6861
  }
6793
6862
  ) }) });
@@ -6795,7 +6864,7 @@ var TableDesktopNoColumnsMessage = () => /* @__PURE__ */ jsx109(TableBody, { chi
6795
6864
  // src/components/TableEmptyResult/TableEmptyResult.tsx
6796
6865
  import { TableCell as TableCell3, TableRow as TableRow3, Typography as Typography27 } from "@mui/material";
6797
6866
  import { makeStyles as makeStyles46 } from "tss-react/mui";
6798
- import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
6867
+ import { jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
6799
6868
  var useStyles46 = makeStyles46()(() => ({
6800
6869
  tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
6801
6870
  tableCellDefault: { padding: 24 }
@@ -6807,17 +6876,17 @@ var TableEmptyResult = ({
6807
6876
  }
6808
6877
  }) => {
6809
6878
  const { classes } = useStyles46();
6810
- return showClearFilterButton ? /* @__PURE__ */ jsx110(TableRow3, { children: /* @__PURE__ */ jsxs75(
6879
+ return showClearFilterButton ? /* @__PURE__ */ jsx111(TableRow3, { children: /* @__PURE__ */ jsxs76(
6811
6880
  TableCell3,
6812
6881
  {
6813
6882
  className: classes.tableCellIcon,
6814
6883
  colSpan,
6815
6884
  align: "center",
6816
6885
  children: [
6817
- /* @__PURE__ */ jsx110(EmptyGlassIcon_default, {}),
6818
- /* @__PURE__ */ jsx110(Typography27, { variant: "h6", children: "No results found." }),
6819
- /* @__PURE__ */ jsx110(Typography27, { variant: "subtitle1", children: "Search without applied filters?" }),
6820
- /* @__PURE__ */ jsx110(
6886
+ /* @__PURE__ */ jsx111(EmptyGlassIcon_default, {}),
6887
+ /* @__PURE__ */ jsx111(Typography27, { variant: "h6", children: "No results found." }),
6888
+ /* @__PURE__ */ jsx111(Typography27, { variant: "subtitle1", children: "Search without applied filters?" }),
6889
+ /* @__PURE__ */ jsx111(
6821
6890
  FilledButton_default,
6822
6891
  {
6823
6892
  copy: "Search",
@@ -6828,7 +6897,7 @@ var TableEmptyResult = ({
6828
6897
  )
6829
6898
  ]
6830
6899
  }
6831
- ) }) : /* @__PURE__ */ jsx110(TableRow3, { children: /* @__PURE__ */ jsx110(
6900
+ ) }) : /* @__PURE__ */ jsx111(TableRow3, { children: /* @__PURE__ */ jsx111(
6832
6901
  TableCell3,
6833
6902
  {
6834
6903
  className: classes.tableCellDefault,
@@ -6841,7 +6910,7 @@ var TableEmptyResult = ({
6841
6910
  var TableEmptyResult_default = TableEmptyResult;
6842
6911
 
6843
6912
  // src/components/TableDesktop/TableDesktop.tsx
6844
- import { Fragment as Fragment11, jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
6913
+ import { Fragment as Fragment11, jsx as jsx112, jsxs as jsxs77 } from "react/jsx-runtime";
6845
6914
  var ROW_HEIGHT = 56;
6846
6915
  var useStyles47 = makeStyles47()((theme) => ({
6847
6916
  root: {
@@ -6921,6 +6990,7 @@ var TableDesktop = ({
6921
6990
  updateSort,
6922
6991
  showClearFilterButton,
6923
6992
  handleClickOnClearFiltersButton,
6993
+ handleClickOnNoColumnsMessageAction,
6924
6994
  deleteItem,
6925
6995
  keyField = "id",
6926
6996
  tableLayout = "auto",
@@ -6980,7 +7050,7 @@ var TableDesktop = ({
6980
7050
  );
6981
7051
  const renderTableRows = useMemo2(() => {
6982
7052
  if (isLoading) {
6983
- return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ jsx111(TableRow4, { children: [...Array(visibleHeadCells.length)].map((_2, cellIndex) => /* @__PURE__ */ jsx111(TableCell4, { children: /* @__PURE__ */ jsx111(
7053
+ return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ jsx112(TableRow4, { children: [...Array(visibleHeadCells.length)].map((_2, cellIndex) => /* @__PURE__ */ jsx112(TableCell4, { children: /* @__PURE__ */ jsx112(
6984
7054
  Skeleton2,
6985
7055
  {
6986
7056
  animation: "pulse",
@@ -6994,7 +7064,7 @@ var TableDesktop = ({
6994
7064
  const sortedData = disableInternalSort ? data : stableSort(data, getComparator(order, orderBy));
6995
7065
  return sortedData.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((row, index) => {
6996
7066
  const isItemSelected = selected.has(row[keyField]);
6997
- return /* @__PURE__ */ jsx111(
7067
+ return /* @__PURE__ */ jsx112(
6998
7068
  RenderItem,
6999
7069
  {
7000
7070
  ...{
@@ -7034,16 +7104,21 @@ var TableDesktop = ({
7034
7104
  setSelected(/* @__PURE__ */ new Set());
7035
7105
  }
7036
7106
  }, [enableCheckboxSelection]);
7037
- return /* @__PURE__ */ jsx111("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsxs76(Paper10, { className: classes.paper, children: [
7038
- /* @__PURE__ */ jsx111(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsx111(
7107
+ return /* @__PURE__ */ jsx112("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsxs77(Paper10, { className: classes.paper, children: [
7108
+ /* @__PURE__ */ jsx112(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsx112(
7039
7109
  Table,
7040
7110
  {
7041
7111
  stickyHeader: true,
7042
7112
  "aria-labelledby": "tableTitle",
7043
7113
  "aria-label": "sticky table",
7044
7114
  style: { tableLayout },
7045
- children: visibleHeadCells.length === 0 ? /* @__PURE__ */ jsx111(TableDesktopNoColumnsMessage, {}) : /* @__PURE__ */ jsxs76(Fragment11, { children: [
7046
- /* @__PURE__ */ jsx111(
7115
+ children: visibleHeadCells.length === 0 && !isLoading ? /* @__PURE__ */ jsx112(
7116
+ TableDesktopNoColumnsMessage,
7117
+ {
7118
+ handleClickOnNoColumnsMessageAction
7119
+ }
7120
+ ) : /* @__PURE__ */ jsxs77(Fragment11, { children: [
7121
+ /* @__PURE__ */ jsx112(
7047
7122
  SmartTableHeader_default,
7048
7123
  {
7049
7124
  headCells: visibleHeadCells,
@@ -7059,14 +7134,21 @@ var TableDesktop = ({
7059
7134
  shouldShowCheckOnFilter
7060
7135
  }
7061
7136
  ),
7062
- /* @__PURE__ */ jsx111(TableBody2, { children: rowsPerPage !== emptyRows ? renderTableRows : /* @__PURE__ */ jsx111(
7137
+ !isLoading ? /* @__PURE__ */ jsx112(TableBody2, { children: rowsPerPage !== emptyRows ? renderTableRows : /* @__PURE__ */ jsx112(
7063
7138
  TableEmptyResult_default,
7064
7139
  {
7065
7140
  colSpan: enableCheckboxSelection ? visibleHeadCells.length + 1 : visibleHeadCells.length,
7066
7141
  showClearFilterButton,
7067
7142
  handleClickOnClearFiltersButton
7068
7143
  }
7069
- ) })
7144
+ ) }) : /* @__PURE__ */ jsx112(TableBody2, { children: /* @__PURE__ */ jsx112(TableRow4, { children: /* @__PURE__ */ jsx112(
7145
+ TableCell4,
7146
+ {
7147
+ colSpan: visibleHeadCells.length,
7148
+ align: "center",
7149
+ children: /* @__PURE__ */ jsx112(CircularProgress5, {})
7150
+ }
7151
+ ) }) })
7070
7152
  ] })
7071
7153
  }
7072
7154
  ) }),
@@ -7076,7 +7158,7 @@ var TableDesktop = ({
7076
7158
  var TableDesktop_default = TableDesktop;
7077
7159
 
7078
7160
  // src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
7079
- import { Fragment as Fragment12, jsx as jsx112, jsxs as jsxs77 } from "react/jsx-runtime";
7161
+ import { Fragment as Fragment12, jsx as jsx113, jsxs as jsxs78 } from "react/jsx-runtime";
7080
7162
  var useStyles48 = makeStyles48()((theme) => ({
7081
7163
  filterMenu: {
7082
7164
  display: "flex",
@@ -7111,7 +7193,7 @@ var useStyles48 = makeStyles48()((theme) => ({
7111
7193
  padding: theme.spacing(0, 1),
7112
7194
  justifyContent: "space-between"
7113
7195
  },
7114
- saveAsDefaultButton: {
7196
+ applyButton: {
7115
7197
  color: theme.palette.primary.main
7116
7198
  },
7117
7199
  skeleton: {
@@ -7146,7 +7228,10 @@ var SmartTableHeaderFilterMenu = ({
7146
7228
  setFilterOptionsData(headCell.filterOptions);
7147
7229
  }
7148
7230
  }, [headCell.filterOptions]);
7149
- const numFilterOptions = useMemo3(() => filterOptionsData?.length ?? 0, [filterOptionsData?.length]);
7231
+ const numFilterOptions = useMemo3(
7232
+ () => filterOptionsData?.length ?? 0,
7233
+ [filterOptionsData?.length]
7234
+ );
7150
7235
  const numCurrentSelectedFilters = selectedFilters.length;
7151
7236
  const handleFilterMenuOpen = (event) => {
7152
7237
  if (!numFilterOptions) {
@@ -7185,21 +7270,24 @@ var SmartTableHeaderFilterMenu = ({
7185
7270
  useEffect11(() => {
7186
7271
  setSelectedFilters(headerFilters[headCell.id] ?? []);
7187
7272
  }, [headerFilters, headCell.id]);
7188
- const isOptionChecked = useMemo3(() => (resolvedOption) => !!selectedFilters?.some(
7189
- (value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
7190
- ), [selectedFilters]);
7191
- const loadingSkeletons = /* @__PURE__ */ jsxs77(Box29, { "data-testid": "loading-skeletons", width: 272, children: [
7192
- /* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7193
- /* @__PURE__ */ jsx112(Divider9, {}),
7194
- /* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7195
- /* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7196
- /* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7197
- /* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7198
- /* @__PURE__ */ jsx112(Divider9, {}),
7199
- /* @__PURE__ */ jsx112(Skeleton3, { variant: "rounded", className: classes.skeleton })
7273
+ const isOptionChecked = useMemo3(
7274
+ () => (resolvedOption) => !!selectedFilters?.some(
7275
+ (value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
7276
+ ),
7277
+ [selectedFilters]
7278
+ );
7279
+ const loadingSkeletons = /* @__PURE__ */ jsxs78(Box29, { "data-testid": "loading-skeletons", width: 272, children: [
7280
+ /* @__PURE__ */ jsx113(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7281
+ /* @__PURE__ */ jsx113(Divider9, {}),
7282
+ /* @__PURE__ */ jsx113(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7283
+ /* @__PURE__ */ jsx113(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7284
+ /* @__PURE__ */ jsx113(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7285
+ /* @__PURE__ */ jsx113(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7286
+ /* @__PURE__ */ jsx113(Divider9, {}),
7287
+ /* @__PURE__ */ jsx113(Skeleton3, { variant: "rounded", className: classes.skeleton })
7200
7288
  ] });
7201
- return /* @__PURE__ */ jsxs77(Fragment12, { children: [
7202
- /* @__PURE__ */ jsx112(
7289
+ return /* @__PURE__ */ jsxs78(Fragment12, { children: [
7290
+ /* @__PURE__ */ jsx113(
7203
7291
  ActiveFiltersIconButton_default,
7204
7292
  {
7205
7293
  numActiveFilters,
@@ -7209,7 +7297,7 @@ var SmartTableHeaderFilterMenu = ({
7209
7297
  })
7210
7298
  }
7211
7299
  ),
7212
- /* @__PURE__ */ jsx112(
7300
+ /* @__PURE__ */ jsx113(
7213
7301
  Menu4,
7214
7302
  {
7215
7303
  open: !!anchorEl,
@@ -7218,12 +7306,12 @@ var SmartTableHeaderFilterMenu = ({
7218
7306
  "data-testid": "filter-menu",
7219
7307
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
7220
7308
  transformOrigin: { vertical: "top", horizontal: "right" },
7221
- children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ jsxs77(Box29, { className: classes.filterMenu, children: [
7222
- /* @__PURE__ */ jsx112(Box29, { px: 3, mb: 0.5, children: /* @__PURE__ */ jsx112(
7309
+ children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ jsxs78(Box29, { className: classes.filterMenu, children: [
7310
+ /* @__PURE__ */ jsx113(Box29, { px: 3, mb: 0.5, children: /* @__PURE__ */ jsx113(
7223
7311
  FormControlLabel3,
7224
7312
  {
7225
7313
  label: "Select All",
7226
- control: /* @__PURE__ */ jsx112(
7314
+ control: /* @__PURE__ */ jsx113(
7227
7315
  Checkbox5,
7228
7316
  {
7229
7317
  disableRipple: true,
@@ -7231,7 +7319,9 @@ var SmartTableHeaderFilterMenu = ({
7231
7319
  indeterminate: numCurrentSelectedFilters > 0 && numCurrentSelectedFilters < numFilterOptions,
7232
7320
  onChange: ({ target: { checked } }) => {
7233
7321
  if (checked) {
7234
- setSelectedFilters([...filterOptionsData]);
7322
+ setSelectedFilters([
7323
+ ...filterOptionsData
7324
+ ]);
7235
7325
  } else {
7236
7326
  setSelectedFilters([]);
7237
7327
  }
@@ -7240,57 +7330,52 @@ var SmartTableHeaderFilterMenu = ({
7240
7330
  )
7241
7331
  }
7242
7332
  ) }),
7243
- /* @__PURE__ */ jsx112(Divider9, { sx: { mb: 0.5 } }),
7244
- /* @__PURE__ */ jsx112(Box29, { className: classes.filterOptions, children: filterOptionsData?.map(
7245
- (option) => {
7246
- const resolvedOption = resolveOptionType(option, headCell.fieldName ?? "");
7247
- return /* @__PURE__ */ jsxs77(
7248
- Box29,
7333
+ /* @__PURE__ */ jsx113(Divider9, { sx: { mb: 0.5 } }),
7334
+ /* @__PURE__ */ jsx113(Box29, { className: classes.filterOptions, children: filterOptionsData?.map((option) => {
7335
+ const resolvedOption = resolveOptionType(
7336
+ option,
7337
+ headCell.fieldName ?? ""
7338
+ );
7339
+ return /* @__PURE__ */ jsxs78(Box29, { className: classes.filter, children: [
7340
+ /* @__PURE__ */ jsx113(
7341
+ FormControlLabel3,
7249
7342
  {
7250
- className: classes.filter,
7251
- children: [
7252
- /* @__PURE__ */ jsx112(
7253
- FormControlLabel3,
7254
- {
7255
- label: resolvedOption,
7256
- control: /* @__PURE__ */ jsx112(
7257
- Checkbox5,
7258
- {
7259
- disableRipple: true,
7260
- onChange: () => handleFilterOptionClick(option),
7261
- checked: isOptionChecked(resolvedOption)
7262
- }
7263
- )
7264
- },
7265
- resolvedOption
7266
- ),
7267
- shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */ jsx112(Tooltip7, { title: "This filter is saved as default", children: /* @__PURE__ */ jsx112(CheckIcon, { fontSize: "small", color: "action" }) }) : null
7268
- ]
7343
+ label: resolvedOption,
7344
+ control: /* @__PURE__ */ jsx113(
7345
+ Checkbox5,
7346
+ {
7347
+ disableRipple: true,
7348
+ onChange: () => handleFilterOptionClick(option),
7349
+ checked: isOptionChecked(resolvedOption)
7350
+ }
7351
+ )
7269
7352
  },
7270
7353
  resolvedOption
7271
- );
7272
- }
7273
- ) }),
7274
- /* @__PURE__ */ jsx112(Divider9, { sx: { mb: 0.5 } }),
7275
- /* @__PURE__ */ jsxs77(Box29, { className: classes.applyFilterButtonsContainer, children: [
7276
- /* @__PURE__ */ jsx112(
7354
+ ),
7355
+ shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */ jsx113(Tooltip7, { title: "This filter is saved as default", children: /* @__PURE__ */ jsx113(CheckIcon, { fontSize: "small", color: "action" }) }) : null
7356
+ ] }, resolvedOption);
7357
+ }) }),
7358
+ /* @__PURE__ */ jsx113(Divider9, { sx: { mb: 0.5 } }),
7359
+ /* @__PURE__ */ jsxs78(Box29, { className: classes.applyFilterButtonsContainer, children: [
7360
+ /* @__PURE__ */ jsx113(
7277
7361
  ExtendedButton_default,
7278
7362
  {
7279
- copy: "Save as Default",
7280
- buttonType: "button",
7363
+ copy: "Apply",
7281
7364
  variant: "text",
7282
- tooltip: "Persists those filters for future visits",
7283
- className: classes.saveAsDefaultButton,
7284
- onClick: () => handleApplyFilters(true)
7365
+ buttonType: "button",
7366
+ tooltip: "Apply the filters without saving.",
7367
+ className: classes.applyButton,
7368
+ onClick: () => handleApplyFilters(false)
7285
7369
  }
7286
7370
  ),
7287
- /* @__PURE__ */ jsx112(
7371
+ /* @__PURE__ */ jsx113(
7288
7372
  ExtendedButton_default,
7289
7373
  {
7290
- copy: "Apply",
7374
+ copy: "Save as Default",
7291
7375
  color: "primary",
7292
7376
  buttonType: "submit",
7293
- onClick: () => handleApplyFilters(false)
7377
+ tooltip: "Persists those filters for future visits",
7378
+ onClick: () => handleApplyFilters(true)
7294
7379
  }
7295
7380
  )
7296
7381
  ] })
@@ -7320,11 +7405,11 @@ import { v4 as uuidv4 } from "uuid";
7320
7405
 
7321
7406
  // src/components/TableLoading/TableLoading.tsx
7322
7407
  import { Box as Box30, Skeleton as Skeleton4 } from "@mui/material";
7323
- import { jsx as jsx113 } from "react/jsx-runtime";
7408
+ import { jsx as jsx114 } from "react/jsx-runtime";
7324
7409
  var TableLoading = ({
7325
7410
  rowsPerPage,
7326
7411
  rowHeight
7327
- }) => /* @__PURE__ */ jsx113(Box30, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx113(
7412
+ }) => /* @__PURE__ */ jsx114(Box30, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx114(
7328
7413
  Skeleton4,
7329
7414
  {
7330
7415
  animation: "pulse",
@@ -7373,7 +7458,7 @@ function calculateRowsPerPage(rowHeight) {
7373
7458
  }
7374
7459
 
7375
7460
  // src/components/Table/Table.tsx
7376
- import { jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
7461
+ import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
7377
7462
  var useStyles49 = makeStyles49()(() => ({
7378
7463
  root: {
7379
7464
  height: "calc(100vh - 262px)",
@@ -7451,24 +7536,24 @@ var Table2 = ({
7451
7536
  );
7452
7537
  const rowsComponents = rows.map((row) => {
7453
7538
  if (RenderItem) {
7454
- return /* @__PURE__ */ jsx114(RenderItem, { ...row }, row.id);
7539
+ return /* @__PURE__ */ jsx115(RenderItem, { ...row }, row.id);
7455
7540
  }
7456
- return /* @__PURE__ */ jsx114(TableRow5, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ jsx114(TableCell5, { children: row[column.id] }, column.id)) }, row.id);
7541
+ return /* @__PURE__ */ jsx115(TableRow5, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ jsx115(TableCell5, { children: row[column.id] }, column.id)) }, row.id);
7457
7542
  });
7458
7543
  if (emptyRows > 0 && rowsPerPage > emptyRows) {
7459
7544
  rowsComponents.push(
7460
- /* @__PURE__ */ jsx114(TableRow5, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx114(TableCell5, { colSpan: 8 }) }, uuidv4())
7545
+ /* @__PURE__ */ jsx115(TableRow5, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx115(TableCell5, { colSpan: 8 }) }, uuidv4())
7461
7546
  );
7462
7547
  }
7463
7548
  return rowsComponents;
7464
7549
  };
7465
- return /* @__PURE__ */ jsx114(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx114(Box31, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx114(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx114(TableContainer2, { className: classes.container, children: /* @__PURE__ */ jsxs78(MUITable, { size: "medium", stickyHeader: true, children: [
7466
- /* @__PURE__ */ jsx114(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx114(TableRow5, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx114(
7550
+ return /* @__PURE__ */ jsx115(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx115(Box31, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx115(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx115(TableContainer2, { className: classes.container, children: /* @__PURE__ */ jsxs79(MUITable, { size: "medium", stickyHeader: true, children: [
7551
+ /* @__PURE__ */ jsx115(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx115(TableRow5, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx115(
7467
7552
  TableCell5,
7468
7553
  {
7469
7554
  align: "left",
7470
7555
  sortDirection: orderBy === headCell.id ? order : void 0,
7471
- children: /* @__PURE__ */ jsx114(
7556
+ children: /* @__PURE__ */ jsx115(
7472
7557
  TableSortLabel2,
7473
7558
  {
7474
7559
  active: orderBy === headCell.id,
@@ -7480,9 +7565,9 @@ var Table2 = ({
7480
7565
  },
7481
7566
  headCell.id
7482
7567
  )) }) }),
7483
- /* @__PURE__ */ jsxs78(TableBody3, { children: [
7568
+ /* @__PURE__ */ jsxs79(TableBody3, { children: [
7484
7569
  getTableRows(),
7485
- rowsPerPage === emptyRows && /* @__PURE__ */ jsx114(TableRow5, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx114(TableCell5, { colSpan: 8, align: "center", children: "Nothing to display" }) })
7570
+ rowsPerPage === emptyRows && /* @__PURE__ */ jsx115(TableRow5, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx115(TableCell5, { colSpan: 8, align: "center", children: "Nothing to display" }) })
7486
7571
  ] })
7487
7572
  ] }) }) }) });
7488
7573
  };
@@ -7490,8 +7575,8 @@ var Table_default = Table2;
7490
7575
 
7491
7576
  // src/components/TableDesktopFooter/TableDesktopFooter.tsx
7492
7577
  import Refresh3 from "@mui/icons-material/Refresh";
7493
- import { Box as Box32, Button as Button13, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as Typography28 } from "@mui/material";
7494
- import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
7578
+ import { Box as Box32, Button as Button14, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as Typography28 } from "@mui/material";
7579
+ import { jsx as jsx116, jsxs as jsxs80 } from "react/jsx-runtime";
7495
7580
  var TableDesktopFooter = ({
7496
7581
  numPages,
7497
7582
  page,
@@ -7502,7 +7587,7 @@ var TableDesktopFooter = ({
7502
7587
  refetch,
7503
7588
  isFetching
7504
7589
  }) => {
7505
- return /* @__PURE__ */ jsxs79(
7590
+ return /* @__PURE__ */ jsxs80(
7506
7591
  Box32,
7507
7592
  {
7508
7593
  py: 1,
@@ -7513,8 +7598,8 @@ var TableDesktopFooter = ({
7513
7598
  borderTop: `1px solid ${colors.neutral300}`,
7514
7599
  bgcolor: (theme) => theme.palette.background.default,
7515
7600
  children: [
7516
- /* @__PURE__ */ jsxs79(
7517
- Button13,
7601
+ /* @__PURE__ */ jsxs80(
7602
+ Button14,
7518
7603
  {
7519
7604
  disableRipple: true,
7520
7605
  variant: "outlined",
@@ -7528,7 +7613,7 @@ var TableDesktopFooter = ({
7528
7613
  borderColor: colors.neutral600
7529
7614
  },
7530
7615
  children: [
7531
- /* @__PURE__ */ jsx115(
7616
+ /* @__PURE__ */ jsx116(
7532
7617
  Refresh3,
7533
7618
  {
7534
7619
  fontSize: "small",
@@ -7539,21 +7624,21 @@ var TableDesktopFooter = ({
7539
7624
  ]
7540
7625
  }
7541
7626
  ),
7542
- /* @__PURE__ */ jsxs79(Box32, { display: "flex", children: [
7543
- /* @__PURE__ */ jsxs79(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
7544
- /* @__PURE__ */ jsx115(Typography28, { children: "Rows per page:" }),
7545
- /* @__PURE__ */ jsx115(
7627
+ /* @__PURE__ */ jsxs80(Box32, { display: "flex", children: [
7628
+ /* @__PURE__ */ jsxs80(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
7629
+ /* @__PURE__ */ jsx116(Typography28, { children: "Rows per page:" }),
7630
+ /* @__PURE__ */ jsx116(
7546
7631
  Select4,
7547
7632
  {
7548
7633
  value: pageSize,
7549
7634
  onChange: handlePageSizeChange,
7550
7635
  size: "small",
7551
7636
  variant: "standard",
7552
- children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx115(MenuItem4, { value: size, children: size }, size))
7637
+ children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx116(MenuItem4, { value: size, children: size }, size))
7553
7638
  }
7554
7639
  )
7555
7640
  ] }),
7556
- /* @__PURE__ */ jsx115(
7641
+ /* @__PURE__ */ jsx116(
7557
7642
  Pagination2,
7558
7643
  {
7559
7644
  color: "standard",
@@ -7573,11 +7658,11 @@ import { useEffect as useEffect13, useRef as useRef5, useState as useState20 } f
7573
7658
  import CheckIcon2 from "@mui/icons-material/Check";
7574
7659
  import CloseIcon from "@mui/icons-material/Close";
7575
7660
  import EditIcon from "@mui/icons-material/Edit";
7576
- import { Box as Box33, Checkbox as Checkbox6, IconButton as IconButton4, TableCell as TableCell6, TextField as TextField9, Tooltip as Tooltip8 } from "@mui/material";
7661
+ import { Box as Box33, Checkbox as Checkbox6, IconButton as IconButton5, TableCell as TableCell6, TextField as TextField9, Tooltip as Tooltip8 } from "@mui/material";
7577
7662
 
7578
7663
  // src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
7579
7664
  import { useState as useState18, memo as memo22, useEffect as useEffect12 } from "react";
7580
- import { jsx as jsx116 } from "react/jsx-runtime";
7665
+ import { jsx as jsx117 } from "react/jsx-runtime";
7581
7666
  var resolveValue = (value) => {
7582
7667
  if (typeof value === "string") {
7583
7668
  return value;
@@ -7609,7 +7694,7 @@ var TableDesktopSmartSelect = memo22(({
7609
7694
  setOptions(parsedOptions);
7610
7695
  }
7611
7696
  }, [filterOptions]);
7612
- return /* @__PURE__ */ jsx116(
7697
+ return /* @__PURE__ */ jsx117(
7613
7698
  SmartSelect_default,
7614
7699
  {
7615
7700
  ref,
@@ -7634,7 +7719,7 @@ var TableDesktopSmartSelect = memo22(({
7634
7719
  // src/components/TableDesktopRowCell/TableDesktopTextField.tsx
7635
7720
  import { useMemo as useMemo4, useState as useState19 } from "react";
7636
7721
  import { TextField as TextField8 } from "@mui/material";
7637
- import { jsx as jsx117 } from "react/jsx-runtime";
7722
+ import { jsx as jsx118 } from "react/jsx-runtime";
7638
7723
  var TableDesktopTextField = ({
7639
7724
  rowId,
7640
7725
  editInitialValue,
@@ -7657,7 +7742,7 @@ var TableDesktopTextField = ({
7657
7742
  commitValue(input);
7658
7743
  }
7659
7744
  };
7660
- return /* @__PURE__ */ jsx117(
7745
+ return /* @__PURE__ */ jsx118(
7661
7746
  TextField8,
7662
7747
  {
7663
7748
  fullWidth: true,
@@ -7678,10 +7763,10 @@ var TableDesktopTextField = ({
7678
7763
  };
7679
7764
 
7680
7765
  // src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
7681
- import { jsx as jsx118, jsxs as jsxs80 } from "react/jsx-runtime";
7766
+ import { jsx as jsx119, jsxs as jsxs81 } from "react/jsx-runtime";
7682
7767
  var getReadOnlyBooleanIcon = (value) => {
7683
7768
  if (value) {
7684
- return /* @__PURE__ */ jsx118(CheckIcon2, { sx: { fontSize: 16 } });
7769
+ return /* @__PURE__ */ jsx119(CheckIcon2, { sx: { fontSize: 16 } });
7685
7770
  }
7686
7771
  return "-";
7687
7772
  };
@@ -7731,7 +7816,7 @@ var TableDesktopRowCell = ({
7731
7816
  };
7732
7817
  }, [isEditMode]);
7733
7818
  const editableComponents = {
7734
- "select": /* @__PURE__ */ jsx118(
7819
+ "select": /* @__PURE__ */ jsx119(
7735
7820
  TableDesktopSmartSelect,
7736
7821
  {
7737
7822
  rowId,
@@ -7745,7 +7830,7 @@ var TableDesktopRowCell = ({
7745
7830
  onUpdateEditableCell
7746
7831
  }
7747
7832
  ),
7748
- "checkbox": /* @__PURE__ */ jsx118(
7833
+ "checkbox": /* @__PURE__ */ jsx119(
7749
7834
  Checkbox6,
7750
7835
  {
7751
7836
  disableRipple: true,
@@ -7756,7 +7841,7 @@ var TableDesktopRowCell = ({
7756
7841
  }
7757
7842
  }
7758
7843
  ),
7759
- "text": /* @__PURE__ */ jsx118(
7844
+ "text": /* @__PURE__ */ jsx119(
7760
7845
  TableDesktopTextField,
7761
7846
  {
7762
7847
  rowId,
@@ -7767,7 +7852,7 @@ var TableDesktopRowCell = ({
7767
7852
  onUpdateEditableCell
7768
7853
  }
7769
7854
  ),
7770
- "numeric": /* @__PURE__ */ jsx118(
7855
+ "numeric": /* @__PURE__ */ jsx119(
7771
7856
  TextField9,
7772
7857
  {
7773
7858
  fullWidth: true,
@@ -7793,7 +7878,7 @@ var TableDesktopRowCell = ({
7793
7878
  e.stopPropagation();
7794
7879
  setIsEditMode((prev) => !prev);
7795
7880
  };
7796
- return /* @__PURE__ */ jsx118(Tooltip8, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ jsx118(
7881
+ return /* @__PURE__ */ jsx119(Tooltip8, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ jsx119(
7797
7882
  TableCell6,
7798
7883
  {
7799
7884
  align: "left",
@@ -7811,7 +7896,7 @@ var TableDesktopRowCell = ({
7811
7896
  },
7812
7897
  background: isEditMode ? colors.lightBlueBackground : (theme) => theme.palette.background.default
7813
7898
  },
7814
- children: /* @__PURE__ */ jsxs80(
7899
+ children: /* @__PURE__ */ jsxs81(
7815
7900
  Box33,
7816
7901
  {
7817
7902
  p: 1,
@@ -7820,8 +7905,8 @@ var TableDesktopRowCell = ({
7820
7905
  textOverflow: "ellipsis",
7821
7906
  whiteSpace: "nowrap",
7822
7907
  children: [
7823
- isCellHovered ? /* @__PURE__ */ jsx118(Tooltip8, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ jsx118(
7824
- IconButton4,
7908
+ isCellHovered ? /* @__PURE__ */ jsx119(Tooltip8, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ jsx119(
7909
+ IconButton5,
7825
7910
  {
7826
7911
  onClick: handleEditClick,
7827
7912
  sx: {
@@ -7835,7 +7920,7 @@ var TableDesktopRowCell = ({
7835
7920
  backgroundColor: isEditMode ? colors.lightBlueBackground : colors.neutral150
7836
7921
  }
7837
7922
  },
7838
- children: isEditMode ? /* @__PURE__ */ jsx118(CloseIcon, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx118(EditIcon, { fontSize: "small" })
7923
+ children: isEditMode ? /* @__PURE__ */ jsx119(CloseIcon, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx119(EditIcon, { fontSize: "small" })
7839
7924
  }
7840
7925
  ) }) : null,
7841
7926
  isEditMode && editableCellType ? editableComponents[editableCellType] : renderReadOnlyValue(readOnlyValue)
@@ -7851,7 +7936,7 @@ import { memo as memo23, useEffect as useEffect14, useState as useState21 } from
7851
7936
  import { ImportExport as ImportExportIcon } from "@mui/icons-material";
7852
7937
  import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
7853
7938
  import { makeStyles as makeStyles50 } from "tss-react/mui";
7854
- import { jsx as jsx119 } from "react/jsx-runtime";
7939
+ import { jsx as jsx120 } from "react/jsx-runtime";
7855
7940
  var useStyles50 = makeStyles50()(() => ({
7856
7941
  sortLabel: {
7857
7942
  "& .MuiTableSortLabel-icon": {
@@ -7896,7 +7981,7 @@ var TableHeader = ({ cells, onSort = null }) => {
7896
7981
  });
7897
7982
  setSortableCells(sortedCells);
7898
7983
  };
7899
- return /* @__PURE__ */ jsx119(TableHead3, { children: /* @__PURE__ */ jsx119(TableRow6, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx119(TableCell7, { children: cell.isSortable ? /* @__PURE__ */ jsx119(
7984
+ return /* @__PURE__ */ jsx120(TableHead3, { children: /* @__PURE__ */ jsx120(TableRow6, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx120(TableCell7, { children: cell.isSortable ? /* @__PURE__ */ jsx120(
7900
7985
  TableSortLabel3,
7901
7986
  {
7902
7987
  className: classes.sortLabel,
@@ -7910,9 +7995,9 @@ var TableHeader = ({ cells, onSort = null }) => {
7910
7995
  var TableHeader_default = memo23(TableHeader);
7911
7996
 
7912
7997
  // src/components/TextDivider/TextDivider.tsx
7913
- import { Box as Box34, Typography as Typography29, Divider as Divider10, Button as Button14 } from "@mui/material";
7998
+ import { Box as Box34, Typography as Typography29, Divider as Divider10, Button as Button15 } from "@mui/material";
7914
7999
  import { makeStyles as makeStyles51 } from "tss-react/mui";
7915
- import { jsx as jsx120, jsxs as jsxs81 } from "react/jsx-runtime";
8000
+ import { jsx as jsx121, jsxs as jsxs82 } from "react/jsx-runtime";
7916
8001
  var useStyles51 = makeStyles51()(() => ({
7917
8002
  icon: {
7918
8003
  fontSize: 20
@@ -7949,7 +8034,7 @@ var TextDivider = ({
7949
8034
  }) => {
7950
8035
  const { classes } = useStyles51();
7951
8036
  const iconColor = color ?? colors.neutral900;
7952
- return /* @__PURE__ */ jsxs81(
8037
+ return /* @__PURE__ */ jsxs82(
7953
8038
  Box34,
7954
8039
  {
7955
8040
  display: "flex",
@@ -7957,10 +8042,10 @@ var TextDivider = ({
7957
8042
  justifyContent: "space-between",
7958
8043
  className: classes.container,
7959
8044
  children: [
7960
- /* @__PURE__ */ jsx120(Divider10, { className: classes.leftDivider }),
7961
- /* @__PURE__ */ jsx120(Button14, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs81(Box34, { className: classes.center, children: [
7962
- Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx120(Icon2, { className: classes.icon, style: { color: iconColor } }),
7963
- /* @__PURE__ */ jsx120(
8045
+ /* @__PURE__ */ jsx121(Divider10, { className: classes.leftDivider }),
8046
+ /* @__PURE__ */ jsx121(Button15, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs82(Box34, { className: classes.center, children: [
8047
+ Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx121(Icon2, { className: classes.icon, style: { color: iconColor } }),
8048
+ /* @__PURE__ */ jsx121(
7964
8049
  Typography29,
7965
8050
  {
7966
8051
  color: "textSecondary",
@@ -7969,9 +8054,9 @@ var TextDivider = ({
7969
8054
  children: title
7970
8055
  }
7971
8056
  ),
7972
- Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx120(Icon2, { className: classes.icon, style: { color: iconColor } })
8057
+ Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx121(Icon2, { className: classes.icon, style: { color: iconColor } })
7973
8058
  ] }) }),
7974
- /* @__PURE__ */ jsx120(Divider10, { className: classes.rightDivider })
8059
+ /* @__PURE__ */ jsx121(Divider10, { className: classes.rightDivider })
7975
8060
  ]
7976
8061
  }
7977
8062
  );
@@ -7983,7 +8068,7 @@ import { DateRangePicker } from "react-dates";
7983
8068
  import { makeStyles as makeStyles52 } from "tss-react/mui";
7984
8069
  import "react-dates/initialize";
7985
8070
  import "react-dates/lib/css/_datepicker.css";
7986
- import { jsx as jsx121 } from "react/jsx-runtime";
8071
+ import { jsx as jsx122 } from "react/jsx-runtime";
7987
8072
  var useStyles52 = makeStyles52()((theme) => ({
7988
8073
  wrapper: {
7989
8074
  "& .DateRangePicker": {
@@ -8079,7 +8164,7 @@ var ThemedDateRangePicker = ({
8079
8164
  ...props
8080
8165
  }) => {
8081
8166
  const { classes, cx } = useStyles52();
8082
- return /* @__PURE__ */ jsx121("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx121(DateRangePicker, { ...props }) });
8167
+ return /* @__PURE__ */ jsx122("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx122(DateRangePicker, { ...props }) });
8083
8168
  };
8084
8169
  var ThemedDateRangePicker_default = ThemedDateRangePicker;
8085
8170
 
@@ -8087,7 +8172,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
8087
8172
  import { memo as memo24 } from "react";
8088
8173
  import { AppBar, Box as Box35, Toolbar } from "@mui/material";
8089
8174
  import { makeStyles as makeStyles53 } from "tss-react/mui";
8090
- import { jsx as jsx122, jsxs as jsxs82 } from "react/jsx-runtime";
8175
+ import { jsx as jsx123, jsxs as jsxs83 } from "react/jsx-runtime";
8091
8176
  var useStyles53 = makeStyles53()((theme) => ({
8092
8177
  menuButton: {
8093
8178
  color: theme.palette.primary.contrastText
@@ -8107,9 +8192,9 @@ var TheToolbar = ({
8107
8192
  rightSection
8108
8193
  }) => {
8109
8194
  const { classes } = useStyles53();
8110
- return /* @__PURE__ */ jsxs82(Box35, { children: [
8111
- /* @__PURE__ */ jsx122(AppBar, { children: /* @__PURE__ */ jsxs82(Toolbar, { className: classes.topBar, children: [
8112
- /* @__PURE__ */ jsx122(
8195
+ return /* @__PURE__ */ jsxs83(Box35, { children: [
8196
+ /* @__PURE__ */ jsx123(AppBar, { children: /* @__PURE__ */ jsxs83(Toolbar, { className: classes.topBar, children: [
8197
+ /* @__PURE__ */ jsx123(
8113
8198
  RoundButton_default,
8114
8199
  {
8115
8200
  className: classes.menuButton,
@@ -8118,7 +8203,7 @@ var TheToolbar = ({
8118
8203
  onClick: handleOpen
8119
8204
  }
8120
8205
  ),
8121
- /* @__PURE__ */ jsx122(
8206
+ /* @__PURE__ */ jsx123(
8122
8207
  CompanyLogo_default,
8123
8208
  {
8124
8209
  size: "small",
@@ -8127,8 +8212,8 @@ var TheToolbar = ({
8127
8212
  imageLogoLightSmall
8128
8213
  }
8129
8214
  ),
8130
- /* @__PURE__ */ jsx122(Box35, { ml: 2, children: leftSection }),
8131
- /* @__PURE__ */ jsx122(Box35, { ml: "auto", children: rightSection })
8215
+ /* @__PURE__ */ jsx123(Box35, { ml: 2, children: leftSection }),
8216
+ /* @__PURE__ */ jsx123(Box35, { ml: "auto", children: rightSection })
8132
8217
  ] }) }),
8133
8218
  LeftDrawer
8134
8219
  ] });
@@ -8137,20 +8222,20 @@ var TheToolbar_default = memo24(TheToolbar);
8137
8222
 
8138
8223
  // src/components/ToastMessage/ToastMessage.tsx
8139
8224
  import { Alert as MuiAlert, Snackbar } from "@mui/material";
8140
- import { jsx as jsx123 } from "react/jsx-runtime";
8225
+ import { jsx as jsx124 } from "react/jsx-runtime";
8141
8226
  var ToastMessage = ({
8142
8227
  toastType,
8143
8228
  toastMessage,
8144
8229
  open,
8145
8230
  onClose
8146
- }) => /* @__PURE__ */ jsx123(
8231
+ }) => /* @__PURE__ */ jsx124(
8147
8232
  Snackbar,
8148
8233
  {
8149
8234
  open,
8150
8235
  autoHideDuration: 1500,
8151
8236
  onClose,
8152
8237
  anchorOrigin: { vertical: "top", horizontal: "right" },
8153
- children: /* @__PURE__ */ jsx123(
8238
+ children: /* @__PURE__ */ jsx124(
8154
8239
  MuiAlert,
8155
8240
  {
8156
8241
  elevation: 6,
@@ -8187,7 +8272,7 @@ import {
8187
8272
  Fade as Fade2
8188
8273
  } from "@mui/material";
8189
8274
  import { makeStyles as makeStyles54 } from "tss-react/mui";
8190
- import { jsx as jsx124, jsxs as jsxs83 } from "react/jsx-runtime";
8275
+ import { jsx as jsx125, jsxs as jsxs84 } from "react/jsx-runtime";
8191
8276
  var useStyles54 = makeStyles54()((theme) => ({
8192
8277
  paper: {
8193
8278
  padding: theme.spacing(2)
@@ -8217,7 +8302,7 @@ var TwoButtonDialog = ({
8217
8302
  cancelButton
8218
8303
  }) => {
8219
8304
  const { classes } = useStyles54();
8220
- return /* @__PURE__ */ jsx124(
8305
+ return /* @__PURE__ */ jsx125(
8221
8306
  Dialog5,
8222
8307
  {
8223
8308
  open,
@@ -8227,9 +8312,9 @@ var TwoButtonDialog = ({
8227
8312
  closeAfterTransition: true,
8228
8313
  BackdropComponent: Backdrop,
8229
8314
  BackdropProps: { timeout: 500 },
8230
- children: /* @__PURE__ */ jsx124(Fade2, { in: open, children: /* @__PURE__ */ jsxs83(Paper12, { className: classes.paper, children: [
8231
- /* @__PURE__ */ jsxs83(Box36, { className: classes.mb, children: [
8232
- /* @__PURE__ */ jsx124(Typography30, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx124(
8315
+ children: /* @__PURE__ */ jsx125(Fade2, { in: open, children: /* @__PURE__ */ jsxs84(Paper12, { className: classes.paper, children: [
8316
+ /* @__PURE__ */ jsxs84(Box36, { className: classes.mb, children: [
8317
+ /* @__PURE__ */ jsx125(Typography30, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx125(
8233
8318
  Box36,
8234
8319
  {
8235
8320
  sx: {
@@ -8238,7 +8323,7 @@ var TwoButtonDialog = ({
8238
8323
  children: title
8239
8324
  }
8240
8325
  ) }),
8241
- /* @__PURE__ */ jsxs83(
8326
+ /* @__PURE__ */ jsxs84(
8242
8327
  Box36,
8243
8328
  {
8244
8329
  className: classes.mt,
@@ -8246,15 +8331,15 @@ var TwoButtonDialog = ({
8246
8331
  fontWeight: 600
8247
8332
  },
8248
8333
  children: [
8249
- subtitle1 && /* @__PURE__ */ jsx124(Typography30, { variant: "subtitle1", children: subtitle1 }),
8250
- subtitle2 && /* @__PURE__ */ jsx124(Typography30, { variant: "subtitle1", children: subtitle2 })
8334
+ subtitle1 && /* @__PURE__ */ jsx125(Typography30, { variant: "subtitle1", children: subtitle1 }),
8335
+ subtitle2 && /* @__PURE__ */ jsx125(Typography30, { variant: "subtitle1", children: subtitle2 })
8251
8336
  ]
8252
8337
  }
8253
8338
  )
8254
8339
  ] }),
8255
- /* @__PURE__ */ jsx124(Divider11, {}),
8256
- /* @__PURE__ */ jsxs83(Box36, { className: classes.buttonContainer, children: [
8257
- /* @__PURE__ */ jsx124(
8340
+ /* @__PURE__ */ jsx125(Divider11, {}),
8341
+ /* @__PURE__ */ jsxs84(Box36, { className: classes.buttonContainer, children: [
8342
+ /* @__PURE__ */ jsx125(
8258
8343
  FilledButton_default,
8259
8344
  {
8260
8345
  copy: cancelLabel,
@@ -8267,7 +8352,7 @@ var TwoButtonDialog = ({
8267
8352
  }
8268
8353
  }
8269
8354
  ),
8270
- /* @__PURE__ */ jsx124(
8355
+ /* @__PURE__ */ jsx125(
8271
8356
  FilledButton_default,
8272
8357
  {
8273
8358
  color: "primary",
@@ -8276,7 +8361,7 @@ var TwoButtonDialog = ({
8276
8361
  }
8277
8362
  )
8278
8363
  ] }),
8279
- /* @__PURE__ */ jsx124(Loading_default, { isLoading: dialogLoading })
8364
+ /* @__PURE__ */ jsx125(Loading_default, { isLoading: dialogLoading })
8280
8365
  ] }) })
8281
8366
  }
8282
8367
  );
@@ -8286,9 +8371,9 @@ var TwoButtonDialog_default = TwoButtonDialog;
8286
8371
  // src/components/UserBust/UserBust.tsx
8287
8372
  import { memo as memo25 } from "react";
8288
8373
  import { Avatar as Avatar2, Typography as Typography31 } from "@mui/material";
8289
- import { jsx as jsx125, jsxs as jsxs84 } from "react/jsx-runtime";
8290
- var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs84("div", { children: [
8291
- /* @__PURE__ */ jsx125(
8374
+ import { jsx as jsx126, jsxs as jsxs85 } from "react/jsx-runtime";
8375
+ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs85("div", { children: [
8376
+ /* @__PURE__ */ jsx126(
8292
8377
  Avatar2,
8293
8378
  {
8294
8379
  src: user.profile_picture,
@@ -8296,18 +8381,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs8
8296
8381
  style: { width: avatarProps.width, height: avatarProps.height }
8297
8382
  }
8298
8383
  ),
8299
- /* @__PURE__ */ jsxs84("div", { style: { paddingTop: 16 }, children: [
8300
- /* @__PURE__ */ jsx125(Typography31, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
8301
- /* @__PURE__ */ jsx125(Typography31, { ...typographyProps.username, children: user.username })
8384
+ /* @__PURE__ */ jsxs85("div", { style: { paddingTop: 16 }, children: [
8385
+ /* @__PURE__ */ jsx126(Typography31, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
8386
+ /* @__PURE__ */ jsx126(Typography31, { ...typographyProps.username, children: user.username })
8302
8387
  ] })
8303
8388
  ] });
8304
8389
  var UserBust_default = memo25(UserBust);
8305
8390
 
8306
8391
  // src/components/icons/IconChart.tsx
8307
- import { jsx as jsx126 } from "react/jsx-runtime";
8392
+ import { jsx as jsx127 } from "react/jsx-runtime";
8308
8393
  var SvgIconChart = (props) => {
8309
8394
  const { fill } = props;
8310
- return /* @__PURE__ */ jsx126(
8395
+ return /* @__PURE__ */ jsx127(
8311
8396
  "svg",
8312
8397
  {
8313
8398
  width: "20",
@@ -8316,7 +8401,7 @@ var SvgIconChart = (props) => {
8316
8401
  fill: "none",
8317
8402
  xmlns: "http://www.w3.org/2000/svg",
8318
8403
  ...props,
8319
- children: /* @__PURE__ */ jsx126(
8404
+ children: /* @__PURE__ */ jsx127(
8320
8405
  "path",
8321
8406
  {
8322
8407
  d: "M2.49967 11.6667L2.91634 11.725L6.72467 7.91667C6.57467 7.375 6.71634 6.75833 7.15801 6.325C7.80801 5.66667 8.85801 5.66667 9.50801 6.325C9.94967 6.75833 10.0913 7.375 9.94134 7.91667L12.083 10.0583L12.4997 10C12.6497 10 12.7913 10 12.9163 10.0583L15.8913 7.08333C15.833 6.95833 15.833 6.81667 15.833 6.66667C15.833 6.22464 16.0086 5.80072 16.3212 5.48816C16.6337 5.17559 17.0576 5 17.4997 5C17.9417 5 18.3656 5.17559 18.6782 5.48816C18.9907 5.80072 19.1663 6.22464 19.1663 6.66667C19.1663 7.10869 18.9907 7.53262 18.6782 7.84518C18.3656 8.15774 17.9417 8.33333 17.4997 8.33333C17.3497 8.33333 17.208 8.33333 17.083 8.275L14.108 11.25C14.1663 11.375 14.1663 11.5167 14.1663 11.6667C14.1663 12.1087 13.9907 12.5326 13.6782 12.8452C13.3656 13.1577 12.9417 13.3333 12.4997 13.3333C12.0576 13.3333 11.6337 13.1577 11.3212 12.8452C11.0086 12.5326 10.833 12.1087 10.833 11.6667L10.8913 11.25L8.74967 9.10833C8.48301 9.16667 8.18301 9.16667 7.91634 9.10833L4.10801 12.9167L4.16634 13.3333C4.16634 13.7754 3.99075 14.1993 3.67819 14.5118C3.36563 14.8244 2.9417 15 2.49967 15C2.05765 15 1.63372 14.8244 1.32116 14.5118C1.0086 14.1993 0.833008 13.7754 0.833008 13.3333C0.833008 12.8913 1.0086 12.4674 1.32116 12.1548C1.63372 11.8423 2.05765 11.6667 2.49967 11.6667Z",