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