@mseva/digit-ui-module-ndc 1.0.21 → 1.0.22
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 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +26 -14
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12061,7 +12061,7 @@ function SelectNDCReason(_ref) {
|
|
|
12061
12061
|
}
|
|
12062
12062
|
|
|
12063
12063
|
const PropertyDetailsForm$1 = _ref => {
|
|
12064
|
-
var _formData$cpt, _formData$cpt$details, _formData$cpt3, _Digit, _Digit$ComponentRegis, _formData$
|
|
12064
|
+
var _formData$cpt, _formData$cpt$details, _formData$cpt3, _Digit, _Digit$ComponentRegis, _formData$cpt6, _formData$cpt6$detail, _formData$cpt7, _apiDataCheck$6, _propertyDetails$wate, _propertyDetails$sewe;
|
|
12065
12065
|
const fetchBill = function (bussinessService, consumercodes, index) {
|
|
12066
12066
|
try {
|
|
12067
12067
|
if (bussinessService === "WS") {
|
|
@@ -12453,12 +12453,23 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12453
12453
|
}));
|
|
12454
12454
|
}
|
|
12455
12455
|
}, [apiDataCheck]);
|
|
12456
|
+
React.useEffect(() => {
|
|
12457
|
+
var _formData$cpt4, _formData$cpt4$detail;
|
|
12458
|
+
if (formData !== null && formData !== void 0 && (_formData$cpt4 = formData.cpt) !== null && _formData$cpt4 !== void 0 && (_formData$cpt4$detail = _formData$cpt4.details) !== null && _formData$cpt4$detail !== void 0 && _formData$cpt4$detail.owners) {
|
|
12459
|
+
var _formData$cpt5, _formData$cpt5$detail, _formData$cpt5$detail2, _formData$cpt5$detail3;
|
|
12460
|
+
const formDataEmail = formData === null || formData === void 0 ? void 0 : (_formData$cpt5 = formData.cpt) === null || _formData$cpt5 === void 0 ? void 0 : (_formData$cpt5$detail = _formData$cpt5.details) === null || _formData$cpt5$detail === void 0 ? void 0 : (_formData$cpt5$detail2 = _formData$cpt5$detail.owners) === null || _formData$cpt5$detail2 === void 0 ? void 0 : (_formData$cpt5$detail3 = _formData$cpt5$detail2[0]) === null || _formData$cpt5$detail3 === void 0 ? void 0 : _formData$cpt5$detail3.emailId;
|
|
12461
|
+
setValue("email", formDataEmail);
|
|
12462
|
+
setPropertyDetails(prev => _extends({}, prev, {
|
|
12463
|
+
email: formDataEmail
|
|
12464
|
+
}));
|
|
12465
|
+
}
|
|
12466
|
+
}, [formData === null || formData === void 0 ? void 0 : (_formData$cpt6 = formData.cpt) === null || _formData$cpt6 === void 0 ? void 0 : (_formData$cpt6$detail = _formData$cpt6.details) === null || _formData$cpt6$detail === void 0 ? void 0 : _formData$cpt6$detail.owners]);
|
|
12456
12467
|
console.log("propertyDetails====", propertyDetails, formData);
|
|
12457
12468
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12458
12469
|
style: {
|
|
12459
12470
|
marginBottom: "16px"
|
|
12460
12471
|
}
|
|
12461
|
-
}, ((formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12472
|
+
}, ((formData === null || formData === void 0 ? void 0 : (_formData$cpt7 = formData.cpt) === null || _formData$cpt7 === void 0 ? void 0 : _formData$cpt7.details) || (apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$6 = apiDataCheck[0]) === null || _apiDataCheck$6 === void 0 ? void 0 : _apiDataCheck$6.NdcDetails)) && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, {
|
|
12462
12473
|
style: {
|
|
12463
12474
|
marginTop: "40px"
|
|
12464
12475
|
}
|
|
@@ -12689,7 +12700,7 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12689
12700
|
}
|
|
12690
12701
|
},
|
|
12691
12702
|
render: props => {
|
|
12692
|
-
var _formData$
|
|
12703
|
+
var _formData$cpt8, _formData$cpt8$detail, _formData$cpt8$detail2, _formData$cpt8$detail3, _formData$cpt8$detail4, _formData$cpt8$detail5, _formData$cpt8$detail6;
|
|
12693
12704
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
12694
12705
|
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.firstName) || "",
|
|
12695
12706
|
onChange: e => {
|
|
@@ -12701,7 +12712,7 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12701
12712
|
onBlur: e => {
|
|
12702
12713
|
props.onBlur(e);
|
|
12703
12714
|
},
|
|
12704
|
-
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12715
|
+
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$cpt8 = formData.cpt) === null || _formData$cpt8 === void 0 ? void 0 : (_formData$cpt8$detail = _formData$cpt8.details) === null || _formData$cpt8$detail === void 0 ? void 0 : (_formData$cpt8$detail2 = _formData$cpt8$detail.owners) === null || _formData$cpt8$detail2 === void 0 ? void 0 : (_formData$cpt8$detail3 = _formData$cpt8$detail2[0]) === null || _formData$cpt8$detail3 === void 0 ? void 0 : (_formData$cpt8$detail4 = _formData$cpt8$detail3.name) === null || _formData$cpt8$detail4 === void 0 ? void 0 : (_formData$cpt8$detail5 = _formData$cpt8$detail4.split(" ")) === null || _formData$cpt8$detail5 === void 0 ? void 0 : (_formData$cpt8$detail6 = _formData$cpt8$detail5[0]) === null || _formData$cpt8$detail6 === void 0 ? void 0 : _formData$cpt8$detail6.length) > 0
|
|
12705
12716
|
});
|
|
12706
12717
|
}
|
|
12707
12718
|
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
@@ -12719,7 +12730,7 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12719
12730
|
}
|
|
12720
12731
|
},
|
|
12721
12732
|
render: props => {
|
|
12722
|
-
var _formData$
|
|
12733
|
+
var _formData$cpt9, _formData$cpt9$detail, _formData$cpt9$detail2, _formData$cpt9$detail3, _formData$cpt9$detail4, _formData$cpt9$detail5, _formData$cpt9$detail6;
|
|
12723
12734
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
12724
12735
|
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.lastName) || "",
|
|
12725
12736
|
onChange: e => {
|
|
@@ -12731,7 +12742,7 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12731
12742
|
onBlur: e => {
|
|
12732
12743
|
props.onBlur(e);
|
|
12733
12744
|
},
|
|
12734
|
-
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12745
|
+
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$cpt9 = formData.cpt) === null || _formData$cpt9 === void 0 ? void 0 : (_formData$cpt9$detail = _formData$cpt9.details) === null || _formData$cpt9$detail === void 0 ? void 0 : (_formData$cpt9$detail2 = _formData$cpt9$detail.owners) === null || _formData$cpt9$detail2 === void 0 ? void 0 : (_formData$cpt9$detail3 = _formData$cpt9$detail2[0]) === null || _formData$cpt9$detail3 === void 0 ? void 0 : (_formData$cpt9$detail4 = _formData$cpt9$detail3.name) === null || _formData$cpt9$detail4 === void 0 ? void 0 : (_formData$cpt9$detail5 = _formData$cpt9$detail4.split(" ")) === null || _formData$cpt9$detail5 === void 0 ? void 0 : (_formData$cpt9$detail6 = _formData$cpt9$detail5[1]) === null || _formData$cpt9$detail6 === void 0 ? void 0 : _formData$cpt9$detail6.length) > 0
|
|
12735
12746
|
});
|
|
12736
12747
|
}
|
|
12737
12748
|
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
@@ -12741,9 +12752,9 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12741
12752
|
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
12742
12753
|
control: control,
|
|
12743
12754
|
name: "email",
|
|
12744
|
-
defaultValue:
|
|
12755
|
+
defaultValue: propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.email,
|
|
12745
12756
|
render: props => {
|
|
12746
|
-
var _formData$
|
|
12757
|
+
var _formData$cpt0, _formData$cpt0$detail, _formData$cpt0$detail2, _formData$cpt0$detail3;
|
|
12747
12758
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
12748
12759
|
value: props === null || props === void 0 ? void 0 : props.value,
|
|
12749
12760
|
onChange: e => {
|
|
@@ -12755,7 +12766,7 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12755
12766
|
onBlur: e => {
|
|
12756
12767
|
props.onBlur(e);
|
|
12757
12768
|
},
|
|
12758
|
-
disabled: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12769
|
+
disabled: formData === null || formData === void 0 ? void 0 : (_formData$cpt0 = formData.cpt) === null || _formData$cpt0 === void 0 ? void 0 : (_formData$cpt0$detail = _formData$cpt0.details) === null || _formData$cpt0$detail === void 0 ? void 0 : (_formData$cpt0$detail2 = _formData$cpt0$detail.owners) === null || _formData$cpt0$detail2 === void 0 ? void 0 : (_formData$cpt0$detail3 = _formData$cpt0$detail2[0]) === null || _formData$cpt0$detail3 === void 0 ? void 0 : _formData$cpt0$detail3.emailId
|
|
12759
12770
|
});
|
|
12760
12771
|
}
|
|
12761
12772
|
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
@@ -12787,7 +12798,7 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12787
12798
|
name: "address",
|
|
12788
12799
|
defaultValue: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address) || "",
|
|
12789
12800
|
render: props => {
|
|
12790
|
-
var _formData$
|
|
12801
|
+
var _formData$cpt1, _formData$cpt1$detail, _formData$cpt1$detail2, _formData$cpt1$detail3, _formData$cpt1$detail4;
|
|
12791
12802
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
12792
12803
|
value: propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address,
|
|
12793
12804
|
onChange: e => {
|
|
@@ -12799,7 +12810,7 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12799
12810
|
onBlur: e => {
|
|
12800
12811
|
props.onBlur(e);
|
|
12801
12812
|
},
|
|
12802
|
-
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12813
|
+
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$cpt1 = formData.cpt) === null || _formData$cpt1 === void 0 ? void 0 : (_formData$cpt1$detail = _formData$cpt1.details) === null || _formData$cpt1$detail === void 0 ? void 0 : (_formData$cpt1$detail2 = _formData$cpt1$detail.owners) === null || _formData$cpt1$detail2 === void 0 ? void 0 : (_formData$cpt1$detail3 = _formData$cpt1$detail2[0]) === null || _formData$cpt1$detail3 === void 0 ? void 0 : (_formData$cpt1$detail4 = _formData$cpt1$detail3.permanentAddress) === null || _formData$cpt1$detail4 === void 0 ? void 0 : _formData$cpt1$detail4.length) > 0
|
|
12803
12814
|
});
|
|
12804
12815
|
}
|
|
12805
12816
|
})))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
@@ -12840,14 +12851,14 @@ const getAddress = (address, t) => {
|
|
|
12840
12851
|
return (address !== null && address !== void 0 && address.doorNo ? (address === null || address === void 0 ? void 0 : address.doorNo) + ", " : "") + " " + (address !== null && address !== void 0 && address.street ? (address === null || address === void 0 ? void 0 : address.street) + ", " : "") + (address !== null && address !== void 0 && address.landmark ? (address === null || address === void 0 ? void 0 : address.landmark) + ", " : "") + t(Digit.Utils.pt.getMohallaLocale(address === null || address === void 0 ? void 0 : address.locality.code, address === null || address === void 0 ? void 0 : address.tenantId)) + ", " + t(Digit.Utils.pt.getCityLocale(address === null || address === void 0 ? void 0 : address.tenantId)) + (address !== null && address !== void 0 && address.pincode && t(address === null || address === void 0 ? void 0 : address.pincode) ? ", " + address.pincode : " ");
|
|
12841
12852
|
};
|
|
12842
12853
|
const PropertySearchNSummary = _ref => {
|
|
12843
|
-
var _apiDataCheck$, _apiDataCheck$$NdcDet, _formData$cpt, _formData$cpt2, _propertyDetails$Prop3, _apiDataCheck$2;
|
|
12854
|
+
var _apiDataCheck$, _apiDataCheck$$NdcDet, _formData$cpt, _formData$cpt2, _propertyDetails$Prop3, _apiDataCheck$2, _formData$cpt12, _formData$cpt12$dues;
|
|
12844
12855
|
const fetchBill = function () {
|
|
12845
12856
|
try {
|
|
12846
12857
|
const _temp = _catch(function () {
|
|
12847
|
-
var _formData$
|
|
12858
|
+
var _formData$cpt13;
|
|
12848
12859
|
return Promise.resolve(Digit.PaymentService.fetchBill(tenantId, {
|
|
12849
12860
|
businessService: "PT",
|
|
12850
|
-
consumerCode: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12861
|
+
consumerCode: formData === null || formData === void 0 ? void 0 : (_formData$cpt13 = formData.cpt) === null || _formData$cpt13 === void 0 ? void 0 : _formData$cpt13.id
|
|
12851
12862
|
})).then(function (result) {
|
|
12852
12863
|
var _result$Bill;
|
|
12853
12864
|
if ((result === null || result === void 0 ? void 0 : (_result$Bill = result.Bill) === null || _result$Bill === void 0 ? void 0 : _result$Bill.length) > 0) {
|
|
@@ -13156,13 +13167,13 @@ const PropertySearchNSummary = _ref => {
|
|
|
13156
13167
|
style: {
|
|
13157
13168
|
color: "white",
|
|
13158
13169
|
width: "100%",
|
|
13159
|
-
maxWidth: "
|
|
13170
|
+
maxWidth: "190px"
|
|
13160
13171
|
},
|
|
13161
13172
|
onClick: () => {
|
|
13162
13173
|
redirectToPayBill();
|
|
13163
13174
|
setPayDuesButton(false);
|
|
13164
13175
|
}
|
|
13165
|
-
}, "" +
|
|
13176
|
+
}, t("PAY_DUES") + " (Rs." + (formData === null || formData === void 0 ? void 0 : (_formData$cpt12 = formData.cpt) === null || _formData$cpt12 === void 0 ? void 0 : (_formData$cpt12$dues = _formData$cpt12.dues) === null || _formData$cpt12$dues === void 0 ? void 0 : _formData$cpt12$dues.totalAmount) + ")"), getNoDue && /*#__PURE__*/React__default.createElement("div", {
|
|
13166
13177
|
style: {
|
|
13167
13178
|
color: "green",
|
|
13168
13179
|
width: "100%",
|