@natoora-libs/core 0.2.31 → 0.2.32-global-search-dev

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.
@@ -5750,10 +5750,283 @@ var FixedFooter = ({ justifyContent, children }) => {
5750
5750
  };
5751
5751
  var FixedFooter_default = React4.memo(FixedFooter);
5752
5752
 
5753
+ // src/components/GlobalSearchTrigger/GlobalSearchTrigger.tsx
5754
+ import { memo as memo14 } from "react";
5755
+ import SearchRoundedIcon from "@mui/icons-material/SearchRounded";
5756
+ import { Box as Box29, InputBase, Paper as Paper3 } from "@mui/material";
5757
+ import { alpha as alpha2 } from "@mui/material/styles";
5758
+ import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
5759
+ var GlobalSearchTrigger = ({
5760
+ onClick,
5761
+ onFocus,
5762
+ onChange,
5763
+ onKeyDown,
5764
+ readOnly = true,
5765
+ placeholder = "Search",
5766
+ ariaLabel = "Global search",
5767
+ shortcutLabel = "\u2318 K",
5768
+ value = "",
5769
+ minWidth = 220,
5770
+ sx,
5771
+ ref,
5772
+ inputRef
5773
+ }) => {
5774
+ return /* @__PURE__ */ jsxs61(
5775
+ Paper3,
5776
+ {
5777
+ ref,
5778
+ elevation: 0,
5779
+ onClick,
5780
+ role: "search",
5781
+ sx: {
5782
+ display: "flex",
5783
+ alignItems: "center",
5784
+ gap: 1,
5785
+ border: `1px solid ${alpha2(colors.white, 0.22)}`,
5786
+ borderRadius: 1,
5787
+ px: 1.5,
5788
+ py: 0.75,
5789
+ minWidth,
5790
+ backgroundColor: alpha2(colors.black, 0.2),
5791
+ color: alpha2(colors.white, 0.82),
5792
+ transition: "background-color 0.15s ease, border-color 0.15s ease",
5793
+ "&:hover": {
5794
+ borderColor: alpha2(colors.white, 0.38),
5795
+ backgroundColor: alpha2(colors.black, 0.35)
5796
+ },
5797
+ "&:focus-within": {
5798
+ borderColor: alpha2(colors.muiPrimary, 0.95),
5799
+ backgroundColor: alpha2(colors.black, 0.35)
5800
+ },
5801
+ ...sx
5802
+ },
5803
+ children: [
5804
+ /* @__PURE__ */ jsx97(SearchRoundedIcon, { sx: { fontSize: 19, color: colors.muiPrimary } }),
5805
+ /* @__PURE__ */ jsx97(
5806
+ InputBase,
5807
+ {
5808
+ inputRef,
5809
+ value,
5810
+ readOnly,
5811
+ onFocus,
5812
+ onKeyDown,
5813
+ onChange: (event) => onChange?.(event.target.value),
5814
+ placeholder,
5815
+ inputProps: { "aria-label": ariaLabel },
5816
+ sx: {
5817
+ flexGrow: 1,
5818
+ color: alpha2(colors.white, 0.82),
5819
+ fontSize: 14,
5820
+ "& input::placeholder": {
5821
+ color: alpha2(colors.white, 0.62),
5822
+ opacity: 1
5823
+ }
5824
+ }
5825
+ }
5826
+ ),
5827
+ /* @__PURE__ */ jsx97(
5828
+ Box29,
5829
+ {
5830
+ sx: {
5831
+ border: `1px solid ${alpha2(colors.white, 0.32)}`,
5832
+ borderRadius: "5px",
5833
+ px: 0.6,
5834
+ py: 0.2,
5835
+ fontSize: 11,
5836
+ lineHeight: 1
5837
+ },
5838
+ children: shortcutLabel
5839
+ }
5840
+ )
5841
+ ]
5842
+ }
5843
+ );
5844
+ };
5845
+ var GlobalSearchTrigger_default = memo14(GlobalSearchTrigger);
5846
+
5847
+ // src/components/GlobalSearch/GlobalSearch.tsx
5848
+ import { memo as memo15, useCallback as useCallback2, useEffect as useEffect5, useRef as useRef5, useState as useState7 } from "react";
5849
+ import { Box as Box30 } from "@mui/material";
5850
+ import { jsx as jsx98 } from "react/jsx-runtime";
5851
+ var IFRAME_MESSAGE_SOURCE = "global-search-iframe";
5852
+ var HOST_SOURCE = "global-search-host";
5853
+ var COLLAPSED_HEIGHT = 44;
5854
+ var MAX_WIDTH = 760;
5855
+ var MIN_WIDTH = 280;
5856
+ var MAX_HEIGHT = 820;
5857
+ var WIDGET_SRC = "/react/search/widget";
5858
+ var isEditableElement = (target) => {
5859
+ if (!(target instanceof HTMLElement)) {
5860
+ return false;
5861
+ }
5862
+ if (target.isContentEditable) {
5863
+ return true;
5864
+ }
5865
+ const tagName = target.tagName.toLowerCase();
5866
+ const role = target.getAttribute("role");
5867
+ return tagName === "input" || tagName === "textarea" || tagName === "select" || role === "textbox";
5868
+ };
5869
+ var GlobalSearch = ({
5870
+ onNavigate,
5871
+ shouldUseWindowLocation = (path) => path.startsWith("/react/") || path.startsWith("/#/")
5872
+ }) => {
5873
+ const iframeRef = useRef5(null);
5874
+ const wrapperRef = useRef5(null);
5875
+ const [open, setOpen] = useState7(false);
5876
+ const [height, setHeight] = useState7(COLLAPSED_HEIGHT);
5877
+ const widgetSrc = WIDGET_SRC;
5878
+ const widgetOrigin = new URL(widgetSrc, window.location.origin).origin;
5879
+ const postToIframe = useCallback2(
5880
+ (type) => {
5881
+ const targetWindow = iframeRef.current?.contentWindow;
5882
+ if (!targetWindow) {
5883
+ return;
5884
+ }
5885
+ targetWindow.postMessage(
5886
+ {
5887
+ source: HOST_SOURCE,
5888
+ type
5889
+ },
5890
+ widgetOrigin
5891
+ );
5892
+ },
5893
+ [widgetOrigin]
5894
+ );
5895
+ const close = useCallback2(() => {
5896
+ setOpen(false);
5897
+ setHeight(COLLAPSED_HEIGHT);
5898
+ postToIframe("GLOBAL_SEARCH_CLOSE");
5899
+ }, [postToIframe]);
5900
+ const toggle = useCallback2(() => {
5901
+ setOpen(true);
5902
+ setHeight(MAX_HEIGHT);
5903
+ postToIframe("GLOBAL_SEARCH_TOGGLE");
5904
+ }, [postToIframe]);
5905
+ useEffect5(() => {
5906
+ const onKeyDown = (event) => {
5907
+ const isCommandOrCtrl = event.metaKey || event.ctrlKey;
5908
+ if (isCommandOrCtrl && event.key.toLowerCase() === "k") {
5909
+ if (isEditableElement(event.target) && !open) {
5910
+ return;
5911
+ }
5912
+ event.preventDefault();
5913
+ toggle();
5914
+ }
5915
+ if (event.key === "Escape" && open) {
5916
+ event.preventDefault();
5917
+ close();
5918
+ }
5919
+ };
5920
+ window.addEventListener("keydown", onKeyDown);
5921
+ return () => window.removeEventListener("keydown", onKeyDown);
5922
+ }, [close, open, toggle]);
5923
+ useEffect5(() => {
5924
+ if (!open) {
5925
+ return void 0;
5926
+ }
5927
+ const onPointerDown = (event) => {
5928
+ const wrapper = wrapperRef.current;
5929
+ if (!wrapper) {
5930
+ return;
5931
+ }
5932
+ const target = event.target;
5933
+ if (!(target instanceof Node)) {
5934
+ return;
5935
+ }
5936
+ if (!wrapper.contains(target)) {
5937
+ close();
5938
+ }
5939
+ };
5940
+ document.addEventListener("pointerdown", onPointerDown, true);
5941
+ return () => document.removeEventListener("pointerdown", onPointerDown, true);
5942
+ }, [close, open]);
5943
+ useEffect5(() => {
5944
+ const onMessage = (event) => {
5945
+ if (event.origin !== widgetOrigin) {
5946
+ return;
5947
+ }
5948
+ const iframeWindow = iframeRef.current?.contentWindow;
5949
+ if (iframeWindow && event.source !== iframeWindow) {
5950
+ return;
5951
+ }
5952
+ const data = event.data;
5953
+ if (!data || data.source !== IFRAME_MESSAGE_SOURCE) {
5954
+ return;
5955
+ }
5956
+ if (data.type === "GLOBAL_SEARCH_CLOSE") {
5957
+ setOpen(false);
5958
+ setHeight(COLLAPSED_HEIGHT);
5959
+ return;
5960
+ }
5961
+ if (data.type === "GLOBAL_SEARCH_RESIZE") {
5962
+ const nextHeight = Math.max(
5963
+ COLLAPSED_HEIGHT,
5964
+ Math.min(MAX_HEIGHT, Math.ceil(Number(data.height || 0)))
5965
+ );
5966
+ setHeight(nextHeight);
5967
+ setOpen(nextHeight > COLLAPSED_HEIGHT + 1);
5968
+ return;
5969
+ }
5970
+ if (data.type === "GLOBAL_SEARCH_NAVIGATE") {
5971
+ const rawRoute = data.route;
5972
+ if (!rawRoute || !rawRoute.startsWith("/")) {
5973
+ return;
5974
+ }
5975
+ setOpen(false);
5976
+ setHeight(COLLAPSED_HEIGHT);
5977
+ const nextRoute = rawRoute.startsWith("/react/") || rawRoute.startsWith("/#/") ? rawRoute : `/react${rawRoute}`;
5978
+ if (nextRoute.startsWith("/react/") || shouldUseWindowLocation(rawRoute)) {
5979
+ window.location.assign(nextRoute);
5980
+ return;
5981
+ }
5982
+ onNavigate?.(nextRoute);
5983
+ }
5984
+ };
5985
+ window.addEventListener("message", onMessage);
5986
+ return () => window.removeEventListener("message", onMessage);
5987
+ }, [onNavigate, shouldUseWindowLocation, widgetOrigin]);
5988
+ return /* @__PURE__ */ jsx98(
5989
+ Box30,
5990
+ {
5991
+ ref: wrapperRef,
5992
+ sx: {
5993
+ position: "relative",
5994
+ overflow: "visible",
5995
+ width: "100%",
5996
+ maxWidth: MAX_WIDTH,
5997
+ minWidth: MIN_WIDTH,
5998
+ flex: "1 1 420px",
5999
+ height: COLLAPSED_HEIGHT
6000
+ },
6001
+ children: /* @__PURE__ */ jsx98(
6002
+ "iframe",
6003
+ {
6004
+ ref: iframeRef,
6005
+ title: "Global Search",
6006
+ "data-testid": "global-search-widget-iframe",
6007
+ src: widgetSrc,
6008
+ scrolling: "no",
6009
+ style: {
6010
+ position: "absolute",
6011
+ top: 0,
6012
+ right: 0,
6013
+ width: "100%",
6014
+ height,
6015
+ border: 0,
6016
+ display: "block",
6017
+ backgroundColor: "transparent"
6018
+ }
6019
+ }
6020
+ )
6021
+ }
6022
+ );
6023
+ };
6024
+ var GlobalSearch_default = memo15(GlobalSearch);
6025
+
5753
6026
  // src/components/Header/Header.tsx
5754
- import { Paper as Paper3 } from "@mui/material";
6027
+ import { Paper as Paper4 } from "@mui/material";
5755
6028
  import { makeStyles as makeStyles28 } from "tss-react/mui";
