@natoora-libs/core 0.0.33 → 0.0.34

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.
@@ -39,7 +39,6 @@ __export(components_exports, {
39
39
  Date: () => Date_default,
40
40
  DeleteSubstitutionDialogContent: () => DeleteSubstitutionDialogContent_default,
41
41
  DeleteUserDialogContent: () => DeleteUserDialogContent_default,
42
- DesktopContainer: () => DesktopContainer_default,
43
42
  ExtendedButton: () => ExtendedButton_default,
44
43
  FilledButton: () => FilledButton_default,
45
44
  FilledButtonLg: () => FilledButtonLg_default,
@@ -400,7 +399,7 @@ var BackHeader_default = BackHeader;
400
399
 
401
400
  // src/components/BottomBar/BottomBar.tsx
402
401
  var import_material6 = require("@mui/material");
403
- var import_prop_types3 = require("prop-types");
402
+ var import_prop_types2 = require("prop-types");
404
403
  var import_mui5 = require("tss-react/mui");
405
404
 
406
405
  // src/components/Buttons/ExtendedButton/ExtendedButton.tsx
@@ -410,7 +409,6 @@ var import_Apps = __toESM(require("@mui/icons-material/Apps"), 1);
410
409
  var import_material5 = require("@mui/material");
411
410
  var import_Button = __toESM(require("@mui/material/Button"), 1);
412
411
  var import_Tooltip = __toESM(require("@mui/material/Tooltip"), 1);
413
- var import_prop_types2 = require("prop-types");
414
412
  var import_mui4 = require("tss-react/mui");
415
413
  var import_jsx_runtime5 = require("react/jsx-runtime");
416
414
  var useStyles4 = (0, import_mui4.makeStyles)()((theme) => ({
@@ -474,18 +472,18 @@ var useStyles4 = (0, import_mui4.makeStyles)()((theme) => ({
474
472
  }
475
473
  }));
476
474
  var ExtendedButton = ({
477
- buttonType,
475
+ buttonType = "button",
478
476
  className,
479
- color,
477
+ color = "default",
480
478
  copy,
481
- disabled,
482
- href,
483
- onClick,
484
- subcopy,
485
- type,
486
- variant,
487
- component,
488
- tooltip
479
+ disabled = false,
480
+ href = "",
481
+ onClick = void 0,
482
+ subcopy = void 0,
483
+ type = void 0,
484
+ variant = "outlined",
485
+ component = "button",
486
+ tooltip = ""
489
487
  }) => {
490
488
  const { classes, cx } = useStyles4();
491
489
  const icons2 = {
@@ -503,12 +501,13 @@ var ExtendedButton = ({
503
501
  download: import_icons_material.GetApp,
504
502
  publish: import_icons_material.Publish
505
503
  };
506
- const IconComponent = icons2[type];
504
+ const muiColor = color === "noOutline" || color === "default" ? void 0 : color;
505
+ const IconComponent = type ? icons2[type] : null;
507
506
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_Tooltip.default, { title: tooltip, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
508
507
  import_Button.default,
509
508
  {
510
509
  className: cx(classes[color], className),
511
- color: color === "noOutline" ? "default" : color,
510
+ color: muiColor,
512
511
  component,
513
512
  "data-testid": copy ? `extended-button-${copy.toLowerCase()}` : "extended-button",
514
513
  disabled,
@@ -517,7 +516,7 @@ var ExtendedButton = ({
517
516
  type: buttonType,
518
517
  variant,
519
518
  children: [
520
- type ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IconComponent, { fontSize: "small", className: classes.icon }) : null,
519
+ IconComponent && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IconComponent, { fontSize: "small", className: classes.icon }),
521
520
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: classes.copy, children: [
522
521
  copy,
523
522
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: subcopy })
@@ -526,47 +525,6 @@ var ExtendedButton = ({
526
525
  }
527
526
  ) }) });
528
527
  };
529
- ExtendedButton.defaultProps = {
530
- buttonType: "button",
531
- color: "default",
532
- disabled: false,
533
- href: "",
534
- tooltip: "",
535
- component: "button",
536
- type: void 0,
537
- className: void 0,
538
- onClick: void 0,
539
- subcopy: void 0,
540
- variant: "outlined"
541
- };
542
- ExtendedButton.propTypes = {
543
- buttonType: (0, import_prop_types2.oneOf)(["button", "submit"]),
544
- className: import_prop_types2.string,
545
- color: (0, import_prop_types2.oneOf)(["default", "inherit", "primary", "secondary", "noOutline"]),
546
- copy: import_prop_types2.string.isRequired,
547
- disabled: import_prop_types2.bool,
548
- href: import_prop_types2.string,
549
- onClick: import_prop_types2.func,
550
- subcopy: import_prop_types2.string,
551
- tooltip: import_prop_types2.string,
552
- component: import_prop_types2.string,
553
- type: (0, import_prop_types2.oneOf)([
554
- "add",
555
- "apps",
556
- "childCare",
557
- "delete",
558
- "edit",
559
- "importExport",
560
- "notes",
561
- "print",
562
- "save",
563
- "upload",
564
- "refresh",
565
- "download",
566
- "publish"
567
- ]),
568
- variant: (0, import_prop_types2.oneOf)(["contained", "outlined", "text"])
569
- };
570
528
  var ExtendedButton_default = (0, import_react2.memo)(ExtendedButton);
571
529
 
572
530
  // src/components/BottomBar/BottomBar.tsx
@@ -620,10 +578,10 @@ BottomBar.defaultProps = {
620
578
  onRefreshClick: null
621
579
  };
622
580
  BottomBar.propTypes = {
623
- className: import_prop_types3.string,
624
- children: import_prop_types3.node,
625
- isLoading: import_prop_types3.bool,
626
- onRefreshClick: import_prop_types3.func
581
+ className: import_prop_types2.string,
582
+ children: import_prop_types2.node,
583
+ isLoading: import_prop_types2.bool,
584
+ onRefreshClick: import_prop_types2.func
627
585
  };
628
586
  var BottomBar_default = BottomBar;
629
587
 
@@ -633,7 +591,7 @@ var import_material7 = require("@mui/material");
633
591
  var import_green = __toESM(require("@mui/material/colors/green"), 1);
634
592
  var import_orange = __toESM(require("@mui/material/colors/orange"), 1);
635
593
  var import_red = __toESM(require("@mui/material/colors/red"), 1);
636
- var import_prop_types4 = __toESM(require("prop-types"), 1);
594
+ var import_prop_types3 = __toESM(require("prop-types"), 1);
637
595
  var import_mui6 = require("tss-react/mui");
638
596
  var import_jsx_runtime7 = require("react/jsx-runtime");
639
597
  var useStyles6 = (0, import_mui6.makeStyles)()((theme) => ({
@@ -710,11 +668,11 @@ var BoxButton = (props) => {
710
668
  );
711
669
  };
712
670
  BoxButton.propTypes = {
713
- label: import_prop_types4.default.any,
714
- onClick: import_prop_types4.default.any,
715
- main: import_prop_types4.default.any,
716
- extra: import_prop_types4.default.any,
717
- borderColor: import_prop_types4.default.any
671
+ label: import_prop_types3.default.any,
672
+ onClick: import_prop_types3.default.any,
673
+ main: import_prop_types3.default.any,
674
+ extra: import_prop_types3.default.any,
675
+ borderColor: import_prop_types3.default.any
718
676
  };
719
677
  var BoxButton_default = import_react3.default.memo(BoxButton);
720
678
 
@@ -722,7 +680,7 @@ var BoxButton_default = import_react3.default.memo(BoxButton);
722
680
  var import_react4 = require("react");
723
681
  var import_material8 = require("@mui/material");
724
682
  var import_Button2 = __toESM(require("@mui/material/Button"), 1);
725
- var import_prop_types5 = require("prop-types");
683
+ var import_prop_types4 = require("prop-types");
726
684
  var import_mui7 = require("tss-react/mui");
727
685
  var import_jsx_runtime8 = require("react/jsx-runtime");
728
686
  var useStyles7 = (0, import_mui7.makeStyles)()((theme) => ({
@@ -821,9 +779,9 @@ var FilledButton = ({
821
779
  );
822
780
  };
823
781
  FilledButton.propTypes = {
824
- autoFocus: import_prop_types5.bool,
825
- className: import_prop_types5.string,
826
- color: (0, import_prop_types5.oneOf)([
782
+ autoFocus: import_prop_types4.bool,
783
+ className: import_prop_types4.string,
784
+ color: (0, import_prop_types4.oneOf)([
827
785
  "default",
828
786
  "error",
829
787
  "info",
@@ -833,13 +791,13 @@ FilledButton.propTypes = {
833
791
  "success",
834
792
  "warning"
835
793
  ]),
836
- copy: import_prop_types5.string.isRequired,
837
- isLoading: import_prop_types5.bool,
838
- disabled: import_prop_types5.bool,
839
- href: import_prop_types5.string,
840
- onClick: import_prop_types5.func,
841
- type: (0, import_prop_types5.oneOf)(["button", "submit"]),
842
- variant: (0, import_prop_types5.oneOf)(["contained", "outlined", "text"])
794
+ copy: import_prop_types4.string.isRequired,
795
+ isLoading: import_prop_types4.bool,
796
+ disabled: import_prop_types4.bool,
797
+ href: import_prop_types4.string,
798
+ onClick: import_prop_types4.func,
799
+ type: (0, import_prop_types4.oneOf)(["button", "submit"]),
800
+ variant: (0, import_prop_types4.oneOf)(["contained", "outlined", "text"])
843
801
  };
844
802
  var FilledButton_default = (0, import_react4.memo)(FilledButton);
845
803
 
@@ -847,7 +805,7 @@ var FilledButton_default = (0, import_react4.memo)(FilledButton);
847
805
  var import_react5 = __toESM(require("react"), 1);
848
806
  var import_material9 = require("@mui/material");
849
807
  var import_Button3 = __toESM(require("@mui/material/Button"), 1);
850
- var import_prop_types6 = __toESM(require("prop-types"), 1);
808
+ var import_prop_types5 = __toESM(require("prop-types"), 1);
851
809
  var import_mui8 = require("tss-react/mui");
852
810
  var import_jsx_runtime9 = require("react/jsx-runtime");
853
811
  var FilledButtonLg = ({
@@ -879,9 +837,9 @@ var FilledButtonLg = ({
879
837
  loading && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
880
838
  import_material9.CircularProgress,
881
839
  {
882
- color: (loadingProps == null ? void 0 : loadingProps.color) || "inherit",
883
- size: (loadingProps == null ? void 0 : loadingProps.size) || 22,
884
- style: { marginLeft: "15px", ...loadingProps == null ? void 0 : loadingProps.style }
840
+ color: loadingProps?.color || "inherit",
841
+ size: loadingProps?.size || 22,
842
+ style: { marginLeft: "15px", ...loadingProps?.style }
885
843
  }
886
844
  )
887
845
  ]
@@ -951,17 +909,17 @@ var ActionButtonLg = (0, import_mui8.withStyles)(FilledButtonLg, (theme) => ({
951
909
  }
952
910
  }));
953
911
  FilledButtonLg.propTypes = {
954
- classes: import_prop_types6.default.any,
955
- disabled: import_prop_types6.default.any,
956
- variant: import_prop_types6.default.string,
957
- color: import_prop_types6.default.string,
958
- copy: import_prop_types6.default.any,
959
- handleClick: import_prop_types6.default.any,
960
- loading: import_prop_types6.default.bool,
961
- loadingProps: import_prop_types6.default.shape({
962
- color: import_prop_types6.default.oneOf(["primary", "secondary", "inherit"]),
963
- size: import_prop_types6.default.number,
964
- style: import_prop_types6.default.string
912
+ classes: import_prop_types5.default.any,
913
+ disabled: import_prop_types5.default.any,
914
+ variant: import_prop_types5.default.string,
915
+ color: import_prop_types5.default.string,
916
+ copy: import_prop_types5.default.any,
917
+ handleClick: import_prop_types5.default.any,
918
+ loading: import_prop_types5.default.bool,
919
+ loadingProps: import_prop_types5.default.shape({
920
+ color: import_prop_types5.default.oneOf(["primary", "secondary", "inherit"]),
921
+ size: import_prop_types5.default.number,
922
+ style: import_prop_types5.default.string
965
923
  })
966
924
  };
967
925
  var FilledButtonLg_default = import_react5.default.memo(ActionButtonLg);
@@ -970,7 +928,7 @@ var FilledButtonLg_default = import_react5.default.memo(ActionButtonLg);
970
928
  var import_react6 = __toESM(require("react"), 1);
971
929
  var import_Button4 = __toESM(require("@mui/material/Button"), 1);
972
930
  var import_CircularProgress = __toESM(require("@mui/material/CircularProgress"), 1);
973
- var import_prop_types7 = require("prop-types");
931
+ var import_prop_types6 = require("prop-types");
974
932
  var import_mui9 = require("tss-react/mui");
975
933
  var import_jsx_runtime10 = require("react/jsx-runtime");
976
934
  var useStyles8 = (0, import_mui9.makeStyles)()((theme) => ({
@@ -1090,17 +1048,17 @@ var OutlinedButton = ({
1090
1048
  );
1091
1049
  };
1092
1050
  OutlinedButton.propTypes = {
1093
- className: import_prop_types7.string,
1094
- color: import_prop_types7.string,
1095
- copy: (0, import_prop_types7.oneOfType)([import_prop_types7.number, import_prop_types7.string]).isRequired,
1096
- disabled: import_prop_types7.bool,
1097
- href: import_prop_types7.string,
1098
- isLoading: import_prop_types7.bool,
1099
- onClick: import_prop_types7.func,
1100
- startIcon: import_prop_types7.node,
1101
- style: (0, import_prop_types7.shape)({}),
1102
- subcopy: import_prop_types7.string,
1103
- type: (0, import_prop_types7.oneOf)(["button", "submit"])
1051
+ className: import_prop_types6.string,
1052
+ color: import_prop_types6.string,
1053
+ copy: (0, import_prop_types6.oneOfType)([import_prop_types6.number, import_prop_types6.string]).isRequired,
1054
+ disabled: import_prop_types6.bool,
1055
+ href: import_prop_types6.string,
1056
+ isLoading: import_prop_types6.bool,
1057
+ onClick: import_prop_types6.func,
1058
+ startIcon: import_prop_types6.node,
1059
+ style: (0, import_prop_types6.shape)({}),
1060
+ subcopy: import_prop_types6.string,
1061
+ type: (0, import_prop_types6.oneOf)(["button", "submit"])
1104
1062
  };
1105
1063
  var OutlinedButton_default = import_react6.default.memo(OutlinedButton);
1106
1064
 
@@ -2789,55 +2747,156 @@ var DeleteUserDialogContent = ({
2789
2747
  };
2790
2748
  var DeleteUserDialogContent_default = import_react53.default.memo(DeleteUserDialogContent);
2791
2749
 
2792
- // src/components/DesktopContainer/DesktopContainer.tsx
2793
- var import_material15 = require("@mui/material");
2794
- var import_mui16 = require("tss-react/mui");
2795
-
2796
- // src/components/TheToolbar/TheToolbar.tsx
2797
- var import_react58 = __toESM(require("react"), 1);
2750
+ // src/components/Dialog/TwoButtonDialog.tsx
2798
2751
  var import_material14 = require("@mui/material");
2752
+ var import_Fade = __toESM(require("@mui/material/Fade"), 1);
2799
2753
  var import_mui15 = require("tss-react/mui");
2800
2754
 
2755
+ // src/components/Loading/Loading.tsx
2756
+ var import_material13 = require("@mui/material");
2757
+ var import_mui14 = require("tss-react/mui");
2758
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2759
+ var useStyles13 = (0, import_mui14.makeStyles)()(() => ({
2760
+ wrapper: {
2761
+ /**
2762
+ * MUI Dialogs have z-index = 1300
2763
+ */
2764
+ zIndex: 1301,
2765
+ backgroundColor: isDarkModeEnabled3 ? "rgba(0, 0, 0, 0.5)" : "rgba(255, 255, 255, 0.8)"
2766
+ }
2767
+ }));
2768
+ var Loading = ({ isLoading }) => {
2769
+ const { classes } = useStyles13();
2770
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2771
+ import_material13.Backdrop,
2772
+ {
2773
+ "aria-hidden": !isLoading,
2774
+ className: classes.wrapper,
2775
+ open: isLoading,
2776
+ "data-testid": "backdrop-loading",
2777
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_material13.CircularProgress, { color: "primary" })
2778
+ }
2779
+ );
2780
+ };
2781
+ var Loading_default = Loading;
2782
+
2783
+ // src/components/Dialog/TwoButtonDialog.tsx
2784
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2785
+ var useStyles14 = (0, import_mui15.makeStyles)()((theme) => ({
2786
+ paper: {
2787
+ padding: theme.spacing(2)
2788
+ },
2789
+ mt: {
2790
+ marginTop: theme.spacing(2)
2791
+ },
2792
+ mb: {
2793
+ marginBottom: theme.spacing(2)
2794
+ },
2795
+ buttonContainer: {
2796
+ display: "flex",
2797
+ justifyContent: "center",
2798
+ marginTop: theme.spacing(1)
2799
+ }
2800
+ }));
2801
+ var TwoButtonDialog = ({
2802
+ confirmButton,
2803
+ dialogLoading = false,
2804
+ title,
2805
+ subtitle1,
2806
+ subtitle2,
2807
+ open,
2808
+ setOpen
2809
+ }) => {
2810
+ const { classes } = useStyles14();
2811
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2812
+ import_material14.Dialog,
2813
+ {
2814
+ open,
2815
+ disableEnforceFocus: true,
2816
+ maxWidth: "sm",
2817
+ fullWidth: true,
2818
+ closeAfterTransition: true,
2819
+ BackdropComponent: import_material14.Backdrop,
2820
+ BackdropProps: {
2821
+ timeout: 500
2822
+ },
2823
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_Fade.default, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material14.Paper, { className: classes.paper, children: [
2824
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material14.Box, { className: classes.mb, children: [
2825
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material14.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2826
+ import_material14.Box,
2827
+ {
2828
+ sx: {
2829
+ fontWeight: 600
2830
+ },
2831
+ children: title
2832
+ }
2833
+ ) }),
2834
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
2835
+ import_material14.Box,
2836
+ {
2837
+ className: classes.mt,
2838
+ sx: {
2839
+ fontWeight: 600
2840
+ },
2841
+ children: [
2842
+ subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material14.Typography, { variant: "subtitle1", children: subtitle1 }),
2843
+ subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material14.Typography, { variant: "subtitle1", children: subtitle2 })
2844
+ ]
2845
+ }
2846
+ )
2847
+ ] }),
2848
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material14.Divider, {}),
2849
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material14.Box, { className: classes.buttonContainer, children: [
2850
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(FilledButton_default, { copy: "CANCEL", onClick: () => setOpen(false) }),
2851
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2852
+ FilledButton_default,
2853
+ {
2854
+ color: "primary",
2855
+ copy: "CONFIRM",
2856
+ onClick: confirmButton
2857
+ }
2858
+ )
2859
+ ] }),
2860
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Loading_default, { isLoading: dialogLoading })
2861
+ ] }) })
2862
+ }
2863
+ );
2864
+ };
2865
+ var TwoButtonDialog_default = TwoButtonDialog;
2866
+
2801
2867
  // src/components/LeftDrawer/LeftDrawer.tsx
2802
2868
  var import_react57 = __toESM(require("react"), 1);
2803
- var import_react_redux2 = require("react-redux");
2804
2869
  var import_icons_material3 = require("@mui/icons-material");
2805
- var import_material13 = require("@mui/material");
2870
+ var import_material15 = require("@mui/material");
2806
2871
  var import_Icon = __toESM(require("@mui/material/Icon"), 1);
2807
- var import_mui14 = require("tss-react/mui");
2872
+ var import_mui16 = require("tss-react/mui");
2808
2873
 
2809
2874
  // src/components/UserBust/UserBust.tsx
2810
2875
  var import_react55 = __toESM(require("react"), 1);
2811
2876
  var import_Typography = __toESM(require("@mui/material/Typography"), 1);
2812
- var import_prop_types9 = __toESM(require("prop-types"), 1);
2813
2877
 
2814
2878
  // src/components/UserAvatar/UserAvatar.tsx
2815
2879
  var import_react54 = __toESM(require("react"), 1);
2816
2880
  var import_Avatar = __toESM(require("@mui/material/Avatar"), 1);
2817
- var import_prop_types8 = __toESM(require("prop-types"), 1);
2818
- var import_jsx_runtime62 = require("react/jsx-runtime");
2819
- var UserAvatar = ({ src, width, height }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_Avatar.default, { alt: "user_avatar", src, style: { width, height } });
2881
+ var import_prop_types7 = __toESM(require("prop-types"), 1);
2882
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2883
+ var UserAvatar = ({ src, width, height }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_Avatar.default, { alt: "user_avatar", src, style: { width, height } });
2820
2884
  UserAvatar.propTypes = {
2821
- src: import_prop_types8.default.any,
2822
- width: import_prop_types8.default.any,
2823
- height: import_prop_types8.default.any
2885
+ src: import_prop_types7.default.any,
2886
+ width: import_prop_types7.default.any,
2887
+ height: import_prop_types7.default.any
2824
2888
  };
2825
2889
  var UserAvatar_default = import_react54.default.memo(UserAvatar);
2826
2890
 
2827
2891
  // src/components/UserBust/UserBust.tsx
2828
- var import_jsx_runtime63 = require("react/jsx-runtime");
2829
- var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { children: [
2830
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(UserAvatar_default, { src: user.profile_picture, ...avatarProps }),
2831
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { style: { paddingTop: 16 }, children: [
2832
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_Typography.default, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
2833
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_Typography.default, { ...typographyProps.username, children: user.username })
2892
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2893
+ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { children: [
2894
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(UserAvatar_default, { ...avatarProps, src: user.profile_picture }),
2895
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { style: { paddingTop: 16 }, children: [
2896
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Typography.default, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
2897
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Typography.default, { ...typographyProps.username, children: user.username })
2834
2898
  ] })
2835
2899
  ] });
2836
- UserBust.propTypes = {
2837
- user: import_prop_types9.default.any,
2838
- avatarProps: import_prop_types9.default.any,
2839
- typographyProps: import_prop_types9.default.any
2840
- };
2841
2900
  var UserBust_default = import_react55.default.memo(UserBust);
2842
2901
 
2843
2902
  // src/components/LeftDrawer/helpers/useGetFilteredDrawerAppList.tsx
@@ -2880,7 +2939,7 @@ var featureName = {
2880
2939
  var featureName_default = featureName;
2881
2940
 
2882
2941
  // src/components/LeftDrawer/helpers/drawerAppList.js
2883
- var import_jsx_runtime64 = require("react/jsx-runtime");
2942
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2884
2943
  var drawerAppList = [
2885
2944
  {
2886
2945
  groupName: "Home",
@@ -2891,7 +2950,7 @@ var drawerAppList = [
2891
2950
  alwaysDisplay: true,
2892
2951
  featureNames: [],
2893
2952
  pinned: null,
2894
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconHome, {}),
2953
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconHome, {}),
2895
2954
  url: `/#/`
2896
2955
  }
2897
2956
  ]
@@ -2905,7 +2964,7 @@ var drawerAppList = [
2905
2964
  alwaysDisplay: false,
2906
2965
  featureNames: [featureName_default.NOTIFICATIONS],
2907
2966
  pinned: null,
2908
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconNotification, {}),
2967
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconNotification, {}),
2909
2968
  url: `/#/notifications`
2910
2969
  },
