@mseva/digit-ui-module-ndc 1.0.21 → 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 -14604
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +55 -108
- 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$cpt4, _apiDataCheck$6, _propertyDetails$wate, _propertyDetails$sewe
|
|
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,7 +12275,6 @@ const PropertyDetailsForm$1 = ({
|
|
|
12323
12275
|
}));
|
|
12324
12276
|
}
|
|
12325
12277
|
}, [apiDataCheck]);
|
|
12326
|
-
console.log("propertyDetails====", propertyDetails, formData);
|
|
12327
12278
|
return /*#__PURE__*/React.createElement("div", {
|
|
12328
12279
|
style: {
|
|
12329
12280
|
marginBottom: "16px"
|
|
@@ -12617,22 +12568,22 @@ const PropertyDetailsForm$1 = ({
|
|
|
12617
12568
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
12618
12569
|
control: control,
|
|
12619
12570
|
name: "email",
|
|
12620
|
-
defaultValue:
|
|
12571
|
+
defaultValue: "",
|
|
12621
12572
|
render: props => {
|
|
12622
|
-
var _formData$
|
|
12573
|
+
var _formData$cpt7, _formData$cpt7$detail, _formData$cpt7$detail2, _formData$cpt7$detail3, _formData$cpt7$detail4;
|
|
12623
12574
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
12624
12575
|
value: props === null || props === void 0 ? void 0 : props.value,
|
|
12625
12576
|
onChange: e => {
|
|
12577
|
+
props.onChange(e.target.value);
|
|
12626
12578
|
setPropertyDetails(prev => ({
|
|
12627
12579
|
...prev,
|
|
12628
12580
|
email: e.target.value
|
|
12629
12581
|
}));
|
|
12630
|
-
props.onChange(e.target.value);
|
|
12631
12582
|
},
|
|
12632
12583
|
onBlur: e => {
|
|
12633
12584
|
props.onBlur(e);
|
|
12634
12585
|
},
|
|
12635
|
-
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
|
|
12636
12587
|
});
|
|
12637
12588
|
}
|
|
12638
12589
|
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
@@ -12665,7 +12616,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12665
12616
|
name: "address",
|
|
12666
12617
|
defaultValue: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address) || "",
|
|
12667
12618
|
render: props => {
|
|
12668
|
-
var _formData$
|
|
12619
|
+
var _formData$cpt8, _formData$cpt8$detail, _formData$cpt8$detail2, _formData$cpt8$detail3, _formData$cpt8$detail4;
|
|
12669
12620
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
12670
12621
|
value: propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address,
|
|
12671
12622
|
onChange: e => {
|
|
@@ -12678,7 +12629,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12678
12629
|
onBlur: e => {
|
|
12679
12630
|
props.onBlur(e);
|
|
12680
12631
|
},
|
|
12681
|
-
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
|
|
12682
12633
|
});
|
|
12683
12634
|
}
|
|
12684
12635
|
})))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
@@ -12724,7 +12675,7 @@ const PropertySearchNSummary = ({
|
|
|
12724
12675
|
onSelect,
|
|
12725
12676
|
formData
|
|
12726
12677
|
}) => {
|
|
12727
|
-
var _apiDataCheck$, _apiDataCheck$$NdcDet, _formData$cpt, _formData$cpt2, _propertyDetails$Prop3, _apiDataCheck$2;
|
|
12678
|
+
var _apiDataCheck$, _apiDataCheck$$NdcDet, _formData$cpt, _formData$cpt2, _propertyDetails$Prop3, _apiDataCheck$2, _formData$cpt12, _formData$cpt13, _formData$cpt13$dues;
|
|
12728
12679
|
const {
|
|
12729
12680
|
t
|
|
12730
12681
|
} = useTranslation();
|
|
@@ -12782,7 +12733,6 @@ const PropertySearchNSummary = ({
|
|
|
12782
12733
|
const [isSearchClicked, setIsSearchClicked] = useState(false);
|
|
12783
12734
|
const [getNoDue, setNoDue] = useState(false);
|
|
12784
12735
|
const [getCheckStatus, setCheckStats] = useState(false);
|
|
12785
|
-
const [getPayDuesButton, setPayDuesButton] = useState(false);
|
|
12786
12736
|
const {
|
|
12787
12737
|
isLoading,
|
|
12788
12738
|
isError,
|
|
@@ -12882,7 +12832,6 @@ const PropertySearchNSummary = ({
|
|
|
12882
12832
|
setIsSearchClicked(false);
|
|
12883
12833
|
setNoDue(false);
|
|
12884
12834
|
setCheckStats(false);
|
|
12885
|
-
setPayDuesButton(false);
|
|
12886
12835
|
};
|
|
12887
12836
|
if (isEditScreen) {
|
|
12888
12837
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
@@ -12925,7 +12874,6 @@ const PropertySearchNSummary = ({
|
|
|
12925
12874
|
error: true,
|
|
12926
12875
|
label: t("NDC_MESSAGE_DUES_FOUND_PLEASE_PAY")
|
|
12927
12876
|
});
|
|
12928
|
-
setPayDuesButton(true);
|
|
12929
12877
|
} else {
|
|
12930
12878
|
setShowToast({
|
|
12931
12879
|
error: false,
|
|
@@ -13018,7 +12966,7 @@ const PropertySearchNSummary = ({
|
|
|
13018
12966
|
maxWidth: "100px"
|
|
13019
12967
|
},
|
|
13020
12968
|
onClick: searchProperty
|
|
13021
|
-
}, `${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", {
|
|
13022
12970
|
className: "submit-bar",
|
|
13023
12971
|
type: "button",
|
|
13024
12972
|
style: {
|
|
@@ -13030,7 +12978,7 @@ const PropertySearchNSummary = ({
|
|
|
13030
12978
|
onClick: () => {
|
|
13031
12979
|
fetchBill();
|
|
13032
12980
|
}
|
|
13033
|
-
}, `${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", {
|
|
13034
12982
|
className: "submit-bar",
|
|
13035
12983
|
type: "button",
|
|
13036
12984
|
style: {
|
|
@@ -13040,7 +12988,6 @@ const PropertySearchNSummary = ({
|
|
|
13040
12988
|
},
|
|
13041
12989
|
onClick: () => {
|
|
13042
12990
|
redirectToPayBill();
|
|
13043
|
-
setPayDuesButton(false);
|
|
13044
12991
|
}
|
|
13045
12992
|
}, `${t("PAY_DUES")}`), getNoDue && /*#__PURE__*/React.createElement("div", {
|
|
13046
12993
|
style: {
|
|
@@ -14021,7 +13968,7 @@ const NewNDCStepFormOne$1 = ({
|
|
|
14021
13968
|
if (!(propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.email)) missingFields.push(t("NDC_MESSAGE_EMAIL"));
|
|
14022
13969
|
if (!(NDCReason !== null && NDCReason !== void 0 && NDCReason.code)) missingFields.push(t("NDC_MESSAGE_NDC_REASON"));
|
|
14023
13970
|
const nameRegex = /^[A-Za-z\s]+$/;
|
|
14024
|
-
const emailRegex = /^[
|
|
13971
|
+
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
14025
13972
|
const mobileRegex = /^[6-9]\d{9}$/;
|
|
14026
13973
|
if (propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.firstName && !nameRegex.test(propertyDetails.firstName)) {
|
|
14027
13974
|
invalidFields.push(t("NDC_MESSAGE_FIRST_NAME_ONLY_ALPHABETS_ALLOWED"));
|