@bjsdistribution/dms-client-return 0.0.70 → 0.0.72

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.
@@ -54,7 +54,7 @@ function _objectWithoutPropertiesLoose(r, e) {
54
54
  if (null == r) return {};
55
55
  var t = {};
56
56
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
57
- if (e.includes(n)) continue;
57
+ if (e.indexOf(n) >= 0) continue;
58
58
  t[n] = r[n];
59
59
  }
60
60
  return t;
@@ -2830,6 +2830,11 @@ var OrderTable = function OrderTable() {
2830
2830
  color: '#845ADF',
2831
2831
  background: 'rgba(132, 90, 223, 0.15)'
2832
2832
  };
2833
+ case 'Awaiting':
2834
+ return {
2835
+ color: '#845ADF',
2836
+ background: 'rgba(132, 90, 223, 0.15)'
2837
+ };
2833
2838
  case 'Completed':
2834
2839
  return {
2835
2840
  color: '#1F9254',
@@ -2947,7 +2952,8 @@ var OrderTable = function OrderTable() {
2947
2952
  cancelled: 'Cancelled',
2948
2953
  OO: 'On Hold',
2949
2954
  SC: 'Sub-Contracted',
2950
- 'awaiting route': 'Awaiting route',
2955
+ 'awaiting route': 'Awaiting',
2956
+ 'awaiting confirmation': 'Awaiting',
2951
2957
  completed: 'completed',
2952
2958
  outstanding: 'Outstanding',
2953
2959
  routed: 'Routed'
@@ -3445,7 +3451,8 @@ var ReturnOrderFilter = function ReturnOrderFilter() {
3445
3451
  placeholder: "Status of Order",
3446
3452
  onChange: handleStatusOfOrder,
3447
3453
  style: {
3448
- width: '145px'
3454
+ minWidth: '150px',
3455
+ width: 'auto'
3449
3456
  },
3450
3457
  value: statusOrder,
3451
3458
  onClear: handleClear,
@@ -3457,12 +3464,12 @@ var ReturnOrderFilter = function ReturnOrderFilter() {
3457
3464
  }, React.createElement(ClientIcon, null)), React.createElement(StyledAntSelect$2, null, React.createElement(Select, {
3458
3465
  options: clientOptions,
3459
3466
  className: "custom-select",
3460
- placeholder: "Client",
3467
+ placeholder: "Clients",
3461
3468
  onChange: handleClientChange,
3462
3469
  value: selectedClient,
3463
3470
  style: {
3464
- width: '125px',
3465
- border: 'none'
3471
+ minWidth: '150px',
3472
+ width: 'auto'
3466
3473
  },
3467
3474
  allowClear: true,
3468
3475
  onClear: handleClearClient
@@ -3829,7 +3836,7 @@ function SpokePhoneIcon() {
3829
3836
 
3830
3837
  function useCopyToClipboard() {
3831
3838
  var copy = /*#__PURE__*/function () {
3832
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
3839
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
3833
3840
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3834
3841
  while (1) switch (_context.prev = _context.next) {
3835
3842
  case 0:
@@ -4474,14 +4481,15 @@ function DeliveryDate() {
4474
4481
  }
4475
4482
  };
4476
4483
  return React.createElement(MainContainer$2, null, React.createElement(Label$h, {
4477
- label: "Delivery Date"
4484
+ label: "Delivery Date next"
4478
4485
  }), React.createElement(DatePicker, {
4479
4486
  onChange: onChange,
4480
4487
  value: actionDate === null ? actionDate : dayjs(actionDate),
4481
4488
  format: "DD/MM/YY",
4482
4489
  style: {
4483
4490
  borderRadius: '25px'
4484
- }
4491
+ },
4492
+ allowClear: false
4485
4493
  }));
4486
4494
  }
4487
4495
  var MainContainer$2 = /*#__PURE__*/styled.div(_templateObject$C || (_templateObject$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
@@ -4801,7 +4809,7 @@ function ServiceTypeDropdown() {
4801
4809
  className: 'disabled'
4802
4810
  }));
4803
4811
  }
4804
- var Container$s = /*#__PURE__*/styled.div(_templateObject$N || (_templateObject$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4812
+ var Container$s = /*#__PURE__*/styled.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"])));
4805
4813
  var StyledSelectDropdown$1 = /*#__PURE__*/styled(SelectDropdown)(_templateObject2$C || (_templateObject2$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &.disabled {\n cursor: not-allowed !important;\n opacity: 0.7;\n }\n"])));
4806
4814
 
4807
4815
  var _templateObject$O, _templateObject2$D;
@@ -4844,7 +4852,7 @@ function DeliveryPointDropdown() {
4844
4852
  className: 'disabled'
4845
4853
  }));
4846
4854
  }
4847
- var Container$t = /*#__PURE__*/styled.div(_templateObject$O || (_templateObject$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4855
+ var Container$t = /*#__PURE__*/styled.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"])));
4848
4856
  var StyledSelectDropdown$2 = /*#__PURE__*/styled(SelectDropdown)(_templateObject2$D || (_templateObject2$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &.disabled {\n pointer-events: none;\n opacity: 0.7;\n }\n"])));
4849
4857
 
4850
4858
  var _templateObject$P;
@@ -5222,7 +5230,7 @@ function useUpdateOrder() {
5222
5230
  var _useUpdateApiCall = useUpdateApiCall(),
5223
5231
  setCallApi = _useUpdateApiCall[1]; //single detail
5224
5232
  var update = /*#__PURE__*/function () {
5225
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
5233
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
5226
5234
  var endpoint, signal, requestOptions, response, json;
5227
5235
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5228
5236
  while (1) switch (_context.prev = _context.next) {
@@ -5330,7 +5338,7 @@ function OrderDetailsFooter() {
5330
5338
  return !isSame;
5331
5339
  };
5332
5340
  var onSave = /*#__PURE__*/function () {
5333
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5341
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5334
5342
  var _response$data;
5335
5343
  var payload, response, _response$data$, _response$data$2;
5336
5344
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -5448,7 +5456,7 @@ function AddNote() {
5448
5456
  notificationData = _useState2[0],
5449
5457
  setNotificationData = _useState2[1];
5450
5458
  var saveNote = /*#__PURE__*/function () {
5451
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5459
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5452
5460
  var endpoint, payload, response;
5453
5461
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5454
5462
  while (1) switch (_context.prev = _context.next) {
@@ -5951,7 +5959,7 @@ var tableColumns = [{
5951
5959
  function useGetEventNotes() {
5952
5960
  var ssoToken = getCookie('id_token');
5953
5961
  var perform = /*#__PURE__*/function () {
5954
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5962
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5955
5963
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
5956
5964
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5957
5965
  while (1) switch (_context.prev = _context.next) {
@@ -6036,7 +6044,7 @@ function SystemLogs() {
6036
6044
  setNotesData = _useEventNotesData[1];
6037
6045
  // const gsitId = orderDetails?.gsit_order_id;
6038
6046
  var fetchReminderData = /*#__PURE__*/function () {
6039
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6047
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6040
6048
  var result;
6041
6049
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6042
6050
  while (1) switch (_context.prev = _context.next) {
@@ -7899,6 +7907,7 @@ function DeliveryDate$1() {
7899
7907
  var today = new Date();
7900
7908
  var tomorrow = new Date(today);
7901
7909
  tomorrow.setDate(today.getDate() + 1);
7910
+ //confirm popouop
7902
7911
  return React.createElement(Container$Z, null, React.createElement(Label$a, null, "Delivery Date"), React.createElement(DatePicker, {
7903
7912
  onChange: handleDateChange,
7904
7913
  format: "DD/MM/YYYY",
@@ -7906,7 +7915,8 @@ function DeliveryDate$1() {
7906
7915
  style: {
7907
7916
  borderRadius: '15px'
7908
7917
  },
7909
- minDate: dayjs(tomorrow)
7918
+ minDate: dayjs(tomorrow),
7919
+ allowClear: false
7910
7920
  }));
7911
7921
  }
7912
7922
  var Label$a = /*#__PURE__*/styled.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"])));
@@ -8240,7 +8250,7 @@ function ConfirmOrder() {
8240
8250
  return Object.keys(obj).length === 1 && obj.hasOwnProperty('id');
8241
8251
  }
8242
8252
  var ConfirmOrder = /*#__PURE__*/function () {
8243
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8253
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8244
8254
  var keysToRemovefromOrders, filteredOrderDetails, filteredPrevOrderDetails, payload, notUpdateOrder, _response$data, _response, formattedDate;
8245
8255
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8246
8256
  while (1) switch (_context.prev = _context.next) {
@@ -8316,14 +8326,7 @@ function ConfirmOrder() {
8316
8326
  onSubmit: ConfirmOrder,
8317
8327
  submitBtnTitle: "Save Details",
8318
8328
  isSubmitDisabled: errorFound()
8319
- }, React.createElement(ContentContainer$4, null, React.createElement(Alert, {
8320
- description: "",
8321
- onClose: function onClose() {},
8322
- type: "info",
8323
- title: "There is Orders with identical postcodes that are yet to be delivered.View Orders",
8324
- showOkButton: false,
8325
- showCloseIcon: false
8326
- }), React.createElement(Wrapper$j, null, React.createElement(CustomerInformation, null), React.createElement(SlotAndInstructions, null)), React.createElement(ProductTable$1, null), React.createElement(NotesTable, null)));
8329
+ }, React.createElement(ContentContainer$4, null, React.createElement(Wrapper$j, null, React.createElement(CustomerInformation, null), React.createElement(SlotAndInstructions, null)), React.createElement(ProductTable$1, null), React.createElement(NotesTable, null)));
8327
8330
  }
8328
8331
  var Wrapper$j = /*#__PURE__*/styled.div(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
8329
8332
  var ContentContainer$4 = /*#__PURE__*/styled.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"])));
@@ -9087,7 +9090,7 @@ function useFetchSingleReminderData() {
9087
9090
  setLoading = _useFlagsLoading[1];
9088
9091
  var ssoToken = getCookie('id_token');
9089
9092
  var res = /*#__PURE__*/function () {
9090
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9093
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9091
9094
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
9092
9095
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9093
9096
  while (1) switch (_context.prev = _context.next) {
@@ -9186,7 +9189,7 @@ function useUpdateReminder() {
9186
9189
  var _useFlagsLoading = useFlagsLoading(),
9187
9190
  setLoading = _useFlagsLoading[1];
9188
9191
  var update = /*#__PURE__*/function () {
9189
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9192
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9190
9193
  var endpoint, requestOptions, response, json;
9191
9194
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9192
9195
  while (1) switch (_context.prev = _context.next) {
@@ -9256,7 +9259,7 @@ function useFetchReminders() {
9256
9259
  var _useOrderDetails = useOrderDetails(),
9257
9260
  OrderData = _useOrderDetails[0];
9258
9261
  var perform = /*#__PURE__*/function () {
9259
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9262
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9260
9263
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
9261
9264
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9262
9265
  while (1) switch (_context.prev = _context.next) {
@@ -9364,7 +9367,7 @@ var ViewReminderModal = function ViewReminderModal() {
9364
9367
  setCurrentAction(undefined);
9365
9368
  };
9366
9369
  var fetchReminderData = /*#__PURE__*/function () {
9367
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9370
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9368
9371
  var result;
9369
9372
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9370
9373
  while (1) switch (_context.prev = _context.next) {
@@ -9437,7 +9440,7 @@ var ViewReminderModal = function ViewReminderModal() {
9437
9440
  }));
9438
9441
  };
9439
9442
  var handleEditReminder = /*#__PURE__*/function () {
9440
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
9443
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
9441
9444
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
9442
9445
  while (1) switch (_context2.prev = _context2.next) {
9443
9446
  case 0:
@@ -9758,7 +9761,7 @@ function useCreateReminder() {
9758
9761
  var _useFlagsLoading = useFlagsLoading(),
9759
9762
  setLoading = _useFlagsLoading[1];
9760
9763
  var create = /*#__PURE__*/function () {
9761
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9764
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9762
9765
  var endpoint, requestOptions, response, json;
9763
9766
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9764
9767
  while (1) switch (_context.prev = _context.next) {
@@ -9836,7 +9839,7 @@ function useFetchUnresolvedTasks() {
9836
9839
  var _useOrderDetails = useOrderDetails(),
9837
9840
  OrderData = _useOrderDetails[0];
9838
9841
  var perform = /*#__PURE__*/function () {
9839
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9842
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9840
9843
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
9841
9844
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9842
9845
  while (1) switch (_context.prev = _context.next) {
@@ -9986,7 +9989,7 @@ function TaskReminderModal() {
9986
9989
  setReminderPayload(initialValue);
9987
9990
  };
9988
9991
  var handleReminderSubmit = /*#__PURE__*/function () {
9989
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9992
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9990
9993
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9991
9994
  while (1) switch (_context.prev = _context.next) {
9992
9995
  case 0:
@@ -10036,7 +10039,7 @@ function OrderLock() {
10036
10039
  setCurrentAction(undefined);
10037
10040
  };
10038
10041
  var onComplete = /*#__PURE__*/function () {
10039
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10042
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10040
10043
  var isLocked, payload, response;
10041
10044
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10042
10045
  while (1) switch (_context.prev = _context.next) {
@@ -10083,7 +10086,7 @@ function useUpdateFlag() {
10083
10086
  var _useFlagsLoading = useFlagsLoading(),
10084
10087
  setLoading = _useFlagsLoading[1];
10085
10088
  var create = /*#__PURE__*/function () {
10086
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
10089
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
10087
10090
  var endpoint, requestOptions, response, json;
10088
10091
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10089
10092
  while (1) switch (_context.prev = _context.next) {
@@ -10175,7 +10178,7 @@ function HeaderSection() {
10175
10178
  setIsModalOpen(false);
10176
10179
  };
10177
10180
  var saveButton = /*#__PURE__*/function () {
10178
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10181
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10179
10182
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10180
10183
  while (1) switch (_context.prev = _context.next) {
10181
10184
  case 0:
@@ -10351,7 +10354,7 @@ function ActionSection() {
10351
10354
  setLoading = _useFlagsLoading[1];
10352
10355
  var updateFlag = useUpdateFlag();
10353
10356
  var onSubmit = /*#__PURE__*/function () {
10354
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10357
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10355
10358
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10356
10359
  while (1) switch (_context.prev = _context.next) {
10357
10360
  case 0:
@@ -10458,7 +10461,7 @@ function useFetchSingleFlagsData() {
10458
10461
  var ssoToken = getCookie('id_token');
10459
10462
  console.log(loading, 'loading loading');
10460
10463
  var res = /*#__PURE__*/function () {
10461
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10464
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10462
10465
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
10463
10466
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10464
10467
  while (1) switch (_context.prev = _context.next) {
@@ -10589,7 +10592,7 @@ function ViewFlag() {
10589
10592
  }
10590
10593
  }, [staticData]);
10591
10594
  var fetchAndSetSingleFlagData = /*#__PURE__*/function () {
10592
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10595
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10593
10596
  var result;
10594
10597
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10595
10598
  while (1) switch (_context.prev = _context.next) {
@@ -10773,7 +10776,7 @@ function useSystemLogs() {
10773
10776
  var _useOrderProductSyste = useOrderProductSystemLogs(),
10774
10777
  setSystemLogsEvents = _useOrderProductSyste[1];
10775
10778
  var perform = /*#__PURE__*/function () {
10776
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10779
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10777
10780
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
10778
10781
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10779
10782
  while (1) switch (_context.prev = _context.next) {
@@ -11378,7 +11381,7 @@ function OrderView() {
11378
11381
  var _useOrderProductSyste = useOrderProductSystemLogs(),
11379
11382
  setSystemLogsEvents = _useOrderProductSyste[1];
11380
11383
  var fetchReminderData = /*#__PURE__*/function () {
11381
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11384
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11382
11385
  var result;
11383
11386
  return _regeneratorRuntime().wrap(function _callee$(_context) {
11384
11387
  while (1) switch (_context.prev = _context.next) {
@@ -11900,7 +11903,7 @@ function ReturnClient() {
11900
11903
  };
11901
11904
  var paths = splitPath(location.pathname);
11902
11905
  useEffect(function () {
11903
- if (paths[paths.length - 1] === 'orders/view/return') {
11906
+ if (paths.join('/') === 'orders/view/return') {
11904
11907
  setActionTypeOptions([]);
11905
11908
  setLocationOptions([]);
11906
11909
  setSelectedClient(null);
@@ -11908,11 +11911,6 @@ function ReturnClient() {
11908
11911
  setSelectedLocationValue(null);
11909
11912
  }
11910
11913
  }, [location.pathname, searchParams]);
11911
- // useEffect(() => {
11912
- // if (selectedClientId) {
11913
- // navigate(`filter/${selectedClientId}`);
11914
- // }
11915
- // }, [selectedClientId]);
11916
11914
  //API for client data
11917
11915
  var _useApiHook = useApiHook({
11918
11916
  endpoint: "/return_orders/customers/",