@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.
- package/dist/components/index.cjs +660 -768
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +54 -64
- package/dist/components/index.d.ts +54 -64
- package/dist/components/index.js +539 -646
- package/dist/components/index.js.map +1 -1
- package/dist/providers/index.cjs +2 -2
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.js +2 -2
- package/dist/providers/index.js.map +1 -1
- package/package.json +2 -2
package/dist/components/index.js
CHANGED
|
@@ -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
|
|
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
|
|
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:
|
|
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
|
-
|
|
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:
|
|
386
|
+
className: string,
|
|
428
387
|
children: node,
|
|
429
|
-
isLoading:
|
|
430
|
-
onRefreshClick:
|
|
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
|
|
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:
|
|
629
|
-
className:
|
|
630
|
-
color:
|
|
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:
|
|
641
|
-
isLoading:
|
|
642
|
-
disabled:
|
|
643
|
-
href:
|
|
644
|
-
onClick:
|
|
645
|
-
type:
|
|
646
|
-
variant:
|
|
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:
|
|
687
|
-
size:
|
|
688
|
-
style: { marginLeft: "15px", ...loadingProps
|
|
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
|
|
779
|
-
func as
|
|
737
|
+
bool as bool3,
|
|
738
|
+
func as func3,
|
|
780
739
|
node as node2,
|
|
781
740
|
number,
|
|
782
|
-
oneOf as
|
|
741
|
+
oneOf as oneOf2,
|
|
783
742
|
oneOfType,
|
|
784
743
|
shape,
|
|
785
|
-
string as
|
|
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:
|
|
907
|
-
color:
|
|
908
|
-
copy: oneOfType([number,
|
|
909
|
-
disabled:
|
|
910
|
-
href:
|
|
911
|
-
isLoading:
|
|
912
|
-
onClick:
|
|
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:
|
|
916
|
-
type:
|
|
874
|
+
subcopy: string3,
|
|
875
|
+
type: oneOf2(["button", "submit"])
|
|
917
876
|
};
|
|
918
877
|
var OutlinedButton_default = React6.memo(OutlinedButton);
|
|
919
878
|
|
|
@@ -2631,18 +2590,102 @@ var DeleteUserDialogContent = ({
|
|
|
2631
2590
|
};
|
|
2632
2591
|
var DeleteUserDialogContent_default = React53.memo(DeleteUserDialogContent);
|
|
2633
2592
|
|
|
2634
|
-
// src/components/
|
|
2635
|
-
import {
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
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
|
|
2700
|
+
Box as Box10,
|
|
2658
2701
|
ListItemButton
|
|
2659
2702
|
} from "@mui/material";
|
|
2660
2703
|
import Icon from "@mui/material/Icon";
|
|
2661
|
-
import { makeStyles as
|
|
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
|
|
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
|
|
2673
|
-
var UserAvatar = ({ src, width, height }) => /* @__PURE__ */
|
|
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
|
|
2683
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */
|
|
2684
|
-
/* @__PURE__ */
|
|
2685
|
-
/* @__PURE__ */
|
|
2686
|
-
/* @__PURE__ */
|
|
2687
|
-
/* @__PURE__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
2808
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconPromoCode, {}),
|
|
2772
2809
|
url: "/react/promo_codes"
|
|
2773
2810
|
},
|
|
2774
2811
|
{
|
|
@@ -2777,7 +2814,7 @@ var drawerAppList = [
|
|
|
2777
2814
|
alwaysDisplay: false,
|
|
2778
2815
|
featureNames: [featureName_default.SEARCH_CATEGORIES],
|
|
2779
2816
|
pinned: null,
|
|
2780
|
-
icon: /* @__PURE__ */
|
|
2817
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSearchCategories, {}),
|
|
2781
2818
|
url: "/react/search-categories"
|
|
2782
2819
|
},
|
|
2783
2820
|
{
|
|
@@ -2786,7 +2823,7 @@ var drawerAppList = [
|
|
|
2786
2823
|
alwaysDisplay: false,
|
|
2787
2824
|
featureNames: ["cms"],
|
|
2788
2825
|
pinned: null,
|
|
2789
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
2963
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconGoodsin, {}),
|
|
2927
2964
|
url: "/react/returns"
|
|
2928
2965
|
},
|
|
2929
2966
|
{
|
|
@@ -2932,7 +2969,7 @@ var drawerAppList = [
|
|
|
2932
2969
|
alwaysDisplay: false,
|
|
2933
2970
|
featureNames: [featureName_default.KANBAN],
|
|
2934
2971
|
pinned: "kanbancards",
|
|
2935
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
3096
|
-
var
|
|
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 = ({
|
|
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 } =
|
|
3163
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
3173
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
3196
|
-
/* @__PURE__ */
|
|
3197
|
-
group.apps.map((app) => {
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
{
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
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
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
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
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
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,15 @@ 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
|
|
3490
|
-
import { makeStyles as
|
|
3491
|
-
import { jsx as
|
|
3313
|
+
import { any as any2, func as func4, object, oneOf as oneOf3, string as string4 } from "prop-types";
|
|
3314
|
+
import { makeStyles as makeStyles15 } from "tss-react/mui";
|
|
3315
|
+
import { jsx as jsx67, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
3492
3316
|
var paginationHeight = "56px";
|
|
3493
|
-
var
|
|
3317
|
+
var useStyles15 = makeStyles15()((theme) => ({
|
|
3494
3318
|
root: {
|
|
3495
3319
|
display: "flex",
|
|
3496
3320
|
flexDirection: "row",
|
|
@@ -3526,12 +3350,12 @@ var PaginationForTable = ({
|
|
|
3526
3350
|
style,
|
|
3527
3351
|
updateFilters
|
|
3528
3352
|
}) => {
|
|
3529
|
-
const { classes, cx } =
|
|
3353
|
+
const { classes, cx } = useStyles15();
|
|
3530
3354
|
const handleChange = (event, value) => {
|
|
3531
3355
|
updateFilters({ ...appliedFilters, page: value });
|
|
3532
3356
|
};
|
|
3533
3357
|
const isFixed = position === "fixed";
|
|
3534
|
-
return /* @__PURE__ */
|
|
3358
|
+
return /* @__PURE__ */ jsx67(Paper3, { children: /* @__PURE__ */ jsxs40(
|
|
3535
3359
|
"div",
|
|
3536
3360
|
{
|
|
3537
3361
|
style,
|
|
@@ -3539,11 +3363,11 @@ var PaginationForTable = ({
|
|
|
3539
3363
|
[classes.fixed]: isFixed
|
|
3540
3364
|
}),
|
|
3541
3365
|
children: [
|
|
3542
|
-
/* @__PURE__ */
|
|
3366
|
+
/* @__PURE__ */ jsxs40(Typography9, { variant: "body1", children: [
|
|
3543
3367
|
"Page: ",
|
|
3544
3368
|
page
|
|
3545
3369
|
] }),
|
|
3546
|
-
/* @__PURE__ */
|
|
3370
|
+
/* @__PURE__ */ jsx67(
|
|
3547
3371
|
Pagination,
|
|
3548
3372
|
{
|
|
3549
3373
|
count: pagination.num_pages,
|
|
@@ -3560,34 +3384,34 @@ PaginationForTable.defaultProps = {
|
|
|
3560
3384
|
};
|
|
3561
3385
|
PaginationForTable.propTypes = {
|
|
3562
3386
|
appliedFilters: any2,
|
|
3563
|
-
className:
|
|
3387
|
+
className: string4,
|
|
3564
3388
|
page: any2,
|
|
3565
3389
|
pagination: object,
|
|
3566
|
-
position:
|
|
3390
|
+
position: oneOf3(["relative", "fixed"]),
|
|
3567
3391
|
style: any2,
|
|
3568
|
-
updateFilters:
|
|
3392
|
+
updateFilters: func4.isRequired
|
|
3569
3393
|
};
|
|
3570
3394
|
var PaginationForTable_default = PaginationForTable;
|
|
3571
3395
|
|
|
3572
3396
|
// src/components/ProductImage/ProductImage.tsx
|
|
3573
3397
|
import { CardMedia } from "@mui/material";
|
|
3574
|
-
import { any as any3, string as
|
|
3398
|
+
import { any as any3, string as string5 } from "prop-types";
|
|
3575
3399
|
import { withStyles as withStyles2 } from "tss-react/mui";
|
|
3576
|
-
import { jsx as
|
|
3400
|
+
import { jsx as jsx68, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
3577
3401
|
var PImage = ({
|
|
3578
3402
|
classes,
|
|
3579
3403
|
image,
|
|
3580
3404
|
size = "c_productbust__image_xs",
|
|
3581
3405
|
status
|
|
3582
|
-
}) => /* @__PURE__ */
|
|
3583
|
-
/* @__PURE__ */
|
|
3406
|
+
}) => /* @__PURE__ */ jsxs41("div", { className: classes.c_productbust__image, children: [
|
|
3407
|
+
/* @__PURE__ */ jsx68(
|
|
3584
3408
|
CardMedia,
|
|
3585
3409
|
{
|
|
3586
3410
|
className: classes[size],
|
|
3587
3411
|
image: image || "resources/img/peas.jpg"
|
|
3588
3412
|
}
|
|
3589
3413
|
),
|
|
3590
|
-
status && status !== "ACTIVE" && /* @__PURE__ */
|
|
3414
|
+
status && status !== "ACTIVE" && /* @__PURE__ */ jsx68("div", { className: classes.c_productbust__label_status, children: status })
|
|
3591
3415
|
] });
|
|
3592
3416
|
var ProductImage = withStyles2(PImage, (theme) => ({
|
|
3593
3417
|
c_productbust__label_status: {
|
|
@@ -3668,8 +3492,8 @@ var ProductImage = withStyles2(PImage, (theme) => ({
|
|
|
3668
3492
|
}));
|
|
3669
3493
|
PImage.propTypes = {
|
|
3670
3494
|
classes: any3,
|
|
3671
|
-
image:
|
|
3672
|
-
size:
|
|
3495
|
+
image: string5,
|
|
3496
|
+
size: string5,
|
|
3673
3497
|
status: any3
|
|
3674
3498
|
};
|
|
3675
3499
|
var ProductImage_default = ProductImage;
|
|
@@ -3682,15 +3506,15 @@ import {
|
|
|
3682
3506
|
ListItemText as ListItemText2,
|
|
3683
3507
|
ListSubheader as ListSubheader2
|
|
3684
3508
|
} from "@mui/material";
|
|
3685
|
-
import { makeStyles as
|
|
3509
|
+
import { makeStyles as makeStyles16 } from "tss-react/mui";
|
|
3686
3510
|
|
|
3687
3511
|
// src/utils/useGetActiveSection.ts
|
|
3688
3512
|
import { useEffect, useState as useState2 } from "react";
|
|
3689
3513
|
var transformNameToID = (name) => name.replaceAll(" ", "-").toLocaleLowerCase();
|
|
3690
3514
|
|
|
3691
3515
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
3692
|
-
import { jsx as
|
|
3693
|
-
var
|
|
3516
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
3517
|
+
var useStyles16 = makeStyles16()(
|
|
3694
3518
|
(_theme, _params, classes) => ({
|
|
3695
3519
|
root: {
|
|
3696
3520
|
[`&.${classes.selected}`]: {
|
|
@@ -3704,20 +3528,20 @@ var useStyles18 = makeStyles18()(
|
|
|
3704
3528
|
})
|
|
3705
3529
|
);
|
|
3706
3530
|
var RenderContentList = ({ items, activeSection }) => {
|
|
3707
|
-
const { classes } =
|
|
3531
|
+
const { classes } = useStyles16();
|
|
3708
3532
|
const [active, setActive] = useState3(activeSection);
|
|
3709
3533
|
useEffect2(() => {
|
|
3710
3534
|
setActive(activeSection);
|
|
3711
3535
|
}, [activeSection]);
|
|
3712
|
-
return /* @__PURE__ */
|
|
3536
|
+
return /* @__PURE__ */ jsx69(
|
|
3713
3537
|
List2,
|
|
3714
3538
|
{
|
|
3715
3539
|
component: "nav",
|
|
3716
3540
|
"aria-labelledby": "nested-list-subheader",
|
|
3717
|
-
subheader: /* @__PURE__ */
|
|
3541
|
+
subheader: /* @__PURE__ */ jsx69(ListSubheader2, { component: "div", id: "nested-list-subheader", children: "Contents" }),
|
|
3718
3542
|
children: items.map((item) => {
|
|
3719
3543
|
const id = transformNameToID(item);
|
|
3720
|
-
return /* @__PURE__ */
|
|
3544
|
+
return /* @__PURE__ */ jsx69(
|
|
3721
3545
|
ListItemButton2,
|
|
3722
3546
|
{
|
|
3723
3547
|
component: "a",
|
|
@@ -3725,7 +3549,7 @@ var RenderContentList = ({ items, activeSection }) => {
|
|
|
3725
3549
|
onClick: () => setActive(item),
|
|
3726
3550
|
selected: active === item,
|
|
3727
3551
|
classes: { root: classes.root },
|
|
3728
|
-
children: /* @__PURE__ */
|
|
3552
|
+
children: /* @__PURE__ */ jsx69(ListItemText2, { primary: item })
|
|
3729
3553
|
},
|
|
3730
3554
|
id
|
|
3731
3555
|
);
|
|
@@ -3736,11 +3560,11 @@ var RenderContentList = ({ items, activeSection }) => {
|
|
|
3736
3560
|
var RenderContentList_default = RenderContentList;
|
|
3737
3561
|
|
|
3738
3562
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
3739
|
-
import { Box as
|
|
3740
|
-
import { makeStyles as
|
|
3741
|
-
import { arrayOf, node as node3, oneOf as
|
|
3742
|
-
import { Fragment as Fragment3, jsx as
|
|
3743
|
-
var
|
|
3563
|
+
import { Box as Box11, Divider as Divider2, Paper as Paper4, Typography as Typography10 } from "@mui/material";
|
|
3564
|
+
import { makeStyles as makeStyles17 } from "tss-react/mui";
|
|
3565
|
+
import { arrayOf, node as node3, oneOf as oneOf4, oneOfType as oneOfType2, shape as shape2, string as string6 } from "prop-types";
|
|
3566
|
+
import { Fragment as Fragment3, jsx as jsx70, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
3567
|
+
var useStyles17 = makeStyles17()((theme) => ({
|
|
3744
3568
|
wrapper: {
|
|
3745
3569
|
display: "flex",
|
|
3746
3570
|
gap: theme.spacing(2),
|
|
@@ -3765,15 +3589,15 @@ var useStyles19 = makeStyles19()((theme) => ({
|
|
|
3765
3589
|
}
|
|
3766
3590
|
}));
|
|
3767
3591
|
var RowProductCard = ({ children, columns, location, product, size }) => {
|
|
3768
|
-
const { classes, cx } =
|
|
3592
|
+
const { classes, cx } = useStyles17();
|
|
3769
3593
|
const hasColumns = columns.length >= 1;
|
|
3770
3594
|
const imageSize = {
|
|
3771
3595
|
small: "c_productbust__image_sm",
|
|
3772
3596
|
medium: "c_productbust__image_md",
|
|
3773
3597
|
large: "c_productbust__image_lg"
|
|
3774
3598
|
};
|
|
3775
|
-
return /* @__PURE__ */
|
|
3776
|
-
/* @__PURE__ */
|
|
3599
|
+
return /* @__PURE__ */ jsxs42(Paper4, { className: classes.wrapper, children: [
|
|
3600
|
+
/* @__PURE__ */ jsx70(
|
|
3777
3601
|
ProductImage_default,
|
|
3778
3602
|
{
|
|
3779
3603
|
image: product.image,
|
|
@@ -3781,15 +3605,15 @@ var RowProductCard = ({ children, columns, location, product, size }) => {
|
|
|
3781
3605
|
size: imageSize[size]
|
|
3782
3606
|
}
|
|
3783
3607
|
),
|
|
3784
|
-
/* @__PURE__ */
|
|
3608
|
+
/* @__PURE__ */ jsxs42(
|
|
3785
3609
|
"div",
|
|
3786
3610
|
{
|
|
3787
3611
|
className: cx(classes.content, {
|
|
3788
3612
|
[classes.onlyProductName]: !hasColumns && !location
|
|
3789
3613
|
}),
|
|
3790
3614
|
children: [
|
|
3791
|
-
/* @__PURE__ */
|
|
3792
|
-
|
|
3615
|
+
/* @__PURE__ */ jsxs42(
|
|
3616
|
+
Box11,
|
|
3793
3617
|
{
|
|
3794
3618
|
className: classes.upperRow,
|
|
3795
3619
|
sx: {
|
|
@@ -3798,26 +3622,26 @@ var RowProductCard = ({ children, columns, location, product, size }) => {
|
|
|
3798
3622
|
alignItems: "center"
|
|
3799
3623
|
},
|
|
3800
3624
|
children: [
|
|
3801
|
-
/* @__PURE__ */
|
|
3802
|
-
location ? /* @__PURE__ */
|
|
3803
|
-
/* @__PURE__ */
|
|
3625
|
+
/* @__PURE__ */ jsxs42("div", { children: [
|
|
3626
|
+
location ? /* @__PURE__ */ jsx70(Typography10, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
|
|
3627
|
+
/* @__PURE__ */ jsx70(Typography10, { variant: "h6", children: product.name })
|
|
3804
3628
|
] }),
|
|
3805
3629
|
children
|
|
3806
3630
|
]
|
|
3807
3631
|
}
|
|
3808
3632
|
),
|
|
3809
|
-
hasColumns ? /* @__PURE__ */
|
|
3810
|
-
/* @__PURE__ */
|
|
3811
|
-
/* @__PURE__ */
|
|
3812
|
-
|
|
3633
|
+
hasColumns ? /* @__PURE__ */ jsxs42(Fragment3, { children: [
|
|
3634
|
+
/* @__PURE__ */ jsx70(Divider2, { className: classes.divider }),
|
|
3635
|
+
/* @__PURE__ */ jsx70(
|
|
3636
|
+
Box11,
|
|
3813
3637
|
{
|
|
3814
3638
|
sx: {
|
|
3815
3639
|
display: "flex",
|
|
3816
3640
|
gap: "24px"
|
|
3817
3641
|
},
|
|
3818
|
-
children: columns.map((column) => /* @__PURE__ */
|
|
3819
|
-
/* @__PURE__ */
|
|
3820
|
-
typeof column.value === "string" ? /* @__PURE__ */
|
|
3642
|
+
children: columns.map((column) => /* @__PURE__ */ jsxs42("div", { children: [
|
|
3643
|
+
/* @__PURE__ */ jsx70(Typography10, { className: classes.smallTitle, variant: "caption", children: column.title }),
|
|
3644
|
+
typeof column.value === "string" ? /* @__PURE__ */ jsx70(Typography10, { variant: "body1", children: column.value }) : column.value
|
|
3821
3645
|
] }, column.title))
|
|
3822
3646
|
}
|
|
3823
3647
|
)
|
|
@@ -3843,42 +3667,42 @@ RowProductCard.propTypes = {
|
|
|
3843
3667
|
*/
|
|
3844
3668
|
columns: arrayOf(
|
|
3845
3669
|
shape2({
|
|
3846
|
-
title:
|
|
3847
|
-
value: oneOfType2([
|
|
3670
|
+
title: string6,
|
|
3671
|
+
value: oneOfType2([string6, node3])
|
|
3848
3672
|
})
|
|
3849
3673
|
),
|
|
3850
3674
|
/**
|
|
3851
3675
|
* Where is the product location
|
|
3852
3676
|
*/
|
|
3853
|
-
location:
|
|
3677
|
+
location: string6,
|
|
3854
3678
|
/**
|
|
3855
3679
|
* Product information
|
|
3856
3680
|
*/
|
|
3857
3681
|
product: shape2({
|
|
3858
|
-
image:
|
|
3859
|
-
name:
|
|
3860
|
-
status:
|
|
3682
|
+
image: string6.isRequired,
|
|
3683
|
+
name: string6.isRequired,
|
|
3684
|
+
status: string6
|
|
3861
3685
|
}).isRequired,
|
|
3862
|
-
size:
|
|
3686
|
+
size: oneOf4(["small", "medium", "large"])
|
|
3863
3687
|
};
|
|
3864
3688
|
var RowProductCard_default = RowProductCard;
|
|
3865
3689
|
|
|
3866
3690
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
3867
|
-
import
|
|
3868
|
-
import
|
|
3869
|
-
import
|
|
3870
|
-
import { makeStyles as
|
|
3691
|
+
import React60 from "react";
|
|
3692
|
+
import Box13 from "@mui/material/Box";
|
|
3693
|
+
import PropTypes5 from "prop-types";
|
|
3694
|
+
import { makeStyles as makeStyles19 } from "tss-react/mui";
|
|
3871
3695
|
|
|
3872
3696
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
3873
|
-
import
|
|
3697
|
+
import React59 from "react";
|
|
3874
3698
|
import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
|
|
3875
3699
|
import ArrowDropUpIcon from "@mui/icons-material/ArrowDropUp";
|
|
3876
3700
|
import SearchIcon from "@mui/icons-material/Search";
|
|
3877
|
-
import { Box as
|
|
3878
|
-
import
|
|
3879
|
-
import { makeStyles as
|
|
3880
|
-
import { Fragment as Fragment4, jsx as
|
|
3881
|
-
var
|
|
3701
|
+
import { Box as Box12, Button as Button8, Divider as Divider3, InputBase, Paper as Paper5 } from "@mui/material";
|
|
3702
|
+
import PropTypes4 from "prop-types";
|
|
3703
|
+
import { makeStyles as makeStyles18 } from "tss-react/mui";
|
|
3704
|
+
import { Fragment as Fragment4, jsx as jsx71, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
3705
|
+
var useStyles18 = makeStyles18()((theme) => ({
|
|
3882
3706
|
c_search: {
|
|
3883
3707
|
height: 46,
|
|
3884
3708
|
padding: "4px",
|
|
@@ -3936,8 +3760,8 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
3936
3760
|
enterPressedInSearch,
|
|
3937
3761
|
searchedValue
|
|
3938
3762
|
} = props;
|
|
3939
|
-
const { classes } =
|
|
3940
|
-
const [searchText, setSearchText] =
|
|
3763
|
+
const { classes } = useStyles18();
|
|
3764
|
+
const [searchText, setSearchText] = React59.useState("");
|
|
3941
3765
|
const handleTextChange = (e) => {
|
|
3942
3766
|
const { value } = e.target;
|
|
3943
3767
|
setSearchText(value);
|
|
@@ -3952,9 +3776,9 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
3952
3776
|
}
|
|
3953
3777
|
};
|
|
3954
3778
|
const ArrowIcon = isOpen ? ArrowDropUpIcon : ArrowDropDownIcon;
|
|
3955
|
-
return /* @__PURE__ */
|
|
3956
|
-
/* @__PURE__ */
|
|
3957
|
-
/* @__PURE__ */
|
|
3779
|
+
return /* @__PURE__ */ jsxs43(Paper5, { className: classes.c_search, children: [
|
|
3780
|
+
/* @__PURE__ */ jsx71(Box12, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx71(SearchIcon, { className: classes.icon, fontSize: "small" }) }),
|
|
3781
|
+
/* @__PURE__ */ jsx71(
|
|
3958
3782
|
InputBase,
|
|
3959
3783
|
{
|
|
3960
3784
|
className: classes.c_search__input,
|
|
@@ -3964,22 +3788,22 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
3964
3788
|
onKeyDown: handleKeyPress
|
|
3965
3789
|
}
|
|
3966
3790
|
),
|
|
3967
|
-
showFilterButton && /* @__PURE__ */
|
|
3968
|
-
/* @__PURE__ */
|
|
3791
|
+
showFilterButton && /* @__PURE__ */ jsxs43(Fragment4, { children: [
|
|
3792
|
+
/* @__PURE__ */ jsx71(
|
|
3969
3793
|
Divider3,
|
|
3970
3794
|
{
|
|
3971
3795
|
className: classes.c_search__divider,
|
|
3972
3796
|
orientation: "vertical"
|
|
3973
3797
|
}
|
|
3974
3798
|
),
|
|
3975
|
-
/* @__PURE__ */
|
|
3799
|
+
/* @__PURE__ */ jsxs43(
|
|
3976
3800
|
Button8,
|
|
3977
3801
|
{
|
|
3978
3802
|
className: classes.c_search__bt_filter,
|
|
3979
3803
|
onClick: handleFilterButtonClick,
|
|
3980
3804
|
children: [
|
|
3981
3805
|
"Filters",
|
|
3982
|
-
/* @__PURE__ */
|
|
3806
|
+
/* @__PURE__ */ jsx71(ArrowIcon, { className: classes.c_search__bt_icon_filter })
|
|
3983
3807
|
]
|
|
3984
3808
|
}
|
|
3985
3809
|
)
|
|
@@ -3987,18 +3811,18 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
3987
3811
|
] });
|
|
3988
3812
|
};
|
|
3989
3813
|
SearchWithFiltersForTable.propTypes = {
|
|
3990
|
-
onFilterButtonClick:
|
|
3991
|
-
isOpen:
|
|
3992
|
-
updateSearch:
|
|
3993
|
-
enterPressedInSearch:
|
|
3994
|
-
showFilterButton:
|
|
3995
|
-
searchedValue:
|
|
3814
|
+
onFilterButtonClick: PropTypes4.func,
|
|
3815
|
+
isOpen: PropTypes4.bool,
|
|
3816
|
+
updateSearch: PropTypes4.func,
|
|
3817
|
+
enterPressedInSearch: PropTypes4.func,
|
|
3818
|
+
showFilterButton: PropTypes4.bool,
|
|
3819
|
+
searchedValue: PropTypes4.string
|
|
3996
3820
|
};
|
|
3997
|
-
var SearchWithFiltersForTable_default =
|
|
3821
|
+
var SearchWithFiltersForTable_default = React59.memo(SearchWithFiltersForTable);
|
|
3998
3822
|
|
|
3999
3823
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
4000
|
-
import { jsx as
|
|
4001
|
-
var
|
|
3824
|
+
import { jsx as jsx72, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
3825
|
+
var useStyles19 = makeStyles19()((theme) => ({
|
|
4002
3826
|
container: {
|
|
4003
3827
|
display: "flex",
|
|
4004
3828
|
alignItems: "center",
|
|
@@ -4028,11 +3852,11 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
4028
3852
|
button,
|
|
4029
3853
|
searchedValue
|
|
4030
3854
|
} = props;
|
|
4031
|
-
const { classes } =
|
|
4032
|
-
return /* @__PURE__ */
|
|
4033
|
-
/* @__PURE__ */
|
|
4034
|
-
/* @__PURE__ */
|
|
4035
|
-
/* @__PURE__ */
|
|
3855
|
+
const { classes } = useStyles19();
|
|
3856
|
+
return /* @__PURE__ */ jsxs44(Box13, { className: classes.container, children: [
|
|
3857
|
+
/* @__PURE__ */ jsxs44(Box13, { className: classes.leftSection, children: [
|
|
3858
|
+
/* @__PURE__ */ jsx72(AppLabel_default, { appName }),
|
|
3859
|
+
/* @__PURE__ */ jsx72(
|
|
4036
3860
|
SearchWithFiltersForTable_default,
|
|
4037
3861
|
{
|
|
4038
3862
|
onFilterButtonClick,
|
|
@@ -4043,41 +3867,41 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
4043
3867
|
searchedValue
|
|
4044
3868
|
}
|
|
4045
3869
|
),
|
|
4046
|
-
copy && /* @__PURE__ */
|
|
4047
|
-
|
|
3870
|
+
copy && /* @__PURE__ */ jsx72(
|
|
3871
|
+
Box13,
|
|
4048
3872
|
{
|
|
4049
3873
|
sx: {
|
|
4050
3874
|
margin: 0.5
|
|
4051
3875
|
},
|
|
4052
|
-
children: /* @__PURE__ */
|
|
3876
|
+
children: /* @__PURE__ */ jsx72(OutlinedButton_default, { copy })
|
|
4053
3877
|
}
|
|
4054
3878
|
)
|
|
4055
3879
|
] }),
|
|
4056
|
-
/* @__PURE__ */
|
|
3880
|
+
/* @__PURE__ */ jsx72(Box13, { children: button })
|
|
4057
3881
|
] });
|
|
4058
3882
|
};
|
|
4059
3883
|
SearchAndFilterHeaderForTable.propTypes = {
|
|
4060
|
-
appName:
|
|
4061
|
-
button:
|
|
4062
|
-
copy:
|
|
4063
|
-
enterPressedInSearch:
|
|
4064
|
-
isOpen:
|
|
4065
|
-
onFilterButtonClick:
|
|
4066
|
-
searchedValue:
|
|
4067
|
-
showFilterButton:
|
|
4068
|
-
updateSearch:
|
|
3884
|
+
appName: PropTypes5.string,
|
|
3885
|
+
button: PropTypes5.node,
|
|
3886
|
+
copy: PropTypes5.string,
|
|
3887
|
+
enterPressedInSearch: PropTypes5.func,
|
|
3888
|
+
isOpen: PropTypes5.bool,
|
|
3889
|
+
onFilterButtonClick: PropTypes5.func,
|
|
3890
|
+
searchedValue: PropTypes5.string,
|
|
3891
|
+
showFilterButton: PropTypes5.bool,
|
|
3892
|
+
updateSearch: PropTypes5.func
|
|
4069
3893
|
};
|
|
4070
|
-
var SearchAndFilterHeaderForTable_default =
|
|
3894
|
+
var SearchAndFilterHeaderForTable_default = React60.memo(SearchAndFilterHeaderForTable);
|
|
4071
3895
|
|
|
4072
3896
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
4073
|
-
import
|
|
3897
|
+
import React61, { useState as useState4, useEffect as useEffect3 } from "react";
|
|
4074
3898
|
import ArrowDropDownIcon2 from "@mui/icons-material/ArrowDropDown";
|
|
4075
3899
|
import ArrowDropUpIcon2 from "@mui/icons-material/ArrowDropUp";
|
|
4076
3900
|
import SearchIcon2 from "@mui/icons-material/Search";
|
|
4077
3901
|
import { Button as Button9, Divider as Divider4, InputBase as InputBase2, Paper as Paper6 } from "@mui/material";
|
|
4078
|
-
import { makeStyles as
|
|
4079
|
-
import { jsx as
|
|
4080
|
-
var
|
|
3902
|
+
import { makeStyles as makeStyles20 } from "tss-react/mui";
|
|
3903
|
+
import { jsx as jsx73, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3904
|
+
var useStyles20 = makeStyles20()((theme) => ({
|
|
4081
3905
|
searchContainer: {
|
|
4082
3906
|
height: 46,
|
|
4083
3907
|
padding: "4px",
|
|
@@ -4122,7 +3946,7 @@ var SearchWithFilters = ({
|
|
|
4122
3946
|
disabled = false
|
|
4123
3947
|
}) => {
|
|
4124
3948
|
const [searchText, setSearchText] = useState4(searchValue);
|
|
4125
|
-
const { classes } =
|
|
3949
|
+
const { classes } = useStyles20();
|
|
4126
3950
|
const handleTextChange = (e) => {
|
|
4127
3951
|
const { value } = e.target;
|
|
4128
3952
|
setSearchText(value);
|
|
@@ -4130,15 +3954,15 @@ var SearchWithFilters = ({
|
|
|
4130
3954
|
};
|
|
4131
3955
|
const handleKeyDown = (e) => {
|
|
4132
3956
|
if (e.key === "Enter") {
|
|
4133
|
-
enterPressedInSearch
|
|
3957
|
+
enterPressedInSearch?.();
|
|
4134
3958
|
}
|
|
4135
3959
|
};
|
|
4136
3960
|
useEffect3(() => {
|
|
4137
3961
|
setSearchText(searchValue);
|
|
4138
3962
|
}, [searchValue]);
|
|
4139
|
-
return /* @__PURE__ */
|
|
4140
|
-
/* @__PURE__ */
|
|
4141
|
-
/* @__PURE__ */
|
|
3963
|
+
return /* @__PURE__ */ jsxs45(Paper6, { className: classes.searchContainer, children: [
|
|
3964
|
+
/* @__PURE__ */ jsx73(SearchIcon2, { className: classes.icon, fontSize: "small" }),
|
|
3965
|
+
/* @__PURE__ */ jsx73(
|
|
4142
3966
|
InputBase2,
|
|
4143
3967
|
{
|
|
4144
3968
|
className: classes.input,
|
|
@@ -4150,8 +3974,8 @@ var SearchWithFilters = ({
|
|
|
4150
3974
|
inputProps: { "aria-label": "search" }
|
|
4151
3975
|
}
|
|
4152
3976
|
),
|
|
4153
|
-
/* @__PURE__ */
|
|
4154
|
-
/* @__PURE__ */
|
|
3977
|
+
/* @__PURE__ */ jsx73(Divider4, { className: classes.divider, orientation: "vertical" }),
|
|
3978
|
+
/* @__PURE__ */ jsxs45(
|
|
4155
3979
|
Button9,
|
|
4156
3980
|
{
|
|
4157
3981
|
className: classes.filterButton,
|
|
@@ -4159,20 +3983,20 @@ var SearchWithFilters = ({
|
|
|
4159
3983
|
disabled,
|
|
4160
3984
|
children: [
|
|
4161
3985
|
"Filters",
|
|
4162
|
-
showFilters ? /* @__PURE__ */
|
|
3986
|
+
showFilters ? /* @__PURE__ */ jsx73(ArrowDropUpIcon2, {}) : /* @__PURE__ */ jsx73(ArrowDropDownIcon2, {})
|
|
4163
3987
|
]
|
|
4164
3988
|
}
|
|
4165
3989
|
)
|
|
4166
3990
|
] });
|
|
4167
3991
|
};
|
|
4168
|
-
var SearchWithFilters_default =
|
|
3992
|
+
var SearchWithFilters_default = React61.memo(SearchWithFilters);
|
|
4169
3993
|
|
|
4170
3994
|
// src/components/SectionName/SectionName.tsx
|
|
4171
3995
|
import InfoIcon from "@mui/icons-material/Info";
|
|
4172
|
-
import { Box as
|
|
4173
|
-
import { makeStyles as
|
|
4174
|
-
import { jsx as
|
|
4175
|
-
var
|
|
3996
|
+
import { Box as Box14, Tooltip as Tooltip3, Typography as Typography11 } from "@mui/material";
|
|
3997
|
+
import { makeStyles as makeStyles21 } from "tss-react/mui";
|
|
3998
|
+
import { jsx as jsx74, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3999
|
+
var useStyles21 = makeStyles21()(() => ({
|
|
4176
4000
|
container: {
|
|
4177
4001
|
display: "flex",
|
|
4178
4002
|
alignItems: "flex-end",
|
|
@@ -4206,10 +4030,10 @@ var SectionName = ({
|
|
|
4206
4030
|
buttonText,
|
|
4207
4031
|
buttonDisabled
|
|
4208
4032
|
}) => {
|
|
4209
|
-
const { classes } =
|
|
4210
|
-
return /* @__PURE__ */
|
|
4211
|
-
/* @__PURE__ */
|
|
4212
|
-
/* @__PURE__ */
|
|
4033
|
+
const { classes } = useStyles21();
|
|
4034
|
+
return /* @__PURE__ */ jsxs46(Box14, { className: classes.container, children: [
|
|
4035
|
+
/* @__PURE__ */ jsxs46(Box14, { className: classes.titleContainer, children: [
|
|
4036
|
+
/* @__PURE__ */ jsx74(
|
|
4213
4037
|
Typography11,
|
|
4214
4038
|
{
|
|
4215
4039
|
variant: "h5",
|
|
@@ -4219,7 +4043,7 @@ var SectionName = ({
|
|
|
4219
4043
|
children: name
|
|
4220
4044
|
}
|
|
4221
4045
|
),
|
|
4222
|
-
tooltipDescription ? /* @__PURE__ */
|
|
4046
|
+
tooltipDescription ? /* @__PURE__ */ jsx74(Tooltip3, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ jsx74(
|
|
4223
4047
|
InfoIcon,
|
|
4224
4048
|
{
|
|
4225
4049
|
fontSize: "small",
|
|
@@ -4228,7 +4052,7 @@ var SectionName = ({
|
|
|
4228
4052
|
}
|
|
4229
4053
|
) }) : null
|
|
4230
4054
|
] }),
|
|
4231
|
-
buttonText ? /* @__PURE__ */
|
|
4055
|
+
buttonText ? /* @__PURE__ */ jsx74(
|
|
4232
4056
|
ExtendedButton_default,
|
|
4233
4057
|
{
|
|
4234
4058
|
type: "add",
|
|
@@ -4246,14 +4070,14 @@ var SectionName = ({
|
|
|
4246
4070
|
var SectionName_default = SectionName;
|
|
4247
4071
|
|
|
4248
4072
|
// src/components/Shift/Shift.tsx
|
|
4249
|
-
import { Box as
|
|
4250
|
-
import { oneOf as
|
|
4251
|
-
import { makeStyles as
|
|
4073
|
+
import { Box as Box15, Typography as Typography12 } from "@mui/material";
|
|
4074
|
+
import { oneOf as oneOf5 } from "prop-types";
|
|
4075
|
+
import { makeStyles as makeStyles22 } from "tss-react/mui";
|
|
4252
4076
|
|
|
4253
4077
|
// src/resources/icons/DayIcon.js
|
|
4254
|
-
import
|
|
4255
|
-
import { jsx as
|
|
4256
|
-
var DayIcon = (props) => /* @__PURE__ */
|
|
4078
|
+
import React62 from "react";
|
|
4079
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
4080
|
+
var DayIcon = (props) => /* @__PURE__ */ jsx75(
|
|
4257
4081
|
"svg",
|
|
4258
4082
|
{
|
|
4259
4083
|
fill: "none",
|
|
@@ -4262,7 +4086,7 @@ var DayIcon = (props) => /* @__PURE__ */ jsx77(
|
|
|
4262
4086
|
width: 22,
|
|
4263
4087
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4264
4088
|
...props,
|
|
4265
|
-
children: /* @__PURE__ */
|
|
4089
|
+
children: /* @__PURE__ */ jsx75(
|
|
4266
4090
|
"path",
|
|
4267
4091
|
{
|
|
4268
4092
|
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 +4098,9 @@ var DayIcon = (props) => /* @__PURE__ */ jsx77(
|
|
|
4274
4098
|
var DayIcon_default = DayIcon;
|
|
4275
4099
|
|
|
4276
4100
|
// src/resources/icons/NightIcon.js
|
|
4277
|
-
import
|
|
4278
|
-
import { jsx as
|
|
4279
|
-
var NightIcon = (props) => /* @__PURE__ */
|
|
4101
|
+
import React63 from "react";
|
|
4102
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
4103
|
+
var NightIcon = (props) => /* @__PURE__ */ jsx76(
|
|
4280
4104
|
"svg",
|
|
4281
4105
|
{
|
|
4282
4106
|
fill: "none",
|
|
@@ -4285,7 +4109,7 @@ var NightIcon = (props) => /* @__PURE__ */ jsx78(
|
|
|
4285
4109
|
width: "14",
|
|
4286
4110
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4287
4111
|
...props,
|
|
4288
|
-
children: /* @__PURE__ */
|
|
4112
|
+
children: /* @__PURE__ */ jsx76(
|
|
4289
4113
|
"path",
|
|
4290
4114
|
{
|
|
4291
4115
|
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 +4121,12 @@ var NightIcon = (props) => /* @__PURE__ */ jsx78(
|
|
|
4297
4121
|
var NightIcon_default = NightIcon;
|
|
4298
4122
|
|
|
4299
4123
|
// src/components/Shift/Shift.tsx
|
|
4300
|
-
import { jsx as
|
|
4124
|
+
import { jsx as jsx77, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
4301
4125
|
var ShiftEnum = {
|
|
4302
4126
|
DAY: "Day",
|
|
4303
4127
|
NIGHT: "Night"
|
|
4304
4128
|
};
|
|
4305
|
-
var
|
|
4129
|
+
var useStyles22 = makeStyles22()(() => ({
|
|
4306
4130
|
shiftName: {
|
|
4307
4131
|
textTransform: "uppercase",
|
|
4308
4132
|
fontWeight: 600
|
|
@@ -4310,12 +4134,12 @@ var useStyles24 = makeStyles24()(() => ({
|
|
|
4310
4134
|
}));
|
|
4311
4135
|
var Shift = ({ shift }) => {
|
|
4312
4136
|
const shiftIcon = {
|
|
4313
|
-
[ShiftEnum.DAY]: /* @__PURE__ */
|
|
4314
|
-
[ShiftEnum.NIGHT]: /* @__PURE__ */
|
|
4137
|
+
[ShiftEnum.DAY]: /* @__PURE__ */ jsx77(DayIcon_default, { "data-testid": "shift-day" }),
|
|
4138
|
+
[ShiftEnum.NIGHT]: /* @__PURE__ */ jsx77(NightIcon_default, { "data-testid": "shift-night" })
|
|
4315
4139
|
};
|
|
4316
|
-
const { classes } =
|
|
4317
|
-
return /* @__PURE__ */
|
|
4318
|
-
|
|
4140
|
+
const { classes } = useStyles22();
|
|
4141
|
+
return /* @__PURE__ */ jsxs47(
|
|
4142
|
+
Box15,
|
|
4319
4143
|
{
|
|
4320
4144
|
sx: {
|
|
4321
4145
|
display: "flex",
|
|
@@ -4324,30 +4148,30 @@ var Shift = ({ shift }) => {
|
|
|
4324
4148
|
},
|
|
4325
4149
|
children: [
|
|
4326
4150
|
shiftIcon[shift],
|
|
4327
|
-
/* @__PURE__ */
|
|
4328
|
-
/* @__PURE__ */
|
|
4151
|
+
/* @__PURE__ */ jsxs47(Typography12, { children: [
|
|
4152
|
+
/* @__PURE__ */ jsxs47("span", { className: classes.shiftName, children: [
|
|
4329
4153
|
shift,
|
|
4330
4154
|
" "
|
|
4331
4155
|
] }),
|
|
4332
|
-
/* @__PURE__ */
|
|
4156
|
+
/* @__PURE__ */ jsx77("span", { children: "Shift" })
|
|
4333
4157
|
] })
|
|
4334
4158
|
]
|
|
4335
4159
|
}
|
|
4336
4160
|
);
|
|
4337
4161
|
};
|
|
4338
4162
|
Shift.propTypes = {
|
|
4339
|
-
shift:
|
|
4163
|
+
shift: oneOf5(Object.values(ShiftEnum))
|
|
4340
4164
|
};
|
|
4341
4165
|
var Shift_default = Shift;
|
|
4342
4166
|
|
|
4343
4167
|
// src/components/surfaces/FixedFooter/index.js
|
|
4344
|
-
import
|
|
4345
|
-
import { Box as
|
|
4346
|
-
import
|
|
4347
|
-
import { makeStyles as
|
|
4348
|
-
import { jsx as
|
|
4168
|
+
import React64 from "react";
|
|
4169
|
+
import { Box as Box16 } from "@mui/material";
|
|
4170
|
+
import PropTypes6 from "prop-types";
|
|
4171
|
+
import { makeStyles as makeStyles23 } from "tss-react/mui";
|
|
4172
|
+
import { jsx as jsx78, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
4349
4173
|
var footerHeight = "64px";
|
|
4350
|
-
var
|
|
4174
|
+
var useStyles23 = makeStyles23()((theme) => ({
|
|
4351
4175
|
root: {
|
|
4352
4176
|
position: "fixed",
|
|
4353
4177
|
bottom: 0,
|
|
@@ -4365,11 +4189,11 @@ var useStyles25 = makeStyles25()((theme) => ({
|
|
|
4365
4189
|
}
|
|
4366
4190
|
}));
|
|
4367
4191
|
var FixedFooter = ({ justifyContent, children }) => {
|
|
4368
|
-
const { classes } =
|
|
4369
|
-
return /* @__PURE__ */
|
|
4370
|
-
/* @__PURE__ */
|
|
4371
|
-
/* @__PURE__ */
|
|
4372
|
-
|
|
4192
|
+
const { classes } = useStyles23();
|
|
4193
|
+
return /* @__PURE__ */ jsxs48(Box16, { children: [
|
|
4194
|
+
/* @__PURE__ */ jsx78(Box16, { className: classes.fixedOffset }),
|
|
4195
|
+
/* @__PURE__ */ jsx78(
|
|
4196
|
+
Box16,
|
|
4373
4197
|
{
|
|
4374
4198
|
className: classes.root,
|
|
4375
4199
|
sx: {
|
|
@@ -4381,21 +4205,21 @@ var FixedFooter = ({ justifyContent, children }) => {
|
|
|
4381
4205
|
] });
|
|
4382
4206
|
};
|
|
4383
4207
|
FixedFooter.propTypes = {
|
|
4384
|
-
children:
|
|
4385
|
-
justifyContent:
|
|
4208
|
+
children: PropTypes6.node.isRequired,
|
|
4209
|
+
justifyContent: PropTypes6.string
|
|
4386
4210
|
};
|
|
4387
|
-
var FixedFooter_default =
|
|
4211
|
+
var FixedFooter_default = React64.memo(FixedFooter);
|
|
4388
4212
|
|
|
4389
4213
|
// src/components/Table/SmartTableHeader.js
|
|
4390
|
-
import
|
|
4214
|
+
import React65 from "react";
|
|
4391
4215
|
import TableCell from "@mui/material/TableCell";
|
|
4392
4216
|
import TableHead from "@mui/material/TableHead";
|
|
4393
4217
|
import TableRow from "@mui/material/TableRow";
|
|
4394
4218
|
import TableSortLabel from "@mui/material/TableSortLabel";
|
|
4395
|
-
import
|
|
4396
|
-
import { makeStyles as
|
|
4397
|
-
import { jsx as
|
|
4398
|
-
var
|
|
4219
|
+
import PropTypes7 from "prop-types";
|
|
4220
|
+
import { makeStyles as makeStyles24 } from "tss-react/mui";
|
|
4221
|
+
import { jsx as jsx79, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
4222
|
+
var useStyles24 = makeStyles24()(() => ({
|
|
4399
4223
|
root: {
|
|
4400
4224
|
backgroundColor: colors.background,
|
|
4401
4225
|
"& .MuiTableSortLabel-root": {
|
|
@@ -4423,18 +4247,18 @@ var useStyles26 = makeStyles26()(() => ({
|
|
|
4423
4247
|
}
|
|
4424
4248
|
}));
|
|
4425
4249
|
var SmartTableHeader = (props) => {
|
|
4426
|
-
const { classes } =
|
|
4250
|
+
const { classes } = useStyles24();
|
|
4427
4251
|
const { order, orderBy, onRequestSort } = props;
|
|
4428
4252
|
const createSortHandler = (property) => (event) => {
|
|
4429
4253
|
onRequestSort(event, property);
|
|
4430
4254
|
};
|
|
4431
|
-
return /* @__PURE__ */
|
|
4255
|
+
return /* @__PURE__ */ jsx79(TableHead, { className: classes.root, children: /* @__PURE__ */ jsx79(TableRow, { children: props.headCells.map((headCell) => /* @__PURE__ */ jsx79(
|
|
4432
4256
|
TableCell,
|
|
4433
4257
|
{
|
|
4434
4258
|
className: classes.containerTh,
|
|
4435
4259
|
align: "left",
|
|
4436
4260
|
sortDirection: orderBy === headCell.id ? order : false,
|
|
4437
|
-
children: /* @__PURE__ */
|
|
4261
|
+
children: /* @__PURE__ */ jsxs49(
|
|
4438
4262
|
TableSortLabel,
|
|
4439
4263
|
{
|
|
4440
4264
|
active: orderBy === headCell.id,
|
|
@@ -4442,7 +4266,7 @@ var SmartTableHeader = (props) => {
|
|
|
4442
4266
|
onClick: createSortHandler(headCell.id),
|
|
4443
4267
|
children: [
|
|
4444
4268
|
headCell.label,
|
|
4445
|
-
orderBy === headCell.id ? /* @__PURE__ */
|
|
4269
|
+
orderBy === headCell.id ? /* @__PURE__ */ jsx79("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
|
|
4446
4270
|
]
|
|
4447
4271
|
}
|
|
4448
4272
|
)
|
|
@@ -4451,12 +4275,12 @@ var SmartTableHeader = (props) => {
|
|
|
4451
4275
|
)) }) });
|
|
4452
4276
|
};
|
|
4453
4277
|
SmartTableHeader.propTypes = {
|
|
4454
|
-
order:
|
|
4455
|
-
orderBy:
|
|
4456
|
-
onRequestSort:
|
|
4457
|
-
headCells:
|
|
4278
|
+
order: PropTypes7.string,
|
|
4279
|
+
orderBy: PropTypes7.string,
|
|
4280
|
+
onRequestSort: PropTypes7.func,
|
|
4281
|
+
headCells: PropTypes7.any
|
|
4458
4282
|
};
|
|
4459
|
-
var SmartTableHeader_default =
|
|
4283
|
+
var SmartTableHeader_default = React65.memo(SmartTableHeader);
|
|
4460
4284
|
|
|
4461
4285
|
// src/components/Table/TableDesktop.tsx
|
|
4462
4286
|
import { useState as useState5 } from "react";
|
|
@@ -4467,13 +4291,13 @@ import {
|
|
|
4467
4291
|
TableContainer,
|
|
4468
4292
|
Skeleton
|
|
4469
4293
|
} from "@mui/material";
|
|
4470
|
-
import { makeStyles as
|
|
4294
|
+
import { makeStyles as makeStyles26 } from "tss-react/mui";
|
|
4471
4295
|
|
|
4472
4296
|
// src/components/Table/TableEmptyResult.tsx
|
|
4473
4297
|
import { TableCell as TableCell2, TableRow as TableRow2, Typography as Typography13 } from "@mui/material";
|
|
4474
|
-
import { makeStyles as
|
|
4475
|
-
import { jsx as
|
|
4476
|
-
var
|
|
4298
|
+
import { makeStyles as makeStyles25 } from "tss-react/mui";
|
|
4299
|
+
import { jsx as jsx80, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
4300
|
+
var useStyles25 = makeStyles25()(() => ({
|
|
4477
4301
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
4478
4302
|
tableCellDefault: { padding: 24 }
|
|
4479
4303
|
}));
|
|
@@ -4482,12 +4306,12 @@ var TableEmptyResult = ({
|
|
|
4482
4306
|
handleClickOnClearFiltersButton = () => {
|
|
4483
4307
|
}
|
|
4484
4308
|
}) => {
|
|
4485
|
-
const { classes } =
|
|
4486
|
-
return showClearFilterButton ? /* @__PURE__ */
|
|
4487
|
-
/* @__PURE__ */
|
|
4488
|
-
/* @__PURE__ */
|
|
4489
|
-
/* @__PURE__ */
|
|
4490
|
-
/* @__PURE__ */
|
|
4309
|
+
const { classes } = useStyles25();
|
|
4310
|
+
return showClearFilterButton ? /* @__PURE__ */ jsx80(TableRow2, { children: /* @__PURE__ */ jsxs50(TableCell2, { className: classes.tableCellIcon, colSpan: 8, align: "center", children: [
|
|
4311
|
+
/* @__PURE__ */ jsx80(EmptyGlassIcon_default, {}),
|
|
4312
|
+
/* @__PURE__ */ jsx80(Typography13, { variant: "h6", children: "No results found." }),
|
|
4313
|
+
/* @__PURE__ */ jsx80(Typography13, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
4314
|
+
/* @__PURE__ */ jsx80(
|
|
4491
4315
|
FilledButton_default,
|
|
4492
4316
|
{
|
|
4493
4317
|
copy: "Search",
|
|
@@ -4496,7 +4320,7 @@ var TableEmptyResult = ({
|
|
|
4496
4320
|
onClick: handleClickOnClearFiltersButton
|
|
4497
4321
|
}
|
|
4498
4322
|
)
|
|
4499
|
-
] }) }) : /* @__PURE__ */
|
|
4323
|
+
] }) }) : /* @__PURE__ */ jsx80(TableRow2, { children: /* @__PURE__ */ jsx80(
|
|
4500
4324
|
TableCell2,
|
|
4501
4325
|
{
|
|
4502
4326
|
className: classes.tableCellDefault,
|
|
@@ -4509,8 +4333,8 @@ var TableEmptyResult = ({
|
|
|
4509
4333
|
var TableEmptyResult_default = TableEmptyResult;
|
|
4510
4334
|
|
|
4511
4335
|
// src/components/Table/TableDesktop.tsx
|
|
4512
|
-
import { Fragment as Fragment5, jsx as
|
|
4513
|
-
var
|
|
4336
|
+
import { Fragment as Fragment5, jsx as jsx81, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
4337
|
+
var useStyles26 = makeStyles26()(() => ({
|
|
4514
4338
|
root: {
|
|
4515
4339
|
justifyContent: "space-between",
|
|
4516
4340
|
display: "flex",
|
|
@@ -4556,13 +4380,13 @@ var TableDesktop = ({
|
|
|
4556
4380
|
keyField
|
|
4557
4381
|
}) => {
|
|
4558
4382
|
const [order, setOrder] = useState5(
|
|
4559
|
-
|
|
4383
|
+
appliedFilters?.sortDir || "desc"
|
|
4560
4384
|
);
|
|
4561
4385
|
const [orderBy, setOrderBy] = useState5(
|
|
4562
|
-
|
|
4386
|
+
appliedFilters?.sortField || "delivery_date"
|
|
4563
4387
|
);
|
|
4564
4388
|
const [page] = useState5(0);
|
|
4565
|
-
const { classes } =
|
|
4389
|
+
const { classes } = useStyles26();
|
|
4566
4390
|
const rowHeight = 56;
|
|
4567
4391
|
const handleRequestSort = (event, property) => {
|
|
4568
4392
|
const isAsc = orderBy === property && order === "asc";
|
|
@@ -4572,7 +4396,7 @@ var TableDesktop = ({
|
|
|
4572
4396
|
updateSort(property, orderDir);
|
|
4573
4397
|
};
|
|
4574
4398
|
const emptyRows = rowsPerPage - data.length;
|
|
4575
|
-
return /* @__PURE__ */
|
|
4399
|
+
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(() => /* @__PURE__ */ jsx81(
|
|
4576
4400
|
Skeleton,
|
|
4577
4401
|
{
|
|
4578
4402
|
animation: "pulse",
|
|
@@ -4581,15 +4405,15 @@ var TableDesktop = ({
|
|
|
4581
4405
|
height: rowHeight
|
|
4582
4406
|
},
|
|
4583
4407
|
Math.random()
|
|
4584
|
-
)) }) : /* @__PURE__ */
|
|
4585
|
-
/* @__PURE__ */
|
|
4408
|
+
)) }) : /* @__PURE__ */ jsxs51(Fragment5, { children: [
|
|
4409
|
+
/* @__PURE__ */ jsx81(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs51(
|
|
4586
4410
|
Table,
|
|
4587
4411
|
{
|
|
4588
4412
|
"aria-labelledby": "tableTitle",
|
|
4589
4413
|
"aria-label": "sticky table",
|
|
4590
4414
|
stickyHeader: true,
|
|
4591
4415
|
children: [
|
|
4592
|
-
/* @__PURE__ */
|
|
4416
|
+
/* @__PURE__ */ jsx81(
|
|
4593
4417
|
SmartTableHeader_default,
|
|
4594
4418
|
{
|
|
4595
4419
|
headCells,
|
|
@@ -4598,15 +4422,15 @@ var TableDesktop = ({
|
|
|
4598
4422
|
onRequestSort: handleRequestSort
|
|
4599
4423
|
}
|
|
4600
4424
|
),
|
|
4601
|
-
/* @__PURE__ */
|
|
4602
|
-
stableSort(data, getSorting(order, orderBy)).slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((item, index) => /* @__PURE__ */
|
|
4425
|
+
/* @__PURE__ */ jsxs51(TableBody, { children: [
|
|
4426
|
+
stableSort(data, getSorting(order, orderBy)).slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((item, index) => /* @__PURE__ */ jsx81(
|
|
4603
4427
|
RenderItem,
|
|
4604
4428
|
{
|
|
4605
4429
|
...{ ...item, index, deleteItem }
|
|
4606
4430
|
},
|
|
4607
4431
|
item[keyField]
|
|
4608
4432
|
)),
|
|
4609
|
-
rowsPerPage === emptyRows && /* @__PURE__ */
|
|
4433
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ jsx81(
|
|
4610
4434
|
TableEmptyResult_default,
|
|
4611
4435
|
{
|
|
4612
4436
|
showClearFilterButton,
|
|
@@ -4626,10 +4450,10 @@ var TableDesktop_default = TableDesktop;
|
|
|
4626
4450
|
import { memo as memo4, useEffect as useEffect4, useState as useState6 } from "react";
|
|
4627
4451
|
import ImportExportIcon from "@mui/icons-material/ImportExport";
|
|
4628
4452
|
import { TableCell as TableCell3, TableHead as TableHead2, TableRow as TableRow3, TableSortLabel as TableSortLabel2 } from "@mui/material";
|
|
4629
|
-
import { arrayOf as arrayOf2, bool as
|
|
4630
|
-
import { makeStyles as
|
|
4631
|
-
import { jsx as
|
|
4632
|
-
var
|
|
4453
|
+
import { arrayOf as arrayOf2, bool as bool4, func as func5, oneOf as oneOf6, shape as shape3, string as string7 } from "prop-types";
|
|
4454
|
+
import { makeStyles as makeStyles27 } from "tss-react/mui";
|
|
4455
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
4456
|
+
var useStyles27 = makeStyles27()(() => ({
|
|
4633
4457
|
sortLabel: {
|
|
4634
4458
|
"& .MuiTableSortLabel-icon": {
|
|
4635
4459
|
opacity: 1
|
|
@@ -4638,7 +4462,7 @@ var useStyles29 = makeStyles29()(() => ({
|
|
|
4638
4462
|
}));
|
|
4639
4463
|
var TableHeader = ({ cells, onSort }) => {
|
|
4640
4464
|
const [sortableCells, setSortableCells] = useState6([]);
|
|
4641
|
-
const { classes } =
|
|
4465
|
+
const { classes } = useStyles27();
|
|
4642
4466
|
useEffect4(() => {
|
|
4643
4467
|
setSortableCells(cells);
|
|
4644
4468
|
}, []);
|
|
@@ -4652,7 +4476,7 @@ var TableHeader = ({ cells, onSort }) => {
|
|
|
4652
4476
|
return "";
|
|
4653
4477
|
};
|
|
4654
4478
|
const handleSortClick = (sortedCell) => {
|
|
4655
|
-
const newDirection = getNewSortDirection(sortedCell
|
|
4479
|
+
const newDirection = getNewSortDirection(sortedCell?.direction);
|
|
4656
4480
|
if (onSort) {
|
|
4657
4481
|
onSort({
|
|
4658
4482
|
direction: newDirection,
|
|
@@ -4673,11 +4497,11 @@ var TableHeader = ({ cells, onSort }) => {
|
|
|
4673
4497
|
});
|
|
4674
4498
|
setSortableCells(sortedCells);
|
|
4675
4499
|
};
|
|
4676
|
-
return /* @__PURE__ */
|
|
4500
|
+
return /* @__PURE__ */ jsx82(TableHead2, { children: /* @__PURE__ */ jsx82(TableRow3, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx82(TableCell3, { children: cell.isSortable ? /* @__PURE__ */ jsx82(
|
|
4677
4501
|
TableSortLabel2,
|
|
4678
4502
|
{
|
|
4679
4503
|
className: classes.sortLabel,
|
|
4680
|
-
direction:
|
|
4504
|
+
direction: cell?.direction || "asc",
|
|
4681
4505
|
IconComponent: ImportExportIcon,
|
|
4682
4506
|
onClick: () => handleSortClick(cell),
|
|
4683
4507
|
children: cell.label
|
|
@@ -4690,15 +4514,85 @@ TableHeader.defaultProps = {
|
|
|
4690
4514
|
TableHeader.propTypes = {
|
|
4691
4515
|
cells: arrayOf2(
|
|
4692
4516
|
shape3({
|
|
4693
|
-
direction:
|
|
4694
|
-
isSortable:
|
|
4695
|
-
label:
|
|
4696
|
-
name:
|
|
4517
|
+
direction: oneOf6(["asc", "desc", ""]),
|
|
4518
|
+
isSortable: bool4,
|
|
4519
|
+
label: string7,
|
|
4520
|
+
name: string7
|
|
4697
4521
|
})
|
|
4698
4522
|
).isRequired,
|
|
4699
|
-
onSort:
|
|
4523
|
+
onSort: func5
|
|
4700
4524
|
};
|
|
4701
4525
|
var TableHeader_default = memo4(TableHeader);
|
|
4526
|
+
|
|
4527
|
+
// src/components/TheToolbar/TheToolbar.tsx
|
|
4528
|
+
import React68 from "react";
|
|
4529
|
+
import { AppBar as AppBar2, Box as Box17, Toolbar as Toolbar2 } from "@mui/material";
|
|
4530
|
+
import { makeStyles as makeStyles28 } from "tss-react/mui";
|
|
4531
|
+
import { jsx as jsx83, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
4532
|
+
var useStyles28 = makeStyles28()((theme) => ({
|
|
4533
|
+
menuButton: {
|
|
4534
|
+
color: theme.palette.primary.contrastText
|
|
4535
|
+
},
|
|
4536
|
+
searchNatoora: {
|
|
4537
|
+
width: "100%"
|
|
4538
|
+
},
|
|
4539
|
+
searchIcon: {
|
|
4540
|
+
opacity: ".5"
|
|
4541
|
+
},
|
|
4542
|
+
inputRoot: {
|
|
4543
|
+
color: "inherit"
|
|
4544
|
+
},
|
|
4545
|
+
inputInput: {
|
|
4546
|
+
transition: theme.transitions.create("width"),
|
|
4547
|
+
width: "100%"
|
|
4548
|
+
},
|
|
4549
|
+
topBar: {
|
|
4550
|
+
display: "flex",
|
|
4551
|
+
gap: theme.spacing(1),
|
|
4552
|
+
backgroundColor: colors.topBar
|
|
4553
|
+
},
|
|
4554
|
+
drawer: {
|
|
4555
|
+
backgroundColor: "black"
|
|
4556
|
+
},
|
|
4557
|
+
drawerItem: {
|
|
4558
|
+
maxWidth: "300px",
|
|
4559
|
+
width: "80vw"
|
|
4560
|
+
},
|
|
4561
|
+
offset: theme.mixins.toolbar
|
|
4562
|
+
}));
|
|
4563
|
+
var TheToolbar = ({
|
|
4564
|
+
imageLogoDarkSmall,
|
|
4565
|
+
imageLogoLightSmall,
|
|
4566
|
+
handleOpen,
|
|
4567
|
+
LeftDrawer: LeftDrawer2
|
|
4568
|
+
}) => {
|
|
4569
|
+
const { classes } = useStyles28();
|
|
4570
|
+
return /* @__PURE__ */ jsxs52(Box17, { children: [
|
|
4571
|
+
/* @__PURE__ */ jsx83(AppBar2, { children: /* @__PURE__ */ jsxs52(Toolbar2, { className: classes.topBar, children: [
|
|
4572
|
+
/* @__PURE__ */ jsx83(
|
|
4573
|
+
RoundButton_default,
|
|
4574
|
+
{
|
|
4575
|
+
className: classes.menuButton,
|
|
4576
|
+
icon: "menu",
|
|
4577
|
+
noStrokes: true,
|
|
4578
|
+
onClick: handleOpen
|
|
4579
|
+
}
|
|
4580
|
+
),
|
|
4581
|
+
/* @__PURE__ */ jsx83(
|
|
4582
|
+
CompanyLogo_default,
|
|
4583
|
+
{
|
|
4584
|
+
size: "small",
|
|
4585
|
+
color: "light",
|
|
4586
|
+
imageLogoDarkSmall,
|
|
4587
|
+
imageLogoLightSmall
|
|
4588
|
+
}
|
|
4589
|
+
)
|
|
4590
|
+
] }) }),
|
|
4591
|
+
/* @__PURE__ */ jsx83(Box17, { className: classes.offset }),
|
|
4592
|
+
LeftDrawer2
|
|
4593
|
+
] });
|
|
4594
|
+
};
|
|
4595
|
+
var TheToolbar_default = React68.memo(TheToolbar);
|
|
4702
4596
|
export {
|
|
4703
4597
|
AlertDialog_default as AlertDialog,
|
|
4704
4598
|
AlertDialogFullScreen_default as AlertDialogFullScreen,
|
|
@@ -4710,7 +4604,6 @@ export {
|
|
|
4710
4604
|
Date_default as Date,
|
|
4711
4605
|
DeleteSubstitutionDialogContent_default as DeleteSubstitutionDialogContent,
|
|
4712
4606
|
DeleteUserDialogContent_default as DeleteUserDialogContent,
|
|
4713
|
-
DesktopContainer_default as DesktopContainer,
|
|
4714
4607
|
ExtendedButton_default as ExtendedButton,
|
|
4715
4608
|
FilledButton_default as FilledButton,
|
|
4716
4609
|
FilledButtonLg_default as FilledButtonLg,
|