@bjsdistribution/dms-client-return 0.2.2-prod → 0.2.3-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.
Files changed (151) hide show
  1. package/dist/common/expand-collapse/index.js +44 -26
  2. package/dist/common/expand-collapse/index.js.map +1 -1
  3. package/dist/common/modals/order-action-modal/OrderActionModal.js.map +1 -1
  4. package/dist/common/modals/order-action-modal/footer/OrderActionFooter.js.map +1 -1
  5. package/dist/components/client-portal/ClientPortalResponsive.js +148 -0
  6. package/dist/components/client-portal/ClientPortalResponsive.js.map +1 -0
  7. package/dist/components/client-portal/OutstandingTable.js +112 -118
  8. package/dist/components/client-portal/OutstandingTable.js.map +1 -1
  9. package/dist/components/client-portal/ReturnOverview.js +38 -37
  10. package/dist/components/client-portal/ReturnOverview.js.map +1 -1
  11. package/dist/components/client-portal/return-confirm/ConfirmedMain.js +4 -4
  12. package/dist/components/client-portal/return-confirm/ConfirmedMain.js.map +1 -1
  13. package/dist/components/client-portal/return-confirm/ReturnConfirmedTable.js +445 -185
  14. package/dist/components/client-portal/return-confirm/ReturnConfirmedTable.js.map +1 -1
  15. package/dist/components/fakeData.js.map +1 -1
  16. package/dist/components/order-daily-overview/common/fakedata.js.map +1 -1
  17. package/dist/components/order-daily-overview/common/mediaQuery.js +17 -0
  18. package/dist/components/order-daily-overview/common/mediaQuery.js.map +1 -0
  19. package/dist/components/order-daily-overview/filters/FilterStyle.js +174 -11
  20. package/dist/components/order-daily-overview/filters/FilterStyle.js.map +1 -1
  21. package/dist/components/order-daily-overview/header/route-header/RouterHeaderStyle.js +9 -4
  22. package/dist/components/order-daily-overview/header/route-header/RouterHeaderStyle.js.map +1 -1
  23. package/dist/components/order-daily-overview/header/route-header/title/HeaderTitle.js +11 -1
  24. package/dist/components/order-daily-overview/header/route-header/title/HeaderTitle.js.map +1 -1
  25. package/dist/components/order-daily-overview/header-filters/Styledfilters.js +46 -17
  26. package/dist/components/order-daily-overview/header-filters/Styledfilters.js.map +1 -1
  27. package/dist/components/order-daily-overview/index.js +76 -53
  28. package/dist/components/order-daily-overview/index.js.map +1 -1
  29. package/dist/components/order-daily-overview/return-after-table/table/OrderTable.js +101 -103
  30. package/dist/components/order-daily-overview/return-after-table/table/OrderTable.js.map +1 -1
  31. package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.js +135 -134
  32. package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.js.map +1 -1
  33. package/dist/components/order-daily-overview/return-after-table/table-filters/TableFilters.js +17 -11
  34. package/dist/components/order-daily-overview/return-after-table/table-filters/TableFilters.js.map +1 -1
  35. package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnFilter.js +5 -5
  36. package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnFilter.js.map +1 -1
  37. package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.js +129 -135
  38. package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.js.map +1 -1
  39. package/dist/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.js +346 -27
  40. package/dist/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.js.map +1 -1
  41. package/dist/components/order-daily-overview/table/ReturnTable.js +199 -183
  42. package/dist/components/order-daily-overview/table/ReturnTable.js.map +1 -1
  43. package/dist/components/order-daily-overview/table/table-data/styles.js +159 -38
  44. package/dist/components/order-daily-overview/table/table-data/styles.js.map +1 -1
  45. package/dist/components/order-daily-overview/table-view/PaginationStyle.js +21 -6
  46. package/dist/components/order-daily-overview/table-view/PaginationStyle.js.map +1 -1
  47. package/dist/components/order-view/DynamicTable.js +136 -35
  48. package/dist/components/order-view/DynamicTable.js.map +1 -1
  49. package/dist/components/order-view/details-filters/DetailsFilters.js +33 -8
  50. package/dist/components/order-view/details-filters/DetailsFilters.js.map +1 -1
  51. package/dist/components/order-view/details-filters/left-side-filters/ActionsMenu.js +23 -5
  52. package/dist/components/order-view/details-filters/left-side-filters/ActionsMenu.js.map +1 -1
  53. package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.js +39 -22
  54. package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.js.map +1 -1
  55. package/dist/components/order-view/details-filters/right-side-filters/Details.js +25 -12
  56. package/dist/components/order-view/details-filters/right-side-filters/Details.js.map +1 -1
  57. package/dist/components/order-view/general-information/Status.js +58 -28
  58. package/dist/components/order-view/general-information/Status.js.map +1 -1
  59. package/dist/components/order-view/generic-table/AuditLogs.js +129 -24
  60. package/dist/components/order-view/generic-table/AuditLogs.js.map +1 -1
  61. package/dist/components/order-view/notes/logs/index.js +15 -7
  62. package/dist/components/order-view/notes/logs/index.js.map +1 -1
  63. package/dist/components/order-view/notes/order-dropdown/NewReturnDropdown.js +7 -7
  64. package/dist/components/order-view/notes/order-dropdown/NewReturnDropdown.js.map +1 -1
  65. package/dist/components/order-view/notification/index.js +68 -55
  66. package/dist/components/order-view/notification/index.js.map +1 -1
  67. package/dist/components/order-view/order-actions/Dropdown.js +3 -3
  68. package/dist/components/order-view/order-actions/Dropdown.js.map +1 -1
  69. package/dist/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.js +45 -47
  70. package/dist/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.js.map +1 -1
  71. package/dist/components/order-view/order-actions/actions/cancel-order/ReturnReason.js +23 -36
  72. package/dist/components/order-view/order-actions/actions/cancel-order/ReturnReason.js.map +1 -1
  73. package/dist/components/order-view/order-actions/actions/confirm-order/tables/ProductTable.js +23 -25
  74. package/dist/components/order-view/order-actions/actions/confirm-order/tables/ProductTable.js.map +1 -1
  75. package/dist/components/order-view/order-actions/actions/force-debrief/ForceDebriefModal.js +88 -89
  76. package/dist/components/order-view/order-actions/actions/force-debrief/ForceDebriefModal.js.map +1 -1
  77. package/dist/components/order-view/order-actions/actions/force-debrief/charges/collection-add-ons/index.js +16 -16
  78. package/dist/components/order-view/order-actions/actions/force-debrief/charges/collection-add-ons/index.js.map +1 -1
  79. package/dist/components/order-view/order-actions/actions/force-debrief/escalation/EscalationReason.js +22 -23
  80. package/dist/components/order-view/order-actions/actions/force-debrief/escalation/EscalationReason.js.map +1 -1
  81. package/dist/components/order-view/order-actions/actions/force-debrief/order-info/RadioButtons.js +52 -56
  82. package/dist/components/order-view/order-actions/actions/force-debrief/order-info/RadioButtons.js.map +1 -1
  83. package/dist/components/order-view/order-actions/actions/force-debrief/order-info/dropdowns/FailureReasonDropdown.js +26 -27
  84. package/dist/components/order-view/order-actions/actions/force-debrief/order-info/dropdowns/FailureReasonDropdown.js.map +1 -1
  85. package/dist/components/order-view/order-actions/actions/hold-order/HoldOrderModal.js +29 -29
  86. package/dist/components/order-view/order-actions/actions/hold-order/HoldOrderModal.js.map +1 -1
  87. package/dist/components/order-view/order-actions/actions/split-order/SplitOrderTable.js +54 -222
  88. package/dist/components/order-view/order-actions/actions/split-order/SplitOrderTable.js.map +1 -1
  89. package/dist/components/order-view/order-actions/actions/split-order/index.js +37 -50
  90. package/dist/components/order-view/order-actions/actions/split-order/index.js.map +1 -1
  91. package/dist/components/order-view/order-actions/actions/uncancel-order/UncancelOrderTable.js +35 -37
  92. package/dist/components/order-view/order-actions/actions/uncancel-order/UncancelOrderTable.js.map +1 -1
  93. package/dist/components/order-view/order-actions/actions/what3words/What3WordsModal.tsx.js +85 -85
  94. package/dist/components/order-view/order-actions/actions/what3words/What3WordsModal.tsx.js.map +1 -1
  95. package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactHome.js +12 -8
  96. package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactHome.js.map +1 -1
  97. package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactMobile.js +22 -18
  98. package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactMobile.js.map +1 -1
  99. package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/index.js +14 -8
  100. package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/index.js.map +1 -1
  101. package/dist/components/order-view/order-details/expanded-content/customer-section/index.js +19 -13
  102. package/dist/components/order-view/order-details/expanded-content/customer-section/index.js.map +1 -1
  103. package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Address.js +11 -6
  104. package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Address.js.map +1 -1
  105. package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Latitude.js +23 -21
  106. package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Latitude.js.map +1 -1
  107. package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Longitude.js +23 -21
  108. package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Longitude.js.map +1 -1
  109. package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/index.js +39 -21
  110. package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/index.js.map +1 -1
  111. package/dist/components/order-view/order-details/expanded-content/footer/index.js +28 -14
  112. package/dist/components/order-view/order-details/expanded-content/footer/index.js.map +1 -1
  113. package/dist/components/order-view/order-details/expanded-content/orders-section/index.js +44 -28
  114. package/dist/components/order-view/order-details/expanded-content/orders-section/index.js.map +1 -1
  115. package/dist/components/order-view/order-details/expanded-content/services-section/OrderServices.js +28 -20
  116. package/dist/components/order-view/order-details/expanded-content/services-section/OrderServices.js.map +1 -1
  117. package/dist/components/order-view/order-details/expanded-content/services-section/ServiceLevel.js +17 -18
  118. package/dist/components/order-view/order-details/expanded-content/services-section/ServiceLevel.js.map +1 -1
  119. package/dist/components/order-view/order-details/expanded-content/services-section/ServiceType.js +22 -26
  120. package/dist/components/order-view/order-details/expanded-content/services-section/ServiceType.js.map +1 -1
  121. package/dist/components/order-view/order-details/expanded-content/services-section/index.js +79 -25
  122. package/dist/components/order-view/order-details/expanded-content/services-section/index.js.map +1 -1
  123. package/dist/components/order-view/order-details/helper.js.map +1 -1
  124. package/dist/components/order-view/products-info/collapsed-content/index.js +21 -15
  125. package/dist/components/order-view/products-info/collapsed-content/index.js.map +1 -1
  126. package/dist/components/order-view/products-info/index.js +36 -36
  127. package/dist/components/order-view/products-info/index.js.map +1 -1
  128. package/dist/components/order-view/return-client-products/product-table/ReturnProductTable.js +265 -334
  129. package/dist/components/order-view/return-client-products/product-table/ReturnProductTable.js.map +1 -1
  130. package/dist/components/order-view/store.js +155 -162
  131. package/dist/components/order-view/store.js.map +1 -1
  132. package/dist/components/order-view/toolbox-resources/expanded-content/index.js +281 -173
  133. package/dist/components/order-view/toolbox-resources/expanded-content/index.js.map +1 -1
  134. package/dist/components/utils.js +5 -4
  135. package/dist/components/utils.js.map +1 -1
  136. package/dist/types/common/modals/order-action-modal/OrderActionModal.d.ts +1 -2
  137. package/dist/types/common/modals/order-action-modal/footer/OrderActionFooter.d.ts +1 -1
  138. package/dist/types/components/client-portal/ClientPortalResponsive.d.ts +15 -0
  139. package/dist/types/components/order-daily-overview/common/mediaQuery.d.ts +4 -0
  140. package/dist/types/components/order-daily-overview/filters/FilterStyle.d.ts +1 -0
  141. package/dist/types/components/order-view/order-actions/Dropdown.d.ts +0 -1
  142. package/dist/types/components/order-view/return-client-products/product-table/ReturnProductTable.d.ts +1 -0
  143. package/dist/types/components/order-view/store.d.ts +0 -1
  144. package/dist/types/components/order-view/types.d.ts +1 -1
  145. package/dist/types/components/utils.d.ts +1 -0
  146. package/package.json +2 -2
  147. package/dist/assets/icons/ChevronDownIcon.js +0 -26
  148. package/dist/assets/icons/ChevronDownIcon.js.map +0 -1
  149. package/dist/components/order-view/return-client-products/product-table/palletGrouping.js +0 -47
  150. package/dist/components/order-view/return-client-products/product-table/palletGrouping.js.map +0 -1
  151. package/dist/types/components/order-view/return-client-products/product-table/palletGrouping.d.ts +0 -23
