@bjsdistribution/dms-client-return 0.1.5-prod → 0.1.6-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.
- package/dist/components/order-view/notes/AddNote.d.ts +1 -0
- package/dist/dms-client-return.cjs.development.js +179 -112
- 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 +180 -113
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/assets/icons/ActionIcon.tsx +1 -1
- package/src/assets/icons/ArrowDownIcon.tsx +2 -2
- package/src/components/order-view/details-filters/left-side-filters/dropdowns/OptionsDropDown.tsx +4 -4
- package/src/components/order-view/generic-table/AuditLogs.tsx +39 -12
- package/src/components/order-view/notes/AddNote.tsx +111 -62
|
@@ -6045,31 +6045,74 @@ function NoteType() {
|
|
|
6045
6045
|
}
|
|
6046
6046
|
var Container$z = /*#__PURE__*/styled__default.div(_templateObject$V || (_templateObject$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
6047
6047
|
|
|
6048
|
-
var _templateObject$W, _templateObject2$H, _templateObject3$j;
|
|
6048
|
+
var _templateObject$W, _templateObject2$H, _templateObject3$j, _templateObject4$8;
|
|
6049
|
+
var template = "REASON- \nSTC- \nACTION- ";
|
|
6049
6050
|
function AddNote() {
|
|
6050
|
-
var _useState = React.useState(
|
|
6051
|
+
var _useState = React.useState(template),
|
|
6051
6052
|
noteText = _useState[0],
|
|
6052
6053
|
setNoteText = _useState[1];
|
|
6054
|
+
var _useState2 = React.useState([]),
|
|
6055
|
+
noteOptions = _useState2[0],
|
|
6056
|
+
setNoteOptions = _useState2[1];
|
|
6057
|
+
var _useState3 = React.useState('standard'),
|
|
6058
|
+
selectedNoteType = _useState3[0],
|
|
6059
|
+
setSelectedNoteType = _useState3[1];
|
|
6053
6060
|
var _useOrderId = useOrderId(),
|
|
6054
6061
|
orderId = _useOrderId[0];
|
|
6055
6062
|
var location = reactRouterDom.useLocation();
|
|
6056
6063
|
var pathname = location.pathname;
|
|
6057
6064
|
var orderIdLocaation = pathname.split('/')[1];
|
|
6065
|
+
var _useClientPortal = useClientPortal(),
|
|
6066
|
+
isClientPortal = _useClientPortal[0];
|
|
6058
6067
|
var _usemoduleIds = usemoduleIds(),
|
|
6059
6068
|
moduleIds = _usemoduleIds[0];
|
|
6060
6069
|
var _useGlobalStateHitAud = useGlobalStateHitAuditLog(),
|
|
6061
6070
|
setRecallAuditLog = _useGlobalStateHitAud[1];
|
|
6062
6071
|
var _useSelectedData = useSelectedData(),
|
|
6063
|
-
|
|
6064
|
-
// Save New Note
|
|
6072
|
+
selectedAssignee = _useSelectedData[0];
|
|
6065
6073
|
var _useAxios = dmsComponentLibrary.useAxios({
|
|
6074
|
+
endpoint: "audit_logs/order/type",
|
|
6075
|
+
method: 'GET'
|
|
6076
|
+
}),
|
|
6077
|
+
getNoteType = _useAxios.fetchData,
|
|
6078
|
+
fetchedData = _useAxios.data;
|
|
6079
|
+
console.log(selectedNoteType, 'selectedNoteType');
|
|
6080
|
+
React.useEffect(function () {
|
|
6081
|
+
getNoteType();
|
|
6082
|
+
}, []);
|
|
6083
|
+
React.useEffect(function () {
|
|
6084
|
+
if (fetchedData != null && fetchedData.data) {
|
|
6085
|
+
var _fetchedData$data;
|
|
6086
|
+
var options = fetchedData == null || (_fetchedData$data = fetchedData.data) == null ? void 0 : _fetchedData$data.map(function (item) {
|
|
6087
|
+
return {
|
|
6088
|
+
label: item == null ? void 0 : item.name,
|
|
6089
|
+
value: item == null ? void 0 : item.name
|
|
6090
|
+
};
|
|
6091
|
+
});
|
|
6092
|
+
setNoteOptions(options);
|
|
6093
|
+
var standardOption = options == null ? void 0 : options.find(function (opt) {
|
|
6094
|
+
var _opt$value;
|
|
6095
|
+
return (opt == null || (_opt$value = opt.value) == null ? void 0 : _opt$value.toLowerCase()) === 'standard';
|
|
6096
|
+
});
|
|
6097
|
+
if (standardOption) {
|
|
6098
|
+
setSelectedNoteType(standardOption == null ? void 0 : standardOption.value);
|
|
6099
|
+
} else if ((options == null ? void 0 : options.length) > 0) {
|
|
6100
|
+
var _options$;
|
|
6101
|
+
setSelectedNoteType((_options$ = options[0]) == null ? void 0 : _options$.value);
|
|
6102
|
+
}
|
|
6103
|
+
}
|
|
6104
|
+
}, [fetchedData]);
|
|
6105
|
+
var _useAxios2 = dmsComponentLibrary.useAxios({
|
|
6066
6106
|
endpoint: "/audit_logs/orders/",
|
|
6067
6107
|
method: 'POST'
|
|
6068
6108
|
}),
|
|
6069
|
-
callAuditLogs =
|
|
6070
|
-
var
|
|
6071
|
-
|
|
6072
|
-
|
|
6109
|
+
callAuditLogs = _useAxios2.fetchData;
|
|
6110
|
+
var isValidFormat = function isValidFormat() {
|
|
6111
|
+
var lines = noteText.split('\n');
|
|
6112
|
+
if (lines.length < 3) return false;
|
|
6113
|
+
return lines[0].startsWith('REASON-') && lines[1].startsWith('STC-') && lines[2].startsWith('ACTION-');
|
|
6114
|
+
};
|
|
6115
|
+
var isDisabled = !noteText.trim() || !isValidFormat() || !selectedAssignee;
|
|
6073
6116
|
var saveNote = /*#__PURE__*/function () {
|
|
6074
6117
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6075
6118
|
var payload, response;
|
|
@@ -6088,12 +6131,13 @@ function AddNote() {
|
|
|
6088
6131
|
parent_object_id: orderId || orderIdLocaation,
|
|
6089
6132
|
parent_module_id: moduleIds == null ? void 0 : moduleIds.parentId,
|
|
6090
6133
|
module_id: moduleIds == null ? void 0 : moduleIds.id,
|
|
6134
|
+
note_type: selectedNoteType,
|
|
6091
6135
|
module_object_id: orderId || orderIdLocaation,
|
|
6092
6136
|
action: 'create',
|
|
6093
6137
|
description: noteText,
|
|
6094
6138
|
data_dump: '{}',
|
|
6095
6139
|
manual: 1,
|
|
6096
|
-
is_private:
|
|
6140
|
+
is_private: isClientPortal ? false : selectedAssignee === '0' ? true : false
|
|
6097
6141
|
}]
|
|
6098
6142
|
};
|
|
6099
6143
|
_context.prev = 4;
|
|
@@ -6103,17 +6147,21 @@ function AddNote() {
|
|
|
6103
6147
|
});
|
|
6104
6148
|
case 7:
|
|
6105
6149
|
response = _context.sent;
|
|
6106
|
-
|
|
6150
|
+
//@ts-ignore
|
|
6151
|
+
if ((response == null ? void 0 : response.code) === 200 && response != null && response.data) {
|
|
6107
6152
|
antd.notification.success({
|
|
6108
6153
|
message: 'Success',
|
|
6109
|
-
|
|
6154
|
+
//@ts-ignore
|
|
6155
|
+
description: (response == null ? void 0 : response.message) || 'Note saved successfully'
|
|
6110
6156
|
});
|
|
6111
|
-
setNoteText(
|
|
6157
|
+
setNoteText(template);
|
|
6158
|
+
setSelectedNoteType('Standard');
|
|
6112
6159
|
setRecallAuditLog(true);
|
|
6113
6160
|
} else {
|
|
6114
6161
|
antd.notification.error({
|
|
6115
6162
|
message: 'Error',
|
|
6116
|
-
|
|
6163
|
+
//@ts-ignore
|
|
6164
|
+
description: (response == null ? void 0 : response.error) || 'Failed to save note'
|
|
6117
6165
|
});
|
|
6118
6166
|
}
|
|
6119
6167
|
_context.next = 14;
|
|
@@ -6135,40 +6183,52 @@ function AddNote() {
|
|
|
6135
6183
|
return _ref.apply(this, arguments);
|
|
6136
6184
|
};
|
|
6137
6185
|
}();
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
antd.notification[type]({
|
|
6144
|
-
message: message,
|
|
6145
|
-
description: description,
|
|
6146
|
-
duration: 5
|
|
6147
|
-
});
|
|
6148
|
-
setNotificationData(null); // Clear notification data after showing
|
|
6186
|
+
var handleChange = function handleChange(e) {
|
|
6187
|
+
var val = e.target.value;
|
|
6188
|
+
var lines = val.split('\n');
|
|
6189
|
+
while (lines.length < 3) {
|
|
6190
|
+
if (lines.length === 0) lines.push('REASON- ');else if (lines.length === 1) lines.push('STC- ');else if (lines.length === 2) lines.push('ACTION- ');
|
|
6149
6191
|
}
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6192
|
+
var enforcedLines = lines.map(function (line, idx) {
|
|
6193
|
+
if (idx === 0) {
|
|
6194
|
+
if (!line.startsWith('REASON-')) return 'REASON- ';
|
|
6195
|
+
}
|
|
6196
|
+
if (idx === 1) {
|
|
6197
|
+
if (!line.startsWith('STC-')) return 'STC- ';
|
|
6198
|
+
}
|
|
6199
|
+
if (idx === 2) {
|
|
6200
|
+
if (!line.startsWith('ACTION-')) return 'ACTION- ';
|
|
6201
|
+
}
|
|
6202
|
+
return line;
|
|
6153
6203
|
});
|
|
6154
|
-
|
|
6204
|
+
setNoteText(enforcedLines.join('\n'));
|
|
6205
|
+
};
|
|
6155
6206
|
return React__default.createElement(Container$A, null, React__default.createElement(dmsComponentLibrary.Label, {
|
|
6156
|
-
label: "Add New Note"
|
|
6207
|
+
label: "Add New Note",
|
|
6208
|
+
required: true,
|
|
6209
|
+
style: {
|
|
6210
|
+
color: 'black'
|
|
6211
|
+
}
|
|
6212
|
+
}), React__default.createElement(StyledAntSelect$3, {
|
|
6213
|
+
options: noteOptions,
|
|
6214
|
+
placeholder: "Select Note Type",
|
|
6215
|
+
onChange: function onChange(value) {
|
|
6216
|
+
return setSelectedNoteType(value);
|
|
6217
|
+
},
|
|
6218
|
+
value: selectedNoteType
|
|
6157
6219
|
}), React__default.createElement(StyledTextArea, {
|
|
6158
|
-
name: "description",
|
|
6159
|
-
placeholder: "Enter your note here...",
|
|
6160
6220
|
value: noteText,
|
|
6161
|
-
onChange:
|
|
6162
|
-
|
|
6163
|
-
}
|
|
6221
|
+
onChange: handleChange,
|
|
6222
|
+
rows: 3
|
|
6164
6223
|
}), React__default.createElement(SaveNoteContainer, null, React__default.createElement(dmsComponentLibrary.Button, {
|
|
6165
|
-
disabled:
|
|
6224
|
+
disabled: isDisabled,
|
|
6166
6225
|
onClick: saveNote
|
|
6167
|
-
}, "SAVE NOTE"), React__default.createElement(NoteType, null)));
|
|
6226
|
+
}, "SAVE NOTE"), !isClientPortal && React__default.createElement(NoteType, null)));
|
|
6168
6227
|
}
|
|
6169
6228
|
var Container$A = /*#__PURE__*/styled__default.div(_templateObject$W || (_templateObject$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
6170
6229
|
var SaveNoteContainer = /*#__PURE__*/styled__default.div(_templateObject2$H || (_templateObject2$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n gap: 10px;\n .disabled button {\n opacity: 0.5;\n cursor: default;\n }\n"])));
|
|
6171
|
-
var StyledTextArea = /*#__PURE__*/styled__default.textarea(_templateObject3$j || (_templateObject3$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height:
|
|
6230
|
+
var StyledTextArea = /*#__PURE__*/styled__default.textarea(_templateObject3$j || (_templateObject3$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 65px;\n border-radius: 8px;\n background: #fff;\n resize: vertical;\n border: 1px solid #e0e2e7;\n padding: 8px 12px;\n font-family: monospace;\n white-space: pre-wrap;\n"])));
|
|
6231
|
+
var StyledAntSelect$3 = /*#__PURE__*/styled__default(antd.Select)(_templateObject4$8 || (_templateObject4$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n border-radius: 8px;\n }\n"])));
|
|
6172
6232
|
|
|
6173
6233
|
var NotesTableData = [{
|
|
6174
6234
|
tableHead: [{
|
|
@@ -6185,7 +6245,8 @@ var NotesTableData = [{
|
|
|
6185
6245
|
|
|
6186
6246
|
var _templateObject$X, _templateObject2$I;
|
|
6187
6247
|
var GenericAuditLogsTable = function GenericAuditLogsTable() {
|
|
6188
|
-
var
|
|
6248
|
+
var _NotesTableData$;
|
|
6249
|
+
var tableHeadData = (_NotesTableData$ = NotesTableData[0]) == null ? void 0 : _NotesTableData$.tableHead; // Assuming NotesTableData contains table header information
|
|
6189
6250
|
var _usegetNotes = usegetNotes(),
|
|
6190
6251
|
getNotes = _usegetNotes[0];
|
|
6191
6252
|
var _useAuditLogLoadingSt = useAuditLogLoadingState(),
|
|
@@ -6203,7 +6264,13 @@ var GenericAuditLogsTable = function GenericAuditLogsTable() {
|
|
|
6203
6264
|
}, React__default.createElement("td", null, React__default.createElement("div", {
|
|
6204
6265
|
className: "bold",
|
|
6205
6266
|
title: note == null ? void 0 : note.created_by
|
|
6206
|
-
}, note == null ? void 0 : note.created_by), React__default.createElement("div",
|
|
6267
|
+
}, note == null ? void 0 : note.created_by), React__default.createElement("div", {
|
|
6268
|
+
className: "notesIcon"
|
|
6269
|
+
}, note != null && note.is_private ? React__default.createElement(React__default.Fragment, null, React__default.createElement(dmsComponentLibrary.PrivateIcon, null), ' ', React__default.createElement("span", {
|
|
6270
|
+
className: "datetime"
|
|
6271
|
+
}, dmsComponentLibrary.formatUtcToLocal(note == null ? void 0 : note.created_at).date + " @ " + dmsComponentLibrary.formatUtcToLocal(note == null ? void 0 : note.created_at).time)) : React__default.createElement("span", {
|
|
6272
|
+
className: "datetime"
|
|
6273
|
+
}, dmsComponentLibrary.formatUtcToLocal(note == null ? void 0 : note.created_at).date + " @ " + dmsComponentLibrary.formatUtcToLocal(note == null ? void 0 : note.created_at).time)), React__default.createElement("div", null, (note == null ? void 0 : note.note_type) || 'N/A')), React__default.createElement("td", {
|
|
6207
6274
|
dangerouslySetInnerHTML: {
|
|
6208
6275
|
__html: note == null ? void 0 : note.description
|
|
6209
6276
|
}
|
|
@@ -6212,8 +6279,8 @@ var GenericAuditLogsTable = function GenericAuditLogsTable() {
|
|
|
6212
6279
|
colSpan: tableHeadData == null ? void 0 : tableHeadData.length
|
|
6213
6280
|
}, "No data found"))))));
|
|
6214
6281
|
};
|
|
6215
|
-
var
|
|
6216
|
-
var
|
|
6282
|
+
var ScrollableTableWrapper = /*#__PURE__*/styled__default.div(_templateObject$X || (_templateObject$X = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6283
|
+
var AuditTableWrapper = /*#__PURE__*/styled__default.div(_templateObject2$I || (_templateObject2$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 250px;\n min-height: 200px;\n /* overflow: auto; */\n\n table {\n border-spacing: 0;\n width: 100%;\n text-align: left;\n\n thead {\n th {\n border-bottom: 1px solid rgba(58, 54, 48, 0.25);\n background: #faf9f9;\n padding: 14px 12px;\n color: #3a3630;\n font-size: 14px;\n font-weight: 600;\n line-height: 24px;\n }\n }\n tbody {\n td {\n color: #667085;\n font-family: Lato;\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n padding: 10px;\n border-bottom: 1px solid #efe8e8;\n word-break: break-word;\n vertical-align: top;\n\n .bold {\n font-weight: 500;\n font-size: 14px;\n }\n .notesIcon {\n display: flex;\n align-items: center;\n gap: 5px;\n\n .datetime {\n min-width: 155px;\n }\n }\n }\n }\n }\n"])));
|
|
6217
6284
|
|
|
6218
6285
|
var _templateObject$Y;
|
|
6219
6286
|
function AuditLogs() {
|
|
@@ -6221,7 +6288,7 @@ function AuditLogs() {
|
|
|
6221
6288
|
}
|
|
6222
6289
|
var Container$B = /*#__PURE__*/styled__default.div(_templateObject$Y || (_templateObject$Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 550px; /* Set height to limit container size */\n overflow: auto; /* Enable scrolling */\n scrollbar-width: thin;\n"])));
|
|
6223
6290
|
|
|
6224
|
-
var _templateObject$Z, _templateObject2$J, _templateObject3$k, _templateObject4$
|
|
6291
|
+
var _templateObject$Z, _templateObject2$J, _templateObject3$k, _templateObject4$9;
|
|
6225
6292
|
// import { useLocation } from 'react-router-dom';
|
|
6226
6293
|
function Notes() {
|
|
6227
6294
|
var _usemoduleIds = usemoduleIds(),
|
|
@@ -6304,7 +6371,7 @@ function Notes() {
|
|
|
6304
6371
|
var Container$C = /*#__PURE__*/styled__default.div(_templateObject$Z || (_templateObject$Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 5px;\n"])));
|
|
6305
6372
|
var CardHeader = /*#__PURE__*/styled__default.div(_templateObject2$J || (_templateObject2$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid #f0f2f2;\n background-color: #f8fafc;\n color: #3a3630;\n font-size: 16px;\n padding: 10px;\n border-bottom: 1px solid #ddd;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n text-transform: uppercase;\n font-family: 'Roboto', sans-serif;\n font-weight: 600;\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
|
|
6306
6373
|
var CustomizedFormSection = /*#__PURE__*/styled__default.div(_templateObject3$k || (_templateObject3$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n background: #ffffff;\n padding: 10px;\n flex-direction: column;\n gap: 14px;\n border: 1px solid #f0f2f2;\n border-bottom-right-radius: 8px;\n border-bottom-left-radius: 8px;\n box-shadow: 0px 4px 30px 0px rgba(46, 45, 116, 0.05);\n"])));
|
|
6307
|
-
var SmallButton = /*#__PURE__*/styled__default.button(_templateObject4$
|
|
6374
|
+
var SmallButton = /*#__PURE__*/styled__default.button(_templateObject4$9 || (_templateObject4$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #363a30;\n color: #ffffff;\n font-size: 12px;\n padding: 4px 8px;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n transition: background-color 0.3s;\n\n &:hover {\n background-color: #feba30;\n }\n"])));
|
|
6308
6375
|
|
|
6309
6376
|
var _templateObject$_;
|
|
6310
6377
|
// import styled from 'styled-components';
|
|
@@ -6329,7 +6396,7 @@ function ChevronUp(props) {
|
|
|
6329
6396
|
}));
|
|
6330
6397
|
}
|
|
6331
6398
|
|
|
6332
|
-
var _templateObject$$, _templateObject2$K, _templateObject3$l, _templateObject4$
|
|
6399
|
+
var _templateObject$$, _templateObject2$K, _templateObject3$l, _templateObject4$a, _templateObject5$7, _templateObject6$1, _templateObject7$3, _templateObject8$2;
|
|
6333
6400
|
function CollapsableForm(props) {
|
|
6334
6401
|
var _useState = React.useState(true),
|
|
6335
6402
|
isExpanded = _useState[0],
|
|
@@ -6352,7 +6419,7 @@ function CollapsableForm(props) {
|
|
|
6352
6419
|
var CustomizedFormSection$1 = /*#__PURE__*/styled__default.div(_templateObject$$ || (_templateObject$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n background: #ffffff;\n padding: 12px;\n flex-direction: column;\n gap: 14px;\n border: 1px solid #f0f2f2;\n border-bottom-right-radius: 8px;\n border-bottom-left-radius: 8px;\n box-shadow: 0px 4px 30px 0px rgba(46, 45, 116, 0.05);\n"])));
|
|
6353
6420
|
var CardHeader$1 = /*#__PURE__*/styled__default.div(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid #f0f2f2;\n background-color: #f8fafc;\n color: #3a3630;\n font-size: 16px;\n padding: 10px;\n border-bottom: 1px solid #ddd;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-family: 'Roboto', sans-serif;\n font-weight: 600;\n"])));
|
|
6354
6421
|
var Text$4 = /*#__PURE__*/styled__default.span(_templateObject3$l || (_templateObject3$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 14px;\n color: #3a3630;\n font-weight: 500;\n font-family: 'lato', sans-serif;\n cursor: pointer;\n"])));
|
|
6355
|
-
var Container$D = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
6422
|
+
var Container$D = /*#__PURE__*/styled__default.div(_templateObject4$a || (_templateObject4$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n align-items: center;\n"])));
|
|
6356
6423
|
var MainContainer$4 = /*#__PURE__*/styled__default.div(_templateObject5$7 || (_templateObject5$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0;\n"])));
|
|
6357
6424
|
var IconContainer$1 = /*#__PURE__*/styled__default.div(_templateObject6$1 || (_templateObject6$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: 25px;\n height: 25px;\n padding: 2px;\n border-radius: 3px;\n background: #ffffff;\n box-shadow: 0px 1px 2px 0px #1018280d;\n &:hover {\n background: rgba(58, 54, 57, 0.05);\n }\n svg {\n transform: rotate(", ");\n }\n"])), function (props) {
|
|
6358
6425
|
return props.isExpanded ? '360deg' : '180deg';
|
|
@@ -6382,7 +6449,7 @@ var ThumbVertical = /*#__PURE__*/styled__default.div(_templateObject$10 || (_tem
|
|
|
6382
6449
|
var View = /*#__PURE__*/styled__default.div(_templateObject2$L || (_templateObject2$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: hidden;\n"])));
|
|
6383
6450
|
var TrackHorizontal = /*#__PURE__*/styled__default.div(_templateObject3$m || (_templateObject3$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n"])));
|
|
6384
6451
|
|
|
6385
|
-
var _templateObject$11, _templateObject2$M, _templateObject3$n, _templateObject4$
|
|
6452
|
+
var _templateObject$11, _templateObject2$M, _templateObject3$n, _templateObject4$b, _templateObject5$8, _templateObject6$2, _templateObject7$4, _templateObject8$3, _templateObject9$1;
|
|
6386
6453
|
var selectedID = /*#__PURE__*/jotai.atom([]);
|
|
6387
6454
|
function DynamicTable(_ref, props) {
|
|
6388
6455
|
var columns = _ref.columns,
|
|
@@ -6441,7 +6508,7 @@ function DynamicTable(_ref, props) {
|
|
|
6441
6508
|
var Container$E = /*#__PURE__*/styled__default.div(_templateObject$11 || (_templateObject$11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 30vh;\n pointer-events: initial;\n @media (max-width: 1024px) {\n height: 40vh;\n }\n"])));
|
|
6442
6509
|
var TableWrapper = /*#__PURE__*/styled__default.div(_templateObject2$M || (_templateObject2$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n overflow-x: auto;\n scrollbar-width: thin;\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n"])));
|
|
6443
6510
|
var TableHeadData = /*#__PURE__*/styled__default.th(_templateObject3$n || (_templateObject3$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 10px 5px;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n letter-spacing: 0px;\n"])));
|
|
6444
|
-
var TableData = /*#__PURE__*/styled__default.td(_templateObject4$
|
|
6511
|
+
var TableData = /*#__PURE__*/styled__default.td(_templateObject4$b || (_templateObject4$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-spacing: 0px;\n padding: 10px 5px;\n font-family: 'Lato', sans-serif;\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n letter-spacing: 0px;\n"])));
|
|
6445
6512
|
var TableRow = /*#__PURE__*/styled__default.tr(_templateObject5$8 || (_templateObject5$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: stretch;\n width: 100%;\n border-bottom: 1px solid rgb(215, 214, 213);\n font-weight: 300;\n"])));
|
|
6446
6513
|
var TableBody = /*#__PURE__*/styled__default.tbody(_templateObject6$2 || (_templateObject6$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom-right-radius: 10px;\n background: rgb(255, 255, 255);\n height: 96%;\n overflow: auto;\n width: 100%;\n"])));
|
|
6447
6514
|
var TableHead = /*#__PURE__*/styled__default.thead(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0px;\n z-index: 1;\n background: #f8f8f8;\n white-space: nowrap;\n"])));
|
|
@@ -6710,7 +6777,7 @@ function ConfirmedIcon() {
|
|
|
6710
6777
|
}))));
|
|
6711
6778
|
}
|
|
6712
6779
|
|
|
6713
|
-
var _templateObject$17, _templateObject2$R, _templateObject3$o, _templateObject4$
|
|
6780
|
+
var _templateObject$17, _templateObject2$R, _templateObject3$o, _templateObject4$c;
|
|
6714
6781
|
function Status() {
|
|
6715
6782
|
var _useStatusDetails = useStatusDetails(),
|
|
6716
6783
|
orderStatus = _useStatusDetails[0];
|
|
@@ -6759,7 +6826,7 @@ var renderIcon = function renderIcon(value, orderStatus) {
|
|
|
6759
6826
|
var BoxContainer = /*#__PURE__*/styled__default.div(_templateObject$17 || (_templateObject$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid #e3e3e3;\n display: flex;\n justify-content: space-evenly;\n border-radius: 8px;\n background: #f8fafc;\n align-items: center;\n height: 5%;\n"])));
|
|
6760
6827
|
var Heading = /*#__PURE__*/styled__default.div(_templateObject2$R || (_templateObject2$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: 'lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n text-transform: uppercase;\n"])));
|
|
6761
6828
|
var Container$F = /*#__PURE__*/styled__default.div(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px;\n margin-top: 25px;\n"])));
|
|
6762
|
-
var TextContainer$1 = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
6829
|
+
var TextContainer$1 = /*#__PURE__*/styled__default.div(_templateObject4$c || (_templateObject4$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 10px;\n display: flex;\n align-items: center;\n"])));
|
|
6763
6830
|
|
|
6764
6831
|
var _templateObject$18;
|
|
6765
6832
|
// import DropDownOptions from './dropdowns';
|
|
@@ -6778,7 +6845,7 @@ var ActionIcon = function ActionIcon() {
|
|
|
6778
6845
|
}, React__default.createElement("path", {
|
|
6779
6846
|
d: "M0.5 12.2432C0.5 5.61581 5.87258 0.243225 12.5 0.243225C19.1274 0.243225 24.5 5.61581 24.5 12.2432C24.5 18.8706 19.1274 24.2432 12.5 24.2432C5.87258 24.2432 0.5 18.8706 0.5 12.2432Z",
|
|
6780
6847
|
fill: "#E95252",
|
|
6781
|
-
|
|
6848
|
+
fillOpacity: "0.5"
|
|
6782
6849
|
}), React__default.createElement("path", {
|
|
6783
6850
|
d: "M16.566 9.23825C16.6377 9.16909 16.6948 9.08636 16.7342 8.99488C16.7735 8.90339 16.7943 8.80499 16.7952 8.70541C16.7961 8.60582 16.7772 8.50705 16.7395 8.41486C16.7018 8.32267 16.6462 8.23891 16.5758 8.16846C16.5054 8.098 16.4217 8.04228 16.3295 8.00452C16.2374 7.96677 16.1386 7.94774 16.0391 7.94856C15.9395 7.94938 15.841 7.97002 15.7495 8.00929C15.658 8.04855 15.5752 8.10565 15.506 8.17725L12.5 11.1822L9.495 8.17725C9.42634 8.10356 9.34354 8.04446 9.25154 8.00347C9.15954 7.96247 9.06022 7.94043 8.95952 7.93865C8.85882 7.93688 8.75879 7.9554 8.6654 7.99312C8.57201 8.03084 8.48718 8.08699 8.41596 8.15821C8.34474 8.22943 8.2886 8.31426 8.25087 8.40765C8.21315 8.50104 8.19463 8.60107 8.19641 8.70177C8.19818 8.80247 8.22022 8.90178 8.26122 8.99378C8.30221 9.08578 8.36131 9.16858 8.435 9.23725L11.438 12.2432L8.433 15.2482C8.30052 15.3904 8.22839 15.5785 8.23182 15.7728C8.23525 15.9671 8.31396 16.1525 8.45138 16.2899C8.58879 16.4273 8.77417 16.506 8.96847 16.5094C9.16278 16.5128 9.35082 16.4407 9.493 16.3082L12.5 13.3032L15.505 16.3092C15.6472 16.4417 15.8352 16.5139 16.0295 16.5104C16.2238 16.507 16.4092 16.4283 16.5466 16.2909C16.684 16.1535 16.7627 15.9681 16.7662 15.7738C16.7696 15.5795 16.6975 15.3914 16.565 15.2492L13.562 12.2432L16.566 9.23825Z",
|
|
6784
6851
|
fill: "#E95252"
|
|
@@ -7014,7 +7081,7 @@ var NewReturnDropdown = function NewReturnDropdown() {
|
|
|
7014
7081
|
value: order == null ? void 0 : order.id
|
|
7015
7082
|
};
|
|
7016
7083
|
});
|
|
7017
|
-
return React__default.createElement(Container$H, null, React__default.createElement(Text$5, null, "New Return Order:"), React__default.createElement(StyledAntSelect$
|
|
7084
|
+
return React__default.createElement(Container$H, null, React__default.createElement(Text$5, null, "New Return Order:"), React__default.createElement(StyledAntSelect$4, {
|
|
7018
7085
|
options: dropdownOptions,
|
|
7019
7086
|
value: selectedOrderId,
|
|
7020
7087
|
placeholder: "Select",
|
|
@@ -7031,7 +7098,7 @@ var NewReturnDropdown = function NewReturnDropdown() {
|
|
|
7031
7098
|
notFoundContent: "No orders found with a similar postcode"
|
|
7032
7099
|
}));
|
|
7033
7100
|
};
|
|
7034
|
-
var StyledAntSelect$
|
|
7101
|
+
var StyledAntSelect$4 = /*#__PURE__*/styled__default(antd.Select)(_templateObject$1b || (_templateObject$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n /* width: 22vw; */\n border-radius: 22px;\n }\n .ant-select-clear {\n top: 40% !important;\n font-size: 18px !important;\n }\n"])));
|
|
7035
7102
|
var Container$H = /*#__PURE__*/styled__default.div(_templateObject2$S || (_templateObject2$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 10px;\n align-self: stretch;\n white-space: nowrap;\n"])));
|
|
7036
7103
|
var Text$5 = /*#__PURE__*/styled__default.div(_templateObject3$p || (_templateObject3$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #000;\n font-family: 'Lato';\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n"])));
|
|
7037
7104
|
|
|
@@ -7168,16 +7235,16 @@ function BackgroundModal(props) {
|
|
|
7168
7235
|
}
|
|
7169
7236
|
var Container$K = /*#__PURE__*/styled__default.div(_templateObject$1e || (_templateObject$1e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center; \n z-index: 1000;\n background: rgba(0, 0, 0, 0.8);\n box-shadow: 0px 3px 10px #00000029;\n"])));
|
|
7170
7237
|
|
|
7171
|
-
var _templateObject$1f, _templateObject2$V, _templateObject3$r, _templateObject4$
|
|
7238
|
+
var _templateObject$1f, _templateObject2$V, _templateObject3$r, _templateObject4$d;
|
|
7172
7239
|
function AdditionalInformation(props) {
|
|
7173
7240
|
return React__default.createElement(Container$L, null, React__default.createElement(Rect, null), React__default.createElement(AdditionalInfo, null, React__default.createElement(Text$6, null, props.info)));
|
|
7174
7241
|
}
|
|
7175
7242
|
var Text$6 = /*#__PURE__*/styled__default.p(_templateObject$1f || (_templateObject$1f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #ffffff;\n font-family: 'Lato', sans-serif;\n font-size: 13px;\n font-style: normal;\n font-weight: 600;\n margin: 0;\n padding: 0;\n"])));
|
|
7176
7243
|
var Container$L = /*#__PURE__*/styled__default.div(_templateObject2$V || (_templateObject2$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
|
|
7177
7244
|
var Rect = /*#__PURE__*/styled__default.div(_templateObject3$r || (_templateObject3$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 9px;\n height: 45px;\n background: #3a3630;\n"])));
|
|
7178
|
-
var AdditionalInfo = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
7245
|
+
var AdditionalInfo = /*#__PURE__*/styled__default.div(_templateObject4$d || (_templateObject4$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 3px 10px;\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n border-radius: 0px 15px 15px 0px;\n background: rgba(63, 151, 188, 0.6);\n box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.25) inset;\n"])));
|
|
7179
7246
|
|
|
7180
|
-
var _templateObject$1g, _templateObject2$W, _templateObject3$s, _templateObject4$
|
|
7247
|
+
var _templateObject$1g, _templateObject2$W, _templateObject3$s, _templateObject4$e;
|
|
7181
7248
|
function OrderActionHeader(props) {
|
|
7182
7249
|
var title = props.title,
|
|
7183
7250
|
actions = props.actions,
|
|
@@ -7195,7 +7262,7 @@ function OrderActionHeader(props) {
|
|
|
7195
7262
|
var Wrapper$d = /*#__PURE__*/styled__default.div(_templateObject$1g || (_templateObject$1g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n align-items: center;\n width: 90%;\n margin-left: 20px;\n"])));
|
|
7196
7263
|
var IconContainer$2 = /*#__PURE__*/styled__default.div(_templateObject2$W || (_templateObject2$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n svg > path {\n fill: #ffffff;\n }\n cursor: pointer;\n"])));
|
|
7197
7264
|
var Title = /*#__PURE__*/styled__default.h3(_templateObject3$s || (_templateObject3$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n color: #edebe8;\n text-transform: uppercase;\n font-size: 20px;\n font-family: 'Roboto', sans-serif;\n font-style: normal;\n font-weight: 900;\n text-wrap: nowrap;\n"])));
|
|
7198
|
-
var Container$M = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
7265
|
+
var Container$M = /*#__PURE__*/styled__default.div(_templateObject4$e || (_templateObject4$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n background: #3a3630;\n border-radius: 12px 12px 0px 0px;\n padding: 10px 15px 10px 15px;\n position: sticky;\n top: 0;\n z-index: 9;\n"])));
|
|
7199
7266
|
|
|
7200
7267
|
var _templateObject$1h, _templateObject2$X;
|
|
7201
7268
|
function OrderActionFooter(props) {
|
|
@@ -7519,7 +7586,7 @@ function UploadIcon(props) {
|
|
|
7519
7586
|
})));
|
|
7520
7587
|
}
|
|
7521
7588
|
|
|
7522
|
-
var _templateObject$1k, _templateObject2$Z, _templateObject3$u, _templateObject4$
|
|
7589
|
+
var _templateObject$1k, _templateObject2$Z, _templateObject3$u, _templateObject4$f, _templateObject5$9, _templateObject6$3, _templateObject7$5, _templateObject8$4, _templateObject9$2, _templateObject10$1, _templateObject11$1, _templateObject12, _templateObject13;
|
|
7523
7590
|
var uploadedFilesAtom = /*#__PURE__*/jotai.atom([]);
|
|
7524
7591
|
// Allowed photo and video file types
|
|
7525
7592
|
var fileTypes = ['image/jpeg', 'image/png', 'video/mp4'];
|
|
@@ -7601,7 +7668,7 @@ var DraggerContainer = /*#__PURE__*/styled__default.div(_templateObject2$Z || (_
|
|
|
7601
7668
|
return props.dragging ? '2px dashed #0465ac' : '1px solid #e0e2e7';
|
|
7602
7669
|
});
|
|
7603
7670
|
var Text2 = /*#__PURE__*/styled__default.p(_templateObject3$u || (_templateObject3$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #bcbab7;\n text-align: center;\n font-family: 'Roboto', sans-serif;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n text-transform: lowercase;\n padding: 0;\n margin: 0;\n"])));
|
|
7604
|
-
var TextContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
7671
|
+
var TextContainer$2 = /*#__PURE__*/styled__default.div(_templateObject4$f || (_templateObject4$f = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
7605
7672
|
var Text1 = /*#__PURE__*/styled__default.p(_templateObject5$9 || (_templateObject5$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #aea9a1;\n text-align: left;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n text-transform: lowercase;\n padding: 0;\n margin: 0;\n"])));
|
|
7606
7673
|
var IconContainer$3 = /*#__PURE__*/styled__default.div(_templateObject6$3 || (_templateObject6$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px dashed #0465ac;\n padding: 5px;\n display: flex;\n align-items: center;\n"])));
|
|
7607
7674
|
var UploadButton = /*#__PURE__*/styled__default(dmsComponentLibrary.Button)(_templateObject7$5 || (_templateObject7$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 16px;\n font-size: 14px;\n padding: 7px 20px;\n"])));
|
|
@@ -7612,7 +7679,7 @@ var FilesTitle = /*#__PURE__*/styled__default.h4(_templateObject11$1 || (_templa
|
|
|
7612
7679
|
var FilesList = /*#__PURE__*/styled__default.ul(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n list-style-type: none;\n padding: 0;\n"])));
|
|
7613
7680
|
var FileItem = /*#__PURE__*/styled__default.li(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n color: #333;\n margin: 5px 0;\n"])));
|
|
7614
7681
|
|
|
7615
|
-
var _templateObject$1l, _templateObject2$_, _templateObject3$v, _templateObject4$
|
|
7682
|
+
var _templateObject$1l, _templateObject2$_, _templateObject3$v, _templateObject4$g, _templateObject5$a;
|
|
7616
7683
|
function AddResources() {
|
|
7617
7684
|
var _staticOrderData$reso;
|
|
7618
7685
|
var _useCurrentAction = useCurrentAction(),
|
|
@@ -7742,7 +7809,7 @@ function AddResources() {
|
|
|
7742
7809
|
var RequiredAsterisk$1 = /*#__PURE__*/styled__default.span(_templateObject$1l || (_templateObject$1l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n margin-left: 2px;\n"])));
|
|
7743
7810
|
var Label$2 = /*#__PURE__*/styled__default.label(_templateObject2$_ || (_templateObject2$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
7744
7811
|
var Bottom$1 = /*#__PURE__*/styled__default.div(_templateObject3$v || (_templateObject3$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
7745
|
-
var Top$1 = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
7812
|
+
var Top$1 = /*#__PURE__*/styled__default.div(_templateObject4$g || (_templateObject4$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n > div {\n min-width: 240px;\n }\n"])));
|
|
7746
7813
|
var ContentContainer = /*#__PURE__*/styled__default.div(_templateObject5$a || (_templateObject5$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px 12px;\n flex: 1 0 0;\n border-radius: 15px;\n background: #f8fafc;\n margin: 0px 20px 0 20px;\n"])));
|
|
7747
7814
|
|
|
7748
7815
|
var _templateObject$1m, _templateObject2$$, _templateObject3$w;
|
|
@@ -7955,7 +8022,7 @@ var Input = /*#__PURE__*/styled__default.input(_templateObject2$10 || (_template
|
|
|
7955
8022
|
});
|
|
7956
8023
|
var RadioContainer$1 = /*#__PURE__*/styled__default.div(_templateObject3$x || (_templateObject3$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n align-items: center;\n"])));
|
|
7957
8024
|
|
|
7958
|
-
var _templateObject$1p, _templateObject2$11, _templateObject3$y, _templateObject4$
|
|
8025
|
+
var _templateObject$1p, _templateObject2$11, _templateObject3$y, _templateObject4$h, _templateObject5$b, _templateObject6$4, _templateObject7$6;
|
|
7959
8026
|
function RadioButtonGroup(props) {
|
|
7960
8027
|
var heading = props.heading,
|
|
7961
8028
|
_props$direction = props.direction,
|
|
@@ -7995,7 +8062,7 @@ var labelStyles = /*#__PURE__*/styled.css(_templateObject2$11 || (_templateObjec
|
|
|
7995
8062
|
var RequiredText = /*#__PURE__*/styled__default.span(_templateObject3$y || (_templateObject3$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n ", "\n"])), function (props) {
|
|
7996
8063
|
return !props.$required && 'visibility: hidden;';
|
|
7997
8064
|
}, labelStyles);
|
|
7998
|
-
var LegendContainer = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
8065
|
+
var LegendContainer = /*#__PURE__*/styled__default.div(_templateObject4$h || (_templateObject4$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
7999
8066
|
var Legend = /*#__PURE__*/styled__default.legend(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n line-height: 20px;\n"])), fonts.secondary);
|
|
8000
8067
|
var Fieldset = /*#__PURE__*/styled__default.fieldset(_templateObject6$4 || (_templateObject6$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: none;\n padding: 0px;\n"])));
|
|
8001
8068
|
var Wrapper$e = /*#__PURE__*/styled__default.div(_templateObject7$6 || (_templateObject7$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: ", ";\n gap: 20px;\n padding: 0px 10px;\n border-radius: 15px;\n border: 1px solid #e0e2e7;\n background: #fff;\n height: 30px;\n justify-content: space-evenly;\n"])), function (props) {
|
|
@@ -8026,7 +8093,7 @@ function DeliveryPoint(props) {
|
|
|
8026
8093
|
}
|
|
8027
8094
|
var Container$Q = /*#__PURE__*/styled__default.div(_templateObject$1q || (_templateObject$1q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n /* height: 30px; */\n padding: 1px;\n align-items: flex-start;\n align-self: stretch;\n"])));
|
|
8028
8095
|
|
|
8029
|
-
var _templateObject$1r, _templateObject2$12, _templateObject3$z, _templateObject4$
|
|
8096
|
+
var _templateObject$1r, _templateObject2$12, _templateObject3$z, _templateObject4$i, _templateObject5$c, _templateObject6$5, _templateObject7$7, _templateObject8$5;
|
|
8030
8097
|
var _excluded$6 = ["imageSrc", "label", "checked", "enabled", "onClickCheckbox"];
|
|
8031
8098
|
function Checkbox(props) {
|
|
8032
8099
|
var imageSrc = props.imageSrc,
|
|
@@ -8073,7 +8140,7 @@ var CircleContainer = /*#__PURE__*/styled__default.span(_templateObject2$12 || (
|
|
|
8073
8140
|
var Circle = /*#__PURE__*/styled__default.span(_templateObject3$z || (_templateObject3$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 14px;\n width: 14px;\n background: ", ";\n border-radius: 50%;\n display: inline-block;\n transition: 0.2s ease all;\n"])), function (props) {
|
|
8074
8141
|
return props.$checked ? '#feba30' : '#ffffff';
|
|
8075
8142
|
});
|
|
8076
|
-
var Text$7 = /*#__PURE__*/styled__default.span(_templateObject4$
|
|
8143
|
+
var Text$7 = /*#__PURE__*/styled__default.span(_templateObject4$i || (_templateObject4$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: ", ";\n font-family: 'lato', sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n text-transform: capitalize;\n"])), function (props) {
|
|
8077
8144
|
return props.$checked ? '#3a3630' : 'rgba(58, 54, 48, 0.50)';
|
|
8078
8145
|
});
|
|
8079
8146
|
var InformationContainer = /*#__PURE__*/styled__default.div(_templateObject5$c || (_templateObject5$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n align-items: center;\n"])));
|
|
@@ -8449,7 +8516,7 @@ var StyledTable$3 = /*#__PURE__*/styled__default.table(_templateObject2$15 || (_
|
|
|
8449
8516
|
var EmptyDataContainer$3 = /*#__PURE__*/styled__default.div(_templateObject3$C || (_templateObject3$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
|
|
8450
8517
|
var Value = /*#__PURE__*/styled__default.span(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #29cc6a;\n"])));
|
|
8451
8518
|
|
|
8452
|
-
var _templateObject$1w, _templateObject2$16, _templateObject3$D, _templateObject4$
|
|
8519
|
+
var _templateObject$1w, _templateObject2$16, _templateObject3$D, _templateObject4$j, _templateObject5$d;
|
|
8453
8520
|
var deliverTypeOptions = [{
|
|
8454
8521
|
label: 'Deliver',
|
|
8455
8522
|
value: 'deliver',
|
|
@@ -8597,10 +8664,10 @@ var CancelOrderTable = function CancelOrderTable() {
|
|
|
8597
8664
|
var CustomSelectDropdown = /*#__PURE__*/styled__default(antd.Select)(_templateObject$1w || (_templateObject$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n border-radius: 25px !important;\n /* border: none !important; */\n min-width: 100px;\n padding: 0 10px;\n display: flex;\n gap: 10px;\n align-items: center;\n\n .ant-select-prefix {\n margin-top: 3px;\n }\n }\n .ant-select-selection-item {\n font-weight: 400;\n font-size: 13px;\n }\n"])));
|
|
8598
8665
|
var StyledTableWrapper$4 = /*#__PURE__*/styled__default.div(_templateObject2$16 || (_templateObject2$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n overflow-x: auto;\n background-color: #fff;\n border-radius: 12px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);\n padding: 16px;\n"])));
|
|
8599
8666
|
var StyledDropdown = /*#__PURE__*/styled__default(OrderActionsDropdown)(_templateObject3$D || (_templateObject3$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n"])));
|
|
8600
|
-
var StyledTable$4 = /*#__PURE__*/styled__default.table(_templateObject4$
|
|
8667
|
+
var StyledTable$4 = /*#__PURE__*/styled__default.table(_templateObject4$j || (_templateObject4$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n font-size: 14px;\n color: #333;\n border-spacing: 0 10px;\n\n th,\n td {\n padding: 12px 16px;\n background: #fff;\n }\n\n th {\n background: #f0f2f2;\n\n &:first-child {\n border-top-left-radius: 40px;\n border-bottom-left-radius: 40px;\n }\n\n &:last-child {\n border-top-right-radius: 40px;\n border-bottom-right-radius: 40px;\n }\n }\n\n // This affects ONLY top-level rows\n > tbody > tr {\n background: #fff;\n border-radius: 40px;\n box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1);\n }\n\n // Round the outer row's corners only on first/last td\n > tbody > tr > td:first-child {\n border-top-left-radius: 40px;\n border-bottom-left-radius: 40px;\n }\n\n > tbody > tr > td:last-child {\n border-top-right-radius: 40px;\n border-bottom-right-radius: 40px;\n }\n\n .scrollClass {\n overflow-x: auto;\n }\n\n .emptyTd {\n text-align: center;\n padding: 40px 0;\n color: #999;\n background: transparent;\n box-shadow: none;\n }\n\n td table {\n border-spacing: 0;\n width: 100%;\n }\n\n td table td {\n background: transparent;\n padding: 8px 12px;\n }\n"])));
|
|
8601
8668
|
var ReturnRowWrapper = /*#__PURE__*/styled__default.div(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 12px;\n padding: 0 12px;\n width: 100%;\n"])));
|
|
8602
8669
|
|
|
8603
|
-
var _templateObject$1x, _templateObject2$17, _templateObject3$E, _templateObject4$
|
|
8670
|
+
var _templateObject$1x, _templateObject2$17, _templateObject3$E, _templateObject4$k, _templateObject5$e, _templateObject6$6, _templateObject7$8, _templateObject8$6, _templateObject9$4, _templateObject10$2;
|
|
8604
8671
|
function CancelOrder(props) {
|
|
8605
8672
|
var _orderStaticData$canc;
|
|
8606
8673
|
var _useOrderId = useOrderId(),
|
|
@@ -8801,7 +8868,7 @@ function CancelOrder(props) {
|
|
|
8801
8868
|
var RequiredAsterisk$3 = /*#__PURE__*/styled__default.span(_templateObject$1x || (_templateObject$1x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n margin-left: 2px;\n font-size: x-small;\n"])));
|
|
8802
8869
|
var TArea = /*#__PURE__*/styled__default(dmsComponentLibrary.TextArea)(_templateObject2$17 || (_templateObject2$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n resize: none;\n"])));
|
|
8803
8870
|
var Label$5 = /*#__PURE__*/styled__default.label(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
8804
|
-
var Container$T = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
8871
|
+
var Container$T = /*#__PURE__*/styled__default.div(_templateObject4$k || (_templateObject4$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
8805
8872
|
var Wrapper$f = /*#__PURE__*/styled__default.div(_templateObject5$e || (_templateObject5$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n width: 100%;\n > div {\n width: 50%;\n }\n"])));
|
|
8806
8873
|
var TopLeft = /*#__PURE__*/styled__default.div(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 15px;\n width: 50%;\n"])));
|
|
8807
8874
|
var TopRight = /*#__PURE__*/styled__default.div(_templateObject7$8 || (_templateObject7$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 50%;\n"])));
|
|
@@ -9223,7 +9290,7 @@ function TimedServiceDropdown$1() {
|
|
|
9223
9290
|
});
|
|
9224
9291
|
}
|
|
9225
9292
|
|
|
9226
|
-
var _templateObject$1E, _templateObject2$1d, _templateObject3$J, _templateObject4$
|
|
9293
|
+
var _templateObject$1E, _templateObject2$1d, _templateObject3$J, _templateObject4$l;
|
|
9227
9294
|
function CustomerInformation() {
|
|
9228
9295
|
var _orderDetails$order_r;
|
|
9229
9296
|
var _useOrderDetailsConfi = useOrderDetailsConfirmOrder(),
|
|
@@ -9233,7 +9300,7 @@ function CustomerInformation() {
|
|
|
9233
9300
|
var Wrapper$g = /*#__PURE__*/styled__default.div(_templateObject$1E || (_templateObject$1E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n width: 100%;\n .contact-type-dropdown,\n .action-dropdown {\n flex: 1;\n }\n"])));
|
|
9234
9301
|
var AddressField = /*#__PURE__*/styled__default.p(_templateObject2$1d || (_templateObject2$1d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Open Sans';\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n padding: 0;\n margin: 0;\n"])));
|
|
9235
9302
|
var Title$1 = /*#__PURE__*/styled__default.span(_templateObject3$J || (_templateObject3$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n"])));
|
|
9236
|
-
var Container$_ = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
9303
|
+
var Container$_ = /*#__PURE__*/styled__default.div(_templateObject4$l || (_templateObject4$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px 12px;\n flex: 1 0 0;\n border-radius: 15px;\n background: #f8fafc;\n display: flex;\n flex-direction: column;\n gap: 15px;\n"])));
|
|
9237
9304
|
|
|
9238
9305
|
var _templateObject$1F, _templateObject2$1e;
|
|
9239
9306
|
function ProductTable$1() {
|
|
@@ -9394,7 +9461,7 @@ function ContactWith() {
|
|
|
9394
9461
|
var Label$d = /*#__PURE__*/styled__default.label(_templateObject$1J || (_templateObject$1J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
9395
9462
|
var Container$13 = /*#__PURE__*/styled__default.div(_templateObject2$1i || (_templateObject2$1i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
9396
9463
|
|
|
9397
|
-
var _templateObject$1K, _templateObject2$1j, _templateObject3$K, _templateObject4$
|
|
9464
|
+
var _templateObject$1K, _templateObject2$1j, _templateObject3$K, _templateObject4$m;
|
|
9398
9465
|
function SlotAndInstructions() {
|
|
9399
9466
|
var _orderDetails$order_r;
|
|
9400
9467
|
var _useOrderDetailsConfi = useOrderDetailsConfirmOrder(),
|
|
@@ -9404,7 +9471,7 @@ function SlotAndInstructions() {
|
|
|
9404
9471
|
var Value$1 = /*#__PURE__*/styled__default.span(_templateObject$1K || (_templateObject$1K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Lato', 'Open Sans';\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n"])));
|
|
9405
9472
|
var Slot = /*#__PURE__*/styled__default.div(_templateObject2$1j || (_templateObject2$1j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 5px;\n"])));
|
|
9406
9473
|
var Title$4 = /*#__PURE__*/styled__default.span(_templateObject3$K || (_templateObject3$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Lato', 'Open Sans';\n font-size: 13px;\n font-style: normal;\n font-weight: 700;\n"])));
|
|
9407
|
-
var Container$14 = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
9474
|
+
var Container$14 = /*#__PURE__*/styled__default.div(_templateObject4$m || (_templateObject4$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px 12px;\n flex: 1 0 0;\n border-radius: 15px;\n background: #f8fafc;\n display: flex;\n flex-direction: column;\n gap: 15px;\n"])));
|
|
9408
9475
|
|
|
9409
9476
|
var _templateObject$1L, _templateObject2$1k;
|
|
9410
9477
|
function ConfirmOrder(props) {
|
|
@@ -10656,7 +10723,7 @@ function AssigneeDropdown() {
|
|
|
10656
10723
|
return React__default.createElement(FormContainer$3, null, React__default.createElement(dmsComponentLibrary.Label, {
|
|
10657
10724
|
label: "Department",
|
|
10658
10725
|
required: true
|
|
10659
|
-
}), React__default.createElement(StyledAntSelect$
|
|
10726
|
+
}), React__default.createElement(StyledAntSelect$5, {
|
|
10660
10727
|
disabled: disabled,
|
|
10661
10728
|
options: deptData,
|
|
10662
10729
|
placeholder: "Select Department",
|
|
@@ -10671,7 +10738,7 @@ function AssigneeDropdown() {
|
|
|
10671
10738
|
label: "Assigned To",
|
|
10672
10739
|
required: true,
|
|
10673
10740
|
htmlFor: "assigneDropdown"
|
|
10674
|
-
}), React__default.createElement(StyledAntSelect$
|
|
10741
|
+
}), React__default.createElement(StyledAntSelect$5, {
|
|
10675
10742
|
disabled: disabled,
|
|
10676
10743
|
options: userOptions,
|
|
10677
10744
|
placeholder: "Select User",
|
|
@@ -10688,7 +10755,7 @@ function AssigneeDropdown() {
|
|
|
10688
10755
|
}));
|
|
10689
10756
|
}
|
|
10690
10757
|
var FormContainer$3 = /*#__PURE__*/styled__default.div(_templateObject$1O || (_templateObject$1O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n width: 325px;\n"])));
|
|
10691
|
-
var StyledAntSelect$
|
|
10758
|
+
var StyledAntSelect$5 = /*#__PURE__*/styled__default(antd.Select)(_templateObject2$1n || (_templateObject2$1n = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
10692
10759
|
|
|
10693
10760
|
var _templateObject$1P, _templateObject2$1o, _templateObject3$M, _templateObject13$1, _templateObject14$1, _templateObject16, _templateObject17, _templateObject19$2, _templateObject20$1;
|
|
10694
10761
|
var ReferenceContainer = /*#__PURE__*/styled__default.div(_templateObject$1P || (_templateObject$1P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 770px;\n align-items: center;\n flex: 1 0 0;\n border-radius: 40px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n background: #fff;\n margin-top: 15px;\n"])));
|
|
@@ -10748,7 +10815,7 @@ var priorityData = [{
|
|
|
10748
10815
|
color: '#E95252'
|
|
10749
10816
|
}];
|
|
10750
10817
|
|
|
10751
|
-
var _templateObject$1Q, _templateObject2$1p, _templateObject3$N, _templateObject4$
|
|
10818
|
+
var _templateObject$1Q, _templateObject2$1p, _templateObject3$N, _templateObject4$n;
|
|
10752
10819
|
function StatusIndicator(props) {
|
|
10753
10820
|
var statusColor = getStatusColor(props.status);
|
|
10754
10821
|
return React__default.createElement(Container$15, null, React__default.createElement(StatusCircleContainer, {
|
|
@@ -10766,11 +10833,11 @@ var StatusCircle = /*#__PURE__*/styled__default.span(_templateObject2$1p || (_te
|
|
|
10766
10833
|
return props.color;
|
|
10767
10834
|
});
|
|
10768
10835
|
var Container$15 = /*#__PURE__*/styled__default.div(_templateObject3$N || (_templateObject3$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 10px;\n height: 22px;\n"])));
|
|
10769
|
-
var Text$8 = /*#__PURE__*/styled__default.span(_templateObject4$
|
|
10836
|
+
var Text$8 = /*#__PURE__*/styled__default.span(_templateObject4$n || (_templateObject4$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 13px;\n font-weight: normal;\n text-transform: capitalize;\n font-weight: 500;\n color: ", ";\n"])), function (props) {
|
|
10770
10837
|
return props.status === 'SD' ? '#57DB7A' : props.status === 'AD' ? '#E95252' : 'transparent';
|
|
10771
10838
|
});
|
|
10772
10839
|
|
|
10773
|
-
var _templateObject$1R, _templateObject2$1q, _templateObject3$O, _templateObject4$
|
|
10840
|
+
var _templateObject$1R, _templateObject2$1q, _templateObject3$O, _templateObject4$o, _templateObject5$g, _templateObject6$8, _templateObject7$a, _templateObject8$8, _templateObject9$6;
|
|
10774
10841
|
var _excluded$7 = ["is_deleted", "legacy_reminder_id", "order_data", "priority", "reference", "completed_at", "completed_by"];
|
|
10775
10842
|
var ViewReminderModal = function ViewReminderModal(props) {
|
|
10776
10843
|
var _reminderPayload$assi, _reminderPayload$desc2, _reminderDataById$ord, _reminderDataById$ord2;
|
|
@@ -11015,14 +11082,14 @@ var getDisabledTime = function getDisabledTime(date) {
|
|
|
11015
11082
|
var Right$2 = /*#__PURE__*/styled__default.div(_templateObject$1R || (_templateObject$1R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n height: 100%;\n gap: 15px;\n flex-direction: column;\n padding: 10px;\n"])));
|
|
11016
11083
|
var StyleContainer = /*#__PURE__*/styled__default.div(_templateObject2$1q || (_templateObject2$1q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background: #fff;\n width: 235px;\n"])));
|
|
11017
11084
|
var StyledWrapper = /*#__PURE__*/styled__default.div(_templateObject3$O || (_templateObject3$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 6px 10px;\n align-items: center;\n gap: 5px;\n border-radius: 30px;\n background: #fff;\n"])));
|
|
11018
|
-
var StyledLabel$1 = /*#__PURE__*/styled__default.label(_templateObject4$
|
|
11085
|
+
var StyledLabel$1 = /*#__PURE__*/styled__default.label(_templateObject4$o || (_templateObject4$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n"])));
|
|
11019
11086
|
var StyledSpan = /*#__PURE__*/styled__default.span(_templateObject5$g || (_templateObject5$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #131313;\n font-family: 'Lato', sans-serif;\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n white-space: nowrap;\n"])));
|
|
11020
11087
|
var StyledCheckbox = /*#__PURE__*/styled__default.div(_templateObject6$8 || (_templateObject6$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n input[type='checkbox'] {\n display: none;\n }\n\n input[type='checkbox'] + span:before {\n width: 14px;\n height: 14px;\n border: 1.5px solid #3a3630;\n content: '';\n display: inline-block;\n margin: 0 8px 0 0;\n padding: 0;\n border-radius: 50%;\n }\n\n input[type='checkbox']:checked + span:before {\n background: #feba30;\n border: 1.5px solid #3a3630;\n box-shadow: inset 0px 0px 0px 1px #fff;\n color: #333;\n content: '';\n text-align: center;\n border-radius: 50%;\n display: flex;\n width: 14px;\n height: 14px;\n }\n\n input[type='checkbox']:focus + span::before {\n outline: 0;\n }\n"])));
|
|
11021
11088
|
var OuterDiv = /*#__PURE__*/styled__default.div(_templateObject7$a || (_templateObject7$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-left: 33%;\n"])));
|
|
11022
11089
|
var RoundCheckbox = /*#__PURE__*/styled__default.span(_templateObject8$8 || (_templateObject8$8 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
11023
11090
|
var LabelText = /*#__PURE__*/styled__default.span(_templateObject9$6 || (_templateObject9$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--primary-dark-brown, #3a3630);\n font-family: Lato;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n"])));
|
|
11024
11091
|
|
|
11025
|
-
var _templateObject$1S, _templateObject2$1r, _templateObject3$P, _templateObject4$
|
|
11092
|
+
var _templateObject$1S, _templateObject2$1r, _templateObject3$P, _templateObject4$p, _templateObject5$h, _templateObject6$9;
|
|
11026
11093
|
function HeaderSection(_ref) {
|
|
11027
11094
|
var callUnresolvedTaskApi = _ref.callUnresolvedTaskApi,
|
|
11028
11095
|
setTasksData = _ref.setTasksData;
|
|
@@ -11126,7 +11193,7 @@ function HeaderSection(_ref) {
|
|
|
11126
11193
|
var Header$1 = /*#__PURE__*/styled__default.div(_templateObject$1S || (_templateObject$1S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n"])));
|
|
11127
11194
|
var CustomCancelAndCompleteAction$1 = /*#__PURE__*/styled__default(dmsComponentLibrary.CancelAndCompleteAction)(_templateObject2$1r || (_templateObject2$1r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
11128
11195
|
var ResolveButton = /*#__PURE__*/styled__default.button(_templateObject3$P || (_templateObject3$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n background: #feba30;\n padding: 6px;\n border-radius: 6px;\n font-weight: 600;\n font-size: 13px;\n border: 1px solid #feba30;\n"])));
|
|
11129
|
-
var Title$5 = /*#__PURE__*/styled__default.span(_templateObject4$
|
|
11196
|
+
var Title$5 = /*#__PURE__*/styled__default.span(_templateObject4$p || (_templateObject4$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: 'Roboto', sans-serif;\n font-size: 20px;\n font-weight: 900;\n line-height: 32px;\n text-transform: uppercase;\n color: #3a3630;\n"])));
|
|
11130
11197
|
var StyledOverlay = /*#__PURE__*/styled__default.div(_templateObject5$h || (_templateObject5$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.4);\n backdrop-filter: blur(2px);\n z-index: 1000;\n"])));
|
|
11131
11198
|
var CrossWrapper = /*#__PURE__*/styled__default.div(_templateObject6$9 || (_templateObject6$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
|
|
11132
11199
|
|
|
@@ -11212,14 +11279,14 @@ function ButtonsSection() {
|
|
|
11212
11279
|
var resolvedText = "Resolved on " + formatDate$1((flagById == null ? void 0 : flagById.resolved_at) || 'N/A') + " by " + ((flagById == null ? void 0 : flagById.resolved_by) || 'N/A');
|
|
11213
11280
|
return React__default.createElement(Buttons, null, React__default.createElement(Flex, null, React__default.createElement(dmsComponentLibrary.Label, {
|
|
11214
11281
|
label: "Type"
|
|
11215
|
-
}), React__default.createElement(StyledAntSelect$
|
|
11282
|
+
}), React__default.createElement(StyledAntSelect$6, {
|
|
11216
11283
|
options: taskTypeOptions,
|
|
11217
11284
|
placeholder: "Select Type",
|
|
11218
11285
|
onChange: handleTaskTypeChange,
|
|
11219
11286
|
value: selectedTypeId
|
|
11220
11287
|
})), React__default.createElement(Flex, null, React__default.createElement(dmsComponentLibrary.Label, {
|
|
11221
11288
|
label: "Priority"
|
|
11222
|
-
}), React__default.createElement(StyledAntSelect$
|
|
11289
|
+
}), React__default.createElement(StyledAntSelect$6, {
|
|
11223
11290
|
options: priorityOptions,
|
|
11224
11291
|
placeholder: "Select Type",
|
|
11225
11292
|
onChange: handlePriorityChange,
|
|
@@ -11234,11 +11301,11 @@ function ButtonsSection() {
|
|
|
11234
11301
|
status: "AD"
|
|
11235
11302
|
})));
|
|
11236
11303
|
}
|
|
11237
|
-
var StyledAntSelect$
|
|
11304
|
+
var StyledAntSelect$6 = /*#__PURE__*/styled__default(antd.Select)(_templateObject$1U || (_templateObject$1U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n /* width: 22vw; */\n border-radius: 22px;\n }\n"])));
|
|
11238
11305
|
var Buttons = /*#__PURE__*/styled__default.div(_templateObject2$1t || (_templateObject2$1t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
|
|
11239
11306
|
var Flex = /*#__PURE__*/styled__default.div(_templateObject3$Q || (_templateObject3$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
|
|
11240
11307
|
|
|
11241
|
-
var _templateObject$1V, _templateObject2$1u, _templateObject3$R, _templateObject4$
|
|
11308
|
+
var _templateObject$1V, _templateObject2$1u, _templateObject3$R, _templateObject4$q, _templateObject5$i, _templateObject6$a;
|
|
11242
11309
|
var FlagsFilter = [{
|
|
11243
11310
|
label: 'Private',
|
|
11244
11311
|
value: 'private'
|
|
@@ -11362,11 +11429,11 @@ function RadioButtonsSection() {
|
|
|
11362
11429
|
var ButtonWrapper = /*#__PURE__*/styled__default.div(_templateObject$1V || (_templateObject$1V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n margin-right: 15px;\n"])));
|
|
11363
11430
|
var SaveButton = /*#__PURE__*/styled__default(dmsComponentLibrary.Button)(_templateObject2$1u || (_templateObject2$1u = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
11364
11431
|
var CancelButton = /*#__PURE__*/styled__default(dmsComponentLibrary.Button)(_templateObject3$R || (_templateObject3$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: white;\n color: #3a3630;\n"])));
|
|
11365
|
-
var DropDowns = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
11432
|
+
var DropDowns = /*#__PURE__*/styled__default.div(_templateObject4$q || (_templateObject4$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
|
|
11366
11433
|
var TooltipContent = /*#__PURE__*/styled__default.div(_templateObject5$i || (_templateObject5$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #333;\n color: #fff;\n padding: 5px 10px;\n border-radius: 5px;\n"])));
|
|
11367
11434
|
var Wrapper$i = /*#__PURE__*/styled__default.div(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
11368
11435
|
|
|
11369
|
-
var _templateObject$1W, _templateObject2$1v, _templateObject3$S, _templateObject4$
|
|
11436
|
+
var _templateObject$1W, _templateObject2$1v, _templateObject3$S, _templateObject4$r, _templateObject5$j;
|
|
11370
11437
|
function DetailSection() {
|
|
11371
11438
|
var _flagById$order_data, _flagById$order_data2;
|
|
11372
11439
|
var _useFlagById = useFlagById(),
|
|
@@ -11381,7 +11448,7 @@ function DetailSection() {
|
|
|
11381
11448
|
var Detail = /*#__PURE__*/styled__default.div(_templateObject$1W || (_templateObject$1W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 40%;\n flex-wrap: wrap;\n"])));
|
|
11382
11449
|
var Flex$1 = /*#__PURE__*/styled__default.div(_templateObject2$1v || (_templateObject2$1v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
|
|
11383
11450
|
var Ref = /*#__PURE__*/styled__default.div(_templateObject3$S || (_templateObject3$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n font-family: 'Lato', sans-serif;\n"])));
|
|
11384
|
-
var Order = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
11451
|
+
var Order = /*#__PURE__*/styled__default.div(_templateObject4$r || (_templateObject4$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n text-decoration: underline;\n font-family: 'Lato', sans-serif;\n"])));
|
|
11385
11452
|
var StyledLabel$2 = /*#__PURE__*/styled__default(dmsComponentLibrary.Label)(_templateObject5$j || (_templateObject5$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 10px;\n font-weight: bold;\n"])));
|
|
11386
11453
|
|
|
11387
11454
|
var _templateObject$1X, _templateObject2$1w, _templateObject3$T;
|
|
@@ -11650,7 +11717,7 @@ var ClearBookingStatus = function ClearBookingStatus(props) {
|
|
|
11650
11717
|
};
|
|
11651
11718
|
var CustomCancelAndCompleteAction$3 = /*#__PURE__*/styled__default(dmsComponentLibrary.CancelAndCompleteAction)(_templateObject$1Z || (_templateObject$1Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
11652
11719
|
|
|
11653
|
-
var _templateObject$1_, _templateObject2$1x, _templateObject3$U, _templateObject4$
|
|
11720
|
+
var _templateObject$1_, _templateObject2$1x, _templateObject3$U, _templateObject4$s, _templateObject5$k;
|
|
11654
11721
|
var deliverTypeOptions$1 = [{
|
|
11655
11722
|
label: 'Deliver',
|
|
11656
11723
|
value: 'deliver',
|
|
@@ -11804,10 +11871,10 @@ var UnCancelOrderTable = function UnCancelOrderTable() {
|
|
|
11804
11871
|
var CustomSelectDropdown$1 = /*#__PURE__*/styled__default(antd.Select)(_templateObject$1_ || (_templateObject$1_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n border-radius: 25px !important;\n /* border: none !important; */\n min-width: 100px;\n padding: 0 10px;\n display: flex;\n gap: 8px;\n align-items: center !important;\n\n .ant-select-prefix {\n margin-top: 4px;\n }\n }\n .ant-select-selection-item {\n font-weight: 400;\n font-size: 13px;\n }\n"])));
|
|
11805
11872
|
var StyledTableWrapper$5 = /*#__PURE__*/styled__default.div(_templateObject2$1x || (_templateObject2$1x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n overflow-x: auto;\n background-color: #fff;\n border-radius: 12px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);\n padding: 16px;\n"])));
|
|
11806
11873
|
var StyledDropdown$1 = /*#__PURE__*/styled__default(OrderActionsDropdown)(_templateObject3$U || (_templateObject3$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n"])));
|
|
11807
|
-
var StyledTable$5 = /*#__PURE__*/styled__default.table(_templateObject4$
|
|
11874
|
+
var StyledTable$5 = /*#__PURE__*/styled__default.table(_templateObject4$s || (_templateObject4$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n font-size: 14px;\n color: #333;\n border-spacing: 0 10px;\n\n th,\n td {\n padding: 12px 16px;\n background: #fff;\n }\n\n th {\n background: #f0f2f2;\n\n &:first-child {\n border-top-left-radius: 40px;\n border-bottom-left-radius: 40px;\n }\n\n &:last-child {\n border-top-right-radius: 40px;\n border-bottom-right-radius: 40px;\n }\n }\n\n // This affects ONLY top-level rows\n > tbody > tr {\n background: #fff;\n border-radius: 40px;\n box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1);\n }\n\n // Round the outer row's corners only on first/last td\n > tbody > tr > td:first-child {\n border-top-left-radius: 40px;\n border-bottom-left-radius: 40px;\n }\n\n > tbody > tr > td:last-child {\n border-top-right-radius: 40px;\n border-bottom-right-radius: 40px;\n }\n\n .scrollClass {\n overflow-x: auto;\n }\n\n .emptyTd {\n text-align: center;\n padding: 40px 0;\n color: #999;\n background: transparent;\n box-shadow: none;\n }\n\n td table {\n border-spacing: 0;\n width: 100%;\n }\n\n td table td {\n background: transparent;\n padding: 8px 12px;\n }\n"])));
|
|
11808
11875
|
var ReturnRowWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject5$k || (_templateObject5$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 12px;\n padding: 0 12px;\n width: 100%;\n"])));
|
|
11809
11876
|
|
|
11810
|
-
var _templateObject$1$, _templateObject2$1y, _templateObject3$V, _templateObject4$
|
|
11877
|
+
var _templateObject$1$, _templateObject2$1y, _templateObject3$V, _templateObject4$t;
|
|
11811
11878
|
function UncancelOrder(props) {
|
|
11812
11879
|
var _orderStaticData$unca;
|
|
11813
11880
|
var _useOrderId = useOrderId(),
|
|
@@ -12007,7 +12074,7 @@ function UncancelOrder(props) {
|
|
|
12007
12074
|
var RequiredAsterisk$4 = /*#__PURE__*/styled__default.span(_templateObject$1$ || (_templateObject$1$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n margin-left: 2px;\n font-size: x-small;\n"])));
|
|
12008
12075
|
var Container$16 = /*#__PURE__*/styled__default.div(_templateObject2$1y || (_templateObject2$1y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n padding: 15px;\n gap: 30px;\n border-radius: 16px;\n border: 1px solid#edebe8;\n background: #f8fafc;\n\n .uncancelReasonDropdown {\n flex: 1;\n }\n"])));
|
|
12009
12076
|
var MainContainer$a = /*#__PURE__*/styled__default.div(_templateObject3$V || (_templateObject3$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n padding: 20px;\n gap: 10px;\n"])));
|
|
12010
|
-
var CustomTextArea$4 = /*#__PURE__*/styled__default(dmsComponentLibrary.TextArea)(_templateObject4$
|
|
12077
|
+
var CustomTextArea$4 = /*#__PURE__*/styled__default(dmsComponentLibrary.TextArea)(_templateObject4$t || (_templateObject4$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 346px;\n"])));
|
|
12011
12078
|
|
|
12012
12079
|
var _templateObject$20;
|
|
12013
12080
|
function RemoveFromRoute(props) {
|
|
@@ -12091,11 +12158,11 @@ function RemoveFromRoute(props) {
|
|
|
12091
12158
|
}
|
|
12092
12159
|
var CustomCancelAndCompleteAction$4 = /*#__PURE__*/styled__default(dmsComponentLibrary.CancelAndCompleteAction)(_templateObject$20 || (_templateObject$20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
12093
12160
|
|
|
12094
|
-
var _templateObject$21, _templateObject3$W, _templateObject4$
|
|
12161
|
+
var _templateObject$21, _templateObject3$W, _templateObject4$u, _templateObject5$l, _templateObject7$b, _templateObject8$9, _templateObject9$7;
|
|
12095
12162
|
// Shared styles and components
|
|
12096
12163
|
var Wrapper$j = /*#__PURE__*/styled__default.div(_templateObject$21 || (_templateObject$21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
|
|
12097
12164
|
var SplitContainer = /*#__PURE__*/styled__default.div(_templateObject3$W || (_templateObject3$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* width: 95%; */\n min-width: 25vw;\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
12098
|
-
var StyledAntSelect$
|
|
12165
|
+
var StyledAntSelect$7 = /*#__PURE__*/styled__default(antd.Select)(_templateObject4$u || (_templateObject4$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n /* width: 22vw; */\n border-radius: 22px;\n }\n"])));
|
|
12099
12166
|
var Label$f = /*#__PURE__*/styled__default.label(_templateObject5$l || (_templateObject5$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
|
|
12100
12167
|
var ContentContainer$6 = /*#__PURE__*/styled__default.div(_templateObject7$b || (_templateObject7$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 12px 12px;\n margin: 5px 14px;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 15px;\n background: #f8fafc;\n border-radius: 15px;\n"])));
|
|
12101
12168
|
var Row$6 = /*#__PURE__*/styled__default.div(_templateObject8$9 || (_templateObject8$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
@@ -12113,7 +12180,7 @@ var FormRow = function FormRow(_ref) {
|
|
|
12113
12180
|
}, " * ")), children);
|
|
12114
12181
|
};
|
|
12115
12182
|
|
|
12116
|
-
var _templateObject$22, _templateObject2$1z, _templateObject3$X, _templateObject4$
|
|
12183
|
+
var _templateObject$22, _templateObject2$1z, _templateObject3$X, _templateObject4$v, _templateObject5$m;
|
|
12117
12184
|
dayjs.extend(utc);
|
|
12118
12185
|
dayjs.extend(dateFns.isValid);
|
|
12119
12186
|
function CreateReminderModal() {
|
|
@@ -12385,7 +12452,7 @@ function CreateReminderModal() {
|
|
|
12385
12452
|
return React__default.createElement(Wrapper$j, null, React__default.createElement(SplitContainer, null, React__default.createElement(FormRow, {
|
|
12386
12453
|
label: "Department",
|
|
12387
12454
|
required: true
|
|
12388
|
-
}, React__default.createElement(DoubleDropdownContainer, null, React__default.createElement(StyledAntSelect$
|
|
12455
|
+
}, React__default.createElement(DoubleDropdownContainer, null, React__default.createElement(StyledAntSelect$8, {
|
|
12389
12456
|
options: deptData,
|
|
12390
12457
|
style: {
|
|
12391
12458
|
width: '10vw'
|
|
@@ -12397,7 +12464,7 @@ function CreateReminderModal() {
|
|
|
12397
12464
|
}))), React__default.createElement(FormRow, {
|
|
12398
12465
|
label: "Assigned To",
|
|
12399
12466
|
required: true
|
|
12400
|
-
}, React__default.createElement(StyledAntSelect$
|
|
12467
|
+
}, React__default.createElement(StyledAntSelect$8, {
|
|
12401
12468
|
options: userOptions,
|
|
12402
12469
|
placeholder: "Select User",
|
|
12403
12470
|
onChange: handleSelectUser,
|
|
@@ -12479,8 +12546,8 @@ function CreateReminderModal() {
|
|
|
12479
12546
|
}
|
|
12480
12547
|
var StyleContainer$1 = /*#__PURE__*/styled__default.div(_templateObject$22 || (_templateObject$22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background: var(--Flowkit-White, #fff);\n"])));
|
|
12481
12548
|
var Label$g = /*#__PURE__*/styled__default.label(_templateObject2$1z || (_templateObject2$1z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
|
|
12482
|
-
var StyledAntSelect$
|
|
12483
|
-
var StyledTextArea$2 = /*#__PURE__*/styled__default(dmsComponentLibrary.TextArea)(_templateObject4$
|
|
12549
|
+
var StyledAntSelect$8 = /*#__PURE__*/styled__default(antd.Select)(_templateObject3$X || (_templateObject3$X = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n width: 20vw;\n border-radius: 22px;\n }\n"])));
|
|
12550
|
+
var StyledTextArea$2 = /*#__PURE__*/styled__default(dmsComponentLibrary.TextArea)(_templateObject4$v || (_templateObject4$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 12px;\n align-items: flex-start;\n gap: 4px;\n align-self: stretch;\n border-radius: 10px;\n border: 1px solid var(--Neutral-Gray-Gray-100, #e0e2e7);\n background: var(--Flowkit-White, #fff);\n resize: none;\n height: 100px;\n"])));
|
|
12484
12551
|
var StyledLink = /*#__PURE__*/styled__default.div(_templateObject5$m || (_templateObject5$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--contextual-blue, #6396e5);\n font-family: Lato;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n cursor: pointer;\n"])));
|
|
12485
12552
|
|
|
12486
12553
|
var _templateObject$23;
|
|
@@ -12658,7 +12725,7 @@ function CreateTaskModal() {
|
|
|
12658
12725
|
return React__default.createElement(Wrapper$j, null, React__default.createElement(SplitContainer, null, React__default.createElement(FormRow, {
|
|
12659
12726
|
label: "Task Type",
|
|
12660
12727
|
required: true
|
|
12661
|
-
}, React__default.createElement(StyledAntSelect$
|
|
12728
|
+
}, React__default.createElement(StyledAntSelect$7, {
|
|
12662
12729
|
options: taskTypeOptions,
|
|
12663
12730
|
placeholder: "Select Type",
|
|
12664
12731
|
onChange: handleTaskTypeChange,
|
|
@@ -13180,8 +13247,8 @@ var ArrowDownIcon = function ArrowDownIcon(_ref) {
|
|
|
13180
13247
|
fill: fill
|
|
13181
13248
|
}), React__default.createElement("path", {
|
|
13182
13249
|
opacity: "0.4",
|
|
13183
|
-
|
|
13184
|
-
|
|
13250
|
+
fillRule: "evenodd",
|
|
13251
|
+
clipRule: "evenodd",
|
|
13185
13252
|
d: "M6.69104 9.8912C6.82604 9.75637 7.00903 9.68063 7.19984 9.68063C7.39064 9.68063 7.57363 9.75637 7.70864 9.8912L11.9998 14.1824L16.291 9.8912C16.4275 9.76402 16.608 9.69478 16.7946 9.69807C16.9811 9.70136 17.1591 9.77693 17.291 9.90884C17.4229 10.0408 17.4985 10.2187 17.5018 10.4053C17.5051 10.5918 17.4358 10.7723 17.3086 10.9088L12.5086 15.7088C12.3736 15.8436 12.1906 15.9194 11.9998 15.9194C11.809 15.9194 11.626 15.8436 11.491 15.7088L6.69104 10.9088C6.5562 10.7738 6.48047 10.5908 6.48047 10.4C6.48047 10.2092 6.5562 10.0262 6.69104 9.8912Z",
|
|
13186
13253
|
fill: "#3A3630"
|
|
13187
13254
|
}));
|
|
@@ -13189,7 +13256,7 @@ var ArrowDownIcon = function ArrowDownIcon(_ref) {
|
|
|
13189
13256
|
|
|
13190
13257
|
var _templateObject$28, _templateObject2$1C;
|
|
13191
13258
|
function Options() {
|
|
13192
|
-
var _orderStatus$, _orderStatus$2,
|
|
13259
|
+
var _orderStatus$, _orderStatus$2, _orderDetails$order_r;
|
|
13193
13260
|
var _useCurrentAction = useCurrentAction(),
|
|
13194
13261
|
setCurrentAction = _useCurrentAction[1];
|
|
13195
13262
|
var _useOrderId = useOrderId(),
|
|
@@ -13219,8 +13286,8 @@ function Options() {
|
|
|
13219
13286
|
}
|
|
13220
13287
|
};
|
|
13221
13288
|
var isReleased = (_orderStatus$ = orderStatus[0]) == null ? void 0 : _orderStatus$.released;
|
|
13222
|
-
|
|
13223
|
-
var isRouted = ((_orderStatus$
|
|
13289
|
+
// const routedValue = orderStatus[0]?.routed;
|
|
13290
|
+
var isRouted = ((_orderStatus$2 = orderStatus[0]) == null ? void 0 : _orderStatus$2.routed) && (orderDetails == null || (_orderDetails$order_r = orderDetails.order_routes) == null ? void 0 : _orderDetails$order_r.id);
|
|
13224
13291
|
var isOrderOnHold = (orderDetails == null ? void 0 : orderDetails.status) === 'OO';
|
|
13225
13292
|
var isOrderCancelled = (orderDetails == null ? void 0 : orderDetails.status) === 'CO';
|
|
13226
13293
|
var filteredOptions = optionsMenu == null ? void 0 : optionsMenu.filter(function (option) {
|
|
@@ -13248,9 +13315,9 @@ function Options() {
|
|
|
13248
13315
|
if (!isRouted && option.value === 'log-service-refusal') {
|
|
13249
13316
|
shouldExclude = true;
|
|
13250
13317
|
}
|
|
13251
|
-
if (routedValue && option.value === 'remove-from-route') {
|
|
13252
|
-
|
|
13253
|
-
}
|
|
13318
|
+
// if (routedValue && option.value === 'remove-from-route') {
|
|
13319
|
+
// shouldExclude = true;
|
|
13320
|
+
// }
|
|
13254
13321
|
return !shouldExclude;
|
|
13255
13322
|
});
|
|
13256
13323
|
var menuItems = {
|
|
@@ -13845,7 +13912,7 @@ var NotifyFlag = function NotifyFlag() {
|
|
|
13845
13912
|
}));
|
|
13846
13913
|
};
|
|
13847
13914
|
|
|
13848
|
-
var _templateObject$2i, _templateObject2$1J, _templateObject3$$, _templateObject4$
|
|
13915
|
+
var _templateObject$2i, _templateObject2$1J, _templateObject3$$, _templateObject4$w, _templateObject5$n, _templateObject6$b, _templateObject7$c, _templateObject8$a, _templateObject9$8, _templateObject10$4, _templateObject11$3, _templateObject12$1;
|
|
13849
13916
|
function Notification() {
|
|
13850
13917
|
var _orderData$order_rout, _activeTasks$filter, _closedTasks$filter;
|
|
13851
13918
|
var _useTabType = useTabType(),
|
|
@@ -14111,7 +14178,7 @@ function Notification() {
|
|
|
14111
14178
|
var Container$1a = /*#__PURE__*/styled__default.div(_templateObject$2i || (_templateObject$2i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 20px;\n padding: 10px;\n border-bottom: 1px solid #ccc;\n"])));
|
|
14112
14179
|
var Loader = /*#__PURE__*/styled__default.div(_templateObject2$1J || (_templateObject2$1J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n align-items: center;\n justify-content: center;\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
14113
14180
|
var Spinner = /*#__PURE__*/styled__default.div(_templateObject3$$ || (_templateObject3$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 4px solid rgba(0, 0, 0, 0.1);\n border-left-color: #3a3630;\n border-radius: 50%;\n width: 40px;\n height: 40px;\n animation: spin 1s linear infinite;\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n"])));
|
|
14114
|
-
var FlagContainer = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
14181
|
+
var FlagContainer = /*#__PURE__*/styled__default.div(_templateObject4$w || (_templateObject4$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 8px;\n background-color: #3a3630;\n border-radius: 10px;\n"])));
|
|
14115
14182
|
var TabsData = /*#__PURE__*/styled__default.div(_templateObject5$n || (_templateObject5$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 20px;\n padding: 10px;\n"])));
|
|
14116
14183
|
var ActiveCount = /*#__PURE__*/styled__default.div(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #ffffff;\n padding: 1px 5px;\n background-color: #6396e5;\n border-radius: 6px;\n"])));
|
|
14117
14184
|
var ClosedCount = /*#__PURE__*/styled__default.div(_templateObject7$c || (_templateObject7$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #ffffff;\n padding: 1px 5px;\n background-color: #e95252;\n border-radius: 6px;\n"])));
|
|
@@ -14350,7 +14417,7 @@ function Order$1() {
|
|
|
14350
14417
|
}
|
|
14351
14418
|
var Table$2 = /*#__PURE__*/styled__default.div(_templateObject$2p || (_templateObject$2p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
14352
14419
|
|
|
14353
|
-
var _templateObject$2q, _templateObject2$1P, _templateObject3$11, _templateObject4$
|
|
14420
|
+
var _templateObject$2q, _templateObject2$1P, _templateObject3$11, _templateObject4$x;
|
|
14354
14421
|
function OrderView() {
|
|
14355
14422
|
antd.notification.config({
|
|
14356
14423
|
top: 150
|
|
@@ -14708,7 +14775,7 @@ function OrderView() {
|
|
|
14708
14775
|
var MainContainer$b = /*#__PURE__*/styled__default.div(_templateObject$2q || (_templateObject$2q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding-bottom: 30px;\n"])));
|
|
14709
14776
|
var SplitLayout$1 = /*#__PURE__*/styled__default.div(_templateObject2$1P || (_templateObject2$1P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n @media (max-width: 1024px) {\n display: contents;\n }\n"])));
|
|
14710
14777
|
var NotesContainer = /*#__PURE__*/styled__default.div(_templateObject3$11 || (_templateObject3$11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n"])));
|
|
14711
|
-
var TablesContainer = /*#__PURE__*/styled__default.div(_templateObject4$
|
|
14778
|
+
var TablesContainer = /*#__PURE__*/styled__default.div(_templateObject4$x || (_templateObject4$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 15px;\n"])));
|
|
14712
14779
|
|
|
14713
14780
|
var _templateObject2$1Q;
|
|
14714
14781
|
var StyledBulkItem$1 = /*#__PURE__*/styled__default.div(_templateObject2$1Q || (_templateObject2$1Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 8px 12px;\n display: flex;\n align-items: center;\n /* border-right: 1px solid #d0d5dd; */\n gap: 8px;\n cursor: pointer;\n position: relative;\n\n @media screen and (max-width: 1030px) {\n padding: 8px 11px;\n }\n\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n box-sizing: border-box;\n top: 54px;\n }\n &:last-child {\n border-right: none;\n }\n &.active svg.arrowDown {\n transform: rotate(180deg);\n }\n label {\n color: #6a7378;\n text-align: center;\n font-family: 'Open Sans';\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n cursor: pointer;\n }\n\n &.noPadding {\n padding: 0;\n }\n"])));
|