@bjsdistribution/dms-client-return 0.0.12 → 0.0.13

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.
Files changed (46) hide show
  1. package/dist/components/order-daily-overview/common/css/TableStyle.d.ts +13 -30
  2. package/dist/components/order-view/store.d.ts +77 -28
  3. package/dist/components/order-view/types.d.ts +61 -11
  4. package/dist/components/order-view/utils.d.ts +4 -0
  5. package/dist/dms-client-return.cjs.development.js +1543 -1011
  6. package/dist/dms-client-return.cjs.development.js.map +1 -1
  7. package/dist/dms-client-return.cjs.production.min.js +1 -1
  8. package/dist/dms-client-return.cjs.production.min.js.map +1 -1
  9. package/dist/dms-client-return.esm.js +1545 -1013
  10. package/dist/dms-client-return.esm.js.map +1 -1
  11. package/package.json +2 -2
  12. package/src/common/expand-collapse/index.tsx +4 -4
  13. package/src/components/order-daily-overview/common/css/TableStyle.tsx +42 -342
  14. package/src/components/order-daily-overview/index.tsx +2 -2
  15. package/src/components/order-daily-overview/return-after-table/ReturnAfterTable.tsx +2 -2
  16. package/src/components/order-daily-overview/return-order-table/ReturnTable.tsx +2 -2
  17. package/src/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.ts +2 -2
  18. package/src/components/order-daily-overview/table/table-data/styles.ts +1 -1
  19. package/src/components/order-view/DynamicTable.tsx +12 -3
  20. package/src/components/order-view/flags-action-modal/Actions.tsx +1 -2
  21. package/src/components/order-view/general-information/Status.tsx +13 -17
  22. package/src/components/order-view/generic-table/AuditLogs.tsx +81 -19
  23. package/src/components/order-view/index.tsx +192 -192
  24. package/src/components/order-view/modalsPopup/ModalManager.tsx +2 -2
  25. package/src/components/order-view/modalsPopup/ProductAction.tsx +1 -1
  26. package/src/components/order-view/notes/AddNote.tsx +2 -3
  27. package/src/components/order-view/notes/index.tsx +9 -22
  28. package/src/components/order-view/order-details/expanded-content/footer/index.tsx +90 -73
  29. package/src/components/order-view/order-details/expanded-content/instruction-section/DeliveryInstructions.tsx +2 -9
  30. package/src/components/order-view/order-details/expanded-content/orders-section/Droptime.tsx +2 -10
  31. package/src/components/order-view/order-details/expanded-content/orders-section/VehicleType.tsx +16 -15
  32. package/src/components/order-view/order-details/expanded-content/services-section/AssemblyType.tsx +88 -15
  33. package/src/components/order-view/order-details/expanded-content/services-section/DeliveryPoint.tsx +1 -13
  34. package/src/components/order-view/order-details/expanded-content/services-section/OrderServices.tsx +141 -16
  35. package/src/components/order-view/order-details/expanded-content/services-section/ServiceType.tsx +1 -13
  36. package/src/components/order-view/order-details/expanded-content/services-section/TimedService.tsx +19 -18
  37. package/src/components/order-view/products-info/expanded-content/products/index.tsx +2 -2
  38. package/src/components/order-view/return-client-products/ProductTable.tsx +1 -1
  39. package/src/components/order-view/return-client-products/product-table/ReturnProductTable.tsx +79 -70
  40. package/src/components/order-view/return-client-products/product-table-footer/ProductDetailsFooter.tsx +5 -5
  41. package/src/components/order-view/store.ts +215 -53
  42. package/src/components/order-view/system-event-logs/expanded-content/index.tsx +6 -10
  43. package/src/components/order-view/toolbox-resources/expanded-content/index.tsx +68 -6
  44. package/src/components/order-view/types.ts +89 -33
  45. package/src/components/order-view/utils.ts +20 -17
  46. 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, getBaseEndpoint, 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';
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 clientDataAtom = /*#__PURE__*/atom([]);
554
- var returnDataAtom = /*#__PURE__*/atom([]);
555
- var returnAfterOrderAtom = /*#__PURE__*/atom([]);
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 useClientData() {
651
- return useAtom(clientDataAtom);
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(undefined);
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(0);
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(orderProductInitialvalue);
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 selectedProductIdAtom = /*#__PURE__*/atom(null);
709
- var selectedTabKeyAtom = /*#__PURE__*/atom('1');
710
- var eventNotesData = /*#__PURE__*/atom([]);
711
- function useEventNotesData() {
712
- return useAtom(eventNotesData);
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 moduleIds = /*#__PURE__*/atom(null);
719
- function usemoduleIds() {
720
- return useAtom(moduleIds);
726
+ var eventNotesData = /*#__PURE__*/atom([]);
727
+ function useEventNotesData() {
728
+ return useAtom(eventNotesData);
721
729
  }
722
- var CallAPi = /*#__PURE__*/atom(false);
723
- function useCallAPi() {
724
- return useAtom(CallAPi);
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,17 +743,62 @@ var notes = /*#__PURE__*/atom([]);
731
743
  function usegetNotes() {
732
744
  return useAtom(notes);
733
745
  }
734
- var errorAtom = /*#__PURE__*/atom({
735
- homeError: '',
736
- mobileError: '',
737
- emailError: '',
738
- w3wError: ''
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) {
743
- if (action.type === 'create-return') {
744
- state = 'create-return';
800
+ if (action.type === 'bulkUpdate') {
801
+ state = 'bulkUpdate';
745
802
  return {
746
803
  state: state
747
804
  };
@@ -911,6 +968,9 @@ function Postcode() {
911
968
  var Wrapper$2 = /*#__PURE__*/styled.div(_templateObject$4 || (_templateObject$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
912
969
  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
970
 
971
+ var _excluded$1 = ["order_recipient", "order_routes", "order_services_detail", "order_services"],
972
+ _excluded2 = ["order_recipient", "order_routes", "order_services_detail", "order_services"],
973
+ _excluded3 = ["id", "new_id"];
914
974
  var capitalize = function capitalize(input) {
915
975
  if (!input) {
916
976
  return;
@@ -1001,17 +1061,143 @@ var getCookie = function getCookie(name) {
1001
1061
  return null;
1002
1062
  };
1003
1063
  var handleKeyDown = function handleKeyDown(e) {
1004
- // Allowed keys: numbers (0-9), '.', '-'
1064
+ // Allowed keys: numbers (0-9), '.', '-', '+'
1005
1065
  var allowedKeys = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '-', '+'];
1006
- // Allow backspace, delete and Tab keys
1066
+ // Allow backspace, delete, and Tab keys
1007
1067
  if (e.key === 'Backspace' || e.key === 'Delete' || e.key === 'Tab') {
1008
1068
  return;
1009
1069
  }
1070
+ var input = e.currentTarget;
1071
+ // Check if '+' is allowed only at the start and not duplicated
1072
+ if (e.key === '+') {
1073
+ // Prevent if '+' is not at the start or there is already a '+' in the input
1074
+ if (input.selectionStart !== 0 || input.value.includes('+')) {
1075
+ e.preventDefault();
1076
+ return;
1077
+ }
1078
+ }
1010
1079
  // Prevent input if key is not in allowedKeys
1011
1080
  if (!allowedKeys.includes(e.key)) {
1012
1081
  e.preventDefault();
1013
1082
  }
1014
1083
  };
1084
+ var generateObj = function generateObj(keys, sourceObj) {
1085
+ var newObj = {};
1086
+ keys.forEach(function (key) {
1087
+ if (key in sourceObj) {
1088
+ newObj[key] = sourceObj[key];
1089
+ }
1090
+ });
1091
+ return newObj;
1092
+ };
1093
+ var findDifference = function findDifference(obj1, obj2) {
1094
+ // Check if obj1 or obj2 is null or undefined and return an empty object if so
1095
+ if (!obj1 || !obj2) {
1096
+ return {};
1097
+ }
1098
+ var diffKeys = Object.keys(obj1).reduce(function (acc, key) {
1099
+ if (!(key in obj2) || obj1[key] !== obj2[key]) {
1100
+ acc.push(key);
1101
+ }
1102
+ return acc;
1103
+ }, []);
1104
+ Object.keys(obj2).forEach(function (key) {
1105
+ if (!(key in obj1) || obj1[key] !== obj2[key]) {
1106
+ if (!diffKeys.includes(key)) {
1107
+ diffKeys.push(key);
1108
+ }
1109
+ }
1110
+ });
1111
+ var newObj = generateObj(diffKeys, obj2);
1112
+ return newObj;
1113
+ };
1114
+ var filterObject = function filterObject(obj, keysToRemove) {
1115
+ var filteredObj = Object.keys(obj).reduce(function (acc, key) {
1116
+ if (!keysToRemove.includes(key)) {
1117
+ acc[key] = obj[key];
1118
+ }
1119
+ return acc;
1120
+ }, {});
1121
+ return filteredObj;
1122
+ };
1123
+ var isObjectEmpty = function isObjectEmpty(objectName) {
1124
+ return Object.keys(objectName).length === 0;
1125
+ };
1126
+ var compareArrays = function compareArrays(arr, newArr) {
1127
+ var required_output = [];
1128
+ newArr.forEach(function (newObj) {
1129
+ arr.forEach(function (oldObj) {
1130
+ if (!newObj.hasOwnProperty('id')) {
1131
+ required_output.push(newObj);
1132
+ } else {
1133
+ var newObjFiltered = {};
1134
+ if (newObj.id === oldObj.id) {
1135
+ Object.keys(newObj).forEach(function (key) {
1136
+ if (key !== 'id' && oldObj.hasOwnProperty(key) && newObj[key] !== oldObj[key]) {
1137
+ //@ts-ignore
1138
+ newObjFiltered[key] = newObj[key];
1139
+ }
1140
+ });
1141
+ var isEmpty = isObjectEmpty(newObjFiltered);
1142
+ if (!isEmpty) {
1143
+ var clone = _extends({}, newObjFiltered, {
1144
+ id: newObj.id
1145
+ });
1146
+ required_output.push(clone);
1147
+ }
1148
+ // const newObjFiltered = { id: newObj.id };
1149
+ }
1150
+ }
1151
+ });
1152
+ });
1153
+ return required_output;
1154
+ };
1155
+ var compareOrderDetailsStates = function compareOrderDetailsStates(oldData, newData) {
1156
+ var oldOrderRecipient = oldData.order_recipient,
1157
+ oldOrderRoutes = oldData.order_routes,
1158
+ oldOrderServicesDetail = oldData.order_services_detail,
1159
+ oldOrderServices = oldData.order_services,
1160
+ oldRequiredData = _objectWithoutPropertiesLoose(oldData, _excluded$1);
1161
+ var newOrderRecipient = newData.order_recipient,
1162
+ newOrderRoutes = newData.order_routes,
1163
+ newOrderServicesDetail = newData.order_services_detail,
1164
+ newOrderServices = newData.order_services,
1165
+ newRequiredData = _objectWithoutPropertiesLoose(newData, _excluded2);
1166
+ var payload = findDifference(oldRequiredData, newRequiredData);
1167
+ var payloadWithId = _extends({}, payload, {
1168
+ id: oldData.id
1169
+ });
1170
+ var payloadOrderRecipient = findDifference(oldOrderRecipient, newOrderRecipient);
1171
+ var payloadOrderRoutes = findDifference(oldOrderRoutes, newOrderRoutes);
1172
+ var payloadOrderServicesDetail = findDifference(oldOrderServicesDetail, newOrderServicesDetail);
1173
+ // need to remove id and new_id from new order_services
1174
+ var filteredNewOrderServices = newOrderServices == null ? void 0 : newOrderServices.map(function (item) {
1175
+ if (item.new_id) {
1176
+ var newItem = _objectWithoutPropertiesLoose(item, _excluded3);
1177
+ return newItem;
1178
+ } else {
1179
+ return item;
1180
+ }
1181
+ });
1182
+ var newOrderServicesWithoutId = filteredNewOrderServices.filter(function (service) {
1183
+ return !service.id;
1184
+ });
1185
+ var newOrderServicesWithId = filteredNewOrderServices.filter(function (service) {
1186
+ return service.id;
1187
+ });
1188
+ var payloadOrderServices = compareArrays(oldOrderServices, newOrderServicesWithId);
1189
+ var finalPayloadOrderServices = [].concat(payloadOrderServices, newOrderServicesWithoutId);
1190
+ var finalPayload = _extends({}, payloadWithId, !isObjectEmpty(payloadOrderRecipient) && {
1191
+ order_recipient: payloadOrderRecipient
1192
+ }, !isObjectEmpty(payloadOrderRoutes) && {
1193
+ order_routes: payloadOrderRoutes
1194
+ }, !isObjectEmpty(payloadOrderServicesDetail) && {
1195
+ order_services_detail: payloadOrderServicesDetail
1196
+ }, finalPayloadOrderServices.length > 0 && {
1197
+ order_services: finalPayloadOrderServices
1198
+ });
1199
+ return finalPayload;
1200
+ };
1015
1201
 
1016
1202
  var _templateObject$5, _templateObject2$4;
1017
1203
  function Latitude() {
@@ -1429,17 +1615,10 @@ function Droptime() {
1429
1615
  var _useOrderDetails = useOrderDetails(),
1430
1616
  orderDetails = _useOrderDetails[0],
1431
1617
  setOrderDetails = _useOrderDetails[1];
1432
- var orderRoutes = orderDetails == null ? void 0 : orderDetails.order_routes;
1433
1618
  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
1619
  setOrderDetails(function (prev) {
1441
1620
  return _extends({}, prev, {
1442
- order_routes: updatedOrderRoutes
1621
+ drop_time: e.target.value
1443
1622
  });
1444
1623
  });
1445
1624
  };
@@ -1451,11 +1630,11 @@ function Droptime() {
1451
1630
  type: "number",
1452
1631
  placeholder: "0",
1453
1632
  onKeyDown: handleKeyDown,
1454
- value: orderRoutes == null ? void 0 : orderRoutes.drop_time,
1633
+ value: (orderDetails == null ? void 0 : orderDetails.drop_time) || '',
1455
1634
  onChange: onChange
1456
1635
  }));
1457
1636
  }
1458
- var CustomInput$6 = /*#__PURE__*/styled(Input$1)(_templateObject$j || (_templateObject$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 25px;\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"])));
1637
+ 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
1638
  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
1639
 
1461
1640
  var _templateObject$k;
@@ -1612,6 +1791,16 @@ var vehicleTypeOptions = [{
1612
1791
 
1613
1792
  var _templateObject$o;
1614
1793
  function VehicleTypeDropdown() {
1794
+ var _useOrderDetails = useOrderDetails(),
1795
+ orderDetails = _useOrderDetails[0],
1796
+ setOrderDetails = _useOrderDetails[1];
1797
+ var onChange = function onChange(e) {
1798
+ setOrderDetails(function (prev) {
1799
+ return _extends({}, prev, {
1800
+ vehicle_type: e.label
1801
+ });
1802
+ });
1803
+ };
1615
1804
  return React.createElement(FormContainer$1, null, React.createElement(Label$h, {
1616
1805
  label: "Vehicle Type",
1617
1806
  htmlFor: "vehicleType"
@@ -1620,16 +1809,10 @@ function VehicleTypeDropdown() {
1620
1809
  options: vehicleTypeOptions,
1621
1810
  inputId: "vehicleType",
1622
1811
  openMenuOnFocus: true,
1623
- isDisabled: true,
1624
- value: vehicleTypeOptions[1],
1625
- styles: _extends({}, dropdownStyles, {
1626
- control: function control(styles) {
1627
- return _extends({}, styles, {
1628
- borderRadius: '25px',
1629
- cursor: 'pointer'
1630
- });
1631
- }
1632
- })
1812
+ value: vehicleTypeOptions == null ? void 0 : vehicleTypeOptions.filter(function (x) {
1813
+ return x.label === (orderDetails == null ? void 0 : orderDetails.vehicle_type);
1814
+ }),
1815
+ onChange: onChange
1633
1816
  }));
1634
1817
  }
1635
1818
  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 +1855,17 @@ function DeliveryInstructions() {
1672
1855
  var _useOrderDetails = useOrderDetails(),
1673
1856
  orderDetails = _useOrderDetails[0],
1674
1857
  setOrderDetails = _useOrderDetails[1];
1675
- var orderRoutes = orderDetails == null ? void 0 : orderDetails.order_routes;
1676
1858
  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
1859
  setOrderDetails(function (prev) {
1684
1860
  return _extends({}, prev, {
1685
- order_routes: updatedOrderRoutes
1861
+ delivery_instructions: e.target.value
1686
1862
  });
1687
1863
  });
1688
1864
  };
1689
1865
  return React.createElement(Container$j, null, React.createElement(Label$h, {
1690
1866
  label: "Delivery Instructions"
1691
1867
  }), React.createElement(CustomTextArea$1, {
1692
- value: (orderRoutes == null ? void 0 : orderRoutes.delivery_instructions) || '',
1868
+ value: (orderDetails == null ? void 0 : orderDetails.delivery_instructions) || '',
1693
1869
  placeholder: "add delivery instructions",
1694
1870
  onChange: onChange
1695
1871
  }));
@@ -1730,6 +1906,15 @@ var FormInputs$2 = /*#__PURE__*/styled.div(_templateObject$t || (_templateObject
1730
1906
  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
1907
 
1732
1908
  var _templateObject$u;
1909
+ function convertTo12HourFormat(time24) {
1910
+ var _time24$split, _minutes$toString;
1911
+ var _time24$split$map = time24 == null || (_time24$split = time24.split(':')) == null ? void 0 : _time24$split.map(Number),
1912
+ hours = _time24$split$map[0],
1913
+ minutes = _time24$split$map[1];
1914
+ var period = hours >= 12 ? 'PM' : 'AM';
1915
+ var hours12 = hours % 12 || 12; // Convert to 12-hour format
1916
+ return hours12 + ":" + (minutes == null || (_minutes$toString = minutes.toString()) == null ? void 0 : _minutes$toString.padStart(2, '0')) + " " + period;
1917
+ }
1733
1918
  function TimedServiceDropdown() {
1734
1919
  var _orderData$order_serv, _orderStaticData$orde;
1735
1920
  var _useOrderStaticData = useOrderStaticData(),
@@ -1739,9 +1924,13 @@ function TimedServiceDropdown() {
1739
1924
  setOrderData = _useOrderDetails[1];
1740
1925
  var timesServiceId = orderData == null || (_orderData$order_serv = orderData.order_services_detail) == null ? void 0 : _orderData$order_serv.timed_service_id;
1741
1926
  var timedServicesOptions = orderStaticData == null || (_orderStaticData$orde = orderStaticData.order_timed_services) == null ? void 0 : _orderStaticData$orde.map(function (option) {
1927
+ var _option$type;
1928
+ var startTime = convertTo12HourFormat(option == null ? void 0 : option.start_time);
1929
+ var endTime = convertTo12HourFormat(option == null ? void 0 : option.end_time);
1930
+ var label = capitalize(option == null || (_option$type = option.type) == null ? void 0 : _option$type.replaceAll('_', ' ')) + " (" + startTime + " - " + endTime + ")";
1742
1931
  return {
1743
- label: capitalize(option.type.replaceAll('_', ' ')),
1744
- value: option.id
1932
+ label: label,
1933
+ value: option == null ? void 0 : option.id
1745
1934
  };
1746
1935
  });
1747
1936
  var onChange = function onChange(event) {
@@ -1763,15 +1952,7 @@ function TimedServiceDropdown() {
1763
1952
  return f.value === timesServiceId;
1764
1953
  }),
1765
1954
  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
- })
1955
+ onChange: onChange
1775
1956
  }));
1776
1957
  }
1777
1958
  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 +1989,7 @@ function ServiceTypeDropdown() {
1808
1989
  }),
1809
1990
  inputId: "serviceTypeDropdown",
1810
1991
  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
- })
1992
+ onChange: onChange
1820
1993
  }));
1821
1994
  }
1822
1995
  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 +2029,7 @@ function DeliveryPointDropdown() {
1856
2029
  return f.value === deliveryPointId;
1857
2030
  }),
1858
2031
  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
- })
2032
+ onChange: onChange
1868
2033
  }));
1869
2034
  }
