@bjsdistribution/dms-client-return 0.0.12 → 0.0.14
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-daily-overview/common/css/TableStyle.d.ts +13 -30
- package/dist/components/order-view/store.d.ts +77 -28
- package/dist/components/order-view/types.d.ts +61 -11
- package/dist/components/order-view/utils.d.ts +4 -0
- package/dist/dms-client-return.cjs.development.js +1547 -1009
- 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 +1549 -1011
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/common/expand-collapse/index.tsx +4 -4
- package/src/components/order-daily-overview/common/css/TableStyle.tsx +42 -342
- package/src/components/order-daily-overview/index.tsx +2 -2
- package/src/components/order-daily-overview/return-after-table/ReturnAfterTable.tsx +2 -2
- package/src/components/order-daily-overview/return-order-table/ReturnTable.tsx +2 -2
- package/src/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.ts +2 -2
- package/src/components/order-daily-overview/table/table-data/styles.ts +1 -1
- package/src/components/order-view/DynamicTable.tsx +12 -3
- package/src/components/order-view/flags-action-modal/Actions.tsx +1 -2
- package/src/components/order-view/general-information/Status.tsx +13 -17
- package/src/components/order-view/generic-table/AuditLogs.tsx +81 -19
- package/src/components/order-view/index.tsx +192 -192
- package/src/components/order-view/modalsPopup/ModalManager.tsx +2 -2
- package/src/components/order-view/modalsPopup/ProductAction.tsx +1 -1
- package/src/components/order-view/notes/AddNote.tsx +2 -3
- package/src/components/order-view/notes/index.tsx +9 -22
- package/src/components/order-view/order-details/expanded-content/footer/index.tsx +90 -73
- package/src/components/order-view/order-details/expanded-content/instruction-section/DeliveryInstructions.tsx +2 -9
- package/src/components/order-view/order-details/expanded-content/orders-section/Droptime.tsx +2 -10
- package/src/components/order-view/order-details/expanded-content/orders-section/VehicleType.tsx +16 -15
- package/src/components/order-view/order-details/expanded-content/services-section/AssemblyType.tsx +88 -15
- package/src/components/order-view/order-details/expanded-content/services-section/DeliveryPoint.tsx +1 -13
- package/src/components/order-view/order-details/expanded-content/services-section/OrderServices.tsx +141 -16
- package/src/components/order-view/order-details/expanded-content/services-section/ServiceType.tsx +1 -13
- package/src/components/order-view/order-details/expanded-content/services-section/TimedService.tsx +19 -18
- package/src/components/order-view/products-info/expanded-content/products/index.tsx +2 -2
- package/src/components/order-view/return-client-products/ProductTable.tsx +1 -1
- package/src/components/order-view/return-client-products/product-table/ReturnProductTable.tsx +79 -70
- package/src/components/order-view/return-client-products/product-table-footer/ProductDetailsFooter.tsx +5 -5
- package/src/components/order-view/store.ts +216 -51
- package/src/components/order-view/system-event-logs/expanded-content/index.tsx +6 -10
- package/src/components/order-view/toolbox-resources/expanded-content/index.tsx +68 -6
- package/src/components/order-view/types.ts +89 -33
- package/src/components/order-view/utils.ts +20 -17
- package/src/index.tsx +13 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { useEffect, useState, useMemo, useRef, Suspense } from 'react';
|
|
1
|
+
import React, { useEffect, useState, useMemo, useCallback, useRef, Suspense } from 'react';
|
|
2
2
|
import { useLocation, useParams, NavLink, useNavigate, Routes, Route } from 'react-router-dom';
|
|
3
3
|
import styled, { css, keyframes } from 'styled-components';
|
|
4
|
-
import { Label as Label$h, Input as Input$1, TextArea, FormSection, displayValueOrNA as displayValueOrNA$1, SelectDropdown, dropdownStyles, RadioButtonGroup as RadioButtonGroup$1, Switch, Button as Button$1, useApiHook,
|
|
4
|
+
import { Label as Label$h, Input as Input$1, TextArea, FormSection, displayValueOrNA as displayValueOrNA$1, SelectDropdown, dropdownStyles, RadioButtonGroup as RadioButtonGroup$1, Switch, getBaseEndpoint, Button as Button$1, useApiHook, formatDateTime, Alert, Checkbox as Checkbox$1, SectionHeader, CrossIcon, AntSelect, AntTable, CustomRating, DeleteIcon, CancelationModal, CancelAndCompleteAction, filterDropdownStyles, BackgroundModal as BackgroundModal$1, AntModal } from '@bjsdistribution/dms-component-library';
|
|
5
5
|
import { useAtom, atom } from 'jotai';
|
|
6
6
|
import { atomWithReducer } from 'jotai/utils';
|
|
7
7
|
import { DatePicker, notification, Skeleton, Upload, message, Input as Input$2, Select, Empty, Checkbox as Checkbox$2, Tabs } from 'antd';
|
|
@@ -550,9 +550,10 @@ var IconContainer = /*#__PURE__*/styled.div(_templateObject$1 || (_templateObjec
|
|
|
550
550
|
var currentActionAtom = /*#__PURE__*/atom(undefined);
|
|
551
551
|
var isOnHold = /*#__PURE__*/atom(false);
|
|
552
552
|
var orderStaticDataAtom = /*#__PURE__*/atom({});
|
|
553
|
-
var
|
|
554
|
-
|
|
555
|
-
|
|
553
|
+
var customerInfoAtom = /*#__PURE__*/atom({
|
|
554
|
+
recipient_name: '',
|
|
555
|
+
postcode: ''
|
|
556
|
+
});
|
|
556
557
|
var ordersInitialValue = {
|
|
557
558
|
depot_id: null,
|
|
558
559
|
gsit_order_id: null,
|
|
@@ -577,6 +578,9 @@ var ordersInitialValue = {
|
|
|
577
578
|
other_instructions: null,
|
|
578
579
|
schedule_after: null,
|
|
579
580
|
vehicle_type: null,
|
|
581
|
+
order_locked_by: null,
|
|
582
|
+
delivery_instructions: null,
|
|
583
|
+
drop_time: null,
|
|
580
584
|
order_recipient: {
|
|
581
585
|
id: null,
|
|
582
586
|
order_id: null,
|
|
@@ -618,16 +622,8 @@ var ordersInitialValue = {
|
|
|
618
622
|
order_eta_updates: [],
|
|
619
623
|
order_delivery_declined_dates: [],
|
|
620
624
|
order_communications: [],
|
|
621
|
-
id: null
|
|
622
|
-
|
|
623
|
-
var orderProductInitialvalue = {
|
|
624
|
-
code: '',
|
|
625
|
-
description: '',
|
|
626
|
-
sku: '',
|
|
627
|
-
weight: 0,
|
|
628
|
-
cube: 0,
|
|
629
|
-
order_id: 0,
|
|
630
|
-
product_type_id: 0
|
|
625
|
+
id: null,
|
|
626
|
+
name: ''
|
|
631
627
|
};
|
|
632
628
|
var unrecieveOrderProducts = {
|
|
633
629
|
unrecieve_reason_id: 0,
|
|
@@ -647,20 +643,14 @@ function useCurrentAction() {
|
|
|
647
643
|
function useOrderStaticData() {
|
|
648
644
|
return useAtom(orderStaticDataAtom);
|
|
649
645
|
}
|
|
650
|
-
function
|
|
651
|
-
return useAtom(
|
|
652
|
-
}
|
|
653
|
-
function useReturnData() {
|
|
654
|
-
return useAtom(returnDataAtom);
|
|
655
|
-
}
|
|
656
|
-
function useReturnAfterOrderData() {
|
|
657
|
-
return useAtom(returnAfterOrderAtom);
|
|
646
|
+
function useCustomerInfo() {
|
|
647
|
+
return useAtom(customerInfoAtom);
|
|
658
648
|
}
|
|
659
649
|
function useIsOnHoldOrder() {
|
|
660
650
|
return useAtom(isOnHold);
|
|
661
651
|
}
|
|
662
652
|
//value
|
|
663
|
-
var orderId = /*#__PURE__*/atom(
|
|
653
|
+
var orderId = /*#__PURE__*/atom([]);
|
|
664
654
|
var useOrderId = function useOrderId() {
|
|
665
655
|
return useAtom(orderId);
|
|
666
656
|
};
|
|
@@ -673,7 +663,7 @@ var prevOrderDetails = /*#__PURE__*/atom(ordersInitialValue);
|
|
|
673
663
|
function usePrevOrderDetails() {
|
|
674
664
|
return useAtom(prevOrderDetails);
|
|
675
665
|
}
|
|
676
|
-
var customerDetails = /*#__PURE__*/atom(
|
|
666
|
+
var customerDetails = /*#__PURE__*/atom({});
|
|
677
667
|
function useCustomerDetails() {
|
|
678
668
|
return useAtom(customerDetails);
|
|
679
669
|
}
|
|
@@ -693,7 +683,7 @@ var deleteProdId = /*#__PURE__*/atom([]);
|
|
|
693
683
|
function useDeleteProdsID() {
|
|
694
684
|
return useAtom(deleteProdId);
|
|
695
685
|
}
|
|
696
|
-
var createOrderProduct = /*#__PURE__*/atom(
|
|
686
|
+
var createOrderProduct = /*#__PURE__*/atom([]);
|
|
697
687
|
function useCreateOrderProducts() {
|
|
698
688
|
return useAtom(createOrderProduct);
|
|
699
689
|
}
|
|
@@ -705,23 +695,45 @@ var updateOrderProduct = /*#__PURE__*/atom(updateOrderProducts);
|
|
|
705
695
|
function useUpdateOrderProducts() {
|
|
706
696
|
return useAtom(updateOrderProduct);
|
|
707
697
|
}
|
|
708
|
-
var
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
698
|
+
var CallAPi = /*#__PURE__*/atom(false);
|
|
699
|
+
function useCallAPi() {
|
|
700
|
+
return useAtom(CallAPi);
|
|
701
|
+
}
|
|
702
|
+
var errorAtom = /*#__PURE__*/atom({
|
|
703
|
+
homeContactError: '',
|
|
704
|
+
workCOntanctError: '',
|
|
705
|
+
mobileError: '',
|
|
706
|
+
emailError: '',
|
|
707
|
+
w3wError: '',
|
|
708
|
+
postCodeError: ''
|
|
709
|
+
});
|
|
710
|
+
var orderProductResources = /*#__PURE__*/atom([]);
|
|
711
|
+
function useOrderProductsResources() {
|
|
712
|
+
return useAtom(orderProductResources);
|
|
713
|
+
}
|
|
714
|
+
var orderProductToolbox = /*#__PURE__*/atom([]);
|
|
715
|
+
function useOrderProductsToolbox() {
|
|
716
|
+
return useAtom(orderProductToolbox);
|
|
717
|
+
}
|
|
718
|
+
var locationOptions = /*#__PURE__*/atom([]);
|
|
719
|
+
function useLocationOptions() {
|
|
720
|
+
return useAtom(locationOptions);
|
|
713
721
|
}
|
|
714
722
|
var orderProductSystemLogs = /*#__PURE__*/atom([]);
|
|
715
723
|
function useOrderProductSystemLogs() {
|
|
716
724
|
return useAtom(orderProductSystemLogs);
|
|
717
725
|
}
|
|
718
|
-
var
|
|
719
|
-
function
|
|
720
|
-
return useAtom(
|
|
726
|
+
var eventNotesData = /*#__PURE__*/atom([]);
|
|
727
|
+
function useEventNotesData() {
|
|
728
|
+
return useAtom(eventNotesData);
|
|
721
729
|
}
|
|
722
|
-
var
|
|
723
|
-
function
|
|
724
|
-
return useAtom(
|
|
730
|
+
var returnAfterOrderAtom = /*#__PURE__*/atom([]);
|
|
731
|
+
function useReturnAfterOrderData() {
|
|
732
|
+
return useAtom(returnAfterOrderAtom);
|
|
733
|
+
}
|
|
734
|
+
var clientDataAtom = /*#__PURE__*/atom([]);
|
|
735
|
+
function useClientData() {
|
|
736
|
+
return useAtom(clientDataAtom);
|
|
725
737
|
}
|
|
726
738
|
var NotesLoading = /*#__PURE__*/atom(true);
|
|
727
739
|
var UseNotesLoading = function UseNotesLoading() {
|
|
@@ -731,12 +743,57 @@ var notes = /*#__PURE__*/atom([]);
|
|
|
731
743
|
function usegetNotes() {
|
|
732
744
|
return useAtom(notes);
|
|
733
745
|
}
|
|
734
|
-
var
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
746
|
+
var moduleIds = /*#__PURE__*/atom(null);
|
|
747
|
+
function usemoduleIds() {
|
|
748
|
+
return useAtom(moduleIds);
|
|
749
|
+
}
|
|
750
|
+
var callAPi = /*#__PURE__*/atom(false);
|
|
751
|
+
function useLogsCallAPi() {
|
|
752
|
+
return useAtom(callAPi);
|
|
753
|
+
}
|
|
754
|
+
var gsitCUstomerId = /*#__PURE__*/atom({});
|
|
755
|
+
function useGsitCUstomerId() {
|
|
756
|
+
return useAtom(gsitCUstomerId);
|
|
757
|
+
}
|
|
758
|
+
var CUstomerId = /*#__PURE__*/atom(undefined);
|
|
759
|
+
function useCUstomerId() {
|
|
760
|
+
return useAtom(CUstomerId);
|
|
761
|
+
}
|
|
762
|
+
var RouteId = /*#__PURE__*/atom(undefined);
|
|
763
|
+
function useRouteId() {
|
|
764
|
+
return useAtom(RouteId);
|
|
765
|
+
}
|
|
766
|
+
var gsitOrderId = /*#__PURE__*/atom(undefined);
|
|
767
|
+
function useGsitOrderId() {
|
|
768
|
+
return useAtom(gsitOrderId);
|
|
769
|
+
}
|
|
770
|
+
var orderProductId = /*#__PURE__*/atom(undefined);
|
|
771
|
+
function useOrderProductId() {
|
|
772
|
+
return useAtom(orderProductId);
|
|
773
|
+
}
|
|
774
|
+
var returnDataAtom = /*#__PURE__*/atom([]);
|
|
775
|
+
function useReturnData() {
|
|
776
|
+
return useAtom(returnDataAtom);
|
|
777
|
+
}
|
|
778
|
+
var apiCalling = /*#__PURE__*/atom(false);
|
|
779
|
+
function useApiCalling() {
|
|
780
|
+
return useAtom(apiCalling);
|
|
781
|
+
}
|
|
782
|
+
var liveRecalling = /*#__PURE__*/atom(false);
|
|
783
|
+
//re api call of live status
|
|
784
|
+
function useLiveRecalling() {
|
|
785
|
+
return useAtom(liveRecalling);
|
|
786
|
+
}
|
|
787
|
+
var selectedTabKeyAtom = /*#__PURE__*/atom('1');
|
|
788
|
+
var letselectedProductIdAtom = /*#__PURE__*/atom(null);
|
|
789
|
+
// const BulkUPdateDisabledState = atom<boolean>(false);
|
|
790
|
+
// export const useBulkUPdateDisabledState = () => {
|
|
791
|
+
// return useAtom(BulkUPdateDisabledState);
|
|
792
|
+
// };
|
|
793
|
+
var auditLogToggle = /*#__PURE__*/atom(true);
|
|
794
|
+
var SeteauditLogToggle = function SeteauditLogToggle() {
|
|
795
|
+
return useAtom(auditLogToggle);
|
|
796
|
+
};
|
|
740
797
|
// Popup state Manage
|
|
741
798
|
var initialState = null;
|
|
742
799
|
var popupReducer = function popupReducer(state, action) {
|
|
@@ -745,6 +802,12 @@ var popupReducer = function popupReducer(state, action) {
|
|
|
745
802
|
return {
|
|
746
803
|
state: state
|
|
747
804
|
};
|
|
805
|
+
}
|
|
806
|
+
if (action.type === 'bulkUpdate') {
|
|
807
|
+
state = 'bulkUpdate';
|
|
808
|
+
return {
|
|
809
|
+
state: state
|
|
810
|
+
};
|
|
748
811
|
} else if (action.type === 'addProduct') {
|
|
749
812
|
state = 'addProduct';
|
|
750
813
|
return {
|
|
@@ -911,6 +974,9 @@ function Postcode() {
|
|
|
911
974
|
var Wrapper$2 = /*#__PURE__*/styled.div(_templateObject$4 || (_templateObject$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
|
|
912
975
|
var Container$3 = /*#__PURE__*/styled.div(_templateObject2$3 || (_templateObject2$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
913
976
|
|
|
977
|
+
var _excluded$1 = ["order_recipient", "order_routes", "order_services_detail", "order_services"],
|
|
978
|
+
_excluded2 = ["order_recipient", "order_routes", "order_services_detail", "order_services"],
|
|
979
|
+
_excluded3 = ["id", "new_id"];
|
|
914
980
|
var capitalize = function capitalize(input) {
|
|
915
981
|
if (!input) {
|
|
916
982
|
return;
|
|
@@ -1001,17 +1067,143 @@ var getCookie = function getCookie(name) {
|
|
|
1001
1067
|
return null;
|
|
1002
1068
|
};
|
|
1003
1069
|
var handleKeyDown = function handleKeyDown(e) {
|
|
1004
|
-
// Allowed keys: numbers (0-9), '.', '-'
|
|
1070
|
+
// Allowed keys: numbers (0-9), '.', '-', '+'
|
|
1005
1071
|
var allowedKeys = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '-', '+'];
|
|
1006
|
-
// Allow backspace, delete and Tab keys
|
|
1072
|
+
// Allow backspace, delete, and Tab keys
|
|
1007
1073
|
if (e.key === 'Backspace' || e.key === 'Delete' || e.key === 'Tab') {
|
|
1008
1074
|
return;
|
|
1009
1075
|
}
|
|
1076
|
+
var input = e.currentTarget;
|
|
1077
|
+
// Check if '+' is allowed only at the start and not duplicated
|
|
1078
|
+
if (e.key === '+') {
|
|
1079
|
+
// Prevent if '+' is not at the start or there is already a '+' in the input
|
|
1080
|
+
if (input.selectionStart !== 0 || input.value.includes('+')) {
|
|
1081
|
+
e.preventDefault();
|
|
1082
|
+
return;
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1010
1085
|
// Prevent input if key is not in allowedKeys
|
|
1011
1086
|
if (!allowedKeys.includes(e.key)) {
|
|
1012
1087
|
e.preventDefault();
|
|
1013
1088
|
}
|
|
1014
1089
|
};
|
|
1090
|
+
var generateObj = function generateObj(keys, sourceObj) {
|
|
1091
|
+
var newObj = {};
|
|
1092
|
+
keys.forEach(function (key) {
|
|
1093
|
+
if (key in sourceObj) {
|
|
1094
|
+
newObj[key] = sourceObj[key];
|
|
1095
|
+
}
|
|
1096
|
+
});
|
|
1097
|
+
return newObj;
|
|
1098
|
+
};
|
|
1099
|
+
var findDifference = function findDifference(obj1, obj2) {
|
|
1100
|
+
// Check if obj1 or obj2 is null or undefined and return an empty object if so
|
|
1101
|
+
if (!obj1 || !obj2) {
|
|
1102
|
+
return {};
|
|
1103
|
+
}
|
|
1104
|
+
var diffKeys = Object.keys(obj1).reduce(function (acc, key) {
|
|
1105
|
+
if (!(key in obj2) || obj1[key] !== obj2[key]) {
|
|
1106
|
+
acc.push(key);
|
|
1107
|
+
}
|
|
1108
|
+
return acc;
|
|
1109
|
+
}, []);
|
|
1110
|
+
Object.keys(obj2).forEach(function (key) {
|
|
1111
|
+
if (!(key in obj1) || obj1[key] !== obj2[key]) {
|
|
1112
|
+
if (!diffKeys.includes(key)) {
|
|
1113
|
+
diffKeys.push(key);
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
});
|
|
1117
|
+
var newObj = generateObj(diffKeys, obj2);
|
|
1118
|
+
return newObj;
|
|
1119
|
+
};
|
|
1120
|
+
var filterObject = function filterObject(obj, keysToRemove) {
|
|
1121
|
+
var filteredObj = Object.keys(obj).reduce(function (acc, key) {
|
|
1122
|
+
if (!keysToRemove.includes(key)) {
|
|
1123
|
+
acc[key] = obj[key];
|
|
1124
|
+
}
|
|
1125
|
+
return acc;
|
|
1126
|
+
}, {});
|
|
1127
|
+
return filteredObj;
|
|
1128
|
+
};
|
|
1129
|
+
var isObjectEmpty = function isObjectEmpty(objectName) {
|
|
1130
|
+
return Object.keys(objectName).length === 0;
|
|
1131
|
+
};
|
|
1132
|
+
var compareArrays = function compareArrays(arr, newArr) {
|
|
1133
|
+
var required_output = [];
|
|
1134
|
+
newArr.forEach(function (newObj) {
|
|
1135
|
+
arr.forEach(function (oldObj) {
|
|
1136
|
+
if (!newObj.hasOwnProperty('id')) {
|
|
1137
|
+
required_output.push(newObj);
|
|
1138
|
+
} else {
|
|
1139
|
+
var newObjFiltered = {};
|
|
1140
|
+
if (newObj.id === oldObj.id) {
|
|
1141
|
+
Object.keys(newObj).forEach(function (key) {
|
|
1142
|
+
if (key !== 'id' && oldObj.hasOwnProperty(key) && newObj[key] !== oldObj[key]) {
|
|
1143
|
+
//@ts-ignore
|
|
1144
|
+
newObjFiltered[key] = newObj[key];
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
var isEmpty = isObjectEmpty(newObjFiltered);
|
|
1148
|
+
if (!isEmpty) {
|
|
1149
|
+
var clone = _extends({}, newObjFiltered, {
|
|
1150
|
+
id: newObj.id
|
|
1151
|
+
});
|
|
1152
|
+
required_output.push(clone);
|
|
1153
|
+
}
|
|
1154
|
+
// const newObjFiltered = { id: newObj.id };
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
});
|
|
1158
|
+
});
|
|
1159
|
+
return required_output;
|
|
1160
|
+
};
|
|
1161
|
+
var compareOrderDetailsStates = function compareOrderDetailsStates(oldData, newData) {
|
|
1162
|
+
var oldOrderRecipient = oldData.order_recipient,
|
|
1163
|
+
oldOrderRoutes = oldData.order_routes,
|
|
1164
|
+
oldOrderServicesDetail = oldData.order_services_detail,
|
|
1165
|
+
oldOrderServices = oldData.order_services,
|
|
1166
|
+
oldRequiredData = _objectWithoutPropertiesLoose(oldData, _excluded$1);
|
|
1167
|
+
var newOrderRecipient = newData.order_recipient,
|
|
1168
|
+
newOrderRoutes = newData.order_routes,
|
|
1169
|
+
newOrderServicesDetail = newData.order_services_detail,
|
|
1170
|
+
newOrderServices = newData.order_services,
|
|
1171
|
+
newRequiredData = _objectWithoutPropertiesLoose(newData, _excluded2);
|
|
1172
|
+
var payload = findDifference(oldRequiredData, newRequiredData);
|
|
1173
|
+
var payloadWithId = _extends({}, payload, {
|
|
1174
|
+
id: oldData.id
|
|
1175
|
+
});
|
|
1176
|
+
var payloadOrderRecipient = findDifference(oldOrderRecipient, newOrderRecipient);
|
|
1177
|
+
var payloadOrderRoutes = findDifference(oldOrderRoutes, newOrderRoutes);
|
|
1178
|
+
var payloadOrderServicesDetail = findDifference(oldOrderServicesDetail, newOrderServicesDetail);
|
|
1179
|
+
// need to remove id and new_id from new order_services
|
|
1180
|
+
var filteredNewOrderServices = newOrderServices == null ? void 0 : newOrderServices.map(function (item) {
|
|
1181
|
+
if (item.new_id) {
|
|
1182
|
+
var newItem = _objectWithoutPropertiesLoose(item, _excluded3);
|
|
1183
|
+
return newItem;
|
|
1184
|
+
} else {
|
|
1185
|
+
return item;
|
|
1186
|
+
}
|
|
1187
|
+
});
|
|
1188
|
+
var newOrderServicesWithoutId = filteredNewOrderServices.filter(function (service) {
|
|
1189
|
+
return !service.id;
|
|
1190
|
+
});
|
|
1191
|
+
var newOrderServicesWithId = filteredNewOrderServices.filter(function (service) {
|
|
1192
|
+
return service.id;
|
|
1193
|
+
});
|
|
1194
|
+
var payloadOrderServices = compareArrays(oldOrderServices, newOrderServicesWithId);
|
|
1195
|
+
var finalPayloadOrderServices = [].concat(payloadOrderServices, newOrderServicesWithoutId);
|
|
1196
|
+
var finalPayload = _extends({}, payloadWithId, !isObjectEmpty(payloadOrderRecipient) && {
|
|
1197
|
+
order_recipient: payloadOrderRecipient
|
|
1198
|
+
}, !isObjectEmpty(payloadOrderRoutes) && {
|
|
1199
|
+
order_routes: payloadOrderRoutes
|
|
1200
|
+
}, !isObjectEmpty(payloadOrderServicesDetail) && {
|
|
1201
|
+
order_services_detail: payloadOrderServicesDetail
|
|
1202
|
+
}, finalPayloadOrderServices.length > 0 && {
|
|
1203
|
+
order_services: finalPayloadOrderServices
|
|
1204
|
+
});
|
|
1205
|
+
return finalPayload;
|
|
1206
|
+
};
|
|
1015
1207
|
|
|
1016
1208
|
var _templateObject$5, _templateObject2$4;
|
|
1017
1209
|
function Latitude() {
|
|
@@ -1429,17 +1621,10 @@ function Droptime() {
|
|
|
1429
1621
|
var _useOrderDetails = useOrderDetails(),
|
|
1430
1622
|
orderDetails = _useOrderDetails[0],
|
|
1431
1623
|
setOrderDetails = _useOrderDetails[1];
|
|
1432
|
-
var orderRoutes = orderDetails == null ? void 0 : orderDetails.order_routes;
|
|
1433
1624
|
var onChange = function onChange(e) {
|
|
1434
|
-
var val = parseFloat(e.target.value);
|
|
1435
|
-
var updatedOrderRoutes = _extends({}, orderRoutes === null ? {
|
|
1436
|
-
drop_time: val
|
|
1437
|
-
} : _extends({}, orderRoutes, {
|
|
1438
|
-
drop_time: val
|
|
1439
|
-
}));
|
|
1440
1625
|
setOrderDetails(function (prev) {
|
|
1441
1626
|
return _extends({}, prev, {
|
|
1442
|
-
|
|
1627
|
+
drop_time: e.target.value
|
|
1443
1628
|
});
|
|
1444
1629
|
});
|
|
1445
1630
|
};
|
|
@@ -1451,11 +1636,11 @@ function Droptime() {
|
|
|
1451
1636
|
type: "number",
|
|
1452
1637
|
placeholder: "0",
|
|
1453
1638
|
onKeyDown: handleKeyDown,
|
|
1454
|
-
value:
|
|
1639
|
+
value: (orderDetails == null ? void 0 : orderDetails.drop_time) || '',
|
|
1455
1640
|
onChange: onChange
|
|
1456
1641
|
}));
|
|
1457
1642
|
}
|
|
1458
|
-
var CustomInput$6 = /*#__PURE__*/styled(Input$1)(_templateObject$j || (_templateObject$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n
|
|
1643
|
+
var CustomInput$6 = /*#__PURE__*/styled(Input$1)(_templateObject$j || (_templateObject$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n"])));
|
|
1459
1644
|
var Container$f = /*#__PURE__*/styled.div(_templateObject2$f || (_templateObject2$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
1460
1645
|
|
|
1461
1646
|
var _templateObject$k;
|
|
@@ -1612,6 +1797,16 @@ var vehicleTypeOptions = [{
|
|
|
1612
1797
|
|
|
1613
1798
|
var _templateObject$o;
|
|
1614
1799
|
function VehicleTypeDropdown() {
|
|
1800
|
+
var _useOrderDetails = useOrderDetails(),
|
|
1801
|
+
orderDetails = _useOrderDetails[0],
|
|
1802
|
+
setOrderDetails = _useOrderDetails[1];
|
|
1803
|
+
var onChange = function onChange(e) {
|
|
1804
|
+
setOrderDetails(function (prev) {
|
|
1805
|
+
return _extends({}, prev, {
|
|
1806
|
+
vehicle_type: e.label
|
|
1807
|
+
});
|
|
1808
|
+
});
|
|
1809
|
+
};
|
|
1615
1810
|
return React.createElement(FormContainer$1, null, React.createElement(Label$h, {
|
|
1616
1811
|
label: "Vehicle Type",
|
|
1617
1812
|
htmlFor: "vehicleType"
|
|
@@ -1620,16 +1815,10 @@ function VehicleTypeDropdown() {
|
|
|
1620
1815
|
options: vehicleTypeOptions,
|
|
1621
1816
|
inputId: "vehicleType",
|
|
1622
1817
|
openMenuOnFocus: true,
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
return _extends({}, styles, {
|
|
1628
|
-
borderRadius: '25px',
|
|
1629
|
-
cursor: 'pointer'
|
|
1630
|
-
});
|
|
1631
|
-
}
|
|
1632
|
-
})
|
|
1818
|
+
value: vehicleTypeOptions == null ? void 0 : vehicleTypeOptions.filter(function (x) {
|
|
1819
|
+
return x.label === (orderDetails == null ? void 0 : orderDetails.vehicle_type);
|
|
1820
|
+
}),
|
|
1821
|
+
onChange: onChange
|
|
1633
1822
|
}));
|
|
1634
1823
|
}
|
|
1635
1824
|
var FormContainer$1 = /*#__PURE__*/styled.div(_templateObject$o || (_templateObject$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
@@ -1672,24 +1861,17 @@ function DeliveryInstructions() {
|
|
|
1672
1861
|
var _useOrderDetails = useOrderDetails(),
|
|
1673
1862
|
orderDetails = _useOrderDetails[0],
|
|
1674
1863
|
setOrderDetails = _useOrderDetails[1];
|
|
1675
|
-
var orderRoutes = orderDetails == null ? void 0 : orderDetails.order_routes;
|
|
1676
1864
|
var onChange = function onChange(e) {
|
|
1677
|
-
var val = e.target.value;
|
|
1678
|
-
var updatedOrderRoutes = _extends({}, orderRoutes === null ? {
|
|
1679
|
-
delivery_instructions: val
|
|
1680
|
-
} : _extends({}, orderRoutes, {
|
|
1681
|
-
delivery_instructions: val
|
|
1682
|
-
}));
|
|
1683
1865
|
setOrderDetails(function (prev) {
|
|
1684
1866
|
return _extends({}, prev, {
|
|
1685
|
-
|
|
1867
|
+
delivery_instructions: e.target.value
|
|
1686
1868
|
});
|
|
1687
1869
|
});
|
|
1688
1870
|
};
|
|
1689
1871
|
return React.createElement(Container$j, null, React.createElement(Label$h, {
|
|
1690
1872
|
label: "Delivery Instructions"
|
|
1691
1873
|
}), React.createElement(CustomTextArea$1, {
|
|
1692
|
-
value: (
|
|
1874
|
+
value: (orderDetails == null ? void 0 : orderDetails.delivery_instructions) || '',
|
|
1693
1875
|
placeholder: "add delivery instructions",
|
|
1694
1876
|
onChange: onChange
|
|
1695
1877
|
}));
|
|
@@ -1730,6 +1912,15 @@ var FormInputs$2 = /*#__PURE__*/styled.div(_templateObject$t || (_templateObject
|
|
|
1730
1912
|
var CustomFormSection$2 = /*#__PURE__*/styled(FormSection)(_templateObject2$m || (_templateObject2$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n border-radius: 8px;\n background: #f8fafc;\n box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1);\n padding: 10px !important;\n"])));
|
|
1731
1913
|
|
|
1732
1914
|
var _templateObject$u;
|
|
1915
|
+
function convertTo12HourFormat(time24) {
|
|
1916
|
+
var _time24$split, _minutes$toString;
|
|
1917
|
+
var _time24$split$map = time24 == null || (_time24$split = time24.split(':')) == null ? void 0 : _time24$split.map(Number),
|
|
1918
|
+
hours = _time24$split$map[0],
|
|
1919
|
+
minutes = _time24$split$map[1];
|
|
1920
|
+
var period = hours >= 12 ? 'PM' : 'AM';
|
|
1921
|
+
var hours12 = hours % 12 || 12; // Convert to 12-hour format
|
|
1922
|
+
return hours12 + ":" + (minutes == null || (_minutes$toString = minutes.toString()) == null ? void 0 : _minutes$toString.padStart(2, '0')) + " " + period;
|
|
1923
|
+
}
|
|
1733
1924
|
function TimedServiceDropdown() {
|
|
1734
1925
|
var _orderData$order_serv, _orderStaticData$orde;
|
|
1735
1926
|
var _useOrderStaticData = useOrderStaticData(),
|
|
@@ -1739,9 +1930,13 @@ function TimedServiceDropdown() {
|
|
|
1739
1930
|
setOrderData = _useOrderDetails[1];
|
|
1740
1931
|
var timesServiceId = orderData == null || (_orderData$order_serv = orderData.order_services_detail) == null ? void 0 : _orderData$order_serv.timed_service_id;
|
|
1741
1932
|
var timedServicesOptions = orderStaticData == null || (_orderStaticData$orde = orderStaticData.order_timed_services) == null ? void 0 : _orderStaticData$orde.map(function (option) {
|
|
1933
|
+
var _option$type;
|
|
1934
|
+
var startTime = convertTo12HourFormat(option == null ? void 0 : option.start_time);
|
|
1935
|
+
var endTime = convertTo12HourFormat(option == null ? void 0 : option.end_time);
|
|
1936
|
+
var label = capitalize(option == null || (_option$type = option.type) == null ? void 0 : _option$type.replaceAll('_', ' ')) + " (" + startTime + " - " + endTime + ")";
|
|
1742
1937
|
return {
|
|
1743
|
-
label:
|
|
1744
|
-
value: option.id
|
|
1938
|
+
label: label,
|
|
1939
|
+
value: option == null ? void 0 : option.id
|
|
1745
1940
|
};
|
|
1746
1941
|
});
|
|
1747
1942
|
var onChange = function onChange(event) {
|
|
@@ -1763,15 +1958,7 @@ function TimedServiceDropdown() {
|
|
|
1763
1958
|
return f.value === timesServiceId;
|
|
1764
1959
|
}),
|
|
1765
1960
|
inputId: "timedServiceDropdown",
|
|
1766
|
-
onChange: onChange
|
|
1767
|
-
styles: _extends({}, dropdownStyles, {
|
|
1768
|
-
control: function control(styles) {
|
|
1769
|
-
return _extends({}, styles, {
|
|
1770
|
-
borderRadius: '25px',
|
|
1771
|
-
cursor: 'pointer'
|
|
1772
|
-
});
|
|
1773
|
-
}
|
|
1774
|
-
})
|
|
1961
|
+
onChange: onChange
|
|
1775
1962
|
}));
|
|
1776
1963
|
}
|
|
1777
1964
|
var Container$l = /*#__PURE__*/styled.div(_templateObject$u || (_templateObject$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
@@ -1808,15 +1995,7 @@ function ServiceTypeDropdown() {
|
|
|
1808
1995
|
}),
|
|
1809
1996
|
inputId: "serviceTypeDropdown",
|
|
1810
1997
|
openMenuOnFocus: true,
|
|
1811
|
-
onChange: onChange
|
|
1812
|
-
styles: _extends({}, dropdownStyles, {
|
|
1813
|
-
control: function control(styles) {
|
|
1814
|
-
return _extends({}, styles, {
|
|
1815
|
-
borderRadius: '25px',
|
|
1816
|
-
cursor: 'pointer'
|
|
1817
|
-
});
|
|
1818
|
-
}
|
|
1819
|
-
})
|
|
1998
|
+
onChange: onChange
|
|
1820
1999
|
}));
|
|
1821
2000
|
}
|
|
1822
2001
|
var Container$m = /*#__PURE__*/styled.div(_templateObject$v || (_templateObject$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
@@ -1856,15 +2035,7 @@ function DeliveryPointDropdown() {
|
|
|
1856
2035
|
return f.value === deliveryPointId;
|
|
1857
2036
|
}),
|
|
1858
2037
|
openMenuOnFocus: true,
|
|
1859
|
-
onChange: onChange
|
|
1860
|
-
styles: _extends({}, dropdownStyles, {
|
|
1861
|
-
control: function control(styles) {
|
|
1862
|
-
return _extends({}, styles, {
|
|
1863
|
-
borderRadius: '25px',
|
|
1864
|
-
cursor: 'pointer'
|
|
1865
|
-
});
|
|
1866
|
-
}
|
|
1867
|
-
})
|
|
2038
|
+
onChange: onChange
|
|
1868
2039
|
}));
|
|
1869
2040
|
}
|
|
1870
2041
|
var Container$n = /*#__PURE__*/styled.div(_templateObject$w || (_templateObject$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
@@ -1905,7 +2076,7 @@ var Container$o = /*#__PURE__*/styled.div(_templateObject$x || (_templateObject$
|
|
|
1905
2076
|
|
|
1906
2077
|
var _templateObject$y;
|
|
1907
2078
|
function AssemblyType() {
|
|
1908
|
-
var _orderStaticData$orde, _orderStaticData$orde2;
|
|
2079
|
+
var _orderStaticData$orde, _orderStaticData$orde2, _orderStaticData$orde3;
|
|
1909
2080
|
var _useOrderDetails = useOrderDetails(),
|
|
1910
2081
|
orderData = _useOrderDetails[0],
|
|
1911
2082
|
setOrderData = _useOrderDetails[1];
|
|
@@ -1917,37 +2088,78 @@ function AssemblyType() {
|
|
|
1917
2088
|
var _x$type;
|
|
1918
2089
|
return (x == null || (_x$type = x.type) == null ? void 0 : _x$type.toLowerCase()) === 'assemble';
|
|
1919
2090
|
});
|
|
2091
|
+
var disassembleOrderService = orderStaticData == null || (_orderStaticData$orde2 = orderStaticData.order_service_list) == null ? void 0 : _orderStaticData$orde2.find(function (x) {
|
|
2092
|
+
var _x$type2;
|
|
2093
|
+
return (x == null || (_x$type2 = x.type) == null ? void 0 : _x$type2.toLowerCase()) === 'disassemble';
|
|
2094
|
+
});
|
|
1920
2095
|
var assemblyTypeService = cloneServices == null ? void 0 : cloneServices.find(function (x) {
|
|
1921
2096
|
return (x == null ? void 0 : x.order_service_list_id) === (assembleOrderService == null ? void 0 : assembleOrderService.id);
|
|
1922
2097
|
});
|
|
1923
|
-
var
|
|
1924
|
-
|
|
2098
|
+
var disassemblyTypeService = cloneServices == null ? void 0 : cloneServices.find(function (x) {
|
|
2099
|
+
return (x == null ? void 0 : x.order_service_list_id) === (disassembleOrderService == null ? void 0 : disassembleOrderService.id);
|
|
2100
|
+
});
|
|
2101
|
+
var assemblyTypeId = (assemblyTypeService == null ? void 0 : assemblyTypeService.service_category_id) || (disassemblyTypeService == null ? void 0 : disassemblyTypeService.service_category_id);
|
|
2102
|
+
var assemblyTypeOptions = orderStaticData == null || (_orderStaticData$orde3 = orderStaticData.order_service_list_category) == null ? void 0 : _orderStaticData$orde3.map(function (option) {
|
|
1925
2103
|
return {
|
|
1926
2104
|
label: capitalize(option.type.replaceAll('_', ' ')),
|
|
1927
2105
|
value: option.id.toString()
|
|
1928
2106
|
};
|
|
1929
2107
|
});
|
|
1930
2108
|
var radioGroupHandler = function radioGroupHandler(event) {
|
|
1931
|
-
var updatedAssemblyTypeService =
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
2109
|
+
var updatedAssemblyTypeService = {};
|
|
2110
|
+
var updatedDisassemblyTypeService = {};
|
|
2111
|
+
var updatedOrderServices = [];
|
|
2112
|
+
if ((assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === false && (disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === true && disassemblyTypeService !== undefined && disassemblyTypeService !== null || (disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === false && (assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === true && assemblyTypeService !== undefined && assemblyTypeService !== null || (assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === false && (disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === false) {
|
|
2113
|
+
updatedAssemblyTypeService = _extends({}, assemblyTypeService, {
|
|
2114
|
+
service_category_id: +event.target.value
|
|
2115
|
+
});
|
|
2116
|
+
updatedDisassemblyTypeService = _extends({}, disassemblyTypeService, {
|
|
2117
|
+
service_category_id: +event.target.value
|
|
2118
|
+
});
|
|
2119
|
+
updatedOrderServices = cloneServices == null ? void 0 : cloneServices.filter(function (s) {
|
|
2120
|
+
return (s == null ? void 0 : s.order_service_list_id) !== (assembleOrderService == null ? void 0 : assembleOrderService.id) && (s == null ? void 0 : s.order_service_list_id) !== (disassembleOrderService == null ? void 0 : disassembleOrderService.id);
|
|
2121
|
+
});
|
|
2122
|
+
updatedOrderServices.push(updatedAssemblyTypeService);
|
|
2123
|
+
updatedOrderServices.push(updatedDisassemblyTypeService);
|
|
2124
|
+
} else if ((assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === false && ((disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === true || disassemblyTypeService === undefined || disassemblyTypeService === null)) {
|
|
2125
|
+
updatedAssemblyTypeService = _extends({}, assemblyTypeService, {
|
|
2126
|
+
service_category_id: +event.target.value
|
|
2127
|
+
});
|
|
2128
|
+
updatedOrderServices = cloneServices == null ? void 0 : cloneServices.filter(function (s) {
|
|
2129
|
+
return (s == null ? void 0 : s.order_service_list_id) !== (assembleOrderService == null ? void 0 : assembleOrderService.id);
|
|
2130
|
+
});
|
|
2131
|
+
updatedOrderServices.push(updatedAssemblyTypeService);
|
|
2132
|
+
} else {
|
|
2133
|
+
updatedDisassemblyTypeService = _extends({}, disassemblyTypeService, {
|
|
2134
|
+
service_category_id: +event.target.value
|
|
2135
|
+
});
|
|
2136
|
+
updatedOrderServices = cloneServices == null ? void 0 : cloneServices.filter(function (s) {
|
|
2137
|
+
return (s == null ? void 0 : s.order_service_list_id) !== (disassembleOrderService == null ? void 0 : disassembleOrderService.id);
|
|
2138
|
+
});
|
|
2139
|
+
updatedOrderServices.push(updatedDisassemblyTypeService);
|
|
2140
|
+
}
|
|
1938
2141
|
var newData = _extends({}, orderData, {
|
|
1939
2142
|
order_services: updatedOrderServices
|
|
1940
2143
|
});
|
|
1941
2144
|
setOrderData(newData);
|
|
1942
2145
|
};
|
|
2146
|
+
var isServiceDisable = function isServiceDisable() {
|
|
2147
|
+
if ((assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === true && ((disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === true || disassemblyTypeService === undefined || disassemblyTypeService === null) || (disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === true && ((assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === true || assemblyTypeService === undefined || assemblyTypeService === null) || assemblyTypeService === undefined && disassemblyTypeService === undefined || assemblyTypeService === null && disassemblyTypeService === null) {
|
|
2148
|
+
return true;
|
|
2149
|
+
} else {
|
|
2150
|
+
return false;
|
|
2151
|
+
}
|
|
2152
|
+
};
|
|
1943
2153
|
return React.createElement(Container$p, {
|
|
1944
|
-
"$isDisable": (
|
|
2154
|
+
"$isDisable": isServiceDisable()
|
|
1945
2155
|
}, React.createElement(RadioButtonGroup$1, {
|
|
1946
2156
|
selectedValue: (assemblyTypeId == null ? void 0 : assemblyTypeId.toString()) || '',
|
|
1947
2157
|
heading: "Assembly Type",
|
|
1948
2158
|
options: assemblyTypeOptions || [],
|
|
1949
2159
|
onChange: radioGroupHandler,
|
|
1950
|
-
required: false
|
|
2160
|
+
required: false,
|
|
2161
|
+
//@ts-ignore
|
|
2162
|
+
isDisabled: isServiceDisable()
|
|
1951
2163
|
}));
|
|
1952
2164
|
}
|
|
1953
2165
|
var Container$p = /*#__PURE__*/styled.div(_templateObject$y || (_templateObject$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n pointer-events: ", ";\n /* temporary change will add this in library */\n > fieldset {\n > div {\n > div {\n > label {\n text-transform: capitalize;\n }\n }\n }\n }\n"])), function (props) {
|
|
@@ -2008,19 +2220,34 @@ function OrderServices() {
|
|
|
2008
2220
|
var _useOrderDetails = useOrderDetails(),
|
|
2009
2221
|
orderDetails = _useOrderDetails[0],
|
|
2010
2222
|
setOrderDetails = _useOrderDetails[1];
|
|
2223
|
+
var _usePrevOrderDetails = usePrevOrderDetails(),
|
|
2224
|
+
prevOrderDetails = _usePrevOrderDetails[0];
|
|
2011
2225
|
var orderServices = orderDetails == null ? void 0 : orderDetails.order_services;
|
|
2226
|
+
var prevOrderServices = prevOrderDetails == null ? void 0 : prevOrderDetails.order_services;
|
|
2012
2227
|
var orderServicesOptions = orderStaticData == null ? void 0 : orderStaticData.order_service_list;
|
|
2013
2228
|
var toggleServices = function toggleServices(id) {
|
|
2229
|
+
var _orderStaticData$orde, _orderStaticData$orde2;
|
|
2014
2230
|
var clone = [].concat(orderServices);
|
|
2015
2231
|
var selectedService = clone == null ? void 0 : clone.find(function (s) {
|
|
2016
2232
|
return (s == null ? void 0 : s.order_service_list_id) === id;
|
|
2017
2233
|
});
|
|
2234
|
+
var assembleOrderService = orderStaticData == null || (_orderStaticData$orde = orderStaticData.order_service_list) == null ? void 0 : _orderStaticData$orde.find(function (x) {
|
|
2235
|
+
var _x$type;
|
|
2236
|
+
return (x == null || (_x$type = x.type) == null ? void 0 : _x$type.toLowerCase()) === 'assemble';
|
|
2237
|
+
});
|
|
2238
|
+
var disassembleOrderService = orderStaticData == null || (_orderStaticData$orde2 = orderStaticData.order_service_list) == null ? void 0 : _orderStaticData$orde2.find(function (x) {
|
|
2239
|
+
var _x$type2;
|
|
2240
|
+
return (x == null || (_x$type2 = x.type) == null ? void 0 : _x$type2.toLowerCase()) === 'disassemble';
|
|
2241
|
+
});
|
|
2242
|
+
var assemblyTypeService = clone == null ? void 0 : clone.find(function (x) {
|
|
2243
|
+
return (x == null ? void 0 : x.order_service_list_id) === (assembleOrderService == null ? void 0 : assembleOrderService.id);
|
|
2244
|
+
});
|
|
2245
|
+
var disassemblyTypeService = clone == null ? void 0 : clone.find(function (x) {
|
|
2246
|
+
return (x == null ? void 0 : x.order_service_list_id) === (disassembleOrderService == null ? void 0 : disassembleOrderService.id);
|
|
2247
|
+
});
|
|
2018
2248
|
if (selectedService !== undefined) {
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
// (x: any) => x?.type?.toLowerCase() === 'assemble'
|
|
2022
|
-
// );
|
|
2023
|
-
// const isAssembleService = assembleOrderService?.id === id;
|
|
2249
|
+
var isAssembleService = (assembleOrderService == null ? void 0 : assembleOrderService.id) === (selectedService == null ? void 0 : selectedService.order_service_list_id);
|
|
2250
|
+
var isDisassembleService = (disassembleOrderService == null ? void 0 : disassembleOrderService.id) === (selectedService == null ? void 0 : selectedService.order_service_list_id);
|
|
2024
2251
|
if (selectedService.new_id) {
|
|
2025
2252
|
var updatedOrderServices = clone.filter(function (service) {
|
|
2026
2253
|
return service.id !== selectedService.id;
|
|
@@ -2030,33 +2257,96 @@ function OrderServices() {
|
|
|
2030
2257
|
});
|
|
2031
2258
|
setOrderDetails(newData);
|
|
2032
2259
|
} else {
|
|
2260
|
+
var _updatedSelectedServi, _updatedSelectedServi2;
|
|
2033
2261
|
var updatedSelectedService = _extends({}, selectedService, {
|
|
2034
2262
|
is_deleted: !selectedService.is_deleted
|
|
2035
2263
|
});
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
var _updatedOrderServices = clone.filter(function (service) {
|
|
2264
|
+
var _updatedOrderServices = [];
|
|
2265
|
+
var newUpdatedOrderServices = [];
|
|
2266
|
+
_updatedOrderServices = clone.filter(function (service) {
|
|
2040
2267
|
return service.id !== selectedService.id;
|
|
2041
2268
|
});
|
|
2042
2269
|
_updatedOrderServices.push(updatedSelectedService);
|
|
2270
|
+
if (isAssembleService && ((_updatedSelectedServi = updatedSelectedService) == null ? void 0 : _updatedSelectedServi.is_deleted) === true && ((disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === true || disassemblyTypeService === undefined || disassemblyTypeService === null) || isDisassembleService && ((_updatedSelectedServi2 = updatedSelectedService) == null ? void 0 : _updatedSelectedServi2.is_deleted) === true && ((assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === true || assemblyTypeService === undefined || assemblyTypeService === null)) {
|
|
2271
|
+
var prevSelectedService = prevOrderServices == null ? void 0 : prevOrderServices.find(function (s) {
|
|
2272
|
+
return (s == null ? void 0 : s.order_service_list_id) === id;
|
|
2273
|
+
});
|
|
2274
|
+
updatedSelectedService = _extends({}, selectedService, {
|
|
2275
|
+
is_deleted: true,
|
|
2276
|
+
service_category_id: prevSelectedService == null ? void 0 : prevSelectedService.service_category_id
|
|
2277
|
+
});
|
|
2278
|
+
_updatedOrderServices = clone.filter(function (service) {
|
|
2279
|
+
return service.id !== selectedService.id;
|
|
2280
|
+
});
|
|
2281
|
+
_updatedOrderServices.push(updatedSelectedService);
|
|
2282
|
+
// new cases
|
|
2283
|
+
if (isAssembleService && (disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === true && disassemblyTypeService !== undefined && disassemblyTypeService !== null) {
|
|
2284
|
+
var _updatedOrderServices2, _newUpdatedOrderServi;
|
|
2285
|
+
var newUpdatedSelectedService = _extends({}, disassemblyTypeService, {
|
|
2286
|
+
is_deleted: true,
|
|
2287
|
+
service_category_id: prevSelectedService == null ? void 0 : prevSelectedService.service_category_id
|
|
2288
|
+
});
|
|
2289
|
+
newUpdatedOrderServices = (_updatedOrderServices2 = _updatedOrderServices) == null ? void 0 : _updatedOrderServices2.filter(function (service) {
|
|
2290
|
+
return service.id !== disassemblyTypeService.id;
|
|
2291
|
+
});
|
|
2292
|
+
(_newUpdatedOrderServi = newUpdatedOrderServices) == null || _newUpdatedOrderServi.push(newUpdatedSelectedService);
|
|
2293
|
+
}
|
|
2294
|
+
// new cases
|
|
2295
|
+
if (isDisassembleService && (assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === true && assemblyTypeService !== undefined && assemblyTypeService !== null) {
|
|
2296
|
+
var _updatedOrderServices3, _newUpdatedOrderServi2;
|
|
2297
|
+
var _newUpdatedSelectedService = _extends({}, assemblyTypeService, {
|
|
2298
|
+
is_deleted: true,
|
|
2299
|
+
service_category_id: prevSelectedService == null ? void 0 : prevSelectedService.service_category_id
|
|
2300
|
+
});
|
|
2301
|
+
newUpdatedOrderServices = (_updatedOrderServices3 = _updatedOrderServices) == null ? void 0 : _updatedOrderServices3.filter(function (service) {
|
|
2302
|
+
return service.id !== assemblyTypeService.id;
|
|
2303
|
+
});
|
|
2304
|
+
(_newUpdatedOrderServi2 = newUpdatedOrderServices) == null || _newUpdatedOrderServi2.push(_newUpdatedSelectedService);
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2043
2307
|
var _newData = _extends({}, orderDetails, {
|
|
2044
|
-
order_services: _updatedOrderServices
|
|
2308
|
+
order_services: newUpdatedOrderServices.length > 0 ? newUpdatedOrderServices : _updatedOrderServices
|
|
2045
2309
|
});
|
|
2046
2310
|
setOrderDetails(_newData);
|
|
2047
2311
|
}
|
|
2048
2312
|
} else {
|
|
2049
2313
|
// service not exist case
|
|
2050
2314
|
// if not matched then treat it as an new service
|
|
2051
|
-
var largestId
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2315
|
+
var largestId;
|
|
2316
|
+
if (clone === undefined || clone.length === 0) {
|
|
2317
|
+
largestId = 0;
|
|
2318
|
+
} else {
|
|
2319
|
+
largestId = Math.max.apply(Math, clone == null ? void 0 : clone.map(function (o) {
|
|
2320
|
+
return +(o == null ? void 0 : o.order_service_list_id);
|
|
2321
|
+
}));
|
|
2322
|
+
}
|
|
2323
|
+
var service = {};
|
|
2324
|
+
// Normal service addition
|
|
2325
|
+
service = {
|
|
2055
2326
|
is_deleted: false,
|
|
2056
2327
|
order_service_list_id: id,
|
|
2057
2328
|
new_id: largestId !== undefined && largestId !== null ? largestId + 1 : 1,
|
|
2058
2329
|
id: largestId !== undefined && largestId !== null ? largestId + 1 : 1
|
|
2059
2330
|
};
|
|
2331
|
+
// special case if assembly already exist and we are adding disassemble service and vice-versa
|
|
2332
|
+
if ((assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === false && (disassembleOrderService == null ? void 0 : disassembleOrderService.id) === id) {
|
|
2333
|
+
service = {
|
|
2334
|
+
is_deleted: false,
|
|
2335
|
+
order_service_list_id: id,
|
|
2336
|
+
new_id: largestId !== undefined && largestId !== null ? largestId + 1 : 1,
|
|
2337
|
+
id: largestId !== undefined && largestId !== null ? largestId + 1 : 1,
|
|
2338
|
+
service_category_id: assemblyTypeService == null ? void 0 : assemblyTypeService.service_category_id
|
|
2339
|
+
};
|
|
2340
|
+
}
|
|
2341
|
+
if ((disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === false && (assembleOrderService == null ? void 0 : assembleOrderService.id) === id) {
|
|
2342
|
+
service = {
|
|
2343
|
+
is_deleted: false,
|
|
2344
|
+
order_service_list_id: id,
|
|
2345
|
+
new_id: largestId !== undefined && largestId !== null ? largestId + 1 : 1,
|
|
2346
|
+
id: largestId !== undefined && largestId !== null ? largestId + 1 : 1,
|
|
2347
|
+
service_category_id: disassemblyTypeService == null ? void 0 : disassemblyTypeService.service_category_id
|
|
2348
|
+
};
|
|
2349
|
+
}
|
|
2060
2350
|
clone.push(service);
|
|
2061
2351
|
var _newData2 = _extends({}, orderDetails, {
|
|
2062
2352
|
order_services: clone
|
|
@@ -2124,80 +2414,164 @@ var CreatedBy = /*#__PURE__*/styled.span(_templateObject2$p || (_templateObject2
|
|
|
2124
2414
|
// `;
|
|
2125
2415
|
var Container$s = /*#__PURE__*/styled.div(_templateObject3$c || (_templateObject3$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
2126
2416
|
|
|
2417
|
+
function useUpdateOrder() {
|
|
2418
|
+
var controller;
|
|
2419
|
+
var ssoToken = getCookie('id_token');
|
|
2420
|
+
var update = /*#__PURE__*/function () {
|
|
2421
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
2422
|
+
var endpoint, signal, requestOptions, response, json;
|
|
2423
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2424
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2425
|
+
case 0:
|
|
2426
|
+
endpoint = getBaseEndpoint() + "/orders/update/";
|
|
2427
|
+
if (controller) {
|
|
2428
|
+
controller.abort();
|
|
2429
|
+
}
|
|
2430
|
+
// Create new AbortController
|
|
2431
|
+
controller = new AbortController();
|
|
2432
|
+
signal = controller.signal; // setLoading(true); // Set loading to true
|
|
2433
|
+
_context.prev = 4;
|
|
2434
|
+
requestOptions = {
|
|
2435
|
+
headers: {
|
|
2436
|
+
'Content-Type': 'application/json',
|
|
2437
|
+
Authorization: "Bearer " + ssoToken
|
|
2438
|
+
},
|
|
2439
|
+
method: 'PUT',
|
|
2440
|
+
body: JSON.stringify(data),
|
|
2441
|
+
signal: signal
|
|
2442
|
+
};
|
|
2443
|
+
_context.next = 8;
|
|
2444
|
+
return fetch(endpoint, requestOptions);
|
|
2445
|
+
case 8:
|
|
2446
|
+
response = _context.sent;
|
|
2447
|
+
if (response.ok) {
|
|
2448
|
+
_context.next = 11;
|
|
2449
|
+
break;
|
|
2450
|
+
}
|
|
2451
|
+
throw new Error('response is not ok');
|
|
2452
|
+
case 11:
|
|
2453
|
+
_context.next = 13;
|
|
2454
|
+
return response.json();
|
|
2455
|
+
case 13:
|
|
2456
|
+
json = _context.sent;
|
|
2457
|
+
// alert('Order has been updated');
|
|
2458
|
+
notification.success({
|
|
2459
|
+
message: 'Success',
|
|
2460
|
+
description: 'Order has been updated.'
|
|
2461
|
+
});
|
|
2462
|
+
return _context.abrupt("return", json);
|
|
2463
|
+
case 18:
|
|
2464
|
+
_context.prev = 18;
|
|
2465
|
+
_context.t0 = _context["catch"](4);
|
|
2466
|
+
// setLoading(false);
|
|
2467
|
+
// console.log(err, 'error');
|
|
2468
|
+
notification.error({
|
|
2469
|
+
message: 'Error',
|
|
2470
|
+
description: "" + _context.t0 || 'An error has occurred. Please try again later.'
|
|
2471
|
+
});
|
|
2472
|
+
case 21:
|
|
2473
|
+
_context.prev = 21;
|
|
2474
|
+
return _context.finish(21);
|
|
2475
|
+
case 23:
|
|
2476
|
+
case "end":
|
|
2477
|
+
return _context.stop();
|
|
2478
|
+
}
|
|
2479
|
+
}, _callee, null, [[4, 18, 21, 23]]);
|
|
2480
|
+
}));
|
|
2481
|
+
return function update(_x) {
|
|
2482
|
+
return _ref.apply(this, arguments);
|
|
2483
|
+
};
|
|
2484
|
+
}();
|
|
2485
|
+
return update;
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2127
2488
|
var _templateObject$D;
|
|
2128
|
-
// import {
|
|
2129
|
-
// useAtom,
|
|
2130
|
-
// useOrderDetails,
|
|
2131
|
-
// usePrevOrderDetails,
|
|
2132
|
-
// errorAtom,
|
|
2133
|
-
// } from '../../../store';
|
|
2134
|
-
// import useUpdateOrder from '../../../hooks/useUpdateOrder';
|
|
2135
|
-
// import { compareOrderDetailsStates, filterObject } from '../../../utils';
|
|
2136
|
-
// import { OrderServiceType } from '../../../types';
|
|
2137
2489
|
function OrderDetailsFooter() {
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2490
|
+
var _useOrderDetails = useOrderDetails(),
|
|
2491
|
+
orderDetails = _useOrderDetails[0],
|
|
2492
|
+
setOrderDetails = _useOrderDetails[1];
|
|
2493
|
+
var _usePrevOrderDetails = usePrevOrderDetails(),
|
|
2494
|
+
prevOrderDetails = _usePrevOrderDetails[0],
|
|
2495
|
+
setPrevOrderDetails = _usePrevOrderDetails[1];
|
|
2496
|
+
var _useCustomerInfo = useCustomerInfo(),
|
|
2497
|
+
setCustomerInfo = _useCustomerInfo[1];
|
|
2498
|
+
var updateOrder = useUpdateOrder();
|
|
2499
|
+
var _useAtom = useAtom(errorAtom),
|
|
2500
|
+
errorState = _useAtom[0];
|
|
2501
|
+
var _useLogsCallAPi = useLogsCallAPi(),
|
|
2502
|
+
setLogsCallAPi = _useLogsCallAPi[1];
|
|
2503
|
+
var _useApiCalling = useApiCalling(),
|
|
2504
|
+
setCallApi = _useApiCalling[1]; //single detail
|
|
2505
|
+
var errorFound = function errorFound() {
|
|
2506
|
+
var isError = errorState.w3wError.length > 0 || errorState.emailError.length > 0 || errorState.homeContactError.length > 0 || errorState.workCOntanctError.length > 0 || errorState.mobileError.length > 0 || errorState.postCodeError.length > 0;
|
|
2507
|
+
return isError;
|
|
2508
|
+
};
|
|
2509
|
+
var isDifferent = function isDifferent() {
|
|
2510
|
+
var _orderDetails$order_s, _prevOrderDetails$ord;
|
|
2511
|
+
var keysToRemovefromOrders = ['order_locked', 'order_communications', 'updated_at', 'updated_by', 'order_services'];
|
|
2512
|
+
var filteredOrderDetails = filterObject(orderDetails, keysToRemovefromOrders);
|
|
2513
|
+
var filteredPrevOrderDetails = filterObject(prevOrderDetails, keysToRemovefromOrders);
|
|
2514
|
+
var newOrderServices = (orderDetails == null || (_orderDetails$order_s = orderDetails.order_services) == null ? void 0 : _orderDetails$order_s.length) > 0 && orderDetails.order_services.sort(function (a, b) {
|
|
2515
|
+
return a.id - b.id;
|
|
2516
|
+
});
|
|
2517
|
+
var prevOrderServices = (prevOrderDetails == null || (_prevOrderDetails$ord = prevOrderDetails.order_services) == null ? void 0 : _prevOrderDetails$ord.length) > 0 && prevOrderDetails.order_services.sort(function (a, b) {
|
|
2518
|
+
return a.id - b.id;
|
|
2519
|
+
});
|
|
2520
|
+
var newOrderServicesSorted = JSON.stringify(newOrderServices);
|
|
2521
|
+
var prevOrderServicesSorted = JSON.stringify(prevOrderServices);
|
|
2522
|
+
var orderDetailsSorted = JSON.stringify(filteredOrderDetails);
|
|
2523
|
+
var prevOrderDetailsSorted = JSON.stringify(filteredPrevOrderDetails);
|
|
2524
|
+
var isSame = orderDetailsSorted === prevOrderDetailsSorted && newOrderServicesSorted === prevOrderServicesSorted;
|
|
2525
|
+
return !isSame;
|
|
2526
|
+
};
|
|
2527
|
+
var onSave = /*#__PURE__*/function () {
|
|
2528
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2529
|
+
var _response$data;
|
|
2530
|
+
var payload, response, _response$data$, _response$data$2;
|
|
2531
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2532
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2533
|
+
case 0:
|
|
2534
|
+
payload = compareOrderDetailsStates(prevOrderDetails, orderDetails);
|
|
2535
|
+
_context.next = 3;
|
|
2536
|
+
return updateOrder([payload]);
|
|
2537
|
+
case 3:
|
|
2538
|
+
response = _context.sent;
|
|
2539
|
+
setLogsCallAPi(function (prev) {
|
|
2540
|
+
return !prev;
|
|
2541
|
+
});
|
|
2542
|
+
setCallApi(false);
|
|
2543
|
+
if (response && (response == null || (_response$data = response.data) == null ? void 0 : _response$data.length) > 0) {
|
|
2544
|
+
setOrderDetails(response == null ? void 0 : response.data[0]);
|
|
2545
|
+
setPrevOrderDetails(response == null ? void 0 : response.data[0]);
|
|
2546
|
+
setCustomerInfo({
|
|
2547
|
+
recipient_name: response == null || (_response$data$ = response.data[0]) == null || (_response$data$ = _response$data$.order_recipient) == null ? void 0 : _response$data$.recipient_name,
|
|
2548
|
+
postcode: response == null || (_response$data$2 = response.data[0]) == null || (_response$data$2 = _response$data$2.order_recipient) == null ? void 0 : _response$data$2.postcode
|
|
2549
|
+
});
|
|
2550
|
+
setTimeout(function () {
|
|
2551
|
+
setLogsCallAPi(true);
|
|
2552
|
+
setCallApi(true);
|
|
2553
|
+
}, 2000);
|
|
2554
|
+
} else {
|
|
2555
|
+
setLogsCallAPi(false);
|
|
2556
|
+
setCallApi(false);
|
|
2557
|
+
setOrderDetails(prevOrderDetails);
|
|
2558
|
+
}
|
|
2559
|
+
case 7:
|
|
2560
|
+
case "end":
|
|
2561
|
+
return _context.stop();
|
|
2562
|
+
}
|
|
2563
|
+
}, _callee);
|
|
2564
|
+
}));
|
|
2565
|
+
return function onSave() {
|
|
2566
|
+
return _ref.apply(this, arguments);
|
|
2567
|
+
};
|
|
2568
|
+
}();
|
|
2193
2569
|
return React.createElement(Container$t, null, React.createElement(AllowTracking, null), React.createElement(Button$1, {
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
},
|
|
2197
|
-
onClick: onSave
|
|
2570
|
+
onClick: onSave,
|
|
2571
|
+
disabled: !isDifferent() || errorFound()
|
|
2198
2572
|
}, "Save Details"));
|
|
2199
2573
|
}
|
|
2200
|
-
var Container$t = /*#__PURE__*/styled.div(_templateObject$D || (_templateObject$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n padding: 10px 15px;\n align-items: flex-start;\n border-top: 1px solid #edebe8;\n background: #f8fafc;\n
|
|
2574
|
+
var Container$t = /*#__PURE__*/styled.div(_templateObject$D || (_templateObject$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n padding: 10px 15px;\n align-items: flex-start;\n border-top: 1px solid #edebe8;\n background: #f8fafc;\n margin: 0px -15px -15px -15px;\n border-radius: 0px 0px 8px 8px;\n"])));
|
|
2201
2575
|
|
|
2202
2576
|
var _templateObject$E, _templateObject2$q, _templateObject3$d;
|
|
2203
2577
|
function ExpandedContent() {
|
|
@@ -2262,7 +2636,6 @@ function AddNote() {
|
|
|
2262
2636
|
var location = useLocation();
|
|
2263
2637
|
var pathname = location.pathname;
|
|
2264
2638
|
var orderIdLocaation = pathname.split('/')[1];
|
|
2265
|
-
// const [note, setNote] = useState('');
|
|
2266
2639
|
var _useCallAPi = useCallAPi(),
|
|
2267
2640
|
CallAPi = _useCallAPi[1];
|
|
2268
2641
|
var ssoToken = getCookie('id_token');
|
|
@@ -2295,7 +2668,8 @@ function AddNote() {
|
|
|
2295
2668
|
module_object_id: orderId || orderIdLocaation,
|
|
2296
2669
|
action: 'create',
|
|
2297
2670
|
description: noteText,
|
|
2298
|
-
data_dump: '{}'
|
|
2671
|
+
data_dump: '{}',
|
|
2672
|
+
manual: 1
|
|
2299
2673
|
}]
|
|
2300
2674
|
};
|
|
2301
2675
|
_context.prev = 6;
|
|
@@ -2320,7 +2694,7 @@ function AddNote() {
|
|
|
2320
2694
|
});
|
|
2321
2695
|
setNoteLoadingStore(true);
|
|
2322
2696
|
setNoteText('');
|
|
2323
|
-
setNoteLoadingStore(false);
|
|
2697
|
+
// setNoteLoadingStore(false);
|
|
2324
2698
|
CallAPi(true);
|
|
2325
2699
|
} else if (error) {
|
|
2326
2700
|
// Error: Set error notification
|
|
@@ -2399,33 +2773,49 @@ var NotesTableData = [{
|
|
|
2399
2773
|
tableBody: []
|
|
2400
2774
|
}];
|
|
2401
2775
|
|
|
2402
|
-
var
|
|
2776
|
+
var _templateObject2$s, _templateObject3$f, _templateObject4$5, _templateObject12;
|
|
2777
|
+
var Table = /*#__PURE__*/styled.table(_templateObject2$s || (_templateObject2$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n border-collapse: separate;\n border-spacing: 0 12px;\n\n thead tr {\n border-radius: 40px;\n\n th:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n th:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n }\n\n tbody tr {\n border-radius: 40px;\n &.completed td {\n background: rgba(87, 219, 122, 0.2) !important;\n }\n td:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n td:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n &:nth-child(even) td {\n background: #f6fbff;\n }\n td {\n .red path {\n fill: #e95252;\n }\n .green path {\n fill: #29cc6a;\n }\n }\n }\n"])));
|
|
2778
|
+
var Th = /*#__PURE__*/styled.th(_templateObject3$f || (_templateObject3$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n padding: 6px 15px;\n background: #f0f2f2;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-right: none;\n border-left: none;\n text-align: left;\n"])));
|
|
2779
|
+
var Td = /*#__PURE__*/styled.td(_templateObject4$5 || (_templateObject4$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n padding: 6px 15px;\n background: #fff;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-right: none;\n border-left: none;\n"])));
|
|
2780
|
+
var IconCover = /*#__PURE__*/styled.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 8px;\n span {\n margin-top: 4px;\n }\n"])));
|
|
2781
|
+
|
|
2782
|
+
var _templateObject$G, _templateObject2$t, _templateObject3$g, _templateObject4$6, _templateObject5$2, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
2403
2783
|
var GenericAuditLogsTable = function GenericAuditLogsTable() {
|
|
2404
2784
|
var tableHeadData = NotesTableData[0].tableHead; // Assuming NotesTableData contains table header information
|
|
2405
2785
|
var _usegetNotes = usegetNotes(),
|
|
2406
2786
|
getNotes = _usegetNotes[0];
|
|
2407
2787
|
var _UseNotesLoading = UseNotesLoading(),
|
|
2408
2788
|
isLoading = _UseNotesLoading[0];
|
|
2409
|
-
return React.createElement(ScrollableTableWrapper, null, React.createElement(AuditTableWrapper, null, React.createElement(
|
|
2410
|
-
return React.createElement(
|
|
2789
|
+
return React.createElement(ScrollableTableWrapper, null, React.createElement(AuditTableWrapper, null, React.createElement(StickyHeaderWrapper, null, React.createElement(StyledTable, null, React.createElement("thead", null, React.createElement("tr", null, tableHeadData.map(function (column) {
|
|
2790
|
+
return React.createElement(Th, {
|
|
2411
2791
|
key: column.key
|
|
2412
|
-
}, column.label);
|
|
2413
|
-
}))), React.createElement("tbody", null, isLoading ? React.createElement("tr", null, React.createElement("td", {
|
|
2792
|
+
}, React.createElement(IconCover, null, column.label));
|
|
2793
|
+
}))))), React.createElement(StyledTable, null, React.createElement("tbody", null, isLoading ? React.createElement("tr", null, React.createElement("td", {
|
|
2414
2794
|
className: "noBoder",
|
|
2415
2795
|
colSpan: tableHeadData == null ? void 0 : tableHeadData.length
|
|
2416
2796
|
}, React.createElement(Skeleton, null))) : getNotes && (getNotes == null ? void 0 : getNotes.length) > 0 ? getNotes == null ? void 0 : getNotes.map(function (note) {
|
|
2417
|
-
return React.createElement(
|
|
2797
|
+
return React.createElement(StyledTr, {
|
|
2418
2798
|
key: note == null ? void 0 : note.id
|
|
2419
|
-
}, React.createElement(
|
|
2420
|
-
className: "bold",
|
|
2799
|
+
}, React.createElement(DateTd, null, React.createElement(CreatedBy$1, {
|
|
2421
2800
|
title: note == null ? void 0 : note.created_by
|
|
2422
|
-
}, note == null ? void 0 : note.created_by), React.createElement("div", null, formatDateTime(note == null ? void 0 : note.created_at))), React.createElement(
|
|
2423
|
-
|
|
2801
|
+
}, note == null ? void 0 : note.created_by), React.createElement("div", null, formatDateTime(note == null ? void 0 : note.created_at))), React.createElement(StyledTd, {
|
|
2802
|
+
dangerouslySetInnerHTML: {
|
|
2803
|
+
__html: note == null ? void 0 : note.description
|
|
2804
|
+
}
|
|
2805
|
+
}));
|
|
2806
|
+
}) : React.createElement("tr", null, React.createElement(NoDataFound, {
|
|
2424
2807
|
colSpan: tableHeadData == null ? void 0 : tableHeadData.length
|
|
2425
2808
|
}, "No data found"))))));
|
|
2426
2809
|
};
|
|
2427
|
-
var
|
|
2428
|
-
var
|
|
2810
|
+
var AuditTableWrapper = /*#__PURE__*/styled.div(_templateObject$G || (_templateObject$G = /*#__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-style: normal;\n font-weight: 400;\n line-height: 16px;\n padding: 10px;\n .bold {\n font-weight: 500;\n font-size: 14px;\n }\n }\n }\n }\n"])));
|
|
2811
|
+
var DateTd = /*#__PURE__*/styled(Td)(_templateObject2$t || (_templateObject2$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6d6d6d;\n"])));
|
|
2812
|
+
var NoDataFound = /*#__PURE__*/styled(Td)(_templateObject3$g || (_templateObject3$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: center;\n padding: 16px;\n font-size: 16px;\n color: #999;\n"])));
|
|
2813
|
+
var StyledTable = /*#__PURE__*/styled(Table)(_templateObject4$6 || (_templateObject4$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n table-layout: fixed;\n td.noBoder {\n background: none !important;\n border: none !important;\n padding: 0;\n }\n"])));
|
|
2814
|
+
var StyledTr = /*#__PURE__*/styled.tr(_templateObject5$2 || (_templateObject5$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &:nth-child(even) {\n background-color: #f3fbff;\n }\n"])));
|
|
2815
|
+
var StyledTd = /*#__PURE__*/styled(Td)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 10px;\n"])));
|
|
2816
|
+
var CreatedBy$1 = /*#__PURE__*/styled.div(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
|
|
2817
|
+
var ScrollableTableWrapper = /*#__PURE__*/styled.div(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 250px;\n min-height: 200px;\n overflow: auto;\n"])));
|
|
2818
|
+
var StickyHeaderWrapper = /*#__PURE__*/styled.div(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: #fff;\n"])));
|
|
2429
2819
|
|
|
2430
2820
|
var _templateObject$H;
|
|
2431
2821
|
// import CustomScrollBar from '../../../../common/scrollbar';
|
|
@@ -2434,7 +2824,7 @@ function AuditLogs() {
|
|
|
2434
2824
|
}
|
|
2435
2825
|
var Container$w = /*#__PURE__*/styled.div(_templateObject$H || (_templateObject$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 295px; /* Set height to limit container size */\n overflow: auto; /* Enable scrolling */\n scrollbar-width: thin;\n"])));
|
|
2436
2826
|
|
|
2437
|
-
var _templateObject$I, _templateObject2$
|
|
2827
|
+
var _templateObject$I, _templateObject2$u, _templateObject3$h;
|
|
2438
2828
|
function Notes() {
|
|
2439
2829
|
var _usemoduleIds = usemoduleIds(),
|
|
2440
2830
|
moduleIds = _usemoduleIds[0],
|
|
@@ -2450,8 +2840,8 @@ function Notes() {
|
|
|
2450
2840
|
setNotes = _usegetNotes[1];
|
|
2451
2841
|
var _useCallAPi = useCallAPi(),
|
|
2452
2842
|
loderStatus = _useCallAPi[0];
|
|
2453
|
-
|
|
2454
|
-
|
|
2843
|
+
var _SeteauditLogToggle = SeteauditLogToggle(),
|
|
2844
|
+
auditState = _SeteauditLogToggle[0];
|
|
2455
2845
|
// Fetch module IDs
|
|
2456
2846
|
var _useApiHook = useApiHook({
|
|
2457
2847
|
endpoint: 'audit_logs/modules/',
|
|
@@ -2475,52 +2865,46 @@ function Notes() {
|
|
|
2475
2865
|
};
|
|
2476
2866
|
});
|
|
2477
2867
|
})) || [];
|
|
2478
|
-
// console.log(modules, 'modulesmodules');
|
|
2479
|
-
// const ids = modules?.map((module: any) => module.id).join(',');
|
|
2480
|
-
// setAllIds(ids);
|
|
2481
|
-
// console.log(ids, 'allIds');
|
|
2482
2868
|
var orderNoteModule = modules == null ? void 0 : modules.find(function (module) {
|
|
2483
2869
|
return (module == null ? void 0 : module.name) === 'ORDER-NOTE';
|
|
2484
2870
|
});
|
|
2485
2871
|
setModuleIds(orderNoteModule || modules[0] || null);
|
|
2486
2872
|
}
|
|
2487
2873
|
}, [apiLoading, fetchedData]);
|
|
2488
|
-
// Fetch Notes Data when `allIds` is available
|
|
2489
2874
|
var _useApiHook2 = useApiHook({
|
|
2490
|
-
|
|
2491
|
-
endpoint: "audit_logs/?module_id=" + (moduleIds == null ? void 0 : moduleIds.parentId) + "&module_object_id=" + (orderId || orderIdLocaation) + "\n ",
|
|
2875
|
+
endpoint: "audit_logs/?module_id=" + (moduleIds == null ? void 0 : moduleIds.parentId) + "&module_object_id=" + (orderId || orderIdLocaation),
|
|
2492
2876
|
method: 'GET',
|
|
2493
2877
|
performAction: false
|
|
2494
2878
|
}),
|
|
2495
2879
|
NotesData = _useApiHook2.data,
|
|
2496
2880
|
NotesLoading = _useApiHook2.loading,
|
|
2497
2881
|
setShouldPerformAction = _useApiHook2.setShouldPerformAction;
|
|
2498
|
-
// &sub_module_ids=${allIds}
|
|
2499
2882
|
useEffect(function () {
|
|
2500
2883
|
setNoteLoadingStore(true);
|
|
2501
2884
|
if (moduleIds) {
|
|
2502
|
-
|
|
2503
|
-
setShouldPerformAction(true);
|
|
2885
|
+
setShouldPerformAction(auditState);
|
|
2504
2886
|
}
|
|
2505
2887
|
if (!NotesLoading && NotesData != null && NotesData.data) {
|
|
2506
|
-
var updatedData = NotesData == null ? void 0 : NotesData.data
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2888
|
+
var updatedData = NotesData == null ? void 0 : NotesData.data.filter(function (item) {
|
|
2889
|
+
return item['ORDER-NOTE'] || item['ORDER'];
|
|
2890
|
+
}).map(function (item) {
|
|
2891
|
+
return [item['ORDER-NOTE'], item['ORDER']];
|
|
2892
|
+
}).flat().filter(Boolean);
|
|
2510
2893
|
var combinedArray = updatedData.flat();
|
|
2511
2894
|
combinedArray.sort(function (a, b) {
|
|
2512
2895
|
return new Date(b.created_at).getTime() - new Date(a.created_at).getTime();
|
|
2513
2896
|
});
|
|
2514
2897
|
setNotes(combinedArray);
|
|
2898
|
+
setNotes(combinedArray);
|
|
2515
2899
|
setNoteLoadingStore(NotesLoading);
|
|
2516
2900
|
loderStatus ? setShouldPerformAction(true) : setShouldPerformAction(false);
|
|
2517
2901
|
}
|
|
2518
|
-
}, [moduleIds, NotesLoading,
|
|
2902
|
+
}, [moduleIds, NotesLoading, auditState]);
|
|
2519
2903
|
return React.createElement(Container$x, null, React.createElement(CardHeader, null, "NOTES"), React.createElement(CustomizedFormSection, null, React.createElement(AddNote, null), React.createElement(AuditLogs, null)));
|
|
2520
2904
|
}
|
|
2521
2905
|
var Container$x = /*#__PURE__*/styled.div(_templateObject$I || (_templateObject$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 5px;\n"])));
|
|
2522
|
-
var CardHeader = /*#__PURE__*/styled.div(_templateObject2$
|
|
2523
|
-
var CustomizedFormSection = /*#__PURE__*/styled.div(_templateObject3$
|
|
2906
|
+
var CardHeader = /*#__PURE__*/styled.div(_templateObject2$u || (_templateObject2$u = /*#__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"])));
|
|
2907
|
+
var CustomizedFormSection = /*#__PURE__*/styled.div(_templateObject3$h || (_templateObject3$h = /*#__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"])));
|
|
2524
2908
|
|
|
2525
2909
|
var _templateObject$J;
|
|
2526
2910
|
function CollapsedContent() {
|
|
@@ -2544,7 +2928,7 @@ function ChevronUp(props) {
|
|
|
2544
2928
|
}));
|
|
2545
2929
|
}
|
|
2546
2930
|
|
|
2547
|
-
var _templateObject$K, _templateObject2$
|
|
2931
|
+
var _templateObject$K, _templateObject2$v, _templateObject3$i, _templateObject4$7, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1;
|
|
2548
2932
|
function CollapsableForm(props) {
|
|
2549
2933
|
var _useState = useState(true),
|
|
2550
2934
|
isExpanded = _useState[0],
|
|
@@ -2564,20 +2948,20 @@ function CollapsableForm(props) {
|
|
|
2564
2948
|
isExpanded: isExpanded
|
|
2565
2949
|
}, React.createElement(ChevronUp, null))))), isExpanded && React.createElement(CustomizedFormSection$1, null, React.createElement(ExpandedContent$1, null, props.children)));
|
|
2566
2950
|
}
|
|
2567
|
-
var CustomizedFormSection$1 = /*#__PURE__*/styled.div(_templateObject$K || (_templateObject$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n background: #ffffff;\n padding:
|
|
2568
|
-
var CardHeader$1 = /*#__PURE__*/styled.div(_templateObject2$
|
|
2569
|
-
var Text$2 = /*#__PURE__*/styled.span(_templateObject3$
|
|
2570
|
-
var Container$y = /*#__PURE__*/styled.div(_templateObject4$
|
|
2571
|
-
var MainContainer$4 = /*#__PURE__*/styled.div(_templateObject5$
|
|
2572
|
-
var IconContainer$1 = /*#__PURE__*/styled.div(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width:
|
|
2951
|
+
var CustomizedFormSection$1 = /*#__PURE__*/styled.div(_templateObject$K || (_templateObject$K = /*#__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"])));
|
|
2952
|
+
var CardHeader$1 = /*#__PURE__*/styled.div(_templateObject2$v || (_templateObject2$v = /*#__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"])));
|
|
2953
|
+
var Text$2 = /*#__PURE__*/styled.span(_templateObject3$i || (_templateObject3$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 14px;\n color: #3a3630;\n font-weight: 500;\n font-family: 'lato', sans-serif;\n cursor: pointer;\n"])));
|
|
2954
|
+
var Container$y = /*#__PURE__*/styled.div(_templateObject4$7 || (_templateObject4$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n align-items: center;\n"])));
|
|
2955
|
+
var MainContainer$4 = /*#__PURE__*/styled.div(_templateObject5$3 || (_templateObject5$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0;\n"])));
|
|
2956
|
+
var IconContainer$1 = /*#__PURE__*/styled.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) {
|
|
2573
2957
|
return props.isExpanded ? '360deg' : '180deg';
|
|
2574
2958
|
});
|
|
2575
|
-
var ExpandedContent$1 = /*#__PURE__*/styled.div(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
2576
|
-
var CollapsedContent$1 = /*#__PURE__*/styled.div(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n"])));
|
|
2959
|
+
var ExpandedContent$1 = /*#__PURE__*/styled.div(_templateObject7$1 || (_templateObject7$1 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
2960
|
+
var CollapsedContent$1 = /*#__PURE__*/styled.div(_templateObject8$1 || (_templateObject8$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n"])));
|
|
2577
2961
|
|
|
2578
2962
|
var _templateObject$L;
|
|
2579
2963
|
function Order() {
|
|
2580
|
-
return React.createElement(Table, null, React.createElement(CollapsableForm, {
|
|
2964
|
+
return React.createElement(Table$1, null, React.createElement(CollapsableForm, {
|
|
2581
2965
|
collapsedContent: React.createElement(CollapsedContent, null)
|
|
2582
2966
|
}, React.createElement(Alert, {
|
|
2583
2967
|
description: "",
|
|
@@ -2587,16 +2971,44 @@ function Order() {
|
|
|
2587
2971
|
showOkButton: false
|
|
2588
2972
|
})));
|
|
2589
2973
|
}
|
|
2590
|
-
var Table = /*#__PURE__*/styled.div(_templateObject$L || (_templateObject$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
2974
|
+
var Table$1 = /*#__PURE__*/styled.div(_templateObject$L || (_templateObject$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
2975
|
+
|
|
2976
|
+
var _templateObject$M;
|
|
2977
|
+
// import styled from 'styled-components';
|
|
2978
|
+
function CollapsedContent$2() {
|
|
2979
|
+
return React.createElement(Font$1, null, "TOOLBOX RESOURCES");
|
|
2980
|
+
}
|
|
2981
|
+
var Font$1 = /*#__PURE__*/styled.div(_templateObject$M || (_templateObject$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: 'Roboto', sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px; /* 150% */\n"])));
|
|
2982
|
+
|
|
2983
|
+
var _templateObject$N;
|
|
2984
|
+
function Toolbox() {
|
|
2985
|
+
var _orderToolbox$data, _orderToolbox$data$;
|
|
2986
|
+
var _useOrderProductsTool = useOrderProductsToolbox(),
|
|
2987
|
+
orderToolbox = _useOrderProductsTool[0];
|
|
2988
|
+
var htmlContent = orderToolbox != null && orderToolbox.data && (orderToolbox == null || (_orderToolbox$data = orderToolbox.data) == null ? void 0 : _orderToolbox$data.length) > 0 ? orderToolbox == null || (_orderToolbox$data$ = orderToolbox.data[0]) == null ? void 0 : _orderToolbox$data$.html : '';
|
|
2989
|
+
return React.createElement(StyledTable$1, null, React.createElement(CollapsableForm, {
|
|
2990
|
+
collapsedContent: React.createElement(CollapsedContent$2, null)
|
|
2991
|
+
}, React.createElement("div", {
|
|
2992
|
+
style: {
|
|
2993
|
+
overflow: 'auto'
|
|
2994
|
+
}
|
|
2995
|
+
}), React.createElement("div", {
|
|
2996
|
+
className: "tableStyle",
|
|
2997
|
+
dangerouslySetInnerHTML: {
|
|
2998
|
+
__html: htmlContent
|
|
2999
|
+
}
|
|
3000
|
+
})));
|
|
3001
|
+
}
|
|
3002
|
+
var StyledTable$1 = /*#__PURE__*/styled.table(_templateObject$N || (_templateObject$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n border: none;\n\n .tableStyle {\n border-spacing: 0;\n width: 100%;\n table {\n border-spacing: 0;\n border: none !important;\n max-height: 400px !important;\n min-height: 100px !important;\n thead {\n background: #f8f8f8 !important;\n tr {\n border-spacing: 0;\n border-bottom: 1px solid rgb(215, 214, 213);\n th {\n padding: 10px;\n font-family: Roboto, sans-serif;\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n letter-spacing: 0px;\n /* min-width: 130px; */\n &:first-child {\n border-radius: 10px 0px 0px 0px;\n }\n &:last-child {\n border-radius: 0px 10px 0px 0px;\n }\n }\n }\n }\n tbody {\n tr {\n td {\n color: #3a3630;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n padding: 10px 5px;\n background: #fff;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n border-right: none;\n border-left: none;\n word-wrap: break-word;\n max-width: 200px;\n }\n }\n }\n }\n }\n"])));
|
|
2591
3003
|
|
|
2592
|
-
var _templateObject$
|
|
3004
|
+
var _templateObject$O;
|
|
2593
3005
|
// import styled from 'styled-components';
|
|
2594
3006
|
function SystemCollapsedContent() {
|
|
2595
|
-
return React.createElement(Font$
|
|
3007
|
+
return React.createElement(Font$2, null, "SYSTEM EVENT LOGS");
|
|
2596
3008
|
}
|
|
2597
|
-
var Font$
|
|
3009
|
+
var Font$2 = /*#__PURE__*/styled.div(_templateObject$O || (_templateObject$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: 'Roboto', sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px; /* 150% */\n"])));
|
|
2598
3010
|
|
|
2599
|
-
var _templateObject$
|
|
3011
|
+
var _templateObject$P, _templateObject2$w, _templateObject3$j;
|
|
2600
3012
|
function CustomScrollBar(props) {
|
|
2601
3013
|
var children = props.children,
|
|
2602
3014
|
_props$thumbHeight = props.thumbHeight,
|
|
@@ -2614,11 +3026,11 @@ function CustomScrollBar(props) {
|
|
|
2614
3026
|
}
|
|
2615
3027
|
}, children);
|
|
2616
3028
|
}
|
|
2617
|
-
var ThumbVertical = /*#__PURE__*/styled.div(_templateObject$
|
|
2618
|
-
var View = /*#__PURE__*/styled.div(_templateObject2$
|
|
2619
|
-
var TrackHorizontal = /*#__PURE__*/styled.div(_templateObject3$
|
|
3029
|
+
var ThumbVertical = /*#__PURE__*/styled.div(_templateObject$P || (_templateObject$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #586164;\n border-radius: 66px;\n width: 2px !important; // to overide styles\n margin-top: 60px;\n"])));
|
|
3030
|
+
var View = /*#__PURE__*/styled.div(_templateObject2$w || (_templateObject2$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: hidden;\n"])));
|
|
3031
|
+
var TrackHorizontal = /*#__PURE__*/styled.div(_templateObject3$j || (_templateObject3$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n"])));
|
|
2620
3032
|
|
|
2621
|
-
var _templateObject$
|
|
3033
|
+
var _templateObject$Q, _templateObject2$x, _templateObject3$k, _templateObject4$8, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$1;
|
|
2622
3034
|
function DynamicTable(_ref) {
|
|
2623
3035
|
var columns = _ref.columns,
|
|
2624
3036
|
data = _ref.data;
|
|
@@ -2639,7 +3051,7 @@ function DynamicTable(_ref) {
|
|
|
2639
3051
|
var smallColumns = ['types', 'sources', 'event', 'code', 'type', 'route', 'category', 'action'];
|
|
2640
3052
|
var mediumColumns = ['date'];
|
|
2641
3053
|
var largeColumns = ['reference', 'notes', 'details', 'datetime'];
|
|
2642
|
-
return React.createElement(MainContainer$5, null, React.createElement(Container$z, null, React.createElement(TableWrapper, null, React.createElement(CustomScrollBar, null, React.createElement(Table$
|
|
3054
|
+
return React.createElement(MainContainer$5, null, React.createElement(Container$z, null, React.createElement(TableWrapper, null, React.createElement(CustomScrollBar, null, React.createElement(Table$2, null, React.createElement(TableHead, null, headerGroups.map(function (headerGroup) {
|
|
2643
3055
|
return React.createElement(TableRow, {
|
|
2644
3056
|
key: headerGroup.id
|
|
2645
3057
|
}, headerGroup.headers.map(function (header) {
|
|
@@ -2664,17 +3076,17 @@ function DynamicTable(_ref) {
|
|
|
2664
3076
|
// transform: rotate(180deg);
|
|
2665
3077
|
// cursor: pointer;
|
|
2666
3078
|
// `;
|
|
2667
|
-
var Container$z = /*#__PURE__*/styled.div(_templateObject$
|
|
2668
|
-
var TableWrapper = /*#__PURE__*/styled.div(_templateObject2$
|
|
2669
|
-
var TableHeadData = /*#__PURE__*/styled.th(_templateObject3$
|
|
2670
|
-
var TableData = /*#__PURE__*/styled.td(_templateObject4$
|
|
2671
|
-
var TableRow = /*#__PURE__*/styled.tr(_templateObject5$
|
|
2672
|
-
var TableBody = /*#__PURE__*/styled.tbody(_templateObject6$
|
|
2673
|
-
var TableHead = /*#__PURE__*/styled.thead(_templateObject7$
|
|
2674
|
-
var Table$
|
|
2675
|
-
var MainContainer$5 = /*#__PURE__*/styled.div(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n // width: 40%;\n .col {\n flex: 2;\n // padding: 0 0 0 10px;\n word-break: break-all;\n display: flex;\n color: #3a3630;\n align-items: center;\n // width: 160px;\n }\n\n .col.sm {\n flex: 1.5;\n // width: 115px;\n }\n .col.md {\n flex: 2.5;\n // width: 175px;\n }\n .col.lg {\n flex: 10;\n // width: 240px;\n // padding-right: 10px;\n }\n"])));
|
|
2676
|
-
|
|
2677
|
-
var _templateObject$
|
|
3079
|
+
var Container$z = /*#__PURE__*/styled.div(_templateObject$Q || (_templateObject$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 30vh;\n pointer-events: initial;\n @media (max-width: 1024px) {\n height: 40vh;\n }\n"])));
|
|
3080
|
+
var TableWrapper = /*#__PURE__*/styled.div(_templateObject2$x || (_templateObject2$x = /*#__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"])));
|
|
3081
|
+
var TableHeadData = /*#__PURE__*/styled.th(_templateObject3$k || (_templateObject3$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 20px;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n letter-spacing: 0px;\n"])));
|
|
3082
|
+
var TableData = /*#__PURE__*/styled.td(_templateObject4$8 || (_templateObject4$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-spacing: 0px;\n padding: 13px;\n font-family: 'Lato', sans-serif;\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n letter-spacing: 0px;\n"])));
|
|
3083
|
+
var TableRow = /*#__PURE__*/styled.tr(_templateObject5$4 || (_templateObject5$4 = /*#__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"])));
|
|
3084
|
+
var TableBody = /*#__PURE__*/styled.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"])));
|
|
3085
|
+
var TableHead = /*#__PURE__*/styled.thead(_templateObject7$2 || (_templateObject7$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0px;\n z-index: 1;\n background: #f8f8f8;\n white-space: nowrap;\n"])));
|
|
3086
|
+
var Table$2 = /*#__PURE__*/styled.table(_templateObject8$2 || (_templateObject8$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: 50%;\n background: rgb(255, 255, 255);\n box-shadow: 0px 4px 30px 0px #2e2d740d;\n"])));
|
|
3087
|
+
var MainContainer$5 = /*#__PURE__*/styled.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n // width: 40%;\n .col {\n flex: 2;\n // padding: 0 0 0 10px;\n word-break: break-all;\n display: flex;\n color: #3a3630;\n align-items: center;\n // width: 160px;\n }\n\n .col.sm {\n flex: 1.5;\n // width: 115px;\n }\n .col.md {\n flex: 2.5;\n // width: 175px;\n }\n .col.lg {\n flex: 10;\n // width: 240px;\n // padding-right: 10px;\n }\n"])));
|
|
3088
|
+
|
|
3089
|
+
var _templateObject$R, _templateObject2$y;
|
|
2678
3090
|
function Event(props) {
|
|
2679
3091
|
var _props$row;
|
|
2680
3092
|
var data = props == null || (_props$row = props.row) == null ? void 0 : _props$row.original.event_information_id;
|
|
@@ -2689,8 +3101,8 @@ function Event(props) {
|
|
|
2689
3101
|
};
|
|
2690
3102
|
return React.createElement(RowContainer, null, React.createElement(Row, null, getDescription(data)));
|
|
2691
3103
|
}
|
|
2692
|
-
var RowContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
2693
|
-
var Row = /*#__PURE__*/styled.div(_templateObject2$
|
|
3104
|
+
var RowContainer = /*#__PURE__*/styled.div(_templateObject$R || (_templateObject$R = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3105
|
+
var Row = /*#__PURE__*/styled.div(_templateObject2$y || (_templateObject2$y = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
2694
3106
|
|
|
2695
3107
|
//to change data into options
|
|
2696
3108
|
var transformOption = function transformOption(option, key) {
|
|
@@ -2737,25 +3149,25 @@ var priorityData = [{
|
|
|
2737
3149
|
color: '#E95252'
|
|
2738
3150
|
}];
|
|
2739
3151
|
|
|
2740
|
-
var _templateObject$
|
|
3152
|
+
var _templateObject$S, _templateObject2$z;
|
|
2741
3153
|
function Date$1(props) {
|
|
2742
3154
|
var _props$row;
|
|
2743
3155
|
var data = props == null || (_props$row = props.row) == null ? void 0 : _props$row.original.created_at;
|
|
2744
3156
|
return React.createElement(RowContainer$1, null, React.createElement(Row$1, null, formatDate(data)));
|
|
2745
3157
|
}
|
|
2746
|
-
var RowContainer$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
2747
|
-
var Row$1 = /*#__PURE__*/styled.div(_templateObject2$
|
|
3158
|
+
var RowContainer$1 = /*#__PURE__*/styled.div(_templateObject$S || (_templateObject$S = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3159
|
+
var Row$1 = /*#__PURE__*/styled.div(_templateObject2$z || (_templateObject2$z = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
2748
3160
|
|
|
2749
|
-
var _templateObject$
|
|
3161
|
+
var _templateObject$T, _templateObject2$A;
|
|
2750
3162
|
function Code(props) {
|
|
2751
3163
|
var _props$row;
|
|
2752
3164
|
var data = props == null || (_props$row = props.row) == null ? void 0 : _props$row.original.event_code;
|
|
2753
3165
|
return React.createElement(RowContainer$2, null, React.createElement(Row$2, null, data));
|
|
2754
3166
|
}
|
|
2755
|
-
var RowContainer$2 = /*#__PURE__*/styled.div(_templateObject$
|
|
2756
|
-
var Row$2 = /*#__PURE__*/styled.div(_templateObject2$
|
|
3167
|
+
var RowContainer$2 = /*#__PURE__*/styled.div(_templateObject$T || (_templateObject$T = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3168
|
+
var Row$2 = /*#__PURE__*/styled.div(_templateObject2$A || (_templateObject2$A = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
2757
3169
|
|
|
2758
|
-
var _templateObject$
|
|
3170
|
+
var _templateObject$U, _templateObject2$B;
|
|
2759
3171
|
function Note(props) {
|
|
2760
3172
|
var _props$row;
|
|
2761
3173
|
var data = props == null || (_props$row = props.row) == null || (_props$row = _props$row.original) == null ? void 0 : _props$row.event_notes;
|
|
@@ -2763,8 +3175,8 @@ function Note(props) {
|
|
|
2763
3175
|
title: data
|
|
2764
3176
|
}, React.createElement(Row$3, null, data));
|
|
2765
3177
|
}
|
|
2766
|
-
var RowContainer$3 = /*#__PURE__*/styled.div(_templateObject$
|
|
2767
|
-
var Row$3 = /*#__PURE__*/styled.div(_templateObject2$
|
|
3178
|
+
var RowContainer$3 = /*#__PURE__*/styled.div(_templateObject$U || (_templateObject$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-block;\n max-width: 200px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
3179
|
+
var Row$3 = /*#__PURE__*/styled.div(_templateObject2$B || (_templateObject2$B = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
2768
3180
|
|
|
2769
3181
|
var tableColumns = [{
|
|
2770
3182
|
header: 'Date',
|
|
@@ -2867,16 +3279,15 @@ function useGetEventNotes() {
|
|
|
2867
3279
|
return perform;
|
|
2868
3280
|
}
|
|
2869
3281
|
|
|
2870
|
-
var _templateObject$
|
|
3282
|
+
var _templateObject$V;
|
|
2871
3283
|
function SystemLogs() {
|
|
2872
3284
|
var _useOrderProductSyste = useOrderProductSystemLogs(),
|
|
2873
3285
|
systemLogs = _useOrderProductSyste[0];
|
|
2874
|
-
|
|
2875
|
-
orderDetails = _useOrderDetails[0];
|
|
3286
|
+
// const [orderDetails] = useOrderDetails();
|
|
2876
3287
|
var systemLogsData = useGetEventNotes();
|
|
2877
3288
|
var _useEventNotesData = useEventNotesData(),
|
|
2878
3289
|
setNotesData = _useEventNotesData[1];
|
|
2879
|
-
|
|
3290
|
+
// const gsitId = orderDetails?.gsit_order_id;
|
|
2880
3291
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
2881
3292
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2882
3293
|
var result;
|
|
@@ -2896,10 +3307,9 @@ function SystemLogs() {
|
|
|
2896
3307
|
case 7:
|
|
2897
3308
|
_context.prev = 7;
|
|
2898
3309
|
_context.t0 = _context["catch"](0);
|
|
2899
|
-
// console.error('Error fetching event notes:', error);
|
|
2900
3310
|
notification.error({
|
|
2901
3311
|
message: 'Error',
|
|
2902
|
-
description: "" + _context.t0 || '
|
|
3312
|
+
description: "" + _context.t0 || 'Error fetching event notes:'
|
|
2903
3313
|
});
|
|
2904
3314
|
case 10:
|
|
2905
3315
|
case "end":
|
|
@@ -2912,18 +3322,16 @@ function SystemLogs() {
|
|
|
2912
3322
|
};
|
|
2913
3323
|
}();
|
|
2914
3324
|
useEffect(function () {
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
}, [gsitId, setNotesData]);
|
|
2919
|
-
return React.createElement(Table$2, null, React.createElement(CollapsableForm, {
|
|
3325
|
+
fetchReminderData();
|
|
3326
|
+
}, [setNotesData]);
|
|
3327
|
+
return React.createElement(Table$3, null, React.createElement(CollapsableForm, {
|
|
2920
3328
|
collapsedContent: React.createElement(SystemCollapsedContent, null)
|
|
2921
3329
|
}, React.createElement(DynamicTable, {
|
|
2922
3330
|
columns: tableColumns,
|
|
2923
3331
|
data: systemLogs
|
|
2924
3332
|
})));
|
|
2925
3333
|
}
|
|
2926
|
-
var Table$
|
|
3334
|
+
var Table$3 = /*#__PURE__*/styled.div(_templateObject$V || (_templateObject$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
2927
3335
|
|
|
2928
3336
|
var StatusOptions = [{
|
|
2929
3337
|
label: 'Released',
|
|
@@ -3080,19 +3488,10 @@ function ConfirmedIcon() {
|
|
|
3080
3488
|
}))));
|
|
3081
3489
|
}
|
|
3082
3490
|
|
|
3083
|
-
var _templateObject$
|
|
3084
|
-
// import { useStatusDetails } from '../store';
|
|
3491
|
+
var _templateObject$W, _templateObject2$C, _templateObject3$l, _templateObject4$9;
|
|
3085
3492
|
function Status() {
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
released: true,
|
|
3089
|
-
received: 'True',
|
|
3090
|
-
routed: true,
|
|
3091
|
-
scheduled: true,
|
|
3092
|
-
confirmed: false,
|
|
3093
|
-
delivered: true,
|
|
3094
|
-
completed: false
|
|
3095
|
-
}];
|
|
3493
|
+
var _useStatusDetails = useStatusDetails(),
|
|
3494
|
+
orderStatus = _useStatusDetails[0];
|
|
3096
3495
|
return React.createElement(Container$A, null, React.createElement(BoxContainer, null, StatusOptions.map(function (option, index) {
|
|
3097
3496
|
return React.createElement(React.Fragment, {
|
|
3098
3497
|
key: index
|
|
@@ -3104,6 +3503,9 @@ var renderIcon = function renderIcon(value, orderStatus) {
|
|
|
3104
3503
|
if (!status) {
|
|
3105
3504
|
return null;
|
|
3106
3505
|
}
|
|
3506
|
+
if (!status) {
|
|
3507
|
+
return null;
|
|
3508
|
+
}
|
|
3107
3509
|
switch (value) {
|
|
3108
3510
|
case 'released':
|
|
3109
3511
|
case 'scheduled':
|
|
@@ -3113,16 +3515,18 @@ var renderIcon = function renderIcon(value, orderStatus) {
|
|
|
3113
3515
|
case 'received':
|
|
3114
3516
|
if (status.received === 'True') {
|
|
3115
3517
|
return React.createElement(SuccessIcon, null);
|
|
3116
|
-
} else if (status.received === '
|
|
3518
|
+
} else if (status.received === 'Partial') {
|
|
3117
3519
|
return React.createElement(RouteIcon, null);
|
|
3118
3520
|
} else {
|
|
3119
3521
|
return React.createElement(ConfirmedIcon, null);
|
|
3120
3522
|
}
|
|
3121
3523
|
case 'delivered':
|
|
3122
3524
|
if (status.delivered && (status.completed === false || status.completed === null)) {
|
|
3123
|
-
return React.createElement(DeliveredIcon, null);
|
|
3124
|
-
} else if (status.delivered && status.completed) {
|
|
3525
|
+
return React.createElement(DeliveredIcon, null); //grey
|
|
3526
|
+
} else if (status.delivered === true && status.completed === true) {
|
|
3125
3527
|
return React.createElement(SuccessIcon, null);
|
|
3528
|
+
} else if (status.delivered === true && status.completed === false) {
|
|
3529
|
+
return React.createElement(RouteIcon, null);
|
|
3126
3530
|
} else {
|
|
3127
3531
|
return React.createElement(ConfirmedIcon, null);
|
|
3128
3532
|
}
|
|
@@ -3130,22 +3534,22 @@ var renderIcon = function renderIcon(value, orderStatus) {
|
|
|
3130
3534
|
return null;
|
|
3131
3535
|
}
|
|
3132
3536
|
};
|
|
3133
|
-
var BoxContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
3134
|
-
var Heading = /*#__PURE__*/styled.div(_templateObject2$
|
|
3135
|
-
var Container$A = /*#__PURE__*/styled.div(_templateObject3$
|
|
3136
|
-
var TextContainer$1 = /*#__PURE__*/styled.div(_templateObject4$
|
|
3537
|
+
var BoxContainer = /*#__PURE__*/styled.div(_templateObject$W || (_templateObject$W = /*#__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"])));
|
|
3538
|
+
var Heading = /*#__PURE__*/styled.div(_templateObject2$C || (_templateObject2$C = /*#__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"])));
|
|
3539
|
+
var Container$A = /*#__PURE__*/styled.div(_templateObject3$l || (_templateObject3$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px;\n"])));
|
|
3540
|
+
var TextContainer$1 = /*#__PURE__*/styled.div(_templateObject4$9 || (_templateObject4$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 10px;\n display: flex;\n align-items: center;\n"])));
|
|
3137
3541
|
|
|
3138
|
-
var _templateObject$
|
|
3542
|
+
var _templateObject$X;
|
|
3139
3543
|
// import LockOrder from './LockOrder';
|
|
3140
3544
|
function GeneralHeader() {
|
|
3141
3545
|
return React.createElement(Section, null, React.createElement(Status, null));
|
|
3142
3546
|
}
|
|
3143
|
-
var Section = /*#__PURE__*/styled.div(_templateObject$
|
|
3547
|
+
var Section = /*#__PURE__*/styled.div(_templateObject$X || (_templateObject$X = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* display: flex;\n background: #ffffff;\n // padding: 15px;\n flex-direction: column;\n gap: 14px;\n border-radius: 12px;\n box-shadow: 0px 4px 30px 0px rgba(46, 45, 116, 0.05);\n border: 1px solid #e0e0e0; */\n"])));
|
|
3144
3548
|
|
|
3145
3549
|
var _templateObject19, _templateObject20, _templateObject21;
|
|
3146
|
-
var StyledTable = /*#__PURE__*/styled.table(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-spacing: 0 10px;\n width: 100%;\n /* min-width: 1600px; */\n thead {\n white-space: nowrap;\n tr {\n border-radius: 40px;\n border-spacing: 0 10px;\n .emailInvoiceCheckbox {\n padding-right: 0px;\n width: 0;\n > div {\n width: fit-content;\n }\n }\n .custom-check {\n position: relative;\n }\n .emailInvoiceNo {\n padding-left: 0px;\n }\n .emailInvoiceShare {\n width: 100px;\n }\n th {\n color: #3a3630;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n padding: 11px 15px;\n background: #f0f2f2;\n border-right: none;\n border-left: none;\n text-align: left;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-width: 1px 0;\n &:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n &:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n }\n }\n }\n tbody {\n tr {\n td {\n color: #3a3630;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n padding: 12px 15px;\n background: #fff;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-right: none;\n border-left: none;\n .actionbox {\n display: flex;\n gap: 5px;\n }\n .shareIconContainer {\n display: flex;\n padding: 2px 12px;\n align-items: center;\n gap: 8px;\n border-radius: 20px;\n border: 1px solid var(--tonal-brown-101, #e2e0db);\n background: #fff;\n list-style-type: none;\n /* padding-left: 0; */\n /* fontWeight: 600,\n paddingLeft: 0, */\n cursor: pointer;\n position: relative;\n }\n .statusCancelled {\n color: #e95252;\n /* background: rgba(233, 82, 82, 0.15); */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusOnHold {\n color: #f4a503;\n /* background: #fff1d6; */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusSubContracted {\n color: #845adf;\n /* background: rgba(132, 90, 223, 0.15); */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusAwaiting {\n color: #845adf;\n /* background: rgba(132, 90, 223, 0.15); */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusCompleted {\n color: #1f9254;\n /* background: rgba(41, 204, 106, 0.15); */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusOutstanding {\n color: #f4a503;\n /* background: #fff1d6; */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusUnknown {\n color: #000;\n /* background: #fff; */\n padding: 4px 8px;\n border-radius: 4px;\n }\n .statustext {\n color: #1f9254;\n font-family: 'Open Sans';\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n }\n .downloadcontainer {\n display: flex;\n padding: 2px 12px;\n align-items: center;\n\n width: 28px;\n height: 28px;\n flex-direction: column;\n\n border-radius: 14px;\n border: 1px solid #e2e0db;\n background: #fff;\n }\n .statuscontainer {\n display: flex;\n padding: 5px 30px 5px 30px;\n justify-content: center;\n align-items: center;\n gap: 5px;\n flex: 1 0 0;\n border-radius: 22px;\n background: rgba(41, 204, 106, 0.15);\n }\n .awaiting {\n display: flex;\n min-width: 85px;\n padding: 6px 10px;\n justify-content: center;\n align-items: center;\n gap: 5px;\n border-radius: 22px;\n background: rgba(233, 82, 82, 0.15);\n color: #e95252;\n font-family: 'Open Sans';\n font-size: 12px;\n font-weight: 600;\n }\n ul > li > a {\n text-decoration: none !important;\n color: #0099ff;\n }\n }\n &:nth-child(even) td {\n background: #f6fbff;\n }\n td:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n td:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n .flex {\n display: flex;\n flex-direction: row;\n gap: 5px;\n height: 29px;\n align-items: center;\n }\n\n &.insideTable {\n td {\n border-radius: 0;\n border: none;\n &:last-child {\n border-radius: 0;\n border-right: none;\n }\n }\n table {\n border-spacing: 0;\n width: 100%;\n border-radius: 5px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n overflow: hidden;\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n thead {\n tr {\n border-bottom: none;\n th {\n padding: 14px 20px;\n text-align: left;\n border-top: 0;\n border-right: 0;\n border-left: 0;\n background: #f8fafc;\n\n &:first-child {\n border-radius: 0;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n border-top-left-radius: 15px;\n }\n &:last-child {\n border-radius: 0;\n }\n }\n }\n }\n tbody {\n tr {\n td {\n padding: 14px 20px;\n text-align: left;\n border-bottom: 1px solid rgba(58, 54, 48, 0.15);\n background: #fff;\n > svg {\n transform: scale(1.5);\n background-color: #edebe8;\n border-radius: 20px;\n padding: 5px;\n }\n &:last-child {\n border-radius: 0;\n border-right: none;\n }\n }\n }\n }\n }\n }\n }\n }\n .actions {\n display: flex;\n align-items: center;\n gap: 20px;\n > svg {\n transform: scale(1.5);\n background-color: #edebe8;\n border-radius: 20px;\n padding: 5px;\n }\n\n .close-icon {\n transform: scale(1.3);\n background-color: transparent;\n border-radius: 0;\n padding: 0;\n }\n }\n"])));
|
|
3550
|
+
var StyledTable$2 = /*#__PURE__*/styled.table(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-spacing: 0 10px;\n width: 100%;\n /* min-width: 1600px; */\n thead {\n white-space: nowrap;\n tr {\n border-radius: 40px;\n border-spacing: 0 10px;\n .emailInvoiceCheckbox {\n padding-right: 0px;\n width: 0;\n > div {\n width: fit-content;\n }\n }\n .custom-check {\n position: relative;\n }\n .emailInvoiceNo {\n padding-left: 0px;\n }\n .emailInvoiceShare {\n width: 100px;\n }\n th {\n color: #3a3630;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n padding: 11px 15px;\n background: #f0f2f2;\n border-right: none;\n border-left: none;\n text-align: left;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-width: 1px 0;\n &:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n &:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n }\n }\n }\n tbody {\n tr {\n td {\n color: #3a3630;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n padding: 12px 15px;\n background: #fff;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-right: none;\n border-left: none;\n .actionbox {\n display: flex;\n gap: 5px;\n }\n .shareIconContainer {\n display: flex;\n padding: 2px 12px;\n align-items: center;\n gap: 8px;\n border-radius: 20px;\n border: 1px solid var(--tonal-brown-101, #e2e0db);\n background: #fff;\n list-style-type: none;\n /* padding-left: 0; */\n /* fontWeight: 600,\n paddingLeft: 0, */\n cursor: pointer;\n position: relative;\n }\n .statusCancelled {\n color: #e95252;\n /* background: rgba(233, 82, 82, 0.15); */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusOnHold {\n color: #f4a503;\n /* background: #fff1d6; */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusSubContracted {\n color: #845adf;\n /* background: rgba(132, 90, 223, 0.15); */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusAwaiting {\n color: #845adf;\n /* background: rgba(132, 90, 223, 0.15); */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusCompleted {\n color: #1f9254;\n /* background: rgba(41, 204, 106, 0.15); */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusOutstanding {\n color: #f4a503;\n /* background: #fff1d6; */\n padding: 4px 8px;\n border-radius: 4px;\n }\n\n .statusUnknown {\n color: #000;\n /* background: #fff; */\n padding: 4px 8px;\n border-radius: 4px;\n }\n .statustext {\n color: #1f9254;\n font-family: 'Open Sans';\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n }\n .downloadcontainer {\n display: flex;\n padding: 2px 12px;\n align-items: center;\n\n width: 28px;\n height: 28px;\n flex-direction: column;\n\n border-radius: 14px;\n border: 1px solid #e2e0db;\n background: #fff;\n }\n .statuscontainer {\n display: flex;\n padding: 5px 30px 5px 30px;\n justify-content: center;\n align-items: center;\n gap: 5px;\n flex: 1 0 0;\n border-radius: 22px;\n background: rgba(41, 204, 106, 0.15);\n }\n .awaiting {\n display: flex;\n min-width: 85px;\n padding: 6px 10px;\n justify-content: center;\n align-items: center;\n gap: 5px;\n border-radius: 22px;\n background: rgba(233, 82, 82, 0.15);\n color: #e95252;\n font-family: 'Open Sans';\n font-size: 12px;\n font-weight: 600;\n }\n ul > li > a {\n text-decoration: none !important;\n color: #0099ff;\n }\n }\n &:nth-child(even) td {\n background: #f6fbff;\n }\n td:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n td:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n .flex {\n display: flex;\n flex-direction: row;\n gap: 5px;\n height: 29px;\n align-items: center;\n }\n\n &.insideTable {\n td {\n border-radius: 0;\n border: none;\n &:last-child {\n border-radius: 0;\n border-right: none;\n }\n }\n table {\n border-spacing: 0;\n width: 100%;\n border-radius: 5px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n overflow: hidden;\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n thead {\n tr {\n border-bottom: none;\n th {\n padding: 14px 20px;\n text-align: left;\n border-top: 0;\n border-right: 0;\n border-left: 0;\n background: #f8fafc;\n\n &:first-child {\n border-radius: 0;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n border-top-left-radius: 15px;\n }\n &:last-child {\n border-radius: 0;\n }\n }\n }\n }\n tbody {\n tr {\n td {\n padding: 14px 20px;\n text-align: left;\n border-bottom: 1px solid rgba(58, 54, 48, 0.15);\n background: #fff;\n > svg {\n transform: scale(1.5);\n background-color: #edebe8;\n border-radius: 20px;\n padding: 5px;\n }\n &:last-child {\n border-radius: 0;\n border-right: none;\n }\n }\n }\n }\n }\n }\n }\n }\n .actions {\n display: flex;\n align-items: center;\n gap: 20px;\n > svg {\n transform: scale(1.5);\n background-color: #edebe8;\n border-radius: 20px;\n padding: 5px;\n }\n\n .close-icon {\n transform: scale(1.3);\n background-color: transparent;\n border-radius: 0;\n padding: 0;\n }\n }\n"])));
|
|
3147
3551
|
// Styled components
|
|
3148
|
-
var StyledTableWrapper = /*#__PURE__*/styled.div(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: auto;\n max-height:
|
|
3552
|
+
var StyledTableWrapper = /*#__PURE__*/styled.div(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: auto;\n max-height: 300px;\n scrollbar-width: none;\n /* height: 600px; */\n /* box-shadow: 0px 0px 30px 6px rgba(46, 45, 116, 0.05); */\n &::-webkit-scrollbar {\n width: 5px;\n border-radius: 100px;\n height: 5px;\n }\n\n &::-webkit-scrollbar-track {\n background: #777;\n border-radius: 100px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #7b61ff;\n border-radius: 100px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: #7b61ff;\n }\n"])));
|
|
3149
3553
|
var CustomDrop = /*#__PURE__*/styled.div(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* border-radius: 20px;\n border: 1px solid #e2e0db;\n background: #fff;\n display: flex;\n padding: 4px 8px;\n gap: 8px;\n align-items: center; */\n cursor: pointer;\n &.active .drop {\n transform: rotate(180deg);\n }\n"])));
|
|
3150
3554
|
|
|
3151
3555
|
var ActionIcon = function ActionIcon() {
|
|
@@ -3230,47 +3634,91 @@ var ReturnProductTable = function ReturnProductTable() {
|
|
|
3230
3634
|
var _useSelectedOrders = useSelectedOrders(),
|
|
3231
3635
|
selectedInvoices = _useSelectedOrders[0];
|
|
3232
3636
|
var _useState = useState(false),
|
|
3233
|
-
selectAll = _useState[0]
|
|
3637
|
+
selectAll = _useState[0],
|
|
3638
|
+
setSelectAll = _useState[1];
|
|
3234
3639
|
var _useProductDetails = useProductDetails(),
|
|
3235
|
-
productData = _useProductDetails[0]
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3640
|
+
productData = _useProductDetails[0],
|
|
3641
|
+
setProductData = _useProductDetails[1];
|
|
3642
|
+
var _useState2 = useState(null),
|
|
3643
|
+
selectedRowId = _useState2[0],
|
|
3644
|
+
setSelectedRowId = _useState2[1];
|
|
3645
|
+
var _useOrderId = useOrderId(),
|
|
3646
|
+
orderId = _useOrderId[0];
|
|
3647
|
+
var handleActionClick = useCallback(function (id) {
|
|
3648
|
+
setSelectedRowId(id);
|
|
3649
|
+
}, []);
|
|
3650
|
+
var _useApiHook = useApiHook({
|
|
3651
|
+
endpoint: "order/order_products/delete/",
|
|
3652
|
+
method: 'DELETE',
|
|
3653
|
+
body: [{
|
|
3654
|
+
id: selectedRowId,
|
|
3655
|
+
order_id: orderId
|
|
3656
|
+
}],
|
|
3657
|
+
performAction: false
|
|
3658
|
+
}),
|
|
3659
|
+
isresponse = _useApiHook.data,
|
|
3660
|
+
setaction = _useApiHook.setShouldPerformAction;
|
|
3661
|
+
useEffect(function () {
|
|
3662
|
+
if (isresponse && isresponse.data) {
|
|
3663
|
+
handleRemoveRow();
|
|
3664
|
+
setSelectedRowId(null);
|
|
3665
|
+
}
|
|
3666
|
+
}, [isresponse]);
|
|
3667
|
+
var handleRemoveRow = useCallback(function () {
|
|
3668
|
+
if (selectedRowId !== null) {
|
|
3669
|
+
setProductData(function (prevData) {
|
|
3670
|
+
return prevData.filter(function (item) {
|
|
3671
|
+
return item.id !== selectedRowId;
|
|
3672
|
+
});
|
|
3673
|
+
});
|
|
3674
|
+
}
|
|
3675
|
+
}, [selectedRowId, setProductData]);
|
|
3676
|
+
var onDeleteProducts = useCallback(function () {
|
|
3677
|
+
setaction(true);
|
|
3678
|
+
}, [setaction, selectedRowId]);
|
|
3679
|
+
var handleSelectAll = useCallback(function () {
|
|
3680
|
+
setSelectAll(function (prevSelectAll) {
|
|
3681
|
+
return !prevSelectAll;
|
|
3682
|
+
});
|
|
3683
|
+
}, []);
|
|
3249
3684
|
return React.createElement("div", null, React.createElement(StyledTableWrapper, {
|
|
3250
3685
|
id: "tableScrolling"
|
|
3251
|
-
}, React.createElement(StyledTable, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
|
|
3686
|
+
}, React.createElement(StyledTable$2, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
|
|
3252
3687
|
className: "emailInvoiceCheckbox"
|
|
3253
3688
|
}, React.createElement(Checkbox$1, {
|
|
3254
3689
|
checked: selectAll,
|
|
3255
|
-
onChange:
|
|
3256
|
-
})), React.createElement("th", null, "
|
|
3690
|
+
onChange: handleSelectAll
|
|
3691
|
+
})), React.createElement("th", null, "Location"), React.createElement("th", null, "Sender"), React.createElement("th", null, "Code"), React.createElement("th", null, "Description"), React.createElement("th", null, "Return Reason"), React.createElement("th", null, "Part"), React.createElement("th", null, "Action"))), React.createElement("tbody", null, productData && productData.length > 0 ? productData.map(function (invoice) {
|
|
3257
3692
|
return React.createElement("tr", {
|
|
3258
3693
|
key: invoice.id
|
|
3259
3694
|
}, React.createElement("td", null, React.createElement(Checkbox$1, {
|
|
3260
|
-
checked: selectedInvoices
|
|
3261
|
-
return
|
|
3695
|
+
checked: selectedInvoices.some(function (selectedInvoice) {
|
|
3696
|
+
return selectedInvoice.id === invoice.id;
|
|
3262
3697
|
})
|
|
3263
|
-
})), React.createElement("td", null, 'N/A'), React.createElement("td", null, 'N/A'), React.createElement("td", null, invoice
|
|
3264
|
-
|
|
3698
|
+
})), React.createElement("td", null, 'N/A'), React.createElement("td", null, 'N/A'), React.createElement("td", null, invoice.code), React.createElement("td", null, invoice.description), React.createElement("td", null, 'N/A'), React.createElement("td", null, "1 of 1"), React.createElement("td", null, React.createElement("div", {
|
|
3699
|
+
onClick: function onClick() {
|
|
3700
|
+
handleActionClick(invoice.id);
|
|
3701
|
+
onDeleteProducts();
|
|
3702
|
+
},
|
|
3703
|
+
style: {
|
|
3704
|
+
cursor: 'pointer'
|
|
3705
|
+
}
|
|
3706
|
+
}, React.createElement(ActionIcon, null))));
|
|
3707
|
+
}) : React.createElement("tr", null, React.createElement("td", {
|
|
3708
|
+
colSpan: 8,
|
|
3709
|
+
style: {
|
|
3710
|
+
textAlign: 'center'
|
|
3711
|
+
}
|
|
3712
|
+
}, "No records found"))))));
|
|
3265
3713
|
};
|
|
3266
3714
|
|
|
3267
|
-
var _templateObject$
|
|
3715
|
+
var _templateObject$Y;
|
|
3268
3716
|
var ProductTable = function ProductTable() {
|
|
3269
3717
|
return React.createElement(Container$B, null, React.createElement(ReturnProductTable, null));
|
|
3270
3718
|
};
|
|
3271
|
-
var Container$B = /*#__PURE__*/styled.div(_templateObject$
|
|
3719
|
+
var Container$B = /*#__PURE__*/styled.div(_templateObject$Y || (_templateObject$Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* height: 230px; */\n overflow: auto; /* Enable scrolling */\n scrollbar-width: thin;\n"])));
|
|
3272
3720
|
|
|
3273
|
-
var _templateObject$
|
|
3721
|
+
var _templateObject$Z, _templateObject2$D, _templateObject3$m;
|
|
3274
3722
|
function ExpandedContent$2() {
|
|
3275
3723
|
var SaveNote = function SaveNote() {
|
|
3276
3724
|
// alert('saved');
|
|
@@ -3286,15 +3734,15 @@ function ExpandedContent$2() {
|
|
|
3286
3734
|
onClick: SaveNote
|
|
3287
3735
|
}, "SAVE Details"))));
|
|
3288
3736
|
}
|
|
3289
|
-
var MidConatiner = /*#__PURE__*/styled.div(_templateObject$
|
|
3290
|
-
var SaveNoteContainer$1 = /*#__PURE__*/styled.div(_templateObject2$
|
|
3291
|
-
var Container$C = /*#__PURE__*/styled.div(_templateObject3$
|
|
3737
|
+
var MidConatiner = /*#__PURE__*/styled.div(_templateObject$Z || (_templateObject$Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n padding: 10px 15px;\n align-items: flex-start;\n border-top: 1px solid #edebe8;\n background: #f8fafc;\n margin: 0px -15px -15px -15px;\n border-radius: 0px 0px 8px 8px;\n margin-bottom: 22px;\n"])));
|
|
3738
|
+
var SaveNoteContainer$1 = /*#__PURE__*/styled.div(_templateObject2$D || (_templateObject2$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n gap: 10px;\n"])));
|
|
3739
|
+
var Container$C = /*#__PURE__*/styled.div(_templateObject3$m || (_templateObject3$m = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3292
3740
|
|
|
3293
|
-
var _templateObject$
|
|
3741
|
+
var _templateObject$_;
|
|
3294
3742
|
// import ModalManager from '../../modalsPopup/ModalManager';
|
|
3295
3743
|
// import { countReducerAtom, useProductDetails } from '../../store';
|
|
3296
3744
|
// import { useAtom } from 'jotai';
|
|
3297
|
-
function CollapsedContent$
|
|
3745
|
+
function CollapsedContent$3() {
|
|
3298
3746
|
// const [, dispatch] = useAtom(countReducerAtom);
|
|
3299
3747
|
// const [productdata] = useProductDetails();
|
|
3300
3748
|
// const totalItems = productdata?.length;
|
|
@@ -3360,7 +3808,7 @@ function CollapsedContent$2() {
|
|
|
3360
3808
|
// align-items: center;
|
|
3361
3809
|
// gap: 30px;
|
|
3362
3810
|
// `;
|
|
3363
|
-
var Container$D = /*#__PURE__*/styled.div(_templateObject$
|
|
3811
|
+
var Container$D = /*#__PURE__*/styled.div(_templateObject$_ || (_templateObject$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n gap: 30px;\n"])));
|
|
3364
3812
|
|
|
3365
3813
|
// Dropdown
|
|
3366
3814
|
var PrintOptionTOggle = /*#__PURE__*/atom(null);
|
|
@@ -3454,26 +3902,143 @@ function ProductsInfo() {
|
|
|
3454
3902
|
}
|
|
3455
3903
|
}, [fetchedData, loading]);
|
|
3456
3904
|
return React.createElement(CollapsableForm, {
|
|
3457
|
-
collapsedContent: React.createElement(CollapsedContent$
|
|
3905
|
+
collapsedContent: React.createElement(CollapsedContent$3, null)
|
|
3458
3906
|
}, React.createElement(ExpandedContent$2, null));
|
|
3459
3907
|
}
|
|
3460
3908
|
|
|
3461
|
-
var _templateObject
|
|
3909
|
+
var _templateObject$$;
|
|
3910
|
+
// import styled from 'styled-components';
|
|
3911
|
+
function TomTomCollapsedContent() {
|
|
3912
|
+
return React.createElement(Font$3, null, "TOMTOM LOGS");
|
|
3913
|
+
}
|
|
3914
|
+
var Font$3 = /*#__PURE__*/styled.div(_templateObject$$ || (_templateObject$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: 'Roboto', sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px; /* 150% */\n"])));
|
|
3915
|
+
|
|
3916
|
+
var options = [{
|
|
3917
|
+
label: 'Task',
|
|
3918
|
+
value: 'task',
|
|
3919
|
+
selectedBackgroundColor: '#F0F2F2',
|
|
3920
|
+
selectedFontColor: '#3a3630'
|
|
3921
|
+
}, {
|
|
3922
|
+
label: 'Reminder',
|
|
3923
|
+
value: 'reminder',
|
|
3924
|
+
selectedBackgroundColor: 'white',
|
|
3925
|
+
selectedFontColor: '#3a3630'
|
|
3926
|
+
}];
|
|
3927
|
+
var ReturnData = [{
|
|
3928
|
+
label: 'Return1',
|
|
3929
|
+
value: 'return1'
|
|
3930
|
+
}, {
|
|
3931
|
+
label: 'Return2',
|
|
3932
|
+
value: 'return2'
|
|
3933
|
+
}, {
|
|
3934
|
+
label: 'Return3',
|
|
3935
|
+
value: 'return3'
|
|
3936
|
+
}];
|
|
3937
|
+
var TaskType = [{
|
|
3938
|
+
label: 'Client',
|
|
3939
|
+
value: 'client'
|
|
3940
|
+
}, {
|
|
3941
|
+
label: 'Customer Service (CS)',
|
|
3942
|
+
value: 'cs'
|
|
3943
|
+
}, {
|
|
3944
|
+
label: 'Transport (DH)',
|
|
3945
|
+
value: 'dh'
|
|
3946
|
+
}, {
|
|
3947
|
+
label: 'Warehouse',
|
|
3948
|
+
value: 'warehouse'
|
|
3949
|
+
}, {
|
|
3950
|
+
label: 'Customer Portal',
|
|
3951
|
+
value: 'customer-portal'
|
|
3952
|
+
}, {
|
|
3953
|
+
label: 'Delivery App',
|
|
3954
|
+
value: 'delivery-app'
|
|
3955
|
+
}, {
|
|
3956
|
+
label: 'Complaints',
|
|
3957
|
+
value: 'complaints'
|
|
3958
|
+
}, {
|
|
3959
|
+
label: 'Offshore',
|
|
3960
|
+
value: 'offshore'
|
|
3961
|
+
}, {
|
|
3962
|
+
label: 'Stock Admin',
|
|
3963
|
+
value: 'stock-admin'
|
|
3964
|
+
}, {
|
|
3965
|
+
label: 'Call Customer',
|
|
3966
|
+
value: 'call-customer'
|
|
3967
|
+
}, {
|
|
3968
|
+
label: 'Driver Compliance',
|
|
3969
|
+
value: 'driver-compliance'
|
|
3970
|
+
}];
|
|
3971
|
+
var CustomOptions = [{
|
|
3972
|
+
label: 'Private',
|
|
3973
|
+
value: 'private'
|
|
3974
|
+
}, {
|
|
3975
|
+
label: 'Public',
|
|
3976
|
+
value: 'public'
|
|
3977
|
+
}];
|
|
3978
|
+
var DefectConfirm = [{
|
|
3979
|
+
label: 'Yes',
|
|
3980
|
+
value: 'yes'
|
|
3981
|
+
}, {
|
|
3982
|
+
label: 'No',
|
|
3983
|
+
value: 'no'
|
|
3984
|
+
}];
|
|
3985
|
+
var TomTomColumns = [{
|
|
3986
|
+
header: 'Event Date',
|
|
3987
|
+
accessorKey: 'eventdate'
|
|
3988
|
+
}, {
|
|
3989
|
+
header: 'Route',
|
|
3990
|
+
accessorKey: 'route'
|
|
3991
|
+
}, {
|
|
3992
|
+
header: 'Details',
|
|
3993
|
+
accessorKey: 'details'
|
|
3994
|
+
}, {
|
|
3995
|
+
header: 'Type',
|
|
3996
|
+
accessorKey: 'type'
|
|
3997
|
+
}];
|
|
3998
|
+
var tomtomResources = [{
|
|
3999
|
+
route: 'Hammer',
|
|
4000
|
+
details: 'Sent to Object; RYF',
|
|
4001
|
+
eventdate: '2024-06-01',
|
|
4002
|
+
type: 'workFlow'
|
|
4003
|
+
}, {
|
|
4004
|
+
route: 'Screwdriver',
|
|
4005
|
+
details: 'Sent to Object; RYF',
|
|
4006
|
+
eventdate: '2024-06-10',
|
|
4007
|
+
type: 'workFlow'
|
|
4008
|
+
}, {
|
|
4009
|
+
route: 'Wrench',
|
|
4010
|
+
details: 'Sent to Object; RYF',
|
|
4011
|
+
eventdate: '2024-06-20',
|
|
4012
|
+
type: 'workFlow'
|
|
4013
|
+
}];
|
|
4014
|
+
|
|
4015
|
+
var _templateObject$10;
|
|
4016
|
+
function TomTomLogs() {
|
|
4017
|
+
return React.createElement(Table$4, null, React.createElement(CollapsableForm, {
|
|
4018
|
+
collapsedContent: React.createElement(TomTomCollapsedContent, null)
|
|
4019
|
+
}, React.createElement(DynamicTable, {
|
|
4020
|
+
columns: TomTomColumns,
|
|
4021
|
+
data: tomtomResources
|
|
4022
|
+
})));
|
|
4023
|
+
}
|
|
4024
|
+
var Table$4 = /*#__PURE__*/styled.div(_templateObject$10 || (_templateObject$10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
4025
|
+
|
|
4026
|
+
var _templateObject$11;
|
|
3462
4027
|
function BackgroundModal(props) {
|
|
3463
4028
|
return createPortal(React.createElement(Container$E, Object.assign({}, props), props.children), document.body);
|
|
3464
4029
|
}
|
|
3465
|
-
var Container$E = /*#__PURE__*/styled.div(_templateObject$
|
|
4030
|
+
var Container$E = /*#__PURE__*/styled.div(_templateObject$11 || (_templateObject$11 = /*#__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"])));
|
|
3466
4031
|
|
|
3467
|
-
var _templateObject$
|
|
4032
|
+
var _templateObject$12, _templateObject2$E, _templateObject3$n, _templateObject4$a;
|
|
3468
4033
|
function AdditionalInformation(props) {
|
|
3469
4034
|
return React.createElement(Container$F, null, React.createElement(Rect, null), React.createElement(AdditionalInfo, null, React.createElement(Text$3, null, props.info)));
|
|
3470
4035
|
}
|
|
3471
|
-
var Text$3 = /*#__PURE__*/styled.p(_templateObject$
|
|
3472
|
-
var Container$F = /*#__PURE__*/styled.div(_templateObject2$
|
|
3473
|
-
var Rect = /*#__PURE__*/styled.div(_templateObject3$
|
|
3474
|
-
var AdditionalInfo = /*#__PURE__*/styled.div(_templateObject4$
|
|
4036
|
+
var Text$3 = /*#__PURE__*/styled.p(_templateObject$12 || (_templateObject$12 = /*#__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"])));
|
|
4037
|
+
var Container$F = /*#__PURE__*/styled.div(_templateObject2$E || (_templateObject2$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
|
|
4038
|
+
var Rect = /*#__PURE__*/styled.div(_templateObject3$n || (_templateObject3$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 9px;\n height: 45px;\n background: #3a3630;\n"])));
|
|
4039
|
+
var AdditionalInfo = /*#__PURE__*/styled.div(_templateObject4$a || (_templateObject4$a = /*#__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"])));
|
|
3475
4040
|
|
|
3476
|
-
var _templateObject
|
|
4041
|
+
var _templateObject$13, _templateObject2$F, _templateObject3$o, _templateObject4$b;
|
|
3477
4042
|
function OrderActionHeader(props) {
|
|
3478
4043
|
var title = props.title,
|
|
3479
4044
|
actions = props.actions,
|
|
@@ -3488,12 +4053,12 @@ function OrderActionHeader(props) {
|
|
|
3488
4053
|
onClick: onClose
|
|
3489
4054
|
}, React.createElement(CrossIcon, null)));
|
|
3490
4055
|
}
|
|
3491
|
-
var Wrapper$b = /*#__PURE__*/styled.div(_templateObject
|
|
3492
|
-
var IconContainer$2 = /*#__PURE__*/styled.div(_templateObject2$
|
|
3493
|
-
var Title = /*#__PURE__*/styled.h3(_templateObject3$
|
|
3494
|
-
var Container$G = /*#__PURE__*/styled.div(_templateObject4$
|
|
4056
|
+
var Wrapper$b = /*#__PURE__*/styled.div(_templateObject$13 || (_templateObject$13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n align-items: center;\n width: 90%;\n margin-left: 20px;\n"])));
|
|
4057
|
+
var IconContainer$2 = /*#__PURE__*/styled.div(_templateObject2$F || (_templateObject2$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n svg > path {\n fill: #ffffff;\n }\n cursor: pointer;\n"])));
|
|
4058
|
+
var Title = /*#__PURE__*/styled.h3(_templateObject3$o || (_templateObject3$o = /*#__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"])));
|
|
4059
|
+
var Container$G = /*#__PURE__*/styled.div(_templateObject4$b || (_templateObject4$b = /*#__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"])));
|
|
3495
4060
|
|
|
3496
|
-
var _templateObject$
|
|
4061
|
+
var _templateObject$14, _templateObject2$G;
|
|
3497
4062
|
function OrderActionFooter(props) {
|
|
3498
4063
|
var isSubmitDisabled = props.isSubmitDisabled;
|
|
3499
4064
|
return React.createElement(Container$H, null, React.createElement(SubmitButton, {
|
|
@@ -3503,10 +4068,10 @@ function OrderActionFooter(props) {
|
|
|
3503
4068
|
disabled: isSubmitDisabled
|
|
3504
4069
|
}, props.submitButtonTitle || 'submit'), props.actions);
|
|
3505
4070
|
}
|
|
3506
|
-
var SubmitButton = /*#__PURE__*/styled(Button$1)(_templateObject$
|
|
3507
|
-
var Container$H = /*#__PURE__*/styled.div(_templateObject2$
|
|
4071
|
+
var SubmitButton = /*#__PURE__*/styled(Button$1)(_templateObject$14 || (_templateObject$14 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
4072
|
+
var Container$H = /*#__PURE__*/styled.div(_templateObject2$G || (_templateObject2$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n /* justify-content: space-between; */\n gap: 15px;\n align-items: center;\n width: 100%;\n background: #f8fafc;\n border-radius: 0px 0px 6px 6px;\n padding: 10px 15px 10px 15px;\n border-top: 1px solid #edebe8;\n margin-left: 25px;\n"])));
|
|
3508
4073
|
|
|
3509
|
-
var _templateObject$
|
|
4074
|
+
var _templateObject$15;
|
|
3510
4075
|
function OrderActionModal(props) {
|
|
3511
4076
|
return React.createElement(BackgroundModal, null, React.createElement(MainContainer$6, null, React.createElement(OrderActionHeader, {
|
|
3512
4077
|
title: props.headerTitle,
|
|
@@ -3521,9 +4086,9 @@ function OrderActionModal(props) {
|
|
|
3521
4086
|
isSubmitDisabled: props.isSubmitDisabled
|
|
3522
4087
|
})));
|
|
3523
4088
|
}
|
|
3524
|
-
var MainContainer$6 = /*#__PURE__*/styled.div(_templateObject$
|
|
4089
|
+
var MainContainer$6 = /*#__PURE__*/styled.div(_templateObject$15 || (_templateObject$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n min-height: 30vh;\n max-height: 80vh;\n /* overflow: auto; */\n border-radius: 12px;\n background: #fff;\n box-shadow: 0px 20px 24px -4px #10182814;\n display: flex;\n flex-direction: column;\n gap: 15px;\n align-items: center;\n justify-content: space-between;\n overflow-x: hidden;\n"])));
|
|
3525
4090
|
|
|
3526
|
-
var _templateObject$
|
|
4091
|
+
var _templateObject$16, _templateObject2$H;
|
|
3527
4092
|
function OrderActionsDropdown(props) {
|
|
3528
4093
|
return React.createElement(Container$I, {
|
|
3529
4094
|
className: props.className
|
|
@@ -3541,8 +4106,8 @@ function OrderActionsDropdown(props) {
|
|
|
3541
4106
|
selectWrapperClass: 'rounded'
|
|
3542
4107
|
}));
|
|
3543
4108
|
}
|
|
3544
|
-
var Label = /*#__PURE__*/styled.label(_templateObject$
|
|
3545
|
-
var Container$I = /*#__PURE__*/styled.div(_templateObject2$
|
|
4109
|
+
var Label = /*#__PURE__*/styled.label(_templateObject$16 || (_templateObject$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
4110
|
+
var Container$I = /*#__PURE__*/styled.div(_templateObject2$H || (_templateObject2$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
3546
4111
|
|
|
3547
4112
|
function DocumentTypeDropdown() {
|
|
3548
4113
|
var onSelect = function onSelect() {};
|
|
@@ -3622,7 +4187,7 @@ function UploadIcon(props) {
|
|
|
3622
4187
|
})));
|
|
3623
4188
|
}
|
|
3624
4189
|
|
|
3625
|
-
var _templateObject$
|
|
4190
|
+
var _templateObject$17, _templateObject2$I, _templateObject3$p, _templateObject4$c, _templateObject5$5, _templateObject6$3, _templateObject7$3;
|
|
3626
4191
|
var Dragger = Upload.Dragger;
|
|
3627
4192
|
var props = {
|
|
3628
4193
|
name: 'file',
|
|
@@ -3649,15 +4214,15 @@ function DocFileUpload() {
|
|
|
3649
4214
|
shape: 'rounded'
|
|
3650
4215
|
}, "Upload Button"), React.createElement(IconContainer$3, null, React.createElement(UploadIcon, null)), React.createElement(TextContainer$2, null, React.createElement(Text1, null, "or drag and drop your file "), React.createElement(Text2, null, "Excel (.xls / .xlsx) or CSV (.csv) Only")))));
|
|
3651
4216
|
}
|
|
3652
|
-
var MainContainer$7 = /*#__PURE__*/styled.div(_templateObject$
|
|
3653
|
-
var Text2 = /*#__PURE__*/styled.p(_templateObject2$
|
|
3654
|
-
var TextContainer$2 = /*#__PURE__*/styled.div(_templateObject3$
|
|
3655
|
-
var Text1 = /*#__PURE__*/styled.p(_templateObject4$
|
|
3656
|
-
var IconContainer$3 = /*#__PURE__*/styled.div(_templateObject5$
|
|
3657
|
-
var UploadButton = /*#__PURE__*/styled(Button$1)(_templateObject6$
|
|
3658
|
-
var Container$J = /*#__PURE__*/styled.div(_templateObject7$
|
|
4217
|
+
var MainContainer$7 = /*#__PURE__*/styled.div(_templateObject$17 || (_templateObject$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n .ant-upload-wrapper .ant-upload-drag .ant-upload {\n padding: 0;\n }\n .ant-upload-wrapper, .ant-upload-drag, .ant-upload {\n border: none;\n background: transparent;\n }\n"])));
|
|
4218
|
+
var Text2 = /*#__PURE__*/styled.p(_templateObject2$I || (_templateObject2$I = /*#__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"])));
|
|
4219
|
+
var TextContainer$2 = /*#__PURE__*/styled.div(_templateObject3$p || (_templateObject3$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n\n"])));
|
|
4220
|
+
var Text1 = /*#__PURE__*/styled.p(_templateObject4$c || (_templateObject4$c = /*#__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"])));
|
|
4221
|
+
var IconContainer$3 = /*#__PURE__*/styled.div(_templateObject5$5 || (_templateObject5$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px dashed #0465AC;\n padding: 5px;\n display: flex;\n align-items: center;\n"])));
|
|
4222
|
+
var UploadButton = /*#__PURE__*/styled(Button$1)(_templateObject6$3 || (_templateObject6$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 16px;\n font-size: 14px;\n padding: 7px 20px;\n"])));
|
|
4223
|
+
var Container$J = /*#__PURE__*/styled.div(_templateObject7$3 || (_templateObject7$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n padding: 6px;\n align-items: center;\n align-self: stretch;\n border-radius: 30px;\n border: 1px solid #E0E2E7;\n background: #FFF;\n\n \n"])));
|
|
3659
4224
|
|
|
3660
|
-
var _templateObject$
|
|
4225
|
+
var _templateObject$18, _templateObject2$J, _templateObject3$q, _templateObject4$d;
|
|
3661
4226
|
// import DocFileUpload from './DocFileUpload';
|
|
3662
4227
|
function AddResources() {
|
|
3663
4228
|
var _useCurrentAction = useCurrentAction(),
|
|
@@ -3673,12 +4238,12 @@ function AddResources() {
|
|
|
3673
4238
|
onSubmit: function onSubmit() {}
|
|
3674
4239
|
}, React.createElement(ContentContainer, null, React.createElement(Top$1, null, React.createElement(DocumentTypeDropdown, null), React.createElement(CategoryDropdown, null), React.createElement(VisibilityRadioButtons, null)), React.createElement(Bottom$1, null, React.createElement(Label$1, null, "File"), React.createElement(DocFileUpload, null))));
|
|
3675
4240
|
}
|
|
3676
|
-
var Label$1 = /*#__PURE__*/styled.label(_templateObject$
|
|
3677
|
-
var Bottom$1 = /*#__PURE__*/styled.div(_templateObject2$
|
|
3678
|
-
var Top$1 = /*#__PURE__*/styled.div(_templateObject3$
|
|
3679
|
-
var ContentContainer = /*#__PURE__*/styled.div(_templateObject4$
|
|
4241
|
+
var Label$1 = /*#__PURE__*/styled.label(_templateObject$18 || (_templateObject$18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
4242
|
+
var Bottom$1 = /*#__PURE__*/styled.div(_templateObject2$J || (_templateObject2$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
4243
|
+
var Top$1 = /*#__PURE__*/styled.div(_templateObject3$q || (_templateObject3$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n > div {\n min-width: 240px;\n }\n"])));
|
|
4244
|
+
var ContentContainer = /*#__PURE__*/styled.div(_templateObject4$d || (_templateObject4$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* display: flex; */\n padding: 15px 12px;\n flex: 1 0 0;\n border-radius: 15px;\n background: #f8fafc;\n margin: 0px 20px 0 20px;\n"])));
|
|
3680
4245
|
|
|
3681
|
-
var _templateObject$
|
|
4246
|
+
var _templateObject$19, _templateObject2$K, _templateObject3$r;
|
|
3682
4247
|
function SplitOrderTable() {
|
|
3683
4248
|
return React.createElement(GLobalPopupContent, null, React.createElement(TableSkelton, null, React.createElement("table", null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", null, React.createElement(CustomCheckBox, null, React.createElement("label", {
|
|
3684
4249
|
className: "container"
|
|
@@ -3706,11 +4271,11 @@ function SplitOrderTable() {
|
|
|
3706
4271
|
className: "checkmark"
|
|
3707
4272
|
})))), React.createElement("td", null, "Return"), React.createElement("td", null, "FFLMW-B1"), React.createElement("td", null, "Outstanding"), React.createElement("td", null, "Flair Furnishings Loop Midsleeper White /DOUBLE COXMOOR NEST OF 3 TABLES - OAK"), React.createElement("td", null, "Flair Furnishings Loop Midsleeper White /DOUBLE COXMOOR NEST OF 3 TABLES - OAK"), React.createElement("td", null, "007022530015429326"))))));
|
|
3708
4273
|
}
|
|
3709
|
-
var GLobalPopupContent = /*#__PURE__*/styled.div(_templateObject$
|
|
3710
|
-
var TableSkelton = /*#__PURE__*/styled.div(_templateObject2$
|
|
3711
|
-
var CustomCheckBox = /*#__PURE__*/styled.div(_templateObject3$
|
|
4274
|
+
var GLobalPopupContent = /*#__PURE__*/styled.div(_templateObject$19 || (_templateObject$19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n section {\n padding: 0px 0 15px;\n .filterCover {\n border-radius: 16px;\n border: 1px solid var(--tonal-brown-10, #edebe8);\n background: #f8fafc;\n display: flex;\n gap: 30px;\n padding: 15px;\n gap: 15px;\n .col {\n width: 21%;\n label {\n color: #8d8f90;\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n display: block;\n margin-bottom: 4px;\n }\n .ant-select-single {\n width: 100%;\n }\n select {\n width: 100%;\n }\n &:first-child {\n width: 43%;\n }\n &:last-child {\n width: 33%;\n }\n }\n }\n }\n"])));
|
|
4275
|
+
var TableSkelton = /*#__PURE__*/styled.div(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: -8px;\n min-height: 400px;\n table {\n border-collapse: separate;\n width: 100%;\n border-spacing: 0px 8px;\n thead {\n tr {\n th {\n font-size: 14px;\n font-weight: 600;\n padding: 8px 15px;\n text-align: left;\n border-top: 1px solid rgba(0, 0, 0, 0.08);\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n\n background: #f0f2f2;\n &:first-child {\n border-radius: 20px 0 0 20px;\n }\n &:last-child {\n border-radius: 0 20px 20px 0;\n }\n }\n }\n }\n tbody {\n tr {\n td {\n color: #3a3630;\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n padding: 6px 15px;\n text-align: left;\n box-shadow: 3px 1px 3px 0px rgba(16, 24, 40, 0.1);\n\n background: #fff;\n\n &:first-child {\n border-radius: 20px 0 0 20px;\n }\n\n &:last-child {\n border-radius: 0 20px 20px 0;\n }\n }\n }\n }\n }\n"])));
|
|
4276
|
+
var CustomCheckBox = /*#__PURE__*/styled.div(_templateObject3$r || (_templateObject3$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .container {\n display: block;\n position: relative;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n width: 20px;\n height: 20px;\n }\n\n .container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 100%;\n width: 100%;\n }\n\n .checkmark {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #cfcfcf;\n border-radius: 4px;\n }\n\n .container:hover input ~ .checkmark {\n border-color: #7f7a7a;\n }\n\n .container input:checked ~ .checkmark {\n background-color: #000;\n }\n\n .checkmark:after {\n content: '';\n position: absolute;\n display: none;\n }\n\n .container input:checked ~ .checkmark:after {\n display: block;\n }\n\n .container .checkmark:after {\n left: 8px;\n top: 4px;\n width: 3px;\n height: 6px;\n border: solid white;\n border-width: 0 2px 2px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n"])));
|
|
3712
4277
|
|
|
3713
|
-
var _templateObject$
|
|
4278
|
+
var _templateObject$1a;
|
|
3714
4279
|
function SplitOrder() {
|
|
3715
4280
|
var _useCurrentAction = useCurrentAction(),
|
|
3716
4281
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -3726,7 +4291,7 @@ function SplitOrder() {
|
|
|
3726
4291
|
submitBtnTitle: "Split Order"
|
|
3727
4292
|
}, React.createElement(ContentContainer$1, null, React.createElement(SplitOrderTable, null)));
|
|
3728
4293
|
}
|
|
3729
|
-
var ContentContainer$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
4294
|
+
var ContentContainer$1 = /*#__PURE__*/styled.div(_templateObject$1a || (_templateObject$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 15px 12px;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 15px;\n flex: 1 0 0;\n border-radius: 15px;\n background: #f8fafc;\n"])));
|
|
3730
4295
|
|
|
3731
4296
|
function RadioButtonCheckIcon(props) {
|
|
3732
4297
|
return React.createElement("svg", Object.assign({
|
|
@@ -3757,7 +4322,7 @@ var fonts = {
|
|
|
3757
4322
|
secondary: "'Lato', sans-serif"
|
|
3758
4323
|
};
|
|
3759
4324
|
|
|
3760
|
-
var _templateObject$
|
|
4325
|
+
var _templateObject$1b, _templateObject2$L, _templateObject3$s;
|
|
3761
4326
|
function RadioButton(props) {
|
|
3762
4327
|
return React.createElement(RadioContainer$1, null, props.checked && React.createElement(RadioButtonCheckIcon, {
|
|
3763
4328
|
color: props.color
|
|
@@ -3768,15 +4333,15 @@ function RadioButton(props) {
|
|
|
3768
4333
|
htmlFor: props.id
|
|
3769
4334
|
}, props.label));
|
|
3770
4335
|
}
|
|
3771
|
-
var Label$2 = /*#__PURE__*/styled.label(_templateObject$
|
|
3772
|
-
var Input = /*#__PURE__*/styled.input(_templateObject2$
|
|
4336
|
+
var Label$2 = /*#__PURE__*/styled.label(_templateObject$1b || (_templateObject$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n color: #aea9a1;\n white-space: nowrap;\n"])), fonts.secondary);
|
|
4337
|
+
var Input = /*#__PURE__*/styled.input(_templateObject2$L || (_templateObject2$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n appearance: none;\n margin: 0;\n width: 16px;\n height: 16px;\n border: 1px solid #aea9a1;\n border-radius: 14px;\n cursor: pointer;\n\n &:checked {\n & + ", " {\n color: ", ";\n }\n display: none;\n }\n\n &::after {\n content: '';\n display: block;\n border-radius: 14px;\n width: 12px;\n height: 12px;\n margin: 2px;\n }\n\n &:checked::after {\n background-color: ", ";\n }\n"])), Label$2, function (props) {
|
|
3773
4338
|
return props.color || '#6396e5';
|
|
3774
4339
|
}, function (props) {
|
|
3775
4340
|
return props.color || '#6396e5';
|
|
3776
4341
|
});
|
|
3777
|
-
var RadioContainer$1 = /*#__PURE__*/styled.div(_templateObject3$
|
|
4342
|
+
var RadioContainer$1 = /*#__PURE__*/styled.div(_templateObject3$s || (_templateObject3$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n align-items: center;\n"])));
|
|
3778
4343
|
|
|
3779
|
-
var _templateObject$
|
|
4344
|
+
var _templateObject$1c, _templateObject2$M, _templateObject3$t, _templateObject4$e, _templateObject5$6, _templateObject6$4, _templateObject7$4;
|
|
3780
4345
|
function RadioButtonGroup(props) {
|
|
3781
4346
|
var heading = props.heading,
|
|
3782
4347
|
_props$direction = props.direction,
|
|
@@ -3811,19 +4376,19 @@ function RadioButtonGroup(props) {
|
|
|
3811
4376
|
className: "custom-wrapper"
|
|
3812
4377
|
}, renderOptions()));
|
|
3813
4378
|
}
|
|
3814
|
-
var Separator = /*#__PURE__*/styled.div(_templateObject$
|
|
3815
|
-
var labelStyles = /*#__PURE__*/css(_templateObject2$
|
|
3816
|
-
var RequiredText = /*#__PURE__*/styled.span(_templateObject3$
|
|
4379
|
+
var Separator = /*#__PURE__*/styled.div(_templateObject$1c || (_templateObject$1c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 1px;\n background: #e0e2e7;\n"])));
|
|
4380
|
+
var labelStyles = /*#__PURE__*/css(_templateObject2$M || (_templateObject2$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n line-height: 20px;\n"])), fonts.secondary);
|
|
4381
|
+
var RequiredText = /*#__PURE__*/styled.span(_templateObject3$t || (_templateObject3$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n ", "\n"])), function (props) {
|
|
3817
4382
|
return !props.$required && 'visibility: hidden;';
|
|
3818
4383
|
}, labelStyles);
|
|
3819
|
-
var LegendContainer = /*#__PURE__*/styled.div(_templateObject4$
|
|
3820
|
-
var Legend = /*#__PURE__*/styled.legend(_templateObject5$
|
|
3821
|
-
var Fieldset = /*#__PURE__*/styled.fieldset(_templateObject6$
|
|
3822
|
-
var Wrapper$c = /*#__PURE__*/styled.div(_templateObject7$
|
|
4384
|
+
var LegendContainer = /*#__PURE__*/styled.div(_templateObject4$e || (_templateObject4$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n margin-bottom: 7px;\n"])));
|
|
4385
|
+
var Legend = /*#__PURE__*/styled.legend(_templateObject5$6 || (_templateObject5$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n line-height: 20px;\n"])), fonts.secondary);
|
|
4386
|
+
var Fieldset = /*#__PURE__*/styled.fieldset(_templateObject6$4 || (_templateObject6$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: none;\n padding: 0px;\n"])));
|
|
4387
|
+
var Wrapper$c = /*#__PURE__*/styled.div(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: ", ";\n gap: 32px;\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) {
|
|
3823
4388
|
return props.$direction === 'horizontal' ? 'row' : 'column';
|
|
3824
4389
|
});
|
|
3825
4390
|
|
|
3826
|
-
var _templateObject$
|
|
4391
|
+
var _templateObject$1d;
|
|
3827
4392
|
var deliveryPoints = [{
|
|
3828
4393
|
label: 'Hallway',
|
|
3829
4394
|
value: 'hallway'
|
|
@@ -3854,15 +4419,15 @@ function DeliveryPoint() {
|
|
|
3854
4419
|
required: false
|
|
3855
4420
|
}));
|
|
3856
4421
|
}
|
|
3857
|
-
var Container$K = /*#__PURE__*/styled.div(_templateObject$
|
|
4422
|
+
var Container$K = /*#__PURE__*/styled.div(_templateObject$1d || (_templateObject$1d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n /* height: 30px; */\n padding: 1px;\n align-items: flex-start;\n align-self: stretch;\n"])));
|
|
3858
4423
|
|
|
3859
|
-
var _templateObject$
|
|
3860
|
-
var _excluded$
|
|
4424
|
+
var _templateObject$1e, _templateObject2$N, _templateObject3$u, _templateObject4$f, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$3;
|
|
4425
|
+
var _excluded$2 = ["imageSrc", "label", "checked"];
|
|
3861
4426
|
function Checkbox(props) {
|
|
3862
4427
|
var imageSrc = props.imageSrc,
|
|
3863
4428
|
label = props.label,
|
|
3864
4429
|
checked = props.checked,
|
|
3865
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
4430
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
3866
4431
|
return React.createElement(MainContainer$8, {
|
|
3867
4432
|
"$checked": checked
|
|
3868
4433
|
}, React.createElement(CheckboxContainer, null, React.createElement(HiddenCheckbox, Object.assign({
|
|
@@ -3877,20 +4442,20 @@ function Checkbox(props) {
|
|
|
3877
4442
|
"$checked": checked
|
|
3878
4443
|
}, label)));
|
|
3879
4444
|
}
|
|
3880
|
-
var Image = /*#__PURE__*/styled.img(_templateObject$
|
|
4445
|
+
var Image = /*#__PURE__*/styled.img(_templateObject$1e || (_templateObject$1e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 28px;\n width: 20px;\n filter: ", ";\n"])), function (props) {
|
|
3881
4446
|
return props.$checked ? 'grayscale(0)' : 'grayscale(1)';
|
|
3882
4447
|
});
|
|
3883
|
-
var CircleContainer = /*#__PURE__*/styled.span(_templateObject2$
|
|
3884
|
-
var Circle = /*#__PURE__*/styled.span(_templateObject3$
|
|
4448
|
+
var CircleContainer = /*#__PURE__*/styled.span(_templateObject2$N || (_templateObject2$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 20px;\n width: 20px;\n border: 1px solid #e0e2e7;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 8px;\n left: 8px;\n"])));
|
|
4449
|
+
var Circle = /*#__PURE__*/styled.span(_templateObject3$u || (_templateObject3$u = /*#__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) {
|
|
3885
4450
|
return props.$checked ? '#feba30' : 'white';
|
|
3886
4451
|
});
|
|
3887
|
-
var Text$4 = /*#__PURE__*/styled.span(_templateObject4$
|
|
4452
|
+
var Text$4 = /*#__PURE__*/styled.span(_templateObject4$f || (_templateObject4$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: ", ";\n font-family: 'lato', sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n"])), function (props) {
|
|
3888
4453
|
return props.$checked ? '#3a3630' : 'rgba(58, 54, 48, 0.50)';
|
|
3889
4454
|
});
|
|
3890
|
-
var InformationContainer = /*#__PURE__*/styled.div(_templateObject5$
|
|
3891
|
-
var CheckboxContainer = /*#__PURE__*/styled.div(_templateObject6$
|
|
3892
|
-
var HiddenCheckbox = /*#__PURE__*/styled.input(_templateObject7$
|
|
3893
|
-
var MainContainer$8 = /*#__PURE__*/styled.div(_templateObject8$
|
|
4455
|
+
var InformationContainer = /*#__PURE__*/styled.div(_templateObject5$7 || (_templateObject5$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n align-items: center;\n"])));
|
|
4456
|
+
var CheckboxContainer = /*#__PURE__*/styled.div(_templateObject6$5 || (_templateObject6$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
4457
|
+
var HiddenCheckbox = /*#__PURE__*/styled.input(_templateObject7$5 || (_templateObject7$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 0;\n height: 100%;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 100%;\n opacity: 0;\n cursor: pointer;\n top: 0;\n left: 0;\n"])));
|
|
4458
|
+
var MainContainer$8 = /*#__PURE__*/styled.div(_templateObject8$3 || (_templateObject8$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 130px;\n height: 93px;\n gap: 10px;\n border-radius: 15px;\n border: 1px solid ", ";\n align-items: center;\n justify-content: center;\n position: relative;\n\n &:hover {\n border: 1px solid #cbc8c2;\n .checkbox-img {\n filter: grayscale(0);\n }\n }\n"])), function (props) {
|
|
3894
4459
|
return props.$checked ? '#cbc8c2' : '#e0e2e7';
|
|
3895
4460
|
});
|
|
3896
4461
|
|
|
@@ -3917,7 +4482,7 @@ var getIcon$1 = function getIcon(input) {
|
|
|
3917
4482
|
return "" + baseURL$1 + subPath;
|
|
3918
4483
|
};
|
|
3919
4484
|
|
|
3920
|
-
var _templateObject$
|
|
4485
|
+
var _templateObject$1f;
|
|
3921
4486
|
function OrderServices$1() {
|
|
3922
4487
|
// TO DO -> get services from static data
|
|
3923
4488
|
return React.createElement(Container$L, null, React.createElement(Checkbox, {
|
|
@@ -3942,9 +4507,9 @@ function OrderServices$1() {
|
|
|
3942
4507
|
imageSrc: getIcon$1(4)
|
|
3943
4508
|
}));
|
|
3944
4509
|
}
|
|
3945
|
-
var Container$L = /*#__PURE__*/styled.div(_templateObject$
|
|
4510
|
+
var Container$L = /*#__PURE__*/styled.div(_templateObject$1f || (_templateObject$1f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n"])));
|
|
3946
4511
|
|
|
3947
|
-
var _templateObject$
|
|
4512
|
+
var _templateObject$1g, _templateObject2$O;
|
|
3948
4513
|
function Notes$1(_ref) {
|
|
3949
4514
|
var onNotesChange = _ref.onNotesChange;
|
|
3950
4515
|
var handleTextChange = function handleTextChange(event) {
|
|
@@ -3955,10 +4520,10 @@ function Notes$1(_ref) {
|
|
|
3955
4520
|
onChange: handleTextChange
|
|
3956
4521
|
}));
|
|
3957
4522
|
}
|
|
3958
|
-
var Label$3 = /*#__PURE__*/styled.span(_templateObject$
|
|
3959
|
-
var Container$M = /*#__PURE__*/styled.div(_templateObject2$
|
|
4523
|
+
var Label$3 = /*#__PURE__*/styled.span(_templateObject$1g || (_templateObject$1g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
4524
|
+
var Container$M = /*#__PURE__*/styled.div(_templateObject2$O || (_templateObject2$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n flex-direction: column;\n width: 100%;\n"])));
|
|
3960
4525
|
|
|
3961
|
-
var _templateObject$
|
|
4526
|
+
var _templateObject$1h, _templateObject2$P, _templateObject3$v;
|
|
3962
4527
|
function LogServiceRefusal() {
|
|
3963
4528
|
var _useCurrentAction = useCurrentAction(),
|
|
3964
4529
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -3978,18 +4543,18 @@ function LogServiceRefusal() {
|
|
|
3978
4543
|
}
|
|
3979
4544
|
}))));
|
|
3980
4545
|
}
|
|
3981
|
-
var ContentContainer$2 = /*#__PURE__*/styled.div(_templateObject$
|
|
3982
|
-
var Left = /*#__PURE__*/styled.div(_templateObject2$
|
|
3983
|
-
var Right$1 = /*#__PURE__*/styled(Left)(_templateObject3$
|
|
4546
|
+
var ContentContainer$2 = /*#__PURE__*/styled.div(_templateObject$1h || (_templateObject$1h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 0px 15px;\n align-items: flex-start;\n gap: 10px;\n align-self: stretch;\n"])));
|
|
4547
|
+
var Left = /*#__PURE__*/styled.div(_templateObject2$P || (_templateObject2$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 15px 12px;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 15px;\n flex: 1 0 0;\n border-radius: 15px;\n background: #f8fafc;\n"])));
|
|
4548
|
+
var Right$1 = /*#__PURE__*/styled(Left)(_templateObject3$v || (_templateObject3$v = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3984
4549
|
|
|
3985
|
-
var _templateObject$
|
|
4550
|
+
var _templateObject$1i, _templateObject2$Q;
|
|
3986
4551
|
function CancelationNote() {
|
|
3987
4552
|
return React.createElement(Container$N, null, React.createElement(Label$4, null, "Cancelation Note"), React.createElement(TextArea, {
|
|
3988
4553
|
rows: 5
|
|
3989
4554
|
}));
|
|
3990
4555
|
}
|
|
3991
|
-
var Label$4 = /*#__PURE__*/styled.label(_templateObject$
|
|
3992
|
-
var Container$N = /*#__PURE__*/styled.div(_templateObject2$
|
|
4556
|
+
var Label$4 = /*#__PURE__*/styled.label(_templateObject$1i || (_templateObject$1i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
4557
|
+
var Container$N = /*#__PURE__*/styled.div(_templateObject2$Q || (_templateObject2$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
3993
4558
|
|
|
3994
4559
|
function CancelationReason() {
|
|
3995
4560
|
var onSelect = function onSelect() {};
|
|
@@ -4027,7 +4592,7 @@ function ReturnReason() {
|
|
|
4027
4592
|
});
|
|
4028
4593
|
}
|
|
4029
4594
|
|
|
4030
|
-
var _templateObject$
|
|
4595
|
+
var _templateObject$1j;
|
|
4031
4596
|
function CancelOrderTable() {
|
|
4032
4597
|
var options = [{
|
|
4033
4598
|
value: 'bjsCouriers',
|
|
@@ -4082,9 +4647,9 @@ function CancelOrderTable() {
|
|
|
4082
4647
|
}
|
|
4083
4648
|
}));
|
|
4084
4649
|
}
|
|
4085
|
-
var GLobalPopupContent$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
4650
|
+
var GLobalPopupContent$1 = /*#__PURE__*/styled.div(_templateObject$1j || (_templateObject$1j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n section {\n padding: 15px 15px 0;\n .filterCover {\n border-radius: 16px;\n border: 1px solid var(--tonal-brown-10, #edebe8);\n background: #f8fafc;\n display: flex;\n gap: 30px;\n padding: 15px;\n gap: 15px;\n .col {\n width: 21%;\n label {\n color: #8d8f90;\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n display: block;\n margin-bottom: 4px;\n }\n .ant-select-single {\n width: 100%;\n }\n select {\n width: 100%;\n }\n &:first-child {\n width: 43%;\n }\n &:last-child {\n width: 33%;\n }\n }\n }\n }\n"])));
|
|
4086
4651
|
|
|
4087
|
-
var _templateObject$
|
|
4652
|
+
var _templateObject$1k, _templateObject2$R, _templateObject3$w, _templateObject4$g, _templateObject5$8, _templateObject6$6;
|
|
4088
4653
|
function CancelOrder() {
|
|
4089
4654
|
var _useCurrentAction = useCurrentAction(),
|
|
4090
4655
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -4099,20 +4664,20 @@ function CancelOrder() {
|
|
|
4099
4664
|
onSubmit: function onSubmit() {}
|
|
4100
4665
|
}, React.createElement(ContentContainer$3, null, React.createElement(Top$2, null, React.createElement(TopLeft, null, React.createElement(CancelationReason, null), React.createElement(Wrapper$d, null, React.createElement(ReturnAction, null), React.createElement(ReturnReason, null))), React.createElement(TopRight, null, React.createElement(CancelationNote, null))), React.createElement(Bottom$2, null, React.createElement(CancelOrderTable, null))));
|
|
4101
4666
|
}
|
|
4102
|
-
var Wrapper$d = /*#__PURE__*/styled.div(_templateObject$
|
|
4103
|
-
var TopLeft = /*#__PURE__*/styled.div(_templateObject2$
|
|
4104
|
-
var TopRight = /*#__PURE__*/styled.div(_templateObject3$
|
|
4105
|
-
var Top$2 = /*#__PURE__*/styled.div(_templateObject4$
|
|
4106
|
-
var Bottom$2 = /*#__PURE__*/styled.div(_templateObject5$
|
|
4107
|
-
var ContentContainer$3 = /*#__PURE__*/styled.div(_templateObject6$
|
|
4667
|
+
var Wrapper$d = /*#__PURE__*/styled.div(_templateObject$1k || (_templateObject$1k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n width: 100%;\n > div {\n width: 50%;\n }\n"])));
|
|
4668
|
+
var TopLeft = /*#__PURE__*/styled.div(_templateObject2$R || (_templateObject2$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 15px;\n width: 50%;\n"])));
|
|
4669
|
+
var TopRight = /*#__PURE__*/styled.div(_templateObject3$w || (_templateObject3$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 50%;\n"])));
|
|
4670
|
+
var Top$2 = /*#__PURE__*/styled.div(_templateObject4$g || (_templateObject4$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 30px;\n width: 100%;\n"])));
|
|
4671
|
+
var Bottom$2 = /*#__PURE__*/styled.div(_templateObject5$8 || (_templateObject5$8 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
4672
|
+
var ContentContainer$3 = /*#__PURE__*/styled.div(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 0px 15px;\n align-items: flex-start;\n gap: 10px;\n flex-direction: column;\n"])));
|
|
4108
4673
|
|
|
4109
|
-
var _templateObject$
|
|
4110
|
-
var ContentContainer$4 = /*#__PURE__*/styled.div(_templateObject$
|
|
4111
|
-
var GLobalPopupContent$2 = /*#__PURE__*/styled.div(_templateObject5$
|
|
4112
|
-
var TableSkelton$1 = /*#__PURE__*/styled.div(_templateObject6$
|
|
4113
|
-
var CustomCheckBox$1 = /*#__PURE__*/styled.div(_templateObject7$
|
|
4674
|
+
var _templateObject$1l, _templateObject5$9, _templateObject6$7, _templateObject7$6;
|
|
4675
|
+
var ContentContainer$4 = /*#__PURE__*/styled.div(_templateObject$1l || (_templateObject$1l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 0px 12px;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 15px;\n flex: 1 0 0;\n border-radius: 15px;\n"])));
|
|
4676
|
+
var GLobalPopupContent$2 = /*#__PURE__*/styled.div(_templateObject5$9 || (_templateObject5$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n section {\n padding: 0px 0 15px;\n .filterCover {\n border-radius: 16px;\n border: 1px solid var(--tonal-brown-10, #edebe8);\n background: #f8fafc;\n display: flex;\n gap: 30px;\n padding: 15px;\n gap: 15px;\n .col {\n width: 21%;\n label {\n color: #8d8f90;\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n display: block;\n margin-bottom: 4px;\n }\n .ant-select-single {\n width: 100%;\n }\n select {\n width: 100%;\n }\n &:first-child {\n width: 43%;\n }\n &:last-child {\n width: 33%;\n }\n }\n }\n }\n"])));
|
|
4677
|
+
var TableSkelton$1 = /*#__PURE__*/styled.div(_templateObject6$7 || (_templateObject6$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: -8px;\n min-height: auto;\n width: 100%;\n\n table {\n border-collapse: separate;\n width: 100%;\n border-spacing: 0px 8px;\n thead {\n tr {\n th {\n font-size: 14px;\n font-weight: 600;\n padding: 8px 15px;\n text-align: left;\n border-top: 1px solid rgba(0, 0, 0, 0.08);\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n\n background: #f0f2f2;\n &:first-child {\n border-radius: 20px 0 0 20px;\n }\n &:last-child {\n border-radius: 0 20px 20px 0;\n }\n }\n }\n }\n tbody {\n tr {\n td {\n color: #3a3630;\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n padding: 6px 15px;\n text-align: left;\n box-shadow: 3px 1px 3px 0px rgba(16, 24, 40, 0.1);\n\n background: #fff;\n\n &:first-child {\n border-radius: 20px 0 0 20px;\n }\n\n &:last-child {\n border-radius: 0 20px 20px 0;\n }\n }\n }\n }\n }\n"])));
|
|
4678
|
+
var CustomCheckBox$1 = /*#__PURE__*/styled.div(_templateObject7$6 || (_templateObject7$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .container {\n display: block;\n position: relative;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n width: 20px;\n height: 20px;\n }\n\n .container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 100%;\n width: 100%;\n }\n\n .checkmark {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #cfcfcf;\n border-radius: 4px;\n }\n\n .container:hover input ~ .checkmark {\n border-color: #7f7a7a;\n }\n\n .container input:checked ~ .checkmark {\n background-color: #000;\n }\n\n .checkmark:after {\n content: '';\n position: absolute;\n display: none;\n }\n\n .container input:checked ~ .checkmark:after {\n display: block;\n }\n\n .container .checkmark:after {\n left: 8px;\n top: 4px;\n width: 3px;\n height: 6px;\n border: solid white;\n border-width: 0 2px 2px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n"])));
|
|
4114
4679
|
|
|
4115
|
-
var options = [{
|
|
4680
|
+
var options$1 = [{
|
|
4116
4681
|
value: 'bjsCouriers',
|
|
4117
4682
|
label: 'BJS COURIERS'
|
|
4118
4683
|
}, {
|
|
@@ -4325,7 +4890,7 @@ var UpdateProductType = function UpdateProductType() {
|
|
|
4325
4890
|
}, React.createElement("div", {
|
|
4326
4891
|
className: "col"
|
|
4327
4892
|
}, React.createElement("label", null, "Collection Reason"), React.createElement(AntSelect, {
|
|
4328
|
-
options: options,
|
|
4893
|
+
options: options$1,
|
|
4329
4894
|
placeholder: "Select Collection Reason",
|
|
4330
4895
|
onChange: onChange,
|
|
4331
4896
|
disabled: false,
|
|
@@ -4335,7 +4900,7 @@ var UpdateProductType = function UpdateProductType() {
|
|
|
4335
4900
|
})), React.createElement("div", {
|
|
4336
4901
|
className: "col"
|
|
4337
4902
|
}, React.createElement("label", null, "Collection Reason"), React.createElement(AntSelect, {
|
|
4338
|
-
options: options,
|
|
4903
|
+
options: options$1,
|
|
4339
4904
|
placeholder: "Return Action",
|
|
4340
4905
|
onChange: onChange,
|
|
4341
4906
|
disabled: false,
|
|
@@ -4345,7 +4910,7 @@ var UpdateProductType = function UpdateProductType() {
|
|
|
4345
4910
|
})), React.createElement("div", {
|
|
4346
4911
|
className: "col"
|
|
4347
4912
|
}, React.createElement("label", null, "Collection Reason"), React.createElement(AntSelect, {
|
|
4348
|
-
options: options,
|
|
4913
|
+
options: options$1,
|
|
4349
4914
|
placeholder: "Return Reason",
|
|
4350
4915
|
onChange: onChange,
|
|
4351
4916
|
disabled: false,
|
|
@@ -4365,7 +4930,7 @@ var UpdateProductType = function UpdateProductType() {
|
|
|
4365
4930
|
}), React.createElement("span", {
|
|
4366
4931
|
className: "checkmark"
|
|
4367
4932
|
})))), React.createElement("td", null, React.createElement(AntSelect, {
|
|
4368
|
-
options: options,
|
|
4933
|
+
options: options$1,
|
|
4369
4934
|
placeholder: "Select Collection Reason",
|
|
4370
4935
|
onChange: onChange,
|
|
4371
4936
|
disabled: false,
|
|
@@ -4380,7 +4945,7 @@ var UpdateProductType = function UpdateProductType() {
|
|
|
4380
4945
|
}), React.createElement("span", {
|
|
4381
4946
|
className: "checkmark"
|
|
4382
4947
|
})))), React.createElement("td", null, React.createElement(AntSelect, {
|
|
4383
|
-
options: options,
|
|
4948
|
+
options: options$1,
|
|
4384
4949
|
placeholder: "Select Collection Reason",
|
|
4385
4950
|
onChange: onChange,
|
|
4386
4951
|
disabled: false,
|
|
@@ -4395,7 +4960,7 @@ var UpdateProductType = function UpdateProductType() {
|
|
|
4395
4960
|
}), React.createElement("span", {
|
|
4396
4961
|
className: "checkmark"
|
|
4397
4962
|
})))), React.createElement("td", null, React.createElement(AntSelect, {
|
|
4398
|
-
options: options,
|
|
4963
|
+
options: options$1,
|
|
4399
4964
|
placeholder: "Select Collection Reason",
|
|
4400
4965
|
onChange: onChange,
|
|
4401
4966
|
disabled: false,
|
|
@@ -4407,7 +4972,7 @@ var UpdateProductType = function UpdateProductType() {
|
|
|
4407
4972
|
);
|
|
4408
4973
|
};
|
|
4409
4974
|
|
|
4410
|
-
var _templateObject$
|
|
4975
|
+
var _templateObject$1m, _templateObject2$S;
|
|
4411
4976
|
function EmailAddress() {
|
|
4412
4977
|
return React.createElement(Container$O, null, React.createElement(Label$5, null, "Email Address"), React.createElement(Input$2, {
|
|
4413
4978
|
style: {
|
|
@@ -4415,10 +4980,10 @@ function EmailAddress() {
|
|
|
4415
4980
|
}
|
|
4416
4981
|
}));
|
|
4417
4982
|
}
|
|
4418
|
-
var Label$5 = /*#__PURE__*/styled.label(_templateObject$
|
|
4419
|
-
var Container$O = /*#__PURE__*/styled.div(_templateObject2$
|
|
4983
|
+
var Label$5 = /*#__PURE__*/styled.label(_templateObject$1m || (_templateObject$1m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
4984
|
+
var Container$O = /*#__PURE__*/styled.div(_templateObject2$S || (_templateObject2$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
4420
4985
|
|
|
4421
|
-
var _templateObject$
|
|
4986
|
+
var _templateObject$1n, _templateObject2$T;
|
|
4422
4987
|
function ContactPhone() {
|
|
4423
4988
|
return React.createElement(Container$P, null, React.createElement(Label$6, null, "Contact Phone"), React.createElement(Input$2, {
|
|
4424
4989
|
style: {
|
|
@@ -4426,10 +4991,10 @@ function ContactPhone() {
|
|
|
4426
4991
|
}
|
|
4427
4992
|
}));
|
|
4428
4993
|
}
|
|
4429
|
-
var Label$6 = /*#__PURE__*/styled.label(_templateObject$
|
|
4430
|
-
var Container$P = /*#__PURE__*/styled.div(_templateObject2$
|
|
4994
|
+
var Label$6 = /*#__PURE__*/styled.label(_templateObject$1n || (_templateObject$1n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
4995
|
+
var Container$P = /*#__PURE__*/styled.div(_templateObject2$T || (_templateObject2$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
4431
4996
|
|
|
4432
|
-
var _templateObject$
|
|
4997
|
+
var _templateObject$1o, _templateObject2$U;
|
|
4433
4998
|
function ContactWork$1() {
|
|
4434
4999
|
return React.createElement(Container$Q, null, React.createElement(Label$7, null, "Contact Work"), React.createElement(Input$2, {
|
|
4435
5000
|
style: {
|
|
@@ -4437,10 +5002,10 @@ function ContactWork$1() {
|
|
|
4437
5002
|
}
|
|
4438
5003
|
}));
|
|
4439
5004
|
}
|
|
4440
|
-
var Label$7 = /*#__PURE__*/styled.label(_templateObject$
|
|
4441
|
-
var Container$Q = /*#__PURE__*/styled.div(_templateObject2$
|
|
5005
|
+
var Label$7 = /*#__PURE__*/styled.label(_templateObject$1o || (_templateObject$1o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
5006
|
+
var Container$Q = /*#__PURE__*/styled.div(_templateObject2$U || (_templateObject2$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
4442
5007
|
|
|
4443
|
-
var _templateObject$
|
|
5008
|
+
var _templateObject$1p, _templateObject2$V;
|
|
4444
5009
|
function ContactMobile$1() {
|
|
4445
5010
|
return React.createElement(Container$R, null, React.createElement(Label$8, null, "Contact Mobile"), React.createElement(Input$2, {
|
|
4446
5011
|
style: {
|
|
@@ -4448,8 +5013,8 @@ function ContactMobile$1() {
|
|
|
4448
5013
|
}
|
|
4449
5014
|
}));
|
|
4450
5015
|
}
|
|
4451
|
-
var Label$8 = /*#__PURE__*/styled.label(_templateObject$
|
|
4452
|
-
var Container$R = /*#__PURE__*/styled.div(_templateObject2$
|
|
5016
|
+
var Label$8 = /*#__PURE__*/styled.label(_templateObject$1p || (_templateObject$1p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
5017
|
+
var Container$R = /*#__PURE__*/styled.div(_templateObject2$V || (_templateObject2$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
4453
5018
|
|
|
4454
5019
|
function ContactTypeDropdown() {
|
|
4455
5020
|
var onSelect = function onSelect() {};
|
|
@@ -4497,7 +5062,7 @@ function ActionDropdown() {
|
|
|
4497
5062
|
});
|
|
4498
5063
|
}
|
|
4499
5064
|
|
|
4500
|
-
var _templateObject$
|
|
5065
|
+
var _templateObject$1q, _templateObject2$W;
|
|
4501
5066
|
function DeliveryDate$1() {
|
|
4502
5067
|
var onChange = function onChange() {};
|
|
4503
5068
|
return React.createElement(Container$S, null, React.createElement(Label$9, null, "Delivery Date"), React.createElement(DatePicker, {
|
|
@@ -4507,8 +5072,8 @@ function DeliveryDate$1() {
|
|
|
4507
5072
|
}
|
|
4508
5073
|
}));
|
|
4509
5074
|
}
|
|
4510
|
-
var Label$9 = /*#__PURE__*/styled.label(_templateObject$
|
|
4511
|
-
var Container$S = /*#__PURE__*/styled.div(_templateObject2$
|
|
5075
|
+
var Label$9 = /*#__PURE__*/styled.label(_templateObject$1q || (_templateObject$1q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
5076
|
+
var Container$S = /*#__PURE__*/styled.div(_templateObject2$W || (_templateObject2$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
4512
5077
|
|
|
4513
5078
|
function TimedServiceDropdown$1() {
|
|
4514
5079
|
var onSelect = function onSelect() {};
|
|
@@ -4532,16 +5097,16 @@ function TimedServiceDropdown$1() {
|
|
|
4532
5097
|
});
|
|
4533
5098
|
}
|
|
4534
5099
|
|
|
4535
|
-
var _templateObject$
|
|
5100
|
+
var _templateObject$1r, _templateObject2$X, _templateObject3$x, _templateObject4$h;
|
|
4536
5101
|
function CustomerInformation() {
|
|
4537
5102
|
return React.createElement(Container$T, null, React.createElement(Title$1, null, "Address"), React.createElement(AddressField, null, "34 NORTHFIELD AVENUE, PONTEFRACT, WF9 3TG"), React.createElement(Wrapper$e, null, React.createElement(EmailAddress, null), React.createElement(ContactPhone, null)), React.createElement(Wrapper$e, null, React.createElement(ContactWork$1, null), React.createElement(ContactMobile$1, null)), React.createElement(Wrapper$e, null, React.createElement(ContactTypeDropdown, null), React.createElement(ActionDropdown, null)), React.createElement(Wrapper$e, null, React.createElement(DeliveryDate$1, null), React.createElement(TimedServiceDropdown$1, null)));
|
|
4538
5103
|
}
|
|
4539
|
-
var Wrapper$e = /*#__PURE__*/styled.div(_templateObject$
|
|
4540
|
-
var AddressField = /*#__PURE__*/styled.p(_templateObject2$
|
|
4541
|
-
var Title$1 = /*#__PURE__*/styled.span(_templateObject3$
|
|
4542
|
-
var Container$T = /*#__PURE__*/styled.div(_templateObject4$
|
|
5104
|
+
var Wrapper$e = /*#__PURE__*/styled.div(_templateObject$1r || (_templateObject$1r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n width: 100%;\n .contact-type-dropdown,\n .action-dropdown {\n flex: 1;\n }\n"])));
|
|
5105
|
+
var AddressField = /*#__PURE__*/styled.p(_templateObject2$X || (_templateObject2$X = /*#__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"])));
|
|
5106
|
+
var Title$1 = /*#__PURE__*/styled.span(_templateObject3$x || (_templateObject3$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n"])));
|
|
5107
|
+
var Container$T = /*#__PURE__*/styled.div(_templateObject4$h || (_templateObject4$h = /*#__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"])));
|
|
4543
5108
|
|
|
4544
|
-
var _templateObject$
|
|
5109
|
+
var _templateObject$1s, _templateObject2$Y;
|
|
4545
5110
|
function ProductTable$1() {
|
|
4546
5111
|
var data = [{
|
|
4547
5112
|
action: 'option1',
|
|
@@ -4581,10 +5146,10 @@ function ProductTable$1() {
|
|
|
4581
5146
|
data: data
|
|
4582
5147
|
}));
|
|
4583
5148
|
}
|
|
4584
|
-
var Title$2 = /*#__PURE__*/styled.h2(_templateObject$
|
|
4585
|
-
var Container$U = /*#__PURE__*/styled.div(_templateObject2$
|
|
5149
|
+
var Title$2 = /*#__PURE__*/styled.h2(_templateObject$1s || (_templateObject$1s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Roboto', sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n text-transform: uppercase;\n padding: 0;\n margin: 0;\n"])));
|
|
5150
|
+
var Container$U = /*#__PURE__*/styled.div(_templateObject2$Y || (_templateObject2$Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n > div {\n min-height: 165px;\n }\n"])));
|
|
4586
5151
|
|
|
4587
|
-
var _templateObject$
|
|
5152
|
+
var _templateObject$1t, _templateObject2$Z;
|
|
4588
5153
|
function NotesTable() {
|
|
4589
5154
|
var data = [{
|
|
4590
5155
|
created: 'optimizer @ BJS via API',
|
|
@@ -4607,39 +5172,39 @@ function NotesTable() {
|
|
|
4607
5172
|
data: data
|
|
4608
5173
|
}));
|
|
4609
5174
|
}
|
|
4610
|
-
var Title$3 = /*#__PURE__*/styled.h2(_templateObject$
|
|
4611
|
-
var Container$V = /*#__PURE__*/styled.div(_templateObject2$
|
|
5175
|
+
var Title$3 = /*#__PURE__*/styled.h2(_templateObject$1t || (_templateObject$1t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Roboto', sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n text-transform: uppercase;\n padding: 0;\n margin: 0;\n"])));
|
|
5176
|
+
var Container$V = /*#__PURE__*/styled.div(_templateObject2$Z || (_templateObject2$Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n > div {\n min-height: 165px;\n }\n"])));
|
|
4612
5177
|
|
|
4613
|
-
var _templateObject$
|
|
5178
|
+
var _templateObject$1u, _templateObject2$_;
|
|
4614
5179
|
function ConfirmationNotes() {
|
|
4615
5180
|
return React.createElement(Container$W, null, React.createElement(Label$a, null, "Notes"), React.createElement(TextArea, {
|
|
4616
5181
|
rows: 5,
|
|
4617
5182
|
placeholder: "Enter Notes"
|
|
4618
5183
|
}));
|
|
4619
5184
|
}
|
|
4620
|
-
var Label$a = /*#__PURE__*/styled.label(_templateObject$
|
|
4621
|
-
var Container$W = /*#__PURE__*/styled.div(_templateObject2$
|
|
5185
|
+
var Label$a = /*#__PURE__*/styled.label(_templateObject$1u || (_templateObject$1u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
5186
|
+
var Container$W = /*#__PURE__*/styled.div(_templateObject2$_ || (_templateObject2$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
4622
5187
|
|
|
4623
|
-
var _templateObject$
|
|
5188
|
+
var _templateObject$1v, _templateObject2$$;
|
|
4624
5189
|
function DeliveryInstructions$1() {
|
|
4625
5190
|
return React.createElement(Container$X, null, React.createElement(Label$b, null, "Delivery Instructions"), React.createElement(TextArea, {
|
|
4626
5191
|
rows: 5,
|
|
4627
5192
|
placeholder: "Enter Delivery Instructions"
|
|
4628
5193
|
}));
|
|
4629
5194
|
}
|
|
4630
|
-
var Label$b = /*#__PURE__*/styled.label(_templateObject$
|
|
4631
|
-
var Container$X = /*#__PURE__*/styled.div(_templateObject2
|
|
5195
|
+
var Label$b = /*#__PURE__*/styled.label(_templateObject$1v || (_templateObject$1v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
5196
|
+
var Container$X = /*#__PURE__*/styled.div(_templateObject2$$ || (_templateObject2$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
4632
5197
|
|
|
4633
|
-
var _templateObject$
|
|
5198
|
+
var _templateObject$1w, _templateObject2$10, _templateObject3$y, _templateObject4$i;
|
|
4634
5199
|
function SlotAndInstructions() {
|
|
4635
5200
|
return React.createElement(Container$Y, null, React.createElement(Slot, null, React.createElement(Title$4, null, "Slot"), React.createElement(Value, null, "07:00-10:00")), React.createElement(DeliveryInstructions$1, null), React.createElement(ConfirmationNotes, null));
|
|
4636
5201
|
}
|
|
4637
|
-
var Value = /*#__PURE__*/styled.span(_templateObject$
|
|
4638
|
-
var Slot = /*#__PURE__*/styled.div(_templateObject2
|
|
4639
|
-
var Title$4 = /*#__PURE__*/styled.span(_templateObject3$
|
|
4640
|
-
var Container$Y = /*#__PURE__*/styled.div(_templateObject4$
|
|
5202
|
+
var Value = /*#__PURE__*/styled.span(_templateObject$1w || (_templateObject$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Lato', 'Open Sans';\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n"])));
|
|
5203
|
+
var Slot = /*#__PURE__*/styled.div(_templateObject2$10 || (_templateObject2$10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 5px;\n"])));
|
|
5204
|
+
var Title$4 = /*#__PURE__*/styled.span(_templateObject3$y || (_templateObject3$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Lato', 'Open Sans';\n font-size: 13px;\n font-style: normal;\n font-weight: 700;\n"])));
|
|
5205
|
+
var Container$Y = /*#__PURE__*/styled.div(_templateObject4$i || (_templateObject4$i = /*#__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"])));
|
|
4641
5206
|
|
|
4642
|
-
var _templateObject$
|
|
5207
|
+
var _templateObject$1x, _templateObject2$11;
|
|
4643
5208
|
// import DocFileUpload from './DocFileUpload';
|
|
4644
5209
|
function ConfirmOrder() {
|
|
4645
5210
|
var _useCurrentAction = useCurrentAction(),
|
|
@@ -4662,21 +5227,21 @@ function ConfirmOrder() {
|
|
|
4662
5227
|
showOkButton: false
|
|
4663
5228
|
}), React.createElement(Wrapper$f, null, React.createElement(CustomerInformation, null), React.createElement(SlotAndInstructions, null)), React.createElement(ProductTable$1, null), React.createElement(NotesTable, null)));
|
|
4664
5229
|
}
|
|
4665
|
-
var Wrapper$f = /*#__PURE__*/styled.div(_templateObject$
|
|
4666
|
-
var ContentContainer$5 = /*#__PURE__*/styled.div(_templateObject2$
|
|
4667
|
-
|
|
4668
|
-
var _templateObject2$
|
|
4669
|
-
var StyledInput = /*#__PURE__*/styled(Input$1)(_templateObject2$
|
|
4670
|
-
var StyledTextArea$1 = /*#__PURE__*/styled(TextArea)(_templateObject3$
|
|
4671
|
-
var StyledTextAreas = /*#__PURE__*/styled(TextArea)(_templateObject4$
|
|
4672
|
-
var SplitLayout = /*#__PURE__*/styled.div(_templateObject5$
|
|
4673
|
-
var SplitText = /*#__PURE__*/styled.div(_templateObject6$
|
|
4674
|
-
var Row$4 = /*#__PURE__*/styled.div(_templateObject7$
|
|
4675
|
-
var HoldRow = /*#__PURE__*/styled.div(_templateObject8$
|
|
4676
|
-
var Label$c = /*#__PURE__*/styled.label(_templateObject9$
|
|
5230
|
+
var Wrapper$f = /*#__PURE__*/styled.div(_templateObject$1x || (_templateObject$1x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
|
|
5231
|
+
var ContentContainer$5 = /*#__PURE__*/styled.div(_templateObject2$11 || (_templateObject2$11 = /*#__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"])));
|
|
5232
|
+
|
|
5233
|
+
var _templateObject2$12, _templateObject3$z, _templateObject4$j, _templateObject5$a, _templateObject6$8, _templateObject7$7, _templateObject8$4, _templateObject9$2, _templateObject10, _templateObject11, _templateObject12$1, _templateObject13, _templateObject14, _templateObject15, _templateObject18, _templateObject19$1, _templateObject20$1, _templateObject26, _templateObject27, _templateObject30, _templateObject31, _templateObject32, _templateObject33;
|
|
5234
|
+
var StyledInput = /*#__PURE__*/styled(Input$1)(_templateObject2$12 || (_templateObject2$12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 66px;\n min-width: 700px;\n"])));
|
|
5235
|
+
var StyledTextArea$1 = /*#__PURE__*/styled(TextArea)(_templateObject3$z || (_templateObject3$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 12px;\n align-items: flex-start;\n gap: 4px;\n flex: 1 0 0;\n align-self: stretch;\n border-radius: 10px;\n border: 1px solid #e0e2e7;\n background: #fff;\n resize: none;\n min-height: 200px;\n"])));
|
|
5236
|
+
var StyledTextAreas = /*#__PURE__*/styled(TextArea)(_templateObject4$j || (_templateObject4$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 12px;\n align-items: flex-start;\n gap: 4px;\n flex: 1 0 0;\n align-self: stretch;\n border-radius: 10px;\n border: 1px solid #e0e2e7;\n background: #fff;\n resize: none;\n min-height: 50px;\n"])));
|
|
5237
|
+
var SplitLayout = /*#__PURE__*/styled.div(_templateObject5$a || (_templateObject5$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n"])));
|
|
5238
|
+
var SplitText = /*#__PURE__*/styled.div(_templateObject6$8 || (_templateObject6$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n flex-direction: column;\n margin-bottom: 4px;\n"])));
|
|
5239
|
+
var Row$4 = /*#__PURE__*/styled.div(_templateObject7$7 || (_templateObject7$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1 0 0;\n display: grid;\n gap: 5px;\n justify-content: center;\n"])));
|
|
5240
|
+
var HoldRow = /*#__PURE__*/styled.div(_templateObject8$4 || (_templateObject8$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1 0 0;\n display: grid;\n gap: 5px;\n justify-content: center;\n /* margin-bottom: 25px; */\n"])));
|
|
5241
|
+
var Label$c = /*#__PURE__*/styled.label(_templateObject9$2 || (_templateObject9$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #758588;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
4677
5242
|
var ContentContainer$6 = /*#__PURE__*/styled.div(_templateObject10 || (_templateObject10 = /*#__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 flex: 1 0 0;\n border-radius: 15px;\n background: #f8fafc;\n"])));
|
|
4678
5243
|
var HoldContentContainer = /*#__PURE__*/styled.div(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 20px 20px;\n margin: 5px 14px;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 15px;\n flex: 1 0 0;\n border-radius: 15px;\n"])));
|
|
4679
|
-
var Container$Z = /*#__PURE__*/styled.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 15px;\n border: 1px solid #e0e2e7;\n background: #fff;\n display: flex;\n padding: 15px;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 15px;\n flex: 1 0 0;\n width: 450px;\n"])));
|
|
5244
|
+
var Container$Z = /*#__PURE__*/styled.div(_templateObject12$1 || (_templateObject12$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 15px;\n border: 1px solid #e0e2e7;\n background: #fff;\n display: flex;\n padding: 15px;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 15px;\n flex: 1 0 0;\n width: 450px;\n"])));
|
|
4680
5245
|
var StaticText = /*#__PURE__*/styled.div(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: 18px; /* 128.571% */\n flex: 1 0 0;\n"])));
|
|
4681
5246
|
var ImageCircle = /*#__PURE__*/styled.div(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 10px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n border-radius: 50px;\n background: #f2f4f6;\n"])));
|
|
4682
5247
|
var ImageRow = /*#__PURE__*/styled.div(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 15px;\n align-self: stretch;\n"])));
|
|
@@ -4949,16 +5514,16 @@ function HoldOrderModal() {
|
|
|
4949
5514
|
})))));
|
|
4950
5515
|
}
|
|
4951
5516
|
|
|
4952
|
-
var _templateObject$
|
|
5517
|
+
var _templateObject$1y, _templateObject2$13, _templateObject3$A;
|
|
4953
5518
|
// import {
|
|
4954
5519
|
// EscalationCategory,
|
|
4955
5520
|
// EscalationLevel,
|
|
4956
5521
|
// EscalationReason,
|
|
4957
5522
|
// EscalationStatus,
|
|
4958
5523
|
// } from '../../utils';
|
|
4959
|
-
var FlexContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
4960
|
-
var InnerCont = /*#__PURE__*/styled.div(_templateObject2$
|
|
4961
|
-
var StyledAntSelect = /*#__PURE__*/styled(AntSelect)(_templateObject3$
|
|
5524
|
+
var FlexContainer = /*#__PURE__*/styled.div(_templateObject$1y || (_templateObject$1y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 16px;\n justify-content: space-between;\n @media (max-width: 768px) {\n grid-template-columns: 1fr;\n }\n"])));
|
|
5525
|
+
var InnerCont = /*#__PURE__*/styled.div(_templateObject2$13 || (_templateObject2$13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n"])));
|
|
5526
|
+
var StyledAntSelect = /*#__PURE__*/styled(AntSelect)(_templateObject3$A || (_templateObject3$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: 40px;\n"])));
|
|
4962
5527
|
var Dropdowns = function Dropdowns() {
|
|
4963
5528
|
var handleSelectChange = function handleSelectChange() {
|
|
4964
5529
|
// alert('hello');
|
|
@@ -5026,17 +5591,17 @@ var Dropdowns = function Dropdowns() {
|
|
|
5026
5591
|
})));
|
|
5027
5592
|
};
|
|
5028
5593
|
|
|
5029
|
-
var _templateObject$
|
|
5594
|
+
var _templateObject$1z, _templateObject2$14;
|
|
5030
5595
|
var Notes$2 = function Notes() {
|
|
5031
|
-
var StyledTextArea = styled(TextArea)(_templateObject$
|
|
5032
|
-
var Label = styled.label(_templateObject2$
|
|
5596
|
+
var StyledTextArea = styled(TextArea)(_templateObject$1z || (_templateObject$1z = _taggedTemplateLiteralLoose(["\n display: flex;\n height: 135px;\n width: 240px;\n flex-direction: column;\n align-items: flex-start;\n gap: 6px;\n flex: 1 0 0;\n border-radius: 12px;\n //border: 1px solid var(--Neutral-Gray-Gray-100, #e0e2e7);\n background: var(--Flowkit-White, #fff);\n resize: none;\n "])));
|
|
5597
|
+
var Label = styled.label(_templateObject2$14 || (_templateObject2$14 = _taggedTemplateLiteralLoose(["\n font-family: 'lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n color: var(--tonal-brown-651, #6a7378);\n "])));
|
|
5033
5598
|
return React.createElement("div", null, React.createElement(Label, null, "Note"), React.createElement(StyledTextArea, {
|
|
5034
5599
|
name: "note",
|
|
5035
5600
|
placeholder: ""
|
|
5036
5601
|
}));
|
|
5037
5602
|
};
|
|
5038
5603
|
|
|
5039
|
-
var _templateObject$
|
|
5604
|
+
var _templateObject$1A, _templateObject2$15, _templateObject3$B, _templateObject4$k, _templateObject5$b, _templateObject6$9, _templateObject7$8, _templateObject8$5, _templateObject9$3, _templateObject10$1;
|
|
5040
5605
|
var Upgrade = function Upgrade() {
|
|
5041
5606
|
var handleSelectChange = function handleSelectChange() {
|
|
5042
5607
|
// alert('hello');
|
|
@@ -5095,24 +5660,24 @@ var Upgrade = function Upgrade() {
|
|
|
5095
5660
|
name: ''
|
|
5096
5661
|
}))))), React.createElement(GiftWrapper, null, React.createElement(BJSGift, null, React.createElement(Box, null)), React.createElement(BJSGift, null, React.createElement(Box, null))));
|
|
5097
5662
|
};
|
|
5098
|
-
var GiftWrapper = /*#__PURE__*/styled.div(_templateObject$
|
|
5099
|
-
var Box = /*#__PURE__*/styled.div(_templateObject2$
|
|
5100
|
-
var Wrapper$g = /*#__PURE__*/styled.div(_templateObject3$
|
|
5101
|
-
var BJSGift = /*#__PURE__*/styled.div(_templateObject4$
|
|
5102
|
-
var Toggle = /*#__PURE__*/styled(Switch)(_templateObject5$
|
|
5103
|
-
var Heading$2 = /*#__PURE__*/styled.div(_templateObject6$
|
|
5104
|
-
var Container$_ = /*#__PURE__*/styled.div(_templateObject7$
|
|
5105
|
-
var InnerCont$1 = /*#__PURE__*/styled.div(_templateObject8$
|
|
5106
|
-
var Top$3 = /*#__PURE__*/styled.div(_templateObject9$
|
|
5663
|
+
var GiftWrapper = /*#__PURE__*/styled.div(_templateObject$1A || (_templateObject$1A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n padding-top: 45px;\n"])));
|
|
5664
|
+
var Box = /*#__PURE__*/styled.div(_templateObject2$15 || (_templateObject2$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n width: 20px;\n height: 20px;\n border: 1px solid #ccc;\n border-radius: 10px;\n\n &::after {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n width: 11px;\n height: 11px;\n background-color: #ccc;\n border-radius: 2px;\n display: none;\n }\n"])));
|
|
5665
|
+
var Wrapper$g = /*#__PURE__*/styled.div(_templateObject3$B || (_templateObject3$B = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
5666
|
+
var BJSGift = /*#__PURE__*/styled.div(_templateObject4$k || (_templateObject4$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 130px;\n height: 93px;\n padding: 10px 15px 15px 10px;\n flex-direction: column;\n align-items: flex-start;\n border-radius: 15px;\n border: 1px solid #e0e2e7;\n\n /* &:hover ", "::after {\n display: block;\n } */\n"])), Box);
|
|
5667
|
+
var Toggle = /*#__PURE__*/styled(Switch)(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px;\n"])));
|
|
5668
|
+
var Heading$2 = /*#__PURE__*/styled.div(_templateObject6$9 || (_templateObject6$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-size: 14px;\n font-style: normal;\n font-weight: 700;\n line-height: 16px;\n"])));
|
|
5669
|
+
var Container$_ = /*#__PURE__*/styled.div(_templateObject7$8 || (_templateObject7$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 15px;\n align-items: center;\n\n @media (max-width: 768px) {\n grid-template-columns: 1fr;\n gap: 10px;\n }\n"])));
|
|
5670
|
+
var InnerCont$1 = /*#__PURE__*/styled.div(_templateObject8$5 || (_templateObject8$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n"])));
|
|
5671
|
+
var Top$3 = /*#__PURE__*/styled.div(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-top: 35px;\n"])));
|
|
5107
5672
|
var StyledAntSelect$1 = /*#__PURE__*/styled(AntSelect)(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: 40px;\n\n @media (max-width: 768px) {\n width: 100%;\n }\n"])));
|
|
5108
5673
|
|
|
5109
|
-
var _templateObject$
|
|
5110
|
-
var Flex = /*#__PURE__*/styled.div(_templateObject$
|
|
5674
|
+
var _templateObject$1B;
|
|
5675
|
+
var Flex = /*#__PURE__*/styled.div(_templateObject$1B || (_templateObject$1B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 15px;\n background: #f8fafc;\n display: flex;\n /* flex-wrap: wrap; */\n gap: 15px;\n padding: 20px;\n width: 97%;\n @media (max-width: 768px) {\n flex-direction: column;\n padding: 10px;\n gap: 10px;\n }\n"])));
|
|
5111
5676
|
var Escalation = function Escalation() {
|
|
5112
5677
|
return React.createElement(React.Fragment, null, React.createElement(Flex, null, React.createElement(Dropdowns, null), React.createElement(Notes$2, null), React.createElement(Upgrade, null)));
|
|
5113
5678
|
};
|
|
5114
5679
|
|
|
5115
|
-
var _templateObject$
|
|
5680
|
+
var _templateObject$1C, _templateObject2$16, _templateObject3$C, _templateObject4$l;
|
|
5116
5681
|
var NewEscalation = function NewEscalation() {
|
|
5117
5682
|
var _useState = useState(false),
|
|
5118
5683
|
showContent = _useState[0],
|
|
@@ -5141,10 +5706,10 @@ var NewEscalation = function NewEscalation() {
|
|
|
5141
5706
|
className: "checkmark"
|
|
5142
5707
|
})))), React.createElement("td", null, "VIP4"), React.createElement("td", null, "B63015484248[Test] WAYVER"), React.createElement("td", null, "Allocated to Route"), React.createElement("td", null, "Revieved Picked"), React.createElement("td", null, "Data"), React.createElement("td", null, "Data"), React.createElement("td", null, "Data"), React.createElement("td", null, "Data"), React.createElement("td", null, "Data"), React.createElement("td", null, "Data"), React.createElement("td", null, "Data"), React.createElement("td", null, "Done"), React.createElement("td", null, "Done"), React.createElement("td", null, "Status"))))));
|
|
5143
5708
|
};
|
|
5144
|
-
var Component = /*#__PURE__*/styled.div(_templateObject$
|
|
5145
|
-
var Button = /*#__PURE__*/styled.button(_templateObject2$
|
|
5146
|
-
var Flex$1 = /*#__PURE__*/styled.div(_templateObject3$
|
|
5147
|
-
var CancelButton = /*#__PURE__*/styled.button(_templateObject4$
|
|
5709
|
+
var Component = /*#__PURE__*/styled.div(_templateObject$1C || (_templateObject$1C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 98%;\n padding: 15px 12px;\n justify-content: space-between;\n align-items: center;\n gap: 15px;\n border-radius: 15px;\n background: #f8fafc;\n"])));
|
|
5710
|
+
var Button = /*#__PURE__*/styled.button(_templateObject2$16 || (_templateObject2$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n background: #3a3630;\n display: flex;\n padding: 6px 10px;\n align-items: flex-start;\n gap: 16px;\n color: white;\n cursor: pointer;\n"])));
|
|
5711
|
+
var Flex$1 = /*#__PURE__*/styled.div(_templateObject3$C || (_templateObject3$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
|
|
5712
|
+
var CancelButton = /*#__PURE__*/styled.button(_templateObject4$l || (_templateObject4$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 6px 10px;\n align-items: flex-start;\n gap: 16px;\n border-radius: 20px;\n border: 1px solid #e95252;\n background: #f8fafc;\n color: #e95252; /* Added this line to set text color */\n text-decoration-color: #e95252;\n cursor: pointer;\n"])));
|
|
5148
5713
|
|
|
5149
5714
|
var EscalationModal = function EscalationModal() {
|
|
5150
5715
|
var _useCurrentAction = useCurrentAction(),
|
|
@@ -5431,7 +5996,7 @@ function ChargeLog() {
|
|
|
5431
5996
|
})));
|
|
5432
5997
|
}
|
|
5433
5998
|
|
|
5434
|
-
var _templateObject$
|
|
5999
|
+
var _templateObject$1D;
|
|
5435
6000
|
var UnholdOrder = function UnholdOrder() {
|
|
5436
6001
|
var _useCurrentAction = useCurrentAction(),
|
|
5437
6002
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -5455,16 +6020,16 @@ var UnholdOrder = function UnholdOrder() {
|
|
|
5455
6020
|
})
|
|
5456
6021
|
});
|
|
5457
6022
|
};
|
|
5458
|
-
var CustomCancelAndCompleteAction = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject$
|
|
6023
|
+
var CustomCancelAndCompleteAction = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject$1D || (_templateObject$1D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
5459
6024
|
|
|
5460
|
-
var _templateObject$
|
|
6025
|
+
var _templateObject$1E, _templateObject2$17;
|
|
5461
6026
|
var ProductData = function ProductData(_ref) {
|
|
5462
6027
|
var products = _ref.products,
|
|
5463
6028
|
handleCheckboxChange = _ref.handleCheckboxChange;
|
|
5464
6029
|
var handleInputChange = function handleInputChange(productId, isChecked) {
|
|
5465
6030
|
handleCheckboxChange(productId, isChecked);
|
|
5466
6031
|
};
|
|
5467
|
-
return React.createElement(Table$
|
|
6032
|
+
return React.createElement(Table$5, null, products.length > 0 ? React.createElement("table", null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", null, "Select"), React.createElement("th", null, "ID"), React.createElement("th", null, "Name"), React.createElement("th", null, "Parts"))), React.createElement("tbody", null, products.map(function (product) {
|
|
5468
6033
|
return React.createElement("tr", {
|
|
5469
6034
|
key: product.id
|
|
5470
6035
|
}, React.createElement("td", null, React.createElement(CustomCheckBox$1, null, React.createElement("label", {
|
|
@@ -5480,8 +6045,8 @@ var ProductData = function ProductData(_ref) {
|
|
|
5480
6045
|
})))), React.createElement("td", null, product.id), React.createElement("td", null, product.name), React.createElement("td", null, product.parts));
|
|
5481
6046
|
}))) : React.createElement(NoProductsMessage, null, "NO PRODUCTS TO RESTORE"));
|
|
5482
6047
|
};
|
|
5483
|
-
var Table$
|
|
5484
|
-
var NoProductsMessage = /*#__PURE__*/styled.div(_templateObject2$
|
|
6048
|
+
var Table$5 = /*#__PURE__*/styled(TableSkelton$1)(_templateObject$1E || (_templateObject$1E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow: scroll;\n scrollbar-width: none;\n height: 35vh;\n width: 50vw;\n padding: 5px;\n"])));
|
|
6049
|
+
var NoProductsMessage = /*#__PURE__*/styled.div(_templateObject2$17 || (_templateObject2$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: center;\n font-size: 18px;\n padding: 20px;\n color: #888;\n"])));
|
|
5485
6050
|
|
|
5486
6051
|
var initialProducts = [{
|
|
5487
6052
|
id: 1458784,
|
|
@@ -5602,7 +6167,7 @@ var RestoreProducts = function RestoreProducts() {
|
|
|
5602
6167
|
})));
|
|
5603
6168
|
};
|
|
5604
6169
|
|
|
5605
|
-
var _templateObject$
|
|
6170
|
+
var _templateObject$1F, _templateObject2$18;
|
|
5606
6171
|
function AssigneeDropdown() {
|
|
5607
6172
|
var handleSelectChange = function handleSelectChange() {
|
|
5608
6173
|
// alert('hello');
|
|
@@ -5624,8 +6189,8 @@ function AssigneeDropdown() {
|
|
|
5624
6189
|
}
|
|
5625
6190
|
}));
|
|
5626
6191
|
}
|
|
5627
|
-
var FormContainer$2 = /*#__PURE__*/styled.div(_templateObject$
|
|
5628
|
-
var StyledAntSelect$2 = /*#__PURE__*/styled(AntSelect)(_templateObject2$
|
|
6192
|
+
var FormContainer$2 = /*#__PURE__*/styled.div(_templateObject$1F || (_templateObject$1F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n width: 285px;\n"])));
|
|
6193
|
+
var StyledAntSelect$2 = /*#__PURE__*/styled(AntSelect)(_templateObject2$18 || (_templateObject2$18 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
5629
6194
|
|
|
5630
6195
|
var DatePickerIcon = function DatePickerIcon() {
|
|
5631
6196
|
return React.createElement("svg", {
|
|
@@ -5643,12 +6208,12 @@ var DatePickerIcon = function DatePickerIcon() {
|
|
|
5643
6208
|
}));
|
|
5644
6209
|
};
|
|
5645
6210
|
|
|
5646
|
-
var _templateObject$
|
|
5647
|
-
var ReferenceContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
5648
|
-
var InnerContainer = /*#__PURE__*/styled.div(_templateObject2$
|
|
5649
|
-
var MiniContainer = /*#__PURE__*/styled.div(_templateObject3$
|
|
5650
|
-
var StyledText = /*#__PURE__*/styled(TextArea)(_templateObject4$
|
|
5651
|
-
var StyledDateContainer = /*#__PURE__*/styled.div(_templateObject8$
|
|
6211
|
+
var _templateObject$1G, _templateObject2$19, _templateObject3$D, _templateObject4$m, _templateObject8$6, _templateObject10$2, _templateObject11$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16, _templateObject17, _templateObject19$2, _templateObject20$2;
|
|
6212
|
+
var ReferenceContainer = /*#__PURE__*/styled.div(_templateObject$1G || (_templateObject$1G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n height: 52px;\n width: 740px;\n padding: 10px 15px;\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"])));
|
|
6213
|
+
var InnerContainer = /*#__PURE__*/styled.div(_templateObject2$19 || (_templateObject2$19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n height: 52px;\n padding: 10px 15px;\n align-items: center;\n gap: 20px;\n flex: 1 0 0;\n"])));
|
|
6214
|
+
var MiniContainer = /*#__PURE__*/styled.div(_templateObject3$D || (_templateObject3$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 3px;\n flex: 1;\n"])));
|
|
6215
|
+
var StyledText = /*#__PURE__*/styled(TextArea)(_templateObject4$m || (_templateObject4$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n height: 96px;\n padding: 8px 12px;\n align-items: flex-start;\n gap: 4px;\n align-self: stretch;\n border-radius: 22px;\n resize: none;\n"])));
|
|
6216
|
+
var StyledDateContainer = /*#__PURE__*/styled.div(_templateObject8$6 || (_templateObject8$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n border-radius: 66px;\n border: 1px solid #e0e2e7;\n box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);\n input[type='text'] {\n border-radius: 20px;\n background: #fff;\n border: none;\n color: #6a7378;\n font-size: 14px;\n font-weight: 400;\n padding: 10px 0;\n padding-left: 33px;\n &:focus-visible {\n outline: none;\n }\n }\n svg {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n }\n"])));
|
|
5652
6217
|
var TimeWrapper = /*#__PURE__*/styled.div(_templateObject10$2 || (_templateObject10$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 80px;\n flex-direction: column;\n align-items: flex-start;\n gap: 6px;\n"])));
|
|
5653
6218
|
var StyledTime = /*#__PURE__*/styled(Input$1)(_templateObject11$1 || (_templateObject11$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 30px;\n border: 1px solid #e0e2e7;\n background: #fff;\n\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n display: flex;\n padding: 8px 5px;\n justify-content: space-between;\n align-items: center;\n align-self: stretch;\n"])));
|
|
5654
6219
|
var Column = /*#__PURE__*/styled.div(_templateObject13$1 || (_templateObject13$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
|
|
@@ -5872,22 +6437,22 @@ function useFetchSingleReminderData() {
|
|
|
5872
6437
|
return res;
|
|
5873
6438
|
}
|
|
5874
6439
|
|
|
5875
|
-
var _templateObject$
|
|
6440
|
+
var _templateObject$1H, _templateObject2$1a, _templateObject3$E, _templateObject4$n, _templateObject5$c, _templateObject6$a, _templateObject7$9;
|
|
5876
6441
|
function Loader(props) {
|
|
5877
6442
|
return React.createElement(MainContainer$9, {
|
|
5878
6443
|
id: "loder"
|
|
5879
6444
|
}, React.createElement(Container$$, null, React.createElement(Spinner, null), React.createElement(Wrapper$h, null, React.createElement(Title$5, null, props.title || 'Loading...'), React.createElement(Subtitle, null, props.subtitle || "Sit tight - won't be long!"))));
|
|
5880
6445
|
}
|
|
5881
|
-
var rotate = /*#__PURE__*/keyframes(_templateObject$
|
|
6446
|
+
var rotate = /*#__PURE__*/keyframes(_templateObject$1H || (_templateObject$1H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"])));
|
|
5882
6447
|
// Styled components for the loading spinner
|
|
5883
|
-
var Spinner = /*#__PURE__*/styled.div(_templateObject2$
|
|
5884
|
-
var Container$$ = /*#__PURE__*/styled.div(_templateObject3$
|
|
5885
|
-
var Subtitle = /*#__PURE__*/styled.span(_templateObject4$
|
|
5886
|
-
var Title$5 = /*#__PURE__*/styled.span(_templateObject5$
|
|
5887
|
-
var Wrapper$h = /*#__PURE__*/styled.div(_templateObject6$
|
|
5888
|
-
var MainContainer$9 = /*#__PURE__*/styled.div(_templateObject7$
|
|
5889
|
-
|
|
5890
|
-
var _templateObject$
|
|
6448
|
+
var Spinner = /*#__PURE__*/styled.div(_templateObject2$1a || (_templateObject2$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 4px solid rgb(0 0 0 / 50%);\n border-left-color: #feba30;\n border-radius: 50%;\n width: 50px;\n height: 50px;\n animation: ", " 1s linear infinite;\n"])), rotate);
|
|
6449
|
+
var Container$$ = /*#__PURE__*/styled.div(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n align-items: center;\n flex-direction: column;\n text-align: center;\n"])));
|
|
6450
|
+
var Subtitle = /*#__PURE__*/styled.span(_templateObject4$n || (_templateObject4$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n font-size: 25px;\n text-transform: capitalize;\n font-weight: bold;\n"])));
|
|
6451
|
+
var Title$5 = /*#__PURE__*/styled.span(_templateObject5$c || (_templateObject5$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n font-size: 25px;\n text-transform: capitalize;\n font-weight: bold;\n"])));
|
|
6452
|
+
var Wrapper$h = /*#__PURE__*/styled.div(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n"])));
|
|
6453
|
+
var MainContainer$9 = /*#__PURE__*/styled.div(_templateObject7$9 || (_templateObject7$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 9999;\n background-color: rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(5px);\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
6454
|
+
|
|
6455
|
+
var _templateObject$1I, _templateObject2$1b, _templateObject3$F, _templateObject4$o;
|
|
5891
6456
|
function StatusIndicator(props) {
|
|
5892
6457
|
var statusColor = getStatusColor(props.status);
|
|
5893
6458
|
return React.createElement(Container$10, null, React.createElement(StatusCircleContainer, {
|
|
@@ -5898,14 +6463,14 @@ function StatusIndicator(props) {
|
|
|
5898
6463
|
status: props.status
|
|
5899
6464
|
}, props.text));
|
|
5900
6465
|
}
|
|
5901
|
-
var StatusCircleContainer = /*#__PURE__*/styled.span(_templateObject$
|
|
6466
|
+
var StatusCircleContainer = /*#__PURE__*/styled.span(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 20px;\n width: 20px;\n border: 1px solid\n ", ";\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (props) {
|
|
5902
6467
|
return props.status === 'SD' ? '#30fe43' : props.status === 'AD' ? '#E95252' : 'transparent';
|
|
5903
6468
|
});
|
|
5904
|
-
var StatusCircle = /*#__PURE__*/styled.span(_templateObject2$
|
|
6469
|
+
var StatusCircle = /*#__PURE__*/styled.span(_templateObject2$1b || (_templateObject2$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 10px;\n width: 10px;\n background: ", ";\n border-radius: 50%;\n display: inline-block;\n transition: 0.2s ease all;\n"])), function (props) {
|
|
5905
6470
|
return props.color;
|
|
5906
6471
|
});
|
|
5907
|
-
var Container$10 = /*#__PURE__*/styled.div(_templateObject3$
|
|
5908
|
-
var Text$5 = /*#__PURE__*/styled.span(_templateObject4$
|
|
6472
|
+
var Container$10 = /*#__PURE__*/styled.div(_templateObject3$F || (_templateObject3$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 10px;\n height: 22px;\n"])));
|
|
6473
|
+
var Text$5 = /*#__PURE__*/styled.span(_templateObject4$o || (_templateObject4$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 13px;\n font-weight: normal;\n text-transform: capitalize;\n font-weight: 500;\n color: ", ";\n"])), function (props) {
|
|
5909
6474
|
return props.status === 'SD' ? '#57DB7A' : props.status === 'AD' ? '#E95252' : 'transparent';
|
|
5910
6475
|
});
|
|
5911
6476
|
|
|
@@ -6067,7 +6632,7 @@ function useFetchReminders() {
|
|
|
6067
6632
|
return perform;
|
|
6068
6633
|
}
|
|
6069
6634
|
|
|
6070
|
-
var _templateObject$
|
|
6635
|
+
var _templateObject$1J, _templateObject2$1c, _templateObject3$G, _templateObject4$p, _templateObject5$d, _templateObject6$b, _templateObject7$a;
|
|
6071
6636
|
var ViewReminderModal = function ViewReminderModal() {
|
|
6072
6637
|
var _reminderData$reminde, _reminderData$order_d, _reminderData$order_d2, _reminderData$reminde2, _reminderData$reminde3, _reminderData$reminde4, _reminderData$reminde5;
|
|
6073
6638
|
var _useCurrentAction = useCurrentAction(),
|
|
@@ -6182,129 +6747,59 @@ var ViewReminderModal = function ViewReminderModal() {
|
|
|
6182
6747
|
}, _callee2);
|
|
6183
6748
|
}));
|
|
6184
6749
|
return function handleEditReminder() {
|
|
6185
|
-
return _ref2.apply(this, arguments);
|
|
6186
|
-
};
|
|
6187
|
-
}();
|
|
6188
|
-
var isDisabled = (reminderData == null || (_reminderData$reminde = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde.name_alias) === 'resolved';
|
|
6189
|
-
var additional = (reminderData == null || (_reminderData$order_d = reminderData.order_data) == null || (_reminderData$order_d = _reminderData$order_d.order_recipient) == null ? void 0 : _reminderData$order_d.recipient_name) + ' ' + (reminderData == null || (_reminderData$order_d2 = reminderData.order_data) == null || (_reminderData$order_d2 = _reminderData$order_d2.order_recipient) == null ? void 0 : _reminderData$order_d2.postcode);
|
|
6190
|
-
return React.createElement(React.Fragment, null, reminderData && loading && React.createElement(Loader, null), React.createElement(OrderActionModal, {
|
|
6191
|
-
headerTitle: "View Reminder",
|
|
6192
|
-
onCloseHeader: closeModal,
|
|
6193
|
-
onSubmit: handleEditReminder,
|
|
6194
|
-
submitBtnTitle: "Save Details",
|
|
6195
|
-
isSubmitDisabled: isDisabled,
|
|
6196
|
-
showAdditionalInfo: true,
|
|
6197
|
-
infoText: additional || 'NA',
|
|
6198
|
-
headerActions: React.createElement(OuterDiv, null, (reminderData == null || (_reminderData$reminde2 = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde2.name_alias) === 'pending' || (reminderData == null || (_reminderData$reminde3 = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde3.name_alias) === 'unresolved' ? React.createElement(React.Fragment, null, React.createElement(StyledWrapper, null, React.createElement(StyledLabel, null, React.createElement(StyledCheckbox, null, React.createElement("input", {
|
|
6199
|
-
type: "checkbox",
|
|
6200
|
-
onChange: function onChange() {
|
|
6201
|
-
return handleResolved(2);
|
|
6202
|
-
}
|
|
6203
|
-
}), React.createElement(RoundCheckbox, null)), React.createElement(StyledSpan, null, "Mark As Complete")))) : null)
|
|
6204
|
-
}, React.createElement(ReferenceContainer, null, React.createElement(InnerContainer, null, React.createElement(MiniContainer, null, ' ', React.createElement(Label$c, null, "Reference ", " "), React.createElement(LabelText, null, (reminderData == null ? void 0 : reminderData.reference) || 'N/A')), React.createElement(MiniContainer, null, ' ', React.createElement(Label$c, null, "Status "), React.createElement(LabelText, null, (reminderData == null || (_reminderData$reminde4 = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde4.name_alias) === 'pending' || (reminderData == null || (_reminderData$reminde5 = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde5.name_alias) === 'unresolved' ? React.createElement(StatusIndicator, {
|
|
6205
|
-
text: "Incomplete",
|
|
6206
|
-
status: "AD"
|
|
6207
|
-
}) : React.createElement(StatusIndicator, {
|
|
6208
|
-
text: "Completed on " + (reminderData == null ? void 0 : reminderData.completed) + " by " + (reminderData == null ? void 0 : reminderData.completed_by),
|
|
6209
|
-
status: "SD"
|
|
6210
|
-
}))))), React.createElement(ContentsContainer, null, React.createElement(Left$1, null, React.createElement(AssigneeDropdown, null), React.createElement(DateTimeContainer, null, React.createElement(Label$c, null, "Due "), React.createElement(Row$5, null, (reminderPayload == null ? void 0 : reminderPayload.due_date) && React.createElement(StyledDateContainer, null, React.createElement(DatePicker$1, {
|
|
6211
|
-
dateFormat: "EEE, dd MMM yyyy",
|
|
6212
|
-
selected: reminderPayload != null && reminderPayload.due_date ? parse(reminderPayload.due_date, 'yyyy-MM-dd', new Date()) : null,
|
|
6213
|
-
onChange: handleDateChange,
|
|
6214
|
-
placeholderText: "Choose Due Date"
|
|
6215
|
-
}), React.createElement(DatePickerIcon, null)), React.createElement(TimeWrapper, null, React.createElement(StyledTime, {
|
|
6216
|
-
onChange: handleTime,
|
|
6217
|
-
value: reminderPayload == null ? void 0 : reminderPayload.due_time,
|
|
6218
|
-
type: "time"
|
|
6219
|
-
}))))), React.createElement(Right$2, null, React.createElement(DetailedContainer, null, React.createElement(Label$c, null, "Details"), React.createElement(StyledText, {
|
|
6220
|
-
name: "text",
|
|
6221
|
-
required: true,
|
|
6222
|
-
value: reminderPayload == null ? void 0 : reminderPayload.details,
|
|
6223
|
-
onChange: onChangeDetails
|
|
6224
|
-
}))))));
|
|
6225
|
-
};
|
|
6226
|
-
var StyledWrapper = /*#__PURE__*/styled.div(_templateObject$
|
|
6227
|
-
var StyledLabel = /*#__PURE__*/styled.label(_templateObject2$
|
|
6228
|
-
var StyledSpan = /*#__PURE__*/styled.span(_templateObject3$
|
|
6229
|
-
var StyledCheckbox = /*#__PURE__*/styled.div(_templateObject4$
|
|
6230
|
-
var OuterDiv = /*#__PURE__*/styled.div(_templateObject5$
|
|
6231
|
-
var RoundCheckbox = /*#__PURE__*/styled.span(_templateObject6$
|
|
6232
|
-
var LabelText = /*#__PURE__*/styled.span(_templateObject7$
|
|
6233
|
-
|
|
6234
|
-
var options$1 = [{
|
|
6235
|
-
label: 'Task',
|
|
6236
|
-
value: 'task',
|
|
6237
|
-
selectedBackgroundColor: '#F0F2F2',
|
|
6238
|
-
selectedFontColor: '#3a3630'
|
|
6239
|
-
}, {
|
|
6240
|
-
label: 'Reminder',
|
|
6241
|
-
value: 'reminder',
|
|
6242
|
-
selectedBackgroundColor: 'white',
|
|
6243
|
-
selectedFontColor: '#3a3630'
|
|
6244
|
-
}];
|
|
6245
|
-
var ReturnData = [{
|
|
6246
|
-
label: 'Return1',
|
|
6247
|
-
value: 'return1'
|
|
6248
|
-
}, {
|
|
6249
|
-
label: 'Return2',
|
|
6250
|
-
value: 'return2'
|
|
6251
|
-
}, {
|
|
6252
|
-
label: 'Return3',
|
|
6253
|
-
value: 'return3'
|
|
6254
|
-
}];
|
|
6255
|
-
var TaskType = [{
|
|
6256
|
-
label: 'Client',
|
|
6257
|
-
value: 'client'
|
|
6258
|
-
}, {
|
|
6259
|
-
label: 'Customer Service (CS)',
|
|
6260
|
-
value: 'cs'
|
|
6261
|
-
}, {
|
|
6262
|
-
label: 'Transport (DH)',
|
|
6263
|
-
value: 'dh'
|
|
6264
|
-
}, {
|
|
6265
|
-
label: 'Warehouse',
|
|
6266
|
-
value: 'warehouse'
|
|
6267
|
-
}, {
|
|
6268
|
-
label: 'Customer Portal',
|
|
6269
|
-
value: 'customer-portal'
|
|
6270
|
-
}, {
|
|
6271
|
-
label: 'Delivery App',
|
|
6272
|
-
value: 'delivery-app'
|
|
6273
|
-
}, {
|
|
6274
|
-
label: 'Complaints',
|
|
6275
|
-
value: 'complaints'
|
|
6276
|
-
}, {
|
|
6277
|
-
label: 'Offshore',
|
|
6278
|
-
value: 'offshore'
|
|
6279
|
-
}, {
|
|
6280
|
-
label: 'Stock Admin',
|
|
6281
|
-
value: 'stock-admin'
|
|
6282
|
-
}, {
|
|
6283
|
-
label: 'Call Customer',
|
|
6284
|
-
value: 'call-customer'
|
|
6285
|
-
}, {
|
|
6286
|
-
label: 'Driver Compliance',
|
|
6287
|
-
value: 'driver-compliance'
|
|
6288
|
-
}];
|
|
6289
|
-
var CustomOptions = [{
|
|
6290
|
-
label: 'Private',
|
|
6291
|
-
value: 'private'
|
|
6292
|
-
}, {
|
|
6293
|
-
label: 'Public',
|
|
6294
|
-
value: 'public'
|
|
6295
|
-
}];
|
|
6296
|
-
var DefectConfirm = [{
|
|
6297
|
-
label: 'Yes',
|
|
6298
|
-
value: 'yes'
|
|
6299
|
-
}, {
|
|
6300
|
-
label: 'No',
|
|
6301
|
-
value: 'no'
|
|
6302
|
-
}];
|
|
6750
|
+
return _ref2.apply(this, arguments);
|
|
6751
|
+
};
|
|
6752
|
+
}();
|
|
6753
|
+
var isDisabled = (reminderData == null || (_reminderData$reminde = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde.name_alias) === 'resolved';
|
|
6754
|
+
var additional = (reminderData == null || (_reminderData$order_d = reminderData.order_data) == null || (_reminderData$order_d = _reminderData$order_d.order_recipient) == null ? void 0 : _reminderData$order_d.recipient_name) + ' ' + (reminderData == null || (_reminderData$order_d2 = reminderData.order_data) == null || (_reminderData$order_d2 = _reminderData$order_d2.order_recipient) == null ? void 0 : _reminderData$order_d2.postcode);
|
|
6755
|
+
return React.createElement(React.Fragment, null, reminderData && loading && React.createElement(Loader, null), React.createElement(OrderActionModal, {
|
|
6756
|
+
headerTitle: "View Reminder",
|
|
6757
|
+
onCloseHeader: closeModal,
|
|
6758
|
+
onSubmit: handleEditReminder,
|
|
6759
|
+
submitBtnTitle: "Save Details",
|
|
6760
|
+
isSubmitDisabled: isDisabled,
|
|
6761
|
+
showAdditionalInfo: true,
|
|
6762
|
+
infoText: additional || 'NA',
|
|
6763
|
+
headerActions: React.createElement(OuterDiv, null, (reminderData == null || (_reminderData$reminde2 = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde2.name_alias) === 'pending' || (reminderData == null || (_reminderData$reminde3 = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde3.name_alias) === 'unresolved' ? React.createElement(React.Fragment, null, React.createElement(StyledWrapper, null, React.createElement(StyledLabel, null, React.createElement(StyledCheckbox, null, React.createElement("input", {
|
|
6764
|
+
type: "checkbox",
|
|
6765
|
+
onChange: function onChange() {
|
|
6766
|
+
return handleResolved(2);
|
|
6767
|
+
}
|
|
6768
|
+
}), React.createElement(RoundCheckbox, null)), React.createElement(StyledSpan, null, "Mark As Complete")))) : null)
|
|
6769
|
+
}, React.createElement(ReferenceContainer, null, React.createElement(InnerContainer, null, React.createElement(MiniContainer, null, ' ', React.createElement(Label$c, null, "Reference ", " "), React.createElement(LabelText, null, (reminderData == null ? void 0 : reminderData.reference) || 'N/A')), React.createElement(MiniContainer, null, ' ', React.createElement(Label$c, null, "Status "), React.createElement(LabelText, null, (reminderData == null || (_reminderData$reminde4 = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde4.name_alias) === 'pending' || (reminderData == null || (_reminderData$reminde5 = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde5.name_alias) === 'unresolved' ? React.createElement(StatusIndicator, {
|
|
6770
|
+
text: "Incomplete",
|
|
6771
|
+
status: "AD"
|
|
6772
|
+
}) : React.createElement(StatusIndicator, {
|
|
6773
|
+
text: "Completed on " + (reminderData == null ? void 0 : reminderData.completed) + " by " + (reminderData == null ? void 0 : reminderData.completed_by),
|
|
6774
|
+
status: "SD"
|
|
6775
|
+
}))))), React.createElement(ContentsContainer, null, React.createElement(Left$1, null, React.createElement(AssigneeDropdown, null), React.createElement(DateTimeContainer, null, React.createElement(Label$c, null, "Due "), React.createElement(Row$5, null, (reminderPayload == null ? void 0 : reminderPayload.due_date) && React.createElement(StyledDateContainer, null, React.createElement(DatePicker$1, {
|
|
6776
|
+
dateFormat: "EEE, dd MMM yyyy",
|
|
6777
|
+
selected: reminderPayload != null && reminderPayload.due_date ? parse(reminderPayload.due_date, 'yyyy-MM-dd', new Date()) : null,
|
|
6778
|
+
onChange: handleDateChange,
|
|
6779
|
+
placeholderText: "Choose Due Date"
|
|
6780
|
+
}), React.createElement(DatePickerIcon, null)), React.createElement(TimeWrapper, null, React.createElement(StyledTime, {
|
|
6781
|
+
onChange: handleTime,
|
|
6782
|
+
value: reminderPayload == null ? void 0 : reminderPayload.due_time,
|
|
6783
|
+
type: "time"
|
|
6784
|
+
}))))), React.createElement(Right$2, null, React.createElement(DetailedContainer, null, React.createElement(Label$c, null, "Details"), React.createElement(StyledText, {
|
|
6785
|
+
name: "text",
|
|
6786
|
+
required: true,
|
|
6787
|
+
value: reminderPayload == null ? void 0 : reminderPayload.details,
|
|
6788
|
+
onChange: onChangeDetails
|
|
6789
|
+
}))))));
|
|
6790
|
+
};
|
|
6791
|
+
var StyledWrapper = /*#__PURE__*/styled.div(_templateObject$1J || (_templateObject$1J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 6px 10px;\n align-items: center;\n gap: 5px;\n border-radius: 30px;\n background: #fff;\n"])));
|
|
6792
|
+
var StyledLabel = /*#__PURE__*/styled.label(_templateObject2$1c || (_templateObject2$1c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n"])));
|
|
6793
|
+
var StyledSpan = /*#__PURE__*/styled.span(_templateObject3$G || (_templateObject3$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"])));
|
|
6794
|
+
var StyledCheckbox = /*#__PURE__*/styled.div(_templateObject4$p || (_templateObject4$p = /*#__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"])));
|
|
6795
|
+
var OuterDiv = /*#__PURE__*/styled.div(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-left: 33%;\n"])));
|
|
6796
|
+
var RoundCheckbox = /*#__PURE__*/styled.span(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6797
|
+
var LabelText = /*#__PURE__*/styled.span(_templateObject7$a || (_templateObject7$a = /*#__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"])));
|
|
6303
6798
|
|
|
6304
|
-
var _templateObject$
|
|
6799
|
+
var _templateObject$1K;
|
|
6305
6800
|
var CustomSwitchSelector = function CustomSwitchSelector(_ref) {
|
|
6306
6801
|
var onSwitchChange = _ref.onSwitchChange;
|
|
6307
|
-
var initialSelectedIndex = options
|
|
6802
|
+
var initialSelectedIndex = options.findIndex(function (_ref2) {
|
|
6308
6803
|
var value = _ref2.value;
|
|
6309
6804
|
return value === 'task';
|
|
6310
6805
|
});
|
|
@@ -6324,24 +6819,24 @@ var CustomSwitchSelector = function CustomSwitchSelector(_ref) {
|
|
|
6324
6819
|
};
|
|
6325
6820
|
return React.createElement(StyledSwitch, null, React.createElement(SwitchSelector, {
|
|
6326
6821
|
onChange: handleSwitchChange,
|
|
6327
|
-
options: options
|
|
6822
|
+
options: options,
|
|
6328
6823
|
initialSelectedIndex: initialSelectedIndex,
|
|
6329
6824
|
backgroundColor: '#cbc8c2',
|
|
6330
6825
|
fontColor: '#f5f6fa',
|
|
6331
6826
|
optionBorderRadius: 30
|
|
6332
6827
|
}));
|
|
6333
6828
|
};
|
|
6334
|
-
var StyledSwitch = /*#__PURE__*/styled.div(_templateObject$
|
|
6829
|
+
var StyledSwitch = /*#__PURE__*/styled.div(_templateObject$1K || (_templateObject$1K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 35%;\n height: 40px;\n .react-switch-selector-wrapper {\n background: #777777;\n }\n"])));
|
|
6335
6830
|
|
|
6336
|
-
var _templateObject$
|
|
6831
|
+
var _templateObject$1L, _templateObject3$H, _templateObject4$q, _templateObject5$e, _templateObject7$b, _templateObject8$7, _templateObject9$4;
|
|
6337
6832
|
// Shared styles and components
|
|
6338
|
-
var Wrapper$i = /*#__PURE__*/styled.div(_templateObject$
|
|
6339
|
-
var SplitContainer = /*#__PURE__*/styled.div(_templateObject3$
|
|
6340
|
-
var StyledAntSelect$3 = /*#__PURE__*/styled(Select)(_templateObject4$
|
|
6341
|
-
var Label$d = /*#__PURE__*/styled.label(_templateObject5$
|
|
6342
|
-
var ContentContainer$7 = /*#__PURE__*/styled.div(_templateObject7$
|
|
6343
|
-
var Row$6 = /*#__PURE__*/styled.div(_templateObject8$
|
|
6344
|
-
var DoubleDropdownContainer = /*#__PURE__*/styled.div(_templateObject9$
|
|
6833
|
+
var Wrapper$i = /*#__PURE__*/styled.div(_templateObject$1L || (_templateObject$1L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
|
|
6834
|
+
var SplitContainer = /*#__PURE__*/styled.div(_templateObject3$H || (_templateObject3$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* width: 95%; */\n min-width: 25vw;\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
6835
|
+
var StyledAntSelect$3 = /*#__PURE__*/styled(Select)(_templateObject4$q || (_templateObject4$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n /* width: 22vw; */\n border-radius: 22px;\n }\n"])));
|
|
6836
|
+
var Label$d = /*#__PURE__*/styled.label(_templateObject5$e || (_templateObject5$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
|
|
6837
|
+
var ContentContainer$7 = /*#__PURE__*/styled.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"])));
|
|
6838
|
+
var Row$6 = /*#__PURE__*/styled.div(_templateObject8$7 || (_templateObject8$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
6839
|
+
var DoubleDropdownContainer = /*#__PURE__*/styled.div(_templateObject9$4 || (_templateObject9$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n width: 100%;\n"])));
|
|
6345
6840
|
var FormRow = function FormRow(_ref) {
|
|
6346
6841
|
var label = _ref.label,
|
|
6347
6842
|
children = _ref.children,
|
|
@@ -6355,7 +6850,7 @@ var FormRow = function FormRow(_ref) {
|
|
|
6355
6850
|
}, " * ")), children);
|
|
6356
6851
|
};
|
|
6357
6852
|
|
|
6358
|
-
var _templateObject$
|
|
6853
|
+
var _templateObject$1M, _templateObject2$1d, _templateObject3$I, _templateObject4$r, _templateObject5$f;
|
|
6359
6854
|
function CreateReminderModal() {
|
|
6360
6855
|
var _useCategoryData = useCategoryData(),
|
|
6361
6856
|
CategoryData = _useCategoryData[0];
|
|
@@ -6538,13 +7033,13 @@ function CreateReminderModal() {
|
|
|
6538
7033
|
onChange: handleChange
|
|
6539
7034
|
})));
|
|
6540
7035
|
}
|
|
6541
|
-
var StyleContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
6542
|
-
var Label$e = /*#__PURE__*/styled.label(_templateObject2$
|
|
6543
|
-
var StyledAntSelect$4 = /*#__PURE__*/styled(Select)(_templateObject3$
|
|
6544
|
-
var StyledTextArea$2 = /*#__PURE__*/styled(TextArea)(_templateObject4$
|
|
6545
|
-
var StyledLink = /*#__PURE__*/styled.div(_templateObject5$
|
|
7036
|
+
var StyleContainer = /*#__PURE__*/styled.div(_templateObject$1M || (_templateObject$1M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background: var(--Flowkit-White, #fff);\n"])));
|
|
7037
|
+
var Label$e = /*#__PURE__*/styled.label(_templateObject2$1d || (_templateObject2$1d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
|
|
7038
|
+
var StyledAntSelect$4 = /*#__PURE__*/styled(Select)(_templateObject3$I || (_templateObject3$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n width: 20vw;\n border-radius: 22px;\n }\n"])));
|
|
7039
|
+
var StyledTextArea$2 = /*#__PURE__*/styled(TextArea)(_templateObject4$r || (_templateObject4$r = /*#__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"])));
|
|
7040
|
+
var StyledLink = /*#__PURE__*/styled.div(_templateObject5$f || (_templateObject5$f = /*#__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"])));
|
|
6546
7041
|
|
|
6547
|
-
var _templateObject$
|
|
7042
|
+
var _templateObject$1N, _templateObject2$1e, _templateObject3$J, _templateObject4$s;
|
|
6548
7043
|
function CreateTaskModal() {
|
|
6549
7044
|
var _useTaskTypeData = useTaskTypeData(),
|
|
6550
7045
|
taskTypes = _useTaskTypeData[0];
|
|
@@ -6730,10 +7225,10 @@ function CreateTaskModal() {
|
|
|
6730
7225
|
value: createTask == null ? void 0 : createTask.description
|
|
6731
7226
|
})));
|
|
6732
7227
|
}
|
|
6733
|
-
var StyleContainer$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
6734
|
-
var StyledLink$1 = /*#__PURE__*/styled.div(_templateObject2$
|
|
6735
|
-
var Label$f = /*#__PURE__*/styled.label(_templateObject3$
|
|
6736
|
-
var StyledTextArea$3 = /*#__PURE__*/styled(TextArea)(_templateObject4$
|
|
7228
|
+
var StyleContainer$1 = /*#__PURE__*/styled.div(_templateObject$1N || (_templateObject$1N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background: var(--Flowkit-White, #fff);\n"])));
|
|
7229
|
+
var StyledLink$1 = /*#__PURE__*/styled.div(_templateObject2$1e || (_templateObject2$1e = /*#__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"])));
|
|
7230
|
+
var Label$f = /*#__PURE__*/styled.label(_templateObject3$J || (_templateObject3$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
|
|
7231
|
+
var StyledTextArea$3 = /*#__PURE__*/styled(TextArea)(_templateObject4$s || (_templateObject4$s = /*#__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: 25%;\n"])));
|
|
6737
7232
|
|
|
6738
7233
|
function useCreateTask() {
|
|
6739
7234
|
var ssoToken = getCookie('id_token');
|
|
@@ -6976,7 +7471,7 @@ function useFetchUnresolvedTasks() {
|
|
|
6976
7471
|
return perform;
|
|
6977
7472
|
}
|
|
6978
7473
|
|
|
6979
|
-
var _templateObject$
|
|
7474
|
+
var _templateObject$1O;
|
|
6980
7475
|
function TaskReminderModal() {
|
|
6981
7476
|
var createTaskAPI = useCreateTask();
|
|
6982
7477
|
var createReminderAPI = useCreateReminder();
|
|
@@ -7146,80 +7641,9 @@ function TaskReminderModal() {
|
|
|
7146
7641
|
onClose: function onClose() {}
|
|
7147
7642
|
}) : '')));
|
|
7148
7643
|
}
|
|
7149
|
-
var OrderModal = /*#__PURE__*/styled(OrderActionModal)(_templateObject$
|
|
7150
|
-
|
|
7151
|
-
function useUpdateOrder() {
|
|
7152
|
-
var controller;
|
|
7153
|
-
var ssoToken = getCookie('id_token');
|
|
7154
|
-
var update = /*#__PURE__*/function () {
|
|
7155
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
7156
|
-
var endpoint, signal, requestOptions, response, json;
|
|
7157
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7158
|
-
while (1) switch (_context.prev = _context.next) {
|
|
7159
|
-
case 0:
|
|
7160
|
-
endpoint = getBaseEndpoint() + "/orders/update/";
|
|
7161
|
-
if (controller) {
|
|
7162
|
-
controller.abort();
|
|
7163
|
-
}
|
|
7164
|
-
// Create new AbortController
|
|
7165
|
-
controller = new AbortController();
|
|
7166
|
-
signal = controller.signal; // setLoading(true); // Set loading to true
|
|
7167
|
-
_context.prev = 4;
|
|
7168
|
-
requestOptions = {
|
|
7169
|
-
headers: {
|
|
7170
|
-
'Content-Type': 'application/json',
|
|
7171
|
-
Authorization: "Bearer " + ssoToken
|
|
7172
|
-
},
|
|
7173
|
-
method: 'PUT',
|
|
7174
|
-
body: JSON.stringify(data),
|
|
7175
|
-
signal: signal
|
|
7176
|
-
};
|
|
7177
|
-
_context.next = 8;
|
|
7178
|
-
return fetch(endpoint, requestOptions);
|
|
7179
|
-
case 8:
|
|
7180
|
-
response = _context.sent;
|
|
7181
|
-
if (response.ok) {
|
|
7182
|
-
_context.next = 11;
|
|
7183
|
-
break;
|
|
7184
|
-
}
|
|
7185
|
-
throw new Error('response is not ok');
|
|
7186
|
-
case 11:
|
|
7187
|
-
_context.next = 13;
|
|
7188
|
-
return response.json();
|
|
7189
|
-
case 13:
|
|
7190
|
-
json = _context.sent;
|
|
7191
|
-
// alert('Order has been updated');
|
|
7192
|
-
notification.success({
|
|
7193
|
-
message: 'Success',
|
|
7194
|
-
description: 'Order has been updated.'
|
|
7195
|
-
});
|
|
7196
|
-
return _context.abrupt("return", json);
|
|
7197
|
-
case 18:
|
|
7198
|
-
_context.prev = 18;
|
|
7199
|
-
_context.t0 = _context["catch"](4);
|
|
7200
|
-
// setLoading(false);
|
|
7201
|
-
// console.log(err, 'error');
|
|
7202
|
-
notification.error({
|
|
7203
|
-
message: 'Error',
|
|
7204
|
-
description: "" + _context.t0 || 'An error has occurred. Please try again later.'
|
|
7205
|
-
});
|
|
7206
|
-
case 21:
|
|
7207
|
-
_context.prev = 21;
|
|
7208
|
-
return _context.finish(21);
|
|
7209
|
-
case 23:
|
|
7210
|
-
case "end":
|
|
7211
|
-
return _context.stop();
|
|
7212
|
-
}
|
|
7213
|
-
}, _callee, null, [[4, 18, 21, 23]]);
|
|
7214
|
-
}));
|
|
7215
|
-
return function update(_x) {
|
|
7216
|
-
return _ref.apply(this, arguments);
|
|
7217
|
-
};
|
|
7218
|
-
}();
|
|
7219
|
-
return update;
|
|
7220
|
-
}
|
|
7644
|
+
var OrderModal = /*#__PURE__*/styled(OrderActionModal)(_templateObject$1O || (_templateObject$1O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 70%;\n"])));
|
|
7221
7645
|
|
|
7222
|
-
var _templateObject$
|
|
7646
|
+
var _templateObject$1P, _templateObject2$1f;
|
|
7223
7647
|
function OrderLock() {
|
|
7224
7648
|
var _useCurrentAction = useCurrentAction(),
|
|
7225
7649
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -7272,8 +7696,8 @@ function OrderLock() {
|
|
|
7272
7696
|
})
|
|
7273
7697
|
});
|
|
7274
7698
|
}
|
|
7275
|
-
var CustomCancelationModal = /*#__PURE__*/styled(CancelationModal)(_templateObject$
|
|
7276
|
-
var CustomCancelAndCompleteAction$1 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$
|
|
7699
|
+
var CustomCancelationModal = /*#__PURE__*/styled(CancelationModal)(_templateObject$1P || (_templateObject$1P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: rgba(0, 0, 0, 0.8);\n"])));
|
|
7700
|
+
var CustomCancelAndCompleteAction$1 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$1f || (_templateObject2$1f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
7277
7701
|
|
|
7278
7702
|
function useUpdateFlag() {
|
|
7279
7703
|
var ssoToken = getCookie('id_token');
|
|
@@ -7343,7 +7767,7 @@ function useUpdateFlag() {
|
|
|
7343
7767
|
return create;
|
|
7344
7768
|
}
|
|
7345
7769
|
|
|
7346
|
-
var _templateObject$
|
|
7770
|
+
var _templateObject$1Q, _templateObject2$1g, _templateObject3$K, _templateObject4$t, _templateObject5$g, _templateObject6$c;
|
|
7347
7771
|
function HeaderSection() {
|
|
7348
7772
|
var _useSingleFlagData = useSingleFlagData(),
|
|
7349
7773
|
dataArray = _useSingleFlagData[0];
|
|
@@ -7413,14 +7837,14 @@ function HeaderSection() {
|
|
|
7413
7837
|
})
|
|
7414
7838
|
})));
|
|
7415
7839
|
}
|
|
7416
|
-
var Header$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
7417
|
-
var CustomCancelAndCompleteAction$2 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$
|
|
7418
|
-
var ResolveButton = /*#__PURE__*/styled.button(_templateObject3$
|
|
7419
|
-
var Title$6 = /*#__PURE__*/styled.span(_templateObject4$
|
|
7420
|
-
var StyledOverlay = /*#__PURE__*/styled.div(_templateObject5$
|
|
7421
|
-
var CrossWrapper = /*#__PURE__*/styled.div(_templateObject6$
|
|
7840
|
+
var Header$1 = /*#__PURE__*/styled.div(_templateObject$1Q || (_templateObject$1Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n"])));
|
|
7841
|
+
var CustomCancelAndCompleteAction$2 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$1g || (_templateObject2$1g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
7842
|
+
var ResolveButton = /*#__PURE__*/styled.button(_templateObject3$K || (_templateObject3$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-size: 14px;\n font-weight: 600;\n background: transparent;\n border: none;\n cursor: pointer;\n"])));
|
|
7843
|
+
var Title$6 = /*#__PURE__*/styled.span(_templateObject4$t || (_templateObject4$t = /*#__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"])));
|
|
7844
|
+
var StyledOverlay = /*#__PURE__*/styled.div(_templateObject5$g || (_templateObject5$g = /*#__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"])));
|
|
7845
|
+
var CrossWrapper = /*#__PURE__*/styled.div(_templateObject6$c || (_templateObject6$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
|
|
7422
7846
|
|
|
7423
|
-
var _templateObject$
|
|
7847
|
+
var _templateObject$1R, _templateObject2$1h;
|
|
7424
7848
|
function TextSection() {
|
|
7425
7849
|
var _useSinglePayload = useSinglePayload(),
|
|
7426
7850
|
payload = _useSinglePayload[0],
|
|
@@ -7438,10 +7862,10 @@ function TextSection() {
|
|
|
7438
7862
|
onChange: onChangeDetails
|
|
7439
7863
|
}));
|
|
7440
7864
|
}
|
|
7441
|
-
var TextField = /*#__PURE__*/styled(TextArea)(_templateObject$
|
|
7442
|
-
var Text$6 = /*#__PURE__*/styled.div(_templateObject2$
|
|
7865
|
+
var TextField = /*#__PURE__*/styled(TextArea)(_templateObject$1R || (_templateObject$1R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 97% !important;\n"])));
|
|
7866
|
+
var Text$6 = /*#__PURE__*/styled.div(_templateObject2$1h || (_templateObject2$1h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n margin-top: 2%;\n"])));
|
|
7443
7867
|
|
|
7444
|
-
var _templateObject$
|
|
7868
|
+
var _templateObject$1S, _templateObject2$1i;
|
|
7445
7869
|
function ButtonsSection() {
|
|
7446
7870
|
var _useSinglePayload = useSinglePayload(),
|
|
7447
7871
|
payload = _useSinglePayload[0],
|
|
@@ -7532,10 +7956,10 @@ function ButtonsSection() {
|
|
|
7532
7956
|
status: "SD"
|
|
7533
7957
|
}))));
|
|
7534
7958
|
}
|
|
7535
|
-
var Buttons = /*#__PURE__*/styled.div(_templateObject$
|
|
7536
|
-
var Flex$2 = /*#__PURE__*/styled.div(_templateObject2$
|
|
7959
|
+
var Buttons = /*#__PURE__*/styled.div(_templateObject$1S || (_templateObject$1S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
|
|
7960
|
+
var Flex$2 = /*#__PURE__*/styled.div(_templateObject2$1i || (_templateObject2$1i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
|
|
7537
7961
|
|
|
7538
|
-
var _templateObject$
|
|
7962
|
+
var _templateObject$1T, _templateObject2$1j, _templateObject3$L, _templateObject4$u, _templateObject5$h, _templateObject6$d;
|
|
7539
7963
|
function ActionSection() {
|
|
7540
7964
|
var _useCurrentAction = useCurrentAction(),
|
|
7541
7965
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -7556,12 +7980,10 @@ function ActionSection() {
|
|
|
7556
7980
|
_context.next = 3;
|
|
7557
7981
|
return updateFlag([payload]);
|
|
7558
7982
|
case 3:
|
|
7559
|
-
_context.next = 5;
|
|
7560
|
-
return fetchData();
|
|
7561
|
-
case 5:
|
|
7562
|
-
//modal close
|
|
7563
7983
|
setCurrentAction(undefined);
|
|
7564
7984
|
setLoading(false);
|
|
7985
|
+
_context.next = 7;
|
|
7986
|
+
return fetchData();
|
|
7565
7987
|
case 7:
|
|
7566
7988
|
case "end":
|
|
7567
7989
|
return _context.stop();
|
|
@@ -7623,14 +8045,14 @@ function RadioButtonsSection() {
|
|
|
7623
8045
|
required: false
|
|
7624
8046
|
}));
|
|
7625
8047
|
}
|
|
7626
|
-
var ButtonWrapper = /*#__PURE__*/styled.div(_templateObject$
|
|
7627
|
-
var SaveButton = /*#__PURE__*/styled(Button$1)(_templateObject2$
|
|
7628
|
-
var CancelButton$1 = /*#__PURE__*/styled(Button$1)(_templateObject3$
|
|
7629
|
-
var DropDowns = /*#__PURE__*/styled.div(_templateObject4$
|
|
7630
|
-
var TooltipContent = /*#__PURE__*/styled.div(_templateObject5$
|
|
7631
|
-
var Wrapper$j = /*#__PURE__*/styled.div(_templateObject6$
|
|
8048
|
+
var ButtonWrapper = /*#__PURE__*/styled.div(_templateObject$1T || (_templateObject$1T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
|
|
8049
|
+
var SaveButton = /*#__PURE__*/styled(Button$1)(_templateObject2$1j || (_templateObject2$1j = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
8050
|
+
var CancelButton$1 = /*#__PURE__*/styled(Button$1)(_templateObject3$L || (_templateObject3$L = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
8051
|
+
var DropDowns = /*#__PURE__*/styled.div(_templateObject4$u || (_templateObject4$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
|
|
8052
|
+
var TooltipContent = /*#__PURE__*/styled.div(_templateObject5$h || (_templateObject5$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #333;\n color: #fff;\n padding: 5px 10px;\n border-radius: 5px;\n"])));
|
|
8053
|
+
var Wrapper$j = /*#__PURE__*/styled.div(_templateObject6$d || (_templateObject6$d = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
7632
8054
|
|
|
7633
|
-
var _templateObject$
|
|
8055
|
+
var _templateObject$1U, _templateObject2$1k, _templateObject3$M, _templateObject4$v, _templateObject5$i;
|
|
7634
8056
|
function DetailSection() {
|
|
7635
8057
|
var _dataArray$order_data, _dataArray$order_data2;
|
|
7636
8058
|
var _useSingleFlagData = useSingleFlagData(),
|
|
@@ -7642,11 +8064,11 @@ function DetailSection() {
|
|
|
7642
8064
|
label: "Order"
|
|
7643
8065
|
}), React.createElement(Order$1, null, orderColumnData)));
|
|
7644
8066
|
}
|
|
7645
|
-
var Detail = /*#__PURE__*/styled.div(_templateObject$
|
|
7646
|
-
var Flex$3 = /*#__PURE__*/styled.div(_templateObject2$
|
|
7647
|
-
var Ref = /*#__PURE__*/styled.div(_templateObject3$
|
|
7648
|
-
var Order$1 = /*#__PURE__*/styled.div(_templateObject4$
|
|
7649
|
-
var StyledLabel$1 = /*#__PURE__*/styled(Label$h)(_templateObject5$
|
|
8067
|
+
var Detail = /*#__PURE__*/styled.div(_templateObject$1U || (_templateObject$1U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 40%;\n flex-wrap: wrap;\n"])));
|
|
8068
|
+
var Flex$3 = /*#__PURE__*/styled.div(_templateObject2$1k || (_templateObject2$1k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
|
|
8069
|
+
var Ref = /*#__PURE__*/styled.div(_templateObject3$M || (_templateObject3$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n font-family: 'Lato', sans-serif;\n"])));
|
|
8070
|
+
var Order$1 = /*#__PURE__*/styled.div(_templateObject4$v || (_templateObject4$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n text-decoration: underline;\n font-family: 'Lato', sans-serif;\n"])));
|
|
8071
|
+
var StyledLabel$1 = /*#__PURE__*/styled(Label$h)(_templateObject5$i || (_templateObject5$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 10px;\n font-weight: bold;\n"])));
|
|
7650
8072
|
|
|
7651
8073
|
function useFetchSingleFlagsData() {
|
|
7652
8074
|
var _useFlagRefId = useFlagRefId(),
|
|
@@ -7728,7 +8150,7 @@ function useFetchSingleFlagsData() {
|
|
|
7728
8150
|
return res;
|
|
7729
8151
|
}
|
|
7730
8152
|
|
|
7731
|
-
var _templateObject$
|
|
8153
|
+
var _templateObject$1V, _templateObject2$1l, _templateObject3$N;
|
|
7732
8154
|
function ViewFlag() {
|
|
7733
8155
|
var _useSingleFlagData = useSingleFlagData(),
|
|
7734
8156
|
dataArray = _useSingleFlagData[0],
|
|
@@ -7825,11 +8247,11 @@ function ViewFlag() {
|
|
|
7825
8247
|
}, [dataArray]);
|
|
7826
8248
|
return React.createElement(React.Fragment, null, React.createElement(BackgroundModals, null, dataArray && loading && React.createElement(Loader, null), React.createElement(MainContainer$a, null, React.createElement(HeaderSection, null), React.createElement(DetailSection, null), React.createElement(TextSection, null), React.createElement(ButtonsSection, null), React.createElement(SectionsContainer, null, React.createElement(ActionSection, null), React.createElement(RadioButtonsSection, null)))));
|
|
7827
8249
|
}
|
|
7828
|
-
var SectionsContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
7829
|
-
var BackgroundModals = /*#__PURE__*/styled(BackgroundModal$1)(_templateObject2$
|
|
7830
|
-
var MainContainer$a = /*#__PURE__*/styled.div(_templateObject3$
|
|
8250
|
+
var SectionsContainer = /*#__PURE__*/styled.div(_templateObject$1V || (_templateObject$1V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-top: 6%;\n"])));
|
|
8251
|
+
var BackgroundModals = /*#__PURE__*/styled(BackgroundModal$1)(_templateObject2$1l || (_templateObject2$1l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(1px);\n"])));
|
|
8252
|
+
var MainContainer$a = /*#__PURE__*/styled.div(_templateObject3$N || (_templateObject3$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 24px;\n border-radius: 12px;\n background: #ffffff;\n box-shadow: 0px 20px 24px -4px #10182814;\n width: 80%;\n max-width: 50%;\n margin: 0 auto;\n @media (max-width: 1024px) {\n max-width: 80%;\n }\n"])));
|
|
7831
8253
|
|
|
7832
|
-
var _templateObject$
|
|
8254
|
+
var _templateObject$1W;
|
|
7833
8255
|
function ReleaseOrder() {
|
|
7834
8256
|
var _useCurrentAction = useCurrentAction(),
|
|
7835
8257
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -7848,9 +8270,9 @@ function ReleaseOrder() {
|
|
|
7848
8270
|
styleAlert: "rounded" // Set the style variant of the alert
|
|
7849
8271
|
}));
|
|
7850
8272
|
}
|
|
7851
|
-
var ReleaseContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
8273
|
+
var ReleaseContainer = /*#__PURE__*/styled.div(_templateObject$1W || (_templateObject$1W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n top: -114px;\n right: 81px;\n opacity: 1;\n overflow: unset;\n color: inherit;\n pointer-events: auto;\n position: absolute;\n transform: translate3d(57px, 308px, 0px) scaleX(1);\n"])));
|
|
7852
8274
|
|
|
7853
|
-
var _templateObject$
|
|
8275
|
+
var _templateObject$1X;
|
|
7854
8276
|
function OrderActions() {
|
|
7855
8277
|
var _useCurrentAction = useCurrentAction(),
|
|
7856
8278
|
currentAction = _useCurrentAction[0];
|
|
@@ -7903,58 +8325,7 @@ function OrderActions() {
|
|
|
7903
8325
|
};
|
|
7904
8326
|
return React.createElement(Container$11, null, renderContent());
|
|
7905
8327
|
}
|
|
7906
|
-
var Container$11 = /*#__PURE__*/styled.div(_templateObject$
|
|
7907
|
-
|
|
7908
|
-
var _templateObject$1U, _templateObject2$1l;
|
|
7909
|
-
var HeaderWrapper = /*#__PURE__*/styled.div(_templateObject$1U || (_templateObject$1U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 20px;\n gap: 10px;\n border-radius: 0px 0px 30px 30px;\n background: #313130;\n height: 151px;\n background: url(./assets/bgBlack.png) no-repeat;\n background-size: cover;\n background-color: #000000d9;\n"])));
|
|
7910
|
-
var StyledFlex = /*#__PURE__*/styled.div(_templateObject2$1l || (_templateObject2$1l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n"])));
|
|
7911
|
-
|
|
7912
|
-
var _templateObject$1V;
|
|
7913
|
-
var HeaderTitle = function HeaderTitle(props) {
|
|
7914
|
-
return React.createElement(React.Fragment, null, React.createElement(Title$7, null, props.title));
|
|
7915
|
-
};
|
|
7916
|
-
var Title$7 = /*#__PURE__*/styled.h2(_templateObject$1V || (_templateObject$1V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0px;\n padding: 0px;\n color: #fff;\n font-size: 26px;\n font-style: normal;\n font-weight: 700;\n line-height: 36px;\n text-transform: uppercase;\n margin-bottom: 8px;\n"])));
|
|
7917
|
-
|
|
7918
|
-
var _templateObject$1W, _templateObject2$1m;
|
|
7919
|
-
function Breadcrumb(props) {
|
|
7920
|
-
return React.createElement(BreadcrumbContainer, null, React.createElement(BreadcrumbList, null, props.title || ''), React.createElement(BreadcrumbList, null, props.subtitle || ''), props.subPart && React.createElement(React.Fragment, null, React.createElement(BreadcrumbList, null, props.subPart)));
|
|
7921
|
-
}
|
|
7922
|
-
var BreadcrumbContainer = /*#__PURE__*/styled.div(_templateObject$1W || (_templateObject$1W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
7923
|
-
var BreadcrumbList = /*#__PURE__*/styled.span(_templateObject2$1m || (_templateObject2$1m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #edebe8;\n font-family: 'Open Sans', sans-serif;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n"])));
|
|
7924
|
-
|
|
7925
|
-
var RouterHeader = function RouterHeader(_ref) {
|
|
7926
|
-
var _ref$breadcrumbTitle = _ref.breadcrumbTitle,
|
|
7927
|
-
breadcrumbTitle = _ref$breadcrumbTitle === void 0 ? 'Clients >' : _ref$breadcrumbTitle,
|
|
7928
|
-
_ref$breadcrumbSubtit = _ref.breadcrumbSubtitle,
|
|
7929
|
-
breadcrumbSubtitle = _ref$breadcrumbSubtit === void 0 ? ' Return' : _ref$breadcrumbSubtit,
|
|
7930
|
-
breadcrumbSubPart = _ref.breadcrumbSubPart;
|
|
7931
|
-
// const [, dispatch] = useAtom(filtersReducerAtom);
|
|
7932
|
-
// const [today, setToday] = usedate();
|
|
7933
|
-
// const maxDate = new Date();
|
|
7934
|
-
return React.createElement(React.Fragment, null, React.createElement(HeaderWrapper, {
|
|
7935
|
-
className: "headerWrap"
|
|
7936
|
-
}, React.createElement(StyledFlex, null, React.createElement("div", null, React.createElement(HeaderTitle, {
|
|
7937
|
-
title: 'Return'
|
|
7938
|
-
}), React.createElement(Breadcrumb, {
|
|
7939
|
-
title: breadcrumbTitle,
|
|
7940
|
-
subtitle: breadcrumbSubtitle,
|
|
7941
|
-
subPart: breadcrumbSubPart
|
|
7942
|
-
})))));
|
|
7943
|
-
};
|
|
7944
|
-
|
|
7945
|
-
var _templateObject$1X, _templateObject2$1n;
|
|
7946
|
-
var Details = function Details() {
|
|
7947
|
-
return React.createElement(DetailsContainer, null, React.createElement(Typo, null, "CUSTOMER RETURN - BJS DEV TEST COMPANY, WS10 8RR"));
|
|
7948
|
-
};
|
|
7949
|
-
var DetailsContainer = /*#__PURE__*/styled.div(_templateObject$1X || (_templateObject$1X = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 10px;\n > svg {\n transform: scale(0.6);\n }\n"])));
|
|
7950
|
-
var Typo = /*#__PURE__*/styled.div(_templateObject2$1n || (_templateObject2$1n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 20px;\n font-style: normal;\n font-weight: 600;\n line-height: 32px; /* 160% */\n text-transform: uppercase;\n margin: 0;\n padding: 0;\n\n @media screen and (max-width: 1220px) {\n font-size: 14px;\n }\n"])));
|
|
7951
|
-
|
|
7952
|
-
var _templateObject$1Y;
|
|
7953
|
-
// import ActionsMenu from './left-side-filters/ActionsMenu';
|
|
7954
|
-
var DetailsFilters = function DetailsFilters() {
|
|
7955
|
-
return React.createElement(Flex$4, null, React.createElement(Details, null));
|
|
7956
|
-
};
|
|
7957
|
-
var Flex$4 = /*#__PURE__*/styled.div(_templateObject$1Y || (_templateObject$1Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 40px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);\n\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n /* z-index: 9999; */\n display: flex;\n padding: 10px;\n flex-direction: row;\n gap: 10px;\n align-self: stretch;\n position: relative;\n margin-bottom: -71px;\n width: 97%;\n margin-left: 21px;\n top: -40px;\n justify-content: space-between;\n"])));
|
|
8328
|
+
var Container$11 = /*#__PURE__*/styled.div(_templateObject$1X || (_templateObject$1X = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
7958
8329
|
|
|
7959
8330
|
function useSystemLogs() {
|
|
7960
8331
|
var ssoToken = getCookie('id_token');
|
|
@@ -8047,11 +8418,17 @@ function useSystemLogs() {
|
|
|
8047
8418
|
return perform;
|
|
8048
8419
|
}
|
|
8049
8420
|
|
|
8050
|
-
var _templateObject$
|
|
8421
|
+
var _templateObject$1Y, _templateObject2$1m, _templateObject3$O, _templateObject4$w;
|
|
8051
8422
|
function OrderView() {
|
|
8423
|
+
notification.config({
|
|
8424
|
+
top: 150
|
|
8425
|
+
});
|
|
8052
8426
|
var _useOrderId = useOrderId(),
|
|
8053
8427
|
orderId = _useOrderId[0],
|
|
8054
8428
|
setOrderId = _useOrderId[1];
|
|
8429
|
+
var _useGsitOrderId = useGsitOrderId(),
|
|
8430
|
+
gsitOrderId = _useGsitOrderId[0],
|
|
8431
|
+
setGsitOrderId = _useGsitOrderId[1];
|
|
8055
8432
|
var splitPath = function splitPath(str) {
|
|
8056
8433
|
var _str$split;
|
|
8057
8434
|
var parts = str == null || (_str$split = str.split('/')) == null ? void 0 : _str$split.filter(function (part) {
|
|
@@ -8065,16 +8442,40 @@ function OrderView() {
|
|
|
8065
8442
|
setOrderDetails = _useOrderDetails[1];
|
|
8066
8443
|
var _usePrevOrderDetails = usePrevOrderDetails(),
|
|
8067
8444
|
setPrevOrderDetails = _usePrevOrderDetails[1];
|
|
8068
|
-
var
|
|
8069
|
-
setLoading =
|
|
8445
|
+
var _useState = useState(false),
|
|
8446
|
+
setLoading = _useState[1];
|
|
8070
8447
|
var _useOrderStaticData = useOrderStaticData(),
|
|
8071
8448
|
setOrderStaticData = _useOrderStaticData[1];
|
|
8072
8449
|
var _useStatusDetails = useStatusDetails(),
|
|
8073
8450
|
setOrderStatus = _useStatusDetails[1];
|
|
8074
8451
|
var _useDepotOptions = useDepotOptions(),
|
|
8075
8452
|
setDepotOptions = _useDepotOptions[1];
|
|
8453
|
+
var _useCustomerInfo = useCustomerInfo(),
|
|
8454
|
+
setCustomerInfo = _useCustomerInfo[1];
|
|
8076
8455
|
var location = useLocation();
|
|
8077
8456
|
var paths = splitPath(location.pathname);
|
|
8457
|
+
var _useLocationOptions = useLocationOptions(),
|
|
8458
|
+
setLocationOptions = _useLocationOptions[1];
|
|
8459
|
+
var _useApiCalling = useApiCalling(),
|
|
8460
|
+
apiCalling = _useApiCalling[0];
|
|
8461
|
+
var _useOrderProductsReso = useOrderProductsResources(),
|
|
8462
|
+
orderResources = _useOrderProductsReso[0],
|
|
8463
|
+
setOrderResources = _useOrderProductsReso[1];
|
|
8464
|
+
var _useOrderProductsTool = useOrderProductsToolbox(),
|
|
8465
|
+
orderToolbox = _useOrderProductsTool[0],
|
|
8466
|
+
setOrderToolbox = _useOrderProductsTool[1];
|
|
8467
|
+
var _useGsitCUstomerId = useGsitCUstomerId(),
|
|
8468
|
+
GsitCUstomerId = _useGsitCUstomerId[0],
|
|
8469
|
+
setGsitCUstomerId = _useGsitCUstomerId[1];
|
|
8470
|
+
var _useOrderProductId = useOrderProductId(),
|
|
8471
|
+
setOrderProductId = _useOrderProductId[1];
|
|
8472
|
+
var _useCUstomerId = useCUstomerId(),
|
|
8473
|
+
setCUstomerId = _useCUstomerId[1];
|
|
8474
|
+
var _useRouteId = useRouteId(),
|
|
8475
|
+
setRouteId = _useRouteId[1];
|
|
8476
|
+
var _useLiveRecalling = useLiveRecalling(),
|
|
8477
|
+
liveRecalling = _useLiveRecalling[0];
|
|
8478
|
+
var systemLogsData = useSystemLogs();
|
|
8078
8479
|
var _useApiHook = useApiHook({
|
|
8079
8480
|
endpoint: "orders/" + orderId,
|
|
8080
8481
|
method: 'GET',
|
|
@@ -8082,7 +8483,7 @@ function OrderView() {
|
|
|
8082
8483
|
}),
|
|
8083
8484
|
fetchedData = _useApiHook.data,
|
|
8084
8485
|
loading = _useApiHook.loading,
|
|
8085
|
-
|
|
8486
|
+
orderUpdate = _useApiHook.setShouldPerformAction;
|
|
8086
8487
|
var _useApiHook2 = useApiHook({
|
|
8087
8488
|
endpoint: "/orders/getStaticData/all/",
|
|
8088
8489
|
method: 'GET'
|
|
@@ -8097,23 +8498,39 @@ function OrderView() {
|
|
|
8097
8498
|
}),
|
|
8098
8499
|
fetchedStatusData = _useApiHook3.data,
|
|
8099
8500
|
statusDataLoading = _useApiHook3.loading,
|
|
8100
|
-
|
|
8501
|
+
setLivePerformAction = _useApiHook3.setShouldPerformAction;
|
|
8101
8502
|
var _useApiHook4 = useApiHook({
|
|
8102
8503
|
endpoint: "/depot/",
|
|
8103
|
-
method: 'GET'
|
|
8504
|
+
method: 'GET',
|
|
8505
|
+
filters: [{
|
|
8506
|
+
field: 'visibility',
|
|
8507
|
+
op: '=',
|
|
8508
|
+
value: true
|
|
8509
|
+
}]
|
|
8104
8510
|
}),
|
|
8105
8511
|
fetchedDepotData = _useApiHook4.data,
|
|
8106
8512
|
depotDataLoading = _useApiHook4.loading;
|
|
8107
8513
|
useEffect(function () {
|
|
8108
8514
|
if (orderId) {
|
|
8109
|
-
|
|
8110
|
-
|
|
8515
|
+
orderUpdate(true);
|
|
8516
|
+
liveRecalling ? setLivePerformAction(false) : setLivePerformAction(true);
|
|
8111
8517
|
}
|
|
8112
|
-
}, [orderId]);
|
|
8518
|
+
}, [orderId, liveRecalling]);
|
|
8519
|
+
useEffect(function () {
|
|
8520
|
+
if (apiCalling) {
|
|
8521
|
+
orderUpdate(true);
|
|
8522
|
+
} else {
|
|
8523
|
+
orderUpdate(false);
|
|
8524
|
+
}
|
|
8525
|
+
}, [apiCalling]);
|
|
8113
8526
|
useEffect(function () {
|
|
8114
8527
|
if (paths.length > 1) {
|
|
8115
8528
|
setOrderId(paths[1]);
|
|
8116
8529
|
}
|
|
8530
|
+
// for local
|
|
8531
|
+
// if (paths.length >= 0) {
|
|
8532
|
+
// setOrderId(paths[0]);
|
|
8533
|
+
// }
|
|
8117
8534
|
}, [paths]);
|
|
8118
8535
|
useEffect(function () {
|
|
8119
8536
|
setLoading(staticDataLoading);
|
|
@@ -8125,8 +8542,20 @@ function OrderView() {
|
|
|
8125
8542
|
useEffect(function () {
|
|
8126
8543
|
setLoading(loading);
|
|
8127
8544
|
if (fetchedData && fetchedData.data) {
|
|
8545
|
+
var _requiredData$, _requiredData$2, _requiredData$3, _requiredData$4, _requiredData$5, _requiredData$6;
|
|
8128
8546
|
var requiredData = fetchedData == null ? void 0 : fetchedData.data;
|
|
8129
8547
|
setOrderDetails(requiredData[0]);
|
|
8548
|
+
//@ts-ignore
|
|
8549
|
+
setCUstomerId((_requiredData$ = requiredData[0]) == null ? void 0 : _requiredData$.customer_id);
|
|
8550
|
+
setRouteId((_requiredData$2 = requiredData[0]) == null || (_requiredData$2 = _requiredData$2.order_routes) == null ? void 0 : _requiredData$2.route_id);
|
|
8551
|
+
//@ts-ignore
|
|
8552
|
+
setGsitOrderId((_requiredData$3 = requiredData[0]) == null ? void 0 : _requiredData$3.gsit_order_id);
|
|
8553
|
+
//@ts-ignore
|
|
8554
|
+
setOrderProductId((_requiredData$4 = requiredData[0]) == null ? void 0 : _requiredData$4.id);
|
|
8555
|
+
setCustomerInfo({
|
|
8556
|
+
recipient_name: (_requiredData$5 = requiredData[0]) == null || (_requiredData$5 = _requiredData$5.order_recipient) == null ? void 0 : _requiredData$5.recipient_name,
|
|
8557
|
+
postcode: (_requiredData$6 = requiredData[0]) == null || (_requiredData$6 = _requiredData$6.order_recipient) == null ? void 0 : _requiredData$6.postcode
|
|
8558
|
+
});
|
|
8130
8559
|
setPrevOrderDetails(requiredData[0]);
|
|
8131
8560
|
}
|
|
8132
8561
|
}, [loading]);
|
|
@@ -8134,13 +8563,14 @@ function OrderView() {
|
|
|
8134
8563
|
setLoading(statusDataLoading);
|
|
8135
8564
|
if (fetchedStatusData && fetchedStatusData.data) {
|
|
8136
8565
|
var requiredData = fetchedStatusData == null ? void 0 : fetchedStatusData.data;
|
|
8137
|
-
if (requiredData
|
|
8566
|
+
if (requiredData) {
|
|
8138
8567
|
setOrderStatus(requiredData);
|
|
8139
|
-
} else {
|
|
8140
|
-
setOrderStatus(null);
|
|
8141
8568
|
}
|
|
8142
8569
|
}
|
|
8143
|
-
|
|
8570
|
+
return function () {
|
|
8571
|
+
setOrderId(null);
|
|
8572
|
+
};
|
|
8573
|
+
}, [statusDataLoading, fetchedStatusData]);
|
|
8144
8574
|
useEffect(function () {
|
|
8145
8575
|
setLoading(depotDataLoading);
|
|
8146
8576
|
if (fetchedDepotData && fetchedDepotData.data) {
|
|
@@ -8157,9 +8587,90 @@ function OrderView() {
|
|
|
8157
8587
|
setDepotOptions([]);
|
|
8158
8588
|
}
|
|
8159
8589
|
}
|
|
8590
|
+
return function () {
|
|
8591
|
+
setOrderId(null);
|
|
8592
|
+
};
|
|
8160
8593
|
}, [depotDataLoading]);
|
|
8594
|
+
// Order resources
|
|
8595
|
+
var _useApiHook5 = useApiHook({
|
|
8596
|
+
endpoint: "/orders/" + orderId + "/order_resources/",
|
|
8597
|
+
method: 'GET',
|
|
8598
|
+
performAction: false
|
|
8599
|
+
}),
|
|
8600
|
+
fetchedResourcesData = _useApiHook5.data,
|
|
8601
|
+
setActions = _useApiHook5.setShouldPerformAction;
|
|
8602
|
+
useEffect(function () {
|
|
8603
|
+
if (orderId) {
|
|
8604
|
+
setActions(true);
|
|
8605
|
+
}
|
|
8606
|
+
}, [orderId, setActions]);
|
|
8607
|
+
useEffect(function () {
|
|
8608
|
+
if (orderId) {
|
|
8609
|
+
setOrderResources(fetchedResourcesData);
|
|
8610
|
+
}
|
|
8611
|
+
return function () {
|
|
8612
|
+
setOrderId(null);
|
|
8613
|
+
};
|
|
8614
|
+
}, [fetchedResourcesData, orderResources, setOrderResources]);
|
|
8615
|
+
// Toolbox resources
|
|
8616
|
+
var _useApiHook6 = useApiHook({
|
|
8617
|
+
endpoint: "/orders/" + orderId + "/toolbox_resources/",
|
|
8618
|
+
method: 'GET',
|
|
8619
|
+
performAction: false
|
|
8620
|
+
}),
|
|
8621
|
+
fetchedToolboxData = _useApiHook6.data,
|
|
8622
|
+
setAction = _useApiHook6.setShouldPerformAction;
|
|
8623
|
+
useEffect(function () {
|
|
8624
|
+
if (orderId) {
|
|
8625
|
+
setAction(true);
|
|
8626
|
+
}
|
|
8627
|
+
}, [orderId, setAction]);
|
|
8628
|
+
useEffect(function () {
|
|
8629
|
+
if (orderId) {
|
|
8630
|
+
setOrderToolbox(fetchedToolboxData);
|
|
8631
|
+
}
|
|
8632
|
+
return function () {
|
|
8633
|
+
setOrderId(undefined);
|
|
8634
|
+
};
|
|
8635
|
+
}, [fetchedToolboxData, orderToolbox, setOrderToolbox]);
|
|
8636
|
+
useEffect(function () {
|
|
8637
|
+
if (GsitCUstomerId != null && GsitCUstomerId.id) {
|
|
8638
|
+
shouldFetch(true);
|
|
8639
|
+
} else {
|
|
8640
|
+
shouldFetch(false);
|
|
8641
|
+
}
|
|
8642
|
+
}, [GsitCUstomerId]);
|
|
8643
|
+
useEffect(function () {
|
|
8644
|
+
return function () {
|
|
8645
|
+
setGsitCUstomerId(function (prev) {
|
|
8646
|
+
return _extends({}, prev, {
|
|
8647
|
+
id: undefined
|
|
8648
|
+
});
|
|
8649
|
+
});
|
|
8650
|
+
};
|
|
8651
|
+
}, []);
|
|
8652
|
+
var _useApiHook7 = useApiHook({
|
|
8653
|
+
endpoint: "/return_locations/?customer_id=" + (GsitCUstomerId == null ? void 0 : GsitCUstomerId.id),
|
|
8654
|
+
method: 'GET',
|
|
8655
|
+
performAction: false
|
|
8656
|
+
}),
|
|
8657
|
+
fetchedLocationData = _useApiHook7.data,
|
|
8658
|
+
dataLoading = _useApiHook7.loading,
|
|
8659
|
+
shouldFetch = _useApiHook7.setShouldPerformAction;
|
|
8660
|
+
useEffect(function () {
|
|
8661
|
+
if (fetchedLocationData && fetchedLocationData != null && fetchedLocationData.data) {
|
|
8662
|
+
var _fetchedLocationData$;
|
|
8663
|
+
var locationOptions = fetchedLocationData == null || (_fetchedLocationData$ = fetchedLocationData.data) == null ? void 0 : _fetchedLocationData$.map(function (item) {
|
|
8664
|
+
return {
|
|
8665
|
+
label: (item == null ? void 0 : item.location_name) + ', ' + (item == null ? void 0 : item.postcode),
|
|
8666
|
+
value: item == null ? void 0 : item.token,
|
|
8667
|
+
is_default: (item == null ? void 0 : item.is_default) === 'True' ? true : false
|
|
8668
|
+
};
|
|
8669
|
+
});
|
|
8670
|
+
setLocationOptions(locationOptions);
|
|
8671
|
+
}
|
|
8672
|
+
}, [dataLoading]);
|
|
8161
8673
|
var gsitId = orderDetails == null ? void 0 : orderDetails.gsit_order_id;
|
|
8162
|
-
var systemLogsData = useSystemLogs();
|
|
8163
8674
|
var _useOrderProductSyste = useOrderProductSystemLogs(),
|
|
8164
8675
|
setSystemLogsEvents = _useOrderProductSyste[1];
|
|
8165
8676
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
@@ -8184,36 +8695,26 @@ function OrderView() {
|
|
|
8184
8695
|
};
|
|
8185
8696
|
}();
|
|
8186
8697
|
useEffect(function () {
|
|
8187
|
-
if (
|
|
8698
|
+
if (gsitOrderId) {
|
|
8188
8699
|
fetchReminderData();
|
|
8189
|
-
console.log('Setting filters for gsitId:', gsitId);
|
|
8190
8700
|
}
|
|
8701
|
+
return function () {
|
|
8702
|
+
setGsitOrderId(undefined);
|
|
8703
|
+
};
|
|
8191
8704
|
}, [gsitId]);
|
|
8192
|
-
return React.createElement(React.
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
}
|
|
8202
|
-
var Section$1 = /*#__PURE__*/styled.div(_templateObject$1Z || (_templateObject$1Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n background: #ffffff;\n // padding: 15px;\n flex-direction: column;\n gap: 14px;\n border-radius: 12px;\n box-shadow: 0px 4px 30px 0px rgba(46, 45, 116, 0.05);\n border: 1px solid #e0e0e0;\n padding: 12px;\n"])));
|
|
8203
|
-
/* // `; */
|
|
8204
|
-
var DashBoardWrapper = /*#__PURE__*/styled.section(_templateObject2$1o || (_templateObject2$1o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .Tableconatiner {\n border-radius: 12px;\n /* background: #fff; */\n /* box-shadow: -2px 0px 12px 0px rgba(56, 71, 109, 0.1); */\n display: block;\n padding: 15px 0px;\n }\n .headerWrap,\n .tableData,\n .styleCovered {\n transition: all ease 0.5s;\n }\n &.stickyTableHead {\n h2 {\n font-size: 21px;\n }\n .headerWrap {\n height: 84px;\n padding: 10px;\n border-radius: 0px 0px 15px 15px;\n > div {\n position: relative;\n z-index: 10;\n }\n }\n .styleCovered {\n margin-top: -32px;\n width: 67%;\n float: right;\n gap: 5px;\n padding-right: 11px;\n\n li {\n padding: 4px 10px 5px 5px;\n gap: 5px;\n .svgCover {\n width: 30px;\n height: 30px;\n svg {\n height: auto;\n width: 58%;\n }\n }\n .countDigit {\n font-size: 19px;\n }\n }\n .countMess {\n font-size: 13px;\n }\n }\n .dmsBulkFilter {\n min-height: unset;\n gap: 4px;\n > div {\n padding: 4px 12px;\n label {\n font-size: 11px;\n }\n }\n }\n\n .StyledFilterList {\n gap: 4px;\n li {\n height: 29px;\n padding: 3px 8px;\n gap: 4px;\n .StyledFilterBtnIcon {\n width: 20px;\n height: 20px;\n svh {\n width: 10px;\n height: auto;\n }\n }\n .StyledFilterBtnLabel {\n font-size: 13px;\n }\n }\n }\n .StyledFilterLabel {\n padding-left: 10px;\n span {\n font-size: 13px;\n }\n }\n .cardcontainer.tableData {\n max-height: calc(100vh - 310px);\n min-height: calc(100vh - 310px);\n }\n\n .tableData {\n max-height: calc(100vh - 320px);\n min-height: calc(100vh - 320px);\n\n margin-top: 8px;\n thead {\n position: sticky;\n top: 0;\n z-index: 9;\n th {\n font-size: 13px;\n padding: 2px 15px;\n }\n }\n }\n }\n"])));
|
|
8205
|
-
var NotifyContainer = /*#__PURE__*/styled.div(_templateObject3$M || (_templateObject3$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-left: 18px;\n"])));
|
|
8206
|
-
var MainContainer$b = /*#__PURE__*/styled.div(_templateObject4$u || (_templateObject4$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding-bottom: 30px;\n"])));
|
|
8207
|
-
var SplitLayout$1 = /*#__PURE__*/styled.div(_templateObject5$i || (_templateObject5$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n @media (max-width: 1024px) {\n display: contents;\n }\n"])));
|
|
8208
|
-
var NotesContainer = /*#__PURE__*/styled.div(_templateObject6$d || (_templateObject6$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n"])));
|
|
8209
|
-
var TablesContainer = /*#__PURE__*/styled.div(_templateObject7$b || (_templateObject7$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 15px;\n"])));
|
|
8210
|
-
|
|
8211
|
-
var _templateObject3$N, _templateObject5$j, _templateObject7$c, _templateObject8$7, _templateObject9$4, _templateObject10$3, _templateObject11$2, _templateObject14$2;
|
|
8212
|
-
var CoverPage = /*#__PURE__*/styled.div(_templateObject3$N || (_templateObject3$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n border-radius: 16px;\n border: 1px solid #e3e3e3;\n background: #fff;\n box-shadow: 0px 4px 30px 0px rgba(46, 45, 116, 0.05);\n padding: 20px 20px 20px 20px;\n top: -60px;\n"])));
|
|
8705
|
+
return React.createElement(MainContainer$b, null, React.createElement(Loader, null), React.createElement(GeneralHeader, null), React.createElement(OrderDetails$1, null), React.createElement(ProductsInfo, null), React.createElement(SplitLayout$1, null, React.createElement(NotesContainer, null, React.createElement(Notes, null)), React.createElement(TablesContainer, null, React.createElement(Order, null), React.createElement(Toolbox, null), React.createElement(SystemLogs, null), React.createElement(TomTomLogs, null))), React.createElement(OrderActions, null));
|
|
8706
|
+
}
|
|
8707
|
+
var MainContainer$b = /*#__PURE__*/styled.div(_templateObject$1Y || (_templateObject$1Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding-bottom: 30px;\n"])));
|
|
8708
|
+
var SplitLayout$1 = /*#__PURE__*/styled.div(_templateObject2$1m || (_templateObject2$1m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n @media (max-width: 1024px) {\n display: contents;\n }\n"])));
|
|
8709
|
+
var NotesContainer = /*#__PURE__*/styled.div(_templateObject3$O || (_templateObject3$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n"])));
|
|
8710
|
+
var TablesContainer = /*#__PURE__*/styled.div(_templateObject4$w || (_templateObject4$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 15px;\n"])));
|
|
8711
|
+
|
|
8712
|
+
var _templateObject3$P, _templateObject5$j, _templateObject7$c, _templateObject8$8, _templateObject9$5, _templateObject10$3, _templateObject11$2, _templateObject14$2;
|
|
8713
|
+
var CoverPage = /*#__PURE__*/styled.div(_templateObject3$P || (_templateObject3$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n border-radius: 16px;\n border: 1px solid #e3e3e3;\n background: #fff;\n box-shadow: 0px 4px 30px 0px rgba(46, 45, 116, 0.05);\n padding: 20px 20px 20px 20px;\n top: -60px;\n"])));
|
|
8213
8714
|
var Wrapper$k = /*#__PURE__*/styled.div(_templateObject5$j || (_templateObject5$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 15px;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 15px;\n flex: 1 0 0;\n border-radius: 15px;\n background: #f8fafc;\n"])));
|
|
8214
8715
|
var Label$g = /*#__PURE__*/styled.div(_templateObject7$c || (_templateObject7$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #8e8a85;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
8215
|
-
var FilterRow = /*#__PURE__*/styled.div(_templateObject8$
|
|
8216
|
-
var FilterColumn = /*#__PURE__*/styled.div(_templateObject9$
|
|
8716
|
+
var FilterRow = /*#__PURE__*/styled.div(_templateObject8$8 || (_templateObject8$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 20px;\n align-self: stretch;\n justify-content: space-between;\n"])));
|
|
8717
|
+
var FilterColumn = /*#__PURE__*/styled.div(_templateObject9$5 || (_templateObject9$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 6px;\n align-self: stretch;\n margin: 10px;\n"])));
|
|
8217
8718
|
var RightColumn$1 = /*#__PURE__*/styled.div(_templateObject10$3 || (_templateObject10$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex-direction: row;\n display: flex;\n"])));
|
|
8218
8719
|
var LeftColumn = /*#__PURE__*/styled.div(_templateObject11$2 || (_templateObject11$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex-direction: row;\n display: flex;\n"])));
|
|
8219
8720
|
var ApplyButton = /*#__PURE__*/styled.button(_templateObject14$2 || (_templateObject14$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 15px;\n display: flex;\n padding: 7px 12px;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n font-family: 'Lato', sans-serif;\n background: transparent;\n color: #3a3620;\n border: 1px solid #3a3630;\n cursor: pointer;\n\n &:not(:disabled):hover {\n background: #feba30;\n }\n\n &:disabled {\n background: #ccc;\n cursor: not-allowed;\n opacity: 0.6;\n }\n"])));
|
|
@@ -8313,7 +8814,7 @@ var filtersReducerAtom = /*#__PURE__*/atom(function (get) {
|
|
|
8313
8814
|
return set(filtersStateAtom, filterReducer(get(filtersStateAtom), action));
|
|
8314
8815
|
});
|
|
8315
8816
|
|
|
8316
|
-
var _templateObject$
|
|
8817
|
+
var _templateObject$1Z;
|
|
8317
8818
|
function SelectionFilter() {
|
|
8318
8819
|
var _useCustomerData = useCustomerData(),
|
|
8319
8820
|
customers = _useCustomerData[0];
|
|
@@ -8539,7 +9040,7 @@ function SelectionFilter() {
|
|
|
8539
9040
|
disabled: !isButtonEnabled
|
|
8540
9041
|
}, "Apply"))));
|
|
8541
9042
|
}
|
|
8542
|
-
var StyledAntSelect$5 = /*#__PURE__*/styled(Select)(_templateObject$
|
|
9043
|
+
var StyledAntSelect$5 = /*#__PURE__*/styled(Select)(_templateObject$1Z || (_templateObject$1Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n /* width: 22vw; */\n border-radius: 22px;\n }\n"])));
|
|
8543
9044
|
|
|
8544
9045
|
function HeaderFilter() {
|
|
8545
9046
|
var _useCustomerData = useCustomerData(),
|
|
@@ -8607,20 +9108,20 @@ function HeaderFilter() {
|
|
|
8607
9108
|
return React.createElement(CoverPage, null, React.createElement(SelectionFilter, null));
|
|
8608
9109
|
}
|
|
8609
9110
|
|
|
8610
|
-
var _templateObject$
|
|
9111
|
+
var _templateObject$1_, _templateObject4$x, _templateObject5$k, _templateObject7$d, _templateObject8$9;
|
|
8611
9112
|
//Left side
|
|
8612
|
-
var LeftSideConatiner = /*#__PURE__*/styled.div(_templateObject$
|
|
9113
|
+
var LeftSideConatiner = /*#__PURE__*/styled.div(_templateObject$1_ || (_templateObject$1_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 1px 5px 1px 1.1px;\n align-items: center;\n gap: 10px;\n border-radius: 40px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n background: var(--Flowkit-White, #fff);\n\n .filtercontainer {\n display: flex;\n padding: 8px 8px 8px 4px;\n align-items: center;\n gap: 4px;\n align-self: stretch;\n border-radius: 20px 0px 0px 20px;\n border-right: 1px solid rgba(0, 0, 0, 0.04);\n background: var(--BjsColor-Bg-F0F2F2, #f0f2f2);\n\n .filtericon {\n display: flex;\n padding: 7px 0px 5px 5px;\n align-items: flex-start;\n gap: 10px;\n border-radius: 30px;\n }\n .textcont {\n color: #758588;\n text-align: center;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n }\n }\n .datefilter {\n display: flex;\n height: 36px;\n padding: 6px 8px;\n justify-content: center;\n align-items: center;\n gap: 2px;\n border-radius: 20px;\n border: 1px solid #edebe8;\n\n .dateiconcontainer {\n display: flex;\n width: 24px;\n height: 24px;\n padding: 5px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n border: 1px solid var(--tonal-brown-101, #e2e0db);\n background: #f1f5f6;\n }\n .datetext {\n color: #6a7378;\n\n /* body/captions */\n font-family: 'Lato';\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 123.077% */\n }\n }\n"])));
|
|
8613
9114
|
//
|
|
8614
|
-
var StyledFiter = /*#__PURE__*/styled.div(_templateObject4$
|
|
9115
|
+
var StyledFiter = /*#__PURE__*/styled.div(_templateObject4$x || (_templateObject4$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
|
|
8615
9116
|
var StyledFIlterELements = /*#__PURE__*/styled.div(_templateObject5$k || (_templateObject5$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 0;\n gap: 10px;\n align-items: center;\n"])));
|
|
8616
9117
|
var Text$7 = /*#__PURE__*/styled.div(_templateObject7$d || (_templateObject7$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #232d42;\n font-style: normal;\n line-height: 175%;\n position: relative;\n padding-right: 10px;\n text-transform: uppercase;\n font-size: 20px;\n font-style: normal;\n font-weight: 900;\n /* &:after{\n content: '';\n width: 1px;\n height: 100%;\n background: rgba(58, 54, 48, 0.20);\n position: absolute;\n right: 0;\n top: 0;\n } */\n"])));
|
|
8617
9118
|
// Right side filter
|
|
8618
|
-
var StyledTableFilter = /*#__PURE__*/styled.div(_templateObject8$
|
|
9119
|
+
var StyledTableFilter = /*#__PURE__*/styled.div(_templateObject8$9 || (_templateObject8$9 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
8619
9120
|
|
|
8620
|
-
var _templateObject2$
|
|
8621
|
-
var StyledBulkItem = /*#__PURE__*/styled.div(_templateObject2$
|
|
9121
|
+
var _templateObject2$1n;
|
|
9122
|
+
var StyledBulkItem = /*#__PURE__*/styled.div(_templateObject2$1n || (_templateObject2$1n = /*#__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"])));
|
|
8622
9123
|
|
|
8623
|
-
var _templateObject$
|
|
9124
|
+
var _templateObject$1$, _templateObject2$1o;
|
|
8624
9125
|
var SearchType = function SearchType() {
|
|
8625
9126
|
var _useState = useState(''),
|
|
8626
9127
|
searchText = _useState[0],
|
|
@@ -8635,8 +9136,8 @@ var SearchType = function SearchType() {
|
|
|
8635
9136
|
onChange: handleInputChange
|
|
8636
9137
|
}));
|
|
8637
9138
|
};
|
|
8638
|
-
var Search = /*#__PURE__*/styled.div(_templateObject$
|
|
8639
|
-
var SearchInput = /*#__PURE__*/styled.input(_templateObject2$
|
|
9139
|
+
var Search = /*#__PURE__*/styled.div(_templateObject$1$ || (_templateObject$1$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n svg {\n position: absolute;\n left: 12px;\n top: 50%;\n transform: translateY(-50%);\n }\n"])));
|
|
9140
|
+
var SearchInput = /*#__PURE__*/styled.input(_templateObject2$1o || (_templateObject2$1o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n border: 1px solid #e0e2e7;\n background: #fff;\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n display: flex;\n padding: 8.5px 12px;\n align-items: center;\n gap: 8px;\n align-self: stretch;\n padding-left: 39px;\n"])));
|
|
8640
9141
|
|
|
8641
9142
|
function DownloadIcon() {
|
|
8642
9143
|
return React.createElement("svg", {
|
|
@@ -8656,7 +9157,7 @@ function DownloadIcon() {
|
|
|
8656
9157
|
}));
|
|
8657
9158
|
}
|
|
8658
9159
|
|
|
8659
|
-
var _templateObject$
|
|
9160
|
+
var _templateObject$20, _templateObject2$1p, _templateObject3$Q, _templateObject4$y, _templateObject5$l;
|
|
8660
9161
|
var RightFilters = function RightFilters() {
|
|
8661
9162
|
var _useAtom = useAtom(countReducerAtom),
|
|
8662
9163
|
dispatch = _useAtom[1];
|
|
@@ -8671,10 +9172,10 @@ var RightFilters = function RightFilters() {
|
|
|
8671
9172
|
disabled: (selectedReturnOrder == null ? void 0 : selectedReturnOrder.length) === 0
|
|
8672
9173
|
}, "Create Return"), React.createElement(StyledBulkItem, null, React.createElement(SearchType, null)), React.createElement(IconConatiner, null, React.createElement(Mid, null, React.createElement(IconText, null, "Export"), React.createElement(DownloadIcon, null))));
|
|
8673
9174
|
};
|
|
8674
|
-
var Container$12 = /*#__PURE__*/styled.div(_templateObject$
|
|
8675
|
-
var Mid = /*#__PURE__*/styled.div(_templateObject2$
|
|
8676
|
-
var ButtonText = /*#__PURE__*/styled.button(_templateObject3$
|
|
8677
|
-
var IconConatiner = /*#__PURE__*/styled.div(_templateObject4$
|
|
9175
|
+
var Container$12 = /*#__PURE__*/styled.div(_templateObject$20 || (_templateObject$20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n /* align-items: flex-start; */\n gap: 16px;\n align-items: center;\n"])));
|
|
9176
|
+
var Mid = /*#__PURE__*/styled.div(_templateObject2$1p || (_templateObject2$1p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 4px 10px;\n align-items: center;\n gap: 8px;\n align-self: stretch;\n border-radius: 15px 0px 0px 15px;\n"])));
|
|
9177
|
+
var ButtonText = /*#__PURE__*/styled.button(_templateObject3$Q || (_templateObject3$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n\n display: flex;\n padding: 7px 12px;\n justify-content: center;\n align-items: center;\n gap: 2px;\n border-radius: 15px;\n background: #3a3630;\n font-family: 'Lato';\n cursor: pointer;\n border: none;\n\n &:disabled {\n border-radius: 15px;\n background: rgba(136, 128, 117, 0.35);\n color: #888075;\n cursor: not-allowed;\n }\n"])));
|
|
9178
|
+
var IconConatiner = /*#__PURE__*/styled.div(_templateObject4$y || (_templateObject4$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* display: flex;\n height: 34px;\n padding: 4px 10px; \n align-items: flex-start;\n border-radius: 8px 8px 8px 8px; */\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n background: #f0f2f2;\n border: 1px solid #e2e0db;\n display: flex;\n padding: 7px 12px;\n justify-content: center;\n align-items: center;\n gap: 2px;\n border-radius: 15px;\n height: 34px;\n"])));
|
|
8678
9179
|
var IconText = /*#__PURE__*/styled.div(_templateObject5$l || (_templateObject5$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n text-align: center;\n\n /* body/captions */\n font-family: 'Lato';\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n"])));
|
|
8679
9180
|
|
|
8680
9181
|
var ReturnFilter = function ReturnFilter() {
|
|
@@ -8683,12 +9184,12 @@ var ReturnFilter = function ReturnFilter() {
|
|
|
8683
9184
|
return React.createElement(React.Fragment, null, React.createElement(StyledFiter, null, React.createElement(Text$7, null, " ", clientName), React.createElement(StyledFIlterELements, null, React.createElement(StyledTableFilter, null)), React.createElement(RightFilters, null)));
|
|
8684
9185
|
};
|
|
8685
9186
|
|
|
8686
|
-
var _templateObject$
|
|
8687
|
-
var ColumStyle = /*#__PURE__*/styled.div(_templateObject$
|
|
8688
|
-
var GreyBox = /*#__PURE__*/styled.div(_templateObject2$
|
|
9187
|
+
var _templateObject$21, _templateObject2$1q, _templateObject3$R, _templateObject4$z, _templateObject34;
|
|
9188
|
+
var ColumStyle = /*#__PURE__*/styled.div(_templateObject$21 || (_templateObject$21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 67px;\n align-items: center;\n gap: 7px;\n"])));
|
|
9189
|
+
var GreyBox = /*#__PURE__*/styled.div(_templateObject2$1q || (_templateObject2$1q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 3px 12px;\n align-items: flex-start;\n gap: 24px;\n border-radius: 6px;\n background: rgba(153, 153, 153, 0.1);\n"])));
|
|
8689
9190
|
// Styled components
|
|
8690
|
-
var StyledTableWrapper$1 = /*#__PURE__*/styled.div(_templateObject3$
|
|
8691
|
-
var StyledTable$
|
|
9191
|
+
var StyledTableWrapper$1 = /*#__PURE__*/styled.div(_templateObject3$R || (_templateObject3$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: auto;\n max-height: calc(100vh - 396px);\n scrollbar-width: none;\n /* box-shadow: 0px 0px 30px 6px rgba(46, 45, 116, 0.05); */\n &::-webkit-scrollbar {\n width: 5px;\n border-radius: 100px;\n height: 5px;\n }\n\n &::-webkit-scrollbar-track {\n background: #777;\n border-radius: 100px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #7b61ff;\n border-radius: 100px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: #7b61ff;\n }\n"])));
|
|
9192
|
+
var StyledTable$3 = /*#__PURE__*/styled.table(_templateObject4$z || (_templateObject4$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-spacing: 0 10px;\n width: 100%;\n /* min-width: 1600px; */\n thead {\n tr {\n border-radius: 40px;\n border-spacing: 0 10px;\n .emailInvoiceCheckbox {\n padding-right: 0px;\n width: 0;\n > div {\n width: fit-content;\n }\n }\n .emailInvoiceNo {\n padding-left: 0px;\n }\n .emailInvoiceShare {\n width: 100px;\n }\n th {\n color: #3a3630;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n padding: 11px 15px;\n background: #f0f2f2;\n border-right: none;\n border-left: none;\n text-align: left;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-width: 1px 0;\n &:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n &:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n }\n }\n }\n tbody {\n tr {\n td {\n color: #3a3630;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n padding: 12px 15px;\n background: #fff;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-right: none;\n border-left: none;\n\n .shareIconContainer {\n display: flex;\n width: 24px;\n height: 24px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 10px;\n flex-shrink: 0;\n border-radius: 15px;\n background: #edebe8;\n cursor: pointer;\n }\n .statuscontainer {\n display: flex;\n padding: 6px 10px;\n justify-content: center;\n align-items: center;\n gap: 5px;\n flex: 1 0 0;\n border-radius: 22px;\n background: rgba(41, 204, 106, 0.15);\n }\n }\n &:nth-child(even) td {\n background: #f6fbff;\n }\n td:first-child {\n border-radius: 100px 0 0 100px;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n td:last-child {\n border-radius: 0px 100px 100px 0;\n border-right: 1px solid rgba(0, 0, 0, 0.08);\n }\n .flex {\n display: flex;\n flex-direction: row;\n gap: 5px;\n height: 29px;\n align-items: center;\n }\n\n &.insideTable {\n td {\n border-radius: 0;\n border: none;\n &:last-child {\n border-radius: 0;\n border-right: none;\n }\n }\n table {\n border-spacing: 0;\n width: 100%;\n border-radius: 5px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n overflow: hidden;\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n thead {\n tr {\n border-bottom: none;\n th {\n padding: 14px 20px;\n text-align: left;\n border-top: 0;\n border-right: 0;\n border-left: 0;\n background: #f8fafc;\n\n &:first-child {\n border-radius: 0;\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n border-top-left-radius: 15px;\n }\n &:last-child {\n border-radius: 0;\n }\n }\n }\n }\n tbody {\n tr {\n td {\n padding: 14px 20px;\n text-align: left;\n border-bottom: 1px solid rgba(58, 54, 48, 0.15);\n background: #fff;\n > svg {\n transform: scale(1.5);\n background-color: #edebe8;\n border-radius: 20px;\n padding: 5px;\n }\n &:last-child {\n border-radius: 0;\n border-right: none;\n }\n }\n }\n }\n }\n }\n }\n }\n .actions {\n display: flex;\n align-items: center;\n gap: 20px;\n > svg {\n transform: scale(1.5);\n background-color: #edebe8;\n border-radius: 20px;\n padding: 5px;\n }\n\n .close-icon {\n transform: scale(1.3);\n background-color: transparent;\n border-radius: 0;\n padding: 0;\n }\n }\n"])));
|
|
8692
9193
|
var EmptyDataContainer = /*#__PURE__*/styled.div(_templateObject34 || (_templateObject34 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
|
|
8693
9194
|
|
|
8694
9195
|
var PrinterIcon = function PrinterIcon() {
|
|
@@ -8857,7 +9358,7 @@ var optionsForReturnPrint = [{
|
|
|
8857
9358
|
label: 'Print Return Labels'
|
|
8858
9359
|
}];
|
|
8859
9360
|
|
|
8860
|
-
var _templateObject$
|
|
9361
|
+
var _templateObject$22, _templateObject2$1r;
|
|
8861
9362
|
// import { PrintIconMap } from '../utils';
|
|
8862
9363
|
// import { optionsPrint } from '../fakeData';
|
|
8863
9364
|
// import { PrintData } from '../interface';
|
|
@@ -8872,8 +9373,8 @@ var PrintDropDownReturn = function PrintDropDownReturn() {
|
|
|
8872
9373
|
}, IconComponent && React.createElement(IconComponent, null), " ", item.label);
|
|
8873
9374
|
}));
|
|
8874
9375
|
};
|
|
8875
|
-
var OptionsList = /*#__PURE__*/styled.ul(_templateObject$
|
|
8876
|
-
var OptionsListLi = /*#__PURE__*/styled.li(_templateObject2$
|
|
9376
|
+
var OptionsList = /*#__PURE__*/styled.ul(_templateObject$22 || (_templateObject$22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n list-style: none;\n box-sizing: border-box;\n border-radius: 6px;\n border: 1px solid rgba(224, 226, 231, 0.5);\n background: #fff;\n box-shadow: 0px 4px 30px 0px rgba(46, 45, 116, 0.05);\n width: 177px;\n padding: 5px 1px 3px 1px;\n position: absolute;\n top: 26px;\n right: 0;\n z-index: 99;\n min-width: 194px;\n"])));
|
|
9377
|
+
var OptionsListLi = /*#__PURE__*/styled.li(_templateObject2$1r || (_templateObject2$1r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom: 1px solid #f0f2f2;\n padding: 8px 10px;\n display: flex;\n gap: 12px;\n align-items: center;\n font-size: 13px;\n cursor: pointer;\n &:last-child {\n border: none;\n }\n"])));
|
|
8877
9378
|
|
|
8878
9379
|
var ReturnOrderTable = function ReturnOrderTable() {
|
|
8879
9380
|
var _useAtom = useAtom(filtersReducerAtom),
|
|
@@ -9059,7 +9560,7 @@ var ReturnOrderTable = function ReturnOrderTable() {
|
|
|
9059
9560
|
var mergedPayload = Object.values(groupedPayload);
|
|
9060
9561
|
setGrouped(mergedPayload);
|
|
9061
9562
|
}, [newpayload]);
|
|
9062
|
-
return React.createElement(React.Fragment, null, React.createElement(StyledTableWrapper, null, React.createElement(StyledTable, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
|
|
9563
|
+
return React.createElement(React.Fragment, null, React.createElement(StyledTableWrapper, null, React.createElement(StyledTable$2, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
|
|
9063
9564
|
className: "emailInvoiceCheckbox"
|
|
9064
9565
|
}, React.createElement(Checkbox$1, {
|
|
9065
9566
|
checked: selectAll,
|
|
@@ -9119,12 +9620,12 @@ var ReturnOrderTable = function ReturnOrderTable() {
|
|
|
9119
9620
|
})))));
|
|
9120
9621
|
};
|
|
9121
9622
|
|
|
9122
|
-
var _templateObject$
|
|
9623
|
+
var _templateObject$23, _templateObject2$1s, _templateObject3$S, _templateObject4$A;
|
|
9123
9624
|
var DefetcDetails = function DefetcDetails() {
|
|
9124
9625
|
var handleSelectChange = function handleSelectChange() {
|
|
9125
9626
|
console.log('Option selected');
|
|
9126
9627
|
};
|
|
9127
|
-
return React.createElement(Container$13, null, React.createElement(Flex$
|
|
9628
|
+
return React.createElement(Container$13, null, React.createElement(Flex$4, null, React.createElement(LabelWrapper, null, React.createElement(Label$h, {
|
|
9128
9629
|
label: "What is the defect"
|
|
9129
9630
|
}), React.createElement(StyledAntSelect$6, {
|
|
9130
9631
|
options: TaskType,
|
|
@@ -9138,14 +9639,14 @@ var DefetcDetails = function DefetcDetails() {
|
|
|
9138
9639
|
placeholder: "Select Category",
|
|
9139
9640
|
onChange: handleSelectChange,
|
|
9140
9641
|
selectWrapperClass: "rounded"
|
|
9141
|
-
}))), React.createElement(Flex$
|
|
9642
|
+
}))), React.createElement(Flex$4, null, React.createElement(LabelWrapper, null, React.createElement(Label$h, {
|
|
9142
9643
|
label: "Where is the primary defect located?"
|
|
9143
9644
|
}), React.createElement(StyledAntSelect$6, {
|
|
9144
9645
|
options: TaskType,
|
|
9145
9646
|
placeholder: "Select located",
|
|
9146
9647
|
onChange: handleSelectChange,
|
|
9147
9648
|
selectWrapperClass: "rounded"
|
|
9148
|
-
}))), React.createElement(Flex$
|
|
9649
|
+
}))), React.createElement(Flex$4, null, React.createElement(LabelWrapper, null, React.createElement(Label$h, {
|
|
9149
9650
|
label: "Where is the secondary defect located?"
|
|
9150
9651
|
}), React.createElement(StyledAntSelect$6, {
|
|
9151
9652
|
options: TaskType,
|
|
@@ -9161,12 +9662,12 @@ var DefetcDetails = function DefetcDetails() {
|
|
|
9161
9662
|
selectWrapperClass: "rounded"
|
|
9162
9663
|
}))));
|
|
9163
9664
|
};
|
|
9164
|
-
var StyledAntSelect$6 = /*#__PURE__*/styled(AntSelect)(_templateObject$
|
|
9165
|
-
var Container$13 = /*#__PURE__*/styled.div(_templateObject2$
|
|
9166
|
-
var Flex$
|
|
9167
|
-
var LabelWrapper = /*#__PURE__*/styled.div(_templateObject4$
|
|
9665
|
+
var StyledAntSelect$6 = /*#__PURE__*/styled(AntSelect)(_templateObject$23 || (_templateObject$23 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
|
|
9666
|
+
var Container$13 = /*#__PURE__*/styled.div(_templateObject2$1s || (_templateObject2$1s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n border: 1px solid #ccc;\n border-radius: 15px;\n padding: 10px;\n white-space: nowrap;\n"])));
|
|
9667
|
+
var Flex$4 = /*#__PURE__*/styled.div(_templateObject3$S || (_templateObject3$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n\n @media (max-width: 768px) {\n flex-direction: column;\n }\n"])));
|
|
9668
|
+
var LabelWrapper = /*#__PURE__*/styled.div(_templateObject4$A || (_templateObject4$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
9168
9669
|
|
|
9169
|
-
var _templateObject$
|
|
9670
|
+
var _templateObject$24;
|
|
9170
9671
|
var RepackProduct = function RepackProduct() {
|
|
9171
9672
|
var options = [{
|
|
9172
9673
|
value: 'bjsCouriers',
|
|
@@ -9226,9 +9727,9 @@ var RepackProduct = function RepackProduct() {
|
|
|
9226
9727
|
}
|
|
9227
9728
|
})));
|
|
9228
9729
|
};
|
|
9229
|
-
var GLobalPopupContent$3 = /*#__PURE__*/styled.div(_templateObject$
|
|
9730
|
+
var GLobalPopupContent$3 = /*#__PURE__*/styled.div(_templateObject$24 || (_templateObject$24 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
9230
9731
|
|
|
9231
|
-
var _templateObject$
|
|
9732
|
+
var _templateObject$25, _templateObject2$1t, _templateObject3$T, _templateObject4$B, _templateObject5$m, _templateObject6$e;
|
|
9232
9733
|
var RepackDetails = function RepackDetails() {
|
|
9233
9734
|
var _useState = useState(false),
|
|
9234
9735
|
isAdditionalBoxChecked = _useState[0],
|
|
@@ -9239,28 +9740,28 @@ var RepackDetails = function RepackDetails() {
|
|
|
9239
9740
|
var handleSelectChange = function handleSelectChange() {
|
|
9240
9741
|
console.log('Option selected');
|
|
9241
9742
|
};
|
|
9242
|
-
return React.createElement(React.Fragment, null, React.createElement(Container$14, null, React.createElement(Flex$
|
|
9743
|
+
return React.createElement(React.Fragment, null, React.createElement(Container$14, null, React.createElement(Flex$5, null, React.createElement(Flex$5, null, React.createElement(LabelWrapper$1, null, React.createElement(Label$h, {
|
|
9243
9744
|
label: "Who repacked it?"
|
|
9244
9745
|
}), React.createElement(StyledAntSelect$7, {
|
|
9245
9746
|
options: TaskType,
|
|
9246
9747
|
placeholder: "Select Category",
|
|
9247
9748
|
onChange: handleSelectChange,
|
|
9248
9749
|
selectWrapperClass: "rounded"
|
|
9249
|
-
}))), React.createElement(Flex$
|
|
9750
|
+
}))), React.createElement(Flex$5, null, React.createElement(LabelWrapper$1, null, React.createElement(Label$h, {
|
|
9250
9751
|
label: "Packaging Type"
|
|
9251
9752
|
}), React.createElement(StyledAntSelect$7, {
|
|
9252
9753
|
options: TaskType,
|
|
9253
9754
|
placeholder: "Select located",
|
|
9254
9755
|
onChange: handleSelectChange,
|
|
9255
9756
|
selectWrapperClass: "rounded"
|
|
9256
|
-
}))), React.createElement(Flex$
|
|
9757
|
+
}))), React.createElement(Flex$5, null, React.createElement(LabelWrapper$1, null, React.createElement(Label$h, {
|
|
9257
9758
|
label: "Repack Images"
|
|
9258
9759
|
}), React.createElement(StyledAntSelect$7, {
|
|
9259
9760
|
options: TaskType,
|
|
9260
9761
|
placeholder: "Select secondary defect",
|
|
9261
9762
|
onChange: handleSelectChange,
|
|
9262
9763
|
selectWrapperClass: "rounded"
|
|
9263
|
-
})))), React.createElement(Flex$
|
|
9764
|
+
})))), React.createElement(Flex$5, null, React.createElement(CheckboxContainer$1, null, React.createElement(Checkbox$2, {
|
|
9264
9765
|
onChange: function onChange(e) {
|
|
9265
9766
|
return setIsAdditionalBoxChecked(e.target.checked);
|
|
9266
9767
|
}
|
|
@@ -9275,19 +9776,19 @@ var RepackDetails = function RepackDetails() {
|
|
|
9275
9776
|
}
|
|
9276
9777
|
}, "Have any other boxes repacked into this one?"), isRepacked && React.createElement(RepackProduct, null)))));
|
|
9277
9778
|
};
|
|
9278
|
-
var StyledAntSelect$7 = /*#__PURE__*/styled(AntSelect)(_templateObject$
|
|
9279
|
-
var CheckboxContainer$1 = /*#__PURE__*/styled.div(_templateObject2$
|
|
9280
|
-
var InputWrapper = /*#__PURE__*/styled.div(_templateObject3$
|
|
9281
|
-
var Container$14 = /*#__PURE__*/styled.div(_templateObject4$
|
|
9282
|
-
var Flex$
|
|
9779
|
+
var StyledAntSelect$7 = /*#__PURE__*/styled(AntSelect)(_templateObject$25 || (_templateObject$25 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
|
|
9780
|
+
var CheckboxContainer$1 = /*#__PURE__*/styled.div(_templateObject2$1t || (_templateObject2$1t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n margin-top: 10px;\n"])));
|
|
9781
|
+
var InputWrapper = /*#__PURE__*/styled.div(_templateObject3$T || (_templateObject3$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n margin-left: 24px; // Indent input field to align with the checkbox\n"])));
|
|
9782
|
+
var Container$14 = /*#__PURE__*/styled.div(_templateObject4$B || (_templateObject4$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 15px;\n border: 1px solid #ccc;\n border-radius: 15px;\n padding: 10px;\n white-space: nowrap;\n"])));
|
|
9783
|
+
var Flex$5 = /*#__PURE__*/styled.div(_templateObject5$m || (_templateObject5$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n\n @media (max-width: 768px) {\n flex-direction: column;\n }\n"])));
|
|
9283
9784
|
var LabelWrapper$1 = /*#__PURE__*/styled.div(_templateObject6$e || (_templateObject6$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
9284
9785
|
|
|
9285
|
-
var _templateObject$
|
|
9786
|
+
var _templateObject$26, _templateObject2$1u, _templateObject3$U, _templateObject4$C;
|
|
9286
9787
|
var OtherDamage = function OtherDamage() {
|
|
9287
9788
|
var handleSelectChange = function handleSelectChange() {
|
|
9288
9789
|
console.log('Option selected');
|
|
9289
9790
|
};
|
|
9290
|
-
return React.createElement(Container$15, null, React.createElement(Flex$
|
|
9791
|
+
return React.createElement(Container$15, null, React.createElement(Flex$6, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
|
|
9291
9792
|
label: "What is the primary defect?"
|
|
9292
9793
|
}), React.createElement(StyledAntSelect$8, {
|
|
9293
9794
|
options: TaskType,
|
|
@@ -9301,7 +9802,7 @@ var OtherDamage = function OtherDamage() {
|
|
|
9301
9802
|
placeholder: "Select secondary defect",
|
|
9302
9803
|
onChange: handleSelectChange,
|
|
9303
9804
|
selectWrapperClass: "rounded"
|
|
9304
|
-
}))), React.createElement(Flex$
|
|
9805
|
+
}))), React.createElement(Flex$6, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
|
|
9305
9806
|
label: "What is the secondary defect?"
|
|
9306
9807
|
}), React.createElement(StyledAntSelect$8, {
|
|
9307
9808
|
options: TaskType,
|
|
@@ -9315,7 +9816,7 @@ var OtherDamage = function OtherDamage() {
|
|
|
9315
9816
|
placeholder: "Select Category",
|
|
9316
9817
|
onChange: handleSelectChange,
|
|
9317
9818
|
selectWrapperClass: "rounded"
|
|
9318
|
-
}))), React.createElement(Flex$
|
|
9819
|
+
}))), React.createElement(Flex$6, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
|
|
9319
9820
|
label: "Where is the tertiary defect located?\n"
|
|
9320
9821
|
}), React.createElement(StyledAntSelect$8, {
|
|
9321
9822
|
options: TaskType,
|
|
@@ -9329,7 +9830,7 @@ var OtherDamage = function OtherDamage() {
|
|
|
9329
9830
|
placeholder: "Select secondary defect",
|
|
9330
9831
|
onChange: handleSelectChange,
|
|
9331
9832
|
selectWrapperClass: "rounded"
|
|
9332
|
-
}))), React.createElement(Flex$
|
|
9833
|
+
}))), React.createElement(Flex$6, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
|
|
9333
9834
|
label: "What is the size of the defect?(cm)"
|
|
9334
9835
|
}), React.createElement(StyledAntSelect$8, {
|
|
9335
9836
|
options: TaskType,
|
|
@@ -9338,12 +9839,12 @@ var OtherDamage = function OtherDamage() {
|
|
|
9338
9839
|
selectWrapperClass: "rounded"
|
|
9339
9840
|
}))));
|
|
9340
9841
|
};
|
|
9341
|
-
var StyledAntSelect$8 = /*#__PURE__*/styled(AntSelect)(_templateObject$
|
|
9342
|
-
var Container$15 = /*#__PURE__*/styled.div(_templateObject2$
|
|
9343
|
-
var Flex$
|
|
9344
|
-
var LabelWrapper$2 = /*#__PURE__*/styled.div(_templateObject4$
|
|
9842
|
+
var StyledAntSelect$8 = /*#__PURE__*/styled(AntSelect)(_templateObject$26 || (_templateObject$26 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
|
|
9843
|
+
var Container$15 = /*#__PURE__*/styled.div(_templateObject2$1u || (_templateObject2$1u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n border: 1px solid #ccc;\n border-radius: 15px;\n padding: 10px;\n white-space: nowrap;\n"])));
|
|
9844
|
+
var Flex$6 = /*#__PURE__*/styled.div(_templateObject3$U || (_templateObject3$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n\n @media (max-width: 768px) {\n flex-direction: column;\n }\n"])));
|
|
9845
|
+
var LabelWrapper$2 = /*#__PURE__*/styled.div(_templateObject4$C || (_templateObject4$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
9345
9846
|
|
|
9346
|
-
var _templateObject$
|
|
9847
|
+
var _templateObject$27, _templateObject2$1v, _templateObject3$V, _templateObject4$D, _templateObject5$n;
|
|
9347
9848
|
var AddDefect = function AddDefect() {
|
|
9348
9849
|
var _useState = useState({
|
|
9349
9850
|
actionDuring: '',
|
|
@@ -9370,7 +9871,7 @@ var AddDefect = function AddDefect() {
|
|
|
9370
9871
|
});
|
|
9371
9872
|
});
|
|
9372
9873
|
};
|
|
9373
|
-
return React.createElement(React.Fragment, null, React.createElement(Container$16, null, React.createElement(Flex$
|
|
9874
|
+
return React.createElement(React.Fragment, null, React.createElement(Container$16, null, React.createElement(Flex$7, null, React.createElement(LabelWrapper$3, null, React.createElement(Label$h, {
|
|
9374
9875
|
label: "Does the packaging have any damage?"
|
|
9375
9876
|
}), React.createElement(StyledAntSelect$9, {
|
|
9376
9877
|
options: DefectConfirm,
|
|
@@ -9383,7 +9884,7 @@ var AddDefect = function AddDefect() {
|
|
|
9383
9884
|
return React.createElement(DefetcDetails, {
|
|
9384
9885
|
key: index
|
|
9385
9886
|
});
|
|
9386
|
-
})), React.createElement(Container$16, null, React.createElement(Flex$
|
|
9887
|
+
})), React.createElement(Container$16, null, React.createElement(Flex$7, null, React.createElement(LabelWrapper$3, null, React.createElement(Label$h, {
|
|
9387
9888
|
label: "Has the product been checked?"
|
|
9388
9889
|
}), React.createElement(StyledAntSelect$9, {
|
|
9389
9890
|
options: DefectConfirm,
|
|
@@ -9397,7 +9898,7 @@ var AddDefect = function AddDefect() {
|
|
|
9397
9898
|
placeholder: "Select",
|
|
9398
9899
|
onChange: handleChange('productDamage'),
|
|
9399
9900
|
selectWrapperClass: "rounded"
|
|
9400
|
-
}))), state.productDamage === 'yes' && state.productChecked === 'yes' && React.createElement(OtherDamage, null)), React.createElement(Container$16, null, React.createElement(Flex$
|
|
9901
|
+
}))), state.productDamage === 'yes' && state.productChecked === 'yes' && React.createElement(OtherDamage, null)), React.createElement(Container$16, null, React.createElement(Flex$7, null, React.createElement(LabelWrapper$3, null, React.createElement(Label$h, {
|
|
9401
9902
|
label: "Has the product been repacked?"
|
|
9402
9903
|
}), React.createElement(StyledAntSelect$9, {
|
|
9403
9904
|
options: DefectConfirm,
|
|
@@ -9406,18 +9907,18 @@ var AddDefect = function AddDefect() {
|
|
|
9406
9907
|
selectWrapperClass: "rounded"
|
|
9407
9908
|
}))), state.productRepacked === 'yes' && React.createElement(RepackDetails, null)));
|
|
9408
9909
|
};
|
|
9409
|
-
var StyledAntSelect$9 = /*#__PURE__*/styled(AntSelect)(_templateObject$
|
|
9410
|
-
var Container$16 = /*#__PURE__*/styled.div(_templateObject2$
|
|
9411
|
-
var Flex$
|
|
9412
|
-
var LabelWrapper$3 = /*#__PURE__*/styled.div(_templateObject4$
|
|
9910
|
+
var StyledAntSelect$9 = /*#__PURE__*/styled(AntSelect)(_templateObject$27 || (_templateObject$27 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
|
|
9911
|
+
var Container$16 = /*#__PURE__*/styled.div(_templateObject2$1v || (_templateObject2$1v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n flex-direction: column;\n border: 1px solid #e6e6e6;\n border-radius: 15px;\n padding: 10px;\n"])));
|
|
9912
|
+
var Flex$7 = /*#__PURE__*/styled.div(_templateObject3$V || (_templateObject3$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 10px;\n /* justify-content: space-between; */\n"])));
|
|
9913
|
+
var LabelWrapper$3 = /*#__PURE__*/styled.div(_templateObject4$D || (_templateObject4$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n width: 20vw;\n"])));
|
|
9413
9914
|
var AddButton = /*#__PURE__*/styled(Button$1)(_templateObject5$n || (_templateObject5$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 10px;\n border-radius: 30px;\n"])));
|
|
9414
9915
|
|
|
9415
|
-
var _templateObject$
|
|
9916
|
+
var _templateObject$28, _templateObject2$1w, _templateObject3$W, _templateObject4$E;
|
|
9416
9917
|
var QCLogs = function QCLogs() {
|
|
9417
9918
|
var handleSelectChange = function handleSelectChange() {
|
|
9418
9919
|
console.log('Option selected');
|
|
9419
9920
|
};
|
|
9420
|
-
return React.createElement(Container$17, null, React.createElement(Flex$
|
|
9921
|
+
return React.createElement(Container$17, null, React.createElement(Flex$8, null, React.createElement(LabelWrapper$4, null, React.createElement(Label$h, {
|
|
9421
9922
|
label: "Action During"
|
|
9422
9923
|
}), React.createElement(StyledAntSelect$a, {
|
|
9423
9924
|
options: TaskType,
|
|
@@ -9433,12 +9934,12 @@ var QCLogs = function QCLogs() {
|
|
|
9433
9934
|
selectWrapperClass: "rounded"
|
|
9434
9935
|
}))), React.createElement(AddDefect, null));
|
|
9435
9936
|
};
|
|
9436
|
-
var StyledAntSelect$a = /*#__PURE__*/styled(AntSelect)(_templateObject$
|
|
9437
|
-
var Container$17 = /*#__PURE__*/styled.div(_templateObject2$
|
|
9438
|
-
var Flex$
|
|
9439
|
-
var LabelWrapper$4 = /*#__PURE__*/styled.div(_templateObject4$
|
|
9937
|
+
var StyledAntSelect$a = /*#__PURE__*/styled(AntSelect)(_templateObject$28 || (_templateObject$28 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
|
|
9938
|
+
var Container$17 = /*#__PURE__*/styled.div(_templateObject2$1w || (_templateObject2$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n flex-direction: column;\n"])));
|
|
9939
|
+
var Flex$8 = /*#__PURE__*/styled.div(_templateObject3$W || (_templateObject3$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 10px;\n"])));
|
|
9940
|
+
var LabelWrapper$4 = /*#__PURE__*/styled.div(_templateObject4$E || (_templateObject4$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n width: 20vw;\n"])));
|
|
9440
9941
|
|
|
9441
|
-
var _templateObject$
|
|
9942
|
+
var _templateObject$29, _templateObject2$1x, _templateObject3$X, _templateObject4$F, _templateObject5$o;
|
|
9442
9943
|
function UpdateProduct() {
|
|
9443
9944
|
var _orderStaticData$coll, _orderStaticData$orde, _orderStaticData$retu, _orderStaticData$orde2;
|
|
9444
9945
|
var _useState = useState(),
|
|
@@ -9535,13 +10036,13 @@ function UpdateProduct() {
|
|
|
9535
10036
|
selectWrapperClass: "rounded"
|
|
9536
10037
|
}))));
|
|
9537
10038
|
}
|
|
9538
|
-
var CollectionBox = /*#__PURE__*/styled.div(_templateObject$
|
|
9539
|
-
var ReturnBox = /*#__PURE__*/styled.div(_templateObject2$
|
|
9540
|
-
var Container$18 = /*#__PURE__*/styled.div(_templateObject3$
|
|
9541
|
-
var LabelWrapper$5 = /*#__PURE__*/styled.div(_templateObject4$
|
|
10039
|
+
var CollectionBox = /*#__PURE__*/styled.div(_templateObject$29 || (_templateObject$29 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
10040
|
+
var ReturnBox = /*#__PURE__*/styled.div(_templateObject2$1x || (_templateObject2$1x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 10px;\n margin-top: 32px;\n justify-content: space-between;\n"])));
|
|
10041
|
+
var Container$18 = /*#__PURE__*/styled.div(_templateObject3$X || (_templateObject3$X = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
10042
|
+
var LabelWrapper$5 = /*#__PURE__*/styled.div(_templateObject4$F || (_templateObject4$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
9542
10043
|
var StyledAntSelect$b = /*#__PURE__*/styled(AntSelect)(_templateObject5$o || (_templateObject5$o = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
9543
10044
|
|
|
9544
|
-
var _templateObject$
|
|
10045
|
+
var _templateObject$2a, _templateObject2$1y, _templateObject3$Y;
|
|
9545
10046
|
function UnReceiveProduct() {
|
|
9546
10047
|
var _orderStaticData$unre;
|
|
9547
10048
|
var _useRecieveOrderProdu = useRecieveOrderProducts(),
|
|
@@ -9589,11 +10090,11 @@ function UnReceiveProduct() {
|
|
|
9589
10090
|
onNotesChange: handleNotesChange
|
|
9590
10091
|
})));
|
|
9591
10092
|
}
|
|
9592
|
-
var Container$19 = /*#__PURE__*/styled.div(_templateObject$
|
|
9593
|
-
var LabelWrapper$6 = /*#__PURE__*/styled.div(_templateObject2$
|
|
9594
|
-
var StyledAntSelect$c = /*#__PURE__*/styled(AntSelect)(_templateObject3$
|
|
10093
|
+
var Container$19 = /*#__PURE__*/styled.div(_templateObject$2a || (_templateObject$2a = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
10094
|
+
var LabelWrapper$6 = /*#__PURE__*/styled.div(_templateObject2$1y || (_templateObject2$1y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
10095
|
+
var StyledAntSelect$c = /*#__PURE__*/styled(AntSelect)(_templateObject3$Y || (_templateObject3$Y = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
9595
10096
|
|
|
9596
|
-
var _templateObject$
|
|
10097
|
+
var _templateObject$2b, _templateObject2$1z;
|
|
9597
10098
|
var ProductAction = function ProductAction() {
|
|
9598
10099
|
var _useAtom = useAtom(selectedTabKeyAtom),
|
|
9599
10100
|
setSelectedTabKey = _useAtom[1];
|
|
@@ -9618,10 +10119,10 @@ var ProductAction = function ProductAction() {
|
|
|
9618
10119
|
}]
|
|
9619
10120
|
}))));
|
|
9620
10121
|
};
|
|
9621
|
-
var GLobalPopupContent$4 = /*#__PURE__*/styled.div(_templateObject$
|
|
9622
|
-
var Container$1a = /*#__PURE__*/styled.div(_templateObject2$
|
|
10122
|
+
var GLobalPopupContent$4 = /*#__PURE__*/styled.div(_templateObject$2b || (_templateObject$2b = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
10123
|
+
var Container$1a = /*#__PURE__*/styled.div(_templateObject2$1z || (_templateObject2$1z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n height: 50vh;\n padding-bottom: 30px;\n flex-direction: column;\n align-items: flex-start;\n gap: 20px;\n align-self: stretch;\n border-radius: 6px;\n border: 1px solid #edebe8;\n padding: 15px;\n overflow-y: scroll;\n .ant-tabs {\n width: 100%;\n }\n .ant-tabs-tab-active {\n .ant-tabs-tab-btn {\n color: #3a3630 !important;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n }\n }\n .ant-tabs-ink-bar {\n background: #feba30;\n }\n"])));
|
|
9623
10124
|
|
|
9624
|
-
var _templateObject$
|
|
10125
|
+
var _templateObject$2c;
|
|
9625
10126
|
var LogsTable = function LogsTable() {
|
|
9626
10127
|
var options = [{
|
|
9627
10128
|
value: 'bjsCouriers',
|
|
@@ -9696,9 +10197,9 @@ var LogsTable = function LogsTable() {
|
|
|
9696
10197
|
}
|
|
9697
10198
|
})));
|
|
9698
10199
|
};
|
|
9699
|
-
var GlobalPopupContent = /*#__PURE__*/styled.div(_templateObject$
|
|
10200
|
+
var GlobalPopupContent = /*#__PURE__*/styled.div(_templateObject$2c || (_templateObject$2c = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
9700
10201
|
|
|
9701
|
-
var _templateObject$
|
|
10202
|
+
var _templateObject$2d, _templateObject2$1A;
|
|
9702
10203
|
var DefectsModal = function DefectsModal() {
|
|
9703
10204
|
var options = [{
|
|
9704
10205
|
value: 'bjsCouriers',
|
|
@@ -9750,10 +10251,10 @@ var DefectsModal = function DefectsModal() {
|
|
|
9750
10251
|
}
|
|
9751
10252
|
}))));
|
|
9752
10253
|
};
|
|
9753
|
-
var StyledConatiner = /*#__PURE__*/styled.div(_templateObject$
|
|
9754
|
-
var GLobalPopupContent$5 = /*#__PURE__*/styled.div(_templateObject2$
|
|
10254
|
+
var StyledConatiner = /*#__PURE__*/styled.div(_templateObject$2d || (_templateObject$2d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* tex: nowrap; */\n"])));
|
|
10255
|
+
var GLobalPopupContent$5 = /*#__PURE__*/styled.div(_templateObject2$1A || (_templateObject2$1A = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
9755
10256
|
|
|
9756
|
-
var _templateObject$
|
|
10257
|
+
var _templateObject$2e;
|
|
9757
10258
|
var repackModal = function repackModal() {
|
|
9758
10259
|
var columns = [{
|
|
9759
10260
|
key: 'packaging_type',
|
|
@@ -9783,10 +10284,10 @@ var repackModal = function repackModal() {
|
|
|
9783
10284
|
}
|
|
9784
10285
|
}))));
|
|
9785
10286
|
};
|
|
9786
|
-
var StyledConatiner$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
10287
|
+
var StyledConatiner$1 = /*#__PURE__*/styled.div(_templateObject$2e || (_templateObject$2e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* text-wrap: nowrap; */\n"])));
|
|
9787
10288
|
|
|
9788
|
-
var _templateObject$
|
|
9789
|
-
var _excluded$
|
|
10289
|
+
var _templateObject$2f, _templateObject2$1B, _templateObject3$Z;
|
|
10290
|
+
var _excluded$3 = ["id"];
|
|
9790
10291
|
var CreateReturnModal = function CreateReturnModal() {
|
|
9791
10292
|
var _useSelectedConfirmLo = useSelectedConfirmLoc(),
|
|
9792
10293
|
selectedlocation = _useSelectedConfirmLo[0],
|
|
@@ -9829,7 +10330,7 @@ var CreateReturnModal = function CreateReturnModal() {
|
|
|
9829
10330
|
});
|
|
9830
10331
|
if (matchedItems.length > 0) {
|
|
9831
10332
|
var finalPayload = matchedItems == null ? void 0 : matchedItems.map(function (_ref) {
|
|
9832
|
-
var rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10333
|
+
var rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
9833
10334
|
return rest;
|
|
9834
10335
|
});
|
|
9835
10336
|
setNew(finalPayload);
|
|
@@ -9867,9 +10368,9 @@ var CreateReturnModal = function CreateReturnModal() {
|
|
|
9867
10368
|
}, displayValueOrNA(returnLoc == null ? void 0 : returnLoc.new_location)));
|
|
9868
10369
|
})))));
|
|
9869
10370
|
};
|
|
9870
|
-
var StyledText$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
9871
|
-
var Container$1b = /*#__PURE__*/styled.div(_templateObject2$
|
|
9872
|
-
var Wrapper$l = /*#__PURE__*/styled.div(_templateObject3$
|
|
10371
|
+
var StyledText$1 = /*#__PURE__*/styled.div(_templateObject$2f || (_templateObject$2f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #8d8f90;\n font-family: Poppins;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n"])));
|
|
10372
|
+
var Container$1b = /*#__PURE__*/styled.div(_templateObject2$1B || (_templateObject2$1B = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
10373
|
+
var Wrapper$l = /*#__PURE__*/styled.div(_templateObject3$Z || (_templateObject3$Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 15px;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 15px;\n align-self: stretch;\n border-radius: 8px;\n background: #f8fafc;\n box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1);\n"])));
|
|
9873
10374
|
|
|
9874
10375
|
var ModalManager = function ModalManager() {
|
|
9875
10376
|
var _useAtom = useAtom(countReducerAtom),
|
|
@@ -9888,7 +10389,7 @@ var ModalManager = function ModalManager() {
|
|
|
9888
10389
|
var _useUpdateOrderProduc = useUpdateOrderProducts(),
|
|
9889
10390
|
updateOrderProduct = _useUpdateOrderProduc[0],
|
|
9890
10391
|
setUpdateOrderProduct = _useUpdateOrderProduc[1];
|
|
9891
|
-
var _useAtom2 = useAtom(
|
|
10392
|
+
var _useAtom2 = useAtom(letselectedProductIdAtom),
|
|
9892
10393
|
selectedProductId = _useAtom2[0];
|
|
9893
10394
|
var _useAtom3 = useAtom(selectedTabKeyAtom),
|
|
9894
10395
|
selectedTab = _useAtom3[0];
|
|
@@ -10212,14 +10713,14 @@ var ModalManager = function ModalManager() {
|
|
|
10212
10713
|
}));
|
|
10213
10714
|
};
|
|
10214
10715
|
|
|
10215
|
-
var _templateObject$
|
|
10716
|
+
var _templateObject$2g, _templateObject2$1C;
|
|
10216
10717
|
var ReturnTable = function ReturnTable() {
|
|
10217
|
-
return React.createElement("div", null, React.createElement(DashBoardWrapper
|
|
10718
|
+
return React.createElement("div", null, React.createElement(DashBoardWrapper, null, React.createElement("div", {
|
|
10218
10719
|
className: "Tableconatiner"
|
|
10219
10720
|
}, React.createElement(HeaderFilter, null), React.createElement(Container$1c, null, React.createElement(ReturnFilter, null), React.createElement(ReturnOrderTable, null)))), React.createElement(ModalManager, null));
|
|
10220
10721
|
};
|
|
10221
|
-
var Container$1c = /*#__PURE__*/styled.div(_templateObject$
|
|
10222
|
-
var DashBoardWrapper
|
|
10722
|
+
var Container$1c = /*#__PURE__*/styled.div(_templateObject$2g || (_templateObject$2g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n top: -46px;\n"])));
|
|
10723
|
+
var DashBoardWrapper = /*#__PURE__*/styled.section(_templateObject2$1C || (_templateObject2$1C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .Tableconatiner {\n border-radius: 12px;\n background: #fff;\n box-shadow: -2px 0px 12px 0px rgba(56, 71, 109, 0.1);\n display: block;\n padding: 15px 20px;\n }\n .headerWrap,\n .tableData,\n .styleCovered {\n transition: all ease 0.5s;\n }\n &.stickyTableHead {\n h2 {\n font-size: 21px;\n }\n .headerWrap {\n height: 84px;\n padding: 10px;\n border-radius: 0px 0px 15px 15px;\n > div {\n position: relative;\n z-index: 10;\n }\n }\n .styleCovered {\n margin-top: -32px;\n width: 67%;\n float: right;\n gap: 5px;\n padding-right: 11px;\n\n li {\n padding: 4px 10px 5px 5px;\n gap: 5px;\n .svgCover {\n width: 30px;\n height: 30px;\n svg {\n height: auto;\n width: 58%;\n }\n }\n .countDigit {\n font-size: 19px;\n }\n }\n .countMess {\n font-size: 13px;\n }\n }\n .dmsBulkFilter {\n min-height: unset;\n gap: 4px;\n > div {\n padding: 4px 12px;\n label {\n font-size: 11px;\n }\n }\n }\n\n .StyledFilterList {\n gap: 4px;\n li {\n height: 29px;\n padding: 3px 8px;\n gap: 4px;\n .StyledFilterBtnIcon {\n width: 20px;\n height: 20px;\n svh {\n width: 10px;\n height: auto;\n }\n }\n .StyledFilterBtnLabel {\n font-size: 13px;\n }\n }\n }\n .StyledFilterLabel {\n padding-left: 10px;\n span {\n font-size: 13px;\n }\n }\n .cardcontainer.tableData {\n max-height: calc(100vh - 310px);\n min-height: calc(100vh - 310px);\n }\n\n .tableData {\n max-height: calc(100vh - 320px);\n min-height: calc(100vh - 320px);\n\n margin-top: 8px;\n thead {\n position: sticky;\n top: 0;\n z-index: 9;\n th {\n font-size: 13px;\n padding: 2px 15px;\n }\n }\n }\n }\n"])));
|
|
10223
10724
|
|
|
10224
10725
|
function LoadIcon() {
|
|
10225
10726
|
return React.createElement("svg", {
|
|
@@ -10347,7 +10848,7 @@ var OrderTable = function OrderTable(_ref) {
|
|
|
10347
10848
|
console.log(id, 'idid');
|
|
10348
10849
|
return React.createElement(React.Fragment, null, React.createElement(StyledTableWrapper, {
|
|
10349
10850
|
id: "tableScrolling"
|
|
10350
|
-
}, React.createElement(StyledTable, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
|
|
10851
|
+
}, React.createElement(StyledTable$2, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
|
|
10351
10852
|
className: "emailInvoiceCheckbox"
|
|
10352
10853
|
}, React.createElement(Checkbox$1, {
|
|
10353
10854
|
checked: selectAll,
|
|
@@ -10442,7 +10943,7 @@ var OrderTable = function OrderTable(_ref) {
|
|
|
10442
10943
|
})))));
|
|
10443
10944
|
};
|
|
10444
10945
|
|
|
10445
|
-
var _templateObject$
|
|
10946
|
+
var _templateObject$2h, _templateObject2$1D, _templateObject3$_, _templateObject4$G;
|
|
10446
10947
|
var TableFilters = function TableFilters() {
|
|
10447
10948
|
return React.createElement(Container$1d, null, React.createElement(StyledBulkItem, null, React.createElement(SearchType, null)), React.createElement(IconConatiner$1, null, React.createElement(Mid$1, null, React.createElement(IconText$1, null, "Export"), React.createElement(DownloadIcon, null))));
|
|
10448
10949
|
// return (
|
|
@@ -10458,8 +10959,8 @@ var TableFilters = function TableFilters() {
|
|
|
10458
10959
|
// // </StyledBulkFilterCover>
|
|
10459
10960
|
// );
|
|
10460
10961
|
};
|
|
10461
|
-
var Container$1d = /*#__PURE__*/styled.div(_templateObject$
|
|
10462
|
-
var Mid$1 = /*#__PURE__*/styled.div(_templateObject2$
|
|
10962
|
+
var Container$1d = /*#__PURE__*/styled.div(_templateObject$2h || (_templateObject$2h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n /* align-items: flex-start; */\n gap: 16px;\n align-items: center;\n"])));
|
|
10963
|
+
var Mid$1 = /*#__PURE__*/styled.div(_templateObject2$1D || (_templateObject2$1D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 10px 10px 10px 10px;\n align-items: center;\n gap: 8px;\n align-self: stretch;\n /* border-radius: 15px 15px 15px 15px; */\n"])));
|
|
10463
10964
|
// const TextConatiner = styled.div`
|
|
10464
10965
|
// display: flex;
|
|
10465
10966
|
// padding: 7px 12px;
|
|
@@ -10477,8 +10978,8 @@ var Mid$1 = /*#__PURE__*/styled.div(_templateObject2$1F || (_templateObject2$1F
|
|
|
10477
10978
|
// font-weight: 600;
|
|
10478
10979
|
// line-height: 20px;
|
|
10479
10980
|
// `;
|
|
10480
|
-
var IconConatiner$1 = /*#__PURE__*/styled.div(_templateObject3$
|
|
10481
|
-
var IconText$1 = /*#__PURE__*/styled.div(_templateObject4$
|
|
10981
|
+
var IconConatiner$1 = /*#__PURE__*/styled.div(_templateObject3$_ || (_templateObject3$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* display: flex;\n height: 34px;\n padding: 4px 10px; \n align-items: flex-start;\n border-radius: 8px 8px 8px 8px; */\n\n ///working\n /* box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n background: #f0f2f2;\n border: 1px solid #e2e0db;\n display: flex;\n padding: 7px 12px;\n justify-content: center;\n align-items: center;\n gap: 2px;\n border-radius: 15px;\n height: 34px; */\n ///////\n\n display: flex;\n height: 34px;\n padding: 1px;\n align-items: flex-start;\n background: #f0f2f2;\n border: 1px solid #e2e0db;\n border-radius: 20px 20px 20px 20px;\n\n /* shadow/shadow-xs */\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n"])));
|
|
10982
|
+
var IconText$1 = /*#__PURE__*/styled.div(_templateObject4$G || (_templateObject4$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n text-align: center;\n\n /* body/captions */\n font-family: 'Lato';\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n"])));
|
|
10482
10983
|
|
|
10483
10984
|
var FilterIcon = function FilterIcon() {
|
|
10484
10985
|
return React.createElement("svg", {
|
|
@@ -10663,7 +11164,7 @@ var AssigneIcon = function AssigneIcon() {
|
|
|
10663
11164
|
}))));
|
|
10664
11165
|
};
|
|
10665
11166
|
|
|
10666
|
-
var _templateObject$
|
|
11167
|
+
var _templateObject$2i, _templateObject2$1E;
|
|
10667
11168
|
var ReturnOrderFilter = function ReturnOrderFilter() {
|
|
10668
11169
|
var _useAtom = useAtom(filtersReducerAtom$1),
|
|
10669
11170
|
dispatch = _useAtom[1];
|
|
@@ -10778,11 +11279,11 @@ var ReturnOrderFilter = function ReturnOrderFilter() {
|
|
|
10778
11279
|
className: "dateiconcontainer"
|
|
10779
11280
|
}, React.createElement(AssigneIcon, null))))), React.createElement(TableFilters, null)));
|
|
10780
11281
|
};
|
|
10781
|
-
var StyledDatePicker = /*#__PURE__*/styled.div(_templateObject$
|
|
11282
|
+
var StyledDatePicker = /*#__PURE__*/styled.div(_templateObject$2i || (_templateObject$2i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .custom-datepicker {\n border: none;\n }\n"])));
|
|
10782
11283
|
// const DropdownContainer = styled.div``;
|
|
10783
|
-
var StyledAntSelect$d = /*#__PURE__*/styled.div(_templateObject2$
|
|
11284
|
+
var StyledAntSelect$d = /*#__PURE__*/styled.div(_templateObject2$1E || (_templateObject2$1E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .custom-select {\n border: none;\n width: 80px;\n }\n .ant-select-selector {\n border: 1px solid #ffffff !important;\n }\n :where(.css-dev-only-do-not-override-m4timi).ant-select-single:not(.ant-select-customize-input)\n .ant-select-selector {\n padding: 0 5px;\n }\n\n :where(.css-dev-only-do-not-override-m4timi).ant-select-outlined:not(.ant-select-customize-input)\n .ant-select-selector {\n border: none;\n }\n .roundbox {\n display: flex;\n width: 18px;\n height: 18px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n border-radius: 18px;\n background: #fff;\n box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);\n left: 359px;\n position: absolute;\n border-radius: 18px;\n background: #fff;\n box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);\n top: 16px;\n }\n"])));
|
|
10784
11285
|
|
|
10785
|
-
var _templateObject$
|
|
11286
|
+
var _templateObject$2j, _templateObject2$1F;
|
|
10786
11287
|
var ReturnAfterTable = function ReturnAfterTable() {
|
|
10787
11288
|
var _useReturnAfterOrderD = useReturnAfterOrderData(),
|
|
10788
11289
|
setReturnOrderData = _useReturnAfterOrderD[1];
|
|
@@ -10804,12 +11305,12 @@ var ReturnAfterTable = function ReturnAfterTable() {
|
|
|
10804
11305
|
setReturnOrderData(fetchedReturnOrderData == null ? void 0 : fetchedReturnOrderData.data);
|
|
10805
11306
|
}
|
|
10806
11307
|
}, [fetchedReturnOrderData, staticDataLoading]);
|
|
10807
|
-
return React.createElement("div", null, React.createElement(DashBoardWrapper$
|
|
11308
|
+
return React.createElement("div", null, React.createElement(DashBoardWrapper$1, null, React.createElement("div", {
|
|
10808
11309
|
className: "Tableconatiner"
|
|
10809
11310
|
}, React.createElement(HeaderFilter, null), React.createElement(Container$1e, null, React.createElement(ReturnOrderFilter, null), React.createElement(OrderTable, null)))));
|
|
10810
11311
|
};
|
|
10811
|
-
var Container$1e = /*#__PURE__*/styled.div(_templateObject$
|
|
10812
|
-
var DashBoardWrapper$
|
|
11312
|
+
var Container$1e = /*#__PURE__*/styled.div(_templateObject$2j || (_templateObject$2j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n top: -30px;\n"])));
|
|
11313
|
+
var DashBoardWrapper$1 = /*#__PURE__*/styled.section(_templateObject2$1F || (_templateObject2$1F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .Tableconatiner {\n border-radius: 12px;\n background: #fff;\n box-shadow: -2px 0px 12px 0px rgba(56, 71, 109, 0.1);\n display: block;\n padding: 15px 20px;\n }\n .headerWrap,\n .tableData,\n .styleCovered {\n transition: all ease 0.5s;\n }\n &.stickyTableHead {\n h2 {\n font-size: 21px;\n }\n .headerWrap {\n height: 84px;\n padding: 10px;\n border-radius: 0px 0px 15px 15px;\n > div {\n position: relative;\n z-index: 10;\n }\n }\n .styleCovered {\n margin-top: -32px;\n width: 67%;\n float: right;\n gap: 5px;\n padding-right: 11px;\n\n li {\n padding: 4px 10px 5px 5px;\n gap: 5px;\n .svgCover {\n width: 30px;\n height: 30px;\n svg {\n height: auto;\n width: 58%;\n }\n }\n .countDigit {\n font-size: 19px;\n }\n }\n .countMess {\n font-size: 13px;\n }\n }\n .dmsBulkFilter {\n min-height: unset;\n gap: 4px;\n > div {\n padding: 4px 12px;\n label {\n font-size: 11px;\n }\n }\n }\n\n .StyledFilterList {\n gap: 4px;\n li {\n height: 29px;\n padding: 3px 8px;\n gap: 4px;\n .StyledFilterBtnIcon {\n width: 20px;\n height: 20px;\n svh {\n width: 10px;\n height: auto;\n }\n }\n .StyledFilterBtnLabel {\n font-size: 13px;\n }\n }\n }\n .StyledFilterLabel {\n padding-left: 10px;\n span {\n font-size: 13px;\n }\n }\n .cardcontainer.tableData {\n max-height: calc(100vh - 310px);\n min-height: calc(100vh - 310px);\n }\n\n .tableData {\n max-height: calc(100vh - 320px);\n min-height: calc(100vh - 320px);\n\n margin-top: 8px;\n thead {\n position: sticky;\n top: 0;\n z-index: 9;\n th {\n font-size: 13px;\n padding: 2px 15px;\n }\n }\n }\n }\n"])));
|
|
10813
11314
|
|
|
10814
11315
|
var BulkFilter = function BulkFilter() {
|
|
10815
11316
|
// const [printToogle, setPrintToggle] = useMenuDropDown();
|
|
@@ -10838,7 +11339,7 @@ var BulkFilter = function BulkFilter() {
|
|
|
10838
11339
|
);
|
|
10839
11340
|
};
|
|
10840
11341
|
|
|
10841
|
-
var _excluded$
|
|
11342
|
+
var _excluded$4 = ["count"];
|
|
10842
11343
|
// import { useAtom } from 'jotai';
|
|
10843
11344
|
var Filters = function Filters() {
|
|
10844
11345
|
var _useRoutesTable = useRoutesTable(),
|
|
@@ -10864,7 +11365,7 @@ var Filters = function Filters() {
|
|
|
10864
11365
|
if (paginationData !== null) {
|
|
10865
11366
|
var _JSON$parse = JSON.parse(paginationData),
|
|
10866
11367
|
count = _JSON$parse.count,
|
|
10867
|
-
rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$
|
|
11368
|
+
rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$4);
|
|
10868
11369
|
setPaginationObject(rest);
|
|
10869
11370
|
setCount(count);
|
|
10870
11371
|
} else {
|
|
@@ -10906,7 +11407,7 @@ var ReturnTable$1 = function ReturnTable(_ref) {
|
|
|
10906
11407
|
}, [staticDataLoading, fetchedStaticData]);
|
|
10907
11408
|
return React.createElement(React.Fragment, null, React.createElement(StyledTableWrapper$1, {
|
|
10908
11409
|
id: "tableScrolling"
|
|
10909
|
-
}, React.createElement(StyledTable$
|
|
11410
|
+
}, React.createElement(StyledTable$3, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", null, "Trading Name"), React.createElement("th", null, "Client"), React.createElement("th", null, "Orders"), React.createElement("th", null, "Products"), React.createElement("th", null, "RTS"), React.createElement("th", null, "Pending"), React.createElement("th", null, "Dispose"), React.createElement("th", null, "Re-allocate"), React.createElement("th", null, "Re-Del"), React.createElement("th", null, "Recycle"), React.createElement("th", null, "Unknown"))), React.createElement("tbody", null, loadingskeleton ? React.createElement("tr", null, React.createElement("td", {
|
|
10910
11411
|
colSpan: 9
|
|
10911
11412
|
}, React.createElement(Skeleton, {
|
|
10912
11413
|
active: true
|
|
@@ -10930,7 +11431,7 @@ var ReturnTable$1 = function ReturnTable(_ref) {
|
|
|
10930
11431
|
})))));
|
|
10931
11432
|
};
|
|
10932
11433
|
|
|
10933
|
-
var _templateObject$
|
|
11434
|
+
var _templateObject$2k, _templateObject2$1G, _templateObject3$$;
|
|
10934
11435
|
// import Loader from '../loader/Loader';
|
|
10935
11436
|
// interface ApiResponse {
|
|
10936
11437
|
// message: string;
|
|
@@ -10973,15 +11474,52 @@ function ReturnMainTable() {
|
|
|
10973
11474
|
setClientData(result);
|
|
10974
11475
|
}
|
|
10975
11476
|
}, [staticDataLoading]);
|
|
10976
|
-
return React.createElement(React.Fragment, null, React.createElement(DashBoardWrapper$
|
|
11477
|
+
return React.createElement(React.Fragment, null, React.createElement(DashBoardWrapper$2, {
|
|
10977
11478
|
className: " " + (isScrolled ? 'stickyTableHead' : '')
|
|
10978
|
-
}, React.createElement(
|
|
11479
|
+
}, React.createElement("div", {
|
|
10979
11480
|
className: "Tableconatiner"
|
|
10980
11481
|
}, React.createElement(HeaderFilter, null), React.createElement(Container$1f, null, React.createElement(Row$7, null, React.createElement(Text$7, null, "Client Return"), selectedClient ? React.createElement(ReturnFilter, null) : React.createElement(Filters, null)), React.createElement(ReturnTable$1, null)))));
|
|
10981
11482
|
}
|
|
10982
|
-
var Row$7 = /*#__PURE__*/styled.div(_templateObject$
|
|
10983
|
-
var Container$1f = /*#__PURE__*/styled.div(_templateObject2$
|
|
10984
|
-
var DashBoardWrapper$
|
|
11483
|
+
var Row$7 = /*#__PURE__*/styled.div(_templateObject$2k || (_templateObject$2k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
|
|
11484
|
+
var Container$1f = /*#__PURE__*/styled.div(_templateObject2$1G || (_templateObject2$1G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n top: -46px;\n"])));
|
|
11485
|
+
var DashBoardWrapper$2 = /*#__PURE__*/styled.section(_templateObject3$$ || (_templateObject3$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .Tableconatiner {\n border-radius: 12px;\n background: #fff;\n box-shadow: -2px 0px 12px 0px rgba(56, 71, 109, 0.1);\n display: block;\n padding: 15px 20px;\n }\n .headerWrap,\n .tableData,\n .styleCovered {\n transition: all ease 0.5s;\n }\n &.stickyTableHead {\n h2 {\n font-size: 21px;\n }\n .headerWrap {\n height: 84px;\n padding: 10px;\n border-radius: 0px 0px 15px 15px;\n > div {\n position: relative;\n z-index: 10;\n }\n }\n .styleCovered {\n margin-top: -32px;\n width: 67%;\n float: right;\n gap: 5px;\n padding-right: 11px;\n\n li {\n padding: 4px 10px 5px 5px;\n gap: 5px;\n .svgCover {\n width: 30px;\n height: 30px;\n svg {\n height: auto;\n width: 58%;\n }\n }\n .countDigit {\n font-size: 19px;\n }\n }\n .countMess {\n font-size: 13px;\n }\n }\n .dmsBulkFilter {\n min-height: unset;\n gap: 4px;\n > div {\n padding: 4px 12px;\n label {\n font-size: 11px;\n }\n }\n }\n\n .StyledFilterList {\n gap: 4px;\n li {\n height: 29px;\n padding: 3px 8px;\n gap: 4px;\n .StyledFilterBtnIcon {\n width: 20px;\n height: 20px;\n svh {\n width: 10px;\n height: auto;\n }\n }\n .StyledFilterBtnLabel {\n font-size: 13px;\n }\n }\n }\n .StyledFilterLabel {\n padding-left: 10px;\n span {\n font-size: 13px;\n }\n }\n .cardcontainer.tableData {\n max-height: calc(100vh - 310px);\n min-height: calc(100vh - 310px);\n }\n\n .tableData {\n max-height: calc(100vh - 320px);\n min-height: calc(100vh - 320px);\n\n margin-top: 8px;\n thead {\n position: sticky;\n top: 0;\n z-index: 9;\n th {\n font-size: 13px;\n padding: 2px 15px;\n }\n }\n }\n }\n"])));
|
|
11486
|
+
|
|
11487
|
+
var _templateObject$2l, _templateObject2$1H;
|
|
11488
|
+
var HeaderWrapper = /*#__PURE__*/styled.div(_templateObject$2l || (_templateObject$2l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 20px;\n gap: 10px;\n border-radius: 0px 0px 30px 30px;\n background: #313130;\n height: 151px;\n background: url(./assets/bgBlack.png) no-repeat;\n background-size: cover;\n background-color: #000000d9;\n"])));
|
|
11489
|
+
var StyledFlex = /*#__PURE__*/styled.div(_templateObject2$1H || (_templateObject2$1H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n"])));
|
|
11490
|
+
|
|
11491
|
+
var _templateObject$2m;
|
|
11492
|
+
var HeaderTitle = function HeaderTitle(props) {
|
|
11493
|
+
return React.createElement(React.Fragment, null, React.createElement(Title$7, null, props.title));
|
|
11494
|
+
};
|
|
11495
|
+
var Title$7 = /*#__PURE__*/styled.h2(_templateObject$2m || (_templateObject$2m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0px;\n padding: 0px;\n color: #fff;\n font-size: 26px;\n font-style: normal;\n font-weight: 700;\n line-height: 36px;\n text-transform: uppercase;\n margin-bottom: 8px;\n"])));
|
|
11496
|
+
|
|
11497
|
+
var _templateObject$2n, _templateObject2$1I;
|
|
11498
|
+
function Breadcrumb(props) {
|
|
11499
|
+
return React.createElement(BreadcrumbContainer, null, React.createElement(BreadcrumbList, null, props.title || ''), React.createElement(BreadcrumbList, null, props.subtitle || ''), props.subPart && React.createElement(React.Fragment, null, React.createElement(BreadcrumbList, null, props.subPart)));
|
|
11500
|
+
}
|
|
11501
|
+
var BreadcrumbContainer = /*#__PURE__*/styled.div(_templateObject$2n || (_templateObject$2n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
11502
|
+
var BreadcrumbList = /*#__PURE__*/styled.span(_templateObject2$1I || (_templateObject2$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #edebe8;\n font-family: 'Open Sans', sans-serif;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n"])));
|
|
11503
|
+
|
|
11504
|
+
var RouterHeader = function RouterHeader(_ref) {
|
|
11505
|
+
var _ref$breadcrumbTitle = _ref.breadcrumbTitle,
|
|
11506
|
+
breadcrumbTitle = _ref$breadcrumbTitle === void 0 ? 'Clients >' : _ref$breadcrumbTitle,
|
|
11507
|
+
_ref$breadcrumbSubtit = _ref.breadcrumbSubtitle,
|
|
11508
|
+
breadcrumbSubtitle = _ref$breadcrumbSubtit === void 0 ? ' Return' : _ref$breadcrumbSubtit,
|
|
11509
|
+
breadcrumbSubPart = _ref.breadcrumbSubPart;
|
|
11510
|
+
// const [, dispatch] = useAtom(filtersReducerAtom);
|
|
11511
|
+
// const [today, setToday] = usedate();
|
|
11512
|
+
// const maxDate = new Date();
|
|
11513
|
+
return React.createElement(React.Fragment, null, React.createElement(HeaderWrapper, {
|
|
11514
|
+
className: "headerWrap"
|
|
11515
|
+
}, React.createElement(StyledFlex, null, React.createElement("div", null, React.createElement(HeaderTitle, {
|
|
11516
|
+
title: 'Return'
|
|
11517
|
+
}), React.createElement(Breadcrumb, {
|
|
11518
|
+
title: breadcrumbTitle,
|
|
11519
|
+
subtitle: breadcrumbSubtitle,
|
|
11520
|
+
subPart: breadcrumbSubPart
|
|
11521
|
+
})))));
|
|
11522
|
+
};
|
|
10985
11523
|
|
|
10986
11524
|
function ReturnClient() {
|
|
10987
11525
|
var _selectedClientString;
|
|
@@ -11010,7 +11548,7 @@ function ReturnClient() {
|
|
|
11010
11548
|
navigate("filter/" + _selectedClientString2);
|
|
11011
11549
|
}
|
|
11012
11550
|
}, [selectedClient]);
|
|
11013
|
-
return React.createElement(Suspense, {
|
|
11551
|
+
return React.createElement(React.Fragment, null, React.createElement(RouterHeader, null), React.createElement(Suspense, {
|
|
11014
11552
|
fallback: React.createElement(LoadingMessage, null)
|
|
11015
11553
|
}, React.createElement(Routes, null, React.createElement(Route, {
|
|
11016
11554
|
path: "",
|
|
@@ -11024,7 +11562,7 @@ function ReturnClient() {
|
|
|
11024
11562
|
}), React.createElement(Route, {
|
|
11025
11563
|
path: "filter/:clientName",
|
|
11026
11564
|
element: React.createElement(ReturnTable, null)
|
|
11027
|
-
})));
|
|
11565
|
+
}))));
|
|
11028
11566
|
}
|
|
11029
11567
|
|
|
11030
11568
|
export default ReturnClient;
|