@mseva/digit-ui-module-ndc 1.0.75 → 1.0.76
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 +64 -55
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2448,7 +2448,7 @@ const getAcknowledgementData = async (application, formattedAddress, tenantInfo,
|
|
|
2448
2448
|
bold: true,
|
|
2449
2449
|
fontSize: 9
|
|
2450
2450
|
}, {
|
|
2451
|
-
text: " (s/o, d/o) ",
|
|
2451
|
+
text: " (s/o, d/o, w/o) ",
|
|
2452
2452
|
bold: false,
|
|
2453
2453
|
fontSize: 9
|
|
2454
2454
|
}, {
|
|
@@ -2557,7 +2557,7 @@ const availableOptions = [{
|
|
|
2557
2557
|
name: "No"
|
|
2558
2558
|
}];
|
|
2559
2559
|
const ApplicationOverview = () => {
|
|
2560
|
-
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _applicationDetails$A2, _applicationDetails$A3, _applicationDetails$A4, _applicationDetails$A5, _user, _user$info, _user$info$roles, _user2, _user2$info, _user2$info$roles$fin, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetailsTemp$, _workflowDetailsTemp$2, _propertyDetailsFetch3, _Object$entries, _displayData$NdcDetai2, _displayData$Document, _applicationDetails$
|
|
2560
|
+
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _applicationDetails$A2, _applicationDetails$A3, _applicationDetails$A4, _applicationDetails$A5, _user, _user$info, _user$info$roles, _user2, _user2$info, _user2$info$roles$fin, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetailsTemp$, _workflowDetailsTemp$2, _applicationDetails$A10, _applicationDetails$A11, _propertyDetailsFetch3, _Object$entries, _displayData$NdcDetai2, _displayData$Document, _applicationDetails$A26, _applicationDetails$A27, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _applicationDetails$A28, _applicationDetails$A29, _workflowDetails$data12;
|
|
2561
2561
|
const {
|
|
2562
2562
|
id
|
|
2563
2563
|
} = useParams();
|
|
@@ -2659,14 +2659,17 @@ const ApplicationOverview = () => {
|
|
|
2659
2659
|
};
|
|
2660
2660
|
useEffect(() => {
|
|
2661
2661
|
let WorkflowService = null;
|
|
2662
|
-
(async (_WorkflowService, _WorkflowService$Busi, _WorkflowService$Busi2) => {
|
|
2662
|
+
(async (_WorkflowService, _WorkflowService$Busi, _WorkflowService$Busi2, _WorkflowService2, _WorkflowService2$Bus, _WorkflowService2$Bus2) => {
|
|
2663
2663
|
setLoader(true);
|
|
2664
2664
|
WorkflowService = await Digit.WorkflowService.init(tenantId, "ndc-services");
|
|
2665
2665
|
setLoader(false);
|
|
2666
|
-
|
|
2666
|
+
console.log("WorkflowService====", (_WorkflowService = WorkflowService) === null || _WorkflowService === void 0 ? void 0 : (_WorkflowService$Busi = _WorkflowService.BusinessServices) === null || _WorkflowService$Busi === void 0 ? void 0 : (_WorkflowService$Busi2 = _WorkflowService$Busi[0]) === null || _WorkflowService$Busi2 === void 0 ? void 0 : _WorkflowService$Busi2.states);
|
|
2667
|
+
setWorkflowService((_WorkflowService2 = WorkflowService) === null || _WorkflowService2 === void 0 ? void 0 : (_WorkflowService2$Bus = _WorkflowService2.BusinessServices) === null || _WorkflowService2$Bus === void 0 ? void 0 : (_WorkflowService2$Bus2 = _WorkflowService2$Bus[0]) === null || _WorkflowService2$Bus2 === void 0 ? void 0 : _WorkflowService2$Bus2.states);
|
|
2667
2668
|
})();
|
|
2668
2669
|
}, [tenantId]);
|
|
2669
2670
|
const empData = EmployeeData(tenantId, approver);
|
|
2671
|
+
console.log("approver for ndc", approver);
|
|
2672
|
+
console.log("officerData", empData);
|
|
2670
2673
|
const {
|
|
2671
2674
|
data: reciept_data,
|
|
2672
2675
|
isLoading: recieptDataLoading
|
|
@@ -2737,7 +2740,7 @@ const ApplicationOverview = () => {
|
|
|
2737
2740
|
user = userInfo === null || userInfo === void 0 ? void 0 : userInfo.value;
|
|
2738
2741
|
}
|
|
2739
2742
|
const userRoles = (_user = 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);
|
|
2740
|
-
const isCemp = (_user2 = user) === null || _user2 === void 0 ? void 0 : (_user2$info = _user2.info) === null || _user2$info === void 0 ? void 0 : (_user2$info$roles$fin = _user2$info.roles.find(role => role.code
|
|
2743
|
+
const isCemp = (_user2 = user) === null || _user2 === void 0 ? void 0 : (_user2$info = _user2.info) === null || _user2$info === void 0 ? void 0 : (_user2$info$roles$fin = _user2$info.roles.find(role => role.code === "NDCCEMP")) === null || _user2$info$roles$fin === void 0 ? void 0 : _user2$info$roles$fin.code;
|
|
2741
2744
|
let actions = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.actionState) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.nextActions) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.filter(e => {
|
|
2742
2745
|
return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
|
|
2743
2746
|
var _e$roles;
|
|
@@ -2815,15 +2818,18 @@ const ApplicationOverview = () => {
|
|
|
2815
2818
|
const owners = (propertyDetailsFetch === null || propertyDetailsFetch === void 0 ? void 0 : (_propertyDetailsFetch = propertyDetailsFetch.Properties) === null || _propertyDetailsFetch === void 0 ? void 0 : (_propertyDetailsFetch2 = _propertyDetailsFetch[0]) === null || _propertyDetailsFetch2 === void 0 ? void 0 : _propertyDetailsFetch2.owners) || [];
|
|
2816
2819
|
const propertyOwnerNames = owners.map(owner => owner === null || owner === void 0 ? void 0 : owner.name).filter(Boolean);
|
|
2817
2820
|
Property.propertyOwnerNames = propertyOwnerNames;
|
|
2821
|
+
console.log("propertyOwnerNames", propertyOwnerNames);
|
|
2818
2822
|
const tenantInfo = tenants === null || tenants === void 0 ? void 0 : tenants.find(tenant => {
|
|
2819
2823
|
var _Property$Application, _Property$Application2;
|
|
2820
2824
|
return (tenant === null || tenant === void 0 ? void 0 : tenant.code) === (Property === null || Property === void 0 ? void 0 : (_Property$Application = Property.Applications) === null || _Property$Application === void 0 ? void 0 : (_Property$Application2 = _Property$Application[0]) === null || _Property$Application2 === void 0 ? void 0 : _Property$Application2.tenantId);
|
|
2821
2825
|
});
|
|
2826
|
+
console.log("tenantInfo", tenantInfo);
|
|
2822
2827
|
const ulbType = tenantInfo === null || tenantInfo === void 0 ? void 0 : (_tenantInfo$city = tenantInfo.city) === null || _tenantInfo$city === void 0 ? void 0 : _tenantInfo$city.ulbType;
|
|
2823
2828
|
let acknowledgementData;
|
|
2824
2829
|
if (empData) {
|
|
2825
2830
|
acknowledgementData = await getAcknowledgementData(Property, formattedAddress, tenantInfo, t, approver, ulbType, empData, approverStatement);
|
|
2826
2831
|
}
|
|
2832
|
+
console.log("acknowledgementData", acknowledgementData);
|
|
2827
2833
|
setTimeout(() => {
|
|
2828
2834
|
Digit.Utils.pdf.generateNDC(acknowledgementData);
|
|
2829
2835
|
setLoader(false);
|
|
@@ -2834,16 +2840,23 @@ const ApplicationOverview = () => {
|
|
|
2834
2840
|
}
|
|
2835
2841
|
};
|
|
2836
2842
|
function onActionSelect(action) {
|
|
2837
|
-
var _applicationDetails$A8, _applicationDetails$A9, _action$
|
|
2843
|
+
var _action$state, _applicationDetails$A8, _applicationDetails$A9, _action$state2, _action$state2$action, _filterNexState$, _filterRoles$, _displayData$applican;
|
|
2844
|
+
console.log("action====||?", action === null || action === void 0 ? void 0 : (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.actions);
|
|
2838
2845
|
const ndcDetails = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A8 = applicationDetails.Applications) === null || _applicationDetails$A8 === void 0 ? void 0 : (_applicationDetails$A9 = _applicationDetails$A8[0]) === null || _applicationDetails$A9 === void 0 ? void 0 : _applicationDetails$A9.NdcDetails) || [];
|
|
2839
2846
|
const hasDuePending = ndcDetails === null || ndcDetails === void 0 ? void 0 : ndcDetails.some(item => item.isDuePending === true);
|
|
2840
|
-
|
|
2847
|
+
console.log("hasDuePending", hasDuePending);
|
|
2848
|
+
const filterNexState = action === null || action === void 0 ? void 0 : (_action$state2 = action.state) === null || _action$state2 === void 0 ? void 0 : (_action$state2$action = _action$state2.actions) === null || _action$state2$action === void 0 ? void 0 : _action$state2$action.filter(item => item.action == (action === null || action === void 0 ? void 0 : action.action));
|
|
2849
|
+
console.log("filterNexState====||?", (_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
|
|
2841
2850
|
const filterRoles = getWorkflowService === null || getWorkflowService === void 0 ? void 0 : getWorkflowService.filter(item => {
|
|
2842
|
-
var _filterNexState
|
|
2843
|
-
return (item === null || item === void 0 ? void 0 : item.uuid) == ((_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState
|
|
2851
|
+
var _filterNexState$2;
|
|
2852
|
+
return (item === null || item === void 0 ? void 0 : item.uuid) == ((_filterNexState$2 = filterNexState[0]) === null || _filterNexState$2 === void 0 ? void 0 : _filterNexState$2.nextState);
|
|
2844
2853
|
});
|
|
2854
|
+
console.log("filterRoles====||?", filterRoles);
|
|
2855
|
+
console.log("action test", action === null || action === void 0 ? void 0 : action.action);
|
|
2845
2856
|
const checkactionApp = (action === null || action === void 0 ? void 0 : action.action) == "APPROVE";
|
|
2857
|
+
console.log("filterRoles && checkactionApp", filterRoles && checkactionApp, checkactionApp, filterRoles);
|
|
2846
2858
|
if (hasDuePending && checkactionApp) {
|
|
2859
|
+
console.log("alwasy coming appprve");
|
|
2847
2860
|
setLable("You Can Not Approve This Application, Because It Has Pending Dues. Please Send It To Required Department");
|
|
2848
2861
|
setError(true);
|
|
2849
2862
|
setShowToast(true);
|
|
@@ -2969,6 +2982,7 @@ const ApplicationOverview = () => {
|
|
|
2969
2982
|
enabled: getPropertyId ? true : false,
|
|
2970
2983
|
privacy: Digit.Utils.getPrivacyObject()
|
|
2971
2984
|
});
|
|
2985
|
+
console.log("applicationDetails", applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A10 = applicationDetails.Applications) === null || _applicationDetails$A10 === void 0 ? void 0 : (_applicationDetails$A11 = _applicationDetails$A10[0]) === null || _applicationDetails$A11 === void 0 ? void 0 : _applicationDetails$A11.NdcDetails);
|
|
2972
2986
|
useEffect(() => {
|
|
2973
2987
|
const handleClickOutside = event => {
|
|
2974
2988
|
if (toastRef.current && !toastRef.current.contains(event.target)) {
|
|
@@ -3012,7 +3026,7 @@ const ApplicationOverview = () => {
|
|
|
3012
3026
|
label: t(`${key === null || key === void 0 ? void 0 : key.toUpperCase()}`),
|
|
3013
3027
|
text: Array.isArray(value) ? value.map(item => typeof item === "object" ? t((item === null || item === void 0 ? void 0 : item.code) || "N/A") : t(item || "N/A")).join(", ") : typeof value === "object" ? t((value === null || value === void 0 ? void 0 : value.code) || "N/A") : t(value || "N/A")
|
|
3014
3028
|
}))))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, 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) => {
|
|
3015
|
-
var _applicationDetails$
|
|
3029
|
+
var _applicationDetails$A12, _applicationDetails$A13, _applicationDetails$A14, _applicationDetails$A15, _applicationDetails$A16, _applicationDetails$A17, _applicationDetails$A18, _applicationDetails$A19, _applicationDetails$A20, _propertyDetailsFetch4, _propertyDetailsFetch5, _propertyDetailsFetch6, _propertyDetailsFetch7, _propertyDetailsFetch8, _propertyDetailsFetch9, _propertyDetailsFetch0, _propertyDetailsFetch1, _propertyDetailsFetch10, _propertyDetailsFetch11, _propertyDetailsFetch12, _propertyDetailsFetch13, _propertyDetailsFetch14, _propertyDetailsFetch15, _propertyDetailsFetch16, _propertyDetailsFetch17, _propertyDetailsFetch18, _propertyDetailsFetch19, _propertyDetailsFetch20, _propertyDetailsFetch21, _applicationDetails$A21, _applicationDetails$A22, _applicationDetails$A23, _applicationDetails$A24, _applicationDetails$A25;
|
|
3016
3030
|
const isPT = (detail === null || detail === void 0 ? void 0 : detail.businessService) === "NDC_PROPERTY_TAX";
|
|
3017
3031
|
const isSW = (detail === null || detail === void 0 ? void 0 : detail.businessService) === "NDC_SEWERAGE_SERVICE_CONNECTION";
|
|
3018
3032
|
const isWS = (detail === null || detail === void 0 ? void 0 : detail.businessService) === "NDC_WATER_SERVICE_CONNECTION";
|
|
@@ -3071,7 +3085,7 @@ const ApplicationOverview = () => {
|
|
|
3071
3085
|
text: t(detail.propertyType) || detail.propertyType
|
|
3072
3086
|
}), isPT && (propertyDetailsFetch === null || propertyDetailsFetch === void 0 ? void 0 : propertyDetailsFetch.Properties) && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Row, {
|
|
3073
3087
|
label: t("CHB_DISCOUNT_REASON"),
|
|
3074
|
-
text: t(`${(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
3088
|
+
text: t(`${(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A12 = applicationDetails.Applications) === null || _applicationDetails$A12 === void 0 ? void 0 : (_applicationDetails$A13 = _applicationDetails$A12[0]) === null || _applicationDetails$A13 === void 0 ? void 0 : _applicationDetails$A13.reason) == "OTHERS" ? applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A14 = applicationDetails.Applications) === null || _applicationDetails$A14 === void 0 ? void 0 : (_applicationDetails$A15 = _applicationDetails$A14[0]) === null || _applicationDetails$A15 === void 0 ? void 0 : (_applicationDetails$A16 = _applicationDetails$A15.NdcDetails) === null || _applicationDetails$A16 === void 0 ? void 0 : (_applicationDetails$A17 = _applicationDetails$A16.find(item => (item === null || item === void 0 ? void 0 : item.businessService) === "PT")) === null || _applicationDetails$A17 === void 0 ? void 0 : (_applicationDetails$A18 = _applicationDetails$A17.additionalDetails) === null || _applicationDetails$A18 === void 0 ? void 0 : _applicationDetails$A18.reason : applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A19 = applicationDetails.Applications) === null || _applicationDetails$A19 === void 0 ? void 0 : (_applicationDetails$A20 = _applicationDetails$A19[0]) === null || _applicationDetails$A20 === void 0 ? void 0 : _applicationDetails$A20.reason}`)
|
|
3075
3089
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
3076
3090
|
label: t("City"),
|
|
3077
3091
|
text: propertyDetailsFetch === null || propertyDetailsFetch === void 0 ? void 0 : (_propertyDetailsFetch4 = propertyDetailsFetch.Properties) === null || _propertyDetailsFetch4 === void 0 ? void 0 : (_propertyDetailsFetch5 = _propertyDetailsFetch4[0]) === null || _propertyDetailsFetch5 === void 0 ? void 0 : (_propertyDetailsFetch6 = _propertyDetailsFetch5.address) === null || _propertyDetailsFetch6 === void 0 ? void 0 : _propertyDetailsFetch6.city
|
|
@@ -3095,7 +3109,7 @@ const ApplicationOverview = () => {
|
|
|
3095
3109
|
text: propertyDetailsFetch === null || propertyDetailsFetch === void 0 ? void 0 : (_propertyDetailsFetch19 = propertyDetailsFetch.Properties) === null || _propertyDetailsFetch19 === void 0 ? void 0 : (_propertyDetailsFetch20 = _propertyDetailsFetch19[0]) === null || _propertyDetailsFetch20 === void 0 ? void 0 : (_propertyDetailsFetch21 = _propertyDetailsFetch20.additionalDetails) === null || _propertyDetailsFetch21 === void 0 ? void 0 : _propertyDetailsFetch21.yearConstruction
|
|
3096
3110
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
3097
3111
|
label: t("Remarks"),
|
|
3098
|
-
text: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
3112
|
+
text: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A21 = applicationDetails.Applications) === null || _applicationDetails$A21 === void 0 ? void 0 : (_applicationDetails$A22 = _applicationDetails$A21[0]) === null || _applicationDetails$A22 === void 0 ? void 0 : (_applicationDetails$A23 = _applicationDetails$A22.NdcDetails) === null || _applicationDetails$A23 === void 0 ? void 0 : (_applicationDetails$A24 = _applicationDetails$A23.find(item => (item === null || item === void 0 ? void 0 : item.businessService) === "PT")) === null || _applicationDetails$A24 === void 0 ? void 0 : (_applicationDetails$A25 = _applicationDetails$A24.additionalDetails) === null || _applicationDetails$A25 === void 0 ? void 0 : _applicationDetails$A25.remarks) || "N/A"
|
|
3099
3113
|
}))), canRaiseFlag && /*#__PURE__*/React.createElement("div", {
|
|
3100
3114
|
className: "mychallan-custom"
|
|
3101
3115
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
@@ -3123,7 +3137,7 @@ const ApplicationOverview = () => {
|
|
|
3123
3137
|
}) : /*#__PURE__*/React.createElement("div", null, t("TL_NO_DOCUMENTS_MSG")))), /*#__PURE__*/React.createElement(NewApplicationTimeline, {
|
|
3124
3138
|
workflowDetails: workflowDetails,
|
|
3125
3139
|
t: t
|
|
3126
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
3140
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A26 = applicationDetails.Applications) === null || _applicationDetails$A26 === void 0 ? void 0 : (_applicationDetails$A27 = _applicationDetails$A26[0]) === null || _applicationDetails$A27 === void 0 ? void 0 : _applicationDetails$A27.applicationStatus) !== "INITIATED" && (actions === null || actions === void 0 ? void 0 : actions.length) && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data1 = workflowDetails.data) !== null && _workflowDetails$data1 !== void 0 && (_workflowDetails$data10 = _workflowDetails$data1.actionState) !== null && _workflowDetails$data10 !== void 0 && _workflowDetails$data10.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data11 = workflowDetails.data) !== null && _workflowDetails$data11 !== void 0 && _workflowDetails$data11.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
|
|
3127
3141
|
localeKeyPrefix: `WF_EDITRENEWAL`,
|
|
3128
3142
|
options: actions,
|
|
3129
3143
|
optionKey: "action",
|
|
@@ -3133,11 +3147,11 @@ const ApplicationOverview = () => {
|
|
|
3133
3147
|
ref: menuRef,
|
|
3134
3148
|
label: t("WF_TAKE_ACTION"),
|
|
3135
3149
|
onSubmit: () => setDisplayMenu(!displayMenu)
|
|
3136
|
-
})), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
3150
|
+
})), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A28 = applicationDetails.Applications) === null || _applicationDetails$A28 === void 0 ? void 0 : (_applicationDetails$A29 = _applicationDetails$A28[0]) === null || _applicationDetails$A29 === void 0 ? void 0 : _applicationDetails$A29.applicationStatus) == "INITIATED" && /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar$1, {
|
|
3137
3151
|
label: t("COMMON_EDIT"),
|
|
3138
3152
|
onSubmit: () => {
|
|
3139
|
-
var _applicationDetails$
|
|
3140
|
-
const id = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
3153
|
+
var _applicationDetails$A30, _applicationDetails$A31;
|
|
3154
|
+
const id = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A30 = applicationDetails.Applications) === null || _applicationDetails$A30 === void 0 ? void 0 : (_applicationDetails$A31 = _applicationDetails$A30[0]) === null || _applicationDetails$A31 === void 0 ? void 0 : _applicationDetails$A31.applicationNo;
|
|
3141
3155
|
history.push(`/digit-ui/employee/ndc/create/${id}`);
|
|
3142
3156
|
}
|
|
3143
3157
|
})), showModal ? /*#__PURE__*/React.createElement(NDCModal, {
|
|
@@ -10678,6 +10692,7 @@ const CitizenApplicationOverview = () => {
|
|
|
10678
10692
|
if (empData) {
|
|
10679
10693
|
acknowledgementData = await getAcknowledgementData(Property, formattedAddress, tenantInfo, t, approver, ulbType, empData, approverStatement);
|
|
10680
10694
|
}
|
|
10695
|
+
console.log("acknowledgementData", acknowledgementData);
|
|
10681
10696
|
setTimeout(() => {
|
|
10682
10697
|
Digit.Utils.pdf.generateNDC(acknowledgementData);
|
|
10683
10698
|
}, 0);
|
|
@@ -12487,27 +12502,23 @@ const NewNDCStepFormOne = ({
|
|
|
12487
12502
|
} else createApplication(data);
|
|
12488
12503
|
}
|
|
12489
12504
|
const createApplication = async data => {
|
|
12490
|
-
var _Digit$UserService$ge, _data$cpt, _data$cpt$details,
|
|
12505
|
+
var _Digit$UserService$ge, _ref, _data$cpt, _data$cpt$details, _ref2, _data$PropertyDetails5, _ref3, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails0, _data$NDCReason2;
|
|
12491
12506
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
12492
12507
|
const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
|
|
12493
|
-
const owners = ((data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : _data$cpt$details.owners) || []).map(
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
if ((rest === null || rest === void 0 ? void 0 : (_rest$name = rest.name) === null || _rest$name === void 0 ? void 0 : (_rest$name$trim = _rest$name.trim()) === null || _rest$name$trim === void 0 ? void 0 : _rest$name$trim.toLowerCase()) === (data === null || data === void 0 ? void 0 : (_data$PropertyDetails = data.PropertyDetails) === null || _data$PropertyDetails === void 0 ? void 0 : (_data$PropertyDetails2 = _data$PropertyDetails.firstName) === null || _data$PropertyDetails2 === void 0 ? void 0 : (_data$PropertyDetails3 = _data$PropertyDetails2.trim()) === null || _data$PropertyDetails3 === void 0 ? void 0 : _data$PropertyDetails3.toLowerCase())) {
|
|
12508
|
+
const owners = (_ref = (data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : _data$cpt$details.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(owner => {
|
|
12509
|
+
var _newOwner$name, _newOwner$name$trim, _data$PropertyDetails, _data$PropertyDetails2, _data$PropertyDetails3;
|
|
12510
|
+
const newOwner = JSON.parse(JSON.stringify(owner));
|
|
12511
|
+
delete newOwner.status;
|
|
12512
|
+
if ((newOwner === null || newOwner === void 0 ? void 0 : (_newOwner$name = newOwner.name) === null || _newOwner$name === void 0 ? void 0 : (_newOwner$name$trim = _newOwner$name.trim()) === null || _newOwner$name$trim === void 0 ? void 0 : _newOwner$name$trim.toLowerCase()) === (data === null || data === void 0 ? void 0 : (_data$PropertyDetails = data.PropertyDetails) === null || _data$PropertyDetails === void 0 ? void 0 : (_data$PropertyDetails2 = _data$PropertyDetails.firstName) === null || _data$PropertyDetails2 === void 0 ? void 0 : (_data$PropertyDetails3 = _data$PropertyDetails2.trim()) === null || _data$PropertyDetails3 === void 0 ? void 0 : _data$PropertyDetails3.toLowerCase())) {
|
|
12499
12513
|
var _data$PropertyDetails4;
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
emailId: data === null || data === void 0 ? void 0 : (_data$PropertyDetails4 = data.PropertyDetails) === null || _data$PropertyDetails4 === void 0 ? void 0 : _data$PropertyDetails4.email,
|
|
12503
|
-
isPrimaryOwner: true
|
|
12504
|
-
};
|
|
12514
|
+
newOwner.emailId = data === null || data === void 0 ? void 0 : (_data$PropertyDetails4 = data.PropertyDetails) === null || _data$PropertyDetails4 === void 0 ? void 0 : _data$PropertyDetails4.email;
|
|
12515
|
+
newOwner.isPrimaryOwner = true;
|
|
12505
12516
|
}
|
|
12506
|
-
return
|
|
12517
|
+
return newOwner;
|
|
12507
12518
|
});
|
|
12508
12519
|
console.log("checkData==", data);
|
|
12509
12520
|
const ndcDetails = [];
|
|
12510
|
-
(
|
|
12521
|
+
(_ref2 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails5 = data.PropertyDetails) === null || _data$PropertyDetails5 === void 0 ? void 0 : _data$PropertyDetails5.waterConnection) || []) === null || _ref2 === void 0 ? void 0 : _ref2.forEach(wc => {
|
|
12511
12522
|
var _wc$billData, _data$PropertyDetails6, _data$cpt2, _data$cpt2$details, _wc$billData2, _wc$billData3;
|
|
12512
12523
|
ndcDetails.push({
|
|
12513
12524
|
uuid: wc === null || wc === void 0 ? void 0 : (_wc$billData = wc.billData) === null || _wc$billData === void 0 ? void 0 : _wc$billData.id,
|
|
@@ -12522,7 +12533,7 @@ const NewNDCStepFormOne = ({
|
|
|
12522
12533
|
status: wc === null || wc === void 0 ? void 0 : (_wc$billData3 = wc.billData) === null || _wc$billData3 === void 0 ? void 0 : _wc$billData3.status
|
|
12523
12534
|
});
|
|
12524
12535
|
});
|
|
12525
|
-
(
|
|
12536
|
+
(_ref3 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails7 = data.PropertyDetails) === null || _data$PropertyDetails7 === void 0 ? void 0 : _data$PropertyDetails7.sewerageConnection) || []) === null || _ref3 === void 0 ? void 0 : _ref3.forEach(sc => {
|
|
12526
12537
|
var _sc$billData, _data$PropertyDetails8, _data$cpt3, _data$cpt3$details, _sc$billData2, _sc$billData3;
|
|
12527
12538
|
ndcDetails.push({
|
|
12528
12539
|
uuid: sc === null || sc === void 0 ? void 0 : (_sc$billData = sc.billData) === null || _sc$billData === void 0 ? void 0 : _sc$billData.id,
|
|
@@ -12602,8 +12613,8 @@ const NewNDCStepFormOne = ({
|
|
|
12602
12613
|
if ((checkFormData === null || checkFormData === void 0 ? void 0 : (_checkFormData$respon5 = checkFormData.responseData) === null || _checkFormData$respon5 === void 0 ? void 0 : (_checkFormData$respon6 = _checkFormData$respon5[0]) === null || _checkFormData$respon6 === void 0 ? void 0 : (_checkFormData$respon7 = _checkFormData$respon6.NdcDetails) === null || _checkFormData$respon7 === void 0 ? void 0 : _checkFormData$respon7.length) > 0) {
|
|
12603
12614
|
ndcDetails = checkFormData.responseData[0].NdcDetails;
|
|
12604
12615
|
} else {
|
|
12605
|
-
var
|
|
12606
|
-
(
|
|
12616
|
+
var _ref4, _data$PropertyDetails13, _ref5, _data$PropertyDetails15, _data$PropertyDetails17, _data$PropertyDetails18;
|
|
12617
|
+
(_ref4 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails13 = data.PropertyDetails) === null || _data$PropertyDetails13 === void 0 ? void 0 : _data$PropertyDetails13.waterConnection) || []) === null || _ref4 === void 0 ? void 0 : _ref4.forEach(wc => {
|
|
12607
12618
|
var _wc$billData4, _data$PropertyDetails14, _data$cpt7, _data$cpt7$details, _wc$billData5, _wc$billData6;
|
|
12608
12619
|
ndcDetails.push({
|
|
12609
12620
|
uuid: wc === null || wc === void 0 ? void 0 : (_wc$billData4 = wc.billData) === null || _wc$billData4 === void 0 ? void 0 : _wc$billData4.id,
|
|
@@ -12618,7 +12629,7 @@ const NewNDCStepFormOne = ({
|
|
|
12618
12629
|
status: wc === null || wc === void 0 ? void 0 : (_wc$billData6 = wc.billData) === null || _wc$billData6 === void 0 ? void 0 : _wc$billData6.status
|
|
12619
12630
|
});
|
|
12620
12631
|
});
|
|
12621
|
-
(
|
|
12632
|
+
(_ref5 = (data === null || data === void 0 ? void 0 : (_data$PropertyDetails15 = data.PropertyDetails) === null || _data$PropertyDetails15 === void 0 ? void 0 : _data$PropertyDetails15.sewerageConnection) || []) === null || _ref5 === void 0 ? void 0 : _ref5.forEach(sc => {
|
|
12622
12633
|
var _sc$billData4, _data$PropertyDetails16, _data$cpt8, _data$cpt8$details, _sc$billData5, _sc$billData6;
|
|
12623
12634
|
ndcDetails.push({
|
|
12624
12635
|
uuid: sc === null || sc === void 0 ? void 0 : (_sc$billData4 = sc.billData) === null || _sc$billData4 === void 0 ? void 0 : _sc$billData4.id,
|
|
@@ -14652,10 +14663,11 @@ const NDCNewFormSummaryStepThreeCitizen = ({
|
|
|
14652
14663
|
var _Digit$UserService$ge, _ref, _inputData$apiData, _inputData$apiData$Ap, _inputData$apiData$Ap2, _formData$responseDat, _formData$apiData, _formData$apiData$App, _inputData$DocummentD, _inputData$DocummentD2;
|
|
14653
14664
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
14654
14665
|
console.log("inputData", inputData);
|
|
14655
|
-
const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14666
|
+
const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(item => {
|
|
14667
|
+
const obj = JSON.parse(JSON.stringify(item));
|
|
14668
|
+
delete obj.status;
|
|
14669
|
+
return obj;
|
|
14670
|
+
});
|
|
14659
14671
|
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]) || {};
|
|
14660
14672
|
console.log("baseApplication", baseApplication);
|
|
14661
14673
|
const updatedApplication = {
|
|
@@ -15075,24 +15087,20 @@ const NewNDCStepFormOne$1 = ({
|
|
|
15075
15087
|
onGoNext();
|
|
15076
15088
|
}
|
|
15077
15089
|
const createApplication = async data => {
|
|
15078
|
-
var _Digit$UserService$ge, _data$cpt2, _data$cpt2$details, _data$PropertyDetails5, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails1, _data$PropertyDetails10, _data$NDCReason2;
|
|
15090
|
+
var _Digit$UserService$ge, _ref, _data$cpt2, _data$cpt2$details, _data$PropertyDetails5, _data$PropertyDetails7, _data$PropertyDetails9, _data$PropertyDetails1, _data$PropertyDetails10, _data$NDCReason2;
|
|
15079
15091
|
setLoader(true);
|
|
15080
15092
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
15081
15093
|
const applicantId = applicant === null || applicant === void 0 ? void 0 : applicant.uuid;
|
|
15082
|
-
const owners = ((data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.owners) || []).map(
|
|
15083
|
-
|
|
15084
|
-
|
|
15085
|
-
|
|
15086
|
-
|
|
15087
|
-
if ((rest === null || rest === void 0 ? void 0 : (_rest$name = rest.name) === null || _rest$name === void 0 ? void 0 : (_rest$name$trim = _rest$name.trim()) === null || _rest$name$trim === void 0 ? void 0 : _rest$name$trim.toLowerCase()) === (data === null || data === void 0 ? void 0 : (_data$PropertyDetails = data.PropertyDetails) === null || _data$PropertyDetails === void 0 ? void 0 : (_data$PropertyDetails2 = _data$PropertyDetails.firstName) === null || _data$PropertyDetails2 === void 0 ? void 0 : (_data$PropertyDetails3 = _data$PropertyDetails2.trim()) === null || _data$PropertyDetails3 === void 0 ? void 0 : _data$PropertyDetails3.toLowerCase())) {
|
|
15094
|
+
const owners = (_ref = (data === null || data === void 0 ? void 0 : (_data$cpt2 = data.cpt) === null || _data$cpt2 === void 0 ? void 0 : (_data$cpt2$details = _data$cpt2.details) === null || _data$cpt2$details === void 0 ? void 0 : _data$cpt2$details.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(owner => {
|
|
15095
|
+
var _newOwner$name, _newOwner$name$trim, _data$PropertyDetails, _data$PropertyDetails2, _data$PropertyDetails3;
|
|
15096
|
+
const newOwner = JSON.parse(JSON.stringify(owner));
|
|
15097
|
+
delete newOwner.status;
|
|
15098
|
+
if ((newOwner === null || newOwner === void 0 ? void 0 : (_newOwner$name = newOwner.name) === null || _newOwner$name === void 0 ? void 0 : (_newOwner$name$trim = _newOwner$name.trim()) === null || _newOwner$name$trim === void 0 ? void 0 : _newOwner$name$trim.toLowerCase()) === (data === null || data === void 0 ? void 0 : (_data$PropertyDetails = data.PropertyDetails) === null || _data$PropertyDetails === void 0 ? void 0 : (_data$PropertyDetails2 = _data$PropertyDetails.firstName) === null || _data$PropertyDetails2 === void 0 ? void 0 : (_data$PropertyDetails3 = _data$PropertyDetails2.trim()) === null || _data$PropertyDetails3 === void 0 ? void 0 : _data$PropertyDetails3.toLowerCase())) {
|
|
15088
15099
|
var _data$PropertyDetails4;
|
|
15089
|
-
|
|
15090
|
-
|
|
15091
|
-
emailId: data === null || data === void 0 ? void 0 : (_data$PropertyDetails4 = data.PropertyDetails) === null || _data$PropertyDetails4 === void 0 ? void 0 : _data$PropertyDetails4.email,
|
|
15092
|
-
isPrimaryOwner: true
|
|
15093
|
-
};
|
|
15100
|
+
newOwner.emailId = data === null || data === void 0 ? void 0 : (_data$PropertyDetails4 = data.PropertyDetails) === null || _data$PropertyDetails4 === void 0 ? void 0 : _data$PropertyDetails4.email;
|
|
15101
|
+
newOwner.isPrimaryOwner = true;
|
|
15094
15102
|
}
|
|
15095
|
-
return
|
|
15103
|
+
return newOwner;
|
|
15096
15104
|
});
|
|
15097
15105
|
const ndcDetails = [];
|
|
15098
15106
|
((data === null || data === void 0 ? void 0 : (_data$PropertyDetails5 = data.PropertyDetails) === null || _data$PropertyDetails5 === void 0 ? void 0 : _data$PropertyDetails5.waterConnection) || []).forEach(wc => {
|
|
@@ -15369,10 +15377,11 @@ const NDCNewFormSummaryStepThreeEmployee = ({
|
|
|
15369
15377
|
var _Digit$UserService$ge, _ref, _inputData$apiData, _inputData$apiData$Ap, _inputData$apiData$Ap2, _formData$responseDat, _formData$apiData, _formData$apiData$App, _inputData$DocummentD, _inputData$DocummentD2;
|
|
15370
15378
|
const applicant = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
|
|
15371
15379
|
console.log("checkFormData", formData);
|
|
15372
|
-
const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15380
|
+
const owners = (_ref = (inputData === null || inputData === void 0 ? void 0 : (_inputData$apiData = inputData.apiData) === null || _inputData$apiData === void 0 ? void 0 : (_inputData$apiData$Ap = _inputData$apiData.Applications) === null || _inputData$apiData$Ap === void 0 ? void 0 : (_inputData$apiData$Ap2 = _inputData$apiData$Ap[0]) === null || _inputData$apiData$Ap2 === void 0 ? void 0 : _inputData$apiData$Ap2.owners) || []) === null || _ref === void 0 ? void 0 : _ref.map(item => {
|
|
15381
|
+
const obj = JSON.parse(JSON.stringify(item));
|
|
15382
|
+
delete obj.status;
|
|
15383
|
+
return obj;
|
|
15384
|
+
});
|
|
15376
15385
|
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]) || {};
|
|
15377
15386
|
const updatedApplication = {
|
|
15378
15387
|
...baseApplication,
|