@mseva/digit-ui-module-ndc 1.0.23 → 1.0.25
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 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +93 -111
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7,13 +7,6 @@ import 'react-query';
|
|
|
7
7
|
import { Controller, useFormContext, useForm, FormProvider, useFieldArray } from 'react-hook-form';
|
|
8
8
|
import { combineReducers } from 'redux';
|
|
9
9
|
|
|
10
|
-
const stringReplaceAll = (str = "", searcher = "", replaceWith = "") => {
|
|
11
|
-
if (searcher == "") return str;
|
|
12
|
-
while (str.includes(searcher)) {
|
|
13
|
-
str = str.replace(searcher, replaceWith);
|
|
14
|
-
}
|
|
15
|
-
return str;
|
|
16
|
-
};
|
|
17
10
|
const businessServiceList = (isCode = false) => {
|
|
18
11
|
let isSearchScreen = window.location.href.includes("/search");
|
|
19
12
|
const availableBusinessServices = [{
|
|
@@ -816,12 +809,7 @@ function NDCDocument$1({
|
|
|
816
809
|
background: "#f6f6f6",
|
|
817
810
|
padding: "8px"
|
|
818
811
|
}
|
|
819
|
-
})
|
|
820
|
-
style: {
|
|
821
|
-
marginTop: "8px",
|
|
822
|
-
textAlign: "center"
|
|
823
|
-
}
|
|
824
|
-
}, value !== null && value !== void 0 && value.workflowDocs ? t(`${document === null || document === void 0 ? void 0 : document.documentType}`) : t(`NDC_${document === null || document === void 0 ? void 0 : document.documentType}_LABEL`)));
|
|
812
|
+
}));
|
|
825
813
|
}))));
|
|
826
814
|
}
|
|
827
815
|
|
|
@@ -840,15 +828,16 @@ const ModalConfig = ({
|
|
|
840
828
|
let checkCondtions = true;
|
|
841
829
|
if ((action === null || action === void 0 ? void 0 : action.action) == "SENDBACKTOCITIZEN" || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE" || (action === null || action === void 0 ? void 0 : action.action) == "REJECT" || (action === null || action === void 0 ? void 0 : action.action) == "SENDBACK") checkCondtions = false;
|
|
842
830
|
if (action.isTerminateState) checkCondtions = false;
|
|
831
|
+
console.log("action=====", action.action);
|
|
843
832
|
return {
|
|
844
833
|
label: {
|
|
845
|
-
heading:
|
|
834
|
+
heading: ``,
|
|
846
835
|
submit: `${action === null || action === void 0 ? void 0 : action.action}`,
|
|
847
836
|
cancel: "WF_EMPLOYEE_NEWTL_CANCEL"
|
|
848
837
|
},
|
|
849
838
|
form: [{
|
|
850
839
|
body: [{
|
|
851
|
-
label: !checkCondtions ? null : t("WF_ASSIGNEE_NAME_LABEL")
|
|
840
|
+
label: !checkCondtions ? null : `${t("WF_ASSIGNEE_NAME_LABEL")} *`,
|
|
852
841
|
placeholder: !checkCondtions ? null : t("WF_ASSIGNEE_NAME_PLACEHOLDER"),
|
|
853
842
|
type: "dropdown",
|
|
854
843
|
populators: !checkCondtions ? null : /*#__PURE__*/React.createElement(Dropdown, {
|
|
@@ -860,7 +849,7 @@ const ModalConfig = ({
|
|
|
860
849
|
selected: selectedApprover
|
|
861
850
|
})
|
|
862
851
|
}, {
|
|
863
|
-
label: t("WF_COMMON_COMMENTS")
|
|
852
|
+
label: `${t("WF_COMMON_COMMENTS")} *`,
|
|
864
853
|
type: "textarea",
|
|
865
854
|
populators: {
|
|
866
855
|
name: "comments"
|
|
@@ -1022,12 +1011,10 @@ const NDCModal = ({
|
|
|
1022
1011
|
fileStoreId: uploadedFile
|
|
1023
1012
|
}] : null
|
|
1024
1013
|
};
|
|
1025
|
-
console.log("uploadedFile", uploadedFile, applicationData);
|
|
1026
1014
|
submitAction({
|
|
1027
1015
|
Licenses: [applicationData]
|
|
1028
1016
|
});
|
|
1029
1017
|
}
|
|
1030
|
-
console.log("config.label.submit", config);
|
|
1031
1018
|
useEffect(() => {
|
|
1032
1019
|
if (action) {
|
|
1033
1020
|
setConfig(ModalConfig({
|
|
@@ -1286,13 +1273,11 @@ const ApplicationOverview = () => {
|
|
|
1286
1273
|
documents: filtData === null || filtData === void 0 ? void 0 : filtData.wfDocuments
|
|
1287
1274
|
};
|
|
1288
1275
|
if (!(filtData !== null && filtData !== void 0 && filtData.assignee) && filtData.action == "FORWARD") {
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
});
|
|
1292
|
-
setError("Assignee is mandatory");
|
|
1276
|
+
setErrorOne("Assignee is Mandatory");
|
|
1277
|
+
setShowErrorToastt(true);
|
|
1293
1278
|
return;
|
|
1294
1279
|
} else if (!(filtData !== null && filtData !== void 0 && filtData.comment) && ((filtData === null || filtData === void 0 ? void 0 : filtData.action) == "FORWARD" || (filtData === null || filtData === void 0 ? void 0 : filtData.action) == "REJECT")) {
|
|
1295
|
-
setErrorOne("Comment is
|
|
1280
|
+
setErrorOne("Comment is Mandatory");
|
|
1296
1281
|
setShowErrorToastt(true);
|
|
1297
1282
|
return;
|
|
1298
1283
|
}
|
|
@@ -8816,13 +8801,14 @@ const getTimelineCaptions$1 = (checkpoint, index, arr, t) => {
|
|
|
8816
8801
|
}, 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()))));
|
|
8817
8802
|
};
|
|
8818
8803
|
const CitizenApplicationOverview = () => {
|
|
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;
|
|
8804
|
+
var _user, _user$info, _user$info$roles, _applicationDetails$A3, _applicationDetails$A4, _applicationDetails$A5, _applicationDetails$A6, _Object$entries, _displayData$NdcDetai, _displayData$Document, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5;
|
|
8820
8805
|
const {
|
|
8821
8806
|
id
|
|
8822
8807
|
} = useParams();
|
|
8823
8808
|
const {
|
|
8824
8809
|
t
|
|
8825
8810
|
} = useTranslation();
|
|
8811
|
+
const history = useHistory();
|
|
8826
8812
|
const tenantId = window.localStorage.getItem("CITIZEN.CITY");
|
|
8827
8813
|
const state = tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0];
|
|
8828
8814
|
const [appDetails, setAppDetails] = useState({});
|
|
@@ -8902,7 +8888,6 @@ const CitizenApplicationOverview = () => {
|
|
|
8902
8888
|
}
|
|
8903
8889
|
}, [applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.Applications]);
|
|
8904
8890
|
useEffect(() => {
|
|
8905
|
-
console.log("applicationDetails", applicationDetails);
|
|
8906
8891
|
if (applicationDetails) {
|
|
8907
8892
|
setIsDetailsLoading(true);
|
|
8908
8893
|
setAppDetails({
|
|
@@ -8916,8 +8901,6 @@ const CitizenApplicationOverview = () => {
|
|
|
8916
8901
|
}, [applicationDetails]);
|
|
8917
8902
|
const handleDownloadPdf = async () => {
|
|
8918
8903
|
const Property = applicationDetails;
|
|
8919
|
-
console.log("applicationDetails in StakeholderAck", applicationDetails);
|
|
8920
|
-
console.log("tenants", tenants);
|
|
8921
8904
|
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));
|
|
8922
8905
|
const acknowledgementData = await getAcknowledgementData(Property, tenantInfo, t);
|
|
8923
8906
|
console.log("acknowledgementData", acknowledgementData);
|
|
@@ -8939,11 +8922,18 @@ const CitizenApplicationOverview = () => {
|
|
|
8939
8922
|
className: "downLoadButton",
|
|
8940
8923
|
label: t("DOWNLOAD_CERTIFICATE"),
|
|
8941
8924
|
onClick: handleDownloadPdf
|
|
8942
|
-
})), /*#__PURE__*/React.createElement(
|
|
8925
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A5 = applicationDetails.Applications) === null || _applicationDetails$A5 === void 0 ? void 0 : (_applicationDetails$A6 = _applicationDetails$A5[0]) === null || _applicationDetails$A6 === void 0 ? void 0 : _applicationDetails$A6.applicationStatus) == "INITIATED" && /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar$1, {
|
|
8926
|
+
label: t("COMMON_EDIT"),
|
|
8927
|
+
onSubmit: () => {
|
|
8928
|
+
var _applicationDetails$A7, _applicationDetails$A8;
|
|
8929
|
+
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;
|
|
8930
|
+
history.push(`/digit-ui/citizen/ndc/new-application/${id}`);
|
|
8931
|
+
}
|
|
8932
|
+
}))), /*#__PURE__*/React.createElement(Card, {
|
|
8943
8933
|
className: "ndc_card_main"
|
|
8944
8934
|
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
8945
8935
|
className: "ndc_label"
|
|
8946
|
-
}, t("NDC_APPLICATION_DETAILS_OVERVIEW")), /*#__PURE__*/React.createElement(StatusTable, null,
|
|
8936
|
+
}, 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, {
|
|
8947
8937
|
key: key,
|
|
8948
8938
|
label: t(`${key === null || key === void 0 ? void 0 : key.toUpperCase()}`),
|
|
8949
8939
|
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")
|
|
@@ -9058,7 +9048,7 @@ const NOCEmployeeHomeCard = () => {
|
|
|
9058
9048
|
}));
|
|
9059
9049
|
useEffect(() => {
|
|
9060
9050
|
if (location.pathname === "/digit-ui/employee") {
|
|
9061
|
-
Digit.SessionStorage.del("
|
|
9051
|
+
Digit.SessionStorage.del("NDC.INBOX");
|
|
9062
9052
|
}
|
|
9063
9053
|
}, [location.pathname]);
|
|
9064
9054
|
const propsForModuleCard = useMemo(() => ({
|
|
@@ -9395,7 +9385,7 @@ const Inbox = ({
|
|
|
9395
9385
|
function formReducer(state, payload) {
|
|
9396
9386
|
switch (payload.action) {
|
|
9397
9387
|
case "mutateSearchForm":
|
|
9398
|
-
Digit.SessionStorage.set("
|
|
9388
|
+
Digit.SessionStorage.set("NDC.INBOX", {
|
|
9399
9389
|
...state,
|
|
9400
9390
|
searchForm: payload.data
|
|
9401
9391
|
});
|
|
@@ -9404,7 +9394,7 @@ const Inbox = ({
|
|
|
9404
9394
|
searchForm: payload.data
|
|
9405
9395
|
};
|
|
9406
9396
|
case "mutateFilterForm":
|
|
9407
|
-
Digit.SessionStorage.set("
|
|
9397
|
+
Digit.SessionStorage.set("NDC.INBOX", {
|
|
9408
9398
|
...state,
|
|
9409
9399
|
filterForm: payload.data
|
|
9410
9400
|
});
|
|
@@ -9413,7 +9403,7 @@ const Inbox = ({
|
|
|
9413
9403
|
filterForm: payload.data
|
|
9414
9404
|
};
|
|
9415
9405
|
case "mutateTableForm":
|
|
9416
|
-
Digit.SessionStorage.set("
|
|
9406
|
+
Digit.SessionStorage.set("NDC.INBOX", {
|
|
9417
9407
|
...state,
|
|
9418
9408
|
tableForm: payload.data
|
|
9419
9409
|
});
|
|
@@ -9423,7 +9413,7 @@ const Inbox = ({
|
|
|
9423
9413
|
};
|
|
9424
9414
|
}
|
|
9425
9415
|
}
|
|
9426
|
-
const InboxObjectInSessionStorage = Digit.SessionStorage.get("
|
|
9416
|
+
const InboxObjectInSessionStorage = Digit.SessionStorage.get("NDC.INBOX");
|
|
9427
9417
|
const onSearchFormReset = setSearchFormValue => {
|
|
9428
9418
|
setSearchFormValue("sourceRefId", null);
|
|
9429
9419
|
setSearchFormValue("uuid", null);
|
|
@@ -11443,7 +11433,7 @@ const config = [{
|
|
|
11443
11433
|
withoutLabel: true
|
|
11444
11434
|
}]
|
|
11445
11435
|
}, {
|
|
11446
|
-
head: "
|
|
11436
|
+
head: "",
|
|
11447
11437
|
stepNumber: 2,
|
|
11448
11438
|
body: [{
|
|
11449
11439
|
type: "component",
|
|
@@ -11463,8 +11453,8 @@ const config = [{
|
|
|
11463
11453
|
}];
|
|
11464
11454
|
|
|
11465
11455
|
const createEmployeeConfig = [{
|
|
11466
|
-
head: "
|
|
11467
|
-
stepLabel: "
|
|
11456
|
+
head: "Application Details",
|
|
11457
|
+
stepLabel: "Application Details",
|
|
11468
11458
|
stepNumber: 1,
|
|
11469
11459
|
isStepEnabled: true,
|
|
11470
11460
|
type: "component",
|
|
@@ -11515,10 +11505,29 @@ const NewNDCStepForm = () => {
|
|
|
11515
11505
|
const formState = useSelector(state => state.ndc.NDCForm);
|
|
11516
11506
|
const step = formState.step;
|
|
11517
11507
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
11508
|
+
const id = window.location.pathname.split("/").pop();
|
|
11509
|
+
const {
|
|
11510
|
+
isLoading,
|
|
11511
|
+
data: applicationDetails
|
|
11512
|
+
} = Digit.Hooks.ndc.useSearchEmployeeApplication({
|
|
11513
|
+
uuid: id
|
|
11514
|
+
}, tenantId);
|
|
11515
|
+
useEffect(() => {
|
|
11516
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && applicationDetails.Applications.length) {
|
|
11517
|
+
dispatch(updateNDCForm("responseData", applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.Applications));
|
|
11518
|
+
}
|
|
11519
|
+
}, [applicationDetails]);
|
|
11518
11520
|
const setStep = updatedStepNumber => {
|
|
11519
11521
|
dispatch(setNDCStep(updatedStepNumber));
|
|
11520
11522
|
};
|
|
11521
11523
|
const handleSubmit = () => {};
|
|
11524
|
+
useEffect(() => {
|
|
11525
|
+
const unlisten = history.listen(() => {
|
|
11526
|
+
console.log("route changes guys");
|
|
11527
|
+
dispatch(resetNDCForm());
|
|
11528
|
+
});
|
|
11529
|
+
return () => unlisten();
|
|
11530
|
+
}, [history, dispatch]);
|
|
11522
11531
|
return /*#__PURE__*/React.createElement("div", {
|
|
11523
11532
|
className: "pageCard"
|
|
11524
11533
|
}, /*#__PURE__*/React.createElement(CardHeader, {
|
|
@@ -11699,24 +11708,16 @@ const NewNDCStepFormOne = ({
|
|
|
11699
11708
|
if (!(cpt !== null && cpt !== void 0 && cpt.id)) missingFields.push(t("NDC_MESSAGE_PROPERTY_ID"));
|
|
11700
11709
|
if (!cptDetails || Object.keys(cptDetails).length === 0) missingFields.push(t("NDC_MESSAGE_PLEASE_SEARCH_PROPERTY_ID"));
|
|
11701
11710
|
if (!(propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.firstName)) missingFields.push(t("NDC_MESSAGE_FIRST_NAME"));
|
|
11702
|
-
if (!(propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.lastName)) missingFields.push(t("NDC_MESSAGE_LAST_NAME"));
|
|
11703
11711
|
if (!(propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.mobileNumber)) missingFields.push(t("NDC_MESSAGE_MOBILE_NUMBER"));
|
|
11704
11712
|
if (!(propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.address)) missingFields.push(t("NDC_MESSAGE_ADDRESS"));
|
|
11705
11713
|
if (!(propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.email)) missingFields.push(t("NDC_MESSAGE_EMAIL"));
|
|
11706
11714
|
if (!(NDCReason !== null && NDCReason !== void 0 && NDCReason.code)) missingFields.push(t("NDC_MESSAGE_NDC_REASON"));
|
|
11707
11715
|
const nameRegex = /^[A-Za-z\s]+$/;
|
|
11708
|
-
const emailRegex = /^[
|
|
11716
|
+
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$/;
|
|
11709
11717
|
const mobileRegex = /^[6-9]\d{9}$/;
|
|
11710
11718
|
if (propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.firstName && !nameRegex.test(propertyDetails.firstName)) {
|
|
11711
11719
|
invalidFields.push(t("NDC_MESSAGE_FIRST_NAME_ONLY_ALPHABETS_ALLOWED"));
|
|
11712
11720
|
}
|
|
11713
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.lastName) {
|
|
11714
|
-
if (!nameRegex.test(propertyDetails.lastName)) {
|
|
11715
|
-
invalidFields.push(t("NDC_MESSAGE_LAST_NAME_ONLY_ALPHABETS_ALLOWED"));
|
|
11716
|
-
} else if (propertyDetails.lastName.length > 100) {
|
|
11717
|
-
invalidFields.push(t("NDC_MESSAGE_LAST_NAME_MAX_100_CHARACTERS"));
|
|
11718
|
-
}
|
|
11719
|
-
}
|
|
11720
11721
|
if (propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.email && !emailRegex.test(propertyDetails.email)) {
|
|
11721
11722
|
invalidFields.push(t("NDC_MESSAGE_EMAIL_INVALID_FORMAT"));
|
|
11722
11723
|
}
|
|
@@ -11864,7 +11865,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
11864
11865
|
formState,
|
|
11865
11866
|
clearErrors
|
|
11866
11867
|
}) => {
|
|
11867
|
-
var _formData$cpt, _formData$cpt$details, _formData$cpt3, _Digit, _Digit$ComponentRegis, _formData$
|
|
11868
|
+
var _formData$cpt, _formData$cpt$details, _formData$cpt3, _Digit, _Digit$ComponentRegis, _formData$cpt6, _formData$cpt6$detail, _formData$cpt7, _apiDataCheck$6, _propertyDetails$wate, _propertyDetails$sewe;
|
|
11868
11869
|
const {
|
|
11869
11870
|
control,
|
|
11870
11871
|
formState: localFormState,
|
|
@@ -11923,17 +11924,12 @@ const PropertyDetailsForm$1 = ({
|
|
|
11923
11924
|
var _formData$cpt2, _formData$cpt2$detail, _formData$cpt2$detail2, _owner$name, _formData$PropertyDet, _formData$PropertyDet2;
|
|
11924
11925
|
const owner = formData === null || formData === void 0 ? void 0 : (_formData$cpt2 = formData.cpt) === null || _formData$cpt2 === void 0 ? void 0 : (_formData$cpt2$detail = _formData$cpt2.details) === null || _formData$cpt2$detail === void 0 ? void 0 : (_formData$cpt2$detail2 = _formData$cpt2$detail.owners) === null || _formData$cpt2$detail2 === void 0 ? void 0 : _formData$cpt2$detail2[0];
|
|
11925
11926
|
const fullName = owner === null || owner === void 0 ? void 0 : (_owner$name = owner.name) === null || _owner$name === void 0 ? void 0 : _owner$name.split(" ");
|
|
11926
|
-
const firstName =
|
|
11927
|
-
let lastName;
|
|
11928
|
-
if ((fullName === null || fullName === void 0 ? void 0 : fullName.length) > 1) {
|
|
11929
|
-
lastName = fullName === null || fullName === void 0 ? void 0 : fullName[fullName.length - 1];
|
|
11930
|
-
}
|
|
11927
|
+
const firstName = owner === null || owner === void 0 ? void 0 : owner.name;
|
|
11931
11928
|
const email = owner === null || owner === void 0 ? void 0 : owner.email;
|
|
11932
11929
|
const mobileNumber = owner === null || owner === void 0 ? void 0 : owner.mobileNumber;
|
|
11933
11930
|
const address = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
11934
11931
|
const combinedObject = {};
|
|
11935
11932
|
if (firstName) combinedObject.firstName = firstName;
|
|
11936
|
-
if (lastName) combinedObject.lastName = lastName;
|
|
11937
11933
|
if (email) combinedObject.email = email;
|
|
11938
11934
|
if (mobileNumber) combinedObject.mobileNumber = mobileNumber;
|
|
11939
11935
|
if (address) combinedObject.address = address;
|
|
@@ -12275,11 +12271,24 @@ const PropertyDetailsForm$1 = ({
|
|
|
12275
12271
|
}));
|
|
12276
12272
|
}
|
|
12277
12273
|
}, [apiDataCheck]);
|
|
12274
|
+
useEffect(() => {
|
|
12275
|
+
var _formData$cpt4, _formData$cpt4$detail;
|
|
12276
|
+
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) {
|
|
12277
|
+
var _formData$cpt5, _formData$cpt5$detail, _formData$cpt5$detail2, _formData$cpt5$detail3;
|
|
12278
|
+
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;
|
|
12279
|
+
setValue("email", formDataEmail);
|
|
12280
|
+
setPropertyDetails(prev => ({
|
|
12281
|
+
...prev,
|
|
12282
|
+
email: formDataEmail
|
|
12283
|
+
}));
|
|
12284
|
+
}
|
|
12285
|
+
}, [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]);
|
|
12286
|
+
console.log("propertyDetails====", propertyDetails, formData);
|
|
12278
12287
|
return /*#__PURE__*/React.createElement("div", {
|
|
12279
12288
|
style: {
|
|
12280
12289
|
marginBottom: "16px"
|
|
12281
12290
|
}
|
|
12282
|
-
}, ((formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12291
|
+
}, ((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.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
12283
12292
|
style: {
|
|
12284
12293
|
marginTop: "40px"
|
|
12285
12294
|
}
|
|
@@ -12501,7 +12510,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12501
12510
|
}
|
|
12502
12511
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12503
12512
|
className: "card-label-smaller ndc_card_labels"
|
|
12504
|
-
}, `${t("
|
|
12513
|
+
}, `${t("NDC_FULL_NAME")} * `), /*#__PURE__*/React.createElement("div", {
|
|
12505
12514
|
className: "field"
|
|
12506
12515
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
12507
12516
|
control: control,
|
|
@@ -12514,7 +12523,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12514
12523
|
}
|
|
12515
12524
|
},
|
|
12516
12525
|
render: props => {
|
|
12517
|
-
var _formData$
|
|
12526
|
+
var _formData$cpt8, _formData$cpt8$detail, _formData$cpt8$detail2, _formData$cpt8$detail3, _formData$cpt8$detail4, _formData$cpt8$detail5, _formData$cpt8$detail6;
|
|
12518
12527
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
12519
12528
|
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.firstName) || "",
|
|
12520
12529
|
onChange: e => {
|
|
@@ -12527,38 +12536,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12527
12536
|
onBlur: e => {
|
|
12528
12537
|
props.onBlur(e);
|
|
12529
12538
|
},
|
|
12530
|
-
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12531
|
-
});
|
|
12532
|
-
}
|
|
12533
|
-
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12534
|
-
className: "card-label-smaller ndc_card_labels"
|
|
12535
|
-
}, `${t("NDC_LAST_NAME")} * `), /*#__PURE__*/React.createElement("div", {
|
|
12536
|
-
className: "field"
|
|
12537
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
12538
|
-
control: control,
|
|
12539
|
-
name: "lastName",
|
|
12540
|
-
defaultValue: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.lastName) || "",
|
|
12541
|
-
rules: {
|
|
12542
|
-
required: t("REQUIRED_FIELD"),
|
|
12543
|
-
validate: {
|
|
12544
|
-
pattern: val => /^[-@.\/#&+\w\s]*$/.test(val) ? true : t("INVALID_NAME")
|
|
12545
|
-
}
|
|
12546
|
-
},
|
|
12547
|
-
render: props => {
|
|
12548
|
-
var _formData$cpt6, _formData$cpt6$detail, _formData$cpt6$detail2, _formData$cpt6$detail3, _formData$cpt6$detail4, _formData$cpt6$detail5, _formData$cpt6$detail6;
|
|
12549
|
-
return /*#__PURE__*/React.createElement(TextInput, {
|
|
12550
|
-
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.lastName) || "",
|
|
12551
|
-
onChange: e => {
|
|
12552
|
-
setPropertyDetails(prev => ({
|
|
12553
|
-
...prev,
|
|
12554
|
-
lastName: e.target.value
|
|
12555
|
-
}));
|
|
12556
|
-
props.onChange(e.target.value);
|
|
12557
|
-
},
|
|
12558
|
-
onBlur: e => {
|
|
12559
|
-
props.onBlur(e);
|
|
12560
|
-
},
|
|
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
|
|
12539
|
+
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
|
|
12562
12540
|
});
|
|
12563
12541
|
}
|
|
12564
12542
|
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
@@ -12568,22 +12546,22 @@ const PropertyDetailsForm$1 = ({
|
|
|
12568
12546
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
12569
12547
|
control: control,
|
|
12570
12548
|
name: "email",
|
|
12571
|
-
defaultValue:
|
|
12549
|
+
defaultValue: propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.email,
|
|
12572
12550
|
render: props => {
|
|
12573
|
-
var _formData$
|
|
12551
|
+
var _formData$cpt9, _formData$cpt9$detail, _formData$cpt9$detail2, _formData$cpt9$detail3;
|
|
12574
12552
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
12575
12553
|
value: props === null || props === void 0 ? void 0 : props.value,
|
|
12576
12554
|
onChange: e => {
|
|
12577
|
-
props.onChange(e.target.value);
|
|
12578
12555
|
setPropertyDetails(prev => ({
|
|
12579
12556
|
...prev,
|
|
12580
12557
|
email: e.target.value
|
|
12581
12558
|
}));
|
|
12559
|
+
props.onChange(e.target.value);
|
|
12582
12560
|
},
|
|
12583
12561
|
onBlur: e => {
|
|
12584
12562
|
props.onBlur(e);
|
|
12585
12563
|
},
|
|
12586
|
-
disabled:
|
|
12564
|
+
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$detail3.emailId
|
|
12587
12565
|
});
|
|
12588
12566
|
}
|
|
12589
12567
|
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
@@ -12616,7 +12594,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12616
12594
|
name: "address",
|
|
12617
12595
|
defaultValue: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address) || "",
|
|
12618
12596
|
render: props => {
|
|
12619
|
-
var _formData$
|
|
12597
|
+
var _formData$cpt0, _formData$cpt0$detail, _formData$cpt0$detail2, _formData$cpt0$detail3, _formData$cpt0$detail4;
|
|
12620
12598
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
12621
12599
|
value: propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address,
|
|
12622
12600
|
onChange: e => {
|
|
@@ -12629,7 +12607,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12629
12607
|
onBlur: e => {
|
|
12630
12608
|
props.onBlur(e);
|
|
12631
12609
|
},
|
|
12632
|
-
disabled: (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
12610
|
+
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$detail4 = _formData$cpt0$detail3.permanentAddress) === null || _formData$cpt0$detail4 === void 0 ? void 0 : _formData$cpt0$detail4.length) > 0
|
|
12633
12611
|
});
|
|
12634
12612
|
}
|
|
12635
12613
|
})))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
@@ -12675,7 +12653,7 @@ const PropertySearchNSummary = ({
|
|
|
12675
12653
|
onSelect,
|
|
12676
12654
|
formData
|
|
12677
12655
|
}) => {
|
|
12678
|
-
var _apiDataCheck$, _apiDataCheck$$NdcDet, _formData$cpt, _formData$cpt2, _propertyDetails$Prop3, _apiDataCheck$2, _formData$
|
|
12656
|
+
var _apiDataCheck$, _apiDataCheck$$NdcDet, _formData$cpt, _formData$cpt2, _propertyDetails$Prop3, _apiDataCheck$2, _formData$cpt13, _formData$cpt13$dues;
|
|
12679
12657
|
const {
|
|
12680
12658
|
t
|
|
12681
12659
|
} = useTranslation();
|
|
@@ -12733,6 +12711,7 @@ const PropertySearchNSummary = ({
|
|
|
12733
12711
|
const [isSearchClicked, setIsSearchClicked] = useState(false);
|
|
12734
12712
|
const [getNoDue, setNoDue] = useState(false);
|
|
12735
12713
|
const [getCheckStatus, setCheckStats] = useState(false);
|
|
12714
|
+
const [getPayDuesButton, setPayDuesButton] = useState(false);
|
|
12736
12715
|
const {
|
|
12737
12716
|
isLoading,
|
|
12738
12717
|
isError,
|
|
@@ -12832,6 +12811,7 @@ const PropertySearchNSummary = ({
|
|
|
12832
12811
|
setIsSearchClicked(false);
|
|
12833
12812
|
setNoDue(false);
|
|
12834
12813
|
setCheckStats(false);
|
|
12814
|
+
setPayDuesButton(false);
|
|
12835
12815
|
};
|
|
12836
12816
|
if (isEditScreen) {
|
|
12837
12817
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
@@ -12874,6 +12854,7 @@ const PropertySearchNSummary = ({
|
|
|
12874
12854
|
error: true,
|
|
12875
12855
|
label: t("NDC_MESSAGE_DUES_FOUND_PLEASE_PAY")
|
|
12876
12856
|
});
|
|
12857
|
+
setPayDuesButton(true);
|
|
12877
12858
|
} else {
|
|
12878
12859
|
setShowToast({
|
|
12879
12860
|
error: false,
|
|
@@ -12966,7 +12947,7 @@ const PropertySearchNSummary = ({
|
|
|
12966
12947
|
maxWidth: "100px"
|
|
12967
12948
|
},
|
|
12968
12949
|
onClick: searchProperty
|
|
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", {
|
|
12950
|
+
}, `${t("PT_SEARCH")}`), !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$2 = apiDataCheck[0]) !== null && _apiDataCheck$2 !== void 0 && _apiDataCheck$2.NdcDetails) && getCheckStatus && !getPayDuesButton && /*#__PURE__*/React.createElement("button", {
|
|
12970
12951
|
className: "submit-bar",
|
|
12971
12952
|
type: "button",
|
|
12972
12953
|
style: {
|
|
@@ -12978,18 +12959,19 @@ const PropertySearchNSummary = ({
|
|
|
12978
12959
|
onClick: () => {
|
|
12979
12960
|
fetchBill();
|
|
12980
12961
|
}
|
|
12981
|
-
}, `${t("CHECK_STATUS_PROPERTY")}`),
|
|
12962
|
+
}, `${t("CHECK_STATUS_PROPERTY")}`), getPayDuesButton && /*#__PURE__*/React.createElement("button", {
|
|
12982
12963
|
className: "submit-bar",
|
|
12983
12964
|
type: "button",
|
|
12984
12965
|
style: {
|
|
12985
12966
|
color: "white",
|
|
12986
12967
|
width: "100%",
|
|
12987
|
-
maxWidth: "
|
|
12968
|
+
maxWidth: "190px"
|
|
12988
12969
|
},
|
|
12989
12970
|
onClick: () => {
|
|
12990
12971
|
redirectToPayBill();
|
|
12972
|
+
setPayDuesButton(false);
|
|
12991
12973
|
}
|
|
12992
|
-
}, `${t("PAY_DUES")}`), getNoDue && /*#__PURE__*/React.createElement("div", {
|
|
12974
|
+
}, `${t("PAY_DUES")} (Rs.${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})`), getNoDue && /*#__PURE__*/React.createElement("div", {
|
|
12993
12975
|
style: {
|
|
12994
12976
|
color: "green",
|
|
12995
12977
|
width: "100%",
|
|
@@ -13233,7 +13215,7 @@ const NDCSummary = ({
|
|
|
13233
13215
|
goNext,
|
|
13234
13216
|
onGoBack
|
|
13235
13217
|
}) => {
|
|
13236
|
-
var _formData$DocummentDe, _formData$DocummentDe2, _formData$apiData2, _formData$apiData2$Ap, _formData$apiData2$Ap2, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _formData$NDCDetails, _formData$NDCDetails$, _formData$NDCDetails2, _formData$NDCDetails3, _formData$NDCDetails4, _formData$NDCDetails5, _formData$NDCDetails6, _formData$NDCDetails7, _formData$NDCDetails8, _formData$NDCDetails9, _formData$NDCDetails0, _formData$NDCDetails1, _formData$NDCDetails10, _formData$NDCDetails11, _formData$NDCDetails12, _formData$NDCDetails13, _formData$NDCDetails14, _formData$NDCDetails15, _formData$NDCDetails16, _formData$NDCDetails17, _formData$NDCDetails18, _formData$NDCDetails19, _formData$NDCDetails20, _formData$NDCDetails21,
|
|
13218
|
+
var _formData$DocummentDe, _formData$DocummentDe2, _formData$apiData2, _formData$apiData2$Ap, _formData$apiData2$Ap2, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _formData$NDCDetails, _formData$NDCDetails$, _formData$NDCDetails2, _formData$NDCDetails3, _formData$NDCDetails4, _formData$NDCDetails5, _formData$NDCDetails6, _formData$NDCDetails7, _formData$NDCDetails8, _formData$NDCDetails9, _formData$NDCDetails0, _formData$NDCDetails1, _formData$NDCDetails10, _formData$NDCDetails11, _formData$NDCDetails12, _formData$NDCDetails13, _formData$NDCDetails14, _formData$NDCDetails15, _formData$NDCDetails16, _formData$NDCDetails17, _formData$NDCDetails18, _formData$NDCDetails19, _formData$NDCDetails20, _formData$NDCDetails21, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9;
|
|
13237
13219
|
const {
|
|
13238
13220
|
pathname: url
|
|
13239
13221
|
} = useLocation();
|
|
@@ -13355,11 +13337,11 @@ const NDCSummary = ({
|
|
|
13355
13337
|
style: headingStyle
|
|
13356
13338
|
}, t("Application Summary")), /*#__PURE__*/React.createElement("div", {
|
|
13357
13339
|
style: sectionStyle
|
|
13358
|
-
}, renderLabel(t("
|
|
13340
|
+
}, renderLabel(t("Full Name"), formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails = formData.NDCDetails) === null || _formData$NDCDetails === void 0 ? void 0 : (_formData$NDCDetails$ = _formData$NDCDetails.PropertyDetails) === null || _formData$NDCDetails$ === void 0 ? void 0 : _formData$NDCDetails$.firstName), renderLabel(t("Mobile Number"), formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails2 = formData.NDCDetails) === null || _formData$NDCDetails2 === void 0 ? void 0 : (_formData$NDCDetails3 = _formData$NDCDetails2.PropertyDetails) === null || _formData$NDCDetails3 === void 0 ? void 0 : _formData$NDCDetails3.mobileNumber), renderLabel(t("Email ID"), formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails4 = formData.NDCDetails) === null || _formData$NDCDetails4 === void 0 ? void 0 : (_formData$NDCDetails5 = _formData$NDCDetails4.PropertyDetails) === null || _formData$NDCDetails5 === void 0 ? void 0 : _formData$NDCDetails5.email), renderLabel(t("Address"), formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails6 = formData.NDCDetails) === null || _formData$NDCDetails6 === void 0 ? void 0 : (_formData$NDCDetails7 = _formData$NDCDetails6.PropertyDetails) === null || _formData$NDCDetails7 === void 0 ? void 0 : _formData$NDCDetails7.address), renderLabel(t("NDC Reason"), t(formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails8 = formData.NDCDetails) === null || _formData$NDCDetails8 === void 0 ? void 0 : (_formData$NDCDetails9 = _formData$NDCDetails8.NDCReason) === null || _formData$NDCDetails9 === void 0 ? void 0 : _formData$NDCDetails9.i18nKey)), renderLabel(t("Water Connection"), (formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails0 = formData.NDCDetails) === null || _formData$NDCDetails0 === void 0 ? void 0 : (_formData$NDCDetails1 = _formData$NDCDetails0.PropertyDetails) === null || _formData$NDCDetails1 === void 0 ? void 0 : (_formData$NDCDetails10 = _formData$NDCDetails1.waterConnection) === null || _formData$NDCDetails10 === void 0 ? void 0 : _formData$NDCDetails10.length) > 0 ? formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails11 = formData.NDCDetails) === null || _formData$NDCDetails11 === void 0 ? void 0 : (_formData$NDCDetails12 = _formData$NDCDetails11.PropertyDetails) === null || _formData$NDCDetails12 === void 0 ? void 0 : (_formData$NDCDetails13 = _formData$NDCDetails12.waterConnection) === null || _formData$NDCDetails13 === void 0 ? void 0 : _formData$NDCDetails13.map((item, index) => /*#__PURE__*/React.createElement("div", {
|
|
13359
13341
|
key: index
|
|
13360
|
-
}, item === null || item === void 0 ? void 0 : item.connectionNo)) : "NA"), renderLabel(t("Sewerage Connection"), (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
13342
|
+
}, item === null || item === void 0 ? void 0 : item.connectionNo)) : "NA"), renderLabel(t("Sewerage Connection"), (formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails14 = formData.NDCDetails) === null || _formData$NDCDetails14 === void 0 ? void 0 : (_formData$NDCDetails15 = _formData$NDCDetails14.PropertyDetails) === null || _formData$NDCDetails15 === void 0 ? void 0 : (_formData$NDCDetails16 = _formData$NDCDetails15.sewerageConnection) === null || _formData$NDCDetails16 === void 0 ? void 0 : _formData$NDCDetails16.length) > 0 ? formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails17 = formData.NDCDetails) === null || _formData$NDCDetails17 === void 0 ? void 0 : (_formData$NDCDetails18 = _formData$NDCDetails17.PropertyDetails) === null || _formData$NDCDetails18 === void 0 ? void 0 : (_formData$NDCDetails19 = _formData$NDCDetails18.sewerageConnection) === null || _formData$NDCDetails19 === void 0 ? void 0 : _formData$NDCDetails19.map((item, index) => /*#__PURE__*/React.createElement("div", {
|
|
13361
13343
|
key: index
|
|
13362
|
-
}, item === null || item === void 0 ? void 0 : item.connectionNo)) : "NA"), renderLabel(t("Property ID"), formData === null || formData === void 0 ? void 0 : (_formData$
|
|
13344
|
+
}, item === null || item === void 0 ? void 0 : item.connectionNo)) : "NA"), renderLabel(t("Property ID"), formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails20 = formData.NDCDetails) === null || _formData$NDCDetails20 === void 0 ? void 0 : (_formData$NDCDetails21 = _formData$NDCDetails20.cpt) === null || _formData$NDCDetails21 === void 0 ? void 0 : _formData$NDCDetails21.id), renderLabel(t("Amount"), getData !== null && getData !== void 0 && getData.totalAmount ? new Intl.NumberFormat("en-IN", {
|
|
13363
13345
|
style: "currency",
|
|
13364
13346
|
currency: "INR"
|
|
13365
13347
|
}).format(getData === null || getData === void 0 ? void 0 : getData.totalAmount) : "NA")), /*#__PURE__*/React.createElement("h2", {
|
|
@@ -13709,8 +13691,8 @@ const PayWSBillModal = ({
|
|
|
13709
13691
|
};
|
|
13710
13692
|
|
|
13711
13693
|
const createEmployeeConfig$1 = [{
|
|
13712
|
-
head: "
|
|
13713
|
-
stepLabel: "
|
|
13694
|
+
head: "Application Details",
|
|
13695
|
+
stepLabel: "Application Details",
|
|
13714
13696
|
stepNumber: 1,
|
|
13715
13697
|
isStepEnabled: true,
|
|
13716
13698
|
type: "component",
|
|
@@ -13968,7 +13950,7 @@ const NewNDCStepFormOne$1 = ({
|
|
|
13968
13950
|
if (!(propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.email)) missingFields.push(t("NDC_MESSAGE_EMAIL"));
|
|
13969
13951
|
if (!(NDCReason !== null && NDCReason !== void 0 && NDCReason.code)) missingFields.push(t("NDC_MESSAGE_NDC_REASON"));
|
|
13970
13952
|
const nameRegex = /^[A-Za-z\s]+$/;
|
|
13971
|
-
const emailRegex = /^[
|
|
13953
|
+
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$/;
|
|
13972
13954
|
const mobileRegex = /^[6-9]\d{9}$/;
|
|
13973
13955
|
if (propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.firstName && !nameRegex.test(propertyDetails.firstName)) {
|
|
13974
13956
|
invalidFields.push(t("NDC_MESSAGE_FIRST_NAME_ONLY_ALPHABETS_ALLOWED"));
|
|
@@ -14202,7 +14184,7 @@ const MyApplications = ({
|
|
|
14202
14184
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, `${t("TL_MY_APPLICATIONS_HEADER")}`), data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.map((application, index) => {
|
|
14203
14185
|
var _application$Applicat, _application$Applicat2, _application$Applicat3, _application$Applicat4;
|
|
14204
14186
|
const filteredApplication = Object.fromEntries(Object.entries(application).filter(([key]) => key !== "Applications"));
|
|
14205
|
-
console.log("application?.Applications?.applicationStatus",
|
|
14187
|
+
console.log("application?.Applications?.applicationStatus", filteredApplication);
|
|
14206
14188
|
return /*#__PURE__*/React.createElement("div", {
|
|
14207
14189
|
key: `card-${index}`
|
|
14208
14190
|
}, /*#__PURE__*/React.createElement(Card, null, Object.keys(filteredApplication).filter(key => filteredApplication[key] !== null).map(item => /*#__PURE__*/React.createElement(KeyNote, {
|
|
@@ -14211,7 +14193,7 @@ const MyApplications = ({
|
|
|
14211
14193
|
})), (application === null || application === void 0 ? void 0 : (_application$Applicat = application.Applications) === null || _application$Applicat === void 0 ? void 0 : _application$Applicat.applicationStatus) != "PENDINGPAYMENT" && /*#__PURE__*/React.createElement(Link, {
|
|
14212
14194
|
to: `/digit-ui/citizen/ndc/search/application-overview/${application === null || application === void 0 ? void 0 : (_application$Applicat2 = application.Applications) === null || _application$Applicat2 === void 0 ? void 0 : _application$Applicat2.uuid}`
|
|
14213
14195
|
}, /*#__PURE__*/React.createElement(SubmitBar$1, {
|
|
14214
|
-
label: t("
|
|
14196
|
+
label: t("CS_VIEW_DETAILS")
|
|
14215
14197
|
})), (application === null || application === void 0 ? void 0 : (_application$Applicat3 = application.Applications) === null || _application$Applicat3 === void 0 ? void 0 : _application$Applicat3.applicationStatus) === "PENDINGPAYMENT" && /*#__PURE__*/React.createElement(Link, {
|
|
14216
14198
|
to: {
|
|
14217
14199
|
pathname: `/digit-ui/citizen/payment/collect/NDC/${application === null || application === void 0 ? void 0 : (_application$Applicat4 = application.Applications) === null || _application$Applicat4 === void 0 ? void 0 : _application$Applicat4.uuid}/${tenantId}?tenantId=${tenantId}`
|
|
@@ -14221,7 +14203,7 @@ const MyApplications = ({
|
|
|
14221
14203
|
marginTop: "10px"
|
|
14222
14204
|
}
|
|
14223
14205
|
}, /*#__PURE__*/React.createElement(SubmitBar$1, {
|
|
14224
|
-
label: t("
|
|
14206
|
+
label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT")
|
|
14225
14207
|
})))));
|
|
14226
14208
|
}));
|
|
14227
14209
|
};
|
|
@@ -14251,7 +14233,7 @@ const NDCResponseCitizen = props => {
|
|
|
14251
14233
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
|
|
14252
14234
|
message: "NDC Application Submitted Successfully",
|
|
14253
14235
|
applicationNumber: ndcCode,
|
|
14254
|
-
info: (nocData === null || nocData === void 0 ? void 0 : nocData.applicationStatus) == "REJECTED" ? "" : t(`
|
|
14236
|
+
info: (nocData === null || nocData === void 0 ? void 0 : nocData.applicationStatus) == "REJECTED" ? "" : t(`NDC_APPROVAL_NUMBER`),
|
|
14255
14237
|
successful: (nocData === null || nocData === void 0 ? void 0 : nocData.applicationStatus) == "REJECTED" ? false : true,
|
|
14256
14238
|
style: {
|
|
14257
14239
|
padding: "10px"
|
|
@@ -14274,7 +14256,7 @@ const NDCResponseCitizen = props => {
|
|
|
14274
14256
|
label: t("CORE_COMMON_GO_TO_NDC"),
|
|
14275
14257
|
onSubmit: onGoToNDC
|
|
14276
14258
|
}), /*#__PURE__*/React.createElement(SubmitBar$1, {
|
|
14277
|
-
label: t("
|
|
14259
|
+
label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
|
|
14278
14260
|
onSubmit: handlePayment
|
|
14279
14261
|
}))));
|
|
14280
14262
|
};
|