@djb25/digit-ui-module-commonpt 1.0.19 → 1.0.21
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 +130 -153
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +130 -153
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6032,7 +6032,7 @@ const setPropertyDetailsLW = data => {
|
|
|
6032
6032
|
return data;
|
|
6033
6033
|
};
|
|
6034
6034
|
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;
|
|
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, _data$waterConnection21, _data$waterConnection22, _data$useDetails0, _data$waterConnection23, _data$waterConnection24, _data$useDetails1;
|
|
6036
6036
|
if (data === void 0) {
|
|
6037
6037
|
data = {};
|
|
6038
6038
|
}
|
|
@@ -6086,7 +6086,9 @@ const convertToPropertyLightWeight = function (data) {
|
|
|
6086
6086
|
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
6087
|
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
6088
|
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
|
-
|
|
6089
|
+
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),
|
|
6090
|
+
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.numnberOfStudents) || ((_data$useDetails0 = data.useDetails) === null || _data$useDetails0 === void 0 ? void 0 : _data$useDetails0.numnberOfStudents),
|
|
6091
|
+
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.hospitalBeds) || ((_data$useDetails1 = data.useDetails) === null || _data$useDetails1 === void 0 ? void 0 : _data$useDetails1.hospitalBeds),
|
|
6090
6092
|
owners: [...(data.owners || []).map((owner, index) => {
|
|
6091
6093
|
var _owner$gender3, _owner$gender4, _owner$ownerType2, _owner$relationship2, _owner$inistitutetype2;
|
|
6092
6094
|
return _extends({}, owner, {
|
|
@@ -6124,7 +6126,7 @@ const convertToPropertyLightWeight = function (data) {
|
|
|
6124
6126
|
return formdata;
|
|
6125
6127
|
};
|
|
6126
6128
|
const convertToUpdatePropertyLightWeight = function (data) {
|
|
6127
|
-
var _data$propertyDetails5, _data$propertyDetails6, _data$
|
|
6129
|
+
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
6130
|
if (data === void 0) {
|
|
6129
6131
|
data = {};
|
|
6130
6132
|
}
|
|
@@ -6171,15 +6173,17 @@ const convertToUpdatePropertyLightWeight = function (data) {
|
|
|
6171
6173
|
noOfFloors: noOfFloors,
|
|
6172
6174
|
additionalDetails: {
|
|
6173
6175
|
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
|
-
|
|
6176
|
+
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),
|
|
6177
|
+
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),
|
|
6178
|
+
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),
|
|
6179
|
+
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),
|
|
6180
|
+
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),
|
|
6181
|
+
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,
|
|
6182
|
+
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),
|
|
6183
|
+
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),
|
|
6184
|
+
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),
|
|
6185
|
+
numnberOfStudents: ((_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.numnberOfStudents) || ((_data$useDetails19 = data.useDetails) === null || _data$useDetails19 === void 0 ? void 0 : _data$useDetails19.numnberOfStudents),
|
|
6186
|
+
hospitalBeds: ((_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.hospitalBeds) || ((_data$useDetails20 = data.useDetails) === null || _data$useDetails20 === void 0 ? void 0 : _data$useDetails20.hospitalBeds),
|
|
6183
6187
|
owners: [...data.owners.map((owner, index) => {
|
|
6184
6188
|
var _owner$gender6, _owner$ownerType4, _owner$relationship4, _owner$inistitutetype4;
|
|
6185
6189
|
return _extends({}, owner, {
|
|
@@ -12207,14 +12211,6 @@ const ActionModal$5 = _ref => {
|
|
|
12207
12211
|
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
12212
|
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
12213
|
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
|
-
applicationData.inspectionInformation = JSON.parse(inspectionInformationData);
|
|
12214
|
-
} catch (e) {
|
|
12215
|
-
console.error("Error parsing inspection information data", e);
|
|
12216
|
-
}
|
|
12217
|
-
}
|
|
12218
12214
|
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
12219
12215
|
WaterConnection: applicationData,
|
|
12220
12216
|
disconnectRequest: false,
|
|
@@ -15926,29 +15922,7 @@ const ViewBreakup = _ref => {
|
|
|
15926
15922
|
textStyle: {
|
|
15927
15923
|
textAlign: "right"
|
|
15928
15924
|
}
|
|
15929
|
-
})), /*#__PURE__*/React.createElement(
|
|
15930
|
-
style: {
|
|
15931
|
-
color: "#cccccc",
|
|
15932
|
-
backgroundColor: "#cccccc",
|
|
15933
|
-
marginBottom: "10px"
|
|
15934
|
-
}
|
|
15935
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
15936
|
-
className: "border-none",
|
|
15937
|
-
rowContainerStyle: {
|
|
15938
|
-
margin: "0px"
|
|
15939
|
-
},
|
|
15940
|
-
labelStyle: {
|
|
15941
|
-
width: "50%"
|
|
15942
|
-
},
|
|
15943
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT1",
|
|
15944
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
15945
|
-
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.fee) || 0),
|
|
15946
|
-
textStyle: {
|
|
15947
|
-
textAlign: "right",
|
|
15948
|
-
fontWeight: "700",
|
|
15949
|
-
fontSize: "24px"
|
|
15950
|
-
}
|
|
15951
|
-
}), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15925
|
+
})), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15952
15926
|
style: {
|
|
15953
15927
|
margin: "10px 0px"
|
|
15954
15928
|
}
|
|
@@ -15966,29 +15940,7 @@ const ViewBreakup = _ref => {
|
|
|
15966
15940
|
textStyle: {
|
|
15967
15941
|
textAlign: "right"
|
|
15968
15942
|
}
|
|
15969
|
-
})), /*#__PURE__*/React.createElement(
|
|
15970
|
-
style: {
|
|
15971
|
-
color: "#cccccc",
|
|
15972
|
-
backgroundColor: "#cccccc",
|
|
15973
|
-
marginBottom: "10px"
|
|
15974
|
-
}
|
|
15975
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
15976
|
-
className: "border-none",
|
|
15977
|
-
rowContainerStyle: {
|
|
15978
|
-
margin: "0px"
|
|
15979
|
-
},
|
|
15980
|
-
labelStyle: {
|
|
15981
|
-
width: "50%"
|
|
15982
|
-
},
|
|
15983
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2",
|
|
15984
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
15985
|
-
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
|
|
15986
|
-
textStyle: {
|
|
15987
|
-
textAlign: "right",
|
|
15988
|
-
fontWeight: "700",
|
|
15989
|
-
fontSize: "24px"
|
|
15990
|
-
}
|
|
15991
|
-
}), 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, {
|
|
15943
|
+
})), 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, {
|
|
15992
15944
|
className: "border-none",
|
|
15993
15945
|
rowContainerStyle: {
|
|
15994
15946
|
margin: "0px"
|
|
@@ -16320,7 +16272,8 @@ const DueVerification = _ref => {
|
|
|
16320
16272
|
return newData;
|
|
16321
16273
|
});
|
|
16322
16274
|
}, [applicationData]);
|
|
16323
|
-
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION";
|
|
16275
|
+
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";
|
|
16276
|
+
const isActivation = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
16324
16277
|
const columns = useMemo(() => {
|
|
16325
16278
|
const baseColumns = [{
|
|
16326
16279
|
Header: t("K No."),
|
|
@@ -16345,7 +16298,7 @@ const DueVerification = _ref => {
|
|
|
16345
16298
|
Cell: _ref2 => {
|
|
16346
16299
|
let row = _ref2.row,
|
|
16347
16300
|
value = _ref2.value;
|
|
16348
|
-
return /*#__PURE__*/React.createElement(TextInput, {
|
|
16301
|
+
return isActivation ? value || "-" : /*#__PURE__*/React.createElement(TextInput, {
|
|
16349
16302
|
style: {
|
|
16350
16303
|
marginBottom: "0px",
|
|
16351
16304
|
minWidth: "150px"
|
|
@@ -16392,7 +16345,7 @@ const DueVerification = _ref => {
|
|
|
16392
16345
|
fontWeight: "bold",
|
|
16393
16346
|
marginBottom: "16px"
|
|
16394
16347
|
}
|
|
16395
|
-
}, t("Due Verification")), /*#__PURE__*/React.createElement("div", {
|
|
16348
|
+
}, t("Due Verification")), !isActivation && /*#__PURE__*/React.createElement("div", {
|
|
16396
16349
|
style: {
|
|
16397
16350
|
display: "flex",
|
|
16398
16351
|
alignItems: "flex-end",
|
|
@@ -16439,25 +16392,19 @@ const DueVerification = _ref => {
|
|
|
16439
16392
|
}
|
|
16440
16393
|
}, /*#__PURE__*/React.createElement(AddIcon, null)))), tableData.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
16441
16394
|
style: {
|
|
16442
|
-
marginTop: "
|
|
16395
|
+
marginTop: "15px",
|
|
16443
16396
|
overflowX: "auto"
|
|
16444
16397
|
}
|
|
16445
16398
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16446
16399
|
className: "customTable table-fixed-first-column table-border-style",
|
|
16447
16400
|
t: t,
|
|
16401
|
+
totalRecords: tableData.length,
|
|
16448
16402
|
disableSort: false,
|
|
16449
16403
|
autoSort: true,
|
|
16450
|
-
manualPagination:
|
|
16451
|
-
isPaginationRequired:
|
|
16404
|
+
manualPagination: true,
|
|
16405
|
+
isPaginationRequired: true,
|
|
16452
16406
|
data: tableData,
|
|
16453
|
-
columns: columns
|
|
16454
|
-
getCellProps: cellInfo => {
|
|
16455
|
-
return {
|
|
16456
|
-
style: {
|
|
16457
|
-
padding: "12px"
|
|
16458
|
-
}
|
|
16459
|
-
};
|
|
16460
|
-
}
|
|
16407
|
+
columns: columns
|
|
16461
16408
|
})));
|
|
16462
16409
|
};
|
|
16463
16410
|
|
|
@@ -16475,30 +16422,35 @@ const InspectionInformation = _ref => {
|
|
|
16475
16422
|
inspectorName = _useState3[0],
|
|
16476
16423
|
setInspectorName = _useState3[1];
|
|
16477
16424
|
useEffect(() => {
|
|
16478
|
-
|
|
16479
|
-
|
|
16480
|
-
|
|
16481
|
-
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16425
|
+
if (applicationData !== null && applicationData !== void 0 && applicationData.inspectionInformation) {
|
|
16426
|
+
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
16427
|
+
let matchedType = null;
|
|
16428
|
+
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
16429
|
+
if (inspectionCode) {
|
|
16430
|
+
matchedType = [{
|
|
16431
|
+
i18nKey: "ES_COMMON_SELECT",
|
|
16432
|
+
code: ""
|
|
16433
|
+
}, {
|
|
16434
|
+
i18nKey: "New Connection Visit",
|
|
16435
|
+
code: "new_connection_visit"
|
|
16436
|
+
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
16437
|
+
}
|
|
16438
|
+
setInspectionType(matchedType || null);
|
|
16439
|
+
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
16440
|
+
if (dateValue && typeof dateValue === 'number') {
|
|
16441
|
+
const d = new Date(dateValue);
|
|
16442
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
16443
|
+
} else if (dateValue && typeof dateValue === 'string' && dateValue.includes('-')) ; else if (dateValue) {
|
|
16444
|
+
const num = Number(dateValue);
|
|
16445
|
+
if (!isNaN(num)) {
|
|
16446
|
+
const d = new Date(num);
|
|
16447
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
16448
|
+
}
|
|
16449
|
+
}
|
|
16450
|
+
setInspectionDate(dateValue);
|
|
16491
16451
|
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
16492
|
-
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify(applicationData.inspectionInformation));
|
|
16493
16452
|
}
|
|
16494
16453
|
}, [applicationData]);
|
|
16495
|
-
useEffect(() => {
|
|
16496
|
-
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify({
|
|
16497
|
-
inspectionType,
|
|
16498
|
-
inspectionDate,
|
|
16499
|
-
inspectorName
|
|
16500
|
-
}));
|
|
16501
|
-
}, [inspectionType, inspectionDate, inspectorName]);
|
|
16502
16454
|
const inspectionTypeOptions = [{
|
|
16503
16455
|
i18nKey: "ES_COMMON_SELECT",
|
|
16504
16456
|
code: ""
|
|
@@ -16506,6 +16458,23 @@ const InspectionInformation = _ref => {
|
|
|
16506
16458
|
i18nKey: "New Connection Visit",
|
|
16507
16459
|
code: "new_connection_visit"
|
|
16508
16460
|
}];
|
|
16461
|
+
const handleInspectionTypeChange = selected => {
|
|
16462
|
+
setInspectionType(selected);
|
|
16463
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
16464
|
+
applicationData.inspectionInformation.inspectionType = selected;
|
|
16465
|
+
};
|
|
16466
|
+
const handleInspectionDateChange = date => {
|
|
16467
|
+
setInspectionDate(date);
|
|
16468
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
16469
|
+
applicationData.inspectionInformation.inspectionDate = date ? new Date(date).getTime() : null;
|
|
16470
|
+
};
|
|
16471
|
+
const handleInspectorNameChange = e => {
|
|
16472
|
+
const val = e.target.value;
|
|
16473
|
+
setInspectorName(val);
|
|
16474
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
16475
|
+
applicationData.inspectionInformation.inspectorName = val;
|
|
16476
|
+
};
|
|
16477
|
+
const readOnly = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
16509
16478
|
return /*#__PURE__*/React.createElement("div", {
|
|
16510
16479
|
style: {
|
|
16511
16480
|
marginBottom: "20px"
|
|
@@ -16525,79 +16494,53 @@ const InspectionInformation = _ref => {
|
|
|
16525
16494
|
}
|
|
16526
16495
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16527
16496
|
style: {
|
|
16528
|
-
flex:
|
|
16497
|
+
flex: 1
|
|
16529
16498
|
}
|
|
16530
16499
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16531
16500
|
style: {
|
|
16532
16501
|
fontSize: "16px",
|
|
16533
|
-
color: "#0B0C0C",
|
|
16534
16502
|
marginBottom: "8px",
|
|
16535
16503
|
display: "inline-block"
|
|
16536
16504
|
}
|
|
16537
|
-
}, t("Inspection Type"),
|
|
16538
|
-
style: {
|
|
16539
|
-
color: "red"
|
|
16540
|
-
}
|
|
16541
|
-
}, "*")), /*#__PURE__*/React.createElement(Dropdown, {
|
|
16505
|
+
}, t("Inspection Type")), /*#__PURE__*/React.createElement(Dropdown, {
|
|
16542
16506
|
option: inspectionTypeOptions,
|
|
16543
16507
|
optionKey: "i18nKey",
|
|
16544
|
-
id: "inspectionType",
|
|
16545
16508
|
selected: inspectionType,
|
|
16546
|
-
select:
|
|
16509
|
+
select: handleInspectionTypeChange,
|
|
16547
16510
|
t: t,
|
|
16548
|
-
|
|
16549
|
-
width: "100%"
|
|
16550
|
-
}
|
|
16511
|
+
disable: readOnly
|
|
16551
16512
|
})), /*#__PURE__*/React.createElement("div", {
|
|
16552
16513
|
style: {
|
|
16553
|
-
flex:
|
|
16514
|
+
flex: 1
|
|
16554
16515
|
}
|
|
16555
16516
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16556
16517
|
style: {
|
|
16557
16518
|
fontSize: "16px",
|
|
16558
|
-
color: "#0B0C0C",
|
|
16559
16519
|
marginBottom: "8px",
|
|
16560
16520
|
display: "inline-block"
|
|
16561
16521
|
}
|
|
16562
|
-
}, t("Inspection Date"),
|
|
16563
|
-
style: {
|
|
16564
|
-
color: "red"
|
|
16565
|
-
}
|
|
16566
|
-
}, "*")), /*#__PURE__*/React.createElement(DatePicker, {
|
|
16522
|
+
}, t("Inspection Date")), /*#__PURE__*/React.createElement(DatePicker, {
|
|
16567
16523
|
date: inspectionDate,
|
|
16568
|
-
onChange:
|
|
16569
|
-
|
|
16570
|
-
width: "100%"
|
|
16571
|
-
}
|
|
16524
|
+
onChange: handleInspectionDateChange,
|
|
16525
|
+
disabled: readOnly
|
|
16572
16526
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
16573
16527
|
style: {
|
|
16574
|
-
display: "flex"
|
|
16575
|
-
gap: "20px",
|
|
16576
|
-
marginBottom: "20px",
|
|
16577
|
-
flexWrap: "wrap"
|
|
16528
|
+
display: "flex"
|
|
16578
16529
|
}
|
|
16579
16530
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16580
16531
|
style: {
|
|
16581
|
-
flex:
|
|
16532
|
+
flex: 1
|
|
16582
16533
|
}
|
|
16583
16534
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16584
16535
|
style: {
|
|
16585
16536
|
fontSize: "16px",
|
|
16586
|
-
color: "#0B0C0C",
|
|
16587
16537
|
marginBottom: "8px",
|
|
16588
16538
|
display: "inline-block"
|
|
16589
16539
|
}
|
|
16590
|
-
}, t("Inspector Name"),
|
|
16591
|
-
style: {
|
|
16592
|
-
color: "red"
|
|
16593
|
-
}
|
|
16594
|
-
}, "*")), /*#__PURE__*/React.createElement(TextInput, {
|
|
16540
|
+
}, t("Inspector Name")), /*#__PURE__*/React.createElement(TextInput, {
|
|
16595
16541
|
value: inspectorName,
|
|
16596
|
-
onChange:
|
|
16597
|
-
|
|
16598
|
-
width: "50%",
|
|
16599
|
-
marginBottom: "0"
|
|
16600
|
-
}
|
|
16542
|
+
onChange: handleInspectorNameChange,
|
|
16543
|
+
disabled: readOnly
|
|
16601
16544
|
}))));
|
|
16602
16545
|
};
|
|
16603
16546
|
|
|
@@ -17113,9 +17056,11 @@ function ApplicationDetailsContent(_ref) {
|
|
|
17113
17056
|
}), (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, {
|
|
17114
17057
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
17115
17058
|
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
17116
|
-
}), (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, {
|
|
17059
|
+
}), (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, {
|
|
17060
|
+
applicationData: applicationData
|
|
17061
|
+
}), " ", (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, {
|
|
17117
17062
|
applicationData: applicationData
|
|
17118
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
17063
|
+
}), (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, {
|
|
17119
17064
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
17120
17065
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
17121
17066
|
wsAdditionalDetails: detail,
|
|
@@ -19007,7 +18952,7 @@ const _excluded$4 = ["t", "config", "onSelect", "formData", "formState", "setErr
|
|
|
19007
18952
|
const NUMBER_PATTERN = /^\d+$/;
|
|
19008
18953
|
const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
|
|
19009
18954
|
const PropertyWaterConnection = _ref => {
|
|
19010
|
-
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;
|
|
18955
|
+
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;
|
|
19011
18956
|
let t = _ref.t,
|
|
19012
18957
|
config = _ref.config,
|
|
19013
18958
|
onSelect = _ref.onSelect,
|
|
@@ -19024,17 +18969,18 @@ const PropertyWaterConnection = _ref => {
|
|
|
19024
18969
|
noOfFloors: null,
|
|
19025
18970
|
plotArea: "",
|
|
19026
18971
|
builtUpArea: "",
|
|
18972
|
+
farArea: "",
|
|
19027
18973
|
SelectYearofConstruction: null,
|
|
19028
18974
|
NumberofDwellingUnits: "",
|
|
19029
18975
|
NumberofRooms: "",
|
|
19030
|
-
hospitalBeds: ""
|
|
18976
|
+
hospitalBeds: "",
|
|
18977
|
+
numnberOfStudents: ""
|
|
19031
18978
|
}
|
|
19032
18979
|
}
|
|
19033
18980
|
}),
|
|
19034
18981
|
control = _useForm.control,
|
|
19035
18982
|
register = _useForm.register,
|
|
19036
|
-
|
|
19037
|
-
errors = _useForm$formState.errors,
|
|
18983
|
+
errors = _useForm.formState.errors,
|
|
19038
18984
|
watch = _useForm.watch,
|
|
19039
18985
|
setValue = _useForm.setValue;
|
|
19040
18986
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
@@ -19066,6 +19012,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19066
19012
|
const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
|
|
19067
19013
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
19068
19014
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
19015
|
+
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
19069
19016
|
const yearOptions = useMemo(() => {
|
|
19070
19017
|
const currentYear = new Date().getFullYear();
|
|
19071
19018
|
const years = [];
|
|
@@ -19191,10 +19138,12 @@ const PropertyWaterConnection = _ref => {
|
|
|
19191
19138
|
setValue("useDetails.noOfFloors", null);
|
|
19192
19139
|
setValue("useDetails.plotArea", "");
|
|
19193
19140
|
setValue("useDetails.builtUpArea", "");
|
|
19141
|
+
setValue("useDetails.farArea", "");
|
|
19194
19142
|
setValue("useDetails.SelectYearofConstruction", null);
|
|
19195
19143
|
setValue("useDetails.NumberofDwellingUnits", "");
|
|
19196
19144
|
setValue("useDetails.NumberofRooms", "");
|
|
19197
19145
|
setValue("useDetails.hospitalBeds", "");
|
|
19146
|
+
setValue("useDetails.numnberOfStudents", "");
|
|
19198
19147
|
}
|
|
19199
19148
|
}, [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]);
|
|
19200
19149
|
const lastErrorState = React.useRef(null);
|
|
@@ -19219,7 +19168,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19219
19168
|
marginTop: "-21px"
|
|
19220
19169
|
};
|
|
19221
19170
|
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
19222
|
-
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " (Automatic Fill by Property
|
|
19171
|
+
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " " + t("(Automatic Fill by Property)") : ""),
|
|
19223
19172
|
defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true,
|
|
19224
19173
|
style: props.style
|
|
19225
19174
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -19344,7 +19293,21 @@ const PropertyWaterConnection = _ref => {
|
|
|
19344
19293
|
disabled: isPropertyFound
|
|
19345
19294
|
}))), (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, {
|
|
19346
19295
|
style: errorStyle
|
|
19347
|
-
}, errors.useDetails.builtUpArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null,
|
|
19296
|
+
}, errors.useDetails.builtUpArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React.createElement("div", {
|
|
19297
|
+
className: "form-field"
|
|
19298
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
19299
|
+
t: t,
|
|
19300
|
+
inputRef: register({
|
|
19301
|
+
pattern: {
|
|
19302
|
+
value: DECIMAL_PATTERN,
|
|
19303
|
+
message: t("ERR_INVALID_DECIMAL")
|
|
19304
|
+
}
|
|
19305
|
+
}),
|
|
19306
|
+
name: "useDetails.farArea",
|
|
19307
|
+
disabled: isPropertyFound
|
|
19308
|
+
}))), (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, {
|
|
19309
|
+
style: errorStyle
|
|
19310
|
+
}, errors.useDetails.farArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SELECT_YEAR_OF_CONSTRUCTION") + "*"), /*#__PURE__*/React.createElement("div", {
|
|
19348
19311
|
className: "form-field"
|
|
19349
19312
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
19350
19313
|
control: control,
|
|
@@ -19361,7 +19324,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19361
19324
|
onBlur: props.onBlur,
|
|
19362
19325
|
disable: isPropertyFound
|
|
19363
19326
|
})
|
|
19364
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19327
|
+
}))), (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, {
|
|
19365
19328
|
style: errorStyle
|
|
19366
19329
|
}, errors.useDetails.SelectYearofConstruction.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_NUMBER_OF_DWELLING_UNITS")), /*#__PURE__*/React.createElement("div", {
|
|
19367
19330
|
className: "form-field"
|
|
@@ -19375,7 +19338,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19375
19338
|
}),
|
|
19376
19339
|
name: "useDetails.NumberofDwellingUnits",
|
|
19377
19340
|
disabled: isPropertyFound
|
|
19378
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19341
|
+
}))), (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, {
|
|
19379
19342
|
style: errorStyle
|
|
19380
19343
|
}, errors.useDetails.NumberofDwellingUnits.message), isHotelRestaurantProperty ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NUMBER_OF_ROOMS") + "*"), /*#__PURE__*/React.createElement("div", {
|
|
19381
19344
|
className: "form-field"
|
|
@@ -19390,7 +19353,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19390
19353
|
}),
|
|
19391
19354
|
name: "useDetails.NumberofRooms",
|
|
19392
19355
|
disabled: isPropertyFound
|
|
19393
|
-
}))) : null, isHotelRestaurantProperty && (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19356
|
+
}))) : 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, {
|
|
19394
19357
|
style: errorStyle
|
|
19395
19358
|
}, errors.useDetails.NumberofRooms.message), isHospitalProperty ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NUMBER_OF_BEDS") + "*"), /*#__PURE__*/React.createElement("div", {
|
|
19396
19359
|
className: "form-field"
|
|
@@ -19405,9 +19368,23 @@ const PropertyWaterConnection = _ref => {
|
|
|
19405
19368
|
}),
|
|
19406
19369
|
name: "useDetails.hospitalBeds",
|
|
19407
19370
|
disabled: isPropertyFound
|
|
19408
|
-
}))) : null, isHospitalProperty && (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19371
|
+
}))) : null, isHospitalProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails10 = errors.useDetails) === null || _errors$useDetails10 === void 0 ? void 0 : _errors$useDetails10.hospitalBeds) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19372
|
+
style: errorStyle
|
|
19373
|
+
}, errors.useDetails.hospitalBeds.message), isSchoolCollegeProperty ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_NUMBER_OF_STUDENTS")), /*#__PURE__*/React.createElement("div", {
|
|
19374
|
+
className: "form-field"
|
|
19375
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
19376
|
+
t: t,
|
|
19377
|
+
inputRef: register({
|
|
19378
|
+
pattern: {
|
|
19379
|
+
value: NUMBER_PATTERN,
|
|
19380
|
+
message: t("ERR_INVALID_NUMBER")
|
|
19381
|
+
}
|
|
19382
|
+
}),
|
|
19383
|
+
name: "useDetails.numnberOfStudents",
|
|
19384
|
+
disabled: isPropertyFound
|
|
19385
|
+
}))) : null, isSchoolCollegeProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails11 = errors.useDetails) === null || _errors$useDetails11 === void 0 ? void 0 : _errors$useDetails11.numnberOfStudents) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19409
19386
|
style: errorStyle
|
|
19410
|
-
}, errors.useDetails.
|
|
19387
|
+
}, errors.useDetails.numnberOfStudents.message)));
|
|
19411
19388
|
};
|
|
19412
19389
|
|
|
19413
19390
|
const SwitchComponent = props => {
|