@natoora-libs/core 0.2.33 → 0.2.34-dev-doug-1

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.
@@ -29,9 +29,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  ));
30
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
31
 
32
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js
32
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js
33
33
  var require_isObject = __commonJS({
34
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js"(exports2, module2) {
34
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js"(exports2, module2) {
35
35
  function isObject(value) {
36
36
  var type = typeof value;
37
37
  return value != null && (type == "object" || type == "function");
@@ -40,17 +40,17 @@ var require_isObject = __commonJS({
40
40
  }
41
41
  });
42
42
 
43
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js
43
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js
44
44
  var require_freeGlobal = __commonJS({
45
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js"(exports2, module2) {
45
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js"(exports2, module2) {
46
46
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
47
47
  module2.exports = freeGlobal;
48
48
  }
49
49
  });
50
50
 
51
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js
51
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js
52
52
  var require_root = __commonJS({
53
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js"(exports2, module2) {
53
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js"(exports2, module2) {
54
54
  var freeGlobal = require_freeGlobal();
55
55
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
56
56
  var root = freeGlobal || freeSelf || Function("return this")();
@@ -58,9 +58,9 @@ var require_root = __commonJS({
58
58
  }
59
59
  });
60
60
 
61
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js
61
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js
62
62
  var require_now = __commonJS({
63
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js"(exports2, module2) {
63
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js"(exports2, module2) {
64
64
  var root = require_root();
65
65
  var now = function() {
66
66
  return root.Date.now();
@@ -69,9 +69,9 @@ var require_now = __commonJS({
69
69
  }
70
70
  });
71
71
 
72
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js
72
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js
73
73
  var require_trimmedEndIndex = __commonJS({
74
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js"(exports2, module2) {
74
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js"(exports2, module2) {
75
75
  var reWhitespace = /\s/;
76
76
  function trimmedEndIndex(string) {
77
77
  var index = string.length;
@@ -83,9 +83,9 @@ var require_trimmedEndIndex = __commonJS({
83
83
  }
84
84
  });
85
85
 
86
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js
86
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js
87
87
  var require_baseTrim = __commonJS({
88
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js"(exports2, module2) {
88
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js"(exports2, module2) {
89
89
  var trimmedEndIndex = require_trimmedEndIndex();
90
90
  var reTrimStart = /^\s+/;
91
91
  function baseTrim(string) {
@@ -95,18 +95,18 @@ var require_baseTrim = __commonJS({
95
95
  }
96
96
  });
97
97
 
98
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js
98
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js
99
99
  var require_Symbol = __commonJS({
100
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js"(exports2, module2) {
100
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js"(exports2, module2) {
101
101
  var root = require_root();
102
102
  var Symbol2 = root.Symbol;
103
103
  module2.exports = Symbol2;
104
104
  }
105
105
  });
106
106
 
107
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js
107
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js
108
108
  var require_getRawTag = __commonJS({
109
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js"(exports2, module2) {
109
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js"(exports2, module2) {
110
110
  var Symbol2 = require_Symbol();
111
111
  var objectProto = Object.prototype;
112
112
  var hasOwnProperty = objectProto.hasOwnProperty;
@@ -133,9 +133,9 @@ var require_getRawTag = __commonJS({
133
133
  }
134
134
  });
135
135
 
136
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js
136
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js
137
137
  var require_objectToString = __commonJS({
138
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js"(exports2, module2) {
138
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js"(exports2, module2) {
139
139
  var objectProto = Object.prototype;
140
140
  var nativeObjectToString = objectProto.toString;
141
141
  function objectToString(value) {
@@ -145,9 +145,9 @@ var require_objectToString = __commonJS({
145
145
  }
146
146
  });
147
147
 
148
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js
148
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js
149
149
  var require_baseGetTag = __commonJS({
150
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js"(exports2, module2) {
150
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js"(exports2, module2) {
151
151
  var Symbol2 = require_Symbol();
152
152
  var getRawTag = require_getRawTag();
153
153
  var objectToString = require_objectToString();
@@ -164,9 +164,9 @@ var require_baseGetTag = __commonJS({
164
164
  }
165
165
  });
166
166
 
167
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js
167
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js
168
168
  var require_isObjectLike = __commonJS({
169
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js"(exports2, module2) {
169
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js"(exports2, module2) {
170
170
  function isObjectLike(value) {
171
171
  return value != null && typeof value == "object";
172
172
  }
@@ -174,9 +174,9 @@ var require_isObjectLike = __commonJS({
174
174
  }
175
175
  });
176
176
 
177
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js
177
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js
178
178
  var require_isSymbol = __commonJS({
179
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js"(exports2, module2) {
179
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js"(exports2, module2) {
180
180
  var baseGetTag = require_baseGetTag();
181
181
  var isObjectLike = require_isObjectLike();
182
182
  var symbolTag = "[object Symbol]";
@@ -187,9 +187,9 @@ var require_isSymbol = __commonJS({
187
187
  }
188
188
  });
189
189
 
190
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js
190
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js
191
191
  var require_toNumber = __commonJS({
192
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js"(exports2, module2) {
192
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js"(exports2, module2) {
193
193
  var baseTrim = require_baseTrim();
194
194
  var isObject = require_isObject();
195
195
  var isSymbol = require_isSymbol();
@@ -220,9 +220,9 @@ var require_toNumber = __commonJS({
220
220
  }
221
221
  });
222
222
 
223
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js
223
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js
224
224
  var require_debounce = __commonJS({
225
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js"(exports2, module2) {
225
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js"(exports2, module2) {
226
226
  var isObject = require_isObject();
227
227
  var now = require_now();
228
228
  var toNumber = require_toNumber();
@@ -352,6 +352,8 @@ __export(components_exports, {
352
352
  FilterOptionsCheckboxes: () => FilterOptionsCheckboxes,
353
353
  FilterSimpleSelector: () => FilterSimpleSelector_default,
354
354
  FixedFooter: () => FixedFooter_default,
355
+ GlobalSearch: () => GlobalSearch_default,
356
+ GlobalSearchTrigger: () => GlobalSearchTrigger_default,
355
357
  GooglePlacesAddressAutocomplete: () => GooglePlacesAddressAutocomplete,
356
358
  HashtagInput: () => HashtagInput,
357
359
  Header: () => Header_default,
@@ -6015,10 +6017,283 @@ var FixedFooter = ({ justifyContent, children }) => {
6015
6017
  };
6016
6018
  var FixedFooter_default = React4.memo(FixedFooter);
6017
6019
 
6018
- // src/components/Header/Header.tsx
6020
+ // src/components/GlobalSearchTrigger/GlobalSearchTrigger.tsx
6021
+ var import_react26 = require("react");
6022
+ var import_SearchRounded = __toESM(require("@mui/icons-material/SearchRounded"), 1);
6019
6023
  var import_material45 = require("@mui/material");
6020
- var import_mui30 = require("tss-react/mui");
6024
+ var import_styles3 = require("@mui/material/styles");
6021
6025
  var import_jsx_runtime97 = require("react/jsx-runtime");
6026
+ var GlobalSearchTrigger = ({
6027
+ onClick,
6028
+ onFocus,
6029
+ onChange,
6030
+ onKeyDown,
6031
+ readOnly = true,
6032
+ placeholder = "Search",
6033
+ ariaLabel = "Global search",
6034
+ shortcutLabel = "\u2318 K",
6035
+ value = "",
6036
+ minWidth = 220,
6037
+ sx,
6038
+ ref,
6039
+ inputRef
6040
+ }) => {
6041
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
6042
+ import_material45.Paper,
6043
+ {
6044
+ ref,
6045
+ elevation: 0,
6046
+ onClick,
6047
+ role: "search",
6048
+ sx: {
6049
+ display: "flex",
6050
+ alignItems: "center",
6051
+ gap: 1,
6052
+ border: `1px solid ${(0, import_styles3.alpha)(colors.white, 0.22)}`,
6053
+ borderRadius: 1,
6054
+ px: 1.5,
6055
+ py: 0.75,
6056
+ minWidth,
6057
+ backgroundColor: (0, import_styles3.alpha)(colors.black, 0.2),
6058
+ color: (0, import_styles3.alpha)(colors.white, 0.82),
6059
+ transition: "background-color 0.15s ease, border-color 0.15s ease",
6060
+ "&:hover": {
6061
+ borderColor: (0, import_styles3.alpha)(colors.white, 0.38),
6062
+ backgroundColor: (0, import_styles3.alpha)(colors.black, 0.35)
6063
+ },
6064
+ "&:focus-within": {
6065
+ borderColor: (0, import_styles3.alpha)(colors.muiPrimary, 0.95),
6066
+ backgroundColor: (0, import_styles3.alpha)(colors.black, 0.35)
6067
+ },
6068
+ ...sx
6069
+ },
6070
+ children: [
6071
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_SearchRounded.default, { sx: { fontSize: 19, color: colors.muiPrimary } }),
6072
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6073
+ import_material45.InputBase,
6074
+ {
6075
+ inputRef,
6076
+ value,
6077
+ readOnly,
6078
+ onFocus,
6079
+ onKeyDown,
6080
+ onChange: (event) => onChange?.(event.target.value),
6081
+ placeholder,
6082
+ inputProps: { "aria-label": ariaLabel },
6083
+ sx: {
6084
+ flexGrow: 1,
6085
+ color: (0, import_styles3.alpha)(colors.white, 0.82),
6086
+ fontSize: 14,
6087
+ "& input::placeholder": {
6088
+ color: (0, import_styles3.alpha)(colors.white, 0.62),
6089
+ opacity: 1
6090
+ }
6091
+ }
6092
+ }
6093
+ ),
6094
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6095
+ import_material45.Box,
6096
+ {
6097
+ sx: {
6098
+ border: `1px solid ${(0, import_styles3.alpha)(colors.white, 0.32)}`,
6099
+ borderRadius: "5px",
6100
+ px: 0.6,
6101
+ py: 0.2,
6102
+ fontSize: 11,
6103
+ lineHeight: 1
6104
+ },
6105
+ children: shortcutLabel
6106
+ }
6107
+ )
6108
+ ]
6109
+ }
6110
+ );
6111
+ };
6112
+ var GlobalSearchTrigger_default = (0, import_react26.memo)(GlobalSearchTrigger);
6113
+
6114
+ // src/components/GlobalSearch/GlobalSearch.tsx
6115
+ var import_react27 = require("react");
6116
+ var import_material46 = require("@mui/material");
6117
+ var import_jsx_runtime98 = require("react/jsx-runtime");
6118
+ var IFRAME_MESSAGE_SOURCE = "global-search-iframe";
6119
+ var HOST_SOURCE = "global-search-host";
6120
+ var COLLAPSED_HEIGHT = 44;
6121
+ var MAX_WIDTH = 760;
6122
+ var MIN_WIDTH = 280;
6123
+ var MAX_HEIGHT = 820;
6124
+ var WIDGET_SRC = "/react/search/widget";
6125
+ var isEditableElement = (target) => {
6126
+ if (!(target instanceof HTMLElement)) {
6127
+ return false;
6128
+ }
6129
+ if (target.isContentEditable) {
6130
+ return true;
6131
+ }
6132
+ const tagName = target.tagName.toLowerCase();
6133
+ const role = target.getAttribute("role");
6134
+ return tagName === "input" || tagName === "textarea" || tagName === "select" || role === "textbox";
6135
+ };
6136
+ var GlobalSearch = ({
6137
+ onNavigate,
6138
+ shouldUseWindowLocation = (path) => path.startsWith("/react/") || path.startsWith("/#/")
6139
+ }) => {
6140
+ const iframeRef = (0, import_react27.useRef)(null);
6141
+ const wrapperRef = (0, import_react27.useRef)(null);
6142
+ const [open, setOpen] = (0, import_react27.useState)(false);
6143
+ const [height, setHeight] = (0, import_react27.useState)(COLLAPSED_HEIGHT);
6144
+ const widgetSrc = WIDGET_SRC;
6145
+ const widgetOrigin = new URL(widgetSrc, window.location.origin).origin;
6146
+ const postToIframe = (0, import_react27.useCallback)(
6147
+ (type) => {
6148
+ const targetWindow = iframeRef.current?.contentWindow;
6149
+ if (!targetWindow) {
6150
+ return;
6151
+ }
6152
+ targetWindow.postMessage(
6153
+ {
6154
+ source: HOST_SOURCE,
6155
+ type
6156
+ },
6157
+ widgetOrigin
6158
+ );
6159
+ },
6160
+ [widgetOrigin]
6161
+ );
6162
+ const close = (0, import_react27.useCallback)(() => {
6163
+ setOpen(false);
6164
+ setHeight(COLLAPSED_HEIGHT);
6165
+ postToIframe("GLOBAL_SEARCH_CLOSE");
6166
+ }, [postToIframe]);
6167
+ const toggle = (0, import_react27.useCallback)(() => {
6168
+ setOpen(true);
6169
+ setHeight(MAX_HEIGHT);
6170
+ postToIframe("GLOBAL_SEARCH_TOGGLE");
6171
+ }, [postToIframe]);
6172
+ (0, import_react27.useEffect)(() => {
6173
+ const onKeyDown = (event) => {
6174
+ const isCommandOrCtrl = event.metaKey || event.ctrlKey;
6175
+ if (isCommandOrCtrl && event.key.toLowerCase() === "k") {
6176
+ if (isEditableElement(event.target) && !open) {
6177
+ return;
6178
+ }
6179
+ event.preventDefault();
6180
+ toggle();
6181
+ }
6182
+ if (event.key === "Escape" && open) {
6183
+ event.preventDefault();
6184
+ close();
6185
+ }
6186
+ };
6187
+ window.addEventListener("keydown", onKeyDown);
6188
+ return () => window.removeEventListener("keydown", onKeyDown);
6189
+ }, [close, open, toggle]);
6190
+ (0, import_react27.useEffect)(() => {
6191
+ if (!open) {
6192
+ return void 0;
6193
+ }
6194
+ const onPointerDown = (event) => {
6195
+ const wrapper = wrapperRef.current;
6196
+ if (!wrapper) {
6197
+ return;
6198
+ }
6199
+ const target = event.target;
6200
+ if (!(target instanceof Node)) {
6201
+ return;
6202
+ }
6203
+ if (!wrapper.contains(target)) {
6204
+ close();
6205
+ }
6206
+ };
6207
+ document.addEventListener("pointerdown", onPointerDown, true);
6208
+ return () => document.removeEventListener("pointerdown", onPointerDown, true);
6209
+ }, [close, open]);
6210
+ (0, import_react27.useEffect)(() => {
6211
+ const onMessage = (event) => {
6212
+ if (event.origin !== widgetOrigin) {
6213
+ return;
6214
+ }
6215
+ const iframeWindow = iframeRef.current?.contentWindow;
6216
+ if (iframeWindow && event.source !== iframeWindow) {
6217
+ return;
6218
+ }
6219
+ const data = event.data;
6220
+ if (!data || data.source !== IFRAME_MESSAGE_SOURCE) {
6221
+ return;
6222
+ }
6223
+ if (data.type === "GLOBAL_SEARCH_CLOSE") {
6224
+ setOpen(false);
6225
+ setHeight(COLLAPSED_HEIGHT);
6226
+ return;
6227
+ }
6228
+ if (data.type === "GLOBAL_SEARCH_RESIZE") {
6229
+ const nextHeight = Math.max(
6230
+ COLLAPSED_HEIGHT,
6231
+ Math.min(MAX_HEIGHT, Math.ceil(Number(data.height || 0)))
6232
+ );
6233
+ setHeight(nextHeight);
6234
+ setOpen(nextHeight > COLLAPSED_HEIGHT + 1);
6235
+ return;
6236
+ }
6237
+ if (data.type === "GLOBAL_SEARCH_NAVIGATE") {
6238
+ const rawRoute = data.route;
6239
+ if (!rawRoute || !rawRoute.startsWith("/")) {
6240
+ return;
6241
+ }
6242
+ setOpen(false);
6243
+ setHeight(COLLAPSED_HEIGHT);
6244
+ const nextRoute = rawRoute.startsWith("/react/") || rawRoute.startsWith("/#/") ? rawRoute : `/react${rawRoute}`;
6245
+ if (nextRoute.startsWith("/react/") || shouldUseWindowLocation(rawRoute)) {
6246
+ window.location.assign(nextRoute);
6247
+ return;
6248
+ }
6249
+ onNavigate?.(nextRoute);
6250
+ }
6251
+ };
6252
+ window.addEventListener("message", onMessage);
6253
+ return () => window.removeEventListener("message", onMessage);
6254
+ }, [onNavigate, shouldUseWindowLocation, widgetOrigin]);
6255
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6256
+ import_material46.Box,
6257
+ {
6258
+ ref: wrapperRef,
6259
+ sx: {
6260
+ position: "relative",
6261
+ overflow: "visible",
6262
+ width: "100%",
6263
+ maxWidth: MAX_WIDTH,
6264
+ minWidth: MIN_WIDTH,
6265
+ flex: "1 1 420px",
6266
+ height: COLLAPSED_HEIGHT
6267
+ },
6268
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6269
+ "iframe",
6270
+ {
6271
+ ref: iframeRef,
6272
+ title: "Global Search",
6273
+ "data-testid": "global-search-widget-iframe",
6274
+ src: widgetSrc,
6275
+ scrolling: "no",
6276
+ style: {
6277
+ position: "absolute",
6278
+ top: 0,
6279
+ right: 0,
6280
+ width: "100%",
6281
+ height,
6282
+ border: 0,
6283
+ display: "block",
6284
+ backgroundColor: "transparent"
6285
+ }
6286
+ }
6287
+ )
6288
+ }
6289
+ );
6290
+ };
6291
+ var GlobalSearch_default = (0, import_react27.memo)(GlobalSearch);
6292
+
6293
+ // src/components/Header/Header.tsx
6294
+ var import_material47 = require("@mui/material");
6295
+ var import_mui30 = require("tss-react/mui");
6296
+ var import_jsx_runtime99 = require("react/jsx-runtime");
6022
6297
  var useStyles28 = (0, import_mui30.makeStyles)()((theme) => ({
6023
6298
  container: {
6024
6299
  margin: theme.spacing(1)
@@ -6041,16 +6316,16 @@ var Header = ({
6041
6316
  wrappedHeader = false
6042
6317
  }) => {
6043
6318
  const { classes, cx } = useStyles28();
6044
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6045
- import_material45.Paper,
6319
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
6320
+ import_material47.Paper,
6046
6321
  {
6047
6322
  className: cx({
6048
6323
  [classes.container]: !wrappedHeader
6049
6324
  }),
6050
6325
  elevation: wrappedHeader ? 0 : 1,
6051
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("header", { className: classes.header, children: [
6052
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(AppLabel_default, { appName }),
6053
- children ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: classes.rightContent, children }) : null
6326
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("header", { className: classes.header, children: [
6327
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(AppLabel_default, { appName }),
6328
+ children ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: classes.rightContent, children }) : null
6054
6329
  ] })
6055
6330
  }
6056
6331
  );
@@ -6059,21 +6334,21 @@ var Header_default = Header;
6059
6334
 
6060
6335
  // src/components/List/List.tsx
6061
6336
  var import_react_window = require("react-window");
6062
- var import_material46 = require("@mui/material");
6063
- var import_jsx_runtime98 = (
6337
+ var import_material48 = require("@mui/material");
6338
+ var import_jsx_runtime100 = (
6064
6339
  // eslint-disable-next-line react/no-array-index-key
6065
6340
  require("react/jsx-runtime")
6066
6341
  );
6067
6342
  var ListHeader = (props) => {
6068
6343
  const headers = props.headers || [];
6069
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_material46.ListItem, { children: headers.map((header, i) => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_material46.ListItemText, { primary: header.text }, i)) });
6344
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_material48.ListItem, { children: headers.map((header, i) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_material48.ListItemText, { primary: header.text }, i)) });
6070
6345
  };
6071
6346
  function VirtualizedList(props) {
6072
6347
  const { innerWidth, innerHeight } = window;
6073
6348
  const { headers, items, renderItem } = props;
6074
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
6075
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ListHeader, { headers }),
6076
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
6349
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
6350
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(ListHeader, { headers }),
6351
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
6077
6352
  import_react_window.FixedSizeList,
6078
6353
  {
6079
6354
  height: innerHeight - 150,
@@ -6088,9 +6363,9 @@ function VirtualizedList(props) {
6088
6363
  }
6089
6364
 
6090
6365
  // src/components/Loading/Loading.tsx
6091
- var import_material47 = require("@mui/material");
6366
+ var import_material49 = require("@mui/material");
6092
6367
  var import_mui31 = require("tss-react/mui");
6093
- var import_jsx_runtime99 = require("react/jsx-runtime");
6368
+ var import_jsx_runtime101 = require("react/jsx-runtime");
6094
6369
  var useStyles29 = (0, import_mui31.makeStyles)()(() => ({
6095
6370
  wrapper: {
6096
6371
  /**
@@ -6102,26 +6377,26 @@ var useStyles29 = (0, import_mui31.makeStyles)()(() => ({
6102
6377
  }));
6103
6378
  var Loading = ({ isLoading }) => {
6104
6379
  const { classes } = useStyles29();
6105
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
6106
- import_material47.Backdrop,
6380
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
6381
+ import_material49.Backdrop,
6107
6382
  {
6108
6383
  "aria-hidden": !isLoading,
6109
6384
  className: classes.wrapper,
6110
6385
  open: isLoading,
6111
6386
  "data-testid": "backdrop-loading",
6112
- children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_material47.CircularProgress, { color: "primary" })
6387
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_material49.CircularProgress, { color: "primary" })
6113
6388
  }
6114
6389
  );
6115
6390
  };
6116
6391
  var Loading_default = Loading;
6117
6392
 
6118
6393
  // src/components/LocationsSectionInfo/LocationsSectionInfo.tsx
6119
- var import_react26 = require("react");
6120
- var import_material48 = require("@mui/material");
6121
- var import_colors37 = require("@mui/material/colors");
6394
+ var import_react28 = require("react");
6395
+ var import_material50 = require("@mui/material");
6396
+ var import_colors38 = require("@mui/material/colors");
6122
6397
  var import_classnames2 = __toESM(require("classnames"), 1);
6123
6398
  var import_mui32 = require("tss-react/mui");
6124
- var import_jsx_runtime100 = require("react/jsx-runtime");
6399
+ var import_jsx_runtime102 = require("react/jsx-runtime");
6125
6400
  var useStyles30 = (0, import_mui32.makeStyles)()(() => ({
6126
6401
  container: {
6127
6402
  display: "flex",
@@ -6147,8 +6422,8 @@ var useStyles30 = (0, import_mui32.makeStyles)()(() => ({
6147
6422
  borderColor: colors.neutral100
6148
6423
  },
6149
6424
  pickingStockChip: {
6150
- backgroundColor: import_colors37.purple[50],
6151
- color: import_colors37.purple[500]
6425
+ backgroundColor: import_colors38.purple[50],
6426
+ color: import_colors38.purple[500]
6152
6427
  }
6153
6428
  }));
6154
6429
  var LocationsSectionInfo = ({
@@ -6167,9 +6442,9 @@ var LocationsSectionInfo = ({
6167
6442
  }
6168
6443
  return "STOCK";
6169
6444
  };
6170
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_material48.Box, { className: classes.container, children: [
6171
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
6172
- import_material48.Chip,
6445
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_material50.Box, { className: classes.container, children: [
6446
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6447
+ import_material50.Chip,
6173
6448
  {
6174
6449
  className: (0, import_classnames2.default)(classes.defaultChip, {
6175
6450
  [classes.stockChip]: isStock,
@@ -6179,20 +6454,20 @@ var LocationsSectionInfo = ({
6179
6454
  label: getLocationLabel()
6180
6455
  }
6181
6456
  ),
6182
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_material48.Typography, { className: classes.locationText, color: "primary", children: principalLocation }),
6183
- secondaryLocation?.map((loc) => /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_react26.Fragment, { children: [
6184
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_material48.Typography, { className: classes.smallTitle, children: "/" }),
6185
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_material48.Typography, { className: classes.locationText, children: loc })
6457
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material50.Typography, { className: classes.locationText, color: "primary", children: principalLocation }),
6458
+ secondaryLocation?.map((loc) => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_react28.Fragment, { children: [
6459
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material50.Typography, { className: classes.smallTitle, children: "/" }),
6460
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material50.Typography, { className: classes.locationText, children: loc })
6186
6461
  ] }, loc))
6187
6462
  ] });
6188
6463
  };
6189
6464
  var LocationsSectionInfo_default = LocationsSectionInfo;
6190
6465
 
6191
6466
  // src/components/Notes/Notes.tsx
6192
- var import_react27 = require("react");
6193
- var import_material49 = require("@mui/material");
6467
+ var import_react29 = require("react");
6468
+ var import_material51 = require("@mui/material");
6194
6469
  var import_mui33 = require("tss-react/mui");
6195
- var import_jsx_runtime101 = require("react/jsx-runtime");
6470
+ var import_jsx_runtime103 = require("react/jsx-runtime");
6196
6471
  var useStyles31 = (0, import_mui33.makeStyles)()((theme) => ({
6197
6472
  wrapper: {
6198
6473
  padding: theme.spacing(3),
@@ -6209,8 +6484,8 @@ var Notes2 = ({
6209
6484
  onChange,
6210
6485
  onClearNotes
6211
6486
  }) => {
6212
- const [notes, setNotes] = (0, import_react27.useState)("");
6213
- (0, import_react27.useEffect)(() => {
6487
+ const [notes, setNotes] = (0, import_react29.useState)("");
6488
+ (0, import_react29.useEffect)(() => {
6214
6489
  if (!initialNotes) {
6215
6490
  return;
6216
6491
  }
@@ -6235,13 +6510,13 @@ var Notes2 = ({
6235
6510
  }
6236
6511
  };
6237
6512
  const { classes } = useStyles31();
6238
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: classes.wrapper, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_material49.FormControl, { fullWidth: true, children: [
6239
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_material49.InputLabel, { htmlFor: "notes", children: "Notes" }),
6240
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
6241
- import_material49.Input,
6513
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: classes.wrapper, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_material51.FormControl, { fullWidth: true, children: [
6514
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_material51.InputLabel, { htmlFor: "notes", children: "Notes" }),
6515
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
6516
+ import_material51.Input,
6242
6517
  {
6243
6518
  disabled: isDisabled || isLoading,
6244
- endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_material49.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
6519
+ endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_material51.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
6245
6520
  RoundButton_default,
6246
6521
  {
6247
6522
  disabled: isLoading,
@@ -6267,8 +6542,8 @@ var Notes2 = ({
6267
6542
  var Notes_default = Notes2;
6268
6543
 
6269
6544
  // src/components/Numpad/Numpad.tsx
6270
- var import_jsx_runtime102 = require("react/jsx-runtime");
6271
- var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
6545
+ var import_jsx_runtime104 = require("react/jsx-runtime");
6546
+ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
6272
6547
  "div",
6273
6548
  {
6274
6549
  style: {
@@ -6280,9 +6555,9 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6280
6555
  padding: 8
6281
6556
  },
6282
6557
  children: [
6283
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { children: [
6284
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { children: [
6285
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6558
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
6559
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
6560
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6286
6561
  RoundButton_default,
6287
6562
  {
6288
6563
  onClick: () => handleClick("1"),
@@ -6291,7 +6566,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6291
6566
  children: "1"
6292
6567
  }
6293
6568
  ),
6294
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6569
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6295
6570
  RoundButton_default,
6296
6571
  {
6297
6572
  onClick: () => handleClick("2"),
@@ -6300,7 +6575,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6300
6575
  children: "2"
6301
6576
  }
6302
6577
  ),
6303
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6578
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6304
6579
  RoundButton_default,
6305
6580
  {
6306
6581
  onClick: () => handleClick("3"),
@@ -6310,8 +6585,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6310
6585
  }
6311
6586
  )
6312
6587
  ] }),
6313
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { children: [
6314
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6588
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
6589
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6315
6590
  RoundButton_default,
6316
6591
  {
6317
6592
  onClick: () => handleClick("4"),
@@ -6320,7 +6595,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6320
6595
  children: "4"
6321
6596
  }
6322
6597
  ),
6323
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6598
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6324
6599
  RoundButton_default,
6325
6600
  {
6326
6601
  onClick: () => handleClick("5"),
@@ -6329,7 +6604,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6329
6604
  children: "5"
6330
6605
  }
6331
6606
  ),
6332
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6607
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6333
6608
  RoundButton_default,
6334
6609
  {
6335
6610
  onClick: () => handleClick("6"),
@@ -6339,8 +6614,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6339
6614
  }
6340
6615
  )
6341
6616
  ] }),
6342
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { children: [
6343
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6617
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
6618
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6344
6619
  RoundButton_default,
6345
6620
  {
6346
6621
  onClick: () => handleClick("7"),
@@ -6349,7 +6624,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6349
6624
  children: "7"
6350
6625
  }
6351
6626
  ),
6352
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6627
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6353
6628
  RoundButton_default,
6354
6629
  {
6355
6630
  onClick: () => handleClick("8"),
@@ -6358,7 +6633,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6358
6633
  children: "8"
6359
6634
  }
6360
6635
  ),
6361
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6636
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6362
6637
  RoundButton_default,
6363
6638
  {
6364
6639
  onClick: () => handleClick("9"),
@@ -6368,8 +6643,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6368
6643
  }
6369
6644
  )
6370
6645
  ] }),
6371
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { children: [
6372
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6646
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
6647
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6373
6648
  RoundButton_default,
6374
6649
  {
6375
6650
  onClick: () => handleClick("0"),
@@ -6378,7 +6653,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6378
6653
  children: "0"
6379
6654
  }
6380
6655
  ),
6381
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6656
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6382
6657
  RoundButton_default,
6383
6658
  {
6384
6659
  onClick: () => handleClick("."),
@@ -6389,7 +6664,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6389
6664
  )
6390
6665
  ] })
6391
6666
  ] }),
6392
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6667
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6393
6668
  "div",
6394
6669
  {
6395
6670
  style: {
@@ -6398,7 +6673,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6398
6673
  justifyContent: "space-between",
6399
6674
  borderLeft: `1px solid ${colors.neutral250}`
6400
6675
  },
6401
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6676
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6402
6677
  RoundButton_default,
6403
6678
  {
6404
6679
  icon: "backspaceOutlined",
@@ -6415,10 +6690,10 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
6415
6690
  var Numpad_default = Numpad;
6416
6691
 
6417
6692
  // src/components/NumpadInput/NumpadInput.tsx
6418
- var import_react28 = require("react");
6419
- var import_material50 = require("@mui/material");
6693
+ var import_react30 = require("react");
6694
+ var import_material52 = require("@mui/material");
6420
6695
  var import_mui34 = require("tss-react/mui");
6421
- var import_jsx_runtime103 = require("react/jsx-runtime");
6696
+ var import_jsx_runtime105 = require("react/jsx-runtime");
6422
6697
  var useStyles32 = (0, import_mui34.makeStyles)()(() => ({
6423
6698
  c_numpadinput__textfield: {
6424
6699
  "& .MuiInputLabel-outlined.MuiInputLabel-shrink": {
@@ -6445,7 +6720,7 @@ var useStyles32 = (0, import_mui34.makeStyles)()(() => ({
6445
6720
  var NumpadInput = (props) => {
6446
6721
  const { handleNextClick, inputLabel, children } = props;
6447
6722
  const { classes } = useStyles32();
6448
- const [state, setState] = (0, import_react28.useState)("");
6723
+ const [state, setState] = (0, import_react30.useState)("");
6449
6724
  const handleNumpadClick = (value) => {
6450
6725
  setState(state + value);
6451
6726
  };
@@ -6455,13 +6730,13 @@ var NumpadInput = (props) => {
6455
6730
  function handleSubmit() {
6456
6731
  handleNextClick?.(state);
6457
6732
  }
6458
- const DefaultInput = /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { children: [
6459
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_material50.Typography, { variant: "h5", style: { padding: "16px 0 3rem" }, children: inputLabel }),
6460
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
6461
- import_material50.TextField,
6733
+ const DefaultInput = /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { children: [
6734
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_material52.Typography, { variant: "h5", style: { padding: "16px 0 3rem" }, children: inputLabel }),
6735
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
6736
+ import_material52.TextField,
6462
6737
  {
6463
6738
  id: "outlined-basic",
6464
- label: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_material50.Typography, { style: { fontSize: "1.5rem" }, children: "Insert" }),
6739
+ label: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_material52.Typography, { style: { fontSize: "1.5rem" }, children: "Insert" }),
6465
6740
  value: state,
6466
6741
  variant: "outlined",
6467
6742
  autoFocus: true,
@@ -6476,27 +6751,27 @@ var NumpadInput = (props) => {
6476
6751
  ) }),
6477
6752
  children
6478
6753
  ] });
6479
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { children: [
6480
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: classes.c_numpadinput__body, children: [
6754
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { children: [
6755
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: classes.c_numpadinput__body, children: [
6481
6756
  children || DefaultInput,
6482
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Numpad_default, { handleClick: handleNumpadClick, handleUndo })
6757
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Numpad_default, { handleClick: handleNumpadClick, handleUndo })
6483
6758
  ] }),
6484
- state ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
6759
+ state ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
6485
6760
  FilledButtonLg_default,
6486
6761
  {
6487
6762
  color: "primary",
6488
6763
  copy: "next",
6489
6764
  handleClick: handleSubmit
6490
6765
  }
6491
- ) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(FilledButtonLg_default, { copy: "next", disabled: true })
6766
+ ) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(FilledButtonLg_default, { copy: "next", disabled: true })
6492
6767
  ] });
6493
6768
  };
6494
- var NumpadInput_default = (0, import_react28.memo)(NumpadInput);
6769
+ var NumpadInput_default = (0, import_react30.memo)(NumpadInput);
6495
6770
 
6496
6771
  // src/components/NumpadPlus/NumpadPlus.tsx
6497
- var import_material51 = require("@mui/material");
6772
+ var import_material53 = require("@mui/material");
6498
6773
  var import_mui35 = require("tss-react/mui");
6499
- var import_jsx_runtime104 = require("react/jsx-runtime");
6774
+ var import_jsx_runtime106 = require("react/jsx-runtime");
6500
6775
  var useStyles33 = (0, import_mui35.makeStyles)()(() => ({
6501
6776
  numpadContainer: {
6502
6777
  display: "flex",
@@ -6528,10 +6803,10 @@ var useStyles33 = (0, import_mui35.makeStyles)()(() => ({
6528
6803
  }));
6529
6804
  var NumpadPlus = ({ handleClick, handleUndo }) => {
6530
6805
  const { classes: styles } = useStyles33();
6531
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_material51.Box, { className: styles.numpadContainer, children: [
6532
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_material51.Box, { className: styles.numpadNumbersContainer, children: [
6533
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_material51.Box, { className: styles.numpadRow, children: [
6534
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6806
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadContainer, children: [
6807
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadNumbersContainer, children: [
6808
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
6809
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6535
6810
  RoundButton_default,
6536
6811
  {
6537
6812
  onClick: () => handleClick("1"),
@@ -6540,7 +6815,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6540
6815
  children: "1"
6541
6816
  }
6542
6817
  ),
6543
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6818
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6544
6819
  RoundButton_default,
6545
6820
  {
6546
6821
  onClick: () => handleClick("2"),
@@ -6549,7 +6824,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6549
6824
  children: "2"
6550
6825
  }
6551
6826
  ),
6552
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6827
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6553
6828
  RoundButton_default,
6554
6829
  {
6555
6830
  onClick: () => handleClick("3"),
@@ -6559,8 +6834,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6559
6834
  }
6560
6835
  )
6561
6836
  ] }),
6562
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_material51.Box, { className: styles.numpadRow, children: [
6563
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6837
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
6838
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6564
6839
  RoundButton_default,
6565
6840
  {
6566
6841
  onClick: () => handleClick("4"),
@@ -6569,7 +6844,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6569
6844
  children: "4"
6570
6845
  }
6571
6846
  ),
6572
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6847
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6573
6848
  RoundButton_default,
6574
6849
  {
6575
6850
  onClick: () => handleClick("5"),
@@ -6578,7 +6853,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6578
6853
  children: "5"
6579
6854
  }
6580
6855
  ),
6581
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6856
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6582
6857
  RoundButton_default,
6583
6858
  {
6584
6859
  onClick: () => handleClick("6"),
@@ -6588,8 +6863,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6588
6863
  }
6589
6864
  )
6590
6865
  ] }),
6591
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_material51.Box, { className: styles.numpadRow, children: [
6592
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6866
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
6867
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6593
6868
  RoundButton_default,
6594
6869
  {
6595
6870
  onClick: () => handleClick("7"),
@@ -6598,7 +6873,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6598
6873
  children: "7"
6599
6874
  }
6600
6875
  ),
6601
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6876
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6602
6877
  RoundButton_default,
6603
6878
  {
6604
6879
  onClick: () => handleClick("8"),
@@ -6607,7 +6882,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6607
6882
  children: "8"
6608
6883
  }
6609
6884
  ),
6610
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6885
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6611
6886
  RoundButton_default,
6612
6887
  {
6613
6888
  onClick: () => handleClick("9"),
@@ -6617,8 +6892,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6617
6892
  }
6618
6893
  )
6619
6894
  ] }),
6620
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_material51.Box, { className: styles.numpadRow, children: [
6621
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6895
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
6896
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6622
6897
  RoundButton_default,
6623
6898
  {
6624
6899
  onClick: () => handleClick("0"),
@@ -6627,7 +6902,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6627
6902
  children: "0"
6628
6903
  }
6629
6904
  ),
6630
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6905
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6631
6906
  RoundButton_default,
6632
6907
  {
6633
6908
  onClick: () => handleClick("."),
@@ -6636,7 +6911,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6636
6911
  children: "."
6637
6912
  }
6638
6913
  ),
6639
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6914
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6640
6915
  RoundButton_default,
6641
6916
  {
6642
6917
  onClick: () => handleClick("-"),
@@ -6647,7 +6922,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6647
6922
  )
6648
6923
  ] })
6649
6924
  ] }),
6650
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_material51.Box, { className: styles.numpadBackspace, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
6925
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_material53.Box, { className: styles.numpadBackspace, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6651
6926
  RoundButton_default,
6652
6927
  {
6653
6928
  icon: "backspaceOutlined",
@@ -6661,9 +6936,9 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
6661
6936
  var NumpadPlus_default = NumpadPlus;
6662
6937
 
6663
6938
  // src/components/Pagination/Pagination.tsx
6664
- var import_material52 = require("@mui/material");
6939
+ var import_material54 = require("@mui/material");
6665
6940
  var import_mui36 = require("tss-react/mui");
6666
- var import_jsx_runtime105 = require("react/jsx-runtime");
6941
+ var import_jsx_runtime107 = require("react/jsx-runtime");
6667
6942
  var paginationHeight = "56px";
6668
6943
  var useStyles34 = (0, import_mui36.makeStyles)()((theme) => ({
6669
6944
  root: {
@@ -6676,18 +6951,11 @@ var useStyles34 = (0, import_mui36.makeStyles)()((theme) => ({
6676
6951
  borderRadius: "0 0 4px 4px",
6677
6952
  width: "100%",
6678
6953
  height: paginationHeight,
6679
- overflow: "hidden",
6680
6954
  "& > *": {
6681
6955
  margin: theme.spacing(2)
6682
6956
  },
6683
- "& .MuiPagination-root": {
6684
- minWidth: 0
6685
- },
6686
- "& .MuiPagination-ul": {
6687
- flexWrap: "nowrap"
6688
- },
6689
- "& .MuiPaginationItem-root": {
6690
- flexShrink: 0
6957
+ "& .MuiTypography-body1": {
6958
+ fontSize: ".850rem"
6691
6959
  }
6692
6960
  },
6693
6961
  fixed: {
@@ -6707,16 +6975,14 @@ var PaginationForTable = ({
6707
6975
  pagination,
6708
6976
  position = "relative",
6709
6977
  style,
6710
- updateFilters,
6711
- siblingCount = 1,
6712
- boundaryCount = 1
6978
+ updateFilters
6713
6979
  }) => {
6714
6980
  const { classes, cx } = useStyles34();
6715
6981
  const handleChange = (event, value) => {
6716
6982
  updateFilters({ ...appliedFilters, page: value });
6717
6983
  };
6718
6984
  const isFixed = position === "fixed";
6719
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_material52.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
6985
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_material54.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
6720
6986
  "div",
6721
6987
  {
6722
6988
  style,
@@ -6724,20 +6990,18 @@ var PaginationForTable = ({
6724
6990
  [classes.fixed]: isFixed
6725
6991
  }),
6726
6992
  children: [
6727
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_material52.Typography, { variant: "body1", children: [
6993
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_material54.Typography, { variant: "body1", children: [
6728
6994
  "Page: ",
6729
6995
  page
6730
6996
  ] }),
6731
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { style: { overflowX: "auto", maxWidth: 400 }, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
6732
- import_material52.Pagination,
6997
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6998
+ import_material54.Pagination,
6733
6999
  {
6734
7000
  count: pagination.num_pages,
6735
- page: Number(page),
6736
- onChange: handleChange,
6737
- siblingCount,
6738
- boundaryCount
7001
+ page,
7002
+ onChange: handleChange
6739
7003
  }
6740
- ) })
7004
+ )
6741
7005
  ]
6742
7006
  }
6743
7007
  ) });
@@ -6745,11 +7009,11 @@ var PaginationForTable = ({
6745
7009
  var Pagination_default = PaginationForTable;
6746
7010
 
6747
7011
  // src/components/PlusMinusInput/PlusMinusInput.tsx
6748
- var import_react29 = require("react");
7012
+ var import_react31 = require("react");
6749
7013
  var import_react_hook_form9 = require("react-hook-form");
6750
- var import_material53 = require("@mui/material");
7014
+ var import_material55 = require("@mui/material");
6751
7015
  var import_mui37 = require("tss-react/mui");
6752
- var import_jsx_runtime106 = require("react/jsx-runtime");
7016
+ var import_jsx_runtime108 = require("react/jsx-runtime");
6753
7017
  var useStyles35 = (0, import_mui37.makeStyles)()((theme) => ({
6754
7018
  container: {
6755
7019
  position: "relative",
@@ -6827,7 +7091,7 @@ var PlusMinusInput = ({
6827
7091
  }
6828
7092
  });
6829
7093
  const inputValue = (0, import_react_hook_form9.useWatch)({ control, name: "inputValue" });
6830
- const setInputValue = (0, import_react29.useCallback)(
7094
+ const setInputValue = (0, import_react31.useCallback)(
6831
7095
  (newValue) => {
6832
7096
  if (Number.isNaN(newValue) || newValue < 0) {
6833
7097
  return;
@@ -6836,7 +7100,7 @@ var PlusMinusInput = ({
6836
7100
  },
6837
7101
  [setValue]
6838
7102
  );
6839
- (0, import_react29.useEffect)(() => {
7103
+ (0, import_react31.useEffect)(() => {
6840
7104
  clearErrors("inputValue");
6841
7105
  if (inputValue === "") {
6842
7106
  setError("inputValue", {
@@ -6856,7 +7120,7 @@ var PlusMinusInput = ({
6856
7120
  }
6857
7121
  }
6858
7122
  }, [clearErrors, inputValue, setError]);
6859
- (0, import_react29.useEffect)(() => {
7123
+ (0, import_react31.useEffect)(() => {
6860
7124
  if (typeof initialValue !== "number") {
6861
7125
  return;
6862
7126
  }
@@ -6892,15 +7156,15 @@ var PlusMinusInput = ({
6892
7156
  updateInputValue(value);
6893
7157
  };
6894
7158
  const { classes, cx } = useStyles35();
6895
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
6896
- import_material53.FormGroup,
7159
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
7160
+ import_material55.FormGroup,
6897
7161
  {
6898
7162
  className: cx(classes.wrapper, {
6899
7163
  [classes.leftButtons]: buttonsPosition === "left",
6900
7164
  [classes.rightButtons]: buttonsPosition === "right"
6901
7165
  }),
6902
7166
  children: [
6903
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
7167
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
6904
7168
  RoundButton_default,
6905
7169
  {
6906
7170
  className: classes.minus,
@@ -6910,19 +7174,19 @@ var PlusMinusInput = ({
6910
7174
  size: "small"
6911
7175
  }
6912
7176
  ),
6913
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { children: [
6914
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
7177
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { children: [
7178
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
6915
7179
  import_react_hook_form9.Controller,
6916
7180
  {
6917
7181
  control,
6918
7182
  name: "inputValue",
6919
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6920
- import_material53.FormControlLabel,
7183
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
7184
+ import_material55.FormControlLabel,
6921
7185
  {
6922
7186
  ...field,
6923
7187
  className: classes.formControlLabel,
6924
- control: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6925
- import_material53.TextField,
7188
+ control: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
7189
+ import_material55.TextField,
6926
7190
  {
6927
7191
  className: classes.input,
6928
7192
  disabled,
@@ -6938,8 +7202,8 @@ var PlusMinusInput = ({
6938
7202
  )
6939
7203
  }
6940
7204
  ),
6941
- errors.inputValue && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
6942
- import_material53.Typography,
7205
+ errors.inputValue && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
7206
+ import_material55.Typography,
6943
7207
  {
6944
7208
  className: classes.errorText,
6945
7209
  color: "error",
@@ -6949,7 +7213,7 @@ var PlusMinusInput = ({
6949
7213
  }
6950
7214
  )
6951
7215
  ] }),
6952
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
7216
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
6953
7217
  RoundButton_default,
6954
7218
  {
6955
7219
  className: classes.plus,
@@ -6966,28 +7230,28 @@ var PlusMinusInput = ({
6966
7230
  var PlusMinusInput_default = PlusMinusInput;
6967
7231
 
6968
7232
  // src/components/ProductBust/ProductBust.tsx
6969
- var import_react30 = require("react");
6970
- var import_material55 = require("@mui/material");
7233
+ var import_react32 = require("react");
7234
+ var import_material57 = require("@mui/material");
6971
7235
  var import_mui39 = require("tss-react/mui");
6972
7236
 
6973
7237
  // src/components/ProductImage/ProductImage.tsx
6974
- var import_material54 = require("@mui/material");
7238
+ var import_material56 = require("@mui/material");
6975
7239
  var import_mui38 = require("tss-react/mui");
6976
- var import_jsx_runtime107 = require("react/jsx-runtime");
7240
+ var import_jsx_runtime109 = require("react/jsx-runtime");
6977
7241
  var PImage = ({
6978
7242
  classes,
6979
7243
  image,
6980
7244
  size = "c_productbust__image_xs",
6981
7245
  status
6982
- }) => /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: classes.c_productbust__image, children: [
6983
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6984
- import_material54.CardMedia,
7246
+ }) => /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: classes.c_productbust__image, children: [
7247
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
7248
+ import_material56.CardMedia,
6985
7249
  {
6986
7250
  className: classes[size],
6987
7251
  image: image || "@/resources/img/peas.jpg"
6988
7252
  }
6989
7253
  ),
6990
- status && status !== "ACTIVE" && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: classes.c_productbust__label_status, children: status })
7254
+ status && status !== "ACTIVE" && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: classes.c_productbust__label_status, children: status })
6991
7255
  ] });
6992
7256
  var ProductImage = (0, import_mui38.withStyles)(PImage, (theme) => ({
6993
7257
  c_productbust__label_status: {
@@ -7069,7 +7333,7 @@ var ProductImage = (0, import_mui38.withStyles)(PImage, (theme) => ({
7069
7333
  var ProductImage_default = ProductImage;
7070
7334
 
7071
7335
  // src/components/ProductBust/ProductBust.tsx
7072
- var import_jsx_runtime108 = require("react/jsx-runtime");
7336
+ var import_jsx_runtime110 = require("react/jsx-runtime");
7073
7337
  var PBust = ({
7074
7338
  classes,
7075
7339
  size,
@@ -7111,8 +7375,8 @@ var PBust = ({
7111
7375
  default:
7112
7376
  break;
7113
7377
  }
7114
- const [historyVisible, setHistoryVisible] = (0, import_react30.useState)(false);
7115
- const historyDataIcon = () => /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
7378
+ const [historyVisible, setHistoryVisible] = (0, import_react32.useState)(false);
7379
+ const historyDataIcon = () => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
7116
7380
  RoundButton_default,
7117
7381
  {
7118
7382
  icon: "history",
@@ -7120,8 +7384,8 @@ var PBust = ({
7120
7384
  size: "small"
7121
7385
  }
7122
7386
  );
7123
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: classes.c_productbust, children: [
7124
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
7387
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust, children: [
7388
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
7125
7389
  ProductImage_default,
7126
7390
  {
7127
7391
  image: product?.image,
@@ -7129,11 +7393,11 @@ var PBust = ({
7129
7393
  size: imageSize
7130
7394
  }
7131
7395
  ),
7132
- /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: classes.c_productbust__container, children: [
7133
- /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: classes.c_productbust__heading, children: [
7134
- /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { children: [
7135
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
7136
- import_material55.Typography,
7396
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust__container, children: [
7397
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust__heading, children: [
7398
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { children: [
7399
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
7400
+ import_material57.Typography,
7137
7401
  {
7138
7402
  component: "span",
7139
7403
  color: "textSecondary",
@@ -7141,19 +7405,19 @@ var PBust = ({
7141
7405
  children: !!locationData && locationData
7142
7406
  }
7143
7407
  ),
7144
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_material55.Typography, { component: "span", className: classes[titleSize], children: product?.name }),
7145
- !product && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_material55.Typography, { component: "span", className: classes[titleSize], children: "Empty Position" }),
7146
- primaryData || /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
7147
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
7148
- import_material55.Typography,
7408
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material57.Typography, { component: "span", className: classes[titleSize], children: product?.name }),
7409
+ !product && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material57.Typography, { component: "span", className: classes[titleSize], children: "Empty Position" }),
7410
+ primaryData || /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
7411
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
7412
+ import_material57.Typography,
7149
7413
  {
7150
7414
  style: { color: "#555" },
7151
7415
  className: classes[subtitle1Size],
7152
7416
  children: product?.category.name
7153
7417
  }
7154
7418
  ),
7155
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
7156
- import_material55.Typography,
7419
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
7420
+ import_material57.Typography,
7157
7421
  {
7158
7422
  style: { color: "#A42966", textTransform: "uppercase" },
7159
7423
  className: classes[subtitle2Size],
@@ -7162,14 +7426,14 @@ var PBust = ({
7162
7426
  )
7163
7427
  ] })
7164
7428
  ] }),
7165
- /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: classes.c_productbust__btns, children: [
7166
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { children: buttonData }),
7167
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { children: !!locationId && historyDataIcon() })
7429
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust__btns, children: [
7430
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { children: buttonData }),
7431
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { children: !!locationId && historyDataIcon() })
7168
7432
  ] })
7169
7433
  ] }),
7170
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { children: !!secondaryData && secondaryData })
7434
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { children: !!secondaryData && secondaryData })
7171
7435
  ] }),
7172
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
7436
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
7173
7437
  LocationHistoryDialog,
7174
7438
  {
7175
7439
  handleVisible: setHistoryVisible,
@@ -7271,23 +7535,23 @@ var ProductBust = (0, import_mui39.withStyles)(PBust, (theme) => ({
7271
7535
  var ProductBust_default = ProductBust;
7272
7536
 
7273
7537
  // src/components/RenderAvatar/RenderAvatar.tsx
7274
- var import_material56 = require("@mui/material");
7538
+ var import_material58 = require("@mui/material");
7275
7539
  var import_mui40 = require("tss-react/mui");
7276
- var import_jsx_runtime109 = require("react/jsx-runtime");
7540
+ var import_jsx_runtime111 = require("react/jsx-runtime");
7277
7541
  var RenderAvatar = ({ active }) => {
7278
- const StyledBadge = (0, import_mui40.withStyles)(import_material56.Badge, () => ({
7542
+ const StyledBadge = (0, import_mui40.withStyles)(import_material58.Badge, () => ({
7279
7543
  root: {
7280
7544
  ".MuiBadge-dot": {
7281
7545
  backgroundColor: active ? colors.muiSuccess : colors.neutral700
7282
7546
  }
7283
7547
  }
7284
7548
  }));
7285
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
7286
- import_material56.Box,
7549
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
7550
+ import_material58.Box,
7287
7551
  {
7288
7552
  sx: { display: "flex", flexDirection: "column", alignItems: "center" },
7289
7553
  children: [
7290
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
7554
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
7291
7555
  StyledBadge,
7292
7556
  {
7293
7557
  overlap: "circular",
@@ -7296,10 +7560,10 @@ var RenderAvatar = ({ active }) => {
7296
7560
  horizontal: "right"
7297
7561
  },
7298
7562
  variant: "dot",
7299
- children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_material56.Avatar, {})
7563
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Avatar, {})
7300
7564
  }
7301
7565
  ),
7302
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_material56.Typography, { variant: "caption", children: active ? "Active" : "Disabled" })
7566
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Typography, { variant: "caption", children: active ? "Active" : "Disabled" })
7303
7567
  ]
7304
7568
  }
7305
7569
  );
@@ -7307,17 +7571,17 @@ var RenderAvatar = ({ active }) => {
7307
7571
  var RenderAvatar_default = RenderAvatar;
7308
7572
 
7309
7573
  // src/components/RenderContentList/RenderContentList.tsx
7310
- var import_react32 = require("react");
7574
+ var import_react34 = require("react");
7311
7575
  var import_WarningAmber = __toESM(require("@mui/icons-material/WarningAmber"), 1);
7312
- var import_material57 = require("@mui/material");
7576
+ var import_material59 = require("@mui/material");
7313
7577
  var import_mui41 = require("tss-react/mui");
7314
7578
 
7315
7579
  // src/utils/useGetActiveSection.ts
7316
- var import_react31 = require("react");
7580
+ var import_react33 = require("react");
7317
7581
  var transformNameToID = (name) => name.replaceAll(" ", "_").toLocaleLowerCase();
7318
7582
 
7319
7583
  // src/components/RenderContentList/RenderContentList.tsx
7320
- var import_jsx_runtime110 = require("react/jsx-runtime");
7584
+ var import_jsx_runtime112 = require("react/jsx-runtime");
7321
7585
  var useStyles36 = (0, import_mui41.makeStyles)()(
7322
7586
  (_theme, _params, classes) => ({
7323
7587
  root: {
@@ -7338,11 +7602,11 @@ var RenderContentList = ({
7338
7602
  warningMessage = "Missing information on this section"
7339
7603
  }) => {
7340
7604
  const { classes } = useStyles36();
7341
- const [active, setActive] = (0, import_react32.useState)(activeSection);
7342
- const observer = (0, import_react32.useRef)(null);
7343
- const isScrolling = (0, import_react32.useRef)(false);
7344
- const timeoutScrolling = (0, import_react32.useRef)(null);
7345
- (0, import_react32.useEffect)(() => {
7605
+ const [active, setActive] = (0, import_react34.useState)(activeSection);
7606
+ const observer = (0, import_react34.useRef)(null);
7607
+ const isScrolling = (0, import_react34.useRef)(false);
7608
+ const timeoutScrolling = (0, import_react34.useRef)(null);
7609
+ (0, import_react34.useEffect)(() => {
7346
7610
  if (!activeSection) {
7347
7611
  return void 0;
7348
7612
  }
@@ -7366,7 +7630,7 @@ var RenderContentList = ({
7366
7630
  if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
7367
7631
  };
7368
7632
  }, [activeSection]);
7369
- (0, import_react32.useEffect)(() => {
7633
+ (0, import_react34.useEffect)(() => {
7370
7634
  const sections = items.map((item) => ({
7371
7635
  id: transformNameToID(item),
7372
7636
  element: document.getElementById(transformNameToID(item))
@@ -7415,23 +7679,23 @@ var RenderContentList = ({
7415
7679
  isScrolling.current = false;
7416
7680
  }, 1e3);
7417
7681
  };
7418
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
7419
- import_material57.List,
7682
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7683
+ import_material59.List,
7420
7684
  {
7421
7685
  component: "nav",
7422
7686
  "aria-labelledby": "nested-list-subheader",
7423
- subheader: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material57.ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
7687
+ subheader: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
7424
7688
  children: items.map((item) => {
7425
7689
  const id = transformNameToID(item);
7426
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
7427
- import_material57.ListItemButton,
7690
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
7691
+ import_material59.ListItemButton,
7428
7692
  {
7429
7693
  selected: active === id,
7430
7694
  classes: { root: classes.root, selected: classes.selected },
7431
7695
  onClick: () => handleMenuClick(id),
7432
7696
  children: [
7433
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material57.ListItemText, { primary: item }),
7434
- (warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material57.Tooltip, { title: warningMessage, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_WarningAmber.default, { color: "warning" }) })
7697
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.ListItemText, { primary: item }),
7698
+ (warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.Tooltip, { title: warningMessage, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_WarningAmber.default, { color: "warning" }) })
7435
7699
  ]
7436
7700
  },
7437
7701
  id
@@ -7443,9 +7707,9 @@ var RenderContentList = ({
7443
7707
  var RenderContentList_default = RenderContentList;
7444
7708
 
7445
7709
  // src/components/RowProductCard/RowProductCard.tsx
7446
- var import_material58 = require("@mui/material");
7710
+ var import_material60 = require("@mui/material");
7447
7711
  var import_mui42 = require("tss-react/mui");
7448
- var import_jsx_runtime111 = require("react/jsx-runtime");
7712
+ var import_jsx_runtime113 = require("react/jsx-runtime");
7449
7713
  var useStyles37 = (0, import_mui42.makeStyles)()((theme) => ({
7450
7714
  wrapper: {
7451
7715
  display: "flex",
@@ -7484,8 +7748,8 @@ var RowProductCard = ({
7484
7748
  medium: "c_productbust__image_md",
7485
7749
  large: "c_productbust__image_lg"
7486
7750
  };
7487
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_material58.Paper, { className: classes.wrapper, children: [
7488
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
7751
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_material60.Paper, { className: classes.wrapper, children: [
7752
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7489
7753
  ProductImage_default,
7490
7754
  {
7491
7755
  image: product.image,
@@ -7493,15 +7757,15 @@ var RowProductCard = ({
7493
7757
  size: imageSize[size]
7494
7758
  }
7495
7759
  ),
7496
- /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
7760
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
7497
7761
  "div",
7498
7762
  {
7499
7763
  className: cx(classes.content, {
7500
7764
  [classes.onlyProductName]: !hasColumns && !location
7501
7765
  }),
7502
7766
  children: [
7503
- /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
7504
- import_material58.Box,
7767
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
7768
+ import_material60.Box,
7505
7769
  {
7506
7770
  className: classes.upperRow,
7507
7771
  sx: {
@@ -7510,26 +7774,26 @@ var RowProductCard = ({
7510
7774
  alignItems: "center"
7511
7775
  },
7512
7776
  children: [
7513
- /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { children: [
7514
- location ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Typography, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
7515
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Typography, { variant: "h6", children: product.name })
7777
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { children: [
7778
+ location ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
7779
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { variant: "h6", children: product.name })
7516
7780
  ] }),
7517
7781
  children
7518
7782
  ]
7519
7783
  }
7520
7784
  ),
7521
- hasColumns ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
7522
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Divider, { className: classes.divider }),
7523
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
7524
- import_material58.Box,
7785
+ hasColumns ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
7786
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Divider, { className: classes.divider }),
7787
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7788
+ import_material60.Box,
7525
7789
  {
7526
7790
  sx: {
7527
7791
  display: "flex",
7528
7792
  gap: "24px"
7529
7793
  },
7530
- children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { children: [
7531
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Typography, { className: classes.smallTitle, variant: "caption", children: column.title }),
7532
- typeof column.value === "string" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Typography, { variant: "body1", children: column.value }) : column.value
7794
+ children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { children: [
7795
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { className: classes.smallTitle, variant: "caption", children: column.title }),
7796
+ typeof column.value === "string" ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { variant: "body1", children: column.value }) : column.value
7533
7797
  ] }, column.title))
7534
7798
  }
7535
7799
  )
@@ -7542,10 +7806,10 @@ var RowProductCard = ({
7542
7806
  var RowProductCard_default = RowProductCard;
7543
7807
 
7544
7808
  // src/components/ScrollableDialog/ScrollableDialog.tsx
7545
- var import_react33 = require("react");
7546
- var import_material59 = require("@mui/material");
7809
+ var import_react35 = require("react");
7810
+ var import_material61 = require("@mui/material");
7547
7811
  var import_mui43 = require("tss-react/mui");
7548
- var import_jsx_runtime112 = require("react/jsx-runtime");
7812
+ var import_jsx_runtime114 = require("react/jsx-runtime");
7549
7813
  var useStyles38 = (0, import_mui43.makeStyles)()((theme) => ({
7550
7814
  dialog: {
7551
7815
  margin: "0 auto",
@@ -7585,18 +7849,18 @@ var ScrollableDialog = ({
7585
7849
  isOpen,
7586
7850
  title
7587
7851
  }) => {
7588
- const [bodyHeight, setBodyHeight] = (0, import_react33.useState)(0);
7589
- const [hasScrollBar, setHasScrollBar] = (0, import_react33.useState)(false);
7590
- const [maxDialogHeight, setMaxDialogHeight] = (0, import_react33.useState)(0);
7852
+ const [bodyHeight, setBodyHeight] = (0, import_react35.useState)(0);
7853
+ const [hasScrollBar, setHasScrollBar] = (0, import_react35.useState)(false);
7854
+ const [maxDialogHeight, setMaxDialogHeight] = (0, import_react35.useState)(0);
7591
7855
  const { classes, cx } = useStyles38();
7592
- const headerRef = (0, import_react33.useRef)(null);
7593
- const footerRef = (0, import_react33.useRef)(null);
7594
- const titleRef = (0, import_react33.useRef)(null);
7595
- const bodyRef = (0, import_react33.useRef)(null);
7856
+ const headerRef = (0, import_react35.useRef)(null);
7857
+ const footerRef = (0, import_react35.useRef)(null);
7858
+ const titleRef = (0, import_react35.useRef)(null);
7859
+ const bodyRef = (0, import_react35.useRef)(null);
7596
7860
  const DIALOG_MARGIN = 65;
7597
7861
  const DEFAULT_MAX_HEIGHT = 728;
7598
7862
  const TITLE_MARGIN = 48;
7599
- (0, import_react33.useEffect)(() => {
7863
+ (0, import_react35.useEffect)(() => {
7600
7864
  const handleResize = () => {
7601
7865
  const screenHeight = window.innerHeight;
7602
7866
  const newMaxHeight = screenHeight < DEFAULT_MAX_HEIGHT + DIALOG_MARGIN ? screenHeight - DIALOG_MARGIN : DEFAULT_MAX_HEIGHT;
@@ -7615,23 +7879,23 @@ var ScrollableDialog = ({
7615
7879
  const scrollHeight = bodyRef.current?.scrollHeight || 0;
7616
7880
  setHasScrollBar(scrollHeight > contentHeight);
7617
7881
  };
7618
- (0, import_react33.useEffect)(() => {
7882
+ (0, import_react35.useEffect)(() => {
7619
7883
  if (isOpen) {
7620
7884
  requestAnimationFrame(measureHeights);
7621
7885
  }
7622
7886
  }, [isOpen, header, footer, title, maxDialogHeight]);
7623
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.Dialog, { className: classes.dialog, fullWidth: true, maxWidth: false, open: isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7624
- import_material59.Fade,
7887
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Dialog, { className: classes.dialog, fullWidth: true, maxWidth: false, open: isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7888
+ import_material61.Fade,
7625
7889
  {
7626
7890
  in: isOpen,
7627
7891
  onEntered: () => {
7628
7892
  requestAnimationFrame(measureHeights);
7629
7893
  },
7630
- children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_material59.Paper, { className: classes.wrapper, children: [
7631
- header ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: classes.header, id: "dialog-header", children: header }) : null,
7632
- /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: classes.body, children: [
7633
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7634
- import_material59.Typography,
7894
+ children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Paper, { className: classes.wrapper, children: [
7895
+ header ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: classes.header, id: "dialog-header", children: header }) : null,
7896
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: classes.body, children: [
7897
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7898
+ import_material61.Typography,
7635
7899
  {
7636
7900
  className: classes.title,
7637
7901
  id: "dialog-title",
@@ -7639,7 +7903,7 @@ var ScrollableDialog = ({
7639
7903
  children: title
7640
7904
  }
7641
7905
  ),
7642
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7906
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7643
7907
  "div",
7644
7908
  {
7645
7909
  className: cx(classes.scrollableContainer, {
@@ -7653,9 +7917,9 @@ var ScrollableDialog = ({
7653
7917
  }
7654
7918
  )
7655
7919
  ] }),
7656
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.Divider, {}),
7657
- footer ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
7658
- import_material59.Box,
7920
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Divider, {}),
7921
+ footer ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7922
+ import_material61.Box,
7659
7923
  {
7660
7924
  className: classes.footer,
7661
7925
  id: "dialog-footer",
@@ -7673,16 +7937,16 @@ var ScrollableDialog = ({
7673
7937
  var ScrollableDialog_default = ScrollableDialog;
7674
7938
 
7675
7939
  // src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
7676
- var import_material61 = require("@mui/material");
7940
+ var import_material63 = require("@mui/material");
7677
7941
  var import_mui45 = require("tss-react/mui");
7678
7942
 
7679
7943
  // src/components/SearchWithFilters/SearchWithFilters.tsx
7680
- var import_react34 = require("react");
7944
+ var import_react36 = require("react");
7681
7945
  var React6 = __toESM(require("react"), 1);
7682
7946
  var import_icons_material4 = require("@mui/icons-material");
7683
- var import_material60 = require("@mui/material");
7947
+ var import_material62 = require("@mui/material");
7684
7948
  var import_mui44 = require("tss-react/mui");
7685
- var import_jsx_runtime113 = require("react/jsx-runtime");
7949
+ var import_jsx_runtime115 = require("react/jsx-runtime");
7686
7950
  var useStyles39 = (0, import_mui44.makeStyles)()((theme) => ({
7687
7951
  searchContainer: {
7688
7952
  height: 46,
@@ -7727,7 +7991,7 @@ var SearchWithFilters = ({
7727
7991
  },
7728
7992
  disabled = false
7729
7993
  }) => {
7730
- const [searchText, setSearchText] = (0, import_react34.useState)(searchValue);
7994
+ const [searchText, setSearchText] = (0, import_react36.useState)(searchValue);
7731
7995
  const { classes } = useStyles39();
7732
7996
  const handleTextChange = (e) => {
7733
7997
  const { value } = e.target;
@@ -7739,13 +8003,13 @@ var SearchWithFilters = ({
7739
8003
  enterPressedInSearch?.();
7740
8004
  }
7741
8005
  };
7742
- (0, import_react34.useEffect)(() => {
8006
+ (0, import_react36.useEffect)(() => {
7743
8007
  setSearchText(searchValue);
7744
8008
  }, [searchValue]);
7745
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_material60.Paper, { className: classes.searchContainer, children: [
7746
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_icons_material4.Search, { className: classes.icon, fontSize: "small" }),
7747
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7748
- import_material60.InputBase,
8009
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material62.Paper, { className: classes.searchContainer, children: [
8010
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_icons_material4.Search, { className: classes.icon, fontSize: "small" }),
8011
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8012
+ import_material62.InputBase,
7749
8013
  {
7750
8014
  className: classes.input,
7751
8015
  placeholder: "Search",
@@ -7756,16 +8020,16 @@ var SearchWithFilters = ({
7756
8020
  inputProps: { "aria-label": "search" }
7757
8021
  }
7758
8022
  ),
7759
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Divider, { className: classes.divider, orientation: "vertical" }),
7760
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
7761
- import_material60.Button,
8023
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Divider, { className: classes.divider, orientation: "vertical" }),
8024
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
8025
+ import_material62.Button,
7762
8026
  {
7763
8027
  className: classes.filterButton,
7764
8028
  onClick: filterClick,
7765
8029
  disabled,
7766
8030
  children: [
7767
8031
  "Filters",
7768
- showFilters ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_icons_material4.ArrowDropUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_icons_material4.ArrowDropDown, {})
8032
+ showFilters ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_icons_material4.ArrowDropUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_icons_material4.ArrowDropDown, {})
7769
8033
  ]
7770
8034
  }
7771
8035
  )
@@ -7774,7 +8038,7 @@ var SearchWithFilters = ({
7774
8038
  var SearchWithFilters_default = React6.memo(SearchWithFilters);
7775
8039
 
7776
8040
  // src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
7777
- var import_jsx_runtime114 = require("react/jsx-runtime");
8041
+ var import_jsx_runtime116 = require("react/jsx-runtime");
7778
8042
  var useStyles40 = (0, import_mui45.makeStyles)()((theme) => ({
7779
8043
  wrapper: {
7780
8044
  display: "flex",
@@ -7810,11 +8074,11 @@ var SearchAndFilterHeader = ({
7810
8074
  searchValue
7811
8075
  }) => {
7812
8076
  const { classes } = useStyles40();
7813
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.wrapper, children: [
7814
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.container, children: [
7815
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.leftSection, children: [
7816
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(AppLabel_default, { appName }),
7817
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
8077
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.wrapper, children: [
8078
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.container, children: [
8079
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.leftSection, children: [
8080
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(AppLabel_default, { appName }),
8081
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7818
8082
  SearchWithFilters_default,
7819
8083
  {
7820
8084
  searchValue,
@@ -7825,9 +8089,9 @@ var SearchAndFilterHeader = ({
7825
8089
  }
7826
8090
  )
7827
8091
  ] }),
7828
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Box, { children: extraButton })
8092
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Box, { children: extraButton })
7829
8093
  ] }),
7830
- showFilters ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Box, { children: filtersComponent }) : null,
8094
+ showFilters ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Box, { children: filtersComponent }) : null,
7831
8095
  appliedFiltersComponent
7832
8096
  ] }) });
7833
8097
  };
@@ -7835,15 +8099,15 @@ var SearchAndFilterHeader_default = SearchAndFilterHeader;
7835
8099
 
7836
8100
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
7837
8101
  var React7 = __toESM(require("react"), 1);
7838
- var import_material63 = require("@mui/material");
8102
+ var import_material65 = require("@mui/material");
7839
8103
  var import_mui47 = require("tss-react/mui");
7840
8104
 
7841
8105
  // src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
7842
- var import_react35 = require("react");
8106
+ var import_react37 = require("react");
7843
8107
  var import_icons_material5 = require("@mui/icons-material");
7844
- var import_material62 = require("@mui/material");
8108
+ var import_material64 = require("@mui/material");
7845
8109
  var import_mui46 = require("tss-react/mui");
7846
- var import_jsx_runtime115 = require("react/jsx-runtime");
8110
+ var import_jsx_runtime117 = require("react/jsx-runtime");
7847
8111
  var useStyles41 = (0, import_mui46.makeStyles)()((theme) => ({
7848
8112
  c_search: {
7849
8113
  height: 46,
@@ -7903,7 +8167,7 @@ var SearchWithFiltersForTable = (props) => {
7903
8167
  searchedValue
7904
8168
  } = props;
7905
8169
  const { classes } = useStyles41();
7906
- const [searchText, setSearchText] = (0, import_react35.useState)("");
8170
+ const [searchText, setSearchText] = (0, import_react37.useState)("");
7907
8171
  const handleTextChange = (e) => {
7908
8172
  const { value } = e.target;
7909
8173
  setSearchText(value);
@@ -7918,10 +8182,10 @@ var SearchWithFiltersForTable = (props) => {
7918
8182
  }
7919
8183
  };
7920
8184
  const ArrowIcon = isOpen ? import_icons_material5.ArrowDropUp : import_icons_material5.ArrowDropDown;
7921
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material62.Paper, { className: classes.c_search, children: [
7922
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Box, { className: classes.c_search__icon, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_icons_material5.Search, { className: classes.icon, fontSize: "small" }) }),
7923
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7924
- import_material62.InputBase,
8185
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(import_material64.Paper, { className: classes.c_search, children: [
8186
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.Box, { className: classes.c_search__icon, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_icons_material5.Search, { className: classes.icon, fontSize: "small" }) }),
8187
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
8188
+ import_material64.InputBase,
7925
8189
  {
7926
8190
  className: classes.c_search__input,
7927
8191
  placeholder: "Search",
@@ -7930,32 +8194,32 @@ var SearchWithFiltersForTable = (props) => {
7930
8194
  onKeyDown: handleKeyPress
7931
8195
  }
7932
8196
  ),
7933
- showFilterButton && /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_jsx_runtime115.Fragment, { children: [
7934
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7935
- import_material62.Divider,
8197
+ showFilterButton && /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(import_jsx_runtime117.Fragment, { children: [
8198
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
8199
+ import_material64.Divider,
7936
8200
  {
7937
8201
  className: classes.c_search__divider,
7938
8202
  orientation: "vertical"
7939
8203
  }
7940
8204
  ),
7941
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
7942
- import_material62.Button,
8205
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
8206
+ import_material64.Button,
7943
8207
  {
7944
8208
  className: classes.c_search__bt_filter,
7945
8209
  onClick: handleFilterButtonClick,
7946
8210
  children: [
7947
8211
  "Filters",
7948
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ArrowIcon, { className: classes.c_search__bt_icon_filter })
8212
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(ArrowIcon, { className: classes.c_search__bt_icon_filter })
7949
8213
  ]
7950
8214
  }
7951
8215
  )
7952
8216
  ] })
7953
8217
  ] });
7954
8218
  };
7955
- var SearchWithFiltersForTable_default = (0, import_react35.memo)(SearchWithFiltersForTable);
8219
+ var SearchWithFiltersForTable_default = (0, import_react37.memo)(SearchWithFiltersForTable);
7956
8220
 
7957
8221
  // src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
7958
- var import_jsx_runtime116 = require("react/jsx-runtime");
8222
+ var import_jsx_runtime118 = require("react/jsx-runtime");
7959
8223
  var useStyles42 = (0, import_mui47.makeStyles)()((theme) => ({
7960
8224
  container: {
7961
8225
  display: "flex",
@@ -7987,10 +8251,10 @@ var SearchAndFilterHeaderForTable = (props) => {
7987
8251
  searchedValue
7988
8252
  } = props;
7989
8253
  const { classes } = useStyles42();
7990
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.container, children: [
7991
- /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.leftSection, children: [
7992
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(AppLabel_default, { appName }),
7993
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
8254
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Box, { className: classes.container, children: [
8255
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Box, { className: classes.leftSection, children: [
8256
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(AppLabel_default, { appName }),
8257
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7994
8258
  SearchWithFiltersForTable_default,
7995
8259
  {
7996
8260
  onFilterButtonClick,
@@ -8001,24 +8265,24 @@ var SearchAndFilterHeaderForTable = (props) => {
8001
8265
  searchedValue
8002
8266
  }
8003
8267
  ),
8004
- copy && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
8005
- import_material63.Box,
8268
+ copy && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8269
+ import_material65.Box,
8006
8270
  {
8007
8271
  sx: {
8008
8272
  margin: 0.5
8009
8273
  },
8010
- children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(OutlinedButton_default, { copy })
8274
+ children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(OutlinedButton_default, { copy })
8011
8275
  }
8012
8276
  )
8013
8277
  ] }),
8014
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Box, { children: button })
8278
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material65.Box, { children: button })
8015
8279
  ] });
8016
8280
  };
8017
8281
  var SearchAndFilterHeaderForTable_default = React7.memo(SearchAndFilterHeaderForTable);
8018
8282
 
8019
8283
  // src/components/SearchHeader/SearchHeader.tsx
8020
- var import_material64 = require("@mui/material");
8021
- var import_jsx_runtime117 = require("react/jsx-runtime");
8284
+ var import_material66 = require("@mui/material");
8285
+ var import_jsx_runtime119 = require("react/jsx-runtime");
8022
8286
  var SearchHeader = ({
8023
8287
  renderButton,
8024
8288
  renderExtraAction,
@@ -8029,8 +8293,8 @@ var SearchHeader = ({
8029
8293
  onKeyDown,
8030
8294
  width
8031
8295
  }) => {
8032
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
8033
- import_material64.Paper,
8296
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
8297
+ import_material66.Paper,
8034
8298
  {
8035
8299
  sx: {
8036
8300
  display: "flex",
@@ -8038,8 +8302,8 @@ var SearchHeader = ({
8038
8302
  padding: 2
8039
8303
  },
8040
8304
  children: [
8041
- /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
8042
- import_material64.Box,
8305
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
8306
+ import_material66.Box,
8043
8307
  {
8044
8308
  sx: {
8045
8309
  display: "flex",
@@ -8047,8 +8311,8 @@ var SearchHeader = ({
8047
8311
  alignItems: "center"
8048
8312
  },
8049
8313
  children: [
8050
- /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(import_material64.Box, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
8051
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
8314
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_material66.Box, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
8315
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8052
8316
  SearchFieldDebounced,
8053
8317
  {
8054
8318
  width,
@@ -8073,9 +8337,9 @@ var SearchHeader = ({
8073
8337
  // src/components/SectionName/SectionName.tsx
8074
8338
  var import_History = __toESM(require("@mui/icons-material/History"), 1);
8075
8339
  var import_Info = __toESM(require("@mui/icons-material/Info"), 1);
8076
- var import_material65 = require("@mui/material");
8340
+ var import_material67 = require("@mui/material");
8077
8341
  var import_mui48 = require("tss-react/mui");
8078
- var import_jsx_runtime118 = require("react/jsx-runtime");
8342
+ var import_jsx_runtime120 = require("react/jsx-runtime");
8079
8343
  var useStyles43 = (0, import_mui48.makeStyles)()((theme) => ({
8080
8344
  container: {
8081
8345
  display: "flex",
@@ -8131,10 +8395,10 @@ var SectionName = ({
8131
8395
  }
8132
8396
  }
8133
8397
  };
8134
- return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Box, { className: classes.container, children: [
8135
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Box, { className: classes.titleContainer, children: [
8136
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8137
- import_material65.Typography,
8398
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material67.Box, { className: classes.container, children: [
8399
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material67.Box, { className: classes.titleContainer, children: [
8400
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
8401
+ import_material67.Typography,
8138
8402
  {
8139
8403
  variant: "h5",
8140
8404
  onClick: handleScroll,
@@ -8142,7 +8406,7 @@ var SectionName = ({
8142
8406
  children: name
8143
8407
  }
8144
8408
  ),
8145
- tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material65.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8409
+ tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
8146
8410
  import_Info.default,
8147
8411
  {
8148
8412
  fontSize: "small",
@@ -8151,8 +8415,8 @@ var SectionName = ({
8151
8415
  }
8152
8416
  ) }) : null
8153
8417
  ] }),
8154
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Box, { className: classes.actionButtons, children: [
8155
- buttonText ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8418
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material67.Box, { className: classes.actionButtons, children: [
8419
+ buttonText ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
8156
8420
  ExtendedButton_default,
8157
8421
  {
8158
8422
  type: buttonType,
@@ -8165,17 +8429,17 @@ var SectionName = ({
8165
8429
  variant: "text"
8166
8430
  }
8167
8431
  ) : null,
8168
- openHistoryLog && buttonText && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material65.Divider, { orientation: "vertical", sx: { height: "24px" } }),
8169
- openHistoryLog && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material65.IconButton, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_History.default, {}) })
8432
+ openHistoryLog && buttonText && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.Divider, { orientation: "vertical", sx: { height: "24px" } }),
8433
+ openHistoryLog && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.IconButton, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_History.default, {}) })
8170
8434
  ] })
8171
8435
  ] });
8172
8436
  };
8173
8437
  var SectionName_default = SectionName;
8174
8438
 
8175
8439
  // src/components/SmartMultipleSelect/SmartMultipleSelect.tsx
8176
- var import_react36 = require("react");
8177
- var import_material66 = require("@mui/material");
8178
- var import_jsx_runtime119 = require("react/jsx-runtime");
8440
+ var import_react38 = require("react");
8441
+ var import_material68 = require("@mui/material");
8442
+ var import_jsx_runtime121 = require("react/jsx-runtime");
8179
8443
  var SmartMultipleSelect = ({
8180
8444
  inputLabel,
8181
8445
  variant = "standard",
@@ -8193,7 +8457,7 @@ var SmartMultipleSelect = ({
8193
8457
  helperText,
8194
8458
  menuProps
8195
8459
  }) => {
8196
- const [localValues, setLocalValues] = (0, import_react36.useState)(defaultValues ?? []);
8460
+ const [localValues, setLocalValues] = (0, import_react38.useState)(defaultValues ?? []);
8197
8461
  const handleChangeOption = (option) => {
8198
8462
  let newValues = [];
8199
8463
  const selectedIndex = localValues.findIndex(
@@ -8207,19 +8471,19 @@ var SmartMultipleSelect = ({
8207
8471
  setLocalValues(newValues);
8208
8472
  onChange?.(newValues);
8209
8473
  };
8210
- const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8211
- import_material66.Box,
8474
+ const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8475
+ import_material68.Box,
8212
8476
  {
8213
8477
  sx: { display: "flex", justifyContent: "center", alignItems: "center" },
8214
- children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.Typography, { children: emptyMessage })
8478
+ children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Typography, { children: emptyMessage })
8215
8479
  }
8216
- ) : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.Box, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
8480
+ ) : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Box, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
8217
8481
  const selectedValues = values ?? localValues ?? [];
8218
8482
  const isSelected = selectedValues.some(
8219
8483
  (selected) => selected.value === option.value
8220
8484
  );
8221
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
8222
- import_material66.Box,
8485
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
8486
+ import_material68.Box,
8223
8487
  {
8224
8488
  onClick: () => handleChangeOption(option),
8225
8489
  sx: {
@@ -8229,15 +8493,15 @@ var SmartMultipleSelect = ({
8229
8493
  backgroundColor: isSelected ? colors.lightBlueBackground : void 0
8230
8494
  },
8231
8495
  children: [
8232
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.Checkbox, { disableRipple: true, sx: { py: 0.5 }, checked: isSelected }),
8233
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.ListItemText, { primary: option.label })
8496
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Checkbox, { disableRipple: true, sx: { py: 0.5 }, checked: isSelected }),
8497
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.ListItemText, { primary: option.label })
8234
8498
  ]
8235
8499
  },
8236
8500
  option.value ?? index
8237
8501
  );
8238
8502
  }) });
8239
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
8240
- import_material66.FormControl,
8503
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
8504
+ import_material68.FormControl,
8241
8505
  {
8242
8506
  fullWidth: true,
8243
8507
  variant,
@@ -8245,9 +8509,9 @@ var SmartMultipleSelect = ({
8245
8509
  disabled,
8246
8510
  error,
8247
8511
  children: [
8248
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.InputLabel, { children: inputLabel }),
8249
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8250
- import_material66.Select,
8512
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.InputLabel, { children: inputLabel }),
8513
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8514
+ import_material68.Select,
8251
8515
  {
8252
8516
  multiple: true,
8253
8517
  label: inputLabel,
@@ -8259,37 +8523,37 @@ var SmartMultipleSelect = ({
8259
8523
  onClose: () => onClose?.(localValues),
8260
8524
  renderValue: (selectedValues) => {
8261
8525
  const valuesString = selectedValues.map((v) => v.label)?.join(", ");
8262
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
8526
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
8263
8527
  },
8264
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8265
- import_material66.Box,
8528
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8529
+ import_material68.Box,
8266
8530
  {
8267
8531
  sx: {
8268
8532
  display: "flex",
8269
8533
  justifyContent: "center",
8270
8534
  alignItems: "center"
8271
8535
  },
8272
- children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.CircularProgress, { size: 24 })
8536
+ children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.CircularProgress, { size: 24 })
8273
8537
  }
8274
8538
  ) : renderMenuContent()
8275
8539
  }
8276
8540
  ),
8277
- helperText && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.FormHelperText, { children: helperText })
8541
+ helperText && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.FormHelperText, { children: helperText })
8278
8542
  ]
8279
8543
  }
8280
8544
  );
8281
8545
  };
8282
8546
 
8283
8547
  // src/components/SquareLabel/SquareLabel.tsx
8284
- var import_react37 = require("react");
8285
- var import_material67 = require("@mui/material");
8286
- var import_colors52 = require("@mui/material/colors");
8548
+ var import_react39 = require("react");
8549
+ var import_material69 = require("@mui/material");
8550
+ var import_colors53 = require("@mui/material/colors");
8287
8551
  var import_mui49 = require("tss-react/mui");
8288
- var import_jsx_runtime120 = require("react/jsx-runtime");
8552
+ var import_jsx_runtime122 = require("react/jsx-runtime");
8289
8553
  var useStyles44 = (0, import_mui49.makeStyles)()((theme) => ({
8290
8554
  red: {
8291
- backgroundColor: import_colors52.red["50"],
8292
- color: import_colors52.red["500"],
8555
+ backgroundColor: import_colors53.red["50"],
8556
+ color: import_colors53.red["500"],
8293
8557
  padding: theme.spacing(1.5),
8294
8558
  borderRadius: "5px",
8295
8559
  marginTop: theme.spacing(1),
@@ -8300,15 +8564,15 @@ var useStyles44 = (0, import_mui49.makeStyles)()((theme) => ({
8300
8564
  }));
8301
8565
  var SquareLabel = ({ color, copy }) => {
8302
8566
  const { classes } = useStyles44();
8303
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.Typography, { className: classes[color], children: copy });
8567
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material69.Typography, { className: classes[color], children: copy });
8304
8568
  };
8305
- var SquareLabel_default = (0, import_react37.memo)(SquareLabel);
8569
+ var SquareLabel_default = (0, import_react39.memo)(SquareLabel);
8306
8570
 
8307
8571
  // src/components/Switch/Switch.tsx
8308
- var import_react38 = require("react");
8309
- var import_material68 = require("@mui/material");
8572
+ var import_react40 = require("react");
8573
+ var import_material70 = require("@mui/material");
8310
8574
  var import_mui50 = require("tss-react/mui");
8311
- var import_jsx_runtime121 = require("react/jsx-runtime");
8575
+ var import_jsx_runtime123 = require("react/jsx-runtime");
8312
8576
  var LSwitch = ({
8313
8577
  checked,
8314
8578
  labelOn,
@@ -8316,8 +8580,8 @@ var LSwitch = ({
8316
8580
  handleChange,
8317
8581
  classes,
8318
8582
  disabled
8319
- }) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: classes.c_switch, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
8320
- import_material68.Grid,
8583
+ }) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: classes.c_switch, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
8584
+ import_material70.Grid,
8321
8585
  {
8322
8586
  component: "label",
8323
8587
  container: true,
@@ -8326,9 +8590,9 @@ var LSwitch = ({
8326
8590
  alignItems: "center"
8327
8591
  },
8328
8592
  children: [
8329
- labelOff && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Grid, { children: labelOff }),
8330
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Grid, { children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8331
- import_material68.Switch,
8593
+ labelOff && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Grid, { children: labelOff }),
8594
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Grid, { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8595
+ import_material70.Switch,
8332
8596
  {
8333
8597
  checked,
8334
8598
  color: "primary",
@@ -8336,7 +8600,7 @@ var LSwitch = ({
8336
8600
  disabled
8337
8601
  }
8338
8602
  ) }),
8339
- labelOn && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Grid, { children: labelOn })
8603
+ labelOn && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Grid, { children: labelOn })
8340
8604
  ]
8341
8605
  }
8342
8606
  ) });
@@ -8358,14 +8622,14 @@ var LabelledSwitch = (0, import_mui50.withStyles)(LSwitch, (theme) => ({
8358
8622
  fontSize: "1rem"
8359
8623
  }
8360
8624
  }));
8361
- var Switch_default = (0, import_react38.memo)(LabelledSwitch);
8625
+ var Switch_default = (0, import_react40.memo)(LabelledSwitch);
8362
8626
 
8363
8627
  // src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
8364
- var import_react39 = require("react");
8365
- var import_material69 = require("@mui/material");
8628
+ var import_react41 = require("react");
8629
+ var import_material71 = require("@mui/material");
8366
8630
  var import_classnames3 = __toESM(require("classnames"), 1);
8367
- var import_jsx_runtime122 = require("react/jsx-runtime");
8368
- var MAX_WIDTH = 276;
8631
+ var import_jsx_runtime124 = require("react/jsx-runtime");
8632
+ var MAX_WIDTH2 = 276;
8369
8633
  var findFilterIndex = (filters, filterOption) => filters.findIndex((item) => {
8370
8634
  if (typeof item === "string" && typeof filterOption === "string") {
8371
8635
  return item === filterOption;
@@ -8382,11 +8646,11 @@ var SmartTableHeaderFilterMenu = ({
8382
8646
  shouldShowCheckOnFilter,
8383
8647
  onApplyFilters
8384
8648
  }) => {
8385
- const [anchorEl, setAnchorEl] = (0, import_react39.useState)(null);
8386
- const [filterOptionsData, setFilterOptionsData] = (0, import_react39.useState)();
8387
- const [selectedFilterOptions, setSelectedFilterOptions] = (0, import_react39.useState)(headerFilters[headCell.id] ?? []);
8649
+ const [anchorEl, setAnchorEl] = (0, import_react41.useState)(null);
8650
+ const [filterOptionsData, setFilterOptionsData] = (0, import_react41.useState)();
8651
+ const [selectedFilterOptions, setSelectedFilterOptions] = (0, import_react41.useState)(headerFilters[headCell.id] ?? []);
8388
8652
  const numFilterOptions = filterOptionsData?.length ?? 0;
8389
- (0, import_react39.useEffect)(() => {
8653
+ (0, import_react41.useEffect)(() => {
8390
8654
  if (headCell.filterOptions) {
8391
8655
  setFilterOptionsData(headCell.filterOptions);
8392
8656
  } else if (headCell.filterType === "boolean") {
@@ -8442,11 +8706,11 @@ var SmartTableHeaderFilterMenu = ({
8442
8706
  onApplyFilters?.(updatedFilters, shouldSave);
8443
8707
  setAnchorEl(null);
8444
8708
  };
8445
- (0, import_react39.useEffect)(() => {
8709
+ (0, import_react41.useEffect)(() => {
8446
8710
  setSelectedFilterOptions(headerFilters[headCell.id] ?? []);
8447
8711
  }, [headerFilters, headCell.id]);
8448
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
8449
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8712
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
8713
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8450
8714
  ActiveFiltersIconButton,
8451
8715
  {
8452
8716
  numActiveFilters,
@@ -8456,8 +8720,8 @@ var SmartTableHeaderFilterMenu = ({
8456
8720
  })
8457
8721
  }
8458
8722
  ),
8459
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8460
- import_material69.Menu,
8723
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8724
+ import_material71.Menu,
8461
8725
  {
8462
8726
  open: !!anchorEl,
8463
8727
  onClose: handleFilterMenuClose,
@@ -8465,12 +8729,12 @@ var SmartTableHeaderFilterMenu = ({
8465
8729
  "data-testid": "filter-menu",
8466
8730
  slotProps: {
8467
8731
  list: {
8468
- sx: { p: 0, maxWidth: MAX_WIDTH }
8732
+ sx: { p: 0, maxWidth: MAX_WIDTH2 }
8469
8733
  }
8470
8734
  },
8471
8735
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
8472
8736
  transformOrigin: { vertical: "top", horizontal: "right" },
8473
- children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8737
+ children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8474
8738
  AutocompleteFilterMenuContent,
8475
8739
  {
8476
8740
  columnId: headCell.id,
@@ -8483,7 +8747,7 @@ var SmartTableHeaderFilterMenu = ({
8483
8747
  onApplyFiltersClick: handleApplyFiltersClick,
8484
8748
  shouldShowCheckOnFilter
8485
8749
  }
8486
- ) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8750
+ ) : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8487
8751
  CheckboxFilterMenuContent,
8488
8752
  {
8489
8753
  columnId: headCell.id,
@@ -8503,10 +8767,10 @@ var SmartTableHeaderFilterMenu = ({
8503
8767
  };
8504
8768
 
8505
8769
  // src/components/SmartTableHeader/SmartTableHeader.tsx
8506
- var import_react40 = require("react");
8507
- var import_material70 = require("@mui/material");
8508
- var import_jsx_runtime123 = require("react/jsx-runtime");
8509
- var SmartTableHeader = (0, import_react40.memo)(
8770
+ var import_react42 = require("react");
8771
+ var import_material72 = require("@mui/material");
8772
+ var import_jsx_runtime125 = require("react/jsx-runtime");
8773
+ var SmartTableHeader = (0, import_react42.memo)(
8510
8774
  ({
8511
8775
  order,
8512
8776
  orderBy,
@@ -8524,14 +8788,14 @@ var SmartTableHeader = (0, import_react40.memo)(
8524
8788
  onRequestSort(event, property);
8525
8789
  };
8526
8790
  const isSortActive = (headCellId) => orderBy === headCellId;
8527
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material70.TableRow, { children: [
8528
- enableCheckboxSelection ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8529
- import_material70.TableCell,
8791
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material72.TableRow, { children: [
8792
+ enableCheckboxSelection ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8793
+ import_material72.TableCell,
8530
8794
  {
8531
8795
  padding: "checkbox",
8532
8796
  sx: { backgroundColor: colors.neutral100 },
8533
- children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8534
- import_material70.Checkbox,
8797
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8798
+ import_material72.Checkbox,
8535
8799
  {
8536
8800
  color: "primary",
8537
8801
  disableRipple: true,
@@ -8542,8 +8806,8 @@ var SmartTableHeader = (0, import_react40.memo)(
8542
8806
  )
8543
8807
  }
8544
8808
  ) : null,
8545
- headCells.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8546
- import_material70.TableCell,
8809
+ headCells.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8810
+ import_material72.TableCell,
8547
8811
  {
8548
8812
  align: "left",
8549
8813
  width: headCell.width ?? "auto",
@@ -8566,15 +8830,15 @@ var SmartTableHeader = (0, import_react40.memo)(
8566
8830
  }
8567
8831
  }
8568
8832
  },
8569
- children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
8570
- import_material70.Box,
8833
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
8834
+ import_material72.Box,
8571
8835
  {
8572
8836
  display: "flex",
8573
8837
  flexDirection: "row",
8574
8838
  gap: headCell.disableSort ? 1 : 0,
8575
8839
  children: [
8576
- headCell.disableSort ? headCell.renderHeader ?? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Tooltip, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Typography, { variant: "subtitle2", mt: 0.25, mb: -0.25, children: headCell.label }) }) : /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Tooltip, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
8577
- import_material70.TableSortLabel,
8840
+ headCell.disableSort ? headCell.renderHeader ?? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Tooltip, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Typography, { variant: "subtitle2", mt: 0.25, mb: -0.25, children: headCell.label }) }) : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Tooltip, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
8841
+ import_material72.TableSortLabel,
8578
8842
  {
8579
8843
  "data-testid": "table-sort-label",
8580
8844
  active: isSortActive(headCell.id),
@@ -8582,7 +8846,7 @@ var SmartTableHeader = (0, import_react40.memo)(
8582
8846
  onClick: createSortHandler(headCell.id),
8583
8847
  children: [
8584
8848
  headCell.renderHeader ?? headCell.label,
8585
- orderBy === headCell.id ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8849
+ orderBy === headCell.id ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8586
8850
  "span",
8587
8851
  {
8588
8852
  style: {
@@ -8602,7 +8866,7 @@ var SmartTableHeader = (0, import_react40.memo)(
8602
8866
  ]
8603
8867
  }
8604
8868
  ) }),
8605
- headCell.filterType ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8869
+ headCell.filterType ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8606
8870
  SmartTableHeaderFilterMenu,
8607
8871
  {
8608
8872
  headCell,
@@ -8623,20 +8887,20 @@ var SmartTableHeader = (0, import_react40.memo)(
8623
8887
  );
8624
8888
 
8625
8889
  // src/components/Table/Table.tsx
8626
- var import_react41 = require("react");
8627
- var import_material72 = require("@mui/material");
8890
+ var import_react43 = require("react");
8891
+ var import_material74 = require("@mui/material");
8628
8892
  var import_debounce = __toESM(require_debounce(), 1);
8629
8893
  var import_mui51 = require("tss-react/mui");
8630
8894
  var import_uuid = require("uuid");
8631
8895
 
8632
8896
  // src/components/TableLoading/TableLoading.tsx
8633
- var import_material71 = require("@mui/material");
8634
- var import_jsx_runtime124 = require("react/jsx-runtime");
8897
+ var import_material73 = require("@mui/material");
8898
+ var import_jsx_runtime126 = require("react/jsx-runtime");
8635
8899
  var TableLoading = ({
8636
8900
  rowsPerPage,
8637
8901
  rowHeight
8638
- }) => /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material71.Box, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8639
- import_material71.Skeleton,
8902
+ }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material73.Box, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8903
+ import_material73.Skeleton,
8640
8904
  {
8641
8905
  animation: "pulse",
8642
8906
  "data-testid": "table-loading-skeleton",
@@ -8684,7 +8948,7 @@ function calculateRowsPerPage(rowHeight) {
8684
8948
  }
8685
8949
 
8686
8950
  // src/components/Table/Table.tsx
8687
- var import_jsx_runtime125 = require("react/jsx-runtime");
8951
+ var import_jsx_runtime127 = require("react/jsx-runtime");
8688
8952
  var useStyles45 = (0, import_mui51.makeStyles)()(() => ({
8689
8953
  root: {
8690
8954
  height: "calc(100vh - 262px)",
@@ -8719,11 +8983,11 @@ var Table = ({
8719
8983
  serverRendered,
8720
8984
  updateSort
8721
8985
  }) => {
8722
- const [order, setOrder] = (0, import_react41.useState)(appliedFilters?.sortDir || "desc");
8723
- const [orderBy, setOrderBy] = (0, import_react41.useState)(
8986
+ const [order, setOrder] = (0, import_react43.useState)(appliedFilters?.sortDir || "desc");
8987
+ const [orderBy, setOrderBy] = (0, import_react43.useState)(
8724
8988
  appliedFilters?.sortField || "delivery_date"
8725
8989
  );
8726
- const [rowsPerPage, setRowsPerPage] = (0, import_react41.useState)(defaultRowsPerPage);
8990
+ const [rowsPerPage, setRowsPerPage] = (0, import_react43.useState)(defaultRowsPerPage);
8727
8991
  const { classes } = useStyles45();
8728
8992
  const rowHeight = 56;
8729
8993
  const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
@@ -8736,7 +9000,7 @@ var Table = ({
8736
9000
  updateSort(property, orderDir);
8737
9001
  }
8738
9002
  };
8739
- (0, import_react41.useLayoutEffect)(() => {
9003
+ (0, import_react43.useLayoutEffect)(() => {
8740
9004
  if (!doNotCalculateRows) {
8741
9005
  return;
8742
9006
  }
@@ -8762,25 +9026,25 @@ var Table = ({
8762
9026
  );
8763
9027
  const rowsComponents = rows.map((row) => {
8764
9028
  if (RenderItem) {
8765
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(RenderItem, { ...row }, row.id);
9029
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(RenderItem, { ...row }, row.id);
8766
9030
  }
8767
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableRow, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableCell, { children: row[column.id] }, column.id)) }, row.id);
9031
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableCell, { children: row[column.id] }, column.id)) }, row.id);
8768
9032
  });
8769
9033
  if (emptyRows > 0 && rowsPerPage > emptyRows) {
8770
9034
  rowsComponents.push(
8771
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableCell, { colSpan: 8 }) }, (0, import_uuid.v4)())
9035
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableCell, { colSpan: 8 }) }, (0, import_uuid.v4)())
8772
9036
  );
8773
9037
  }
8774
9038
  return rowsComponents;
8775
9039
  };
8776
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Paper, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Box, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material72.Table, { size: "medium", stickyHeader: true, children: [
8777
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableHead, { className: classes.header, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableRow, { children: headCells?.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8778
- import_material72.TableCell,
9040
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.Paper, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.Box, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material74.Table, { size: "medium", stickyHeader: true, children: [
9041
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableHead, { className: classes.header, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { children: headCells?.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
9042
+ import_material74.TableCell,
8779
9043
  {
8780
9044
  align: "left",
8781
9045
  sortDirection: orderBy === headCell.id ? order : void 0,
8782
- children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8783
- import_material72.TableSortLabel,
9046
+ children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
9047
+ import_material74.TableSortLabel,
8784
9048
  {
8785
9049
  active: orderBy === headCell.id,
8786
9050
  direction: orderBy === headCell.id ? order : "asc",
@@ -8791,29 +9055,29 @@ var Table = ({
8791
9055
  },
8792
9056
  headCell.id
8793
9057
  )) }) }),
8794
- /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material72.TableBody, { children: [
9058
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material74.TableBody, { children: [
8795
9059
  getTableRows(),
8796
- rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableCell, { colSpan: 8, align: "center", children: "Nothing to display" }) })
9060
+ rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableCell, { colSpan: 8, align: "center", children: "Nothing to display" }) })
8797
9061
  ] })
8798
9062
  ] }) }) }) });
8799
9063
  };
8800
9064
  var Table_default = Table;
8801
9065
 
8802
9066
  // src/components/TableDesktop/TableDesktop.tsx
8803
- var import_react42 = require("react");
8804
- var import_material77 = require("@mui/material");
9067
+ var import_react44 = require("react");
9068
+ var import_material79 = require("@mui/material");
8805
9069
 
8806
9070
  // src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
8807
- var import_material73 = require("@mui/material");
8808
- var import_jsx_runtime126 = require("react/jsx-runtime");
9071
+ var import_material75 = require("@mui/material");
9072
+ var import_jsx_runtime128 = require("react/jsx-runtime");
8809
9073
  var getRange = (n) => Array.from({ length: n }, (_, i) => i + 1);
8810
9074
  var TableDesktopLoadingState = ({
8811
9075
  numRows,
8812
9076
  numColumns,
8813
9077
  rowHeight = 56
8814
9078
  }) => {
8815
- return getRange(numRows).map((rowNum) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material73.TableRow, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material73.TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8816
- import_material73.Skeleton,
9079
+ return getRange(numRows).map((rowNum) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material75.TableRow, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material75.TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
9080
+ import_material75.Skeleton,
8817
9081
  {
8818
9082
  animation: "pulse",
8819
9083
  variant: "rounded",
@@ -8831,11 +9095,11 @@ var import_TableRow = __toESM(require("@mui/material/TableRow"), 1);
8831
9095
  var import_Typography = __toESM(require("@mui/material/Typography"), 1);
8832
9096
 
8833
9097
  // src/components/Buttons/BaseButton/BaseIconButton.tsx
8834
- var import_material74 = require("@mui/material");
8835
- var import_jsx_runtime127 = require("react/jsx-runtime");
9098
+ var import_material76 = require("@mui/material");
9099
+ var import_jsx_runtime129 = require("react/jsx-runtime");
8836
9100
  var BaseIconButton = ({ icon, sx, ...props }) => {
8837
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(
8838
- import_material74.Button,
9101
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
9102
+ import_material76.Button,
8839
9103
  {
8840
9104
  sx: {
8841
9105
  display: "flex",
@@ -8855,10 +9119,10 @@ var BaseIconButton = ({ icon, sx, ...props }) => {
8855
9119
  };
8856
9120
 
8857
9121
  // src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
8858
- var import_jsx_runtime128 = require("react/jsx-runtime");
9122
+ var import_jsx_runtime130 = require("react/jsx-runtime");
8859
9123
  var TableDesktopNoColumnsMessage = ({
8860
9124
  onClickNoColumnsMessageOpenMenu
8861
- }) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_TableBody.default, { children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_TableRow.default, { children: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
9125
+ }) => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_TableBody.default, { children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_TableRow.default, { children: /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
8862
9126
  import_TableCell.default,
8863
9127
  {
8864
9128
  sx: {
@@ -8871,9 +9135,9 @@ var TableDesktopNoColumnsMessage = ({
8871
9135
  alignItems: "center"
8872
9136
  },
8873
9137
  children: [
8874
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_Typography.default, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
8875
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_Typography.default, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
8876
- /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
9138
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_Typography.default, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
9139
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_Typography.default, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
9140
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
8877
9141
  import_Typography.default,
8878
9142
  {
8879
9143
  variant: "subtitle1",
@@ -8886,18 +9150,18 @@ var TableDesktopNoColumnsMessage = ({
8886
9150
  },
8887
9151
  children: [
8888
9152
  "Tips: ",
8889
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_Typography.default, { component: "strong", children: "Save as default" }),
9153
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_Typography.default, { component: "strong", children: "Save as default" }),
8890
9154
  " to keep these columns for future views"
8891
9155
  ]
8892
9156
  }
8893
9157
  ),
8894
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
9158
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
8895
9159
  BaseIconButton,
8896
9160
  {
8897
9161
  variant: "contained",
8898
9162
  color: "primary",
8899
9163
  onClick: onClickNoColumnsMessageOpenMenu,
8900
- icon: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(IconTableEdit_default, { fill: colors.white }),
9164
+ icon: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(IconTableEdit_default, { fill: colors.white }),
8901
9165
  children: "OPEN MENU"
8902
9166
  }
8903
9167
  )
@@ -8906,7 +9170,7 @@ var TableDesktopNoColumnsMessage = ({
8906
9170
  ) }) });
8907
9171
 
8908
9172
  // src/components/TableDesktopRows/TableDesktopRows.tsx
8909
- var import_jsx_runtime129 = require("react/jsx-runtime");
9173
+ var import_jsx_runtime131 = require("react/jsx-runtime");
8910
9174
  var descendingComparator2 = (a, b, orderBy) => {
8911
9175
  const objA = a[orderBy];
8912
9176
  const objB = b[orderBy];
@@ -8953,7 +9217,7 @@ var TableDesktopRows = ({
8953
9217
  return sortedData.map((row, index) => {
8954
9218
  const rowId = getRowId(row);
8955
9219
  const isItemSelected = selectedRows.has(rowId);
8956
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
9220
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
8957
9221
  RenderItem,
8958
9222
  {
8959
9223
  ...{
@@ -8975,8 +9239,8 @@ var TableDesktopRows = ({
8975
9239
  };
8976
9240
 
8977
9241
  // src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
8978
- var import_material75 = require("@mui/material");
8979
- var import_jsx_runtime130 = require("react/jsx-runtime");
9242
+ var import_material77 = require("@mui/material");
9243
+ var import_jsx_runtime132 = require("react/jsx-runtime");
8980
9244
  var TableDesktopRowSelectionBar = ({
8981
9245
  isEveryRowInPageSelected,
8982
9246
  isRowsFromAllPagesSelected,
@@ -8995,8 +9259,8 @@ var TableDesktopRowSelectionBar = ({
8995
9259
  }
8996
9260
  return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
8997
9261
  };
8998
- return isAnyRowSelected ? /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
8999
- import_material75.Box,
9262
+ return isAnyRowSelected ? /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
9263
+ import_material77.Box,
9000
9264
  {
9001
9265
  sx: {
9002
9266
  p: 1,
@@ -9008,22 +9272,22 @@ var TableDesktopRowSelectionBar = ({
9008
9272
  backgroundColor: colors.neutral150
9009
9273
  },
9010
9274
  children: [
9011
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_material75.Typography, { children: getSelectedRowsText() }),
9012
- !isRowsFromAllPagesSelected ? /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_material75.Button, { onClick: onSelectRowsFromAllPagesClick, children: [
9275
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_material77.Typography, { children: getSelectedRowsText() }),
9276
+ !isRowsFromAllPagesSelected ? /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_material77.Button, { onClick: onSelectRowsFromAllPagesClick, children: [
9013
9277
  "Select all ",
9014
9278
  totalRowCount,
9015
9279
  " rows from all pages based on your filters"
9016
9280
  ] }) : null,
9017
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_material75.Button, { onClick: onClearSelectionClick, children: "Clear Selection" })
9281
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_material77.Button, { onClick: onClearSelectionClick, children: "Clear Selection" })
9018
9282
  ]
9019
9283
  }
9020
9284
  ) : null;
9021
9285
  };
9022
9286
 
9023
9287
  // src/components/TableEmptyResult/TableEmptyResult.tsx
9024
- var import_material76 = require("@mui/material");
9288
+ var import_material78 = require("@mui/material");
9025
9289
  var import_mui52 = require("tss-react/mui");
9026
- var import_jsx_runtime131 = require("react/jsx-runtime");
9290
+ var import_jsx_runtime133 = require("react/jsx-runtime");
9027
9291
  var useStyles46 = (0, import_mui52.makeStyles)()(() => ({
9028
9292
  tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
9029
9293
  tableCellDefault: { padding: 24 }
@@ -9035,17 +9299,17 @@ var TableEmptyResult = ({
9035
9299
  }
9036
9300
  }) => {
9037
9301
  const { classes } = useStyles46();
9038
- return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_material76.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
9039
- import_material76.TableCell,
9302
+ return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
9303
+ import_material78.TableCell,
9040
9304
  {
9041
9305
  className: classes.tableCellIcon,
9042
9306
  colSpan,
9043
9307
  align: "center",
9044
9308
  children: [
9045
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(EmptyGlassIcon_default, {}),
9046
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_material76.Typography, { variant: "h6", children: "No results found." }),
9047
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_material76.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
9048
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
9309
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(EmptyGlassIcon_default, {}),
9310
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.Typography, { variant: "h6", children: "No results found." }),
9311
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
9312
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9049
9313
  FilledButton_default,
9050
9314
  {
9051
9315
  copy: "Search",
@@ -9056,8 +9320,8 @@ var TableEmptyResult = ({
9056
9320
  )
9057
9321
  ]
9058
9322
  }
9059
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_material76.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
9060
- import_material76.TableCell,
9323
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9324
+ import_material78.TableCell,
9061
9325
  {
9062
9326
  className: classes.tableCellDefault,
9063
9327
  colSpan,
@@ -9069,7 +9333,7 @@ var TableEmptyResult = ({
9069
9333
  var TableEmptyResult_default = TableEmptyResult;
9070
9334
 
9071
9335
  // src/components/TableDesktop/TableDesktop.tsx
9072
- var import_jsx_runtime132 = require("react/jsx-runtime");
9336
+ var import_jsx_runtime134 = require("react/jsx-runtime");
9073
9337
  var resolveKeyValue = (keyField, rowData) => {
9074
9338
  if (typeof keyField === "string") {
9075
9339
  return rowData[keyField];
@@ -9102,24 +9366,24 @@ var TableDesktop = ({
9102
9366
  shouldShowCheckOnFilter,
9103
9367
  refetchData
9104
9368
  }) => {
9105
- const tableToolbarMenuButtonRef = (0, import_react42.useRef)(null);
9106
- const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = (0, import_react42.useState)(null);
9107
- const [order, setOrder] = (0, import_react42.useState)(appliedFilters?.sortDir || "desc");
9108
- const [orderBy, setOrderBy] = (0, import_react42.useState)(
9369
+ const tableToolbarMenuButtonRef = (0, import_react44.useRef)(null);
9370
+ const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = (0, import_react44.useState)(null);
9371
+ const [order, setOrder] = (0, import_react44.useState)(appliedFilters?.sortDir || "desc");
9372
+ const [orderBy, setOrderBy] = (0, import_react44.useState)(
9109
9373
  appliedFilters?.sortField || "delivery_date"
9110
9374
  );
9111
- const [selectedRows, setSelectedRows] = (0, import_react42.useState)(/* @__PURE__ */ new Set());
9112
- const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = (0, import_react42.useState)(false);
9113
- const [isBulkChangesMode, setIsBulkChangesMode] = (0, import_react42.useState)(false);
9375
+ const [selectedRows, setSelectedRows] = (0, import_react44.useState)(/* @__PURE__ */ new Set());
9376
+ const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = (0, import_react44.useState)(false);
9377
+ const [isBulkChangesMode, setIsBulkChangesMode] = (0, import_react44.useState)(false);
9114
9378
  const numRows = data.length;
9115
- const numSelectedRows = (0, import_react42.useMemo)(() => {
9379
+ const numSelectedRows = (0, import_react44.useMemo)(() => {
9116
9380
  const currentPageIds = new Set(
9117
9381
  data.map((row) => resolveKeyValue(keyField, row))
9118
9382
  );
9119
9383
  return [...selectedRows].filter((id) => currentPageIds.has(id)).length;
9120
9384
  }, [data, selectedRows, keyField]);
9121
9385
  const isEveryRowInPageSelected = numRows > 0 && numSelectedRows === numRows;
9122
- const visibleHeadCells = (0, import_react42.useMemo)(
9386
+ const visibleHeadCells = (0, import_react44.useMemo)(
9123
9387
  () => headCells.filter((headCell) => headCell?.enabled ?? true),
9124
9388
  [headCells]
9125
9389
  );
@@ -9185,14 +9449,14 @@ var TableDesktop = ({
9185
9449
  refetchData?.();
9186
9450
  }
9187
9451
  };
9188
- (0, import_react42.useEffect)(() => {
9452
+ (0, import_react44.useEffect)(() => {
9189
9453
  if (isRowsFromAllPagesSelected) {
9190
9454
  selectAllRowsInPage();
9191
9455
  }
9192
9456
  }, [isRowsFromAllPagesSelected, data]);
9193
9457
  const renderBody = () => {
9194
9458
  if (isLoading) {
9195
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
9459
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9196
9460
  TableDesktopLoadingState,
9197
9461
  {
9198
9462
  numRows: Math.min(rowsPerPage, 10),
@@ -9202,7 +9466,7 @@ var TableDesktop = ({
9202
9466
  );
9203
9467
  }
9204
9468
  if (numRows === 0) {
9205
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
9469
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9206
9470
  TableEmptyResult_default,
9207
9471
  {
9208
9472
  showClearFilterButton,
@@ -9211,7 +9475,7 @@ var TableDesktop = ({
9211
9475
  }
9212
9476
  );
9213
9477
  }
9214
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
9478
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9215
9479
  TableDesktopRows,
9216
9480
  {
9217
9481
  data,
@@ -9230,8 +9494,8 @@ var TableDesktop = ({
9230
9494
  }
9231
9495
  );
9232
9496
  };
9233
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
9234
- import_material77.Box,
9497
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9498
+ import_material79.Box,
9235
9499
  {
9236
9500
  sx: {
9237
9501
  height,
@@ -9239,8 +9503,8 @@ var TableDesktop = ({
9239
9503
  justifyContent: "space-between",
9240
9504
  justifyItems: "stretch"
9241
9505
  },
9242
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
9243
- import_material77.Paper,
9506
+ children: /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(
9507
+ import_material79.Paper,
9244
9508
  {
9245
9509
  sx: {
9246
9510
  width: "100%",
@@ -9264,7 +9528,7 @@ var TableDesktop = ({
9264
9528
  isBulkChangesMode,
9265
9529
  onChangeBulkChangesMode: handleChangeBulkChangesMode
9266
9530
  }) : null,
9267
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
9531
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9268
9532
  TableDesktopRowSelectionBar,
9269
9533
  {
9270
9534
  isEveryRowInPageSelected,
@@ -9275,8 +9539,8 @@ var TableDesktop = ({
9275
9539
  onClearSelectionClick: handleClearSelectionClick
9276
9540
  }
9277
9541
  ),
9278
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
9279
- import_material77.TableContainer,
9542
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9543
+ import_material79.TableContainer,
9280
9544
  {
9281
9545
  sx: {
9282
9546
  flexGrow: 1,
@@ -9297,13 +9561,13 @@ var TableDesktop = ({
9297
9561
  backgroundColor: (theme) => theme.palette.grey[500]
9298
9562
  }
9299
9563
  },
9300
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_material77.Table, { stickyHeader: true, "aria-label": "sticky-table", sx: { tableLayout }, children: visibleHeadCells.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
9564
+ children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material79.Table, { stickyHeader: true, "aria-label": "sticky-table", sx: { tableLayout }, children: visibleHeadCells.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9301
9565
  TableDesktopNoColumnsMessage,
9302
9566
  {
9303
9567
  onClickNoColumnsMessageOpenMenu: handleClickToolbarMenuOpen
9304
9568
  }
9305
- ) : /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_jsx_runtime132.Fragment, { children: [
9306
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
9569
+ ) : /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_jsx_runtime134.Fragment, { children: [
9570
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9307
9571
  SmartTableHeader,
9308
9572
  {
9309
9573
  order,
@@ -9319,7 +9583,7 @@ var TableDesktop = ({
9319
9583
  shouldShowCheckOnFilter
9320
9584
  }
9321
9585
  ),
9322
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_material77.TableBody, { children: renderBody() })
9586
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material79.TableBody, { children: renderBody() })
9323
9587
  ] }) })
9324
9588
  }
9325
9589
  ),
@@ -9336,15 +9600,15 @@ var TableDesktop = ({
9336
9600
  };
9337
9601
 
9338
9602
  // src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
9339
- var import_react49 = require("react");
9603
+ var import_react51 = require("react");
9340
9604
  var import_Delete = __toESM(require("@mui/icons-material/Delete"), 1);
9341
- var import_material80 = require("@mui/material");
9605
+ var import_material82 = require("@mui/material");
9342
9606
  var import_x_date_pickers = require("@mui/x-date-pickers");
9343
9607
  var import_moment3 = __toESM(require("moment"), 1);
9344
9608
 
9345
9609
  // src/components/TableDesktopEditableField/TableDesktopSmartMultipleSelect.tsx
9346
- var import_react43 = require("react");
9347
- var import_jsx_runtime133 = require("react/jsx-runtime");
9610
+ var import_react45 = require("react");
9611
+ var import_jsx_runtime135 = require("react/jsx-runtime");
9348
9612
  var TableDesktopSmartMultipleSelect = ({
9349
9613
  initialValue,
9350
9614
  inputLabel,
@@ -9359,13 +9623,13 @@ var TableDesktopSmartMultipleSelect = ({
9359
9623
  isFetchingFilterOptions,
9360
9624
  onUpdateEditableCell
9361
9625
  }) => {
9362
- const defaultValues = (0, import_react43.useMemo)(() => {
9626
+ const defaultValues = (0, import_react45.useMemo)(() => {
9363
9627
  return initialValue?.map((val) => ({
9364
9628
  value: val.id,
9365
9629
  label: val[fieldName].toString()
9366
9630
  }));
9367
9631
  }, [initialValue]);
9368
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9632
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9369
9633
  SmartMultipleSelect,
9370
9634
  {
9371
9635
  inputLabel,
@@ -9396,8 +9660,8 @@ var TableDesktopSmartMultipleSelect = ({
9396
9660
  };
9397
9661
 
9398
9662
  // src/components/TableDesktopEditableField/TableDesktopSmartSelect.tsx
9399
- var import_react44 = require("react");
9400
- var import_jsx_runtime134 = require("react/jsx-runtime");
9663
+ var import_react46 = require("react");
9664
+ var import_jsx_runtime136 = require("react/jsx-runtime");
9401
9665
  var TableDesktopSmartSelect = ({
9402
9666
  ref,
9403
9667
  initialValue,
@@ -9414,12 +9678,12 @@ var TableDesktopSmartSelect = ({
9414
9678
  isFetchingFilterOptions,
9415
9679
  onUpdateEditableCell
9416
9680
  }) => {
9417
- const [value, setValue] = (0, import_react44.useState)(
9681
+ const [value, setValue] = (0, import_react46.useState)(
9418
9682
  initialValue
9419
9683
  );
9420
9684
  const valueId = resolveObjectType(value ?? "", "id");
9421
9685
  const valueLabel = resolveObjectType(value ?? "", fieldName);
9422
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9686
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9423
9687
  SmartSelect,
9424
9688
  {
9425
9689
  ref,
@@ -9451,13 +9715,13 @@ var TableDesktopSmartSelect = ({
9451
9715
  };
9452
9716
 
9453
9717
  // src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
9454
- var import_react47 = require("react");
9718
+ var import_react49 = require("react");
9455
9719
 
9456
9720
  // src/components/HashtagInput/HashtagInput.tsx
9457
- var import_react45 = require("react");
9458
- var import_material78 = require("@mui/material");
9459
- var import_jsx_runtime135 = require("react/jsx-runtime");
9460
- var import_react46 = require("react");
9721
+ var import_react47 = require("react");
9722
+ var import_material80 = require("@mui/material");
9723
+ var import_jsx_runtime137 = require("react/jsx-runtime");
9724
+ var import_react48 = require("react");
9461
9725
  var HashtagInput = ({
9462
9726
  label,
9463
9727
  placeholder,
@@ -9471,8 +9735,8 @@ var HashtagInput = ({
9471
9735
  onBlur,
9472
9736
  ...props
9473
9737
  }) => {
9474
- const { palette: palette2 } = (0, import_material78.useTheme)();
9475
- const [inputValue, setInputValue] = (0, import_react45.useState)("");
9738
+ const { palette: palette2 } = (0, import_material80.useTheme)();
9739
+ const [inputValue, setInputValue] = (0, import_react47.useState)("");
9476
9740
  const sanitizeTag = (value) => {
9477
9741
  return value.toLowerCase().replace(/[^a-z0-9#]/g, "").trim();
9478
9742
  };
@@ -9489,8 +9753,8 @@ var HashtagInput = ({
9489
9753
  handleAddTag();
9490
9754
  }
9491
9755
  };
9492
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9493
- import_material78.Autocomplete,
9756
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9757
+ import_material80.Autocomplete,
9494
9758
  {
9495
9759
  ...props,
9496
9760
  multiple: true,
@@ -9508,8 +9772,8 @@ var HashtagInput = ({
9508
9772
  onDeleteTag?.(details.option);
9509
9773
  }
9510
9774
  },
9511
- renderInput: (textFieldProps) => /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9512
- import_material78.TextField,
9775
+ renderInput: (textFieldProps) => /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9776
+ import_material80.TextField,
9513
9777
  {
9514
9778
  ...textFieldProps,
9515
9779
  autoFocus,
@@ -9528,8 +9792,8 @@ var HashtagInput = ({
9528
9792
  }
9529
9793
  ),
9530
9794
  renderValue: (value, getTagProps) => value.map((option, index) => {
9531
- return /* @__PURE__ */ (0, import_react46.createElement)(
9532
- import_material78.Chip,
9795
+ return /* @__PURE__ */ (0, import_react48.createElement)(
9796
+ import_material80.Chip,
9533
9797
  {
9534
9798
  ...getTagProps({ index }),
9535
9799
  key: option.id,
@@ -9539,7 +9803,7 @@ var HashtagInput = ({
9539
9803
  paddingBlock: 0,
9540
9804
  color: palette2.primary.main,
9541
9805
  fontWeight: "bold",
9542
- backgroundColor: (0, import_material78.alpha)(palette2.primary.main, 0.1)
9806
+ backgroundColor: (0, import_material80.alpha)(palette2.primary.main, 0.1)
9543
9807
  }
9544
9808
  }
9545
9809
  );
@@ -9549,7 +9813,7 @@ var HashtagInput = ({
9549
9813
  };
9550
9814
 
9551
9815
  // src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
9552
- var import_jsx_runtime136 = require("react/jsx-runtime");
9816
+ var import_jsx_runtime138 = require("react/jsx-runtime");
9553
9817
  var TableDesktopTagsField = ({
9554
9818
  initialValue,
9555
9819
  inputLabel,
@@ -9560,9 +9824,9 @@ var TableDesktopTagsField = ({
9560
9824
  size,
9561
9825
  onUpdateEditableCell
9562
9826
  }) => {
9563
- const [error, setError] = (0, import_react47.useState)();
9564
- const [values, setValues] = (0, import_react47.useState)([]);
9565
- const valuesRef = (0, import_react47.useRef)([]);
9827
+ const [error, setError] = (0, import_react49.useState)();
9828
+ const [values, setValues] = (0, import_react49.useState)([]);
9829
+ const valuesRef = (0, import_react49.useRef)([]);
9566
9830
  const validateTag = (tag) => {
9567
9831
  if (tag.length >= 30) {
9568
9832
  return false;
@@ -9581,14 +9845,14 @@ var TableDesktopTagsField = ({
9581
9845
  setValues(newTags);
9582
9846
  valuesRef.current = newTags;
9583
9847
  };
9584
- const initialValueTags = (0, import_react47.useMemo)(() => {
9848
+ const initialValueTags = (0, import_react49.useMemo)(() => {
9585
9849
  return (initialValue ?? []).map((val) => val.tag);
9586
9850
  }, [initialValue]);
9587
- (0, import_react47.useEffect)(() => {
9851
+ (0, import_react49.useEffect)(() => {
9588
9852
  setValues(initialValueTags);
9589
9853
  valuesRef.current = initialValueTags;
9590
9854
  }, [initialValueTags]);
9591
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_jsx_runtime136.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9855
+ return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_jsx_runtime138.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9592
9856
  HashtagInput,
9593
9857
  {
9594
9858
  autoFocus: true,
@@ -9623,9 +9887,9 @@ var TableDesktopTagsField = ({
9623
9887
  };
9624
9888
 
9625
9889
  // src/components/TableDesktopEditableField/TableDesktopTextField.tsx
9626
- var import_react48 = require("react");
9627
- var import_material79 = require("@mui/material");
9628
- var import_jsx_runtime137 = require("react/jsx-runtime");
9890
+ var import_react50 = require("react");
9891
+ var import_material81 = require("@mui/material");
9892
+ var import_jsx_runtime139 = require("react/jsx-runtime");
9629
9893
  var TableDesktopTextField = ({
9630
9894
  rowId,
9631
9895
  initialValue,
@@ -9638,13 +9902,13 @@ var TableDesktopTextField = ({
9638
9902
  validateInput,
9639
9903
  onUpdateEditableCell
9640
9904
  }) => {
9641
- const [input, setInput] = (0, import_react48.useState)(initialValue);
9642
- const oldValue = (0, import_react48.useRef)(initialValue);
9643
- const isDirty = (0, import_react48.useMemo)(
9905
+ const [input, setInput] = (0, import_react50.useState)(initialValue);
9906
+ const oldValue = (0, import_react50.useRef)(initialValue);
9907
+ const isDirty = (0, import_react50.useMemo)(
9644
9908
  () => input !== oldValue.current,
9645
9909
  [input, oldValue.current]
9646
9910
  );
9647
- const hasValidationError = (0, import_react48.useMemo)(
9911
+ const hasValidationError = (0, import_react50.useMemo)(
9648
9912
  () => isDirty && validateInput && !validateInput(input),
9649
9913
  [input, validateInput]
9650
9914
  );
@@ -9662,8 +9926,8 @@ var TableDesktopTextField = ({
9662
9926
  commitValue(input);
9663
9927
  }
9664
9928
  };
9665
- return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9666
- import_material79.TextField,
9929
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
9930
+ import_material81.TextField,
9667
9931
  {
9668
9932
  fullWidth: true,
9669
9933
  variant,
@@ -9695,7 +9959,7 @@ var TableDesktopTextField = ({
9695
9959
  };
9696
9960
 
9697
9961
  // src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
9698
- var import_jsx_runtime138 = require("react/jsx-runtime");
9962
+ var import_jsx_runtime140 = require("react/jsx-runtime");
9699
9963
  var TableDesktopEditableField = ({
9700
9964
  editInitialValue,
9701
9965
  rowId,
@@ -9716,8 +9980,8 @@ var TableDesktopEditableField = ({
9716
9980
  allowBlankSelectOption
9717
9981
  }
9718
9982
  }) => {
9719
- const [parsedFilterOptions, setParsedFilterOptions] = (0, import_react49.useState)();
9720
- (0, import_react49.useEffect)(() => {
9983
+ const [parsedFilterOptions, setParsedFilterOptions] = (0, import_react51.useState)();
9984
+ (0, import_react51.useEffect)(() => {
9721
9985
  if (filterOptions && editableCellType === "select" || editableCellType === "multipleSelect") {
9722
9986
  const parsedOptions = filterOptions?.map(
9723
9987
  (option) => ({
@@ -9729,7 +9993,7 @@ var TableDesktopEditableField = ({
9729
9993
  }
9730
9994
  }, [filterOptions, editableCellType]);
9731
9995
  const editableComponents = {
9732
- select: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9996
+ select: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
9733
9997
  TableDesktopSmartSelect,
9734
9998
  {
9735
9999
  rowId,
@@ -9747,7 +10011,7 @@ var TableDesktopEditableField = ({
9747
10011
  onUpdateEditableCell
9748
10012
  }
9749
10013
  ),
9750
- multipleSelect: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
10014
+ multipleSelect: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
9751
10015
  TableDesktopSmartMultipleSelect,
9752
10016
  {
9753
10017
  rowId,
@@ -9764,12 +10028,12 @@ var TableDesktopEditableField = ({
9764
10028
  onUpdateEditableCell
9765
10029
  }
9766
10030
  ),
9767
- checkbox: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9768
- import_material80.FormControlLabel,
10031
+ checkbox: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
10032
+ import_material82.FormControlLabel,
9769
10033
  {
9770
10034
  label: showCheckboxLabel ? inputLabel : "",
9771
- control: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9772
- import_material80.Checkbox,
10035
+ control: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
10036
+ import_material82.Checkbox,
9773
10037
  {
9774
10038
  disableRipple: true,
9775
10039
  disabled,
@@ -9786,7 +10050,7 @@ var TableDesktopEditableField = ({
9786
10050
  )
9787
10051
  }
9788
10052
  ),
9789
- text: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
10053
+ text: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
9790
10054
  TableDesktopTextField,
9791
10055
  {
9792
10056
  type: "text",
@@ -9801,7 +10065,7 @@ var TableDesktopEditableField = ({
9801
10065
  onUpdateEditableCell
9802
10066
  }
9803
10067
  ),
9804
- numeric: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
10068
+ numeric: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
9805
10069
  TableDesktopTextField,
9806
10070
  {
9807
10071
  type: "numeric",
@@ -9816,15 +10080,14 @@ var TableDesktopEditableField = ({
9816
10080
  onUpdateEditableCell
9817
10081
  }
9818
10082
  ),
9819
- date: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
10083
+ date: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
9820
10084
  import_x_date_pickers.DatePicker,
9821
10085
  {
9822
10086
  defaultValue: editInitialValue ? (0, import_moment3.default)(editInitialValue, "HH:mm:ss") : void 0,
9823
10087
  label: inputLabel,
9824
- format: "DD/MM/YYYY",
9825
10088
  onAccept: (value) => {
9826
10089
  const formattedValue = value?.format("YYYY-MM-DD") ?? null;
9827
- const formattedLabel = value?.format("DD/MM/YYYY") ?? null;
10090
+ const formattedLabel = value?.format("L") ?? null;
9828
10091
  onUpdateEditableCell?.({
9829
10092
  rowId,
9830
10093
  columnId,
@@ -9845,7 +10108,7 @@ var TableDesktopEditableField = ({
9845
10108
  }
9846
10109
  }
9847
10110
  ),
9848
- time: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
10111
+ time: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
9849
10112
  import_x_date_pickers.TimePicker,
9850
10113
  {
9851
10114
  defaultValue: editInitialValue ? (0, import_moment3.default)(editInitialValue, "HH:mm:ss") : void 0,
@@ -9872,7 +10135,7 @@ var TableDesktopEditableField = ({
9872
10135
  }
9873
10136
  }
9874
10137
  ),
9875
- tags: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
10138
+ tags: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
9876
10139
  TableDesktopTagsField,
9877
10140
  {
9878
10141
  initialValue: editInitialValue,
@@ -9893,8 +10156,8 @@ var TableDesktopEditableField = ({
9893
10156
 
9894
10157
  // src/components/TableDesktopFooter/TableDesktopFooter.tsx
9895
10158
  var import_Refresh = __toESM(require("@mui/icons-material/Refresh"), 1);
9896
- var import_material81 = require("@mui/material");
9897
- var import_jsx_runtime139 = require("react/jsx-runtime");
10159
+ var import_material83 = require("@mui/material");
10160
+ var import_jsx_runtime141 = require("react/jsx-runtime");
9898
10161
  var TableDesktopFooter = ({
9899
10162
  numPages,
9900
10163
  page,
@@ -9905,8 +10168,8 @@ var TableDesktopFooter = ({
9905
10168
  refetchData,
9906
10169
  isFetching
9907
10170
  }) => {
9908
- return /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(
9909
- import_material81.Box,
10171
+ return /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
10172
+ import_material83.Box,
9910
10173
  {
9911
10174
  sx: {
9912
10175
  py: 1,
@@ -9917,8 +10180,8 @@ var TableDesktopFooter = ({
9917
10180
  borderTop: `1px solid ${colors.neutral300}`
9918
10181
  },
9919
10182
  children: [
9920
- refetchData ? /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
9921
- import_material81.Button,
10183
+ refetchData ? /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10184
+ import_material83.Button,
9922
10185
  {
9923
10186
  disableRipple: true,
9924
10187
  variant: "text",
@@ -9929,7 +10192,7 @@ var TableDesktopFooter = ({
9929
10192
  ml: 1,
9930
10193
  gap: 1
9931
10194
  },
9932
- children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
10195
+ children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
9933
10196
  import_Refresh.default,
9934
10197
  {
9935
10198
  fontSize: "small",
@@ -9938,22 +10201,22 @@ var TableDesktopFooter = ({
9938
10201
  )
9939
10202
  }
9940
10203
  ) : null,
9941
- /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(import_material81.Box, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
9942
- pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(import_material81.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
9943
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_material81.Typography, { fontSize: 12, children: "Rows per page:" }),
9944
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
9945
- import_material81.Select,
10204
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_material83.Box, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
10205
+ pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_material83.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
10206
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material83.Typography, { fontSize: 12, children: "Rows per page:" }),
10207
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10208
+ import_material83.Select,
9946
10209
  {
9947
10210
  value: pageSize,
9948
10211
  onChange: onPageSizeChange,
9949
10212
  size: "small",
9950
10213
  variant: "standard",
9951
- children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_material81.MenuItem, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
10214
+ children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material83.MenuItem, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
9952
10215
  }
9953
10216
  )
9954
10217
  ] }) : null,
9955
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
9956
- import_material81.Pagination,
10218
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10219
+ import_material83.Pagination,
9957
10220
  {
9958
10221
  color: "standard",
9959
10222
  count: numPages,
@@ -9968,15 +10231,15 @@ var TableDesktopFooter = ({
9968
10231
  };
9969
10232
 
9970
10233
  // src/components/TableDesktopCell/TableDesktopCell.tsx
9971
- var import_react50 = require("react");
10234
+ var import_react52 = require("react");
9972
10235
  var import_Check3 = __toESM(require("@mui/icons-material/Check"), 1);
9973
10236
  var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
9974
10237
  var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
9975
- var import_material82 = require("@mui/material");
9976
- var import_jsx_runtime140 = require("react/jsx-runtime");
10238
+ var import_material84 = require("@mui/material");
10239
+ var import_jsx_runtime142 = require("react/jsx-runtime");
9977
10240
  var getReadOnlyBooleanIcon = (value) => {
9978
10241
  if (value) {
9979
- return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_Check3.default, { sx: { fontSize: 16 } });
10242
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_Check3.default, { sx: { fontSize: 16 } });
9980
10243
  }
9981
10244
  return "-";
9982
10245
  };
@@ -9998,10 +10261,10 @@ var TableDesktopCell = ({
9998
10261
  onCellClick,
9999
10262
  headCell
10000
10263
  }) => {
10001
- const [isCellHovered, setIsCellHovered] = (0, import_react50.useState)(false);
10002
- const [isCellInEditMode, setIsCellInEditMode] = (0, import_react50.useState)(false);
10264
+ const [isCellHovered, setIsCellHovered] = (0, import_react52.useState)(false);
10265
+ const [isCellInEditMode, setIsCellInEditMode] = (0, import_react52.useState)(false);
10003
10266
  const { width, editableCellType } = headCell;
10004
- (0, import_react50.useEffect)(() => {
10267
+ (0, import_react52.useEffect)(() => {
10005
10268
  const handleKeyDown = (e) => {
10006
10269
  if (e.key === "Escape") {
10007
10270
  setIsCellInEditMode(false);
@@ -10019,8 +10282,8 @@ var TableDesktopCell = ({
10019
10282
  setIsCellInEditMode((prev) => !prev);
10020
10283
  };
10021
10284
  const isCellEditable = !!enableEditMode && !!editableCellType && !disabled;
10022
- return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
10023
- import_material82.TableCell,
10285
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
10286
+ import_material84.TableCell,
10024
10287
  {
10025
10288
  align: "left",
10026
10289
  onMouseEnter: () => isCellEditable && setIsCellHovered(true),
@@ -10034,9 +10297,9 @@ var TableDesktopCell = ({
10034
10297
  ":hover": isCellEditable ? getCellBackgroundColor(isCellInEditMode) : void 0,
10035
10298
  background: enableEditMode && isCellInEditMode ? colors.lightBlueBackground : void 0
10036
10299
  },
10037
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(DynamicOverflowTooltip, { tooltipDescription: String(readOnlyValue), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_jsx_runtime140.Fragment, { children: [
10038
- enableEditMode && isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material82.Tooltip, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
10039
- import_material82.IconButton,
10300
+ children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DynamicOverflowTooltip, { tooltipDescription: String(readOnlyValue), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
10301
+ enableEditMode && isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.Tooltip, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
10302
+ import_material84.IconButton,
10040
10303
  {
10041
10304
  onClick: handleEditClick,
10042
10305
  sx: {
@@ -10050,10 +10313,10 @@ var TableDesktopCell = ({
10050
10313
  backgroundColor: isCellInEditMode ? colors.lightBlueBackground : colors.neutral150
10051
10314
  }
10052
10315
  },
10053
- children: isCellInEditMode ? /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_Edit.default, { fontSize: "small" })
10316
+ children: isCellInEditMode ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_Edit.default, { fontSize: "small" })
10054
10317
  }
10055
10318
  ) }) : null,
10056
- enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
10319
+ enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
10057
10320
  TableDesktopEditableField,
10058
10321
  {
10059
10322
  editInitialValue,
@@ -10069,12 +10332,12 @@ var TableDesktopCell = ({
10069
10332
  };
10070
10333
 
10071
10334
  // src/components/TableDesktopToolbar/TableDesktopToolbar.tsx
10072
- var import_react51 = require("react");
10335
+ var import_react53 = require("react");
10073
10336
  var import_Download = __toESM(require("@mui/icons-material/Download"), 1);
10074
10337
  var import_KeyboardArrowLeft2 = __toESM(require("@mui/icons-material/KeyboardArrowLeft"), 1);
10075
10338
  var import_KeyboardArrowRight2 = __toESM(require("@mui/icons-material/KeyboardArrowRight"), 1);
10076
- var import_material83 = require("@mui/material");
10077
- var import_jsx_runtime141 = require("react/jsx-runtime");
10339
+ var import_material85 = require("@mui/material");
10340
+ var import_jsx_runtime143 = require("react/jsx-runtime");
10078
10341
  var TableDesktopToolbar = ({
10079
10342
  toolbarLabel,
10080
10343
  headCells,
@@ -10097,12 +10360,12 @@ var TableDesktopToolbar = ({
10097
10360
  renderTableColumnConfigurationMenu,
10098
10361
  renderInfoIcons
10099
10362
  }) => {
10100
- const scrollRef = (0, import_react51.useRef)(null);
10101
- const [bulkChanges, setBulkChanges] = (0, import_react51.useState)([]);
10102
- const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = (0, import_react51.useState)(false);
10103
- const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = (0, import_react51.useState)(false);
10104
- const [resetCounter, setResetCounter] = (0, import_react51.useState)(0);
10105
- const visibleEditableColumns = (0, import_react51.useMemo)(
10363
+ const scrollRef = (0, import_react53.useRef)(null);
10364
+ const [bulkChanges, setBulkChanges] = (0, import_react53.useState)([]);
10365
+ const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = (0, import_react53.useState)(false);
10366
+ const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = (0, import_react53.useState)(false);
10367
+ const [resetCounter, setResetCounter] = (0, import_react53.useState)(0);
10368
+ const visibleEditableColumns = (0, import_react53.useMemo)(
10106
10369
  () => headCells.filter(
10107
10370
  (headCell) => headCell?.enabled && !!headCell?.editableCellType
10108
10371
  ),
@@ -10128,8 +10391,8 @@ var TableDesktopToolbar = ({
10128
10391
  return [...prev, { field: columnId, value, label }];
10129
10392
  });
10130
10393
  };
10131
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
10132
- import_material83.Box,
10394
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
10395
+ import_material85.Box,
10133
10396
  {
10134
10397
  sx: {
10135
10398
  borderBottom: "1px solid",
@@ -10137,8 +10400,8 @@ var TableDesktopToolbar = ({
10137
10400
  maxWidth: "100%"
10138
10401
  },
10139
10402
  children: [
10140
- /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
10141
- import_material83.Box,
10403
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
10404
+ import_material85.Box,
10142
10405
  {
10143
10406
  sx: {
10144
10407
  py: 1,
@@ -10149,8 +10412,8 @@ var TableDesktopToolbar = ({
10149
10412
  background: isBulkChangesMode ? colors.neutral150 : void 0
10150
10413
  },
10151
10414
  children: [
10152
- /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
10153
- import_material83.Box,
10415
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
10416
+ import_material85.Box,
10154
10417
  {
10155
10418
  sx: {
10156
10419
  py: 1,
@@ -10160,21 +10423,21 @@ var TableDesktopToolbar = ({
10160
10423
  whiteSpace: "nowrap"
10161
10424
  },
10162
10425
  children: [
10163
- toolbarLabel ? /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_jsx_runtime141.Fragment, { children: [
10164
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material83.Typography, { variant: "subtitle2", color: "textSecondary", children: toolbarLabel }),
10165
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material83.Divider, { orientation: "vertical", sx: { height: 0.75, py: 2.5 } })
10426
+ toolbarLabel ? /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
10427
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Typography, { variant: "subtitle2", color: "textSecondary", children: toolbarLabel }),
10428
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Divider, { orientation: "vertical", sx: { height: 0.75, py: 2.5 } })
10166
10429
  ] }) : null,
10167
- renderBulkChangesDialog && refetchData ? /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10168
- import_material83.Tooltip,
10430
+ renderBulkChangesDialog && refetchData ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10431
+ import_material85.Tooltip,
10169
10432
  {
10170
10433
  title: disableBulkChangesMode ? "Access denied, you don\u2019t have permission to use this feature." : "",
10171
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10172
- import_material83.FormControlLabel,
10434
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10435
+ import_material85.FormControlLabel,
10173
10436
  {
10174
10437
  label: "Bulk Changes Mode",
10175
10438
  disabled: disableBulkChangesMode || !visibleEditableColumns.length,
10176
- control: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10177
- import_material83.Switch,
10439
+ control: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10440
+ import_material85.Switch,
10178
10441
  {
10179
10442
  size: "small",
10180
10443
  "aria-label": "bulk-changes-mode-switch",
@@ -10188,17 +10451,17 @@ var TableDesktopToolbar = ({
10188
10451
  ]
10189
10452
  }
10190
10453
  ),
10191
- isScrollable && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10192
- import_material83.IconButton,
10454
+ isScrollable && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10455
+ import_material85.IconButton,
10193
10456
  {
10194
10457
  "aria-label": "scroll-left",
10195
10458
  sx: { padding: 0, alignSelf: "center" },
10196
10459
  onClick: () => scroll("left"),
10197
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_KeyboardArrowLeft2.default, {})
10460
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_KeyboardArrowLeft2.default, {})
10198
10461
  }
10199
10462
  ),
10200
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10201
- import_material83.Box,
10463
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10464
+ import_material85.Box,
10202
10465
  {
10203
10466
  ref: scrollRef,
10204
10467
  sx: {
@@ -10219,11 +10482,11 @@ var TableDesktopToolbar = ({
10219
10482
  if (bulkUpdateDisabled) {
10220
10483
  return null;
10221
10484
  }
10222
- return editableCellType && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10223
- import_material83.Box,
10485
+ return editableCellType && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10486
+ import_material85.Box,
10224
10487
  {
10225
10488
  sx: { width, flex: "0 0 auto" },
10226
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10489
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10227
10490
  TableDesktopEditableField,
10228
10491
  {
10229
10492
  headCell,
@@ -10239,18 +10502,18 @@ var TableDesktopToolbar = ({
10239
10502
  }) : null
10240
10503
  }
10241
10504
  ),
10242
- isScrollable && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10243
- import_material83.IconButton,
10505
+ isScrollable && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10506
+ import_material85.IconButton,
10244
10507
  {
10245
10508
  "aria-label": "scroll-right",
10246
10509
  sx: { p: 0, alignSelf: "center" },
10247
10510
  onClick: () => scroll("right"),
10248
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_KeyboardArrowRight2.default, {})
10511
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_KeyboardArrowRight2.default, {})
10249
10512
  }
10250
10513
  ),
10251
- isBulkChangesMode ? /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_jsx_runtime141.Fragment, { children: [
10252
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10253
- import_material83.Button,
10514
+ isBulkChangesMode ? /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
10515
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10516
+ import_material85.Button,
10254
10517
  {
10255
10518
  variant: "outlined",
10256
10519
  sx: { borderRadius: 25, alignSelf: "center" },
@@ -10262,8 +10525,8 @@ var TableDesktopToolbar = ({
10262
10525
  children: "RESET"
10263
10526
  }
10264
10527
  ),
10265
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10266
- import_material83.Button,
10528
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10529
+ import_material85.Button,
10267
10530
  {
10268
10531
  variant: "contained",
10269
10532
  "aria-label": "bulk-changes-apply-button",
@@ -10273,26 +10536,26 @@ var TableDesktopToolbar = ({
10273
10536
  children: "APPLY"
10274
10537
  }
10275
10538
  )
10276
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_material83.Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
10539
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material85.Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
10277
10540
  renderInfoIcons,
10278
- renderExportCsvDialog ? /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material83.Tooltip, { title: "Download List", children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10279
- import_material83.IconButton,
10541
+ renderExportCsvDialog ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Tooltip, { title: "Download List", children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10542
+ import_material85.IconButton,
10280
10543
  {
10281
10544
  disableRipple: true,
10282
10545
  disabled: isDataEmpty,
10283
10546
  "aria-label": "export-csv-button",
10284
10547
  onClick: () => setIsExportCsvDialogOpen(true),
10285
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_Download.default, { fill: colors.neutral750 })
10548
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_Download.default, { fill: colors.neutral750 })
10286
10549
  }
10287
10550
  ) }) }) : null,
10288
- renderTableColumnConfigurationMenu ? /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material83.Tooltip, { title: "Table Column Configuration", children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
10289
- import_material83.IconButton,
10551
+ renderTableColumnConfigurationMenu ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Tooltip, { title: "Table Column Configuration", children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10552
+ import_material85.IconButton,
10290
10553
  {
10291
10554
  disableRipple: true,
10292
10555
  "aria-label": "table-column-config-button",
10293
10556
  ref: tableToolbarMenuButtonRef,
10294
10557
  onClick: onClickToolbarMenuOpen,
10295
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconTableEdit_default, { fill: colors.neutral750 })
10558
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(IconTableEdit_default, { fill: colors.neutral750 })
10296
10559
  }
10297
10560
  ) }) : null
10298
10561
  ] })
@@ -10325,11 +10588,11 @@ var TableDesktopToolbar = ({
10325
10588
  };
10326
10589
 
10327
10590
  // src/components/TableHeader/TableHeader.tsx
10328
- var import_react52 = require("react");
10591
+ var import_react54 = require("react");
10329
10592
  var import_ImportExport = __toESM(require("@mui/icons-material/ImportExport"), 1);
10330
- var import_material84 = require("@mui/material");
10593
+ var import_material86 = require("@mui/material");
10331
10594
  var import_mui53 = require("tss-react/mui");
10332
- var import_jsx_runtime142 = require("react/jsx-runtime");
10595
+ var import_jsx_runtime144 = require("react/jsx-runtime");
10333
10596
  var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
10334
10597
  sortLabel: {
10335
10598
  "& .MuiTableSortLabel-icon": {
@@ -10338,9 +10601,9 @@ var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
10338
10601
  }
10339
10602
  }));
10340
10603
  var TableHeader = ({ cells, onSort = null }) => {
10341
- const [sortableCells, setSortableCells] = (0, import_react52.useState)([]);
10604
+ const [sortableCells, setSortableCells] = (0, import_react54.useState)([]);
10342
10605
  const { classes } = useStyles47();
10343
- (0, import_react52.useEffect)(() => {
10606
+ (0, import_react54.useEffect)(() => {
10344
10607
  setSortableCells(cells);
10345
10608
  }, []);
10346
10609
  const getNewSortDirection = (direction) => {
@@ -10374,8 +10637,8 @@ var TableHeader = ({ cells, onSort = null }) => {
10374
10637
  });
10375
10638
  setSortableCells(sortedCells);
10376
10639
  };
10377
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
10378
- import_material84.TableSortLabel,
10640
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material86.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material86.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material86.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
10641
+ import_material86.TableSortLabel,
10379
10642
  {
10380
10643
  className: classes.sortLabel,
10381
10644
  direction: cell?.direction || "asc",
@@ -10385,12 +10648,12 @@ var TableHeader = ({ cells, onSort = null }) => {
10385
10648
  }
10386
10649
  ) : cell.label }, cell.label || key)) }) });
10387
10650
  };
10388
- var TableHeader_default = (0, import_react52.memo)(TableHeader);
10651
+ var TableHeader_default = (0, import_react54.memo)(TableHeader);
10389
10652
 
10390
10653
  // src/components/TextDivider/TextDivider.tsx
10391
- var import_material85 = require("@mui/material");
10654
+ var import_material87 = require("@mui/material");
10392
10655
  var import_mui54 = require("tss-react/mui");
10393
- var import_jsx_runtime143 = require("react/jsx-runtime");
10656
+ var import_jsx_runtime145 = require("react/jsx-runtime");
10394
10657
  var useStyles48 = (0, import_mui54.makeStyles)()(() => ({
10395
10658
  icon: {
10396
10659
  fontSize: 20
@@ -10427,19 +10690,19 @@ var TextDivider = ({
10427
10690
  }) => {
10428
10691
  const { classes } = useStyles48();
10429
10692
  const iconColor = color ?? colors.neutral900;
10430
- return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
10431
- import_material85.Box,
10693
+ return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(
10694
+ import_material87.Box,
10432
10695
  {
10433
10696
  display: "flex",
10434
10697
  alignItems: "center",
10435
10698
  justifyContent: "space-between",
10436
10699
  className: classes.container,
10437
10700
  children: [
10438
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Divider, { className: classes.leftDivider }),
10439
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material85.Box, { className: classes.center, children: [
10440
- Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
10441
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
10442
- import_material85.Typography,
10701
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material87.Divider, { className: classes.leftDivider }),
10702
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material87.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material87.Box, { className: classes.center, children: [
10703
+ Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
10704
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
10705
+ import_material87.Typography,
10443
10706
  {
10444
10707
  color: "textSecondary",
10445
10708
  className: classes.title,
@@ -10447,9 +10710,9 @@ var TextDivider = ({
10447
10710
  children: title
10448
10711
  }
10449
10712
  ),
10450
- Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
10713
+ Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
10451
10714
  ] }) }),
10452
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Divider, { className: classes.rightDivider })
10715
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material87.Divider, { className: classes.rightDivider })
10453
10716
  ]
10454
10717
  }
10455
10718
  );
@@ -10461,7 +10724,7 @@ var import_react_dates = require("react-dates");
10461
10724
  var import_mui55 = require("tss-react/mui");
10462
10725
  var import_initialize = require("react-dates/initialize");
10463
10726
  var import_datepicker = require("react-dates/lib/css/_datepicker.css");
10464
- var import_jsx_runtime144 = require("react/jsx-runtime");
10727
+ var import_jsx_runtime146 = require("react/jsx-runtime");
10465
10728
  var useStyles49 = (0, import_mui55.makeStyles)()((theme) => ({
10466
10729
  wrapper: {
10467
10730
  "& .DateRangePicker": {
@@ -10557,15 +10820,15 @@ var ThemedDateRangePicker = ({
10557
10820
  ...props
10558
10821
  }) => {
10559
10822
  const { classes, cx } = useStyles49();
10560
- return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_react_dates.DateRangePicker, { ...props }) });
10823
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_react_dates.DateRangePicker, { ...props }) });
10561
10824
  };
10562
10825
  var ThemedDateRangePicker_default = ThemedDateRangePicker;
10563
10826
 
10564
10827
  // src/components/TheToolbar/TheToolbar.tsx
10565
- var import_react53 = require("react");
10566
- var import_material86 = require("@mui/material");
10828
+ var import_react55 = require("react");
10829
+ var import_material88 = require("@mui/material");
10567
10830
  var import_mui56 = require("tss-react/mui");
10568
- var import_jsx_runtime145 = require("react/jsx-runtime");
10831
+ var import_jsx_runtime147 = require("react/jsx-runtime");
10569
10832
  var useStyles50 = (0, import_mui56.makeStyles)()((theme) => ({
10570
10833
  menuButton: {
10571
10834
  color: theme.palette.primary.contrastText
@@ -10582,13 +10845,14 @@ var TheToolbar = ({
10582
10845
  handleOpen,
10583
10846
  LeftDrawer,
10584
10847
  leftSection,
10848
+ centerSection,
10585
10849
  rightSection,
10586
10850
  isAuthenticated = true
10587
10851
  }) => {
10588
10852
  const { classes } = useStyles50();
10589
- return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material86.Box, { children: [
10590
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material86.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material86.Toolbar, { className: classes.topBar, children: [
10591
- isAuthenticated ? /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
10853
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material88.Box, { children: [
10854
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material88.Toolbar, { className: classes.topBar, children: [
10855
+ isAuthenticated ? /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
10592
10856
  RoundButton_default,
10593
10857
  {
10594
10858
  className: classes.menuButton,
@@ -10597,7 +10861,7 @@ var TheToolbar = ({
10597
10861
  onClick: handleOpen
10598
10862
  }
10599
10863
  ) : null,
10600
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
10864
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
10601
10865
  CompanyLogo_default,
10602
10866
  {
10603
10867
  size: "small",
@@ -10606,31 +10870,43 @@ var TheToolbar = ({
10606
10870
  imageLogoLightSmall
10607
10871
  }
10608
10872
  ),
10609
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material86.Box, { ml: 2, children: leftSection }),
10610
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material86.Box, { ml: "auto", children: rightSection })
10873
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Box, { ml: 2, children: leftSection }),
10874
+ centerSection ? /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
10875
+ import_material88.Box,
10876
+ {
10877
+ sx: {
10878
+ flexGrow: 1,
10879
+ minWidth: 0,
10880
+ display: "flex",
10881
+ justifyContent: "center"
10882
+ },
10883
+ children: centerSection
10884
+ }
10885
+ ) : /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Box, { sx: { flexGrow: 1 } }),
10886
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Box, { children: rightSection })
10611
10887
  ] }) }),
10612
10888
  LeftDrawer
10613
10889
  ] });
10614
10890
  };
10615
- var TheToolbar_default = (0, import_react53.memo)(TheToolbar);
10891
+ var TheToolbar_default = (0, import_react55.memo)(TheToolbar);
10616
10892
 
10617
10893
  // src/components/ToastMessage/ToastMessage.tsx
10618
- var import_material87 = require("@mui/material");
10619
- var import_jsx_runtime146 = require("react/jsx-runtime");
10894
+ var import_material89 = require("@mui/material");
10895
+ var import_jsx_runtime148 = require("react/jsx-runtime");
10620
10896
  var ToastMessage = ({
10621
10897
  toastType,
10622
10898
  toastMessage,
10623
10899
  open,
10624
10900
  onClose
10625
- }) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
10626
- import_material87.Snackbar,
10901
+ }) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
10902
+ import_material89.Snackbar,
10627
10903
  {
10628
10904
  open,
10629
10905
  autoHideDuration: 3e3,
10630
10906
  onClose,
10631
10907
  anchorOrigin: { vertical: "top", horizontal: "right" },
10632
- children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
10633
- import_material87.Alert,
10908
+ children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
10909
+ import_material89.Alert,
10634
10910
  {
10635
10911
  elevation: 6,
10636
10912
  variant: "filled",
@@ -10656,9 +10932,9 @@ var ToastMessage = ({
10656
10932
  var ToastMessage_default = ToastMessage;
10657
10933
 
10658
10934
  // src/components/TwoButtonDialog/TwoButtonDialog.tsx
10659
- var import_material88 = require("@mui/material");
10935
+ var import_material90 = require("@mui/material");
10660
10936
  var import_mui57 = require("tss-react/mui");
10661
- var import_jsx_runtime147 = require("react/jsx-runtime");
10937
+ var import_jsx_runtime149 = require("react/jsx-runtime");
10662
10938
  var useStyles51 = (0, import_mui57.makeStyles)()((theme) => ({
10663
10939
  paper: {
10664
10940
  padding: theme.spacing(2)
@@ -10688,20 +10964,20 @@ var TwoButtonDialog = ({
10688
10964
  cancelButton
10689
10965
  }) => {
10690
10966
  const { classes } = useStyles51();
10691
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
10692
- import_material88.Dialog,
10967
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
10968
+ import_material90.Dialog,
10693
10969
  {
10694
10970
  open,
10695
10971
  disableEnforceFocus: true,
10696
10972
  maxWidth: "sm",
10697
10973
  fullWidth: true,
10698
10974
  closeAfterTransition: true,
10699
- BackdropComponent: import_material88.Backdrop,
10975
+ BackdropComponent: import_material90.Backdrop,
10700
10976
  BackdropProps: { timeout: 500 },
10701
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material88.Paper, { className: classes.paper, children: [
10702
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material88.Box, { className: classes.mb, children: [
10703
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
10704
- import_material88.Box,
10977
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material90.Paper, { className: classes.paper, children: [
10978
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material90.Box, { className: classes.mb, children: [
10979
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
10980
+ import_material90.Box,
10705
10981
  {
10706
10982
  sx: {
10707
10983
  fontWeight: 600
@@ -10709,23 +10985,23 @@ var TwoButtonDialog = ({
10709
10985
  children: title
10710
10986
  }
10711
10987
  ) }),
10712
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
10713
- import_material88.Box,
10988
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
10989
+ import_material90.Box,
10714
10990
  {
10715
10991
  className: classes.mt,
10716
10992
  sx: {
10717
10993
  fontWeight: 600
10718
10994
  },
10719
10995
  children: [
10720
- subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Typography, { variant: "subtitle1", children: subtitle1 }),
10721
- subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Typography, { variant: "subtitle1", children: subtitle2 })
10996
+ subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Typography, { variant: "subtitle1", children: subtitle1 }),
10997
+ subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Typography, { variant: "subtitle1", children: subtitle2 })
10722
10998
  ]
10723
10999
  }
10724
11000
  )
10725
11001
  ] }),
10726
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Divider, {}),
10727
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material88.Box, { className: classes.buttonContainer, children: [
10728
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
11002
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Divider, {}),
11003
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material90.Box, { className: classes.buttonContainer, children: [
11004
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
10729
11005
  FilledButton_default,
10730
11006
  {
10731
11007
  copy: cancelLabel,
@@ -10738,7 +11014,7 @@ var TwoButtonDialog = ({
10738
11014
  }
10739
11015
  }
10740
11016
  ),
10741
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
11017
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
10742
11018
  FilledButton_default,
10743
11019
  {
10744
11020
  color: "primary",
@@ -10747,7 +11023,7 @@ var TwoButtonDialog = ({
10747
11023
  }
10748
11024
  )
10749
11025
  ] }),
10750
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Loading_default, { isLoading: dialogLoading })
11026
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Loading_default, { isLoading: dialogLoading })
10751
11027
  ] }) })
10752
11028
  }
10753
11029
  );
@@ -10755,30 +11031,30 @@ var TwoButtonDialog = ({
10755
11031
  var TwoButtonDialog_default = TwoButtonDialog;
10756
11032
 
10757
11033
  // src/components/UserBust/UserBust.tsx
10758
- var import_react54 = require("react");
10759
- var import_material89 = require("@mui/material");
10760
- var import_jsx_runtime148 = require("react/jsx-runtime");
10761
- var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { children: [
10762
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
10763
- import_material89.Avatar,
11034
+ var import_react56 = require("react");
11035
+ var import_material91 = require("@mui/material");
11036
+ var import_jsx_runtime150 = require("react/jsx-runtime");
11037
+ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { children: [
11038
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
11039
+ import_material91.Avatar,
10764
11040
  {
10765
11041
  src: user.profile_picture,
10766
11042
  alt: "user_avatar",
10767
11043
  style: { width: avatarProps.width, height: avatarProps.height }
10768
11044
  }
10769
11045
  ),
10770
- /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { style: { paddingTop: 16 }, children: [
10771
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material89.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
10772
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material89.Typography, { ...typographyProps.username, children: user.username })
11046
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { style: { paddingTop: 16 }, children: [
11047
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material91.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
11048
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material91.Typography, { ...typographyProps.username, children: user.username })
10773
11049
  ] })
10774
11050
  ] });
10775
- var UserBust_default = (0, import_react54.memo)(UserBust);
11051
+ var UserBust_default = (0, import_react56.memo)(UserBust);
10776
11052
 
10777
11053
  // src/components/icons/IconChart.tsx
10778
- var import_jsx_runtime149 = require("react/jsx-runtime");
11054
+ var import_jsx_runtime151 = require("react/jsx-runtime");
10779
11055
  var SvgIconChart = (props) => {
10780
11056
  const { fill } = props;
10781
- return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
11057
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
10782
11058
  "svg",
10783
11059
  {
10784
11060
  width: "20",
@@ -10787,7 +11063,7 @@ var SvgIconChart = (props) => {
10787
11063
  fill: "none",
10788
11064
  xmlns: "http://www.w3.org/2000/svg",
10789
11065
  ...props,
10790
- children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
11066
+ children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
10791
11067
  "path",
10792
11068
  {
10793
11069
  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",
@@ -10835,6 +11111,8 @@ var IconChart_default = SvgIconChart;
10835
11111
  FilterOptionsCheckboxes,
10836
11112
  FilterSimpleSelector,
10837
11113
  FixedFooter,
11114
+ GlobalSearch,
11115
+ GlobalSearchTrigger,
10838
11116
  GooglePlacesAddressAutocomplete,
10839
11117
  HashtagInput,
10840
11118
  Header,