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