@mseva/digit-ui-module-ndc 1.0.72-dev.1.11 → 1.0.72-dev.1.12
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 +65 -92
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2263,7 +2263,7 @@ function NewApplicationTimeline({
|
|
|
2263
2263
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2264
2264
|
className: "custom-timeline-entries"
|
|
2265
2265
|
}, sortedData === null || sortedData === void 0 ? void 0 : sortedData.map((item, index) => {
|
|
2266
|
-
var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$assignes$2, _item$assignes$3, _item$wfDocuments, _item$wfDocuments2;
|
|
2266
|
+
var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$assigner5, _item$assigner6, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$assignes$2, _item$assignes$3, _item$wfDocuments, _item$wfDocuments2;
|
|
2267
2267
|
return /*#__PURE__*/React.createElement("div", {
|
|
2268
2268
|
key: index,
|
|
2269
2269
|
className: "custom-timeline-entry"
|
|
@@ -2300,9 +2300,13 @@ function NewApplicationTimeline({
|
|
|
2300
2300
|
className: "custom-officer-info"
|
|
2301
2301
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2302
2302
|
className: "custom-officer-name"
|
|
2303
|
-
}, (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")
|
|
2303
|
+
}, (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", {
|
|
2304
2304
|
className: "custom-officer-name"
|
|
2305
|
-
}, t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName])))
|
|
2305
|
+
}, "- ", 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", {
|
|
2306
|
+
className: "custom-officer-email"
|
|
2307
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
2308
|
+
className: "custom-email-label"
|
|
2309
|
+
}, 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", {
|
|
2306
2310
|
className: "custom-card-column custom-card-column-mid"
|
|
2307
2311
|
}, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
|
|
2308
2312
|
className: "custom-action-title"
|
|
@@ -2444,7 +2448,7 @@ const getAcknowledgementData = async (application, formattedAddress, tenantInfo,
|
|
|
2444
2448
|
bold: true,
|
|
2445
2449
|
fontSize: 9
|
|
2446
2450
|
}, {
|
|
2447
|
-
text: " (s/o, d/o) ",
|
|
2451
|
+
text: " (s/o, d/o, w/o) ",
|
|
2448
2452
|
bold: false,
|
|
2449
2453
|
fontSize: 9
|
|
2450
2454
|
}, {
|
|
@@ -2736,7 +2740,7 @@ const ApplicationOverview = () => {
|
|
|
2736
2740
|
user = userInfo === null || userInfo === void 0 ? void 0 : userInfo.value;
|
|
2737
2741
|
}
|
|
2738
2742
|
const userRoles = (_user = user) === null || _user === void 0 ? void 0 : (_user$info = _user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles = _user$info.roles) === null || _user$info$roles === void 0 ? void 0 : _user$info$roles.map(e => e.code);
|
|
2739
|
-
const isCemp = (_user2 = user) === null || _user2 === void 0 ? void 0 : (_user2$info = _user2.info) === null || _user2$info === void 0 ? void 0 : (_user2$info$roles$fin = _user2$info.roles.find(role => role.code === "
|
|
2743
|
+
const isCemp = (_user2 = user) === null || _user2 === void 0 ? void 0 : (_user2$info = _user2.info) === null || _user2$info === void 0 ? void 0 : (_user2$info$roles$fin = _user2$info.roles.find(role => role.code === "NDCCEMP")) === null || _user2$info$roles$fin === void 0 ? void 0 : _user2$info$roles$fin.code;
|
|
2740
2744
|
let actions = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.actionState) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.nextActions) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.filter(e => {
|
|
2741
2745
|
return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
|
|
2742
2746
|
var _e$roles;
|
|
@@ -3133,7 +3137,7 @@ const ApplicationOverview = () => {
|
|
|
3133
3137
|
}) : /*#__PURE__*/React.createElement("div", null, t("TL_NO_DOCUMENTS_MSG")))), /*#__PURE__*/React.createElement(NewApplicationTimeline, {
|
|
3134
3138
|
workflowDetails: workflowDetails,
|
|
3135
3139
|
t: t
|
|
3136
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A26 = applicationDetails.Applications) === null || _applicationDetails$A26 === void 0 ? void 0 : (_applicationDetails$A27 = _applicationDetails$A26[0]) === null || _applicationDetails$A27 === void 0 ? void 0 : _applicationDetails$A27.applicationStatus) !== "INITIATED" && (actions === null || actions === void 0 ? void 0 : actions.length)
|
|
3140
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A26 = applicationDetails.Applications) === null || _applicationDetails$A26 === void 0 ? void 0 : (_applicationDetails$A27 = _applicationDetails$A26[0]) === null || _applicationDetails$A27 === void 0 ? void 0 : _applicationDetails$A27.applicationStatus) !== "INITIATED" && (actions === null || actions === void 0 ? void 0 : actions.length) && /*#__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, {
|
|
3137
3141
|
localeKeyPrefix: `WF_EDITRENEWAL`,
|
|
3138
3142
|
options: actions,
|
|
3139
3143
|
optionKey: "action",
|
|
@@ -12498,11 +12502,10 @@ const NewNDCStepFormOne = ({
|
|
|
12498
12502
|
} else createApplication(data);
|
|
12499
12503
|
}
|
|
12500
12504
|
const createApplication = async data => {
|
|
12501
|
-
var _Digit$UserService$ge,
|
|
12505
|
+
var _Digit$UserService$ge, _ref, _data$cpt, _data$cpt$details, _ref2, _data$PropertyDetails5, _ref3, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails0, _data$NDCReason2;
|
|
12502
12506
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
12503
12507
|
const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
|
|
12504
|
-
|
|
12505
|
-
const owners = ((data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.owners) || []).map(owner => {
|
|
12508
|
+
const owners = (_ref = (data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : _data$cpt$details.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(owner => {
|
|
12506
12509
|
var _newOwner$name, _newOwner$name$trim, _data$PropertyDetails, _data$PropertyDetails2, _data$PropertyDetails3;
|
|
12507
12510
|
const newOwner = JSON.parse(JSON.stringify(owner));
|
|
12508
12511
|
delete newOwner.status;
|
|
@@ -12513,11 +12516,10 @@ const NewNDCStepFormOne = ({
|
|
|
12513
12516
|
}
|
|
12514
12517
|
return newOwner;
|
|
12515
12518
|
});
|
|
12516
|
-
console.log("owners??==", owners);
|
|
12517
12519
|
console.log("checkData==", data);
|
|
12518
12520
|
const ndcDetails = [];
|
|
12519
|
-
(
|
|
12520
|
-
var _wc$billData, _data$PropertyDetails6, _data$
|
|
12521
|
+
(_ref2 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails5 = data.PropertyDetails) === null || _data$PropertyDetails5 === void 0 ? void 0 : _data$PropertyDetails5.waterConnection) || []) === null || _ref2 === void 0 ? void 0 : _ref2.forEach(wc => {
|
|
12522
|
+
var _wc$billData, _data$PropertyDetails6, _data$cpt2, _data$cpt2$details, _wc$billData2, _wc$billData3;
|
|
12521
12523
|
ndcDetails.push({
|
|
12522
12524
|
uuid: wc === null || wc === void 0 ? void 0 : (_wc$billData = wc.billData) === null || _wc$billData === void 0 ? void 0 : _wc$billData.id,
|
|
12523
12525
|
applicantId: applicantId,
|
|
@@ -12525,14 +12527,14 @@ const NewNDCStepFormOne = ({
|
|
|
12525
12527
|
consumerCode: wc === null || wc === void 0 ? void 0 : wc.connectionNo,
|
|
12526
12528
|
additionalDetails: {
|
|
12527
12529
|
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails6 = data.PropertyDetails) === null || _data$PropertyDetails6 === void 0 ? void 0 : _data$PropertyDetails6.address,
|
|
12528
|
-
propertyType: data === null || data === void 0 ? void 0 : (_data$
|
|
12530
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.usageCategory
|
|
12529
12531
|
},
|
|
12530
12532
|
dueAmount: (wc === null || wc === void 0 ? void 0 : (_wc$billData2 = wc.billData) === null || _wc$billData2 === void 0 ? void 0 : _wc$billData2.totalAmount) || 0,
|
|
12531
12533
|
status: wc === null || wc === void 0 ? void 0 : (_wc$billData3 = wc.billData) === null || _wc$billData3 === void 0 ? void 0 : _wc$billData3.status
|
|
12532
12534
|
});
|
|
12533
12535
|
});
|
|
12534
|
-
(
|
|
12535
|
-
var _sc$billData, _data$PropertyDetails8, _data$
|
|
12536
|
+
(_ref3 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails7 = data.PropertyDetails) === null || _data$PropertyDetails7 === void 0 ? void 0 : _data$PropertyDetails7.sewerageConnection) || []) === null || _ref3 === void 0 ? void 0 : _ref3.forEach(sc => {
|
|
12537
|
+
var _sc$billData, _data$PropertyDetails8, _data$cpt3, _data$cpt3$details, _sc$billData2, _sc$billData3;
|
|
12536
12538
|
ndcDetails.push({
|
|
12537
12539
|
uuid: sc === null || sc === void 0 ? void 0 : (_sc$billData = sc.billData) === null || _sc$billData === void 0 ? void 0 : _sc$billData.id,
|
|
12538
12540
|
applicantId: applicantId,
|
|
@@ -12540,23 +12542,23 @@ const NewNDCStepFormOne = ({
|
|
|
12540
12542
|
consumerCode: sc === null || sc === void 0 ? void 0 : sc.connectionNo,
|
|
12541
12543
|
additionalDetails: {
|
|
12542
12544
|
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails8 = data.PropertyDetails) === null || _data$PropertyDetails8 === void 0 ? void 0 : _data$PropertyDetails8.address,
|
|
12543
|
-
propertyType: data === null || data === void 0 ? void 0 : (_data$
|
|
12545
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt3 = data.cpt) === null || _data$cpt3 === void 0 ? void 0 : (_data$cpt3$details = _data$cpt3.details) === null || _data$cpt3$details === void 0 ? void 0 : _data$cpt3$details.usageCategory
|
|
12544
12546
|
},
|
|
12545
12547
|
dueAmount: (sc === null || sc === void 0 ? void 0 : (_sc$billData2 = sc.billData) === null || _sc$billData2 === void 0 ? void 0 : _sc$billData2.totalAmount) || 0,
|
|
12546
12548
|
status: sc === null || sc === void 0 ? void 0 : (_sc$billData3 = sc.billData) === null || _sc$billData3 === void 0 ? void 0 : _sc$billData3.status
|
|
12547
12549
|
});
|
|
12548
12550
|
});
|
|
12549
12551
|
if (data !== null && data !== void 0 && (_data$PropertyDetails9 = data.PropertyDetails) !== null && _data$PropertyDetails9 !== void 0 && (_data$PropertyDetails0 = _data$PropertyDetails9.propertyBillData) !== null && _data$PropertyDetails0 !== void 0 && _data$PropertyDetails0.billData) {
|
|
12550
|
-
var _data$PropertyDetails1, _data$PropertyDetails10, _data$
|
|
12552
|
+
var _data$PropertyDetails1, _data$PropertyDetails10, _data$cpt4, _data$PropertyDetails11, _data$cpt5, _data$cpt5$details, _data$NDCReason, _data$PropertyDetails12;
|
|
12551
12553
|
const billData = data === null || data === void 0 ? void 0 : (_data$PropertyDetails1 = data.PropertyDetails) === null || _data$PropertyDetails1 === void 0 ? void 0 : (_data$PropertyDetails10 = _data$PropertyDetails1.propertyBillData) === null || _data$PropertyDetails10 === void 0 ? void 0 : _data$PropertyDetails10.billData;
|
|
12552
12554
|
ndcDetails.push({
|
|
12553
12555
|
uuid: billData === null || billData === void 0 ? void 0 : billData.id,
|
|
12554
12556
|
applicantId: applicantId,
|
|
12555
12557
|
businessService: "PT",
|
|
12556
|
-
consumerCode: data === null || data === void 0 ? void 0 : (_data$
|
|
12558
|
+
consumerCode: data === null || data === void 0 ? void 0 : (_data$cpt4 = data.cpt) === null || _data$cpt4 === void 0 ? void 0 : _data$cpt4.id,
|
|
12557
12559
|
additionalDetails: {
|
|
12558
12560
|
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails11 = data.PropertyDetails) === null || _data$PropertyDetails11 === void 0 ? void 0 : _data$PropertyDetails11.address,
|
|
12559
|
-
propertyType: data === null || data === void 0 ? void 0 : (_data$
|
|
12561
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt5 = data.cpt) === null || _data$cpt5 === void 0 ? void 0 : (_data$cpt5$details = _data$cpt5.details) === null || _data$cpt5$details === void 0 ? void 0 : _data$cpt5$details.usageCategory,
|
|
12560
12562
|
reason: data === null || data === void 0 ? void 0 : (_data$NDCReason = data.NDCReason) === null || _data$NDCReason === void 0 ? void 0 : _data$NDCReason.reason,
|
|
12561
12563
|
remarks: data === null || data === void 0 ? void 0 : (_data$PropertyDetails12 = data.PropertyDetails) === null || _data$PropertyDetails12 === void 0 ? void 0 : _data$PropertyDetails12.remarks
|
|
12562
12564
|
},
|
|
@@ -12603,7 +12605,7 @@ const NewNDCStepFormOne = ({
|
|
|
12603
12605
|
}
|
|
12604
12606
|
};
|
|
12605
12607
|
const updateApplication = async data => {
|
|
12606
|
-
var _Digit$UserService$ge2, _checkApiDataCheck$Ap, _checkApiDataCheck$Ap2, _checkFormData$respon3, _checkFormData$respon4, _checkFormData$respon5, _checkFormData$respon6, _checkFormData$respon7, _checkApiDataCheck$Ap3, _checkApiDataCheck$Ap4, _checkFormData$respon8, _checkFormData$respon9, _checkApiDataCheck$Ap5, _checkApiDataCheck$Ap6, _checkFormData$respon0, _checkFormData$respon1, _data$NDCReason3, _data$
|
|
12608
|
+
var _Digit$UserService$ge2, _checkApiDataCheck$Ap, _checkApiDataCheck$Ap2, _checkFormData$respon3, _checkFormData$respon4, _checkFormData$respon5, _checkFormData$respon6, _checkFormData$respon7, _checkApiDataCheck$Ap3, _checkApiDataCheck$Ap4, _checkFormData$respon8, _checkFormData$respon9, _checkApiDataCheck$Ap5, _checkApiDataCheck$Ap6, _checkFormData$respon0, _checkFormData$respon1, _data$NDCReason3, _data$cpt1, _data$cpt1$details, _response$ResponseInf2;
|
|
12607
12609
|
const applicant = ((_Digit$UserService$ge2 = Digit.UserService.getUser()) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.info) || {};
|
|
12608
12610
|
const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
|
|
12609
12611
|
const owners = (checkApiDataCheck === null || checkApiDataCheck === void 0 ? void 0 : (_checkApiDataCheck$Ap = checkApiDataCheck.Applications) === null || _checkApiDataCheck$Ap === void 0 ? void 0 : (_checkApiDataCheck$Ap2 = _checkApiDataCheck$Ap[0]) === null || _checkApiDataCheck$Ap2 === void 0 ? void 0 : _checkApiDataCheck$Ap2.owners) || (checkFormData === null || checkFormData === void 0 ? void 0 : (_checkFormData$respon3 = checkFormData.responseData) === null || _checkFormData$respon3 === void 0 ? void 0 : (_checkFormData$respon4 = _checkFormData$respon3[0]) === null || _checkFormData$respon4 === void 0 ? void 0 : _checkFormData$respon4.owners);
|
|
@@ -12611,9 +12613,9 @@ const NewNDCStepFormOne = ({
|
|
|
12611
12613
|
if ((checkFormData === null || checkFormData === void 0 ? void 0 : (_checkFormData$respon5 = checkFormData.responseData) === null || _checkFormData$respon5 === void 0 ? void 0 : (_checkFormData$respon6 = _checkFormData$respon5[0]) === null || _checkFormData$respon6 === void 0 ? void 0 : (_checkFormData$respon7 = _checkFormData$respon6.NdcDetails) === null || _checkFormData$respon7 === void 0 ? void 0 : _checkFormData$respon7.length) > 0) {
|
|
12612
12614
|
ndcDetails = checkFormData.responseData[0].NdcDetails;
|
|
12613
12615
|
} else {
|
|
12614
|
-
var
|
|
12615
|
-
(
|
|
12616
|
-
var _wc$billData4, _data$PropertyDetails14, _data$
|
|
12616
|
+
var _ref4, _data$PropertyDetails13, _ref5, _data$PropertyDetails15, _data$PropertyDetails17, _data$PropertyDetails18;
|
|
12617
|
+
(_ref4 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails13 = data.PropertyDetails) === null || _data$PropertyDetails13 === void 0 ? void 0 : _data$PropertyDetails13.waterConnection) || []) === null || _ref4 === void 0 ? void 0 : _ref4.forEach(wc => {
|
|
12618
|
+
var _wc$billData4, _data$PropertyDetails14, _data$cpt7, _data$cpt7$details, _wc$billData5, _wc$billData6;
|
|
12617
12619
|
ndcDetails.push({
|
|
12618
12620
|
uuid: wc === null || wc === void 0 ? void 0 : (_wc$billData4 = wc.billData) === null || _wc$billData4 === void 0 ? void 0 : _wc$billData4.id,
|
|
12619
12621
|
applicantId: applicantId,
|
|
@@ -12621,14 +12623,14 @@ const NewNDCStepFormOne = ({
|
|
|
12621
12623
|
consumerCode: wc === null || wc === void 0 ? void 0 : wc.connectionNo,
|
|
12622
12624
|
additionalDetails: {
|
|
12623
12625
|
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails14 = data.PropertyDetails) === null || _data$PropertyDetails14 === void 0 ? void 0 : _data$PropertyDetails14.address,
|
|
12624
|
-
propertyType: data === null || data === void 0 ? void 0 : (_data$
|
|
12626
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt7 = data.cpt) === null || _data$cpt7 === void 0 ? void 0 : (_data$cpt7$details = _data$cpt7.details) === null || _data$cpt7$details === void 0 ? void 0 : _data$cpt7$details.usageCategory
|
|
12625
12627
|
},
|
|
12626
12628
|
dueAmount: (wc === null || wc === void 0 ? void 0 : (_wc$billData5 = wc.billData) === null || _wc$billData5 === void 0 ? void 0 : _wc$billData5.totalAmount) || 0,
|
|
12627
12629
|
status: wc === null || wc === void 0 ? void 0 : (_wc$billData6 = wc.billData) === null || _wc$billData6 === void 0 ? void 0 : _wc$billData6.status
|
|
12628
12630
|
});
|
|
12629
12631
|
});
|
|
12630
|
-
(
|
|
12631
|
-
var _sc$billData4, _data$PropertyDetails16, _data$
|
|
12632
|
+
(_ref5 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails15 = data.PropertyDetails) === null || _data$PropertyDetails15 === void 0 ? void 0 : _data$PropertyDetails15.sewerageConnection) || []) === null || _ref5 === void 0 ? void 0 : _ref5.forEach(sc => {
|
|
12633
|
+
var _sc$billData4, _data$PropertyDetails16, _data$cpt8, _data$cpt8$details, _sc$billData5, _sc$billData6;
|
|
12632
12634
|
ndcDetails.push({
|
|
12633
12635
|
uuid: sc === null || sc === void 0 ? void 0 : (_sc$billData4 = sc.billData) === null || _sc$billData4 === void 0 ? void 0 : _sc$billData4.id,
|
|
12634
12636
|
applicantId: applicantId,
|
|
@@ -12636,23 +12638,23 @@ const NewNDCStepFormOne = ({
|
|
|
12636
12638
|
consumerCode: sc === null || sc === void 0 ? void 0 : sc.connectionNo,
|
|
12637
12639
|
additionalDetails: {
|
|
12638
12640
|
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails16 = data.PropertyDetails) === null || _data$PropertyDetails16 === void 0 ? void 0 : _data$PropertyDetails16.address,
|
|
12639
|
-
propertyType: data === null || data === void 0 ? void 0 : (_data$
|
|
12641
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt8 = data.cpt) === null || _data$cpt8 === void 0 ? void 0 : (_data$cpt8$details = _data$cpt8.details) === null || _data$cpt8$details === void 0 ? void 0 : _data$cpt8$details.usageCategory
|
|
12640
12642
|
},
|
|
12641
12643
|
dueAmount: (sc === null || sc === void 0 ? void 0 : (_sc$billData5 = sc.billData) === null || _sc$billData5 === void 0 ? void 0 : _sc$billData5.totalAmount) || 0,
|
|
12642
12644
|
status: sc === null || sc === void 0 ? void 0 : (_sc$billData6 = sc.billData) === null || _sc$billData6 === void 0 ? void 0 : _sc$billData6.status
|
|
12643
12645
|
});
|
|
12644
12646
|
});
|
|
12645
12647
|
if (data !== null && data !== void 0 && (_data$PropertyDetails17 = data.PropertyDetails) !== null && _data$PropertyDetails17 !== void 0 && (_data$PropertyDetails18 = _data$PropertyDetails17.propertyBillData) !== null && _data$PropertyDetails18 !== void 0 && _data$PropertyDetails18.billData) {
|
|
12646
|
-
var _data$PropertyDetails19, _data$PropertyDetails20, _data$
|
|
12648
|
+
var _data$PropertyDetails19, _data$PropertyDetails20, _data$cpt9, _data$PropertyDetails21, _data$cpt0, _data$cpt0$details;
|
|
12647
12649
|
const billData = data === null || data === void 0 ? void 0 : (_data$PropertyDetails19 = data.PropertyDetails) === null || _data$PropertyDetails19 === void 0 ? void 0 : (_data$PropertyDetails20 = _data$PropertyDetails19.propertyBillData) === null || _data$PropertyDetails20 === void 0 ? void 0 : _data$PropertyDetails20.billData;
|
|
12648
12650
|
ndcDetails.push({
|
|
12649
12651
|
uuid: billData === null || billData === void 0 ? void 0 : billData.id,
|
|
12650
12652
|
applicantId: applicantId,
|
|
12651
12653
|
businessService: "PT",
|
|
12652
|
-
consumerCode: data === null || data === void 0 ? void 0 : (_data$
|
|
12654
|
+
consumerCode: data === null || data === void 0 ? void 0 : (_data$cpt9 = data.cpt) === null || _data$cpt9 === void 0 ? void 0 : _data$cpt9.id,
|
|
12653
12655
|
additionalDetails: {
|
|
12654
12656
|
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails21 = data.PropertyDetails) === null || _data$PropertyDetails21 === void 0 ? void 0 : _data$PropertyDetails21.address,
|
|
12655
|
-
propertyType: data === null || data === void 0 ? void 0 : (_data$
|
|
12657
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt0 = data.cpt) === null || _data$cpt0 === void 0 ? void 0 : (_data$cpt0$details = _data$cpt0.details) === null || _data$cpt0$details === void 0 ? void 0 : _data$cpt0$details.usageCategory
|
|
12656
12658
|
},
|
|
12657
12659
|
dueAmount: (billData === null || billData === void 0 ? void 0 : billData.totalAmount) || 0,
|
|
12658
12660
|
status: billData === null || billData === void 0 ? void 0 : billData.status
|
|
@@ -12669,7 +12671,7 @@ const NewNDCStepFormOne = ({
|
|
|
12669
12671
|
Documents: [],
|
|
12670
12672
|
active: true,
|
|
12671
12673
|
reason: data === null || data === void 0 ? void 0 : (_data$NDCReason3 = data.NDCReason) === null || _data$NDCReason3 === void 0 ? void 0 : _data$NDCReason3.code,
|
|
12672
|
-
auditDetails: data === null || data === void 0 ? void 0 : (_data$
|
|
12674
|
+
auditDetails: data === null || data === void 0 ? void 0 : (_data$cpt1 = data.cpt) === null || _data$cpt1 === void 0 ? void 0 : (_data$cpt1$details = _data$cpt1.details) === null || _data$cpt1$details === void 0 ? void 0 : _data$cpt1$details.auditDetails,
|
|
12673
12675
|
applicationNo: appNumber,
|
|
12674
12676
|
uuid: apUUid,
|
|
12675
12677
|
workflow: {
|
|
@@ -12697,17 +12699,17 @@ const NewNDCStepFormOne = ({
|
|
|
12697
12699
|
}
|
|
12698
12700
|
};
|
|
12699
12701
|
function validateStepData(data) {
|
|
12700
|
-
var _data$
|
|
12702
|
+
var _data$cpt10, _data$cpt11, _data$cpt11$dues, _propertyDetails$wate, _propertyDetails$sewe;
|
|
12701
12703
|
const missingFields = [];
|
|
12702
12704
|
const invalidFields = [];
|
|
12703
12705
|
const cpt = (data === null || data === void 0 ? void 0 : data.cpt) || {};
|
|
12704
12706
|
const cptDetails = (cpt === null || cpt === void 0 ? void 0 : cpt.details) || {};
|
|
12705
12707
|
const propertyDetails = (data === null || data === void 0 ? void 0 : data.PropertyDetails) || {};
|
|
12706
12708
|
const NDCReason = (data === null || data === void 0 ? void 0 : data.NDCReason) || {};
|
|
12707
|
-
if (!(data !== null && data !== void 0 && (_data$
|
|
12709
|
+
if (!(data !== null && data !== void 0 && (_data$cpt10 = data.cpt) !== null && _data$cpt10 !== void 0 && _data$cpt10.dues)) {
|
|
12708
12710
|
missingFields.push(`${t("NDC_MESSAGE_PLEASE_CHECK_STATUS_OF_PROPERTY_TAX")} ${cpt === null || cpt === void 0 ? void 0 : cpt.id}`);
|
|
12709
12711
|
}
|
|
12710
|
-
if ((data === null || data === void 0 ? void 0 : (_data$
|
|
12712
|
+
if ((data === null || data === void 0 ? void 0 : (_data$cpt11 = data.cpt) === null || _data$cpt11 === void 0 ? void 0 : (_data$cpt11$dues = _data$cpt11.dues) === null || _data$cpt11$dues === void 0 ? void 0 : _data$cpt11$dues.totalAmount) > 0) {
|
|
12711
12713
|
missingFields.push(`${t("NDC_MESSAGE_PLEASE_PAY_DUES_OF_PROPERTY_TAX")} ${cpt === null || cpt === void 0 ? void 0 : cpt.id}`);
|
|
12712
12714
|
}
|
|
12713
12715
|
if ((propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$wate = propertyDetails.waterConnection) === null || _propertyDetails$wate === void 0 ? void 0 : _propertyDetails$wate.length) > 0) {
|
|
@@ -12842,25 +12844,14 @@ function SelectNDCReason({
|
|
|
12842
12844
|
}, [ndcReason]);
|
|
12843
12845
|
useEffect(() => {
|
|
12844
12846
|
if (apiDataCheck && (ndcReasonOptions === null || ndcReasonOptions === void 0 ? void 0 : ndcReasonOptions.length) > 0) {
|
|
12845
|
-
var _formData$NDCReason;
|
|
12846
12847
|
console.log("check apiDataCheck", apiDataCheck);
|
|
12847
12848
|
const matchedOption = ndcReasonOptions.find(opt => {
|
|
12848
12849
|
var _apiDataCheck$;
|
|
12849
12850
|
return (opt === null || opt === void 0 ? void 0 : opt.code) === (apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$ = apiDataCheck[0]) === null || _apiDataCheck$ === void 0 ? void 0 : _apiDataCheck$.reason);
|
|
12850
12851
|
});
|
|
12851
|
-
if (matchedOption
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
};
|
|
12855
|
-
if (matchedOption.code === "OTHERS") {
|
|
12856
|
-
var _apiDataCheck$2, _apiDataCheck$2$NdcDe, _ptDetail$additionalD;
|
|
12857
|
-
const ptDetail = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$2 = apiDataCheck[0]) === null || _apiDataCheck$2 === void 0 ? void 0 : (_apiDataCheck$2$NdcDe = _apiDataCheck$2.NdcDetails) === null || _apiDataCheck$2$NdcDe === void 0 ? void 0 : _apiDataCheck$2$NdcDe.find(detail => detail.businessService === "PT");
|
|
12858
|
-
if (ptDetail !== null && ptDetail !== void 0 && (_ptDetail$additionalD = ptDetail.additionalDetails) !== null && _ptDetail$additionalD !== void 0 && _ptDetail$additionalD.reason) {
|
|
12859
|
-
updatedOption.reason = ptDetail.additionalDetails.reason;
|
|
12860
|
-
}
|
|
12861
|
-
}
|
|
12862
|
-
setNDCReason(updatedOption);
|
|
12863
|
-
setValue("NDCReason", updatedOption);
|
|
12852
|
+
if (matchedOption) {
|
|
12853
|
+
setNDCReason(matchedOption);
|
|
12854
|
+
setValue("NDCReason", matchedOption);
|
|
12864
12855
|
}
|
|
12865
12856
|
}
|
|
12866
12857
|
}, [apiDataCheck, ndcReasonOptions]);
|
|
@@ -12924,7 +12915,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12924
12915
|
formState,
|
|
12925
12916
|
clearErrors
|
|
12926
12917
|
}) => {
|
|
12927
|
-
var _formData$cpt, _formData$cpt$details, _checkApiDataCheck$Ap, _formData$cpt4, _Digit, _Digit$ComponentRegis, _formData$cpt5, _apiDataCheck$
|
|
12918
|
+
var _formData$cpt, _formData$cpt$details, _checkApiDataCheck$Ap, _formData$cpt4, _Digit, _Digit$ComponentRegis, _formData$cpt5, _apiDataCheck$7, _propertyDetails$wate, _propertyDetails$sewe, _formData$cpt6, _formData$cpt6$detail;
|
|
12928
12919
|
const {
|
|
12929
12920
|
control,
|
|
12930
12921
|
formState: localFormState,
|
|
@@ -13015,7 +13006,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
13015
13006
|
}
|
|
13016
13007
|
}];
|
|
13017
13008
|
useEffect(() => {
|
|
13018
|
-
var _formData$cpt3, _formData$cpt3$detail, _ownerForName$map, _ownerForName$map$fil, _apiDataCheck$, _apiDataCheck$$owners, _apiDataCheck$$owners2, _formData$PropertyDet, _formData$PropertyDet2, _formData$PropertyDet3
|
|
13009
|
+
var _formData$cpt3, _formData$cpt3$detail, _ownerForName$map, _ownerForName$map$fil, _apiDataCheck$, _apiDataCheck$$owners, _apiDataCheck$$owners2, _formData$PropertyDet, _formData$PropertyDet2, _formData$PropertyDet3;
|
|
13019
13010
|
const ownerForName = (formData === null || formData === void 0 ? void 0 : (_formData$cpt3 = formData.cpt) === null || _formData$cpt3 === void 0 ? void 0 : (_formData$cpt3$detail = _formData$cpt3.details) === null || _formData$cpt3$detail === void 0 ? void 0 : _formData$cpt3$detail.owners) || [];
|
|
13020
13011
|
const ownerNames = ownerForName === null || ownerForName === void 0 ? void 0 : (_ownerForName$map = ownerForName.map(owner => owner === null || owner === void 0 ? void 0 : owner.name)) === null || _ownerForName$map === void 0 ? void 0 : (_ownerForName$map$fil = _ownerForName$map.filter(Boolean)) === null || _ownerForName$map$fil === void 0 ? void 0 : _ownerForName$map$fil.join(", ");
|
|
13021
13012
|
const ownerObj = selectedRow;
|
|
@@ -13036,10 +13027,6 @@ const PropertyDetailsForm$1 = ({
|
|
|
13036
13027
|
isLoading: false,
|
|
13037
13028
|
billData: (formData === null || formData === void 0 ? void 0 : (_formData$PropertyDet2 = formData.PropertyDetails) === null || _formData$PropertyDet2 === void 0 ? void 0 : (_formData$PropertyDet3 = _formData$PropertyDet2.propertyBillData) === null || _formData$PropertyDet3 === void 0 ? void 0 : _formData$PropertyDet3.billData) || {}
|
|
13038
13029
|
};
|
|
13039
|
-
const ptDetail = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$2 = apiDataCheck[0]) === null || _apiDataCheck$2 === void 0 ? void 0 : (_apiDataCheck$2$NdcDe = _apiDataCheck$2.NdcDetails) === null || _apiDataCheck$2$NdcDe === void 0 ? void 0 : _apiDataCheck$2$NdcDe.find(detail => detail.businessService === "PT");
|
|
13040
|
-
if (ptDetail !== null && ptDetail !== void 0 && (_ptDetail$additionalD = ptDetail.additionalDetails) !== null && _ptDetail$additionalD !== void 0 && _ptDetail$additionalD.remarks && !(formData !== null && formData !== void 0 && (_formData$PropertyDet4 = formData.PropertyDetails) !== null && _formData$PropertyDet4 !== void 0 && _formData$PropertyDet4.remarks)) {
|
|
13041
|
-
combinedObject.remarks = ptDetail.additionalDetails.remarks;
|
|
13042
|
-
}
|
|
13043
13030
|
setPropertyDetails(prev => {
|
|
13044
13031
|
return {
|
|
13045
13032
|
...prev,
|
|
@@ -13048,11 +13035,11 @@ const PropertyDetailsForm$1 = ({
|
|
|
13048
13035
|
});
|
|
13049
13036
|
}, [formData === null || formData === void 0 ? void 0 : (_formData$cpt4 = formData.cpt) === null || _formData$cpt4 === void 0 ? void 0 : _formData$cpt4.details, apiDataCheck, selectedRow]);
|
|
13050
13037
|
useEffect(() => {
|
|
13051
|
-
var _apiDataCheck$
|
|
13038
|
+
var _apiDataCheck$2;
|
|
13052
13039
|
let waterConnection;
|
|
13053
|
-
if (apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$
|
|
13054
|
-
var _apiDataCheck$
|
|
13055
|
-
const resData = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$
|
|
13040
|
+
if (apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$2 = apiDataCheck[0]) !== null && _apiDataCheck$2 !== void 0 && _apiDataCheck$2.NdcDetails) {
|
|
13041
|
+
var _apiDataCheck$3, _apiDataCheck$3$NdcDe;
|
|
13042
|
+
const resData = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$3 = apiDataCheck[0]) === null || _apiDataCheck$3 === void 0 ? void 0 : (_apiDataCheck$3$NdcDe = _apiDataCheck$3.NdcDetails) === null || _apiDataCheck$3$NdcDe === void 0 ? void 0 : _apiDataCheck$3$NdcDe.filter(item => {
|
|
13056
13043
|
return item.businessService == "WS";
|
|
13057
13044
|
});
|
|
13058
13045
|
waterConnection = (resData === null || resData === void 0 ? void 0 : resData.map(item => ({
|
|
@@ -13077,11 +13064,11 @@ const PropertyDetailsForm$1 = ({
|
|
|
13077
13064
|
}));
|
|
13078
13065
|
}, [waterConnectionData, apiDataCheck]);
|
|
13079
13066
|
useEffect(() => {
|
|
13080
|
-
var _apiDataCheck$
|
|
13067
|
+
var _apiDataCheck$4;
|
|
13081
13068
|
let sewerageConnection;
|
|
13082
|
-
if (apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$
|
|
13083
|
-
var _apiDataCheck$
|
|
13084
|
-
const resData = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$
|
|
13069
|
+
if (apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$4 = apiDataCheck[0]) !== null && _apiDataCheck$4 !== void 0 && _apiDataCheck$4.NdcDetails) {
|
|
13070
|
+
var _apiDataCheck$5, _apiDataCheck$5$NdcDe;
|
|
13071
|
+
const resData = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$5 = apiDataCheck[0]) === null || _apiDataCheck$5 === void 0 ? void 0 : (_apiDataCheck$5$NdcDe = _apiDataCheck$5.NdcDetails) === null || _apiDataCheck$5$NdcDe === void 0 ? void 0 : _apiDataCheck$5$NdcDe.filter(item => {
|
|
13085
13072
|
return item.businessService == "SW";
|
|
13086
13073
|
});
|
|
13087
13074
|
sewerageConnection = (resData === null || resData === void 0 ? void 0 : resData.map(item => ({
|
|
@@ -13153,15 +13140,15 @@ const PropertyDetailsForm$1 = ({
|
|
|
13153
13140
|
}));
|
|
13154
13141
|
}
|
|
13155
13142
|
try {
|
|
13156
|
-
var _result$Bill
|
|
13143
|
+
var _result$Bill;
|
|
13157
13144
|
const result = await Digit.PaymentService.fetchBill(tenantId, {
|
|
13158
13145
|
businessService: bussinessService,
|
|
13159
13146
|
consumerCode: consumercodes
|
|
13160
13147
|
});
|
|
13161
13148
|
setPropertyLoader(false);
|
|
13162
|
-
const amount = (result === null || result === void 0 ? void 0 : (_result$Bill$ = result.Bill[0]) === null || _result$Bill$ === void 0 ? void 0 : _result$Bill$.totalAmount) || 0;
|
|
13163
13149
|
if ((result === null || result === void 0 ? void 0 : (_result$Bill = result.Bill) === null || _result$Bill === void 0 ? void 0 : _result$Bill.length) > 0) {
|
|
13164
|
-
|
|
13150
|
+
var _result$Bill$;
|
|
13151
|
+
if ((result === null || result === void 0 ? void 0 : (_result$Bill$ = result.Bill[0]) === null || _result$Bill$ === void 0 ? void 0 : _result$Bill$.totalAmount) > 0) {
|
|
13165
13152
|
setShowToast({
|
|
13166
13153
|
error: true,
|
|
13167
13154
|
label: t("NDC_MESSAGE_DUES_FOUND_PLEASE_PAY")
|
|
@@ -13365,8 +13352,8 @@ const PropertyDetailsForm$1 = ({
|
|
|
13365
13352
|
useEffect(() => {
|
|
13366
13353
|
var _checkApiDataCheck$Ap2;
|
|
13367
13354
|
if (checkApiDataCheck !== null && checkApiDataCheck !== void 0 && (_checkApiDataCheck$Ap2 = checkApiDataCheck.Applications) !== null && _checkApiDataCheck$Ap2 !== void 0 && _checkApiDataCheck$Ap2[0] || apiDataCheck !== null && apiDataCheck !== void 0 && apiDataCheck[0]) {
|
|
13368
|
-
var _checkApiDataCheck$Ap3, _checkApiDataCheck$Ap4, _apiDataCheck$
|
|
13369
|
-
const checkOwners = (checkApiDataCheck === null || checkApiDataCheck === void 0 ? void 0 : (_checkApiDataCheck$Ap3 = checkApiDataCheck.Applications) === null || _checkApiDataCheck$Ap3 === void 0 ? void 0 : (_checkApiDataCheck$Ap4 = _checkApiDataCheck$Ap3[0]) === null || _checkApiDataCheck$Ap4 === void 0 ? void 0 : _checkApiDataCheck$Ap4.owners) || (apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$
|
|
13355
|
+
var _checkApiDataCheck$Ap3, _checkApiDataCheck$Ap4, _apiDataCheck$6;
|
|
13356
|
+
const checkOwners = (checkApiDataCheck === null || checkApiDataCheck === void 0 ? void 0 : (_checkApiDataCheck$Ap3 = checkApiDataCheck.Applications) === null || _checkApiDataCheck$Ap3 === void 0 ? void 0 : (_checkApiDataCheck$Ap4 = _checkApiDataCheck$Ap3[0]) === null || _checkApiDataCheck$Ap4 === void 0 ? void 0 : _checkApiDataCheck$Ap4.owners) || (apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$6 = apiDataCheck[0]) === null || _apiDataCheck$6 === void 0 ? void 0 : _apiDataCheck$6.owners);
|
|
13370
13357
|
const filterRow = checkOwners === null || checkOwners === void 0 ? void 0 : checkOwners.find(owner => owner === null || owner === void 0 ? void 0 : owner.isPrimaryOwner);
|
|
13371
13358
|
console.log("filterRow===", filterRow);
|
|
13372
13359
|
setSelectedRow(filterRow);
|
|
@@ -13376,7 +13363,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
13376
13363
|
style: {
|
|
13377
13364
|
marginBottom: "16px"
|
|
13378
13365
|
}
|
|
13379
|
-
}, ((formData === null || formData === void 0 ? void 0 : (_formData$cpt5 = formData.cpt) === null || _formData$cpt5 === void 0 ? void 0 : _formData$cpt5.details) || (apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$
|
|
13366
|
+
}, ((formData === null || formData === void 0 ? void 0 : (_formData$cpt5 = formData.cpt) === null || _formData$cpt5 === void 0 ? void 0 : _formData$cpt5.details) || (apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$7 = apiDataCheck[0]) === null || _apiDataCheck$7 === void 0 ? void 0 : _apiDataCheck$7.NdcDetails)) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
13380
13367
|
style: {
|
|
13381
13368
|
marginTop: "40px"
|
|
13382
13369
|
}
|
|
@@ -13391,7 +13378,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
13391
13378
|
width: "100%"
|
|
13392
13379
|
}
|
|
13393
13380
|
}, propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$wate = propertyDetails.waterConnection) === null || _propertyDetails$wate === void 0 ? void 0 : _propertyDetails$wate.map((item, index) => {
|
|
13394
|
-
var _apiDataCheck$
|
|
13381
|
+
var _apiDataCheck$8, _item$billData, _item$billData2, _item$billData3, _item$billData4;
|
|
13395
13382
|
return /*#__PURE__*/React.createElement("div", {
|
|
13396
13383
|
className: "ndc_property_search",
|
|
13397
13384
|
key: index,
|
|
@@ -13432,7 +13419,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
13432
13419
|
alignItems: "center",
|
|
13433
13420
|
gap: "12px"
|
|
13434
13421
|
}
|
|
13435
|
-
}, !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$
|
|
13422
|
+
}, !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$8 = apiDataCheck[0]) !== null && _apiDataCheck$8 !== void 0 && _apiDataCheck$8.NdcDetails) && (item === null || item === void 0 ? void 0 : item.connectionNo) && !(item !== null && item !== void 0 && (_item$billData = item.billData) !== null && _item$billData !== void 0 && _item$billData.id) && (item === null || item === void 0 ? void 0 : (_item$billData2 = item.billData) === null || _item$billData2 === void 0 ? void 0 : _item$billData2.totalAmount) != 0 && /*#__PURE__*/React.createElement("button", {
|
|
13436
13423
|
className: "submit-bar",
|
|
13437
13424
|
type: "button",
|
|
13438
13425
|
style: {
|
|
@@ -13499,7 +13486,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
13499
13486
|
width: "100%"
|
|
13500
13487
|
}
|
|
13501
13488
|
}, propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$sewe = propertyDetails.sewerageConnection) === null || _propertyDetails$sewe === void 0 ? void 0 : _propertyDetails$sewe.map((item, index) => {
|
|
13502
|
-
var _apiDataCheck$
|
|
13489
|
+
var _apiDataCheck$9, _item$billData5, _item$billData6, _item$billData7, _item$billData8;
|
|
13503
13490
|
return /*#__PURE__*/React.createElement("div", {
|
|
13504
13491
|
className: "ndc_property_search",
|
|
13505
13492
|
key: index,
|
|
@@ -13540,7 +13527,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
13540
13527
|
alignItems: "center",
|
|
13541
13528
|
gap: "12px"
|
|
13542
13529
|
}
|
|
13543
|
-
}, !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$
|
|
13530
|
+
}, !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$9 = apiDataCheck[0]) !== null && _apiDataCheck$9 !== void 0 && _apiDataCheck$9.NdcDetails) && (item === null || item === void 0 ? void 0 : item.connectionNo) && !(item !== null && item !== void 0 && (_item$billData5 = item.billData) !== null && _item$billData5 !== void 0 && _item$billData5.id) && (item === null || item === void 0 ? void 0 : (_item$billData6 = item.billData) === null || _item$billData6 === void 0 ? void 0 : _item$billData6.totalAmount) != 0 && /*#__PURE__*/React.createElement("button", {
|
|
13544
13531
|
className: "submit-bar",
|
|
13545
13532
|
type: "button",
|
|
13546
13533
|
style: {
|
|
@@ -14673,10 +14660,10 @@ const NDCNewFormSummaryStepThreeCitizen = ({
|
|
|
14673
14660
|
}
|
|
14674
14661
|
};
|
|
14675
14662
|
function mapToNDCPayload(inputData, actionStatus) {
|
|
14676
|
-
var _Digit$UserService$ge, _inputData$apiData, _inputData$apiData$Ap, _inputData$apiData$Ap2, _formData$responseDat, _formData$apiData, _formData$apiData$App, _inputData$DocummentD, _inputData$DocummentD2;
|
|
14663
|
+
var _Digit$UserService$ge, _ref, _inputData$apiData, _inputData$apiData$Ap, _inputData$apiData$Ap2, _formData$responseDat, _formData$apiData, _formData$apiData$App, _inputData$DocummentD, _inputData$DocummentD2;
|
|
14677
14664
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
14678
14665
|
console.log("inputData", inputData);
|
|
14679
|
-
const owners = ((inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []).map(item => {
|
|
14666
|
+
const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(item => {
|
|
14680
14667
|
const obj = JSON.parse(JSON.stringify(item));
|
|
14681
14668
|
delete obj.status;
|
|
14682
14669
|
return obj;
|
|
@@ -15100,11 +15087,11 @@ const NewNDCStepFormOne$1 = ({
|
|
|
15100
15087
|
onGoNext();
|
|
15101
15088
|
}
|
|
15102
15089
|
const createApplication = async data => {
|
|
15103
|
-
var _Digit$UserService$ge, _data$cpt2, _data$cpt2$details, _data$PropertyDetails5, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails1, _data$PropertyDetails10, _data$NDCReason2;
|
|
15090
|
+
var _Digit$UserService$ge, _ref, _data$cpt2, _data$cpt2$details, _data$PropertyDetails5, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails1, _data$PropertyDetails10, _data$NDCReason2;
|
|
15104
15091
|
setLoader(true);
|
|
15105
15092
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
15106
15093
|
const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
|
|
15107
|
-
const owners = ((data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.owners) || []).map(owner => {
|
|
15094
|
+
const owners = (_ref = (data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(owner => {
|
|
15108
15095
|
var _newOwner$name, _newOwner$name$trim, _data$PropertyDetails, _data$PropertyDetails2, _data$PropertyDetails3;
|
|
15109
15096
|
const newOwner = JSON.parse(JSON.stringify(owner));
|
|
15110
15097
|
delete newOwner.status;
|
|
@@ -15387,7 +15374,7 @@ const NDCNewFormSummaryStepThreeEmployee = ({
|
|
|
15387
15374
|
}
|
|
15388
15375
|
};
|
|
15389
15376
|
function mapToNDCPayload(inputData, actionStatus) {
|
|
15390
|
-
var _Digit$UserService$ge, _ref, _inputData$apiData, _inputData$apiData$Ap, _inputData$apiData$Ap2, _formData$responseDat, _formData$apiData, _formData$apiData$App,
|
|
15377
|
+
var _Digit$UserService$ge, _ref, _inputData$apiData, _inputData$apiData$Ap, _inputData$apiData$Ap2, _formData$responseDat, _formData$apiData, _formData$apiData$App, _inputData$DocummentD, _inputData$DocummentD2;
|
|
15391
15378
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
15392
15379
|
console.log("checkFormData", formData);
|
|
15393
15380
|
const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(item => {
|
|
@@ -15403,21 +15390,7 @@ const NDCNewFormSummaryStepThreeEmployee = ({
|
|
|
15403
15390
|
action: actionStatus
|
|
15404
15391
|
},
|
|
15405
15392
|
owners: owners,
|
|
15406
|
-
NdcDetails: baseApplication === null || baseApplication === void 0 ? void 0 :
|
|
15407
|
-
if (detail.businessService === "PT") {
|
|
15408
|
-
var _formData$NDCDetails, _formData$NDCDetails$, _formData$NDCDetails2, _formData$NDCDetails3;
|
|
15409
|
-
return {
|
|
15410
|
-
...detail,
|
|
15411
|
-
additionalDetails: {
|
|
15412
|
-
...detail.additionalDetails,
|
|
15413
|
-
reason: formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails = formData.NDCDetails) === null || _formData$NDCDetails === void 0 ? void 0 : (_formData$NDCDetails$ = _formData$NDCDetails.NDCReason) === null || _formData$NDCDetails$ === void 0 ? void 0 : _formData$NDCDetails$.reason,
|
|
15414
|
-
remarks: formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails2 = formData.NDCDetails) === null || _formData$NDCDetails2 === void 0 ? void 0 : (_formData$NDCDetails3 = _formData$NDCDetails2.PropertyDetails) === null || _formData$NDCDetails3 === void 0 ? void 0 : _formData$NDCDetails3.remarks
|
|
15415
|
-
}
|
|
15416
|
-
};
|
|
15417
|
-
}
|
|
15418
|
-
return detail;
|
|
15419
|
-
}),
|
|
15420
|
-
reason: formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails4 = formData.NDCDetails) === null || _formData$NDCDetails4 === void 0 ? void 0 : (_formData$NDCDetails5 = _formData$NDCDetails4.NDCReason) === null || _formData$NDCDetails5 === void 0 ? void 0 : _formData$NDCDetails5.code,
|
|
15393
|
+
NdcDetails: baseApplication === null || baseApplication === void 0 ? void 0 : baseApplication.NdcDetails,
|
|
15421
15394
|
Documents: []
|
|
15422
15395
|
};
|
|
15423
15396
|
((inputData === null || inputData === void 0 ? void 0 : (_inputData$DocummentD = inputData.DocummentDetails) === null || _inputData$DocummentD === void 0 ? void 0 : (_inputData$DocummentD2 = _inputData$DocummentD.documents) === null || _inputData$DocummentD2 === void 0 ? void 0 : _inputData$DocummentD2.documents) || []).forEach(doc => {
|