@mseva/digit-ui-module-ndc 1.0.35 → 1.0.37
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 +411 -103
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Card, Banner, ActionBar, SubmitBar as SubmitBar$1, PrivateRoute, BreadCrumb, BackButton, AppContainer, Loader, Dropdown, UploadFile, Modal, FormComposer, Toast, CardSubHeader, StatusTable, Row, TextInput, CardLabel, FilterFormField, RadioButtons, CheckPoint, ConnectingCheckPoints, DisplayPhotos, Menu, LinkButton, EmployeeModuleCard, SearchField, CheckBox, ComplaintIcon, Header, InboxComposer, MobileNumber, CardLabelError, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, CardHeader, LabelFieldPair, DeleteIcon, KeyNote } from '@mseva/digit-ui-react-components';
|
|
1
|
+
import { Card, Banner, ActionBar, SubmitBar as SubmitBar$1, PrivateRoute, BreadCrumb, BackButton, AppContainer, Loader as Loader$1, Dropdown, UploadFile, Modal, FormComposer, Toast, CardSubHeader, StatusTable, Row, TextInput, CardLabel, FilterFormField, RadioButtons, CheckPoint, ConnectingCheckPoints, DisplayPhotos, Menu, LinkButton, EmployeeModuleCard, SearchField, CheckBox, ComplaintIcon, Header, InboxComposer, MobileNumber, CardLabelError, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, CardHeader, LabelFieldPair, DeleteIcon, CardSectionHeader, KeyNote } from '@mseva/digit-ui-react-components';
|
|
2
2
|
import React, { Fragment as Fragment$1, useState, useEffect, useRef, useMemo, useReducer, useCallback, forwardRef } from 'react';
|
|
3
3
|
import { useHistory, useLocation, Switch, Route, useRouteMatch, useParams, Link } from 'react-router-dom';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
@@ -781,7 +781,7 @@ function NDCDocument$1({
|
|
|
781
781
|
documentType: doc.documentType.replace(/\./g, "_")
|
|
782
782
|
}));
|
|
783
783
|
if (isLoading) {
|
|
784
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
784
|
+
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
785
785
|
}
|
|
786
786
|
return /*#__PURE__*/React.createElement("div", {
|
|
787
787
|
style: {
|
|
@@ -911,7 +911,7 @@ const NDCModal = ({
|
|
|
911
911
|
errorOne,
|
|
912
912
|
closeToastOne
|
|
913
913
|
}) => {
|
|
914
|
-
var _action$
|
|
914
|
+
var _action$state;
|
|
915
915
|
const [config, setConfig] = useState({});
|
|
916
916
|
const [defaultValues, setDefaultValues] = useState({});
|
|
917
917
|
const [approvers, setApprovers] = useState([]);
|
|
@@ -921,12 +921,14 @@ const NDCModal = ({
|
|
|
921
921
|
const [error, setError] = useState(null);
|
|
922
922
|
const [financialYears, setFinancialYears] = useState([]);
|
|
923
923
|
const [selectedFinancialYear, setSelectedFinancialYear] = useState(null);
|
|
924
|
+
const checkRole = action === null || action === void 0 ? void 0 : (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.actions;
|
|
925
|
+
const allRoles = [...new Set(checkRole === null || checkRole === void 0 ? void 0 : checkRole.flatMap(a => a.roles))];
|
|
924
926
|
const {
|
|
925
927
|
data: approverData,
|
|
926
928
|
isLoading: PTALoading
|
|
927
929
|
} = Digit.Hooks.useEmployeeSearch(tenantId, {
|
|
928
|
-
roles:
|
|
929
|
-
code:
|
|
930
|
+
roles: allRoles === null || allRoles === void 0 ? void 0 : allRoles.map(role => ({
|
|
931
|
+
code: role
|
|
930
932
|
})),
|
|
931
933
|
isActive: true
|
|
932
934
|
}, {
|
|
@@ -1059,7 +1061,7 @@ const NDCModal = ({
|
|
|
1059
1061
|
label: errorOne,
|
|
1060
1062
|
isDleteBtn: true,
|
|
1061
1063
|
onClose: closeToastOne
|
|
1062
|
-
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
1064
|
+
})) : /*#__PURE__*/React.createElement(Loader$1, null);
|
|
1063
1065
|
};
|
|
1064
1066
|
|
|
1065
1067
|
const getTimelineCaptions = (checkpoint, index, arr, t) => {
|
|
@@ -1153,7 +1155,7 @@ const ApplicationOverview = () => {
|
|
|
1153
1155
|
isLoading,
|
|
1154
1156
|
data: applicationDetails
|
|
1155
1157
|
} = Digit.Hooks.ndc.useSearchEmployeeApplication({
|
|
1156
|
-
|
|
1158
|
+
applicationNo: id
|
|
1157
1159
|
}, tenantId);
|
|
1158
1160
|
const workflowDetails = Digit.Hooks.useWorkflowDetails({
|
|
1159
1161
|
tenantId: tenantId,
|
|
@@ -1161,6 +1163,7 @@ const ApplicationOverview = () => {
|
|
|
1161
1163
|
moduleCode: "ndc-services",
|
|
1162
1164
|
role: "EMPLOYEE"
|
|
1163
1165
|
});
|
|
1166
|
+
console.log("workflowDetails", workflowDetails);
|
|
1164
1167
|
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data = workflowDetails.data) !== null && _workflowDetails$data !== void 0 && (_workflowDetails$data2 = _workflowDetails$data.actionState) !== null && _workflowDetails$data2 !== void 0 && _workflowDetails$data2.nextActions && !workflowDetails.isLoading) workflowDetails.data.actionState.nextActions = [...(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.nextActions)];
|
|
1165
1168
|
if (workflowDetails && workflowDetails.data && !workflowDetails.isLoading) {
|
|
1166
1169
|
var _workflowDetails$data4, _workflowDetails$data5;
|
|
@@ -1215,6 +1218,7 @@ const ApplicationOverview = () => {
|
|
|
1215
1218
|
return (_e$roles2 = e.roles) === null || _e$roles2 === void 0 ? void 0 : _e$roles2.includes(role);
|
|
1216
1219
|
})) || !e.roles;
|
|
1217
1220
|
}));
|
|
1221
|
+
console.log("actions", actions);
|
|
1218
1222
|
const [displayMenu, setDisplayMenu] = useState(false);
|
|
1219
1223
|
const [selectedAction, setSelectedAction] = useState(null);
|
|
1220
1224
|
const [showModal, setShowModal] = useState(false);
|
|
@@ -1249,7 +1253,7 @@ const ApplicationOverview = () => {
|
|
|
1249
1253
|
mobile: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners2 = ndcObject.owners) === null || _ndcObject$owners2 === void 0 ? void 0 : (_ndcObject$owners2$ = _ndcObject$owners2[0]) === null || _ndcObject$owners2$ === void 0 ? void 0 : _ndcObject$owners2$.mobileNumber,
|
|
1250
1254
|
email: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners3 = ndcObject.owners) === null || _ndcObject$owners3 === void 0 ? void 0 : (_ndcObject$owners3$ = _ndcObject$owners3[0]) === null || _ndcObject$owners3$ === void 0 ? void 0 : _ndcObject$owners3$.emailId,
|
|
1251
1255
|
address: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$NdcDetails = ndcObject.NdcDetails) === null || _ndcObject$NdcDetails === void 0 ? void 0 : (_ndcObject$NdcDetails2 = _ndcObject$NdcDetails[0]) === null || _ndcObject$NdcDetails2 === void 0 ? void 0 : (_ndcObject$NdcDetails3 = _ndcObject$NdcDetails2.additionalDetails) === null || _ndcObject$NdcDetails3 === void 0 ? void 0 : _ndcObject$NdcDetails3.propertyAddress,
|
|
1252
|
-
applicationNo: ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.
|
|
1256
|
+
applicationNo: ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.applicationNo
|
|
1253
1257
|
};
|
|
1254
1258
|
const Documents = removeDuplicatesByUUID((ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.Documents) || []);
|
|
1255
1259
|
const NdcDetails = (_removeDuplicatesByUU = removeDuplicatesByUUID((ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.NdcDetails) || [])) === null || _removeDuplicatesByUU === void 0 ? void 0 : _removeDuplicatesByUU.map(item => {
|
|
@@ -1278,6 +1282,7 @@ const ApplicationOverview = () => {
|
|
|
1278
1282
|
}, [applicationDetails]);
|
|
1279
1283
|
function onActionSelect(action) {
|
|
1280
1284
|
var _displayData$applican;
|
|
1285
|
+
console.log("action====???", action);
|
|
1281
1286
|
const payload = {
|
|
1282
1287
|
Licenses: [action]
|
|
1283
1288
|
};
|
|
@@ -1309,9 +1314,14 @@ const ApplicationOverview = () => {
|
|
|
1309
1314
|
workflow: {}
|
|
1310
1315
|
};
|
|
1311
1316
|
const filtData = data === null || data === void 0 ? void 0 : (_data$Licenses = data.Licenses) === null || _data$Licenses === void 0 ? void 0 : _data$Licenses[0];
|
|
1317
|
+
let checkAssigne;
|
|
1318
|
+
if (filtData.action == "SENDBACKTOCITIZEN") {
|
|
1319
|
+
var _payloadData$owners, _payloadData$owners$;
|
|
1320
|
+
checkAssigne = [payloadData === null || payloadData === void 0 ? void 0 : (_payloadData$owners = payloadData.owners) === null || _payloadData$owners === void 0 ? void 0 : (_payloadData$owners$ = _payloadData$owners[0]) === null || _payloadData$owners$ === void 0 ? void 0 : _payloadData$owners$.uuid];
|
|
1321
|
+
}
|
|
1312
1322
|
updatedApplicant.workflow = {
|
|
1313
1323
|
action: filtData.action,
|
|
1314
|
-
assignes: filtData === null || filtData === void 0 ? void 0 : filtData.assignee,
|
|
1324
|
+
assignes: (filtData === null || filtData === void 0 ? void 0 : filtData.assignee) || checkAssigne,
|
|
1315
1325
|
comment: filtData === null || filtData === void 0 ? void 0 : filtData.comment,
|
|
1316
1326
|
documents: filtData === null || filtData === void 0 ? void 0 : filtData.wfDocuments
|
|
1317
1327
|
};
|
|
@@ -1345,11 +1355,8 @@ const ApplicationOverview = () => {
|
|
|
1345
1355
|
setSelectedAction(null);
|
|
1346
1356
|
setShowModal(false);
|
|
1347
1357
|
} catch (err) {
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
message: "Something went wrong"
|
|
1351
|
-
});
|
|
1352
|
-
setError("Something went wrong");
|
|
1358
|
+
setErrorOne("Something went wrong");
|
|
1359
|
+
setShowErrorToastt(true);
|
|
1353
1360
|
}
|
|
1354
1361
|
};
|
|
1355
1362
|
const closeModal = () => {
|
|
@@ -1383,7 +1390,7 @@ const ApplicationOverview = () => {
|
|
|
1383
1390
|
privacy: Digit.Utils.getPrivacyObject()
|
|
1384
1391
|
});
|
|
1385
1392
|
if (isLoading || isDetailsLoading || checkLoading) {
|
|
1386
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
1393
|
+
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
1387
1394
|
}
|
|
1388
1395
|
return /*#__PURE__*/React.createElement("div", {
|
|
1389
1396
|
className: "employee-main-application-details"
|
|
@@ -1525,7 +1532,7 @@ const ApplicationOverview = () => {
|
|
|
1525
1532
|
label: t("COMMON_EDIT"),
|
|
1526
1533
|
onSubmit: () => {
|
|
1527
1534
|
var _applicationDetails$A7, _applicationDetails$A8;
|
|
1528
|
-
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.
|
|
1535
|
+
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.applicationNo;
|
|
1529
1536
|
history.push(`/digit-ui/employee/ndc/create/${id}`);
|
|
1530
1537
|
}
|
|
1531
1538
|
})), showModal ? /*#__PURE__*/React.createElement(NDCModal, {
|
|
@@ -8870,7 +8877,7 @@ const getAcknowledgementData = async (application, tenantInfo, t) => {
|
|
|
8870
8877
|
const owner = (appData === null || appData === void 0 ? void 0 : (_appData$owners = appData.owners) === null || _appData$owners === void 0 ? void 0 : _appData$owners[0]) || {};
|
|
8871
8878
|
const ndc = (appData === null || appData === void 0 ? void 0 : (_appData$NdcDetails = appData.NdcDetails) === null || _appData$NdcDetails === void 0 ? void 0 : _appData$NdcDetails[0]) || {};
|
|
8872
8879
|
const add = (ndc === null || ndc === void 0 ? void 0 : ndc.additionalDetails) || {};
|
|
8873
|
-
const applicationNumber = (appData === null || appData === void 0 ? void 0 : appData.
|
|
8880
|
+
const applicationNumber = (appData === null || appData === void 0 ? void 0 : appData.applicationNo) || "NA";
|
|
8874
8881
|
const propertyId = appData === null || appData === void 0 ? void 0 : (_appData$NdcDetails2 = appData.NdcDetails) === null || _appData$NdcDetails2 === void 0 ? void 0 : (_appData$NdcDetails2$ = _appData$NdcDetails2[3]) === null || _appData$NdcDetails2$ === void 0 ? void 0 : _appData$NdcDetails2$.consumerCode;
|
|
8875
8882
|
const propertyType = add !== null && add !== void 0 && add.propertyType ? t(add.propertyType) : "NA";
|
|
8876
8883
|
const applicantName = (owner === null || owner === void 0 ? void 0 : owner.name) || "NA";
|
|
@@ -8971,7 +8978,7 @@ const CitizenApplicationOverview = () => {
|
|
|
8971
8978
|
isLoading,
|
|
8972
8979
|
data: applicationDetails
|
|
8973
8980
|
} = Digit.Hooks.ndc.useSearchEmployeeApplication({
|
|
8974
|
-
|
|
8981
|
+
applicationNo: id
|
|
8975
8982
|
}, tenantId);
|
|
8976
8983
|
const workflowDetails = Digit.Hooks.useWorkflowDetails({
|
|
8977
8984
|
tenantId: tenantId,
|
|
@@ -9013,7 +9020,7 @@ const CitizenApplicationOverview = () => {
|
|
|
9013
9020
|
mobile: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners2 = ndcObject.owners) === null || _ndcObject$owners2 === void 0 ? void 0 : (_ndcObject$owners2$ = _ndcObject$owners2[0]) === null || _ndcObject$owners2$ === void 0 ? void 0 : _ndcObject$owners2$.mobileNumber,
|
|
9014
9021
|
email: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners3 = ndcObject.owners) === null || _ndcObject$owners3 === void 0 ? void 0 : (_ndcObject$owners3$ = _ndcObject$owners3[0]) === null || _ndcObject$owners3$ === void 0 ? void 0 : _ndcObject$owners3$.emailId,
|
|
9015
9022
|
address: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$NdcDetails = ndcObject.NdcDetails) === null || _ndcObject$NdcDetails === void 0 ? void 0 : (_ndcObject$NdcDetails2 = _ndcObject$NdcDetails[0]) === null || _ndcObject$NdcDetails2 === void 0 ? void 0 : (_ndcObject$NdcDetails3 = _ndcObject$NdcDetails2.additionalDetails) === null || _ndcObject$NdcDetails3 === void 0 ? void 0 : _ndcObject$NdcDetails3.propertyAddress,
|
|
9016
|
-
applicationNo: ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.
|
|
9023
|
+
applicationNo: ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.applicationNo
|
|
9017
9024
|
};
|
|
9018
9025
|
const Documents = removeDuplicatesByUUID((ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.Documents) || []);
|
|
9019
9026
|
const NdcDetails = (_removeDuplicatesByUU = removeDuplicatesByUUID((ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.NdcDetails) || [])) === null || _removeDuplicatesByUU === void 0 ? void 0 : _removeDuplicatesByUU.map(item => {
|
|
@@ -9081,7 +9088,7 @@ const CitizenApplicationOverview = () => {
|
|
|
9081
9088
|
privacy: Digit.Utils.getPrivacyObject()
|
|
9082
9089
|
});
|
|
9083
9090
|
if (isLoading || isDetailsLoading) {
|
|
9084
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
9091
|
+
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
9085
9092
|
}
|
|
9086
9093
|
console.log("applicationDetails", applicationDetails);
|
|
9087
9094
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -9101,7 +9108,7 @@ const CitizenApplicationOverview = () => {
|
|
|
9101
9108
|
label: t("COMMON_EDIT"),
|
|
9102
9109
|
onSubmit: () => {
|
|
9103
9110
|
var _applicationDetails$A9, _applicationDetails$A0;
|
|
9104
|
-
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.
|
|
9111
|
+
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.applicationNo;
|
|
9105
9112
|
history.push(`/digit-ui/citizen/ndc/new-application/${id}`);
|
|
9106
9113
|
}
|
|
9107
9114
|
}))), /*#__PURE__*/React.createElement(Card, {
|
|
@@ -9118,6 +9125,7 @@ const CitizenApplicationOverview = () => {
|
|
|
9118
9125
|
className: "ndc_label"
|
|
9119
9126
|
}, t("NDC_APPLICATION_NDC_DETAILS_OVERVIEW")), displayData === null || displayData === void 0 ? void 0 : (_displayData$NdcDetai2 = displayData.NdcDetails) === null || _displayData$NdcDetai2 === void 0 ? void 0 : _displayData$NdcDetai2.map((detail, index) => {
|
|
9120
9127
|
var _detail$dueAmount, _propertyDetailsFetch, _propertyDetailsFetch2, _propertyDetailsFetch3, _propertyDetailsFetch4, _propertyDetailsFetch5, _propertyDetailsFetch6, _propertyDetailsFetch7, _propertyDetailsFetch8, _propertyDetailsFetch9, _propertyDetailsFetch0, _propertyDetailsFetch1, _propertyDetailsFetch10, _propertyDetailsFetch11, _propertyDetailsFetch12, _propertyDetailsFetch13, _propertyDetailsFetch14, _propertyDetailsFetch15, _propertyDetailsFetch16, _propertyDetailsFetch17, _propertyDetailsFetch18;
|
|
9128
|
+
const isRed = detail.dueAmount > 0;
|
|
9121
9129
|
return /*#__PURE__*/React.createElement("div", {
|
|
9122
9130
|
key: index,
|
|
9123
9131
|
style: {
|
|
@@ -9132,10 +9140,17 @@ const CitizenApplicationOverview = () => {
|
|
|
9132
9140
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
9133
9141
|
label: t("NDC_CONSUMER_CODE"),
|
|
9134
9142
|
text: detail.consumerCode || "N/A"
|
|
9135
|
-
}), /*#__PURE__*/React.createElement(
|
|
9143
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
9144
|
+
style: {
|
|
9145
|
+
background: isRed ? "red" : "none",
|
|
9146
|
+
color: isRed ? "white" : "black",
|
|
9147
|
+
paddingTop: isRed ? "8px" : "0",
|
|
9148
|
+
paddingLeft: isRed ? "10px" : "0"
|
|
9149
|
+
}
|
|
9150
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
9136
9151
|
label: t("NDC_DUE_AMOUNT"),
|
|
9137
9152
|
text: ((_detail$dueAmount = detail.dueAmount) === null || _detail$dueAmount === void 0 ? void 0 : _detail$dueAmount.toString()) || "0"
|
|
9138
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
9153
|
+
})), /*#__PURE__*/React.createElement(Row, {
|
|
9139
9154
|
label: t("NDC_PROPERTY_TYPE"),
|
|
9140
9155
|
text: t(detail.propertyType) || detail.propertyType
|
|
9141
9156
|
}), (detail === null || detail === void 0 ? void 0 : detail.businessService) == "NDC_PROPERTY_TAX" && (propertyDetailsFetch === null || propertyDetailsFetch === void 0 ? void 0 : propertyDetailsFetch.Properties) && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Row, {
|
|
@@ -9306,10 +9321,10 @@ const SearchFormFieldsComponents = ({
|
|
|
9306
9321
|
textAlign: "start"
|
|
9307
9322
|
}
|
|
9308
9323
|
}, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("NOC_HOME_SEARCH_RESULTS_APP_NO_LABEL")), /*#__PURE__*/React.createElement(TextInput, {
|
|
9309
|
-
name: "
|
|
9324
|
+
name: "applicationNo",
|
|
9310
9325
|
inputRef: registerRef({})
|
|
9311
9326
|
})), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("CORE_COMMON_PHONE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, {
|
|
9312
|
-
name: "
|
|
9327
|
+
name: "mobileNumber",
|
|
9313
9328
|
inputRef: registerRef({})
|
|
9314
9329
|
})), /*#__PURE__*/React.createElement("div", {
|
|
9315
9330
|
className: "search-action-wrapper",
|
|
@@ -9319,7 +9334,7 @@ const SearchFormFieldsComponents = ({
|
|
|
9319
9334
|
}, searchFieldComponents)))));
|
|
9320
9335
|
}
|
|
9321
9336
|
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("NOC_APPLICATION_NUMBER_LABEL")), /*#__PURE__*/React.createElement(TextInput, {
|
|
9322
|
-
name: "
|
|
9337
|
+
name: "applicationNo",
|
|
9323
9338
|
inputRef: registerRef({})
|
|
9324
9339
|
})), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("NOC_BPA_APPLICATION_NUMBER_LABEL")), /*#__PURE__*/React.createElement(TextInput, {
|
|
9325
9340
|
name: "sourceRefId",
|
|
@@ -9418,6 +9433,7 @@ const useInboxTableConfig = ({
|
|
|
9418
9433
|
row
|
|
9419
9434
|
}) => {
|
|
9420
9435
|
var _row$original, _row$original2;
|
|
9436
|
+
console.log("row", row);
|
|
9421
9437
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
|
|
9422
9438
|
to: `${parentRoute}/inbox/application-overview/${(_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.applicationId}`
|
|
9423
9439
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -9613,8 +9629,8 @@ const Inbox = ({
|
|
|
9613
9629
|
const InboxObjectInSessionStorage = Digit.SessionStorage.get("NDC.INBOX");
|
|
9614
9630
|
const onSearchFormReset = setSearchFormValue => {
|
|
9615
9631
|
setSearchFormValue("sourceRefId", null);
|
|
9616
|
-
setSearchFormValue("
|
|
9617
|
-
setSearchFormValue("
|
|
9632
|
+
setSearchFormValue("applicationNo", null);
|
|
9633
|
+
setSearchFormValue("mobileNumber", null);
|
|
9618
9634
|
dispatch({
|
|
9619
9635
|
action: "mutateSearchForm",
|
|
9620
9636
|
data: searchFormDefaultValues
|
|
@@ -10050,7 +10066,7 @@ const SearchApplicationMobileView = ({
|
|
|
10050
10066
|
...props
|
|
10051
10067
|
}), [currentlyActiveMobileModal]);
|
|
10052
10068
|
if (isLoading) {
|
|
10053
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
10069
|
+
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
10054
10070
|
}
|
|
10055
10071
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
10056
10072
|
className: "searchBox"
|
|
@@ -10140,7 +10156,7 @@ const SearchApplicationDesktopView = ({
|
|
|
10140
10156
|
}, [getValues("offset"), getValues("limit")]);
|
|
10141
10157
|
const TableComponent = () => {
|
|
10142
10158
|
if (isLoading) {
|
|
10143
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
10159
|
+
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
10144
10160
|
} else {
|
|
10145
10161
|
var _data$, _data$2;
|
|
10146
10162
|
return data !== null && data !== void 0 && (_data$ = data[0]) !== null && _data$ !== void 0 && _data$.display ? /*#__PURE__*/React.createElement(Card, {
|
|
@@ -10373,7 +10389,7 @@ const PropertyDetailsForm = ({
|
|
|
10373
10389
|
label: t(showToast.label),
|
|
10374
10390
|
onClose: closeToast,
|
|
10375
10391
|
isDleteBtn: "true"
|
|
10376
|
-
}), isLoading && /*#__PURE__*/React.createElement(Loader, null));
|
|
10392
|
+
}), isLoading && /*#__PURE__*/React.createElement(Loader$1, null));
|
|
10377
10393
|
};
|
|
10378
10394
|
|
|
10379
10395
|
var b = "function" === typeof Symbol && Symbol.for,
|
|
@@ -11593,7 +11609,7 @@ const PropertyDetailsFormUser = ({
|
|
|
11593
11609
|
label: t(showToast.label),
|
|
11594
11610
|
onClose: closeToast,
|
|
11595
11611
|
isDleteBtn: "true"
|
|
11596
|
-
}), isLoading && /*#__PURE__*/React.createElement(Loader, null));
|
|
11612
|
+
}), isLoading && /*#__PURE__*/React.createElement(Loader$1, null));
|
|
11597
11613
|
};
|
|
11598
11614
|
|
|
11599
11615
|
const PropertyDetailsStep2 = ({
|
|
@@ -11711,9 +11727,10 @@ const NewNDCStepForm = () => {
|
|
|
11711
11727
|
isLoading,
|
|
11712
11728
|
data: applicationDetails
|
|
11713
11729
|
} = Digit.Hooks.ndc.useSearchEmployeeApplication({
|
|
11714
|
-
|
|
11730
|
+
applicationNo: id
|
|
11715
11731
|
}, tenantId);
|
|
11716
11732
|
useEffect(() => {
|
|
11733
|
+
console.log("applicationDetails", applicationDetails);
|
|
11717
11734
|
if (applicationDetails !== null && applicationDetails !== void 0 && applicationDetails.Applications.length) {
|
|
11718
11735
|
dispatch(updateNDCForm("responseData", applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.Applications));
|
|
11719
11736
|
}
|
|
@@ -11752,6 +11769,57 @@ const NewNDCStepForm = () => {
|
|
|
11752
11769
|
}));
|
|
11753
11770
|
};
|
|
11754
11771
|
|
|
11772
|
+
const Loader = ({
|
|
11773
|
+
page: _page = false
|
|
11774
|
+
}) => {
|
|
11775
|
+
const baseStyle = {
|
|
11776
|
+
display: "flex",
|
|
11777
|
+
justifyContent: "center",
|
|
11778
|
+
alignItems: "center"
|
|
11779
|
+
};
|
|
11780
|
+
const pageStyle = {
|
|
11781
|
+
...baseStyle,
|
|
11782
|
+
position: "fixed",
|
|
11783
|
+
top: 0,
|
|
11784
|
+
left: 0,
|
|
11785
|
+
width: "100vw",
|
|
11786
|
+
height: "100vh",
|
|
11787
|
+
background: "rgba(255,255,255,0.6)",
|
|
11788
|
+
backdropFilter: "blur(4px)",
|
|
11789
|
+
zIndex: 9999
|
|
11790
|
+
};
|
|
11791
|
+
const moduleStyle = {
|
|
11792
|
+
...baseStyle,
|
|
11793
|
+
minHeight: "100px",
|
|
11794
|
+
width: "100%",
|
|
11795
|
+
position: "relative"
|
|
11796
|
+
};
|
|
11797
|
+
const spinnerStyle = {
|
|
11798
|
+
width: "64px",
|
|
11799
|
+
height: "64px",
|
|
11800
|
+
border: "8px solid #1976d2",
|
|
11801
|
+
borderTop: "8px solid transparent",
|
|
11802
|
+
borderRadius: "50%",
|
|
11803
|
+
animation: "spin 1.2s linear infinite"
|
|
11804
|
+
};
|
|
11805
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11806
|
+
style: _page ? pageStyle : moduleStyle
|
|
11807
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
11808
|
+
style: spinnerStyle
|
|
11809
|
+
}), /*#__PURE__*/React.createElement("style", null, `
|
|
11810
|
+
@keyframes spin {
|
|
11811
|
+
0% { transform: rotate(0deg); }
|
|
11812
|
+
100% { transform: rotate(360deg); }
|
|
11813
|
+
}
|
|
11814
|
+
`));
|
|
11815
|
+
};
|
|
11816
|
+
Loader.propTypes = {
|
|
11817
|
+
page: propTypes.bool
|
|
11818
|
+
};
|
|
11819
|
+
Loader.defaultProps = {
|
|
11820
|
+
page: false
|
|
11821
|
+
};
|
|
11822
|
+
|
|
11755
11823
|
const NewNDCStepFormOne = ({
|
|
11756
11824
|
config,
|
|
11757
11825
|
onGoNext,
|
|
@@ -11762,8 +11830,11 @@ const NewNDCStepFormOne = ({
|
|
|
11762
11830
|
const [showToast, setShowToast] = useState(false);
|
|
11763
11831
|
const [error, setError] = useState("");
|
|
11764
11832
|
const user = Digit.UserService.getUser();
|
|
11833
|
+
const id = window.location.pathname.split("/").pop();
|
|
11765
11834
|
const currentStepData = useSelector(state => state.ndc.NDCForm.formData && state.ndc.NDCForm.formData[config.key] ? state.ndc.NDCForm.formData[config.key] : {});
|
|
11835
|
+
const [getLoader, setLoader] = useState(false);
|
|
11766
11836
|
const checkFormData = useSelector(state => state.ndc.NDCForm.formData || {});
|
|
11837
|
+
const checkFormDatass = useSelector(state => state.ndc.NDCForm || {});
|
|
11767
11838
|
const tenantId = window.localStorage.getItem("CITIZEN.CITY");
|
|
11768
11839
|
function goNext(data) {
|
|
11769
11840
|
var _checkFormData$apiDat, _checkFormData$apiDat2, _checkFormData$apiDat3, _checkFormData$respon, _checkFormData$respon2;
|
|
@@ -11776,12 +11847,17 @@ const NewNDCStepFormOne = ({
|
|
|
11776
11847
|
}, 3000);
|
|
11777
11848
|
return;
|
|
11778
11849
|
}
|
|
11779
|
-
|
|
11780
|
-
|
|
11850
|
+
console.log("checkFormData", checkFormData);
|
|
11851
|
+
const isRealId = id && id.startsWith("NDC-");
|
|
11852
|
+
console.log("isRealId", isRealId);
|
|
11853
|
+
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.applicationNo || 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.applicationNo || isRealId) {
|
|
11854
|
+
updateApplication(data);
|
|
11855
|
+
console.log("here bab");
|
|
11781
11856
|
} else createApplication(data);
|
|
11782
11857
|
}
|
|
11783
11858
|
const createApplication = async data => {
|
|
11784
|
-
var _Digit$UserService$ge, _user$info, _user$info2, _data$PropertyDetails, _user$info3, _user$info4, _data$PropertyDetails2, _data$PropertyDetails4, _data$PropertyDetails6, _data$PropertyDetails7, _data$NDCReason
|
|
11859
|
+
var _Digit$UserService$ge, _user$info, _user$info2, _data$PropertyDetails, _user$info3, _user$info4, _data$PropertyDetails2, _data$PropertyDetails4, _data$PropertyDetails6, _data$PropertyDetails7, _data$NDCReason;
|
|
11860
|
+
setLoader(true);
|
|
11785
11861
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
11786
11862
|
const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
|
|
11787
11863
|
const owners = [{
|
|
@@ -11851,11 +11927,116 @@ const NewNDCStepFormOne = ({
|
|
|
11851
11927
|
}
|
|
11852
11928
|
}]
|
|
11853
11929
|
};
|
|
11854
|
-
|
|
11930
|
+
try {
|
|
11931
|
+
var _response$ResponseInf;
|
|
11932
|
+
const response = await Digit.NDCService.NDCcreate({
|
|
11933
|
+
tenantId,
|
|
11934
|
+
details: payload
|
|
11935
|
+
});
|
|
11936
|
+
setLoader(false);
|
|
11937
|
+
if ((response === null || response === void 0 ? void 0 : (_response$ResponseInf = response.ResponseInfo) === null || _response$ResponseInf === void 0 ? void 0 : _response$ResponseInf.status) === "successful") {
|
|
11938
|
+
dispatch(updateNDCForm("apiData", response));
|
|
11939
|
+
onGoNext();
|
|
11940
|
+
return {
|
|
11941
|
+
isSuccess: true,
|
|
11942
|
+
response
|
|
11943
|
+
};
|
|
11944
|
+
} else {
|
|
11945
|
+
return {
|
|
11946
|
+
isSuccess: false,
|
|
11947
|
+
response
|
|
11948
|
+
};
|
|
11949
|
+
}
|
|
11950
|
+
} catch (error) {
|
|
11951
|
+
setLoader(false);
|
|
11952
|
+
}
|
|
11953
|
+
};
|
|
11954
|
+
const updateApplication = async data => {
|
|
11955
|
+
var _Digit$UserService$ge2, _user$info5, _user$info6, _data$PropertyDetails1, _user$info7, _user$info8, _checkFormData$respon3, _checkFormData$respon4, _checkFormData$respon5, _data$NDCReason2, _data$cpt1, _data$cpt1$details, _response$ResponseInf2;
|
|
11956
|
+
const applicant = ((_Digit$UserService$ge2 = Digit.UserService.getUser()) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.info) || {};
|
|
11957
|
+
const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
|
|
11958
|
+
console.log("data===?????", data);
|
|
11959
|
+
console.log("checkFormData???====", checkFormData);
|
|
11960
|
+
const owners = [{
|
|
11961
|
+
name: user === null || user === void 0 ? void 0 : (_user$info5 = user.info) === null || _user$info5 === void 0 ? void 0 : _user$info5.name,
|
|
11962
|
+
mobileNumber: user === null || user === void 0 ? void 0 : (_user$info6 = user.info) === null || _user$info6 === void 0 ? void 0 : _user$info6.mobileNumber,
|
|
11963
|
+
gender: data === null || data === void 0 ? void 0 : (_data$PropertyDetails1 = data.PropertyDetails) === null || _data$PropertyDetails1 === void 0 ? void 0 : _data$PropertyDetails1.gender,
|
|
11964
|
+
emailId: user === null || user === void 0 ? void 0 : (_user$info7 = user.info) === null || _user$info7 === void 0 ? void 0 : _user$info7.emailId,
|
|
11965
|
+
type: user === null || user === void 0 ? void 0 : (_user$info8 = user.info) === null || _user$info8 === void 0 ? void 0 : _user$info8.type
|
|
11966
|
+
}];
|
|
11967
|
+
let ndcDetails = [];
|
|
11968
|
+
if ((checkFormData === null || checkFormData === void 0 ? void 0 : (_checkFormData$respon3 = checkFormData.responseData) === null || _checkFormData$respon3 === void 0 ? void 0 : (_checkFormData$respon4 = _checkFormData$respon3[0]) === null || _checkFormData$respon4 === void 0 ? void 0 : (_checkFormData$respon5 = _checkFormData$respon4.NdcDetails) === null || _checkFormData$respon5 === void 0 ? void 0 : _checkFormData$respon5.length) > 0) {
|
|
11969
|
+
ndcDetails = checkFormData.responseData[0].NdcDetails;
|
|
11970
|
+
} else {
|
|
11971
|
+
var _ref, _data$PropertyDetails10, _ref2, _data$PropertyDetails12, _data$PropertyDetails14, _data$PropertyDetails15;
|
|
11972
|
+
(_ref = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails10 = data.PropertyDetails) === null || _data$PropertyDetails10 === void 0 ? void 0 : _data$PropertyDetails10.waterConnection) || []) === null || _ref === void 0 ? void 0 : _ref.forEach(wc => {
|
|
11973
|
+
var _wc$billData4, _data$PropertyDetails11, _data$cpt7, _data$cpt7$details, _wc$billData5, _wc$billData6;
|
|
11974
|
+
ndcDetails.push({
|
|
11975
|
+
uuid: wc === null || wc === void 0 ? void 0 : (_wc$billData4 = wc.billData) === null || _wc$billData4 === void 0 ? void 0 : _wc$billData4.id,
|
|
11976
|
+
applicantId: applicantId,
|
|
11977
|
+
businessService: "WS",
|
|
11978
|
+
consumerCode: wc === null || wc === void 0 ? void 0 : wc.connectionNo,
|
|
11979
|
+
additionalDetails: {
|
|
11980
|
+
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails11 = data.PropertyDetails) === null || _data$PropertyDetails11 === void 0 ? void 0 : _data$PropertyDetails11.address,
|
|
11981
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt7 = data.cpt) === null || _data$cpt7 === void 0 ? void 0 : (_data$cpt7$details = _data$cpt7.details) === null || _data$cpt7$details === void 0 ? void 0 : _data$cpt7$details.usageCategory
|
|
11982
|
+
},
|
|
11983
|
+
dueAmount: (wc === null || wc === void 0 ? void 0 : (_wc$billData5 = wc.billData) === null || _wc$billData5 === void 0 ? void 0 : _wc$billData5.totalAmount) || 0,
|
|
11984
|
+
status: wc === null || wc === void 0 ? void 0 : (_wc$billData6 = wc.billData) === null || _wc$billData6 === void 0 ? void 0 : _wc$billData6.status
|
|
11985
|
+
});
|
|
11986
|
+
});
|
|
11987
|
+
(_ref2 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails12 = data.PropertyDetails) === null || _data$PropertyDetails12 === void 0 ? void 0 : _data$PropertyDetails12.sewerageConnection) || []) === null || _ref2 === void 0 ? void 0 : _ref2.forEach(sc => {
|
|
11988
|
+
var _sc$billData4, _data$PropertyDetails13, _data$cpt8, _data$cpt8$details, _sc$billData5, _sc$billData6;
|
|
11989
|
+
ndcDetails.push({
|
|
11990
|
+
uuid: sc === null || sc === void 0 ? void 0 : (_sc$billData4 = sc.billData) === null || _sc$billData4 === void 0 ? void 0 : _sc$billData4.id,
|
|
11991
|
+
applicantId: applicantId,
|
|
11992
|
+
businessService: "SW",
|
|
11993
|
+
consumerCode: sc === null || sc === void 0 ? void 0 : sc.connectionNo,
|
|
11994
|
+
additionalDetails: {
|
|
11995
|
+
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails13 = data.PropertyDetails) === null || _data$PropertyDetails13 === void 0 ? void 0 : _data$PropertyDetails13.address,
|
|
11996
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt8 = data.cpt) === null || _data$cpt8 === void 0 ? void 0 : (_data$cpt8$details = _data$cpt8.details) === null || _data$cpt8$details === void 0 ? void 0 : _data$cpt8$details.usageCategory
|
|
11997
|
+
},
|
|
11998
|
+
dueAmount: (sc === null || sc === void 0 ? void 0 : (_sc$billData5 = sc.billData) === null || _sc$billData5 === void 0 ? void 0 : _sc$billData5.totalAmount) || 0,
|
|
11999
|
+
status: sc === null || sc === void 0 ? void 0 : (_sc$billData6 = sc.billData) === null || _sc$billData6 === void 0 ? void 0 : _sc$billData6.status
|
|
12000
|
+
});
|
|
12001
|
+
});
|
|
12002
|
+
if (data !== null && data !== void 0 && (_data$PropertyDetails14 = data.PropertyDetails) !== null && _data$PropertyDetails14 !== void 0 && (_data$PropertyDetails15 = _data$PropertyDetails14.propertyBillData) !== null && _data$PropertyDetails15 !== void 0 && _data$PropertyDetails15.billData) {
|
|
12003
|
+
var _data$PropertyDetails16, _data$PropertyDetails17, _data$cpt9, _data$PropertyDetails18, _data$cpt0, _data$cpt0$details;
|
|
12004
|
+
const billData = data === null || data === void 0 ? void 0 : (_data$PropertyDetails16 = data.PropertyDetails) === null || _data$PropertyDetails16 === void 0 ? void 0 : (_data$PropertyDetails17 = _data$PropertyDetails16.propertyBillData) === null || _data$PropertyDetails17 === void 0 ? void 0 : _data$PropertyDetails17.billData;
|
|
12005
|
+
ndcDetails.push({
|
|
12006
|
+
uuid: billData === null || billData === void 0 ? void 0 : billData.id,
|
|
12007
|
+
applicantId: applicantId,
|
|
12008
|
+
businessService: "PT",
|
|
12009
|
+
consumerCode: data === null || data === void 0 ? void 0 : (_data$cpt9 = data.cpt) === null || _data$cpt9 === void 0 ? void 0 : _data$cpt9.id,
|
|
12010
|
+
additionalDetails: {
|
|
12011
|
+
propertyAddress: data === null || data === void 0 ? void 0 : (_data$PropertyDetails18 = data.PropertyDetails) === null || _data$PropertyDetails18 === void 0 ? void 0 : _data$PropertyDetails18.address,
|
|
12012
|
+
propertyType: data === null || data === void 0 ? void 0 : (_data$cpt0 = data.cpt) === null || _data$cpt0 === void 0 ? void 0 : (_data$cpt0$details = _data$cpt0.details) === null || _data$cpt0$details === void 0 ? void 0 : _data$cpt0$details.usageCategory
|
|
12013
|
+
},
|
|
12014
|
+
dueAmount: (billData === null || billData === void 0 ? void 0 : billData.totalAmount) || 0,
|
|
12015
|
+
status: billData === null || billData === void 0 ? void 0 : billData.status
|
|
12016
|
+
});
|
|
12017
|
+
}
|
|
12018
|
+
}
|
|
12019
|
+
const payload = {
|
|
12020
|
+
Applications: [{
|
|
12021
|
+
tenantId,
|
|
12022
|
+
owners,
|
|
12023
|
+
NdcDetails: ndcDetails,
|
|
12024
|
+
Documents: [],
|
|
12025
|
+
active: true,
|
|
12026
|
+
reason: data === null || data === void 0 ? void 0 : (_data$NDCReason2 = data.NDCReason) === null || _data$NDCReason2 === void 0 ? void 0 : _data$NDCReason2.code,
|
|
12027
|
+
auditDetails: data === null || data === void 0 ? void 0 : (_data$cpt1 = data.cpt) === null || _data$cpt1 === void 0 ? void 0 : (_data$cpt1$details = _data$cpt1.details) === null || _data$cpt1$details === void 0 ? void 0 : _data$cpt1$details.auditDetails,
|
|
12028
|
+
uuid: id,
|
|
12029
|
+
workflow: {
|
|
12030
|
+
action: "DRAFT"
|
|
12031
|
+
}
|
|
12032
|
+
}]
|
|
12033
|
+
};
|
|
12034
|
+
console.log("payload", payload);
|
|
12035
|
+
const response = await Digit.NDCService.NDCUpdate({
|
|
11855
12036
|
tenantId,
|
|
11856
12037
|
details: payload
|
|
11857
12038
|
});
|
|
11858
|
-
if ((response === null || response === void 0 ? void 0 : (_response$
|
|
12039
|
+
if ((response === null || response === void 0 ? void 0 : (_response$ResponseInf2 = response.ResponseInfo) === null || _response$ResponseInf2 === void 0 ? void 0 : _response$ResponseInf2.status) === "successful") {
|
|
11859
12040
|
dispatch(updateNDCForm("apiData", response));
|
|
11860
12041
|
onGoNext();
|
|
11861
12042
|
return {
|
|
@@ -11870,17 +12051,17 @@ const NewNDCStepFormOne = ({
|
|
|
11870
12051
|
}
|
|
11871
12052
|
};
|
|
11872
12053
|
function validateStepData(data) {
|
|
11873
|
-
var _data$
|
|
12054
|
+
var _data$cpt10, _data$cpt11, _data$cpt11$dues, _propertyDetails$wate, _propertyDetails$sewe;
|
|
11874
12055
|
const missingFields = [];
|
|
11875
12056
|
const invalidFields = [];
|
|
11876
12057
|
const cpt = (data === null || data === void 0 ? void 0 : data.cpt) || {};
|
|
11877
12058
|
const cptDetails = (cpt === null || cpt === void 0 ? void 0 : cpt.details) || {};
|
|
11878
12059
|
const propertyDetails = (data === null || data === void 0 ? void 0 : data.PropertyDetails) || {};
|
|
11879
12060
|
const NDCReason = (data === null || data === void 0 ? void 0 : data.NDCReason) || {};
|
|
11880
|
-
if (!(data !== null && data !== void 0 && (_data$
|
|
12061
|
+
if (!(data !== null && data !== void 0 && (_data$cpt10 = data.cpt) !== null && _data$cpt10 !== void 0 && _data$cpt10.dues)) {
|
|
11881
12062
|
missingFields.push(`${t("NDC_MESSAGE_PLEASE_CHECK_STATUS_OF_PROPERTY_TAX")} ${cpt === null || cpt === void 0 ? void 0 : cpt.id}`);
|
|
11882
12063
|
}
|
|
11883
|
-
if ((data === null || data === void 0 ? void 0 : (_data$
|
|
12064
|
+
if ((data === null || data === void 0 ? void 0 : (_data$cpt11 = data.cpt) === null || _data$cpt11 === void 0 ? void 0 : (_data$cpt11$dues = _data$cpt11.dues) === null || _data$cpt11$dues === void 0 ? void 0 : _data$cpt11$dues.totalAmount) > 0) {
|
|
11884
12065
|
missingFields.push(`${t("NDC_MESSAGE_PLEASE_PAY_DUES_OF_PROPERTY_TAX")} ${cpt === null || cpt === void 0 ? void 0 : cpt.id}`);
|
|
11885
12066
|
}
|
|
11886
12067
|
if ((propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$wate = propertyDetails.waterConnection) === null || _propertyDetails$wate === void 0 ? void 0 : _propertyDetails$wate.length) > 0) {
|
|
@@ -11947,6 +12128,8 @@ const NewNDCStepFormOne = ({
|
|
|
11947
12128
|
label: t(`${config.texts.submitBarLabel}`),
|
|
11948
12129
|
currentStep: config.currStepNumber,
|
|
11949
12130
|
onBackClick: onGoBack
|
|
12131
|
+
}), getLoader && /*#__PURE__*/React.createElement(Loader, {
|
|
12132
|
+
page: true
|
|
11950
12133
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
11951
12134
|
isDleteBtn: true,
|
|
11952
12135
|
error: true,
|
|
@@ -12019,7 +12202,7 @@ function SelectNDCReason({
|
|
|
12019
12202
|
}
|
|
12020
12203
|
}, [apiDataCheck, ndcReasonOptions]);
|
|
12021
12204
|
if (isLoading) {
|
|
12022
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
12205
|
+
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
12023
12206
|
}
|
|
12024
12207
|
const errorStyle = {
|
|
12025
12208
|
width: "70%",
|
|
@@ -12149,8 +12332,8 @@ const PropertyDetailsForm$1 = ({
|
|
|
12149
12332
|
var _apiDataCheck$2;
|
|
12150
12333
|
let waterConnection;
|
|
12151
12334
|
if (apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$2 = apiDataCheck[0]) !== null && _apiDataCheck$2 !== void 0 && _apiDataCheck$2.NdcDetails) {
|
|
12152
|
-
var _apiDataCheck$3;
|
|
12153
|
-
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 => {
|
|
12335
|
+
var _apiDataCheck$3, _apiDataCheck$3$NdcDe;
|
|
12336
|
+
const resData = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$3 = apiDataCheck[0]) === null || _apiDataCheck$3 === void 0 ? void 0 : (_apiDataCheck$3$NdcDe = _apiDataCheck$3.NdcDetails) === null || _apiDataCheck$3$NdcDe === void 0 ? void 0 : _apiDataCheck$3$NdcDe.filter(item => {
|
|
12154
12337
|
return item.businessService == "WS";
|
|
12155
12338
|
});
|
|
12156
12339
|
waterConnection = (resData === null || resData === void 0 ? void 0 : resData.map(item => ({
|
|
@@ -12177,9 +12360,10 @@ const PropertyDetailsForm$1 = ({
|
|
|
12177
12360
|
useEffect(() => {
|
|
12178
12361
|
var _apiDataCheck$4;
|
|
12179
12362
|
let sewerageConnection;
|
|
12363
|
+
console.log("apiDataCheck", apiDataCheck);
|
|
12180
12364
|
if (apiDataCheck !== null && apiDataCheck !== void 0 && (_apiDataCheck$4 = apiDataCheck[0]) !== null && _apiDataCheck$4 !== void 0 && _apiDataCheck$4.NdcDetails) {
|
|
12181
|
-
var _apiDataCheck$5;
|
|
12182
|
-
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 => {
|
|
12365
|
+
var _apiDataCheck$5, _apiDataCheck$5$NdcDe;
|
|
12366
|
+
const resData = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$5 = apiDataCheck[0]) === null || _apiDataCheck$5 === void 0 ? void 0 : (_apiDataCheck$5$NdcDe = _apiDataCheck$5.NdcDetails) === null || _apiDataCheck$5$NdcDe === void 0 ? void 0 : _apiDataCheck$5$NdcDe.filter(item => {
|
|
12183
12367
|
return item.businessService == "SW";
|
|
12184
12368
|
});
|
|
12185
12369
|
sewerageConnection = (resData === null || resData === void 0 ? void 0 : resData.map(item => ({
|
|
@@ -12470,7 +12654,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12470
12654
|
}
|
|
12471
12655
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12472
12656
|
className: "card-label-smaller ndc_card_labels"
|
|
12473
|
-
}, `${t("NDC_WATER_CONNECTION")}`), waterConnectionLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
|
|
12657
|
+
}, `${t("NDC_WATER_CONNECTION")}`), waterConnectionLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement("div", {
|
|
12474
12658
|
className: "field",
|
|
12475
12659
|
style: {
|
|
12476
12660
|
display: "flex",
|
|
@@ -12514,7 +12698,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12514
12698
|
disabled: !item.isEdit,
|
|
12515
12699
|
onBlur: props.onBlur
|
|
12516
12700
|
})
|
|
12517
|
-
}), item.isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
|
|
12701
|
+
}), item.isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement("div", {
|
|
12518
12702
|
style: {
|
|
12519
12703
|
display: "flex",
|
|
12520
12704
|
alignItems: "center",
|
|
@@ -12578,7 +12762,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12578
12762
|
}
|
|
12579
12763
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12580
12764
|
className: "card-label-smaller ndc_card_labels"
|
|
12581
|
-
}, `${t("NDC_SEWERAGE_CONNECTION")} `), sewerageConnectionLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
|
|
12765
|
+
}, `${t("NDC_SEWERAGE_CONNECTION")} `), sewerageConnectionLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement("div", {
|
|
12582
12766
|
className: "field",
|
|
12583
12767
|
style: {
|
|
12584
12768
|
display: "flex",
|
|
@@ -12622,7 +12806,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
12622
12806
|
disabled: !item.isEdit,
|
|
12623
12807
|
onBlur: field.onBlur
|
|
12624
12808
|
})
|
|
12625
|
-
}), item.isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
|
|
12809
|
+
}), item.isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement("div", {
|
|
12626
12810
|
style: {
|
|
12627
12811
|
display: "flex",
|
|
12628
12812
|
alignItems: "center",
|
|
@@ -12845,6 +13029,7 @@ const PropertySearchNSummary = ({
|
|
|
12845
13029
|
const search = useLocation().search;
|
|
12846
13030
|
const urlPropertyId = new URLSearchParams(search).get("propertyId");
|
|
12847
13031
|
const isfirstRender = useRef(true);
|
|
13032
|
+
const [getLoader, setLoader] = useState(false);
|
|
12848
13033
|
const ptFromApi = apiDataCheck === null || apiDataCheck === void 0 ? void 0 : (_apiDataCheck$ = apiDataCheck[0]) === null || _apiDataCheck$ === void 0 ? void 0 : (_apiDataCheck$$NdcDet = _apiDataCheck$.NdcDetails) === null || _apiDataCheck$$NdcDet === void 0 ? void 0 : _apiDataCheck$$NdcDet.find(item => item.businessService == "PT");
|
|
12849
13034
|
const [propertyId, setPropertyId] = useState((formData === null || formData === void 0 ? void 0 : (_formData$cpt = formData.cpt) === null || _formData$cpt === void 0 ? void 0 : _formData$cpt.id) || (urlPropertyId !== "null" ? urlPropertyId : "") || (ptFromApi === null || ptFromApi === void 0 ? void 0 : ptFromApi.consumerCode) || "");
|
|
12850
13035
|
const [searchPropertyId, setSearchPropertyId] = useState((formData === null || formData === void 0 ? void 0 : (_formData$cpt2 = formData.cpt) === null || _formData$cpt2 === void 0 ? void 0 : _formData$cpt2.id) || (urlPropertyId !== "null" ? urlPropertyId : "") || (ptFromApi === null || ptFromApi === void 0 ? void 0 : ptFromApi.consumerCode) || "");
|
|
@@ -13032,6 +13217,7 @@ const PropertySearchNSummary = ({
|
|
|
13032
13217
|
});
|
|
13033
13218
|
}
|
|
13034
13219
|
async function fetchBill() {
|
|
13220
|
+
setLoader(true);
|
|
13035
13221
|
try {
|
|
13036
13222
|
var _formData$cpt0, _result$Bill;
|
|
13037
13223
|
const result = await Digit.PaymentService.fetchBill(tenantId, {
|
|
@@ -13082,7 +13268,9 @@ const PropertySearchNSummary = ({
|
|
|
13082
13268
|
setNoDue(true);
|
|
13083
13269
|
setCheckStats(false);
|
|
13084
13270
|
}
|
|
13271
|
+
setLoader(false);
|
|
13085
13272
|
} catch (error) {
|
|
13273
|
+
setLoader(false);
|
|
13086
13274
|
setShowToast({
|
|
13087
13275
|
error: true,
|
|
13088
13276
|
label: t("NDC_MESSAGE_FETCH_FAILED")
|
|
@@ -13104,7 +13292,7 @@ const PropertySearchNSummary = ({
|
|
|
13104
13292
|
return () => clearTimeout(timer);
|
|
13105
13293
|
}
|
|
13106
13294
|
}, [showToast]);
|
|
13107
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
13295
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
13108
13296
|
style: {
|
|
13109
13297
|
marginBottom: "16px"
|
|
13110
13298
|
}
|
|
@@ -13184,7 +13372,9 @@ const PropertySearchNSummary = ({
|
|
|
13184
13372
|
onClose: () => {
|
|
13185
13373
|
setShowToast(null);
|
|
13186
13374
|
}
|
|
13187
|
-
})))
|
|
13375
|
+
})), (isLoading || getLoader) && /*#__PURE__*/React.createElement(Loader, {
|
|
13376
|
+
page: true
|
|
13377
|
+
}));
|
|
13188
13378
|
};
|
|
13189
13379
|
|
|
13190
13380
|
const SelectNDCDocuments = ({
|
|
@@ -13205,11 +13395,13 @@ const SelectNDCDocuments = ({
|
|
|
13205
13395
|
const [error, setError] = useState(null);
|
|
13206
13396
|
useEffect(() => {
|
|
13207
13397
|
var _checkFormData$respon, _checkFormData$respon2, _checkFormData$respon3;
|
|
13208
|
-
|
|
13209
|
-
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13398
|
+
console.log("coming here again");
|
|
13399
|
+
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 && documents.length === 0) {
|
|
13400
|
+
var _checkFormData$respon4, _checkFormData$respon5, _checkFormData$respon6;
|
|
13401
|
+
const apiDocs = checkFormData === null || checkFormData === void 0 ? void 0 : (_checkFormData$respon4 = checkFormData.responseData) === null || _checkFormData$respon4 === void 0 ? void 0 : (_checkFormData$respon5 = _checkFormData$respon4[0]) === null || _checkFormData$respon5 === void 0 ? void 0 : (_checkFormData$respon6 = _checkFormData$respon5.Documents) === null || _checkFormData$respon6 === void 0 ? void 0 : _checkFormData$respon6.map(doc => ({
|
|
13402
|
+
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
13403
|
+
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.documentAttachment,
|
|
13404
|
+
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentAttachment
|
|
13213
13405
|
}));
|
|
13214
13406
|
setDocuments(apiDocs);
|
|
13215
13407
|
}
|
|
@@ -13232,7 +13424,7 @@ const SelectNDCDocuments = ({
|
|
|
13232
13424
|
goNext();
|
|
13233
13425
|
}, [documents]);
|
|
13234
13426
|
if (isLoading) {
|
|
13235
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
13427
|
+
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
13236
13428
|
}
|
|
13237
13429
|
return /*#__PURE__*/React.createElement("div", null, ndcDocuments === null || ndcDocuments === void 0 ? void 0 : ndcDocuments.map((document, index) => {
|
|
13238
13430
|
return /*#__PURE__*/React.createElement(SelectDocument, {
|
|
@@ -13278,7 +13470,7 @@ function SelectDocument({
|
|
|
13278
13470
|
setFile(e.target.files[0]);
|
|
13279
13471
|
}
|
|
13280
13472
|
useEffect(() => {
|
|
13281
|
-
if (filteredDocument !== null && filteredDocument !== void 0 && filteredDocument.fileStoreId) {
|
|
13473
|
+
if (filteredDocument !== null && filteredDocument !== void 0 && filteredDocument.fileStoreId && !file) {
|
|
13282
13474
|
setUploadedFile(filteredDocument.fileStoreId);
|
|
13283
13475
|
}
|
|
13284
13476
|
}, [filteredDocument]);
|
|
@@ -13360,10 +13552,26 @@ const NewNDCStepFormTwo = ({
|
|
|
13360
13552
|
const stateId = Digit.ULBService.getStateId();
|
|
13361
13553
|
const [showToast, setShowToast] = useState(false);
|
|
13362
13554
|
const [error, setError] = useState("");
|
|
13555
|
+
const tenantId = window.localStorage.getItem("CITIZEN.CITY");
|
|
13363
13556
|
const {
|
|
13364
13557
|
isLoading,
|
|
13365
13558
|
data
|
|
13366
13559
|
} = Digit.Hooks.pt.usePropertyMDMS(stateId, "NDC", ["Documents"]);
|
|
13560
|
+
const checkFormData = useSelector(state => state.ndc.NDCForm.formData || {});
|
|
13561
|
+
const id = window.location.pathname.split("/").pop();
|
|
13562
|
+
const user = Digit.UserService.getUser();
|
|
13563
|
+
const {
|
|
13564
|
+
isLoading: propertyLoading,
|
|
13565
|
+
data: applicationDetails,
|
|
13566
|
+
refetch
|
|
13567
|
+
} = Digit.Hooks.ndc.useSearchEmployeeApplication({
|
|
13568
|
+
applicationNo: id
|
|
13569
|
+
}, tenantId);
|
|
13570
|
+
useEffect(() => {
|
|
13571
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && applicationDetails.Applications.length) {
|
|
13572
|
+
dispatch(updateNDCForm("responseData", applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.Applications));
|
|
13573
|
+
}
|
|
13574
|
+
}, [applicationDetails]);
|
|
13367
13575
|
function goNext(finaldata) {
|
|
13368
13576
|
console.log(`Data in step ${config.currStepNumber} is: \n`, finaldata);
|
|
13369
13577
|
const missingFields = validation(finaldata);
|
|
@@ -13375,8 +13583,68 @@ const NewNDCStepFormTwo = ({
|
|
|
13375
13583
|
}, 3000);
|
|
13376
13584
|
return;
|
|
13377
13585
|
}
|
|
13378
|
-
|
|
13586
|
+
const isRealId = id && id.startsWith("NDC-");
|
|
13587
|
+
console.log("here", isRealId);
|
|
13588
|
+
if (isRealId) {
|
|
13589
|
+
console.log("here bab");
|
|
13590
|
+
updateApplication(finaldata);
|
|
13591
|
+
} else {
|
|
13592
|
+
console.log("go next");
|
|
13593
|
+
onGoNext();
|
|
13594
|
+
}
|
|
13379
13595
|
}
|
|
13596
|
+
const updateApplication = async data => {
|
|
13597
|
+
var _Digit$UserService$ge, _user$info, _user$info2, _checkFormData$NDCDet, _checkFormData$NDCDet2, _user$info3, _user$info4, _checkFormData$respon, _ref, _data$documents, _response$ResponseInf;
|
|
13598
|
+
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
13599
|
+
console.log("final data===?????", data);
|
|
13600
|
+
console.log("checkFormData???====", checkFormData);
|
|
13601
|
+
const owners = [{
|
|
13602
|
+
name: user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.name,
|
|
13603
|
+
mobileNumber: user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.mobileNumber,
|
|
13604
|
+
gender: checkFormData === null || checkFormData === void 0 ? void 0 : (_checkFormData$NDCDet = checkFormData.NDCDetails) === null || _checkFormData$NDCDet === void 0 ? void 0 : (_checkFormData$NDCDet2 = _checkFormData$NDCDet.PropertyDetails) === null || _checkFormData$NDCDet2 === void 0 ? void 0 : _checkFormData$NDCDet2.gender,
|
|
13605
|
+
emailId: user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.emailId,
|
|
13606
|
+
type: user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.type
|
|
13607
|
+
}];
|
|
13608
|
+
const baseApplication = (checkFormData === null || checkFormData === void 0 ? void 0 : (_checkFormData$respon = checkFormData.responseData) === null || _checkFormData$respon === void 0 ? void 0 : _checkFormData$respon[0]) || {};
|
|
13609
|
+
const updatedApplication = {
|
|
13610
|
+
...baseApplication,
|
|
13611
|
+
workflow: {
|
|
13612
|
+
...(baseApplication === null || baseApplication === void 0 ? void 0 : baseApplication.workflow)
|
|
13613
|
+
},
|
|
13614
|
+
owners: owners,
|
|
13615
|
+
NdcDetails: baseApplication === null || baseApplication === void 0 ? void 0 : baseApplication.NdcDetails,
|
|
13616
|
+
Documents: []
|
|
13617
|
+
};
|
|
13618
|
+
(_ref = (data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : _data$documents.documents) || []) === null || _ref === void 0 ? void 0 : _ref.forEach(doc => {
|
|
13619
|
+
var _updatedApplication$D;
|
|
13620
|
+
(_updatedApplication$D = updatedApplication.Documents) === null || _updatedApplication$D === void 0 ? void 0 : _updatedApplication$D.push({
|
|
13621
|
+
uuid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
13622
|
+
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
13623
|
+
documentAttachment: doc === null || doc === void 0 ? void 0 : doc.fileStoreId
|
|
13624
|
+
});
|
|
13625
|
+
});
|
|
13626
|
+
const payload = {
|
|
13627
|
+
Applications: [updatedApplication]
|
|
13628
|
+
};
|
|
13629
|
+
console.log("payload", payload);
|
|
13630
|
+
const response = await Digit.NDCService.NDCUpdate({
|
|
13631
|
+
tenantId,
|
|
13632
|
+
details: payload
|
|
13633
|
+
});
|
|
13634
|
+
if ((response === null || response === void 0 ? void 0 : (_response$ResponseInf = response.ResponseInfo) === null || _response$ResponseInf === void 0 ? void 0 : _response$ResponseInf.status) === "successful") {
|
|
13635
|
+
dispatch(updateNDCForm("apiData", response));
|
|
13636
|
+
onGoNext();
|
|
13637
|
+
return {
|
|
13638
|
+
isSuccess: true,
|
|
13639
|
+
response
|
|
13640
|
+
};
|
|
13641
|
+
} else {
|
|
13642
|
+
return {
|
|
13643
|
+
isSuccess: false,
|
|
13644
|
+
response
|
|
13645
|
+
};
|
|
13646
|
+
}
|
|
13647
|
+
};
|
|
13380
13648
|
const closeToast = () => {
|
|
13381
13649
|
setShowToast(false);
|
|
13382
13650
|
setError("");
|
|
@@ -13422,7 +13690,7 @@ const NDCSummary = ({
|
|
|
13422
13690
|
goNext,
|
|
13423
13691
|
onGoBack
|
|
13424
13692
|
}) => {
|
|
13425
|
-
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,
|
|
13693
|
+
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, _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$data6, _workflowDetails$data7, _workflowDetails$data8;
|
|
13426
13694
|
const {
|
|
13427
13695
|
pathname: url
|
|
13428
13696
|
} = useLocation();
|
|
@@ -13434,9 +13702,8 @@ const NDCSummary = ({
|
|
|
13434
13702
|
const dispatch = useDispatch();
|
|
13435
13703
|
const mutateScreen = url.includes("/property-mutate/");
|
|
13436
13704
|
let user = Digit.UserService.getUser();
|
|
13437
|
-
console.log("formData", formData);
|
|
13438
13705
|
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;
|
|
13439
|
-
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.
|
|
13706
|
+
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.applicationNo) || (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.applicationNo);
|
|
13440
13707
|
const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
|
|
13441
13708
|
const isCitizen = window.location.href.includes("citizen");
|
|
13442
13709
|
const [getData, setData] = useState();
|
|
@@ -13446,7 +13713,7 @@ const NDCSummary = ({
|
|
|
13446
13713
|
};
|
|
13447
13714
|
Digit.Hooks.useClickOutside(menuRef, closeMenu, displayMenu);
|
|
13448
13715
|
const fetchCalculations = async () => {
|
|
13449
|
-
var _response$Calculation
|
|
13716
|
+
var _response$Calculation;
|
|
13450
13717
|
const payload = {
|
|
13451
13718
|
CalculationCriteria: [{
|
|
13452
13719
|
applicationNumber: appId,
|
|
@@ -13460,8 +13727,7 @@ const NDCSummary = ({
|
|
|
13460
13727
|
},
|
|
13461
13728
|
details: payload
|
|
13462
13729
|
});
|
|
13463
|
-
|
|
13464
|
-
setData(response === null || response === void 0 ? void 0 : (_response$Calculation3 = response.Calculation) === null || _response$Calculation3 === void 0 ? void 0 : _response$Calculation3[0]);
|
|
13730
|
+
setData(response === null || response === void 0 ? void 0 : (_response$Calculation = response.Calculation) === null || _response$Calculation === void 0 ? void 0 : _response$Calculation[0]);
|
|
13465
13731
|
};
|
|
13466
13732
|
useEffect(() => {
|
|
13467
13733
|
fetchCalculations();
|
|
@@ -13486,8 +13752,6 @@ const NDCSummary = ({
|
|
|
13486
13752
|
function onActionSelect(action) {
|
|
13487
13753
|
goNext(action);
|
|
13488
13754
|
}
|
|
13489
|
-
console.log("workflowDetails", workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.nextActions);
|
|
13490
|
-
console.log("actions", actions);
|
|
13491
13755
|
const pageStyle = {
|
|
13492
13756
|
padding: "2rem",
|
|
13493
13757
|
backgroundColor: "#f9f9f9",
|
|
@@ -13559,15 +13823,23 @@ const NDCSummary = ({
|
|
|
13559
13823
|
style: sectionStyle
|
|
13560
13824
|
}, (docs === null || docs === void 0 ? void 0 : docs.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
13561
13825
|
style: documentsContainerStyle
|
|
13562
|
-
}, docs === null || docs === void 0 ? void 0 : docs.map((doc, index) =>
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
|
|
13826
|
+
}, docs === null || docs === void 0 ? void 0 : docs.map((doc, index) => {
|
|
13827
|
+
var _doc$documentType;
|
|
13828
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13829
|
+
key: index,
|
|
13830
|
+
style: documentCardStyle
|
|
13831
|
+
}, /*#__PURE__*/React.createElement(NDCDocument$1, {
|
|
13832
|
+
value: docs,
|
|
13833
|
+
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
13834
|
+
index: index,
|
|
13835
|
+
formData: formData
|
|
13836
|
+
}), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
13837
|
+
style: {
|
|
13838
|
+
marginTop: "10px",
|
|
13839
|
+
fontSize: "15px"
|
|
13840
|
+
}
|
|
13841
|
+
}, t(`NDC_${doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replace(/\./g, "_")}_LABEL`)));
|
|
13842
|
+
})) : /*#__PURE__*/React.createElement("div", null, t("TL_NO_DOCUMENTS_MSG"))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar$1, {
|
|
13571
13843
|
style: {
|
|
13572
13844
|
background: " white",
|
|
13573
13845
|
color: "black",
|
|
@@ -13576,7 +13848,7 @@ const NDCSummary = ({
|
|
|
13576
13848
|
},
|
|
13577
13849
|
label: "Back",
|
|
13578
13850
|
onSubmit: onGoBack
|
|
13579
|
-
}), displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
13851
|
+
}), displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data6 = workflowDetails.data) !== null && _workflowDetails$data6 !== void 0 && (_workflowDetails$data7 = _workflowDetails$data6.actionState) !== null && _workflowDetails$data7 !== void 0 && _workflowDetails$data7.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data8 = workflowDetails.data) !== null && _workflowDetails$data8 !== void 0 && _workflowDetails$data8.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
|
|
13580
13852
|
localeKeyPrefix: `WF_EMPLOYEE_${"NDC"}`,
|
|
13581
13853
|
options: actions,
|
|
13582
13854
|
optionKey: "action",
|
|
@@ -13606,7 +13878,7 @@ const NDCNewFormSummaryStepThreeCitizen = ({
|
|
|
13606
13878
|
const res = await onSubmit(formData, actionStatus);
|
|
13607
13879
|
if (res !== null && res !== void 0 && res.isSuccess) {
|
|
13608
13880
|
var _res$response, _res$response$Applica, _res$response$Applica2;
|
|
13609
|
-
history.push("/digit-ui/citizen/ndc/response/" + (res === null || res === void 0 ? void 0 : (_res$response = res.response) === null || _res$response === void 0 ? void 0 : (_res$response$Applica = _res$response.Applications) === null || _res$response$Applica === void 0 ? void 0 : (_res$response$Applica2 = _res$response$Applica[0]) === null || _res$response$Applica2 === void 0 ? void 0 : _res$response$Applica2.
|
|
13881
|
+
history.push("/digit-ui/citizen/ndc/response/" + (res === null || res === void 0 ? void 0 : (_res$response = res.response) === null || _res$response === void 0 ? void 0 : (_res$response$Applica = _res$response.Applications) === null || _res$response$Applica === void 0 ? void 0 : (_res$response$Applica2 = _res$response$Applica[0]) === null || _res$response$Applica2 === void 0 ? void 0 : _res$response$Applica2.applicationNo));
|
|
13610
13882
|
} else {
|
|
13611
13883
|
console.error("Submission failed, not moving to next step.", res === null || res === void 0 ? void 0 : res.response);
|
|
13612
13884
|
}
|
|
@@ -13640,7 +13912,7 @@ const NDCNewFormSummaryStepThreeCitizen = ({
|
|
|
13640
13912
|
updatedApplication.Documents.push({
|
|
13641
13913
|
uuid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
13642
13914
|
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
13643
|
-
documentAttachment: doc === null || doc === void 0 ? void 0 : doc.
|
|
13915
|
+
documentAttachment: doc === null || doc === void 0 ? void 0 : doc.filestoreId
|
|
13644
13916
|
});
|
|
13645
13917
|
});
|
|
13646
13918
|
const payload = {
|
|
@@ -13653,7 +13925,7 @@ const NDCNewFormSummaryStepThreeCitizen = ({
|
|
|
13653
13925
|
const finalPayload = mapToNDCPayload(data, actionStatus);
|
|
13654
13926
|
const response = await Digit.NDCService.NDCUpdate({
|
|
13655
13927
|
tenantId,
|
|
13656
|
-
|
|
13928
|
+
finalPayload
|
|
13657
13929
|
});
|
|
13658
13930
|
dispatch(resetNDCForm());
|
|
13659
13931
|
if ((response === null || response === void 0 ? void 0 : (_response$ResponseInf = response.ResponseInfo) === null || _response$ResponseInf === void 0 ? void 0 : _response$ResponseInf.status) === "successful") {
|
|
@@ -13823,7 +14095,7 @@ const PayWSBillModal = ({
|
|
|
13823
14095
|
width: "90%",
|
|
13824
14096
|
marginTop: "5px"
|
|
13825
14097
|
}
|
|
13826
|
-
}, isLoading ? /*#__PURE__*/React.createElement(Loader, null) : isError ? /*#__PURE__*/React.createElement("p", {
|
|
14098
|
+
}, isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : isError ? /*#__PURE__*/React.createElement("p", {
|
|
13827
14099
|
style: {
|
|
13828
14100
|
color: "red",
|
|
13829
14101
|
padding: "1rem"
|
|
@@ -13969,7 +14241,7 @@ const NewNDCStepForm$1 = () => {
|
|
|
13969
14241
|
isLoading,
|
|
13970
14242
|
data: applicationDetails
|
|
13971
14243
|
} = Digit.Hooks.ndc.useSearchEmployeeApplication({
|
|
13972
|
-
|
|
14244
|
+
applicationNo: id
|
|
13973
14245
|
}, tenantId);
|
|
13974
14246
|
useEffect(() => {
|
|
13975
14247
|
if (applicationDetails !== null && applicationDetails !== void 0 && applicationDetails.Applications.length) {
|
|
@@ -14034,7 +14306,7 @@ const NewNDCStepFormOne$1 = ({
|
|
|
14034
14306
|
}, 3000);
|
|
14035
14307
|
return;
|
|
14036
14308
|
}
|
|
14037
|
-
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.
|
|
14309
|
+
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.applicationNo || 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.applicationNo) {
|
|
14038
14310
|
onGoNext();
|
|
14039
14311
|
} else createApplication(data);
|
|
14040
14312
|
onGoNext();
|
|
@@ -14309,7 +14581,7 @@ const NDCNewFormSummaryStepThreeEmployee = ({
|
|
|
14309
14581
|
const res = await onSubmit(formData, actionStatus);
|
|
14310
14582
|
if (res !== null && res !== void 0 && res.isSuccess) {
|
|
14311
14583
|
var _res$response, _res$response$Applica, _res$response$Applica2;
|
|
14312
|
-
history.push("/digit-ui/employee/ndc/response/" + (res === null || res === void 0 ? void 0 : (_res$response = res.response) === null || _res$response === void 0 ? void 0 : (_res$response$Applica = _res$response.Applications) === null || _res$response$Applica === void 0 ? void 0 : (_res$response$Applica2 = _res$response$Applica[0]) === null || _res$response$Applica2 === void 0 ? void 0 : _res$response$Applica2.
|
|
14584
|
+
history.push("/digit-ui/employee/ndc/response/" + (res === null || res === void 0 ? void 0 : (_res$response = res.response) === null || _res$response === void 0 ? void 0 : (_res$response$Applica = _res$response.Applications) === null || _res$response$Applica === void 0 ? void 0 : (_res$response$Applica2 = _res$response$Applica[0]) === null || _res$response$Applica2 === void 0 ? void 0 : _res$response$Applica2.applicationNo));
|
|
14313
14585
|
} else {
|
|
14314
14586
|
console.error("Submission failed, not moving to next step.", res === null || res === void 0 ? void 0 : res.response);
|
|
14315
14587
|
}
|
|
@@ -14386,43 +14658,42 @@ const NDCNewFormSummaryStepThreeEmployee = ({
|
|
|
14386
14658
|
const MyApplications = ({
|
|
14387
14659
|
view
|
|
14388
14660
|
}) => {
|
|
14389
|
-
var _Digit$UserService$ge
|
|
14661
|
+
var _Digit$UserService$ge;
|
|
14390
14662
|
const {
|
|
14391
14663
|
t
|
|
14392
14664
|
} = useTranslation();
|
|
14393
|
-
const history = useHistory();
|
|
14394
14665
|
const userInfo = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
14395
14666
|
const tenantId = window.localStorage.getItem("CITIZEN.CITY");
|
|
14396
|
-
|
|
14667
|
+
const itemsPerPage = 5;
|
|
14397
14668
|
const {
|
|
14398
14669
|
isLoading,
|
|
14399
|
-
data
|
|
14400
|
-
isError,
|
|
14401
|
-
error
|
|
14670
|
+
data
|
|
14402
14671
|
} = Digit.Hooks.ndc.useSearchApplication({
|
|
14403
14672
|
mobileNumber: userInfo.mobileNumber
|
|
14404
14673
|
}, tenantId);
|
|
14405
|
-
|
|
14674
|
+
const [currentPage, setCurrentPage] = useState(1);
|
|
14406
14675
|
if (isLoading) {
|
|
14407
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
14408
|
-
}
|
|
14409
|
-
|
|
14676
|
+
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
14677
|
+
}
|
|
14678
|
+
const applicationsList = (data === null || data === void 0 ? void 0 : data.data) || [];
|
|
14679
|
+
const totalPages = Math.ceil(applicationsList.length / itemsPerPage);
|
|
14680
|
+
const indexOfLastItem = currentPage * itemsPerPage;
|
|
14681
|
+
const indexOfFirstItem = indexOfLastItem - itemsPerPage;
|
|
14682
|
+
const currentApplications = applicationsList.slice(indexOfFirstItem, indexOfLastItem);
|
|
14683
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, t("TL_MY_APPLICATIONS_HEADER")), currentApplications.map((application, index) => {
|
|
14410
14684
|
var _application$Applicat, _application$Applicat2, _application$Applicat3, _application$Applicat4;
|
|
14411
14685
|
const filteredApplication = Object.fromEntries(Object.entries(application).filter(([key]) => key !== "Applications"));
|
|
14412
|
-
console.log("application?.Applications?.applicationStatus", filteredApplication);
|
|
14413
14686
|
return /*#__PURE__*/React.createElement("div", {
|
|
14414
14687
|
key: `card-${index}`
|
|
14415
14688
|
}, /*#__PURE__*/React.createElement(Card, null, Object.keys(filteredApplication).filter(key => filteredApplication[key] !== null).map(item => /*#__PURE__*/React.createElement(KeyNote, {
|
|
14416
14689
|
keyValue: t(item),
|
|
14417
14690
|
note: t(filteredApplication[item])
|
|
14418
|
-
})), (application === null || application === void 0 ? void 0 : (_application$Applicat = application.Applications) === null || _application$Applicat === void 0 ? void 0 : _application$Applicat.applicationStatus)
|
|
14419
|
-
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.
|
|
14691
|
+
})), (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, {
|
|
14692
|
+
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.applicationNo}`
|
|
14420
14693
|
}, /*#__PURE__*/React.createElement(SubmitBar$1, {
|
|
14421
14694
|
label: t("CS_VIEW_DETAILS")
|
|
14422
14695
|
})), (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, {
|
|
14423
|
-
to: {
|
|
14424
|
-
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}`
|
|
14425
|
-
}
|
|
14696
|
+
to: `/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.applicationNo}/${tenantId}?tenantId=${tenantId}`
|
|
14426
14697
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14427
14698
|
style: {
|
|
14428
14699
|
marginTop: "10px"
|
|
@@ -14430,7 +14701,44 @@ const MyApplications = ({
|
|
|
14430
14701
|
}, /*#__PURE__*/React.createElement(SubmitBar$1, {
|
|
14431
14702
|
label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT")
|
|
14432
14703
|
})))));
|
|
14433
|
-
})
|
|
14704
|
+
}), !applicationsList.length && /*#__PURE__*/React.createElement("p", {
|
|
14705
|
+
style: {
|
|
14706
|
+
marginLeft: "16px",
|
|
14707
|
+
marginTop: "16px"
|
|
14708
|
+
}
|
|
14709
|
+
}, t("PTR_NO_APPLICATION_FOUND_MSG")), applicationsList.length > itemsPerPage && /*#__PURE__*/React.createElement("div", {
|
|
14710
|
+
style: {
|
|
14711
|
+
display: "flex",
|
|
14712
|
+
alignItems: "center",
|
|
14713
|
+
justifyContent: "center",
|
|
14714
|
+
gap: "16px",
|
|
14715
|
+
marginTop: "20px"
|
|
14716
|
+
}
|
|
14717
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
14718
|
+
disabled: currentPage === 1,
|
|
14719
|
+
onClick: () => setCurrentPage(prev => prev - 1),
|
|
14720
|
+
style: {
|
|
14721
|
+
cursor: currentPage === 1 ? "not-allowed" : "pointer"
|
|
14722
|
+
}
|
|
14723
|
+
}, "\u2190 Prev"), /*#__PURE__*/React.createElement("span", null, "Page ", currentPage, " of ", totalPages), /*#__PURE__*/React.createElement("button", {
|
|
14724
|
+
disabled: currentPage === totalPages,
|
|
14725
|
+
onClick: () => setCurrentPage(prev => prev + 1),
|
|
14726
|
+
style: {
|
|
14727
|
+
cursor: currentPage === totalPages ? "not-allowed" : "pointer"
|
|
14728
|
+
}
|
|
14729
|
+
}, "Next \u2192")), /*#__PURE__*/React.createElement("p", {
|
|
14730
|
+
style: {
|
|
14731
|
+
marginLeft: "16px",
|
|
14732
|
+
marginTop: "16px"
|
|
14733
|
+
}
|
|
14734
|
+
}, t("PTR_TEXT_NOT_ABLE_TO_FIND_THE_APPLICATION"), " ", /*#__PURE__*/React.createElement("span", {
|
|
14735
|
+
className: "link",
|
|
14736
|
+
style: {
|
|
14737
|
+
display: "block"
|
|
14738
|
+
}
|
|
14739
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
14740
|
+
to: "/digit-ui/citizen/ndc/new-application"
|
|
14741
|
+
}, t("NDC_COMMON_CLICK_HERE_TO_REGISTER_NEW_APPLICATION")))));
|
|
14434
14742
|
};
|
|
14435
14743
|
|
|
14436
14744
|
const NDCResponseCitizen = props => {
|
|
@@ -14538,7 +14846,7 @@ const NDCModule = ({
|
|
|
14538
14846
|
});
|
|
14539
14847
|
Digit.SessionStorage.set("NOC_TENANTS", tenants);
|
|
14540
14848
|
if (isLoading) {
|
|
14541
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
14849
|
+
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
14542
14850
|
}
|
|
14543
14851
|
if (userType === "citizen") {
|
|
14544
14852
|
return /*#__PURE__*/React.createElement(App, null);
|