@bjsdistribution/dms-client-return 0.0.70 → 0.0.71

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.
@@ -62,7 +62,7 @@ function _objectWithoutPropertiesLoose(r, e) {
62
62
  if (null == r) return {};
63
63
  var t = {};
64
64
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
65
- if (e.includes(n)) continue;
65
+ if (e.indexOf(n) >= 0) continue;
66
66
  t[n] = r[n];
67
67
  }
68
68
  return t;
@@ -2838,6 +2838,11 @@ var OrderTable = function OrderTable() {
2838
2838
  color: '#845ADF',
2839
2839
  background: 'rgba(132, 90, 223, 0.15)'
2840
2840
  };
2841
+ case 'Awaiting':
2842
+ return {
2843
+ color: '#845ADF',
2844
+ background: 'rgba(132, 90, 223, 0.15)'
2845
+ };
2841
2846
  case 'Completed':
2842
2847
  return {
2843
2848
  color: '#1F9254',
@@ -2955,7 +2960,8 @@ var OrderTable = function OrderTable() {
2955
2960
  cancelled: 'Cancelled',
2956
2961
  OO: 'On Hold',
2957
2962
  SC: 'Sub-Contracted',
2958
- 'awaiting route': 'Awaiting route',
2963
+ 'awaiting route': 'Awaiting',
2964
+ 'awaiting confirmation': 'Awaiting',
2959
2965
  completed: 'completed',
2960
2966
  outstanding: 'Outstanding',
2961
2967
  routed: 'Routed'
@@ -3453,7 +3459,8 @@ var ReturnOrderFilter = function ReturnOrderFilter() {
3453
3459
  placeholder: "Status of Order",
3454
3460
  onChange: handleStatusOfOrder,
3455
3461
  style: {
3456
- width: '145px'
3462
+ minWidth: '150px',
3463
+ width: 'auto'
3457
3464
  },
3458
3465
  value: statusOrder,
3459
3466
  onClear: handleClear,
@@ -3465,12 +3472,12 @@ var ReturnOrderFilter = function ReturnOrderFilter() {
3465
3472
  }, React__default.createElement(ClientIcon, null)), React__default.createElement(StyledAntSelect$2, null, React__default.createElement(antd.Select, {
3466
3473
  options: clientOptions,
3467
3474
  className: "custom-select",
3468
- placeholder: "Client",
3475
+ placeholder: "Clients",
3469
3476
  onChange: handleClientChange,
3470
3477
  value: selectedClient,
3471
3478
  style: {
3472
- width: '125px',
3473
- border: 'none'
3479
+ minWidth: '150px',
3480
+ width: 'auto'
3474
3481
  },
3475
3482
  allowClear: true,
3476
3483
  onClear: handleClearClient
@@ -3837,7 +3844,7 @@ function SpokePhoneIcon() {
3837
3844
 
3838
3845
  function useCopyToClipboard() {
3839
3846
  var copy = /*#__PURE__*/function () {
3840
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
3847
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
3841
3848
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3842
3849
  while (1) switch (_context.prev = _context.next) {
3843
3850
  case 0:
@@ -4482,14 +4489,15 @@ function DeliveryDate() {
4482
4489
  }
4483
4490
  };
4484
4491
  return React__default.createElement(MainContainer$2, null, React__default.createElement(dmsComponentLibrary.Label, {
4485
- label: "Delivery Date"
4492
+ label: "Delivery Date next"
4486
4493
  }), React__default.createElement(antd.DatePicker, {
4487
4494
  onChange: onChange,
4488
4495
  value: actionDate === null ? actionDate : dayjs(actionDate),
4489
4496
  format: "DD/MM/YY",
4490
4497
  style: {
4491
4498
  borderRadius: '25px'
4492
- }
4499
+ },
4500
+ allowClear: false
4493
4501
  }));
4494
4502
  }
4495
4503
  var MainContainer$2 = /*#__PURE__*/styled__default.div(_templateObject$C || (_templateObject$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
@@ -4809,7 +4817,7 @@ function ServiceTypeDropdown() {
4809
4817
  className: 'disabled'
4810
4818
  }));
4811
4819
  }
4812
- var Container$s = /*#__PURE__*/styled__default.div(_templateObject$N || (_templateObject$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4820
+ var Container$s = /*#__PURE__*/styled__default.div(_templateObject$N || (_templateObject$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n // flex: 1;\n min-width: 250px;\n"])));
4813
4821
  var StyledSelectDropdown$1 = /*#__PURE__*/styled__default(dmsComponentLibrary.SelectDropdown)(_templateObject2$C || (_templateObject2$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &.disabled {\n cursor: not-allowed !important;\n opacity: 0.7;\n }\n"])));
4814
4822
 
4815
4823
  var _templateObject$O, _templateObject2$D;
@@ -4852,7 +4860,7 @@ function DeliveryPointDropdown() {
4852
4860
  className: 'disabled'
4853
4861
  }));
4854
4862
  }
4855
- var Container$t = /*#__PURE__*/styled__default.div(_templateObject$O || (_templateObject$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4863
+ var Container$t = /*#__PURE__*/styled__default.div(_templateObject$O || (_templateObject$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n // flex: 1;\n min-width: 250px;\n"])));
4856
4864
  var StyledSelectDropdown$2 = /*#__PURE__*/styled__default(dmsComponentLibrary.SelectDropdown)(_templateObject2$D || (_templateObject2$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &.disabled {\n pointer-events: none;\n opacity: 0.7;\n }\n"])));
4857
4865
 
4858
4866
  var _templateObject$P;
@@ -5230,7 +5238,7 @@ function useUpdateOrder() {
5230
5238
  var _useUpdateApiCall = useUpdateApiCall(),
5231
5239
  setCallApi = _useUpdateApiCall[1]; //single detail
5232
5240
  var update = /*#__PURE__*/function () {
5233
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
5241
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
5234
5242
  var endpoint, signal, requestOptions, response, json;
5235
5243
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5236
5244
  while (1) switch (_context.prev = _context.next) {
@@ -5338,7 +5346,7 @@ function OrderDetailsFooter() {
5338
5346
  return !isSame;
5339
5347
  };
5340
5348
  var onSave = /*#__PURE__*/function () {
5341
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5349
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5342
5350
  var _response$data;
5343
5351
  var payload, response, _response$data$, _response$data$2;
5344
5352
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -5456,7 +5464,7 @@ function AddNote() {
5456
5464
  notificationData = _useState2[0],
5457
5465
  setNotificationData = _useState2[1];
5458
5466
  var saveNote = /*#__PURE__*/function () {
5459
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5467
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5460
5468
  var endpoint, payload, response;
5461
5469
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5462
5470
  while (1) switch (_context.prev = _context.next) {
@@ -5959,7 +5967,7 @@ var tableColumns = [{
5959
5967
  function useGetEventNotes() {
5960
5968
  var ssoToken = getCookie('id_token');
5961
5969
  var perform = /*#__PURE__*/function () {
5962
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5970
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5963
5971
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
5964
5972
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5965
5973
  while (1) switch (_context.prev = _context.next) {
@@ -6044,7 +6052,7 @@ function SystemLogs() {
6044
6052
  setNotesData = _useEventNotesData[1];
6045
6053
  // const gsitId = orderDetails?.gsit_order_id;
6046
6054
  var fetchReminderData = /*#__PURE__*/function () {
6047
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6055
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6048
6056
  var result;
6049
6057
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6050
6058
  while (1) switch (_context.prev = _context.next) {
@@ -7907,6 +7915,7 @@ function DeliveryDate$1() {
7907
7915
  var today = new Date();
7908
7916
  var tomorrow = new Date(today);
7909
7917
  tomorrow.setDate(today.getDate() + 1);
7918
+ //confirm popouop
7910
7919
  return React__default.createElement(Container$Z, null, React__default.createElement(Label$a, null, "Delivery Date"), React__default.createElement(antd.DatePicker, {
7911
7920
  onChange: handleDateChange,
7912
7921
  format: "DD/MM/YYYY",
@@ -7914,7 +7923,8 @@ function DeliveryDate$1() {
7914
7923
  style: {
7915
7924
  borderRadius: '15px'
7916
7925
  },
7917
- minDate: dayjs(tomorrow)
7926
+ minDate: dayjs(tomorrow),
7927
+ allowClear: false
7918
7928
  }));
7919
7929
  }
7920
7930
  var Label$a = /*#__PURE__*/styled__default.label(_templateObject$1A || (_templateObject$1A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
@@ -8248,7 +8258,7 @@ function ConfirmOrder() {
8248
8258
  return Object.keys(obj).length === 1 && obj.hasOwnProperty('id');
8249
8259
  }
8250
8260
  var ConfirmOrder = /*#__PURE__*/function () {
8251
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8261
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8252
8262
  var keysToRemovefromOrders, filteredOrderDetails, filteredPrevOrderDetails, payload, notUpdateOrder, _response$data, _response, formattedDate;
8253
8263
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8254
8264
  while (1) switch (_context.prev = _context.next) {
@@ -8324,14 +8334,7 @@ function ConfirmOrder() {
8324
8334
  onSubmit: ConfirmOrder,
8325
8335
  submitBtnTitle: "Save Details",
8326
8336
  isSubmitDisabled: errorFound()
8327
- }, React__default.createElement(ContentContainer$4, null, React__default.createElement(dmsComponentLibrary.Alert, {
8328
- description: "",
8329
- onClose: function onClose() {},
8330
- type: "info",
8331
- title: "There is Orders with identical postcodes that are yet to be delivered.View Orders",
8332
- showOkButton: false,
8333
- showCloseIcon: false
8334
- }), React__default.createElement(Wrapper$j, null, React__default.createElement(CustomerInformation, null), React__default.createElement(SlotAndInstructions, null)), React__default.createElement(ProductTable$1, null), React__default.createElement(NotesTable, null)));
8337
+ }, React__default.createElement(ContentContainer$4, null, React__default.createElement(Wrapper$j, null, React__default.createElement(CustomerInformation, null), React__default.createElement(SlotAndInstructions, null)), React__default.createElement(ProductTable$1, null), React__default.createElement(NotesTable, null)));
8335
8338
  }
8336
8339
  var Wrapper$j = /*#__PURE__*/styled__default.div(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
8337
8340
  var ContentContainer$4 = /*#__PURE__*/styled__default.div(_templateObject2$1k || (_templateObject2$1k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* display: flex; */\n padding: 15px 12px;\n flex: 1 0 0;\n border-radius: 15px;\n background: white;\n display: flex;\n flex-direction: column;\n gap: 15px;\n overflow: auto;\n min-height: 500px;\n overflow-x: hidden;\n max-height: 500px;\n scrollbar-width: thin;\n"])));
@@ -9095,7 +9098,7 @@ function useFetchSingleReminderData() {
9095
9098
  setLoading = _useFlagsLoading[1];
9096
9099
  var ssoToken = getCookie('id_token');
9097
9100
  var res = /*#__PURE__*/function () {
9098
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9101
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9099
9102
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
9100
9103
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9101
9104
  while (1) switch (_context.prev = _context.next) {
@@ -9194,7 +9197,7 @@ function useUpdateReminder() {
9194
9197
  var _useFlagsLoading = useFlagsLoading(),
9195
9198
  setLoading = _useFlagsLoading[1];
9196
9199
  var update = /*#__PURE__*/function () {
9197
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9200
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9198
9201
  var endpoint, requestOptions, response, json;
9199
9202
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9200
9203
  while (1) switch (_context.prev = _context.next) {
@@ -9264,7 +9267,7 @@ function useFetchReminders() {
9264
9267
  var _useOrderDetails = useOrderDetails(),
9265
9268
  OrderData = _useOrderDetails[0];
9266
9269
  var perform = /*#__PURE__*/function () {
9267
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9270
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9268
9271
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
9269
9272
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9270
9273
  while (1) switch (_context.prev = _context.next) {
@@ -9372,7 +9375,7 @@ var ViewReminderModal = function ViewReminderModal() {
9372
9375
  setCurrentAction(undefined);
9373
9376
  };
9374
9377
  var fetchReminderData = /*#__PURE__*/function () {
9375
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9378
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9376
9379
  var result;
9377
9380
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9378
9381
  while (1) switch (_context.prev = _context.next) {
@@ -9445,7 +9448,7 @@ var ViewReminderModal = function ViewReminderModal() {
9445
9448
  }));
9446
9449
  };
9447
9450
  var handleEditReminder = /*#__PURE__*/function () {
9448
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
9451
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
9449
9452
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
9450
9453
  while (1) switch (_context2.prev = _context2.next) {
9451
9454
  case 0:
@@ -9766,7 +9769,7 @@ function useCreateReminder() {
9766
9769
  var _useFlagsLoading = useFlagsLoading(),
9767
9770
  setLoading = _useFlagsLoading[1];
9768
9771
  var create = /*#__PURE__*/function () {
9769
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9772
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9770
9773
  var endpoint, requestOptions, response, json;
9771
9774
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9772
9775
  while (1) switch (_context.prev = _context.next) {
@@ -9844,7 +9847,7 @@ function useFetchUnresolvedTasks() {
9844
9847
  var _useOrderDetails = useOrderDetails(),
9845
9848
  OrderData = _useOrderDetails[0];
9846
9849
  var perform = /*#__PURE__*/function () {
9847
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9850
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9848
9851
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
9849
9852
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9850
9853
  while (1) switch (_context.prev = _context.next) {
@@ -9994,7 +9997,7 @@ function TaskReminderModal() {
9994
9997
  setReminderPayload(initialValue);
9995
9998
  };
9996
9999
  var handleReminderSubmit = /*#__PURE__*/function () {
9997
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10000
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9998
10001
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9999
10002
  while (1) switch (_context.prev = _context.next) {
10000
10003
  case 0:
@@ -10044,7 +10047,7 @@ function OrderLock() {
10044
10047
  setCurrentAction(undefined);
10045
10048
  };
10046
10049
  var onComplete = /*#__PURE__*/function () {
10047
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10050
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10048
10051
  var isLocked, payload, response;
10049
10052
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10050
10053
  while (1) switch (_context.prev = _context.next) {
@@ -10091,7 +10094,7 @@ function useUpdateFlag() {
10091
10094
  var _useFlagsLoading = useFlagsLoading(),
10092
10095
  setLoading = _useFlagsLoading[1];
10093
10096
  var create = /*#__PURE__*/function () {
10094
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
10097
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
10095
10098
  var endpoint, requestOptions, response, json;
10096
10099
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10097
10100
  while (1) switch (_context.prev = _context.next) {
@@ -10183,7 +10186,7 @@ function HeaderSection() {
10183
10186
  setIsModalOpen(false);
10184
10187
  };
10185
10188
  var saveButton = /*#__PURE__*/function () {
10186
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10189
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10187
10190
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10188
10191
  while (1) switch (_context.prev = _context.next) {
10189
10192
  case 0:
@@ -10359,7 +10362,7 @@ function ActionSection() {
10359
10362
  setLoading = _useFlagsLoading[1];
10360
10363
  var updateFlag = useUpdateFlag();
10361
10364
  var onSubmit = /*#__PURE__*/function () {
10362
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10365
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10363
10366
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10364
10367
  while (1) switch (_context.prev = _context.next) {
10365
10368
  case 0:
@@ -10466,7 +10469,7 @@ function useFetchSingleFlagsData() {
10466
10469
  var ssoToken = getCookie('id_token');
10467
10470
  console.log(loading, 'loading loading');
10468
10471
  var res = /*#__PURE__*/function () {
10469
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10472
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10470
10473
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
10471
10474
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10472
10475
  while (1) switch (_context.prev = _context.next) {
@@ -10597,7 +10600,7 @@ function ViewFlag() {
10597
10600
  }
10598
10601
  }, [staticData]);
10599
10602
  var fetchAndSetSingleFlagData = /*#__PURE__*/function () {
10600
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10603
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10601
10604
  var result;
10602
10605
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10603
10606
  while (1) switch (_context.prev = _context.next) {
@@ -10781,7 +10784,7 @@ function useSystemLogs() {
10781
10784
  var _useOrderProductSyste = useOrderProductSystemLogs(),
10782
10785
  setSystemLogsEvents = _useOrderProductSyste[1];
10783
10786
  var perform = /*#__PURE__*/function () {
10784
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10787
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10785
10788
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
10786
10789
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10787
10790
  while (1) switch (_context.prev = _context.next) {
@@ -11386,7 +11389,7 @@ function OrderView() {
11386
11389
  var _useOrderProductSyste = useOrderProductSystemLogs(),
11387
11390
  setSystemLogsEvents = _useOrderProductSyste[1];
11388
11391
  var fetchReminderData = /*#__PURE__*/function () {
11389
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11392
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11390
11393
  var result;
11391
11394
  return _regeneratorRuntime().wrap(function _callee$(_context) {
11392
11395
  while (1) switch (_context.prev = _context.next) {
@@ -11908,7 +11911,7 @@ function ReturnClient() {
11908
11911
  };
11909
11912
  var paths = splitPath(location.pathname);
11910
11913
  React.useEffect(function () {
11911
- if (paths[paths.length - 1] === 'orders/view/return') {
11914
+ if (paths.join('/') === 'orders/view/return') {
11912
11915
  setActionTypeOptions([]);
11913
11916
  setLocationOptions([]);
11914
11917
  setSelectedClient(null);
@@ -11916,11 +11919,6 @@ function ReturnClient() {
11916
11919
  setSelectedLocationValue(null);
11917
11920
  }
11918
11921
  }, [location.pathname, searchParams]);
11919
- // useEffect(() => {
11920
- // if (selectedClientId) {
11921
- // navigate(`filter/${selectedClientId}`);
11922
- // }
11923
- // }, [selectedClientId]);
11924
11922
  //API for client data
11925
11923
  var _useApiHook = dmsComponentLibrary.useApiHook({
11926
11924
  endpoint: "/return_orders/customers/",