5756
- import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
6029
+ import { jsx as jsx99, jsxs as jsxs62 } from "react/jsx-runtime";
5757
6030
  var useStyles28 = makeStyles28()((theme) => ({
5758
6031
  container: {
5759
6032
  margin: theme.spacing(1)
@@ -5776,16 +6049,16 @@ var Header = ({
5776
6049
  wrappedHeader = false
5777
6050
  }) => {
5778
6051
  const { classes, cx } = useStyles28();
5779
- return /* @__PURE__ */ jsx97(
5780
- Paper3,
6052
+ return /* @__PURE__ */ jsx99(
6053
+ Paper4,
5781
6054
  {
5782
6055
  className: cx({
5783
6056
  [classes.container]: !wrappedHeader
5784
6057
  }),
5785
6058
  elevation: wrappedHeader ? 0 : 1,
5786
- children: /* @__PURE__ */ jsxs61("header", { className: classes.header, children: [
5787
- /* @__PURE__ */ jsx97(AppLabel_default, { appName }),
5788
- children ? /* @__PURE__ */ jsx97("div", { className: classes.rightContent, children }) : null
6059
+ children: /* @__PURE__ */ jsxs62("header", { className: classes.header, children: [
6060
+ /* @__PURE__ */ jsx99(AppLabel_default, { appName }),
6061
+ children ? /* @__PURE__ */ jsx99("div", { className: classes.rightContent, children }) : null
5789
6062
  ] })
5790
6063
  }
5791
6064
  );
@@ -5795,20 +6068,20 @@ var Header_default = Header;
5795
6068
  // src/components/List/List.tsx
5796
6069
  import { FixedSizeList } from "react-window";
5797
6070
  import { ListItem, ListItemText as ListItemText3 } from "@mui/material";
5798
- import { Fragment as Fragment8, jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
6071
+ import { Fragment as Fragment8, jsx as jsx100, jsxs as jsxs63 } from "react/jsx-runtime";
5799
6072
  var ListHeader = (props) => {
5800
6073
  const headers = props.headers || [];
5801
- return /* @__PURE__ */ jsx98(ListItem, { children: headers.map((header, i) => (
6074
+ return /* @__PURE__ */ jsx100(ListItem, { children: headers.map((header, i) => (
5802
6075
  // eslint-disable-next-line react/no-array-index-key
5803
- /* @__PURE__ */ jsx98(ListItemText3, { primary: header.text }, i)
6076
+ /* @__PURE__ */ jsx100(ListItemText3, { primary: header.text }, i)
5804
6077
  )) });
5805
6078
  };
5806
6079
  function VirtualizedList(props) {
5807
6080
  const { innerWidth, innerHeight } = window;
5808
6081
  const { headers, items, renderItem } = props;
5809
- return /* @__PURE__ */ jsxs62(Fragment8, { children: [
5810
- /* @__PURE__ */ jsx98(ListHeader, { headers }),
5811
- /* @__PURE__ */ jsx98(
6082
+ return /* @__PURE__ */ jsxs63(Fragment8, { children: [
6083
+ /* @__PURE__ */ jsx100(ListHeader, { headers }),
6084
+ /* @__PURE__ */ jsx100(
5812
6085
  FixedSizeList,
5813
6086
  {
5814
6087
  height: innerHeight - 150,
@@ -5824,11 +6097,11 @@ function VirtualizedList(props) {
5824
6097
 
5825
6098
  // src/components/LocationsSectionInfo/LocationsSectionInfo.tsx
5826
6099
  import { Fragment as Fragment9 } from "react";
5827
- import { Box as Box29, Chip as Chip4, Typography as Typography20 } from "@mui/material";
6100
+ import { Box as Box31, Chip as Chip4, Typography as Typography20 } from "@mui/material";
5828
6101
  import { purple } from "@mui/material/colors";
5829
6102
  import classNames2 from "classnames";
5830
6103
  import { makeStyles as makeStyles29 } from "tss-react/mui";
5831
- import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
6104
+ import { jsx as jsx101, jsxs as jsxs64 } from "react/jsx-runtime";
5832
6105
  var useStyles29 = makeStyles29()(() => ({
5833
6106
  container: {
5834
6107
  display: "flex",
@@ -5874,8 +6147,8 @@ var LocationsSectionInfo = ({
5874
6147
  }
5875
6148
  return "STOCK";
5876
6149
  };
5877
- return /* @__PURE__ */ jsxs63(Box29, { className: classes.container, children: [
5878
- /* @__PURE__ */ jsx99(
6150
+ return /* @__PURE__ */ jsxs64(Box31, { className: classes.container, children: [
6151
+ /* @__PURE__ */ jsx101(
5879
6152
  Chip4,
5880
6153
  {
5881
6154
  className: classNames2(classes.defaultChip, {
@@ -5886,20 +6159,20 @@ var LocationsSectionInfo = ({
5886
6159
  label: getLocationLabel()
5887
6160
  }
5888
6161
  ),
5889
- /* @__PURE__ */ jsx99(Typography20, { className: classes.locationText, color: "primary", children: principalLocation }),
5890
- secondaryLocation?.map((loc) => /* @__PURE__ */ jsxs63(Fragment9, { children: [
5891
- /* @__PURE__ */ jsx99(Typography20, { className: classes.smallTitle, children: "/" }),
5892
- /* @__PURE__ */ jsx99(Typography20, { className: classes.locationText, children: loc })
6162
+ /* @__PURE__ */ jsx101(Typography20, { className: classes.locationText, color: "primary", children: principalLocation }),
6163
+ secondaryLocation?.map((loc) => /* @__PURE__ */ jsxs64(Fragment9, { children: [
6164
+ /* @__PURE__ */ jsx101(Typography20, { className: classes.smallTitle, children: "/" }),
6165
+ /* @__PURE__ */ jsx101(Typography20, { className: classes.locationText, children: loc })
5893
6166
  ] }, loc))
5894
6167
  ] });
5895
6168
  };
5896
6169
  var LocationsSectionInfo_default = LocationsSectionInfo;
5897
6170
 
5898
6171
  // src/components/Notes/Notes.tsx
5899
- import { useEffect as useEffect5, useState as useState7 } from "react";
6172
+ import { useEffect as useEffect6, useState as useState8 } from "react";
5900
6173
  import { FormControl as FormControl4, Input, InputAdornment as InputAdornment3, InputLabel as InputLabel4 } from "@mui/material";
5901
6174
  import { makeStyles as makeStyles30 } from "tss-react/mui";
5902
- import { jsx as jsx100, jsxs as jsxs64 } from "react/jsx-runtime";
6175
+ import { jsx as jsx102, jsxs as jsxs65 } from "react/jsx-runtime";
5903
6176
  var useStyles30 = makeStyles30()((theme) => ({
5904
6177
  wrapper: {
5905
6178
  padding: theme.spacing(3),
@@ -5916,8 +6189,8 @@ var Notes2 = ({
5916
6189
  onChange,
5917
6190
  onClearNotes
5918
6191
  }) => {
5919
- const [notes, setNotes] = useState7("");
5920
- useEffect5(() => {
6192
+ const [notes, setNotes] = useState8("");
6193
+ useEffect6(() => {
5921
6194
  if (!initialNotes) {
5922
6195
  return;
5923
6196
  }
@@ -5942,13 +6215,13 @@ var Notes2 = ({
5942
6215
  }
5943
6216
  };
5944
6217
  const { classes } = useStyles30();
5945
- return /* @__PURE__ */ jsx100("div", { className: classes.wrapper, children: /* @__PURE__ */ jsxs64(FormControl4, { fullWidth: true, children: [
5946
- /* @__PURE__ */ jsx100(InputLabel4, { htmlFor: "notes", children: "Notes" }),
5947
- /* @__PURE__ */ jsx100(
6218
+ return /* @__PURE__ */ jsx102("div", { className: classes.wrapper, children: /* @__PURE__ */ jsxs65(FormControl4, { fullWidth: true, children: [
6219
+ /* @__PURE__ */ jsx102(InputLabel4, { htmlFor: "notes", children: "Notes" }),
6220
+ /* @__PURE__ */ jsx102(
5948
6221
  Input,
5949
6222
  {
5950
6223
  disabled: isDisabled || isLoading,
5951
- endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ jsx100(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx100(
6224
+ endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ jsx102(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx102(
5952
6225
  RoundButton_default,
5953
6226
  {
5954
6227
  disabled: isLoading,
@@ -5974,8 +6247,8 @@ var Notes2 = ({
5974
6247
  var Notes_default = Notes2;
5975
6248
 
5976
6249
  // src/components/Numpad/Numpad.tsx
5977
- import { jsx as jsx101, jsxs as jsxs65 } from "react/jsx-runtime";
5978
- var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6250
+ import { jsx as jsx103, jsxs as jsxs66 } from "react/jsx-runtime";
6251
+ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
5979
6252
  "div",
5980
6253
  {
5981
6254
  style: {
@@ -5987,9 +6260,9 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
5987
6260
  padding: 8
5988
6261
  },
5989
6262
  children: [
5990
- /* @__PURE__ */ jsxs65("div", { children: [
5991
- /* @__PURE__ */ jsxs65("div", { children: [
5992
- /* @__PURE__ */ jsx101(
6263
+ /* @__PURE__ */ jsxs66("div", { children: [
6264
+ /* @__PURE__ */ jsxs66("div", { children: [
6265
+ /* @__PURE__ */ jsx103(
5993
6266
  RoundButton_default,
5994
6267
  {
5995
6268
  onClick: () => handleClick("1"),
@@ -5998,7 +6271,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
5998
6271
  children: "1"
5999
6272
  }
6000
6273
  ),
6001
- /* @__PURE__ */ jsx101(
6274
+ /* @__PURE__ */ jsx103(
6002
6275
  RoundButton_default,
6003
6276
  {
6004
6277
  onClick: () => handleClick("2"),
@@ -6007,7 +6280,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6007
6280
  children: "2"
6008
6281
  }
6009
6282
  ),
6010
- /* @__PURE__ */ jsx101(
6283
+ /* @__PURE__ */ jsx103(
6011
6284
  RoundButton_default,
6012
6285
  {
6013
6286
  onClick: () => handleClick("3"),
@@ -6017,8 +6290,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6017
6290
  }
6018
6291
  )
6019
6292
  ] }),
6020
- /* @__PURE__ */ jsxs65("div", { children: [
6021
- /* @__PURE__ */ jsx101(
6293
+ /* @__PURE__ */ jsxs66("div", { children: [
6294
+ /* @__PURE__ */ jsx103(
6022
6295
  RoundButton_default,
6023
6296
  {
6024
6297
  onClick: () => handleClick("4"),
@@ -6027,7 +6300,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6027
6300
  children: "4"
6028
6301
  }
6029
6302
  ),
6030
- /* @__PURE__ */ jsx101(
6303
+ /* @__PURE__ */ jsx103(
6031
6304
  RoundButton_default,
6032
6305
  {
6033
6306
  onClick: () => handleClick("5"),
@@ -6036,7 +6309,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6036
6309
  children: "5"
6037
6310
  }
6038
6311
  ),
6039
- /* @__PURE__ */ jsx101(
6312
+ /* @__PURE__ */ jsx103(
6040
6313
  RoundButton_default,
6041
6314
  {
6042
6315
  onClick: () => handleClick("6"),
@@ -6046,8 +6319,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6046
6319
  }
6047
6320
  )
6048
6321
  ] }),
6049
- /* @__PURE__ */ jsxs65("div", { children: [
6050
- /* @__PURE__ */ jsx101(
6322
+ /* @__PURE__ */ jsxs66("div", { children: [
6323
+ /* @__PURE__ */ jsx103(
6051
6324
  RoundButton_default,
6052
6325
  {
6053
6326
  onClick: () => handleClick("7"),
@@ -6056,7 +6329,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6056
6329
  children: "7"
6057
6330
  }
6058
6331
  ),
6059
- /* @__PURE__ */ jsx101(
6332
+ /* @__PURE__ */ jsx103(
6060
6333
  RoundButton_default,
6061
6334
  {
6062
6335
  onClick: () => handleClick("8"),
@@ -6065,7 +6338,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6065
6338
  children: "8"
6066
6339
  }
6067
6340
  ),
6068
- /* @__PURE__ */ jsx101(
6341
+ /* @__PURE__ */ jsx103(
6069
6342
  RoundButton_default,
6070
6343
  {
6071
6344
  onClick: () => handleClick("9"),
@@ -6075,8 +6348,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6075
6348
  }
6076
6349
  )
6077
6350
  ] }),
6078
- /* @__PURE__ */ jsxs65("div", { children: [
6079
- /* @__PURE__ */ jsx101(
6351
+ /* @__PURE__ */ jsxs66("div", { children: [
6352
+ /* @__PURE__ */ jsx103(
6080
6353
  RoundButton_default,
6081
6354
  {
6082
6355
  onClick: () => handleClick("0"),
@@ -6085,7 +6358,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6085
6358
  children: "0"
6086
6359
  }
6087
6360
  ),
6088
- /* @__PURE__ */ jsx101(
6361
+ /* @__PURE__ */ jsx103(
6089
6362
  RoundButton_default,
6090
6363
  {
6091
6364
  onClick: () => handleClick("."),
@@ -6096,7 +6369,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6096
6369
  )
6097
6370
  ] })
6098
6371
  ] }),
6099
- /* @__PURE__ */ jsx101(
6372
+ /* @__PURE__ */ jsx103(
6100
6373
  "div",
6101
6374
  {
6102
6375
  style: {
@@ -6105,7 +6378,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6105
6378
  justifyContent: "space-between",
6106
6379
  borderLeft: `1px solid ${colors.neutral250}`
6107
6380
  },
6108
- children: /* @__PURE__ */ jsx101(
6381
+ children: /* @__PURE__ */ jsx103(
6109
6382
  RoundButton_default,
6110
6383
  {
6111
6384
  icon: "backspaceOutlined",
@@ -6122,10 +6395,10 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6122
6395
  var Numpad_default = Numpad;
6123
6396
 
6124
6397
  // src/components/NumpadInput/NumpadInput.tsx
6125
- import { memo as memo14, useState as useState8 } from "react";
6398
+ import { memo as memo16, useState as useState9 } from "react";
6126
6399
  import { TextField as TextField6, Typography as Typography21 } from "@mui/material";
6127
6400
  import { makeStyles as makeStyles31 } from "tss-react/mui";
6128
- import { jsx as jsx102, jsxs as jsxs66 } from "react/jsx-runtime";
6401
+ import { jsx as jsx104, jsxs as jsxs67 } from "react/jsx-runtime";
6129
6402
  var useStyles31 = makeStyles31()(() => ({
6130
6403
  c_numpadinput__textfield: {
6131
6404
  "& .MuiInputLabel-outlined.MuiInputLabel-shrink": {
@@ -6152,7 +6425,7 @@ var useStyles31 = makeStyles31()(() => ({
6152
6425
  var NumpadInput = (props) => {
6153
6426
  const { handleNextClick, inputLabel, children } = props;
6154
6427
  const { classes } = useStyles31();
6155
- const [state, setState] = useState8("");
6428
+ const [state, setState] = useState9("");
6156
6429
  const handleNumpadClick = (value) => {
6157
6430
  setState(state + value);
6158
6431
  };
@@ -6162,13 +6435,13 @@ var NumpadInput = (props) => {
6162
6435
  function handleSubmit() {
6163
6436
  handleNextClick?.(state);
6164
6437
  }
6165
- const DefaultInput = /* @__PURE__ */ jsxs66("div", { children: [
6166
- /* @__PURE__ */ jsx102(Typography21, { variant: "h5", style: { padding: "16px 0 3rem" }, children: inputLabel }),
6167
- /* @__PURE__ */ jsx102("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ jsx102(
6438
+ const DefaultInput = /* @__PURE__ */ jsxs67("div", { children: [
6439
+ /* @__PURE__ */ jsx104(Typography21, { variant: "h5", style: { padding: "16px 0 3rem" }, children: inputLabel }),
6440
+ /* @__PURE__ */ jsx104("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ jsx104(
6168
6441
  TextField6,
6169
6442
  {
6170
6443
  id: "outlined-basic",
6171
- label: /* @__PURE__ */ jsx102(Typography21, { style: { fontSize: "1.5rem" }, children: "Insert" }),
6444
+ label: /* @__PURE__ */ jsx104(Typography21, { style: { fontSize: "1.5rem" }, children: "Insert" }),
6172
6445
  value: state,
6173
6446
  variant: "outlined",
6174
6447
  autoFocus: true,
@@ -6183,27 +6456,27 @@ var NumpadInput = (props) => {
6183
6456
  ) }),
6184
6457
  children
6185
6458
  ] });
6186
- return /* @__PURE__ */ jsxs66("div", { children: [
6187
- /* @__PURE__ */ jsxs66("div", { className: classes.c_numpadinput__body, children: [
6459
+ return /* @__PURE__ */ jsxs67("div", { children: [
6460
+ /* @__PURE__ */ jsxs67("div", { className: classes.c_numpadinput__body, children: [
6188
6461
  children || DefaultInput,
6189
- /* @__PURE__ */ jsx102(Numpad_default, { handleClick: handleNumpadClick, handleUndo })
6462
+ /* @__PURE__ */ jsx104(Numpad_default, { handleClick: handleNumpadClick, handleUndo })
6190
6463
  ] }),
6191
- state ? /* @__PURE__ */ jsx102(
6464
+ state ? /* @__PURE__ */ jsx104(
6192
6465
  FilledButtonLg_default,
6193
6466
  {
6194
6467
  color: "primary",
6195
6468
  copy: "next",
6196
6469
  handleClick: handleSubmit
6197
6470
  }
6198
- ) : /* @__PURE__ */ jsx102(FilledButtonLg_default, { copy: "next", disabled: true })
6471
+ ) : /* @__PURE__ */ jsx104(FilledButtonLg_default, { copy: "next", disabled: true })
6199
6472
  ] });
6200
6473
  };
6201
- var NumpadInput_default = memo14(NumpadInput);
6474
+ var NumpadInput_default = memo16(NumpadInput);
6202
6475
 
6203
6476
  // src/components/NumpadPlus/NumpadPlus.tsx
6204
- import { Box as Box30 } from "@mui/material";
6477
+ import { Box as Box32 } from "@mui/material";
6205
6478
  import { makeStyles as makeStyles32 } from "tss-react/mui";
6206
- import { jsx as jsx103, jsxs as jsxs67 } from "react/jsx-runtime";
6479
+ import { jsx as jsx105, jsxs as jsxs68 } from "react/jsx-runtime";
6207
6480
  var useStyles32 = makeStyles32()(() => ({
6208
6481
  numpadContainer: {
6209
6482
  display: "flex",
@@ -6235,10 +6508,10 @@ var useStyles32 = makeStyles32()(() => ({
6235
6508
  }));
6236
6509
  var NumpadPlus = ({ handleClick, handleUndo }) => {
6237
6510
  const { classes: styles } = useStyles32();
6238
- return /* @__PURE__ */ jsxs67(Box30, { className: styles.numpadContainer, children: [
6239
- /* @__PURE__ */ jsxs67(Box30, { className: styles.numpadNumbersContainer, children: [
6240
- /* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
6241
- /* @__PURE__ */ jsx103(
6511
+ return /* @__PURE__ */ jsxs68(Box32, { className: styles.numpadContainer, children: [
6512
+ /* @__PURE__ */ jsxs68(Box32, { className: styles.numpadNumbersContainer, children: [
6513
+ /* @__PURE__ */ jsxs68(Box32, { className: styles.numpadRow, children: [
6514
+ /* @__PURE__ */ jsx105(
6242
6515
  RoundButton_default,
6243
6516
  {
6244
6517
  onClick: () => handleClick("1"),
@@ -6247,7 +6520,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6247
6520
  children: "1"
6248
6521
  }
6249
6522
  ),
6250
- /* @__PURE__ */ jsx103(
6523
+ /* @__PURE__ */ jsx105(
6251
6524
  RoundButton_default,
6252
6525
  {
6253
6526
  onClick: () => handleClick("2"),
@@ -6256,7 +6529,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6256
6529
  children: "2"
6257
6530
  }
6258
6531
  ),
6259
- /* @__PURE__ */ jsx103(
6532
+ /* @__PURE__ */ jsx105(
6260
6533
  RoundButton_default,
6261
6534
  {
6262
6535
  onClick: () => handleClick("3"),
@@ -6266,8 +6539,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6266
6539
  }
6267
6540
  )
6268
6541
  ] }),
6269
- /* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
6270
- /* @__PURE__ */ jsx103(
6542
+ /* @__PURE__ */ jsxs68(Box32, { className: styles.numpadRow, children: [
6543
+ /* @__PURE__ */ jsx105(
6271
6544
  RoundButton_default,
6272
6545
  {
6273
6546
  onClick: () => handleClick("4"),
@@ -6276,7 +6549,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6276
6549
  children: "4"
6277
6550
  }
6278
6551
  ),
6279
- /* @__PURE__ */ jsx103(
6552
+ /* @__PURE__ */ jsx105(
6280
6553
  RoundButton_default,
6281
6554
  {
6282
6555
  onClick: () => handleClick("5"),
@@ -6285,7 +6558,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6285
6558
  children: "5"
6286
6559
  }
6287
6560
  ),
6288
- /* @__PURE__ */ jsx103(
6561
+ /* @__PURE__ */ jsx105(
6289
6562
  RoundButton_default,
6290
6563
  {
6291
6564
  onClick: () => handleClick("6"),
@@ -6295,8 +6568,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6295
6568
  }
6296
6569
  )
6297
6570
  ] }),
6298
- /* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
6299
- /* @__PURE__ */ jsx103(
6571
+ /* @__PURE__ */ jsxs68(Box32, { className: styles.numpadRow, children: [
6572
+ /* @__PURE__ */ jsx105(
6300
6573
  RoundButton_default,
6301
6574
  {
6302
6575
  onClick: () => handleClick("7"),
@@ -6305,7 +6578,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6305
6578
  children: "7"
6306
6579
  }
6307
6580
  ),
6308
- /* @__PURE__ */ jsx103(
6581
+ /* @__PURE__ */ jsx105(
6309
6582
  RoundButton_default,
6310
6583
  {
6311
6584
  onClick: () => handleClick("8"),
@@ -6314,7 +6587,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6314
6587
  children: "8"
6315
6588
  }
6316
6589
  ),
6317
- /* @__PURE__ */ jsx103(
6590
+ /* @__PURE__ */ jsx105(
6318
6591
  RoundButton_default,
6319
6592
  {
6320
6593
  onClick: () => handleClick("9"),
@@ -6324,8 +6597,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6324
6597
  }
6325
6598
  )
6326
6599
  ] }),
6327
- /* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
6328
- /* @__PURE__ */ jsx103(
6600
+ /* @__PURE__ */ jsxs68(Box32, { className: styles.numpadRow, children: [
6601
+ /* @__PURE__ */ jsx105(
6329
6602
  RoundButton_default,
6330
6603
  {
6331
6604
  onClick: () => handleClick("0"),
@@ -6334,7 +6607,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6334
6607
  children: "0"
6335
6608
  }
6336
6609
  ),
6337
- /* @__PURE__ */ jsx103(
6610
+ /* @__PURE__ */ jsx105(
6338
6611
  RoundButton_default,
6339
6612
  {
6340
6613
  onClick: () => handleClick("."),
@@ -6343,7 +6616,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6343
6616
  children: "."
6344
6617
  }
6345
6618
  ),
6346
- /* @__PURE__ */ jsx103(
6619
+ /* @__PURE__ */ jsx105(
6347
6620
  RoundButton_default,
6348
6621
  {
6349
6622
  onClick: () => handleClick("-"),
@@ -6354,7 +6627,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6354
6627
  )
6355
6628
  ] })
6356
6629
  ] }),
6357
- /* @__PURE__ */ jsx103(Box30, { className: styles.numpadBackspace, children: /* @__PURE__ */ jsx103(
6630
+ /* @__PURE__ */ jsx105(Box32, { className: styles.numpadBackspace, children: /* @__PURE__ */ jsx105(
6358
6631
  RoundButton_default,
6359
6632
  {
6360
6633
  icon: "backspaceOutlined",
@@ -6368,9 +6641,9 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6368
6641
  var NumpadPlus_default = NumpadPlus;
6369
6642
 
6370
6643
  // src/components/Pagination/Pagination.tsx
6371
- import { Pagination, Paper as Paper4, Typography as Typography22 } from "@mui/material";
6644
+ import { Pagination, Paper as Paper5, Typography as Typography22 } from "@mui/material";
6372
6645
  import { makeStyles as makeStyles33 } from "tss-react/mui";
6373
- import { jsx as jsx104, jsxs as jsxs68 } from "react/jsx-runtime";
6646
+ import { jsx as jsx106, jsxs as jsxs69 } from "react/jsx-runtime";
6374
6647
  var paginationHeight = "56px";
6375
6648
  var useStyles33 = makeStyles33()((theme) => ({
6376
6649
  root: {
@@ -6414,7 +6687,7 @@ var PaginationForTable = ({
6414
6687
  updateFilters({ ...appliedFilters, page: value });
6415
6688
  };
6416
6689
  const isFixed = position === "fixed";
6417
- return /* @__PURE__ */ jsx104(Paper4, { children: /* @__PURE__ */ jsxs68(
6690
+ return /* @__PURE__ */ jsx106(Paper5, { children: /* @__PURE__ */ jsxs69(
6418
6691
  "div",
6419
6692
  {
6420
6693
  style,
@@ -6422,11 +6695,11 @@ var PaginationForTable = ({
6422
6695
  [classes.fixed]: isFixed
6423
6696
  }),
6424
6697
  children: [
6425
- /* @__PURE__ */ jsxs68(Typography22, { variant: "body1", children: [
6698
+ /* @__PURE__ */ jsxs69(Typography22, { variant: "body1", children: [
6426
6699
  "Page: ",
6427
6700
  page
6428
6701
  ] }),
6429
- /* @__PURE__ */ jsx104(
6702
+ /* @__PURE__ */ jsx106(
6430
6703
  Pagination,
6431
6704
  {
6432
6705
  count: pagination.num_pages,
@@ -6441,7 +6714,7 @@ var PaginationForTable = ({
6441
6714
  var Pagination_default = PaginationForTable;
6442
6715
 
6443
6716
  // src/components/PlusMinusInput/PlusMinusInput.tsx
6444
- import { useCallback as useCallback2, useEffect as useEffect6 } from "react";
6717
+ import { useCallback as useCallback3, useEffect as useEffect7 } from "react";
6445
6718
  import { Controller as Controller9, useForm, useWatch } from "react-hook-form";
6446
6719
  import {
6447
6720
  FormControlLabel as FormControlLabel5,
@@ -6450,7 +6723,7 @@ import {
6450
6723
  Typography as Typography23
6451
6724
  } from "@mui/material";
6452
6725
  import { makeStyles as makeStyles34 } from "tss-react/mui";
6453
- import { jsx as jsx105, jsxs as jsxs69 } from "react/jsx-runtime";
6726
+ import { jsx as jsx107, jsxs as jsxs70 } from "react/jsx-runtime";
6454
6727
  var useStyles34 = makeStyles34()((theme) => ({
6455
6728
  container: {
6456
6729
  position: "relative",
@@ -6528,7 +6801,7 @@ var PlusMinusInput = ({
6528
6801
  }
6529
6802
  });
6530
6803
  const inputValue = useWatch({ control, name: "inputValue" });
6531
- const setInputValue = useCallback2(
6804
+ const setInputValue = useCallback3(
6532
6805
  (newValue) => {
6533
6806
  if (Number.isNaN(newValue) || newValue < 0) {
6534
6807
  return;
@@ -6537,7 +6810,7 @@ var PlusMinusInput = ({
6537
6810
  },
6538
6811
  [setValue]
6539
6812
  );
6540
- useEffect6(() => {
6813
+ useEffect7(() => {
6541
6814
  clearErrors("inputValue");
6542
6815
  if (inputValue === "") {
6543
6816
  setError("inputValue", {
@@ -6557,7 +6830,7 @@ var PlusMinusInput = ({
6557
6830
  }
6558
6831
  }
6559
6832
  }, [clearErrors, inputValue, setError]);
6560
- useEffect6(() => {
6833
+ useEffect7(() => {
6561
6834
  if (typeof initialValue !== "number") {
6562
6835
  return;
6563
6836
  }
@@ -6593,7 +6866,7 @@ var PlusMinusInput = ({
6593
6866
  updateInputValue(value);
6594
6867
  };
6595
6868
  const { classes, cx } = useStyles34();
6596
- return /* @__PURE__ */ jsx105("div", { className: classes.container, children: /* @__PURE__ */ jsxs69(
6869
+ return /* @__PURE__ */ jsx107("div", { className: classes.container, children: /* @__PURE__ */ jsxs70(
6597
6870
  FormGroup,
6598
6871
  {
6599
6872
  className: cx(classes.wrapper, {
@@ -6601,7 +6874,7 @@ var PlusMinusInput = ({
6601
6874
  [classes.rightButtons]: buttonsPosition === "right"
6602
6875
  }),
6603
6876
  children: [
6604
- /* @__PURE__ */ jsx105(
6877
+ /* @__PURE__ */ jsx107(
6605
6878
  RoundButton_default,
6606
6879
  {
6607
6880
  className: classes.minus,
@@ -6611,18 +6884,18 @@ var PlusMinusInput = ({
6611
6884
  size: "small"
6612
6885
  }
6613
6886
  ),
6614
- /* @__PURE__ */ jsxs69("div", { children: [
6615
- /* @__PURE__ */ jsx105(
6887
+ /* @__PURE__ */ jsxs70("div", { children: [
6888
+ /* @__PURE__ */ jsx107(
6616
6889
  Controller9,
6617
6890
  {
6618
6891
  control,
6619
6892
  name: "inputValue",
6620
- render: ({ field }) => /* @__PURE__ */ jsx105(
6893
+ render: ({ field }) => /* @__PURE__ */ jsx107(
6621
6894
  FormControlLabel5,
6622
6895
  {
6623
6896
  ...field,
6624
6897
  className: classes.formControlLabel,
6625
- control: /* @__PURE__ */ jsx105(
6898
+ control: /* @__PURE__ */ jsx107(
6626
6899
  TextField7,
6627
6900
  {
6628
6901
  className: classes.input,
@@ -6639,7 +6912,7 @@ var PlusMinusInput = ({
6639
6912
  )
6640
6913
  }
6641
6914
  ),
6642
- errors.inputValue && /* @__PURE__ */ jsx105(
6915
+ errors.inputValue && /* @__PURE__ */ jsx107(
6643
6916
  Typography23,
6644
6917
  {
6645
6918
  className: classes.errorText,
@@ -6650,7 +6923,7 @@ var PlusMinusInput = ({
6650
6923
  }
6651
6924
  )
6652
6925
  ] }),
6653
- /* @__PURE__ */ jsx105(
6926
+ /* @__PURE__ */ jsx107(
6654
6927
  RoundButton_default,
6655
6928
  {
6656
6929
  className: classes.plus,
@@ -6667,28 +6940,28 @@ var PlusMinusInput = ({
6667
6940
  var PlusMinusInput_default = PlusMinusInput;
6668
6941
 
6669
6942
  // src/components/ProductBust/ProductBust.tsx
6670
- import { useState as useState9 } from "react";
6943
+ import { useState as useState10 } from "react";
6671
6944
  import { Typography as Typography24 } from "@mui/material";
6672
6945
  import { withStyles as withStyles4 } from "tss-react/mui";
6673
6946
 
6674
6947
  // src/components/ProductImage/ProductImage.tsx
6675
6948
  import { CardMedia } from "@mui/material";
6676
6949
  import { withStyles as withStyles3 } from "tss-react/mui";
6677
- import { jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
6950
+ import { jsx as jsx108, jsxs as jsxs71 } from "react/jsx-runtime";
6678
6951
  var PImage = ({
6679
6952
  classes,
6680
6953
  image,
6681
6954
  size = "c_productbust__image_xs",
6682
6955
  status
6683
- }) => /* @__PURE__ */ jsxs70("div", { className: classes.c_productbust__image, children: [
6684
- /* @__PURE__ */ jsx106(
6956
+ }) => /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__image, children: [
6957
+ /* @__PURE__ */ jsx108(
6685
6958
  CardMedia,
6686
6959
  {
6687
6960
  className: classes[size],
6688
6961
  image: image || "@/resources/img/peas.jpg"
6689
6962
  }
6690
6963
  ),
6691
- status && status !== "ACTIVE" && /* @__PURE__ */ jsx106("div", { className: classes.c_productbust__label_status, children: status })
6964
+ status && status !== "ACTIVE" && /* @__PURE__ */ jsx108("div", { className: classes.c_productbust__label_status, children: status })
6692
6965
  ] });
6693
6966
  var ProductImage = withStyles3(PImage, (theme) => ({
6694
6967
  c_productbust__label_status: {
@@ -6770,7 +7043,7 @@ var ProductImage = withStyles3(PImage, (theme) => ({
6770
7043
  var ProductImage_default = ProductImage;
6771
7044
 
6772
7045
  // src/components/ProductBust/ProductBust.tsx
6773
- import { Fragment as Fragment10, jsx as jsx107, jsxs as jsxs71 } from "react/jsx-runtime";
7046
+ import { Fragment as Fragment10, jsx as jsx109, jsxs as jsxs72 } from "react/jsx-runtime";
6774
7047
  var PBust = ({
6775
7048
  classes,
6776
7049
  size,
@@ -6812,8 +7085,8 @@ var PBust = ({
6812
7085
  default:
6813
7086
  break;
6814
7087
  }
6815
- const [historyVisible, setHistoryVisible] = useState9(false);
6816
- const historyDataIcon = () => /* @__PURE__ */ jsx107(
7088
+ const [historyVisible, setHistoryVisible] = useState10(false);
7089
+ const historyDataIcon = () => /* @__PURE__ */ jsx109(
6817
7090
  RoundButton_default,
6818
7091
  {
6819
7092
  icon: "history",
@@ -6821,8 +7094,8 @@ var PBust = ({
6821
7094
  size: "small"
6822
7095
  }
6823
7096
  );
6824
- return /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust, children: [
6825
- /* @__PURE__ */ jsx107(
7097
+ return /* @__PURE__ */ jsxs72("div", { className: classes.c_productbust, children: [
7098
+ /* @__PURE__ */ jsx109(
6826
7099
  ProductImage_default,
6827
7100
  {
6828
7101
  image: product?.image,
@@ -6830,10 +7103,10 @@ var PBust = ({
6830
7103
  size: imageSize
6831
7104
  }
6832
7105
  ),
6833
- /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__container, children: [
6834
- /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__heading, children: [
6835
- /* @__PURE__ */ jsxs71("div", { children: [
6836
- /* @__PURE__ */ jsx107(
7106
+ /* @__PURE__ */ jsxs72("div", { className: classes.c_productbust__container, children: [
7107
+ /* @__PURE__ */ jsxs72("div", { className: classes.c_productbust__heading, children: [
7108
+ /* @__PURE__ */ jsxs72("div", { children: [
7109
+ /* @__PURE__ */ jsx109(
6837
7110
  Typography24,
6838
7111
  {
6839
7112
  component: "span",
@@ -6842,10 +7115,10 @@ var PBust = ({
6842
7115
  children: !!locationData && locationData
6843
7116
  }
6844
7117
  ),
6845
- /* @__PURE__ */ jsx107(Typography24, { component: "span", className: classes[titleSize], children: product?.name }),
6846
- !product && /* @__PURE__ */ jsx107(Typography24, { component: "span", className: classes[titleSize], children: "Empty Position" }),
6847
- primaryData || /* @__PURE__ */ jsxs71(Fragment10, { children: [
6848
- /* @__PURE__ */ jsx107(
7118
+ /* @__PURE__ */ jsx109(Typography24, { component: "span", className: classes[titleSize], children: product?.name }),
7119
+ !product && /* @__PURE__ */ jsx109(Typography24, { component: "span", className: classes[titleSize], children: "Empty Position" }),
7120
+ primaryData || /* @__PURE__ */ jsxs72(Fragment10, { children: [
7121
+ /* @__PURE__ */ jsx109(
6849
7122
  Typography24,
6850
7123
  {
6851
7124
  style: { color: "#555" },
@@ -6853,7 +7126,7 @@ var PBust = ({
6853
7126
  children: product?.category.name
6854
7127
  }
6855
7128
  ),
6856
- /* @__PURE__ */ jsx107(
7129
+ /* @__PURE__ */ jsx109(
6857
7130
  Typography24,
6858
7131
  {
6859
7132
  style: { color: "#A42966", textTransform: "uppercase" },
@@ -6863,14 +7136,14 @@ var PBust = ({
6863
7136
  )
6864
7137
  ] })
6865
7138
  ] }),
6866
- /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__btns, children: [
6867
- /* @__PURE__ */ jsx107("div", { children: buttonData }),
6868
- /* @__PURE__ */ jsx107("div", { children: !!locationId && historyDataIcon() })
7139
+ /* @__PURE__ */ jsxs72("div", { className: classes.c_productbust__btns, children: [
7140
+ /* @__PURE__ */ jsx109("div", { children: buttonData }),
7141
+ /* @__PURE__ */ jsx109("div", { children: !!locationId && historyDataIcon() })
6869
7142
  ] })
6870
7143
  ] }),
6871
- /* @__PURE__ */ jsx107("div", { children: !!secondaryData && secondaryData })
7144
+ /* @__PURE__ */ jsx109("div", { children: !!secondaryData && secondaryData })
6872
7145
  ] }),
6873
- /* @__PURE__ */ jsx107(
7146
+ /* @__PURE__ */ jsx109(
6874
7147
  LocationHistoryDialog,
6875
7148
  {
6876
7149
  handleVisible: setHistoryVisible,
@@ -6972,9 +7245,9 @@ var ProductBust = withStyles4(PBust, (theme) => ({
6972
7245
  var ProductBust_default = ProductBust;
6973
7246
 
6974
7247
  // src/components/RenderAvatar/RenderAvatar.tsx
6975
- import { Avatar, Badge, Box as Box31, Typography as Typography25 } from "@mui/material";
7248
+ import { Avatar, Badge, Box as Box33, Typography as Typography25 } from "@mui/material";
6976
7249
  import { withStyles as withStyles5 } from "tss-react/mui";
6977
- import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
7250
+ import { jsx as jsx110, jsxs as jsxs73 } from "react/jsx-runtime";
6978
7251
  var RenderAvatar = ({ active }) => {
6979
7252
  const StyledBadge = withStyles5(Badge, () => ({
6980
7253
  root: {
@@ -6983,12 +7256,12 @@ var RenderAvatar = ({ active }) => {
6983
7256
  }
6984
7257
  }
6985
7258
  }));
6986
- return /* @__PURE__ */ jsxs72(
6987
- Box31,
7259
+ return /* @__PURE__ */ jsxs73(
7260
+ Box33,
6988
7261
  {
6989
7262
  sx: { display: "flex", flexDirection: "column", alignItems: "center" },
6990
7263
  children: [
6991
- /* @__PURE__ */ jsx108(
7264
+ /* @__PURE__ */ jsx110(
6992
7265
  StyledBadge,
6993
7266
  {
6994
7267
  overlap: "circular",
@@ -6997,10 +7270,10 @@ var RenderAvatar = ({ active }) => {
6997
7270
  horizontal: "right"
6998
7271
  },
6999
7272
  variant: "dot",
7000
- children: /* @__PURE__ */ jsx108(Avatar, {})
7273
+ children: /* @__PURE__ */ jsx110(Avatar, {})
7001
7274
  }
7002
7275
  ),
7003
- /* @__PURE__ */ jsx108(Typography25, { variant: "caption", children: active ? "Active" : "Disabled" })
7276
+ /* @__PURE__ */ jsx110(Typography25, { variant: "caption", children: active ? "Active" : "Disabled" })
7004
7277
  ]
7005
7278
  }
7006
7279
  );
@@ -7008,7 +7281,7 @@ var RenderAvatar = ({ active }) => {
7008
7281
  var RenderAvatar_default = RenderAvatar;
7009
7282
 
7010
7283
  // src/components/RenderContentList/RenderContentList.tsx
7011
- import { useEffect as useEffect8, useState as useState11, useRef as useRef5 } from "react";
7284
+ import { useEffect as useEffect9, useState as useState12, useRef as useRef6 } from "react";
7012
7285
  import WarningAmber from "@mui/icons-material/WarningAmber";
7013
7286
  import {
7014
7287
  List,
@@ -7020,11 +7293,11 @@ import {
7020
7293
  import { makeStyles as makeStyles35 } from "tss-react/mui";
7021
7294
 
7022
7295
  // src/utils/useGetActiveSection.ts
7023
- import { useEffect as useEffect7, useState as useState10 } from "react";
7296
+ import { useEffect as useEffect8, useState as useState11 } from "react";
7024
7297
  var transformNameToID = (name) => name.replaceAll(" ", "_").toLocaleLowerCase();
7025
7298
 
7026
7299
  // src/components/RenderContentList/RenderContentList.tsx
7027
- import { jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
7300
+ import { jsx as jsx111, jsxs as jsxs74 } from "react/jsx-runtime";
7028
7301
  var useStyles35 = makeStyles35()(
7029
7302
  (_theme, _params, classes) => ({
7030
7303
  root: {
@@ -7045,11 +7318,11 @@ var RenderContentList = ({
7045
7318
  warningMessage = "Missing information on this section"
7046
7319
  }) => {
7047
7320
  const { classes } = useStyles35();
7048
- const [active, setActive] = useState11(activeSection);
7049
- const observer = useRef5(null);
7050
- const isScrolling = useRef5(false);
7051
- const timeoutScrolling = useRef5(null);
7052
- useEffect8(() => {
7321
+ const [active, setActive] = useState12(activeSection);
7322
+ const observer = useRef6(null);
7323
+ const isScrolling = useRef6(false);
7324
+ const timeoutScrolling = useRef6(null);
7325
+ useEffect9(() => {
7053
7326
  if (!activeSection) {
7054
7327
  return void 0;
7055
7328
  }
@@ -7073,7 +7346,7 @@ var RenderContentList = ({
7073
7346
  if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
7074
7347
  };
7075
7348
  }, [activeSection]);
7076
- useEffect8(() => {
7349
+ useEffect9(() => {
7077
7350
  const sections = items.map((item) => ({
7078
7351
  id: transformNameToID(item),
7079
7352
  element: document.getElementById(transformNameToID(item))
@@ -7122,23 +7395,23 @@ var RenderContentList = ({
7122
7395
  isScrolling.current = false;
7123
7396
  }, 1e3);
7124
7397
  };
7125
- return /* @__PURE__ */ jsx109(
7398
+ return /* @__PURE__ */ jsx111(
7126
7399
  List,
7127
7400
  {
7128
7401
  component: "nav",
7129
7402
  "aria-labelledby": "nested-list-subheader",
7130
- subheader: /* @__PURE__ */ jsx109(ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
7403
+ subheader: /* @__PURE__ */ jsx111(ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
7131
7404
  children: items.map((item) => {
7132
7405
  const id = transformNameToID(item);
7133
- return /* @__PURE__ */ jsxs73(
7406
+ return /* @__PURE__ */ jsxs74(
7134
7407
  ListItemButton,
7135
7408
  {
7136
7409
  selected: active === id,
7137
7410
  classes: { root: classes.root, selected: classes.selected },
7138
7411
  onClick: () => handleMenuClick(id),
7139
7412
  children: [
7140
- /* @__PURE__ */ jsx109(ListItemText4, { primary: item }),
7141
- (warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ jsx109(Tooltip9, { title: warningMessage, children: /* @__PURE__ */ jsx109(WarningAmber, { color: "warning" }) })
7413
+ /* @__PURE__ */ jsx111(ListItemText4, { primary: item }),
7414
+ (warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ jsx111(Tooltip9, { title: warningMessage, children: /* @__PURE__ */ jsx111(WarningAmber, { color: "warning" }) })
7142
7415
  ]
7143
7416
  },
7144
7417
  id
@@ -7150,9 +7423,9 @@ var RenderContentList = ({
7150
7423
  var RenderContentList_default = RenderContentList;
7151
7424
 
7152
7425
  // src/components/RowProductCard/RowProductCard.tsx
7153
- import { Box as Box32, Divider as Divider6, Paper as Paper5, Typography as Typography26 } from "@mui/material";
7426
+ import { Box as Box34, Divider as Divider6, Paper as Paper6, Typography as Typography26 } from "@mui/material";
7154
7427
  import { makeStyles as makeStyles36 } from "tss-react/mui";
7155
- import { Fragment as Fragment11, jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
7428
+ import { Fragment as Fragment11, jsx as jsx112, jsxs as jsxs75 } from "react/jsx-runtime";
7156
7429
  var useStyles36 = makeStyles36()((theme) => ({
7157
7430
  wrapper: {
7158
7431
  display: "flex",
@@ -7191,8 +7464,8 @@ var RowProductCard = ({
7191
7464
  medium: "c_productbust__image_md",
7192
7465
  large: "c_productbust__image_lg"
7193
7466
  };
7194
- return /* @__PURE__ */ jsxs74(Paper5, { className: classes.wrapper, children: [
7195
- /* @__PURE__ */ jsx110(
7467
+ return /* @__PURE__ */ jsxs75(Paper6, { className: classes.wrapper, children: [
7468
+ /* @__PURE__ */ jsx112(
7196
7469
  ProductImage_default,
7197
7470
  {
7198
7471
  image: product.image,
@@ -7200,15 +7473,15 @@ var RowProductCard = ({
7200
7473
  size: imageSize[size]
7201
7474
  }
7202
7475
  ),
7203
- /* @__PURE__ */ jsxs74(
7476
+ /* @__PURE__ */ jsxs75(
7204
7477
  "div",
7205
7478
  {
7206
7479
  className: cx(classes.content, {
7207
7480
  [classes.onlyProductName]: !hasColumns && !location
7208
7481
  }),
7209
7482
  children: [
7210
- /* @__PURE__ */ jsxs74(
7211
- Box32,
7483
+ /* @__PURE__ */ jsxs75(
7484
+ Box34,
7212
7485
  {
7213
7486
  className: classes.upperRow,
7214
7487
  sx: {
@@ -7217,26 +7490,26 @@ var RowProductCard = ({
7217
7490
  alignItems: "center"
7218
7491
  },
7219
7492
  children: [
7220
- /* @__PURE__ */ jsxs74("div", { children: [
7221
- location ? /* @__PURE__ */ jsx110(Typography26, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
7222
- /* @__PURE__ */ jsx110(Typography26, { variant: "h6", children: product.name })
7493
+ /* @__PURE__ */ jsxs75("div", { children: [
7494
+ location ? /* @__PURE__ */ jsx112(Typography26, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
7495
+ /* @__PURE__ */ jsx112(Typography26, { variant: "h6", children: product.name })
7223
7496
  ] }),
7224
7497
  children
7225
7498
  ]
7226
7499
  }
7227
7500
  ),
7228
- hasColumns ? /* @__PURE__ */ jsxs74(Fragment11, { children: [
7229
- /* @__PURE__ */ jsx110(Divider6, { className: classes.divider }),
7230
- /* @__PURE__ */ jsx110(
7231
- Box32,
7501
+ hasColumns ? /* @__PURE__ */ jsxs75(Fragment11, { children: [
7502
+ /* @__PURE__ */ jsx112(Divider6, { className: classes.divider }),
7503
+ /* @__PURE__ */ jsx112(
7504
+ Box34,
7232
7505
  {
7233
7506
  sx: {
7234
7507
  display: "flex",
7235
7508
  gap: "24px"
7236
7509
  },
7237
- children: columns.map((column) => /* @__PURE__ */ jsxs74("div", { children: [
7238
- /* @__PURE__ */ jsx110(Typography26, { className: classes.smallTitle, variant: "caption", children: column.title }),
7239
- typeof column.value === "string" ? /* @__PURE__ */ jsx110(Typography26, { variant: "body1", children: column.value }) : column.value
7510
+ children: columns.map((column) => /* @__PURE__ */ jsxs75("div", { children: [
7511
+ /* @__PURE__ */ jsx112(Typography26, { className: classes.smallTitle, variant: "caption", children: column.title }),
7512
+ typeof column.value === "string" ? /* @__PURE__ */ jsx112(Typography26, { variant: "body1", children: column.value }) : column.value
7240
7513
  ] }, column.title))
7241
7514
  }
7242
7515
  )
@@ -7249,10 +7522,10 @@ var RowProductCard = ({
7249
7522
  var RowProductCard_default = RowProductCard;
7250
7523
 
7251
7524
  // src/components/ScrollableDialog/ScrollableDialog.tsx
7252
- import { useEffect as useEffect9, useRef as useRef6, useState as useState12 } from "react";
7253
- import { Box as Box33, Dialog as Dialog4, Divider as Divider7, Fade, Paper as Paper6, Typography as Typography27 } from "@mui/material";
7525
+ import { useEffect as useEffect10, useRef as useRef7, useState as useState13 } from "react";
7526
+ import { Box as Box35, Dialog as Dialog4, Divider as Divider7, Fade, Paper as Paper7, Typography as Typography27 } from "@mui/material";
7254
7527
  import { makeStyles as makeStyles37 } from "tss-react/mui";
7255
- import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
7528
+ import { jsx as jsx113, jsxs as jsxs76 } from "react/jsx-runtime";
7256
7529
  var useStyles37 = makeStyles37()((theme) => ({
7257
7530
  dialog: {
7258
7531
  margin: "0 auto",
@@ -7292,18 +7565,18 @@ var ScrollableDialog = ({
7292
7565
  isOpen,
7293
7566
  title
7294
7567
  }) => {
7295
- const [bodyHeight, setBodyHeight] = useState12(0);
7296
- const [hasScrollBar, setHasScrollBar] = useState12(false);
7297
- const [maxDialogHeight, setMaxDialogHeight] = useState12(0);
7568
+ const [bodyHeight, setBodyHeight] = useState13(0);
7569
+ const [hasScrollBar, setHasScrollBar] = useState13(false);
7570
+ const [maxDialogHeight, setMaxDialogHeight] = useState13(0);
7298
7571
  const { classes, cx } = useStyles37();
7299
- const headerRef = useRef6(null);
7300
- const footerRef = useRef6(null);
7301
- const titleRef = useRef6(null);
7302
- const bodyRef = useRef6(null);
7572
+ const headerRef = useRef7(null);
7573
+ const footerRef = useRef7(null);
7574
+ const titleRef = useRef7(null);
7575
+ const bodyRef = useRef7(null);
7303
7576
  const DIALOG_MARGIN = 65;
7304
7577
  const DEFAULT_MAX_HEIGHT = 728;
7305
7578
  const TITLE_MARGIN = 48;
7306
- useEffect9(() => {
7579
+ useEffect10(() => {
7307
7580
  const handleResize = () => {
7308
7581
  const screenHeight = window.innerHeight;
7309
7582
  const newMaxHeight = screenHeight < DEFAULT_MAX_HEIGHT + DIALOG_MARGIN ? screenHeight - DIALOG_MARGIN : DEFAULT_MAX_HEIGHT;
@@ -7322,22 +7595,22 @@ var ScrollableDialog = ({
7322
7595
  const scrollHeight = bodyRef.current?.scrollHeight || 0;
7323
7596
  setHasScrollBar(scrollHeight > contentHeight);
7324
7597
  };
7325
- useEffect9(() => {
7598
+ useEffect10(() => {
7326
7599
  if (isOpen) {
7327
7600
  requestAnimationFrame(measureHeights);
7328
7601
  }
7329
7602
  }, [isOpen, header, footer, title, maxDialogHeight]);
7330
- return /* @__PURE__ */ jsx111(Dialog4, { className: classes.dialog, fullWidth: true, maxWidth: false, open: isOpen, children: /* @__PURE__ */ jsx111(
7603
+ return /* @__PURE__ */ jsx113(Dialog4, { className: classes.dialog, fullWidth: true, maxWidth: false, open: isOpen, children: /* @__PURE__ */ jsx113(
7331
7604
  Fade,
7332
7605
  {
7333
7606
  in: isOpen,
7334
7607
  onEntered: () => {
7335
7608
  requestAnimationFrame(measureHeights);
7336
7609
  },
7337
- children: /* @__PURE__ */ jsxs75(Paper6, { className: classes.wrapper, children: [
7338
- header ? /* @__PURE__ */ jsx111("div", { className: classes.header, id: "dialog-header", children: header }) : null,
7339
- /* @__PURE__ */ jsxs75("div", { className: classes.body, children: [
7340
- /* @__PURE__ */ jsx111(
7610
+ children: /* @__PURE__ */ jsxs76(Paper7, { className: classes.wrapper, children: [
7611
+ header ? /* @__PURE__ */ jsx113("div", { className: classes.header, id: "dialog-header", children: header }) : null,
7612
+ /* @__PURE__ */ jsxs76("div", { className: classes.body, children: [
7613
+ /* @__PURE__ */ jsx113(
7341
7614
  Typography27,
7342
7615
  {
7343
7616
  className: classes.title,
@@ -7346,7 +7619,7 @@ var ScrollableDialog = ({
7346
7619
  children: title
7347
7620
  }
7348
7621
  ),
7349
- /* @__PURE__ */ jsx111(
7622
+ /* @__PURE__ */ jsx113(
7350
7623
  "div",
7351
7624
  {
7352
7625
  className: cx(classes.scrollableContainer, {
@@ -7360,9 +7633,9 @@ var ScrollableDialog = ({
7360
7633
  }
7361
7634
  )
7362
7635
  ] }),
7363
- /* @__PURE__ */ jsx111(Divider7, {}),
7364
- footer ? /* @__PURE__ */ jsx111(
7365
- Box33,
7636
+ /* @__PURE__ */ jsx113(Divider7, {}),
7637
+ footer ? /* @__PURE__ */ jsx113(
7638
+ Box35,
7366
7639
  {
7367
7640
  className: classes.footer,
7368
7641
  id: "dialog-footer",
@@ -7380,20 +7653,20 @@ var ScrollableDialog = ({
7380
7653
  var ScrollableDialog_default = ScrollableDialog;
7381
7654
 
7382
7655
  // src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
7383
- import { Box as Box34, Paper as Paper8 } from "@mui/material";
7656
+ import { Box as Box36, Paper as Paper9 } from "@mui/material";
7384
7657
  import { makeStyles as makeStyles39 } from "tss-react/mui";
7385
7658
 
7386
7659
  // src/components/SearchWithFilters/SearchWithFilters.tsx
7387
- import { useState as useState13, useEffect as useEffect10 } from "react";
7660
+ import { useState as useState14, useEffect as useEffect11 } from "react";
7388
7661
  import * as React6 from "react";
7389
7662
  import {
7390
7663
  ArrowDropDown as ArrowDropDownIcon,
7391
7664
  ArrowDropUp as ArrowDropUpIcon,
7392
7665
  Search as SearchIcon
7393
7666
  } from "@mui/icons-material";
7394
- import { Button as Button14, Divider as Divider8, InputBase, Paper as Paper7 } from "@mui/material";
7667
+ import { Button as Button14, Divider as Divider8, InputBase as InputBase2, Paper as Paper8 } from "@mui/material";
7395
7668
  import { makeStyles as makeStyles38 } from "tss-react/mui";
7396
- import { jsx as jsx112, jsxs as jsxs76 } from "react/jsx-runtime";
7669
+ import { jsx as jsx114, jsxs as jsxs77 } from "react/jsx-runtime";
7397
7670
  var useStyles38 = makeStyles38()((theme) => ({
7398
7671
  searchContainer: {
7399
7672
  height: 46,
@@ -7438,7 +7711,7 @@ var SearchWithFilters = ({
7438
7711
  },
7439
7712
  disabled = false
7440
7713
  }) => {
7441
- const [searchText, setSearchText] = useState13(searchValue);
7714
+ const [searchText, setSearchText] = useState14(searchValue);
7442
7715
  const { classes } = useStyles38();
7443
7716
  const handleTextChange = (e) => {
7444
7717
  const { value } = e.target;
@@ -7450,13 +7723,13 @@ var SearchWithFilters = ({
7450
7723
  enterPressedInSearch?.();
7451
7724
  }
7452
7725
  };
7453
- useEffect10(() => {
7726
+ useEffect11(() => {
7454
7727
  setSearchText(searchValue);
7455
7728
  }, [searchValue]);
7456
- return /* @__PURE__ */ jsxs76(Paper7, { className: classes.searchContainer, children: [
7457
- /* @__PURE__ */ jsx112(SearchIcon, { className: classes.icon, fontSize: "small" }),
7458
- /* @__PURE__ */ jsx112(
7459
- InputBase,
7729
+ return /* @__PURE__ */ jsxs77(Paper8, { className: classes.searchContainer, children: [
7730
+ /* @__PURE__ */ jsx114(SearchIcon, { className: classes.icon, fontSize: "small" }),
7731
+ /* @__PURE__ */ jsx114(
7732
+ InputBase2,
7460
7733
  {
7461
7734
  className: classes.input,
7462
7735
  placeholder: "Search",
@@ -7467,8 +7740,8 @@ var SearchWithFilters = ({
7467
7740
  inputProps: { "aria-label": "search" }
7468
7741
  }
7469
7742
  ),
7470
- /* @__PURE__ */ jsx112(Divider8, { className: classes.divider, orientation: "vertical" }),
7471
- /* @__PURE__ */ jsxs76(
7743
+ /* @__PURE__ */ jsx114(Divider8, { className: classes.divider, orientation: "vertical" }),
7744
+ /* @__PURE__ */ jsxs77(
7472
7745
  Button14,
7473
7746
  {
7474
7747
  className: classes.filterButton,
@@ -7476,7 +7749,7 @@ var SearchWithFilters = ({
7476
7749
  disabled,
7477
7750
  children: [
7478
7751
  "Filters",
7479
- showFilters ? /* @__PURE__ */ jsx112(ArrowDropUpIcon, {}) : /* @__PURE__ */ jsx112(ArrowDropDownIcon, {})
7752
+ showFilters ? /* @__PURE__ */ jsx114(ArrowDropUpIcon, {}) : /* @__PURE__ */ jsx114(ArrowDropDownIcon, {})
7480
7753
  ]
7481
7754
  }
7482
7755
  )
@@ -7485,7 +7758,7 @@ var SearchWithFilters = ({
7485
7758
  var SearchWithFilters_default = React6.memo(SearchWithFilters);
7486
7759
 
7487
7760
  // src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
7488
- import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
7761
+ import { jsx as jsx115, jsxs as jsxs78 } from "react/jsx-runtime";
7489
7762
  var useStyles39 = makeStyles39()((theme) => ({
7490
7763
  wrapper: {
7491
7764
  display: "flex",
@@ -7521,11 +7794,11 @@ var SearchAndFilterHeader = ({
7521
7794
  searchValue
7522
7795
  }) => {
7523
7796
  const { classes } = useStyles39();
7524
- return /* @__PURE__ */ jsx113(Paper8, { children: /* @__PURE__ */ jsxs77(Box34, { className: classes.wrapper, children: [
7525
- /* @__PURE__ */ jsxs77(Box34, { className: classes.container, children: [
7526
- /* @__PURE__ */ jsxs77(Box34, { className: classes.leftSection, children: [
7527
- /* @__PURE__ */ jsx113(AppLabel_default, { appName }),
7528
- /* @__PURE__ */ jsx113(
7797
+ return /* @__PURE__ */ jsx115(Paper9, { children: /* @__PURE__ */ jsxs78(Box36, { className: classes.wrapper, children: [
7798
+ /* @__PURE__ */ jsxs78(Box36, { className: classes.container, children: [
7799
+ /* @__PURE__ */ jsxs78(Box36, { className: classes.leftSection, children: [
7800
+ /* @__PURE__ */ jsx115(AppLabel_default, { appName }),
7801
+ /* @__PURE__ */ jsx115(
7529
7802
  SearchWithFilters_default,
7530
7803
  {
7531
7804
  searchValue,
@@ -7536,9 +7809,9 @@ var SearchAndFilterHeader = ({
7536
7809
  }
7537
7810
  )
7538
7811
  ] }),
7539
- /* @__PURE__ */ jsx113(Box34, { children: extraButton })
7812
+ /* @__PURE__ */ jsx115(Box36, { children: extraButton })
7540
7813
  ] }),
7541
- showFilters ? /* @__PURE__ */ jsx113(Box34, { children: filtersComponent }) : null,
7814
+ showFilters ? /* @__PURE__ */ jsx115(Box36, { children: filtersComponent }) : null,
7542
7815
  appliedFiltersComponent
7543
7816
  ] }) });
7544
7817
  };
@@ -7546,19 +7819,19 @@ var SearchAndFilterHeader_default = SearchAndFilterHeader;
7546
7819
 
7547
7820
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
7548
7821
  import * as React7 from "react";
7549
- import { Box as Box36 } from "@mui/material";
7822
+ import { Box as Box38 } from "@mui/material";
7550
7823
  import { makeStyles as makeStyles41 } from "tss-react/mui";
7551
7824
 
7552
7825
  // src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
7553
- import { useState as useState14, memo as memo16 } from "react";
7826
+ import { useState as useState15, memo as memo18 } from "react";
7554
7827
  import {
7555
7828
  ArrowDropDown as ArrowDropDownIcon2,
7556
7829
  ArrowDropUp as ArrowDropUpIcon2,
7557
7830
  Search as SearchIcon2
7558
7831
  } from "@mui/icons-material";
7559
- import { Box as Box35, Button as Button15, Divider as Divider9, InputBase as InputBase2, Paper as Paper9 } from "@mui/material";
7832
+ import { Box as Box37, Button as Button15, Divider as Divider9, InputBase as InputBase3, Paper as Paper10 } from "@mui/material";
7560
7833
  import { makeStyles as makeStyles40 } from "tss-react/mui";
7561
- import { Fragment as Fragment12, jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
7834
+ import { Fragment as Fragment12, jsx as jsx116, jsxs as jsxs79 } from "react/jsx-runtime";
7562
7835
  var useStyles40 = makeStyles40()((theme) => ({
7563
7836
  c_search: {
7564
7837
  height: 46,
@@ -7618,7 +7891,7 @@ var SearchWithFiltersForTable = (props) => {
7618
7891
  searchedValue
7619
7892
  } = props;
7620
7893
  const { classes } = useStyles40();
7621
- const [searchText, setSearchText] = useState14("");
7894
+ const [searchText, setSearchText] = useState15("");
7622
7895
  const handleTextChange = (e) => {
7623
7896
  const { value } = e.target;
7624
7897
  setSearchText(value);
@@ -7633,10 +7906,10 @@ var SearchWithFiltersForTable = (props) => {
7633
7906
  }
7634
7907
  };
7635
7908
  const ArrowIcon = isOpen ? ArrowDropUpIcon2 : ArrowDropDownIcon2;
7636
- return /* @__PURE__ */ jsxs78(Paper9, { className: classes.c_search, children: [
7637
- /* @__PURE__ */ jsx114(Box35, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx114(SearchIcon2, { className: classes.icon, fontSize: "small" }) }),
7638
- /* @__PURE__ */ jsx114(
7639
- InputBase2,
7909
+ return /* @__PURE__ */ jsxs79(Paper10, { className: classes.c_search, children: [
7910
+ /* @__PURE__ */ jsx116(Box37, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx116(SearchIcon2, { className: classes.icon, fontSize: "small" }) }),
7911
+ /* @__PURE__ */ jsx116(
7912
+ InputBase3,
7640
7913
  {
7641
7914
  className: classes.c_search__input,
7642
7915
  placeholder: "Search",
@@ -7645,32 +7918,32 @@ var SearchWithFiltersForTable = (props) => {
7645
7918
  onKeyDown: handleKeyPress
7646
7919
  }
7647
7920
  ),
7648
- showFilterButton && /* @__PURE__ */ jsxs78(Fragment12, { children: [
7649
- /* @__PURE__ */ jsx114(
7921
+ showFilterButton && /* @__PURE__ */ jsxs79(Fragment12, { children: [
7922
+ /* @__PURE__ */ jsx116(
7650
7923
  Divider9,
7651
7924
  {
7652
7925
  className: classes.c_search__divider,
7653
7926
  orientation: "vertical"
7654
7927
  }
7655
7928
  ),
7656
- /* @__PURE__ */ jsxs78(
7929
+ /* @__PURE__ */ jsxs79(
7657
7930
  Button15,
7658
7931
  {
7659
7932
  className: classes.c_search__bt_filter,
7660
7933
  onClick: handleFilterButtonClick,
7661
7934
  children: [
7662
7935
  "Filters",
7663
- /* @__PURE__ */ jsx114(ArrowIcon, { className: classes.c_search__bt_icon_filter })
7936
+ /* @__PURE__ */ jsx116(ArrowIcon, { className: classes.c_search__bt_icon_filter })
7664
7937
  ]
7665
7938
  }
7666
7939
  )
7667
7940
  ] })
7668
7941
  ] });
7669
7942
  };
7670
- var SearchWithFiltersForTable_default = memo16(SearchWithFiltersForTable);
7943
+ var SearchWithFiltersForTable_default = memo18(SearchWithFiltersForTable);
7671
7944
 
7672
7945
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
7673
- import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
7946
+ import { jsx as jsx117, jsxs as jsxs80 } from "react/jsx-runtime";
7674
7947
  var useStyles41 = makeStyles41()((theme) => ({
7675
7948
  container: {
7676
7949
  display: "flex",
@@ -7702,10 +7975,10 @@ var SearchAndFilterHeaderForTable = (props) => {
7702
7975
  searchedValue
7703
7976
  } = props;
7704
7977
  const { classes } = useStyles41();
7705
- return /* @__PURE__ */ jsxs79(Box36, { className: classes.container, children: [
7706
- /* @__PURE__ */ jsxs79(Box36, { className: classes.leftSection, children: [
7707
- /* @__PURE__ */ jsx115(AppLabel_default, { appName }),
7708
- /* @__PURE__ */ jsx115(
7978
+ return /* @__PURE__ */ jsxs80(Box38, { className: classes.container, children: [
7979
+ /* @__PURE__ */ jsxs80(Box38, { className: classes.leftSection, children: [
7980
+ /* @__PURE__ */ jsx117(AppLabel_default, { appName }),
7981
+ /* @__PURE__ */ jsx117(
7709
7982
  SearchWithFiltersForTable_default,
7710
7983
  {
7711
7984
  onFilterButtonClick,
@@ -7716,24 +7989,24 @@ var SearchAndFilterHeaderForTable = (props) => {
7716
7989
  searchedValue
7717
7990
  }
7718
7991
  ),
7719
- copy && /* @__PURE__ */ jsx115(
7720
- Box36,
7992
+ copy && /* @__PURE__ */ jsx117(
7993
+ Box38,
7721
7994
  {
7722
7995
  sx: {
7723
7996
  margin: 0.5
7724
7997
  },
7725
- children: /* @__PURE__ */ jsx115(OutlinedButton_default, { copy })
7998
+ children: /* @__PURE__ */ jsx117(OutlinedButton_default, { copy })
7726
7999
  }
7727
8000
  )
7728
8001
  ] }),
7729
- /* @__PURE__ */ jsx115(Box36, { children: button })
8002
+ /* @__PURE__ */ jsx117(Box38, { children: button })
7730
8003
  ] });
7731
8004
  };
7732
8005
  var SearchAndFilterHeaderForTable_default = React7.memo(SearchAndFilterHeaderForTable);
7733
8006
 
7734
8007
  // src/components/SearchHeader/SearchHeader.tsx
7735
- import { Box as Box37, Paper as Paper10 } from "@mui/material";
7736
- import { jsx as jsx116, jsxs as jsxs80 } from "react/jsx-runtime";
8008
+ import { Box as Box39, Paper as Paper11 } from "@mui/material";
8009
+ import { jsx as jsx118, jsxs as jsxs81 } from "react/jsx-runtime";
7737
8010
  var SearchHeader = ({
7738
8011
  renderButton,
7739
8012
  renderExtraAction,
@@ -7744,8 +8017,8 @@ var SearchHeader = ({
7744
8017
  onKeyDown,
7745
8018
  width
7746
8019
  }) => {
7747
- return /* @__PURE__ */ jsxs80(
7748
- Paper10,
8020
+ return /* @__PURE__ */ jsxs81(
8021
+ Paper11,
7749
8022
  {
7750
8023
  sx: {
7751
8024
  display: "flex",
@@ -7753,8 +8026,8 @@ var SearchHeader = ({
7753
8026
  padding: 2
7754
8027
  },
7755
8028
  children: [
7756
- /* @__PURE__ */ jsxs80(
7757
- Box37,
8029
+ /* @__PURE__ */ jsxs81(
8030
+ Box39,
7758
8031
  {
7759
8032
  sx: {
7760
8033
  display: "flex",
@@ -7762,8 +8035,8 @@ var SearchHeader = ({
7762
8035
  alignItems: "center"
7763
8036
  },
7764
8037
  children: [
7765
- /* @__PURE__ */ jsxs80(Box37, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
7766
- /* @__PURE__ */ jsx116(
8038
+ /* @__PURE__ */ jsxs81(Box39, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
8039
+ /* @__PURE__ */ jsx118(
7767
8040
  SearchFieldDebounced,
7768
8041
  {
7769
8042
  width,
@@ -7788,9 +8061,9 @@ var SearchHeader = ({
7788
8061
  // src/components/SectionName/SectionName.tsx
7789
8062
  import HistoryIcon from "@mui/icons-material/History";
7790
8063
  import InfoIcon from "@mui/icons-material/Info";
7791
- import { Box as Box38, Divider as Divider10, IconButton as IconButton5, Tooltip as Tooltip10, Typography as Typography28 } from "@mui/material";
8064
+ import { Box as Box40, Divider as Divider10, IconButton as IconButton5, Tooltip as Tooltip10, Typography as Typography28 } from "@mui/material";
7792
8065
  import { makeStyles as makeStyles42 } from "tss-react/mui";
7793
- import { jsx as jsx117, jsxs as jsxs81 } from "react/jsx-runtime";
8066
+ import { jsx as jsx119, jsxs as jsxs82 } from "react/jsx-runtime";
7794
8067
  var useStyles42 = makeStyles42()((theme) => ({
7795
8068
  container: {
7796
8069
  display: "flex",
@@ -7846,9 +8119,9 @@ var SectionName = ({
7846
8119
  }
7847
8120
  }
7848
8121
  };
7849
- return /* @__PURE__ */ jsxs81(Box38, { className: classes.container, children: [
7850
- /* @__PURE__ */ jsxs81(Box38, { className: classes.titleContainer, children: [
7851
- /* @__PURE__ */ jsx117(
8122
+ return /* @__PURE__ */ jsxs82(Box40, { className: classes.container, children: [
8123
+ /* @__PURE__ */ jsxs82(Box40, { className: classes.titleContainer, children: [
8124
+ /* @__PURE__ */ jsx119(
7852
8125
  Typography28,
7853
8126
  {
7854
8127
  variant: "h5",
@@ -7857,7 +8130,7 @@ var SectionName = ({
7857
8130
  children: name
7858
8131
  }
7859
8132
  ),
7860
- tooltipDescription ? /* @__PURE__ */ jsx117(Tooltip10, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ jsx117(
8133
+ tooltipDescription ? /* @__PURE__ */ jsx119(Tooltip10, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ jsx119(
7861
8134
  InfoIcon,
7862
8135
  {
7863
8136
  fontSize: "small",
@@ -7866,8 +8139,8 @@ var SectionName = ({
7866
8139
  }
7867
8140
  ) }) : null
7868
8141
  ] }),
7869
- /* @__PURE__ */ jsxs81(Box38, { className: classes.actionButtons, children: [
7870
- buttonText ? /* @__PURE__ */ jsx117(
8142
+ /* @__PURE__ */ jsxs82(Box40, { className: classes.actionButtons, children: [
8143
+ buttonText ? /* @__PURE__ */ jsx119(
7871
8144
  ExtendedButton_default,
7872
8145
  {
7873
8146
  type: buttonType,
@@ -7880,17 +8153,17 @@ var SectionName = ({
7880
8153
  variant: "text"
7881
8154
  }
7882
8155
  ) : null,
7883
- openHistoryLog && buttonText && /* @__PURE__ */ jsx117(Divider10, { orientation: "vertical", sx: { height: "24px" } }),
7884
- openHistoryLog && /* @__PURE__ */ jsx117(IconButton5, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx117(HistoryIcon, {}) })
8156
+ openHistoryLog && buttonText && /* @__PURE__ */ jsx119(Divider10, { orientation: "vertical", sx: { height: "24px" } }),
8157
+ openHistoryLog && /* @__PURE__ */ jsx119(IconButton5, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx119(HistoryIcon, {}) })
7885
8158
  ] })
7886
8159
  ] });
7887
8160
  };
7888
8161
  var SectionName_default = SectionName;
7889
8162
 
7890
8163
  // src/components/SmartMultipleSelect/SmartMultipleSelect.tsx
7891
- import { useState as useState15 } from "react";
8164
+ import { useState as useState16 } from "react";
7892
8165
  import {
7893
- Box as Box39,
8166
+ Box as Box41,
7894
8167
  Checkbox as Checkbox7,
7895
8168
  CircularProgress as CircularProgress5,
7896
8169
  FormControl as FormControl5,
@@ -7900,7 +8173,7 @@ import {
7900
8173
  Select as Select4,
7901
8174
  Typography as Typography29
7902
8175
  } from "@mui/material";
7903
- import { jsx as jsx118, jsxs as jsxs82 } from "react/jsx-runtime";
8176
+ import { jsx as jsx120, jsxs as jsxs83 } from "react/jsx-runtime";
7904
8177
  var SmartMultipleSelect = ({
7905
8178
  inputLabel,
7906
8179
  variant = "standard",
@@ -7918,7 +8191,7 @@ var SmartMultipleSelect = ({
7918
8191
  helperText,
7919
8192
  menuProps
7920
8193
  }) => {
7921
- const [localValues, setLocalValues] = useState15(defaultValues ?? []);
8194
+ const [localValues, setLocalValues] = useState16(defaultValues ?? []);
7922
8195
  const handleChangeOption = (option) => {
7923
8196
  let newValues = [];
7924
8197
  const selectedIndex = localValues.findIndex(
@@ -7932,19 +8205,19 @@ var SmartMultipleSelect = ({
7932
8205
  setLocalValues(newValues);
7933
8206
  onChange?.(newValues);
7934
8207
  };
7935
- const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ jsx118(
7936
- Box39,
8208
+ const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ jsx120(
8209
+ Box41,
7937
8210
  {
7938
8211
  sx: { display: "flex", justifyContent: "center", alignItems: "center" },
7939
- children: /* @__PURE__ */ jsx118(Typography29, { children: emptyMessage })
8212
+ children: /* @__PURE__ */ jsx120(Typography29, { children: emptyMessage })
7940
8213
  }
7941
- ) : /* @__PURE__ */ jsx118(Box39, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
8214
+ ) : /* @__PURE__ */ jsx120(Box41, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
7942
8215
  const selectedValues = values ?? localValues ?? [];
7943
8216
  const isSelected = selectedValues.some(
7944
8217
  (selected) => selected.value === option.value
7945
8218
  );
7946
- return /* @__PURE__ */ jsxs82(
7947
- Box39,
8219
+ return /* @__PURE__ */ jsxs83(
8220
+ Box41,
7948
8221
  {
7949
8222
  onClick: () => handleChangeOption(option),
7950
8223
  sx: {
@@ -7954,14 +8227,14 @@ var SmartMultipleSelect = ({
7954
8227
  backgroundColor: isSelected ? colors.lightBlueBackground : void 0
7955
8228
  },
7956
8229
  children: [
7957
- /* @__PURE__ */ jsx118(Checkbox7, { disableRipple: true, sx: { py: 0.5 }, checked: isSelected }),
7958
- /* @__PURE__ */ jsx118(ListItemText5, { primary: option.label })
8230
+ /* @__PURE__ */ jsx120(Checkbox7, { disableRipple: true, sx: { py: 0.5 }, checked: isSelected }),
8231
+ /* @__PURE__ */ jsx120(ListItemText5, { primary: option.label })
7959
8232
  ]
7960
8233
  },
7961
8234
  option.value ?? index
7962
8235
  );
7963
8236
  }) });
7964
- return /* @__PURE__ */ jsxs82(
8237
+ return /* @__PURE__ */ jsxs83(
7965
8238
  FormControl5,
7966
8239
  {
7967
8240
  fullWidth: true,
@@ -7970,8 +8243,8 @@ var SmartMultipleSelect = ({
7970
8243
  disabled,
7971
8244
  error,
7972
8245
  children: [
7973
- /* @__PURE__ */ jsx118(InputLabel5, { children: inputLabel }),
7974
- /* @__PURE__ */ jsx118(
8246
+ /* @__PURE__ */ jsx120(InputLabel5, { children: inputLabel }),
8247
+ /* @__PURE__ */ jsx120(
7975
8248
  Select4,
7976
8249
  {
7977
8250
  multiple: true,
@@ -7984,33 +8257,33 @@ var SmartMultipleSelect = ({
7984
8257
  onClose: () => onClose?.(localValues),
7985
8258
  renderValue: (selectedValues) => {
7986
8259
  const valuesString = selectedValues.map((v) => v.label)?.join(", ");
7987
- return /* @__PURE__ */ jsx118(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
8260
+ return /* @__PURE__ */ jsx120(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
7988
8261
  },
7989
- children: isLoading ? /* @__PURE__ */ jsx118(
7990
- Box39,
8262
+ children: isLoading ? /* @__PURE__ */ jsx120(
8263
+ Box41,
7991
8264
  {
7992
8265
  sx: {
7993
8266
  display: "flex",
7994
8267
  justifyContent: "center",
7995
8268
  alignItems: "center"
7996
8269
  },
7997
- children: /* @__PURE__ */ jsx118(CircularProgress5, { size: 24 })
8270
+ children: /* @__PURE__ */ jsx120(CircularProgress5, { size: 24 })
7998
8271
  }
7999
8272
  ) : renderMenuContent()
8000
8273
  }
8001
8274
  ),
8002
- helperText && /* @__PURE__ */ jsx118(FormHelperText4, { children: helperText })
8275
+ helperText && /* @__PURE__ */ jsx120(FormHelperText4, { children: helperText })
8003
8276
  ]
8004
8277
  }
8005
8278
  );
8006
8279
  };
8007
8280
 
8008
8281
  // src/components/SquareLabel/SquareLabel.tsx
8009
- import { memo as memo18 } from "react";
8282
+ import { memo as memo20 } from "react";
8010
8283
  import { Typography as Typography30 } from "@mui/material";
8011
8284
  import { red as red2 } from "@mui/material/colors";
8012
8285
  import { makeStyles as makeStyles43 } from "tss-react/mui";
8013
- import { jsx as jsx119 } from "react/jsx-runtime";
8286
+ import { jsx as jsx121 } from "react/jsx-runtime";
8014
8287
  var useStyles43 = makeStyles43()((theme) => ({
8015
8288
  red: {
8016
8289
  backgroundColor: red2["50"],
@@ -8025,15 +8298,15 @@ var useStyles43 = makeStyles43()((theme) => ({
8025
8298
  }));
8026
8299
  var SquareLabel = ({ color, copy }) => {
8027
8300
  const { classes } = useStyles43();
8028
- return /* @__PURE__ */ jsx119(Typography30, { className: classes[color], children: copy });
8301
+ return /* @__PURE__ */ jsx121(Typography30, { className: classes[color], children: copy });
8029
8302
  };
8030
- var SquareLabel_default = memo18(SquareLabel);
8303
+ var SquareLabel_default = memo20(SquareLabel);
8031
8304
 
8032
8305
  // src/components/Switch/Switch.tsx
8033
- import { memo as memo19 } from "react";
8306
+ import { memo as memo21 } from "react";
8034
8307
  import { Grid as Grid2, Switch } from "@mui/material";
8035
8308
  import { withStyles as withStyles6 } from "tss-react/mui";
8036
- import { jsx as jsx120, jsxs as jsxs83 } from "react/jsx-runtime";
8309
+ import { jsx as jsx122, jsxs as jsxs84 } from "react/jsx-runtime";
8037
8310
  var LSwitch = ({
8038
8311
  checked,
8039
8312
  labelOn,
@@ -8041,7 +8314,7 @@ var LSwitch = ({
8041
8314
  handleChange,
8042
8315
  classes,
8043
8316
  disabled
8044
- }) => /* @__PURE__ */ jsx120("div", { className: classes.c_switch, children: /* @__PURE__ */ jsxs83(
8317
+ }) => /* @__PURE__ */ jsx122("div", { className: classes.c_switch, children: /* @__PURE__ */ jsxs84(
8045
8318
  Grid2,
8046
8319
  {
8047
8320
  component: "label",
@@ -8051,8 +8324,8 @@ var LSwitch = ({
8051
8324
  alignItems: "center"
8052
8325
  },
8053
8326
  children: [
8054
- labelOff && /* @__PURE__ */ jsx120(Grid2, { children: labelOff }),
8055
- /* @__PURE__ */ jsx120(Grid2, { children: /* @__PURE__ */ jsx120(
8327
+ labelOff && /* @__PURE__ */ jsx122(Grid2, { children: labelOff }),
8328
+ /* @__PURE__ */ jsx122(Grid2, { children: /* @__PURE__ */ jsx122(
8056
8329
  Switch,
8057
8330
  {
8058
8331
  checked,
@@ -8061,7 +8334,7 @@ var LSwitch = ({
8061
8334
  disabled
8062
8335
  }
8063
8336
  ) }),
8064
- labelOn && /* @__PURE__ */ jsx120(Grid2, { children: labelOn })
8337
+ labelOn && /* @__PURE__ */ jsx122(Grid2, { children: labelOn })
8065
8338
  ]
8066
8339
  }
8067
8340
  ) });
@@ -8083,14 +8356,14 @@ var LabelledSwitch = withStyles6(LSwitch, (theme) => ({
8083
8356
  fontSize: "1rem"
8084
8357
  }
8085
8358
  }));
8086
- var Switch_default = memo19(LabelledSwitch);
8359
+ var Switch_default = memo21(LabelledSwitch);
8087
8360
 
8088
8361
  // src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
8089
- import { useState as useState16, useEffect as useEffect11 } from "react";
8362
+ import { useState as useState17, useEffect as useEffect12 } from "react";
8090
8363
  import { Menu as Menu4 } from "@mui/material";
8091
8364
  import classNames3 from "classnames";
8092
- import { Fragment as Fragment13, jsx as jsx121, jsxs as jsxs84 } from "react/jsx-runtime";
8093
- var MAX_WIDTH = 276;
8365
+ import { Fragment as Fragment13, jsx as jsx123, jsxs as jsxs85 } from "react/jsx-runtime";
8366
+ var MAX_WIDTH2 = 276;
8094
8367
  var findFilterIndex = (filters, filterOption) => filters.findIndex((item) => {
8095
8368
  if (typeof item === "string" && typeof filterOption === "string") {
8096
8369
  return item === filterOption;
@@ -8107,11 +8380,11 @@ var SmartTableHeaderFilterMenu = ({
8107
8380
  shouldShowCheckOnFilter,
8108
8381
  onApplyFilters
8109
8382
  }) => {
8110
- const [anchorEl, setAnchorEl] = useState16(null);
8111
- const [filterOptionsData, setFilterOptionsData] = useState16();
8112
- const [selectedFilterOptions, setSelectedFilterOptions] = useState16(headerFilters[headCell.id] ?? []);
8383
+ const [anchorEl, setAnchorEl] = useState17(null);
8384
+ const [filterOptionsData, setFilterOptionsData] = useState17();
8385
+ const [selectedFilterOptions, setSelectedFilterOptions] = useState17(headerFilters[headCell.id] ?? []);
8113
8386
  const numFilterOptions = filterOptionsData?.length ?? 0;
8114
- useEffect11(() => {
8387
+ useEffect12(() => {
8115
8388
  if (headCell.filterOptions) {
8116
8389
  setFilterOptionsData(headCell.filterOptions);
8117
8390
  } else if (headCell.filterType === "boolean") {
@@ -8167,11 +8440,11 @@ var SmartTableHeaderFilterMenu = ({
8167
8440
  onApplyFilters?.(updatedFilters, shouldSave);
8168
8441
  setAnchorEl(null);
8169
8442
  };
8170
- useEffect11(() => {
8443
+ useEffect12(() => {
8171
8444
  setSelectedFilterOptions(headerFilters[headCell.id] ?? []);
8172
8445
  }, [headerFilters, headCell.id]);
8173
- return /* @__PURE__ */ jsxs84(Fragment13, { children: [
8174
- /* @__PURE__ */ jsx121(
8446
+ return /* @__PURE__ */ jsxs85(Fragment13, { children: [
8447
+ /* @__PURE__ */ jsx123(
8175
8448
  ActiveFiltersIconButton,
8176
8449
  {
8177
8450
  numActiveFilters,
@@ -8181,7 +8454,7 @@ var SmartTableHeaderFilterMenu = ({
8181
8454
  })
8182
8455
  }
8183
8456
  ),
8184
- /* @__PURE__ */ jsx121(
8457
+ /* @__PURE__ */ jsx123(
8185
8458
  Menu4,
8186
8459
  {
8187
8460
  open: !!anchorEl,
@@ -8190,12 +8463,12 @@ var SmartTableHeaderFilterMenu = ({
8190
8463
  "data-testid": "filter-menu",
8191
8464
  slotProps: {
8192
8465
  list: {
8193
- sx: { p: 0, maxWidth: MAX_WIDTH }
8466
+ sx: { p: 0, maxWidth: MAX_WIDTH2 }
8194
8467
  }
8195
8468
  },
8196
8469
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
8197
8470
  transformOrigin: { vertical: "top", horizontal: "right" },
8198
- children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ jsx121(
8471
+ children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ jsx123(
8199
8472
  AutocompleteFilterMenuContent,
8200
8473
  {
8201
8474
  columnId: headCell.id,
@@ -8208,7 +8481,7 @@ var SmartTableHeaderFilterMenu = ({
8208
8481
  onApplyFiltersClick: handleApplyFiltersClick,
8209
8482
  shouldShowCheckOnFilter
8210
8483
  }
8211
- ) : /* @__PURE__ */ jsx121(
8484
+ ) : /* @__PURE__ */ jsx123(
8212
8485
  CheckboxFilterMenuContent,
8213
8486
  {
8214
8487
  columnId: headCell.id,
@@ -8228,9 +8501,9 @@ var SmartTableHeaderFilterMenu = ({
8228
8501
  };
8229
8502
 
8230
8503
  // src/components/SmartTableHeader/SmartTableHeader.tsx
8231
- import { memo as memo20 } from "react";
8504
+ import { memo as memo22 } from "react";
8232
8505
  import {
8233
- Box as Box40,
8506
+ Box as Box42,
8234
8507
  Checkbox as Checkbox8,
8235
8508
  TableCell,
8236
8509
  TableHead,
@@ -8239,8 +8512,8 @@ import {
8239
8512
  Tooltip as Tooltip11,
8240
8513
  Typography as Typography31
8241
8514
  } from "@mui/material";
8242
- import { jsx as jsx122, jsxs as jsxs85 } from "react/jsx-runtime";
8243
- var SmartTableHeader = memo20(
8515
+ import { jsx as jsx124, jsxs as jsxs86 } from "react/jsx-runtime";
8516
+ var SmartTableHeader = memo22(
8244
8517
  ({
8245
8518
  order,
8246
8519
  orderBy,
@@ -8258,13 +8531,13 @@ var SmartTableHeader = memo20(
8258
8531
  onRequestSort(event, property);
8259
8532
  };
8260
8533
  const isSortActive = (headCellId) => orderBy === headCellId;
8261
- return /* @__PURE__ */ jsx122(TableHead, { children: /* @__PURE__ */ jsxs85(TableRow, { children: [
8262
- enableCheckboxSelection ? /* @__PURE__ */ jsx122(
8534
+ return /* @__PURE__ */ jsx124(TableHead, { children: /* @__PURE__ */ jsxs86(TableRow, { children: [
8535
+ enableCheckboxSelection ? /* @__PURE__ */ jsx124(
8263
8536
  TableCell,
8264
8537
  {
8265
8538
  padding: "checkbox",
8266
8539
  sx: { backgroundColor: colors.neutral100 },
8267
- children: /* @__PURE__ */ jsx122(
8540
+ children: /* @__PURE__ */ jsx124(
8268
8541
  Checkbox8,
8269
8542
  {
8270
8543
  color: "primary",
@@ -8276,7 +8549,7 @@ var SmartTableHeader = memo20(
8276
8549
  )
8277
8550
  }
8278
8551
  ) : null,
8279
- headCells.map((headCell) => /* @__PURE__ */ jsx122(
8552
+ headCells.map((headCell) => /* @__PURE__ */ jsx124(
8280
8553
  TableCell,
8281
8554
  {
8282
8555
  align: "left",
@@ -8300,14 +8573,14 @@ var SmartTableHeader = memo20(
8300
8573
  }
8301
8574
  }
8302
8575
  },
8303
- children: /* @__PURE__ */ jsxs85(
8304
- Box40,
8576
+ children: /* @__PURE__ */ jsxs86(
8577
+ Box42,
8305
8578
  {
8306
8579
  display: "flex",
8307
8580
  flexDirection: "row",
8308
8581
  gap: headCell.disableSort ? 1 : 0,
8309
8582
  children: [
8310
- headCell.disableSort ? headCell.renderHeader ?? /* @__PURE__ */ jsx122(Tooltip11, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ jsx122(Typography31, { variant: "subtitle2", mt: 0.25, mb: -0.25, children: headCell.label }) }) : /* @__PURE__ */ jsx122(Tooltip11, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ jsxs85(
8583
+ headCell.disableSort ? headCell.renderHeader ?? /* @__PURE__ */ jsx124(Tooltip11, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ jsx124(Typography31, { variant: "subtitle2", mt: 0.25, mb: -0.25, children: headCell.label }) }) : /* @__PURE__ */ jsx124(Tooltip11, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ jsxs86(
8311
8584
  TableSortLabel,
8312
8585
  {
8313
8586
  "data-testid": "table-sort-label",
@@ -8316,7 +8589,7 @@ var SmartTableHeader = memo20(
8316
8589
  onClick: createSortHandler(headCell.id),
8317
8590
  children: [
8318
8591
  headCell.renderHeader ?? headCell.label,
8319
- orderBy === headCell.id ? /* @__PURE__ */ jsx122(
8592
+ orderBy === headCell.id ? /* @__PURE__ */ jsx124(
8320
8593
  "span",
8321
8594
  {
8322
8595
  style: {
@@ -8336,7 +8609,7 @@ var SmartTableHeader = memo20(
8336
8609
  ]
8337
8610
  }
8338
8611
  ) }),
8339
- headCell.filterType ? /* @__PURE__ */ jsx122(
8612
+ headCell.filterType ? /* @__PURE__ */ jsx124(
8340
8613
  SmartTableHeaderFilterMenu,
8341
8614
  {
8342
8615
  headCell,
@@ -8358,10 +8631,10 @@ var SmartTableHeader = memo20(
8358
8631
 
8359
8632
  // src/components/Table/Table.tsx
8360
8633
  var import_debounce = __toESM(require_debounce(), 1);
8361
- import { useLayoutEffect, useState as useState17 } from "react";
8634
+ import { useLayoutEffect, useState as useState18 } from "react";
8362
8635
  import {
8363
- Box as Box42,
8364
- Paper as Paper11,
8636
+ Box as Box44,
8637
+ Paper as Paper12,
8365
8638
  Table as MUITable,
8366
8639
  TableBody,
8367
8640
  TableCell as TableCell2,
@@ -8374,12 +8647,12 @@ import { makeStyles as makeStyles44 } from "tss-react/mui";
8374
8647
  import { v4 as uuidv4 } from "uuid";
8375
8648
 
8376
8649
  // src/components/TableLoading/TableLoading.tsx
8377
- import { Box as Box41, Skeleton as Skeleton4 } from "@mui/material";
8378
- import { jsx as jsx123 } from "react/jsx-runtime";
8650
+ import { Box as Box43, Skeleton as Skeleton4 } from "@mui/material";
8651
+ import { jsx as jsx125 } from "react/jsx-runtime";
8379
8652
  var TableLoading = ({
8380
8653
  rowsPerPage,
8381
8654
  rowHeight
8382
- }) => /* @__PURE__ */ jsx123(Box41, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx123(
8655
+ }) => /* @__PURE__ */ jsx125(Box43, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx125(
8383
8656
  Skeleton4,
8384
8657
  {
8385
8658
  animation: "pulse",
@@ -8428,7 +8701,7 @@ function calculateRowsPerPage(rowHeight) {
8428
8701
  }
8429
8702
 
8430
8703
  // src/components/Table/Table.tsx
8431
- import { jsx as jsx124, jsxs as jsxs86 } from "react/jsx-runtime";
8704
+ import { jsx as jsx126, jsxs as jsxs87 } from "react/jsx-runtime";
8432
8705
  var useStyles44 = makeStyles44()(() => ({
8433
8706
  root: {
8434
8707
  height: "calc(100vh - 262px)",
@@ -8463,11 +8736,11 @@ var Table = ({
8463
8736
  serverRendered,
8464
8737
  updateSort
8465
8738
  }) => {
8466
- const [order, setOrder] = useState17(appliedFilters?.sortDir || "desc");
8467
- const [orderBy, setOrderBy] = useState17(
8739
+ const [order, setOrder] = useState18(appliedFilters?.sortDir || "desc");
8740
+ const [orderBy, setOrderBy] = useState18(
8468
8741
  appliedFilters?.sortField || "delivery_date"
8469
8742
  );
8470
- const [rowsPerPage, setRowsPerPage] = useState17(defaultRowsPerPage);
8743
+ const [rowsPerPage, setRowsPerPage] = useState18(defaultRowsPerPage);
8471
8744
  const { classes } = useStyles44();
8472
8745
  const rowHeight = 56;
8473
8746
  const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
@@ -8506,24 +8779,24 @@ var Table = ({
8506
8779
  );
8507
8780
  const rowsComponents = rows.map((row) => {
8508
8781
  if (RenderItem) {
8509
- return /* @__PURE__ */ jsx124(RenderItem, { ...row }, row.id);
8782
+ return /* @__PURE__ */ jsx126(RenderItem, { ...row }, row.id);
8510
8783
  }
8511
- return /* @__PURE__ */ jsx124(TableRow2, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ jsx124(TableCell2, { children: row[column.id] }, column.id)) }, row.id);
8784
+ return /* @__PURE__ */ jsx126(TableRow2, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ jsx126(TableCell2, { children: row[column.id] }, column.id)) }, row.id);
8512
8785
  });
8513
8786
  if (emptyRows > 0 && rowsPerPage > emptyRows) {
8514
8787
  rowsComponents.push(
8515
- /* @__PURE__ */ jsx124(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx124(TableCell2, { colSpan: 8 }) }, uuidv4())
8788
+ /* @__PURE__ */ jsx126(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx126(TableCell2, { colSpan: 8 }) }, uuidv4())
8516
8789
  );
8517
8790
  }
8518
8791
  return rowsComponents;
8519
8792
  };
8520
- return /* @__PURE__ */ jsx124(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx124(Box42, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx124(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx124(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs86(MUITable, { size: "medium", stickyHeader: true, children: [
8521
- /* @__PURE__ */ jsx124(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx124(TableRow2, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx124(
8793
+ return /* @__PURE__ */ jsx126(Paper12, { className: classes.root, children: /* @__PURE__ */ jsx126(Box44, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx126(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx126(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs87(MUITable, { size: "medium", stickyHeader: true, children: [
8794
+ /* @__PURE__ */ jsx126(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx126(TableRow2, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx126(
8522
8795
  TableCell2,
8523
8796
  {
8524
8797
  align: "left",
8525
8798
  sortDirection: orderBy === headCell.id ? order : void 0,
8526
- children: /* @__PURE__ */ jsx124(
8799
+ children: /* @__PURE__ */ jsx126(
8527
8800
  TableSortLabel2,
8528
8801
  {
8529
8802
  active: orderBy === headCell.id,
@@ -8535,9 +8808,9 @@ var Table = ({
8535
8808
  },
8536
8809
  headCell.id
8537
8810
  )) }) }),
8538
- /* @__PURE__ */ jsxs86(TableBody, { children: [
8811
+ /* @__PURE__ */ jsxs87(TableBody, { children: [
8539
8812
  getTableRows(),
8540
- rowsPerPage === emptyRows && /* @__PURE__ */ jsx124(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx124(TableCell2, { colSpan: 8, align: "center", children: "Nothing to display" }) })
8813
+ rowsPerPage === emptyRows && /* @__PURE__ */ jsx126(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx126(TableCell2, { colSpan: 8, align: "center", children: "Nothing to display" }) })
8541
8814
  ] })
8542
8815
  ] }) }) }) });
8543
8816
  };
@@ -8546,22 +8819,22 @@ var Table_default = Table;
8546
8819
  // src/components/TableDesktop/TableDesktop.tsx
8547
8820
  import {
8548
8821
  useMemo as useMemo5,
8549
- useState as useState18,
8550
- useEffect as useEffect12,
8551
- useRef as useRef7
8822
+ useState as useState19,
8823
+ useEffect as useEffect13,
8824
+ useRef as useRef8
8552
8825
  } from "react";
8553
- import { Paper as Paper12, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as Box44 } from "@mui/material";
8826
+ import { Paper as Paper13, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as Box46 } from "@mui/material";
8554
8827
 
8555
8828
  // src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
8556
8829
  import { Skeleton as Skeleton5, TableCell as TableCell3, TableRow as TableRow3 } from "@mui/material";
8557
- import { jsx as jsx125 } from "react/jsx-runtime";
8830
+ import { jsx as jsx127 } from "react/jsx-runtime";
8558
8831
  var getRange = (n) => Array.from({ length: n }, (_, i) => i + 1);
8559
8832
  var TableDesktopLoadingState = ({
8560
8833
  numRows,
8561
8834
  numColumns,
8562
8835
  rowHeight = 56
8563
8836
  }) => {
8564
- return getRange(numRows).map((rowNum) => /* @__PURE__ */ jsx125(TableRow3, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ jsx125(TableCell3, { children: /* @__PURE__ */ jsx125(
8837
+ return getRange(numRows).map((rowNum) => /* @__PURE__ */ jsx127(TableRow3, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ jsx127(TableCell3, { children: /* @__PURE__ */ jsx127(
8565
8838
  Skeleton5,
8566
8839
  {
8567
8840
  animation: "pulse",
@@ -8581,9 +8854,9 @@ import Typography32 from "@mui/material/Typography";
8581
8854
 
8582
8855
  // src/components/Buttons/BaseButton/BaseIconButton.tsx
8583
8856
  import { Button as Button16 } from "@mui/material";
8584
- import { jsxs as jsxs87 } from "react/jsx-runtime";
8857
+ import { jsxs as jsxs88 } from "react/jsx-runtime";
8585
8858
  var BaseIconButton = ({ icon, sx, ...props }) => {
8586
- return /* @__PURE__ */ jsxs87(
8859
+ return /* @__PURE__ */ jsxs88(
8587
8860
  Button16,
8588
8861
  {
8589
8862
  sx: {
@@ -8604,10 +8877,10 @@ var BaseIconButton = ({ icon, sx, ...props }) => {
8604
8877
  };
8605
8878
 
8606
8879
  // src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
8607
- import { jsx as jsx126, jsxs as jsxs88 } from "react/jsx-runtime";
8880
+ import { jsx as jsx128, jsxs as jsxs89 } from "react/jsx-runtime";
8608
8881
  var TableDesktopNoColumnsMessage = ({
8609
8882
  onClickNoColumnsMessageOpenMenu
8610
- }) => /* @__PURE__ */ jsx126(TableBody2, { children: /* @__PURE__ */ jsx126(TableRow4, { children: /* @__PURE__ */ jsxs88(
8883
+ }) => /* @__PURE__ */ jsx128(TableBody2, { children: /* @__PURE__ */ jsx128(TableRow4, { children: /* @__PURE__ */ jsxs89(
8611
8884
  TableCell4,
8612
8885
  {
8613
8886
  sx: {
@@ -8620,9 +8893,9 @@ var TableDesktopNoColumnsMessage = ({
8620
8893
  alignItems: "center"
8621
8894
  },
8622
8895
  children: [
8623
- /* @__PURE__ */ jsx126(Typography32, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
8624
- /* @__PURE__ */ jsx126(Typography32, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
8625
- /* @__PURE__ */ jsxs88(
8896
+ /* @__PURE__ */ jsx128(Typography32, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
8897
+ /* @__PURE__ */ jsx128(Typography32, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
8898
+ /* @__PURE__ */ jsxs89(
8626
8899
  Typography32,
8627
8900
  {
8628
8901
  variant: "subtitle1",
@@ -8635,18 +8908,18 @@ var TableDesktopNoColumnsMessage = ({
8635
8908
  },
8636
8909
  children: [
8637
8910
  "Tips: ",
8638
- /* @__PURE__ */ jsx126(Typography32, { component: "strong", children: "Save as default" }),
8911
+ /* @__PURE__ */ jsx128(Typography32, { component: "strong", children: "Save as default" }),
8639
8912
  " to keep these columns for future views"
8640
8913
  ]
8641
8914
  }
8642
8915
  ),
8643
- /* @__PURE__ */ jsx126(
8916
+ /* @__PURE__ */ jsx128(
8644
8917
  BaseIconButton,
8645
8918
  {
8646
8919
  variant: "contained",
8647
8920
  color: "primary",
8648
8921
  onClick: onClickNoColumnsMessageOpenMenu,
8649
- icon: /* @__PURE__ */ jsx126(IconTableEdit_default, { fill: colors.white }),
8922
+ icon: /* @__PURE__ */ jsx128(IconTableEdit_default, { fill: colors.white }),
8650
8923
  children: "OPEN MENU"
8651
8924
  }
8652
8925
  )
@@ -8655,7 +8928,7 @@ var TableDesktopNoColumnsMessage = ({
8655
8928
  ) }) });
8656
8929
 
8657
8930
  // src/components/TableDesktopRows/TableDesktopRows.tsx
8658
- import { jsx as jsx127 } from "react/jsx-runtime";
8931
+ import { jsx as jsx129 } from "react/jsx-runtime";
8659
8932
  var descendingComparator2 = (a, b, orderBy) => {
8660
8933
  const objA = a[orderBy];
8661
8934
  const objB = b[orderBy];
@@ -8702,7 +8975,7 @@ var TableDesktopRows = ({
8702
8975
  return sortedData.map((row, index) => {
8703
8976
  const rowId = getRowId(row);
8704
8977
  const isItemSelected = selectedRows.has(rowId);
8705
- return /* @__PURE__ */ jsx127(
8978
+ return /* @__PURE__ */ jsx129(
8706
8979
  RenderItem,
8707
8980
  {
8708
8981
  ...{
@@ -8724,8 +8997,8 @@ var TableDesktopRows = ({
8724
8997
  };
8725
8998
 
8726
8999
  // src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
8727
- import { Box as Box43, Button as Button17, Typography as Typography33 } from "@mui/material";
8728
- import { jsx as jsx128, jsxs as jsxs89 } from "react/jsx-runtime";
9000
+ import { Box as Box45, Button as Button17, Typography as Typography33 } from "@mui/material";
9001
+ import { jsx as jsx130, jsxs as jsxs90 } from "react/jsx-runtime";
8729
9002
  var TableDesktopRowSelectionBar = ({
8730
9003
  isEveryRowInPageSelected,
8731
9004
  isRowsFromAllPagesSelected,
@@ -8744,8 +9017,8 @@ var TableDesktopRowSelectionBar = ({
8744
9017
  }
8745
9018
  return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
8746
9019
  };
8747
- return isAnyRowSelected ? /* @__PURE__ */ jsxs89(
8748
- Box43,
9020
+ return isAnyRowSelected ? /* @__PURE__ */ jsxs90(
9021
+ Box45,
8749
9022
  {
8750
9023
  sx: {
8751
9024
  p: 1,
@@ -8757,13 +9030,13 @@ var TableDesktopRowSelectionBar = ({
8757
9030
  backgroundColor: colors.neutral150
8758
9031
  },
8759
9032
  children: [
8760
- /* @__PURE__ */ jsx128(Typography33, { children: getSelectedRowsText() }),
8761
- !isRowsFromAllPagesSelected ? /* @__PURE__ */ jsxs89(Button17, { onClick: onSelectRowsFromAllPagesClick, children: [
9033
+ /* @__PURE__ */ jsx130(Typography33, { children: getSelectedRowsText() }),
9034
+ !isRowsFromAllPagesSelected ? /* @__PURE__ */ jsxs90(Button17, { onClick: onSelectRowsFromAllPagesClick, children: [
8762
9035
  "Select all ",
8763
9036
  totalRowCount,
8764
9037
  " rows from all pages based on your filters"
8765
9038
  ] }) : null,
8766
- /* @__PURE__ */ jsx128(Button17, { onClick: onClearSelectionClick, children: "Clear Selection" })
9039
+ /* @__PURE__ */ jsx130(Button17, { onClick: onClearSelectionClick, children: "Clear Selection" })
8767
9040
  ]
8768
9041
  }
8769
9042
  ) : null;
@@ -8772,7 +9045,7 @@ var TableDesktopRowSelectionBar = ({
8772
9045
  // src/components/TableEmptyResult/TableEmptyResult.tsx
8773
9046
  import { TableCell as TableCell5, TableRow as TableRow5, Typography as Typography34 } from "@mui/material";
8774
9047
  import { makeStyles as makeStyles45 } from "tss-react/mui";
8775
- import { jsx as jsx129, jsxs as jsxs90 } from "react/jsx-runtime";
9048
+ import { jsx as jsx131, jsxs as jsxs91 } from "react/jsx-runtime";
8776
9049
  var useStyles45 = makeStyles45()(() => ({
8777
9050
  tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
8778
9051
  tableCellDefault: { padding: 24 }
@@ -8784,17 +9057,17 @@ var TableEmptyResult = ({
8784
9057
  }
8785
9058
  }) => {
8786
9059
  const { classes } = useStyles45();
8787
- return showClearFilterButton ? /* @__PURE__ */ jsx129(TableRow5, { children: /* @__PURE__ */ jsxs90(
9060
+ return showClearFilterButton ? /* @__PURE__ */ jsx131(TableRow5, { children: /* @__PURE__ */ jsxs91(
8788
9061
  TableCell5,
8789
9062
  {
8790
9063
  className: classes.tableCellIcon,
8791
9064
  colSpan,
8792
9065
  align: "center",
8793
9066
  children: [
8794
- /* @__PURE__ */ jsx129(EmptyGlassIcon_default, {}),
8795
- /* @__PURE__ */ jsx129(Typography34, { variant: "h6", children: "No results found." }),
8796
- /* @__PURE__ */ jsx129(Typography34, { variant: "subtitle1", children: "Search without applied filters?" }),
8797
- /* @__PURE__ */ jsx129(
9067
+ /* @__PURE__ */ jsx131(EmptyGlassIcon_default, {}),
9068
+ /* @__PURE__ */ jsx131(Typography34, { variant: "h6", children: "No results found." }),
9069
+ /* @__PURE__ */ jsx131(Typography34, { variant: "subtitle1", children: "Search without applied filters?" }),
9070
+ /* @__PURE__ */ jsx131(
8798
9071
  FilledButton_default,
8799
9072
  {
8800
9073
  copy: "Search",
@@ -8805,7 +9078,7 @@ var TableEmptyResult = ({
8805
9078
  )
8806
9079
  ]
8807
9080
  }
8808
- ) }) : /* @__PURE__ */ jsx129(TableRow5, { children: /* @__PURE__ */ jsx129(
9081
+ ) }) : /* @__PURE__ */ jsx131(TableRow5, { children: /* @__PURE__ */ jsx131(
8809
9082
  TableCell5,
8810
9083
  {
8811
9084
  className: classes.tableCellDefault,
@@ -8818,7 +9091,7 @@ var TableEmptyResult = ({
8818
9091
  var TableEmptyResult_default = TableEmptyResult;
8819
9092
 
8820
9093
  // src/components/TableDesktop/TableDesktop.tsx
8821
- import { Fragment as Fragment14, jsx as jsx130, jsxs as jsxs91 } from "react/jsx-runtime";
9094
+ import { Fragment as Fragment14, jsx as jsx132, jsxs as jsxs92 } from "react/jsx-runtime";
8822
9095
  var resolveKeyValue = (keyField, rowData) => {
8823
9096
  if (typeof keyField === "string") {
8824
9097
  return rowData[keyField];
@@ -8851,15 +9124,15 @@ var TableDesktop = ({
8851
9124
  shouldShowCheckOnFilter,
8852
9125
  refetchData
8853
9126
  }) => {
8854
- const tableToolbarMenuButtonRef = useRef7(null);
8855
- const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = useState18(null);
8856
- const [order, setOrder] = useState18(appliedFilters?.sortDir || "desc");
8857
- const [orderBy, setOrderBy] = useState18(
9127
+ const tableToolbarMenuButtonRef = useRef8(null);
9128
+ const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = useState19(null);
9129
+ const [order, setOrder] = useState19(appliedFilters?.sortDir || "desc");
9130
+ const [orderBy, setOrderBy] = useState19(
8858
9131
  appliedFilters?.sortField || "delivery_date"
8859
9132
  );
8860
- const [selectedRows, setSelectedRows] = useState18(/* @__PURE__ */ new Set());
8861
- const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = useState18(false);
8862
- const [isBulkChangesMode, setIsBulkChangesMode] = useState18(false);
9133
+ const [selectedRows, setSelectedRows] = useState19(/* @__PURE__ */ new Set());
9134
+ const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = useState19(false);
9135
+ const [isBulkChangesMode, setIsBulkChangesMode] = useState19(false);
8863
9136
  const numRows = data.length;
8864
9137
  const numSelectedRows = useMemo5(() => {
8865
9138
  const currentPageIds = new Set(
@@ -8934,14 +9207,14 @@ var TableDesktop = ({
8934
9207
  refetchData?.();
8935
9208
  }
8936
9209
  };
8937
- useEffect12(() => {
9210
+ useEffect13(() => {
8938
9211
  if (isRowsFromAllPagesSelected) {
8939
9212
  selectAllRowsInPage();
8940
9213
  }
8941
9214
  }, [isRowsFromAllPagesSelected, data]);
8942
9215
  const renderBody = () => {
8943
9216
  if (isLoading) {
8944
- return /* @__PURE__ */ jsx130(
9217
+ return /* @__PURE__ */ jsx132(
8945
9218
  TableDesktopLoadingState,
8946
9219
  {
8947
9220
  numRows: Math.min(rowsPerPage, 10),
@@ -8951,7 +9224,7 @@ var TableDesktop = ({
8951
9224
  );
8952
9225
  }
8953
9226
  if (numRows === 0) {
8954
- return /* @__PURE__ */ jsx130(
9227
+ return /* @__PURE__ */ jsx132(
8955
9228
  TableEmptyResult_default,
8956
9229
  {
8957
9230
  showClearFilterButton,
@@ -8960,7 +9233,7 @@ var TableDesktop = ({
8960
9233
  }
8961
9234
  );
8962
9235
  }
8963
- return /* @__PURE__ */ jsx130(
9236
+ return /* @__PURE__ */ jsx132(
8964
9237
  TableDesktopRows,
8965
9238
  {
8966
9239
  data,
@@ -8979,8 +9252,8 @@ var TableDesktop = ({
8979
9252
  }
8980
9253
  );
8981
9254
  };
8982
- return /* @__PURE__ */ jsx130(
8983
- Box44,
9255
+ return /* @__PURE__ */ jsx132(
9256
+ Box46,
8984
9257
  {
8985
9258
  sx: {
8986
9259
  height,
@@ -8988,8 +9261,8 @@ var TableDesktop = ({
8988
9261
  justifyContent: "space-between",
8989
9262
  justifyItems: "stretch"
8990
9263
  },
8991
- children: /* @__PURE__ */ jsxs91(
8992
- Paper12,
9264
+ children: /* @__PURE__ */ jsxs92(
9265
+ Paper13,
8993
9266
  {
8994
9267
  sx: {
8995
9268
  width: "100%",
@@ -9013,7 +9286,7 @@ var TableDesktop = ({
9013
9286
  isBulkChangesMode,
9014
9287
  onChangeBulkChangesMode: handleChangeBulkChangesMode
9015
9288
  }) : null,
9016
- /* @__PURE__ */ jsx130(
9289
+ /* @__PURE__ */ jsx132(
9017
9290
  TableDesktopRowSelectionBar,
9018
9291
  {
9019
9292
  isEveryRowInPageSelected,
@@ -9024,7 +9297,7 @@ var TableDesktop = ({
9024
9297
  onClearSelectionClick: handleClearSelectionClick
9025
9298
  }
9026
9299
  ),
9027
- /* @__PURE__ */ jsx130(
9300
+ /* @__PURE__ */ jsx132(
9028
9301
  TableContainer2,
9029
9302
  {
9030
9303
  sx: {
@@ -9046,13 +9319,13 @@ var TableDesktop = ({
9046
9319
  backgroundColor: (theme) => theme.palette.grey[500]
9047
9320
  }
9048
9321
  },
9049
- children: /* @__PURE__ */ jsx130(Table2, { stickyHeader: true, "aria-label": "sticky-table", sx: { tableLayout }, children: visibleHeadCells.length === 0 ? /* @__PURE__ */ jsx130(
9322
+ children: /* @__PURE__ */ jsx132(Table2, { stickyHeader: true, "aria-label": "sticky-table", sx: { tableLayout }, children: visibleHeadCells.length === 0 ? /* @__PURE__ */ jsx132(
9050
9323
  TableDesktopNoColumnsMessage,
9051
9324
  {
9052
9325
  onClickNoColumnsMessageOpenMenu: handleClickToolbarMenuOpen
9053
9326
  }
9054
- ) : /* @__PURE__ */ jsxs91(Fragment14, { children: [
9055
- /* @__PURE__ */ jsx130(
9327
+ ) : /* @__PURE__ */ jsxs92(Fragment14, { children: [
9328
+ /* @__PURE__ */ jsx132(
9056
9329
  SmartTableHeader,
9057
9330
  {
9058
9331
  order,
@@ -9068,7 +9341,7 @@ var TableDesktop = ({
9068
9341
  shouldShowCheckOnFilter
9069
9342
  }
9070
9343
  ),
9071
- /* @__PURE__ */ jsx130(TableBody3, { children: renderBody() })
9344
+ /* @__PURE__ */ jsx132(TableBody3, { children: renderBody() })
9072
9345
  ] }) })
9073
9346
  }
9074
9347
  ),
@@ -9085,7 +9358,7 @@ var TableDesktop = ({
9085
9358
  };
9086
9359
 
9087
9360
  // src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
9088
- import { useEffect as useEffect14, useState as useState23 } from "react";
9361
+ import { useEffect as useEffect15, useState as useState24 } from "react";
9089
9362
  import DeleteIcon from "@mui/icons-material/Delete";
9090
9363
  import { Checkbox as Checkbox9, FormControlLabel as FormControlLabel6 } from "@mui/material";
9091
9364
  import { DatePicker, TimePicker } from "@mui/x-date-pickers";
@@ -9093,7 +9366,7 @@ import moment2 from "moment";
9093
9366
 
9094
9367
  // src/components/TableDesktopEditableField/TableDesktopSmartMultipleSelect.tsx
9095
9368
  import { useMemo as useMemo6 } from "react";
9096
- import { jsx as jsx131 } from "react/jsx-runtime";
9369
+ import { jsx as jsx133 } from "react/jsx-runtime";
9097
9370
  var TableDesktopSmartMultipleSelect = ({
9098
9371
  initialValue,
9099
9372
  inputLabel,
@@ -9114,7 +9387,7 @@ var TableDesktopSmartMultipleSelect = ({
9114
9387
  label: val[fieldName].toString()
9115
9388
  }));
9116
9389
  }, [initialValue]);
9117
- return /* @__PURE__ */ jsx131(
9390
+ return /* @__PURE__ */ jsx133(
9118
9391
  SmartMultipleSelect,
9119
9392
  {
9120
9393
  inputLabel,
@@ -9145,8 +9418,8 @@ var TableDesktopSmartMultipleSelect = ({
9145
9418
  };
9146
9419
 
9147
9420
  // src/components/TableDesktopEditableField/TableDesktopSmartSelect.tsx
9148
- import { useState as useState19 } from "react";
9149
- import { jsx as jsx132 } from "react/jsx-runtime";
9421
+ import { useState as useState20 } from "react";
9422
+ import { jsx as jsx134 } from "react/jsx-runtime";
9150
9423
  var TableDesktopSmartSelect = ({
9151
9424
  ref,
9152
9425
  initialValue,
@@ -9163,12 +9436,12 @@ var TableDesktopSmartSelect = ({
9163
9436
  isFetchingFilterOptions,
9164
9437
  onUpdateEditableCell
9165
9438
  }) => {
9166
- const [value, setValue] = useState19(
9439
+ const [value, setValue] = useState20(
9167
9440
  initialValue
9168
9441
  );
9169
9442
  const valueId = resolveObjectType(value ?? "", "id");
9170
9443
  const valueLabel = resolveObjectType(value ?? "", fieldName);
9171
- return /* @__PURE__ */ jsx132(
9444
+ return /* @__PURE__ */ jsx134(
9172
9445
  SmartSelect,
9173
9446
  {
9174
9447
  ref,
@@ -9200,18 +9473,18 @@ var TableDesktopSmartSelect = ({
9200
9473
  };
9201
9474
 
9202
9475
  // src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
9203
- import { useEffect as useEffect13, useMemo as useMemo7, useState as useState21, useRef as useRef8 } from "react";
9476
+ import { useEffect as useEffect14, useMemo as useMemo7, useState as useState22, useRef as useRef9 } from "react";
9204
9477
 
9205
9478
  // src/components/HashtagInput/HashtagInput.tsx
9206
- import { useState as useState20 } from "react";
9479
+ import { useState as useState21 } from "react";
9207
9480
  import {
9208
9481
  Autocomplete,
9209
9482
  Chip as Chip5,
9210
9483
  TextField as TextField8,
9211
- alpha as alpha2,
9484
+ alpha as alpha3,
9212
9485
  useTheme as useTheme2
9213
9486
  } from "@mui/material";
9214
- import { jsx as jsx133 } from "react/jsx-runtime";
9487
+ import { jsx as jsx135 } from "react/jsx-runtime";
9215
9488
  import { createElement } from "react";
9216
9489
  var HashtagInput = ({
9217
9490
  label,
@@ -9227,7 +9500,7 @@ var HashtagInput = ({
9227
9500
  ...props
9228
9501
  }) => {
9229
9502
  const { palette } = useTheme2();
9230
- const [inputValue, setInputValue] = useState20("");
9503
+ const [inputValue, setInputValue] = useState21("");
9231
9504
  const sanitizeTag = (value) => {
9232
9505
  return value.toLowerCase().replace(/[^a-z0-9#]/g, "").trim();
9233
9506
  };
@@ -9244,7 +9517,7 @@ var HashtagInput = ({
9244
9517
  handleAddTag();
9245
9518
  }
9246
9519
  };
9247
- return /* @__PURE__ */ jsx133(
9520
+ return /* @__PURE__ */ jsx135(
9248
9521
  Autocomplete,
9249
9522
  {
9250
9523
  ...props,
@@ -9263,7 +9536,7 @@ var HashtagInput = ({
9263
9536
  onDeleteTag?.(details.option);
9264
9537
  }
9265
9538
  },
9266
- renderInput: (textFieldProps) => /* @__PURE__ */ jsx133(
9539
+ renderInput: (textFieldProps) => /* @__PURE__ */ jsx135(
9267
9540
  TextField8,
9268
9541
  {
9269
9542
  ...textFieldProps,
@@ -9294,7 +9567,7 @@ var HashtagInput = ({
9294
9567
  paddingBlock: 0,
9295
9568
  color: palette.primary.main,
9296
9569
  fontWeight: "bold",
9297
- backgroundColor: alpha2(palette.primary.main, 0.1)
9570
+ backgroundColor: alpha3(palette.primary.main, 0.1)
9298
9571
  }
9299
9572
  }
9300
9573
  );
@@ -9304,7 +9577,7 @@ var HashtagInput = ({
9304
9577
  };
9305
9578
 
9306
9579
  // src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
9307
- import { Fragment as Fragment15, jsx as jsx134 } from "react/jsx-runtime";
9580
+ import { Fragment as Fragment15, jsx as jsx136 } from "react/jsx-runtime";
9308
9581
  var TableDesktopTagsField = ({
9309
9582
  initialValue,
9310
9583
  inputLabel,
@@ -9315,9 +9588,9 @@ var TableDesktopTagsField = ({
9315
9588
  size,
9316
9589
  onUpdateEditableCell
9317
9590
  }) => {
9318
- const [error, setError] = useState21();
9319
- const [values, setValues] = useState21([]);
9320
- const valuesRef = useRef8([]);
9591
+ const [error, setError] = useState22();
9592
+ const [values, setValues] = useState22([]);
9593
+ const valuesRef = useRef9([]);
9321
9594
  const validateTag = (tag) => {
9322
9595
  if (tag.length >= 30) {
9323
9596
  return false;
@@ -9339,11 +9612,11 @@ var TableDesktopTagsField = ({
9339
9612
  const initialValueTags = useMemo7(() => {
9340
9613
  return (initialValue ?? []).map((val) => val.tag);
9341
9614
  }, [initialValue]);
9342
- useEffect13(() => {
9615
+ useEffect14(() => {
9343
9616
  setValues(initialValueTags);
9344
9617
  valuesRef.current = initialValueTags;
9345
9618
  }, [initialValueTags]);
9346
- return /* @__PURE__ */ jsx134(Fragment15, { children: /* @__PURE__ */ jsx134(
9619
+ return /* @__PURE__ */ jsx136(Fragment15, { children: /* @__PURE__ */ jsx136(
9347
9620
  HashtagInput,
9348
9621
  {
9349
9622
  autoFocus: true,
@@ -9378,9 +9651,9 @@ var TableDesktopTagsField = ({
9378
9651
  };
9379
9652
 
9380
9653
  // src/components/TableDesktopEditableField/TableDesktopTextField.tsx
9381
- import { useMemo as useMemo8, useState as useState22, useRef as useRef9 } from "react";
9654
+ import { useMemo as useMemo8, useState as useState23, useRef as useRef10 } from "react";
9382
9655
  import { TextField as TextField9 } from "@mui/material";
9383
- import { jsx as jsx135 } from "react/jsx-runtime";
9656
+ import { jsx as jsx137 } from "react/jsx-runtime";
9384
9657
  var TableDesktopTextField = ({
9385
9658
  rowId,
9386
9659
  initialValue,
@@ -9393,8 +9666,8 @@ var TableDesktopTextField = ({
9393
9666
  validateInput,
9394
9667
  onUpdateEditableCell
9395
9668
  }) => {
9396
- const [input, setInput] = useState22(initialValue);
9397
- const oldValue = useRef9(initialValue);
9669
+ const [input, setInput] = useState23(initialValue);
9670
+ const oldValue = useRef10(initialValue);
9398
9671
  const isDirty = useMemo8(
9399
9672
  () => input !== oldValue.current,
9400
9673
  [input, oldValue.current]
@@ -9417,7 +9690,7 @@ var TableDesktopTextField = ({
9417
9690
  commitValue(input);
9418
9691
  }
9419
9692
  };
9420
- return /* @__PURE__ */ jsx135(
9693
+ return /* @__PURE__ */ jsx137(
9421
9694
  TextField9,
9422
9695
  {
9423
9696
  fullWidth: true,
@@ -9450,7 +9723,7 @@ var TableDesktopTextField = ({
9450
9723
  };
9451
9724
 
9452
9725
  // src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
9453
- import { jsx as jsx136 } from "react/jsx-runtime";
9726
+ import { jsx as jsx138 } from "react/jsx-runtime";
9454
9727
  var TableDesktopEditableField = ({
9455
9728
  editInitialValue,
9456
9729
  rowId,
@@ -9471,8 +9744,8 @@ var TableDesktopEditableField = ({
9471
9744
  allowBlankSelectOption
9472
9745
  }
9473
9746
  }) => {
9474
- const [parsedFilterOptions, setParsedFilterOptions] = useState23();
9475
- useEffect14(() => {
9747
+ const [parsedFilterOptions, setParsedFilterOptions] = useState24();
9748
+ useEffect15(() => {
9476
9749
  if (filterOptions && editableCellType === "select" || editableCellType === "multipleSelect") {
9477
9750
  const parsedOptions = filterOptions?.map(
9478
9751
  (option) => ({
@@ -9484,7 +9757,7 @@ var TableDesktopEditableField = ({
9484
9757
  }
9485
9758
  }, [filterOptions, editableCellType]);
9486
9759
  const editableComponents = {
9487
- select: /* @__PURE__ */ jsx136(
9760
+ select: /* @__PURE__ */ jsx138(
9488
9761
  TableDesktopSmartSelect,
9489
9762
  {
9490
9763
  rowId,
@@ -9502,7 +9775,7 @@ var TableDesktopEditableField = ({
9502
9775
  onUpdateEditableCell
9503
9776
  }
9504
9777
  ),
9505
- multipleSelect: /* @__PURE__ */ jsx136(
9778
+ multipleSelect: /* @__PURE__ */ jsx138(
9506
9779
  TableDesktopSmartMultipleSelect,
9507
9780
  {
9508
9781
  rowId,
@@ -9519,11 +9792,11 @@ var TableDesktopEditableField = ({
9519
9792
  onUpdateEditableCell
9520
9793
  }
9521
9794
  ),
9522
- checkbox: /* @__PURE__ */ jsx136(
9795
+ checkbox: /* @__PURE__ */ jsx138(
9523
9796
  FormControlLabel6,
9524
9797
  {
9525
9798
  label: showCheckboxLabel ? inputLabel : "",
9526
- control: /* @__PURE__ */ jsx136(
9799
+ control: /* @__PURE__ */ jsx138(
9527
9800
  Checkbox9,
9528
9801
  {
9529
9802
  disableRipple: true,
@@ -9541,7 +9814,7 @@ var TableDesktopEditableField = ({
9541
9814
  )
9542
9815
  }
9543
9816
  ),
9544
- text: /* @__PURE__ */ jsx136(
9817
+ text: /* @__PURE__ */ jsx138(
9545
9818
  TableDesktopTextField,
9546
9819
  {
9547
9820
  type: "text",
@@ -9556,7 +9829,7 @@ var TableDesktopEditableField = ({
9556
9829
  onUpdateEditableCell
9557
9830
  }
9558
9831
  ),
9559
- numeric: /* @__PURE__ */ jsx136(
9832
+ numeric: /* @__PURE__ */ jsx138(
9560
9833
  TableDesktopTextField,
9561
9834
  {
9562
9835
  type: "numeric",
@@ -9571,7 +9844,7 @@ var TableDesktopEditableField = ({
9571
9844
  onUpdateEditableCell
9572
9845
  }
9573
9846
  ),
9574
- date: /* @__PURE__ */ jsx136(
9847
+ date: /* @__PURE__ */ jsx138(
9575
9848
  DatePicker,
9576
9849
  {
9577
9850
  defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
@@ -9600,7 +9873,7 @@ var TableDesktopEditableField = ({
9600
9873
  }
9601
9874
  }
9602
9875
  ),
9603
- time: /* @__PURE__ */ jsx136(
9876
+ time: /* @__PURE__ */ jsx138(
9604
9877
  TimePicker,
9605
9878
  {
9606
9879
  defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
@@ -9627,7 +9900,7 @@ var TableDesktopEditableField = ({
9627
9900
  }
9628
9901
  }
9629
9902
  ),
9630
- tags: /* @__PURE__ */ jsx136(
9903
+ tags: /* @__PURE__ */ jsx138(
9631
9904
  TableDesktopTagsField,
9632
9905
  {
9633
9906
  initialValue: editInitialValue,
@@ -9649,7 +9922,7 @@ var TableDesktopEditableField = ({
9649
9922
  // src/components/TableDesktopFooter/TableDesktopFooter.tsx
9650
9923
  import Refresh3 from "@mui/icons-material/Refresh";
9651
9924
  import {
9652
- Box as Box45,
9925
+ Box as Box47,
9653
9926
  Button as Button18,
9654
9927
  MenuItem as MenuItem4,
9655
9928
  Pagination as Pagination2,
@@ -9657,7 +9930,7 @@ import {
9657
9930
  Stack,
9658
9931
  Typography as Typography35
9659
9932
  } from "@mui/material";
9660
- import { jsx as jsx137, jsxs as jsxs92 } from "react/jsx-runtime";
9933
+ import { jsx as jsx139, jsxs as jsxs93 } from "react/jsx-runtime";
9661
9934
  var TableDesktopFooter = ({
9662
9935
  numPages,
9663
9936
  page,
@@ -9668,8 +9941,8 @@ var TableDesktopFooter = ({
9668
9941
  refetchData,
9669
9942
  isFetching
9670
9943
  }) => {
9671
- return /* @__PURE__ */ jsxs92(
9672
- Box45,
9944
+ return /* @__PURE__ */ jsxs93(
9945
+ Box47,
9673
9946
  {
9674
9947
  sx: {
9675
9948
  py: 1,
@@ -9680,7 +9953,7 @@ var TableDesktopFooter = ({
9680
9953
  borderTop: `1px solid ${colors.neutral300}`
9681
9954
  },
9682
9955
  children: [
9683
- refetchData ? /* @__PURE__ */ jsx137(
9956
+ refetchData ? /* @__PURE__ */ jsx139(
9684
9957
  Button18,
9685
9958
  {
9686
9959
  disableRipple: true,
@@ -9692,7 +9965,7 @@ var TableDesktopFooter = ({
9692
9965
  ml: 1,
9693
9966
  gap: 1
9694
9967
  },
9695
- children: /* @__PURE__ */ jsx137(
9968
+ children: /* @__PURE__ */ jsx139(
9696
9969
  Refresh3,
9697
9970
  {
9698
9971
  fontSize: "small",
@@ -9701,21 +9974,21 @@ var TableDesktopFooter = ({
9701
9974
  )
9702
9975
  }
9703
9976
  ) : null,
9704
- /* @__PURE__ */ jsxs92(Box45, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
9705
- pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ jsxs92(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
9706
- /* @__PURE__ */ jsx137(Typography35, { fontSize: 12, children: "Rows per page:" }),
9707
- /* @__PURE__ */ jsx137(
9977
+ /* @__PURE__ */ jsxs93(Box47, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
9978
+ pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ jsxs93(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
9979
+ /* @__PURE__ */ jsx139(Typography35, { fontSize: 12, children: "Rows per page:" }),
9980
+ /* @__PURE__ */ jsx139(
9708
9981
  Select5,
9709
9982
  {
9710
9983
  value: pageSize,
9711
9984
  onChange: onPageSizeChange,
9712
9985
  size: "small",
9713
9986
  variant: "standard",
9714
- children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ jsx137(MenuItem4, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
9987
+ children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ jsx139(MenuItem4, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
9715
9988
  }
9716
9989
  )
9717
9990
  ] }) : null,
9718
- /* @__PURE__ */ jsx137(
9991
+ /* @__PURE__ */ jsx139(
9719
9992
  Pagination2,
9720
9993
  {
9721
9994
  color: "standard",
@@ -9731,15 +10004,15 @@ var TableDesktopFooter = ({
9731
10004
  };
9732
10005
 
9733
10006
  // src/components/TableDesktopCell/TableDesktopCell.tsx
9734
- import { useEffect as useEffect15, useState as useState24 } from "react";
10007
+ import { useEffect as useEffect16, useState as useState25 } from "react";
9735
10008
  import CheckIcon3 from "@mui/icons-material/Check";
9736
10009
  import CloseIcon from "@mui/icons-material/Close";
9737
10010
  import EditIcon from "@mui/icons-material/Edit";
9738
10011
  import { IconButton as IconButton6, TableCell as TableCell6, Tooltip as Tooltip12 } from "@mui/material";
9739
- import { Fragment as Fragment16, jsx as jsx138, jsxs as jsxs93 } from "react/jsx-runtime";
10012
+ import { Fragment as Fragment16, jsx as jsx140, jsxs as jsxs94 } from "react/jsx-runtime";
9740
10013
  var getReadOnlyBooleanIcon = (value) => {
9741
10014
  if (value) {
9742
- return /* @__PURE__ */ jsx138(CheckIcon3, { sx: { fontSize: 16 } });
10015
+ return /* @__PURE__ */ jsx140(CheckIcon3, { sx: { fontSize: 16 } });
9743
10016
  }
9744
10017
  return "-";
9745
10018
  };
@@ -9761,10 +10034,10 @@ var TableDesktopCell = ({
9761
10034
  onCellClick,
9762
10035
  headCell
9763
10036
  }) => {
9764
- const [isCellHovered, setIsCellHovered] = useState24(false);
9765
- const [isCellInEditMode, setIsCellInEditMode] = useState24(false);
10037
+ const [isCellHovered, setIsCellHovered] = useState25(false);
10038
+ const [isCellInEditMode, setIsCellInEditMode] = useState25(false);
9766
10039
  const { width, editableCellType } = headCell;
9767
- useEffect15(() => {
10040
+ useEffect16(() => {
9768
10041
  const handleKeyDown = (e) => {
9769
10042
  if (e.key === "Escape") {
9770
10043
  setIsCellInEditMode(false);
@@ -9782,7 +10055,7 @@ var TableDesktopCell = ({
9782
10055
  setIsCellInEditMode((prev) => !prev);
9783
10056
  };
9784
10057
  const isCellEditable = !!enableEditMode && !!editableCellType && !disabled;
9785
- return /* @__PURE__ */ jsx138(
10058
+ return /* @__PURE__ */ jsx140(
9786
10059
  TableCell6,
9787
10060
  {
9788
10061
  align: "left",
@@ -9797,8 +10070,8 @@ var TableDesktopCell = ({
9797
10070
  ":hover": isCellEditable ? getCellBackgroundColor(isCellInEditMode) : void 0,
9798
10071
  background: enableEditMode && isCellInEditMode ? colors.lightBlueBackground : void 0
9799
10072
  },
9800
- children: /* @__PURE__ */ jsx138(DynamicOverflowTooltip, { tooltipDescription: String(readOnlyValue), arrow: true, children: /* @__PURE__ */ jsxs93(Fragment16, { children: [
9801
- enableEditMode && isCellHovered ? /* @__PURE__ */ jsx138(Tooltip12, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ jsx138(
10073
+ children: /* @__PURE__ */ jsx140(DynamicOverflowTooltip, { tooltipDescription: String(readOnlyValue), arrow: true, children: /* @__PURE__ */ jsxs94(Fragment16, { children: [
10074
+ enableEditMode && isCellHovered ? /* @__PURE__ */ jsx140(Tooltip12, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ jsx140(
9802
10075
  IconButton6,
9803
10076
  {
9804
10077
  onClick: handleEditClick,
@@ -9813,10 +10086,10 @@ var TableDesktopCell = ({
9813
10086
  backgroundColor: isCellInEditMode ? colors.lightBlueBackground : colors.neutral150
9814
10087
  }
9815
10088
  },
9816
- children: isCellInEditMode ? /* @__PURE__ */ jsx138(CloseIcon, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx138(EditIcon, { fontSize: "small" })
10089
+ children: isCellInEditMode ? /* @__PURE__ */ jsx140(CloseIcon, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx140(EditIcon, { fontSize: "small" })
9817
10090
  }
9818
10091
  ) }) : null,
9819
- enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ jsx138(
10092
+ enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ jsx140(
9820
10093
  TableDesktopEditableField,
9821
10094
  {
9822
10095
  editInitialValue,
@@ -9833,15 +10106,15 @@ var TableDesktopCell = ({
9833
10106
 
9834
10107
  // src/components/TableDesktopToolbar/TableDesktopToolbar.tsx
9835
10108
  import {
9836
- useState as useState25,
10109
+ useState as useState26,
9837
10110
  useMemo as useMemo9,
9838
- useRef as useRef10
10111
+ useRef as useRef11
9839
10112
  } from "react";
9840
10113
  import Download from "@mui/icons-material/Download";
9841
10114
  import KeyboardArrowLeft2 from "@mui/icons-material/KeyboardArrowLeft";
9842
10115
  import KeyboardArrowRight2 from "@mui/icons-material/KeyboardArrowRight";
9843
10116
  import {
9844
- Box as Box46,
10117
+ Box as Box48,
9845
10118
  Button as Button19,
9846
10119
  Divider as Divider11,
9847
10120
  FormControlLabel as FormControlLabel7,
@@ -9850,7 +10123,7 @@ import {
9850
10123
  Tooltip as Tooltip13,
9851
10124
  Typography as Typography36
9852
10125
  } from "@mui/material";
9853
- import { Fragment as Fragment17, jsx as jsx139, jsxs as jsxs94 } from "react/jsx-runtime";
10126
+ import { Fragment as Fragment17, jsx as jsx141, jsxs as jsxs95 } from "react/jsx-runtime";
9854
10127
  var TableDesktopToolbar = ({
9855
10128
  toolbarLabel,
9856
10129
  headCells,
@@ -9873,11 +10146,11 @@ var TableDesktopToolbar = ({
9873
10146
  renderTableColumnConfigurationMenu,
9874
10147
  renderInfoIcons
9875
10148
  }) => {
9876
- const scrollRef = useRef10(null);
9877
- const [bulkChanges, setBulkChanges] = useState25([]);
9878
- const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = useState25(false);
9879
- const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = useState25(false);
9880
- const [resetCounter, setResetCounter] = useState25(0);
10149
+ const scrollRef = useRef11(null);
10150
+ const [bulkChanges, setBulkChanges] = useState26([]);
10151
+ const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = useState26(false);
10152
+ const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = useState26(false);
10153
+ const [resetCounter, setResetCounter] = useState26(0);
9881
10154
  const visibleEditableColumns = useMemo9(
9882
10155
  () => headCells.filter(
9883
10156
  (headCell) => headCell?.enabled && !!headCell?.editableCellType
@@ -9904,8 +10177,8 @@ var TableDesktopToolbar = ({
9904
10177
  return [...prev, { field: columnId, value, label }];
9905
10178
  });
9906
10179
  };
9907
- return /* @__PURE__ */ jsxs94(
9908
- Box46,
10180
+ return /* @__PURE__ */ jsxs95(
10181
+ Box48,
9909
10182
  {
9910
10183
  sx: {
9911
10184
  borderBottom: "1px solid",
@@ -9913,8 +10186,8 @@ var TableDesktopToolbar = ({
9913
10186
  maxWidth: "100%"
9914
10187
  },
9915
10188
  children: [
9916
- /* @__PURE__ */ jsxs94(
9917
- Box46,
10189
+ /* @__PURE__ */ jsxs95(
10190
+ Box48,
9918
10191
  {
9919
10192
  sx: {
9920
10193
  py: 1,
@@ -9925,8 +10198,8 @@ var TableDesktopToolbar = ({
9925
10198
  background: isBulkChangesMode ? colors.neutral150 : void 0
9926
10199
  },
9927
10200
  children: [
9928
- /* @__PURE__ */ jsxs94(
9929
- Box46,
10201
+ /* @__PURE__ */ jsxs95(
10202
+ Box48,
9930
10203
  {
9931
10204
  sx: {
9932
10205
  py: 1,
@@ -9936,20 +10209,20 @@ var TableDesktopToolbar = ({
9936
10209
  whiteSpace: "nowrap"
9937
10210
  },
9938
10211
  children: [
9939
- toolbarLabel ? /* @__PURE__ */ jsxs94(Fragment17, { children: [
9940
- /* @__PURE__ */ jsx139(Typography36, { variant: "subtitle2", color: "textSecondary", children: toolbarLabel }),
9941
- /* @__PURE__ */ jsx139(Divider11, { orientation: "vertical", sx: { height: 0.75, py: 2.5 } })
10212
+ toolbarLabel ? /* @__PURE__ */ jsxs95(Fragment17, { children: [
10213
+ /* @__PURE__ */ jsx141(Typography36, { variant: "subtitle2", color: "textSecondary", children: toolbarLabel }),
10214
+ /* @__PURE__ */ jsx141(Divider11, { orientation: "vertical", sx: { height: 0.75, py: 2.5 } })
9942
10215
  ] }) : null,
9943
- renderBulkChangesDialog && refetchData ? /* @__PURE__ */ jsx139(
10216
+ renderBulkChangesDialog && refetchData ? /* @__PURE__ */ jsx141(
9944
10217
  Tooltip13,
9945
10218
  {
9946
10219
  title: disableBulkChangesMode ? "Access denied, you don\u2019t have permission to use this feature." : "",
9947
- children: /* @__PURE__ */ jsx139(
10220
+ children: /* @__PURE__ */ jsx141(
9948
10221
  FormControlLabel7,
9949
10222
  {
9950
10223
  label: "Bulk Changes Mode",
9951
10224
  disabled: disableBulkChangesMode || !visibleEditableColumns.length,
9952
- control: /* @__PURE__ */ jsx139(
10225
+ control: /* @__PURE__ */ jsx141(
9953
10226
  Switch2,
9954
10227
  {
9955
10228
  size: "small",
@@ -9964,17 +10237,17 @@ var TableDesktopToolbar = ({
9964
10237
  ]
9965
10238
  }
9966
10239
  ),
9967
- isScrollable && /* @__PURE__ */ jsx139(
10240
+ isScrollable && /* @__PURE__ */ jsx141(
9968
10241
  IconButton7,
9969
10242
  {
9970
10243
  "aria-label": "scroll-left",
9971
10244
  sx: { padding: 0, alignSelf: "center" },
9972
10245
  onClick: () => scroll("left"),
9973
- children: /* @__PURE__ */ jsx139(KeyboardArrowLeft2, {})
10246
+ children: /* @__PURE__ */ jsx141(KeyboardArrowLeft2, {})
9974
10247
  }
9975
10248
  ),
9976
- /* @__PURE__ */ jsx139(
9977
- Box46,
10249
+ /* @__PURE__ */ jsx141(
10250
+ Box48,
9978
10251
  {
9979
10252
  ref: scrollRef,
9980
10253
  sx: {
@@ -9995,11 +10268,11 @@ var TableDesktopToolbar = ({
9995
10268
  if (bulkUpdateDisabled) {
9996
10269
  return null;
9997
10270
  }
9998
- return editableCellType && /* @__PURE__ */ jsx139(
9999
- Box46,
10271
+ return editableCellType && /* @__PURE__ */ jsx141(
10272
+ Box48,
10000
10273
  {
10001
10274
  sx: { width, flex: "0 0 auto" },
10002
- children: /* @__PURE__ */ jsx139(
10275
+ children: /* @__PURE__ */ jsx141(
10003
10276
  TableDesktopEditableField,
10004
10277
  {
10005
10278
  headCell,
@@ -10015,17 +10288,17 @@ var TableDesktopToolbar = ({
10015
10288
  }) : null
10016
10289
  }
10017
10290
  ),
10018
- isScrollable && /* @__PURE__ */ jsx139(
10291
+ isScrollable && /* @__PURE__ */ jsx141(
10019
10292
  IconButton7,
10020
10293
  {
10021
10294
  "aria-label": "scroll-right",
10022
10295
  sx: { p: 0, alignSelf: "center" },
10023
10296
  onClick: () => scroll("right"),
10024
- children: /* @__PURE__ */ jsx139(KeyboardArrowRight2, {})
10297
+ children: /* @__PURE__ */ jsx141(KeyboardArrowRight2, {})
10025
10298
  }
10026
10299
  ),
10027
- isBulkChangesMode ? /* @__PURE__ */ jsxs94(Fragment17, { children: [
10028
- /* @__PURE__ */ jsx139(
10300
+ isBulkChangesMode ? /* @__PURE__ */ jsxs95(Fragment17, { children: [
10301
+ /* @__PURE__ */ jsx141(
10029
10302
  Button19,
10030
10303
  {
10031
10304
  variant: "outlined",
@@ -10038,7 +10311,7 @@ var TableDesktopToolbar = ({
10038
10311
  children: "RESET"
10039
10312
  }
10040
10313
  ),
10041
- /* @__PURE__ */ jsx139(
10314
+ /* @__PURE__ */ jsx141(
10042
10315
  Button19,
10043
10316
  {
10044
10317
  variant: "contained",
@@ -10049,26 +10322,26 @@ var TableDesktopToolbar = ({
10049
10322
  children: "APPLY"
10050
10323
  }
10051
10324
  )
10052
- ] }) : /* @__PURE__ */ jsxs94(Box46, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
10325
+ ] }) : /* @__PURE__ */ jsxs95(Box48, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
10053
10326
  renderInfoIcons,
10054
- renderExportCsvDialog ? /* @__PURE__ */ jsx139(Tooltip13, { title: "Download List", children: /* @__PURE__ */ jsx139("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx139(
10327
+ renderExportCsvDialog ? /* @__PURE__ */ jsx141(Tooltip13, { title: "Download List", children: /* @__PURE__ */ jsx141("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx141(
10055
10328
  IconButton7,
10056
10329
  {
10057
10330
  disableRipple: true,
10058
10331
  disabled: isDataEmpty,
10059
10332
  "aria-label": "export-csv-button",
10060
10333
  onClick: () => setIsExportCsvDialogOpen(true),
10061
- children: /* @__PURE__ */ jsx139(Download, { fill: colors.neutral750 })
10334
+ children: /* @__PURE__ */ jsx141(Download, { fill: colors.neutral750 })
10062
10335
  }
10063
10336
  ) }) }) : null,
10064
- renderTableColumnConfigurationMenu ? /* @__PURE__ */ jsx139(Tooltip13, { title: "Table Column Configuration", children: /* @__PURE__ */ jsx139(
10337
+ renderTableColumnConfigurationMenu ? /* @__PURE__ */ jsx141(Tooltip13, { title: "Table Column Configuration", children: /* @__PURE__ */ jsx141(
10065
10338
  IconButton7,
10066
10339
  {
10067
10340
  disableRipple: true,
10068
10341
  "aria-label": "table-column-config-button",
10069
10342
  ref: tableToolbarMenuButtonRef,
10070
10343
  onClick: onClickToolbarMenuOpen,
10071
- children: /* @__PURE__ */ jsx139(IconTableEdit_default, { fill: colors.neutral750 })
10344
+ children: /* @__PURE__ */ jsx141(IconTableEdit_default, { fill: colors.neutral750 })
10072
10345
  }
10073
10346
  ) }) : null
10074
10347
  ] })
@@ -10101,11 +10374,11 @@ var TableDesktopToolbar = ({
10101
10374
  };
10102
10375
 
10103
10376
  // src/components/TableHeader/TableHeader.tsx
10104
- import { memo as memo21, useEffect as useEffect16, useState as useState26 } from "react";
10377
+ import { memo as memo23, useEffect as useEffect17, useState as useState27 } from "react";
10105
10378
  import ImportExportIcon from "@mui/icons-material/ImportExport";
10106
10379
  import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
10107
10380
  import { makeStyles as makeStyles46 } from "tss-react/mui";
10108
- import { jsx as jsx140 } from "react/jsx-runtime";
10381
+ import { jsx as jsx142 } from "react/jsx-runtime";
10109
10382
  var useStyles46 = makeStyles46()(() => ({
10110
10383
  sortLabel: {
10111
10384
  "& .MuiTableSortLabel-icon": {
@@ -10114,9 +10387,9 @@ var useStyles46 = makeStyles46()(() => ({
10114
10387
  }
10115
10388
  }));
10116
10389
  var TableHeader = ({ cells, onSort = null }) => {
10117
- const [sortableCells, setSortableCells] = useState26([]);
10390
+ const [sortableCells, setSortableCells] = useState27([]);
10118
10391
  const { classes } = useStyles46();
10119
- useEffect16(() => {
10392
+ useEffect17(() => {
10120
10393
  setSortableCells(cells);
10121
10394
  }, []);
10122
10395
  const getNewSortDirection = (direction) => {
@@ -10150,7 +10423,7 @@ var TableHeader = ({ cells, onSort = null }) => {
10150
10423
  });
10151
10424
  setSortableCells(sortedCells);
10152
10425
  };
10153
- return /* @__PURE__ */ jsx140(TableHead3, { children: /* @__PURE__ */ jsx140(TableRow6, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx140(TableCell7, { children: cell.isSortable ? /* @__PURE__ */ jsx140(
10426
+ return /* @__PURE__ */ jsx142(TableHead3, { children: /* @__PURE__ */ jsx142(TableRow6, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx142(TableCell7, { children: cell.isSortable ? /* @__PURE__ */ jsx142(
10154
10427
  TableSortLabel3,
10155
10428
  {
10156
10429
  className: classes.sortLabel,
@@ -10161,12 +10434,12 @@ var TableHeader = ({ cells, onSort = null }) => {
10161
10434
  }
10162
10435
  ) : cell.label }, cell.label || key)) }) });
10163
10436
  };
10164
- var TableHeader_default = memo21(TableHeader);
10437
+ var TableHeader_default = memo23(TableHeader);
10165
10438
 
10166
10439
  // src/components/TextDivider/TextDivider.tsx
10167
- import { Box as Box47, Typography as Typography37, Divider as Divider12, Button as Button20 } from "@mui/material";
10440
+ import { Box as Box49, Typography as Typography37, Divider as Divider12, Button as Button20 } from "@mui/material";
10168
10441
  import { makeStyles as makeStyles47 } from "tss-react/mui";
10169
- import { jsx as jsx141, jsxs as jsxs95 } from "react/jsx-runtime";
10442
+ import { jsx as jsx143, jsxs as jsxs96 } from "react/jsx-runtime";
10170
10443
  var useStyles47 = makeStyles47()(() => ({
10171
10444
  icon: {
10172
10445
  fontSize: 20
@@ -10203,18 +10476,18 @@ var TextDivider = ({
10203
10476
  }) => {
10204
10477
  const { classes } = useStyles47();
10205
10478
  const iconColor = color ?? colors.neutral900;
10206
- return /* @__PURE__ */ jsxs95(
10207
- Box47,
10479
+ return /* @__PURE__ */ jsxs96(
10480
+ Box49,
10208
10481
  {
10209
10482
  display: "flex",
10210
10483
  alignItems: "center",
10211
10484
  justifyContent: "space-between",
10212
10485
  className: classes.container,
10213
10486
  children: [
10214
- /* @__PURE__ */ jsx141(Divider12, { className: classes.leftDivider }),
10215
- /* @__PURE__ */ jsx141(Button20, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs95(Box47, { className: classes.center, children: [
10216
- Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx141(Icon2, { className: classes.icon, style: { color: iconColor } }),
10217
- /* @__PURE__ */ jsx141(
10487
+ /* @__PURE__ */ jsx143(Divider12, { className: classes.leftDivider }),
10488
+ /* @__PURE__ */ jsx143(Button20, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs96(Box49, { className: classes.center, children: [
10489
+ Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx143(Icon2, { className: classes.icon, style: { color: iconColor } }),
10490
+ /* @__PURE__ */ jsx143(
10218
10491
  Typography37,
10219
10492
  {
10220
10493
  color: "textSecondary",
@@ -10223,9 +10496,9 @@ var TextDivider = ({
10223
10496
  children: title
10224
10497
  }
10225
10498
  ),
10226
- Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx141(Icon2, { className: classes.icon, style: { color: iconColor } })
10499
+ Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx143(Icon2, { className: classes.icon, style: { color: iconColor } })
10227
10500
  ] }) }),
10228
- /* @__PURE__ */ jsx141(Divider12, { className: classes.rightDivider })
10501
+ /* @__PURE__ */ jsx143(Divider12, { className: classes.rightDivider })
10229
10502
  ]
10230
10503
  }
10231
10504
  );
@@ -10237,7 +10510,7 @@ import { DateRangePicker } from "react-dates";
10237
10510
  import { makeStyles as makeStyles48 } from "tss-react/mui";
10238
10511
  import "react-dates/initialize";
10239
10512
  import "react-dates/lib/css/_datepicker.css";
10240
- import { jsx as jsx142 } from "react/jsx-runtime";
10513
+ import { jsx as jsx144 } from "react/jsx-runtime";
10241
10514
  var useStyles48 = makeStyles48()((theme) => ({
10242
10515
  wrapper: {
10243
10516
  "& .DateRangePicker": {
@@ -10333,15 +10606,15 @@ var ThemedDateRangePicker = ({
10333
10606
  ...props
10334
10607
  }) => {
10335
10608
  const { classes, cx } = useStyles48();
10336
- return /* @__PURE__ */ jsx142("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx142(DateRangePicker, { ...props }) });
10609
+ return /* @__PURE__ */ jsx144("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx144(DateRangePicker, { ...props }) });
10337
10610
  };
10338
10611
  var ThemedDateRangePicker_default = ThemedDateRangePicker;
10339
10612
 
10340
10613
  // src/components/TheToolbar/TheToolbar.tsx
10341
- import { memo as memo22 } from "react";
10342
- import { AppBar, Box as Box48, Toolbar } from "@mui/material";
10614
+ import { memo as memo24 } from "react";
10615
+ import { AppBar, Box as Box50, Toolbar } from "@mui/material";
10343
10616
  import { makeStyles as makeStyles49 } from "tss-react/mui";
10344
- import { jsx as jsx143, jsxs as jsxs96 } from "react/jsx-runtime";
10617
+ import { jsx as jsx145, jsxs as jsxs97 } from "react/jsx-runtime";
10345
10618
  var useStyles49 = makeStyles49()((theme) => ({
10346
10619
  menuButton: {
10347
10620
  color: theme.palette.primary.contrastText
@@ -10358,13 +10631,14 @@ var TheToolbar = ({
10358
10631
  handleOpen,
10359
10632
  LeftDrawer,
10360
10633
  leftSection,
10634
+ centerSection,
10361
10635
  rightSection,
10362
10636
  isAuthenticated = true
10363
10637
  }) => {
10364
10638
  const { classes } = useStyles49();
10365
- return /* @__PURE__ */ jsxs96(Box48, { children: [
10366
- /* @__PURE__ */ jsx143(AppBar, { children: /* @__PURE__ */ jsxs96(Toolbar, { className: classes.topBar, children: [
10367
- isAuthenticated ? /* @__PURE__ */ jsx143(
10639
+ return /* @__PURE__ */ jsxs97(Box50, { children: [
10640
+ /* @__PURE__ */ jsx145(AppBar, { children: /* @__PURE__ */ jsxs97(Toolbar, { className: classes.topBar, children: [
10641
+ isAuthenticated ? /* @__PURE__ */ jsx145(
10368
10642
  RoundButton_default,
10369
10643
  {
10370
10644
  className: classes.menuButton,
@@ -10373,7 +10647,7 @@ var TheToolbar = ({
10373
10647
  onClick: handleOpen
10374
10648
  }
10375
10649
  ) : null,
10376
- /* @__PURE__ */ jsx143(
10650
+ /* @__PURE__ */ jsx145(
10377
10651
  CompanyLogo_default,
10378
10652
  {
10379
10653
  size: "small",
@@ -10382,30 +10656,42 @@ var TheToolbar = ({
10382
10656
  imageLogoLightSmall
10383
10657
  }
10384
10658
  ),
10385
- /* @__PURE__ */ jsx143(Box48, { ml: 2, children: leftSection }),
10386
- /* @__PURE__ */ jsx143(Box48, { ml: "auto", children: rightSection })
10659
+ /* @__PURE__ */ jsx145(Box50, { ml: 2, children: leftSection }),
10660
+ centerSection ? /* @__PURE__ */ jsx145(
10661
+ Box50,
10662
+ {
10663
+ sx: {
10664
+ flexGrow: 1,
10665
+ minWidth: 0,
10666
+ display: "flex",
10667
+ justifyContent: "center"
10668
+ },
10669
+ children: centerSection
10670
+ }
10671
+ ) : /* @__PURE__ */ jsx145(Box50, { sx: { flexGrow: 1 } }),
10672
+ /* @__PURE__ */ jsx145(Box50, { children: rightSection })
10387
10673
  ] }) }),
10388
10674
  LeftDrawer
10389
10675
  ] });
10390
10676
  };
10391
- var TheToolbar_default = memo22(TheToolbar);
10677
+ var TheToolbar_default = memo24(TheToolbar);
10392
10678
 
10393
10679
  // src/components/ToastMessage/ToastMessage.tsx
10394
10680
  import { Alert as MuiAlert, Snackbar } from "@mui/material";
10395
- import { jsx as jsx144 } from "react/jsx-runtime";
10681
+ import { jsx as jsx146 } from "react/jsx-runtime";
10396
10682
  var ToastMessage = ({
10397
10683
  toastType,
10398
10684
  toastMessage,
10399
10685
  open,
10400
10686
  onClose
10401
- }) => /* @__PURE__ */ jsx144(
10687
+ }) => /* @__PURE__ */ jsx146(
10402
10688
  Snackbar,
10403
10689
  {
10404
10690
  open,
10405
10691
  autoHideDuration: 3e3,
10406
10692
  onClose,
10407
10693
  anchorOrigin: { vertical: "top", horizontal: "right" },
10408
- children: /* @__PURE__ */ jsx144(
10694
+ children: /* @__PURE__ */ jsx146(
10409
10695
  MuiAlert,
10410
10696
  {
10411
10697
  elevation: 6,
@@ -10436,13 +10722,13 @@ import {
10436
10722
  Typography as Typography38,
10437
10723
  Dialog as Dialog5,
10438
10724
  Backdrop,
10439
- Box as Box49,
10725
+ Box as Box51,
10440
10726
  Divider as Divider13,
10441
- Paper as Paper13,
10727
+ Paper as Paper14,
10442
10728
  Fade as Fade2
10443
10729
  } from "@mui/material";
10444
10730
  import { makeStyles as makeStyles50 } from "tss-react/mui";
10445
- import { jsx as jsx145, jsxs as jsxs97 } from "react/jsx-runtime";
10731
+ import { jsx as jsx147, jsxs as jsxs98 } from "react/jsx-runtime";
10446
10732
  var useStyles50 = makeStyles50()((theme) => ({
10447
10733
  paper: {
10448
10734
  padding: theme.spacing(2)
@@ -10472,7 +10758,7 @@ var TwoButtonDialog = ({
10472
10758
  cancelButton
10473
10759
  }) => {
10474
10760
  const { classes } = useStyles50();
10475
- return /* @__PURE__ */ jsx145(
10761
+ return /* @__PURE__ */ jsx147(
10476
10762
  Dialog5,
10477
10763
  {
10478
10764
  open,
@@ -10482,10 +10768,10 @@ var TwoButtonDialog = ({
10482
10768
  closeAfterTransition: true,
10483
10769
  BackdropComponent: Backdrop,
10484
10770
  BackdropProps: { timeout: 500 },
10485
- children: /* @__PURE__ */ jsx145(Fade2, { in: open, children: /* @__PURE__ */ jsxs97(Paper13, { className: classes.paper, children: [
10486
- /* @__PURE__ */ jsxs97(Box49, { className: classes.mb, children: [
10487
- /* @__PURE__ */ jsx145(Typography38, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx145(
10488
- Box49,
10771
+ children: /* @__PURE__ */ jsx147(Fade2, { in: open, children: /* @__PURE__ */ jsxs98(Paper14, { className: classes.paper, children: [
10772
+ /* @__PURE__ */ jsxs98(Box51, { className: classes.mb, children: [
10773
+ /* @__PURE__ */ jsx147(Typography38, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx147(
10774
+ Box51,
10489
10775
  {
10490
10776
  sx: {
10491
10777
  fontWeight: 600
@@ -10493,23 +10779,23 @@ var TwoButtonDialog = ({
10493
10779
  children: title
10494
10780
  }
10495
10781
  ) }),
10496
- /* @__PURE__ */ jsxs97(
10497
- Box49,
10782
+ /* @__PURE__ */ jsxs98(
10783
+ Box51,
10498
10784
  {
10499
10785
  className: classes.mt,
10500
10786
  sx: {
10501
10787
  fontWeight: 600
10502
10788
  },
10503
10789
  children: [
10504
- subtitle1 && /* @__PURE__ */ jsx145(Typography38, { variant: "subtitle1", children: subtitle1 }),
10505
- subtitle2 && /* @__PURE__ */ jsx145(Typography38, { variant: "subtitle1", children: subtitle2 })
10790
+ subtitle1 && /* @__PURE__ */ jsx147(Typography38, { variant: "subtitle1", children: subtitle1 }),
10791
+ subtitle2 && /* @__PURE__ */ jsx147(Typography38, { variant: "subtitle1", children: subtitle2 })
10506
10792
  ]
10507
10793
  }
10508
10794
  )
10509
10795
  ] }),
10510
- /* @__PURE__ */ jsx145(Divider13, {}),
10511
- /* @__PURE__ */ jsxs97(Box49, { className: classes.buttonContainer, children: [
10512
- /* @__PURE__ */ jsx145(
10796
+ /* @__PURE__ */ jsx147(Divider13, {}),
10797
+ /* @__PURE__ */ jsxs98(Box51, { className: classes.buttonContainer, children: [
10798
+ /* @__PURE__ */ jsx147(
10513
10799
  FilledButton_default,
10514
10800
  {
10515
10801
  copy: cancelLabel,
@@ -10522,7 +10808,7 @@ var TwoButtonDialog = ({
10522
10808
  }
10523
10809
  }
10524
10810
  ),
10525
- /* @__PURE__ */ jsx145(
10811
+ /* @__PURE__ */ jsx147(
10526
10812
  FilledButton_default,
10527
10813
  {
10528
10814
  color: "primary",
@@ -10531,7 +10817,7 @@ var TwoButtonDialog = ({
10531
10817
  }
10532
10818
  )
10533
10819
  ] }),
10534
- /* @__PURE__ */ jsx145(Loading_default, { isLoading: dialogLoading })
10820
+ /* @__PURE__ */ jsx147(Loading_default, { isLoading: dialogLoading })
10535
10821
  ] }) })
10536
10822
  }
10537
10823
  );
@@ -10539,11 +10825,11 @@ var TwoButtonDialog = ({
10539
10825
  var TwoButtonDialog_default = TwoButtonDialog;
10540
10826
 
10541
10827
  // src/components/UserBust/UserBust.tsx
10542
- import { memo as memo23 } from "react";
10828
+ import { memo as memo25 } from "react";
10543
10829
  import { Avatar as Avatar2, Typography as Typography39 } from "@mui/material";
10544
- import { jsx as jsx146, jsxs as jsxs98 } from "react/jsx-runtime";
10545
- var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs98("div", { children: [
10546
- /* @__PURE__ */ jsx146(
10830
+ import { jsx as jsx148, jsxs as jsxs99 } from "react/jsx-runtime";
10831
+ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs99("div", { children: [
10832
+ /* @__PURE__ */ jsx148(
10547
10833
  Avatar2,
10548
10834
  {
10549
10835
  src: user.profile_picture,
@@ -10551,18 +10837,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs9
10551
10837
  style: { width: avatarProps.width, height: avatarProps.height }
10552
10838
  }
10553
10839
  ),
10554
- /* @__PURE__ */ jsxs98("div", { style: { paddingTop: 16 }, children: [
10555
- /* @__PURE__ */ jsx146(Typography39, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
10556
- /* @__PURE__ */ jsx146(Typography39, { ...typographyProps.username, children: user.username })
10840
+ /* @__PURE__ */ jsxs99("div", { style: { paddingTop: 16 }, children: [
10841
+ /* @__PURE__ */ jsx148(Typography39, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
10842
+ /* @__PURE__ */ jsx148(Typography39, { ...typographyProps.username, children: user.username })
10557
10843
  ] })
10558
10844
  ] });
10559
- var UserBust_default = memo23(UserBust);
10845
+ var UserBust_default = memo25(UserBust);
10560
10846
 
10561
10847
  // src/components/icons/IconChart.tsx
10562
- import { jsx as jsx147 } from "react/jsx-runtime";
10848
+ import { jsx as jsx149 } from "react/jsx-runtime";
10563
10849
  var SvgIconChart = (props) => {
10564
10850
  const { fill } = props;
10565
- return /* @__PURE__ */ jsx147(
10851
+ return /* @__PURE__ */ jsx149(
10566
10852
  "svg",
10567
10853
  {
10568
10854
  width: "20",
@@ -10571,7 +10857,7 @@ var SvgIconChart = (props) => {
10571
10857
  fill: "none",
10572
10858
  xmlns: "http://www.w3.org/2000/svg",
10573
10859
  ...props,
10574
- children: /* @__PURE__ */ jsx147(
10860
+ children: /* @__PURE__ */ jsx149(
10575
10861
  "path",
10576
10862
  {
10577
10863
  d: "M2.49967 11.6667L2.91634 11.725L6.72467 7.91667C6.57467 7.375 6.71634 6.75833 7.15801 6.325C7.80801 5.66667 8.85801 5.66667 9.50801 6.325C9.94967 6.75833 10.0913 7.375 9.94134 7.91667L12.083 10.0583L12.4997 10C12.6497 10 12.7913 10 12.9163 10.0583L15.8913 7.08333C15.833 6.95833 15.833 6.81667 15.833 6.66667C15.833 6.22464 16.0086 5.80072 16.3212 5.48816C16.6337 5.17559 17.0576 5 17.4997 5C17.9417 5 18.3656 5.17559 18.6782 5.48816C18.9907 5.80072 19.1663 6.22464 19.1663 6.66667C19.1663 7.10869 18.9907 7.53262 18.6782 7.84518C18.3656 8.15774 17.9417 8.33333 17.4997 8.33333C17.3497 8.33333 17.208 8.33333 17.083 8.275L14.108 11.25C14.1663 11.375 14.1663 11.5167 14.1663 11.6667C14.1663 12.1087 13.9907 12.5326 13.6782 12.8452C13.3656 13.1577 12.9417 13.3333 12.4997 13.3333C12.0576 13.3333 11.6337 13.1577 11.3212 12.8452C11.0086 12.5326 10.833 12.1087 10.833 11.6667L10.8913 11.25L8.74967 9.10833C8.48301 9.16667 8.18301 9.16667 7.91634 9.10833L4.10801 12.9167L4.16634 13.3333C4.16634 13.7754 3.99075 14.1993 3.67819 14.5118C3.36563 14.8244 2.9417 15 2.49967 15C2.05765 15 1.63372 14.8244 1.32116 14.5118C1.0086 14.1993 0.833008 13.7754 0.833008 13.3333C0.833008 12.8913 1.0086 12.4674 1.32116 12.1548C1.63372 11.8423 2.05765 11.6667 2.49967 11.6667Z",
@@ -10618,6 +10904,8 @@ export {
10618
10904
  FilterOptionsCheckboxes,
10619
10905
  FilterSimpleSelector_default as FilterSimpleSelector,
10620
10906
  FixedFooter_default as FixedFooter,
10907
+ GlobalSearch_default as GlobalSearch,
10908
+ GlobalSearchTrigger_default as GlobalSearchTrigger,
10621
10909
  GooglePlacesAddressAutocomplete,
10622
10910
  HashtagInput,
10623
10911
  Header_default as Header,