@djb25/digit-ui-module-commonpt 1.0.24 → 1.0.26
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 +144 -84
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +144 -84
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -15444,23 +15444,30 @@ const WSFeeEstimation = _ref => {
|
|
|
15444
15444
|
var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
|
|
15445
15445
|
const data = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : _wsAdditionalDetails$3.additionalDetails);
|
|
15446
15446
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
15447
|
-
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0;
|
|
15448
|
-
const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || [];
|
|
15449
|
-
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill =>
|
|
15450
|
-
|
|
15451
|
-
|
|
15452
|
-
|
|
15447
|
+
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
|
|
15448
|
+
const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.taxHeadEstimates) || [];
|
|
15449
|
+
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => {
|
|
15450
|
+
var _bill$status;
|
|
15451
|
+
return {
|
|
15452
|
+
title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
|
|
15453
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2), bill !== null && bill !== void 0 && bill.status ? /*#__PURE__*/React.createElement("span", {
|
|
15454
|
+
style: {
|
|
15455
|
+
color: (bill === null || bill === void 0 ? void 0 : (_bill$status = bill.status) === null || _bill$status === void 0 ? void 0 : _bill$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
15456
|
+
}
|
|
15457
|
+
}, " (" + (bill === null || bill === void 0 ? void 0 : bill.status) + ")") : "")
|
|
15458
|
+
};
|
|
15459
|
+
}) : [{
|
|
15453
15460
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
15454
|
-
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
15461
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.fee)
|
|
15455
15462
|
}, {
|
|
15456
15463
|
title: "WS_SERVICE_FEE_HEADER",
|
|
15457
|
-
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
15464
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill8 = sessionFormData.billDetails) === null || _sessionFormData$bill8 === void 0 ? void 0 : (_sessionFormData$bill9 = _sessionFormData$bill8[0]) === null || _sessionFormData$bill9 === void 0 ? void 0 : _sessionFormData$bill9.charge)
|
|
15458
15465
|
}, {
|
|
15459
15466
|
title: "WS_TAX_HEADER",
|
|
15460
|
-
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
15467
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill0 = sessionFormData.billDetails) === null || _sessionFormData$bill0 === void 0 ? void 0 : (_sessionFormData$bill1 = _sessionFormData$bill0[0]) === null || _sessionFormData$bill1 === void 0 ? void 0 : _sessionFormData$bill1.taxAmount)
|
|
15461
15468
|
}];
|
|
15462
15469
|
setValues(values);
|
|
15463
|
-
setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
15470
|
+
setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill10 = sessionFormData.billDetails) === null || _sessionFormData$bill10 === void 0 ? void 0 : _sessionFormData$bill10[0]);
|
|
15464
15471
|
} else {
|
|
15465
15472
|
setSessionFormData(data);
|
|
15466
15473
|
setFields(data);
|
|
@@ -15531,10 +15538,17 @@ const WSFeeEstimation = _ref => {
|
|
|
15531
15538
|
}
|
|
15532
15539
|
result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
|
|
15533
15540
|
const taxHeadEstimates = (result === null || result === void 0 ? void 0 : (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.taxHeadEstimates) || [];
|
|
15534
|
-
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data =>
|
|
15535
|
-
|
|
15536
|
-
|
|
15537
|
-
|
|
15541
|
+
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => {
|
|
15542
|
+
var _data$status;
|
|
15543
|
+
return {
|
|
15544
|
+
title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
|
|
15545
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2), data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
|
|
15546
|
+
style: {
|
|
15547
|
+
color: (data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
15548
|
+
}
|
|
15549
|
+
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : "")
|
|
15550
|
+
};
|
|
15551
|
+
}) : [{
|
|
15538
15552
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
15539
15553
|
value: (_result$Calculation5 = result.Calculation) === null || _result$Calculation5 === void 0 ? void 0 : (_result$Calculation5$ = _result$Calculation5[0]) === null || _result$Calculation5$ === void 0 ? void 0 : _result$Calculation5$.fee
|
|
15540
15554
|
}, {
|
|
@@ -15920,10 +15934,17 @@ const ViewBreakup = _ref => {
|
|
|
15920
15934
|
if (rows === void 0) {
|
|
15921
15935
|
rows = [];
|
|
15922
15936
|
}
|
|
15923
|
-
return rows.map(row =>
|
|
15924
|
-
|
|
15925
|
-
|
|
15926
|
-
|
|
15937
|
+
return rows.map(row => {
|
|
15938
|
+
var _row$status;
|
|
15939
|
+
return {
|
|
15940
|
+
title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
|
|
15941
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount), row !== null && row !== void 0 && row.status ? /*#__PURE__*/React.createElement("span", {
|
|
15942
|
+
style: {
|
|
15943
|
+
color: (row === null || row === void 0 ? void 0 : (_row$status = row.status) === null || _row$status === void 0 ? void 0 : _row$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
15944
|
+
}
|
|
15945
|
+
}, " (" + (row === null || row === void 0 ? void 0 : row.status) + ")") : "")
|
|
15946
|
+
};
|
|
15947
|
+
});
|
|
15927
15948
|
};
|
|
15928
15949
|
const connectionHolder = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : (_wsAdditionalDetails$4 = _wsAdditionalDetails$3.connectionHolders) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : _wsAdditionalDetails$4[0];
|
|
15929
15950
|
const applicantName = [connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.name, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.middleName, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.lastName].filter(Boolean).join(" ") || "-";
|
|
@@ -16178,49 +16199,70 @@ const ViewBreakup = _ref => {
|
|
|
16178
16199
|
style: {
|
|
16179
16200
|
margin: "10px 0px"
|
|
16180
16201
|
}
|
|
16181
|
-
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data =>
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
|
|
16185
|
-
|
|
16186
|
-
|
|
16187
|
-
|
|
16188
|
-
|
|
16189
|
-
|
|
16190
|
-
|
|
16191
|
-
|
|
16192
|
-
|
|
16193
|
-
|
|
16194
|
-
|
|
16195
|
-
|
|
16196
|
-
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16202
|
-
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
|
|
16211
|
-
|
|
16212
|
-
|
|
16213
|
-
|
|
16214
|
-
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
|
|
16219
|
-
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
}
|
|
16223
|
-
})
|
|
16202
|
+
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data => {
|
|
16203
|
+
var _data$status;
|
|
16204
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
16205
|
+
className: "border-none",
|
|
16206
|
+
rowContainerStyle: {
|
|
16207
|
+
margin: "0px"
|
|
16208
|
+
},
|
|
16209
|
+
labelStyle: {
|
|
16210
|
+
width: "50%"
|
|
16211
|
+
},
|
|
16212
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
16213
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
16214
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
|
|
16215
|
+
style: {
|
|
16216
|
+
color: (data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
16217
|
+
}
|
|
16218
|
+
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
|
|
16219
|
+
textStyle: {
|
|
16220
|
+
textAlign: "right"
|
|
16221
|
+
}
|
|
16222
|
+
});
|
|
16223
|
+
}), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab6 = breakUpData.billSlabData) === null || _breakUpData$billSlab6 === void 0 ? void 0 : (_breakUpData$billSlab7 = _breakUpData$billSlab6.CHARGES) === null || _breakUpData$billSlab7 === void 0 ? void 0 : _breakUpData$billSlab7.map(data => {
|
|
16224
|
+
var _data$status2;
|
|
16225
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
16226
|
+
className: "border-none",
|
|
16227
|
+
rowContainerStyle: {
|
|
16228
|
+
margin: "0px"
|
|
16229
|
+
},
|
|
16230
|
+
labelStyle: {
|
|
16231
|
+
width: "50%"
|
|
16232
|
+
},
|
|
16233
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
16234
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
16235
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
|
|
16236
|
+
style: {
|
|
16237
|
+
color: (data === null || data === void 0 ? void 0 : (_data$status2 = data.status) === null || _data$status2 === void 0 ? void 0 : _data$status2.toUpperCase()) === "PAID" ? "green" : "red"
|
|
16238
|
+
}
|
|
16239
|
+
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
|
|
16240
|
+
textStyle: {
|
|
16241
|
+
textAlign: "right"
|
|
16242
|
+
}
|
|
16243
|
+
});
|
|
16244
|
+
}), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab8 = breakUpData.billSlabData) === null || _breakUpData$billSlab8 === void 0 ? void 0 : (_breakUpData$billSlab9 = _breakUpData$billSlab8.TAX) === null || _breakUpData$billSlab9 === void 0 ? void 0 : _breakUpData$billSlab9.map(data => {
|
|
16245
|
+
var _data$status3;
|
|
16246
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
16247
|
+
className: "border-none",
|
|
16248
|
+
rowContainerStyle: {
|
|
16249
|
+
margin: "0px"
|
|
16250
|
+
},
|
|
16251
|
+
labelStyle: {
|
|
16252
|
+
width: "50%"
|
|
16253
|
+
},
|
|
16254
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
16255
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
16256
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
|
|
16257
|
+
style: {
|
|
16258
|
+
color: (data === null || data === void 0 ? void 0 : (_data$status3 = data.status) === null || _data$status3 === void 0 ? void 0 : _data$status3.toUpperCase()) === "PAID" ? "green" : "red"
|
|
16259
|
+
}
|
|
16260
|
+
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
|
|
16261
|
+
textStyle: {
|
|
16262
|
+
textAlign: "right"
|
|
16263
|
+
}
|
|
16264
|
+
});
|
|
16265
|
+
}), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
16224
16266
|
style: {
|
|
16225
16267
|
margin: "10px 0px"
|
|
16226
16268
|
}
|
|
@@ -16556,8 +16598,8 @@ const DueVerification = _ref => {
|
|
|
16556
16598
|
return newData;
|
|
16557
16599
|
});
|
|
16558
16600
|
}, [applicationData]);
|
|
16559
|
-
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "
|
|
16560
|
-
const isActivation = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus)
|
|
16601
|
+
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION";
|
|
16602
|
+
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
16561
16603
|
const columns = useMemo(() => {
|
|
16562
16604
|
const baseColumns = [{
|
|
16563
16605
|
Header: t("K No."),
|
|
@@ -16575,7 +16617,7 @@ const DueVerification = _ref => {
|
|
|
16575
16617
|
Header: t("Total Amount"),
|
|
16576
16618
|
accessor: "totalAmount"
|
|
16577
16619
|
}];
|
|
16578
|
-
if (isPendingApproval) {
|
|
16620
|
+
if (isPendingApproval || isActivation) {
|
|
16579
16621
|
baseColumns.push({
|
|
16580
16622
|
Header: t("Remarks"),
|
|
16581
16623
|
accessor: "remarks",
|
|
@@ -16594,7 +16636,7 @@ const DueVerification = _ref => {
|
|
|
16594
16636
|
});
|
|
16595
16637
|
}
|
|
16596
16638
|
return baseColumns;
|
|
16597
|
-
}, [t, handleRemarkChange, isPendingApproval]);
|
|
16639
|
+
}, [t, handleRemarkChange, isPendingApproval, isActivation]);
|
|
16598
16640
|
useEffect(() => {
|
|
16599
16641
|
if (applicationData !== null && applicationData !== void 0 && applicationData.dueVerification && Array.isArray(applicationData.dueVerification)) {
|
|
16600
16642
|
setTableData(applicationData.dueVerification);
|
|
@@ -16696,7 +16738,11 @@ const InspectionInformation = _ref => {
|
|
|
16696
16738
|
let applicationData = _ref.applicationData;
|
|
16697
16739
|
const _useTranslation = useTranslation(),
|
|
16698
16740
|
t = _useTranslation.t;
|
|
16699
|
-
const
|
|
16741
|
+
const defaultInspectionType = {
|
|
16742
|
+
i18nKey: "New Connection Visit",
|
|
16743
|
+
code: "new_connection_visit"
|
|
16744
|
+
};
|
|
16745
|
+
const _useState = useState(defaultInspectionType),
|
|
16700
16746
|
inspectionType = _useState[0],
|
|
16701
16747
|
setInspectionType = _useState[1];
|
|
16702
16748
|
const _useState2 = useState(""),
|
|
@@ -16706,20 +16752,23 @@ const InspectionInformation = _ref => {
|
|
|
16706
16752
|
inspectorName = _useState3[0],
|
|
16707
16753
|
setInspectorName = _useState3[1];
|
|
16708
16754
|
useEffect(() => {
|
|
16709
|
-
if (applicationData
|
|
16755
|
+
if (applicationData) {
|
|
16756
|
+
if (!applicationData.inspectionInformation) {
|
|
16757
|
+
applicationData.inspectionInformation = {};
|
|
16758
|
+
}
|
|
16759
|
+
if (!applicationData.inspectionInformation.inspectionType) {
|
|
16760
|
+
applicationData.inspectionInformation.inspectionType = defaultInspectionType;
|
|
16761
|
+
}
|
|
16710
16762
|
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
16711
16763
|
let matchedType = null;
|
|
16712
16764
|
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
16713
16765
|
if (inspectionCode) {
|
|
16714
16766
|
matchedType = [{
|
|
16715
|
-
i18nKey: "ES_COMMON_SELECT",
|
|
16716
|
-
code: ""
|
|
16717
|
-
}, {
|
|
16718
16767
|
i18nKey: "New Connection Visit",
|
|
16719
16768
|
code: "new_connection_visit"
|
|
16720
16769
|
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
16721
16770
|
}
|
|
16722
|
-
setInspectionType(matchedType ||
|
|
16771
|
+
setInspectionType(matchedType || defaultInspectionType);
|
|
16723
16772
|
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
16724
16773
|
if (dateValue && typeof dateValue === 'number') {
|
|
16725
16774
|
const d = new Date(dateValue);
|
|
@@ -16736,9 +16785,6 @@ const InspectionInformation = _ref => {
|
|
|
16736
16785
|
}
|
|
16737
16786
|
}, [applicationData]);
|
|
16738
16787
|
const inspectionTypeOptions = [{
|
|
16739
|
-
i18nKey: "ES_COMMON_SELECT",
|
|
16740
|
-
code: ""
|
|
16741
|
-
}, {
|
|
16742
16788
|
i18nKey: "New Connection Visit",
|
|
16743
16789
|
code: "new_connection_visit"
|
|
16744
16790
|
}];
|
|
@@ -16758,7 +16804,7 @@ const InspectionInformation = _ref => {
|
|
|
16758
16804
|
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
16759
16805
|
applicationData.inspectionInformation.inspectorName = val;
|
|
16760
16806
|
};
|
|
16761
|
-
const readOnly = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus)
|
|
16807
|
+
const readOnly = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
16762
16808
|
return /*#__PURE__*/React.createElement("div", {
|
|
16763
16809
|
style: {
|
|
16764
16810
|
marginBottom: "20px"
|
|
@@ -17340,9 +17386,9 @@ function ApplicationDetailsContent(_ref) {
|
|
|
17340
17386
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React.createElement(PropertyDocuments, {
|
|
17341
17387
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
17342
17388
|
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
17343
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) &&
|
|
17389
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
|
|
17344
17390
|
applicationData: applicationData
|
|
17345
|
-
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) &&
|
|
17391
|
+
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(InspectionInformation, {
|
|
17346
17392
|
applicationData: applicationData
|
|
17347
17393
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
17348
17394
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
@@ -18341,7 +18387,7 @@ const EmployeeApp = _ref => {
|
|
|
18341
18387
|
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
18342
18388
|
leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
|
|
18343
18389
|
className: "icon"
|
|
18344
|
-
}), "
|
|
18390
|
+
}), t("CS_COMMON_BACK")),
|
|
18345
18391
|
onLeftClick: () => window.history.back(),
|
|
18346
18392
|
breadcrumbs: breadcrumbs
|
|
18347
18393
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -19236,7 +19282,7 @@ const _excluded$4 = ["t", "config", "onSelect", "formData", "formState", "setErr
|
|
|
19236
19282
|
const NUMBER_PATTERN = /^\d+$/;
|
|
19237
19283
|
const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
|
|
19238
19284
|
const PropertyWaterConnection = _ref => {
|
|
19239
|
-
var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11, _errors$useDetails12;
|
|
19285
|
+
var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _formValue$useDetails3, _formValue$useDetails4, _formValue$useDetails5, _formValue$useDetails6, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11, _errors$useDetails12;
|
|
19240
19286
|
let t = _ref.t,
|
|
19241
19287
|
config = _ref.config,
|
|
19242
19288
|
onSelect = _ref.onSelect,
|
|
@@ -19298,8 +19344,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
19298
19344
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "DharamshalasOrHostels" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
19299
19345
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
19300
19346
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
19301
|
-
const
|
|
19302
|
-
const
|
|
19347
|
+
const dwellingPropertyTypes = ["Apartment", "DDAFlats", "GovtFlats", "Bungalows", "FlatOrApartment", "GroupHousingSociety", "JJSLUMS", "IndividualHouse"];
|
|
19348
|
+
const isDwellingUnit = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
19349
|
+
const isServentHouse = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
19303
19350
|
const yearOptions = useMemo(() => {
|
|
19304
19351
|
const currentYear = new Date().getFullYear();
|
|
19305
19352
|
const years = [];
|
|
@@ -19567,7 +19614,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19567
19614
|
disabled: isPropertyFound
|
|
19568
19615
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails6 = errors.useDetails) === null || _errors$useDetails6 === void 0 ? void 0 : _errors$useDetails6.plotArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19569
19616
|
style: errorStyle
|
|
19570
|
-
}, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_BUILT_UP_AREA")), /*#__PURE__*/React.createElement("div", {
|
|
19617
|
+
}, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_BUILT_UP_AREA")), /*#__PURE__*/React.createElement("div", {
|
|
19571
19618
|
className: "form-field"
|
|
19572
19619
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
19573
19620
|
t: t,
|
|
@@ -19581,7 +19628,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19581
19628
|
disabled: isPropertyFound
|
|
19582
19629
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails7 = errors.useDetails) === null || _errors$useDetails7 === void 0 ? void 0 : _errors$useDetails7.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19583
19630
|
style: errorStyle
|
|
19584
|
-
}, errors.useDetails.builtUpArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React.createElement("div", {
|
|
19631
|
+
}, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React.createElement("div", {
|
|
19585
19632
|
className: "form-field"
|
|
19586
19633
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
19587
19634
|
t: t,
|
|
@@ -19589,13 +19636,26 @@ const PropertyWaterConnection = _ref => {
|
|
|
19589
19636
|
pattern: {
|
|
19590
19637
|
value: DECIMAL_PATTERN,
|
|
19591
19638
|
message: t("ERR_INVALID_DECIMAL")
|
|
19639
|
+
},
|
|
19640
|
+
validate: value => {
|
|
19641
|
+
var _formValue$useDetails, _formValue$useDetails2;
|
|
19642
|
+
if (formValue !== null && formValue !== void 0 && (_formValue$useDetails = formValue.useDetails) !== null && _formValue$useDetails !== void 0 && _formValue$useDetails.builtUpArea && parseFloat(value) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails2 = formValue.useDetails) === null || _formValue$useDetails2 === void 0 ? void 0 : _formValue$useDetails2.builtUpArea)) {
|
|
19643
|
+
return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
|
|
19644
|
+
}
|
|
19592
19645
|
}
|
|
19593
19646
|
}),
|
|
19594
19647
|
name: "useDetails.farArea",
|
|
19595
19648
|
disabled: isPropertyFound
|
|
19596
19649
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.farArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19597
19650
|
style: errorStyle
|
|
19598
|
-
}, errors.useDetails.farArea.message),
|
|
19651
|
+
}, errors.useDetails.farArea.message), (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails3 = formValue.useDetails) === null || _formValue$useDetails3 === void 0 ? void 0 : _formValue$useDetails3.farArea) && (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails4 = formValue.useDetails) === null || _formValue$useDetails4 === void 0 ? void 0 : _formValue$useDetails4.builtUpArea) && parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails5 = formValue.useDetails) === null || _formValue$useDetails5 === void 0 ? void 0 : _formValue$useDetails5.farArea) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails6 = formValue.useDetails) === null || _formValue$useDetails6 === void 0 ? void 0 : _formValue$useDetails6.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19652
|
+
style: {
|
|
19653
|
+
width: "70%",
|
|
19654
|
+
marginLeft: "30%",
|
|
19655
|
+
fontSize: "12px",
|
|
19656
|
+
marginTop: "5px"
|
|
19657
|
+
}
|
|
19658
|
+
}, t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA"))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SELECT_YEAR_OF_CONSTRUCTION") + "*"), /*#__PURE__*/React.createElement("div", {
|
|
19599
19659
|
className: "form-field"
|
|
19600
19660
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
19601
19661
|
control: control,
|