@bjsdistribution/dms-client-return 0.2.3-prod → 0.2.4-prod
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/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.js +101 -94
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.js.map +1 -1
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.js +6 -0
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import { useApiHook as
|
|
3
|
-
import { notification as
|
|
4
|
-
import { format as
|
|
5
|
-
import { useAtom as
|
|
6
|
-
import { useRef as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useReturnData as
|
|
13
|
-
import { useSelectedOrders as
|
|
14
|
-
import { filtersReducerAtom as
|
|
1
|
+
import { jsx as t, Fragment as se, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useApiHook as de, Checkbox as E } from "@bjsdistribution/dms-component-library";
|
|
3
|
+
import { notification as ue, Skeleton as he, Empty as pe, Tooltip as H } from "antd";
|
|
4
|
+
import { format as _e } from "date-fns";
|
|
5
|
+
import { useAtom as me } from "jotai";
|
|
6
|
+
import { useRef as K, useState as fe, useMemo as ge, useEffect as R } from "react";
|
|
7
|
+
import Ce from "../../../../assets/icons/DownIcon.js";
|
|
8
|
+
import be from "../../../../assets/icons/PrinterIcon.js";
|
|
9
|
+
import V from "../../../../common/CaretDownFilledIcon.js";
|
|
10
|
+
import ye from "../../../../common/SortIcon.js";
|
|
11
|
+
import Ne from "../../../order-view/details-filters/left-side-filters/dropdowns/PrintDropDownReturn.js";
|
|
12
|
+
import { useReturnData as we, usefetchAgain as Se } from "../../../order-view/store.js";
|
|
13
|
+
import { useSelectedOrders as Re, useSelectAll as ke, useReturnPayload as Ae, useNewReturnPayload as De, useGroupedPayload as Pe, useLocationData as Ie, useFlatCustomerData as Le } from "../../../store.js";
|
|
14
|
+
import { filtersReducerAtom as Oe } from "../../header-filters/filterStore.js";
|
|
15
15
|
import { displayValueOrNA as s } from "../../shared/utlis.js";
|
|
16
|
-
import { useLoading as
|
|
17
|
-
import { EmptyDataContainer as
|
|
18
|
-
import { StyledTableWrapper as
|
|
19
|
-
import { useSearchParams as
|
|
20
|
-
import { WEIGHT_UNIT as
|
|
16
|
+
import { useLoading as ve, usePrintOptionTOggle as Ee, UsePaginationData as Te } from "../../store/store.js";
|
|
17
|
+
import { EmptyDataContainer as Ue } from "../../table/table-data/styles.js";
|
|
18
|
+
import { StyledTableWrapper as We, StyledTable as Fe, CustomDrop as Me } from "./returnstyles.js";
|
|
19
|
+
import { useSearchParams as xe, NavLink as je } from "react-router-dom";
|
|
20
|
+
import { WEIGHT_UNIT as $, VOLUME_UNIT as Be, getAccountTypeLabel as J } from "../../../../common/utils.js";
|
|
21
21
|
const Ge = [
|
|
22
22
|
"RTS",
|
|
23
23
|
"CLAIMS PAID",
|
|
@@ -25,51 +25,51 @@ const Ge = [
|
|
|
25
25
|
"RE-ALLOCATE",
|
|
26
26
|
"RECYCLE",
|
|
27
27
|
"UNKNOWN"
|
|
28
|
-
],
|
|
29
|
-
const [
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
if (!
|
|
28
|
+
], Y = (d) => Ge.includes(d?.product_return_action), He = (d) => !!d?.return_location && d?.return_location !== "null" && d?.new_location !== null, b = (d) => Y(d) && He(d), ut = () => {
|
|
29
|
+
const [d] = me(Oe), [y, k] = Re(), [q, A] = ke(), { "x-filters": z, "x-pagination": Ke } = d, [p, T] = we(), [Q, U] = ve(), X = K(null), D = K(null), [W, F] = Ee(), [, Z] = Ae(), [P, N] = De(), [, I] = Pe(), [L] = Ie(), [, ee] = Te(), [te] = Se(), [ne] = xe(), O = ne.get("customerId"), [m, re] = fe(null), f = (e) => {
|
|
30
|
+
re((n) => n?.key === e && n.direction === "asc" ? { key: e, direction: "desc" } : { key: e, direction: "asc" });
|
|
31
|
+
}, M = ge(() => {
|
|
32
|
+
if (!p || !m) return p;
|
|
33
33
|
const { key: e, direction: n } = m;
|
|
34
|
-
return [...
|
|
34
|
+
return [...p].sort((o, a) => {
|
|
35
35
|
const l = o[e], i = a[e];
|
|
36
36
|
return typeof l == "number" && typeof i == "number" ? n === "asc" ? l - i : i - l : typeof l == "string" && typeof i == "string" ? n === "asc" ? l.localeCompare(i) : i.localeCompare(l) : 0;
|
|
37
37
|
});
|
|
38
|
-
}, [
|
|
39
|
-
|
|
38
|
+
}, [p, m]), g = (e) => !m || m.key !== e ? /* @__PURE__ */ t(ye, {}) : m.direction === "asc" ? /* @__PURE__ */ t(V, {}) : /* @__PURE__ */ t(V, {}), oe = (e) => {
|
|
39
|
+
F((n) => n === e ? null : e);
|
|
40
40
|
};
|
|
41
|
-
R(() => (document.addEventListener("mousedown",
|
|
42
|
-
document.removeEventListener("mousedown",
|
|
41
|
+
R(() => (document.addEventListener("mousedown", x), () => {
|
|
42
|
+
document.removeEventListener("mousedown", x);
|
|
43
43
|
}), []);
|
|
44
|
-
const
|
|
45
|
-
|
|
44
|
+
const x = (e) => {
|
|
45
|
+
D.current && !D.current.contains(e.target) && F(null);
|
|
46
46
|
}, {
|
|
47
|
-
data:
|
|
48
|
-
loading:
|
|
49
|
-
paginationData:
|
|
50
|
-
setShouldPerformAction:
|
|
51
|
-
} =
|
|
47
|
+
data: _,
|
|
48
|
+
loading: w,
|
|
49
|
+
paginationData: j,
|
|
50
|
+
setShouldPerformAction: ae
|
|
51
|
+
} = de({
|
|
52
52
|
endpoint: "/v1/return/product/pending/",
|
|
53
53
|
method: "GET",
|
|
54
|
-
filters:
|
|
54
|
+
filters: z,
|
|
55
55
|
pagination: { is_pagination: !1 },
|
|
56
56
|
performAction: !1,
|
|
57
57
|
showLoader: !1
|
|
58
58
|
});
|
|
59
59
|
R(() => {
|
|
60
|
-
if (
|
|
60
|
+
if (U(w), _ && _?.data && (T(_?.data), j))
|
|
61
61
|
try {
|
|
62
|
-
const { count: e, ...n } = JSON.parse(
|
|
63
|
-
|
|
62
|
+
const { count: e, ...n } = JSON.parse(j);
|
|
63
|
+
ee(n);
|
|
64
64
|
} catch (e) {
|
|
65
|
-
console.error("Error parsing paginationData:", e),
|
|
65
|
+
console.error("Error parsing paginationData:", e), ue.error({
|
|
66
66
|
message: "Error",
|
|
67
67
|
description: "Failed to parse pagination data"
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
}, [
|
|
71
|
-
if (
|
|
72
|
-
const e =
|
|
70
|
+
}, [_, w]), R(() => {
|
|
71
|
+
if (U(w), ae(!0), _ && _?.data && L) {
|
|
72
|
+
const e = _.data.map((n) => {
|
|
73
73
|
const o = L.find(
|
|
74
74
|
(a) => a?.token === n?.return_location
|
|
75
75
|
);
|
|
@@ -78,22 +78,22 @@ const Ge = [
|
|
|
78
78
|
new_location: o ? o?.location_name : null
|
|
79
79
|
};
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
T(e);
|
|
82
82
|
}
|
|
83
|
-
}, [
|
|
84
|
-
const [
|
|
83
|
+
}, [_, w, L, d, te]);
|
|
84
|
+
const [ce] = Le(), B = ce?.find((e) => {
|
|
85
85
|
const n = e?.customer_id?.toString();
|
|
86
86
|
return n && n === O;
|
|
87
|
-
}), G =
|
|
88
|
-
console.log(
|
|
89
|
-
const
|
|
87
|
+
}), G = B?.account_number;
|
|
88
|
+
console.log(B, "selectedCustomer");
|
|
89
|
+
const le = (e) => {
|
|
90
90
|
const n = e.target.checked;
|
|
91
91
|
if (A(n), n) {
|
|
92
|
-
const o =
|
|
92
|
+
const o = p?.find(
|
|
93
93
|
(r) => b(r)
|
|
94
94
|
), a = y.length > 0 ? y[0]?.product_return_action : o?.product_return_action;
|
|
95
95
|
if (!a) return;
|
|
96
|
-
const l =
|
|
96
|
+
const l = p?.filter(
|
|
97
97
|
(r) => b(r) && r?.product_return_action === a
|
|
98
98
|
), i = l.map((r) => ({
|
|
99
99
|
id: r.id,
|
|
@@ -102,7 +102,7 @@ const Ge = [
|
|
|
102
102
|
products: r?.legacy_product_id,
|
|
103
103
|
product_return_action: r?.product_return_action,
|
|
104
104
|
return_location_token: r?.return_location
|
|
105
|
-
})),
|
|
105
|
+
})), u = l.map((r) => ({
|
|
106
106
|
id: r.id,
|
|
107
107
|
account_number: G,
|
|
108
108
|
customer_id: Number(O),
|
|
@@ -110,27 +110,27 @@ const Ge = [
|
|
|
110
110
|
return_action: r?.product_return_action,
|
|
111
111
|
return_location_token: r?.return_location || null
|
|
112
112
|
}));
|
|
113
|
-
console.log(
|
|
113
|
+
console.log(u, "newPayloadnewPayload"), k(i), N(u);
|
|
114
114
|
} else
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
|
|
115
|
+
k([]), N([]), I([]);
|
|
116
|
+
}, ie = (e, n, o, a, l) => {
|
|
117
|
+
k((i) => {
|
|
118
118
|
if (i?.some(
|
|
119
119
|
(r) => r.id === e
|
|
120
120
|
)) {
|
|
121
121
|
const r = i.filter(
|
|
122
|
-
(
|
|
122
|
+
(h) => h.id !== e
|
|
123
123
|
);
|
|
124
|
-
|
|
125
|
-
...
|
|
124
|
+
Z((h) => ({
|
|
125
|
+
...h,
|
|
126
126
|
products: l,
|
|
127
127
|
return_action: a || null,
|
|
128
128
|
return_location_token: n || null
|
|
129
129
|
})), N(
|
|
130
|
-
(
|
|
130
|
+
(h) => h.filter((C) => C.id !== e)
|
|
131
131
|
);
|
|
132
|
-
const
|
|
133
|
-
(
|
|
132
|
+
const S = a, v = p?.filter(
|
|
133
|
+
(h) => b(h) && h?.product_return_action === S
|
|
134
134
|
)?.length;
|
|
135
135
|
return A(
|
|
136
136
|
r?.length > 0 && r?.length === v
|
|
@@ -145,7 +145,7 @@ const Ge = [
|
|
|
145
145
|
return_location_token: n || null
|
|
146
146
|
};
|
|
147
147
|
N((C) => [...C, r]);
|
|
148
|
-
const
|
|
148
|
+
const S = [
|
|
149
149
|
...i,
|
|
150
150
|
{
|
|
151
151
|
id: e,
|
|
@@ -153,32 +153,32 @@ const Ge = [
|
|
|
153
153
|
return_location_name: o,
|
|
154
154
|
product_return_action: a
|
|
155
155
|
}
|
|
156
|
-
], v = a,
|
|
156
|
+
], v = a, h = p?.filter(
|
|
157
157
|
(C) => b(C) && C?.product_return_action === v
|
|
158
158
|
)?.length;
|
|
159
|
-
return A(
|
|
159
|
+
return A(S?.length === h), S;
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
};
|
|
163
163
|
return R(() => {
|
|
164
|
-
if (
|
|
164
|
+
if (P?.length === 0) {
|
|
165
165
|
I([]);
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
|
-
const e =
|
|
169
|
-
const { return_location_token: l, id: i } = a,
|
|
170
|
-
return o[
|
|
168
|
+
const e = P?.reduce((o, a) => {
|
|
169
|
+
const { return_location_token: l, id: i } = a, u = l || `no_token_${i}`;
|
|
170
|
+
return o[u] || (o[u] = {
|
|
171
171
|
...a,
|
|
172
172
|
products: [],
|
|
173
173
|
return_action: []
|
|
174
|
-
}), o[
|
|
175
|
-
/* @__PURE__ */ new Set([...o[
|
|
174
|
+
}), o[u].products = [...o[u].products, ...a.products], o[u].return_action = Array.from(
|
|
175
|
+
/* @__PURE__ */ new Set([...o[u].return_action, ...a.return_action])
|
|
176
176
|
), o;
|
|
177
177
|
}, {}), n = Object.values(e);
|
|
178
178
|
I(n);
|
|
179
|
-
}, [
|
|
179
|
+
}, [P]), /* @__PURE__ */ t(se, { children: /* @__PURE__ */ t(We, { className: "fortables return-cards-wrapper", children: /* @__PURE__ */ c(Fe, { className: "return-cards", children: [
|
|
180
180
|
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ c("tr", { children: [
|
|
181
|
-
|
|
181
|
+
p?.some((e) => b(e)) ? /* @__PURE__ */ t("th", { className: "emailInvoiceCheckbox", children: /* @__PURE__ */ t(E, { checked: q, onChange: le }) }) : /* @__PURE__ */ t("th", {}),
|
|
182
182
|
/* @__PURE__ */ t("th", { onClick: () => f("location"), children: /* @__PURE__ */ c("div", { className: "sortIconClass", children: [
|
|
183
183
|
"Product Location ",
|
|
184
184
|
g("location")
|
|
@@ -198,11 +198,11 @@ const Ge = [
|
|
|
198
198
|
/* @__PURE__ */ t("th", { children: "Part" }),
|
|
199
199
|
/* @__PURE__ */ t("th", { onClick: () => f("weight"), children: /* @__PURE__ */ c("div", { className: "sortIconClass", children: [
|
|
200
200
|
"Weight (",
|
|
201
|
-
|
|
201
|
+
$,
|
|
202
202
|
") ",
|
|
203
203
|
g("weight")
|
|
204
204
|
] }) }),
|
|
205
|
-
/* @__PURE__ */ t("th", { children:
|
|
205
|
+
/* @__PURE__ */ t("th", { children: Be }),
|
|
206
206
|
/* @__PURE__ */ t("th", { onClick: () => f("return_reason"), children: /* @__PURE__ */ c("div", { className: "sortIconClass", children: [
|
|
207
207
|
"Return Reason ",
|
|
208
208
|
g("return_reason")
|
|
@@ -214,11 +214,11 @@ const Ge = [
|
|
|
214
214
|
] }) }),
|
|
215
215
|
/* @__PURE__ */ t("th", { className: "emailInvoiceShare", children: "Labels" })
|
|
216
216
|
] }) }),
|
|
217
|
-
/* @__PURE__ */ t("tbody", { children:
|
|
217
|
+
/* @__PURE__ */ t("tbody", { children: Q ? /* @__PURE__ */ t("tr", { className: "state-row", children: /* @__PURE__ */ t("td", { colSpan: 14, className: "state-cell", children: /* @__PURE__ */ t(he, { active: !0 }) }) }) : M?.length === 0 ? /* @__PURE__ */ t("tr", { className: "state-row", children: /* @__PURE__ */ t("td", { colSpan: 14, className: "state-cell", children: /* @__PURE__ */ t(Ue, { children: /* @__PURE__ */ t(pe, {}) }) }) }) : M?.map((e, n) => /* @__PURE__ */ c("tr", { children: [
|
|
218
218
|
/* @__PURE__ */ t("td", { "data-label": "Select", children: b(e) ? (() => {
|
|
219
219
|
const o = y?.length > 0 && y[0]?.product_return_action !== e?.product_return_action;
|
|
220
220
|
return /* @__PURE__ */ t(
|
|
221
|
-
|
|
221
|
+
H,
|
|
222
222
|
{
|
|
223
223
|
title: o ? "Cannot select different return actions" : "",
|
|
224
224
|
children: /* @__PURE__ */ t(
|
|
@@ -226,14 +226,14 @@ const Ge = [
|
|
|
226
226
|
{
|
|
227
227
|
className: o ? "disabled-wrapper" : "",
|
|
228
228
|
children: /* @__PURE__ */ t(
|
|
229
|
-
|
|
229
|
+
E,
|
|
230
230
|
{
|
|
231
231
|
className: "custom-check",
|
|
232
232
|
disabled: o,
|
|
233
233
|
checked: y.some(
|
|
234
234
|
(a) => a?.id === e?.id
|
|
235
235
|
),
|
|
236
|
-
onChange: () =>
|
|
236
|
+
onChange: () => ie(
|
|
237
237
|
e?.id,
|
|
238
238
|
e?.return_location,
|
|
239
239
|
e?.return_location_name,
|
|
@@ -246,7 +246,14 @@ const Ge = [
|
|
|
246
246
|
)
|
|
247
247
|
}
|
|
248
248
|
);
|
|
249
|
-
})() :
|
|
249
|
+
})() : Y(e) ? /* @__PURE__ */ t(H, { title: "Return location is missing", children: /* @__PURE__ */ t("span", { className: "disabled-wrapper", children: /* @__PURE__ */ t(
|
|
250
|
+
E,
|
|
251
|
+
{
|
|
252
|
+
className: "custom-check",
|
|
253
|
+
disabled: !0,
|
|
254
|
+
checked: !1
|
|
255
|
+
}
|
|
256
|
+
) }) }) : null }),
|
|
250
257
|
/* @__PURE__ */ t("td", { "data-label": "Product Location", children: e?.location !== null && e?.location !== void 0 ? e?.location : /* @__PURE__ */ t("div", { className: "awaiting", children: "Awaiting" }) }),
|
|
251
258
|
/* @__PURE__ */ c("td", { "data-label": "Return Location", children: [
|
|
252
259
|
" ",
|
|
@@ -254,9 +261,9 @@ const Ge = [
|
|
|
254
261
|
] }),
|
|
255
262
|
/* @__PURE__ */ c("td", { "data-label": "Client", title: e?.client_name ?? "", children: [
|
|
256
263
|
s(e?.client_name),
|
|
257
|
-
|
|
264
|
+
J(e?.owner_id) && /* @__PURE__ */ c("span", { children: [
|
|
258
265
|
" (",
|
|
259
|
-
|
|
266
|
+
J(e?.owner_id),
|
|
260
267
|
")"
|
|
261
268
|
] })
|
|
262
269
|
] }),
|
|
@@ -269,7 +276,7 @@ const Ge = [
|
|
|
269
276
|
fontWeight: 600,
|
|
270
277
|
paddingLeft: 0
|
|
271
278
|
},
|
|
272
|
-
children: /* @__PURE__ */ t(
|
|
279
|
+
children: /* @__PURE__ */ t(je, { to: `/orders/view/${e?.order_id}`, children: s(e?.recipient_name) })
|
|
273
280
|
}
|
|
274
281
|
),
|
|
275
282
|
/* @__PURE__ */ t("li", { style: { color: "#888075" }, children: s(e?.postcode) })
|
|
@@ -281,27 +288,27 @@ const Ge = [
|
|
|
281
288
|
/* @__PURE__ */ c("td", { "data-label": "Weight", children: [
|
|
282
289
|
s(e?.weight),
|
|
283
290
|
" ",
|
|
284
|
-
e?.weight && e?.weight !== null ?
|
|
291
|
+
e?.weight && e?.weight !== null ? $ : ""
|
|
285
292
|
] }),
|
|
286
293
|
/* @__PURE__ */ t("td", { "data-label": "CBM", children: s(e?.cube) }),
|
|
287
294
|
/* @__PURE__ */ t("td", { "data-label": "Return Reason", children: s(e?.return_reason) }),
|
|
288
|
-
/* @__PURE__ */ t("td", { "data-label": "Collected", children: e?.collected_at ?
|
|
295
|
+
/* @__PURE__ */ t("td", { "data-label": "Collected", children: e?.collected_at ? _e(new Date(e?.collected_at), "dd/MM/yyyy") : "UNKNOWN" }),
|
|
289
296
|
/* @__PURE__ */ t("td", { "data-label": "Collection Reason", children: s(e?.collection_reason) }),
|
|
290
297
|
/* @__PURE__ */ t("td", { "data-label": "Labels", children: /* @__PURE__ */ t("ul", { className: "actionbox", children: /* @__PURE__ */ t(
|
|
291
|
-
|
|
298
|
+
Me,
|
|
292
299
|
{
|
|
293
|
-
ref:
|
|
294
|
-
className:
|
|
300
|
+
ref: X,
|
|
301
|
+
className: W === n ? "active" : "",
|
|
295
302
|
children: /* @__PURE__ */ c(
|
|
296
303
|
"li",
|
|
297
304
|
{
|
|
298
305
|
className: "shareIconContainer",
|
|
299
|
-
onClick: () =>
|
|
306
|
+
onClick: () => oe(n),
|
|
300
307
|
children: [
|
|
308
|
+
/* @__PURE__ */ t(be, {}),
|
|
301
309
|
/* @__PURE__ */ t(Ce, {}),
|
|
302
|
-
/* @__PURE__ */ t(
|
|
303
|
-
|
|
304
|
-
ye,
|
|
310
|
+
W === n && /* @__PURE__ */ t("div", { ref: D, children: /* @__PURE__ */ t(
|
|
311
|
+
Ne,
|
|
305
312
|
{
|
|
306
313
|
legacyURL: e?.return_order_product_label,
|
|
307
314
|
legacyProductID: e?.legacy_product_id
|
|
@@ -316,6 +323,6 @@ const Ge = [
|
|
|
316
323
|
] }) }) });
|
|
317
324
|
};
|
|
318
325
|
export {
|
|
319
|
-
|
|
326
|
+
ut as default
|
|
320
327
|
};
|
|
321
328
|
//# sourceMappingURL=ReturnOrderTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReturnOrderTable.js","sources":["../../../../../src/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.tsx"],"sourcesContent":["import { Checkbox, useApiHook } from '@bjsdistribution/dms-component-library';\nimport { Empty, notification, Skeleton, Tooltip } from 'antd';\nimport { format } from 'date-fns';\nimport { useAtom } from 'jotai';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport DownIcon from '../../../../assets/icons/DownIcon';\nimport PrinterIcon from '../../../../assets/icons/PrinterIcon';\nimport CaretDownFilledIcon from '../../../../common/CaretDownFilledIcon';\nimport SortIcon from '../../../../common/SortIcon';\nimport PrintDropDownReturn from '../../../order-view/details-filters/left-side-filters/dropdowns/PrintDropDownReturn';\nimport { usefetchAgain, useReturnData } from '../../../order-view/store';\nimport {\n useFlatCustomerData,\n useGroupedPayload,\n useLocationData,\n useNewReturnPayload,\n useReturnPayload,\n useSelectAll,\n useSelectedOrders,\n} from '../../../store';\nimport { ApiResponse } from '../../../types';\nimport { filtersReducerAtom } from '../../header-filters/filterStore';\nimport { displayValueOrNA } from '../../shared/utlis';\nimport {\n useLoading,\n UsePaginationData,\n usePrintOptionTOggle,\n} from '../../store/store';\nimport { EmptyDataContainer } from '../../table/table-data/styles';\nimport { CustomDrop, StyledTable, StyledTableWrapper } from './returnstyles';\nimport { NavLink, useSearchParams } from 'react-router-dom';\nimport { VOLUME_UNIT } from '../../../../common/utils';\nimport { WEIGHT_UNIT, getAccountTypeLabel } from '../../../../common/utils';\n\nconst SELECTABLE_ACTIONS = [\n 'RTS',\n 'CLAIMS PAID',\n 'DISPOSE',\n 'RE-ALLOCATE',\n 'RECYCLE',\n 'UNKNOWN',\n];\n\nconst isSelectableItem = (item: any) =>\n SELECTABLE_ACTIONS.includes(item?.product_return_action) &&\n item?.return_location !== 'null' &&\n item?.return_location !== null;\n\nconst ReturnOrderTable = () => {\n const [state] = useAtom(filtersReducerAtom);\n const [selectedReturnOrder, setSelectedReturnOrder] = useSelectedOrders();\n const [selectAll, setSelectAll] = useSelectAll();\n const { 'x-filters': filters, 'x-pagination': pagination } = state;\n const [returnData, setReturnData] = useReturnData();\n const [load, setLoading] = useLoading();\n const dropdownRefParent = useRef<HTMLDivElement>(null);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const [printToogle, setPrintToggle] = usePrintOptionTOggle();\n const [, setReturnPayload] = useReturnPayload();\n const [newpayload, setNewPayload] = useNewReturnPayload();\n const [, setGrouped] = useGroupedPayload();\n const [locationData] = useLocationData();\n const [, setPaginationObject] = UsePaginationData();\n const [callForFetch] = usefetchAgain();\n const [searchParams] = useSearchParams();\n const urlCustomerId = searchParams.get('customerId');\n //sorting\n const [sortConfig, setSortConfig] = useState<{\n key: string;\n direction: 'asc' | 'desc';\n } | null>(null);\n\n const handleSort = (key: string) => {\n setSortConfig((prev: any) => {\n if (prev?.key === key && prev.direction === 'asc') {\n return { key, direction: 'desc' };\n }\n return { key, direction: 'asc' };\n });\n };\n\n const sortedData = useMemo(() => {\n if (!returnData || !sortConfig) return returnData;\n\n const { key, direction } = sortConfig;\n return [...returnData].sort((a, b) => {\n const valueA = a[key];\n const valueB = b[key];\n\n if (typeof valueA === 'number' && typeof valueB === 'number') {\n return direction === 'asc' ? valueA - valueB : valueB - valueA;\n }\n if (typeof valueA === 'string' && typeof valueB === 'string') {\n return direction === 'asc'\n ? valueA.localeCompare(valueB)\n : valueB.localeCompare(valueA);\n }\n return 0;\n });\n }, [returnData, sortConfig]);\n\n const renderSortIcon = (columnKey: string) => {\n if (!sortConfig || sortConfig.key !== columnKey) {\n return <SortIcon />;\n }\n return sortConfig.direction === 'asc' ? (\n <CaretDownFilledIcon />\n ) : (\n <CaretDownFilledIcon />\n );\n };\n\n const OpenDropDown = (index: number) => {\n setPrintToggle(prevIndex => (prevIndex === index ? null : index));\n };\n // Close dropdown outside click\n useEffect(() => {\n document.addEventListener('mousedown', handleClickOutside);\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, []);\n const handleClickOutside = (event: MouseEvent) => {\n if (\n dropdownRef.current &&\n !dropdownRef.current.contains(event.target as Node)\n ) {\n setPrintToggle(null);\n }\n };\n\n const {\n data: fetchedOrderData,\n loading: returnDataLoad,\n paginationData,\n setShouldPerformAction,\n } = useApiHook<ApiResponse>({\n endpoint: '/v1/return/product/pending/',\n method: 'GET',\n filters: filters,\n pagination: { is_pagination: false } as any,\n performAction: false,\n showLoader: false,\n });\n\n useEffect(() => {\n setLoading(returnDataLoad);\n if (fetchedOrderData && fetchedOrderData?.data) {\n setReturnData(fetchedOrderData?.data);\n if (paginationData) {\n try {\n const { count, ...rest } = JSON.parse(paginationData);\n setPaginationObject(rest);\n } catch (error) {\n console.error('Error parsing paginationData:', error);\n notification.error({\n message: 'Error',\n description: 'Failed to parse pagination data',\n });\n }\n }\n }\n }, [fetchedOrderData, returnDataLoad]);\n\n useEffect(() => {\n setLoading(returnDataLoad);\n setShouldPerformAction(true);\n if (fetchedOrderData && fetchedOrderData?.data && locationData) {\n const updatedReturnData = fetchedOrderData.data.map(returnItem => {\n const matchingLocation = locationData.find(\n (location: any) => location?.token === returnItem?.return_location\n );\n return {\n ...returnItem,\n new_location: matchingLocation\n ? matchingLocation?.location_name\n : null,\n };\n });\n\n setReturnData(updatedReturnData);\n }\n // setShouldPerformAction(false);\n }, [fetchedOrderData, returnDataLoad, locationData, state, callForFetch]);\n // const [customers] = useCustomerData();\n const [flatCustomers] = useFlatCustomerData();\n\n const selectedCustomer = flatCustomers?.find((customer: any) => {\n const customerId = customer?.customer_id?.toString();\n return customerId && customerId === urlCustomerId;\n });\n\n const accountNumber = selectedCustomer?.account_number;\n console.log(selectedCustomer, 'selectedCustomer');\n const handleSelectAll = (e: any) => {\n const isChecked = e.target.checked;\n setSelectAll(isChecked);\n\n if (isChecked) {\n const firstSelectable = returnData?.find((loc: any) =>\n isSelectableItem(loc)\n );\n const targetAction =\n selectedReturnOrder.length > 0\n ? selectedReturnOrder[0]?.product_return_action\n : firstSelectable?.product_return_action;\n\n if (!targetAction) return;\n\n const filteredData = returnData?.filter(\n (loc: any) =>\n isSelectableItem(loc) && loc?.product_return_action === targetAction\n );\n\n const selectedOrders = filteredData.map((loc: any) => ({\n id: loc.id,\n return_locations: loc?.return_location_name,\n return_location: loc?.return_location,\n products: loc?.legacy_product_id,\n product_return_action: loc?.product_return_action,\n return_location_token: loc?.return_location,\n }));\n const newPayload = filteredData.map((loc: any) => ({\n id: loc.id,\n account_number: accountNumber,\n customer_id: Number(urlCustomerId),\n products: [loc?.legacy_product_id],\n return_action: loc?.product_return_action,\n return_location_token: loc?.return_location || null,\n }));\n console.log(newPayload, 'newPayloadnewPayload');\n\n setSelectedReturnOrder(selectedOrders);\n setNewPayload(newPayload);\n } else {\n setSelectedReturnOrder([]);\n setNewPayload([]);\n setGrouped([]);\n }\n };\n\n const handleSelectOrderReturn = (\n id: any,\n return_location: any,\n return_location_name: any,\n product_return_action: any,\n legacy_product_id: any\n ) => {\n setSelectedReturnOrder((prevSelectedLocations: any) => {\n const isSelected = prevSelectedLocations?.some(\n (loc: any) => loc.id === id\n );\n if (isSelected) {\n const updatedSelectedLocations = prevSelectedLocations.filter(\n (loc: any) => loc.id !== id\n );\n\n setReturnPayload(prevState => ({\n ...prevState,\n products: legacy_product_id,\n return_action: product_return_action || null,\n return_location_token: return_location || null,\n }));\n\n setNewPayload((prevPayload: any) =>\n prevPayload.filter((item: any) => item.id !== id)\n );\n\n const targetAction = product_return_action;\n const totalItemsOfAction = returnData?.filter(\n (loc: any) =>\n isSelectableItem(loc) && loc?.product_return_action === targetAction\n )?.length;\n\n setSelectAll(\n updatedSelectedLocations?.length > 0 &&\n updatedSelectedLocations?.length === totalItemsOfAction\n );\n return updatedSelectedLocations;\n } else {\n const newReturnPayload = {\n id,\n account_number: accountNumber,\n customer_id: Number(urlCustomerId),\n products: [legacy_product_id],\n return_action: product_return_action || null,\n return_location_token: return_location || null,\n };\n\n setNewPayload((prevPayload: any) => [...prevPayload, newReturnPayload]);\n\n const updatedSelectedLocations = [\n ...prevSelectedLocations,\n {\n id,\n return_location,\n return_location_name,\n product_return_action,\n },\n ];\n\n const targetAction = product_return_action;\n const totalItemsOfAction = returnData?.filter(\n (loc: any) =>\n isSelectableItem(loc) && loc?.product_return_action === targetAction\n )?.length;\n\n setSelectAll(updatedSelectedLocations?.length === totalItemsOfAction);\n return updatedSelectedLocations;\n }\n });\n };\n\n useEffect(() => {\n if (newpayload?.length === 0) {\n setGrouped([]);\n return;\n }\n\n const groupedPayload = newpayload?.reduce((acc: any, item: any) => {\n const { return_location_token, id } = item;\n const key = return_location_token || `no_token_${id}`;\n\n if (!acc[key]) {\n acc[key] = {\n ...item,\n products: [],\n return_action: [],\n };\n }\n\n acc[key].products = [...acc[key].products, ...item.products];\n\n acc[key].return_action = Array.from(\n new Set([...acc[key].return_action, ...item.return_action])\n );\n\n return acc;\n }, {});\n const mergedPayload = Object.values(groupedPayload);\n setGrouped(mergedPayload);\n }, [newpayload]);\n return (\n <>\n <StyledTableWrapper className=\"fortables return-cards-wrapper\">\n <StyledTable className=\"return-cards\">\n <thead>\n <tr>\n {/* <th className=\"emailInvoiceCheckbox\">\n <Checkbox checked={selectAll} onChange={handleSelectAll} />\n </th> */}\n {returnData?.some((item: any) => isSelectableItem(item)) ? (\n <th className=\"emailInvoiceCheckbox\">\n <Checkbox checked={selectAll} onChange={handleSelectAll} />\n </th>\n ) : (\n <th></th>\n )}\n <th onClick={() => handleSort('location')}>\n <div className=\"sortIconClass\">\n Product Location {renderSortIcon('location')}\n </div>\n </th>\n <th onClick={() => handleSort('return_location_name')}>\n <div className=\"sortIconClass\">\n Return Location {renderSortIcon('return_location_name')}\n </div>\n </th>\n <th>Client</th>\n <th onClick={() => handleSort('recipient_name')}>\n <div className=\"sortIconClass\">\n Recipient {renderSortIcon('recipient_name')}\n </div>\n </th>\n <th>Return Action</th>\n <th>Code</th>\n <th>Description</th>\n <th>Part</th>\n <th onClick={() => handleSort('weight')}>\n <div className=\"sortIconClass\">\n Weight ({WEIGHT_UNIT}) {renderSortIcon('weight')}\n </div>\n </th>\n <th>{VOLUME_UNIT}</th>\n <th onClick={() => handleSort('return_reason')}>\n <div className=\"sortIconClass\">\n Return Reason {renderSortIcon('return_reason')}\n </div>\n </th>\n <th>Collected</th>\n <th onClick={() => handleSort('collection_reason')}>\n <div className=\"sortIconClass\">\n Collection Reason {renderSortIcon('collection_reason')}\n </div>\n </th>\n <th className=\"emailInvoiceShare\">Labels</th>\n </tr>\n </thead>\n <tbody>\n {load ? (\n <tr className=\"state-row\">\n <td colSpan={14} className=\"state-cell\">\n <Skeleton active />\n </td>\n </tr>\n ) : sortedData?.length === 0 ? (\n <tr className=\"state-row\">\n <td colSpan={14} className=\"state-cell\">\n <EmptyDataContainer>\n <Empty />\n </EmptyDataContainer>\n </td>\n </tr>\n ) : (\n sortedData?.map((item: any, index: any) => (\n <tr key={item.id}>\n <td data-label=\"Select\">\n {isSelectableItem(item) ? (() => {\n const isDisabled =\n selectedReturnOrder?.length > 0 &&\n selectedReturnOrder[0]?.product_return_action !==\n item?.product_return_action;\n\n return (\n <Tooltip\n title={\n isDisabled\n ? 'Cannot select different return actions'\n : ''\n }\n >\n <span\n className={isDisabled ? 'disabled-wrapper' : ''}\n >\n <Checkbox\n className=\"custom-check\"\n disabled={isDisabled}\n checked={selectedReturnOrder.some(\n (selectedInvoice: any) =>\n selectedInvoice?.id === item?.id\n )}\n onChange={() =>\n handleSelectOrderReturn(\n item?.id,\n item?.return_location,\n item?.return_location_name,\n item?.product_return_action,\n item?.legacy_product_id\n )\n }\n />\n </span>\n </Tooltip>\n );\n })() : null}\n </td>\n\n <td data-label=\"Product Location\">\n {item?.location !== null && item?.location !== undefined ? (\n item?.location\n ) : (\n <div className=\"awaiting\">Awaiting</div>\n )}\n </td>\n <td data-label=\"Return Location\"> {displayValueOrNA(item?.return_location_name)}</td>\n <td data-label=\"Client\" title={item?.client_name ?? ''}>\n {displayValueOrNA(item?.client_name)}\n {getAccountTypeLabel(item?.owner_id) && (\n <span> ({getAccountTypeLabel(item?.owner_id)})</span>\n )}\n </td>\n <td data-label=\"Recipient\">\n <ul style={{ listStyleType: 'none', padding: 0 }}>\n <li\n style={{\n color: '#0099ff',\n fontWeight: 600,\n paddingLeft: 0,\n }}\n >\n <NavLink to={`/orders/view/${item?.order_id}`}>\n {displayValueOrNA(item?.recipient_name)}\n </NavLink>\n </li>\n <li style={{ color: '#888075' }}>\n {displayValueOrNA(item?.postcode)}\n </li>\n </ul>\n </td>\n <td data-label=\"Return Action\">{displayValueOrNA(item?.product_return_action)}</td>\n <td data-label=\"Code\">{displayValueOrNA(item?.code)}</td>\n <td data-label=\"Description\">{displayValueOrNA(item?.description)}</td>\n <td data-label=\"Part\">{displayValueOrNA(item?.part)}</td>\n <td data-label=\"Weight\">\n {displayValueOrNA(item?.weight)}{' '}\n {item?.weight && item?.weight !== null ? WEIGHT_UNIT : ''}\n </td>\n <td data-label=\"CBM\">{displayValueOrNA(item?.cube)}</td>\n <td data-label=\"Return Reason\">{displayValueOrNA(item?.return_reason)}</td>\n <td data-label=\"Collected\">\n {item?.collected_at\n ? format(new Date(item?.collected_at), 'dd/MM/yyyy')\n : 'UNKNOWN'}\n </td>\n\n <td data-label=\"Collection Reason\">{displayValueOrNA(item?.collection_reason)}</td>\n <td data-label=\"Labels\">\n <ul className=\"actionbox\">\n <CustomDrop\n ref={dropdownRefParent}\n className={printToogle === index ? 'active' : ''}\n >\n <li\n className=\"shareIconContainer\"\n onClick={() => OpenDropDown(index)}\n >\n <PrinterIcon />\n <DownIcon />\n {printToogle === index && (\n <div ref={dropdownRef}>\n <PrintDropDownReturn\n legacyURL={item?.return_order_product_label}\n legacyProductID={item?.legacy_product_id}\n />\n </div>\n )}\n </li>\n </CustomDrop>\n </ul>\n </td>\n </tr>\n ))\n )}\n </tbody>\n </StyledTable>\n </StyledTableWrapper>\n </>\n );\n};\n\nexport default ReturnOrderTable;\n"],"names":["SELECTABLE_ACTIONS","isSelectableItem","item","ReturnOrderTable","state","useAtom","filtersReducerAtom","selectedReturnOrder","setSelectedReturnOrder","useSelectedOrders","selectAll","setSelectAll","useSelectAll","filters","pagination","returnData","setReturnData","useReturnData","load","setLoading","useLoading","dropdownRefParent","useRef","dropdownRef","printToogle","setPrintToggle","usePrintOptionTOggle","setReturnPayload","useReturnPayload","newpayload","setNewPayload","useNewReturnPayload","setGrouped","useGroupedPayload","locationData","useLocationData","setPaginationObject","UsePaginationData","callForFetch","usefetchAgain","searchParams","useSearchParams","urlCustomerId","sortConfig","setSortConfig","useState","handleSort","key","prev","sortedData","useMemo","direction","a","b","valueA","valueB","renderSortIcon","columnKey","SortIcon","CaretDownFilledIcon","OpenDropDown","index","prevIndex","useEffect","handleClickOutside","event","fetchedOrderData","returnDataLoad","paginationData","setShouldPerformAction","useApiHook","count","rest","error","notification","updatedReturnData","returnItem","matchingLocation","location","flatCustomers","useFlatCustomerData","selectedCustomer","customer","customerId","accountNumber","handleSelectAll","isChecked","firstSelectable","loc","targetAction","filteredData","selectedOrders","newPayload","handleSelectOrderReturn","id","return_location","return_location_name","product_return_action","legacy_product_id","prevSelectedLocations","updatedSelectedLocations","prevState","prevPayload","totalItemsOfAction","newReturnPayload","groupedPayload","acc","return_location_token","mergedPayload","jsx","Fragment","StyledTableWrapper","jsxs","StyledTable","Checkbox","WEIGHT_UNIT","VOLUME_UNIT","Skeleton","EmptyDataContainer","Empty","isDisabled","Tooltip","selectedInvoice","displayValueOrNA","getAccountTypeLabel","NavLink","format","CustomDrop","PrinterIcon","DownIcon","PrintDropDownReturn"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkCA,MAAMA,KAAqB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEMC,IAAmB,CAACC,MACxBF,GAAmB,SAASE,GAAM,qBAAqB,KACvDA,GAAM,oBAAoB,UAC1BA,GAAM,oBAAoB,MAEtBC,KAAmB,MAAM;AAC7B,QAAM,CAACC,CAAK,IAAIC,GAAQC,EAAkB,GACpC,CAACC,GAAqBC,CAAsB,IAAIC,GAAA,GAChD,CAACC,GAAWC,CAAY,IAAIC,GAAA,GAC5B,EAAE,aAAaC,GAAS,gBAAgBC,OAAeV,GACvD,CAACW,GAAYC,CAAa,IAAIC,GAAA,GAC9B,CAACC,GAAMC,CAAU,IAAIC,GAAA,GACrBC,IAAoBC,EAAuB,IAAI,GAC/CC,IAAcD,EAAuB,IAAI,GACzC,CAACE,GAAaC,CAAc,IAAIC,GAAA,GAChC,CAAA,EAAGC,CAAgB,IAAIC,GAAA,GACvB,CAACC,GAAYC,CAAa,IAAIC,GAAA,GAC9B,CAAA,EAAGC,CAAU,IAAIC,GAAA,GACjB,CAACC,CAAY,IAAIC,GAAA,GACjB,CAAA,EAAGC,CAAmB,IAAIC,GAAA,GAC1B,CAACC,CAAY,IAAIC,GAAA,GACjB,CAACC,EAAY,IAAIC,GAAA,GACjBC,IA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,UACL,WAAWG,MAAgBqC,IAAQ,WAAW;AAAA,UAE9C,UAAA,gBAAAmD;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,SAAS,MAAMpD,GAAaC,CAAK;AAAA,cAEjC,UAAA;AAAA,gBAAA,gBAAAgD,EAACmB,IAAA,EAAY;AAAA,kCACZC,IAAA,EAAS;AAAA,gBACTzG,MAAgBqC,KACf,gBAAAgD,EAAC,OAAA,EAAI,KAAKtF,GACR,UAAA,gBAAAsF;AAAA,kBAACqB;AAAA,kBAAA;AAAA,oBACC,WAAWhI,GAAM;AAAA,oBACjB,iBAAiBA,GAAM;AAAA,kBAAA;AAAA,gBAAA,EACzB,CACF;AAAA,cAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QAEJ;AAAA,MAAA,GAEJ,EAAA,CACF;AAAA,IAAA,KAlHOA,EAAK,EAmHd,CACD,EAAA,CAEL;AAAA,EAAA,EAAA,CACF,GACF,GACF;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"ReturnOrderTable.js","sources":["../../../../../src/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.tsx"],"sourcesContent":["import { Checkbox, useApiHook } from '@bjsdistribution/dms-component-library';\nimport { Empty, notification, Skeleton, Tooltip } from 'antd';\nimport { format } from 'date-fns';\nimport { useAtom } from 'jotai';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport DownIcon from '../../../../assets/icons/DownIcon';\nimport PrinterIcon from '../../../../assets/icons/PrinterIcon';\nimport CaretDownFilledIcon from '../../../../common/CaretDownFilledIcon';\nimport SortIcon from '../../../../common/SortIcon';\nimport PrintDropDownReturn from '../../../order-view/details-filters/left-side-filters/dropdowns/PrintDropDownReturn';\nimport { usefetchAgain, useReturnData } from '../../../order-view/store';\nimport {\n useFlatCustomerData,\n useGroupedPayload,\n useLocationData,\n useNewReturnPayload,\n useReturnPayload,\n useSelectAll,\n useSelectedOrders,\n} from '../../../store';\nimport { ApiResponse } from '../../../types';\nimport { filtersReducerAtom } from '../../header-filters/filterStore';\nimport { displayValueOrNA } from '../../shared/utlis';\nimport {\n useLoading,\n UsePaginationData,\n usePrintOptionTOggle,\n} from '../../store/store';\nimport { EmptyDataContainer } from '../../table/table-data/styles';\nimport { CustomDrop, StyledTable, StyledTableWrapper } from './returnstyles';\nimport { NavLink, useSearchParams } from 'react-router-dom';\nimport { VOLUME_UNIT } from '../../../../common/utils';\nimport { WEIGHT_UNIT, getAccountTypeLabel } from '../../../../common/utils';\n\nconst SELECTABLE_ACTIONS = [\n 'RTS',\n 'CLAIMS PAID',\n 'DISPOSE',\n 'RE-ALLOCATE',\n 'RECYCLE',\n 'UNKNOWN',\n];\n\nconst hasSelectableAction = (item: any) =>\n SELECTABLE_ACTIONS.includes(item?.product_return_action);\n\n// needs a real return location; new_location is null when the token is not\n// in the location list\nconst hasReturnLocation = (item: any) =>\n Boolean(item?.return_location) &&\n item?.return_location !== 'null' &&\n item?.new_location !== null;\n\nconst isSelectableItem = (item: any) =>\n hasSelectableAction(item) && hasReturnLocation(item);\n\nconst ReturnOrderTable = () => {\n const [state] = useAtom(filtersReducerAtom);\n const [selectedReturnOrder, setSelectedReturnOrder] = useSelectedOrders();\n const [selectAll, setSelectAll] = useSelectAll();\n const { 'x-filters': filters, 'x-pagination': pagination } = state;\n const [returnData, setReturnData] = useReturnData();\n const [load, setLoading] = useLoading();\n const dropdownRefParent = useRef<HTMLDivElement>(null);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const [printToogle, setPrintToggle] = usePrintOptionTOggle();\n const [, setReturnPayload] = useReturnPayload();\n const [newpayload, setNewPayload] = useNewReturnPayload();\n const [, setGrouped] = useGroupedPayload();\n const [locationData] = useLocationData();\n const [, setPaginationObject] = UsePaginationData();\n const [callForFetch] = usefetchAgain();\n const [searchParams] = useSearchParams();\n const urlCustomerId = searchParams.get('customerId');\n //sorting\n const [sortConfig, setSortConfig] = useState<{\n key: string;\n direction: 'asc' | 'desc';\n } | null>(null);\n\n const handleSort = (key: string) => {\n setSortConfig((prev: any) => {\n if (prev?.key === key && prev.direction === 'asc') {\n return { key, direction: 'desc' };\n }\n return { key, direction: 'asc' };\n });\n };\n\n const sortedData = useMemo(() => {\n if (!returnData || !sortConfig) return returnData;\n\n const { key, direction } = sortConfig;\n return [...returnData].sort((a, b) => {\n const valueA = a[key];\n const valueB = b[key];\n\n if (typeof valueA === 'number' && typeof valueB === 'number') {\n return direction === 'asc' ? valueA - valueB : valueB - valueA;\n }\n if (typeof valueA === 'string' && typeof valueB === 'string') {\n return direction === 'asc'\n ? valueA.localeCompare(valueB)\n : valueB.localeCompare(valueA);\n }\n return 0;\n });\n }, [returnData, sortConfig]);\n\n const renderSortIcon = (columnKey: string) => {\n if (!sortConfig || sortConfig.key !== columnKey) {\n return <SortIcon />;\n }\n return sortConfig.direction === 'asc' ? (\n <CaretDownFilledIcon />\n ) : (\n <CaretDownFilledIcon />\n );\n };\n\n const OpenDropDown = (index: number) => {\n setPrintToggle(prevIndex => (prevIndex === index ? null : index));\n };\n // Close dropdown outside click\n useEffect(() => {\n document.addEventListener('mousedown', handleClickOutside);\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, []);\n const handleClickOutside = (event: MouseEvent) => {\n if (\n dropdownRef.current &&\n !dropdownRef.current.contains(event.target as Node)\n ) {\n setPrintToggle(null);\n }\n };\n\n const {\n data: fetchedOrderData,\n loading: returnDataLoad,\n paginationData,\n setShouldPerformAction,\n } = useApiHook<ApiResponse>({\n endpoint: '/v1/return/product/pending/',\n method: 'GET',\n filters: filters,\n pagination: { is_pagination: false } as any,\n performAction: false,\n showLoader: false,\n });\n\n useEffect(() => {\n setLoading(returnDataLoad);\n if (fetchedOrderData && fetchedOrderData?.data) {\n setReturnData(fetchedOrderData?.data);\n if (paginationData) {\n try {\n const { count, ...rest } = JSON.parse(paginationData);\n setPaginationObject(rest);\n } catch (error) {\n console.error('Error parsing paginationData:', error);\n notification.error({\n message: 'Error',\n description: 'Failed to parse pagination data',\n });\n }\n }\n }\n }, [fetchedOrderData, returnDataLoad]);\n\n useEffect(() => {\n setLoading(returnDataLoad);\n setShouldPerformAction(true);\n if (fetchedOrderData && fetchedOrderData?.data && locationData) {\n const updatedReturnData = fetchedOrderData.data.map(returnItem => {\n const matchingLocation = locationData.find(\n (location: any) => location?.token === returnItem?.return_location\n );\n return {\n ...returnItem,\n new_location: matchingLocation\n ? matchingLocation?.location_name\n : null,\n };\n });\n\n setReturnData(updatedReturnData);\n }\n // setShouldPerformAction(false);\n }, [fetchedOrderData, returnDataLoad, locationData, state, callForFetch]);\n // const [customers] = useCustomerData();\n const [flatCustomers] = useFlatCustomerData();\n\n const selectedCustomer = flatCustomers?.find((customer: any) => {\n const customerId = customer?.customer_id?.toString();\n return customerId && customerId === urlCustomerId;\n });\n\n const accountNumber = selectedCustomer?.account_number;\n console.log(selectedCustomer, 'selectedCustomer');\n const handleSelectAll = (e: any) => {\n const isChecked = e.target.checked;\n setSelectAll(isChecked);\n\n if (isChecked) {\n const firstSelectable = returnData?.find((loc: any) =>\n isSelectableItem(loc)\n );\n const targetAction =\n selectedReturnOrder.length > 0\n ? selectedReturnOrder[0]?.product_return_action\n : firstSelectable?.product_return_action;\n\n if (!targetAction) return;\n\n const filteredData = returnData?.filter(\n (loc: any) =>\n isSelectableItem(loc) && loc?.product_return_action === targetAction\n );\n\n const selectedOrders = filteredData.map((loc: any) => ({\n id: loc.id,\n return_locations: loc?.return_location_name,\n return_location: loc?.return_location,\n products: loc?.legacy_product_id,\n product_return_action: loc?.product_return_action,\n return_location_token: loc?.return_location,\n }));\n const newPayload = filteredData.map((loc: any) => ({\n id: loc.id,\n account_number: accountNumber,\n customer_id: Number(urlCustomerId),\n products: [loc?.legacy_product_id],\n return_action: loc?.product_return_action,\n return_location_token: loc?.return_location || null,\n }));\n console.log(newPayload, 'newPayloadnewPayload');\n\n setSelectedReturnOrder(selectedOrders);\n setNewPayload(newPayload);\n } else {\n setSelectedReturnOrder([]);\n setNewPayload([]);\n setGrouped([]);\n }\n };\n\n const handleSelectOrderReturn = (\n id: any,\n return_location: any,\n return_location_name: any,\n product_return_action: any,\n legacy_product_id: any\n ) => {\n setSelectedReturnOrder((prevSelectedLocations: any) => {\n const isSelected = prevSelectedLocations?.some(\n (loc: any) => loc.id === id\n );\n if (isSelected) {\n const updatedSelectedLocations = prevSelectedLocations.filter(\n (loc: any) => loc.id !== id\n );\n\n setReturnPayload(prevState => ({\n ...prevState,\n products: legacy_product_id,\n return_action: product_return_action || null,\n return_location_token: return_location || null,\n }));\n\n setNewPayload((prevPayload: any) =>\n prevPayload.filter((item: any) => item.id !== id)\n );\n\n const targetAction = product_return_action;\n const totalItemsOfAction = returnData?.filter(\n (loc: any) =>\n isSelectableItem(loc) && loc?.product_return_action === targetAction\n )?.length;\n\n setSelectAll(\n updatedSelectedLocations?.length > 0 &&\n updatedSelectedLocations?.length === totalItemsOfAction\n );\n return updatedSelectedLocations;\n } else {\n const newReturnPayload = {\n id,\n account_number: accountNumber,\n customer_id: Number(urlCustomerId),\n products: [legacy_product_id],\n return_action: product_return_action || null,\n return_location_token: return_location || null,\n };\n\n setNewPayload((prevPayload: any) => [...prevPayload, newReturnPayload]);\n\n const updatedSelectedLocations = [\n ...prevSelectedLocations,\n {\n id,\n return_location,\n return_location_name,\n product_return_action,\n },\n ];\n\n const targetAction = product_return_action;\n const totalItemsOfAction = returnData?.filter(\n (loc: any) =>\n isSelectableItem(loc) && loc?.product_return_action === targetAction\n )?.length;\n\n setSelectAll(updatedSelectedLocations?.length === totalItemsOfAction);\n return updatedSelectedLocations;\n }\n });\n };\n\n useEffect(() => {\n if (newpayload?.length === 0) {\n setGrouped([]);\n return;\n }\n\n const groupedPayload = newpayload?.reduce((acc: any, item: any) => {\n const { return_location_token, id } = item;\n const key = return_location_token || `no_token_${id}`;\n\n if (!acc[key]) {\n acc[key] = {\n ...item,\n products: [],\n return_action: [],\n };\n }\n\n acc[key].products = [...acc[key].products, ...item.products];\n\n acc[key].return_action = Array.from(\n new Set([...acc[key].return_action, ...item.return_action])\n );\n\n return acc;\n }, {});\n const mergedPayload = Object.values(groupedPayload);\n setGrouped(mergedPayload);\n }, [newpayload]);\n return (\n <>\n <StyledTableWrapper className=\"fortables return-cards-wrapper\">\n <StyledTable className=\"return-cards\">\n <thead>\n <tr>\n {/* <th className=\"emailInvoiceCheckbox\">\n <Checkbox checked={selectAll} onChange={handleSelectAll} />\n </th> */}\n {returnData?.some((item: any) => isSelectableItem(item)) ? (\n <th className=\"emailInvoiceCheckbox\">\n <Checkbox checked={selectAll} onChange={handleSelectAll} />\n </th>\n ) : (\n <th></th>\n )}\n <th onClick={() => handleSort('location')}>\n <div className=\"sortIconClass\">\n Product Location {renderSortIcon('location')}\n </div>\n </th>\n <th onClick={() => handleSort('return_location_name')}>\n <div className=\"sortIconClass\">\n Return Location {renderSortIcon('return_location_name')}\n </div>\n </th>\n <th>Client</th>\n <th onClick={() => handleSort('recipient_name')}>\n <div className=\"sortIconClass\">\n Recipient {renderSortIcon('recipient_name')}\n </div>\n </th>\n <th>Return Action</th>\n <th>Code</th>\n <th>Description</th>\n <th>Part</th>\n <th onClick={() => handleSort('weight')}>\n <div className=\"sortIconClass\">\n Weight ({WEIGHT_UNIT}) {renderSortIcon('weight')}\n </div>\n </th>\n <th>{VOLUME_UNIT}</th>\n <th onClick={() => handleSort('return_reason')}>\n <div className=\"sortIconClass\">\n Return Reason {renderSortIcon('return_reason')}\n </div>\n </th>\n <th>Collected</th>\n <th onClick={() => handleSort('collection_reason')}>\n <div className=\"sortIconClass\">\n Collection Reason {renderSortIcon('collection_reason')}\n </div>\n </th>\n <th className=\"emailInvoiceShare\">Labels</th>\n </tr>\n </thead>\n <tbody>\n {load ? (\n <tr className=\"state-row\">\n <td colSpan={14} className=\"state-cell\">\n <Skeleton active />\n </td>\n </tr>\n ) : sortedData?.length === 0 ? (\n <tr className=\"state-row\">\n <td colSpan={14} className=\"state-cell\">\n <EmptyDataContainer>\n <Empty />\n </EmptyDataContainer>\n </td>\n </tr>\n ) : (\n sortedData?.map((item: any, index: any) => (\n <tr key={item.id}>\n <td data-label=\"Select\">\n {isSelectableItem(item) ? (() => {\n const isDisabled =\n selectedReturnOrder?.length > 0 &&\n selectedReturnOrder[0]?.product_return_action !==\n item?.product_return_action;\n\n return (\n <Tooltip\n title={\n isDisabled\n ? 'Cannot select different return actions'\n : ''\n }\n >\n <span\n className={isDisabled ? 'disabled-wrapper' : ''}\n >\n <Checkbox\n className=\"custom-check\"\n disabled={isDisabled}\n checked={selectedReturnOrder.some(\n (selectedInvoice: any) =>\n selectedInvoice?.id === item?.id\n )}\n onChange={() =>\n handleSelectOrderReturn(\n item?.id,\n item?.return_location,\n item?.return_location_name,\n item?.product_return_action,\n item?.legacy_product_id\n )\n }\n />\n </span>\n </Tooltip>\n );\n })() : hasSelectableAction(item) ? (\n <Tooltip title=\"Return location is missing\">\n <span className=\"disabled-wrapper\">\n <Checkbox\n className=\"custom-check\"\n disabled\n checked={false}\n />\n </span>\n </Tooltip>\n ) : null}\n </td>\n\n <td data-label=\"Product Location\">\n {item?.location !== null && item?.location !== undefined ? (\n item?.location\n ) : (\n <div className=\"awaiting\">Awaiting</div>\n )}\n </td>\n <td data-label=\"Return Location\"> {displayValueOrNA(item?.return_location_name)}</td>\n <td data-label=\"Client\" title={item?.client_name ?? ''}>\n {displayValueOrNA(item?.client_name)}\n {getAccountTypeLabel(item?.owner_id) && (\n <span> ({getAccountTypeLabel(item?.owner_id)})</span>\n )}\n </td>\n <td data-label=\"Recipient\">\n <ul style={{ listStyleType: 'none', padding: 0 }}>\n <li\n style={{\n color: '#0099ff',\n fontWeight: 600,\n paddingLeft: 0,\n }}\n >\n <NavLink to={`/orders/view/${item?.order_id}`}>\n {displayValueOrNA(item?.recipient_name)}\n </NavLink>\n </li>\n <li style={{ color: '#888075' }}>\n {displayValueOrNA(item?.postcode)}\n </li>\n </ul>\n </td>\n <td data-label=\"Return Action\">{displayValueOrNA(item?.product_return_action)}</td>\n <td data-label=\"Code\">{displayValueOrNA(item?.code)}</td>\n <td data-label=\"Description\">{displayValueOrNA(item?.description)}</td>\n <td data-label=\"Part\">{displayValueOrNA(item?.part)}</td>\n <td data-label=\"Weight\">\n {displayValueOrNA(item?.weight)}{' '}\n {item?.weight && item?.weight !== null ? WEIGHT_UNIT : ''}\n </td>\n <td data-label=\"CBM\">{displayValueOrNA(item?.cube)}</td>\n <td data-label=\"Return Reason\">{displayValueOrNA(item?.return_reason)}</td>\n <td data-label=\"Collected\">\n {item?.collected_at\n ? format(new Date(item?.collected_at), 'dd/MM/yyyy')\n : 'UNKNOWN'}\n </td>\n\n <td data-label=\"Collection Reason\">{displayValueOrNA(item?.collection_reason)}</td>\n <td data-label=\"Labels\">\n <ul className=\"actionbox\">\n <CustomDrop\n ref={dropdownRefParent}\n className={printToogle === index ? 'active' : ''}\n >\n <li\n className=\"shareIconContainer\"\n onClick={() => OpenDropDown(index)}\n >\n <PrinterIcon />\n <DownIcon />\n {printToogle === index && (\n <div ref={dropdownRef}>\n <PrintDropDownReturn\n legacyURL={item?.return_order_product_label}\n legacyProductID={item?.legacy_product_id}\n />\n </div>\n )}\n </li>\n </CustomDrop>\n </ul>\n </td>\n </tr>\n ))\n )}\n </tbody>\n </StyledTable>\n </StyledTableWrapper>\n </>\n );\n};\n\nexport default ReturnOrderTable;\n"],"names":["SELECTABLE_ACTIONS","hasSelectableAction","item","hasReturnLocation","isSelectableItem","ReturnOrderTable","state","useAtom","filtersReducerAtom","selectedReturnOrder","setSelectedReturnOrder","useSelectedOrders","selectAll","setSelectAll","useSelectAll","filters","pagination","returnData","setReturnData","useReturnData","load","setLoading","useLoading","dropdownRefParent","useRef","dropdownRef","printToogle","setPrintToggle","usePrintOptionTOggle","setReturnPayload","useReturnPayload","newpayload","setNewPayload","useNewReturnPayload","setGrouped","useGroupedPayload","locationData","useLocationData","setPaginationObject","UsePaginationData","callForFetch","usefetchAgain","searchParams","useSearchParams","urlCustomerId","sortConfig","setSortConfig","useState","handleSort","key","prev","sortedData","useMemo","direction","a","b","valueA","valueB","renderSortIcon","columnKey","SortIcon","CaretDownFilledIcon","OpenDropDown","index","prevIndex","useEffect","handleClickOutside","event","fetchedOrderData","returnDataLoad","paginationData","setShouldPerformAction","useApiHook","count","rest","error","notification","updatedReturnData","returnItem","matchingLocation","location","flatCustomers","useFlatCustomerData","selectedCustomer","customer","customerId","accountNumber","handleSelectAll","isChecked","firstSelectable","loc","targetAction","filteredData","selectedOrders","newPayload","handleSelectOrderReturn","id","return_location","return_location_name","product_return_action","legacy_product_id","prevSelectedLocations","updatedSelectedLocations","prevState","prevPayload","totalItemsOfAction","newReturnPayload","groupedPayload","acc","return_location_token","mergedPayload","jsx","Fragment","StyledTableWrapper","jsxs","StyledTable","Checkbox","WEIGHT_UNIT","VOLUME_UNIT","Skeleton","EmptyDataContainer","Empty","isDisabled","Tooltip","selectedInvoice","displayValueOrNA","getAccountTypeLabel","NavLink","format","CustomDrop","PrinterIcon","DownIcon","PrintDropDownReturn"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkCA,MAAMA,KAAqB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEMC,IAAsB,CAACC,MAC3BF,GAAmB,SAASE,GAAM,qBAAqB,GAInDC,KAAoB,CAACD,MACzB,EAAQA,GAAM,mBACdA,GAAM,oBAAoB,UAC1BA,GAAM,iBAAiB,MAEnBE,IAAmB,CAACF,MACxBD,EAAoBC,CAAI,KAAKC,GAAkBD,CAAI,GAE/CG,KAAmB,MAAM;AAC7B,QAAM,CAACC,CAAK,IAAIC,GAAQC,EAAkB,GACpC,CAACC,GAAqBC,CAAsB,IAAIC,GAAA,GAChD,CAACC,GAAWC,CAAY,IAAIC,GAAA,GAC5B,EAAE,aAAaC,GAAS,gBAAgBC,OAAeV,GACvD,CAACW,GAAYC,CAAa,IAAIC,GAAA,GAC9B,CAACC,GAAMC,CAAU,IAAIC,GAAA,GAC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 @@ const a = t.div`
|
|
|
295
295
|
* {
|
|
296
296
|
pointer-events: none !important;
|
|
297
297
|
}
|
|
298
|
+
/* greyed out so a disabled box is obvious at a glance. The visible
|
|
299
|
+
box is the div after the (hidden) input in the library Checkbox. */
|
|
300
|
+
input[type='checkbox'] + div {
|
|
301
|
+
background: #d4d4d4 !important;
|
|
302
|
+
border-color: #a8a8a8 !important;
|
|
303
|
+
}
|
|
298
304
|
}
|
|
299
305
|
.actionbox {
|
|
300
306
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"returnstyles.js","sources":["../../../../../src/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.ts"],"sourcesContent":["import { Button } from '@bjsdistribution/dms-component-library';\nimport styled from 'styled-components';\nimport { device } from '../../common/mediaQuery';\n\nexport const IconContainers = styled.div`\n display: flex;\n gap: 5px;\n i {\n display: flex;\n width: 25px;\n height: 25px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 10px;\n flex-shrink: 0;\n border-radius: 15px;\n background: #edebe8;\n svg {\n }\n }\n`;\n\nexport const Div = styled.div`\n display: flex;\n justify-content: center;\n`;\n\nexport const ModalTitle = styled.span`\n font-size: 20px;\n font-weight: 900;\n line-height: 32px;\n margin: 5px;\n padding: 0;\n text-transform: uppercase;\n align-items: center;\n display: flex;\n justify-content: center;\n`;\n\nexport const Description = styled.span`\n color: #aea9a1;\n padding: 10px;\n`;\n\nexport const Container = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n width: 75px;\n height: 75px;\n padding: 14px;\n border-radius: 50%;\n background: #eff2f5;\n border: 10px solid #b7d0f7;\n`;\n\nexport const ConfirmButton = styled(Button)``;\n\nexport const CancelButton = styled.button`\n cursor: pointer;\n font-size: 16px;\n opacity: 1;\n background: white;\n color: #3a3630;\n border: thin solid #3a3630;\n white-space: nowrap;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 40px;\n padding: 8px 10px;\n border-radius: 6px;\n`;\n\nexport const SectionsContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 10px;\n text-align: center;\n`;\n\nexport const MainContainer = styled.div`\n padding: 24px;\n border-radius: 12px;\n background: #ffffff;\n box-shadow: 0px 20px 24px -4px #10182814;\n width: 30%;\n max-width: 50%;\n margin: 0 auto;\n @media (max-width: 1024px) {\n max-width: 40%;\n }\n`;\n\nexport const ButtonContainer = styled.div`\n display: flex;\n flex-direction: row;\n gap: 10px;\n`;\n\nexport const Header = styled.div`\n display: flex;\n justify-content: space-between;\n border-bottom: 1px solid #e3e3e3;\n`;\n\nexport const HeaderText = styled.div`\n color: #3a3630;\n font-size: 16px;\n font-weight: 500;\n text-transform: uppercase;\n padding: 10px;\n`;\n\nexport const Padding = styled.div`\n padding: 0px 10px 10px 10px;\n`;\n\nexport const HeaderCont = styled.div`\n display: flex;\n flex-direction: column;\n padding: 10px;\n`;\n\nexport const Main = styled.div`\n border: 1px solid #e3e3e3;\n background: #f8fafc;\n justify-content: space-between;\n align-items: center;\n border-radius: 15px 15px 0 0;\n margin-top: 15px;\n padding-top: 10px;\n`;\n\nexport const SendButton = styled(Button)`\n border-radius: 25px;\n &:disabled {\n background-color: #d3d3d3;\n cursor: not-allowed;\n }\n`;\n\nexport const TdWrapper = styled.span`\n background-color: rgba(153, 153, 153, 0.1);\n padding: 3px 12px;\n border-radius: 4px;\n`;\n\nexport const EmptyDataContainer = styled.div`\n display: flex;\n justify-content: center;\n`;\n\nexport const StyledTableWrapper = styled.div`\n max-height: calc(100vh - 310px);\n overflow-x: hidden;\n width: 100%;\n padding-top: 10px;\n background: #fff;\n\n @media ${device.tableScroll} {\n overflow-x: auto;\n }\n\n &.return-cards-wrapper {\n @media ${device.tabletPortrait} {\n overflow-x: visible;\n max-height: none;\n }\n }\n\n &.fortables {\n @media ${device.mobileLandscape} {\n /* cards stack full-width here (no horizontal scrolling needed), and\n hidden overflow was clipping the print dropdown's absolutely\n positioned popup */\n overflow-x: visible;\n /* the desktop max-height caps this box while the full card list\n renders past it, overlapping the pagination bar that follows —\n let it grow to fit all cards instead */\n max-height: none;\n }\n }\n\n &::-webkit-scrollbar {\n width: 6px;\n border-radius: 100px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: #e2e0db;\n border-radius: 100px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #989898;\n;\n border-radius: 100px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: #989898;\n;\n }\n`;\n\nexport const StyledTable = styled.table`\n border-spacing: 0 10px;\n width: 100%;\n table-layout: auto;\n\n @media ${device.tableScroll} {\n min-width: 1300px;\n }\n\n thead {\n position: sticky;\n top: 0;\n z-index: 1;\n background: #fff;\n box-shadow: 0px 0px 1px #ffffff, 0px -10px 1px #ffffff;\n tr {\n border-radius: 40px;\n border-spacing: 0 10px;\n position: relative;\n font-family: 'lato', sans-serif;\n .emailInvoiceCheckbox {\n padding-right: 0px;\n width: 24px;\n > div {\n width: fit-content;\n }\n }\n .emailInvoiceNo {\n padding-left: 0px;\n }\n .emailInvoiceShare {\n width: 80px;\n }\n th {\n color: #3a3630;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 1.3;\n padding: 8px 6px;\n background: #f0f2f2;\n border-right: none;\n border-left: none;\n\n @media ${device.mobileLandscape} {\n padding: 4px 6px;\n }\n text-align: left;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-width: 1px 0;\n word-wrap: break-word;\n overflow-wrap: break-word;\n white-space: normal;\n\n .ant-checkbox-wrapper,\n .ant-checkbox,\n input[type='checkbox'] {\n transform: scale(0.8);\n transform-origin: center center;\n }\n\n &:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n &:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n .sortIconClass {\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 4px;\n }\n }\n }\n }\n tbody {\n tr {\n td {\n color: #3a3630;\n font-size: 11px;\n font-style: normal;\n font-weight: 400;\n line-height: 1.3;\n padding: 6px 6px;\n background: #fff;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-right: none;\n border-left: none;\n position: relative;\n word-wrap: break-word;\n overflow-wrap: break-word;\n white-space: normal;\n\n .custom-check,\n .ant-checkbox-wrapper,\n .ant-checkbox,\n input[type='checkbox'] {\n transform: scale(0.8);\n transform-origin: center center;\n }\n\n .disabled-wrapper {\n cursor: not-allowed !important;\n display: inline-block;\n * {\n pointer-events: none !important;\n }\n }\n .actionbox {\n display: flex;\n gap: 5px;\n }\n .shareIconContainer {\n display: flex;\n padding: 2px 8px;\n align-items: center;\n gap: 4px;\n border-radius: 20px;\n border: 1px solid var(--tonal-brown-101, #e2e0db);\n background: #fff;\n list-style-type: none;\n cursor: pointer;\n position: relative;\n }\n .statusCancelled {\n color: #e95252;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusOnHold {\n color: #f4a503;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusSubContracted {\n color: #845adf;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusAwaiting {\n color: #845adf;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusCompleted {\n color: #1f9254;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusOutstanding {\n color: #f4a503;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusUnknown {\n color: #000;\n padding: 4px 8px;\n border-radius: 4px;\n }\n .statustext {\n color: #1f9254;\n font-family: 'Open Sans';\n font-size: 11px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n }\n .downloadcontainer {\n display: flex;\n padding: 2px 12px;\n align-items: center;\n width: 28px;\n height: 28px;\n flex-direction: column;\n border-radius: 14px;\n border: 1px solid #e2e0db;\n background: #fff;\n }\n .statuscontainer {\n display: flex;\n padding: 5px 30px 5px 30px;\n justify-content: center;\n align-items: center;\n gap: 5px;\n flex: 1 0 0;\n border-radius: 22px;\n background: rgba(41, 204, 106, 0.15);\n }\n .awaiting {\n display: flex;\n min-width: fit-content;\n padding: 4px 6px;\n justify-content: center;\n align-items: center;\n gap: 5px;\n border-radius: 22px;\n background: rgba(233, 82, 82, 0.15);\n color: #e95252;\n font-family: 'Open Sans';\n font-size: 11px;\n font-weight: 600;\n }\n ul > li > a {\n text-decoration: none !important;\n color: #0099ff;\n word-break: break-all;\n }\n }\n &:nth-child(even) td {\n background: #f6fbff;\n }\n td:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n td:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n .flex {\n display: flex;\n flex-direction: row;\n gap: 5px;\n height: 29px;\n align-items: center;\n }\n\n &.insideTable {\n td {\n border-radius: 0;\n border: none;\n &:last-child {\n border-radius: 0;\n border-right: none;\n }\n }\n table {\n border-spacing: 0;\n width: 100%;\n border-radius: 5px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n overflow: hidden;\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n thead {\n tr {\n border-bottom: none;\n th {\n padding: 14px 20px;\n text-align: left;\n border-top: 0;\n border-right: 0;\n border-left: 0;\n background: #f8fafc;\n\n &:first-child {\n border-radius: 0;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n border-top-left-radius: 15px;\n }\n &:last-child {\n border-radius: 0;\n }\n }\n }\n }\n tbody {\n tr.product-row td {\n border-bottom: none;\n }\n\n tr.ni-row td {\n border-top: none;\n padding-top: 0;\n background: #fff;\n }\n\n tr.product-row td:first-child {\n border-bottom-left-radius: 0;\n }\n\n tr.product-row td:last-child {\n border-bottom-right-radius: 0;\n }\n\n tr.ni-row td:first-child {\n border-top-left-radius: 0;\n }\n\n tr.ni-row td:last-child {\n border-top-right-radius: 0;\n }\n\n tr.ni-row:nth-child(even) td {\n background: #fff;\n }\n tr {\n td {\n padding: 14px 20px;\n text-align: left;\n border-bottom: 1px solid rgba(58, 54, 48, 0.15);\n background: #fff;\n > svg {\n transform: scale(1.5);\n background-color: #edebe8;\n border-radius: 20px;\n padding: 5px;\n }\n &:last-child {\n border-radius: 0;\n border-right: none;\n }\n }\n }\n }\n }\n }\n }\n }\n\n .actions {\n display: flex;\n align-items: center;\n gap: 20px;\n > svg {\n transform: scale(1.5);\n background-color: #edebe8;\n border-radius: 20px;\n padding: 5px;\n }\n\n .close-icon {\n transform: scale(1.3);\n background-color: transparent;\n border-radius: 0;\n padding: 0;\n }\n }\n\n &.order-after-table {\n @media ${device.mobileLandscape} {\n display: block;\n width: 100%;\n min-width: 0;\n border-spacing: 0;\n\n thead {\n display: none;\n }\n\n tbody {\n display: block;\n width: 100%;\n }\n\n tbody tr {\n display: block;\n width: 100%;\n box-sizing: border-box;\n border-radius: 12px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.04);\n margin-bottom: 10px;\n background: #fff;\n /* no overflow:hidden here — the Labels cell's print dropdown\n (position: absolute) needs to be able to pop out past the\n card's bottom edge; every td is already white so there's\n nothing that needs clipping to keep the rounded corners clean */\n\n td:first-child {\n border-radius: 12px 12px 0 0 !important;\n }\n\n td:last-child {\n border-radius: 0 0 12px 12px !important;\n }\n\n td {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n width: 100%;\n box-sizing: border-box;\n border: none !important;\n border-radius: 0 !important;\n border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;\n padding: 8px 12px;\n\n &::before {\n content: attr(data-label);\n display: block;\n flex-shrink: 0;\n color: #6a7378;\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n }\n\n &:last-child {\n border-bottom: none !important;\n }\n\n .ant-select {\n width: 100% !important;\n }\n }\n\n &:nth-child(even) td {\n background: inherit;\n }\n\n /* the Labels cell is a row with the print button pinned to the\n card's right edge (space-between), so \"left: 0\" made the popup\n extend further right, off the edge of the screen, clipping its\n text. Anchor it via the button's right edge instead so it opens\n leftward, staying on-card. */\n .shareIconContainer > div > ul {\n left: auto;\n right: 0;\n }\n }\n\n tbody tr.state-row {\n border: none;\n box-shadow: none;\n margin-bottom: 0;\n\n td.state-cell {\n display: block;\n border: none !important;\n padding: 15px;\n\n &::before {\n content: none;\n }\n }\n }\n }\n }\n\n /* Return products table: stacked cards on tablet and mobile only */\n &.return-cards {\n @media ${device.tabletPortrait} {\n display: block;\n width: 100%;\n min-width: 0;\n border-spacing: 0;\n\n thead {\n display: none;\n }\n\n tbody {\n display: block;\n width: 100%;\n }\n\n tbody tr {\n display: block;\n width: 100%;\n box-sizing: border-box;\n border-radius: 12px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.04);\n margin-bottom: 10px;\n background: #fff;\n /* no overflow:hidden here — the Labels cell's print dropdown\n (position: absolute) needs to be able to pop out past the\n card's bottom edge; every td is already white so there's\n nothing that needs clipping to keep the rounded corners clean */\n\n td:first-child {\n border-radius: 12px 12px 0 0 !important;\n }\n\n td:last-child {\n border-radius: 0 0 12px 12px !important;\n }\n\n td {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n width: 100%;\n box-sizing: border-box;\n border: none !important;\n border-radius: 0 !important;\n border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;\n padding: 8px 12px;\n\n &::before {\n content: attr(data-label);\n display: block;\n flex-shrink: 0;\n color: #6a7378;\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n }\n\n &:last-child {\n border-bottom: none !important;\n }\n\n .ant-select {\n width: 100% !important;\n }\n }\n\n &:nth-child(even) td {\n background: inherit;\n }\n\n /* the Labels cell is a row with the print button pinned to the\n card's right edge (space-between), so \"left: 0\" made the popup\n extend further right, off the edge of the screen, clipping its\n text. Anchor it via the button's right edge instead so it opens\n leftward, staying on-card. */\n .shareIconContainer > div > ul {\n left: auto;\n right: 0;\n }\n }\n\n tbody tr.state-row {\n border: none;\n box-shadow: none;\n margin-bottom: 0;\n\n td.state-cell {\n display: block;\n border: none !important;\n padding: 15px;\n\n &::before {\n content: none;\n }\n }\n }\n }\n }\n \n &.return-cards {\n @media ${device.tabletPortrait} {\n thead {\n display: block;\n position: static;\n box-shadow: none;\n background: transparent;\n }\n thead tr {\n display: flex;\n align-items: center;\n margin-bottom: 8px;\n }\n thead th {\n display: none;\n }\n thead th.emailInvoiceCheckbox {\n display: flex;\n align-items: center;\n gap: 8px;\n width: auto;\n padding: 4px 4px 4px 12px;\n background: transparent;\n border: 0;\n border-radius: 0;\n &::after {\n content: 'Select all';\n font-size: 13px;\n font-weight: 600;\n color: #3a3630;\n }\n }\n tbody tr td {\n font-size: 13px;\n text-align: right;\n word-break: break-word;\n min-height: 40px;\n }\n tbody tr td::before {\n flex: 0 0 38%;\n text-align: left;\n }\n tbody tr td ul {\n margin: 0;\n text-align: right;\n }\n tbody tr td[data-label='Select']:empty {\n display: none;\n }\n tbody tr td[data-label='Select']:empty + td {\n border-radius: 12px 12px 0 0 !important;\n }\n }\n }\n\n &.order-after-table {\n @media ${device.mobileLandscape} {\n tbody tr td {\n font-size: 13px;\n text-align: right;\n word-break: break-word;\n min-height: 40px;\n }\n tbody tr td::before {\n flex: 0 0 38%;\n text-align: left;\n }\n tbody tr td ul {\n margin: 0;\n text-align: right;\n }\n tbody tr.state-row td.state-cell {\n text-align: center;\n }\n }\n }\n`;\n\nexport const CustomDrop = styled.div`\n cursor: pointer;\n &.active .drop {\n transform: rotate(180deg);\n }\n`;\n"],"names":["styled","Button","EmptyDataContainer","StyledTableWrapper","device","StyledTable","CustomDrop"],"mappings":";;;AAI8BA,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBlBA,EAAO;AAAA;AAAA;AAAA;AAKA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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAuDrBA,EAAO,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAsBtBE,IAAaN,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"returnstyles.js","sources":["../../../../../src/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.ts"],"sourcesContent":["import { Button } from '@bjsdistribution/dms-component-library';\nimport styled from 'styled-components';\nimport { device } from '../../common/mediaQuery';\n\nexport const IconContainers = styled.div`\n display: flex;\n gap: 5px;\n i {\n display: flex;\n width: 25px;\n height: 25px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 10px;\n flex-shrink: 0;\n border-radius: 15px;\n background: #edebe8;\n svg {\n }\n }\n`;\n\nexport const Div = styled.div`\n display: flex;\n justify-content: center;\n`;\n\nexport const ModalTitle = styled.span`\n font-size: 20px;\n font-weight: 900;\n line-height: 32px;\n margin: 5px;\n padding: 0;\n text-transform: uppercase;\n align-items: center;\n display: flex;\n justify-content: center;\n`;\n\nexport const Description = styled.span`\n color: #aea9a1;\n padding: 10px;\n`;\n\nexport const Container = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n width: 75px;\n height: 75px;\n padding: 14px;\n border-radius: 50%;\n background: #eff2f5;\n border: 10px solid #b7d0f7;\n`;\n\nexport const ConfirmButton = styled(Button)``;\n\nexport const CancelButton = styled.button`\n cursor: pointer;\n font-size: 16px;\n opacity: 1;\n background: white;\n color: #3a3630;\n border: thin solid #3a3630;\n white-space: nowrap;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 40px;\n padding: 8px 10px;\n border-radius: 6px;\n`;\n\nexport const SectionsContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 10px;\n text-align: center;\n`;\n\nexport const MainContainer = styled.div`\n padding: 24px;\n border-radius: 12px;\n background: #ffffff;\n box-shadow: 0px 20px 24px -4px #10182814;\n width: 30%;\n max-width: 50%;\n margin: 0 auto;\n @media (max-width: 1024px) {\n max-width: 40%;\n }\n`;\n\nexport const ButtonContainer = styled.div`\n display: flex;\n flex-direction: row;\n gap: 10px;\n`;\n\nexport const Header = styled.div`\n display: flex;\n justify-content: space-between;\n border-bottom: 1px solid #e3e3e3;\n`;\n\nexport const HeaderText = styled.div`\n color: #3a3630;\n font-size: 16px;\n font-weight: 500;\n text-transform: uppercase;\n padding: 10px;\n`;\n\nexport const Padding = styled.div`\n padding: 0px 10px 10px 10px;\n`;\n\nexport const HeaderCont = styled.div`\n display: flex;\n flex-direction: column;\n padding: 10px;\n`;\n\nexport const Main = styled.div`\n border: 1px solid #e3e3e3;\n background: #f8fafc;\n justify-content: space-between;\n align-items: center;\n border-radius: 15px 15px 0 0;\n margin-top: 15px;\n padding-top: 10px;\n`;\n\nexport const SendButton = styled(Button)`\n border-radius: 25px;\n &:disabled {\n background-color: #d3d3d3;\n cursor: not-allowed;\n }\n`;\n\nexport const TdWrapper = styled.span`\n background-color: rgba(153, 153, 153, 0.1);\n padding: 3px 12px;\n border-radius: 4px;\n`;\n\nexport const EmptyDataContainer = styled.div`\n display: flex;\n justify-content: center;\n`;\n\nexport const StyledTableWrapper = styled.div`\n max-height: calc(100vh - 310px);\n overflow-x: hidden;\n width: 100%;\n padding-top: 10px;\n background: #fff;\n\n @media ${device.tableScroll} {\n overflow-x: auto;\n }\n\n &.return-cards-wrapper {\n @media ${device.tabletPortrait} {\n overflow-x: visible;\n max-height: none;\n }\n }\n\n &.fortables {\n @media ${device.mobileLandscape} {\n /* cards stack full-width here (no horizontal scrolling needed), and\n hidden overflow was clipping the print dropdown's absolutely\n positioned popup */\n overflow-x: visible;\n /* the desktop max-height caps this box while the full card list\n renders past it, overlapping the pagination bar that follows —\n let it grow to fit all cards instead */\n max-height: none;\n }\n }\n\n &::-webkit-scrollbar {\n width: 6px;\n border-radius: 100px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: #e2e0db;\n border-radius: 100px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #989898;\n;\n border-radius: 100px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: #989898;\n;\n }\n`;\n\nexport const StyledTable = styled.table`\n border-spacing: 0 10px;\n width: 100%;\n table-layout: auto;\n\n @media ${device.tableScroll} {\n min-width: 1300px;\n }\n\n thead {\n position: sticky;\n top: 0;\n z-index: 1;\n background: #fff;\n box-shadow: 0px 0px 1px #ffffff, 0px -10px 1px #ffffff;\n tr {\n border-radius: 40px;\n border-spacing: 0 10px;\n position: relative;\n font-family: 'lato', sans-serif;\n .emailInvoiceCheckbox {\n padding-right: 0px;\n width: 24px;\n > div {\n width: fit-content;\n }\n }\n .emailInvoiceNo {\n padding-left: 0px;\n }\n .emailInvoiceShare {\n width: 80px;\n }\n th {\n color: #3a3630;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 1.3;\n padding: 8px 6px;\n background: #f0f2f2;\n border-right: none;\n border-left: none;\n\n @media ${device.mobileLandscape} {\n padding: 4px 6px;\n }\n text-align: left;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-width: 1px 0;\n word-wrap: break-word;\n overflow-wrap: break-word;\n white-space: normal;\n\n .ant-checkbox-wrapper,\n .ant-checkbox,\n input[type='checkbox'] {\n transform: scale(0.8);\n transform-origin: center center;\n }\n\n &:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n &:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n .sortIconClass {\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 4px;\n }\n }\n }\n }\n tbody {\n tr {\n td {\n color: #3a3630;\n font-size: 11px;\n font-style: normal;\n font-weight: 400;\n line-height: 1.3;\n padding: 6px 6px;\n background: #fff;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-right: none;\n border-left: none;\n position: relative;\n word-wrap: break-word;\n overflow-wrap: break-word;\n white-space: normal;\n\n .custom-check,\n .ant-checkbox-wrapper,\n .ant-checkbox,\n input[type='checkbox'] {\n transform: scale(0.8);\n transform-origin: center center;\n }\n\n .disabled-wrapper {\n cursor: not-allowed !important;\n display: inline-block;\n * {\n pointer-events: none !important;\n }\n /* greyed out so a disabled box is obvious at a glance. The visible\n box is the div after the (hidden) input in the library Checkbox. */\n input[type='checkbox'] + div {\n background: #d4d4d4 !important;\n border-color: #a8a8a8 !important;\n }\n }\n .actionbox {\n display: flex;\n gap: 5px;\n }\n .shareIconContainer {\n display: flex;\n padding: 2px 8px;\n align-items: center;\n gap: 4px;\n border-radius: 20px;\n border: 1px solid var(--tonal-brown-101, #e2e0db);\n background: #fff;\n list-style-type: none;\n cursor: pointer;\n position: relative;\n }\n .statusCancelled {\n color: #e95252;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusOnHold {\n color: #f4a503;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusSubContracted {\n color: #845adf;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusAwaiting {\n color: #845adf;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusCompleted {\n color: #1f9254;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusOutstanding {\n color: #f4a503;\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusUnknown {\n color: #000;\n padding: 4px 8px;\n border-radius: 4px;\n }\n .statustext {\n color: #1f9254;\n font-family: 'Open Sans';\n font-size: 11px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n }\n .downloadcontainer {\n display: flex;\n padding: 2px 12px;\n align-items: center;\n width: 28px;\n height: 28px;\n flex-direction: column;\n border-radius: 14px;\n border: 1px solid #e2e0db;\n background: #fff;\n }\n .statuscontainer {\n display: flex;\n padding: 5px 30px 5px 30px;\n justify-content: center;\n align-items: center;\n gap: 5px;\n flex: 1 0 0;\n border-radius: 22px;\n background: rgba(41, 204, 106, 0.15);\n }\n .awaiting {\n display: flex;\n min-width: fit-content;\n padding: 4px 6px;\n justify-content: center;\n align-items: center;\n gap: 5px;\n border-radius: 22px;\n background: rgba(233, 82, 82, 0.15);\n color: #e95252;\n font-family: 'Open Sans';\n font-size: 11px;\n font-weight: 600;\n }\n ul > li > a {\n text-decoration: none !important;\n color: #0099ff;\n word-break: break-all;\n }\n }\n &:nth-child(even) td {\n background: #f6fbff;\n }\n td:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n td:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n .flex {\n display: flex;\n flex-direction: row;\n gap: 5px;\n height: 29px;\n align-items: center;\n }\n\n &.insideTable {\n td {\n border-radius: 0;\n border: none;\n &:last-child {\n border-radius: 0;\n border-right: none;\n }\n }\n table {\n border-spacing: 0;\n width: 100%;\n border-radius: 5px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n overflow: hidden;\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n thead {\n tr {\n border-bottom: none;\n th {\n padding: 14px 20px;\n text-align: left;\n border-top: 0;\n border-right: 0;\n border-left: 0;\n background: #f8fafc;\n\n &:first-child {\n border-radius: 0;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n border-top-left-radius: 15px;\n }\n &:last-child {\n border-radius: 0;\n }\n }\n }\n }\n tbody {\n tr.product-row td {\n border-bottom: none;\n }\n\n tr.ni-row td {\n border-top: none;\n padding-top: 0;\n background: #fff;\n }\n\n tr.product-row td:first-child {\n border-bottom-left-radius: 0;\n }\n\n tr.product-row td:last-child {\n border-bottom-right-radius: 0;\n }\n\n tr.ni-row td:first-child {\n border-top-left-radius: 0;\n }\n\n tr.ni-row td:last-child {\n border-top-right-radius: 0;\n }\n\n tr.ni-row:nth-child(even) td {\n background: #fff;\n }\n tr {\n td {\n padding: 14px 20px;\n text-align: left;\n border-bottom: 1px solid rgba(58, 54, 48, 0.15);\n background: #fff;\n > svg {\n transform: scale(1.5);\n background-color: #edebe8;\n border-radius: 20px;\n padding: 5px;\n }\n &:last-child {\n border-radius: 0;\n border-right: none;\n }\n }\n }\n }\n }\n }\n }\n }\n\n .actions {\n display: flex;\n align-items: center;\n gap: 20px;\n > svg {\n transform: scale(1.5);\n background-color: #edebe8;\n border-radius: 20px;\n padding: 5px;\n }\n\n .close-icon {\n transform: scale(1.3);\n background-color: transparent;\n border-radius: 0;\n padding: 0;\n }\n }\n\n &.order-after-table {\n @media ${device.mobileLandscape} {\n display: block;\n width: 100%;\n min-width: 0;\n border-spacing: 0;\n\n thead {\n display: none;\n }\n\n tbody {\n display: block;\n width: 100%;\n }\n\n tbody tr {\n display: block;\n width: 100%;\n box-sizing: border-box;\n border-radius: 12px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.04);\n margin-bottom: 10px;\n background: #fff;\n /* no overflow:hidden here — the Labels cell's print dropdown\n (position: absolute) needs to be able to pop out past the\n card's bottom edge; every td is already white so there's\n nothing that needs clipping to keep the rounded corners clean */\n\n td:first-child {\n border-radius: 12px 12px 0 0 !important;\n }\n\n td:last-child {\n border-radius: 0 0 12px 12px !important;\n }\n\n td {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n width: 100%;\n box-sizing: border-box;\n border: none !important;\n border-radius: 0 !important;\n border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;\n padding: 8px 12px;\n\n &::before {\n content: attr(data-label);\n display: block;\n flex-shrink: 0;\n color: #6a7378;\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n }\n\n &:last-child {\n border-bottom: none !important;\n }\n\n .ant-select {\n width: 100% !important;\n }\n }\n\n &:nth-child(even) td {\n background: inherit;\n }\n\n /* the Labels cell is a row with the print button pinned to the\n card's right edge (space-between), so \"left: 0\" made the popup\n extend further right, off the edge of the screen, clipping its\n text. Anchor it via the button's right edge instead so it opens\n leftward, staying on-card. */\n .shareIconContainer > div > ul {\n left: auto;\n right: 0;\n }\n }\n\n tbody tr.state-row {\n border: none;\n box-shadow: none;\n margin-bottom: 0;\n\n td.state-cell {\n display: block;\n border: none !important;\n padding: 15px;\n\n &::before {\n content: none;\n }\n }\n }\n }\n }\n\n /* Return products table: stacked cards on tablet and mobile only */\n &.return-cards {\n @media ${device.tabletPortrait} {\n display: block;\n width: 100%;\n min-width: 0;\n border-spacing: 0;\n\n thead {\n display: none;\n }\n\n tbody {\n display: block;\n width: 100%;\n }\n\n tbody tr {\n display: block;\n width: 100%;\n box-sizing: border-box;\n border-radius: 12px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.04);\n margin-bottom: 10px;\n background: #fff;\n /* no overflow:hidden here — the Labels cell's print dropdown\n (position: absolute) needs to be able to pop out past the\n card's bottom edge; every td is already white so there's\n nothing that needs clipping to keep the rounded corners clean */\n\n td:first-child {\n border-radius: 12px 12px 0 0 !important;\n }\n\n td:last-child {\n border-radius: 0 0 12px 12px !important;\n }\n\n td {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n width: 100%;\n box-sizing: border-box;\n border: none !important;\n border-radius: 0 !important;\n border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;\n padding: 8px 12px;\n\n &::before {\n content: attr(data-label);\n display: block;\n flex-shrink: 0;\n color: #6a7378;\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n }\n\n &:last-child {\n border-bottom: none !important;\n }\n\n .ant-select {\n width: 100% !important;\n }\n }\n\n &:nth-child(even) td {\n background: inherit;\n }\n\n /* the Labels cell is a row with the print button pinned to the\n card's right edge (space-between), so \"left: 0\" made the popup\n extend further right, off the edge of the screen, clipping its\n text. Anchor it via the button's right edge instead so it opens\n leftward, staying on-card. */\n .shareIconContainer > div > ul {\n left: auto;\n right: 0;\n }\n }\n\n tbody tr.state-row {\n border: none;\n box-shadow: none;\n margin-bottom: 0;\n\n td.state-cell {\n display: block;\n border: none !important;\n padding: 15px;\n\n &::before {\n content: none;\n }\n }\n }\n }\n }\n \n &.return-cards {\n @media ${device.tabletPortrait} {\n thead {\n display: block;\n position: static;\n box-shadow: none;\n background: transparent;\n }\n thead tr {\n display: flex;\n align-items: center;\n margin-bottom: 8px;\n }\n thead th {\n display: none;\n }\n thead th.emailInvoiceCheckbox {\n display: flex;\n align-items: center;\n gap: 8px;\n width: auto;\n padding: 4px 4px 4px 12px;\n background: transparent;\n border: 0;\n border-radius: 0;\n &::after {\n content: 'Select all';\n font-size: 13px;\n font-weight: 600;\n color: #3a3630;\n }\n }\n tbody tr td {\n font-size: 13px;\n text-align: right;\n word-break: break-word;\n min-height: 40px;\n }\n tbody tr td::before {\n flex: 0 0 38%;\n text-align: left;\n }\n tbody tr td ul {\n margin: 0;\n text-align: right;\n }\n tbody tr td[data-label='Select']:empty {\n display: none;\n }\n tbody tr td[data-label='Select']:empty + td {\n border-radius: 12px 12px 0 0 !important;\n }\n }\n }\n\n &.order-after-table {\n @media ${device.mobileLandscape} {\n tbody tr td {\n font-size: 13px;\n text-align: right;\n word-break: break-word;\n min-height: 40px;\n }\n tbody tr td::before {\n flex: 0 0 38%;\n text-align: left;\n }\n tbody tr td ul {\n margin: 0;\n text-align: right;\n }\n tbody tr.state-row td.state-cell {\n text-align: center;\n }\n }\n }\n`;\n\nexport const CustomDrop = styled.div`\n cursor: pointer;\n &.active .drop {\n transform: rotate(180deg);\n }\n`;\n"],"names":["styled","Button","EmptyDataContainer","StyledTableWrapper","device","StyledTable","CustomDrop"],"mappings":";;;AAI8BA,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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