@@ -1,72 +1,72 @@
1
- import { jsx as t, Fragment as k, jsxs as s } from "react/jsx-runtime";
2
- import P, { useState as O, useMemo as A } from "react";
3
- import { useClientData as W, useInternalSearchText as v } from "../../order-view/store.js";
1
+ import { jsx as t, Fragment as P, jsxs as s } from "react/jsx-runtime";
2
+ import k, { useState as O, useMemo as A } from "react";
3
+ import { useClientData as v, useInternalSearchText as W } from "../../order-view/store.js";
4
4
  import { useStatsLoading as U } from "../store/store.js";
5
- import { StyledTableWrapper as L, StyledTable as R, EmptyDataContainer as M, ColumStyle as c, GreyBox as o } from "./table-data/styles.js";
5
+ import { StyledTableWrapper as R, StyledTable as L, EmptyDataContainer as M, ColumStyle as d, GreyBox as c } from "./table-data/styles.js";
6
6
  import { Skeleton as F, Empty as Y } from "antd";
7
7
  import { useNavigate as G, NavLink as j } from "react-router-dom";
8
8
  import { filtersReducerAtom as B } from "../header-filters/filterStore.js";
9
9
  import { useCustomerData as $ } from "../../store.js";
10
10
  import q from "../../../common/SortIcon.js";
