@bjsdistribution/dms-client-return 0.0.69 → 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.
@@ -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;
@@ -2952,7 +2952,7 @@ var OrderTable = function OrderTable() {
2952
2952
  cancelled: 'Cancelled',
2953
2953
  OO: 'On Hold',
2954
2954
  SC: 'Sub-Contracted',
2955
- 'awaiting route': 'Awaiting route',
2955
+ 'awaiting route': 'Awaiting',
2956
2956
  'awaiting confirmation': 'Awaiting',
2957
2957
  completed: 'completed',
2958
2958
  outstanding: 'Outstanding',
@@ -3451,7 +3451,8 @@ var ReturnOrderFilter = function ReturnOrderFilter() {
3451
3451
  placeholder: "Status of Order",
3452
3452
  onChange: handleStatusOfOrder,
3453
3453
  style: {
3454
- width: '145px'
3454
+ minWidth: '150px',
3455
+ width: 'auto'
3455
3456
  },
3456
3457
  value: statusOrder,
3457
3458
  onClear: handleClear,
@@ -3463,12 +3464,12 @@ var ReturnOrderFilter = function ReturnOrderFilter() {
3463
3464
  }, React.createElement(ClientIcon, null)), React.createElement(StyledAntSelect$2, null, React.createElement(Select, {
3464
3465
  options: clientOptions,
3465
3466
  className: "custom-select",
3466
- placeholder: "Client",
3467
+ placeholder: "Clients",
3467
3468
  onChange: handleClientChange,
3468
3469
  value: selectedClient,
3469
3470
  style: {
3470
- width: '125px',
3471
- border: 'none'
3471
+ minWidth: '150px',
3472
+ width: 'auto'
3472
3473
  },
3473
3474
  allowClear: true,
3474
3475
  onClear: handleClearClient
@@ -3835,7 +3836,7 @@ function SpokePhoneIcon() {
3835
3836
 
3836
3837
  function useCopyToClipboard() {
3837
3838
  var copy = /*#__PURE__*/function () {
3838
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
3839
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
3839
3840
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3840
3841
  while (1) switch (_context.prev = _context.next) {
3841
3842
  case 0:
@@ -4480,14 +4481,15 @@ function DeliveryDate() {
4480
4481
  }
4481
4482
  };
4482
4483
  return React.createElement(MainContainer$2, null, React.createElement(Label$h, {
4483
- label: "Delivery Date"
4484
+ label: "Delivery Date next"
4484
4485
  }), React.createElement(DatePicker, {
4485
4486
  onChange: onChange,
4486
4487
  value: actionDate === null ? actionDate : dayjs(actionDate),
4487
4488
  format: "DD/MM/YY",
4488
4489
  style: {
4489
4490
  borderRadius: '25px'
4490
- }
4491
+ },
4492
+ allowClear: false
4491
4493
  }));
4492
4494
  }
4493
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"])));
@@ -4807,7 +4809,7 @@ function ServiceTypeDropdown() {
4807
4809
  className: 'disabled'
4808
4810
  }));
4809
4811
  }
4810
- 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"])));
4811
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"])));
4812
4814
 
4813
4815
  var _templateObject$O, _templateObject2$D;
@@ -4850,7 +4852,7 @@ function DeliveryPointDropdown() {
4850
4852
  className: 'disabled'
4851
4853
  }));
4852
4854
  }
4853
- 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"])));
4854
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"])));
4855
4857
 
4856
4858
  var _templateObject$P;