2911
2970
  {
@@ -2914,7 +2973,7 @@ var drawerAppList = [
2914
2973
  alwaysDisplay: false,
2915
2974
  featureNames: [featureName_default.PROMO_CODES],
2916
2975
  pinned: null,
2917
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconPromoCode, {}),
2976
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconPromoCode, {}),
2918
2977
  url: "/react/promo_codes"
2919
2978
  },
2920
2979
  {
@@ -2923,7 +2982,7 @@ var drawerAppList = [
2923
2982
  alwaysDisplay: false,
2924
2983
  featureNames: [featureName_default.SEARCH_CATEGORIES],
2925
2984
  pinned: null,
2926
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconSearchCategories, {}),
2985
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconSearchCategories, {}),
2927
2986
  url: "/react/search-categories"
2928
2987
  },
2929
2988
  {
@@ -2932,7 +2991,7 @@ var drawerAppList = [
2932
2991
  alwaysDisplay: false,
2933
2992
  featureNames: ["cms"],
2934
2993
  pinned: null,
2935
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconContentManagement, {}),
2994
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconContentManagement, {}),
2936
2995
  url: "/react/content-management"
2937
2996
  }
2938
2997
  ]
@@ -2946,7 +3005,7 @@ var drawerAppList = [
2946
3005
  alwaysDisplay: false,
2947
3006
  featureNames: [featureName_default.AIRCALL],
2948
3007
  pinned: "recorded_calls",
2949
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconPhone, {}),
3008
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconPhone, {}),
2950
3009
  url: "/react/air-call"
2951
3010
  },
2952
3011
  {
@@ -2955,7 +3014,7 @@ var drawerAppList = [
2955
3014
  alwaysDisplay: false,
2956
3015
  featureNames: [featureName_default.CUSTOMERS],
2957
3016
  pinned: "customers",
2958
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconAccount, {}),
3017
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconAccount, {}),
2959
3018
  url: `/#/customer-list`,
2960
3019
  children: [
2961
3020
  {
@@ -2978,7 +3037,7 @@ var drawerAppList = [
2978
3037
  alwaysDisplay: false,
2979
3038
  featureNames: [featureName_default.ORDERS],
2980
3039
  pinned: "orders",
2981
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconOrders, {}),
3040
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconOrders, {}),
2982
3041
  url: `/#/orders`
2983
3042
  },
2984
3043
  {
@@ -2987,7 +3046,7 @@ var drawerAppList = [
2987
3046
  alwaysDisplay: false,
2988
3047
  featureNames: [featureName_default.PRICE_LIST],
2989
3048
  pinned: "price_list",
2990
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconPriceList, {}),
3049
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconPriceList, {}),
2991
3050
  url: `/#/price-list`
2992
3051
  },
2993
3052
  {
@@ -2996,7 +3055,7 @@ var drawerAppList = [
2996
3055
  alwaysDisplay: false,
2997
3056
  featureNames: [featureName_default.SPECIAL_PRICES],
2998
3057
  pinned: "special_prices",
2999
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconSpecialPrice, {}),
3058
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconSpecialPrice, {}),
3000
3059
  url: `/#/pricing/special-prices`
