@natoora-libs/core 0.1.13-dev-doug-2 → 0.1.13-dev-doug-3

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.
@@ -6943,10 +6943,39 @@ var SmartTableHeader = ({
6943
6943
  };
6944
6944
  var SmartTableHeader_default = (0, import_react32.memo)(SmartTableHeader);
6945
6945
 
6946
+ // src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
6947
+ var import_TableBody = __toESM(require("@mui/material/TableBody"), 1);
6948
+ var import_TableCell = __toESM(require("@mui/material/TableCell"), 1);
6949
+ var import_TableRow = __toESM(require("@mui/material/TableRow"), 1);
6950
+ var import_Typography = __toESM(require("@mui/material/Typography"), 1);
6951
+ var import_jsx_runtime110 = require("react/jsx-runtime");
6952
+ var TableDesktopNoColumnsMessage = () => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_TableBody.default, { children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_TableRow.default, { children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
6953
+ import_TableCell.default,
6954
+ {
6955
+ sx: {
6956
+ py: 8,
6957
+ gap: 2,
6958
+ borderBottom: "none",
6959
+ display: "flex",
6960
+ flexDirection: "column",
6961
+ justifyContent: "center",
6962
+ alignItems: "center"
6963
+ },
6964
+ children: [
6965
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_Typography.default, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
6966
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_Typography.default, { variant: "subtitle1", align: "center", color: "textSecondary", children: [
6967
+ "Use the column selector on the right to choose which fields",
6968
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("br", {}),
6969
+ "you want to display in the table"
6970
+ ] })
6971
+ ]
6972
+ }
6973
+ ) }) });
6974
+
6946
6975
  // src/components/TableEmptyResult/TableEmptyResult.tsx
6947
6976
  var import_material59 = require("@mui/material");
6948
6977
  var import_mui53 = require("tss-react/mui");
6949
- var import_jsx_runtime110 = require("react/jsx-runtime");
6978
+ var import_jsx_runtime111 = require("react/jsx-runtime");
6950
6979
  var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
6951
6980
  tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
6952
6981
  tableCellDefault: { padding: 24 }