@@ -5228,7 +5230,7 @@ function useUpdateOrder() {
5228
5230
  var _useUpdateApiCall = useUpdateApiCall(),
5229
5231
  setCallApi = _useUpdateApiCall[1]; //single detail
5230
5232
  var update = /*#__PURE__*/function () {
5231
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
5233
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
5232
5234
  var endpoint, signal, requestOptions, response, json;
5233
5235
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5234
5236
  while (1) switch (_context.prev = _context.next) {
@@ -5336,7 +5338,7 @@ function OrderDetailsFooter() {
5336
5338
  return !isSame;
5337
5339
  };
5338
5340
  var onSave = /*#__PURE__*/function () {
5339
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5341
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5340
5342
  var _response$data;
5341
5343
  var payload, response, _response$data$, _response$data$2;
5342
5344
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -5454,7 +5456,7 @@ function AddNote() {
5454
5456
  notificationData = _useState2[0],
5455
5457
  setNotificationData = _useState2[1];
5456
5458
  var saveNote = /*#__PURE__*/function () {
5457
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5459
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5458
5460
  var endpoint, payload, response;
5459
5461
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5460
5462
  while (1) switch (_context.prev = _context.next) {
@@ -5957,7 +5959,7 @@ var tableColumns = [{
5957
5959
  function useGetEventNotes() {
5958
5960
  var ssoToken = getCookie('id_token');
5959
5961
  var perform = /*#__PURE__*/function () {
5960
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5962
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
5961
5963
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
5962
5964
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5963
5965
  while (1) switch (_context.prev = _context.next) {
@@ -6042,7 +6044,7 @@ function SystemLogs() {
6042
6044
  setNotesData = _useEventNotesData[1];
6043
6045
  // const gsitId = orderDetails?.gsit_order_id;
6044
6046
  var fetchReminderData = /*#__PURE__*/function () {
6045
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6047
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6046
6048
  var result;
6047
6049
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6048
6050
  while (1) switch (_context.prev = _context.next) {
@@ -7905,6 +7907,7 @@ function DeliveryDate$1() {
7905
7907
  var today = new Date();
7906
7908
  var tomorrow = new Date(today);
7907
7909
  tomorrow.setDate(today.getDate() + 1);
7910
+ //confirm popouop
7908
7911
  return React.createElement(Container$Z, null, React.createElement(Label$a, null, "Delivery Date"), React.createElement(DatePicker, {
7909
7912
  onChange: handleDateChange,
7910
7913
  format: "DD/MM/YYYY",
@@ -7912,7 +7915,8 @@ function DeliveryDate$1() {
7912
7915
  style: {
7913
7916
  borderRadius: '15px'
7914
7917
  },
7915
- minDate: dayjs(tomorrow)
7918
+ minDate: dayjs(tomorrow),
7919
+ allowClear: false
7916
7920
  }));
7917
7921
  }
7918
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"])));
@@ -8246,7 +8250,7 @@ function ConfirmOrder() {
8246
8250
  return Object.keys(obj).length === 1 && obj.hasOwnProperty('id');
8247
8251
  }
8248
8252
  var ConfirmOrder = /*#__PURE__*/function () {
8249
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8253
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8250
8254
  var keysToRemovefromOrders, filteredOrderDetails, filteredPrevOrderDetails, payload, notUpdateOrder, _response$data, _response, formattedDate;
8251
8255
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8252
8256
  while (1) switch (_context.prev = _context.next) {
@@ -8322,14 +8326,7 @@ function ConfirmOrder() {
8322
8326
  onSubmit: ConfirmOrder,
8323
8327
  submitBtnTitle: "Save Details",
8324
8328
  isSubmitDisabled: errorFound()
8325
- }, React.createElement(ContentContainer$4, null, React.createElement(Alert, {
8326
- description: "",
8327
- onClose: function onClose() {},
8328
- type: "info",
8329
- title: "There is Orders with identical postcodes that are yet to be delivered.View Orders",
8330
- showOkButton: false,
8331
- showCloseIcon: false
8332
- }), 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)));
8333
8330
  }
8334
8331
  var Wrapper$j = /*#__PURE__*/styled.div(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
8335
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"])));
@@ -9093,7 +9090,7 @@ function useFetchSingleReminderData() {
9093
9090
  setLoading = _useFlagsLoading[1];
9094
9091
  var ssoToken = getCookie('id_token');
9095
9092
  var res = /*#__PURE__*/function () {
9096
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9093
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9097
9094
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
9098
9095
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9099
9096
  while (1) switch (_context.prev = _context.next) {
@@ -9192,7 +9189,7 @@ function useUpdateReminder() {
9192
9189
  var _useFlagsLoading = useFlagsLoading(),
9193
9190
  setLoading = _useFlagsLoading[1];
9194
9191
  var update = /*#__PURE__*/function () {
9195
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9192
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9196
9193
  var endpoint, requestOptions, response, json;
9197
9194
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9198
9195
  while (1) switch (_context.prev = _context.next) {
@@ -9262,7 +9259,7 @@ function useFetchReminders() {
9262
9259
  var _useOrderDetails = useOrderDetails(),
9263
9260
  OrderData = _useOrderDetails[0];
9264
9261
  var perform = /*#__PURE__*/function () {
9265
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9262
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9266
9263
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
9267
9264
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9268
9265
  while (1) switch (_context.prev = _context.next) {
@@ -9370,7 +9367,7 @@ var ViewReminderModal = function ViewReminderModal() {
9370
9367
  setCurrentAction(undefined);
9371
9368
  };
9372
9369
  var fetchReminderData = /*#__PURE__*/function () {
9373
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9370
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9374
9371
  var result;
9375
9372
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9376
9373
  while (1) switch (_context.prev = _context.next) {
@@ -9443,7 +9440,7 @@ var ViewReminderModal = function ViewReminderModal() {
9443
9440
  }));
9444
9441
  };
9445
9442
  var handleEditReminder = /*#__PURE__*/function () {
9446
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
9443
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
9447
9444
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
9448
9445
  while (1) switch (_context2.prev = _context2.next) {
9449
9446
  case 0:
@@ -9764,7 +9761,7 @@ function useCreateReminder() {
9764
9761
  var _useFlagsLoading = useFlagsLoading(),
9765
9762
  setLoading = _useFlagsLoading[1];
9766
9763
  var create = /*#__PURE__*/function () {
9767
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9764
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
9768
9765
  var endpoint, requestOptions, response, json;
9769
9766
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9770
9767
  while (1) switch (_context.prev = _context.next) {
@@ -9842,7 +9839,7 @@ function useFetchUnresolvedTasks() {
9842
9839
  var _useOrderDetails = useOrderDetails(),
9843
9840
  OrderData = _useOrderDetails[0];
9844
9841
  var perform = /*#__PURE__*/function () {
9845
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9842
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9846
9843
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
9847
9844
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9848
9845
  while (1) switch (_context.prev = _context.next) {
@@ -9992,7 +9989,7 @@ function TaskReminderModal() {
9992
9989
  setReminderPayload(initialValue);
9993
9990
  };
9994
9991
  var handleReminderSubmit = /*#__PURE__*/function () {
9995
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9992
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9996
9993
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9997
9994
  while (1) switch (_context.prev = _context.next) {
9998
9995
  case 0:
@@ -10042,7 +10039,7 @@ function OrderLock() {
10042
10039
  setCurrentAction(undefined);
10043
10040
  };
10044
10041
  var onComplete = /*#__PURE__*/function () {
10045
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10042
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10046
10043
  var isLocked, payload, response;
10047
10044
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10048
10045
  while (1) switch (_context.prev = _context.next) {
@@ -10089,7 +10086,7 @@ function useUpdateFlag() {
10089
10086
  var _useFlagsLoading = useFlagsLoading(),
10090
10087
  setLoading = _useFlagsLoading[1];
10091
10088
  var create = /*#__PURE__*/function () {
10092
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
10089
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
10093
10090
  var endpoint, requestOptions, response, json;
10094
10091
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10095
10092
  while (1) switch (_context.prev = _context.next) {
@@ -10181,7 +10178,7 @@ function HeaderSection() {
10181
10178
  setIsModalOpen(false);
10182
10179
  };
10183
10180
  var saveButton = /*#__PURE__*/function () {
10184
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10181
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10185
10182
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10186
10183
  while (1) switch (_context.prev = _context.next) {
10187
10184
  case 0:
@@ -10357,7 +10354,7 @@ function ActionSection() {
10357
10354
  setLoading = _useFlagsLoading[1];
10358
10355
  var updateFlag = useUpdateFlag();
10359
10356
  var onSubmit = /*#__PURE__*/function () {
10360
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10357
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10361
10358
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10362
10359
  while (1) switch (_context.prev = _context.next) {
10363
10360
  case 0:
@@ -10464,7 +10461,7 @@ function useFetchSingleFlagsData() {
10464
10461
  var ssoToken = getCookie('id_token');
10465
10462
  console.log(loading, 'loading loading');
10466
10463
  var res = /*#__PURE__*/function () {
10467
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10464
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10468
10465
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
10469
10466
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10470
10467
  while (1) switch (_context.prev = _context.next) {
@@ -10595,7 +10592,7 @@ function ViewFlag() {
10595
10592
  }
10596
10593
  }, [staticData]);
10597
10594
  var fetchAndSetSingleFlagData = /*#__PURE__*/function () {
10598
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10595
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10599
10596
  var result;
10600
10597
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10601
10598
  while (1) switch (_context.prev = _context.next) {
@@ -10779,7 +10776,7 @@ function useSystemLogs() {
10779
10776
  var _useOrderProductSyste = useOrderProductSystemLogs(),
10780
10777
  setSystemLogsEvents = _useOrderProductSyste[1];
10781
10778
  var perform = /*#__PURE__*/function () {
10782
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10779
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10783
10780
  var endpoint, headers, response, _detail$, _json, detail, msg, json;
10784
10781
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10785
10782
  while (1) switch (_context.prev = _context.next) {
@@ -11384,7 +11381,7 @@ function OrderView() {
11384
11381
  var _useOrderProductSyste = useOrderProductSystemLogs(),
11385
11382
  setSystemLogsEvents = _useOrderProductSyste[1];
11386
11383
  var fetchReminderData = /*#__PURE__*/function () {
11387
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11384
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11388
11385
  var result;
11389
11386
  return _regeneratorRuntime().wrap(function _callee$(_context) {
11390
11387
  while (1) switch (_context.prev = _context.next) {