@bjsdistribution/dms-client-return 0.1.65-prod → 0.1.66-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.
@@ -2407,6 +2407,10 @@ var StyledTableWrapper$1 = /*#__PURE__*/styled.div(_templateObject20 || (_templa
2407
2407
  var CustomDrop = /*#__PURE__*/styled.div(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* border-radius: 20px;\n border: 1px solid #e2e0db;\n background: #fff;\n display: flex;\n padding: 4px 8px;\n gap: 8px;\n align-items: center; */\n cursor: pointer;\n &.active .drop {\n transform: rotate(180deg);\n }\n"])));
2408
2408
 
2409
2409
  var _excluded = ["count"];
2410
+ var SELECTABLE_ACTIONS = ['RTS', 'CLAIMS PAID', 'DISPOSE', 'RE-ALLOCATE', 'RECYCLE', 'UNKNOWN'];
2411
+ var isSelectableItem = function isSelectableItem(item) {
2412
+ return SELECTABLE_ACTIONS.includes(item == null ? void 0 : item.product_return_action) && (item == null ? void 0 : item.return_location) !== 'null' && (item == null ? void 0 : item.return_location) !== null;
2413
+ };
2410
2414
  var ReturnOrderTable = function ReturnOrderTable() {
2411
2415
  var _useAtom = useAtom(filtersReducerAtom),
2412
2416
  state = _useAtom[0];
@@ -2568,8 +2572,14 @@ var ReturnOrderTable = function ReturnOrderTable() {
2568
2572
  var isChecked = e.target.checked;
2569
2573
  setSelectAll(isChecked);
2570
2574
  if (isChecked) {
2575
+ var _selectedReturnOrder$;
2576
+ var firstSelectable = returnData == null ? void 0 : returnData.find(function (loc) {
2577
+ return isSelectableItem(loc);
2578
+ });
2579
+ var targetAction = selectedReturnOrder.length > 0 ? (_selectedReturnOrder$ = selectedReturnOrder[0]) == null ? void 0 : _selectedReturnOrder$.product_return_action : firstSelectable == null ? void 0 : firstSelectable.product_return_action;
2580
+ if (!targetAction) return;
2571
2581
  var filteredData = returnData == null ? void 0 : returnData.filter(function (loc) {
2572
- return (loc == null ? void 0 : loc.product_return_action) === 'RTS';
2582
+ return isSelectableItem(loc) && (loc == null ? void 0 : loc.product_return_action) === targetAction;
2573
2583
  });
2574
2584
  var selectedOrders = filteredData.map(function (loc) {
2575
2585
  return {
@@ -2605,6 +2615,7 @@ var ReturnOrderTable = function ReturnOrderTable() {
2605
2615
  return loc.id === id;
2606
2616
  });
2607
2617
  if (isSelected) {
2618
+ var _returnData$filter;
2608
2619
  var updatedSelectedLocations = prevSelectedLocations.filter(function (loc) {
2609
2620
  return loc.id !== id;
2610
2621
  });
@@ -2620,10 +2631,14 @@ var ReturnOrderTable = function ReturnOrderTable() {
2620
2631
  return item.id !== id;
2621
2632
  });
2622
2633
  });
2623
- setSelectAll(false); // Ensure "select all" is false if one is deselected
2634
+ var targetAction = product_return_action;
2635
+ var totalItemsOfAction = returnData == null || (_returnData$filter = returnData.filter(function (loc) {
2636
+ return isSelectableItem(loc) && (loc == null ? void 0 : loc.product_return_action) === targetAction;
2637
+ })) == null ? void 0 : _returnData$filter.length;
2638
+ setSelectAll((updatedSelectedLocations == null ? void 0 : updatedSelectedLocations.length) > 0 && (updatedSelectedLocations == null ? void 0 : updatedSelectedLocations.length) === totalItemsOfAction);
2624
2639
  return updatedSelectedLocations;
2625
2640
  } else {
2626
- var _returnData$filter;
2641
+ var _returnData$filter2;
2627
2642
  var newReturnPayload = {
2628
2643
  id: id,
2629
2644
  account_number: accountNumber,
@@ -2641,38 +2656,41 @@ var ReturnOrderTable = function ReturnOrderTable() {
2641
2656
  return_location_name: return_location_name,
2642
2657
  product_return_action: product_return_action
2643
2658
  }]);
2644
- setSelectAll((_updatedSelectedLocations == null ? void 0 : _updatedSelectedLocations.length) === (returnData == null || (_returnData$filter = returnData.filter(function (loc) {
2645
- return (loc == null ? void 0 : loc.product_return_action) === 'RTS';
2646
- })) == null ? void 0 : _returnData$filter.length));
2659
+ var _targetAction = product_return_action;
2660
+ var _totalItemsOfAction = returnData == null || (_returnData$filter2 = returnData.filter(function (loc) {
2661
+ return isSelectableItem(loc) && (loc == null ? void 0 : loc.product_return_action) === _targetAction;
2662
+ })) == null ? void 0 : _returnData$filter2.length;
2663
+ setSelectAll((_updatedSelectedLocations == null ? void 0 : _updatedSelectedLocations.length) === _totalItemsOfAction);
2647
2664
  return _updatedSelectedLocations;
2648
2665
  }
2649
2666
  });
2650
2667
  };
2651
2668
  useEffect(function () {
2652
- if ((newpayload == null ? void 0 : newpayload.length) === 0) return;
2669
+ if ((newpayload == null ? void 0 : newpayload.length) === 0) {
2670
+ setGrouped([]);
2671
+ return;
2672
+ }
2653
2673
  var groupedPayload = newpayload == null ? void 0 : newpayload.reduce(function (acc, item) {
2654
- var return_location_token = item.return_location_token;
2655
- if (!return_location_token) {
2656
- acc.push(item);
2657
- } else {
2658
- if (!acc[return_location_token]) {
2659
- acc[return_location_token] = _extends({}, item, {
2660
- products: [],
2661
- return_action: []
2662
- });
2663
- }
2664
- acc[return_location_token].products = [].concat(acc[return_location_token].products, item.products);
2665
- acc[return_location_token].return_action = [].concat(acc[return_location_token].return_action, item.return_action);
2674
+ var return_location_token = item.return_location_token,
2675
+ id = item.id;
2676
+ var key = return_location_token || "no_token_" + id;
2677
+ if (!acc[key]) {
2678
+ acc[key] = _extends({}, item, {
2679
+ products: [],
2680
+ return_action: []
2681
+ });
2666
2682
  }
2683
+ acc[key].products = [].concat(acc[key].products, item.products);
2684
+ acc[key].return_action = Array.from(new Set([].concat(acc[key].return_action, item.return_action)));
2667
2685
  return acc;
2668
- }, []);
2686
+ }, {});
2669
2687
  var mergedPayload = Object.values(groupedPayload);
2670
2688
  setGrouped(mergedPayload);
2671
2689
  }, [newpayload]);
