@natoora-libs/core 0.0.33 → 0.0.35

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.
@@ -5,7 +5,7 @@ import {
5
5
  Loading_default,
6
6
  colors,
7
7
  isDarkModeEnabled
8
- } from "../chunk-RHG2EMI3.js";
8
+ } from "../chunk-TZJCFK33.js";
9
9
 
10
10
  // src/components/alerts/AlertDialog.tsx
11
11
  import { Box, Button, Dialog, Typography } from "@mui/material";
@@ -191,7 +191,7 @@ var BackHeader_default = BackHeader;
191
191
 
192
192
  // src/components/BottomBar/BottomBar.tsx
193
193
  import { Box as Box5, Paper } from "@mui/material";
194
- import { bool as bool2, func as func2, node, string as string2 } from "prop-types";
194
+ import { bool, func, node, string } from "prop-types";
195
195
  import { makeStyles as makeStyles5 } from "tss-react/mui";
196
196
 
197
197
  // src/components/Buttons/ExtendedButton/ExtendedButton.tsx
@@ -214,7 +214,6 @@ import AppsIcon from "@mui/icons-material/Apps";
214
214
  import { Box as Box4 } from "@mui/material";
215
215
  import Button4 from "@mui/material/Button";
216
216
  import Tooltip from "@mui/material/Tooltip";
217
- import { bool, func, oneOf, string } from "prop-types";
218
217
  import { makeStyles as makeStyles4 } from "tss-react/mui";
