@mseva/digit-ui-module-ndc 1.0.22 → 1.0.23
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 +1 -14615
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +62 -127
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -8731,74 +8731,49 @@ function cleanEscapedString(input) {
|
|
|
8731
8731
|
const capitalize = text => text.substr(0, 1).toUpperCase() + text.substr(1);
|
|
8732
8732
|
const ulbCamel = ulb => ulb.toLowerCase().split(" ").map(capitalize).join(" ");
|
|
8733
8733
|
const getAcknowledgementData = async (application, tenantInfo, t) => {
|
|
8734
|
-
var _application$Applicat, _appData$owners,
|
|
8735
|
-
const appData = application === null || application === void 0 ? void 0 : (_application$Applicat = application.Applications) === null || _application$Applicat === void 0 ? void 0 : _application$Applicat[0];
|
|
8734
|
+
var _application$Applicat, _appData$owners, _appData$NdcDetails, _appData$additionalDe, _tenantInfo$city;
|
|
8735
|
+
const appData = (application === null || application === void 0 ? void 0 : (_application$Applicat = application.Applications) === null || _application$Applicat === void 0 ? void 0 : _application$Applicat[0]) || {};
|
|
8736
8736
|
const owner = (appData === null || appData === void 0 ? void 0 : (_appData$owners = appData.owners) === null || _appData$owners === void 0 ? void 0 : _appData$owners[0]) || {};
|
|
8737
|
+
const ndc = (appData === null || appData === void 0 ? void 0 : (_appData$NdcDetails = appData.NdcDetails) === null || _appData$NdcDetails === void 0 ? void 0 : _appData$NdcDetails[0]) || {};
|
|
8738
|
+
const add = (ndc === null || ndc === void 0 ? void 0 : ndc.additionalDetails) || {};
|
|
8739
|
+
const applicationNumber = (appData === null || appData === void 0 ? void 0 : appData.uuid) || "NA";
|
|
8740
|
+
const propertyId = (ndc === null || ndc === void 0 ? void 0 : ndc.consumerCode) || "NA";
|
|
8741
|
+
const propertyType = add !== null && add !== void 0 && add.propertyType ? t(add.propertyType) : "NA";
|
|
8742
|
+
const applicantName = (owner === null || owner === void 0 ? void 0 : owner.name) || "NA";
|
|
8743
|
+
const address = (owner === null || owner === void 0 ? void 0 : owner.permanentAddress) || (owner === null || owner === void 0 ? void 0 : owner.correspondenceAddress) || "NA";
|
|
8744
|
+
const ulbName = (tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.name) || (appData === null || appData === void 0 ? void 0 : appData.tenantId) || "NA";
|
|
8745
|
+
const duesAmount = (add === null || add === void 0 ? void 0 : add.duesAmount) || (appData === null || appData === void 0 ? void 0 : (_appData$additionalDe = appData.additionalDetails) === null || _appData$additionalDe === void 0 ? void 0 : _appData$additionalDe.duesAmount) || "0";
|
|
8746
|
+
const certificateBody = `${t("NDC_MSG_INTRO")}
|
|
8747
|
+
|
|
8748
|
+
${t("NDC_MSG_APPLICATION_LABEL")}: ${applicationNumber}
|
|
8749
|
+
|
|
8750
|
+
${t("NDC_MSG_PROPERTY_LABEL")}: ${propertyId} ${t("NDC_MSG_PROPERTY_TYPE_LABEL")} ${propertyType}
|
|
8751
|
+
|
|
8752
|
+
${t("NDC_MSG_APPLICANT_LABEL")}: ${applicantName} ${t("NDC_MSG_FOR_LAND")} ${address}
|
|
8753
|
+
|
|
8754
|
+
${t("NDC_MSG_FALLING_CLAUSE_PART1")} ${t("NDC_MSG_FALLING_CLAUSE_PART2")} ${ulbName} ${t("NDC_MSG_AFTER_RECOVERY")} ${duesAmount} ${t("NDC_MSG_DUES_LIST")}
|
|
8755
|
+
|
|
8756
|
+
${t("NDC_MSG_DECLARATION_TITLE")}
|
|
8757
|
+
${t("NDC_MSG_DECL_A")}
|
|
8758
|
+
${t("NDC_MSG_DECL_B")}
|
|
8759
|
+
${t("NDC_MSG_DECL_C")}
|
|
8760
|
+
${t("NDC_MSG_DECL_D")}
|
|
8761
|
+
${t("NDC_MSG_DECL_E")}
|
|
8762
|
+
|
|
8763
|
+
${t("NDC_MSG_DISCLAIMER_TITLE")}
|
|
8764
|
+
${t("NDC_MSG_DISCLAIMER_BODY")}
|
|
8765
|
+
|
|
8766
|
+
${t("NDC_MSG_NOTE")} ${t("NDC_MSG_VERIFICATION_LINK_LABEL")}`;
|
|
8737
8767
|
return {
|
|
8738
|
-
t
|
|
8768
|
+
t,
|
|
8739
8769
|
tenantId: tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.code,
|
|
8740
8770
|
name: `${t(tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.i18nKey)} ${ulbCamel(t(`ULBGRADE_${tenantInfo === null || tenantInfo === void 0 ? void 0 : (_tenantInfo$city = tenantInfo.city) === null || _tenantInfo$city === void 0 ? void 0 : _tenantInfo$city.ulbGrade.toUpperCase().replace(" ", "_").replace(".", "_")}`))}`,
|
|
8741
8771
|
email: tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.emailId,
|
|
8742
8772
|
phoneNumber: tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.contactNumber,
|
|
8743
8773
|
heading: t("NDC_CERTIFICATE"),
|
|
8744
|
-
applicationNumber
|
|
8774
|
+
applicationNumber,
|
|
8745
8775
|
details: [{
|
|
8746
|
-
|
|
8747
|
-
values: [{
|
|
8748
|
-
title: t("REGISTRATION_FILED_DATE"),
|
|
8749
|
-
value: Digit.DateUtils.ConvertTimestampToDate(appData === null || appData === void 0 ? void 0 : (_appData$auditDetails = appData.auditDetails) === null || _appData$auditDetails === void 0 ? void 0 : _appData$auditDetails.createdTime, "dd/MM/yyyy") || "NA"
|
|
8750
|
-
}, {
|
|
8751
|
-
title: t("NDC_REASON"),
|
|
8752
|
-
value: (appData === null || appData === void 0 ? void 0 : appData.reason) || "NA"
|
|
8753
|
-
}]
|
|
8754
|
-
}, {
|
|
8755
|
-
title: t("NDC_LICENSE_DETAILS_LABEL"),
|
|
8756
|
-
values: [{
|
|
8757
|
-
title: t("NDC_LICENSE_TYPE"),
|
|
8758
|
-
value: t(appData === null || appData === void 0 ? void 0 : (_appData$NdcDetails = appData.NdcDetails) === null || _appData$NdcDetails === void 0 ? void 0 : (_appData$NdcDetails$ = _appData$NdcDetails[0]) === null || _appData$NdcDetails$ === void 0 ? void 0 : (_appData$NdcDetails$$ = _appData$NdcDetails$.additionalDetails) === null || _appData$NdcDetails$$ === void 0 ? void 0 : _appData$NdcDetails$$.propertyType) || "NA"
|
|
8759
|
-
}, {
|
|
8760
|
-
title: t("NDC_COUNCIL_NUMBER"),
|
|
8761
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$NdcDetails2 = appData.NdcDetails) === null || _appData$NdcDetails2 === void 0 ? void 0 : (_appData$NdcDetails2$ = _appData$NdcDetails2[0]) === null || _appData$NdcDetails2$ === void 0 ? void 0 : _appData$NdcDetails2$.consumerCode) || "NA"
|
|
8762
|
-
}, {
|
|
8763
|
-
title: t("NDC_TRADE_TYPE_LABEL"),
|
|
8764
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$NdcDetails3 = appData.NdcDetails) === null || _appData$NdcDetails3 === void 0 ? void 0 : (_appData$NdcDetails3$ = _appData$NdcDetails3[0]) === null || _appData$NdcDetails3$ === void 0 ? void 0 : _appData$NdcDetails3$.businessService) || "NA"
|
|
8765
|
-
}, {
|
|
8766
|
-
title: t("NDC_QUALIFICATION_TYPE"),
|
|
8767
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$additionalDe = appData.additionalDetails) === null || _appData$additionalDe === void 0 ? void 0 : _appData$additionalDe.qualificationType) || "NA"
|
|
8768
|
-
}]
|
|
8769
|
-
}, {
|
|
8770
|
-
title: t("NDC_LICENSEE_DETAILS_HEADER_OWNER_INFO"),
|
|
8771
|
-
values: [{
|
|
8772
|
-
title: t("NDC_APPLICANT_NAME_LABEL"),
|
|
8773
|
-
value: (owner === null || owner === void 0 ? void 0 : owner.name) || "NA"
|
|
8774
|
-
}, {
|
|
8775
|
-
title: t("NDC_OWNER_MOBILE_NO_LABEL"),
|
|
8776
|
-
value: (owner === null || owner === void 0 ? void 0 : owner.mobileNumber) || "NA"
|
|
8777
|
-
}, {
|
|
8778
|
-
title: t("NDC_APPLICANT_GENDER_LABEL"),
|
|
8779
|
-
value: owner !== null && owner !== void 0 && owner.gender ? t(owner.gender) : "NA"
|
|
8780
|
-
}, {
|
|
8781
|
-
title: t("NDC_APPLICANT_EMAIL_LABEL"),
|
|
8782
|
-
value: (owner === null || owner === void 0 ? void 0 : owner.emailId) || "NA"
|
|
8783
|
-
}, {
|
|
8784
|
-
title: t("NDC_APPLICANT_DOB_LABEL"),
|
|
8785
|
-
value: owner !== null && owner !== void 0 && owner.dob ? Digit.DateUtils.ConvertTimestampToDate(owner.dob, "dd/MM/yyyy") : "NA"
|
|
8786
|
-
}]
|
|
8787
|
-
}, {
|
|
8788
|
-
title: t("NDC_NEW_ADDRESS_HEADER_DETAILS"),
|
|
8789
|
-
values: [{
|
|
8790
|
-
title: t("NDC_PERMANANT_ADDRESS_LABEL"),
|
|
8791
|
-
value: (owner === null || owner === void 0 ? void 0 : owner.permanentAddress) || "NA"
|
|
8792
|
-
}, {
|
|
8793
|
-
title: t("NDC_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL"),
|
|
8794
|
-
value: (owner === null || owner === void 0 ? void 0 : owner.correspondenceAddress) || "NA"
|
|
8795
|
-
}, {
|
|
8796
|
-
title: t("NDC_PINCODE_LABEL"),
|
|
8797
|
-
value: (owner === null || owner === void 0 ? void 0 : owner.permanentPinCode) || (owner === null || owner === void 0 ? void 0 : owner.correspondencePinCode) || "NA"
|
|
8798
|
-
}, {
|
|
8799
|
-
title: t("NDC_SELECT_ULB"),
|
|
8800
|
-
value: (tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.name) || (appData === null || appData === void 0 ? void 0 : appData.tenantId) || "NA"
|
|
8801
|
-
}]
|
|
8776
|
+
value: certificateBody
|
|
8802
8777
|
}]
|
|
8803
8778
|
};
|
|
8804
8779
|
};
|
|
@@ -8841,14 +8816,13 @@ const getTimelineCaptions$1 = (checkpoint, index, arr, t) => {
|
|
|
8841
8816
|
}, caption.date && /*#__PURE__*/React.createElement("p", null, caption.date), caption.name && /*#__PURE__*/React.createElement("p", null, caption.name), caption.mobileNumber , caption.source && /*#__PURE__*/React.createElement("p", null, t("ES_COMMON_FILED_VIA_" + caption.source.toUpperCase()))));
|
|
8842
8817
|
};
|
|
8843
8818
|
const CitizenApplicationOverview = () => {
|
|
8844
|
-
var _user, _user$info, _user$info$roles, _applicationDetails$A3, _applicationDetails$A4,
|
|
8819
|
+
var _user, _user$info, _user$info$roles, _applicationDetails$A3, _applicationDetails$A4, _Object$entries, _displayData$NdcDetai, _displayData$Document, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5;
|
|
8845
8820
|
const {
|
|
8846
8821
|
id
|
|
8847
8822
|
} = useParams();
|
|
8848
8823
|
const {
|
|
8849
8824
|
t
|
|
8850
8825
|
} = useTranslation();
|
|
8851
|
-
const history = useHistory();
|
|
8852
8826
|
const tenantId = window.localStorage.getItem("CITIZEN.CITY");
|
|
8853
8827
|
const state = tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0];
|
|
8854
8828
|
const [appDetails, setAppDetails] = useState({});
|
|
@@ -8928,6 +8902,7 @@ const CitizenApplicationOverview = () => {
|
|
|
8928
8902
|
}
|
|
8929
8903
|
}, [applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.Applications]);
|
|
8930
8904
|
useEffect(() => {
|
|
8905
|
+
console.log("applicationDetails", applicationDetails);
|
|
8931
8906
|
if (applicationDetails) {
|
|
8932
8907
|
setIsDetailsLoading(true);
|
|
8933
8908
|
setAppDetails({
|
|
@@ -8941,9 +8916,12 @@ const CitizenApplicationOverview = () => {
|
|
|
8941
8916
|
}, [applicationDetails]);
|
|
8942
8917
|
const handleDownloadPdf = async () => {
|
|
8943
8918
|
const Property = applicationDetails;
|
|
8919
|
+
console.log("applicationDetails in StakeholderAck", applicationDetails);
|
|
8920
|
+
console.log("tenants", tenants);
|
|
8944
8921
|
const tenantInfo = tenants === null || tenants === void 0 ? void 0 : tenants.find(tenant => (tenant === null || tenant === void 0 ? void 0 : tenant.code) === (Property === null || Property === void 0 ? void 0 : Property.tenantId));
|
|
8945
8922
|
const acknowledgementData = await getAcknowledgementData(Property, tenantInfo, t);
|
|
8946
|
-
|
|
8923
|
+
console.log("acknowledgementData", acknowledgementData);
|
|
8924
|
+
Digit.Utils.pdf.generateNDC(acknowledgementData);
|
|
8947
8925
|
};
|
|
8948
8926
|
if (isLoading || isDetailsLoading) {
|
|
8949
8927
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
@@ -8961,18 +8939,11 @@ const CitizenApplicationOverview = () => {
|
|
|
8961
8939
|
className: "downLoadButton",
|
|
8962
8940
|
label: t("DOWNLOAD_CERTIFICATE"),
|
|
8963
8941
|
onClick: handleDownloadPdf
|
|
8964
|
-
})
|
|
8965
|
-
label: t("COMMON_EDIT"),
|
|
8966
|
-
onSubmit: () => {
|
|
8967
|
-
var _applicationDetails$A7, _applicationDetails$A8;
|
|
8968
|
-
const id = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A7 = applicationDetails.Applications) === null || _applicationDetails$A7 === void 0 ? void 0 : (_applicationDetails$A8 = _applicationDetails$A7[0]) === null || _applicationDetails$A8 === void 0 ? void 0 : _applicationDetails$A8.uuid;
|
|
8969
|
-
history.push(`/digit-ui/citizen/ndc/new-application/${id}`);
|
|
8970
|
-
}
|
|
8971
|
-
}))), /*#__PURE__*/React.createElement(Card, {
|
|
8942
|
+
})), /*#__PURE__*/React.createElement(Card, {
|
|
8972
8943
|
className: "ndc_card_main"
|
|
8973
8944
|
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
8974
8945
|
className: "ndc_label"
|
|
8975
|
-
}, t("NDC_APPLICATION_DETAILS_OVERVIEW")), /*#__PURE__*/React.createElement(StatusTable, null, (displayData === null || displayData === void 0 ? void 0 : displayData.applicantData) && ((_Object$entries = Object.entries(displayData === null || displayData === void 0 ? void 0 : displayData.applicantData)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(([key, value]) => /*#__PURE__*/React.createElement(Row, {
|
|
8946
|
+
}, t("NDC_APPLICATION_DETAILS_OVERVIEW")), /*#__PURE__*/React.createElement(StatusTable, null, console.log("displayData?.applicantData", displayData === null || displayData === void 0 ? void 0 : displayData.applicantData), (displayData === null || displayData === void 0 ? void 0 : displayData.applicantData) && ((_Object$entries = Object.entries(displayData === null || displayData === void 0 ? void 0 : displayData.applicantData)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(([key, value]) => /*#__PURE__*/React.createElement(Row, {
|
|
8976
8947
|
key: key,
|
|
8977
8948
|
label: t(`${key === null || key === void 0 ? void 0 : key.toUpperCase()}`),
|
|
8978
8949
|
text: Array.isArray(value) ? value.map(item => typeof item === "object" ? t((item === null || item === void 0 ? void 0 : item.code) || "N/A") : t(item || "N/A")).join(", ") : typeof value === "object" ? t((value === null || value === void 0 ? void 0 : value.code) || "N/A") : t(value || "N/A")
|
|
@@ -11544,29 +11515,10 @@ const NewNDCStepForm = () => {
|
|
|
11544
11515
|
const formState = useSelector(state => state.ndc.NDCForm);
|
|
11545
11516
|
const step = formState.step;
|
|
11546
11517
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
11547
|
-
const id = window.location.pathname.split("/").pop();
|
|
11548
|
-
const {
|
|
11549
|
-
isLoading,
|
|
11550
|
-
data: applicationDetails
|
|
11551
|
-
} = Digit.Hooks.ndc.useSearchEmployeeApplication({
|
|
11552
|
-
uuid: id
|
|
11553
|
-
}, tenantId);
|
|
11554
|
-
useEffect(() => {
|
|
11555
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && applicationDetails.Applications.length) {
|
|
11556
|
-
dispatch(updateNDCForm("responseData", applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.Applications));
|
|
11557
|
-
}
|
|
11558
|
-
}, [applicationDetails]);
|
|
11559
11518
|
const setStep = updatedStepNumber => {
|
|
11560
11519
|
dispatch(setNDCStep(updatedStepNumber));
|
|
11561
11520
|
};
|
|
11562
11521
|
const handleSubmit = () => {};
|
|
11563
|
-
useEffect(() => {
|
|
11564
|
-
const unlisten = history.listen(() => {
|
|
11565
|
-
console.log("route changes guys");
|
|
11566
|
-
dispatch(resetNDCForm());
|
|
11567
|
-
});
|
|
11568
|
-
return () => unlisten();
|
|
11569
|
-
}, [history, dispatch]);
|
|
11570
11522
|
return /*#__PURE__*/React.createElement("div", {
|
|
11571
11523
|
className: "pageCard"
|
|
11572
11524
|
}, /*#__PURE__*/React.createElement(CardHeader, {
|
|
@@ -11753,7 +11705,7 @@ const NewNDCStepFormOne = ({
|
|
|
11753
11705
|
if (!(propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.email)) missingFields.push(t("NDC_MESSAGE_EMAIL"));
|
|
11754
11706
|
if (!(NDCReason !== null && NDCReason !== void 0 && NDCReason.code)) missingFields.push(t("NDC_MESSAGE_NDC_REASON"));
|
|
11755
11707
|
const nameRegex = /^[A-Za-z\s]+$/;
|
|
11756
|
-
const emailRegex = /^[
|
|
11708
|
+
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
11757
11709
|
const mobileRegex = /^[6-9]\d{9}$/;
|
|
11758
11710
|
if (propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.firstName && !nameRegex.test(propertyDetails.firstName)) {
|
|
11759
11711
|
invalidFields.push(t("NDC_MESSAGE_FIRST_NAME_ONLY_ALPHABETS_ALLOWED"));
|
|
@@ -11912,7 +11864,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
11912
11864
|
formState,
|
|
11913
11865
|
clearErrors
|
|
11914
11866
|
}) => {
|
|
11915
|
-
var _formData$cpt, _formData$cpt$details, _formData$cpt3, _Digit, _Digit$ComponentRegis, _formData$
|
|
11867
|
+
var _formData$cpt, _formData$cpt$details, _formData$cpt3, _Digit, _Digit$ComponentRegis, _formData$cpt4, _apiDataCheck$6, _propertyDetails$wate, _propertyDetails$sewe;
|
|
11916
11868
|
const {
|
|
11917
11869
|
control,
|
|
11918
11870
|
formState: localFormState,
|
|
@@ -12323,24 +12275,11 @@ const PropertyDetailsForm$1 = ({
|
|
|
12323
12275
|
}));
|
|
12324
12276
|
}
|
|
12325
12277
|
}, [apiDataCheck]);
|
|
12326
|
-
useEffect(() => {
|
|
12327
|
-
var _formData$cpt4, _formData$cpt4$detail;
|
|
12328
|
-
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) {
|
|
12329
|
-
var _formData$cpt5, _formData$cpt5$detail, _formData$cpt5$detail2, _formData$cpt5$detail3;
|
|
12330
|
-
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;
|
|
12331
|
-
setValue("email", formDataEmail);
|
|
12332
|
-
setPropertyDetails(prev => ({
|
|
12333
|
-
...prev,
|
|
12334
|
-
email: formDataEmail
|
|
12335
|
-
}));
|
|
12336
|
-
}
|
|
12337
|
-
}, [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]);
|
|
12338
|
-
console.log("propertyDetails====", propertyDetails, formData);
|
|
12339
12278
|
return /*#__PURE__*/React.createElement("div", {
|
|
12340
12279
|
style: {
|
|
12341
12280
|
marginBottom: "16px"
|
|
12342
12281
|
}
|
|
12343
|
-
}, ((formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12282
|
+
}, ((formData === null || formData === void 0 ? void 0 : (_formData$cpt4 = formData.cpt) === null || _formData$cpt4 === void 0 ? void 0 : _formData$cpt4.details) || (apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$6 = apiDataCheck[0]) === null || _apiDataCheck$6 === void 0 ? void 0 : _apiDataCheck$6.NdcDetails)) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
12344
12283
|
style: {
|
|
12345
12284
|
marginTop: "40px"
|
|
12346
12285
|
}
|
|
@@ -12575,7 +12514,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12575
12514
|
}
|
|
12576
12515
|
},
|
|
12577
12516
|
render: props => {
|
|
12578
|
-
var _formData$
|
|
12517
|
+
var _formData$cpt5, _formData$cpt5$detail, _formData$cpt5$detail2, _formData$cpt5$detail3, _formData$cpt5$detail4, _formData$cpt5$detail5, _formData$cpt5$detail6;
|
|
12579
12518
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
12580
12519
|
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.firstName) || "",
|
|
12581
12520
|
onChange: e => {
|
|
@@ -12588,7 +12527,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12588
12527
|
onBlur: e => {
|
|
12589
12528
|
props.onBlur(e);
|
|
12590
12529
|
},
|
|
12591
|
-
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12530
|
+
disabled: (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$detail4 = _formData$cpt5$detail3.name) === null || _formData$cpt5$detail4 === void 0 ? void 0 : (_formData$cpt5$detail5 = _formData$cpt5$detail4.split(" ")) === null || _formData$cpt5$detail5 === void 0 ? void 0 : (_formData$cpt5$detail6 = _formData$cpt5$detail5[0]) === null || _formData$cpt5$detail6 === void 0 ? void 0 : _formData$cpt5$detail6.length) > 0
|
|
12592
12531
|
});
|
|
12593
12532
|
}
|
|
12594
12533
|
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
@@ -12606,7 +12545,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12606
12545
|
}
|
|
12607
12546
|
},
|
|
12608
12547
|
render: props => {
|
|
12609
|
-
var _formData$
|
|
12548
|
+
var _formData$cpt6, _formData$cpt6$detail, _formData$cpt6$detail2, _formData$cpt6$detail3, _formData$cpt6$detail4, _formData$cpt6$detail5, _formData$cpt6$detail6;
|
|
12610
12549
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
12611
12550
|
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.lastName) || "",
|
|
12612
12551
|
onChange: e => {
|
|
@@ -12619,7 +12558,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12619
12558
|
onBlur: e => {
|
|
12620
12559
|
props.onBlur(e);
|
|
12621
12560
|
},
|
|
12622
|
-
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12561
|
+
disabled: (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$detail2 = _formData$cpt6$detail.owners) === null || _formData$cpt6$detail2 === void 0 ? void 0 : (_formData$cpt6$detail3 = _formData$cpt6$detail2[0]) === null || _formData$cpt6$detail3 === void 0 ? void 0 : (_formData$cpt6$detail4 = _formData$cpt6$detail3.name) === null || _formData$cpt6$detail4 === void 0 ? void 0 : (_formData$cpt6$detail5 = _formData$cpt6$detail4.split(" ")) === null || _formData$cpt6$detail5 === void 0 ? void 0 : (_formData$cpt6$detail6 = _formData$cpt6$detail5[1]) === null || _formData$cpt6$detail6 === void 0 ? void 0 : _formData$cpt6$detail6.length) > 0
|
|
12623
12562
|
});
|
|
12624
12563
|
}
|
|
12625
12564
|
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
@@ -12629,22 +12568,22 @@ const PropertyDetailsForm$1 = ({
|
|
|
12629
12568
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
12630
12569
|
control: control,
|
|
12631
12570
|
name: "email",
|
|
12632
|
-
defaultValue:
|
|
12571
|
+
defaultValue: "",
|
|
12633
12572
|
render: props => {
|
|
12634
|
-
var _formData$
|
|
12573
|
+
var _formData$cpt7, _formData$cpt7$detail, _formData$cpt7$detail2, _formData$cpt7$detail3, _formData$cpt7$detail4;
|
|
12635
12574
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
12636
12575
|
value: props === null || props === void 0 ? void 0 : props.value,
|
|
12637
12576
|
onChange: e => {
|
|
12577
|
+
props.onChange(e.target.value);
|
|
12638
12578
|
setPropertyDetails(prev => ({
|
|
12639
12579
|
...prev,
|
|
12640
12580
|
email: e.target.value
|
|
12641
12581
|
}));
|
|
12642
|
-
props.onChange(e.target.value);
|
|
12643
12582
|
},
|
|
12644
12583
|
onBlur: e => {
|
|
12645
12584
|
props.onBlur(e);
|
|
12646
12585
|
},
|
|
12647
|
-
disabled: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12586
|
+
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$cpt7 = formData.cpt) === null || _formData$cpt7 === void 0 ? void 0 : (_formData$cpt7$detail = _formData$cpt7.details) === null || _formData$cpt7$detail === void 0 ? void 0 : (_formData$cpt7$detail2 = _formData$cpt7$detail.owners) === null || _formData$cpt7$detail2 === void 0 ? void 0 : (_formData$cpt7$detail3 = _formData$cpt7$detail2[0]) === null || _formData$cpt7$detail3 === void 0 ? void 0 : (_formData$cpt7$detail4 = _formData$cpt7$detail3.email) === null || _formData$cpt7$detail4 === void 0 ? void 0 : _formData$cpt7$detail4.length) > 0
|
|
12648
12587
|
});
|
|
12649
12588
|
}
|
|
12650
12589
|
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
@@ -12677,7 +12616,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12677
12616
|
name: "address",
|
|
12678
12617
|
defaultValue: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address) || "",
|
|
12679
12618
|
render: props => {
|
|
12680
|
-
var _formData$
|
|
12619
|
+
var _formData$cpt8, _formData$cpt8$detail, _formData$cpt8$detail2, _formData$cpt8$detail3, _formData$cpt8$detail4;
|
|
12681
12620
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
12682
12621
|
value: propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address,
|
|
12683
12622
|
onChange: e => {
|
|
@@ -12690,7 +12629,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12690
12629
|
onBlur: e => {
|
|
12691
12630
|
props.onBlur(e);
|
|
12692
12631
|
},
|
|
12693
|
-
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12632
|
+
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.permanentAddress) === null || _formData$cpt8$detail4 === void 0 ? void 0 : _formData$cpt8$detail4.length) > 0
|
|
12694
12633
|
});
|
|
12695
12634
|
}
|
|
12696
12635
|
})))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
@@ -12736,7 +12675,7 @@ const PropertySearchNSummary = ({
|
|
|
12736
12675
|
onSelect,
|
|
12737
12676
|
formData
|
|
12738
12677
|
}) => {
|
|
12739
|
-
var _apiDataCheck$, _apiDataCheck$$NdcDet, _formData$cpt, _formData$cpt2, _propertyDetails$Prop3, _apiDataCheck$2, _formData$cpt13, _formData$cpt13$dues;
|
|
12678
|
+
var _apiDataCheck$, _apiDataCheck$$NdcDet, _formData$cpt, _formData$cpt2, _propertyDetails$Prop3, _apiDataCheck$2, _formData$cpt12, _formData$cpt13, _formData$cpt13$dues;
|
|
12740
12679
|
const {
|
|
12741
12680
|
t
|
|
12742
12681
|
} = useTranslation();
|
|
@@ -12794,7 +12733,6 @@ const PropertySearchNSummary = ({
|
|
|
12794
12733
|
const [isSearchClicked, setIsSearchClicked] = useState(false);
|
|
12795
12734
|
const [getNoDue, setNoDue] = useState(false);
|
|
12796
12735
|
const [getCheckStatus, setCheckStats] = useState(false);
|
|
12797
|
-
const [getPayDuesButton, setPayDuesButton] = useState(false);
|
|
12798
12736
|
const {
|
|
12799
12737
|
isLoading,
|
|
12800
12738
|
isError,
|
|
@@ -12894,7 +12832,6 @@ const PropertySearchNSummary = ({
|
|
|
12894
12832
|
setIsSearchClicked(false);
|
|
12895
12833
|
setNoDue(false);
|
|
12896
12834
|
setCheckStats(false);
|
|
12897
|
-
setPayDuesButton(false);
|
|
12898
12835
|
};
|
|
12899
12836
|
if (isEditScreen) {
|
|
12900
12837
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
@@ -12937,7 +12874,6 @@ const PropertySearchNSummary = ({
|
|
|
12937
12874
|
error: true,
|
|
12938
12875
|
label: t("NDC_MESSAGE_DUES_FOUND_PLEASE_PAY")
|
|
12939
12876
|
});
|
|
12940
|
-
setPayDuesButton(true);
|
|
12941
12877
|
} else {
|
|
12942
12878
|
setShowToast({
|
|
12943
12879
|
error: false,
|
|
@@ -13030,7 +12966,7 @@ const PropertySearchNSummary = ({
|
|
|
13030
12966
|
maxWidth: "100px"
|
|
13031
12967
|
},
|
|
13032
12968
|
onClick: searchProperty
|
|
13033
|
-
}, `${t("PT_SEARCH")}`), !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$2 = apiDataCheck[0]) !== null && _apiDataCheck$2 !== void 0 && _apiDataCheck$2.NdcDetails) && getCheckStatus &&
|
|
12969
|
+
}, `${t("PT_SEARCH")}`), !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$2 = apiDataCheck[0]) !== null && _apiDataCheck$2 !== void 0 && _apiDataCheck$2.NdcDetails) && getCheckStatus && /*#__PURE__*/React.createElement("button", {
|
|
13034
12970
|
className: "submit-bar",
|
|
13035
12971
|
type: "button",
|
|
13036
12972
|
style: {
|
|
@@ -13042,19 +12978,18 @@ const PropertySearchNSummary = ({
|
|
|
13042
12978
|
onClick: () => {
|
|
13043
12979
|
fetchBill();
|
|
13044
12980
|
}
|
|
13045
|
-
}, `${t("CHECK_STATUS_PROPERTY")}`),
|
|
12981
|
+
}, `${t("CHECK_STATUS_PROPERTY")}`), (formData === null || formData === void 0 ? void 0 : (_formData$cpt12 = formData.cpt) === null || _formData$cpt12 === void 0 ? void 0 : _formData$cpt12.id) && (formData === null || formData === void 0 ? void 0 : (_formData$cpt13 = formData.cpt) === null || _formData$cpt13 === void 0 ? void 0 : (_formData$cpt13$dues = _formData$cpt13.dues) === null || _formData$cpt13$dues === void 0 ? void 0 : _formData$cpt13$dues.totalAmount) > 0 && !isSearchClicked && /*#__PURE__*/React.createElement("button", {
|
|
13046
12982
|
className: "submit-bar",
|
|
13047
12983
|
type: "button",
|
|
13048
12984
|
style: {
|
|
13049
12985
|
color: "white",
|
|
13050
12986
|
width: "100%",
|
|
13051
|
-
maxWidth: "
|
|
12987
|
+
maxWidth: "100px"
|
|
13052
12988
|
},
|
|
13053
12989
|
onClick: () => {
|
|
13054
12990
|
redirectToPayBill();
|
|
13055
|
-
setPayDuesButton(false);
|
|
13056
12991
|
}
|
|
13057
|
-
}, `${t("PAY_DUES")}
|
|
12992
|
+
}, `${t("PAY_DUES")}`), getNoDue && /*#__PURE__*/React.createElement("div", {
|
|
13058
12993
|
style: {
|
|
13059
12994
|
color: "green",
|
|
13060
12995
|
width: "100%",
|
|
@@ -14033,7 +13968,7 @@ const NewNDCStepFormOne$1 = ({
|
|
|
14033
13968
|
if (!(propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.email)) missingFields.push(t("NDC_MESSAGE_EMAIL"));
|
|
14034
13969
|
if (!(NDCReason !== null && NDCReason !== void 0 && NDCReason.code)) missingFields.push(t("NDC_MESSAGE_NDC_REASON"));
|
|
14035
13970
|
const nameRegex = /^[A-Za-z\s]+$/;
|
|
14036
|
-
const emailRegex = /^[
|
|
13971
|
+
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
14037
13972
|
const mobileRegex = /^[6-9]\d{9}$/;
|
|
14038
13973
|
if (propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.firstName && !nameRegex.test(propertyDetails.firstName)) {
|
|
14039
13974
|
invalidFields.push(t("NDC_MESSAGE_FIRST_NAME_ONLY_ALPHABETS_ALLOWED"));
|