@mseva/upyog-ui-module-chb 1.1.3 → 1.1.4
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 +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48050,9 +48050,11 @@ const CHBCitizenDetailsNew = _ref => {
|
|
|
48050
48050
|
var _currentStepData$venu3;
|
|
48051
48051
|
const formattedData = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$venu3 = currentStepData.venueDetails) === null || _currentStepData$venu3 === void 0 ? void 0 : _currentStepData$venu3[0];
|
|
48052
48052
|
if (formattedData) {
|
|
48053
|
-
var _formattedData$addres, _formattedData$applic;
|
|
48053
|
+
var _formattedData$addres, _formattedData$applic, _formattedData$applic2, _formattedData$applic3;
|
|
48054
48054
|
setValue("address", formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$addres = formattedData.address) === null || _formattedData$addres === void 0 ? void 0 : _formattedData$addres.addressLine1);
|
|
48055
48055
|
setValue("emailId", formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$applic = formattedData.applicantDetail) === null || _formattedData$applic === void 0 ? void 0 : _formattedData$applic.applicantEmailId);
|
|
48056
|
+
setValue("mobileNumber", formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$applic2 = formattedData.applicantDetail) === null || _formattedData$applic2 === void 0 ? void 0 : _formattedData$applic2.applicantMobileNo);
|
|
48057
|
+
setValue("name", formattedData === null || formattedData === void 0 ? void 0 : (_formattedData$applic3 = formattedData.applicantDetail) === null || _formattedData$applic3 === void 0 ? void 0 : _formattedData$applic3.applicantName);
|
|
48056
48058
|
}
|
|
48057
48059
|
}, [currentStepData, setValue]);
|
|
48058
48060
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("form", {
|
|
@@ -49023,6 +49025,14 @@ const CHBResponseCitizen = props => {
|
|
|
49023
49025
|
const onGoToCHB = () => {
|
|
49024
49026
|
if (isCitizen) history.push("/digit-ui/citizen/chb-home");else history.push("/digit-ui/employee/chb/inbox");
|
|
49025
49027
|
};
|
|
49028
|
+
const handleMakePayment = function () {
|
|
49029
|
+
try {
|
|
49030
|
+
if (isCitizen) history.push("/digit-ui/citizen/payment/collect/chb-services/" + ndcCode + "/" + tenantId + "?tenantId=" + tenantId);else history.push("/digit-ui/employee/payment/collect/chb-services/" + ndcCode + "/" + tenantId + "?tenantId=" + tenantId);
|
|
49031
|
+
return Promise.resolve();
|
|
49032
|
+
} catch (e) {
|
|
49033
|
+
return Promise.reject(e);
|
|
49034
|
+
}
|
|
49035
|
+
};
|
|
49026
49036
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Banner, {
|
|
49027
49037
|
message: t("CHB_APPLICATION_CREATED"),
|
|
49028
49038
|
applicationNumber: ndcCode,
|
|
@@ -49048,6 +49058,9 @@ const CHBResponseCitizen = props => {
|
|
|
49048
49058
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
49049
49059
|
label: t("CORE_COMMON_GO_TO_CHB"),
|
|
49050
49060
|
onSubmit: onGoToCHB
|
|
49061
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
49062
|
+
label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
|
|
49063
|
+
onSubmit: handleMakePayment
|
|
49051
49064
|
}))));
|
|
49052
49065
|
};
|
|
49053
49066
|
|