@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.
- package/dist/common/date-picker/header/ClearDate.d.ts +1 -1
- package/dist/components/order-daily-overview/table/table-data/styles.d.ts +3 -3
- package/dist/components/order-daily-overview/table-view/TableStyle.d.ts +4 -4
- package/dist/components/order-view/view-reminder/reminder-styles.d.ts +2 -2
- package/dist/dms-client-return.cjs.development.js +39 -42
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +39 -42
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/order-daily-overview/return-after-table/table/OrderTable.tsx +1 -1
- package/src/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.tsx +3 -3
- package/src/components/order-view/order-actions/actions/confirm-order/customer-info/DeliveryDate.tsx +2 -1
- package/src/components/order-view/order-actions/actions/confirm-order/index.tsx +3 -3
- package/src/components/order-view/order-details/expanded-content/orders-section/DeliveryDate.tsx +3 -1
- package/src/components/order-view/order-details/expanded-content/services-section/DeliveryPoint.tsx +2 -1
- package/src/components/order-view/order-details/expanded-content/services-section/ServiceType.tsx +2 -1
|
@@ -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.
|
|
65
|
+
if (e.indexOf(n) >= 0) continue;
|
|
66
66
|
t[n] = r[n];
|
|
67
67
|
}
|
|
68
68
|
return t;
|
|
@@ -2960,7 +2960,7 @@ var OrderTable = function OrderTable() {
|
|
|
2960
2960
|
cancelled: 'Cancelled',
|
|
2961
2961
|
OO: 'On Hold',
|
|
2962
2962
|
SC: 'Sub-Contracted',
|
|
2963
|
-
'awaiting route': 'Awaiting
|
|
2963
|
+
'awaiting route': 'Awaiting',
|
|
2964
2964
|
'awaiting confirmation': 'Awaiting',
|
|
2965
2965
|
completed: 'completed',
|
|
2966
2966
|
outstanding: 'Outstanding',
|
|
@@ -3459,7 +3459,8 @@ var ReturnOrderFilter = function ReturnOrderFilter() {
|
|
|
3459
3459
|
placeholder: "Status of Order",
|
|
3460
3460
|
onChange: handleStatusOfOrder,
|
|
3461
3461
|
style: {
|
|
3462
|
-
|
|
3462
|
+
minWidth: '150px',
|
|
3463
|
+
width: 'auto'
|
|
3463
3464
|
},
|
|
3464
3465
|
value: statusOrder,
|
|
3465
3466
|
onClear: handleClear,
|
|
@@ -3471,12 +3472,12 @@ var ReturnOrderFilter = function ReturnOrderFilter() {
|
|
|
3471
3472
|
}, React__default.createElement(ClientIcon, null)), React__default.createElement(StyledAntSelect$2, null, React__default.createElement(antd.Select, {
|
|
3472
3473
|
options: clientOptions,
|
|
3473
3474
|
className: "custom-select",
|
|
3474
|
-
placeholder: "
|
|
3475
|
+
placeholder: "Clients",
|
|
3475
3476
|
onChange: handleClientChange,
|
|
3476
3477
|
value: selectedClient,
|
|
3477
3478
|
style: {
|
|
3478
|
-
|
|
3479
|
-
|
|
3479
|
+
minWidth: '150px',
|
|
3480
|
+
width: 'auto'
|
|
3480
3481
|
},
|
|
3481
3482
|
allowClear: true,
|
|
3482
3483
|
onClear: handleClearClient
|
|
@@ -3843,7 +3844,7 @@ function SpokePhoneIcon() {
|
|
|
3843
3844
|
|
|
3844
3845
|
function useCopyToClipboard() {
|
|
3845
3846
|
var copy = /*#__PURE__*/function () {
|
|
3846
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
|
|
3847
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
|
|
3847
3848
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3848
3849
|
while (1) switch (_context.prev = _context.next) {
|
|
3849
3850
|
case 0:
|
|
@@ -4488,14 +4489,15 @@ function DeliveryDate() {
|
|
|
4488
4489
|
}
|
|
4489
4490
|
};
|
|
4490
4491
|
return React__default.createElement(MainContainer$2, null, React__default.createElement(dmsComponentLibrary.Label, {
|
|
4491
|
-
label: "Delivery Date"
|
|
4492
|
+
label: "Delivery Date next"
|
|
4492
4493
|
}), React__default.createElement(antd.DatePicker, {
|
|
4493
4494
|
onChange: onChange,
|
|
4494
4495
|
value: actionDate === null ? actionDate : dayjs(actionDate),
|
|
4495
4496
|
format: "DD/MM/YY",
|
|
4496
4497
|
style: {
|
|
4497
4498
|
borderRadius: '25px'
|
|
4498
|
-
}
|
|
4499
|
+
},
|
|
4500
|
+
allowClear: false
|
|
4499
4501
|
}));
|
|
4500
4502
|
}
|
|
4501
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"])));
|
|
@@ -4815,7 +4817,7 @@ function ServiceTypeDropdown() {
|
|
|
4815
4817
|
className: 'disabled'
|
|
4816
4818
|
}));
|
|
4817
4819
|
}
|
|
4818
|
-
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"])));
|
|
4819
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"])));
|
|
4820
4822
|
|
|
4821
4823
|
var _templateObject$O, _templateObject2$D;
|
|
@@ -4858,7 +4860,7 @@ function DeliveryPointDropdown() {
|
|
|
4858
4860
|
className: 'disabled'
|
|
4859
4861
|
}));
|
|
4860
4862
|
}
|
|
4861
|
-
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"])));
|
|
4862
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"])));
|
|
4863
4865
|
|
|
4864
4866
|
var _templateObject$P;
|
|
@@ -5236,7 +5238,7 @@ function useUpdateOrder() {
|
|
|
5236
5238
|
var _useUpdateApiCall = useUpdateApiCall(),
|
|
5237
5239
|
setCallApi = _useUpdateApiCall[1]; //single detail
|
|
5238
5240
|
var update = /*#__PURE__*/function () {
|
|
5239
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
5241
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
5240
5242
|
var endpoint, signal, requestOptions, response, json;
|
|
5241
5243
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5242
5244
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -5344,7 +5346,7 @@ function OrderDetailsFooter() {
|
|
|
5344
5346
|
return !isSame;
|
|
5345
5347
|
};
|
|
5346
5348
|
var onSave = /*#__PURE__*/function () {
|
|
5347
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5349
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5348
5350
|
var _response$data;
|
|
5349
5351
|
var payload, response, _response$data$, _response$data$2;
|
|
5350
5352
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -5462,7 +5464,7 @@ function AddNote() {
|
|
|
5462
5464
|
notificationData = _useState2[0],
|
|
5463
5465
|
setNotificationData = _useState2[1];
|
|
5464
5466
|
var saveNote = /*#__PURE__*/function () {
|
|
5465
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5467
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5466
5468
|
var endpoint, payload, response;
|
|
5467
5469
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5468
5470
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -5965,7 +5967,7 @@ var tableColumns = [{
|
|
|
5965
5967
|
function useGetEventNotes() {
|
|
5966
5968
|
var ssoToken = getCookie('id_token');
|
|
5967
5969
|
var perform = /*#__PURE__*/function () {
|
|
5968
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5970
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5969
5971
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
5970
5972
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5971
5973
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6050,7 +6052,7 @@ function SystemLogs() {
|
|
|
6050
6052
|
setNotesData = _useEventNotesData[1];
|
|
6051
6053
|
// const gsitId = orderDetails?.gsit_order_id;
|
|
6052
6054
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
6053
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6055
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6054
6056
|
var result;
|
|
6055
6057
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6056
6058
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7913,6 +7915,7 @@ function DeliveryDate$1() {
|
|
|
7913
7915
|
var today = new Date();
|
|
7914
7916
|
var tomorrow = new Date(today);
|
|
7915
7917
|
tomorrow.setDate(today.getDate() + 1);
|
|
7918
|
+
//confirm popouop
|
|
7916
7919
|
return React__default.createElement(Container$Z, null, React__default.createElement(Label$a, null, "Delivery Date"), React__default.createElement(antd.DatePicker, {
|
|
7917
7920
|
onChange: handleDateChange,
|
|
7918
7921
|
format: "DD/MM/YYYY",
|
|
@@ -7920,7 +7923,8 @@ function DeliveryDate$1() {
|
|
|
7920
7923
|
style: {
|
|
7921
7924
|
borderRadius: '15px'
|
|
7922
7925
|
},
|
|
7923
|
-
minDate: dayjs(tomorrow)
|
|
7926
|
+
minDate: dayjs(tomorrow),
|
|
7927
|
+
allowClear: false
|
|
7924
7928
|
}));
|
|
7925
7929
|
}
|
|
7926
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"])));
|
|
@@ -8254,7 +8258,7 @@ function ConfirmOrder() {
|
|
|
8254
8258
|
return Object.keys(obj).length === 1 && obj.hasOwnProperty('id');
|
|
8255
8259
|
}
|
|
8256
8260
|
var ConfirmOrder = /*#__PURE__*/function () {
|
|
8257
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8261
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8258
8262
|
var keysToRemovefromOrders, filteredOrderDetails, filteredPrevOrderDetails, payload, notUpdateOrder, _response$data, _response, formattedDate;
|
|
8259
8263
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8260
8264
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8330,14 +8334,7 @@ function ConfirmOrder() {
|
|
|
8330
8334
|
onSubmit: ConfirmOrder,
|
|
8331
8335
|
submitBtnTitle: "Save Details",
|
|
8332
8336
|
isSubmitDisabled: errorFound()
|
|
8333
|
-
}, React__default.createElement(ContentContainer$4, null, React__default.createElement(
|
|
8334
|
-
description: "",
|
|
8335
|
-
onClose: function onClose() {},
|
|
8336
|
-
type: "info",
|
|
8337
|
-
title: "There is Orders with identical postcodes that are yet to be delivered.View Orders",
|
|
8338
|
-
showOkButton: false,
|
|
8339
|
-
showCloseIcon: false
|
|
8340
|
-
}), 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)));
|
|
8341
8338
|
}
|
|
8342
8339
|
var Wrapper$j = /*#__PURE__*/styled__default.div(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
|
|
8343
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"])));
|
|
@@ -9101,7 +9098,7 @@ function useFetchSingleReminderData() {
|
|
|
9101
9098
|
setLoading = _useFlagsLoading[1];
|
|
9102
9099
|
var ssoToken = getCookie('id_token');
|
|
9103
9100
|
var res = /*#__PURE__*/function () {
|
|
9104
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9101
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9105
9102
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
9106
9103
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9107
9104
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9200,7 +9197,7 @@ function useUpdateReminder() {
|
|
|
9200
9197
|
var _useFlagsLoading = useFlagsLoading(),
|
|
9201
9198
|
setLoading = _useFlagsLoading[1];
|
|
9202
9199
|
var update = /*#__PURE__*/function () {
|
|
9203
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
9200
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
9204
9201
|
var endpoint, requestOptions, response, json;
|
|
9205
9202
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9206
9203
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9270,7 +9267,7 @@ function useFetchReminders() {
|
|
|
9270
9267
|
var _useOrderDetails = useOrderDetails(),
|
|
9271
9268
|
OrderData = _useOrderDetails[0];
|
|
9272
9269
|
var perform = /*#__PURE__*/function () {
|
|
9273
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9270
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9274
9271
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
9275
9272
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9276
9273
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9378,7 +9375,7 @@ var ViewReminderModal = function ViewReminderModal() {
|
|
|
9378
9375
|
setCurrentAction(undefined);
|
|
9379
9376
|
};
|
|
9380
9377
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
9381
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9378
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9382
9379
|
var result;
|
|
9383
9380
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9384
9381
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9451,7 +9448,7 @@ var ViewReminderModal = function ViewReminderModal() {
|
|
|
9451
9448
|
}));
|
|
9452
9449
|
};
|
|
9453
9450
|
var handleEditReminder = /*#__PURE__*/function () {
|
|
9454
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
9451
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
9455
9452
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
9456
9453
|
while (1) switch (_context2.prev = _context2.next) {
|
|
9457
9454
|
case 0:
|
|
@@ -9772,7 +9769,7 @@ function useCreateReminder() {
|
|
|
9772
9769
|
var _useFlagsLoading = useFlagsLoading(),
|
|
9773
9770
|
setLoading = _useFlagsLoading[1];
|
|
9774
9771
|
var create = /*#__PURE__*/function () {
|
|
9775
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
9772
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
9776
9773
|
var endpoint, requestOptions, response, json;
|
|
9777
9774
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9778
9775
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9850,7 +9847,7 @@ function useFetchUnresolvedTasks() {
|
|
|
9850
9847
|
var _useOrderDetails = useOrderDetails(),
|
|
9851
9848
|
OrderData = _useOrderDetails[0];
|
|
9852
9849
|
var perform = /*#__PURE__*/function () {
|
|
9853
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9850
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9854
9851
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
9855
9852
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9856
9853
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10000,7 +9997,7 @@ function TaskReminderModal() {
|
|
|
10000
9997
|
setReminderPayload(initialValue);
|
|
10001
9998
|
};
|
|
10002
9999
|
var handleReminderSubmit = /*#__PURE__*/function () {
|
|
10003
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10000
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10004
10001
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10005
10002
|
while (1) switch (_context.prev = _context.next) {
|
|
10006
10003
|
case 0:
|
|
@@ -10050,7 +10047,7 @@ function OrderLock() {
|
|
|
10050
10047
|
setCurrentAction(undefined);
|
|
10051
10048
|
};
|
|
10052
10049
|
var onComplete = /*#__PURE__*/function () {
|
|
10053
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10050
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10054
10051
|
var isLocked, payload, response;
|
|
10055
10052
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10056
10053
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10097,7 +10094,7 @@ function useUpdateFlag() {
|
|
|
10097
10094
|
var _useFlagsLoading = useFlagsLoading(),
|
|
10098
10095
|
setLoading = _useFlagsLoading[1];
|
|
10099
10096
|
var create = /*#__PURE__*/function () {
|
|
10100
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
10097
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
10101
10098
|
var endpoint, requestOptions, response, json;
|
|
10102
10099
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10103
10100
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10189,7 +10186,7 @@ function HeaderSection() {
|
|
|
10189
10186
|
setIsModalOpen(false);
|
|
10190
10187
|
};
|
|
10191
10188
|
var saveButton = /*#__PURE__*/function () {
|
|
10192
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10189
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10193
10190
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10194
10191
|
while (1) switch (_context.prev = _context.next) {
|
|
10195
10192
|
case 0:
|
|
@@ -10365,7 +10362,7 @@ function ActionSection() {
|
|
|
10365
10362
|
setLoading = _useFlagsLoading[1];
|
|
10366
10363
|
var updateFlag = useUpdateFlag();
|
|
10367
10364
|
var onSubmit = /*#__PURE__*/function () {
|
|
10368
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10365
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10369
10366
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10370
10367
|
while (1) switch (_context.prev = _context.next) {
|
|
10371
10368
|
case 0:
|
|
@@ -10472,7 +10469,7 @@ function useFetchSingleFlagsData() {
|
|
|
10472
10469
|
var ssoToken = getCookie('id_token');
|
|
10473
10470
|
console.log(loading, 'loading loading');
|
|
10474
10471
|
var res = /*#__PURE__*/function () {
|
|
10475
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10472
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10476
10473
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
10477
10474
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10478
10475
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10603,7 +10600,7 @@ function ViewFlag() {
|
|
|
10603
10600
|
}
|
|
10604
10601
|
}, [staticData]);
|
|
10605
10602
|
var fetchAndSetSingleFlagData = /*#__PURE__*/function () {
|
|
10606
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10603
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10607
10604
|
var result;
|
|
10608
10605
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10609
10606
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10787,7 +10784,7 @@ function useSystemLogs() {
|
|
|
10787
10784
|
var _useOrderProductSyste = useOrderProductSystemLogs(),
|
|
10788
10785
|
setSystemLogsEvents = _useOrderProductSyste[1];
|
|
10789
10786
|
var perform = /*#__PURE__*/function () {
|
|
10790
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10787
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10791
10788
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
10792
10789
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10793
10790
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -11392,7 +11389,7 @@ function OrderView() {
|
|
|
11392
11389
|
var _useOrderProductSyste = useOrderProductSystemLogs(),
|
|
11393
11390
|
setSystemLogsEvents = _useOrderProductSyste[1];
|
|
11394
11391
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
11395
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
11392
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
11396
11393
|
var result;
|
|
11397
11394
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11398
11395
|
while (1) switch (_context.prev = _context.next) {
|