3001
3060
  }
3002
3061
  ]
@@ -3010,7 +3069,7 @@ var drawerAppList = [
3010
3069
  alwaysDisplay: false,
3011
3070
  featureNames: [featureName_default.PURCHASE_ORDERS],
3012
3071
  pinned: "purchase_orders",
3013
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconBuying, {}),
3072
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconBuying, {}),
3014
3073
  url: "/react/purchase-orders"
3015
3074
  },
3016
3075
  {
@@ -3019,7 +3078,7 @@ var drawerAppList = [
3019
3078
  alwaysDisplay: false,
3020
3079
  featureNames: [featureName_default.PRODUCTS],
3021
3080
  pinned: "products",
3022
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconProducts, {}),
3081
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconProducts, {}),
3023
3082
  url: `/#/product-base-list`
3024
3083
  },
3025
3084
  {
@@ -3028,7 +3087,7 @@ var drawerAppList = [
3028
3087
  alwaysDisplay: false,
3029
3088
  featureNames: [featureName_default.SUPPLIERS],
3030
3089
  pinned: "suppliers",
3031
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconSupplier, {}),
3090
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconSupplier, {}),
3032
3091
  url: "/react/suppliers"
3033
3092
  },
3034
3093
  {
@@ -3037,7 +3096,7 @@ var drawerAppList = [
3037
3096
  alwaysDisplay: false,
3038
3097
  featureNames: [featureName_default.SUPPLIER_PRICES],
3039
3098
  pinned: "supplier_prices",
3040
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconSupplierPrices, {}),
3099
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconSupplierPrices, {}),
3041
3100
  url: `/#/supplier-prices`
3042
3101
  },
3043
3102
  {
@@ -3046,7 +3105,7 @@ var drawerAppList = [
3046
3105
  alwaysDisplay: false,
3047
3106
  featureNames: [featureName_default.BULK_UPDATE],
3048
3107
  pinned: "bulk-update",
3049
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconImport, {}),
3108
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconImport, {}),
3050
3109
  url: "/react/bulk_update"
3051
3110
  }
3052
3111
  ]
@@ -3060,7 +3119,7 @@ var drawerAppList = [
3060
3119
  alwaysDisplay: false,
3061
3120
  featureNames: [featureName_default.GOODS_IN],
3062
3121
  pinned: "goods_in",
3063
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconGoodsin, {}),
3122
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconGoodsin, {}),
3064
3123
  url: "/react/goodsin-list"
3065
3124
  },
3066
3125
  {
@@ -3069,7 +3128,7 @@ var drawerAppList = [
3069
3128
  alwaysDisplay: false,
3070
3129
  featureNames: [featureName_default.RETURNS],
3071
3130
  pinned: "goods_in",
3072
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconGoodsin, {}),
3131
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconGoodsin, {}),
3073
3132
  url: "/react/returns"
3074
3133
  },
3075
3134
  {
@@ -3078,7 +3137,7 @@ var drawerAppList = [
3078
3137
  alwaysDisplay: false,
3079
3138
  featureNames: [featureName_default.KANBAN],
3080
3139
  pinned: "kanbancards",
3081
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconVkc, {}),
3140
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconVkc, {}),
3082
3141
  url: `/#/kanban`
3083
3142
  },
3084
3143
  {
@@ -3090,7 +3149,7 @@ var drawerAppList = [
3090
3149
  featureName: featureName_default.STOCK_MOVEMENTS
3091
3150
  }
3092
3151
  ],
3093
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconLocation, {}),
3152
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconLocation, {}),
3094
3153
  name: "Stock and Locations",
3095
3154
  pinned: "locations",
3096
3155
  routeName: "locations",
@@ -3104,7 +3163,7 @@ var drawerAppList = [
3104
3163
  alwaysDisplay: false,
3105
3164
  featureNames: [featureName_default.PICKING_STATIONS],
3106
3165
  pinned: "picking_stations",
3107
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconScales, {}),
3166
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconScales, {}),
3108
3167
  url: `/#/pickingstation`
3109
3168
  },
3110
3169
  {
@@ -3113,7 +3172,7 @@ var drawerAppList = [
3113
3172
  alwaysDisplay: false,
3114
3173
  featureNames: [featureName_default.QUALITY_CONTROL],
3115
3174
  pinned: "quality_control",
3116
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconQc, {}),
3175
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconQc, {}),
3117
3176
  url: `/#/quality-control`
3118
3177
  },
3119
3178
  {
@@ -3122,7 +3181,7 @@ var drawerAppList = [
3122
3181
  alwaysDisplay: false,
3123
3182
  featureNames: [featureName_default.RETAIL],
3124
3183
  pinned: "retail",
3125
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconRetail, {}),
3184
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconRetail, {}),
3126
3185
  url: `/retail/product-availability`
3127
3186
  },
3128
3187
  {
@@ -3131,7 +3190,7 @@ var drawerAppList = [
3131
3190
  alwaysDisplay: false,
3132
3191
  featureNames: [featureName_default.SERVICE_DELIVERY],
3133
3192
  pinned: "runs",
3134
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconRuns, {}),
3193
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconRuns, {}),
3135
3194
  url: `/#/runs`
3136
3195
  },
3137
3196
  {
@@ -3140,7 +3199,7 @@ var drawerAppList = [
3140
3199
  alwaysDisplay: false,
3141
3200
  featureNames: [featureName_default.OPS_METRICS],
3142
3201
  pinned: "ops-metrics",
3143
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconOpsMetrics, {}),
3202
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconOpsMetrics, {}),
3144
3203
  url: "/react/ops-metrics"
3145
3204
  }
3146
3205
  ]
@@ -3154,7 +3213,7 @@ var drawerAppList = [
3154
3213
  alwaysDisplay: false,
3155
3214
  featureNames: [featureName_default.ACCOUNTS],
3156
3215
  pinned: "accounts",
3157
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconAccounts, {}),
3216
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconAccounts, {}),
3158
3217
  url: `/#/accounts`
3159
3218
  },
3160
3219
  {
@@ -3163,7 +3222,7 @@ var drawerAppList = [
3163
3222
  alwaysDisplay: false,
3164
3223
  featureNames: [featureName_default.REPORTS],
3165
3224
  pinned: "reports",
3166
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconReports, {}),
3225
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconReports, {}),
3167
3226
  url: `/reports`
3168
3227
  }
3169
3228
  ]
@@ -3177,7 +3236,7 @@ var drawerAppList = [
3177
3236
  alwaysDisplay: false,
3178
3237
  featureNames: [featureName_default.ADMIN],
3179
3238
  pinned: "admin",
3180
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconSetting, {}),
3239
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconSetting, {}),
3181
3240
  url: `/admin`
3182
3241
  },
3183
3242
  {
@@ -3186,7 +3245,7 @@ var drawerAppList = [
3186
3245
  alwaysDisplay: false,
3187
3246
  featureNames: [featureName_default.USER_MANAGEMENT],
3188
3247
  pinned: "users",
3189
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconUserManagement, {}),
3248
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconUserManagement, {}),
3190
3249
  url: "/react/user-management"
3191
3250
  },
3192
3251
  {
@@ -3195,7 +3254,7 @@ var drawerAppList = [
3195
3254
  alwaysDisplay: true,
3196
3255
  featureNames: [],
3197
3256
  pinned: null,
3198
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(icons_default.SvgIconLogin, {}),
3257
+ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconLogin, {}),
3199
3258
  url: "/react/logout"
3200
3259
  }
3201
3260
  ]
@@ -3255,8 +3314,8 @@ var useGetFilteredDrawerAppList = () => {
3255
3314
  var useGetFilteredDrawerAppList_default = useGetFilteredDrawerAppList;
3256
3315
 
3257
3316
  // src/components/LeftDrawer/LeftDrawer.tsx
3258
- var import_jsx_runtime65 = require("react/jsx-runtime");
3259
- var useStyles13 = (0, import_mui14.makeStyles)()((theme) => ({
3317
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3318
+ var useStyles15 = (0, import_mui16.makeStyles)()((theme) => ({
3260
3319
  subheader: {
3261
3320
  textTransform: "uppercase",
3262
3321
  fontSize: theme.spacing(1.5)
@@ -3312,9 +3371,14 @@ var useStyles13 = (0, import_mui14.makeStyles)()((theme) => ({
3312
3371
  }
3313
3372
  }
3314
3373
  }));
3315
- var LeftDrawer = ({ handleClose, handleOpen, open }) => {
3374
+ var LeftDrawer = ({
3375
+ handleClose,
3376
+ handleOpen,
3377
+ onLogout,
3378
+ open,
3379
+ user
3380
+ }) => {
3316
3381
  const [openCollapse, setOpenCollapse] = (0, import_react57.useState)({});
3317
- const dispatch = (0, import_react_redux2.useDispatch)();
3318
3382
  const filteredDrawerAppList = useGetFilteredDrawerAppList_default();
3319
3383
  const handleCollapse = (e, routeName) => {
3320
3384
  e.stopPropagation();
@@ -3322,9 +3386,9 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
3322
3386
  tempOpenCollapse[routeName] = !tempOpenCollapse[routeName];
3323
3387
  setOpenCollapse(tempOpenCollapse);
3324
3388
  };
3325
- const { classes } = useStyles13();
3326
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
3327
- import_material13.SwipeableDrawer,
3389
+ const { classes } = useStyles15();
3390
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3391
+ import_material15.SwipeableDrawer,
3328
3392
  {
3329
3393
  className: classes.drawer,
3330
3394
  id: "primary-menu",
@@ -3332,19 +3396,19 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
3332
3396
  onOpen: handleOpen,
3333
3397
  open,
3334
3398
  children: [
3335
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material13.AppBar, { position: "static", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_material13.Toolbar, { className: classes.topBar, children: [
3336
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3399
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.AppBar, { position: "static", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_material15.Toolbar, { className: classes.topBar, children: [
3400
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3337
3401
  UserBust_default,
3338
3402
  {
3339
- user: {},
3403
+ user,
3340
3404
  avatarProps: { height: 50, width: 50 },
3341
3405
  typographyProps: {
3342
- name: { variant: "subtitle1" },
3343
- username: { variant: "caption" }
3406
+ name: { variant: "subtitle1", component: "div" },
3407
+ username: { variant: "caption", component: "div" }
3344
3408
  }
3345
3409
  }
3346
3410
  ),
3347
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material13.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3411
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3348
3412
  RoundButton_default,
3349
3413
  {
3350
3414
  icon: "edit",
@@ -3355,73 +3419,71 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
3355
3419
  }
3356
3420
  ) })
3357
3421
  ] }) }),
3358
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material13.List, { children: filteredDrawerAppList.map((group) => /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react57.default.Fragment, { children: [
3359
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material13.ListSubheader, { disableSticky: true, className: classes.subheader, children: group.groupName }),
3360
- group.apps.map((app) => {
3361
- var _a, _b;
3362
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react57.default.Fragment, { children: [
3363
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
3364
- import_material13.ListItem,
3365
- {
3366
- title: app.url,
3367
- onClick: () => {
3368
- if (app.routeName === "logout") {
3369
- }
3370
- return window.location.assign(app.url);
3371
- },
3372
- children: [
3373
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material13.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Icon.default, { className: classes.iconMenu, children: app.icon }) }),
3374
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3375
- import_material13.ListItemText,
3376
- {
3377
- className: classes.appName,
3378
- primary: app.name,
3379
- slotProps: {
3380
- primary: { variant: "body2" }
3381
- }
3382
- }
3383
- ),
3384
- ((_a = app.children) == null ? void 0 : _a.length) > 0 && (openCollapse[app.routeName] ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3385
- import_icons_material3.ExpandLess,
3386
- {
3387
- "data-testid": "svg-close-collapse",
3388
- onClick: (e) => handleCollapse(e, app.routeName)
3389
- }
3390
- ) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3391
- import_icons_material3.ExpandMore,
3392
- {
3393
- "data-testid": "svg-open-collapse",
3394
- onClick: (e) => handleCollapse(e, app.routeName)
3395
- }
3396
- ))
3397
- ]
3422
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.List, { children: filteredDrawerAppList.map((group) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react57.default.Fragment, { children: [
3423
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.ListSubheader, { disableSticky: true, className: classes.subheader, children: group.groupName }),
3424
+ group.apps.map((app) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react57.default.Fragment, { children: [
3425
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3426
+ import_material15.ListItem,
3427
+ {
3428
+ title: app.url,
3429
+ onClick: () => {
3430
+ if (app.routeName === "logout") {
3431
+ return onLogout();
3432
+ }
3433
+ return window.location.assign(app.url);
3398
3434
  },
3399
- app.name
3400
- ),
3401
- ((_b = app.children) == null ? void 0 : _b.length) > 0 && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material13.Collapse, { in: openCollapse[app.routeName], children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material13.List, { children: app.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
3402
- import_material13.ListItemButton,
3403
- {
3404
- className: classes.nested,
3405
- disabled: child.disabled,
3406
- onClick: () => window.location.assign(app.url),
3407
- title: app.url,
3408
- children: [
3409
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material13.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_icons_material3.FiberManualRecord, { style: { height: 12 } }) }),
3410
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3411
- import_material13.ListItemText,
3412
- {
3413
- primary: child.name,
3414
- slotProps: {
3415
- primary: { variant: "body2" }
3416
- }
3435
+ children: [
3436
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_Icon.default, { className: classes.iconMenu, children: app.icon }) }),
3437
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3438
+ import_material15.ListItemText,
3439
+ {
3440
+ className: classes.appName,
3441
+ primary: app.name,
3442
+ slotProps: {
3443
+ primary: { variant: "body2" }
3417
3444
  }
3418
- )
3419
- ]
3420
- },
3421
- child.name
3422
- )) }) })
3423
- ] }, `${group.groupName} ${app.name}`);
3424
- })
3445
+ }
3446
+ ),
3447
+ app.children?.length > 0 && (openCollapse[app.routeName] ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3448
+ import_icons_material3.ExpandLess,
3449
+ {
3450
+ "data-testid": "svg-close-collapse",
3451
+ onClick: (e) => handleCollapse(e, app.routeName)
3452
+ }
3453
+ ) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3454
+ import_icons_material3.ExpandMore,
3455
+ {
3456
+ "data-testid": "svg-open-collapse",
3457
+ onClick: (e) => handleCollapse(e, app.routeName)
3458
+ }
3459
+ ))
3460
+ ]
3461
+ },
3462
+ app.name
3463
+ ),
3464
+ app.children?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.Collapse, { in: openCollapse[app.routeName], children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.List, { children: app.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3465
+ import_material15.ListItemButton,
3466
+ {
3467
+ className: classes.nested,
3468
+ disabled: child.disabled,
3469
+ onClick: () => window.location.assign(app.url),
3470
+ title: app.url,
3471
+ children: [
3472
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_icons_material3.FiberManualRecord, { style: { height: 12 } }) }),
3473
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3474
+ import_material15.ListItemText,
3475
+ {
3476
+ primary: child.name,
3477
+ slotProps: {
3478
+ primary: { variant: "body2" }
3479
+ }
3480
+ }
3481
+ )
3482
+ ]
3483
+ },
3484
+ child.name
3485
+ )) }) })
3486
+ ] }, `${group.groupName} ${app.name}`))
3425
3487
  ] }, group.groupName)) })
