@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.modern.js
CHANGED
|
@@ -14323,9 +14323,9 @@ function PropertyDocuments(_ref) {
|
|
|
14323
14323
|
var _document$values;
|
|
14324
14324
|
document === null || document === void 0 ? void 0 : (_document$values = document.values) === null || _document$values === void 0 ? void 0 : _document$values.forEach(value => {
|
|
14325
14325
|
if (!value.isPhoto) {
|
|
14326
|
-
var _ref2, _checkedMap$value$
|
|
14326
|
+
var _ref2, _checkedMap$value$fil, _value$originalDoc;
|
|
14327
14327
|
requiredDocsCount++;
|
|
14328
|
-
const isChecked = (_ref2 = (_checkedMap$value$
|
|
14328
|
+
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;
|
|
14329
14329
|
if (isChecked) {
|
|
14330
14330
|
checkedCount++;
|
|
14331
14331
|
}
|
|
@@ -14569,7 +14569,7 @@ function PropertyDocuments(_ref) {
|
|
|
14569
14569
|
style: {
|
|
14570
14570
|
cursor: "pointer"
|
|
14571
14571
|
}
|
|
14572
|
-
}, /*#__PURE__*/React.createElement(ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$
|
|
14572
|
+
}, /*#__PURE__*/React.createElement(ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$fil2, _value$originalDoc2, _value$originalDoc3, _value$originalDoc4) => {
|
|
14573
14573
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
14574
14574
|
onClick: () => {
|
|
14575
14575
|
if (fileUrl) {
|
|
@@ -14611,7 +14611,7 @@ function PropertyDocuments(_ref) {
|
|
|
14611
14611
|
margin: 0
|
|
14612
14612
|
}
|
|
14613
14613
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14614
|
-
key: "chk-" + (value === null || value === void 0 ? void 0 :
|
|
14614
|
+
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),
|
|
14615
14615
|
type: "checkbox",
|
|
14616
14616
|
className: "verify-doc-checkbox",
|
|
14617
14617
|
style: {
|
|
@@ -14621,16 +14621,15 @@ function PropertyDocuments(_ref) {
|
|
|
14621
14621
|
cursor: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" ? "not-allowed" : "pointer"
|
|
14622
14622
|
},
|
|
14623
14623
|
disabled: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION",
|
|
14624
|
-
defaultChecked: value === null || value === void 0 ? void 0 : (_value$
|
|
14624
|
+
defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc4 = value.originalDoc) === null || _value$originalDoc4 === void 0 ? void 0 : _value$originalDoc4.isVerified,
|
|
14625
14625
|
onChange: e => {
|
|
14626
|
-
var _value$originalDoc8;
|
|
14627
14626
|
const checked = e.target.checked;
|
|
14628
14627
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
14629
14628
|
value.originalDoc.isVerified = checked;
|
|
14630
14629
|
}
|
|
14631
|
-
if (value !== null && value !== void 0 &&
|
|
14630
|
+
if (value !== null && value !== void 0 && value.fileStoreId) {
|
|
14632
14631
|
setCheckedMap(prev => _extends({}, prev, {
|
|
14633
|
-
[value.
|
|
14632
|
+
[value.fileStoreId]: checked
|
|
14634
14633
|
}));
|
|
14635
14634
|
}
|
|
14636
14635
|
}
|
|
@@ -16145,7 +16144,7 @@ const ViewBreakup = _ref => {
|
|
|
16145
16144
|
label: "Sewer Infra Charges",
|
|
16146
16145
|
value: infrastructureChargeDetail.sewerComponentIFC,
|
|
16147
16146
|
currency: true
|
|
16148
|
-
}, {
|
|
16147
|
+
}, ...(infrastructureChargeDetail.rebateAmount > 0 ? [{
|
|
16149
16148
|
label: "Rebate",
|
|
16150
16149
|
value: infrastructureChargeDetail.rebatePercentage,
|
|
16151
16150
|
unit: "%"
|
|
@@ -16153,7 +16152,31 @@ const ViewBreakup = _ref => {
|
|
|
16153
16152
|
label: "Rebate amount",
|
|
16154
16153
|
value: infrastructureChargeDetail.rebateAmount,
|
|
16155
16154
|
currency: true
|
|
16155
|
+
}] : []), ...(infrastructureChargeDetail.institutionalRebateApplied ? [{
|
|
16156
|
+
label: "Institutional rebate",
|
|
16157
|
+
value: infrastructureChargeDetail.institutionalRebatePercentage,
|
|
16158
|
+
unit: "%"
|
|
16159
|
+
}, {
|
|
16160
|
+
label: "Institutional rebate amount",
|
|
16161
|
+
value: infrastructureChargeDetail.institutionalRebateAmount,
|
|
16162
|
+
currency: true
|
|
16163
|
+
}, {
|
|
16164
|
+
label: "Institutional rebate reason",
|
|
16165
|
+
value: t(infrastructureChargeDetail.institutionalRebateReason),
|
|
16166
|
+
isText: true
|
|
16167
|
+
}] : []), ...(infrastructureChargeDetail.dwellingRebateApplied ? [{
|
|
16168
|
+
label: "Dwelling rebate",
|
|
16169
|
+
value: infrastructureChargeDetail.dwellingRebatePercentage,
|
|
16170
|
+
unit: "%"
|
|
16156
16171
|
}, {
|
|
16172
|
+
label: "Dwelling rebate amount",
|
|
16173
|
+
value: infrastructureChargeDetail.dwellingRebateAmount,
|
|
16174
|
+
currency: true
|
|
16175
|
+
}, {
|
|
16176
|
+
label: "Dwelling rebate reason",
|
|
16177
|
+
value: t(infrastructureChargeDetail.dwellingRebateReason),
|
|
16178
|
+
isText: true
|
|
16179
|
+
}] : []), {
|
|
16157
16180
|
label: "Net IFC",
|
|
16158
16181
|
value: infrastructureChargeDetail.netIFC,
|
|
16159
16182
|
currency: true
|
|
@@ -17559,7 +17582,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
17559
17582
|
if (typeof window !== "undefined" && typeof window.isDocumentsVerified !== "undefined") {
|
|
17560
17583
|
return !window.isDocumentsVerified;
|
|
17561
17584
|
}
|
|
17562
|
-
return
|
|
17585
|
+
return true;
|
|
17563
17586
|
}),
|
|
17564
17587
|
isSubmitDisabled = _React$useState[0],
|
|
17565
17588
|
setIsSubmitDisabled = _React$useState[1];
|
|
@@ -17572,7 +17595,10 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
17572
17595
|
};
|
|
17573
17596
|
if (typeof window !== "undefined") {
|
|
17574
17597
|
window.addEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
|
|
17575
|
-
return () =>
|
|
17598
|
+
return () => {
|
|
17599
|
+
window.removeEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
|
|
17600
|
+
delete window.isDocumentsVerified;
|
|
17601
|
+
};
|
|
17576
17602
|
}
|
|
17577
17603
|
}, []);
|
|
17578
17604
|
if (window.location.href.includes("/obps") || window.location.href.includes("/noc")) {
|
|
@@ -18745,7 +18771,6 @@ const PropertyLocationDetails = _ref => {
|
|
|
18745
18771
|
locality: localityCode,
|
|
18746
18772
|
streetName: addressData.street || "",
|
|
18747
18773
|
houseNo: addressData.houseNo || "",
|
|
18748
|
-
addressLine1: addressData.street || "",
|
|
18749
18774
|
latitude: lat,
|
|
18750
18775
|
longitude: lng,
|
|
18751
18776
|
zroLocation: zroCode,
|
|
@@ -18801,7 +18826,8 @@ const PropertyLocationDetails = _ref => {
|
|
|
18801
18826
|
isEdit: isEdit,
|
|
18802
18827
|
showMapActualLocation: true,
|
|
18803
18828
|
disable: isPropertyFound,
|
|
18804
|
-
hideNextButton: true
|
|
18829
|
+
hideNextButton: true,
|
|
18830
|
+
isVendor: props.isVendor
|
|
18805
18831
|
});
|
|
18806
18832
|
};
|
|
18807
18833
|
|