1870
2035
  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 +2070,7 @@ var Container$o = /*#__PURE__*/styled.div(_templateObject$x || (_templateObject$
1905
2070
 
1906
2071
  var _templateObject$y;
1907
2072
  function AssemblyType() {
1908
- var _orderStaticData$orde, _orderStaticData$orde2;
2073
+ var _orderStaticData$orde, _orderStaticData$orde2, _orderStaticData$orde3;
1909
2074
  var _useOrderDetails = useOrderDetails(),
1910
2075
  orderData = _useOrderDetails[0],
1911
2076
  setOrderData = _useOrderDetails[1];
@@ -1917,37 +2082,78 @@ function AssemblyType() {
1917
2082
  var _x$type;
1918
2083
  return (x == null || (_x$type = x.type) == null ? void 0 : _x$type.toLowerCase()) === 'assemble';
1919
2084
  });
2085
+ var disassembleOrderService = orderStaticData == null || (_orderStaticData$orde2 = orderStaticData.order_service_list) == null ? void 0 : _orderStaticData$orde2.find(function (x) {
2086
+ var _x$type2;
2087
+ return (x == null || (_x$type2 = x.type) == null ? void 0 : _x$type2.toLowerCase()) === 'disassemble';
2088
+ });
1920
2089
  var assemblyTypeService = cloneServices == null ? void 0 : cloneServices.find(function (x) {
1921
2090
  return (x == null ? void 0 : x.order_service_list_id) === (assembleOrderService == null ? void 0 : assembleOrderService.id);
1922
2091
  });
1923
- var assemblyTypeId = assemblyTypeService == null ? void 0 : assemblyTypeService.service_category_id;
1924
- var assemblyTypeOptions = orderStaticData == null || (_orderStaticData$orde2 = orderStaticData.order_service_list_category) == null ? void 0 : _orderStaticData$orde2.map(function (option) {
2092
+ var disassemblyTypeService = cloneServices == null ? void 0 : cloneServices.find(function (x) {
2093
+ return (x == null ? void 0 : x.order_service_list_id) === (disassembleOrderService == null ? void 0 : disassembleOrderService.id);
2094
+ });
2095
+ var assemblyTypeId = (assemblyTypeService == null ? void 0 : assemblyTypeService.service_category_id) || (disassemblyTypeService == null ? void 0 : disassemblyTypeService.service_category_id);
2096
+ var assemblyTypeOptions = orderStaticData == null || (_orderStaticData$orde3 = orderStaticData.order_service_list_category) == null ? void 0 : _orderStaticData$orde3.map(function (option) {
1925
2097
  return {
1926
2098
  label: capitalize(option.type.replaceAll('_', ' ')),
1927
2099
  value: option.id.toString()
1928
2100
  };
1929
2101
  });
1930
2102
  var radioGroupHandler = function radioGroupHandler(event) {
1931
- var updatedAssemblyTypeService = _extends({}, assemblyTypeService, {
1932
- service_category_id: +event.target.value
1933
- });
1934
- var updatedOrderServices = cloneServices == null ? void 0 : cloneServices.filter(function (s) {
1935
- return (s == null ? void 0 : s.order_service_list_id) !== (assembleOrderService == null ? void 0 : assembleOrderService.id);
1936
- });
1937
- updatedOrderServices.push(updatedAssemblyTypeService);
2103
+ var updatedAssemblyTypeService = {};
2104
+ var updatedDisassemblyTypeService = {};
2105
+ var updatedOrderServices = [];
2106
+ 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) {
2107
+ updatedAssemblyTypeService = _extends({}, assemblyTypeService, {
2108
+ service_category_id: +event.target.value
2109
+ });
2110
+ updatedDisassemblyTypeService = _extends({}, disassemblyTypeService, {
2111
+ service_category_id: +event.target.value
2112
+ });
2113
+ updatedOrderServices = cloneServices == null ? void 0 : cloneServices.filter(function (s) {
2114
+ 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);
2115
+ });
2116
+ updatedOrderServices.push(updatedAssemblyTypeService);
2117
+ updatedOrderServices.push(updatedDisassemblyTypeService);
2118
+ } else if ((assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === false && ((disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === true || disassemblyTypeService === undefined || disassemblyTypeService === null)) {
2119
+ updatedAssemblyTypeService = _extends({}, assemblyTypeService, {
2120
+ service_category_id: +event.target.value
2121
+ });
2122
+ updatedOrderServices = cloneServices == null ? void 0 : cloneServices.filter(function (s) {
2123
+ return (s == null ? void 0 : s.order_service_list_id) !== (assembleOrderService == null ? void 0 : assembleOrderService.id);
2124
+ });
2125
+ updatedOrderServices.push(updatedAssemblyTypeService);
2126
+ } else {
2127
+ updatedDisassemblyTypeService = _extends({}, disassemblyTypeService, {
2128
+ service_category_id: +event.target.value
2129
+ });
2130
+ updatedOrderServices = cloneServices == null ? void 0 : cloneServices.filter(function (s) {
2131
+ return (s == null ? void 0 : s.order_service_list_id) !== (disassembleOrderService == null ? void 0 : disassembleOrderService.id);
2132
+ });
2133
+ updatedOrderServices.push(updatedDisassemblyTypeService);
2134
+ }
1938
2135
  var newData = _extends({}, orderData, {
1939
2136
  order_services: updatedOrderServices
1940
2137
  });
1941
2138
  setOrderData(newData);
1942
2139
  };
2140
+ var isServiceDisable = function isServiceDisable() {
2141
+ 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) {
2142
+ return true;
2143
+ } else {
2144
+ return false;
2145
+ }
2146
+ };
1943
2147
  return React.createElement(Container$p, {
1944
- "$isDisable": (assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === true ? true : false
2148
+ "$isDisable": isServiceDisable()
1945
2149
  }, React.createElement(RadioButtonGroup$1, {
1946
2150
  selectedValue: (assemblyTypeId == null ? void 0 : assemblyTypeId.toString()) || '',
1947
2151
  heading: "Assembly Type",
1948
2152
  options: assemblyTypeOptions || [],
1949
2153
  onChange: radioGroupHandler,
1950
- required: false
2154
+ required: false,
2155
+ //@ts-ignore
2156
+ isDisabled: isServiceDisable()
1951
2157
  }));
1952
2158
  }
1953
2159
  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 +2214,34 @@ function OrderServices() {
2008
2214
  var _useOrderDetails = useOrderDetails(),
2009
2215
  orderDetails = _useOrderDetails[0],
2010
2216
  setOrderDetails = _useOrderDetails[1];
2217
+ var _usePrevOrderDetails = usePrevOrderDetails(),
2218
+ prevOrderDetails = _usePrevOrderDetails[0];
2011
2219
  var orderServices = orderDetails == null ? void 0 : orderDetails.order_services;
2220
+ var prevOrderServices = prevOrderDetails == null ? void 0 : prevOrderDetails.order_services;
2012
2221
  var orderServicesOptions = orderStaticData == null ? void 0 : orderStaticData.order_service_list;
2013
2222
  var toggleServices = function toggleServices(id) {
2223
+ var _orderStaticData$orde, _orderStaticData$orde2;
2014
2224
  var clone = [].concat(orderServices);
2015
2225
  var selectedService = clone == null ? void 0 : clone.find(function (s) {
2016
2226
  return (s == null ? void 0 : s.order_service_list_id) === id;
2017
2227
  });
2228
+ var assembleOrderService = orderStaticData == null || (_orderStaticData$orde = orderStaticData.order_service_list) == null ? void 0 : _orderStaticData$orde.find(function (x) {
2229
+ var _x$type;
2230
+ return (x == null || (_x$type = x.type) == null ? void 0 : _x$type.toLowerCase()) === 'assemble';
2231
+ });
2232
+ var disassembleOrderService = orderStaticData == null || (_orderStaticData$orde2 = orderStaticData.order_service_list) == null ? void 0 : _orderStaticData$orde2.find(function (x) {
2233
+ var _x$type2;
2234
+ return (x == null || (_x$type2 = x.type) == null ? void 0 : _x$type2.toLowerCase()) === 'disassemble';
2235
+ });
2236
+ var assemblyTypeService = clone == null ? void 0 : clone.find(function (x) {
2237
+ return (x == null ? void 0 : x.order_service_list_id) === (assembleOrderService == null ? void 0 : assembleOrderService.id);
2238
+ });
2239
+ var disassemblyTypeService = clone == null ? void 0 : clone.find(function (x) {
2240
+ return (x == null ? void 0 : x.order_service_list_id) === (disassembleOrderService == null ? void 0 : disassembleOrderService.id);
2241
+ });
2018
2242
  if (selectedService !== undefined) {
2019
- //TO DO -> special case for assemble service but need discussion before proceeding anything
2020
- // const assembleOrderService = orderStaticData?.order_service_list?.find(
2021
- // (x: any) => x?.type?.toLowerCase() === 'assemble'
2022
- // );
2023
- // const isAssembleService = assembleOrderService?.id === id;
2243
+ var isAssembleService = (assembleOrderService == null ? void 0 : assembleOrderService.id) === (selectedService == null ? void 0 : selectedService.order_service_list_id);
2244
+ var isDisassembleService = (disassembleOrderService == null ? void 0 : disassembleOrderService.id) === (selectedService == null ? void 0 : selectedService.order_service_list_id);
2024
2245
  if (selectedService.new_id) {
2025
2246
  var updatedOrderServices = clone.filter(function (service) {
2026
2247
  return service.id !== selectedService.id;
@@ -2030,33 +2251,96 @@ function OrderServices() {
2030
2251
  });
2031
2252
  setOrderDetails(newData);
2032
2253
  } else {
2254
+ var _updatedSelectedServi, _updatedSelectedServi2;
2033
2255
  var updatedSelectedService = _extends({}, selectedService, {
2034
2256
  is_deleted: !selectedService.is_deleted
2035
2257
  });
2036
- // if(isAssembleService && updatedSelectedService.is_deleted === true) {
2037
- // TO DO -> handle later
2038
- // }
2039
- var _updatedOrderServices = clone.filter(function (service) {
2258
+ var _updatedOrderServices = [];
2259
+ var newUpdatedOrderServices = [];
2260
+ _updatedOrderServices = clone.filter(function (service) {
2040
2261
  return service.id !== selectedService.id;
2041
2262
  });
2042
2263
  _updatedOrderServices.push(updatedSelectedService);
2264
+ 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)) {
2265
+ var prevSelectedService = prevOrderServices == null ? void 0 : prevOrderServices.find(function (s) {
2266
+ return (s == null ? void 0 : s.order_service_list_id) === id;
2267
+ });
2268
+ updatedSelectedService = _extends({}, selectedService, {
2269
+ is_deleted: true,
2270
+ service_category_id: prevSelectedService == null ? void 0 : prevSelectedService.service_category_id
2271
+ });
2272
+ _updatedOrderServices = clone.filter(function (service) {
2273
+ return service.id !== selectedService.id;
2274
+ });
2275
+ _updatedOrderServices.push(updatedSelectedService);
2276
+ // new cases
2277
+ if (isAssembleService && (disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === true && disassemblyTypeService !== undefined && disassemblyTypeService !== null) {
2278
+ var _updatedOrderServices2, _newUpdatedOrderServi;
2279
+ var newUpdatedSelectedService = _extends({}, disassemblyTypeService, {
2280
+ is_deleted: true,
2281
+ service_category_id: prevSelectedService == null ? void 0 : prevSelectedService.service_category_id
2282
+ });
2283
+ newUpdatedOrderServices = (_updatedOrderServices2 = _updatedOrderServices) == null ? void 0 : _updatedOrderServices2.filter(function (service) {
2284
+ return service.id !== disassemblyTypeService.id;
2285
+ });
2286
+ (_newUpdatedOrderServi = newUpdatedOrderServices) == null || _newUpdatedOrderServi.push(newUpdatedSelectedService);
2287
+ }
2288
+ // new cases
2289
+ if (isDisassembleService && (assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === true && assemblyTypeService !== undefined && assemblyTypeService !== null) {
2290
+ var _updatedOrderServices3, _newUpdatedOrderServi2;
2291
+ var _newUpdatedSelectedService = _extends({}, assemblyTypeService, {
2292
+ is_deleted: true,
2293
+ service_category_id: prevSelectedService == null ? void 0 : prevSelectedService.service_category_id
2294
+ });
2295
+ newUpdatedOrderServices = (_updatedOrderServices3 = _updatedOrderServices) == null ? void 0 : _updatedOrderServices3.filter(function (service) {
2296
+ return service.id !== assemblyTypeService.id;
2297
+ });
2298
+ (_newUpdatedOrderServi2 = newUpdatedOrderServices) == null || _newUpdatedOrderServi2.push(_newUpdatedSelectedService);
2299
+ }
2300
+ }
2043
2301
  var _newData = _extends({}, orderDetails, {
2044
- order_services: _updatedOrderServices
2302
+ order_services: newUpdatedOrderServices.length > 0 ? newUpdatedOrderServices : _updatedOrderServices
2045
2303
  });
2046
2304
  setOrderDetails(_newData);
2047
2305
  }
2048
2306
  } else {
2049
2307
  // service not exist case
2050
2308
  // if not matched then treat it as an new service
2051
- var largestId = Math.max.apply(Math, clone == null ? void 0 : clone.map(function (o) {
2052
- return +(o == null ? void 0 : o.order_service_list_id);
2053
- }));
2054
- var service = {
2309
+ var largestId;
2310
+ if (clone === undefined || clone.length === 0) {
2311
+ largestId = 0;
2312
+ } else {
2313
+ largestId = Math.max.apply(Math, clone == null ? void 0 : clone.map(function (o) {
2314
+ return +(o == null ? void 0 : o.order_service_list_id);
2315
+ }));
2316
+ }
2317
+ var service = {};
2318
+ // Normal service addition
2319
+ service = {
2055
2320
  is_deleted: false,
2056
2321
  order_service_list_id: id,
2057
2322
  new_id: largestId !== undefined && largestId !== null ? largestId + 1 : 1,
2058
2323
  id: largestId !== undefined && largestId !== null ? largestId + 1 : 1
2059
2324
  };
2325
+ // special case if assembly already exist and we are adding disassemble service and vice-versa
2326
+ if ((assemblyTypeService == null ? void 0 : assemblyTypeService.is_deleted) === false && (disassembleOrderService == null ? void 0 : disassembleOrderService.id) === id) {
2327
+ service = {
2328
+ is_deleted: false,
2329
+ order_service_list_id: id,
2330
+ new_id: largestId !== undefined && largestId !== null ? largestId + 1 : 1,
2331
+ id: largestId !== undefined && largestId !== null ? largestId + 1 : 1,
2332
+ service_category_id: assemblyTypeService == null ? void 0 : assemblyTypeService.service_category_id
2333
+ };
2334
+ }
2335
+ if ((disassemblyTypeService == null ? void 0 : disassemblyTypeService.is_deleted) === false && (assembleOrderService == null ? void 0 : assembleOrderService.id) === id) {
2336
+ service = {
2337
+ is_deleted: false,
2338
+ order_service_list_id: id,
2339
+ new_id: largestId !== undefined && largestId !== null ? largestId + 1 : 1,
2340
+ id: largestId !== undefined && largestId !== null ? largestId + 1 : 1,
2341
+ service_category_id: disassemblyTypeService == null ? void 0 : disassemblyTypeService.service_category_id
2342
+ };
2343
+ }
2060
2344
  clone.push(service);
2061
2345
  var _newData2 = _extends({}, orderDetails, {
2062
2346
  order_services: clone
@@ -2124,80 +2408,164 @@ var CreatedBy = /*#__PURE__*/styled.span(_templateObject2$p || (_templateObject2
2124
2408
  // `;
2125
2409
  var Container$s = /*#__PURE__*/styled.div(_templateObject3$c || (_templateObject3$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
2126
2410
 
2411
+ function useUpdateOrder() {
2412
+ var controller;
2413
+ var ssoToken = getCookie('id_token');
2414
+ var update = /*#__PURE__*/function () {
2415
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
2416
+ var endpoint, signal, requestOptions, response, json;
2417
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2418
+ while (1) switch (_context.prev = _context.next) {
2419
+ case 0:
2420
+ endpoint = getBaseEndpoint() + "/orders/update/";
2421
+ if (controller) {
2422
+ controller.abort();
2423
+ }
2424
+ // Create new AbortController
2425
+ controller = new AbortController();
2426
+ signal = controller.signal; // setLoading(true); // Set loading to true
2427
+ _context.prev = 4;
2428
+ requestOptions = {
2429
+ headers: {
2430
+ 'Content-Type': 'application/json',
2431
+ Authorization: "Bearer " + ssoToken
2432
+ },
2433
+ method: 'PUT',
2434
+ body: JSON.stringify(data),
2435
+ signal: signal
2436
+ };
2437
+ _context.next = 8;
2438
+ return fetch(endpoint, requestOptions);
2439
+ case 8:
2440
+ response = _context.sent;
2441
+ if (response.ok) {
2442
+ _context.next = 11;
2443
+ break;
2444
+ }
2445
+ throw new Error('response is not ok');
2446
+ case 11:
2447
+ _context.next = 13;
2448
+ return response.json();
2449
+ case 13:
2450
+ json = _context.sent;
2451
+ // alert('Order has been updated');
2452
+ notification.success({
2453
+ message: 'Success',
2454
+ description: 'Order has been updated.'
2455
+ });
2456
+ return _context.abrupt("return", json);
2457
+ case 18:
2458
+ _context.prev = 18;
2459
+ _context.t0 = _context["catch"](4);
2460
+ // setLoading(false);
2461
+ // console.log(err, 'error');
2462
+ notification.error({
2463
+ message: 'Error',
2464
+ description: "" + _context.t0 || 'An error has occurred. Please try again later.'
2465
+ });
2466
+ case 21:
2467
+ _context.prev = 21;
2468
+ return _context.finish(21);
2469
+ case 23:
2470
+ case "end":
2471
+ return _context.stop();
2472
+ }
2473
+ }, _callee, null, [[4, 18, 21, 23]]);
2474
+ }));
2475
+ return function update(_x) {
2476
+ return _ref.apply(this, arguments);
2477
+ };
2478
+ }();
2479
+ return update;
2480
+ }
2481
+
2127
2482
  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
2483
  function OrderDetailsFooter() {
2138
- // const [orderDetails, setOrderDetails] = useOrderDetails();
2139
- // const [prevOrderDetails, setPrevOrderDetails] = usePrevOrderDetails();
2140
- // const updateOrder = useUpdateOrder();
2141
- // const [errorState] = useAtom(errorAtom);
2142
- // const errorFound = () => {
2143
- // const isError =
2144
- // errorState.w3wError.length > 0 || errorState.emailError.length > 0;
2145
- // return isError;
2146
- // };
2147
- // const isDifferent = () => {
2148
- // const keysToRemovefromOrders = [
2149
- // 'order_locked',
2150
- // 'order_communications',
2151
- // 'updated_at',
2152
- // 'updated_by',
2153
- // 'order_services',
2154
- // ];
2155
- // const filteredOrderDetails = filterObject(
2156
- // orderDetails,
2157
- // keysToRemovefromOrders
2158
- // );
2159
- // const filteredPrevOrderDetails = filterObject(
2160
- // prevOrderDetails,
2161
- // keysToRemovefromOrders
2162
- // );
2163
- // const newOrderServices =
2164
- // orderDetails?.order_services?.length > 0 &&
2165
- // orderDetails.order_services.sort(
2166
- // (a: OrderServiceType, b: OrderServiceType) => a.id! - b.id!
2167
- // );
2168
- // const prevOrderServices =
2169
- // prevOrderDetails?.order_services?.length > 0 &&
2170
- // prevOrderDetails.order_services.sort(
2171
- // (a: OrderServiceType, b: OrderServiceType) => a.id! - b.id!
2172
- // );
2173
- // const newOrderServicesSorted = JSON.stringify(newOrderServices);
2174
- // const prevOrderServicesSorted = JSON.stringify(prevOrderServices);
2175
- // const orderDetailsSorted = JSON.stringify(filteredOrderDetails);
2176
- // const prevOrderDetailsSorted = JSON.stringify(filteredPrevOrderDetails);
2177
- // const isSame =
2178
- // orderDetailsSorted === prevOrderDetailsSorted &&
2179
- // newOrderServicesSorted === prevOrderServicesSorted;
2180
- // return !isSame;
2181
- // };
2182
- // const onSave = async () => {
2183
- // const payload = compareOrderDetailsStates(prevOrderDetails, orderDetails);
2184
- // const response = await updateOrder([payload]);
2185
- // if (response && response.data) {
2186
- // setOrderDetails(response.data[0]);
2187
- // setPrevOrderDetails(response.data[0]);
2188
- // }
2189
- // };
2190
- var onSave = function onSave() {
2191
- console.log('save');
2192
- };
2484
+ var _useOrderDetails = useOrderDetails(),
2485
+ orderDetails = _useOrderDetails[0],
2486
+ setOrderDetails = _useOrderDetails[1];
2487
+ var _usePrevOrderDetails = usePrevOrderDetails(),
2488
+ prevOrderDetails = _usePrevOrderDetails[0],
2489
+ setPrevOrderDetails = _usePrevOrderDetails[1];
2490
+ var _useCustomerInfo = useCustomerInfo(),
2491
+ setCustomerInfo = _useCustomerInfo[1];
2492
+ var updateOrder = useUpdateOrder();
2493
+ var _useAtom = useAtom(errorAtom),
2494
+ errorState = _useAtom[0];
2495
+ var _useLogsCallAPi = useLogsCallAPi(),
2496
+ setLogsCallAPi = _useLogsCallAPi[1];
2497
+ var _useApiCalling = useApiCalling(),
2498
+ setCallApi = _useApiCalling[1]; //single detail
2499
+ var errorFound = function errorFound() {
2500
+ 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;
2501
+ return isError;
2502
+ };
2503
+ var isDifferent = function isDifferent() {
2504
+ var _orderDetails$order_s, _prevOrderDetails$ord;
2505
+ var keysToRemovefromOrders = ['order_locked', 'order_communications', 'updated_at', 'updated_by', 'order_services'];
2506
+ var filteredOrderDetails = filterObject(orderDetails, keysToRemovefromOrders);
2507
+ var filteredPrevOrderDetails = filterObject(prevOrderDetails, keysToRemovefromOrders);
2508
+ 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) {
2509
+ return a.id - b.id;
2510
+ });
2511
+ var prevOrderServices = (prevOrderDetails == null || (_prevOrderDetails$ord = prevOrderDetails.order_services) == null ? void 0 : _prevOrderDetails$ord.length) > 0 && prevOrderDetails.order_services.sort(function (a, b) {
2512
+ return a.id - b.id;
2513
+ });
2514
+ var newOrderServicesSorted = JSON.stringify(newOrderServices);
2515
+ var prevOrderServicesSorted = JSON.stringify(prevOrderServices);
2516
+ var orderDetailsSorted = JSON.stringify(filteredOrderDetails);
2517
+ var prevOrderDetailsSorted = JSON.stringify(filteredPrevOrderDetails);
2518
+ var isSame = orderDetailsSorted === prevOrderDetailsSorted && newOrderServicesSorted === prevOrderServicesSorted;
2519
+ return !isSame;
2520
+ };
2521
+ var onSave = /*#__PURE__*/function () {
2522
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2523
+ var _response$data;
2524
+ var payload, response, _response$data$, _response$data$2;
2525
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2526
+ while (1) switch (_context.prev = _context.next) {
2527
+ case 0:
2528
+ payload = compareOrderDetailsStates(prevOrderDetails, orderDetails);
2529
+ _context.next = 3;
2530
+ return updateOrder([payload]);
2531
+ case 3:
2532
+ response = _context.sent;
2533
+ setLogsCallAPi(function (prev) {
2534
+ return !prev;
2535
+ });
2536
+ setCallApi(false);
2537
+ if (response && (response == null || (_response$data = response.data) == null ? void 0 : _response$data.length) > 0) {
2538
+ setOrderDetails(response == null ? void 0 : response.data[0]);
2539
+ setPrevOrderDetails(response == null ? void 0 : response.data[0]);
2540
+ setCustomerInfo({
2541
+ recipient_name: response == null || (_response$data$ = response.data[0]) == null || (_response$data$ = _response$data$.order_recipient) == null ? void 0 : _response$data$.recipient_name,
2542
+ 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
2543
+ });
2544
+ setTimeout(function () {
2545
+ setLogsCallAPi(true);
2546
+ setCallApi(true);
2547
+ }, 2000);
2548
+ } else {
2549
+ setLogsCallAPi(false);
2550
+ setCallApi(false);
2551
+ setOrderDetails(prevOrderDetails);
2552
+ }
2553
+ case 7:
2554
+ case "end":
2555
+ return _context.stop();
2556
+ }
2557
+ }, _callee);
2558
+ }));
2559
+ return function onSave() {
2560
+ return _ref.apply(this, arguments);
2561
+ };
2562
+ }();
2193
2563
  return React.createElement(Container$t, null, React.createElement(AllowTracking, null), React.createElement(Button$1, {
2194
- style: {
2195
- borderRadius: '20px'
2196
- },
2197
- onClick: onSave
2564
+ onClick: onSave,
2565
+ disabled: !isDifferent() || errorFound()
2198
2566
  }, "Save Details"));
2199
2567
  }
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 /* margin: 0px -15px -15px -15px; */\n border-radius: 0px 0px 8px 8px;\n /* margin-bottom: 22px; */\n position: relative;\n align-items: center;\n /* top: 21px; */\n"])));
2568
+ 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
2569
 
2202
2570
  var _templateObject$E, _templateObject2$q, _templateObject3$d;
2203
2571
  function ExpandedContent() {
@@ -2262,7 +2630,6 @@ function AddNote() {
2262
2630
  var location = useLocation();
2263
2631
  var pathname = location.pathname;
2264
2632
  var orderIdLocaation = pathname.split('/')[1];
2265
- // const [note, setNote] = useState('');
2266
2633
  var _useCallAPi = useCallAPi(),
2267
2634
  CallAPi = _useCallAPi[1];
2268
2635
  var ssoToken = getCookie('id_token');
@@ -2295,7 +2662,8 @@ function AddNote() {
2295
2662
  module_object_id: orderId || orderIdLocaation,
2296
2663
  action: 'create',
2297
2664
  description: noteText,
2298
- data_dump: '{}'
2665
+ data_dump: '{}',
2666
+ manual: 1
2299
2667
  }]
2300
2668
  };
2301
2669
  _context.prev = 6;
@@ -2320,7 +2688,7 @@ function AddNote() {
2320
2688
  });
2321
2689
  setNoteLoadingStore(true);
2322
2690
  setNoteText('');
2323
- setNoteLoadingStore(false);
2691
+ // setNoteLoadingStore(false);
2324
2692
  CallAPi(true);
2325
2693
  } else if (error) {
2326
2694
  // Error: Set error notification
@@ -2399,33 +2767,49 @@ var NotesTableData = [{
2399
2767
  tableBody: []
2400
2768
  }];
2401
2769
 
2402
- var _templateObject$G, _templateObject2$s;
2770
+ var _templateObject2$s, _templateObject3$f, _templateObject4$5, _templateObject12;
2771
+ 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"])));
2772
+ 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"])));
2773
+ 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"])));
2774
+ 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"])));
2775
+
2776
+ var _templateObject$G, _templateObject2$t, _templateObject3$g, _templateObject4$6, _templateObject5$2, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
2403
2777
  var GenericAuditLogsTable = function GenericAuditLogsTable() {
2404
2778
  var tableHeadData = NotesTableData[0].tableHead; // Assuming NotesTableData contains table header information
2405
2779
  var _usegetNotes = usegetNotes(),
2406
2780
  getNotes = _usegetNotes[0];
2407
2781
  var _UseNotesLoading = UseNotesLoading(),
2408
2782
  isLoading = _UseNotesLoading[0];
2409
- return React.createElement(ScrollableTableWrapper, null, React.createElement(AuditTableWrapper, null, React.createElement("table", null, React.createElement("thead", null, React.createElement("tr", null, tableHeadData.map(function (column) {
2410
- return React.createElement("th", {
2783
+ 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) {
2784
+ return React.createElement(Th, {
2411
2785
  key: column.key
2412
- }, column.label);
2413
- }))), React.createElement("tbody", null, isLoading ? React.createElement("tr", null, React.createElement("td", {
2786
+ }, React.createElement(IconCover, null, column.label));
2787
+ }))))), React.createElement(StyledTable, null, React.createElement("tbody", null, isLoading ? React.createElement("tr", null, React.createElement("td", {
2414
2788
  className: "noBoder",
2415
2789
  colSpan: tableHeadData == null ? void 0 : tableHeadData.length
2416
2790
  }, React.createElement(Skeleton, null))) : getNotes && (getNotes == null ? void 0 : getNotes.length) > 0 ? getNotes == null ? void 0 : getNotes.map(function (note) {
2417
- return React.createElement("tr", {
2791
+ return React.createElement(StyledTr, {
2418
2792
  key: note == null ? void 0 : note.id
2419
- }, React.createElement("td", null, React.createElement("div", {
2420
- className: "bold",
2793
+ }, React.createElement(DateTd, null, React.createElement(CreatedBy$1, {
2421
2794
  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("td", null, note == null ? void 0 : note.description));
2423
- }) : React.createElement("tr", null, React.createElement("td", {
2795
+ }, note == null ? void 0 : note.created_by), React.createElement("div", null, formatDateTime(note == null ? void 0 : note.created_at))), React.createElement(StyledTd, {
2796
+ dangerouslySetInnerHTML: {
2797
+ __html: note == null ? void 0 : note.description
2798
+ }
2799
+ }));
2800
+ }) : React.createElement("tr", null, React.createElement(NoDataFound, {
2424
2801
  colSpan: tableHeadData == null ? void 0 : tableHeadData.length
2425
2802
  }, "No data found"))))));
2426
2803
  };
2427
- var ScrollableTableWrapper = /*#__PURE__*/styled.div(_templateObject$G || (_templateObject$G = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
2428
- var AuditTableWrapper = /*#__PURE__*/styled.div(_templateObject2$s || (_templateObject2$s = /*#__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"])));
2804
+ 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"])));
2805
+ var DateTd = /*#__PURE__*/styled(Td)(_templateObject2$t || (_templateObject2$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6d6d6d;\n"])));
2806
+ 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"])));
2807
+ 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"])));
2808
+ var StyledTr = /*#__PURE__*/styled.tr(_templateObject5$2 || (_templateObject5$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &:nth-child(even) {\n background-color: #f3fbff;\n }\n"])));
2809
+ var StyledTd = /*#__PURE__*/styled(Td)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 10px;\n"])));
2810
+ var CreatedBy$1 = /*#__PURE__*/styled.div(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
2811
+ var ScrollableTableWrapper = /*#__PURE__*/styled.div(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 250px;\n min-height: 200px;\n overflow: auto;\n"])));
2812
+ 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
2813
 
2430
2814
  var _templateObject$H;
2431
2815
  // import CustomScrollBar from '../../../../common/scrollbar';
@@ -2434,7 +2818,7 @@ function AuditLogs() {
2434
2818
  }
2435
2819
  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
2820
 
2437
- var _templateObject$I, _templateObject2$t, _templateObject3$f;
2821
+ var _templateObject$I, _templateObject2$u, _templateObject3$h;
2438
2822
  function Notes() {
2439
2823
  var _usemoduleIds = usemoduleIds(),
2440
2824
  moduleIds = _usemoduleIds[0],
@@ -2450,8 +2834,8 @@ function Notes() {
2450
2834
  setNotes = _usegetNotes[1];
2451
2835
  var _useCallAPi = useCallAPi(),
2452
2836
  loderStatus = _useCallAPi[0];
2453
- // Declare `allIds` state to store the comma-separated IDs
2454
- // const [allIds, setAllIds] = useState<string | null>(null);
2837
+ var _SeteauditLogToggle = SeteauditLogToggle(),
2838
+ auditState = _SeteauditLogToggle[0];
2455
2839
  // Fetch module IDs
2456
2840
  var _useApiHook = useApiHook({
2457
2841
  endpoint: 'audit_logs/modules/',
@@ -2475,52 +2859,46 @@ function Notes() {
2475
2859
  };
2476
2860
  });
2477
2861
  })) || [];
2478
- // console.log(modules, 'modulesmodules');
2479
- // const ids = modules?.map((module: any) => module.id).join(',');
2480
- // setAllIds(ids);
2481
- // console.log(ids, 'allIds');
2482
2862
  var orderNoteModule = modules == null ? void 0 : modules.find(function (module) {
2483
2863
  return (module == null ? void 0 : module.name) === 'ORDER-NOTE';
2484
2864
  });
2485
2865
  setModuleIds(orderNoteModule || modules[0] || null);
2486
2866
  }
2487
2867
  }, [apiLoading, fetchedData]);
2488
- // Fetch Notes Data when `allIds` is available
2489
2868
  var _useApiHook2 = useApiHook({
2490
- // Use `allIds` in the endpoint if it's set
2491
- endpoint: "audit_logs/?module_id=" + (moduleIds == null ? void 0 : moduleIds.parentId) + "&module_object_id=" + (orderId || orderIdLocaation) + "\n ",
2869
+ endpoint: "audit_logs/?module_id=" + (moduleIds == null ? void 0 : moduleIds.parentId) + "&module_object_id=" + (orderId || orderIdLocaation),
2492
2870
  method: 'GET',
2493
2871
  performAction: false
2494
2872
  }),
2495
2873
  NotesData = _useApiHook2.data,
2496
2874
  NotesLoading = _useApiHook2.loading,
2497
2875
  setShouldPerformAction = _useApiHook2.setShouldPerformAction;
2498
- // &sub_module_ids=${allIds}
2499
2876
  useEffect(function () {
2500
2877
  setNoteLoadingStore(true);
2501
2878
  if (moduleIds) {
2502
- // Ensure `allIds` is set
2503
- setShouldPerformAction(true);
2879
+ setShouldPerformAction(auditState);
2504
2880
  }
2505
2881
  if (!NotesLoading && NotesData != null && NotesData.data) {
2506
- var updatedData = NotesData == null ? void 0 : NotesData.data
2507
- // .filter((item: any) => item['ORDER-NOTE'] || item['ORDER'])
2508
- // .map((item: any) => [item['ORDER-NOTE'], item['ORDER']])
2509
- .flat().filter(Boolean);
2882
+ var updatedData = NotesData == null ? void 0 : NotesData.data.filter(function (item) {
2883
+ return item['ORDER-NOTE'] || item['ORDER'];
2884
+ }).map(function (item) {
2885
+ return [item['ORDER-NOTE'], item['ORDER']];
2886
+ }).flat().filter(Boolean);
2510
2887
  var combinedArray = updatedData.flat();
2511
2888
  combinedArray.sort(function (a, b) {
2512
2889
  return new Date(b.created_at).getTime() - new Date(a.created_at).getTime();
2513
2890
  });
2514
2891
  setNotes(combinedArray);
2892
+ setNotes(combinedArray);
2515
2893
  setNoteLoadingStore(NotesLoading);
2516
2894
  loderStatus ? setShouldPerformAction(true) : setShouldPerformAction(false);
2517
2895
  }
2518
- }, [moduleIds, NotesLoading, loderStatus]); // Add `allIds` to dependencies
2896
+ }, [moduleIds, NotesLoading, auditState]);
2519
2897
  return React.createElement(Container$x, null, React.createElement(CardHeader, null, "NOTES"), React.createElement(CustomizedFormSection, null, React.createElement(AddNote, null), React.createElement(AuditLogs, null)));
2520
2898
  }
2521
2899
  var Container$x = /*#__PURE__*/styled.div(_templateObject$I || (_templateObject$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 5px;\n"])));
2522
- var CardHeader = /*#__PURE__*/styled.div(_templateObject2$t || (_templateObject2$t = /*#__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"])));
2523
- var CustomizedFormSection = /*#__PURE__*/styled.div(_templateObject3$f || (_templateObject3$f = /*#__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"])));
2900
+ 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"])));
2901
+ 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
2902
 
2525
2903
  var _templateObject$J;
2526
2904
  function CollapsedContent() {
@@ -2544,7 +2922,7 @@ function ChevronUp(props) {
2544
2922
  }));
2545
2923
  }
2546
2924
 
2547
- var _templateObject$K, _templateObject2$u, _templateObject3$g, _templateObject4$5, _templateObject5$2, _templateObject6, _templateObject7, _templateObject8;
2925
+ var _templateObject$K, _templateObject2$v, _templateObject3$i, _templateObject4$7, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1;
2548
2926
  function CollapsableForm(props) {
2549
2927
  var _useState = useState(true),
2550
2928
  isExpanded = _useState[0],
@@ -2564,20 +2942,20 @@ function CollapsableForm(props) {
2564
2942
  isExpanded: isExpanded
2565
2943
  }, React.createElement(ChevronUp, null))))), isExpanded && React.createElement(CustomizedFormSection$1, null, React.createElement(ExpandedContent$1, null, props.children)));
2566
2944
  }
2567
- var CustomizedFormSection$1 = /*#__PURE__*/styled.div(_templateObject$K || (_templateObject$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n background: #ffffff;\n padding: 15px;\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"])));
2568
- var CardHeader$1 = /*#__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 font-family: 'Roboto', sans-serif;\n font-weight: 600;\n"])));
2569
- var Text$2 = /*#__PURE__*/styled.span(_templateObject3$g || (_templateObject3$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 14px;\n color: #3a3630;\n font-weight: 500;\n font-family: 'lato', sans-serif;\n cursor: pointer;\n"])));
2570
- var Container$y = /*#__PURE__*/styled.div(_templateObject4$5 || (_templateObject4$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n align-items: center;\n"])));
2571
- var MainContainer$4 = /*#__PURE__*/styled.div(_templateObject5$2 || (_templateObject5$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0;\n"])));
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: 20px;\n height: 20px;\n padding: 0px;\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) {
2945
+ 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"])));
2946
+ 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"])));
2947
+ 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"])));
2948
+ var Container$y = /*#__PURE__*/styled.div(_templateObject4$7 || (_templateObject4$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n align-items: center;\n"])));
2949
+ var MainContainer$4 = /*#__PURE__*/styled.div(_templateObject5$3 || (_templateObject5$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0;\n"])));
2950
+ 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
2951
  return props.isExpanded ? '360deg' : '180deg';
2574
2952
  });
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"])));
2953
+ var ExpandedContent$1 = /*#__PURE__*/styled.div(_templateObject7$1 || (_templateObject7$1 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
2954
+ 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
2955
 
2578
2956
  var _templateObject$L;
2579
2957
  function Order() {
2580
- return React.createElement(Table, null, React.createElement(CollapsableForm, {
2958
+ return React.createElement(Table$1, null, React.createElement(CollapsableForm, {
2581
2959
  collapsedContent: React.createElement(CollapsedContent, null)
2582
2960
  }, React.createElement(Alert, {
2583
2961
  description: "",
@@ -2587,16 +2965,44 @@ function Order() {
2587
2965
  showOkButton: false
2588
2966
  })));
2589
2967
  }
2590
- var Table = /*#__PURE__*/styled.div(_templateObject$L || (_templateObject$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
2968
+ var Table$1 = /*#__PURE__*/styled.div(_templateObject$L || (_templateObject$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
2969
+
2970
+ var _templateObject$M;
2971
+ // import styled from 'styled-components';
2972
+ function CollapsedContent$2() {
2973
+ return React.createElement(Font$1, null, "TOOLBOX RESOURCES");
2974
+ }
2975
+ 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"])));
2976
+
2977
+ var _templateObject$N;
2978
+ function Toolbox() {
2979
+ var _orderToolbox$data, _orderToolbox$data$;
2980
+ var _useOrderProductsTool = useOrderProductsToolbox(),
2981
+ orderToolbox = _useOrderProductsTool[0];
2982
+ 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 : '';
2983
+ return React.createElement(StyledTable$1, null, React.createElement(CollapsableForm, {
2984
+ collapsedContent: React.createElement(CollapsedContent$2, null)
2985
+ }, React.createElement("div", {
2986
+ style: {
2987
+ overflow: 'auto'
2988
+ }
2989
+ }), React.createElement("div", {
2990
+ className: "tableStyle",
2991
+ dangerouslySetInnerHTML: {
2992
+ __html: htmlContent
2993
+ }
2994
+ })));
2995
+ }
2996
+ 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
2997
 
2592
- var _templateObject$M;
2998
+ var _templateObject$O;
2593
2999
  // import styled from 'styled-components';
2594
3000
  function SystemCollapsedContent() {
2595
- return React.createElement(Font$1, null, "SYSTEM EVENT LOGS");
3001
+ return React.createElement(Font$2, null, "SYSTEM EVENT LOGS");
2596
3002
  }
2597
- 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: 20px; /* 150% */\n"])));
3003
+ 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
3004
 
2599
- var _templateObject$N, _templateObject2$v, _templateObject3$h;
3005
+ var _templateObject$P, _templateObject2$w, _templateObject3$j;
2600
3006
  function CustomScrollBar(props) {
2601
3007
  var children = props.children,
2602
3008
  _props$thumbHeight = props.thumbHeight,
@@ -2614,11 +3020,11 @@ function CustomScrollBar(props) {
2614
3020
  }
2615
3021
  }, children);
2616
3022
  }
2617
- var ThumbVertical = /*#__PURE__*/styled.div(_templateObject$N || (_templateObject$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #586164;\n border-radius: 66px;\n width: 2px !important; // to overide styles\n margin-top: 60px;\n"])));
2618
- var View = /*#__PURE__*/styled.div(_templateObject2$v || (_templateObject2$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: hidden;\n"])));
2619
- var TrackHorizontal = /*#__PURE__*/styled.div(_templateObject3$h || (_templateObject3$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n"])));
3023
+ 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"])));
3024
+ var View = /*#__PURE__*/styled.div(_templateObject2$w || (_templateObject2$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: hidden;\n"])));
3025
+ var TrackHorizontal = /*#__PURE__*/styled.div(_templateObject3$j || (_templateObject3$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n"])));
2620
3026
 
2621
- var _templateObject$O, _templateObject2$w, _templateObject3$i, _templateObject4$6, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9;
3027
+ var _templateObject$Q, _templateObject2$x, _templateObject3$k, _templateObject4$8, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$1;
2622
3028
  function DynamicTable(_ref) {
2623
3029
  var columns = _ref.columns,
2624
3030
  data = _ref.data;
@@ -2639,7 +3045,7 @@ function DynamicTable(_ref) {
2639
3045
  var smallColumns = ['types', 'sources', 'event', 'code', 'type', 'route', 'category', 'action'];
2640
3046
  var mediumColumns = ['date'];
2641
3047
  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$1, null, React.createElement(TableHead, null, headerGroups.map(function (headerGroup) {
3048
+ 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
3049
  return React.createElement(TableRow, {
2644
3050
  key: headerGroup.id
2645
3051
  }, headerGroup.headers.map(function (header) {
@@ -2664,17 +3070,17 @@ function DynamicTable(_ref) {
2664
3070
  // transform: rotate(180deg);
2665
3071
  // cursor: pointer;
2666
3072
  // `;
2667
- var Container$z = /*#__PURE__*/styled.div(_templateObject$O || (_templateObject$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 30vh;\n pointer-events: initial;\n @media (max-width: 1024px) {\n height: 40vh;\n }\n"])));
2668
- var TableWrapper = /*#__PURE__*/styled.div(_templateObject2$w || (_templateObject2$w = /*#__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"])));
2669
- var TableHeadData = /*#__PURE__*/styled.th(_templateObject3$i || (_templateObject3$i = /*#__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"])));
2670
- var TableData = /*#__PURE__*/styled.td(_templateObject4$6 || (_templateObject4$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-spacing: 0px;\n padding: 20px;\n font-family: 'Lato', sans-serif;\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n letter-spacing: 0px;\n"])));
2671
- var TableRow = /*#__PURE__*/styled.tr(_templateObject5$3 || (_templateObject5$3 = /*#__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"])));
2672
- var TableBody = /*#__PURE__*/styled.tbody(_templateObject6$1 || (_templateObject6$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom-right-radius: 10px;\n background: rgb(255, 255, 255);\n height: 96%;\n overflow: auto;\n width: 100%;\n"])));
2673
- var TableHead = /*#__PURE__*/styled.thead(_templateObject7$1 || (_templateObject7$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0px;\n z-index: 1;\n background: #f8f8f8;\n white-space: nowrap;\n"])));
2674
- var Table$1 = /*#__PURE__*/styled.table(_templateObject8$1 || (_templateObject8$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: 50%;\n background: rgb(255, 255, 255);\n box-shadow: 0px 4px 30px 0px #2e2d740d;\n"])));
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$P, _templateObject2$x;
3073
+ 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"])));
3074
+ 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"])));
3075
+ 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"])));
3076
+ 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"])));
3077
+ 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"])));
3078
+ 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"])));
3079
+ 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"])));
3080
+ 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"])));
3081
+ 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"])));
3082
+
3083
+ var _templateObject$R, _templateObject2$y;
2678
3084
  function Event(props) {
2679
3085
  var _props$row;
2680
3086
  var data = props == null || (_props$row = props.row) == null ? void 0 : _props$row.original.event_information_id;
@@ -2689,8 +3095,8 @@ function Event(props) {
2689
3095
  };
2690
3096
  return React.createElement(RowContainer, null, React.createElement(Row, null, getDescription(data)));
2691
3097
  }
2692
- var RowContainer = /*#__PURE__*/styled.div(_templateObject$P || (_templateObject$P = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
2693
- var Row = /*#__PURE__*/styled.div(_templateObject2$x || (_templateObject2$x = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3098
+ var RowContainer = /*#__PURE__*/styled.div(_templateObject$R || (_templateObject$R = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3099
+ var Row = /*#__PURE__*/styled.div(_templateObject2$y || (_templateObject2$y = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
2694
3100
 
2695
3101
  //to change data into options
2696
3102
  var transformOption = function transformOption(option, key) {
@@ -2737,25 +3143,25 @@ var priorityData = [{
2737
3143
  color: '#E95252'
2738
3144
  }];
2739
3145
 
2740
- var _templateObject$Q, _templateObject2$y;
3146
+ var _templateObject$S, _templateObject2$z;
2741
3147
  function Date$1(props) {
2742
3148
  var _props$row;
2743
3149
  var data = props == null || (_props$row = props.row) == null ? void 0 : _props$row.original.created_at;
2744
3150
  return React.createElement(RowContainer$1, null, React.createElement(Row$1, null, formatDate(data)));
2745
3151
  }
2746
- var RowContainer$1 = /*#__PURE__*/styled.div(_templateObject$Q || (_templateObject$Q = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
2747
- var Row$1 = /*#__PURE__*/styled.div(_templateObject2$y || (_templateObject2$y = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3152
+ var RowContainer$1 = /*#__PURE__*/styled.div(_templateObject$S || (_templateObject$S = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3153
+ var Row$1 = /*#__PURE__*/styled.div(_templateObject2$z || (_templateObject2$z = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
2748
3154
 
2749
- var _templateObject$R, _templateObject2$z;
3155
+ var _templateObject$T, _templateObject2$A;
2750
3156
  function Code(props) {
2751
3157
  var _props$row;
2752
3158
  var data = props == null || (_props$row = props.row) == null ? void 0 : _props$row.original.event_code;
2753
3159
  return React.createElement(RowContainer$2, null, React.createElement(Row$2, null, data));
2754
3160
  }
2755
- var RowContainer$2 = /*#__PURE__*/styled.div(_templateObject$R || (_templateObject$R = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
2756
- var Row$2 = /*#__PURE__*/styled.div(_templateObject2$z || (_templateObject2$z = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3161
+ var RowContainer$2 = /*#__PURE__*/styled.div(_templateObject$T || (_templateObject$T = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3162
+ var Row$2 = /*#__PURE__*/styled.div(_templateObject2$A || (_templateObject2$A = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
2757
3163
 
2758
- var _templateObject$S, _templateObject2$A;
3164
+ var _templateObject$U, _templateObject2$B;
2759
3165
  function Note(props) {
2760
3166
  var _props$row;
2761
3167
  var data = props == null || (_props$row = props.row) == null || (_props$row = _props$row.original) == null ? void 0 : _props$row.event_notes;
@@ -2763,8 +3169,8 @@ function Note(props) {
2763
3169
  title: data
2764
3170
  }, React.createElement(Row$3, null, data));
2765
3171
  }
2766
- var RowContainer$3 = /*#__PURE__*/styled.div(_templateObject$S || (_templateObject$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-block;\n max-width: 200px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
2767
- var Row$3 = /*#__PURE__*/styled.div(_templateObject2$A || (_templateObject2$A = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3172
+ 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"])));
3173
+ var Row$3 = /*#__PURE__*/styled.div(_templateObject2$B || (_templateObject2$B = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
2768
3174
 
2769
3175
  var tableColumns = [{
2770
3176
  header: 'Date',
@@ -2867,16 +3273,15 @@ function useGetEventNotes() {
2867
3273
  return perform;
2868
3274
  }
2869
3275
 
2870
- var _templateObject$T;
3276
+ var _templateObject$V;
2871
3277
  function SystemLogs() {
2872
3278
  var _useOrderProductSyste = useOrderProductSystemLogs(),
2873
3279
  systemLogs = _useOrderProductSyste[0];
2874
- var _useOrderDetails = useOrderDetails(),
2875
- orderDetails = _useOrderDetails[0];
3280
+ // const [orderDetails] = useOrderDetails();
2876
3281
  var systemLogsData = useGetEventNotes();
2877
3282
  var _useEventNotesData = useEventNotesData(),
2878
3283
  setNotesData = _useEventNotesData[1];
2879
- var gsitId = orderDetails == null ? void 0 : orderDetails.gsit_order_id;
3284
+ // const gsitId = orderDetails?.gsit_order_id;
2880
3285
  var fetchReminderData = /*#__PURE__*/function () {
2881
3286
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2882
3287
  var result;
@@ -2896,10 +3301,9 @@ function SystemLogs() {
2896
3301
  case 7:
2897
3302
  _context.prev = 7;
2898
3303
  _context.t0 = _context["catch"](0);
2899
- // console.error('Error fetching event notes:', error);
2900
3304
  notification.error({
2901
3305
  message: 'Error',
2902
- description: "" + _context.t0 || 'An error has occurred. Please try again later.'
3306
+ description: "" + _context.t0 || 'Error fetching event notes:'
2903
3307
  });
2904
3308
  case 10:
2905
3309
  case "end":
@@ -2912,18 +3316,16 @@ function SystemLogs() {
2912
3316
  };
2913
3317
  }();
2914
3318
  useEffect(function () {
2915
- if (gsitId) {
2916
- fetchReminderData();
2917
- }
2918
- }, [gsitId, setNotesData]);
2919
- return React.createElement(Table$2, null, React.createElement(CollapsableForm, {
3319
+ fetchReminderData();
3320
+ }, [setNotesData]);
3321
+ return React.createElement(Table$3, null, React.createElement(CollapsableForm, {
2920
3322
  collapsedContent: React.createElement(SystemCollapsedContent, null)
2921
3323
  }, React.createElement(DynamicTable, {
2922
3324
  columns: tableColumns,
2923
3325
  data: systemLogs
2924
3326
  })));
2925
3327
  }
2926
- var Table$2 = /*#__PURE__*/styled.div(_templateObject$T || (_templateObject$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
3328
+ var Table$3 = /*#__PURE__*/styled.div(_templateObject$V || (_templateObject$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
2927
3329
 
2928
3330
  var StatusOptions = [{
2929
3331
  label: 'Released',
@@ -3080,19 +3482,10 @@ function ConfirmedIcon() {
3080
3482
  }))));
3081
3483
  }
3082
3484
 
3083
- var _templateObject$U, _templateObject2$B, _templateObject3$j, _templateObject4$7;
3084
- // import { useStatusDetails } from '../store';
3485
+ var _templateObject$W, _templateObject2$C, _templateObject3$l, _templateObject4$9;
3085
3486
  function Status() {
3086
- // const [orderStatus] = useStatusDetails();
3087
- var orderStatus = [{
3088
- released: true,
3089
- received: 'True',
3090
- routed: true,
3091
- scheduled: true,
3092
- confirmed: false,
3093
- delivered: true,
3094
- completed: false
3095
- }];
3487
+ var _useStatusDetails = useStatusDetails(),
3488
+ orderStatus = _useStatusDetails[0];
3096
3489
  return React.createElement(Container$A, null, React.createElement(BoxContainer, null, StatusOptions.map(function (option, index) {
3097
3490
  return React.createElement(React.Fragment, {
3098
3491
  key: index
@@ -3104,6 +3497,9 @@ var renderIcon = function renderIcon(value, orderStatus) {
3104
3497
  if (!status) {
3105
3498
  return null;
3106
3499
  }
3500
+ if (!status) {
3501
+ return null;
3502
+ }
3107
3503
  switch (value) {
3108
3504
  case 'released':
3109
3505
  case 'scheduled':
@@ -3113,16 +3509,18 @@ var renderIcon = function renderIcon(value, orderStatus) {
3113
3509
  case 'received':
3114
3510
  if (status.received === 'True') {
3115
3511
  return React.createElement(SuccessIcon, null);
3116
- } else if (status.received === 'partially') {
3512
+ } else if (status.received === 'Partial') {
3117
3513
  return React.createElement(RouteIcon, null);
3118
3514
  } else {
3119
3515
  return React.createElement(ConfirmedIcon, null);
3120
3516
  }
3121
3517
  case 'delivered':
3122
3518
  if (status.delivered && (status.completed === false || status.completed === null)) {
3123
- return React.createElement(DeliveredIcon, null);
3124
- } else if (status.delivered && status.completed) {
3519
+ return React.createElement(DeliveredIcon, null); //grey
3520
+ } else if (status.delivered === true && status.completed === true) {
3125
3521
  return React.createElement(SuccessIcon, null);
3522
+ } else if (status.delivered === true && status.completed === false) {
3523
+ return React.createElement(RouteIcon, null);
3126
3524
  } else {
3127
3525
  return React.createElement(ConfirmedIcon, null);
3128
3526
  }
@@ -3130,22 +3528,22 @@ var renderIcon = function renderIcon(value, orderStatus) {
3130
3528
  return null;
3131
3529
  }
3132
3530
  };
3133
- var BoxContainer = /*#__PURE__*/styled.div(_templateObject$U || (_templateObject$U = /*#__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"])));
3134
- var Heading = /*#__PURE__*/styled.div(_templateObject2$B || (_templateObject2$B = /*#__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"])));
3135
- var Container$A = /*#__PURE__*/styled.div(_templateObject3$j || (_templateObject3$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 35px;\n"])));
3136
- var TextContainer$1 = /*#__PURE__*/styled.div(_templateObject4$7 || (_templateObject4$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 10px;\n display: flex;\n align-items: center;\n"])));
3531
+ 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"])));
3532
+ 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"])));
3533
+ var Container$A = /*#__PURE__*/styled.div(_templateObject3$l || (_templateObject3$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px;\n"])));
3534
+ var TextContainer$1 = /*#__PURE__*/styled.div(_templateObject4$9 || (_templateObject4$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 10px;\n display: flex;\n align-items: center;\n"])));
3137
3535
 
3138
- var _templateObject$V;
3536
+ var _templateObject$X;
3139
3537
  // import LockOrder from './LockOrder';
3140
3538
  function GeneralHeader() {
3141
3539
  return React.createElement(Section, null, React.createElement(Status, null));
3142
3540
  }
3143
- var Section = /*#__PURE__*/styled.div(_templateObject$V || (_templateObject$V = /*#__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"])));
3541
+ 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
3542
 
3145
3543
  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"])));
3544
+ 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
3545
  // Styled components
3148
- var StyledTableWrapper = /*#__PURE__*/styled.div(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: auto;\n max-height: calc(100vh - 396px);\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"])));
3546
+ 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
3547
  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
3548
 
3151
3549
  var ActionIcon = function ActionIcon() {
@@ -3230,47 +3628,91 @@ var ReturnProductTable = function ReturnProductTable() {
3230
3628
  var _useSelectedOrders = useSelectedOrders(),
3231
3629
  selectedInvoices = _useSelectedOrders[0];
3232
3630
  var _useState = useState(false),
3233
- selectAll = _useState[0];
3631
+ selectAll = _useState[0],
3632
+ setSelectAll = _useState[1];
3234
3633
  var _useProductDetails = useProductDetails(),
3235
- productData = _useProductDetails[0];
3236
- // const handleSelectAll = (e: any) => {
3237
- // setSelectAll(e.target.checked);
3238
- // if (e.target.checked) {
3239
- // setSelectedInvoices(
3240
- // productData.map((invoice: any) => ({
3241
- // id: invoice.id,
3242
- // status_id: 3,
3243
- // }))
3244
- // );
3245
- // } else {
3246
- // setSelectedInvoices([]);
3247
- // }
3248
- // };
3634
+ productData = _useProductDetails[0],
3635
+ setProductData = _useProductDetails[1];
3636
+ var _useState2 = useState(null),
3637
+ selectedRowId = _useState2[0],
3638
+ setSelectedRowId = _useState2[1];
3639
+ var _useOrderId = useOrderId(),
3640
+ orderId = _useOrderId[0];
3641
+ var handleActionClick = useCallback(function (id) {
3642
+ setSelectedRowId(id);
3643
+ }, []);
3644
+ var _useApiHook = useApiHook({
3645
+ endpoint: "order/order_products/delete/",
3646
+ method: 'DELETE',
3647
+ body: [{
3648
+ id: selectedRowId,
3649
+ order_id: orderId
3650
+ }],
3651
+ performAction: false
3652
+ }),
3653
+ isresponse = _useApiHook.data,
3654
+ setaction = _useApiHook.setShouldPerformAction;
3655
+ useEffect(function () {
3656
+ if (isresponse && isresponse.data) {
3657
+ handleRemoveRow();
3658
+ setSelectedRowId(null);
3659
+ }
3660
+ }, [isresponse]);
3661
+ var handleRemoveRow = useCallback(function () {
3662
+ if (selectedRowId !== null) {
3663
+ setProductData(function (prevData) {
3664
+ return prevData.filter(function (item) {
3665
+ return item.id !== selectedRowId;
3666
+ });
3667
+ });
3668
+ }
3669
+ }, [selectedRowId, setProductData]);
3670
+ var onDeleteProducts = useCallback(function () {
3671
+ setaction(true);
3672
+ }, [setaction, selectedRowId]);
3673
+ var handleSelectAll = useCallback(function () {
3674
+ setSelectAll(function (prevSelectAll) {
3675
+ return !prevSelectAll;
3676
+ });
3677
+ }, []);
3249
3678
  return React.createElement("div", null, React.createElement(StyledTableWrapper, {
3250
3679
  id: "tableScrolling"
3251
- }, React.createElement(StyledTable, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
3680
+ }, React.createElement(StyledTable$2, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
3252
3681
  className: "emailInvoiceCheckbox"
3253
3682
  }, React.createElement(Checkbox$1, {
3254
3683
  checked: selectAll,
3255
- onChange: function onChange() {}
3256
- })), 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 == null ? void 0 : productData.map(function (invoice) {
3684
+ onChange: handleSelectAll
3685
+ })), 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
3686
  return React.createElement("tr", {
3258
3687
  key: invoice.id
3259
3688
  }, React.createElement("td", null, React.createElement(Checkbox$1, {
3260
- checked: selectedInvoices == null ? void 0 : selectedInvoices.some(function (selectedInvoice) {
3261
- return (selectedInvoice == null ? void 0 : selectedInvoice.id) === invoice.id;
3689
+ checked: selectedInvoices.some(function (selectedInvoice) {
3690
+ return selectedInvoice.id === invoice.id;
3262
3691
  })
3263
- })), React.createElement("td", null, 'N/A'), React.createElement("td", null, 'N/A'), React.createElement("td", null, invoice == null ? void 0 : invoice.code), React.createElement("td", null, invoice == null ? void 0 : invoice.description), React.createElement("td", null, 'N/A'), React.createElement("td", null, "1 of 1"), React.createElement("td", null, React.createElement(ActionIcon, null)));
3264
- })))));
3692
+ })), 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", {
3693
+ onClick: function onClick() {
3694
+ handleActionClick(invoice.id);
3695
+ onDeleteProducts();
3696
+ },
3697
+ style: {
3698
+ cursor: 'pointer'
3699
+ }
3700
+ }, React.createElement(ActionIcon, null))));
3701
+ }) : React.createElement("tr", null, React.createElement("td", {
3702
+ colSpan: 8,
3703
+ style: {
3704
+ textAlign: 'center'
3705
+ }
3706
+ }, "No records found"))))));
3265
3707
  };
3266
3708
 
3267
- var _templateObject$W;
3709
+ var _templateObject$Y;
3268
3710
  var ProductTable = function ProductTable() {
3269
3711
  return React.createElement(Container$B, null, React.createElement(ReturnProductTable, null));
3270
3712
  };
3271
- var Container$B = /*#__PURE__*/styled.div(_templateObject$W || (_templateObject$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 230px; /* Set height to limit container size */\n overflow: auto; /* Enable scrolling */\n scrollbar-width: thin;\n"])));
3713
+ 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
3714
 
3273
- var _templateObject$X, _templateObject2$C, _templateObject3$k;
3715
+ var _templateObject$Z, _templateObject2$D, _templateObject3$m;
3274
3716
  function ExpandedContent$2() {
3275
3717
  var SaveNote = function SaveNote() {
3276
3718
  // alert('saved');
@@ -3286,15 +3728,15 @@ function ExpandedContent$2() {
3286
3728
  onClick: SaveNote
3287
3729
  }, "SAVE Details"))));
3288
3730
  }
3289
- var MidConatiner = /*#__PURE__*/styled.div(_templateObject$X || (_templateObject$X = /*#__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"])));
3290
- var SaveNoteContainer$1 = /*#__PURE__*/styled.div(_templateObject2$C || (_templateObject2$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n gap: 10px;\n"])));
3291
- var Container$C = /*#__PURE__*/styled.div(_templateObject3$k || (_templateObject3$k = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3731
+ 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"])));
3732
+ var SaveNoteContainer$1 = /*#__PURE__*/styled.div(_templateObject2$D || (_templateObject2$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n gap: 10px;\n"])));
3733
+ var Container$C = /*#__PURE__*/styled.div(_templateObject3$m || (_templateObject3$m = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3292
3734
 
3293
- var _templateObject$Y;
3735
+ var _templateObject$_;
3294
3736
  // import ModalManager from '../../modalsPopup/ModalManager';
3295
3737
  // import { countReducerAtom, useProductDetails } from '../../store';
3296
3738
  // import { useAtom } from 'jotai';
3297
- function CollapsedContent$2() {
3739
+ function CollapsedContent$3() {
3298
3740
  // const [, dispatch] = useAtom(countReducerAtom);
3299
3741
  // const [productdata] = useProductDetails();
3300
3742
  // const totalItems = productdata?.length;
@@ -3360,7 +3802,7 @@ function CollapsedContent$2() {
3360
3802
  // align-items: center;
3361
3803
  // gap: 30px;
3362
3804
  // `;
3363
- var Container$D = /*#__PURE__*/styled.div(_templateObject$Y || (_templateObject$Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n gap: 30px;\n"])));
3805
+ 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
3806
 
3365
3807
  // Dropdown
3366
3808
  var PrintOptionTOggle = /*#__PURE__*/atom(null);
@@ -3454,26 +3896,143 @@ function ProductsInfo() {
3454
3896
  }
3455
3897
  }, [fetchedData, loading]);
3456
3898
  return React.createElement(CollapsableForm, {
3457
- collapsedContent: React.createElement(CollapsedContent$2, null)
3899
+ collapsedContent: React.createElement(CollapsedContent$3, null)
3458
3900
  }, React.createElement(ExpandedContent$2, null));
3459
3901
  }
3460
3902
 
3461
- var _templateObject$Z;
3903
+ var _templateObject$$;
3904
+ // import styled from 'styled-components';
3905
+ function TomTomCollapsedContent() {
3906
+ return React.createElement(Font$3, null, "TOMTOM LOGS");
3907
+ }
3908
+ 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"])));
3909
+
3910
+ var options = [{
3911
+ label: 'Task',
3912
+ value: 'task',
3913
+ selectedBackgroundColor: '#F0F2F2',
3914
+ selectedFontColor: '#3a3630'
3915
+ }, {
3916
+ label: 'Reminder',
3917
+ value: 'reminder',
3918
+ selectedBackgroundColor: 'white',
3919
+ selectedFontColor: '#3a3630'
3920
+ }];
3921
+ var ReturnData = [{
3922
+ label: 'Return1',
3923
+ value: 'return1'
3924
+ }, {
3925
+ label: 'Return2',
3926
+ value: 'return2'
3927
+ }, {
3928
+ label: 'Return3',
3929
+ value: 'return3'
3930
+ }];
3931
+ var TaskType = [{
3932
+ label: 'Client',
3933
+ value: 'client'
3934
+ }, {
3935
+ label: 'Customer Service (CS)',
3936
+ value: 'cs'
3937
+ }, {
3938
+ label: 'Transport (DH)',
3939
+ value: 'dh'
3940
+ }, {
3941
+ label: 'Warehouse',
3942
+ value: 'warehouse'
3943
+ }, {
3944
+ label: 'Customer Portal',
3945
+ value: 'customer-portal'
3946
+ }, {
3947
+ label: 'Delivery App',
3948
+ value: 'delivery-app'
3949
+ }, {
3950
+ label: 'Complaints',
3951
+ value: 'complaints'
3952
+ }, {
3953
+ label: 'Offshore',
3954
+ value: 'offshore'
3955
+ }, {
3956
+ label: 'Stock Admin',
3957
+ value: 'stock-admin'
3958
+ }, {
3959
+ label: 'Call Customer',
3960
+ value: 'call-customer'
3961
+ }, {
3962
+ label: 'Driver Compliance',
3963
+ value: 'driver-compliance'
3964
+ }];
3965
+ var CustomOptions = [{
3966
+ label: 'Private',
3967
+ value: 'private'
3968
+ }, {
3969
+ label: 'Public',
3970
+ value: 'public'
3971
+ }];
3972
+ var DefectConfirm = [{
3973
+ label: 'Yes',
3974
+ value: 'yes'
3975
+ }, {
3976
+ label: 'No',
3977
+ value: 'no'
3978
+ }];
3979
+ var TomTomColumns = [{
3980
+ header: 'Event Date',
3981
+ accessorKey: 'eventdate'
3982
+ }, {
3983
+ header: 'Route',
3984
+ accessorKey: 'route'
3985
+ }, {
3986
+ header: 'Details',
3987
+ accessorKey: 'details'
3988
+ }, {
3989
+ header: 'Type',
3990
+ accessorKey: 'type'
3991
+ }];
3992
+ var tomtomResources = [{
3993
+ route: 'Hammer',
3994
+ details: 'Sent to Object; RYF',
3995
+ eventdate: '2024-06-01',
3996
+ type: 'workFlow'
3997
+ }, {
3998
+ route: 'Screwdriver',
3999
+ details: 'Sent to Object; RYF',
4000
+ eventdate: '2024-06-10',
4001
+ type: 'workFlow'
4002
+ }, {
4003
+ route: 'Wrench',
4004
+ details: 'Sent to Object; RYF',
4005
+ eventdate: '2024-06-20',
4006
+ type: 'workFlow'
4007
+ }];
4008
+
4009
+ var _templateObject$10;
4010
+ function TomTomLogs() {
4011
+ return React.createElement(Table$4, null, React.createElement(CollapsableForm, {
4012
+ collapsedContent: React.createElement(TomTomCollapsedContent, null)
4013
+ }, React.createElement(DynamicTable, {
4014
+ columns: TomTomColumns,
4015
+ data: tomtomResources
4016
+ })));
4017
+ }
4018
+ var Table$4 = /*#__PURE__*/styled.div(_templateObject$10 || (_templateObject$10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
4019
+
4020
+ var _templateObject$11;
3462
4021
  function BackgroundModal(props) {
3463
4022
  return createPortal(React.createElement(Container$E, Object.assign({}, props), props.children), document.body);
3464
4023
  }
3465
- var Container$E = /*#__PURE__*/styled.div(_templateObject$Z || (_templateObject$Z = /*#__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"])));
4024
+ 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
4025
 
3467
- var _templateObject$_, _templateObject2$D, _templateObject3$l, _templateObject4$8;
4026
+ var _templateObject$12, _templateObject2$E, _templateObject3$n, _templateObject4$a;
3468
4027
  function AdditionalInformation(props) {
3469
4028
  return React.createElement(Container$F, null, React.createElement(Rect, null), React.createElement(AdditionalInfo, null, React.createElement(Text$3, null, props.info)));
3470
4029
  }
3471
- var Text$3 = /*#__PURE__*/styled.p(_templateObject$_ || (_templateObject$_ = /*#__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"])));
3472
- var Container$F = /*#__PURE__*/styled.div(_templateObject2$D || (_templateObject2$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
3473
- var Rect = /*#__PURE__*/styled.div(_templateObject3$l || (_templateObject3$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 9px;\n height: 45px;\n background: #3a3630;\n"])));
3474
- var AdditionalInfo = /*#__PURE__*/styled.div(_templateObject4$8 || (_templateObject4$8 = /*#__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"])));
4030
+ 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"])));
4031
+ var Container$F = /*#__PURE__*/styled.div(_templateObject2$E || (_templateObject2$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
4032
+ var Rect = /*#__PURE__*/styled.div(_templateObject3$n || (_templateObject3$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 9px;\n height: 45px;\n background: #3a3630;\n"])));
4033
+ 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
4034
 
3476
- var _templateObject$$, _templateObject2$E, _templateObject3$m, _templateObject4$9;
4035
+ var _templateObject$13, _templateObject2$F, _templateObject3$o, _templateObject4$b;
3477
4036
  function OrderActionHeader(props) {
3478
4037
  var title = props.title,
3479
4038
  actions = props.actions,
@@ -3488,12 +4047,12 @@ function OrderActionHeader(props) {
3488
4047
  onClick: onClose
3489
4048
  }, React.createElement(CrossIcon, null)));
3490
4049
  }
3491
- var Wrapper$b = /*#__PURE__*/styled.div(_templateObject$$ || (_templateObject$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n align-items: center;\n width: 90%;\n margin-left: 20px;\n"])));
3492
- var IconContainer$2 = /*#__PURE__*/styled.div(_templateObject2$E || (_templateObject2$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n svg > path {\n fill: #ffffff;\n }\n cursor: pointer;\n"])));
3493
- var Title = /*#__PURE__*/styled.h3(_templateObject3$m || (_templateObject3$m = /*#__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"])));
3494
- var Container$G = /*#__PURE__*/styled.div(_templateObject4$9 || (_templateObject4$9 = /*#__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"])));
4050
+ 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"])));
4051
+ var IconContainer$2 = /*#__PURE__*/styled.div(_templateObject2$F || (_templateObject2$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n svg > path {\n fill: #ffffff;\n }\n cursor: pointer;\n"])));
4052
+ 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"])));
4053
+ 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
4054
 
3496
- var _templateObject$10, _templateObject2$F;
4055
+ var _templateObject$14, _templateObject2$G;
3497
4056
  function OrderActionFooter(props) {
3498
4057
  var isSubmitDisabled = props.isSubmitDisabled;
3499
4058
  return React.createElement(Container$H, null, React.createElement(SubmitButton, {
@@ -3503,10 +4062,10 @@ function OrderActionFooter(props) {
3503
4062
  disabled: isSubmitDisabled
3504
4063
  }, props.submitButtonTitle || 'submit'), props.actions);
3505
4064
  }
3506
- var SubmitButton = /*#__PURE__*/styled(Button$1)(_templateObject$10 || (_templateObject$10 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3507
- var Container$H = /*#__PURE__*/styled.div(_templateObject2$F || (_templateObject2$F = /*#__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"])));
4065
+ var SubmitButton = /*#__PURE__*/styled(Button$1)(_templateObject$14 || (_templateObject$14 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
4066
+ 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
4067
 
3509
- var _templateObject$11;
4068
+ var _templateObject$15;
3510
4069
  function OrderActionModal(props) {
3511
4070
  return React.createElement(BackgroundModal, null, React.createElement(MainContainer$6, null, React.createElement(OrderActionHeader, {
3512
4071
  title: props.headerTitle,
@@ -3521,9 +4080,9 @@ function OrderActionModal(props) {
3521
4080
  isSubmitDisabled: props.isSubmitDisabled
3522
4081
  })));
3523
4082
  }
3524
- var MainContainer$6 = /*#__PURE__*/styled.div(_templateObject$11 || (_templateObject$11 = /*#__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"])));
4083
+ 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
4084
 
3526
- var _templateObject$12, _templateObject2$G;
4085
+ var _templateObject$16, _templateObject2$H;
3527
4086
  function OrderActionsDropdown(props) {
3528
4087
  return React.createElement(Container$I, {
3529
4088
  className: props.className
@@ -3541,8 +4100,8 @@ function OrderActionsDropdown(props) {
3541
4100
  selectWrapperClass: 'rounded'
3542
4101
  }));
3543
4102
  }
3544
- var Label = /*#__PURE__*/styled.label(_templateObject$12 || (_templateObject$12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
3545
- var Container$I = /*#__PURE__*/styled.div(_templateObject2$G || (_templateObject2$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4103
+ 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"])));
4104
+ var Container$I = /*#__PURE__*/styled.div(_templateObject2$H || (_templateObject2$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
3546
4105
 
3547
4106
  function DocumentTypeDropdown() {
3548
4107
  var onSelect = function onSelect() {};
@@ -3622,7 +4181,7 @@ function UploadIcon(props) {
3622
4181
  })));
3623
4182
  }
3624
4183
 
3625
- var _templateObject$13, _templateObject2$H, _templateObject3$n, _templateObject4$a, _templateObject5$4, _templateObject6$2, _templateObject7$2;
4184
+ var _templateObject$17, _templateObject2$I, _templateObject3$p, _templateObject4$c, _templateObject5$5, _templateObject6$3, _templateObject7$3;
3626
4185
  var Dragger = Upload.Dragger;
3627
4186
  var props = {
3628
4187
  name: 'file',
@@ -3649,15 +4208,15 @@ function DocFileUpload() {
3649
4208
  shape: 'rounded'
3650
4209
  }, "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
4210
  }
3652
- var MainContainer$7 = /*#__PURE__*/styled.div(_templateObject$13 || (_templateObject$13 = /*#__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"])));
3653
- var Text2 = /*#__PURE__*/styled.p(_templateObject2$H || (_templateObject2$H = /*#__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"])));
3654
- var TextContainer$2 = /*#__PURE__*/styled.div(_templateObject3$n || (_templateObject3$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n\n"])));
3655
- var Text1 = /*#__PURE__*/styled.p(_templateObject4$a || (_templateObject4$a = /*#__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"])));
3656
- var IconContainer$3 = /*#__PURE__*/styled.div(_templateObject5$4 || (_templateObject5$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px dashed #0465AC;\n padding: 5px;\n display: flex;\n align-items: center;\n"])));
3657
- var UploadButton = /*#__PURE__*/styled(Button$1)(_templateObject6$2 || (_templateObject6$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 16px;\n font-size: 14px;\n padding: 7px 20px;\n"])));
3658
- var Container$J = /*#__PURE__*/styled.div(_templateObject7$2 || (_templateObject7$2 = /*#__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"])));
4211
+ 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"])));
4212
+ 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"])));
4213
+ var TextContainer$2 = /*#__PURE__*/styled.div(_templateObject3$p || (_templateObject3$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n\n"])));
4214
+ 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"])));
4215
+ 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"])));
4216
+ var UploadButton = /*#__PURE__*/styled(Button$1)(_templateObject6$3 || (_templateObject6$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 16px;\n font-size: 14px;\n padding: 7px 20px;\n"])));
4217
+ 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
4218
 
3660
- var _templateObject$14, _templateObject2$I, _templateObject3$o, _templateObject4$b;
4219
+ var _templateObject$18, _templateObject2$J, _templateObject3$q, _templateObject4$d;
3661
4220
  // import DocFileUpload from './DocFileUpload';
3662
4221
  function AddResources() {
3663
4222
  var _useCurrentAction = useCurrentAction(),
@@ -3673,12 +4232,12 @@ function AddResources() {
3673
4232
  onSubmit: function onSubmit() {}
3674
4233
  }, 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
4234
  }
3676
- var Label$1 = /*#__PURE__*/styled.label(_templateObject$14 || (_templateObject$14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
3677
- var Bottom$1 = /*#__PURE__*/styled.div(_templateObject2$I || (_templateObject2$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
3678
- var Top$1 = /*#__PURE__*/styled.div(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n > div {\n min-width: 240px;\n }\n"])));
3679
- var ContentContainer = /*#__PURE__*/styled.div(_templateObject4$b || (_templateObject4$b = /*#__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"])));
4235
+ 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"])));
4236
+ var Bottom$1 = /*#__PURE__*/styled.div(_templateObject2$J || (_templateObject2$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
4237
+ 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"])));
4238
+ 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
4239
 
3681
- var _templateObject$15, _templateObject2$J, _templateObject3$p;
4240
+ var _templateObject$19, _templateObject2$K, _templateObject3$r;
3682
4241
  function SplitOrderTable() {
3683
4242
  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
4243
  className: "container"
@@ -3706,11 +4265,11 @@ function SplitOrderTable() {
3706
4265
  className: "checkmark"
3707
4266
  })))), 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
4267
  }
3709
- var GLobalPopupContent = /*#__PURE__*/styled.div(_templateObject$15 || (_templateObject$15 = /*#__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"])));
3710
- var TableSkelton = /*#__PURE__*/styled.div(_templateObject2$J || (_templateObject2$J = /*#__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"])));
3711
- var CustomCheckBox = /*#__PURE__*/styled.div(_templateObject3$p || (_templateObject3$p = /*#__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"])));
4268
+ 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"])));
4269
+ 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"])));
4270
+ 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
4271
 
3713
- var _templateObject$16;
4272
+ var _templateObject$1a;
3714
4273
  function SplitOrder() {
3715
4274
  var _useCurrentAction = useCurrentAction(),
3716
4275
  setCurrentAction = _useCurrentAction[1];
@@ -3726,7 +4285,7 @@ function SplitOrder() {
3726
4285
  submitBtnTitle: "Split Order"
3727
4286
  }, React.createElement(ContentContainer$1, null, React.createElement(SplitOrderTable, null)));
3728
4287
  }
3729
- var ContentContainer$1 = /*#__PURE__*/styled.div(_templateObject$16 || (_templateObject$16 = /*#__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"])));
4288
+ 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
4289
 
3731
4290
  function RadioButtonCheckIcon(props) {
3732
4291
  return React.createElement("svg", Object.assign({
@@ -3757,7 +4316,7 @@ var fonts = {
3757
4316
  secondary: "'Lato', sans-serif"
3758
4317
  };
3759
4318
 
3760
- var _templateObject$17, _templateObject2$K, _templateObject3$q;
4319
+ var _templateObject$1b, _templateObject2$L, _templateObject3$s;
3761
4320
  function RadioButton(props) {
3762
4321
  return React.createElement(RadioContainer$1, null, props.checked && React.createElement(RadioButtonCheckIcon, {
3763
4322
  color: props.color
@@ -3768,15 +4327,15 @@ function RadioButton(props) {
3768
4327
  htmlFor: props.id
3769
4328
  }, props.label));
3770
4329
  }
3771
- var Label$2 = /*#__PURE__*/styled.label(_templateObject$17 || (_templateObject$17 = /*#__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);
3772
- var Input = /*#__PURE__*/styled.input(_templateObject2$K || (_templateObject2$K = /*#__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) {
4330
+ 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);
4331
+ 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
4332
  return props.color || '#6396e5';
3774
4333
  }, function (props) {
3775
4334
  return props.color || '#6396e5';
3776
4335
  });
3777
- var RadioContainer$1 = /*#__PURE__*/styled.div(_templateObject3$q || (_templateObject3$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n align-items: center;\n"])));
4336
+ var RadioContainer$1 = /*#__PURE__*/styled.div(_templateObject3$s || (_templateObject3$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n align-items: center;\n"])));
3778
4337
 
3779
- var _templateObject$18, _templateObject2$L, _templateObject3$r, _templateObject4$c, _templateObject5$5, _templateObject6$3, _templateObject7$3;
4338
+ var _templateObject$1c, _templateObject2$M, _templateObject3$t, _templateObject4$e, _templateObject5$6, _templateObject6$4, _templateObject7$4;
3780
4339
  function RadioButtonGroup(props) {
3781
4340
  var heading = props.heading,
3782
4341
  _props$direction = props.direction,
@@ -3811,19 +4370,19 @@ function RadioButtonGroup(props) {
3811
4370
  className: "custom-wrapper"
3812
4371
  }, renderOptions()));
3813
4372
  }
3814
- var Separator = /*#__PURE__*/styled.div(_templateObject$18 || (_templateObject$18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 1px;\n background: #e0e2e7;\n"])));
3815
- var labelStyles = /*#__PURE__*/css(_templateObject2$L || (_templateObject2$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n line-height: 20px;\n"])), fonts.secondary);
3816
- var RequiredText = /*#__PURE__*/styled.span(_templateObject3$r || (_templateObject3$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n ", "\n"])), function (props) {
4373
+ var Separator = /*#__PURE__*/styled.div(_templateObject$1c || (_templateObject$1c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 1px;\n background: #e0e2e7;\n"])));
4374
+ 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);
4375
+ var RequiredText = /*#__PURE__*/styled.span(_templateObject3$t || (_templateObject3$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n ", "\n"])), function (props) {
3817
4376
  return !props.$required && 'visibility: hidden;';
3818
4377
  }, labelStyles);
3819
- var LegendContainer = /*#__PURE__*/styled.div(_templateObject4$c || (_templateObject4$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n margin-bottom: 7px;\n"])));
3820
- var Legend = /*#__PURE__*/styled.legend(_templateObject5$5 || (_templateObject5$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n line-height: 20px;\n"])), fonts.secondary);
3821
- var Fieldset = /*#__PURE__*/styled.fieldset(_templateObject6$3 || (_templateObject6$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: none;\n padding: 0px;\n"])));
3822
- var Wrapper$c = /*#__PURE__*/styled.div(_templateObject7$3 || (_templateObject7$3 = /*#__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) {
4378
+ var LegendContainer = /*#__PURE__*/styled.div(_templateObject4$e || (_templateObject4$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n margin-bottom: 7px;\n"])));
4379
+ 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);
4380
+ var Fieldset = /*#__PURE__*/styled.fieldset(_templateObject6$4 || (_templateObject6$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: none;\n padding: 0px;\n"])));
4381
+ 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
4382
  return props.$direction === 'horizontal' ? 'row' : 'column';
3824
4383
  });
3825
4384
 
3826
- var _templateObject$19;
4385
+ var _templateObject$1d;
3827
4386
  var deliveryPoints = [{
3828
4387
  label: 'Hallway',
3829
4388
  value: 'hallway'
@@ -3854,15 +4413,15 @@ function DeliveryPoint() {
3854
4413
  required: false
3855
4414
  }));
3856
4415
  }
3857
- var Container$K = /*#__PURE__*/styled.div(_templateObject$19 || (_templateObject$19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n /* height: 30px; */\n padding: 1px;\n align-items: flex-start;\n align-self: stretch;\n"])));
4416
+ 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
4417
 
3859
- var _templateObject$1a, _templateObject2$M, _templateObject3$s, _templateObject4$d, _templateObject5$6, _templateObject6$4, _templateObject7$4, _templateObject8$2;
3860
- var _excluded$1 = ["imageSrc", "label", "checked"];
4418
+ var _templateObject$1e, _templateObject2$N, _templateObject3$u, _templateObject4$f, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$3;
4419
+ var _excluded$2 = ["imageSrc", "label", "checked"];
3861
4420
  function Checkbox(props) {
3862
4421
  var imageSrc = props.imageSrc,
3863
4422
  label = props.label,
3864
4423
  checked = props.checked,
3865
- rest = _objectWithoutPropertiesLoose(props, _excluded$1);
4424
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2);
3866
4425
  return React.createElement(MainContainer$8, {
3867
4426
  "$checked": checked
3868
4427
  }, React.createElement(CheckboxContainer, null, React.createElement(HiddenCheckbox, Object.assign({
@@ -3877,20 +4436,20 @@ function Checkbox(props) {
3877
4436
  "$checked": checked
3878
4437
  }, label)));
3879
4438
  }
3880
- var Image = /*#__PURE__*/styled.img(_templateObject$1a || (_templateObject$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 28px;\n width: 20px;\n filter: ", ";\n"])), function (props) {
4439
+ var Image = /*#__PURE__*/styled.img(_templateObject$1e || (_templateObject$1e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 28px;\n width: 20px;\n filter: ", ";\n"])), function (props) {
3881
4440
  return props.$checked ? 'grayscale(0)' : 'grayscale(1)';
3882
4441
  });
3883
- var CircleContainer = /*#__PURE__*/styled.span(_templateObject2$M || (_templateObject2$M = /*#__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"])));
3884
- var Circle = /*#__PURE__*/styled.span(_templateObject3$s || (_templateObject3$s = /*#__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) {
4442
+ 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"])));
4443
+ 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
4444
  return props.$checked ? '#feba30' : 'white';
3886
4445
  });
3887
- var Text$4 = /*#__PURE__*/styled.span(_templateObject4$d || (_templateObject4$d = /*#__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) {
4446
+ 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
4447
  return props.$checked ? '#3a3630' : 'rgba(58, 54, 48, 0.50)';
3889
4448
  });
3890
- var InformationContainer = /*#__PURE__*/styled.div(_templateObject5$6 || (_templateObject5$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n align-items: center;\n"])));
3891
- var CheckboxContainer = /*#__PURE__*/styled.div(_templateObject6$4 || (_templateObject6$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
3892
- var HiddenCheckbox = /*#__PURE__*/styled.input(_templateObject7$4 || (_templateObject7$4 = /*#__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"])));
3893
- var MainContainer$8 = /*#__PURE__*/styled.div(_templateObject8$2 || (_templateObject8$2 = /*#__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) {
4449
+ 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"])));
4450
+ var CheckboxContainer = /*#__PURE__*/styled.div(_templateObject6$5 || (_templateObject6$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
4451
+ 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"])));
4452
+ 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
4453
  return props.$checked ? '#cbc8c2' : '#e0e2e7';
3895
4454
  });
3896
4455
 
@@ -3917,7 +4476,7 @@ var getIcon$1 = function getIcon(input) {
3917
4476
  return "" + baseURL$1 + subPath;
3918
4477
  };
3919
4478
 
3920
- var _templateObject$1b;
4479
+ var _templateObject$1f;
3921
4480
  function OrderServices$1() {
3922
4481
  // TO DO -> get services from static data
3923
4482
  return React.createElement(Container$L, null, React.createElement(Checkbox, {
@@ -3942,9 +4501,9 @@ function OrderServices$1() {
3942
4501
  imageSrc: getIcon$1(4)
3943
4502
  }));
3944
4503
  }
3945
- var Container$L = /*#__PURE__*/styled.div(_templateObject$1b || (_templateObject$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n"])));
4504
+ var Container$L = /*#__PURE__*/styled.div(_templateObject$1f || (_templateObject$1f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n"])));
3946
4505
 
3947
- var _templateObject$1c, _templateObject2$N;
4506
+ var _templateObject$1g, _templateObject2$O;
3948
4507
  function Notes$1(_ref) {
3949
4508
  var onNotesChange = _ref.onNotesChange;
3950
4509
  var handleTextChange = function handleTextChange(event) {
@@ -3955,10 +4514,10 @@ function Notes$1(_ref) {
3955
4514
  onChange: handleTextChange
3956
4515
  }));
3957
4516
  }
3958
- var Label$3 = /*#__PURE__*/styled.span(_templateObject$1c || (_templateObject$1c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
3959
- var Container$M = /*#__PURE__*/styled.div(_templateObject2$N || (_templateObject2$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n flex-direction: column;\n width: 100%;\n"])));
4517
+ 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"])));
4518
+ 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
4519
 
3961
- var _templateObject$1d, _templateObject2$O, _templateObject3$t;
4520
+ var _templateObject$1h, _templateObject2$P, _templateObject3$v;
3962
4521
  function LogServiceRefusal() {
3963
4522
  var _useCurrentAction = useCurrentAction(),
3964
4523
  setCurrentAction = _useCurrentAction[1];
@@ -3978,18 +4537,18 @@ function LogServiceRefusal() {
3978
4537
  }
3979
4538
  }))));
3980
4539
  }
3981
- var ContentContainer$2 = /*#__PURE__*/styled.div(_templateObject$1d || (_templateObject$1d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 0px 15px;\n align-items: flex-start;\n gap: 10px;\n align-self: stretch;\n"])));
3982
- var Left = /*#__PURE__*/styled.div(_templateObject2$O || (_templateObject2$O = /*#__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"])));
3983
- var Right$1 = /*#__PURE__*/styled(Left)(_templateObject3$t || (_templateObject3$t = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
4540
+ 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"])));
4541
+ 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"])));
4542
+ var Right$1 = /*#__PURE__*/styled(Left)(_templateObject3$v || (_templateObject3$v = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
3984
4543
 
3985
- var _templateObject$1e, _templateObject2$P;
4544
+ var _templateObject$1i, _templateObject2$Q;
3986
4545
  function CancelationNote() {
3987
4546
  return React.createElement(Container$N, null, React.createElement(Label$4, null, "Cancelation Note"), React.createElement(TextArea, {
3988
4547
  rows: 5
3989
4548
  }));
3990
4549
  }
3991
- var Label$4 = /*#__PURE__*/styled.label(_templateObject$1e || (_templateObject$1e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
3992
- var Container$N = /*#__PURE__*/styled.div(_templateObject2$P || (_templateObject2$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4550
+ 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"])));
4551
+ var Container$N = /*#__PURE__*/styled.div(_templateObject2$Q || (_templateObject2$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
3993
4552
 
3994
4553
  function CancelationReason() {
3995
4554
  var onSelect = function onSelect() {};
@@ -4027,7 +4586,7 @@ function ReturnReason() {
4027
4586
  });
4028
4587
  }
4029
4588
 
4030
- var _templateObject$1f;
4589
+ var _templateObject$1j;
4031
4590
  function CancelOrderTable() {
4032
4591
  var options = [{
4033
4592
  value: 'bjsCouriers',
@@ -4082,9 +4641,9 @@ function CancelOrderTable() {
4082
4641
  }
4083
4642
  }));
4084
4643
  }
4085
- var GLobalPopupContent$1 = /*#__PURE__*/styled.div(_templateObject$1f || (_templateObject$1f = /*#__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"])));
4644
+ 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
4645
 
4087
- var _templateObject$1g, _templateObject2$Q, _templateObject3$u, _templateObject4$e, _templateObject5$7, _templateObject6$5;
4646
+ var _templateObject$1k, _templateObject2$R, _templateObject3$w, _templateObject4$g, _templateObject5$8, _templateObject6$6;
4088
4647
  function CancelOrder() {
4089
4648
  var _useCurrentAction = useCurrentAction(),
4090
4649
  setCurrentAction = _useCurrentAction[1];
@@ -4099,20 +4658,20 @@ function CancelOrder() {
4099
4658
  onSubmit: function onSubmit() {}
4100
4659
  }, 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
4660
  }
4102
- var Wrapper$d = /*#__PURE__*/styled.div(_templateObject$1g || (_templateObject$1g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n width: 100%;\n > div {\n width: 50%;\n }\n"])));
4103
- var TopLeft = /*#__PURE__*/styled.div(_templateObject2$Q || (_templateObject2$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 15px;\n width: 50%;\n"])));
4104
- var TopRight = /*#__PURE__*/styled.div(_templateObject3$u || (_templateObject3$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 50%;\n"])));
4105
- var Top$2 = /*#__PURE__*/styled.div(_templateObject4$e || (_templateObject4$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 30px;\n width: 100%;\n"])));
4106
- var Bottom$2 = /*#__PURE__*/styled.div(_templateObject5$7 || (_templateObject5$7 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
4107
- var ContentContainer$3 = /*#__PURE__*/styled.div(_templateObject6$5 || (_templateObject6$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 0px 15px;\n align-items: flex-start;\n gap: 10px;\n flex-direction: column;\n"])));
4661
+ 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"])));
4662
+ 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"])));
4663
+ var TopRight = /*#__PURE__*/styled.div(_templateObject3$w || (_templateObject3$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 50%;\n"])));
4664
+ var Top$2 = /*#__PURE__*/styled.div(_templateObject4$g || (_templateObject4$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 30px;\n width: 100%;\n"])));
4665
+ var Bottom$2 = /*#__PURE__*/styled.div(_templateObject5$8 || (_templateObject5$8 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
4666
+ 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
4667
 
4109
- var _templateObject$1h, _templateObject5$8, _templateObject6$6, _templateObject7$5;
4110
- var ContentContainer$4 = /*#__PURE__*/styled.div(_templateObject$1h || (_templateObject$1h = /*#__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"])));
4111
- var GLobalPopupContent$2 = /*#__PURE__*/styled.div(_templateObject5$8 || (_templateObject5$8 = /*#__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"])));
4112
- var TableSkelton$1 = /*#__PURE__*/styled.div(_templateObject6$6 || (_templateObject6$6 = /*#__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"])));
4113
- var CustomCheckBox$1 = /*#__PURE__*/styled.div(_templateObject7$5 || (_templateObject7$5 = /*#__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"])));
4668
+ var _templateObject$1l, _templateObject5$9, _templateObject6$7, _templateObject7$6;
4669
+ 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"])));
4670
+ 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"])));
4671
+ 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"])));
4672
+ 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
4673
 
4115
- var options = [{
4674
+ var options$1 = [{
4116
4675
  value: 'bjsCouriers',
4117
4676
  label: 'BJS COURIERS'
4118
4677
  }, {
@@ -4325,7 +4884,7 @@ var UpdateProductType = function UpdateProductType() {
4325
4884
  }, React.createElement("div", {
4326
4885
  className: "col"
4327
4886
  }, React.createElement("label", null, "Collection Reason"), React.createElement(AntSelect, {
4328
- options: options,
4887
+ options: options$1,
4329
4888
  placeholder: "Select Collection Reason",
4330
4889
  onChange: onChange,
4331
4890
  disabled: false,
@@ -4335,7 +4894,7 @@ var UpdateProductType = function UpdateProductType() {
4335
4894
  })), React.createElement("div", {
4336
4895
  className: "col"
4337
4896
  }, React.createElement("label", null, "Collection Reason"), React.createElement(AntSelect, {
4338
- options: options,
4897
+ options: options$1,
4339
4898
  placeholder: "Return Action",
4340
4899
  onChange: onChange,
4341
4900
  disabled: false,
@@ -4345,7 +4904,7 @@ var UpdateProductType = function UpdateProductType() {
4345
4904
  })), React.createElement("div", {
4346
4905
  className: "col"
4347
4906
  }, React.createElement("label", null, "Collection Reason"), React.createElement(AntSelect, {
4348
- options: options,
4907
+ options: options$1,
4349
4908
  placeholder: "Return Reason",
4350
4909
  onChange: onChange,
4351
4910
  disabled: false,
@@ -4365,7 +4924,7 @@ var UpdateProductType = function UpdateProductType() {
4365
4924
  }), React.createElement("span", {
4366
4925
  className: "checkmark"
4367
4926
  })))), React.createElement("td", null, React.createElement(AntSelect, {
4368
- options: options,
4927
+ options: options$1,
4369
4928
  placeholder: "Select Collection Reason",
4370
4929
  onChange: onChange,
4371
4930
  disabled: false,
@@ -4380,7 +4939,7 @@ var UpdateProductType = function UpdateProductType() {
4380
4939
  }), React.createElement("span", {
4381
4940
  className: "checkmark"
4382
4941
  })))), React.createElement("td", null, React.createElement(AntSelect, {
4383
- options: options,
4942
+ options: options$1,
4384
4943
  placeholder: "Select Collection Reason",
4385
4944
  onChange: onChange,
4386
4945
  disabled: false,
@@ -4395,7 +4954,7 @@ var UpdateProductType = function UpdateProductType() {
4395
4954
  }), React.createElement("span", {
4396
4955
  className: "checkmark"
4397
4956
  })))), React.createElement("td", null, React.createElement(AntSelect, {
4398
- options: options,
4957
+ options: options$1,
4399
4958
  placeholder: "Select Collection Reason",
4400
4959
  onChange: onChange,
4401
4960
  disabled: false,
@@ -4407,7 +4966,7 @@ var UpdateProductType = function UpdateProductType() {
4407
4966
  );
4408
4967
  };
4409
4968
 
4410
- var _templateObject$1i, _templateObject2$R;
4969
+ var _templateObject$1m, _templateObject2$S;
4411
4970
  function EmailAddress() {
4412
4971
  return React.createElement(Container$O, null, React.createElement(Label$5, null, "Email Address"), React.createElement(Input$2, {
4413
4972
  style: {
@@ -4415,10 +4974,10 @@ function EmailAddress() {
4415
4974
  }
4416
4975
  }));
4417
4976
  }
4418
- var Label$5 = /*#__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"])));
4419
- var Container$O = /*#__PURE__*/styled.div(_templateObject2$R || (_templateObject2$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4977
+ 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"])));
4978
+ var Container$O = /*#__PURE__*/styled.div(_templateObject2$S || (_templateObject2$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4420
4979
 
4421
- var _templateObject$1j, _templateObject2$S;
4980
+ var _templateObject$1n, _templateObject2$T;
4422
4981
  function ContactPhone() {
4423
4982
  return React.createElement(Container$P, null, React.createElement(Label$6, null, "Contact Phone"), React.createElement(Input$2, {
4424
4983
  style: {
@@ -4426,10 +4985,10 @@ function ContactPhone() {
4426
4985
  }
4427
4986
  }));
4428
4987
  }
4429
- var Label$6 = /*#__PURE__*/styled.label(_templateObject$1j || (_templateObject$1j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
4430
- var Container$P = /*#__PURE__*/styled.div(_templateObject2$S || (_templateObject2$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4988
+ 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"])));
4989
+ var Container$P = /*#__PURE__*/styled.div(_templateObject2$T || (_templateObject2$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4431
4990
 
4432
- var _templateObject$1k, _templateObject2$T;
4991
+ var _templateObject$1o, _templateObject2$U;
4433
4992
  function ContactWork$1() {
4434
4993
  return React.createElement(Container$Q, null, React.createElement(Label$7, null, "Contact Work"), React.createElement(Input$2, {
4435
4994
  style: {
@@ -4437,10 +4996,10 @@ function ContactWork$1() {
4437
4996
  }
4438
4997
  }));
4439
4998
  }
4440
- var Label$7 = /*#__PURE__*/styled.label(_templateObject$1k || (_templateObject$1k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
4441
- var Container$Q = /*#__PURE__*/styled.div(_templateObject2$T || (_templateObject2$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4999
+ 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"])));
5000
+ var Container$Q = /*#__PURE__*/styled.div(_templateObject2$U || (_templateObject2$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4442
5001
 
4443
- var _templateObject$1l, _templateObject2$U;
5002
+ var _templateObject$1p, _templateObject2$V;
4444
5003
  function ContactMobile$1() {
4445
5004
  return React.createElement(Container$R, null, React.createElement(Label$8, null, "Contact Mobile"), React.createElement(Input$2, {
4446
5005
  style: {
@@ -4448,8 +5007,8 @@ function ContactMobile$1() {
4448
5007
  }
4449
5008
  }));
4450
5009
  }
4451
- var Label$8 = /*#__PURE__*/styled.label(_templateObject$1l || (_templateObject$1l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
4452
- var Container$R = /*#__PURE__*/styled.div(_templateObject2$U || (_templateObject2$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
5010
+ 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"])));
5011
+ var Container$R = /*#__PURE__*/styled.div(_templateObject2$V || (_templateObject2$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4453
5012
 
4454
5013
  function ContactTypeDropdown() {
4455
5014
  var onSelect = function onSelect() {};
@@ -4497,7 +5056,7 @@ function ActionDropdown() {
4497
5056
  });
4498
5057
  }
4499
5058
 
4500
- var _templateObject$1m, _templateObject2$V;
5059
+ var _templateObject$1q, _templateObject2$W;
4501
5060
  function DeliveryDate$1() {
4502
5061
  var onChange = function onChange() {};
4503
5062
  return React.createElement(Container$S, null, React.createElement(Label$9, null, "Delivery Date"), React.createElement(DatePicker, {
@@ -4507,8 +5066,8 @@ function DeliveryDate$1() {
4507
5066
  }
4508
5067
  }));
4509
5068
  }
4510
- var Label$9 = /*#__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"])));
4511
- var Container$S = /*#__PURE__*/styled.div(_templateObject2$V || (_templateObject2$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
5069
+ 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"])));
5070
+ 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
5071
 
4513
5072
  function TimedServiceDropdown$1() {
4514
5073
  var onSelect = function onSelect() {};
@@ -4532,16 +5091,16 @@ function TimedServiceDropdown$1() {
4532
5091
  });
4533
5092
  }
4534
5093
 
4535
- var _templateObject$1n, _templateObject2$W, _templateObject3$v, _templateObject4$f;
5094
+ var _templateObject$1r, _templateObject2$X, _templateObject3$x, _templateObject4$h;
4536
5095
  function CustomerInformation() {
4537
5096
  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
5097
  }
4539
- var Wrapper$e = /*#__PURE__*/styled.div(_templateObject$1n || (_templateObject$1n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n width: 100%;\n .contact-type-dropdown,\n .action-dropdown {\n flex: 1;\n }\n"])));
4540
- var AddressField = /*#__PURE__*/styled.p(_templateObject2$W || (_templateObject2$W = /*#__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"])));
4541
- var Title$1 = /*#__PURE__*/styled.span(_templateObject3$v || (_templateObject3$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n"])));
4542
- var Container$T = /*#__PURE__*/styled.div(_templateObject4$f || (_templateObject4$f = /*#__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"])));
5098
+ 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"])));
5099
+ 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"])));
5100
+ 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"])));
5101
+ 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
5102
 
4544
- var _templateObject$1o, _templateObject2$X;
5103
+ var _templateObject$1s, _templateObject2$Y;
4545
5104
  function ProductTable$1() {
4546
5105
  var data = [{
4547
5106
  action: 'option1',
@@ -4581,10 +5140,10 @@ function ProductTable$1() {
4581
5140
  data: data
4582
5141
  }));
4583
5142
  }
4584
- var Title$2 = /*#__PURE__*/styled.h2(_templateObject$1o || (_templateObject$1o = /*#__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"])));
4585
- var Container$U = /*#__PURE__*/styled.div(_templateObject2$X || (_templateObject2$X = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n > div {\n min-height: 165px;\n }\n"])));
5143
+ 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"])));
5144
+ 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
5145
 
4587
- var _templateObject$1p, _templateObject2$Y;
5146
+ var _templateObject$1t, _templateObject2$Z;
4588
5147
  function NotesTable() {
4589
5148
  var data = [{
4590
5149
  created: 'optimizer @ BJS via API',
@@ -4607,39 +5166,39 @@ function NotesTable() {
4607
5166
  data: data
4608
5167
  }));
4609
5168
  }
4610
- var Title$3 = /*#__PURE__*/styled.h2(_templateObject$1p || (_templateObject$1p = /*#__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"])));
4611
- var Container$V = /*#__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"])));
5169
+ 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"])));
5170
+ 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
5171
 
4613
- var _templateObject$1q, _templateObject2$Z;
5172
+ var _templateObject$1u, _templateObject2$_;
4614
5173
  function ConfirmationNotes() {
4615
5174
  return React.createElement(Container$W, null, React.createElement(Label$a, null, "Notes"), React.createElement(TextArea, {
4616
5175
  rows: 5,
4617
5176
  placeholder: "Enter Notes"
4618
5177
  }));
4619
5178
  }
4620
- var Label$a = /*#__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"])));
4621
- var Container$W = /*#__PURE__*/styled.div(_templateObject2$Z || (_templateObject2$Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
5179
+ 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"])));
5180
+ var Container$W = /*#__PURE__*/styled.div(_templateObject2$_ || (_templateObject2$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4622
5181
 
4623
- var _templateObject$1r, _templateObject2$_;
5182
+ var _templateObject$1v, _templateObject2$$;
4624
5183
  function DeliveryInstructions$1() {
4625
5184
  return React.createElement(Container$X, null, React.createElement(Label$b, null, "Delivery Instructions"), React.createElement(TextArea, {
4626
5185
  rows: 5,
4627
5186
  placeholder: "Enter Delivery Instructions"
4628
5187
  }));
4629
5188
  }
4630
- var Label$b = /*#__PURE__*/styled.label(_templateObject$1r || (_templateObject$1r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
4631
- var Container$X = /*#__PURE__*/styled.div(_templateObject2$_ || (_templateObject2$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
5189
+ 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"])));
5190
+ var Container$X = /*#__PURE__*/styled.div(_templateObject2$$ || (_templateObject2$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
4632
5191
 
4633
- var _templateObject$1s, _templateObject2$$, _templateObject3$w, _templateObject4$g;
5192
+ var _templateObject$1w, _templateObject2$10, _templateObject3$y, _templateObject4$i;
4634
5193
  function SlotAndInstructions() {
4635
5194
  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
5195
  }
4637
- var Value = /*#__PURE__*/styled.span(_templateObject$1s || (_templateObject$1s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Lato', 'Open Sans';\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n"])));
4638
- var Slot = /*#__PURE__*/styled.div(_templateObject2$$ || (_templateObject2$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 5px;\n"])));
4639
- var Title$4 = /*#__PURE__*/styled.span(_templateObject3$w || (_templateObject3$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Lato', 'Open Sans';\n font-size: 13px;\n font-style: normal;\n font-weight: 700;\n"])));
4640
- var Container$Y = /*#__PURE__*/styled.div(_templateObject4$g || (_templateObject4$g = /*#__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"])));
5196
+ 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"])));
5197
+ var Slot = /*#__PURE__*/styled.div(_templateObject2$10 || (_templateObject2$10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 5px;\n"])));
5198
+ 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"])));
5199
+ 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
5200
 
4642
- var _templateObject$1t, _templateObject2$10;
5201
+ var _templateObject$1x, _templateObject2$11;
4643
5202
  // import DocFileUpload from './DocFileUpload';
4644
5203
  function ConfirmOrder() {
4645
5204
  var _useCurrentAction = useCurrentAction(),
@@ -4662,21 +5221,21 @@ function ConfirmOrder() {
4662
5221
  showOkButton: false
4663
5222
  }), React.createElement(Wrapper$f, null, React.createElement(CustomerInformation, null), React.createElement(SlotAndInstructions, null)), React.createElement(ProductTable$1, null), React.createElement(NotesTable, null)));
4664
5223
  }
4665
- var Wrapper$f = /*#__PURE__*/styled.div(_templateObject$1t || (_templateObject$1t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
4666
- var ContentContainer$5 = /*#__PURE__*/styled.div(_templateObject2$10 || (_templateObject2$10 = /*#__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"])));
4667
-
4668
- var _templateObject2$11, _templateObject3$x, _templateObject4$h, _templateObject5$9, _templateObject6$7, _templateObject7$6, _templateObject8$3, _templateObject9$1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject18, _templateObject19$1, _templateObject20$1, _templateObject26, _templateObject27, _templateObject30, _templateObject31, _templateObject32, _templateObject33;
4669
- var StyledInput = /*#__PURE__*/styled(Input$1)(_templateObject2$11 || (_templateObject2$11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 66px;\n min-width: 700px;\n"])));
4670
- var StyledTextArea$1 = /*#__PURE__*/styled(TextArea)(_templateObject3$x || (_templateObject3$x = /*#__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"])));
4671
- var StyledTextAreas = /*#__PURE__*/styled(TextArea)(_templateObject4$h || (_templateObject4$h = /*#__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"])));
4672
- var SplitLayout = /*#__PURE__*/styled.div(_templateObject5$9 || (_templateObject5$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n"])));
4673
- var SplitText = /*#__PURE__*/styled.div(_templateObject6$7 || (_templateObject6$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n flex-direction: column;\n margin-bottom: 4px;\n"])));
4674
- var Row$4 = /*#__PURE__*/styled.div(_templateObject7$6 || (_templateObject7$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1 0 0;\n display: grid;\n gap: 5px;\n justify-content: center;\n"])));
4675
- var HoldRow = /*#__PURE__*/styled.div(_templateObject8$3 || (_templateObject8$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1 0 0;\n display: grid;\n gap: 5px;\n justify-content: center;\n /* margin-bottom: 25px; */\n"])));
4676
- var Label$c = /*#__PURE__*/styled.label(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #758588;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
5224
+ var Wrapper$f = /*#__PURE__*/styled.div(_templateObject$1x || (_templateObject$1x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
5225
+ 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"])));
5226
+
5227
+ 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;
5228
+ var StyledInput = /*#__PURE__*/styled(Input$1)(_templateObject2$12 || (_templateObject2$12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 66px;\n min-width: 700px;\n"])));
5229
+ 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"])));
5230
+ 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"])));
5231
+ var SplitLayout = /*#__PURE__*/styled.div(_templateObject5$a || (_templateObject5$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n"])));
5232
+ 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"])));
5233
+ 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"])));
5234
+ 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"])));
5235
+ 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
5236
  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
5237
  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"])));
5238
+ 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
5239
  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
5240
  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
5241
  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 +5508,16 @@ function HoldOrderModal() {
4949
5508
  })))));
4950
5509
  }
4951
5510
 
4952
- var _templateObject$1u, _templateObject2$12, _templateObject3$y;
5511
+ var _templateObject$1y, _templateObject2$13, _templateObject3$A;
4953
5512
  // import {
4954
5513
  // EscalationCategory,
4955
5514
  // EscalationLevel,
4956
5515
  // EscalationReason,
4957
5516
  // EscalationStatus,
4958
5517
  // } from '../../utils';
4959
- var FlexContainer = /*#__PURE__*/styled.div(_templateObject$1u || (_templateObject$1u = /*#__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"])));
4960
- var InnerCont = /*#__PURE__*/styled.div(_templateObject2$12 || (_templateObject2$12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n"])));
4961
- var StyledAntSelect = /*#__PURE__*/styled(AntSelect)(_templateObject3$y || (_templateObject3$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: 40px;\n"])));
5518
+ 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"])));
5519
+ 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"])));
5520
+ var StyledAntSelect = /*#__PURE__*/styled(AntSelect)(_templateObject3$A || (_templateObject3$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: 40px;\n"])));
4962
5521
  var Dropdowns = function Dropdowns() {
4963
5522
  var handleSelectChange = function handleSelectChange() {
4964
5523
  // alert('hello');
@@ -5026,17 +5585,17 @@ var Dropdowns = function Dropdowns() {
5026
5585
  })));
5027
5586
  };
5028
5587
 
5029
- var _templateObject$1v, _templateObject2$13;
5588
+ var _templateObject$1z, _templateObject2$14;
5030
5589
  var Notes$2 = function Notes() {
5031
- var StyledTextArea = styled(TextArea)(_templateObject$1v || (_templateObject$1v = _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 "])));
5032
- var Label = styled.label(_templateObject2$13 || (_templateObject2$13 = _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 "])));
5590
+ 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 "])));
5591
+ 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
5592
  return React.createElement("div", null, React.createElement(Label, null, "Note"), React.createElement(StyledTextArea, {
5034
5593
  name: "note",
5035
5594
  placeholder: ""
5036
5595
  }));
5037
5596
  };
5038
5597
 
5039
- var _templateObject$1w, _templateObject2$14, _templateObject3$z, _templateObject4$i, _templateObject5$a, _templateObject6$8, _templateObject7$7, _templateObject8$4, _templateObject9$2, _templateObject10$1;
5598
+ var _templateObject$1A, _templateObject2$15, _templateObject3$B, _templateObject4$k, _templateObject5$b, _templateObject6$9, _templateObject7$8, _templateObject8$5, _templateObject9$3, _templateObject10$1;
5040
5599
  var Upgrade = function Upgrade() {
5041
5600
  var handleSelectChange = function handleSelectChange() {
5042
5601
  // alert('hello');
@@ -5095,24 +5654,24 @@ var Upgrade = function Upgrade() {
5095
5654
  name: ''
5096
5655
  }))))), React.createElement(GiftWrapper, null, React.createElement(BJSGift, null, React.createElement(Box, null)), React.createElement(BJSGift, null, React.createElement(Box, null))));
5097
5656
  };
5098
- var GiftWrapper = /*#__PURE__*/styled.div(_templateObject$1w || (_templateObject$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n padding-top: 45px;\n"])));
5099
- var Box = /*#__PURE__*/styled.div(_templateObject2$14 || (_templateObject2$14 = /*#__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"])));
5100
- var Wrapper$g = /*#__PURE__*/styled.div(_templateObject3$z || (_templateObject3$z = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
5101
- var BJSGift = /*#__PURE__*/styled.div(_templateObject4$i || (_templateObject4$i = /*#__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);
5102
- var Toggle = /*#__PURE__*/styled(Switch)(_templateObject5$a || (_templateObject5$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px;\n"])));
5103
- var Heading$2 = /*#__PURE__*/styled.div(_templateObject6$8 || (_templateObject6$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-size: 14px;\n font-style: normal;\n font-weight: 700;\n line-height: 16px;\n"])));
5104
- var Container$_ = /*#__PURE__*/styled.div(_templateObject7$7 || (_templateObject7$7 = /*#__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"])));
5105
- var InnerCont$1 = /*#__PURE__*/styled.div(_templateObject8$4 || (_templateObject8$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n"])));
5106
- var Top$3 = /*#__PURE__*/styled.div(_templateObject9$2 || (_templateObject9$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-top: 35px;\n"])));
5657
+ var GiftWrapper = /*#__PURE__*/styled.div(_templateObject$1A || (_templateObject$1A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n padding-top: 45px;\n"])));
5658
+ 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"])));
5659
+ var Wrapper$g = /*#__PURE__*/styled.div(_templateObject3$B || (_templateObject3$B = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
5660
+ 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);
5661
+ var Toggle = /*#__PURE__*/styled(Switch)(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px;\n"])));
5662
+ 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"])));
5663
+ 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"])));
5664
+ 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"])));
5665
+ var Top$3 = /*#__PURE__*/styled.div(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-top: 35px;\n"])));
5107
5666
  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
5667
 
5109
- var _templateObject$1x;
5110
- var Flex = /*#__PURE__*/styled.div(_templateObject$1x || (_templateObject$1x = /*#__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"])));
5668
+ var _templateObject$1B;
5669
+ 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
5670
  var Escalation = function Escalation() {
5112
5671
  return React.createElement(React.Fragment, null, React.createElement(Flex, null, React.createElement(Dropdowns, null), React.createElement(Notes$2, null), React.createElement(Upgrade, null)));
5113
5672
  };
5114
5673
 
5115
- var _templateObject$1y, _templateObject2$15, _templateObject3$A, _templateObject4$j;
5674
+ var _templateObject$1C, _templateObject2$16, _templateObject3$C, _templateObject4$l;
5116
5675
  var NewEscalation = function NewEscalation() {
5117
5676
  var _useState = useState(false),
5118
5677
  showContent = _useState[0],
@@ -5141,10 +5700,10 @@ var NewEscalation = function NewEscalation() {
5141
5700
  className: "checkmark"
5142
5701
  })))), 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
5702
  };
5144
- var Component = /*#__PURE__*/styled.div(_templateObject$1y || (_templateObject$1y = /*#__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"])));
5145
- var Button = /*#__PURE__*/styled.button(_templateObject2$15 || (_templateObject2$15 = /*#__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"])));
5146
- var Flex$1 = /*#__PURE__*/styled.div(_templateObject3$A || (_templateObject3$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
5147
- var CancelButton = /*#__PURE__*/styled.button(_templateObject4$j || (_templateObject4$j = /*#__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"])));
5703
+ 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"])));
5704
+ 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"])));
5705
+ var Flex$1 = /*#__PURE__*/styled.div(_templateObject3$C || (_templateObject3$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
5706
+ 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
5707
 
5149
5708
  var EscalationModal = function EscalationModal() {
5150
5709
  var _useCurrentAction = useCurrentAction(),
@@ -5431,7 +5990,7 @@ function ChargeLog() {
5431
5990
  })));
5432
5991
  }
5433
5992
 
5434
- var _templateObject$1z;
5993
+ var _templateObject$1D;
5435
5994
  var UnholdOrder = function UnholdOrder() {
5436
5995
  var _useCurrentAction = useCurrentAction(),
5437
5996
  setCurrentAction = _useCurrentAction[1];
@@ -5455,16 +6014,16 @@ var UnholdOrder = function UnholdOrder() {
5455
6014
  })
5456
6015
  });
5457
6016
  };
5458
- var CustomCancelAndCompleteAction = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject$1z || (_templateObject$1z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
6017
+ var CustomCancelAndCompleteAction = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject$1D || (_templateObject$1D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
5459
6018
 
5460
- var _templateObject$1A, _templateObject2$16;
6019
+ var _templateObject$1E, _templateObject2$17;
5461
6020
  var ProductData = function ProductData(_ref) {
5462
6021
  var products = _ref.products,
5463
6022
  handleCheckboxChange = _ref.handleCheckboxChange;
5464
6023
  var handleInputChange = function handleInputChange(productId, isChecked) {
5465
6024
  handleCheckboxChange(productId, isChecked);
5466
6025
  };
5467
- return React.createElement(Table$3, 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) {
6026
+ 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
6027
  return React.createElement("tr", {
5469
6028
  key: product.id
5470
6029
  }, React.createElement("td", null, React.createElement(CustomCheckBox$1, null, React.createElement("label", {
@@ -5480,8 +6039,8 @@ var ProductData = function ProductData(_ref) {
5480
6039
  })))), React.createElement("td", null, product.id), React.createElement("td", null, product.name), React.createElement("td", null, product.parts));
5481
6040
  }))) : React.createElement(NoProductsMessage, null, "NO PRODUCTS TO RESTORE"));
5482
6041
  };
5483
- var Table$3 = /*#__PURE__*/styled(TableSkelton$1)(_templateObject$1A || (_templateObject$1A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow: scroll;\n scrollbar-width: none;\n height: 35vh;\n width: 50vw;\n padding: 5px;\n"])));
5484
- var NoProductsMessage = /*#__PURE__*/styled.div(_templateObject2$16 || (_templateObject2$16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: center;\n font-size: 18px;\n padding: 20px;\n color: #888;\n"])));
6042
+ 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"])));
6043
+ 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
6044
 
5486
6045
  var initialProducts = [{
5487
6046
  id: 1458784,
@@ -5602,7 +6161,7 @@ var RestoreProducts = function RestoreProducts() {
5602
6161
  })));
5603
6162
  };
5604
6163
 
5605
- var _templateObject$1B, _templateObject2$17;
6164
+ var _templateObject$1F, _templateObject2$18;
5606
6165
  function AssigneeDropdown() {
5607
6166
  var handleSelectChange = function handleSelectChange() {
5608
6167
  // alert('hello');
@@ -5624,8 +6183,8 @@ function AssigneeDropdown() {
5624
6183
  }
5625
6184
  }));
5626
6185
  }
5627
- var FormContainer$2 = /*#__PURE__*/styled.div(_templateObject$1B || (_templateObject$1B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n width: 285px;\n"])));
5628
- var StyledAntSelect$2 = /*#__PURE__*/styled(AntSelect)(_templateObject2$17 || (_templateObject2$17 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
6186
+ 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"])));
6187
+ var StyledAntSelect$2 = /*#__PURE__*/styled(AntSelect)(_templateObject2$18 || (_templateObject2$18 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
5629
6188
 
5630
6189
  var DatePickerIcon = function DatePickerIcon() {
5631
6190
  return React.createElement("svg", {
@@ -5643,12 +6202,12 @@ var DatePickerIcon = function DatePickerIcon() {
5643
6202
  }));
5644
6203
  };
5645
6204
 
5646
- var _templateObject$1C, _templateObject2$18, _templateObject3$B, _templateObject4$k, _templateObject8$5, _templateObject10$2, _templateObject11$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16, _templateObject17, _templateObject19$2, _templateObject20$2;
5647
- var ReferenceContainer = /*#__PURE__*/styled.div(_templateObject$1C || (_templateObject$1C = /*#__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"])));
5648
- var InnerContainer = /*#__PURE__*/styled.div(_templateObject2$18 || (_templateObject2$18 = /*#__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"])));
5649
- var MiniContainer = /*#__PURE__*/styled.div(_templateObject3$B || (_templateObject3$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 3px;\n flex: 1;\n"])));
5650
- var StyledText = /*#__PURE__*/styled(TextArea)(_templateObject4$k || (_templateObject4$k = /*#__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"])));
5651
- var StyledDateContainer = /*#__PURE__*/styled.div(_templateObject8$5 || (_templateObject8$5 = /*#__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"])));
6205
+ 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;
6206
+ 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"])));
6207
+ 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"])));
6208
+ 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"])));
6209
+ 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"])));
6210
+ 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
6211
  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
6212
  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
6213
  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 +6431,22 @@ function useFetchSingleReminderData() {
5872
6431
  return res;
5873
6432
  }
5874
6433
 
5875
- var _templateObject$1D, _templateObject2$19, _templateObject3$C, _templateObject4$l, _templateObject5$b, _templateObject6$9, _templateObject7$8;
6434
+ var _templateObject$1H, _templateObject2$1a, _templateObject3$E, _templateObject4$n, _templateObject5$c, _templateObject6$a, _templateObject7$9;
5876
6435
  function Loader(props) {
5877
6436
  return React.createElement(MainContainer$9, {
5878
6437
  id: "loder"
5879
6438
  }, 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
6439
  }
5881
- var rotate = /*#__PURE__*/keyframes(_templateObject$1D || (_templateObject$1D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"])));
6440
+ 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
6441
  // Styled components for the loading spinner
5883
- var Spinner = /*#__PURE__*/styled.div(_templateObject2$19 || (_templateObject2$19 = /*#__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);
5884
- var Container$$ = /*#__PURE__*/styled.div(_templateObject3$C || (_templateObject3$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n align-items: center;\n flex-direction: column;\n text-align: center;\n"])));
5885
- var Subtitle = /*#__PURE__*/styled.span(_templateObject4$l || (_templateObject4$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n font-size: 25px;\n text-transform: capitalize;\n font-weight: bold;\n"])));
5886
- var Title$5 = /*#__PURE__*/styled.span(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: white;\n font-size: 25px;\n text-transform: capitalize;\n font-weight: bold;\n"])));
5887
- var Wrapper$h = /*#__PURE__*/styled.div(_templateObject6$9 || (_templateObject6$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n"])));
5888
- var MainContainer$9 = /*#__PURE__*/styled.div(_templateObject7$8 || (_templateObject7$8 = /*#__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"])));
5889
-
5890
- var _templateObject$1E, _templateObject2$1a, _templateObject3$D, _templateObject4$m;
6442
+ 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);
6443
+ 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"])));
6444
+ 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"])));
6445
+ 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"])));
6446
+ var Wrapper$h = /*#__PURE__*/styled.div(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n"])));
6447
+ 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"])));
6448
+
6449
+ var _templateObject$1I, _templateObject2$1b, _templateObject3$F, _templateObject4$o;
5891
6450
  function StatusIndicator(props) {
5892
6451
  var statusColor = getStatusColor(props.status);
5893
6452
  return React.createElement(Container$10, null, React.createElement(StatusCircleContainer, {
@@ -5898,14 +6457,14 @@ function StatusIndicator(props) {
5898
6457
  status: props.status
5899
6458
  }, props.text));
5900
6459
  }
5901
- var StatusCircleContainer = /*#__PURE__*/styled.span(_templateObject$1E || (_templateObject$1E = /*#__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) {
6460
+ 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
6461
  return props.status === 'SD' ? '#30fe43' : props.status === 'AD' ? '#E95252' : 'transparent';
5903
6462
  });
5904
- var StatusCircle = /*#__PURE__*/styled.span(_templateObject2$1a || (_templateObject2$1a = /*#__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) {
6463
+ 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
6464
  return props.color;
5906
6465
  });
5907
- var Container$10 = /*#__PURE__*/styled.div(_templateObject3$D || (_templateObject3$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 10px;\n height: 22px;\n"])));
5908
- var Text$5 = /*#__PURE__*/styled.span(_templateObject4$m || (_templateObject4$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 13px;\n font-weight: normal;\n text-transform: capitalize;\n font-weight: 500;\n color: ", ";\n"])), function (props) {
6466
+ 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"])));
6467
+ 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
6468
  return props.status === 'SD' ? '#57DB7A' : props.status === 'AD' ? '#E95252' : 'transparent';
5910
6469
  });
5911
6470
 
@@ -6067,7 +6626,7 @@ function useFetchReminders() {
6067
6626
  return perform;
6068
6627
  }
6069
6628
 
6070
- var _templateObject$1F, _templateObject2$1b, _templateObject3$E, _templateObject4$n, _templateObject5$c, _templateObject6$a, _templateObject7$9;
6629
+ var _templateObject$1J, _templateObject2$1c, _templateObject3$G, _templateObject4$p, _templateObject5$d, _templateObject6$b, _templateObject7$a;
6071
6630
  var ViewReminderModal = function ViewReminderModal() {
6072
6631
  var _reminderData$reminde, _reminderData$order_d, _reminderData$order_d2, _reminderData$reminde2, _reminderData$reminde3, _reminderData$reminde4, _reminderData$reminde5;
6073
6632
  var _useCurrentAction = useCurrentAction(),
@@ -6182,129 +6741,59 @@ var ViewReminderModal = function ViewReminderModal() {
6182
6741
  }, _callee2);
6183
6742
  }));
6184
6743
  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$1F || (_templateObject$1F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 6px 10px;\n align-items: center;\n gap: 5px;\n border-radius: 30px;\n background: #fff;\n"])));
6227
- var StyledLabel = /*#__PURE__*/styled.label(_templateObject2$1b || (_templateObject2$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n"])));
6228
- var StyledSpan = /*#__PURE__*/styled.span(_templateObject3$E || (_templateObject3$E = /*#__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"])));
6229
- var StyledCheckbox = /*#__PURE__*/styled.div(_templateObject4$n || (_templateObject4$n = /*#__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"])));
6230
- var OuterDiv = /*#__PURE__*/styled.div(_templateObject5$c || (_templateObject5$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-left: 33%;\n"])));
6231
- var RoundCheckbox = /*#__PURE__*/styled.span(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
6232
- var LabelText = /*#__PURE__*/styled.span(_templateObject7$9 || (_templateObject7$9 = /*#__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"])));
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
- }];
6744
+ return _ref2.apply(this, arguments);
6745
+ };
6746
+ }();
6747
+ var isDisabled = (reminderData == null || (_reminderData$reminde = reminderData.reminder_status) == null ? void 0 : _reminderData$reminde.name_alias) === 'resolved';
6748
+ 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);
6749
+ return React.createElement(React.Fragment, null, reminderData && loading && React.createElement(Loader, null), React.createElement(OrderActionModal, {
6750
+ headerTitle: "View Reminder",
6751
+ onCloseHeader: closeModal,
6752
+ onSubmit: handleEditReminder,
6753
+ submitBtnTitle: "Save Details",
6754
+ isSubmitDisabled: isDisabled,
6755
+ showAdditionalInfo: true,
6756
+ infoText: additional || 'NA',
6757
+ 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", {
6758
+ type: "checkbox",
6759
+ onChange: function onChange() {
6760
+ return handleResolved(2);
6761
+ }
6762
+ }), React.createElement(RoundCheckbox, null)), React.createElement(StyledSpan, null, "Mark As Complete")))) : null)
6763
+ }, 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, {
6764
+ text: "Incomplete",
6765
+ status: "AD"
6766
+ }) : React.createElement(StatusIndicator, {
6767
+ text: "Completed on " + (reminderData == null ? void 0 : reminderData.completed) + " by " + (reminderData == null ? void 0 : reminderData.completed_by),
6768
+ status: "SD"
6769
+ }))))), 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, {
6770
+ dateFormat: "EEE, dd MMM yyyy",
6771
+ selected: reminderPayload != null && reminderPayload.due_date ? parse(reminderPayload.due_date, 'yyyy-MM-dd', new Date()) : null,
6772
+ onChange: handleDateChange,
6773
+ placeholderText: "Choose Due Date"
6774
+ }), React.createElement(DatePickerIcon, null)), React.createElement(TimeWrapper, null, React.createElement(StyledTime, {
6775
+ onChange: handleTime,
6776
+ value: reminderPayload == null ? void 0 : reminderPayload.due_time,
6777
+ type: "time"
6778
+ }))))), React.createElement(Right$2, null, React.createElement(DetailedContainer, null, React.createElement(Label$c, null, "Details"), React.createElement(StyledText, {
6779
+ name: "text",
6780
+ required: true,
6781
+ value: reminderPayload == null ? void 0 : reminderPayload.details,
6782
+ onChange: onChangeDetails
6783
+ }))))));
6784
+ };
6785
+ 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"])));
6786
+ var StyledLabel = /*#__PURE__*/styled.label(_templateObject2$1c || (_templateObject2$1c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n"])));
6787
+ 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"])));
6788
+ 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"])));
6789
+ var OuterDiv = /*#__PURE__*/styled.div(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-left: 33%;\n"])));
6790
+ var RoundCheckbox = /*#__PURE__*/styled.span(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
6791
+ 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
6792
 
6304
- var _templateObject$1G;
6793
+ var _templateObject$1K;
6305
6794
  var CustomSwitchSelector = function CustomSwitchSelector(_ref) {
6306
6795
  var onSwitchChange = _ref.onSwitchChange;
6307
- var initialSelectedIndex = options$1.findIndex(function (_ref2) {
6796
+ var initialSelectedIndex = options.findIndex(function (_ref2) {
6308
6797
  var value = _ref2.value;
6309
6798
  return value === 'task';
6310
6799
  });
@@ -6324,24 +6813,24 @@ var CustomSwitchSelector = function CustomSwitchSelector(_ref) {
6324
6813
  };
6325
6814
  return React.createElement(StyledSwitch, null, React.createElement(SwitchSelector, {
6326
6815
  onChange: handleSwitchChange,
6327
- options: options$1,
6816
+ options: options,
6328
6817
  initialSelectedIndex: initialSelectedIndex,
6329
6818
  backgroundColor: '#cbc8c2',
6330
6819
  fontColor: '#f5f6fa',
6331
6820
  optionBorderRadius: 30
6332
6821
  }));
6333
6822
  };
6334
- var StyledSwitch = /*#__PURE__*/styled.div(_templateObject$1G || (_templateObject$1G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 35%;\n height: 40px;\n .react-switch-selector-wrapper {\n background: #777777;\n }\n"])));
6823
+ 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
6824
 
6336
- var _templateObject$1H, _templateObject3$F, _templateObject4$o, _templateObject5$d, _templateObject7$a, _templateObject8$6, _templateObject9$3;
6825
+ var _templateObject$1L, _templateObject3$H, _templateObject4$q, _templateObject5$e, _templateObject7$b, _templateObject8$7, _templateObject9$4;
6337
6826
  // Shared styles and components
6338
- var Wrapper$i = /*#__PURE__*/styled.div(_templateObject$1H || (_templateObject$1H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
6339
- var SplitContainer = /*#__PURE__*/styled.div(_templateObject3$F || (_templateObject3$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* width: 95%; */\n min-width: 25vw;\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
6340
- var StyledAntSelect$3 = /*#__PURE__*/styled(Select)(_templateObject4$o || (_templateObject4$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n /* width: 22vw; */\n border-radius: 22px;\n }\n"])));
6341
- var Label$d = /*#__PURE__*/styled.label(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
6342
- var ContentContainer$7 = /*#__PURE__*/styled.div(_templateObject7$a || (_templateObject7$a = /*#__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"])));
6343
- var Row$6 = /*#__PURE__*/styled.div(_templateObject8$6 || (_templateObject8$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
6344
- var DoubleDropdownContainer = /*#__PURE__*/styled.div(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n width: 100%;\n"])));
6827
+ var Wrapper$i = /*#__PURE__*/styled.div(_templateObject$1L || (_templateObject$1L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
6828
+ 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"])));
6829
+ 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"])));
6830
+ 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"])));
6831
+ 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"])));
6832
+ var Row$6 = /*#__PURE__*/styled.div(_templateObject8$7 || (_templateObject8$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
6833
+ var DoubleDropdownContainer = /*#__PURE__*/styled.div(_templateObject9$4 || (_templateObject9$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n width: 100%;\n"])));
6345
6834
  var FormRow = function FormRow(_ref) {
6346
6835
  var label = _ref.label,
6347
6836
  children = _ref.children,
@@ -6355,7 +6844,7 @@ var FormRow = function FormRow(_ref) {
6355
6844
  }, " * ")), children);
6356
6845
  };
6357
6846
 
6358
- var _templateObject$1I, _templateObject2$1c, _templateObject3$G, _templateObject4$p, _templateObject5$e;
6847
+ var _templateObject$1M, _templateObject2$1d, _templateObject3$I, _templateObject4$r, _templateObject5$f;
6359
6848
  function CreateReminderModal() {
6360
6849
  var _useCategoryData = useCategoryData(),
6361
6850
  CategoryData = _useCategoryData[0];
@@ -6538,13 +7027,13 @@ function CreateReminderModal() {
6538
7027
  onChange: handleChange
6539
7028
  })));
6540
7029
  }
6541
- var StyleContainer = /*#__PURE__*/styled.div(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background: var(--Flowkit-White, #fff);\n"])));
6542
- var Label$e = /*#__PURE__*/styled.label(_templateObject2$1c || (_templateObject2$1c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
6543
- var StyledAntSelect$4 = /*#__PURE__*/styled(Select)(_templateObject3$G || (_templateObject3$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n width: 20vw;\n border-radius: 22px;\n }\n"])));
6544
- var StyledTextArea$2 = /*#__PURE__*/styled(TextArea)(_templateObject4$p || (_templateObject4$p = /*#__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"])));
6545
- var StyledLink = /*#__PURE__*/styled.div(_templateObject5$e || (_templateObject5$e = /*#__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"])));
7030
+ var StyleContainer = /*#__PURE__*/styled.div(_templateObject$1M || (_templateObject$1M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background: var(--Flowkit-White, #fff);\n"])));
7031
+ 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"])));
7032
+ 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"])));
7033
+ 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"])));
7034
+ 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
7035
 
6547
- var _templateObject$1J, _templateObject2$1d, _templateObject3$H, _templateObject4$q;
7036
+ var _templateObject$1N, _templateObject2$1e, _templateObject3$J, _templateObject4$s;
6548
7037
  function CreateTaskModal() {
6549
7038
  var _useTaskTypeData = useTaskTypeData(),
6550
7039
  taskTypes = _useTaskTypeData[0];
@@ -6730,10 +7219,10 @@ function CreateTaskModal() {
6730
7219
  value: createTask == null ? void 0 : createTask.description
6731
7220
  })));
6732
7221
  }
6733
- var StyleContainer$1 = /*#__PURE__*/styled.div(_templateObject$1J || (_templateObject$1J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background: var(--Flowkit-White, #fff);\n"])));
6734
- var StyledLink$1 = /*#__PURE__*/styled.div(_templateObject2$1d || (_templateObject2$1d = /*#__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"])));
6735
- var Label$f = /*#__PURE__*/styled.label(_templateObject3$H || (_templateObject3$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
6736
- var StyledTextArea$3 = /*#__PURE__*/styled(TextArea)(_templateObject4$q || (_templateObject4$q = /*#__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"])));
7222
+ var StyleContainer$1 = /*#__PURE__*/styled.div(_templateObject$1N || (_templateObject$1N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background: var(--Flowkit-White, #fff);\n"])));
7223
+ 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"])));
7224
+ 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"])));
7225
+ 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
7226
 
6738
7227
  function useCreateTask() {
6739
7228
  var ssoToken = getCookie('id_token');
@@ -6976,7 +7465,7 @@ function useFetchUnresolvedTasks() {
6976
7465
  return perform;
6977
7466
  }
6978
7467
 
6979
- var _templateObject$1K;
7468
+ var _templateObject$1O;
6980
7469
  function TaskReminderModal() {
6981
7470
  var createTaskAPI = useCreateTask();
6982
7471
  var createReminderAPI = useCreateReminder();
@@ -7146,80 +7635,9 @@ function TaskReminderModal() {
7146
7635
  onClose: function onClose() {}
7147
7636
  }) : '')));
7148
7637
  }
7149
- var OrderModal = /*#__PURE__*/styled(OrderActionModal)(_templateObject$1K || (_templateObject$1K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 70%;\n"])));
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
- }
7638
+ var OrderModal = /*#__PURE__*/styled(OrderActionModal)(_templateObject$1O || (_templateObject$1O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 70%;\n"])));
7221
7639
 
7222
- var _templateObject$1L, _templateObject2$1e;
7640
+ var _templateObject$1P, _templateObject2$1f;
7223
7641
  function OrderLock() {
7224
7642
  var _useCurrentAction = useCurrentAction(),
7225
7643
  setCurrentAction = _useCurrentAction[1];
@@ -7272,8 +7690,8 @@ function OrderLock() {
7272
7690
  })
7273
7691
  });
7274
7692
  }
7275
- var CustomCancelationModal = /*#__PURE__*/styled(CancelationModal)(_templateObject$1L || (_templateObject$1L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: rgba(0, 0, 0, 0.8);\n"])));
7276
- var CustomCancelAndCompleteAction$1 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$1e || (_templateObject2$1e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
7693
+ var CustomCancelationModal = /*#__PURE__*/styled(CancelationModal)(_templateObject$1P || (_templateObject$1P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: rgba(0, 0, 0, 0.8);\n"])));
7694
+ var CustomCancelAndCompleteAction$1 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$1f || (_templateObject2$1f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
7277
7695
 
7278
7696
  function useUpdateFlag() {
7279
7697
  var ssoToken = getCookie('id_token');
@@ -7343,7 +7761,7 @@ function useUpdateFlag() {
7343
7761
  return create;
7344
7762
  }
7345
7763
 
7346
- var _templateObject$1M, _templateObject2$1f, _templateObject3$I, _templateObject4$r, _templateObject5$f, _templateObject6$b;
7764
+ var _templateObject$1Q, _templateObject2$1g, _templateObject3$K, _templateObject4$t, _templateObject5$g, _templateObject6$c;
7347
7765
  function HeaderSection() {
7348
7766
  var _useSingleFlagData = useSingleFlagData(),
7349
7767
  dataArray = _useSingleFlagData[0];
@@ -7413,14 +7831,14 @@ function HeaderSection() {
7413
7831
  })
7414
7832
  })));
7415
7833
  }
7416
- var Header$1 = /*#__PURE__*/styled.div(_templateObject$1M || (_templateObject$1M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n"])));
7417
- var CustomCancelAndCompleteAction$2 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$1f || (_templateObject2$1f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
7418
- var ResolveButton = /*#__PURE__*/styled.button(_templateObject3$I || (_templateObject3$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-size: 14px;\n font-weight: 600;\n background: transparent;\n border: none;\n cursor: pointer;\n"])));
7419
- var Title$6 = /*#__PURE__*/styled.span(_templateObject4$r || (_templateObject4$r = /*#__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"])));
7420
- var StyledOverlay = /*#__PURE__*/styled.div(_templateObject5$f || (_templateObject5$f = /*#__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"])));
7421
- var CrossWrapper = /*#__PURE__*/styled.div(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
7834
+ 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"])));
7835
+ var CustomCancelAndCompleteAction$2 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$1g || (_templateObject2$1g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
7836
+ 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"])));
7837
+ 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"])));
7838
+ 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"])));
7839
+ var CrossWrapper = /*#__PURE__*/styled.div(_templateObject6$c || (_templateObject6$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
7422
7840
 
7423
- var _templateObject$1N, _templateObject2$1g;
7841
+ var _templateObject$1R, _templateObject2$1h;
7424
7842
  function TextSection() {
7425
7843
  var _useSinglePayload = useSinglePayload(),
7426
7844
  payload = _useSinglePayload[0],
@@ -7438,10 +7856,10 @@ function TextSection() {
7438
7856
  onChange: onChangeDetails
7439
7857
  }));
7440
7858
  }
7441
- var TextField = /*#__PURE__*/styled(TextArea)(_templateObject$1N || (_templateObject$1N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 97% !important;\n"])));
7442
- var Text$6 = /*#__PURE__*/styled.div(_templateObject2$1g || (_templateObject2$1g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n margin-top: 2%;\n"])));
7859
+ var TextField = /*#__PURE__*/styled(TextArea)(_templateObject$1R || (_templateObject$1R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 97% !important;\n"])));
7860
+ var Text$6 = /*#__PURE__*/styled.div(_templateObject2$1h || (_templateObject2$1h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n margin-top: 2%;\n"])));
7443
7861
 
7444
- var _templateObject$1O, _templateObject2$1h;
7862
+ var _templateObject$1S, _templateObject2$1i;
7445
7863
  function ButtonsSection() {
7446
7864
  var _useSinglePayload = useSinglePayload(),
7447
7865
  payload = _useSinglePayload[0],
@@ -7532,10 +7950,10 @@ function ButtonsSection() {
7532
7950
  status: "SD"
7533
7951
  }))));
7534
7952
  }
7535
- var Buttons = /*#__PURE__*/styled.div(_templateObject$1O || (_templateObject$1O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
7536
- var Flex$2 = /*#__PURE__*/styled.div(_templateObject2$1h || (_templateObject2$1h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
7953
+ var Buttons = /*#__PURE__*/styled.div(_templateObject$1S || (_templateObject$1S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
7954
+ var Flex$2 = /*#__PURE__*/styled.div(_templateObject2$1i || (_templateObject2$1i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
7537
7955
 
7538
- var _templateObject$1P, _templateObject2$1i, _templateObject3$J, _templateObject4$s, _templateObject5$g, _templateObject6$c;
7956
+ var _templateObject$1T, _templateObject2$1j, _templateObject3$L, _templateObject4$u, _templateObject5$h, _templateObject6$d;
7539
7957
  function ActionSection() {
7540
7958
  var _useCurrentAction = useCurrentAction(),
7541
7959
  setCurrentAction = _useCurrentAction[1];
@@ -7556,12 +7974,10 @@ function ActionSection() {
7556
7974
  _context.next = 3;
7557
7975
  return updateFlag([payload]);
7558
7976
  case 3:
7559
- _context.next = 5;
7560
- return fetchData();
7561
- case 5:
7562
- //modal close
7563
7977
  setCurrentAction(undefined);
7564
7978
  setLoading(false);
7979
+ _context.next = 7;
7980
+ return fetchData();
7565
7981
  case 7:
7566
7982
  case "end":
7567
7983
  return _context.stop();
@@ -7623,14 +8039,14 @@ function RadioButtonsSection() {
7623
8039
  required: false
7624
8040
  }));
7625
8041
  }
7626
- var ButtonWrapper = /*#__PURE__*/styled.div(_templateObject$1P || (_templateObject$1P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
7627
- var SaveButton = /*#__PURE__*/styled(Button$1)(_templateObject2$1i || (_templateObject2$1i = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
7628
- var CancelButton$1 = /*#__PURE__*/styled(Button$1)(_templateObject3$J || (_templateObject3$J = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
7629
- var DropDowns = /*#__PURE__*/styled.div(_templateObject4$s || (_templateObject4$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
7630
- var TooltipContent = /*#__PURE__*/styled.div(_templateObject5$g || (_templateObject5$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #333;\n color: #fff;\n padding: 5px 10px;\n border-radius: 5px;\n"])));
7631
- var Wrapper$j = /*#__PURE__*/styled.div(_templateObject6$c || (_templateObject6$c = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
8042
+ var ButtonWrapper = /*#__PURE__*/styled.div(_templateObject$1T || (_templateObject$1T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
8043
+ var SaveButton = /*#__PURE__*/styled(Button$1)(_templateObject2$1j || (_templateObject2$1j = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
8044
+ var CancelButton$1 = /*#__PURE__*/styled(Button$1)(_templateObject3$L || (_templateObject3$L = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
8045
+ var DropDowns = /*#__PURE__*/styled.div(_templateObject4$u || (_templateObject4$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
8046
+ 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"])));
8047
+ var Wrapper$j = /*#__PURE__*/styled.div(_templateObject6$d || (_templateObject6$d = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
7632
8048
 
7633
- var _templateObject$1Q, _templateObject2$1j, _templateObject3$K, _templateObject4$t, _templateObject5$h;
8049
+ var _templateObject$1U, _templateObject2$1k, _templateObject3$M, _templateObject4$v, _templateObject5$i;
7634
8050
  function DetailSection() {
7635
8051
  var _dataArray$order_data, _dataArray$order_data2;
7636
8052
  var _useSingleFlagData = useSingleFlagData(),
@@ -7642,11 +8058,11 @@ function DetailSection() {
7642
8058
  label: "Order"
7643
8059
  }), React.createElement(Order$1, null, orderColumnData)));
7644
8060
  }
7645
- var Detail = /*#__PURE__*/styled.div(_templateObject$1Q || (_templateObject$1Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 40%;\n flex-wrap: wrap;\n"])));
7646
- var Flex$3 = /*#__PURE__*/styled.div(_templateObject2$1j || (_templateObject2$1j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
7647
- var Ref = /*#__PURE__*/styled.div(_templateObject3$K || (_templateObject3$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n font-family: 'Lato', sans-serif;\n"])));
7648
- var Order$1 = /*#__PURE__*/styled.div(_templateObject4$t || (_templateObject4$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n text-decoration: underline;\n font-family: 'Lato', sans-serif;\n"])));
7649
- var StyledLabel$1 = /*#__PURE__*/styled(Label$h)(_templateObject5$h || (_templateObject5$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 10px;\n font-weight: bold;\n"])));
8061
+ 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"])));
8062
+ var Flex$3 = /*#__PURE__*/styled.div(_templateObject2$1k || (_templateObject2$1k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
8063
+ var Ref = /*#__PURE__*/styled.div(_templateObject3$M || (_templateObject3$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n font-family: 'Lato', sans-serif;\n"])));
8064
+ 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"])));
8065
+ var StyledLabel$1 = /*#__PURE__*/styled(Label$h)(_templateObject5$i || (_templateObject5$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 10px;\n font-weight: bold;\n"])));
7650
8066
 
7651
8067
  function useFetchSingleFlagsData() {
7652
8068
  var _useFlagRefId = useFlagRefId(),
@@ -7728,7 +8144,7 @@ function useFetchSingleFlagsData() {
7728
8144
  return res;
7729
8145
  }
7730
8146
 
7731
- var _templateObject$1R, _templateObject2$1k, _templateObject3$L;
8147
+ var _templateObject$1V, _templateObject2$1l, _templateObject3$N;
7732
8148
  function ViewFlag() {
7733
8149
  var _useSingleFlagData = useSingleFlagData(),
7734
8150
  dataArray = _useSingleFlagData[0],
@@ -7825,11 +8241,11 @@ function ViewFlag() {
7825
8241
  }, [dataArray]);
7826
8242
  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
8243
  }
7828
- var SectionsContainer = /*#__PURE__*/styled.div(_templateObject$1R || (_templateObject$1R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-top: 6%;\n"])));
7829
- var BackgroundModals = /*#__PURE__*/styled(BackgroundModal$1)(_templateObject2$1k || (_templateObject2$1k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(1px);\n"])));
7830
- var MainContainer$a = /*#__PURE__*/styled.div(_templateObject3$L || (_templateObject3$L = /*#__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"])));
8244
+ var SectionsContainer = /*#__PURE__*/styled.div(_templateObject$1V || (_templateObject$1V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-top: 6%;\n"])));
8245
+ 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"])));
8246
+ 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
8247
 
7832
- var _templateObject$1S;
8248
+ var _templateObject$1W;
7833
8249
  function ReleaseOrder() {
7834
8250
  var _useCurrentAction = useCurrentAction(),
7835
8251
  setCurrentAction = _useCurrentAction[1];
@@ -7848,9 +8264,9 @@ function ReleaseOrder() {
7848
8264
  styleAlert: "rounded" // Set the style variant of the alert
7849
8265
  }));
7850
8266
  }
7851
- var ReleaseContainer = /*#__PURE__*/styled.div(_templateObject$1S || (_templateObject$1S = /*#__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"])));
8267
+ 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
8268
 
7853
- var _templateObject$1T;
8269
+ var _templateObject$1X;
7854
8270
  function OrderActions() {
7855
8271
  var _useCurrentAction = useCurrentAction(),
7856
8272
  currentAction = _useCurrentAction[0];
@@ -7903,58 +8319,7 @@ function OrderActions() {
7903
8319
  };
7904
8320
  return React.createElement(Container$11, null, renderContent());
7905
8321
  }
7906
- var Container$11 = /*#__PURE__*/styled.div(_templateObject$1T || (_templateObject$1T = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
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"])));
8322
+ var Container$11 = /*#__PURE__*/styled.div(_templateObject$1X || (_templateObject$1X = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
7958
8323
 
7959
8324
  function useSystemLogs() {
7960
8325
  var ssoToken = getCookie('id_token');
@@ -8047,11 +8412,17 @@ function useSystemLogs() {
8047
8412
  return perform;
8048
8413
  }
8049
8414
 
8050
- var _templateObject$1Z, _templateObject2$1o, _templateObject3$M, _templateObject4$u, _templateObject5$i, _templateObject6$d, _templateObject7$b;
8415
+ var _templateObject$1Y, _templateObject2$1m, _templateObject3$O, _templateObject4$w;
8051
8416
  function OrderView() {
8417
+ notification.config({
8418
+ top: 150
8419
+ });
8052
8420
  var _useOrderId = useOrderId(),
8053
8421
  orderId = _useOrderId[0],
8054
8422
  setOrderId = _useOrderId[1];
8423
+ var _useGsitOrderId = useGsitOrderId(),
8424
+ gsitOrderId = _useGsitOrderId[0],
8425
+ setGsitOrderId = _useGsitOrderId[1];
8055
8426
  var splitPath = function splitPath(str) {
8056
8427
  var _str$split;
8057
8428
  var parts = str == null || (_str$split = str.split('/')) == null ? void 0 : _str$split.filter(function (part) {
@@ -8065,16 +8436,40 @@ function OrderView() {
8065
8436
  setOrderDetails = _useOrderDetails[1];
8066
8437
  var _usePrevOrderDetails = usePrevOrderDetails(),
8067
8438
  setPrevOrderDetails = _usePrevOrderDetails[1];
8068
- var _useLoading = useLoading(),
8069
- setLoading = _useLoading[1];
8439
+ var _useState = useState(false),
8440
+ setLoading = _useState[1];
8070
8441
  var _useOrderStaticData = useOrderStaticData(),
8071
8442
  setOrderStaticData = _useOrderStaticData[1];
8072
8443
  var _useStatusDetails = useStatusDetails(),
8073
8444
  setOrderStatus = _useStatusDetails[1];
8074
8445
  var _useDepotOptions = useDepotOptions(),
8075
8446
  setDepotOptions = _useDepotOptions[1];
8447
+ var _useCustomerInfo = useCustomerInfo(),
8448
+ setCustomerInfo = _useCustomerInfo[1];
8076
8449
  var location = useLocation();
8077
8450
  var paths = splitPath(location.pathname);
8451
+ var _useLocationOptions = useLocationOptions(),
8452
+ setLocationOptions = _useLocationOptions[1];
8453
+ var _useApiCalling = useApiCalling(),
8454
+ apiCalling = _useApiCalling[0];
8455
+ var _useOrderProductsReso = useOrderProductsResources(),
8456
+ orderResources = _useOrderProductsReso[0],
8457
+ setOrderResources = _useOrderProductsReso[1];
8458
+ var _useOrderProductsTool = useOrderProductsToolbox(),
8459
+ orderToolbox = _useOrderProductsTool[0],
8460
+ setOrderToolbox = _useOrderProductsTool[1];
8461
+ var _useGsitCUstomerId = useGsitCUstomerId(),
8462
+ GsitCUstomerId = _useGsitCUstomerId[0],
8463
+ setGsitCUstomerId = _useGsitCUstomerId[1];
8464
+ var _useOrderProductId = useOrderProductId(),
8465
+ setOrderProductId = _useOrderProductId[1];
8466
+ var _useCUstomerId = useCUstomerId(),
8467
+ setCUstomerId = _useCUstomerId[1];
8468
+ var _useRouteId = useRouteId(),
8469
+ setRouteId = _useRouteId[1];
8470
+ var _useLiveRecalling = useLiveRecalling(),
8471
+ liveRecalling = _useLiveRecalling[0];
8472
+ var systemLogsData = useSystemLogs();
8078
8473
  var _useApiHook = useApiHook({
8079
8474
  endpoint: "orders/" + orderId,
8080
8475
  method: 'GET',
@@ -8082,7 +8477,7 @@ function OrderView() {
8082
8477
  }),
8083
8478
  fetchedData = _useApiHook.data,
8084
8479
  loading = _useApiHook.loading,
8085
- setShouldPerformAction = _useApiHook.setShouldPerformAction;
8480
+ orderUpdate = _useApiHook.setShouldPerformAction;
8086
8481
  var _useApiHook2 = useApiHook({
8087
8482
  endpoint: "/orders/getStaticData/all/",
8088
8483
  method: 'GET'
@@ -8097,23 +8492,39 @@ function OrderView() {
8097
8492
  }),
8098
8493
  fetchedStatusData = _useApiHook3.data,
8099
8494
  statusDataLoading = _useApiHook3.loading,
8100
- setPerformAction = _useApiHook3.setShouldPerformAction;
8495
+ setLivePerformAction = _useApiHook3.setShouldPerformAction;
8101
8496
  var _useApiHook4 = useApiHook({
8102
8497
  endpoint: "/depot/",
8103
- method: 'GET'
8498
+ method: 'GET',
8499
+ filters: [{
8500
+ field: 'visibility',
8501
+ op: '=',
8502
+ value: true
8503
+ }]
8104
8504
  }),
8105
8505
  fetchedDepotData = _useApiHook4.data,
8106
8506
  depotDataLoading = _useApiHook4.loading;
8107
8507
  useEffect(function () {
8108
8508
  if (orderId) {
8109
- setShouldPerformAction(true);
8110
- setPerformAction(true);
8509
+ orderUpdate(true);
8510
+ liveRecalling ? setLivePerformAction(false) : setLivePerformAction(true);
8111
8511
  }
8112
- }, [orderId]);
8512
+ }, [orderId, liveRecalling]);
8513
+ useEffect(function () {
8514
+ if (apiCalling) {
8515
+ orderUpdate(true);
8516
+ } else {
8517
+ orderUpdate(false);
8518
+ }
8519
+ }, [apiCalling]);
8113
8520
  useEffect(function () {
8114
8521
  if (paths.length > 1) {
8115
8522
  setOrderId(paths[1]);
8116
8523
  }
8524
+ // for local
8525
+ // if (paths.length >= 0) {
8526
+ // setOrderId(paths[0]);
8527
+ // }
8117
8528
  }, [paths]);
8118
8529
  useEffect(function () {
8119
8530
  setLoading(staticDataLoading);
@@ -8125,8 +8536,20 @@ function OrderView() {
8125
8536
  useEffect(function () {
8126
8537
  setLoading(loading);
8127
8538
  if (fetchedData && fetchedData.data) {
8539
+ var _requiredData$, _requiredData$2, _requiredData$3, _requiredData$4, _requiredData$5, _requiredData$6;
8128
8540
  var requiredData = fetchedData == null ? void 0 : fetchedData.data;
8129
8541
  setOrderDetails(requiredData[0]);
8542
+ //@ts-ignore
8543
+ setCUstomerId((_requiredData$ = requiredData[0]) == null ? void 0 : _requiredData$.customer_id);
8544
+ setRouteId((_requiredData$2 = requiredData[0]) == null || (_requiredData$2 = _requiredData$2.order_routes) == null ? void 0 : _requiredData$2.route_id);
8545
+ //@ts-ignore
8546
+ setGsitOrderId((_requiredData$3 = requiredData[0]) == null ? void 0 : _requiredData$3.gsit_order_id);
8547
+ //@ts-ignore
8548
+ setOrderProductId((_requiredData$4 = requiredData[0]) == null ? void 0 : _requiredData$4.id);
8549
+ setCustomerInfo({
8550
+ recipient_name: (_requiredData$5 = requiredData[0]) == null || (_requiredData$5 = _requiredData$5.order_recipient) == null ? void 0 : _requiredData$5.recipient_name,
8551
+ postcode: (_requiredData$6 = requiredData[0]) == null || (_requiredData$6 = _requiredData$6.order_recipient) == null ? void 0 : _requiredData$6.postcode
8552
+ });
8130
8553
  setPrevOrderDetails(requiredData[0]);
8131
8554
  }
8132
8555
  }, [loading]);
@@ -8134,13 +8557,14 @@ function OrderView() {
8134
8557
  setLoading(statusDataLoading);
8135
8558
  if (fetchedStatusData && fetchedStatusData.data) {
8136
8559
  var requiredData = fetchedStatusData == null ? void 0 : fetchedStatusData.data;
8137
- if (requiredData.length > 0) {
8560
+ if (requiredData) {
8138
8561
  setOrderStatus(requiredData);
8139
- } else {
8140
- setOrderStatus(null);
8141
8562
  }
8142
8563
  }
8143
- }, [statusDataLoading]);
8564
+ return function () {
8565
+ setOrderId(null);
8566
+ };
8567
+ }, [statusDataLoading, fetchedStatusData]);
8144
8568
  useEffect(function () {
8145
8569
  setLoading(depotDataLoading);
8146
8570
  if (fetchedDepotData && fetchedDepotData.data) {
@@ -8157,9 +8581,90 @@ function OrderView() {
8157
8581
  setDepotOptions([]);
8158
8582
  }
8159
8583
  }
8584
+ return function () {
8585
+ setOrderId(null);
8586
+ };
8160
8587
  }, [depotDataLoading]);
8588
+ // Order resources
8589
+ var _useApiHook5 = useApiHook({
8590
+ endpoint: "/orders/" + orderId + "/order_resources/",
8591
+ method: 'GET',
8592
+ performAction: false
8593
+ }),
8594
+ fetchedResourcesData = _useApiHook5.data,
8595
+ setActions = _useApiHook5.setShouldPerformAction;
8596
+ useEffect(function () {
8597
+ if (orderId) {
8598
+ setActions(true);
8599
+ }
8600
+ }, [orderId, setActions]);
8601
+ useEffect(function () {
8602
+ if (orderId) {
8603
+ setOrderResources(fetchedResourcesData);
8604
+ }
8605
+ return function () {
8606
+ setOrderId(null);
8607
+ };
8608
+ }, [fetchedResourcesData, orderResources, setOrderResources]);
8609
+ // Toolbox resources
8610
+ var _useApiHook6 = useApiHook({
8611
+ endpoint: "/orders/" + orderId + "/toolbox_resources/",
8612
+ method: 'GET',
8613
+ performAction: false
8614
+ }),
8615
+ fetchedToolboxData = _useApiHook6.data,
8616
+ setAction = _useApiHook6.setShouldPerformAction;
8617
+ useEffect(function () {
8618
+ if (orderId) {
8619
+ setAction(true);
8620
+ }
8621
+ }, [orderId, setAction]);
8622
+ useEffect(function () {
8623
+ if (orderId) {
8624
+ setOrderToolbox(fetchedToolboxData);
8625
+ }
8626
+ return function () {
8627
+ setOrderId(undefined);
8628
+ };
8629
+ }, [fetchedToolboxData, orderToolbox, setOrderToolbox]);
8630
+ useEffect(function () {
8631
+ if (GsitCUstomerId != null && GsitCUstomerId.id) {
8632
+ shouldFetch(true);
8633
+ } else {
8634
+ shouldFetch(false);
8635
+ }
8636
+ }, [GsitCUstomerId]);
8637
+ useEffect(function () {
8638
+ return function () {
8639
+ setGsitCUstomerId(function (prev) {
8640
+ return _extends({}, prev, {
8641
+ id: undefined
8642
+ });
8643
+ });
8644
+ };
8645
+ }, []);
8646
+ var _useApiHook7 = useApiHook({
8647
+ endpoint: "/return_locations/?customer_id=" + (GsitCUstomerId == null ? void 0 : GsitCUstomerId.id),
8648
+ method: 'GET',
8649
+ performAction: false
8650
+ }),
8651
+ fetchedLocationData = _useApiHook7.data,
8652
+ dataLoading = _useApiHook7.loading,
8653
+ shouldFetch = _useApiHook7.setShouldPerformAction;
8654
+ useEffect(function () {
8655
+ if (fetchedLocationData && fetchedLocationData != null && fetchedLocationData.data) {
8656
+ var _fetchedLocationData$;
8657
+ var locationOptions = fetchedLocationData == null || (_fetchedLocationData$ = fetchedLocationData.data) == null ? void 0 : _fetchedLocationData$.map(function (item) {
8658
+ return {
8659
+ label: (item == null ? void 0 : item.location_name) + ', ' + (item == null ? void 0 : item.postcode),
8660
+ value: item == null ? void 0 : item.token,
8661
+ is_default: (item == null ? void 0 : item.is_default) === 'True' ? true : false
8662
+ };
8663
+ });
8664
+ setLocationOptions(locationOptions);
8665
+ }
8666
+ }, [dataLoading]);
8161
8667
  var gsitId = orderDetails == null ? void 0 : orderDetails.gsit_order_id;
8162
- var systemLogsData = useSystemLogs();
8163
8668
  var _useOrderProductSyste = useOrderProductSystemLogs(),
8164
8669
  setSystemLogsEvents = _useOrderProductSyste[1];
8165
8670
  var fetchReminderData = /*#__PURE__*/function () {
@@ -8184,36 +8689,26 @@ function OrderView() {
8184
8689
  };
8185
8690
  }();
8186
8691
  useEffect(function () {
8187
- if (gsitId) {
8692
+ if (gsitOrderId) {
8188
8693
  fetchReminderData();
8189
- console.log('Setting filters for gsitId:', gsitId);
8190
8694
  }
8695
+ return function () {
8696
+ setGsitOrderId(undefined);
8697
+ };
8191
8698
  }, [gsitId]);
8192
- return React.createElement(React.Fragment, null, React.createElement(DashBoardWrapper, null, React.createElement(RouterHeader, null), React.createElement("div", {
8193
- className: "Tableconatiner"
8194
- }, React.createElement(DetailsFilters, null), React.createElement(MainContainer$b, null, React.createElement(Section$1, null, React.createElement(GeneralHeader, null), React.createElement(NotifyContainer, null, React.createElement(Alert, {
8195
- type: "error",
8196
- title: "Outstanding",
8197
- description: "",
8198
- showOkButton: false,
8199
- onClose: function onClose() {}
8200
- })), 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(SystemLogs, null))), React.createElement(OrderActions, null)))));
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"])));
8699
+ 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));
8700
+ }
8701
+ 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"])));
8702
+ 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"])));
8703
+ var NotesContainer = /*#__PURE__*/styled.div(_templateObject3$O || (_templateObject3$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n"])));
8704
+ 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"])));
8705
+
8706
+ var _templateObject3$P, _templateObject5$j, _templateObject7$c, _templateObject8$8, _templateObject9$5, _templateObject10$3, _templateObject11$2, _templateObject14$2;
8707
+ 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
8708
  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
8709
  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$7 || (_templateObject8$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 20px;\n align-self: stretch;\n justify-content: space-between;\n"])));
8216
- var FilterColumn = /*#__PURE__*/styled.div(_templateObject9$4 || (_templateObject9$4 = /*#__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"])));
8710
+ 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"])));
8711
+ 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
8712
  var RightColumn$1 = /*#__PURE__*/styled.div(_templateObject10$3 || (_templateObject10$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex-direction: row;\n display: flex;\n"])));
8218
8713
  var LeftColumn = /*#__PURE__*/styled.div(_templateObject11$2 || (_templateObject11$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex-direction: row;\n display: flex;\n"])));
8219
8714
  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 +8808,7 @@ var filtersReducerAtom = /*#__PURE__*/atom(function (get) {
8313
8808
  return set(filtersStateAtom, filterReducer(get(filtersStateAtom), action));
8314
8809
  });
8315
8810
 
8316
- var _templateObject$1_;
8811
+ var _templateObject$1Z;
8317
8812
  function SelectionFilter() {
8318
8813
  var _useCustomerData = useCustomerData(),
8319
8814
  customers = _useCustomerData[0];
@@ -8539,7 +9034,7 @@ function SelectionFilter() {
8539
9034
  disabled: !isButtonEnabled
8540
9035
  }, "Apply"))));
8541
9036
  }
8542
- var StyledAntSelect$5 = /*#__PURE__*/styled(Select)(_templateObject$1_ || (_templateObject$1_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n /* width: 22vw; */\n border-radius: 22px;\n }\n"])));
9037
+ 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
9038
 
8544
9039
  function HeaderFilter() {
8545
9040
  var _useCustomerData = useCustomerData(),
@@ -8607,20 +9102,20 @@ function HeaderFilter() {
8607
9102
  return React.createElement(CoverPage, null, React.createElement(SelectionFilter, null));
8608
9103
  }
8609
9104
 
8610
- var _templateObject$1$, _templateObject4$v, _templateObject5$k, _templateObject7$d, _templateObject8$8;
9105
+ var _templateObject$1_, _templateObject4$x, _templateObject5$k, _templateObject7$d, _templateObject8$9;
8611
9106
  //Left side
8612
- 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"])));
9107
+ 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
9108
  //
8614
- var StyledFiter = /*#__PURE__*/styled.div(_templateObject4$v || (_templateObject4$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
9109
+ 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
9110
  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
9111
  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
9112
  // Right side filter
8618
- var StyledTableFilter = /*#__PURE__*/styled.div(_templateObject8$8 || (_templateObject8$8 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9113
+ var StyledTableFilter = /*#__PURE__*/styled.div(_templateObject8$9 || (_templateObject8$9 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
8619
9114
 
8620
- var _templateObject2$1p;
8621
- var StyledBulkItem = /*#__PURE__*/styled.div(_templateObject2$1p || (_templateObject2$1p = /*#__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"])));
9115
+ var _templateObject2$1n;
9116
+ 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
9117
 
8623
- var _templateObject$20, _templateObject2$1q;
9118
+ var _templateObject$1$, _templateObject2$1o;
8624
9119
  var SearchType = function SearchType() {
8625
9120
  var _useState = useState(''),
8626
9121
  searchText = _useState[0],
@@ -8635,8 +9130,8 @@ var SearchType = function SearchType() {
8635
9130
  onChange: handleInputChange
8636
9131
  }));
8637
9132
  };
8638
- var Search = /*#__PURE__*/styled.div(_templateObject$20 || (_templateObject$20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n svg {\n position: absolute;\n left: 12px;\n top: 50%;\n transform: translateY(-50%);\n }\n"])));
8639
- var SearchInput = /*#__PURE__*/styled.input(_templateObject2$1q || (_templateObject2$1q = /*#__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"])));
9133
+ 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"])));
9134
+ 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
9135
 
8641
9136
  function DownloadIcon() {
8642
9137
  return React.createElement("svg", {
@@ -8656,7 +9151,7 @@ function DownloadIcon() {
8656
9151
  }));
8657
9152
  }
8658
9153
 
8659
- var _templateObject$21, _templateObject2$1r, _templateObject3$O, _templateObject4$w, _templateObject5$l;
9154
+ var _templateObject$20, _templateObject2$1p, _templateObject3$Q, _templateObject4$y, _templateObject5$l;
8660
9155
  var RightFilters = function RightFilters() {
8661
9156
  var _useAtom = useAtom(countReducerAtom),
8662
9157
  dispatch = _useAtom[1];
@@ -8671,10 +9166,10 @@ var RightFilters = function RightFilters() {
8671
9166
  disabled: (selectedReturnOrder == null ? void 0 : selectedReturnOrder.length) === 0
8672
9167
  }, "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
9168
  };
8674
- var Container$12 = /*#__PURE__*/styled.div(_templateObject$21 || (_templateObject$21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n /* align-items: flex-start; */\n gap: 16px;\n align-items: center;\n"])));
8675
- var Mid = /*#__PURE__*/styled.div(_templateObject2$1r || (_templateObject2$1r = /*#__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"])));
8676
- var ButtonText = /*#__PURE__*/styled.button(_templateObject3$O || (_templateObject3$O = /*#__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"])));
8677
- var IconConatiner = /*#__PURE__*/styled.div(_templateObject4$w || (_templateObject4$w = /*#__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"])));
9169
+ 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"])));
9170
+ 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"])));
9171
+ 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"])));
9172
+ 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
9173
  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
9174
 
8680
9175
  var ReturnFilter = function ReturnFilter() {
@@ -8683,12 +9178,12 @@ var ReturnFilter = function ReturnFilter() {
8683
9178
  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
9179
  };
8685
9180
 
8686
- var _templateObject$22, _templateObject2$1s, _templateObject3$P, _templateObject4$x, _templateObject34;
8687
- var ColumStyle = /*#__PURE__*/styled.div(_templateObject$22 || (_templateObject$22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 67px;\n align-items: center;\n gap: 7px;\n"])));
8688
- var GreyBox = /*#__PURE__*/styled.div(_templateObject2$1s || (_templateObject2$1s = /*#__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"])));
9181
+ var _templateObject$21, _templateObject2$1q, _templateObject3$R, _templateObject4$z, _templateObject34;
9182
+ 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"])));
9183
+ 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
9184
  // Styled components
8690
- var StyledTableWrapper$1 = /*#__PURE__*/styled.div(_templateObject3$P || (_templateObject3$P = /*#__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"])));
8691
- var StyledTable$1 = /*#__PURE__*/styled.table(_templateObject4$x || (_templateObject4$x = /*#__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"])));
9185
+ 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"])));
9186
+ 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
9187
  var EmptyDataContainer = /*#__PURE__*/styled.div(_templateObject34 || (_templateObject34 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
8693
9188
 
8694
9189
  var PrinterIcon = function PrinterIcon() {
@@ -8857,7 +9352,7 @@ var optionsForReturnPrint = [{
8857
9352
  label: 'Print Return Labels'
8858
9353
  }];
8859
9354
 
8860
- var _templateObject$23, _templateObject2$1t;
9355
+ var _templateObject$22, _templateObject2$1r;
8861
9356
  // import { PrintIconMap } from '../utils';
8862
9357
  // import { optionsPrint } from '../fakeData';
8863
9358
  // import { PrintData } from '../interface';
@@ -8872,8 +9367,8 @@ var PrintDropDownReturn = function PrintDropDownReturn() {
8872
9367
  }, IconComponent && React.createElement(IconComponent, null), " ", item.label);
8873
9368
  }));
8874
9369
  };
8875
- var OptionsList = /*#__PURE__*/styled.ul(_templateObject$23 || (_templateObject$23 = /*#__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"])));
8876
- var OptionsListLi = /*#__PURE__*/styled.li(_templateObject2$1t || (_templateObject2$1t = /*#__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"])));
9370
+ 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"])));
9371
+ 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
9372
 
8878
9373
  var ReturnOrderTable = function ReturnOrderTable() {
8879
9374
  var _useAtom = useAtom(filtersReducerAtom),
@@ -9059,7 +9554,7 @@ var ReturnOrderTable = function ReturnOrderTable() {
9059
9554
  var mergedPayload = Object.values(groupedPayload);
9060
9555
  setGrouped(mergedPayload);
9061
9556
  }, [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", {
9557
+ 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
9558
  className: "emailInvoiceCheckbox"
9064
9559
  }, React.createElement(Checkbox$1, {
9065
9560
  checked: selectAll,
@@ -9119,12 +9614,12 @@ var ReturnOrderTable = function ReturnOrderTable() {
9119
9614
  })))));
9120
9615
  };
9121
9616
 
9122
- var _templateObject$24, _templateObject2$1u, _templateObject3$Q, _templateObject4$y;
9617
+ var _templateObject$23, _templateObject2$1s, _templateObject3$S, _templateObject4$A;
9123
9618
  var DefetcDetails = function DefetcDetails() {
9124
9619
  var handleSelectChange = function handleSelectChange() {
9125
9620
  console.log('Option selected');
9126
9621
  };
9127
- return React.createElement(Container$13, null, React.createElement(Flex$5, null, React.createElement(LabelWrapper, null, React.createElement(Label$h, {
9622
+ return React.createElement(Container$13, null, React.createElement(Flex$4, null, React.createElement(LabelWrapper, null, React.createElement(Label$h, {
9128
9623
  label: "What is the defect"
9129
9624
  }), React.createElement(StyledAntSelect$6, {
9130
9625
  options: TaskType,
@@ -9138,14 +9633,14 @@ var DefetcDetails = function DefetcDetails() {
9138
9633
  placeholder: "Select Category",
9139
9634
  onChange: handleSelectChange,
9140
9635
  selectWrapperClass: "rounded"
9141
- }))), React.createElement(Flex$5, null, React.createElement(LabelWrapper, null, React.createElement(Label$h, {
9636
+ }))), React.createElement(Flex$4, null, React.createElement(LabelWrapper, null, React.createElement(Label$h, {
9142
9637
  label: "Where is the primary defect located?"
9143
9638
  }), React.createElement(StyledAntSelect$6, {
9144
9639
  options: TaskType,
9145
9640
  placeholder: "Select located",
9146
9641
  onChange: handleSelectChange,
9147
9642
  selectWrapperClass: "rounded"
9148
- }))), React.createElement(Flex$5, null, React.createElement(LabelWrapper, null, React.createElement(Label$h, {
9643
+ }))), React.createElement(Flex$4, null, React.createElement(LabelWrapper, null, React.createElement(Label$h, {
9149
9644
  label: "Where is the secondary defect located?"
9150
9645
  }), React.createElement(StyledAntSelect$6, {
9151
9646
  options: TaskType,
@@ -9161,12 +9656,12 @@ var DefetcDetails = function DefetcDetails() {
9161
9656
  selectWrapperClass: "rounded"
9162
9657
  }))));
9163
9658
  };
9164
- var StyledAntSelect$6 = /*#__PURE__*/styled(AntSelect)(_templateObject$24 || (_templateObject$24 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
9165
- var Container$13 = /*#__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"])));
9166
- var Flex$5 = /*#__PURE__*/styled.div(_templateObject3$Q || (_templateObject3$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n\n @media (max-width: 768px) {\n flex-direction: column;\n }\n"])));
9167
- var LabelWrapper = /*#__PURE__*/styled.div(_templateObject4$y || (_templateObject4$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9659
+ var StyledAntSelect$6 = /*#__PURE__*/styled(AntSelect)(_templateObject$23 || (_templateObject$23 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
9660
+ 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"])));
9661
+ 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"])));
9662
+ var LabelWrapper = /*#__PURE__*/styled.div(_templateObject4$A || (_templateObject4$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9168
9663
 
9169
- var _templateObject$25;
9664
+ var _templateObject$24;
9170
9665
  var RepackProduct = function RepackProduct() {
9171
9666
  var options = [{
9172
9667
  value: 'bjsCouriers',
@@ -9226,9 +9721,9 @@ var RepackProduct = function RepackProduct() {
9226
9721
  }
9227
9722
  })));
9228
9723
  };
9229
- var GLobalPopupContent$3 = /*#__PURE__*/styled.div(_templateObject$25 || (_templateObject$25 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9724
+ var GLobalPopupContent$3 = /*#__PURE__*/styled.div(_templateObject$24 || (_templateObject$24 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9230
9725
 
9231
- var _templateObject$26, _templateObject2$1v, _templateObject3$R, _templateObject4$z, _templateObject5$m, _templateObject6$e;
9726
+ var _templateObject$25, _templateObject2$1t, _templateObject3$T, _templateObject4$B, _templateObject5$m, _templateObject6$e;
9232
9727
  var RepackDetails = function RepackDetails() {
9233
9728
  var _useState = useState(false),
9234
9729
  isAdditionalBoxChecked = _useState[0],
@@ -9239,28 +9734,28 @@ var RepackDetails = function RepackDetails() {
9239
9734
  var handleSelectChange = function handleSelectChange() {
9240
9735
  console.log('Option selected');
9241
9736
  };
9242
- return React.createElement(React.Fragment, null, React.createElement(Container$14, null, React.createElement(Flex$6, null, React.createElement(Flex$6, null, React.createElement(LabelWrapper$1, null, React.createElement(Label$h, {
9737
+ 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
9738
  label: "Who repacked it?"
9244
9739
  }), React.createElement(StyledAntSelect$7, {
9245
9740
  options: TaskType,
9246
9741
  placeholder: "Select Category",
9247
9742
  onChange: handleSelectChange,
9248
9743
  selectWrapperClass: "rounded"
9249
- }))), React.createElement(Flex$6, null, React.createElement(LabelWrapper$1, null, React.createElement(Label$h, {
9744
+ }))), React.createElement(Flex$5, null, React.createElement(LabelWrapper$1, null, React.createElement(Label$h, {
9250
9745
  label: "Packaging Type"
9251
9746
  }), React.createElement(StyledAntSelect$7, {
9252
9747
  options: TaskType,
9253
9748
  placeholder: "Select located",
9254
9749
  onChange: handleSelectChange,
9255
9750
  selectWrapperClass: "rounded"
9256
- }))), React.createElement(Flex$6, null, React.createElement(LabelWrapper$1, null, React.createElement(Label$h, {
9751
+ }))), React.createElement(Flex$5, null, React.createElement(LabelWrapper$1, null, React.createElement(Label$h, {
9257
9752
  label: "Repack Images"
9258
9753
  }), React.createElement(StyledAntSelect$7, {
9259
9754
  options: TaskType,
9260
9755
  placeholder: "Select secondary defect",
9261
9756
  onChange: handleSelectChange,
9262
9757
  selectWrapperClass: "rounded"
9263
- })))), React.createElement(Flex$6, null, React.createElement(CheckboxContainer$1, null, React.createElement(Checkbox$2, {
9758
+ })))), React.createElement(Flex$5, null, React.createElement(CheckboxContainer$1, null, React.createElement(Checkbox$2, {
9264
9759
  onChange: function onChange(e) {
9265
9760
  return setIsAdditionalBoxChecked(e.target.checked);
9266
9761
  }
@@ -9275,19 +9770,19 @@ var RepackDetails = function RepackDetails() {
9275
9770
  }
9276
9771
  }, "Have any other boxes repacked into this one?"), isRepacked && React.createElement(RepackProduct, null)))));
9277
9772
  };
9278
- var StyledAntSelect$7 = /*#__PURE__*/styled(AntSelect)(_templateObject$26 || (_templateObject$26 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
9279
- var CheckboxContainer$1 = /*#__PURE__*/styled.div(_templateObject2$1v || (_templateObject2$1v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n margin-top: 10px;\n"])));
9280
- var InputWrapper = /*#__PURE__*/styled.div(_templateObject3$R || (_templateObject3$R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n margin-left: 24px; // Indent input field to align with the checkbox\n"])));
9281
- var Container$14 = /*#__PURE__*/styled.div(_templateObject4$z || (_templateObject4$z = /*#__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"])));
9282
- var Flex$6 = /*#__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"])));
9773
+ var StyledAntSelect$7 = /*#__PURE__*/styled(AntSelect)(_templateObject$25 || (_templateObject$25 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
9774
+ 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"])));
9775
+ 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"])));
9776
+ 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"])));
9777
+ 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
9778
  var LabelWrapper$1 = /*#__PURE__*/styled.div(_templateObject6$e || (_templateObject6$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9284
9779
 
9285
- var _templateObject$27, _templateObject2$1w, _templateObject3$S, _templateObject4$A;
9780
+ var _templateObject$26, _templateObject2$1u, _templateObject3$U, _templateObject4$C;
9286
9781
  var OtherDamage = function OtherDamage() {
9287
9782
  var handleSelectChange = function handleSelectChange() {
9288
9783
  console.log('Option selected');
9289
9784
  };
9290
- return React.createElement(Container$15, null, React.createElement(Flex$7, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
9785
+ return React.createElement(Container$15, null, React.createElement(Flex$6, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
9291
9786
  label: "What is the primary defect?"
9292
9787
  }), React.createElement(StyledAntSelect$8, {
9293
9788
  options: TaskType,
@@ -9301,7 +9796,7 @@ var OtherDamage = function OtherDamage() {
9301
9796
  placeholder: "Select secondary defect",
9302
9797
  onChange: handleSelectChange,
9303
9798
  selectWrapperClass: "rounded"
9304
- }))), React.createElement(Flex$7, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
9799
+ }))), React.createElement(Flex$6, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
9305
9800
  label: "What is the secondary defect?"
9306
9801
  }), React.createElement(StyledAntSelect$8, {
9307
9802
  options: TaskType,
@@ -9315,7 +9810,7 @@ var OtherDamage = function OtherDamage() {
9315
9810
  placeholder: "Select Category",
9316
9811
  onChange: handleSelectChange,
9317
9812
  selectWrapperClass: "rounded"
9318
- }))), React.createElement(Flex$7, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
9813
+ }))), React.createElement(Flex$6, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
9319
9814
  label: "Where is the tertiary defect located?\n"
9320
9815
  }), React.createElement(StyledAntSelect$8, {
9321
9816
  options: TaskType,
@@ -9329,7 +9824,7 @@ var OtherDamage = function OtherDamage() {
9329
9824
  placeholder: "Select secondary defect",
9330
9825
  onChange: handleSelectChange,
9331
9826
  selectWrapperClass: "rounded"
9332
- }))), React.createElement(Flex$7, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
9827
+ }))), React.createElement(Flex$6, null, React.createElement(LabelWrapper$2, null, React.createElement(Label$h, {
9333
9828
  label: "What is the size of the defect?(cm)"
9334
9829
  }), React.createElement(StyledAntSelect$8, {
9335
9830
  options: TaskType,
@@ -9338,12 +9833,12 @@ var OtherDamage = function OtherDamage() {
9338
9833
  selectWrapperClass: "rounded"
9339
9834
  }))));
9340
9835
  };
9341
- var StyledAntSelect$8 = /*#__PURE__*/styled(AntSelect)(_templateObject$27 || (_templateObject$27 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
9342
- var Container$15 = /*#__PURE__*/styled.div(_templateObject2$1w || (_templateObject2$1w = /*#__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"])));
9343
- var Flex$7 = /*#__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"])));
9344
- var LabelWrapper$2 = /*#__PURE__*/styled.div(_templateObject4$A || (_templateObject4$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9836
+ var StyledAntSelect$8 = /*#__PURE__*/styled(AntSelect)(_templateObject$26 || (_templateObject$26 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
9837
+ 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"])));
9838
+ 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"])));
9839
+ var LabelWrapper$2 = /*#__PURE__*/styled.div(_templateObject4$C || (_templateObject4$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9345
9840
 
9346
- var _templateObject$28, _templateObject2$1x, _templateObject3$T, _templateObject4$B, _templateObject5$n;
9841
+ var _templateObject$27, _templateObject2$1v, _templateObject3$V, _templateObject4$D, _templateObject5$n;
9347
9842
  var AddDefect = function AddDefect() {
9348
9843
  var _useState = useState({
9349
9844
  actionDuring: '',
@@ -9370,7 +9865,7 @@ var AddDefect = function AddDefect() {
9370
9865
  });
9371
9866
  });
9372
9867
  };
9373
- return React.createElement(React.Fragment, null, React.createElement(Container$16, null, React.createElement(Flex$8, null, React.createElement(LabelWrapper$3, null, React.createElement(Label$h, {
9868
+ 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
9869
  label: "Does the packaging have any damage?"
9375
9870
  }), React.createElement(StyledAntSelect$9, {
9376
9871
  options: DefectConfirm,
@@ -9383,7 +9878,7 @@ var AddDefect = function AddDefect() {
9383
9878
  return React.createElement(DefetcDetails, {
9384
9879
  key: index
9385
9880
  });
9386
- })), React.createElement(Container$16, null, React.createElement(Flex$8, null, React.createElement(LabelWrapper$3, null, React.createElement(Label$h, {
9881
+ })), React.createElement(Container$16, null, React.createElement(Flex$7, null, React.createElement(LabelWrapper$3, null, React.createElement(Label$h, {
9387
9882
  label: "Has the product been checked?"
9388
9883
  }), React.createElement(StyledAntSelect$9, {
9389
9884
  options: DefectConfirm,
@@ -9397,7 +9892,7 @@ var AddDefect = function AddDefect() {
9397
9892
  placeholder: "Select",
9398
9893
  onChange: handleChange('productDamage'),
9399
9894
  selectWrapperClass: "rounded"
9400
- }))), state.productDamage === 'yes' && state.productChecked === 'yes' && React.createElement(OtherDamage, null)), React.createElement(Container$16, null, React.createElement(Flex$8, null, React.createElement(LabelWrapper$3, null, React.createElement(Label$h, {
9895
+ }))), 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
9896
  label: "Has the product been repacked?"
9402
9897
  }), React.createElement(StyledAntSelect$9, {
9403
9898
  options: DefectConfirm,
@@ -9406,18 +9901,18 @@ var AddDefect = function AddDefect() {
9406
9901
  selectWrapperClass: "rounded"
9407
9902
  }))), state.productRepacked === 'yes' && React.createElement(RepackDetails, null)));
9408
9903
  };
9409
- var StyledAntSelect$9 = /*#__PURE__*/styled(AntSelect)(_templateObject$28 || (_templateObject$28 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
9410
- var Container$16 = /*#__PURE__*/styled.div(_templateObject2$1x || (_templateObject2$1x = /*#__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"])));
9411
- var Flex$8 = /*#__PURE__*/styled.div(_templateObject3$T || (_templateObject3$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 10px;\n /* justify-content: space-between; */\n"])));
9412
- var LabelWrapper$3 = /*#__PURE__*/styled.div(_templateObject4$B || (_templateObject4$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n width: 20vw;\n"])));
9904
+ var StyledAntSelect$9 = /*#__PURE__*/styled(AntSelect)(_templateObject$27 || (_templateObject$27 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
9905
+ 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"])));
9906
+ 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"])));
9907
+ 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
9908
  var AddButton = /*#__PURE__*/styled(Button$1)(_templateObject5$n || (_templateObject5$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 10px;\n border-radius: 30px;\n"])));
9414
9909
 
9415
- var _templateObject$29, _templateObject2$1y, _templateObject3$U, _templateObject4$C;
9910
+ var _templateObject$28, _templateObject2$1w, _templateObject3$W, _templateObject4$E;
9416
9911
  var QCLogs = function QCLogs() {
9417
9912
  var handleSelectChange = function handleSelectChange() {
9418
9913
  console.log('Option selected');
9419
9914
  };
9420
- return React.createElement(Container$17, null, React.createElement(Flex$9, null, React.createElement(LabelWrapper$4, null, React.createElement(Label$h, {
9915
+ return React.createElement(Container$17, null, React.createElement(Flex$8, null, React.createElement(LabelWrapper$4, null, React.createElement(Label$h, {
9421
9916
  label: "Action During"
9422
9917
  }), React.createElement(StyledAntSelect$a, {
9423
9918
  options: TaskType,
@@ -9433,12 +9928,12 @@ var QCLogs = function QCLogs() {
9433
9928
  selectWrapperClass: "rounded"
9434
9929
  }))), React.createElement(AddDefect, null));
9435
9930
  };
9436
- var StyledAntSelect$a = /*#__PURE__*/styled(AntSelect)(_templateObject$29 || (_templateObject$29 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
9437
- var Container$17 = /*#__PURE__*/styled.div(_templateObject2$1y || (_templateObject2$1y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n flex-direction: column;\n"])));
9438
- var Flex$9 = /*#__PURE__*/styled.div(_templateObject3$U || (_templateObject3$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 10px;\n"])));
9439
- var LabelWrapper$4 = /*#__PURE__*/styled.div(_templateObject4$C || (_templateObject4$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n width: 20vw;\n"])));
9931
+ var StyledAntSelect$a = /*#__PURE__*/styled(AntSelect)(_templateObject$28 || (_templateObject$28 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20vw;\n"])));
9932
+ var Container$17 = /*#__PURE__*/styled.div(_templateObject2$1w || (_templateObject2$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n flex-direction: column;\n"])));
9933
+ var Flex$8 = /*#__PURE__*/styled.div(_templateObject3$W || (_templateObject3$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 10px;\n"])));
9934
+ 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
9935
 
9441
- var _templateObject$2a, _templateObject2$1z, _templateObject3$V, _templateObject4$D, _templateObject5$o;
9936
+ var _templateObject$29, _templateObject2$1x, _templateObject3$X, _templateObject4$F, _templateObject5$o;
9442
9937
  function UpdateProduct() {
9443
9938
  var _orderStaticData$coll, _orderStaticData$orde, _orderStaticData$retu, _orderStaticData$orde2;
9444
9939
  var _useState = useState(),
@@ -9535,13 +10030,13 @@ function UpdateProduct() {
9535
10030
  selectWrapperClass: "rounded"
9536
10031
  }))));
9537
10032
  }
9538
- var CollectionBox = /*#__PURE__*/styled.div(_templateObject$2a || (_templateObject$2a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
9539
- var ReturnBox = /*#__PURE__*/styled.div(_templateObject2$1z || (_templateObject2$1z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 10px;\n margin-top: 32px;\n justify-content: space-between;\n"])));
9540
- var Container$18 = /*#__PURE__*/styled.div(_templateObject3$V || (_templateObject3$V = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9541
- var LabelWrapper$5 = /*#__PURE__*/styled.div(_templateObject4$D || (_templateObject4$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
10033
+ var CollectionBox = /*#__PURE__*/styled.div(_templateObject$29 || (_templateObject$29 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
10034
+ 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"])));
10035
+ var Container$18 = /*#__PURE__*/styled.div(_templateObject3$X || (_templateObject3$X = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10036
+ var LabelWrapper$5 = /*#__PURE__*/styled.div(_templateObject4$F || (_templateObject4$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9542
10037
  var StyledAntSelect$b = /*#__PURE__*/styled(AntSelect)(_templateObject5$o || (_templateObject5$o = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9543
10038
 
9544
- var _templateObject$2b, _templateObject2$1A, _templateObject3$W;
10039
+ var _templateObject$2a, _templateObject2$1y, _templateObject3$Y;
9545
10040
  function UnReceiveProduct() {
9546
10041
  var _orderStaticData$unre;
9547
10042
  var _useRecieveOrderProdu = useRecieveOrderProducts(),
@@ -9589,11 +10084,11 @@ function UnReceiveProduct() {
9589
10084
  onNotesChange: handleNotesChange
9590
10085
  })));
9591
10086
  }
9592
- var Container$19 = /*#__PURE__*/styled.div(_templateObject$2b || (_templateObject$2b = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9593
- var LabelWrapper$6 = /*#__PURE__*/styled.div(_templateObject2$1A || (_templateObject2$1A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9594
- var StyledAntSelect$c = /*#__PURE__*/styled(AntSelect)(_templateObject3$W || (_templateObject3$W = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10087
+ var Container$19 = /*#__PURE__*/styled.div(_templateObject$2a || (_templateObject$2a = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10088
+ var LabelWrapper$6 = /*#__PURE__*/styled.div(_templateObject2$1y || (_templateObject2$1y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
10089
+ var StyledAntSelect$c = /*#__PURE__*/styled(AntSelect)(_templateObject3$Y || (_templateObject3$Y = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9595
10090
 
9596
- var _templateObject$2c, _templateObject2$1B;
10091
+ var _templateObject$2b, _templateObject2$1z;
9597
10092
  var ProductAction = function ProductAction() {
9598
10093
  var _useAtom = useAtom(selectedTabKeyAtom),
9599
10094
  setSelectedTabKey = _useAtom[1];
@@ -9618,10 +10113,10 @@ var ProductAction = function ProductAction() {
9618
10113
  }]
9619
10114
  }))));
9620
10115
  };
9621
- var GLobalPopupContent$4 = /*#__PURE__*/styled.div(_templateObject$2c || (_templateObject$2c = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9622
- var Container$1a = /*#__PURE__*/styled.div(_templateObject2$1B || (_templateObject2$1B = /*#__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"])));
10116
+ var GLobalPopupContent$4 = /*#__PURE__*/styled.div(_templateObject$2b || (_templateObject$2b = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10117
+ 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
10118
 
9624
- var _templateObject$2d;
10119
+ var _templateObject$2c;
9625
10120
  var LogsTable = function LogsTable() {
9626
10121
  var options = [{
9627
10122
  value: 'bjsCouriers',
@@ -9696,9 +10191,9 @@ var LogsTable = function LogsTable() {
9696
10191
  }
9697
10192
  })));
9698
10193
  };
9699
- var GlobalPopupContent = /*#__PURE__*/styled.div(_templateObject$2d || (_templateObject$2d = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10194
+ var GlobalPopupContent = /*#__PURE__*/styled.div(_templateObject$2c || (_templateObject$2c = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9700
10195
 
9701
- var _templateObject$2e, _templateObject2$1C;
10196
+ var _templateObject$2d, _templateObject2$1A;
9702
10197
  var DefectsModal = function DefectsModal() {
9703
10198
  var options = [{
9704
10199
  value: 'bjsCouriers',
@@ -9750,10 +10245,10 @@ var DefectsModal = function DefectsModal() {
9750
10245
  }
9751
10246
  }))));
9752
10247
  };
9753
- var StyledConatiner = /*#__PURE__*/styled.div(_templateObject$2e || (_templateObject$2e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* tex: nowrap; */\n"])));
9754
- var GLobalPopupContent$5 = /*#__PURE__*/styled.div(_templateObject2$1C || (_templateObject2$1C = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10248
+ var StyledConatiner = /*#__PURE__*/styled.div(_templateObject$2d || (_templateObject$2d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* tex: nowrap; */\n"])));
10249
+ var GLobalPopupContent$5 = /*#__PURE__*/styled.div(_templateObject2$1A || (_templateObject2$1A = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9755
10250
 
9756
- var _templateObject$2f;
10251
+ var _templateObject$2e;
9757
10252
  var repackModal = function repackModal() {
9758
10253
  var columns = [{
9759
10254
  key: 'packaging_type',
@@ -9783,10 +10278,10 @@ var repackModal = function repackModal() {
9783
10278
  }
9784
10279
  }))));
9785
10280
  };
9786
- var StyledConatiner$1 = /*#__PURE__*/styled.div(_templateObject$2f || (_templateObject$2f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* text-wrap: nowrap; */\n"])));
10281
+ var StyledConatiner$1 = /*#__PURE__*/styled.div(_templateObject$2e || (_templateObject$2e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* text-wrap: nowrap; */\n"])));
9787
10282
 
9788
- var _templateObject$2g, _templateObject2$1D, _templateObject3$X;
9789
- var _excluded$2 = ["id"];
10283
+ var _templateObject$2f, _templateObject2$1B, _templateObject3$Z;
10284
+ var _excluded$3 = ["id"];
9790
10285
  var CreateReturnModal = function CreateReturnModal() {
9791
10286
  var _useSelectedConfirmLo = useSelectedConfirmLoc(),
9792
10287
  selectedlocation = _useSelectedConfirmLo[0],
@@ -9829,7 +10324,7 @@ var CreateReturnModal = function CreateReturnModal() {
9829
10324
  });
9830
10325
  if (matchedItems.length > 0) {
9831
10326
  var finalPayload = matchedItems == null ? void 0 : matchedItems.map(function (_ref) {
9832
- var rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
10327
+ var rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
9833
10328
  return rest;
9834
10329
  });
9835
10330
  setNew(finalPayload);
@@ -9867,9 +10362,9 @@ var CreateReturnModal = function CreateReturnModal() {
9867
10362
  }, displayValueOrNA(returnLoc == null ? void 0 : returnLoc.new_location)));
9868
10363
  })))));
9869
10364
  };
9870
- var StyledText$1 = /*#__PURE__*/styled.div(_templateObject$2g || (_templateObject$2g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #8d8f90;\n font-family: Poppins;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n"])));
9871
- var Container$1b = /*#__PURE__*/styled.div(_templateObject2$1D || (_templateObject2$1D = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9872
- var Wrapper$l = /*#__PURE__*/styled.div(_templateObject3$X || (_templateObject3$X = /*#__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"])));
10365
+ 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"])));
10366
+ var Container$1b = /*#__PURE__*/styled.div(_templateObject2$1B || (_templateObject2$1B = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10367
+ 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
10368
 
9874
10369
  var ModalManager = function ModalManager() {
9875
10370
  var _useAtom = useAtom(countReducerAtom),
@@ -9888,7 +10383,7 @@ var ModalManager = function ModalManager() {
9888
10383
  var _useUpdateOrderProduc = useUpdateOrderProducts(),
9889
10384
  updateOrderProduct = _useUpdateOrderProduc[0],
9890
10385
  setUpdateOrderProduct = _useUpdateOrderProduc[1];
9891
- var _useAtom2 = useAtom(selectedProductIdAtom),
10386
+ var _useAtom2 = useAtom(letselectedProductIdAtom),
9892
10387
  selectedProductId = _useAtom2[0];
9893
10388
  var _useAtom3 = useAtom(selectedTabKeyAtom),
9894
10389
  selectedTab = _useAtom3[0];
@@ -10212,14 +10707,14 @@ var ModalManager = function ModalManager() {
10212
10707
  }));
10213
10708
  };
10214
10709
 
10215
- var _templateObject$2h, _templateObject2$1E;
10710
+ var _templateObject$2g, _templateObject2$1C;
10216
10711
  var ReturnTable = function ReturnTable() {
10217
- return React.createElement("div", null, React.createElement(DashBoardWrapper$1, null, React.createElement(RouterHeader, null), React.createElement("div", {
10712
+ return React.createElement("div", null, React.createElement(DashBoardWrapper, null, React.createElement("div", {
10218
10713
  className: "Tableconatiner"
10219
10714
  }, React.createElement(HeaderFilter, null), React.createElement(Container$1c, null, React.createElement(ReturnFilter, null), React.createElement(ReturnOrderTable, null)))), React.createElement(ModalManager, null));
10220
10715
  };
10221
- var Container$1c = /*#__PURE__*/styled.div(_templateObject$2h || (_templateObject$2h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n top: -46px;\n"])));
10222
- var DashBoardWrapper$1 = /*#__PURE__*/styled.section(_templateObject2$1E || (_templateObject2$1E = /*#__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"])));
10716
+ var Container$1c = /*#__PURE__*/styled.div(_templateObject$2g || (_templateObject$2g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n top: -46px;\n"])));
10717
+ 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
10718
 
10224
10719
  function LoadIcon() {
10225
10720
  return React.createElement("svg", {
@@ -10347,7 +10842,7 @@ var OrderTable = function OrderTable(_ref) {
10347
10842
  console.log(id, 'idid');
10348
10843
  return React.createElement(React.Fragment, null, React.createElement(StyledTableWrapper, {
10349
10844
  id: "tableScrolling"
10350
- }, React.createElement(StyledTable, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
10845
+ }, React.createElement(StyledTable$2, null, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", {
10351
10846
  className: "emailInvoiceCheckbox"
10352
10847
  }, React.createElement(Checkbox$1, {
10353
10848
  checked: selectAll,
@@ -10442,7 +10937,7 @@ var OrderTable = function OrderTable(_ref) {
10442
10937
  })))));
10443
10938
  };
10444
10939
 
10445
- var _templateObject$2i, _templateObject2$1F, _templateObject3$Y, _templateObject4$E;
10940
+ var _templateObject$2h, _templateObject2$1D, _templateObject3$_, _templateObject4$G;
10446
10941
  var TableFilters = function TableFilters() {
10447
10942
  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
10943
  // return (
@@ -10458,8 +10953,8 @@ var TableFilters = function TableFilters() {
10458
10953
  // // </StyledBulkFilterCover>
10459
10954
  // );
10460
10955
  };
10461
- var Container$1d = /*#__PURE__*/styled.div(_templateObject$2i || (_templateObject$2i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n /* align-items: flex-start; */\n gap: 16px;\n align-items: center;\n"])));
10462
- var Mid$1 = /*#__PURE__*/styled.div(_templateObject2$1F || (_templateObject2$1F = /*#__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"])));
10956
+ 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"])));
10957
+ 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
10958
  // const TextConatiner = styled.div`
10464
10959
  // display: flex;
10465
10960
  // padding: 7px 12px;
@@ -10477,8 +10972,8 @@ var Mid$1 = /*#__PURE__*/styled.div(_templateObject2$1F || (_templateObject2$1F
10477
10972
  // font-weight: 600;
10478
10973
  // line-height: 20px;
10479
10974
  // `;
10480
- var IconConatiner$1 = /*#__PURE__*/styled.div(_templateObject3$Y || (_templateObject3$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\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"])));
10481
- var IconText$1 = /*#__PURE__*/styled.div(_templateObject4$E || (_templateObject4$E = /*#__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"])));
10975
+ 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"])));
10976
+ 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
10977
 
10483
10978
  var FilterIcon = function FilterIcon() {
10484
10979
  return React.createElement("svg", {
@@ -10663,7 +11158,7 @@ var AssigneIcon = function AssigneIcon() {
10663
11158
  }))));
10664
11159
  };
10665
11160
 
10666
- var _templateObject$2j, _templateObject2$1G;
11161
+ var _templateObject$2i, _templateObject2$1E;
10667
11162
  var ReturnOrderFilter = function ReturnOrderFilter() {
10668
11163
  var _useAtom = useAtom(filtersReducerAtom$1),
10669
11164
  dispatch = _useAtom[1];
@@ -10778,11 +11273,11 @@ var ReturnOrderFilter = function ReturnOrderFilter() {
10778
11273
  className: "dateiconcontainer"
10779
11274
  }, React.createElement(AssigneIcon, null))))), React.createElement(TableFilters, null)));
10780
11275
  };
10781
- var StyledDatePicker = /*#__PURE__*/styled.div(_templateObject$2j || (_templateObject$2j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .custom-datepicker {\n border: none;\n }\n"])));
11276
+ var StyledDatePicker = /*#__PURE__*/styled.div(_templateObject$2i || (_templateObject$2i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .custom-datepicker {\n border: none;\n }\n"])));
10782
11277
  // const DropdownContainer = styled.div``;
10783
- var StyledAntSelect$d = /*#__PURE__*/styled.div(_templateObject2$1G || (_templateObject2$1G = /*#__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"])));
11278
+ 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
11279
 
10785
- var _templateObject$2k, _templateObject2$1H;
11280
+ var _templateObject$2j, _templateObject2$1F;
10786
11281
  var ReturnAfterTable = function ReturnAfterTable() {
10787
11282
  var _useReturnAfterOrderD = useReturnAfterOrderData(),
10788
11283
  setReturnOrderData = _useReturnAfterOrderD[1];
@@ -10804,12 +11299,12 @@ var ReturnAfterTable = function ReturnAfterTable() {
10804
11299
  setReturnOrderData(fetchedReturnOrderData == null ? void 0 : fetchedReturnOrderData.data);
10805
11300
  }
10806
11301
  }, [fetchedReturnOrderData, staticDataLoading]);
10807
- return React.createElement("div", null, React.createElement(DashBoardWrapper$2, null, React.createElement(RouterHeader, null), React.createElement("div", {
11302
+ return React.createElement("div", null, React.createElement(DashBoardWrapper$1, null, React.createElement("div", {
10808
11303
  className: "Tableconatiner"
10809
11304
  }, React.createElement(HeaderFilter, null), React.createElement(Container$1e, null, React.createElement(ReturnOrderFilter, null), React.createElement(OrderTable, null)))));
10810
11305
  };
10811
- var Container$1e = /*#__PURE__*/styled.div(_templateObject$2k || (_templateObject$2k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n top: -30px;\n"])));
10812
- var DashBoardWrapper$2 = /*#__PURE__*/styled.section(_templateObject2$1H || (_templateObject2$1H = /*#__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"])));
11306
+ var Container$1e = /*#__PURE__*/styled.div(_templateObject$2j || (_templateObject$2j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n top: -30px;\n"])));
11307
+ 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
11308
 
10814
11309
  var BulkFilter = function BulkFilter() {
10815
11310
  // const [printToogle, setPrintToggle] = useMenuDropDown();
@@ -10838,7 +11333,7 @@ var BulkFilter = function BulkFilter() {
10838
11333
  );
10839
11334
  };
10840
11335
 
10841
- var _excluded$3 = ["count"];
11336
+ var _excluded$4 = ["count"];
10842
11337
  // import { useAtom } from 'jotai';
10843
11338
  var Filters = function Filters() {
10844
11339
  var _useRoutesTable = useRoutesTable(),
@@ -10864,7 +11359,7 @@ var Filters = function Filters() {
10864
11359
  if (paginationData !== null) {
10865
11360
  var _JSON$parse = JSON.parse(paginationData),
10866
11361
  count = _JSON$parse.count,
10867
- rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$3);
11362
+ rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$4);
10868
11363
  setPaginationObject(rest);
10869
11364
  setCount(count);
10870
11365
  } else {
@@ -10906,7 +11401,7 @@ var ReturnTable$1 = function ReturnTable(_ref) {
10906
11401
  }, [staticDataLoading, fetchedStaticData]);
10907
11402
  return React.createElement(React.Fragment, null, React.createElement(StyledTableWrapper$1, {
10908
11403
  id: "tableScrolling"
10909
- }, React.createElement(StyledTable$1, 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", {
11404
+ }, 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
11405
  colSpan: 9
10911
11406
  }, React.createElement(Skeleton, {
10912
11407
  active: true
@@ -10930,7 +11425,7 @@ var ReturnTable$1 = function ReturnTable(_ref) {
10930
11425
  })))));
10931
11426
  };
10932
11427
 
10933
- var _templateObject$2l, _templateObject2$1I, _templateObject3$Z;
11428
+ var _templateObject$2k, _templateObject2$1G, _templateObject3$$;
10934
11429
  // import Loader from '../loader/Loader';
10935
11430
  // interface ApiResponse {
10936
11431
  // message: string;
@@ -10973,15 +11468,52 @@ function ReturnMainTable() {
10973
11468
  setClientData(result);
10974
11469
  }
10975
11470
  }, [staticDataLoading]);
10976
- return React.createElement(React.Fragment, null, React.createElement(DashBoardWrapper$3, {
11471
+ return React.createElement(React.Fragment, null, React.createElement(DashBoardWrapper$2, {
10977
11472
  className: " " + (isScrolled ? 'stickyTableHead' : '')
10978
- }, React.createElement(RouterHeader, null), React.createElement("div", {
11473
+ }, React.createElement("div", {
10979
11474
  className: "Tableconatiner"
10980
11475
  }, 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
11476
  }
10982
- var Row$7 = /*#__PURE__*/styled.div(_templateObject$2l || (_templateObject$2l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
10983
- var Container$1f = /*#__PURE__*/styled.div(_templateObject2$1I || (_templateObject2$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n top: -46px;\n"])));
10984
- var DashBoardWrapper$3 = /*#__PURE__*/styled.section(_templateObject3$Z || (_templateObject3$Z = /*#__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"])));
11477
+ 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"])));
11478
+ var Container$1f = /*#__PURE__*/styled.div(_templateObject2$1G || (_templateObject2$1G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n top: -46px;\n"])));
11479
+ 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"])));
11480
+
11481
+ var _templateObject$2l, _templateObject2$1H;
11482
+ 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"])));
11483
+ var StyledFlex = /*#__PURE__*/styled.div(_templateObject2$1H || (_templateObject2$1H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n"])));
11484
+
11485
+ var _templateObject$2m;
11486
+ var HeaderTitle = function HeaderTitle(props) {
11487
+ return React.createElement(React.Fragment, null, React.createElement(Title$7, null, props.title));
11488
+ };
11489
+ 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"])));
11490
+
11491
+ var _templateObject$2n, _templateObject2$1I;
11492
+ function Breadcrumb(props) {
11493
+ 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)));
11494
+ }
11495
+ var BreadcrumbContainer = /*#__PURE__*/styled.div(_templateObject$2n || (_templateObject$2n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
11496
+ 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"])));
11497
+
11498
+ var RouterHeader = function RouterHeader(_ref) {
11499
+ var _ref$breadcrumbTitle = _ref.breadcrumbTitle,
11500
+ breadcrumbTitle = _ref$breadcrumbTitle === void 0 ? 'Clients >' : _ref$breadcrumbTitle,
11501
+ _ref$breadcrumbSubtit = _ref.breadcrumbSubtitle,
11502
+ breadcrumbSubtitle = _ref$breadcrumbSubtit === void 0 ? ' Return' : _ref$breadcrumbSubtit,
11503
+ breadcrumbSubPart = _ref.breadcrumbSubPart;
11504
+ // const [, dispatch] = useAtom(filtersReducerAtom);
11505
+ // const [today, setToday] = usedate();
11506
+ // const maxDate = new Date();
11507
+ return React.createElement(React.Fragment, null, React.createElement(HeaderWrapper, {
11508
+ className: "headerWrap"
11509
+ }, React.createElement(StyledFlex, null, React.createElement("div", null, React.createElement(HeaderTitle, {
11510
+ title: 'Return'
11511
+ }), React.createElement(Breadcrumb, {
11512
+ title: breadcrumbTitle,
11513
+ subtitle: breadcrumbSubtitle,
11514
+ subPart: breadcrumbSubPart
11515
+ })))));
11516
+ };
10985
11517
 
10986
11518
  function ReturnClient() {
10987
11519
  var _selectedClientString;
@@ -11010,7 +11542,7 @@ function ReturnClient() {
11010
11542
  navigate("filter/" + _selectedClientString2);
11011
11543
  }
11012
11544
  }, [selectedClient]);
11013
- return React.createElement(Suspense, {
11545
+ return React.createElement(React.Fragment, null, React.createElement(RouterHeader, null), React.createElement(Suspense, {
11014
11546
  fallback: React.createElement(LoadingMessage, null)
11015
11547
  }, React.createElement(Routes, null, React.createElement(Route, {
11016
11548
  path: "",
@@ -11024,7 +11556,7 @@ function ReturnClient() {
11024
11556
  }), React.createElement(Route, {
11025
11557
  path: "filter/:clientName",
11026
11558
  element: React.createElement(ReturnTable, null)
11027
- })));
11559
+ }))));
11028
11560
  }
11029
11561
 
11030
11562
  export default ReturnClient;