11
- import T from "../../../common/CaretDownFilledIcon.js";
12
- import { useAtom as z } from "jotai";
13
- const C = (h, g) => {
14
- const a = new URLSearchParams({
11
+ import N from "../../../common/CaretDownFilledIcon.js";
12
+ import { useAtom as w } from "jotai";
13
+ const b = (h, g) => {
14
+ const o = new URLSearchParams({
15
15
  customerId: h?.toString()
16
16
  });
17
- return g && a.set("type", g), `/orders/view/return/filter?${a.toString()}`;
17
+ return g && o.set("type", g), `/orders/view/return/filter?${o.toString()}`;
18
18
  }, nt = () => {
19
- const [h] = W(), [g] = U(), [, a] = z(B), x = G(), [S] = $(), [m] = v(), [p, y] = O(null), I = (r) => {
20
- y((n) => n?.key === r && n.direction === "asc" ? { key: r, direction: "desc" } : { key: r, direction: "asc" });
21
- }, f = A(() => (m && m?.length > 0 ? h || [] : S || [])?.map((d) => {
19
+ const [h] = v(), [g] = U(), [, o] = w(B), C = G(), [x] = $(), [f] = W(), [p, T] = O(null), y = (l) => {
20
+ T((n) => n?.key === l && n.direction === "asc" ? { key: l, direction: "desc" } : { key: l, direction: "asc" });
21
+ }, m = A(() => (f && f?.length > 0 ? h || [] : x || [])?.map((a) => {
22
22
  const e = h?.find(
23
- (l) => l?.customer_id != null && l?.customer_id.toString() === d?.customer_id?.toString()
23
+ (r) => r?.customer_id != null && r?.customer_id.toString() === a?.customer_id?.toString()
24
24
  );
25
- let i = d?.children?.map((l) => {
25
+ let i = a?.children?.map((r) => {
26
26
  const D = h?.find(
27
- (b) => b?.customer_id != null && b?.customer_id.toString() === l?.customer_id?.toString()
27
+ (E) => E?.customer_id != null && E?.customer_id.toString() === r?.customer_id?.toString()
28
28
  );
29
29
  return {
30
- ...l,
30
+ ...r,
31
31
  ...D
32
32
  };
33
33
  });
34
34
  return {
35
- ...d,
35
+ ...a,
36
36
  ...e,
37
37
  children: i
38
38
  };
39
- }) || [], [S, h, m]), E = A(() => {
40
- if (!f || !p) return f;
41
- const { key: r, direction: n } = p;
42
- return [...f].sort((d, e) => {
43
- const i = d[r], l = e[r];
44
- return typeof i == "number" && typeof l == "number" ? n === "asc" ? i - l : l - i : typeof i == "string" && typeof l == "string" ? n === "asc" ? i.localeCompare(l) : l.localeCompare(i) : 0;
39
+ }) || [], [x, h, f]), S = A(() => {
40
+ if (!m || !p) return m;
41
+ const { key: l, direction: n } = p;
42
+ return [...m].sort((a, e) => {
43
+ const i = a[l], r = e[l];
44
+ return typeof i == "number" && typeof r == "number" ? n === "asc" ? i - r : r - i : typeof i == "string" && typeof r == "string" ? n === "asc" ? i.localeCompare(r) : r.localeCompare(i) : 0;
45
45
  });
46
- }, [f, p]), N = (r) => !p || p.key !== r ? /* @__PURE__ */ t(q, {}) : p.direction === "asc" ? /* @__PURE__ */ t(T, {}) : /* @__PURE__ */ t(T, {}), _ = (r) => {
47
- r ? (a({
46
+ }, [m, p]), I = (l) => !p || p.key !== l ? /* @__PURE__ */ t(q, {}) : p.direction === "asc" ? /* @__PURE__ */ t(N, {}) : /* @__PURE__ */ t(N, {}), _ = (l) => {
47
+ l ? (o({
48
48
  type: "SET_CLIENT_FILTER",
49
- payload: r
50
- }), a({
49
+ payload: l
50
+ }), o({
51
51
  type: "SET_PAGE",
52
52
  payload: 1
53
- })) : a({
53
+ })) : o({
54
54
  type: "SET_CLIENT_FILTER",
55
55
  payload: []
56
- }), x(C(r));
57
- }, u = (r, n) => {
58
- r ? (a({
56
+ }), C(b(l));
57
+ }, u = (l, n) => {
58
+ l ? (o({
59
59
  type: "SET_CLIENT_FILTER",
60
- payload: r
61
- }), a({
60
+ payload: l
61
+ }), o({
62
62
  type: "SET_PAGE",
63
63
  payload: 1
64
- })) : a({
64
+ })) : o({
65
65
  type: "SET_CLIENT_FILTER",
66
66
  payload: []
67
- }), x(C(r, n));
67
+ }), C(b(l, n));
68
68
  };
69
- return /* @__PURE__ */ t(k, { children: /* @__PURE__ */ t(L, { children: /* @__PURE__ */ s(R, { children: [
69
+ return /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(R, { children: /* @__PURE__ */ s(L, { className: "return-overview-table", children: [
70
70
  /* @__PURE__ */ s("colgroup", { children: [
71
71
  /* @__PURE__ */ t("col", { style: { width: "180px" } }),
72
72
  /* @__PURE__ */ t("col", { style: { width: "180px" } }),
@@ -94,194 +94,210 @@ const C = (h, g) => {
94
94
  { label: "Re-Del", key: "RE-Del", width: "90px", align: "center" },
95
95
  { label: "Recycle", key: "RECYCLE", width: "90px", align: "center" },
96
96
  { label: "Unknown", key: "UNKNOWN", width: "90px", align: "center" }
97
- ].map(({ label: r, key: n, width: d, align: e }) => /* @__PURE__ */ t("th", { onClick: () => I(n), style: { whiteSpace: "nowrap", width: d, textAlign: e }, children: /* @__PURE__ */ s("div", { style: { display: "flex", cursor: "pointer", justifyContent: e === "left" ? "flex-start" : "center" }, children: [
98
- r,
97
+ ].map(({ label: l, key: n, width: a, align: e }) => /* @__PURE__ */ t("th", { onClick: () => y(n), style: { whiteSpace: "nowrap", width: a, textAlign: e }, children: /* @__PURE__ */ s("div", { style: { display: "flex", cursor: "pointer", justifyContent: e === "left" ? "flex-start" : "center" }, children: [
98
+ l,
99
99
  " ",
100
- /* @__PURE__ */ t("span", { children: N(n) })
100
+ /* @__PURE__ */ t("span", { children: I(n) })
101
101
  ] }) }, n)) }) }),
102
- /* @__PURE__ */ t("tbody", { children: g ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: 12, children: /* @__PURE__ */ t(F, { active: !0 }) }) }) : E?.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: 12, children: /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(Y, {}) }) }) }) : E?.map((r, n) => {
103
- if (!r) return null;
104
- const d = (e, i = !1) => e ? /* @__PURE__ */ s("tr", { style: i ? { backgroundColor: "#ffffff" } : {}, children: [
105
- /* @__PURE__ */ t(
106
- "td",
107
- {
108
- style: {
109
- paddingLeft: "15px",
110
- color: "inherit"
111
- },
112
- children: /* @__PURE__ */ t("span", { style: { fontWeight: !i && e?.children?.length > 0 ? 600 : 400 }, children: e?.trading_as })
113
- }
114
- ),
115
- /* @__PURE__ */ t(
116
- "td",
117
- {
118
- style: {
119
- color: "#0099ff",
120
- fontWeight: 600,
121
- textAlign: "center"
122
- },
123
- children: /* @__PURE__ */ t(
124
- j,
102
+ /* @__PURE__ */ t("tbody", { children: g ? /* @__PURE__ */ t("tr", { className: "state-row", children: /* @__PURE__ */ t("td", { colSpan: 12, children: /* @__PURE__ */ t(F, { active: !0 }) }) }) : S?.length === 0 ? /* @__PURE__ */ t("tr", { className: "state-row", children: /* @__PURE__ */ t("td", { colSpan: 12, children: /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(Y, {}) }) }) }) : S?.map((l, n) => {
103
+ if (!l) return null;
104
+ const a = (e, i = !1) => e ? /* @__PURE__ */ s(
105
+ "tr",
106
+ {
107
+ className: i ? "child-row" : "parent-row",
108
+ style: i ? { backgroundColor: "#ffffff" } : {},
109
+ children: [
110
+ /* @__PURE__ */ t(
111
+ "td",
125
112
  {
126
- to: C(e?.customer_id),
127
- onClick: (l) => {
128
- l.ctrlKey || l.metaKey || (l.preventDefault(), _(e?.customer_id));
113
+ "data-label": "Trading Name",
114
+ style: {
115
+ paddingLeft: "15px",
116
+ color: "inherit"
129
117
  },
118
+ children: /* @__PURE__ */ t("span", { style: { fontWeight: !i && e?.children?.length > 0 ? 600 : 400 }, children: e?.trading_as })
119
+ }
120
+ ),
121
+ /* @__PURE__ */ t(
122
+ "td",
123
+ {
124
+ "data-label": "Client",
130
125
  style: {
131
126
  color: "#0099ff",
132
127
  fontWeight: 600,
133
- cursor: "pointer",
134
- display: "inline-block"
128
+ textAlign: "center"
135
129
  },
136
- children: e?.customer_name
130
+ children: /* @__PURE__ */ t(
131
+ j,
132
+ {
133
+ to: b(e?.customer_id),
134
+ onClick: (r) => {
135
+ r.ctrlKey || r.metaKey || (r.preventDefault(), _(e?.customer_id));
136
+ },
137
+ style: {
138
+ color: "#0099ff",
139
+ fontWeight: 600,
140
+ cursor: "pointer",
141
+ display: "inline-block"
142
+ },
143
+ children: e?.customer_name
144
+ }
145
+ )
137
146
  }
138
- )
139
- }
140
- ),
141
- /* @__PURE__ */ t("td", { style: { textAlign: "center" }, children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(o, { children: e?.orders ?? 0 }) }) }),
142
- /* @__PURE__ */ t("td", { style: { textAlign: "center" }, children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(o, { children: e?.return_order_products ?? 0 }) }) }),
143
- /* @__PURE__ */ t(
144
- "td",
145
- {
146
- style: {
147
- color: e?.RTS > 0 ? "#0099ff" : "inherit",
148
- fontWeight: e?.RTS > 0 ? 600 : "normal",
149
- cursor: e?.RTS > 0 ? "pointer" : "default",
150
- textAlign: "center"
151
- },
152
- onClick: e?.RTS > 0 ? () => u(e?.customer_id, "RTS") : void 0,
153
- children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
154
- o,
147
+ ),
148
+ /* @__PURE__ */ t("td", { "data-label": "Orders", style: { textAlign: "center" }, children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(c, { children: e?.orders ?? 0 }) }) }),
149
+ /* @__PURE__ */ t("td", { "data-label": "Products", style: { textAlign: "center" }, children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(c, { children: e?.return_order_products ?? 0 }) }) }),
150
+ /* @__PURE__ */ t(
151
+ "td",
155
152
  {
153
+ "data-label": "RTS",
156
154
  style: {
157
- backgroundColor: e?.RTS > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
155
+ color: e?.RTS > 0 ? "#0099ff" : "inherit",
156
+ fontWeight: e?.RTS > 0 ? 600 : "normal",
157
+ cursor: e?.RTS > 0 ? "pointer" : "default",
158
+ textAlign: "center"
158
159
  },
159
- children: e?.RTS ?? 0
160
+ onClick: e?.RTS > 0 ? () => u(e?.customer_id, "RTS") : void 0,
161
+ children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
162
+ c,
163
+ {
164
+ style: {
165
+ backgroundColor: e?.RTS > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
166
+ },
167
+ children: e?.RTS ?? 0
168
+ }
169
+ ) })
160
170
  }
161
- ) })
162
- }
163
- ),
164
- /* @__PURE__ */ t("td", { style: { textAlign: "center" }, children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(o, { children: e?.PENDING ?? 0 }) }) }),
165
- /* @__PURE__ */ t(
166
- "td",
167
- {
168
- style: {
169
- color: e?.["CLAIMS PAID"] > 0 ? "#0099ff" : "inherit",
170
- fontWeight: e?.["CLAIMS PAID"] > 0 ? 600 : "normal",
171
- cursor: e?.["CLAIMS PAID"] > 0 ? "pointer" : "default",
172
- textAlign: "center"
173
- },
174
- onClick: e?.["CLAIMS PAID"] > 0 ? () => u(e?.customer_id, "CLAIMS PAID") : void 0,
175
- children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
176
- o,
171
+ ),
172
+ /* @__PURE__ */ t("td", { "data-label": "Pending", style: { textAlign: "center" }, children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(c, { children: e?.PENDING ?? 0 }) }) }),
173
+ /* @__PURE__ */ t(
174
+ "td",
177
175
  {
176
+ "data-label": "Claims Paid",
178
177
  style: {
179
- backgroundColor: e?.["CLAIMS PAID"] > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
178
+ color: e?.["CLAIMS PAID"] > 0 ? "#0099ff" : "inherit",
179
+ fontWeight: e?.["CLAIMS PAID"] > 0 ? 600 : "normal",
180
+ cursor: e?.["CLAIMS PAID"] > 0 ? "pointer" : "default",
181
+ textAlign: "center"
180
182
  },
181
- children: e?.["CLAIMS PAID"] ?? 0
183
+ onClick: e?.["CLAIMS PAID"] > 0 ? () => u(e?.customer_id, "CLAIMS PAID") : void 0,
184
+ children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
185
+ c,
186
+ {
187
+ style: {
188
+ backgroundColor: e?.["CLAIMS PAID"] > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
189
+ },
190
+ children: e?.["CLAIMS PAID"] ?? 0
191
+ }
192
+ ) })
182
193
  }
183
- ) })
184
- }
185
- ),
186
- /* @__PURE__ */ t(
187
- "td",
188
- {
189
- style: {
190
- color: e?.DISPOSE > 0 ? "#0099ff" : "inherit",
191
- fontWeight: e?.DISPOSE > 0 ? 600 : "normal",
192
- cursor: e?.DISPOSE > 0 ? "pointer" : "default",
193
- textAlign: "center"
194
- },
195
- onClick: e?.DISPOSE > 0 ? () => u(e?.customer_id, "DISPOSE") : void 0,
196
- children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
197
- o,
194
+ ),
195
+ /* @__PURE__ */ t(
196
+ "td",
198
197
  {
198
+ "data-label": "Dispose",
199
199
  style: {
200
- backgroundColor: e?.DISPOSE > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
200
+ color: e?.DISPOSE > 0 ? "#0099ff" : "inherit",
201
+ fontWeight: e?.DISPOSE > 0 ? 600 : "normal",
202
+ cursor: e?.DISPOSE > 0 ? "pointer" : "default",
203
+ textAlign: "center"
201
204
  },
202
- children: e?.DISPOSE ?? 0
205
+ onClick: e?.DISPOSE > 0 ? () => u(e?.customer_id, "DISPOSE") : void 0,
206
+ children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
207
+ c,
208
+ {
209
+ style: {
210
+ backgroundColor: e?.DISPOSE > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
211
+ },
212
+ children: e?.DISPOSE ?? 0
213
+ }
214
+ ) })
203
215
  }
204
- ) })
205
- }
206
- ),
207
- /* @__PURE__ */ t(
208
- "td",
209
- {
210
- style: {
211
- color: e?.["RE-ALLOCATE"] > 0 ? "#0099ff" : "inherit",
212
- fontWeight: e?.["RE-ALLOCATE"] > 0 ? 600 : "normal",
213
- cursor: e?.["RE-ALLOCATE"] > 0 ? "pointer" : "default",
214
- textAlign: "center"
215
- },
216
- onClick: e?.["RE-ALLOCATE"] > 0 ? () => u(e?.customer_id, "RE-ALLOCATE") : void 0,
217
- children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
218
- o,
216
+ ),
217
+ /* @__PURE__ */ t(
218
+ "td",
219
219
  {
220
+ "data-label": "Re-allocate",
220
221
  style: {
221
- backgroundColor: e?.["RE-ALLOCATE"] > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
222
+ color: e?.["RE-ALLOCATE"] > 0 ? "#0099ff" : "inherit",
223
+ fontWeight: e?.["RE-ALLOCATE"] > 0 ? 600 : "normal",
224
+ cursor: e?.["RE-ALLOCATE"] > 0 ? "pointer" : "default",
225
+ textAlign: "center"
222
226
  },
223
- children: e?.["RE-ALLOCATE"] ?? 0
227
+ onClick: e?.["RE-ALLOCATE"] > 0 ? () => u(e?.customer_id, "RE-ALLOCATE") : void 0,
228
+ children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
229
+ c,
230
+ {
231
+ style: {
232
+ backgroundColor: e?.["RE-ALLOCATE"] > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
233
+ },
234
+ children: e?.["RE-ALLOCATE"] ?? 0
235
+ }
236
+ ) })
224
237
  }
