@mseva/digit-ui-module-challangeneration 1.0.29 → 1.0.30
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +205 -604
- package/dist/index.modern.js.map +1 -1
- package/package.json +39 -39
package/dist/index.modern.js
CHANGED
|
@@ -7315,11 +7315,7 @@ const OwnerForm1 = _props => {
|
|
|
7315
7315
|
style: isMobile ? {} : {
|
|
7316
7316
|
marginTop: "-50px"
|
|
7317
7317
|
}
|
|
7318
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7319
|
-
style: {
|
|
7320
|
-
marginBottom: "16px"
|
|
7321
|
-
}
|
|
7322
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabelError, {
|
|
7318
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabelError, {
|
|
7323
7319
|
style: errorStyle
|
|
7324
7320
|
}, localFormState.touched.mobileNumber ? errors === null || errors === void 0 ? void 0 : (_errors$mobileNumber = errors.mobileNumber) === null || _errors$mobileNumber === void 0 ? void 0 : _errors$mobileNumber.message : ""), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
7325
7321
|
className: "card-label-smaller"
|
|
@@ -7454,12 +7450,7 @@ const OwnerForm1 = _props => {
|
|
|
7454
7450
|
t: t
|
|
7455
7451
|
})
|
|
7456
7452
|
})))), /*#__PURE__*/React.createElement("hr", {
|
|
7457
|
-
|
|
7458
|
-
width: "100%",
|
|
7459
|
-
border: "1px solid #D6D5D4",
|
|
7460
|
-
marginTop: "50px",
|
|
7461
|
-
marginBottom: "40px"
|
|
7462
|
-
}
|
|
7453
|
+
className: "challan-hr-linebreak"
|
|
7463
7454
|
}));
|
|
7464
7455
|
};
|
|
7465
7456
|
|
|
@@ -7930,11 +7921,7 @@ const OwnerForm1$2 = _props => {
|
|
|
7930
7921
|
style: isMobile ? {} : {
|
|
7931
7922
|
marginTop: "-50px"
|
|
7932
7923
|
}
|
|
7933
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7934
|
-
style: {
|
|
7935
|
-
marginBottom: "16px"
|
|
7936
|
-
}
|
|
7937
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSectionHeader, null, t("SERVICEDETAILS")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
7924
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSectionHeader, null, t("SERVICEDETAILS")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
7938
7925
|
className: "card-label-smaller"
|
|
7939
7926
|
}, `${t("UC_CITY_LABEL")} * `), /*#__PURE__*/React.createElement(Controller, {
|
|
7940
7927
|
name: "city",
|
|
@@ -9920,18 +9907,12 @@ const MyChallanResult = ({
|
|
|
9920
9907
|
history.push(`/digit-ui/citizen/payment/collect/Challan_Generation/${id}/${tenantId}?tenantId=${tenantId}`);
|
|
9921
9908
|
};
|
|
9922
9909
|
return /*#__PURE__*/React.createElement("div", {
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
}
|
|
9926
|
-
}, /*#__PURE__*/React.createElement("div", null, header && /*#__PURE__*/React.createElement(Header, {
|
|
9927
|
-
style: {
|
|
9928
|
-
marginLeft: "8px"
|
|
9929
|
-
}
|
|
9930
|
-
}, t(header), " (", getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$chall = getChallanData.challans) === null || _getChallanData$chall === void 0 ? void 0 : _getChallanData$chall.length, ")"), getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$chall2 = getChallanData.challans) === null || _getChallanData$chall2 === void 0 ? void 0 : _getChallanData$chall2.map((bill, index) => {
|
|
9910
|
+
className: "mychallan-custom"
|
|
9911
|
+
}, /*#__PURE__*/React.createElement("div", null, header && /*#__PURE__*/React.createElement(Header, null, t(header), " (", getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$chall = getChallanData.challans) === null || _getChallanData$chall === void 0 ? void 0 : _getChallanData$chall.length, ")"), getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$chall2 = getChallanData.challans) === null || _getChallanData$chall2 === void 0 ? void 0 : _getChallanData$chall2.map((bill, index) => {
|
|
9931
9912
|
var _bill$amount, _bill$amount$, _bill$citizen;
|
|
9932
9913
|
const checkAmount = Math.max((bill === null || bill === void 0 ? void 0 : (_bill$amount = bill.amount) === null || _bill$amount === void 0 ? void 0 : (_bill$amount$ = _bill$amount[0]) === null || _bill$amount$ === void 0 ? void 0 : _bill$amount$.amount) || 0, (bill === null || bill === void 0 ? void 0 : bill.challanAmount) || 0);
|
|
9933
|
-
const total = checkAmount
|
|
9934
|
-
const waiver = (bill === null || bill === void 0 ? void 0 : bill.feeWaiver)
|
|
9914
|
+
const total = checkAmount || 0;
|
|
9915
|
+
const waiver = (bill === null || bill === void 0 ? void 0 : bill.feeWaiver) || 0;
|
|
9935
9916
|
const finalAmount = total - waiver;
|
|
9936
9917
|
return /*#__PURE__*/React.createElement(Card, {
|
|
9937
9918
|
key: index
|
|
@@ -9958,15 +9939,9 @@ const MyChallanResult = ({
|
|
|
9958
9939
|
onSubmit: () => handleMakePayment(bill === null || bill === void 0 ? void 0 : bill.challanNo)
|
|
9959
9940
|
})));
|
|
9960
9941
|
}), (getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$chall3 = getChallanData.challans) === null || _getChallanData$chall3 === void 0 ? void 0 : _getChallanData$chall3.length) === 0 && !loader && /*#__PURE__*/React.createElement("p", {
|
|
9961
|
-
|
|
9962
|
-
marginLeft: "16px",
|
|
9963
|
-
marginTop: "16px"
|
|
9964
|
-
}
|
|
9942
|
+
className: "challan-load-message"
|
|
9965
9943
|
}, t("CHB_NO_APPLICATION_FOUND_MSG")), (getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$chall4 = getChallanData.challans) === null || _getChallanData$chall4 === void 0 ? void 0 : _getChallanData$chall4.length) !== 0 && (getChallanData === null || getChallanData === void 0 ? void 0 : getChallanData.totalCount) > t1 && /*#__PURE__*/React.createElement("div", {
|
|
9966
|
-
|
|
9967
|
-
marginLeft: "16px",
|
|
9968
|
-
marginTop: "16px"
|
|
9969
|
-
}
|
|
9944
|
+
className: "challan-load-message"
|
|
9970
9945
|
}, /*#__PURE__*/React.createElement("span", {
|
|
9971
9946
|
className: "link",
|
|
9972
9947
|
style: {
|
|
@@ -10032,6 +10007,7 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
|
|
|
10032
10007
|
const formats = (downloadLink === null || downloadLink === void 0 ? void 0 : (_downloadLink$split = downloadLink.split(",")) === null || _downloadLink$split === void 0 ? void 0 : _downloadLink$split.filter(Boolean)) || [];
|
|
10033
10008
|
return (formats === null || formats === void 0 ? void 0 : formats.find(link => !(link !== null && link !== void 0 && link.includes("large")) && !(link !== null && link !== void 0 && link.includes("medium")) && !(link !== null && link !== void 0 && link.includes("small")))) || (formats === null || formats === void 0 ? void 0 : formats[0]) || "";
|
|
10034
10009
|
};
|
|
10010
|
+
const pattern = /\[#\?.*?\*\*\]/;
|
|
10035
10011
|
const timelineRows = timeline.map((item, index) => {
|
|
10036
10012
|
var _item$auditDetails, _item$auditDetails2, _item$assigner, _item$assigner2, _item$assigner3, _item$wfComment;
|
|
10037
10013
|
const createdDate = (item === null || item === void 0 ? void 0 : (_item$auditDetails = item.auditDetails) === null || _item$auditDetails === void 0 ? void 0 : _item$auditDetails.created) || "N/A";
|
|
@@ -10041,7 +10017,8 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
|
|
|
10041
10017
|
const mobileNumber = (item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.mobileNumber) || "N/A";
|
|
10042
10018
|
const action = (item === null || item === void 0 ? void 0 : item.performedAction) || "N/A";
|
|
10043
10019
|
const status = (item === null || item === void 0 ? void 0 : item.status) || (item === null || item === void 0 ? void 0 : item.state) || "N/A";
|
|
10044
|
-
const
|
|
10020
|
+
const rawComment = (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment[0]) || "-";
|
|
10021
|
+
const comment = typeof rawComment === "string" ? rawComment.split(pattern)[0] : rawComment;
|
|
10045
10022
|
const documents = (item === null || item === void 0 ? void 0 : item.wfDocuments) || [];
|
|
10046
10023
|
const sla = (item === null || item === void 0 ? void 0 : item.sla) || "N/A";
|
|
10047
10024
|
const assignedTo = Array.isArray(item === null || item === void 0 ? void 0 : item.assignes) ? item.assignes.map(a => a === null || a === void 0 ? void 0 : a.name).filter(Boolean).join(", ") : "";
|
|
@@ -10153,7 +10130,9 @@ function NewApplicationTimeline({
|
|
|
10153
10130
|
workflowDetails,
|
|
10154
10131
|
t,
|
|
10155
10132
|
tenantId = Digit.ULBService.getCurrentTenantId(),
|
|
10156
|
-
timeObj
|
|
10133
|
+
timeObj,
|
|
10134
|
+
empUserName = null,
|
|
10135
|
+
handleSetEmpDesignation = () => {}
|
|
10157
10136
|
}) {
|
|
10158
10137
|
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _employeeData$data, _employeeData$data$Em;
|
|
10159
10138
|
const {
|
|
@@ -10228,6 +10207,9 @@ function NewApplicationTimeline({
|
|
|
10228
10207
|
const translationKey = `COMMON_MASTERS_DESIGNATION_${assignment === null || assignment === void 0 ? void 0 : assignment.designation}`;
|
|
10229
10208
|
deptMap[emp === null || emp === void 0 ? void 0 : emp.code] = translationKey;
|
|
10230
10209
|
});
|
|
10210
|
+
if (employeeData && empUserName) {
|
|
10211
|
+
handleSetEmpDesignation(t(deptMap[empUserName]));
|
|
10212
|
+
}
|
|
10231
10213
|
if (isLoading) return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
10232
10214
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
10233
10215
|
className: "custom-timeline-container"
|
|
@@ -10295,13 +10277,13 @@ function NewApplicationTimeline({
|
|
|
10295
10277
|
className: "custom-officer-info"
|
|
10296
10278
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10297
10279
|
className: "custom-officer-name"
|
|
10298
|
-
}, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA")
|
|
10280
|
+
}, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA"), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.userName] && /*#__PURE__*/React.createElement("span", {
|
|
10281
|
+
className: "custom-officer-name"
|
|
10282
|
+
}, "- ", t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName]))), (item === null || item === void 0 ? void 0 : (_item$assigner5 = item.assigner) === null || _item$assigner5 === void 0 ? void 0 : _item$assigner5.emailId) && /*#__PURE__*/React.createElement("div", {
|
|
10299
10283
|
className: "custom-officer-email"
|
|
10300
10284
|
}, /*#__PURE__*/React.createElement("span", {
|
|
10301
10285
|
className: "custom-email-label"
|
|
10302
|
-
}, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$
|
|
10303
|
-
className: "custom-officer-name"
|
|
10304
|
-
}, t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner6 = item.assigner) === null || _item$assigner6 === void 0 ? void 0 : _item$assigner6.userName])))), /*#__PURE__*/React.createElement("div", {
|
|
10286
|
+
}, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$assigner6 = item.assigner) === null || _item$assigner6 === void 0 ? void 0 : _item$assigner6.emailId))), /*#__PURE__*/React.createElement("div", {
|
|
10305
10287
|
className: "custom-card-column custom-card-column-mid"
|
|
10306
10288
|
}, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
|
|
10307
10289
|
className: "custom-action-title"
|
|
@@ -10323,9 +10305,13 @@ function NewApplicationTimeline({
|
|
|
10323
10305
|
className: "custom-comments-title"
|
|
10324
10306
|
}, t("Officer Comments")), /*#__PURE__*/React.createElement("div", {
|
|
10325
10307
|
className: "custom-comment-text"
|
|
10326
|
-
}, item === null || item === void 0 ? void 0 : (_item$wfComment3 = item.wfComment) === null || _item$wfComment3 === void 0 ? void 0 : _item$wfComment3.map((comment, idx) =>
|
|
10327
|
-
|
|
10328
|
-
|
|
10308
|
+
}, item === null || item === void 0 ? void 0 : (_item$wfComment3 = item.wfComment) === null || _item$wfComment3 === void 0 ? void 0 : _item$wfComment3.map((comment, idx) => {
|
|
10309
|
+
const pattern = /\[#\?.*?\*\*\]/;
|
|
10310
|
+
const truncatedComment = typeof comment === "string" ? comment === null || comment === void 0 ? void 0 : comment.split(pattern)[0] : comment;
|
|
10311
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
10312
|
+
key: idx
|
|
10313
|
+
}, truncatedComment);
|
|
10314
|
+
}))), (item === null || item === void 0 ? void 0 : (_item$assignes = item.assignes) === null || _item$assignes === void 0 ? void 0 : _item$assignes.length) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
10329
10315
|
className: "custom-assigned-to-footer"
|
|
10330
10316
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
10331
10317
|
className: "custom-comments-title"
|
|
@@ -10333,9 +10319,9 @@ function NewApplicationTimeline({
|
|
|
10333
10319
|
className: "custom-officer-info"
|
|
10334
10320
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10335
10321
|
className: "custom-officer-name"
|
|
10336
|
-
}, (_item$assignes$ = item.assignes[0]) === null || _item$assignes$ === void 0 ? void 0 : _item$assignes$.name
|
|
10322
|
+
}, (_item$assignes$ = item.assignes[0]) === null || _item$assignes$ === void 0 ? void 0 : _item$assignes$.name, deptMap[(_item$assignes$2 = item.assignes[0]) === null || _item$assignes$2 === void 0 ? void 0 : _item$assignes$2.userName] && /*#__PURE__*/React.createElement("span", {
|
|
10337
10323
|
className: "custom-officer-email"
|
|
10338
|
-
}, t(deptMap[(_item$assignes$3 = item.assignes[0]) === null || _item$assignes$3 === void 0 ? void 0 : _item$assignes$3.userName]))))), (item === null || item === void 0 ? void 0 : item.wfDocuments) && (item === null || item === void 0 ? void 0 : (_item$wfDocuments = item.wfDocuments) === null || _item$wfDocuments === void 0 ? void 0 : _item$wfDocuments.length) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
10324
|
+
}, "- ", t(deptMap[(_item$assignes$3 = item.assignes[0]) === null || _item$assignes$3 === void 0 ? void 0 : _item$assignes$3.userName])))))), (item === null || item === void 0 ? void 0 : item.wfDocuments) && (item === null || item === void 0 ? void 0 : (_item$wfDocuments = item.wfDocuments) === null || _item$wfDocuments === void 0 ? void 0 : _item$wfDocuments.length) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
10339
10325
|
className: "custom-comments-section-no-border"
|
|
10340
10326
|
}, /*#__PURE__*/React.createElement("h4", {
|
|
10341
10327
|
className: "custom-comments-title"
|
|
@@ -10399,10 +10385,7 @@ function ChallanDocument({
|
|
|
10399
10385
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
10400
10386
|
className: "document-grid"
|
|
10401
10387
|
}, (data === null || data === void 0 ? void 0 : data.pdfFiles) && /*#__PURE__*/React.createElement("div", {
|
|
10402
|
-
|
|
10403
|
-
display: "flex",
|
|
10404
|
-
flexWrap: "wrap"
|
|
10405
|
-
}
|
|
10388
|
+
className: "challan-doc-modal"
|
|
10406
10389
|
}, documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
|
|
10407
10390
|
let documentLink = pdfDownloadLink(data.pdfFiles, document === null || document === void 0 ? void 0 : document.fileStoreId);
|
|
10408
10391
|
return /*#__PURE__*/React.createElement("a", {
|
|
@@ -10596,25 +10579,19 @@ const ChallanApplicationDetails = () => {
|
|
|
10596
10579
|
}
|
|
10597
10580
|
});
|
|
10598
10581
|
}
|
|
10599
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div",
|
|
10600
|
-
className: "
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
maxWidth: "960px"
|
|
10604
|
-
}
|
|
10582
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
10583
|
+
className: "challan-application-details"
|
|
10584
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10585
|
+
className: "cardHeaderWithOptions"
|
|
10605
10586
|
}, /*#__PURE__*/React.createElement(Header, {
|
|
10606
|
-
|
|
10607
|
-
fontSize: "32px"
|
|
10608
|
-
}
|
|
10587
|
+
className: "challan-custom-header-font"
|
|
10609
10588
|
}, t("CHALLAN_DETAILS")), dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
|
|
10610
10589
|
className: "multilinkWrapper",
|
|
10611
10590
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
10612
10591
|
displayOptions: showOptions,
|
|
10613
10592
|
options: dowloadOptions
|
|
10614
10593
|
})), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
10615
|
-
|
|
10616
|
-
fontSize: "24px"
|
|
10617
|
-
}
|
|
10594
|
+
className: "challan-custom-subheader-font"
|
|
10618
10595
|
}, t("CHALLAN_OFFENDER_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
10619
10596
|
className: "border-none",
|
|
10620
10597
|
label: t("CORE_COMMON_NAME"),
|
|
@@ -10628,9 +10605,7 @@ const ChallanApplicationDetails = () => {
|
|
|
10628
10605
|
label: t("NDC_ADDRESS"),
|
|
10629
10606
|
text: (getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$addre = getChallanData.address) === null || _getChallanData$addre === void 0 ? void 0 : _getChallanData$addre.addressLine1) || t("CS_NA")
|
|
10630
10607
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
10631
|
-
|
|
10632
|
-
fontSize: "24px"
|
|
10633
|
-
}
|
|
10608
|
+
className: "challan-custom-subheader-font"
|
|
10634
10609
|
}, t("CHALLAN_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
10635
10610
|
className: "border-none",
|
|
10636
10611
|
label: t("CHALLAN_NUMBER"),
|
|
@@ -10656,28 +10631,16 @@ const ChallanApplicationDetails = () => {
|
|
|
10656
10631
|
label: t("FEE_WAIVER_AMOUNT"),
|
|
10657
10632
|
text: getChallanData === null || getChallanData === void 0 ? void 0 : getChallanData.feeWaiver
|
|
10658
10633
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
10659
|
-
|
|
10660
|
-
fontSize: "24px",
|
|
10661
|
-
marginTop: "30px"
|
|
10662
|
-
}
|
|
10634
|
+
className: "challan-custom-subheader-font"
|
|
10663
10635
|
}, t("CS_COMMON_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Card, {
|
|
10664
|
-
|
|
10665
|
-
display: "flex",
|
|
10666
|
-
flexDirection: "row",
|
|
10667
|
-
gap: "30px"
|
|
10668
|
-
}
|
|
10636
|
+
className: "challan-custom-card"
|
|
10669
10637
|
}, (getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$docum = getChallanData.documents) === null || _getChallanData$docum === void 0 ? void 0 : _getChallanData$docum.length) > 0 ? getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$docum2 = getChallanData.documents) === null || _getChallanData$docum2 === void 0 ? void 0 : _getChallanData$docum2.map((doc, index) => /*#__PURE__*/React.createElement(React.Fragment, {
|
|
10670
10638
|
key: index
|
|
10671
10639
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ChallanDocument, {
|
|
10672
10640
|
value: getChallanData === null || getChallanData === void 0 ? void 0 : getChallanData.documents,
|
|
10673
10641
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
10674
10642
|
index: index
|
|
10675
|
-
}), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
10676
|
-
style: {
|
|
10677
|
-
marginTop: "10px",
|
|
10678
|
-
fontSize: "15px"
|
|
10679
|
-
}
|
|
10680
|
-
}, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED"))))), /*#__PURE__*/React.createElement(NewApplicationTimeline, {
|
|
10643
|
+
}), /*#__PURE__*/React.createElement(CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED"))))), /*#__PURE__*/React.createElement(NewApplicationTimeline, {
|
|
10681
10644
|
workflowDetails: workflowDetails,
|
|
10682
10645
|
t: t
|
|
10683
10646
|
})), (loader || (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading)) && /*#__PURE__*/React.createElement(Loader, {
|
|
@@ -11048,14 +11011,8 @@ const ChallanSearchResults = ({
|
|
|
11048
11011
|
};
|
|
11049
11012
|
});
|
|
11050
11013
|
return /*#__PURE__*/React.createElement("div", {
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
}
|
|
11054
|
-
}, /*#__PURE__*/React.createElement("div", null, header && /*#__PURE__*/React.createElement(Header, {
|
|
11055
|
-
style: {
|
|
11056
|
-
marginLeft: "8px"
|
|
11057
|
-
}
|
|
11058
|
-
}, t(header), " (", searchResults === null || searchResults === void 0 ? void 0 : searchResults.length, ")"), /*#__PURE__*/React.createElement(ResponseComposer, {
|
|
11014
|
+
className: "mychallan-custom"
|
|
11015
|
+
}, /*#__PURE__*/React.createElement("div", null, header && /*#__PURE__*/React.createElement(Header, null, t(header), " (", searchResults === null || searchResults === void 0 ? void 0 : searchResults.length, ")"), /*#__PURE__*/React.createElement(ResponseComposer, {
|
|
11059
11016
|
data: searchResults,
|
|
11060
11017
|
template: template,
|
|
11061
11018
|
actionButtonLabel: actionButtonLabel,
|
|
@@ -12641,24 +12598,11 @@ const InboxLinks = ({
|
|
|
12641
12598
|
}, /*#__PURE__*/React.createElement("span", {
|
|
12642
12599
|
className: "logo"
|
|
12643
12600
|
}, /*#__PURE__*/React.createElement(PTIcon, null)), " ", /*#__PURE__*/React.createElement("span", {
|
|
12644
|
-
style: {
|
|
12645
|
-
fontSize: "18px",
|
|
12646
|
-
paddingLeft: "0"
|
|
12647
|
-
},
|
|
12648
12601
|
className: "text"
|
|
12649
12602
|
}, t("ACTION_TEST_CHALLANGENERATION")));
|
|
12650
12603
|
return /*#__PURE__*/React.createElement(Card, {
|
|
12651
|
-
style: {
|
|
12652
|
-
paddingRight: 0,
|
|
12653
|
-
marginTop: 0
|
|
12654
|
-
},
|
|
12655
12604
|
className: "employeeCard filter inboxLinks"
|
|
12656
12605
|
}, /*#__PURE__*/React.createElement("div", {
|
|
12657
|
-
style: {
|
|
12658
|
-
display: "flex",
|
|
12659
|
-
alignItems: "center",
|
|
12660
|
-
justifyContent: "center"
|
|
12661
|
-
},
|
|
12662
12606
|
className: "complaint-links-container"
|
|
12663
12607
|
}, GetLogo(), /*#__PURE__*/React.createElement("div", {
|
|
12664
12608
|
className: "body"
|
|
@@ -12906,8 +12850,8 @@ const DesktopInbox = ({
|
|
|
12906
12850
|
row
|
|
12907
12851
|
}) => {
|
|
12908
12852
|
var _row$original5, _row$original6;
|
|
12909
|
-
const total = ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.totalAmount)
|
|
12910
|
-
const waiver = ((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.feeWaiver)
|
|
12853
|
+
const total = ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.totalAmount) || 0;
|
|
12854
|
+
const waiver = ((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.feeWaiver) || 0;
|
|
12911
12855
|
const finalAmount = total - waiver;
|
|
12912
12856
|
return GetCell(finalAmount);
|
|
12913
12857
|
},
|
|
@@ -12950,15 +12894,11 @@ const DesktopInbox = ({
|
|
|
12950
12894
|
t: t,
|
|
12951
12895
|
data: data,
|
|
12952
12896
|
columns: inboxColumns(),
|
|
12897
|
+
className: "challan-desktop-applicationtable",
|
|
12953
12898
|
getCellProps: cellInfo => {
|
|
12954
12899
|
return {
|
|
12955
12900
|
style: {
|
|
12956
|
-
minWidth: cellInfo.column.Header === t("ES_INBOX_APPLICATION_NO") ? "240px" : ""
|
|
12957
|
-
padding: "20px 18px",
|
|
12958
|
-
fontSize: "16px",
|
|
12959
|
-
wordBreak: "break-word",
|
|
12960
|
-
overflowWrap: "break-word",
|
|
12961
|
-
width: "250px"
|
|
12901
|
+
minWidth: cellInfo.column.Header === t("ES_INBOX_APPLICATION_NO") ? "240px" : ""
|
|
12962
12902
|
}
|
|
12963
12903
|
};
|
|
12964
12904
|
},
|
|
@@ -13240,8 +13180,8 @@ const MobileInbox = ({
|
|
|
13240
13180
|
row
|
|
13241
13181
|
}) => {
|
|
13242
13182
|
var _row$original3, _row$original4;
|
|
13243
|
-
const total = ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.totalAmount)
|
|
13244
|
-
const waiver = ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.feeWaiver)
|
|
13183
|
+
const total = ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.totalAmount) || 0;
|
|
13184
|
+
const waiver = ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.feeWaiver) || 0;
|
|
13245
13185
|
const finalAmount = total - waiver;
|
|
13246
13186
|
return GetCell(finalAmount);
|
|
13247
13187
|
},
|
|
@@ -13519,7 +13459,7 @@ const ModalConfig = ({
|
|
|
13519
13459
|
}
|
|
13520
13460
|
}, " ", finalAmount), " "))
|
|
13521
13461
|
}, {
|
|
13522
|
-
label: t("TL_APPROVAL_CHECKLIST_BUTTON_UP_FILE")
|
|
13462
|
+
label: `${t("TL_APPROVAL_CHECKLIST_BUTTON_UP_FILE")} *`,
|
|
13523
13463
|
populators: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UploadFile, {
|
|
13524
13464
|
id: "workflow-doc",
|
|
13525
13465
|
onUpload: selectFile,
|
|
@@ -13705,7 +13645,6 @@ const ChallanApplicationDetails$1 = () => {
|
|
|
13705
13645
|
setChallanData(responseData === null || responseData === void 0 ? void 0 : (_responseData$challan = responseData.challans) === null || _responseData$challan === void 0 ? void 0 : _responseData$challan[0]);
|
|
13706
13646
|
setLoader(false);
|
|
13707
13647
|
} catch (error) {
|
|
13708
|
-
console.log("error", error);
|
|
13709
13648
|
setLoader(false);
|
|
13710
13649
|
}
|
|
13711
13650
|
};
|
|
@@ -13774,7 +13713,6 @@ const ChallanApplicationDetails$1 = () => {
|
|
|
13774
13713
|
}
|
|
13775
13714
|
});
|
|
13776
13715
|
const location = await getLocationName(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c = applicationDetails.challans) === null || _applicationDetails$c === void 0 ? void 0 : (_applicationDetails$c2 = _applicationDetails$c[0]) === null || _applicationDetails$c2 === void 0 ? void 0 : (_applicationDetails$c3 = _applicationDetails$c2.additionalDetail) === null || _applicationDetails$c3 === void 0 ? void 0 : _applicationDetails$c3.latitude, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$c4 = applicationDetails.challans) === null || _applicationDetails$c4 === void 0 ? void 0 : (_applicationDetails$c5 = _applicationDetails$c4[0]) === null || _applicationDetails$c5 === void 0 ? void 0 : (_applicationDetails$c6 = _applicationDetails$c5.additionalDetail) === null || _applicationDetails$c6 === void 0 ? void 0 : _applicationDetails$c6.longitude);
|
|
13777
|
-
console.log("location", location);
|
|
13778
13716
|
const challan = {
|
|
13779
13717
|
...applicationDetails,
|
|
13780
13718
|
...challanEmpData
|
|
@@ -13857,7 +13795,6 @@ const ChallanApplicationDetails$1 = () => {
|
|
|
13857
13795
|
});
|
|
13858
13796
|
}
|
|
13859
13797
|
function onActionSelect(action) {
|
|
13860
|
-
console.log("action", action);
|
|
13861
13798
|
if (action.action == "PAY") {
|
|
13862
13799
|
const code = getChallanData === null || getChallanData === void 0 ? void 0 : getChallanData.challanNo;
|
|
13863
13800
|
history.push(`/digit-ui/employee/payment/collect/Challan_Generation/${code}/${tenantId}?tenantId=${tenantId}`);
|
|
@@ -13870,7 +13807,6 @@ const ChallanApplicationDetails$1 = () => {
|
|
|
13870
13807
|
}
|
|
13871
13808
|
const payLater = async () => {
|
|
13872
13809
|
setLoader(true);
|
|
13873
|
-
console.log("pay later", getChallanData);
|
|
13874
13810
|
const payload = {
|
|
13875
13811
|
Challan: {
|
|
13876
13812
|
...getChallanData,
|
|
@@ -13894,67 +13830,63 @@ const ChallanApplicationDetails$1 = () => {
|
|
|
13894
13830
|
}
|
|
13895
13831
|
};
|
|
13896
13832
|
const submitAction = async modalData => {
|
|
13897
|
-
|
|
13833
|
+
var _getChallanData$amoun, _getChallanData$amoun2;
|
|
13898
13834
|
if (!(modalData !== null && modalData !== void 0 && modalData.amount)) {
|
|
13899
13835
|
setErrorOne(`Please Enter Amount`);
|
|
13900
13836
|
setShowErrorToastt(true);
|
|
13837
|
+
return;
|
|
13838
|
+
}
|
|
13839
|
+
if (!(modalData !== null && modalData !== void 0 && modalData.wfDocuments) || (modalData === null || modalData === void 0 ? void 0 : modalData.wfDocuments.length) === 0) {
|
|
13840
|
+
setErrorOne(`Please upload required document`);
|
|
13841
|
+
setShowErrorToastt(true);
|
|
13842
|
+
return;
|
|
13843
|
+
}
|
|
13844
|
+
const finalAmount = Math.max((getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$amoun = getChallanData.amount) === null || _getChallanData$amoun === void 0 ? void 0 : (_getChallanData$amoun2 = _getChallanData$amoun[0]) === null || _getChallanData$amoun2 === void 0 ? void 0 : _getChallanData$amoun2.amount) || 0, (getChallanData === null || getChallanData === void 0 ? void 0 : getChallanData.challanAmount) || 0);
|
|
13845
|
+
if ((modalData === null || modalData === void 0 ? void 0 : modalData.amount) > finalAmount) {
|
|
13846
|
+
setErrorOne(`Amount must be less than or equal to ${finalAmount}`);
|
|
13847
|
+
setShowErrorToastt(true);
|
|
13848
|
+
setError(`Amount must be less than or equal to ${finalAmount}`);
|
|
13901
13849
|
} else {
|
|
13902
|
-
|
|
13903
|
-
const
|
|
13904
|
-
|
|
13905
|
-
|
|
13906
|
-
|
|
13907
|
-
|
|
13908
|
-
|
|
13909
|
-
|
|
13910
|
-
|
|
13911
|
-
const payload = {
|
|
13912
|
-
Challan: {
|
|
13913
|
-
...getChallanData,
|
|
13914
|
-
workflow: {
|
|
13915
|
-
action: "SETTLED",
|
|
13916
|
-
documents: modalData === null || modalData === void 0 ? void 0 : modalData.wfDocuments
|
|
13917
|
-
},
|
|
13918
|
-
feeWaiver: modalData === null || modalData === void 0 ? void 0 : modalData.amount
|
|
13919
|
-
}
|
|
13920
|
-
};
|
|
13921
|
-
console.log("payload", payload);
|
|
13922
|
-
try {
|
|
13923
|
-
const response = await Digit.ChallanGenerationService.update(payload);
|
|
13924
|
-
setLoader(false);
|
|
13925
|
-
setShowModal(false);
|
|
13926
|
-
setLable("Challan is Settled");
|
|
13927
|
-
setError(false);
|
|
13928
|
-
setShowToast(true);
|
|
13929
|
-
setTimeout(() => {
|
|
13930
|
-
history.push("/digit-ui/employee/challangeneration/inbox");
|
|
13931
|
-
window.location.reload();
|
|
13932
|
-
}, 2000);
|
|
13933
|
-
} catch (error) {
|
|
13934
|
-
setLoader(false);
|
|
13850
|
+
setLoader(true);
|
|
13851
|
+
const payload = {
|
|
13852
|
+
Challan: {
|
|
13853
|
+
...getChallanData,
|
|
13854
|
+
workflow: {
|
|
13855
|
+
action: "SETTLED",
|
|
13856
|
+
documents: modalData === null || modalData === void 0 ? void 0 : modalData.wfDocuments
|
|
13857
|
+
},
|
|
13858
|
+
feeWaiver: modalData === null || modalData === void 0 ? void 0 : modalData.amount
|
|
13935
13859
|
}
|
|
13860
|
+
};
|
|
13861
|
+
try {
|
|
13862
|
+
const response = await Digit.ChallanGenerationService.update(payload);
|
|
13863
|
+
setLoader(false);
|
|
13864
|
+
setShowModal(false);
|
|
13865
|
+
setLable("Challan is Settled");
|
|
13866
|
+
setError(false);
|
|
13867
|
+
setShowToast(true);
|
|
13868
|
+
setTimeout(() => {
|
|
13869
|
+
history.push("/digit-ui/employee/challangeneration/inbox");
|
|
13870
|
+
window.location.reload();
|
|
13871
|
+
}, 2000);
|
|
13872
|
+
} catch (error) {
|
|
13873
|
+
setLoader(false);
|
|
13936
13874
|
}
|
|
13937
13875
|
}
|
|
13938
13876
|
};
|
|
13939
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div",
|
|
13940
|
-
className: "
|
|
13941
|
-
|
|
13942
|
-
|
|
13943
|
-
maxWidth: "960px"
|
|
13944
|
-
}
|
|
13877
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
13878
|
+
className: "challan-application-details"
|
|
13879
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
13880
|
+
className: "cardHeaderWithOptions"
|
|
13945
13881
|
}, /*#__PURE__*/React.createElement(Header, {
|
|
13946
|
-
|
|
13947
|
-
fontSize: "32px"
|
|
13948
|
-
}
|
|
13882
|
+
className: "challan-custom-header-font"
|
|
13949
13883
|
}, t("CHALLAN_DETAILS")), dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
|
|
13950
13884
|
className: "multilinkWrapper",
|
|
13951
13885
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
13952
13886
|
displayOptions: showOptions,
|
|
13953
13887
|
options: dowloadOptions
|
|
13954
13888
|
})), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
13955
|
-
|
|
13956
|
-
fontSize: "24px"
|
|
13957
|
-
}
|
|
13889
|
+
className: "challan-custom-subheader-font"
|
|
13958
13890
|
}, t("CHALLAN_OFFENDER_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
13959
13891
|
className: "border-none",
|
|
13960
13892
|
label: t("CORE_COMMON_NAME"),
|
|
@@ -13968,9 +13900,7 @@ const ChallanApplicationDetails$1 = () => {
|
|
|
13968
13900
|
label: t("NDC_ADDRESS"),
|
|
13969
13901
|
text: (getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$addre = getChallanData.address) === null || _getChallanData$addre === void 0 ? void 0 : _getChallanData$addre.addressLine1) || t("CS_NA")
|
|
13970
13902
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
13971
|
-
|
|
13972
|
-
fontSize: "24px"
|
|
13973
|
-
}
|
|
13903
|
+
className: "challan-custom-subheader-font"
|
|
13974
13904
|
}, t("CHALLAN_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
13975
13905
|
className: "border-none",
|
|
13976
13906
|
label: t("CHALLAN_NUMBER"),
|
|
@@ -13996,28 +13926,16 @@ const ChallanApplicationDetails$1 = () => {
|
|
|
13996
13926
|
label: t("FEE_WAIVER_AMOUNT"),
|
|
13997
13927
|
text: getChallanData === null || getChallanData === void 0 ? void 0 : getChallanData.feeWaiver
|
|
13998
13928
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
13999
|
-
|
|
14000
|
-
fontSize: "24px",
|
|
14001
|
-
marginTop: "30px"
|
|
14002
|
-
}
|
|
13929
|
+
className: "challan-custom-header"
|
|
14003
13930
|
}, t("CS_COMMON_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Card, {
|
|
14004
|
-
|
|
14005
|
-
display: "flex",
|
|
14006
|
-
flexDirection: "row",
|
|
14007
|
-
gap: "30px"
|
|
14008
|
-
}
|
|
13931
|
+
className: "challan-custom-card"
|
|
14009
13932
|
}, (getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$docum = getChallanData.documents) === null || _getChallanData$docum === void 0 ? void 0 : _getChallanData$docum.length) > 0 ? getChallanData === null || getChallanData === void 0 ? void 0 : (_getChallanData$docum2 = getChallanData.documents) === null || _getChallanData$docum2 === void 0 ? void 0 : _getChallanData$docum2.map((doc, index) => /*#__PURE__*/React.createElement(React.Fragment, {
|
|
14010
13933
|
key: index
|
|
14011
13934
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ChallanDocument, {
|
|
14012
13935
|
value: getChallanData === null || getChallanData === void 0 ? void 0 : getChallanData.documents,
|
|
14013
13936
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
14014
13937
|
index: index
|
|
14015
|
-
}), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
14016
|
-
style: {
|
|
14017
|
-
marginTop: "10px",
|
|
14018
|
-
fontSize: "15px"
|
|
14019
|
-
}
|
|
14020
|
-
}, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED"))))), /*#__PURE__*/React.createElement(NewApplicationTimeline, {
|
|
13938
|
+
}), /*#__PURE__*/React.createElement(CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED"))))), /*#__PURE__*/React.createElement(NewApplicationTimeline, {
|
|
14021
13939
|
workflowDetails: workflowDetails,
|
|
14022
13940
|
t: t
|
|
14023
13941
|
}), actions && actions.length > 0 && !actions.some(a => a.action === "SUBMIT") && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data1 = workflowDetails.data) !== null && _workflowDetails$data1 !== void 0 && (_workflowDetails$data10 = _workflowDetails$data1.actionState) !== null && _workflowDetails$data10 !== void 0 && _workflowDetails$data10.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data11 = workflowDetails.data) !== null && _workflowDetails$data11 !== void 0 && _workflowDetails$data11.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
|
|
@@ -14124,10 +14042,7 @@ const EmployeeApp = ({
|
|
|
14124
14042
|
}
|
|
14125
14043
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
14126
14044
|
to: "/digit-ui/employee",
|
|
14127
|
-
|
|
14128
|
-
cursor: "pointer",
|
|
14129
|
-
color: "#666"
|
|
14130
|
-
}
|
|
14045
|
+
className: "challan-link-href"
|
|
14131
14046
|
}, t("ES_COMMON_HOME")), " ", "/ ", /*#__PURE__*/React.createElement("span", null, t("CHALLAN_MODULE"))), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
14132
14047
|
exact: true,
|
|
14133
14048
|
path: `${path}/`,
|
|
@@ -14262,12 +14177,7 @@ const FormComposer = forwardRef((props, ref) => {
|
|
|
14262
14177
|
}, fieldSelector(field.type, field.populators))) : /*#__PURE__*/React.createElement("div", {
|
|
14263
14178
|
className: "field"
|
|
14264
14179
|
}, fieldSelector(field.type, field.populators)), props.errors[field.populators.name] && ((_field$populators = field.populators) !== null && _field$populators !== void 0 && _field$populators.validate ? errors[field.populators.validate] : true) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
14265
|
-
|
|
14266
|
-
width: "70%",
|
|
14267
|
-
marginLeft: "30%",
|
|
14268
|
-
fontSize: "12px",
|
|
14269
|
-
marginTop: "-21px"
|
|
14270
|
-
}
|
|
14180
|
+
className: "card-label-error-challan"
|
|
14271
14181
|
}, field.populators.error));
|
|
14272
14182
|
}), array.length - 1 === index ? null : /*#__PURE__*/React.createElement(BreakLine, null));
|
|
14273
14183
|
});
|
|
@@ -14633,11 +14543,7 @@ const MCollectAcknowledgement = () => {
|
|
|
14633
14543
|
}), /*#__PURE__*/React.createElement("path", {
|
|
14634
14544
|
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
14635
14545
|
})), t("UC_PRINT_CHALLAN_LABEL")) , /*#__PURE__*/React.createElement(ActionBar, {
|
|
14636
|
-
|
|
14637
|
-
display: "flex",
|
|
14638
|
-
justifyContent: "flex-end",
|
|
14639
|
-
alignItems: "baseline"
|
|
14640
|
-
}
|
|
14546
|
+
className: "challan-emp-acknowledgement"
|
|
14641
14547
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
14642
14548
|
to: `/digit-ui/employee`,
|
|
14643
14549
|
style: {
|
|
@@ -14667,11 +14573,7 @@ const MCollectAcknowledgement = () => {
|
|
|
14667
14573
|
}), /*#__PURE__*/React.createElement("path", {
|
|
14668
14574
|
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
14669
14575
|
})), t("UC_PRINT_CHALLAN_LABEL")) , /*#__PURE__*/React.createElement(ActionBar, {
|
|
14670
|
-
|
|
14671
|
-
display: "flex",
|
|
14672
|
-
justifyContent: "flex-end",
|
|
14673
|
-
alignItems: "baseline"
|
|
14674
|
-
}
|
|
14576
|
+
className: "challan-emp-acknowledgement"
|
|
14675
14577
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
14676
14578
|
to: `/digit-ui/employee`,
|
|
14677
14579
|
style: {
|
|
@@ -14842,52 +14744,8 @@ const SearchReceipt = () => {
|
|
|
14842
14744
|
return GetCell(row === null || row === void 0 ? void 0 : (_row$paymentDetails5 = row.paymentDetails) === null || _row$paymentDetails5 === void 0 ? void 0 : (_row$paymentDetails5$ = _row$paymentDetails5[0]) === null || _row$paymentDetails5$ === void 0 ? void 0 : (_row$paymentDetails5$2 = _row$paymentDetails5$.bill) === null || _row$paymentDetails5$2 === void 0 ? void 0 : _row$paymentDetails5$2.totalAmount);
|
|
14843
14745
|
}
|
|
14844
14746
|
}], []);
|
|
14845
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("
|
|
14846
|
-
|
|
14847
|
-
// padding: 20px;
|
|
14848
|
-
// background: #fff;
|
|
14849
|
-
// border-radius: 10px;
|
|
14850
|
-
max-width: 1200px;
|
|
14851
|
-
// margin: auto;
|
|
14852
|
-
// box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
14853
|
-
}
|
|
14854
|
-
|
|
14855
|
-
.ndcFormCard {
|
|
14856
|
-
display: grid;
|
|
14857
|
-
grid-template-columns: repeat(3, 1fr);
|
|
14858
|
-
gap: 20px;
|
|
14859
|
-
}
|
|
14860
|
-
|
|
14861
|
-
.surveydetailsform-wrapper {
|
|
14862
|
-
display: flex;
|
|
14863
|
-
flex-direction: column;
|
|
14864
|
-
width: 100%;
|
|
14865
|
-
}
|
|
14866
|
-
.surveydetailsform-wrapper p {
|
|
14867
|
-
color: red;
|
|
14868
|
-
font-size: 14px;
|
|
14869
|
-
}
|
|
14870
|
-
|
|
14871
|
-
.citizen-card-input{
|
|
14872
|
-
margin-bottom: 0 !important;
|
|
14873
|
-
}
|
|
14874
|
-
|
|
14875
|
-
@media (max-width: 1024px) {
|
|
14876
|
-
.ndcFormCard {
|
|
14877
|
-
grid-template-columns: repeat(2, 1fr);
|
|
14878
|
-
}
|
|
14879
|
-
}
|
|
14880
|
-
|
|
14881
|
-
@media (max-width: 768px) {
|
|
14882
|
-
.ndcFormCard {
|
|
14883
|
-
grid-template-columns: 1fr;
|
|
14884
|
-
}
|
|
14885
|
-
}
|
|
14886
|
-
`), /*#__PURE__*/React.createElement("div", {
|
|
14887
|
-
className: "employee-application-details",
|
|
14888
|
-
style: {
|
|
14889
|
-
marginBottom: "15px"
|
|
14890
|
-
}
|
|
14747
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
14748
|
+
className: "employee-application-details"
|
|
14891
14749
|
}, /*#__PURE__*/React.createElement(Header, null, "Search Receipts")), /*#__PURE__*/React.createElement("div", {
|
|
14892
14750
|
className: "card"
|
|
14893
14751
|
}, /*#__PURE__*/React.createElement(FormProvider, methods, /*#__PURE__*/React.createElement("form", {
|
|
@@ -14905,15 +14763,11 @@ const SearchReceipt = () => {
|
|
|
14905
14763
|
}
|
|
14906
14764
|
})
|
|
14907
14765
|
}), errors.receiptNumbers && /*#__PURE__*/React.createElement("p", {
|
|
14908
|
-
|
|
14909
|
-
color: "red"
|
|
14910
|
-
}
|
|
14766
|
+
className: "requiredField"
|
|
14911
14767
|
}, errors.receiptNumbers.message)), /*#__PURE__*/React.createElement("div", {
|
|
14912
14768
|
className: "surveydetailsform-wrapper"
|
|
14913
14769
|
}, /*#__PURE__*/React.createElement("label", null, "Service Type ", /*#__PURE__*/React.createElement("span", {
|
|
14914
|
-
|
|
14915
|
-
color: "red"
|
|
14916
|
-
}
|
|
14770
|
+
className: "requiredField"
|
|
14917
14771
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
14918
14772
|
control: control,
|
|
14919
14773
|
rules: {
|
|
@@ -14931,9 +14785,7 @@ const SearchReceipt = () => {
|
|
|
14931
14785
|
selected: props.value
|
|
14932
14786
|
})
|
|
14933
14787
|
}), errors.businessServices && /*#__PURE__*/React.createElement("p", {
|
|
14934
|
-
|
|
14935
|
-
color: "red"
|
|
14936
|
-
}
|
|
14788
|
+
className: "requiredField"
|
|
14937
14789
|
}, errors.businessServices.message)), /*#__PURE__*/React.createElement("div", {
|
|
14938
14790
|
className: "surveydetailsform-wrapper"
|
|
14939
14791
|
}, /*#__PURE__*/React.createElement("label", null, "Consumer code"), /*#__PURE__*/React.createElement(TextInput, {
|
|
@@ -14945,9 +14797,7 @@ const SearchReceipt = () => {
|
|
|
14945
14797
|
}
|
|
14946
14798
|
})
|
|
14947
14799
|
}), errors.consumerCodes && /*#__PURE__*/React.createElement("p", {
|
|
14948
|
-
|
|
14949
|
-
color: "red"
|
|
14950
|
-
}
|
|
14800
|
+
className: "requiredField"
|
|
14951
14801
|
}, errors.consumerCodes.message)), /*#__PURE__*/React.createElement("div", {
|
|
14952
14802
|
className: "surveydetailsform-wrapper"
|
|
14953
14803
|
}, /*#__PURE__*/React.createElement("label", null, "Mobile No"), /*#__PURE__*/React.createElement("div", {
|
|
@@ -14975,9 +14825,7 @@ const SearchReceipt = () => {
|
|
|
14975
14825
|
}
|
|
14976
14826
|
})
|
|
14977
14827
|
}), errors.mobileNumber && /*#__PURE__*/React.createElement("p", {
|
|
14978
|
-
|
|
14979
|
-
color: "red"
|
|
14980
|
-
}
|
|
14828
|
+
className: "requiredField"
|
|
14981
14829
|
}, errors.mobileNumber.message)))), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
14982
14830
|
label: "Search",
|
|
14983
14831
|
submit: "submit"
|
|
@@ -15138,52 +14986,8 @@ const SearchChallan$2 = props => {
|
|
|
15138
14986
|
}, formattedStatus);
|
|
15139
14987
|
}
|
|
15140
14988
|
}], []);
|
|
15141
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("
|
|
15142
|
-
|
|
15143
|
-
// padding: 20px;
|
|
15144
|
-
// background: #fff;
|
|
15145
|
-
// border-radius: 10px;
|
|
15146
|
-
max-width: 1200px;
|
|
15147
|
-
// margin: auto;
|
|
15148
|
-
// box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
15149
|
-
}
|
|
15150
|
-
|
|
15151
|
-
.ndcFormCard {
|
|
15152
|
-
display: grid;
|
|
15153
|
-
grid-template-columns: repeat(3, 1fr);
|
|
15154
|
-
gap: 20px;
|
|
15155
|
-
}
|
|
15156
|
-
|
|
15157
|
-
.surveydetailsform-wrapper {
|
|
15158
|
-
display: flex;
|
|
15159
|
-
flex-direction: column;
|
|
15160
|
-
width: 100%;
|
|
15161
|
-
}
|
|
15162
|
-
.surveydetailsform-wrapper p {
|
|
15163
|
-
color: red;
|
|
15164
|
-
font-size: 14px;
|
|
15165
|
-
}
|
|
15166
|
-
|
|
15167
|
-
.citizen-card-input{
|
|
15168
|
-
margin-bottom: 0 !important;
|
|
15169
|
-
}
|
|
15170
|
-
|
|
15171
|
-
@media (max-width: 1024px) {
|
|
15172
|
-
.ndcFormCard {
|
|
15173
|
-
grid-template-columns: repeat(2, 1fr);
|
|
15174
|
-
}
|
|
15175
|
-
}
|
|
15176
|
-
|
|
15177
|
-
@media (max-width: 768px) {
|
|
15178
|
-
.ndcFormCard {
|
|
15179
|
-
grid-template-columns: 1fr;
|
|
15180
|
-
}
|
|
15181
|
-
}
|
|
15182
|
-
`), /*#__PURE__*/React.createElement("div", {
|
|
15183
|
-
className: "employee-application-details",
|
|
15184
|
-
style: {
|
|
15185
|
-
marginBottom: "15px"
|
|
15186
|
-
}
|
|
14989
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
14990
|
+
className: "employee-application-details"
|
|
15187
14991
|
}, /*#__PURE__*/React.createElement(Header, null, "Search Challan")), /*#__PURE__*/React.createElement("div", {
|
|
15188
14992
|
className: "card"
|
|
15189
14993
|
}, /*#__PURE__*/React.createElement(FormProvider, methods, /*#__PURE__*/React.createElement("form", {
|
|
@@ -15201,9 +15005,7 @@ const SearchChallan$2 = props => {
|
|
|
15201
15005
|
}
|
|
15202
15006
|
})
|
|
15203
15007
|
}), errors.challanNo && /*#__PURE__*/React.createElement("p", {
|
|
15204
|
-
|
|
15205
|
-
color: "red"
|
|
15206
|
-
}
|
|
15008
|
+
className: "requiredField"
|
|
15207
15009
|
}, errors.challanNo.message)), /*#__PURE__*/React.createElement("div", {
|
|
15208
15010
|
className: "surveydetailsform-wrapper"
|
|
15209
15011
|
}, /*#__PURE__*/React.createElement("label", null, "Service Type"), /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -15220,9 +15022,7 @@ const SearchChallan$2 = props => {
|
|
|
15220
15022
|
selected: props.value
|
|
15221
15023
|
})
|
|
15222
15024
|
}), errors.businessService && /*#__PURE__*/React.createElement("p", {
|
|
15223
|
-
|
|
15224
|
-
color: "red"
|
|
15225
|
-
}
|
|
15025
|
+
className: "requiredField"
|
|
15226
15026
|
}, errors.businessService.message)), /*#__PURE__*/React.createElement("div", {
|
|
15227
15027
|
className: "surveydetailsform-wrapper"
|
|
15228
15028
|
}, /*#__PURE__*/React.createElement("label", null, "Mobile No"), /*#__PURE__*/React.createElement("div", {
|
|
@@ -15250,19 +15050,12 @@ const SearchChallan$2 = props => {
|
|
|
15250
15050
|
}
|
|
15251
15051
|
})
|
|
15252
15052
|
}), errors.mobileNumber && /*#__PURE__*/React.createElement("p", {
|
|
15253
|
-
|
|
15254
|
-
color: "red"
|
|
15255
|
-
}
|
|
15053
|
+
className: "requiredField"
|
|
15256
15054
|
}, errors.mobileNumber.message)))), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
15257
15055
|
label: "Search",
|
|
15258
15056
|
submit: "submit"
|
|
15259
15057
|
}))), (tableData === null || tableData === void 0 ? void 0 : tableData.length) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
15260
|
-
|
|
15261
|
-
backgroundColor: "white",
|
|
15262
|
-
marginRight: "200px",
|
|
15263
|
-
marginLeft: "2.5%",
|
|
15264
|
-
width: "100%"
|
|
15265
|
-
}
|
|
15058
|
+
className: "challan-search-table"
|
|
15266
15059
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
15267
15060
|
t: t,
|
|
15268
15061
|
data: tableData,
|
|
@@ -15563,22 +15356,13 @@ function PTRSelectDocument({
|
|
|
15563
15356
|
}, [isHidden]);
|
|
15564
15357
|
console.log("doc===", doc);
|
|
15565
15358
|
return /*#__PURE__*/React.createElement("div", {
|
|
15566
|
-
|
|
15567
|
-
marginBottom: "24px"
|
|
15568
|
-
}
|
|
15359
|
+
className: "challan-documents"
|
|
15569
15360
|
}, /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
15570
|
-
|
|
15571
|
-
display: "inline"
|
|
15572
|
-
}
|
|
15361
|
+
className: "challan-label-field"
|
|
15573
15362
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15574
|
-
|
|
15575
|
-
marginBottom: "8px",
|
|
15576
|
-
width: "auto"
|
|
15577
|
-
}
|
|
15363
|
+
className: "challan-card-label"
|
|
15578
15364
|
}, t(doc === null || doc === void 0 ? void 0 : doc.code), " ", /*#__PURE__*/React.createElement("span", {
|
|
15579
|
-
|
|
15580
|
-
color: "red"
|
|
15581
|
-
}
|
|
15365
|
+
className: "requiredField"
|
|
15582
15366
|
}, " ", (doc === null || doc === void 0 ? void 0 : doc.required) && " *")), /*#__PURE__*/React.createElement("div", {
|
|
15583
15367
|
className: "field",
|
|
15584
15368
|
style: {
|
|
@@ -15601,26 +15385,13 @@ function PTRSelectDocument({
|
|
|
15601
15385
|
buttonType: "button",
|
|
15602
15386
|
error: !uploadedFile
|
|
15603
15387
|
}), console.log("documents", documents), (doc === null || doc === void 0 ? void 0 : doc.code) == "CHALLAN.EVIDENCE_IMAGE" && /*#__PURE__*/React.createElement("span", {
|
|
15604
|
-
|
|
15605
|
-
color: "green",
|
|
15606
|
-
fontSize: "14px"
|
|
15607
|
-
}
|
|
15388
|
+
className: "challan-note-green"
|
|
15608
15389
|
}, /*#__PURE__*/React.createElement("span", {
|
|
15609
|
-
|
|
15610
|
-
color: "red",
|
|
15611
|
-
paddingRight: "3px"
|
|
15612
|
-
}
|
|
15390
|
+
className: "challan-note-red"
|
|
15613
15391
|
}, "Note:"), "Please upload a picture **clicked with location enabled**."), (doc === null || doc === void 0 ? void 0 : doc.code) == "CHALLAN.EVIDENCE_IMAGE" && (documents === null || documents === void 0 ? void 0 : (_documents$filter = documents.filter(item => item.documentType == "CHALLAN.EVIDENCE_IMAGE")) === null || _documents$filter === void 0 ? void 0 : _documents$filter.map((item, index) => /*#__PURE__*/React.createElement("div", {
|
|
15614
|
-
key: index
|
|
15615
|
-
style: {
|
|
15616
|
-
marginTop: "10px"
|
|
15617
|
-
}
|
|
15392
|
+
key: index
|
|
15618
15393
|
}, /*#__PURE__*/React.createElement("div", {
|
|
15619
|
-
|
|
15620
|
-
marginTop: "5px",
|
|
15621
|
-
fontSize: "14px",
|
|
15622
|
-
color: "#333"
|
|
15623
|
-
}
|
|
15394
|
+
className: "challan-lat-long"
|
|
15624
15395
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Latitude:"), " ", item.latitude), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Longitude:"), " ", item.longitude))))))), getLoading && /*#__PURE__*/React.createElement(Loader, {
|
|
15625
15396
|
page: true
|
|
15626
15397
|
}));
|
|
@@ -15637,6 +15408,7 @@ const ChallanStepperForm = () => {
|
|
|
15637
15408
|
const [error, setError] = useState(null);
|
|
15638
15409
|
const [documentsData, setDocumentsData] = useState({});
|
|
15639
15410
|
const isCitizen = window.location.href.includes("citizen");
|
|
15411
|
+
const [getViolationData, setViolationData] = useState([]);
|
|
15640
15412
|
const handleDocumentsSelect = (key, data) => {
|
|
15641
15413
|
setDocumentsData(data);
|
|
15642
15414
|
};
|
|
@@ -15671,6 +15443,12 @@ const ChallanStepperForm = () => {
|
|
|
15671
15443
|
} = Digit.Hooks.useCustomMDMS(tenantId, "Challan", [{
|
|
15672
15444
|
name: "Documents"
|
|
15673
15445
|
}]);
|
|
15446
|
+
const {
|
|
15447
|
+
data: OffenceActData,
|
|
15448
|
+
isLoading: OffenceActLoading
|
|
15449
|
+
} = Digit.Hooks.useCustomMDMS(tenantId, "Challan", [{
|
|
15450
|
+
name: "Acts"
|
|
15451
|
+
}]);
|
|
15674
15452
|
const {
|
|
15675
15453
|
control,
|
|
15676
15454
|
handleSubmit,
|
|
@@ -15686,9 +15464,17 @@ const ChallanStepperForm = () => {
|
|
|
15686
15464
|
shouldUnregister: false
|
|
15687
15465
|
}
|
|
15688
15466
|
});
|
|
15467
|
+
const getActs = (offenceType, offenceActData) => {
|
|
15468
|
+
var _offenceType$acts, _offenceType$acts$map, _offenceType$acts$map2;
|
|
15469
|
+
return (offenceType === null || offenceType === void 0 ? void 0 : (_offenceType$acts = offenceType.acts) === null || _offenceType$acts === void 0 ? void 0 : (_offenceType$acts$map = _offenceType$acts.map(code => {
|
|
15470
|
+
var _offenceActData$Chall, _offenceActData$Chall2, _offenceActData$Chall3;
|
|
15471
|
+
return offenceActData === null || offenceActData === void 0 ? void 0 : (_offenceActData$Chall = offenceActData.Challan) === null || _offenceActData$Chall === void 0 ? void 0 : (_offenceActData$Chall2 = _offenceActData$Chall.Acts) === null || _offenceActData$Chall2 === void 0 ? void 0 : (_offenceActData$Chall3 = _offenceActData$Chall2.find(a => (a === null || a === void 0 ? void 0 : a.code) === code)) === null || _offenceActData$Chall3 === void 0 ? void 0 : _offenceActData$Chall3.name;
|
|
15472
|
+
})) === null || _offenceType$acts$map === void 0 ? void 0 : (_offenceType$acts$map2 = _offenceType$acts$map.filter(Boolean)) === null || _offenceType$acts$map2 === void 0 ? void 0 : _offenceType$acts$map2.join(", ")) || "";
|
|
15473
|
+
};
|
|
15689
15474
|
const onSubmit = async data => {
|
|
15690
15475
|
var _docData$Challan, _docData$Challan$Docu, _data$offenceType, _data$offenceCategory, _data$offenceSubCateg, _documentsData$docume2, _documentsData$docume3, _documentsData$docume4, _documentsData$docume5;
|
|
15691
15476
|
let missingDocs = [];
|
|
15477
|
+
const actString = getActs(data === null || data === void 0 ? void 0 : data.offenceType, OffenceActData);
|
|
15692
15478
|
docData === null || docData === void 0 ? void 0 : (_docData$Challan = docData.Challan) === null || _docData$Challan === void 0 ? void 0 : (_docData$Challan$Docu = _docData$Challan.Documents) === null || _docData$Challan$Docu === void 0 ? void 0 : _docData$Challan$Docu.forEach(doc => {
|
|
15693
15479
|
if (doc.required) {
|
|
15694
15480
|
var _documentsData$docume;
|
|
@@ -15722,7 +15508,8 @@ const ChallanStepperForm = () => {
|
|
|
15722
15508
|
}],
|
|
15723
15509
|
additionalDetail: {
|
|
15724
15510
|
latitude: documentsData === null || documentsData === void 0 ? void 0 : (_documentsData$docume2 = documentsData.documents) === null || _documentsData$docume2 === void 0 ? void 0 : (_documentsData$docume3 = _documentsData$docume2[1]) === null || _documentsData$docume3 === void 0 ? void 0 : _documentsData$docume3.latitude,
|
|
15725
|
-
longitude: documentsData === null || documentsData === void 0 ? void 0 : (_documentsData$docume4 = documentsData.documents) === null || _documentsData$docume4 === void 0 ? void 0 : (_documentsData$docume5 = _documentsData$docume4[1]) === null || _documentsData$docume5 === void 0 ? void 0 : _documentsData$docume5.longitude
|
|
15511
|
+
longitude: documentsData === null || documentsData === void 0 ? void 0 : (_documentsData$docume4 = documentsData.documents) === null || _documentsData$docume4 === void 0 ? void 0 : (_documentsData$docume5 = _documentsData$docume4[1]) === null || _documentsData$docume5 === void 0 ? void 0 : _documentsData$docume5.longitude,
|
|
15512
|
+
offenceActs: actString
|
|
15726
15513
|
},
|
|
15727
15514
|
documents: documentsData === null || documentsData === void 0 ? void 0 : documentsData.documents,
|
|
15728
15515
|
workflow: {
|
|
@@ -15765,48 +15552,25 @@ const ChallanStepperForm = () => {
|
|
|
15765
15552
|
const filterRates = OffenceRates === null || OffenceRates === void 0 ? void 0 : (_OffenceRates$Challan = OffenceRates.Challan) === null || _OffenceRates$Challan === void 0 ? void 0 : (_OffenceRates$Challan2 = _OffenceRates$Challan.Rates) === null || _OffenceRates$Challan2 === void 0 ? void 0 : _OffenceRates$Challan2.filter(item => (item === null || item === void 0 ? void 0 : item.offenceTypeId) == (val === null || val === void 0 ? void 0 : val.id));
|
|
15766
15553
|
setValue("amount", filterRates === null || filterRates === void 0 ? void 0 : (_filterRates$ = filterRates[0]) === null || _filterRates$ === void 0 ? void 0 : _filterRates$.amount);
|
|
15767
15554
|
};
|
|
15555
|
+
const handleViolation = e => {
|
|
15556
|
+
var _OffenceTypeData$Chal, _OffenceTypeData$Chal2;
|
|
15557
|
+
const filterData = OffenceTypeData === null || OffenceTypeData === void 0 ? void 0 : (_OffenceTypeData$Chal = OffenceTypeData.Challan) === null || _OffenceTypeData$Chal === void 0 ? void 0 : (_OffenceTypeData$Chal2 = _OffenceTypeData$Chal.OffenceType) === null || _OffenceTypeData$Chal2 === void 0 ? void 0 : _OffenceTypeData$Chal2.filter(item => item.subCategoryId == (e === null || e === void 0 ? void 0 : e.id));
|
|
15558
|
+
setViolationData(filterData);
|
|
15559
|
+
};
|
|
15768
15560
|
return /*#__PURE__*/React.createElement("div", {
|
|
15769
|
-
className: "card"
|
|
15770
|
-
style: {
|
|
15771
|
-
display: "flex",
|
|
15772
|
-
flexDirection: "column",
|
|
15773
|
-
justifyContent: "center",
|
|
15774
|
-
alignItems: "center",
|
|
15775
|
-
minHeight: "100vh",
|
|
15776
|
-
background: "#f9f9f9"
|
|
15777
|
-
}
|
|
15561
|
+
className: "card custom-challan-card"
|
|
15778
15562
|
}, /*#__PURE__*/React.createElement("div", {
|
|
15779
|
-
|
|
15780
|
-
width: "100%",
|
|
15781
|
-
maxWidth: "600px",
|
|
15782
|
-
background: "#fff",
|
|
15783
|
-
padding: "30px",
|
|
15784
|
-
borderRadius: "12px",
|
|
15785
|
-
boxShadow: "0 4px 15px rgba(0, 0, 0, 0.1)"
|
|
15786
|
-
}
|
|
15563
|
+
className: "challan-stepper-parent-component"
|
|
15787
15564
|
}, /*#__PURE__*/React.createElement(CardHeader, {
|
|
15788
|
-
styles: {
|
|
15789
|
-
fontSize: "28px",
|
|
15790
|
-
fontWeight: "400",
|
|
15791
|
-
color: "#1C1D1F"
|
|
15792
|
-
},
|
|
15793
15565
|
divider: true
|
|
15794
15566
|
}, t("CREATE_CHALLAN")), /*#__PURE__*/React.createElement("form", {
|
|
15795
15567
|
onSubmit: handleSubmit(onSubmit)
|
|
15796
|
-
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
15797
|
-
style: {
|
|
15798
|
-
fontWeight: "bold",
|
|
15799
|
-
paddingBottom: "30px",
|
|
15800
|
-
fontSize: "25px"
|
|
15801
|
-
}
|
|
15802
|
-
}, t("CHALLAN_OFFENDER_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
15568
|
+
}, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_OFFENDER_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
15803
15569
|
style: {
|
|
15804
15570
|
width: "100%"
|
|
15805
15571
|
}
|
|
15806
15572
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("NOC_APPLICANT_MOBILE_NO_LABEL")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
15807
|
-
|
|
15808
|
-
color: "red"
|
|
15809
|
-
}
|
|
15573
|
+
className: "requiredField"
|
|
15810
15574
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
15811
15575
|
control: control,
|
|
15812
15576
|
name: "mobileNumber",
|
|
@@ -15832,17 +15596,9 @@ const ChallanStepperForm = () => {
|
|
|
15832
15596
|
t: t
|
|
15833
15597
|
})
|
|
15834
15598
|
}), (errors === null || errors === void 0 ? void 0 : errors.mobileNumber) && /*#__PURE__*/React.createElement("p", {
|
|
15835
|
-
|
|
15836
|
-
|
|
15837
|
-
|
|
15838
|
-
}, errors.mobileNumber.message)), /*#__PURE__*/React.createElement("div", {
|
|
15839
|
-
style: {
|
|
15840
|
-
marginBottom: "20px"
|
|
15841
|
-
}
|
|
15842
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
15843
|
-
style: {
|
|
15844
|
-
color: "red"
|
|
15845
|
-
}
|
|
15599
|
+
className: "requiredField"
|
|
15600
|
+
}, errors.mobileNumber.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
15601
|
+
className: "requiredField"
|
|
15846
15602
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
15847
15603
|
control: control,
|
|
15848
15604
|
name: "name",
|
|
@@ -15856,9 +15612,6 @@ const ChallanStepperForm = () => {
|
|
|
15856
15612
|
render: props => {
|
|
15857
15613
|
var _errors$name;
|
|
15858
15614
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
15859
|
-
style: {
|
|
15860
|
-
marginBottom: 0
|
|
15861
|
-
},
|
|
15862
15615
|
value: props.value,
|
|
15863
15616
|
error: errors === null || errors === void 0 ? void 0 : (_errors$name = errors.name) === null || _errors$name === void 0 ? void 0 : _errors$name.message,
|
|
15864
15617
|
onChange: e => {
|
|
@@ -15871,17 +15624,9 @@ const ChallanStepperForm = () => {
|
|
|
15871
15624
|
});
|
|
15872
15625
|
}
|
|
15873
15626
|
}), (errors === null || errors === void 0 ? void 0 : errors.name) && /*#__PURE__*/React.createElement("p", {
|
|
15874
|
-
|
|
15875
|
-
|
|
15876
|
-
|
|
15877
|
-
}, errors.name.message)), /*#__PURE__*/React.createElement("div", {
|
|
15878
|
-
style: {
|
|
15879
|
-
marginBottom: "20px"
|
|
15880
|
-
}
|
|
15881
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_COMMON_COL_ADDRESS")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
15882
|
-
style: {
|
|
15883
|
-
color: "red"
|
|
15884
|
-
}
|
|
15627
|
+
className: "requiredField"
|
|
15628
|
+
}, errors.name.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_COMMON_COL_ADDRESS")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
15629
|
+
className: "requiredField"
|
|
15885
15630
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
15886
15631
|
control: control,
|
|
15887
15632
|
name: "address",
|
|
@@ -15893,9 +15638,6 @@ const ChallanStepperForm = () => {
|
|
|
15893
15638
|
}
|
|
15894
15639
|
},
|
|
15895
15640
|
render: props => /*#__PURE__*/React.createElement(TextArea, {
|
|
15896
|
-
style: {
|
|
15897
|
-
marginBottom: 0
|
|
15898
|
-
},
|
|
15899
15641
|
name: "address",
|
|
15900
15642
|
value: props.value,
|
|
15901
15643
|
onChange: e => {
|
|
@@ -15907,17 +15649,9 @@ const ChallanStepperForm = () => {
|
|
|
15907
15649
|
t: t
|
|
15908
15650
|
})
|
|
15909
15651
|
}), (errors === null || errors === void 0 ? void 0 : errors.address) && /*#__PURE__*/React.createElement("p", {
|
|
15910
|
-
|
|
15911
|
-
|
|
15912
|
-
|
|
15913
|
-
}, errors.address.message)), /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
15914
|
-
style: {
|
|
15915
|
-
marginTop: "20px"
|
|
15916
|
-
}
|
|
15917
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_OFFENCE_CATEGORY"), " ", /*#__PURE__*/React.createElement("span", {
|
|
15918
|
-
style: {
|
|
15919
|
-
color: "red"
|
|
15920
|
-
}
|
|
15652
|
+
className: "requiredField"
|
|
15653
|
+
}, errors.address.message)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_OFFENCE_CATEGORY"), " ", /*#__PURE__*/React.createElement("span", {
|
|
15654
|
+
className: "requiredField"
|
|
15921
15655
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
15922
15656
|
control: control,
|
|
15923
15657
|
name: "offenceCategory",
|
|
@@ -15928,10 +15662,6 @@ const ChallanStepperForm = () => {
|
|
|
15928
15662
|
render: props => {
|
|
15929
15663
|
var _categoryData$Challan;
|
|
15930
15664
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
15931
|
-
style: {
|
|
15932
|
-
marginBottom: 0,
|
|
15933
|
-
width: "100%"
|
|
15934
|
-
},
|
|
15935
15665
|
className: "form-field",
|
|
15936
15666
|
select: props.onChange,
|
|
15937
15667
|
selected: props.value,
|
|
@@ -15941,17 +15671,9 @@ const ChallanStepperForm = () => {
|
|
|
15941
15671
|
});
|
|
15942
15672
|
}
|
|
15943
15673
|
}), errors.offenceCategory && /*#__PURE__*/React.createElement("p", {
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
}, errors.offenceCategory.message)), /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
15948
|
-
style: {
|
|
15949
|
-
marginTop: "20px"
|
|
15950
|
-
}
|
|
15951
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_OFFENCE_SUB_CATEGORY"), " ", /*#__PURE__*/React.createElement("span", {
|
|
15952
|
-
style: {
|
|
15953
|
-
color: "red"
|
|
15954
|
-
}
|
|
15674
|
+
className: "requiredField"
|
|
15675
|
+
}, errors.offenceCategory.message)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_OFFENCE_SUB_CATEGORY"), " ", /*#__PURE__*/React.createElement("span", {
|
|
15676
|
+
className: "requiredField"
|
|
15955
15677
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
15956
15678
|
control: control,
|
|
15957
15679
|
name: "offenceSubCategory",
|
|
@@ -15962,12 +15684,9 @@ const ChallanStepperForm = () => {
|
|
|
15962
15684
|
render: props => {
|
|
15963
15685
|
var _subCategoryData$Chal;
|
|
15964
15686
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
15965
|
-
style: {
|
|
15966
|
-
marginBottom: 0,
|
|
15967
|
-
width: "100%"
|
|
15968
|
-
},
|
|
15969
15687
|
className: "form-field",
|
|
15970
15688
|
select: e => {
|
|
15689
|
+
handleViolation(e);
|
|
15971
15690
|
props.onChange(e);
|
|
15972
15691
|
},
|
|
15973
15692
|
selected: props.value,
|
|
@@ -15977,17 +15696,9 @@ const ChallanStepperForm = () => {
|
|
|
15977
15696
|
});
|
|
15978
15697
|
}
|
|
15979
15698
|
}), errors.offenceSubCategory && /*#__PURE__*/React.createElement("p", {
|
|
15980
|
-
|
|
15981
|
-
|
|
15982
|
-
|
|
15983
|
-
}, errors.offenceSubCategory.message)), /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
15984
|
-
style: {
|
|
15985
|
-
marginTop: "20px"
|
|
15986
|
-
}
|
|
15987
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_TYPE_OFFENCE"), " ", /*#__PURE__*/React.createElement("span", {
|
|
15988
|
-
style: {
|
|
15989
|
-
color: "red"
|
|
15990
|
-
}
|
|
15699
|
+
className: "requiredField"
|
|
15700
|
+
}, errors.offenceSubCategory.message)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_TYPE_OFFENCE"), " ", /*#__PURE__*/React.createElement("span", {
|
|
15701
|
+
className: "requiredField"
|
|
15991
15702
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
15992
15703
|
control: control,
|
|
15993
15704
|
name: "offenceType",
|
|
@@ -15995,43 +15706,26 @@ const ChallanStepperForm = () => {
|
|
|
15995
15706
|
rules: {
|
|
15996
15707
|
required: t("CHALLAN_TYPE_OFFENCE_REQUIRED")
|
|
15997
15708
|
},
|
|
15998
|
-
render: props => {
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
},
|
|
16010
|
-
selected: props.value,
|
|
16011
|
-
option: OffenceTypeData === null || OffenceTypeData === void 0 ? void 0 : (_OffenceTypeData$Chal = OffenceTypeData.Challan) === null || _OffenceTypeData$Chal === void 0 ? void 0 : _OffenceTypeData$Chal.OffenceType,
|
|
16012
|
-
optionKey: "name",
|
|
16013
|
-
t: t
|
|
16014
|
-
});
|
|
16015
|
-
}
|
|
15709
|
+
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
15710
|
+
className: "form-field",
|
|
15711
|
+
select: e => {
|
|
15712
|
+
props.onChange(e);
|
|
15713
|
+
handleRates(e);
|
|
15714
|
+
},
|
|
15715
|
+
selected: props.value,
|
|
15716
|
+
option: getViolationData,
|
|
15717
|
+
optionKey: "name",
|
|
15718
|
+
t: t
|
|
15719
|
+
})
|
|
16016
15720
|
}), errors.offenceType && /*#__PURE__*/React.createElement("p", {
|
|
16017
|
-
|
|
16018
|
-
|
|
16019
|
-
}
|
|
16020
|
-
}, errors.offenceType.message)), /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
16021
|
-
style: {
|
|
16022
|
-
marginTop: "20px"
|
|
16023
|
-
}
|
|
16024
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, `${t("DEFAULT_CHALLAN_AMOUNT")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
15721
|
+
className: "requiredField"
|
|
15722
|
+
}, errors.offenceType.message)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("DEFAULT_CHALLAN_AMOUNT")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
16025
15723
|
control: control,
|
|
16026
15724
|
name: "amount",
|
|
16027
15725
|
render: props => {
|
|
16028
15726
|
var _errors$name2;
|
|
16029
15727
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
16030
15728
|
type: "number",
|
|
16031
|
-
style: {
|
|
16032
|
-
marginBottom: 0,
|
|
16033
|
-
width: "100%"
|
|
16034
|
-
},
|
|
16035
15729
|
value: props.value,
|
|
16036
15730
|
error: errors === null || errors === void 0 ? void 0 : (_errors$name2 = errors.name) === null || _errors$name2 === void 0 ? void 0 : _errors$name2.message,
|
|
16037
15731
|
disable: true,
|
|
@@ -16044,21 +15738,9 @@ const ChallanStepperForm = () => {
|
|
|
16044
15738
|
t: t
|
|
16045
15739
|
});
|
|
16046
15740
|
}
|
|
16047
|
-
}))), /*#__PURE__*/React.createElement(CardLabel, {
|
|
16048
|
-
|
|
16049
|
-
|
|
16050
|
-
paddingTop: "30px",
|
|
16051
|
-
fontSize: "25px"
|
|
16052
|
-
}
|
|
16053
|
-
}, t("CHALLAN_DOCUMENTS"), " ", /*#__PURE__*/React.createElement("span", {
|
|
16054
|
-
style: {
|
|
16055
|
-
color: "red"
|
|
16056
|
-
}
|
|
16057
|
-
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
16058
|
-
style: {
|
|
16059
|
-
marginTop: "20px"
|
|
16060
|
-
}
|
|
16061
|
-
}, /*#__PURE__*/React.createElement(ChallanDocuments, {
|
|
15741
|
+
}))), /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_DOCUMENTS"), " ", /*#__PURE__*/React.createElement("span", {
|
|
15742
|
+
className: "requiredField"
|
|
15743
|
+
}, "*")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ChallanDocuments, {
|
|
16062
15744
|
t: t,
|
|
16063
15745
|
config: {
|
|
16064
15746
|
key: "documents"
|
|
@@ -16084,7 +15766,7 @@ const ChallanStepperForm = () => {
|
|
|
16084
15766
|
setShowToast(null);
|
|
16085
15767
|
},
|
|
16086
15768
|
isDleteBtn: "true"
|
|
16087
|
-
}), (OffenceRatesLoading || loader || categoryLoading || subCategoryLoading || OffenceTypeLoading) && /*#__PURE__*/React.createElement(Loader, {
|
|
15769
|
+
}), (OffenceRatesLoading || loader || categoryLoading || subCategoryLoading || OffenceTypeLoading || OffenceActLoading) && /*#__PURE__*/React.createElement(Loader, {
|
|
16088
15770
|
page: true
|
|
16089
15771
|
}));
|
|
16090
15772
|
};
|
|
@@ -16128,13 +15810,9 @@ const OffenderDetails = ({
|
|
|
16128
15810
|
width: "50%"
|
|
16129
15811
|
}
|
|
16130
15812
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16131
|
-
|
|
16132
|
-
marginBottom: "20px"
|
|
16133
|
-
}
|
|
15813
|
+
className: "challan-bottom-style"
|
|
16134
15814
|
}, /*#__PURE__*/React.createElement(CardLabel, null, `${t("NOC_APPLICANT_MOBILE_NO_LABEL")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
16135
|
-
|
|
16136
|
-
color: "red"
|
|
16137
|
-
}
|
|
15815
|
+
className: "requiredField"
|
|
16138
15816
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
16139
15817
|
control: control,
|
|
16140
15818
|
name: "mobileNumber",
|
|
@@ -16146,26 +15824,17 @@ const OffenderDetails = ({
|
|
|
16146
15824
|
}
|
|
16147
15825
|
},
|
|
16148
15826
|
render: props => /*#__PURE__*/React.createElement(MobileNumber, {
|
|
16149
|
-
style: {
|
|
16150
|
-
marginBottom: 0
|
|
16151
|
-
},
|
|
16152
15827
|
value: props.value,
|
|
16153
15828
|
onChange: props.onChange,
|
|
16154
15829
|
onBlur: props.onBlur,
|
|
16155
15830
|
t: t
|
|
16156
15831
|
})
|
|
16157
15832
|
}), (errors === null || errors === void 0 ? void 0 : errors.mobileNumber) && /*#__PURE__*/React.createElement("p", {
|
|
16158
|
-
|
|
16159
|
-
color: "red"
|
|
16160
|
-
}
|
|
15833
|
+
className: "requiredField"
|
|
16161
15834
|
}, errors.mobileNumber.message)), /*#__PURE__*/React.createElement("div", {
|
|
16162
|
-
|
|
16163
|
-
marginBottom: "20px"
|
|
16164
|
-
}
|
|
15835
|
+
className: "challan-bottom-style"
|
|
16165
15836
|
}, /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
16166
|
-
|
|
16167
|
-
color: "red"
|
|
16168
|
-
}
|
|
15837
|
+
className: "requiredField"
|
|
16169
15838
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
16170
15839
|
control: control,
|
|
16171
15840
|
name: "name",
|
|
@@ -16179,9 +15848,6 @@ const OffenderDetails = ({
|
|
|
16179
15848
|
render: props => {
|
|
16180
15849
|
var _errors$name;
|
|
16181
15850
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
16182
|
-
style: {
|
|
16183
|
-
marginBottom: 0
|
|
16184
|
-
},
|
|
16185
15851
|
value: props.value,
|
|
16186
15852
|
error: errors === null || errors === void 0 ? void 0 : (_errors$name = errors.name) === null || _errors$name === void 0 ? void 0 : _errors$name.message,
|
|
16187
15853
|
onChange: e => {
|
|
@@ -16194,17 +15860,11 @@ const OffenderDetails = ({
|
|
|
16194
15860
|
});
|
|
16195
15861
|
}
|
|
16196
15862
|
}), (errors === null || errors === void 0 ? void 0 : errors.name) && /*#__PURE__*/React.createElement("p", {
|
|
16197
|
-
|
|
16198
|
-
color: "red"
|
|
16199
|
-
}
|
|
15863
|
+
className: "requiredField"
|
|
16200
15864
|
}, errors.name.message)), /*#__PURE__*/React.createElement("div", {
|
|
16201
|
-
|
|
16202
|
-
marginBottom: "20px"
|
|
16203
|
-
}
|
|
15865
|
+
className: "challan-bottom-style"
|
|
16204
15866
|
}, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_COMMON_COL_ADDRESS")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
16205
|
-
|
|
16206
|
-
color: "red"
|
|
16207
|
-
}
|
|
15867
|
+
className: "requiredField"
|
|
16208
15868
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
16209
15869
|
control: control,
|
|
16210
15870
|
name: "address",
|
|
@@ -16216,9 +15876,6 @@ const OffenderDetails = ({
|
|
|
16216
15876
|
}
|
|
16217
15877
|
},
|
|
16218
15878
|
render: props => /*#__PURE__*/React.createElement(TextArea, {
|
|
16219
|
-
style: {
|
|
16220
|
-
marginBottom: 0
|
|
16221
|
-
},
|
|
16222
15879
|
name: "address",
|
|
16223
15880
|
value: props.value,
|
|
16224
15881
|
onChange: e => {
|
|
@@ -16230,9 +15887,7 @@ const OffenderDetails = ({
|
|
|
16230
15887
|
t: t
|
|
16231
15888
|
})
|
|
16232
15889
|
}), (errors === null || errors === void 0 ? void 0 : errors.address) && /*#__PURE__*/React.createElement("p", {
|
|
16233
|
-
|
|
16234
|
-
color: "red"
|
|
16235
|
-
}
|
|
15890
|
+
className: "requiredField"
|
|
16236
15891
|
}, errors.address.message))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
16237
15892
|
className: "submit-bar-back",
|
|
16238
15893
|
label: "Back",
|
|
@@ -16333,9 +15988,7 @@ const OffenceDetails = ({
|
|
|
16333
15988
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
16334
15989
|
className: "card-label-smaller"
|
|
16335
15990
|
}, t("CHB_PURPOSE_DESCRIPTION"), " ", /*#__PURE__*/React.createElement("span", {
|
|
16336
|
-
|
|
16337
|
-
color: "red"
|
|
16338
|
-
}
|
|
15991
|
+
className: "requiredField"
|
|
16339
15992
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
16340
15993
|
control: control,
|
|
16341
15994
|
name: "offenceType",
|
|
@@ -16343,9 +15996,6 @@ const OffenceDetails = ({
|
|
|
16343
15996
|
render: props => {
|
|
16344
15997
|
var _OffenceTypeData$Chal;
|
|
16345
15998
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
16346
|
-
style: {
|
|
16347
|
-
marginBottom: 0
|
|
16348
|
-
},
|
|
16349
15999
|
className: "form-field",
|
|
16350
16000
|
select: props.onChange,
|
|
16351
16001
|
selected: props.value,
|
|
@@ -16355,17 +16005,9 @@ const OffenceDetails = ({
|
|
|
16355
16005
|
});
|
|
16356
16006
|
}
|
|
16357
16007
|
}), errors.offenceType && /*#__PURE__*/React.createElement("p", {
|
|
16358
|
-
|
|
16359
|
-
|
|
16360
|
-
|
|
16361
|
-
}, errors.offenceType.message)), /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
16362
|
-
style: {
|
|
16363
|
-
marginTop: "20px"
|
|
16364
|
-
}
|
|
16365
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_OFFENCE_CATEGORY"), " ", /*#__PURE__*/React.createElement("span", {
|
|
16366
|
-
style: {
|
|
16367
|
-
color: "red"
|
|
16368
|
-
}
|
|
16008
|
+
className: "requiredField"
|
|
16009
|
+
}, errors.offenceType.message)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_OFFENCE_CATEGORY"), " ", /*#__PURE__*/React.createElement("span", {
|
|
16010
|
+
className: "requiredField"
|
|
16369
16011
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
16370
16012
|
control: control,
|
|
16371
16013
|
name: "offenceCategory",
|
|
@@ -16373,9 +16015,6 @@ const OffenceDetails = ({
|
|
|
16373
16015
|
render: props => {
|
|
16374
16016
|
var _categoryData$Challan;
|
|
16375
16017
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
16376
|
-
style: {
|
|
16377
|
-
marginBottom: 0
|
|
16378
|
-
},
|
|
16379
16018
|
className: "form-field",
|
|
16380
16019
|
select: props.onChange,
|
|
16381
16020
|
selected: props.value,
|
|
@@ -16385,17 +16024,9 @@ const OffenceDetails = ({
|
|
|
16385
16024
|
});
|
|
16386
16025
|
}
|
|
16387
16026
|
}), errors.offenceCategory && /*#__PURE__*/React.createElement("p", {
|
|
16388
|
-
|
|
16389
|
-
|
|
16390
|
-
|
|
16391
|
-
}, errors.offenceCategory.message)), /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
16392
|
-
style: {
|
|
16393
|
-
marginTop: "20px"
|
|
16394
|
-
}
|
|
16395
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_OFFENCE_SUB_CATEGORY"), " ", /*#__PURE__*/React.createElement("span", {
|
|
16396
|
-
style: {
|
|
16397
|
-
color: "red"
|
|
16398
|
-
}
|
|
16027
|
+
className: "requiredField"
|
|
16028
|
+
}, errors.offenceCategory.message)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("CHALLAN_OFFENCE_SUB_CATEGORY"), " ", /*#__PURE__*/React.createElement("span", {
|
|
16029
|
+
className: "requiredField"
|
|
16399
16030
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
16400
16031
|
control: control,
|
|
16401
16032
|
name: "offenceSubCategory",
|
|
@@ -16403,9 +16034,6 @@ const OffenceDetails = ({
|
|
|
16403
16034
|
render: props => {
|
|
16404
16035
|
var _subCategoryData$Chal;
|
|
16405
16036
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
16406
|
-
style: {
|
|
16407
|
-
marginBottom: 0
|
|
16408
|
-
},
|
|
16409
16037
|
className: "form-field",
|
|
16410
16038
|
select: props.onChange,
|
|
16411
16039
|
selected: props.value,
|
|
@@ -16415,27 +16043,17 @@ const OffenceDetails = ({
|
|
|
16415
16043
|
});
|
|
16416
16044
|
}
|
|
16417
16045
|
}), errors.offenceSubCategory && /*#__PURE__*/React.createElement("p", {
|
|
16418
|
-
|
|
16419
|
-
color: "red"
|
|
16420
|
-
}
|
|
16046
|
+
className: "requiredField"
|
|
16421
16047
|
}, errors.offenceSubCategory.message)), /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
16422
|
-
|
|
16423
|
-
width: "50%",
|
|
16424
|
-
marginTop: "20px"
|
|
16425
|
-
}
|
|
16048
|
+
className: "challan-amount-field"
|
|
16426
16049
|
}, /*#__PURE__*/React.createElement(CardLabel, null, `${t("CHALLAN_AMOUNT")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
16427
|
-
|
|
16428
|
-
color: "red"
|
|
16429
|
-
}
|
|
16050
|
+
className: "requiredField"
|
|
16430
16051
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
16431
16052
|
control: control,
|
|
16432
16053
|
name: "challanAmount",
|
|
16433
16054
|
render: props => {
|
|
16434
16055
|
var _errors$name;
|
|
16435
16056
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
16436
|
-
style: {
|
|
16437
|
-
marginBottom: 0
|
|
16438
|
-
},
|
|
16439
16057
|
value: props.value,
|
|
16440
16058
|
error: errors === null || errors === void 0 ? void 0 : (_errors$name = errors.name) === null || _errors$name === void 0 ? void 0 : _errors$name.message,
|
|
16441
16059
|
onChange: e => {
|
|
@@ -16448,9 +16066,7 @@ const OffenceDetails = ({
|
|
|
16448
16066
|
});
|
|
16449
16067
|
}
|
|
16450
16068
|
}), (errors === null || errors === void 0 ? void 0 : errors.challanAmount) && /*#__PURE__*/React.createElement("p", {
|
|
16451
|
-
|
|
16452
|
-
color: "red"
|
|
16453
|
-
}
|
|
16069
|
+
className: "requiredField"
|
|
16454
16070
|
}, errors.challanAmount.message))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
16455
16071
|
className: "submit-bar-back",
|
|
16456
16072
|
label: "Back",
|
|
@@ -16526,7 +16142,7 @@ const ChallanStepFormThree = ({
|
|
|
16526
16142
|
function goNext(finalData) {
|
|
16527
16143
|
var _docData$CHB;
|
|
16528
16144
|
console.log("Current Data", finalData);
|
|
16529
|
-
console.log("data
|
|
16145
|
+
console.log("data||||?....=====", docData === null || docData === void 0 ? void 0 : (_docData$CHB = docData.CHB) === null || _docData$CHB === void 0 ? void 0 : _docData$CHB.Documents);
|
|
16530
16146
|
const missingFields = validation(finalData);
|
|
16531
16147
|
if (missingFields.length > 0) {
|
|
16532
16148
|
setError(`${t("CHB_MESSAGE_" + missingFields[0].replace(".", "_").toUpperCase())}`);
|
|
@@ -16672,21 +16288,11 @@ function ChallanSummary({
|
|
|
16672
16288
|
t: t,
|
|
16673
16289
|
data: slotlistRows,
|
|
16674
16290
|
columns: columns,
|
|
16675
|
-
|
|
16676
|
-
style: {
|
|
16677
|
-
minWidth: "150px",
|
|
16678
|
-
padding: "10px",
|
|
16679
|
-
fontSize: "16px",
|
|
16680
|
-
paddingLeft: "20px"
|
|
16681
|
-
}
|
|
16682
|
-
}),
|
|
16291
|
+
className: "challan-application-table",
|
|
16683
16292
|
isPaginationRequired: false,
|
|
16684
16293
|
totalRecords: slotlistRows.length
|
|
16685
16294
|
}), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
16686
|
-
|
|
16687
|
-
fontSize: "24px",
|
|
16688
|
-
marginTop: "30px"
|
|
16689
|
-
}
|
|
16295
|
+
className: "challan-custom-header"
|
|
16690
16296
|
}, t("CS_COMMON_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Card, null, docs === null || docs === void 0 ? void 0 : docs.map((doc, index) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ChallanDocument, {
|
|
16691
16297
|
value: docs,
|
|
16692
16298
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
@@ -16988,12 +16594,7 @@ const ChallanResponseCitizen = props => {
|
|
|
16988
16594
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16989
16595
|
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
16990
16596
|
})), t("Challan_Notice"))), /*#__PURE__*/React.createElement(ActionBar, {
|
|
16991
|
-
|
|
16992
|
-
display: "flex",
|
|
16993
|
-
justifyContent: "flex-end",
|
|
16994
|
-
alignItems: "baseline",
|
|
16995
|
-
gap: " 20px"
|
|
16996
|
-
}
|
|
16597
|
+
className: "challan-response-action-bar"
|
|
16997
16598
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
16998
16599
|
label: t("CORE_COMMON_GO_TO_HOME"),
|
|
16999
16600
|
onSubmit: onSubmit
|