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

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,283 +5750,10 @@ 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
-
6026
5753
  // src/components/Header/Header.tsx
6027
- import { Paper as Paper4 } from "@mui/material";
5754
+ import { Paper as Paper3 } from "@mui/material";
6028
5755
  import { makeStyles as makeStyles28 } from "tss-react/mui";
6029
- import { jsx as jsx99, jsxs as jsxs62 } from "react/jsx-runtime";
5756
+ import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
6030
5757
  var useStyles28 = makeStyles28()((theme) => ({
6031
5758
  container: {
6032
5759
  margin: theme.spacing(1)
@@ -6049,16 +5776,16 @@ var Header = ({
6049
5776
  wrappedHeader = false
6050
5777
  }) => {
6051
5778
  const { classes, cx } = useStyles28();
6052
- return /* @__PURE__ */ jsx99(
6053
- Paper4,
5779
+ return /* @__PURE__ */ jsx97(
5780
+ Paper3,
6054
5781
  {
6055
5782
  className: cx({
6056
5783
  [classes.container]: !wrappedHeader
6057
5784
  }),
6058
5785
  elevation: wrappedHeader ? 0 : 1,
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
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
6062
5789
  ] })
6063
5790
  }
6064
5791
  );
@@ -6068,20 +5795,20 @@ var Header_default = Header;
6068
5795
  // src/components/List/List.tsx
6069
5796
  import { FixedSizeList } from "react-window";
6070
5797
  import { ListItem, ListItemText as ListItemText3 } from "@mui/material";
6071
- import { Fragment as Fragment8, jsx as jsx100, jsxs as jsxs63 } from "react/jsx-runtime";
5798
+ import { Fragment as Fragment8, jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
6072
5799
  var ListHeader = (props) => {
6073
5800
  const headers = props.headers || [];
6074
- return /* @__PURE__ */ jsx100(ListItem, { children: headers.map((header, i) => (
5801
+ return /* @__PURE__ */ jsx98(ListItem, { children: headers.map((header, i) => (
6075
5802
  // eslint-disable-next-line react/no-array-index-key
6076
- /* @__PURE__ */ jsx100(ListItemText3, { primary: header.text }, i)
5803
+ /* @__PURE__ */ jsx98(ListItemText3, { primary: header.text }, i)
6077
5804
  )) });
6078
5805
  };
6079
5806
  function VirtualizedList(props) {
6080
5807
  const { innerWidth, innerHeight } = window;
6081
5808
  const { headers, items, renderItem } = props;
6082
- return /* @__PURE__ */ jsxs63(Fragment8, { children: [
6083
- /* @__PURE__ */ jsx100(ListHeader, { headers }),
6084
- /* @__PURE__ */ jsx100(
5809
+ return /* @__PURE__ */ jsxs62(Fragment8, { children: [
5810
+ /* @__PURE__ */ jsx98(ListHeader, { headers }),
5811
+ /* @__PURE__ */ jsx98(
6085
5812
  FixedSizeList,
6086
5813
  {
6087
5814
  height: innerHeight - 150,
@@ -6097,11 +5824,11 @@ function VirtualizedList(props) {
6097
5824
 
6098
5825
  // src/components/LocationsSectionInfo/LocationsSectionInfo.tsx
6099
5826
  import { Fragment as Fragment9 } from "react";
6100
- import { Box as Box31, Chip as Chip4, Typography as Typography20 } from "@mui/material";
5827
+ import { Box as Box29, Chip as Chip4, Typography as Typography20 } from "@mui/material";
6101
5828
  import { purple } from "@mui/material/colors";
6102
5829
  import classNames2 from "classnames";
6103
5830
  import { makeStyles as makeStyles29 } from "tss-react/mui";
6104
- import { jsx as jsx101, jsxs as jsxs64 } from "react/jsx-runtime";
5831
+ import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
6105
5832
  var useStyles29 = makeStyles29()(() => ({
6106
5833
  container: {
6107
5834
  display: "flex",
@@ -6147,8 +5874,8 @@ var LocationsSectionInfo = ({
6147
5874
  }
6148
5875
  return "STOCK";
6149
5876
  };
6150
- return /* @__PURE__ */ jsxs64(Box31, { className: classes.container, children: [
6151
- /* @__PURE__ */ jsx101(
5877
+ return /* @__PURE__ */ jsxs63(Box29, { className: classes.container, children: [
5878
+ /* @__PURE__ */ jsx99(
6152
5879
  Chip4,
6153
5880
  {
6154
5881
  className: classNames2(classes.defaultChip, {
@@ -6159,20 +5886,20 @@ var LocationsSectionInfo = ({
6159
5886
  label: getLocationLabel()
6160
5887
  }
6161
5888
  ),
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 })
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 })
6166
5893
  ] }, loc))
6167
5894
  ] });
6168
5895
  };
6169
5896
  var LocationsSectionInfo_default = LocationsSectionInfo;
6170
5897
 
6171
5898
  // src/components/Notes/Notes.tsx
6172
- import { useEffect as useEffect6, useState as useState8 } from "react";
5899
+ import { useEffect as useEffect5, useState as useState7 } from "react";
6173
5900
  import { FormControl as FormControl4, Input, InputAdornment as InputAdornment3, InputLabel as InputLabel4 } from "@mui/material";
6174
5901
  import { makeStyles as makeStyles30 } from "tss-react/mui";
6175
- import { jsx as jsx102, jsxs as jsxs65 } from "react/jsx-runtime";
5902
+ import { jsx as jsx100, jsxs as jsxs64 } from "react/jsx-runtime";
6176
5903
  var useStyles30 = makeStyles30()((theme) => ({
6177
5904
  wrapper: {
6178
5905
  padding: theme.spacing(3),
@@ -6189,8 +5916,8 @@ var Notes2 = ({
6189
5916
  onChange,
6190
5917
  onClearNotes
6191
5918
  }) => {
6192
- const [notes, setNotes] = useState8("");
6193
- useEffect6(() => {
5919
+ const [notes, setNotes] = useState7("");
5920
+ useEffect5(() => {
6194
5921
  if (!initialNotes) {
6195
5922
  return;
6196
5923
  }
@@ -6215,13 +5942,13 @@ var Notes2 = ({
6215
5942
  }
6216
5943
  };
6217
5944
  const { classes } = useStyles30();
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(
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(
6221
5948
  Input,
6222
5949
  {
6223
5950
  disabled: isDisabled || isLoading,
6224
- endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ jsx102(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx102(
5951
+ endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ jsx100(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx100(
6225
5952
  RoundButton_default,
6226
5953
  {
6227
5954
  disabled: isLoading,
@@ -6247,8 +5974,8 @@ var Notes2 = ({
6247
5974
  var Notes_default = Notes2;
6248
5975
 
6249
5976
  // src/components/Numpad/Numpad.tsx
6250
- import { jsx as jsx103, jsxs as jsxs66 } from "react/jsx-runtime";
6251
- var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
5977
+ import { jsx as jsx101, jsxs as jsxs65 } from "react/jsx-runtime";
5978
+ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
6252
5979
  "div",
6253
5980
  {
6254
5981
  style: {
@@ -6260,9 +5987,9 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6260
5987
  padding: 8
6261
5988
  },
6262
5989
  children: [
6263
- /* @__PURE__ */ jsxs66("div", { children: [
6264
- /* @__PURE__ */ jsxs66("div", { children: [
6265
- /* @__PURE__ */ jsx103(
5990
+ /* @__PURE__ */ jsxs65("div", { children: [
5991
+ /* @__PURE__ */ jsxs65("div", { children: [
5992
+ /* @__PURE__ */ jsx101(
6266
5993
  RoundButton_default,
6267
5994
  {
6268
5995
  onClick: () => handleClick("1"),
@@ -6271,7 +5998,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6271
5998
  children: "1"
6272
5999
  }
6273
6000
  ),
6274
- /* @__PURE__ */ jsx103(
6001
+ /* @__PURE__ */ jsx101(
6275
6002
  RoundButton_default,
6276
6003
  {
6277
6004
  onClick: () => handleClick("2"),
@@ -6280,7 +6007,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6280
6007
  children: "2"
6281
6008
  }
6282
6009
  ),
6283
- /* @__PURE__ */ jsx103(
6010
+ /* @__PURE__ */ jsx101(
6284
6011
  RoundButton_default,
6285
6012
  {
6286
6013
  onClick: () => handleClick("3"),
@@ -6290,8 +6017,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6290
6017
  }
6291
6018
  )
6292
6019
  ] }),
6293
- /* @__PURE__ */ jsxs66("div", { children: [
6294
- /* @__PURE__ */ jsx103(
6020
+ /* @__PURE__ */ jsxs65("div", { children: [
6021
+ /* @__PURE__ */ jsx101(
6295
6022
  RoundButton_default,
6296
6023
  {
6297
6024
  onClick: () => handleClick("4"),
@@ -6300,7 +6027,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6300
6027
  children: "4"
6301
6028
  }
6302
6029
  ),
6303
- /* @__PURE__ */ jsx103(
6030
+ /* @__PURE__ */ jsx101(
6304
6031
  RoundButton_default,
6305
6032
  {
6306
6033
  onClick: () => handleClick("5"),
@@ -6309,7 +6036,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6309
6036
  children: "5"
6310
6037
  }
6311
6038
  ),
6312
- /* @__PURE__ */ jsx103(
6039
+ /* @__PURE__ */ jsx101(
6313
6040
  RoundButton_default,
6314
6041
  {
6315
6042
  onClick: () => handleClick("6"),
@@ -6319,8 +6046,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6319
6046
  }
6320
6047
  )
6321
6048
  ] }),
6322
- /* @__PURE__ */ jsxs66("div", { children: [
6323
- /* @__PURE__ */ jsx103(
6049
+ /* @__PURE__ */ jsxs65("div", { children: [
6050
+ /* @__PURE__ */ jsx101(
6324
6051
  RoundButton_default,
6325
6052
  {
6326
6053
  onClick: () => handleClick("7"),
@@ -6329,7 +6056,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6329
6056
  children: "7"
6330
6057
  }
6331
6058
  ),
6332
- /* @__PURE__ */ jsx103(
6059
+ /* @__PURE__ */ jsx101(
6333
6060
  RoundButton_default,
6334
6061
  {
6335
6062
  onClick: () => handleClick("8"),
@@ -6338,7 +6065,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6338
6065
  children: "8"
6339
6066
  }
6340
6067
  ),
6341
- /* @__PURE__ */ jsx103(
6068
+ /* @__PURE__ */ jsx101(
6342
6069
  RoundButton_default,
6343
6070
  {
6344
6071
  onClick: () => handleClick("9"),
@@ -6348,8 +6075,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6348
6075
  }
6349
6076
  )
6350
6077
  ] }),
6351
- /* @__PURE__ */ jsxs66("div", { children: [
6352
- /* @__PURE__ */ jsx103(
6078
+ /* @__PURE__ */ jsxs65("div", { children: [
6079
+ /* @__PURE__ */ jsx101(
6353
6080
  RoundButton_default,
6354
6081
  {
6355
6082
  onClick: () => handleClick("0"),
@@ -6358,7 +6085,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6358
6085
  children: "0"
6359
6086
  }
6360
6087
  ),
6361
- /* @__PURE__ */ jsx103(
6088
+ /* @__PURE__ */ jsx101(
6362
6089
  RoundButton_default,
6363
6090
  {
6364
6091
  onClick: () => handleClick("."),
@@ -6369,7 +6096,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6369
6096
  )
6370
6097
  ] })
6371
6098
  ] }),
6372
- /* @__PURE__ */ jsx103(
6099
+ /* @__PURE__ */ jsx101(
6373
6100
  "div",
6374
6101
  {
6375
6102
  style: {
@@ -6378,7 +6105,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6378
6105
  justifyContent: "space-between",
6379
6106
  borderLeft: `1px solid ${colors.neutral250}`
6380
6107
  },
6381
- children: /* @__PURE__ */ jsx103(
6108
+ children: /* @__PURE__ */ jsx101(
6382
6109
  RoundButton_default,
6383
6110
  {
6384
6111
  icon: "backspaceOutlined",
@@ -6395,10 +6122,10 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
6395
6122
  var Numpad_default = Numpad;
6396
6123
 
6397
6124
  // src/components/NumpadInput/NumpadInput.tsx
6398
- import { memo as memo16, useState as useState9 } from "react";
6125
+ import { memo as memo14, useState as useState8 } from "react";
6399
6126
  import { TextField as TextField6, Typography as Typography21 } from "@mui/material";
6400
6127
  import { makeStyles as makeStyles31 } from "tss-react/mui";
6401
- import { jsx as jsx104, jsxs as jsxs67 } from "react/jsx-runtime";
6128
+ import { jsx as jsx102, jsxs as jsxs66 } from "react/jsx-runtime";
6402
6129
  var useStyles31 = makeStyles31()(() => ({
6403
6130
  c_numpadinput__textfield: {
6404
6131
  "& .MuiInputLabel-outlined.MuiInputLabel-shrink": {
@@ -6425,7 +6152,7 @@ var useStyles31 = makeStyles31()(() => ({
6425
6152
  var NumpadInput = (props) => {
6426
6153
  const { handleNextClick, inputLabel, children } = props;
6427
6154
  const { classes } = useStyles31();
6428
- const [state, setState] = useState9("");
6155
+ const [state, setState] = useState8("");
6429
6156
  const handleNumpadClick = (value) => {
6430
6157
  setState(state + value);
6431
6158
  };
@@ -6435,13 +6162,13 @@ var NumpadInput = (props) => {
6435
6162
  function handleSubmit() {
6436
6163
  handleNextClick?.(state);
6437
6164
  }
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(
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(
6441
6168
  TextField6,
6442
6169
  {
6443
6170
  id: "outlined-basic",
6444
- label: /* @__PURE__ */ jsx104(Typography21, { style: { fontSize: "1.5rem" }, children: "Insert" }),
6171
+ label: /* @__PURE__ */ jsx102(Typography21, { style: { fontSize: "1.5rem" }, children: "Insert" }),
6445
6172
  value: state,
6446
6173
  variant: "outlined",
6447
6174
  autoFocus: true,
@@ -6456,27 +6183,27 @@ var NumpadInput = (props) => {
6456
6183
  ) }),
6457
6184
  children
6458
6185
  ] });
6459
- return /* @__PURE__ */ jsxs67("div", { children: [
6460
- /* @__PURE__ */ jsxs67("div", { className: classes.c_numpadinput__body, children: [
6186
+ return /* @__PURE__ */ jsxs66("div", { children: [
6187
+ /* @__PURE__ */ jsxs66("div", { className: classes.c_numpadinput__body, children: [
6461
6188
  children || DefaultInput,
6462
- /* @__PURE__ */ jsx104(Numpad_default, { handleClick: handleNumpadClick, handleUndo })
6189
+ /* @__PURE__ */ jsx102(Numpad_default, { handleClick: handleNumpadClick, handleUndo })
6463
6190
  ] }),
6464
- state ? /* @__PURE__ */ jsx104(
6191
+ state ? /* @__PURE__ */ jsx102(
6465
6192
  FilledButtonLg_default,
6466
6193
  {
6467
6194
  color: "primary",
6468
6195
  copy: "next",
6469
6196
  handleClick: handleSubmit
6470
6197
  }
6471
- ) : /* @__PURE__ */ jsx104(FilledButtonLg_default, { copy: "next", disabled: true })
6198
+ ) : /* @__PURE__ */ jsx102(FilledButtonLg_default, { copy: "next", disabled: true })
6472
6199
  ] });
6473
6200
  };
6474
- var NumpadInput_default = memo16(NumpadInput);
6201
+ var NumpadInput_default = memo14(NumpadInput);
6475
6202
 
6476
6203
  // src/components/NumpadPlus/NumpadPlus.tsx
6477
- import { Box as Box32 } from "@mui/material";
6204
+ import { Box as Box30 } from "@mui/material";
6478
6205
  import { makeStyles as makeStyles32 } from "tss-react/mui";
6479
- import { jsx as jsx105, jsxs as jsxs68 } from "react/jsx-runtime";
6206
+ import { jsx as jsx103, jsxs as jsxs67 } from "react/jsx-runtime";
6480
6207
  var useStyles32 = makeStyles32()(() => ({
6481
6208
  numpadContainer: {
6482
6209
  display: "flex",
@@ -6508,10 +6235,10 @@ var useStyles32 = makeStyles32()(() => ({
6508
6235
  }));
6509
6236
  var NumpadPlus = ({ handleClick, handleUndo }) => {
6510
6237
  const { classes: styles } = useStyles32();
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(
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(
6515
6242
  RoundButton_default,
6516
6243
  {
6517
6244
  onClick: () => handleClick("1"),
@@ -6520,7 +6247,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6520
6247
  children: "1"
6521
6248
  }
6522
6249
  ),
6523
- /* @__PURE__ */ jsx105(
6250
+ /* @__PURE__ */ jsx103(
6524
6251
  RoundButton_default,
6525
6252
  {
6526
6253
  onClick: () => handleClick("2"),
@@ -6529,7 +6256,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6529
6256
  children: "2"
6530
6257
  }
6531
6258
  ),
6532
- /* @__PURE__ */ jsx105(
6259
+ /* @__PURE__ */ jsx103(
6533
6260
  RoundButton_default,
6534
6261
  {
6535
6262
  onClick: () => handleClick("3"),
@@ -6539,8 +6266,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6539
6266
  }
6540
6267
  )
6541
6268
  ] }),
6542
- /* @__PURE__ */ jsxs68(Box32, { className: styles.numpadRow, children: [
6543
- /* @__PURE__ */ jsx105(
6269
+ /* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
6270
+ /* @__PURE__ */ jsx103(
6544
6271
  RoundButton_default,
6545
6272
  {
6546
6273
  onClick: () => handleClick("4"),
@@ -6549,7 +6276,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6549
6276
  children: "4"
6550
6277
  }
6551
6278
  ),
6552
- /* @__PURE__ */ jsx105(
6279
+ /* @__PURE__ */ jsx103(
6553
6280
  RoundButton_default,
6554
6281
  {
6555
6282
  onClick: () => handleClick("5"),
@@ -6558,7 +6285,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6558
6285
  children: "5"
6559
6286
  }
6560
6287
  ),
6561
- /* @__PURE__ */ jsx105(
6288
+ /* @__PURE__ */ jsx103(
6562
6289
  RoundButton_default,
6563
6290
  {
6564
6291
  onClick: () => handleClick("6"),
@@ -6568,8 +6295,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6568
6295
  }
6569
6296
  )
6570
6297
  ] }),
6571
- /* @__PURE__ */ jsxs68(Box32, { className: styles.numpadRow, children: [
6572
- /* @__PURE__ */ jsx105(
6298
+ /* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
6299
+ /* @__PURE__ */ jsx103(
6573
6300
  RoundButton_default,
6574
6301
  {
6575
6302
  onClick: () => handleClick("7"),
@@ -6578,7 +6305,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6578
6305
  children: "7"
6579
6306
  }
6580
6307
  ),
6581
- /* @__PURE__ */ jsx105(
6308
+ /* @__PURE__ */ jsx103(
6582
6309
  RoundButton_default,
6583
6310
  {
6584
6311
  onClick: () => handleClick("8"),
@@ -6587,7 +6314,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6587
6314
  children: "8"
6588
6315
  }
6589
6316
  ),
6590
- /* @__PURE__ */ jsx105(
6317
+ /* @__PURE__ */ jsx103(
6591
6318
  RoundButton_default,
6592
6319
  {
6593
6320
  onClick: () => handleClick("9"),
@@ -6597,8 +6324,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6597
6324
  }
6598
6325
  )
6599
6326
  ] }),
6600
- /* @__PURE__ */ jsxs68(Box32, { className: styles.numpadRow, children: [
6601
- /* @__PURE__ */ jsx105(
6327
+ /* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
6328
+ /* @__PURE__ */ jsx103(
6602
6329
  RoundButton_default,
6603
6330
  {
6604
6331
  onClick: () => handleClick("0"),
@@ -6607,7 +6334,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6607
6334
  children: "0"
6608
6335
  }
6609
6336
  ),
6610
- /* @__PURE__ */ jsx105(
6337
+ /* @__PURE__ */ jsx103(
6611
6338
  RoundButton_default,
6612
6339
  {
6613
6340
  onClick: () => handleClick("."),
@@ -6616,7 +6343,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6616
6343
  children: "."
6617
6344
  }
6618
6345
  ),
6619
- /* @__PURE__ */ jsx105(
6346
+ /* @__PURE__ */ jsx103(
6620
6347
  RoundButton_default,
6621
6348
  {
6622
6349
  onClick: () => handleClick("-"),
@@ -6627,7 +6354,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6627
6354
  )
6628
6355
  ] })
6629
6356
  ] }),
6630
- /* @__PURE__ */ jsx105(Box32, { className: styles.numpadBackspace, children: /* @__PURE__ */ jsx105(
6357
+ /* @__PURE__ */ jsx103(Box30, { className: styles.numpadBackspace, children: /* @__PURE__ */ jsx103(
6631
6358
  RoundButton_default,
6632
6359
  {
6633
6360
  icon: "backspaceOutlined",
@@ -6641,9 +6368,9 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6641
6368
  var NumpadPlus_default = NumpadPlus;
6642
6369
 
6643
6370
  // src/components/Pagination/Pagination.tsx
6644
- import { Pagination, Paper as Paper5, Typography as Typography22 } from "@mui/material";
6371
+ import { Pagination, Paper as Paper4, Typography as Typography22 } from "@mui/material";
6645
6372
  import { makeStyles as makeStyles33 } from "tss-react/mui";
6646
- import { jsx as jsx106, jsxs as jsxs69 } from "react/jsx-runtime";
6373
+ import { jsx as jsx104, jsxs as jsxs68 } from "react/jsx-runtime";
6647
6374
  var paginationHeight = "56px";
6648
6375
  var useStyles33 = makeStyles33()((theme) => ({
6649
6376
  root: {
@@ -6656,11 +6383,18 @@ var useStyles33 = makeStyles33()((theme) => ({
6656
6383
  borderRadius: "0 0 4px 4px",
6657
6384
  width: "100%",
6658
6385
  height: paginationHeight,
6386
+ overflow: "hidden",
6659
6387
  "& > *": {
6660
6388
  margin: theme.spacing(2)
6661
6389
  },
6662
- "& .MuiTypography-body1": {
6663
- fontSize: ".850rem"
6390
+ "& .MuiPagination-root": {
6391
+ minWidth: 0
6392
+ },
6393
+ "& .MuiPagination-ul": {
6394
+ flexWrap: "nowrap"
6395
+ },
6396
+ "& .MuiPaginationItem-root": {
6397
+ flexShrink: 0
6664
6398
  }
6665
6399
  },
6666
6400
  fixed: {
@@ -6680,14 +6414,16 @@ var PaginationForTable = ({
6680
6414
  pagination,
6681
6415
  position = "relative",
6682
6416
  style,
6683
- updateFilters
6417
+ updateFilters,
6418
+ siblingCount = 1,
6419
+ boundaryCount = 1
6684
6420
  }) => {
6685
6421
  const { classes, cx } = useStyles33();
6686
6422
  const handleChange = (event, value) => {
6687
6423
  updateFilters({ ...appliedFilters, page: value });
6688
6424
  };
6689
6425
  const isFixed = position === "fixed";
6690
- return /* @__PURE__ */ jsx106(Paper5, { children: /* @__PURE__ */ jsxs69(
6426
+ return /* @__PURE__ */ jsx104(Paper4, { children: /* @__PURE__ */ jsxs68(
6691
6427
  "div",
6692
6428
  {
6693
6429
  style,
@@ -6695,18 +6431,20 @@ var PaginationForTable = ({
6695
6431
  [classes.fixed]: isFixed
6696
6432
  }),
6697
6433
  children: [
6698
- /* @__PURE__ */ jsxs69(Typography22, { variant: "body1", children: [
6434
+ /* @__PURE__ */ jsxs68(Typography22, { variant: "body1", children: [
6699
6435
  "Page: ",
6700
6436
  page
6701
6437
  ] }),
6702
- /* @__PURE__ */ jsx106(
6438
+ /* @__PURE__ */ jsx104("div", { style: { overflowX: "auto", maxWidth: 400 }, children: /* @__PURE__ */ jsx104(
6703
6439
  Pagination,
6704
6440
  {
6705
6441
  count: pagination.num_pages,
6706
- page,
6707
- onChange: handleChange
6442
+ page: Number(page),
6443
+ onChange: handleChange,
6444
+ siblingCount,
6445
+ boundaryCount
6708
6446
  }
6709
- )
6447
+ ) })
6710
6448
  ]
6711
6449
  }
6712
6450
  ) });
@@ -6714,7 +6452,7 @@ var PaginationForTable = ({
6714
6452
  var Pagination_default = PaginationForTable;
6715
6453
 
6716
6454
  // src/components/PlusMinusInput/PlusMinusInput.tsx
6717
- import { useCallback as useCallback3, useEffect as useEffect7 } from "react";
6455
+ import { useCallback as useCallback2, useEffect as useEffect6 } from "react";
6718
6456
  import { Controller as Controller9, useForm, useWatch } from "react-hook-form";
6719
6457
  import {
6720
6458
  FormControlLabel as FormControlLabel5,
@@ -6723,7 +6461,7 @@ import {
6723
6461
  Typography as Typography23
6724
6462
  } from "@mui/material";
6725
6463
  import { makeStyles as makeStyles34 } from "tss-react/mui";
6726
- import { jsx as jsx107, jsxs as jsxs70 } from "react/jsx-runtime";
6464
+ import { jsx as jsx105, jsxs as jsxs69 } from "react/jsx-runtime";
6727
6465
  var useStyles34 = makeStyles34()((theme) => ({
6728
6466
  container: {
6729
6467
  position: "relative",
@@ -6801,7 +6539,7 @@ var PlusMinusInput = ({
6801
6539
  }
6802
6540
  });
6803
6541
  const inputValue = useWatch({ control, name: "inputValue" });
6804
- const setInputValue = useCallback3(
6542
+ const setInputValue = useCallback2(
6805
6543
  (newValue) => {
6806
6544
  if (Number.isNaN(newValue) || newValue < 0) {
6807
6545
  return;
@@ -6810,7 +6548,7 @@ var PlusMinusInput = ({
6810
6548
  },
6811
6549
  [setValue]
6812
6550
  );
6813
- useEffect7(() => {
6551
+ useEffect6(() => {
6814
6552
  clearErrors("inputValue");
6815
6553
  if (inputValue === "") {
6816
6554
  setError("inputValue", {
@@ -6830,7 +6568,7 @@ var PlusMinusInput = ({
6830
6568
  }
6831
6569
  }
6832
6570
  }, [clearErrors, inputValue, setError]);
6833
- useEffect7(() => {
6571
+ useEffect6(() => {
6834
6572
  if (typeof initialValue !== "number") {
6835
6573
  return;
6836
6574
  }
@@ -6866,7 +6604,7 @@ var PlusMinusInput = ({
6866
6604
  updateInputValue(value);
6867
6605
  };
6868
6606
  const { classes, cx } = useStyles34();
6869
- return /* @__PURE__ */ jsx107("div", { className: classes.container, children: /* @__PURE__ */ jsxs70(
6607
+ return /* @__PURE__ */ jsx105("div", { className: classes.container, children: /* @__PURE__ */ jsxs69(
6870
6608
  FormGroup,
6871
6609
  {
6872
6610
  className: cx(classes.wrapper, {
@@ -6874,7 +6612,7 @@ var PlusMinusInput = ({
6874
6612
  [classes.rightButtons]: buttonsPosition === "right"
6875
6613
  }),
6876
6614
  children: [
6877
- /* @__PURE__ */ jsx107(
6615
+ /* @__PURE__ */ jsx105(
6878
6616
  RoundButton_default,
6879
6617
  {
6880
6618
  className: classes.minus,
@@ -6884,18 +6622,18 @@ var PlusMinusInput = ({
6884
6622
  size: "small"
6885
6623
  }
6886
6624
  ),
6887
- /* @__PURE__ */ jsxs70("div", { children: [
6888
- /* @__PURE__ */ jsx107(
6625
+ /* @__PURE__ */ jsxs69("div", { children: [
6626
+ /* @__PURE__ */ jsx105(
6889
6627
  Controller9,
6890
6628
  {
6891
6629
  control,
6892
6630
  name: "inputValue",
6893
- render: ({ field }) => /* @__PURE__ */ jsx107(
6631
+ render: ({ field }) => /* @__PURE__ */ jsx105(
6894
6632
  FormControlLabel5,
6895
6633
  {
6896
6634
  ...field,
6897
6635
  className: classes.formControlLabel,
6898
- control: /* @__PURE__ */ jsx107(
6636
+ control: /* @__PURE__ */ jsx105(
6899
6637
  TextField7,
6900
6638
  {
6901
6639
  className: classes.input,
@@ -6912,7 +6650,7 @@ var PlusMinusInput = ({
6912
6650
  )
6913
6651
  }
6914
6652
  ),
6915
- errors.inputValue && /* @__PURE__ */ jsx107(
6653
+ errors.inputValue && /* @__PURE__ */ jsx105(
6916
6654
  Typography23,
6917
6655
  {
6918
6656
  className: classes.errorText,
@@ -6923,7 +6661,7 @@ var PlusMinusInput = ({
6923
6661
  }
6924
6662
  )
6925
6663
  ] }),
6926
- /* @__PURE__ */ jsx107(
6664
+ /* @__PURE__ */ jsx105(
6927
6665
  RoundButton_default,
6928
6666
  {
6929
6667
  className: classes.plus,
@@ -6940,28 +6678,28 @@ var PlusMinusInput = ({
6940
6678
  var PlusMinusInput_default = PlusMinusInput;
6941
6679
 
6942
6680
  // src/components/ProductBust/ProductBust.tsx
6943
- import { useState as useState10 } from "react";
6681
+ import { useState as useState9 } from "react";
6944
6682
  import { Typography as Typography24 } from "@mui/material";
6945
6683
  import { withStyles as withStyles4 } from "tss-react/mui";
6946
6684
 
6947
6685
  // src/components/ProductImage/ProductImage.tsx
6948
6686
  import { CardMedia } from "@mui/material";
6949
6687
  import { withStyles as withStyles3 } from "tss-react/mui";
6950
- import { jsx as jsx108, jsxs as jsxs71 } from "react/jsx-runtime";
6688
+ import { jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
6951
6689
  var PImage = ({
6952
6690
  classes,
6953
6691
  image,
6954
6692
  size = "c_productbust__image_xs",
6955
6693
  status
6956
- }) => /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__image, children: [
6957
- /* @__PURE__ */ jsx108(
6694
+ }) => /* @__PURE__ */ jsxs70("div", { className: classes.c_productbust__image, children: [
6695
+ /* @__PURE__ */ jsx106(
6958
6696
  CardMedia,
6959
6697
  {
6960
6698
  className: classes[size],
6961
6699
  image: image || "@/resources/img/peas.jpg"
6962
6700
  }
6963
6701
  ),
6964
- status && status !== "ACTIVE" && /* @__PURE__ */ jsx108("div", { className: classes.c_productbust__label_status, children: status })
6702
+ status && status !== "ACTIVE" && /* @__PURE__ */ jsx106("div", { className: classes.c_productbust__label_status, children: status })
6965
6703
  ] });
6966
6704
  var ProductImage = withStyles3(PImage, (theme) => ({
6967
6705
  c_productbust__label_status: {
@@ -7043,7 +6781,7 @@ var ProductImage = withStyles3(PImage, (theme) => ({
7043
6781
  var ProductImage_default = ProductImage;
7044
6782
 
7045
6783
  // src/components/ProductBust/ProductBust.tsx
7046
- import { Fragment as Fragment10, jsx as jsx109, jsxs as jsxs72 } from "react/jsx-runtime";
6784
+ import { Fragment as Fragment10, jsx as jsx107, jsxs as jsxs71 } from "react/jsx-runtime";
7047
6785
  var PBust = ({
7048
6786
  classes,
7049
6787
  size,
@@ -7085,8 +6823,8 @@ var PBust = ({
7085
6823
  default:
7086
6824
  break;
7087
6825
  }
7088
- const [historyVisible, setHistoryVisible] = useState10(false);
7089
- const historyDataIcon = () => /* @__PURE__ */ jsx109(
6826
+ const [historyVisible, setHistoryVisible] = useState9(false);
6827
+ const historyDataIcon = () => /* @__PURE__ */ jsx107(
7090
6828
  RoundButton_default,
7091
6829
  {
7092
6830
  icon: "history",
@@ -7094,8 +6832,8 @@ var PBust = ({
7094
6832
  size: "small"
7095
6833
  }
7096
6834
  );
7097
- return /* @__PURE__ */ jsxs72("div", { className: classes.c_productbust, children: [
7098
- /* @__PURE__ */ jsx109(
6835
+ return /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust, children: [
6836
+ /* @__PURE__ */ jsx107(
7099
6837
  ProductImage_default,
7100
6838
  {
7101
6839
  image: product?.image,
@@ -7103,10 +6841,10 @@ var PBust = ({
7103
6841
  size: imageSize
7104
6842
  }
7105
6843
  ),
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(
6844
+ /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__container, children: [
6845
+ /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__heading, children: [
6846
+ /* @__PURE__ */ jsxs71("div", { children: [
6847
+ /* @__PURE__ */ jsx107(
7110
6848
  Typography24,
7111
6849
  {
7112
6850
  component: "span",
@@ -7115,10 +6853,10 @@ var PBust = ({
7115
6853
  children: !!locationData && locationData
7116
6854
  }
7117
6855
  ),
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(
6856
+ /* @__PURE__ */ jsx107(Typography24, { component: "span", className: classes[titleSize], children: product?.name }),
6857
+ !product && /* @__PURE__ */ jsx107(Typography24, { component: "span", className: classes[titleSize], children: "Empty Position" }),
6858
+ primaryData || /* @__PURE__ */ jsxs71(Fragment10, { children: [
6859
+ /* @__PURE__ */ jsx107(
7122
6860
  Typography24,
7123
6861
  {
7124
6862
  style: { color: "#555" },
@@ -7126,7 +6864,7 @@ var PBust = ({
7126
6864
  children: product?.category.name
7127
6865
  }
7128
6866
  ),
7129
- /* @__PURE__ */ jsx109(
6867
+ /* @__PURE__ */ jsx107(
7130
6868
  Typography24,
7131
6869
  {
7132
6870
  style: { color: "#A42966", textTransform: "uppercase" },
@@ -7136,14 +6874,14 @@ var PBust = ({
7136
6874
  )
7137
6875
  ] })
7138
6876
  ] }),
7139
- /* @__PURE__ */ jsxs72("div", { className: classes.c_productbust__btns, children: [
7140
- /* @__PURE__ */ jsx109("div", { children: buttonData }),
7141
- /* @__PURE__ */ jsx109("div", { children: !!locationId && historyDataIcon() })
6877
+ /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__btns, children: [
6878
+ /* @__PURE__ */ jsx107("div", { children: buttonData }),
6879
+ /* @__PURE__ */ jsx107("div", { children: !!locationId && historyDataIcon() })
7142
6880
  ] })
7143
6881
  ] }),
7144
- /* @__PURE__ */ jsx109("div", { children: !!secondaryData && secondaryData })
6882
+ /* @__PURE__ */ jsx107("div", { children: !!secondaryData && secondaryData })
7145
6883
  ] }),
7146
- /* @__PURE__ */ jsx109(
6884
+ /* @__PURE__ */ jsx107(
7147
6885
  LocationHistoryDialog,
7148
6886
  {
7149
6887
  handleVisible: setHistoryVisible,
@@ -7245,9 +6983,9 @@ var ProductBust = withStyles4(PBust, (theme) => ({
7245
6983
  var ProductBust_default = ProductBust;
7246
6984
 
7247
6985
  // src/components/RenderAvatar/RenderAvatar.tsx
7248
- import { Avatar, Badge, Box as Box33, Typography as Typography25 } from "@mui/material";
6986
+ import { Avatar, Badge, Box as Box31, Typography as Typography25 } from "@mui/material";
7249
6987
  import { withStyles as withStyles5 } from "tss-react/mui";
7250
- import { jsx as jsx110, jsxs as jsxs73 } from "react/jsx-runtime";
6988
+ import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
7251
6989
  var RenderAvatar = ({ active }) => {
7252
6990
  const StyledBadge = withStyles5(Badge, () => ({
7253
6991
  root: {
@@ -7256,12 +6994,12 @@ var RenderAvatar = ({ active }) => {
7256
6994
  }
7257
6995
  }
7258
6996
  }));
7259
- return /* @__PURE__ */ jsxs73(
7260
- Box33,
6997
+ return /* @__PURE__ */ jsxs72(
6998
+ Box31,
7261
6999
  {
7262
7000
  sx: { display: "flex", flexDirection: "column", alignItems: "center" },
7263
7001
  children: [
7264
- /* @__PURE__ */ jsx110(
7002
+ /* @__PURE__ */ jsx108(
7265
7003
  StyledBadge,
7266
7004
  {
7267
7005
  overlap: "circular",
@@ -7270,10 +7008,10 @@ var RenderAvatar = ({ active }) => {
7270
7008
  horizontal: "right"
7271
7009
  },
7272
7010
  variant: "dot",
7273
- children: /* @__PURE__ */ jsx110(Avatar, {})
7011
+ children: /* @__PURE__ */ jsx108(Avatar, {})
7274
7012
  }
7275
7013
  ),
7276
- /* @__PURE__ */ jsx110(Typography25, { variant: "caption", children: active ? "Active" : "Disabled" })
7014
+ /* @__PURE__ */ jsx108(Typography25, { variant: "caption", children: active ? "Active" : "Disabled" })
7277
7015
  ]
7278
7016
  }
7279
7017
  );
@@ -7281,7 +7019,7 @@ var RenderAvatar = ({ active }) => {
7281
7019
  var RenderAvatar_default = RenderAvatar;
7282
7020
 
7283
7021
  // src/components/RenderContentList/RenderContentList.tsx
7284
- import { useEffect as useEffect9, useState as useState12, useRef as useRef6 } from "react";
7022
+ import { useEffect as useEffect8, useState as useState11, useRef as useRef5 } from "react";
7285
7023
  import WarningAmber from "@mui/icons-material/WarningAmber";
7286
7024
  import {
7287
7025
  List,
@@ -7293,11 +7031,11 @@ import {
7293
7031
  import { makeStyles as makeStyles35 } from "tss-react/mui";
7294
7032
 
7295
7033
  // src/utils/useGetActiveSection.ts
7296
- import { useEffect as useEffect8, useState as useState11 } from "react";
7034
+ import { useEffect as useEffect7, useState as useState10 } from "react";
7297
7035
  var transformNameToID = (name) => name.replaceAll(" ", "_").toLocaleLowerCase();
7298
7036
 
7299
7037
  // src/components/RenderContentList/RenderContentList.tsx
7300
- import { jsx as jsx111, jsxs as jsxs74 } from "react/jsx-runtime";
7038
+ import { jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
7301
7039
  var useStyles35 = makeStyles35()(
7302
7040
  (_theme, _params, classes) => ({
7303
7041
  root: {
@@ -7318,11 +7056,11 @@ var RenderContentList = ({
7318
7056
  warningMessage = "Missing information on this section"
7319
7057
  }) => {
7320
7058
  const { classes } = useStyles35();
7321
- const [active, setActive] = useState12(activeSection);
7322
- const observer = useRef6(null);
7323
- const isScrolling = useRef6(false);
7324
- const timeoutScrolling = useRef6(null);
7325
- useEffect9(() => {
7059
+ const [active, setActive] = useState11(activeSection);
7060
+ const observer = useRef5(null);
7061
+ const isScrolling = useRef5(false);
7062
+ const timeoutScrolling = useRef5(null);
7063
+ useEffect8(() => {
7326
7064
  if (!activeSection) {
7327
7065
  return void 0;
7328
7066
  }
@@ -7346,7 +7084,7 @@ var RenderContentList = ({
7346
7084
  if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
7347
7085
  };
7348
7086
  }, [activeSection]);
7349
- useEffect9(() => {
7087
+ useEffect8(() => {
7350
7088
  const sections = items.map((item) => ({
7351
7089
  id: transformNameToID(item),
7352
7090
  element: document.getElementById(transformNameToID(item))
@@ -7395,23 +7133,23 @@ var RenderContentList = ({
7395
7133
  isScrolling.current = false;
7396
7134
  }, 1e3);
7397
7135
  };
7398
- return /* @__PURE__ */ jsx111(
7136
+ return /* @__PURE__ */ jsx109(
7399
7137
  List,
7400
7138
  {
7401
7139
  component: "nav",
7402
7140
  "aria-labelledby": "nested-list-subheader",
7403
- subheader: /* @__PURE__ */ jsx111(ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
7141
+ subheader: /* @__PURE__ */ jsx109(ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
7404
7142
  children: items.map((item) => {
7405
7143
  const id = transformNameToID(item);
7406
- return /* @__PURE__ */ jsxs74(
7144
+ return /* @__PURE__ */ jsxs73(
7407
7145
  ListItemButton,
7408
7146
  {
7409
7147
  selected: active === id,
7410
7148
  classes: { root: classes.root, selected: classes.selected },
7411
7149
  onClick: () => handleMenuClick(id),
7412
7150
  children: [
7413
- /* @__PURE__ */ jsx111(ListItemText4, { primary: item }),
7414
- (warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ jsx111(Tooltip9, { title: warningMessage, children: /* @__PURE__ */ jsx111(WarningAmber, { color: "warning" }) })
7151
+ /* @__PURE__ */ jsx109(ListItemText4, { primary: item }),
7152
+ (warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ jsx109(Tooltip9, { title: warningMessage, children: /* @__PURE__ */ jsx109(WarningAmber, { color: "warning" }) })
7415
7153
  ]
7416
7154
  },
7417
7155
  id
@@ -7423,9 +7161,9 @@ var RenderContentList = ({
7423
7161
  var RenderContentList_default = RenderContentList;
7424
7162
 
7425
7163
  // src/components/RowProductCard/RowProductCard.tsx
7426
- import { Box as Box34, Divider as Divider6, Paper as Paper6, Typography as Typography26 } from "@mui/material";
7164
+ import { Box as Box32, Divider as Divider6, Paper as Paper5, Typography as Typography26 } from "@mui/material";
7427
7165
  import { makeStyles as makeStyles36 } from "tss-react/mui";
7428
- import { Fragment as Fragment11, jsx as jsx112, jsxs as jsxs75 } from "react/jsx-runtime";
7166
+ import { Fragment as Fragment11, jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
7429
7167
  var useStyles36 = makeStyles36()((theme) => ({
7430
7168
  wrapper: {
7431
7169
  display: "flex",
@@ -7464,8 +7202,8 @@ var RowProductCard = ({
7464
7202
  medium: "c_productbust__image_md",
7465
7203
  large: "c_productbust__image_lg"
7466
7204
  };
7467
- return /* @__PURE__ */ jsxs75(Paper6, { className: classes.wrapper, children: [
7468
- /* @__PURE__ */ jsx112(
7205
+ return /* @__PURE__ */ jsxs74(Paper5, { className: classes.wrapper, children: [
7206
+ /* @__PURE__ */ jsx110(
7469
7207
  ProductImage_default,
7470
7208
  {
7471
7209
  image: product.image,
@@ -7473,15 +7211,15 @@ var RowProductCard = ({
7473
7211
  size: imageSize[size]
7474
7212
  }
7475
7213
  ),
7476
- /* @__PURE__ */ jsxs75(
7214
+ /* @__PURE__ */ jsxs74(
7477
7215
  "div",
7478
7216
  {
7479
7217
  className: cx(classes.content, {
7480
7218
  [classes.onlyProductName]: !hasColumns && !location
7481
7219
  }),
7482
7220
  children: [
7483
- /* @__PURE__ */ jsxs75(
7484
- Box34,
7221
+ /* @__PURE__ */ jsxs74(
7222
+ Box32,
7485
7223
  {
7486
7224
  className: classes.upperRow,
7487
7225
  sx: {
@@ -7490,26 +7228,26 @@ var RowProductCard = ({
7490
7228
  alignItems: "center"
7491
7229
  },
7492
7230
  children: [
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 })
7231
+ /* @__PURE__ */ jsxs74("div", { children: [
7232
+ location ? /* @__PURE__ */ jsx110(Typography26, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
7233
+ /* @__PURE__ */ jsx110(Typography26, { variant: "h6", children: product.name })
7496
7234
  ] }),
7497
7235
  children
7498
7236
  ]
7499
7237
  }
7500
7238
  ),
7501
- hasColumns ? /* @__PURE__ */ jsxs75(Fragment11, { children: [
7502
- /* @__PURE__ */ jsx112(Divider6, { className: classes.divider }),
7503
- /* @__PURE__ */ jsx112(
7504
- Box34,
7239
+ hasColumns ? /* @__PURE__ */ jsxs74(Fragment11, { children: [
7240
+ /* @__PURE__ */ jsx110(Divider6, { className: classes.divider }),
7241
+ /* @__PURE__ */ jsx110(
7242
+ Box32,
7505
7243
  {
7506
7244
  sx: {
7507
7245
  display: "flex",
7508
7246
  gap: "24px"
7509
7247
  },
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
7248
+ children: columns.map((column) => /* @__PURE__ */ jsxs74("div", { children: [
7249
+ /* @__PURE__ */ jsx110(Typography26, { className: classes.smallTitle, variant: "caption", children: column.title }),
7250
+ typeof column.value === "string" ? /* @__PURE__ */ jsx110(Typography26, { variant: "body1", children: column.value }) : column.value
7513
7251
  ] }, column.title))
7514
7252
  }
7515
7253
  )
@@ -7522,10 +7260,10 @@ var RowProductCard = ({
7522
7260
  var RowProductCard_default = RowProductCard;
7523
7261
 
7524
7262
  // src/components/ScrollableDialog/ScrollableDialog.tsx
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";
7263
+ import { useEffect as useEffect9, useRef as useRef6, useState as useState12 } from "react";
7264
+ import { Box as Box33, Dialog as Dialog4, Divider as Divider7, Fade, Paper as Paper6, Typography as Typography27 } from "@mui/material";
7527
7265
  import { makeStyles as makeStyles37 } from "tss-react/mui";
7528
- import { jsx as jsx113, jsxs as jsxs76 } from "react/jsx-runtime";
7266
+ import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
7529
7267
  var useStyles37 = makeStyles37()((theme) => ({
7530
7268
  dialog: {
7531
7269
  margin: "0 auto",
@@ -7565,18 +7303,18 @@ var ScrollableDialog = ({
7565
7303
  isOpen,
7566
7304
  title
7567
7305
  }) => {
7568
- const [bodyHeight, setBodyHeight] = useState13(0);
7569
- const [hasScrollBar, setHasScrollBar] = useState13(false);
7570
- const [maxDialogHeight, setMaxDialogHeight] = useState13(0);
7306
+ const [bodyHeight, setBodyHeight] = useState12(0);
7307
+ const [hasScrollBar, setHasScrollBar] = useState12(false);
7308
+ const [maxDialogHeight, setMaxDialogHeight] = useState12(0);
7571
7309
  const { classes, cx } = useStyles37();
7572
- const headerRef = useRef7(null);
7573
- const footerRef = useRef7(null);
7574
- const titleRef = useRef7(null);
7575
- const bodyRef = useRef7(null);
7310
+ const headerRef = useRef6(null);
7311
+ const footerRef = useRef6(null);
7312
+ const titleRef = useRef6(null);
7313
+ const bodyRef = useRef6(null);
7576
7314
  const DIALOG_MARGIN = 65;
7577
7315
  const DEFAULT_MAX_HEIGHT = 728;
7578
7316
  const TITLE_MARGIN = 48;
7579
- useEffect10(() => {
7317
+ useEffect9(() => {
7580
7318
  const handleResize = () => {
7581
7319
  const screenHeight = window.innerHeight;
7582
7320
  const newMaxHeight = screenHeight < DEFAULT_MAX_HEIGHT + DIALOG_MARGIN ? screenHeight - DIALOG_MARGIN : DEFAULT_MAX_HEIGHT;
@@ -7595,22 +7333,22 @@ var ScrollableDialog = ({
7595
7333
  const scrollHeight = bodyRef.current?.scrollHeight || 0;
7596
7334
  setHasScrollBar(scrollHeight > contentHeight);
7597
7335
  };
7598
- useEffect10(() => {
7336
+ useEffect9(() => {
7599
7337
  if (isOpen) {
7600
7338
  requestAnimationFrame(measureHeights);
7601
7339
  }
7602
7340
  }, [isOpen, header, footer, title, maxDialogHeight]);
7603
- return /* @__PURE__ */ jsx113(Dialog4, { className: classes.dialog, fullWidth: true, maxWidth: false, open: isOpen, children: /* @__PURE__ */ jsx113(
7341
+ return /* @__PURE__ */ jsx111(Dialog4, { className: classes.dialog, fullWidth: true, maxWidth: false, open: isOpen, children: /* @__PURE__ */ jsx111(
7604
7342
  Fade,
7605
7343
  {
7606
7344
  in: isOpen,
7607
7345
  onEntered: () => {
7608
7346
  requestAnimationFrame(measureHeights);
7609
7347
  },
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(
7348
+ children: /* @__PURE__ */ jsxs75(Paper6, { className: classes.wrapper, children: [
7349
+ header ? /* @__PURE__ */ jsx111("div", { className: classes.header, id: "dialog-header", children: header }) : null,
7350
+ /* @__PURE__ */ jsxs75("div", { className: classes.body, children: [
7351
+ /* @__PURE__ */ jsx111(
7614
7352
  Typography27,
7615
7353
  {
7616
7354
  className: classes.title,
@@ -7619,7 +7357,7 @@ var ScrollableDialog = ({
7619
7357
  children: title
7620
7358
  }
7621
7359
  ),
7622
- /* @__PURE__ */ jsx113(
7360
+ /* @__PURE__ */ jsx111(
7623
7361
  "div",
7624
7362
  {
7625
7363
  className: cx(classes.scrollableContainer, {
@@ -7633,9 +7371,9 @@ var ScrollableDialog = ({
7633
7371
  }
7634
7372
  )
7635
7373
  ] }),
7636
- /* @__PURE__ */ jsx113(Divider7, {}),
7637
- footer ? /* @__PURE__ */ jsx113(
7638
- Box35,
7374
+ /* @__PURE__ */ jsx111(Divider7, {}),
7375
+ footer ? /* @__PURE__ */ jsx111(
7376
+ Box33,
7639
7377
  {
7640
7378
  className: classes.footer,
7641
7379
  id: "dialog-footer",
@@ -7653,20 +7391,20 @@ var ScrollableDialog = ({
7653
7391
  var ScrollableDialog_default = ScrollableDialog;
7654
7392
 
7655
7393
  // src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
7656
- import { Box as Box36, Paper as Paper9 } from "@mui/material";
7394
+ import { Box as Box34, Paper as Paper8 } from "@mui/material";
7657
7395
  import { makeStyles as makeStyles39 } from "tss-react/mui";
7658
7396
 
7659
7397
  // src/components/SearchWithFilters/SearchWithFilters.tsx
7660
- import { useState as useState14, useEffect as useEffect11 } from "react";
7398
+ import { useState as useState13, useEffect as useEffect10 } from "react";
7661
7399
  import * as React6 from "react";
7662
7400
  import {
7663
7401
  ArrowDropDown as ArrowDropDownIcon,
7664
7402
  ArrowDropUp as ArrowDropUpIcon,
7665
7403
  Search as SearchIcon
7666
7404
  } from "@mui/icons-material";
7667
- import { Button as Button14, Divider as Divider8, InputBase as InputBase2, Paper as Paper8 } from "@mui/material";
7405
+ import { Button as Button14, Divider as Divider8, InputBase, Paper as Paper7 } from "@mui/material";
7668
7406
  import { makeStyles as makeStyles38 } from "tss-react/mui";
7669
- import { jsx as jsx114, jsxs as jsxs77 } from "react/jsx-runtime";
7407
+ import { jsx as jsx112, jsxs as jsxs76 } from "react/jsx-runtime";
7670
7408
  var useStyles38 = makeStyles38()((theme) => ({
7671
7409
  searchContainer: {
7672
7410
  height: 46,
@@ -7711,7 +7449,7 @@ var SearchWithFilters = ({
7711
7449
  },
7712
7450
  disabled = false
7713
7451
  }) => {
7714
- const [searchText, setSearchText] = useState14(searchValue);
7452
+ const [searchText, setSearchText] = useState13(searchValue);
7715
7453
  const { classes } = useStyles38();
7716
7454
  const handleTextChange = (e) => {
7717
7455
  const { value } = e.target;
@@ -7723,13 +7461,13 @@ var SearchWithFilters = ({
7723
7461
  enterPressedInSearch?.();
7724
7462
  }
7725
7463
  };
7726
- useEffect11(() => {
7464
+ useEffect10(() => {
7727
7465
  setSearchText(searchValue);
7728
7466
  }, [searchValue]);
7729
- return /* @__PURE__ */ jsxs77(Paper8, { className: classes.searchContainer, children: [
7730
- /* @__PURE__ */ jsx114(SearchIcon, { className: classes.icon, fontSize: "small" }),
7731
- /* @__PURE__ */ jsx114(
7732
- InputBase2,
7467
+ return /* @__PURE__ */ jsxs76(Paper7, { className: classes.searchContainer, children: [
7468
+ /* @__PURE__ */ jsx112(SearchIcon, { className: classes.icon, fontSize: "small" }),
7469
+ /* @__PURE__ */ jsx112(
7470
+ InputBase,
7733
7471
  {
7734
7472
  className: classes.input,
7735
7473
  placeholder: "Search",
@@ -7740,8 +7478,8 @@ var SearchWithFilters = ({
7740
7478
  inputProps: { "aria-label": "search" }
7741
7479
  }
7742
7480
  ),
7743
- /* @__PURE__ */ jsx114(Divider8, { className: classes.divider, orientation: "vertical" }),
7744
- /* @__PURE__ */ jsxs77(
7481
+ /* @__PURE__ */ jsx112(Divider8, { className: classes.divider, orientation: "vertical" }),
7482
+ /* @__PURE__ */ jsxs76(
7745
7483
  Button14,
7746
7484
  {
7747
7485
  className: classes.filterButton,
@@ -7749,7 +7487,7 @@ var SearchWithFilters = ({
7749
7487
  disabled,
7750
7488
  children: [
7751
7489
  "Filters",
7752
- showFilters ? /* @__PURE__ */ jsx114(ArrowDropUpIcon, {}) : /* @__PURE__ */ jsx114(ArrowDropDownIcon, {})
7490
+ showFilters ? /* @__PURE__ */ jsx112(ArrowDropUpIcon, {}) : /* @__PURE__ */ jsx112(ArrowDropDownIcon, {})
7753
7491
  ]
7754
7492
  }
7755
7493
  )
@@ -7758,7 +7496,7 @@ var SearchWithFilters = ({
7758
7496
  var SearchWithFilters_default = React6.memo(SearchWithFilters);
7759
7497
 
7760
7498
  // src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
7761
- import { jsx as jsx115, jsxs as jsxs78 } from "react/jsx-runtime";
7499
+ import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
7762
7500
  var useStyles39 = makeStyles39()((theme) => ({
7763
7501
  wrapper: {
7764
7502
  display: "flex",
@@ -7794,11 +7532,11 @@ var SearchAndFilterHeader = ({
7794
7532
  searchValue
7795
7533
  }) => {
7796
7534
  const { classes } = useStyles39();
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(
7535
+ return /* @__PURE__ */ jsx113(Paper8, { children: /* @__PURE__ */ jsxs77(Box34, { className: classes.wrapper, children: [
7536
+ /* @__PURE__ */ jsxs77(Box34, { className: classes.container, children: [
7537
+ /* @__PURE__ */ jsxs77(Box34, { className: classes.leftSection, children: [
7538
+ /* @__PURE__ */ jsx113(AppLabel_default, { appName }),
7539
+ /* @__PURE__ */ jsx113(
7802
7540
  SearchWithFilters_default,
7803
7541
  {
7804
7542
  searchValue,
@@ -7809,9 +7547,9 @@ var SearchAndFilterHeader = ({
7809
7547
  }
7810
7548
  )
7811
7549
  ] }),
7812
- /* @__PURE__ */ jsx115(Box36, { children: extraButton })
7550
+ /* @__PURE__ */ jsx113(Box34, { children: extraButton })
7813
7551
  ] }),
7814
- showFilters ? /* @__PURE__ */ jsx115(Box36, { children: filtersComponent }) : null,
7552
+ showFilters ? /* @__PURE__ */ jsx113(Box34, { children: filtersComponent }) : null,
7815
7553
  appliedFiltersComponent
7816
7554
  ] }) });
7817
7555
  };
@@ -7819,19 +7557,19 @@ var SearchAndFilterHeader_default = SearchAndFilterHeader;
7819
7557
 
7820
7558
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
7821
7559
  import * as React7 from "react";
7822
- import { Box as Box38 } from "@mui/material";
7560
+ import { Box as Box36 } from "@mui/material";
7823
7561
  import { makeStyles as makeStyles41 } from "tss-react/mui";
7824
7562
 
7825
7563
  // src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
7826
- import { useState as useState15, memo as memo18 } from "react";
7564
+ import { useState as useState14, memo as memo16 } from "react";
7827
7565
  import {
7828
7566
  ArrowDropDown as ArrowDropDownIcon2,
7829
7567
  ArrowDropUp as ArrowDropUpIcon2,
7830
7568
  Search as SearchIcon2
7831
7569
  } from "@mui/icons-material";
7832
- import { Box as Box37, Button as Button15, Divider as Divider9, InputBase as InputBase3, Paper as Paper10 } from "@mui/material";
7570
+ import { Box as Box35, Button as Button15, Divider as Divider9, InputBase as InputBase2, Paper as Paper9 } from "@mui/material";
7833
7571
  import { makeStyles as makeStyles40 } from "tss-react/mui";
7834
- import { Fragment as Fragment12, jsx as jsx116, jsxs as jsxs79 } from "react/jsx-runtime";
7572
+ import { Fragment as Fragment12, jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
7835
7573
  var useStyles40 = makeStyles40()((theme) => ({
7836
7574
  c_search: {
7837
7575
  height: 46,
@@ -7891,7 +7629,7 @@ var SearchWithFiltersForTable = (props) => {
7891
7629
  searchedValue
7892
7630
  } = props;
7893
7631
  const { classes } = useStyles40();
7894
- const [searchText, setSearchText] = useState15("");
7632
+ const [searchText, setSearchText] = useState14("");
7895
7633
  const handleTextChange = (e) => {
7896
7634
  const { value } = e.target;
7897
7635
  setSearchText(value);
@@ -7906,10 +7644,10 @@ var SearchWithFiltersForTable = (props) => {
7906
7644
  }
7907
7645
  };
7908
7646
  const ArrowIcon = isOpen ? ArrowDropUpIcon2 : ArrowDropDownIcon2;
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,
7647
+ return /* @__PURE__ */ jsxs78(Paper9, { className: classes.c_search, children: [
7648
+ /* @__PURE__ */ jsx114(Box35, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx114(SearchIcon2, { className: classes.icon, fontSize: "small" }) }),
7649
+ /* @__PURE__ */ jsx114(
7650
+ InputBase2,
7913
7651
  {
7914
7652
  className: classes.c_search__input,
7915
7653
  placeholder: "Search",
@@ -7918,32 +7656,32 @@ var SearchWithFiltersForTable = (props) => {
7918
7656
  onKeyDown: handleKeyPress
7919
7657
  }
7920
7658
  ),
7921
- showFilterButton && /* @__PURE__ */ jsxs79(Fragment12, { children: [
7922
- /* @__PURE__ */ jsx116(
7659
+ showFilterButton && /* @__PURE__ */ jsxs78(Fragment12, { children: [
7660
+ /* @__PURE__ */ jsx114(
7923
7661
  Divider9,
7924
7662
  {
7925
7663
  className: classes.c_search__divider,
7926
7664
  orientation: "vertical"
7927
7665
  }
7928
7666
  ),
7929
- /* @__PURE__ */ jsxs79(
7667
+ /* @__PURE__ */ jsxs78(
7930
7668
  Button15,
7931
7669
  {
7932
7670
  className: classes.c_search__bt_filter,
7933
7671
  onClick: handleFilterButtonClick,
7934
7672
  children: [
7935
7673
  "Filters",
7936
- /* @__PURE__ */ jsx116(ArrowIcon, { className: classes.c_search__bt_icon_filter })
7674
+ /* @__PURE__ */ jsx114(ArrowIcon, { className: classes.c_search__bt_icon_filter })
7937
7675
  ]
7938
7676
  }
7939
7677
  )
7940
7678
  ] })
7941
7679
  ] });
7942
7680
  };
7943
- var SearchWithFiltersForTable_default = memo18(SearchWithFiltersForTable);
7681
+ var SearchWithFiltersForTable_default = memo16(SearchWithFiltersForTable);
7944
7682
 
7945
7683
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
7946
- import { jsx as jsx117, jsxs as jsxs80 } from "react/jsx-runtime";
7684
+ import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
7947
7685
  var useStyles41 = makeStyles41()((theme) => ({
7948
7686
  container: {
7949
7687
  display: "flex",
@@ -7975,10 +7713,10 @@ var SearchAndFilterHeaderForTable = (props) => {
7975
7713
  searchedValue
7976
7714
  } = props;
7977
7715
  const { classes } = useStyles41();
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(
7716
+ return /* @__PURE__ */ jsxs79(Box36, { className: classes.container, children: [
7717
+ /* @__PURE__ */ jsxs79(Box36, { className: classes.leftSection, children: [
7718
+ /* @__PURE__ */ jsx115(AppLabel_default, { appName }),
7719
+ /* @__PURE__ */ jsx115(
7982
7720
  SearchWithFiltersForTable_default,
7983
7721
  {
7984
7722
  onFilterButtonClick,
@@ -7989,24 +7727,24 @@ var SearchAndFilterHeaderForTable = (props) => {
7989
7727
  searchedValue
7990
7728
  }
7991
7729
  ),
7992
- copy && /* @__PURE__ */ jsx117(
7993
- Box38,
7730
+ copy && /* @__PURE__ */ jsx115(
7731
+ Box36,
7994
7732
  {
7995
7733
  sx: {
7996
7734
  margin: 0.5
7997
7735
  },
7998
- children: /* @__PURE__ */ jsx117(OutlinedButton_default, { copy })
7736
+ children: /* @__PURE__ */ jsx115(OutlinedButton_default, { copy })
7999
7737
  }
8000
7738
  )
8001
7739
  ] }),
8002
- /* @__PURE__ */ jsx117(Box38, { children: button })
7740
+ /* @__PURE__ */ jsx115(Box36, { children: button })
8003
7741
  ] });
8004
7742
  };
8005
7743
  var SearchAndFilterHeaderForTable_default = React7.memo(SearchAndFilterHeaderForTable);
8006
7744
 
8007
7745
  // src/components/SearchHeader/SearchHeader.tsx
8008
- import { Box as Box39, Paper as Paper11 } from "@mui/material";
8009
- import { jsx as jsx118, jsxs as jsxs81 } from "react/jsx-runtime";
7746
+ import { Box as Box37, Paper as Paper10 } from "@mui/material";
7747
+ import { jsx as jsx116, jsxs as jsxs80 } from "react/jsx-runtime";
8010
7748
  var SearchHeader = ({
8011
7749
  renderButton,
8012
7750
  renderExtraAction,
@@ -8017,8 +7755,8 @@ var SearchHeader = ({
8017
7755
  onKeyDown,
8018
7756
  width
8019
7757
  }) => {
8020
- return /* @__PURE__ */ jsxs81(
8021
- Paper11,
7758
+ return /* @__PURE__ */ jsxs80(
7759
+ Paper10,
8022
7760
  {
8023
7761
  sx: {
8024
7762
  display: "flex",
@@ -8026,8 +7764,8 @@ var SearchHeader = ({
8026
7764
  padding: 2
8027
7765
  },
8028
7766
  children: [
8029
- /* @__PURE__ */ jsxs81(
8030
- Box39,
7767
+ /* @__PURE__ */ jsxs80(
7768
+ Box37,
8031
7769
  {
8032
7770
  sx: {
8033
7771
  display: "flex",
@@ -8035,8 +7773,8 @@ var SearchHeader = ({
8035
7773
  alignItems: "center"
8036
7774
  },
8037
7775
  children: [
8038
- /* @__PURE__ */ jsxs81(Box39, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
8039
- /* @__PURE__ */ jsx118(
7776
+ /* @__PURE__ */ jsxs80(Box37, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
7777
+ /* @__PURE__ */ jsx116(
8040
7778
  SearchFieldDebounced,
8041
7779
  {
8042
7780
  width,
@@ -8061,9 +7799,9 @@ var SearchHeader = ({
8061
7799
  // src/components/SectionName/SectionName.tsx
8062
7800
  import HistoryIcon from "@mui/icons-material/History";
8063
7801
  import InfoIcon from "@mui/icons-material/Info";
8064
- import { Box as Box40, Divider as Divider10, IconButton as IconButton5, Tooltip as Tooltip10, Typography as Typography28 } from "@mui/material";
7802
+ import { Box as Box38, Divider as Divider10, IconButton as IconButton5, Tooltip as Tooltip10, Typography as Typography28 } from "@mui/material";
8065
7803
  import { makeStyles as makeStyles42 } from "tss-react/mui";
8066
- import { jsx as jsx119, jsxs as jsxs82 } from "react/jsx-runtime";
7804
+ import { jsx as jsx117, jsxs as jsxs81 } from "react/jsx-runtime";
8067
7805
  var useStyles42 = makeStyles42()((theme) => ({
8068
7806
  container: {
8069
7807
  display: "flex",
@@ -8119,9 +7857,9 @@ var SectionName = ({
8119
7857
  }
8120
7858
  }
8121
7859
  };
8122
- return /* @__PURE__ */ jsxs82(Box40, { className: classes.container, children: [
8123
- /* @__PURE__ */ jsxs82(Box40, { className: classes.titleContainer, children: [
8124
- /* @__PURE__ */ jsx119(
7860
+ return /* @__PURE__ */ jsxs81(Box38, { className: classes.container, children: [
7861
+ /* @__PURE__ */ jsxs81(Box38, { className: classes.titleContainer, children: [
7862
+ /* @__PURE__ */ jsx117(
8125
7863
  Typography28,
8126
7864
  {
8127
7865
  variant: "h5",
@@ -8130,7 +7868,7 @@ var SectionName = ({
8130
7868
  children: name
8131
7869
  }
8132
7870
  ),
8133
- tooltipDescription ? /* @__PURE__ */ jsx119(Tooltip10, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ jsx119(
7871
+ tooltipDescription ? /* @__PURE__ */ jsx117(Tooltip10, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ jsx117(
8134
7872
  InfoIcon,
8135
7873
  {
8136
7874
  fontSize: "small",
@@ -8139,8 +7877,8 @@ var SectionName = ({
8139
7877
  }
8140
7878
  ) }) : null
8141
7879
  ] }),
8142
- /* @__PURE__ */ jsxs82(Box40, { className: classes.actionButtons, children: [
8143
- buttonText ? /* @__PURE__ */ jsx119(
7880
+ /* @__PURE__ */ jsxs81(Box38, { className: classes.actionButtons, children: [
7881
+ buttonText ? /* @__PURE__ */ jsx117(
8144
7882
  ExtendedButton_default,
8145
7883
  {
8146
7884
  type: buttonType,
@@ -8153,17 +7891,17 @@ var SectionName = ({
8153
7891
  variant: "text"
8154
7892
  }
8155
7893
  ) : null,
8156
- openHistoryLog && buttonText && /* @__PURE__ */ jsx119(Divider10, { orientation: "vertical", sx: { height: "24px" } }),
8157
- openHistoryLog && /* @__PURE__ */ jsx119(IconButton5, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx119(HistoryIcon, {}) })
7894
+ openHistoryLog && buttonText && /* @__PURE__ */ jsx117(Divider10, { orientation: "vertical", sx: { height: "24px" } }),
7895
+ openHistoryLog && /* @__PURE__ */ jsx117(IconButton5, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx117(HistoryIcon, {}) })
8158
7896
  ] })
8159
7897
  ] });
8160
7898
  };
8161
7899
  var SectionName_default = SectionName;
8162
7900
 
8163
7901
  // src/components/SmartMultipleSelect/SmartMultipleSelect.tsx
8164
- import { useState as useState16 } from "react";
7902
+ import { useState as useState15 } from "react";
8165
7903
  import {
8166
- Box as Box41,
7904
+ Box as Box39,
8167
7905
  Checkbox as Checkbox7,
8168
7906
  CircularProgress as CircularProgress5,
8169
7907
  FormControl as FormControl5,
@@ -8173,7 +7911,7 @@ import {
8173
7911
  Select as Select4,
8174
7912
  Typography as Typography29
8175
7913
  } from "@mui/material";
8176
- import { jsx as jsx120, jsxs as jsxs83 } from "react/jsx-runtime";
7914
+ import { jsx as jsx118, jsxs as jsxs82 } from "react/jsx-runtime";
8177
7915
  var SmartMultipleSelect = ({
8178
7916
  inputLabel,
8179
7917
  variant = "standard",
@@ -8191,7 +7929,7 @@ var SmartMultipleSelect = ({
8191
7929
  helperText,
8192
7930
  menuProps
8193
7931
  }) => {
8194
- const [localValues, setLocalValues] = useState16(defaultValues ?? []);
7932
+ const [localValues, setLocalValues] = useState15(defaultValues ?? []);
8195
7933
  const handleChangeOption = (option) => {
8196
7934
  let newValues = [];
8197
7935
  const selectedIndex = localValues.findIndex(
@@ -8205,19 +7943,19 @@ var SmartMultipleSelect = ({
8205
7943
  setLocalValues(newValues);
8206
7944
  onChange?.(newValues);
8207
7945
  };
8208
- const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ jsx120(
8209
- Box41,
7946
+ const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ jsx118(
7947
+ Box39,
8210
7948
  {
8211
7949
  sx: { display: "flex", justifyContent: "center", alignItems: "center" },
8212
- children: /* @__PURE__ */ jsx120(Typography29, { children: emptyMessage })
7950
+ children: /* @__PURE__ */ jsx118(Typography29, { children: emptyMessage })
8213
7951
  }
8214
- ) : /* @__PURE__ */ jsx120(Box41, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
7952
+ ) : /* @__PURE__ */ jsx118(Box39, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
8215
7953
  const selectedValues = values ?? localValues ?? [];
8216
7954
  const isSelected = selectedValues.some(
8217
7955
  (selected) => selected.value === option.value
8218
7956
  );
8219
- return /* @__PURE__ */ jsxs83(
8220
- Box41,
7957
+ return /* @__PURE__ */ jsxs82(
7958
+ Box39,
8221
7959
  {
8222
7960
  onClick: () => handleChangeOption(option),
8223
7961
  sx: {
@@ -8227,14 +7965,14 @@ var SmartMultipleSelect = ({
8227
7965
  backgroundColor: isSelected ? colors.lightBlueBackground : void 0
8228
7966
  },
8229
7967
  children: [
8230
- /* @__PURE__ */ jsx120(Checkbox7, { disableRipple: true, sx: { py: 0.5 }, checked: isSelected }),
8231
- /* @__PURE__ */ jsx120(ListItemText5, { primary: option.label })
7968
+ /* @__PURE__ */ jsx118(Checkbox7, { disableRipple: true, sx: { py: 0.5 }, checked: isSelected }),
7969
+ /* @__PURE__ */ jsx118(ListItemText5, { primary: option.label })
8232
7970
  ]
8233
7971
  },
8234
7972
  option.value ?? index
8235
7973
  );
8236
7974
  }) });
8237
- return /* @__PURE__ */ jsxs83(
7975
+ return /* @__PURE__ */ jsxs82(
8238
7976
  FormControl5,
8239
7977
  {
8240
7978
  fullWidth: true,
@@ -8243,8 +7981,8 @@ var SmartMultipleSelect = ({
8243
7981
  disabled,
8244
7982
  error,
8245
7983
  children: [
8246
- /* @__PURE__ */ jsx120(InputLabel5, { children: inputLabel }),
8247
- /* @__PURE__ */ jsx120(
7984
+ /* @__PURE__ */ jsx118(InputLabel5, { children: inputLabel }),
7985
+ /* @__PURE__ */ jsx118(
8248
7986
  Select4,
8249
7987
  {
8250
7988
  multiple: true,
@@ -8257,33 +7995,33 @@ var SmartMultipleSelect = ({
8257
7995
  onClose: () => onClose?.(localValues),
8258
7996
  renderValue: (selectedValues) => {
8259
7997
  const valuesString = selectedValues.map((v) => v.label)?.join(", ");
8260
- return /* @__PURE__ */ jsx120(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
7998
+ return /* @__PURE__ */ jsx118(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
8261
7999
  },
8262
- children: isLoading ? /* @__PURE__ */ jsx120(
8263
- Box41,
8000
+ children: isLoading ? /* @__PURE__ */ jsx118(
8001
+ Box39,
8264
8002
  {
8265
8003
  sx: {
8266
8004
  display: "flex",
8267
8005
  justifyContent: "center",
8268
8006
  alignItems: "center"
8269
8007
  },
8270
- children: /* @__PURE__ */ jsx120(CircularProgress5, { size: 24 })
8008
+ children: /* @__PURE__ */ jsx118(CircularProgress5, { size: 24 })
8271
8009
  }
8272
8010
  ) : renderMenuContent()
8273
8011
  }
8274
8012
  ),
8275
- helperText && /* @__PURE__ */ jsx120(FormHelperText4, { children: helperText })
8013
+ helperText && /* @__PURE__ */ jsx118(FormHelperText4, { children: helperText })
8276
8014
  ]
8277
8015
  }
8278
8016
  );
8279
8017
  };
8280
8018
 
8281
8019
  // src/components/SquareLabel/SquareLabel.tsx
8282
- import { memo as memo20 } from "react";
8020
+ import { memo as memo18 } from "react";
8283
8021
  import { Typography as Typography30 } from "@mui/material";
8284
8022
  import { red as red2 } from "@mui/material/colors";
8285
8023
  import { makeStyles as makeStyles43 } from "tss-react/mui";
8286
- import { jsx as jsx121 } from "react/jsx-runtime";
8024
+ import { jsx as jsx119 } from "react/jsx-runtime";
8287
8025
  var useStyles43 = makeStyles43()((theme) => ({
8288
8026
  red: {
8289
8027
  backgroundColor: red2["50"],
@@ -8298,15 +8036,15 @@ var useStyles43 = makeStyles43()((theme) => ({
8298
8036
  }));
8299
8037
  var SquareLabel = ({ color, copy }) => {
8300
8038
  const { classes } = useStyles43();
8301
- return /* @__PURE__ */ jsx121(Typography30, { className: classes[color], children: copy });
8039
+ return /* @__PURE__ */ jsx119(Typography30, { className: classes[color], children: copy });
8302
8040
  };
8303
- var SquareLabel_default = memo20(SquareLabel);
8041
+ var SquareLabel_default = memo18(SquareLabel);
8304
8042
 
8305
8043
  // src/components/Switch/Switch.tsx
8306
- import { memo as memo21 } from "react";
8044
+ import { memo as memo19 } from "react";
8307
8045
  import { Grid as Grid2, Switch } from "@mui/material";
8308
8046
  import { withStyles as withStyles6 } from "tss-react/mui";
8309
- import { jsx as jsx122, jsxs as jsxs84 } from "react/jsx-runtime";
8047
+ import { jsx as jsx120, jsxs as jsxs83 } from "react/jsx-runtime";
8310
8048
  var LSwitch = ({
8311
8049
  checked,
8312
8050
  labelOn,
@@ -8314,7 +8052,7 @@ var LSwitch = ({
8314
8052
  handleChange,
8315
8053
  classes,
8316
8054
  disabled
8317
- }) => /* @__PURE__ */ jsx122("div", { className: classes.c_switch, children: /* @__PURE__ */ jsxs84(
8055
+ }) => /* @__PURE__ */ jsx120("div", { className: classes.c_switch, children: /* @__PURE__ */ jsxs83(
8318
8056
  Grid2,
8319
8057
  {
8320
8058
  component: "label",
@@ -8324,8 +8062,8 @@ var LSwitch = ({
8324
8062
  alignItems: "center"
8325
8063
  },
8326
8064
  children: [
8327
- labelOff && /* @__PURE__ */ jsx122(Grid2, { children: labelOff }),
8328
- /* @__PURE__ */ jsx122(Grid2, { children: /* @__PURE__ */ jsx122(
8065
+ labelOff && /* @__PURE__ */ jsx120(Grid2, { children: labelOff }),
8066
+ /* @__PURE__ */ jsx120(Grid2, { children: /* @__PURE__ */ jsx120(
8329
8067
  Switch,
8330
8068
  {
8331
8069
  checked,
@@ -8334,7 +8072,7 @@ var LSwitch = ({
8334
8072
  disabled
8335
8073
  }
8336
8074
  ) }),
8337
- labelOn && /* @__PURE__ */ jsx122(Grid2, { children: labelOn })
8075
+ labelOn && /* @__PURE__ */ jsx120(Grid2, { children: labelOn })
8338
8076
  ]
8339
8077
  }
8340
8078
  ) });
@@ -8356,14 +8094,14 @@ var LabelledSwitch = withStyles6(LSwitch, (theme) => ({
8356
8094
  fontSize: "1rem"
8357
8095
  }
8358
8096
  }));
8359
- var Switch_default = memo21(LabelledSwitch);
8097
+ var Switch_default = memo19(LabelledSwitch);
8360
8098
 
8361
8099
  // src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
8362
- import { useState as useState17, useEffect as useEffect12 } from "react";
8100
+ import { useState as useState16, useEffect as useEffect11 } from "react";
8363
8101
  import { Menu as Menu4 } from "@mui/material";
8364
8102
  import classNames3 from "classnames";
8365
- import { Fragment as Fragment13, jsx as jsx123, jsxs as jsxs85 } from "react/jsx-runtime";
8366
- var MAX_WIDTH2 = 276;
8103
+ import { Fragment as Fragment13, jsx as jsx121, jsxs as jsxs84 } from "react/jsx-runtime";
8104
+ var MAX_WIDTH = 276;
8367
8105
  var findFilterIndex = (filters, filterOption) => filters.findIndex((item) => {
8368
8106
  if (typeof item === "string" && typeof filterOption === "string") {
8369
8107
  return item === filterOption;
@@ -8380,11 +8118,11 @@ var SmartTableHeaderFilterMenu = ({
8380
8118
  shouldShowCheckOnFilter,
8381
8119
  onApplyFilters
8382
8120
  }) => {
8383
- const [anchorEl, setAnchorEl] = useState17(null);
8384
- const [filterOptionsData, setFilterOptionsData] = useState17();
8385
- const [selectedFilterOptions, setSelectedFilterOptions] = useState17(headerFilters[headCell.id] ?? []);
8121
+ const [anchorEl, setAnchorEl] = useState16(null);
8122
+ const [filterOptionsData, setFilterOptionsData] = useState16();
8123
+ const [selectedFilterOptions, setSelectedFilterOptions] = useState16(headerFilters[headCell.id] ?? []);
8386
8124
  const numFilterOptions = filterOptionsData?.length ?? 0;
8387
- useEffect12(() => {
8125
+ useEffect11(() => {
8388
8126
  if (headCell.filterOptions) {
8389
8127
  setFilterOptionsData(headCell.filterOptions);
8390
8128
  } else if (headCell.filterType === "boolean") {
@@ -8440,11 +8178,11 @@ var SmartTableHeaderFilterMenu = ({
8440
8178
  onApplyFilters?.(updatedFilters, shouldSave);
8441
8179
  setAnchorEl(null);
8442
8180
  };
8443
- useEffect12(() => {
8181
+ useEffect11(() => {
8444
8182
  setSelectedFilterOptions(headerFilters[headCell.id] ?? []);
8445
8183
  }, [headerFilters, headCell.id]);
8446
- return /* @__PURE__ */ jsxs85(Fragment13, { children: [
8447
- /* @__PURE__ */ jsx123(
8184
+ return /* @__PURE__ */ jsxs84(Fragment13, { children: [
8185
+ /* @__PURE__ */ jsx121(
8448
8186
  ActiveFiltersIconButton,
8449
8187
  {
8450
8188
  numActiveFilters,
@@ -8454,7 +8192,7 @@ var SmartTableHeaderFilterMenu = ({
8454
8192
  })
8455
8193
  }
8456
8194
  ),
8457
- /* @__PURE__ */ jsx123(
8195
+ /* @__PURE__ */ jsx121(
8458
8196
  Menu4,
8459
8197
  {
8460
8198
  open: !!anchorEl,
@@ -8463,12 +8201,12 @@ var SmartTableHeaderFilterMenu = ({
8463
8201
  "data-testid": "filter-menu",
8464
8202
  slotProps: {
8465
8203
  list: {
8466
- sx: { p: 0, maxWidth: MAX_WIDTH2 }
8204
+ sx: { p: 0, maxWidth: MAX_WIDTH }
8467
8205
  }
8468
8206
  },
8469
8207
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
8470
8208
  transformOrigin: { vertical: "top", horizontal: "right" },
8471
- children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ jsx123(
8209
+ children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ jsx121(
8472
8210
  AutocompleteFilterMenuContent,
8473
8211
  {
8474
8212
  columnId: headCell.id,
@@ -8481,7 +8219,7 @@ var SmartTableHeaderFilterMenu = ({
8481
8219
  onApplyFiltersClick: handleApplyFiltersClick,
8482
8220
  shouldShowCheckOnFilter
8483
8221
  }
8484
- ) : /* @__PURE__ */ jsx123(
8222
+ ) : /* @__PURE__ */ jsx121(
8485
8223
  CheckboxFilterMenuContent,
8486
8224
  {
8487
8225
  columnId: headCell.id,
@@ -8501,9 +8239,9 @@ var SmartTableHeaderFilterMenu = ({
8501
8239
  };
8502
8240
 
8503
8241
  // src/components/SmartTableHeader/SmartTableHeader.tsx
8504
- import { memo as memo22 } from "react";
8242
+ import { memo as memo20 } from "react";
8505
8243
  import {
8506
- Box as Box42,
8244
+ Box as Box40,
8507
8245
  Checkbox as Checkbox8,
8508
8246
  TableCell,
8509
8247
  TableHead,
@@ -8512,8 +8250,8 @@ import {
8512
8250
  Tooltip as Tooltip11,
8513
8251
  Typography as Typography31
8514
8252
  } from "@mui/material";
8515
- import { jsx as jsx124, jsxs as jsxs86 } from "react/jsx-runtime";
8516
- var SmartTableHeader = memo22(
8253
+ import { jsx as jsx122, jsxs as jsxs85 } from "react/jsx-runtime";
8254
+ var SmartTableHeader = memo20(
8517
8255
  ({
8518
8256
  order,
8519
8257
  orderBy,
@@ -8531,13 +8269,13 @@ var SmartTableHeader = memo22(
8531
8269
  onRequestSort(event, property);
8532
8270
  };
8533
8271
  const isSortActive = (headCellId) => orderBy === headCellId;
8534
- return /* @__PURE__ */ jsx124(TableHead, { children: /* @__PURE__ */ jsxs86(TableRow, { children: [
8535
- enableCheckboxSelection ? /* @__PURE__ */ jsx124(
8272
+ return /* @__PURE__ */ jsx122(TableHead, { children: /* @__PURE__ */ jsxs85(TableRow, { children: [
8273
+ enableCheckboxSelection ? /* @__PURE__ */ jsx122(
8536
8274
  TableCell,
8537
8275
  {
8538
8276
  padding: "checkbox",
8539
8277
  sx: { backgroundColor: colors.neutral100 },
8540
- children: /* @__PURE__ */ jsx124(
8278
+ children: /* @__PURE__ */ jsx122(
8541
8279
  Checkbox8,
8542
8280
  {
8543
8281
  color: "primary",
@@ -8549,7 +8287,7 @@ var SmartTableHeader = memo22(
8549
8287
  )
8550
8288
  }
8551
8289
  ) : null,
8552
- headCells.map((headCell) => /* @__PURE__ */ jsx124(
8290
+ headCells.map((headCell) => /* @__PURE__ */ jsx122(
8553
8291
  TableCell,
8554
8292
  {
8555
8293
  align: "left",
@@ -8573,14 +8311,14 @@ var SmartTableHeader = memo22(
8573
8311
  }
8574
8312
  }
8575
8313
  },
8576
- children: /* @__PURE__ */ jsxs86(
8577
- Box42,
8314
+ children: /* @__PURE__ */ jsxs85(
8315
+ Box40,
8578
8316
  {
8579
8317
  display: "flex",
8580
8318
  flexDirection: "row",
8581
8319
  gap: headCell.disableSort ? 1 : 0,
8582
8320
  children: [
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(
8321
+ 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(
8584
8322
  TableSortLabel,
8585
8323
  {
8586
8324
  "data-testid": "table-sort-label",
@@ -8589,7 +8327,7 @@ var SmartTableHeader = memo22(
8589
8327
  onClick: createSortHandler(headCell.id),
8590
8328
  children: [
8591
8329
  headCell.renderHeader ?? headCell.label,
8592
- orderBy === headCell.id ? /* @__PURE__ */ jsx124(
8330
+ orderBy === headCell.id ? /* @__PURE__ */ jsx122(
8593
8331
  "span",
8594
8332
  {
8595
8333
  style: {
@@ -8609,7 +8347,7 @@ var SmartTableHeader = memo22(
8609
8347
  ]
8610
8348
  }
8611
8349
  ) }),
8612
- headCell.filterType ? /* @__PURE__ */ jsx124(
8350
+ headCell.filterType ? /* @__PURE__ */ jsx122(
8613
8351
  SmartTableHeaderFilterMenu,
8614
8352
  {
8615
8353
  headCell,
@@ -8631,10 +8369,10 @@ var SmartTableHeader = memo22(
8631
8369
 
8632
8370
  // src/components/Table/Table.tsx
8633
8371
  var import_debounce = __toESM(require_debounce(), 1);
8634
- import { useLayoutEffect, useState as useState18 } from "react";
8372
+ import { useLayoutEffect, useState as useState17 } from "react";
8635
8373
  import {
8636
- Box as Box44,
8637
- Paper as Paper12,
8374
+ Box as Box42,
8375
+ Paper as Paper11,
8638
8376
  Table as MUITable,
8639
8377
  TableBody,
8640
8378
  TableCell as TableCell2,
@@ -8647,12 +8385,12 @@ import { makeStyles as makeStyles44 } from "tss-react/mui";
8647
8385
  import { v4 as uuidv4 } from "uuid";
8648
8386
 
8649
8387
  // src/components/TableLoading/TableLoading.tsx
8650
- import { Box as Box43, Skeleton as Skeleton4 } from "@mui/material";
8651
- import { jsx as jsx125 } from "react/jsx-runtime";
8388
+ import { Box as Box41, Skeleton as Skeleton4 } from "@mui/material";
8389
+ import { jsx as jsx123 } from "react/jsx-runtime";
8652
8390
  var TableLoading = ({
8653
8391
  rowsPerPage,
8654
8392
  rowHeight
8655
- }) => /* @__PURE__ */ jsx125(Box43, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx125(
8393
+ }) => /* @__PURE__ */ jsx123(Box41, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx123(
8656
8394
  Skeleton4,
8657
8395
  {
8658
8396
  animation: "pulse",
@@ -8701,7 +8439,7 @@ function calculateRowsPerPage(rowHeight) {
8701
8439
  }
8702
8440
 
8703
8441
  // src/components/Table/Table.tsx
8704
- import { jsx as jsx126, jsxs as jsxs87 } from "react/jsx-runtime";
8442
+ import { jsx as jsx124, jsxs as jsxs86 } from "react/jsx-runtime";
8705
8443
  var useStyles44 = makeStyles44()(() => ({
8706
8444
  root: {
8707
8445
  height: "calc(100vh - 262px)",
@@ -8736,11 +8474,11 @@ var Table = ({
8736
8474
  serverRendered,
8737
8475
  updateSort
8738
8476
  }) => {
8739
- const [order, setOrder] = useState18(appliedFilters?.sortDir || "desc");
8740
- const [orderBy, setOrderBy] = useState18(
8477
+ const [order, setOrder] = useState17(appliedFilters?.sortDir || "desc");
8478
+ const [orderBy, setOrderBy] = useState17(
8741
8479
  appliedFilters?.sortField || "delivery_date"
8742
8480
  );
8743
- const [rowsPerPage, setRowsPerPage] = useState18(defaultRowsPerPage);
8481
+ const [rowsPerPage, setRowsPerPage] = useState17(defaultRowsPerPage);
8744
8482
  const { classes } = useStyles44();
8745
8483
  const rowHeight = 56;
8746
8484
  const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
@@ -8779,24 +8517,24 @@ var Table = ({
8779
8517
  );
8780
8518
  const rowsComponents = rows.map((row) => {
8781
8519
  if (RenderItem) {
8782
- return /* @__PURE__ */ jsx126(RenderItem, { ...row }, row.id);
8520
+ return /* @__PURE__ */ jsx124(RenderItem, { ...row }, row.id);
8783
8521
  }
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);
8522
+ return /* @__PURE__ */ jsx124(TableRow2, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ jsx124(TableCell2, { children: row[column.id] }, column.id)) }, row.id);
8785
8523
  });
8786
8524
  if (emptyRows > 0 && rowsPerPage > emptyRows) {
8787
8525
  rowsComponents.push(
8788
- /* @__PURE__ */ jsx126(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx126(TableCell2, { colSpan: 8 }) }, uuidv4())
8526
+ /* @__PURE__ */ jsx124(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx124(TableCell2, { colSpan: 8 }) }, uuidv4())
8789
8527
  );
8790
8528
  }
8791
8529
  return rowsComponents;
8792
8530
  };
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(
8531
+ 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: [
8532
+ /* @__PURE__ */ jsx124(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx124(TableRow2, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx124(
8795
8533
  TableCell2,
8796
8534
  {
8797
8535
  align: "left",
8798
8536
  sortDirection: orderBy === headCell.id ? order : void 0,
8799
- children: /* @__PURE__ */ jsx126(
8537
+ children: /* @__PURE__ */ jsx124(
8800
8538
  TableSortLabel2,
8801
8539
  {
8802
8540
  active: orderBy === headCell.id,
@@ -8808,9 +8546,9 @@ var Table = ({
8808
8546
  },
8809
8547
  headCell.id
8810
8548
  )) }) }),
8811
- /* @__PURE__ */ jsxs87(TableBody, { children: [
8549
+ /* @__PURE__ */ jsxs86(TableBody, { children: [
8812
8550
  getTableRows(),
8813
- rowsPerPage === emptyRows && /* @__PURE__ */ jsx126(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx126(TableCell2, { colSpan: 8, align: "center", children: "Nothing to display" }) })
8551
+ rowsPerPage === emptyRows && /* @__PURE__ */ jsx124(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx124(TableCell2, { colSpan: 8, align: "center", children: "Nothing to display" }) })
8814
8552
  ] })
8815
8553
  ] }) }) }) });
8816
8554
  };
@@ -8819,22 +8557,22 @@ var Table_default = Table;
8819
8557
  // src/components/TableDesktop/TableDesktop.tsx
8820
8558
  import {
8821
8559
  useMemo as useMemo5,
8822
- useState as useState19,
8823
- useEffect as useEffect13,
8824
- useRef as useRef8
8560
+ useState as useState18,
8561
+ useEffect as useEffect12,
8562
+ useRef as useRef7
8825
8563
  } from "react";
8826
- import { Paper as Paper13, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as Box46 } from "@mui/material";
8564
+ import { Paper as Paper12, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as Box44 } from "@mui/material";
8827
8565
 
8828
8566
  // src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
8829
8567
  import { Skeleton as Skeleton5, TableCell as TableCell3, TableRow as TableRow3 } from "@mui/material";
8830
- import { jsx as jsx127 } from "react/jsx-runtime";
8568
+ import { jsx as jsx125 } from "react/jsx-runtime";
8831
8569
  var getRange = (n) => Array.from({ length: n }, (_, i) => i + 1);
8832
8570
  var TableDesktopLoadingState = ({
8833
8571
  numRows,
8834
8572
  numColumns,
8835
8573
  rowHeight = 56
8836
8574
  }) => {
8837
- return getRange(numRows).map((rowNum) => /* @__PURE__ */ jsx127(TableRow3, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ jsx127(TableCell3, { children: /* @__PURE__ */ jsx127(
8575
+ return getRange(numRows).map((rowNum) => /* @__PURE__ */ jsx125(TableRow3, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ jsx125(TableCell3, { children: /* @__PURE__ */ jsx125(
8838
8576
  Skeleton5,
8839
8577
  {
8840
8578
  animation: "pulse",
@@ -8854,9 +8592,9 @@ import Typography32 from "@mui/material/Typography";
8854
8592
 
8855
8593
  // src/components/Buttons/BaseButton/BaseIconButton.tsx
8856
8594
  import { Button as Button16 } from "@mui/material";
8857
- import { jsxs as jsxs88 } from "react/jsx-runtime";
8595
+ import { jsxs as jsxs87 } from "react/jsx-runtime";
8858
8596
  var BaseIconButton = ({ icon, sx, ...props }) => {
8859
- return /* @__PURE__ */ jsxs88(
8597
+ return /* @__PURE__ */ jsxs87(
8860
8598
  Button16,
8861
8599
  {
8862
8600
  sx: {
@@ -8877,10 +8615,10 @@ var BaseIconButton = ({ icon, sx, ...props }) => {
8877
8615
  };
8878
8616
 
8879
8617
  // src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
8880
- import { jsx as jsx128, jsxs as jsxs89 } from "react/jsx-runtime";
8618
+ import { jsx as jsx126, jsxs as jsxs88 } from "react/jsx-runtime";
8881
8619
  var TableDesktopNoColumnsMessage = ({
8882
8620
  onClickNoColumnsMessageOpenMenu
8883
- }) => /* @__PURE__ */ jsx128(TableBody2, { children: /* @__PURE__ */ jsx128(TableRow4, { children: /* @__PURE__ */ jsxs89(
8621
+ }) => /* @__PURE__ */ jsx126(TableBody2, { children: /* @__PURE__ */ jsx126(TableRow4, { children: /* @__PURE__ */ jsxs88(
8884
8622
  TableCell4,
8885
8623
  {
8886
8624
  sx: {
@@ -8893,9 +8631,9 @@ var TableDesktopNoColumnsMessage = ({
8893
8631
  alignItems: "center"
8894
8632
  },
8895
8633
  children: [
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(
8634
+ /* @__PURE__ */ jsx126(Typography32, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
8635
+ /* @__PURE__ */ jsx126(Typography32, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
8636
+ /* @__PURE__ */ jsxs88(
8899
8637
  Typography32,
8900
8638
  {
8901
8639
  variant: "subtitle1",
@@ -8908,18 +8646,18 @@ var TableDesktopNoColumnsMessage = ({
8908
8646
  },
8909
8647
  children: [
8910
8648
  "Tips: ",
8911
- /* @__PURE__ */ jsx128(Typography32, { component: "strong", children: "Save as default" }),
8649
+ /* @__PURE__ */ jsx126(Typography32, { component: "strong", children: "Save as default" }),
8912
8650
  " to keep these columns for future views"
8913
8651
  ]
8914
8652
  }
8915
8653
  ),
8916
- /* @__PURE__ */ jsx128(
8654
+ /* @__PURE__ */ jsx126(
8917
8655
  BaseIconButton,
8918
8656
  {
8919
8657
  variant: "contained",
8920
8658
  color: "primary",
8921
8659
  onClick: onClickNoColumnsMessageOpenMenu,
8922
- icon: /* @__PURE__ */ jsx128(IconTableEdit_default, { fill: colors.white }),
8660
+ icon: /* @__PURE__ */ jsx126(IconTableEdit_default, { fill: colors.white }),
8923
8661
  children: "OPEN MENU"
8924
8662
  }
8925
8663
  )
@@ -8928,7 +8666,7 @@ var TableDesktopNoColumnsMessage = ({
8928
8666
  ) }) });
8929
8667
 
8930
8668
  // src/components/TableDesktopRows/TableDesktopRows.tsx
8931
- import { jsx as jsx129 } from "react/jsx-runtime";
8669
+ import { jsx as jsx127 } from "react/jsx-runtime";
8932
8670
  var descendingComparator2 = (a, b, orderBy) => {
8933
8671
  const objA = a[orderBy];
8934
8672
  const objB = b[orderBy];
@@ -8975,7 +8713,7 @@ var TableDesktopRows = ({
8975
8713
  return sortedData.map((row, index) => {
8976
8714
  const rowId = getRowId(row);
8977
8715
  const isItemSelected = selectedRows.has(rowId);
8978
- return /* @__PURE__ */ jsx129(
8716
+ return /* @__PURE__ */ jsx127(
8979
8717
  RenderItem,
8980
8718
  {
8981
8719
  ...{
@@ -8997,8 +8735,8 @@ var TableDesktopRows = ({
8997
8735
  };
8998
8736
 
8999
8737
  // src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
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";
8738
+ import { Box as Box43, Button as Button17, Typography as Typography33 } from "@mui/material";
8739
+ import { jsx as jsx128, jsxs as jsxs89 } from "react/jsx-runtime";
9002
8740
  var TableDesktopRowSelectionBar = ({
9003
8741
  isEveryRowInPageSelected,
9004
8742
  isRowsFromAllPagesSelected,
@@ -9017,8 +8755,8 @@ var TableDesktopRowSelectionBar = ({
9017
8755
  }
9018
8756
  return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
9019
8757
  };
9020
- return isAnyRowSelected ? /* @__PURE__ */ jsxs90(
9021
- Box45,
8758
+ return isAnyRowSelected ? /* @__PURE__ */ jsxs89(
8759
+ Box43,
9022
8760
  {
9023
8761
  sx: {
9024
8762
  p: 1,
@@ -9030,13 +8768,13 @@ var TableDesktopRowSelectionBar = ({
9030
8768
  backgroundColor: colors.neutral150
9031
8769
  },
9032
8770
  children: [
9033
- /* @__PURE__ */ jsx130(Typography33, { children: getSelectedRowsText() }),
9034
- !isRowsFromAllPagesSelected ? /* @__PURE__ */ jsxs90(Button17, { onClick: onSelectRowsFromAllPagesClick, children: [
8771
+ /* @__PURE__ */ jsx128(Typography33, { children: getSelectedRowsText() }),
8772
+ !isRowsFromAllPagesSelected ? /* @__PURE__ */ jsxs89(Button17, { onClick: onSelectRowsFromAllPagesClick, children: [
9035
8773
  "Select all ",
9036
8774
  totalRowCount,
9037
8775
  " rows from all pages based on your filters"
9038
8776
  ] }) : null,
9039
- /* @__PURE__ */ jsx130(Button17, { onClick: onClearSelectionClick, children: "Clear Selection" })
8777
+ /* @__PURE__ */ jsx128(Button17, { onClick: onClearSelectionClick, children: "Clear Selection" })
9040
8778
  ]
9041
8779
  }
9042
8780
  ) : null;
@@ -9045,7 +8783,7 @@ var TableDesktopRowSelectionBar = ({
9045
8783
  // src/components/TableEmptyResult/TableEmptyResult.tsx
9046
8784
  import { TableCell as TableCell5, TableRow as TableRow5, Typography as Typography34 } from "@mui/material";
9047
8785
  import { makeStyles as makeStyles45 } from "tss-react/mui";
9048
- import { jsx as jsx131, jsxs as jsxs91 } from "react/jsx-runtime";
8786
+ import { jsx as jsx129, jsxs as jsxs90 } from "react/jsx-runtime";
9049
8787
  var useStyles45 = makeStyles45()(() => ({
9050
8788
  tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
9051
8789
  tableCellDefault: { padding: 24 }
@@ -9057,17 +8795,17 @@ var TableEmptyResult = ({
9057
8795
  }
9058
8796
  }) => {
9059
8797
  const { classes } = useStyles45();
9060
- return showClearFilterButton ? /* @__PURE__ */ jsx131(TableRow5, { children: /* @__PURE__ */ jsxs91(
8798
+ return showClearFilterButton ? /* @__PURE__ */ jsx129(TableRow5, { children: /* @__PURE__ */ jsxs90(
9061
8799
  TableCell5,
9062
8800
  {
9063
8801
  className: classes.tableCellIcon,
9064
8802
  colSpan,
9065
8803
  align: "center",
9066
8804
  children: [
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(
8805
+ /* @__PURE__ */ jsx129(EmptyGlassIcon_default, {}),
8806
+ /* @__PURE__ */ jsx129(Typography34, { variant: "h6", children: "No results found." }),
8807
+ /* @__PURE__ */ jsx129(Typography34, { variant: "subtitle1", children: "Search without applied filters?" }),
8808
+ /* @__PURE__ */ jsx129(
9071
8809
  FilledButton_default,
9072
8810
  {
9073
8811
  copy: "Search",
@@ -9078,7 +8816,7 @@ var TableEmptyResult = ({
9078
8816
  )
9079
8817
  ]
9080
8818
  }
9081
- ) }) : /* @__PURE__ */ jsx131(TableRow5, { children: /* @__PURE__ */ jsx131(
8819
+ ) }) : /* @__PURE__ */ jsx129(TableRow5, { children: /* @__PURE__ */ jsx129(
9082
8820
  TableCell5,
9083
8821
  {
9084
8822
  className: classes.tableCellDefault,
@@ -9091,7 +8829,7 @@ var TableEmptyResult = ({
9091
8829
  var TableEmptyResult_default = TableEmptyResult;
9092
8830
 
9093
8831
  // src/components/TableDesktop/TableDesktop.tsx
9094
- import { Fragment as Fragment14, jsx as jsx132, jsxs as jsxs92 } from "react/jsx-runtime";
8832
+ import { Fragment as Fragment14, jsx as jsx130, jsxs as jsxs91 } from "react/jsx-runtime";
9095
8833
  var resolveKeyValue = (keyField, rowData) => {
9096
8834
  if (typeof keyField === "string") {
9097
8835
  return rowData[keyField];
@@ -9124,15 +8862,15 @@ var TableDesktop = ({
9124
8862
  shouldShowCheckOnFilter,
9125
8863
  refetchData
9126
8864
  }) => {
9127
- const tableToolbarMenuButtonRef = useRef8(null);
9128
- const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = useState19(null);
9129
- const [order, setOrder] = useState19(appliedFilters?.sortDir || "desc");
9130
- const [orderBy, setOrderBy] = useState19(
8865
+ const tableToolbarMenuButtonRef = useRef7(null);
8866
+ const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = useState18(null);
8867
+ const [order, setOrder] = useState18(appliedFilters?.sortDir || "desc");
8868
+ const [orderBy, setOrderBy] = useState18(
9131
8869
  appliedFilters?.sortField || "delivery_date"
9132
8870
  );
9133
- const [selectedRows, setSelectedRows] = useState19(/* @__PURE__ */ new Set());
9134
- const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = useState19(false);
9135
- const [isBulkChangesMode, setIsBulkChangesMode] = useState19(false);
8871
+ const [selectedRows, setSelectedRows] = useState18(/* @__PURE__ */ new Set());
8872
+ const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = useState18(false);
8873
+ const [isBulkChangesMode, setIsBulkChangesMode] = useState18(false);
9136
8874
  const numRows = data.length;
9137
8875
  const numSelectedRows = useMemo5(() => {
9138
8876
  const currentPageIds = new Set(
@@ -9207,14 +8945,14 @@ var TableDesktop = ({
9207
8945
  refetchData?.();
9208
8946
  }
9209
8947
  };
9210
- useEffect13(() => {
8948
+ useEffect12(() => {
9211
8949
  if (isRowsFromAllPagesSelected) {
9212
8950
  selectAllRowsInPage();
9213
8951
  }
9214
8952
  }, [isRowsFromAllPagesSelected, data]);
9215
8953
  const renderBody = () => {
9216
8954
  if (isLoading) {
9217
- return /* @__PURE__ */ jsx132(
8955
+ return /* @__PURE__ */ jsx130(
9218
8956
  TableDesktopLoadingState,
9219
8957
  {
9220
8958
  numRows: Math.min(rowsPerPage, 10),
@@ -9224,7 +8962,7 @@ var TableDesktop = ({
9224
8962
  );
9225
8963
  }
9226
8964
  if (numRows === 0) {
9227
- return /* @__PURE__ */ jsx132(
8965
+ return /* @__PURE__ */ jsx130(
9228
8966
  TableEmptyResult_default,
9229
8967
  {
9230
8968
  showClearFilterButton,
@@ -9233,7 +8971,7 @@ var TableDesktop = ({
9233
8971
  }
9234
8972
  );
9235
8973
  }
9236
- return /* @__PURE__ */ jsx132(
8974
+ return /* @__PURE__ */ jsx130(
9237
8975
  TableDesktopRows,
9238
8976
  {
9239
8977
  data,
@@ -9252,8 +8990,8 @@ var TableDesktop = ({
9252
8990
  }
9253
8991
  );
9254
8992
  };
9255
- return /* @__PURE__ */ jsx132(
9256
- Box46,
8993
+ return /* @__PURE__ */ jsx130(
8994
+ Box44,
9257
8995
  {
9258
8996
  sx: {
9259
8997
  height,
@@ -9261,8 +8999,8 @@ var TableDesktop = ({
9261
8999
  justifyContent: "space-between",
9262
9000
  justifyItems: "stretch"
9263
9001
  },
9264
- children: /* @__PURE__ */ jsxs92(
9265
- Paper13,
9002
+ children: /* @__PURE__ */ jsxs91(
9003
+ Paper12,
9266
9004
  {
9267
9005
  sx: {
9268
9006
  width: "100%",
@@ -9286,7 +9024,7 @@ var TableDesktop = ({
9286
9024
  isBulkChangesMode,
9287
9025
  onChangeBulkChangesMode: handleChangeBulkChangesMode
9288
9026
  }) : null,
9289
- /* @__PURE__ */ jsx132(
9027
+ /* @__PURE__ */ jsx130(
9290
9028
  TableDesktopRowSelectionBar,
9291
9029
  {
9292
9030
  isEveryRowInPageSelected,
@@ -9297,7 +9035,7 @@ var TableDesktop = ({
9297
9035
  onClearSelectionClick: handleClearSelectionClick
9298
9036
  }
9299
9037
  ),
9300
- /* @__PURE__ */ jsx132(
9038
+ /* @__PURE__ */ jsx130(
9301
9039
  TableContainer2,
9302
9040
  {
9303
9041
  sx: {
@@ -9319,13 +9057,13 @@ var TableDesktop = ({
9319
9057
  backgroundColor: (theme) => theme.palette.grey[500]
9320
9058
  }
9321
9059
  },
9322
- children: /* @__PURE__ */ jsx132(Table2, { stickyHeader: true, "aria-label": "sticky-table", sx: { tableLayout }, children: visibleHeadCells.length === 0 ? /* @__PURE__ */ jsx132(
9060
+ children: /* @__PURE__ */ jsx130(Table2, { stickyHeader: true, "aria-label": "sticky-table", sx: { tableLayout }, children: visibleHeadCells.length === 0 ? /* @__PURE__ */ jsx130(
9323
9061
  TableDesktopNoColumnsMessage,
9324
9062
  {
9325
9063
  onClickNoColumnsMessageOpenMenu: handleClickToolbarMenuOpen
9326
9064
  }
9327
- ) : /* @__PURE__ */ jsxs92(Fragment14, { children: [
9328
- /* @__PURE__ */ jsx132(
9065
+ ) : /* @__PURE__ */ jsxs91(Fragment14, { children: [
9066
+ /* @__PURE__ */ jsx130(
9329
9067
  SmartTableHeader,
9330
9068
  {
9331
9069
  order,
@@ -9341,7 +9079,7 @@ var TableDesktop = ({
9341
9079
  shouldShowCheckOnFilter
9342
9080
  }
9343
9081
  ),
9344
- /* @__PURE__ */ jsx132(TableBody3, { children: renderBody() })
9082
+ /* @__PURE__ */ jsx130(TableBody3, { children: renderBody() })
9345
9083
  ] }) })
9346
9084
  }
9347
9085
  ),
@@ -9358,7 +9096,7 @@ var TableDesktop = ({
9358
9096
  };
9359
9097
 
9360
9098
  // src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
9361
- import { useEffect as useEffect15, useState as useState24 } from "react";
9099
+ import { useEffect as useEffect14, useState as useState23 } from "react";
9362
9100
  import DeleteIcon from "@mui/icons-material/Delete";
9363
9101
  import { Checkbox as Checkbox9, FormControlLabel as FormControlLabel6 } from "@mui/material";
9364
9102
  import { DatePicker, TimePicker } from "@mui/x-date-pickers";
@@ -9366,7 +9104,7 @@ import moment2 from "moment";
9366
9104
 
9367
9105
  // src/components/TableDesktopEditableField/TableDesktopSmartMultipleSelect.tsx
9368
9106
  import { useMemo as useMemo6 } from "react";
9369
- import { jsx as jsx133 } from "react/jsx-runtime";
9107
+ import { jsx as jsx131 } from "react/jsx-runtime";
9370
9108
  var TableDesktopSmartMultipleSelect = ({
9371
9109
  initialValue,
9372
9110
  inputLabel,
@@ -9387,7 +9125,7 @@ var TableDesktopSmartMultipleSelect = ({
9387
9125
  label: val[fieldName].toString()
9388
9126
  }));
9389
9127
  }, [initialValue]);
9390
- return /* @__PURE__ */ jsx133(
9128
+ return /* @__PURE__ */ jsx131(
9391
9129
  SmartMultipleSelect,
9392
9130
  {
9393
9131
  inputLabel,
@@ -9418,8 +9156,8 @@ var TableDesktopSmartMultipleSelect = ({
9418
9156
  };
9419
9157
 
9420
9158
  // src/components/TableDesktopEditableField/TableDesktopSmartSelect.tsx
9421
- import { useState as useState20 } from "react";
9422
- import { jsx as jsx134 } from "react/jsx-runtime";
9159
+ import { useState as useState19 } from "react";
9160
+ import { jsx as jsx132 } from "react/jsx-runtime";
9423
9161
  var TableDesktopSmartSelect = ({
9424
9162
  ref,
9425
9163
  initialValue,
@@ -9436,12 +9174,12 @@ var TableDesktopSmartSelect = ({
9436
9174
  isFetchingFilterOptions,
9437
9175
  onUpdateEditableCell
9438
9176
  }) => {
9439
- const [value, setValue] = useState20(
9177
+ const [value, setValue] = useState19(
9440
9178
  initialValue
9441
9179
  );
9442
9180
  const valueId = resolveObjectType(value ?? "", "id");
9443
9181
  const valueLabel = resolveObjectType(value ?? "", fieldName);
9444
- return /* @__PURE__ */ jsx134(
9182
+ return /* @__PURE__ */ jsx132(
9445
9183
  SmartSelect,
9446
9184
  {
9447
9185
  ref,
@@ -9473,18 +9211,18 @@ var TableDesktopSmartSelect = ({
9473
9211
  };
9474
9212
 
9475
9213
  // src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
9476
- import { useEffect as useEffect14, useMemo as useMemo7, useState as useState22, useRef as useRef9 } from "react";
9214
+ import { useEffect as useEffect13, useMemo as useMemo7, useState as useState21, useRef as useRef8 } from "react";
9477
9215
 
9478
9216
  // src/components/HashtagInput/HashtagInput.tsx
9479
- import { useState as useState21 } from "react";
9217
+ import { useState as useState20 } from "react";
9480
9218
  import {
9481
9219
  Autocomplete,
9482
9220
  Chip as Chip5,
9483
9221
  TextField as TextField8,
9484
- alpha as alpha3,
9222
+ alpha as alpha2,
9485
9223
  useTheme as useTheme2
9486
9224
  } from "@mui/material";
9487
- import { jsx as jsx135 } from "react/jsx-runtime";
9225
+ import { jsx as jsx133 } from "react/jsx-runtime";
9488
9226
  import { createElement } from "react";
9489
9227
  var HashtagInput = ({
9490
9228
  label,
@@ -9500,7 +9238,7 @@ var HashtagInput = ({
9500
9238
  ...props
9501
9239
  }) => {
9502
9240
  const { palette } = useTheme2();
9503
- const [inputValue, setInputValue] = useState21("");
9241
+ const [inputValue, setInputValue] = useState20("");
9504
9242
  const sanitizeTag = (value) => {
9505
9243
  return value.toLowerCase().replace(/[^a-z0-9#]/g, "").trim();
9506
9244
  };
@@ -9517,7 +9255,7 @@ var HashtagInput = ({
9517
9255
  handleAddTag();
9518
9256
  }
9519
9257
  };
9520
- return /* @__PURE__ */ jsx135(
9258
+ return /* @__PURE__ */ jsx133(
9521
9259
  Autocomplete,
9522
9260
  {
9523
9261
  ...props,
@@ -9536,7 +9274,7 @@ var HashtagInput = ({
9536
9274
  onDeleteTag?.(details.option);
9537
9275
  }
9538
9276
  },
9539
- renderInput: (textFieldProps) => /* @__PURE__ */ jsx135(
9277
+ renderInput: (textFieldProps) => /* @__PURE__ */ jsx133(
9540
9278
  TextField8,
9541
9279
  {
9542
9280
  ...textFieldProps,
@@ -9567,7 +9305,7 @@ var HashtagInput = ({
9567
9305
  paddingBlock: 0,
9568
9306
  color: palette.primary.main,
9569
9307
  fontWeight: "bold",
9570
- backgroundColor: alpha3(palette.primary.main, 0.1)
9308
+ backgroundColor: alpha2(palette.primary.main, 0.1)
9571
9309
  }
9572
9310
  }
9573
9311
  );
@@ -9577,7 +9315,7 @@ var HashtagInput = ({
9577
9315
  };
9578
9316
 
9579
9317
  // src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
9580
- import { Fragment as Fragment15, jsx as jsx136 } from "react/jsx-runtime";
9318
+ import { Fragment as Fragment15, jsx as jsx134 } from "react/jsx-runtime";
9581
9319
  var TableDesktopTagsField = ({
9582
9320
  initialValue,
9583
9321
  inputLabel,
@@ -9588,9 +9326,9 @@ var TableDesktopTagsField = ({
9588
9326
  size,
9589
9327
  onUpdateEditableCell
9590
9328
  }) => {
9591
- const [error, setError] = useState22();
9592
- const [values, setValues] = useState22([]);
9593
- const valuesRef = useRef9([]);
9329
+ const [error, setError] = useState21();
9330
+ const [values, setValues] = useState21([]);
9331
+ const valuesRef = useRef8([]);
9594
9332
  const validateTag = (tag) => {
9595
9333
  if (tag.length >= 30) {
9596
9334
  return false;
@@ -9612,11 +9350,11 @@ var TableDesktopTagsField = ({
9612
9350
  const initialValueTags = useMemo7(() => {
9613
9351
  return (initialValue ?? []).map((val) => val.tag);
9614
9352
  }, [initialValue]);
9615
- useEffect14(() => {
9353
+ useEffect13(() => {
9616
9354
  setValues(initialValueTags);
9617
9355
  valuesRef.current = initialValueTags;
9618
9356
  }, [initialValueTags]);
9619
- return /* @__PURE__ */ jsx136(Fragment15, { children: /* @__PURE__ */ jsx136(
9357
+ return /* @__PURE__ */ jsx134(Fragment15, { children: /* @__PURE__ */ jsx134(
9620
9358
  HashtagInput,
9621
9359
  {
9622
9360
  autoFocus: true,
@@ -9651,9 +9389,9 @@ var TableDesktopTagsField = ({
9651
9389
  };
9652
9390
 
9653
9391
  // src/components/TableDesktopEditableField/TableDesktopTextField.tsx
9654
- import { useMemo as useMemo8, useState as useState23, useRef as useRef10 } from "react";
9392
+ import { useMemo as useMemo8, useState as useState22, useRef as useRef9 } from "react";
9655
9393
  import { TextField as TextField9 } from "@mui/material";
9656
- import { jsx as jsx137 } from "react/jsx-runtime";
9394
+ import { jsx as jsx135 } from "react/jsx-runtime";
9657
9395
  var TableDesktopTextField = ({
9658
9396
  rowId,
9659
9397
  initialValue,
@@ -9666,8 +9404,8 @@ var TableDesktopTextField = ({
9666
9404
  validateInput,
9667
9405
  onUpdateEditableCell
9668
9406
  }) => {
9669
- const [input, setInput] = useState23(initialValue);
9670
- const oldValue = useRef10(initialValue);
9407
+ const [input, setInput] = useState22(initialValue);
9408
+ const oldValue = useRef9(initialValue);
9671
9409
  const isDirty = useMemo8(
9672
9410
  () => input !== oldValue.current,
9673
9411
  [input, oldValue.current]
@@ -9690,7 +9428,7 @@ var TableDesktopTextField = ({
9690
9428
  commitValue(input);
9691
9429
  }
9692
9430
  };
9693
- return /* @__PURE__ */ jsx137(
9431
+ return /* @__PURE__ */ jsx135(
9694
9432
  TextField9,
9695
9433
  {
9696
9434
  fullWidth: true,
@@ -9723,7 +9461,7 @@ var TableDesktopTextField = ({
9723
9461
  };
9724
9462
 
9725
9463
  // src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
9726
- import { jsx as jsx138 } from "react/jsx-runtime";
9464
+ import { jsx as jsx136 } from "react/jsx-runtime";
9727
9465
  var TableDesktopEditableField = ({
9728
9466
  editInitialValue,
9729
9467
  rowId,
@@ -9744,8 +9482,8 @@ var TableDesktopEditableField = ({
9744
9482
  allowBlankSelectOption
9745
9483
  }
9746
9484
  }) => {
9747
- const [parsedFilterOptions, setParsedFilterOptions] = useState24();
9748
- useEffect15(() => {
9485
+ const [parsedFilterOptions, setParsedFilterOptions] = useState23();
9486
+ useEffect14(() => {
9749
9487
  if (filterOptions && editableCellType === "select" || editableCellType === "multipleSelect") {
9750
9488
  const parsedOptions = filterOptions?.map(
9751
9489
  (option) => ({
@@ -9757,7 +9495,7 @@ var TableDesktopEditableField = ({
9757
9495
  }
9758
9496
  }, [filterOptions, editableCellType]);
9759
9497
  const editableComponents = {
9760
- select: /* @__PURE__ */ jsx138(
9498
+ select: /* @__PURE__ */ jsx136(
9761
9499
  TableDesktopSmartSelect,
9762
9500
  {
9763
9501
  rowId,
@@ -9775,7 +9513,7 @@ var TableDesktopEditableField = ({
9775
9513
  onUpdateEditableCell
9776
9514
  }
9777
9515
  ),
9778
- multipleSelect: /* @__PURE__ */ jsx138(
9516
+ multipleSelect: /* @__PURE__ */ jsx136(
9779
9517
  TableDesktopSmartMultipleSelect,
9780
9518
  {
9781
9519
  rowId,
@@ -9792,11 +9530,11 @@ var TableDesktopEditableField = ({
9792
9530
  onUpdateEditableCell
9793
9531
  }
9794
9532
  ),
9795
- checkbox: /* @__PURE__ */ jsx138(
9533
+ checkbox: /* @__PURE__ */ jsx136(
9796
9534
  FormControlLabel6,
9797
9535
  {
9798
9536
  label: showCheckboxLabel ? inputLabel : "",
9799
- control: /* @__PURE__ */ jsx138(
9537
+ control: /* @__PURE__ */ jsx136(
9800
9538
  Checkbox9,
9801
9539
  {
9802
9540
  disableRipple: true,
@@ -9814,7 +9552,7 @@ var TableDesktopEditableField = ({
9814
9552
  )
9815
9553
  }
9816
9554
  ),
9817
- text: /* @__PURE__ */ jsx138(
9555
+ text: /* @__PURE__ */ jsx136(
9818
9556
  TableDesktopTextField,
9819
9557
  {
9820
9558
  type: "text",
@@ -9829,7 +9567,7 @@ var TableDesktopEditableField = ({
9829
9567
  onUpdateEditableCell
9830
9568
  }
9831
9569
  ),
9832
- numeric: /* @__PURE__ */ jsx138(
9570
+ numeric: /* @__PURE__ */ jsx136(
9833
9571
  TableDesktopTextField,
9834
9572
  {
9835
9573
  type: "numeric",
@@ -9844,7 +9582,7 @@ var TableDesktopEditableField = ({
9844
9582
  onUpdateEditableCell
9845
9583
  }
9846
9584
  ),
9847
- date: /* @__PURE__ */ jsx138(
9585
+ date: /* @__PURE__ */ jsx136(
9848
9586
  DatePicker,
9849
9587
  {
9850
9588
  defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
@@ -9873,7 +9611,7 @@ var TableDesktopEditableField = ({
9873
9611
  }
9874
9612
  }
9875
9613
  ),
9876
- time: /* @__PURE__ */ jsx138(
9614
+ time: /* @__PURE__ */ jsx136(
9877
9615
  TimePicker,
9878
9616
  {
9879
9617
  defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
@@ -9900,7 +9638,7 @@ var TableDesktopEditableField = ({
9900
9638
  }
9901
9639
  }
9902
9640
  ),
9903
- tags: /* @__PURE__ */ jsx138(
9641
+ tags: /* @__PURE__ */ jsx136(
9904
9642
  TableDesktopTagsField,
9905
9643
  {
9906
9644
  initialValue: editInitialValue,
@@ -9922,7 +9660,7 @@ var TableDesktopEditableField = ({
9922
9660
  // src/components/TableDesktopFooter/TableDesktopFooter.tsx
9923
9661
  import Refresh3 from "@mui/icons-material/Refresh";
9924
9662
  import {
9925
- Box as Box47,
9663
+ Box as Box45,
9926
9664
  Button as Button18,
9927
9665
  MenuItem as MenuItem4,
9928
9666
  Pagination as Pagination2,
@@ -9930,7 +9668,7 @@ import {
9930
9668
  Stack,
9931
9669
  Typography as Typography35
9932
9670
  } from "@mui/material";
9933
- import { jsx as jsx139, jsxs as jsxs93 } from "react/jsx-runtime";
9671
+ import { jsx as jsx137, jsxs as jsxs92 } from "react/jsx-runtime";
9934
9672
  var TableDesktopFooter = ({
9935
9673
  numPages,
9936
9674
  page,
@@ -9941,8 +9679,8 @@ var TableDesktopFooter = ({
9941
9679
  refetchData,
9942
9680
  isFetching
9943
9681
  }) => {
9944
- return /* @__PURE__ */ jsxs93(
9945
- Box47,
9682
+ return /* @__PURE__ */ jsxs92(
9683
+ Box45,
9946
9684
  {
9947
9685
  sx: {
9948
9686
  py: 1,
@@ -9953,7 +9691,7 @@ var TableDesktopFooter = ({
9953
9691
  borderTop: `1px solid ${colors.neutral300}`
9954
9692
  },
9955
9693
  children: [
9956
- refetchData ? /* @__PURE__ */ jsx139(
9694
+ refetchData ? /* @__PURE__ */ jsx137(
9957
9695
  Button18,
9958
9696
  {
9959
9697
  disableRipple: true,
@@ -9965,7 +9703,7 @@ var TableDesktopFooter = ({
9965
9703
  ml: 1,
9966
9704
  gap: 1
9967
9705
  },
9968
- children: /* @__PURE__ */ jsx139(
9706
+ children: /* @__PURE__ */ jsx137(
9969
9707
  Refresh3,
9970
9708
  {
9971
9709
  fontSize: "small",
@@ -9974,21 +9712,21 @@ var TableDesktopFooter = ({
9974
9712
  )
9975
9713
  }
9976
9714
  ) : null,
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(
9715
+ /* @__PURE__ */ jsxs92(Box45, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
9716
+ pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ jsxs92(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
9717
+ /* @__PURE__ */ jsx137(Typography35, { fontSize: 12, children: "Rows per page:" }),
9718
+ /* @__PURE__ */ jsx137(
9981
9719
  Select5,
9982
9720
  {
9983
9721
  value: pageSize,
9984
9722
  onChange: onPageSizeChange,
9985
9723
  size: "small",
9986
9724
  variant: "standard",
9987
- children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ jsx139(MenuItem4, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
9725
+ children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ jsx137(MenuItem4, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
9988
9726
  }
9989
9727
  )
9990
9728
  ] }) : null,
9991
- /* @__PURE__ */ jsx139(
9729
+ /* @__PURE__ */ jsx137(
9992
9730
  Pagination2,
9993
9731
  {
9994
9732
  color: "standard",
@@ -10004,15 +9742,15 @@ var TableDesktopFooter = ({
10004
9742
  };
10005
9743
 
10006
9744
  // src/components/TableDesktopCell/TableDesktopCell.tsx
10007
- import { useEffect as useEffect16, useState as useState25 } from "react";
9745
+ import { useEffect as useEffect15, useState as useState24 } from "react";
10008
9746
  import CheckIcon3 from "@mui/icons-material/Check";
10009
9747
  import CloseIcon from "@mui/icons-material/Close";
10010
9748
  import EditIcon from "@mui/icons-material/Edit";
10011
9749
  import { IconButton as IconButton6, TableCell as TableCell6, Tooltip as Tooltip12 } from "@mui/material";
10012
- import { Fragment as Fragment16, jsx as jsx140, jsxs as jsxs94 } from "react/jsx-runtime";
9750
+ import { Fragment as Fragment16, jsx as jsx138, jsxs as jsxs93 } from "react/jsx-runtime";
10013
9751
  var getReadOnlyBooleanIcon = (value) => {
10014
9752
  if (value) {
10015
- return /* @__PURE__ */ jsx140(CheckIcon3, { sx: { fontSize: 16 } });
9753
+ return /* @__PURE__ */ jsx138(CheckIcon3, { sx: { fontSize: 16 } });
10016
9754
  }
10017
9755
  return "-";
10018
9756
  };
@@ -10034,10 +9772,10 @@ var TableDesktopCell = ({
10034
9772
  onCellClick,
10035
9773
  headCell
10036
9774
  }) => {
10037
- const [isCellHovered, setIsCellHovered] = useState25(false);
10038
- const [isCellInEditMode, setIsCellInEditMode] = useState25(false);
9775
+ const [isCellHovered, setIsCellHovered] = useState24(false);
9776
+ const [isCellInEditMode, setIsCellInEditMode] = useState24(false);
10039
9777
  const { width, editableCellType } = headCell;
10040
- useEffect16(() => {
9778
+ useEffect15(() => {
10041
9779
  const handleKeyDown = (e) => {
10042
9780
  if (e.key === "Escape") {
10043
9781
  setIsCellInEditMode(false);
@@ -10055,7 +9793,7 @@ var TableDesktopCell = ({
10055
9793
  setIsCellInEditMode((prev) => !prev);
10056
9794
  };
10057
9795
  const isCellEditable = !!enableEditMode && !!editableCellType && !disabled;
10058
- return /* @__PURE__ */ jsx140(
9796
+ return /* @__PURE__ */ jsx138(
10059
9797
  TableCell6,
10060
9798
  {
10061
9799
  align: "left",
@@ -10070,8 +9808,8 @@ var TableDesktopCell = ({
10070
9808
  ":hover": isCellEditable ? getCellBackgroundColor(isCellInEditMode) : void 0,
10071
9809
  background: enableEditMode && isCellInEditMode ? colors.lightBlueBackground : void 0
10072
9810
  },
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(
9811
+ children: /* @__PURE__ */ jsx138(DynamicOverflowTooltip, { tooltipDescription: String(readOnlyValue), arrow: true, children: /* @__PURE__ */ jsxs93(Fragment16, { children: [
9812
+ enableEditMode && isCellHovered ? /* @__PURE__ */ jsx138(Tooltip12, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ jsx138(
10075
9813
  IconButton6,
10076
9814
  {
10077
9815
  onClick: handleEditClick,
@@ -10086,10 +9824,10 @@ var TableDesktopCell = ({
10086
9824
  backgroundColor: isCellInEditMode ? colors.lightBlueBackground : colors.neutral150
10087
9825
  }
10088
9826
  },
10089
- children: isCellInEditMode ? /* @__PURE__ */ jsx140(CloseIcon, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx140(EditIcon, { fontSize: "small" })
9827
+ children: isCellInEditMode ? /* @__PURE__ */ jsx138(CloseIcon, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx138(EditIcon, { fontSize: "small" })
10090
9828
  }
10091
9829
  ) }) : null,
10092
- enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ jsx140(
9830
+ enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ jsx138(
10093
9831
  TableDesktopEditableField,
10094
9832
  {
10095
9833
  editInitialValue,
@@ -10106,15 +9844,15 @@ var TableDesktopCell = ({
10106
9844
 
10107
9845
  // src/components/TableDesktopToolbar/TableDesktopToolbar.tsx
10108
9846
  import {
10109
- useState as useState26,
9847
+ useState as useState25,
10110
9848
  useMemo as useMemo9,
10111
- useRef as useRef11
9849
+ useRef as useRef10
10112
9850
  } from "react";
10113
9851
  import Download from "@mui/icons-material/Download";
10114
9852
  import KeyboardArrowLeft2 from "@mui/icons-material/KeyboardArrowLeft";
10115
9853
  import KeyboardArrowRight2 from "@mui/icons-material/KeyboardArrowRight";
10116
9854
  import {
10117
- Box as Box48,
9855
+ Box as Box46,
10118
9856
  Button as Button19,
10119
9857
  Divider as Divider11,
10120
9858
  FormControlLabel as FormControlLabel7,
@@ -10123,7 +9861,7 @@ import {
10123
9861
  Tooltip as Tooltip13,
10124
9862
  Typography as Typography36
10125
9863
  } from "@mui/material";
10126
- import { Fragment as Fragment17, jsx as jsx141, jsxs as jsxs95 } from "react/jsx-runtime";
9864
+ import { Fragment as Fragment17, jsx as jsx139, jsxs as jsxs94 } from "react/jsx-runtime";
10127
9865
  var TableDesktopToolbar = ({
10128
9866
  toolbarLabel,
10129
9867
  headCells,
@@ -10146,11 +9884,11 @@ var TableDesktopToolbar = ({
10146
9884
  renderTableColumnConfigurationMenu,
10147
9885
  renderInfoIcons
10148
9886
  }) => {
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);
9887
+ const scrollRef = useRef10(null);
9888
+ const [bulkChanges, setBulkChanges] = useState25([]);
9889
+ const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = useState25(false);
9890
+ const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = useState25(false);
9891
+ const [resetCounter, setResetCounter] = useState25(0);
10154
9892
  const visibleEditableColumns = useMemo9(
10155
9893
  () => headCells.filter(
10156
9894
  (headCell) => headCell?.enabled && !!headCell?.editableCellType
@@ -10177,8 +9915,8 @@ var TableDesktopToolbar = ({
10177
9915
  return [...prev, { field: columnId, value, label }];
10178
9916
  });
10179
9917
  };
10180
- return /* @__PURE__ */ jsxs95(
10181
- Box48,
9918
+ return /* @__PURE__ */ jsxs94(
9919
+ Box46,
10182
9920
  {
10183
9921
  sx: {
10184
9922
  borderBottom: "1px solid",
@@ -10186,8 +9924,8 @@ var TableDesktopToolbar = ({
10186
9924
  maxWidth: "100%"
10187
9925
  },
10188
9926
  children: [
10189
- /* @__PURE__ */ jsxs95(
10190
- Box48,
9927
+ /* @__PURE__ */ jsxs94(
9928
+ Box46,
10191
9929
  {
10192
9930
  sx: {
10193
9931
  py: 1,
@@ -10198,8 +9936,8 @@ var TableDesktopToolbar = ({
10198
9936
  background: isBulkChangesMode ? colors.neutral150 : void 0
10199
9937
  },
10200
9938
  children: [
10201
- /* @__PURE__ */ jsxs95(
10202
- Box48,
9939
+ /* @__PURE__ */ jsxs94(
9940
+ Box46,
10203
9941
  {
10204
9942
  sx: {
10205
9943
  py: 1,
@@ -10209,20 +9947,20 @@ var TableDesktopToolbar = ({
10209
9947
  whiteSpace: "nowrap"
10210
9948
  },
10211
9949
  children: [
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 } })
9950
+ toolbarLabel ? /* @__PURE__ */ jsxs94(Fragment17, { children: [
9951
+ /* @__PURE__ */ jsx139(Typography36, { variant: "subtitle2", color: "textSecondary", children: toolbarLabel }),
9952
+ /* @__PURE__ */ jsx139(Divider11, { orientation: "vertical", sx: { height: 0.75, py: 2.5 } })
10215
9953
  ] }) : null,
10216
- renderBulkChangesDialog && refetchData ? /* @__PURE__ */ jsx141(
9954
+ renderBulkChangesDialog && refetchData ? /* @__PURE__ */ jsx139(
10217
9955
  Tooltip13,
10218
9956
  {
10219
9957
  title: disableBulkChangesMode ? "Access denied, you don\u2019t have permission to use this feature." : "",
10220
- children: /* @__PURE__ */ jsx141(
9958
+ children: /* @__PURE__ */ jsx139(
10221
9959
  FormControlLabel7,
10222
9960
  {
10223
9961
  label: "Bulk Changes Mode",
10224
9962
  disabled: disableBulkChangesMode || !visibleEditableColumns.length,
10225
- control: /* @__PURE__ */ jsx141(
9963
+ control: /* @__PURE__ */ jsx139(
10226
9964
  Switch2,
10227
9965
  {
10228
9966
  size: "small",
@@ -10237,17 +9975,17 @@ var TableDesktopToolbar = ({
10237
9975
  ]
10238
9976
  }
10239
9977
  ),
10240
- isScrollable && /* @__PURE__ */ jsx141(
9978
+ isScrollable && /* @__PURE__ */ jsx139(
10241
9979
  IconButton7,
10242
9980
  {
10243
9981
  "aria-label": "scroll-left",
10244
9982
  sx: { padding: 0, alignSelf: "center" },
10245
9983
  onClick: () => scroll("left"),
10246
- children: /* @__PURE__ */ jsx141(KeyboardArrowLeft2, {})
9984
+ children: /* @__PURE__ */ jsx139(KeyboardArrowLeft2, {})
10247
9985
  }
10248
9986
  ),
10249
- /* @__PURE__ */ jsx141(
10250
- Box48,
9987
+ /* @__PURE__ */ jsx139(
9988
+ Box46,
10251
9989
  {
10252
9990
  ref: scrollRef,
10253
9991
  sx: {
@@ -10268,11 +10006,11 @@ var TableDesktopToolbar = ({
10268
10006
  if (bulkUpdateDisabled) {
10269
10007
  return null;
10270
10008
  }
10271
- return editableCellType && /* @__PURE__ */ jsx141(
10272
- Box48,
10009
+ return editableCellType && /* @__PURE__ */ jsx139(
10010
+ Box46,
10273
10011
  {
10274
10012
  sx: { width, flex: "0 0 auto" },
10275
- children: /* @__PURE__ */ jsx141(
10013
+ children: /* @__PURE__ */ jsx139(
10276
10014
  TableDesktopEditableField,
10277
10015
  {
10278
10016
  headCell,
@@ -10288,17 +10026,17 @@ var TableDesktopToolbar = ({
10288
10026
  }) : null
10289
10027
  }
10290
10028
  ),
10291
- isScrollable && /* @__PURE__ */ jsx141(
10029
+ isScrollable && /* @__PURE__ */ jsx139(
10292
10030
  IconButton7,
10293
10031
  {
10294
10032
  "aria-label": "scroll-right",
10295
10033
  sx: { p: 0, alignSelf: "center" },
10296
10034
  onClick: () => scroll("right"),
10297
- children: /* @__PURE__ */ jsx141(KeyboardArrowRight2, {})
10035
+ children: /* @__PURE__ */ jsx139(KeyboardArrowRight2, {})
10298
10036
  }
10299
10037
  ),
10300
- isBulkChangesMode ? /* @__PURE__ */ jsxs95(Fragment17, { children: [
10301
- /* @__PURE__ */ jsx141(
10038
+ isBulkChangesMode ? /* @__PURE__ */ jsxs94(Fragment17, { children: [
10039
+ /* @__PURE__ */ jsx139(
10302
10040
  Button19,
10303
10041
  {
10304
10042
  variant: "outlined",
@@ -10311,7 +10049,7 @@ var TableDesktopToolbar = ({
10311
10049
  children: "RESET"
10312
10050
  }
10313
10051
  ),
10314
- /* @__PURE__ */ jsx141(
10052
+ /* @__PURE__ */ jsx139(
10315
10053
  Button19,
10316
10054
  {
10317
10055
  variant: "contained",
@@ -10322,26 +10060,26 @@ var TableDesktopToolbar = ({
10322
10060
  children: "APPLY"
10323
10061
  }
10324
10062
  )
10325
- ] }) : /* @__PURE__ */ jsxs95(Box48, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
10063
+ ] }) : /* @__PURE__ */ jsxs94(Box46, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
10326
10064
  renderInfoIcons,
10327
- renderExportCsvDialog ? /* @__PURE__ */ jsx141(Tooltip13, { title: "Download List", children: /* @__PURE__ */ jsx141("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx141(
10065
+ renderExportCsvDialog ? /* @__PURE__ */ jsx139(Tooltip13, { title: "Download List", children: /* @__PURE__ */ jsx139("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx139(
10328
10066
  IconButton7,
10329
10067
  {
10330
10068
  disableRipple: true,
10331
10069
  disabled: isDataEmpty,
10332
10070
  "aria-label": "export-csv-button",
10333
10071
  onClick: () => setIsExportCsvDialogOpen(true),
10334
- children: /* @__PURE__ */ jsx141(Download, { fill: colors.neutral750 })
10072
+ children: /* @__PURE__ */ jsx139(Download, { fill: colors.neutral750 })
10335
10073
  }
10336
10074
  ) }) }) : null,
10337
- renderTableColumnConfigurationMenu ? /* @__PURE__ */ jsx141(Tooltip13, { title: "Table Column Configuration", children: /* @__PURE__ */ jsx141(
10075
+ renderTableColumnConfigurationMenu ? /* @__PURE__ */ jsx139(Tooltip13, { title: "Table Column Configuration", children: /* @__PURE__ */ jsx139(
10338
10076
  IconButton7,
10339
10077
  {
10340
10078
  disableRipple: true,
10341
10079
  "aria-label": "table-column-config-button",
10342
10080
  ref: tableToolbarMenuButtonRef,
10343
10081
  onClick: onClickToolbarMenuOpen,
10344
- children: /* @__PURE__ */ jsx141(IconTableEdit_default, { fill: colors.neutral750 })
10082
+ children: /* @__PURE__ */ jsx139(IconTableEdit_default, { fill: colors.neutral750 })
10345
10083
  }
10346
10084
  ) }) : null
10347
10085
  ] })
@@ -10374,11 +10112,11 @@ var TableDesktopToolbar = ({
10374
10112
  };
10375
10113
 
10376
10114
  // src/components/TableHeader/TableHeader.tsx
10377
- import { memo as memo23, useEffect as useEffect17, useState as useState27 } from "react";
10115
+ import { memo as memo21, useEffect as useEffect16, useState as useState26 } from "react";
10378
10116
  import ImportExportIcon from "@mui/icons-material/ImportExport";
10379
10117
  import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
10380
10118
  import { makeStyles as makeStyles46 } from "tss-react/mui";
10381
- import { jsx as jsx142 } from "react/jsx-runtime";
10119
+ import { jsx as jsx140 } from "react/jsx-runtime";
10382
10120
  var useStyles46 = makeStyles46()(() => ({
10383
10121
  sortLabel: {
10384
10122
  "& .MuiTableSortLabel-icon": {
@@ -10387,9 +10125,9 @@ var useStyles46 = makeStyles46()(() => ({
10387
10125
  }
10388
10126
  }));
10389
10127
  var TableHeader = ({ cells, onSort = null }) => {
10390
- const [sortableCells, setSortableCells] = useState27([]);
10128
+ const [sortableCells, setSortableCells] = useState26([]);
10391
10129
  const { classes } = useStyles46();
10392
- useEffect17(() => {
10130
+ useEffect16(() => {
10393
10131
  setSortableCells(cells);
10394
10132
  }, []);
10395
10133
  const getNewSortDirection = (direction) => {
@@ -10423,7 +10161,7 @@ var TableHeader = ({ cells, onSort = null }) => {
10423
10161
  });
10424
10162
  setSortableCells(sortedCells);
10425
10163
  };
10426
- return /* @__PURE__ */ jsx142(TableHead3, { children: /* @__PURE__ */ jsx142(TableRow6, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx142(TableCell7, { children: cell.isSortable ? /* @__PURE__ */ jsx142(
10164
+ return /* @__PURE__ */ jsx140(TableHead3, { children: /* @__PURE__ */ jsx140(TableRow6, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx140(TableCell7, { children: cell.isSortable ? /* @__PURE__ */ jsx140(
10427
10165
  TableSortLabel3,
10428
10166
  {
10429
10167
  className: classes.sortLabel,
@@ -10434,12 +10172,12 @@ var TableHeader = ({ cells, onSort = null }) => {
10434
10172
  }
10435
10173
  ) : cell.label }, cell.label || key)) }) });
10436
10174
  };
10437
- var TableHeader_default = memo23(TableHeader);
10175
+ var TableHeader_default = memo21(TableHeader);
10438
10176
 
10439
10177
  // src/components/TextDivider/TextDivider.tsx
10440
- import { Box as Box49, Typography as Typography37, Divider as Divider12, Button as Button20 } from "@mui/material";
10178
+ import { Box as Box47, Typography as Typography37, Divider as Divider12, Button as Button20 } from "@mui/material";
10441
10179
  import { makeStyles as makeStyles47 } from "tss-react/mui";
10442
- import { jsx as jsx143, jsxs as jsxs96 } from "react/jsx-runtime";
10180
+ import { jsx as jsx141, jsxs as jsxs95 } from "react/jsx-runtime";
10443
10181
  var useStyles47 = makeStyles47()(() => ({
10444
10182
  icon: {
10445
10183
  fontSize: 20
@@ -10476,18 +10214,18 @@ var TextDivider = ({
10476
10214
  }) => {
10477
10215
  const { classes } = useStyles47();
10478
10216
  const iconColor = color ?? colors.neutral900;
10479
- return /* @__PURE__ */ jsxs96(
10480
- Box49,
10217
+ return /* @__PURE__ */ jsxs95(
10218
+ Box47,
10481
10219
  {
10482
10220
  display: "flex",
10483
10221
  alignItems: "center",
10484
10222
  justifyContent: "space-between",
10485
10223
  className: classes.container,
10486
10224
  children: [
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(
10225
+ /* @__PURE__ */ jsx141(Divider12, { className: classes.leftDivider }),
10226
+ /* @__PURE__ */ jsx141(Button20, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs95(Box47, { className: classes.center, children: [
10227
+ Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx141(Icon2, { className: classes.icon, style: { color: iconColor } }),
10228
+ /* @__PURE__ */ jsx141(
10491
10229
  Typography37,
10492
10230
  {
10493
10231
  color: "textSecondary",
@@ -10496,9 +10234,9 @@ var TextDivider = ({
10496
10234
  children: title
10497
10235
  }
10498
10236
  ),
10499
- Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx143(Icon2, { className: classes.icon, style: { color: iconColor } })
10237
+ Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx141(Icon2, { className: classes.icon, style: { color: iconColor } })
10500
10238
  ] }) }),
10501
- /* @__PURE__ */ jsx143(Divider12, { className: classes.rightDivider })
10239
+ /* @__PURE__ */ jsx141(Divider12, { className: classes.rightDivider })
10502
10240
  ]
10503
10241
  }
10504
10242
  );
@@ -10510,7 +10248,7 @@ import { DateRangePicker } from "react-dates";
10510
10248
  import { makeStyles as makeStyles48 } from "tss-react/mui";
10511
10249
  import "react-dates/initialize";
10512
10250
  import "react-dates/lib/css/_datepicker.css";
10513
- import { jsx as jsx144 } from "react/jsx-runtime";
10251
+ import { jsx as jsx142 } from "react/jsx-runtime";
10514
10252
  var useStyles48 = makeStyles48()((theme) => ({
10515
10253
  wrapper: {
10516
10254
  "& .DateRangePicker": {
@@ -10606,15 +10344,15 @@ var ThemedDateRangePicker = ({
10606
10344
  ...props
10607
10345
  }) => {
10608
10346
  const { classes, cx } = useStyles48();
10609
- return /* @__PURE__ */ jsx144("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx144(DateRangePicker, { ...props }) });
10347
+ return /* @__PURE__ */ jsx142("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx142(DateRangePicker, { ...props }) });
10610
10348
  };
10611
10349
  var ThemedDateRangePicker_default = ThemedDateRangePicker;
10612
10350
 
10613
10351
  // src/components/TheToolbar/TheToolbar.tsx
10614
- import { memo as memo24 } from "react";
10615
- import { AppBar, Box as Box50, Toolbar } from "@mui/material";
10352
+ import { memo as memo22 } from "react";
10353
+ import { AppBar, Box as Box48, Toolbar } from "@mui/material";
10616
10354
  import { makeStyles as makeStyles49 } from "tss-react/mui";
10617
- import { jsx as jsx145, jsxs as jsxs97 } from "react/jsx-runtime";
10355
+ import { jsx as jsx143, jsxs as jsxs96 } from "react/jsx-runtime";
10618
10356
  var useStyles49 = makeStyles49()((theme) => ({
10619
10357
  menuButton: {
10620
10358
  color: theme.palette.primary.contrastText
@@ -10631,14 +10369,13 @@ var TheToolbar = ({
10631
10369
  handleOpen,
10632
10370
  LeftDrawer,
10633
10371
  leftSection,
10634
- centerSection,
10635
10372
  rightSection,
10636
10373
  isAuthenticated = true
10637
10374
  }) => {
10638
10375
  const { classes } = useStyles49();
10639
- return /* @__PURE__ */ jsxs97(Box50, { children: [
10640
- /* @__PURE__ */ jsx145(AppBar, { children: /* @__PURE__ */ jsxs97(Toolbar, { className: classes.topBar, children: [
10641
- isAuthenticated ? /* @__PURE__ */ jsx145(
10376
+ return /* @__PURE__ */ jsxs96(Box48, { children: [
10377
+ /* @__PURE__ */ jsx143(AppBar, { children: /* @__PURE__ */ jsxs96(Toolbar, { className: classes.topBar, children: [
10378
+ isAuthenticated ? /* @__PURE__ */ jsx143(
10642
10379
  RoundButton_default,
10643
10380
  {
10644
10381
  className: classes.menuButton,
@@ -10647,7 +10384,7 @@ var TheToolbar = ({
10647
10384
  onClick: handleOpen
10648
10385
  }
10649
10386
  ) : null,
10650
- /* @__PURE__ */ jsx145(
10387
+ /* @__PURE__ */ jsx143(
10651
10388
  CompanyLogo_default,
10652
10389
  {
10653
10390
  size: "small",
@@ -10656,42 +10393,30 @@ var TheToolbar = ({
10656
10393
  imageLogoLightSmall
10657
10394
  }
10658
10395
  ),
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 })
10396
+ /* @__PURE__ */ jsx143(Box48, { ml: 2, children: leftSection }),
10397
+ /* @__PURE__ */ jsx143(Box48, { ml: "auto", children: rightSection })
10673
10398
  ] }) }),
10674
10399
  LeftDrawer
10675
10400
  ] });
10676
10401
  };
10677
- var TheToolbar_default = memo24(TheToolbar);
10402
+ var TheToolbar_default = memo22(TheToolbar);
10678
10403
 
10679
10404
  // src/components/ToastMessage/ToastMessage.tsx
10680
10405
  import { Alert as MuiAlert, Snackbar } from "@mui/material";
10681
- import { jsx as jsx146 } from "react/jsx-runtime";
10406
+ import { jsx as jsx144 } from "react/jsx-runtime";
10682
10407
  var ToastMessage = ({
10683
10408
  toastType,
10684
10409
  toastMessage,
10685
10410
  open,
10686
10411
  onClose
10687
- }) => /* @__PURE__ */ jsx146(
10412
+ }) => /* @__PURE__ */ jsx144(
10688
10413
  Snackbar,
10689
10414
  {
10690
10415
  open,
10691
10416
  autoHideDuration: 3e3,
10692
10417
  onClose,
10693
10418
  anchorOrigin: { vertical: "top", horizontal: "right" },
10694
- children: /* @__PURE__ */ jsx146(
10419
+ children: /* @__PURE__ */ jsx144(
10695
10420
  MuiAlert,
10696
10421
  {
10697
10422
  elevation: 6,
@@ -10722,13 +10447,13 @@ import {
10722
10447
  Typography as Typography38,
10723
10448
  Dialog as Dialog5,
10724
10449
  Backdrop,
10725
- Box as Box51,
10450
+ Box as Box49,
10726
10451
  Divider as Divider13,
10727
- Paper as Paper14,
10452
+ Paper as Paper13,
10728
10453
  Fade as Fade2
10729
10454
  } from "@mui/material";
10730
10455
  import { makeStyles as makeStyles50 } from "tss-react/mui";
10731
- import { jsx as jsx147, jsxs as jsxs98 } from "react/jsx-runtime";
10456
+ import { jsx as jsx145, jsxs as jsxs97 } from "react/jsx-runtime";
10732
10457
  var useStyles50 = makeStyles50()((theme) => ({
10733
10458
  paper: {
10734
10459
  padding: theme.spacing(2)
@@ -10758,7 +10483,7 @@ var TwoButtonDialog = ({
10758
10483
  cancelButton
10759
10484
  }) => {
10760
10485
  const { classes } = useStyles50();
10761
- return /* @__PURE__ */ jsx147(
10486
+ return /* @__PURE__ */ jsx145(
10762
10487
  Dialog5,
10763
10488
  {
10764
10489
  open,
@@ -10768,10 +10493,10 @@ var TwoButtonDialog = ({
10768
10493
  closeAfterTransition: true,
10769
10494
  BackdropComponent: Backdrop,
10770
10495
  BackdropProps: { timeout: 500 },
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,
10496
+ children: /* @__PURE__ */ jsx145(Fade2, { in: open, children: /* @__PURE__ */ jsxs97(Paper13, { className: classes.paper, children: [
10497
+ /* @__PURE__ */ jsxs97(Box49, { className: classes.mb, children: [
10498
+ /* @__PURE__ */ jsx145(Typography38, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx145(
10499
+ Box49,
10775
10500
  {
10776
10501
  sx: {
10777
10502
  fontWeight: 600
@@ -10779,23 +10504,23 @@ var TwoButtonDialog = ({
10779
10504
  children: title
10780
10505
  }
10781
10506
  ) }),
10782
- /* @__PURE__ */ jsxs98(
10783
- Box51,
10507
+ /* @__PURE__ */ jsxs97(
10508
+ Box49,
10784
10509
  {
10785
10510
  className: classes.mt,
10786
10511
  sx: {
10787
10512
  fontWeight: 600
10788
10513
  },
10789
10514
  children: [
10790
- subtitle1 && /* @__PURE__ */ jsx147(Typography38, { variant: "subtitle1", children: subtitle1 }),
10791
- subtitle2 && /* @__PURE__ */ jsx147(Typography38, { variant: "subtitle1", children: subtitle2 })
10515
+ subtitle1 && /* @__PURE__ */ jsx145(Typography38, { variant: "subtitle1", children: subtitle1 }),
10516
+ subtitle2 && /* @__PURE__ */ jsx145(Typography38, { variant: "subtitle1", children: subtitle2 })
10792
10517
  ]
10793
10518
  }
10794
10519
  )
10795
10520
  ] }),
10796
- /* @__PURE__ */ jsx147(Divider13, {}),
10797
- /* @__PURE__ */ jsxs98(Box51, { className: classes.buttonContainer, children: [
10798
- /* @__PURE__ */ jsx147(
10521
+ /* @__PURE__ */ jsx145(Divider13, {}),
10522
+ /* @__PURE__ */ jsxs97(Box49, { className: classes.buttonContainer, children: [
10523
+ /* @__PURE__ */ jsx145(
10799
10524
  FilledButton_default,
10800
10525
  {
10801
10526
  copy: cancelLabel,
@@ -10808,7 +10533,7 @@ var TwoButtonDialog = ({
10808
10533
  }
10809
10534
  }
10810
10535
  ),
10811
- /* @__PURE__ */ jsx147(
10536
+ /* @__PURE__ */ jsx145(
10812
10537
  FilledButton_default,
10813
10538
  {
10814
10539
  color: "primary",
@@ -10817,7 +10542,7 @@ var TwoButtonDialog = ({
10817
10542
  }
10818
10543
  )
10819
10544
  ] }),
10820
- /* @__PURE__ */ jsx147(Loading_default, { isLoading: dialogLoading })
10545
+ /* @__PURE__ */ jsx145(Loading_default, { isLoading: dialogLoading })
10821
10546
  ] }) })
10822
10547
  }
10823
10548
  );
@@ -10825,11 +10550,11 @@ var TwoButtonDialog = ({
10825
10550
  var TwoButtonDialog_default = TwoButtonDialog;
10826
10551
 
10827
10552
  // src/components/UserBust/UserBust.tsx
10828
- import { memo as memo25 } from "react";
10553
+ import { memo as memo23 } from "react";
10829
10554
  import { Avatar as Avatar2, Typography as Typography39 } from "@mui/material";
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(
10555
+ import { jsx as jsx146, jsxs as jsxs98 } from "react/jsx-runtime";
10556
+ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs98("div", { children: [
10557
+ /* @__PURE__ */ jsx146(
10833
10558
  Avatar2,
10834
10559
  {
10835
10560
  src: user.profile_picture,
@@ -10837,18 +10562,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs9
10837
10562
  style: { width: avatarProps.width, height: avatarProps.height }
10838
10563
  }
10839
10564
  ),
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 })
10565
+ /* @__PURE__ */ jsxs98("div", { style: { paddingTop: 16 }, children: [
10566
+ /* @__PURE__ */ jsx146(Typography39, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
10567
+ /* @__PURE__ */ jsx146(Typography39, { ...typographyProps.username, children: user.username })
10843
10568
  ] })
10844
10569
  ] });
10845
- var UserBust_default = memo25(UserBust);
10570
+ var UserBust_default = memo23(UserBust);
10846
10571
 
10847
10572
  // src/components/icons/IconChart.tsx
10848
- import { jsx as jsx149 } from "react/jsx-runtime";
10573
+ import { jsx as jsx147 } from "react/jsx-runtime";
10849
10574
  var SvgIconChart = (props) => {
10850
10575
  const { fill } = props;
10851
- return /* @__PURE__ */ jsx149(
10576
+ return /* @__PURE__ */ jsx147(
10852
10577
  "svg",
10853
10578
  {
10854
10579
  width: "20",
@@ -10857,7 +10582,7 @@ var SvgIconChart = (props) => {
10857
10582
  fill: "none",
10858
10583
  xmlns: "http://www.w3.org/2000/svg",
10859
10584
  ...props,
10860
- children: /* @__PURE__ */ jsx149(
10585
+ children: /* @__PURE__ */ jsx147(
10861
10586
  "path",
10862
10587
  {
10863
10588
  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",
@@ -10904,8 +10629,6 @@ export {
10904
10629
  FilterOptionsCheckboxes,
10905
10630
  FilterSimpleSelector_default as FilterSimpleSelector,
10906
10631
  FixedFooter_default as FixedFooter,
10907
- GlobalSearch_default as GlobalSearch,
10908
- GlobalSearchTrigger_default as GlobalSearchTrigger,
10909
10632
  GooglePlacesAddressAutocomplete,
10910
10633
  HashtagInput,
10911
10634
  Header_default as Header,