3426
3488
  ]
3427
3489
  }
@@ -3429,295 +3491,56 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
3429
3491
  };
3430
3492
  var LeftDrawer_default = (0, import_react57.memo)(LeftDrawer);
3431
3493
 
3432
- // src/components/TheToolbar/TheToolbar.tsx
3433
- var import_jsx_runtime66 = require("react/jsx-runtime");
3434
- var useStyles14 = (0, import_mui15.makeStyles)()((theme) => ({
3435
- menuButton: {
3436
- color: theme.palette.primary.contrastText
3437
- },
3438
- searchNatoora: {
3439
- width: "100%"
3440
- },
3441
- searchIcon: {
3442
- opacity: ".5"
3443
- },
3444
- inputRoot: {
3445
- color: "inherit"
3446
- },
3447
- inputInput: {
3448
- transition: theme.transitions.create("width"),
3449
- width: "100%"
3450
- },
3451
- topBar: {
3452
- display: "flex",
3453
- gap: theme.spacing(1),
3454
- backgroundColor: colors.topBar
3455
- },
3456
- drawer: {
3457
- backgroundColor: "black"
3458
- },
3459
- drawerItem: {
3460
- maxWidth: "300px",
3461
- width: "80vw"
3462
- },
3463
- offset: theme.mixins.toolbar
3464
- }));
3465
- var TheToolbar = ({ imageLogoDarkSmall, imageLogoLightSmall }) => {
3466
- const { classes } = useStyles14();
3467
- const [open, setOpen] = import_react58.default.useState(false);
3468
- const handleOpen = () => setOpen(true);
3469
- const handleClose = () => setOpen(false);
3470
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_material14.Box, { children: [
3471
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_material14.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_material14.Toolbar, { className: classes.topBar, children: [
3472
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3473
- RoundButton_default,
3474
- {
3475
- className: classes.menuButton,
3476
- icon: "menu",
3477
- noStrokes: true,
3478
- onClick: handleOpen
3479
- }
3480
- ),
3481
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3482
- CompanyLogo_default,
3483
- {
3484
- size: "small",
3485
- color: "light",
3486
- imageLogoDarkSmall,
3487
- imageLogoLightSmall
3488
- }
3489
- )
3490
- ] }) }),
3491
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_material14.Box, { className: classes.offset }),
3492
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3493
- LeftDrawer_default,
3494
- {
3495
- open,
3496
- handleOpen,
3497
- handleClose
3498
- }
3499
- )
3500
- ] });
3501
- };
3502
- var TheToolbar_default = import_react58.default.memo(TheToolbar);
3503
-
3504
- // src/components/DesktopContainer/DesktopContainer.tsx
3505
- var import_jsx_runtime67 = require("react/jsx-runtime");
3506
- var useStyles15 = (0, import_mui16.makeStyles)()((theme) => ({
3494
+ // src/components/Pagination/PaginationForTable.tsx
3495
+ var import_Pagination = __toESM(require("@mui/material/Pagination"), 1);
3496
+ var import_Paper = __toESM(require("@mui/material/Paper"), 1);
3497
+ var import_Typography2 = __toESM(require("@mui/material/Typography"), 1);
3498
+ var import_prop_types8 = require("prop-types");
3499
+ var import_mui17 = require("tss-react/mui");
3500
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3501
+ var paginationHeight = "56px";
3502
+ var useStyles16 = (0, import_mui17.makeStyles)()((theme) => ({
3507
3503
  root: {
3508
3504
  display: "flex",
3509
- flexDirection: "column",
3510
- minHeight: "100vh",
3511
- maxWidth: 1420,
3512
- padding: 0
3505
+ flexDirection: "row",
3506
+ justifyContent: "flex-end",
3507
+ alignItems: "center",
3508
+ borderTop: `1px solid ${colors.grey200}`,
3509
+ backgroundColor: colors.tableRow2,
3510
+ borderRadius: "0 0 4px 4px",
3511
+ width: "100%",
3512
+ height: paginationHeight,
3513
+ "& > *": {
3514
+ margin: theme.spacing(2)
3515
+ },
3516
+ "& .MuiTypography-body1": {
3517
+ fontSize: ".850rem"
3518
+ }
3513
3519
  },
3514
- content: {
3515
- height: "100%",
3516
- flexGrow: 1
3520
+ fixed: {
3521
+ position: "fixed",
3522
+ bottom: 0,
3523
+ left: 0
3517
3524
  },
3518
- [theme.breakpoints.up("xl")]: {
3519
- root: {
3520
- maxWidth: 1720
3521
- }
3525
+ fixedOffset: {
3526
+ height: paginationHeight
3522
3527
  }
3523
3528
  }));
3524
- var DesktopContainer = ({
3525
- imageLogoDarkSmall,
3526
- imageLogoLightSmall,
3527
- children
3529
+ var PaginationForTable = ({
3530
+ appliedFilters,
3531
+ className,
3532
+ page,
3533
+ pagination,
3534
+ position = "relative",
3535
+ style,
3536
+ updateFilters
3528
3537
  }) => {
3529
- const { classes } = useStyles15();
3530
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_material15.Container, { className: classes.root, maxWidth: "xl", children: [
3531
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3532
- TheToolbar_default,
3533
- {
3534
- imageLogoDarkSmall,
3535
- imageLogoLightSmall
3536
- }
3537
- ),
3538
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3539
- import_material15.Box,
3540
- {
3541
- className: classes.content,
3542
- id: "mainContainer",
3543
- sx: {
3544
- display: "flex",
3545
- flexDirection: "column"
3546
- },
3547
- children
3548
- }
3549
- )
3550
- ] });
3551
- };
3552
- var DesktopContainer_default = DesktopContainer;
3553
-
3554
- // src/components/Dialog/TwoButtonDialog.tsx
3555
- var import_material17 = require("@mui/material");
3556
- var import_Fade = __toESM(require("@mui/material/Fade"), 1);
3557
- var import_mui18 = require("tss-react/mui");
3558
-
3559
- // src/components/Loading/Loading.tsx
3560
- var import_material16 = require("@mui/material");
3561
- var import_mui17 = require("tss-react/mui");
3562
- var import_jsx_runtime68 = require("react/jsx-runtime");
3563
- var useStyles16 = (0, import_mui17.makeStyles)()(() => ({
3564
- wrapper: {
3565
- /**
3566
- * MUI Dialogs have z-index = 1300
3567
- */
3568
- zIndex: 1301,
3569
- backgroundColor: isDarkModeEnabled3 ? "rgba(0, 0, 0, 0.5)" : "rgba(255, 255, 255, 0.8)"
3570
- }
3571
- }));
3572
- var Loading = ({ isLoading }) => {
3573
- const { classes } = useStyles16();
3574
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3575
- import_material16.Backdrop,
3576
- {
3577
- "aria-hidden": !isLoading,
3578
- className: classes.wrapper,
3579
- open: isLoading,
3580
- "data-testid": "backdrop-loading",
3581
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_material16.CircularProgress, { color: "primary" })
3582
- }
3583
- );
3584
- };
3585
- var Loading_default = Loading;
3586
-
3587
- // src/components/Dialog/TwoButtonDialog.tsx
3588
- var import_jsx_runtime69 = require("react/jsx-runtime");
3589
- var useStyles17 = (0, import_mui18.makeStyles)()((theme) => ({
3590
- paper: {
3591
- padding: theme.spacing(2)
3592
- },
3593
- mt: {
3594
- marginTop: theme.spacing(2)
3595
- },
3596
- mb: {
3597
- marginBottom: theme.spacing(2)
3598
- },
3599
- buttonContainer: {
3600
- display: "flex",
3601
- justifyContent: "center",
3602
- marginTop: theme.spacing(1)
3603
- }
3604
- }));
3605
- var TwoButtonDialog = ({
3606
- confirmButton,
3607
- dialogLoading = false,
3608
- title,
3609
- subtitle1,
3610
- subtitle2,
3611
- open,
3612
- setOpen
3613
- }) => {
3614
- const { classes } = useStyles17();
3615
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3616
- import_material17.Dialog,
3617
- {
3618
- open,
3619
- disableEnforceFocus: true,
3620
- maxWidth: "sm",
3621
- fullWidth: true,
3622
- closeAfterTransition: true,
3623
- BackdropComponent: import_material17.Backdrop,
3624
- BackdropProps: {
3625
- timeout: 500
3626
- },
3627
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_Fade.default, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_material17.Paper, { className: classes.paper, children: [
3628
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_material17.Box, { className: classes.mb, children: [
3629
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_material17.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3630
- import_material17.Box,
3631
- {
3632
- sx: {
3633
- fontWeight: 600
3634
- },
3635
- children: title
3636
- }
3637
- ) }),
3638
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3639
- import_material17.Box,
3640
- {
3641
- className: classes.mt,
3642
- sx: {
3643
- fontWeight: 600
3644
- },
3645
- children: [
3646
- subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_material17.Typography, { variant: "subtitle1", children: subtitle1 }),
3647
- subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_material17.Typography, { variant: "subtitle1", children: subtitle2 })
3648
- ]
3649
- }
3650
- )
3651
- ] }),
3652
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_material17.Divider, {}),
3653
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_material17.Box, { className: classes.buttonContainer, children: [
3654
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FilledButton_default, { copy: "CANCEL", onClick: () => setOpen(false) }),
3655
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3656
- FilledButton_default,
3657
- {
3658
- color: "primary",
3659
- copy: "CONFIRM",
3660
- onClick: confirmButton
3661
- }
3662
- )
3663
- ] }),
3664
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Loading_default, { isLoading: dialogLoading })
3665
- ] }) })
3666
- }
3667
- );
3668
- };
3669
- var TwoButtonDialog_default = TwoButtonDialog;
3670
-
3671
- // src/components/Pagination/PaginationForTable.tsx
3672
- var import_Pagination = __toESM(require("@mui/material/Pagination"), 1);
3673
- var import_Paper = __toESM(require("@mui/material/Paper"), 1);
3674
- var import_Typography2 = __toESM(require("@mui/material/Typography"), 1);
3675
- var import_prop_types10 = require("prop-types");
3676
- var import_mui19 = require("tss-react/mui");
3677
- var import_jsx_runtime70 = require("react/jsx-runtime");
3678
- var paginationHeight = "56px";
3679
- var useStyles18 = (0, import_mui19.makeStyles)()((theme) => ({
3680
- root: {
3681
- display: "flex",
3682
- flexDirection: "row",
3683
- justifyContent: "flex-end",
3684
- alignItems: "center",
3685
- borderTop: `1px solid ${colors.grey200}`,
3686
- backgroundColor: colors.tableRow2,
3687
- borderRadius: "0 0 4px 4px",
3688
- width: "100%",
3689
- height: paginationHeight,
3690
- "& > *": {
3691
- margin: theme.spacing(2)
3692
- },
3693
- "& .MuiTypography-body1": {
3694
- fontSize: ".850rem"
3695
- }
3696
- },
3697
- fixed: {
3698
- position: "fixed",
3699
- bottom: 0,
3700
- left: 0
3701
- },
3702
- fixedOffset: {
3703
- height: paginationHeight
3704
- }
3705
- }));
3706
- var PaginationForTable = ({
3707
- appliedFilters,
3708
- className,
3709
- page,
3710
- pagination,
3711
- position = "relative",
3712
- style,
3713
- updateFilters
3714
- }) => {
3715
- const { classes, cx } = useStyles18();
3538
+ const { classes, cx } = useStyles16();
3716
3539
  const handleChange = (event, value) => {
3717
3540
  updateFilters({ ...appliedFilters, page: value });
3718
3541
  };
3719
3542
  const isFixed = position === "fixed";
3720
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_Paper.default, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
3543
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_Paper.default, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3721
3544
  "div",
3722
3545
  {
3723
3546
  style,
@@ -3725,11 +3548,11 @@ var PaginationForTable = ({
3725
3548
  [classes.fixed]: isFixed
3726
3549
  }),
3727
3550
  children: [
3728
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_Typography2.default, { variant: "body1", children: [
3551
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_Typography2.default, { variant: "body1", children: [
3729
3552
  "Page: ",
3730
3553
  page
3731
3554
  ] }),
3732
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3555
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3733
3556
  import_Pagination.default,
3734
3557
  {
3735
3558
  count: pagination.num_pages,
@@ -3745,37 +3568,37 @@ PaginationForTable.defaultProps = {
3745
3568
  className: ""
3746
3569
  };
3747
3570
  PaginationForTable.propTypes = {
3748
- appliedFilters: import_prop_types10.any,
3749
- className: import_prop_types10.string,
3750
- page: import_prop_types10.any,
3751
- pagination: import_prop_types10.object,
3752
- position: (0, import_prop_types10.oneOf)(["relative", "fixed"]),
3753
- style: import_prop_types10.any,
3754
- updateFilters: import_prop_types10.func.isRequired
3571
+ appliedFilters: import_prop_types8.any,
3572
+ className: import_prop_types8.string,
3573
+ page: import_prop_types8.any,
3574
+ pagination: import_prop_types8.object,
3575
+ position: (0, import_prop_types8.oneOf)(["relative", "fixed"]),
3576
+ style: import_prop_types8.any,
3577
+ updateFilters: import_prop_types8.func.isRequired
3755
3578
  };
3756
3579
  var PaginationForTable_default = PaginationForTable;
3757
3580
 
3758
3581
  // src/components/ProductImage/ProductImage.tsx
3759
- var import_material18 = require("@mui/material");
3760
- var import_prop_types11 = require("prop-types");
3761
- var import_mui20 = require("tss-react/mui");
3762
- var import_jsx_runtime71 = require("react/jsx-runtime");
3582
+ var import_material16 = require("@mui/material");
3583
+ var import_prop_types9 = require("prop-types");
3584
+ var import_mui18 = require("tss-react/mui");
3585
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3763
3586
  var PImage = ({
3764
3587
  classes,
3765
3588
  image,
3766
3589
  size = "c_productbust__image_xs",
3767
3590
  status
3768
- }) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: classes.c_productbust__image, children: [
3769
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3770
- import_material18.CardMedia,
3591
+ }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: classes.c_productbust__image, children: [
3592
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3593
+ import_material16.CardMedia,
3771
3594
  {
3772
3595
  className: classes[size],
3773
3596
  image: image || "resources/img/peas.jpg"
3774
3597
  }
3775
3598
  ),
3776
- status && status !== "ACTIVE" && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: classes.c_productbust__label_status, children: status })
3599
+ status && status !== "ACTIVE" && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: classes.c_productbust__label_status, children: status })
3777
3600
  ] });
