@djb25/digit-ui-module-ws 1.0.58 → 1.0.59
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 +27 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +27 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9875,7 +9875,7 @@ const WSCalculation = _ref => {
|
|
|
9875
9875
|
});
|
|
9876
9876
|
};
|
|
9877
9877
|
const RenderCalculationDetails = _ref2 => {
|
|
9878
|
-
var _data$Calculation, _calc$calculationDeta, _calc$calculationDeta2, _calc$calculationDeta3, _waterDemandDetail$co, _waterDemandDetail$co2, _waterDemandDetail$co3, _waterDemandDetail$co4, _waterDemandDetail$co5, _waterDemandDetail$co6, _waterDemandDetail$co7, _waterDemandDetail$co8, _waterDemandDetail$co9, _waterDemandDetail$co0, _waterDemandDetail$co1, _waterDemandDetail$co10, _waterDemandDetail$co11, _waterDemandDetail$co12, _waterDemandDetail$co13, _waterDemandDetail$co14, _waterDemandDetail$co15, _waterDemandDetail$co16, _infraDetail$waterCom, _infraDetail$sewerCom, _infraDetail$grossIFC, _infraDetail$rebateAm, _infraDetail$netIFC;
|
|
9878
|
+
var _data$Calculation, _calc$calculationDeta, _calc$calculationDeta2, _calc$calculationDeta3, _waterDemandDetail$co, _waterDemandDetail$co2, _waterDemandDetail$co3, _waterDemandDetail$co4, _waterDemandDetail$co5, _waterDemandDetail$co6, _waterDemandDetail$co7, _waterDemandDetail$co8, _waterDemandDetail$co9, _waterDemandDetail$co0, _waterDemandDetail$co1, _waterDemandDetail$co10, _waterDemandDetail$co11, _waterDemandDetail$co12, _waterDemandDetail$co13, _waterDemandDetail$co14, _waterDemandDetail$co15, _waterDemandDetail$co16, _infraDetail$waterCom, _infraDetail$sewerCom, _infraDetail$grossIFC, _infraDetail$rebateAm, _infraDetail$institut, _infraDetail$dwelling, _infraDetail$netIFC;
|
|
9879
9879
|
let data = _ref2.data;
|
|
9880
9880
|
if (!data) return null;
|
|
9881
9881
|
const calc = (_data$Calculation = data.Calculation) === null || _data$Calculation === void 0 ? void 0 : _data$Calculation[0];
|
|
@@ -10098,9 +10098,33 @@ const WSCalculation = _ref => {
|
|
|
10098
10098
|
className: "ws-calc-row"
|
|
10099
10099
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10100
10100
|
className: "ws-calc-row-label"
|
|
10101
|
-
}, t("
|
|
10101
|
+
}, t("WS_COLONY_REBATE"), " (", infraDetail.rebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10102
10102
|
className: "ws-calc-row-value-red"
|
|
10103
|
-
}, "- \u20B9 ", ((_infraDetail$rebateAm = infraDetail.rebateAmount) === null || _infraDetail$rebateAm === void 0 ? void 0 : _infraDetail$rebateAm.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React__default.createElement("div", {
|
|
10103
|
+
}, "- \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
|
+
className: "ws-calc-row"
|
|
10105
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10106
|
+
className: "ws-calc-row-label"
|
|
10107
|
+
}, t("WS_INSTITUTIONAL_REBATE"), " (", infraDetail.institutionalRebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10108
|
+
className: "ws-calc-row-value-red"
|
|
10109
|
+
}, "- \u20B9 ", ((_infraDetail$institut = infraDetail.institutionalRebateAmount) === null || _infraDetail$institut === void 0 ? void 0 : _infraDetail$institut.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React__default.createElement("div", {
|
|
10110
|
+
className: "ws-calc-row"
|
|
10111
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10112
|
+
className: "ws-calc-row-label"
|
|
10113
|
+
}, t("WS_INSTITUTIONAL_REBATE_REASON")), /*#__PURE__*/React__default.createElement("span", {
|
|
10114
|
+
className: "ws-calc-row-value"
|
|
10115
|
+
}, t(infraDetail.institutionalRebateReason) || "-"))), infraDetail.dwellingRebateApplied && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10116
|
+
className: "ws-calc-row"
|
|
10117
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10118
|
+
className: "ws-calc-row-label"
|
|
10119
|
+
}, t("WS_DWELLING_REBATE"), " (", infraDetail.dwellingRebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10120
|
+
className: "ws-calc-row-value-red"
|
|
10121
|
+
}, "- \u20B9 ", ((_infraDetail$dwelling = infraDetail.dwellingRebateAmount) === null || _infraDetail$dwelling === void 0 ? void 0 : _infraDetail$dwelling.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React__default.createElement("div", {
|
|
10122
|
+
className: "ws-calc-row"
|
|
10123
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10124
|
+
className: "ws-calc-row-label"
|
|
10125
|
+
}, t("WS_DWELLING_REBATE_REASON")), /*#__PURE__*/React__default.createElement("span", {
|
|
10126
|
+
className: "ws-calc-row-value"
|
|
10127
|
+
}, t(infraDetail.dwellingRebateReason) || "-"))), /*#__PURE__*/React__default.createElement("div", {
|
|
10104
10128
|
className: "ws-calc-highlight-green"
|
|
10105
10129
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10106
10130
|
className: "ws-calc-highlight-green-label"
|