225
- ) })
226
- }
227
- ),
228
- /* @__PURE__ */ t("td", { style: { textAlign: "center" }, children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(o, { children: e?.["RE-DEL"] ?? 0 }) }) }),
229
- /* @__PURE__ */ t(
230
- "td",
231
- {
232
- style: {
233
- color: e?.RECYCLE > 0 ? "#0099ff" : "inherit",
234
- fontWeight: e?.RECYCLE > 0 ? 600 : "normal",
235
- cursor: e?.RECYCLE > 0 ? "pointer" : "default",
236
- textAlign: "center"
237
- },
238
- onClick: e?.RECYCLE > 0 ? () => u(e?.customer_id, "RECYCLE") : void 0,
239
- children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
240
- o,
238
+ ),
239
+ /* @__PURE__ */ t("td", { "data-label": "Re-Del", style: { textAlign: "center" }, children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(c, { children: e?.["RE-DEL"] ?? 0 }) }) }),
240
+ /* @__PURE__ */ t(
241
+ "td",
241
242
  {
243
+ "data-label": "Recycle",
242
244
  style: {
243
- backgroundColor: e?.RECYCLE > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
245
+ color: e?.RECYCLE > 0 ? "#0099ff" : "inherit",
246
+ fontWeight: e?.RECYCLE > 0 ? 600 : "normal",
247
+ cursor: e?.RECYCLE > 0 ? "pointer" : "default",
248
+ textAlign: "center"
244
249
  },
245
- children: e?.RECYCLE ?? 0
250
+ onClick: e?.RECYCLE > 0 ? () => u(e?.customer_id, "RECYCLE") : void 0,
251
+ children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
252
+ c,
253
+ {
254
+ style: {
255
+ backgroundColor: e?.RECYCLE > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
256
+ },
257
+ children: e?.RECYCLE ?? 0
258
+ }
259
+ ) })
246
260
  }
