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

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