@djb25/digit-ui-module-commonpt 1.0.22 → 1.0.23
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 +269 -40
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +269 -40
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6030,13 +6030,14 @@ const setPropertyDetailsLW = data => {
|
|
|
6030
6030
|
farArea: useDetails === null || useDetails === void 0 ? void 0 : useDetails.farArea,
|
|
6031
6031
|
numberOfRooms: useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofRooms,
|
|
6032
6032
|
numberOfBeds: useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfBeds,
|
|
6033
|
-
numberOfStudents: useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfStudents
|
|
6033
|
+
numberOfStudents: useDetails === null || useDetails === void 0 ? void 0 : useDetails.numberOfStudents,
|
|
6034
|
+
ServantQuartersRoom: useDetails === null || useDetails === void 0 ? void 0 : useDetails.ServantQuartersRoom
|
|
6034
6035
|
};
|
|
6035
6036
|
data.propertyDetails = propertyDetails;
|
|
6036
6037
|
return data;
|
|
6037
6038
|
};
|
|
6038
6039
|
const convertToPropertyLightWeight = function (data) {
|
|
6039
|
-
var _data$propertyDetails, _data$propertyDetails2, _data, _data$owners2, _data$owners2$, _data$propertyDetails3, _data$propertyDetails4, _data$waterConnection, _data$waterConnection2, _data$waterConnection3, _data$useDetails, _data$useDetails$cate, _data$waterConnection4, _data$waterConnection5, _data$waterConnection6, _data$useDetails2, _data$useDetails2$Wat, _data$waterConnection7, _data$waterConnection8, _data$waterConnection9, _data$useDetails3, _data$useDetails3$Sel, _data$waterConnection0, _data$waterConnection1, _data$useDetails4, _data$waterConnection10, _data$waterConnection11, _data$useDetails5, _data$waterConnection12, _data$waterConnection13, _data$waterConnection14, _data$useDetails6, _data$useDetails6$noO, _data$waterConnection15, _data$waterConnection16, _data$useDetails7, _data$waterConnection17, _data$waterConnection18, _data$useDetails8, _data$waterConnection19, _data$waterConnection20, _data$useDetails9, _data$waterConnection21, _data$waterConnection22, _data$useDetails0, _data$waterConnection23, _data$waterConnection24, _data$useDetails1;
|
|
6040
|
+
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, _data$waterConnection25, _data$waterConnection26, _data$useDetails10;
|
|
6040
6041
|
if (data === void 0) {
|
|
6041
6042
|
data = {};
|
|
6042
6043
|
}
|
|
@@ -6091,8 +6092,9 @@ const convertToPropertyLightWeight = function (data) {
|
|
|
6091
6092
|
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),
|
|
6092
6093
|
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),
|
|
6093
6094
|
farArea: ((_data$waterConnection19 = data.waterConnection) === null || _data$waterConnection19 === void 0 ? void 0 : (_data$waterConnection20 = _data$waterConnection19.useDetails) === null || _data$waterConnection20 === void 0 ? void 0 : _data$waterConnection20.farArea) || ((_data$useDetails9 = data.useDetails) === null || _data$useDetails9 === void 0 ? void 0 : _data$useDetails9.farArea),
|
|
6094
|
-
|
|
6095
|
-
|
|
6095
|
+
ServantQuartersRoom: ((_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.ServantQuartersRoom) || ((_data$useDetails0 = data.useDetails) === null || _data$useDetails0 === void 0 ? void 0 : _data$useDetails0.ServantQuartersRoom),
|
|
6096
|
+
numberOfStudents: ((_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.numberOfStudents) || ((_data$useDetails1 = data.useDetails) === null || _data$useDetails1 === void 0 ? void 0 : _data$useDetails1.numberOfStudents),
|
|
6097
|
+
numberOfBeds: ((_data$waterConnection25 = data.waterConnection) === null || _data$waterConnection25 === void 0 ? void 0 : (_data$waterConnection26 = _data$waterConnection25.useDetails) === null || _data$waterConnection26 === void 0 ? void 0 : _data$waterConnection26.numberOfBeds) || ((_data$useDetails10 = data.useDetails) === null || _data$useDetails10 === void 0 ? void 0 : _data$useDetails10.numberOfBeds),
|
|
6096
6098
|
owners: [...(data.owners || []).map((owner, index) => {
|
|
6097
6099
|
var _owner$gender3, _owner$gender4, _owner$ownerType2, _owner$relationship2, _owner$inistitutetype2;
|
|
6098
6100
|
return _extends({}, owner, {
|
|
@@ -6130,7 +6132,7 @@ const convertToPropertyLightWeight = function (data) {
|
|
|
6130
6132
|
return formdata;
|
|
6131
6133
|
};
|
|
6132
6134
|
const convertToUpdatePropertyLightWeight = function (data) {
|
|
6133
|
-
var _data$propertyDetails5, _data$propertyDetails6, _data$
|
|
6135
|
+
var _data$propertyDetails5, _data$propertyDetails6, _data$waterConnection27, _data$waterConnection28, _data$waterConnection29, _data$useDetails11, _data$useDetails11$ca, _data$waterConnection30, _data$waterConnection31, _data$waterConnection32, _data$useDetails12, _data$useDetails12$Wa, _data$waterConnection33, _data$waterConnection34, _data$waterConnection35, _data$useDetails13, _data$useDetails13$Se, _data$waterConnection36, _data$waterConnection37, _data$useDetails14, _data$waterConnection38, _data$waterConnection39, _data$useDetails15, _data$waterConnection40, _data$waterConnection41, _data$waterConnection42, _data$useDetails16, _data$useDetails16$no, _data$waterConnection43, _data$waterConnection44, _data$useDetails17, _data$waterConnection45, _data$waterConnection46, _data$useDetails18, _data$waterConnection47, _data$waterConnection48, _data$useDetails19, _data$waterConnection49, _data$waterConnection50, _data$useDetails20, _data$waterConnection51, _data$waterConnection52, _data$useDetails21, _data$waterConnection53, _data$waterConnection54, _data$useDetails22, _formdata$Property, _data3, _formdata$Property3;
|
|
6134
6136
|
if (data === void 0) {
|
|
6135
6137
|
data = {};
|
|
6136
6138
|
}
|
|
@@ -6177,17 +6179,18 @@ const convertToUpdatePropertyLightWeight = function (data) {
|
|
|
6177
6179
|
noOfFloors: noOfFloors,
|
|
6178
6180
|
additionalDetails: {
|
|
6179
6181
|
isRainwaterHarvesting: false,
|
|
6180
|
-
categoryType: ((_data$
|
|
6181
|
-
waterConnectionUsageType: ((_data$
|
|
6182
|
-
yearOfConstruction: ((_data$
|
|
6183
|
-
numberOfDwellingUnits: ((_data$
|
|
6184
|
-
numberOfRooms: ((_data$
|
|
6185
|
-
numberOfFloors: ((_data$
|
|
6186
|
-
plotArea: ((_data$
|
|
6187
|
-
builtUpArea: ((_data$
|
|
6188
|
-
farArea: ((_data$
|
|
6189
|
-
|
|
6190
|
-
|
|
6182
|
+
categoryType: ((_data$waterConnection27 = data.waterConnection) === null || _data$waterConnection27 === void 0 ? void 0 : (_data$waterConnection28 = _data$waterConnection27.useDetails) === null || _data$waterConnection28 === void 0 ? void 0 : (_data$waterConnection29 = _data$waterConnection28.categoryType) === null || _data$waterConnection29 === void 0 ? void 0 : _data$waterConnection29.code) || ((_data$useDetails11 = data.useDetails) === null || _data$useDetails11 === void 0 ? void 0 : (_data$useDetails11$ca = _data$useDetails11.categoryType) === null || _data$useDetails11$ca === void 0 ? void 0 : _data$useDetails11$ca.code),
|
|
6183
|
+
waterConnectionUsageType: ((_data$waterConnection30 = data.waterConnection) === null || _data$waterConnection30 === void 0 ? void 0 : (_data$waterConnection31 = _data$waterConnection30.useDetails) === null || _data$waterConnection31 === void 0 ? void 0 : (_data$waterConnection32 = _data$waterConnection31.WaterConnectionUsageType) === null || _data$waterConnection32 === void 0 ? void 0 : _data$waterConnection32.code) || ((_data$useDetails12 = data.useDetails) === null || _data$useDetails12 === void 0 ? void 0 : (_data$useDetails12$Wa = _data$useDetails12.WaterConnectionUsageType) === null || _data$useDetails12$Wa === void 0 ? void 0 : _data$useDetails12$Wa.code),
|
|
6184
|
+
yearOfConstruction: ((_data$waterConnection33 = data.waterConnection) === null || _data$waterConnection33 === void 0 ? void 0 : (_data$waterConnection34 = _data$waterConnection33.useDetails) === null || _data$waterConnection34 === void 0 ? void 0 : (_data$waterConnection35 = _data$waterConnection34.SelectYearofConstruction) === null || _data$waterConnection35 === void 0 ? void 0 : _data$waterConnection35.value) || ((_data$useDetails13 = data.useDetails) === null || _data$useDetails13 === void 0 ? void 0 : (_data$useDetails13$Se = _data$useDetails13.SelectYearofConstruction) === null || _data$useDetails13$Se === void 0 ? void 0 : _data$useDetails13$Se.value),
|
|
6185
|
+
numberOfDwellingUnits: ((_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.NumberofDwellingUnits) || ((_data$useDetails14 = data.useDetails) === null || _data$useDetails14 === void 0 ? void 0 : _data$useDetails14.NumberofDwellingUnits),
|
|
6186
|
+
numberOfRooms: ((_data$waterConnection38 = data.waterConnection) === null || _data$waterConnection38 === void 0 ? void 0 : (_data$waterConnection39 = _data$waterConnection38.useDetails) === null || _data$waterConnection39 === void 0 ? void 0 : _data$waterConnection39.NumberofRooms) || ((_data$useDetails15 = data.useDetails) === null || _data$useDetails15 === void 0 ? void 0 : _data$useDetails15.NumberofRooms),
|
|
6187
|
+
numberOfFloors: ((_data$waterConnection40 = data.waterConnection) === null || _data$waterConnection40 === void 0 ? void 0 : (_data$waterConnection41 = _data$waterConnection40.useDetails) === null || _data$waterConnection41 === void 0 ? void 0 : (_data$waterConnection42 = _data$waterConnection41.noOfFloors) === null || _data$waterConnection42 === void 0 ? void 0 : _data$waterConnection42.code) || ((_data$useDetails16 = data.useDetails) === null || _data$useDetails16 === void 0 ? void 0 : (_data$useDetails16$no = _data$useDetails16.noOfFloors) === null || _data$useDetails16$no === void 0 ? void 0 : _data$useDetails16$no.code) || 1,
|
|
6188
|
+
plotArea: ((_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.plotArea) || ((_data$useDetails17 = data.useDetails) === null || _data$useDetails17 === void 0 ? void 0 : _data$useDetails17.plotArea),
|
|
6189
|
+
builtUpArea: ((_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.builtUpArea) || ((_data$useDetails18 = data.useDetails) === null || _data$useDetails18 === void 0 ? void 0 : _data$useDetails18.builtUpArea),
|
|
6190
|
+
farArea: ((_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.farArea) || ((_data$useDetails19 = data.useDetails) === null || _data$useDetails19 === void 0 ? void 0 : _data$useDetails19.farArea),
|
|
6191
|
+
numberOfServantQuarters: ((_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.ServantQuartersRoom) || ((_data$useDetails20 = data.useDetails) === null || _data$useDetails20 === void 0 ? void 0 : _data$useDetails20.ServantQuartersRoom),
|
|
6192
|
+
numberOfStudents: ((_data$waterConnection51 = data.waterConnection) === null || _data$waterConnection51 === void 0 ? void 0 : (_data$waterConnection52 = _data$waterConnection51.useDetails) === null || _data$waterConnection52 === void 0 ? void 0 : _data$waterConnection52.numberOfStudents) || ((_data$useDetails21 = data.useDetails) === null || _data$useDetails21 === void 0 ? void 0 : _data$useDetails21.numberOfStudents),
|
|
6193
|
+
numberOfBeds: ((_data$waterConnection53 = data.waterConnection) === null || _data$waterConnection53 === void 0 ? void 0 : (_data$waterConnection54 = _data$waterConnection53.useDetails) === null || _data$waterConnection54 === void 0 ? void 0 : _data$waterConnection54.numberOfBeds) || ((_data$useDetails22 = data.useDetails) === null || _data$useDetails22 === void 0 ? void 0 : _data$useDetails22.numberOfBeds),
|
|
6191
6194
|
owners: [...data.owners.map((owner, index) => {
|
|
6192
6195
|
var _owner$gender6, _owner$ownerType4, _owner$relationship4, _owner$inistitutetype4;
|
|
6193
6196
|
return _extends({}, owner, {
|
|
@@ -15831,8 +15834,10 @@ const InfoDetails = _ref2 => {
|
|
|
15831
15834
|
};
|
|
15832
15835
|
|
|
15833
15836
|
const ViewBreakup = _ref => {
|
|
15834
|
-
var _wsAdditionalDetails
|
|
15835
|
-
let wsAdditionalDetails = _ref.wsAdditionalDetails
|
|
15837
|
+
var _breakUpData$calculat, _breakUpData$calculat2, _wsAdditionalDetails$8, _breakUpData$billSlab4, _breakUpData$billSlab5, _breakUpData$billSlab6, _breakUpData$billSlab7, _breakUpData$billSlab8, _breakUpData$billSlab9;
|
|
15838
|
+
let wsAdditionalDetails = _ref.wsAdditionalDetails,
|
|
15839
|
+
print = _ref.print,
|
|
15840
|
+
download = _ref.download;
|
|
15836
15841
|
const _useTranslation = useTranslation(),
|
|
15837
15842
|
t = _useTranslation.t;
|
|
15838
15843
|
const _useState = useState(false),
|
|
@@ -15841,6 +15846,44 @@ const ViewBreakup = _ref => {
|
|
|
15841
15846
|
const _useState2 = useState({}),
|
|
15842
15847
|
breakUpData = _useState2[0],
|
|
15843
15848
|
setBreakUpData = _useState2[1];
|
|
15849
|
+
const breakupRef = useRef(null);
|
|
15850
|
+
const formatNumber = function (value, maximumFractionDigits) {
|
|
15851
|
+
if (maximumFractionDigits === void 0) {
|
|
15852
|
+
maximumFractionDigits = 2;
|
|
15853
|
+
}
|
|
15854
|
+
return Number(value || 0).toLocaleString("en-IN", {
|
|
15855
|
+
maximumFractionDigits
|
|
15856
|
+
});
|
|
15857
|
+
};
|
|
15858
|
+
const formatCurrency = value => /*#__PURE__*/React.createElement("span", null, "\u20B9", formatNumber(value));
|
|
15859
|
+
const DetailRows = _ref2 => {
|
|
15860
|
+
let rows = _ref2.rows;
|
|
15861
|
+
return rows.map(_ref3 => {
|
|
15862
|
+
let label = _ref3.label,
|
|
15863
|
+
value = _ref3.value,
|
|
15864
|
+
_ref3$currency = _ref3.currency,
|
|
15865
|
+
currency = _ref3$currency === void 0 ? false : _ref3$currency,
|
|
15866
|
+
_ref3$unit = _ref3.unit,
|
|
15867
|
+
unit = _ref3$unit === void 0 ? "" : _ref3$unit,
|
|
15868
|
+
_ref3$isText = _ref3.isText,
|
|
15869
|
+
isText = _ref3$isText === void 0 ? false : _ref3$isText;
|
|
15870
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
15871
|
+
className: "border-none",
|
|
15872
|
+
rowContainerStyle: {
|
|
15873
|
+
margin: "0px"
|
|
15874
|
+
},
|
|
15875
|
+
labelStyle: {
|
|
15876
|
+
width: "50%"
|
|
15877
|
+
},
|
|
15878
|
+
key: label,
|
|
15879
|
+
label: label,
|
|
15880
|
+
text: currency ? formatCurrency(value) : isText ? value || "-" : "" + formatNumber(value) + unit,
|
|
15881
|
+
textStyle: {
|
|
15882
|
+
textAlign: "right"
|
|
15883
|
+
}
|
|
15884
|
+
});
|
|
15885
|
+
});
|
|
15886
|
+
};
|
|
15844
15887
|
const Heading = props => {
|
|
15845
15888
|
return /*#__PURE__*/React.createElement("h1", {
|
|
15846
15889
|
className: "heading-m"
|
|
@@ -15863,21 +15906,181 @@ const ViewBreakup = _ref => {
|
|
|
15863
15906
|
}, /*#__PURE__*/React.createElement(Close, null));
|
|
15864
15907
|
};
|
|
15865
15908
|
const onPopupOpen = () => {
|
|
15866
|
-
var _sessionBillFormData$;
|
|
15867
|
-
let breakupData = wsAdditionalDetails.additionalDetails
|
|
15909
|
+
var _wsAdditionalDetails$, _sessionBillFormData$;
|
|
15910
|
+
let breakupData = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$ === void 0 ? void 0 : _wsAdditionalDetails$.data) || {};
|
|
15868
15911
|
const sessionBillData = sessionStorage.getItem("Digit.ADHOC_BILL_ADD_REBATE_DATA");
|
|
15869
15912
|
const sessionBillFormData = sessionBillData ? JSON.parse(sessionBillData) : {};
|
|
15870
15913
|
if (sessionBillFormData !== null && sessionBillFormData !== void 0 && (_sessionBillFormData$ = sessionBillFormData.value) !== null && _sessionBillFormData$ !== void 0 && _sessionBillFormData$.totalAmount) breakupData = sessionBillFormData === null || sessionBillFormData === void 0 ? void 0 : sessionBillFormData.value;
|
|
15871
15914
|
setBreakUpData(breakupData);
|
|
15872
15915
|
showPopUp(true);
|
|
15873
15916
|
};
|
|
15917
|
+
const getBreakupReportDetails = () => {
|
|
15918
|
+
var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _wsAdditionalDetails$4, _wsAdditionalDetails$5, _wsAdditionalDetails$6, _wsAdditionalDetails$7, _breakUpData$billSlab, _breakUpData$billSlab2, _breakUpData$billSlab3;
|
|
15919
|
+
const amountRows = function (rows) {
|
|
15920
|
+
if (rows === void 0) {
|
|
15921
|
+
rows = [];
|
|
15922
|
+
}
|
|
15923
|
+
return rows.map(row => ({
|
|
15924
|
+
title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
|
|
15925
|
+
value: "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount)
|
|
15926
|
+
}));
|
|
15927
|
+
};
|
|
15928
|
+
const connectionHolder = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : (_wsAdditionalDetails$4 = _wsAdditionalDetails$3.connectionHolders) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : _wsAdditionalDetails$4[0];
|
|
15929
|
+
const applicantName = [connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.name, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.middleName, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.lastName].filter(Boolean).join(" ") || "-";
|
|
15930
|
+
const mobileNumber = (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.mobileNumber) || "-";
|
|
15931
|
+
const appNumber = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$5 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$5 === void 0 ? void 0 : (_wsAdditionalDetails$6 = _wsAdditionalDetails$5.data) === null || _wsAdditionalDetails$6 === void 0 ? void 0 : _wsAdditionalDetails$6.applicationNo) || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$7 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$7 === void 0 ? void 0 : _wsAdditionalDetails$7.applicationNumber) || "-";
|
|
15932
|
+
return [{
|
|
15933
|
+
title: "Applicant Details",
|
|
15934
|
+
values: [{
|
|
15935
|
+
title: "Application Number",
|
|
15936
|
+
value: appNumber
|
|
15937
|
+
}, {
|
|
15938
|
+
title: "Applicant Name",
|
|
15939
|
+
value: applicantName
|
|
15940
|
+
}, {
|
|
15941
|
+
title: "Mobile Number",
|
|
15942
|
+
value: mobileNumber
|
|
15943
|
+
}]
|
|
15944
|
+
}, {
|
|
15945
|
+
title: t("WS_APPLICATION_FEE_HEADER"),
|
|
15946
|
+
values: amountRows([...((breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : _breakUpData$billSlab.FEE) || []), ...((breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab2 = breakUpData.billSlabData) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.CHARGES) || [])])
|
|
15947
|
+
}, {
|
|
15948
|
+
title: "Taxes",
|
|
15949
|
+
values: amountRows(breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : _breakUpData$billSlab3.TAX)
|
|
15950
|
+
}, {
|
|
15951
|
+
title: "Water demand details",
|
|
15952
|
+
values: waterDemandRows.map(_ref4 => {
|
|
15953
|
+
let label = _ref4.label,
|
|
15954
|
+
value = _ref4.value,
|
|
15955
|
+
currency = _ref4.currency,
|
|
15956
|
+
unit = _ref4.unit,
|
|
15957
|
+
isText = _ref4.isText;
|
|
15958
|
+
return {
|
|
15959
|
+
title: label,
|
|
15960
|
+
value: currency ? "\u20B9" + formatNumber(value) : isText ? value || "-" : "" + formatNumber(value) + unit
|
|
15961
|
+
};
|
|
15962
|
+
})
|
|
15963
|
+
}, {
|
|
15964
|
+
title: "Infrastructure charge details",
|
|
15965
|
+
values: infrastructureChargeRows.map(_ref5 => {
|
|
15966
|
+
let label = _ref5.label,
|
|
15967
|
+
value = _ref5.value,
|
|
15968
|
+
currency = _ref5.currency,
|
|
15969
|
+
unit = _ref5.unit,
|
|
15970
|
+
isText = _ref5.isText;
|
|
15971
|
+
return {
|
|
15972
|
+
title: label,
|
|
15973
|
+
value: currency ? "\u20B9" + formatNumber(value) : isText ? value || "-" : "" + formatNumber(value) + unit
|
|
15974
|
+
};
|
|
15975
|
+
})
|
|
15976
|
+
}, {
|
|
15977
|
+
title: "Total",
|
|
15978
|
+
values: [{
|
|
15979
|
+
title: t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
15980
|
+
value: "\u20B9" + formatNumber(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount)
|
|
15981
|
+
}]
|
|
15982
|
+
}].filter(section => section.values.length > 0);
|
|
15983
|
+
};
|
|
15984
|
+
const generateBreakupReport = mode => {
|
|
15985
|
+
var _Digit$Utils, _Digit$Utils$pdf;
|
|
15986
|
+
const generateReport = (_Digit$Utils = Digit.Utils) === null || _Digit$Utils === void 0 ? void 0 : (_Digit$Utils$pdf = _Digit$Utils.pdf) === null || _Digit$Utils$pdf === void 0 ? void 0 : _Digit$Utils$pdf.generateCalculationBreakupReport;
|
|
15987
|
+
if (typeof generateReport === "function") {
|
|
15988
|
+
return generateReport({
|
|
15989
|
+
tenantId: Digit.ULBService.getCurrentTenantId(),
|
|
15990
|
+
heading: t("WS_CALCULATION_BREAKUP"),
|
|
15991
|
+
details: getBreakupReportDetails(),
|
|
15992
|
+
t,
|
|
15993
|
+
mode
|
|
15994
|
+
});
|
|
15995
|
+
}
|
|
15996
|
+
return mode === "download" ? Digit.Download.PDF(breakupRef, t("WS_CALCULATION_BREAKUP")) : null;
|
|
15997
|
+
};
|
|
15998
|
+
const handleDownload = () => generateBreakupReport("download");
|
|
15999
|
+
const handlePrint = () => {
|
|
16000
|
+
var _Digit$Utils2, _Digit$Utils2$pdf, _breakupRef$current, _window$mSewaApp, _window$mSewaApp$isMs;
|
|
16001
|
+
if ((_Digit$Utils2 = Digit.Utils) !== null && _Digit$Utils2 !== void 0 && (_Digit$Utils2$pdf = _Digit$Utils2.pdf) !== null && _Digit$Utils2$pdf !== void 0 && _Digit$Utils2$pdf.generateCalculationBreakupReport) {
|
|
16002
|
+
return generateBreakupReport("print");
|
|
16003
|
+
}
|
|
16004
|
+
const content = (_breakupRef$current = breakupRef.current) === null || _breakupRef$current === void 0 ? void 0 : _breakupRef$current.innerHTML;
|
|
16005
|
+
if (!content) return;
|
|
16006
|
+
if ((_window$mSewaApp = window.mSewaApp) !== null && _window$mSewaApp !== void 0 && (_window$mSewaApp$isMs = _window$mSewaApp.isMsewaApp) !== null && _window$mSewaApp$isMs !== void 0 && _window$mSewaApp$isMs.call(_window$mSewaApp)) {
|
|
16007
|
+
window.mSewaApp.downloadBase64File(window.btoa(unescape(encodeURIComponent(content))), t("WS_CALCULATION_BREAKUP"));
|
|
16008
|
+
return;
|
|
16009
|
+
}
|
|
16010
|
+
const printWindow = window.open("", "");
|
|
16011
|
+
if (!printWindow) return;
|
|
16012
|
+
printWindow.document.write("<html><body>" + content + "</body></html>");
|
|
16013
|
+
printWindow.document.close();
|
|
16014
|
+
printWindow.focus();
|
|
16015
|
+
printWindow.print();
|
|
16016
|
+
};
|
|
16017
|
+
const waterDemandDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat = breakUpData.calculationDetail) === null || _breakUpData$calculat === void 0 ? void 0 : _breakUpData$calculat.waterDemandDetail;
|
|
16018
|
+
const infrastructureChargeDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat2 = breakUpData.calculationDetail) === null || _breakUpData$calculat2 === void 0 ? void 0 : _breakUpData$calculat2.infrastructureChargeDetail;
|
|
16019
|
+
const waterDemandRows = waterDemandDetail ? [{
|
|
16020
|
+
label: "Calculated occupancy",
|
|
16021
|
+
value: waterDemandDetail.calculatedOccupancy,
|
|
16022
|
+
unit: " person"
|
|
16023
|
+
}, {
|
|
16024
|
+
label: "Applied LPCD",
|
|
16025
|
+
value: waterDemandDetail.chosenLpcd,
|
|
16026
|
+
unit: " LPD"
|
|
16027
|
+
}, {
|
|
16028
|
+
label: "Base demand",
|
|
16029
|
+
value: waterDemandDetail.baseDemand,
|
|
16030
|
+
unit: " LPD"
|
|
16031
|
+
}, {
|
|
16032
|
+
label: "Contingency/Floating Occupancy",
|
|
16033
|
+
value: waterDemandDetail.contingencyPercentage,
|
|
16034
|
+
unit: "%"
|
|
16035
|
+
}, {
|
|
16036
|
+
label: "Total water demand",
|
|
16037
|
+
value: waterDemandDetail.totalWaterDemandLPD,
|
|
16038
|
+
unit: " LPD"
|
|
16039
|
+
}] : [];
|
|
16040
|
+
const infrastructureChargeRows = infrastructureChargeDetail ? [{
|
|
16041
|
+
label: "Colony category",
|
|
16042
|
+
value: infrastructureChargeDetail.colonyCategory,
|
|
16043
|
+
isText: true
|
|
16044
|
+
}, {
|
|
16045
|
+
label: "Plot area",
|
|
16046
|
+
value: infrastructureChargeDetail.plotArea,
|
|
16047
|
+
unit: " (sq. meter.)"
|
|
16048
|
+
}, {
|
|
16049
|
+
label: "Water rate",
|
|
16050
|
+
value: infrastructureChargeDetail.waterRatePerLPD,
|
|
16051
|
+
currency: true
|
|
16052
|
+
}, {
|
|
16053
|
+
label: "Sewer rate",
|
|
16054
|
+
value: infrastructureChargeDetail.sewerRatePerLPD,
|
|
16055
|
+
currency: true
|
|
16056
|
+
}, {
|
|
16057
|
+
label: "Water Infra Charges",
|
|
16058
|
+
value: infrastructureChargeDetail.waterComponentIFC,
|
|
16059
|
+
currency: true
|
|
16060
|
+
}, {
|
|
16061
|
+
label: "Sewer Infra Charges",
|
|
16062
|
+
value: infrastructureChargeDetail.sewerComponentIFC,
|
|
16063
|
+
currency: true
|
|
16064
|
+
}, {
|
|
16065
|
+
label: "Rebate",
|
|
16066
|
+
value: infrastructureChargeDetail.rebatePercentage,
|
|
16067
|
+
unit: "%"
|
|
16068
|
+
}, {
|
|
16069
|
+
label: "Rebate amount",
|
|
16070
|
+
value: infrastructureChargeDetail.rebateAmount,
|
|
16071
|
+
currency: true
|
|
16072
|
+
}, {
|
|
16073
|
+
label: "Net IFC",
|
|
16074
|
+
value: infrastructureChargeDetail.netIFC,
|
|
16075
|
+
currency: true
|
|
16076
|
+
}] : [];
|
|
15874
16077
|
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
15875
16078
|
style: {
|
|
15876
16079
|
lineHeight: "19px",
|
|
15877
16080
|
maxWidth: "950px",
|
|
15878
16081
|
minWidth: "280px"
|
|
15879
16082
|
}
|
|
15880
|
-
}, wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails
|
|
16083
|
+
}, wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$8 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$8 !== void 0 && _wsAdditionalDetails$8.isViewBreakup ? /*#__PURE__*/React.createElement("div", {
|
|
15881
16084
|
onClick: e => onPopupOpen(),
|
|
15882
16085
|
style: {
|
|
15883
16086
|
marginTop: "12px"
|
|
@@ -15888,6 +16091,9 @@ const ViewBreakup = _ref => {
|
|
|
15888
16091
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
15889
16092
|
label: t("WS_CALCULATION_BREAKUP")
|
|
15890
16093
|
}),
|
|
16094
|
+
width: "950px",
|
|
16095
|
+
print: print || handlePrint,
|
|
16096
|
+
download: download || handleDownload,
|
|
15891
16097
|
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
|
|
15892
16098
|
onClick: () => {
|
|
15893
16099
|
showPopUp(false);
|
|
@@ -15903,16 +16109,13 @@ const ViewBreakup = _ref => {
|
|
|
15903
16109
|
popupModuleMianStyles: {
|
|
15904
16110
|
paddingTop: "0px"
|
|
15905
16111
|
}
|
|
15906
|
-
}, /*#__PURE__*/React.createElement(
|
|
15907
|
-
|
|
15908
|
-
|
|
15909
|
-
paddingTop: "0px"
|
|
15910
|
-
}
|
|
15911
|
-
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
16112
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16113
|
+
ref: breakupRef
|
|
16114
|
+
}, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15912
16115
|
style: {
|
|
15913
16116
|
margin: "10px 0px"
|
|
15914
16117
|
}
|
|
15915
|
-
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$
|
|
16118
|
+
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
15916
16119
|
className: "border-none",
|
|
15917
16120
|
rowContainerStyle: {
|
|
15918
16121
|
margin: "0px"
|
|
@@ -15926,11 +16129,7 @@ const ViewBreakup = _ref => {
|
|
|
15926
16129
|
textStyle: {
|
|
15927
16130
|
textAlign: "right"
|
|
15928
16131
|
}
|
|
15929
|
-
})), /*#__PURE__*/React.createElement(
|
|
15930
|
-
style: {
|
|
15931
|
-
margin: "10px 0px"
|
|
15932
|
-
}
|
|
15933
|
-
}, t("WS_SERVICE_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : (_breakUpData$billSlab4 = _breakUpData$billSlab3.CHARGES) === null || _breakUpData$billSlab4 === void 0 ? void 0 : _breakUpData$billSlab4.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
16132
|
+
})), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab6 = breakUpData.billSlabData) === null || _breakUpData$billSlab6 === void 0 ? void 0 : (_breakUpData$billSlab7 = _breakUpData$billSlab6.CHARGES) === null || _breakUpData$billSlab7 === void 0 ? void 0 : _breakUpData$billSlab7.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
15934
16133
|
className: "border-none",
|
|
15935
16134
|
rowContainerStyle: {
|
|
15936
16135
|
margin: "0px"
|
|
@@ -15944,7 +16143,7 @@ const ViewBreakup = _ref => {
|
|
|
15944
16143
|
textStyle: {
|
|
15945
16144
|
textAlign: "right"
|
|
15946
16145
|
}
|
|
15947
|
-
})), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$
|
|
16146
|
+
})), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab8 = breakUpData.billSlabData) === null || _breakUpData$billSlab8 === void 0 ? void 0 : (_breakUpData$billSlab9 = _breakUpData$billSlab8.TAX) === null || _breakUpData$billSlab9 === void 0 ? void 0 : _breakUpData$billSlab9.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
15948
16147
|
className: "border-none",
|
|
15949
16148
|
rowContainerStyle: {
|
|
15950
16149
|
margin: "0px"
|
|
@@ -15958,6 +16157,18 @@ const ViewBreakup = _ref => {
|
|
|
15958
16157
|
textStyle: {
|
|
15959
16158
|
textAlign: "right"
|
|
15960
16159
|
}
|
|
16160
|
+
})), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
16161
|
+
style: {
|
|
16162
|
+
margin: "10px 0px"
|
|
16163
|
+
}
|
|
16164
|
+
}, "Water demand details"), /*#__PURE__*/React.createElement(DetailRows, {
|
|
16165
|
+
rows: waterDemandRows
|
|
16166
|
+
})), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
16167
|
+
style: {
|
|
16168
|
+
margin: "10px 0px"
|
|
16169
|
+
}
|
|
16170
|
+
}, "Infrastructure charge details"), /*#__PURE__*/React.createElement(DetailRows, {
|
|
16171
|
+
rows: infrastructureChargeRows
|
|
15961
16172
|
})), /*#__PURE__*/React.createElement("hr", {
|
|
15962
16173
|
style: {
|
|
15963
16174
|
color: "#cccccc",
|
|
@@ -15980,7 +16191,7 @@ const ViewBreakup = _ref => {
|
|
|
15980
16191
|
fontWeight: "700",
|
|
15981
16192
|
fontSize: "24px"
|
|
15982
16193
|
}
|
|
15983
|
-
})))));
|
|
16194
|
+
}))))));
|
|
15984
16195
|
};
|
|
15985
16196
|
|
|
15986
16197
|
const styles = {
|
|
@@ -18956,7 +19167,7 @@ const _excluded$4 = ["t", "config", "onSelect", "formData", "formState", "setErr
|
|
|
18956
19167
|
const NUMBER_PATTERN = /^\d+$/;
|
|
18957
19168
|
const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
|
|
18958
19169
|
const PropertyWaterConnection = _ref => {
|
|
18959
|
-
var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11;
|
|
19170
|
+
var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11, _errors$useDetails12;
|
|
18960
19171
|
let t = _ref.t,
|
|
18961
19172
|
config = _ref.config,
|
|
18962
19173
|
onSelect = _ref.onSelect,
|
|
@@ -18978,7 +19189,8 @@ const PropertyWaterConnection = _ref => {
|
|
|
18978
19189
|
NumberofDwellingUnits: "",
|
|
18979
19190
|
NumberofRooms: "",
|
|
18980
19191
|
numberOfBeds: "",
|
|
18981
|
-
numberOfStudents: ""
|
|
19192
|
+
numberOfStudents: "",
|
|
19193
|
+
ServantQuartersRoom: ""
|
|
18982
19194
|
}
|
|
18983
19195
|
}
|
|
18984
19196
|
}),
|
|
@@ -19017,6 +19229,8 @@ const PropertyWaterConnection = _ref => {
|
|
|
19017
19229
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
19018
19230
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
19019
19231
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
19232
|
+
const isDwellingUnit = (watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : watchPropertyCategory.code) === "RESIDENTIAL" || (watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : watchPropertyCategory.code) === "RESIDENTIAL";
|
|
19233
|
+
const isServentHouse = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "Apartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "FlatOrApartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "IndividualHouse";
|
|
19020
19234
|
const yearOptions = useMemo(() => {
|
|
19021
19235
|
const currentYear = new Date().getFullYear();
|
|
19022
19236
|
const years = [];
|
|
@@ -19148,6 +19362,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19148
19362
|
setValue("useDetails.NumberofRooms", "");
|
|
19149
19363
|
setValue("useDetails.numberOfBeds", "");
|
|
19150
19364
|
setValue("useDetails.numberOfStudents", "");
|
|
19365
|
+
setValue("useDetails.ServantQuartersRoom", "");
|
|
19151
19366
|
}
|
|
19152
19367
|
}, [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]);
|
|
19153
19368
|
const lastErrorState = React.useRef(null);
|
|
@@ -19330,7 +19545,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19330
19545
|
})
|
|
19331
19546
|
}))), (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, {
|
|
19332
19547
|
style: errorStyle
|
|
19333
|
-
}, errors.useDetails.SelectYearofConstruction.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_NUMBER_OF_DWELLING_UNITS")), /*#__PURE__*/React.createElement("div", {
|
|
19548
|
+
}, errors.useDetails.SelectYearofConstruction.message), isDwellingUnit ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_NUMBER_OF_DWELLING_UNITS")), /*#__PURE__*/React.createElement("div", {
|
|
19334
19549
|
className: "form-field"
|
|
19335
19550
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
19336
19551
|
t: t,
|
|
@@ -19342,7 +19557,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
19342
19557
|
}),
|
|
19343
19558
|
name: "useDetails.NumberofDwellingUnits",
|
|
19344
19559
|
disabled: isPropertyFound
|
|
19345
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails0 = errors.useDetails) === null || _errors$useDetails0 === void 0 ? void 0 : _errors$useDetails0.NumberofDwellingUnits) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19560
|
+
}))) : null, isDwellingUnit && (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, {
|
|
19346
19561
|
style: errorStyle
|
|
19347
19562
|
}, errors.useDetails.NumberofDwellingUnits.message), isHotelRestaurantProperty ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NUMBER_OF_ROOMS") + "*"), /*#__PURE__*/React.createElement("div", {
|
|
19348
19563
|
className: "form-field"
|
|
@@ -19388,7 +19603,21 @@ const PropertyWaterConnection = _ref => {
|
|
|
19388
19603
|
disabled: isPropertyFound
|
|
19389
19604
|
}))) : null, isSchoolCollegeProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails11 = errors.useDetails) === null || _errors$useDetails11 === void 0 ? void 0 : _errors$useDetails11.numberOfStudents) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19390
19605
|
style: errorStyle
|
|
19391
|
-
}, errors.useDetails.numberOfStudents.message)))
|
|
19606
|
+
}, errors.useDetails.numberOfStudents.message), isServentHouse ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_SERVENT_HOUSE")), /*#__PURE__*/React.createElement("div", {
|
|
19607
|
+
className: "form-field"
|
|
19608
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
19609
|
+
t: t,
|
|
19610
|
+
inputRef: register({
|
|
19611
|
+
pattern: {
|
|
19612
|
+
value: NUMBER_PATTERN,
|
|
19613
|
+
message: t("ERR_INVALID_NUMBER")
|
|
19614
|
+
}
|
|
19615
|
+
}),
|
|
19616
|
+
name: "useDetails.ServantQuartersRoom",
|
|
19617
|
+
disabled: isPropertyFound
|
|
19618
|
+
}))) : null, isServentHouse && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails12 = errors.useDetails) === null || _errors$useDetails12 === void 0 ? void 0 : _errors$useDetails12.ServantQuartersRoom) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19619
|
+
style: errorStyle
|
|
19620
|
+
}, errors.useDetails.ServantQuartersRoom.message)));
|
|
19392
19621
|
};
|
|
19393
19622
|
|
|
19394
19623
|
const SwitchComponent = props => {
|