219
218
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
220
219
  var useStyles4 = makeStyles4()((theme) => ({
@@ -278,18 +277,18 @@ var useStyles4 = makeStyles4()((theme) => ({
278
277
  }
279
278
  }));
280
279
  var ExtendedButton = ({
281
- buttonType,
280
+ buttonType = "button",
282
281
  className,
283
- color,
282
+ color = "default",
284
283
  copy,
285
- disabled,
286
- href,
287
- onClick,
288
- subcopy,
289
- type,
290
- variant,
291
- component,
292
- tooltip
284
+ disabled = false,
285
+ href = "",
286
+ onClick = void 0,
287
+ subcopy = void 0,
288
+ type = void 0,
289
+ variant = "outlined",
290
+ component = "button",
291
+ tooltip = ""
293
292
  }) => {
294
293
  const { classes, cx } = useStyles4();
295
294
  const icons2 = {
@@ -307,12 +306,13 @@ var ExtendedButton = ({
307
306
  download: GetApp,
308
307
  publish: Publish
309
308
  };
310
- const IconComponent = icons2[type];
309
+ const muiColor = color === "noOutline" || color === "default" ? void 0 : color;
310
+ const IconComponent = type ? icons2[type] : null;
311
311
  return /* @__PURE__ */ jsx5(Tooltip, { title: tooltip, children: /* @__PURE__ */ jsx5(Box4, { children: /* @__PURE__ */ jsxs4(
312
312
  Button4,
313
313
  {
314
314
  className: cx(classes[color], className),
315
- color: color === "noOutline" ? "default" : color,
315
+ color: muiColor,
316
316
  component,
317
317
  "data-testid": copy ? `extended-button-${copy.toLowerCase()}` : "extended-button",
318
318
  disabled,
@@ -321,7 +321,7 @@ var ExtendedButton = ({
321
321
  type: buttonType,
322
322
  variant,
323
323
  children: [
324
- type ? /* @__PURE__ */ jsx5(IconComponent, { fontSize: "small", className: classes.icon }) : null,
324
+ IconComponent && /* @__PURE__ */ jsx5(IconComponent, { fontSize: "small", className: classes.icon }),
325
325
  /* @__PURE__ */ jsxs4("div", { className: classes.copy, children: [
326
326
  copy,
327
327
  /* @__PURE__ */ jsx5("span", { children: subcopy })
@@ -330,47 +330,6 @@ var ExtendedButton = ({
330
330
  }
331
331
  ) }) });
332
332
  };
333
- ExtendedButton.defaultProps = {
334
- buttonType: "button",
335
- color: "default",
336
- disabled: false,
337
- href: "",
338
- tooltip: "",
339
- component: "button",
340
- type: void 0,
341
- className: void 0,
342
- onClick: void 0,
343
- subcopy: void 0,
344
- variant: "outlined"
345
- };
346
- ExtendedButton.propTypes = {
347
- buttonType: oneOf(["button", "submit"]),
348
- className: string,
349
- color: oneOf(["default", "inherit", "primary", "secondary", "noOutline"]),
350
- copy: string.isRequired,
351
- disabled: bool,
352
- href: string,
353
- onClick: func,
354
- subcopy: string,
355
- tooltip: string,
356
- component: string,
357
- type: oneOf([
358
- "add",
359
- "apps",
360
- "childCare",
361
- "delete",
362
- "edit",
363
- "importExport",
364
- "notes",
365
- "print",
366
- "save",
367
- "upload",
368
- "refresh",
369
- "download",
370
- "publish"
371
- ]),
372
- variant: oneOf(["contained", "outlined", "text"])
373
- };
374
333
  var ExtendedButton_default = memo(ExtendedButton);
375
334
 
376
335
  // src/components/BottomBar/BottomBar.tsx
@@ -424,10 +383,10 @@ BottomBar.defaultProps = {
424
383
  onRefreshClick: null
425
384
  };
426
385
  BottomBar.propTypes = {
427
- className: string2,
386
+ className: string,
428
387
  children: node,
429
- isLoading: bool2,
430
- onRefreshClick: func2
388
+ isLoading: bool,
389
+ onRefreshClick: func
431
390
  };
432
391
  var BottomBar_default = BottomBar;
433
392
 
@@ -526,7 +485,7 @@ var BoxButton_default = React3.memo(BoxButton);
526
485
  import { memo as memo2 } from "react";
527
486
  import { CircularProgress } from "@mui/material";
528
487
  import Button5 from "@mui/material/Button";
529
- import { bool as bool3, func as func3, oneOf as oneOf2, string as string3 } from "prop-types";
488
+ import { bool as bool2, func as func2, oneOf, string as string2 } from "prop-types";
530
489
  import { makeStyles as makeStyles7 } from "tss-react/mui";
531
490
  import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
532
491
  var useStyles7 = makeStyles7()((theme) => ({
@@ -625,9 +584,9 @@ var FilledButton = ({
625
584
  );
626
585
  };
627
586
  FilledButton.propTypes = {
628
- autoFocus: bool3,
629
- className: string3,
630
- color: oneOf2([
587
+ autoFocus: bool2,
588
+ className: string2,
589
+ color: oneOf([
631
590
  "default",
632
591
  "error",
633
592
  "info",
@@ -637,13 +596,13 @@ FilledButton.propTypes = {
637
596
  "success",
638
597
  "warning"
639
598
  ]),
640
- copy: string3.isRequired,
641
- isLoading: bool3,
642
- disabled: bool3,
643
- href: string3,
644
- onClick: func3,
645
- type: oneOf2(["button", "submit"]),
646
- variant: oneOf2(["contained", "outlined", "text"])
599
+ copy: string2.isRequired,
600
+ isLoading: bool2,
601
+ disabled: bool2,
602
+ href: string2,
603
+ onClick: func2,
604
+ type: oneOf(["button", "submit"]),
605
+ variant: oneOf(["contained", "outlined", "text"])
647
606
  };
648
607
  var FilledButton_default = memo2(FilledButton);
649
608
 
@@ -683,9 +642,9 @@ var FilledButtonLg = ({
683
642
  loading && /* @__PURE__ */ jsx9(
684
643
  CircularProgress2,
685
644
  {
686
- color: (loadingProps == null ? void 0 : loadingProps.color) || "inherit",
687
- size: (loadingProps == null ? void 0 : loadingProps.size) || 22,
688
- style: { marginLeft: "15px", ...loadingProps == null ? void 0 : loadingProps.style }
645
+ color: loadingProps?.color || "inherit",
646
+ size: loadingProps?.size || 22,
647
+ style: { marginLeft: "15px", ...loadingProps?.style }
689
648
  }
690
649
  )
691
650
  ]
@@ -775,14 +734,14 @@ import React6 from "react";
775
734
  import Button7 from "@mui/material/Button";
776
735
  import CircularProgress3 from "@mui/material/CircularProgress";
777
736
  import {
778
- bool as bool4,
779
- func as func4,
737
+ bool as bool3,
738
+ func as func3,
780
739
  node as node2,
781
740
  number,
782
- oneOf as oneOf3,
741
+ oneOf as oneOf2,
783
742
  oneOfType,
784
743
  shape,
785
- string as string4
744
+ string as string3
786
745
  } from "prop-types";
787
746
  import { makeStyles as makeStyles8 } from "tss-react/mui";
788
747
  import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
@@ -903,17 +862,17 @@ var OutlinedButton = ({
903
862
  );
904
863
  };
905
864
  OutlinedButton.propTypes = {
906
- className: string4,
907
- color: string4,
908
- copy: oneOfType([number, string4]).isRequired,
909
- disabled: bool4,
910
- href: string4,
911
- isLoading: bool4,
912
- onClick: func4,
865
+ className: string3,
866
+ color: string3,
867
+ copy: oneOfType([number, string3]).isRequired,
868
+ disabled: bool3,
869
+ href: string3,
870
+ isLoading: bool3,
871
+ onClick: func3,
913
872
  startIcon: node2,
914
873
  style: shape({}),
915
- subcopy: string4,
916
- type: oneOf3(["button", "submit"])
874
+ subcopy: string3,
875
+ type: oneOf2(["button", "submit"])
917
876
  };
918
877
  var OutlinedButton_default = React6.memo(OutlinedButton);
919
878
 
@@ -2338,7 +2297,7 @@ var RoundButton = ({
2338
2297
  chevronUp: /* @__PURE__ */ jsx57(KeyboardArrowUp, { fontSize: iconSize }),
2339
2298
  chevronDown: /* @__PURE__ */ jsx57(KeyboardArrowDown, { fontSize: iconSize }),
2340
2299
  close: /* @__PURE__ */ jsx57(Close, { fontSize: iconSize }),
2341
- delete: /* @__PURE__ */ jsx57(Delete2, { fontSize: iconSize, fill: colors.grey650 }),
2300
+ delete: /* @__PURE__ */ jsx57(Delete2, { fontSize: iconSize, fill: colors.neutral800 }),
2342
2301
  done: /* @__PURE__ */ jsx57(Done, { fontSize: iconSize }),
2343
2302
  edit: /* @__PURE__ */ jsx57(Edit2, { fontSize: iconSize }),
2344
2303
  email: /* @__PURE__ */ jsx57(Email, { fontSize: iconSize }),
@@ -2454,7 +2413,7 @@ var defaultTheme = createTheme({
2454
2413
  mode: isDarkModeEnabled ? "dark" : "light",
2455
2414
  default: {
2456
2415
  main: colors.grey650,
2457
- background: colors.white
2416
+ background: colors.neutral100
2458
2417
  },
2459
2418
  primary: {
2460
2419
  main: colors.muiPrimary,
@@ -2631,18 +2590,102 @@ var DeleteUserDialogContent = ({
2631
2590
  };
2632
2591
  var DeleteUserDialogContent_default = React53.memo(DeleteUserDialogContent);
2633
2592
 
2634
- // src/components/DesktopContainer/DesktopContainer.tsx
2635
- import { Container, Box as Box11 } from "@mui/material";
2636
- import { makeStyles as makeStyles15 } from "tss-react/mui";
2637
-
2638
- // src/components/TheToolbar/TheToolbar.tsx
2639
- import React58 from "react";
2640
- import { AppBar as AppBar2, Box as Box10, Toolbar as Toolbar2 } from "@mui/material";
2641
- import { makeStyles as makeStyles14 } from "tss-react/mui";
2593
+ // src/components/Dialog/TwoButtonDialog.tsx
2594
+ import {
2595
+ Typography as Typography7,
2596
+ Dialog as Dialog3,
2597
+ Backdrop,
2598
+ Box as Box9,
2599
+ Divider,
2600
+ Paper as Paper2
2601
+ } from "@mui/material";
2602
+ import Fade from "@mui/material/Fade";
2603
+ import { makeStyles as makeStyles13 } from "tss-react/mui";
2604
+ import { jsx as jsx62, jsxs as jsxs37 } from "react/jsx-runtime";
2605
+ var useStyles13 = makeStyles13()((theme) => ({
2606
+ paper: {
2607
+ padding: theme.spacing(2)
2608
+ },
2609
+ mt: {
2610
+ marginTop: theme.spacing(2)
2611
+ },
2612
+ mb: {
2613
+ marginBottom: theme.spacing(2)
2614
+ },
2615
+ buttonContainer: {
2616
+ display: "flex",
2617
+ justifyContent: "center",
2618
+ marginTop: theme.spacing(1)
2619
+ }
2620
+ }));
2621
+ var TwoButtonDialog = ({
2622
+ confirmButton,
2623
+ dialogLoading = false,
2624
+ title,
2625
+ subtitle1,
2626
+ subtitle2,
2627
+ open,
2628
+ setOpen
2629
+ }) => {
2630
+ const { classes } = useStyles13();
2631
+ return /* @__PURE__ */ jsx62(
2632
+ Dialog3,
2633
+ {
2634
+ open,
2635
+ disableEnforceFocus: true,
2636
+ maxWidth: "sm",
2637
+ fullWidth: true,
2638
+ closeAfterTransition: true,
2639
+ BackdropComponent: Backdrop,
2640
+ BackdropProps: {
2641
+ timeout: 500
2642
+ },
2643
+ children: /* @__PURE__ */ jsx62(Fade, { in: open, children: /* @__PURE__ */ jsxs37(Paper2, { className: classes.paper, children: [
2644
+ /* @__PURE__ */ jsxs37(Box9, { className: classes.mb, children: [
2645
+ /* @__PURE__ */ jsx62(Typography7, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx62(
2646
+ Box9,
2647
+ {
2648
+ sx: {
2649
+ fontWeight: 600
2650
+ },
2651
+ children: title
2652
+ }
2653
+ ) }),
2654
+ /* @__PURE__ */ jsxs37(
2655
+ Box9,
2656
+ {
2657
+ className: classes.mt,
2658
+ sx: {
2659
+ fontWeight: 600
2660
+ },
2661
+ children: [
2662
+ subtitle1 && /* @__PURE__ */ jsx62(Typography7, { variant: "subtitle1", children: subtitle1 }),
2663
+ subtitle2 && /* @__PURE__ */ jsx62(Typography7, { variant: "subtitle1", children: subtitle2 })
2664
+ ]
2665
+ }
2666
+ )
2667
+ ] }),
2668
+ /* @__PURE__ */ jsx62(Divider, {}),
2669
+ /* @__PURE__ */ jsxs37(Box9, { className: classes.buttonContainer, children: [
2670
+ /* @__PURE__ */ jsx62(FilledButton_default, { copy: "CANCEL", onClick: () => setOpen(false) }),
2671
+ /* @__PURE__ */ jsx62(
2672
+ FilledButton_default,
2673
+ {
2674
+ color: "primary",
2675
+ copy: "CONFIRM",
2676
+ onClick: confirmButton
2677
+ }
2678
+ )
2679
+ ] }),
2680
+ /* @__PURE__ */ jsx62(Loading_default, { isLoading: dialogLoading })
2681
+ ] }) })
2682
+ }
2683
+ );
2684
+ };
2685
+ var TwoButtonDialog_default = TwoButtonDialog;
2642
2686
 
2643
2687
  // src/components/LeftDrawer/LeftDrawer.tsx
2644
2688
  import React57, { memo as memo3, useState } from "react";
2645
- import { useDispatch } from "react-redux";
2646
2689
  import { ExpandLess, ExpandMore, FiberManualRecord } from "@mui/icons-material";
2647
2690
  import {
2648
2691
  AppBar,
@@ -2654,23 +2697,22 @@ import {
2654
2697
  ListSubheader,
2655
2698
  SwipeableDrawer,
2656
2699
  Toolbar,
2657
- Box as Box9,
2700
+ Box as Box10,
2658
2701
  ListItemButton
2659
2702
  } from "@mui/material";
2660
2703
  import Icon from "@mui/material/Icon";
2661
- import { makeStyles as makeStyles13 } from "tss-react/mui";
2704
+ import { makeStyles as makeStyles14 } from "tss-react/mui";
2662
2705
 
2663
2706
  // src/components/UserBust/UserBust.tsx
2664
2707
  import React55 from "react";
2665
- import Typography7 from "@mui/material/Typography";
2666
- import PropTypes4 from "prop-types";
2708
+ import Typography8 from "@mui/material/Typography";
2667
2709
 
2668
2710
  // src/components/UserAvatar/UserAvatar.tsx
2669
2711
  import React54 from "react";
2670
2712
  import Avatar from "@mui/material/Avatar";
2671
2713
  import PropTypes3 from "prop-types";
2672
- import { jsx as jsx62 } from "react/jsx-runtime";
2673
- var UserAvatar = ({ src, width, height }) => /* @__PURE__ */ jsx62(Avatar, { alt: "user_avatar", src, style: { width, height } });
2714
+ import { jsx as jsx63 } from "react/jsx-runtime";
2715
+ var UserAvatar = ({ src, width, height }) => /* @__PURE__ */ jsx63(Avatar, { alt: "user_avatar", src, style: { width, height } });
2674
2716
  UserAvatar.propTypes = {
2675
2717
  src: PropTypes3.any,
2676
2718
  width: PropTypes3.any,
@@ -2679,19 +2721,14 @@ UserAvatar.propTypes = {
2679
2721
  var UserAvatar_default = React54.memo(UserAvatar);
2680
2722
 
2681
2723
  // src/components/UserBust/UserBust.tsx
2682
- import { jsx as jsx63, jsxs as jsxs37 } from "react/jsx-runtime";
2683
- var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs37("div", { children: [
2684
- /* @__PURE__ */ jsx63(UserAvatar_default, { src: user.profile_picture, ...avatarProps }),
2685
- /* @__PURE__ */ jsxs37("div", { style: { paddingTop: 16 }, children: [
2686
- /* @__PURE__ */ jsx63(Typography7, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
2687
- /* @__PURE__ */ jsx63(Typography7, { ...typographyProps.username, children: user.username })
2724
+ import { jsx as jsx64, jsxs as jsxs38 } from "react/jsx-runtime";
2725
+ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs38("div", { children: [
2726
+ /* @__PURE__ */ jsx64(UserAvatar_default, { ...avatarProps, src: user.profile_picture }),
2727
+ /* @__PURE__ */ jsxs38("div", { style: { paddingTop: 16 }, children: [
2728
+ /* @__PURE__ */ jsx64(Typography8, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
2729
+ /* @__PURE__ */ jsx64(Typography8, { ...typographyProps.username, children: user.username })
2688
2730
  ] })
2689
2731
  ] });
2690
- UserBust.propTypes = {
2691
- user: PropTypes4.any,
2692
- avatarProps: PropTypes4.any,
2693
- typographyProps: PropTypes4.any
2694
- };
2695
2732
  var UserBust_default = React55.memo(UserBust);
2696
2733
 
2697
2734
  // src/components/LeftDrawer/helpers/useGetFilteredDrawerAppList.tsx
@@ -2734,7 +2771,7 @@ var featureName = {
2734
2771
  var featureName_default = featureName;
2735
2772
 
2736
2773
  // src/components/LeftDrawer/helpers/drawerAppList.js
2737
- import { jsx as jsx64 } from "react/jsx-runtime";
2774
+ import { jsx as jsx65 } from "react/jsx-runtime";
2738
2775
  var drawerAppList = [
2739
2776
  {
2740
2777
  groupName: "Home",
@@ -2745,7 +2782,7 @@ var drawerAppList = [
2745
2782
  alwaysDisplay: true,
2746
2783
  featureNames: [],
2747
2784
  pinned: null,
2748
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconHome, {}),
2785
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconHome, {}),
2749
2786
  url: `/#/`
2750
2787
  }
2751
2788
  ]
@@ -2759,7 +2796,7 @@ var drawerAppList = [
2759
2796
  alwaysDisplay: false,
2760
2797
  featureNames: [featureName_default.NOTIFICATIONS],
2761
2798
  pinned: null,
2762
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconNotification, {}),
2799
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconNotification, {}),
2763
2800
  url: `/#/notifications`
2764
2801
  },
2765
2802
  {
@@ -2768,7 +2805,7 @@ var drawerAppList = [
2768
2805
  alwaysDisplay: false,
2769
2806
  featureNames: [featureName_default.PROMO_CODES],
2770
2807
  pinned: null,
2771
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconPromoCode, {}),
2808
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconPromoCode, {}),
2772
2809
  url: "/react/promo_codes"
2773
2810
  },
2774
2811
  {
@@ -2777,16 +2814,16 @@ var drawerAppList = [
2777
2814
  alwaysDisplay: false,
2778
2815
  featureNames: [featureName_default.SEARCH_CATEGORIES],
2779
2816
  pinned: null,
2780
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconSearchCategories, {}),
2817
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSearchCategories, {}),
2781
2818
  url: "/react/search-categories"
2782
2819
  },
2783
2820
  {
2784
2821
  name: "Content Management",
2785
2822
  routeName: "content-management",
2786
2823
  alwaysDisplay: false,
2787
- featureNames: ["cms"],
2824
+ featureNames: [featureName_default.CONTENT_MANAGEMENT],
2788
2825
  pinned: null,
2789
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconContentManagement, {}),
2826
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconContentManagement, {}),
2790
2827
  url: "/react/content-management"
2791
2828
  }
2792
2829
  ]
@@ -2800,7 +2837,7 @@ var drawerAppList = [
2800
2837
  alwaysDisplay: false,
2801
2838
  featureNames: [featureName_default.AIRCALL],
2802
2839
  pinned: "recorded_calls",
2803
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconPhone, {}),
2840
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconPhone, {}),
2804
2841
  url: "/react/air-call"
2805
2842
  },
2806
2843
  {
@@ -2809,7 +2846,7 @@ var drawerAppList = [
2809
2846
  alwaysDisplay: false,
2810
2847
  featureNames: [featureName_default.CUSTOMERS],
2811
2848
  pinned: "customers",
2812
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconAccount, {}),
2849
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconAccount, {}),
2813
2850
  url: `/#/customer-list`,
2814
2851
  children: [
2815
2852
  {
@@ -2832,7 +2869,7 @@ var drawerAppList = [
2832
2869
  alwaysDisplay: false,
2833
2870
  featureNames: [featureName_default.ORDERS],
2834
2871
  pinned: "orders",
2835
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconOrders, {}),
2872
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconOrders, {}),
2836
2873
  url: `/#/orders`
2837
2874
  },
2838
2875
  {
@@ -2841,7 +2878,7 @@ var drawerAppList = [
2841
2878
  alwaysDisplay: false,
2842
2879
  featureNames: [featureName_default.PRICE_LIST],
2843
2880
  pinned: "price_list",
2844
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconPriceList, {}),
2881
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconPriceList, {}),
2845
2882
  url: `/#/price-list`
2846
2883
  },
2847
2884
  {
@@ -2850,7 +2887,7 @@ var drawerAppList = [
2850
2887
  alwaysDisplay: false,
2851
2888
  featureNames: [featureName_default.SPECIAL_PRICES],
2852
2889
  pinned: "special_prices",
2853
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconSpecialPrice, {}),
2890
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSpecialPrice, {}),
2854
2891
  url: `/#/pricing/special-prices`
2855
2892
  }
2856
2893
  ]
@@ -2864,7 +2901,7 @@ var drawerAppList = [
2864
2901
  alwaysDisplay: false,
2865
2902
  featureNames: [featureName_default.PURCHASE_ORDERS],
2866
2903
  pinned: "purchase_orders",
2867
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconBuying, {}),
2904
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconBuying, {}),
2868
2905
  url: "/react/purchase-orders"
2869
2906
  },
2870
2907
  {
@@ -2873,7 +2910,7 @@ var drawerAppList = [
2873
2910
  alwaysDisplay: false,
2874
2911
  featureNames: [featureName_default.PRODUCTS],
2875
2912
  pinned: "products",
2876
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconProducts, {}),
2913
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconProducts, {}),
2877
2914
  url: `/#/product-base-list`
2878
2915
  },
2879
2916
  {
@@ -2882,7 +2919,7 @@ var drawerAppList = [
2882
2919
  alwaysDisplay: false,
2883
2920
  featureNames: [featureName_default.SUPPLIERS],
2884
2921
  pinned: "suppliers",
2885
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconSupplier, {}),
2922
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSupplier, {}),
2886
2923
  url: "/react/suppliers"
2887
2924
  },
2888
2925
  {
@@ -2891,7 +2928,7 @@ var drawerAppList = [
2891
2928
  alwaysDisplay: false,
2892
2929
  featureNames: [featureName_default.SUPPLIER_PRICES],
2893
2930
  pinned: "supplier_prices",
2894
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconSupplierPrices, {}),
2931
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSupplierPrices, {}),
2895
2932
  url: `/#/supplier-prices`
2896
2933
  },
2897
2934
  {
@@ -2900,7 +2937,7 @@ var drawerAppList = [
2900
2937
  alwaysDisplay: false,
2901
2938
  featureNames: [featureName_default.BULK_UPDATE],
2902
2939
  pinned: "bulk-update",
2903
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconImport, {}),
2940
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconImport, {}),
2904
2941
  url: "/react/bulk_update"
2905
2942
  }
2906
2943
  ]
@@ -2914,7 +2951,7 @@ var drawerAppList = [
2914
2951
  alwaysDisplay: false,
2915
2952
  featureNames: [featureName_default.GOODS_IN],
2916
2953
  pinned: "goods_in",
2917
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconGoodsin, {}),
2954
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconGoodsin, {}),
2918
2955
  url: "/react/goodsin-list"
2919
2956
  },
2920
2957
  {
@@ -2923,7 +2960,7 @@ var drawerAppList = [
2923
2960
  alwaysDisplay: false,
2924
2961
  featureNames: [featureName_default.RETURNS],
2925
2962
  pinned: "goods_in",
2926
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconGoodsin, {}),
2963
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconGoodsin, {}),
2927
2964
  url: "/react/returns"
2928
2965
  },
2929
2966
  {
@@ -2931,8 +2968,8 @@ var drawerAppList = [
2931
2968
  routeName: "kanban",
2932
2969
  alwaysDisplay: false,
2933
2970
  featureNames: [featureName_default.KANBAN],
2934
- pinned: "kanbancards",
2935
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconVkc, {}),
2971
+ pinned: "kanban_cards",
2972
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconVkc, {}),
2936
2973
  url: `/#/kanban`
2937
2974
  },
2938
2975
  {
@@ -2944,7 +2981,7 @@ var drawerAppList = [
2944
2981
  featureName: featureName_default.STOCK_MOVEMENTS
2945
2982
  }
2946
2983
  ],
2947
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconLocation, {}),
2984
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconLocation, {}),
2948
2985
  name: "Stock and Locations",
2949
2986
  pinned: "locations",
2950
2987
  routeName: "locations",
@@ -2958,7 +2995,7 @@ var drawerAppList = [
2958
2995
  alwaysDisplay: false,
2959
2996
  featureNames: [featureName_default.PICKING_STATIONS],
2960
2997
  pinned: "picking_stations",
2961
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconScales, {}),
2998
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconScales, {}),
2962
2999
  url: `/#/pickingstation`
2963
3000
  },
2964
3001
  {
@@ -2967,7 +3004,7 @@ var drawerAppList = [
2967
3004
  alwaysDisplay: false,
2968
3005
  featureNames: [featureName_default.QUALITY_CONTROL],
2969
3006
  pinned: "quality_control",
2970
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconQc, {}),
3007
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconQc, {}),
2971
3008
  url: `/#/quality-control`
2972
3009
  },
2973
3010
  {
@@ -2976,7 +3013,7 @@ var drawerAppList = [
2976
3013
  alwaysDisplay: false,
2977
3014
  featureNames: [featureName_default.RETAIL],
2978
3015
  pinned: "retail",
2979
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconRetail, {}),
3016
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconRetail, {}),
2980
3017
  url: `/retail/product-availability`
2981
3018
  },
2982
3019
  {
@@ -2985,7 +3022,7 @@ var drawerAppList = [
2985
3022
  alwaysDisplay: false,
2986
3023
  featureNames: [featureName_default.SERVICE_DELIVERY],
2987
3024
  pinned: "runs",
2988
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconRuns, {}),
3025
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconRuns, {}),
2989
3026
  url: `/#/runs`
2990
3027
  },
2991
3028
  {
@@ -2994,7 +3031,7 @@ var drawerAppList = [
2994
3031
  alwaysDisplay: false,
2995
3032
  featureNames: [featureName_default.OPS_METRICS],
2996
3033
  pinned: "ops-metrics",
2997
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconOpsMetrics, {}),
3034
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconOpsMetrics, {}),
2998
3035
  url: "/react/ops-metrics"
2999
3036
  }
3000
3037
  ]
@@ -3008,7 +3045,7 @@ var drawerAppList = [
3008
3045
  alwaysDisplay: false,
3009
3046
  featureNames: [featureName_default.ACCOUNTS],
3010
3047
  pinned: "accounts",
3011
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconAccounts, {}),
3048
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconAccounts, {}),
3012
3049
  url: `/#/accounts`
3013
3050
  },
3014
3051
  {
@@ -3017,7 +3054,7 @@ var drawerAppList = [
3017
3054
  alwaysDisplay: false,
3018
3055
  featureNames: [featureName_default.REPORTS],
3019
3056
  pinned: "reports",
3020
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconReports, {}),
3057
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconReports, {}),
3021
3058
  url: `/reports`
3022
3059
  }
