@bjsdistribution/dms-client-return 0.0.76 → 0.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/PrintDropDownReturn.d.ts +6 -3
- package/dist/components/order-view/notes/NoteType.d.ts +3 -0
- package/dist/components/store.d.ts +3 -1
- package/dist/dms-client-return.cjs.development.js +294 -238
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +294 -238
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.tsx +3 -2
- package/src/components/order-view/details-filters/left-side-filters/dropdowns/PrintDropDownReturn.tsx +22 -10
- package/src/components/order-view/index.tsx +7 -6
- package/src/components/order-view/notes/AddNote.tsx +5 -1
- package/src/components/order-view/notes/NoteType.tsx +43 -25
- package/src/components/order-view/order-actions/actions/hold-order/HoldOrderModal.tsx +8 -3
- package/src/components/store.ts +13 -0
|
@@ -50,9 +50,6 @@ function _extends() {
|
|
|
50
50
|
return n;
|
|
51
51
|
}, _extends.apply(null, arguments);
|
|
52
52
|
}
|
|
53
|
-
function _objectDestructuringEmpty(t) {
|
|
54
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
55
|
-
}
|
|
56
53
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
57
54
|
if (null == r) return {};
|
|
58
55
|
var t = {};
|
|
@@ -401,6 +398,7 @@ var postLoading = /*#__PURE__*/atom(false);
|
|
|
401
398
|
var _final = /*#__PURE__*/atom([]);
|
|
402
399
|
var clearState = /*#__PURE__*/atom(false);
|
|
403
400
|
var assignData = /*#__PURE__*/atom([]);
|
|
401
|
+
var visibilityData = /*#__PURE__*/atom([]);
|
|
404
402
|
var assignPayload = /*#__PURE__*/atom(AssignUpdateInitial);
|
|
405
403
|
var callAPIAgain = /*#__PURE__*/atom(true);
|
|
406
404
|
var actionTypeOptions = /*#__PURE__*/atom([]);
|
|
@@ -453,6 +451,9 @@ function useClearState() {
|
|
|
453
451
|
function useAssignData() {
|
|
454
452
|
return useAtom(assignData);
|
|
455
453
|
}
|
|
454
|
+
function useVisibilityData() {
|
|
455
|
+
return useAtom(visibilityData);
|
|
456
|
+
}
|
|
456
457
|
function useAssignPayload() {
|
|
457
458
|
return useAtom(assignPayload);
|
|
458
459
|
}
|
|
@@ -465,6 +466,10 @@ function useActionTypeOptions() {
|
|
|
465
466
|
function useSelectedProducts() {
|
|
466
467
|
return useAtom(selectedProductsMove);
|
|
467
468
|
}
|
|
469
|
+
var selectedAssignee = /*#__PURE__*/atom('');
|
|
470
|
+
function useSelectedData() {
|
|
471
|
+
return useAtom(selectedAssignee);
|
|
472
|
+
}
|
|
468
473
|
|
|
469
474
|
// let todayDate = new Date();
|
|
470
475
|
var initialState = {
|
|
@@ -1561,21 +1566,37 @@ var optionsForReturnPrint = [{
|
|
|
1561
1566
|
var _templateObject$4, _templateObject2$2;
|
|
1562
1567
|
var options = optionsForReturnPrint;
|
|
1563
1568
|
var PrintDropDownReturn = function PrintDropDownReturn(_ref) {
|
|
1564
|
-
|
|
1569
|
+
var legacyURL = _ref.legacyURL,
|
|
1570
|
+
legacyProductID = _ref.legacyProductID;
|
|
1565
1571
|
var downloadFiles = function downloadFiles() {
|
|
1566
|
-
|
|
1567
|
-
|
|
1572
|
+
if (!legacyURL) return;
|
|
1573
|
+
var url = "" + legacyURL + legacyProductID;
|
|
1574
|
+
window.open(url, '_blank');
|
|
1568
1575
|
};
|
|
1569
1576
|
return React.createElement(OptionsList, null, options == null ? void 0 : options.map(function (item, index) {
|
|
1570
1577
|
var IconComponent = PrintIconMap[item.icon];
|
|
1578
|
+
var isDisabled = !legacyURL || !legacyProductID;
|
|
1571
1579
|
return React.createElement(OptionsListLi, {
|
|
1572
1580
|
key: index,
|
|
1573
|
-
onClick: downloadFiles
|
|
1581
|
+
onClick: !isDisabled ? downloadFiles : undefined,
|
|
1582
|
+
disabled: isDisabled
|
|
1574
1583
|
}, IconComponent && React.createElement(IconComponent, null), " ", item.label);
|
|
1575
1584
|
}));
|
|
1576
1585
|
};
|
|
1577
1586
|
var OptionsList = /*#__PURE__*/styled.ul(_templateObject$4 || (_templateObject$4 = /*#__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"])));
|
|
1578
|
-
var OptionsListLi = /*#__PURE__*/styled.li(_templateObject2$2 || (_templateObject2$2 = /*#__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"])))
|
|
1587
|
+
var OptionsListLi = /*#__PURE__*/styled.li(_templateObject2$2 || (_templateObject2$2 = /*#__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: ", ";\n color: ", ";\n pointer-events: ", ";\n background-color: ", ";\n\n &:last-child {\n border: none;\n }\n"])), function (_ref2) {
|
|
1588
|
+
var disabled = _ref2.disabled;
|
|
1589
|
+
return disabled ? 'not-allowed' : 'pointer';
|
|
1590
|
+
}, function (_ref3) {
|
|
1591
|
+
var disabled = _ref3.disabled;
|
|
1592
|
+
return disabled ? '#ccc' : 'inherit';
|
|
1593
|
+
}, function (_ref4) {
|
|
1594
|
+
var disabled = _ref4.disabled;
|
|
1595
|
+
return disabled ? 'none' : 'auto';
|
|
1596
|
+
}, function (_ref5) {
|
|
1597
|
+
var disabled = _ref5.disabled;
|
|
1598
|
+
return disabled ? '#f5f5f5' : 'transparent';
|
|
1599
|
+
});
|
|
1579
1600
|
|
|
1580
1601
|
var _templateObject$5, _templateObject2$3, _templateObject3$2, _templateObject4$2, _templateObject5$2, _templateObject6, _templateObject7$2;
|
|
1581
1602
|
function Loader(props) {
|
|
@@ -1983,10 +2004,11 @@ var ReturnOrderTable = function ReturnOrderTable() {
|
|
|
1983
2004
|
onClick: function onClick() {
|
|
1984
2005
|
return OpenDropDown(index);
|
|
1985
2006
|
}
|
|
1986
|
-
}, React.createElement(PrinterIcon, null), React.createElement(DownIcon, null), printToogle
|
|
2007
|
+
}, React.createElement(PrinterIcon, null), React.createElement(DownIcon, null), printToogle === index && React.createElement("div", {
|
|
1987
2008
|
ref: dropdownRef
|
|
1988
2009
|
}, React.createElement(PrintDropDownReturn, {
|
|
1989
|
-
|
|
2010
|
+
legacyURL: item == null ? void 0 : item.return_order_product_label,
|
|
2011
|
+
legacyProductID: item == null ? void 0 : item.legacy_product_id
|
|
1990
2012
|
})))))));
|
|
1991
2013
|
})))));
|
|
1992
2014
|
};
|
|
@@ -5531,7 +5553,38 @@ function OrderDetails$1() {
|
|
|
5531
5553
|
return React.createElement(React.Fragment, null, React.createElement(ExpandedContent, null));
|
|
5532
5554
|
}
|
|
5533
5555
|
|
|
5534
|
-
var _templateObject$X
|
|
5556
|
+
var _templateObject$X;
|
|
5557
|
+
function NoteType() {
|
|
5558
|
+
var _useVisibilityData = useVisibilityData(),
|
|
5559
|
+
visibilityData = _useVisibilityData[0];
|
|
5560
|
+
var _useSelectedData = useSelectedData(),
|
|
5561
|
+
selected = _useSelectedData[0],
|
|
5562
|
+
setSelected = _useSelectedData[1];
|
|
5563
|
+
var handleRadioButtonChange = function handleRadioButtonChange(event) {
|
|
5564
|
+
var selectedValue = event.target.value;
|
|
5565
|
+
var selectedOption = visibilityData == null ? void 0 : visibilityData.find(function (option) {
|
|
5566
|
+
return option.value === selectedValue;
|
|
5567
|
+
});
|
|
5568
|
+
if (selectedOption) {
|
|
5569
|
+
setSelected(selectedOption.value);
|
|
5570
|
+
}
|
|
5571
|
+
};
|
|
5572
|
+
return React.createElement(Container$B, null, React.createElement(RadioButtonGroup$1, {
|
|
5573
|
+
selectedValue: selected,
|
|
5574
|
+
heading: "",
|
|
5575
|
+
options: visibilityData == null ? void 0 : visibilityData.map(function (client) {
|
|
5576
|
+
return {
|
|
5577
|
+
label: client.type,
|
|
5578
|
+
value: client.value
|
|
5579
|
+
};
|
|
5580
|
+
}),
|
|
5581
|
+
onChange: handleRadioButtonChange,
|
|
5582
|
+
required: false
|
|
5583
|
+
}));
|
|
5584
|
+
}
|
|
5585
|
+
var Container$B = /*#__PURE__*/styled.div(_templateObject$X || (_templateObject$X = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
5586
|
+
|
|
5587
|
+
var _templateObject$Y, _templateObject2$I, _templateObject3$j;
|
|
5535
5588
|
function AddNote() {
|
|
5536
5589
|
var _useState = useState(''),
|
|
5537
5590
|
noteText = _useState[0],
|
|
@@ -5546,6 +5599,8 @@ function AddNote() {
|
|
|
5546
5599
|
moduleIds = _usemoduleIds[0];
|
|
5547
5600
|
var _useGlobalStateHitAud = useGlobalStateHitAuditLog(),
|
|
5548
5601
|
setRecallAuditLog = _useGlobalStateHitAud[1];
|
|
5602
|
+
var _useSelectedData = useSelectedData(),
|
|
5603
|
+
selected = _useSelectedData[0];
|
|
5549
5604
|
// Save New Note
|
|
5550
5605
|
var _useState2 = useState(null),
|
|
5551
5606
|
notificationData = _useState2[0],
|
|
@@ -5573,7 +5628,8 @@ function AddNote() {
|
|
|
5573
5628
|
action: 'create',
|
|
5574
5629
|
description: noteText,
|
|
5575
5630
|
data_dump: '{}',
|
|
5576
|
-
manual: 1
|
|
5631
|
+
manual: 1,
|
|
5632
|
+
is_private: selected
|
|
5577
5633
|
}]
|
|
5578
5634
|
};
|
|
5579
5635
|
_context.prev = 5;
|
|
@@ -5638,7 +5694,7 @@ function AddNote() {
|
|
|
5638
5694
|
top: 80
|
|
5639
5695
|
});
|
|
5640
5696
|
}, [notificationData]);
|
|
5641
|
-
return React.createElement(Container$
|
|
5697
|
+
return React.createElement(Container$C, null, React.createElement(Label$h, {
|
|
5642
5698
|
label: "Add New Note"
|
|
5643
5699
|
}), React.createElement(StyledTextArea, {
|
|
5644
5700
|
name: "description",
|
|
@@ -5650,9 +5706,9 @@ function AddNote() {
|
|
|
5650
5706
|
}), React.createElement(SaveNoteContainer, null, React.createElement(Button, {
|
|
5651
5707
|
disabled: !noteText,
|
|
5652
5708
|
onClick: saveNote
|
|
5653
|
-
}, "SAVE NOTE")));
|
|
5709
|
+
}, "SAVE NOTE"), React.createElement(NoteType, null)));
|
|
5654
5710
|
}
|
|
5655
|
-
var Container$
|
|
5711
|
+
var Container$C = /*#__PURE__*/styled.div(_templateObject$Y || (_templateObject$Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
|
|
5656
5712
|
var SaveNoteContainer = /*#__PURE__*/styled.div(_templateObject2$I || (_templateObject2$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n gap: 10px;\n .disabled button {\n opacity: 0.5;\n cursor: default;\n }\n"])));
|
|
5657
5713
|
var StyledTextArea = /*#__PURE__*/styled.textarea(_templateObject3$j || (_templateObject3$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 57px;\n border-radius: 12px;\n background: #fff;\n resize: none;\n border-radius: 8px;\n border: 1px solid var(--Neutral-Gray-Gray-100, #e0e2e7);\n background: var(--Flowkit-White, #fff);\n padding: 8px 12px;\n"])));
|
|
5658
5714
|
|
|
@@ -5675,7 +5731,7 @@ var Th = /*#__PURE__*/styled.th(_templateObject3$k || (_templateObject3$k = /*#_
|
|
|
5675
5731
|
var Td = /*#__PURE__*/styled.td(_templateObject4$9 || (_templateObject4$9 = /*#__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"])));
|
|
5676
5732
|
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"])));
|
|
5677
5733
|
|
|
5678
|
-
var _templateObject$
|
|
5734
|
+
var _templateObject$Z, _templateObject2$K, _templateObject3$l, _templateObject4$a, _templateObject5$8, _templateObject6$2, _templateObject7$4, _templateObject8$2, _templateObject9$1;
|
|
5679
5735
|
var GenericAuditLogsTable = function GenericAuditLogsTable() {
|
|
5680
5736
|
var _getNotes$data, _getNotes$data2;
|
|
5681
5737
|
var tableHeadData = NotesTableData[0].tableHead; // Assuming NotesTableData contains table header information
|
|
@@ -5704,7 +5760,7 @@ var GenericAuditLogsTable = function GenericAuditLogsTable() {
|
|
|
5704
5760
|
colSpan: tableHeadData == null ? void 0 : tableHeadData.length
|
|
5705
5761
|
}, "No data found"))))));
|
|
5706
5762
|
};
|
|
5707
|
-
var AuditTableWrapper = /*#__PURE__*/styled.div(_templateObject$
|
|
5763
|
+
var AuditTableWrapper = /*#__PURE__*/styled.div(_templateObject$Z || (_templateObject$Z = /*#__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"])));
|
|
5708
5764
|
var DateTd = /*#__PURE__*/styled(Td)(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6d6d6d;\n"])));
|
|
5709
5765
|
var NoDataFound = /*#__PURE__*/styled(Td)(_templateObject3$l || (_templateObject3$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: center;\n padding: 16px;\n font-size: 16px;\n color: #999;\n"])));
|
|
5710
5766
|
var StyledTable$2 = /*#__PURE__*/styled(Table)(_templateObject4$a || (_templateObject4$a = /*#__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"])));
|
|
@@ -5714,13 +5770,13 @@ var CreatedBy$1 = /*#__PURE__*/styled.div(_templateObject7$4 || (_templateObject
|
|
|
5714
5770
|
var ScrollableTableWrapper = /*#__PURE__*/styled.div(_templateObject8$2 || (_templateObject8$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 250px;\n min-height: 200px;\n overflow: auto;\n"])));
|
|
5715
5771
|
var StickyHeaderWrapper = /*#__PURE__*/styled.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: #fff;\n"])));
|
|
5716
5772
|
|
|
5717
|
-
var _templateObject$
|
|
5773
|
+
var _templateObject$_;
|
|
5718
5774
|
function AuditLogs() {
|
|
5719
|
-
return React.createElement(Container$
|
|
5775
|
+
return React.createElement(Container$D, null, React.createElement(GenericAuditLogsTable, null));
|
|
5720
5776
|
}
|
|
5721
|
-
var Container$
|
|
5777
|
+
var Container$D = /*#__PURE__*/styled.div(_templateObject$_ || (_templateObject$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 295px; /* Set height to limit container size */\n overflow: auto; /* Enable scrolling */\n scrollbar-width: thin;\n"])));
|
|
5722
5778
|
|
|
5723
|
-
var _templateObject
|
|
5779
|
+
var _templateObject$$, _templateObject2$L, _templateObject3$m;
|
|
5724
5780
|
// import { useLocation } from 'react-router-dom';
|
|
5725
5781
|
function Notes() {
|
|
5726
5782
|
var _usemoduleIds = usemoduleIds(),
|
|
@@ -5802,18 +5858,18 @@ function Notes() {
|
|
|
5802
5858
|
}
|
|
5803
5859
|
setAuditLogLoading(NotesLoading);
|
|
5804
5860
|
}, [moduleIds, orderId, NotesLoading, recallAuditLog]);
|
|
5805
|
-
return React.createElement(Container$
|
|
5861
|
+
return React.createElement(Container$E, null, React.createElement(CardHeader, null, "NOTES"), React.createElement(CustomizedFormSection, null, React.createElement(AddNote, null), React.createElement(AuditLogs, null)));
|
|
5806
5862
|
}
|
|
5807
|
-
var Container$
|
|
5863
|
+
var Container$E = /*#__PURE__*/styled.div(_templateObject$$ || (_templateObject$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 5px;\n"])));
|
|
5808
5864
|
var CardHeader = /*#__PURE__*/styled.div(_templateObject2$L || (_templateObject2$L = /*#__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"])));
|
|
5809
5865
|
var CustomizedFormSection = /*#__PURE__*/styled.div(_templateObject3$m || (_templateObject3$m = /*#__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"])));
|
|
5810
5866
|
|
|
5811
|
-
var _templateObject
|
|
5867
|
+
var _templateObject$10;
|
|
5812
5868
|
// import styled from 'styled-components';
|
|
5813
5869
|
function SystemCollapsedContent() {
|
|
5814
5870
|
return React.createElement(Font, null, "SYSTEM EVENT LOGS");
|
|
5815
5871
|
}
|
|
5816
|
-
var Font = /*#__PURE__*/styled.div(_templateObject
|
|
5872
|
+
var Font = /*#__PURE__*/styled.div(_templateObject$10 || (_templateObject$10 = /*#__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"])));
|
|
5817
5873
|
|
|
5818
5874
|
function ChevronUp(props) {
|
|
5819
5875
|
return React.createElement("svg", Object.assign({
|
|
@@ -5831,12 +5887,12 @@ function ChevronUp(props) {
|
|
|
5831
5887
|
}));
|
|
5832
5888
|
}
|
|
5833
5889
|
|
|
5834
|
-
var _templateObject$
|
|
5890
|
+
var _templateObject$11, _templateObject2$M, _templateObject3$n, _templateObject4$b, _templateObject5$9, _templateObject6$3, _templateObject7$5, _templateObject8$3;
|
|
5835
5891
|
function CollapsableForm(props) {
|
|
5836
5892
|
var _useState = useState(true),
|
|
5837
5893
|
isExpanded = _useState[0],
|
|
5838
5894
|
setIsExpanded = _useState[1];
|
|
5839
|
-
return React.createElement(MainContainer$5, null, React.createElement(CardHeader$1, null, React.createElement(CollapsedContent, null, props.collapsedContent, React.createElement(Container$
|
|
5895
|
+
return React.createElement(MainContainer$5, null, React.createElement(CardHeader$1, null, React.createElement(CollapsedContent, null, props.collapsedContent, React.createElement(Container$F, null, React.createElement(Text$3, {
|
|
5840
5896
|
onClick: function onClick() {
|
|
5841
5897
|
return setIsExpanded(function (prev) {
|
|
5842
5898
|
return !prev;
|
|
@@ -5851,10 +5907,10 @@ function CollapsableForm(props) {
|
|
|
5851
5907
|
isExpanded: isExpanded
|
|
5852
5908
|
}, React.createElement(ChevronUp, null))))), isExpanded && React.createElement(CustomizedFormSection$1, null, React.createElement(ExpandedContent$1, null, props.children)));
|
|
5853
5909
|
}
|
|
5854
|
-
var CustomizedFormSection$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
5910
|
+
var CustomizedFormSection$1 = /*#__PURE__*/styled.div(_templateObject$11 || (_templateObject$11 = /*#__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"])));
|
|
5855
5911
|
var CardHeader$1 = /*#__PURE__*/styled.div(_templateObject2$M || (_templateObject2$M = /*#__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"])));
|
|
5856
5912
|
var Text$3 = /*#__PURE__*/styled.span(_templateObject3$n || (_templateObject3$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 14px;\n color: #3a3630;\n font-weight: 500;\n font-family: 'lato', sans-serif;\n cursor: pointer;\n"])));
|
|
5857
|
-
var Container$
|
|
5913
|
+
var Container$F = /*#__PURE__*/styled.div(_templateObject4$b || (_templateObject4$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n align-items: center;\n"])));
|
|
5858
5914
|
var MainContainer$5 = /*#__PURE__*/styled.div(_templateObject5$9 || (_templateObject5$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0;\n"])));
|
|
5859
5915
|
var IconContainer$1 = /*#__PURE__*/styled.div(_templateObject6$3 || (_templateObject6$3 = /*#__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) {
|
|
5860
5916
|
return props.isExpanded ? '360deg' : '180deg';
|
|
@@ -5862,7 +5918,7 @@ var IconContainer$1 = /*#__PURE__*/styled.div(_templateObject6$3 || (_templateOb
|
|
|
5862
5918
|
var ExpandedContent$1 = /*#__PURE__*/styled.div(_templateObject7$5 || (_templateObject7$5 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
5863
5919
|
var CollapsedContent = /*#__PURE__*/styled.div(_templateObject8$3 || (_templateObject8$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n"])));
|
|
5864
5920
|
|
|
5865
|
-
var _templateObject$
|
|
5921
|
+
var _templateObject$12, _templateObject2$N, _templateObject3$o;
|
|
5866
5922
|
function CustomScrollBar(props) {
|
|
5867
5923
|
var children = props.children,
|
|
5868
5924
|
_props$thumbHeight = props.thumbHeight,
|
|
@@ -5880,11 +5936,11 @@ function CustomScrollBar(props) {
|
|
|
5880
5936
|
}
|
|
5881
5937
|
}, children);
|
|
5882
5938
|
}
|
|
5883
|
-
var ThumbVertical = /*#__PURE__*/styled.div(_templateObject$
|
|
5939
|
+
var ThumbVertical = /*#__PURE__*/styled.div(_templateObject$12 || (_templateObject$12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #586164;\n border-radius: 66px;\n width: 2px !important; // to overide styles\n margin-top: 60px;\n"])));
|
|
5884
5940
|
var View = /*#__PURE__*/styled.div(_templateObject2$N || (_templateObject2$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: hidden;\n"])));
|
|
5885
5941
|
var TrackHorizontal = /*#__PURE__*/styled.div(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n"])));
|
|
5886
5942
|
|
|
5887
|
-
var _templateObject$
|
|
5943
|
+
var _templateObject$13, _templateObject2$O, _templateObject3$p, _templateObject4$c, _templateObject5$a, _templateObject6$4, _templateObject7$6, _templateObject8$4, _templateObject9$2;
|
|
5888
5944
|
function DynamicTable(_ref) {
|
|
5889
5945
|
var columns = _ref.columns,
|
|
5890
5946
|
data = _ref.data;
|
|
@@ -5905,7 +5961,7 @@ function DynamicTable(_ref) {
|
|
|
5905
5961
|
var smallColumns = ['types', 'sources', 'event', 'code', 'type', 'route', 'category', 'action'];
|
|
5906
5962
|
var mediumColumns = ['date'];
|
|
5907
5963
|
var largeColumns = ['reference', 'notes', 'details', 'datetime'];
|
|
5908
|
-
return React.createElement(MainContainer$6, null, React.createElement(Container$
|
|
5964
|
+
return React.createElement(MainContainer$6, null, React.createElement(Container$G, null, React.createElement(TableWrapper, null, React.createElement(CustomScrollBar, null, React.createElement(Table$1, null, React.createElement(TableHead, null, headerGroups.map(function (headerGroup) {
|
|
5909
5965
|
return React.createElement(TableRow, {
|
|
5910
5966
|
key: headerGroup.id
|
|
5911
5967
|
}, headerGroup.headers.map(function (header) {
|
|
@@ -5930,7 +5986,7 @@ function DynamicTable(_ref) {
|
|
|
5930
5986
|
// transform: rotate(180deg);
|
|
5931
5987
|
// cursor: pointer;
|
|
5932
5988
|
// `;
|
|
5933
|
-
var Container$
|
|
5989
|
+
var Container$G = /*#__PURE__*/styled.div(_templateObject$13 || (_templateObject$13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 30vh;\n pointer-events: initial;\n @media (max-width: 1024px) {\n height: 40vh;\n }\n"])));
|
|
5934
5990
|
var TableWrapper = /*#__PURE__*/styled.div(_templateObject2$O || (_templateObject2$O = /*#__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"])));
|
|
5935
5991
|
var TableHeadData = /*#__PURE__*/styled.th(_templateObject3$p || (_templateObject3$p = /*#__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"])));
|
|
5936
5992
|
var TableData = /*#__PURE__*/styled.td(_templateObject4$c || (_templateObject4$c = /*#__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"])));
|
|
@@ -5940,7 +5996,7 @@ var TableHead = /*#__PURE__*/styled.thead(_templateObject7$6 || (_templateObject
|
|
|
5940
5996
|
var Table$1 = /*#__PURE__*/styled.table(_templateObject8$4 || (_templateObject8$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: 50%;\n background: rgb(255, 255, 255);\n box-shadow: 0px 4px 30px 0px #2e2d740d;\n"])));
|
|
5941
5997
|
var MainContainer$6 = /*#__PURE__*/styled.div(_templateObject9$2 || (_templateObject9$2 = /*#__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"])));
|
|
5942
5998
|
|
|
5943
|
-
var _templateObject$
|
|
5999
|
+
var _templateObject$14, _templateObject2$P;
|
|
5944
6000
|
function Event(props) {
|
|
5945
6001
|
var _props$row;
|
|
5946
6002
|
var data = props == null || (_props$row = props.row) == null ? void 0 : _props$row.original.event_information_id;
|
|
@@ -5955,7 +6011,7 @@ function Event(props) {
|
|
|
5955
6011
|
};
|
|
5956
6012
|
return React.createElement(RowContainer, null, React.createElement(Row, null, getDescription(data)));
|
|
5957
6013
|
}
|
|
5958
|
-
var RowContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
6014
|
+
var RowContainer = /*#__PURE__*/styled.div(_templateObject$14 || (_templateObject$14 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
5959
6015
|
var Row = /*#__PURE__*/styled.div(_templateObject2$P || (_templateObject2$P = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
5960
6016
|
|
|
5961
6017
|
//to change data into options
|
|
@@ -6003,25 +6059,25 @@ var priorityData = [{
|
|
|
6003
6059
|
color: '#E95252'
|
|
6004
6060
|
}];
|
|
6005
6061
|
|
|
6006
|
-
var _templateObject$
|
|
6062
|
+
var _templateObject$15, _templateObject2$Q;
|
|
6007
6063
|
function Date$1(props) {
|
|
6008
6064
|
var _props$row;
|
|
6009
6065
|
var data = props == null || (_props$row = props.row) == null ? void 0 : _props$row.original.created_at;
|
|
6010
6066
|
return React.createElement(RowContainer$1, null, React.createElement(Row$1, null, formatDate$1(data)));
|
|
6011
6067
|
}
|
|
6012
|
-
var RowContainer$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
6068
|
+
var RowContainer$1 = /*#__PURE__*/styled.div(_templateObject$15 || (_templateObject$15 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6013
6069
|
var Row$1 = /*#__PURE__*/styled.div(_templateObject2$Q || (_templateObject2$Q = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6014
6070
|
|
|
6015
|
-
var _templateObject$
|
|
6071
|
+
var _templateObject$16, _templateObject2$R;
|
|
6016
6072
|
function Code(props) {
|
|
6017
6073
|
var _props$row;
|
|
6018
6074
|
var data = props == null || (_props$row = props.row) == null ? void 0 : _props$row.original.event_code;
|
|
6019
6075
|
return React.createElement(RowContainer$2, null, React.createElement(Row$2, null, data));
|
|
6020
6076
|
}
|
|
6021
|
-
var RowContainer$2 = /*#__PURE__*/styled.div(_templateObject$
|
|
6077
|
+
var RowContainer$2 = /*#__PURE__*/styled.div(_templateObject$16 || (_templateObject$16 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6022
6078
|
var Row$2 = /*#__PURE__*/styled.div(_templateObject2$R || (_templateObject2$R = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6023
6079
|
|
|
6024
|
-
var _templateObject$
|
|
6080
|
+
var _templateObject$17, _templateObject2$S;
|
|
6025
6081
|
function Note(props) {
|
|
6026
6082
|
var _props$row;
|
|
6027
6083
|
var data = props == null || (_props$row = props.row) == null || (_props$row = _props$row.original) == null ? void 0 : _props$row.event_notes;
|
|
@@ -6029,7 +6085,7 @@ function Note(props) {
|
|
|
6029
6085
|
title: data
|
|
6030
6086
|
}, React.createElement(Row$3, null, data));
|
|
6031
6087
|
}
|
|
6032
|
-
var RowContainer$3 = /*#__PURE__*/styled.div(_templateObject$
|
|
6088
|
+
var RowContainer$3 = /*#__PURE__*/styled.div(_templateObject$17 || (_templateObject$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-block;\n max-width: 200px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
6033
6089
|
var Row$3 = /*#__PURE__*/styled.div(_templateObject2$S || (_templateObject2$S = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6034
6090
|
|
|
6035
6091
|
var tableColumns = [{
|
|
@@ -6133,7 +6189,7 @@ function useGetEventNotes() {
|
|
|
6133
6189
|
return perform;
|
|
6134
6190
|
}
|
|
6135
6191
|
|
|
6136
|
-
var _templateObject$
|
|
6192
|
+
var _templateObject$18;
|
|
6137
6193
|
function SystemLogs() {
|
|
6138
6194
|
var _useOrderProductSyste = useOrderProductSystemLogs(),
|
|
6139
6195
|
systemLogs = _useOrderProductSyste[0];
|
|
@@ -6185,7 +6241,7 @@ function SystemLogs() {
|
|
|
6185
6241
|
data: systemLogs
|
|
6186
6242
|
})));
|
|
6187
6243
|
}
|
|
6188
|
-
var Table$2 = /*#__PURE__*/styled.div(_templateObject$
|
|
6244
|
+
var Table$2 = /*#__PURE__*/styled.div(_templateObject$18 || (_templateObject$18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
6189
6245
|
|
|
6190
6246
|
var StatusOptions = [{
|
|
6191
6247
|
label: 'Released',
|
|
@@ -6342,11 +6398,11 @@ function ConfirmedIcon() {
|
|
|
6342
6398
|
}))));
|
|
6343
6399
|
}
|
|
6344
6400
|
|
|
6345
|
-
var _templateObject$
|
|
6401
|
+
var _templateObject$19, _templateObject2$T, _templateObject3$q, _templateObject4$d;
|
|
6346
6402
|
function Status() {
|
|
6347
6403
|
var _useStatusDetails = useStatusDetails(),
|
|
6348
6404
|
orderStatus = _useStatusDetails[0];
|
|
6349
|
-
return React.createElement(Container$
|
|
6405
|
+
return React.createElement(Container$H, null, React.createElement(BoxContainer, null, StatusOptions.map(function (option, index) {
|
|
6350
6406
|
return React.createElement(React.Fragment, {
|
|
6351
6407
|
key: index
|
|
6352
6408
|
}, React.createElement(TextContainer$1, null, renderIcon(option.value, orderStatus), React.createElement(Heading, null, option.label)), index < StatusOptions.length - 1 && React.createElement(Divider, null));
|
|
@@ -6388,17 +6444,17 @@ var renderIcon = function renderIcon(value, orderStatus) {
|
|
|
6388
6444
|
return null;
|
|
6389
6445
|
}
|
|
6390
6446
|
};
|
|
6391
|
-
var BoxContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
6447
|
+
var BoxContainer = /*#__PURE__*/styled.div(_templateObject$19 || (_templateObject$19 = /*#__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"])));
|
|
6392
6448
|
var Heading = /*#__PURE__*/styled.div(_templateObject2$T || (_templateObject2$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: 'lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n text-transform: uppercase;\n"])));
|
|
6393
|
-
var Container$
|
|
6449
|
+
var Container$H = /*#__PURE__*/styled.div(_templateObject3$q || (_templateObject3$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px;\n margin-top: 25px;\n"])));
|
|
6394
6450
|
var TextContainer$1 = /*#__PURE__*/styled.div(_templateObject4$d || (_templateObject4$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 10px;\n display: flex;\n align-items: center;\n"])));
|
|
6395
6451
|
|
|
6396
|
-
var _templateObject$
|
|
6452
|
+
var _templateObject$1a;
|
|
6397
6453
|
// import DropDownOptions from './dropdowns';
|
|
6398
6454
|
function GeneralHeader() {
|
|
6399
6455
|
return React.createElement(Section, null, React.createElement(Status, null));
|
|
6400
6456
|
}
|
|
6401
|
-
var Section = /*#__PURE__*/styled.div(_templateObject$
|
|
6457
|
+
var Section = /*#__PURE__*/styled.div(_templateObject$1a || (_templateObject$1a = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6402
6458
|
|
|
6403
6459
|
var ActionIcon = function ActionIcon() {
|
|
6404
6460
|
return React.createElement("svg", {
|
|
@@ -6540,13 +6596,13 @@ var ReturnProductTable = function ReturnProductTable() {
|
|
|
6540
6596
|
}, "No records found"))))));
|
|
6541
6597
|
};
|
|
6542
6598
|
|
|
6543
|
-
var _templateObject$
|
|
6599
|
+
var _templateObject$1b;
|
|
6544
6600
|
var ProductTable = function ProductTable() {
|
|
6545
|
-
return React.createElement(Container$
|
|
6601
|
+
return React.createElement(Container$I, null, React.createElement(ReturnProductTable, null));
|
|
6546
6602
|
};
|
|
6547
|
-
var Container$
|
|
6603
|
+
var Container$I = /*#__PURE__*/styled.div(_templateObject$1b || (_templateObject$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* height: 230px; */\n overflow: auto; /* Enable scrolling */\n scrollbar-width: thin;\n"])));
|
|
6548
6604
|
|
|
6549
|
-
var _templateObject$
|
|
6605
|
+
var _templateObject$1c, _templateObject2$U;
|
|
6550
6606
|
var payloadAtom = /*#__PURE__*/atom(null);
|
|
6551
6607
|
var NewReturnDropdown = function NewReturnDropdown() {
|
|
6552
6608
|
var defaultSelectStyle = {
|
|
@@ -6643,7 +6699,7 @@ var NewReturnDropdown = function NewReturnDropdown() {
|
|
|
6643
6699
|
value: order.id
|
|
6644
6700
|
};
|
|
6645
6701
|
});
|
|
6646
|
-
return React.createElement(Container$
|
|
6702
|
+
return React.createElement(Container$J, null, React.createElement(Text$4, null, "New Return Order:"), React.createElement(Select, {
|
|
6647
6703
|
options: dropdownOptions,
|
|
6648
6704
|
placeholder: "Select",
|
|
6649
6705
|
onChange: handleDropdownChange,
|
|
@@ -6656,10 +6712,10 @@ var NewReturnDropdown = function NewReturnDropdown() {
|
|
|
6656
6712
|
popupClassName: defaultPopupClassName
|
|
6657
6713
|
}));
|
|
6658
6714
|
};
|
|
6659
|
-
var Container$
|
|
6715
|
+
var Container$J = /*#__PURE__*/styled.div(_templateObject$1c || (_templateObject$1c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 10px;\n align-self: stretch;\n white-space: nowrap;\n"])));
|
|
6660
6716
|
var Text$4 = /*#__PURE__*/styled.div(_templateObject2$U || (_templateObject2$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #000;\n font-family: 'Lato';\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n"])));
|
|
6661
6717
|
|
|
6662
|
-
var _templateObject$
|
|
6718
|
+
var _templateObject$1d, _templateObject2$V, _templateObject3$r;
|
|
6663
6719
|
function ExpandedContent$2() {
|
|
6664
6720
|
var _response$data, _response$data2;
|
|
6665
6721
|
var _useAtom = useAtom(payloadAtom),
|
|
@@ -6728,7 +6784,7 @@ function ExpandedContent$2() {
|
|
|
6728
6784
|
setSelectedProducts([]);
|
|
6729
6785
|
}
|
|
6730
6786
|
}, [response, newId, navigate, setSelectedProducts]);
|
|
6731
|
-
return React.createElement(Container$
|
|
6787
|
+
return React.createElement(Container$K, null, React.createElement(ProductTable, null), React.createElement(MidContainer, null, React.createElement(SaveNoteContainer$1, null, React.createElement(Button, {
|
|
6732
6788
|
style: {
|
|
6733
6789
|
borderRadius: '20px'
|
|
6734
6790
|
},
|
|
@@ -6736,18 +6792,18 @@ function ExpandedContent$2() {
|
|
|
6736
6792
|
disabled: isButtonDisabled
|
|
6737
6793
|
}, "Move Products"), React.createElement(NewReturnDropdown, null))));
|
|
6738
6794
|
}
|
|
6739
|
-
var MidContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
6795
|
+
var MidContainer = /*#__PURE__*/styled.div(_templateObject$1d || (_templateObject$1d = /*#__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"])));
|
|
6740
6796
|
var SaveNoteContainer$1 = /*#__PURE__*/styled.div(_templateObject2$V || (_templateObject2$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: inline-flex;\n gap: 10px;\n"])));
|
|
6741
|
-
var Container$
|
|
6797
|
+
var Container$K = /*#__PURE__*/styled.div(_templateObject3$r || (_templateObject3$r = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6742
6798
|
|
|
6743
|
-
var _templateObject$
|
|
6799
|
+
var _templateObject$1e, _templateObject2$W;
|
|
6744
6800
|
function CollapsedContent$1() {
|
|
6745
|
-
return React.createElement(Container$
|
|
6801
|
+
return React.createElement(Container$L, null, React.createElement(SectionHeader, {
|
|
6746
6802
|
label: "Products"
|
|
6747
6803
|
}), React.createElement(Dimensions, null, "Products to be Returned"));
|
|
6748
6804
|
}
|
|
6749
|
-
var Dimensions = /*#__PURE__*/styled.span(_templateObject$
|
|
6750
|
-
var Container$
|
|
6805
|
+
var Dimensions = /*#__PURE__*/styled.span(_templateObject$1e || (_templateObject$1e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px; /* 171.429% */\n"])));
|
|
6806
|
+
var Container$L = /*#__PURE__*/styled.div(_templateObject2$W || (_templateObject2$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n /* justify-content: space-between; */\n width: 100%;\n gap: 30px;\n"])));
|
|
6751
6807
|
|
|
6752
6808
|
function ProductsInfo() {
|
|
6753
6809
|
var _useOrderDetails = useOrderDetails(),
|
|
@@ -6787,22 +6843,22 @@ function ProductsInfo() {
|
|
|
6787
6843
|
}, React.createElement(ExpandedContent$2, null));
|
|
6788
6844
|
}
|
|
6789
6845
|
|
|
6790
|
-
var _templateObject$
|
|
6846
|
+
var _templateObject$1f;
|
|
6791
6847
|
function BackgroundModal(props) {
|
|
6792
|
-
return createPortal(React.createElement(Container$
|
|
6848
|
+
return createPortal(React.createElement(Container$M, Object.assign({}, props), props.children), document.body);
|
|
6793
6849
|
}
|
|
6794
|
-
var Container$
|
|
6850
|
+
var Container$M = /*#__PURE__*/styled.div(_templateObject$1f || (_templateObject$1f = /*#__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"])));
|
|
6795
6851
|
|
|
6796
|
-
var _templateObject$
|
|
6852
|
+
var _templateObject$1g, _templateObject2$X, _templateObject3$s, _templateObject4$e;
|
|
6797
6853
|
function AdditionalInformation(props) {
|
|
6798
|
-
return React.createElement(Container$
|
|
6854
|
+
return React.createElement(Container$N, null, React.createElement(Rect, null), React.createElement(AdditionalInfo, null, React.createElement(Text$5, null, props.info)));
|
|
6799
6855
|
}
|
|
6800
|
-
var Text$5 = /*#__PURE__*/styled.p(_templateObject$
|
|
6801
|
-
var Container$
|
|
6856
|
+
var Text$5 = /*#__PURE__*/styled.p(_templateObject$1g || (_templateObject$1g = /*#__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"])));
|
|
6857
|
+
var Container$N = /*#__PURE__*/styled.div(_templateObject2$X || (_templateObject2$X = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
|
|
6802
6858
|
var Rect = /*#__PURE__*/styled.div(_templateObject3$s || (_templateObject3$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 9px;\n height: 45px;\n background: #3a3630;\n"])));
|
|
6803
6859
|
var AdditionalInfo = /*#__PURE__*/styled.div(_templateObject4$e || (_templateObject4$e = /*#__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"])));
|
|
6804
6860
|
|
|
6805
|
-
var _templateObject$
|
|
6861
|
+
var _templateObject$1h, _templateObject2$Y, _templateObject3$t, _templateObject4$f;
|
|
6806
6862
|
function OrderActionHeader(props) {
|
|
6807
6863
|
var title = props.title,
|
|
6808
6864
|
actions = props.actions,
|
|
@@ -6811,31 +6867,31 @@ function OrderActionHeader(props) {
|
|
|
6811
6867
|
_props$infoText = props.infoText,
|
|
6812
6868
|
infoText = _props$infoText === void 0 ? ' ' : _props$infoText,
|
|
6813
6869
|
onClose = props.onClose;
|
|
6814
|
-
return React.createElement(Container$
|
|
6870
|
+
return React.createElement(Container$O, null, React.createElement(Wrapper$f, null, React.createElement(Title$2, null, title), showInformation && React.createElement(AdditionalInformation, {
|
|
6815
6871
|
info: infoText
|
|
6816
6872
|
}), actions), React.createElement(IconContainer$2, {
|
|
6817
6873
|
onClick: onClose
|
|
6818
6874
|
}, React.createElement(CrossIcon, null)));
|
|
6819
6875
|
}
|
|
6820
|
-
var Wrapper$f = /*#__PURE__*/styled.div(_templateObject$
|
|
6876
|
+
var Wrapper$f = /*#__PURE__*/styled.div(_templateObject$1h || (_templateObject$1h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n align-items: center;\n width: 90%;\n margin-left: 20px;\n"])));
|
|
6821
6877
|
var IconContainer$2 = /*#__PURE__*/styled.div(_templateObject2$Y || (_templateObject2$Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n svg > path {\n fill: #ffffff;\n }\n cursor: pointer;\n"])));
|
|
6822
6878
|
var Title$2 = /*#__PURE__*/styled.h3(_templateObject3$t || (_templateObject3$t = /*#__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"])));
|
|
6823
|
-
var Container$
|
|
6879
|
+
var Container$O = /*#__PURE__*/styled.div(_templateObject4$f || (_templateObject4$f = /*#__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"])));
|
|
6824
6880
|
|
|
6825
|
-
var _templateObject$
|
|
6881
|
+
var _templateObject$1i, _templateObject2$Z;
|
|
6826
6882
|
function OrderActionFooter(props) {
|
|
6827
6883
|
var isSubmitDisabled = props.isSubmitDisabled;
|
|
6828
|
-
return React.createElement(Container$
|
|
6884
|
+
return React.createElement(Container$P, null, React.createElement(SubmitButton, {
|
|
6829
6885
|
shape: "rounded",
|
|
6830
6886
|
colors: "primary",
|
|
6831
6887
|
onClick: props.onSubmit,
|
|
6832
6888
|
disabled: isSubmitDisabled
|
|
6833
6889
|
}, props.submitButtonTitle || 'submit'), props.actions);
|
|
6834
6890
|
}
|
|
6835
|
-
var SubmitButton = /*#__PURE__*/styled(Button)(_templateObject$
|
|
6836
|
-
var Container$
|
|
6891
|
+
var SubmitButton = /*#__PURE__*/styled(Button)(_templateObject$1i || (_templateObject$1i = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
6892
|
+
var Container$P = /*#__PURE__*/styled.div(_templateObject2$Z || (_templateObject2$Z = /*#__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"])));
|
|
6837
6893
|
|
|
6838
|
-
var _templateObject$
|
|
6894
|
+
var _templateObject$1j;
|
|
6839
6895
|
function OrderActionModal(props) {
|
|
6840
6896
|
return React.createElement(BackgroundModal, null, React.createElement(MainContainer$7, null, React.createElement(OrderActionHeader, {
|
|
6841
6897
|
title: props.headerTitle,
|
|
@@ -6850,11 +6906,11 @@ function OrderActionModal(props) {
|
|
|
6850
6906
|
isSubmitDisabled: props.isSubmitDisabled
|
|
6851
6907
|
})));
|
|
6852
6908
|
}
|
|
6853
|
-
var MainContainer$7 = /*#__PURE__*/styled.div(_templateObject$
|
|
6909
|
+
var MainContainer$7 = /*#__PURE__*/styled.div(_templateObject$1j || (_templateObject$1j = /*#__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 max-width: 75vw;\n min-width: 30vw;\n"])));
|
|
6854
6910
|
|
|
6855
|
-
var _templateObject$
|
|
6911
|
+
var _templateObject$1k, _templateObject2$_;
|
|
6856
6912
|
function OrderActionsDropdown(props) {
|
|
6857
|
-
return React.createElement(Container$
|
|
6913
|
+
return React.createElement(Container$Q, {
|
|
6858
6914
|
className: props.className
|
|
6859
6915
|
}, React.createElement(Label$1, null, props.label), React.createElement(AntSelect, {
|
|
6860
6916
|
options: props.options,
|
|
@@ -6871,8 +6927,8 @@ function OrderActionsDropdown(props) {
|
|
|
6871
6927
|
defaultValue: props.value
|
|
6872
6928
|
}));
|
|
6873
6929
|
}
|
|
6874
|
-
var Label$1 = /*#__PURE__*/styled.label(_templateObject$
|
|
6875
|
-
var Container$
|
|
6930
|
+
var Label$1 = /*#__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"])));
|
|
6931
|
+
var Container$Q = /*#__PURE__*/styled.div(_templateObject2$_ || (_templateObject2$_ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
6876
6932
|
|
|
6877
6933
|
function DocumentTypeDropdown() {
|
|
6878
6934
|
var onSelect = function onSelect() {};
|
|
@@ -6952,7 +7008,7 @@ function UploadIcon(props) {
|
|
|
6952
7008
|
})));
|
|
6953
7009
|
}
|
|
6954
7010
|
|
|
6955
|
-
var _templateObject$
|
|
7011
|
+
var _templateObject$1l, _templateObject2$$, _templateObject3$u, _templateObject4$g, _templateObject5$b, _templateObject6$5, _templateObject7$7;
|
|
6956
7012
|
var Dragger = Upload.Dragger;
|
|
6957
7013
|
var props = {
|
|
6958
7014
|
name: 'file',
|
|
@@ -6974,20 +7030,20 @@ var props = {
|
|
|
6974
7030
|
}
|
|
6975
7031
|
};
|
|
6976
7032
|
function DocFileUpload() {
|
|
6977
|
-
return React.createElement(MainContainer$8, null, React.createElement(Dragger, Object.assign({}, props), React.createElement(Container$
|
|
7033
|
+
return React.createElement(MainContainer$8, null, React.createElement(Dragger, Object.assign({}, props), React.createElement(Container$R, null, React.createElement(UploadButton, {
|
|
6978
7034
|
colors: 'secondary',
|
|
6979
7035
|
shape: 'rounded'
|
|
6980
7036
|
}, "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")))));
|
|
6981
7037
|
}
|
|
6982
|
-
var MainContainer$8 = /*#__PURE__*/styled.div(_templateObject$
|
|
7038
|
+
var MainContainer$8 = /*#__PURE__*/styled.div(_templateObject$1l || (_templateObject$1l = /*#__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"])));
|
|
6983
7039
|
var Text2 = /*#__PURE__*/styled.p(_templateObject2$$ || (_templateObject2$$ = /*#__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"])));
|
|
6984
7040
|
var TextContainer$2 = /*#__PURE__*/styled.div(_templateObject3$u || (_templateObject3$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n\n"])));
|
|
6985
7041
|
var Text1 = /*#__PURE__*/styled.p(_templateObject4$g || (_templateObject4$g = /*#__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"])));
|
|
6986
7042
|
var IconContainer$3 = /*#__PURE__*/styled.div(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px dashed #0465AC;\n padding: 5px;\n display: flex;\n align-items: center;\n"])));
|
|
6987
7043
|
var UploadButton = /*#__PURE__*/styled(Button)(_templateObject6$5 || (_templateObject6$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 16px;\n font-size: 14px;\n padding: 7px 20px;\n"])));
|
|
6988
|
-
var Container$
|
|
7044
|
+
var Container$R = /*#__PURE__*/styled.div(_templateObject7$7 || (_templateObject7$7 = /*#__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"])));
|
|
6989
7045
|
|
|
6990
|
-
var _templateObject$
|
|
7046
|
+
var _templateObject$1m, _templateObject2$10, _templateObject3$v, _templateObject4$h;
|
|
6991
7047
|
// import DocFileUpload from './DocFileUpload';
|
|
6992
7048
|
function AddResources() {
|
|
6993
7049
|
var _useCurrentAction = useCurrentAction(),
|
|
@@ -7003,7 +7059,7 @@ function AddResources() {
|
|
|
7003
7059
|
onSubmit: function onSubmit() {}
|
|
7004
7060
|
}, 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$2, null, "File"), React.createElement(DocFileUpload, null))));
|
|
7005
7061
|
}
|
|
7006
|
-
var Label$2 = /*#__PURE__*/styled.label(_templateObject$
|
|
7062
|
+
var Label$2 = /*#__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"])));
|
|
7007
7063
|
var Bottom$1 = /*#__PURE__*/styled.div(_templateObject2$10 || (_templateObject2$10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
7008
7064
|
var Top$1 = /*#__PURE__*/styled.div(_templateObject3$v || (_templateObject3$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n > div {\n min-width: 240px;\n }\n"])));
|
|
7009
7065
|
var ContentContainer = /*#__PURE__*/styled.div(_templateObject4$h || (_templateObject4$h = /*#__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"])));
|
|
@@ -7144,9 +7200,9 @@ function useUpdateReminderData() {
|
|
|
7144
7200
|
return useAtom(reminderUpdatePayload);
|
|
7145
7201
|
}
|
|
7146
7202
|
|
|
7147
|
-
var _templateObject$
|
|
7203
|
+
var _templateObject$1n, _templateObject2$11, _templateObject3$w;
|
|
7148
7204
|
// Styled components
|
|
7149
|
-
var StyledTableWrapper$2 = /*#__PURE__*/styled.div(_templateObject$
|
|
7205
|
+
var StyledTableWrapper$2 = /*#__PURE__*/styled.div(_templateObject$1n || (_templateObject$1n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: auto;\n max-height: calc(100vh - 290px);\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"])));
|
|
7150
7206
|
var StyledTable$3 = /*#__PURE__*/styled.table(_templateObject2$11 || (_templateObject2$11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-spacing: 0 10px;\n width: 100%;\n padding: 10px;\n thead {\n tr {\n border-radius: 40px;\n border-spacing: 0 10px;\n th {\n color: #3a3630;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n padding: 5px 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 text-transform: capitalize;\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 .link {\n color: #09f;\n font-family: Roboto;\n font-weight: 400;\n cursor: pointer;\n }\n td {\n .flex {\n display: flex;\n gap: 4px;\n align-items: center;\n }\n .overDue {\n border-radius: 20px;\n border: 1px solid #edebe8;\n background: #fff;\n padding: 4px 8px;\n color: #e95252;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px;\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 .emptyTd {\n border-radius: 100px !important;\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 &: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"])));
|
|
7151
7207
|
var EmptyDataContainer$1 = /*#__PURE__*/styled.div(_templateObject3$w || (_templateObject3$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
|
|
7152
7208
|
|
|
@@ -7230,7 +7286,7 @@ function SplitOrderTable() {
|
|
|
7230
7286
|
}))));
|
|
7231
7287
|
}
|
|
7232
7288
|
|
|
7233
|
-
var _templateObject$
|
|
7289
|
+
var _templateObject$1o;
|
|
7234
7290
|
function SplitOrder() {
|
|
7235
7291
|
var _useCurrentAction = useCurrentAction(),
|
|
7236
7292
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -7278,7 +7334,7 @@ function SplitOrder() {
|
|
|
7278
7334
|
isSubmitDisabled: isSubmitDisabled()
|
|
7279
7335
|
}, React.createElement(ContentContainer$1, null, React.createElement(SplitOrderTable, null)));
|
|
7280
7336
|
}
|
|
7281
|
-
var ContentContainer$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
7337
|
+
var ContentContainer$1 = /*#__PURE__*/styled.div(_templateObject$1o || (_templateObject$1o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* display: flex; */\n padding: 15px 12px;\n flex: 1 0 0;\n border-radius: 15px;\n background: white;\n display: flex;\n flex-direction: column;\n gap: 15px;\n overflow: auto;\n min-height: 500px;\n overflow-x: hidden;\n max-height: 500px;\n scrollbar-width: thin;\n"])));
|
|
7282
7338
|
|
|
7283
7339
|
function RadioButtonCheckIcon(props) {
|
|
7284
7340
|
return React.createElement("svg", Object.assign({
|
|
@@ -7309,7 +7365,7 @@ var fonts = {
|
|
|
7309
7365
|
secondary: "'Lato', sans-serif"
|
|
7310
7366
|
};
|
|
7311
7367
|
|
|
7312
|
-
var _templateObject$
|
|
7368
|
+
var _templateObject$1p, _templateObject2$12, _templateObject3$x;
|
|
7313
7369
|
function RadioButton(props) {
|
|
7314
7370
|
return React.createElement(RadioContainer$1, null, props.checked && React.createElement(RadioButtonCheckIcon, {
|
|
7315
7371
|
color: props.color
|
|
@@ -7320,7 +7376,7 @@ function RadioButton(props) {
|
|
|
7320
7376
|
htmlFor: props.id
|
|
7321
7377
|
}, props.label));
|
|
7322
7378
|
}
|
|
7323
|
-
var Label$3 = /*#__PURE__*/styled.label(_templateObject$
|
|
7379
|
+
var Label$3 = /*#__PURE__*/styled.label(_templateObject$1p || (_templateObject$1p = /*#__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);
|
|
7324
7380
|
var Input = /*#__PURE__*/styled.input(_templateObject2$12 || (_templateObject2$12 = /*#__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$3, function (props) {
|
|
7325
7381
|
return props.color || '#6396e5';
|
|
7326
7382
|
}, function (props) {
|
|
@@ -7328,7 +7384,7 @@ var Input = /*#__PURE__*/styled.input(_templateObject2$12 || (_templateObject2$1
|
|
|
7328
7384
|
});
|
|
7329
7385
|
var RadioContainer$1 = /*#__PURE__*/styled.div(_templateObject3$x || (_templateObject3$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n align-items: center;\n"])));
|
|
7330
7386
|
|
|
7331
|
-
var _templateObject$
|
|
7387
|
+
var _templateObject$1q, _templateObject2$13, _templateObject3$y, _templateObject4$i, _templateObject5$c, _templateObject6$6, _templateObject7$8;
|
|
7332
7388
|
function RadioButtonGroup(props) {
|
|
7333
7389
|
var heading = props.heading,
|
|
7334
7390
|
_props$direction = props.direction,
|
|
@@ -7363,7 +7419,7 @@ function RadioButtonGroup(props) {
|
|
|
7363
7419
|
className: "custom-wrapper"
|
|
7364
7420
|
}, renderOptions()));
|
|
7365
7421
|
}
|
|
7366
|
-
var Separator = /*#__PURE__*/styled.div(_templateObject$
|
|
7422
|
+
var Separator = /*#__PURE__*/styled.div(_templateObject$1q || (_templateObject$1q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 1px;\n background: #e0e2e7;\n"])));
|
|
7367
7423
|
var labelStyles = /*#__PURE__*/css(_templateObject2$13 || (_templateObject2$13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n line-height: 20px;\n"])), fonts.secondary);
|
|
7368
7424
|
var RequiredText = /*#__PURE__*/styled.span(_templateObject3$y || (_templateObject3$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n ", "\n"])), function (props) {
|
|
7369
7425
|
return !props.$required && 'visibility: hidden;';
|
|
@@ -7375,7 +7431,7 @@ var Wrapper$g = /*#__PURE__*/styled.div(_templateObject7$8 || (_templateObject7$
|
|
|
7375
7431
|
return props.$direction === 'horizontal' ? 'row' : 'column';
|
|
7376
7432
|
});
|
|
7377
7433
|
|
|
7378
|
-
var _templateObject$
|
|
7434
|
+
var _templateObject$1r;
|
|
7379
7435
|
var deliveryPoints = [{
|
|
7380
7436
|
label: 'Hallway',
|
|
7381
7437
|
value: 'hallway'
|
|
@@ -7397,7 +7453,7 @@ function DeliveryPoint() {
|
|
|
7397
7453
|
var _React$useState = React.useState(deliveryPoints[0].value),
|
|
7398
7454
|
selectedValue = _React$useState[0],
|
|
7399
7455
|
setSelectedValue = _React$useState[1];
|
|
7400
|
-
return React.createElement(Container$
|
|
7456
|
+
return React.createElement(Container$S, null, React.createElement(RadioButtonGroup, {
|
|
7401
7457
|
heading: "Delivery Point",
|
|
7402
7458
|
options: deliveryPoints || [],
|
|
7403
7459
|
onChange: radioGroupHandler,
|
|
@@ -7406,9 +7462,9 @@ function DeliveryPoint() {
|
|
|
7406
7462
|
required: false
|
|
7407
7463
|
}));
|
|
7408
7464
|
}
|
|
7409
|
-
var Container$
|
|
7465
|
+
var Container$S = /*#__PURE__*/styled.div(_templateObject$1r || (_templateObject$1r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n /* height: 30px; */\n padding: 1px;\n align-items: flex-start;\n align-self: stretch;\n"])));
|
|
7410
7466
|
|
|
7411
|
-
var _templateObject$
|
|
7467
|
+
var _templateObject$1s, _templateObject2$14, _templateObject3$z, _templateObject4$j, _templateObject5$d, _templateObject6$7, _templateObject7$9, _templateObject8$5;
|
|
7412
7468
|
var _excluded$5 = ["imageSrc", "label", "checked"];
|
|
7413
7469
|
function Checkbox(props) {
|
|
7414
7470
|
var imageSrc = props.imageSrc,
|
|
@@ -7429,7 +7485,7 @@ function Checkbox(props) {
|
|
|
7429
7485
|
"$checked": checked
|
|
7430
7486
|
}, label)));
|
|
7431
7487
|
}
|
|
7432
|
-
var Image = /*#__PURE__*/styled.img(_templateObject$
|
|
7488
|
+
var Image = /*#__PURE__*/styled.img(_templateObject$1s || (_templateObject$1s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 28px;\n width: 20px;\n filter: ", ";\n"])), function (props) {
|
|
7433
7489
|
return props.$checked ? 'grayscale(0)' : 'grayscale(1)';
|
|
7434
7490
|
});
|
|
7435
7491
|
var CircleContainer = /*#__PURE__*/styled.span(_templateObject2$14 || (_templateObject2$14 = /*#__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"])));
|
|
@@ -7469,10 +7525,10 @@ var getIcon$1 = function getIcon(input) {
|
|
|
7469
7525
|
return "" + baseURL$1 + subPath;
|
|
7470
7526
|
};
|
|
7471
7527
|
|
|
7472
|
-
var _templateObject$
|
|
7528
|
+
var _templateObject$1t;
|
|
7473
7529
|
function OrderServices$1() {
|
|
7474
7530
|
// TO DO -> get services from static data
|
|
7475
|
-
return React.createElement(Container$
|
|
7531
|
+
return React.createElement(Container$T, null, React.createElement(Checkbox, {
|
|
7476
7532
|
checked: false,
|
|
7477
7533
|
label: "Assemble",
|
|
7478
7534
|
imageSrc: getIcon$1(1)
|
|
@@ -7494,23 +7550,23 @@ function OrderServices$1() {
|
|
|
7494
7550
|
imageSrc: getIcon$1(4)
|
|
7495
7551
|
}));
|
|
7496
7552
|
}
|
|
7497
|
-
var Container$
|
|
7553
|
+
var Container$T = /*#__PURE__*/styled.div(_templateObject$1t || (_templateObject$1t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n"])));
|
|
7498
7554
|
|
|
7499
|
-
var _templateObject$
|
|
7555
|
+
var _templateObject$1u, _templateObject2$15;
|
|
7500
7556
|
function Notes$1(_ref) {
|
|
7501
7557
|
var onNotesChange = _ref.onNotesChange;
|
|
7502
7558
|
var handleTextChange = function handleTextChange(event) {
|
|
7503
7559
|
onNotesChange(event.target.value);
|
|
7504
7560
|
};
|
|
7505
|
-
return React.createElement(Container$
|
|
7561
|
+
return React.createElement(Container$U, null, React.createElement(Label$4, null, "Notes"), React.createElement(TextArea, {
|
|
7506
7562
|
rows: 15,
|
|
7507
7563
|
onChange: handleTextChange
|
|
7508
7564
|
}));
|
|
7509
7565
|
}
|
|
7510
|
-
var Label$4 = /*#__PURE__*/styled.span(_templateObject$
|
|
7511
|
-
var Container$
|
|
7566
|
+
var Label$4 = /*#__PURE__*/styled.span(_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"])));
|
|
7567
|
+
var Container$U = /*#__PURE__*/styled.div(_templateObject2$15 || (_templateObject2$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n flex-direction: column;\n width: 100%;\n"])));
|
|
7512
7568
|
|
|
7513
|
-
var _templateObject$
|
|
7569
|
+
var _templateObject$1v, _templateObject2$16, _templateObject3$A;
|
|
7514
7570
|
function LogServiceRefusal() {
|
|
7515
7571
|
var _useCurrentAction = useCurrentAction(),
|
|
7516
7572
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -7530,7 +7586,7 @@ function LogServiceRefusal() {
|
|
|
7530
7586
|
}
|
|
7531
7587
|
}))));
|
|
7532
7588
|
}
|
|
7533
|
-
var ContentContainer$2 = /*#__PURE__*/styled.div(_templateObject$
|
|
7589
|
+
var ContentContainer$2 = /*#__PURE__*/styled.div(_templateObject$1v || (_templateObject$1v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 0px 15px;\n align-items: flex-start;\n gap: 10px;\n align-self: stretch;\n"])));
|
|
7534
7590
|
var Left = /*#__PURE__*/styled.div(_templateObject2$16 || (_templateObject2$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"])));
|
|
7535
7591
|
var Right$1 = /*#__PURE__*/styled(Left)(_templateObject3$A || (_templateObject3$A = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
7536
7592
|
|
|
@@ -7558,7 +7614,7 @@ function ReturnReason() {
|
|
|
7558
7614
|
});
|
|
7559
7615
|
}
|
|
7560
7616
|
|
|
7561
|
-
var _templateObject$
|
|
7617
|
+
var _templateObject$1w, _templateObject2$17, _templateObject3$B, _templateObject4$k, _templateObject5$e, _templateObject6$8, _templateObject7$a;
|
|
7562
7618
|
function CancelOrder() {
|
|
7563
7619
|
var _orderStaticData$canc;
|
|
7564
7620
|
var _useOrderId = useOrderId(),
|
|
@@ -7662,15 +7718,15 @@ function CancelOrder() {
|
|
|
7662
7718
|
options: cancelReasonOptions || [],
|
|
7663
7719
|
onSelect: onSelectCancelReason,
|
|
7664
7720
|
value: cancelReason
|
|
7665
|
-
}), React.createElement(Wrapper$h, null, React.createElement(ReturnAction, null), React.createElement(ReturnReason, null))), React.createElement(TopRight, null, React.createElement(Container$
|
|
7721
|
+
}), React.createElement(Wrapper$h, null, React.createElement(ReturnAction, null), React.createElement(ReturnReason, null))), React.createElement(TopRight, null, React.createElement(Container$V, null, React.createElement(Label$5, null, "Cancelation Note"), React.createElement(TextArea, {
|
|
7666
7722
|
rows: 5,
|
|
7667
7723
|
onChange: onChangeNotes,
|
|
7668
7724
|
value: cancelNotes,
|
|
7669
7725
|
placeholder: "Reason for Cancel Order"
|
|
7670
7726
|
}))))));
|
|
7671
7727
|
}
|
|
7672
|
-
var Label$5 = /*#__PURE__*/styled.label(_templateObject$
|
|
7673
|
-
var Container$
|
|
7728
|
+
var Label$5 = /*#__PURE__*/styled.label(_templateObject$1w || (_templateObject$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
7729
|
+
var Container$V = /*#__PURE__*/styled.div(_templateObject2$17 || (_templateObject2$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
7674
7730
|
var Wrapper$h = /*#__PURE__*/styled.div(_templateObject3$B || (_templateObject3$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n width: 100%;\n > div {\n width: 50%;\n }\n"])));
|
|
7675
7731
|
var TopLeft = /*#__PURE__*/styled.div(_templateObject4$k || (_templateObject4$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 15px;\n width: 50%;\n"])));
|
|
7676
7732
|
var TopRight = /*#__PURE__*/styled.div(_templateObject5$e || (_templateObject5$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 50%;\n"])));
|
|
@@ -7678,7 +7734,7 @@ var Top$2 = /*#__PURE__*/styled.div(_templateObject6$8 || (_templateObject6$8 =
|
|
|
7678
7734
|
// const Bottom = styled.div``;
|
|
7679
7735
|
var ContentContainer$3 = /*#__PURE__*/styled.div(_templateObject7$a || (_templateObject7$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 0px 15px;\n align-items: flex-start;\n gap: 10px;\n flex-direction: column;\n"])));
|
|
7680
7736
|
|
|
7681
|
-
var _templateObject$
|
|
7737
|
+
var _templateObject$1x, _templateObject2$18, _templateObject3$C;
|
|
7682
7738
|
function EmailAddress() {
|
|
7683
7739
|
var emailRegex = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;
|
|
7684
7740
|
var _useOrderDetailsConfi = useOrderDetailsConfirmOrder(),
|
|
@@ -7710,7 +7766,7 @@ function EmailAddress() {
|
|
|
7710
7766
|
});
|
|
7711
7767
|
});
|
|
7712
7768
|
};
|
|
7713
|
-
return React.createElement(Container$
|
|
7769
|
+
return React.createElement(Container$W, null, React.createElement(Label$6, null, "Email Address"), React.createElement(Input$2, {
|
|
7714
7770
|
style: {
|
|
7715
7771
|
borderRadius: '15px'
|
|
7716
7772
|
},
|
|
@@ -7719,11 +7775,11 @@ function EmailAddress() {
|
|
|
7719
7775
|
onChange: onChange
|
|
7720
7776
|
}), errors.emailError && React.createElement(ErrorText$5, null, errors.emailError));
|
|
7721
7777
|
}
|
|
7722
|
-
var Label$6 = /*#__PURE__*/styled.label(_templateObject$
|
|
7723
|
-
var Container$
|
|
7778
|
+
var Label$6 = /*#__PURE__*/styled.label(_templateObject$1x || (_templateObject$1x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
7779
|
+
var Container$W = /*#__PURE__*/styled.div(_templateObject2$18 || (_templateObject2$18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
7724
7780
|
var ErrorText$5 = /*#__PURE__*/styled.span(_templateObject3$C || (_templateObject3$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
|
|
7725
7781
|
|
|
7726
|
-
var _templateObject$
|
|
7782
|
+
var _templateObject$1y, _templateObject2$19, _templateObject3$D;
|
|
7727
7783
|
function ContactPhone() {
|
|
7728
7784
|
var _useOrderDetailsConfi = useOrderDetailsConfirmOrder(),
|
|
7729
7785
|
orderDetails = _useOrderDetailsConfi[0],
|
|
@@ -7772,7 +7828,7 @@ function ContactPhone() {
|
|
|
7772
7828
|
});
|
|
7773
7829
|
}
|
|
7774
7830
|
};
|
|
7775
|
-
return React.createElement(Container$
|
|
7831
|
+
return React.createElement(Container$X, null, React.createElement(Label$7, null, "Contact Phone"), React.createElement(Input$2, {
|
|
7776
7832
|
name: "contact-home",
|
|
7777
7833
|
type: "text",
|
|
7778
7834
|
placeholder: "Home Number",
|
|
@@ -7784,11 +7840,11 @@ function ContactPhone() {
|
|
|
7784
7840
|
onChange: onChange
|
|
7785
7841
|
}), errors.homeContactError && React.createElement(ErrorText$6, null, errors.homeContactError));
|
|
7786
7842
|
}
|
|
7787
|
-
var Label$7 = /*#__PURE__*/styled.label(_templateObject$
|
|
7788
|
-
var Container$
|
|
7843
|
+
var Label$7 = /*#__PURE__*/styled.label(_templateObject$1y || (_templateObject$1y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
7844
|
+
var Container$X = /*#__PURE__*/styled.div(_templateObject2$19 || (_templateObject2$19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
7789
7845
|
var ErrorText$6 = /*#__PURE__*/styled.span(_templateObject3$D || (_templateObject3$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
|
|
7790
7846
|
|
|
7791
|
-
var _templateObject$
|
|
7847
|
+
var _templateObject$1z, _templateObject2$1a, _templateObject3$E;
|
|
7792
7848
|
function ContactWork$1() {
|
|
7793
7849
|
var _useOrderDetailsConfi = useOrderDetailsConfirmOrder(),
|
|
7794
7850
|
orderDetails = _useOrderDetailsConfi[0],
|
|
@@ -7837,7 +7893,7 @@ function ContactWork$1() {
|
|
|
7837
7893
|
});
|
|
7838
7894
|
}
|
|
7839
7895
|
};
|
|
7840
|
-
return React.createElement(Container$
|
|
7896
|
+
return React.createElement(Container$Y, null, React.createElement(Label$8, null, "Contact Work"), React.createElement(Input$2, {
|
|
7841
7897
|
name: "contact-work",
|
|
7842
7898
|
type: "text",
|
|
7843
7899
|
placeholder: "Work Number",
|
|
@@ -7849,11 +7905,11 @@ function ContactWork$1() {
|
|
|
7849
7905
|
onChange: onChange
|
|
7850
7906
|
}), errors.workContactError && React.createElement(ErrorText$7, null, errors.workContactError));
|
|
7851
7907
|
}
|
|
7852
|
-
var Label$8 = /*#__PURE__*/styled.label(_templateObject$
|
|
7853
|
-
var Container$
|
|
7908
|
+
var Label$8 = /*#__PURE__*/styled.label(_templateObject$1z || (_templateObject$1z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
7909
|
+
var Container$Y = /*#__PURE__*/styled.div(_templateObject2$1a || (_templateObject2$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
7854
7910
|
var ErrorText$7 = /*#__PURE__*/styled.span(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
|
|
7855
7911
|
|
|
7856
|
-
var _templateObject$
|
|
7912
|
+
var _templateObject$1A, _templateObject2$1b, _templateObject3$F;
|
|
7857
7913
|
function ContactMobile$1() {
|
|
7858
7914
|
var _useOrderDetailsConfi = useOrderDetailsConfirmOrder(),
|
|
7859
7915
|
orderDetails = _useOrderDetailsConfi[0],
|
|
@@ -7902,7 +7958,7 @@ function ContactMobile$1() {
|
|
|
7902
7958
|
});
|
|
7903
7959
|
}
|
|
7904
7960
|
};
|
|
7905
|
-
return React.createElement(Container$
|
|
7961
|
+
return React.createElement(Container$Z, null, React.createElement(Label$9, null, "Contact Mobile"), React.createElement(Input$2, {
|
|
7906
7962
|
name: "contact-work",
|
|
7907
7963
|
type: "text",
|
|
7908
7964
|
placeholder: "Mobile Number",
|
|
@@ -7914,8 +7970,8 @@ function ContactMobile$1() {
|
|
|
7914
7970
|
onChange: onChange
|
|
7915
7971
|
}), errors.mobileError && React.createElement(ErrorText$8, null, errors.mobileError));
|
|
7916
7972
|
}
|
|
7917
|
-
var Label$9 = /*#__PURE__*/styled.label(_templateObject$
|
|
7918
|
-
var Container$
|
|
7973
|
+
var Label$9 = /*#__PURE__*/styled.label(_templateObject$1A || (_templateObject$1A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
7974
|
+
var Container$Z = /*#__PURE__*/styled.div(_templateObject2$1b || (_templateObject2$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
7919
7975
|
var ErrorText$8 = /*#__PURE__*/styled.span(_templateObject3$F || (_templateObject3$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
|
|
7920
7976
|
|
|
7921
7977
|
function ContactTypeDropdown() {
|
|
@@ -7982,7 +8038,7 @@ function ActionDropdown() {
|
|
|
7982
8038
|
});
|
|
7983
8039
|
}
|
|
7984
8040
|
|
|
7985
|
-
var _templateObject$
|
|
8041
|
+
var _templateObject$1B, _templateObject2$1c;
|
|
7986
8042
|
function DeliveryDate$1() {
|
|
7987
8043
|
var _useOrderDetailsConfi = useOrderDetailsConfirmOrder(),
|
|
7988
8044
|
orderDetails = _useOrderDetailsConfi[0];
|
|
@@ -8007,7 +8063,7 @@ function DeliveryDate$1() {
|
|
|
8007
8063
|
var tomorrow = new Date(today);
|
|
8008
8064
|
tomorrow.setDate(today.getDate() + 1);
|
|
8009
8065
|
//confirm popouop
|
|
8010
|
-
return React.createElement(Container$
|
|
8066
|
+
return React.createElement(Container$_, null, React.createElement(Label$a, null, "Delivery Date"), React.createElement(DatePicker, {
|
|
8011
8067
|
onChange: handleDateChange,
|
|
8012
8068
|
format: "DD/MM/YYYY",
|
|
8013
8069
|
value: deliveryDate ? dayjs(deliveryDate) : null,
|
|
@@ -8018,8 +8074,8 @@ function DeliveryDate$1() {
|
|
|
8018
8074
|
allowClear: false
|
|
8019
8075
|
}));
|
|
8020
8076
|
}
|
|
8021
|
-
var Label$a = /*#__PURE__*/styled.label(_templateObject$
|
|
8022
|
-
var Container$
|
|
8077
|
+
var Label$a = /*#__PURE__*/styled.label(_templateObject$1B || (_templateObject$1B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
8078
|
+
var Container$_ = /*#__PURE__*/styled.div(_templateObject2$1c || (_templateObject2$1c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n white-space: nowrap;\n"])));
|
|
8023
8079
|
|
|
8024
8080
|
function convertTo12HourFormat$1(time24) {
|
|
8025
8081
|
var _time24$split, _minutes$toString;
|
|
@@ -8068,19 +8124,19 @@ function TimedServiceDropdown$1() {
|
|
|
8068
8124
|
});
|
|
8069
8125
|
}
|
|
8070
8126
|
|
|
8071
|
-
var _templateObject$
|
|
8127
|
+
var _templateObject$1C, _templateObject2$1d, _templateObject3$G, _templateObject4$l;
|
|
8072
8128
|
function CustomerInformation() {
|
|
8073
8129
|
var _orderDetails$order_r;
|
|
8074
8130
|
var _useOrderDetailsConfi = useOrderDetailsConfirmOrder(),
|
|
8075
8131
|
orderDetails = _useOrderDetailsConfi[0];
|
|
8076
|
-
return React.createElement(Container
|
|
8132
|
+
return React.createElement(Container$$, null, React.createElement(Title$3, null, "Address"), React.createElement(AddressField, null, orderDetails == null || (_orderDetails$order_r = orderDetails.order_recipient) == null ? void 0 : _orderDetails$order_r.address), React.createElement(Wrapper$i, null, React.createElement(EmailAddress, null), React.createElement(ContactPhone, null)), React.createElement(Wrapper$i, null, React.createElement(ContactWork$1, null), React.createElement(ContactMobile$1, null)), React.createElement(Wrapper$i, null, React.createElement(ContactTypeDropdown, null), React.createElement(ActionDropdown, null)), React.createElement(Wrapper$i, null, React.createElement(DeliveryDate$1, null), React.createElement(TimedServiceDropdown$1, null)));
|
|
8077
8133
|
}
|
|
8078
|
-
var Wrapper$i = /*#__PURE__*/styled.div(_templateObject$
|
|
8134
|
+
var Wrapper$i = /*#__PURE__*/styled.div(_templateObject$1C || (_templateObject$1C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n width: 100%;\n .contact-type-dropdown,\n .action-dropdown {\n flex: 1;\n }\n"])));
|
|
8079
8135
|
var AddressField = /*#__PURE__*/styled.p(_templateObject2$1d || (_templateObject2$1d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Open Sans';\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n padding: 0;\n margin: 0;\n"])));
|
|
8080
8136
|
var Title$3 = /*#__PURE__*/styled.span(_templateObject3$G || (_templateObject3$G = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n"])));
|
|
8081
|
-
var Container
|
|
8137
|
+
var Container$$ = /*#__PURE__*/styled.div(_templateObject4$l || (_templateObject4$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px 12px;\n flex: 1 0 0;\n border-radius: 15px;\n background: #f8fafc;\n display: flex;\n flex-direction: column;\n gap: 15px;\n"])));
|
|
8082
8138
|
|
|
8083
|
-
var _templateObject$
|
|
8139
|
+
var _templateObject$1D, _templateObject2$1e;
|
|
8084
8140
|
function ProductTable$1() {
|
|
8085
8141
|
var _useProductDetails = useProductDetails(),
|
|
8086
8142
|
orderProductDetails = _useProductDetails[0];
|
|
@@ -8089,7 +8145,7 @@ function ProductTable$1() {
|
|
|
8089
8145
|
if (!orderProductDetails) {
|
|
8090
8146
|
return null;
|
|
8091
8147
|
}
|
|
8092
|
-
return React.createElement(Container
|
|
8148
|
+
return React.createElement(Container$10, null, React.createElement(Title$4, null, "Products (", orderProductDetails == null ? void 0 : orderProductDetails.length, ")"), React.createElement(StyledTableWrapper$2, null, React.createElement(StyledTable$3, {
|
|
8093
8149
|
className: "scrollClass"
|
|
8094
8150
|
}, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", null, "Action"), React.createElement("th", null, "Code"), React.createElement("th", null, "Description"), React.createElement("th", null, "Parts"))), React.createElement("tbody", null, loading ? React.createElement("tr", null, React.createElement("td", {
|
|
8095
8151
|
colSpan: 6
|
|
@@ -8107,10 +8163,10 @@ function ProductTable$1() {
|
|
|
8107
8163
|
}, React.createElement("td", null, order == null || (_order$order_product_ = order.order_product_type) == null ? void 0 : _order$order_product_.type), React.createElement("td", null, order == null ? void 0 : order.code), React.createElement("td", null, order == null ? void 0 : order.description), React.createElement("td", null, order == null ? void 0 : order.sku));
|
|
8108
8164
|
})))));
|
|
8109
8165
|
}
|
|
8110
|
-
var Title$4 = /*#__PURE__*/styled.h2(_templateObject$
|
|
8111
|
-
var Container
|
|
8166
|
+
var Title$4 = /*#__PURE__*/styled.h2(_templateObject$1D || (_templateObject$1D = /*#__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"])));
|
|
8167
|
+
var Container$10 = /*#__PURE__*/styled.div(_templateObject2$1e || (_templateObject2$1e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n > div {\n min-height: 165px;\n }\n"])));
|
|
8112
8168
|
|
|
8113
|
-
var _templateObject$
|
|
8169
|
+
var _templateObject$1E, _templateObject2$1f;
|
|
8114
8170
|
function NotesTable() {
|
|
8115
8171
|
var _useState = useState(null),
|
|
8116
8172
|
moduleIds = _useState[0],
|
|
@@ -8178,7 +8234,7 @@ function NotesTable() {
|
|
|
8178
8234
|
if ((notes == null ? void 0 : notes.length) === 0) {
|
|
8179
8235
|
return null;
|
|
8180
8236
|
}
|
|
8181
|
-
return React.createElement(Container$
|
|
8237
|
+
return React.createElement(Container$11, null, React.createElement(Title$5, null, "Notes (", notes == null ? void 0 : notes.length, ")"), React.createElement(StyledTableWrapper$2, null, React.createElement(StyledTable$3, {
|
|
8182
8238
|
className: "scrollClass"
|
|
8183
8239
|
}, React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", null, "Created"), React.createElement("th", null, "Notes"))), React.createElement("tbody", null, loading ? React.createElement("tr", null, React.createElement("td", {
|
|
8184
8240
|
colSpan: 6
|
|
@@ -8204,53 +8260,53 @@ function NotesTable() {
|
|
|
8204
8260
|
}));
|
|
8205
8261
|
})))));
|
|
8206
8262
|
}
|
|
8207
|
-
var Title$5 = /*#__PURE__*/styled.h2(_templateObject$
|
|
8208
|
-
var Container$
|
|
8263
|
+
var Title$5 = /*#__PURE__*/styled.h2(_templateObject$1E || (_templateObject$1E = /*#__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"])));
|
|
8264
|
+
var Container$11 = /*#__PURE__*/styled.div(_templateObject2$1f || (_templateObject2$1f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n > div {\n min-height: 165px;\n }\n"])));
|
|
8209
8265
|
|
|
8210
|
-
var _templateObject$
|
|
8266
|
+
var _templateObject$1F, _templateObject2$1g;
|
|
8211
8267
|
function ConfirmationNotes() {
|
|
8212
|
-
return React.createElement(Container$
|
|
8268
|
+
return React.createElement(Container$12, null, React.createElement(Label$b, null, "Notes"), React.createElement(TextArea, {
|
|
8213
8269
|
rows: 5,
|
|
8214
8270
|
placeholder: "Enter Notes"
|
|
8215
8271
|
}));
|
|
8216
8272
|
}
|
|
8217
|
-
var Label$b = /*#__PURE__*/styled.label(_templateObject$
|
|
8218
|
-
var Container$
|
|
8273
|
+
var Label$b = /*#__PURE__*/styled.label(_templateObject$1F || (_templateObject$1F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
8274
|
+
var Container$12 = /*#__PURE__*/styled.div(_templateObject2$1g || (_templateObject2$1g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
8219
8275
|
|
|
8220
|
-
var _templateObject$
|
|
8276
|
+
var _templateObject$1G, _templateObject2$1h;
|
|
8221
8277
|
function DeliveryInstructions$1() {
|
|
8222
|
-
return React.createElement(Container$
|
|
8278
|
+
return React.createElement(Container$13, null, React.createElement(Label$c, null, "Delivery Instructions"), React.createElement(TextArea, {
|
|
8223
8279
|
rows: 5,
|
|
8224
8280
|
placeholder: "Enter Delivery Instructions"
|
|
8225
8281
|
}));
|
|
8226
8282
|
}
|
|
8227
|
-
var Label$c = /*#__PURE__*/styled.label(_templateObject$
|
|
8228
|
-
var Container$
|
|
8283
|
+
var Label$c = /*#__PURE__*/styled.label(_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"])));
|
|
8284
|
+
var Container$13 = /*#__PURE__*/styled.div(_templateObject2$1h || (_templateObject2$1h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
8229
8285
|
|
|
8230
|
-
var _templateObject$
|
|
8286
|
+
var _templateObject$1H, _templateObject2$1i;
|
|
8231
8287
|
function ContactWith() {
|
|
8232
|
-
return React.createElement(Container$
|
|
8288
|
+
return React.createElement(Container$14, null, React.createElement(Label$d, null, "Contact With"), React.createElement(Input$2, {
|
|
8233
8289
|
style: {
|
|
8234
8290
|
borderRadius: '15px'
|
|
8235
8291
|
}
|
|
8236
8292
|
}));
|
|
8237
8293
|
}
|
|
8238
|
-
var Label$d = /*#__PURE__*/styled.label(_templateObject$
|
|
8239
|
-
var Container$
|
|
8294
|
+
var Label$d = /*#__PURE__*/styled.label(_templateObject$1H || (_templateObject$1H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
8295
|
+
var Container$14 = /*#__PURE__*/styled.div(_templateObject2$1i || (_templateObject2$1i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
|
|
8240
8296
|
|
|
8241
|
-
var _templateObject$
|
|
8297
|
+
var _templateObject$1I, _templateObject2$1j, _templateObject3$H, _templateObject4$m;
|
|
8242
8298
|
function SlotAndInstructions() {
|
|
8243
8299
|
var _orderDetails$order_r;
|
|
8244
8300
|
var _useOrderDetailsConfi = useOrderDetailsConfirmOrder(),
|
|
8245
8301
|
orderDetails = _useOrderDetailsConfi[0];
|
|
8246
|
-
return React.createElement(Container$
|
|
8302
|
+
return React.createElement(Container$15, null, React.createElement(Slot, null, React.createElement(Title$6, null, "Slot"), React.createElement(Value, null, orderDetails == null || (_orderDetails$order_r = orderDetails.order_routes) == null ? void 0 : _orderDetails$order_r.slot)), React.createElement(ContactWith, null), React.createElement(DeliveryInstructions$1, null), React.createElement(ConfirmationNotes, null));
|
|
8247
8303
|
}
|
|
8248
|
-
var Value = /*#__PURE__*/styled.span(_templateObject$
|
|
8304
|
+
var Value = /*#__PURE__*/styled.span(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Lato', 'Open Sans';\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n"])));
|
|
8249
8305
|
var Slot = /*#__PURE__*/styled.div(_templateObject2$1j || (_templateObject2$1j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 5px;\n"])));
|
|
8250
8306
|
var Title$6 = /*#__PURE__*/styled.span(_templateObject3$H || (_templateObject3$H = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-family: 'Lato', 'Open Sans';\n font-size: 13px;\n font-style: normal;\n font-weight: 700;\n"])));
|
|
8251
|
-
var Container$
|
|
8307
|
+
var Container$15 = /*#__PURE__*/styled.div(_templateObject4$m || (_templateObject4$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px 12px;\n flex: 1 0 0;\n border-radius: 15px;\n background: #f8fafc;\n display: flex;\n flex-direction: column;\n gap: 15px;\n"])));
|
|
8252
8308
|
|
|
8253
|
-
var _templateObject$
|
|
8309
|
+
var _templateObject$1J, _templateObject2$1k;
|
|
8254
8310
|
// import { filterObject } from '../../../utils';
|
|
8255
8311
|
function ConfirmOrder() {
|
|
8256
8312
|
var _useCurrentAction = useCurrentAction(),
|
|
@@ -8427,7 +8483,7 @@ function ConfirmOrder() {
|
|
|
8427
8483
|
isSubmitDisabled: errorFound()
|
|
8428
8484
|
}, React.createElement(ContentContainer$4, null, React.createElement(Wrapper$j, null, React.createElement(CustomerInformation, null), React.createElement(SlotAndInstructions, null)), React.createElement(ProductTable$1, null), React.createElement(NotesTable, null)));
|
|
8429
8485
|
}
|
|
8430
|
-
var Wrapper$j = /*#__PURE__*/styled.div(_templateObject$
|
|
8486
|
+
var Wrapper$j = /*#__PURE__*/styled.div(_templateObject$1J || (_templateObject$1J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
|
|
8431
8487
|
var ContentContainer$4 = /*#__PURE__*/styled.div(_templateObject2$1k || (_templateObject2$1k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* display: flex; */\n padding: 15px 12px;\n flex: 1 0 0;\n border-radius: 15px;\n background: white;\n display: flex;\n flex-direction: column;\n gap: 15px;\n overflow: auto;\n min-height: 500px;\n overflow-x: hidden;\n max-height: 500px;\n scrollbar-width: thin;\n"])));
|
|
8432
8488
|
|
|
8433
8489
|
var _templateObject2$1l, _templateObject3$I, _templateObject4$n, _templateObject5$f, _templateObject6$9, _templateObject7$b, _templateObject8$6, _templateObject9$3, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13, _templateObject14$1, _templateObject15, _templateObject18, _templateObject19$1, _templateObject26;
|
|
@@ -8441,7 +8497,7 @@ var HoldRow = /*#__PURE__*/styled.div(_templateObject8$6 || (_templateObject8$6
|
|
|
8441
8497
|
var Label$e = /*#__PURE__*/styled.label(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #758588;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
|
|
8442
8498
|
var ContentContainer$5 = /*#__PURE__*/styled.div(_templateObject10$1 || (_templateObject10$1 = /*#__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"])));
|
|
8443
8499
|
var HoldContentContainer = /*#__PURE__*/styled.div(_templateObject11$1 || (_templateObject11$1 = /*#__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"])));
|
|
8444
|
-
var Container$
|
|
8500
|
+
var Container$16 = /*#__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"])));
|
|
8445
8501
|
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"])));
|
|
8446
8502
|
var ImageCircle = /*#__PURE__*/styled.div(_templateObject14$1 || (_templateObject14$1 = /*#__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"])));
|
|
8447
8503
|
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"])));
|
|
@@ -8614,8 +8670,9 @@ function HoldOrderModal() {
|
|
|
8614
8670
|
value: item == null ? void 0 : item.reason
|
|
8615
8671
|
};
|
|
8616
8672
|
});
|
|
8673
|
+
var dynamicUrl = selectedDate ? "orders/" + orderId + "/hold/?hold_reason=" + holdReason + "&hold_until=" + selectedDate : "orders/" + orderId + "/hold/?hold_reason=" + holdReason + "\n";
|
|
8617
8674
|
var _useApiHook = useApiHook({
|
|
8618
|
-
endpoint:
|
|
8675
|
+
endpoint: dynamicUrl,
|
|
8619
8676
|
method: 'POST',
|
|
8620
8677
|
performAction: false
|
|
8621
8678
|
}),
|
|
@@ -8677,7 +8734,7 @@ function HoldOrderModal() {
|
|
|
8677
8734
|
setPerformAction(true);
|
|
8678
8735
|
}
|
|
8679
8736
|
};
|
|
8680
|
-
var showSubmitBtn = holdReason !== undefined
|
|
8737
|
+
var showSubmitBtn = holdReason !== undefined;
|
|
8681
8738
|
return React.createElement(OrderActionModal, {
|
|
8682
8739
|
headerTitle: "Hold order",
|
|
8683
8740
|
onCloseHeader: onClose,
|
|
@@ -8687,8 +8744,7 @@ function HoldOrderModal() {
|
|
|
8687
8744
|
submitBtnTitle: "Save Details",
|
|
8688
8745
|
isSubmitDisabled: !showSubmitBtn
|
|
8689
8746
|
}, React.createElement(HoldContentContainer, null, React.createElement(SplitText, null, React.createElement(HoldRow, null, React.createElement(Label$h, {
|
|
8690
|
-
label: "
|
|
8691
|
-
required: true
|
|
8747
|
+
label: "Hold Until (leave blank for indefinite)"
|
|
8692
8748
|
}), React.createElement(HoldDatePickerWrap, null, React.createElement(DatePicker, {
|
|
8693
8749
|
needConfirm: true,
|
|
8694
8750
|
format: 'MMMM D, YYYY',
|
|
@@ -8856,7 +8912,7 @@ var GrowthImg = function GrowthImg() {
|
|
|
8856
8912
|
var FeedbackItem = function FeedbackItem(_ref) {
|
|
8857
8913
|
var Icon = _ref.icon,
|
|
8858
8914
|
question = _ref.question;
|
|
8859
|
-
return React.createElement(Row$4, null, React.createElement(Container$
|
|
8915
|
+
return React.createElement(Row$4, null, React.createElement(Container$16, null, React.createElement(ImageRow, null, React.createElement(ImageCircle, null, React.createElement(Icon, null)), React.createElement(StaticText, null, question)), React.createElement(CustomRating, {
|
|
8860
8916
|
showText: true
|
|
8861
8917
|
})));
|
|
8862
8918
|
};
|
|
@@ -8889,7 +8945,7 @@ function LogFeedback() {
|
|
|
8889
8945
|
})), React.createElement(SplitLayout, null, React.createElement(FeedbackItem, {
|
|
8890
8946
|
icon: GrowthImg,
|
|
8891
8947
|
question: 'How would you rate the overall performance during the delivery process?'
|
|
8892
|
-
}), React.createElement(Row$4, null, React.createElement(Container$
|
|
8948
|
+
}), React.createElement(Row$4, null, React.createElement(Container$16, null, React.createElement(StaticText, null, "Anything below 3 needs to be investigated"), React.createElement(StyledTextAreas, {
|
|
8893
8949
|
name: "note",
|
|
8894
8950
|
placeholder: "Write here..."
|
|
8895
8951
|
}))))));
|
|
@@ -9051,7 +9107,7 @@ function ChargeLog() {
|
|
|
9051
9107
|
})));
|
|
9052
9108
|
}
|
|
9053
9109
|
|
|
9054
|
-
var _templateObject$
|
|
9110
|
+
var _templateObject$1K;
|
|
9055
9111
|
var UnholdOrder = function UnholdOrder() {
|
|
9056
9112
|
var _useOrderId = useOrderId(),
|
|
9057
9113
|
orderId = _useOrderId[0];
|
|
@@ -9126,9 +9182,9 @@ var UnholdOrder = function UnholdOrder() {
|
|
|
9126
9182
|
})
|
|
9127
9183
|
});
|
|
9128
9184
|
};
|
|
9129
|
-
var CustomCancelAndCompleteAction = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject$
|
|
9185
|
+
var CustomCancelAndCompleteAction = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject$1K || (_templateObject$1K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
9130
9186
|
|
|
9131
|
-
var _templateObject$
|
|
9187
|
+
var _templateObject$1L, _templateObject2$1m;
|
|
9132
9188
|
function AssigneeDropdown() {
|
|
9133
9189
|
var handleSelectChange = function handleSelectChange() {
|
|
9134
9190
|
// alert('hello');
|
|
@@ -9150,7 +9206,7 @@ function AssigneeDropdown() {
|
|
|
9150
9206
|
}
|
|
9151
9207
|
}));
|
|
9152
9208
|
}
|
|
9153
|
-
var FormContainer$2 = /*#__PURE__*/styled.div(_templateObject$
|
|
9209
|
+
var FormContainer$2 = /*#__PURE__*/styled.div(_templateObject$1L || (_templateObject$1L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n width: 285px;\n"])));
|
|
9154
9210
|
var StyledAntSelect$3 = /*#__PURE__*/styled(AntSelect)(_templateObject2$1m || (_templateObject2$1m = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
9155
9211
|
|
|
9156
9212
|
var DatePickerIcon = function DatePickerIcon() {
|
|
@@ -9169,8 +9225,8 @@ var DatePickerIcon = function DatePickerIcon() {
|
|
|
9169
9225
|
}));
|
|
9170
9226
|
};
|
|
9171
9227
|
|
|
9172
|
-
var _templateObject$
|
|
9173
|
-
var ReferenceContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
9228
|
+
var _templateObject$1M, _templateObject2$1n, _templateObject3$J, _templateObject4$o, _templateObject8$7, _templateObject10$2, _templateObject11$2, _templateObject13$1, _templateObject14$2, _templateObject15$1, _templateObject16, _templateObject17, _templateObject19$2, _templateObject20$1;
|
|
9229
|
+
var ReferenceContainer = /*#__PURE__*/styled.div(_templateObject$1M || (_templateObject$1M = /*#__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"])));
|
|
9174
9230
|
var InnerContainer = /*#__PURE__*/styled.div(_templateObject2$1n || (_templateObject2$1n = /*#__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"])));
|
|
9175
9231
|
var MiniContainer = /*#__PURE__*/styled.div(_templateObject3$J || (_templateObject3$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 3px;\n flex: 1;\n"])));
|
|
9176
9232
|
var StyledText$1 = /*#__PURE__*/styled(TextArea)(_templateObject4$o || (_templateObject4$o = /*#__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"])));
|
|
@@ -9264,10 +9320,10 @@ function useFetchSingleReminderData() {
|
|
|
9264
9320
|
return res;
|
|
9265
9321
|
}
|
|
9266
9322
|
|
|
9267
|
-
var _templateObject$
|
|
9323
|
+
var _templateObject$1N, _templateObject2$1o, _templateObject3$K, _templateObject4$p;
|
|
9268
9324
|
function StatusIndicator(props) {
|
|
9269
9325
|
var statusColor = getStatusColor(props.status);
|
|
9270
|
-
return React.createElement(Container$
|
|
9326
|
+
return React.createElement(Container$17, null, React.createElement(StatusCircleContainer, {
|
|
9271
9327
|
status: props.status
|
|
9272
9328
|
}, React.createElement(StatusCircle, {
|
|
9273
9329
|
color: statusColor
|
|
@@ -9275,13 +9331,13 @@ function StatusIndicator(props) {
|
|
|
9275
9331
|
status: props.status
|
|
9276
9332
|
}, props.text));
|
|
9277
9333
|
}
|
|
9278
|
-
var StatusCircleContainer = /*#__PURE__*/styled.span(_templateObject$
|
|
9334
|
+
var StatusCircleContainer = /*#__PURE__*/styled.span(_templateObject$1N || (_templateObject$1N = /*#__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) {
|
|
9279
9335
|
return props.status === 'SD' ? '#30fe43' : props.status === 'AD' ? '#E95252' : 'transparent';
|
|
9280
9336
|
});
|
|
9281
9337
|
var StatusCircle = /*#__PURE__*/styled.span(_templateObject2$1o || (_templateObject2$1o = /*#__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) {
|
|
9282
9338
|
return props.color;
|
|
9283
9339
|
});
|
|
9284
|
-
var Container$
|
|
9340
|
+
var Container$17 = /*#__PURE__*/styled.div(_templateObject3$K || (_templateObject3$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 10px;\n height: 22px;\n"])));
|
|
9285
9341
|
var Text$7 = /*#__PURE__*/styled.span(_templateObject4$p || (_templateObject4$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 13px;\n font-weight: normal;\n text-transform: capitalize;\n font-weight: 500;\n color: ", ";\n"])), function (props) {
|
|
9286
9342
|
return props.status === 'SD' ? '#57DB7A' : props.status === 'AD' ? '#E95252' : 'transparent';
|
|
9287
9343
|
});
|
|
@@ -9444,7 +9500,7 @@ function useFetchReminders() {
|
|
|
9444
9500
|
return perform;
|
|
9445
9501
|
}
|
|
9446
9502
|
|
|
9447
|
-
var _templateObject$
|
|
9503
|
+
var _templateObject$1O, _templateObject2$1p, _templateObject3$L, _templateObject4$q, _templateObject5$g, _templateObject6$a, _templateObject7$c;
|
|
9448
9504
|
var ViewReminderModal = function ViewReminderModal() {
|
|
9449
9505
|
var _reminderData$reminde, _reminderData$order_d, _reminderData$order_d2, _reminderData$reminde2, _reminderData$reminde3, _reminderData$reminde4, _reminderData$reminde5;
|
|
9450
9506
|
var _useCurrentAction = useCurrentAction(),
|
|
@@ -9600,7 +9656,7 @@ var ViewReminderModal = function ViewReminderModal() {
|
|
|
9600
9656
|
onChange: onChangeDetails
|
|
9601
9657
|
}))))));
|
|
9602
9658
|
};
|
|
9603
|
-
var StyledWrapper = /*#__PURE__*/styled.div(_templateObject$
|
|
9659
|
+
var StyledWrapper = /*#__PURE__*/styled.div(_templateObject$1O || (_templateObject$1O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 6px 10px;\n align-items: center;\n gap: 5px;\n border-radius: 30px;\n background: #fff;\n"])));
|
|
9604
9660
|
var StyledLabel$1 = /*#__PURE__*/styled.label(_templateObject2$1p || (_templateObject2$1p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n"])));
|
|
9605
9661
|
var StyledSpan = /*#__PURE__*/styled.span(_templateObject3$L || (_templateObject3$L = /*#__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"])));
|
|
9606
9662
|
var StyledCheckbox = /*#__PURE__*/styled.div(_templateObject4$q || (_templateObject4$q = /*#__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"])));
|
|
@@ -9608,9 +9664,9 @@ var OuterDiv = /*#__PURE__*/styled.div(_templateObject5$g || (_templateObject5$g
|
|
|
9608
9664
|
var RoundCheckbox = /*#__PURE__*/styled.span(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
9609
9665
|
var LabelText = /*#__PURE__*/styled.span(_templateObject7$c || (_templateObject7$c = /*#__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"])));
|
|
9610
9666
|
|
|
9611
|
-
var _templateObject$
|
|
9667
|
+
var _templateObject$1P, _templateObject3$M, _templateObject5$h, _templateObject7$d, _templateObject8$8, _templateObject9$4;
|
|
9612
9668
|
// Shared styles and components
|
|
9613
|
-
var Wrapper$k = /*#__PURE__*/styled.div(_templateObject$
|
|
9669
|
+
var Wrapper$k = /*#__PURE__*/styled.div(_templateObject$1P || (_templateObject$1P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
|
|
9614
9670
|
var SplitContainer = /*#__PURE__*/styled.div(_templateObject3$M || (_templateObject3$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* width: 95%; */\n min-width: 25vw;\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
|
|
9615
9671
|
var Label$f = /*#__PURE__*/styled.label(_templateObject5$h || (_templateObject5$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
|
|
9616
9672
|
var ContentContainer$6 = /*#__PURE__*/styled.div(_templateObject7$d || (_templateObject7$d = /*#__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"])));
|
|
@@ -9629,7 +9685,7 @@ var FormRow = function FormRow(_ref) {
|
|
|
9629
9685
|
}, " * ")), children);
|
|
9630
9686
|
};
|
|
9631
9687
|
|
|
9632
|
-
var _templateObject$
|
|
9688
|
+
var _templateObject$1Q, _templateObject2$1q, _templateObject3$N, _templateObject4$r, _templateObject5$i;
|
|
9633
9689
|
dayjs.extend(utc);
|
|
9634
9690
|
dayjs.extend(isValid);
|
|
9635
9691
|
function CreateReminderModal() {
|
|
@@ -9852,7 +9908,7 @@ function CreateReminderModal() {
|
|
|
9852
9908
|
onChange: handleChange
|
|
9853
9909
|
})));
|
|
9854
9910
|
}
|
|
9855
|
-
var StyleContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
9911
|
+
var StyleContainer = /*#__PURE__*/styled.div(_templateObject$1Q || (_templateObject$1Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background: var(--Flowkit-White, #fff);\n"])));
|
|
9856
9912
|
var Label$g = /*#__PURE__*/styled.label(_templateObject2$1q || (_templateObject2$1q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
|
|
9857
9913
|
var StyledAntSelect$4 = /*#__PURE__*/styled(Select)(_templateObject3$N || (_templateObject3$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n width: 20vw;\n border-radius: 22px;\n }\n"])));
|
|
9858
9914
|
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"])));
|
|
@@ -10026,7 +10082,7 @@ function useFetchUnresolvedTasks() {
|
|
|
10026
10082
|
return perform;
|
|
10027
10083
|
}
|
|
10028
10084
|
|
|
10029
|
-
var _templateObject$
|
|
10085
|
+
var _templateObject$1R;
|
|
10030
10086
|
function TaskReminderModal() {
|
|
10031
10087
|
var createReminderAPI = useCreateReminder();
|
|
10032
10088
|
var _useCurrentAction = useCurrentAction(),
|
|
@@ -10125,9 +10181,9 @@ function TaskReminderModal() {
|
|
|
10125
10181
|
isSubmitDisabled: isSubmitDisabled()
|
|
10126
10182
|
}, React.createElement(ContentContainer$6, null, React.createElement(CreateReminderModal, null))));
|
|
10127
10183
|
}
|
|
10128
|
-
var OrderModal = /*#__PURE__*/styled(OrderActionModal)(_templateObject$
|
|
10184
|
+
var OrderModal = /*#__PURE__*/styled(OrderActionModal)(_templateObject$1R || (_templateObject$1R = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 70%;\n"])));
|
|
10129
10185
|
|
|
10130
|
-
var _templateObject$
|
|
10186
|
+
var _templateObject$1S, _templateObject2$1r;
|
|
10131
10187
|
function OrderLock() {
|
|
10132
10188
|
var _useCurrentAction = useCurrentAction(),
|
|
10133
10189
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -10180,7 +10236,7 @@ function OrderLock() {
|
|
|
10180
10236
|
})
|
|
10181
10237
|
});
|
|
10182
10238
|
}
|
|
10183
|
-
var CustomCancelationModal = /*#__PURE__*/styled(CancelationModal)(_templateObject$
|
|
10239
|
+
var CustomCancelationModal = /*#__PURE__*/styled(CancelationModal)(_templateObject$1S || (_templateObject$1S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: rgba(0, 0, 0, 0.8);\n"])));
|
|
10184
10240
|
var CustomCancelAndCompleteAction$1 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$1r || (_templateObject2$1r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
10185
10241
|
|
|
10186
10242
|
function useUpdateFlag() {
|
|
@@ -10251,7 +10307,7 @@ function useUpdateFlag() {
|
|
|
10251
10307
|
return create;
|
|
10252
10308
|
}
|
|
10253
10309
|
|
|
10254
|
-
var _templateObject$
|
|
10310
|
+
var _templateObject$1T, _templateObject2$1s, _templateObject3$O, _templateObject4$s, _templateObject5$j, _templateObject6$b;
|
|
10255
10311
|
function HeaderSection() {
|
|
10256
10312
|
var _useSingleFlagData = useSingleFlagData(),
|
|
10257
10313
|
dataArray = _useSingleFlagData[0];
|
|
@@ -10321,14 +10377,14 @@ function HeaderSection() {
|
|
|
10321
10377
|
})
|
|
10322
10378
|
})));
|
|
10323
10379
|
}
|
|
10324
|
-
var Header$1 = /*#__PURE__*/styled.div(_templateObject$
|
|
10380
|
+
var Header$1 = /*#__PURE__*/styled.div(_templateObject$1T || (_templateObject$1T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n"])));
|
|
10325
10381
|
var CustomCancelAndCompleteAction$2 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$1s || (_templateObject2$1s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
10326
10382
|
var ResolveButton = /*#__PURE__*/styled.button(_templateObject3$O || (_templateObject3$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-size: 14px;\n font-weight: 600;\n background: transparent;\n border: none;\n cursor: pointer;\n"])));
|
|
10327
10383
|
var Title$7 = /*#__PURE__*/styled.span(_templateObject4$s || (_templateObject4$s = /*#__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"])));
|
|
10328
10384
|
var StyledOverlay = /*#__PURE__*/styled.div(_templateObject5$j || (_templateObject5$j = /*#__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"])));
|
|
10329
10385
|
var CrossWrapper = /*#__PURE__*/styled.div(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
|
|
10330
10386
|
|
|
10331
|
-
var _templateObject$
|
|
10387
|
+
var _templateObject$1U, _templateObject2$1t;
|
|
10332
10388
|
function TextSection() {
|
|
10333
10389
|
var _useSinglePayload = useSinglePayload(),
|
|
10334
10390
|
payload = _useSinglePayload[0],
|
|
@@ -10346,10 +10402,10 @@ function TextSection() {
|
|
|
10346
10402
|
onChange: onChangeDetails
|
|
10347
10403
|
}));
|
|
10348
10404
|
}
|
|
10349
|
-
var TextField = /*#__PURE__*/styled(TextArea)(_templateObject$
|
|
10405
|
+
var TextField = /*#__PURE__*/styled(TextArea)(_templateObject$1U || (_templateObject$1U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 97% !important;\n"])));
|
|
10350
10406
|
var Text$8 = /*#__PURE__*/styled.div(_templateObject2$1t || (_templateObject2$1t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: grid;\n margin-top: 2%;\n"])));
|
|
10351
10407
|
|
|
10352
|
-
var _templateObject$
|
|
10408
|
+
var _templateObject$1V, _templateObject2$1u;
|
|
10353
10409
|
function ButtonsSection() {
|
|
10354
10410
|
var _useSinglePayload = useSinglePayload(),
|
|
10355
10411
|
payload = _useSinglePayload[0],
|
|
@@ -10440,10 +10496,10 @@ function ButtonsSection() {
|
|
|
10440
10496
|
status: "SD"
|
|
10441
10497
|
}))));
|
|
10442
10498
|
}
|
|
10443
|
-
var Buttons = /*#__PURE__*/styled.div(_templateObject$
|
|
10499
|
+
var Buttons = /*#__PURE__*/styled.div(_templateObject$1V || (_templateObject$1V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
|
|
10444
10500
|
var Flex = /*#__PURE__*/styled.div(_templateObject2$1u || (_templateObject2$1u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
|
|
10445
10501
|
|
|
10446
|
-
var _templateObject$
|
|
10502
|
+
var _templateObject$1W, _templateObject2$1v, _templateObject3$P, _templateObject4$t, _templateObject5$k, _templateObject6$c;
|
|
10447
10503
|
function ActionSection() {
|
|
10448
10504
|
var _useCurrentAction = useCurrentAction(),
|
|
10449
10505
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -10529,14 +10585,14 @@ function RadioButtonsSection() {
|
|
|
10529
10585
|
required: false
|
|
10530
10586
|
}));
|
|
10531
10587
|
}
|
|
10532
|
-
var ButtonWrapper = /*#__PURE__*/styled.div(_templateObject$
|
|
10588
|
+
var ButtonWrapper = /*#__PURE__*/styled.div(_templateObject$1W || (_templateObject$1W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
|
|
10533
10589
|
var SaveButton = /*#__PURE__*/styled(Button)(_templateObject2$1v || (_templateObject2$1v = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
10534
10590
|
var CancelButton = /*#__PURE__*/styled(Button)(_templateObject3$P || (_templateObject3$P = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
10535
10591
|
var DropDowns = /*#__PURE__*/styled.div(_templateObject4$t || (_templateObject4$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
|
|
10536
10592
|
var TooltipContent = /*#__PURE__*/styled.div(_templateObject5$k || (_templateObject5$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #333;\n color: #fff;\n padding: 5px 10px;\n border-radius: 5px;\n"])));
|
|
10537
10593
|
var Wrapper$l = /*#__PURE__*/styled.div(_templateObject6$c || (_templateObject6$c = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
10538
10594
|
|
|
10539
|
-
var _templateObject$
|
|
10595
|
+
var _templateObject$1X, _templateObject2$1w, _templateObject3$Q, _templateObject4$u, _templateObject5$l;
|
|
10540
10596
|
function DetailSection() {
|
|
10541
10597
|
var _dataArray$order_data, _dataArray$order_data2;
|
|
10542
10598
|
var _useSingleFlagData = useSingleFlagData(),
|
|
@@ -10548,7 +10604,7 @@ function DetailSection() {
|
|
|
10548
10604
|
label: "Order"
|
|
10549
10605
|
}), React.createElement(Order, null, orderColumnData)));
|
|
10550
10606
|
}
|
|
10551
|
-
var Detail = /*#__PURE__*/styled.div(_templateObject$
|
|
10607
|
+
var Detail = /*#__PURE__*/styled.div(_templateObject$1X || (_templateObject$1X = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 40%;\n flex-wrap: wrap;\n"])));
|
|
10552
10608
|
var Flex$1 = /*#__PURE__*/styled.div(_templateObject2$1w || (_templateObject2$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
|
|
10553
10609
|
var Ref = /*#__PURE__*/styled.div(_templateObject3$Q || (_templateObject3$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n font-family: 'Lato', sans-serif;\n"])));
|
|
10554
10610
|
var Order = /*#__PURE__*/styled.div(_templateObject4$u || (_templateObject4$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n text-decoration: underline;\n font-family: 'Lato', sans-serif;\n"])));
|
|
@@ -10634,7 +10690,7 @@ function useFetchSingleFlagsData() {
|
|
|
10634
10690
|
return res;
|
|
10635
10691
|
}
|
|
10636
10692
|
|
|
10637
|
-
var _templateObject$
|
|
10693
|
+
var _templateObject$1Y, _templateObject2$1x, _templateObject3$R;
|
|
10638
10694
|
function ViewFlag() {
|
|
10639
10695
|
var _useSingleFlagData = useSingleFlagData(),
|
|
10640
10696
|
dataArray = _useSingleFlagData[0],
|
|
@@ -10731,11 +10787,11 @@ function ViewFlag() {
|
|
|
10731
10787
|
}, [dataArray]);
|
|
10732
10788
|
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)))));
|
|
10733
10789
|
}
|
|
10734
|
-
var SectionsContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
10790
|
+
var SectionsContainer = /*#__PURE__*/styled.div(_templateObject$1Y || (_templateObject$1Y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-top: 6%;\n"])));
|
|
10735
10791
|
var BackgroundModals = /*#__PURE__*/styled(BackgroundModal$1)(_templateObject2$1x || (_templateObject2$1x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(1px);\n"])));
|
|
10736
10792
|
var MainContainer$a = /*#__PURE__*/styled.div(_templateObject3$R || (_templateObject3$R = /*#__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"])));
|
|
10737
10793
|
|
|
10738
|
-
var _templateObject$
|
|
10794
|
+
var _templateObject$1Z;
|
|
10739
10795
|
function ReleaseOrder() {
|
|
10740
10796
|
var _useOrderId = useOrderId(),
|
|
10741
10797
|
orderId = _useOrderId[0];
|
|
@@ -10814,9 +10870,9 @@ function ReleaseOrder() {
|
|
|
10814
10870
|
// position: absolute;
|
|
10815
10871
|
// transform: translate3d(57px, 308px, 0px) scaleX(1);
|
|
10816
10872
|
// `;
|
|
10817
|
-
var CustomCancelAndCompleteAction$3 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject$
|
|
10873
|
+
var CustomCancelAndCompleteAction$3 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject$1Z || (_templateObject$1Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
10818
10874
|
|
|
10819
|
-
var _templateObject$
|
|
10875
|
+
var _templateObject$1_;
|
|
10820
10876
|
function OrderActions() {
|
|
10821
10877
|
var _useCurrentAction = useCurrentAction(),
|
|
10822
10878
|
currentAction = _useCurrentAction[0];
|
|
@@ -10866,9 +10922,9 @@ function OrderActions() {
|
|
|
10866
10922
|
return null;
|
|
10867
10923
|
}
|
|
10868
10924
|
};
|
|
10869
|
-
return React.createElement(Container$
|
|
10925
|
+
return React.createElement(Container$18, null, renderContent());
|
|
10870
10926
|
}
|
|
10871
|
-
var Container$
|
|
10927
|
+
var Container$18 = /*#__PURE__*/styled.div(_templateObject$1_ || (_templateObject$1_ = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
10872
10928
|
|
|
10873
10929
|
function useSystemLogs() {
|
|
10874
10930
|
var ssoToken = getCookie('id_token');
|
|
@@ -10960,7 +11016,7 @@ function useSystemLogs() {
|
|
|
10960
11016
|
return perform;
|
|
10961
11017
|
}
|
|
10962
11018
|
|
|
10963
|
-
var _templateObject$
|
|
11019
|
+
var _templateObject$1$, _templateObject2$1y;
|
|
10964
11020
|
var Details = function Details() {
|
|
10965
11021
|
// const [orderDetails] = useOrderDetails();
|
|
10966
11022
|
var _useCustomerInfo = useCustomerInfo(),
|
|
@@ -10969,10 +11025,10 @@ var Details = function Details() {
|
|
|
10969
11025
|
var postcodeShow = (customerInfo == null ? void 0 : customerInfo.postcode) || '';
|
|
10970
11026
|
return React.createElement(DetailsContainer, null, React.createElement(Typo, null, "CUSTOMER RETURN - ", recipient, " , ", postcodeShow));
|
|
10971
11027
|
};
|
|
10972
|
-
var DetailsContainer = /*#__PURE__*/styled.div(_templateObject$
|
|
11028
|
+
var DetailsContainer = /*#__PURE__*/styled.div(_templateObject$1$ || (_templateObject$1$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 10px;\n > svg {\n transform: scale(0.6);\n }\n"])));
|
|
10973
11029
|
var Typo = /*#__PURE__*/styled.div(_templateObject2$1y || (_templateObject2$1y = /*#__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"])));
|
|
10974
11030
|
|
|
10975
|
-
var _templateObject$
|
|
11031
|
+
var _templateObject$20;
|
|
10976
11032
|
function Options() {
|
|
10977
11033
|
var _useCurrentAction = useCurrentAction(),
|
|
10978
11034
|
setCurrentAction = _useCurrentAction[1];
|
|
@@ -11038,7 +11094,7 @@ function Options() {
|
|
|
11038
11094
|
value: "OPTIONS"
|
|
11039
11095
|
}));
|
|
11040
11096
|
}
|
|
11041
|
-
var Option = /*#__PURE__*/styled.div(_templateObject$
|
|
11097
|
+
var Option = /*#__PURE__*/styled.div(_templateObject$20 || (_templateObject$20 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
11042
11098
|
|
|
11043
11099
|
function BjsMenu() {
|
|
11044
11100
|
var _orderStatus$;
|
|
@@ -11095,7 +11151,7 @@ function BjsMenu() {
|
|
|
11095
11151
|
});
|
|
11096
11152
|
}
|
|
11097
11153
|
|
|
11098
|
-
var _templateObject$
|
|
11154
|
+
var _templateObject$21;
|
|
11099
11155
|
function Print() {
|
|
11100
11156
|
var _useOrderDetails = useOrderDetails(),
|
|
11101
11157
|
orderDetails = _useOrderDetails[0];
|
|
@@ -11144,7 +11200,7 @@ function Print() {
|
|
|
11144
11200
|
window.open(url, '_blank');
|
|
11145
11201
|
}
|
|
11146
11202
|
};
|
|
11147
|
-
return React.createElement(Container$
|
|
11203
|
+
return React.createElement(Container$19, null, React.createElement(SelectDropdown, {
|
|
11148
11204
|
placeholder: "PRINT",
|
|
11149
11205
|
options: PrintMenu,
|
|
11150
11206
|
value: "PRINT",
|
|
@@ -11180,29 +11236,29 @@ function Print() {
|
|
|
11180
11236
|
})
|
|
11181
11237
|
}));
|
|
11182
11238
|
}
|
|
11183
|
-
var Container$
|
|
11239
|
+
var Container$19 = /*#__PURE__*/styled.div(_templateObject$21 || (_templateObject$21 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
11184
11240
|
|
|
11185
|
-
var _templateObject$
|
|
11241
|
+
var _templateObject$22;
|
|
11186
11242
|
// components
|
|
11187
11243
|
function DropDowns$1() {
|
|
11188
11244
|
return React.createElement(React.Fragment, null, React.createElement(DashBoardWrapper$2, null, React.createElement(BjsMenu, null), React.createElement(Options, null), React.createElement(Print, null)));
|
|
11189
11245
|
}
|
|
11190
|
-
var DashBoardWrapper$2 = /*#__PURE__*/styled.section(_templateObject$
|
|
11246
|
+
var DashBoardWrapper$2 = /*#__PURE__*/styled.section(_templateObject$22 || (_templateObject$22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0 5px;\n display: flex;\n align-self: center;\n gap: 10px;\n"])));
|
|
11191
11247
|
|
|
11192
|
-
var _templateObject$
|
|
11248
|
+
var _templateObject$23;
|
|
11193
11249
|
// import Actions from './actions/Actions';
|
|
11194
11250
|
var ActionsMenu = function ActionsMenu() {
|
|
11195
11251
|
return React.createElement(Flex$2, null, React.createElement(DropDowns$1, null));
|
|
11196
11252
|
};
|
|
11197
|
-
var Flex$2 = /*#__PURE__*/styled.div(_templateObject$
|
|
11253
|
+
var Flex$2 = /*#__PURE__*/styled.div(_templateObject$23 || (_templateObject$23 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n display: flex;\n height: 34px;\n padding: 1px;\n align-items: flex-start;\n border-radius: 20px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n background: #f0f2f2;\n cursor: pointer;\n"])));
|
|
11198
11254
|
|
|
11199
|
-
var _templateObject$
|
|
11255
|
+
var _templateObject$24;
|
|
11200
11256
|
var DetailsFilters = function DetailsFilters() {
|
|
11201
11257
|
return React.createElement(Flex$3, null, React.createElement(Details, null), React.createElement(ActionsMenu, null));
|
|
11202
11258
|
};
|
|
11203
|
-
var Flex$3 = /*#__PURE__*/styled.div(_templateObject$
|
|
11259
|
+
var Flex$3 = /*#__PURE__*/styled.div(_templateObject$24 || (_templateObject$24 = /*#__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: -132px;\n justify-content: space-between;\n"])));
|
|
11204
11260
|
|
|
11205
|
-
var _templateObject$
|
|
11261
|
+
var _templateObject$25, _templateObject2$1z, _templateObject3$S, _templateObject4$v;
|
|
11206
11262
|
function OrderView() {
|
|
11207
11263
|
notification.config({
|
|
11208
11264
|
top: 150
|
|
@@ -11247,7 +11303,8 @@ function OrderView() {
|
|
|
11247
11303
|
var _useLiveRecalling = useLiveRecalling(),
|
|
11248
11304
|
liveRecalling = _useLiveRecalling[0];
|
|
11249
11305
|
var systemLogsData = useSystemLogs();
|
|
11250
|
-
|
|
11306
|
+
var _useVisibilityData = useVisibilityData(),
|
|
11307
|
+
setVisibilityData = _useVisibilityData[1];
|
|
11251
11308
|
// query param
|
|
11252
11309
|
var location = useLocation();
|
|
11253
11310
|
var _useState2 = useState([]),
|
|
@@ -11337,13 +11394,12 @@ function OrderView() {
|
|
|
11337
11394
|
useEffect(function () {
|
|
11338
11395
|
setLoading(staticDataLoading);
|
|
11339
11396
|
if (fetchedStaticData && fetchedStaticData.data) {
|
|
11397
|
+
var _fetchedStaticData$da;
|
|
11340
11398
|
var result = fetchedStaticData == null ? void 0 : fetchedStaticData.data;
|
|
11341
11399
|
setOrderStaticData(result[0]);
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
// )
|
|
11346
|
-
// );
|
|
11400
|
+
setVisibilityData(fetchedStaticData == null || (_fetchedStaticData$da = fetchedStaticData.data) == null ? void 0 : _fetchedStaticData$da.flatMap(function (i) {
|
|
11401
|
+
return i == null ? void 0 : i.resource_visibility_type;
|
|
11402
|
+
}));
|
|
11347
11403
|
}
|
|
11348
11404
|
}, [staticDataLoading]);
|
|
11349
11405
|
useEffect(function () {
|
|
@@ -11515,7 +11571,7 @@ function OrderView() {
|
|
|
11515
11571
|
console.log(orderId, 'orderId');
|
|
11516
11572
|
return React.createElement(MainContainer$b, null, React.createElement(GeneralHeader, null), React.createElement(DetailsFilters, 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(SystemLogs, null))), React.createElement(OrderActions, null));
|
|
11517
11573
|
}
|
|
11518
|
-
var MainContainer$b = /*#__PURE__*/styled.div(_templateObject$
|
|
11574
|
+
var MainContainer$b = /*#__PURE__*/styled.div(_templateObject$25 || (_templateObject$25 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding-bottom: 30px;\n"])));
|
|
11519
11575
|
var SplitLayout$1 = /*#__PURE__*/styled.div(_templateObject2$1z || (_templateObject2$1z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n @media (max-width: 1024px) {\n display: contents;\n }\n"])));
|
|
11520
11576
|
var NotesContainer = /*#__PURE__*/styled.div(_templateObject3$S || (_templateObject3$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n"])));
|
|
11521
11577
|
var TablesContainer = /*#__PURE__*/styled.div(_templateObject4$v || (_templateObject4$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 15px;\n"])));
|
|
@@ -11523,7 +11579,7 @@ var TablesContainer = /*#__PURE__*/styled.div(_templateObject4$v || (_templateOb
|
|
|
11523
11579
|
var _templateObject2$1A;
|
|
11524
11580
|
var StyledBulkItem = /*#__PURE__*/styled.div(_templateObject2$1A || (_templateObject2$1A = /*#__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"])));
|
|
11525
11581
|
|
|
11526
|
-
var _templateObject$
|
|
11582
|
+
var _templateObject$26, _templateObject2$1B;
|
|
11527
11583
|
var SearchType = function SearchType() {
|
|
11528
11584
|
var _useState = useState(''),
|
|
11529
11585
|
searchText = _useState[0],
|
|
@@ -11538,7 +11594,7 @@ var SearchType = function SearchType() {
|
|
|
11538
11594
|
onChange: handleInputChange
|
|
11539
11595
|
}));
|
|
11540
11596
|
};
|
|
11541
|
-
var Search = /*#__PURE__*/styled.div(_templateObject$
|
|
11597
|
+
var Search = /*#__PURE__*/styled.div(_templateObject$26 || (_templateObject$26 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n svg {\n position: absolute;\n left: 12px;\n top: 50%;\n transform: translateY(-50%);\n }\n"])));
|
|
11542
11598
|
var SearchInput = /*#__PURE__*/styled.input(_templateObject2$1B || (_templateObject2$1B = /*#__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"])));
|
|
11543
11599
|
|
|
11544
11600
|
var BulkFilter = function BulkFilter() {
|
|
@@ -11886,7 +11942,7 @@ var overviewfiltersReducerAtom = /*#__PURE__*/atom(function (get) {
|
|
|
11886
11942
|
return set(filtersStateAtom$2, filterReducer$2(get(filtersStateAtom$2), action));
|
|
11887
11943
|
});
|
|
11888
11944
|
|
|
11889
|
-
var _templateObject$
|
|
11945
|
+
var _templateObject$27, _templateObject2$1C, _templateObject3$T;
|
|
11890
11946
|
var _excluded$6 = ["count"];
|
|
11891
11947
|
function ReturnMainTable() {
|
|
11892
11948
|
var _useAtom = useAtom(overviewfiltersReducerAtom),
|
|
@@ -11957,7 +12013,7 @@ function ReturnMainTable() {
|
|
|
11957
12013
|
className: " " + (isScrolled ? 'stickyTableHead' : '')
|
|
11958
12014
|
}, React.createElement("div", {
|
|
11959
12015
|
className: "Tableconatiner"
|
|
11960
|
-
}, React.createElement(HeaderFilter, null), React.createElement(Container$
|
|
12016
|
+
}, React.createElement(HeaderFilter, null), React.createElement(Container$1a, null, React.createElement(Row$7, null, React.createElement(Text, null, "Client Return"), customerId ? React.createElement(ReturnFilter, null) : React.createElement(Filters, null)), React.createElement(ReturnTable$1, null)), total > 0 && React.createElement(Pagination, {
|
|
11961
12017
|
currentPage: page,
|
|
11962
12018
|
totalItems: total,
|
|
11963
12019
|
itemsPerPage: itemsPerPage,
|
|
@@ -11965,8 +12021,8 @@ function ReturnMainTable() {
|
|
|
11965
12021
|
onItemsPerPageChange: handleItemsPerPageChange
|
|
11966
12022
|
}))));
|
|
11967
12023
|
}
|
|
11968
|
-
var Row$7 = /*#__PURE__*/styled.div(_templateObject$
|
|
11969
|
-
var Container$
|
|
12024
|
+
var Row$7 = /*#__PURE__*/styled.div(_templateObject$27 || (_templateObject$27 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
|
|
12025
|
+
var Container$1a = /*#__PURE__*/styled.div(_templateObject2$1C || (_templateObject2$1C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n top: -46px;\n"])));
|
|
11970
12026
|
var DashBoardWrapper$3 = /*#__PURE__*/styled.section(_templateObject3$T || (_templateObject3$T = /*#__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"])));
|
|
11971
12027
|
|
|
11972
12028
|
var OrderViewQueryHandler = function OrderViewQueryHandler() {
|