@mseva/digit-ui-module-ndc 1.0.28 → 1.0.30
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 +85 -57
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +85 -56
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1262,15 +1262,17 @@ const ApplicationOverview = () => {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
}, [applicationDetails]);
|
|
1264
1264
|
function onActionSelect(action) {
|
|
1265
|
+
var _displayData$applican;
|
|
1265
1266
|
const payload = {
|
|
1266
1267
|
Licenses: [action]
|
|
1267
1268
|
};
|
|
1269
|
+
const appNo = displayData === null || displayData === void 0 ? void 0 : (_displayData$applican = displayData.applicantData) === null || _displayData$applican === void 0 ? void 0 : _displayData$applican.applicationNo;
|
|
1268
1270
|
if ((action === null || action === void 0 ? void 0 : action.action) == "APPLY") {
|
|
1269
1271
|
submitAction(payload);
|
|
1270
1272
|
} else if ((action === null || action === void 0 ? void 0 : action.action) == "PAY") {
|
|
1271
|
-
var _displayData$applican;
|
|
1272
|
-
const appNo = displayData === null || displayData === void 0 ? void 0 : (_displayData$applican = displayData.applicantData) === null || _displayData$applican === void 0 ? void 0 : _displayData$applican.applicationNo;
|
|
1273
1273
|
history.push(`/digit-ui/employee/payment/collect/NDC/${appNo}/${tenantId}?tenantId=${tenantId}`);
|
|
1274
|
+
} else if ((action === null || action === void 0 ? void 0 : action.action) == "EDIT") {
|
|
1275
|
+
history.push(`/digit-ui/employee/ndc/create/${appNo}`);
|
|
1274
1276
|
} else {
|
|
1275
1277
|
setShowModal(true);
|
|
1276
1278
|
setSelectedAction(action);
|
|
@@ -8886,7 +8888,7 @@ const getTimelineCaptions$1 = (checkpoint, index, arr, t) => {
|
|
|
8886
8888
|
}, 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()))));
|
|
8887
8889
|
};
|
|
8888
8890
|
const CitizenApplicationOverview = () => {
|
|
8889
|
-
var _user, _user$info, _user$info$roles, _applicationDetails$A3, _applicationDetails$A4, _applicationDetails$A5, _applicationDetails$A6, _Object$entries, _displayData$NdcDetai2, _displayData$Document, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5;
|
|
8891
|
+
var _user, _user$info, _user$info$roles, _applicationDetails$A3, _applicationDetails$A4, _applicationDetails$A5, _applicationDetails$A6, _applicationDetails$A7, _applicationDetails$A8, _Object$entries, _displayData$NdcDetai2, _displayData$Document, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5;
|
|
8890
8892
|
const {
|
|
8891
8893
|
id
|
|
8892
8894
|
} = useParams();
|
|
@@ -9022,6 +9024,7 @@ const CitizenApplicationOverview = () => {
|
|
|
9022
9024
|
if (isLoading || isDetailsLoading) {
|
|
9023
9025
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
9024
9026
|
}
|
|
9027
|
+
console.log("applicationDetails", applicationDetails);
|
|
9025
9028
|
return /*#__PURE__*/React.createElement("div", {
|
|
9026
9029
|
className: "employee-main-application-details"
|
|
9027
9030
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -9035,11 +9038,11 @@ const CitizenApplicationOverview = () => {
|
|
|
9035
9038
|
className: "downLoadButton",
|
|
9036
9039
|
label: t("DOWNLOAD_CERTIFICATE"),
|
|
9037
9040
|
onClick: handleDownloadPdf
|
|
9038
|
-
}), (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, {
|
|
9041
|
+
}), ((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" || (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.applicationStatus) == "CITIZENACTIONREQUIRED") && /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar$1, {
|
|
9039
9042
|
label: t("COMMON_EDIT"),
|
|
9040
9043
|
onSubmit: () => {
|
|
9041
|
-
var _applicationDetails$
|
|
9042
|
-
const id = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
9044
|
+
var _applicationDetails$A9, _applicationDetails$A0;
|
|
9045
|
+
const id = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A9 = applicationDetails.Applications) === null || _applicationDetails$A9 === void 0 ? void 0 : (_applicationDetails$A0 = _applicationDetails$A9[0]) === null || _applicationDetails$A0 === void 0 ? void 0 : _applicationDetails$A0.uuid;
|
|
9043
9046
|
history.push(`/digit-ui/citizen/ndc/new-application/${id}`);
|
|
9044
9047
|
}
|
|
9045
9048
|
}))), /*#__PURE__*/React.createElement(Card, {
|
|
@@ -9228,6 +9231,7 @@ const SearchFormFieldsComponents = ({
|
|
|
9228
9231
|
t
|
|
9229
9232
|
} = useTranslation();
|
|
9230
9233
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
9234
|
+
console.log("searchFieldComponents", searchFieldComponents);
|
|
9231
9235
|
if (!isMobile) {
|
|
9232
9236
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
9233
9237
|
className: "search-container",
|
|
@@ -9248,9 +9252,6 @@ const SearchFormFieldsComponents = ({
|
|
|
9248
9252
|
})), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("CORE_COMMON_PHONE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, {
|
|
9249
9253
|
name: "phoneNumber",
|
|
9250
9254
|
inputRef: registerRef({})
|
|
9251
|
-
})), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("NDC_MSG_PROPERTY_LABEL")), /*#__PURE__*/React.createElement(TextInput, {
|
|
9252
|
-
name: "propertyId",
|
|
9253
|
-
inputRef: registerRef({})
|
|
9254
9255
|
})), /*#__PURE__*/React.createElement("div", {
|
|
9255
9256
|
className: "search-action-wrapper",
|
|
9256
9257
|
style: {
|
|
@@ -9554,6 +9555,7 @@ const Inbox = ({
|
|
|
9554
9555
|
const onSearchFormReset = setSearchFormValue => {
|
|
9555
9556
|
setSearchFormValue("sourceRefId", null);
|
|
9556
9557
|
setSearchFormValue("uuid", null);
|
|
9558
|
+
setSearchFormValue("phoneNumber", null);
|
|
9557
9559
|
dispatch({
|
|
9558
9560
|
action: "mutateSearchForm",
|
|
9559
9561
|
data: searchFormDefaultValues
|
|
@@ -11642,7 +11644,7 @@ const NewNDCStepForm = () => {
|
|
|
11642
11644
|
const [showToast, setShowToast] = useState(null);
|
|
11643
11645
|
const formState = useSelector(state => state.ndc.NDCForm);
|
|
11644
11646
|
const step = formState.step;
|
|
11645
|
-
const tenantId =
|
|
11647
|
+
const tenantId = window.localStorage.getItem("CITIZEN.CITY");
|
|
11646
11648
|
const id = window.location.pathname.split("/").pop();
|
|
11647
11649
|
const {
|
|
11648
11650
|
isLoading,
|
|
@@ -11703,7 +11705,7 @@ const NewNDCStepFormOne = ({
|
|
|
11703
11705
|
const checkFormData = useSelector(state => state.ndc.NDCForm.formData || {});
|
|
11704
11706
|
const tenantId = window.localStorage.getItem("CITIZEN.CITY");
|
|
11705
11707
|
function goNext(data) {
|
|
11706
|
-
var _checkFormData$apiDat, _checkFormData$apiDat2, _checkFormData$apiDat3;
|
|
11708
|
+
var _checkFormData$apiDat, _checkFormData$apiDat2, _checkFormData$apiDat3, _checkFormData$respon, _checkFormData$respon2;
|
|
11707
11709
|
const missingFields = validateStepData(currentStepData);
|
|
11708
11710
|
if (missingFields.length > 0) {
|
|
11709
11711
|
setError(`${missingFields[0]}`);
|
|
@@ -11713,7 +11715,7 @@ const NewNDCStepFormOne = ({
|
|
|
11713
11715
|
}, 3000);
|
|
11714
11716
|
return;
|
|
11715
11717
|
}
|
|
11716
|
-
if (checkFormData !== null && checkFormData !== void 0 && (_checkFormData$apiDat = checkFormData.apiData) !== null && _checkFormData$apiDat !== void 0 && (_checkFormData$apiDat2 = _checkFormData$apiDat.Applications) !== null && _checkFormData$apiDat2 !== void 0 && (_checkFormData$apiDat3 = _checkFormData$apiDat2[0]) !== null && _checkFormData$apiDat3 !== void 0 && _checkFormData$apiDat3.uuid) {
|
|
11718
|
+
if (checkFormData !== null && checkFormData !== void 0 && (_checkFormData$apiDat = checkFormData.apiData) !== null && _checkFormData$apiDat !== void 0 && (_checkFormData$apiDat2 = _checkFormData$apiDat.Applications) !== null && _checkFormData$apiDat2 !== void 0 && (_checkFormData$apiDat3 = _checkFormData$apiDat2[0]) !== null && _checkFormData$apiDat3 !== void 0 && _checkFormData$apiDat3.uuid || checkFormData !== null && checkFormData !== void 0 && (_checkFormData$respon = checkFormData.responseData) !== null && _checkFormData$respon !== void 0 && (_checkFormData$respon2 = _checkFormData$respon[0]) !== null && _checkFormData$respon2 !== void 0 && _checkFormData$respon2.uuid) {
|
|
11717
11719
|
onGoNext();
|
|
11718
11720
|
} else createApplication(data);
|
|
11719
11721
|
}
|
|
@@ -12002,7 +12004,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12002
12004
|
formState,
|
|
12003
12005
|
clearErrors
|
|
12004
12006
|
}) => {
|
|
12005
|
-
var _formData$cpt, _formData$cpt$details, _formData$cpt3, _Digit, _Digit$ComponentRegis, _formData$cpt4, _apiDataCheck$
|
|
12007
|
+
var _formData$cpt, _formData$cpt$details, _formData$cpt3, _Digit, _Digit$ComponentRegis, _formData$cpt4, _apiDataCheck$6, _propertyDetails$wate, _propertyDetails$sewe;
|
|
12006
12008
|
const {
|
|
12007
12009
|
control,
|
|
12008
12010
|
formState: localFormState,
|
|
@@ -12058,13 +12060,12 @@ const PropertyDetailsForm$1 = ({
|
|
|
12058
12060
|
t
|
|
12059
12061
|
});
|
|
12060
12062
|
useEffect(() => {
|
|
12061
|
-
var _formData$cpt2, _formData$cpt2$detail, _formData$cpt2$detail2, _owner$name, _formData$PropertyDet, _formData$PropertyDet2, _formData$PropertyDet3;
|
|
12062
|
-
console.log("coming here everytime", formData);
|
|
12063
|
+
var _formData$cpt2, _formData$cpt2$detail, _formData$cpt2$detail2, _apiDataCheck$, _apiDataCheck$$owners, _apiDataCheck$$owners2, _owner$name, _formData$PropertyDet, _formData$PropertyDet2, _formData$PropertyDet3;
|
|
12063
12064
|
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];
|
|
12065
|
+
const emailApi = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$ = apiDataCheck[0]) === null || _apiDataCheck$ === void 0 ? void 0 : (_apiDataCheck$$owners = _apiDataCheck$.owners) === null || _apiDataCheck$$owners === void 0 ? void 0 : (_apiDataCheck$$owners2 = _apiDataCheck$$owners[0]) === null || _apiDataCheck$$owners2 === void 0 ? void 0 : _apiDataCheck$$owners2.emailId;
|
|
12064
12066
|
const fullName = owner === null || owner === void 0 ? void 0 : (_owner$name = owner.name) === null || _owner$name === void 0 ? void 0 : _owner$name.split(" ");
|
|
12065
12067
|
const firstName = owner === null || owner === void 0 ? void 0 : owner.name;
|
|
12066
|
-
|
|
12067
|
-
const email = (owner === null || owner === void 0 ? void 0 : owner.emailId) || (formData === null || formData === void 0 ? void 0 : (_formData$PropertyDet = formData.PropertyDetails) === null || _formData$PropertyDet === void 0 ? void 0 : _formData$PropertyDet.email) || "";
|
|
12068
|
+
const email = (owner === null || owner === void 0 ? void 0 : owner.emailId) || (formData === null || formData === void 0 ? void 0 : (_formData$PropertyDet = formData.PropertyDetails) === null || _formData$PropertyDet === void 0 ? void 0 : _formData$PropertyDet.email) || emailApi || "";
|
|
12068
12069
|
const mobileNumber = owner === null || owner === void 0 ? void 0 : owner.mobileNumber;
|
|
12069
12070
|
const address = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
12070
12071
|
const combinedObject = {};
|
|
@@ -12082,16 +12083,13 @@ const PropertyDetailsForm$1 = ({
|
|
|
12082
12083
|
...combinedObject
|
|
12083
12084
|
};
|
|
12084
12085
|
});
|
|
12085
|
-
}, [formData === null || formData === void 0 ? void 0 : (_formData$cpt3 = formData.cpt) === null || _formData$cpt3 === void 0 ? void 0 : _formData$cpt3.details]);
|
|
12086
|
-
useEffect(() => {
|
|
12087
|
-
console.log("updated propertyDetails", propertyDetails);
|
|
12088
|
-
}, [propertyDetails]);
|
|
12086
|
+
}, [formData === null || formData === void 0 ? void 0 : (_formData$cpt3 = formData.cpt) === null || _formData$cpt3 === void 0 ? void 0 : _formData$cpt3.details, apiDataCheck]);
|
|
12089
12087
|
useEffect(() => {
|
|
12090
|
-
var _apiDataCheck
|
|
12088
|
+
var _apiDataCheck$2;
|
|
12091
12089
|
let waterConnection;
|
|
12092
|
-
if (apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$ = apiDataCheck[0]) !== null && _apiDataCheck$ !== void 0 && _apiDataCheck
|
|
12093
|
-
var _apiDataCheck$
|
|
12094
|
-
const resData = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$
|
|
12090
|
+
if (apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$2 = apiDataCheck[0]) !== null && _apiDataCheck$2 !== void 0 && _apiDataCheck$2.NdcDetails) {
|
|
12091
|
+
var _apiDataCheck$3;
|
|
12092
|
+
const resData = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$3 = apiDataCheck[0]) === null || _apiDataCheck$3 === void 0 ? void 0 : _apiDataCheck$3.NdcDetails.filter(item => {
|
|
12095
12093
|
return item.businessService == "WS";
|
|
12096
12094
|
});
|
|
12097
12095
|
waterConnection = (resData === null || resData === void 0 ? void 0 : resData.map(item => ({
|
|
@@ -12116,11 +12114,11 @@ const PropertyDetailsForm$1 = ({
|
|
|
12116
12114
|
}));
|
|
12117
12115
|
}, [waterConnectionData, apiDataCheck]);
|
|
12118
12116
|
useEffect(() => {
|
|
12119
|
-
var _apiDataCheck$
|
|
12117
|
+
var _apiDataCheck$4;
|
|
12120
12118
|
let sewerageConnection;
|
|
12121
|
-
if (apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$
|
|
12122
|
-
var _apiDataCheck$
|
|
12123
|
-
const resData = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$
|
|
12119
|
+
if (apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$4 = apiDataCheck[0]) !== null && _apiDataCheck$4 !== void 0 && _apiDataCheck$4.NdcDetails) {
|
|
12120
|
+
var _apiDataCheck$5;
|
|
12121
|
+
const resData = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$5 = apiDataCheck[0]) === null || _apiDataCheck$5 === void 0 ? void 0 : _apiDataCheck$5.NdcDetails.filter(item => {
|
|
12124
12122
|
return item.businessService == "SW";
|
|
12125
12123
|
});
|
|
12126
12124
|
sewerageConnection = (resData === null || resData === void 0 ? void 0 : resData.map(item => ({
|
|
@@ -12326,7 +12324,6 @@ const PropertyDetailsForm$1 = ({
|
|
|
12326
12324
|
}
|
|
12327
12325
|
}
|
|
12328
12326
|
} catch (error) {
|
|
12329
|
-
console.error("Error fetching bill:", error);
|
|
12330
12327
|
setPropertyLoader(false);
|
|
12331
12328
|
setShowToast({
|
|
12332
12329
|
error: true,
|
|
@@ -12406,7 +12403,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12406
12403
|
style: {
|
|
12407
12404
|
marginBottom: "16px"
|
|
12408
12405
|
}
|
|
12409
|
-
}, ((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$
|
|
12406
|
+
}, ((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, {
|
|
12410
12407
|
style: {
|
|
12411
12408
|
marginTop: "40px"
|
|
12412
12409
|
}
|
|
@@ -12421,7 +12418,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12421
12418
|
width: "100%"
|
|
12422
12419
|
}
|
|
12423
12420
|
}, propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$wate = propertyDetails.waterConnection) === null || _propertyDetails$wate === void 0 ? void 0 : _propertyDetails$wate.map((item, index) => {
|
|
12424
|
-
var _apiDataCheck$
|
|
12421
|
+
var _apiDataCheck$7, _item$billData, _item$billData2, _item$billData3, _item$billData4;
|
|
12425
12422
|
return /*#__PURE__*/React.createElement("div", {
|
|
12426
12423
|
className: "ndc_property_search",
|
|
12427
12424
|
key: index,
|
|
@@ -12462,7 +12459,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12462
12459
|
alignItems: "center",
|
|
12463
12460
|
gap: "12px"
|
|
12464
12461
|
}
|
|
12465
|
-
}, !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$
|
|
12462
|
+
}, !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$7 = apiDataCheck[0]) !== null && _apiDataCheck$7 !== void 0 && _apiDataCheck$7.NdcDetails) && (item === null || item === void 0 ? void 0 : item.connectionNo) && !(item !== null && item !== void 0 && (_item$billData = item.billData) !== null && _item$billData !== void 0 && _item$billData.id) && (item === null || item === void 0 ? void 0 : (_item$billData2 = item.billData) === null || _item$billData2 === void 0 ? void 0 : _item$billData2.totalAmount) != 0 && /*#__PURE__*/React.createElement("button", {
|
|
12466
12463
|
className: "submit-bar",
|
|
12467
12464
|
type: "button",
|
|
12468
12465
|
style: {
|
|
@@ -12529,7 +12526,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12529
12526
|
width: "100%"
|
|
12530
12527
|
}
|
|
12531
12528
|
}, propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$sewe = propertyDetails.sewerageConnection) === null || _propertyDetails$sewe === void 0 ? void 0 : _propertyDetails$sewe.map((item, index) => {
|
|
12532
|
-
var _apiDataCheck$
|
|
12529
|
+
var _apiDataCheck$8, _item$billData5, _item$billData6, _item$billData7, _item$billData8;
|
|
12533
12530
|
return /*#__PURE__*/React.createElement("div", {
|
|
12534
12531
|
className: "ndc_property_search",
|
|
12535
12532
|
key: index,
|
|
@@ -12570,7 +12567,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12570
12567
|
alignItems: "center",
|
|
12571
12568
|
gap: "12px"
|
|
12572
12569
|
}
|
|
12573
|
-
}, !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$
|
|
12570
|
+
}, !(apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$8 = apiDataCheck[0]) !== null && _apiDataCheck$8 !== void 0 && _apiDataCheck$8.NdcDetails) && (item === null || item === void 0 ? void 0 : item.connectionNo) && !(item !== null && item !== void 0 && (_item$billData5 = item.billData) !== null && _item$billData5 !== void 0 && _item$billData5.id) && (item === null || item === void 0 ? void 0 : (_item$billData6 = item.billData) === null || _item$billData6 === void 0 ? void 0 : _item$billData6.totalAmount) != 0 && /*#__PURE__*/React.createElement("button", {
|
|
12574
12571
|
className: "submit-bar",
|
|
12575
12572
|
type: "button",
|
|
12576
12573
|
style: {
|
|
@@ -12849,6 +12846,11 @@ const PropertySearchNSummary = ({
|
|
|
12849
12846
|
setPropertyId(ptFromApi.consumerCode);
|
|
12850
12847
|
setSearchPropertyId(ptFromApi.consumerCode);
|
|
12851
12848
|
setNoDue(true);
|
|
12849
|
+
setPropertyDues({
|
|
12850
|
+
dues: {
|
|
12851
|
+
totalAmount: 0
|
|
12852
|
+
}
|
|
12853
|
+
});
|
|
12852
12854
|
onSelect(config.key, {
|
|
12853
12855
|
...formData[config.key],
|
|
12854
12856
|
id: ptFromApi.consumerCode
|
|
@@ -13136,9 +13138,21 @@ const SelectNDCDocuments = ({
|
|
|
13136
13138
|
}) => {
|
|
13137
13139
|
var _formData$documents, _data$NDC;
|
|
13138
13140
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
13141
|
+
const checkFormData = useSelector(state => state.ndc.NDCForm.formData || {});
|
|
13139
13142
|
const stateId = Digit.ULBService.getStateId();
|
|
13140
13143
|
const [documents, setDocuments] = useState((formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : _formData$documents.documents) || []);
|
|
13141
13144
|
const [error, setError] = useState(null);
|
|
13145
|
+
useEffect(() => {
|
|
13146
|
+
var _checkFormData$respon, _checkFormData$respon2, _checkFormData$respon3;
|
|
13147
|
+
if (checkFormData !== null && checkFormData !== void 0 && (_checkFormData$respon = checkFormData.responseData) !== null && _checkFormData$respon !== void 0 && (_checkFormData$respon2 = _checkFormData$respon[0]) !== null && _checkFormData$respon2 !== void 0 && (_checkFormData$respon3 = _checkFormData$respon2.Documents) !== null && _checkFormData$respon3 !== void 0 && _checkFormData$respon3.length) {
|
|
13148
|
+
const apiDocs = checkFormData.responseData[0].Documents.map(doc => ({
|
|
13149
|
+
documentType: doc.documentType,
|
|
13150
|
+
fileStoreId: doc.documentAttachment,
|
|
13151
|
+
documentUid: doc.documentAttachment
|
|
13152
|
+
}));
|
|
13153
|
+
setDocuments(apiDocs);
|
|
13154
|
+
}
|
|
13155
|
+
}, [checkFormData]);
|
|
13142
13156
|
const {
|
|
13143
13157
|
action = "create"
|
|
13144
13158
|
} = Digit.Hooks.useQueryParams();
|
|
@@ -13186,13 +13200,9 @@ function SelectDocument({
|
|
|
13186
13200
|
t,
|
|
13187
13201
|
document: doc,
|
|
13188
13202
|
setDocuments,
|
|
13189
|
-
error,
|
|
13190
13203
|
setError,
|
|
13191
13204
|
documents,
|
|
13192
|
-
action,
|
|
13193
|
-
formData,
|
|
13194
13205
|
setFormError,
|
|
13195
|
-
clearFormErrors,
|
|
13196
13206
|
config,
|
|
13197
13207
|
formState
|
|
13198
13208
|
}) {
|
|
@@ -13206,8 +13216,11 @@ function SelectDocument({
|
|
|
13206
13216
|
function selectfile(e) {
|
|
13207
13217
|
setFile(e.target.files[0]);
|
|
13208
13218
|
}
|
|
13209
|
-
|
|
13210
|
-
|
|
13219
|
+
useEffect(() => {
|
|
13220
|
+
if (filteredDocument !== null && filteredDocument !== void 0 && filteredDocument.fileStoreId) {
|
|
13221
|
+
setUploadedFile(filteredDocument.fileStoreId);
|
|
13222
|
+
}
|
|
13223
|
+
}, [filteredDocument]);
|
|
13211
13224
|
useEffect(() => {
|
|
13212
13225
|
if (uploadedFile) {
|
|
13213
13226
|
setDocuments(prev => {
|
|
@@ -13225,7 +13238,7 @@ function SelectDocument({
|
|
|
13225
13238
|
} else if (uploadedFile === null) {
|
|
13226
13239
|
setDocuments(prev => prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (doc === null || doc === void 0 ? void 0 : doc.code)));
|
|
13227
13240
|
}
|
|
13228
|
-
}, [uploadedFile
|
|
13241
|
+
}, [uploadedFile]);
|
|
13229
13242
|
useEffect(() => {
|
|
13230
13243
|
(async () => {
|
|
13231
13244
|
setError(null);
|
|
@@ -13348,7 +13361,7 @@ const NDCSummary = ({
|
|
|
13348
13361
|
goNext,
|
|
13349
13362
|
onGoBack
|
|
13350
13363
|
}) => {
|
|
13351
|
-
var _formData$DocummentDe, _formData$DocummentDe2, _formData$
|
|
13364
|
+
var _formData$DocummentDe, _formData$DocummentDe2, _formData$apiData, _formData$apiData$App, _formData$apiData$App2, _formData$responseDat, _formData$responseDat2, _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;
|
|
13352
13365
|
const {
|
|
13353
13366
|
pathname: url
|
|
13354
13367
|
} = useLocation();
|
|
@@ -13362,6 +13375,7 @@ const NDCSummary = ({
|
|
|
13362
13375
|
let user = Digit.UserService.getUser();
|
|
13363
13376
|
console.log("formData", formData);
|
|
13364
13377
|
let docs = formData === null || formData === void 0 ? void 0 : (_formData$DocummentDe = formData.DocummentDetails) === null || _formData$DocummentDe === void 0 ? void 0 : (_formData$DocummentDe2 = _formData$DocummentDe.documents) === null || _formData$DocummentDe2 === void 0 ? void 0 : _formData$DocummentDe2.documents;
|
|
13378
|
+
const appId = (formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$App = _formData$apiData.Applications) === null || _formData$apiData$App === void 0 ? void 0 : (_formData$apiData$App2 = _formData$apiData$App[0]) === null || _formData$apiData$App2 === void 0 ? void 0 : _formData$apiData$App2.uuid) || (formData === null || formData === void 0 ? void 0 : (_formData$responseDat = formData.responseData) === null || _formData$responseDat === void 0 ? void 0 : (_formData$responseDat2 = _formData$responseDat[0]) === null || _formData$responseDat2 === void 0 ? void 0 : _formData$responseDat2.uuid);
|
|
13365
13379
|
const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
|
|
13366
13380
|
const isCitizen = window.location.href.includes("citizen");
|
|
13367
13381
|
const [getData, setData] = useState();
|
|
@@ -13371,10 +13385,10 @@ const NDCSummary = ({
|
|
|
13371
13385
|
};
|
|
13372
13386
|
Digit.Hooks.useClickOutside(menuRef, closeMenu, displayMenu);
|
|
13373
13387
|
const fetchCalculations = async () => {
|
|
13374
|
-
var
|
|
13388
|
+
var _response$Calculation, _response$Calculation2, _response$Calculation3;
|
|
13375
13389
|
const payload = {
|
|
13376
13390
|
CalculationCriteria: [{
|
|
13377
|
-
applicationNumber:
|
|
13391
|
+
applicationNumber: appId,
|
|
13378
13392
|
tenantId: tenantId
|
|
13379
13393
|
}]
|
|
13380
13394
|
};
|
|
@@ -13393,7 +13407,7 @@ const NDCSummary = ({
|
|
|
13393
13407
|
}, []);
|
|
13394
13408
|
const workflowDetails = Digit.Hooks.useWorkflowDetails({
|
|
13395
13409
|
tenantId: tenantId,
|
|
13396
|
-
id:
|
|
13410
|
+
id: appId,
|
|
13397
13411
|
moduleCode: "ndc-services"
|
|
13398
13412
|
});
|
|
13399
13413
|
const userRoles = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles = _user$info.roles) === null || _user$info$roles === void 0 ? void 0 : _user$info$roles.map(e => e.code);
|
|
@@ -13412,6 +13426,7 @@ const NDCSummary = ({
|
|
|
13412
13426
|
goNext(action);
|
|
13413
13427
|
}
|
|
13414
13428
|
console.log("workflowDetails", workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.nextActions);
|
|
13429
|
+
console.log("actions", actions);
|
|
13415
13430
|
const pageStyle = {
|
|
13416
13431
|
padding: "2rem",
|
|
13417
13432
|
backgroundColor: "#f9f9f9",
|
|
@@ -13538,15 +13553,24 @@ const NDCNewFormSummaryStepThreeCitizen = ({
|
|
|
13538
13553
|
}
|
|
13539
13554
|
};
|
|
13540
13555
|
function mapToNDCPayload(inputData, actionStatus) {
|
|
13541
|
-
var _Digit$UserService$ge, _formData$
|
|
13556
|
+
var _Digit$UserService$ge, _formData$NDCDetails, _formData$NDCDetails$, _formData$NDCDetails2, _formData$NDCDetails3, _formData$NDCDetails4, _formData$NDCDetails5, _formData$NDCDetails6, _formData$NDCDetails7, _formData$NDCDetails8, _formData$NDCDetails9, _formData$responseDat, _formData$apiData, _formData$apiData$App, _inputData$DocummentD, _inputData$DocummentD2;
|
|
13542
13557
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
13558
|
+
const owners = [{
|
|
13559
|
+
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} ${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.lastName}`.trim(),
|
|
13560
|
+
mobileNumber: 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.mobileNumber,
|
|
13561
|
+
gender: 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.gender,
|
|
13562
|
+
emailId: formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails8 = formData.NDCDetails) === null || _formData$NDCDetails8 === void 0 ? void 0 : (_formData$NDCDetails9 = _formData$NDCDetails8.PropertyDetails) === null || _formData$NDCDetails9 === void 0 ? void 0 : _formData$NDCDetails9.email,
|
|
13563
|
+
type: "CITIZEN"
|
|
13564
|
+
}];
|
|
13565
|
+
const baseApplication = (formData === null || formData === void 0 ? void 0 : (_formData$responseDat = formData.responseData) === null || _formData$responseDat === void 0 ? void 0 : _formData$responseDat[0]) || (formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$App = _formData$apiData.Applications) === null || _formData$apiData$App === void 0 ? void 0 : _formData$apiData$App[0]) || {};
|
|
13543
13566
|
const updatedApplication = {
|
|
13544
|
-
...
|
|
13567
|
+
...baseApplication,
|
|
13545
13568
|
workflow: {
|
|
13546
|
-
...(
|
|
13569
|
+
...(baseApplication === null || baseApplication === void 0 ? void 0 : baseApplication.workflow),
|
|
13547
13570
|
action: actionStatus
|
|
13548
13571
|
},
|
|
13549
|
-
|
|
13572
|
+
owners: owners,
|
|
13573
|
+
NdcDetails: baseApplication === null || baseApplication === void 0 ? void 0 : baseApplication.NdcDetails,
|
|
13550
13574
|
Documents: []
|
|
13551
13575
|
};
|
|
13552
13576
|
((inputData === null || inputData === void 0 ? void 0 : (_inputData$DocummentD = inputData.DocummentDetails) === null || _inputData$DocummentD === void 0 ? void 0 : (_inputData$DocummentD2 = _inputData$DocummentD.documents) === null || _inputData$DocummentD2 === void 0 ? void 0 : _inputData$DocummentD2.documents) || []).forEach(doc => {
|
|
@@ -13933,7 +13957,7 @@ const NewNDCStepFormOne$1 = ({
|
|
|
13933
13957
|
const checkFormData = useSelector(state => state.ndc.NDCForm.formData || {});
|
|
13934
13958
|
const tenantId = window.localStorage.getItem("Employee.tenant-id");
|
|
13935
13959
|
function goNext(data) {
|
|
13936
|
-
var _checkFormData$apiDat, _checkFormData$apiDat2, _checkFormData$apiDat3;
|
|
13960
|
+
var _checkFormData$apiDat, _checkFormData$apiDat2, _checkFormData$apiDat3, _checkFormData$respon, _checkFormData$respon2;
|
|
13937
13961
|
const missingFields = validateStepData(currentStepData);
|
|
13938
13962
|
if (missingFields.length > 0) {
|
|
13939
13963
|
setError(`${missingFields[0]}`);
|
|
@@ -13943,9 +13967,11 @@ const NewNDCStepFormOne$1 = ({
|
|
|
13943
13967
|
}, 3000);
|
|
13944
13968
|
return;
|
|
13945
13969
|
}
|
|
13946
|
-
|
|
13970
|
+
console.log("checkFormData", checkFormData);
|
|
13971
|
+
if (checkFormData !== null && checkFormData !== void 0 && (_checkFormData$apiDat = checkFormData.apiData) !== null && _checkFormData$apiDat !== void 0 && (_checkFormData$apiDat2 = _checkFormData$apiDat.Applications) !== null && _checkFormData$apiDat2 !== void 0 && (_checkFormData$apiDat3 = _checkFormData$apiDat2[0]) !== null && _checkFormData$apiDat3 !== void 0 && _checkFormData$apiDat3.uuid || checkFormData !== null && checkFormData !== void 0 && (_checkFormData$respon = checkFormData.responseData) !== null && _checkFormData$respon !== void 0 && (_checkFormData$respon2 = _checkFormData$respon[0]) !== null && _checkFormData$respon2 !== void 0 && _checkFormData$respon2.uuid) {
|
|
13947
13972
|
onGoNext();
|
|
13948
13973
|
} else createApplication(data);
|
|
13974
|
+
onGoNext();
|
|
13949
13975
|
}
|
|
13950
13976
|
const createApplication = async data => {
|
|
13951
13977
|
var _Digit$UserService$ge, _data$PropertyDetails, _data$PropertyDetails2, _data$PropertyDetails3, _data$PropertyDetails4, _data$PropertyDetails5, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails1, _data$PropertyDetails10, _data$NDCReason, _response$ResponseInf;
|
|
@@ -14207,6 +14233,7 @@ const NDCNewFormSummaryStepThreeEmployee = ({
|
|
|
14207
14233
|
const dispatch = useDispatch();
|
|
14208
14234
|
const history = useHistory();
|
|
14209
14235
|
const tenantId = window.localStorage.getItem("CITIZEN.CITY");
|
|
14236
|
+
const checkFormData = useSelector(state => state.ndc.NDCForm.formData || {});
|
|
14210
14237
|
const formData = useSelector(state => state.ndc.NDCForm.formData || {});
|
|
14211
14238
|
console.log("formData", formData);
|
|
14212
14239
|
const goNext = async action => {
|
|
@@ -14226,8 +14253,9 @@ const NDCNewFormSummaryStepThreeEmployee = ({
|
|
|
14226
14253
|
}
|
|
14227
14254
|
};
|
|
14228
14255
|
function mapToNDCPayload(inputData, actionStatus) {
|
|
14229
|
-
var _Digit$UserService$ge, _formData$NDCDetails, _formData$NDCDetails$, _formData$NDCDetails2, _formData$NDCDetails3, _formData$NDCDetails4, _formData$NDCDetails5, _formData$NDCDetails6, _formData$NDCDetails7, _formData$NDCDetails8, _formData$NDCDetails9, _formData$
|
|
14256
|
+
var _Digit$UserService$ge, _formData$NDCDetails, _formData$NDCDetails$, _formData$NDCDetails2, _formData$NDCDetails3, _formData$NDCDetails4, _formData$NDCDetails5, _formData$NDCDetails6, _formData$NDCDetails7, _formData$NDCDetails8, _formData$NDCDetails9, _formData$responseDat, _formData$apiData, _formData$apiData$App, _inputData$DocummentD, _inputData$DocummentD2;
|
|
14230
14257
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
14258
|
+
console.log("checkFormData", formData);
|
|
14231
14259
|
const owners = [{
|
|
14232
14260
|
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} ${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.lastName}`.trim(),
|
|
14233
14261
|
mobileNumber: 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.mobileNumber,
|
|
@@ -14235,14 +14263,15 @@ const NDCNewFormSummaryStepThreeEmployee = ({
|
|
|
14235
14263
|
emailId: formData === null || formData === void 0 ? void 0 : (_formData$NDCDetails8 = formData.NDCDetails) === null || _formData$NDCDetails8 === void 0 ? void 0 : (_formData$NDCDetails9 = _formData$NDCDetails8.PropertyDetails) === null || _formData$NDCDetails9 === void 0 ? void 0 : _formData$NDCDetails9.email,
|
|
14236
14264
|
type: "CITIZEN"
|
|
14237
14265
|
}];
|
|
14266
|
+
const baseApplication = (formData === null || formData === void 0 ? void 0 : (_formData$responseDat = formData.responseData) === null || _formData$responseDat === void 0 ? void 0 : _formData$responseDat[0]) || (formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$App = _formData$apiData.Applications) === null || _formData$apiData$App === void 0 ? void 0 : _formData$apiData$App[0]) || {};
|
|
14238
14267
|
const updatedApplication = {
|
|
14239
|
-
...
|
|
14268
|
+
...baseApplication,
|
|
14240
14269
|
workflow: {
|
|
14241
|
-
...(
|
|
14270
|
+
...(baseApplication === null || baseApplication === void 0 ? void 0 : baseApplication.workflow),
|
|
14242
14271
|
action: actionStatus
|
|
14243
14272
|
},
|
|
14244
14273
|
owners: owners,
|
|
14245
|
-
NdcDetails:
|
|
14274
|
+
NdcDetails: baseApplication === null || baseApplication === void 0 ? void 0 : baseApplication.NdcDetails,
|
|
14246
14275
|
Documents: []
|
|
14247
14276
|
};
|
|
14248
14277
|
((inputData === null || inputData === void 0 ? void 0 : (_inputData$DocummentD = inputData.DocummentDetails) === null || _inputData$DocummentD === void 0 ? void 0 : (_inputData$DocummentD2 = _inputData$DocummentD.documents) === null || _inputData$DocummentD2 === void 0 ? void 0 : _inputData$DocummentD2.documents) || []).forEach(doc => {
|