@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.js
CHANGED
|
@@ -6035,7 +6035,7 @@ const setPropertyDetailsLW = data => {
|
|
|
6035
6035
|
return data;
|
|
6036
6036
|
};
|
|
6037
6037
|
const convertToPropertyLightWeight = function (data) {
|
|
6038
|
-
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;
|
|
6038
|
+
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;
|
|
6039
6039
|
if (data === void 0) {
|
|
6040
6040
|
data = {};
|
|
6041
6041
|
}
|
|
@@ -6089,7 +6089,9 @@ const convertToPropertyLightWeight = function (data) {
|
|
|
6089
6089
|
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,
|
|
6090
6090
|
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),
|
|
6091
6091
|
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),
|
|
6092
|
-
|
|
6092
|
+
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),
|
|
6093
|
+
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),
|
|
6094
|
+
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),
|
|
6093
6095
|
owners: [...(data.owners || []).map((owner, index) => {
|
|
6094
6096
|
var _owner$gender3, _owner$gender4, _owner$ownerType2, _owner$relationship2, _owner$inistitutetype2;
|
|
6095
6097
|
return _extends({}, owner, {
|
|
@@ -6127,7 +6129,7 @@ const convertToPropertyLightWeight = function (data) {
|
|
|
6127
6129
|
return formdata;
|
|
6128
6130
|
};
|
|
6129
6131
|
const convertToUpdatePropertyLightWeight = function (data) {
|
|
6130
|
-
var _data$propertyDetails5, _data$propertyDetails6, _data$
|
|
6132
|
+
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;
|
|
6131
6133
|
if (data === void 0) {
|
|
6132
6134
|
data = {};
|
|
6133
6135
|
}
|
|
@@ -6174,15 +6176,17 @@ const convertToUpdatePropertyLightWeight = function (data) {
|
|
|
6174
6176
|
noOfFloors: noOfFloors,
|
|
6175
6177
|
additionalDetails: {
|
|
6176
6178
|
isRainwaterHarvesting: false,
|
|
6177
|
-
categoryType: ((_data$
|
|
6178
|
-
waterConnectionUsageType: ((_data$
|
|
6179
|
-
yearOfConstruction: ((_data$
|
|
6180
|
-
numberOfDwellingUnits: ((_data$
|
|
6181
|
-
numberOfRooms: ((_data$
|
|
6182
|
-
numberOfFloors: ((_data$
|
|
6183
|
-
plotArea: ((_data$
|
|
6184
|
-
builtUpArea: ((_data$
|
|
6185
|
-
|
|
6179
|
+
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),
|
|
6180
|
+
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),
|
|
6181
|
+
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),
|
|
6182
|
+
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),
|
|
6183
|
+
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),
|
|
6184
|
+
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,
|
|
6185
|
+
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),
|
|
6186
|
+
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),
|
|
6187
|
+
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),
|
|
6188
|
+
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),
|
|
6189
|
+
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),
|
|
6186
6190
|
owners: [...data.owners.map((owner, index) => {
|
|
6187
6191
|
var _owner$gender6, _owner$ownerType4, _owner$relationship4, _owner$inistitutetype4;
|
|
6188
6192
|
return _extends({}, owner, {
|
|
@@ -12210,14 +12214,6 @@ const ActionModal$5 = _ref => {
|
|
|
12210
12214
|
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) || "";
|
|
12211
12215
|
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) || "";
|
|
12212
12216
|
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) || "";
|
|
12213
|
-
const inspectionInformationData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
|
|
12214
|
-
if (inspectionInformationData) {
|
|
12215
|
-
try {
|
|
12216
|
-
applicationData.inspectionInformation = JSON.parse(inspectionInformationData);
|
|
12217
|
-
} catch (e) {
|
|
12218
|
-
console.error("Error parsing inspection information data", e);
|
|
12219
|
-
}
|
|
12220
|
-
}
|
|
12221
12217
|
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
12222
12218
|
WaterConnection: applicationData,
|
|
12223
12219
|
disconnectRequest: false,
|
|
@@ -15929,29 +15925,7 @@ const ViewBreakup = _ref => {
|
|
|
15929
15925
|
textStyle: {
|
|
15930
15926
|
textAlign: "right"
|
|
15931
15927
|
}
|
|
15932
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
15933
|
-
style: {
|
|
15934
|
-
color: "#cccccc",
|
|
15935
|
-
backgroundColor: "#cccccc",
|
|
15936
|
-
marginBottom: "10px"
|
|
15937
|
-
}
|
|
15938
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
15939
|
-
className: "border-none",
|
|
15940
|
-
rowContainerStyle: {
|
|
15941
|
-
margin: "0px"
|
|
15942
|
-
},
|
|
15943
|
-
labelStyle: {
|
|
15944
|
-
width: "50%"
|
|
15945
|
-
},
|
|
15946
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT1",
|
|
15947
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
15948
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.fee) || 0),
|
|
15949
|
-
textStyle: {
|
|
15950
|
-
textAlign: "right",
|
|
15951
|
-
fontWeight: "700",
|
|
15952
|
-
fontSize: "24px"
|
|
15953
|
-
}
|
|
15954
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
15928
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
15955
15929
|
style: {
|
|
15956
15930
|
margin: "10px 0px"
|
|
15957
15931
|
}
|
|
@@ -15969,29 +15943,7 @@ const ViewBreakup = _ref => {
|
|
|
15969
15943
|
textStyle: {
|
|
15970
15944
|
textAlign: "right"
|
|
15971
15945
|
}
|
|
15972
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
15973
|
-
style: {
|
|
15974
|
-
color: "#cccccc",
|
|
15975
|
-
backgroundColor: "#cccccc",
|
|
15976
|
-
marginBottom: "10px"
|
|
15977
|
-
}
|
|
15978
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
15979
|
-
className: "border-none",
|
|
15980
|
-
rowContainerStyle: {
|
|
15981
|
-
margin: "0px"
|
|
15982
|
-
},
|
|
15983
|
-
labelStyle: {
|
|
15984
|
-
width: "50%"
|
|
15985
|
-
},
|
|
15986
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2",
|
|
15987
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
15988
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
|
|
15989
|
-
textStyle: {
|
|
15990
|
-
textAlign: "right",
|
|
15991
|
-
fontWeight: "700",
|
|
15992
|
-
fontSize: "24px"
|
|
15993
|
-
}
|
|
15994
|
-
}), 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__default.createElement(digitUiReactComponents.Row, {
|
|
15946
|
+
})), 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__default.createElement(digitUiReactComponents.Row, {
|
|
15995
15947
|
className: "border-none",
|
|
15996
15948
|
rowContainerStyle: {
|
|
15997
15949
|
margin: "0px"
|
|
@@ -16323,7 +16275,8 @@ const DueVerification = _ref => {
|
|
|
16323
16275
|
return newData;
|
|
16324
16276
|
});
|
|
16325
16277
|
}, [applicationData]);
|
|
16326
|
-
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION";
|
|
16278
|
+
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";
|
|
16279
|
+
const isActivation = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
16327
16280
|
const columns = React.useMemo(() => {
|
|
16328
16281
|
const baseColumns = [{
|
|
16329
16282
|
Header: t("K No."),
|
|
@@ -16348,7 +16301,7 @@ const DueVerification = _ref => {
|
|
|
16348
16301
|
Cell: _ref2 => {
|
|
16349
16302
|
let row = _ref2.row,
|
|
16350
16303
|
value = _ref2.value;
|
|
16351
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
16304
|
+
return isActivation ? value || "-" : /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
16352
16305
|
style: {
|
|
16353
16306
|
marginBottom: "0px",
|
|
16354
16307
|
minWidth: "150px"
|
|
@@ -16395,7 +16348,7 @@ const DueVerification = _ref => {
|
|
|
16395
16348
|
fontWeight: "bold",
|
|
16396
16349
|
marginBottom: "16px"
|
|
16397
16350
|
}
|
|
16398
|
-
}, t("Due Verification")), /*#__PURE__*/React__default.createElement("div", {
|
|
16351
|
+
}, t("Due Verification")), !isActivation && /*#__PURE__*/React__default.createElement("div", {
|
|
16399
16352
|
style: {
|
|
16400
16353
|
display: "flex",
|
|
16401
16354
|
alignItems: "flex-end",
|
|
@@ -16442,25 +16395,19 @@ const DueVerification = _ref => {
|
|
|
16442
16395
|
}
|
|
16443
16396
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.AddIcon, null)))), tableData.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
16444
16397
|
style: {
|
|
16445
|
-
marginTop: "
|
|
16398
|
+
marginTop: "15px",
|
|
16446
16399
|
overflowX: "auto"
|
|
16447
16400
|
}
|
|
16448
16401
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
|
|
16449
16402
|
className: "customTable table-fixed-first-column table-border-style",
|
|
16450
16403
|
t: t,
|
|
16404
|
+
totalRecords: tableData.length,
|
|
16451
16405
|
disableSort: false,
|
|
16452
16406
|
autoSort: true,
|
|
16453
|
-
manualPagination:
|
|
16454
|
-
isPaginationRequired:
|
|
16407
|
+
manualPagination: true,
|
|
16408
|
+
isPaginationRequired: true,
|
|
16455
16409
|
data: tableData,
|
|
16456
|
-
columns: columns
|
|
16457
|
-
getCellProps: cellInfo => {
|
|
16458
|
-
return {
|
|
16459
|
-
style: {
|
|
16460
|
-
padding: "12px"
|
|
16461
|
-
}
|
|
16462
|
-
};
|
|
16463
|
-
}
|
|
16410
|
+
columns: columns
|
|
16464
16411
|
})));
|
|
16465
16412
|
};
|
|
16466
16413
|
|
|
@@ -16478,30 +16425,35 @@ const InspectionInformation = _ref => {
|
|
|
16478
16425
|
inspectorName = _useState3[0],
|
|
16479
16426
|
setInspectorName = _useState3[1];
|
|
16480
16427
|
React.useEffect(() => {
|
|
16481
|
-
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16428
|
+
if (applicationData !== null && applicationData !== void 0 && applicationData.inspectionInformation) {
|
|
16429
|
+
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
16430
|
+
let matchedType = null;
|
|
16431
|
+
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
16432
|
+
if (inspectionCode) {
|
|
16433
|
+
matchedType = [{
|
|
16434
|
+
i18nKey: "ES_COMMON_SELECT",
|
|
16435
|
+
code: ""
|
|
16436
|
+
}, {
|
|
16437
|
+
i18nKey: "New Connection Visit",
|
|
16438
|
+
code: "new_connection_visit"
|
|
16439
|
+
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
16440
|
+
}
|
|
16441
|
+
setInspectionType(matchedType || null);
|
|
16442
|
+
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
16443
|
+
if (dateValue && typeof dateValue === 'number') {
|
|
16444
|
+
const d = new Date(dateValue);
|
|
16445
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
16446
|
+
} else if (dateValue && typeof dateValue === 'string' && dateValue.includes('-')) ; else if (dateValue) {
|
|
16447
|
+
const num = Number(dateValue);
|
|
16448
|
+
if (!isNaN(num)) {
|
|
16449
|
+
const d = new Date(num);
|
|
16450
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
16451
|
+
}
|
|
16452
|
+
}
|
|
16453
|
+
setInspectionDate(dateValue);
|
|
16494
16454
|
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
16495
|
-
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify(applicationData.inspectionInformation));
|
|
16496
16455
|
}
|
|
16497
16456
|
}, [applicationData]);
|
|
16498
|
-
React.useEffect(() => {
|
|
16499
|
-
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify({
|
|
16500
|
-
inspectionType,
|
|
16501
|
-
inspectionDate,
|
|
16502
|
-
inspectorName
|
|
16503
|
-
}));
|
|
16504
|
-
}, [inspectionType, inspectionDate, inspectorName]);
|
|
16505
16457
|
const inspectionTypeOptions = [{
|
|
16506
16458
|
i18nKey: "ES_COMMON_SELECT",
|
|
16507
16459
|
code: ""
|
|
@@ -16509,6 +16461,23 @@ const InspectionInformation = _ref => {
|
|
|
16509
16461
|
i18nKey: "New Connection Visit",
|
|
16510
16462
|
code: "new_connection_visit"
|
|
16511
16463
|
}];
|
|
16464
|
+
const handleInspectionTypeChange = selected => {
|
|
16465
|
+
setInspectionType(selected);
|
|
16466
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
16467
|
+
applicationData.inspectionInformation.inspectionType = selected;
|
|
16468
|
+
};
|
|
16469
|
+
const handleInspectionDateChange = date => {
|
|
16470
|
+
setInspectionDate(date);
|
|
16471
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
16472
|
+
applicationData.inspectionInformation.inspectionDate = date ? new Date(date).getTime() : null;
|
|
16473
|
+
};
|
|
16474
|
+
const handleInspectorNameChange = e => {
|
|
16475
|
+
const val = e.target.value;
|
|
16476
|
+
setInspectorName(val);
|
|
16477
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
16478
|
+
applicationData.inspectionInformation.inspectorName = val;
|
|
16479
|
+
};
|
|
16480
|
+
const readOnly = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
16512
16481
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
16513
16482
|
style: {
|
|
16514
16483
|
marginBottom: "20px"
|
|
@@ -16528,79 +16497,53 @@ const InspectionInformation = _ref => {
|
|
|
16528
16497
|
}
|
|
16529
16498
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
16530
16499
|
style: {
|
|
16531
|
-
flex:
|
|
16500
|
+
flex: 1
|
|
16532
16501
|
}
|
|
16533
16502
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
16534
16503
|
style: {
|
|
16535
16504
|
fontSize: "16px",
|
|
16536
|
-
color: "#0B0C0C",
|
|
16537
16505
|
marginBottom: "8px",
|
|
16538
16506
|
display: "inline-block"
|
|
16539
16507
|
}
|
|
16540
|
-
}, t("Inspection Type"),
|
|
16541
|
-
style: {
|
|
16542
|
-
color: "red"
|
|
16543
|
-
}
|
|
16544
|
-
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
16508
|
+
}, t("Inspection Type")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
16545
16509
|
option: inspectionTypeOptions,
|
|
16546
16510
|
optionKey: "i18nKey",
|
|
16547
|
-
id: "inspectionType",
|
|
16548
16511
|
selected: inspectionType,
|
|
16549
|
-
select:
|
|
16512
|
+
select: handleInspectionTypeChange,
|
|
16550
16513
|
t: t,
|
|
16551
|
-
|
|
16552
|
-
width: "100%"
|
|
16553
|
-
}
|
|
16514
|
+
disable: readOnly
|
|
16554
16515
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
16555
16516
|
style: {
|
|
16556
|
-
flex:
|
|
16517
|
+
flex: 1
|
|
16557
16518
|
}
|
|
16558
16519
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
16559
16520
|
style: {
|
|
16560
16521
|
fontSize: "16px",
|
|
16561
|
-
color: "#0B0C0C",
|
|
16562
16522
|
marginBottom: "8px",
|
|
16563
16523
|
display: "inline-block"
|
|
16564
16524
|
}
|
|
16565
|
-
}, t("Inspection Date"),
|
|
16566
|
-
style: {
|
|
16567
|
-
color: "red"
|
|
16568
|
-
}
|
|
16569
|
-
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.DatePicker, {
|
|
16525
|
+
}, t("Inspection Date")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.DatePicker, {
|
|
16570
16526
|
date: inspectionDate,
|
|
16571
|
-
onChange:
|
|
16572
|
-
|
|
16573
|
-
width: "100%"
|
|
16574
|
-
}
|
|
16527
|
+
onChange: handleInspectionDateChange,
|
|
16528
|
+
disabled: readOnly
|
|
16575
16529
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
16576
16530
|
style: {
|
|
16577
|
-
display: "flex"
|
|
16578
|
-
gap: "20px",
|
|
16579
|
-
marginBottom: "20px",
|
|
16580
|
-
flexWrap: "wrap"
|
|
16531
|
+
display: "flex"
|
|
16581
16532
|
}
|
|
16582
16533
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
16583
16534
|
style: {
|
|
16584
|
-
flex:
|
|
16535
|
+
flex: 1
|
|
16585
16536
|
}
|
|
16586
16537
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
16587
16538
|
style: {
|
|
16588
16539
|
fontSize: "16px",
|
|
16589
|
-
color: "#0B0C0C",
|
|
16590
16540
|
marginBottom: "8px",
|
|
16591
16541
|
display: "inline-block"
|
|
16592
16542
|
}
|
|
16593
|
-
}, t("Inspector Name"),
|
|
16594
|
-
style: {
|
|
16595
|
-
color: "red"
|
|
16596
|
-
}
|
|
16597
|
-
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
16543
|
+
}, t("Inspector Name")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
16598
16544
|
value: inspectorName,
|
|
16599
|
-
onChange:
|
|
16600
|
-
|
|
16601
|
-
width: "50%",
|
|
16602
|
-
marginBottom: "0"
|
|
16603
|
-
}
|
|
16545
|
+
onChange: handleInspectorNameChange,
|
|
16546
|
+
disabled: readOnly
|
|
16604
16547
|
}))));
|
|
16605
16548
|
};
|
|
16606
16549
|
|
|
@@ -17116,9 +17059,11 @@ function ApplicationDetailsContent(_ref) {
|
|
|
17116
17059
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React__default.createElement(PropertyDocuments, {
|
|
17117
17060
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
17118
17061
|
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
17119
|
-
}), (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__default.createElement(DueVerification, {
|
|
17062
|
+
}), (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__default.createElement(DueVerification, {
|
|
17063
|
+
applicationData: applicationData
|
|
17064
|
+
}), " ", (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__default.createElement(InspectionInformation, {
|
|
17120
17065
|
applicationData: applicationData
|
|
17121
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
17066
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React__default.createElement(PropertyEstimates, {
|
|
17122
17067
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
17123
17068
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React__default.createElement(WSAdditonalDetails, {
|
|
17124
17069
|
wsAdditionalDetails: detail,
|
|
@@ -19010,7 +18955,7 @@ const _excluded$4 = ["t", "config", "onSelect", "formData", "formState", "setErr
|
|
|
19010
18955
|
const NUMBER_PATTERN = /^\d+$/;
|
|
19011
18956
|
const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
|
|
19012
18957
|
const PropertyWaterConnection = _ref => {
|
|
19013
|
-
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;
|
|
18958
|
+
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;
|
|
19014
18959
|
let t = _ref.t,
|
|
19015
18960
|
config = _ref.config,
|
|
19016
18961
|
onSelect = _ref.onSelect,
|
|
@@ -19027,17 +18972,18 @@ const PropertyWaterConnection = _ref => {
|
|
|
19027
18972
|
noOfFloors: null,
|
|
19028
18973
|
plotArea: "",
|
|
19029
18974
|
builtUpArea: "",
|
|
18975
|
+
farArea: "",
|
|
19030
18976
|
SelectYearofConstruction: null,
|
|
19031
18977
|
NumberofDwellingUnits: "",
|
|
19032
18978
|
NumberofRooms: "",
|
|
19033
|
-
hospitalBeds: ""
|
|
18979
|
+
hospitalBeds: "",
|
|
18980
|
+
numnberOfStudents: ""
|
|
19034
18981
|
}
|
|
19035
18982
|
}
|
|
19036
18983
|
}),
|
|
19037
18984
|
control = _useForm.control,
|
|
19038
18985
|
register = _useForm.register,
|
|
19039
|
-
|
|
19040
|
-
errors = _useForm$formState.errors,
|
|
18986
|
+
errors = _useForm.formState.errors,
|
|
19041
18987
|
watch = _useForm.watch,
|
|
19042
18988
|
setValue = _useForm.setValue;
|
|
19043
18989
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
@@ -19069,6 +19015,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19069
19015
|
const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
|
|
19070
19016
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
19071
19017
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
19018
|
+
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
19072
19019
|
const yearOptions = React.useMemo(() => {
|
|
19073
19020
|
const currentYear = new Date().getFullYear();
|
|
19074
19021
|
const years = [];
|
|
@@ -19194,10 +19141,12 @@ const PropertyWaterConnection = _ref => {
|
|
|
19194
19141
|
setValue("useDetails.noOfFloors", null);
|
|
19195
19142
|
setValue("useDetails.plotArea", "");
|
|
19196
19143
|
setValue("useDetails.builtUpArea", "");
|
|
19144
|
+
setValue("useDetails.farArea", "");
|
|
19197
19145
|
setValue("useDetails.SelectYearofConstruction", null);
|
|
19198
19146
|
setValue("useDetails.NumberofDwellingUnits", "");
|
|
19199
19147
|
setValue("useDetails.NumberofRooms", "");
|
|
19200
19148
|
setValue("useDetails.hospitalBeds", "");
|
|
19149
|
+
setValue("useDetails.numnberOfStudents", "");
|
|
19201
19150
|
}
|
|
19202
19151
|
}, [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]);
|
|
19203
19152
|
const lastErrorState = React__default.useRef(null);
|
|
@@ -19222,7 +19171,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19222
19171
|
marginTop: "-21px"
|
|
19223
19172
|
};
|
|
19224
19173
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
19225
|
-
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " (Automatic Fill by Property
|
|
19174
|
+
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " " + t("(Automatic Fill by Property)") : ""),
|
|
19226
19175
|
defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true,
|
|
19227
19176
|
style: props.style
|
|
19228
19177
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -19347,7 +19296,21 @@ const PropertyWaterConnection = _ref => {
|
|
|
19347
19296
|
disabled: isPropertyFound
|
|
19348
19297
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails7 = errors.useDetails) === null || _errors$useDetails7 === void 0 ? void 0 : _errors$useDetails7.builtUpArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
19349
19298
|
style: errorStyle
|
|
19350
|
-
}, errors.useDetails.builtUpArea.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null,
|
|
19299
|
+
}, errors.useDetails.builtUpArea.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React__default.createElement("div", {
|
|
19300
|
+
className: "form-field"
|
|
19301
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
19302
|
+
t: t,
|
|
19303
|
+
inputRef: register({
|
|
19304
|
+
pattern: {
|
|
19305
|
+
value: DECIMAL_PATTERN,
|
|
19306
|
+
message: t("ERR_INVALID_DECIMAL")
|
|
19307
|
+
}
|
|
19308
|
+
}),
|
|
19309
|
+
name: "useDetails.farArea",
|
|
19310
|
+
disabled: isPropertyFound
|
|
19311
|
+
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.farArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
19312
|
+
style: errorStyle
|
|
19313
|
+
}, errors.useDetails.farArea.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_SELECT_YEAR_OF_CONSTRUCTION") + "*"), /*#__PURE__*/React__default.createElement("div", {
|
|
19351
19314
|
className: "form-field"
|
|
19352
19315
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
19353
19316
|
control: control,
|
|
@@ -19364,7 +19327,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19364
19327
|
onBlur: props.onBlur,
|
|
19365
19328
|
disable: isPropertyFound
|
|
19366
19329
|
})
|
|
19367
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19330
|
+
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails9 = errors.useDetails) === null || _errors$useDetails9 === void 0 ? void 0 : _errors$useDetails9.SelectYearofConstruction) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
19368
19331
|
style: errorStyle
|
|
19369
19332
|
}, errors.useDetails.SelectYearofConstruction.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_NUMBER_OF_DWELLING_UNITS")), /*#__PURE__*/React__default.createElement("div", {
|
|
19370
19333
|
className: "form-field"
|
|
@@ -19378,7 +19341,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19378
19341
|
}),
|
|
19379
19342
|
name: "useDetails.NumberofDwellingUnits",
|
|
19380
19343
|
disabled: isPropertyFound
|
|
19381
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19344
|
+
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails0 = errors.useDetails) === null || _errors$useDetails0 === void 0 ? void 0 : _errors$useDetails0.NumberofDwellingUnits) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
19382
19345
|
style: errorStyle
|
|
19383
19346
|
}, errors.useDetails.NumberofDwellingUnits.message), isHotelRestaurantProperty ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_NUMBER_OF_ROOMS") + "*"), /*#__PURE__*/React__default.createElement("div", {
|
|
19384
19347
|
className: "form-field"
|
|
@@ -19393,7 +19356,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19393
19356
|
}),
|
|
19394
19357
|
name: "useDetails.NumberofRooms",
|
|
19395
19358
|
disabled: isPropertyFound
|
|
19396
|
-
}))) : null, isHotelRestaurantProperty && (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19359
|
+
}))) : 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__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
19397
19360
|
style: errorStyle
|
|
19398
19361
|
}, errors.useDetails.NumberofRooms.message), isHospitalProperty ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_NUMBER_OF_BEDS") + "*"), /*#__PURE__*/React__default.createElement("div", {
|
|
19399
19362
|
className: "form-field"
|
|
@@ -19408,9 +19371,23 @@ const PropertyWaterConnection = _ref => {
|
|
|
19408
19371
|
}),
|
|
19409
19372
|
name: "useDetails.hospitalBeds",
|
|
19410
19373
|
disabled: isPropertyFound
|
|
19411
|
-
}))) : null, isHospitalProperty && (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
19374
|
+
}))) : 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__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
19375
|
+
style: errorStyle
|
|
19376
|
+
}, errors.useDetails.hospitalBeds.message), isSchoolCollegeProperty ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "" + t("WS_NUMBER_OF_STUDENTS")), /*#__PURE__*/React__default.createElement("div", {
|
|
19377
|
+
className: "form-field"
|
|
19378
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
19379
|
+
t: t,
|
|
19380
|
+
inputRef: register({
|
|
19381
|
+
pattern: {
|
|
19382
|
+
value: NUMBER_PATTERN,
|
|
19383
|
+
message: t("ERR_INVALID_NUMBER")
|
|
19384
|
+
}
|
|
19385
|
+
}),
|
|
19386
|
+
name: "useDetails.numnberOfStudents",
|
|
19387
|
+
disabled: isPropertyFound
|
|
19388
|
+
}))) : 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__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
19412
19389
|
style: errorStyle
|
|
19413
|
-
}, errors.useDetails.
|
|
19390
|
+
}, errors.useDetails.numnberOfStudents.message)));
|
|
19414
19391
|
};
|
|
19415
19392
|
|
|
19416
19393
|
const SwitchComponent = props => {
|