@djb25/digit-ui-module-commonpt 1.0.20 → 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 +20232 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +129 -156
- 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,19 +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
|
-
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
12214
|
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
12224
12215
|
WaterConnection: applicationData,
|
|
12225
12216
|
disconnectRequest: false,
|
|
@@ -15931,29 +15922,7 @@ const ViewBreakup = _ref => {
|
|
|
15931
15922
|
textStyle: {
|
|
15932
15923
|
textAlign: "right"
|
|
15933
15924
|
}
|
|
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, {
|
|
15925
|
+
})), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15957
15926
|
style: {
|
|
15958
15927
|
margin: "10px 0px"
|
|
15959
15928
|
}
|
|
@@ -15971,29 +15940,7 @@ const ViewBreakup = _ref => {
|
|
|
15971
15940
|
textStyle: {
|
|
15972
15941
|
textAlign: "right"
|
|
15973
15942
|
}
|
|
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, {
|
|
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, {
|
|
15997
15944
|
className: "border-none",
|
|
15998
15945
|
rowContainerStyle: {
|
|
15999
15946
|
margin: "0px"
|
|
@@ -16325,7 +16272,8 @@ const DueVerification = _ref => {
|
|
|
16325
16272
|
return newData;
|
|
16326
16273
|
});
|
|
16327
16274
|
}, [applicationData]);
|
|
16328
|
-
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";
|
|
16329
16277
|
const columns = useMemo(() => {
|
|
16330
16278
|
const baseColumns = [{
|
|
16331
16279
|
Header: t("K No."),
|
|
@@ -16350,7 +16298,7 @@ const DueVerification = _ref => {
|
|
|
16350
16298
|
Cell: _ref2 => {
|
|
16351
16299
|
let row = _ref2.row,
|
|
16352
16300
|
value = _ref2.value;
|
|
16353
|
-
return /*#__PURE__*/React.createElement(TextInput, {
|
|
16301
|
+
return isActivation ? value || "-" : /*#__PURE__*/React.createElement(TextInput, {
|
|
16354
16302
|
style: {
|
|
16355
16303
|
marginBottom: "0px",
|
|
16356
16304
|
minWidth: "150px"
|
|
@@ -16397,7 +16345,7 @@ const DueVerification = _ref => {
|
|
|
16397
16345
|
fontWeight: "bold",
|
|
16398
16346
|
marginBottom: "16px"
|
|
16399
16347
|
}
|
|
16400
|
-
}, t("Due Verification")), /*#__PURE__*/React.createElement("div", {
|
|
16348
|
+
}, t("Due Verification")), !isActivation && /*#__PURE__*/React.createElement("div", {
|
|
16401
16349
|
style: {
|
|
16402
16350
|
display: "flex",
|
|
16403
16351
|
alignItems: "flex-end",
|
|
@@ -16444,25 +16392,19 @@ const DueVerification = _ref => {
|
|
|
16444
16392
|
}
|
|
16445
16393
|
}, /*#__PURE__*/React.createElement(AddIcon, null)))), tableData.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
16446
16394
|
style: {
|
|
16447
|
-
marginTop: "
|
|
16395
|
+
marginTop: "15px",
|
|
16448
16396
|
overflowX: "auto"
|
|
16449
16397
|
}
|
|
16450
16398
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16451
16399
|
className: "customTable table-fixed-first-column table-border-style",
|
|
16452
16400
|
t: t,
|
|
16401
|
+
totalRecords: tableData.length,
|
|
16453
16402
|
disableSort: false,
|
|
16454
16403
|
autoSort: true,
|
|
16455
|
-
manualPagination:
|
|
16456
|
-
isPaginationRequired:
|
|
16404
|
+
manualPagination: true,
|
|
16405
|
+
isPaginationRequired: true,
|
|
16457
16406
|
data: tableData,
|
|
16458
|
-
columns: columns
|
|
16459
|
-
getCellProps: cellInfo => {
|
|
16460
|
-
return {
|
|
16461
|
-
style: {
|
|
16462
|
-
padding: "12px"
|
|
16463
|
-
}
|
|
16464
|
-
};
|
|
16465
|
-
}
|
|
16407
|
+
columns: columns
|
|
16466
16408
|
})));
|
|
16467
16409
|
};
|
|
16468
16410
|
|
|
@@ -16480,30 +16422,35 @@ const InspectionInformation = _ref => {
|
|
|
16480
16422
|
inspectorName = _useState3[0],
|
|
16481
16423
|
setInspectorName = _useState3[1];
|
|
16482
16424
|
useEffect(() => {
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16494
|
-
|
|
16495
|
-
|
|
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);
|
|
16496
16451
|
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
16497
|
-
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify(applicationData.inspectionInformation));
|
|
16498
16452
|
}
|
|
16499
16453
|
}, [applicationData]);
|
|
16500
|
-
useEffect(() => {
|
|
16501
|
-
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify({
|
|
16502
|
-
inspectionType,
|
|
16503
|
-
inspectionDate,
|
|
16504
|
-
inspectorName
|
|
16505
|
-
}));
|
|
16506
|
-
}, [inspectionType, inspectionDate, inspectorName]);
|
|
16507
16454
|
const inspectionTypeOptions = [{
|
|
16508
16455
|
i18nKey: "ES_COMMON_SELECT",
|
|
16509
16456
|
code: ""
|
|
@@ -16511,6 +16458,23 @@ const InspectionInformation = _ref => {
|
|
|
16511
16458
|
i18nKey: "New Connection Visit",
|
|
16512
16459
|
code: "new_connection_visit"
|
|
16513
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";
|
|
16514
16478
|
return /*#__PURE__*/React.createElement("div", {
|
|
16515
16479
|
style: {
|
|
16516
16480
|
marginBottom: "20px"
|
|
@@ -16530,79 +16494,53 @@ const InspectionInformation = _ref => {
|
|
|
16530
16494
|
}
|
|
16531
16495
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16532
16496
|
style: {
|
|
16533
|
-
flex:
|
|
16497
|
+
flex: 1
|
|
16534
16498
|
}
|
|
16535
16499
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16536
16500
|
style: {
|
|
16537
16501
|
fontSize: "16px",
|
|
16538
|
-
color: "#0B0C0C",
|
|
16539
16502
|
marginBottom: "8px",
|
|
16540
16503
|
display: "inline-block"
|
|
16541
16504
|
}
|
|
16542
|
-
}, t("Inspection Type"),
|
|
16543
|
-
style: {
|
|
16544
|
-
color: "red"
|
|
16545
|
-
}
|
|
16546
|
-
}, "*")), /*#__PURE__*/React.createElement(Dropdown, {
|
|
16505
|
+
}, t("Inspection Type")), /*#__PURE__*/React.createElement(Dropdown, {
|
|
16547
16506
|
option: inspectionTypeOptions,
|
|
16548
16507
|
optionKey: "i18nKey",
|
|
16549
|
-
id: "inspectionType",
|
|
16550
16508
|
selected: inspectionType,
|
|
16551
|
-
select:
|
|
16509
|
+
select: handleInspectionTypeChange,
|
|
16552
16510
|
t: t,
|
|
16553
|
-
|
|
16554
|
-
width: "100%"
|
|
16555
|
-
}
|
|
16511
|
+
disable: readOnly
|
|
16556
16512
|
})), /*#__PURE__*/React.createElement("div", {
|
|
16557
16513
|
style: {
|
|
16558
|
-
flex:
|
|
16514
|
+
flex: 1
|
|
16559
16515
|
}
|
|
16560
16516
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16561
16517
|
style: {
|
|
16562
16518
|
fontSize: "16px",
|
|
16563
|
-
color: "#0B0C0C",
|
|
16564
16519
|
marginBottom: "8px",
|
|
16565
16520
|
display: "inline-block"
|
|
16566
16521
|
}
|
|
16567
|
-
}, t("Inspection Date"),
|
|
16568
|
-
style: {
|
|
16569
|
-
color: "red"
|
|
16570
|
-
}
|
|
16571
|
-
}, "*")), /*#__PURE__*/React.createElement(DatePicker, {
|
|
16522
|
+
}, t("Inspection Date")), /*#__PURE__*/React.createElement(DatePicker, {
|
|
16572
16523
|
date: inspectionDate,
|
|
16573
|
-
onChange:
|
|
16574
|
-
|
|
16575
|
-
width: "100%"
|
|
16576
|
-
}
|
|
16524
|
+
onChange: handleInspectionDateChange,
|
|
16525
|
+
disabled: readOnly
|
|
16577
16526
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
16578
16527
|
style: {
|
|
16579
|
-
display: "flex"
|
|
16580
|
-
gap: "20px",
|
|
16581
|
-
marginBottom: "20px",
|
|
16582
|
-
flexWrap: "wrap"
|
|
16528
|
+
display: "flex"
|
|
16583
16529
|
}
|
|
16584
16530
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16585
16531
|
style: {
|
|
16586
|
-
flex:
|
|
16532
|
+
flex: 1
|
|
16587
16533
|
}
|
|
16588
16534
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16589
16535
|
style: {
|
|
16590
16536
|
fontSize: "16px",
|
|
16591
|
-
color: "#0B0C0C",
|
|
16592
16537
|
marginBottom: "8px",
|
|
16593
16538
|
display: "inline-block"
|
|
16594
16539
|
}
|
|
16595
|
-
}, t("Inspector Name"),
|
|
16596
|
-
style: {
|
|
16597
|
-
color: "red"
|
|
16598
|
-
}
|
|
16599
|
-
}, "*")), /*#__PURE__*/React.createElement(TextInput, {
|
|
16540
|
+
}, t("Inspector Name")), /*#__PURE__*/React.createElement(TextInput, {
|
|
16600
16541
|
value: inspectorName,
|
|
16601
|
-
onChange:
|
|
16602
|
-
|
|
16603
|
-
width: "50%",
|
|
16604
|
-
marginBottom: "0"
|
|
16605
|
-
}
|
|
16542
|
+
onChange: handleInspectorNameChange,
|
|
16543
|
+
disabled: readOnly
|
|
16606
16544
|
}))));
|
|
16607
16545
|
};
|
|
16608
16546
|
|
|
@@ -17118,9 +17056,11 @@ function ApplicationDetailsContent(_ref) {
|
|
|
17118
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, {
|
|
17119
17057
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
17120
17058
|
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, {
|
|
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, {
|
|
17122
17062
|
applicationData: applicationData
|
|
17123
|
-
}), (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, {
|
|
17124
17064
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
17125
17065
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
17126
17066
|
wsAdditionalDetails: detail,
|
|
@@ -19012,7 +18952,7 @@ const _excluded$4 = ["t", "config", "onSelect", "formData", "formState", "setErr
|
|
|
19012
18952
|
const NUMBER_PATTERN = /^\d+$/;
|
|
19013
18953
|
const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
|
|
19014
18954
|
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;
|
|
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;
|
|
19016
18956
|
let t = _ref.t,
|
|
19017
18957
|
config = _ref.config,
|
|
19018
18958
|
onSelect = _ref.onSelect,
|
|
@@ -19029,10 +18969,12 @@ const PropertyWaterConnection = _ref => {
|
|
|
19029
18969
|
noOfFloors: null,
|
|
19030
18970
|
plotArea: "",
|
|
19031
18971
|
builtUpArea: "",
|
|
18972
|
+
farArea: "",
|
|
19032
18973
|
SelectYearofConstruction: null,
|
|
19033
18974
|
NumberofDwellingUnits: "",
|
|
19034
18975
|
NumberofRooms: "",
|
|
19035
|
-
hospitalBeds: ""
|
|
18976
|
+
hospitalBeds: "",
|
|
18977
|
+
numnberOfStudents: ""
|
|
19036
18978
|
}
|
|
19037
18979
|
}
|
|
19038
18980
|
}),
|
|
@@ -19070,6 +19012,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19070
19012
|
const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
|
|
19071
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";
|
|
19072
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";
|
|
19073
19016
|
const yearOptions = useMemo(() => {
|
|
19074
19017
|
const currentYear = new Date().getFullYear();
|
|
19075
19018
|
const years = [];
|
|
@@ -19195,10 +19138,12 @@ const PropertyWaterConnection = _ref => {
|
|
|
19195
19138
|
setValue("useDetails.noOfFloors", null);
|
|
19196
19139
|
setValue("useDetails.plotArea", "");
|
|
19197
19140
|
setValue("useDetails.builtUpArea", "");
|
|
19141
|
+
setValue("useDetails.farArea", "");
|
|
19198
19142
|
setValue("useDetails.SelectYearofConstruction", null);
|
|
19199
19143
|
setValue("useDetails.NumberofDwellingUnits", "");
|
|
19200
19144
|
setValue("useDetails.NumberofRooms", "");
|
|
19201
19145
|
setValue("useDetails.hospitalBeds", "");
|
|
19146
|
+
setValue("useDetails.numnberOfStudents", "");
|
|
19202
19147
|
}
|
|
19203
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]);
|
|
19204
19149
|
const lastErrorState = React.useRef(null);
|
|
@@ -19224,7 +19169,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19224
19169
|
};
|
|
19225
19170
|
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
19226
19171
|
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " " + t("(Automatic Fill by Property)") : ""),
|
|
19227
|
-
defaultOpen: false,
|
|
19172
|
+
defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true,
|
|
19228
19173
|
style: props.style
|
|
19229
19174
|
}, /*#__PURE__*/React.createElement("div", {
|
|
19230
19175
|
className: "formcomposer-section-grid"
|
|
@@ -19348,7 +19293,21 @@ const PropertyWaterConnection = _ref => {
|
|
|
19348
19293
|
disabled: isPropertyFound
|
|
19349
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, {
|
|
19350
19295
|
style: errorStyle
|
|
19351
|
-
}, 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", {
|
|
19352
19311
|
className: "form-field"
|
|
19353
19312
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
19354
19313
|
control: control,
|
|
@@ -19365,7 +19324,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19365
19324
|
onBlur: props.onBlur,
|
|
19366
19325
|
disable: isPropertyFound
|
|
19367
19326
|
})
|
|
19368
|
-
}))), (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, {
|
|
19369
19328
|
style: errorStyle
|
|
19370
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", {
|
|
19371
19330
|
className: "form-field"
|
|
@@ -19379,7 +19338,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19379
19338
|
}),
|
|
19380
19339
|
name: "useDetails.NumberofDwellingUnits",
|
|
19381
19340
|
disabled: isPropertyFound
|
|
19382
|
-
}))), (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, {
|
|
19383
19342
|
style: errorStyle
|
|
19384
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", {
|
|
19385
19344
|
className: "form-field"
|
|
@@ -19394,7 +19353,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19394
19353
|
}),
|
|
19395
19354
|
name: "useDetails.NumberofRooms",
|
|
19396
19355
|
disabled: isPropertyFound
|
|
19397
|
-
}))) : 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, {
|
|
19398
19357
|
style: errorStyle
|
|
19399
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", {
|
|
19400
19359
|
className: "form-field"
|
|
@@ -19409,9 +19368,23 @@ const PropertyWaterConnection = _ref => {
|
|
|
19409
19368
|
}),
|
|
19410
19369
|
name: "useDetails.hospitalBeds",
|
|
19411
19370
|
disabled: isPropertyFound
|
|
19412
|
-
}))) : 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, {
|
|
19413
19386
|
style: errorStyle
|
|
19414
|
-
}, errors.useDetails.
|
|
19387
|
+
}, errors.useDetails.numnberOfStudents.message)));
|
|
19415
19388
|
};
|
|
19416
19389
|
|
|
19417
19390
|
const SwitchComponent = props => {
|