@@ -6958,17 +6987,17 @@ var TableEmptyResult = ({
6958
6987
  }
6959
6988
  }) => {
6960
6989
  const { classes } = useStyles47();
6961
- return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material59.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
6990
+ return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material59.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
6962
6991
  import_material59.TableCell,
6963
6992
  {
6964
6993
  className: classes.tableCellIcon,
6965
6994
  colSpan,
6966
6995
  align: "center",
6967
6996
  children: [
6968
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(EmptyGlassIcon_default, {}),
6969
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material59.Typography, { variant: "h6", children: "No results found." }),
6970
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material59.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
6971
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6997
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(EmptyGlassIcon_default, {}),
6998
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material59.Typography, { variant: "h6", children: "No results found." }),
6999
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material59.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
7000
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
6972
7001
  FilledButton_default,
6973
7002
  {
6974
7003
  copy: "Search",
@@ -6979,7 +7008,7 @@ var TableEmptyResult = ({
6979
7008
  )
6980
7009
  ]
6981
7010
  }
6982
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material59.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
7011
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material59.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
6983
7012
  import_material59.TableCell,
6984
7013
  {
6985
7014
  className: classes.tableCellDefault,
@@ -6992,7 +7021,7 @@ var TableEmptyResult = ({
6992
7021
  var TableEmptyResult_default = TableEmptyResult;
6993
7022
 
6994
7023
  // src/components/TableDesktop/TableDesktop.tsx
6995
- var import_jsx_runtime111 = require("react/jsx-runtime");
7024
+ var import_jsx_runtime112 = require("react/jsx-runtime");
6996
7025
  var ROW_HEIGHT = 56;
6997
7026
  var useStyles48 = (0, import_mui54.makeStyles)()((theme) => ({
6998
7027
  root: {
@@ -7131,7 +7160,7 @@ var TableDesktop = ({
7131
7160
  );
7132
7161
  const renderTableRows = (0, import_react33.useMemo)(() => {
7133
7162
  if (isLoading) {
7134
- return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material60.TableRow, { children: [...Array(visibleHeadCells.length)].map((_2, cellIndex) => /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material60.TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
7163
+ return [...Array(Math.min(numRows, rowsPerPage))].map((_, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material60.TableRow, { children: [...Array(visibleHeadCells.length)].map((_2, cellIndex) => /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material60.TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7135
7164
  import_material60.Skeleton,
7136
7165
  {
7137
7166
  animation: "pulse",
@@ -7145,7 +7174,7 @@ var TableDesktop = ({
7145
7174
  const sortedData = disableInternalSort ? data : stableSort(data, getComparator(order, orderBy));
7146
7175
  return sortedData.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((row, index) => {
7147
7176
  const isItemSelected = selected.has(row[keyField]);
7148
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
7177
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7149
7178
  RenderItem,
7150
7179
  {
7151
7180
  ...{
@@ -7185,16 +7214,16 @@ var TableDesktop = ({
7185
7214
  setSelected(/* @__PURE__ */ new Set());
7186
7215
  }
7187
7216
  }, [enableCheckboxSelection]);
7188
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_material60.Paper, { className: classes.paper, children: [
7189
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material60.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
7217
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_material60.Paper, { className: classes.paper, children: [
7218
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material60.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7190
7219
  import_material60.Table,
7191
7220
  {
7192
7221
  stickyHeader: true,
7193
7222
  "aria-labelledby": "tableTitle",
7194
7223
  "aria-label": "sticky table",
7195
7224
  style: { tableLayout },
7196
- children: [
7197
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
7225
+ children: visibleHeadCells.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(TableDesktopNoColumnsMessage, {}) : /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
7226
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7198
7227
  SmartTableHeader_default,
7199
7228
  {
7200
7229
  headCells: visibleHeadCells,
@@ -7210,7 +7239,7 @@ var TableDesktop = ({
7210
7239
  shouldShowCheckOnFilter
7211
7240
  }
7212
7241
  ),
7213
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material60.TableBody, { children: rowsPerPage !== emptyRows ? renderTableRows : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
7242
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material60.TableBody, { children: rowsPerPage !== emptyRows ? renderTableRows : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7214
7243
  TableEmptyResult_default,
7215
7244
  {
7216
7245
  colSpan: enableCheckboxSelection ? visibleHeadCells.length + 1 : visibleHeadCells.length,
@@ -7218,7 +7247,7 @@ var TableDesktop = ({
7218
7247
  handleClickOnClearFiltersButton
7219
7248
  }
7220
7249
  ) })
7221
- ]
7250
+ ] })
7222
7251
  }
7223
7252
  ) }),
7224
7253
  children
@@ -7227,7 +7256,7 @@ var TableDesktop = ({
7227
7256
  var TableDesktop_default = TableDesktop;
7228
7257
 
7229
7258
  // src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
7230
- var import_jsx_runtime112 = require("react/jsx-runtime");
7259
+ var import_jsx_runtime113 = require("react/jsx-runtime");
7231
7260
  var useStyles49 = (0, import_mui55.makeStyles)()((theme) => ({
7232
7261
  filterMenu: {
7233
7262
  display: "flex",
@@ -7339,18 +7368,18 @@ var SmartTableHeaderFilterMenu = ({
7339
7368
  const isOptionChecked = (0, import_react34.useMemo)(() => (resolvedOption) => !!selectedFilters?.some(
7340
7369
  (value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
7341
7370
  ), [selectedFilters]);
7342
- const loadingSkeletons = /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_material61.Box, { "data-testid": "loading-skeletons", width: 272, children: [
7343
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
7344
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Divider, {}),
7345
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
7346
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
7347
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
7348
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
7349
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Divider, {}),
7350
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton })
7371
+ const loadingSkeletons = /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_material61.Box, { "data-testid": "loading-skeletons", width: 272, children: [
7372
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
7373
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Divider, {}),
7374
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
7375
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
7376
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
7377
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton }),
7378
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Divider, {}),
7379
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Skeleton, { variant: "rounded", className: classes.skeleton })
7351
7380
  ] });
7352
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
7353
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7381
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
7382
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7354
7383
  ActiveFiltersIconButton_default,
7355
7384
  {
7356
7385
  numActiveFilters,
@@ -7360,7 +7389,7 @@ var SmartTableHeaderFilterMenu = ({
7360
7389
  })
7361
7390
  }
7362
7391
  ),
7363
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7392
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7364
7393
  import_material61.Menu,
7365
7394
  {
7366
7395
  open: !!anchorEl,
@@ -7369,12 +7398,12 @@ var SmartTableHeaderFilterMenu = ({
7369
7398
  "data-testid": "filter-menu",
7370
7399
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
7371
7400
  transformOrigin: { vertical: "top", horizontal: "right" },
7372
- children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_material61.Box, { className: classes.filterMenu, children: [
7373
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Box, { px: 3, mb: 0.5, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7401
+ children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_material61.Box, { className: classes.filterMenu, children: [
7402
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Box, { px: 3, mb: 0.5, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7374
7403
  import_material61.FormControlLabel,
7375
7404
  {
7376
7405
  label: "Select All",
7377
- control: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7406
+ control: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7378
7407
  import_material61.Checkbox,
7379
7408
  {
7380
7409
  disableRipple: true,
@@ -7391,20 +7420,20 @@ var SmartTableHeaderFilterMenu = ({
7391
7420
  )
7392
7421
  }
7393
7422
  ) }),
7394
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Divider, { sx: { mb: 0.5 } }),
7395
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Box, { className: classes.filterOptions, children: filterOptionsData?.map(
7423
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Divider, { sx: { mb: 0.5 } }),
7424
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Box, { className: classes.filterOptions, children: filterOptionsData?.map(
7396
7425
  (option) => {
7397
7426
  const resolvedOption = resolveOptionType(option, headCell.fieldName ?? "");
7398
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
7427
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
7399
7428
  import_material61.Box,
7400
7429
  {
7401
7430
  className: classes.filter,
7402
7431
  children: [
7403
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7432
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7404
7433
  import_material61.FormControlLabel,
7405
7434
  {
7406
7435
  label: resolvedOption,
7407
- control: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7436
+ control: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7408
7437
  import_material61.Checkbox,
7409
7438
  {
7410
7439
  disableRipple: true,
@@ -7415,16 +7444,16 @@ var SmartTableHeaderFilterMenu = ({
7415
7444
  },
7416
7445
  resolvedOption
7417
7446
  ),
7418
- shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Tooltip, { title: "This filter is saved as default", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_Check.default, { fontSize: "small", color: "action" }) }) : null
7447
+ shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Tooltip, { title: "This filter is saved as default", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_Check.default, { fontSize: "small", color: "action" }) }) : null
7419
7448
  ]
7420
7449
  },
7421
7450
  resolvedOption
7422
7451
  );
7423
7452
  }
7424
7453
  ) }),
7425
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material61.Divider, { sx: { mb: 0.5 } }),
7426
- /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_material61.Box, { className: classes.applyFilterButtonsContainer, children: [
7427
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7454
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material61.Divider, { sx: { mb: 0.5 } }),
7455
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_material61.Box, { className: classes.applyFilterButtonsContainer, children: [
7456
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7428
7457
  ExtendedButton_default,
7429
7458
  {
7430
7459
  copy: "Save as Default",
@@ -7435,7 +7464,7 @@ var SmartTableHeaderFilterMenu = ({
7435
7464
  onClick: () => handleApplyFilters(true)
7436
7465
  }
7437
7466
  ),
7438
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7467
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7439
7468
  ExtendedButton_default,
7440
7469
  {
7441
7470
  copy: "Apply",
@@ -7461,11 +7490,11 @@ var import_uuid = require("uuid");
7461
7490
 
7462
7491
  // src/components/TableLoading/TableLoading.tsx
7463
7492
  var import_material62 = require("@mui/material");
7464
- var import_jsx_runtime113 = require("react/jsx-runtime");
7493
+ var import_jsx_runtime114 = require("react/jsx-runtime");
7465
7494
  var TableLoading = ({
7466
7495
  rowsPerPage,
7467
7496
  rowHeight
7468
- }) => /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material62.Box, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7497
+ }) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material62.Box, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7469
7498
  import_material62.Skeleton,
7470
7499
  {
7471
7500
  animation: "pulse",
@@ -7514,7 +7543,7 @@ function calculateRowsPerPage(rowHeight) {
7514
7543
  }
7515
7544
 
7516
7545
  // src/components/Table/Table.tsx
7517
- var import_jsx_runtime114 = require("react/jsx-runtime");
7546
+ var import_jsx_runtime115 = require("react/jsx-runtime");
7518
7547
  var useStyles50 = (0, import_mui56.makeStyles)()(() => ({
7519
7548
  root: {
7520
7549
  height: "calc(100vh - 262px)",
@@ -7592,24 +7621,24 @@ var Table2 = ({
7592
7621
  );
7593
7622
  const rowsComponents = rows.map((row) => {
7594
7623
  if (RenderItem) {
7595
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(RenderItem, { ...row }, row.id);
7624
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(RenderItem, { ...row }, row.id);
7596
7625
  }
7597
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.TableRow, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.TableCell, { children: row[column.id] }, column.id)) }, row.id);
7626
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableRow, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableCell, { children: row[column.id] }, column.id)) }, row.id);
7598
7627
  });
7599
7628
  if (emptyRows > 0 && rowsPerPage > emptyRows) {
7600
7629
  rowsComponents.push(
7601
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.TableCell, { colSpan: 8 }) }, (0, import_uuid.v4)())
7630
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableCell, { colSpan: 8 }) }, (0, import_uuid.v4)())
7602
7631
  );
7603
7632
  }
7604
7633
  return rowsComponents;
7605
7634
  };
7606
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.Paper, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.Box, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material63.Table, { size: "medium", stickyHeader: true, children: [
7607
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.TableHead, { className: classes.header, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.TableRow, { children: headCells?.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7635
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.Paper, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.Box, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material63.Table, { size: "medium", stickyHeader: true, children: [
7636
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableHead, { className: classes.header, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableRow, { children: headCells?.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7608
7637
  import_material63.TableCell,
7609
7638
  {
7610
7639
  align: "left",
7611
7640
  sortDirection: orderBy === headCell.id ? order : void 0,
7612
- children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7641
+ children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7613
7642
  import_material63.TableSortLabel,
7614
7643
  {
7615
7644
  active: orderBy === headCell.id,
@@ -7621,9 +7650,9 @@ var Table2 = ({
7621
7650
  },
7622
7651
  headCell.id
7623
7652
  )) }) }),
7624
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material63.TableBody, { children: [
7653
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material63.TableBody, { children: [
7625
7654
  getTableRows(),
7626
- rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material63.TableCell, { colSpan: 8, align: "center", children: "Nothing to display" }) })
7655
+ rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material63.TableCell, { colSpan: 8, align: "center", children: "Nothing to display" }) })
7627
7656
  ] })
7628
7657
  ] }) }) }) });
7629
7658
  };
@@ -7632,7 +7661,7 @@ var Table_default = Table2;
7632
7661
  // src/components/TableDesktopFooter/TableDesktopFooter.tsx
7633
7662
  var import_Refresh = __toESM(require("@mui/icons-material/Refresh"), 1);
7634
7663
  var import_material64 = require("@mui/material");
7635
- var import_jsx_runtime115 = require("react/jsx-runtime");
7664
+ var import_jsx_runtime116 = require("react/jsx-runtime");
7636
7665
  var TableDesktopFooter = ({
7637
7666
  numPages,
7638
7667
  page,
@@ -7643,7 +7672,7 @@ var TableDesktopFooter = ({
7643
7672
  refetch,
7644
7673
  isFetching
7645
7674
  }) => {
7646
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
7675
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
7647
7676
  import_material64.Box,
7648
7677
  {
7649
7678
  py: 1,
@@ -7654,7 +7683,7 @@ var TableDesktopFooter = ({
7654
7683
  borderTop: `1px solid ${colors.neutral300}`,
7655
7684
  bgcolor: (theme) => theme.palette.background.default,
7656
7685
  children: [
7657
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
7686
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
7658
7687
  import_material64.Button,
7659
7688
  {
7660
7689
  disableRipple: true,
@@ -7669,7 +7698,7 @@ var TableDesktopFooter = ({
7669
7698
  borderColor: colors.neutral600
7670
7699
  },
7671
7700
  children: [
7672
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7701
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7673
7702
  import_Refresh.default,
7674
7703
  {
7675
7704
  fontSize: "small",
@@ -7680,21 +7709,21 @@ var TableDesktopFooter = ({
7680
7709
  ]
7681
7710
  }
7682
7711
  ),
7683
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material64.Box, { display: "flex", children: [
7684
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material64.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
7685
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material64.Typography, { children: "Rows per page:" }),
7686
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7712
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material64.Box, { display: "flex", children: [
7713
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material64.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
7714
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material64.Typography, { children: "Rows per page:" }),
7715
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7687
7716
  import_material64.Select,
7688
7717
  {
7689
7718
  value: pageSize,
7690
7719
  onChange: handlePageSizeChange,
7691
7720
  size: "small",
7692
7721
  variant: "standard",
7693
- children: pageSizeOptions.map((size) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material64.MenuItem, { value: size, children: size }, size))
7722
+ children: pageSizeOptions.map((size) => /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material64.MenuItem, { value: size, children: size }, size))
7694
7723
  }
7695
7724
  )
7696
7725
  ] }),
7697
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7726
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7698
7727
  import_material64.Pagination,
7699
7728
  {
7700
7729
  color: "standard",
@@ -7715,7 +7744,7 @@ var import_material65 = require("@mui/material");
7715
7744
 
7716
7745
  // src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
7717
7746
  var import_react36 = require("react");
7718
- var import_jsx_runtime116 = require("react/jsx-runtime");
7747
+ var import_jsx_runtime117 = require("react/jsx-runtime");
7719
7748
  var resolveValue = (value) => {
7720
7749
  if (typeof value === "string") {
7721
7750
  return value;
@@ -7747,7 +7776,7 @@ var TableDesktopSmartSelect = (0, import_react36.memo)(({
7747
7776
  setOptions(parsedOptions);
7748
7777
  }
7749
7778
  }, [filterOptions]);
7750
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7779
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7751
7780
  SmartSelect_default,
7752
7781
  {
7753
7782
  ref,
@@ -7775,7 +7804,7 @@ var import_Check2 = __toESM(require("@mui/icons-material/Check"), 1);
7775
7804
  // src/components/TableDesktopRowCell/TableDesktopTextField.tsx
7776
7805
  var import_TextField = __toESM(require("@mui/material/TextField"), 1);
7777
7806
  var import_react37 = require("react");
7778
- var import_jsx_runtime117 = require("react/jsx-runtime");
7807
+ var import_jsx_runtime118 = require("react/jsx-runtime");
7779
7808
  var TableDesktopTextField = ({
7780
7809
  rowId,
7781
7810
  editInitialValue,
@@ -7786,7 +7815,7 @@ var TableDesktopTextField = ({
7786
7815
  }) => {
7787
7816
  const [value, setValue] = (0, import_react37.useState)(editInitialValue);
7788
7817
  const hasError = (0, import_react37.useMemo)(() => !validateInput?.(value), [value, validateInput]);
7789
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7818
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7790
7819
  import_TextField.default,
7791
7820
  {
7792
7821
  fullWidth: true,
@@ -7811,7 +7840,7 @@ var TableDesktopTextField = ({
7811
7840
  // src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
7812
7841
  var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
7813
7842
  var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
7814
- var import_jsx_runtime118 = require("react/jsx-runtime");
7843
+ var import_jsx_runtime119 = require("react/jsx-runtime");
7815
7844
  var TableDesktopRowCell = ({
7816
7845
  inputLabel,
7817
7846
  editInitialValue,
@@ -7852,7 +7881,7 @@ var TableDesktopRowCell = ({
7852
7881
  };
7853
7882
  }, [isEditMode]);
7854
7883
  const editableComponents = {
7855
- "select": /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7884
+ "select": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7856
7885
  TableDesktopSmartSelect,
7857
7886
  {
7858
7887
  rowId,
@@ -7866,7 +7895,7 @@ var TableDesktopRowCell = ({
7866
7895
  onUpdateEditableCell
7867
7896
  }
7868
7897
  ),
7869
- "checkbox": /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7898
+ "checkbox": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7870
7899
  import_material65.Checkbox,
7871
7900
  {
7872
7901
  disableRipple: true,
@@ -7877,7 +7906,7 @@ var TableDesktopRowCell = ({
7877
7906
  }
7878
7907
  }
7879
7908
  ),
7880
- "text": /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7909
+ "text": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7881
7910
  TableDesktopTextField,
7882
7911
  {
7883
7912
  rowId,
@@ -7888,7 +7917,7 @@ var TableDesktopRowCell = ({
7888
7917
  onUpdateEditableCell
7889
7918
  }
7890
7919
  ),
7891
- "numeric": /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7920
+ "numeric": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7892
7921
  import_material65.TextField,
7893
7922
  {
7894
7923
  fullWidth: true,
@@ -7912,7 +7941,7 @@ var TableDesktopRowCell = ({
7912
7941
  };
7913
7942
  const getReadOnlyBooleanIcon = (value) => {
7914
7943
  if (value) {
7915
- return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_Check2.default, { sx: { fontSize: 16 } });
7944
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Check2.default, { sx: { fontSize: 16 } });
7916
7945
  }
7917
7946
  return "-";
7918
7947
  };
@@ -7920,7 +7949,7 @@ var TableDesktopRowCell = ({
7920
7949
  e.stopPropagation();
7921
7950
  setIsEditMode((prev) => !prev);
7922
7951
  };
7923
- return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material65.Tooltip, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7952
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material65.Tooltip, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7924
7953
  import_material65.TableCell,
7925
7954
  {
7926
7955
  align: "left",
@@ -7938,7 +7967,7 @@ var TableDesktopRowCell = ({
7938
7967
  },
7939
7968
  background: isEditMode ? colors.lightBlueBackground : (theme) => theme.palette.background.default
7940
7969
  },
7941
- children: /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
7970
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
7942
7971
  import_material65.Box,
7943
7972
  {
7944
7973
  p: 1,
@@ -7947,7 +7976,7 @@ var TableDesktopRowCell = ({
7947
7976
  textOverflow: "ellipsis",
7948
7977
  whiteSpace: "nowrap",
7949
7978
  children: [
7950
- isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material65.Tooltip, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7979
+ isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material65.Tooltip, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7951
7980
  import_material65.IconButton,
7952
7981
  {
7953
7982
  onClick: handleEditClick,
@@ -7962,7 +7991,7 @@ var TableDesktopRowCell = ({
7962
7991
  backgroundColor: isEditMode ? colors.lightBlueBackground : colors.neutral150
7963
7992
  }
7964
7993
  },
7965
- children: isEditMode ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_Edit.default, { fontSize: "small" })
7994
+ children: isEditMode ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Edit.default, { fontSize: "small" })
7966
7995
  }
7967
7996
  ) }) : null,
7968
7997
  isEditMode && editableCellType ? editableComponents[editableCellType] : typeof readOnlyValue === "boolean" ? getReadOnlyBooleanIcon(readOnlyValue) : readOnlyValue
@@ -7978,7 +8007,7 @@ var import_react39 = require("react");
7978
8007
  var import_icons_material12 = require("@mui/icons-material");
7979
8008
  var import_material66 = require("@mui/material");
7980
8009
  var import_mui57 = require("tss-react/mui");
7981
- var import_jsx_runtime119 = require("react/jsx-runtime");
8010
+ var import_jsx_runtime120 = require("react/jsx-runtime");
7982
8011
  var useStyles51 = (0, import_mui57.makeStyles)()(() => ({
7983
8012
  sortLabel: {
7984
8013
  "& .MuiTableSortLabel-icon": {
@@ -8023,7 +8052,7 @@ var TableHeader = ({ cells, onSort = null }) => {
8023
8052
  });
8024
8053
  setSortableCells(sortedCells);
8025
8054
  };
8026
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8055
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material66.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material66.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material66.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
8027
8056
  import_material66.TableSortLabel,
8028
8057
  {
8029
8058
  className: classes.sortLabel,
@@ -8039,7 +8068,7 @@ var TableHeader_default = (0, import_react39.memo)(TableHeader);
8039
8068
  // src/components/TextDivider/TextDivider.tsx
8040
8069
  var import_material67 = require("@mui/material");
8041
8070
  var import_mui58 = require("tss-react/mui");
8042
- var import_jsx_runtime120 = require("react/jsx-runtime");
8071
+ var import_jsx_runtime121 = require("react/jsx-runtime");
8043
8072
  var useStyles52 = (0, import_mui58.makeStyles)()(() => ({
8044
8073
  icon: {
8045
8074
  fontSize: 20
@@ -8076,7 +8105,7 @@ var TextDivider = ({
8076
8105
  }) => {
8077
8106
  const { classes } = useStyles52();
8078
8107
  const iconColor = color ?? colors.neutral900;
8079
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
8108
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
8080
8109
  import_material67.Box,
8081
8110
  {
8082
8111
  display: "flex",
@@ -8084,10 +8113,10 @@ var TextDivider = ({
8084
8113
  justifyContent: "space-between",
8085
8114
  className: classes.container,
8086
8115
  children: [
8087
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.Divider, { className: classes.leftDivider }),
8088
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material67.Box, { className: classes.center, children: [
8089
- Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
8090
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
8116
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material67.Divider, { className: classes.leftDivider }),
8117
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material67.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_material67.Box, { className: classes.center, children: [
8118
+ Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
8119
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8091
8120
  import_material67.Typography,
8092
8121
  {
8093
8122
  color: "textSecondary",
@@ -8096,9 +8125,9 @@ var TextDivider = ({
8096
8125
  children: title
8097
8126
  }
8098
8127
  ),
8099
- Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
8128
+ Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
8100
8129
  ] }) }),
8101
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.Divider, { className: classes.rightDivider })
8130
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material67.Divider, { className: classes.rightDivider })
8102
8131
  ]
8103
8132
  }
8104
8133
  );
@@ -8110,7 +8139,7 @@ var import_react_dates = require("react-dates");
8110
8139
  var import_mui59 = require("tss-react/mui");
8111
8140
  var import_initialize = require("react-dates/initialize");
8112
8141
  var import_datepicker = require("react-dates/lib/css/_datepicker.css");
8113
- var import_jsx_runtime121 = require("react/jsx-runtime");
8142
+ var import_jsx_runtime122 = require("react/jsx-runtime");
8114
8143
  var useStyles53 = (0, import_mui59.makeStyles)()((theme) => ({
8115
8144
  wrapper: {
8116
8145
  "& .DateRangePicker": {
@@ -8206,7 +8235,7 @@ var ThemedDateRangePicker = ({
8206
8235
  ...props
8207
8236
  }) => {
8208
8237
  const { classes, cx } = useStyles53();
8209
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_react_dates.DateRangePicker, { ...props }) });
8238
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_react_dates.DateRangePicker, { ...props }) });
8210
8239
  };
8211
8240
  var ThemedDateRangePicker_default = ThemedDateRangePicker;
8212
8241
 
@@ -8214,7 +8243,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
8214
8243
  var import_react40 = require("react");
8215
8244
  var import_material68 = require("@mui/material");
8216
8245
  var import_mui60 = require("tss-react/mui");
8217
- var import_jsx_runtime122 = require("react/jsx-runtime");
8246
+ var import_jsx_runtime123 = require("react/jsx-runtime");
8218
8247
  var useStyles54 = (0, import_mui60.makeStyles)()((theme) => ({
8219
8248
  menuButton: {
8220
8249
  color: theme.palette.primary.contrastText
@@ -8234,9 +8263,9 @@ var TheToolbar = ({
8234
8263
  rightSection
8235
8264
  }) => {
8236
8265
  const { classes } = useStyles54();
8237
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_material68.Box, { children: [
8238
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material68.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_material68.Toolbar, { className: classes.topBar, children: [
8239
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8266
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material68.Box, { children: [
8267
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material68.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material68.Toolbar, { className: classes.topBar, children: [
8268
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8240
8269
  RoundButton_default,
8241
8270
  {
8242
8271
  className: classes.menuButton,
@@ -8245,7 +8274,7 @@ var TheToolbar = ({
8245
8274
  onClick: handleOpen
8246
8275
  }
8247
8276
  ),
8248
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8277
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8249
8278
  CompanyLogo_default,
8250
8279
  {
8251
8280
  size: "small",
@@ -8254,8 +8283,8 @@ var TheToolbar = ({
8254
8283
  imageLogoLightSmall
8255
8284
  }
8256
8285
  ),
8257
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material68.Box, { ml: 2, children: leftSection }),
8258
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material68.Box, { ml: "auto", children: rightSection })
8286
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material68.Box, { ml: 2, children: leftSection }),
8287
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material68.Box, { ml: "auto", children: rightSection })
8259
8288
  ] }) }),
8260
8289
  LeftDrawer
8261
8290
  ] });
@@ -8264,20 +8293,20 @@ var TheToolbar_default = (0, import_react40.memo)(TheToolbar);
8264
8293
 
8265
8294
  // src/components/ToastMessage/ToastMessage.tsx
8266
8295
  var import_material69 = require("@mui/material");
8267
- var import_jsx_runtime123 = require("react/jsx-runtime");
8296
+ var import_jsx_runtime124 = require("react/jsx-runtime");
8268
8297
  var ToastMessage = ({
8269
8298
  toastType,
8270
8299
  toastMessage,
8271
8300
  open,
8272
8301
  onClose
8273
- }) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8302
+ }) => /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8274
8303
  import_material69.Snackbar,
8275
8304
  {
8276
8305
  open,
8277
8306
  autoHideDuration: 1500,
8278
8307
  onClose,
8279
8308
  anchorOrigin: { vertical: "top", horizontal: "right" },
8280
- children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8309
+ children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8281
8310
  import_material69.Alert,
8282
8311
  {
8283
8312
  elevation: 6,
@@ -8306,7 +8335,7 @@ var ToastMessage_default = ToastMessage;
8306
8335
  // src/components/TwoButtonDialog/TwoButtonDialog.tsx
8307
8336
  var import_material70 = require("@mui/material");
8308
8337
  var import_mui61 = require("tss-react/mui");
8309
- var import_jsx_runtime124 = require("react/jsx-runtime");
8338
+ var import_jsx_runtime125 = require("react/jsx-runtime");
8310
8339
  var useStyles55 = (0, import_mui61.makeStyles)()((theme) => ({
8311
8340
  paper: {
8312
8341
  padding: theme.spacing(2)
@@ -8336,7 +8365,7 @@ var TwoButtonDialog = ({
8336
8365
  cancelButton
8337
8366
  }) => {
8338
8367
  const { classes } = useStyles55();
8339
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8368
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8340
8369
  import_material70.Dialog,
8341
8370
  {
8342
8371
  open,
@@ -8346,9 +8375,9 @@ var TwoButtonDialog = ({
8346
8375
  closeAfterTransition: true,
8347
8376
  BackdropComponent: import_material70.Backdrop,
8348
8377
  BackdropProps: { timeout: 500 },
8349
- children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material70.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_material70.Paper, { className: classes.paper, children: [
8350
- /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_material70.Box, { className: classes.mb, children: [
8351
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material70.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8378
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material70.Paper, { className: classes.paper, children: [
8379
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material70.Box, { className: classes.mb, children: [
8380
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8352
8381
  import_material70.Box,
8353
8382
  {
8354
8383
  sx: {
@@ -8357,7 +8386,7 @@ var TwoButtonDialog = ({
8357
8386
  children: title
8358
8387
  }
8359
8388
  ) }),
8360
- /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
8389
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
8361
8390
  import_material70.Box,
8362
8391
  {
8363
8392
  className: classes.mt,
@@ -8365,15 +8394,15 @@ var TwoButtonDialog = ({
8365
8394
  fontWeight: 600
8366
8395
  },
8367
8396
  children: [
8368
- subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material70.Typography, { variant: "subtitle1", children: subtitle1 }),
8369
- subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material70.Typography, { variant: "subtitle1", children: subtitle2 })
8397
+ subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Typography, { variant: "subtitle1", children: subtitle1 }),
8398
+ subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Typography, { variant: "subtitle1", children: subtitle2 })
8370
8399
  ]
8371
8400
  }
8372
8401
  )
8373
8402
  ] }),
8374
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material70.Divider, {}),
8375
- /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_material70.Box, { className: classes.buttonContainer, children: [
8376
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8403
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material70.Divider, {}),
8404
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material70.Box, { className: classes.buttonContainer, children: [
8405
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8377
8406
  FilledButton_default,
8378
8407
  {
8379
8408
  copy: cancelLabel,
@@ -8386,7 +8415,7 @@ var TwoButtonDialog = ({
8386
8415
  }
8387
8416
  }
8388
8417
  ),
8389
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8418
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8390
8419
  FilledButton_default,
8391
8420
  {
8392
8421
  color: "primary",
@@ -8395,7 +8424,7 @@ var TwoButtonDialog = ({
8395
8424
  }
8396
8425
  )
8397
8426
  ] }),
8398
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Loading_default, { isLoading: dialogLoading })
8427
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Loading_default, { isLoading: dialogLoading })
8399
8428
  ] }) })
8400
8429
  }
8401
8430
  );
@@ -8405,9 +8434,9 @@ var TwoButtonDialog_default = TwoButtonDialog;
8405
8434
  // src/components/UserBust/UserBust.tsx
8406
8435
  var import_react41 = require("react");
8407
8436
  var import_material71 = require("@mui/material");
8408
- var import_jsx_runtime125 = require("react/jsx-runtime");
8409
- var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { children: [
8410
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8437
+ var import_jsx_runtime126 = require("react/jsx-runtime");
8438
+ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { children: [
8439
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8411
8440
  import_material71.Avatar,
8412
8441
  {
8413
8442
  src: user.profile_picture,
@@ -8415,18 +8444,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, i
8415
8444
  style: { width: avatarProps.width, height: avatarProps.height }
8416
8445
  }
8417
8446
  ),
8418
- /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { style: { paddingTop: 16 }, children: [
8419
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
8420
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Typography, { ...typographyProps.username, children: user.username })
8447
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { style: { paddingTop: 16 }, children: [
8448
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material71.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
8449
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material71.Typography, { ...typographyProps.username, children: user.username })
8421
8450
  ] })
8422
8451
  ] });
8423
8452
  var UserBust_default = (0, import_react41.memo)(UserBust);
8424
8453
 
8425
8454
  // src/components/icons/IconChart.tsx
8426
- var import_jsx_runtime126 = require("react/jsx-runtime");
8455
+ var import_jsx_runtime127 = require("react/jsx-runtime");
8427
8456
  var SvgIconChart = (props) => {
8428
8457
  const { fill } = props;
8429
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8458
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
8430
8459
  "svg",
8431
8460
  {
8432
8461
  width: "20",
@@ -8435,7 +8464,7 @@ var SvgIconChart = (props) => {
8435
8464
  fill: "none",
8436
8465
  xmlns: "http://www.w3.org/2000/svg",
8437
8466
  ...props,
8438
- children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8467
+ children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
8439
8468
  "path",
8440
8469
  {
8441
8470
  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",