@djb25/digit-ui-module-ws 1.0.59 → 1.0.60
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 +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9722,8 +9722,9 @@ const WSCalculation = _ref => {
|
|
|
9722
9722
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "DharamshalasOrHostels" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
9723
9723
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
9724
9724
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
9725
|
-
const
|
|
9726
|
-
const
|
|
9725
|
+
const dwellingPropertyTypes = ["Apartment", "DDAFlats", "GovtFlats", "Bungalows", "FlatOrApartment", "GroupHousingSociety", "JJSLUMS", "IndividualHouse"];
|
|
9726
|
+
const isDwellingUnit = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
9727
|
+
const isServentHouse = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
9727
9728
|
const categoryOptions = React.useMemo(() => {
|
|
9728
9729
|
var _ptServicesMastersDat, _ptServicesMastersDat2;
|
|
9729
9730
|
if (!(watchCategoryType !== null && watchCategoryType !== void 0 && watchCategoryType.code)) return [];
|
|
@@ -10100,13 +10101,13 @@ const WSCalculation = _ref => {
|
|
|
10100
10101
|
className: "ws-calc-row-label"
|
|
10101
10102
|
}, t("WS_COLONY_REBATE"), " (", infraDetail.rebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10102
10103
|
className: "ws-calc-row-value-red"
|
|
10103
|
-
}, "
|
|
10104
|
+
}, "\u20B9 ", ((_infraDetail$rebateAm = infraDetail.rebateAmount) === null || _infraDetail$rebateAm === void 0 ? void 0 : _infraDetail$rebateAm.toLocaleString("en-IN")) || 0)), infraDetail.institutionalRebateApplied && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10104
10105
|
className: "ws-calc-row"
|
|
10105
10106
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10106
10107
|
className: "ws-calc-row-label"
|
|
10107
10108
|
}, t("WS_INSTITUTIONAL_REBATE"), " (", infraDetail.institutionalRebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10108
10109
|
className: "ws-calc-row-value-red"
|
|
10109
|
-
}, "
|
|
10110
|
+
}, "\u20B9 ", ((_infraDetail$institut = infraDetail.institutionalRebateAmount) === null || _infraDetail$institut === void 0 ? void 0 : _infraDetail$institut.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React__default.createElement("div", {
|
|
10110
10111
|
className: "ws-calc-row"
|
|
10111
10112
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10112
10113
|
className: "ws-calc-row-label"
|
|
@@ -10118,7 +10119,7 @@ const WSCalculation = _ref => {
|
|
|
10118
10119
|
className: "ws-calc-row-label"
|
|
10119
10120
|
}, t("WS_DWELLING_REBATE"), " (", infraDetail.dwellingRebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10120
10121
|
className: "ws-calc-row-value-red"
|
|
10121
|
-
}, "
|
|
10122
|
+
}, "\u20B9 ", ((_infraDetail$dwelling = infraDetail.dwellingRebateAmount) === null || _infraDetail$dwelling === void 0 ? void 0 : _infraDetail$dwelling.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React__default.createElement("div", {
|
|
10122
10123
|
className: "ws-calc-row"
|
|
10123
10124
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10124
10125
|
className: "ws-calc-row-label"
|
|
@@ -21392,8 +21393,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
21392
21393
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "DharamshalasOrHostels" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
21393
21394
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
21394
21395
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
21395
|
-
const
|
|
21396
|
-
const
|
|
21396
|
+
const dwellingPropertyTypes = ["Apartment", "DDAFlats", "GovtFlats", "Bungalows", "FlatOrApartment", "GroupHousingSociety", "JJSLUMS", "IndividualHouse"];
|
|
21397
|
+
const isDwellingUnit = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
21398
|
+
const isServentHouse = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
21397
21399
|
const yearOptions = React.useMemo(() => {
|
|
21398
21400
|
const currentYear = new Date().getFullYear();
|
|
21399
21401
|
const years = [];
|