@djb25/digit-ui-module-commonpt 1.0.20 → 1.0.22
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 +20236 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +136 -159
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6026,13 +6026,17 @@ const setPropertyDetailsLW = data => {
|
|
|
6026
6026
|
usageCategory: (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory),
|
|
6027
6027
|
landArea: parseFloat(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea),
|
|
6028
6028
|
superBuiltUpArea: parseFloat(useDetails === null || useDetails === void 0 ? void 0 : useDetails.builtUpArea),
|
|
6029
|
-
noOfFloors: (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.code) === "BASEMENT" ? 0 : parseInt((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : (_useDetails$noOfFloor3 = _useDetails$noOfFloor2.code) === null || _useDetails$noOfFloor3 === void 0 ? void 0 : (_useDetails$noOfFloor4 = _useDetails$noOfFloor3.split("_")) === null || _useDetails$noOfFloor4 === void 0 ? void 0 : _useDetails$noOfFloor4[0]) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor5 = useDetails.noOfFloors) === null || _useDetails$noOfFloor5 === void 0 ? void 0 : (_useDetails$noOfFloor6 = _useDetails$noOfFloor5.split) === null || _useDetails$noOfFloor6 === void 0 ? void 0 : (_useDetails$noOfFloor7 = _useDetails$noOfFloor6.call(_useDetails$noOfFloor5, "_")) === null || _useDetails$noOfFloor7 === void 0 ? void 0 : _useDetails$noOfFloor7[0])) || 1
|
|
6029
|
+
noOfFloors: (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.code) === "BASEMENT" ? 0 : parseInt((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : (_useDetails$noOfFloor3 = _useDetails$noOfFloor2.code) === null || _useDetails$noOfFloor3 === void 0 ? void 0 : (_useDetails$noOfFloor4 = _useDetails$noOfFloor3.split("_")) === null || _useDetails$noOfFloor4 === void 0 ? void 0 : _useDetails$noOfFloor4[0]) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor5 = useDetails.noOfFloors) === null || _useDetails$noOfFloor5 === void 0 ? void 0 : (_useDetails$noOfFloor6 = _useDetails$noOfFloor5.split) === null || _useDetails$noOfFloor6 === void 0 ? void 0 : (_useDetails$noOfFloor7 = _useDetails$noOfFloor6.call(_useDetails$noOfFloor5, "_")) === null || _useDetails$noOfFloor7 === void 0 ? void 0 : _useDetails$noOfFloor7[0])) || 1,
|
|
6030
|
+
farArea: useDetails === null || useDetails === void 0 ? void 0 : useDetails.farArea,
|
|
6031
|
+
numberOfRooms: useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofRooms,
|
|
6032
|
+
numberOfBeds: useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfBeds,
|
|
6033
|
+
numberOfStudents: useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfStudents
|
|
6030
6034
|
};
|
|
6031
6035
|
data.propertyDetails = propertyDetails;
|
|
6032
6036
|
return data;
|
|
6033
6037
|
};
|
|
6034
6038
|
const convertToPropertyLightWeight = function (data) {
|
|
6035
|
-
var _data$propertyDetails, _data$propertyDetails2, _data, _data$owners2, _data$owners2$, _data$propertyDetails3, _data$propertyDetails4, _data$waterConnection, _data$waterConnection2, _data$waterConnection3, _data$useDetails, _data$useDetails$cate, _data$waterConnection4, _data$waterConnection5, _data$waterConnection6, _data$useDetails2, _data$useDetails2$Wat, _data$waterConnection7, _data$waterConnection8, _data$waterConnection9, _data$useDetails3, _data$useDetails3$Sel, _data$waterConnection0, _data$waterConnection1, _data$useDetails4, _data$waterConnection10, _data$waterConnection11, _data$useDetails5, _data$waterConnection12, _data$waterConnection13, _data$waterConnection14, _data$useDetails6, _data$useDetails6$noO, _data$waterConnection15, _data$waterConnection16, _data$useDetails7, _data$waterConnection17, _data$waterConnection18, _data$useDetails8, _data$waterConnection19, _data$waterConnection20, _data$useDetails9;
|
|
6039
|
+
var _data$propertyDetails, _data$propertyDetails2, _data, _data$owners2, _data$owners2$, _data$propertyDetails3, _data$propertyDetails4, _data$waterConnection, _data$waterConnection2, _data$waterConnection3, _data$useDetails, _data$useDetails$cate, _data$waterConnection4, _data$waterConnection5, _data$waterConnection6, _data$useDetails2, _data$useDetails2$Wat, _data$waterConnection7, _data$waterConnection8, _data$waterConnection9, _data$useDetails3, _data$useDetails3$Sel, _data$waterConnection0, _data$waterConnection1, _data$useDetails4, _data$waterConnection10, _data$waterConnection11, _data$useDetails5, _data$waterConnection12, _data$waterConnection13, _data$waterConnection14, _data$useDetails6, _data$useDetails6$noO, _data$waterConnection15, _data$waterConnection16, _data$useDetails7, _data$waterConnection17, _data$waterConnection18, _data$useDetails8, _data$waterConnection19, _data$waterConnection20, _data$useDetails9, _data$waterConnection21, _data$waterConnection22, _data$useDetails0, _data$waterConnection23, _data$waterConnection24, _data$useDetails1;
|
|
6036
6040
|
if (data === void 0) {
|
|
6037
6041
|
data = {};
|
|
6038
6042
|
}
|
|
@@ -6086,7 +6090,9 @@ const convertToPropertyLightWeight = function (data) {
|
|
|
6086
6090
|
numberOfFloors: ((_data$waterConnection12 = data.waterConnection) === null || _data$waterConnection12 === void 0 ? void 0 : (_data$waterConnection13 = _data$waterConnection12.useDetails) === null || _data$waterConnection13 === void 0 ? void 0 : (_data$waterConnection14 = _data$waterConnection13.noOfFloors) === null || _data$waterConnection14 === void 0 ? void 0 : _data$waterConnection14.code) || ((_data$useDetails6 = data.useDetails) === null || _data$useDetails6 === void 0 ? void 0 : (_data$useDetails6$noO = _data$useDetails6.noOfFloors) === null || _data$useDetails6$noO === void 0 ? void 0 : _data$useDetails6$noO.code) || 1,
|
|
6087
6091
|
plotArea: ((_data$waterConnection15 = data.waterConnection) === null || _data$waterConnection15 === void 0 ? void 0 : (_data$waterConnection16 = _data$waterConnection15.useDetails) === null || _data$waterConnection16 === void 0 ? void 0 : _data$waterConnection16.plotArea) || ((_data$useDetails7 = data.useDetails) === null || _data$useDetails7 === void 0 ? void 0 : _data$useDetails7.plotArea),
|
|
6088
6092
|
builtUpArea: ((_data$waterConnection17 = data.waterConnection) === null || _data$waterConnection17 === void 0 ? void 0 : (_data$waterConnection18 = _data$waterConnection17.useDetails) === null || _data$waterConnection18 === void 0 ? void 0 : _data$waterConnection18.builtUpArea) || ((_data$useDetails8 = data.useDetails) === null || _data$useDetails8 === void 0 ? void 0 : _data$useDetails8.builtUpArea),
|
|
6089
|
-
|
|
6093
|
+
farArea: ((_data$waterConnection19 = data.waterConnection) === null || _data$waterConnection19 === void 0 ? void 0 : (_data$waterConnection20 = _data$waterConnection19.useDetails) === null || _data$waterConnection20 === void 0 ? void 0 : _data$waterConnection20.farArea) || ((_data$useDetails9 = data.useDetails) === null || _data$useDetails9 === void 0 ? void 0 : _data$useDetails9.farArea),
|
|
6094
|
+
numberOfStudents: ((_data$waterConnection21 = data.waterConnection) === null || _data$waterConnection21 === void 0 ? void 0 : (_data$waterConnection22 = _data$waterConnection21.useDetails) === null || _data$waterConnection22 === void 0 ? void 0 : _data$waterConnection22.numberOfStudents) || ((_data$useDetails0 = data.useDetails) === null || _data$useDetails0 === void 0 ? void 0 : _data$useDetails0.numberOfStudents),
|
|
6095
|
+
numberOfBeds: ((_data$waterConnection23 = data.waterConnection) === null || _data$waterConnection23 === void 0 ? void 0 : (_data$waterConnection24 = _data$waterConnection23.useDetails) === null || _data$waterConnection24 === void 0 ? void 0 : _data$waterConnection24.numberOfBeds) || ((_data$useDetails1 = data.useDetails) === null || _data$useDetails1 === void 0 ? void 0 : _data$useDetails1.numberOfBeds),
|
|
6090
6096
|
owners: [...(data.owners || []).map((owner, index) => {
|
|
6091
6097
|
var _owner$gender3, _owner$gender4, _owner$ownerType2, _owner$relationship2, _owner$inistitutetype2;
|
|
6092
6098
|
return _extends({}, owner, {
|
|
@@ -6124,7 +6130,7 @@ const convertToPropertyLightWeight = function (data) {
|
|
|
6124
6130
|
return formdata;
|
|
6125
6131
|
};
|
|
6126
6132
|
const convertToUpdatePropertyLightWeight = function (data) {
|
|
6127
|
-
var _data$propertyDetails5, _data$propertyDetails6, _data$
|
|
6133
|
+
var _data$propertyDetails5, _data$propertyDetails6, _data$waterConnection25, _data$waterConnection26, _data$waterConnection27, _data$useDetails10, _data$useDetails10$ca, _data$waterConnection28, _data$waterConnection29, _data$waterConnection30, _data$useDetails11, _data$useDetails11$Wa, _data$waterConnection31, _data$waterConnection32, _data$waterConnection33, _data$useDetails12, _data$useDetails12$Se, _data$waterConnection34, _data$waterConnection35, _data$useDetails13, _data$waterConnection36, _data$waterConnection37, _data$useDetails14, _data$waterConnection38, _data$waterConnection39, _data$waterConnection40, _data$useDetails15, _data$useDetails15$no, _data$waterConnection41, _data$waterConnection42, _data$useDetails16, _data$waterConnection43, _data$waterConnection44, _data$useDetails17, _data$waterConnection45, _data$waterConnection46, _data$useDetails18, _data$waterConnection47, _data$waterConnection48, _data$useDetails19, _data$waterConnection49, _data$waterConnection50, _data$useDetails20, _formdata$Property, _data3, _formdata$Property3;
|
|
6128
6134
|
if (data === void 0) {
|
|
6129
6135
|
data = {};
|
|
6130
6136
|
}
|
|
@@ -6171,15 +6177,17 @@ const convertToUpdatePropertyLightWeight = function (data) {
|
|
|
6171
6177
|
noOfFloors: noOfFloors,
|
|
6172
6178
|
additionalDetails: {
|
|
6173
6179
|
isRainwaterHarvesting: false,
|
|
6174
|
-
categoryType: ((_data$
|
|
6175
|
-
waterConnectionUsageType: ((_data$
|
|
6176
|
-
yearOfConstruction: ((_data$
|
|
6177
|
-
numberOfDwellingUnits: ((_data$
|
|
6178
|
-
numberOfRooms: ((_data$
|
|
6179
|
-
numberOfFloors: ((_data$
|
|
6180
|
-
plotArea: ((_data$
|
|
6181
|
-
builtUpArea: ((_data$
|
|
6182
|
-
|
|
6180
|
+
categoryType: ((_data$waterConnection25 = data.waterConnection) === null || _data$waterConnection25 === void 0 ? void 0 : (_data$waterConnection26 = _data$waterConnection25.useDetails) === null || _data$waterConnection26 === void 0 ? void 0 : (_data$waterConnection27 = _data$waterConnection26.categoryType) === null || _data$waterConnection27 === void 0 ? void 0 : _data$waterConnection27.code) || ((_data$useDetails10 = data.useDetails) === null || _data$useDetails10 === void 0 ? void 0 : (_data$useDetails10$ca = _data$useDetails10.categoryType) === null || _data$useDetails10$ca === void 0 ? void 0 : _data$useDetails10$ca.code),
|
|
6181
|
+
waterConnectionUsageType: ((_data$waterConnection28 = data.waterConnection) === null || _data$waterConnection28 === void 0 ? void 0 : (_data$waterConnection29 = _data$waterConnection28.useDetails) === null || _data$waterConnection29 === void 0 ? void 0 : (_data$waterConnection30 = _data$waterConnection29.WaterConnectionUsageType) === null || _data$waterConnection30 === void 0 ? void 0 : _data$waterConnection30.code) || ((_data$useDetails11 = data.useDetails) === null || _data$useDetails11 === void 0 ? void 0 : (_data$useDetails11$Wa = _data$useDetails11.WaterConnectionUsageType) === null || _data$useDetails11$Wa === void 0 ? void 0 : _data$useDetails11$Wa.code),
|
|
6182
|
+
yearOfConstruction: ((_data$waterConnection31 = data.waterConnection) === null || _data$waterConnection31 === void 0 ? void 0 : (_data$waterConnection32 = _data$waterConnection31.useDetails) === null || _data$waterConnection32 === void 0 ? void 0 : (_data$waterConnection33 = _data$waterConnection32.SelectYearofConstruction) === null || _data$waterConnection33 === void 0 ? void 0 : _data$waterConnection33.value) || ((_data$useDetails12 = data.useDetails) === null || _data$useDetails12 === void 0 ? void 0 : (_data$useDetails12$Se = _data$useDetails12.SelectYearofConstruction) === null || _data$useDetails12$Se === void 0 ? void 0 : _data$useDetails12$Se.value),
|
|
6183
|
+
numberOfDwellingUnits: ((_data$waterConnection34 = data.waterConnection) === null || _data$waterConnection34 === void 0 ? void 0 : (_data$waterConnection35 = _data$waterConnection34.useDetails) === null || _data$waterConnection35 === void 0 ? void 0 : _data$waterConnection35.NumberofDwellingUnits) || ((_data$useDetails13 = data.useDetails) === null || _data$useDetails13 === void 0 ? void 0 : _data$useDetails13.NumberofDwellingUnits),
|
|
6184
|
+
numberOfRooms: ((_data$waterConnection36 = data.waterConnection) === null || _data$waterConnection36 === void 0 ? void 0 : (_data$waterConnection37 = _data$waterConnection36.useDetails) === null || _data$waterConnection37 === void 0 ? void 0 : _data$waterConnection37.NumberofRooms) || ((_data$useDetails14 = data.useDetails) === null || _data$useDetails14 === void 0 ? void 0 : _data$useDetails14.NumberofRooms),
|
|
6185
|
+
numberOfFloors: ((_data$waterConnection38 = data.waterConnection) === null || _data$waterConnection38 === void 0 ? void 0 : (_data$waterConnection39 = _data$waterConnection38.useDetails) === null || _data$waterConnection39 === void 0 ? void 0 : (_data$waterConnection40 = _data$waterConnection39.noOfFloors) === null || _data$waterConnection40 === void 0 ? void 0 : _data$waterConnection40.code) || ((_data$useDetails15 = data.useDetails) === null || _data$useDetails15 === void 0 ? void 0 : (_data$useDetails15$no = _data$useDetails15.noOfFloors) === null || _data$useDetails15$no === void 0 ? void 0 : _data$useDetails15$no.code) || 1,
|
|
6186
|
+
plotArea: ((_data$waterConnection41 = data.waterConnection) === null || _data$waterConnection41 === void 0 ? void 0 : (_data$waterConnection42 = _data$waterConnection41.useDetails) === null || _data$waterConnection42 === void 0 ? void 0 : _data$waterConnection42.plotArea) || ((_data$useDetails16 = data.useDetails) === null || _data$useDetails16 === void 0 ? void 0 : _data$useDetails16.plotArea),
|
|
6187
|
+
builtUpArea: ((_data$waterConnection43 = data.waterConnection) === null || _data$waterConnection43 === void 0 ? void 0 : (_data$waterConnection44 = _data$waterConnection43.useDetails) === null || _data$waterConnection44 === void 0 ? void 0 : _data$waterConnection44.builtUpArea) || ((_data$useDetails17 = data.useDetails) === null || _data$useDetails17 === void 0 ? void 0 : _data$useDetails17.builtUpArea),
|
|
6188
|
+
farArea: ((_data$waterConnection45 = data.waterConnection) === null || _data$waterConnection45 === void 0 ? void 0 : (_data$waterConnection46 = _data$waterConnection45.useDetails) === null || _data$waterConnection46 === void 0 ? void 0 : _data$waterConnection46.farArea) || ((_data$useDetails18 = data.useDetails) === null || _data$useDetails18 === void 0 ? void 0 : _data$useDetails18.farArea),
|
|
6189
|
+
numberOfStudents: ((_data$waterConnection47 = data.waterConnection) === null || _data$waterConnection47 === void 0 ? void 0 : (_data$waterConnection48 = _data$waterConnection47.useDetails) === null || _data$waterConnection48 === void 0 ? void 0 : _data$waterConnection48.numberOfStudents) || ((_data$useDetails19 = data.useDetails) === null || _data$useDetails19 === void 0 ? void 0 : _data$useDetails19.numberOfStudents),
|
|
6190
|
+
numberOfBeds: ((_data$waterConnection49 = data.waterConnection) === null || _data$waterConnection49 === void 0 ? void 0 : (_data$waterConnection50 = _data$waterConnection49.useDetails) === null || _data$waterConnection50 === void 0 ? void 0 : _data$waterConnection50.numberOfBeds) || ((_data$useDetails20 = data.useDetails) === null || _data$useDetails20 === void 0 ? void 0 : _data$useDetails20.numberOfBeds),
|
|
6183
6191
|
owners: [...data.owners.map((owner, index) => {
|
|
6184
6192
|
var _owner$gender6, _owner$ownerType4, _owner$relationship4, _owner$inistitutetype4;
|
|
6185
6193
|
return _extends({}, owner, {
|
|
@@ -12207,19 +12215,6 @@ const ActionModal$5 = _ref => {
|
|
|
12207
12215
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
|
|
12208
12216
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat0 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat0 === void 0 ? void 0 : _parsedAdhocRebateDat0.adhocRebateComment) || "";
|
|
12209
12217
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat1 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat1 !== void 0 && _parsedAdhocRebateDat1.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateReason) || "";
|
|
12210
|
-
const inspectionInformationData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
|
|
12211
|
-
if (inspectionInformationData) {
|
|
12212
|
-
try {
|
|
12213
|
-
const parsedInspectionData = JSON.parse(inspectionInformationData);
|
|
12214
|
-
if (parsedInspectionData !== null && parsedInspectionData !== void 0 && parsedInspectionData.inspectionDate) {
|
|
12215
|
-
const dateVal = parsedInspectionData.inspectionDate;
|
|
12216
|
-
parsedInspectionData.inspectionDate = typeof dateVal === 'string' ? new Date(dateVal).getTime() : dateVal;
|
|
12217
|
-
}
|
|
12218
|
-
applicationData.inspectionInformation = parsedInspectionData;
|
|
12219
|
-
} catch (e) {
|
|
12220
|
-
console.error("Error parsing inspection information data", e);
|
|
12221
|
-
}
|
|
12222
|
-
}
|
|
12223
12218
|
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
12224
12219
|
WaterConnection: applicationData,
|
|
12225
12220
|
disconnectRequest: false,
|
|
@@ -15931,29 +15926,7 @@ const ViewBreakup = _ref => {
|
|
|
15931
15926
|
textStyle: {
|
|
15932
15927
|
textAlign: "right"
|
|
15933
15928
|
}
|
|
15934
|
-
})), /*#__PURE__*/React.createElement(
|
|
15935
|
-
style: {
|
|
15936
|
-
color: "#cccccc",
|
|
15937
|
-
backgroundColor: "#cccccc",
|
|
15938
|
-
marginBottom: "10px"
|
|
15939
|
-
}
|
|
15940
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
15941
|
-
className: "border-none",
|
|
15942
|
-
rowContainerStyle: {
|
|
15943
|
-
margin: "0px"
|
|
15944
|
-
},
|
|
15945
|
-
labelStyle: {
|
|
15946
|
-
width: "50%"
|
|
15947
|
-
},
|
|
15948
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT1",
|
|
15949
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
15950
|
-
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.fee) || 0),
|
|
15951
|
-
textStyle: {
|
|
15952
|
-
textAlign: "right",
|
|
15953
|
-
fontWeight: "700",
|
|
15954
|
-
fontSize: "24px"
|
|
15955
|
-
}
|
|
15956
|
-
}), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15929
|
+
})), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15957
15930
|
style: {
|
|
15958
15931
|
margin: "10px 0px"
|
|
15959
15932
|
}
|
|
@@ -15971,29 +15944,7 @@ const ViewBreakup = _ref => {
|
|
|
15971
15944
|
textStyle: {
|
|
15972
15945
|
textAlign: "right"
|
|
15973
15946
|
}
|
|
15974
|
-
})), /*#__PURE__*/React.createElement(
|
|
15975
|
-
style: {
|
|
15976
|
-
color: "#cccccc",
|
|
15977
|
-
backgroundColor: "#cccccc",
|
|
15978
|
-
marginBottom: "10px"
|
|
15979
|
-
}
|
|
15980
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
15981
|
-
className: "border-none",
|
|
15982
|
-
rowContainerStyle: {
|
|
15983
|
-
margin: "0px"
|
|
15984
|
-
},
|
|
15985
|
-
labelStyle: {
|
|
15986
|
-
width: "50%"
|
|
15987
|
-
},
|
|
15988
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2",
|
|
15989
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
15990
|
-
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
|
|
15991
|
-
textStyle: {
|
|
15992
|
-
textAlign: "right",
|
|
15993
|
-
fontWeight: "700",
|
|
15994
|
-
fontSize: "24px"
|
|
15995
|
-
}
|
|
15996
|
-
}), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab5 = breakUpData.billSlabData) === null || _breakUpData$billSlab5 === void 0 ? void 0 : (_breakUpData$billSlab6 = _breakUpData$billSlab5.TAX) === null || _breakUpData$billSlab6 === void 0 ? void 0 : _breakUpData$billSlab6.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
15947
|
+
})), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab5 = breakUpData.billSlabData) === null || _breakUpData$billSlab5 === void 0 ? void 0 : (_breakUpData$billSlab6 = _breakUpData$billSlab5.TAX) === null || _breakUpData$billSlab6 === void 0 ? void 0 : _breakUpData$billSlab6.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
15997
15948
|
className: "border-none",
|
|
15998
15949
|
rowContainerStyle: {
|
|
15999
15950
|
margin: "0px"
|
|
@@ -16325,7 +16276,8 @@ const DueVerification = _ref => {
|
|
|
16325
16276
|
return newData;
|
|
16326
16277
|
});
|
|
16327
16278
|
}, [applicationData]);
|
|
16328
|
-
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION";
|
|
16279
|
+
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
16280
|
+
const isActivation = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
16329
16281
|
const columns = useMemo(() => {
|
|
16330
16282
|
const baseColumns = [{
|
|
16331
16283
|
Header: t("K No."),
|
|
@@ -16350,7 +16302,7 @@ const DueVerification = _ref => {
|
|
|
16350
16302
|
Cell: _ref2 => {
|
|
16351
16303
|
let row = _ref2.row,
|
|
16352
16304
|
value = _ref2.value;
|
|
16353
|
-
return /*#__PURE__*/React.createElement(TextInput, {
|
|
16305
|
+
return isActivation ? value || "-" : /*#__PURE__*/React.createElement(TextInput, {
|
|
16354
16306
|
style: {
|
|
16355
16307
|
marginBottom: "0px",
|
|
16356
16308
|
minWidth: "150px"
|
|
@@ -16397,7 +16349,7 @@ const DueVerification = _ref => {
|
|
|
16397
16349
|
fontWeight: "bold",
|
|
16398
16350
|
marginBottom: "16px"
|
|
16399
16351
|
}
|
|
16400
|
-
}, t("Due Verification")), /*#__PURE__*/React.createElement("div", {
|
|
16352
|
+
}, t("Due Verification")), !isActivation && /*#__PURE__*/React.createElement("div", {
|
|
16401
16353
|
style: {
|
|
16402
16354
|
display: "flex",
|
|
16403
16355
|
alignItems: "flex-end",
|
|
@@ -16444,25 +16396,19 @@ const DueVerification = _ref => {
|
|
|
16444
16396
|
}
|
|
16445
16397
|
}, /*#__PURE__*/React.createElement(AddIcon, null)))), tableData.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
16446
16398
|
style: {
|
|
16447
|
-
marginTop: "
|
|
16399
|
+
marginTop: "15px",
|
|
16448
16400
|
overflowX: "auto"
|
|
16449
16401
|
}
|
|
16450
16402
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16451
16403
|
className: "customTable table-fixed-first-column table-border-style",
|
|
16452
16404
|
t: t,
|
|
16405
|
+
totalRecords: tableData.length,
|
|
16453
16406
|
disableSort: false,
|
|
16454
16407
|
autoSort: true,
|
|
16455
|
-
manualPagination:
|
|
16456
|
-
isPaginationRequired:
|
|
16408
|
+
manualPagination: true,
|
|
16409
|
+
isPaginationRequired: true,
|
|
16457
16410
|
data: tableData,
|
|
16458
|
-
columns: columns
|
|
16459
|
-
getCellProps: cellInfo => {
|
|
16460
|
-
return {
|
|
16461
|
-
style: {
|
|
16462
|
-
padding: "12px"
|
|
16463
|
-
}
|
|
16464
|
-
};
|
|
16465
|
-
}
|
|
16411
|
+
columns: columns
|
|
16466
16412
|
})));
|
|
16467
16413
|
};
|
|
16468
16414
|
|
|
@@ -16480,30 +16426,35 @@ const InspectionInformation = _ref => {
|
|
|
16480
16426
|
inspectorName = _useState3[0],
|
|
16481
16427
|
setInspectorName = _useState3[1];
|
|
16482
16428
|
useEffect(() => {
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16494
|
-
|
|
16495
|
-
|
|
16429
|
+
if (applicationData !== null && applicationData !== void 0 && applicationData.inspectionInformation) {
|
|
16430
|
+
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
16431
|
+
let matchedType = null;
|
|
16432
|
+
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
16433
|
+
if (inspectionCode) {
|
|
16434
|
+
matchedType = [{
|
|
16435
|
+
i18nKey: "ES_COMMON_SELECT",
|
|
16436
|
+
code: ""
|
|
16437
|
+
}, {
|
|
16438
|
+
i18nKey: "New Connection Visit",
|
|
16439
|
+
code: "new_connection_visit"
|
|
16440
|
+
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
16441
|
+
}
|
|
16442
|
+
setInspectionType(matchedType || null);
|
|
16443
|
+
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
16444
|
+
if (dateValue && typeof dateValue === 'number') {
|
|
16445
|
+
const d = new Date(dateValue);
|
|
16446
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
16447
|
+
} else if (dateValue && typeof dateValue === 'string' && dateValue.includes('-')) ; else if (dateValue) {
|
|
16448
|
+
const num = Number(dateValue);
|
|
16449
|
+
if (!isNaN(num)) {
|
|
16450
|
+
const d = new Date(num);
|
|
16451
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
16452
|
+
}
|
|
16453
|
+
}
|
|
16454
|
+
setInspectionDate(dateValue);
|
|
16496
16455
|
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
16497
|
-
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify(applicationData.inspectionInformation));
|
|
16498
16456
|
}
|
|
16499
16457
|
}, [applicationData]);
|
|
16500
|
-
useEffect(() => {
|
|
16501
|
-
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify({
|
|
16502
|
-
inspectionType,
|
|
16503
|
-
inspectionDate,
|
|
16504
|
-
inspectorName
|
|
16505
|
-
}));
|
|
16506
|
-
}, [inspectionType, inspectionDate, inspectorName]);
|
|
16507
16458
|
const inspectionTypeOptions = [{
|
|
16508
16459
|
i18nKey: "ES_COMMON_SELECT",
|
|
16509
16460
|
code: ""
|
|
@@ -16511,6 +16462,23 @@ const InspectionInformation = _ref => {
|
|
|
16511
16462
|
i18nKey: "New Connection Visit",
|
|
16512
16463
|
code: "new_connection_visit"
|
|
16513
16464
|
}];
|
|
16465
|
+
const handleInspectionTypeChange = selected => {
|
|
16466
|
+
setInspectionType(selected);
|
|
16467
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
16468
|
+
applicationData.inspectionInformation.inspectionType = selected;
|
|
16469
|
+
};
|
|
16470
|
+
const handleInspectionDateChange = date => {
|
|
16471
|
+
setInspectionDate(date);
|
|
16472
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
16473
|
+
applicationData.inspectionInformation.inspectionDate = date ? new Date(date).getTime() : null;
|
|
16474
|
+
};
|
|
16475
|
+
const handleInspectorNameChange = e => {
|
|
16476
|
+
const val = e.target.value;
|
|
16477
|
+
setInspectorName(val);
|
|
16478
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
16479
|
+
applicationData.inspectionInformation.inspectorName = val;
|
|
16480
|
+
};
|
|
16481
|
+
const readOnly = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
16514
16482
|
return /*#__PURE__*/React.createElement("div", {
|
|
16515
16483
|
style: {
|
|
16516
16484
|
marginBottom: "20px"
|
|
@@ -16530,79 +16498,53 @@ const InspectionInformation = _ref => {
|
|
|
16530
16498
|
}
|
|
16531
16499
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16532
16500
|
style: {
|
|
16533
|
-
flex:
|
|
16501
|
+
flex: 1
|
|
16534
16502
|
}
|
|
16535
16503
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16536
16504
|
style: {
|
|
16537
16505
|
fontSize: "16px",
|
|
16538
|
-
color: "#0B0C0C",
|
|
16539
16506
|
marginBottom: "8px",
|
|
16540
16507
|
display: "inline-block"
|
|
16541
16508
|
}
|
|
16542
|
-
}, t("Inspection Type"),
|
|
16543
|
-
style: {
|
|
16544
|
-
color: "red"
|
|
16545
|
-
}
|
|
16546
|
-
}, "*")), /*#__PURE__*/React.createElement(Dropdown, {
|
|
16509
|
+
}, t("Inspection Type")), /*#__PURE__*/React.createElement(Dropdown, {
|
|
16547
16510
|
option: inspectionTypeOptions,
|
|
16548
16511
|
optionKey: "i18nKey",
|
|
16549
|
-
id: "inspectionType",
|
|
16550
16512
|
selected: inspectionType,
|
|
16551
|
-
select:
|
|
16513
|
+
select: handleInspectionTypeChange,
|
|
16552
16514
|
t: t,
|
|
16553
|
-
|
|
16554
|
-
width: "100%"
|
|
16555
|
-
}
|
|
16515
|
+
disable: readOnly
|
|
16556
16516
|
})), /*#__PURE__*/React.createElement("div", {
|
|
16557
16517
|
style: {
|
|
16558
|
-
flex:
|
|
16518
|
+
flex: 1
|
|
16559
16519
|
}
|
|
16560
16520
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16561
16521
|
style: {
|
|
16562
16522
|
fontSize: "16px",
|
|
16563
|
-
color: "#0B0C0C",
|
|
16564
16523
|
marginBottom: "8px",
|
|
16565
16524
|
display: "inline-block"
|
|
16566
16525
|
}
|
|
16567
|
-
}, t("Inspection Date"),
|
|
16568
|
-
style: {
|
|
16569
|
-
color: "red"
|
|
16570
|
-
}
|
|
16571
|
-
}, "*")), /*#__PURE__*/React.createElement(DatePicker, {
|
|
16526
|
+
}, t("Inspection Date")), /*#__PURE__*/React.createElement(DatePicker, {
|
|
16572
16527
|
date: inspectionDate,
|
|
16573
|
-
onChange:
|
|
16574
|
-
|
|
16575
|
-
width: "100%"
|
|
16576
|
-
}
|
|
16528
|
+
onChange: handleInspectionDateChange,
|
|
16529
|
+
disabled: readOnly
|
|
16577
16530
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
16578
16531
|
style: {
|
|
16579
|
-
display: "flex"
|
|
16580
|
-
gap: "20px",
|
|
16581
|
-
marginBottom: "20px",
|
|
16582
|
-
flexWrap: "wrap"
|
|
16532
|
+
display: "flex"
|
|
16583
16533
|
}
|
|
16584
16534
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16585
16535
|
style: {
|
|
16586
|
-
flex:
|
|
16536
|
+
flex: 1
|
|
16587
16537
|
}
|
|
16588
16538
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16589
16539
|
style: {
|
|
16590
16540
|
fontSize: "16px",
|
|
16591
|
-
color: "#0B0C0C",
|
|
16592
16541
|
marginBottom: "8px",
|
|
16593
16542
|
display: "inline-block"
|
|
16594
16543
|
}
|
|
16595
|
-
}, t("Inspector Name"),
|
|
16596
|
-
style: {
|
|
16597
|
-
color: "red"
|
|
16598
|
-
}
|
|
16599
|
-
}, "*")), /*#__PURE__*/React.createElement(TextInput, {
|
|
16544
|
+
}, t("Inspector Name")), /*#__PURE__*/React.createElement(TextInput, {
|
|
16600
16545
|
value: inspectorName,
|
|
16601
|
-
onChange:
|
|
16602
|
-
|
|
16603
|
-
width: "50%",
|
|
16604
|
-
marginBottom: "0"
|
|
16605
|
-
}
|
|
16546
|
+
onChange: handleInspectorNameChange,
|
|
16547
|
+
disabled: readOnly
|
|
16606
16548
|
}))));
|
|
16607
16549
|
};
|
|
16608
16550
|
|
|
@@ -17118,9 +17060,11 @@ function ApplicationDetailsContent(_ref) {
|
|
|
17118
17060
|
}), (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, {
|
|
17119
17061
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
17120
17062
|
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
17121
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION") && /*#__PURE__*/React.createElement(DueVerification, {
|
|
17063
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_RECONNECTION") && /*#__PURE__*/React.createElement(DueVerification, {
|
|
17064
|
+
applicationData: applicationData
|
|
17065
|
+
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION") && /*#__PURE__*/React.createElement(InspectionInformation, {
|
|
17122
17066
|
applicationData: applicationData
|
|
17123
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
17067
|
+
}), (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, {
|
|
17124
17068
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
17125
17069
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
17126
17070
|
wsAdditionalDetails: detail,
|
|
@@ -19012,7 +18956,7 @@ const _excluded$4 = ["t", "config", "onSelect", "formData", "formState", "setErr
|
|
|
19012
18956
|
const NUMBER_PATTERN = /^\d+$/;
|
|
19013
18957
|
const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
|
|
19014
18958
|
const PropertyWaterConnection = _ref => {
|
|
19015
|
-
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;
|
|
18959
|
+
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;
|
|
19016
18960
|
let t = _ref.t,
|
|
19017
18961
|
config = _ref.config,
|
|
19018
18962
|
onSelect = _ref.onSelect,
|
|
@@ -19029,10 +18973,12 @@ const PropertyWaterConnection = _ref => {
|
|
|
19029
18973
|
noOfFloors: null,
|
|
19030
18974
|
plotArea: "",
|
|
19031
18975
|
builtUpArea: "",
|
|
18976
|
+
farArea: "",
|
|
19032
18977
|
SelectYearofConstruction: null,
|
|
19033
18978
|
NumberofDwellingUnits: "",
|
|
19034
18979
|
NumberofRooms: "",
|
|
19035
|
-
|
|
18980
|
+
numberOfBeds: "",
|
|
18981
|
+
numberOfStudents: ""
|
|
19036
18982
|
}
|
|
19037
18983
|
}
|
|
19038
18984
|
}),
|
|
@@ -19070,6 +19016,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19070
19016
|
const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
|
|
19071
19017
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
19072
19018
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
19019
|
+
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
19073
19020
|
const yearOptions = useMemo(() => {
|
|
19074
19021
|
const currentYear = new Date().getFullYear();
|
|
19075
19022
|
const years = [];
|
|
@@ -19195,10 +19142,12 @@ const PropertyWaterConnection = _ref => {
|
|
|
19195
19142
|
setValue("useDetails.noOfFloors", null);
|
|
19196
19143
|
setValue("useDetails.plotArea", "");
|
|
19197
19144
|
setValue("useDetails.builtUpArea", "");
|
|
19145
|
+
setValue("useDetails.farArea", "");
|
|
19198
19146
|
setValue("useDetails.SelectYearofConstruction", null);
|
|
19199
19147
|
setValue("useDetails.NumberofDwellingUnits", "");
|
|
19200
19148
|
setValue("useDetails.NumberofRooms", "");
|
|
19201
|
-
setValue("useDetails.
|
|
19149
|
+
setValue("useDetails.numberOfBeds", "");
|
|
19150
|
+
setValue("useDetails.numberOfStudents", "");
|
|
19202
19151
|
}
|
|
19203
19152
|
}, [formData === null || formData === void 0 ? void 0 : (_formData$cpt2 = formData.cpt) === null || _formData$cpt2 === void 0 ? void 0 : _formData$cpt2.details, formData === null || formData === void 0 ? void 0 : formData.cpt, categoryOptions, propertyTypeOptions, usageTypeOptions, floorOptions, yearOptions, categoryTypeList, setValue]);
|
|
19204
19153
|
const lastErrorState = React.useRef(null);
|
|
@@ -19224,7 +19173,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19224
19173
|
};
|
|
19225
19174
|
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
19226
19175
|
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " " + t("(Automatic Fill by Property)") : ""),
|
|
19227
|
-
defaultOpen: false,
|
|
19176
|
+
defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true,
|
|
19228
19177
|
style: props.style
|
|
19229
19178
|
}, /*#__PURE__*/React.createElement("div", {
|
|
19230
19179
|
className: "formcomposer-section-grid"
|
|
@@ -19348,7 +19297,21 @@ const PropertyWaterConnection = _ref => {
|
|
|
19348
19297
|
disabled: isPropertyFound
|
|
19349
19298
|
}))), (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, {
|
|
19350
19299
|
style: errorStyle
|
|
19351
|
-
}, errors.useDetails.builtUpArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null,
|
|
19300
|
+
}, errors.useDetails.builtUpArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React.createElement("div", {
|
|
19301
|
+
className: "form-field"
|
|
19302
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
19303
|
+
t: t,
|
|
19304
|
+
inputRef: register({
|
|
19305
|
+
pattern: {
|
|
19306
|
+
value: DECIMAL_PATTERN,
|
|
19307
|
+
message: t("ERR_INVALID_DECIMAL")
|
|
19308
|
+
}
|
|
19309
|
+
}),
|
|
19310
|
+
name: "useDetails.farArea",
|
|
19311
|
+
disabled: isPropertyFound
|
|
19312
|
+
}))), (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, {
|
|
19313
|
+
style: errorStyle
|
|
19314
|
+
}, errors.useDetails.farArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SELECT_YEAR_OF_CONSTRUCTION") + "*"), /*#__PURE__*/React.createElement("div", {
|
|
19352
19315
|
className: "form-field"
|
|
19353
19316
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
19354
19317
|
control: control,
|
|
@@ -19365,7 +19328,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19365
19328
|
onBlur: props.onBlur,
|
|
19366
19329
|
disable: isPropertyFound
|
|
19367
19330
|
})
|
|
19368
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19331
|
+
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails9 = errors.useDetails) === null || _errors$useDetails9 === void 0 ? void 0 : _errors$useDetails9.SelectYearofConstruction) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19369
19332
|
style: errorStyle
|
|
19370
19333
|
}, errors.useDetails.SelectYearofConstruction.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_NUMBER_OF_DWELLING_UNITS")), /*#__PURE__*/React.createElement("div", {
|
|
19371
19334
|
className: "form-field"
|
|
@@ -19379,7 +19342,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19379
19342
|
}),
|
|
19380
19343
|
name: "useDetails.NumberofDwellingUnits",
|
|
19381
19344
|
disabled: isPropertyFound
|
|
19382
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19345
|
+
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails0 = errors.useDetails) === null || _errors$useDetails0 === void 0 ? void 0 : _errors$useDetails0.NumberofDwellingUnits) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19383
19346
|
style: errorStyle
|
|
19384
19347
|
}, errors.useDetails.NumberofDwellingUnits.message), isHotelRestaurantProperty ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NUMBER_OF_ROOMS") + "*"), /*#__PURE__*/React.createElement("div", {
|
|
19385
19348
|
className: "form-field"
|
|
@@ -19394,7 +19357,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19394
19357
|
}),
|
|
19395
19358
|
name: "useDetails.NumberofRooms",
|
|
19396
19359
|
disabled: isPropertyFound
|
|
19397
|
-
}))) : null, isHotelRestaurantProperty && (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19360
|
+
}))) : null, isHotelRestaurantProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails1 = errors.useDetails) === null || _errors$useDetails1 === void 0 ? void 0 : _errors$useDetails1.NumberofRooms) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19398
19361
|
style: errorStyle
|
|
19399
19362
|
}, errors.useDetails.NumberofRooms.message), isHospitalProperty ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NUMBER_OF_BEDS") + "*"), /*#__PURE__*/React.createElement("div", {
|
|
19400
19363
|
className: "form-field"
|
|
@@ -19407,11 +19370,25 @@ const PropertyWaterConnection = _ref => {
|
|
|
19407
19370
|
},
|
|
19408
19371
|
required: isHospitalProperty ? t("REQUIRED_FIELD") : false
|
|
19409
19372
|
}),
|
|
19410
|
-
name: "useDetails.
|
|
19373
|
+
name: "useDetails.numberOfBeds",
|
|
19374
|
+
disabled: isPropertyFound
|
|
19375
|
+
}))) : null, isHospitalProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails10 = errors.useDetails) === null || _errors$useDetails10 === void 0 ? void 0 : _errors$useDetails10.numberOfBeds) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19376
|
+
style: errorStyle
|
|
19377
|
+
}, errors.useDetails.numberOfBeds.message), isSchoolCollegeProperty ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_NUMBER_OF_STUDENTS")), /*#__PURE__*/React.createElement("div", {
|
|
19378
|
+
className: "form-field"
|
|
19379
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
19380
|
+
t: t,
|
|
19381
|
+
inputRef: register({
|
|
19382
|
+
pattern: {
|
|
19383
|
+
value: NUMBER_PATTERN,
|
|
19384
|
+
message: t("ERR_INVALID_NUMBER")
|
|
19385
|
+
}
|
|
19386
|
+
}),
|
|
19387
|
+
name: "useDetails.numberOfStudents",
|
|
19411
19388
|
disabled: isPropertyFound
|
|
19412
|
-
}))) : null,
|
|
19389
|
+
}))) : null, isSchoolCollegeProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails11 = errors.useDetails) === null || _errors$useDetails11 === void 0 ? void 0 : _errors$useDetails11.numberOfStudents) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19413
19390
|
style: errorStyle
|
|
19414
|
-
}, errors.useDetails.
|
|
19391
|
+
}, errors.useDetails.numberOfStudents.message)));
|
|
19415
19392
|
};
|
|
19416
19393
|
|
|
19417
19394
|
const SwitchComponent = props => {
|