@djb25/digit-ui-module-commonpt 1.0.26 → 1.0.27
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 +39 -13
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +39 -13
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14326,9 +14326,9 @@ function PropertyDocuments(_ref) {
|
|
|
14326
14326
|
var _document$values;
|
|
14327
14327
|
document === null || document === void 0 ? void 0 : (_document$values = document.values) === null || _document$values === void 0 ? void 0 : _document$values.forEach(value => {
|
|
14328
14328
|
if (!value.isPhoto) {
|
|
14329
|
-
var _ref2, _checkedMap$value$
|
|
14329
|
+
var _ref2, _checkedMap$value$fil, _value$originalDoc;
|
|
14330
14330
|
requiredDocsCount++;
|
|
14331
|
-
const isChecked = (_ref2 = (_checkedMap$value$
|
|
14331
|
+
const isChecked = (_ref2 = (_checkedMap$value$fil = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil : value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.isVerified) != null ? _ref2 : false;
|
|
14332
14332
|
if (isChecked) {
|
|
14333
14333
|
checkedCount++;
|
|
14334
14334
|
}
|
|
@@ -14572,7 +14572,7 @@ function PropertyDocuments(_ref) {
|
|
|
14572
14572
|
style: {
|
|
14573
14573
|
cursor: "pointer"
|
|
14574
14574
|
}
|
|
14575
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$
|
|
14575
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$fil2, _value$originalDoc2, _value$originalDoc3, _value$originalDoc4) => {
|
|
14576
14576
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
14577
14577
|
onClick: () => {
|
|
14578
14578
|
if (fileUrl) {
|
|
@@ -14614,7 +14614,7 @@ function PropertyDocuments(_ref) {
|
|
|
14614
14614
|
margin: 0
|
|
14615
14615
|
}
|
|
14616
14616
|
}, /*#__PURE__*/React__default.createElement("input", {
|
|
14617
|
-
key: "chk-" + (value === null || value === void 0 ? void 0 :
|
|
14617
|
+
key: "chk-" + (value === null || value === void 0 ? void 0 : value.fileStoreId) + "-" + (value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified),
|
|
14618
14618
|
type: "checkbox",
|
|
14619
14619
|
className: "verify-doc-checkbox",
|
|
14620
14620
|
style: {
|
|
@@ -14624,16 +14624,15 @@ function PropertyDocuments(_ref) {
|
|
|
14624
14624
|
cursor: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" ? "not-allowed" : "pointer"
|
|
14625
14625
|
},
|
|
14626
14626
|
disabled: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION",
|
|
14627
|
-
defaultChecked: value === null || value === void 0 ? void 0 : (_value$
|
|
14627
|
+
defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc4 = value.originalDoc) === null || _value$originalDoc4 === void 0 ? void 0 : _value$originalDoc4.isVerified,
|
|
14628
14628
|
onChange: e => {
|
|
14629
|
-
var _value$originalDoc8;
|
|
14630
14629
|
const checked = e.target.checked;
|
|
14631
14630
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
14632
14631
|
value.originalDoc.isVerified = checked;
|
|
14633
14632
|
}
|
|
14634
|
-
if (value !== null && value !== void 0 &&
|
|
14633
|
+
if (value !== null && value !== void 0 && value.fileStoreId) {
|
|
14635
14634
|
setCheckedMap(prev => _extends({}, prev, {
|
|
14636
|
-
[value.
|
|
14635
|
+
[value.fileStoreId]: checked
|
|
14637
14636
|
}));
|
|
14638
14637
|
}
|
|
14639
14638
|
}
|
|
@@ -16148,7 +16147,7 @@ const ViewBreakup = _ref => {
|
|
|
16148
16147
|
label: "Sewer Infra Charges",
|
|
16149
16148
|
value: infrastructureChargeDetail.sewerComponentIFC,
|
|
16150
16149
|
currency: true
|
|
16151
|
-
}, {
|
|
16150
|
+
}, ...(infrastructureChargeDetail.rebateAmount > 0 ? [{
|
|
16152
16151
|
label: "Rebate",
|
|
16153
16152
|
value: infrastructureChargeDetail.rebatePercentage,
|
|
16154
16153
|
unit: "%"
|
|
@@ -16156,7 +16155,31 @@ const ViewBreakup = _ref => {
|
|
|
16156
16155
|
label: "Rebate amount",
|
|
16157
16156
|
value: infrastructureChargeDetail.rebateAmount,
|
|
16158
16157
|
currency: true
|
|
16158
|
+
}] : []), ...(infrastructureChargeDetail.institutionalRebateApplied ? [{
|
|
16159
|
+
label: "Institutional rebate",
|
|
16160
|
+
value: infrastructureChargeDetail.institutionalRebatePercentage,
|
|
16161
|
+
unit: "%"
|
|
16162
|
+
}, {
|
|
16163
|
+
label: "Institutional rebate amount",
|
|
16164
|
+
value: infrastructureChargeDetail.institutionalRebateAmount,
|
|
16165
|
+
currency: true
|
|
16166
|
+
}, {
|
|
16167
|
+
label: "Institutional rebate reason",
|
|
16168
|
+
value: t(infrastructureChargeDetail.institutionalRebateReason),
|
|
16169
|
+
isText: true
|
|
16170
|
+
}] : []), ...(infrastructureChargeDetail.dwellingRebateApplied ? [{
|
|
16171
|
+
label: "Dwelling rebate",
|
|
16172
|
+
value: infrastructureChargeDetail.dwellingRebatePercentage,
|
|
16173
|
+
unit: "%"
|
|
16159
16174
|
}, {
|
|
16175
|
+
label: "Dwelling rebate amount",
|
|
16176
|
+
value: infrastructureChargeDetail.dwellingRebateAmount,
|
|
16177
|
+
currency: true
|
|
16178
|
+
}, {
|
|
16179
|
+
label: "Dwelling rebate reason",
|
|
16180
|
+
value: t(infrastructureChargeDetail.dwellingRebateReason),
|
|
16181
|
+
isText: true
|
|
16182
|
+
}] : []), {
|
|
16160
16183
|
label: "Net IFC",
|
|
16161
16184
|
value: infrastructureChargeDetail.netIFC,
|
|
16162
16185
|
currency: true
|
|
@@ -17562,7 +17585,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
17562
17585
|
if (typeof window !== "undefined" && typeof window.isDocumentsVerified !== "undefined") {
|
|
17563
17586
|
return !window.isDocumentsVerified;
|
|
17564
17587
|
}
|
|
17565
|
-
return
|
|
17588
|
+
return true;
|
|
17566
17589
|
}),
|
|
17567
17590
|
isSubmitDisabled = _React$useState[0],
|
|
17568
17591
|
setIsSubmitDisabled = _React$useState[1];
|
|
@@ -17575,7 +17598,10 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
17575
17598
|
};
|
|
17576
17599
|
if (typeof window !== "undefined") {
|
|
17577
17600
|
window.addEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
|
|
17578
|
-
return () =>
|
|
17601
|
+
return () => {
|
|
17602
|
+
window.removeEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
|
|
17603
|
+
delete window.isDocumentsVerified;
|
|
17604
|
+
};
|
|
17579
17605
|
}
|
|
17580
17606
|
}, []);
|
|
17581
17607
|
if (window.location.href.includes("/obps") || window.location.href.includes("/noc")) {
|
|
@@ -18748,7 +18774,6 @@ const PropertyLocationDetails = _ref => {
|
|
|
18748
18774
|
locality: localityCode,
|
|
18749
18775
|
streetName: addressData.street || "",
|
|
18750
18776
|
houseNo: addressData.houseNo || "",
|
|
18751
|
-
addressLine1: addressData.street || "",
|
|
18752
18777
|
latitude: lat,
|
|
18753
18778
|
longitude: lng,
|
|
18754
18779
|
zroLocation: zroCode,
|
|
@@ -18804,7 +18829,8 @@ const PropertyLocationDetails = _ref => {
|
|
|
18804
18829
|
isEdit: isEdit,
|
|
18805
18830
|
showMapActualLocation: true,
|
|
18806
18831
|
disable: isPropertyFound,
|
|
18807
|
-
hideNextButton: true
|
|
18832
|
+
hideNextButton: true,
|
|
18833
|
+
isVendor: props.isVendor
|
|
18808
18834
|
});
|
|
18809
18835
|
};
|
|
18810
18836
|
|