3023
3060
  ]
@@ -3031,7 +3068,7 @@ var drawerAppList = [
3031
3068
  alwaysDisplay: false,
3032
3069
  featureNames: [featureName_default.ADMIN],
3033
3070
  pinned: "admin",
3034
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconSetting, {}),
3071
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSetting, {}),
3035
3072
  url: `/admin`
3036
3073
  },
3037
3074
  {
@@ -3040,7 +3077,7 @@ var drawerAppList = [
3040
3077
  alwaysDisplay: false,
3041
3078
  featureNames: [featureName_default.USER_MANAGEMENT],
3042
3079
  pinned: "users",
3043
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconUserManagement, {}),
3080
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconUserManagement, {}),
3044
3081
  url: "/react/user-management"
3045
3082
  },
3046
3083
  {
@@ -3049,7 +3086,7 @@ var drawerAppList = [
3049
3086
  alwaysDisplay: true,
3050
3087
  featureNames: [],
3051
3088
  pinned: null,
3052
- icon: /* @__PURE__ */ jsx64(icons_default.SvgIconLogin, {}),
3089
+ icon: /* @__PURE__ */ jsx65(icons_default.SvgIconLogin, {}),
3053
3090
  url: "/react/logout"
3054
3091
  }
3055
3092
  ]