247
- ) })
248
- }
249
- ),
250
- /* @__PURE__ */ t(
251
- "td",
252
- {
253
- style: {
254
- color: e?.UNKNOWN > 0 ? "#0099ff" : "inherit",
255
- fontWeight: e?.UNKNOWN > 0 ? 600 : "normal",
256
- cursor: e?.UNKNOWN > 0 ? "pointer" : "default",
257
- textAlign: "center"
258
- },
259
- onClick: e?.UNKNOWN > 0 ? () => u(e?.customer_id, "UNKNOWN") : void 0,
260
- children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
261
- o,
261
+ ),
262
+ /* @__PURE__ */ t(
263
+ "td",
262
264
  {
265
+ "data-label": "Unknown",
263
266
  style: {
264
- backgroundColor: e?.UNKNOWN > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
267
+ color: e?.UNKNOWN > 0 ? "#0099ff" : "inherit",
268
+ fontWeight: e?.UNKNOWN > 0 ? 600 : "normal",
269
+ cursor: e?.UNKNOWN > 0 ? "pointer" : "default",
270
+ textAlign: "center"
265
271
  },
266
- children: e?.UNKNOWN ?? 0
272
+ onClick: e?.UNKNOWN > 0 ? () => u(e?.customer_id, "UNKNOWN") : void 0,
273
+ children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
274
+ c,
275
+ {
276
+ style: {
277
+ backgroundColor: e?.UNKNOWN > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
278
+ },
279
+ children: e?.UNKNOWN ?? 0
280
+ }
281
+ ) })
267
282
  }