3778
- var ProductImage = (0, import_mui20.withStyles)(PImage, (theme) => ({
3601
+ var ProductImage = (0, import_mui18.withStyles)(PImage, (theme) => ({
3779
3602
  c_productbust__label_status: {
3780
3603
  position: "absolute",
3781
3604
  color: "white",
@@ -3853,25 +3676,25 @@ var ProductImage = (0, import_mui20.withStyles)(PImage, (theme) => ({
3853
3676
  }
3854
3677
  }));
3855
3678
  PImage.propTypes = {
3856
- classes: import_prop_types11.any,
3857
- image: import_prop_types11.string,
3858
- size: import_prop_types11.string,
3859
- status: import_prop_types11.any
3679
+ classes: import_prop_types9.any,
3680
+ image: import_prop_types9.string,
3681
+ size: import_prop_types9.string,
3682
+ status: import_prop_types9.any
3860
3683
  };
3861
3684
  var ProductImage_default = ProductImage;
3862
3685
 
3863
3686
  // src/components/RenderContentList/RenderContentList.tsx
3864
- var import_react60 = require("react");
3865
- var import_material19 = require("@mui/material");
3866
- var import_mui21 = require("tss-react/mui");
3687
+ var import_react59 = require("react");
3688
+ var import_material17 = require("@mui/material");
3689
+ var import_mui19 = require("tss-react/mui");
3867
3690
 
3868
3691
  // src/utils/useGetActiveSection.ts
3869
- var import_react59 = require("react");
3692
+ var import_react58 = require("react");
3870
3693
  var transformNameToID = (name) => name.replaceAll(" ", "-").toLocaleLowerCase();
3871
3694
 
3872
3695
  // src/components/RenderContentList/RenderContentList.tsx
3873
- var import_jsx_runtime72 = require("react/jsx-runtime");
3874
- var useStyles19 = (0, import_mui21.makeStyles)()(
3696
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3697
+ var useStyles17 = (0, import_mui19.makeStyles)()(
3875
3698
  (_theme, _params, classes) => ({
3876
3699
  root: {
3877
3700
  [`&.${classes.selected}`]: {
@@ -3885,28 +3708,28 @@ var useStyles19 = (0, import_mui21.makeStyles)()(
3885
3708
  })
3886
3709
  );
3887
3710
  var RenderContentList = ({ items, activeSection }) => {
3888
- const { classes } = useStyles19();
3889
- const [active, setActive] = (0, import_react60.useState)(activeSection);
3890
- (0, import_react60.useEffect)(() => {
3711
+ const { classes } = useStyles17();
3712
+ const [active, setActive] = (0, import_react59.useState)(activeSection);
3713
+ (0, import_react59.useEffect)(() => {
3891
3714
  setActive(activeSection);
3892
3715
  }, [activeSection]);
3893
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3894
- import_material19.List,
3716
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3717
+ import_material17.List,
3895
3718
  {
3896
3719
  component: "nav",
3897
3720
  "aria-labelledby": "nested-list-subheader",
3898
- subheader: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_material19.ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
3721
+ subheader: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_material17.ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
3899
3722
  children: items.map((item) => {
3900
3723
  const id = transformNameToID(item);
3901
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3902
- import_material19.ListItemButton,
3724
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3725
+ import_material17.ListItemButton,
3903
3726
  {
3904
3727
  component: "a",
3905
3728
  href: `#${id}`,
3906
3729
  onClick: () => setActive(item),
3907
3730
  selected: active === item,
3908
3731
  classes: { root: classes.root },
3909
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_material19.ListItemText, { primary: item })
3732
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_material17.ListItemText, { primary: item })
3910
3733
  },
3911
3734
  id
3912
3735
  );
@@ -3917,11 +3740,11 @@ var RenderContentList = ({ items, activeSection }) => {
3917
3740
  var RenderContentList_default = RenderContentList;
3918
3741
 
3919
3742
  // src/components/RowProductCard/RowProductCard.tsx
3920
- var import_material20 = require("@mui/material");
3921
- var import_mui22 = require("tss-react/mui");
3922
- var import_prop_types12 = require("prop-types");
3923
- var import_jsx_runtime73 = require("react/jsx-runtime");
3924
- var useStyles20 = (0, import_mui22.makeStyles)()((theme) => ({
3743
+ var import_material18 = require("@mui/material");
3744
+ var import_mui20 = require("tss-react/mui");
3745
+ var import_prop_types10 = require("prop-types");
3746
+ var import_jsx_runtime71 = require("react/jsx-runtime");
3747
+ var useStyles18 = (0, import_mui20.makeStyles)()((theme) => ({
3925
3748
  wrapper: {
3926
3749
  display: "flex",
3927
3750
  gap: theme.spacing(2),
@@ -3946,15 +3769,15 @@ var useStyles20 = (0, import_mui22.makeStyles)()((theme) => ({
3946
3769
  }
3947
3770
  }));
3948
3771
  var RowProductCard = ({ children, columns, location, product, size }) => {
3949
- const { classes, cx } = useStyles20();
3772
+ const { classes, cx } = useStyles18();
3950
3773
  const hasColumns = columns.length >= 1;
3951
3774
  const imageSize = {
3952
3775
  small: "c_productbust__image_sm",
3953
3776
  medium: "c_productbust__image_md",
3954
3777
  large: "c_productbust__image_lg"
3955
3778
  };
3956
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_material20.Paper, { className: classes.wrapper, children: [
3957
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3779
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_material18.Paper, { className: classes.wrapper, children: [
3780
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3958
3781
  ProductImage_default,
3959
3782
  {
3960
3783
  image: product.image,
@@ -3962,15 +3785,15 @@ var RowProductCard = ({ children, columns, location, product, size }) => {
3962
3785
  size: imageSize[size]
3963
3786
  }
3964
3787
  ),
3965
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3788
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
3966
3789
  "div",
3967
3790
  {
3968
3791
  className: cx(classes.content, {
3969
3792
  [classes.onlyProductName]: !hasColumns && !location
3970
3793
  }),
3971
3794
  children: [
3972
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3973
- import_material20.Box,
3795
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
3796
+ import_material18.Box,
3974
3797
  {
3975
3798
  className: classes.upperRow,
3976
3799
  sx: {
@@ -3979,26 +3802,26 @@ var RowProductCard = ({ children, columns, location, product, size }) => {
3979
3802
  alignItems: "center"
3980
3803
  },
3981
3804
  children: [
3982
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { children: [
3983
- location ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_material20.Typography, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
3984
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_material20.Typography, { variant: "h6", children: product.name })
3805
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { children: [
3806
+ location ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material18.Typography, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
3807
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material18.Typography, { variant: "h6", children: product.name })
3985
3808
  ] }),
3986
3809
  children
3987
3810
  ]
3988
3811
  }
3989
3812
  ),
3990
- hasColumns ? /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
3991
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_material20.Divider, { className: classes.divider }),
3992
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3993
- import_material20.Box,
3813
+ hasColumns ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
3814
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material18.Divider, { className: classes.divider }),
3815
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3816
+ import_material18.Box,
3994
3817
  {
3995
3818
  sx: {
3996
3819
  display: "flex",
3997
3820
  gap: "24px"
3998
3821
  },
3999
- children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { children: [
4000
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_material20.Typography, { className: classes.smallTitle, variant: "caption", children: column.title }),
4001
- typeof column.value === "string" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_material20.Typography, { variant: "body1", children: column.value }) : column.value
3822
+ children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { children: [
3823
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material18.Typography, { className: classes.smallTitle, variant: "caption", children: column.title }),
3824
+ typeof column.value === "string" ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material18.Typography, { variant: "body1", children: column.value }) : column.value
4002
3825
  ] }, column.title))
4003
3826
  }
4004
3827
  )
@@ -4018,48 +3841,48 @@ RowProductCard.propTypes = {
4018
3841
  /**
4019
3842
  * Possible actions or buttons that the card can have
4020
3843
  */
4021
- children: import_prop_types12.node,
3844
+ children: import_prop_types10.node,
4022
3845
  /**
4023
3846
  * Details about the product
4024
3847
  */
4025
- columns: (0, import_prop_types12.arrayOf)(
4026
- (0, import_prop_types12.shape)({
4027
- title: import_prop_types12.string,
4028
- value: (0, import_prop_types12.oneOfType)([import_prop_types12.string, import_prop_types12.node])
3848
+ columns: (0, import_prop_types10.arrayOf)(
3849
+ (0, import_prop_types10.shape)({
3850
+ title: import_prop_types10.string,
3851
+ value: (0, import_prop_types10.oneOfType)([import_prop_types10.string, import_prop_types10.node])
4029
3852
  })
4030
3853
  ),
4031
3854
  /**
4032
3855
  * Where is the product location
4033
3856
  */
4034
- location: import_prop_types12.string,
3857
+ location: import_prop_types10.string,
4035
3858
  /**
4036
3859
  * Product information
4037
3860
  */
4038
- product: (0, import_prop_types12.shape)({
4039
- image: import_prop_types12.string.isRequired,
4040
- name: import_prop_types12.string.isRequired,
4041
- status: import_prop_types12.string
3861
+ product: (0, import_prop_types10.shape)({
3862
+ image: import_prop_types10.string.isRequired,
3863
+ name: import_prop_types10.string.isRequired,
3864
+ status: import_prop_types10.string
4042
3865
  }).isRequired,
4043
- size: (0, import_prop_types12.oneOf)(["small", "medium", "large"])
3866
+ size: (0, import_prop_types10.oneOf)(["small", "medium", "large"])
4044
3867
  };
4045
3868
  var RowProductCard_default = RowProductCard;
4046
3869
 
4047
3870
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
4048
- var import_react62 = __toESM(require("react"), 1);
3871
+ var import_react61 = __toESM(require("react"), 1);
4049
3872
  var import_Box = __toESM(require("@mui/material/Box"), 1);
4050
- var import_prop_types14 = __toESM(require("prop-types"), 1);
4051
- var import_mui24 = require("tss-react/mui");
3873
+ var import_prop_types12 = __toESM(require("prop-types"), 1);
3874
+ var import_mui22 = require("tss-react/mui");
4052
3875
 
4053
3876
  // src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
4054
- var import_react61 = __toESM(require("react"), 1);
3877
+ var import_react60 = __toESM(require("react"), 1);
4055
3878
  var import_ArrowDropDown = __toESM(require("@mui/icons-material/ArrowDropDown"), 1);
4056
3879
  var import_ArrowDropUp = __toESM(require("@mui/icons-material/ArrowDropUp"), 1);
4057
3880
  var import_Search = __toESM(require("@mui/icons-material/Search"), 1);
4058
- var import_material21 = require("@mui/material");
4059
- var import_prop_types13 = __toESM(require("prop-types"), 1);
4060
- var import_mui23 = require("tss-react/mui");
4061
- var import_jsx_runtime74 = require("react/jsx-runtime");
4062
- var useStyles21 = (0, import_mui23.makeStyles)()((theme) => ({
3881
+ var import_material19 = require("@mui/material");
3882
+ var import_prop_types11 = __toESM(require("prop-types"), 1);
3883
+ var import_mui21 = require("tss-react/mui");
3884
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3885
+ var useStyles19 = (0, import_mui21.makeStyles)()((theme) => ({
4063
3886
  c_search: {
4064
3887
  height: 46,
4065
3888
  padding: "4px",
@@ -4117,8 +3940,8 @@ var SearchWithFiltersForTable = (props) => {
4117
3940
  enterPressedInSearch,
4118
3941
  searchedValue
4119
3942
  } = props;
4120
- const { classes } = useStyles21();
4121
- const [searchText, setSearchText] = import_react61.default.useState("");
3943
+ const { classes } = useStyles19();
3944
+ const [searchText, setSearchText] = import_react60.default.useState("");
4122
3945
  const handleTextChange = (e) => {
4123
3946
  const { value } = e.target;
4124
3947
  setSearchText(value);
@@ -4133,10 +3956,10 @@ var SearchWithFiltersForTable = (props) => {
4133
3956
  }
4134
3957
  };
4135
3958
  const ArrowIcon = isOpen ? import_ArrowDropUp.default : import_ArrowDropDown.default;
4136
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_material21.Paper, { className: classes.c_search, children: [
4137
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_material21.Box, { className: classes.c_search__icon, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_Search.default, { className: classes.icon, fontSize: "small" }) }),
4138
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4139
- import_material21.InputBase,
3959
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_material19.Paper, { className: classes.c_search, children: [
3960
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_material19.Box, { className: classes.c_search__icon, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_Search.default, { className: classes.icon, fontSize: "small" }) }),
3961
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3962
+ import_material19.InputBase,
4140
3963
  {
4141
3964
  className: classes.c_search__input,
4142
3965
  placeholder: "Search",
@@ -4145,22 +3968,22 @@ var SearchWithFiltersForTable = (props) => {
4145
3968
  onKeyDown: handleKeyPress
4146
3969
  }
4147
3970
  ),
4148
- showFilterButton && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
4149
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4150
- import_material21.Divider,
3971
+ showFilterButton && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
3972
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3973
+ import_material19.Divider,
4151
3974
  {
4152
3975
  className: classes.c_search__divider,
4153
3976
  orientation: "vertical"
4154
3977
  }
4155
3978
  ),
4156
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4157
- import_material21.Button,
3979
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
3980
+ import_material19.Button,
4158
3981
  {
4159
3982
  className: classes.c_search__bt_filter,
4160
3983
  onClick: handleFilterButtonClick,
4161
3984
  children: [
4162
3985
  "Filters",
4163
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ArrowIcon, { className: classes.c_search__bt_icon_filter })
3986
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ArrowIcon, { className: classes.c_search__bt_icon_filter })
4164
3987
  ]
4165
3988
  }
4166
3989
  )
@@ -4168,18 +3991,18 @@ var SearchWithFiltersForTable = (props) => {
4168
3991
  ] });
4169
3992
  };
4170
3993
  SearchWithFiltersForTable.propTypes = {
4171
- onFilterButtonClick: import_prop_types13.default.func,
4172
- isOpen: import_prop_types13.default.bool,
4173
- updateSearch: import_prop_types13.default.func,
4174
- enterPressedInSearch: import_prop_types13.default.func,
4175
- showFilterButton: import_prop_types13.default.bool,
4176
- searchedValue: import_prop_types13.default.string
3994
+ onFilterButtonClick: import_prop_types11.default.func,
3995
+ isOpen: import_prop_types11.default.bool,
3996
+ updateSearch: import_prop_types11.default.func,
3997
+ enterPressedInSearch: import_prop_types11.default.func,
3998
+ showFilterButton: import_prop_types11.default.bool,
3999
+ searchedValue: import_prop_types11.default.string
4177
4000
  };
4178
- var SearchWithFiltersForTable_default = import_react61.default.memo(SearchWithFiltersForTable);
4001
+ var SearchWithFiltersForTable_default = import_react60.default.memo(SearchWithFiltersForTable);
4179
4002
 
4180
4003
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
4181
- var import_jsx_runtime75 = require("react/jsx-runtime");
4182
- var useStyles22 = (0, import_mui24.makeStyles)()((theme) => ({
4004
+ var import_jsx_runtime73 = require("react/jsx-runtime");
4005
+ var useStyles20 = (0, import_mui22.makeStyles)()((theme) => ({
4183
4006
  container: {
4184
4007
  display: "flex",
4185
4008
  alignItems: "center",
@@ -4209,11 +4032,11 @@ var SearchAndFilterHeaderForTable = (props) => {
4209
4032
  button,
4210
4033
  searchedValue
4211
4034
  } = props;
4212
- const { classes } = useStyles22();
4213
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_Box.default, { className: classes.container, children: [
4214
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_Box.default, { className: classes.leftSection, children: [
4215
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(AppLabel_default, { appName }),
4216
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4035
+ const { classes } = useStyles20();
4036
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_Box.default, { className: classes.container, children: [
4037
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_Box.default, { className: classes.leftSection, children: [
4038
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(AppLabel_default, { appName }),
4039
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4217
4040
  SearchWithFiltersForTable_default,
4218
4041
  {
4219
4042
  onFilterButtonClick,
@@ -4224,41 +4047,41 @@ var SearchAndFilterHeaderForTable = (props) => {
4224
4047
  searchedValue
4225
4048
  }
4226
4049
  ),
4227
- copy && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4050
+ copy && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4228
4051
  import_Box.default,
4229
4052
  {
4230
4053
  sx: {
4231
4054
  margin: 0.5
4232
4055
  },
4233
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(OutlinedButton_default, { copy })
4056
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(OutlinedButton_default, { copy })
4234
4057
  }
4235
4058
  )
4236
4059
  ] }),
4237
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_Box.default, { children: button })
4060
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_Box.default, { children: button })
4238
4061
  ] });
4239
4062
  };
4240
4063
  SearchAndFilterHeaderForTable.propTypes = {
4241
- appName: import_prop_types14.default.string,
4242
- button: import_prop_types14.default.node,
4243
- copy: import_prop_types14.default.string,
4244
- enterPressedInSearch: import_prop_types14.default.func,
4245
- isOpen: import_prop_types14.default.bool,
4246
- onFilterButtonClick: import_prop_types14.default.func,
4247
- searchedValue: import_prop_types14.default.string,
4248
- showFilterButton: import_prop_types14.default.bool,
4249
- updateSearch: import_prop_types14.default.func
4064
+ appName: import_prop_types12.default.string,
4065
+ button: import_prop_types12.default.node,
4066
+ copy: import_prop_types12.default.string,
4067
+ enterPressedInSearch: import_prop_types12.default.func,
4068
+ isOpen: import_prop_types12.default.bool,
4069
+ onFilterButtonClick: import_prop_types12.default.func,
4070
+ searchedValue: import_prop_types12.default.string,
4071
+ showFilterButton: import_prop_types12.default.bool,
4072
+ updateSearch: import_prop_types12.default.func
4250
4073
  };
4251
- var SearchAndFilterHeaderForTable_default = import_react62.default.memo(SearchAndFilterHeaderForTable);
4074
+ var SearchAndFilterHeaderForTable_default = import_react61.default.memo(SearchAndFilterHeaderForTable);
4252
4075
 
4253
4076
  // src/components/SearchWithFilters/SearchWithFilters.tsx
4254
- var import_react63 = __toESM(require("react"), 1);
4077
+ var import_react62 = __toESM(require("react"), 1);
4255
4078
  var import_ArrowDropDown2 = __toESM(require("@mui/icons-material/ArrowDropDown"), 1);
4256
4079
  var import_ArrowDropUp2 = __toESM(require("@mui/icons-material/ArrowDropUp"), 1);
4257
4080
  var import_Search2 = __toESM(require("@mui/icons-material/Search"), 1);
4258
- var import_material22 = require("@mui/material");
4259
- var import_mui25 = require("tss-react/mui");
4260
- var import_jsx_runtime76 = require("react/jsx-runtime");
4261
- var useStyles23 = (0, import_mui25.makeStyles)()((theme) => ({
4081
+ var import_material20 = require("@mui/material");
4082
+ var import_mui23 = require("tss-react/mui");
4083
+ var import_jsx_runtime74 = require("react/jsx-runtime");
4084
+ var useStyles21 = (0, import_mui23.makeStyles)()((theme) => ({
4262
4085
  searchContainer: {
4263
4086
  height: 46,
4264
4087
  padding: "4px",
@@ -4302,8 +4125,8 @@ var SearchWithFilters = ({
4302
4125
  },
4303
4126
  disabled = false
4304
4127
  }) => {
4305
- const [searchText, setSearchText] = (0, import_react63.useState)(searchValue);
4306
- const { classes } = useStyles23();
4128
+ const [searchText, setSearchText] = (0, import_react62.useState)(searchValue);
4129
+ const { classes } = useStyles21();
4307
4130
  const handleTextChange = (e) => {
4308
4131
  const { value } = e.target;
4309
4132
  setSearchText(value);
@@ -4311,16 +4134,16 @@ var SearchWithFilters = ({
4311
4134
  };
4312
4135
  const handleKeyDown = (e) => {
4313
4136
  if (e.key === "Enter") {
4314
- enterPressedInSearch == null ? void 0 : enterPressedInSearch();
4137
+ enterPressedInSearch?.();
4315
4138
  }
4316
4139
  };
4317
- (0, import_react63.useEffect)(() => {
4140
+ (0, import_react62.useEffect)(() => {
4318
4141
  setSearchText(searchValue);
4319
4142
  }, [searchValue]);
4320
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_material22.Paper, { className: classes.searchContainer, children: [
4321
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_Search2.default, { className: classes.icon, fontSize: "small" }),
4322
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4323
- import_material22.InputBase,
4143
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_material20.Paper, { className: classes.searchContainer, children: [
4144
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_Search2.default, { className: classes.icon, fontSize: "small" }),
4145
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4146
+ import_material20.InputBase,
4324
4147
  {
4325
4148
  className: classes.input,
4326
4149
  placeholder: "Search",
@@ -4331,29 +4154,29 @@ var SearchWithFilters = ({
4331
4154
  inputProps: { "aria-label": "search" }
4332
4155
  }
4333
4156
  ),
4334
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_material22.Divider, { className: classes.divider, orientation: "vertical" }),
4335
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
4336
- import_material22.Button,
4157
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_material20.Divider, { className: classes.divider, orientation: "vertical" }),
4158
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4159
+ import_material20.Button,
4337
4160
  {
4338
4161
  className: classes.filterButton,
4339
4162
  onClick: filterClick,
4340
4163
  disabled,
4341
4164
  children: [
4342
4165
  "Filters",
4343
- showFilters ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_ArrowDropUp2.default, {}) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_ArrowDropDown2.default, {})
4166
+ showFilters ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_ArrowDropUp2.default, {}) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_ArrowDropDown2.default, {})
4344
4167
  ]
4345
4168
  }
4346
4169
  )
4347
4170
  ] });
4348
4171
  };
4349
- var SearchWithFilters_default = import_react63.default.memo(SearchWithFilters);
4172
+ var SearchWithFilters_default = import_react62.default.memo(SearchWithFilters);
4350
4173
 
4351
4174
  // src/components/SectionName/SectionName.tsx
4352
4175
  var import_Info = __toESM(require("@mui/icons-material/Info"), 1);
4353
- var import_material23 = require("@mui/material");
4354
- var import_mui26 = require("tss-react/mui");
4355
- var import_jsx_runtime77 = require("react/jsx-runtime");
4356
- var useStyles24 = (0, import_mui26.makeStyles)()(() => ({
4176
+ var import_material21 = require("@mui/material");
4177
+ var import_mui24 = require("tss-react/mui");
4178
+ var import_jsx_runtime75 = require("react/jsx-runtime");
4179
+ var useStyles22 = (0, import_mui24.makeStyles)()(() => ({
4357
4180
  container: {
4358
4181
  display: "flex",
4359
4182
  alignItems: "flex-end",
@@ -4387,11 +4210,11 @@ var SectionName = ({
4387
4210
  buttonText,
4388
4211
  buttonDisabled
4389
4212
  }) => {
4390
- const { classes } = useStyles24();
4391
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_material23.Box, { className: classes.container, children: [
4392
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_material23.Box, { className: classes.titleContainer, children: [
4393
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4394
- import_material23.Typography,
4213
+ const { classes } = useStyles22();
4214
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_material21.Box, { className: classes.container, children: [
4215
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_material21.Box, { className: classes.titleContainer, children: [
4216
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4217
+ import_material21.Typography,
4395
4218
  {
4396
4219
  variant: "h5",
4397
4220
  component: "a",
@@ -4400,7 +4223,7 @@ var SectionName = ({
4400
4223
  children: name
4401
4224
  }
4402
4225
  ),
4403
- tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_material23.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4226
+ tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_material21.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4404
4227
  import_Info.default,
4405
4228
  {
4406
4229
  fontSize: "small",
@@ -4409,7 +4232,7 @@ var SectionName = ({
4409
4232
  }
4410
4233
  ) }) : null
4411
4234
  ] }),
4412
- buttonText ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4235
+ buttonText ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4413
4236
  ExtendedButton_default,
4414
4237
  {
4415
4238
  type: "add",
@@ -4427,14 +4250,14 @@ var SectionName = ({
4427
4250
  var SectionName_default = SectionName;
4428
4251
 
4429
4252
  // src/components/Shift/Shift.tsx
4430
- var import_material24 = require("@mui/material");
4431
- var import_prop_types15 = require("prop-types");
4432
- var import_mui27 = require("tss-react/mui");
4253
+ var import_material22 = require("@mui/material");
4254
+ var import_prop_types13 = require("prop-types");
4255
+ var import_mui25 = require("tss-react/mui");
4433
4256
 
4434
4257
  // src/resources/icons/DayIcon.js
4435
- var import_react64 = __toESM(require("react"), 1);
4436
- var import_jsx_runtime78 = require("react/jsx-runtime");
4437
- var DayIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4258
+ var import_react63 = __toESM(require("react"), 1);
4259
+ var import_jsx_runtime76 = require("react/jsx-runtime");
4260
+ var DayIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4438
4261
  "svg",
4439
4262
  {
4440
4263
  fill: "none",
@@ -4443,7 +4266,7 @@ var DayIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4443
4266
  width: 22,
4444
4267
  xmlns: "http://www.w3.org/2000/svg",
4445
4268
  ...props,
4446
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4269
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4447
4270
  "path",
4448
4271
  {
4449
4272
  d: "M2.55 18.09L3.96 19.5L5.76 17.71L4.34 16.29M11 5C7.69 5 5 7.69 5 11C5 14.31 7.69 17 11 17C14.31 17 17 14.31 17 11C17 7.68 14.31 5 11 5ZM19 12H22V10H19M16.24 17.71L18.04 19.5L19.45 18.09L17.66 16.29M19.45 4L18.04 2.6L16.24 4.39L17.66 5.81M12 0H10V3H12M5.76 4.39L3.96 2.6L2.55 4L4.34 5.81L5.76 4.39ZM0 12H3V10H0M12 19H10V22H12",
@@ -4455,9 +4278,9 @@ var DayIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4455
4278
  var DayIcon_default = DayIcon;
4456
4279
 
4457
4280
  // src/resources/icons/NightIcon.js
4458
- var import_react65 = __toESM(require("react"), 1);
4459
- var import_jsx_runtime79 = require("react/jsx-runtime");
4460
- var NightIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4281
+ var import_react64 = __toESM(require("react"), 1);
4282
+ var import_jsx_runtime77 = require("react/jsx-runtime");
4283
+ var NightIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4461
4284
  "svg",
4462
4285
  {
4463
4286
  fill: "none",
@@ -4466,7 +4289,7 @@ var NightIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4466
4289
  width: "14",
4467
4290
  xmlns: "http://www.w3.org/2000/svg",
4468
4291
  ...props,
4469
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4292
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4470
4293
  "path",
4471
4294
  {
4472
4295
  d: "M0.92627 9.99963C0.926174 11.5698 1.29582 13.1179 2.00528 14.5186C2.71474 15.9194 3.74407 17.1334 5.00994 18.0623C6.27582 18.9913 7.74265 19.6091 9.29169 19.8657C10.8407 20.1224 12.4284 20.0107 13.9263 19.5396C11.8959 18.9016 10.122 17.6323 8.86268 15.9165C7.60338 14.2008 6.92434 12.1279 6.92434 9.99963C6.92434 7.87132 7.60338 5.79851 8.86268 4.08274C10.122 2.36696 11.8959 1.09772 13.9263 0.459633C12.4284 -0.0114145 10.8407 -0.123133 9.29169 0.133521C7.74265 0.390176 6.27582 1.00799 5.00994 1.93695C3.74407 2.8659 2.71474 4.07989 2.00528 5.48063C1.29582 6.88136 0.926174 8.42948 0.92627 9.99963Z",
@@ -4478,12 +4301,12 @@ var NightIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4478
4301
  var NightIcon_default = NightIcon;
4479
4302
 
4480
4303
  // src/components/Shift/Shift.tsx
4481
- var import_jsx_runtime80 = require("react/jsx-runtime");
4304
+ var import_jsx_runtime78 = require("react/jsx-runtime");
4482
4305
  var ShiftEnum = {
4483
4306
  DAY: "Day",
4484
4307
  NIGHT: "Night"
4485
4308
  };
4486
- var useStyles25 = (0, import_mui27.makeStyles)()(() => ({
4309
+ var useStyles23 = (0, import_mui25.makeStyles)()(() => ({
4487
4310
  shiftName: {
4488
4311
  textTransform: "uppercase",
4489
4312
  fontWeight: 600
@@ -4491,12 +4314,12 @@ var useStyles25 = (0, import_mui27.makeStyles)()(() => ({
4491
4314
  }));
4492
4315
  var Shift = ({ shift }) => {
4493
4316
  const shiftIcon = {
4494
- [ShiftEnum.DAY]: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DayIcon_default, { "data-testid": "shift-day" }),
4495
- [ShiftEnum.NIGHT]: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(NightIcon_default, { "data-testid": "shift-night" })
4317
+ [ShiftEnum.DAY]: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(DayIcon_default, { "data-testid": "shift-day" }),
4318
+ [ShiftEnum.NIGHT]: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(NightIcon_default, { "data-testid": "shift-night" })
4496
4319
  };
4497
- const { classes } = useStyles25();
4498
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
4499
- import_material24.Box,
4320
+ const { classes } = useStyles23();
4321
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
4322
+ import_material22.Box,
4500
4323
  {
4501
4324
  sx: {
4502
4325
  display: "flex",
@@ -4505,30 +4328,30 @@ var Shift = ({ shift }) => {
4505
4328
  },
4506
4329
  children: [
4507
4330
  shiftIcon[shift],
4508
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_material24.Typography, { children: [
4509
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("span", { className: classes.shiftName, children: [
4331
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_material22.Typography, { children: [
4332
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: classes.shiftName, children: [
4510
4333
  shift,
4511
4334
  " "
4512
4335
  ] }),
4513
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { children: "Shift" })
4336
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: "Shift" })
4514
4337
  ] })
4515
4338
  ]
4516
4339
  }
4517
4340
  );
4518
4341
  };
4519
4342
  Shift.propTypes = {
4520
- shift: (0, import_prop_types15.oneOf)(Object.values(ShiftEnum))
4343
+ shift: (0, import_prop_types13.oneOf)(Object.values(ShiftEnum))
4521
4344
  };
4522
4345
  var Shift_default = Shift;
4523
4346
 
4524
4347
  // src/components/surfaces/FixedFooter/index.js
4525
- var import_react66 = __toESM(require("react"), 1);
4526
- var import_material25 = require("@mui/material");
4527
- var import_prop_types16 = __toESM(require("prop-types"), 1);
4528
- var import_mui28 = require("tss-react/mui");
4529
- var import_jsx_runtime81 = require("react/jsx-runtime");
4348
+ var import_react65 = __toESM(require("react"), 1);
4349
+ var import_material23 = require("@mui/material");
4350
+ var import_prop_types14 = __toESM(require("prop-types"), 1);
4351
+ var import_mui26 = require("tss-react/mui");
4352
+ var import_jsx_runtime79 = require("react/jsx-runtime");
4530
4353
  var footerHeight = "64px";
4531
- var useStyles26 = (0, import_mui28.makeStyles)()((theme) => ({
4354
+ var useStyles24 = (0, import_mui26.makeStyles)()((theme) => ({
4532
4355
  root: {
4533
4356
  position: "fixed",
4534
4357
  bottom: 0,
@@ -4546,11 +4369,11 @@ var useStyles26 = (0, import_mui28.makeStyles)()((theme) => ({
4546
4369
  }
4547
4370
  }));
4548
4371
  var FixedFooter = ({ justifyContent, children }) => {
4549
- const { classes } = useStyles26();
4550
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_material25.Box, { children: [
4551
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material25.Box, { className: classes.fixedOffset }),
4552
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
4553
- import_material25.Box,
4372
+ const { classes } = useStyles24();
4373
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material23.Box, { children: [
4374
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material23.Box, { className: classes.fixedOffset }),
4375
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4376
+ import_material23.Box,
4554
4377
  {
4555
4378
  className: classes.root,
4556
4379
  sx: {
@@ -4562,21 +4385,21 @@ var FixedFooter = ({ justifyContent, children }) => {
4562
4385
  ] });
4563
4386
  };
4564
4387
  FixedFooter.propTypes = {
4565
- children: import_prop_types16.default.node.isRequired,
4566
- justifyContent: import_prop_types16.default.string
4388
+ children: import_prop_types14.default.node.isRequired,
4389
+ justifyContent: import_prop_types14.default.string
4567
4390
  };
4568
- var FixedFooter_default = import_react66.default.memo(FixedFooter);
4391
+ var FixedFooter_default = import_react65.default.memo(FixedFooter);
4569
4392
 
4570
4393
  // src/components/Table/SmartTableHeader.js
4571
- var import_react67 = __toESM(require("react"), 1);
4394
+ var import_react66 = __toESM(require("react"), 1);
4572
4395
  var import_TableCell = __toESM(require("@mui/material/TableCell"), 1);
4573
4396
  var import_TableHead = __toESM(require("@mui/material/TableHead"), 1);
4574
4397
  var import_TableRow = __toESM(require("@mui/material/TableRow"), 1);
4575
4398
  var import_TableSortLabel = __toESM(require("@mui/material/TableSortLabel"), 1);
4576
- var import_prop_types17 = __toESM(require("prop-types"), 1);
4577
- var import_mui29 = require("tss-react/mui");
4578
- var import_jsx_runtime82 = require("react/jsx-runtime");
4579
- var useStyles27 = (0, import_mui29.makeStyles)()(() => ({
4399
+ var import_prop_types15 = __toESM(require("prop-types"), 1);
4400
+ var import_mui27 = require("tss-react/mui");
4401
+ var import_jsx_runtime80 = require("react/jsx-runtime");
4402
+ var useStyles25 = (0, import_mui27.makeStyles)()(() => ({
4580
4403
  root: {
4581
4404
  backgroundColor: colors.background,
4582
4405
  "& .MuiTableSortLabel-root": {
@@ -4604,18 +4427,18 @@ var useStyles27 = (0, import_mui29.makeStyles)()(() => ({
4604
4427
  }
4605
4428
  }));
4606
4429
  var SmartTableHeader = (props) => {
4607
- const { classes } = useStyles27();
4430
+ const { classes } = useStyles25();
4608
4431
  const { order, orderBy, onRequestSort } = props;
4609
4432
  const createSortHandler = (property) => (event) => {
4610
4433
  onRequestSort(event, property);
4611
4434
  };
4612
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_TableHead.default, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_TableRow.default, { children: props.headCells.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4435
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_TableHead.default, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_TableRow.default, { children: props.headCells.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4613
4436
  import_TableCell.default,
4614
4437
  {
4615
4438
  className: classes.containerTh,
4616
4439
  align: "left",
4617
4440
  sortDirection: orderBy === headCell.id ? order : false,
4618
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
4441
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
4619
4442
  import_TableSortLabel.default,
4620
4443
  {
4621
4444
  active: orderBy === headCell.id,
@@ -4623,7 +4446,7 @@ var SmartTableHeader = (props) => {
4623
4446
  onClick: createSortHandler(headCell.id),
4624
4447
  children: [
4625
4448
  headCell.label,
4626
- orderBy === headCell.id ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
4449
+ orderBy === headCell.id ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
4627
4450
  ]
4628
4451
  }
4629
4452
  )
@@ -4632,23 +4455,23 @@ var SmartTableHeader = (props) => {
4632
4455
  )) }) });
4633
4456
  };
4634
4457
  SmartTableHeader.propTypes = {
4635
- order: import_prop_types17.default.string,
4636
- orderBy: import_prop_types17.default.string,
4637
- onRequestSort: import_prop_types17.default.func,
4638
- headCells: import_prop_types17.default.any
4458
+ order: import_prop_types15.default.string,
4459
+ orderBy: import_prop_types15.default.string,
4460
+ onRequestSort: import_prop_types15.default.func,
4461
+ headCells: import_prop_types15.default.any
4639
4462
  };
4640
- var SmartTableHeader_default = import_react67.default.memo(SmartTableHeader);
4463
+ var SmartTableHeader_default = import_react66.default.memo(SmartTableHeader);
4641
4464
 
4642
4465
  // src/components/Table/TableDesktop.tsx
4643
- var import_react68 = require("react");
4644
- var import_material27 = require("@mui/material");
4645
- var import_mui31 = require("tss-react/mui");
4466
+ var import_react67 = require("react");
4467
+ var import_material25 = require("@mui/material");
4468
+ var import_mui29 = require("tss-react/mui");
4646
4469
 
4647
4470
  // src/components/Table/TableEmptyResult.tsx
4648
- var import_material26 = require("@mui/material");
4649
- var import_mui30 = require("tss-react/mui");
4650
- var import_jsx_runtime83 = require("react/jsx-runtime");
4651
- var useStyles28 = (0, import_mui30.makeStyles)()(() => ({
4471
+ var import_material24 = require("@mui/material");
4472
+ var import_mui28 = require("tss-react/mui");
4473
+ var import_jsx_runtime81 = require("react/jsx-runtime");
4474
+ var useStyles26 = (0, import_mui28.makeStyles)()(() => ({
4652
4475
  tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
4653
4476
  tableCellDefault: { padding: 24 }
4654
4477
  }));
@@ -4657,12 +4480,12 @@ var TableEmptyResult = ({
4657
4480
  handleClickOnClearFiltersButton = () => {
4658
4481
  }
4659
4482
  }) => {
4660
- const { classes } = useStyles28();
4661
- return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_material26.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_material26.TableCell, { className: classes.tableCellIcon, colSpan: 8, align: "center", children: [
4662
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(EmptyGlassIcon_default, {}),
4663
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_material26.Typography, { variant: "h6", children: "No results found." }),
4664
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_material26.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
4665
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4483
+ const { classes } = useStyles26();
4484
+ return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material24.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_material24.TableCell, { className: classes.tableCellIcon, colSpan: 8, align: "center", children: [
4485
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(EmptyGlassIcon_default, {}),
4486
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material24.Typography, { variant: "h6", children: "No results found." }),
4487
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material24.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
4488
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
4666
4489
  FilledButton_default,
4667
4490
  {
4668
4491
  copy: "Search",
@@ -4671,8 +4494,8 @@ var TableEmptyResult = ({
4671
4494
  onClick: handleClickOnClearFiltersButton
4672
4495
  }
4673
4496
  )
4674
- ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_material26.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4675
- import_material26.TableCell,
4497
+ ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material24.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
4498
+ import_material24.TableCell,
4676
4499
  {
4677
4500
  className: classes.tableCellDefault,
4678
4501
  colSpan: 8,
@@ -4684,8 +4507,8 @@ var TableEmptyResult = ({
4684
4507
  var TableEmptyResult_default = TableEmptyResult;
4685
4508
 
4686
4509
  // src/components/Table/TableDesktop.tsx
4687
- var import_jsx_runtime84 = require("react/jsx-runtime");
4688
- var useStyles29 = (0, import_mui31.makeStyles)()(() => ({
4510
+ var import_jsx_runtime82 = require("react/jsx-runtime");
4511
+ var useStyles27 = (0, import_mui29.makeStyles)()(() => ({
4689
4512
  root: {
4690
4513
  justifyContent: "space-between",
4691
4514
  display: "flex",
@@ -4730,14 +4553,14 @@ var TableDesktop = ({
4730
4553
  deleteItem,
4731
4554
  keyField
4732
4555
  }) => {
4733
- const [order, setOrder] = (0, import_react68.useState)(
4734
- (appliedFilters == null ? void 0 : appliedFilters.sortDir) || "desc"
4556
+ const [order, setOrder] = (0, import_react67.useState)(
4557
+ appliedFilters?.sortDir || "desc"
4735
4558
  );
4736
- const [orderBy, setOrderBy] = (0, import_react68.useState)(
4737
- (appliedFilters == null ? void 0 : appliedFilters.sortField) || "delivery_date"
4559
+ const [orderBy, setOrderBy] = (0, import_react67.useState)(
4560
+ appliedFilters?.sortField || "delivery_date"
4738
4561
  );
4739
- const [page] = (0, import_react68.useState)(0);
4740
- const { classes } = useStyles29();
4562
+ const [page] = (0, import_react67.useState)(0);
4563
+ const { classes } = useStyles27();
4741
4564
  const rowHeight = 56;
4742
4565
  const handleRequestSort = (event, property) => {
4743
4566
  const isAsc = orderBy === property && order === "asc";
@@ -4747,8 +4570,8 @@ var TableDesktop = ({
4747
4570
  updateSort(property, orderDir);
4748
4571
  };
4749
4572
  const emptyRows = rowsPerPage - data.length;
4750
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_material27.Paper, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { children: [...Array(Math.floor(rowsPerPage))].map(() => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4751
- import_material27.Skeleton,
4573
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_material25.Paper, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: [...Array(Math.floor(rowsPerPage))].map(() => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4574
+ import_material25.Skeleton,
4752
4575
  {
4753
4576
  animation: "pulse",
4754
4577
  style: { margin: "8px", opacity: 0.4 },
@@ -4756,15 +4579,15 @@ var TableDesktop = ({
4756
4579
  height: rowHeight
4757
4580
  },
4758
4581
  Math.random()
4759
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
4760
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_material27.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
4761
- import_material27.Table,
4582
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
4583
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_material25.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
4584
+ import_material25.Table,
4762
4585
  {
4763
4586
  "aria-labelledby": "tableTitle",
4764
4587
  "aria-label": "sticky table",
4765
4588
  stickyHeader: true,
4766
4589
  children: [
4767
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4590
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4768
4591
  SmartTableHeader_default,
4769
4592
  {
4770
4593
  headCells,
@@ -4773,15 +4596,15 @@ var TableDesktop = ({
4773
4596
  onRequestSort: handleRequestSort
4774
4597
  }
4775
4598
  ),
4776
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_material27.TableBody, { children: [
4777
- stableSort(data, getSorting(order, orderBy)).slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4599
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_material25.TableBody, { children: [
4600
+ stableSort(data, getSorting(order, orderBy)).slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4778
4601
  RenderItem,
4779
4602
  {
4780
4603
  ...{ ...item, index, deleteItem }
4781
4604
  },
4782
4605
  item[keyField]
4783
4606
  )),
4784
- rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4607
+ rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4785
4608
  TableEmptyResult_default,
4786
4609
  {
4787
4610
  showClearFilterButton,
@@ -4798,13 +4621,13 @@ var TableDesktop = ({
4798
4621
  var TableDesktop_default = TableDesktop;
4799
4622
 
4800
4623
  // src/components/TableHeader/TableHeader.tsx
4801
- var import_react69 = require("react");
4624
+ var import_react68 = require("react");
4802
4625
  var import_ImportExport = __toESM(require("@mui/icons-material/ImportExport"), 1);
4803
- var import_material28 = require("@mui/material");
4804
- var import_prop_types18 = require("prop-types");
4805
- var import_mui32 = require("tss-react/mui");
4806
- var import_jsx_runtime85 = require("react/jsx-runtime");
4807
- var useStyles30 = (0, import_mui32.makeStyles)()(() => ({
4626
+ var import_material26 = require("@mui/material");
4627
+ var import_prop_types16 = require("prop-types");
4628
+ var import_mui30 = require("tss-react/mui");
4629
+ var import_jsx_runtime83 = require("react/jsx-runtime");
4630
+ var useStyles28 = (0, import_mui30.makeStyles)()(() => ({
4808
4631
  sortLabel: {
4809
4632
  "& .MuiTableSortLabel-icon": {
4810
4633
  opacity: 1
@@ -4812,9 +4635,9 @@ var useStyles30 = (0, import_mui32.makeStyles)()(() => ({
4812
4635
  }
4813
4636
  }));
4814
4637
  var TableHeader = ({ cells, onSort }) => {
4815
- const [sortableCells, setSortableCells] = (0, import_react69.useState)([]);
4816
- const { classes } = useStyles30();
4817
- (0, import_react69.useEffect)(() => {
4638
+ const [sortableCells, setSortableCells] = (0, import_react68.useState)([]);
4639
+ const { classes } = useStyles28();
4640
+ (0, import_react68.useEffect)(() => {
4818
4641
  setSortableCells(cells);
4819
4642
  }, []);
4820
4643
  const getNewSortDirection = (direction) => {
@@ -4827,7 +4650,7 @@ var TableHeader = ({ cells, onSort }) => {
4827
4650
  return "";
4828
4651
  };
4829
4652
  const handleSortClick = (sortedCell) => {
4830
- const newDirection = getNewSortDirection(sortedCell == null ? void 0 : sortedCell.direction);
4653
+ const newDirection = getNewSortDirection(sortedCell?.direction);
4831
4654
  if (onSort) {
4832
4655
  onSort({
4833
4656
  direction: newDirection,
@@ -4848,11 +4671,11 @@ var TableHeader = ({ cells, onSort }) => {
4848
4671
  });
4849
4672
  setSortableCells(sortedCells);
4850
4673
  };
4851
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_material28.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_material28.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_material28.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4852
- import_material28.TableSortLabel,
4674
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_material26.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_material26.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_material26.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4675
+ import_material26.TableSortLabel,
4853
4676
  {
4854
4677
  className: classes.sortLabel,
4855
- direction: (cell == null ? void 0 : cell.direction) || "asc",
4678
+ direction: cell?.direction || "asc",
4856
4679
  IconComponent: import_ImportExport.default,
4857
4680
  onClick: () => handleSortClick(cell),
4858
4681
  children: cell.label
@@ -4863,17 +4686,87 @@ TableHeader.defaultProps = {
4863
4686
  onSort: null
4864
4687
  };
4865
4688
  TableHeader.propTypes = {
4866
- cells: (0, import_prop_types18.arrayOf)(
4867
- (0, import_prop_types18.shape)({
4868
- direction: (0, import_prop_types18.oneOf)(["asc", "desc", ""]),
4869
- isSortable: import_prop_types18.bool,
4870
- label: import_prop_types18.string,
4871
- name: import_prop_types18.string
4689
+ cells: (0, import_prop_types16.arrayOf)(
4690
+ (0, import_prop_types16.shape)({
4691
+ direction: (0, import_prop_types16.oneOf)(["asc", "desc", ""]),
4692
+ isSortable: import_prop_types16.bool,
4693
+ label: import_prop_types16.string,
4694
+ name: import_prop_types16.string
4872
4695
  })
4873
4696
  ).isRequired,
4874
- onSort: import_prop_types18.func
4697
+ onSort: import_prop_types16.func
4698
+ };
4699
+ var TableHeader_default = (0, import_react68.memo)(TableHeader);
4700
+
4701
+ // src/components/TheToolbar/TheToolbar.tsx
4702
+ var import_react69 = __toESM(require("react"), 1);
4703
+ var import_material27 = require("@mui/material");
4704
+ var import_mui31 = require("tss-react/mui");
4705
+ var import_jsx_runtime84 = require("react/jsx-runtime");
4706
+ var useStyles29 = (0, import_mui31.makeStyles)()((theme) => ({
4707
+ menuButton: {
4708
+ color: theme.palette.primary.contrastText
4709
+ },
4710
+ searchNatoora: {
4711
+ width: "100%"
4712
+ },
4713
+ searchIcon: {
4714
+ opacity: ".5"
4715
+ },
4716
+ inputRoot: {
4717
+ color: "inherit"
4718
+ },
4719
+ inputInput: {
4720
+ transition: theme.transitions.create("width"),
4721
+ width: "100%"
4722
+ },
4723
+ topBar: {
4724
+ display: "flex",
4725
+ gap: theme.spacing(1),
4726
+ backgroundColor: colors.topBar
4727
+ },
4728
+ drawer: {
4729
+ backgroundColor: "black"
4730
+ },
4731
+ drawerItem: {
4732
+ maxWidth: "300px",
4733
+ width: "80vw"
4734
+ },
4735
+ offset: theme.mixins.toolbar
4736
+ }));
4737
+ var TheToolbar = ({
4738
+ imageLogoDarkSmall,
4739
+ imageLogoLightSmall,
4740
+ handleOpen,
4741
+ LeftDrawer: LeftDrawer2
4742
+ }) => {
4743
+ const { classes } = useStyles29();
4744
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_material27.Box, { children: [
4745
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_material27.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_material27.Toolbar, { className: classes.topBar, children: [
4746
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4747
+ RoundButton_default,
4748
+ {
4749
+ className: classes.menuButton,
4750
+ icon: "menu",
4751
+ noStrokes: true,
4752
+ onClick: handleOpen
4753
+ }
4754
+ ),
4755
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4756
+ CompanyLogo_default,
4757
+ {
4758
+ size: "small",
4759
+ color: "light",
4760
+ imageLogoDarkSmall,
4761
+ imageLogoLightSmall
4762
+ }
4763
+ )
4764
+ ] }) }),
4765
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_material27.Box, { className: classes.offset }),
4766
+ LeftDrawer2
4767
+ ] });
4875
4768
  };
4876
- var TableHeader_default = (0, import_react69.memo)(TableHeader);
4769
+ var TheToolbar_default = import_react69.default.memo(TheToolbar);
4877
4770
  // Annotate the CommonJS export names for ESM import in node:
4878
4771
  0 && (module.exports = {
4879
4772
  AlertDialog,
@@ -4886,7 +4779,6 @@ var TableHeader_default = (0, import_react69.memo)(TableHeader);
4886
4779
  Date,
4887
4780
  DeleteSubstitutionDialogContent,
4888
4781
  DeleteUserDialogContent,
4889
- DesktopContainer,
4890
4782
  ExtendedButton,
4891
4783
  FilledButton,
4892
4784
  FilledButtonLg,