@@ -3092,8 +3129,8 @@ var useGetFilteredDrawerAppList = () => {
3092
3129
  var useGetFilteredDrawerAppList_default = useGetFilteredDrawerAppList;
3093
3130
 
3094
3131
  // src/components/LeftDrawer/LeftDrawer.tsx
3095
- import { jsx as jsx65, jsxs as jsxs38 } from "react/jsx-runtime";
3096
- var useStyles13 = makeStyles13()((theme) => ({
3132
+ import { jsx as jsx66, jsxs as jsxs39 } from "react/jsx-runtime";
3133
+ var useStyles14 = makeStyles14()((theme) => ({
3097
3134
  subheader: {
3098
3135
  textTransform: "uppercase",
3099
3136
  fontSize: theme.spacing(1.5)
@@ -3149,9 +3186,14 @@ var useStyles13 = makeStyles13()((theme) => ({
3149
3186
  }
3150
3187
  }
3151
3188
  }));
3152
- var LeftDrawer = ({ handleClose, handleOpen, open }) => {
3189
+ var LeftDrawer = ({
3190
+ handleClose,
3191
+ handleOpen,
3192
+ onLogout,
3193
+ open,
3194
+ user
3195
+ }) => {
3153
3196
  const [openCollapse, setOpenCollapse] = useState({});
3154
- const dispatch = useDispatch();
3155
3197
  const filteredDrawerAppList = useGetFilteredDrawerAppList_default();
3156
3198
  const handleCollapse = (e, routeName) => {
3157
3199
  e.stopPropagation();
@@ -3159,8 +3201,8 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
3159
3201
  tempOpenCollapse[routeName] = !tempOpenCollapse[routeName];
3160
3202
  setOpenCollapse(tempOpenCollapse);
3161
3203
  };
3162
- const { classes } = useStyles13();
3163
- return /* @__PURE__ */ jsxs38(
3204
+ const { classes } = useStyles14();
3205
+ return /* @__PURE__ */ jsxs39(
3164
3206
  SwipeableDrawer,
3165
3207
  {
3166
3208
  className: classes.drawer,
@@ -3169,19 +3211,19 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
3169
3211
  onOpen: handleOpen,
3170
3212
  open,
3171
3213
  children: [
3172
- /* @__PURE__ */ jsx65(AppBar, { position: "static", children: /* @__PURE__ */ jsxs38(Toolbar, { className: classes.topBar, children: [
3173
- /* @__PURE__ */ jsx65(
3214
+ /* @__PURE__ */ jsx66(AppBar, { position: "static", children: /* @__PURE__ */ jsxs39(Toolbar, { className: classes.topBar, children: [
3215
+ /* @__PURE__ */ jsx66(
3174
3216
  UserBust_default,
3175
3217
  {
3176
- user: {},
3218
+ user,
3177
3219
  avatarProps: { height: 50, width: 50 },
3178
3220
  typographyProps: {
3179
- name: { variant: "subtitle1" },
3180
- username: { variant: "caption" }
3221
+ name: { variant: "subtitle1", component: "div" },
3222
+ username: { variant: "caption", component: "div" }
3181
3223
  }
3182
3224
  }
3183
3225
  ),
3184
- /* @__PURE__ */ jsx65(Box9, { children: /* @__PURE__ */ jsx65(
3226
+ /* @__PURE__ */ jsx66(Box10, { children: /* @__PURE__ */ jsx66(
3185
3227
  RoundButton_default,
3186
3228
  {
3187
3229
  icon: "edit",
@@ -3192,73 +3234,71 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
3192
3234
  }
3193
3235
  ) })
3194
3236
  ] }) }),
3195
- /* @__PURE__ */ jsx65(List, { children: filteredDrawerAppList.map((group) => /* @__PURE__ */ jsxs38(React57.Fragment, { children: [
3196
- /* @__PURE__ */ jsx65(ListSubheader, { disableSticky: true, className: classes.subheader, children: group.groupName }),
3197
- group.apps.map((app) => {
3198
- var _a, _b;
3199
- return /* @__PURE__ */ jsxs38(React57.Fragment, { children: [
3200
- /* @__PURE__ */ jsxs38(
3201
- ListItem,
3202
- {
3203
- title: app.url,
3204
- onClick: () => {
3205
- if (app.routeName === "logout") {
3206
- }
3207
- return window.location.assign(app.url);
3208
- },
3209
- children: [
3210
- /* @__PURE__ */ jsx65(ListItemIcon, { children: /* @__PURE__ */ jsx65(Icon, { className: classes.iconMenu, children: app.icon }) }),
3211
- /* @__PURE__ */ jsx65(
3212
- ListItemText,
3213
- {
3214
- className: classes.appName,
3215
- primary: app.name,
3216
- slotProps: {
3217
- primary: { variant: "body2" }
3218
- }
3219
- }
3220
- ),
3221
- ((_a = app.children) == null ? void 0 : _a.length) > 0 && (openCollapse[app.routeName] ? /* @__PURE__ */ jsx65(
3222
- ExpandLess,
3223
- {
3224
- "data-testid": "svg-close-collapse",
3225
- onClick: (e) => handleCollapse(e, app.routeName)
3226
- }
3227
- ) : /* @__PURE__ */ jsx65(
3228
- ExpandMore,
3229
- {
3230
- "data-testid": "svg-open-collapse",
3231
- onClick: (e) => handleCollapse(e, app.routeName)
3232
- }
3233
- ))
3234
- ]
3237
+ /* @__PURE__ */ jsx66(List, { children: filteredDrawerAppList.map((group) => /* @__PURE__ */ jsxs39(React57.Fragment, { children: [
3238
+ /* @__PURE__ */ jsx66(ListSubheader, { disableSticky: true, className: classes.subheader, children: group.groupName }),
3239
+ group.apps.map((app) => /* @__PURE__ */ jsxs39(React57.Fragment, { children: [
3240
+ /* @__PURE__ */ jsxs39(
3241
+ ListItem,
3242
+ {
3243
+ title: app.url,
3244
+ onClick: () => {
3245
+ if (app.routeName === "logout") {
3246
+ return onLogout();
3247
+ }
3248
+ return window.location.assign(app.url);
3235
3249
  },
3236
- app.name
3237
- ),
3238
- ((_b = app.children) == null ? void 0 : _b.length) > 0 && /* @__PURE__ */ jsx65(Collapse, { in: openCollapse[app.routeName], children: /* @__PURE__ */ jsx65(List, { children: app.children.map((child) => /* @__PURE__ */ jsxs38(
3239
- ListItemButton,
3240
- {
3241
- className: classes.nested,
3242
- disabled: child.disabled,
3243
- onClick: () => window.location.assign(app.url),
3244
- title: app.url,
3245
- children: [
3246
- /* @__PURE__ */ jsx65(ListItemIcon, { children: /* @__PURE__ */ jsx65(FiberManualRecord, { style: { height: 12 } }) }),
3247
- /* @__PURE__ */ jsx65(
3248
- ListItemText,
3249
- {
3250
- primary: child.name,
3251
- slotProps: {
3252
- primary: { variant: "body2" }
3253
- }
3250
+ children: [
3251
+ /* @__PURE__ */ jsx66(ListItemIcon, { children: /* @__PURE__ */ jsx66(Icon, { className: classes.iconMenu, children: app.icon }) }),
3252
+ /* @__PURE__ */ jsx66(
3253
+ ListItemText,
3254
+ {
3255
+ className: classes.appName,
3256
+ primary: app.name,
3257
+ slotProps: {
3258
+ primary: { variant: "body2" }
3254
3259
  }
3255
- )
3256
- ]
3257
- },
3258
- child.name
3259
- )) }) })
3260
- ] }, `${group.groupName} ${app.name}`);
3261
- })
3260
+ }
3261
+ ),
3262
+ app.children?.length > 0 && (openCollapse[app.routeName] ? /* @__PURE__ */ jsx66(
3263
+ ExpandLess,
3264
+ {
3265
+ "data-testid": "svg-close-collapse",
3266
+ onClick: (e) => handleCollapse(e, app.routeName)
3267
+ }
3268
+ ) : /* @__PURE__ */ jsx66(
3269
+ ExpandMore,
3270
+ {
3271
+ "data-testid": "svg-open-collapse",
3272
+ onClick: (e) => handleCollapse(e, app.routeName)
3273
+ }
3274
+ ))
3275
+ ]
3276
+ },
3277
+ app.name
3278
+ ),
3279
+ app.children?.length > 0 && /* @__PURE__ */ jsx66(Collapse, { in: openCollapse[app.routeName], children: /* @__PURE__ */ jsx66(List, { children: app.children.map((child) => /* @__PURE__ */ jsxs39(
3280
+ ListItemButton,
3281
+ {
3282
+ className: classes.nested,
3283
+ disabled: child.disabled,
3284
+ onClick: () => window.location.assign(app.url),
3285
+ title: app.url,
3286
+ children: [
3287
+ /* @__PURE__ */ jsx66(ListItemIcon, { children: /* @__PURE__ */ jsx66(FiberManualRecord, { style: { height: 12 } }) }),
3288
+ /* @__PURE__ */ jsx66(
3289
+ ListItemText,
3290
+ {
3291
+ primary: child.name,
3292
+ slotProps: {
3293
+ primary: { variant: "body2" }
3294
+ }
3295
+ }
3296
+ )
3297
+ ]
3298
+ },
3299
+ child.name
3300
+ )) }) })
3301
+ ] }, `${group.groupName} ${app.name}`))
3262
3302
  ] }, group.groupName)) })
3263
3303
  ]
3264
3304
  }
@@ -3266,231 +3306,14 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
3266
3306
  };
3267
3307
  var LeftDrawer_default = memo3(LeftDrawer);
3268
3308
 
3269
- // src/components/TheToolbar/TheToolbar.tsx
3270
- import { jsx as jsx66, jsxs as jsxs39 } from "react/jsx-runtime";
3271
- var useStyles14 = makeStyles14()((theme) => ({
3272
- menuButton: {
3273
- color: theme.palette.primary.contrastText
3274
- },
3275
- searchNatoora: {
3276
- width: "100%"
3277
- },
3278
- searchIcon: {
3279
- opacity: ".5"
3280
- },
3281
- inputRoot: {
3282
- color: "inherit"
3283
- },
3284
- inputInput: {
3285
- transition: theme.transitions.create("width"),
3286
- width: "100%"
3287
- },
3288
- topBar: {
3289
- display: "flex",
3290
- gap: theme.spacing(1),
3291
- backgroundColor: colors.topBar
3292
- },
3293
- drawer: {
3294
- backgroundColor: "black"
3295
- },
3296
- drawerItem: {
3297
- maxWidth: "300px",
3298
- width: "80vw"
3299
- },
3300
- offset: theme.mixins.toolbar
3301
- }));
3302
- var TheToolbar = ({ imageLogoDarkSmall, imageLogoLightSmall }) => {
3303
- const { classes } = useStyles14();
3304
- const [open, setOpen] = React58.useState(false);
3305
- const handleOpen = () => setOpen(true);
3306
- const handleClose = () => setOpen(false);
3307
- return /* @__PURE__ */ jsxs39(Box10, { children: [
3308
- /* @__PURE__ */ jsx66(AppBar2, { children: /* @__PURE__ */ jsxs39(Toolbar2, { className: classes.topBar, children: [
3309
- /* @__PURE__ */ jsx66(
3310
- RoundButton_default,
3311
- {
3312
- className: classes.menuButton,
3313
- icon: "menu",
3314
- noStrokes: true,
3315
- onClick: handleOpen
3316
- }
3317
- ),
3318
- /* @__PURE__ */ jsx66(
3319
- CompanyLogo_default,
3320
- {
3321
- size: "small",
3322
- color: "light",
3323
- imageLogoDarkSmall,
3324
- imageLogoLightSmall
3325
- }
3326
- )
3327
- ] }) }),
3328
- /* @__PURE__ */ jsx66(Box10, { className: classes.offset }),
3329
- /* @__PURE__ */ jsx66(
3330
- LeftDrawer_default,
3331
- {
3332
- open,
3333
- handleOpen,
3334
- handleClose
3335
- }
3336
- )
3337
- ] });
3338
- };
3339
- var TheToolbar_default = React58.memo(TheToolbar);
3340
-
3341
- // src/components/DesktopContainer/DesktopContainer.tsx
3342
- import { jsx as jsx67, jsxs as jsxs40 } from "react/jsx-runtime";
3343
- var useStyles15 = makeStyles15()((theme) => ({
3344
- root: {
3345
- display: "flex",
3346
- flexDirection: "column",
3347
- minHeight: "100vh",
3348
- maxWidth: 1420,
3349
- padding: 0
3350
- },
3351
- content: {
3352
- height: "100%",
3353
- flexGrow: 1
3354
- },
3355
- [theme.breakpoints.up("xl")]: {
3356
- root: {
3357
- maxWidth: 1720
3358
- }
3359
- }
3360
- }));
3361
- var DesktopContainer = ({
3362
- imageLogoDarkSmall,
3363
- imageLogoLightSmall,
3364
- children
3365
- }) => {
3366
- const { classes } = useStyles15();
3367
- return /* @__PURE__ */ jsxs40(Container, { className: classes.root, maxWidth: "xl", children: [
3368
- /* @__PURE__ */ jsx67(
3369
- TheToolbar_default,
3370
- {
3371
- imageLogoDarkSmall,
3372
- imageLogoLightSmall
3373
- }
3374
- ),
3375
- /* @__PURE__ */ jsx67(
3376
- Box11,
3377
- {
3378
- className: classes.content,
3379
- id: "mainContainer",
3380
- sx: {
3381
- display: "flex",
3382
- flexDirection: "column"
3383
- },
3384
- children
3385
- }
3386
- )
3387
- ] });
3388
- };
3389
- var DesktopContainer_default = DesktopContainer;
3390
-
3391
- // src/components/Dialog/TwoButtonDialog.tsx
3392
- import {
3393
- Typography as Typography8,
3394
- Dialog as Dialog3,
3395
- Backdrop,
3396
- Box as Box12,
3397
- Divider,
3398
- Paper as Paper2
3399
- } from "@mui/material";
3400
- import Fade from "@mui/material/Fade";
3401
- import { makeStyles as makeStyles16 } from "tss-react/mui";
3402
- import { jsx as jsx68, jsxs as jsxs41 } from "react/jsx-runtime";
3403
- var useStyles16 = makeStyles16()((theme) => ({
3404
- paper: {
3405
- padding: theme.spacing(2)
3406
- },
3407
- mt: {
3408
- marginTop: theme.spacing(2)
3409
- },
3410
- mb: {
3411
- marginBottom: theme.spacing(2)
3412
- },
3413
- buttonContainer: {
3414
- display: "flex",
3415
- justifyContent: "center",
3416
- marginTop: theme.spacing(1)
3417
- }
3418
- }));
3419
- var TwoButtonDialog = ({
3420
- confirmButton,
3421
- dialogLoading = false,
3422
- title,
3423
- subtitle1,
3424
- subtitle2,
3425
- open,
3426
- setOpen
3427
- }) => {
3428
- const { classes } = useStyles16();
3429
- return /* @__PURE__ */ jsx68(
3430
- Dialog3,
3431
- {
3432
- open,
3433
- disableEnforceFocus: true,
3434
- maxWidth: "sm",
3435
- fullWidth: true,
3436
- closeAfterTransition: true,
3437
- BackdropComponent: Backdrop,
3438
- BackdropProps: {
3439
- timeout: 500
3440
- },
3441
- children: /* @__PURE__ */ jsx68(Fade, { in: open, children: /* @__PURE__ */ jsxs41(Paper2, { className: classes.paper, children: [
3442
- /* @__PURE__ */ jsxs41(Box12, { className: classes.mb, children: [
3443
- /* @__PURE__ */ jsx68(Typography8, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx68(
3444
- Box12,
3445
- {
3446
- sx: {
3447
- fontWeight: 600
3448
- },
3449
- children: title
3450
- }
3451
- ) }),
3452
- /* @__PURE__ */ jsxs41(
3453
- Box12,
3454
- {
3455
- className: classes.mt,
3456
- sx: {
3457
- fontWeight: 600
3458
- },
3459
- children: [
3460
- subtitle1 && /* @__PURE__ */ jsx68(Typography8, { variant: "subtitle1", children: subtitle1 }),
3461
- subtitle2 && /* @__PURE__ */ jsx68(Typography8, { variant: "subtitle1", children: subtitle2 })
3462
- ]
3463
- }
3464
- )
3465
- ] }),
3466
- /* @__PURE__ */ jsx68(Divider, {}),
3467
- /* @__PURE__ */ jsxs41(Box12, { className: classes.buttonContainer, children: [
3468
- /* @__PURE__ */ jsx68(FilledButton_default, { copy: "CANCEL", onClick: () => setOpen(false) }),
3469
- /* @__PURE__ */ jsx68(
3470
- FilledButton_default,
3471
- {
3472
- color: "primary",
3473
- copy: "CONFIRM",
3474
- onClick: confirmButton
3475
- }
3476
- )
3477
- ] }),
3478
- /* @__PURE__ */ jsx68(Loading_default, { isLoading: dialogLoading })
3479
- ] }) })
3480
- }
3481
- );
3482
- };
3483
- var TwoButtonDialog_default = TwoButtonDialog;
3484
-
3485
3309
  // src/components/Pagination/PaginationForTable.tsx
3486
3310
  import Pagination from "@mui/material/Pagination";
3487
3311
  import Paper3 from "@mui/material/Paper";
3488
3312
  import Typography9 from "@mui/material/Typography";
3489
- import { any as any2, func as func5, object, oneOf as oneOf4, string as string5 } from "prop-types";
3490
- import { makeStyles as makeStyles17 } from "tss-react/mui";
3491
- import { jsx as jsx69, jsxs as jsxs42 } from "react/jsx-runtime";
3313
+ import { makeStyles as makeStyles15 } from "tss-react/mui";
3314
+ import { jsx as jsx67, jsxs as jsxs40 } from "react/jsx-runtime";
3492
3315
  var paginationHeight = "56px";
3493
- var useStyles17 = makeStyles17()((theme) => ({
3316
+ var useStyles15 = makeStyles15()((theme) => ({
3494
3317
  root: {
3495
3318
  display: "flex",
3496
3319
  flexDirection: "row",
@@ -3526,12 +3349,12 @@ var PaginationForTable = ({
3526
3349
  style,
3527
3350
  updateFilters
3528
3351
  }) => {
3529
- const { classes, cx } = useStyles17();
3352
+ const { classes, cx } = useStyles15();
3530
3353
  const handleChange = (event, value) => {
3531
3354
  updateFilters({ ...appliedFilters, page: value });
3532
3355
  };
3533
3356
  const isFixed = position === "fixed";
3534
- return /* @__PURE__ */ jsx69(Paper3, { children: /* @__PURE__ */ jsxs42(
3357
+ return /* @__PURE__ */ jsx67(Paper3, { children: /* @__PURE__ */ jsxs40(
3535
3358
  "div",
3536
3359
  {
3537
3360
  style,
@@ -3539,11 +3362,11 @@ var PaginationForTable = ({
3539
3362
  [classes.fixed]: isFixed
3540
3363
  }),
3541
3364
  children: [
3542
- /* @__PURE__ */ jsxs42(Typography9, { variant: "body1", children: [
3365
+ /* @__PURE__ */ jsxs40(Typography9, { variant: "body1", children: [
3543
3366
  "Page: ",
3544
3367
  page
3545
3368
  ] }),
3546
- /* @__PURE__ */ jsx69(
3369
+ /* @__PURE__ */ jsx67(
3547
3370
  Pagination,
3548
3371
  {
3549
3372
  count: pagination.num_pages,
@@ -3555,39 +3378,27 @@ var PaginationForTable = ({
3555
3378
  }
3556
3379
  ) });
3557
3380
  };
3558
- PaginationForTable.defaultProps = {
3559
- className: ""
3560
- };
3561
- PaginationForTable.propTypes = {
3562
- appliedFilters: any2,
3563
- className: string5,
3564
- page: any2,
3565
- pagination: object,
3566
- position: oneOf4(["relative", "fixed"]),
3567
- style: any2,
3568
- updateFilters: func5.isRequired
3569
- };
3570
3381
  var PaginationForTable_default = PaginationForTable;
3571
3382
 
3572
3383
  // src/components/ProductImage/ProductImage.tsx
3573
3384
  import { CardMedia } from "@mui/material";
3574
- import { any as any3, string as string6 } from "prop-types";
3385
+ import { any as any2, string as string4 } from "prop-types";
3575
3386
  import { withStyles as withStyles2 } from "tss-react/mui";
3576
- import { jsx as jsx70, jsxs as jsxs43 } from "react/jsx-runtime";
3387
+ import { jsx as jsx68, jsxs as jsxs41 } from "react/jsx-runtime";
3577
3388
  var PImage = ({
3578
3389
  classes,
3579
3390
  image,
3580
3391
  size = "c_productbust__image_xs",
3581
3392
  status
3582
- }) => /* @__PURE__ */ jsxs43("div", { className: classes.c_productbust__image, children: [
3583
- /* @__PURE__ */ jsx70(
3393
+ }) => /* @__PURE__ */ jsxs41("div", { className: classes.c_productbust__image, children: [
3394
+ /* @__PURE__ */ jsx68(
3584
3395
  CardMedia,
3585
3396
  {
3586
3397
  className: classes[size],
3587
3398
  image: image || "resources/img/peas.jpg"
3588
3399
  }
3589
3400
  ),
3590
- status && status !== "ACTIVE" && /* @__PURE__ */ jsx70("div", { className: classes.c_productbust__label_status, children: status })
3401
+ status && status !== "ACTIVE" && /* @__PURE__ */ jsx68("div", { className: classes.c_productbust__label_status, children: status })
3591
3402
  ] });
3592
3403
  var ProductImage = withStyles2(PImage, (theme) => ({
3593
3404
  c_productbust__label_status: {
@@ -3667,10 +3478,10 @@ var ProductImage = withStyles2(PImage, (theme) => ({
3667
3478
  }
3668
3479
  }));
3669
3480
  PImage.propTypes = {
3670
- classes: any3,
3671
- image: string6,
3672
- size: string6,
3673
- status: any3
3481
+ classes: any2,
3482
+ image: string4,
3483
+ size: string4,
3484
+ status: any2
3674
3485
  };
3675
3486
  var ProductImage_default = ProductImage;
3676
3487
 
@@ -3682,15 +3493,15 @@ import {
3682
3493
  ListItemText as ListItemText2,
3683
3494
  ListSubheader as ListSubheader2
3684
3495
  } from "@mui/material";
3685
- import { makeStyles as makeStyles18 } from "tss-react/mui";
3496
+ import { makeStyles as makeStyles16 } from "tss-react/mui";
3686
3497
 
3687
3498
  // src/utils/useGetActiveSection.ts
3688
3499
  import { useEffect, useState as useState2 } from "react";
3689
3500
  var transformNameToID = (name) => name.replaceAll(" ", "-").toLocaleLowerCase();
3690
3501
 
3691
3502
  // src/components/RenderContentList/RenderContentList.tsx
3692
- import { jsx as jsx71 } from "react/jsx-runtime";
3693
- var useStyles18 = makeStyles18()(
3503
+ import { jsx as jsx69 } from "react/jsx-runtime";
3504
+ var useStyles16 = makeStyles16()(
3694
3505
  (_theme, _params, classes) => ({
3695
3506
  root: {
3696
3507
  [`&.${classes.selected}`]: {
@@ -3704,20 +3515,20 @@ var useStyles18 = makeStyles18()(
3704
3515
  })
3705
3516
  );
3706
3517
  var RenderContentList = ({ items, activeSection }) => {
3707
- const { classes } = useStyles18();
3518
+ const { classes } = useStyles16();
3708
3519
  const [active, setActive] = useState3(activeSection);
3709
3520
  useEffect2(() => {
3710
3521
  setActive(activeSection);
3711
3522
  }, [activeSection]);
3712
- return /* @__PURE__ */ jsx71(
3523
+ return /* @__PURE__ */ jsx69(
3713
3524
  List2,
3714
3525
  {
3715
3526
  component: "nav",
3716
3527
  "aria-labelledby": "nested-list-subheader",
3717
- subheader: /* @__PURE__ */ jsx71(ListSubheader2, { component: "div", id: "nested-list-subheader", children: "Contents" }),
3528
+ subheader: /* @__PURE__ */ jsx69(ListSubheader2, { component: "div", id: "nested-list-subheader", children: "Contents" }),
3718
3529
  children: items.map((item) => {
3719
3530
  const id = transformNameToID(item);
3720
- return /* @__PURE__ */ jsx71(
3531
+ return /* @__PURE__ */ jsx69(
3721
3532
  ListItemButton2,
3722
3533
  {
3723
3534
  component: "a",
@@ -3725,7 +3536,7 @@ var RenderContentList = ({ items, activeSection }) => {
3725
3536
  onClick: () => setActive(item),
3726
3537
  selected: active === item,
3727
3538
  classes: { root: classes.root },
3728
- children: /* @__PURE__ */ jsx71(ListItemText2, { primary: item })
3539
+ children: /* @__PURE__ */ jsx69(ListItemText2, { primary: item })
3729
3540
  },
3730
3541
  id
3731
3542
  );
@@ -3736,11 +3547,11 @@ var RenderContentList = ({ items, activeSection }) => {
3736
3547
  var RenderContentList_default = RenderContentList;
3737
3548
 
3738
3549
  // src/components/RowProductCard/RowProductCard.tsx
3739
- import { Box as Box13, Divider as Divider2, Paper as Paper4, Typography as Typography10 } from "@mui/material";
3740
- import { makeStyles as makeStyles19 } from "tss-react/mui";
3741
- import { arrayOf, node as node3, oneOf as oneOf5, oneOfType as oneOfType2, shape as shape2, string as string7 } from "prop-types";
3742
- import { Fragment as Fragment3, jsx as jsx72, jsxs as jsxs44 } from "react/jsx-runtime";
3743
- var useStyles19 = makeStyles19()((theme) => ({
3550
+ import { Box as Box11, Divider as Divider2, Paper as Paper4, Typography as Typography10 } from "@mui/material";
3551
+ import { makeStyles as makeStyles17 } from "tss-react/mui";
3552
+ import { arrayOf, node as node3, oneOf as oneOf3, oneOfType as oneOfType2, shape as shape2, string as string5 } from "prop-types";
3553
+ import { Fragment as Fragment3, jsx as jsx70, jsxs as jsxs42 } from "react/jsx-runtime";
3554
+ var useStyles17 = makeStyles17()((theme) => ({
3744
3555
  wrapper: {
3745
3556
  display: "flex",
3746
3557
  gap: theme.spacing(2),
@@ -3765,15 +3576,15 @@ var useStyles19 = makeStyles19()((theme) => ({
3765
3576
  }
3766
3577
  }));
3767
3578
  var RowProductCard = ({ children, columns, location, product, size }) => {
3768
- const { classes, cx } = useStyles19();
3579
+ const { classes, cx } = useStyles17();
3769
3580
  const hasColumns = columns.length >= 1;
3770
3581
  const imageSize = {
3771
3582
  small: "c_productbust__image_sm",
3772
3583
  medium: "c_productbust__image_md",
3773
3584
  large: "c_productbust__image_lg"
3774
3585
  };
3775
- return /* @__PURE__ */ jsxs44(Paper4, { className: classes.wrapper, children: [
3776
- /* @__PURE__ */ jsx72(
3586
+ return /* @__PURE__ */ jsxs42(Paper4, { className: classes.wrapper, children: [
3587
+ /* @__PURE__ */ jsx70(
3777
3588
  ProductImage_default,
3778
3589
  {
3779
3590
  image: product.image,
@@ -3781,15 +3592,15 @@ var RowProductCard = ({ children, columns, location, product, size }) => {
3781
3592
  size: imageSize[size]
3782
3593
  }
3783
3594
  ),
3784
- /* @__PURE__ */ jsxs44(
3595
+ /* @__PURE__ */ jsxs42(
3785
3596
  "div",
3786
3597
  {
3787
3598
  className: cx(classes.content, {
3788
3599
  [classes.onlyProductName]: !hasColumns && !location
3789
3600
  }),
3790
3601
  children: [
3791
- /* @__PURE__ */ jsxs44(
3792
- Box13,
3602
+ /* @__PURE__ */ jsxs42(
3603
+ Box11,
3793
3604
  {
3794
3605
  className: classes.upperRow,
3795
3606
  sx: {
@@ -3798,26 +3609,26 @@ var RowProductCard = ({ children, columns, location, product, size }) => {
3798
3609
  alignItems: "center"
3799
3610
  },
3800
3611
  children: [
3801
- /* @__PURE__ */ jsxs44("div", { children: [
3802
- location ? /* @__PURE__ */ jsx72(Typography10, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
3803
- /* @__PURE__ */ jsx72(Typography10, { variant: "h6", children: product.name })
3612
+ /* @__PURE__ */ jsxs42("div", { children: [
3613
+ location ? /* @__PURE__ */ jsx70(Typography10, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
3614
+ /* @__PURE__ */ jsx70(Typography10, { variant: "h6", children: product.name })
3804
3615
  ] }),
3805
3616
  children
3806
3617
  ]
3807
3618
  }
3808
3619
  ),
3809
- hasColumns ? /* @__PURE__ */ jsxs44(Fragment3, { children: [
3810
- /* @__PURE__ */ jsx72(Divider2, { className: classes.divider }),
3811
- /* @__PURE__ */ jsx72(
3812
- Box13,
3620
+ hasColumns ? /* @__PURE__ */ jsxs42(Fragment3, { children: [
3621
+ /* @__PURE__ */ jsx70(Divider2, { className: classes.divider }),
3622
+ /* @__PURE__ */ jsx70(
3623
+ Box11,
3813
3624
  {
3814
3625
  sx: {
3815
3626
  display: "flex",
3816
3627
  gap: "24px"
3817
3628
  },
3818
- children: columns.map((column) => /* @__PURE__ */ jsxs44("div", { children: [
3819
- /* @__PURE__ */ jsx72(Typography10, { className: classes.smallTitle, variant: "caption", children: column.title }),
3820
- typeof column.value === "string" ? /* @__PURE__ */ jsx72(Typography10, { variant: "body1", children: column.value }) : column.value
3629
+ children: columns.map((column) => /* @__PURE__ */ jsxs42("div", { children: [
3630
+ /* @__PURE__ */ jsx70(Typography10, { className: classes.smallTitle, variant: "caption", children: column.title }),
3631
+ typeof column.value === "string" ? /* @__PURE__ */ jsx70(Typography10, { variant: "body1", children: column.value }) : column.value
3821
3632
  ] }, column.title))
3822
3633
  }
3823
3634
  )
@@ -3843,42 +3654,42 @@ RowProductCard.propTypes = {
3843
3654
  */
3844
3655
  columns: arrayOf(
3845
3656
  shape2({
3846
- title: string7,
3847
- value: oneOfType2([string7, node3])
3657
+ title: string5,
3658
+ value: oneOfType2([string5, node3])
3848
3659
  })
3849
3660
  ),
3850
3661
  /**
3851
3662
  * Where is the product location
3852
3663
  */
3853
- location: string7,
3664
+ location: string5,
3854
3665
  /**
3855
3666
  * Product information
3856
3667
  */
3857
3668
  product: shape2({
3858
- image: string7.isRequired,
3859
- name: string7.isRequired,
3860
- status: string7
3669
+ image: string5.isRequired,
3670
+ name: string5.isRequired,
3671
+ status: string5
3861
3672
  }).isRequired,
3862
- size: oneOf5(["small", "medium", "large"])
3673
+ size: oneOf3(["small", "medium", "large"])
3863
3674
  };
3864
3675
  var RowProductCard_default = RowProductCard;
3865
3676
 
3866
3677
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
3867
- import React61 from "react";
3868
- import Box15 from "@mui/material/Box";
3869
- import PropTypes6 from "prop-types";
3870
- import { makeStyles as makeStyles21 } from "tss-react/mui";
3678
+ import React60 from "react";
3679
+ import Box13 from "@mui/material/Box";
3680
+ import PropTypes5 from "prop-types";
3681
+ import { makeStyles as makeStyles19 } from "tss-react/mui";
3871
3682
 
3872
3683
  // src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
3873
- import React60 from "react";
3684
+ import React59 from "react";
3874
3685
  import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
3875
3686
  import ArrowDropUpIcon from "@mui/icons-material/ArrowDropUp";
3876
3687
  import SearchIcon from "@mui/icons-material/Search";
3877
- import { Box as Box14, Button as Button8, Divider as Divider3, InputBase, Paper as Paper5 } from "@mui/material";
3878
- import PropTypes5 from "prop-types";
3879
- import { makeStyles as makeStyles20 } from "tss-react/mui";
3880
- import { Fragment as Fragment4, jsx as jsx73, jsxs as jsxs45 } from "react/jsx-runtime";
3881
- var useStyles20 = makeStyles20()((theme) => ({
3688
+ import { Box as Box12, Button as Button8, Divider as Divider3, InputBase, Paper as Paper5 } from "@mui/material";
3689
+ import PropTypes4 from "prop-types";
3690
+ import { makeStyles as makeStyles18 } from "tss-react/mui";
3691
+ import { Fragment as Fragment4, jsx as jsx71, jsxs as jsxs43 } from "react/jsx-runtime";
3692
+ var useStyles18 = makeStyles18()((theme) => ({
3882
3693
  c_search: {
3883
3694
  height: 46,
3884
3695
  padding: "4px",
@@ -3936,8 +3747,8 @@ var SearchWithFiltersForTable = (props) => {
3936
3747
  enterPressedInSearch,
3937
3748
  searchedValue
3938
3749
  } = props;
3939
- const { classes } = useStyles20();
3940
- const [searchText, setSearchText] = React60.useState("");
3750
+ const { classes } = useStyles18();
3751
+ const [searchText, setSearchText] = React59.useState("");
3941
3752
  const handleTextChange = (e) => {
3942
3753
  const { value } = e.target;
3943
3754
  setSearchText(value);
@@ -3952,9 +3763,9 @@ var SearchWithFiltersForTable = (props) => {
3952
3763
  }
3953
3764
  };
3954
3765
  const ArrowIcon = isOpen ? ArrowDropUpIcon : ArrowDropDownIcon;
3955
- return /* @__PURE__ */ jsxs45(Paper5, { className: classes.c_search, children: [
3956
- /* @__PURE__ */ jsx73(Box14, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx73(SearchIcon, { className: classes.icon, fontSize: "small" }) }),
3957
- /* @__PURE__ */ jsx73(
3766
+ return /* @__PURE__ */ jsxs43(Paper5, { className: classes.c_search, children: [
3767
+ /* @__PURE__ */ jsx71(Box12, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx71(SearchIcon, { className: classes.icon, fontSize: "small" }) }),
3768
+ /* @__PURE__ */ jsx71(
3958
3769
  InputBase,
3959
3770
  {
3960
3771
  className: classes.c_search__input,
@@ -3964,22 +3775,22 @@ var SearchWithFiltersForTable = (props) => {
3964
3775
  onKeyDown: handleKeyPress
3965
3776
  }
3966
3777
  ),
3967
- showFilterButton && /* @__PURE__ */ jsxs45(Fragment4, { children: [
3968
- /* @__PURE__ */ jsx73(
3778
+ showFilterButton && /* @__PURE__ */ jsxs43(Fragment4, { children: [
3779
+ /* @__PURE__ */ jsx71(
3969
3780
  Divider3,
3970
3781
  {
3971
3782
  className: classes.c_search__divider,
3972
3783
  orientation: "vertical"
3973
3784
  }
3974
3785
  ),
3975
- /* @__PURE__ */ jsxs45(
3786
+ /* @__PURE__ */ jsxs43(
3976
3787
  Button8,
3977
3788
  {
3978
3789
  className: classes.c_search__bt_filter,
3979
3790
  onClick: handleFilterButtonClick,
3980
3791
  children: [
3981
3792
  "Filters",
3982
- /* @__PURE__ */ jsx73(ArrowIcon, { className: classes.c_search__bt_icon_filter })
3793
+ /* @__PURE__ */ jsx71(ArrowIcon, { className: classes.c_search__bt_icon_filter })
3983
3794
  ]
3984
3795
  }
3985
3796
  )
@@ -3987,18 +3798,18 @@ var SearchWithFiltersForTable = (props) => {
3987
3798
  ] });
3988
3799
  };
3989
3800
  SearchWithFiltersForTable.propTypes = {
3990
- onFilterButtonClick: PropTypes5.func,
3991
- isOpen: PropTypes5.bool,
3992
- updateSearch: PropTypes5.func,
3993
- enterPressedInSearch: PropTypes5.func,
3994
- showFilterButton: PropTypes5.bool,
3995
- searchedValue: PropTypes5.string
3801
+ onFilterButtonClick: PropTypes4.func,
3802
+ isOpen: PropTypes4.bool,
3803
+ updateSearch: PropTypes4.func,
3804
+ enterPressedInSearch: PropTypes4.func,
3805
+ showFilterButton: PropTypes4.bool,
3806
+ searchedValue: PropTypes4.string
3996
3807
  };
3997
- var SearchWithFiltersForTable_default = React60.memo(SearchWithFiltersForTable);
3808
+ var SearchWithFiltersForTable_default = React59.memo(SearchWithFiltersForTable);
3998
3809
 
3999
3810
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
4000
- import { jsx as jsx74, jsxs as jsxs46 } from "react/jsx-runtime";
4001
- var useStyles21 = makeStyles21()((theme) => ({
3811
+ import { jsx as jsx72, jsxs as jsxs44 } from "react/jsx-runtime";
3812
+ var useStyles19 = makeStyles19()((theme) => ({
4002
3813
  container: {
4003
3814
  display: "flex",
4004
3815
  alignItems: "center",
@@ -4028,11 +3839,11 @@ var SearchAndFilterHeaderForTable = (props) => {
4028
3839
  button,
4029
3840
  searchedValue
4030
3841
  } = props;
4031
- const { classes } = useStyles21();
4032
- return /* @__PURE__ */ jsxs46(Box15, { className: classes.container, children: [
4033
- /* @__PURE__ */ jsxs46(Box15, { className: classes.leftSection, children: [
4034
- /* @__PURE__ */ jsx74(AppLabel_default, { appName }),
4035
- /* @__PURE__ */ jsx74(
3842
+ const { classes } = useStyles19();
3843
+ return /* @__PURE__ */ jsxs44(Box13, { className: classes.container, children: [
3844
+ /* @__PURE__ */ jsxs44(Box13, { className: classes.leftSection, children: [
3845
+ /* @__PURE__ */ jsx72(AppLabel_default, { appName }),
3846
+ /* @__PURE__ */ jsx72(
4036
3847
  SearchWithFiltersForTable_default,
4037
3848
  {
4038
3849
  onFilterButtonClick,
@@ -4043,41 +3854,41 @@ var SearchAndFilterHeaderForTable = (props) => {
4043
3854
  searchedValue
4044
3855
  }
4045
3856
  ),
4046
- copy && /* @__PURE__ */ jsx74(
4047
- Box15,
3857
+ copy && /* @__PURE__ */ jsx72(
3858
+ Box13,
4048
3859
  {
4049
3860
  sx: {
4050
3861
  margin: 0.5
4051
3862
  },
4052
- children: /* @__PURE__ */ jsx74(OutlinedButton_default, { copy })
3863
+ children: /* @__PURE__ */ jsx72(OutlinedButton_default, { copy })
4053
3864
  }
4054
3865
  )
4055
3866
  ] }),
4056
- /* @__PURE__ */ jsx74(Box15, { children: button })
3867
+ /* @__PURE__ */ jsx72(Box13, { children: button })
4057
3868
  ] });
4058
3869
  };
4059
3870
  SearchAndFilterHeaderForTable.propTypes = {
4060
- appName: PropTypes6.string,
4061
- button: PropTypes6.node,
4062
- copy: PropTypes6.string,
4063
- enterPressedInSearch: PropTypes6.func,
4064
- isOpen: PropTypes6.bool,
4065
- onFilterButtonClick: PropTypes6.func,
4066
- searchedValue: PropTypes6.string,
4067
- showFilterButton: PropTypes6.bool,
4068
- updateSearch: PropTypes6.func
3871
+ appName: PropTypes5.string,
3872
+ button: PropTypes5.node,
3873
+ copy: PropTypes5.string,
3874
+ enterPressedInSearch: PropTypes5.func,
3875
+ isOpen: PropTypes5.bool,
3876
+ onFilterButtonClick: PropTypes5.func,
3877
+ searchedValue: PropTypes5.string,
3878
+ showFilterButton: PropTypes5.bool,
3879
+ updateSearch: PropTypes5.func
4069
3880
  };
4070
- var SearchAndFilterHeaderForTable_default = React61.memo(SearchAndFilterHeaderForTable);
3881
+ var SearchAndFilterHeaderForTable_default = React60.memo(SearchAndFilterHeaderForTable);
4071
3882
 
4072
3883
  // src/components/SearchWithFilters/SearchWithFilters.tsx
4073
- import React62, { useState as useState4, useEffect as useEffect3 } from "react";
3884
+ import React61, { useState as useState4, useEffect as useEffect3 } from "react";
4074
3885
  import ArrowDropDownIcon2 from "@mui/icons-material/ArrowDropDown";
4075
3886
  import ArrowDropUpIcon2 from "@mui/icons-material/ArrowDropUp";
4076
3887
  import SearchIcon2 from "@mui/icons-material/Search";
4077
3888
  import { Button as Button9, Divider as Divider4, InputBase as InputBase2, Paper as Paper6 } from "@mui/material";
4078
- import { makeStyles as makeStyles22 } from "tss-react/mui";
4079
- import { jsx as jsx75, jsxs as jsxs47 } from "react/jsx-runtime";
4080
- var useStyles22 = makeStyles22()((theme) => ({
3889
+ import { makeStyles as makeStyles20 } from "tss-react/mui";
3890
+ import { jsx as jsx73, jsxs as jsxs45 } from "react/jsx-runtime";
3891
+ var useStyles20 = makeStyles20()((theme) => ({
4081
3892
  searchContainer: {
4082
3893
  height: 46,
4083
3894
  padding: "4px",
@@ -4122,7 +3933,7 @@ var SearchWithFilters = ({
4122
3933
  disabled = false
4123
3934
  }) => {
4124
3935
  const [searchText, setSearchText] = useState4(searchValue);
4125
- const { classes } = useStyles22();
3936
+ const { classes } = useStyles20();
4126
3937
  const handleTextChange = (e) => {
4127
3938
  const { value } = e.target;
4128
3939
  setSearchText(value);
@@ -4130,15 +3941,15 @@ var SearchWithFilters = ({
4130
3941
  };
4131
3942
  const handleKeyDown = (e) => {
4132
3943
  if (e.key === "Enter") {
4133
- enterPressedInSearch == null ? void 0 : enterPressedInSearch();
3944
+ enterPressedInSearch?.();
4134
3945
  }
4135
3946
  };
4136
3947
  useEffect3(() => {
4137
3948
  setSearchText(searchValue);
4138
3949
  }, [searchValue]);
4139
- return /* @__PURE__ */ jsxs47(Paper6, { className: classes.searchContainer, children: [
4140
- /* @__PURE__ */ jsx75(SearchIcon2, { className: classes.icon, fontSize: "small" }),
4141
- /* @__PURE__ */ jsx75(
3950
+ return /* @__PURE__ */ jsxs45(Paper6, { className: classes.searchContainer, children: [
3951
+ /* @__PURE__ */ jsx73(SearchIcon2, { className: classes.icon, fontSize: "small" }),
3952
+ /* @__PURE__ */ jsx73(
4142
3953
  InputBase2,
4143
3954
  {
4144
3955
  className: classes.input,
@@ -4150,8 +3961,8 @@ var SearchWithFilters = ({
4150
3961
  inputProps: { "aria-label": "search" }
4151
3962
  }
4152
3963
  ),
4153
- /* @__PURE__ */ jsx75(Divider4, { className: classes.divider, orientation: "vertical" }),
4154
- /* @__PURE__ */ jsxs47(
3964
+ /* @__PURE__ */ jsx73(Divider4, { className: classes.divider, orientation: "vertical" }),
3965
+ /* @__PURE__ */ jsxs45(
4155
3966
  Button9,
4156
3967
  {
4157
3968
  className: classes.filterButton,
@@ -4159,20 +3970,20 @@ var SearchWithFilters = ({
4159
3970
  disabled,
4160
3971
  children: [
4161
3972
  "Filters",
4162
- showFilters ? /* @__PURE__ */ jsx75(ArrowDropUpIcon2, {}) : /* @__PURE__ */ jsx75(ArrowDropDownIcon2, {})
3973
+ showFilters ? /* @__PURE__ */ jsx73(ArrowDropUpIcon2, {}) : /* @__PURE__ */ jsx73(ArrowDropDownIcon2, {})
4163
3974
  ]
4164
3975
  }
4165
3976
  )
4166
3977
  ] });
4167
3978
  };
4168
- var SearchWithFilters_default = React62.memo(SearchWithFilters);
3979
+ var SearchWithFilters_default = React61.memo(SearchWithFilters);
4169
3980
 
4170
3981
  // src/components/SectionName/SectionName.tsx
4171
3982
  import InfoIcon from "@mui/icons-material/Info";
4172
- import { Box as Box16, Tooltip as Tooltip3, Typography as Typography11 } from "@mui/material";
4173
- import { makeStyles as makeStyles23 } from "tss-react/mui";
4174
- import { jsx as jsx76, jsxs as jsxs48 } from "react/jsx-runtime";
4175
- var useStyles23 = makeStyles23()(() => ({
3983
+ import { Box as Box14, Tooltip as Tooltip3, Typography as Typography11 } from "@mui/material";
3984
+ import { makeStyles as makeStyles21 } from "tss-react/mui";
3985
+ import { jsx as jsx74, jsxs as jsxs46 } from "react/jsx-runtime";
3986
+ var useStyles21 = makeStyles21()(() => ({
4176
3987
  container: {
4177
3988
  display: "flex",
4178
3989
  alignItems: "flex-end",
@@ -4206,10 +4017,10 @@ var SectionName = ({
4206
4017
  buttonText,
4207
4018
  buttonDisabled
4208
4019
  }) => {
4209
- const { classes } = useStyles23();
4210
- return /* @__PURE__ */ jsxs48(Box16, { className: classes.container, children: [
4211
- /* @__PURE__ */ jsxs48(Box16, { className: classes.titleContainer, children: [
4212
- /* @__PURE__ */ jsx76(
4020
+ const { classes } = useStyles21();
4021
+ return /* @__PURE__ */ jsxs46(Box14, { className: classes.container, children: [
4022
+ /* @__PURE__ */ jsxs46(Box14, { className: classes.titleContainer, children: [
4023
+ /* @__PURE__ */ jsx74(
4213
4024
  Typography11,
4214
4025
  {
4215
4026
  variant: "h5",
@@ -4219,7 +4030,7 @@ var SectionName = ({
4219
4030
  children: name
4220
4031
  }
4221
4032
  ),
4222
- tooltipDescription ? /* @__PURE__ */ jsx76(Tooltip3, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ jsx76(
4033
+ tooltipDescription ? /* @__PURE__ */ jsx74(Tooltip3, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ jsx74(
4223
4034
  InfoIcon,
4224
4035
  {
4225
4036
  fontSize: "small",
@@ -4228,7 +4039,7 @@ var SectionName = ({
4228
4039
  }
4229
4040
  ) }) : null
4230
4041
  ] }),
4231
- buttonText ? /* @__PURE__ */ jsx76(
4042
+ buttonText ? /* @__PURE__ */ jsx74(
4232
4043
  ExtendedButton_default,
4233
4044
  {
4234
4045
  type: "add",
@@ -4246,14 +4057,14 @@ var SectionName = ({
4246
4057
  var SectionName_default = SectionName;
4247
4058
 
4248
4059
  // src/components/Shift/Shift.tsx
4249
- import { Box as Box17, Typography as Typography12 } from "@mui/material";
4250
- import { oneOf as oneOf6 } from "prop-types";
4251
- import { makeStyles as makeStyles24 } from "tss-react/mui";
4060
+ import { Box as Box15, Typography as Typography12 } from "@mui/material";
4061
+ import { oneOf as oneOf4 } from "prop-types";
4062
+ import { makeStyles as makeStyles22 } from "tss-react/mui";
4252
4063
 
4253
4064
  // src/resources/icons/DayIcon.js
4254
- import React63 from "react";
4255
- import { jsx as jsx77 } from "react/jsx-runtime";
4256
- var DayIcon = (props) => /* @__PURE__ */ jsx77(
4065
+ import React62 from "react";
4066
+ import { jsx as jsx75 } from "react/jsx-runtime";
4067
+ var DayIcon = (props) => /* @__PURE__ */ jsx75(
4257
4068
  "svg",
4258
4069
  {
4259
4070
  fill: "none",
@@ -4262,7 +4073,7 @@ var DayIcon = (props) => /* @__PURE__ */ jsx77(
4262
4073
  width: 22,
4263
4074
  xmlns: "http://www.w3.org/2000/svg",
4264
4075
  ...props,
4265
- children: /* @__PURE__ */ jsx77(
4076
+ children: /* @__PURE__ */ jsx75(
4266
4077
  "path",
4267
4078
  {
4268
4079
  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",
@@ -4274,9 +4085,9 @@ var DayIcon = (props) => /* @__PURE__ */ jsx77(
4274
4085
  var DayIcon_default = DayIcon;
4275
4086
 
4276
4087
  // src/resources/icons/NightIcon.js
4277
- import React64 from "react";
4278
- import { jsx as jsx78 } from "react/jsx-runtime";
4279
- var NightIcon = (props) => /* @__PURE__ */ jsx78(
4088
+ import React63 from "react";
4089
+ import { jsx as jsx76 } from "react/jsx-runtime";
4090
+ var NightIcon = (props) => /* @__PURE__ */ jsx76(
4280
4091
  "svg",
4281
4092
  {
4282
4093
  fill: "none",
@@ -4285,7 +4096,7 @@ var NightIcon = (props) => /* @__PURE__ */ jsx78(
4285
4096
  width: "14",
4286
4097
  xmlns: "http://www.w3.org/2000/svg",
4287
4098
  ...props,
4288
- children: /* @__PURE__ */ jsx78(
4099
+ children: /* @__PURE__ */ jsx76(
4289
4100
  "path",
4290
4101
  {
4291
4102
  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",
@@ -4297,12 +4108,12 @@ var NightIcon = (props) => /* @__PURE__ */ jsx78(
4297
4108
  var NightIcon_default = NightIcon;
4298
4109
 
4299
4110
  // src/components/Shift/Shift.tsx
4300
- import { jsx as jsx79, jsxs as jsxs49 } from "react/jsx-runtime";
4111
+ import { jsx as jsx77, jsxs as jsxs47 } from "react/jsx-runtime";
4301
4112
  var ShiftEnum = {
4302
4113
  DAY: "Day",
4303
4114
  NIGHT: "Night"
4304
4115
  };
4305
- var useStyles24 = makeStyles24()(() => ({
4116
+ var useStyles22 = makeStyles22()(() => ({
4306
4117
  shiftName: {
4307
4118
  textTransform: "uppercase",
4308
4119
  fontWeight: 600
@@ -4310,12 +4121,12 @@ var useStyles24 = makeStyles24()(() => ({
4310
4121
  }));
4311
4122
  var Shift = ({ shift }) => {
4312
4123
  const shiftIcon = {
4313
- [ShiftEnum.DAY]: /* @__PURE__ */ jsx79(DayIcon_default, { "data-testid": "shift-day" }),
4314
- [ShiftEnum.NIGHT]: /* @__PURE__ */ jsx79(NightIcon_default, { "data-testid": "shift-night" })
4124
+ [ShiftEnum.DAY]: /* @__PURE__ */ jsx77(DayIcon_default, { "data-testid": "shift-day" }),
4125
+ [ShiftEnum.NIGHT]: /* @__PURE__ */ jsx77(NightIcon_default, { "data-testid": "shift-night" })
4315
4126
  };
4316
- const { classes } = useStyles24();
4317
- return /* @__PURE__ */ jsxs49(
4318
- Box17,
4127
+ const { classes } = useStyles22();
4128
+ return /* @__PURE__ */ jsxs47(
4129
+ Box15,
4319
4130
  {
4320
4131
  sx: {
4321
4132
  display: "flex",
@@ -4324,30 +4135,30 @@ var Shift = ({ shift }) => {
4324
4135
  },
4325
4136
  children: [
4326
4137
  shiftIcon[shift],
4327
- /* @__PURE__ */ jsxs49(Typography12, { children: [
4328
- /* @__PURE__ */ jsxs49("span", { className: classes.shiftName, children: [
4138
+ /* @__PURE__ */ jsxs47(Typography12, { children: [
4139
+ /* @__PURE__ */ jsxs47("span", { className: classes.shiftName, children: [
4329
4140
  shift,
4330
4141
  " "
4331
4142
  ] }),
4332
- /* @__PURE__ */ jsx79("span", { children: "Shift" })
4143
+ /* @__PURE__ */ jsx77("span", { children: "Shift" })
4333
4144
  ] })
4334
4145
  ]
4335
4146
  }
4336
4147
  );
4337
4148
  };
4338
4149
  Shift.propTypes = {
4339
- shift: oneOf6(Object.values(ShiftEnum))
4150
+ shift: oneOf4(Object.values(ShiftEnum))
4340
4151
  };
4341
4152
  var Shift_default = Shift;
4342
4153
 
4343
4154
  // src/components/surfaces/FixedFooter/index.js
4344
- import React65 from "react";
4345
- import { Box as Box18 } from "@mui/material";
4346
- import PropTypes7 from "prop-types";
4347
- import { makeStyles as makeStyles25 } from "tss-react/mui";
4348
- import { jsx as jsx80, jsxs as jsxs50 } from "react/jsx-runtime";
4155
+ import React64 from "react";
4156
+ import { Box as Box16 } from "@mui/material";
4157
+ import PropTypes6 from "prop-types";
4158
+ import { makeStyles as makeStyles23 } from "tss-react/mui";
4159
+ import { jsx as jsx78, jsxs as jsxs48 } from "react/jsx-runtime";
4349
4160
  var footerHeight = "64px";
4350
- var useStyles25 = makeStyles25()((theme) => ({
4161
+ var useStyles23 = makeStyles23()((theme) => ({
4351
4162
  root: {
4352
4163
  position: "fixed",
4353
4164
  bottom: 0,
@@ -4365,11 +4176,11 @@ var useStyles25 = makeStyles25()((theme) => ({
4365
4176
  }
4366
4177
  }));
4367
4178
  var FixedFooter = ({ justifyContent, children }) => {
4368
- const { classes } = useStyles25();
4369
- return /* @__PURE__ */ jsxs50(Box18, { children: [
4370
- /* @__PURE__ */ jsx80(Box18, { className: classes.fixedOffset }),
4371
- /* @__PURE__ */ jsx80(
4372
- Box18,
4179
+ const { classes } = useStyles23();
4180
+ return /* @__PURE__ */ jsxs48(Box16, { children: [
4181
+ /* @__PURE__ */ jsx78(Box16, { className: classes.fixedOffset }),
4182
+ /* @__PURE__ */ jsx78(
4183
+ Box16,
4373
4184
  {
4374
4185
  className: classes.root,
4375
4186
  sx: {
@@ -4381,21 +4192,21 @@ var FixedFooter = ({ justifyContent, children }) => {
4381
4192
  ] });
4382
4193
  };
4383
4194
  FixedFooter.propTypes = {
4384
- children: PropTypes7.node.isRequired,
4385
- justifyContent: PropTypes7.string
4195
+ children: PropTypes6.node.isRequired,
4196
+ justifyContent: PropTypes6.string
4386
4197
  };
4387
- var FixedFooter_default = React65.memo(FixedFooter);
4198
+ var FixedFooter_default = React64.memo(FixedFooter);
4388
4199
 
4389
4200
  // src/components/Table/SmartTableHeader.js
4390
- import React66 from "react";
4201
+ import React65 from "react";
4391
4202
  import TableCell from "@mui/material/TableCell";
4392
4203
  import TableHead from "@mui/material/TableHead";
4393
4204
  import TableRow from "@mui/material/TableRow";
4394
4205
  import TableSortLabel from "@mui/material/TableSortLabel";
4395
- import PropTypes8 from "prop-types";
4396
- import { makeStyles as makeStyles26 } from "tss-react/mui";
4397
- import { jsx as jsx81, jsxs as jsxs51 } from "react/jsx-runtime";
4398
- var useStyles26 = makeStyles26()(() => ({
4206
+ import PropTypes7 from "prop-types";
4207
+ import { makeStyles as makeStyles24 } from "tss-react/mui";
4208
+ import { jsx as jsx79, jsxs as jsxs49 } from "react/jsx-runtime";
4209
+ var useStyles24 = makeStyles24()(() => ({
4399
4210
  root: {
4400
4211
  backgroundColor: colors.background,
4401
4212
  "& .MuiTableSortLabel-root": {
@@ -4423,18 +4234,18 @@ var useStyles26 = makeStyles26()(() => ({
4423
4234
  }
4424
4235
  }));
4425
4236
  var SmartTableHeader = (props) => {
4426
- const { classes } = useStyles26();
4237
+ const { classes } = useStyles24();
4427
4238
  const { order, orderBy, onRequestSort } = props;
4428
4239
  const createSortHandler = (property) => (event) => {
4429
4240
  onRequestSort(event, property);
4430
4241
  };
4431
- return /* @__PURE__ */ jsx81(TableHead, { className: classes.root, children: /* @__PURE__ */ jsx81(TableRow, { children: props.headCells.map((headCell) => /* @__PURE__ */ jsx81(
4242
+ return /* @__PURE__ */ jsx79(TableHead, { className: classes.root, children: /* @__PURE__ */ jsx79(TableRow, { children: props.headCells.map((headCell) => /* @__PURE__ */ jsx79(
4432
4243
  TableCell,
4433
4244
  {
4434
4245
  className: classes.containerTh,
4435
4246
  align: "left",
4436
4247
  sortDirection: orderBy === headCell.id ? order : false,
4437
- children: /* @__PURE__ */ jsxs51(
4248
+ children: /* @__PURE__ */ jsxs49(
4438
4249
  TableSortLabel,
4439
4250
  {
4440
4251
  active: orderBy === headCell.id,
@@ -4442,7 +4253,7 @@ var SmartTableHeader = (props) => {
4442
4253
  onClick: createSortHandler(headCell.id),
4443
4254
  children: [
4444
4255
  headCell.label,
4445
- orderBy === headCell.id ? /* @__PURE__ */ jsx81("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
4256
+ orderBy === headCell.id ? /* @__PURE__ */ jsx79("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
4446
4257
  ]
4447
4258
  }
4448
4259
  )
@@ -4451,12 +4262,12 @@ var SmartTableHeader = (props) => {
4451
4262
  )) }) });
4452
4263
  };
4453
4264
  SmartTableHeader.propTypes = {
4454
- order: PropTypes8.string,
4455
- orderBy: PropTypes8.string,
4456
- onRequestSort: PropTypes8.func,
4457
- headCells: PropTypes8.any
4265
+ order: PropTypes7.string,
4266
+ orderBy: PropTypes7.string,
4267
+ onRequestSort: PropTypes7.func,
4268
+ headCells: PropTypes7.any
4458
4269
  };
4459
- var SmartTableHeader_default = React66.memo(SmartTableHeader);
4270
+ var SmartTableHeader_default = React65.memo(SmartTableHeader);
4460
4271
 
4461
4272
  // src/components/Table/TableDesktop.tsx
4462
4273
  import { useState as useState5 } from "react";
@@ -4467,13 +4278,13 @@ import {
4467
4278
  TableContainer,
4468
4279
  Skeleton
4469
4280
  } from "@mui/material";
4470
- import { makeStyles as makeStyles28 } from "tss-react/mui";
4281
+ import { makeStyles as makeStyles26 } from "tss-react/mui";
4471
4282
 
4472
4283
  // src/components/Table/TableEmptyResult.tsx
4473
4284
  import { TableCell as TableCell2, TableRow as TableRow2, Typography as Typography13 } from "@mui/material";
4474
- import { makeStyles as makeStyles27 } from "tss-react/mui";
4475
- import { jsx as jsx82, jsxs as jsxs52 } from "react/jsx-runtime";
4476
- var useStyles27 = makeStyles27()(() => ({
4285
+ import { makeStyles as makeStyles25 } from "tss-react/mui";
4286
+ import { jsx as jsx80, jsxs as jsxs50 } from "react/jsx-runtime";
4287
+ var useStyles25 = makeStyles25()(() => ({
4477
4288
  tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
4478
4289
  tableCellDefault: { padding: 24 }
4479
4290
  }));
@@ -4482,12 +4293,12 @@ var TableEmptyResult = ({
4482
4293
  handleClickOnClearFiltersButton = () => {
4483
4294
  }
4484
4295
  }) => {
4485
- const { classes } = useStyles27();
4486
- return showClearFilterButton ? /* @__PURE__ */ jsx82(TableRow2, { children: /* @__PURE__ */ jsxs52(TableCell2, { className: classes.tableCellIcon, colSpan: 8, align: "center", children: [
4487
- /* @__PURE__ */ jsx82(EmptyGlassIcon_default, {}),
4488
- /* @__PURE__ */ jsx82(Typography13, { variant: "h6", children: "No results found." }),
4489
- /* @__PURE__ */ jsx82(Typography13, { variant: "subtitle1", children: "Search without applied filters?" }),
4490
- /* @__PURE__ */ jsx82(
4296
+ const { classes } = useStyles25();
4297
+ return showClearFilterButton ? /* @__PURE__ */ jsx80(TableRow2, { children: /* @__PURE__ */ jsxs50(TableCell2, { className: classes.tableCellIcon, colSpan: 8, align: "center", children: [
4298
+ /* @__PURE__ */ jsx80(EmptyGlassIcon_default, {}),
4299
+ /* @__PURE__ */ jsx80(Typography13, { variant: "h6", children: "No results found." }),
4300
+ /* @__PURE__ */ jsx80(Typography13, { variant: "subtitle1", children: "Search without applied filters?" }),
4301
+ /* @__PURE__ */ jsx80(
4491
4302
  FilledButton_default,
4492
4303
  {
4493
4304
  copy: "Search",
@@ -4496,7 +4307,7 @@ var TableEmptyResult = ({
4496
4307
  onClick: handleClickOnClearFiltersButton
4497
4308
  }
4498
4309
  )
4499
- ] }) }) : /* @__PURE__ */ jsx82(TableRow2, { children: /* @__PURE__ */ jsx82(
4310
+ ] }) }) : /* @__PURE__ */ jsx80(TableRow2, { children: /* @__PURE__ */ jsx80(
4500
4311
  TableCell2,
4501
4312
  {
4502
4313
  className: classes.tableCellDefault,
@@ -4509,8 +4320,8 @@ var TableEmptyResult = ({
4509
4320
  var TableEmptyResult_default = TableEmptyResult;
4510
4321
 
4511
4322
  // src/components/Table/TableDesktop.tsx
4512
- import { Fragment as Fragment5, jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
4513
- var useStyles28 = makeStyles28()(() => ({
4323
+ import { Fragment as Fragment5, jsx as jsx81, jsxs as jsxs51 } from "react/jsx-runtime";
4324
+ var useStyles26 = makeStyles26()(() => ({
4514
4325
  root: {
4515
4326
  justifyContent: "space-between",
4516
4327
  display: "flex",
@@ -4556,13 +4367,13 @@ var TableDesktop = ({
4556
4367
  keyField
4557
4368
  }) => {
4558
4369
  const [order, setOrder] = useState5(
4559
- (appliedFilters == null ? void 0 : appliedFilters.sortDir) || "desc"
4370
+ appliedFilters?.sortDir || "desc"
4560
4371
  );
4561
4372
  const [orderBy, setOrderBy] = useState5(
4562
- (appliedFilters == null ? void 0 : appliedFilters.sortField) || "delivery_date"
4373
+ appliedFilters?.sortField || "delivery_date"
4563
4374
  );
4564
4375
  const [page] = useState5(0);
4565
- const { classes } = useStyles28();
4376
+ const { classes } = useStyles26();
4566
4377
  const rowHeight = 56;
4567
4378
  const handleRequestSort = (event, property) => {
4568
4379
  const isAsc = orderBy === property && order === "asc";
@@ -4572,7 +4383,7 @@ var TableDesktop = ({
4572
4383
  updateSort(property, orderDir);
4573
4384
  };
4574
4385
  const emptyRows = rowsPerPage - data.length;
4575
- return /* @__PURE__ */ jsx83("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsx83(Paper7, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx83("div", { children: [...Array(Math.floor(rowsPerPage))].map(() => /* @__PURE__ */ jsx83(
4386
+ return /* @__PURE__ */ jsx81("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsx81(Paper7, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx81("div", { children: [...Array(Math.floor(rowsPerPage))].map((rowPerPage) => /* @__PURE__ */ jsx81(
4576
4387
  Skeleton,
4577
4388
  {
4578
4389
  animation: "pulse",
@@ -4580,16 +4391,16 @@ var TableDesktop = ({
4580
4391
  variant: "rectangular",
4581
4392
  height: rowHeight
4582
4393
  },
4583
- Math.random()
4584
- )) }) : /* @__PURE__ */ jsxs53(Fragment5, { children: [
4585
- /* @__PURE__ */ jsx83(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs53(
4394
+ rowPerPage
4395
+ )) }) : /* @__PURE__ */ jsxs51(Fragment5, { children: [
4396
+ /* @__PURE__ */ jsx81(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs51(
4586
4397
  Table,
4587
4398
  {
4588
4399
  "aria-labelledby": "tableTitle",
4589
4400
  "aria-label": "sticky table",
4590
4401
  stickyHeader: true,
4591
4402
  children: [
4592
- /* @__PURE__ */ jsx83(
4403
+ /* @__PURE__ */ jsx81(
4593
4404
  SmartTableHeader_default,
4594
4405
  {
4595
4406
  headCells,
@@ -4598,15 +4409,15 @@ var TableDesktop = ({
4598
4409
  onRequestSort: handleRequestSort
4599
4410
  }
4600
4411
  ),
4601
- /* @__PURE__ */ jsxs53(TableBody, { children: [
4602
- stableSort(data, getSorting(order, orderBy)).slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((item, index) => /* @__PURE__ */ jsx83(
4412
+ /* @__PURE__ */ jsxs51(TableBody, { children: [
4413
+ stableSort(data, getSorting(order, orderBy)).slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((item, index) => /* @__PURE__ */ jsx81(
4603
4414
  RenderItem,
4604
4415
  {
4605
4416
  ...{ ...item, index, deleteItem }
4606
4417
  },
4607
4418
  item[keyField]
4608
4419
  )),
4609
- rowsPerPage === emptyRows && /* @__PURE__ */ jsx83(
4420
+ rowsPerPage === emptyRows && /* @__PURE__ */ jsx81(
4610
4421
  TableEmptyResult_default,
4611
4422
  {
4612
4423
  showClearFilterButton,
@@ -4626,10 +4437,10 @@ var TableDesktop_default = TableDesktop;
4626
4437
  import { memo as memo4, useEffect as useEffect4, useState as useState6 } from "react";
4627
4438
  import ImportExportIcon from "@mui/icons-material/ImportExport";
4628
4439
  import { TableCell as TableCell3, TableHead as TableHead2, TableRow as TableRow3, TableSortLabel as TableSortLabel2 } from "@mui/material";
4629
- import { arrayOf as arrayOf2, bool as bool5, func as func6, oneOf as oneOf7, shape as shape3, string as string8 } from "prop-types";
4630
- import { makeStyles as makeStyles29 } from "tss-react/mui";
4631
- import { jsx as jsx84 } from "react/jsx-runtime";
4632
- var useStyles29 = makeStyles29()(() => ({
4440
+ import { arrayOf as arrayOf2, bool as bool4, func as func4, oneOf as oneOf5, shape as shape3, string as string6 } from "prop-types";
4441
+ import { makeStyles as makeStyles27 } from "tss-react/mui";
4442
+ import { jsx as jsx82 } from "react/jsx-runtime";
4443
+ var useStyles27 = makeStyles27()(() => ({
4633
4444
  sortLabel: {
4634
4445
  "& .MuiTableSortLabel-icon": {
4635
4446
  opacity: 1
@@ -4638,7 +4449,7 @@ var useStyles29 = makeStyles29()(() => ({
4638
4449
  }));
4639
4450
  var TableHeader = ({ cells, onSort }) => {
4640
4451
  const [sortableCells, setSortableCells] = useState6([]);
4641
- const { classes } = useStyles29();
4452
+ const { classes } = useStyles27();
4642
4453
  useEffect4(() => {
4643
4454
  setSortableCells(cells);
4644
4455
  }, []);
@@ -4652,7 +4463,7 @@ var TableHeader = ({ cells, onSort }) => {
4652
4463
  return "";
4653
4464
  };
4654
4465
  const handleSortClick = (sortedCell) => {
4655
- const newDirection = getNewSortDirection(sortedCell == null ? void 0 : sortedCell.direction);
4466
+ const newDirection = getNewSortDirection(sortedCell?.direction);
4656
4467
  if (onSort) {
4657
4468
  onSort({
4658
4469
  direction: newDirection,
@@ -4673,11 +4484,11 @@ var TableHeader = ({ cells, onSort }) => {
4673
4484
  });
4674
4485
  setSortableCells(sortedCells);
4675
4486
  };
4676
- return /* @__PURE__ */ jsx84(TableHead2, { children: /* @__PURE__ */ jsx84(TableRow3, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx84(TableCell3, { children: cell.isSortable ? /* @__PURE__ */ jsx84(
4487
+ return /* @__PURE__ */ jsx82(TableHead2, { children: /* @__PURE__ */ jsx82(TableRow3, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx82(TableCell3, { children: cell.isSortable ? /* @__PURE__ */ jsx82(
4677
4488
  TableSortLabel2,
4678
4489
  {
4679
4490
  className: classes.sortLabel,
4680
- direction: (cell == null ? void 0 : cell.direction) || "asc",
4491
+ direction: cell?.direction || "asc",
4681
4492
  IconComponent: ImportExportIcon,
4682
4493
  onClick: () => handleSortClick(cell),
4683
4494
  children: cell.label
@@ -4690,15 +4501,85 @@ TableHeader.defaultProps = {
4690
4501
  TableHeader.propTypes = {
4691
4502
  cells: arrayOf2(
4692
4503
  shape3({
4693
- direction: oneOf7(["asc", "desc", ""]),
4694
- isSortable: bool5,
4695
- label: string8,
4696
- name: string8
4504
+ direction: oneOf5(["asc", "desc", ""]),
4505
+ isSortable: bool4,
4506
+ label: string6,
4507
+ name: string6
4697
4508
  })
4698
4509
  ).isRequired,
4699
- onSort: func6
4510
+ onSort: func4
4700
4511
  };
4701
4512
  var TableHeader_default = memo4(TableHeader);
4513
+
4514
+ // src/components/TheToolbar/TheToolbar.tsx
4515
+ import React68 from "react";
4516
+ import { AppBar as AppBar2, Box as Box17, Toolbar as Toolbar2 } from "@mui/material";
4517
+ import { makeStyles as makeStyles28 } from "tss-react/mui";
4518
+ import { jsx as jsx83, jsxs as jsxs52 } from "react/jsx-runtime";
4519
+ var useStyles28 = makeStyles28()((theme) => ({
4520
+ menuButton: {
4521
+ color: theme.palette.primary.contrastText
4522
+ },
4523
+ searchNatoora: {
4524
+ width: "100%"
4525
+ },
4526
+ searchIcon: {
4527
+ opacity: ".5"
4528
+ },
4529
+ inputRoot: {
4530
+ color: "inherit"
4531
+ },
4532
+ inputInput: {
4533
+ transition: theme.transitions.create("width"),
4534
+ width: "100%"
4535
+ },
4536
+ topBar: {
4537
+ display: "flex",
4538
+ gap: theme.spacing(1),
4539
+ backgroundColor: colors.topBar
4540
+ },
4541
+ drawer: {
4542
+ backgroundColor: "black"
4543
+ },
4544
+ drawerItem: {
4545
+ maxWidth: "300px",
4546
+ width: "80vw"
4547
+ },
4548
+ offset: theme.mixins.toolbar
4549
+ }));
4550
+ var TheToolbar = ({
4551
+ imageLogoDarkSmall,
4552
+ imageLogoLightSmall,
4553
+ handleOpen,
4554
+ LeftDrawer: LeftDrawer2
4555
+ }) => {
4556
+ const { classes } = useStyles28();
4557
+ return /* @__PURE__ */ jsxs52(Box17, { children: [
4558
+ /* @__PURE__ */ jsx83(AppBar2, { children: /* @__PURE__ */ jsxs52(Toolbar2, { className: classes.topBar, children: [
4559
+ /* @__PURE__ */ jsx83(
4560
+ RoundButton_default,
4561
+ {
4562
+ className: classes.menuButton,
4563
+ icon: "menu",
4564
+ noStrokes: true,
4565
+ onClick: handleOpen
4566
+ }
4567
+ ),
4568
+ /* @__PURE__ */ jsx83(
4569
+ CompanyLogo_default,
4570
+ {
4571
+ size: "small",
4572
+ color: "light",
4573
+ imageLogoDarkSmall,
4574
+ imageLogoLightSmall
4575
+ }
4576
+ )
4577
+ ] }) }),
4578
+ /* @__PURE__ */ jsx83(Box17, { className: classes.offset }),
4579
+ LeftDrawer2
4580
+ ] });
4581
+ };
4582
+ var TheToolbar_default = React68.memo(TheToolbar);
4702
4583
  export {
4703
4584
  AlertDialog_default as AlertDialog,
4704
4585
  AlertDialogFullScreen_default as AlertDialogFullScreen,
@@ -4710,7 +4591,6 @@ export {
4710
4591
  Date_default as Date,
4711
4592
  DeleteSubstitutionDialogContent_default as DeleteSubstitutionDialogContent,
4712
4593
  DeleteUserDialogContent_default as DeleteUserDialogContent,
4713
- DesktopContainer_default as DesktopContainer,
4714
4594
  ExtendedButton_default as ExtendedButton,
4715
4595
  FilledButton_default as FilledButton,
4716
4596
  FilledButtonLg_default as FilledButtonLg,