@djb25/digit-ui-module-ws 1.0.83 → 1.0.85
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 +829 -412
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +830 -413
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$2, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link, useHistory, useLocation, Switch, Route, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, DatePicker, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, WrapUnMaskComponent, MobileNumber, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, Header, FilterFormField, RemoveableTag as RemoveableTag$1, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, PDFSvg, GenericFileIcon, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$f, BreakLine,
|
|
4
|
+
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, DatePicker, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, WrapUnMaskComponent, MobileNumber, RemoveIcon, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, Header, FilterFormField, RemoveableTag as RemoveableTag$1, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, PDFSvg, GenericFileIcon, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$f, BreakLine, CheckPoint, ConnectingCheckPoints, Menu, ButtonSelector as ButtonSelector$1, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
5
5
|
import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
|
|
6
6
|
import { read, utils as utils$1 } from 'xlsx';
|
|
7
7
|
import { useQueryClient, useQuery } from 'react-query';
|
|
@@ -531,7 +531,7 @@ const getFiles = function (filesArray, tenant) {
|
|
|
531
531
|
};
|
|
532
532
|
const createPayloadOfWS = function (data) {
|
|
533
533
|
try {
|
|
534
|
-
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj, _useDetailsObject$cat, _data$applicationSele8, _data$applicationSele9, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele0, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
|
|
534
|
+
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj, _useDetailsObject$cat, _data$applicationSele8, _data$applicationSele9, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele0, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
|
|
535
535
|
const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
|
|
536
536
|
const isCitizen = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.type) === "CITIZEN" || (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$roles = userInfo.roles) === null || _userInfo$roles === void 0 ? void 0 : _userInfo$roles.some(role => role.code === "CITIZEN"));
|
|
537
537
|
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$own = _data$cpt$details.owners) === null || _data$cpt$details$own === void 0 ? void 0 : _data$cpt$details$own.forEach(owner => {
|
|
@@ -642,7 +642,8 @@ const createPayloadOfWS = function (data) {
|
|
|
642
642
|
name: details === null || details === void 0 ? void 0 : details.plumberName,
|
|
643
643
|
mobileNumber: details === null || details === void 0 ? void 0 : details.plumberMobileNo
|
|
644
644
|
})),
|
|
645
|
-
additionalDetails: _extends({}, useDetailsObject, data === null || data === void 0 ? void 0 : data.djbEmployee, {
|
|
645
|
+
additionalDetails: _extends({}, useDetailsObject, data === null || data === void 0 ? void 0 : data.djbEmployee, data === null || data === void 0 ? void 0 : data.disability, {
|
|
646
|
+
isDivyangjan: !!(data !== null && data !== void 0 && (_data$disability = data.disability) !== null && _data$disability !== void 0 && _data$disability.isDivyangjan),
|
|
646
647
|
document: (data === null || data === void 0 ? void 0 : (_data$djbEmployee4 = data.djbEmployee) === null || _data$djbEmployee4 === void 0 ? void 0 : (_data$djbEmployee4$do = _data$djbEmployee4.document) === null || _data$djbEmployee4$do === void 0 ? void 0 : _data$djbEmployee4$do.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$djbEmployee5 = data.djbEmployee) === null || _data$djbEmployee5 === void 0 ? void 0 : _data$djbEmployee5.document) || undefined
|
|
647
648
|
}, data === null || data === void 0 ? void 0 : data.bankDetails, data === null || data === void 0 ? void 0 : data.declarationData, data === null || data === void 0 ? void 0 : data.declaration, {
|
|
648
649
|
zro: (data === null || data === void 0 ? void 0 : (_data$zro = data.zro) === null || _data$zro === void 0 ? void 0 : _data$zro.code) || (data === null || data === void 0 ? void 0 : data.zro),
|
|
@@ -11320,7 +11321,9 @@ const App$1 = _ref2 => {
|
|
|
11320
11321
|
}))
|
|
11321
11322
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
11322
11323
|
path: path + "/consumption-details",
|
|
11323
|
-
component:
|
|
11324
|
+
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
11325
|
+
layoutClass: "action"
|
|
11326
|
+
}, /*#__PURE__*/React.createElement(WSConsumptionDetails, null))
|
|
11324
11327
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
11325
11328
|
path: path + "/modify-application",
|
|
11326
11329
|
component: WSModifyApplication
|
|
@@ -18047,6 +18050,14 @@ const UploadFileDigiLocker = props => {
|
|
|
18047
18050
|
};
|
|
18048
18051
|
|
|
18049
18052
|
const DIGILOCKER_SUPPORTED_CODES = ["AADHAAR", "AADHAR", "DRIVING", "DRVLC", "PAN"];
|
|
18053
|
+
const ENVIRONMENT_FILE_STORE_IDS = {
|
|
18054
|
+
uat: "261542df-8dae-41e7-aa17-00cd288faf3b",
|
|
18055
|
+
dev: "0d394691-45ed-4036-97e8-8de8b0f166b1"
|
|
18056
|
+
};
|
|
18057
|
+
const getEnvironmentFileStoreId = () => {
|
|
18058
|
+
const hostname = window.location.hostname.toLowerCase();
|
|
18059
|
+
return hostname.includes("uat") ? ENVIRONMENT_FILE_STORE_IDS.uat : ENVIRONMENT_FILE_STORE_IDS.dev;
|
|
18060
|
+
};
|
|
18050
18061
|
const isDigiLockerEligible = function (code) {
|
|
18051
18062
|
if (code === void 0) {
|
|
18052
18063
|
code = "";
|
|
@@ -18054,8 +18065,26 @@ const isDigiLockerEligible = function (code) {
|
|
|
18054
18065
|
const upper = code.toUpperCase();
|
|
18055
18066
|
return DIGILOCKER_SUPPORTED_CODES.some(keyword => upper.includes(keyword));
|
|
18056
18067
|
};
|
|
18068
|
+
const isOtherDocument = function (code) {
|
|
18069
|
+
if (code === void 0) {
|
|
18070
|
+
code = "";
|
|
18071
|
+
}
|
|
18072
|
+
return code.toUpperCase().includes("OTHER");
|
|
18073
|
+
};
|
|
18074
|
+
const removeDuplicateOtherDocuments = function (documentList) {
|
|
18075
|
+
if (documentList === void 0) {
|
|
18076
|
+
documentList = [];
|
|
18077
|
+
}
|
|
18078
|
+
const documentTypes = new Set();
|
|
18079
|
+
return documentList.filter(document => {
|
|
18080
|
+
if (!isOtherDocument(document === null || document === void 0 ? void 0 : document.documentType)) return true;
|
|
18081
|
+
if (documentTypes.has(document.documentType)) return false;
|
|
18082
|
+
documentTypes.add(document.documentType);
|
|
18083
|
+
return true;
|
|
18084
|
+
});
|
|
18085
|
+
};
|
|
18057
18086
|
const WSDocumentsEmployee = _ref => {
|
|
18058
|
-
var
|
|
18087
|
+
var _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData3;
|
|
18059
18088
|
let t = _ref.t,
|
|
18060
18089
|
config = _ref.config,
|
|
18061
18090
|
onSelect = _ref.onSelect,
|
|
@@ -18065,7 +18094,10 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18065
18094
|
clearFormErrors = _ref.clearErrors,
|
|
18066
18095
|
formState = _ref.formState;
|
|
18067
18096
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
18068
|
-
const _useState = useState(
|
|
18097
|
+
const _useState = useState(() => {
|
|
18098
|
+
var _formData$documents, _formData$DocumentsRe;
|
|
18099
|
+
return removeDuplicateOtherDocuments(userType === "citizen" ? (formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : _formData$documents.documents) || (formData === null || formData === void 0 ? void 0 : formData.documents) || [] : (formData === null || formData === void 0 ? void 0 : (_formData$DocumentsRe = formData.DocumentsRequired) === null || _formData$DocumentsRe === void 0 ? void 0 : _formData$DocumentsRe.documents) || []);
|
|
18100
|
+
}),
|
|
18069
18101
|
documents = _useState[0],
|
|
18070
18102
|
setDocuments = _useState[1];
|
|
18071
18103
|
const _useState2 = useState(true),
|
|
@@ -18092,8 +18124,19 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18092
18124
|
onSelect(config.key, documentStep);
|
|
18093
18125
|
} else {
|
|
18094
18126
|
onSelect(config.key, {
|
|
18095
|
-
documents
|
|
18127
|
+
documents: removeDuplicateOtherDocuments(documents)
|
|
18128
|
+
});
|
|
18129
|
+
}
|
|
18130
|
+
};
|
|
18131
|
+
const downloadDocument = function () {
|
|
18132
|
+
try {
|
|
18133
|
+
return Promise.resolve(Digit.UploadServices.DownloadFile(getEnvironmentFileStoreId(), "dl", "NOC for New Delhi Jal Board Connection.pdf")).then(function (downloaded) {
|
|
18134
|
+
if (!downloaded) {
|
|
18135
|
+
setError(t("CS_FILE_DOWNLOAD_ERROR") || "PDF download failed");
|
|
18136
|
+
}
|
|
18096
18137
|
});
|
|
18138
|
+
} catch (e) {
|
|
18139
|
+
return Promise.reject(e);
|
|
18097
18140
|
}
|
|
18098
18141
|
};
|
|
18099
18142
|
useEffect(() => {
|
|
@@ -18152,7 +18195,8 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18152
18195
|
setFormError: setFormError,
|
|
18153
18196
|
clearFormErrors: clearFormErrors,
|
|
18154
18197
|
config: config,
|
|
18155
|
-
formState: formState
|
|
18198
|
+
formState: formState,
|
|
18199
|
+
isOtherDocument: isOtherDocument(document === null || document === void 0 ? void 0 : document.code)
|
|
18156
18200
|
});
|
|
18157
18201
|
}));
|
|
18158
18202
|
if (userType === "citizen") {
|
|
@@ -18173,14 +18217,32 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18173
18217
|
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
18174
18218
|
title: t("WS_DOCUMENTS"),
|
|
18175
18219
|
defaultOpen: true
|
|
18176
|
-
},
|
|
18220
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
18221
|
+
type: "button",
|
|
18222
|
+
onClick: event => {
|
|
18223
|
+
event.stopPropagation();
|
|
18224
|
+
downloadDocument();
|
|
18225
|
+
},
|
|
18226
|
+
style: {
|
|
18227
|
+
cursor: "pointer",
|
|
18228
|
+
color: "#fff",
|
|
18229
|
+
fontWeight: "bold",
|
|
18230
|
+
padding: "6px 14px",
|
|
18231
|
+
border: "1px solid #00497e",
|
|
18232
|
+
borderRadius: "4px",
|
|
18233
|
+
backgroundColor: "#00497e",
|
|
18234
|
+
marginLeft: "auto",
|
|
18235
|
+
marginRight: "32px",
|
|
18236
|
+
whiteSpace: "nowrap"
|
|
18237
|
+
}
|
|
18238
|
+
}, t("WS_DOWNLOAD_DOCUMENT")), innerContent, error && /*#__PURE__*/React.createElement(Toast, {
|
|
18177
18239
|
label: error,
|
|
18178
18240
|
onClose: () => setError(null),
|
|
18179
18241
|
error: true
|
|
18180
18242
|
}));
|
|
18181
18243
|
};
|
|
18182
18244
|
function SelectDocument(_ref2) {
|
|
18183
|
-
var _formData$ConnectionD, _doc$i18nKey, _selectedDocument$cod2, _selectedDocument$cod3, _selectedDocument$cod4, _selectedDocument$cod5, _selectedDocument$cod6, _selectedDocument$cod7, _selectedDocument$cod8, _selectedDocument$cod9, _selectedDocument$cod0, _selectedDocument$cod1, _selectedDocument$cod10, _selectedDocument$cod11, _selectedDocument$cod12, _selectedDocument$cod13, _selectedDocument$cod14, _selectedDocument$cod15, _doc$i18nKey2
|
|
18245
|
+
var _formData$ConnectionD, _doc$i18nKey, _selectedDocument$cod2, _selectedDocument$cod3, _selectedDocument$cod4, _selectedDocument$cod5, _selectedDocument$cod6, _selectedDocument$cod7, _selectedDocument$cod8, _selectedDocument$cod9, _selectedDocument$cod0, _selectedDocument$cod1, _selectedDocument$cod10, _selectedDocument$cod11, _selectedDocument$cod12, _selectedDocument$cod13, _selectedDocument$cod14, _selectedDocument$cod15, _doc$i18nKey2;
|
|
18184
18246
|
let t = _ref2.t,
|
|
18185
18247
|
doc = _ref2.document,
|
|
18186
18248
|
setDocuments = _ref2.setDocuments,
|
|
@@ -18191,11 +18253,17 @@ function SelectDocument(_ref2) {
|
|
|
18191
18253
|
clearFormErrors = _ref2.clearFormErrors,
|
|
18192
18254
|
config = _ref2.config,
|
|
18193
18255
|
formState = _ref2.formState,
|
|
18194
|
-
id = _ref2.id
|
|
18256
|
+
id = _ref2.id,
|
|
18257
|
+
_ref2$isOtherDocument = _ref2.isOtherDocument,
|
|
18258
|
+
isOther = _ref2$isOtherDocument === void 0 ? false : _ref2$isOtherDocument;
|
|
18195
18259
|
const fileRef = useRef();
|
|
18196
|
-
const
|
|
18260
|
+
const otherUploadedDocuments = isOther ? (documents === null || documents === void 0 ? void 0 : documents.filter(item => {
|
|
18197
18261
|
var _item$documentType;
|
|
18198
18262
|
return item === null || item === void 0 ? void 0 : (_item$documentType = item.documentType) === null || _item$documentType === void 0 ? void 0 : _item$documentType.includes(doc === null || doc === void 0 ? void 0 : doc.code);
|
|
18263
|
+
})) || [] : [];
|
|
18264
|
+
const filteredDocument = isOther ? null : documents === null || documents === void 0 ? void 0 : documents.filter(item => {
|
|
18265
|
+
var _item$documentType2;
|
|
18266
|
+
return item === null || item === void 0 ? void 0 : (_item$documentType2 = item.documentType) === null || _item$documentType2 === void 0 ? void 0 : _item$documentType2.includes(doc === null || doc === void 0 ? void 0 : doc.code);
|
|
18199
18267
|
})[0];
|
|
18200
18268
|
const _useState4 = useState(() => {
|
|
18201
18269
|
var _filteredDocument$doc, _doc$dropdownData2;
|
|
@@ -18214,10 +18282,10 @@ function SelectDocument(_ref2) {
|
|
|
18214
18282
|
const _useState5 = useState(null),
|
|
18215
18283
|
file = _useState5[0],
|
|
18216
18284
|
setFile = _useState5[1];
|
|
18217
|
-
const _useState6 = useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null),
|
|
18285
|
+
const _useState6 = useState(() => isOther ? null : (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null),
|
|
18218
18286
|
uploadedFile = _useState6[0],
|
|
18219
18287
|
setUploadedFile = _useState6[1];
|
|
18220
|
-
const _useState7 = useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentUid) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentNumber) || ""),
|
|
18288
|
+
const _useState7 = useState(() => isOther ? "" : (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentUid) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentNumber) || ""),
|
|
18221
18289
|
documentUid = _useState7[0],
|
|
18222
18290
|
setDocumentUid = _useState7[1];
|
|
18223
18291
|
const _useState8 = useState(false),
|
|
@@ -18276,12 +18344,23 @@ function SelectDocument(_ref2) {
|
|
|
18276
18344
|
setShowCamera(false);
|
|
18277
18345
|
};
|
|
18278
18346
|
const handleSelectDocument = value => setSelectedDocument(value);
|
|
18279
|
-
const
|
|
18347
|
+
const removeUploadedDocument = fileStoreId => {
|
|
18348
|
+
setDocuments(previousDocuments => previousDocuments.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== fileStoreId));
|
|
18349
|
+
if (fileStoreId === uploadedFile) {
|
|
18350
|
+
setUploadedFile(null);
|
|
18351
|
+
setFile(null);
|
|
18352
|
+
setDocumentUid("");
|
|
18353
|
+
}
|
|
18354
|
+
};
|
|
18355
|
+
const viewDocument = function (fileStoreId) {
|
|
18356
|
+
if (fileStoreId === void 0) {
|
|
18357
|
+
fileStoreId = uploadedFile;
|
|
18358
|
+
}
|
|
18280
18359
|
try {
|
|
18281
18360
|
const _temp2 = function () {
|
|
18282
|
-
if (
|
|
18361
|
+
if (fileStoreId) {
|
|
18283
18362
|
const _temp = _catch(function () {
|
|
18284
|
-
return Promise.resolve(Digit.UploadServices.FileFetchbyid(
|
|
18363
|
+
return Promise.resolve(Digit.UploadServices.FileFetchbyid(fileStoreId, Digit.ULBService.getStateId())).then(function (res) {
|
|
18285
18364
|
if (res !== null && res !== void 0 && res.data) {
|
|
18286
18365
|
var _res$headers, _res$headers2;
|
|
18287
18366
|
const contentType = ((_res$headers = res.headers) === null || _res$headers === void 0 ? void 0 : _res$headers["content-type"]) || ((_res$headers2 = res.headers) === null || _res$headers2 === void 0 ? void 0 : _res$headers2["Content-Type"]) || "";
|
|
@@ -18333,6 +18412,7 @@ function SelectDocument(_ref2) {
|
|
|
18333
18412
|
var dropDownData = dropdownData;
|
|
18334
18413
|
const _useState15 = useState(false),
|
|
18335
18414
|
isHidden = _useState15[0];
|
|
18415
|
+
const documentDisplayName = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.name) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || (doc === null || doc === void 0 ? void 0 : doc.i18nKey) || (doc === null || doc === void 0 ? void 0 : doc.name) || (doc === null || doc === void 0 ? void 0 : doc.code);
|
|
18336
18416
|
const addError = () => {
|
|
18337
18417
|
var _formState$errors, _formState$errors$con;
|
|
18338
18418
|
let type = formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : (_formState$errors$con = _formState$errors[config.key]) === null || _formState$errors$con === void 0 ? void 0 : _formState$errors$con.type;
|
|
@@ -18362,7 +18442,7 @@ function SelectDocument(_ref2) {
|
|
|
18362
18442
|
useEffect(() => {
|
|
18363
18443
|
if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
|
|
18364
18444
|
setDocuments(prev => {
|
|
18365
|
-
const filteredDocumentsByDocumentType = prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
|
|
18445
|
+
const filteredDocumentsByDocumentType = isOther ? prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId)) : prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
|
|
18366
18446
|
if ((uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.length) === 0 || uploadedFile === null) {
|
|
18367
18447
|
return filteredDocumentsByDocumentType;
|
|
18368
18448
|
}
|
|
@@ -18371,6 +18451,7 @@ function SelectDocument(_ref2) {
|
|
|
18371
18451
|
documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
18372
18452
|
fileStoreId: uploadedFile,
|
|
18373
18453
|
fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || "",
|
|
18454
|
+
documentName: (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "",
|
|
18374
18455
|
documentUid: documentUid,
|
|
18375
18456
|
documentNumber: documentUid,
|
|
18376
18457
|
i18nKey: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
@@ -18400,48 +18481,60 @@ function SelectDocument(_ref2) {
|
|
|
18400
18481
|
(function () {
|
|
18401
18482
|
try {
|
|
18402
18483
|
setError(null);
|
|
18403
|
-
const
|
|
18484
|
+
const _temp7 = function () {
|
|
18404
18485
|
if (file) {
|
|
18405
|
-
const
|
|
18406
|
-
|
|
18407
|
-
|
|
18486
|
+
const isDuplicateDocument = isOther && documents.some(item => (item === null || item === void 0 ? void 0 : item.documentType) === (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
|
|
18487
|
+
const _temp6 = function () {
|
|
18488
|
+
if (isDuplicateDocument) {
|
|
18489
|
+
const documentNameKey = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "This";
|
|
18490
|
+
const translatedDocumentName = t(documentNameKey);
|
|
18491
|
+
const documentName = translatedDocumentName === documentNameKey ? documentNameKey.replaceAll("_", " ") : translatedDocumentName;
|
|
18492
|
+
setError("Document \"" + documentName + "\" has already been uploaded.");
|
|
18493
|
+
setFile(null);
|
|
18408
18494
|
} else {
|
|
18409
|
-
const
|
|
18410
|
-
if (
|
|
18411
|
-
setError(t("
|
|
18412
|
-
setFile(null);
|
|
18495
|
+
const _temp5 = function () {
|
|
18496
|
+
if (file.size >= 5242880) {
|
|
18497
|
+
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
18413
18498
|
} else {
|
|
18414
|
-
const
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
|
|
18499
|
+
const _temp4 = function () {
|
|
18500
|
+
if ((doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && !file.type.match(/image\/(jpeg|png)/i) && !file.name.match(/\.(jpg|jpeg|png)$/i)) {
|
|
18501
|
+
setError(t("WS_ONLY_JPG_PNG_ALLOWED") || "Only JPG and PNG files are allowed for Applicant Photo");
|
|
18502
|
+
setFile(null);
|
|
18503
|
+
} else {
|
|
18504
|
+
const _temp3 = _finallyRethrows(function () {
|
|
18505
|
+
return _catch(function () {
|
|
18506
|
+
setUploadedFile(null);
|
|
18507
|
+
setIsUploading(true);
|
|
18508
|
+
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
18509
|
+
var _response$data, _response$data$files;
|
|
18510
|
+
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
18511
|
+
var _response$data2, _response$data2$files;
|
|
18512
|
+
setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId);
|
|
18513
|
+
} else {
|
|
18514
|
+
setError(t("CS_FILE_UPLOAD_ERROR"));
|
|
18515
|
+
}
|
|
18516
|
+
});
|
|
18517
|
+
}, function () {
|
|
18424
18518
|
setError(t("CS_FILE_UPLOAD_ERROR"));
|
|
18425
|
-
}
|
|
18519
|
+
});
|
|
18520
|
+
}, function (_wasThrown, _result) {
|
|
18521
|
+
setIsUploading(false);
|
|
18522
|
+
if (_wasThrown) throw _result;
|
|
18523
|
+
return _result;
|
|
18426
18524
|
});
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
|
|
18431
|
-
setIsUploading(false);
|
|
18432
|
-
if (_wasThrown) throw _result;
|
|
18433
|
-
return _result;
|
|
18434
|
-
});
|
|
18435
|
-
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
18525
|
+
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
18526
|
+
}
|
|
18527
|
+
}();
|
|
18528
|
+
if (_temp4 && _temp4.then) return _temp4.then(function () {});
|
|
18436
18529
|
}
|
|
18437
18530
|
}();
|
|
18438
|
-
if (
|
|
18531
|
+
if (_temp5 && _temp5.then) return _temp5.then(function () {});
|
|
18439
18532
|
}
|
|
18440
18533
|
}();
|
|
18441
|
-
if (
|
|
18534
|
+
if (_temp6 && _temp6.then) return _temp6.then(function () {});
|
|
18442
18535
|
}
|
|
18443
18536
|
}();
|
|
18444
|
-
return
|
|
18537
|
+
return _temp7 && _temp7.then ? _temp7.then(function () {}) : void 0;
|
|
18445
18538
|
} catch (e) {
|
|
18446
18539
|
Promise.reject(e);
|
|
18447
18540
|
}
|
|
@@ -18567,11 +18660,35 @@ function SelectDocument(_ref2) {
|
|
|
18567
18660
|
gap: "8px",
|
|
18568
18661
|
gridColumn: "span 1"
|
|
18569
18662
|
}
|
|
18663
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18664
|
+
style: {
|
|
18665
|
+
display: "flex",
|
|
18666
|
+
alignItems: "center",
|
|
18667
|
+
justifyContent: "space-between"
|
|
18668
|
+
}
|
|
18570
18669
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
18571
18670
|
style: {
|
|
18572
18671
|
margin: 0
|
|
18573
18672
|
}
|
|
18574
|
-
},
|
|
18673
|
+
}, t((doc === null || doc === void 0 ? void 0 : (_doc$i18nKey2 = doc.i18nKey) === null || _doc$i18nKey2 === void 0 ? void 0 : _doc$i18nKey2.replaceAll(".", "_")) + "_UPLOAD_DOCUMENT"), doc !== null && doc !== void 0 && doc.required ? "*" : ""), isOther && /*#__PURE__*/React.createElement("button", {
|
|
18674
|
+
type: "button",
|
|
18675
|
+
onClick: () => {
|
|
18676
|
+
setUploadedFile(null);
|
|
18677
|
+
setFile(null);
|
|
18678
|
+
setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
|
|
18679
|
+
setDocumentUid("");
|
|
18680
|
+
setDocNumberError(null);
|
|
18681
|
+
},
|
|
18682
|
+
style: {
|
|
18683
|
+
border: "1px solid #00497e",
|
|
18684
|
+
background: "#fff",
|
|
18685
|
+
color: "#00497e",
|
|
18686
|
+
borderRadius: "4px",
|
|
18687
|
+
padding: "4px 10px",
|
|
18688
|
+
cursor: "pointer",
|
|
18689
|
+
fontWeight: "bold"
|
|
18690
|
+
}
|
|
18691
|
+
}, "+ Add")), /*#__PURE__*/React.createElement("div", {
|
|
18575
18692
|
className: "field",
|
|
18576
18693
|
style: {
|
|
18577
18694
|
display: "flex",
|
|
@@ -18600,7 +18717,7 @@ function SelectDocument(_ref2) {
|
|
|
18600
18717
|
buttonType: "button",
|
|
18601
18718
|
error: !uploadedFile,
|
|
18602
18719
|
accept: (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? "image/jpeg, image/png, .jpg, .jpeg, .png" : "image/*, .pdf, .png, .jpeg, .jpg",
|
|
18603
|
-
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t("CS_COMMON_DOCUMENT"), {
|
|
18720
|
+
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t(documentDisplayName || "CS_COMMON_DOCUMENT"), {
|
|
18604
18721
|
fileStoreId: uploadedFile
|
|
18605
18722
|
}]] : undefined,
|
|
18606
18723
|
removeTargetedFile: () => {
|
|
@@ -18632,7 +18749,7 @@ function SelectDocument(_ref2) {
|
|
|
18632
18749
|
buttonType: "button",
|
|
18633
18750
|
error: !uploadedFile,
|
|
18634
18751
|
accept: (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? "image/jpeg, image/png, .jpg, .jpeg, .png" : "image/*, .pdf, .png, .jpeg, .jpg",
|
|
18635
|
-
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t("CS_COMMON_DOCUMENT"), {
|
|
18752
|
+
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t(documentDisplayName || "CS_COMMON_DOCUMENT"), {
|
|
18636
18753
|
fileStoreId: uploadedFile
|
|
18637
18754
|
}]] : undefined,
|
|
18638
18755
|
removeTargetedFile: () => {
|
|
@@ -18642,7 +18759,47 @@ function SelectDocument(_ref2) {
|
|
|
18642
18759
|
setIsDocumentUidLocked(false);
|
|
18643
18760
|
setDocumentUid("");
|
|
18644
18761
|
}
|
|
18645
|
-
})))
|
|
18762
|
+
}))), (isOther ? otherUploadedDocuments : uploadedFile ? [{
|
|
18763
|
+
fileStoreId: uploadedFile,
|
|
18764
|
+
fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName),
|
|
18765
|
+
documentNumber: documentUid
|
|
18766
|
+
}] : []).map((uploadedDocument, index) => /*#__PURE__*/React.createElement("div", {
|
|
18767
|
+
key: uploadedDocument.fileStoreId || index,
|
|
18768
|
+
style: {
|
|
18769
|
+
display: "flex",
|
|
18770
|
+
alignItems: "center",
|
|
18771
|
+
gap: "12px",
|
|
18772
|
+
marginTop: "4px",
|
|
18773
|
+
color: "#00497e"
|
|
18774
|
+
}
|
|
18775
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
18776
|
+
style: {
|
|
18777
|
+
fontWeight: "bold"
|
|
18778
|
+
}
|
|
18779
|
+
}, uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName ? t(uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName) : t("CS_COMMON_DOCUMENT"), " - ", uploadedDocument.fileName || t("CS_COMMON_DOCUMENT")), uploadedDocument.documentNumber && /*#__PURE__*/React.createElement("span", null, uploadedDocument.documentNumber), /*#__PURE__*/React.createElement("button", {
|
|
18780
|
+
type: "button",
|
|
18781
|
+
onClick: () => viewDocument(uploadedDocument.fileStoreId),
|
|
18782
|
+
title: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
18783
|
+
style: {
|
|
18784
|
+
border: "none",
|
|
18785
|
+
background: "transparent",
|
|
18786
|
+
color: "#00497e",
|
|
18787
|
+
cursor: "pointer",
|
|
18788
|
+
padding: 0
|
|
18789
|
+
}
|
|
18790
|
+
}, /*#__PURE__*/React.createElement(ViewsIcon, null)), /*#__PURE__*/React.createElement("button", {
|
|
18791
|
+
type: "button",
|
|
18792
|
+
onClick: () => removeUploadedDocument(uploadedDocument.fileStoreId),
|
|
18793
|
+
title: "Remove Document",
|
|
18794
|
+
style: {
|
|
18795
|
+
border: "none",
|
|
18796
|
+
background: "transparent",
|
|
18797
|
+
color: "#d32f2f",
|
|
18798
|
+
cursor: "pointer",
|
|
18799
|
+
padding: 0,
|
|
18800
|
+
fontSize: "18px"
|
|
18801
|
+
}
|
|
18802
|
+
}, /*#__PURE__*/React.createElement(RemoveIcon, null))))), /*#__PURE__*/React.createElement("div", {
|
|
18646
18803
|
style: {
|
|
18647
18804
|
display: "flex",
|
|
18648
18805
|
flexDirection: "column",
|
|
@@ -18695,21 +18852,7 @@ function SelectDocument(_ref2) {
|
|
|
18695
18852
|
fontWeight: "bold",
|
|
18696
18853
|
fontSize: "14px"
|
|
18697
18854
|
}
|
|
18698
|
-
}, "\u2714 Uploaded")),
|
|
18699
|
-
onClick: viewDocument,
|
|
18700
|
-
style: {
|
|
18701
|
-
display: "flex",
|
|
18702
|
-
alignItems: "center",
|
|
18703
|
-
gap: "8px",
|
|
18704
|
-
cursor: "pointer",
|
|
18705
|
-
color: "#00497e",
|
|
18706
|
-
fontWeight: "bold",
|
|
18707
|
-
padding: "8px 16px",
|
|
18708
|
-
border: "1px solid #00497e",
|
|
18709
|
-
borderRadius: "4px",
|
|
18710
|
-
backgroundColor: "#fff"
|
|
18711
|
-
}
|
|
18712
|
-
}, /*#__PURE__*/React.createElement(ViewsIcon, null), /*#__PURE__*/React.createElement("span", null, t("WS_VIEW_DOCUMENT") || "View Document")))), showCamera && /*#__PURE__*/React.createElement(CameraCaptureModal, {
|
|
18855
|
+
}, "\u2714 Uploaded")))), showCamera && /*#__PURE__*/React.createElement(CameraCaptureModal, {
|
|
18713
18856
|
onCapture: handleCapture,
|
|
18714
18857
|
onClose: () => setShowCamera(false),
|
|
18715
18858
|
t: t
|
|
@@ -18785,7 +18928,7 @@ const CameraCaptureModal = _ref4 => {
|
|
|
18785
18928
|
useEffect(() => {
|
|
18786
18929
|
const startCamera = function () {
|
|
18787
18930
|
try {
|
|
18788
|
-
const
|
|
18931
|
+
const _temp8 = _catch(function () {
|
|
18789
18932
|
return Promise.resolve(navigator.mediaDevices.getUserMedia({
|
|
18790
18933
|
video: true
|
|
18791
18934
|
})).then(function (mediaStream) {
|
|
@@ -18798,7 +18941,7 @@ const CameraCaptureModal = _ref4 => {
|
|
|
18798
18941
|
setError(t("WS_CAMERA_ACCESS_ERROR") || "Camera Access Error");
|
|
18799
18942
|
console.error("Error accessing camera: ", err);
|
|
18800
18943
|
});
|
|
18801
|
-
return Promise.resolve(
|
|
18944
|
+
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
|
|
18802
18945
|
} catch (e) {
|
|
18803
18946
|
return Promise.reject(e);
|
|
18804
18947
|
}
|
|
@@ -23546,6 +23689,61 @@ const WSDjbEmployee = _ref => {
|
|
|
23546
23689
|
return /*#__PURE__*/React.createElement(React.Fragment, null, FormContent);
|
|
23547
23690
|
};
|
|
23548
23691
|
|
|
23692
|
+
const WSDivyangjan = _ref => {
|
|
23693
|
+
var _formData$disability, _formData$additionalD;
|
|
23694
|
+
let config = _ref.config,
|
|
23695
|
+
onSelect = _ref.onSelect,
|
|
23696
|
+
userType = _ref.userType,
|
|
23697
|
+
formData = _ref.formData;
|
|
23698
|
+
const _useTranslation = useTranslation(),
|
|
23699
|
+
t = _useTranslation.t;
|
|
23700
|
+
const _useForm = useForm({
|
|
23701
|
+
defaultValues: {
|
|
23702
|
+
isDivyangjan: !!(formData !== null && formData !== void 0 && (_formData$disability = formData.disability) !== null && _formData$disability !== void 0 && _formData$disability.isDivyangjan || formData !== null && formData !== void 0 && (_formData$additionalD = formData.additionalDetails) !== null && _formData$additionalD !== void 0 && _formData$additionalD.isDivyangjan)
|
|
23703
|
+
}
|
|
23704
|
+
}),
|
|
23705
|
+
control = _useForm.control,
|
|
23706
|
+
watch = _useForm.watch;
|
|
23707
|
+
const formValue = watch();
|
|
23708
|
+
const onSelectRef = useRef(onSelect);
|
|
23709
|
+
const goNext = () => onSelect(config.key, {
|
|
23710
|
+
isDivyangjan: !!formValue.isDivyangjan
|
|
23711
|
+
});
|
|
23712
|
+
const onSkip = () => onSelect();
|
|
23713
|
+
useEffect(() => {
|
|
23714
|
+
onSelectRef.current = onSelect;
|
|
23715
|
+
}, [onSelect]);
|
|
23716
|
+
useEffect(() => {
|
|
23717
|
+
if (userType === "employee") {
|
|
23718
|
+
onSelectRef.current(config.key, {
|
|
23719
|
+
isDivyangjan: !!formValue.isDivyangjan
|
|
23720
|
+
});
|
|
23721
|
+
}
|
|
23722
|
+
}, [config.key, formValue.isDivyangjan, userType]);
|
|
23723
|
+
const content = /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
23724
|
+
title: "Divyangjan/Person with Disability?",
|
|
23725
|
+
defaultOpen: true
|
|
23726
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23727
|
+
style: {
|
|
23728
|
+
width: "max-content"
|
|
23729
|
+
}
|
|
23730
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
23731
|
+
control: control,
|
|
23732
|
+
name: "isDivyangjan",
|
|
23733
|
+
render: props => /*#__PURE__*/React.createElement(CheckBox, {
|
|
23734
|
+
label: "Divyangjan/Person with Disability?",
|
|
23735
|
+
checked: !!props.value,
|
|
23736
|
+
onChange: event => props.onChange(event.target.checked)
|
|
23737
|
+
})
|
|
23738
|
+
})));
|
|
23739
|
+
return userType === "citizen" ? /*#__PURE__*/React.createElement(FormStep, {
|
|
23740
|
+
t: t,
|
|
23741
|
+
config: config,
|
|
23742
|
+
onSelect: goNext,
|
|
23743
|
+
onSkip: onSkip
|
|
23744
|
+
}, content) : content;
|
|
23745
|
+
};
|
|
23746
|
+
|
|
23549
23747
|
const _excluded$1 = ["t", "config", "onSelect", "formData", "formState", "setError", "clearErrors"];
|
|
23550
23748
|
const NUMBER_PATTERN$1 = /^\d+$/;
|
|
23551
23749
|
const DECIMAL_PATTERN$1 = /^\d+(\.\d{1,2})?$/;
|
|
@@ -27621,12 +27819,25 @@ const newConfig = [{
|
|
|
27621
27819
|
cardText: "",
|
|
27622
27820
|
submitBarLabel: "CS_COMMON_NEXT"
|
|
27623
27821
|
}
|
|
27822
|
+
}, {
|
|
27823
|
+
route: "disability-details",
|
|
27824
|
+
component: "WSDivyangjan",
|
|
27825
|
+
key: "disability",
|
|
27826
|
+
nextStep: "document-details",
|
|
27827
|
+
WATER: "document-details",
|
|
27828
|
+
hideInEmployee: true,
|
|
27829
|
+
texts: {
|
|
27830
|
+
headerCaption: "WS_COMMON_CONNECTION_DETAIL",
|
|
27831
|
+
header: "Divyangjan/Person with Disability?",
|
|
27832
|
+
cardText: "",
|
|
27833
|
+
submitBarLabel: "CS_COMMON_NEXT"
|
|
27834
|
+
}
|
|
27624
27835
|
}, {
|
|
27625
27836
|
route: "djb-employee-details",
|
|
27626
27837
|
component: "WSDjbEmployee",
|
|
27627
27838
|
key: "djbEmployee",
|
|
27628
|
-
nextStep: "
|
|
27629
|
-
WATER: "
|
|
27839
|
+
nextStep: "disability-details",
|
|
27840
|
+
WATER: "disability-details",
|
|
27630
27841
|
hideInEmployee: true,
|
|
27631
27842
|
texts: {
|
|
27632
27843
|
headerCaption: "WS_COMMON_CONNECTION_DETAIL",
|
|
@@ -32075,7 +32286,7 @@ const ViewBreakup = _ref => {
|
|
|
32075
32286
|
title: t("WS_APPLICATION_FEE_HEADER"),
|
|
32076
32287
|
values: amountRows([...((breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : _breakUpData$billSlab.FEE) || []), ...((breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab2 = breakUpData.billSlabData) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.CHARGES) || [])])
|
|
32077
32288
|
}, {
|
|
32078
|
-
title: "
|
|
32289
|
+
title: t("WS_PROPERTY_DETAILS"),
|
|
32079
32290
|
values: propertyRows.map(_ref4 => {
|
|
32080
32291
|
let label = _ref4.label,
|
|
32081
32292
|
value = _ref4.value,
|
|
@@ -32088,10 +32299,10 @@ const ViewBreakup = _ref => {
|
|
|
32088
32299
|
};
|
|
32089
32300
|
})
|
|
32090
32301
|
}, {
|
|
32091
|
-
title: "
|
|
32302
|
+
title: t("WS_TAXES"),
|
|
32092
32303
|
values: amountRows(breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : _breakUpData$billSlab3.TAX)
|
|
32093
32304
|
}, {
|
|
32094
|
-
title: "
|
|
32305
|
+
title: t("WS_WATER_DEMAND_DETAILS"),
|
|
32095
32306
|
values: waterDemandRows.map(_ref5 => {
|
|
32096
32307
|
let label = _ref5.label,
|
|
32097
32308
|
value = _ref5.value,
|
|
@@ -32104,7 +32315,7 @@ const ViewBreakup = _ref => {
|
|
|
32104
32315
|
};
|
|
32105
32316
|
})
|
|
32106
32317
|
}, {
|
|
32107
|
-
title: "
|
|
32318
|
+
title: t("WS_INFRASTRUCTURE_CHARGE_DETAILS"),
|
|
32108
32319
|
values: infrastructureChargeRows.map(_ref6 => {
|
|
32109
32320
|
let label = _ref6.label,
|
|
32110
32321
|
value = _ref6.value,
|
|
@@ -32117,7 +32328,7 @@ const ViewBreakup = _ref => {
|
|
|
32117
32328
|
};
|
|
32118
32329
|
})
|
|
32119
32330
|
}, {
|
|
32120
|
-
title: "
|
|
32331
|
+
title: t("WS_TOTAL"),
|
|
32121
32332
|
values: [{
|
|
32122
32333
|
title: t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
32123
32334
|
value: "\u20B9" + formatNumber(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount)
|
|
@@ -32160,134 +32371,135 @@ const ViewBreakup = _ref => {
|
|
|
32160
32371
|
const propertyDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat = breakUpData.calculationDetail) === null || _breakUpData$calculat === void 0 ? void 0 : _breakUpData$calculat.propertyDetail;
|
|
32161
32372
|
const waterDemandDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat2 = breakUpData.calculationDetail) === null || _breakUpData$calculat2 === void 0 ? void 0 : _breakUpData$calculat2.waterDemandDetail;
|
|
32162
32373
|
const infrastructureChargeDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat3 = breakUpData.calculationDetail) === null || _breakUpData$calculat3 === void 0 ? void 0 : _breakUpData$calculat3.infrastructureChargeDetail;
|
|
32374
|
+
const isValidValue = value => value !== null && value !== undefined && value !== "" && value !== 0 && value !== "0" && value !== "0.0";
|
|
32163
32375
|
const propertyRows = propertyDetail ? [{
|
|
32164
|
-
label: "
|
|
32376
|
+
label: t("WS_PROPERTY_ID"),
|
|
32165
32377
|
value: propertyDetail.propertyId,
|
|
32166
32378
|
isText: true
|
|
32167
32379
|
}, {
|
|
32168
|
-
label: "
|
|
32380
|
+
label: t("WS_PROPERTY_TYPE"),
|
|
32169
32381
|
value: propertyDetail.propertyType,
|
|
32170
32382
|
isText: true
|
|
32171
32383
|
}, {
|
|
32172
|
-
label: "
|
|
32384
|
+
label: t("WS_PLOT_AREA"),
|
|
32173
32385
|
value: propertyDetail.landArea,
|
|
32174
32386
|
unit: " (sq. meter.)"
|
|
32175
32387
|
}, {
|
|
32176
|
-
label: "
|
|
32388
|
+
label: t("WS_BUILT_UP_AREA"),
|
|
32177
32389
|
value: propertyDetail.superBuiltUpArea,
|
|
32178
32390
|
unit: " (sq. meter.)"
|
|
32179
|
-
}, {
|
|
32180
|
-
label: "
|
|
32391
|
+
}, isValidValue(propertyDetail.farArea) ? {
|
|
32392
|
+
label: t("WS_FAR_AREA"),
|
|
32181
32393
|
value: propertyDetail.farArea,
|
|
32182
32394
|
isText: true
|
|
32183
|
-
}, {
|
|
32184
|
-
label: "
|
|
32395
|
+
} : null, isValidValue(propertyDetail.coveredArea) ? {
|
|
32396
|
+
label: t("WS_COVERED_AREA"),
|
|
32185
32397
|
value: propertyDetail.coveredArea,
|
|
32186
32398
|
isText: true
|
|
32187
|
-
}, {
|
|
32188
|
-
label: "
|
|
32399
|
+
} : null, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
|
|
32400
|
+
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
32189
32401
|
value: propertyDetail.numberOfDwellingUnits,
|
|
32190
32402
|
isText: true
|
|
32191
|
-
}, {
|
|
32192
|
-
label: "
|
|
32403
|
+
} : null, isValidValue(propertyDetail.numberOfBeds) ? {
|
|
32404
|
+
label: t("WS_NUMBER_OF_BEDS"),
|
|
32193
32405
|
value: propertyDetail.numberOfBeds,
|
|
32194
32406
|
isText: true
|
|
32195
|
-
}, {
|
|
32196
|
-
label: "
|
|
32407
|
+
} : null, isValidValue(propertyDetail.numberOfRooms) ? {
|
|
32408
|
+
label: t("WS_NUMBER_OF_ROOMS"),
|
|
32197
32409
|
value: propertyDetail.numberOfRooms,
|
|
32198
32410
|
isText: true
|
|
32199
|
-
}, {
|
|
32200
|
-
label: "
|
|
32411
|
+
} : null, isValidValue(propertyDetail.numberOfStudents) ? {
|
|
32412
|
+
label: t("WS_NUMBER_OF_STUDENTS"),
|
|
32201
32413
|
value: propertyDetail.numberOfStudents,
|
|
32202
32414
|
isText: true
|
|
32203
|
-
}, {
|
|
32204
|
-
label: "
|
|
32415
|
+
} : null, isValidValue(propertyDetail.numberOfStaff) ? {
|
|
32416
|
+
label: t("WS_NUMBER_OF_STAFF"),
|
|
32205
32417
|
value: propertyDetail.numberOfStaff,
|
|
32206
32418
|
isText: true
|
|
32207
|
-
}, {
|
|
32208
|
-
label: "
|
|
32419
|
+
} : null, {
|
|
32420
|
+
label: t("WS_USAGE_CATEGORY"),
|
|
32209
32421
|
value: propertyDetail.usageCategory,
|
|
32210
32422
|
isText: true
|
|
32211
|
-
}] : [];
|
|
32423
|
+
}].filter(Boolean) : [];
|
|
32212
32424
|
const waterDemandRows = waterDemandDetail ? [{
|
|
32213
|
-
label: "
|
|
32425
|
+
label: t("WS_CALCULATED_OCCUPANCY"),
|
|
32214
32426
|
value: waterDemandDetail.calculatedOccupancy,
|
|
32215
32427
|
unit: " person"
|
|
32216
32428
|
}, {
|
|
32217
|
-
label: "
|
|
32429
|
+
label: t("WS_APPLIED_LPCD"),
|
|
32218
32430
|
value: waterDemandDetail.chosenLpcd,
|
|
32219
32431
|
unit: " LPD"
|
|
32220
32432
|
}, {
|
|
32221
|
-
label: "
|
|
32433
|
+
label: t("WS_BASE_DEMAND"),
|
|
32222
32434
|
value: waterDemandDetail.baseDemand,
|
|
32223
32435
|
unit: " LPD"
|
|
32224
32436
|
}, {
|
|
32225
|
-
label: "
|
|
32437
|
+
label: t("WS_CONTINGENCY_FLOATING_OCCUPANCY"),
|
|
32226
32438
|
value: waterDemandDetail.contingencyPercentage,
|
|
32227
32439
|
unit: "%"
|
|
32228
32440
|
}, {
|
|
32229
|
-
label: "
|
|
32441
|
+
label: t("WS_TOTAL_WATER_DEMAND"),
|
|
32230
32442
|
value: waterDemandDetail.totalWaterDemandLPD,
|
|
32231
32443
|
unit: " LPD"
|
|
32232
32444
|
}] : [];
|
|
32233
32445
|
const infrastructureChargeRows = infrastructureChargeDetail ? [{
|
|
32234
|
-
label: "
|
|
32446
|
+
label: t("WS_COLONY_CATEGORY"),
|
|
32235
32447
|
value: infrastructureChargeDetail.colonyCategory,
|
|
32236
32448
|
isText: true
|
|
32237
32449
|
}, {
|
|
32238
|
-
label: "
|
|
32450
|
+
label: t("WS_PLOT_AREA"),
|
|
32239
32451
|
value: infrastructureChargeDetail.plotArea,
|
|
32240
32452
|
unit: " (sq. meter.)"
|
|
32241
32453
|
}, {
|
|
32242
|
-
label: "
|
|
32454
|
+
label: t("WS_WATER_RATE"),
|
|
32243
32455
|
value: infrastructureChargeDetail.waterRatePerLPD,
|
|
32244
32456
|
currency: true
|
|
32245
32457
|
}, {
|
|
32246
|
-
label: "
|
|
32458
|
+
label: t("WS_SEWER_RATE"),
|
|
32247
32459
|
value: infrastructureChargeDetail.sewerRatePerLPD,
|
|
32248
32460
|
currency: true
|
|
32249
32461
|
}, {
|
|
32250
|
-
label: "
|
|
32462
|
+
label: t("WS_WATER_INFRA_CHARGES"),
|
|
32251
32463
|
value: infrastructureChargeDetail.waterComponentIFC,
|
|
32252
32464
|
currency: true
|
|
32253
32465
|
}, {
|
|
32254
|
-
label: "
|
|
32466
|
+
label: t("WS_SEWER_INFRA_CHARGES"),
|
|
32255
32467
|
value: infrastructureChargeDetail.sewerComponentIFC,
|
|
32256
32468
|
currency: true
|
|
32257
32469
|
}, ...(infrastructureChargeDetail.rebateAmount > 0 ? [{
|
|
32258
|
-
label: "
|
|
32470
|
+
label: t("WS_REBATE"),
|
|
32259
32471
|
value: infrastructureChargeDetail.rebatePercentage,
|
|
32260
32472
|
unit: "%"
|
|
32261
32473
|
}, {
|
|
32262
|
-
label: "
|
|
32474
|
+
label: t("WS_REBATE_AMOUNT"),
|
|
32263
32475
|
value: infrastructureChargeDetail.rebateAmount,
|
|
32264
32476
|
currency: true
|
|
32265
32477
|
}] : []), ...(infrastructureChargeDetail.institutionalRebateApplied ? [{
|
|
32266
|
-
label: "
|
|
32478
|
+
label: t("WS_INSTITUTIONAL_REBATE"),
|
|
32267
32479
|
value: infrastructureChargeDetail.institutionalRebatePercentage,
|
|
32268
32480
|
unit: "%"
|
|
32269
32481
|
}, {
|
|
32270
|
-
label: "
|
|
32482
|
+
label: t("WS_INSTITUTIONAL_REBATE_AMOUNT"),
|
|
32271
32483
|
value: infrastructureChargeDetail.institutionalRebateAmount,
|
|
32272
32484
|
currency: true
|
|
32273
32485
|
}, {
|
|
32274
|
-
label: "
|
|
32486
|
+
label: t("WS_INSTITUTIONAL_REBATE_REASON"),
|
|
32275
32487
|
value: t(infrastructureChargeDetail.institutionalRebateReason),
|
|
32276
32488
|
isText: true
|
|
32277
32489
|
}] : []), ...(infrastructureChargeDetail.dwellingRebateApplied ? [{
|
|
32278
|
-
label: "
|
|
32490
|
+
label: t("WS_DWELLING_REBATE"),
|
|
32279
32491
|
value: infrastructureChargeDetail.dwellingRebatePercentage,
|
|
32280
32492
|
unit: "%"
|
|
32281
32493
|
}, {
|
|
32282
|
-
label: "
|
|
32494
|
+
label: t("WS_DWELLING_REBATE_AMOUNT"),
|
|
32283
32495
|
value: infrastructureChargeDetail.dwellingRebateAmount,
|
|
32284
32496
|
currency: true
|
|
32285
32497
|
}, {
|
|
32286
|
-
label: "
|
|
32498
|
+
label: t("WS_DWELLING_REBATE_REASON"),
|
|
32287
32499
|
value: t(infrastructureChargeDetail.dwellingRebateReason),
|
|
32288
32500
|
isText: true
|
|
32289
32501
|
}] : []), {
|
|
32290
|
-
label: "
|
|
32502
|
+
label: t("WS_NET_IFC"),
|
|
32291
32503
|
value: infrastructureChargeDetail.netIFC,
|
|
32292
32504
|
currency: true
|
|
32293
32505
|
}] : [];
|
|
@@ -32378,19 +32590,19 @@ const ViewBreakup = _ref => {
|
|
|
32378
32590
|
style: {
|
|
32379
32591
|
margin: "10px 0px"
|
|
32380
32592
|
}
|
|
32381
|
-
}, "
|
|
32593
|
+
}, t("WS_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(DetailRows, {
|
|
32382
32594
|
rows: propertyRows
|
|
32383
32595
|
})), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
32384
32596
|
style: {
|
|
32385
32597
|
margin: "10px 0px"
|
|
32386
32598
|
}
|
|
32387
|
-
}, "
|
|
32599
|
+
}, t("WS_WATER_DEMAND_DETAILS")), /*#__PURE__*/React.createElement(DetailRows, {
|
|
32388
32600
|
rows: waterDemandRows
|
|
32389
32601
|
})), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
32390
32602
|
style: {
|
|
32391
32603
|
margin: "10px 0px"
|
|
32392
32604
|
}
|
|
32393
|
-
}, "
|
|
32605
|
+
}, t("WS_INFRASTRUCTURE_CHARGE_DETAILS")), /*#__PURE__*/React.createElement(DetailRows, {
|
|
32394
32606
|
rows: infrastructureChargeRows
|
|
32395
32607
|
})), /*#__PURE__*/React.createElement("hr", {
|
|
32396
32608
|
style: {
|
|
@@ -32421,31 +32633,31 @@ const checkForNA$1 = value => {
|
|
|
32421
32633
|
return value ? value : "CS_NA";
|
|
32422
32634
|
};
|
|
32423
32635
|
const WSApplicationDetails = () => {
|
|
32424
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect121, _data$SewerageConnect122, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect125, _data$SewerageConnect126, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$WaterConnection152, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$SewerageConnect147, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect148, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect150, _data$SewerageConnect151, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178;
|
|
32636
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$SewerageConnect133, _data$SewerageConnect134, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186;
|
|
32425
32637
|
const getDisconnectionNoticeSearch = function () {
|
|
32426
32638
|
try {
|
|
32427
|
-
var _data$
|
|
32639
|
+
var _data$WaterConnection188, _data$WaterConnection189, _data$SewerageConnect182, _data$SewerageConnect183;
|
|
32428
32640
|
let key = "ws-waterdisconnectionnotice";
|
|
32429
32641
|
let details = {};
|
|
32430
32642
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
32431
|
-
var _data$
|
|
32643
|
+
var _data$WaterConnection187, _PTData$Properties11;
|
|
32432
32644
|
details = {
|
|
32433
|
-
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
32434
|
-
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32645
|
+
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection187 = data.WaterConnection) === null || _data$WaterConnection187 === void 0 ? void 0 : _data$WaterConnection187[0], {
|
|
32646
|
+
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : _PTData$Properties11[0]
|
|
32435
32647
|
})]
|
|
32436
32648
|
};
|
|
32437
32649
|
} else {
|
|
32438
|
-
var _data$
|
|
32650
|
+
var _data$SewerageConnect181, _PTData$Properties12;
|
|
32439
32651
|
key = "ws-seweragedisconnectionnotice";
|
|
32440
32652
|
details = {
|
|
32441
|
-
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
32442
|
-
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32653
|
+
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect181 = data.SewerageConnections) === null || _data$SewerageConnect181 === void 0 ? void 0 : _data$SewerageConnect181[0], {
|
|
32654
|
+
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
|
|
32443
32655
|
})]
|
|
32444
32656
|
};
|
|
32445
32657
|
}
|
|
32446
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
32447
|
-
var _data$
|
|
32448
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
32658
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection188 = data.WaterConnection) === null || _data$WaterConnection188 === void 0 ? void 0 : (_data$WaterConnection189 = _data$WaterConnection188[0]) === null || _data$WaterConnection189 === void 0 ? void 0 : _data$WaterConnection189.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect182 = data.SewerageConnections) === null || _data$SewerageConnect182 === void 0 ? void 0 : (_data$SewerageConnect183 = _data$SewerageConnect182[0]) === null || _data$SewerageConnect183 === void 0 ? void 0 : _data$SewerageConnect183.tenantId), details, key)).then(function (response) {
|
|
32659
|
+
var _data$WaterConnection190, _data$WaterConnection191, _data$SewerageConnect184, _data$SewerageConnect185;
|
|
32660
|
+
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection190 = data.WaterConnection) === null || _data$WaterConnection190 === void 0 ? void 0 : (_data$WaterConnection191 = _data$WaterConnection190[0]) === null || _data$WaterConnection191 === void 0 ? void 0 : _data$WaterConnection191.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect184 = data.SewerageConnections) === null || _data$SewerageConnect184 === void 0 ? void 0 : (_data$SewerageConnect185 = _data$SewerageConnect184[0]) === null || _data$SewerageConnect185 === void 0 ? void 0 : _data$SewerageConnect185.tenantId), {
|
|
32449
32661
|
fileStoreIds: response.filestoreIds[0]
|
|
32450
32662
|
})).then(function (fileStore) {
|
|
32451
32663
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -32526,9 +32738,10 @@ const WSApplicationDetails = () => {
|
|
|
32526
32738
|
const additionalDetails = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.additionalDetails) || {};
|
|
32527
32739
|
const connectionDetails = additionalDetails;
|
|
32528
32740
|
const useDetails = additionalDetails;
|
|
32741
|
+
const propertyAdditionalDetails = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : _PTData$Properties$.additionalDetails) || {};
|
|
32529
32742
|
const djbEmployee = additionalDetails;
|
|
32530
32743
|
const bankDetails = additionalDetails;
|
|
32531
|
-
const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32744
|
+
const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties2 = PTData.Properties) === null || _PTData$Properties2 === void 0 ? void 0 : (_PTData$Properties2$ = _PTData$Properties2[0]) === null || _PTData$Properties2$ === void 0 ? void 0 : _PTData$Properties2$.address) || additionalDetails;
|
|
32532
32745
|
const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
|
|
32533
32746
|
privacy: {
|
|
32534
32747
|
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection13 = data.WaterConnection) === null || _data$WaterConnection13 === void 0 ? void 0 : (_data$WaterConnection14 = _data$WaterConnection13[0]) === null || _data$WaterConnection14 === void 0 ? void 0 : (_data$WaterConnection15 = _data$WaterConnection14.connectionHolders) === null || _data$WaterConnection15 === void 0 ? void 0 : (_data$WaterConnection16 = _data$WaterConnection15[0]) === null || _data$WaterConnection16 === void 0 ? void 0 : _data$WaterConnection16.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect13 = data.SewerageConnections) === null || _data$SewerageConnect13 === void 0 ? void 0 : (_data$SewerageConnect14 = _data$SewerageConnect13[0]) === null || _data$SewerageConnect14 === void 0 ? void 0 : (_data$SewerageConnect15 = _data$SewerageConnect14.connectionHolders) === null || _data$SewerageConnect15 === void 0 ? void 0 : (_data$SewerageConnect16 = _data$SewerageConnect15[0]) === null || _data$SewerageConnect16 === void 0 ? void 0 : _data$SewerageConnect16.uuid,
|
|
@@ -32550,10 +32763,10 @@ const WSApplicationDetails = () => {
|
|
|
32550
32763
|
}
|
|
32551
32764
|
const handleDownloadPdf = function () {
|
|
32552
32765
|
try {
|
|
32553
|
-
var _data$WaterConnection19, _data$WaterConnection20, _data$SewerageConnect19, _data$SewerageConnect20, _data$WaterConnection21, _data$SewerageConnect21, _PTData$
|
|
32766
|
+
var _data$WaterConnection19, _data$WaterConnection20, _data$SewerageConnect19, _data$SewerageConnect20, _data$WaterConnection21, _data$SewerageConnect21, _PTData$Properties3;
|
|
32554
32767
|
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection19 = data.WaterConnection) === null || _data$WaterConnection19 === void 0 ? void 0 : (_data$WaterConnection20 = _data$WaterConnection19[0]) === null || _data$WaterConnection20 === void 0 ? void 0 : _data$WaterConnection20.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect19 = data.SewerageConnections) === null || _data$SewerageConnect19 === void 0 ? void 0 : (_data$SewerageConnect20 = _data$SewerageConnect19[0]) === null || _data$SewerageConnect20 === void 0 ? void 0 : _data$SewerageConnect20.tenantId);
|
|
32555
32768
|
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection21 = data.WaterConnection) === null || _data$WaterConnection21 === void 0 ? void 0 : _data$WaterConnection21[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect21 = data.SewerageConnections) === null || _data$SewerageConnect21 === void 0 ? void 0 : _data$SewerageConnect21[0]);
|
|
32556
|
-
const PDFdata = getWSAcknowledgementData(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32769
|
+
const PDFdata = getWSAcknowledgementData(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties3 = PTData.Properties) === null || _PTData$Properties3 === void 0 ? void 0 : _PTData$Properties3[0]), tenantInfo, t);
|
|
32557
32770
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
32558
32771
|
setShowOptions(false);
|
|
32559
32772
|
return Promise.resolve();
|
|
@@ -32563,10 +32776,10 @@ const WSApplicationDetails = () => {
|
|
|
32563
32776
|
};
|
|
32564
32777
|
const handleDownloadDisconnectPdf = function () {
|
|
32565
32778
|
try {
|
|
32566
|
-
var _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection24, _data$SewerageConnect24, _PTData$
|
|
32779
|
+
var _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection24, _data$SewerageConnect24, _PTData$Properties4;
|
|
32567
32780
|
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection22 = data.WaterConnection) === null || _data$WaterConnection22 === void 0 ? void 0 : (_data$WaterConnection23 = _data$WaterConnection22[0]) === null || _data$WaterConnection23 === void 0 ? void 0 : _data$WaterConnection23.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect22 = data.SewerageConnections) === null || _data$SewerageConnect22 === void 0 ? void 0 : (_data$SewerageConnect23 = _data$SewerageConnect22[0]) === null || _data$SewerageConnect23 === void 0 ? void 0 : _data$SewerageConnect23.tenantId);
|
|
32568
32781
|
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection24 = data.WaterConnection) === null || _data$WaterConnection24 === void 0 ? void 0 : _data$WaterConnection24[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect24 = data.SewerageConnections) === null || _data$SewerageConnect24 === void 0 ? void 0 : _data$SewerageConnect24[0]);
|
|
32569
|
-
const PDFdata = getWSDisconnectionApplicationForm(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32782
|
+
const PDFdata = getWSDisconnectionApplicationForm(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties4 = PTData.Properties) === null || _PTData$Properties4 === void 0 ? void 0 : _PTData$Properties4[0]), tenantInfo, t);
|
|
32570
32783
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
32571
32784
|
setShowOptions(false);
|
|
32572
32785
|
return Promise.resolve();
|
|
@@ -32844,14 +33057,26 @@ const WSApplicationDetails = () => {
|
|
|
32844
33057
|
textStyle: {
|
|
32845
33058
|
whiteSpace: "pre"
|
|
32846
33059
|
}
|
|
33060
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
33061
|
+
label: t("WS_OWN_DETAIL_MIDDLE_NAME"),
|
|
33062
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection86 = data.WaterConnection) === null || _data$WaterConnection86 === void 0 ? void 0 : (_data$WaterConnection87 = _data$WaterConnection86[0]) === null || _data$WaterConnection87 === void 0 ? void 0 : (_data$WaterConnection88 = _data$WaterConnection87.connectionHolders) === null || _data$WaterConnection88 === void 0 ? void 0 : (_data$WaterConnection89 = _data$WaterConnection88[0]) === null || _data$WaterConnection89 === void 0 ? void 0 : _data$WaterConnection89.middleName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect81 = data.SewerageConnections) === null || _data$SewerageConnect81 === void 0 ? void 0 : (_data$SewerageConnect82 = _data$SewerageConnect81[0]) === null || _data$SewerageConnect82 === void 0 ? void 0 : (_data$SewerageConnect83 = _data$SewerageConnect82.connectionHolders) === null || _data$SewerageConnect83 === void 0 ? void 0 : (_data$SewerageConnect84 = _data$SewerageConnect83[0]) === null || _data$SewerageConnect84 === void 0 ? void 0 : _data$SewerageConnect84.middleName),
|
|
33063
|
+
textStyle: {
|
|
33064
|
+
whiteSpace: "pre"
|
|
33065
|
+
}
|
|
33066
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
33067
|
+
label: t("WS_OWN_DETAIL_LAST_NAME"),
|
|
33068
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection90 = data.WaterConnection) === null || _data$WaterConnection90 === void 0 ? void 0 : (_data$WaterConnection91 = _data$WaterConnection90[0]) === null || _data$WaterConnection91 === void 0 ? void 0 : (_data$WaterConnection92 = _data$WaterConnection91.connectionHolders) === null || _data$WaterConnection92 === void 0 ? void 0 : (_data$WaterConnection93 = _data$WaterConnection92[0]) === null || _data$WaterConnection93 === void 0 ? void 0 : _data$WaterConnection93.lastName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect85 = data.SewerageConnections) === null || _data$SewerageConnect85 === void 0 ? void 0 : (_data$SewerageConnect86 = _data$SewerageConnect85[0]) === null || _data$SewerageConnect86 === void 0 ? void 0 : (_data$SewerageConnect87 = _data$SewerageConnect86.connectionHolders) === null || _data$SewerageConnect87 === void 0 ? void 0 : (_data$SewerageConnect88 = _data$SewerageConnect87[0]) === null || _data$SewerageConnect88 === void 0 ? void 0 : _data$SewerageConnect88.lastName),
|
|
33069
|
+
textStyle: {
|
|
33070
|
+
whiteSpace: "pre"
|
|
33071
|
+
}
|
|
32847
33072
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
32848
33073
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
32849
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
33074
|
+
text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection94 = data.WaterConnection) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94[0]) === null || _data$WaterConnection95 === void 0 ? void 0 : (_data$WaterConnection96 = _data$WaterConnection95.connectionHolders) === null || _data$WaterConnection96 === void 0 ? void 0 : (_data$WaterConnection97 = _data$WaterConnection96[0]) === null || _data$WaterConnection97 === void 0 ? void 0 : _data$WaterConnection97.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect89 = data.SewerageConnections) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89[0]) === null || _data$SewerageConnect90 === void 0 ? void 0 : (_data$SewerageConnect91 = _data$SewerageConnect90.connectionHolders) === null || _data$SewerageConnect91 === void 0 ? void 0 : (_data$SewerageConnect92 = _data$SewerageConnect91[0]) === null || _data$SewerageConnect92 === void 0 ? void 0 : _data$SewerageConnect92.gender)),
|
|
32850
33075
|
textStyle: {
|
|
32851
33076
|
whiteSpace: "pre"
|
|
32852
33077
|
},
|
|
32853
33078
|
privacy: {
|
|
32854
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33079
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection98 = data.WaterConnection) === null || _data$WaterConnection98 === void 0 ? void 0 : (_data$WaterConnection99 = _data$WaterConnection98[0]) === null || _data$WaterConnection99 === void 0 ? void 0 : (_data$WaterConnection100 = _data$WaterConnection99.connectionHolders) === null || _data$WaterConnection100 === void 0 ? void 0 : (_data$WaterConnection101 = _data$WaterConnection100[0]) === null || _data$WaterConnection101 === void 0 ? void 0 : _data$WaterConnection101.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect93 = data.SewerageConnections) === null || _data$SewerageConnect93 === void 0 ? void 0 : (_data$SewerageConnect94 = _data$SewerageConnect93[0]) === null || _data$SewerageConnect94 === void 0 ? void 0 : (_data$SewerageConnect95 = _data$SewerageConnect94.connectionHolders) === null || _data$SewerageConnect95 === void 0 ? void 0 : (_data$SewerageConnect96 = _data$SewerageConnect95[0]) === null || _data$SewerageConnect96 === void 0 ? void 0 : _data$SewerageConnect96.uuid,
|
|
32855
33080
|
fieldName: "gender",
|
|
32856
33081
|
model: "WnSConnectionOwner",
|
|
32857
33082
|
showValue: false,
|
|
@@ -32868,12 +33093,12 @@ const WSApplicationDetails = () => {
|
|
|
32868
33093
|
}
|
|
32869
33094
|
}), !isMutation && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
32870
33095
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
32871
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33096
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection102 = data.WaterConnection) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102[0]) === null || _data$WaterConnection103 === void 0 ? void 0 : (_data$WaterConnection104 = _data$WaterConnection103.connectionHolders) === null || _data$WaterConnection104 === void 0 ? void 0 : (_data$WaterConnection105 = _data$WaterConnection104[0]) === null || _data$WaterConnection105 === void 0 ? void 0 : _data$WaterConnection105.fatherOrHusbandName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect97 = data.SewerageConnections) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97[0]) === null || _data$SewerageConnect98 === void 0 ? void 0 : (_data$SewerageConnect99 = _data$SewerageConnect98.connectionHolders) === null || _data$SewerageConnect99 === void 0 ? void 0 : (_data$SewerageConnect100 = _data$SewerageConnect99[0]) === null || _data$SewerageConnect100 === void 0 ? void 0 : _data$SewerageConnect100.fatherOrHusbandName) || t("CS_NA"),
|
|
32872
33097
|
textStyle: {
|
|
32873
33098
|
whiteSpace: "pre"
|
|
32874
33099
|
},
|
|
32875
33100
|
privacy: {
|
|
32876
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33101
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection106 = data.WaterConnection) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106[0]) === null || _data$WaterConnection107 === void 0 ? void 0 : (_data$WaterConnection108 = _data$WaterConnection107.connectionHolders) === null || _data$WaterConnection108 === void 0 ? void 0 : (_data$WaterConnection109 = _data$WaterConnection108[0]) === null || _data$WaterConnection109 === void 0 ? void 0 : _data$WaterConnection109.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect101 = data.SewerageConnections) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101[0]) === null || _data$SewerageConnect102 === void 0 ? void 0 : (_data$SewerageConnect103 = _data$SewerageConnect102.connectionHolders) === null || _data$SewerageConnect103 === void 0 ? void 0 : (_data$SewerageConnect104 = _data$SewerageConnect103[0]) === null || _data$SewerageConnect104 === void 0 ? void 0 : _data$SewerageConnect104.uuid,
|
|
32877
33102
|
fieldName: "fatherOrHusbandName",
|
|
32878
33103
|
model: "WnSConnectionOwner",
|
|
32879
33104
|
showValue: false,
|
|
@@ -32890,12 +33115,12 @@ const WSApplicationDetails = () => {
|
|
|
32890
33115
|
}
|
|
32891
33116
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
32892
33117
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
32893
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33118
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection110 = data.WaterConnection) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110[0]) === null || _data$WaterConnection111 === void 0 ? void 0 : (_data$WaterConnection112 = _data$WaterConnection111.connectionHolders) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112[0]) === null || _data$WaterConnection113 === void 0 ? void 0 : _data$WaterConnection113.relationship) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect105 = data.SewerageConnections) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105[0]) === null || _data$SewerageConnect106 === void 0 ? void 0 : (_data$SewerageConnect107 = _data$SewerageConnect106.connectionHolders) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107[0]) === null || _data$SewerageConnect108 === void 0 ? void 0 : _data$SewerageConnect108.relationship) || t("CS_NA"),
|
|
32894
33119
|
textStyle: {
|
|
32895
33120
|
whiteSpace: "pre"
|
|
32896
33121
|
},
|
|
32897
33122
|
privacy: {
|
|
32898
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33123
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection114 = data.WaterConnection) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114[0]) === null || _data$WaterConnection115 === void 0 ? void 0 : (_data$WaterConnection116 = _data$WaterConnection115.connectionHolders) === null || _data$WaterConnection116 === void 0 ? void 0 : (_data$WaterConnection117 = _data$WaterConnection116[0]) === null || _data$WaterConnection117 === void 0 ? void 0 : _data$WaterConnection117.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect109 = data.SewerageConnections) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109[0]) === null || _data$SewerageConnect110 === void 0 ? void 0 : (_data$SewerageConnect111 = _data$SewerageConnect110.connectionHolders) === null || _data$SewerageConnect111 === void 0 ? void 0 : (_data$SewerageConnect112 = _data$SewerageConnect111[0]) === null || _data$SewerageConnect112 === void 0 ? void 0 : _data$SewerageConnect112.uuid,
|
|
32899
33124
|
fieldName: "relationship",
|
|
32900
33125
|
model: "WnSConnection",
|
|
32901
33126
|
showValue: false,
|
|
@@ -32912,9 +33137,9 @@ const WSApplicationDetails = () => {
|
|
|
32912
33137
|
}
|
|
32913
33138
|
})), /*#__PURE__*/React.createElement(Row, {
|
|
32914
33139
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
32915
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33140
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection118 = data.WaterConnection) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118[0]) === null || _data$WaterConnection119 === void 0 ? void 0 : (_data$WaterConnection120 = _data$WaterConnection119.connectionHolders) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120[0]) === null || _data$WaterConnection121 === void 0 ? void 0 : _data$WaterConnection121.correspondenceAddress) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect113 = data.SewerageConnections) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113[0]) === null || _data$SewerageConnect114 === void 0 ? void 0 : (_data$SewerageConnect115 = _data$SewerageConnect114.connectionHolders) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115[0]) === null || _data$SewerageConnect116 === void 0 ? void 0 : _data$SewerageConnect116.correspondenceAddress) || t("CS_NA"),
|
|
32916
33141
|
privacy: {
|
|
32917
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33142
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection122 = data.WaterConnection) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122[0]) === null || _data$WaterConnection123 === void 0 ? void 0 : (_data$WaterConnection124 = _data$WaterConnection123.connectionHolders) === null || _data$WaterConnection124 === void 0 ? void 0 : (_data$WaterConnection125 = _data$WaterConnection124[0]) === null || _data$WaterConnection125 === void 0 ? void 0 : _data$WaterConnection125.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect117 = data.SewerageConnections) === null || _data$SewerageConnect117 === void 0 ? void 0 : (_data$SewerageConnect118 = _data$SewerageConnect117[0]) === null || _data$SewerageConnect118 === void 0 ? void 0 : (_data$SewerageConnect119 = _data$SewerageConnect118.connectionHolders) === null || _data$SewerageConnect119 === void 0 ? void 0 : (_data$SewerageConnect120 = _data$SewerageConnect119[0]) === null || _data$SewerageConnect120 === void 0 ? void 0 : _data$SewerageConnect120.uuid,
|
|
32918
33143
|
fieldName: "correspondenceAddress",
|
|
32919
33144
|
model: "WnSConnectionOwner",
|
|
32920
33145
|
showValue: false,
|
|
@@ -32931,12 +33156,12 @@ const WSApplicationDetails = () => {
|
|
|
32931
33156
|
}
|
|
32932
33157
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
32933
33158
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
32934
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33159
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection126 = data.WaterConnection) === null || _data$WaterConnection126 === void 0 ? void 0 : (_data$WaterConnection127 = _data$WaterConnection126[0]) === null || _data$WaterConnection127 === void 0 ? void 0 : (_data$WaterConnection128 = _data$WaterConnection127.connectionHolders) === null || _data$WaterConnection128 === void 0 ? void 0 : (_data$WaterConnection129 = _data$WaterConnection128[0]) === null || _data$WaterConnection129 === void 0 ? void 0 : _data$WaterConnection129.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect121 = data.SewerageConnections) === null || _data$SewerageConnect121 === void 0 ? void 0 : (_data$SewerageConnect122 = _data$SewerageConnect121[0]) === null || _data$SewerageConnect122 === void 0 ? void 0 : (_data$SewerageConnect123 = _data$SewerageConnect122.connectionHolders) === null || _data$SewerageConnect123 === void 0 ? void 0 : (_data$SewerageConnect124 = _data$SewerageConnect123[0]) === null || _data$SewerageConnect124 === void 0 ? void 0 : _data$SewerageConnect124.emailId) || "NA",
|
|
32935
33160
|
textStyle: {
|
|
32936
33161
|
whiteSpace: "pre"
|
|
32937
33162
|
},
|
|
32938
33163
|
privacy: {
|
|
32939
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33164
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection130 = data.WaterConnection) === null || _data$WaterConnection130 === void 0 ? void 0 : (_data$WaterConnection131 = _data$WaterConnection130[0]) === null || _data$WaterConnection131 === void 0 ? void 0 : (_data$WaterConnection132 = _data$WaterConnection131.connectionHolders) === null || _data$WaterConnection132 === void 0 ? void 0 : (_data$WaterConnection133 = _data$WaterConnection132[0]) === null || _data$WaterConnection133 === void 0 ? void 0 : _data$WaterConnection133.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect125 = data.SewerageConnections) === null || _data$SewerageConnect125 === void 0 ? void 0 : (_data$SewerageConnect126 = _data$SewerageConnect125[0]) === null || _data$SewerageConnect126 === void 0 ? void 0 : (_data$SewerageConnect127 = _data$SewerageConnect126.connectionHolders) === null || _data$SewerageConnect127 === void 0 ? void 0 : (_data$SewerageConnect128 = _data$SewerageConnect127[0]) === null || _data$SewerageConnect128 === void 0 ? void 0 : _data$SewerageConnect128.uuid,
|
|
32940
33165
|
fieldName: "connectionHoldersEmailId",
|
|
32941
33166
|
model: "WnSConnectionOwner",
|
|
32942
33167
|
showValue: false,
|
|
@@ -32957,30 +33182,30 @@ const WSApplicationDetails = () => {
|
|
|
32957
33182
|
}
|
|
32958
33183
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
32959
33184
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
32960
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33185
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection134 = data.WaterConnection) === null || _data$WaterConnection134 === void 0 ? void 0 : (_data$WaterConnection135 = _data$WaterConnection134[0]) === null || _data$WaterConnection135 === void 0 ? void 0 : _data$WaterConnection135.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect129 = data.SewerageConnections) === null || _data$SewerageConnect129 === void 0 ? void 0 : (_data$SewerageConnect130 = _data$SewerageConnect129[0]) === null || _data$SewerageConnect130 === void 0 ? void 0 : _data$SewerageConnect130.propertyId),
|
|
32961
33186
|
textStyle: {
|
|
32962
33187
|
wordBreak: "break-word"
|
|
32963
33188
|
}
|
|
32964
33189
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
32965
33190
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
32966
|
-
text: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
33191
|
+
text: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties5 = PTData.Properties) === null || _PTData$Properties5 === void 0 ? void 0 : (_PTData$Properties5$ = _PTData$Properties5[0]) === null || _PTData$Properties5$ === void 0 ? void 0 : (_PTData$Properties5$$ = _PTData$Properties5$.owners.sort((a, b) => {
|
|
32967
33192
|
var _a$additionalDetails, _b$additionalDetails;
|
|
32968
33193
|
return (a === null || a === void 0 ? void 0 : (_a$additionalDetails = a.additionalDetails) === null || _a$additionalDetails === void 0 ? void 0 : _a$additionalDetails.ownerSequence) - (b === null || b === void 0 ? void 0 : (_b$additionalDetails = b.additionalDetails) === null || _b$additionalDetails === void 0 ? void 0 : _b$additionalDetails.ownerSequence);
|
|
32969
|
-
})) === null || _PTData$
|
|
33194
|
+
})) === null || _PTData$Properties5$$ === void 0 ? void 0 : (_PTData$Properties5$$2 = _PTData$Properties5$$[0]) === null || _PTData$Properties5$$2 === void 0 ? void 0 : _PTData$Properties5$$2.name,
|
|
32970
33195
|
textStyle: {
|
|
32971
33196
|
whiteSpace: "pre"
|
|
32972
33197
|
}
|
|
32973
33198
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
32974
33199
|
label: t("WS_PROPERTY_ADDRESS"),
|
|
32975
|
-
text: getAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
33200
|
+
text: getAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties6 = PTData.Properties) === null || _PTData$Properties6 === void 0 ? void 0 : (_PTData$Properties6$ = _PTData$Properties6[0]) === null || _PTData$Properties6$ === void 0 ? void 0 : _PTData$Properties6$.address, t) || t("CS_NA"),
|
|
32976
33201
|
textStyle: {
|
|
32977
33202
|
wordBreak: "break-word"
|
|
32978
33203
|
},
|
|
32979
33204
|
privacy: {
|
|
32980
|
-
uuid: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
33205
|
+
uuid: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties7 = PTData.Properties) === null || _PTData$Properties7 === void 0 ? void 0 : (_PTData$Properties7$ = _PTData$Properties7[0]) === null || _PTData$Properties7$ === void 0 ? void 0 : (_PTData$Properties7$$ = _PTData$Properties7$.owners) === null || _PTData$Properties7$$ === void 0 ? void 0 : (_PTData$Properties7$$2 = _PTData$Properties7$$[0]) === null || _PTData$Properties7$$2 === void 0 ? void 0 : _PTData$Properties7$$2.uuid,
|
|
32981
33206
|
fieldName: ["doorNo", "street", "landmark"],
|
|
32982
33207
|
model: "Property",
|
|
32983
|
-
hide: !(PTData !== null && PTData !== void 0 && (_PTData$
|
|
33208
|
+
hide: !(PTData !== null && PTData !== void 0 && (_PTData$Properties8 = PTData.Properties) !== null && _PTData$Properties8 !== void 0 && (_PTData$Properties8$ = _PTData$Properties8[0]) !== null && _PTData$Properties8$ !== void 0 && _PTData$Properties8$.address),
|
|
32984
33209
|
showValue: true,
|
|
32985
33210
|
loadData: {
|
|
32986
33211
|
serviceName: "/property-services/property/_search",
|
|
@@ -32998,7 +33223,7 @@ const WSApplicationDetails = () => {
|
|
|
32998
33223
|
}
|
|
32999
33224
|
}
|
|
33000
33225
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
33001
|
-
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33226
|
+
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : (_data$WaterConnection137 = _data$WaterConnection136[0]) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : (_data$SewerageConnect132 = _data$SewerageConnect131[0]) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132.propertyId)) + "&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : (_data$WaterConnection139 = _data$WaterConnection138[0]) === null || _data$WaterConnection139 === void 0 ? void 0 : _data$WaterConnection139.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : (_data$SewerageConnect134 = _data$SewerageConnect133[0]) === null || _data$SewerageConnect134 === void 0 ? void 0 : _data$SewerageConnect134.tenantId))
|
|
33002
33227
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
33003
33228
|
style: {
|
|
33004
33229
|
textAlign: "left"
|
|
@@ -33078,16 +33303,16 @@ const WSApplicationDetails = () => {
|
|
|
33078
33303
|
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType)))
|
|
33079
33304
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33080
33305
|
label: t("WS_PROPERTY_CATEGORY"),
|
|
33081
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory)))
|
|
33306
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe === void 0 ? void 0 : _propertyAdditionalDe.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe2 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe2 === void 0 ? void 0 : _propertyAdditionalDe2.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : _PTData$Properties9$.usageCategory)))
|
|
33082
33307
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33083
33308
|
label: t("WS_PROPERTY_TYPE"),
|
|
33084
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType)))
|
|
33309
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe3 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe3 === void 0 ? void 0 : _propertyAdditionalDe3.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe4 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe4 === void 0 ? void 0 : _propertyAdditionalDe4.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyType) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : _PTData$Properties0$.propertyType)))
|
|
33085
33310
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33086
33311
|
label: t("WS_WATER_CONNECTION_USAGE_TYPE"),
|
|
33087
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType)))
|
|
33312
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe5 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe5 === void 0 ? void 0 : _propertyAdditionalDe5.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe6 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe6 === void 0 ? void 0 : _propertyAdditionalDe6.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.waterConnectionUsageType)))
|
|
33088
33313
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33089
33314
|
label: t("WS_NUMBER_OF_FLOORS"),
|
|
33090
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors)))
|
|
33315
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : _PTData$Properties1$.noOfFloors)))
|
|
33091
33316
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33092
33317
|
label: t("WS_PLOT_AREA"),
|
|
33093
33318
|
text: "" + t(checkForNA$1(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))
|
|
@@ -33158,7 +33383,7 @@ const WSApplicationDetails = () => {
|
|
|
33158
33383
|
styles: {
|
|
33159
33384
|
fontSize: "28px"
|
|
33160
33385
|
}
|
|
33161
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
33386
|
+
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection140 = data.WaterConnection) === null || _data$WaterConnection140 === void 0 ? void 0 : (_data$WaterConnection141 = _data$WaterConnection140[0]) === null || _data$WaterConnection141 === void 0 ? void 0 : _data$WaterConnection141.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection142 = data.WaterConnection) === null || _data$WaterConnection142 === void 0 ? void 0 : (_data$WaterConnection143 = _data$WaterConnection142[0]) === null || _data$WaterConnection143 === void 0 ? void 0 : _data$WaterConnection143.documents.reduce((acc, current) => {
|
|
33162
33387
|
const x = acc.find(item => item.documentType === current.documentType);
|
|
33163
33388
|
if (!x) {
|
|
33164
33389
|
return acc.concat([current]);
|
|
@@ -33166,11 +33391,11 @@ const WSApplicationDetails = () => {
|
|
|
33166
33391
|
return acc;
|
|
33167
33392
|
}
|
|
33168
33393
|
}, []).map((doc, index, array) => {
|
|
33169
|
-
var _doc$documentType, _data$
|
|
33394
|
+
var _doc$documentType, _data$WaterConnection144, _data$WaterConnection145;
|
|
33170
33395
|
return /*#__PURE__*/React.createElement("div", {
|
|
33171
33396
|
key: "doc-" + index
|
|
33172
33397
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(WSDocument, {
|
|
33173
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33398
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection144 = data.WaterConnection) === null || _data$WaterConnection144 === void 0 ? void 0 : (_data$WaterConnection145 = _data$WaterConnection144[0]) === null || _data$WaterConnection145 === void 0 ? void 0 : _data$WaterConnection145.documents,
|
|
33174
33399
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33175
33400
|
index: index
|
|
33176
33401
|
}), array.length != index + 1 ? /*#__PURE__*/React.createElement("hr", {
|
|
@@ -33182,7 +33407,7 @@ const WSApplicationDetails = () => {
|
|
|
33182
33407
|
marginBottom: "20px"
|
|
33183
33408
|
}
|
|
33184
33409
|
}) : null)));
|
|
33185
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
33410
|
+
})), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect135 = data.SewerageConnections) === null || _data$SewerageConnect135 === void 0 ? void 0 : (_data$SewerageConnect136 = _data$SewerageConnect135[0]) === null || _data$SewerageConnect136 === void 0 ? void 0 : _data$SewerageConnect136.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect137 = data.SewerageConnections) === null || _data$SewerageConnect137 === void 0 ? void 0 : (_data$SewerageConnect138 = _data$SewerageConnect137[0]) === null || _data$SewerageConnect138 === void 0 ? void 0 : _data$SewerageConnect138.documents.reduce((acc, current) => {
|
|
33186
33411
|
const x = acc.find(item => item.documentType === current.documentType);
|
|
33187
33412
|
if (!x) {
|
|
33188
33413
|
return acc.concat([current]);
|
|
@@ -33190,11 +33415,11 @@ const WSApplicationDetails = () => {
|
|
|
33190
33415
|
return acc;
|
|
33191
33416
|
}
|
|
33192
33417
|
}, []).map((doc, index, array) => {
|
|
33193
|
-
var _doc$documentType2, _data$
|
|
33418
|
+
var _doc$documentType2, _data$SewerageConnect139, _data$SewerageConnect140;
|
|
33194
33419
|
return /*#__PURE__*/React.createElement("div", {
|
|
33195
33420
|
key: "doc-" + index
|
|
33196
33421
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(WSDocument, {
|
|
33197
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33422
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect139 = data.SewerageConnections) === null || _data$SewerageConnect139 === void 0 ? void 0 : (_data$SewerageConnect140 = _data$SewerageConnect139[0]) === null || _data$SewerageConnect140 === void 0 ? void 0 : _data$SewerageConnect140.documents,
|
|
33198
33423
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33199
33424
|
index: index
|
|
33200
33425
|
}), array.length != index + 1 ? /*#__PURE__*/React.createElement("hr", {
|
|
@@ -33206,40 +33431,40 @@ const WSApplicationDetails = () => {
|
|
|
33206
33431
|
marginBottom: "20px"
|
|
33207
33432
|
}
|
|
33208
33433
|
}) : null)));
|
|
33209
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
33434
|
+
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
|
|
33210
33435
|
to: {
|
|
33211
33436
|
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService) + "/" + stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+"),
|
|
33212
|
-
search: "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33437
|
+
search: "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155.connectionHolders) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150.connectionHolders) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false) + "&consumerCode=" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode),
|
|
33213
33438
|
state: {
|
|
33214
33439
|
fromApplicationDetails: true
|
|
33215
33440
|
}
|
|
33216
33441
|
}
|
|
33217
33442
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
33218
33443
|
label: t("MAKE_PAYMENT")
|
|
33219
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
33444
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection157 = data.WaterConnection) !== null && _data$WaterConnection157 !== void 0 && (_data$WaterConnection158 = _data$WaterConnection157[0]) !== null && _data$WaterConnection158 !== void 0 && _data$WaterConnection158.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection159 = data.WaterConnection) !== null && _data$WaterConnection159 !== void 0 && (_data$WaterConnection160 = _data$WaterConnection159[0]) !== null && _data$WaterConnection160 !== void 0 && _data$WaterConnection160.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect152 = data.SewerageConnections) !== null && _data$SewerageConnect152 !== void 0 && (_data$SewerageConnect153 = _data$SewerageConnect152[0]) !== null && _data$SewerageConnect153 !== void 0 && _data$SewerageConnect153.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect154 = data.SewerageConnections) !== null && _data$SewerageConnect154 !== void 0 && (_data$SewerageConnect155 = _data$SewerageConnect154[0]) !== null && _data$SewerageConnect155 !== void 0 && _data$SewerageConnect155.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
|
|
33220
33445
|
to: {
|
|
33221
|
-
pathname: isMutation ? "/digit-ui/citizen/ws/mutation-application" : "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33222
|
-
search: isMutation ? "?applicationNumber=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33446
|
+
pathname: isMutation ? "/digit-ui/citizen/ws/mutation-application" : "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection161 = data.WaterConnection) === null || _data$WaterConnection161 === void 0 ? void 0 : (_data$WaterConnection162 = _data$WaterConnection161[0]) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.tenantId)),
|
|
33447
|
+
search: isMutation ? "?applicationNumber=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection163 = data.WaterConnection) === null || _data$WaterConnection163 === void 0 ? void 0 : (_data$WaterConnection164 = _data$WaterConnection163[0]) === null || _data$WaterConnection164 === void 0 ? void 0 : _data$WaterConnection164.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect158 = data.SewerageConnections) === null || _data$SewerageConnect158 === void 0 ? void 0 : (_data$SewerageConnect159 = _data$SewerageConnect158[0]) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159.applicationNo)) + "&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection165 = data.WaterConnection) === null || _data$WaterConnection165 === void 0 ? void 0 : (_data$WaterConnection166 = _data$WaterConnection165[0]) === null || _data$WaterConnection166 === void 0 ? void 0 : _data$WaterConnection166.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect160 = data.SewerageConnections) === null || _data$SewerageConnect160 === void 0 ? void 0 : (_data$SewerageConnect161 = _data$SewerageConnect160[0]) === null || _data$SewerageConnect161 === void 0 ? void 0 : _data$SewerageConnect161.tenantId)) + "&service=" + (data !== null && data !== void 0 && (_data$WaterConnection167 = data.WaterConnection) !== null && _data$WaterConnection167 !== void 0 && _data$WaterConnection167[0] ? "WATER" : "SEWERAGE") + "&propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection168 = data.WaterConnection) === null || _data$WaterConnection168 === void 0 ? void 0 : (_data$WaterConnection169 = _data$WaterConnection168[0]) === null || _data$WaterConnection169 === void 0 ? void 0 : _data$WaterConnection169.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect162 = data.SewerageConnections) === null || _data$SewerageConnect162 === void 0 ? void 0 : (_data$SewerageConnect163 = _data$SewerageConnect162[0]) === null || _data$SewerageConnect163 === void 0 ? void 0 : _data$SewerageConnect163.propertyId)) : "",
|
|
33223
33448
|
state: {
|
|
33224
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33449
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection170 = data.WaterConnection) === null || _data$WaterConnection170 === void 0 ? void 0 : (_data$WaterConnection171 = _data$WaterConnection170[0]) === null || _data$WaterConnection171 === void 0 ? void 0 : _data$WaterConnection171.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : _data$SewerageConnect165.applicationNo))
|
|
33225
33450
|
}
|
|
33226
33451
|
}
|
|
33227
33452
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
33228
33453
|
label: t("COMMON_EDIT")
|
|
33229
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
33454
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection172 = data.WaterConnection) !== null && _data$WaterConnection172 !== void 0 && (_data$WaterConnection173 = _data$WaterConnection172[0]) !== null && _data$WaterConnection173 !== void 0 && _data$WaterConnection173.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection174 = data.WaterConnection) !== null && _data$WaterConnection174 !== void 0 && (_data$WaterConnection175 = _data$WaterConnection174[0]) !== null && _data$WaterConnection175 !== void 0 && _data$WaterConnection175.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect166 = data.SewerageConnections) !== null && _data$SewerageConnect166 !== void 0 && (_data$SewerageConnect167 = _data$SewerageConnect166[0]) !== null && _data$SewerageConnect167 !== void 0 && _data$SewerageConnect167.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect168 = data.SewerageConnections) !== null && _data$SewerageConnect168 !== void 0 && (_data$SewerageConnect169 = _data$SewerageConnect168[0]) !== null && _data$SewerageConnect169 !== void 0 && _data$SewerageConnect169.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
|
|
33230
33455
|
to: {
|
|
33231
33456
|
pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
|
|
33232
33457
|
state: {
|
|
33233
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33458
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection176 = data.WaterConnection) === null || _data$WaterConnection176 === void 0 ? void 0 : (_data$WaterConnection177 = _data$WaterConnection176[0]) === null || _data$WaterConnection177 === void 0 ? void 0 : _data$WaterConnection177.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect170 = data.SewerageConnections) === null || _data$SewerageConnect170 === void 0 ? void 0 : (_data$SewerageConnect171 = _data$SewerageConnect170[0]) === null || _data$SewerageConnect171 === void 0 ? void 0 : _data$SewerageConnect171.applicationNo))
|
|
33234
33459
|
}
|
|
33235
33460
|
}
|
|
33236
33461
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
33237
33462
|
label: t("RESUBMIT_APPLICATION"),
|
|
33238
33463
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
33239
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
33464
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect172 = data.SewerageConnections) === null || _data$SewerageConnect172 === void 0 ? void 0 : _data$SewerageConnect172[0],
|
|
33240
33465
|
serviceType: "SEWERAGE",
|
|
33241
33466
|
WSDisconnectionForm: {
|
|
33242
|
-
type: data !== null && data !== void 0 && (_data$
|
|
33467
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect173 = data.SewerageConnections) !== null && _data$SewerageConnect173 !== void 0 && (_data$SewerageConnect174 = _data$SewerageConnect173[0]) !== null && _data$SewerageConnect174 !== void 0 && _data$SewerageConnect174.isDisconnectionTemporary ? {
|
|
33243
33468
|
code: "type",
|
|
33244
33469
|
value: {
|
|
33245
33470
|
name: "Temporary",
|
|
@@ -33256,18 +33481,18 @@ const WSApplicationDetails = () => {
|
|
|
33256
33481
|
code: "Permanent"
|
|
33257
33482
|
}
|
|
33258
33483
|
},
|
|
33259
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
33484
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect175 = data.SewerageConnections) === null || _data$SewerageConnect175 === void 0 ? void 0 : (_data$SewerageConnect176 = _data$SewerageConnect175[0]) === null || _data$SewerageConnect176 === void 0 ? void 0 : _data$SewerageConnect176.dateEffectiveFrom, true),
|
|
33260
33485
|
reason: {
|
|
33261
33486
|
code: "reason",
|
|
33262
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33487
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect177 = data.SewerageConnections) === null || _data$SewerageConnect177 === void 0 ? void 0 : (_data$SewerageConnect178 = _data$SewerageConnect177[0]) === null || _data$SewerageConnect178 === void 0 ? void 0 : _data$SewerageConnect178.disconnectionReason
|
|
33263
33488
|
},
|
|
33264
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
33489
|
+
documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect179 = data.SewerageConnections) === null || _data$SewerageConnect179 === void 0 ? void 0 : (_data$SewerageConnect180 = _data$SewerageConnect179[0]) === null || _data$SewerageConnect180 === void 0 ? void 0 : _data$SewerageConnect180.documents
|
|
33265
33490
|
}
|
|
33266
33491
|
} : {
|
|
33267
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
33492
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection178 = data.WaterConnection) === null || _data$WaterConnection178 === void 0 ? void 0 : _data$WaterConnection178[0],
|
|
33268
33493
|
serviceType: "WATER",
|
|
33269
33494
|
WSDisconnectionForm: {
|
|
33270
|
-
type: data !== null && data !== void 0 && (_data$
|
|
33495
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection179 = data.WaterConnection) !== null && _data$WaterConnection179 !== void 0 && (_data$WaterConnection180 = _data$WaterConnection179[0]) !== null && _data$WaterConnection180 !== void 0 && _data$WaterConnection180.isDisconnectionTemporary ? {
|
|
33271
33496
|
code: "type",
|
|
33272
33497
|
value: {
|
|
33273
33498
|
name: "Temporary",
|
|
@@ -33284,12 +33509,12 @@ const WSApplicationDetails = () => {
|
|
|
33284
33509
|
code: "Permanent"
|
|
33285
33510
|
}
|
|
33286
33511
|
},
|
|
33287
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
33512
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection181 = data.WaterConnection) === null || _data$WaterConnection181 === void 0 ? void 0 : (_data$WaterConnection182 = _data$WaterConnection181[0]) === null || _data$WaterConnection182 === void 0 ? void 0 : _data$WaterConnection182.dateEffectiveFrom, true),
|
|
33288
33513
|
reason: {
|
|
33289
33514
|
code: "reason",
|
|
33290
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33515
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection183 = data.WaterConnection) === null || _data$WaterConnection183 === void 0 ? void 0 : (_data$WaterConnection184 = _data$WaterConnection183[0]) === null || _data$WaterConnection184 === void 0 ? void 0 : _data$WaterConnection184.disconnectionReason
|
|
33291
33516
|
},
|
|
33292
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
33517
|
+
documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection185 = data.WaterConnection) === null || _data$WaterConnection185 === void 0 ? void 0 : (_data$WaterConnection186 = _data$WaterConnection185[0]) === null || _data$WaterConnection186 === void 0 ? void 0 : _data$WaterConnection186.documents
|
|
33293
33518
|
}
|
|
33294
33519
|
})
|
|
33295
33520
|
})) : null)))));
|
|
@@ -35143,6 +35368,7 @@ const CheckPage = _ref => {
|
|
|
35143
35368
|
const propertyAddress = (value === null || value === void 0 ? void 0 : value.propertyLocationDetails) || {};
|
|
35144
35369
|
const useDetails = (value === null || value === void 0 ? void 0 : (_value$waterConnectio = value.waterConnection) === null || _value$waterConnectio === void 0 ? void 0 : _value$waterConnectio.useDetails) || {};
|
|
35145
35370
|
const djbEmployee = (value === null || value === void 0 ? void 0 : value.djbEmployee) || {};
|
|
35371
|
+
const disability = (value === null || value === void 0 ? void 0 : value.disability) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
|
|
35146
35372
|
const bankDetails = (value === null || value === void 0 ? void 0 : value.bankDetails) || {};
|
|
35147
35373
|
const additionalDetails = {};
|
|
35148
35374
|
const checkForNA = val => val ? val : "CS_NA";
|
|
@@ -35450,7 +35676,15 @@ const CheckPage = _ref => {
|
|
|
35450
35676
|
},
|
|
35451
35677
|
onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
|
|
35452
35678
|
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
35453
|
-
}))), /*#__PURE__*/React.createElement(CardSubHeader, null,
|
|
35679
|
+
}))), /*#__PURE__*/React.createElement(CardSubHeader, null, "Divyangjan/Person with Disability?"), /*#__PURE__*/React.createElement(StatusTable, {
|
|
35680
|
+
style: {
|
|
35681
|
+
marginTop: "10px",
|
|
35682
|
+
marginBottom: "30px"
|
|
35683
|
+
}
|
|
35684
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
35685
|
+
label: "Divyangjan/Person with Disability?",
|
|
35686
|
+
text: "" + (disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO"))
|
|
35687
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
35454
35688
|
style: {
|
|
35455
35689
|
marginTop: "10px",
|
|
35456
35690
|
marginBottom: "30px"
|
|
@@ -36904,20 +37138,22 @@ const getAddress$1 = (address, t) => {
|
|
|
36904
37138
|
return (address !== null && address !== void 0 && address.doorNo ? (address === null || address === void 0 ? void 0 : address.doorNo) + ", " : "") + " " + (address !== null && address !== void 0 && address.street ? (address === null || address === void 0 ? void 0 : address.street) + ", " : "") + (address !== null && address !== void 0 && address.landmark ? (address === null || address === void 0 ? void 0 : address.landmark) + ", " : "") + t(Digit.Utils.pt.getMohallaLocale(address === null || address === void 0 ? void 0 : address.locality.code, address === null || address === void 0 ? void 0 : address.tenantId)) + ", " + t(Digit.Utils.pt.getCityLocale(address === null || address === void 0 ? void 0 : address.tenantId)) + (address !== null && address !== void 0 && address.pincode && t(address === null || address === void 0 ? void 0 : address.pincode) ? ", " + address.pincode : " ");
|
|
36905
37139
|
};
|
|
36906
37140
|
const WSInfoPage = () => {
|
|
36907
|
-
var
|
|
37141
|
+
var _user$info, _user$info$userName, _user$info2, _propertyDetails$Prop;
|
|
36908
37142
|
const _useTranslation = useTranslation(),
|
|
36909
37143
|
t = _useTranslation.t;
|
|
36910
37144
|
const history = useHistory();
|
|
36911
37145
|
const location = useLocation();
|
|
36912
37146
|
const match = useRouteMatch();
|
|
36913
37147
|
const isEmployee = window.location.href.includes("/employee");
|
|
37148
|
+
const user = Digit.UserService.getUser();
|
|
37149
|
+
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user.info.userName : user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.mobileNumber;
|
|
36914
37150
|
const _useState = useState(null),
|
|
36915
37151
|
hasProperty = _useState[0],
|
|
36916
37152
|
setHasProperty = _useState[1];
|
|
36917
37153
|
const _useState2 = useState(null),
|
|
36918
37154
|
selectedProperty = _useState2[0],
|
|
36919
37155
|
setSelectedProperty = _useState2[1];
|
|
36920
|
-
const _useState3 = useState(""),
|
|
37156
|
+
const _useState3 = useState(isEmployee ? "" : userMobileNumber || ""),
|
|
36921
37157
|
searchMobileNumber = _useState3[0],
|
|
36922
37158
|
setSearchMobileNumber = _useState3[1];
|
|
36923
37159
|
const _useState4 = useState(false),
|
|
@@ -36935,9 +37171,11 @@ const WSInfoPage = () => {
|
|
|
36935
37171
|
const _useState8 = useState(null),
|
|
36936
37172
|
showToast = _useState8[0],
|
|
36937
37173
|
setShowToast = _useState8[1];
|
|
37174
|
+
useEffect(() => {
|
|
37175
|
+
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
37176
|
+
}, []);
|
|
36938
37177
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
36939
|
-
const
|
|
36940
|
-
const mobileNumberToSearch = isEmployee ? searchMobileNumber : userMobileNumber;
|
|
37178
|
+
const mobileNumberToSearch = searchMobileNumber;
|
|
36941
37179
|
const _Digit$Hooks$pt$usePr = Digit.Hooks.pt.usePropertySearch({
|
|
36942
37180
|
filters: {
|
|
36943
37181
|
mobileNumber: mobileNumberToSearch
|
|
@@ -36963,6 +37201,7 @@ const WSInfoPage = () => {
|
|
|
36963
37201
|
const isEmployee = window.location.href.includes("/employee");
|
|
36964
37202
|
const baseUrl = isEmployee ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
|
|
36965
37203
|
if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
|
|
37204
|
+
sessionStorage.setItem("WS_OTP_VERIFIED_PROPERTY_ID", selectedProperty.propertyId);
|
|
36966
37205
|
history.push(baseUrl + "/old-application?propertyId=" + selectedProperty.propertyId);
|
|
36967
37206
|
} else {
|
|
36968
37207
|
history.push(baseUrl + "/old-application");
|
|
@@ -36981,7 +37220,7 @@ const WSInfoPage = () => {
|
|
|
36981
37220
|
mobileNumber: mobileNumberToSearch,
|
|
36982
37221
|
tenantId: "dl",
|
|
36983
37222
|
type: "register",
|
|
36984
|
-
userType:
|
|
37223
|
+
userType: "EMPLOYEE"
|
|
36985
37224
|
}
|
|
36986
37225
|
};
|
|
36987
37226
|
return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function (response) {
|
|
@@ -37115,11 +37354,7 @@ const WSInfoPage = () => {
|
|
|
37115
37354
|
if (e.stopPropagation) e.stopPropagation();
|
|
37116
37355
|
}
|
|
37117
37356
|
if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
|
|
37118
|
-
|
|
37119
|
-
proceedToNext();
|
|
37120
|
-
} else {
|
|
37121
|
-
handleSendOtp(e);
|
|
37122
|
-
}
|
|
37357
|
+
handleSendOtp(e);
|
|
37123
37358
|
} else if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty) {
|
|
37124
37359
|
return;
|
|
37125
37360
|
} else {
|
|
@@ -37228,7 +37463,26 @@ const WSInfoPage = () => {
|
|
|
37228
37463
|
style: {
|
|
37229
37464
|
marginBottom: "24px"
|
|
37230
37465
|
}
|
|
37231
|
-
}, isEmployee && /*#__PURE__*/React.createElement("div", {
|
|
37466
|
+
}, !isEmployee && /*#__PURE__*/React.createElement("div", {
|
|
37467
|
+
style: {
|
|
37468
|
+
marginBottom: "16px"
|
|
37469
|
+
}
|
|
37470
|
+
}, /*#__PURE__*/React.createElement(Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, {
|
|
37471
|
+
t: t,
|
|
37472
|
+
type: "number",
|
|
37473
|
+
isMandatory: false,
|
|
37474
|
+
name: "mobileNumber",
|
|
37475
|
+
value: searchMobileNumber,
|
|
37476
|
+
onChange: e => {
|
|
37477
|
+
const val = e.target.value.replace(/\D/g, "").slice(0, 10);
|
|
37478
|
+
setSearchMobileNumber(val);
|
|
37479
|
+
setSelectedProperty(null);
|
|
37480
|
+
setShowOtpVerification(false);
|
|
37481
|
+
setOtp("");
|
|
37482
|
+
},
|
|
37483
|
+
placeholder: t("Enter mobile number"),
|
|
37484
|
+
maxLength: 10
|
|
37485
|
+
})), isEmployee && /*#__PURE__*/React.createElement("div", {
|
|
37232
37486
|
style: {
|
|
37233
37487
|
display: "flex",
|
|
37234
37488
|
flexDirection: "column",
|
|
@@ -38639,6 +38893,7 @@ const DEFAULT_SECTION_STATE = {
|
|
|
38639
38893
|
applicant: true,
|
|
38640
38894
|
contact: true,
|
|
38641
38895
|
djbEmployee: true,
|
|
38896
|
+
disability: true,
|
|
38642
38897
|
governmentEmployee: true,
|
|
38643
38898
|
address: true,
|
|
38644
38899
|
usage: true,
|
|
@@ -38691,6 +38946,9 @@ const DEFAULT_FORM_VALUES = {
|
|
|
38691
38946
|
retirementDate: "",
|
|
38692
38947
|
officeNameAndAddress: ""
|
|
38693
38948
|
},
|
|
38949
|
+
disability: {
|
|
38950
|
+
isDivyangjan: false
|
|
38951
|
+
},
|
|
38694
38952
|
governmentEmployee: {
|
|
38695
38953
|
isGovernmentEmployee: false,
|
|
38696
38954
|
organizationName: "",
|
|
@@ -38844,6 +39102,7 @@ const buildDefaultValues = () => ({
|
|
|
38844
39102
|
applicant: _extends({}, DEFAULT_FORM_VALUES.applicant),
|
|
38845
39103
|
contact: _extends({}, DEFAULT_FORM_VALUES.contact),
|
|
38846
39104
|
djbEmployee: _extends({}, DEFAULT_FORM_VALUES.djbEmployee),
|
|
39105
|
+
disability: _extends({}, DEFAULT_FORM_VALUES.disability),
|
|
38847
39106
|
propertyAddress: _extends({}, DEFAULT_FORM_VALUES.propertyAddress),
|
|
38848
39107
|
useDetails: _extends({}, DEFAULT_FORM_VALUES.useDetails),
|
|
38849
39108
|
bankDetails: _extends({}, DEFAULT_FORM_VALUES.bankDetails),
|
|
@@ -39109,7 +39368,7 @@ const FileUploadField = _ref6 => {
|
|
|
39109
39368
|
})))));
|
|
39110
39369
|
};
|
|
39111
39370
|
const NewApplication = () => {
|
|
39112
|
-
var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
|
|
39371
|
+
var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
|
|
39113
39372
|
const _useTranslation2 = useTranslation(),
|
|
39114
39373
|
t = _useTranslation2.t;
|
|
39115
39374
|
const history = useHistory();
|
|
@@ -39151,6 +39410,7 @@ const NewApplication = () => {
|
|
|
39151
39410
|
setWaterAndSewerageBoth = _useState12[1];
|
|
39152
39411
|
const _useState13 = useState(new URLSearchParams(location.search).get("propertyId")),
|
|
39153
39412
|
propertyId = _useState13[0];
|
|
39413
|
+
const initialPropertyQuery = useRef(location.search);
|
|
39154
39414
|
const initialFormValues = buildDefaultValues();
|
|
39155
39415
|
const _useState14 = useState(""),
|
|
39156
39416
|
city = _useState14[0],
|
|
@@ -39243,6 +39503,7 @@ const NewApplication = () => {
|
|
|
39243
39503
|
applicant: React.useRef(null),
|
|
39244
39504
|
contact: React.useRef(null),
|
|
39245
39505
|
djbEmployee: React.useRef(null),
|
|
39506
|
+
disability: React.useRef(null),
|
|
39246
39507
|
governmentEmployee: React.useRef(null),
|
|
39247
39508
|
propertyAddress: React.useRef(null),
|
|
39248
39509
|
useDetails: React.useRef(null),
|
|
@@ -39318,7 +39579,11 @@ const NewApplication = () => {
|
|
|
39318
39579
|
sectionId: "djbEmployee",
|
|
39319
39580
|
route: "djb-employee",
|
|
39320
39581
|
actions: "For DJB Employee"
|
|
39321
|
-
}] : []),
|
|
39582
|
+
}] : []), {
|
|
39583
|
+
sectionId: "disability",
|
|
39584
|
+
route: "disability",
|
|
39585
|
+
actions: "Divyangjan/Person with Disability"
|
|
39586
|
+
}, ...(isGovernmentEmployee ? [{
|
|
39322
39587
|
sectionId: "governmentEmployee",
|
|
39323
39588
|
route: "government-employee",
|
|
39324
39589
|
actions: "For Government Employee"
|
|
@@ -39399,6 +39664,12 @@ const NewApplication = () => {
|
|
|
39399
39664
|
sewerageMutation = _Digit$Hooks$ws$useWa2.mutate;
|
|
39400
39665
|
const _Digit$Hooks$ws$useWS4 = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE"),
|
|
39401
39666
|
sewerageUpdateMutation = _Digit$Hooks$ws$useWS4.mutate;
|
|
39667
|
+
useEffect(() => {
|
|
39668
|
+
if (location.search !== initialPropertyQuery.current) {
|
|
39669
|
+
window.sessionStorage.removeItem(FORM_STORAGE_KEY);
|
|
39670
|
+
history.replace("/digit-ui/employee/ws/info");
|
|
39671
|
+
}
|
|
39672
|
+
}, [history, location.search]);
|
|
39402
39673
|
useEffect(() => {
|
|
39403
39674
|
if (!isGovernmentOrganization) {
|
|
39404
39675
|
setValue("applicant.governmentOrganizationName", "");
|
|
@@ -40471,6 +40742,23 @@ const NewApplication = () => {
|
|
|
40471
40742
|
minHeight: "96px"
|
|
40472
40743
|
}
|
|
40473
40744
|
})))), /*#__PURE__*/React.createElement(SectionCard, {
|
|
40745
|
+
description: "Please indicate whether the applicant is a Divyangjan/Person with Disability.",
|
|
40746
|
+
isOpen: collapsedSections.disability,
|
|
40747
|
+
onToggle: toggleSection,
|
|
40748
|
+
sectionKey: "disability",
|
|
40749
|
+
title: "Divyangjan/Person with Disability?",
|
|
40750
|
+
sectionRef: sectionRefs.disability
|
|
40751
|
+
}, /*#__PURE__*/React.createElement(FieldBlock, {
|
|
40752
|
+
label: "Divyangjan/Person with Disability?"
|
|
40753
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
40754
|
+
control: control,
|
|
40755
|
+
name: "disability.isDivyangjan",
|
|
40756
|
+
render: props => /*#__PURE__*/React.createElement(CheckBox, {
|
|
40757
|
+
checked: !!props.value,
|
|
40758
|
+
label: "Divyangjan/Person with Disability?",
|
|
40759
|
+
onChange: event => props.onChange(event.target.checked)
|
|
40760
|
+
})
|
|
40761
|
+
}))), /*#__PURE__*/React.createElement(SectionCard, {
|
|
40474
40762
|
description: t("WS_PROPERTY_ADDRESS_DESC"),
|
|
40475
40763
|
isOpen: collapsedSections.address,
|
|
40476
40764
|
onToggle: toggleSection,
|
|
@@ -41292,7 +41580,17 @@ const NewApplication = () => {
|
|
|
41292
41580
|
isFullWidth: true,
|
|
41293
41581
|
label: "Office Name & Address",
|
|
41294
41582
|
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$djbEmploy5 = formValues.djbEmployee) === null || _formValues$djbEmploy5 === void 0 ? void 0 : _formValues$djbEmploy5.officeNameAndAddress
|
|
41295
|
-
})) : null),
|
|
41583
|
+
})) : null), /*#__PURE__*/React.createElement(SectionCard, {
|
|
41584
|
+
description: "Divyangjan/Person with Disability declaration.",
|
|
41585
|
+
isOpen: collapsedSections.disability,
|
|
41586
|
+
onToggle: toggleSection,
|
|
41587
|
+
sectionKey: "disability",
|
|
41588
|
+
title: "Divyangjan/Person with Disability?",
|
|
41589
|
+
onEditClick: () => handleSectionEdit("disability")
|
|
41590
|
+
}, /*#__PURE__*/React.createElement(PreviewItem, {
|
|
41591
|
+
label: "Divyangjan/Person with Disability?",
|
|
41592
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$disabilit = formValues.disability) === null || _formValues$disabilit === void 0 ? void 0 : _formValues$disabilit.isDivyangjan
|
|
41593
|
+
})), (formValues === null || formValues === void 0 ? void 0 : (_formValues$governmen = formValues.governmentEmployee) === null || _formValues$governmen === void 0 ? void 0 : _formValues$governmen.isGovernmentEmployee) && /*#__PURE__*/React.createElement(SectionCard, {
|
|
41296
41594
|
description: "Government employee organization details.",
|
|
41297
41595
|
isOpen: collapsedSections.governmentEmployee,
|
|
41298
41596
|
onToggle: toggleSection,
|
|
@@ -43480,6 +43778,8 @@ const ActionModal$5 = _ref => {
|
|
|
43480
43778
|
submitAction = _ref.submitAction,
|
|
43481
43779
|
applicationData = _ref.applicationData,
|
|
43482
43780
|
businessService = _ref.businessService,
|
|
43781
|
+
approvalChecklist = _ref.approvalChecklist,
|
|
43782
|
+
showApprovalChecklist = _ref.showApprovalChecklist,
|
|
43483
43783
|
cardClassName = _ref.cardClassName,
|
|
43484
43784
|
cardFormWrapperClassName = _ref.cardFormWrapperClassName,
|
|
43485
43785
|
cardFormClassName = _ref.cardFormClassName,
|
|
@@ -43582,7 +43882,7 @@ const ActionModal$5 = _ref => {
|
|
|
43582
43882
|
})();
|
|
43583
43883
|
}, [file]);
|
|
43584
43884
|
function submit(data) {
|
|
43585
|
-
var _applicationData4, _applicationData0,
|
|
43885
|
+
var _applicationData4, _applicationData0, _applicationData10, _applicationData10$ap, _applicationData11, _applicationData11$pr, _applicationData12, _applicationData12$pr, _applicationData14, _applicationData15;
|
|
43586
43886
|
let commentValue = (data === null || data === void 0 ? void 0 : data.comments) || "";
|
|
43587
43887
|
if (isReasonRequiredAction) {
|
|
43588
43888
|
var _commentValue;
|
|
@@ -43669,36 +43969,45 @@ const ActionModal$5 = _ref => {
|
|
|
43669
43969
|
}] : []
|
|
43670
43970
|
})
|
|
43671
43971
|
});
|
|
43672
|
-
if (
|
|
43972
|
+
if (showApprovalChecklist) {
|
|
43973
|
+
var _applicationData1;
|
|
43974
|
+
applicationData.additionalDetails = _extends({}, (_applicationData1 = applicationData) === null || _applicationData1 === void 0 ? void 0 : _applicationData1.additionalDetails, {
|
|
43975
|
+
waterPipelineFacility: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.waterPipelineFacility) === true,
|
|
43976
|
+
infrastructureChargesApplicable: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.infrastructureChargesApplicable) === true,
|
|
43977
|
+
rainWaterHarvesting: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.rainWaterHarvesting) === true,
|
|
43978
|
+
bulkConnectionVerification: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.bulkConnectionVerification) === true
|
|
43979
|
+
});
|
|
43980
|
+
}
|
|
43981
|
+
if (data !== null && data !== void 0 && data.date && (_applicationData10 = applicationData) !== null && _applicationData10 !== void 0 && (_applicationData10$ap = _applicationData10.applicationType) !== null && _applicationData10$ap !== void 0 && _applicationData10$ap.includes("DISCONNECT")) {
|
|
43673
43982
|
const disconnectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
43674
43983
|
applicationData.disconnectionExecutionDate = convertDateToEpochNew$1(disconnectionExecutionDate);
|
|
43675
43984
|
} else if (data !== null && data !== void 0 && data.date) {
|
|
43676
43985
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
43677
43986
|
applicationData.connectionExecutionDate = convertDateToEpochNew$1(connectionExecutionDate);
|
|
43678
43987
|
}
|
|
43679
|
-
if (((
|
|
43680
|
-
var
|
|
43681
|
-
((
|
|
43988
|
+
if (((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : (_applicationData11$pr = _applicationData11.processInstance) === null || _applicationData11$pr === void 0 ? void 0 : _applicationData11$pr.businessService) == "DisconnectWSConnection" || ((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : (_applicationData12$pr = _applicationData12.processInstance) === null || _applicationData12$pr === void 0 ? void 0 : _applicationData12$pr.businessService) == "DisconnectSWConnection" || window.location.href.includes("disconnection")) {
|
|
43989
|
+
var _applicationData13;
|
|
43990
|
+
((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.serviceType) == "WATER" ? submitAction({
|
|
43682
43991
|
WaterConnection: applicationData,
|
|
43683
43992
|
disconnectRequest: true
|
|
43684
43993
|
}) : submitAction({
|
|
43685
43994
|
SewerageConnection: applicationData,
|
|
43686
43995
|
disconnectRequest: true
|
|
43687
43996
|
});
|
|
43688
|
-
} else if (((
|
|
43997
|
+
} else if (((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
43689
43998
|
submitAction({
|
|
43690
43999
|
SewerageConnection: applicationData,
|
|
43691
44000
|
disconnectRequest: false,
|
|
43692
44001
|
reconnectRequest: true
|
|
43693
44002
|
});
|
|
43694
|
-
} else if (((
|
|
44003
|
+
} else if (((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : _applicationData15.applicationType) == "WATER_RECONNECTION") {
|
|
43695
44004
|
submitAction({
|
|
43696
44005
|
WaterConnection: applicationData,
|
|
43697
44006
|
disconnectRequest: false,
|
|
43698
44007
|
reconnectRequest: true
|
|
43699
44008
|
});
|
|
43700
44009
|
} else {
|
|
43701
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10,
|
|
44010
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData16;
|
|
43702
44011
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
43703
44012
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
43704
44013
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat !== void 0 && _parsedAdhocRebateDat.adhocPenalty) applicationData.additionalDetails.adhocPenalty = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat2 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat2 === void 0 ? void 0 : _parsedAdhocRebateDat2.adhocPenalty) || "";
|
|
@@ -43707,7 +44016,7 @@ const ActionModal$5 = _ref => {
|
|
|
43707
44016
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
|
|
43708
44017
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat0 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat0 === void 0 ? void 0 : _parsedAdhocRebateDat0.adhocRebateComment) || "";
|
|
43709
44018
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat1 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat1 !== void 0 && _parsedAdhocRebateDat1.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateReason) || "";
|
|
43710
|
-
((
|
|
44019
|
+
((_applicationData16 = applicationData) === null || _applicationData16 === void 0 ? void 0 : _applicationData16.serviceType) == "WATER" ? submitAction({
|
|
43711
44020
|
WaterConnection: applicationData,
|
|
43712
44021
|
disconnectRequest: false,
|
|
43713
44022
|
reconnectRequest: false
|
|
@@ -43719,8 +44028,8 @@ const ActionModal$5 = _ref => {
|
|
|
43719
44028
|
}
|
|
43720
44029
|
}
|
|
43721
44030
|
useEffect(() => {
|
|
43722
|
-
var
|
|
43723
|
-
if (((
|
|
44031
|
+
var _applicationData17, _applicationData17$pr, _applicationData18, _applicationData18$pr;
|
|
44032
|
+
if (((_applicationData17 = applicationData) === null || _applicationData17 === void 0 ? void 0 : (_applicationData17$pr = _applicationData17.processInstance) === null || _applicationData17$pr === void 0 ? void 0 : _applicationData17$pr.businessService) == "DisconnectWSConnection" || ((_applicationData18 = applicationData) === null || _applicationData18 === void 0 ? void 0 : (_applicationData18$pr = _applicationData18.processInstance) === null || _applicationData18$pr === void 0 ? void 0 : _applicationData18$pr.businessService) == "DisconnectSWConnection") {
|
|
43724
44033
|
if (action) {
|
|
43725
44034
|
setConfig(configWSDisConnectApplication({
|
|
43726
44035
|
t,
|
|
@@ -43752,11 +44061,12 @@ const ActionModal$5 = _ref => {
|
|
|
43752
44061
|
selectedReason,
|
|
43753
44062
|
setSelectedReason,
|
|
43754
44063
|
otherReasonText,
|
|
43755
|
-
setOtherReasonText
|
|
44064
|
+
setOtherReasonText,
|
|
44065
|
+
applicationData
|
|
43756
44066
|
}));
|
|
43757
44067
|
}
|
|
43758
44068
|
}
|
|
43759
|
-
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText]);
|
|
44069
|
+
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText, showApprovalChecklist, approvalChecklist, applicationData]);
|
|
43760
44070
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
43761
44071
|
headerBarMain: /*#__PURE__*/React.createElement(Heading$5, {
|
|
43762
44072
|
label: t(config.label.heading)
|
|
@@ -45823,9 +46133,9 @@ function PropertyDocuments(_ref) {
|
|
|
45823
46133
|
var _document$values;
|
|
45824
46134
|
document === null || document === void 0 ? void 0 : (_document$values = document.values) === null || _document$values === void 0 ? void 0 : _document$values.forEach(value => {
|
|
45825
46135
|
if (!value.isPhoto) {
|
|
45826
|
-
var _ref2, _checkedMap$value$fil, _value$originalDoc;
|
|
46136
|
+
var _ref2, _ref3, _checkedMap$value$fil, _value$originalDoc;
|
|
45827
46137
|
requiredDocsCount++;
|
|
45828
|
-
const isChecked = (_ref2 = (_checkedMap$value$fil = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil : value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.isVerified) != null ? _ref2 : false;
|
|
46138
|
+
const isChecked = (_ref2 = (_ref3 = (_checkedMap$value$fil = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil : value === null || value === void 0 ? void 0 : value.isVerified) != null ? _ref3 : value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.isVerified) != null ? _ref2 : false;
|
|
45829
46139
|
if (isChecked) {
|
|
45830
46140
|
checkedCount++;
|
|
45831
46141
|
}
|
|
@@ -45863,6 +46173,7 @@ function PropertyDocuments(_ref) {
|
|
|
45863
46173
|
const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("/obps") || window.location.href.includes("employee/ws");
|
|
45864
46174
|
const isWSLocation = window.location.href.includes("employee/ws");
|
|
45865
46175
|
const isStakeholderApplication = window.location.href.includes("stakeholder");
|
|
46176
|
+
const canVerifyDocuments = ["PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationStatus);
|
|
45866
46177
|
const getDocSubType = documentType => {
|
|
45867
46178
|
if (!documentType) return "";
|
|
45868
46179
|
const parts = documentType.split(".");
|
|
@@ -46069,7 +46380,7 @@ function PropertyDocuments(_ref) {
|
|
|
46069
46380
|
style: {
|
|
46070
46381
|
cursor: "pointer"
|
|
46071
46382
|
}
|
|
46072
|
-
}, /*#__PURE__*/React.createElement(ViewsIcon, null)), !isPhoto && ((
|
|
46383
|
+
}, /*#__PURE__*/React.createElement(ViewsIcon, null)), !isPhoto && ((_ref4, _ref5, _checkedMap$value$fil2, _value$originalDoc2, _value$isVerified, _value$originalDoc3, _ref6, _ref7, _checkedMap$value$fil3, _value$originalDoc4) => {
|
|
46073
46384
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
46074
46385
|
onClick: () => {
|
|
46075
46386
|
if (fileUrl) {
|
|
@@ -46101,7 +46412,7 @@ function PropertyDocuments(_ref) {
|
|
|
46101
46412
|
y1: "15",
|
|
46102
46413
|
x2: "12",
|
|
46103
46414
|
y2: "3"
|
|
46104
|
-
}))),
|
|
46415
|
+
}))), canVerifyDocuments && /*#__PURE__*/React.createElement("label", {
|
|
46105
46416
|
style: {
|
|
46106
46417
|
display: "flex",
|
|
46107
46418
|
alignItems: "center",
|
|
@@ -46111,19 +46422,20 @@ function PropertyDocuments(_ref) {
|
|
|
46111
46422
|
margin: 0
|
|
46112
46423
|
}
|
|
46113
46424
|
}, /*#__PURE__*/React.createElement("input", {
|
|
46114
|
-
key: "chk-" + (value === null || value === void 0 ? void 0 : value.fileStoreId) + "-" + (value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified),
|
|
46425
|
+
key: "chk-" + (value === null || value === void 0 ? void 0 : value.fileStoreId) + "-" + ((_value$isVerified = value === null || value === void 0 ? void 0 : value.isVerified) != null ? _value$isVerified : value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified),
|
|
46115
46426
|
type: "checkbox",
|
|
46116
46427
|
className: "verify-doc-checkbox",
|
|
46117
46428
|
style: {
|
|
46118
46429
|
width: "18px",
|
|
46119
46430
|
height: "18px",
|
|
46120
|
-
accentColor: "#
|
|
46121
|
-
cursor: applicationStatus
|
|
46431
|
+
accentColor: "#1a67a3",
|
|
46432
|
+
cursor: applicationStatus === "PENDING_FOR_CONNECTION_ACTIVATION" ? "not-allowed" : "pointer"
|
|
46122
46433
|
},
|
|
46123
|
-
disabled: applicationStatus
|
|
46124
|
-
checked:
|
|
46434
|
+
disabled: applicationStatus === "PENDING_FOR_CONNECTION_ACTIVATION",
|
|
46435
|
+
checked: (_ref6 = (_ref7 = (_checkedMap$value$fil3 = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil3 : value === null || value === void 0 ? void 0 : value.isVerified) != null ? _ref7 : value === null || value === void 0 ? void 0 : (_value$originalDoc4 = value.originalDoc) === null || _value$originalDoc4 === void 0 ? void 0 : _value$originalDoc4.isVerified) != null ? _ref6 : false,
|
|
46125
46436
|
onChange: e => {
|
|
46126
46437
|
const checked = e.target.checked;
|
|
46438
|
+
value.isVerified = checked;
|
|
46127
46439
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
46128
46440
|
value.originalDoc.isVerified = checked;
|
|
46129
46441
|
}
|
|
@@ -47220,8 +47532,8 @@ const DueVerification = _ref => {
|
|
|
47220
47532
|
return newData;
|
|
47221
47533
|
});
|
|
47222
47534
|
}, [applicationData]);
|
|
47223
|
-
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus)
|
|
47224
|
-
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "
|
|
47535
|
+
const isPendingApproval = ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_ZRO_APPROVAL"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
47536
|
+
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
47225
47537
|
const columns = useMemo(() => {
|
|
47226
47538
|
const baseColumns = [{
|
|
47227
47539
|
Header: t("K No."),
|
|
@@ -47270,6 +47582,51 @@ const DueVerification = _ref => {
|
|
|
47270
47582
|
const _useState4 = useState(null),
|
|
47271
47583
|
showToast = _useState4[0],
|
|
47272
47584
|
setShowToast = _useState4[1];
|
|
47585
|
+
const _useState5 = useState(null),
|
|
47586
|
+
zroDropdownOptions = _useState5[0],
|
|
47587
|
+
setZroDropdownOptions = _useState5[1];
|
|
47588
|
+
const _useState6 = useState(null),
|
|
47589
|
+
selectedZroOption = _useState6[0],
|
|
47590
|
+
setSelectedZroOption = _useState6[1];
|
|
47591
|
+
const isZROApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_ZRO_APPROVAL";
|
|
47592
|
+
useEffect(() => {
|
|
47593
|
+
let isMounted = true;
|
|
47594
|
+
const fetchDueVerification = function () {
|
|
47595
|
+
try {
|
|
47596
|
+
return Promise.resolve(function () {
|
|
47597
|
+
if (isZROApproval && applicationData !== null && applicationData !== void 0 && applicationData.applicationNo) {
|
|
47598
|
+
return _catch(function () {
|
|
47599
|
+
return Promise.resolve(checkDueVerification({
|
|
47600
|
+
DueVerification: {
|
|
47601
|
+
applicationNo: applicationData.applicationNo
|
|
47602
|
+
}
|
|
47603
|
+
})).then(function (response) {
|
|
47604
|
+
if (!isMounted) return;
|
|
47605
|
+
const dueVerifications = Array.isArray(response) ? response : (response === null || response === void 0 ? void 0 : response.DueVerifications) || (response === null || response === void 0 ? void 0 : response.dueVerifications) || (response === null || response === void 0 ? void 0 : response.dueVerification) || [];
|
|
47606
|
+
if (dueVerifications && dueVerifications.length > 0) {
|
|
47607
|
+
const options = dueVerifications.map(item => _extends({
|
|
47608
|
+
code: item.kno,
|
|
47609
|
+
name: item.kno
|
|
47610
|
+
}, item));
|
|
47611
|
+
setZroDropdownOptions(options);
|
|
47612
|
+
} else {
|
|
47613
|
+
setZroDropdownOptions([]);
|
|
47614
|
+
}
|
|
47615
|
+
});
|
|
47616
|
+
}, function (error) {
|
|
47617
|
+
console.error("Error auto-fetching due verification:", error);
|
|
47618
|
+
});
|
|
47619
|
+
}
|
|
47620
|
+
}());
|
|
47621
|
+
} catch (e) {
|
|
47622
|
+
return Promise.reject(e);
|
|
47623
|
+
}
|
|
47624
|
+
};
|
|
47625
|
+
fetchDueVerification();
|
|
47626
|
+
return () => {
|
|
47627
|
+
isMounted = false;
|
|
47628
|
+
};
|
|
47629
|
+
}, [isZROApproval, applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo]);
|
|
47273
47630
|
const handleAdd = function () {
|
|
47274
47631
|
try {
|
|
47275
47632
|
return Promise.resolve(function () {
|
|
@@ -47359,13 +47716,23 @@ const DueVerification = _ref => {
|
|
|
47359
47716
|
style: {
|
|
47360
47717
|
color: "red"
|
|
47361
47718
|
}
|
|
47362
|
-
}, "*")), /*#__PURE__*/React.createElement(
|
|
47719
|
+
}, "*")), /*#__PURE__*/React.createElement(Dropdown, {
|
|
47720
|
+
option: zroDropdownOptions,
|
|
47721
|
+
select: val => {
|
|
47722
|
+
setSelectedZroOption(val);
|
|
47723
|
+
setKno(val.code);
|
|
47724
|
+
},
|
|
47725
|
+
selected: selectedZroOption,
|
|
47726
|
+
optionKey: "name",
|
|
47727
|
+
t: t,
|
|
47728
|
+
placeholder: t("WS_SELECT_KNO_PLACEHOLDER") || "Select K No."
|
|
47729
|
+
}), /*#__PURE__*/React.createElement(TextInput, {
|
|
47363
47730
|
type: "text",
|
|
47364
47731
|
value: kno,
|
|
47365
47732
|
onChange: e => setKno(e.target.value),
|
|
47366
47733
|
style: {
|
|
47367
47734
|
width: "100%",
|
|
47368
|
-
|
|
47735
|
+
marginTop: "10px"
|
|
47369
47736
|
}
|
|
47370
47737
|
})), /*#__PURE__*/React.createElement("div", {
|
|
47371
47738
|
style: {
|
|
@@ -47380,9 +47747,10 @@ const DueVerification = _ref => {
|
|
|
47380
47747
|
padding: "8px 24px",
|
|
47381
47748
|
borderRadius: "4px",
|
|
47382
47749
|
border: "none",
|
|
47383
|
-
cursor: "pointer"
|
|
47750
|
+
cursor: "pointer",
|
|
47751
|
+
color: "white"
|
|
47384
47752
|
}
|
|
47385
|
-
},
|
|
47753
|
+
}, "Search"))), tableData.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
47386
47754
|
style: {
|
|
47387
47755
|
marginTop: "15px",
|
|
47388
47756
|
overflowX: "auto"
|
|
@@ -47405,148 +47773,81 @@ const DueVerification = _ref => {
|
|
|
47405
47773
|
}));
|
|
47406
47774
|
};
|
|
47407
47775
|
|
|
47408
|
-
const
|
|
47409
|
-
|
|
47410
|
-
|
|
47411
|
-
|
|
47412
|
-
|
|
47413
|
-
|
|
47414
|
-
|
|
47415
|
-
|
|
47416
|
-
|
|
47417
|
-
|
|
47418
|
-
|
|
47419
|
-
|
|
47420
|
-
|
|
47421
|
-
|
|
47422
|
-
|
|
47423
|
-
|
|
47424
|
-
|
|
47425
|
-
|
|
47426
|
-
|
|
47427
|
-
|
|
47428
|
-
|
|
47429
|
-
|
|
47430
|
-
|
|
47431
|
-
|
|
47432
|
-
}
|
|
47433
|
-
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
47434
|
-
let matchedType = null;
|
|
47435
|
-
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
47436
|
-
if (inspectionCode) {
|
|
47437
|
-
matchedType = [{
|
|
47438
|
-
i18nKey: "New Connection Visit",
|
|
47439
|
-
code: "new_connection_visit"
|
|
47440
|
-
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
47441
|
-
}
|
|
47442
|
-
setInspectionType(matchedType || defaultInspectionType);
|
|
47443
|
-
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
47444
|
-
if (dateValue && typeof dateValue === 'number') {
|
|
47445
|
-
const d = new Date(dateValue);
|
|
47446
|
-
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
47447
|
-
} else if (dateValue && typeof dateValue === 'string' && dateValue.includes('-')) ; else if (dateValue) {
|
|
47448
|
-
const num = Number(dateValue);
|
|
47449
|
-
if (!isNaN(num)) {
|
|
47450
|
-
const d = new Date(num);
|
|
47451
|
-
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
47452
|
-
}
|
|
47453
|
-
}
|
|
47454
|
-
setInspectionDate(dateValue);
|
|
47455
|
-
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
47456
|
-
}
|
|
47457
|
-
}, [applicationData]);
|
|
47458
|
-
const inspectionTypeOptions = [{
|
|
47459
|
-
i18nKey: "New Connection Visit",
|
|
47460
|
-
code: "new_connection_visit"
|
|
47776
|
+
const getWSCurrentState = (applicationData, workflowDetails) => {
|
|
47777
|
+
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0;
|
|
47778
|
+
return (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.processInstances) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2[0]) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.state) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.ProcessInstances) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.state) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.actionState) === null || _workflowDetails$data0 === void 0 ? void 0 : _workflowDetails$data0.state) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status);
|
|
47779
|
+
};
|
|
47780
|
+
const isWSApprovalChecklistState = (applicationData, workflowDetails) => getWSCurrentState(applicationData, workflowDetails) === "PENDING_FOR_EE_APPROVAL";
|
|
47781
|
+
const getWSApprovalChecklistFields = applicationData => {
|
|
47782
|
+
var _applicationData$addi, _applicationData$addi2, _applicationData$prop, _applicationData$prop2;
|
|
47783
|
+
const plotArea = Number((applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi = applicationData.additionalDetails) === null || _applicationData$addi === void 0 ? void 0 : _applicationData$addi.plotArea) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi2 = applicationData.additionalDetails) === null || _applicationData$addi2 === void 0 ? void 0 : _applicationData$addi2.plotSize) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop = applicationData.property) === null || _applicationData$prop === void 0 ? void 0 : _applicationData$prop.landArea) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop2 = applicationData.property) === null || _applicationData$prop2 === void 0 ? void 0 : _applicationData$prop2.plotArea) || 0);
|
|
47784
|
+
return [{
|
|
47785
|
+
name: "waterPipelineFacility",
|
|
47786
|
+
label: "Water Pipeline Facility",
|
|
47787
|
+
isMandatory: true
|
|
47788
|
+
}, {
|
|
47789
|
+
name: "infrastructureChargesApplicable",
|
|
47790
|
+
label: "Infrastructure Charges Applicable",
|
|
47791
|
+
isMandatory: plotArea > 200
|
|
47792
|
+
}, {
|
|
47793
|
+
name: "rainWaterHarvesting",
|
|
47794
|
+
label: "Rainwater Harvesting",
|
|
47795
|
+
isMandatory: false
|
|
47796
|
+
}, {
|
|
47797
|
+
name: "bulkConnectionVerification",
|
|
47798
|
+
label: "Bulk Connection Verification",
|
|
47799
|
+
isMandatory: false
|
|
47461
47800
|
}];
|
|
47462
|
-
|
|
47463
|
-
|
|
47464
|
-
|
|
47465
|
-
|
|
47466
|
-
}
|
|
47467
|
-
|
|
47468
|
-
|
|
47469
|
-
|
|
47470
|
-
|
|
47471
|
-
|
|
47472
|
-
|
|
47473
|
-
|
|
47474
|
-
|
|
47475
|
-
|
|
47476
|
-
|
|
47477
|
-
|
|
47478
|
-
|
|
47801
|
+
};
|
|
47802
|
+
const isWSApprovalChecklistComplete = function (applicationData, values) {
|
|
47803
|
+
if (values === void 0) {
|
|
47804
|
+
values = {};
|
|
47805
|
+
}
|
|
47806
|
+
return getWSApprovalChecklistFields(applicationData).filter(field => field.isMandatory).every(field => {
|
|
47807
|
+
var _values;
|
|
47808
|
+
return ((_values = values) === null || _values === void 0 ? void 0 : _values[field.name]) === true;
|
|
47809
|
+
});
|
|
47810
|
+
};
|
|
47811
|
+
const WSApprovalChecklist = _ref => {
|
|
47812
|
+
let applicationData = _ref.applicationData,
|
|
47813
|
+
showApprovalChecklist = _ref.showApprovalChecklist,
|
|
47814
|
+
_ref$values = _ref.values,
|
|
47815
|
+
values = _ref$values === void 0 ? {} : _ref$values,
|
|
47816
|
+
onChange = _ref.onChange;
|
|
47817
|
+
if (!showApprovalChecklist) return null;
|
|
47479
47818
|
return /*#__PURE__*/React.createElement("div", {
|
|
47480
47819
|
style: {
|
|
47481
|
-
|
|
47820
|
+
marginTop: "24px",
|
|
47821
|
+
padding: "16px",
|
|
47822
|
+
border: "1px solid #D6D5D4",
|
|
47823
|
+
borderRadius: "4px",
|
|
47824
|
+
background: "#FAFAFA"
|
|
47482
47825
|
}
|
|
47483
|
-
}, /*#__PURE__*/React.createElement(
|
|
47826
|
+
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
47484
47827
|
style: {
|
|
47485
|
-
|
|
47486
|
-
|
|
47487
|
-
|
|
47828
|
+
margin: "0 0 16px",
|
|
47829
|
+
color: "#0B0C0C",
|
|
47830
|
+
fontSize: "20px"
|
|
47488
47831
|
}
|
|
47489
|
-
},
|
|
47832
|
+
}, "Approval Checklist"), /*#__PURE__*/React.createElement("div", {
|
|
47490
47833
|
style: {
|
|
47491
47834
|
display: "flex",
|
|
47492
|
-
|
|
47493
|
-
|
|
47494
|
-
|
|
47495
|
-
|
|
47496
|
-
|
|
47497
|
-
|
|
47498
|
-
|
|
47499
|
-
|
|
47500
|
-
|
|
47501
|
-
|
|
47502
|
-
|
|
47503
|
-
marginBottom: "8px",
|
|
47504
|
-
display: "inline-block"
|
|
47505
|
-
}
|
|
47506
|
-
}, t("Inspection Type")), /*#__PURE__*/React.createElement(Dropdown, {
|
|
47507
|
-
option: inspectionTypeOptions,
|
|
47508
|
-
optionKey: "i18nKey",
|
|
47509
|
-
selected: inspectionType,
|
|
47510
|
-
select: handleInspectionTypeChange,
|
|
47511
|
-
t: t,
|
|
47512
|
-
disable: readOnly
|
|
47513
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
47514
|
-
style: {
|
|
47515
|
-
flex: 1
|
|
47516
|
-
}
|
|
47517
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
47518
|
-
style: {
|
|
47519
|
-
fontSize: "16px",
|
|
47520
|
-
marginBottom: "8px",
|
|
47521
|
-
display: "inline-block"
|
|
47522
|
-
}
|
|
47523
|
-
}, t("Inspection Date")), /*#__PURE__*/React.createElement(DatePicker, {
|
|
47524
|
-
date: inspectionDate,
|
|
47525
|
-
onChange: handleInspectionDateChange,
|
|
47526
|
-
disabled: readOnly
|
|
47527
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
47528
|
-
style: {
|
|
47529
|
-
display: "flex"
|
|
47530
|
-
}
|
|
47531
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
47532
|
-
style: {
|
|
47533
|
-
flex: 1
|
|
47534
|
-
}
|
|
47535
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
47536
|
-
style: {
|
|
47537
|
-
fontSize: "16px",
|
|
47538
|
-
marginBottom: "8px",
|
|
47539
|
-
display: "inline-block"
|
|
47540
|
-
}
|
|
47541
|
-
}, t("Inspector Name")), /*#__PURE__*/React.createElement(TextInput, {
|
|
47542
|
-
value: inspectorName,
|
|
47543
|
-
onChange: handleInspectorNameChange,
|
|
47544
|
-
disabled: readOnly
|
|
47835
|
+
flexDirection: "column",
|
|
47836
|
+
gap: "14px"
|
|
47837
|
+
}
|
|
47838
|
+
}, getWSApprovalChecklistFields(applicationData).map(field => /*#__PURE__*/React.createElement(CheckBox, {
|
|
47839
|
+
key: field.name,
|
|
47840
|
+
pageType: "employee",
|
|
47841
|
+
label: "" + field.label + (field.isMandatory ? " *" : ""),
|
|
47842
|
+
checked: (values === null || values === void 0 ? void 0 : values[field.name]) === true,
|
|
47843
|
+
onChange: event => onChange(_extends({}, values, {
|
|
47844
|
+
[field.name]: event.target.checked
|
|
47845
|
+
}))
|
|
47545
47846
|
}))));
|
|
47546
47847
|
};
|
|
47547
47848
|
|
|
47548
47849
|
function ApplicationDetailsContent(_ref) {
|
|
47549
|
-
var _applicationDetails$a, _workflowDetails$
|
|
47850
|
+
var _applicationDetails$a, _applicationDetails$a2, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _workflowDetails$data20, _workflowDetails$data21, _workflowDetails$data29, _workflowDetails$data30;
|
|
47550
47851
|
let applicationDetails = _ref.applicationDetails,
|
|
47551
47852
|
workflowDetails = _ref.workflowDetails,
|
|
47552
47853
|
isDataLoading = _ref.isDataLoading,
|
|
@@ -47560,7 +47861,11 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47560
47861
|
paymentsList = _ref.paymentsList,
|
|
47561
47862
|
oldValue = _ref.oldValue,
|
|
47562
47863
|
_ref$isInfoLabel = _ref.isInfoLabel,
|
|
47563
|
-
isInfoLabel = _ref$isInfoLabel === void 0 ? false : _ref$isInfoLabel
|
|
47864
|
+
isInfoLabel = _ref$isInfoLabel === void 0 ? false : _ref$isInfoLabel,
|
|
47865
|
+
approvalChecklist = _ref.approvalChecklist,
|
|
47866
|
+
onApprovalChecklistChange = _ref.onApprovalChecklistChange,
|
|
47867
|
+
_ref$showApprovalChec = _ref.showApprovalChecklist,
|
|
47868
|
+
showApprovalChecklist = _ref$showApprovalChec === void 0 ? false : _ref$showApprovalChec;
|
|
47564
47869
|
const _useTranslation = useTranslation(),
|
|
47565
47870
|
t = _useTranslation.t;
|
|
47566
47871
|
const _useState = useState(false),
|
|
@@ -47722,6 +48027,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47722
48027
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc")) {
|
|
47723
48028
|
return {
|
|
47724
48029
|
justifyContent: "space-between",
|
|
48030
|
+
gap: "24px",
|
|
47725
48031
|
fontSize: "16px",
|
|
47726
48032
|
lineHeight: "19px",
|
|
47727
48033
|
color: "#0B0C0C"
|
|
@@ -47729,6 +48035,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47729
48035
|
} else if (checkLocation) {
|
|
47730
48036
|
return {
|
|
47731
48037
|
justifyContent: "space-between",
|
|
48038
|
+
gap: "24px",
|
|
47732
48039
|
fontSize: "16px",
|
|
47733
48040
|
lineHeight: "19px",
|
|
47734
48041
|
color: "#0B0C0C"
|
|
@@ -47814,6 +48121,10 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47814
48121
|
const handleViewClick = data => {
|
|
47815
48122
|
setShowPopup(true);
|
|
47816
48123
|
};
|
|
48124
|
+
const documentsDetailIndex = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.findIndex(detail => {
|
|
48125
|
+
var _detail$additionalDet;
|
|
48126
|
+
return detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.documents;
|
|
48127
|
+
});
|
|
47817
48128
|
return /*#__PURE__*/React.createElement(Card, {
|
|
47818
48129
|
style: {
|
|
47819
48130
|
position: "relative"
|
|
@@ -47826,8 +48137,8 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47826
48137
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
47827
48138
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
47828
48139
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
47829
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
47830
|
-
var _detail$title, _detail$values, _detail$
|
|
48140
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationDetails) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.map((detail, index) => {
|
|
48141
|
+
var _detail$title, _detail$values, _detail$additionalDet2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _detail$additionalDet3, _applicationDetails$a6, _applicationDetails$a7, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _detail$additionalDet20, _applicationData$appl, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
|
|
47831
48142
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
47832
48143
|
key: index
|
|
47833
48144
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -48018,49 +48329,47 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48018
48329
|
}), value.title === "PT_TOTAL_DUES" ? /*#__PURE__*/React.createElement(ArrearSummary, {
|
|
48019
48330
|
bill: (_fetchBillData$Bill = fetchBillData.Bill) === null || _fetchBillData$Bill === void 0 ? void 0 : _fetchBillData$Bill[0]
|
|
48020
48331
|
}) : "");
|
|
48021
|
-
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48332
|
+
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.inspectionReport) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
48022
48333
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
48023
48334
|
paymentsList: paymentsList
|
|
48024
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48025
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48026
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48027
|
-
floors: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48028
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48029
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48030
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48031
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48032
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48335
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationData) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.additionalDetails) === null || _applicationDetails$a4 === void 0 ? void 0 : (_applicationDetails$a5 = _applicationDetails$a4.fieldinspection_pending) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.fiReport) && /*#__PURE__*/React.createElement(InspectionReport, {
|
|
48336
|
+
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : (_applicationDetails$a7 = _applicationDetails$a6.additionalDetails) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.fieldinspection_pending
|
|
48337
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors) && /*#__PURE__*/React.createElement(PropertyFloors, {
|
|
48338
|
+
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.floors
|
|
48339
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet6 = detail.additionalDetails) === null || _detail$additionalDet6 === void 0 ? void 0 : _detail$additionalDet6.units) && /*#__PURE__*/React.createElement(TLTradeUnits, {
|
|
48340
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.units
|
|
48341
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.accessories) && /*#__PURE__*/React.createElement(TLTradeAccessories, {
|
|
48342
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.accessories
|
|
48343
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React.createElement(PermissionCheck, {
|
|
48033
48344
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
48034
48345
|
t: t,
|
|
48035
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48036
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48346
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.permissions
|
|
48347
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.obpsDocuments) && /*#__PURE__*/React.createElement(BPADocuments, {
|
|
48037
48348
|
t: t,
|
|
48038
48349
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
48039
48350
|
docs: detail.additionalDetails.obpsDocuments,
|
|
48040
48351
|
bpaActionsDetails: workflowDetails
|
|
48041
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48352
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.noc) && /*#__PURE__*/React.createElement(NOCDocuments, {
|
|
48042
48353
|
t: t,
|
|
48043
48354
|
isNoc: true,
|
|
48044
48355
|
NOCdata: detail.values,
|
|
48045
48356
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
48046
48357
|
docs: detail.additionalDetails.noc,
|
|
48047
|
-
noc: (_detail$
|
|
48358
|
+
noc: (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.data,
|
|
48048
48359
|
bpaActionsDetails: workflowDetails
|
|
48049
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48360
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.scruntinyDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
48050
48361
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
48051
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48362
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.buildingExtractionDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
48052
48363
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
48053
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48364
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.subOccupancyTableDetails) && /*#__PURE__*/React.createElement(SubOccupancyTable, {
|
|
48054
48365
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
48055
48366
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
48056
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48057
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48058
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48059
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48060
|
-
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
48061
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48062
|
-
applicationData: applicationData
|
|
48063
|
-
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl2 = applicationData.applicationType) !== null && _applicationData$appl2 !== void 0 && _applicationData$appl2.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(InspectionInformation, {
|
|
48367
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.documentsWithUrl) && /*#__PURE__*/React.createElement(DocumentsPreview, {
|
|
48368
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documentsWithUrl
|
|
48369
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents) && index === documentsDetailIndex && /*#__PURE__*/React.createElement(PropertyDocuments, {
|
|
48370
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents,
|
|
48371
|
+
applicationStatus: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.actionState) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.processInstances) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.state) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.ProcessInstances) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0[0]) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1.state) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.state) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status)
|
|
48372
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationType) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
|
|
48064
48373
|
applicationData: applicationData
|
|
48065
48374
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
48066
48375
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
@@ -48078,23 +48387,28 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48078
48387
|
wsAdditionalDetails: detail,
|
|
48079
48388
|
workflowDetails: workflowDetails
|
|
48080
48389
|
}));
|
|
48081
|
-
}),
|
|
48390
|
+
}), showApprovalChecklist && /*#__PURE__*/React.createElement(WSApprovalChecklist, {
|
|
48391
|
+
applicationData: applicationData,
|
|
48392
|
+
showApprovalChecklist: showApprovalChecklist,
|
|
48393
|
+
values: approvalChecklist,
|
|
48394
|
+
onChange: onApprovalChecklistChange
|
|
48395
|
+
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.timeline) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
48082
48396
|
id: "timeline"
|
|
48083
48397
|
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
48084
48398
|
style: {
|
|
48085
48399
|
marginBottom: "16px",
|
|
48086
48400
|
marginTop: "32px"
|
|
48087
48401
|
}
|
|
48088
|
-
}, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
48402
|
+
}, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data13 = workflowDetails.data) !== null && _workflowDetails$data13 !== void 0 && _workflowDetails$data13.timeline && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data14 = workflowDetails.data) === null || _workflowDetails$data14 === void 0 ? void 0 : (_workflowDetails$data15 = _workflowDetails$data14.timeline) === null || _workflowDetails$data15 === void 0 ? void 0 : _workflowDetails$data15.length) === 1 ? /*#__PURE__*/React.createElement(CheckPoint, {
|
|
48089
48403
|
isCompleted: true,
|
|
48090
|
-
label: t("" + timelineStatusPrefix + (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48091
|
-
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48092
|
-
}) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48093
|
-
var _workflowDetails$
|
|
48404
|
+
label: t("" + timelineStatusPrefix + (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data16 = workflowDetails.data) === null || _workflowDetails$data16 === void 0 ? void 0 : (_workflowDetails$data17 = _workflowDetails$data16.timeline[0]) === null || _workflowDetails$data17 === void 0 ? void 0 : _workflowDetails$data17.state)),
|
|
48405
|
+
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data18 = workflowDetails.data) === null || _workflowDetails$data18 === void 0 ? void 0 : _workflowDetails$data18.timeline[0], workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : _workflowDetails$data19.timeline)
|
|
48406
|
+
}) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data20 = workflowDetails.data) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.timeline) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : _workflowDetails$data21.timeline.slice(0, showAllTimeline ? workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data.timeline.length : 2).map((checkpoint, index, arr) => {
|
|
48407
|
+
var _workflowDetails$data28;
|
|
48094
48408
|
let timelineStatusPostfix = "";
|
|
48095
48409
|
if (window.location.href.includes("/obps/")) {
|
|
48096
|
-
var _workflowDetails$
|
|
48097
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
48410
|
+
var _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27;
|
|
48411
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data22 = workflowDetails.data) !== null && _workflowDetails$data22 !== void 0 && (_workflowDetails$data23 = _workflowDetails$data22.timeline[index - 1]) !== null && _workflowDetails$data23 !== void 0 && (_workflowDetails$data24 = _workflowDetails$data23.state) !== null && _workflowDetails$data24 !== void 0 && _workflowDetails$data24.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data25 = workflowDetails.data) !== null && _workflowDetails$data25 !== void 0 && (_workflowDetails$data26 = _workflowDetails$data25.timeline[index - 1]) !== null && _workflowDetails$data26 !== void 0 && (_workflowDetails$data27 = _workflowDetails$data26.state) !== null && _workflowDetails$data27 !== void 0 && _workflowDetails$data27.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = "_NOT_DONE";else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = "_BY_ARCHITECT_DONE";else timelineStatusPostfix = index === 0 ? "" : "_DONE";
|
|
48098
48412
|
}
|
|
48099
48413
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
48100
48414
|
key: index
|
|
@@ -48103,9 +48417,9 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48103
48417
|
isCompleted: index === 0,
|
|
48104
48418
|
info: checkpoint.comment,
|
|
48105
48419
|
label: t("" + timelineStatusPrefix + ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "REOPEN" ? checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction : checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint[statusAttribute]) + timelineStatusPostfix),
|
|
48106
|
-
customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48420
|
+
customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data28 = workflowDetails.data) === null || _workflowDetails$data28 === void 0 ? void 0 : _workflowDetails$data28.timeline)
|
|
48107
48421
|
}));
|
|
48108
|
-
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48422
|
+
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data29 = workflowDetails.data) === null || _workflowDetails$data29 === void 0 ? void 0 : (_workflowDetails$data30 = _workflowDetails$data29.timeline) === null || _workflowDetails$data30 === void 0 ? void 0 : _workflowDetails$data30.length) > 2 && /*#__PURE__*/React.createElement(LinkButton, {
|
|
48109
48423
|
label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
|
|
48110
48424
|
onClick: toggleTimeline
|
|
48111
48425
|
})))), /*#__PURE__*/React.createElement("div", null, showPopup && /*#__PURE__*/React.createElement(RenewPopup, {
|
|
@@ -48222,7 +48536,9 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48222
48536
|
_ref$MenuStyle = _ref.MenuStyle,
|
|
48223
48537
|
MenuStyle = _ref$MenuStyle === void 0 ? {} : _ref$MenuStyle,
|
|
48224
48538
|
isAction = _ref.isAction,
|
|
48225
|
-
applicationDetails = _ref.applicationDetails
|
|
48539
|
+
applicationDetails = _ref.applicationDetails,
|
|
48540
|
+
_ref$isApprovalCheckl = _ref.isApprovalChecklistValid,
|
|
48541
|
+
isApprovalChecklistValid = _ref$isApprovalCheckl === void 0 ? false : _ref$isApprovalCheckl;
|
|
48226
48542
|
const _useTranslation = useTranslation(),
|
|
48227
48543
|
t = _useTranslation.t;
|
|
48228
48544
|
let user = Digit.UserService.getUser();
|
|
@@ -48231,7 +48547,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48231
48547
|
if (typeof window !== "undefined" && typeof window.isDocumentsVerified !== "undefined") {
|
|
48232
48548
|
return !window.isDocumentsVerified;
|
|
48233
48549
|
}
|
|
48234
|
-
return
|
|
48550
|
+
return false;
|
|
48235
48551
|
}),
|
|
48236
48552
|
isSubmitDisabled = _React$useState[0],
|
|
48237
48553
|
setIsSubmitDisabled = _React$useState[1];
|
|
@@ -48296,7 +48612,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48296
48612
|
ref: menuRef,
|
|
48297
48613
|
label: t("WF_TAKE_ACTION"),
|
|
48298
48614
|
onSubmit: () => setDisplayMenu(!displayMenu),
|
|
48299
|
-
disabled: isSubmitDisabled
|
|
48615
|
+
disabled: isSubmitDisabled || !isApprovalChecklistValid
|
|
48300
48616
|
}) : /*#__PURE__*/React.createElement(CardLabel, {
|
|
48301
48617
|
style: {
|
|
48302
48618
|
color: "red",
|
|
@@ -48307,7 +48623,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48307
48623
|
ref: menuRef,
|
|
48308
48624
|
label: t("WF_TAKE_ACTION"),
|
|
48309
48625
|
onSubmit: () => setDisplayMenu(!displayMenu),
|
|
48310
|
-
disabled: isSubmitDisabled
|
|
48626
|
+
disabled: isSubmitDisabled || !isApprovalChecklistValid
|
|
48311
48627
|
})), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isMenuBotton && isSingleButton && !isAction && /*#__PURE__*/React.createElement(ActionBar, {
|
|
48312
48628
|
style: _extends({}, ActionBarStyle)
|
|
48313
48629
|
}, /*#__PURE__*/React.createElement("button", {
|
|
@@ -48430,6 +48746,9 @@ const ApplicationDetails = props => {
|
|
|
48430
48746
|
const _useState5 = useState(false),
|
|
48431
48747
|
isWarningPop = _useState5[0],
|
|
48432
48748
|
setWarningPopUp = _useState5[1];
|
|
48749
|
+
const _useState6 = useState({}),
|
|
48750
|
+
approvalChecklist = _useState6[0],
|
|
48751
|
+
setApprovalChecklist = _useState6[1];
|
|
48433
48752
|
const applicationDetails = props.applicationDetails,
|
|
48434
48753
|
showToast = props.showToast,
|
|
48435
48754
|
setShowToast = props.setShowToast,
|
|
@@ -48457,6 +48776,29 @@ const ApplicationDetails = props => {
|
|
|
48457
48776
|
clearDataDetails = props.clearDataDetails,
|
|
48458
48777
|
_props$isAction = props.isAction,
|
|
48459
48778
|
isAction = _props$isAction === void 0 ? false : _props$isAction;
|
|
48779
|
+
const currentWorkflowState = getWSCurrentState(applicationData, workflowDetails);
|
|
48780
|
+
const showApprovalChecklist = moduleCode === "WS" && isWSApprovalChecklistState(applicationData, workflowDetails);
|
|
48781
|
+
const approvalChecklistValid = (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || !showApprovalChecklist || isWSApprovalChecklistComplete(applicationData, approvalChecklist);
|
|
48782
|
+
const seededKeyRef = useRef(null);
|
|
48783
|
+
useEffect(() => {
|
|
48784
|
+
const seedKey = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo) + "__" + currentWorkflowState;
|
|
48785
|
+
if (showApprovalChecklist) {
|
|
48786
|
+
if (seededKeyRef.current !== seedKey) {
|
|
48787
|
+
seededKeyRef.current = seedKey;
|
|
48788
|
+
const initialChecklist = getWSApprovalChecklistFields(applicationData).reduce((values, field) => {
|
|
48789
|
+
var _applicationData$addi;
|
|
48790
|
+
values[field.name] = (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi = applicationData.additionalDetails) === null || _applicationData$addi === void 0 ? void 0 : _applicationData$addi[field.name]) === true;
|
|
48791
|
+
return values;
|
|
48792
|
+
}, {});
|
|
48793
|
+
setApprovalChecklist(initialChecklist);
|
|
48794
|
+
}
|
|
48795
|
+
} else {
|
|
48796
|
+
if (seededKeyRef.current !== null) {
|
|
48797
|
+
seededKeyRef.current = null;
|
|
48798
|
+
setApprovalChecklist({});
|
|
48799
|
+
}
|
|
48800
|
+
}
|
|
48801
|
+
}, [applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo, currentWorkflowState, showApprovalChecklist]);
|
|
48460
48802
|
useEffect(() => {
|
|
48461
48803
|
if (showToast) {
|
|
48462
48804
|
workflowDetails.revalidate();
|
|
@@ -48664,7 +49006,10 @@ const ApplicationDetails = props => {
|
|
|
48664
49006
|
paymentsList: paymentsList,
|
|
48665
49007
|
showTimeLine: showTimeLine,
|
|
48666
49008
|
oldValue: oldValue,
|
|
48667
|
-
isInfoLabel: isInfoLabel
|
|
49009
|
+
isInfoLabel: isInfoLabel,
|
|
49010
|
+
approvalChecklist: approvalChecklist,
|
|
49011
|
+
onApprovalChecklistChange: setApprovalChecklist,
|
|
49012
|
+
showApprovalChecklist: showApprovalChecklist
|
|
48668
49013
|
}), showModal ? /*#__PURE__*/React.createElement(ActionModal$c, {
|
|
48669
49014
|
t: t,
|
|
48670
49015
|
action: selectedAction,
|
|
@@ -48677,7 +49022,8 @@ const ApplicationDetails = props => {
|
|
|
48677
49022
|
submitAction: submitAction,
|
|
48678
49023
|
actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline,
|
|
48679
49024
|
businessService: businessService,
|
|
48680
|
-
|
|
49025
|
+
approvalChecklist: approvalChecklist,
|
|
49026
|
+
showApprovalChecklist: showApprovalChecklist,
|
|
48681
49027
|
moduleCode: moduleCode,
|
|
48682
49028
|
cardFormWrapperClassName: "modal-form"
|
|
48683
49029
|
}) : null, isWarningPop ? /*#__PURE__*/React.createElement(ApplicationDetailsWarningPopup, {
|
|
@@ -48701,7 +49047,8 @@ const ApplicationDetails = props => {
|
|
|
48701
49047
|
forcedActionPrefix: forcedActionPrefix,
|
|
48702
49048
|
ActionBarStyle: ActionBarStyle,
|
|
48703
49049
|
MenuStyle: MenuStyle,
|
|
48704
|
-
applicationDetails: applicationDetails
|
|
49050
|
+
applicationDetails: applicationDetails,
|
|
49051
|
+
isApprovalChecklistValid: approvalChecklistValid
|
|
48705
49052
|
})) : /*#__PURE__*/React.createElement(Loader, null));
|
|
48706
49053
|
};
|
|
48707
49054
|
|
|
@@ -50364,7 +50711,7 @@ const EditApplication$1 = () => {
|
|
|
50364
50711
|
};
|
|
50365
50712
|
|
|
50366
50713
|
const ConsumptionDetails = _ref => {
|
|
50367
|
-
var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _details$4, _details$5;
|
|
50714
|
+
var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _DJBReadingQualityCod, _DJBReadingQualityCod2, _DJBReadingQualityCod3, _details$4, _details$5;
|
|
50368
50715
|
const _useTranslation = useTranslation(),
|
|
50369
50716
|
t = _useTranslation.t;
|
|
50370
50717
|
const user = Digit.UserService.getUser();
|
|
@@ -50405,11 +50752,14 @@ const ConsumptionDetails = _ref => {
|
|
|
50405
50752
|
selectedConsumtion = _useState9[0],
|
|
50406
50753
|
setConsumption = _useState9[1];
|
|
50407
50754
|
const _useState0 = useState(""),
|
|
50408
|
-
|
|
50409
|
-
|
|
50410
|
-
const _useState1 = useState(
|
|
50411
|
-
|
|
50412
|
-
|
|
50755
|
+
selectReadingQualityCode = _useState0[0],
|
|
50756
|
+
setSelectReadingQualityCode = _useState0[1];
|
|
50757
|
+
const _useState1 = useState(""),
|
|
50758
|
+
currentBillingPeriod = _useState1[0],
|
|
50759
|
+
setBillingPeriod = _useState1[1];
|
|
50760
|
+
const _useState10 = useState(false),
|
|
50761
|
+
isAddMeterReadingButtonEnable = _useState10[0],
|
|
50762
|
+
setisAddMeterReadingButtonEnable = _useState10[1];
|
|
50413
50763
|
const userInfo = Digit.UserService.getUser();
|
|
50414
50764
|
const userRoles = userInfo.info.roles.map(roleData => roleData.code);
|
|
50415
50765
|
const isUserAllowedToAddMeterReading = userRoles.filter(role => role === "WS_CEMP" || role === "SW_CEMP").length > 0;
|
|
@@ -50426,6 +50776,8 @@ const ConsumptionDetails = _ref => {
|
|
|
50426
50776
|
const _Digit$Hooks$ws$useGe2 = Digit.Hooks.ws.useGetBillingPeriodValidation(tenantId),
|
|
50427
50777
|
billingPeriodLoading = _Digit$Hooks$ws$useGe2.isLoading,
|
|
50428
50778
|
mdmsBillingPeriod = _Digit$Hooks$ws$useGe2.data;
|
|
50779
|
+
const _Digit$Hooks$ws$useDj = Digit.Hooks.ws.useDjbReadingQualityCodeList(tenantId),
|
|
50780
|
+
DJBReadingQualityCode = _Digit$Hooks$ws$useDj.data;
|
|
50429
50781
|
let connectionFilters = {
|
|
50430
50782
|
connectionNumber: applicationNo
|
|
50431
50783
|
};
|
|
@@ -50531,6 +50883,7 @@ const ConsumptionDetails = _ref => {
|
|
|
50531
50883
|
lastReading: meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReading,
|
|
50532
50884
|
lastReadingDate: meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate,
|
|
50533
50885
|
meterStatus: selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code,
|
|
50886
|
+
readingQualityCode: selectReadingQualityCode === null || selectReadingQualityCode === void 0 ? void 0 : selectReadingQualityCode.code,
|
|
50534
50887
|
tenantId: meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.tenantId
|
|
50535
50888
|
};
|
|
50536
50889
|
let meterReadingsPayload = {
|
|
@@ -50578,6 +50931,13 @@ const ConsumptionDetails = _ref => {
|
|
|
50578
50931
|
code: status,
|
|
50579
50932
|
i18nKey: "WS_SERVICES_CALCULATION_METERSTATUS_" + Digit.Utils.locale.getTransformedLocale(status)
|
|
50580
50933
|
}));
|
|
50934
|
+
const ReadingQualityCodeList = DJBReadingQualityCode === null || DJBReadingQualityCode === void 0 ? void 0 : (_DJBReadingQualityCod = DJBReadingQualityCode.MdmsRes) === null || _DJBReadingQualityCod === void 0 ? void 0 : (_DJBReadingQualityCod2 = _DJBReadingQualityCod["ws-services-calculation"]) === null || _DJBReadingQualityCod2 === void 0 ? void 0 : (_DJBReadingQualityCod3 = _DJBReadingQualityCod2.DJBReadingQualityCode) === null || _DJBReadingQualityCod3 === void 0 ? void 0 : _DJBReadingQualityCod3.map(status => {
|
|
50935
|
+
const statusCode = typeof status === "object" ? status.code : status;
|
|
50936
|
+
return {
|
|
50937
|
+
code: statusCode,
|
|
50938
|
+
i18nKey: "WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_" + Digit.Utils.locale.getTransformedLocale(statusCode)
|
|
50939
|
+
};
|
|
50940
|
+
});
|
|
50581
50941
|
const onFormValueChange = (setValue, formData, formState) => {
|
|
50582
50942
|
if ((selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code) === "Working") {
|
|
50583
50943
|
var _details$2;
|
|
@@ -50674,6 +51034,21 @@ const ConsumptionDetails = _ref => {
|
|
|
50674
51034
|
disabled: selectMeterStatus.code === "Working" ? false : true
|
|
50675
51035
|
}))
|
|
50676
51036
|
}
|
|
51037
|
+
}, {
|
|
51038
|
+
label: "" + t("WS_READING_QUALITY_CODE"),
|
|
51039
|
+
isMandatory: true,
|
|
51040
|
+
type: "dropdown",
|
|
51041
|
+
populators: /*#__PURE__*/React.createElement(Dropdown, {
|
|
51042
|
+
option: ReadingQualityCodeList,
|
|
51043
|
+
autoComplete: "off",
|
|
51044
|
+
optionKey: "i18nKey",
|
|
51045
|
+
id: "readingQualityCode",
|
|
51046
|
+
select: e => {
|
|
51047
|
+
setSelectReadingQualityCode(e);
|
|
51048
|
+
},
|
|
51049
|
+
selected: selectReadingQualityCode,
|
|
51050
|
+
t: t
|
|
51051
|
+
})
|
|
50677
51052
|
}, {
|
|
50678
51053
|
label: t("WS_SERV_DETAIL_CONSUMP"),
|
|
50679
51054
|
isMandatory: false,
|
|
@@ -50753,6 +51128,11 @@ const ConsumptionDetails = _ref => {
|
|
|
50753
51128
|
label: "" + t("WS_CONSUMPTION_DETAILS_METER_STATUS_LABEL"),
|
|
50754
51129
|
text: (application === null || application === void 0 ? void 0 : application.meterStatus) || t("NA"),
|
|
50755
51130
|
className: "border-none"
|
|
51131
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
51132
|
+
key: t("WS_READING_QUALITY_CODE"),
|
|
51133
|
+
label: "" + t("WS_READING_QUALITY_CODE"),
|
|
51134
|
+
text: (application === null || application === void 0 ? void 0 : application.readingQualityCode) || t("NA"),
|
|
51135
|
+
className: "border-none"
|
|
50756
51136
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
50757
51137
|
key: t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL"),
|
|
50758
51138
|
label: "" + t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL"),
|
|
@@ -50810,7 +51190,7 @@ const ConsumptionDetails = _ref => {
|
|
|
50810
51190
|
cardStyle: {
|
|
50811
51191
|
marginLeft: "0px",
|
|
50812
51192
|
marginRight: "0px",
|
|
50813
|
-
marginTop: "
|
|
51193
|
+
marginTop: "0px"
|
|
50814
51194
|
},
|
|
50815
51195
|
className: "BPAemployeeCard",
|
|
50816
51196
|
noBoxShadow: true,
|
|
@@ -56039,7 +56419,7 @@ const openFilePDF = fileId => {
|
|
|
56039
56419
|
}).catch(error => console.error("Error fetching file:", error));
|
|
56040
56420
|
};
|
|
56041
56421
|
const CheckPage$4 = _ref2 => {
|
|
56042
|
-
var _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
|
|
56422
|
+
var _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
|
|
56043
56423
|
let data = _ref2.data,
|
|
56044
56424
|
onSubmit = _ref2.onSubmit,
|
|
56045
56425
|
onEdit = _ref2.onEdit;
|
|
@@ -56119,6 +56499,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
56119
56499
|
const documents = (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir = data.DocumentsRequired) === null || _data$DocumentsRequir === void 0 ? void 0 : _data$DocumentsRequir.documents) || (data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : _data$documents.documents) || [];
|
|
56120
56500
|
const declaration = (data === null || data === void 0 ? void 0 : data.declarationData) || (data === null || data === void 0 ? void 0 : data.declaration) || {};
|
|
56121
56501
|
const djbEmployee = (data === null || data === void 0 ? void 0 : (_data$djbEmployee = data.djbEmployee) === null || _data$djbEmployee === void 0 ? void 0 : _data$djbEmployee.djbEmployee) || (data === null || data === void 0 ? void 0 : data.djbEmployee) || {};
|
|
56502
|
+
const disability = (data === null || data === void 0 ? void 0 : (_data$disability = data.disability) === null || _data$disability === void 0 ? void 0 : _data$disability.disability) || (data === null || data === void 0 ? void 0 : data.disability) || (data === null || data === void 0 ? void 0 : data.additionalDetails) || {};
|
|
56122
56503
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, {
|
|
56123
56504
|
className: "overflow-y-scroll"
|
|
56124
56505
|
}, /*#__PURE__*/React.createElement(CardHeader, null, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
@@ -56346,7 +56727,15 @@ const CheckPage$4 = _ref2 => {
|
|
|
56346
56727
|
},
|
|
56347
56728
|
onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
|
|
56348
56729
|
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
56349
|
-
}))), /*#__PURE__*/React.createElement(CardSubHeader, null,
|
|
56730
|
+
}))), /*#__PURE__*/React.createElement(CardSubHeader, null, "Divyangjan/Person with Disability?"), /*#__PURE__*/React.createElement(StatusTable, {
|
|
56731
|
+
style: {
|
|
56732
|
+
marginTop: "10px",
|
|
56733
|
+
marginBottom: "30px"
|
|
56734
|
+
}
|
|
56735
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
56736
|
+
label: "Divyangjan/Person with Disability?",
|
|
56737
|
+
text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
|
|
56738
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
56350
56739
|
style: {
|
|
56351
56740
|
marginTop: "10px",
|
|
56352
56741
|
marginBottom: "30px"
|
|
@@ -56489,6 +56878,7 @@ const OLDApplication = () => {
|
|
|
56489
56878
|
const _useTranslation = useTranslation(),
|
|
56490
56879
|
t = _useTranslation.t;
|
|
56491
56880
|
const history = useHistory();
|
|
56881
|
+
const location = useLocation();
|
|
56492
56882
|
const _useState = useState(false),
|
|
56493
56883
|
isEnableLoader = _useState[0],
|
|
56494
56884
|
setIsEnableLoader = _useState[1];
|
|
@@ -56537,9 +56927,12 @@ const OLDApplication = () => {
|
|
|
56537
56927
|
let _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.WSCreateConfig(stateId, {}),
|
|
56538
56928
|
newConfig = _Digit$Hooks$ws$useWS.data,
|
|
56539
56929
|
isLoading = _Digit$Hooks$ws$useWS.isLoading;
|
|
56540
|
-
const
|
|
56930
|
+
const requestedPropertyId = new URLSearchParams(location.search).get("propertyId");
|
|
56931
|
+
const _useState5 = useState(requestedPropertyId),
|
|
56541
56932
|
propertyId = _useState5[0],
|
|
56542
56933
|
setPropertyId = _useState5[1];
|
|
56934
|
+
const initialPropertyId = useRef(requestedPropertyId);
|
|
56935
|
+
const verifiedPropertyId = useRef(sessionStorage.getItem("WS_OTP_VERIFIED_PROPERTY_ID"));
|
|
56543
56936
|
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("PT_CREATE_EMP_WS_NEW_FORM", {}),
|
|
56544
56937
|
sessionFormData = _Digit$Hooks$useSessi[0],
|
|
56545
56938
|
setSessionFormData = _Digit$Hooks$useSessi[1],
|
|
@@ -56554,9 +56947,16 @@ const OLDApplication = () => {
|
|
|
56554
56947
|
propertyIds: propertyId
|
|
56555
56948
|
},
|
|
56556
56949
|
tenantId: tenantId,
|
|
56557
|
-
enabled: propertyId && propertyId
|
|
56950
|
+
enabled: propertyId && propertyId === requestedPropertyId && propertyId === verifiedPropertyId.current
|
|
56558
56951
|
}),
|
|
56559
56952
|
propertyDetails = _Digit$Hooks$pt$usePr.data;
|
|
56953
|
+
useEffect(() => {
|
|
56954
|
+
if (requestedPropertyId !== initialPropertyId.current || requestedPropertyId && requestedPropertyId !== verifiedPropertyId.current) {
|
|
56955
|
+
clearSessionFormData();
|
|
56956
|
+
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
56957
|
+
history.replace("/digit-ui/employee/ws/info");
|
|
56958
|
+
}
|
|
56959
|
+
}, [clearSessionFormData, history, requestedPropertyId]);
|
|
56560
56960
|
useEffect(() => {
|
|
56561
56961
|
sessionStorage.removeItem("FORMSTATE_ERRORS");
|
|
56562
56962
|
}, []);
|
|
@@ -56566,7 +56966,7 @@ const OLDApplication = () => {
|
|
|
56566
56966
|
if (config) {
|
|
56567
56967
|
var _config$body;
|
|
56568
56968
|
const allCreateSections = (config === null || config === void 0 ? void 0 : (_config$body = config.body) === null || _config$body === void 0 ? void 0 : _config$body.filter(section => section === null || section === void 0 ? void 0 : section.isCreateConnection)) || [];
|
|
56569
|
-
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSDjbEmployee", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
|
|
56969
|
+
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSDjbEmployee", "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
|
|
56570
56970
|
const reorderedBody = [];
|
|
56571
56971
|
desiredComponentOrder.forEach(compName => {
|
|
56572
56972
|
const section = allCreateSections.find(s => {
|
|
@@ -56632,6 +57032,19 @@ const OLDApplication = () => {
|
|
|
56632
57032
|
withoutLabel: true
|
|
56633
57033
|
}]
|
|
56634
57034
|
});
|
|
57035
|
+
} else if (compName === "WSDivyangjan") {
|
|
57036
|
+
reorderedBody.push({
|
|
57037
|
+
isCreateConnection: true,
|
|
57038
|
+
body: [{
|
|
57039
|
+
type: "component",
|
|
57040
|
+
key: "disability",
|
|
57041
|
+
component: "WSDivyangjan",
|
|
57042
|
+
withoutLabel: true,
|
|
57043
|
+
texts: {
|
|
57044
|
+
header: "Divyangjan/Person with Disability?"
|
|
57045
|
+
}
|
|
57046
|
+
}]
|
|
57047
|
+
});
|
|
56635
57048
|
}
|
|
56636
57049
|
});
|
|
56637
57050
|
allCreateSections.forEach(section => {
|
|
@@ -56896,6 +57309,7 @@ const OLDApplication = () => {
|
|
|
56896
57309
|
try {
|
|
56897
57310
|
var _waterUpdateData$Wate, _waterUpdateData$Wate2, _sewerageUpdateData$S, _sewerageUpdateData$S2;
|
|
56898
57311
|
clearSessionFormData();
|
|
57312
|
+
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
56899
57313
|
history.push(basePath + "/ws-response?applicationNumber=" + (waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : (_waterUpdateData$Wate2 = _waterUpdateData$Wate[0]) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : _waterUpdateData$Wate2.applicationNo) + "&applicationNumber1=" + (sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : (_sewerageUpdateData$S2 = _sewerageUpdateData$S[0]) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : _sewerageUpdateData$S2.applicationNo));
|
|
56900
57314
|
return Promise.resolve();
|
|
56901
57315
|
} catch (e) {
|
|
@@ -56959,6 +57373,7 @@ const OLDApplication = () => {
|
|
|
56959
57373
|
onSuccess: data => {
|
|
56960
57374
|
var _data$WaterConnection2, _data$WaterConnection3;
|
|
56961
57375
|
clearSessionFormData();
|
|
57376
|
+
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
56962
57377
|
history.push(basePath + "/ws-response?applicationNumber=" + (data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : (_data$WaterConnection3 = _data$WaterConnection2[0]) === null || _data$WaterConnection3 === void 0 ? void 0 : _data$WaterConnection3.applicationNo));
|
|
56963
57378
|
}
|
|
56964
57379
|
});
|
|
@@ -57007,6 +57422,7 @@ const OLDApplication = () => {
|
|
|
57007
57422
|
onSuccess: data => {
|
|
57008
57423
|
var _data$SewerageConnect2, _data$SewerageConnect3;
|
|
57009
57424
|
clearSessionFormData();
|
|
57425
|
+
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
57010
57426
|
history.push(basePath + "/ws-response?applicationNumber1=" + (data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : (_data$SewerageConnect3 = _data$SewerageConnect2[0]) === null || _data$SewerageConnect3 === void 0 ? void 0 : _data$SewerageConnect3.applicationNo));
|
|
57011
57427
|
}
|
|
57012
57428
|
})).then(function () {});
|
|
@@ -57232,7 +57648,8 @@ const componentsToRegister = {
|
|
|
57232
57648
|
WSSearchIntegrated: SearchIntegrated,
|
|
57233
57649
|
WSSearchWaterConnectionViewIntegrated: SearchWaterConnectionViewIntegrated,
|
|
57234
57650
|
WSBulkBillGeneration: BulkBillGeneration,
|
|
57235
|
-
WSOLDApplication: OLDApplication
|
|
57651
|
+
WSOLDApplication: OLDApplication,
|
|
57652
|
+
WSDivyangjan: WSDivyangjan
|
|
57236
57653
|
};
|
|
57237
57654
|
const initWSComponents = () => {
|
|
57238
57655
|
Object.entries(componentsToRegister).forEach(_ref3 => {
|