2672
2690
  return React.createElement(React.Fragment, null, React.createElement(StyledTableWrapper$1, {
2673
2691
  className: "fortables"
2674
2692
  }, React.createElement(StyledTable$1, null, React.createElement("thead", null, React.createElement("tr", null, returnData != null && returnData.some(function (item) {
2675
- return (item == null ? void 0 : item.product_return_action) === 'RTS' && (item == null ? void 0 : item.return_location) !== 'null' && (item == null ? void 0 : item.return_location) !== null;
2693
+ return isSelectableItem(item);
2676
2694
  }) ? React.createElement("th", {
2677
2695
  className: "emailInvoiceCheckbox"
2678
2696
  }, React.createElement(Checkbox, {
@@ -2723,11 +2741,12 @@ var ReturnOrderTable = function ReturnOrderTable() {
2723
2741
  }))) : (sortedData == null ? void 0 : sortedData.length) === 0 ? React.createElement("tr", null, React.createElement("td", {
2724
2742
  colSpan: 14
2725
2743
  }, React.createElement(EmptyDataContainer, null, React.createElement(Empty, null)))) : sortedData == null ? void 0 : sortedData.map(function (item, index) {
2726
- var _item$client_name;
2744
+ var _selectedReturnOrder$2, _item$client_name;
2727
2745
  return React.createElement("tr", {
2728
2746
  key: item.id
2729
- }, React.createElement("td", null, (item == null ? void 0 : item.product_return_action) === 'RTS' && (item == null ? void 0 : item.return_location) !== 'null' && (item == null ? void 0 : item.return_location) !== null ? React.createElement(Checkbox, {
2747
+ }, React.createElement("td", null, isSelectableItem(item) ? React.createElement(Checkbox, {
2730
2748
  className: "custom-check",
2749
+ disabled: selectedReturnOrder.length > 0 && ((_selectedReturnOrder$2 = selectedReturnOrder[0]) == null ? void 0 : _selectedReturnOrder$2.product_return_action) !== (item == null ? void 0 : item.product_return_action),
2731
2750
  checked: selectedReturnOrder.some(function (selectedInvoice) {
2732
2751
  return (selectedInvoice == null ? void 0 : selectedInvoice.id) === (item == null ? void 0 : item.id);
2733
2752
  }),
@@ -6457,7 +6476,7 @@ function OrderDetailsFooter() {
6457
6476
  var onSave = /*#__PURE__*/function () {
6458
6477
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6459
6478
  var _response$data;
6460
- var _orderDetails$order_c, _ref2, consignor_eori, packaging_type, consignee_country, commodity_code, country_of_origin, item_invoice_amount, procedure_code, ni_additional_information_codes, additional_procedure_code, additional_procedures, customDetailsPayload, payload, serviceKeys, _i, _serviceKeys, key, response, _response$data$, _response$data$2, alertsApiRes, orderStatusApiRes;
6479
+ var _orderDetails$order_c, _ref2, consignor_eori, packaging_type, consignee_country, commodity_code, country_of_origin, item_invoice_amount, procedure_code, ni_additional_information_codes, additional_procedure_code, additional_procedures, customDetailsPayload, payload, serviceKeys, _i, _serviceKeys, key, response, _response$data$, _response$data$2, _response$data$3, alertsApiRes, orderStatusApiRes;
6461
6480
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6462
6481
  while (1) switch (_context.prev = _context.next) {
6463
6482
  case 0:
@@ -6523,7 +6542,8 @@ function OrderDetailsFooter() {
6523
6542
  setPrevOrderDetails(response == null ? void 0 : response.data[0]);
6524
6543
  setCustomerInfo({
6525
6544
  recipient_name: response == null || (_response$data$ = response.data[0]) == null || (_response$data$ = _response$data$.order_recipient) == null ? void 0 : _response$data$.recipient_name,
6526
- postcode: response == null || (_response$data$2 = response.data[0]) == null || (_response$data$2 = _response$data$2.order_recipient) == null ? void 0 : _response$data$2.postcode
6545
+ postcode: response == null || (_response$data$2 = response.data[0]) == null || (_response$data$2 = _response$data$2.order_recipient) == null ? void 0 : _response$data$2.postcode,
6546
+ return_action: response == null || (_response$data$3 = response.data[0]) == null ? void 0 : _response$data$3.return_action
6527
6547
  });
6528
6548
  setRecallAuditLog(true);
6529
6549
  } else {
@@ -16517,15 +16537,24 @@ var Container$1k = /*#__PURE__*/styled.div(_templateObject$2r || (_templateObjec
16517
16537
 
16518
16538
  var _templateObject$2s, _templateObject2$1P, _templateObject3$17, _templateObject4$F;
16519
16539
  var Details = function Details() {
16520
- var _globalEscData$, _globalEscData$2;
16540
+ var _customerInfo$return_, _globalEscData$, _globalEscData$2;
16521
16541
  // const [orderDetails] = useOrderDetails();
16522
16542
  var _useCustomerInfo = useCustomerInfo(),
16523
16543
  customerInfo = _useCustomerInfo[0];
16524
16544
  var recipient = (customerInfo == null ? void 0 : customerInfo.recipient_name) || '';
16525
16545
  var postcodeShow = (customerInfo == null ? void 0 : customerInfo.postcode) || '';
16546
+ var returnActionString = customerInfo != null && (_customerInfo$return_ = customerInfo.return_action) != null && _customerInfo$return_.length ? customerInfo.return_action.join(', ') + " - " : '';
16526
16547
  var _useGlobalEscData = useGlobalEscData(),
16527
16548
  globalEscData = _useGlobalEscData[0];
16528
- return React.createElement(DetailsContainer, null, React.createElement(Typo, null, "CUSTOMER RETURN - ", recipient, " , ", postcodeShow, " ", (globalEscData == null ? void 0 : globalEscData.length) > 0 && React.createElement(EscInfo, null, ((_globalEscData$ = globalEscData[0]) == null || (_globalEscData$ = _globalEscData$.escalation_type) == null ? void 0 : _globalEscData$.level) + " (" + ((_globalEscData$2 = globalEscData[0]) == null || (_globalEscData$2 = _globalEscData$2.escalation_type) == null ? void 0 : _globalEscData$2.name) + ")")));
16549
+ var isLoading = !recipient && !postcodeShow;
16550
+ return React.createElement(DetailsContainer, null, React.createElement(Typo, null, isLoading ? React.createElement(Skeleton.Input, {
16551
+ active: true,
16552
+ size: "small",
16553
+ style: {
16554
+ width: 350,
16555
+ borderRadius: 8
16556
+ }
16557
+ }) : "RETURN - " + returnActionString + recipient + " - " + postcodeShow, (globalEscData == null ? void 0 : globalEscData.length) > 0 && !isLoading && React.createElement(EscInfo, null, ((_globalEscData$ = globalEscData[0]) == null || (_globalEscData$ = _globalEscData$.escalation_type) == null ? void 0 : _globalEscData$.level) + " (" + ((_globalEscData$2 = globalEscData[0]) == null || (_globalEscData$2 = _globalEscData$2.escalation_type) == null ? void 0 : _globalEscData$2.name) + ")")));
16529
16558
  };
16530
16559
  var DetailsContainer = /*#__PURE__*/styled.div(_templateObject$2s || (_templateObject$2s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 10px;\n > svg {\n transform: scale(0.6);\n }\n"])));
16531
16560
  var Typo = /*#__PURE__*/styled.div(_templateObject2$1P || (_templateObject2$1P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 15px;\n align-items: center;\n font-size: 20px;\n font-style: normal;\n font-weight: 600;\n line-height: 32px;\n text-transform: uppercase;\n margin: 0;\n padding: 0;\n\n @media screen and (max-width: 1220px) {\n font-size: 14px;\n }\n"])));
@@ -18143,7 +18172,7 @@ function OrderView(_ref) {
18143
18172
  useEffect(function () {
18144
18173
  setLoading(loading);
18145
18174
  if (fetchedData && fetchedData.data) {
18146
- var _requiredData$, _requiredData$2, _requiredData$3, _requiredData$4, _requiredData$0$order, _requiredData$5, _requiredData$0$order2, _requiredData$6, _fetchedData$data$;
18175
+ var _requiredData$, _requiredData$2, _requiredData$3, _requiredData$4, _requiredData$0$order, _requiredData$5, _requiredData$0$order2, _requiredData$6, _requiredData$0$retur, _requiredData$7, _fetchedData$data$;
18147
18176
  var requiredData = fetchedData == null ? void 0 : fetchedData.data;
18148
18177
  setOrderDetails(requiredData[0]);
18149
18178
  //@ts-ignore
@@ -18155,7 +18184,8 @@ function OrderView(_ref) {
18155
18184
  setOrderProductId((_requiredData$4 = requiredData[0]) == null ? void 0 : _requiredData$4.id);
18156
18185
  setCustomerInfo({
18157
18186
  recipient_name: (_requiredData$0$order = (_requiredData$5 = requiredData[0]) == null || (_requiredData$5 = _requiredData$5.order_recipient) == null ? void 0 : _requiredData$5.recipient_name) != null ? _requiredData$0$order : null,
18158
- postcode: (_requiredData$0$order2 = (_requiredData$6 = requiredData[0]) == null || (_requiredData$6 = _requiredData$6.order_recipient) == null ? void 0 : _requiredData$6.postcode) != null ? _requiredData$0$order2 : null
18187
+ postcode: (_requiredData$0$order2 = (_requiredData$6 = requiredData[0]) == null || (_requiredData$6 = _requiredData$6.order_recipient) == null ? void 0 : _requiredData$6.postcode) != null ? _requiredData$0$order2 : null,
18188
+ return_action: (_requiredData$0$retur = (_requiredData$7 = requiredData[0]) == null ? void 0 : _requiredData$7.return_action) != null ? _requiredData$0$retur : null
18159
18189
  });
18160
18190
  setPrevOrderDetails(requiredData[0]);
18161
18191
  //dbSync Api call
@@ -18763,7 +18793,7 @@ var ReturnTable$1 = function ReturnTable() {
18763
18793
  //for dev
18764
18794
  navigate("/orders/view/return/filter?" + queryParams.toString());
18765
18795
  //for local
18766
- //navigate(`/filter?${queryParams.toString()}`);
18796
+ // navigate(`/filter?${queryParams.toString()}`);
18767
18797
  };
18768
18798
  //for RTS
18769
18799
  var handleRedirectRTS = function handleRedirectRTS(customerId, RTS) {
@@ -18940,29 +18970,79 @@ var ReturnTable$1 = function ReturnTable() {
18940
18970
  }
18941
18971
  }, React.createElement(ColumStyle, null, React.createElement(GreyBox, null, (_rowKey$PENDING = rowKey == null ? void 0 : rowKey.PENDING) != null ? _rowKey$PENDING : 0))), React.createElement("td", {
18942
18972
  style: {
18973
+ color: (rowKey == null ? void 0 : rowKey['CLAIMS PAID']) > 0 ? '#0099ff' : 'inherit',
18974
+ fontWeight: (rowKey == null ? void 0 : rowKey['CLAIMS PAID']) > 0 ? 600 : 'normal',
18975
+ cursor: (rowKey == null ? void 0 : rowKey['CLAIMS PAID']) > 0 ? 'pointer' : 'default',
18943
18976
  textAlign: 'center'
18977
+ },
18978
+ onClick: (rowKey == null ? void 0 : rowKey['CLAIMS PAID']) > 0 ? function () {
18979
+ return handleRedirectRTS(rowKey == null ? void 0 : rowKey.customer_id, 'CLAIMS PAID');
18980
+ } : undefined
18981
+ }, React.createElement(ColumStyle, null, React.createElement(GreyBox, {
18982
+ style: {
18983
+ backgroundColor: (rowKey == null ? void 0 : rowKey['CLAIMS PAID']) > 0 ? 'rgba(99, 150, 229, 0.1)' : 'rgba(153, 153, 153, 0.1)'
18944
18984
  }
18945
- }, React.createElement(ColumStyle, null, React.createElement(GreyBox, null, (_rowKey$CLAIMSPAID = rowKey == null ? void 0 : rowKey['CLAIMS PAID']) != null ? _rowKey$CLAIMSPAID : 0))), React.createElement("td", {
18985
+ }, (_rowKey$CLAIMSPAID = rowKey == null ? void 0 : rowKey['CLAIMS PAID']) != null ? _rowKey$CLAIMSPAID : 0))), React.createElement("td", {
18946
18986
  style: {
18987
+ color: (rowKey == null ? void 0 : rowKey.DISPOSE) > 0 ? '#0099ff' : 'inherit',
18988
+ fontWeight: (rowKey == null ? void 0 : rowKey.DISPOSE) > 0 ? 600 : 'normal',
18989
+ cursor: (rowKey == null ? void 0 : rowKey.DISPOSE) > 0 ? 'pointer' : 'default',
18947
18990
  textAlign: 'center'
18991
+ },
18992
+ onClick: (rowKey == null ? void 0 : rowKey.DISPOSE) > 0 ? function () {
18993
+ return handleRedirectRTS(rowKey == null ? void 0 : rowKey.customer_id, 'DISPOSE');
18994
+ } : undefined
18995
+ }, React.createElement(ColumStyle, null, React.createElement(GreyBox, {
18996
+ style: {
18997
+ backgroundColor: (rowKey == null ? void 0 : rowKey.DISPOSE) > 0 ? 'rgba(99, 150, 229, 0.1)' : 'rgba(153, 153, 153, 0.1)'
18948
18998
  }
18949
- }, React.createElement(ColumStyle, null, React.createElement(GreyBox, null, (_rowKey$DISPOSE = rowKey == null ? void 0 : rowKey.DISPOSE) != null ? _rowKey$DISPOSE : 0))), React.createElement("td", {
18999
+ }, (_rowKey$DISPOSE = rowKey == null ? void 0 : rowKey.DISPOSE) != null ? _rowKey$DISPOSE : 0))), React.createElement("td", {
18950
19000
  style: {
19001
+ color: (rowKey == null ? void 0 : rowKey['RE-ALLOCATE']) > 0 ? '#0099ff' : 'inherit',
19002
+ fontWeight: (rowKey == null ? void 0 : rowKey['RE-ALLOCATE']) > 0 ? 600 : 'normal',
19003
+ cursor: (rowKey == null ? void 0 : rowKey['RE-ALLOCATE']) > 0 ? 'pointer' : 'default',
18951
19004
  textAlign: 'center'
19005
+ },
19006
+ onClick: (rowKey == null ? void 0 : rowKey['RE-ALLOCATE']) > 0 ? function () {
19007
+ return handleRedirectRTS(rowKey == null ? void 0 : rowKey.customer_id, 'RE-ALLOCATE');
19008
+ } : undefined
19009
+ }, React.createElement(ColumStyle, null, React.createElement(GreyBox, {
19010
+ style: {
19011
+ backgroundColor: (rowKey == null ? void 0 : rowKey['RE-ALLOCATE']) > 0 ? 'rgba(99, 150, 229, 0.1)' : 'rgba(153, 153, 153, 0.1)'
18952
19012
  }
18953
- }, React.createElement(ColumStyle, null, React.createElement(GreyBox, null, (_rowKey$REALLOCATE = rowKey == null ? void 0 : rowKey['RE-ALLOCATE']) != null ? _rowKey$REALLOCATE : 0))), React.createElement("td", {
19013
+ }, (_rowKey$REALLOCATE = rowKey == null ? void 0 : rowKey['RE-ALLOCATE']) != null ? _rowKey$REALLOCATE : 0))), React.createElement("td", {
18954
19014
  style: {
18955
19015
  textAlign: 'center'
18956
19016
  }
18957
19017
  }, React.createElement(ColumStyle, null, React.createElement(GreyBox, null, (_rowKey$REDEL = rowKey == null ? void 0 : rowKey['RE-DEL']) != null ? _rowKey$REDEL : 0))), React.createElement("td", {
18958
19018
  style: {
19019
+ color: (rowKey == null ? void 0 : rowKey.RECYCLE) > 0 ? '#0099ff' : 'inherit',
19020
+ fontWeight: (rowKey == null ? void 0 : rowKey.RECYCLE) > 0 ? 600 : 'normal',
19021
+ cursor: (rowKey == null ? void 0 : rowKey.RECYCLE) > 0 ? 'pointer' : 'default',
18959
19022
  textAlign: 'center'
19023
+ },
19024
+ onClick: (rowKey == null ? void 0 : rowKey.RECYCLE) > 0 ? function () {
19025
+ return handleRedirectRTS(rowKey == null ? void 0 : rowKey.customer_id, 'RECYCLE');
19026
+ } : undefined
19027
+ }, React.createElement(ColumStyle, null, React.createElement(GreyBox, {
19028
+ style: {
19029
+ backgroundColor: (rowKey == null ? void 0 : rowKey.RECYCLE) > 0 ? 'rgba(99, 150, 229, 0.1)' : 'rgba(153, 153, 153, 0.1)'
18960
19030
  }
18961
- }, React.createElement(ColumStyle, null, React.createElement(GreyBox, null, (_rowKey$RECYCLE = rowKey == null ? void 0 : rowKey.RECYCLE) != null ? _rowKey$RECYCLE : 0))), React.createElement("td", {
19031
+ }, (_rowKey$RECYCLE = rowKey == null ? void 0 : rowKey.RECYCLE) != null ? _rowKey$RECYCLE : 0))), React.createElement("td", {
18962
19032
  style: {
19033
+ color: (rowKey == null ? void 0 : rowKey.UNKNOWN) > 0 ? '#0099ff' : 'inherit',
19034
+ fontWeight: (rowKey == null ? void 0 : rowKey.UNKNOWN) > 0 ? 600 : 'normal',
19035
+ cursor: (rowKey == null ? void 0 : rowKey.UNKNOWN) > 0 ? 'pointer' : 'default',
18963
19036
  textAlign: 'center'
19037
+ },
19038
+ onClick: (rowKey == null ? void 0 : rowKey.UNKNOWN) > 0 ? function () {
19039
+ return handleRedirectRTS(rowKey == null ? void 0 : rowKey.customer_id, 'UNKNOWN');
19040
+ } : undefined
19041
+ }, React.createElement(ColumStyle, null, React.createElement(GreyBox, {
19042
+ style: {
19043
+ backgroundColor: (rowKey == null ? void 0 : rowKey.UNKNOWN) > 0 ? 'rgba(99, 150, 229, 0.1)' : 'rgba(153, 153, 153, 0.1)'
18964
19044
  }
18965
- }, React.createElement(ColumStyle, null, React.createElement(GreyBox, null, (_rowKey$UNKNOWN = rowKey == null ? void 0 : rowKey.UNKNOWN) != null ? _rowKey$UNKNOWN : 0))));
19045
+ }, (_rowKey$UNKNOWN = rowKey == null ? void 0 : rowKey.UNKNOWN) != null ? _rowKey$UNKNOWN : 0))));
18966
19046
  };
18967
19047
  if (!(key != null && key.children) || (key == null || (_key$children = key.children) == null ? void 0 : _key$children.length) === 0) {
18968
19048
  return React.createElement(React.Fragment, {