@natoora-libs/core 0.2.7 → 0.2.9-dev-doug-1

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.
@@ -4897,7 +4897,7 @@ var FilterSimpleSelector = ({
4897
4897
  var FilterSimpleSelector_default = FilterSimpleSelector;
4898
4898
 
4899
4899
  // src/components/FixedFooter/FixedFooter.tsx
4900
- import * as React2 from "react";
4900
+ import * as React4 from "react";
4901
4901
  import { Box as Box23 } from "@mui/material";
4902
4902
  import { makeStyles as makeStyles27 } from "tss-react/mui";
4903
4903
  import { jsx as jsx91, jsxs as jsxs55 } from "react/jsx-runtime";
@@ -4935,7 +4935,7 @@ var FixedFooter = ({ justifyContent, children }) => {
4935
4935
  )
4936
4936
  ] });
4937
4937
  };
4938
- var FixedFooter_default = React2.memo(FixedFooter);
4938
+ var FixedFooter_default = React4.memo(FixedFooter);
4939
4939
 
4940
4940
  // src/components/Header/Header.tsx
4941
4941
  import { Paper as Paper3 } from "@mui/material";
@@ -6592,7 +6592,7 @@ import { makeStyles as makeStyles39 } from "tss-react/mui";
6592
6592
 
6593
6593
  // src/components/SearchWithFilters/SearchWithFilters.tsx
6594
6594
  import { useState as useState13, useEffect as useEffect9 } from "react";
6595
- import * as React4 from "react";
6595
+ import * as React6 from "react";
6596
6596
  import {
6597
6597
  ArrowDropDown as ArrowDropDownIcon,
6598
6598
  ArrowDropUp as ArrowDropUpIcon,
@@ -6689,7 +6689,7 @@ var SearchWithFilters = ({
6689
6689
  )
6690
6690
  ] });
6691
6691
  };
6692
- var SearchWithFilters_default = React4.memo(SearchWithFilters);
6692
+ var SearchWithFilters_default = React6.memo(SearchWithFilters);
6693
6693
 
6694
6694
  // src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
6695
6695
  import { jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
@@ -6752,7 +6752,7 @@ var SearchAndFilterHeader = ({
6752
6752
  var SearchAndFilterHeader_default = SearchAndFilterHeader;
6753
6753
 
6754
6754
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
6755
- import * as React5 from "react";
6755
+ import * as React7 from "react";
6756
6756
  import { Box as Box32 } from "@mui/material";
6757
6757
  import { makeStyles as makeStyles41 } from "tss-react/mui";
6758
6758
 
@@ -6936,7 +6936,7 @@ var SearchAndFilterHeaderForTable = (props) => {
6936
6936
  /* @__PURE__ */ jsx111(Box32, { children: button })
6937
6937
  ] });
6938
6938
  };
6939
- var SearchAndFilterHeaderForTable_default = React5.memo(SearchAndFilterHeaderForTable);
6939
+ var SearchAndFilterHeaderForTable_default = React7.memo(SearchAndFilterHeaderForTable);
6940
6940
 
6941
6941
  // src/components/SearchHeader/SearchHeader.tsx
6942
6942
  import { memo as memo18 } from "react";
@@ -7090,7 +7090,8 @@ var SmartMultipleSelect = ({
7090
7090
  isLoading,
7091
7091
  disabled,
7092
7092
  emptyMessage = "No options.",
7093
- helperText
7093
+ helperText,
7094
+ menuProps
7094
7095
  }) => {
7095
7096
  const [localValues, setLocalValues] = useState15(defaultValues ?? []);
7096
7097
  const handleChangeOption = (option) => {
@@ -7135,7 +7136,7 @@ var SmartMultipleSelect = ({
7135
7136
  option.value ?? index
7136
7137
  );
7137
7138
  }) });