268
- ) })
269
- }
270
- )
271
- ] }, i ? `child-${e?.customer_id}` : e?.customer_id) : null;
272
- return !r?.children || r?.children?.length === 0 ? /* @__PURE__ */ t(P.Fragment, { children: d(r, !1) }, n) : /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: 12, style: { padding: 0, border: "none", background: "transparent" }, children: /* @__PURE__ */ t("div", { style: {
283
+ )
284
+ ]
285
+ },
286
+ i ? `child-${e?.customer_id}` : e?.customer_id
287
+ ) : null;
288
+ return !l?.children || l?.children?.length === 0 ? /* @__PURE__ */ t(k.Fragment, { children: a(l, !1) }, n) : /* @__PURE__ */ t("tr", { className: "group-row", children: /* @__PURE__ */ t("td", { colSpan: 12, style: { padding: 0, border: "none", background: "transparent" }, children: /* @__PURE__ */ t("div", { className: "group-box", style: {
273
289
  margin: "3px 10px",
274
290
  backgroundColor: "#f8fafc",
275
291
  borderRadius: "16px",
276
292
  border: "1px solid rgba(0,0,0,0.08)",
277
293
  borderLeft: "4px solid #0099ff",
278
294
  boxShadow: "inset 0 1px 4px rgba(0,0,0,0.02)"
279
- }, children: /* @__PURE__ */ t(L, { style: {
295
+ }, children: /* @__PURE__ */ t(R, { className: "group-table-wrapper", style: {
280
296
  padding: "0px 4px",
281
297
  border: "none",
282
298
  borderRadius: "15px",
283
299
  overflow: "hidden"
284
- }, children: /* @__PURE__ */ s(R, { style: { marginBottom: 0, borderSpacing: "0 2px" }, children: [
300
+ }, children: /* @__PURE__ */ s(L, { className: "return-overview-table group-table", style: { marginBottom: 0, borderSpacing: "0 2px" }, children: [
285
301
  /* @__PURE__ */ s("colgroup", { children: [
286
302
  /* @__PURE__ */ t("col", { style: { width: "180px" } }),
287
303
  /* @__PURE__ */ t("col", { style: { width: "180px" } }),
@@ -297,8 +313,8 @@ const C = (h, g) => {
297
313
  /* @__PURE__ */ t("col", { style: { width: "90px" } })
298
314
  ] }),
299
315
  /* @__PURE__ */ s("tbody", { children: [
300
- d(r, !1),
301
- r?.children?.map((e) => d(e, !0))
316
+ a(l, !1),
317
+ l?.children?.map((e) => a(e, !0))
302
318
  ] })
303
319
  ] }) }) }) }) }, `group-${n}`);
304
320
  }) })