7138
- return /* @__PURE__ */ jsxs78(FormControl4, { fullWidth: true, variant, children: [
7139
+ return /* @__PURE__ */ jsxs78(FormControl4, { fullWidth: true, size, variant, disabled, children: [
7139
7140
  /* @__PURE__ */ jsx114(InputLabel4, { children: inputLabel }),
7140
7141
  /* @__PURE__ */ jsx114(
7141
7142
  Select3,
@@ -7145,6 +7146,7 @@ var SmartMultipleSelect = ({
7145
7146
  disabled,
7146
7147
  value: values ?? localValues,
7147
7148
  defaultValue: defaultValues,
7149
+ MenuProps: menuProps,
7148
7150
  onOpen,
7149
7151
  onClose: () => onClose?.(localValues),
7150
7152
  renderValue: (selectedValues) => {
@@ -7169,8 +7171,9 @@ var SmartMultipleSelect = ({
7169
7171
  };
7170
7172
 
7171
7173
  // src/components/SmartSelect/SmartSelect.tsx
7172
- import { forwardRef as forwardRef2, useState as useState16, useEffect as useEffect10 } from "react";
7174
+ import { forwardRef as forwardRef2, useMemo as useMemo3 } from "react";
7173
7175
  import {
7176
+ Box as Box36,
7174
7177
  CircularProgress as CircularProgress5,
7175
7178
  FormControl as FormControl5,
7176
7179
  FormHelperText as FormHelperText4,
@@ -7178,19 +7181,12 @@ import {
7178
7181
  MenuItem as MenuItem3,
7179
7182
  Select as Select4
7180
7183
  } from "@mui/material";
7181
- import { makeStyles as makeStyles43 } from "tss-react/mui";
7182
7184
  import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
7183
- var useStyles43 = makeStyles43()(() => ({
7184
- container: {
7185
- display: "flex",
7186
- flexDirection: "column"
7187
- }
7188
- }));
7189
7185
  var SmartSelect = forwardRef2(
7190
7186
  ({
7191
7187
  value,
7192
7188
  defaultOption,
7193
- options,
7189
+ options = [],
7194
7190
  refetch,
7195
7191
  isFetching = false,
7196
7192
  onChange,
@@ -7205,54 +7201,80 @@ var SmartSelect = forwardRef2(
7205
7201
  emptyMessage = "No options",
7206
7202
  menuProps
7207
7203
  }, ref) => {
7208
- const { classes } = useStyles43();
7209
- const [open, setOpen] = useState16(false);
7210
- const [localOptions, setLocalOptions] = useState16(options || []);
7211
- useEffect10(() => {
7212
- if (options) {
7213
- setLocalOptions(options);
7204
+ const visibleOptions = useMemo3(() => {
7205
+ const baseOptions = [
7206
+ ...allowBlankOption ? [{ value: "", label: "None" }] : [],
7207
+ ...options ?? []
7208
+ ];
7209
+ const isSelectedInOptions = baseOptions.some((o) => o.value === value);
7210
+ if (value && !isSelectedInOptions && defaultOption?.value === value) {
7211
+ return [...baseOptions, defaultOption];
7214
7212
  }
7215
- }, [options]);
7213
+ return baseOptions;
7214
+ }, [options, value, defaultOption]);
7216
7215
  const handleOpen = () => {
7217
- setOpen(true);
7218
- if (!localOptions.length) {
7216
+ if (!options?.length) {
7219
7217
  refetch?.();
7220
7218
  }
7221
7219
  };
7222
- const handleClose = () => setOpen(false);
7223
- const defaultOptionValueIsValid = defaultOption?.value !== void 0;
7224
- const defaultOptionLabelIsValid = defaultOption?.label !== void 0;
7225
- let combinedOptions = [];
7226
- if (localOptions.length > 0) {
7227
- combinedOptions = localOptions.filter(
7228
- (option) => option.value !== void 0 && option.label !== void 0
7229
- );
7230
- if (allowBlankOption) {
7231
- combinedOptions.unshift({
7232
- value: "",
7233
- label: "None"
7234
- });
7235
- }
7236
- } else if (defaultOption !== null && defaultOptionValueIsValid && defaultOptionLabelIsValid) {
7237
- combinedOptions = [defaultOption];
7238
- } else {
7239
- combinedOptions = [];
7240
- }
7241
7220
  const handleChange = (event) => {
7242
7221
  const selectedId = event.target.value;
7243
- const selectedOption = combinedOptions.find(
7244
- (option) => option?.value === selectedId
7222
+ const selectedOption = visibleOptions.find(
7223
+ (option) => option.value === selectedId
7245
7224
  );
7246
7225
  if (selectedOption) {
7247
7226
  onChange(selectedOption);
7248
7227
  }
7249
7228
  };
7229
+ const renderMenuContent = () => {
7230
+ if (isFetching) {
7231
+ return [
7232
+ /* @__PURE__ */ jsx115(
7233
+ Box36,
7234
+ {
7235
+ "data-testid": "select-loading",
7236
+ sx: {
7237
+ display: "flex",
7238
+ justifyContent: "center",
7239
+ alignItems: "center",
7240
+ p: 2
7241
+ },
7242
+ children: /* @__PURE__ */ jsx115(CircularProgress5, { size: 24 })
7243
+ },
7244
+ "select-loading"
7245
+ ),
7246
+ // Hidden default item to satisfy MUI validation
7247
+ defaultOption ? /* @__PURE__ */ jsx115(
7248
+ MenuItem3,
7249
+ {
7250
+ "data-testid": "hidden-default-item",
7251
+ value: defaultOption?.value,
7252
+ sx: { display: "none" },
7253
+ children: defaultOption?.label
7254
+ },
7255
+ "hidden-default-item"
7256
+ ) : null
7257
+ ];
7258
+ }
7259
+ if (!visibleOptions.length) {
7260
+ return /* @__PURE__ */ jsx115(MenuItem3, { disabled: true, "data-testid": `${dataTestId}-empty-message`, children: emptyMessage });
7261
+ }
7262
+ return visibleOptions.map((option) => /* @__PURE__ */ jsx115(
7263
+ MenuItem3,
7264
+ {
7265
+ value: option.value,
7266
+ "data-testid": `${dataTestId}-option-${option?.value}`,
7267
+ disabled: option.disabled,
7268
+ children: option.label
7269
+ },
7270
+ option.value
7271
+ ));
7272
+ };
7250
7273
  return /* @__PURE__ */ jsxs79(
7251
7274
  FormControl5,
7252
7275
  {
7253
7276
  fullWidth: true,
7254
7277
  size,
7255
- className: classes.container,
7256
7278
  error,
7257
7279
  variant,
7258
7280
  "data-testid": dataTestId,
@@ -7266,53 +7288,19 @@ var SmartSelect = forwardRef2(
7266
7288
  children: inputLabel
7267
7289
  }
7268
7290
  ),
7269
- /* @__PURE__ */ jsxs79(
7291
+ /* @__PURE__ */ jsx115(
7270
7292
  Select4,
7271
7293
  {
7272
7294
  ref,
7273
- size,
7274
- disabled,
7275
7295
  labelId: "smart-select-label",
7296
+ id: `${dataTestId}-select`,
7297
+ "data-testid": `${dataTestId}-select`,
7276
7298
  value: value ?? "",
7277
7299
  onChange: handleChange,
7278
7300
  onOpen: handleOpen,
7279
- error,
7280
- onClose: handleClose,
7281
- open,
7282
- "data-testid": `${dataTestId}-select`,
7283
- id: `${dataTestId}-select`,
7284
- MenuProps: menuProps,
7285
7301
  label: inputLabel,
7286
- children: [
7287
- isFetching && /* @__PURE__ */ jsx115(
7288
- MenuItem3,
7289
- {
7290
- disabled: true,
7291
- "data-testid": `${dataTestId}-loading`,
7292
- id: `${dataTestId}-loading`,
7293
- children: /* @__PURE__ */ jsx115(CircularProgress5, { size: 24 })
7294
- }
7295
- ),
7296
- (defaultOption === null || !defaultOptionLabelIsValid || !defaultOptionValueIsValid) && !isFetching && options?.length === 0 && /* @__PURE__ */ jsx115(MenuItem3, { disabled: true, "data-testid": `${dataTestId}-empty-message`, children: emptyMessage }),
7297
- localOptions.length === 0 && !isFetching && options?.length !== 0 && defaultOptionLabelIsValid && defaultOptionValueIsValid && /* @__PURE__ */ jsx115(
7298
- MenuItem3,
7299
- {
7300
- value: defaultOption?.value,
7301
- "data-testid": `${dataTestId}-default-option`,
7302
- children: defaultOption?.label
7303
- }
7304
- ),
7305
- !isFetching && combinedOptions.length > 0 && combinedOptions.map((option) => /* @__PURE__ */ jsx115(
7306
- MenuItem3,
7307
- {
7308
- value: option?.value,
7309
- "data-testid": `${dataTestId}-option-${option?.value}`,
7310
- disabled: option?.disabled,
7311
- children: option?.label
7312
- },
7313
- option?.value
7314
- ))
7315
- ]
7302
+ MenuProps: menuProps,
7303
+ children: renderMenuContent()
7316
7304
  }
7317
7305
  ),
7318
7306
  helperText && /* @__PURE__ */ jsx115(FormHelperText4, { "data-testid": `${dataTestId}-helper-text`, children: helperText })
@@ -7321,15 +7309,14 @@ var SmartSelect = forwardRef2(
7321
7309
  );
7322
7310
  }
7323
7311
  );
7324
- var SmartSelect_default = SmartSelect;
7325
7312
 
7326
7313
  // src/components/SquareLabel/SquareLabel.tsx
7327
7314
  import { memo as memo19 } from "react";
7328
7315
  import { Typography as Typography29 } from "@mui/material";
7329
7316
  import { red as red2 } from "@mui/material/colors";
7330
- import { makeStyles as makeStyles44 } from "tss-react/mui";
7317
+ import { makeStyles as makeStyles43 } from "tss-react/mui";
7331
7318
  import { jsx as jsx116 } from "react/jsx-runtime";
7332
- var useStyles44 = makeStyles44()((theme) => ({
7319
+ var useStyles43 = makeStyles43()((theme) => ({
7333
7320
  red: {
7334
7321
  backgroundColor: red2["50"],
7335
7322
  color: red2["500"],
@@ -7342,7 +7329,7 @@ var useStyles44 = makeStyles44()((theme) => ({
7342
7329
  }
7343
7330
  }));
7344
7331
  var SquareLabel = ({ color, copy }) => {
7345
- const { classes } = useStyles44();
7332
+ const { classes } = useStyles43();
7346
7333
  return /* @__PURE__ */ jsx116(Typography29, { className: classes[color], children: copy });
7347
7334
  };
7348
7335
  var SquareLabel_default = memo19(SquareLabel);
@@ -7404,7 +7391,7 @@ var LabelledSwitch = withStyles6(LSwitch, (theme) => ({
7404
7391
  var Switch_default = memo20(LabelledSwitch);
7405
7392
 
7406
7393
  // src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
7407
- import { useState as useState17, useEffect as useEffect11 } from "react";
7394
+ import { useState as useState16, useEffect as useEffect10 } from "react";
7408
7395
  import { Menu as Menu4 } from "@mui/material";
7409
7396
  import classNames3 from "classnames";
7410
7397
  import { Fragment as Fragment13, jsx as jsx118, jsxs as jsxs81 } from "react/jsx-runtime";
@@ -7425,11 +7412,11 @@ var SmartTableHeaderFilterMenu = ({
7425
7412
  shouldShowCheckOnFilter,
7426
7413
  onApplyFilters
7427
7414
  }) => {
7428
- const [anchorEl, setAnchorEl] = useState17(null);
7429
- const [filterOptionsData, setFilterOptionsData] = useState17();
7430
- const [selectedFilterOptions, setSelectedFilterOptions] = useState17(headerFilters[headCell.id] ?? []);
7415
+ const [anchorEl, setAnchorEl] = useState16(null);
7416
+ const [filterOptionsData, setFilterOptionsData] = useState16();
7417
+ const [selectedFilterOptions, setSelectedFilterOptions] = useState16(headerFilters[headCell.id] ?? []);
7431
7418
  const numFilterOptions = filterOptionsData?.length ?? 0;
7432
- useEffect11(() => {
7419
+ useEffect10(() => {
7433
7420
  if (headCell.filterOptions) {
7434
7421
  setFilterOptionsData(headCell.filterOptions);
7435
7422
  } else if (headCell.filterType === "boolean") {
@@ -7485,7 +7472,7 @@ var SmartTableHeaderFilterMenu = ({
7485
7472
  onApplyFilters?.(updatedFilters, shouldSave);
7486
7473
  setAnchorEl(null);
7487
7474
  };
7488
- useEffect11(() => {
7475
+ useEffect10(() => {
7489
7476
  setSelectedFilterOptions(headerFilters[headCell.id] ?? []);
7490
7477
  }, [headerFilters, headCell.id]);
7491
7478
  return /* @__PURE__ */ jsxs81(Fragment13, { children: [
@@ -7548,7 +7535,7 @@ var SmartTableHeaderFilterMenu = ({
7548
7535
  // src/components/SmartTableHeader/SmartTableHeader.tsx
7549
7536
  import { memo as memo21 } from "react";
7550
7537
  import {
7551
- Box as Box36,
7538
+ Box as Box37,
7552
7539
  Checkbox as Checkbox7,
7553
7540
  TableCell,
7554
7541
  TableHead,
@@ -7619,7 +7606,7 @@ var SmartTableHeader = memo21(
7619
7606
  }
7620
7607
  },
7621
7608
  children: /* @__PURE__ */ jsxs82(
7622
- Box36,
7609
+ Box37,
7623
7610
  {
7624
7611
  display: "flex",
7625
7612
  flexDirection: "row",
@@ -7676,9 +7663,9 @@ var SmartTableHeader = memo21(
7676
7663
 
7677
7664
  // src/components/Table/Table.tsx
7678
7665
  var import_debounce = __toESM(require_debounce(), 1);
7679
- import { useLayoutEffect, useState as useState18 } from "react";
7666
+ import { useLayoutEffect, useState as useState17 } from "react";
7680
7667
  import {
7681
- Box as Box38,
7668
+ Box as Box39,
7682
7669
  Paper as Paper11,
7683
7670
  Table as MUITable,
7684
7671
  TableBody,
@@ -7688,16 +7675,16 @@ import {
7688
7675
  TableRow as TableRow2,
7689
7676
  TableSortLabel as TableSortLabel2
7690
7677
  } from "@mui/material";
7691
- import { makeStyles as makeStyles45 } from "tss-react/mui";
7678
+ import { makeStyles as makeStyles44 } from "tss-react/mui";
7692
7679
  import { v4 as uuidv4 } from "uuid";
7693
7680
 
7694
7681
  // src/components/TableLoading/TableLoading.tsx
7695
- import { Box as Box37, Skeleton as Skeleton4 } from "@mui/material";
7682
+ import { Box as Box38, Skeleton as Skeleton4 } from "@mui/material";
7696
7683
  import { jsx as jsx120 } from "react/jsx-runtime";
7697
7684
  var TableLoading = ({
7698
7685
  rowsPerPage,
7699
7686
  rowHeight
7700
- }) => /* @__PURE__ */ jsx120(Box37, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx120(
7687
+ }) => /* @__PURE__ */ jsx120(Box38, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx120(
7701
7688
  Skeleton4,
7702
7689
  {
7703
7690
  animation: "pulse",
@@ -7747,7 +7734,7 @@ function calculateRowsPerPage(rowHeight) {
7747
7734
 
7748
7735
  // src/components/Table/Table.tsx
7749
7736
  import { jsx as jsx121, jsxs as jsxs83 } from "react/jsx-runtime";
7750
- var useStyles45 = makeStyles45()(() => ({
7737
+ var useStyles44 = makeStyles44()(() => ({
7751
7738
  root: {
7752
7739
  height: "calc(100vh - 262px)",
7753
7740
  overflow: "scroll"
@@ -7781,12 +7768,12 @@ var Table = ({
7781
7768
  serverRendered,
7782
7769
  updateSort
7783
7770
  }) => {
7784
- const [order, setOrder] = useState18(appliedFilters?.sortDir || "desc");
7785
- const [orderBy, setOrderBy] = useState18(
7771
+ const [order, setOrder] = useState17(appliedFilters?.sortDir || "desc");
7772
+ const [orderBy, setOrderBy] = useState17(
7786
7773
  appliedFilters?.sortField || "delivery_date"
7787
7774
  );
7788
- const [rowsPerPage, setRowsPerPage] = useState18(defaultRowsPerPage);
7789
- const { classes } = useStyles45();
7775
+ const [rowsPerPage, setRowsPerPage] = useState17(defaultRowsPerPage);
7776
+ const { classes } = useStyles44();
7790
7777
  const rowHeight = 56;
7791
7778
  const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
7792
7779
  const handleRequestSort = (event, property) => {
@@ -7835,7 +7822,7 @@ var Table = ({
7835
7822
  }
7836
7823
  return rowsComponents;
7837
7824
  };
7838
- return /* @__PURE__ */ jsx121(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx121(Box38, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx121(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx121(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs83(MUITable, { size: "medium", stickyHeader: true, children: [
7825
+ return /* @__PURE__ */ jsx121(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx121(Box39, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx121(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx121(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs83(MUITable, { size: "medium", stickyHeader: true, children: [
7839
7826
  /* @__PURE__ */ jsx121(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx121(TableRow2, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx121(
7840
7827
  TableCell2,
7841
7828
  {
@@ -7863,12 +7850,12 @@ var Table_default = Table;
7863
7850
 
7864
7851
  // src/components/TableDesktop/TableDesktop.tsx
7865
7852
  import {
7866
- useMemo as useMemo3,
7867
- useState as useState19,
7868
- useEffect as useEffect12,
7853
+ useMemo as useMemo4,
7854
+ useState as useState18,
7855
+ useEffect as useEffect11,
7869
7856
  useRef as useRef7
7870
7857
  } from "react";
7871
- import { Paper as Paper12, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as Box40 } from "@mui/material";
7858
+ import { Paper as Paper12, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as Box41 } from "@mui/material";
7872
7859
 
7873
7860
  // src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
7874
7861
  import { Skeleton as Skeleton5, TableCell as TableCell3, TableRow as TableRow3 } from "@mui/material";
@@ -8041,7 +8028,7 @@ var TableDesktopRows = ({
8041
8028
  };
8042
8029
 
8043
8030
  // src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
8044
- import { Box as Box39, Button as Button17, Typography as Typography32 } from "@mui/material";
8031
+ import { Box as Box40, Button as Button17, Typography as Typography32 } from "@mui/material";
8045
8032
  import { jsx as jsx125, jsxs as jsxs86 } from "react/jsx-runtime";
8046
8033
  var TableDesktopRowSelectionBar = ({
8047
8034
  isEveryRowInPageSelected,
@@ -8062,7 +8049,7 @@ var TableDesktopRowSelectionBar = ({
8062
8049
  return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
8063
8050
  };
8064
8051
  return isAnyRowSelected ? /* @__PURE__ */ jsxs86(
8065
- Box39,
8052
+ Box40,
8066
8053
  {
8067
8054
  sx: {
8068
8055
  p: 1,
@@ -8088,9 +8075,9 @@ var TableDesktopRowSelectionBar = ({
8088
8075
 
8089
8076
  // src/components/TableEmptyResult/TableEmptyResult.tsx
8090
8077
  import { TableCell as TableCell5, TableRow as TableRow5, Typography as Typography33 } from "@mui/material";
8091
- import { makeStyles as makeStyles46 } from "tss-react/mui";
8078
+ import { makeStyles as makeStyles45 } from "tss-react/mui";
8092
8079
  import { jsx as jsx126, jsxs as jsxs87 } from "react/jsx-runtime";
8093
- var useStyles46 = makeStyles46()(() => ({
8080
+ var useStyles45 = makeStyles45()(() => ({
8094
8081
  tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
8095
8082
  tableCellDefault: { padding: 24 }
8096
8083
  }));
@@ -8100,7 +8087,7 @@ var TableEmptyResult = ({
8100
8087
  handleClickOnClearFiltersButton = () => {
8101
8088
  }
8102
8089
  }) => {
8103
- const { classes } = useStyles46();
8090
+ const { classes } = useStyles45();
8104
8091
  return showClearFilterButton ? /* @__PURE__ */ jsx126(TableRow5, { children: /* @__PURE__ */ jsxs87(
8105
8092
  TableCell5,
8106
8093
  {
@@ -8163,23 +8150,23 @@ var TableDesktop = ({
8163
8150
  refetchData
8164
8151
  }) => {
8165
8152
  const tableToolbarMenuButtonRef = useRef7(null);
8166
- const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = useState19(null);
8167
- const [order, setOrder] = useState19(appliedFilters?.sortDir || "desc");
8168
- const [orderBy, setOrderBy] = useState19(
8153
+ const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = useState18(null);
8154
+ const [order, setOrder] = useState18(appliedFilters?.sortDir || "desc");
8155
+ const [orderBy, setOrderBy] = useState18(
8169
8156
  appliedFilters?.sortField || "delivery_date"
8170
8157
  );
8171
- const [selectedRows, setSelectedRows] = useState19(
8158
+ const [selectedRows, setSelectedRows] = useState18(
8172
8159
  /* @__PURE__ */ new Set()
8173
8160
  );
8174
- const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = useState19(false);
8175
- const [isBulkChangesMode, setIsBulkChangesMode] = useState19(false);
8161
+ const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = useState18(false);
8162
+ const [isBulkChangesMode, setIsBulkChangesMode] = useState18(false);
8176
8163
  const numRows = data.length;
8177
- const numSelectedRows = useMemo3(() => {
8164
+ const numSelectedRows = useMemo4(() => {
8178
8165
  const currentPageIds = new Set(data.map((row) => row[keyField]));
8179
8166
  return [...selectedRows].filter((id) => currentPageIds.has(id)).length;
8180
8167
  }, [data, selectedRows, keyField]);
8181
8168
  const isEveryRowInPageSelected = numRows > 0 && numSelectedRows === numRows;
8182
- const visibleHeadCells = useMemo3(
8169
+ const visibleHeadCells = useMemo4(
8183
8170
  () => headCells.filter((headCell) => headCell?.enabled ?? true),
8184
8171
  [headCells]
8185
8172
  );
@@ -8242,7 +8229,7 @@ var TableDesktop = ({
8242
8229
  resetSelectedRows();
8243
8230
  }
8244
8231
  };
8245
- useEffect12(() => {
8232
+ useEffect11(() => {
8246
8233
  if (isRowsFromAllPagesSelected) {
8247
8234
  selectAllRowsInPage();
8248
8235
  selectAllRowsInPage();
@@ -8289,7 +8276,7 @@ var TableDesktop = ({
8289
8276
  );
8290
8277
  };
8291
8278
  return /* @__PURE__ */ jsx127(
8292
- Box40,
8279
+ Box41,
8293
8280
  {
8294
8281
  sx: {
8295
8282
  height,
@@ -8394,14 +8381,14 @@ var TableDesktop = ({
8394
8381
  };
8395
8382
 
8396
8383
  // src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
8397
- import { useEffect as useEffect13, useState as useState22 } from "react";
8384
+ import { useEffect as useEffect12, useState as useState21 } from "react";
8398
8385
  import DeleteIcon from "@mui/icons-material/Delete";
8399
8386
  import { Checkbox as Checkbox8, FormControlLabel as FormControlLabel5 } from "@mui/material";
8400
8387
  import { DatePicker, TimePicker } from "@mui/x-date-pickers";
8401
8388
  import moment2 from "moment";
8402
8389
 
8403
8390
  // src/components/TableDesktopEditableField/TableDesktopSmartMultipleSelect.tsx
8404
- import { useMemo as useMemo4 } from "react";
8391
+ import { useMemo as useMemo5 } from "react";
8405
8392
  import { jsx as jsx128 } from "react/jsx-runtime";
8406
8393
  var TableDesktopSmartMultipleSelect = ({
8407
8394
  initialValue,
@@ -8417,7 +8404,7 @@ var TableDesktopSmartMultipleSelect = ({
8417
8404
  isFetchingFilterOptions,
8418
8405
  onUpdateEditableCell
8419
8406
  }) => {
8420
- const defaultValues = useMemo4(() => {
8407
+ const defaultValues = useMemo5(() => {
8421
8408
  return initialValue.map((val) => ({
8422
8409
  value: val.id,
8423
8410
  label: val[fieldName].toString()
@@ -8432,6 +8419,7 @@ var TableDesktopSmartMultipleSelect = ({
8432
8419
  disabled,
8433
8420
  defaultValues,
8434
8421
  menuOptions: filterOptions,
8422
+ menuProps: { disableRestoreFocus: true },
8435
8423
  isLoading: isFetchingFilterOptions,
8436
8424
  onOpen: () => {
8437
8425
  if (!filterOptions?.length) {
@@ -8452,7 +8440,7 @@ var TableDesktopSmartMultipleSelect = ({
8452
8440
  };
8453
8441
 
8454
8442
  // src/components/TableDesktopEditableField/TableDesktopSmartSelect.tsx
8455
- import { useState as useState20 } from "react";
8443
+ import { useState as useState19 } from "react";
8456
8444
  import { jsx as jsx129 } from "react/jsx-runtime";
8457
8445
  var TableDesktopSmartSelect = ({
8458
8446
  ref,
@@ -8470,13 +8458,13 @@ var TableDesktopSmartSelect = ({
8470
8458
  isFetchingFilterOptions,
8471
8459
  onUpdateEditableCell
8472
8460
  }) => {
8473
- const [value, setValue] = useState20(
8461
+ const [value, setValue] = useState19(
8474
8462
  initialValue
8475
8463
  );
8476
8464
  const valueId = resolveObjectType(value ?? "", "id");
8477
8465
  const valueLabel = resolveObjectType(value ?? "", fieldName);
8478
8466
  return /* @__PURE__ */ jsx129(
8479
- SmartSelect_default,
8467
+ SmartSelect,
8480
8468
  {
8481
8469
  ref,
8482
8470
  value: valueId,
@@ -8486,6 +8474,7 @@ var TableDesktopSmartSelect = ({
8486
8474
  disabled,
8487
8475
  variant,
8488
8476
  size,
8477
+ menuProps: { disableRestoreFocus: true },
8489
8478
  refetch: refetchFilterOptions,
8490
8479
  isFetching: isFetchingFilterOptions,
8491
8480
  defaultOption: {
@@ -8506,7 +8495,7 @@ var TableDesktopSmartSelect = ({
8506
8495
  };
8507
8496
 
8508
8497
  // src/components/TableDesktopEditableField/TableDesktopTextField.tsx
8509
- import { useMemo as useMemo5, useState as useState21, useRef as useRef8 } from "react";
8498
+ import { useMemo as useMemo6, useState as useState20, useRef as useRef8 } from "react";
8510
8499
  import { TextField as TextField8 } from "@mui/material";
8511
8500
  import { jsx as jsx130 } from "react/jsx-runtime";
8512
8501
  var TableDesktopTextField = ({
@@ -8521,13 +8510,13 @@ var TableDesktopTextField = ({
8521
8510
  validateInput,
8522
8511
  onUpdateEditableCell
8523
8512
  }) => {
8524
- const [input, setInput] = useState21(initialValue);
8513
+ const [input, setInput] = useState20(initialValue);
8525
8514
  const oldValue = useRef8(initialValue);
8526
- const isDirty = useMemo5(
8515
+ const isDirty = useMemo6(
8527
8516
  () => input !== oldValue.current,
8528
8517
  [input, oldValue.current]
8529
8518
  );
8530
- const hasValidationError = useMemo5(
8519
+ const hasValidationError = useMemo6(
8531
8520
  () => isDirty && validateInput && !validateInput(input),
8532
8521
  [input, validateInput]
8533
8522
  );
@@ -8599,8 +8588,8 @@ var TableDesktopEditableField = ({
8599
8588
  allowBlankSelectOption
8600
8589
  }
8601
8590
  }) => {
8602
- const [parsedFilterOptions, setParsedFilterOptions] = useState22();
8603
- useEffect13(() => {
8591
+ const [parsedFilterOptions, setParsedFilterOptions] = useState21();
8592
+ useEffect12(() => {
8604
8593
  if (filterOptions && editableCellType === "select" || editableCellType === "multipleSelect") {
8605
8594
  const parsedOptions = filterOptions?.map(
8606
8595
  (option) => ({
@@ -8765,7 +8754,7 @@ var TableDesktopEditableField = ({
8765
8754
  // src/components/TableDesktopFooter/TableDesktopFooter.tsx
8766
8755
  import Refresh3 from "@mui/icons-material/Refresh";
8767
8756
  import {
8768
- Box as Box41,
8757
+ Box as Box42,
8769
8758
  Button as Button18,
8770
8759
  MenuItem as MenuItem4,
8771
8760
  Pagination as Pagination2,
@@ -8785,7 +8774,7 @@ var TableDesktopFooter = ({
8785
8774
  isFetching
8786
8775
  }) => {
8787
8776
  return /* @__PURE__ */ jsxs89(
8788
- Box41,
8777
+ Box42,
8789
8778
  {
8790
8779
  sx: {
8791
8780
  py: 1,
@@ -8803,6 +8792,7 @@ var TableDesktopFooter = ({
8803
8792
  variant: "text",
8804
8793
  onClick: () => refetchData(),
8805
8794
  disabled: isFetching,
8795
+ "aria-label": "refresh-button",
8806
8796
  sx: {
8807
8797
  ml: 1,
8808
8798
  gap: 1
@@ -8811,14 +8801,14 @@ var TableDesktopFooter = ({
8811
8801
  Refresh3,
8812
8802
  {
8813
8803
  fontSize: "small",
8814
- color: isFetching ? "disabled" : "info"
8804
+ color: isFetching ? "disabled" : "action"
8815
8805
  }
8816
8806
  )
8817
8807
  }
8818
8808
  ) : null,
8819
- /* @__PURE__ */ jsxs89(Box41, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
8809
+ /* @__PURE__ */ jsxs89(Box42, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
8820
8810
  pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ jsxs89(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
8821
- /* @__PURE__ */ jsx132(Typography34, { children: "Rows per page:" }),
8811
+ /* @__PURE__ */ jsx132(Typography34, { fontSize: 12, children: "Rows per page:" }),
8822
8812
  /* @__PURE__ */ jsx132(
8823
8813
  Select5,
8824
8814
  {
@@ -8846,7 +8836,7 @@ var TableDesktopFooter = ({
8846
8836
  };
8847
8837
 
8848
8838
  // src/components/TableDesktopCell/TableDesktopCell.tsx
8849
- import { useEffect as useEffect14, useState as useState23 } from "react";
8839
+ import { useEffect as useEffect13, useState as useState22 } from "react";
8850
8840
  import CheckIcon3 from "@mui/icons-material/Check";
8851
8841
  import CloseIcon from "@mui/icons-material/Close";
8852
8842
  import EditIcon from "@mui/icons-material/Edit";
@@ -8876,10 +8866,10 @@ var TableDesktopCell = ({
8876
8866
  onCellClick,
8877
8867
  headCell
8878
8868
  }) => {
8879
- const [isCellHovered, setIsCellHovered] = useState23(false);
8880
- const [isCellInEditMode, setIsCellInEditMode] = useState23(false);
8869
+ const [isCellHovered, setIsCellHovered] = useState22(false);
8870
+ const [isCellInEditMode, setIsCellInEditMode] = useState22(false);
8881
8871
  const { width, editableCellType } = headCell;
8882
- useEffect14(() => {
8872
+ useEffect13(() => {
8883
8873
  const handleKeyDown = (e) => {
8884
8874
  if (e.key === "Escape") {
8885
8875
  setIsCellInEditMode(false);
@@ -8948,15 +8938,15 @@ var TableDesktopCell = ({
8948
8938
 
8949
8939
  // src/components/TableDesktopToolbar/TableDesktopToolbar.tsx
8950
8940
  import {
8951
- useState as useState24,
8952
- useMemo as useMemo6,
8941
+ useState as useState23,
8942
+ useMemo as useMemo7,
8953
8943
  useRef as useRef9
8954
8944
  } from "react";
8955
8945
  import Download from "@mui/icons-material/Download";
8956
8946
  import KeyboardArrowLeft2 from "@mui/icons-material/KeyboardArrowLeft";
8957
8947
  import KeyboardArrowRight2 from "@mui/icons-material/KeyboardArrowRight";
8958
8948
  import {
8959
- Box as Box42,
8949
+ Box as Box43,
8960
8950
  Button as Button19,
8961
8951
  Divider as Divider11,
8962
8952
  FormControlLabel as FormControlLabel6,
@@ -8988,11 +8978,11 @@ var TableDesktopToolbar = ({
8988
8978
  renderInfoIcons
8989
8979
  }) => {
8990
8980
  const scrollRef = useRef9(null);
8991
- const [bulkChanges, setBulkChanges] = useState24([]);
8992
- const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = useState24(false);
8993
- const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = useState24(false);
8994
- const [resetCounter, setResetCounter] = useState24(0);
8995
- const visibleEditableColumns = useMemo6(
8981
+ const [bulkChanges, setBulkChanges] = useState23([]);
8982
+ const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = useState23(false);
8983
+ const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = useState23(false);
8984
+ const [resetCounter, setResetCounter] = useState23(0);
8985
+ const visibleEditableColumns = useMemo7(
8996
8986
  () => headCells.filter(
8997
8987
  (headCell) => headCell?.enabled && !!headCell?.editableCellType
8998
8988
  ),
@@ -9019,7 +9009,7 @@ var TableDesktopToolbar = ({
9019
9009
  });
9020
9010
  };
9021
9011
  return /* @__PURE__ */ jsxs91(
9022
- Box42,
9012
+ Box43,
9023
9013
  {
9024
9014
  sx: {
9025
9015
  borderBottom: "1px solid",
@@ -9028,7 +9018,7 @@ var TableDesktopToolbar = ({
9028
9018
  },
9029
9019
  children: [
9030
9020
  /* @__PURE__ */ jsxs91(
9031
- Box42,
9021
+ Box43,
9032
9022
  {
9033
9023
  sx: {
9034
9024
  py: 1,
@@ -9040,7 +9030,7 @@ var TableDesktopToolbar = ({
9040
9030
  },
9041
9031
  children: [
9042
9032
  /* @__PURE__ */ jsxs91(
9043
- Box42,
9033
+ Box43,
9044
9034
  {
9045
9035
  sx: {
9046
9036
  py: 1,
@@ -9088,7 +9078,7 @@ var TableDesktopToolbar = ({
9088
9078
  }
9089
9079
  ),
9090
9080
  /* @__PURE__ */ jsx134(
9091
- Box42,
9081
+ Box43,
9092
9082
  {
9093
9083
  ref: scrollRef,
9094
9084
  sx: {
@@ -9107,7 +9097,7 @@ var TableDesktopToolbar = ({
9107
9097
  children: isBulkChangesMode ? visibleEditableColumns.map((headCell) => {
9108
9098
  const { id, width, editableCellType } = headCell;
9109
9099
  return editableCellType && /* @__PURE__ */ jsx134(
9110
- Box42,
9100
+ Box43,
9111
9101
  {
9112
9102
  sx: { width, flex: "0 0 auto" },
9113
9103
  children: /* @__PURE__ */ jsx134(
@@ -9160,7 +9150,7 @@ var TableDesktopToolbar = ({
9160
9150
  children: "APPLY"
9161
9151
  }
9162
9152
  )
9163
- ] }) : /* @__PURE__ */ jsxs91(Box42, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
9153
+ ] }) : /* @__PURE__ */ jsxs91(Box43, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
9164
9154
  renderInfoIcons,
9165
9155
  renderExportCsvDialog ? /* @__PURE__ */ jsx134(Tooltip11, { title: "Download Customer List", children: /* @__PURE__ */ jsx134("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx134(
9166
9156
  IconButton6,
@@ -9212,12 +9202,12 @@ var TableDesktopToolbar = ({
9212
9202
  };
9213
9203
 
9214
9204
  // src/components/TableHeader/TableHeader.tsx
9215
- import { memo as memo22, useEffect as useEffect15, useState as useState25 } from "react";
9205
+ import { memo as memo22, useEffect as useEffect14, useState as useState24 } from "react";
9216
9206
  import { ImportExport as ImportExportIcon } from "@mui/icons-material";
9217
9207
  import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
9218
- import { makeStyles as makeStyles47 } from "tss-react/mui";
9208
+ import { makeStyles as makeStyles46 } from "tss-react/mui";
9219
9209
  import { jsx as jsx135 } from "react/jsx-runtime";
9220
- var useStyles47 = makeStyles47()(() => ({
9210
+ var useStyles46 = makeStyles46()(() => ({
9221
9211
  sortLabel: {
9222
9212
  "& .MuiTableSortLabel-icon": {
9223
9213
  opacity: 1
@@ -9225,9 +9215,9 @@ var useStyles47 = makeStyles47()(() => ({
9225
9215
  }
9226
9216
  }));
9227
9217
  var TableHeader = ({ cells, onSort = null }) => {
9228
- const [sortableCells, setSortableCells] = useState25([]);
9229
- const { classes } = useStyles47();
9230
- useEffect15(() => {
9218
+ const [sortableCells, setSortableCells] = useState24([]);
9219
+ const { classes } = useStyles46();
9220
+ useEffect14(() => {
9231
9221
  setSortableCells(cells);
9232
9222
  }, []);
9233
9223
  const getNewSortDirection = (direction) => {
@@ -9275,10 +9265,10 @@ var TableHeader = ({ cells, onSort = null }) => {
9275
9265
  var TableHeader_default = memo22(TableHeader);
9276
9266
 
9277
9267
  // src/components/TextDivider/TextDivider.tsx
9278
- import { Box as Box43, Typography as Typography36, Divider as Divider12, Button as Button20 } from "@mui/material";
9279
- import { makeStyles as makeStyles48 } from "tss-react/mui";
9268
+ import { Box as Box44, Typography as Typography36, Divider as Divider12, Button as Button20 } from "@mui/material";
9269
+ import { makeStyles as makeStyles47 } from "tss-react/mui";
9280
9270
  import { jsx as jsx136, jsxs as jsxs92 } from "react/jsx-runtime";
9281
- var useStyles48 = makeStyles48()(() => ({
9271
+ var useStyles47 = makeStyles47()(() => ({
9282
9272
  icon: {
9283
9273
  fontSize: 20
9284
9274
  },
@@ -9312,10 +9302,10 @@ var TextDivider = ({
9312
9302
  iconPosition = "left",
9313
9303
  titleWeight = "400"
9314
9304
  }) => {
9315
- const { classes } = useStyles48();
9305
+ const { classes } = useStyles47();
9316
9306
  const iconColor = color ?? colors.neutral900;
9317
9307
  return /* @__PURE__ */ jsxs92(
9318
- Box43,
9308
+ Box44,
9319
9309
  {
9320
9310
  display: "flex",
9321
9311
  alignItems: "center",
@@ -9323,7 +9313,7 @@ var TextDivider = ({
9323
9313
  className: classes.container,
9324
9314
  children: [
9325
9315
  /* @__PURE__ */ jsx136(Divider12, { className: classes.leftDivider }),
9326
- /* @__PURE__ */ jsx136(Button20, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs92(Box43, { className: classes.center, children: [
9316
+ /* @__PURE__ */ jsx136(Button20, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs92(Box44, { className: classes.center, children: [
9327
9317
  Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx136(Icon2, { className: classes.icon, style: { color: iconColor } }),
9328
9318
  /* @__PURE__ */ jsx136(
9329
9319
  Typography36,
@@ -9345,11 +9335,11 @@ var TextDivider_default = TextDivider;
9345
9335
 
9346
9336
  // src/components/ThemedDateRangePicker/ThemedDateRangePicker.tsx
9347
9337
  import { DateRangePicker } from "react-dates";
9348
- import { makeStyles as makeStyles49 } from "tss-react/mui";
9338
+ import { makeStyles as makeStyles48 } from "tss-react/mui";
9349
9339
  import "react-dates/initialize";
9350
9340
  import "react-dates/lib/css/_datepicker.css";
9351
9341
  import { jsx as jsx137 } from "react/jsx-runtime";
9352
- var useStyles49 = makeStyles49()((theme) => ({
9342
+ var useStyles48 = makeStyles48()((theme) => ({
9353
9343
  wrapper: {
9354
9344
  "& .DateRangePicker": {
9355
9345
  backgroundColor: theme.palette.mode === "dark" ? theme.palette.grey[900] : colors.neutral100,
@@ -9443,17 +9433,17 @@ var ThemedDateRangePicker = ({
9443
9433
  className,
9444
9434
  ...props
9445
9435
  }) => {
9446
- const { classes, cx } = useStyles49();
9436
+ const { classes, cx } = useStyles48();
9447
9437
  return /* @__PURE__ */ jsx137("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx137(DateRangePicker, { ...props }) });
9448
9438
  };
9449
9439
  var ThemedDateRangePicker_default = ThemedDateRangePicker;
9450
9440
 
9451
9441
  // src/components/TheToolbar/TheToolbar.tsx
9452
9442
  import { memo as memo23 } from "react";
9453
- import { AppBar, Box as Box44, Toolbar } from "@mui/material";
9454
- import { makeStyles as makeStyles50 } from "tss-react/mui";
9443
+ import { AppBar, Box as Box45, Toolbar } from "@mui/material";
9444
+ import { makeStyles as makeStyles49 } from "tss-react/mui";
9455
9445
  import { jsx as jsx138, jsxs as jsxs93 } from "react/jsx-runtime";
9456
- var useStyles50 = makeStyles50()((theme) => ({
9446
+ var useStyles49 = makeStyles49()((theme) => ({
9457
9447
  menuButton: {
9458
9448
  color: theme.palette.primary.contrastText
9459
9449
  },
@@ -9471,8 +9461,8 @@ var TheToolbar = ({
9471
9461
  leftSection,
9472
9462
  rightSection
9473
9463
  }) => {
9474
- const { classes } = useStyles50();
9475
- return /* @__PURE__ */ jsxs93(Box44, { children: [
9464
+ const { classes } = useStyles49();
9465
+ return /* @__PURE__ */ jsxs93(Box45, { children: [
9476
9466
  /* @__PURE__ */ jsx138(AppBar, { children: /* @__PURE__ */ jsxs93(Toolbar, { className: classes.topBar, children: [
9477
9467
  /* @__PURE__ */ jsx138(
9478
9468
  RoundButton_default,
@@ -9492,8 +9482,8 @@ var TheToolbar = ({
9492
9482
  imageLogoLightSmall
9493
9483
  }
9494
9484
  ),
9495
- /* @__PURE__ */ jsx138(Box44, { ml: 2, children: leftSection }),
9496
- /* @__PURE__ */ jsx138(Box44, { ml: "auto", children: rightSection })
9485
+ /* @__PURE__ */ jsx138(Box45, { ml: 2, children: leftSection }),
9486
+ /* @__PURE__ */ jsx138(Box45, { ml: "auto", children: rightSection })
9497
9487
  ] }) }),
9498
9488
  LeftDrawer
9499
9489
  ] });
@@ -9546,14 +9536,14 @@ import {
9546
9536
  Typography as Typography37,
9547
9537
  Dialog as Dialog5,
9548
9538
  Backdrop,
9549
- Box as Box45,
9539
+ Box as Box46,
9550
9540
  Divider as Divider13,
9551
9541
  Paper as Paper13,
9552
9542
  Fade as Fade2
9553
9543
  } from "@mui/material";
9554
- import { makeStyles as makeStyles51 } from "tss-react/mui";
9544
+ import { makeStyles as makeStyles50 } from "tss-react/mui";
9555
9545
  import { jsx as jsx140, jsxs as jsxs94 } from "react/jsx-runtime";
9556
- var useStyles51 = makeStyles51()((theme) => ({
9546
+ var useStyles50 = makeStyles50()((theme) => ({
9557
9547
  paper: {
9558
9548
  padding: theme.spacing(2)
9559
9549
  },
@@ -9581,7 +9571,7 @@ var TwoButtonDialog = ({
9581
9571
  cancelLabel = "CANCEL",
9582
9572
  cancelButton
9583
9573
  }) => {
9584
- const { classes } = useStyles51();
9574
+ const { classes } = useStyles50();
9585
9575
  return /* @__PURE__ */ jsx140(
9586
9576
  Dialog5,
9587
9577
  {
@@ -9593,9 +9583,9 @@ var TwoButtonDialog = ({
9593
9583
  BackdropComponent: Backdrop,
9594
9584
  BackdropProps: { timeout: 500 },
9595
9585
  children: /* @__PURE__ */ jsx140(Fade2, { in: open, children: /* @__PURE__ */ jsxs94(Paper13, { className: classes.paper, children: [
9596
- /* @__PURE__ */ jsxs94(Box45, { className: classes.mb, children: [
9586
+ /* @__PURE__ */ jsxs94(Box46, { className: classes.mb, children: [
9597
9587
  /* @__PURE__ */ jsx140(Typography37, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx140(
9598
- Box45,
9588
+ Box46,
9599
9589
  {
9600
9590
  sx: {
9601
9591
  fontWeight: 600
@@ -9604,7 +9594,7 @@ var TwoButtonDialog = ({
9604
9594
  }
9605
9595
  ) }),
9606
9596
  /* @__PURE__ */ jsxs94(
9607
- Box45,
9597
+ Box46,
9608
9598
  {
9609
9599
  className: classes.mt,
9610
9600
  sx: {
@@ -9618,7 +9608,7 @@ var TwoButtonDialog = ({
9618
9608
  )
9619
9609
  ] }),
9620
9610
  /* @__PURE__ */ jsx140(Divider13, {}),
9621
- /* @__PURE__ */ jsxs94(Box45, { className: classes.buttonContainer, children: [
9611
+ /* @__PURE__ */ jsxs94(Box46, { className: classes.buttonContainer, children: [
9622
9612
  /* @__PURE__ */ jsx140(
9623
9613
  FilledButton_default,
9624
9614
  {
@@ -9760,7 +9750,7 @@ export {
9760
9750
  SearchWithFiltersForTable_default as SearchWithFiltersForTable,
9761
9751
  SectionName_default as SectionName,
9762
9752
  SmartMultipleSelect,
9763
- SmartSelect_default as SmartSelect,
9753
+ SmartSelect,
9764
9754
  SmartTableHeader,
9765
9755
  SmartTableHeaderFilterMenu,
9766
9756
  SquareButton_default as SquareButton,